diff --git a/apps/red-ui/src/app/components/downloads-list-screen/downloads-list-screen.component.html b/apps/red-ui/src/app/components/downloads-list-screen/downloads-list-screen.component.html index a5447c1df..2c7929dc1 100644 --- a/apps/red-ui/src/app/components/downloads-list-screen/downloads-list-screen.component.html +++ b/apps/red-ui/src/app/components/downloads-list-screen/downloads-list-screen.component.html @@ -6,7 +6,7 @@
-
+
{{ 'downloads-list.table-header.title' | translate: { length: fileDownloadService.downloads.length } }} diff --git a/apps/red-ui/src/app/components/downloads-list-screen/downloads-list-screen.component.scss b/apps/red-ui/src/app/components/downloads-list-screen/downloads-list-screen.component.scss index dc3cb572b..f37816eb9 100644 --- a/apps/red-ui/src/app/components/downloads-list-screen/downloads-list-screen.component.scss +++ b/apps/red-ui/src/app/components/downloads-list-screen/downloads-list-screen.component.scss @@ -1,4 +1,4 @@ -.left-container { +.content-container { width: 100vw; cdk-virtual-scroll-viewport { diff --git a/apps/red-ui/src/app/components/user-profile/user-profile-screen.component.html b/apps/red-ui/src/app/components/user-profile/user-profile-screen.component.html index ecd08b43d..298361084 100644 --- a/apps/red-ui/src/app/components/user-profile/user-profile-screen.component.html +++ b/apps/red-ui/src/app/components/user-profile/user-profile-screen.component.html @@ -1,5 +1,5 @@
-
+
diff --git a/apps/red-ui/src/app/components/user-profile/user-profile-screen.component.scss b/apps/red-ui/src/app/components/user-profile/user-profile-screen.component.scss index b0efc79c6..ea43e6f7f 100644 --- a/apps/red-ui/src/app/components/user-profile/user-profile-screen.component.scss +++ b/apps/red-ui/src/app/components/user-profile/user-profile-screen.component.scss @@ -1,6 +1,6 @@ @import '../../../assets/styles/red-mixins'; -.left-container { +.content-container { background-color: $grey-2; justify-content: center; @include scroll-bar; diff --git a/apps/red-ui/src/app/modules/admin/screens/audit/audit-screen.component.html b/apps/red-ui/src/app/modules/admin/screens/audit/audit-screen.component.html index fe6f31a46..93aff27aa 100644 --- a/apps/red-ui/src/app/modules/admin/screens/audit/audit-screen.component.html +++ b/apps/red-ui/src/app/modules/admin/screens/audit/audit-screen.component.html @@ -14,7 +14,7 @@
-
+
{{ 'audit-screen.table-header.title' | translate: { length: logs?.totalHits || 0 } }} diff --git a/apps/red-ui/src/app/modules/admin/screens/audit/audit-screen.component.scss b/apps/red-ui/src/app/modules/admin/screens/audit/audit-screen.component.scss index d0c85b8cf..f67c74342 100644 --- a/apps/red-ui/src/app/modules/admin/screens/audit/audit-screen.component.scss +++ b/apps/red-ui/src/app/modules/admin/screens/audit/audit-screen.component.scss @@ -1,4 +1,4 @@ -.left-container { +.content-container { width: 100vw; .header-item { diff --git a/apps/red-ui/src/app/modules/admin/screens/default-colors/default-colors-screen.component.html b/apps/red-ui/src/app/modules/admin/screens/default-colors/default-colors-screen.component.html index f2eecf50f..dfcbf457f 100644 --- a/apps/red-ui/src/app/modules/admin/screens/default-colors/default-colors-screen.component.html +++ b/apps/red-ui/src/app/modules/admin/screens/default-colors/default-colors-screen.component.html @@ -12,7 +12,7 @@
-
+
{{ 'default-colors-screen.table-header.title' | translate: { length: colors.length } }} diff --git a/apps/red-ui/src/app/modules/admin/screens/default-colors/default-colors-screen.component.scss b/apps/red-ui/src/app/modules/admin/screens/default-colors/default-colors-screen.component.scss index caf00513b..2379ca3d7 100644 --- a/apps/red-ui/src/app/modules/admin/screens/default-colors/default-colors-screen.component.scss +++ b/apps/red-ui/src/app/modules/admin/screens/default-colors/default-colors-screen.component.scss @@ -1,4 +1,4 @@ -.left-container { +.content-container { width: 100vw; cdk-virtual-scroll-viewport { diff --git a/apps/red-ui/src/app/modules/admin/screens/dictionary-listing/dictionary-listing-screen.component.html b/apps/red-ui/src/app/modules/admin/screens/dictionary-listing/dictionary-listing-screen.component.html index 695d1740e..52aad4807 100644 --- a/apps/red-ui/src/app/modules/admin/screens/dictionary-listing/dictionary-listing-screen.component.html +++ b/apps/red-ui/src/app/modules/admin/screens/dictionary-listing/dictionary-listing-screen.component.html @@ -12,7 +12,7 @@
-
+
diff --git a/apps/red-ui/src/app/modules/admin/screens/dictionary-listing/dictionary-listing-screen.component.scss b/apps/red-ui/src/app/modules/admin/screens/dictionary-listing/dictionary-listing-screen.component.scss index 99b012114..ecc1ef86c 100644 --- a/apps/red-ui/src/app/modules/admin/screens/dictionary-listing/dictionary-listing-screen.component.scss +++ b/apps/red-ui/src/app/modules/admin/screens/dictionary-listing/dictionary-listing-screen.component.scss @@ -21,7 +21,7 @@ redaction-table-col-name::ng-deep { } } -.left-container { +.content-container { width: calc(100vw - 353px); cdk-virtual-scroll-viewport { diff --git a/apps/red-ui/src/app/modules/admin/screens/dictionary-overview/dictionary-overview-screen.component.html b/apps/red-ui/src/app/modules/admin/screens/dictionary-overview/dictionary-overview-screen.component.html index dc0f181d7..f1eda64f4 100644 --- a/apps/red-ui/src/app/modules/admin/screens/dictionary-overview/dictionary-overview-screen.component.html +++ b/apps/red-ui/src/app/modules/admin/screens/dictionary-overview/dictionary-overview-screen.component.html @@ -51,7 +51,7 @@
-
+
-
-
+
+
diff --git a/apps/red-ui/src/app/modules/admin/screens/digital-signature/digital-signature-screen.component.scss b/apps/red-ui/src/app/modules/admin/screens/digital-signature/digital-signature-screen.component.scss index 0234418a4..70c529036 100644 --- a/apps/red-ui/src/app/modules/admin/screens/digital-signature/digital-signature-screen.component.scss +++ b/apps/red-ui/src/app/modules/admin/screens/digital-signature/digital-signature-screen.component.scss @@ -1,11 +1,11 @@ @import '../../../../../assets/styles/red-mixins'; @import '../../../../../assets/styles/red-variables'; -.left-container { +.content-container { width: 100vw; @include inset-shadow; - .left-container-content { + .content-container-content { margin: 20px; } } diff --git a/apps/red-ui/src/app/modules/admin/screens/file-attributes-csv-import-dialog/file-attributes-csv-import-dialog.component.html b/apps/red-ui/src/app/modules/admin/screens/file-attributes-csv-import-dialog/file-attributes-csv-import-dialog.component.html index 61ec231ca..f6168e147 100644 --- a/apps/red-ui/src/app/modules/admin/screens/file-attributes-csv-import-dialog/file-attributes-csv-import-dialog.component.html +++ b/apps/red-ui/src/app/modules/admin/screens/file-attributes-csv-import-dialog/file-attributes-csv-import-dialog.component.html @@ -4,59 +4,79 @@
-
- {{ csvFile.name }} -
+
{{ csvFile.name }}
{{ 'file-attributes-csv-import.total-rows' | translate: { rows: parseResult?.data?.length } }}
-
- - {{ 'file-attributes-csv-import.key-column' | translate }} - - - {{ field }} - - - -
+ +
+ + {{ 'file-attributes-csv-import.key-column' | translate }} + + + {{ field }} + + + +
-
- - -
+
+ + +
-
- - -
+
+ + +
+
-
- {{ 'file-attributes-csv-import.available' | translate: { value: parseResult?.meta?.fields.length } }} +
+ {{ + 'file-attributes-csv-import.available' | translate: { value: parseResult?.meta?.fields.length } + }} + {{ 'file-attributes-csv-import.selected' | translate: { value: activeFields.length } }}
-
- {{ 'file-attributes-csv-import.selected' | translate: { value: selectedFields.length } }} +
+ +
-
+
- {{ field }} + {{ field.csvColumn }}
-
{{ getEntries(field) }} entries
-
Sample: {{ getSample(field) }}
+
{{ getEntries(field.csvColumn) }} entries
+
Sample: {{ getSample(field.csvColumn) }}
@@ -67,22 +87,161 @@ {{ 'file-attributes-csv-import.csv-column' | translate }}
+
+
+ +
+ {{ row[hoveredColumn] }} +
+
+
-
-
- +
+
+
+
+ + +
+ + {{ 'file-attributes-csv-import.table-header.title' | translate: { length: activeFields.length } }} + + + + + + +
+ +
+
+ + + + + + + + + +
+
+
+ + + +
+
+
+ +
+
+
+ {{ field.name }} +
+
+
+ +
+
+ + + + + + + + +
+
+
+ + + + {{ 'file-attributes-csv-import.types.' + type | translate }} + + + +
+
+
+ +
+
+
+
+ + +
+
+
+
+
- - +
{{ 'file-attributes-csv-import.cancel' | translate }}
diff --git a/apps/red-ui/src/app/modules/admin/screens/file-attributes-csv-import-dialog/file-attributes-csv-import-dialog.component.scss b/apps/red-ui/src/app/modules/admin/screens/file-attributes-csv-import-dialog/file-attributes-csv-import-dialog.component.scss index 11f79901c..b420b6ef3 100644 --- a/apps/red-ui/src/app/modules/admin/screens/file-attributes-csv-import-dialog/file-attributes-csv-import-dialog.component.scss +++ b/apps/red-ui/src/app/modules/admin/screens/file-attributes-csv-import-dialog/file-attributes-csv-import-dialog.component.scss @@ -1,4 +1,5 @@ @import '../../../../../assets/styles/red-variables'; +@import '../../../../../assets/styles/red-mixins'; .sub-header { display: flex; @@ -6,100 +7,223 @@ margin-bottom: 25px; .left { - width: 375px; display: flex; + justify-content: center; flex-direction: column; + padding-left: 32px; + min-width: 376px; + box-sizing: border-box; + border-right: 1px solid $separator; + + .info { + margin-bottom: 8px; + + > span { + font-weight: 500; + } + } .large-label { font-weight: bold; } } - .right { + .right > form { display: flex; flex-direction: row; justify-content: center; align-items: center; + padding-left: 16px; .red-input-group { - margin-left: 8px; - margin-right: 8px; - height: 60px; + margin: 0 8px; } } } .dialog-content { - padding-bottom: 0; + padding: 24px 0 0; } .csv-part { - margin-left: -32px; - margin-right: -32px; display: flex; max-height: calc(90vh - 251px); .csv-part-header { height: 50px; + box-sizing: border-box; background: $white; - border-top: 1px solid $grey-4; - border-bottom: 1px solid $grey-4; + border-top: 1px solid $separator; + border-bottom: 1px solid $separator; display: flex; align-items: center; - padding-left: 16px; - padding-right: 16px; + justify-content: space-between; + padding: 0 16px; + + > :not(.quick-activation) > *:not(:last-child)::after { + content: '-'; + margin: 0 4px; + } + + .quick-activation > :not(:last-child) { + margin-right: 10px; + } } - .left { + .csv-part-content { + overflow: auto; + @include no-scroll-bar; + height: calc(100% - 51px); + font-size: 12px; + + .no-hovered-column { + height: 100%; + margin: 0 10px; + display: flex; + align-items: center; + justify-content: center; + text-align: center; + color: $grey-7; + line-height: 15px; + font-weight: 500; + } + + > *:not(.no-hovered-column) { + height: 30px; + border-bottom: 1px solid $separator; + display: flex; + padding: 0 16px; + align-items: center; + @include line-clamp(1); + line-height: 30px; + } + } + + > .left { width: 375px; background: $grey-2; .csv-header-pill-content { overflow: auto; - padding-top: 7px; - padding-bottom: 7px; + padding: 4px 10px; background: $grey-2; - height: calc(100% - 65px); + height: calc(100% - 58px); + @include no-scroll-bar; .csv-header-pill { - height: 32px; - width: 325px; - margin: 3px 10px; + min-height: 32px; + margin: 6px auto; border-radius: 8px; padding: 10px; background: $white; - + cursor: pointer; display: flex; flex-direction: column; - .name { - } .secondary { display: flex; justify-content: space-between; + margin-top: 2px; + + .entry-count { + white-space: nowrap; + margin-right: 10px; + } .sample { - max-width: 200px; - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; + @include line-clamp(1); } } + + &.selected { + background-color: $primary; + color: $white; + } } } - border-right: 1px solid $grey-4; + border-right: 1px solid $separator; } - .center { - width: 149px; + > .center { + width: 150px; + min-width: 150px; background: $grey-2; - border-right: 1px solid $grey-4; + border-right: 1px solid $separator; } - .right { - overflow: auto; - max-width: calc(90vw - 525px); - flex: 1 1 auto; + > .content-container { + width: 100%; + + redaction-table-col-name::ng-deep { + > div { + padding: 0 13px 0 10px !important; + + &.name { + padding-left: 22px !important; + } + } + } + + .header-item { + padding: 0 24px 0 10px; + box-shadow: none; + border-top: 1px solid $separator; + + .all-caps-label { + margin-right: 10px; + } + } + + cdk-virtual-scroll-viewport { + height: calc(100% - 80px); + + ::ng-deep.cdk-virtual-scroll-content-wrapper { + grid-template-columns: auto 2fr 150px auto auto auto 11px; + + .table-item { + > div { + height: 50px; + + &:not(.scrollbar-placeholder) { + padding-left: 10px; + + &.center { + align-items: center; + } + } + + &.name { + flex-direction: row; + align-items: center; + justify-content: flex-start; + + &:not(.editing) { + padding-left: 22px; + } + + .edit-name-button { + display: none; + } + + redaction-circle-button:first-of-type { + margin-left: 7px; + margin-right: 2px; + } + } + } + + &:hover .name .edit-name-button { + display: block; + } + } + } + + &.has-scrollbar:hover { + ::ng-deep.cdk-virtual-scroll-content-wrapper { + grid-template-columns: auto 2fr 150px auto auto auto; + } + } + } } } diff --git a/apps/red-ui/src/app/modules/admin/screens/file-attributes-csv-import-dialog/file-attributes-csv-import-dialog.component.ts b/apps/red-ui/src/app/modules/admin/screens/file-attributes-csv-import-dialog/file-attributes-csv-import-dialog.component.ts index f4b8dba65..0502a37a2 100644 --- a/apps/red-ui/src/app/modules/admin/screens/file-attributes-csv-import-dialog/file-attributes-csv-import-dialog.component.ts +++ b/apps/red-ui/src/app/modules/admin/screens/file-attributes-csv-import-dialog/file-attributes-csv-import-dialog.component.ts @@ -1,8 +1,26 @@ -import { Component, Inject, OnInit } from '@angular/core'; -import { FormBuilder } from '@angular/forms'; +import { Component, Inject, OnInit, ViewChild } from '@angular/core'; +import { FormBuilder, FormGroup, Validators } from '@angular/forms'; import { AppStateService } from '../../../../state/app-state.service'; import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog'; import * as Papa from 'papaparse'; +import { FileAttributeConfig, FileAttributesConfig, FileAttributesControllerService } from '@redaction/red-ui-http'; +import { CdkVirtualScrollViewport } from '@angular/cdk/scrolling'; + +enum FieldType { + Text = 'Text', + Number = 'Number', + Date = 'Date' +} + +interface Field { + csvColumn: string; + name: string; + type: FieldType; + readonly: boolean; + display: boolean; + editingName?: boolean; + temporaryName?: string; +} @Component({ selector: 'redaction-file-attributes-csv-import-dialog', @@ -12,48 +30,65 @@ import * as Papa from 'papaparse'; export class FileAttributesCsvImportDialogComponent implements OnInit { public csvFile: File; public ruleSetId: string; - public parseResult: any; - public encoding = 'UTF-8'; - public delimiter: string = undefined; + public parseResult: { data: any[]; errors: any[]; meta: any; fields: Field[] }; + public hoveredColumn: string; + public activeFields: Field[] = []; + public selectedFields: string[] = []; + public baseConfigForm: FormGroup; - selectedFields: any[] = []; + @ViewChild(CdkVirtualScrollViewport, { static: false }) cdkVirtualScrollViewport: CdkVirtualScrollViewport; constructor( private readonly _appStateService: AppStateService, private readonly _formBuilder: FormBuilder, + private readonly _fileAttributesControllerService: FileAttributesControllerService, public dialogRef: MatDialogRef, @Inject(MAT_DIALOG_DATA) public data: { csv: File; ruleSetId: string } ) { this.csvFile = data.csv; this.ruleSetId = data.ruleSetId; + this.baseConfigForm = this._formBuilder.group({ + filenameMappingColumnHeaderName: [undefined, Validators.required], + delimiter: [undefined, Validators.required], + encoding: ['UTF-8', Validators.required] + }); + this._readFile(); } - ngOnInit(): void {} + ngOnInit(): void { + setTimeout(() => { + this.cdkVirtualScrollViewport.checkViewportSize(); + }, 500); + } private _readFile() { const reader = new FileReader(); reader.addEventListener('load', async (event) => { const parsedCsv = event.target.result; - this.parseResult = Papa.parse(parsedCsv, { header: true, delimiter: this.delimiter }); - if (!this.delimiter) { - this.delimiter = this.parseResult.meta.delimiter; + this.parseResult = Papa.parse(parsedCsv, { + header: true, + delimiter: this.baseConfigForm.get('delimiter').value + }); + if (!this.baseConfigForm.get('delimiter').value) { + this.baseConfigForm.patchValue({ delimiter: this.parseResult.meta.delimiter }); } + this.parseResult.fields = this.parseResult.meta.fields.map((field) => this._buildAttribute(field)); console.log(this.parseResult); }); - reader.readAsText(this.csvFile, this.encoding); + reader.readAsText(this.csvFile, this.baseConfigForm.get('encoding').value); } - getSample(field: string) { - return this.parseResult?.data ? this.parseResult?.data[0][field] : ''; + public getSample(csvColumn: string) { + return this.parseResult?.data ? this.parseResult?.data[0][csvColumn] : ''; } - getEntries(field: any) { + public getEntries(csvColumn: string) { if (this.parseResult?.data) { let count = 0; for (const entry of this.parseResult.data) { - if (entry[field]) { + if (entry[csvColumn]) { count++; } } @@ -62,4 +97,100 @@ export class FileAttributesCsvImportDialogComponent implements OnInit { return 0; } } + + public isActive(field: Field): boolean { + return this.activeFields.indexOf(field) !== -1; + } + + public toggleFieldActive(field: Field) { + if (!this.isActive(field)) { + this.activeFields = [...this.activeFields, field]; + } else { + this.activeFields.splice(this.activeFields.indexOf(field), 1); + this.activeFields = [...this.activeFields]; + if (this.isFieldSelected(field.csvColumn)) { + this.toggleFieldSelected(field.csvColumn); + } + } + } + + private _buildAttribute(csvColumn: string): Field { + const sample = this.getSample(csvColumn); + const isNumber = sample && !isNaN(sample); + return { + csvColumn, + name: csvColumn, + temporaryName: csvColumn, + type: isNumber ? FieldType.Number : FieldType.Text, + readonly: false, + display: true + }; + } + + public activateAll() { + this.activeFields = [...this.parseResult.fields]; + } + + public deactivateAll() { + this.activeFields = []; + this.selectedFields = []; + } + + public toggleFieldSelected(field: string) { + const idx = this.selectedFields.indexOf(field); + if (idx === -1) { + this.selectedFields.push(field); + } else { + this.selectedFields.splice(idx, 1); + } + } + + public toggleSelectAll() { + if (this.areSomeFieldsSelected) { + this.selectedFields = []; + } else { + this.selectedFields = this.activeFields.map((field) => field.csvColumn); + } + } + + public get areAllFieldsSelected() { + return this.activeFields.length !== 0 && this.selectedFields.length === this.activeFields.length; + } + + public get areSomeFieldsSelected() { + return this.selectedFields.length > 0; + } + + public isFieldSelected(field: string) { + return this.selectedFields.indexOf(field) !== -1; + } + + public deactivateSelection() { + this.activeFields = [...this.activeFields.filter((field) => !this.isFieldSelected(field.csvColumn))]; + this.selectedFields = []; + } + + public async save() { + const promises: Promise[] = [ + this._fileAttributesControllerService.addOrUpdateFileAttributesBaseConfig(this.baseConfigForm.getRawValue(), this.ruleSetId).toPromise() + ]; + + for (const field of this.activeFields) { + promises.push( + this._fileAttributesControllerService + .setFileAttributesConfiguration( + { + csvColumnHeader: field.csvColumn, + editable: !field.readonly, + label: field.name, + visible: field.display + }, + this.ruleSetId + ) + .toPromise() + ); + } + await Promise.all(promises); + this.dialogRef.close(true); + } } diff --git a/apps/red-ui/src/app/modules/admin/screens/file-attributes-listing/file-attributes-listing-screen.component.html b/apps/red-ui/src/app/modules/admin/screens/file-attributes-listing/file-attributes-listing-screen.component.html index 72c37c21d..2ceed9c98 100644 --- a/apps/red-ui/src/app/modules/admin/screens/file-attributes-listing/file-attributes-listing-screen.component.html +++ b/apps/red-ui/src/app/modules/admin/screens/file-attributes-listing/file-attributes-listing-screen.component.html @@ -10,7 +10,7 @@
-
+
-
- + - + - -
+
diff --git a/apps/red-ui/src/app/modules/admin/screens/file-attributes-listing/file-attributes-listing-screen.component.scss b/apps/red-ui/src/app/modules/admin/screens/file-attributes-listing/file-attributes-listing-screen.component.scss index 1938e2bba..54a860447 100644 --- a/apps/red-ui/src/app/modules/admin/screens/file-attributes-listing/file-attributes-listing-screen.component.scss +++ b/apps/red-ui/src/app/modules/admin/screens/file-attributes-listing/file-attributes-listing-screen.component.scss @@ -13,7 +13,7 @@ redaction-table-col-name::ng-deep { } } -.left-container { +.content-container { width: 100vw; .header-item { @@ -23,7 +23,7 @@ redaction-table-col-name::ng-deep { justify-content: flex-end; > *:not(:last-child) { - margin-right: 16px; + margin-right: 10px; } } } diff --git a/apps/red-ui/src/app/modules/admin/screens/file-attributes-listing/file-attributes-listing-screen.component.ts b/apps/red-ui/src/app/modules/admin/screens/file-attributes-listing/file-attributes-listing-screen.component.ts index b49d1c032..d257cb335 100644 --- a/apps/red-ui/src/app/modules/admin/screens/file-attributes-listing/file-attributes-listing-screen.component.ts +++ b/apps/red-ui/src/app/modules/admin/screens/file-attributes-listing/file-attributes-listing-screen.component.ts @@ -1,4 +1,4 @@ -import { Component, OnInit } from '@angular/core'; +import { Component, ElementRef, OnInit, ViewChild } from '@angular/core'; import { PermissionsService } from '../../../../services/permissions.service'; import { FormBuilder, FormGroup } from '@angular/forms'; import { FileAttributeConfig, FileAttributesControllerService } from '@redaction/red-ui-http'; @@ -20,6 +20,8 @@ export class FileAttributesListingScreenComponent implements OnInit { public selectedFileAttributeIds: string[] = []; public viewReady = false; + @ViewChild('fileInput') private _fileInput: ElementRef; + constructor( public readonly permissionsService: PermissionsService, public readonly _sortingService: SortingService, @@ -118,8 +120,9 @@ export class FileAttributesListingScreenComponent implements OnInit { return this.selectedFileAttributeIds.indexOf(attribute.id) !== -1; } - importCSV(files: FileList | File[]) { + public importCSV(files: FileList | File[]) { const csvFile = files[0]; + this._fileInput.nativeElement.value = null; this._dialogService.openImportFileAttributeCSVDialog(csvFile, this._appStateService.activeRuleSetId, async () => { await this._loadData(); diff --git a/apps/red-ui/src/app/modules/admin/screens/license-information/license-information-screen.component.html b/apps/red-ui/src/app/modules/admin/screens/license-information/license-information-screen.component.html index d1122b62e..c940ccbc6 100644 --- a/apps/red-ui/src/app/modules/admin/screens/license-information/license-information-screen.component.html +++ b/apps/red-ui/src/app/modules/admin/screens/license-information/license-information-screen.component.html @@ -16,7 +16,7 @@
-
+
diff --git a/apps/red-ui/src/app/modules/admin/screens/license-information/license-information-screen.component.scss b/apps/red-ui/src/app/modules/admin/screens/license-information/license-information-screen.component.scss index 4e08ae65d..afa5c1d69 100644 --- a/apps/red-ui/src/app/modules/admin/screens/license-information/license-information-screen.component.scss +++ b/apps/red-ui/src/app/modules/admin/screens/license-information/license-information-screen.component.scss @@ -1,7 +1,7 @@ @import '../../../../../assets/styles/red-mixins'; @import '../../../../../assets/styles/red-variables'; -.left-container { +.content-container { width: 100vw; @include inset-shadow; overflow: auto; diff --git a/apps/red-ui/src/app/modules/admin/screens/rule-sets-listing/rule-sets-listing-screen.component.html b/apps/red-ui/src/app/modules/admin/screens/rule-sets-listing/rule-sets-listing-screen.component.html index d61ce8d6e..dbf71c054 100644 --- a/apps/red-ui/src/app/modules/admin/screens/rule-sets-listing/rule-sets-listing-screen.component.html +++ b/apps/red-ui/src/app/modules/admin/screens/rule-sets-listing/rule-sets-listing-screen.component.html @@ -25,7 +25,7 @@
-
+
-
+
diff --git a/apps/red-ui/src/app/modules/admin/screens/smtp-config/smtp-config-screen.component.scss b/apps/red-ui/src/app/modules/admin/screens/smtp-config/smtp-config-screen.component.scss index 3447b574d..5e8fac9f7 100644 --- a/apps/red-ui/src/app/modules/admin/screens/smtp-config/smtp-config-screen.component.scss +++ b/apps/red-ui/src/app/modules/admin/screens/smtp-config/smtp-config-screen.component.scss @@ -1,7 +1,7 @@ @import '../../../../../assets/styles/red-variables'; @import '../../../../../assets/styles/red-mixins'; -.left-container { +.content-container { width: 100vw; background-color: $grey-2; display: flex; diff --git a/apps/red-ui/src/app/modules/admin/screens/user-listing/user-listing-screen.component.html b/apps/red-ui/src/app/modules/admin/screens/user-listing/user-listing-screen.component.html index 3b20c9a98..7db7f95d2 100644 --- a/apps/red-ui/src/app/modules/admin/screens/user-listing/user-listing-screen.component.html +++ b/apps/red-ui/src/app/modules/admin/screens/user-listing/user-listing-screen.component.html @@ -23,7 +23,7 @@
-
+
-
+
diff --git a/apps/red-ui/src/app/modules/admin/screens/watermark/watermark-screen.component.scss b/apps/red-ui/src/app/modules/admin/screens/watermark/watermark-screen.component.scss index 908eb50b2..ff31b223f 100644 --- a/apps/red-ui/src/app/modules/admin/screens/watermark/watermark-screen.component.scss +++ b/apps/red-ui/src/app/modules/admin/screens/watermark/watermark-screen.component.scss @@ -9,7 +9,7 @@ flex-direction: row-reverse; } -.left-container { +.content-container { width: calc(100vw - 353px); .viewer { @@ -94,11 +94,6 @@ } } -.w-150 { - max-width: 150px; - width: 150px; -} - .mb-5 { margin-bottom: 5px; } diff --git a/apps/red-ui/src/app/modules/admin/services/admin-dialog-service.service.ts b/apps/red-ui/src/app/modules/admin/services/admin-dialog-service.service.ts index 9564a5657..db245ee60 100644 --- a/apps/red-ui/src/app/modules/admin/services/admin-dialog-service.service.ts +++ b/apps/red-ui/src/app/modules/admin/services/admin-dialog-service.service.ts @@ -127,8 +127,7 @@ export class AdminDialogService { public openImportFileAttributeCSVDialog(csv: File, ruleSetId: string, cb?: Function): MatDialogRef { const ref = this._dialog.open(FileAttributesCsvImportDialogComponent, { ...largeDialogConfig, - data: { csv, ruleSetId }, - autoFocus: true + data: { csv, ruleSetId } }); ref.afterClosed().subscribe((result) => { diff --git a/apps/red-ui/src/app/modules/projects/screens/file-preview-screen/file-preview-screen.component.html b/apps/red-ui/src/app/modules/projects/screens/file-preview-screen/file-preview-screen.component.html index 3efa6f1c4..5adc3ea96 100644 --- a/apps/red-ui/src/app/modules/projects/screens/file-preview-screen/file-preview-screen.component.html +++ b/apps/red-ui/src/app/modules/projects/screens/file-preview-screen/file-preview-screen.component.html @@ -30,27 +30,25 @@
- +
{{ appStateService.activeFile.status | translate }} - {{ 'by' | translate }}:{{ 'by' | translate }}:
@@ -62,7 +60,9 @@ >
@@ -190,7 +190,7 @@
-
+
- - +
-
+
{{ 'project-listing.table-header.title' | translate: { length: displayedProjects.length || 0 } }} diff --git a/apps/red-ui/src/app/modules/projects/screens/project-listing-screen/project-listing-screen.component.scss b/apps/red-ui/src/app/modules/projects/screens/project-listing-screen/project-listing-screen.component.scss index d9b0fe708..5f0223e31 100644 --- a/apps/red-ui/src/app/modules/projects/screens/project-listing-screen/project-listing-screen.component.scss +++ b/apps/red-ui/src/app/modules/projects/screens/project-listing-screen/project-listing-screen.component.scss @@ -1,7 +1,7 @@ @import '../../../../../assets/styles/red-mixins'; @import '../../../../../assets/styles/red-variables'; -.left-container { +.content-container { cdk-virtual-scroll-viewport { ::ng-deep.cdk-virtual-scroll-content-wrapper { grid-template-columns: 2fr 1fr 1fr auto 11px; diff --git a/apps/red-ui/src/app/modules/projects/screens/project-overview-screen/project-overview-screen.component.html b/apps/red-ui/src/app/modules/projects/screens/project-overview-screen/project-overview-screen.component.html index 810915b03..8a66a3fc2 100644 --- a/apps/red-ui/src/app/modules/projects/screens/project-overview-screen/project-overview-screen.component.html +++ b/apps/red-ui/src/app/modules/projects/screens/project-overview-screen/project-overview-screen.component.html @@ -82,7 +82,7 @@
-
+
@@ -175,7 +175,7 @@ [class.pointer]="permissionsService.canOpenFile(fileStatus)" [routerLink]="fileLink(fileStatus)" class="table-item" - [class.disabled]='fileStatus.isExcluded' + [class.disabled]="fileStatus.isExcluded" >
diff --git a/apps/red-ui/src/app/modules/projects/screens/project-overview-screen/project-overview-screen.component.scss b/apps/red-ui/src/app/modules/projects/screens/project-overview-screen/project-overview-screen.component.scss index 5dbd733dc..dd6c59430 100644 --- a/apps/red-ui/src/app/modules/projects/screens/project-overview-screen/project-overview-screen.component.scss +++ b/apps/red-ui/src/app/modules/projects/screens/project-overview-screen/project-overview-screen.component.scss @@ -72,7 +72,7 @@ cdk-virtual-scroll-viewport { } } -.left-container { +.content-container { width: calc(100vw - 375px); } diff --git a/apps/red-ui/src/app/modules/shared/components/buttons/circle-button/circle-button.component.html b/apps/red-ui/src/app/modules/shared/components/buttons/circle-button/circle-button.component.html index 9ae2ab412..851878fd7 100644 --- a/apps/red-ui/src/app/modules/shared/components/buttons/circle-button/circle-button.component.html +++ b/apps/red-ui/src/app/modules/shared/components/buttons/circle-button/circle-button.component.html @@ -1,6 +1,6 @@ -
+