Chnages made for rdp-data-table layout fix 29/102729/2
authorSudarshan Kumar <sudarshan.kumar@att.com>
Mon, 2 Mar 2020 09:33:03 +0000 (15:03 +0530)
committerSudarshan Kumar <sudarshan.kumar@att.com>
Tue, 3 Mar 2020 09:30:53 +0000 (15:00 +0530)
Chnages made for rdp-data-table layout fix and modified pom files

Issue-ID: PORTAL-836
Change-Id: I42f0d0ed188a19e42e14ad56250a1e904b92827f
Signed-off-by: Sudarshan Kumar <sudarshan.kumar@att.com>
12 files changed:
.gitignore
ecomp-sdk/epsdk-aaf/pom.xml
ecomp-sdk/epsdk-analytics/pom.xml
ecomp-sdk/epsdk-core/pom.xml
ecomp-sdk/pom.xml
ecomp-sdk/portalsdk-tag-lib-test-app/package-lock.json
ecomp-sdk/portalsdk-tag-lib-test-app/portalsdk-tag-lib-0.0.1.tgz
ecomp-sdk/portalsdk-tag-library/projects/portalsdk-tag-lib/src/lib/rdp/rdp-cell-editor/rdp-input-editor/rdp-input-editor.component.scss
ecomp-sdk/portalsdk-tag-library/projects/portalsdk-tag-lib/src/lib/rdp/rdp-cell-editor/rdp-input-editor/rdp-input-editor.component.ts
ecomp-sdk/portalsdk-tag-library/projects/portalsdk-tag-lib/src/lib/rdp/rdp-cell-editor/rdp-select-editor/rdp-select-editor.component.ts
ecomp-sdk/portalsdk-tag-library/projects/portalsdk-tag-lib/src/lib/rdp/rdp-data-table/rdp-data-table-edit/rdp-data-table-edit.component.html
ecomp-sdk/portalsdk-tag-library/projects/portalsdk-tag-lib/src/lib/rdp/rdp-data-table/rdp-data-table-edit/rdp-data-table-edit.component.scss

index 20a0744..d52d74e 100644 (file)
@@ -10,5 +10,5 @@ ecomp-sdk/*/null*
 ecomp-sdk/*/jacoco.exec
 ecomp-sdk/*/target
 .settings
-target/*
+ecomp-sdk/target/*
 test*.txt
index d2cb0c5..34b0c7b 100644 (file)
                        <artifactId>jackson-databind</artifactId>
                        <version>2.6.3</version>
                </dependency>
+               <dependency>
+                       <groupId>ch.qos.logback</groupId>
+                       <artifactId>logback-core</artifactId>
+                       <version>1.2.3</version>
+               </dependency>
        </dependencies>
        <profiles>
                <!-- disable doclint, a new feature in Java 8, when generating javadoc -->
index 96bdd18..48c67c6 100644 (file)
        <url>https://wiki.onap.org/display/DW/Portal</url>
 
        <!-- properties are inherited from parent -->
+       <build>
+       <plugins>
+               <plugin>
+                               <groupId>org.apache.maven.plugins</groupId>
+                               <artifactId>maven-surefire-plugin</artifactId>
+                               <version>2.19.1</version>
+                               <configuration>
+                                       <skipTests>${skiptests}</skipTests>
+                                       <includes>
+                                               <include>**/Test*.java</include>
+                                               <include>**/*Test.java</include>
+                                               <include>**/*TestCase.java</include>
+                                       </includes>
+                                       <systemPropertyVariables>
+                                               <container.classpath>classpath:</container.classpath>
+                                       </systemPropertyVariables>
+                               </configuration>
+                       </plugin>
+       </plugins>
+       </build>
 
        <!-- repositories are inherited from parent -->
        <dependencies>
index 1e8bca6..bf6e176 100644 (file)
                                        </systemPropertyVariables>
                                </configuration>
                        </plugin>
