diff --git a/frontend/src/app/app.component.scss b/frontend/src/app/app.component.scss index e66e00e45d..3b245d2d8e 100644 --- a/frontend/src/app/app.component.scss +++ b/frontend/src/app/app.component.scss @@ -467,6 +467,11 @@ body { padding-top: 12px; } -::ng-deep td.propRowCell.cellName { +::ng-deep td.propRowCell.cellName, +::ng-deep .propRow .propRowCell{ align-content: center; } + +::ng-deep .propRow .propRowCell .remove-prop { + top: 10px !important; +} diff --git a/frontend/src/app/modules/analytics/compare-policy/compare-policy.component.html b/frontend/src/app/modules/analytics/compare-policy/compare-policy.component.html index 74ed40e181..6226a11e41 100644 --- a/frontend/src/app/modules/analytics/compare-policy/compare-policy.component.html +++ b/frontend/src/app/modules/analytics/compare-policy/compare-policy.component.html @@ -206,18 +206,24 @@
- - - - - - - - - - - -
{{ column.label }}
{{ row[column.name] }}
+ + + + + {{ column.label }} + + + + + + + + {{ row[column.name] }} + + + + +
diff --git a/frontend/src/app/modules/analytics/compare-policy/compare-policy.component.scss b/frontend/src/app/modules/analytics/compare-policy/compare-policy.component.scss index ca08093eec..efd9a88005 100644 --- a/frontend/src/app/modules/analytics/compare-policy/compare-policy.component.scss +++ b/frontend/src/app/modules/analytics/compare-policy/compare-policy.component.scss @@ -604,24 +604,24 @@ display: block; } -.merge-table-content::ng-deep mat-row[type="FULL"]:not([rate="100%"]) { +::ng-deep [type="FULL"]:not([rate="100%"]) { background: #fffada; } -.merge-table-content::ng-deep mat-row[type="FULL"] { +::ng-deep [type="FULL"] { background: #d0ffd6; } -.merge-table-content::ng-deep mat-row[type="PARTLY"] { +::ng-deep [type="PARTLY"] { background: #fffada; } -.merge-table-content::ng-deep mat-row[type="LEFT"], -.merge-table-content::ng-deep mat-row[type="RIGHT"] { +::ng-deep [type="LEFT"], +::ng-deep [type="RIGHT"] { background: #ffc5c6; } -.merge-table-content::ng-deep mat-row[type="PARTLY"][rate="100%"] { +::ng-deep [type="PARTLY"][rate="100%"] { background: linear-gradient(45deg, #d0ffd6 48%, #fffada 52%); } diff --git a/frontend/src/app/modules/analytics/compare-policy/compare-policy.component.ts b/frontend/src/app/modules/analytics/compare-policy/compare-policy.component.ts index e88ad0e2ba..32aa0957ac 100644 --- a/frontend/src/app/modules/analytics/compare-policy/compare-policy.component.ts +++ b/frontend/src/app/modules/analytics/compare-policy/compare-policy.component.ts @@ -93,9 +93,13 @@ export class ComparePolicyComponent implements OnInit { this.columns = blocks?.columns || []; + console.log('this.columns', this.columns) + this.displayedColumns = this.columns .filter(c => c.label) .map(c => c.name); + + console.log('this.displayedColumns', this.displayedColumns) this.onRender(); } @@ -156,4 +160,8 @@ export class ComparePolicyComponent implements OnInit { } return policy.id; } + + isObject(value: any): boolean { + return value !== null && typeof value === 'object'; + } } diff --git a/frontend/src/app/modules/policy-engine/policy-configuration/blocks/documents/document-validator-config/document-validator-config.component.html b/frontend/src/app/modules/policy-engine/policy-configuration/blocks/documents/document-validator-config/document-validator-config.component.html index 655f244a84..a9d50648b0 100644 --- a/frontend/src/app/modules/policy-engine/policy-configuration/blocks/documents/document-validator-config/document-validator-config.component.html +++ b/frontend/src/app/modules/policy-engine/policy-configuration/blocks/documents/document-validator-config/document-validator-config.component.html @@ -8,6 +8,7 @@ [(ngModel)]="properties.documentType" [disabled]="readonly" (onChange)="onSave()" + [appendTo]="'body'" placeholder="Select a document type" [options]="documentTypeOptions"> diff --git a/frontend/src/app/modules/policy-engine/policy-configuration/blocks/documents/request-addon-config/request-addon-config.component.html b/frontend/src/app/modules/policy-engine/policy-configuration/blocks/documents/request-addon-config/request-addon-config.component.html index 09724d6b95..30e4cf14bf 100644 --- a/frontend/src/app/modules/policy-engine/policy-configuration/blocks/documents/request-addon-config/request-addon-config.component.html +++ b/frontend/src/app/modules/policy-engine/policy-configuration/blocks/documents/request-addon-config/request-addon-config.component.html @@ -42,7 +42,9 @@ [disabled]="readonly" (onChange)="onSave()" placeholder="Select an ID type" - [options]="idTypeOptions"> + [options]="idTypeOptions" + [appendTo]="'body'" + > @@ -107,6 +109,7 @@ placeholder="Select a value" [options]="getPresetOptions()" optionLabel="label" + optionValue="value" [appendTo]="'body'" > diff --git a/frontend/src/app/modules/policy-engine/policy-configuration/blocks/report/report-item-config/report-item-config.component.scss b/frontend/src/app/modules/policy-engine/policy-configuration/blocks/report/report-item-config/report-item-config.component.scss index 9773081587..70e79e8106 100644 --- a/frontend/src/app/modules/policy-engine/policy-configuration/blocks/report/report-item-config/report-item-config.component.scss +++ b/frontend/src/app/modules/policy-engine/policy-configuration/blocks/report/report-item-config/report-item-config.component.scss @@ -10,9 +10,15 @@ } .file-action-button { - height: 100%; - width: 20px; + //height: 100%; width: 23px; + background: white; + border: none; + margin-top: 12px; + + i { + position: relative; + } } .file-spinner { @@ -26,4 +32,4 @@ .icon-container { display: flex; -} \ No newline at end of file +} diff --git a/frontend/src/app/modules/policy-engine/policy-viewer/blocks/request-document-block/request-document-block.component.scss b/frontend/src/app/modules/policy-engine/policy-viewer/blocks/request-document-block/request-document-block.component.scss index a84b4562fa..645fdd4785 100644 --- a/frontend/src/app/modules/policy-engine/policy-viewer/blocks/request-document-block/request-document-block.component.scss +++ b/frontend/src/app/modules/policy-engine/policy-viewer/blocks/request-document-block/request-document-block.component.scss @@ -97,7 +97,7 @@ } } - width: 190px; + //width: 190px; overflow: hidden; }