+                       
+                             <plugin>
+        <artifactId>maven-checkstyle-plugin</artifactId>
+        <version>2.17</version>
+        <dependencies>
+          <dependency>
+            <groupId>org.onap.oparent</groupId>
+            <artifactId>checkstyle</artifactId>
+            <version>2.0.0</version>
+          </dependency>
+        </dependencies>
+        <executions>
+          <execution>
+            <id>onap-license</id>
+            <goals>
+              <goal>check</goal>
+            </goals>
+            <phase>process-sources</phase>
+            <configuration>
+              <configLocation>onap-checkstyle/check-license.xml</configLocation>
+              <includeResources>false</includeResources>
+              <includeTestSourceDirectory>true</includeTestSourceDirectory>
+              <includeTestResources>false</includeTestResources>
+              <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
+              <excludes>
+              </excludes>
+              <consoleOutput>true</consoleOutput>
+              <failsOnViolation>false</failsOnViolation>
+            </configuration>
+          </execution>
+          <execution>
+            <id>onap-java-style</id>
+            <goals>
+              <goal>check</goal>
+            </goals>
+            <phase>none</phase>
+            <configuration>
+              <!-- Use Google Java Style Guide:
+                   https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml
+                   with minor changes -->
+              <configLocation>onap-checkstyle/onap-java-style.xml</configLocation>
+              <!-- <sourceDirectory> is needed so that checkstyle ignores the generated sources directory -->
+              <sourceDirectory>src</sourceDirectory>
+              <includeResources>true</includeResources>
+              <includeTestSourceDirectory>true</includeTestSourceDirectory>
+              <includeTestResources>true</includeTestResources>
+              <excludes>
+              </excludes>
+              <consoleOutput>true</consoleOutput>
+              <failsOnViolation>false</failsOnViolation>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
 
                </plugins>
        </build>
index a5d1cfc..b5f59ad 100644 (file)
@@ -6,7 +6,7 @@
        <parent>
                <groupId>org.onap.oparent</groupId>
                <artifactId>oparent</artifactId>
-               <version>1.2.0</version>
+               <version>2.0.0</version>
                <relativePath/>
        </parent>
 
                <pluginManagement>
                        <plugins>
                                <!-- Silence Eclipse/m2e complaints about checkstyle plugin brought in 
-                                       by OParent -->
+                                       by OParent 
                                <plugin>
                                        <groupId>org.eclipse.m2e</groupId>
                                        <artifactId>lifecycle-mapping</artifactId>
                                                </lifecycleMappingMetadata>
                                        </configuration>
                                </plugin>
+                               -->
                                <!-- maven-site-plugin config is provided by OParent -->
                                <plugin>
                                        <groupId>org.apache.maven.plugins</groupId>
index 9bc7bc0..780e658 100644 (file)
     },
     "portalsdk-tag-lib": {
       "version": "file:portalsdk-tag-lib-0.0.1.tgz",
-      "integrity": "sha512-O3yOgsgD0OnvfWF8sM/kW27YdCu7HRUqhGXJOMEhKJY04RAGVHsjTkl2bEfaGu/n79GHYG8W3X1rqgHhV8OhzA==",
+      "integrity": "sha512-iqr81BSaZSC+ids5jIxDwvspC/yEKMX2PlTMoFAy0mvI/tcAeKUvSKgsFadqPRHBPbTbtXFDDpn22ZxgTtyc9Q==",
       "requires": {
         "tslib": "^1.9.0"
       }
index ece2965..0bf7890 100644 (file)
Binary files a/ecomp-sdk/portalsdk-tag-lib-test-app/portalsdk-tag-lib-0.0.1.tgz and b/ecomp-sdk/portalsdk-tag-lib-test-app/portalsdk-tag-lib-0.0.1.tgz differ
index 6e53e96..64dd1d3 100644 (file)
@@ -1,3 +1,37 @@
-.input-editor{
-    width: 31em;
-}
\ No newline at end of file
+/*
+ * ============LICENSE_START==========================================
+ * ONAP Portal SDK
+ * ===================================================================
+ * Copyright © 2020 AT&T Intellectual Property. All rights reserved.
+ * ===================================================================
+ *
+ * Unless otherwise specified, all software contained herein is licensed
+ * under the Apache License, Version 2.0 (the "License");
+ * you may not use this software except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *             http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * Unless otherwise specified, all documentation contained herein is licensed
+ * under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+ * you may not use this documentation except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *             https://creativecommons.org/licenses/by/4.0/
+ *
+ * Unless required by applicable law or agreed to in writing, documentation
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * ============LICENSE_END============================================
+ *
+ * 
+ */
\ No newline at end of file
index 31c9e9d..ea6d174 100644 (file)
@@ -1,3 +1,41 @@
+/*
+ * ============LICENSE_START==========================================
+ * ONAP Portal SDK
+ * ===================================================================
+ * Copyright © 2020 AT&T Intellectual Property. All rights reserved.
+ * ===================================================================
+ *
+ * Unless otherwise specified, all software contained herein is licensed
+ * under the Apache License, Version 2.0 (the "License");
+ * you may not use this software except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *             http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * Unless otherwise specified, all documentation contained herein is licensed
+ * under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+ * you may not use this documentation except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *             https://creativecommons.org/licenses/by/4.0/
+ *
+ * Unless required by applicable law or agreed to in writing, documentation
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * ============LICENSE_END============================================
+ *
+ * 
+ */
+
 import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core';
 
 @Component({
index a657a00..5dbc037 100644 (file)
@@ -1,15 +1,56 @@
+/*
+ * ============LICENSE_START==========================================
+ * ONAP Portal SDK
+ * ===================================================================
+ * Copyright © 2020 AT&T Intellectual Property. All rights reserved.
+ * ===================================================================
+ *
+ * Unless otherwise specified, all software contained herein is licensed
+ * under the Apache License, Version 2.0 (the "License");
+ * you may not use this software except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *             http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * Unless otherwise specified, all documentation contained herein is licensed
+ * under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+ * you may not use this documentation except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *             https://creativecommons.org/licenses/by/4.0/
+ *
+ * Unless required by applicable law or agreed to in writing, documentation
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * ============LICENSE_END============================================
+ *
+ * 
+ */
+
 import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core';
 
 @Component({
   selector: 'rdp-select-editor',
   styleUrls: ['./rdp-select-editor.component.scss'],
   template: `
-    <mat-select [(value)]="selected" 
-    (selectionChange)="detectChange(columnValue)">
-      <mat-option *ngFor="let item of data" [value]="item.name">
-      {{item.name}}
-      </mat-option>
-    </mat-select>
+  <mat-form-field>
+      <mat-label>{{columntitle | titlecase}}:</mat-label>
+      <mat-select [(value)]="selected" 
+      (selectionChange)="detectChange(columnValue)">
+        <mat-option *ngFor="let item of data" [value]="item.name">
+        {{item.name}}
+        </mat-option>
+      </mat-select>
+  </mat-form-field>    
   `
 })
 export class RdpSelectEditorComponent implements OnInit {
index 8a96712..a0e2b01 100644 (file)
@@ -2,7 +2,7 @@
   ============LICENSE_START==========================================
   ONAP Portal- SDK
   ===================================================================
-  Copyright (C) 2019 AT&T Intellectual Property. All rights reserved.
+  Copyright (C) 2020 AT&T Intellectual Property. All rights reserved.
   ===================================================================
  
   Unless otherwise specified, all software contained herein is licensed
   
     <div class="modal-body">
       <!-- This is the modal body where fields has to apper with respect to their field type -->
-      <div *ngFor="let column of columnsInfoList">
-          {{column.dispalyTitle | titlecase}}
+      <div *ngFor="let column of columnsInfoList" class="elementsContainer">
           <div [ngSwitch]="column.type">
-            <div *ngSwitchCase="'text'">
+            <div *ngSwitchCase="'text'" class="groupItem">
+              <label class="item-label">{{column.dispalyTitle | titlecase}}:</label><br>
               <rdp-input-editor (changedColumnValue)="columnDataChanged($event, column.title)" 
                 rowdata="{{selectedRowData}}" 
                 columntitle="{{column.title}}" 
               >
               </rdp-input-editor>
             </div>
-            <div *ngSwitchCase="'dropdown'">
+            <div *ngSwitchCase="'dropdown'" class="groupItem">
               <rdp-select-editor (changedColumnValue)="columnDataChanged($event, column.title)"
                rowdata="{{selectedRowData}}" 
                [data]="column.listData" 
                columntitle="{{column.title}}"></rdp-select-editor>
             </div> 
-            <div *ngSwitchCase="'textarea'">
+            <div *ngSwitchCase="'textarea'" class="groupItem">
+              <label class="item-label">{{column.dispalyTitle | titlecase}}:</label><br>
               <rdp-textarea-editor rowdata="{{selectedRowData}}" columntitle="{{column.title}}"></rdp-textarea-editor>
             </div> 
-            <div *ngSwitchCase="'checkbox'">
+            <div *ngSwitchCase="'checkbox'" class="groupItem">
+              <label class="item-label">{{column.dispalyTitle | titlecase}}:</label><br>
               <rdp-checkbox-editor rowdata="{{selectedRowData}}" columntitle="{{column.title}}"></rdp-checkbox-editor>
             </div> 
-            <div *ngSwitchCase="'radio'">
+            <div *ngSwitchCase="'radio'" class="groupItem">
+              <label class="item-label">{{column.dispalyTitle | titlecase}}:</label><br>
               <rdp-radio-editor (changedColumnValue)="columnDataChanged($event, column.title)"
               [data]="column.listData" 
                rowdata="{{selectedRowData}}" 
                columntitle="{{column.title}}"></rdp-radio-editor>
             </div>
-            <div *ngSwitchCase="'datepicker'">
+            <div *ngSwitchCase="'datepicker'" class="groupItem">
+              <label class="item-label">{{column.dispalyTitle | titlecase}}:</label><br>
               <rdp-datepicker-editor rowdata="{{selectedRowData}}" columntitle="{{column.title}}"></rdp-datepicker-editor>
             </div>
-            <div *ngSwitchDefault>
+            <div *ngSwitchDefault class="groupItem">
+                <label class="item-label">{{column.dispalyTitle | titlecase}}:</label><br>
                 <rdp-input-editor (changedColumnValue)="columnDataChanged($event, column.title)" 
                 rowdata="{{selectedRowData}}" columntitle="{{column.title}}"></rdp-input-editor>
             </div>      
index e69de29..c0c95d9 100644 (file)
@@ -0,0 +1,63 @@
+/*
+ * ============LICENSE_START==========================================
+ * ONAP Portal SDK
+ * ===================================================================
+ * Copyright © 2020 AT&T Intellectual Property. All rights reserved.
+ * ===================================================================
+ *
+ * Unless otherwise specified, all software contained herein is licensed
+ * under the Apache License, Version 2.0 (the "License");
+ * you may not use this software except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *             http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * Unless otherwise specified, all documentation contained herein is licensed
+ * under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+ * you may not use this documentation except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *             https://creativecommons.org/licenses/by/4.0/
+ *
+ * Unless required by applicable law or agreed to in writing, documentation
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * ============LICENSE_END============================================
+ *
+ * 
+ */
+
+::ng-deep .modal-dialog { 
+    max-width: 1200px;
+    width: 855px;
+    overflow-x: auto;
+    overflow-y: auto;
+}
+
+
+.elementsContainer{
+    display: inline-flex;
+}
+
+.groupItem{
+    margin-right: 11px;
+    margin-bottom: 10px;
+}
+
+.form-field{
+    height: 30px;
+    width: 198px
+}
+
+.item-label{
+    margin-bottom: 1px;
+}
\ No newline at end of file