From 6c6998e9458c14741169cfbc750092bbc21dee7f Mon Sep 17 00:00:00 2001 From: Nicoleta Panaghiu Date: Mon, 6 Mar 2023 11:33:13 +0200 Subject: [PATCH 01/99] RED-6245: wip landscape page --- .../paginator/paginator.component.html | 13 +++++++ .../paginator/paginator.component.scss | 37 +++++++++++++++++++ .../paginator/paginator.component.ts | 12 ++++++ .../watermark-screen.component.html | 1 + .../watermark-screen.component.scss | 1 + .../watermark-screen.component.ts | 21 +++++++++-- .../screens/watermark/watermark.module.ts | 3 +- 7 files changed, 84 insertions(+), 4 deletions(-) create mode 100644 apps/red-ui/src/app/modules/admin/screens/watermark/paginator/paginator.component.html create mode 100644 apps/red-ui/src/app/modules/admin/screens/watermark/paginator/paginator.component.scss create mode 100644 apps/red-ui/src/app/modules/admin/screens/watermark/paginator/paginator.component.ts diff --git a/apps/red-ui/src/app/modules/admin/screens/watermark/paginator/paginator.component.html b/apps/red-ui/src/app/modules/admin/screens/watermark/paginator/paginator.component.html new file mode 100644 index 000000000..1bfe8cd76 --- /dev/null +++ b/apps/red-ui/src/app/modules/admin/screens/watermark/paginator/paginator.component.html @@ -0,0 +1,13 @@ + diff --git a/apps/red-ui/src/app/modules/admin/screens/watermark/paginator/paginator.component.scss b/apps/red-ui/src/app/modules/admin/screens/watermark/paginator/paginator.component.scss new file mode 100644 index 000000000..f337dee2e --- /dev/null +++ b/apps/red-ui/src/app/modules/admin/screens/watermark/paginator/paginator.component.scss @@ -0,0 +1,37 @@ +.pagination { + z-index: 1; + position: absolute; + bottom: 20px; + right: calc(50% - (var(--viewer-width) / 2)); + transform: translate(-50%); + background: var(--iqser-background); + color: var(--iqser-grey-7); + border: 1px solid var(--iqser-grey-7); + border-radius: 8px; + padding: 6px 2px; + display: flex; + justify-content: center; + align-items: center; + + > div { + height: 16px; + cursor: default; + } + + .separator { + padding-left: 2px; + padding-right: 2px; + } + + .chevron-icon { + height: 16px; + transform: rotate(-90deg); + cursor: pointer; + padding-left: 4px; + padding-right: 4px; + + &:hover { + color: var(--iqser-text); + } + } +} diff --git a/apps/red-ui/src/app/modules/admin/screens/watermark/paginator/paginator.component.ts b/apps/red-ui/src/app/modules/admin/screens/watermark/paginator/paginator.component.ts new file mode 100644 index 000000000..3893f6f6c --- /dev/null +++ b/apps/red-ui/src/app/modules/admin/screens/watermark/paginator/paginator.component.ts @@ -0,0 +1,12 @@ +import { Component, EventEmitter, Input, Output } from '@angular/core'; +import { Observable } from 'rxjs'; + +@Component({ + selector: 'redaction-paginator', + templateUrl: './paginator.component.html', + styleUrls: ['./paginator.component.scss'], +}) +export class PaginatorComponent { + @Input() loaded$: Observable; + @Output() readonly changePage = new EventEmitter(); +} diff --git a/apps/red-ui/src/app/modules/admin/screens/watermark/watermark-screen/watermark-screen.component.html b/apps/red-ui/src/app/modules/admin/screens/watermark/watermark-screen/watermark-screen.component.html index 373bbf0a8..003da0eb8 100644 --- a/apps/red-ui/src/app/modules/admin/screens/watermark/watermark-screen/watermark-screen.component.html +++ b/apps/red-ui/src/app/modules/admin/screens/watermark/watermark-screen/watermark-screen.component.html @@ -1,5 +1,6 @@
+
= {}; @@ -167,6 +169,8 @@ export class WatermarkScreenComponent { this._instance.UI.setTheme(this._userPreferenceService.getTheme()); this._instance.Core.documentViewer.addEventListener('documentLoaded', async () => { + this.#loaded$.next(true); + await this._loadLandscapePage(); this._loadingService.stop(); await this._drawWatermark(); }); @@ -184,6 +188,13 @@ export class WatermarkScreenComponent { this._instance.UI.loadDocument(blobData, { filename: 'blank.pdf' }); } + private async _loadLandscapePage() { + const blankPdf = await this._instance.Core.createDocument('/ui/assets/pdftron/blank.pdf'); + const pageCount = this._instance.Core.documentViewer.getPageCount(); + await this._instance.Core.documentViewer.getDocument().insertPages(blankPdf, [pageCount], pageCount + 1); + await this._instance.Core.documentViewer.getDocument().rotatePages([pageCount + 1], 1); + } + private _disableElements() { this._instance.UI.disableElements(['header', 'toolsHeader', 'pageNavOverlay', 'textPopup']); } @@ -201,11 +212,11 @@ export class WatermarkScreenComponent { this.form.controls.orientation.value, this.form.controls.opacity.value, this.form.controls.hexColor.value, - [1], + [1, 2], this._licenseService.activeLicenseKey, ); this._instance.Core.documentViewer.refreshAll(); - this._instance.Core.documentViewer.updateView([0], 0); + this._instance.Core.documentViewer.updateView([0, 1], 0); } private _getForm() { @@ -225,4 +236,8 @@ export class WatermarkScreenComponent { return form; } + + navigateTo($event: number) { + this._instance.Core.documentViewer.displayPageLocation($event, 0, 0); + } } diff --git a/apps/red-ui/src/app/modules/admin/screens/watermark/watermark.module.ts b/apps/red-ui/src/app/modules/admin/screens/watermark/watermark.module.ts index b33918c7f..a2169c3fb 100644 --- a/apps/red-ui/src/app/modules/admin/screens/watermark/watermark.module.ts +++ b/apps/red-ui/src/app/modules/admin/screens/watermark/watermark.module.ts @@ -18,6 +18,7 @@ import { RedRoleGuard } from '@users/red-role.guard'; import { WATERMARK_ID } from '@red/domain'; import { WatermarkExistsGuard } from '@guards/watermark-exists.guard'; import { TranslateModule } from '@ngx-translate/core'; +import { PaginatorComponent } from './paginator/paginator.component'; const routes = [ { @@ -47,7 +48,7 @@ const routes = [ ]; @NgModule({ - declarations: [WatermarkScreenComponent, WatermarksListingScreenComponent], + declarations: [WatermarkScreenComponent, WatermarksListingScreenComponent, PaginatorComponent], imports: [ RouterModule.forChild(routes), CommonModule, From 20ebaa54b2f7b87eb6a1a66a3e53cff18e3d6cc8 Mon Sep 17 00:00:00 2001 From: Nicoleta Panaghiu Date: Mon, 6 Mar 2023 12:48:13 +0200 Subject: [PATCH 02/99] RED-6245: refactoring --- .../paginator/paginator.component.html | 12 +++++------- .../paginator/paginator.component.scss | 15 ++++++++++----- .../watermark/paginator/paginator.component.ts | 4 +--- .../watermark-screen.component.html | 2 +- .../watermark-screen.component.scss | 1 + .../watermark-screen.component.ts | 8 -------- apps/red-ui/src/assets/pdftron/blank.pdf | Bin 4911 -> 945 bytes 7 files changed, 18 insertions(+), 24 deletions(-) diff --git a/apps/red-ui/src/app/modules/admin/screens/watermark/paginator/paginator.component.html b/apps/red-ui/src/app/modules/admin/screens/watermark/paginator/paginator.component.html index 1bfe8cd76..896efd4d0 100644 --- a/apps/red-ui/src/app/modules/admin/screens/watermark/paginator/paginator.component.html +++ b/apps/red-ui/src/app/modules/admin/screens/watermark/paginator/paginator.component.html @@ -1,13 +1,11 @@ - diff --git a/apps/red-ui/src/app/modules/admin/dialogs/add-edit-dossier-state-dialog/add-edit-dossier-state-dialog.component.scss b/apps/red-ui/src/app/modules/admin/screens/dossier-states-listing/add-edit-dossier-state-dialog/add-edit-dossier-state-dialog.component.scss similarity index 100% rename from apps/red-ui/src/app/modules/admin/dialogs/add-edit-dossier-state-dialog/add-edit-dossier-state-dialog.component.scss rename to apps/red-ui/src/app/modules/admin/screens/dossier-states-listing/add-edit-dossier-state-dialog/add-edit-dossier-state-dialog.component.scss diff --git a/apps/red-ui/src/app/modules/admin/dialogs/add-edit-dossier-state-dialog/add-edit-dossier-state-dialog.component.ts b/apps/red-ui/src/app/modules/admin/screens/dossier-states-listing/add-edit-dossier-state-dialog/add-edit-dossier-state-dialog.component.ts similarity index 92% rename from apps/red-ui/src/app/modules/admin/dialogs/add-edit-dossier-state-dialog/add-edit-dossier-state-dialog.component.ts rename to apps/red-ui/src/app/modules/admin/screens/dossier-states-listing/add-edit-dossier-state-dialog/add-edit-dossier-state-dialog.component.ts index 280674e8f..70f623695 100644 --- a/apps/red-ui/src/app/modules/admin/dialogs/add-edit-dossier-state-dialog/add-edit-dossier-state-dialog.component.ts +++ b/apps/red-ui/src/app/modules/admin/screens/dossier-states-listing/add-edit-dossier-state-dialog/add-edit-dossier-state-dialog.component.ts @@ -6,8 +6,8 @@ import { DossierStatesService } from '@services/entity-services/dossier-states.s import { marker as _ } from '@biesbjerg/ngx-translate-extract-marker'; import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog'; -interface DialogData { - readonly dossierState: IDossierState; +export interface AddEditDossierStateDialogData { + readonly dossierState?: IDossierState; readonly dossierTemplateId: string; } @@ -25,7 +25,7 @@ export class AddEditDossierStateDialogComponent extends BaseDialogComponent { constructor( private readonly _dossierStatesService: DossierStatesService, protected readonly _dialogRef: MatDialogRef, - @Inject(MAT_DIALOG_DATA) readonly data: DialogData, + @Inject(MAT_DIALOG_DATA) readonly data: AddEditDossierStateDialogData, ) { super(_dialogRef, !!data.dossierState); this.form = this.#getForm(); diff --git a/apps/red-ui/src/app/modules/admin/dialogs/confirm-delete-dossier-state-dialog/confirm-delete-dossier-state-dialog.component.html b/apps/red-ui/src/app/modules/admin/screens/dossier-states-listing/confirm-delete-dossier-state-dialog/confirm-delete-dossier-state-dialog.component.html similarity index 100% rename from apps/red-ui/src/app/modules/admin/dialogs/confirm-delete-dossier-state-dialog/confirm-delete-dossier-state-dialog.component.html rename to apps/red-ui/src/app/modules/admin/screens/dossier-states-listing/confirm-delete-dossier-state-dialog/confirm-delete-dossier-state-dialog.component.html diff --git a/apps/red-ui/src/app/modules/admin/dialogs/confirm-delete-dossier-state-dialog/confirm-delete-dossier-state-dialog.component.scss b/apps/red-ui/src/app/modules/admin/screens/dossier-states-listing/confirm-delete-dossier-state-dialog/confirm-delete-dossier-state-dialog.component.scss similarity index 100% rename from apps/red-ui/src/app/modules/admin/dialogs/confirm-delete-dossier-state-dialog/confirm-delete-dossier-state-dialog.component.scss rename to apps/red-ui/src/app/modules/admin/screens/dossier-states-listing/confirm-delete-dossier-state-dialog/confirm-delete-dossier-state-dialog.component.scss diff --git a/apps/red-ui/src/app/modules/admin/dialogs/confirm-delete-dossier-state-dialog/confirm-delete-dossier-state-dialog.component.ts b/apps/red-ui/src/app/modules/admin/screens/dossier-states-listing/confirm-delete-dossier-state-dialog/confirm-delete-dossier-state-dialog.component.ts similarity index 92% rename from apps/red-ui/src/app/modules/admin/dialogs/confirm-delete-dossier-state-dialog/confirm-delete-dossier-state-dialog.component.ts rename to apps/red-ui/src/app/modules/admin/screens/dossier-states-listing/confirm-delete-dossier-state-dialog/confirm-delete-dossier-state-dialog.component.ts index 9a669a851..bf8db1b8b 100644 --- a/apps/red-ui/src/app/modules/admin/dialogs/confirm-delete-dossier-state-dialog/confirm-delete-dossier-state-dialog.component.ts +++ b/apps/red-ui/src/app/modules/admin/screens/dossier-states-listing/confirm-delete-dossier-state-dialog/confirm-delete-dossier-state-dialog.component.ts @@ -1,4 +1,4 @@ -import { ChangeDetectionStrategy, Component, Inject } from '@angular/core'; +import { Component, Inject } from '@angular/core'; import { DossierState } from '@red/domain'; import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog'; import { FormBuilder } from '@angular/forms'; @@ -9,7 +9,7 @@ import { IconButtonTypes, LoadingService, Toaster } from '@iqser/common-ui'; import { ActiveDossiersService } from '@services/dossiers/active-dossiers.service'; import { ArchivedDossiersService } from '@services/dossiers/archived-dossiers.service'; -interface DialogData { +export interface ConfirmDeleteDossierStateDialogData { readonly toBeDeletedState: DossierState; readonly otherStates: DossierState[]; readonly dossierCount: number; @@ -18,7 +18,6 @@ interface DialogData { @Component({ templateUrl: './confirm-delete-dossier-state-dialog.component.html', styleUrls: ['./confirm-delete-dossier-state-dialog.component.scss'], - changeDetection: ChangeDetectionStrategy.OnPush, }) export class ConfirmDeleteDossierStateDialogComponent { readonly iconButtonTypes = IconButtonTypes; @@ -36,7 +35,7 @@ export class ConfirmDeleteDossierStateDialogComponent { private readonly _dialogRef: MatDialogRef, private readonly _activeDossiersService: ActiveDossiersService, private readonly _archivedDossiersService: ArchivedDossiersService, - @Inject(MAT_DIALOG_DATA) readonly data: DialogData, + @Inject(MAT_DIALOG_DATA) readonly data: ConfirmDeleteDossierStateDialogData, ) {} get label(): string { diff --git a/apps/red-ui/src/app/modules/admin/screens/dossier-states-listing/dossier-states-listing-screen.component.html b/apps/red-ui/src/app/modules/admin/screens/dossier-states-listing/dossier-states-listing-screen/dossier-states-listing-screen.component.html similarity index 59% rename from apps/red-ui/src/app/modules/admin/screens/dossier-states-listing/dossier-states-listing-screen.component.html rename to apps/red-ui/src/app/modules/admin/screens/dossier-states-listing/dossier-states-listing-screen/dossier-states-listing-screen.component.html index 0332051c9..dd0ed0200 100644 --- a/apps/red-ui/src/app/modules/admin/screens/dossier-states-listing/dossier-states-listing-screen.component.html +++ b/apps/red-ui/src/app/modules/admin/screens/dossier-states-listing/dossier-states-listing-screen/dossier-states-listing-screen.component.html @@ -52,7 +52,7 @@ > -
-
-
-
-
{{ state.name }}
-
-
- -
- {{ state.rank }} -
- -
- {{ state.dossierCount }} -
- -
-
-
- - - -
-
-
-
+
diff --git a/apps/red-ui/src/app/modules/admin/screens/dossier-states-listing/dossier-states-listing-screen/dossier-states-listing-screen.component.scss b/apps/red-ui/src/app/modules/admin/screens/dossier-states-listing/dossier-states-listing-screen/dossier-states-listing-screen.component.scss new file mode 100644 index 000000000..9c456907d --- /dev/null +++ b/apps/red-ui/src/app/modules/admin/screens/dossier-states-listing/dossier-states-listing-screen/dossier-states-listing-screen.component.scss @@ -0,0 +1,4 @@ +.right-container { + padding: 50px 26px 0; + width: 250px; +} diff --git a/apps/red-ui/src/app/modules/admin/screens/dossier-states-listing/dossier-states-listing-screen.component.ts b/apps/red-ui/src/app/modules/admin/screens/dossier-states-listing/dossier-states-listing-screen/dossier-states-listing-screen.component.ts similarity index 74% rename from apps/red-ui/src/app/modules/admin/screens/dossier-states-listing/dossier-states-listing-screen.component.ts rename to apps/red-ui/src/app/modules/admin/screens/dossier-states-listing/dossier-states-listing-screen/dossier-states-listing-screen.component.ts index 47a73d96d..1fcc76707 100644 --- a/apps/red-ui/src/app/modules/admin/screens/dossier-states-listing/dossier-states-listing-screen.component.ts +++ b/apps/red-ui/src/app/modules/admin/screens/dossier-states-listing/dossier-states-listing-screen/dossier-states-listing-screen.component.ts @@ -1,6 +1,6 @@ import { Component, OnDestroy, OnInit } from '@angular/core'; import { - CircleButtonTypes, + defaultDialogConfig, getParam, IconButtonTypes, ListingComponent, @@ -8,14 +8,18 @@ import { SortingOrders, TableColumnConfig, } from '@iqser/common-ui'; -import { type DonutChartConfig, DOSSIER_TEMPLATE_ID, type DossierState, type IDossierState } from '@red/domain'; +import { type DonutChartConfig, DOSSIER_TEMPLATE_ID, type DossierState } from '@red/domain'; import { marker as _ } from '@biesbjerg/ngx-translate-extract-marker'; import { firstValueFrom, Observable } from 'rxjs'; -import { AdminDialogService } from '../../services/admin-dialog.service'; import { DossierStatesMapService } from '@services/entity-services/dossier-states-map.service'; import { map, tap } from 'rxjs/operators'; import { DossierStatesService } from '@services/entity-services/dossier-states.service'; import { PermissionsService } from '@services/permissions.service'; +import { MatDialog } from '@angular/material/dialog'; +import { + AddEditDossierStateDialogComponent, + AddEditDossierStateDialogData, +} from '../add-edit-dossier-state-dialog/add-edit-dossier-state-dialog.component'; @Component({ templateUrl: './dossier-states-listing-screen.component.html', @@ -24,7 +28,6 @@ import { PermissionsService } from '@services/permissions.service'; }) export class DossierStatesListingScreenComponent extends ListingComponent implements OnInit, OnDestroy { readonly iconButtonTypes = IconButtonTypes; - readonly circleButtonTypes = CircleButtonTypes; readonly tableHeaderLabel = _('dossier-states-listing.table-header.title'); readonly tableColumnConfigs: TableColumnConfig[] = [ { label: _('dossier-states-listing.table-col-names.name'), sortByKey: 'name', width: '3fr' }, @@ -35,7 +38,7 @@ export class DossierStatesListingScreenComponent extends ListingComponent state.id !== dossierState.id), - dossierCount: dossierState.dossierCount, - }; - this._dialogService.openDialog('deleteDossierState', $event, data); + this._dialog.open(AddEditDossierStateDialogComponent, { + ...defaultDialogConfig, + data: { + dossierTemplateId: this.#dossierTemplateId, + }, + }); } #chartConfig(states: DossierState[]): DonutChartConfig[] { diff --git a/apps/red-ui/src/app/modules/admin/screens/dossier-states-listing/dossier-states-listing.module.ts b/apps/red-ui/src/app/modules/admin/screens/dossier-states-listing/dossier-states-listing.module.ts new file mode 100644 index 000000000..6b34c2cf5 --- /dev/null +++ b/apps/red-ui/src/app/modules/admin/screens/dossier-states-listing/dossier-states-listing.module.ts @@ -0,0 +1,62 @@ +import { NgModule } from '@angular/core'; +import { CommonModule } from '@angular/common'; +import { DossierStatesListingScreenComponent } from './dossier-states-listing-screen/dossier-states-listing-screen.component'; +import { DossierStatesTableItemComponent } from './dossier-states-table-item/dossier-states-table-item.component'; +import { RouterModule } from '@angular/router'; +import { + CircleButtonComponent, + IconButtonComponent, + InputWithActionComponent, + IqserHelpModeModule, + IqserListingModule, +} from '@iqser/common-ui'; +import { MatTooltipModule } from '@angular/material/tooltip'; +import { TranslateModule } from '@ngx-translate/core'; +import { DonutChartComponent } from '@shared/components/donut-chart/donut-chart.component'; +import { AdminSideNavComponent } from '../../shared/components/admin-side-nav/admin-side-nav.component'; +import { DossierTemplateActionsComponent } from '../../shared/components/dossier-template-actions/dossier-template-actions.component'; +import { DossierTemplateBreadcrumbsComponent } from '../../shared/components/dossier-template-breadcrumbs/dossier-template-breadcrumbs.component'; +import { AddEditDossierStateDialogComponent } from './add-edit-dossier-state-dialog/add-edit-dossier-state-dialog.component'; +import { ReactiveFormsModule } from '@angular/forms'; +import { ColorPickerModule } from 'ngx-color-picker'; +import { MatIconModule } from '@angular/material/icon'; +import { ConfirmDeleteDossierStateDialogComponent } from './confirm-delete-dossier-state-dialog/confirm-delete-dossier-state-dialog.component'; +import { MatLegacyCheckboxModule } from '@angular/material/legacy-checkbox'; +import { MatSelectModule } from '@angular/material/select'; +import { MatDialogModule } from '@angular/material/dialog'; + +@NgModule({ + declarations: [ + DossierStatesListingScreenComponent, + DossierStatesTableItemComponent, + AddEditDossierStateDialogComponent, + ConfirmDeleteDossierStateDialogComponent, + ], + imports: [ + CommonModule, + RouterModule.forChild([ + { + path: '', + component: DossierStatesListingScreenComponent, + }, + ]), + MatDialogModule, + CircleButtonComponent, + IqserHelpModeModule, + MatTooltipModule, + IconButtonComponent, + TranslateModule, + IqserListingModule, + DonutChartComponent, + AdminSideNavComponent, + DossierTemplateActionsComponent, + InputWithActionComponent, + DossierTemplateBreadcrumbsComponent, + ReactiveFormsModule, + ColorPickerModule, + MatIconModule, + MatLegacyCheckboxModule, + MatSelectModule, + ], +}) +export class DossierStatesListingModule {} diff --git a/apps/red-ui/src/app/modules/admin/screens/dossier-states-listing/dossier-states-table-item/dossier-states-table-item.component.html b/apps/red-ui/src/app/modules/admin/screens/dossier-states-listing/dossier-states-table-item/dossier-states-table-item.component.html new file mode 100644 index 000000000..61c99bb63 --- /dev/null +++ b/apps/red-ui/src/app/modules/admin/screens/dossier-states-listing/dossier-states-table-item/dossier-states-table-item.component.html @@ -0,0 +1,34 @@ +
+
+
+
{{ state.name }}
+
+
+ +
+ {{ state.rank }} +
+ +
+ {{ state.dossierCount }} +
+ +
+
+
+ + + +
+
+
diff --git a/apps/red-ui/src/app/modules/admin/screens/dossier-states-listing/dossier-states-listing-screen.component.scss b/apps/red-ui/src/app/modules/admin/screens/dossier-states-listing/dossier-states-table-item/dossier-states-table-item.component.scss similarity index 80% rename from apps/red-ui/src/app/modules/admin/screens/dossier-states-listing/dossier-states-listing-screen.component.scss rename to apps/red-ui/src/app/modules/admin/screens/dossier-states-listing/dossier-states-table-item/dossier-states-table-item.component.scss index bce23ef20..76adc2722 100644 --- a/apps/red-ui/src/app/modules/admin/screens/dossier-states-listing/dossier-states-listing-screen.component.scss +++ b/apps/red-ui/src/app/modules/admin/screens/dossier-states-listing/dossier-states-table-item/dossier-states-table-item.component.scss @@ -12,11 +12,6 @@ color: var(--iqser-text); } -.right-container { - padding: 50px 26px 0; - width: 250px; -} - .action-buttons > div { display: flex; } diff --git a/apps/red-ui/src/app/modules/admin/screens/dossier-states-listing/dossier-states-table-item/dossier-states-table-item.component.ts b/apps/red-ui/src/app/modules/admin/screens/dossier-states-listing/dossier-states-table-item/dossier-states-table-item.component.ts new file mode 100644 index 000000000..ac6b46490 --- /dev/null +++ b/apps/red-ui/src/app/modules/admin/screens/dossier-states-listing/dossier-states-table-item/dossier-states-table-item.component.ts @@ -0,0 +1,57 @@ +import { Component, inject, Input } from '@angular/core'; +import { CircleButtonTypes, defaultDialogConfig, EntitiesService } from '@iqser/common-ui'; +import { DossierState, IDossierState } from '@red/domain'; +import { PermissionsService } from '@services/permissions.service'; +import { + AddEditDossierStateDialogComponent, + AddEditDossierStateDialogData, +} from '../add-edit-dossier-state-dialog/add-edit-dossier-state-dialog.component'; +import { MatDialog } from '@angular/material/dialog'; +import { + ConfirmDeleteDossierStateDialogComponent, + ConfirmDeleteDossierStateDialogData, +} from '../confirm-delete-dossier-state-dialog/confirm-delete-dossier-state-dialog.component'; + +@Component({ + selector: 'redaction-dossier-states-table-item', + templateUrl: './dossier-states-table-item.component.html', + styleUrls: ['./dossier-states-table-item.component.scss'], +}) +export class DossierStatesTableItemComponent { + @Input() state: DossierState; + + readonly circleButtonTypes = CircleButtonTypes; + readonly permissionsService = inject(PermissionsService); + readonly #dialog = inject(MatDialog); + readonly #entitiesService = inject(EntitiesService); + + openConfirmDeleteStateDialog($event: MouseEvent, dossierState: DossierState) { + $event.stopPropagation(); + + const data: ConfirmDeleteDossierStateDialogData = { + toBeDeletedState: dossierState, + otherStates: this.#entitiesService.all.filter(s => s.id !== dossierState.id), + dossierCount: dossierState.dossierCount, + }; + + this.#dialog.open( + ConfirmDeleteDossierStateDialogComponent, + { + ...defaultDialogConfig, + data, + }, + ); + } + + openEditStateDialog($event: MouseEvent, dossierState: IDossierState) { + $event.stopPropagation(); + + this.#dialog.open(AddEditDossierStateDialogComponent, { + ...defaultDialogConfig, + data: { + dossierState, + dossierTemplateId: dossierState.dossierTemplateId, + }, + }); + } +} diff --git a/apps/red-ui/src/app/modules/admin/services/admin-dialog.service.ts b/apps/red-ui/src/app/modules/admin/services/admin-dialog.service.ts index 95e85faa4..dfab4ec29 100644 --- a/apps/red-ui/src/app/modules/admin/services/admin-dialog.service.ts +++ b/apps/red-ui/src/app/modules/admin/services/admin-dialog.service.ts @@ -20,8 +20,6 @@ import { } from '@iqser/common-ui'; import { UploadDictionaryDialogComponent } from '../dialogs/upload-dictionary-dialog/upload-dictionary-dialog.component'; import { FileAttributesConfigurationsDialogComponent } from '../dialogs/file-attributes-configurations-dialog/file-attributes-configurations-dialog.component'; -import { AddEditDossierStateDialogComponent } from '../dialogs/add-edit-dossier-state-dialog/add-edit-dossier-state-dialog.component'; -import { ConfirmDeleteDossierStateDialogComponent } from '../dialogs/confirm-delete-dossier-state-dialog/confirm-delete-dossier-state-dialog.component'; import { marker as _ } from '@biesbjerg/ngx-translate-extract-marker'; import { firstValueFrom, forkJoin } from 'rxjs'; import { ActiveDossiersService } from '@services/dossiers/active-dossiers.service'; @@ -44,8 +42,6 @@ type DialogType = | 'auditInfo' | 'addEditDossierAttribute' | 'uploadDictionary' - | 'addEditDossierState' - | 'deleteDossierState' | 'configureCertificate'; @Injectable() @@ -93,12 +89,6 @@ export class AdminDialogService extends DialogService { uploadDictionary: { component: UploadDictionaryDialogComponent, }, - addEditDossierState: { - component: AddEditDossierStateDialogComponent, - }, - deleteDossierState: { - component: ConfirmDeleteDossierStateDialogComponent, - }, configureCertificate: { component: ConfigureCertificateDialogComponent, dialogConfig: { disableClose: false, maxHeight: '100vh' }, diff --git a/apps/red-ui/src/assets/config/config.json b/apps/red-ui/src/assets/config/config.json index c81f4bc32..07317e72b 100644 --- a/apps/red-ui/src/assets/config/config.json +++ b/apps/red-ui/src/assets/config/config.json @@ -1,7 +1,7 @@ { "ADMIN_CONTACT_NAME": null, "ADMIN_CONTACT_URL": null, - "API_URL": "https://dev-08.iqser.cloud/redaction-gateway-v1", + "API_URL": "https://dev-04.iqser.cloud/redaction-gateway-v1", "APP_NAME": "RedactManager", "AUTO_READ_TIME": 3, "BACKEND_APP_VERSION": "4.4.40", @@ -11,7 +11,7 @@ "MAX_RETRIES_ON_SERVER_ERROR": 3, "OAUTH_CLIENT_ID": "redaction", "OAUTH_IDP_HINT": null, - "OAUTH_URL": "https://dev-08.iqser.cloud/auth/realms/redaction", + "OAUTH_URL": "https://dev-04.iqser.cloud/auth/realms/redaction", "RECENT_PERIOD_IN_HOURS": 24, "SELECTION_MODE": "structural", "MANUAL_BASE_URL": "https://docs.redactmanager.com/preview", From 16815cc343adba1a1bd7b6356f59acfbcf190c25 Mon Sep 17 00:00:00 2001 From: Dan Percic Date: Wed, 15 Mar 2023 23:33:13 +0200 Subject: [PATCH 26/99] RED-3800: remove buttons module --- apps/red-ui/src/app/app.module.ts | 2 ++ .../src/app/modules/account/account.module.ts | 13 ++++++++--- .../notifications/notifications.module.ts | 3 ++- .../user-profile/user-profile.module.ts | 3 ++- .../src/app/modules/admin/admin.module.ts | 8 +++++-- .../dossier-templates-listing.module.ts | 6 +++-- .../admin/screens/entities/entities.module.ts | 3 ++- .../info/dossier-template-info.module.ts | 3 +-- ...d-edit-justification-dialog.component.html | 3 +-- .../justifications/justifications.module.ts | 13 +++++++++-- .../admin/screens/reports/reports.module.ts | 6 ++--- .../rules-screen/rules-screen.component.ts | 1 - .../admin/screens/rules/rules.module.ts | 6 ++--- .../paginator/paginator.component.html | 6 +++-- .../screens/watermark/watermark.module.ts | 18 +++++++++++---- .../src/app/modules/archive/archive.module.ts | 11 ++++----- .../template-stats.component.html | 12 ++++++---- .../app/modules/dashboard/dashboard.module.ts | 4 ++-- .../file-attribute.component.html | 23 ++++++++++--------- .../dossier-overview.module.ts | 8 +++---- .../dossiers-listing.module.ts | 4 ---- .../file-preview/file-preview.module.ts | 14 ++++++----- .../shared-dossiers/shared-dossiers.module.ts | 6 +++-- .../src/app/modules/shared/shared.module.ts | 7 ++++-- .../trash-table-item.component.html | 4 ++-- .../src/app/modules/trash/trash.module.ts | 4 ++-- .../file-upload-download.module.ts | 4 ++-- libs/common-ui | 2 +- 28 files changed, 118 insertions(+), 79 deletions(-) diff --git a/apps/red-ui/src/app/app.module.ts b/apps/red-ui/src/app/app.module.ts index 0bfe6c1e0..2b93c463a 100644 --- a/apps/red-ui/src/app/app.module.ts +++ b/apps/red-ui/src/app/app.module.ts @@ -9,6 +9,7 @@ import { MissingTranslationHandler } from '@ngx-translate/core'; import { BASE_HREF, CachingModule, + CircleButtonComponent, CommonUiModule, IqserHelpModeModule, IqserLoadingModule, @@ -153,6 +154,7 @@ export const appModuleFactory = (config: AppConfig) => { } as ILoggerConfig, }, }), + CircleButtonComponent, ], providers: [ { diff --git a/apps/red-ui/src/app/modules/account/account.module.ts b/apps/red-ui/src/app/modules/account/account.module.ts index df77271c3..c9faf70ec 100644 --- a/apps/red-ui/src/app/modules/account/account.module.ts +++ b/apps/red-ui/src/app/modules/account/account.module.ts @@ -6,13 +6,20 @@ import { AccountSideNavComponent } from './account-side-nav/account-side-nav.com import { BaseAccountScreenComponent } from './base-account-screen/base-account-screen-component'; import { NotificationPreferencesService } from './services/notification-preferences.service'; import { TranslateModule } from '@ngx-translate/core'; -import { IqserSharedModule } from '@iqser/common-ui'; -import { IqserHelpModeModule } from '@iqser/common-ui'; +import { IconButtonComponent, IqserHelpModeModule, IqserSharedModule } from '@iqser/common-ui'; import { PreferencesComponent } from './screens/preferences/preferences.component'; @NgModule({ declarations: [AccountSideNavComponent, BaseAccountScreenComponent, PreferencesComponent], - imports: [CommonModule, SharedModule, AccountRoutingModule, TranslateModule, IqserSharedModule, IqserHelpModeModule], + imports: [ + CommonModule, + SharedModule, + AccountRoutingModule, + TranslateModule, + IqserSharedModule, + IqserHelpModeModule, + IconButtonComponent, + ], providers: [NotificationPreferencesService], }) export class AccountModule {} diff --git a/apps/red-ui/src/app/modules/account/screens/notifications/notifications.module.ts b/apps/red-ui/src/app/modules/account/screens/notifications/notifications.module.ts index 4621b45c0..5cdaf8a16 100644 --- a/apps/red-ui/src/app/modules/account/screens/notifications/notifications.module.ts +++ b/apps/red-ui/src/app/modules/account/screens/notifications/notifications.module.ts @@ -5,11 +5,12 @@ import { SharedModule } from '@shared/shared.module'; import { NotificationsScreenComponent } from './notifications-screen/notifications-screen.component'; import { PendingChangesGuard } from '@guards/can-deactivate.guard'; import { TranslateModule } from '@ngx-translate/core'; +import { IconButtonComponent } from '@iqser/common-ui'; const routes = [{ path: '', component: NotificationsScreenComponent, canDeactivate: [PendingChangesGuard] }]; @NgModule({ declarations: [NotificationsScreenComponent], - imports: [RouterModule.forChild(routes), CommonModule, SharedModule, TranslateModule], + imports: [RouterModule.forChild(routes), CommonModule, SharedModule, TranslateModule, IconButtonComponent], }) export class NotificationsModule {} diff --git a/apps/red-ui/src/app/modules/account/screens/user-profile/user-profile.module.ts b/apps/red-ui/src/app/modules/account/screens/user-profile/user-profile.module.ts index 6ef42fa66..72f352ea7 100644 --- a/apps/red-ui/src/app/modules/account/screens/user-profile/user-profile.module.ts +++ b/apps/red-ui/src/app/modules/account/screens/user-profile/user-profile.module.ts @@ -7,12 +7,13 @@ import { PendingChangesGuard } from '@guards/can-deactivate.guard'; import { TranslateModule } from '@ngx-translate/core'; import { ConfirmPasswordDialogComponent } from './confirm-password-dialog/confirm-password-dialog.component'; import { UserProfileDialogService } from './services/user-profile-dialog.service'; +import { CircleButtonComponent, IconButtonComponent } from '@iqser/common-ui'; const routes = [{ path: '', component: UserProfileScreenComponent, canDeactivate: [PendingChangesGuard] }]; @NgModule({ declarations: [UserProfileScreenComponent, ConfirmPasswordDialogComponent], - imports: [RouterModule.forChild(routes), CommonModule, SharedModule, TranslateModule], + imports: [RouterModule.forChild(routes), CommonModule, SharedModule, TranslateModule, IconButtonComponent, CircleButtonComponent], providers: [UserProfileDialogService], }) export class UserProfileModule {} diff --git a/apps/red-ui/src/app/modules/admin/admin.module.ts b/apps/red-ui/src/app/modules/admin/admin.module.ts index 96ae930b9..ddabd1f2a 100644 --- a/apps/red-ui/src/app/modules/admin/admin.module.ts +++ b/apps/red-ui/src/app/modules/admin/admin.module.ts @@ -42,8 +42,10 @@ import { ConfigureCertificateDialogComponent } from './dialogs/configure-digital import { PkcsSignatureConfigurationComponent } from './dialogs/configure-digital-signature-dialog/form/pkcs-signature-configuration/pkcs-signature-configuration.component'; import { KmsSignatureConfigurationComponent } from './dialogs/configure-digital-signature-dialog/form/kms-signature-configuration/kms-signature-configuration.component'; import { + ChevronButtonComponent, + CircleButtonComponent, HumanizePipe, - IqserButtonsModule, + IconButtonComponent, IqserEmptyStatesModule, IqserHelpModeModule, IqserInputsModule, @@ -113,7 +115,6 @@ const components = [ IqserUsersModule, TranslateModule, HumanizePipe, - IqserButtonsModule, IqserListingModule, IqserScrollbarModule, IqserInputsModule, @@ -125,6 +126,9 @@ const components = [ AdminSideNavComponent, DossierTemplateActionsComponent, DossierTemplateBreadcrumbsComponent, + IconButtonComponent, + CircleButtonComponent, + ChevronButtonComponent, ], }) export class AdminModule {} diff --git a/apps/red-ui/src/app/modules/admin/screens/dossier-templates-listing/dossier-templates-listing.module.ts b/apps/red-ui/src/app/modules/admin/screens/dossier-templates-listing/dossier-templates-listing.module.ts index aab8e565e..82f18874d 100644 --- a/apps/red-ui/src/app/modules/admin/screens/dossier-templates-listing/dossier-templates-listing.module.ts +++ b/apps/red-ui/src/app/modules/admin/screens/dossier-templates-listing/dossier-templates-listing.module.ts @@ -5,7 +5,8 @@ import { SharedModule } from '@shared/shared.module'; import { TableItemComponent } from './table-item/table-item.component'; import { DossierTemplatesListingScreenComponent } from './dossier-templates-listing-screen/dossier-templates-listing-screen.component'; import { - IqserButtonsModule, + CircleButtonComponent, + IconButtonComponent, IqserHelpModeModule, IqserInputsModule, IqserListingModule, @@ -26,11 +27,12 @@ const routes = [{ path: '', component: DossierTemplatesListingScreenComponent }] IqserUsersModule, TranslateModule, IqserInputsModule, - IqserButtonsModule, IqserListingModule, IqserHelpModeModule, IqserPermissionsModule, DossierTemplateActionsComponent, + CircleButtonComponent, + IconButtonComponent, ], }) export class DossierTemplatesListingModule {} diff --git a/apps/red-ui/src/app/modules/admin/screens/entities/entities.module.ts b/apps/red-ui/src/app/modules/admin/screens/entities/entities.module.ts index 25cc0a68b..ca43a2617 100644 --- a/apps/red-ui/src/app/modules/admin/screens/entities/entities.module.ts +++ b/apps/red-ui/src/app/modules/admin/screens/entities/entities.module.ts @@ -7,7 +7,7 @@ import { PendingChangesGuard } from '@guards/can-deactivate.guard'; import { EntityInfoComponent } from './screens/entity-info/entity-info.component'; import { MonacoEditorModule } from '@materia-ui/ngx-monaco-editor'; import { TranslateModule } from '@ngx-translate/core'; -import { IqserHelpModeModule, IqserPermissionsModule, IqserScrollbarModule } from '@iqser/common-ui'; +import { IconButtonComponent, IqserHelpModeModule, IqserPermissionsModule, IqserScrollbarModule } from '@iqser/common-ui'; const routes: Routes = [ { path: '', redirectTo: 'info', pathMatch: 'full' }, @@ -44,6 +44,7 @@ const routes: Routes = [ IqserScrollbarModule, IqserHelpModeModule, IqserPermissionsModule, + IconButtonComponent, ], }) export class EntitiesModule {} diff --git a/apps/red-ui/src/app/modules/admin/screens/info/dossier-template-info.module.ts b/apps/red-ui/src/app/modules/admin/screens/info/dossier-template-info.module.ts index bd74d6021..fc4f7af02 100644 --- a/apps/red-ui/src/app/modules/admin/screens/info/dossier-template-info.module.ts +++ b/apps/red-ui/src/app/modules/admin/screens/info/dossier-template-info.module.ts @@ -3,7 +3,7 @@ import { CommonModule } from '@angular/common'; import { DossierTemplateInfoScreenComponent } from './info-screen/dossier-template-info-screen.component'; import { RouterModule } from '@angular/router'; import { SharedModule } from '@shared/shared.module'; -import { IqserButtonsModule, IqserHelpModeModule, IqserScrollbarModule, IqserUsersModule } from '@iqser/common-ui'; +import { IqserHelpModeModule, IqserScrollbarModule, IqserUsersModule } from '@iqser/common-ui'; import { TranslateModule } from '@ngx-translate/core'; const routes = [{ path: '', component: DossierTemplateInfoScreenComponent }]; @@ -16,7 +16,6 @@ const routes = [{ path: '', component: DossierTemplateInfoScreenComponent }]; SharedModule, IqserUsersModule, TranslateModule, - IqserButtonsModule, IqserScrollbarModule, IqserHelpModeModule, ], diff --git a/apps/red-ui/src/app/modules/admin/screens/justifications/add-edit-justification-dialog/add-edit-justification-dialog.component.html b/apps/red-ui/src/app/modules/admin/screens/justifications/add-edit-justification-dialog/add-edit-justification-dialog.component.html index e5bb07198..a236f7090 100644 --- a/apps/red-ui/src/app/modules/admin/screens/justifications/add-edit-justification-dialog/add-edit-justification-dialog.component.html +++ b/apps/red-ui/src/app/modules/admin/screens/justifications/add-edit-justification-dialog/add-edit-justification-dialog.component.html @@ -48,8 +48,7 @@ [label]="'add-edit-justification.actions.save' | translate" [submit]="true" [type]="iconButtonTypes.primary" - > -
+ >
diff --git a/apps/red-ui/src/app/modules/admin/screens/justifications/justifications.module.ts b/apps/red-ui/src/app/modules/admin/screens/justifications/justifications.module.ts index 5d0ff0eec..91f85d329 100644 --- a/apps/red-ui/src/app/modules/admin/screens/justifications/justifications.module.ts +++ b/apps/red-ui/src/app/modules/admin/screens/justifications/justifications.module.ts @@ -7,13 +7,22 @@ import { TableItemComponent } from './table-item/table-item.component'; import { JustificationsDialogService } from './justifications-dialog.service'; import { AddEditJustificationDialogComponent } from './add-edit-justification-dialog/add-edit-justification-dialog.component'; import { TranslateModule } from '@ngx-translate/core'; -import { IqserButtonsModule, IqserListingModule } from '@iqser/common-ui'; +import { CircleButtonComponent, IconButtonComponent, IqserListingModule, IqserScrollbarModule } from '@iqser/common-ui'; const routes = [{ path: '', component: JustificationsScreenComponent }]; @NgModule({ declarations: [JustificationsScreenComponent, TableItemComponent, AddEditJustificationDialogComponent], - imports: [RouterModule.forChild(routes), CommonModule, SharedModule, TranslateModule, IqserButtonsModule, IqserListingModule], + imports: [ + RouterModule.forChild(routes), + CommonModule, + SharedModule, + TranslateModule, + IqserListingModule, + IconButtonComponent, + CircleButtonComponent, + IqserScrollbarModule, + ], providers: [JustificationsDialogService], }) export class JustificationsModule {} diff --git a/apps/red-ui/src/app/modules/admin/screens/reports/reports.module.ts b/apps/red-ui/src/app/modules/admin/screens/reports/reports.module.ts index 6be448070..437cdf0ac 100644 --- a/apps/red-ui/src/app/modules/admin/screens/reports/reports.module.ts +++ b/apps/red-ui/src/app/modules/admin/screens/reports/reports.module.ts @@ -1,10 +1,9 @@ import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { RouterModule } from '@angular/router'; -import { SharedModule } from '@shared/shared.module'; import { ReportsScreenComponent } from './reports-screen/reports-screen.component'; import { TranslateModule } from '@ngx-translate/core'; -import { IqserButtonsModule, IqserHelpModeModule, IqserPermissionsModule, IqserScrollbarModule } from '@iqser/common-ui'; +import { CircleButtonComponent, IqserHelpModeModule, IqserPermissionsModule, IqserScrollbarModule } from '@iqser/common-ui'; const routes = [{ path: '', component: ReportsScreenComponent }]; @@ -13,12 +12,11 @@ const routes = [{ path: '', component: ReportsScreenComponent }]; imports: [ RouterModule.forChild(routes), CommonModule, - SharedModule, TranslateModule, - IqserButtonsModule, IqserScrollbarModule, IqserHelpModeModule, IqserPermissionsModule, + CircleButtonComponent, ], }) export class ReportsModule {} diff --git a/apps/red-ui/src/app/modules/admin/screens/rules/rules-screen/rules-screen.component.ts b/apps/red-ui/src/app/modules/admin/screens/rules/rules-screen/rules-screen.component.ts index 2e41aafe2..c819bdd82 100644 --- a/apps/red-ui/src/app/modules/admin/screens/rules/rules-screen/rules-screen.component.ts +++ b/apps/red-ui/src/app/modules/admin/screens/rules/rules-screen/rules-screen.component.ts @@ -13,7 +13,6 @@ import IModelDeltaDecoration = monaco.editor.IModelDeltaDecoration; import IStandaloneEditorConstructionOptions = monaco.editor.IStandaloneEditorConstructionOptions; @Component({ - selector: 'redaction-rules-screen', templateUrl: './rules-screen.component.html', styleUrls: ['./rules-screen.component.scss'], changeDetection: ChangeDetectionStrategy.OnPush, diff --git a/apps/red-ui/src/app/modules/admin/screens/rules/rules.module.ts b/apps/red-ui/src/app/modules/admin/screens/rules/rules.module.ts index 7b8d87b2f..bd26cc278 100644 --- a/apps/red-ui/src/app/modules/admin/screens/rules/rules.module.ts +++ b/apps/red-ui/src/app/modules/admin/screens/rules/rules.module.ts @@ -1,17 +1,17 @@ import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { RouterModule } from '@angular/router'; -import { SharedModule } from '@shared/shared.module'; import { RulesScreenComponent } from './rules-screen/rules-screen.component'; import { MonacoEditorModule } from '@materia-ui/ngx-monaco-editor'; import { PendingChangesGuard } from '@guards/can-deactivate.guard'; import { TranslateModule } from '@ngx-translate/core'; -import { IqserButtonsModule } from '@iqser/common-ui'; +import { IconButtonComponent } from '@iqser/common-ui'; +import { FormsModule } from '@angular/forms'; const routes = [{ path: '', component: RulesScreenComponent, canDeactivate: [PendingChangesGuard] }]; @NgModule({ declarations: [RulesScreenComponent], - imports: [RouterModule.forChild(routes), CommonModule, SharedModule, MonacoEditorModule, TranslateModule, IqserButtonsModule], + imports: [RouterModule.forChild(routes), CommonModule, MonacoEditorModule, TranslateModule, IconButtonComponent, FormsModule], }) export class RulesModule {} diff --git a/apps/red-ui/src/app/modules/admin/screens/watermark/paginator/paginator.component.html b/apps/red-ui/src/app/modules/admin/screens/watermark/paginator/paginator.component.html index 896efd4d0..7c177e1ea 100644 --- a/apps/red-ui/src/app/modules/admin/screens/watermark/paginator/paginator.component.html +++ b/apps/red-ui/src/app/modules/admin/screens/watermark/paginator/paginator.component.html @@ -1,10 +1,12 @@ @@ -42,7 +44,7 @@ [config]="translateChartService.translateDossierStates(dossierTemplate.dossiersChartConfig, dossierTemplate.id)" [radius]="63" [strokeWidth]="15" - [subtitles]="['dossier-template-stats.active-dossiers' | translate: { count: dossierTemplate.numberOfActiveDossiers }]" + [subtitles]="['dossier-template-stats.active-dossiers' | translate : { count: dossierTemplate.numberOfActiveDossiers }]" direction="row" totalType="sum" > diff --git a/apps/red-ui/src/app/modules/dashboard/dashboard.module.ts b/apps/red-ui/src/app/modules/dashboard/dashboard.module.ts index 6197c84c7..8bc4f730f 100644 --- a/apps/red-ui/src/app/modules/dashboard/dashboard.module.ts +++ b/apps/red-ui/src/app/modules/dashboard/dashboard.module.ts @@ -6,7 +6,7 @@ import { SharedModule } from '@shared/shared.module'; import { TemplateStatsComponent } from './components/template-stats/template-stats.component'; import { BreadcrumbTypes } from '@red/domain'; import { TranslateModule } from '@ngx-translate/core'; -import { IqserButtonsModule, IqserHelpModeModule, IqserPermissionsModule } from '@iqser/common-ui'; +import { IconButtonComponent, IqserHelpModeModule, IqserPermissionsModule } from '@iqser/common-ui'; const routes = [ { @@ -25,9 +25,9 @@ const routes = [ CommonModule, SharedModule, TranslateModule, - IqserButtonsModule, IqserHelpModeModule, IqserPermissionsModule, + IconButtonComponent, ], }) export class DashboardModule {} diff --git a/apps/red-ui/src/app/modules/dossier-overview/components/table-item/file-attribute/file-attribute.component.html b/apps/red-ui/src/app/modules/dossier-overview/components/table-item/file-attribute/file-attribute.component.html index 69898c796..33c2410ec 100644 --- a/apps/red-ui/src/app/modules/dossier-overview/components/table-item/file-attribute/file-attribute.component.html +++ b/apps/red-ui/src/app/modules/dossier-overview/components/table-item/file-attribute/file-attribute.component.html @@ -5,35 +5,36 @@ -
+
-
+
- + +
diff --git a/apps/red-ui/src/app/modules/dossier-overview/dossier-overview.module.ts b/apps/red-ui/src/app/modules/dossier-overview/dossier-overview.module.ts index 3e2a64bfb..59075ab62 100644 --- a/apps/red-ui/src/app/modules/dossier-overview/dossier-overview.module.ts +++ b/apps/red-ui/src/app/modules/dossier-overview/dossier-overview.module.ts @@ -1,9 +1,8 @@ import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { RouterModule, Routes } from '@angular/router'; -import { SharedModule } from '@shared/shared.module'; import { - IqserButtonsModule, + CircleButtonComponent, IqserHelpModeModule, IqserIconsModule, IqserInputsModule, @@ -26,6 +25,7 @@ import { WorkflowItemComponent } from './components/workflow-item/workflow-item. import { DossierOverviewScreenHeaderComponent } from './components/screen-header/dossier-overview-screen-header.component'; import { ViewModeSelectionComponent } from './components/view-mode-selection/view-mode-selection.component'; import { FileAttributeComponent } from './components/table-item/file-attribute/file-attribute.component'; +import { SharedModule } from '@shared/shared.module'; const routes: Routes = [ { @@ -54,19 +54,19 @@ const routes: Routes = [ imports: [ RouterModule.forChild(routes), CommonModule, - SharedModule, SharedDossiersModule, IqserIconsModule, TranslateModule, IqserHelpModeModule, IqserUsersModule, IqserListingModule, - IqserButtonsModule, IqserLoadingModule, IqserSharedModule, IqserScrollbarModule, IqserPermissionsModule, IqserInputsModule, + SharedModule, + CircleButtonComponent, ], }) export class DossierOverviewModule {} diff --git a/apps/red-ui/src/app/modules/dossiers-listing/dossiers-listing.module.ts b/apps/red-ui/src/app/modules/dossiers-listing/dossiers-listing.module.ts index 7bfb2c734..af6f75cfc 100644 --- a/apps/red-ui/src/app/modules/dossiers-listing/dossiers-listing.module.ts +++ b/apps/red-ui/src/app/modules/dossiers-listing/dossiers-listing.module.ts @@ -2,7 +2,6 @@ import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { CompositeRouteGuard, - IqserButtonsModule, IqserHelpModeModule, IqserIconsModule, IqserListingModule, @@ -10,7 +9,6 @@ import { IqserScrollbarModule, IqserSharedModule, IqserUsersModule, - LogPipe, } from '@iqser/common-ui'; import { TranslateModule } from '@ngx-translate/core'; import { DossiersListingScreenComponent } from './screen/dossiers-listing-screen.component'; @@ -53,12 +51,10 @@ const routes: Routes = [ TranslateModule, IqserHelpModeModule, IqserUsersModule, - IqserButtonsModule, IqserListingModule, IqserScrollbarModule, IqserSharedModule, IqserPermissionsModule, - LogPipe, ], }) export class DossiersListingModule {} diff --git a/apps/red-ui/src/app/modules/file-preview/file-preview.module.ts b/apps/red-ui/src/app/modules/file-preview/file-preview.module.ts index 578db0e0e..db2a9712d 100644 --- a/apps/red-ui/src/app/modules/file-preview/file-preview.module.ts +++ b/apps/red-ui/src/app/modules/file-preview/file-preview.module.ts @@ -2,7 +2,8 @@ import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { CapitalizePipe, - IqserButtonsModule, + CircleButtonComponent, + IconButtonComponent, IqserEmptyStatesModule, IqserFiltersModule, IqserHelpModeModule, @@ -16,8 +17,6 @@ import { } from '@iqser/common-ui'; import { TranslateModule } from '@ngx-translate/core'; import { RouterModule, Routes } from '@angular/router'; -import { SharedModule } from '@shared/shared.module'; -import { SharedDossiersModule } from '../shared-dossiers/shared-dossiers.module'; import { FilePreviewScreenComponent } from './file-preview-screen.component'; import { FileWorkloadComponent } from './components/file-workload/file-workload.component'; import { AnnotationDetailsComponent } from './components/annotation-details/annotation-details.component'; @@ -55,6 +54,8 @@ import { RssDialogComponent } from './dialogs/rss-dialog/rss-dialog.component'; import { ReadonlyBannerComponent } from './components/readonly-banner/readonly-banner.component'; import { SuggestionsService } from './services/suggestions.service'; import { PagesComponent } from './components/pages/pages.component'; +import { SharedModule } from '@shared/shared.module'; +import { SharedDossiersModule } from '../shared-dossiers/shared-dossiers.module'; const routes: Routes = [ { @@ -108,15 +109,12 @@ const components = [ imports: [ RouterModule.forChild(routes), CommonModule, - SharedModule, - SharedDossiersModule, IqserIconsModule, TranslateModule, OverlayModule, IqserHelpModeModule, IqserUsersModule, CapitalizePipe, - IqserButtonsModule, IqserInputsModule, IqserSharedModule, IqserUploadFileModule, @@ -124,6 +122,10 @@ const components = [ IqserFiltersModule, IqserScrollbarModule, IqserPermissionsModule, + SharedModule, + CircleButtonComponent, + SharedDossiersModule, + IconButtonComponent, ], providers: [FilePreviewDialogService, ManualRedactionService, DocumentUnloadedGuard, SuggestionsService], }) diff --git a/apps/red-ui/src/app/modules/shared-dossiers/shared-dossiers.module.ts b/apps/red-ui/src/app/modules/shared-dossiers/shared-dossiers.module.ts index 0659a7b1b..b5728738f 100644 --- a/apps/red-ui/src/app/modules/shared-dossiers/shared-dossiers.module.ts +++ b/apps/red-ui/src/app/modules/shared-dossiers/shared-dossiers.module.ts @@ -13,7 +13,8 @@ import { DateColumnComponent } from './components/date-column/date-column.compon import { FileAssignService } from './services/file-assign.service'; import { DictionaryDetailsDialogComponent } from './dialogs/edit-dossier-dialog/dictionary/dictionary-details-dialog/dictionary-details-dialog.component'; import { - IqserButtonsModule, + CircleButtonComponent, + IconButtonComponent, IqserEmptyStatesModule, IqserHelpModeModule, IqserInputsModule, @@ -49,12 +50,13 @@ const services = [FileAssignService]; IqserHelpModeModule, IqserUsersModule, TranslateModule, - IqserButtonsModule, IqserEmptyStatesModule, IqserSharedModule, IqserInputsModule, IqserScrollbarModule, IqserPermissionsModule, + IconButtonComponent, + CircleButtonComponent, ], }) export class SharedDossiersModule {} diff --git a/apps/red-ui/src/app/modules/shared/shared.module.ts b/apps/red-ui/src/app/modules/shared/shared.module.ts index c605caf46..0d5ed600a 100644 --- a/apps/red-ui/src/app/modules/shared/shared.module.ts +++ b/apps/red-ui/src/app/modules/shared/shared.module.ts @@ -9,7 +9,8 @@ import { FormsModule, ReactiveFormsModule } from '@angular/forms'; import { AnnotationIconComponent } from './components/annotation-icon/annotation-icon.component'; import { DonutChartComponent } from './components/donut-chart/donut-chart.component'; import { - IqserButtonsModule, + CircleButtonComponent, + IconButtonComponent, IqserHelpModeModule, IqserPermissionsModule, IqserScrollbarModule, @@ -74,7 +75,7 @@ const utils = [DatePipe, NavigateLastDossiersScreenDirective, LongPressDirective const services = [SharedDialogService]; -const modules = [MatConfigModule, ScrollingModule, IconsModule, FormsModule, IqserButtonsModule, ReactiveFormsModule, ColorPickerModule]; +const modules = [MatConfigModule, ScrollingModule, IconsModule, FormsModule, ReactiveFormsModule, ColorPickerModule]; const deleteThisWhenAllComponentsAreStandalone = [DonutChartComponent]; @@ -92,6 +93,8 @@ const deleteThisWhenAllComponentsAreStandalone = [DonutChartComponent]; IqserScrollbarModule, IqserPermissionsModule, ...deleteThisWhenAllComponentsAreStandalone, + CircleButtonComponent, + IconButtonComponent, ], exports: [...modules, ...components, ...utils, ...deleteThisWhenAllComponentsAreStandalone], providers: [ diff --git a/apps/red-ui/src/app/modules/trash/trash-screen/trash-table-item/trash-table-item.component.html b/apps/red-ui/src/app/modules/trash/trash-screen/trash-table-item/trash-table-item.component.html index 6b289c9ac..c328c4ca3 100644 --- a/apps/red-ui/src/app/modules/trash/trash-screen/trash-table-item/trash-table-item.component.html +++ b/apps/red-ui/src/app/modules/trash/trash-screen/trash-table-item/trash-table-item.component.html @@ -29,13 +29,13 @@
- {{ item.softDeletedTime | date: 'exactDate' }} + {{ item.softDeletedTime | date : 'exactDate' }}
- {{ item.restoreDate | date: 'timeFromNow' }} + {{ item.restoreDate | date : 'timeFromNow' }}
Date: Wed, 15 Mar 2023 22:35:48 +0100 Subject: [PATCH 27/99] chore(release) --- package.json | 2 +- paligo-theme.tar.gz | Bin 3445 -> 3445 bytes 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 61a7f7e0f..78afabc35 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "redaction", - "version": "3.989.0", + "version": "3.990.0", "private": true, "license": "MIT", "scripts": { diff --git a/paligo-theme.tar.gz b/paligo-theme.tar.gz index f6009ad8907ad0c7c678814fea323c8c94b295ce..a2e4a7e1bff7bc2141efc64def5c21f894540fce 100644 GIT binary patch delta 3353 zcmV+!4d(Lo8uc2GcYphyzw(18wqpm5^8^Jy2{wb))C^Y${TxgEH@2lNfBB$o{yb zn%n=m{9i^Xu4=;2<)6R(%Gz8$zj#UaWl=HIRN1r3l(DkjUVmRFMb7Hwt|)dH!6mJi zQL(=Ug>ZkJ;62UmzxZQG@?U*}^Lk4e&K7sOl)bbUo^3z37ryum#OF$UuEpmDJ{>W} z5n~)N#t~y2F~;Fzei_rc%<%me^&KuRuby8lIes{^Qi5Yrp}$`s^wy$zOx|pf^BjJq zgu?n;7=70IcyTOd@HY7<=5iv8w(e17(nmo3mA}gvbdg^XG*LTMAQ0j;&oEcV4 z-;ym_`FsKS>P{}pDS~$y&56~avRStS_qf{8++sxulQ-JCuwbm%1J*{QQTMYZxQbGN z$R5A3?r6+XfMwe%ur0z3EBNoSs41fbys1cr8GTJo!+&13-&R6N7K@eSDvoV`#({=K z#rcSw@(rqsjK=6`6h$QV4xLtoW7^a}d5f2U&q zp{ED%Tz{O-q`X)K+q=XS$=P!w{ZUiZ{8d@doRP|)3pUpV@n_E?VVf4OCBF>{6vuuX z2uK$%_avqm6?t}#>Zl?lM>vnsGi8gc`F^_+u*~~flc4Xmd@%3rfn)=@yWc59)xgt? zSY;DtG{Rg26J!kdDzSAp12bTN_X6P-r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h7-ZkUg*w;fm2nJIYj#sfW4!g*bnXL%zUcT^a2?{rLF;(t+=p@CB*BH3B9J|PTc=e2ey}q-i^l4{cc=% z>IPpd`O0IB^K7FUcdrM$lR(;?y3l^|vwx%+2V|xzS}Q}v&ACx7E{JMhQdEFgQxFC93wNLwLdnEF5KpTUp;6CtY1t3K)_*}= zCN9uOV&rjvr0MXhC++Y`Qh0a)gzBdWLrv{2Y)I|z6B~Q_77ggF;w&ZqBb-Ig0{b&$ ziJKl*Dgh| z*nLT^#vyB;#)=znMfe>MIemFS9n@LtW9K@ZVN-$;NG$nY<4oaKh(ra_w-*q1EYK?8 zddDOtM+I)l(vVnV3cc^n|m@xeg3j045R~GtN4oO%B%V;D5G@Y|%ap zFQI6DP`MlP>92sj)A2Fg#8UfbUAH<4P&nBWASa`?6Oeo7b_)Juu0YLT$D{5!sqkl9 zW>SYw-dNHH&AXN~m^1V4(Ey!CUoaZNdrWYyYfpDoXh7%j`#=w1q+=53Nk;b8x2%eY z#Gu_G`&-tGlqdeLU?MbhOn(8%n0Gq+`x3|Z4XOLw!kB#ZBVHgDk6fWRB)5fEL5A@o z4t8m>jQ@J0nb0?UpUZq!=0~kVMq37p5!ORCUa#mxcsR8j@BAZ|DYh@+f7LyuL4W_MdrDXRtL~}n zzN?W_n9Dth`^T#yb8s_@#}h+8tY$n3>_bY$BY6&;%me>R=-pTyh7h~|PB;lM&>$+> zG=%8Qh3I=KL`4}N?OI2=Jc=71mUl>q Date: Thu, 16 Mar 2023 19:27:43 +0200 Subject: [PATCH 28/99] RED-6394: fix dossier states save button not enabled --- libs/common-ui | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/common-ui b/libs/common-ui index b8f9e6a46..e67bfdf65 160000 --- a/libs/common-ui +++ b/libs/common-ui @@ -1 +1 @@ -Subproject commit b8f9e6a46db94569a1d1a3412b3d1d49e3133609 +Subproject commit e67bfdf6596db985ca8c1c0dc8890394e24aa607 From 5d0c149966bd1f2e6979477e4e66c96380e397e1 Mon Sep 17 00:00:00 2001 From: Dan Percic Date: Thu, 16 Mar 2023 19:29:21 +0200 Subject: [PATCH 29/99] RED-3800: update UI version to 4.000.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 78afabc35..fbbfa4c06 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "redaction", - "version": "3.990.0", + "version": "4.000.0", "private": true, "license": "MIT", "scripts": { From b7c53c63558ddf8a1cce8555d33f198a8a202aec Mon Sep 17 00:00:00 2001 From: Atlassian Bamboo Date: Thu, 16 Mar 2023 18:32:18 +0100 Subject: [PATCH 30/99] chore(release) --- package.json | 2 +- paligo-theme.tar.gz | Bin 3445 -> 3443 bytes 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index fbbfa4c06..93661d514 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "redaction", - "version": "4.000.0", + "version": "4.1.0", "private": true, "license": "MIT", "scripts": { diff --git a/paligo-theme.tar.gz b/paligo-theme.tar.gz index a2e4a7e1bff7bc2141efc64def5c21f894540fce..d1e649c7c08f97cfb0a8dae42e28a4ae085f60a3 100644 GIT binary patch delta 3326 zcmVEcM7ip$9DZEwqpmjk%1zAyAICs|2f)G`Bx;y5tDt(sIEV34KCo7 zKP7+9Te)s8f7kUu{;L3nBm3i$YHt7M@_!knxT*<5mw*2DD{FK4{Ng3umqo=;Q)SOC zQ^v}Adwrc0IjfhuqS$2wm$Y6+#r_%;!u@rE_cXiz;*TZCfAtN{>n&wCTioqZ_R?N| zc((oAUijiO5T7gYxfY)r_;kb=M~rdA7)Ok8#2AN<`DIM&GQ;;@)OWbNyn24I__SOSWi#fT$8l$IC6p`3FbXpaTX;TB`EnWtHJ|{`? zKwP$4P=tu2Mb-(vC~-vD{TA8F^#g$|9=GyPTQt3Jq+Vz`;B4jycFg<|$1%-!0Kf%) zJL_3cLYB9ad->xKMAb0D@v2&kgq|M2b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@Ts)$Go+AXrbWz9%=;{OUJLPN(Ckc@e!v%fEKeBY3| z&n=9}S3lwfV)4ioibHZ+cok$AKjL7QCd>G*H<}55eZ%*;%x7hO)H-CeWw01wJ!Iqc zicW-wQ_JzrKXSQ365p5G`TwIJ{{JYK3sl3GRg;PeEBoo|xq`yfS+oz!{wa0)SKSj2 z$>gi=wIfc30lemApDl!K*vv@o)^uub#lfXWtR6LUB z(8)Y&@V|uKjn!cYvHS0YlMn+9qM}Vhh~8X?zNbP|l=0E7b)?Iqxbb0mhlDr|KaY7d zF~#f_yUy9U_#}X&h?=SEHlO-G0?+N-&h6aJ?cC1o+|KRX&h6aJ?cC1o+|KQPsr?76 KRfJOjPyhh8#CZPz From 5d3ca73b3eee019914d07285fefe11d01ab5819c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adina=20=C8=9Aeudan?= Date: Thu, 16 Mar 2023 18:05:19 +0200 Subject: [PATCH 31/99] RED-6330: Fixed owner in list of member options --- .../edit-dossier-team/edit-dossier-team.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/red-ui/src/app/modules/shared-dossiers/dialogs/edit-dossier-dialog/edit-dossier-team/edit-dossier-team.component.ts b/apps/red-ui/src/app/modules/shared-dossiers/dialogs/edit-dossier-dialog/edit-dossier-team/edit-dossier-team.component.ts index 717f2cc8e..17b0ffb2b 100644 --- a/apps/red-ui/src/app/modules/shared-dossiers/dialogs/edit-dossier-dialog/edit-dossier-team/edit-dossier-team.component.ts +++ b/apps/red-ui/src/app/modules/shared-dossiers/dialogs/edit-dossier-dialog/edit-dossier-team/edit-dossier-team.component.ts @@ -8,7 +8,7 @@ import { PermissionsService } from '@services/permissions.service'; import { DossiersService } from '@services/dossiers/dossiers.service'; import { compareLists } from '@utils/functions'; import { FilesService } from '@services/files/files.service'; -import { getCurrentUser } from '@iqser/common-ui'; +import { Debounce, getCurrentUser } from '@iqser/common-ui'; @Component({ selector: 'redaction-edit-dossier-team', From bc549ab9a0766c3fb0506fba67eb1a39519ee1d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adina=20=C8=9Aeudan?= Date: Thu, 16 Mar 2023 20:14:27 +0200 Subject: [PATCH 32/99] RED-6316: Fixed showing rotation buttons --- .../file-preview-screen.component.ts | 10 +++--- .../services/viewer-header.service.ts | 32 +++++++++---------- .../src/app/services/permissions.service.ts | 4 +++ apps/red-ui/src/assets/config/config.json | 4 +-- 4 files changed, 27 insertions(+), 23 deletions(-) diff --git a/apps/red-ui/src/app/modules/file-preview/file-preview-screen.component.ts b/apps/red-ui/src/app/modules/file-preview/file-preview-screen.component.ts index 13948d94a..415f14fa1 100644 --- a/apps/red-ui/src/app/modules/file-preview/file-preview-screen.component.ts +++ b/apps/red-ui/src/app/modules/file-preview/file-preview-screen.component.ts @@ -268,7 +268,7 @@ export class FilePreviewScreenComponent ngOnDetach() { this._viewerHeaderService.resetCompareButtons(); - this._viewerHeaderService.enableLoadAllAnnotations(); + this._viewerHeaderService.enableLoadAllAnnotations(); // Reset the button state (since the viewer is reused between files) super.ngOnDetach(); this._changeRef.markForCheck(); } @@ -690,12 +690,12 @@ export class FilePreviewScreenComponent .subscribe(); this.addActiveScreenSubscription = this._readableRedactionsService.active$.pipe(switchMap(() => this.updateViewMode())).subscribe(); - this.addActiveScreenSubscription = this._viewModeService.viewMode$ + this.addActiveScreenSubscription = combineLatest([this._viewModeService.viewMode$, this._documentViewer.loaded$, this.state.file$]) .pipe( - tap(viewMode => + tap(([viewMode]) => viewMode === 'STANDARD' || viewMode === 'TEXT_HIGHLIGHTS' - ? this._viewerHeaderService.enableRotationButtons() - : this._viewerHeaderService.disableRotationButtons(), + ? this._viewerHeaderService.updateRotationButtons(true) + : this._viewerHeaderService.updateRotationButtons(false), ), ) .subscribe(); diff --git a/apps/red-ui/src/app/modules/pdf-viewer/services/viewer-header.service.ts b/apps/red-ui/src/app/modules/pdf-viewer/services/viewer-header.service.ts index f4b0088be..aab9e08fc 100644 --- a/apps/red-ui/src/app/modules/pdf-viewer/services/viewer-header.service.ts +++ b/apps/red-ui/src/app/modules/pdf-viewer/services/viewer-header.service.ts @@ -2,7 +2,7 @@ import { Inject, Injectable } from '@angular/core'; import { IHeaderElement, RotationTypes } from '@red/domain'; import { HeaderElements, HeaderElementType } from '../../file-preview/utils/constants'; import { TranslateService } from '@ngx-translate/core'; -import { BASE_HREF_FN, BaseHrefFn, IqserPermissionsService } from '@iqser/common-ui'; +import { BASE_HREF_FN, BaseHrefFn } from '@iqser/common-ui'; import { TooltipsService } from './tooltips.service'; import { PageRotationService } from './page-rotation.service'; import { PdfViewer } from './pdf-viewer.service'; @@ -13,8 +13,8 @@ import { UserPreferenceService } from '@users/user-preference.service'; import { fromEvent, Observable, Subject } from 'rxjs'; import { ViewerEvent, VisibilityChangedEvent } from '../utils/types'; import { ReadableRedactionsService } from './readable-redactions.service'; -import { ROLES } from '@users/roles'; import { filter, map, tap } from 'rxjs/operators'; +import { PermissionsService } from '@services/permissions.service'; const divider: IHeaderElement = { type: 'divider', @@ -23,6 +23,7 @@ const divider: IHeaderElement = { @Injectable() export class ViewerHeaderService { readonly events$: Observable; + toggleLoadAnnotations$: Observable; #buttons: Map; readonly #config = new Map([ [HeaderElements.SHAPE_TOOL_GROUP_BUTTON, true], @@ -38,7 +39,6 @@ export class ViewerHeaderService { ]); #docBeforeCompare: Blob; readonly #events$ = new Subject(); - toggleLoadAnnotations$: Observable; constructor( @Inject(BASE_HREF_FN) private readonly _convertPath: BaseHrefFn, @@ -50,7 +50,7 @@ export class ViewerHeaderService { private readonly _tooltipsService: TooltipsService, private readonly _readableRedactionsService: ReadableRedactionsService, private readonly _userPreferenceService: UserPreferenceService, - private readonly _iqserPermissionsService: IqserPermissionsService, + private readonly _permissionsService: PermissionsService, ) { this.events$ = this.#events$.asObservable(); } @@ -169,11 +169,6 @@ export class ViewerHeaderService { }; } - #discardRotation(): void { - this._rotationService.discardRotation(); - this.disable(ROTATION_ACTION_BUTTONS); - } - private get _rotateRight(): IHeaderElement { return { type: 'actionButton', @@ -304,22 +299,27 @@ export class ViewerHeaderService { }); } - enableRotationButtons(): void { - if (this._iqserPermissionsService.has(ROLES.files.rotatePage)) { + updateRotationButtons(show: boolean): void { + const { dossierId, fileId } = this._pdf; + const file = this._filesMapService.get(dossierId, fileId); + if (show && this._permissionsService.canRotatePage(file)) { this.enable(ROTATION_BUTTONS); + } else { + this.disable(ROTATION_BUTTONS); + this.#discardRotation(); } } - disableRotationButtons(): void { - this.disable(ROTATION_BUTTONS); - this.#discardRotation(); - } - resetCompareButtons() { this.disable([HeaderElements.CLOSE_COMPARE_BUTTON]); this.enable([HeaderElements.COMPARE_BUTTON]); } + #discardRotation(): void { + this._rotationService.discardRotation(); + this.disable(ROTATION_ACTION_BUTTONS); + } + #toggleRotationActionButtons() { if (this._rotationService.hasRotations) { this.enable(ROTATION_ACTION_BUTTONS); diff --git a/apps/red-ui/src/app/services/permissions.service.ts b/apps/red-ui/src/app/services/permissions.service.ts index 725837e62..a955fb06f 100644 --- a/apps/red-ui/src/app/services/permissions.service.ts +++ b/apps/red-ui/src/app/services/permissions.service.ts @@ -349,6 +349,10 @@ export class PermissionsService { ); } + canRotatePage(file: File) { + return this.isFileAssignee(file) && this._iqserPermissionsService.has(ROLES.files.rotatePage); + } + canDownloadRedactedFile() { return this._iqserPermissionsService.has(ROLES.files.processDownload); } diff --git a/apps/red-ui/src/assets/config/config.json b/apps/red-ui/src/assets/config/config.json index 07317e72b..c81f4bc32 100644 --- a/apps/red-ui/src/assets/config/config.json +++ b/apps/red-ui/src/assets/config/config.json @@ -1,7 +1,7 @@ { "ADMIN_CONTACT_NAME": null, "ADMIN_CONTACT_URL": null, - "API_URL": "https://dev-04.iqser.cloud/redaction-gateway-v1", + "API_URL": "https://dev-08.iqser.cloud/redaction-gateway-v1", "APP_NAME": "RedactManager", "AUTO_READ_TIME": 3, "BACKEND_APP_VERSION": "4.4.40", @@ -11,7 +11,7 @@ "MAX_RETRIES_ON_SERVER_ERROR": 3, "OAUTH_CLIENT_ID": "redaction", "OAUTH_IDP_HINT": null, - "OAUTH_URL": "https://dev-04.iqser.cloud/auth/realms/redaction", + "OAUTH_URL": "https://dev-08.iqser.cloud/auth/realms/redaction", "RECENT_PERIOD_IN_HOURS": 24, "SELECTION_MODE": "structural", "MANUAL_BASE_URL": "https://docs.redactmanager.com/preview", From 16d34e679a5b1918062cdf14a73bb5357833a25c Mon Sep 17 00:00:00 2001 From: Atlassian Bamboo Date: Thu, 16 Mar 2023 19:18:32 +0100 Subject: [PATCH 33/99] chore(release) --- package.json | 2 +- paligo-theme.tar.gz | Bin 3443 -> 3442 bytes 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 93661d514..577a86597 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "redaction", - "version": "4.1.0", + "version": "4.2.0", "private": true, "license": "MIT", "scripts": { diff --git a/paligo-theme.tar.gz b/paligo-theme.tar.gz index d1e649c7c08f97cfb0a8dae42e28a4ae085f60a3..87c6621550eb94069713e4daf902d5bc5d4a7c2f 100644 GIT binary patch delta 3355 zcmV+$4dn9k8uA*Dcz=SG7p$JxjvY9wCn)$yuo<+bX1GG==UD2$u`PA^%O5qn&q)2T zwBh0M_dLfv%m3$SN9A9U7)MO@Eu*^rur;`VSN@dzJ#Xc@z5Ii~0r`tBWPe;z&F%kO z{x72xS2bbi^3UIXWo<5>U%aIIvZxqps_fZi%2-)%udkCLXMgo_R}{O9;F8wMsMueF zLb$(9@SbM(U;MEo`LDjgdA+3!XN$XC%3j(F&$gf23txN&;&UZF*Wz;npN<&gh%t^B z>JX88V#`VNpSClD0RdX&J3%jZ^;&| ze7=BubtjkQ6v4ZU=EUky*{s`vdtB{kZn2_-$s6rmSTI)X0c#`DsQXzHTt%rsWRKri zcQj@xz_M)>*cRc275sNu)RfTz-c%&RjJ_tPVK3WnD}SLRi^WQE700$e<3Pir;(SC- z`3BWRMq~6eiXswwhfb@)F>Pv~yv57F=O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O; From c6e0b58f8e49c017aaeaebf02940088ca0b3d145 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adina=20=C8=9Aeudan?= Date: Thu, 16 Mar 2023 20:29:30 +0200 Subject: [PATCH 34/99] RED-6330: Fixed owner in list of member options (again) --- .../edit-dossier-team/edit-dossier-team.component.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/red-ui/src/app/modules/shared-dossiers/dialogs/edit-dossier-dialog/edit-dossier-team/edit-dossier-team.component.ts b/apps/red-ui/src/app/modules/shared-dossiers/dialogs/edit-dossier-dialog/edit-dossier-team/edit-dossier-team.component.ts index 17b0ffb2b..f5a06ac52 100644 --- a/apps/red-ui/src/app/modules/shared-dossiers/dialogs/edit-dossier-dialog/edit-dossier-team/edit-dossier-team.component.ts +++ b/apps/red-ui/src/app/modules/shared-dossiers/dialogs/edit-dossier-dialog/edit-dossier-team/edit-dossier-team.component.ts @@ -145,6 +145,7 @@ export class EditDossierTeamComponent implements EditDossierSectionInterface, On .map(user => user.id); } + @Debounce(0) onChangeOwner(ownerId: string) { if (this.hasOwner) { if (!this.isApprover(ownerId)) { From 8494395adf764af211035ae381898f96dc69a726 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adina=20=C8=9Aeudan?= Date: Thu, 16 Mar 2023 20:30:41 +0200 Subject: [PATCH 35/99] RED-6372: Only the dossier owner should be able to restore the dossier --- apps/red-ui/src/app/services/permissions.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/red-ui/src/app/services/permissions.service.ts b/apps/red-ui/src/app/services/permissions.service.ts index a955fb06f..d3de4966c 100644 --- a/apps/red-ui/src/app/services/permissions.service.ts +++ b/apps/red-ui/src/app/services/permissions.service.ts @@ -278,7 +278,7 @@ export class PermissionsService { } canRestoreDossier(dossier: IDossier): boolean { - return this._iqserPermissionsService.has(ROLES.dossiers.delete) && (this.isOwner(dossier) || this.isDossierMember(dossier)); + return this._iqserPermissionsService.has(ROLES.dossiers.delete) && this.isOwner(dossier); } canCreateDossier(dossierTemplate: DossierTemplate | DashboardStats): boolean { From ebcf83703ad2f1ba3ea6ff80a7c7e6daca5e84f4 Mon Sep 17 00:00:00 2001 From: Atlassian Bamboo Date: Thu, 16 Mar 2023 19:34:09 +0100 Subject: [PATCH 36/99] chore(release) --- package.json | 2 +- paligo-theme.tar.gz | Bin 3442 -> 3444 bytes 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 577a86597..ef35f9248 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "redaction", - "version": "4.2.0", + "version": "4.3.0", "private": true, "license": "MIT", "scripts": { diff --git a/paligo-theme.tar.gz b/paligo-theme.tar.gz index 87c6621550eb94069713e4daf902d5bc5d4a7c2f..5ee7104a5b12f77b0e842aed9139cf045020b3b0 100644 GIT binary patch delta 195 zcmV;!06hQl8uS{Fcz;&5>jqD3#|~`&2?~A^YzD2V8LkleIhOiwY)f7K@<+|?Gg5yn zZFso+Jr7=;<^MCZqw=pvj3XxdmQh`Q*cx2GD}PGgBE|b{WAXt(Q@; xzXpYHf1Thx&F;VWV@dK~eS`CQOBv1U%aIIvZxqps_fZi%2-)%udkCLXDsz{R}{O9;F8wMsMueF vLb$(9@SbM(U;MEo`LDjgdA+3!XN$XC%3j(F&$hEA0Y?l7pr4 Date: Thu, 16 Mar 2023 21:47:07 +0200 Subject: [PATCH 37/99] RED-6316: Small refactor --- .../file-preview-screen.component.ts | 12 +++++++----- .../services/viewer-header.service.ts | 18 +++++++----------- 2 files changed, 14 insertions(+), 16 deletions(-) diff --git a/apps/red-ui/src/app/modules/file-preview/file-preview-screen.component.ts b/apps/red-ui/src/app/modules/file-preview/file-preview-screen.component.ts index 415f14fa1..73fb3e88f 100644 --- a/apps/red-ui/src/app/modules/file-preview/file-preview-screen.component.ts +++ b/apps/red-ui/src/app/modules/file-preview/file-preview-screen.component.ts @@ -690,12 +690,14 @@ export class FilePreviewScreenComponent .subscribe(); this.addActiveScreenSubscription = this._readableRedactionsService.active$.pipe(switchMap(() => this.updateViewMode())).subscribe(); - this.addActiveScreenSubscription = combineLatest([this._viewModeService.viewMode$, this._documentViewer.loaded$, this.state.file$]) + + this.addActiveScreenSubscription = combineLatest([this._viewModeService.viewMode$, this.state.file$, this._documentViewer.loaded$]) .pipe( - tap(([viewMode]) => - viewMode === 'STANDARD' || viewMode === 'TEXT_HIGHLIGHTS' - ? this._viewerHeaderService.updateRotationButtons(true) - : this._viewerHeaderService.updateRotationButtons(false), + map( + ([viewMode, file]) => ['STANDARD', 'TEXT_HIGHLIGHTS'].includes(viewMode) && this.permissionsService.canRotatePage(file), + ), + tap(canRotate => + canRotate ? this._viewerHeaderService.enableRotationButtons() : this._viewerHeaderService.disableRotationButtons(), ), ) .subscribe(); diff --git a/apps/red-ui/src/app/modules/pdf-viewer/services/viewer-header.service.ts b/apps/red-ui/src/app/modules/pdf-viewer/services/viewer-header.service.ts index aab9e08fc..226bae523 100644 --- a/apps/red-ui/src/app/modules/pdf-viewer/services/viewer-header.service.ts +++ b/apps/red-ui/src/app/modules/pdf-viewer/services/viewer-header.service.ts @@ -14,7 +14,6 @@ import { fromEvent, Observable, Subject } from 'rxjs'; import { ViewerEvent, VisibilityChangedEvent } from '../utils/types'; import { ReadableRedactionsService } from './readable-redactions.service'; import { filter, map, tap } from 'rxjs/operators'; -import { PermissionsService } from '@services/permissions.service'; const divider: IHeaderElement = { type: 'divider', @@ -50,7 +49,6 @@ export class ViewerHeaderService { private readonly _tooltipsService: TooltipsService, private readonly _readableRedactionsService: ReadableRedactionsService, private readonly _userPreferenceService: UserPreferenceService, - private readonly _permissionsService: PermissionsService, ) { this.events$ = this.#events$.asObservable(); } @@ -299,15 +297,13 @@ export class ViewerHeaderService { }); } - updateRotationButtons(show: boolean): void { - const { dossierId, fileId } = this._pdf; - const file = this._filesMapService.get(dossierId, fileId); - if (show && this._permissionsService.canRotatePage(file)) { - this.enable(ROTATION_BUTTONS); - } else { - this.disable(ROTATION_BUTTONS); - this.#discardRotation(); - } + enableRotationButtons(): void { + this.enable(ROTATION_BUTTONS); + } + + disableRotationButtons(): void { + this.disable(ROTATION_BUTTONS); + this.#discardRotation(); } resetCompareButtons() { From 8b732bfd7460cee060bc827e027263d673b5215f Mon Sep 17 00:00:00 2001 From: Atlassian Bamboo Date: Thu, 16 Mar 2023 20:50:55 +0100 Subject: [PATCH 38/99] chore(release) --- package.json | 2 +- paligo-theme.tar.gz | Bin 3444 -> 3443 bytes 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index ef35f9248..2c9c65fbd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "redaction", - "version": "4.3.0", + "version": "4.4.0", "private": true, "license": "MIT", "scripts": { diff --git a/paligo-theme.tar.gz b/paligo-theme.tar.gz index 5ee7104a5b12f77b0e842aed9139cf045020b3b0..448633b17843c7fee5593da87b36fcdd5e552baa 100644 GIT binary patch delta 3356 zcmV+%4de3k8uJ>Ecz@Q8>$*>D#|~`o2?~A^YzD2V8LkleIhOiwY)f7K@<+|?Gg5yn zZFso+J$Jo6%m3$SN9A9U7)MO@Eu*^rur;`VSN@dzJ#Pgv@8s_b`L6;W_P_mcNj10s zbNRoFQe4%9q02vi`<1o1e17qg?#rTLsHw7Nmnmaqy}iCpihrEd%Ux0IGJ;E5FQa0A z4GQ7@I>CFI-GA}NlH|Yo2IuvbGMp{$b}4&lFFf0RZZCZC8Hmr7_*{$64SYIcj3dT4 zVvHlkIAV;$$NVy;b(!J&FX}s7US2)FSaSSuW~Btjq(XncKsLuIpW2kvpTqq)V35+-l7cVWR;u?MV;NTcp&O>h;Z0+Bs_ zW8Kl1r2xyeRbX3$8&>e&Wl>W`3wTqJ3^V$goQAz@zkjWSk}MW0$yFTN{)__+i;D9R zIprHv7a5Jw(>WC-3dgjmf$|nF1D}&5c_1#^Ehs`n(jw~wUz9ka?0$>v<@$lZ z7LQwbs4bdaI8rY(9dI^t1UqJaiQ|~&I{@GUz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+CS^M)lq=L$({f?8MU2&+&i~Z@E>ypY6d$Vb)7jsbIKFR4-RBm@xn^`=b82Vu~<4Is2QYs$FbLeCq_+LWr#_BMH*!_3HNr-_4QPHL$ zL~kxc-%}wf%J^v4I@0A)-1xA(LqZ&fpT|6!m|}K|UFYmvd=fxXM9tK7n@{~8f#-H^ n=XP%Ac5df(Zs&Gx=N5Ku=XP%Ac5dhPztsK%X`b=$08jt`CIW`_ From dbbbc6b5b1fe6edbbbe72f1189a92fb3b304154b Mon Sep 17 00:00:00 2001 From: Dan Percic Date: Thu, 16 Mar 2023 22:07:40 +0200 Subject: [PATCH 39/99] RED-3800: remove IqserIconsModule --- .../src/app/modules/dossier-overview/dossier-overview.module.ts | 2 -- .../src/app/modules/dossiers-listing/dossiers-listing.module.ts | 2 -- apps/red-ui/src/app/modules/file-preview/file-preview.module.ts | 2 -- libs/common-ui | 2 +- 4 files changed, 1 insertion(+), 7 deletions(-) diff --git a/apps/red-ui/src/app/modules/dossier-overview/dossier-overview.module.ts b/apps/red-ui/src/app/modules/dossier-overview/dossier-overview.module.ts index 59075ab62..0f963631a 100644 --- a/apps/red-ui/src/app/modules/dossier-overview/dossier-overview.module.ts +++ b/apps/red-ui/src/app/modules/dossier-overview/dossier-overview.module.ts @@ -4,7 +4,6 @@ import { RouterModule, Routes } from '@angular/router'; import { CircleButtonComponent, IqserHelpModeModule, - IqserIconsModule, IqserInputsModule, IqserListingModule, IqserLoadingModule, @@ -55,7 +54,6 @@ const routes: Routes = [ RouterModule.forChild(routes), CommonModule, SharedDossiersModule, - IqserIconsModule, TranslateModule, IqserHelpModeModule, IqserUsersModule, diff --git a/apps/red-ui/src/app/modules/dossiers-listing/dossiers-listing.module.ts b/apps/red-ui/src/app/modules/dossiers-listing/dossiers-listing.module.ts index af6f75cfc..e357f9a02 100644 --- a/apps/red-ui/src/app/modules/dossiers-listing/dossiers-listing.module.ts +++ b/apps/red-ui/src/app/modules/dossiers-listing/dossiers-listing.module.ts @@ -3,7 +3,6 @@ import { CommonModule } from '@angular/common'; import { CompositeRouteGuard, IqserHelpModeModule, - IqserIconsModule, IqserListingModule, IqserPermissionsModule, IqserScrollbarModule, @@ -47,7 +46,6 @@ const routes: Routes = [ CommonModule, SharedModule, SharedDossiersModule, - IqserIconsModule, TranslateModule, IqserHelpModeModule, IqserUsersModule, diff --git a/apps/red-ui/src/app/modules/file-preview/file-preview.module.ts b/apps/red-ui/src/app/modules/file-preview/file-preview.module.ts index db2a9712d..f8f010069 100644 --- a/apps/red-ui/src/app/modules/file-preview/file-preview.module.ts +++ b/apps/red-ui/src/app/modules/file-preview/file-preview.module.ts @@ -7,7 +7,6 @@ import { IqserEmptyStatesModule, IqserFiltersModule, IqserHelpModeModule, - IqserIconsModule, IqserInputsModule, IqserPermissionsModule, IqserScrollbarModule, @@ -109,7 +108,6 @@ const components = [ imports: [ RouterModule.forChild(routes), CommonModule, - IqserIconsModule, TranslateModule, OverlayModule, IqserHelpModeModule, diff --git a/libs/common-ui b/libs/common-ui index e67bfdf65..8650dd472 160000 --- a/libs/common-ui +++ b/libs/common-ui @@ -1 +1 @@ -Subproject commit e67bfdf6596db985ca8c1c0dc8890394e24aa607 +Subproject commit 8650dd472f5cc6317661ba294c6684b9646d5984 From bc827a34faa0b395220d7b64dfba51c903dbcd7f Mon Sep 17 00:00:00 2001 From: Dan Percic Date: Thu, 16 Mar 2023 23:48:04 +0200 Subject: [PATCH 40/99] RED-3800: empty states standalone --- apps/red-ui/src/app/app.module.ts | 2 ++ apps/red-ui/src/app/modules/admin/admin.module.ts | 4 ++-- .../src/app/modules/file-preview/file-preview.module.ts | 4 ++-- .../src/app/modules/shared-dossiers/shared-dossiers.module.ts | 4 ++-- libs/common-ui | 2 +- 5 files changed, 9 insertions(+), 7 deletions(-) diff --git a/apps/red-ui/src/app/app.module.ts b/apps/red-ui/src/app/app.module.ts index 2b93c463a..11165b505 100644 --- a/apps/red-ui/src/app/app.module.ts +++ b/apps/red-ui/src/app/app.module.ts @@ -11,6 +11,7 @@ import { CachingModule, CircleButtonComponent, CommonUiModule, + EmptyStateComponent, IqserHelpModeModule, IqserLoadingModule, IqserPermissionsModule, @@ -155,6 +156,7 @@ export const appModuleFactory = (config: AppConfig) => { }, }), CircleButtonComponent, + EmptyStateComponent, ], providers: [ { diff --git a/apps/red-ui/src/app/modules/admin/admin.module.ts b/apps/red-ui/src/app/modules/admin/admin.module.ts index ddabd1f2a..b053b7a0a 100644 --- a/apps/red-ui/src/app/modules/admin/admin.module.ts +++ b/apps/red-ui/src/app/modules/admin/admin.module.ts @@ -44,9 +44,9 @@ import { KmsSignatureConfigurationComponent } from './dialogs/configure-digital- import { ChevronButtonComponent, CircleButtonComponent, + EmptyStateComponent, HumanizePipe, IconButtonComponent, - IqserEmptyStatesModule, IqserHelpModeModule, IqserInputsModule, IqserListingModule, @@ -119,7 +119,6 @@ const components = [ IqserScrollbarModule, IqserInputsModule, IqserUploadFileModule, - IqserEmptyStatesModule, IqserSharedModule, IqserHelpModeModule, IqserPermissionsModule, @@ -129,6 +128,7 @@ const components = [ IconButtonComponent, CircleButtonComponent, ChevronButtonComponent, + EmptyStateComponent, ], }) export class AdminModule {} diff --git a/apps/red-ui/src/app/modules/file-preview/file-preview.module.ts b/apps/red-ui/src/app/modules/file-preview/file-preview.module.ts index f8f010069..802ec7310 100644 --- a/apps/red-ui/src/app/modules/file-preview/file-preview.module.ts +++ b/apps/red-ui/src/app/modules/file-preview/file-preview.module.ts @@ -3,8 +3,8 @@ import { CommonModule } from '@angular/common'; import { CapitalizePipe, CircleButtonComponent, + EmptyStateComponent, IconButtonComponent, - IqserEmptyStatesModule, IqserFiltersModule, IqserHelpModeModule, IqserInputsModule, @@ -116,7 +116,6 @@ const components = [ IqserInputsModule, IqserSharedModule, IqserUploadFileModule, - IqserEmptyStatesModule, IqserFiltersModule, IqserScrollbarModule, IqserPermissionsModule, @@ -124,6 +123,7 @@ const components = [ CircleButtonComponent, SharedDossiersModule, IconButtonComponent, + EmptyStateComponent, ], providers: [FilePreviewDialogService, ManualRedactionService, DocumentUnloadedGuard, SuggestionsService], }) diff --git a/apps/red-ui/src/app/modules/shared-dossiers/shared-dossiers.module.ts b/apps/red-ui/src/app/modules/shared-dossiers/shared-dossiers.module.ts index b5728738f..9cea2ae59 100644 --- a/apps/red-ui/src/app/modules/shared-dossiers/shared-dossiers.module.ts +++ b/apps/red-ui/src/app/modules/shared-dossiers/shared-dossiers.module.ts @@ -14,8 +14,8 @@ import { FileAssignService } from './services/file-assign.service'; import { DictionaryDetailsDialogComponent } from './dialogs/edit-dossier-dialog/dictionary/dictionary-details-dialog/dictionary-details-dialog.component'; import { CircleButtonComponent, + EmptyStateComponent, IconButtonComponent, - IqserEmptyStatesModule, IqserHelpModeModule, IqserInputsModule, IqserPermissionsModule, @@ -50,13 +50,13 @@ const services = [FileAssignService]; IqserHelpModeModule, IqserUsersModule, TranslateModule, - IqserEmptyStatesModule, IqserSharedModule, IqserInputsModule, IqserScrollbarModule, IqserPermissionsModule, IconButtonComponent, CircleButtonComponent, + EmptyStateComponent, ], }) export class SharedDossiersModule {} diff --git a/libs/common-ui b/libs/common-ui index 8650dd472..87b19da9a 160000 --- a/libs/common-ui +++ b/libs/common-ui @@ -1 +1 @@ -Subproject commit 8650dd472f5cc6317661ba294c6684b9646d5984 +Subproject commit 87b19da9a900cbc9de8af666612bbae7aedff900 From b269ddd039d57e8913e22d6ccf48de9f4d39e81c Mon Sep 17 00:00:00 2001 From: Atlassian Bamboo Date: Thu, 16 Mar 2023 22:50:54 +0100 Subject: [PATCH 41/99] chore(release) --- package.json | 2 +- paligo-theme.tar.gz | Bin 3443 -> 3444 bytes 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 2c9c65fbd..00a708276 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "redaction", - "version": "4.4.0", + "version": "4.5.0", "private": true, "license": "MIT", "scripts": { diff --git a/paligo-theme.tar.gz b/paligo-theme.tar.gz index 448633b17843c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^%7mgAj&}ACKVM{_S4sM1%;`zXdjmSQ|k7wx+flz$yeP|>i4g@r!?qab$?Iks(;lzmECtW zatd>~CvpFHRb&osX7PAp=!eyeCxLxPsdyyMp_6&we+j)CtHTgt_umO8AqE;mMVp2Y zy}1y5Plc!`18Pyhgm%6c;Z From 6b9eb5bc0c5297a12dc8bf160e9d9d0181502a2b Mon Sep 17 00:00:00 2001 From: Dan Percic Date: Fri, 17 Mar 2023 11:35:23 +0200 Subject: [PATCH 42/99] RED-6332: fix no notifications icon --- .../src/app/components/base-screen/base-screen.component.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/red-ui/src/app/components/base-screen/base-screen.component.html b/apps/red-ui/src/app/components/base-screen/base-screen.component.html index 515df50ea..877785591 100644 --- a/apps/red-ui/src/app/components/base-screen/base-screen.component.html +++ b/apps/red-ui/src/app/components/base-screen/base-screen.component.html @@ -30,7 +30,7 @@

From 3722a0d1107a08b8ff5bd763eaaa655babb739d7 Mon Sep 17 00:00:00 2001 From: Atlassian Bamboo Date: Fri, 17 Mar 2023 10:38:01 +0100 Subject: [PATCH 43/99] chore(release) --- package.json | 2 +- paligo-theme.tar.gz | Bin 3444 -> 3444 bytes 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 00a708276..20c2df93f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "redaction", - "version": "4.5.0", + "version": "4.6.0", "private": true, "license": "MIT", "scripts": { diff --git a/paligo-theme.tar.gz b/paligo-theme.tar.gz index c8b1b348e542f668c3e9cd1258e86153300f616e..e841dc8a823bfa29f43228e995112dfb34999486 100644 GIT binary patch delta 3359 zcmV+)4dC+h8uS{Fc7Gk%p6dku6Wg)<_4)}4eiCd3t*IHV5c)Zm`fqGYUH@NE0Jz3|0nAU;>(b1gnM@ac## zju_*JF^(AHh%pWy^UIjlWrpv+sPAxjdG-8a$??OPl@c723jO^8p|=*zWAbK;oagW> zB^1`*B0sRpH-FDB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Az|5yQO)roURO%Xl*@_FhSVFuGnb2!W?!^5sbzpm$=-p@x-S5VQ zr*81YlCM10IL|h!arb(_I|-!SsSE8VKYvS_aX@CeqO~$q+?*Tb;)1C5B}D~@HDyVv z2-jqY-Rvr%a(-{98fp~w2gn0D6{SC>;t#mDqZat0lti}~tr@Qh5@1t>IngsO5DBSD zNW2yT`~d>;g7JF-eK5Mf+t4Hv0k`ly>JJ5A(Tw)1M##v5gPSOmzMnyY=0fp zW#R&jBt{+wNSY46deRQBB!!0;K&XD2Fx1rU!iLoTKC!WD$Y{!Kf+n`EU-UA zmbmG0r4oQrPa@ww^@z7WCDQE=E}7IDRVei>HEHaPCDM^dH#&b&*Z#|dd%*SxeZhulQhMW3b2c!M6MAcPa@em+(@riN97I^SX-bpAD zi`|#xY8@%g-BE&eR~0M#{#Va zUVe1^tI=X0xl&`k!6ciNTRkP>mx*aKKuu(4u5XD$QJFx z@DhsV2bH@qpZ*HiI~^a>O)Ry4)^)3+0ELr10dg{GI{~?OZl~Zs<_gpdc0B5ylL~*v zWhQm_eo@8Wieaotd zNDSI7vcF}`NO|J_3MN8B$A1)%jCrTCzb|oo-;lb`EsV)mKjH;q@yHd5LvmYq6=WDc z;$W91%lNN1nhAZw_qohxWq#B;WVB_l7-2nRFc?I!qi!`56k{3b^BM{6A#JctL`cF`&Zpl8h`Y!x~Fv2zv`aK z?zO0}Z00 zO+$#@T!_A>LR6IT(XMr*%cHpQVR?syI1WFLc{DM_>=wJu*}3>6fTW0;sp~eM`ac5C p?cC1o+|KRX&h6aJ?HJt7?cC1o+|KRX&h3Ax{RcP~f%pJW004qRj}QO= From 569fbf6b137a79d41e158589e92d8a7cd6d32ab6 Mon Sep 17 00:00:00 2001 From: Valentin Mihai Date: Fri, 17 Mar 2023 12:16:38 +0200 Subject: [PATCH 44/99] RED-6375 - Close "download options"-window if user click anywhere outside of the window --- .../download-dialog/download-dialog.component.ts | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/apps/red-ui/src/app/modules/shared/dialogs/download-dialog/download-dialog.component.ts b/apps/red-ui/src/app/modules/shared/dialogs/download-dialog/download-dialog.component.ts index e1826bdc0..d7c98e035 100644 --- a/apps/red-ui/src/app/modules/shared/dialogs/download-dialog/download-dialog.component.ts +++ b/apps/red-ui/src/app/modules/shared/dialogs/download-dialog/download-dialog.component.ts @@ -2,10 +2,10 @@ import { Component, Inject } from '@angular/core'; import { Dossier, DownloadFileType, DownloadFileTypes, IReportTemplate, File, WorkflowFileStatuses } from '@red/domain'; import { downloadTypesForDownloadTranslations } from '@translations/download-types-translations'; import { ReportTemplateService } from '@services/report-template.service'; -import { AbstractControl, FormBuilder } from '@angular/forms'; +import { AbstractControl } from '@angular/forms'; import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog'; import { DefaultColorsService } from '@services/entity-services/default-colors.service'; -import { IconButtonTypes, List } from '@iqser/common-ui'; +import { BaseDialogComponent, IconButtonTypes, List } from '@iqser/common-ui'; export interface DownloadDialogData { readonly dossier: Dossier; @@ -23,19 +23,21 @@ export interface DownloadDialogResult { templateUrl: './download-dialog.component.html', styleUrls: ['./download-dialog.component.scss'], }) -export class DownloadDialogComponent { +export class DownloadDialogComponent extends BaseDialogComponent { readonly iconButtonTypes = IconButtonTypes; readonly downloadTypes: { key: DownloadFileType; label: string }[] = this._formDownloadTypes; readonly availableReportTypes = this._availableReportTypes; - readonly form = this._getForm(); constructor( private readonly _defaultColorsService: DefaultColorsService, private readonly _reportTemplateController: ReportTemplateService, - private readonly _formBuilder: FormBuilder, - private readonly _dialogRef: MatDialogRef, + protected readonly _dialogRef: MatDialogRef, @Inject(MAT_DIALOG_DATA) readonly data: DownloadDialogData, - ) {} + ) { + super(_dialogRef); + + this.form = this._getForm(); + } get reportTypesLength() { return this.form.controls.reportTemplateIds?.value?.length || 0; From 44867860c0c4a61cab613c8a6f182c6633a1f1b5 Mon Sep 17 00:00:00 2001 From: Atlassian Bamboo Date: Fri, 17 Mar 2023 11:23:21 +0100 Subject: [PATCH 45/99] chore(release) --- package.json | 2 +- paligo-theme.tar.gz | Bin 3444 -> 3443 bytes 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 20c2df93f..0b11eb3dc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "redaction", - "version": "4.6.0", + "version": "4.7.0", "private": true, "license": "MIT", "scripts": { diff --git a/paligo-theme.tar.gz b/paligo-theme.tar.gz index e841dc8a823bfa29f43228e995112dfb34999486..4fe9d341b5c615fadf2aab6b832f875f22735f02 100644 GIT binary patch delta 3356 zcmV+%4de3k8uJ>Ecz@p7cibno1CP!V6#OLE3|dn&Tp{#xEcM^mmb(1qkDA?Qr2bgi z@NoHi?m9Tj|L15&CFI-GA}NlH|Yo2IuvbGMp{$b}4&lFFf0RZZCZC8Hmr7_*{$64SYIcj3dT4 zVvHlkIAV;$$NVy;b(!J&FX}s7US2)FSaSSuW~Btjq(XncKsLuIpW2kvpTqq)V35+-l7cVWR;u?MV;NTcp&O>h;Z0+Bs_ zW8Kl1r2xyeRbX3$8&>e&Wl>W`3wTqJ3^V$goQAz@zkjWSk}MW0$yFTN{)__+i;D9R zIprHv7a5Jw(>WC-3dgjmf$|nF1D}&5c_1#^Ehs`n(jw~wUz9ka?0$>v<@$lZ z7LQwbs4bdaI8rY(9dI^t1UqJaiQ|~&I{@GUzn%3gC?U(+$-Vq>2%>5j;doUoMnX>y z;JG-RNq>2<3buENE0VM4M*5?ss`;z3pgALzK^JVU4dTz9N5VEOUQ2!(6ey1UI1rF7 zUhYXuF)H%x9@SArNRDtGqi4z%S@ZpNC19ENwI)H|ZTVo{+XKl4a(BN|h^m378L`SH z%xHwU2qwrF@Ks{#ZU$z+0Ph9DEli!u{>h0;<$s4oqe;|M4lfgeSpy*fbb@$+Cm9Y& zCJoWSs<~428F|Aj9!`MjMWj^-6PQT=1GCs_%xLzK=DF06&h!ZheFu)6CimSq6$b+l zl^^nDt?xaKl{C#p`$t^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y%{z!#+?y3J_KcvX-9n<~tSo_T>tNL51O zwGiMB5Rey)-xKJA(FL!uHyjc?Fa6v#bDhqxDZvONmVB>qrtm97q5|pL3y3=wXch4C zqvKzV76ZwZ8uJY%*{s~^DG|R+OrrsM!dc~92Zk&F6A6wPXC2Tc2Wxh4+kZv2Xdi}` zP&7ZN+>QD4SHRxs_?T{Dsr|FATO9=`oa_mZlTq6V$h~tr1^+Qupk}b+QTLow_%kju zslz94Ea`*hT}v9wnR)kUfX<^Y7!Bb)COFr%r@JaNp!4{Bpa(G0F$we}BYW#xRz*Z& z&~B0aEo(-~6aQB*5gIzCfPZAnJDvS~iR1f*)O~JYOuqUNFA$4Iu23A3+rq0L!}t*g zyEIwGf4$L6=o`MzWj-tOqt+p#ErZ1f>meJjS9BsgoLY`|{*lWSlK8&d&i@|;@&8A; zT%a1hteR9*SlLfs&lMD=&Z2!-_D`wXzv`ZNNG4x(PpRL(>Ymb|e}C0IrK|o`_f&S@ z)yOH#<(|a-<5iJ4xS7S{iJ>1>GoA$YA*JGxJcmx^f&V4+ZmbSNh~0lDoP-!?5EX42 zLiFZB^gR`#qKuDrts`9?#f=ZkJ0!$$_<78ui795c*mcg%#U}wIMbu1PxB1ln5qNIr nc5df(Zs&Gx=XP%Ab{1~uc5df(Zs&Gx|4Z#Z*^2{e08jt`4vC7p From f7caa70736d979152175f235882ab6c8bb1ab56d Mon Sep 17 00:00:00 2001 From: Valentin Mihai Date: Fri, 17 Mar 2023 13:26:47 +0200 Subject: [PATCH 46/99] RED-6381 - Display titles of file attributes in workflow view --- .../workflow-item/workflow-item.component.html | 5 +++-- .../workflow-item/workflow-item.component.scss | 16 ++++++++++++++++ 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/apps/red-ui/src/app/modules/dossier-overview/components/workflow-item/workflow-item.component.html b/apps/red-ui/src/app/modules/dossier-overview/components/workflow-item/workflow-item.component.html index 9b743922e..27720cc5e 100644 --- a/apps/red-ui/src/app/modules/dossier-overview/components/workflow-item/workflow-item.component.html +++ b/apps/red-ui/src/app/modules/dossier-overview/components/workflow-item/workflow-item.component.html @@ -13,8 +13,9 @@
-
- {{ file.fileAttributes.attributeIdToValue[config.id] || '-' }} +
+ {{ config.label }} + {{ file.fileAttributes.attributeIdToValue[config.id] || '-' }}
diff --git a/apps/red-ui/src/app/modules/dossier-overview/components/workflow-item/workflow-item.component.scss b/apps/red-ui/src/app/modules/dossier-overview/components/workflow-item/workflow-item.component.scss index 3f2e7cc60..80fd48faa 100644 --- a/apps/red-ui/src/app/modules/dossier-overview/components/workflow-item/workflow-item.component.scss +++ b/apps/red-ui/src/app/modules/dossier-overview/components/workflow-item/workflow-item.component.scss @@ -10,6 +10,22 @@ &:hover redaction-file-actions { display: initial; } + + .attribute { + display: flex; + flex-direction: column; + + b { + text-transform: uppercase; + } + + b, + span { + text-overflow: ellipsis; + white-space: nowrap; + overflow: hidden; + } + } } .details-wrapper { From da3842ae88f22bf4f4f6a9d2fc692d862072f0b1 Mon Sep 17 00:00:00 2001 From: Atlassian Bamboo Date: Fri, 17 Mar 2023 12:32:51 +0100 Subject: [PATCH 47/99] chore(release) --- package.json | 2 +- paligo-theme.tar.gz | Bin 3443 -> 3444 bytes 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 0b11eb3dc..cdcf9bc62 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "redaction", - "version": "4.7.0", + "version": "4.8.0", "private": true, "license": "MIT", "scripts": { diff --git a/paligo-theme.tar.gz b/paligo-theme.tar.gz index 4fe9d341b5c615fadf2aab6b832f875f22735f02..a569d4e320128dbd81cd5845442170e8439865a6 100644 GIT binary patch delta 3357 zcmV+&4dU|i8uS{Fcz^yna92-k#||9(2?~A^YzD2V8LkleIhOiwY)f7K@<+|?Gg5yn zZFso+Jk(6NWDT{OwoP=JNT)OS&(MilL^;o?WJlmG$=eI)5p0Rxfu&vC9Z9X}ye! z{WU0r`|AYnX?Fj`A4`(|>KmNbTgq^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D{uYSY}#Nv@F6o=%t@G8hKe#F5p zO_uRrZ!{D7hVOHk&&vF$b;xMTU@^ja$j0jxod^%7mgAj&}ACKVM{_S4sM1%;`zXdjmSQ|k7wx+flz$yeP|>i4g@r!?qab$?Iks(;lzmECtW zatd>~CvpFHRb&osX7PAp=!eyeCxLxPsdyyMp_6&we+j)CtHTgt_umO8AqE;mMVp2Y zy}1y5Plc!` Date: Fri, 17 Mar 2023 17:23:39 +0200 Subject: [PATCH 48/99] RED-6361, fix OCR documents image hint annotations showing the hide button when already hidden. --- .../modules/pdf-viewer/services/annotation-draw.service.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/red-ui/src/app/modules/pdf-viewer/services/annotation-draw.service.ts b/apps/red-ui/src/app/modules/pdf-viewer/services/annotation-draw.service.ts index 8f7b17d59..7f6f45016 100644 --- a/apps/red-ui/src/app/modules/pdf-viewer/services/annotation-draw.service.ts +++ b/apps/red-ui/src/app/modules/pdf-viewer/services/annotation-draw.service.ts @@ -146,10 +146,13 @@ export class AnnotationDrawService { annotation.Id = annotationWrapper.id; annotation.ReadOnly = true; + const isOCR = annotationWrapper.isOCR && !annotationWrapper.isSuggestionResize; + if (isOCR && !this._annotationManager.isHidden(annotationWrapper.annotationId)) { + this._annotationManager.addToHidden(annotationWrapper.annotationId); + } annotation.Hidden = annotationWrapper.isChangeLogRemoved || (hideSkipped && annotationWrapper.isSkipped) || - (annotationWrapper.isOCR && !annotationWrapper.isSuggestionResize) || this._annotationManager.isHidden(annotationWrapper.annotationId); annotation.setCustomData('redact-manager', 'true'); annotation.setCustomData('redaction', String(annotationWrapper.previewAnnotation)); From ddcfdc5367591c9e21e1807a822ca84010a51203 Mon Sep 17 00:00:00 2001 From: Atlassian Bamboo Date: Fri, 17 Mar 2023 16:26:39 +0100 Subject: [PATCH 49/99] chore(release) --- package.json | 2 +- paligo-theme.tar.gz | Bin 3444 -> 3443 bytes 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index cdcf9bc62..b9694e71c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "redaction", - "version": "4.8.0", + "version": "4.9.0", "private": true, "license": "MIT", "scripts": { diff --git a/paligo-theme.tar.gz b/paligo-theme.tar.gz index a569d4e320128dbd81cd5845442170e8439865a6..64d9476f34e798d7e55b8bf3c672194f2df20795 100644 GIT binary patch delta 3357 zcmV+&4dU|j8uJ>EcYipxXM4^Q+p+z%{R9O+2{wb))C^Y${TxgEH@2lNfBBKWq&y;FUimf6rUFZZChAk8@Um2m9atxTKof z|GE5MMk%gp!qDZPzx~SETt2^eN%v(@G1OGqv&)pRvff@_Cx1oG>gBE|b{WAXt(Q@; zzXpYHf1Thx&F;VWV@dK~eS`CQOBv1qIpc-Y?1REex-!M z`dj1&cKPP{#eciOjO{igNl_6oGsMyDt}2>5wxS{{sx5lzZa@v4@jR3|VhU%5Rnxa* zi&j2gK)$+@%W{g~T}E?ab*OCC?Z7>*b~LwGQNrYn_AV?KEB1i35oy%@tO>57R3Ng) zZ>&2SvlL+2whC;EaKj4zyDVzTXaR33l3_+)lhd%5?SHqGP?E)BCAo@Y+n;fuVNr2D zBBy+V>LQ~tdKyI$iM>OoRpFR6HBjE-W#Ds?BoD-8y9GsvNLpl_;ENJRl-+NUy<9&K z*y3?354AAfzaYb_W+(>`aR5gE97Bpw1GU$TMwL$#Z^GMjH#cRoLg962|9|r=` z#mha3DMm$}-J?3H2+0x7WAsefB5S_it^_RezSbn@yDcBgdwU?+K<@5$3Q;xiG$U5o zgc*%67r_J>1HMXZ-Oa!Z7~s7?xP_^6**`gPsek;iXf%nM%Hd@~Fl!(rfKCuE@Fc?_ z$)q7VST$FwJ|l0K#ls0uy@<35VFEJ=U|<$ojTy~e(mayd~%}*u(OpKR#R5cEW^V>d6AP@yRy@sVBijHRz&UGp{O2#2Eva*1RL%6qws0%)#I>IY~I+$id_|x zsHkvj)j<_V#f{NJFrSc$V*cFC%)rK5NozB6=_VWR)qa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0)??z+jem5>W zb%QUKeC4smdA3oFyVnEWNg(Y`U1&e~S%1=u12WSUt(BqT=G-V37euu$DJnp$DN9mC zxF$pFW>*Q7^Lswlmw z6BlSCG4eP-(scOMlXiF|DLlLYLiN*xp{8~hHl+6ViH$vdiw5*oah8(*5zeA#f&Ce> z#7&PYl>n4_68ZM2N4)(hk#2u*$)w(>LaA@5Nn>v;k&Z;V(fNzY4!crAu2gU$wzXK89;{lYe?K+|=(n810uOs;>HqhXApQPmD9Rz=LPM0SwOiZHzdcs-dTnC0M022w08D|~PCI@SFaDUrHwrC%Q zmryi6sN9YD^jE;%>G+s#VyXSJu3H@iD4gsGkdsl{3CO*3I|ctSSDkvxY^=7Iku^lq#ULx|mfC!B;BXb=@` z8bb8uLi9ZqqN0qCcC8~_9>t9h%R3~*ark-6qlqbIx7c;g&c!DIBt_IrUAOtv{}Fg@ o=XP%Ac5df(Zs&Gx=NEQv=XP%Ac5df(ZvRW|KeJjn%K%US06MgY!vFvP From a47c98abd6ded3612e1b33dcdf298963c2880209 Mon Sep 17 00:00:00 2001 From: Dan Percic Date: Fri, 17 Mar 2023 21:45:23 +0200 Subject: [PATCH 50/99] RED-6403: reorder license information --- .../license-screen.component.html | 40 ++++++++++--------- apps/red-ui/src/assets/i18n/redact/de.json | 2 +- apps/red-ui/src/assets/i18n/redact/en.json | 8 ++-- apps/red-ui/src/assets/i18n/scm/de.json | 2 +- apps/red-ui/src/assets/i18n/scm/en.json | 8 ++-- 5 files changed, 32 insertions(+), 28 deletions(-) diff --git a/apps/red-ui/src/app/modules/admin/screens/license/license-screen/license-screen.component.html b/apps/red-ui/src/app/modules/admin/screens/license/license-screen/license-screen.component.html index 30d8341cc..d02b006f1 100644 --- a/apps/red-ui/src/app/modules/admin/screens/license/license-screen/license-screen.component.html +++ b/apps/red-ui/src/app/modules/admin/screens/license/license-screen/license-screen.component.html @@ -61,26 +61,8 @@
{{ licenseService.totalLicensedNumberOfPages }}
-
-
-
{{ licenseService.currentInfo.numberOfAnalyzedPages }}
-
- -
-
-
{{ licenseService.currentInfo.numberOfOcrPages }}
-
-
-
-
-
{{ licenseService.annualInfo.numberOfAnalyzedPages }}
-
-
@@ -89,10 +71,32 @@
+
+
+
{{ licenseService.currentInfo.numberOfOcrPages }}
+
+
{{ licenseService.unlicensedPages }}
+ +
+
+ +
{{ licenseService.annualInfo.numberOfAnalyzedPages }}
+
+ +
+
+
{{ licenseService.annualInfo.numberOfOcrPages }}
+
diff --git a/apps/red-ui/src/assets/i18n/redact/de.json b/apps/red-ui/src/assets/i18n/redact/de.json index c87a21c93..ba2c6f114 100644 --- a/apps/red-ui/src/assets/i18n/redact/de.json +++ b/apps/red-ui/src/assets/i18n/redact/de.json @@ -1633,7 +1633,6 @@ "table-header": "{length} {length, plural, one{Begründung} other{Begründung}}" }, "license-info-screen": { - "analyzed-pages": "Analysierte Seiten", "backend-version": "Backend-Version der Anwendung", "chart": { "cumulative": "Seiten insgesamt", @@ -1666,6 +1665,7 @@ "inactive": "" }, "total-analyzed": "Seit {date} insgesamt analysierte Seiten", + "total-ocr-analyzed": "", "unlicensed-analyzed": "Über Lizenz hinaus analysierte Seiten", "usage-details": "Nutzungsdetails" }, diff --git a/apps/red-ui/src/assets/i18n/redact/en.json b/apps/red-ui/src/assets/i18n/redact/en.json index 8e39b3bd2..a6950c81d 100644 --- a/apps/red-ui/src/assets/i18n/redact/en.json +++ b/apps/red-ui/src/assets/i18n/redact/en.json @@ -1633,7 +1633,6 @@ "table-header": "{length} {length, plural, one{justification} other{justifications}}" }, "license-info-screen": { - "analyzed-pages": "Analyzed pages", "backend-version": "Backend Application Version", "chart": { "cumulative": "Cumulative Pages", @@ -1643,7 +1642,7 @@ }, "copyright-claim-text": "Copyright © 2020 - {currentYear} knecon AG (powered by IQSER)", "copyright-claim-title": "Copyright Claim", - "current-analyzed": "Analyzed Pages in Current Licensing Period", + "current-analyzed": "Analyzed Pages in Licensing Period", "custom-app-title": "Custom Application Title", "email-report": "Email Report", "email": { @@ -1656,16 +1655,17 @@ "end-user-license-text": "The use of this product is subject to the terms of the Redaction End User Agreement, unless otherwise specified therein.", "end-user-license-title": "End User License Agreement", "license-title": "License Title", - "licensed-page-count": "Number of licensed pages", + "licensed-page-count": "Licensed pages", "licensed-to": "Licensed to", "licensing-details": "Licensing Details", "licensing-period": "Licensing Period", - "ocr-analyzed-pages": "OCR Analyzed Pages", + "ocr-analyzed-pages": "OCR Processed Pages in Licensing Period", "status": { "active": "Active", "inactive": "Inactive" }, "total-analyzed": "Total Analyzed Pages Since {date}", + "total-ocr-analyzed": "Total OCR Processed Pages Since {date}", "unlicensed-analyzed": "Unlicensed Analyzed Pages", "usage-details": "Usage Details" }, diff --git a/apps/red-ui/src/assets/i18n/scm/de.json b/apps/red-ui/src/assets/i18n/scm/de.json index 29b71265d..d6c71b494 100644 --- a/apps/red-ui/src/assets/i18n/scm/de.json +++ b/apps/red-ui/src/assets/i18n/scm/de.json @@ -1633,7 +1633,6 @@ "table-header": "{length} {length, plural, one{Begründung} other{Begründung}}" }, "license-info-screen": { - "analyzed-pages": "Analysierte Seiten", "backend-version": "Backend-Version der Anwendung", "chart": { "cumulative": "Seiten insgesamt", @@ -1666,6 +1665,7 @@ "inactive": "" }, "total-analyzed": "Seit {date} insgesamt analysierte Seiten", + "total-ocr-analyzed": "", "unlicensed-analyzed": "Über Lizenz hinaus analysierte Seiten", "usage-details": "Nutzungsdetails" }, diff --git a/apps/red-ui/src/assets/i18n/scm/en.json b/apps/red-ui/src/assets/i18n/scm/en.json index 4ce547ea5..59f92efd4 100644 --- a/apps/red-ui/src/assets/i18n/scm/en.json +++ b/apps/red-ui/src/assets/i18n/scm/en.json @@ -1633,7 +1633,6 @@ "table-header": "{length} {length, plural, one{justification} other{justifications}}" }, "license-info-screen": { - "analyzed-pages": "Analyzed pages", "backend-version": "Backend Application Version", "chart": { "cumulative": "Cumulative Pages", @@ -1643,7 +1642,7 @@ }, "copyright-claim-text": "Copyright © 2020 - {currentYear} knecon AG (powered by IQSER)", "copyright-claim-title": "Copyright Claim", - "current-analyzed": "Analyzed Pages in Current Licensing Period", + "current-analyzed": "Analyzed Pages in Licensing Period", "custom-app-title": "Custom Application Title", "email-report": "Email Report", "email": { @@ -1656,16 +1655,17 @@ "end-user-license-text": "The use of this product is subject to the terms of the Component End User Agreement, unless otherwise specified therein.", "end-user-license-title": "End User License Agreement", "license-title": "License Title", - "licensed-page-count": "Number of licensed pages", + "licensed-page-count": "Licensed pages", "licensed-to": "Licensed to", "licensing-details": "Licensing Details", "licensing-period": "Licensing Period", - "ocr-analyzed-pages": "OCR Analyzed Pages", + "ocr-analyzed-pages": "OCR Processed Pages in Licensing Period", "status": { "active": "Active", "inactive": "Inactive" }, "total-analyzed": "Total Analyzed Pages Since {date}", + "total-ocr-analyzed": "Total OCR Processed Pages Since {date}", "unlicensed-analyzed": "Unlicensed Analyzed Pages", "usage-details": "Usage Details" }, From 0141fc8ba9e4ed8d55857b1346c162822c10d2fd Mon Sep 17 00:00:00 2001 From: Atlassian Bamboo Date: Fri, 17 Mar 2023 20:47:57 +0100 Subject: [PATCH 51/99] chore(release) --- package.json | 2 +- paligo-theme.tar.gz | Bin 3443 -> 3443 bytes 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index b9694e71c..aecf35ce0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "redaction", - "version": "4.9.0", + "version": "4.10.0", "private": true, "license": "MIT", "scripts": { diff --git a/paligo-theme.tar.gz b/paligo-theme.tar.gz index 64d9476f34e798d7e55b8bf3c672194f2df20795..d9ee6a78531f21b8d0a69dbbc9c8e6614e5e4231 100644 GIT binary patch delta 3353 zcmV+!4d(Lm8uJ>Ecz?bVc&jJ2V+XeX1O-0{HiOpG3|9#K983K-wxuqA`J-m{8L2;( zHauMZo(Hea^8XpyQTbOS#u1Z!%c!nDYz;2pl|Lna&s(`}FaNdYg8Wwj3`h3ICDq*i z&*lFzN^w;ahA#j7?N`?3^7+L}x-W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2q@u#ge)@W@pfGh7?ZdKvO5Ofd_ryao`Ko(L{r*+=lm`8)?tdv=^{=|8viq(^ zPGK(hB<>%tip;^yEFMn`{ji$xB(M)D6_4aObTSY8FQIp1br?eI{yX6$#6W|nXwwj) zHy5JssSp)qe6(vF>GCLUd|2KgA&$e(V;)URF}uaCb9OF12_Pw=X6m}lr~Z$?b33 Date: Fri, 17 Mar 2023 22:57:22 +0200 Subject: [PATCH 52/99] RED-3800: update common-ui --- apps/red-ui/src/app/app.module.ts | 6 ++++-- apps/red-ui/src/app/modules/account/account.module.ts | 4 ++-- apps/red-ui/src/app/modules/admin/admin.module.ts | 2 -- .../modules/dossier-overview/dossier-overview.module.ts | 4 ++-- .../modules/dossiers-listing/dossiers-listing.module.ts | 4 ++-- .../src/app/modules/file-preview/file-preview.module.ts | 4 ++-- apps/red-ui/src/app/modules/search/search.module.ts | 4 ++-- .../app/modules/shared-dossiers/shared-dossiers.module.ts | 8 ++++++-- apps/red-ui/src/app/modules/shared/shared.module.ts | 4 ++-- libs/common-ui | 2 +- 10 files changed, 23 insertions(+), 19 deletions(-) diff --git a/apps/red-ui/src/app/app.module.ts b/apps/red-ui/src/app/app.module.ts index 11165b505..7f37bb617 100644 --- a/apps/red-ui/src/app/app.module.ts +++ b/apps/red-ui/src/app/app.module.ts @@ -16,13 +16,14 @@ import { IqserLoadingModule, IqserPermissionsModule, IqserPermissionsService, - IqserSharedModule, IqserTranslateModule, IqserUsersModule, LanguageService, + LogoComponent, MAX_RETRIES_ON_SERVER_ERROR, SERVER_ERROR_SKIP_PATHS, ServerErrorInterceptor, + SkeletonComponent, ToastComponent, } from '@iqser/common-ui'; import { ToastrModule } from 'ngx-toastr'; @@ -103,7 +104,6 @@ export const appModuleFactory = (config: AppConfig) => { existingUserService: UserService, existingRoleGuard: RedRoleGuard, }), - IqserSharedModule, CachingModule.forRoot(UI_CACHES), IqserHelpModeModule.forRoot(links), PdfViewerModule, @@ -157,6 +157,8 @@ export const appModuleFactory = (config: AppConfig) => { }), CircleButtonComponent, EmptyStateComponent, + SkeletonComponent, + LogoComponent, ], providers: [ { diff --git a/apps/red-ui/src/app/modules/account/account.module.ts b/apps/red-ui/src/app/modules/account/account.module.ts index c9faf70ec..a8b2382fa 100644 --- a/apps/red-ui/src/app/modules/account/account.module.ts +++ b/apps/red-ui/src/app/modules/account/account.module.ts @@ -6,7 +6,7 @@ import { AccountSideNavComponent } from './account-side-nav/account-side-nav.com import { BaseAccountScreenComponent } from './base-account-screen/base-account-screen-component'; import { NotificationPreferencesService } from './services/notification-preferences.service'; import { TranslateModule } from '@ngx-translate/core'; -import { IconButtonComponent, IqserHelpModeModule, IqserSharedModule } from '@iqser/common-ui'; +import { IconButtonComponent, IqserHelpModeModule, SideNavComponent } from '@iqser/common-ui'; import { PreferencesComponent } from './screens/preferences/preferences.component'; @NgModule({ @@ -16,9 +16,9 @@ import { PreferencesComponent } from './screens/preferences/preferences.componen SharedModule, AccountRoutingModule, TranslateModule, - IqserSharedModule, IqserHelpModeModule, IconButtonComponent, + SideNavComponent, ], providers: [NotificationPreferencesService], }) diff --git a/apps/red-ui/src/app/modules/admin/admin.module.ts b/apps/red-ui/src/app/modules/admin/admin.module.ts index b053b7a0a..c054923e9 100644 --- a/apps/red-ui/src/app/modules/admin/admin.module.ts +++ b/apps/red-ui/src/app/modules/admin/admin.module.ts @@ -52,7 +52,6 @@ import { IqserListingModule, IqserPermissionsModule, IqserScrollbarModule, - IqserSharedModule, IqserUploadFileModule, IqserUsersModule, } from '@iqser/common-ui'; @@ -119,7 +118,6 @@ const components = [ IqserScrollbarModule, IqserInputsModule, IqserUploadFileModule, - IqserSharedModule, IqserHelpModeModule, IqserPermissionsModule, AdminSideNavComponent, diff --git a/apps/red-ui/src/app/modules/dossier-overview/dossier-overview.module.ts b/apps/red-ui/src/app/modules/dossier-overview/dossier-overview.module.ts index 0f963631a..4f3239d04 100644 --- a/apps/red-ui/src/app/modules/dossier-overview/dossier-overview.module.ts +++ b/apps/red-ui/src/app/modules/dossier-overview/dossier-overview.module.ts @@ -9,8 +9,8 @@ import { IqserLoadingModule, IqserPermissionsModule, IqserScrollbarModule, - IqserSharedModule, IqserUsersModule, + StatusBarComponent, } from '@iqser/common-ui'; import { TranslateModule } from '@ngx-translate/core'; import { DossierOverviewScreenComponent } from './screen/dossier-overview-screen.component'; @@ -59,12 +59,12 @@ const routes: Routes = [ IqserUsersModule, IqserListingModule, IqserLoadingModule, - IqserSharedModule, IqserScrollbarModule, IqserPermissionsModule, IqserInputsModule, SharedModule, CircleButtonComponent, + StatusBarComponent, ], }) export class DossierOverviewModule {} diff --git a/apps/red-ui/src/app/modules/dossiers-listing/dossiers-listing.module.ts b/apps/red-ui/src/app/modules/dossiers-listing/dossiers-listing.module.ts index e357f9a02..51e67e566 100644 --- a/apps/red-ui/src/app/modules/dossiers-listing/dossiers-listing.module.ts +++ b/apps/red-ui/src/app/modules/dossiers-listing/dossiers-listing.module.ts @@ -6,8 +6,8 @@ import { IqserListingModule, IqserPermissionsModule, IqserScrollbarModule, - IqserSharedModule, IqserUsersModule, + StatusBarComponent, } from '@iqser/common-ui'; import { TranslateModule } from '@ngx-translate/core'; import { DossiersListingScreenComponent } from './screen/dossiers-listing-screen.component'; @@ -51,8 +51,8 @@ const routes: Routes = [ IqserUsersModule, IqserListingModule, IqserScrollbarModule, - IqserSharedModule, IqserPermissionsModule, + StatusBarComponent, ], }) export class DossiersListingModule {} diff --git a/apps/red-ui/src/app/modules/file-preview/file-preview.module.ts b/apps/red-ui/src/app/modules/file-preview/file-preview.module.ts index 802ec7310..4b2817e9a 100644 --- a/apps/red-ui/src/app/modules/file-preview/file-preview.module.ts +++ b/apps/red-ui/src/app/modules/file-preview/file-preview.module.ts @@ -10,9 +10,9 @@ import { IqserInputsModule, IqserPermissionsModule, IqserScrollbarModule, - IqserSharedModule, IqserUploadFileModule, IqserUsersModule, + StatusBarComponent, } from '@iqser/common-ui'; import { TranslateModule } from '@ngx-translate/core'; import { RouterModule, Routes } from '@angular/router'; @@ -114,7 +114,6 @@ const components = [ IqserUsersModule, CapitalizePipe, IqserInputsModule, - IqserSharedModule, IqserUploadFileModule, IqserFiltersModule, IqserScrollbarModule, @@ -124,6 +123,7 @@ const components = [ SharedDossiersModule, IconButtonComponent, EmptyStateComponent, + StatusBarComponent, ], providers: [FilePreviewDialogService, ManualRedactionService, DocumentUnloadedGuard, SuggestionsService], }) diff --git a/apps/red-ui/src/app/modules/search/search.module.ts b/apps/red-ui/src/app/modules/search/search.module.ts index 7a3f551fa..94862be23 100644 --- a/apps/red-ui/src/app/modules/search/search.module.ts +++ b/apps/red-ui/src/app/modules/search/search.module.ts @@ -2,7 +2,7 @@ import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { SearchScreenComponent } from './search-screen/search-screen.component'; import { RouterModule } from '@angular/router'; -import { IqserListingModule, IqserSharedModule, IqserUsersModule } from '@iqser/common-ui'; +import { IqserListingModule, IqserUsersModule, StatusBarComponent } from '@iqser/common-ui'; import { SharedModule } from '@shared/shared.module'; import { TranslateModule } from '@ngx-translate/core'; import { SearchItemTemplateComponent } from './search-item-template/search-item-template.component'; @@ -18,7 +18,7 @@ const routes = [{ path: '', component: SearchScreenComponent }]; IqserUsersModule, TranslateModule, IqserListingModule, - IqserSharedModule, + StatusBarComponent, ], }) export class SearchModule {} diff --git a/apps/red-ui/src/app/modules/shared-dossiers/shared-dossiers.module.ts b/apps/red-ui/src/app/modules/shared-dossiers/shared-dossiers.module.ts index 9cea2ae59..e4538aff3 100644 --- a/apps/red-ui/src/app/modules/shared-dossiers/shared-dossiers.module.ts +++ b/apps/red-ui/src/app/modules/shared-dossiers/shared-dossiers.module.ts @@ -20,8 +20,10 @@ import { IqserInputsModule, IqserPermissionsModule, IqserScrollbarModule, - IqserSharedModule, IqserUsersModule, + SideNavComponent, + SmallChipComponent, + StatusBarComponent, } from '@iqser/common-ui'; import { TranslateModule } from '@ngx-translate/core'; import { DossiersListingActionsComponent } from './components/dossiers-listing-actions/dossiers-listing-actions.component'; @@ -50,13 +52,15 @@ const services = [FileAssignService]; IqserHelpModeModule, IqserUsersModule, TranslateModule, - IqserSharedModule, IqserInputsModule, IqserScrollbarModule, IqserPermissionsModule, IconButtonComponent, CircleButtonComponent, EmptyStateComponent, + SmallChipComponent, + StatusBarComponent, + SideNavComponent, ], }) export class SharedDossiersModule {} diff --git a/apps/red-ui/src/app/modules/shared/shared.module.ts b/apps/red-ui/src/app/modules/shared/shared.module.ts index 0d5ed600a..c423823d2 100644 --- a/apps/red-ui/src/app/modules/shared/shared.module.ts +++ b/apps/red-ui/src/app/modules/shared/shared.module.ts @@ -14,8 +14,8 @@ import { IqserHelpModeModule, IqserPermissionsModule, IqserScrollbarModule, - IqserSharedModule, IqserUsersModule, + SmallChipComponent, } from '@iqser/common-ui'; import { SelectComponent } from './components/select/select.component'; import { NavigateLastDossiersScreenDirective } from './directives/navigate-last-dossiers-screen.directive'; @@ -89,12 +89,12 @@ const deleteThisWhenAllComponentsAreStandalone = [DonutChartComponent]; RouterModule, IqserHelpModeModule, IqserUsersModule, - IqserSharedModule, IqserScrollbarModule, IqserPermissionsModule, ...deleteThisWhenAllComponentsAreStandalone, CircleButtonComponent, IconButtonComponent, + SmallChipComponent, ], exports: [...modules, ...components, ...utils, ...deleteThisWhenAllComponentsAreStandalone], providers: [ diff --git a/libs/common-ui b/libs/common-ui index 87b19da9a..8ac6f5831 160000 --- a/libs/common-ui +++ b/libs/common-ui @@ -1 +1 @@ -Subproject commit 87b19da9a900cbc9de8af666612bbae7aedff900 +Subproject commit 8ac6f583197b4b3771d7db403eccb99926714fbc From f3f40bf60847295fc2c6914cebac7c0771686269 Mon Sep 17 00:00:00 2001 From: Atlassian Bamboo Date: Fri, 17 Mar 2023 22:00:12 +0100 Subject: [PATCH 53/99] chore(release) --- package.json | 2 +- paligo-theme.tar.gz | Bin 3443 -> 3444 bytes 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index aecf35ce0..f4fa1d0cb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "redaction", - "version": "4.10.0", + "version": "4.11.0", "private": true, "license": "MIT", "scripts": { diff --git a/paligo-theme.tar.gz b/paligo-theme.tar.gz index d9ee6a78531f21b8d0a69dbbc9c8e6614e5e4231..8b0d5f4bba1de712e9140863d18544feb963967b 100644 GIT binary patch delta 3357 zcmV+&4dU|i8uS{Fcz=QG*!~k6KGwk#6#OLE3|dn&Tp{#xEcM^mmb(1qkDA?Qr2bgi z@NoHi?%Fxa|L15&D+pnz6<@1Y|bYB(~Lrs-EyG$7?>+SV*Qh(&EUhaxwml0gjdKne_ zYfuRH*9qR!?EZ^CmL&hxH#o1il;Lb~w@cYed*Rvkb9>>7&p>>x#OGRkZs5}qV;nKY z5n~)N#t~y2KIWG(t;-DGe^KAz^788W#ggNPGb<%HCKdYo1wwBvn#bhL7CF!1S4t?X zzeRpvmv5e5ynh?a*lt6T6crIOLmb`is-nqbD=M<0+M=iK#&dmVJP)Ogn8KN1)$}dd zqLt4Vkgx9KvYaA#m(iS99V(l3J8+My9nCFPlrVXty$cJ*ialU$L>hHJYl5pN6^QKd z8|#k7ECpD$tpeL3+^~ZGE{mEnTELr%WSG&{nbV(-vtRXC43ADBiJ$XOB}~E-vIy@`0cD`K?zyjPVVK8Ll9NN2*;~xF%o)u z0MEtgOn=IYRj|EFT#=kTH_{(9Rn1?O1};im)sz)9%kZ#JUgTufuI#iY7`Ou)IRPO1i`Kbg zK7V*VBU1k`l2MkC#q6nI%_8xJ6;V5PD5^)Gf$*ac!A3j&D12Ib^*F2)n>V(xVpqi^ zDk|Jsbx;LTabxrl%qOIxm_K(jGqCYi(%Q^iy2-|Swclh9QiqIcko?}O%$~nZXjL;S zN~!d;ni;YmMi_w0unF2IuA5JvuA!YV)_)_7l_An_{f94QP`kr|A4ly{AAzaL=Wh?- zsT!-xM4&T=AHYh5aWqd!McIgV{d;g$*Po+TG|vcSO};~)UtcT%vIQiN%yLxBdM|VN zx5T#B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$GyFmw$;1 zG?Ey393W{r{OUHM>c@7=Lc+cO8uO%Mw*reZ@n7*u^Kt8C&4NGkGVWNGx_= zlB;pZ+NZJN##<472SiR^UQh>h*814FPG{JZU<49NzSlTY_!S~if%NSK#2pK?3V8X^ z@vlaUf#gb!`3940R&Mo_h+ihA(EvT+ta7dcLl%IE1jmfC4rr5uH9NTNB7a-755r3+ znjci|#(erKVDEH%OgFLA{#nyXiw!D58VKZnRsX7cD!cD$ zmGN%;NFH&=0E_PXhapQt?QhLnrgV{}OsPR)-#z(u>kuHzo#)st{65=@gJm%5F6ti3GI%ntNlK_$;YNoE+eCq!QJhyW@ mw{ttUb33HrS>1|<8aIXPyhf-?1Ik# From 9a53d68efd668b3a87ab305a5a6a0b01112a094a Mon Sep 17 00:00:00 2001 From: Dan Percic Date: Fri, 17 Mar 2023 23:58:14 +0200 Subject: [PATCH 54/99] RED-3800: use hidden actions directive --- apps/red-ui/src/app/app.module.ts | 2 ++ .../components/base-screen/base-screen.component.html | 4 +--- .../services/file-preview-state.service.ts | 10 +++++----- libs/common-ui | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/apps/red-ui/src/app/app.module.ts b/apps/red-ui/src/app/app.module.ts index 7f37bb617..c23ea1f9a 100644 --- a/apps/red-ui/src/app/app.module.ts +++ b/apps/red-ui/src/app/app.module.ts @@ -12,6 +12,7 @@ import { CircleButtonComponent, CommonUiModule, EmptyStateComponent, + HiddenActionDirective, IqserHelpModeModule, IqserLoadingModule, IqserPermissionsModule, @@ -159,6 +160,7 @@ export const appModuleFactory = (config: AppConfig) => { EmptyStateComponent, SkeletonComponent, LogoComponent, + HiddenActionDirective, ], providers: [ { diff --git a/apps/red-ui/src/app/components/base-screen/base-screen.component.html b/apps/red-ui/src/app/components/base-screen/base-screen.component.html index 877785591..f9f73cfb2 100644 --- a/apps/red-ui/src/app/components/base-screen/base-screen.component.html +++ b/apps/red-ui/src/app/components/base-screen/base-screen.component.html @@ -11,9 +11,7 @@

diff --git a/apps/red-ui/src/app/modules/file-preview/services/file-preview-state.service.ts b/apps/red-ui/src/app/modules/file-preview/services/file-preview-state.service.ts index a1e6d8d81..c6ce575a9 100644 --- a/apps/red-ui/src/app/modules/file-preview/services/file-preview-state.service.ts +++ b/apps/red-ui/src/app/modules/file-preview/services/file-preview-state.service.ts @@ -38,9 +38,9 @@ export class FilePreviewStateService { readonly isReadonly$: Observable; readonly isWritable$: Observable; - readonly dossierId: string = getParam(DOSSIER_ID); - readonly dossierTemplateId: string = getParam(DOSSIER_TEMPLATE_ID); - readonly fileId: string = getParam(FILE_ID); + readonly dossierId = getParam(DOSSIER_ID); + readonly dossierTemplateId = getParam(DOSSIER_TEMPLATE_ID); + readonly fileId = getParam(FILE_ID); dossier: Dossier; dialogRef: MatDialogRef; file: File; @@ -51,7 +51,7 @@ export class FilePreviewStateService { router: Router, filesMapService: FilesMapService, private readonly _injector: Injector, - permissionsService: PermissionsService, + private readonly _permissionsService: PermissionsService, private readonly _filesService: FilesService, private readonly _dossiersService: DossiersService, private readonly _fileManagementService: FileManagementService, @@ -65,7 +65,7 @@ export class FilePreviewStateService { this.file$ = filesMapService.watch$(this.dossierId, this.fileId).pipe(tap(file => (this.file = file))); [this.isReadonly$, this.isWritable$] = boolFactory( combineLatest([this.file$, this.dossier$]), - ([file, dossier]) => !permissionsService.canPerformAnnotationActions(file, dossier), + ([file, dossier]) => !_permissionsService.canPerformAnnotationActions(file, dossier), ); this.blob$ = this.#blob$; diff --git a/libs/common-ui b/libs/common-ui index 8ac6f5831..655874989 160000 --- a/libs/common-ui +++ b/libs/common-ui @@ -1 +1 @@ -Subproject commit 8ac6f583197b4b3771d7db403eccb99926714fbc +Subproject commit 655874989bafa3b7017ceb94e1088c7f9fddd0a5 From df0b528b8db395e0edb4d130abdbdc2865ba6657 Mon Sep 17 00:00:00 2001 From: Dan Percic Date: Sat, 18 Mar 2023 02:17:25 +0200 Subject: [PATCH 55/99] RED-3800: use stopPropagation --- apps/red-ui/src/app/app.module.ts | 2 + .../notifications.component.html | 18 +++-- .../notifications/notifications.component.ts | 4 +- .../user-profile-screen.component.ts | 2 +- .../base-entity-screen.component.ts | 6 +- .../user-details/user-details.component.ts | 2 +- .../screens/audit/audit-screen.component.html | 2 +- .../screens/audit/audit-screen.component.ts | 8 +- .../default-colors-screen.component.html | 2 +- .../default-colors-screen.component.ts | 4 +- .../digital-signature-screen.component.ts | 2 +- ...r-attributes-listing-screen.component.html | 8 +- ...ier-attributes-listing-screen.component.ts | 25 ++----- ...ssier-states-listing-screen.component.html | 2 +- ...dossier-states-listing-screen.component.ts | 4 +- .../dossier-states-table-item.component.html | 4 +- .../dossier-states-table-item.component.ts | 8 +- ...er-templates-listing-screen.component.html | 6 +- ...sier-templates-listing-screen.component.ts | 6 +- .../entities-listing-screen.component.html | 6 +- .../entities-listing-screen.component.ts | 8 +- ...e-attributes-listing-screen.component.html | 11 +-- ...ile-attributes-listing-screen.component.ts | 35 +++------ .../smtp-form/smtp-form.component.ts | 2 +- .../justifications-dialog.service.ts | 3 +- .../justifications-screen.component.ts | 2 +- .../table-item/table-item.component.ts | 2 +- .../reports-screen.component.ts | 6 +- .../user-listing-screen.component.html | 10 +-- .../user-listing-screen.component.ts | 8 +- .../watermarks-listing-screen.component.html | 4 +- .../watermarks-listing-screen.component.ts | 4 +- .../admin/services/admin-dialog.service.ts | 9 ++- .../dossier-template-actions.component.html | 14 ++-- .../dossier-template-actions.component.ts | 8 +- .../template-stats.component.ts | 2 +- .../dossier-details-stats.component.ts | 2 +- .../file-attribute.component.html | 17 ++--- .../file-attribute.component.ts | 67 ++++++++--------- .../dossier-overview/config.service.ts | 6 +- .../dossier-overview.module.ts | 2 + .../services/bulk-actions.service.ts | 4 +- .../dossiers-listing/config.service.ts | 2 +- .../dossiers-listing-screen.component.ts | 2 +- .../annotation-actions.component.html | 34 ++++----- .../annotation-actions.component.ts | 41 +++++----- .../annotation-wrapper.component.html | 3 +- .../comments/comments.component.html | 10 ++- .../components/comments/comments.component.ts | 6 +- .../document-info/document-info.component.ts | 2 +- .../file-workload.component.html | 3 +- .../highlights-separator.component.ts | 4 +- .../view-switch/view-switch.component.ts | 2 +- .../file-preview-screen.component.ts | 5 +- .../file-preview/file-preview.module.ts | 4 + .../services/annotation-actions.service.ts | 74 +++++++------------ .../pdf-annotation-actions.service.ts | 34 ++++----- .../services/pdf-proxy.service.ts | 2 +- .../file-preview/services/skipped.service.ts | 4 +- .../compare-file-input.component.ts | 1 - .../search-item-template.component.html | 2 +- .../src/app/modules/search/search.module.ts | 3 +- .../dossiers-listing-actions.component.html | 4 +- .../dossiers-listing-actions.component.ts | 7 +- .../file-actions/file-actions.component.ts | 69 ++++++++--------- .../edit-dossier-dictionary.component.ts | 2 +- .../edit-dossier-team.component.html | 3 +- .../edit-dossier-team.component.ts | 4 +- .../edit-dossier-general-info.component.ts | 4 +- .../services/file-assign.service.ts | 18 ++--- .../shared-dossiers/shared-dossiers.module.ts | 2 + .../file-download-btn.component.html | 2 +- .../file-download-btn.component.ts | 3 +- .../expandable-file-actions.component.html | 2 +- .../expandable-file-actions.component.ts | 6 +- .../components/select/select.component.html | 11 ++- .../components/select/select.component.ts | 6 +- .../team-members/team-members.component.ts | 2 +- .../add-dossier-dialog.component.ts | 2 +- .../src/app/modules/shared/shared.module.ts | 2 + .../trash/services/trash-dialog.service.ts | 3 +- libs/common-ui | 2 +- 82 files changed, 346 insertions(+), 393 deletions(-) diff --git a/apps/red-ui/src/app/app.module.ts b/apps/red-ui/src/app/app.module.ts index c23ea1f9a..347ef2b86 100644 --- a/apps/red-ui/src/app/app.module.ts +++ b/apps/red-ui/src/app/app.module.ts @@ -25,6 +25,7 @@ import { SERVER_ERROR_SKIP_PATHS, ServerErrorInterceptor, SkeletonComponent, + StopPropagationDirective, ToastComponent, } from '@iqser/common-ui'; import { ToastrModule } from 'ngx-toastr'; @@ -161,6 +162,7 @@ export const appModuleFactory = (config: AppConfig) => { SkeletonComponent, LogoComponent, HiddenActionDirective, + StopPropagationDirective, ], providers: [ { diff --git a/apps/red-ui/src/app/components/notifications/notifications.component.html b/apps/red-ui/src/app/components/notifications/notifications.component.html index 89da01870..517a15f89 100644 --- a/apps/red-ui/src/app/components/notifications/notifications.component.html +++ b/apps/red-ui/src/app/components/notifications/notifications.component.html @@ -1,7 +1,7 @@ @@ -19,22 +19,24 @@
{{ group.date }}
{{ 'notifications.mark-all-as-read' | translate }}
@@ -42,12 +44,14 @@
{{ notification.creationDate | date : 'exactDate' }}
+
diff --git a/apps/red-ui/src/app/components/notifications/notifications.component.ts b/apps/red-ui/src/app/components/notifications/notifications.component.ts index 8320e4193..90b6f15fb 100644 --- a/apps/red-ui/src/app/components/notifications/notifications.component.ts +++ b/apps/red-ui/src/app/components/notifications/notifications.component.ts @@ -48,9 +48,7 @@ export class NotificationsComponent { ); } - async markRead($event, notifications: Notification[] = this._notificationsService.all, isRead = true): Promise { - $event.stopPropagation(); - + async markRead(notifications: Notification[] = this._notificationsService.all, isRead = true): Promise { if (!notifications.find(notification => !!notification.readDate !== isRead)) { // If no notification changes status after the request, abort return; diff --git a/apps/red-ui/src/app/modules/account/screens/user-profile/user-profile-screen/user-profile-screen.component.ts b/apps/red-ui/src/app/modules/account/screens/user-profile/user-profile-screen/user-profile-screen.component.ts index 8d4bd718e..3307196e9 100644 --- a/apps/red-ui/src/app/modules/account/screens/user-profile/user-profile-screen/user-profile-screen.component.ts +++ b/apps/red-ui/src/app/modules/account/screens/user-profile/user-profile-screen/user-profile-screen.component.ts @@ -86,7 +86,7 @@ export class UserProfileScreenComponent extends BaseFormComponent implements OnI const value = this.form.getRawValue() as IProfile; if (this.emailChanged) { - const dialogRef = this._dialogService.openDialog('confirmPassword', null, null); + const dialogRef = this._dialogService.openDialog('confirmPassword'); const password = await firstValueFrom(dialogRef.afterClosed()); if (!password) { return; diff --git a/apps/red-ui/src/app/modules/admin/base-entity-screen/base-entity-screen.component.ts b/apps/red-ui/src/app/modules/admin/base-entity-screen/base-entity-screen.component.ts index adcd8e171..a2b3a7af4 100644 --- a/apps/red-ui/src/app/modules/admin/base-entity-screen/base-entity-screen.component.ts +++ b/apps/red-ui/src/app/modules/admin/base-entity-screen/base-entity-screen.component.ts @@ -17,8 +17,8 @@ import { PermissionsService } from '@services/permissions.service'; export class BaseEntityScreenComponent { readonly disabledItems$: Observable; readonly canDeleteEntity$: Observable; - readonly #dossierTemplateId: string = getParam(DOSSIER_TEMPLATE_ID); - readonly #entityType: string = getParam(ENTITY_TYPE); + readonly #dossierTemplateId = getParam(DOSSIER_TEMPLATE_ID); + readonly #entityType = getParam(ENTITY_TYPE); constructor( private readonly _router: Router, @@ -37,7 +37,7 @@ export class BaseEntityScreenComponent { } openDeleteDictionariesDialog() { - this._dialogService.openDialog('confirm', null, null, async () => { + this._dialogService.openDialog('confirm', null, async () => { this._loadingService.start(); const dossierTemplate = this._dossierTemplatesService.find(this.#dossierTemplateId); await firstValueFrom(this._dictionaryService.deleteDictionaries([this.#entityType], this.#dossierTemplateId)); diff --git a/apps/red-ui/src/app/modules/admin/dialogs/add-edit-user-dialog/user-details/user-details.component.ts b/apps/red-ui/src/app/modules/admin/dialogs/add-edit-user-dialog/user-details/user-details.component.ts index b57e13cdf..8950b2780 100644 --- a/apps/red-ui/src/app/modules/admin/dialogs/add-edit-user-dialog/user-details/user-details.component.ts +++ b/apps/red-ui/src/app/modules/admin/dialogs/add-edit-user-dialog/user-details/user-details.component.ts @@ -103,7 +103,7 @@ export class UserDetailsComponent extends BaseFormComponent implements OnChanges } delete() { - this._dialogService.deleteUsers([this.user.id], null, () => this.closeDialog.emit(true)); + this._dialogService.deleteUsers([this.user.id], () => this.closeDialog.emit(true)); } setRolesRequirements(checked: boolean, role: string): void { 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 fd39ef1e3..dc0f6fe5c 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 @@ -99,7 +99,7 @@
implements OnI } } + openAuditDetails(log: Audit) { + this._dialogService.openDialog('auditInfo', { auditEntry: log }); + } + private _getForm(): UntypedFormGroup { return this._formBuilder.group({ category: [this.ALL_CATEGORIES], @@ -136,8 +140,4 @@ export class AuditScreenComponent extends ListingComponent implements OnI } this._loadingService.stop(); } - - openAuditDetails($event: MouseEvent, log: Audit) { - this._dialogService.openDialog('auditInfo', $event, { auditEntry: log }); - } } 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 da6885c67..533f1ec38 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 @@ -38,7 +38,7 @@
{ ); } - openEditColorDialog($event: MouseEvent, color: ListItem) { - this._dialogService.openDialog('editColor', $event, { colorKey: color.key, dossierTemplateId: this.#dossierTemplateId }); + openEditColorDialog(color: ListItem) { + this._dialogService.openDialog('editColor', { colorKey: color.key, dossierTemplateId: this.#dossierTemplateId }); } } diff --git a/apps/red-ui/src/app/modules/admin/screens/digital-signature/digital-signature-screen.component.ts b/apps/red-ui/src/app/modules/admin/screens/digital-signature/digital-signature-screen.component.ts index 98d10be79..f53c497d4 100644 --- a/apps/red-ui/src/app/modules/admin/screens/digital-signature/digital-signature-screen.component.ts +++ b/apps/red-ui/src/app/modules/admin/screens/digital-signature/digital-signature-screen.component.ts @@ -81,7 +81,7 @@ export class DigitalSignatureScreenComponent implements OnInit { } openConfigureCertificate(): void { - const dialogRef = this._dialogService.openDialog('configureCertificate', null, null); + const dialogRef = this._dialogService.openDialog('configureCertificate'); firstValueFrom(dialogRef.afterClosed()).then(async res => { if (res) { await this.loadDigitalSignature(); diff --git a/apps/red-ui/src/app/modules/admin/screens/dossier-attributes-listing/dossier-attributes-listing-screen.component.html b/apps/red-ui/src/app/modules/admin/screens/dossier-attributes-listing/dossier-attributes-listing-screen.component.html index 3ae58c130..e72e17e99 100644 --- a/apps/red-ui/src/app/modules/admin/screens/dossier-attributes-listing/dossier-attributes-listing-screen.component.html +++ b/apps/red-ui/src/app/modules/admin/screens/dossier-attributes-listing/dossier-attributes-listing-screen.component.html @@ -21,7 +21,7 @@
@@ -91,7 +91,7 @@
{ - this._loadingService.start(); - const ids = attributes.map(a => a.id); - await firstValueFrom(this._dossierAttributesService.delete(ids, this.#dossierTemplateId)); - await this._loadData(); - }, - ); + await this._dialogService.deleteAttributes(attributes, this.#dossierTemplateId, this.impactedTemplatesRef, 'dossier', async () => { + this._loadingService.start(); + const ids = attributes.map(a => a.id); + await firstValueFrom(this._dossierAttributesService.delete(ids, this.#dossierTemplateId)); + await this._loadData(); + }); } - openAddEditAttributeDialog($event: MouseEvent, dossierAttribute?: IDossierAttributeConfig) { + openAddEditAttributeDialog(dossierAttribute?: IDossierAttributeConfig) { const dossierTemplateId = this.#dossierTemplateId; - this._dialogService.openDialog('addEditDossierAttribute', $event, { dossierAttribute, dossierTemplateId }, async () => - this._loadData(), - ); + this._dialogService.openDialog('addEditDossierAttribute', { dossierAttribute, dossierTemplateId }, async () => this._loadData()); } private async _loadData() { diff --git a/apps/red-ui/src/app/modules/admin/screens/dossier-states-listing/dossier-states-listing-screen/dossier-states-listing-screen.component.html b/apps/red-ui/src/app/modules/admin/screens/dossier-states-listing/dossier-states-listing-screen/dossier-states-listing-screen.component.html index dd0ed0200..92bc9e700 100644 --- a/apps/red-ui/src/app/modules/admin/screens/dossier-states-listing/dossier-states-listing-screen/dossier-states-listing-screen.component.html +++ b/apps/red-ui/src/app/modules/admin/screens/dossier-states-listing/dossier-states-listing-screen/dossier-states-listing-screen.component.html @@ -52,7 +52,7 @@ > (AddEditDossierStateDialogComponent, { ...defaultDialogConfig, data: { diff --git a/apps/red-ui/src/app/modules/admin/screens/dossier-states-listing/dossier-states-table-item/dossier-states-table-item.component.html b/apps/red-ui/src/app/modules/admin/screens/dossier-states-listing/dossier-states-table-item/dossier-states-table-item.component.html index 61c99bb63..570097587 100644 --- a/apps/red-ui/src/app/modules/admin/screens/dossier-states-listing/dossier-states-table-item/dossier-states-table-item.component.html +++ b/apps/red-ui/src/app/modules/admin/screens/dossier-states-listing/dossier-states-table-item/dossier-states-table-item.component.html @@ -17,14 +17,14 @@
s.id !== dossierState.id), @@ -43,9 +41,7 @@ export class DossierStatesTableItemComponent { ); } - openEditStateDialog($event: MouseEvent, dossierState: IDossierState) { - $event.stopPropagation(); - + openEditStateDialog(dossierState: IDossierState) { this.#dialog.open(AddEditDossierStateDialogComponent, { ...defaultDialogConfig, data: { diff --git a/apps/red-ui/src/app/modules/admin/screens/dossier-templates-listing/dossier-templates-listing-screen/dossier-templates-listing-screen.component.html b/apps/red-ui/src/app/modules/admin/screens/dossier-templates-listing/dossier-templates-listing-screen/dossier-templates-listing-screen.component.html index dfb60f821..b0339acaf 100644 --- a/apps/red-ui/src/app/modules/admin/screens/dossier-templates-listing/dossier-templates-listing-screen/dossier-templates-listing-screen.component.html +++ b/apps/red-ui/src/app/modules/admin/screens/dossier-templates-listing/dossier-templates-listing-screen/dossier-templates-listing-screen.component.html @@ -18,21 +18,21 @@
{ + openBulkDeleteTemplatesDialog() { + return this._dialogService.openDialog('confirm', null, () => { this._loadingService.loadWhile(this._deleteTemplates()); }); } openAddDossierTemplateDialog() { - this._dialogService.openDialog('addEditCloneDossierTemplate', null, null); + this._dialogService.openDialog('addEditCloneDossierTemplate'); } private async _deleteTemplates(templateIds = this.listingService.selected.map(d => d.dossierTemplateId)) { diff --git a/apps/red-ui/src/app/modules/admin/screens/entities-listing/entities-listing-screen.component.html b/apps/red-ui/src/app/modules/admin/screens/entities-listing/entities-listing-screen.component.html index 2d4e399da..6e8758ba7 100644 --- a/apps/red-ui/src/app/modules/admin/screens/entities-listing/entities-listing-screen.component.html +++ b/apps/red-ui/src/app/modules/admin/screens/entities-listing/entities-listing-screen.component.html @@ -39,7 +39,7 @@ @@ -101,7 +101,7 @@
this.templateStats$ = this._dossierTemplateStatsService.watch$(this.#dossierTemplateId).pipe(tap(() => this._loadDictionaryData())); } - openDeleteEntitiesDialog($event?: MouseEvent, types = this.listingService.selected) { - this._dialogService.openDialog('confirm', $event, null, async () => { + openDeleteEntitiesDialog(types = this.listingService.selected) { + this._dialogService.openDialog('confirm', null, async () => { this._loadingService.start(); await firstValueFrom( this._dictionaryService.deleteDictionaries( @@ -62,8 +62,8 @@ export class EntitiesListingScreenComponent extends ListingComponent }); } - openAddEntityDialog($event?: MouseEvent) { - this._dialogService.openDialog('addEntity', $event, { dossierTemplateId: this.#dossierTemplateId }); + openAddEntityDialog() { + this._dialogService.openDialog('addEntity', { dossierTemplateId: this.#dossierTemplateId }); } private _loadDictionaryData(): void { 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 5b12e3b78..f1f991fc8 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 @@ -45,7 +45,7 @@
+ { + this._dialogService.openDialog('addEditFileAttribute', data, (newValue: IFileAttributeConfig) => { this._loadingService.loadWhile(this.#createNewFileAttributeAndRefreshView(newValue)); }); } - async openConfirmDeleteAttributeDialog( - $event: MouseEvent, - attributes: FileAttributeConfig[] = this.listingService.selected, - ): Promise { - await this._dialogService.deleteAttributes( - attributes, - this.#dossierTemplateId, - this._impactedTemplatesRef, - 'file', - $event, - async () => { - this._loadingService.start(); - const ids = attributes.map(a => a.id); - await firstValueFrom(this._fileAttributesService.deleteFileAttributes(ids, this.#dossierTemplateId)); - await firstValueFrom(this._dossierTemplatesService.refreshDossierTemplate(this.#dossierTemplateId)); - await this.#loadData(); - }, - ); + async openConfirmDeleteAttributeDialog(attributes: FileAttributeConfig[] = this.listingService.selected): Promise { + await this._dialogService.deleteAttributes(attributes, this.#dossierTemplateId, this._impactedTemplatesRef, 'file', async () => { + this._loadingService.start(); + const ids = attributes.map(a => a.id); + await firstValueFrom(this._fileAttributesService.deleteFileAttributes(ids, this.#dossierTemplateId)); + await firstValueFrom(this._dossierTemplatesService.refreshDossierTemplate(this.#dossierTemplateId)); + await this.#loadData(); + }); } importCSV(files: FileList | File[]) { @@ -114,7 +104,6 @@ export class FileAttributesListingScreenComponent extends ListingComponent { + this._dialogService.openDialog('smtpAuthConfig', this.form.getRawValue(), null, authConfig => { if (authConfig) { this.form.patchValue(authConfig); } else if (!skipDisableOnCancel) { diff --git a/apps/red-ui/src/app/modules/admin/screens/justifications/justifications-dialog.service.ts b/apps/red-ui/src/app/modules/admin/screens/justifications/justifications-dialog.service.ts index 668de1d80..36563c498 100644 --- a/apps/red-ui/src/app/modules/admin/screens/justifications/justifications-dialog.service.ts +++ b/apps/red-ui/src/app/modules/admin/screens/justifications/justifications-dialog.service.ts @@ -48,7 +48,8 @@ export class JustificationsDialogService extends DialogService { justificationName: justifications[0].name, }, }); - this.openDialog('confirm', null, data, async () => { + + this.openDialog('confirm', data, async () => { this._loadingService.start(); const justificationIds = justifications.map(j => j.id); await firstValueFrom(this._justificationService.delete(justificationIds, dossierTemplateId)); diff --git a/apps/red-ui/src/app/modules/admin/screens/justifications/justifications-screen/justifications-screen.component.ts b/apps/red-ui/src/app/modules/admin/screens/justifications/justifications-screen/justifications-screen.component.ts index 7a31b9ff1..59e11f857 100644 --- a/apps/red-ui/src/app/modules/admin/screens/justifications/justifications-screen/justifications-screen.component.ts +++ b/apps/red-ui/src/app/modules/admin/screens/justifications/justifications-screen/justifications-screen.component.ts @@ -60,7 +60,7 @@ export class JustificationsScreenComponent extends ListingComponent { + this._dialogService.openDialog('confirm', null, () => { this._loadingService.loadWhile(this._deleteTemplate(template)); }); } @@ -90,7 +90,7 @@ export class ReportsScreenComponent implements OnInit { fileName: file.name, }, }); - this._dialogService.openDialog('confirm', null, data, null, async result => { + this._dialogService.openDialog('confirm', data, null, async result => { if (result) { const multiFileReport = result > 1; if ( @@ -129,7 +129,7 @@ export class ReportsScreenComponent implements OnInit { }, }); - this._dialogService.openDialog('confirm', null, data, null, async result => { + this._dialogService.openDialog('confirm', data, null, async result => { if (result) { await this._uploadTemplateForm(file, multiFileReport); } 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 62caae326..f6cd676c9 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 @@ -1,5 +1,4 @@
@@ -28,7 +28,6 @@ @@ -53,10 +53,10 @@
@@ -71,14 +71,14 @@
implement await this.#loadData(); } - openAddEditUserDialog(event?: MouseEvent, user?: User) { - this._dialogService.openDialog('addEditUser', event, user, async () => { + openAddEditUserDialog(user?: User) { + this._dialogService.openDialog('addEditUser', user, async () => { await this.#loadData(); }); } - openDeleteUsersDialog(userIds: string[], $event?: MouseEvent) { - this._dialogService.deleteUsers(userIds, $event, async () => { + openDeleteUsersDialog(userIds: string[]) { + this._dialogService.deleteUsers(userIds, async () => { await this.#loadData(); }); } diff --git a/apps/red-ui/src/app/modules/admin/screens/watermark/watermarks-listing/watermarks-listing-screen.component.html b/apps/red-ui/src/app/modules/admin/screens/watermark/watermarks-listing/watermarks-listing-screen.component.html index 92e1acfd9..a6083442b 100644 --- a/apps/red-ui/src/app/modules/admin/screens/watermark/watermarks-listing/watermarks-listing-screen.component.html +++ b/apps/red-ui/src/app/modules/admin/screens/watermark/watermarks-listing/watermarks-listing-screen.component.html @@ -14,8 +14,8 @@ { + this._dialogService.openDialog('confirm', data, async () => { await this._deleteWatermark(watermark); }); } diff --git a/apps/red-ui/src/app/modules/admin/services/admin-dialog.service.ts b/apps/red-ui/src/app/modules/admin/services/admin-dialog.service.ts index dfab4ec29..91c7017d3 100644 --- a/apps/red-ui/src/app/modules/admin/services/admin-dialog.service.ts +++ b/apps/red-ui/src/app/modules/admin/services/admin-dialog.service.ts @@ -108,7 +108,7 @@ export class AdminDialogService extends DialogService { super(_dialog); } - deleteUsers(userIds: string[], $event?: MouseEvent, cb?: () => Promise | void): void { + deleteUsers(userIds: string[], cb?: () => Promise | void): void { const data = new ConfirmationDialogInput({ title: _('confirm-delete-users.title'), question: _('confirm-delete-users.warning'), @@ -123,7 +123,7 @@ export class AdminDialogService extends DialogService { toastMessage: _('confirm-delete-users.toast-error'), }); - this.openDialog('confirm', $event, data, async result => { + this.openDialog('confirm', data, async result => { if (result === ConfirmOptions.CONFIRM) { this._loadingService.start(); await firstValueFrom(this._userService.delete(userIds)); @@ -138,7 +138,6 @@ export class AdminDialogService extends DialogService { dossierTemplateId: string, impactedTemplatesRef: TemplateRef, type: 'dossier' | 'file', - $event: MouseEvent, cb: () => Promise | void, ): Promise { this._loadingService.start(); @@ -175,6 +174,7 @@ export class AdminDialogService extends DialogService { toastMessage: _('confirm-delete-attribute.toast-error'), translateParams: { reportsCount: uniqueTemplates.length, count: attributes.length, name: attributes[0].label }, }); + if (templates.length) { data.checkboxes.push({ value: false, @@ -183,7 +183,8 @@ export class AdminDialogService extends DialogService { extraContentData: { templates: uniqueTemplates }, }); } - this.openDialog('confirm', $event, data, async () => { + + this.openDialog('confirm', data, async () => { await cb(); }); } diff --git a/apps/red-ui/src/app/modules/admin/shared/components/dossier-template-actions/dossier-template-actions.component.html b/apps/red-ui/src/app/modules/admin/shared/components/dossier-template-actions/dossier-template-actions.component.html index a707dd9ed..3e96c6552 100644 --- a/apps/red-ui/src/app/modules/admin/shared/components/dossier-template-actions/dossier-template-actions.component.html +++ b/apps/red-ui/src/app/modules/admin/shared/components/dossier-template-actions/dossier-template-actions.component.html @@ -1,27 +1,27 @@ -
+
diff --git a/apps/red-ui/src/app/modules/admin/shared/components/dossier-template-actions/dossier-template-actions.component.ts b/apps/red-ui/src/app/modules/admin/shared/components/dossier-template-actions/dossier-template-actions.component.ts index fb5f63cca..2d2232f3d 100644 --- a/apps/red-ui/src/app/modules/admin/shared/components/dossier-template-actions/dossier-template-actions.component.ts +++ b/apps/red-ui/src/app/modules/admin/shared/components/dossier-template-actions/dossier-template-actions.component.ts @@ -33,12 +33,12 @@ export class DossierTemplateActionsComponent implements OnInit { this.dossierTemplateId ??= this._route.snapshot.paramMap.get(DOSSIER_TEMPLATE_ID); } - openEditCloneDossierTemplateDialog($event: MouseEvent, clone: boolean = false) { - this._dialogService.openDialog('addEditCloneDossierTemplate', $event, { dossierTemplateId: this.dossierTemplateId, clone }); + openEditCloneDossierTemplateDialog(clone: boolean = false) { + this._dialogService.openDialog('addEditCloneDossierTemplate', { dossierTemplateId: this.dossierTemplateId, clone }); } - openDeleteDossierTemplateDialog($event?: MouseEvent) { - this._dialogService.openDialog('confirm', $event, null, async () => { + openDeleteDossierTemplateDialog() { + this._dialogService.openDialog('confirm', null, async () => { this._loadingService.start(); const success = await firstValueFrom(this._dossierTemplatesService.delete([this.dossierTemplateId])); diff --git a/apps/red-ui/src/app/modules/dashboard/components/template-stats/template-stats.component.ts b/apps/red-ui/src/app/modules/dashboard/components/template-stats/template-stats.component.ts index b111418ab..bb83e1846 100644 --- a/apps/red-ui/src/app/modules/dashboard/components/template-stats/template-stats.component.ts +++ b/apps/red-ui/src/app/modules/dashboard/components/template-stats/template-stats.component.ts @@ -24,6 +24,6 @@ export class TemplateStatsComponent { ) {} newDossier(): void { - this._dialogService.openDialog('addDossier', null, { dossierTemplateId: this.stats.dossierTemplateId }); + this._dialogService.openDialog('addDossier', { dossierTemplateId: this.stats.dossierTemplateId }); } } diff --git a/apps/red-ui/src/app/modules/dossier-overview/components/dossier-details-stats/dossier-details-stats.component.ts b/apps/red-ui/src/app/modules/dossier-overview/components/dossier-details-stats/dossier-details-stats.component.ts index 767368052..cde04f782 100644 --- a/apps/red-ui/src/app/modules/dossier-overview/components/dossier-details-stats/dossier-details-stats.component.ts +++ b/apps/red-ui/src/app/modules/dossier-overview/components/dossier-details-stats/dossier-details-stats.component.ts @@ -33,7 +33,7 @@ export class DossierDetailsStatsComponent implements OnInit { openEditDossierDialog(section: string): void { const data = { dossierId: this.dossier.id, section }; - this._dialogService.openDialog('editDossier', null, data, async () => { + this._dialogService.openDialog('editDossier', data, async () => { await firstValueFrom(this._filesService.loadAll(this.dossier.id)); }); } diff --git a/apps/red-ui/src/app/modules/dossier-overview/components/table-item/file-attribute/file-attribute.component.html b/apps/red-ui/src/app/modules/dossier-overview/components/table-item/file-attribute/file-attribute.component.html index 33c2410ec..34220fd87 100644 --- a/apps/red-ui/src/app/modules/dossier-overview/components/table-item/file-attribute/file-attribute.component.html +++ b/apps/red-ui/src/app/modules/dossier-overview/components/table-item/file-attribute/file-attribute.component.html @@ -7,7 +7,7 @@
+ -
+
- + > - + - +
diff --git a/apps/red-ui/src/app/modules/dossier-overview/components/table-item/file-attribute/file-attribute.component.ts b/apps/red-ui/src/app/modules/dossier-overview/components/table-item/file-attribute/file-attribute.component.ts index c22ab777c..799e2e426 100644 --- a/apps/red-ui/src/app/modules/dossier-overview/components/table-item/file-attribute/file-attribute.component.ts +++ b/apps/red-ui/src/app/modules/dossier-overview/components/table-item/file-attribute/file-attribute.component.ts @@ -50,15 +50,6 @@ export class FileAttributeComponent extends BaseFormComponent implements OnInit ); } - ngOnInit(): void { - if (this.#noFileAttributes) { - this.#initFileAttributes(); - } - - this.form = this.#getForm(); - this.initialFormValue = this.form.getRawValue(); - } - get isDate(): boolean { return this.fileAttribute.type === FileAttributeConfigTypes.DATE; } @@ -71,28 +62,20 @@ export class FileAttributeComponent extends BaseFormComponent implements OnInit return JSON.stringify(this.file.fileAttributes.attributeIdToValue) === '{}'; } - #initFileAttributes() { - const configs = this._fileAttributesService.getFileAttributeConfig(this.file.dossierTemplateId).fileAttributeConfigs; - configs.forEach(config => (this.file.fileAttributes.attributeIdToValue[config.id] = null)); + ngOnInit(): void { + if (this.#noFileAttributes) { + this.#initFileAttributes(); + } + + this.form = this.#getForm(); + this.initialFormValue = this.form.getRawValue(); } - async editFileAttribute($event: MouseEvent): Promise { - $event?.stopPropagation(); + async editFileAttribute(): Promise { this.#toggleEdit(); } - #getForm(): UntypedFormGroup { - const config = {}; - const fileAttributes = this.file.fileAttributes.attributeIdToValue; - Object.keys(fileAttributes).forEach(key => { - const attrValue = fileAttributes[key]; - config[key] = [dayjs(attrValue, 'YYYY-MM-DD', true).isValid() ? dayjs(attrValue).toDate() : attrValue]; - }); - return this._formBuilder.group(config); - } - - async save($event?: MouseEvent): Promise { - $event?.stopPropagation(); + async save() { const rawFormValue = this.form.getRawValue(); const fileAttrValue = rawFormValue[this.fileAttribute.id]; const attributeIdToValue = { @@ -113,14 +96,35 @@ export class FileAttributeComponent extends BaseFormComponent implements OnInit this.#toggleEdit(); } - close($event?: MouseEvent): void { - $event?.stopPropagation(); + close(): void { if (this.isInEditMode) { this.form = this.#getForm(); this.#toggleEdit(); } } + @HostListener('document:click') + clickOutside() { + if (this.isInEditMode && this.closedDatepicker) { + this.close(); + } + } + + #initFileAttributes() { + const configs = this._fileAttributesService.getFileAttributeConfig(this.file.dossierTemplateId).fileAttributeConfigs; + configs.forEach(config => (this.file.fileAttributes.attributeIdToValue[config.id] = null)); + } + + #getForm(): UntypedFormGroup { + const config = {}; + const fileAttributes = this.file.fileAttributes.attributeIdToValue; + Object.keys(fileAttributes).forEach(key => { + const attrValue = fileAttributes[key]; + config[key] = [dayjs(attrValue, 'YYYY-MM-DD', true).isValid() ? dayjs(attrValue).toDate() : attrValue]; + }); + return this._formBuilder.group(config); + } + #formatAttributeValue(attrValue) { return this.isDate ? attrValue && dayjs(attrValue).format('YYYY-MM-DD') : attrValue; } @@ -140,11 +144,4 @@ export class FileAttributeComponent extends BaseFormComponent implements OnInit input.focus(); }, 100); } - - @HostListener('document:click') - clickOutside() { - if (this.isInEditMode && this.closedDatepicker) { - this.close(); - } - } } diff --git a/apps/red-ui/src/app/modules/dossier-overview/config.service.ts b/apps/red-ui/src/app/modules/dossier-overview/config.service.ts index 94ccb7e61..2df621d66 100644 --- a/apps/red-ui/src/app/modules/dossier-overview/config.service.ts +++ b/apps/red-ui/src/app/modules/dossier-overview/config.service.ts @@ -157,7 +157,7 @@ export class ConfigService { { id: 'editDossier', label: this._translateService.instant('dossier-overview.header-actions.edit'), - action: $event => this._openEditDossierDialog($event, dossierId), + action: () => this._openEditDossierDialog(dossierId), icon: 'iqser:edit', hide: !this.currentUser.isManager && !this._iqserPermissionsService.has(ROLES.dossiers.edit), helpModeKey: 'edit_dossier_in_dossier', @@ -449,8 +449,8 @@ export class ConfigService { ].map(filter => new NestedFilter(filter)); } - private _openEditDossierDialog($event: MouseEvent, dossierId: string) { - this._dialogService.openDialog('editDossier', $event, { dossierId }); + private _openEditDossierDialog(dossierId: string) { + this._dialogService.openDialog('editDossier', { dossierId }); } private _sortByName(ids: string[]) { diff --git a/apps/red-ui/src/app/modules/dossier-overview/dossier-overview.module.ts b/apps/red-ui/src/app/modules/dossier-overview/dossier-overview.module.ts index 4f3239d04..1be5feb5f 100644 --- a/apps/red-ui/src/app/modules/dossier-overview/dossier-overview.module.ts +++ b/apps/red-ui/src/app/modules/dossier-overview/dossier-overview.module.ts @@ -11,6 +11,7 @@ import { IqserScrollbarModule, IqserUsersModule, StatusBarComponent, + StopPropagationDirective, } from '@iqser/common-ui'; import { TranslateModule } from '@ngx-translate/core'; import { DossierOverviewScreenComponent } from './screen/dossier-overview-screen.component'; @@ -65,6 +66,7 @@ const routes: Routes = [ SharedModule, CircleButtonComponent, StatusBarComponent, + StopPropagationDirective, ], }) export class DossierOverviewModule {} diff --git a/apps/red-ui/src/app/modules/dossier-overview/services/bulk-actions.service.ts b/apps/red-ui/src/app/modules/dossier-overview/services/bulk-actions.service.ts index 6ba3e94ff..53903e51b 100644 --- a/apps/red-ui/src/app/modules/dossier-overview/services/bulk-actions.service.ts +++ b/apps/red-ui/src/app/modules/dossier-overview/services/bulk-actions.service.ts @@ -47,7 +47,6 @@ export class BulkActionsService { delete(files: File[]) { this._dialogService.openDialog( 'confirm', - null, new ConfirmationDialogInput({ title: _('confirmation-dialog.delete-file.title'), question: _('confirmation-dialog.delete-file.question'), @@ -98,7 +97,6 @@ export class BulkActionsService { if (foundAnalysisRequiredFile || foundUpdatedFile) { this._dialogService.openDialog( 'confirm', - null, new ConfirmationDialogInput({ title: foundAnalysisRequiredFile ? _('confirmation-dialog.approve-multiple-files-without-analysis.title') @@ -133,6 +131,6 @@ export class BulkActionsService { } private _assignFiles(files: File[], targetStatus: WorkflowFileStatus, ignoreChanged = false, withUnassignedOption = false): void { - this._dialogService.openDialog('assignFile', null, { targetStatus, files, ignoreChanged, withUnassignedOption }); + this._dialogService.openDialog('assignFile', { targetStatus, files, ignoreChanged, withUnassignedOption }); } } diff --git a/apps/red-ui/src/app/modules/dossiers-listing/config.service.ts b/apps/red-ui/src/app/modules/dossiers-listing/config.service.ts index e50a6e8ef..987a131a5 100644 --- a/apps/red-ui/src/app/modules/dossiers-listing/config.service.ts +++ b/apps/red-ui/src/app/modules/dossiers-listing/config.service.ts @@ -217,7 +217,7 @@ export class ConfigService { } private _openAddDossierDialog(dossierTemplateId: string): void { - this._dialogService.openDialog('addDossier', null, { dossierTemplateId }); + this._dialogService.openDialog('addDossier', { dossierTemplateId }); } private _quickFilters(entities: Dossier[]): NestedFilter[] { diff --git a/apps/red-ui/src/app/modules/dossiers-listing/screen/dossiers-listing-screen.component.ts b/apps/red-ui/src/app/modules/dossiers-listing/screen/dossiers-listing-screen.component.ts index 9ab4b00e5..1ca7f7ddf 100644 --- a/apps/red-ui/src/app/modules/dossiers-listing/screen/dossiers-listing-screen.component.ts +++ b/apps/red-ui/src/app/modules/dossiers-listing/screen/dossiers-listing-screen.component.ts @@ -47,7 +47,7 @@ export class DossiersListingScreenComponent extends ListingComponent im } openAddDossierDialog(): void { - this._dialogService.openDialog('addDossier', null, { dossierTemplateId: this.dossierTemplate.id }); + this._dialogService.openDialog('addDossier', { dossierTemplateId: this.dossierTemplate.id }); } async ngOnInit(): Promise { diff --git a/apps/red-ui/src/app/modules/file-preview/components/annotation-actions/annotation-actions.component.html b/apps/red-ui/src/app/modules/file-preview/components/annotation-actions/annotation-actions.component.html index 7ac04139c..7702ff635 100644 --- a/apps/red-ui/src/app/modules/file-preview/components/annotation-actions/annotation-actions.component.html +++ b/apps/red-ui/src/app/modules/file-preview/components/annotation-actions/annotation-actions.component.html @@ -6,7 +6,7 @@ this._annotations.reduce((acc, annotation) => !hidden.has(annotation.id) && acc, true)), - shareLast(), - ); - constructor( readonly viewModeService: ViewModeService, readonly helpModeService: HelpModeService, @@ -53,6 +48,11 @@ export class AnnotationActionsComponent implements OnChanges { private _annotations: AnnotationWrapper[]; + readonly isVisible$ = this._annotationManager.hidden$.pipe( + map(hidden => this._annotations.reduce((acc, annotation) => !hidden.has(annotation.id) && acc, true)), + shareLast(), + ); + get annotations(): AnnotationWrapper[] { return this._annotations; } @@ -75,43 +75,40 @@ export class AnnotationActionsComponent implements OnChanges { this._setPermissions(); } - removeOrSuggestRemoveAnnotation($event: MouseEvent, removeFromDict: boolean) { - $event.stopPropagation(); - this.annotationActionsService.removeOrSuggestRemoveAnnotation($event, this.annotations, removeFromDict); + removeOrSuggestRemoveAnnotation(removeFromDict: boolean) { + this.annotationActionsService.removeOrSuggestRemoveAnnotation(this.annotations, removeFromDict); } - markAsFalsePositive($event: MouseEvent) { - this.annotationActionsService.markAsFalsePositive($event, this.annotations); + markAsFalsePositive() { + this.annotationActionsService.markAsFalsePositive(this.annotations); } - acceptRecommendation($event: MouseEvent) { - this.annotationActionsService.convertRecommendationToAnnotation($event, this.annotations); + acceptRecommendation() { + this.annotationActionsService.convertRecommendationToAnnotation(this.annotations); } - hideAnnotation($event: MouseEvent) { - $event.stopPropagation(); + hideAnnotation() { this._annotationManager.hide(this.viewerAnnotations); this._annotationManager.deselect(); this._annotationManager.addToHidden(this.viewerAnnotations[0].Id); } - showAnnotation($event: MouseEvent) { - $event.stopPropagation(); + showAnnotation() { this._annotationManager.show(this.viewerAnnotations); this._annotationManager.deselect(); this._annotationManager.removeFromHidden(this.viewerAnnotations[0].Id); } - resize($event: MouseEvent) { - return this.annotationActionsService.resize($event, this.annotations[0]); + resize() { + return this.annotationActionsService.resize(this.annotations[0]); } - acceptResize($event: MouseEvent) { - return this.annotationActionsService.acceptResize($event, this.annotations[0]); + acceptResize() { + return this.annotationActionsService.acceptResize(this.annotations[0]); } - cancelResize($event: MouseEvent) { - return this.annotationActionsService.cancelResize($event, this.annotations[0]); + cancelResize() { + return this.annotationActionsService.cancelResize(this.annotations[0]); } private _setPermissions() { diff --git a/apps/red-ui/src/app/modules/file-preview/components/annotation-wrapper/annotation-wrapper.component.html b/apps/red-ui/src/app/modules/file-preview/components/annotation-wrapper/annotation-wrapper.component.html index 51e8453d4..b4c5a02da 100644 --- a/apps/red-ui/src/app/modules/file-preview/components/annotation-wrapper/annotation-wrapper.component.html +++ b/apps/red-ui/src/app/modules/file-preview/components/annotation-wrapper/annotation-wrapper.component.html @@ -10,10 +10,11 @@
{{ annotation.comments.length }} diff --git a/apps/red-ui/src/app/modules/file-preview/components/comments/comments.component.html b/apps/red-ui/src/app/modules/file-preview/components/comments/comments.component.html index 7d566fc69..36f9b2e3e 100644 --- a/apps/red-ui/src/app/modules/file-preview/components/comments/comments.component.html +++ b/apps/red-ui/src/app/modules/file-preview/components/comments/comments.component.html @@ -8,12 +8,13 @@
@@ -30,5 +31,10 @@ width="full" > -
+
diff --git a/apps/red-ui/src/app/modules/file-preview/components/comments/comments.component.ts b/apps/red-ui/src/app/modules/file-preview/components/comments/comments.component.ts index 22c1e3e67..2af8ee215 100644 --- a/apps/red-ui/src/app/modules/file-preview/components/comments/comments.component.ts +++ b/apps/red-ui/src/app/modules/file-preview/components/comments/comments.component.ts @@ -71,13 +71,11 @@ export class CommentsComponent extends ContextComponent impleme this._loadingService.stop(); } - toggleExpandComments($event?: MouseEvent): void { - $event?.stopPropagation(); + toggleExpandComments(): void { this._commentingService.toggle(this.annotation.id); } - async deleteComment($event: MouseEvent, comment: IComment): Promise { - $event.stopPropagation(); + async deleteComment(comment: IComment): Promise { this._loadingService.start(); const { dossierId, fileId } = this._stateService; await this._manualRedactionService.deleteComment(comment.id, this.annotation.id, dossierId, fileId); diff --git a/apps/red-ui/src/app/modules/file-preview/components/document-info/document-info.component.ts b/apps/red-ui/src/app/modules/file-preview/components/document-info/document-info.component.ts index 9ff04473f..9328d3a55 100644 --- a/apps/red-ui/src/app/modules/file-preview/components/document-info/document-info.component.ts +++ b/apps/red-ui/src/app/modules/file-preview/components/document-info/document-info.component.ts @@ -56,7 +56,7 @@ export class DocumentInfoComponent extends ContextComponent { } edit(file: File) { - this._dialogService.openDialog('documentInfo', null, file); + this._dialogService.openDialog('documentInfo', file); } isDate(attribute: FileAttribute) { diff --git a/apps/red-ui/src/app/modules/file-preview/components/file-workload/file-workload.component.html b/apps/red-ui/src/app/modules/file-preview/components/file-workload/file-workload.component.html index 992bf5aa0..eb3cbb197 100644 --- a/apps/red-ui/src/app/modules/file-preview/components/file-workload/file-workload.component.html +++ b/apps/red-ui/src/app/modules/file-preview/components/file-workload/file-workload.component.html @@ -214,9 +214,10 @@ diff --git a/apps/red-ui/src/app/modules/file-preview/components/highlights-separator/highlights-separator.component.ts b/apps/red-ui/src/app/modules/file-preview/components/highlights-separator/highlights-separator.component.ts index 0ace5b714..531e7ec32 100644 --- a/apps/red-ui/src/app/modules/file-preview/components/highlights-separator/highlights-separator.component.ts +++ b/apps/red-ui/src/app/modules/file-preview/components/highlights-separator/highlights-separator.component.ts @@ -31,12 +31,12 @@ export class HighlightsSeparatorComponent { convertHighlights(highlightGroup: EarmarkGroup): void { const data = this._getActionData(highlightGroup, EarmarkOperation.CONVERT); - this._dialogService.openDialog('highlightAction', null, data); + this._dialogService.openDialog('highlightAction', data); } removeHighlights(highlightGroup: EarmarkGroup): void { const data = this._getActionData(highlightGroup, EarmarkOperation.REMOVE); - this._dialogService.openDialog('highlightAction', null, data); + this._dialogService.openDialog('highlightAction', data); } private _getActionData(highlightGroup: EarmarkGroup, operation: EarmarkOperation) { diff --git a/apps/red-ui/src/app/modules/file-preview/components/view-switch/view-switch.component.ts b/apps/red-ui/src/app/modules/file-preview/components/view-switch/view-switch.component.ts index 95c8c4f8a..027169d21 100644 --- a/apps/red-ui/src/app/modules/file-preview/components/view-switch/view-switch.component.ts +++ b/apps/red-ui/src/app/modules/file-preview/components/view-switch/view-switch.component.ts @@ -80,7 +80,7 @@ export class ViewSwitchComponent { checkboxesValidation: false, }); - return this._dialogService.openDialog('confirm', null, data, result => { + return this._dialogService.openDialog('confirm', data, result => { if (!result) { return; } diff --git a/apps/red-ui/src/app/modules/file-preview/file-preview-screen.component.ts b/apps/red-ui/src/app/modules/file-preview/file-preview-screen.component.ts index 73fb3e88f..26becd816 100644 --- a/apps/red-ui/src/app/modules/file-preview/file-preview-screen.component.ts +++ b/apps/red-ui/src/app/modules/file-preview/file-preview-screen.component.ts @@ -320,7 +320,6 @@ export class FilePreviewScreenComponent this.state.dialogRef = this._dialogService.openDialog( 'manualAnnotation', - null, { manualRedactionEntryWrapper, dossierId: this.dossierId, file }, (result: { annotations: ManualRedactionEntryWrapper[]; dictionary?: Dictionary }) => { const selectedAnnotations = this._annotationManager.selected; @@ -422,7 +421,7 @@ export class FilePreviewScreenComponent } openRSSView(file: File) { - this._dialogService.openDialog('rss', null, { file }); + this._dialogService.openDialog('rss', { file }); } loadAnnotations() { @@ -663,7 +662,7 @@ export class FilePreviewScreenComponent }, }); - const ref = this._dialogService.openDialog('confirm', null, data); + const ref = this._dialogService.openDialog('confirm', data); return ref.afterClosed().pipe( switchMap(async (result: ConfirmOptions) => { const doNotShowWarningAgain = result === ConfirmOptions.SECOND_CONFIRM; diff --git a/apps/red-ui/src/app/modules/file-preview/file-preview.module.ts b/apps/red-ui/src/app/modules/file-preview/file-preview.module.ts index 4b2817e9a..61bc007a8 100644 --- a/apps/red-ui/src/app/modules/file-preview/file-preview.module.ts +++ b/apps/red-ui/src/app/modules/file-preview/file-preview.module.ts @@ -12,7 +12,9 @@ import { IqserScrollbarModule, IqserUploadFileModule, IqserUsersModule, + PreventDefaultDirective, StatusBarComponent, + StopPropagationDirective, } from '@iqser/common-ui'; import { TranslateModule } from '@ngx-translate/core'; import { RouterModule, Routes } from '@angular/router'; @@ -124,6 +126,8 @@ const components = [ IconButtonComponent, EmptyStateComponent, StatusBarComponent, + StopPropagationDirective, + PreventDefaultDirective, ], providers: [FilePreviewDialogService, ManualRedactionService, DocumentUnloadedGuard, SuggestionsService], }) diff --git a/apps/red-ui/src/app/modules/file-preview/services/annotation-actions.service.ts b/apps/red-ui/src/app/modules/file-preview/services/annotation-actions.service.ts index 134622ea8..1d4c5b12a 100644 --- a/apps/red-ui/src/app/modules/file-preview/services/annotation-actions.service.ts +++ b/apps/red-ui/src/app/modules/file-preview/services/annotation-actions.service.ts @@ -6,7 +6,6 @@ import { getFirstRelevantTextPart } from '../../../utils'; import { Core } from '@pdftron/webviewer'; import { DictionaryEntryTypes, - Dossier, EarmarkOperation, IAddRedactionRequest, ILegalBasisChangeRequest, @@ -16,7 +15,6 @@ import { } from '@red/domain'; import { toPosition } from '../utils/pdf-calculation.utils'; import { AnnotationDrawService } from '../../pdf-viewer/services/annotation-draw.service'; -import { ActiveDossiersService } from '@services/dossiers/active-dossiers.service'; import { AcceptRecommendationData, AcceptRecommendationDialogComponent, @@ -43,18 +41,12 @@ export class AnnotationActionsService { private readonly _documentViewer: REDDocumentViewer, private readonly _annotationManager: REDAnnotationManager, private readonly _annotationDrawService: AnnotationDrawService, - private readonly _activeDossiersService: ActiveDossiersService, private readonly _state: FilePreviewStateService, private readonly _fileDataService: FileDataService, private readonly _skippedService: SkippedService, ) {} - private get _dossier(): Dossier { - return this._activeDossiersService.find(this._state.dossierId); - } - - acceptSuggestion($event: MouseEvent, annotations: AnnotationWrapper[]) { - $event?.stopPropagation(); + acceptSuggestion(annotations: AnnotationWrapper[]) { const { dossierId, fileId } = this._state; const ids = annotations.map(a => a.id); const request = this._manualRedactionService.approve(ids, dossierId, fileId); @@ -63,16 +55,15 @@ export class AnnotationActionsService { removeHighlights(highlights: AnnotationWrapper[]): void { const data = this.#getHighlightOperationData(EarmarkOperation.REMOVE, highlights); - this._dialogService.openDialog('highlightAction', null, data); + this._dialogService.openDialog('highlightAction', data); } convertHighlights(highlights: AnnotationWrapper[]): void { const data = this.#getHighlightOperationData(EarmarkOperation.CONVERT, highlights); - this._dialogService.openDialog('highlightAction', null, data); + this._dialogService.openDialog('highlightAction', data); } - rejectSuggestion($event: MouseEvent, annotations: AnnotationWrapper[]) { - $event?.stopPropagation(); + rejectSuggestion(annotations: AnnotationWrapper[]) { const { dossierId, fileId } = this._state; this.#processObsAndEmit( this._manualRedactionService.declineOrRemove( @@ -84,10 +75,10 @@ export class AnnotationActionsService { ); } - forceAnnotation($event: MouseEvent, annotations: AnnotationWrapper[], hint: boolean = false) { + forceAnnotation(annotations: AnnotationWrapper[], hint: boolean = false) { const { dossierId, fileId } = this._state; - const data = { dossier: this._dossier, annotations, hint }; - this._dialogService.openDialog('forceAnnotation', $event, data, (request: ILegalBasisChangeRequest) => { + const data = { dossier: this._state.dossier, annotations, hint }; + this._dialogService.openDialog('forceAnnotation', data, (request: ILegalBasisChangeRequest) => { this.#processObsAndEmit( this._manualRedactionService.bulkForce( annotations.map(a => ({ ...request, annotationId: a.id })), @@ -99,12 +90,11 @@ export class AnnotationActionsService { }); } - changeLegalBasis($event: MouseEvent, annotations: AnnotationWrapper[]) { + changeLegalBasis(annotations: AnnotationWrapper[]) { const { dossierId, fileId } = this._state; this._dialogService.openDialog( 'changeLegalBasis', - $event, - { annotations, dossier: this._dossier }, + { annotations, dossier: this._state.dossier }, (data: { comment: string; legalBasis: string; section: string; value: string }) => { const body = annotations.map(annotation => ({ annotationId: annotation.id, @@ -119,15 +109,15 @@ export class AnnotationActionsService { ); } - removeOrSuggestRemoveAnnotation($event: MouseEvent, annotations: AnnotationWrapper[], removeFromDictionary: boolean) { + removeOrSuggestRemoveAnnotation(annotations: AnnotationWrapper[], removeFromDictionary: boolean) { const data = { annotationsToRemove: annotations, removeFromDictionary, - dossier: this._dossier, + dossier: this._state.dossier, hint: annotations[0].hintDictionary, }; const { dossierId, fileId } = this._state; - this._dialogService.openDialog('removeAnnotations', $event, data, (result: { comment: string }) => { + this._dialogService.openDialog('removeAnnotations', data, (result: { comment: string }) => { const body = annotations.map(annotation => ({ annotationId: annotation.id, removeFromDictionary, @@ -139,10 +129,10 @@ export class AnnotationActionsService { }); } - recategorizeImages($event: MouseEvent, annotations: AnnotationWrapper[]) { - const data = { annotations, dossier: this._dossier }; + recategorizeImages(annotations: AnnotationWrapper[]) { + const data = { annotations, dossier: this._state.dossier }; const { dossierId, fileId } = this._state; - this._dialogService.openDialog('recategorizeImage', $event, data, ({ comment, type }: { type: string; comment: string }) => { + this._dialogService.openDialog('recategorizeImage', data, ({ comment, type }: { type: string; comment: string }) => { const body: List = annotations.map(({ annotationId }) => ({ annotationId, type, @@ -152,9 +142,7 @@ export class AnnotationActionsService { }); } - undoDirectAction($event: MouseEvent, annotations: AnnotationWrapper[]) { - $event?.stopPropagation(); - + undoDirectAction(annotations: AnnotationWrapper[]) { const { dossierId, fileId } = this._state; const modifyDictionary = annotations[0].isModifyDictionary; this.#processObsAndEmit( @@ -167,9 +155,7 @@ export class AnnotationActionsService { ); } - convertRecommendationToAnnotation($event: any, recommendations: AnnotationWrapper[]) { - $event?.stopPropagation(); - + convertRecommendationToAnnotation(recommendations: AnnotationWrapper[]) { const { dossierId, fileId } = this._state; const dialogRef = this._dialog.open( AcceptRecommendationDialogComponent, @@ -179,19 +165,16 @@ export class AnnotationActionsService { const dialogClosed = dialogRef.afterClosed().pipe(filter(value => !!value && !!value.annotations)); dialogClosed.subscribe(({ annotations, comment: commentText }) => { if (isJustOne(annotations) && this._annotationManager.resizingAnnotationId === annotations[0].id) { - this.cancelResize(null, annotations[0]).then(); + this.cancelResize(annotations[0]).then(); } const comment = commentText ? { text: commentText } : undefined; this.#processObsAndEmit(this._manualRedactionService.addRecommendation(annotations, dossierId, fileId, comment)); }); } - async resize($event: MouseEvent, annotationWrapper: AnnotationWrapper) { - $event?.stopPropagation(); - + async resize(annotationWrapper: AnnotationWrapper) { this._annotationManager.resizingAnnotationId = annotationWrapper.id; - const viewerAnnotation = this._annotationManager.get(annotationWrapper); if (annotationWrapper.rectangle || annotationWrapper.imported || annotationWrapper.isImage) { this._annotationManager.delete(annotationWrapper); const rectangleAnnotation = this.#generateRectangle(annotationWrapper); @@ -199,6 +182,7 @@ export class AnnotationActionsService { return; } + const viewerAnnotation = this._annotationManager.get(annotationWrapper); viewerAnnotation.ReadOnly = false; viewerAnnotation.Hidden = false; viewerAnnotation.disableRotationControl(); @@ -206,7 +190,7 @@ export class AnnotationActionsService { this._annotationManager.select(viewerAnnotation); } - async acceptResize($event: MouseEvent, annotation: AnnotationWrapper): Promise { + async acceptResize(annotation: AnnotationWrapper): Promise { const textAndPositions = await this.#extractTextAndPositions(annotation.id); if (annotation.isRecommendation) { const recommendation = { @@ -214,14 +198,14 @@ export class AnnotationActionsService { value: textAndPositions.text, positions: textAndPositions.positions, } as AnnotationWrapper; - return this.convertRecommendationToAnnotation($event, [recommendation]); + return this.convertRecommendationToAnnotation([recommendation]); } const isImageText = annotation.isImage ? 'Image' : textAndPositions.text; const text = annotation.rectangle ? annotation.value : isImageText; const data = { annotation, text }; - this._dialogService.openDialog('resizeAnnotation', $event, data, (result: { comment: string; updateDictionary: boolean }) => { + this._dialogService.openDialog('resizeAnnotation', data, (result: { comment: string; updateDictionary: boolean }) => { const resizeRequest: IResizeRequest = { annotationId: annotation.id, comment: result.comment, @@ -230,7 +214,7 @@ export class AnnotationActionsService { updateDictionary: result.updateDictionary, }; - this.cancelResize(null, annotation).then(); + this.cancelResize(annotation).then(); const { fileId, dossierId } = this._state; const request = this._manualRedactionService.resizeOrSuggestResize([resizeRequest], dossierId, fileId); @@ -238,20 +222,15 @@ export class AnnotationActionsService { }); } - async cancelResize($event: MouseEvent, annotationWrapper: AnnotationWrapper) { - $event?.stopPropagation(); - + async cancelResize(annotationWrapper: AnnotationWrapper) { this._annotationManager.resizingAnnotationId = undefined; - this._annotationManager.delete(annotationWrapper); await this._annotationDrawService.draw([annotationWrapper], this._skippedService.hideSkipped, this._state.dossierTemplateId); this._annotationManager.deselect(); await this._fileDataService.annotationsChanged(); } - markAsFalsePositive($event: MouseEvent, annotations: AnnotationWrapper[]) { - $event?.stopPropagation(); - + markAsFalsePositive(annotations: AnnotationWrapper[]) { const requests: List = annotations.map(annotation => ({ sourceId: annotation.id, value: this._getFalsePositiveText(annotation), @@ -301,6 +280,7 @@ export class AnnotationActionsService { } #processObsAndEmit(obs: Observable) { + // TODO: remove observables and use promises instead obs.subscribe({ next: () => this._fileDataService.annotationsChanged(), error: () => this._fileDataService.annotationsChanged(), diff --git a/apps/red-ui/src/app/modules/file-preview/services/pdf-annotation-actions.service.ts b/apps/red-ui/src/app/modules/file-preview/services/pdf-annotation-actions.service.ts index f1bc826ef..9feac270f 100644 --- a/apps/red-ui/src/app/modules/file-preview/services/pdf-annotation-actions.service.ts +++ b/apps/red-ui/src/app/modules/file-preview/services/pdf-annotation-actions.service.ts @@ -1,7 +1,7 @@ import { inject, Injectable, NgZone } from '@angular/core'; -import { AnnotationWrapper } from '../../../models/file/annotation.wrapper'; -import { AnnotationPermissions } from '../../../models/file/annotation.permissions'; -import { PermissionsService } from '../../../services/permissions.service'; +import { AnnotationWrapper } from '@models/file/annotation.wrapper'; +import { AnnotationPermissions } from '@models/file/annotation.permissions'; +import { PermissionsService } from '@services/permissions.service'; import { FilePreviewStateService } from './file-preview-state.service'; import { TranslateService } from '@ngx-translate/core'; import { AnnotationActionsService } from './annotation-actions.service'; @@ -32,17 +32,17 @@ export class PdfAnnotationActionsService { // if we already entered resize-mode previously if (firstAnnotation.id === this.#annotationManager.resizingAnnotationId) { const acceptResizeButton = this.#getButton('check', _('annotation-actions.resize-accept.label'), () => - this.#annotationActionsService.acceptResize(null, firstAnnotation), + this.#annotationActionsService.acceptResize(firstAnnotation), ); const cancelResizeButton = this.#getButton('close', _('annotation-actions.resize-cancel.label'), () => - this.#annotationActionsService.cancelResize(null, firstAnnotation), + this.#annotationActionsService.cancelResize(firstAnnotation), ); return [acceptResizeButton, cancelResizeButton]; } const resizeButton = this.#getButton('resize', _('annotation-actions.resize.label'), () => - this.#annotationActionsService.resize(null, firstAnnotation), + this.#annotationActionsService.resize(firstAnnotation), ); availableActions.push(resizeButton); @@ -50,14 +50,14 @@ export class PdfAnnotationActionsService { if (permissions.canChangeLegalBasis) { const editButton = this.#getButton('edit', _('annotation-actions.edit-reason.label'), () => - this.#annotationActionsService.changeLegalBasis(null, annotations), + this.#annotationActionsService.changeLegalBasis(annotations), ); availableActions.push(editButton); } if (permissions.canRecategorizeImage) { const recategorizeButton = this.#getButton('thumb-down', _('annotation-actions.recategorize-image'), () => - this.#annotationActionsService.recategorizeImages(null, annotations), + this.#annotationActionsService.recategorizeImages(annotations), ); availableActions.push(recategorizeButton); } @@ -66,56 +66,56 @@ export class PdfAnnotationActionsService { const removeFromDictButton = this.#getButton( 'remove-from-dict', _('annotation-actions.remove-annotation.remove-from-dict'), - () => this.#annotationActionsService.removeOrSuggestRemoveAnnotation(null, annotations, true), + () => this.#annotationActionsService.removeOrSuggestRemoveAnnotation(annotations, true), ); availableActions.push(removeFromDictButton); } if (permissions.canAcceptRecommendation) { const acceptRecommendationButton = this.#getButton('check', _('annotation-actions.accept-recommendation.label'), () => - this.#annotationActionsService.convertRecommendationToAnnotation(null, annotations), + this.#annotationActionsService.convertRecommendationToAnnotation(annotations), ); availableActions.push(acceptRecommendationButton); } if (permissions.canAcceptSuggestion) { const acceptSuggestionButton = this.#getButton('check', _('annotation-actions.accept-suggestion.label'), () => - this.#annotationActionsService.acceptSuggestion(null, annotations), + this.#annotationActionsService.acceptSuggestion(annotations), ); availableActions.push(acceptSuggestionButton); } if (permissions.canUndo) { const undoButton = this.#getButton('undo', _('annotation-actions.undo'), () => - this.#annotationActionsService.undoDirectAction(null, annotations), + this.#annotationActionsService.undoDirectAction(annotations), ); availableActions.push(undoButton); } if (permissions.canMarkAsFalsePositive) { const markAsFalsePositiveButton = this.#getButton('thumb-down', _('annotation-actions.remove-annotation.false-positive'), () => - this.#annotationActionsService.markAsFalsePositive(null, annotations), + this.#annotationActionsService.markAsFalsePositive(annotations), ); availableActions.push(markAsFalsePositiveButton); } if (permissions.canForceRedaction) { const forceRedactionButton = this.#getButton('thumb-up', _('annotation-actions.force-redaction.label'), () => - this.#annotationActionsService.forceAnnotation(null, annotations), + this.#annotationActionsService.forceAnnotation(annotations), ); availableActions.push(forceRedactionButton); } if (permissions.canForceHint) { const forceHintButton = this.#getButton('thumb-up', _('annotation-actions.force-hint.label'), () => - this.#annotationActionsService.forceAnnotation(null, annotations, true), + this.#annotationActionsService.forceAnnotation(annotations, true), ); availableActions.push(forceHintButton); } if (permissions.canRejectSuggestion) { const rejectSuggestionButton = this.#getButton('close', _('annotation-actions.reject-suggestion'), () => - this.#annotationActionsService.rejectSuggestion(null, annotations), + this.#annotationActionsService.rejectSuggestion(annotations), ); availableActions.push(rejectSuggestionButton); } @@ -124,7 +124,7 @@ export class PdfAnnotationActionsService { const removeOrSuggestToRemoveOnlyHereButton = this.#getButton( 'trash', _('annotation-actions.remove-annotation.only-here'), - () => this.#annotationActionsService.removeOrSuggestRemoveAnnotation(null, annotations, false), + () => this.#annotationActionsService.removeOrSuggestRemoveAnnotation(annotations, false), ); availableActions.push(removeOrSuggestToRemoveOnlyHereButton); } diff --git a/apps/red-ui/src/app/modules/file-preview/services/pdf-proxy.service.ts b/apps/red-ui/src/app/modules/file-preview/services/pdf-proxy.service.ts index b283a4e07..e3c3c2045 100644 --- a/apps/red-ui/src/app/modules/file-preview/services/pdf-proxy.service.ts +++ b/apps/red-ui/src/app/modules/file-preview/services/pdf-proxy.service.ts @@ -191,7 +191,7 @@ export class PdfProxyService { return; } - this._annotationsActionsService.cancelResize(null, wrapper).then(); + this._annotationsActionsService.cancelResize(wrapper).then(); } #configureAnnotationSpecificActions(viewerAnnotations: Annotation[]) { diff --git a/apps/red-ui/src/app/modules/file-preview/services/skipped.service.ts b/apps/red-ui/src/app/modules/file-preview/services/skipped.service.ts index fa6e81fde..a59e962c9 100644 --- a/apps/red-ui/src/app/modules/file-preview/services/skipped.service.ts +++ b/apps/red-ui/src/app/modules/file-preview/services/skipped.service.ts @@ -21,9 +21,7 @@ export class SkippedService { return this.#hideSkipped$.value; } - toggleSkipped($event): void { - $event.stopPropagation(); - $event.preventDefault(); + toggleSkipped(): void { this.#hideSkipped$.next(!this.hideSkipped); } diff --git a/apps/red-ui/src/app/modules/pdf-viewer/components/compare-file-input/compare-file-input.component.ts b/apps/red-ui/src/app/modules/pdf-viewer/components/compare-file-input/compare-file-input.component.ts index aaa5c0ad2..1ec58135e 100644 --- a/apps/red-ui/src/app/modules/pdf-viewer/components/compare-file-input/compare-file-input.component.ts +++ b/apps/red-ui/src/app/modules/pdf-viewer/components/compare-file-input/compare-file-input.component.ts @@ -83,7 +83,6 @@ export class CompareFileInputComponent { #askForConfirmation(fileName: string, currentDocumentPageCount: number, compareDocumentPageCount: number) { const ref: MatDialogRef = this._dialogService.openDialog( 'confirm', - null, new ConfirmationDialogInput({ title: _('confirmation-dialog.compare-file.title'), question: _('confirmation-dialog.compare-file.question'), diff --git a/apps/red-ui/src/app/modules/search/search-item-template/search-item-template.component.html b/apps/red-ui/src/app/modules/search/search-item-template/search-item-template.component.html index d4e9ea51f..8c52a91f4 100644 --- a/apps/red-ui/src/app/modules/search/search-item-template/search-item-template.component.html +++ b/apps/red-ui/src/app/modules/search/search-item-template/search-item-template.component.html @@ -22,7 +22,7 @@ {{ 'search-screen.missing' | translate }}: {{ term }}. {{ 'search-screen.must-contain' | translate }}: -  {{ term }} diff --git a/apps/red-ui/src/app/modules/search/search.module.ts b/apps/red-ui/src/app/modules/search/search.module.ts index 94862be23..160d2a5bb 100644 --- a/apps/red-ui/src/app/modules/search/search.module.ts +++ b/apps/red-ui/src/app/modules/search/search.module.ts @@ -2,7 +2,7 @@ import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { SearchScreenComponent } from './search-screen/search-screen.component'; import { RouterModule } from '@angular/router'; -import { IqserListingModule, IqserUsersModule, StatusBarComponent } from '@iqser/common-ui'; +import { IqserListingModule, IqserUsersModule, StatusBarComponent, StopPropagationDirective } from '@iqser/common-ui'; import { SharedModule } from '@shared/shared.module'; import { TranslateModule } from '@ngx-translate/core'; import { SearchItemTemplateComponent } from './search-item-template/search-item-template.component'; @@ -19,6 +19,7 @@ const routes = [{ path: '', component: SearchScreenComponent }]; TranslateModule, IqserListingModule, StatusBarComponent, + StopPropagationDirective, ], }) export class SearchModule {} diff --git a/apps/red-ui/src/app/modules/shared-dossiers/components/dossiers-listing-actions/dossiers-listing-actions.component.html b/apps/red-ui/src/app/modules/shared-dossiers/components/dossiers-listing-actions/dossiers-listing-actions.component.html index 6661fb648..dd634a0c5 100644 --- a/apps/red-ui/src/app/modules/shared-dossiers/components/dossiers-listing-actions/dossiers-listing-actions.component.html +++ b/apps/red-ui/src/app/modules/shared-dossiers/components/dossiers-listing-actions/dossiers-listing-actions.component.html @@ -1,6 +1,6 @@
{ - $event.stopPropagation(); + async reanalyseDossier(dossier: Dossier): Promise { await this._reanalysisService.reanalyzeDossier(dossier); } } diff --git a/apps/red-ui/src/app/modules/shared-dossiers/components/file-actions/file-actions.component.ts b/apps/red-ui/src/app/modules/shared-dossiers/components/file-actions/file-actions.component.ts index e693b56d4..17ac0c541 100644 --- a/apps/red-ui/src/app/modules/shared-dossiers/components/file-actions/file-actions.component.ts +++ b/apps/red-ui/src/app/modules/shared-dossiers/components/file-actions/file-actions.component.ts @@ -125,7 +125,7 @@ export class FileActionsComponent implements OnChanges { { id: 'delete-file-btn-' + fileId, type: ActionTypes.circleBtn, - action: ($event: MouseEvent) => this._openDeleteFileDialog($event), + action: () => this._openDeleteFileDialog(), tooltip: _('dossier-overview.delete.action'), icon: 'iqser:trash', show: this.showDelete, @@ -133,7 +133,7 @@ export class FileActionsComponent implements OnChanges { { id: 'assign-btn-' + fileId, type: ActionTypes.circleBtn, - action: ($event: MouseEvent) => this._assign($event), + action: () => this._assign(), tooltip: this.assignTooltip, icon: 'red:assign', show: this.showAssign, @@ -141,7 +141,7 @@ export class FileActionsComponent implements OnChanges { { id: 'assign-to-me-btn-' + fileId, type: ActionTypes.circleBtn, - action: ($event: MouseEvent) => this._assignToMe($event), + action: () => this._assignToMe(), tooltip: _('dossier-overview.assign-me'), icon: 'red:assign-me', show: this.showAssignToSelf, @@ -149,7 +149,7 @@ export class FileActionsComponent implements OnChanges { { id: 'open-import-redactions-dialog-btn-' + fileId, type: ActionTypes.circleBtn, - action: ($event: MouseEvent) => this._openImportRedactionsDialog($event), + action: () => this._openImportRedactionsDialog(), tooltip: _('dossier-overview.import-redactions'), icon: 'red:import_redactions', show: this.showImportRedactions && !this._iqserPermissionsService.has(ROLES.getRss), @@ -188,7 +188,7 @@ export class FileActionsComponent implements OnChanges { { id: 'set-file-to-new-btn-' + fileId, type: ActionTypes.circleBtn, - action: ($event: MouseEvent) => this.#setToNew($event), + action: () => this.#setToNew(), tooltip: _('dossier-overview.back-to-new'), icon: 'red:undo', show: this.showSetToNew, @@ -196,7 +196,7 @@ export class FileActionsComponent implements OnChanges { { id: 'set-file-under-approval-btn-' + fileId, type: ActionTypes.circleBtn, - action: ($event: MouseEvent) => this._setFileUnderApproval($event), + action: () => this._setFileUnderApproval(), tooltip: _('dossier-overview.under-approval'), icon: 'red:ready-for-approval', show: this.showUnderApproval, @@ -204,7 +204,7 @@ export class FileActionsComponent implements OnChanges { { id: 'set-file-under-review-btn-' + fileId, type: ActionTypes.circleBtn, - action: ($event: MouseEvent) => this._setFileUnderReview($event), + action: () => this._setFileUnderReview(), tooltip: _('dossier-overview.under-review'), icon: 'red:undo', show: this.showUnderReview, @@ -212,7 +212,7 @@ export class FileActionsComponent implements OnChanges { { id: 'set-file-approved-btn-' + fileId, type: ActionTypes.circleBtn, - action: ($event: MouseEvent) => this.setFileApproved($event), + action: () => this.setFileApproved(), tooltip: this.file.canBeApproved ? _('dossier-overview.approve') : _('dossier-overview.approve-disabled'), icon: 'red:approved', disabled: !this.file.canBeApproved, @@ -221,7 +221,7 @@ export class FileActionsComponent implements OnChanges { { id: 'toggle-automatic-analysis-btn-' + fileId, type: ActionTypes.circleBtn, - action: ($event: MouseEvent) => this._toggleAutomaticAnalysis($event), + action: () => this._toggleAutomaticAnalysis(), tooltip: _('dossier-overview.stop-auto-analysis'), icon: 'red:disable-analysis', show: this.canDisableAutoAnalysis, @@ -229,7 +229,7 @@ export class FileActionsComponent implements OnChanges { { id: 'reanalyse-file-preview-btn-' + fileId, type: ActionTypes.circleBtn, - action: ($event: MouseEvent) => this._reanalyseFile($event), + action: () => this._reanalyseFile(), tooltip: _('file-preview.reanalyse-notification'), tooltipClass: 'small', icon: 'iqser:refresh', @@ -239,7 +239,7 @@ export class FileActionsComponent implements OnChanges { { id: 'toggle-automatic-analysis-btn-' + fileId, type: ActionTypes.circleBtn, - action: ($event: MouseEvent) => this._toggleAutomaticAnalysis($event), + action: () => this._toggleAutomaticAnalysis(), tooltip: _('dossier-overview.start-auto-analysis'), buttonType: this.isFilePreview ? CircleButtonTypes.warn : CircleButtonTypes.default, icon: 'red:enable-analysis', @@ -248,7 +248,7 @@ export class FileActionsComponent implements OnChanges { { id: 'set-under-approval-btn-' + fileId, type: ActionTypes.circleBtn, - action: ($event: MouseEvent) => this._setFileUnderApproval($event), + action: () => this._setFileUnderApproval(), tooltip: _('dossier-overview.under-approval'), icon: 'red:undo', show: this.showUndoApproval, @@ -256,7 +256,7 @@ export class FileActionsComponent implements OnChanges { { id: 'ocr-file-btn-' + fileId, type: ActionTypes.circleBtn, - action: ($event: MouseEvent) => this._ocrFile($event), + action: () => this._ocrFile(), tooltip: _('dossier-overview.ocr-file'), icon: 'iqser:ocr', show: this.showOCR, @@ -264,7 +264,7 @@ export class FileActionsComponent implements OnChanges { { id: 'reanalyse-file-btn-' + fileId, type: ActionTypes.circleBtn, - action: ($event: MouseEvent) => this._reanalyseFile($event), + action: () => this._reanalyseFile(), tooltip: _('dossier-overview.reanalyse.action'), icon: 'iqser:refresh', show: this.showReanalyseDossierOverview, @@ -292,8 +292,7 @@ export class FileActionsComponent implements OnChanges { } } - async setFileApproved($event: MouseEvent) { - $event.stopPropagation(); + async setFileApproved() { if (!this.file.analysisRequired && !this.file.hasUpdates) { await this.#setFileApproved(); return; @@ -301,7 +300,6 @@ export class FileActionsComponent implements OnChanges { this._dialogService.openDialog( 'confirm', - $event, new ConfirmationDialogInput({ title: this.file.analysisRequired ? _('confirmation-dialog.approve-file-without-analysis.title') @@ -330,18 +328,17 @@ export class FileActionsComponent implements OnChanges { denyText: _('ocr.confirmation-dialog.cancel'), }); - const ref = this._dialogService.openDialog('confirm', null, data); + const ref = this._dialogService.openDialog('confirm', data); return ref.afterClosed(); } - private _openImportRedactionsDialog($event: MouseEvent) { - this._dialogService.openDialog('importRedactions', $event, { dossierId: this.file.dossierId, fileId: this.file.fileId }); + private _openImportRedactionsDialog() { + this._dialogService.openDialog('importRedactions', { dossierId: this.file.dossierId, fileId: this.file.fileId }); } - private _openDeleteFileDialog($event: MouseEvent) { + private _openDeleteFileDialog() { this._dialogService.openDialog( 'confirm', - $event, new ConfirmationDialogInput({ title: _('confirmation-dialog.delete-file.title'), question: _('confirmation-dialog.delete-file.question'), @@ -360,21 +357,19 @@ export class FileActionsComponent implements OnChanges { ); } - private _assign($event: MouseEvent) { + private _assign() { const files = [this.file]; const targetStatus = this.file.workflowStatus; const withCurrentUserAsDefault = true; const withUnassignedOption = true; - this._dialogService.openDialog('assignFile', $event, { targetStatus, files, withCurrentUserAsDefault, withUnassignedOption }); + this._dialogService.openDialog('assignFile', { targetStatus, files, withCurrentUserAsDefault, withUnassignedOption }); } - private async _assignToMe($event: MouseEvent) { - $event.stopPropagation(); + private async _assignToMe() { await this._fileAssignService.assignToMe([this.file]); } - private async _reanalyseFile($event?: MouseEvent) { - $event?.stopPropagation(); + private async _reanalyseFile() { const params: ReanalyzeQueryParams = { force: true, triggeredByUser: true, @@ -382,20 +377,17 @@ export class FileActionsComponent implements OnChanges { await firstValueFrom(this._reanalysisService.reanalyzeFilesForDossier([this.file], this.file.dossierId, params)); } - private async _toggleAutomaticAnalysis($event: MouseEvent) { - $event.stopPropagation(); + private async _toggleAutomaticAnalysis() { this._loadingService.start(); await firstValueFrom(this._reanalysisService.toggleAutomaticAnalysis(this.file.dossierId, [this.file])); this._loadingService.stop(); } - private async _setFileUnderApproval($event: MouseEvent) { - $event.stopPropagation(); - await this._fileAssignService.assignApprover($event, this.file, true); + private async _setFileUnderApproval() { + await this._fileAssignService.assignApprover(this.file, true); } - private async _ocrFile($event: MouseEvent) { - $event.stopPropagation(); + private async _ocrFile() { if (this.file.lastManualChangeDate) { const confirm = await firstValueFrom(this.#showOCRConfirmationDialog()); if (!confirm) { @@ -413,8 +405,8 @@ export class FileActionsComponent implements OnChanges { this._loadingService.stop(); } - private async _setFileUnderReview($event: MouseEvent) { - await this._fileAssignService.assignReviewer($event, this.file, true); + private async _setFileUnderReview() { + await this._fileAssignService.assignReviewer(this.file, true); } private async _toggleAnalysis() { @@ -475,8 +467,7 @@ export class FileActionsComponent implements OnChanges { this._loadingService.stop(); } - async #setToNew($event: MouseEvent) { - $event.stopPropagation(); + async #setToNew() { this._loadingService.start(); await this._filesService.setToNew(this.file); this._loadingService.stop(); diff --git a/apps/red-ui/src/app/modules/shared-dossiers/dialogs/edit-dossier-dialog/dictionary/edit-dossier-dictionary.component.ts b/apps/red-ui/src/app/modules/shared-dossiers/dialogs/edit-dossier-dialog/dictionary/edit-dossier-dictionary.component.ts index 63a7e45e7..32660e26c 100644 --- a/apps/red-ui/src/app/modules/shared-dossiers/dialogs/edit-dossier-dialog/dictionary/edit-dossier-dictionary.component.ts +++ b/apps/red-ui/src/app/modules/shared-dossiers/dialogs/edit-dossier-dialog/dictionary/edit-dossier-dictionary.component.ts @@ -74,7 +74,7 @@ export class EditDossierDictionaryComponent implements EditDossierSectionInterfa openEditDetailsDialog(): void { const data = { dictionary: this.dossierDictionary, dossierId: this.dossier.id, readOnly: !this.canEdit }; - this._dialogService.openDialog('editDictionaryDetails', null, data, async () => { + this._dialogService.openDialog('editDictionaryDetails', data, async () => { await this._updateDossierDictionary(); }); } diff --git a/apps/red-ui/src/app/modules/shared-dossiers/dialogs/edit-dossier-dialog/edit-dossier-team/edit-dossier-team.component.html b/apps/red-ui/src/app/modules/shared-dossiers/dialogs/edit-dossier-dialog/edit-dossier-team/edit-dossier-team.component.html index b4d769083..2ed9ecb93 100644 --- a/apps/red-ui/src/app/modules/shared-dossiers/dialogs/edit-dossier-dialog/edit-dossier-team/edit-dossier-team.component.html +++ b/apps/red-ui/src/app/modules/shared-dossiers/dialogs/edit-dossier-dialog/edit-dossier-team/edit-dossier-team.component.html @@ -62,9 +62,10 @@
{ + this._dialogService.openDialog('confirm', data, async () => { this._loadingService.start(); await firstValueFrom(this._trashService.deleteDossier(this.dossier)); this._editDossierDialogRef.close(); @@ -165,7 +165,7 @@ export class EditDossierGeneralInfoComponent implements OnInit, EditDossierSecti checkboxes: [{ value: false, label: _('confirm-archive-dossier.checkbox.documents') }], toastMessage: _('confirm-archive-dossier.toast-error'), }); - this._dialogService.openDialog('confirm', null, data, async result => { + this._dialogService.openDialog('confirm', data, async result => { if (result === ConfirmOptions.CONFIRM) { this._loadingService.start(); await firstValueFrom(this._archivedDossiersService.archive([this.dossier])); diff --git a/apps/red-ui/src/app/modules/shared-dossiers/services/file-assign.service.ts b/apps/red-ui/src/app/modules/shared-dossiers/services/file-assign.service.ts index c378a33a0..c08092eae 100644 --- a/apps/red-ui/src/app/modules/shared-dossiers/services/file-assign.service.ts +++ b/apps/red-ui/src/app/modules/shared-dossiers/services/file-assign.service.ts @@ -40,24 +40,22 @@ export class FileAssignService { ? _('confirmation-dialog.assign-file-to-me.question.single') : _('confirmation-dialog.assign-file-to-me.question.multiple'), }); - const ref = this._dialogService.openDialog('confirm', null, dialogInput, assignReq); + const ref = this._dialogService.openDialog('confirm', dialogInput, assignReq); return firstValueFrom(ref.afterClosed()); } return assignReq(); } - async assignReviewer($event: MouseEvent, file: File, ignoreChanged = false): Promise { - await this._assignFile(WorkflowFileStatuses.UNDER_REVIEW, $event, file, ignoreChanged); + async assignReviewer(file: File, ignoreChanged = false): Promise { + await this._assignFile(WorkflowFileStatuses.UNDER_REVIEW, file, ignoreChanged); } - async assignApprover($event: MouseEvent, file: File, ignoreChanged = false): Promise { - await this._assignFile(WorkflowFileStatuses.UNDER_APPROVAL, $event, file, ignoreChanged); + async assignApprover(file: File, ignoreChanged = false): Promise { + await this._assignFile(WorkflowFileStatuses.UNDER_APPROVAL, file, ignoreChanged); } - private async _assignFile(targetStatus: WorkflowFileStatus, $event: MouseEvent, file: File, ignoreChanged = false): Promise { - $event?.stopPropagation(); - + private async _assignFile(targetStatus: WorkflowFileStatus, file: File, ignoreChanged = false): Promise { const currentUserId = this.currentUser.id; const currentDossier = this._activeDossiersService.find(file.dossierId); const eligibleUsersIds = this._getUserIds(targetStatus, currentDossier); @@ -71,14 +69,14 @@ export class FileAssignService { await this._makeAssignFileRequest(eligibleUsersIds[0], targetStatus, [file]); } else { const data = { targetStatus, files: [file], ignoreChanged }; - this._dialogService.openDialog('assignFile', null, data); + this._dialogService.openDialog('assignFile', data); } } else { if (eligibleUsersIds.length === 1) { await this._makeAssignFileRequest(eligibleUsersIds[0], targetStatus, [file]); } else { const data = { targetStatus, files: [file], ignoreChanged, withCurrentUserAsDefault: true }; - this._dialogService.openDialog('assignFile', null, data); + this._dialogService.openDialog('assignFile', data); } } } diff --git a/apps/red-ui/src/app/modules/shared-dossiers/shared-dossiers.module.ts b/apps/red-ui/src/app/modules/shared-dossiers/shared-dossiers.module.ts index e4538aff3..4d588cdd8 100644 --- a/apps/red-ui/src/app/modules/shared-dossiers/shared-dossiers.module.ts +++ b/apps/red-ui/src/app/modules/shared-dossiers/shared-dossiers.module.ts @@ -24,6 +24,7 @@ import { SideNavComponent, SmallChipComponent, StatusBarComponent, + StopPropagationDirective, } from '@iqser/common-ui'; import { TranslateModule } from '@ngx-translate/core'; import { DossiersListingActionsComponent } from './components/dossiers-listing-actions/dossiers-listing-actions.component'; @@ -61,6 +62,7 @@ const services = [FileAssignService]; SmallChipComponent, StatusBarComponent, SideNavComponent, + StopPropagationDirective, ], }) export class SharedDossiersModule {} diff --git a/apps/red-ui/src/app/modules/shared/components/buttons/file-download-btn/file-download-btn.component.html b/apps/red-ui/src/app/modules/shared/components/buttons/file-download-btn/file-download-btn.component.html index ffeba8738..2df56956c 100644 --- a/apps/red-ui/src/app/modules/shared/components/buttons/file-download-btn/file-download-btn.component.html +++ b/apps/red-ui/src/app/modules/shared/components/buttons/file-download-btn/file-download-btn.component.html @@ -1,5 +1,5 @@ (DownloadDialogComponent, { ...defaultDialogConfig, data: { dossier: this.dossier, files: this.files }, diff --git a/apps/red-ui/src/app/modules/shared/components/expandable-file-actions/expandable-file-actions.component.html b/apps/red-ui/src/app/modules/shared/components/expandable-file-actions/expandable-file-actions.component.html index 39f50ccd1..65c3a6068 100644 --- a/apps/red-ui/src/app/modules/shared/components/expandable-file-actions/expandable-file-actions.component.html +++ b/apps/red-ui/src/app/modules/shared/components/expandable-file-actions/expandable-file-actions.component.html @@ -29,7 +29,6 @@
diff --git a/apps/red-ui/src/app/modules/shared/components/expandable-file-actions/expandable-file-actions.component.ts b/apps/red-ui/src/app/modules/shared/components/expandable-file-actions/expandable-file-actions.component.ts index 62f6e255f..abf7722c2 100644 --- a/apps/red-ui/src/app/modules/shared/components/expandable-file-actions/expandable-file-actions.component.ts +++ b/apps/red-ui/src/app/modules/shared/components/expandable-file-actions/expandable-file-actions.component.ts @@ -70,7 +70,7 @@ export class ExpandableFileActionsComponent implements OnChanges { // Patch download button const downloadBtn = this.actions.find(btn => btn.type === ActionTypes.downloadBtn); if (downloadBtn) { - downloadBtn.action = ($event: MouseEvent) => this._downloadFiles($event, downloadBtn.files, downloadBtn.dossier); + downloadBtn.action = () => this._downloadFiles(downloadBtn.files, downloadBtn.dossier); downloadBtn.disabled = !this._permissionsService.canDownloadFiles(downloadBtn.files, downloadBtn.dossier); } } @@ -81,8 +81,8 @@ export class ExpandableFileActionsComponent implements OnChanges { this.matMenu.closeMenu(); } - private async _downloadFiles($event: MouseEvent, files: File[], dossier: Dossier) { - $event.stopPropagation(); + // TODO: this doesn't look like its called + private async _downloadFiles(files: File[], dossier: Dossier) { const ref = this._dialog.open(DownloadDialogComponent, { ...defaultDialogConfig, data: { dossier, files }, diff --git a/apps/red-ui/src/app/modules/shared/components/select/select.component.html b/apps/red-ui/src/app/modules/shared/components/select/select.component.html index fc01a781b..ebdd68eaf 100644 --- a/apps/red-ui/src/app/modules/shared/components/select/select.component.html +++ b/apps/red-ui/src/app/modules/shared/components/select/select.component.html @@ -1,11 +1,18 @@
{{ label }}
-
+
diff --git a/apps/red-ui/src/app/modules/shared/components/select/select.component.ts b/apps/red-ui/src/app/modules/shared/components/select/select.component.ts index 89a498516..58c32dd71 100644 --- a/apps/red-ui/src/app/modules/shared/components/select/select.component.ts +++ b/apps/red-ui/src/app/modules/shared/components/select/select.component.ts @@ -85,8 +85,7 @@ export class SelectComponent implements AfterViewInit, ControlValueAccessor { this.disabled = isDisabled; } - selectAll($event) { - $event.stopPropagation(); + selectAll() { this.chipList._chips.forEach(chip => { if (!chip.selected) { chip.toggleSelected(true); @@ -94,8 +93,7 @@ export class SelectComponent implements AfterViewInit, ControlValueAccessor { }); } - deselectAll($event?) { - $event?.stopPropagation(); + deselectAll() { this.chipList._chips.forEach(chip => { if (chip.selected) { chip.toggleSelected(true); diff --git a/apps/red-ui/src/app/modules/shared/components/team-members/team-members.component.ts b/apps/red-ui/src/app/modules/shared/components/team-members/team-members.component.ts index f558da526..0cb3ffa41 100644 --- a/apps/red-ui/src/app/modules/shared/components/team-members/team-members.component.ts +++ b/apps/red-ui/src/app/modules/shared/components/team-members/team-members.component.ts @@ -51,6 +51,6 @@ export class TeamMembersComponent { openEditDossierDialog(): void { const data = { dossierId: this.dossierId, section: 'members' }; - this._dialogService.openDialog('editDossier', null, data); + this._dialogService.openDialog('editDossier', data); } } diff --git a/apps/red-ui/src/app/modules/shared/dialogs/add-dossier-dialog/add-dossier-dialog.component.ts b/apps/red-ui/src/app/modules/shared/dialogs/add-dossier-dialog/add-dossier-dialog.component.ts index 9ef2c57f5..fb048bf13 100644 --- a/apps/red-ui/src/app/modules/shared/dialogs/add-dossier-dialog/add-dossier-dialog.component.ts +++ b/apps/red-ui/src/app/modules/shared/dialogs/add-dossier-dialog/add-dossier-dialog.component.ts @@ -84,7 +84,7 @@ export class AddDossierDialogComponent extends BaseDialogComponent implements On if (savedDossier) { await this._router.navigate([savedDossier.routerLink]); if (options?.addMembers) { - this._dialogService.openDialog('editDossier', null, { + this._dialogService.openDialog('editDossier', { dossierId: savedDossier.id, section: 'members', }); diff --git a/apps/red-ui/src/app/modules/shared/shared.module.ts b/apps/red-ui/src/app/modules/shared/shared.module.ts index c423823d2..c36db9458 100644 --- a/apps/red-ui/src/app/modules/shared/shared.module.ts +++ b/apps/red-ui/src/app/modules/shared/shared.module.ts @@ -16,6 +16,7 @@ import { IqserScrollbarModule, IqserUsersModule, SmallChipComponent, + StopPropagationDirective, } from '@iqser/common-ui'; import { SelectComponent } from './components/select/select.component'; import { NavigateLastDossiersScreenDirective } from './directives/navigate-last-dossiers-screen.directive'; @@ -95,6 +96,7 @@ const deleteThisWhenAllComponentsAreStandalone = [DonutChartComponent]; CircleButtonComponent, IconButtonComponent, SmallChipComponent, + StopPropagationDirective, ], exports: [...modules, ...components, ...utils, ...deleteThisWhenAllComponentsAreStandalone], providers: [ diff --git a/apps/red-ui/src/app/modules/trash/services/trash-dialog.service.ts b/apps/red-ui/src/app/modules/trash/services/trash-dialog.service.ts index 9ef73d9d6..f325f5636 100644 --- a/apps/red-ui/src/app/modules/trash/services/trash-dialog.service.ts +++ b/apps/red-ui/src/app/modules/trash/services/trash-dialog.service.ts @@ -41,7 +41,8 @@ export class TrashDialogService extends DialogService { itemsCount: items.length, }, }); - this.openDialog('confirm', null, data, async () => { + + this.openDialog('confirm', data, async () => { this._loadingService.start(); await firstValueFrom(this._trashService.hardDelete(items)); this._loadingService.stop(); diff --git a/libs/common-ui b/libs/common-ui index 655874989..a2e40583e 160000 --- a/libs/common-ui +++ b/libs/common-ui @@ -1 +1 @@ -Subproject commit 655874989bafa3b7017ceb94e1088c7f9fddd0a5 +Subproject commit a2e40583e3b3f731cee202bd621545994a87ff7f From fbce1df248edb0809e041a62aab1bd996a67b4f7 Mon Sep 17 00:00:00 2001 From: Atlassian Bamboo Date: Sat, 18 Mar 2023 01:20:14 +0100 Subject: [PATCH 56/99] chore(release) --- package.json | 2 +- paligo-theme.tar.gz | Bin 3444 -> 3442 bytes 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index f4fa1d0cb..0502ac906 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "redaction", - "version": "4.11.0", + "version": "4.12.0", "private": true, "license": "MIT", "scripts": { diff --git a/paligo-theme.tar.gz b/paligo-theme.tar.gz index 8b0d5f4bba1de712e9140863d18544feb963967b..9dc8f3d7448d8ecf1e471bf975deea8f71c02534 100644 GIT binary patch delta 3325 zcmVYjgSh;w9aeMa584WzQ~C z#>#qoeVr6JtCzc?*kuHlv|dKV{u&g*{dI!(G`s)ek0r@}^$pJJEoC@c-0f2K(q4Ff zw*A~*_~J7VpDXdX7M~mVbi^1(jB&&mM~rdA7>AGfWlZZb!}nj*ceuQ~dVaCw_~Fb- z364pH{(gbbTZ`r~d9y{%bNH1K3hQr?AK2xa=NIn=Gq&51Bt=EU%n(PnyQ*mN*oum* zsJ7^-yYXD#8P7whBc^a>ST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P>92sj)A2Fg#8UfbUAH<4P&nBWASa`? z6Oeo7b_)J~W3E8WV8^5GIjQhxTxL>-Pu^J42hF>dG?+8jQ@J0nb0?Xe4opFR^~^oLq=N$ixJjCHeRpj zM0hy09Pj)imn$UkeYu_gKMLaik8-&{HGEk$si?5BpT3?eC`_G2`>^bvQn!EAJ@JrC zzUrP*zkk&|r9uCydrDXRtL~}nzN?W_n9Dth`^T#yb8s_@#}h+8tY$n3>_bY$BY6&; z%me>wOX%HL9flCQ|4ujwG0-3?+BAgd&4uWDDnvyYAMIL4x;%;-AC`AWh~x0{m`4*+ z%x Date: Sun, 19 Mar 2023 12:06:25 +0200 Subject: [PATCH 57/99] RED-3800: make inputs standalone --- apps/red-ui/src/app/app.module.ts | 4 ++++ .../red-ui/src/app/modules/admin/admin.module.ts | 14 ++++++++++---- .../dossier-templates-listing.module.ts | 4 ++-- .../admin/screens/entities/entities.module.ts | 4 ++-- .../screens/info/dossier-template-info.module.ts | 4 ++-- .../justifications/justifications.module.ts | 4 ++-- .../admin/screens/reports/reports.module.ts | 4 ++-- .../admin/screens/watermark/watermark.module.ts | 4 ++-- .../dossier-overview/dossier-overview.module.ts | 8 ++++---- .../dossiers-listing/dossiers-listing.module.ts | 4 ++-- .../document-info-dialog.component.html | 9 ++++----- .../modules/file-preview/file-preview.module.ts | 16 ++++++++++++---- .../edit-dossier-attributes.component.html | 5 ++--- .../shared-dossiers/shared-dossiers.module.ts | 12 ++++++++---- .../src/app/modules/shared/shared.module.ts | 4 ++-- .../file-upload-download.module.ts | 12 ++++++++++-- libs/common-ui | 2 +- 17 files changed, 71 insertions(+), 43 deletions(-) diff --git a/apps/red-ui/src/app/app.module.ts b/apps/red-ui/src/app/app.module.ts index 347ef2b86..783877a51 100644 --- a/apps/red-ui/src/app/app.module.ts +++ b/apps/red-ui/src/app/app.module.ts @@ -13,6 +13,7 @@ import { CommonUiModule, EmptyStateComponent, HiddenActionDirective, + InputWithActionComponent, IqserHelpModeModule, IqserLoadingModule, IqserPermissionsModule, @@ -22,6 +23,7 @@ import { LanguageService, LogoComponent, MAX_RETRIES_ON_SERVER_ERROR, + RoundCheckboxComponent, SERVER_ERROR_SKIP_PATHS, ServerErrorInterceptor, SkeletonComponent, @@ -163,6 +165,8 @@ export const appModuleFactory = (config: AppConfig) => { LogoComponent, HiddenActionDirective, StopPropagationDirective, + InputWithActionComponent, + RoundCheckboxComponent, ], providers: [ { diff --git a/apps/red-ui/src/app/modules/admin/admin.module.ts b/apps/red-ui/src/app/modules/admin/admin.module.ts index c054923e9..08845970a 100644 --- a/apps/red-ui/src/app/modules/admin/admin.module.ts +++ b/apps/red-ui/src/app/modules/admin/admin.module.ts @@ -44,16 +44,19 @@ import { KmsSignatureConfigurationComponent } from './dialogs/configure-digital- import { ChevronButtonComponent, CircleButtonComponent, + DetailsRadioComponent, + EditableInputComponent, EmptyStateComponent, + HasScrollbarDirective, HumanizePipe, IconButtonComponent, + InputWithActionComponent, IqserHelpModeModule, - IqserInputsModule, IqserListingModule, IqserPermissionsModule, - IqserScrollbarModule, IqserUploadFileModule, IqserUsersModule, + RoundCheckboxComponent, } from '@iqser/common-ui'; import { TranslateModule } from '@ngx-translate/core'; import { AuditInfoDialogComponent } from './dialogs/audit-info-dialog/audit-info-dialog.component'; @@ -115,8 +118,6 @@ const components = [ TranslateModule, HumanizePipe, IqserListingModule, - IqserScrollbarModule, - IqserInputsModule, IqserUploadFileModule, IqserHelpModeModule, IqserPermissionsModule, @@ -127,6 +128,11 @@ const components = [ CircleButtonComponent, ChevronButtonComponent, EmptyStateComponent, + HasScrollbarDirective, + RoundCheckboxComponent, + InputWithActionComponent, + EditableInputComponent, + DetailsRadioComponent, ], }) export class AdminModule {} diff --git a/apps/red-ui/src/app/modules/admin/screens/dossier-templates-listing/dossier-templates-listing.module.ts b/apps/red-ui/src/app/modules/admin/screens/dossier-templates-listing/dossier-templates-listing.module.ts index 82f18874d..acec7996e 100644 --- a/apps/red-ui/src/app/modules/admin/screens/dossier-templates-listing/dossier-templates-listing.module.ts +++ b/apps/red-ui/src/app/modules/admin/screens/dossier-templates-listing/dossier-templates-listing.module.ts @@ -7,8 +7,8 @@ import { DossierTemplatesListingScreenComponent } from './dossier-templates-list import { CircleButtonComponent, IconButtonComponent, + InputWithActionComponent, IqserHelpModeModule, - IqserInputsModule, IqserListingModule, IqserPermissionsModule, IqserUsersModule, @@ -26,13 +26,13 @@ const routes = [{ path: '', component: DossierTemplatesListingScreenComponent }] SharedModule, IqserUsersModule, TranslateModule, - IqserInputsModule, IqserListingModule, IqserHelpModeModule, IqserPermissionsModule, DossierTemplateActionsComponent, CircleButtonComponent, IconButtonComponent, + InputWithActionComponent, ], }) export class DossierTemplatesListingModule {} diff --git a/apps/red-ui/src/app/modules/admin/screens/entities/entities.module.ts b/apps/red-ui/src/app/modules/admin/screens/entities/entities.module.ts index ca43a2617..28f7cba75 100644 --- a/apps/red-ui/src/app/modules/admin/screens/entities/entities.module.ts +++ b/apps/red-ui/src/app/modules/admin/screens/entities/entities.module.ts @@ -7,7 +7,7 @@ import { PendingChangesGuard } from '@guards/can-deactivate.guard'; import { EntityInfoComponent } from './screens/entity-info/entity-info.component'; import { MonacoEditorModule } from '@materia-ui/ngx-monaco-editor'; import { TranslateModule } from '@ngx-translate/core'; -import { IconButtonComponent, IqserHelpModeModule, IqserPermissionsModule, IqserScrollbarModule } from '@iqser/common-ui'; +import { HasScrollbarDirective, IconButtonComponent, IqserHelpModeModule, IqserPermissionsModule } from '@iqser/common-ui'; const routes: Routes = [ { path: '', redirectTo: 'info', pathMatch: 'full' }, @@ -41,10 +41,10 @@ const routes: Routes = [ SharedModule, MonacoEditorModule, TranslateModule, - IqserScrollbarModule, IqserHelpModeModule, IqserPermissionsModule, IconButtonComponent, + HasScrollbarDirective, ], }) export class EntitiesModule {} diff --git a/apps/red-ui/src/app/modules/admin/screens/info/dossier-template-info.module.ts b/apps/red-ui/src/app/modules/admin/screens/info/dossier-template-info.module.ts index fc4f7af02..f4ad7c25d 100644 --- a/apps/red-ui/src/app/modules/admin/screens/info/dossier-template-info.module.ts +++ b/apps/red-ui/src/app/modules/admin/screens/info/dossier-template-info.module.ts @@ -3,7 +3,7 @@ import { CommonModule } from '@angular/common'; import { DossierTemplateInfoScreenComponent } from './info-screen/dossier-template-info-screen.component'; import { RouterModule } from '@angular/router'; import { SharedModule } from '@shared/shared.module'; -import { IqserHelpModeModule, IqserScrollbarModule, IqserUsersModule } from '@iqser/common-ui'; +import { HasScrollbarDirective, IqserHelpModeModule, IqserUsersModule } from '@iqser/common-ui'; import { TranslateModule } from '@ngx-translate/core'; const routes = [{ path: '', component: DossierTemplateInfoScreenComponent }]; @@ -16,8 +16,8 @@ const routes = [{ path: '', component: DossierTemplateInfoScreenComponent }]; SharedModule, IqserUsersModule, TranslateModule, - IqserScrollbarModule, IqserHelpModeModule, + HasScrollbarDirective, ], }) export class DossierTemplateInfoModule {} diff --git a/apps/red-ui/src/app/modules/admin/screens/justifications/justifications.module.ts b/apps/red-ui/src/app/modules/admin/screens/justifications/justifications.module.ts index 91f85d329..a831eca7d 100644 --- a/apps/red-ui/src/app/modules/admin/screens/justifications/justifications.module.ts +++ b/apps/red-ui/src/app/modules/admin/screens/justifications/justifications.module.ts @@ -7,7 +7,7 @@ import { TableItemComponent } from './table-item/table-item.component'; import { JustificationsDialogService } from './justifications-dialog.service'; import { AddEditJustificationDialogComponent } from './add-edit-justification-dialog/add-edit-justification-dialog.component'; import { TranslateModule } from '@ngx-translate/core'; -import { CircleButtonComponent, IconButtonComponent, IqserListingModule, IqserScrollbarModule } from '@iqser/common-ui'; +import { CircleButtonComponent, HasScrollbarDirective, IconButtonComponent, IqserListingModule } from '@iqser/common-ui'; const routes = [{ path: '', component: JustificationsScreenComponent }]; @@ -21,7 +21,7 @@ const routes = [{ path: '', component: JustificationsScreenComponent }]; IqserListingModule, IconButtonComponent, CircleButtonComponent, - IqserScrollbarModule, + HasScrollbarDirective, ], providers: [JustificationsDialogService], }) diff --git a/apps/red-ui/src/app/modules/admin/screens/reports/reports.module.ts b/apps/red-ui/src/app/modules/admin/screens/reports/reports.module.ts index 437cdf0ac..7d0cf0bb4 100644 --- a/apps/red-ui/src/app/modules/admin/screens/reports/reports.module.ts +++ b/apps/red-ui/src/app/modules/admin/screens/reports/reports.module.ts @@ -3,7 +3,7 @@ import { CommonModule } from '@angular/common'; import { RouterModule } from '@angular/router'; import { ReportsScreenComponent } from './reports-screen/reports-screen.component'; import { TranslateModule } from '@ngx-translate/core'; -import { CircleButtonComponent, IqserHelpModeModule, IqserPermissionsModule, IqserScrollbarModule } from '@iqser/common-ui'; +import { CircleButtonComponent, HasScrollbarDirective, IqserHelpModeModule, IqserPermissionsModule } from '@iqser/common-ui'; const routes = [{ path: '', component: ReportsScreenComponent }]; @@ -13,10 +13,10 @@ const routes = [{ path: '', component: ReportsScreenComponent }]; RouterModule.forChild(routes), CommonModule, TranslateModule, - IqserScrollbarModule, IqserHelpModeModule, IqserPermissionsModule, CircleButtonComponent, + HasScrollbarDirective, ], }) export class ReportsModule {} diff --git a/apps/red-ui/src/app/modules/admin/screens/watermark/watermark.module.ts b/apps/red-ui/src/app/modules/admin/screens/watermark/watermark.module.ts index fd6827ae1..378bd04dc 100644 --- a/apps/red-ui/src/app/modules/admin/screens/watermark/watermark.module.ts +++ b/apps/red-ui/src/app/modules/admin/screens/watermark/watermark.module.ts @@ -6,12 +6,12 @@ import { WatermarksListingScreenComponent } from './watermarks-listing/watermark import { CircleButtonComponent, CompositeRouteGuard, + HasScrollbarDirective, IconButtonComponent, IqserAuthGuard, IqserHelpModeModule, IqserListingModule, IqserPermissionsModule, - IqserScrollbarModule, IqserUsersModule, } from '@iqser/common-ui'; import { RedRoleGuard } from '@users/red-role.guard'; @@ -60,7 +60,6 @@ const routes = [ IqserUsersModule, TranslateModule, IqserListingModule, - IqserScrollbarModule, IqserHelpModeModule, IqserPermissionsModule, MatIconModule, @@ -70,6 +69,7 @@ const routes = [ ColorPickerModule, MatLegacySlideToggleModule, CircleButtonComponent, + HasScrollbarDirective, ], }) export class WatermarkModule {} diff --git a/apps/red-ui/src/app/modules/dossier-overview/dossier-overview.module.ts b/apps/red-ui/src/app/modules/dossier-overview/dossier-overview.module.ts index 1be5feb5f..e5118465f 100644 --- a/apps/red-ui/src/app/modules/dossier-overview/dossier-overview.module.ts +++ b/apps/red-ui/src/app/modules/dossier-overview/dossier-overview.module.ts @@ -3,12 +3,12 @@ import { CommonModule } from '@angular/common'; import { RouterModule, Routes } from '@angular/router'; import { CircleButtonComponent, + DynamicInputComponent, + HasScrollbarDirective, IqserHelpModeModule, - IqserInputsModule, IqserListingModule, IqserLoadingModule, IqserPermissionsModule, - IqserScrollbarModule, IqserUsersModule, StatusBarComponent, StopPropagationDirective, @@ -60,13 +60,13 @@ const routes: Routes = [ IqserUsersModule, IqserListingModule, IqserLoadingModule, - IqserScrollbarModule, IqserPermissionsModule, - IqserInputsModule, SharedModule, CircleButtonComponent, StatusBarComponent, StopPropagationDirective, + HasScrollbarDirective, + DynamicInputComponent, ], }) export class DossierOverviewModule {} diff --git a/apps/red-ui/src/app/modules/dossiers-listing/dossiers-listing.module.ts b/apps/red-ui/src/app/modules/dossiers-listing/dossiers-listing.module.ts index 51e67e566..d04138d48 100644 --- a/apps/red-ui/src/app/modules/dossiers-listing/dossiers-listing.module.ts +++ b/apps/red-ui/src/app/modules/dossiers-listing/dossiers-listing.module.ts @@ -2,10 +2,10 @@ import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { CompositeRouteGuard, + HasScrollbarDirective, IqserHelpModeModule, IqserListingModule, IqserPermissionsModule, - IqserScrollbarModule, IqserUsersModule, StatusBarComponent, } from '@iqser/common-ui'; @@ -50,9 +50,9 @@ const routes: Routes = [ IqserHelpModeModule, IqserUsersModule, IqserListingModule, - IqserScrollbarModule, IqserPermissionsModule, StatusBarComponent, + HasScrollbarDirective, ], }) export class DossiersListingModule {} diff --git a/apps/red-ui/src/app/modules/file-preview/dialogs/document-info-dialog/document-info-dialog.component.html b/apps/red-ui/src/app/modules/file-preview/dialogs/document-info-dialog/document-info-dialog.component.html index 51a1f6d89..9848ee289 100644 --- a/apps/red-ui/src/app/modules/file-preview/dialogs/document-info-dialog/document-info-dialog.component.html +++ b/apps/red-ui/src/app/modules/file-preview/dialogs/document-info-dialog/document-info-dialog.component.html @@ -5,29 +5,28 @@
- + >
diff --git a/apps/red-ui/src/app/modules/file-preview/file-preview.module.ts b/apps/red-ui/src/app/modules/file-preview/file-preview.module.ts index 61bc007a8..6fa629b1c 100644 --- a/apps/red-ui/src/app/modules/file-preview/file-preview.module.ts +++ b/apps/red-ui/src/app/modules/file-preview/file-preview.module.ts @@ -3,16 +3,20 @@ import { CommonModule } from '@angular/common'; import { CapitalizePipe, CircleButtonComponent, + DetailsRadioComponent, + DynamicInputComponent, + EditableInputComponent, EmptyStateComponent, + HasScrollbarDirective, IconButtonComponent, + InputWithActionComponent, IqserFiltersModule, IqserHelpModeModule, - IqserInputsModule, IqserPermissionsModule, - IqserScrollbarModule, IqserUploadFileModule, IqserUsersModule, PreventDefaultDirective, + RoundCheckboxComponent, StatusBarComponent, StopPropagationDirective, } from '@iqser/common-ui'; @@ -115,10 +119,8 @@ const components = [ IqserHelpModeModule, IqserUsersModule, CapitalizePipe, - IqserInputsModule, IqserUploadFileModule, IqserFiltersModule, - IqserScrollbarModule, IqserPermissionsModule, SharedModule, CircleButtonComponent, @@ -128,6 +130,12 @@ const components = [ StatusBarComponent, StopPropagationDirective, PreventDefaultDirective, + HasScrollbarDirective, + EditableInputComponent, + DetailsRadioComponent, + DynamicInputComponent, + InputWithActionComponent, + RoundCheckboxComponent, ], providers: [FilePreviewDialogService, ManualRedactionService, DocumentUnloadedGuard, SuggestionsService], }) diff --git a/apps/red-ui/src/app/modules/shared-dossiers/dialogs/edit-dossier-dialog/attributes/edit-dossier-attributes.component.html b/apps/red-ui/src/app/modules/shared-dossiers/dialogs/edit-dossier-dialog/attributes/edit-dossier-attributes.component.html index 5595207f9..508eac389 100644 --- a/apps/red-ui/src/app/modules/shared-dossiers/dialogs/edit-dossier-dialog/attributes/edit-dossier-attributes.component.html +++ b/apps/red-ui/src/app/modules/shared-dossiers/dialogs/edit-dossier-dialog/attributes/edit-dossier-attributes.component.html @@ -12,13 +12,12 @@ - + >
diff --git a/apps/red-ui/src/app/modules/shared-dossiers/shared-dossiers.module.ts b/apps/red-ui/src/app/modules/shared-dossiers/shared-dossiers.module.ts index 4d588cdd8..cb9ab3626 100644 --- a/apps/red-ui/src/app/modules/shared-dossiers/shared-dossiers.module.ts +++ b/apps/red-ui/src/app/modules/shared-dossiers/shared-dossiers.module.ts @@ -14,13 +14,15 @@ import { FileAssignService } from './services/file-assign.service'; import { DictionaryDetailsDialogComponent } from './dialogs/edit-dossier-dialog/dictionary/dictionary-details-dialog/dictionary-details-dialog.component'; import { CircleButtonComponent, + DynamicInputComponent, EmptyStateComponent, + HasScrollbarDirective, IconButtonComponent, + InputWithActionComponent, IqserHelpModeModule, - IqserInputsModule, IqserPermissionsModule, - IqserScrollbarModule, IqserUsersModule, + RoundCheckboxComponent, SideNavComponent, SmallChipComponent, StatusBarComponent, @@ -53,8 +55,6 @@ const services = [FileAssignService]; IqserHelpModeModule, IqserUsersModule, TranslateModule, - IqserInputsModule, - IqserScrollbarModule, IqserPermissionsModule, IconButtonComponent, CircleButtonComponent, @@ -63,6 +63,10 @@ const services = [FileAssignService]; StatusBarComponent, SideNavComponent, StopPropagationDirective, + HasScrollbarDirective, + RoundCheckboxComponent, + InputWithActionComponent, + DynamicInputComponent, ], }) export class SharedDossiersModule {} diff --git a/apps/red-ui/src/app/modules/shared/shared.module.ts b/apps/red-ui/src/app/modules/shared/shared.module.ts index c36db9458..b85d04404 100644 --- a/apps/red-ui/src/app/modules/shared/shared.module.ts +++ b/apps/red-ui/src/app/modules/shared/shared.module.ts @@ -10,10 +10,10 @@ import { AnnotationIconComponent } from './components/annotation-icon/annotation import { DonutChartComponent } from './components/donut-chart/donut-chart.component'; import { CircleButtonComponent, + HasScrollbarDirective, IconButtonComponent, IqserHelpModeModule, IqserPermissionsModule, - IqserScrollbarModule, IqserUsersModule, SmallChipComponent, StopPropagationDirective, @@ -90,13 +90,13 @@ const deleteThisWhenAllComponentsAreStandalone = [DonutChartComponent]; RouterModule, IqserHelpModeModule, IqserUsersModule, - IqserScrollbarModule, IqserPermissionsModule, ...deleteThisWhenAllComponentsAreStandalone, CircleButtonComponent, IconButtonComponent, SmallChipComponent, StopPropagationDirective, + HasScrollbarDirective, ], exports: [...modules, ...components, ...utils, ...deleteThisWhenAllComponentsAreStandalone], providers: [ diff --git a/apps/red-ui/src/app/modules/upload-download/file-upload-download.module.ts b/apps/red-ui/src/app/modules/upload-download/file-upload-download.module.ts index 7d703bde9..cd38be314 100644 --- a/apps/red-ui/src/app/modules/upload-download/file-upload-download.module.ts +++ b/apps/red-ui/src/app/modules/upload-download/file-upload-download.module.ts @@ -11,10 +11,18 @@ import { StatusOverlayService } from './services/status-overlay.service'; import { FileDropOverlayService } from './services/file-drop-overlay.service'; import { UploadDownloadDialogService } from './services/upload-download-dialog.service'; import { TranslateModule } from '@ngx-translate/core'; -import { CircleButtonComponent, IconButtonComponent, IqserInputsModule } from '@iqser/common-ui'; +import { CircleButtonComponent, DetailsRadioComponent, IconButtonComponent } from '@iqser/common-ui'; @NgModule({ - imports: [CommonModule, SharedModule, OverlayModule, TranslateModule, IqserInputsModule, CircleButtonComponent, IconButtonComponent], + imports: [ + CommonModule, + SharedModule, + OverlayModule, + TranslateModule, + CircleButtonComponent, + IconButtonComponent, + DetailsRadioComponent, + ], declarations: [FileDropComponent, UploadStatusOverlayComponent, OverwriteFilesDialogComponent], providers: [UploadDownloadDialogService, FileUploadService, FileDownloadService, StatusOverlayService, FileDropOverlayService], exports: [FileDropComponent, UploadStatusOverlayComponent], diff --git a/libs/common-ui b/libs/common-ui index a2e40583e..c9c2f3e0f 160000 --- a/libs/common-ui +++ b/libs/common-ui @@ -1 +1 @@ -Subproject commit a2e40583e3b3f731cee202bd621545994a87ff7f +Subproject commit c9c2f3e0f978eb819e0890d49da503d4d878484b From e45ec9813d3594d10de526650222fa08957f4c11 Mon Sep 17 00:00:00 2001 From: Dan Percic Date: Sun, 19 Mar 2023 15:00:35 +0200 Subject: [PATCH 58/99] RED-3800: update jest & some directives --- .eslintignore | 7 + .prettierignore | 4 +- apps/red-ui/jest.config.ts | 25 +++ apps/red-ui/src/app/app.module.ts | 6 +- .../src/app/modules/admin/admin.module.ts | 6 +- .../dossier-templates-listing.module.ts | 7 +- .../admin/screens/entities/entities.module.ts | 4 +- .../admin/screens/reports/reports.module.ts | 6 +- .../screens/watermark/watermark.module.ts | 7 +- .../src/app/modules/archive/archive.module.ts | 8 +- .../app/modules/dashboard/dashboard.module.ts | 14 +- .../dossier-overview.module.ts | 9 +- .../dossiers-listing.module.ts | 7 +- .../file-preview/file-preview.module.ts | 11 +- .../shared-dossiers/shared-dossiers.module.ts | 9 +- .../src/app/modules/shared/shared.module.ts | 6 +- jest.config.ts | 5 + jest.preset.js | 3 + libs/common-ui | 2 +- package.json | 17 +- tsconfig.spec.json | 4 +- yarn.lock | 208 ++++++++++++++++++ 22 files changed, 306 insertions(+), 69 deletions(-) create mode 100644 .eslintignore create mode 100644 apps/red-ui/jest.config.ts create mode 100644 jest.config.ts create mode 100644 jest.preset.js diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 000000000..c194ecc1a --- /dev/null +++ b/.eslintignore @@ -0,0 +1,7 @@ +.angular +.dev +.husky +dist +coverage +node_modules +bamboo-specs diff --git a/.prettierignore b/.prettierignore index 81d117d52..b8ec6a7f0 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1,5 +1,7 @@ # Add files here to ignore them from prettier formatting - +/.angular +/.dev +/.husky /dist /coverage /node_modules diff --git a/apps/red-ui/jest.config.ts b/apps/red-ui/jest.config.ts new file mode 100644 index 000000000..fa9e1b508 --- /dev/null +++ b/apps/red-ui/jest.config.ts @@ -0,0 +1,25 @@ +import type { Config } from 'jest'; + +const config: Config = { + displayName: 'red-ui', + preset: '../../jest.preset.js', + setupFilesAfterEnv: ['jest-preset-angular/setup-jest.js', 'jest-extended/all'], + coverageDirectory: '../../coverage/apps/angular-jest', + transform: { + '^.+\\.(ts|mjs|js|html)$': [ + 'jest-preset-angular', + { + tsconfig: '../../tsconfig.spec.json', + stringifyContentPathRegex: '\\.(html|svg)$', + }, + ], + }, + transformIgnorePatterns: ['node_modules/(?!.*\\.mjs$)'], + snapshotSerializers: [ + 'jest-preset-angular/build/serializers/no-ng-attributes', + 'jest-preset-angular/build/serializers/ng-snapshot', + 'jest-preset-angular/build/serializers/html-comment', + ], +}; + +export default config; diff --git a/apps/red-ui/src/app/app.module.ts b/apps/red-ui/src/app/app.module.ts index 783877a51..08368aca3 100644 --- a/apps/red-ui/src/app/app.module.ts +++ b/apps/red-ui/src/app/app.module.ts @@ -14,9 +14,10 @@ import { EmptyStateComponent, HiddenActionDirective, InputWithActionComponent, + IqserAllowDirective, + IqserDenyDirective, IqserHelpModeModule, IqserLoadingModule, - IqserPermissionsModule, IqserPermissionsService, IqserTranslateModule, IqserUsersModule, @@ -120,7 +121,6 @@ export const appModuleFactory = (config: AppConfig) => { }), IqserTranslateModule.forRoot({ pathPrefix: config.BASE_TRANSLATIONS_DIRECTORY || '/assets/i18n/redact/' }), IqserLoadingModule.forRoot(), - IqserPermissionsModule.forRoot(), ServiceWorkerModule.register('ngsw-worker.js', { enabled: environment.production }), LoggerModule.forRoot(undefined, { ruleProvider: { @@ -167,6 +167,8 @@ export const appModuleFactory = (config: AppConfig) => { StopPropagationDirective, InputWithActionComponent, RoundCheckboxComponent, + IqserAllowDirective, + IqserDenyDirective, ], providers: [ { diff --git a/apps/red-ui/src/app/modules/admin/admin.module.ts b/apps/red-ui/src/app/modules/admin/admin.module.ts index 08845970a..215a8529b 100644 --- a/apps/red-ui/src/app/modules/admin/admin.module.ts +++ b/apps/red-ui/src/app/modules/admin/admin.module.ts @@ -51,9 +51,10 @@ import { HumanizePipe, IconButtonComponent, InputWithActionComponent, + IqserAllowDirective, + IqserDenyDirective, IqserHelpModeModule, IqserListingModule, - IqserPermissionsModule, IqserUploadFileModule, IqserUsersModule, RoundCheckboxComponent, @@ -120,7 +121,6 @@ const components = [ IqserListingModule, IqserUploadFileModule, IqserHelpModeModule, - IqserPermissionsModule, AdminSideNavComponent, DossierTemplateActionsComponent, DossierTemplateBreadcrumbsComponent, @@ -133,6 +133,8 @@ const components = [ InputWithActionComponent, EditableInputComponent, DetailsRadioComponent, + IqserAllowDirective, + IqserDenyDirective, ], }) export class AdminModule {} diff --git a/apps/red-ui/src/app/modules/admin/screens/dossier-templates-listing/dossier-templates-listing.module.ts b/apps/red-ui/src/app/modules/admin/screens/dossier-templates-listing/dossier-templates-listing.module.ts index acec7996e..5334b90e3 100644 --- a/apps/red-ui/src/app/modules/admin/screens/dossier-templates-listing/dossier-templates-listing.module.ts +++ b/apps/red-ui/src/app/modules/admin/screens/dossier-templates-listing/dossier-templates-listing.module.ts @@ -8,15 +8,16 @@ import { CircleButtonComponent, IconButtonComponent, InputWithActionComponent, + IqserAllowDirective, IqserHelpModeModule, IqserListingModule, - IqserPermissionsModule, + IqserRoutes, IqserUsersModule, } from '@iqser/common-ui'; import { TranslateModule } from '@ngx-translate/core'; import { DossierTemplateActionsComponent } from '../../shared/components/dossier-template-actions/dossier-template-actions.component'; -const routes = [{ path: '', component: DossierTemplatesListingScreenComponent }]; +const routes: IqserRoutes = [{ path: '', component: DossierTemplatesListingScreenComponent }]; @NgModule({ declarations: [TableItemComponent, DossierTemplatesListingScreenComponent], @@ -28,11 +29,11 @@ const routes = [{ path: '', component: DossierTemplatesListingScreenComponent }] TranslateModule, IqserListingModule, IqserHelpModeModule, - IqserPermissionsModule, DossierTemplateActionsComponent, CircleButtonComponent, IconButtonComponent, InputWithActionComponent, + IqserAllowDirective, ], }) export class DossierTemplatesListingModule {} diff --git a/apps/red-ui/src/app/modules/admin/screens/entities/entities.module.ts b/apps/red-ui/src/app/modules/admin/screens/entities/entities.module.ts index 28f7cba75..5eeddef83 100644 --- a/apps/red-ui/src/app/modules/admin/screens/entities/entities.module.ts +++ b/apps/red-ui/src/app/modules/admin/screens/entities/entities.module.ts @@ -7,7 +7,7 @@ import { PendingChangesGuard } from '@guards/can-deactivate.guard'; import { EntityInfoComponent } from './screens/entity-info/entity-info.component'; import { MonacoEditorModule } from '@materia-ui/ngx-monaco-editor'; import { TranslateModule } from '@ngx-translate/core'; -import { HasScrollbarDirective, IconButtonComponent, IqserHelpModeModule, IqserPermissionsModule } from '@iqser/common-ui'; +import { HasScrollbarDirective, IconButtonComponent, IqserDenyDirective, IqserHelpModeModule } from '@iqser/common-ui'; const routes: Routes = [ { path: '', redirectTo: 'info', pathMatch: 'full' }, @@ -42,9 +42,9 @@ const routes: Routes = [ MonacoEditorModule, TranslateModule, IqserHelpModeModule, - IqserPermissionsModule, IconButtonComponent, HasScrollbarDirective, + IqserDenyDirective, ], }) export class EntitiesModule {} diff --git a/apps/red-ui/src/app/modules/admin/screens/reports/reports.module.ts b/apps/red-ui/src/app/modules/admin/screens/reports/reports.module.ts index 7d0cf0bb4..9175eae4b 100644 --- a/apps/red-ui/src/app/modules/admin/screens/reports/reports.module.ts +++ b/apps/red-ui/src/app/modules/admin/screens/reports/reports.module.ts @@ -3,9 +3,9 @@ import { CommonModule } from '@angular/common'; import { RouterModule } from '@angular/router'; import { ReportsScreenComponent } from './reports-screen/reports-screen.component'; import { TranslateModule } from '@ngx-translate/core'; -import { CircleButtonComponent, HasScrollbarDirective, IqserHelpModeModule, IqserPermissionsModule } from '@iqser/common-ui'; +import { CircleButtonComponent, HasScrollbarDirective, IqserAllowDirective, IqserHelpModeModule, IqserRoutes } from '@iqser/common-ui'; -const routes = [{ path: '', component: ReportsScreenComponent }]; +const routes: IqserRoutes = [{ path: '', component: ReportsScreenComponent }]; @NgModule({ declarations: [ReportsScreenComponent], @@ -14,9 +14,9 @@ const routes = [{ path: '', component: ReportsScreenComponent }]; CommonModule, TranslateModule, IqserHelpModeModule, - IqserPermissionsModule, CircleButtonComponent, HasScrollbarDirective, + IqserAllowDirective, ], }) export class ReportsModule {} diff --git a/apps/red-ui/src/app/modules/admin/screens/watermark/watermark.module.ts b/apps/red-ui/src/app/modules/admin/screens/watermark/watermark.module.ts index 378bd04dc..9bd69ecab 100644 --- a/apps/red-ui/src/app/modules/admin/screens/watermark/watermark.module.ts +++ b/apps/red-ui/src/app/modules/admin/screens/watermark/watermark.module.ts @@ -8,10 +8,11 @@ import { CompositeRouteGuard, HasScrollbarDirective, IconButtonComponent, + IqserAllowDirective, IqserAuthGuard, IqserHelpModeModule, IqserListingModule, - IqserPermissionsModule, + IqserRoutes, IqserUsersModule, } from '@iqser/common-ui'; import { RedRoleGuard } from '@users/red-role.guard'; @@ -25,7 +26,7 @@ import { MatLegacySliderModule } from '@angular/material/legacy-slider'; import { ColorPickerModule } from 'ngx-color-picker'; import { MatLegacySlideToggleModule } from '@angular/material/legacy-slide-toggle'; -const routes = [ +const routes: IqserRoutes = [ { path: '', component: WatermarksListingScreenComponent, @@ -61,7 +62,6 @@ const routes = [ TranslateModule, IqserListingModule, IqserHelpModeModule, - IqserPermissionsModule, MatIconModule, IconButtonComponent, ReactiveFormsModule, @@ -70,6 +70,7 @@ const routes = [ MatLegacySlideToggleModule, CircleButtonComponent, HasScrollbarDirective, + IqserAllowDirective, ], }) export class WatermarkModule {} diff --git a/apps/red-ui/src/app/modules/archive/archive.module.ts b/apps/red-ui/src/app/modules/archive/archive.module.ts index 7fe6e071a..32f4c7725 100644 --- a/apps/red-ui/src/app/modules/archive/archive.module.ts +++ b/apps/red-ui/src/app/modules/archive/archive.module.ts @@ -4,16 +4,13 @@ import { ArchivedDossiersScreenComponent } from './screens/archived-dossiers-scr import { ArchiveRoutingModule } from './archive-routing.module'; import { TableItemComponent } from './components/table-item/table-item.component'; import { ConfigService } from './services/config.service'; -import { IqserHelpModeModule, IqserListingModule, IqserPermissionsModule, IqserUsersModule } from '@iqser/common-ui'; +import { IqserHelpModeModule, IqserListingModule, IqserUsersModule } from '@iqser/common-ui'; import { TranslateModule } from '@ngx-translate/core'; import { SharedModule } from '@shared/shared.module'; import { SharedDossiersModule } from '../shared-dossiers/shared-dossiers.module'; -const components = [TableItemComponent]; -const screens = [ArchivedDossiersScreenComponent]; - @NgModule({ - declarations: [...components, ...screens], + declarations: [TableItemComponent, ArchivedDossiersScreenComponent], imports: [ CommonModule, ArchiveRoutingModule, @@ -21,7 +18,6 @@ const screens = [ArchivedDossiersScreenComponent]; IqserUsersModule, TranslateModule, IqserListingModule, - IqserPermissionsModule, SharedModule, SharedDossiersModule, ], diff --git a/apps/red-ui/src/app/modules/dashboard/dashboard.module.ts b/apps/red-ui/src/app/modules/dashboard/dashboard.module.ts index 8bc4f730f..c89c1929b 100644 --- a/apps/red-ui/src/app/modules/dashboard/dashboard.module.ts +++ b/apps/red-ui/src/app/modules/dashboard/dashboard.module.ts @@ -6,9 +6,9 @@ import { SharedModule } from '@shared/shared.module'; import { TemplateStatsComponent } from './components/template-stats/template-stats.component'; import { BreadcrumbTypes } from '@red/domain'; import { TranslateModule } from '@ngx-translate/core'; -import { IconButtonComponent, IqserHelpModeModule, IqserPermissionsModule } from '@iqser/common-ui'; +import { IconButtonComponent, IqserHelpModeModule, IqserRoutes } from '@iqser/common-ui'; -const routes = [ +const routes: IqserRoutes = [ { path: '', component: DashboardScreenComponent, @@ -20,14 +20,6 @@ const routes = [ @NgModule({ declarations: [DashboardScreenComponent, TemplateStatsComponent], - imports: [ - RouterModule.forChild(routes), - CommonModule, - SharedModule, - TranslateModule, - IqserHelpModeModule, - IqserPermissionsModule, - IconButtonComponent, - ], + imports: [RouterModule.forChild(routes), CommonModule, SharedModule, TranslateModule, IqserHelpModeModule, IconButtonComponent], }) export class DashboardModule {} diff --git a/apps/red-ui/src/app/modules/dossier-overview/dossier-overview.module.ts b/apps/red-ui/src/app/modules/dossier-overview/dossier-overview.module.ts index e5118465f..8f23b68c9 100644 --- a/apps/red-ui/src/app/modules/dossier-overview/dossier-overview.module.ts +++ b/apps/red-ui/src/app/modules/dossier-overview/dossier-overview.module.ts @@ -1,14 +1,15 @@ import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; -import { RouterModule, Routes } from '@angular/router'; +import { RouterModule } from '@angular/router'; import { CircleButtonComponent, DynamicInputComponent, HasScrollbarDirective, + IqserAllowDirective, IqserHelpModeModule, IqserListingModule, IqserLoadingModule, - IqserPermissionsModule, + IqserRoutes, IqserUsersModule, StatusBarComponent, StopPropagationDirective, @@ -27,7 +28,7 @@ import { ViewModeSelectionComponent } from './components/view-mode-selection/vie import { FileAttributeComponent } from './components/table-item/file-attribute/file-attribute.component'; import { SharedModule } from '@shared/shared.module'; -const routes: Routes = [ +const routes: IqserRoutes = [ { path: '', component: DossierOverviewScreenComponent, @@ -60,13 +61,13 @@ const routes: Routes = [ IqserUsersModule, IqserListingModule, IqserLoadingModule, - IqserPermissionsModule, SharedModule, CircleButtonComponent, StatusBarComponent, StopPropagationDirective, HasScrollbarDirective, DynamicInputComponent, + IqserAllowDirective, ], }) export class DossierOverviewModule {} diff --git a/apps/red-ui/src/app/modules/dossiers-listing/dossiers-listing.module.ts b/apps/red-ui/src/app/modules/dossiers-listing/dossiers-listing.module.ts index d04138d48..5033d8fe1 100644 --- a/apps/red-ui/src/app/modules/dossiers-listing/dossiers-listing.module.ts +++ b/apps/red-ui/src/app/modules/dossiers-listing/dossiers-listing.module.ts @@ -5,13 +5,13 @@ import { HasScrollbarDirective, IqserHelpModeModule, IqserListingModule, - IqserPermissionsModule, + IqserRoutes, IqserUsersModule, StatusBarComponent, } from '@iqser/common-ui'; import { TranslateModule } from '@ngx-translate/core'; import { DossiersListingScreenComponent } from './screen/dossiers-listing-screen.component'; -import { RouterModule, Routes } from '@angular/router'; +import { RouterModule } from '@angular/router'; import { SharedModule } from '@shared/shared.module'; import { DossiersListingDetailsComponent } from './components/dossiers-listing-details/dossiers-listing-details.component'; import { ConfigService } from './config.service'; @@ -22,7 +22,7 @@ import { DossierDocumentsStatusComponent } from './components/dossier-documents- import { DossierFilesGuard } from '@guards/dossier-files-guard'; import { ACTIVE_DOSSIERS_SERVICE } from '../../tokens'; -const routes: Routes = [ +const routes: IqserRoutes = [ { path: '', component: DossiersListingScreenComponent, @@ -50,7 +50,6 @@ const routes: Routes = [ IqserHelpModeModule, IqserUsersModule, IqserListingModule, - IqserPermissionsModule, StatusBarComponent, HasScrollbarDirective, ], diff --git a/apps/red-ui/src/app/modules/file-preview/file-preview.module.ts b/apps/red-ui/src/app/modules/file-preview/file-preview.module.ts index 6fa629b1c..ab604c7af 100644 --- a/apps/red-ui/src/app/modules/file-preview/file-preview.module.ts +++ b/apps/red-ui/src/app/modules/file-preview/file-preview.module.ts @@ -10,9 +10,11 @@ import { HasScrollbarDirective, IconButtonComponent, InputWithActionComponent, + IqserAllowDirective, + IqserDenyDirective, IqserFiltersModule, IqserHelpModeModule, - IqserPermissionsModule, + IqserRoutes, IqserUploadFileModule, IqserUsersModule, PreventDefaultDirective, @@ -21,7 +23,7 @@ import { StopPropagationDirective, } from '@iqser/common-ui'; import { TranslateModule } from '@ngx-translate/core'; -import { RouterModule, Routes } from '@angular/router'; +import { RouterModule } from '@angular/router'; import { FilePreviewScreenComponent } from './file-preview-screen.component'; import { FileWorkloadComponent } from './components/file-workload/file-workload.component'; import { AnnotationDetailsComponent } from './components/annotation-details/annotation-details.component'; @@ -62,7 +64,7 @@ import { PagesComponent } from './components/pages/pages.component'; import { SharedModule } from '@shared/shared.module'; import { SharedDossiersModule } from '../shared-dossiers/shared-dossiers.module'; -const routes: Routes = [ +const routes: IqserRoutes = [ { path: '', component: FilePreviewScreenComponent, @@ -121,7 +123,6 @@ const components = [ CapitalizePipe, IqserUploadFileModule, IqserFiltersModule, - IqserPermissionsModule, SharedModule, CircleButtonComponent, SharedDossiersModule, @@ -136,6 +137,8 @@ const components = [ DynamicInputComponent, InputWithActionComponent, RoundCheckboxComponent, + IqserAllowDirective, + IqserDenyDirective, ], providers: [FilePreviewDialogService, ManualRedactionService, DocumentUnloadedGuard, SuggestionsService], }) diff --git a/apps/red-ui/src/app/modules/shared-dossiers/shared-dossiers.module.ts b/apps/red-ui/src/app/modules/shared-dossiers/shared-dossiers.module.ts index cb9ab3626..6e1627e3b 100644 --- a/apps/red-ui/src/app/modules/shared-dossiers/shared-dossiers.module.ts +++ b/apps/red-ui/src/app/modules/shared-dossiers/shared-dossiers.module.ts @@ -19,8 +19,9 @@ import { HasScrollbarDirective, IconButtonComponent, InputWithActionComponent, + IqserAllowDirective, + IqserDenyDirective, IqserHelpModeModule, - IqserPermissionsModule, IqserUsersModule, RoundCheckboxComponent, SideNavComponent, @@ -43,19 +44,17 @@ const components = [ DossiersListingActionsComponent, ]; const dialogs = [EditDossierDialogComponent, AssignReviewerApproverDialogComponent, DictionaryDetailsDialogComponent]; -const services = [FileAssignService]; @NgModule({ declarations: [...components, ...dialogs], exports: [...components, ...dialogs], - providers: [...services], + providers: [FileAssignService], imports: [ CommonModule, SharedModule, IqserHelpModeModule, IqserUsersModule, TranslateModule, - IqserPermissionsModule, IconButtonComponent, CircleButtonComponent, EmptyStateComponent, @@ -67,6 +66,8 @@ const services = [FileAssignService]; RoundCheckboxComponent, InputWithActionComponent, DynamicInputComponent, + IqserAllowDirective, + IqserDenyDirective, ], }) export class SharedDossiersModule {} diff --git a/apps/red-ui/src/app/modules/shared/shared.module.ts b/apps/red-ui/src/app/modules/shared/shared.module.ts index b85d04404..4009a8470 100644 --- a/apps/red-ui/src/app/modules/shared/shared.module.ts +++ b/apps/red-ui/src/app/modules/shared/shared.module.ts @@ -12,8 +12,9 @@ import { CircleButtonComponent, HasScrollbarDirective, IconButtonComponent, + IqserAllowDirective, + IqserDenyDirective, IqserHelpModeModule, - IqserPermissionsModule, IqserUsersModule, SmallChipComponent, StopPropagationDirective, @@ -90,13 +91,14 @@ const deleteThisWhenAllComponentsAreStandalone = [DonutChartComponent]; RouterModule, IqserHelpModeModule, IqserUsersModule, - IqserPermissionsModule, ...deleteThisWhenAllComponentsAreStandalone, CircleButtonComponent, IconButtonComponent, SmallChipComponent, StopPropagationDirective, HasScrollbarDirective, + IqserAllowDirective, + IqserDenyDirective, ], exports: [...modules, ...components, ...utils, ...deleteThisWhenAllComponentsAreStandalone], providers: [ diff --git a/jest.config.ts b/jest.config.ts new file mode 100644 index 000000000..9ec4b7265 --- /dev/null +++ b/jest.config.ts @@ -0,0 +1,5 @@ +import { getJestProjects } from '@nrwl/jest'; + +export default { + projects: getJestProjects(), +}; diff --git a/jest.preset.js b/jest.preset.js new file mode 100644 index 000000000..e6c8ebea0 --- /dev/null +++ b/jest.preset.js @@ -0,0 +1,3 @@ +const nxPreset = require('@nrwl/jest/preset').default; + +module.exports = { ...nxPreset }; diff --git a/libs/common-ui b/libs/common-ui index c9c2f3e0f..39e862b12 160000 --- a/libs/common-ui +++ b/libs/common-ui @@ -1 +1 @@ -Subproject commit c9c2f3e0f978eb819e0890d49da503d4d878484b +Subproject commit 39e862b1298ba1930bde9e71f39778bc51c5185f diff --git a/package.json b/package.json index 0502ac906..a45949dd1 100644 --- a/package.json +++ b/package.json @@ -72,6 +72,7 @@ "@bartholomej/ngx-translate-extract": "^8.0.2", "@nrwl/cli": "15.6.3", "@nrwl/eslint-plugin-nx": "15.6.3", + "@nrwl/jest": "^15.8.7", "@nrwl/linter": "15.6.3", "@nrwl/workspace": "15.6.3", "@types/jest": "^29.4.0", @@ -105,21 +106,5 @@ "webpack": "^5.76.1", "webpack-bundle-analyzer": "^4.8.0", "xliff": "^6.1.0" - }, - "jest": { - "preset": "jest-preset-angular", - "setupFilesAfterEnv": [ - "jest-preset-angular/setup-jest.js", - "jest-extended/all" - ], - "testPathIgnorePatterns": [ - "/node_modules/", - "/dist/" - ], - "globals": { - "ts-jest": { - "tsconfig": "/tsconfig.spec.json" - } - } } } diff --git a/tsconfig.spec.json b/tsconfig.spec.json index d9599d486..79f2a84c5 100644 --- a/tsconfig.spec.json +++ b/tsconfig.spec.json @@ -2,8 +2,10 @@ "extends": "./tsconfig.json", "compilerOptions": { "outDir": "./dist/out-tsc/spec", + "module": "commonjs", "types": ["jest", "node"], "esModuleInterop": true }, - "include": ["./libs/**/*.spec.ts", "./libs/**/*.d.ts"] + "files": ["src/test-setup.ts"], + "include": ["jest.config.ts", "./libs/**/*.spec.ts", "./libs/**/*.d.ts"] } diff --git a/yarn.lock b/yarn.lock index 253eb4bfb..ec676e067 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3348,6 +3348,13 @@ dependencies: nx "15.6.3" +"@nrwl/cli@15.8.7": + version "15.8.7" + resolved "https://registry.yarnpkg.com/@nrwl/cli/-/cli-15.8.7.tgz#1de7ba802de24edac64e8cb4cac1459a3f403505" + integrity sha512-G1NEy4jGuZJ/7KjhLQNOe11XmoTgwJS82FW8Tbo4iceq2ItSEbe7bkA8xTSK/AzUixZIMimztb9Oyxw/n1ajGQ== + dependencies: + nx "15.8.7" + "@nrwl/cypress@15.6.3": version "15.6.3" resolved "https://registry.yarnpkg.com/@nrwl/cypress/-/cypress-15.6.3.tgz#a9213555eb1581ad36f3df512ef5f32f77af9089" @@ -3371,6 +3378,18 @@ semver "7.3.4" tslib "^2.3.0" +"@nrwl/devkit@15.8.7": + version "15.8.7" + resolved "https://registry.yarnpkg.com/@nrwl/devkit/-/devkit-15.8.7.tgz#98e881e993c1314a20c050926df1466154782e58" + integrity sha512-A99nZrA5KN9wRn2uYX2vKByA+t2XEGoZBR5TU/bpXbPYrh92qAHkIJ8ke3ImGQOlzk4iIaZ5Me0k7k1p9Zx4wA== + dependencies: + "@phenomnomnominal/tsquery" "4.1.1" + ejs "^3.1.7" + ignore "^5.0.4" + semver "7.3.4" + tmp "~0.2.1" + tslib "^2.3.0" + "@nrwl/eslint-plugin-nx@15.6.3": version "15.6.3" resolved "https://registry.yarnpkg.com/@nrwl/eslint-plugin-nx/-/eslint-plugin-nx-15.6.3.tgz#a365de151783e90eccd8af8d49b13fd011f64943" @@ -3400,6 +3419,25 @@ resolve.exports "1.1.0" tslib "^2.3.0" +"@nrwl/jest@^15.8.7": + version "15.8.7" + resolved "https://registry.yarnpkg.com/@nrwl/jest/-/jest-15.8.7.tgz#010adedc3e8852c53c1a87afca76eef8aec37792" + integrity sha512-olTRYD/m1qu/sAaw/z7XOp0amsTKDa6hJvQDK26/1BkJiuKaYLSW/Ec7f39Ilw/zrde+fNg3YUOGiXxuQ10k4g== + dependencies: + "@jest/reporters" "28.1.1" + "@jest/test-result" "28.1.1" + "@nrwl/devkit" "15.8.7" + "@nrwl/js" "15.8.7" + "@phenomnomnominal/tsquery" "4.1.1" + chalk "^4.1.0" + dotenv "~10.0.0" + identity-obj-proxy "3.0.0" + jest-config "28.1.1" + jest-resolve "28.1.1" + jest-util "28.1.1" + resolve.exports "1.1.0" + tslib "^2.3.0" + "@nrwl/js@15.6.3": version "15.6.3" resolved "https://registry.yarnpkg.com/@nrwl/js/-/js-15.6.3.tgz#82c831ab2bf620c3cd376515ff861c9041341d5c" @@ -3428,6 +3466,34 @@ tree-kill "1.2.2" tslib "^2.3.0" +"@nrwl/js@15.8.7": + version "15.8.7" + resolved "https://registry.yarnpkg.com/@nrwl/js/-/js-15.8.7.tgz#17e413b0cb15e90a2fc7250e42d03338dba1d3de" + integrity sha512-FPOtTSIVHXnQG2uPzgvgtjBlMaHnxPKwG+3Qv1gQN9uHxd9e59TryARS+Q7/Y/qSP6woQjSVEcxkp1zJ2DhFFA== + dependencies: + "@babel/core" "^7.15.0" + "@babel/plugin-proposal-class-properties" "^7.14.5" + "@babel/plugin-proposal-decorators" "^7.14.5" + "@babel/plugin-transform-runtime" "^7.15.0" + "@babel/preset-env" "^7.15.0" + "@babel/preset-typescript" "^7.15.0" + "@babel/runtime" "^7.14.8" + "@nrwl/devkit" "15.8.7" + "@nrwl/workspace" "15.8.7" + "@phenomnomnominal/tsquery" "4.1.1" + babel-plugin-const-enum "^1.0.1" + babel-plugin-macros "^2.8.0" + babel-plugin-transform-typescript-metadata "^0.3.1" + chalk "^4.1.0" + fast-glob "3.2.7" + fs-extra "^11.1.0" + ignore "^5.0.4" + js-tokens "^4.0.0" + minimatch "3.0.5" + source-map-support "0.5.19" + tree-kill "1.2.2" + tslib "^2.3.0" + "@nrwl/linter@15.6.3": version "15.6.3" resolved "https://registry.yarnpkg.com/@nrwl/linter/-/linter-15.6.3.tgz#9cffa150109c604827c06ce0ccd5c925d4cd7c01" @@ -3438,6 +3504,62 @@ tmp "~0.2.1" tslib "^2.3.0" +"@nrwl/linter@15.8.7": + version "15.8.7" + resolved "https://registry.yarnpkg.com/@nrwl/linter/-/linter-15.8.7.tgz#b4418c9bc7f1dcace14fe3ef951d1198a04e7083" + integrity sha512-s0RDjpGCkBZ83GuJfNGf3yTLb+KXzOz68BUEBPW2iw4ziMcMfQ5ep6zj7/5nzblaUMGslPBldqQ2N23JoiAo4w== + dependencies: + "@nrwl/devkit" "15.8.7" + "@nrwl/js" "15.8.7" + "@phenomnomnominal/tsquery" "4.1.1" + tmp "~0.2.1" + tslib "^2.3.0" + +"@nrwl/nx-darwin-arm64@15.8.7": + version "15.8.7" + resolved "https://registry.yarnpkg.com/@nrwl/nx-darwin-arm64/-/nx-darwin-arm64-15.8.7.tgz#1fed566b5206afd710309079644782997ccb7895" + integrity sha512-+cu8J337gRxUHjz2TGwS/2Oh3yw8d3/T6SoBfvee1DY72VQaeYd8UTz0doOhDtmc/zowvRu7ZVsW0ytNB0jIXQ== + +"@nrwl/nx-darwin-x64@15.8.7": + version "15.8.7" + resolved "https://registry.yarnpkg.com/@nrwl/nx-darwin-x64/-/nx-darwin-x64-15.8.7.tgz#7aaee9f56fa526e7049fa5a9829fa72044b35055" + integrity sha512-VqHJEP0wgFu1MU0Bo1vKZ5/s7ThRfYkX8SyGUxjVTzR02CrsjC4rNxFoKD8Cc4YkUn44U/F78toGf+i2gRcjSQ== + +"@nrwl/nx-linux-arm-gnueabihf@15.8.7": + version "15.8.7" + resolved "https://registry.yarnpkg.com/@nrwl/nx-linux-arm-gnueabihf/-/nx-linux-arm-gnueabihf-15.8.7.tgz#379a77ea46e0f741c487eeedd3389eafab26dcae" + integrity sha512-4F/8awwqPTt7zKQolvjBNrcR1wYicPjGchLOdaqnfMxn/iRRUdh0hD11mEP5zHNv9gZs/nOIvhdBUErNjFkplQ== + +"@nrwl/nx-linux-arm64-gnu@15.8.7": + version "15.8.7" + resolved "https://registry.yarnpkg.com/@nrwl/nx-linux-arm64-gnu/-/nx-linux-arm64-gnu-15.8.7.tgz#201a41c0c8531de94169faa48bd9a49bed04ec4b" + integrity sha512-3ZTSZx02Vv5emQOpaDROIcLtQucoXAe73zGKYDTXB95mxbOPSjjQJ8Rtx+BeqWq9JQoZZyRcD0qnBkTTy1aLRg== + +"@nrwl/nx-linux-arm64-musl@15.8.7": + version "15.8.7" + resolved "https://registry.yarnpkg.com/@nrwl/nx-linux-arm64-musl/-/nx-linux-arm64-musl-15.8.7.tgz#f6bbf2e7a1941952c25387a36be6cfa88079975d" + integrity sha512-SZxTomiHxAh8El+swbmGSGcaA0vGbHb/rmhFAixo19INu1wBJfD6hjkVJt17h6PyEO7BIYPOpRia6Poxnyv8hA== + +"@nrwl/nx-linux-x64-gnu@15.8.7": + version "15.8.7" + resolved "https://registry.yarnpkg.com/@nrwl/nx-linux-x64-gnu/-/nx-linux-x64-gnu-15.8.7.tgz#76a88784858224a720c5a28e40ad513704f45722" + integrity sha512-BlNC6Zz1/x6CFbBFTVrgRGMOPqb7zWh5cOjBVNpoBXYTEth1UXb2r1U+gpuQ4xdUqG+uXoWhy6BHJjqBIjzLJA== + +"@nrwl/nx-linux-x64-musl@15.8.7": + version "15.8.7" + resolved "https://registry.yarnpkg.com/@nrwl/nx-linux-x64-musl/-/nx-linux-x64-musl-15.8.7.tgz#dd906423fa129d0c55633ebe80572bdd6be4d57f" + integrity sha512-FNYX/IKy8SUbw6bJpvwZrup2YQBYmSJwP6Rw76Vf7c32XHk7uA6AjiPWMIrZCSndXcry8fnwXvR+J2Dnyo82nQ== + +"@nrwl/nx-win32-arm64-msvc@15.8.7": + version "15.8.7" + resolved "https://registry.yarnpkg.com/@nrwl/nx-win32-arm64-msvc/-/nx-win32-arm64-msvc-15.8.7.tgz#145e415950d8ff507dcfbd7879f9c37477e7a620" + integrity sha512-sZALEzazjPAeLlw6IbFWsMidCZ4ZM3GKWZZ6rsAqG2y7I9t4nlUPH/y/Isl9MuLBvrBCBXbVnD20wh6EhtuwTw== + +"@nrwl/nx-win32-x64-msvc@15.8.7": + version "15.8.7" + resolved "https://registry.yarnpkg.com/@nrwl/nx-win32-x64-msvc/-/nx-win32-x64-msvc-15.8.7.tgz#66aa3cda4b9ae7b676d2282fbac129ce7a3c15d0" + integrity sha512-VMdDptI2rqkLQRCvertF29QeA/V/MnFtHbsmVzMCEv5EUfrkHbA5LLxV66LLfngmkDT1FHktffztlsMpbxvhRw== + "@nrwl/tao@15.6.3": version "15.6.3" resolved "https://registry.yarnpkg.com/@nrwl/tao/-/tao-15.6.3.tgz#b24e11345375dea96bc386c60b9b1102a7584932" @@ -3445,6 +3567,13 @@ dependencies: nx "15.6.3" +"@nrwl/tao@15.8.7": + version "15.8.7" + resolved "https://registry.yarnpkg.com/@nrwl/tao/-/tao-15.8.7.tgz#ea0bd4bc1784a2578dfb7cfb93f42d98504344cb" + integrity sha512-wA7QIEh0VwWcyo32Y/xSCTwnQTGcZupe933nResXv8mAb36W8MoR5SXRx+Wdd8fJ1eWlm2tuotIrslhN+lYx/Q== + dependencies: + nx "15.8.7" + "@nrwl/webpack@15.6.3": version "15.6.3" resolved "https://registry.yarnpkg.com/@nrwl/webpack/-/webpack-15.6.3.tgz#65b6d68a7a7c8580b8b97e8e4676dba5c5153090" @@ -3525,6 +3654,34 @@ yargs "^17.6.2" yargs-parser "21.1.1" +"@nrwl/workspace@15.8.7": + version "15.8.7" + resolved "https://registry.yarnpkg.com/@nrwl/workspace/-/workspace-15.8.7.tgz#c98b811214719a1fa2fe60bffdbc125b082bdb3f" + integrity sha512-ltJn5tLj8eCTNwJbKE9tWgiT/MKZ8f8jFld4YlG7H6i1mPc6d8rk+iNwoN8LZbHHss3x2g9lVnx2Sg5ZoDLNGA== + dependencies: + "@nrwl/devkit" "15.8.7" + "@nrwl/linter" "15.8.7" + "@parcel/watcher" "2.0.4" + chalk "^4.1.0" + chokidar "^3.5.1" + cli-cursor "3.1.0" + cli-spinners "2.6.1" + dotenv "~10.0.0" + figures "3.2.0" + flat "^5.0.2" + glob "7.1.4" + ignore "^5.0.4" + minimatch "3.0.5" + npm-run-path "^4.0.1" + nx "15.8.7" + open "^8.4.0" + rxjs "^6.5.4" + semver "7.3.4" + tmp "~0.2.1" + tslib "^2.3.0" + yargs "^17.6.2" + yargs-parser "21.1.1" + "@parcel/watcher@2.0.4": version "2.0.4" resolved "https://registry.yarnpkg.com/@parcel/watcher/-/watcher-2.0.4.tgz#f300fef4cc38008ff4b8c29d92588eced3ce014b" @@ -9578,6 +9735,57 @@ nx@15.6.3: yargs "^17.6.2" yargs-parser "21.1.1" +nx@15.8.7: + version "15.8.7" + resolved "https://registry.yarnpkg.com/nx/-/nx-15.8.7.tgz#a89156244f6f94407d7603375ae2f52733c7aff4" + integrity sha512-u6p/1gU20WU61orxK7hcXBsVspPHy3X66XVAAakkYcaOBlsJhJrR7Og191qIyjEkqEWmcekiDQVw3D6XfagL4Q== + dependencies: + "@nrwl/cli" "15.8.7" + "@nrwl/tao" "15.8.7" + "@parcel/watcher" "2.0.4" + "@yarnpkg/lockfile" "^1.1.0" + "@yarnpkg/parsers" "^3.0.0-rc.18" + "@zkochan/js-yaml" "0.0.6" + axios "^1.0.0" + chalk "^4.1.0" + cli-cursor "3.1.0" + cli-spinners "2.6.1" + cliui "^7.0.2" + dotenv "~10.0.0" + enquirer "~2.3.6" + fast-glob "3.2.7" + figures "3.2.0" + flat "^5.0.2" + fs-extra "^11.1.0" + glob "7.1.4" + ignore "^5.0.4" + js-yaml "4.1.0" + jsonc-parser "3.2.0" + lines-and-columns "~2.0.3" + minimatch "3.0.5" + npm-run-path "^4.0.1" + open "^8.4.0" + semver "7.3.4" + string-width "^4.2.3" + strong-log-transformer "^2.1.0" + tar-stream "~2.2.0" + tmp "~0.2.1" + tsconfig-paths "^4.1.2" + tslib "^2.3.0" + v8-compile-cache "2.3.0" + yargs "^17.6.2" + yargs-parser "21.1.1" + optionalDependencies: + "@nrwl/nx-darwin-arm64" "15.8.7" + "@nrwl/nx-darwin-x64" "15.8.7" + "@nrwl/nx-linux-arm-gnueabihf" "15.8.7" + "@nrwl/nx-linux-arm64-gnu" "15.8.7" + "@nrwl/nx-linux-arm64-musl" "15.8.7" + "@nrwl/nx-linux-x64-gnu" "15.8.7" + "@nrwl/nx-linux-x64-musl" "15.8.7" + "@nrwl/nx-win32-arm64-msvc" "15.8.7" + "@nrwl/nx-win32-x64-msvc" "15.8.7" + object-assign@^4.0.1: version "4.1.1" resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863" From 535e30cd25e1c27515c6b5ec81d26b4a6784e3f6 Mon Sep 17 00:00:00 2001 From: Dan Percic Date: Sun, 19 Mar 2023 16:03:47 +0200 Subject: [PATCH 59/99] RED-3800: update common-ui --- apps/red-ui/jest.config.ts | 9 +++++---- apps/red-ui/src/app/app.module.ts | 2 ++ .../downloads-list-screen.component.html | 5 +++-- libs/common-ui | 2 +- 4 files changed, 11 insertions(+), 7 deletions(-) diff --git a/apps/red-ui/jest.config.ts b/apps/red-ui/jest.config.ts index fa9e1b508..d48e080e9 100644 --- a/apps/red-ui/jest.config.ts +++ b/apps/red-ui/jest.config.ts @@ -1,6 +1,8 @@ import type { Config } from 'jest'; +import { defaults } from 'jest-config'; -const config: Config = { +export default { + ...defaults, displayName: 'red-ui', preset: '../../jest.preset.js', setupFilesAfterEnv: ['jest-preset-angular/setup-jest.js', 'jest-extended/all'], @@ -14,12 +16,11 @@ const config: Config = { }, ], }, + testEnvironment: 'jest-environment-jsdom', transformIgnorePatterns: ['node_modules/(?!.*\\.mjs$)'], snapshotSerializers: [ 'jest-preset-angular/build/serializers/no-ng-attributes', 'jest-preset-angular/build/serializers/ng-snapshot', 'jest-preset-angular/build/serializers/html-comment', ], -}; - -export default config; +} as Config; diff --git a/apps/red-ui/src/app/app.module.ts b/apps/red-ui/src/app/app.module.ts index 08368aca3..dd6efcb22 100644 --- a/apps/red-ui/src/app/app.module.ts +++ b/apps/red-ui/src/app/app.module.ts @@ -17,6 +17,7 @@ import { IqserAllowDirective, IqserDenyDirective, IqserHelpModeModule, + IqserListingModule, IqserLoadingModule, IqserPermissionsService, IqserTranslateModule, @@ -169,6 +170,7 @@ export const appModuleFactory = (config: AppConfig) => { RoundCheckboxComponent, IqserAllowDirective, IqserDenyDirective, + IqserListingModule, ], providers: [ { 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 9915adfb9..78c12e1ac 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 @@ -5,11 +5,11 @@
@@ -26,6 +26,7 @@ >
+
@@ -42,7 +43,7 @@
- {{ download.creationDate | date: 'd MMM yyyy, hh:mm a' }} + {{ download.creationDate | date : 'd MMM yyyy, hh:mm a' }}
diff --git a/libs/common-ui b/libs/common-ui index 39e862b12..cb8a0ddcf 160000 --- a/libs/common-ui +++ b/libs/common-ui @@ -1 +1 @@ -Subproject commit 39e862b1298ba1930bde9e71f39778bc51c5185f +Subproject commit cb8a0ddcf9a3858ec698e52488a51fabaff55849 From 3c378eb3c725006cbf7db810737e94d6f9dcd99a Mon Sep 17 00:00:00 2001 From: Atlassian Bamboo Date: Sun, 19 Mar 2023 15:08:05 +0100 Subject: [PATCH 60/99] chore(release) --- package.json | 2 +- paligo-theme.tar.gz | Bin 3442 -> 3444 bytes 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index a45949dd1..328290717 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "redaction", - "version": "4.12.0", + "version": "4.13.0", "private": true, "license": "MIT", "scripts": { diff --git a/paligo-theme.tar.gz b/paligo-theme.tar.gz index 9dc8f3d7448d8ecf1e471bf975deea8f71c02534..9ec500355028fc81e839d6f0f8c9c763b111beb0 100644 GIT binary patch delta 3358 zcmV+(4dL?g8uS{FcYmxL&k6h|wqpmj{{#g;2{wb))C^Y${TxgEH@2lNfBBKWq&y;FUimf6rUFZZCg-<%0ZIfe-uN{&g$i^D0UgaC9RiH zvA+g|aDScPJnF`2LIf4wsi#&o7o7Kb%=9!7-`O-!Bk)YtcL=Z??#J4!=@D zVf`)g1G{|l{D0!zV8(VElBB4Jm>J^ec2^Zm9$Qh771b6!bvK^tJL7pMb;K0T46CMZ z$ri1AzJPpnCzs_E!Mlv+#OhGltlNQmT8qujwrj|B73=h zAh5;bRvv1LrWcOX3rz={%^bmwnP1{Kruhy4xWI2`Jqt?6@^*4Be;k6S8b&x?Rg00( z(*t-ePJd@oUaW%cUE+%5?75NtsHtlHsw`;ENM+Ckn`?vkv*(epO^er(-v$MWV?PcA zq>Gn(5>t$dJiAAAR1uORoX6;yvPIT>zg-Df=6$V6(05xtnD_QTvVq*)?-ZhH;Auvz zvI#R9VJ?CRG6sB=*t(m688E4VbN$3HI>85gkaV{NC2H6Uf@ZF zLy}2Dbg*i!RDDL?FpGy1pn4H$6~Y8&62QPLwi+{`--xkFJs0u6*8g$Op<@kim)+N;N5rP#c&jTO5p zCQ(u0)~bUlkcu0lhhRP-6~+9yo0)-)x02Ro=F&|z-mCp4dyqP0RD zSy4)*r`61m{V>7+T!u~1MseMI`g9HLjDN8nX{-#9hU-6kDTCS_7W_DBm-+}yRX%@v z08iCeT_ysZIs5=tDvYCfN-D}myzAeCv%3Bqy`p(WC~NW^`uzH036L!yfn=7WV%B?^ z%fBVIy}s;b|Fx)YldQNK%ylQ{Z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SK#2pK?3V8X^ z@vlaUf#gb!`3940R&Mo_h+ihA(EvT+ta7dcLl%IE1jmfC4rr5uH9NTNB7a-755r3+ znjci|#(erKVDEH%OgFLA{#nyXiw!D58VKZnRsX7cD!cD$ zmGN%;NFH&=0E_PXhapQt?QhLnrgV{}OsPR)-#z(u>kuHzo#)st{65=@gJm%5F6ti3GI%ntNlK_$;YNoE+eCq!QJhyW@ mw{ttUb33HrS>1}iKcx3Pyhhp>xn-A From d827ef171a3be9fa9bdbce20049f7f18ad1736e4 Mon Sep 17 00:00:00 2001 From: Dan Percic Date: Mon, 20 Mar 2023 00:04:59 +0200 Subject: [PATCH 61/99] RED-3800: update confirmation dialog stuff --- .../src/app/guards/can-deactivate.guard.ts | 37 +++++++++--------- .../justifications-dialog.service.ts | 6 +-- .../reports-screen.component.ts | 11 +++--- .../watermarks-listing-screen.component.ts | 7 ++-- .../admin/services/admin-dialog.service.ts | 10 ++--- .../services/bulk-actions.service.ts | 10 ++--- .../view-switch/view-switch.component.ts | 6 +-- .../file-preview-screen.component.ts | 13 ++++--- .../compare-file-input.component.ts | 23 +++++------ .../services/page-rotation.service.ts | 9 +++-- .../file-actions/file-actions.component.ts | 38 +++++++++---------- .../edit-dossier-general-info.component.ts | 12 +++--- .../services/file-assign.service.ts | 6 +-- .../trash/services/trash-dialog.service.ts | 6 +-- .../dossier-templates.service.ts | 3 ++ libs/common-ui | 2 +- 16 files changed, 102 insertions(+), 97 deletions(-) diff --git a/apps/red-ui/src/app/guards/can-deactivate.guard.ts b/apps/red-ui/src/app/guards/can-deactivate.guard.ts index df72bc9c3..f71225068 100644 --- a/apps/red-ui/src/app/guards/can-deactivate.guard.ts +++ b/apps/red-ui/src/app/guards/can-deactivate.guard.ts @@ -1,6 +1,6 @@ import { CanDeactivate } from '@angular/router'; import { Injectable } from '@angular/core'; -import { map, Observable } from 'rxjs'; +import { map } from 'rxjs'; import { ConfirmationDialogService, ConfirmOptions } from '@iqser/common-ui'; export interface ComponentCanDeactivate { @@ -15,23 +15,24 @@ export interface ComponentCanDeactivate { export class PendingChangesGuard implements CanDeactivate { constructor(private _dialogService: ConfirmationDialogService) {} - canDeactivate(component: ComponentCanDeactivate): boolean | Observable { - if (component.changed) { - component.isLeavingPage = true; - - const dialogRef = this._dialogService.openDialog({ disableConfirm: component.valid === false }); - return dialogRef.afterClosed().pipe( - map(result => { - if (result === ConfirmOptions.CONFIRM) { - component.save().then(); - } else { - component.discard?.().then(); - } - component.isLeavingPage = false; - return !!result; - }), - ); + canDeactivate(component: ComponentCanDeactivate) { + if (!component.changed) { + return true; } - return true; + + component.isLeavingPage = true; + + const dialogRef = this._dialogService.open({ disableConfirm: component.valid === false }); + return dialogRef.afterClosed().pipe( + map(result => { + if (result === ConfirmOptions.CONFIRM) { + component.save().then(); + } else { + component.discard?.().then(); + } + component.isLeavingPage = false; + return !!result; + }), + ); } } diff --git a/apps/red-ui/src/app/modules/admin/screens/justifications/justifications-dialog.service.ts b/apps/red-ui/src/app/modules/admin/screens/justifications/justifications-dialog.service.ts index 36563c498..b774bbef6 100644 --- a/apps/red-ui/src/app/modules/admin/screens/justifications/justifications-dialog.service.ts +++ b/apps/red-ui/src/app/modules/admin/screens/justifications/justifications-dialog.service.ts @@ -2,9 +2,9 @@ import { Injectable } from '@angular/core'; import { MatDialog } from '@angular/material/dialog'; import { ConfirmationDialogComponent, - ConfirmationDialogInput, DialogConfig, DialogService, + IConfirmationDialogData, LoadingService, TitleColors, } from '@iqser/common-ui'; @@ -39,7 +39,7 @@ export class JustificationsDialogService extends DialogService { } confirmDelete(justifications: Justification[], dossierTemplateId: string) { - const data = new ConfirmationDialogInput({ + const data: IConfirmationDialogData = { title: _('confirmation-dialog.delete-justification.title'), titleColor: TitleColors.WARN, question: _('confirmation-dialog.delete-justification.question'), @@ -47,7 +47,7 @@ export class JustificationsDialogService extends DialogService { count: justifications.length, justificationName: justifications[0].name, }, - }); + }; this.openDialog('confirm', data, async () => { this._loadingService.start(); diff --git a/apps/red-ui/src/app/modules/admin/screens/reports/reports-screen/reports-screen.component.ts b/apps/red-ui/src/app/modules/admin/screens/reports/reports-screen/reports-screen.component.ts index cd8c8ad85..39c650687 100644 --- a/apps/red-ui/src/app/modules/admin/screens/reports/reports-screen/reports-screen.component.ts +++ b/apps/red-ui/src/app/modules/admin/screens/reports/reports-screen/reports-screen.component.ts @@ -1,7 +1,7 @@ import { ChangeDetectionStrategy, Component, ElementRef, OnInit, ViewChild } from '@angular/core'; import { DOSSIER_TEMPLATE_ID, IPlaceholdersResponse, IReportTemplate, User } from '@red/domain'; import { download } from '@utils/file-download-utils'; -import { ConfirmationDialogInput, getCurrentUser, getParam, LoadingService, Toaster } from '@iqser/common-ui'; +import { getCurrentUser, getParam, IConfirmationDialogData, LoadingService, Toaster } from '@iqser/common-ui'; import { PermissionsService } from '@services/permissions.service'; import { generalPlaceholdersDescriptionsTranslations, @@ -80,7 +80,7 @@ export class ReportsScreenComponent implements OnInit { return; } - const data = new ConfirmationDialogInput({ + const data: IConfirmationDialogData = { title: _('confirmation-dialog.upload-report-template.title'), question: _('confirmation-dialog.upload-report-template.question'), confirmationText: _('confirmation-dialog.upload-report-template.confirmation-text'), @@ -89,7 +89,8 @@ export class ReportsScreenComponent implements OnInit { translateParams: { fileName: file.name, }, - }); + }; + this._dialogService.openDialog('confirm', data, null, async result => { if (result) { const multiFileReport = result > 1; @@ -119,7 +120,7 @@ export class ReportsScreenComponent implements OnInit { } private async _openOverwriteConfirmationDialog(file: File, multiFileReport: boolean): Promise { - const data = new ConfirmationDialogInput({ + const data: IConfirmationDialogData = { title: _('confirmation-dialog.report-template-same-name.title'), question: _('confirmation-dialog.report-template-same-name.question'), confirmationText: _('confirmation-dialog.report-template-same-name.confirmation-text'), @@ -127,7 +128,7 @@ export class ReportsScreenComponent implements OnInit { translateParams: { fileName: file.name, }, - }); + }; this._dialogService.openDialog('confirm', data, null, async result => { if (result) { diff --git a/apps/red-ui/src/app/modules/admin/screens/watermark/watermarks-listing/watermarks-listing-screen.component.ts b/apps/red-ui/src/app/modules/admin/screens/watermark/watermarks-listing/watermarks-listing-screen.component.ts index 7a5547055..86c073f31 100644 --- a/apps/red-ui/src/app/modules/admin/screens/watermark/watermarks-listing/watermarks-listing-screen.component.ts +++ b/apps/red-ui/src/app/modules/admin/screens/watermark/watermarks-listing/watermarks-listing-screen.component.ts @@ -1,10 +1,10 @@ import { Component } from '@angular/core'; import { CircleButtonTypes, - ConfirmationDialogInput, getCurrentUser, getParam, IconButtonTypes, + IConfirmationDialogData, IqserPermissionsService, ListingComponent, listingProvidersFactory, @@ -54,9 +54,10 @@ export class WatermarksListingScreenComponent extends ListingComponent { await this._deleteWatermark(watermark); }); diff --git a/apps/red-ui/src/app/modules/admin/services/admin-dialog.service.ts b/apps/red-ui/src/app/modules/admin/services/admin-dialog.service.ts index 91c7017d3..13be04637 100644 --- a/apps/red-ui/src/app/modules/admin/services/admin-dialog.service.ts +++ b/apps/red-ui/src/app/modules/admin/services/admin-dialog.service.ts @@ -10,10 +10,10 @@ import { FileAttributesCsvImportDialogComponent } from '../dialogs/file-attribut import { AddEditDossierAttributeDialogComponent } from '../dialogs/add-edit-dossier-attribute-dialog/add-edit-dossier-attribute-dialog.component'; import { ConfirmationDialogComponent, - ConfirmationDialogInput, ConfirmOptions, DialogConfig, DialogService, + IConfirmationDialogData, largeDialogConfig, LoadingService, TitleColors, @@ -109,7 +109,7 @@ export class AdminDialogService extends DialogService { } deleteUsers(userIds: string[], cb?: () => Promise | void): void { - const data = new ConfirmationDialogInput({ + const data: IConfirmationDialogData = { title: _('confirm-delete-users.title'), question: _('confirm-delete-users.warning'), confirmationText: _('confirm-delete-users.delete'), @@ -121,7 +121,7 @@ export class AdminDialogService extends DialogService { { value: false, label: _('confirm-delete-users.impacted-documents') }, ], toastMessage: _('confirm-delete-users.toast-error'), - }); + }; this.openDialog('confirm', data, async result => { if (result === ConfirmOptions.CONFIRM) { @@ -149,7 +149,7 @@ export class AdminDialogService extends DialogService { const uniqueTemplates = Array.from(templateIds).map(id => templates.find(t => t.templateId === id)); this._loadingService.stop(); - const data = new ConfirmationDialogInput({ + const data: IConfirmationDialogData = { title: _('confirm-delete-attribute.title'), question: _('confirm-delete-attribute.warning'), confirmationText: _('confirm-delete-attribute.delete'), @@ -173,7 +173,7 @@ export class AdminDialogService extends DialogService { ], toastMessage: _('confirm-delete-attribute.toast-error'), translateParams: { reportsCount: uniqueTemplates.length, count: attributes.length, name: attributes[0].label }, - }); + }; if (templates.length) { data.checkboxes.push({ diff --git a/apps/red-ui/src/app/modules/dossier-overview/services/bulk-actions.service.ts b/apps/red-ui/src/app/modules/dossier-overview/services/bulk-actions.service.ts index 53903e51b..c092aad30 100644 --- a/apps/red-ui/src/app/modules/dossier-overview/services/bulk-actions.service.ts +++ b/apps/red-ui/src/app/modules/dossier-overview/services/bulk-actions.service.ts @@ -1,7 +1,7 @@ import { Injectable } from '@angular/core'; import { Dossier, File, WorkflowFileStatus, WorkflowFileStatuses } from '@red/domain'; import { DossiersDialogService } from '../../shared-dossiers/services/dossiers-dialog.service'; -import { ConfirmationDialogInput, LoadingService } from '@iqser/common-ui'; +import { IConfirmationDialogData, LoadingService } from '@iqser/common-ui'; import { ActiveDossiersService } from '@services/dossiers/active-dossiers.service'; import { FilesService } from '@services/files/files.service'; import { marker as _ } from '@biesbjerg/ngx-translate-extract-marker'; @@ -47,10 +47,10 @@ export class BulkActionsService { delete(files: File[]) { this._dialogService.openDialog( 'confirm', - new ConfirmationDialogInput({ + { title: _('confirmation-dialog.delete-file.title'), question: _('confirmation-dialog.delete-file.question'), - }), + } as IConfirmationDialogData, async () => { this._loadingService.start(); await firstValueFrom(this._fileManagementService.delete(files, files[0].dossierId)); @@ -97,7 +97,7 @@ export class BulkActionsService { if (foundAnalysisRequiredFile || foundUpdatedFile) { this._dialogService.openDialog( 'confirm', - new ConfirmationDialogInput({ + { title: foundAnalysisRequiredFile ? _('confirmation-dialog.approve-multiple-files-without-analysis.title') : _('confirmation-dialog.approve-multiple-files.title'), @@ -108,7 +108,7 @@ export class BulkActionsService { ? _('confirmation-dialog.approve-multiple-files-without-analysis.confirmationText') : null, denyText: foundAnalysisRequiredFile ? _('confirmation-dialog.approve-multiple-files-without-analysis.denyText') : null, - }), + } as IConfirmationDialogData, async () => { this._loadingService.start(); await this._filesService.setApproved(files); diff --git a/apps/red-ui/src/app/modules/file-preview/components/view-switch/view-switch.component.ts b/apps/red-ui/src/app/modules/file-preview/components/view-switch/view-switch.component.ts index 027169d21..ba927b32e 100644 --- a/apps/red-ui/src/app/modules/file-preview/components/view-switch/view-switch.component.ts +++ b/apps/red-ui/src/app/modules/file-preview/components/view-switch/view-switch.component.ts @@ -5,7 +5,7 @@ import { FilePreviewStateService } from '../../services/file-preview-state.servi import { combineLatest, Observable } from 'rxjs'; import { map } from 'rxjs/operators'; import { FileDataService } from '../../services/file-data.service'; -import { BASE_HREF, ConfirmationDialogInput, ConfirmOptions, Toaster } from '@iqser/common-ui'; +import { BASE_HREF, ConfirmOptions, IConfirmationDialogData, Toaster } from '@iqser/common-ui'; import { marker as _ } from '@biesbjerg/ngx-translate-extract-marker'; import { UserPreferenceService } from '@users/user-preference.service'; import { FilePreviewDialogService } from '../../services/file-preview-dialog.service'; @@ -66,7 +66,7 @@ export class ViewSwitchComponent { const question = displaySuggestionsInPreview ? _('unapproved-suggestions.confirmation-dialog.displayed-question') : _('unapproved-suggestions.confirmation-dialog.not-displayed-question'); - const data = new ConfirmationDialogInput({ + const data: IConfirmationDialogData = { title: _('unapproved-suggestions.confirmation-dialog.title'), question: question, confirmationText: _('unapproved-suggestions.confirmation-dialog.confirmation-text'), @@ -78,7 +78,7 @@ export class ViewSwitchComponent { }, ], checkboxesValidation: false, - }); + }; return this._dialogService.openDialog('confirm', data, result => { if (!result) { diff --git a/apps/red-ui/src/app/modules/file-preview/file-preview-screen.component.ts b/apps/red-ui/src/app/modules/file-preview/file-preview-screen.component.ts index 26becd816..432ecd4e1 100644 --- a/apps/red-ui/src/app/modules/file-preview/file-preview-screen.component.ts +++ b/apps/red-ui/src/app/modules/file-preview/file-preview-screen.component.ts @@ -15,13 +15,14 @@ import { AutoUnsubscribe, bool, CircleButtonTypes, - ConfirmationDialogInput, + ConfirmOption, ConfirmOptions, CustomError, Debounce, ErrorService, FilterService, HelpModeService, + IConfirmationDialogData, List, LoadingService, NestedFilter, @@ -644,11 +645,12 @@ export class FilePreviewScreenComponent filter(event => event.type === ViewerEvents.LOAD_ALL_ANNOTATIONS), switchMap(() => this._fileDataService.annotations), switchMap>(annotations => { + // TODO: this switchMap is ugly, to be refactored const showWarning = !this.userPreferenceService.getBool(PreferencesKeys.loadAllAnnotationsWarning); const annotationsExceedThreshold = annotations.length >= this.configService.values.ANNOTATIONS_THRESHOLD; if (annotationsExceedThreshold && showWarning) { - const data = new ConfirmationDialogInput({ + const data = { question: _('load-all-annotations-threshold-exceeded'), checkboxes: [ { @@ -660,17 +662,18 @@ export class FilePreviewScreenComponent translateParams: { threshold: this.configService.values.ANNOTATIONS_THRESHOLD, }, - }); + } as IConfirmationDialogData; const ref = this._dialogService.openDialog('confirm', data); return ref.afterClosed().pipe( - switchMap(async (result: ConfirmOptions) => { + switchMap(async (result: ConfirmOption) => { const doNotShowWarningAgain = result === ConfirmOptions.SECOND_CONFIRM; if (doNotShowWarningAgain) { await this.userPreferenceService.save(PreferencesKeys.loadAllAnnotationsWarning, 'true'); await this.userPreferenceService.reload(); } - const shouldLoad = [ConfirmOptions.CONFIRM, ConfirmOptions.SECOND_CONFIRM].includes(result); + const validOptions: number[] = [ConfirmOptions.CONFIRM, ConfirmOptions.SECOND_CONFIRM]; + const shouldLoad = validOptions.includes(result); return [shouldLoad, annotations] as const; }), ); diff --git a/apps/red-ui/src/app/modules/pdf-viewer/components/compare-file-input/compare-file-input.component.ts b/apps/red-ui/src/app/modules/pdf-viewer/components/compare-file-input/compare-file-input.component.ts index 1ec58135e..c11b5eed4 100644 --- a/apps/red-ui/src/app/modules/pdf-viewer/components/compare-file-input/compare-file-input.component.ts +++ b/apps/red-ui/src/app/modules/pdf-viewer/components/compare-file-input/compare-file-input.component.ts @@ -1,6 +1,6 @@ import { Component, ElementRef, ViewChild } from '@angular/core'; import { HeaderElements } from '../../../file-preview/utils/constants'; -import { ConfirmationDialogInput, ConfirmOptions, LoadingService } from '@iqser/common-ui'; +import { ConfirmOption, ConfirmOptions, IConfirmationDialogData, LoadingService } from '@iqser/common-ui'; import { marker as _ } from '@biesbjerg/ngx-translate-extract-marker'; import { FilesMapService } from '@services/files/files-map.service'; import { SharedDialogService } from '@shared/services/dialog.service'; @@ -81,18 +81,15 @@ export class CompareFileInputComponent { } #askForConfirmation(fileName: string, currentDocumentPageCount: number, compareDocumentPageCount: number) { - const ref: MatDialogRef = this._dialogService.openDialog( - 'confirm', - new ConfirmationDialogInput({ - title: _('confirmation-dialog.compare-file.title'), - question: _('confirmation-dialog.compare-file.question'), - translateParams: { - fileName, - currentDocumentPageCount, - compareDocumentPageCount, - }, - }), - ); + const ref: MatDialogRef = this._dialogService.openDialog('confirm', { + title: _('confirmation-dialog.compare-file.title'), + question: _('confirmation-dialog.compare-file.question'), + translateParams: { + fileName, + currentDocumentPageCount, + compareDocumentPageCount, + }, + } as IConfirmationDialogData); return firstValueFrom(ref.afterClosed()); } diff --git a/apps/red-ui/src/app/modules/pdf-viewer/services/page-rotation.service.ts b/apps/red-ui/src/app/modules/pdf-viewer/services/page-rotation.service.ts index ada27f747..e56d9afd1 100644 --- a/apps/red-ui/src/app/modules/pdf-viewer/services/page-rotation.service.ts +++ b/apps/red-ui/src/app/modules/pdf-viewer/services/page-rotation.service.ts @@ -5,9 +5,10 @@ import { FileManagementService } from '@services/files/file-management.service'; import { distinctUntilChanged, map, switchMap, tap } from 'rxjs/operators'; import { ConfirmationDialogComponent, - ConfirmationDialogInput, + ConfirmOption, ConfirmOptions, defaultDialogConfig, + IConfirmationDialogData, LoadingService, } from '@iqser/common-ui'; import { marker as _ } from '@biesbjerg/ngx-translate-extract-marker'; @@ -93,15 +94,15 @@ export class PageRotationService { #showConfirmationDialog() { const ref = this._injector.get(MatDialog).open(ConfirmationDialogComponent, { ...defaultDialogConfig, - data: new ConfirmationDialogInput({ + data: { title: _('page-rotation.confirmation-dialog.title'), question: _('page-rotation.confirmation-dialog.question'), confirmationText: _('page-rotation.apply'), discardChangesText: _('page-rotation.discard'), - }), + } as IConfirmationDialogData, }); - const closed$ = ref.afterClosed().pipe(map((option: ConfirmOptions) => option === ConfirmOptions.CONFIRM)); + const closed$ = ref.afterClosed().pipe(map((option: ConfirmOption) => option === ConfirmOptions.CONFIRM)); return closed$.pipe(tap(apply => (apply ? this.applyRotation() : this.discardRotation()))); } diff --git a/apps/red-ui/src/app/modules/shared-dossiers/components/file-actions/file-actions.component.ts b/apps/red-ui/src/app/modules/shared-dossiers/components/file-actions/file-actions.component.ts index 17ac0c541..76c53c310 100644 --- a/apps/red-ui/src/app/modules/shared-dossiers/components/file-actions/file-actions.component.ts +++ b/apps/red-ui/src/app/modules/shared-dossiers/components/file-actions/file-actions.component.ts @@ -5,8 +5,8 @@ import { DossiersDialogService } from '../../services/dossiers-dialog.service'; import { CircleButtonType, CircleButtonTypes, - ConfirmationDialogInput, getCurrentUser, + IConfirmationDialogData, IqserPermissionsService, IqserTooltipPosition, LoadingService, @@ -298,22 +298,18 @@ export class FileActionsComponent implements OnChanges { return; } - this._dialogService.openDialog( - 'confirm', - new ConfirmationDialogInput({ - title: this.file.analysisRequired - ? _('confirmation-dialog.approve-file-without-analysis.title') - : _('confirmation-dialog.approve-file.title'), - question: this.file.analysisRequired - ? _('confirmation-dialog.approve-file-without-analysis.question') - : _('confirmation-dialog.approve-file.question'), - confirmationText: this.file.analysisRequired - ? _('confirmation-dialog.approve-file-without-analysis.confirmationText') - : null, - denyText: this.file.analysisRequired ? _('confirmation-dialog.approve-file-without-analysis.denyText') : null, - }), - () => this.#setFileApproved(), - ); + const data: IConfirmationDialogData = { + title: this.file.analysisRequired + ? _('confirmation-dialog.approve-file-without-analysis.title') + : _('confirmation-dialog.approve-file.title'), + question: this.file.analysisRequired + ? _('confirmation-dialog.approve-file-without-analysis.question') + : _('confirmation-dialog.approve-file.question'), + confirmationText: this.file.analysisRequired ? _('confirmation-dialog.approve-file-without-analysis.confirmationText') : null, + denyText: this.file.analysisRequired ? _('confirmation-dialog.approve-file-without-analysis.denyText') : null, + }; + + this._dialogService.openDialog('confirm', data, () => this.#setFileApproved()); } forceReanalysisAction($event: LongPressEvent) { @@ -322,11 +318,11 @@ export class FileActionsComponent implements OnChanges { } #showOCRConfirmationDialog(): Observable { - const data = new ConfirmationDialogInput({ + const data: IConfirmationDialogData = { title: _('ocr.confirmation-dialog.title'), question: _('ocr.confirmation-dialog.question'), denyText: _('ocr.confirmation-dialog.cancel'), - }); + }; const ref = this._dialogService.openDialog('confirm', data); return ref.afterClosed(); @@ -339,10 +335,10 @@ export class FileActionsComponent implements OnChanges { private _openDeleteFileDialog() { this._dialogService.openDialog( 'confirm', - new ConfirmationDialogInput({ + { title: _('confirmation-dialog.delete-file.title'), question: _('confirmation-dialog.delete-file.question'), - }), + } as IConfirmationDialogData, async () => { this._loadingService.start(); try { diff --git a/apps/red-ui/src/app/modules/shared-dossiers/dialogs/edit-dossier-dialog/general-info/edit-dossier-general-info.component.ts b/apps/red-ui/src/app/modules/shared-dossiers/dialogs/edit-dossier-dialog/general-info/edit-dossier-general-info.component.ts index b37e1b80c..a3fb03445 100644 --- a/apps/red-ui/src/app/modules/shared-dossiers/dialogs/edit-dossier-dialog/general-info/edit-dossier-general-info.component.ts +++ b/apps/red-ui/src/app/modules/shared-dossiers/dialogs/edit-dossier-dialog/general-info/edit-dossier-general-info.component.ts @@ -7,7 +7,7 @@ import { PermissionsService } from '@services/permissions.service'; import { Router } from '@angular/router'; import { MatDialogRef } from '@angular/material/dialog'; import { EditDossierDialogComponent } from '../edit-dossier-dialog.component'; -import { ConfirmationDialogInput, ConfirmOptions, IconButtonTypes, LoadingService, TitleColors, Toaster } from '@iqser/common-ui'; +import { ConfirmOptions, IconButtonTypes, IConfirmationDialogData, LoadingService, TitleColors, Toaster } from '@iqser/common-ui'; import { marker as _ } from '@biesbjerg/ngx-translate-extract-marker'; import { DossierTemplatesService } from '@services/dossier-templates/dossier-templates.service'; import { DossierStatsService } from '@services/dossiers/dossier-stats.service'; @@ -127,7 +127,7 @@ export class EditDossierGeneralInfoComponent implements OnInit, EditDossierSecti } deleteDossier() { - const data = new ConfirmationDialogInput({ + const data: IConfirmationDialogData = { title: _('confirmation-dialog.delete-dossier.title'), titleColor: TitleColors.WARN, question: _('confirmation-dialog.delete-dossier.question'), @@ -138,7 +138,8 @@ export class EditDossierGeneralInfoComponent implements OnInit, EditDossierSecti dossierName: this.dossier.dossierName, dossiersCount: 1, }, - }); + }; + this._dialogService.openDialog('confirm', data, async () => { this._loadingService.start(); await firstValueFrom(this._trashService.deleteDossier(this.dossier)); @@ -154,7 +155,7 @@ export class EditDossierGeneralInfoComponent implements OnInit, EditDossierSecti } archiveDossier() { - const data = new ConfirmationDialogInput({ + const data: IConfirmationDialogData = { title: _('confirm-archive-dossier.title'), details: _('confirm-archive-dossier.details'), question: _('confirm-archive-dossier.warning'), @@ -164,7 +165,8 @@ export class EditDossierGeneralInfoComponent implements OnInit, EditDossierSecti translateParams: { ...this.dossier }, checkboxes: [{ value: false, label: _('confirm-archive-dossier.checkbox.documents') }], toastMessage: _('confirm-archive-dossier.toast-error'), - }); + }; + this._dialogService.openDialog('confirm', data, async result => { if (result === ConfirmOptions.CONFIRM) { this._loadingService.start(); diff --git a/apps/red-ui/src/app/modules/shared-dossiers/services/file-assign.service.ts b/apps/red-ui/src/app/modules/shared-dossiers/services/file-assign.service.ts index c08092eae..06a9f335b 100644 --- a/apps/red-ui/src/app/modules/shared-dossiers/services/file-assign.service.ts +++ b/apps/red-ui/src/app/modules/shared-dossiers/services/file-assign.service.ts @@ -3,7 +3,7 @@ import { Dossier, File, User, WorkflowFileStatus, WorkflowFileStatuses } from '@ import { DossiersDialogService } from './dossiers-dialog.service'; import { marker as _ } from '@biesbjerg/ngx-translate-extract-marker'; import { FilesService } from '@services/files/files.service'; -import { ConfirmationDialogInput, getCurrentUser, LoadingService, Toaster } from '@iqser/common-ui'; +import { getCurrentUser, IConfirmationDialogData, LoadingService, Toaster } from '@iqser/common-ui'; import { ActiveDossiersService } from '@services/dossiers/active-dossiers.service'; import { firstValueFrom } from 'rxjs'; @@ -33,13 +33,13 @@ export class FileAssignService { }; if (atLeastOneAssignee(files)) { - const dialogInput = new ConfirmationDialogInput({ + const dialogInput: IConfirmationDialogData = { title: _('confirmation-dialog.assign-file-to-me.title'), question: files.length === 1 ? _('confirmation-dialog.assign-file-to-me.question.single') : _('confirmation-dialog.assign-file-to-me.question.multiple'), - }); + }; const ref = this._dialogService.openDialog('confirm', dialogInput, assignReq); return firstValueFrom(ref.afterClosed()); } diff --git a/apps/red-ui/src/app/modules/trash/services/trash-dialog.service.ts b/apps/red-ui/src/app/modules/trash/services/trash-dialog.service.ts index f325f5636..41daa010a 100644 --- a/apps/red-ui/src/app/modules/trash/services/trash-dialog.service.ts +++ b/apps/red-ui/src/app/modules/trash/services/trash-dialog.service.ts @@ -2,9 +2,9 @@ import { Injectable } from '@angular/core'; import { MatDialog } from '@angular/material/dialog'; import { ConfirmationDialogComponent, - ConfirmationDialogInput, DialogConfig, DialogService, + IConfirmationDialogData, LoadingService, TitleColors, } from '@iqser/common-ui'; @@ -32,7 +32,7 @@ export class TrashDialogService extends DialogService { } confirmHardDelete(items: TrashItem[]): void { - const data = new ConfirmationDialogInput({ + const data: IConfirmationDialogData = { title: _('confirmation-dialog.delete-items.title'), titleColor: TitleColors.WARN, question: _('confirmation-dialog.delete-items.question'), @@ -40,7 +40,7 @@ export class TrashDialogService extends DialogService { name: items[0].name, itemsCount: items.length, }, - }); + }; this.openDialog('confirm', data, async () => { this._loadingService.start(); diff --git a/apps/red-ui/src/app/services/dossier-templates/dossier-templates.service.ts b/apps/red-ui/src/app/services/dossier-templates/dossier-templates.service.ts index d30033833..c63a833d4 100644 --- a/apps/red-ui/src/app/services/dossier-templates/dossier-templates.service.ts +++ b/apps/red-ui/src/app/services/dossier-templates/dossier-templates.service.ts @@ -45,8 +45,11 @@ export class DossierTemplatesService extends EntitiesService templates)); } diff --git a/libs/common-ui b/libs/common-ui index cb8a0ddcf..a1d11cd9e 160000 --- a/libs/common-ui +++ b/libs/common-ui @@ -1 +1 @@ -Subproject commit cb8a0ddcf9a3858ec698e52488a51fabaff55849 +Subproject commit a1d11cd9eb91cebe729a70cf57a778b385edcca0 From 3dee599e59af1ea1df30598d278d532d5dfcbc3a Mon Sep 17 00:00:00 2001 From: Atlassian Bamboo Date: Sun, 19 Mar 2023 23:21:32 +0100 Subject: [PATCH 62/99] chore(release) --- package.json | 2 +- paligo-theme.tar.gz | Bin 3444 -> 3441 bytes 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 328290717..b38e5ff63 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "redaction", - "version": "4.13.0", + "version": "4.14.0", "private": true, "license": "MIT", "scripts": { diff --git a/paligo-theme.tar.gz b/paligo-theme.tar.gz index 9ec500355028fc81e839d6f0f8c9c763b111beb0..32039f334a21fda23e427be7e6f2f633b43e7867 100644 GIT binary patch delta 3415 zcmV-d4XE<;8u1!`ABzY80000000ZqC+j8T!HP8ME)H~_esi@^ulC_iVHq)ei>2#W; z?Mq)k5)=_rBtwGh^>#ed-{@0c@)>#CKk1kB00b$31SNXC$#z;{#uSOm!MWjF0C@Sl z#2MWc7E8&VJpbgUC^nRJVDn#R@Y|J79N)KtwH?^J-hroo^9c%m5^M&gsTr;i`Z=ch zZ!Ak){_>+{_Zg`_lr}tG{+_!I&hq~`%2D}OB*qbwZOf>x-){~s;FUimf6rUFZZCh2 z_j6W(59{Clu%w#H|GE5MMJcXo!qDZPzx~SET)wz?MfYVmE@izUYoXI4sZOe*yE3xwWU zG>^%fEplGKS4t?%zeRpvmv3HNJPbx`w;@T2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fRk?s9DjYUarLZQkLG2=YO81%4-KxgKFp)59`cnAOS)>7Qn5E6J^8kRu{;$K zzkZMN7@|k``EG#lGAnk4p*9Usa+?YaYP{Oy?G}R0@RowEC}dUn=!|81oRk4v16b|Y z(2x$Q-kxS^O5kzG9t(K#=)1-kMCGL)r+?}LO$+cwY zbOMp%hoN0SX9R*He)12w$B?cM2Bep!WyL_tYWXz|Baj!o9@|0ac$kqy&8em)HQBN0 zT|HvP^k?IM{JsLiiU=)t*?pPz=cGah0=W|Jmw;5>z8FqY)y_WvFM3-U7H_ON#c^?W zIPN=Gcy1#m4n_k7SH6B<3O}UwgMyQWi`^44F?m?RII7Y{4VVT!c?5T4%3}^HropP* z${~QADwFXE8h;IOY{i9LEFoTpOz1Tw zcjEq+I$zc*A3H46I!BaZ_lO^07SX@^&m!ov$7R6k7^YHD|3Lu!AY*x1vz zXh3fjXMZXAAK@%|7TBL5OWgFhQVBq*Cy{TTdc@nG66y8_mrUx7DwO(`nl$#t66r{! z8=b$X?64~}nrHP5rKe(SBK?>Z-4J z2oSsY#5iLMJa{JWBov9o?n`nt4q5v&R@`_i!hi38$mz=q>Y&bAA3N9S44V>+Kw`=F z8fOZ>LL@4XzP*6BV}VuyFF!i|)o3x0T&XeNV3N(st)3F`%fvJqpeLMF&UIkO0x*%_ zm~qwtZE~|A^jKvG1_)ODLr{U3qnc5df(Zs&Gx=XP%Ac5df(Zs&Gx=XP%A_P^Br13D4#ngCD$ E016m`8~^|S From 52e5d9cc89ebceb81e0213aaf75abc01ef412fd7 Mon Sep 17 00:00:00 2001 From: Dan Percic Date: Mon, 20 Mar 2023 15:30:24 +0200 Subject: [PATCH 63/99] RED-6443 & RED-6445: fix stop propagation --- .../file-preview/components/comments/comments.component.html | 1 - libs/common-ui | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/red-ui/src/app/modules/file-preview/components/comments/comments.component.html b/apps/red-ui/src/app/modules/file-preview/components/comments/comments.component.html index 36f9b2e3e..2bec686eb 100644 --- a/apps/red-ui/src/app/modules/file-preview/components/comments/comments.component.html +++ b/apps/red-ui/src/app/modules/file-preview/components/comments/comments.component.html @@ -14,7 +14,6 @@ [size]="20" class="pointer" icon="iqser:trash" - stopPropagation >

diff --git a/libs/common-ui b/libs/common-ui index a1d11cd9e..a60a9d828 160000 --- a/libs/common-ui +++ b/libs/common-ui @@ -1 +1 @@ -Subproject commit a1d11cd9eb91cebe729a70cf57a778b385edcca0 +Subproject commit a60a9d828e9624b615f2298a52b134f9a1fa27f4 From cad7d85a3a79855ae90b8f8a93e29207725f06c0 Mon Sep 17 00:00:00 2001 From: Atlassian Bamboo Date: Mon, 20 Mar 2023 14:33:21 +0100 Subject: [PATCH 64/99] chore(release) --- package.json | 2 +- paligo-theme.tar.gz | Bin 3441 -> 3446 bytes 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index b38e5ff63..0c13d1d7b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "redaction", - "version": "4.14.0", + "version": "4.15.0", "private": true, "license": "MIT", "scripts": { diff --git a/paligo-theme.tar.gz b/paligo-theme.tar.gz index 32039f334a21fda23e427be7e6f2f633b43e7867..3569f9dc4b63666604fcd09572ad8416bd7c365f 100644 GIT binary patch delta 3420 zcmV-i4Wsh$8ul80ABzY80000000ZqC+mhS1)zAAC=z7xerlOWtNh?oWH&ds5>2#W; z?Mq)k5)_f8NQMNxUUxjx-{@0c@)>#apY%(50D=@if)dy3#GO`{S&1TmgLA{V0lT~| zaYlEA#Zs~-*H3uKNT9KM6L2*3=AF2>l#O z{WrFyE`Rx>X7?GXKbAH;T>hTttj_ZPIoeVAS0u&}lYPsmu0L!IF5s0vC4bLb!Dese zzp`D|2l=l8FL;9Nk4vh#{h!PKWt8HoCJbHv`P;9o&E@lpmvmni6+=yxJ-bX9E9>p` zbyDQ4Uhay2VwVwI(s~&c`)g1L_ty#D)9n6>Kb9o_)i*e=x0K;*akop^OMBtj_H%pT zi_buO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2-Qy$hML-4*pS-aCpPxsr-t^)g0WQm&|*D3)h^(6A`TaS4A zDUohJxMWgqv_q*csYzpR+#(%`bffbZl^u4ahFq!OR!Y=bwb3V&PYV`*s2@5Q?T;mP zUG*6c0b&=Q7)NY@2Uqe=LXlYPz9iSa6v#bDhqxDZvON zmVB*ortm97Vh7T<7Z7(W&??~DkB)ymnhYdYYRos7WV3Rsr$qcRF^vZ331^ja9T>6z zOe8pFoOM8(9IV;FZ5P>IqJ0@&Lec!7ayRDVUjcj2@iE=RQrl-;w>kWw z`K-*3T8E6b3??J2hitrF(TVVIYB^r{M=n=L;`{A({{JY5|3Av*0@d(i)uf`r%6|O) zTtQ*#EZUc4|CYLaRrkh2GFjEVrG8)4y`@24)xD*wzN&wFE4$xnIdn3Q{4b%0u{sPPcK@Al5@Mi1RJ3Ub(VGj=_f&|AGCtY0 zj&ykxH$E=!kPye==P{2ahM3)A*El;Dp9GK;Q8RVj=41ay;JKX3xtz Date: Mon, 20 Mar 2023 15:57:31 +0200 Subject: [PATCH 65/99] RED-6154: add some ids --- .../components/file-actions/file-actions.component.html | 1 + .../expandable-file-actions.component.html | 1 + 2 files changed, 2 insertions(+) diff --git a/apps/red-ui/src/app/modules/shared-dossiers/components/file-actions/file-actions.component.html b/apps/red-ui/src/app/modules/shared-dossiers/components/file-actions/file-actions.component.html index 0fffc25b6..a31bbe1b3 100644 --- a/apps/red-ui/src/app/modules/shared-dossiers/components/file-actions/file-actions.component.html +++ b/apps/red-ui/src/app/modules/shared-dossiers/components/file-actions/file-actions.component.html @@ -20,6 +20,7 @@ From 0584b1b4c9a0b79e7fddbc7c4a57df3b698c16af Mon Sep 17 00:00:00 2001 From: Atlassian Bamboo Date: Mon, 20 Mar 2023 15:00:04 +0100 Subject: [PATCH 66/99] chore(release) --- package.json | 2 +- paligo-theme.tar.gz | Bin 3446 -> 3444 bytes 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 0c13d1d7b..5a54e1d19 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "redaction", - "version": "4.15.0", + "version": "4.16.0", "private": true, "license": "MIT", "scripts": { diff --git a/paligo-theme.tar.gz b/paligo-theme.tar.gz index 3569f9dc4b63666604fcd09572ad8416bd7c365f..00fa87dbef19e76ca04f7377c2231063aded1686 100644 GIT binary patch delta 3357 zcmV+&4dU|l8uS{Fcz;)(^9xF^-t*TSj&LVQX*!ulywl!kS-sp9#V#Ybr1df? z_Sc{g?ynQPr`i1%e=JG^Q3 zSbvNBz%JiBzkhf)n6cf4Bq=H)W`;Pr-Bm@C$5vEiMYTmw-3@4=GoFW1M@-?&uxk32 zY|+Z+3&>Y@a#>Chyvt}#tPYjUx*fR3)sE&CD@vHW(cXmxW5ph@HX@C>pEbc%lnO-l z_>FZ(W0nFe+g5>X5pGz)f0so~87<&VMKa9jYjPU)vVZ-y5=ydItRz=)Z2L0~G%PC4 zN92@mP+ep+Mo*(CBC&Vqv??6arUuGeybOF!lH`H7Y`35Y5lM@z6MRwPh_d@FvX|=z z0$V(8<)OA{df`aD&~(7r%n|IE`6Z5Hn(qLB3;cH0v!H}5ZzuQi$03NSVT9vVwHOIK zJ%H!pbblu0#VXj|C9X)$o*U_pnyTin%7W&MR0dtJxi*MDdmahfw0JG~ZBU>%_TxZ6 zx_G%KF~z9JvwKuW6(Kpod5oSZTV&1m+m(Q2-q)H0eYfRqTFngE4x&tHTUyJHC$%?zdTz7KrCg|t>1(@B`kej`Q#UY;2L3mRj9Q&pR@g>O{_J5XC zdy>EZk;@EOWmP0J8vyg?&;r14lvXrK8Qqys3MQc>UJvD)CQ6egzZG$aK7Tchh1<`6 z6_OlQra9t~TSs6Kk}ApG{}81F-q+}BQMvd7&hd^^^DT$X$TC=m^XyAf zkx8OA)1vfyV81QungY6j3nM*T*ne(!IAbG_HprV{Bd-N)% ztf+>%YENoQ5RI^eL?KEuO5XoVA_^O#;lWb|(ee;kXL=tv2Sxl!O1ysmBS@;|Iy8hc zy(c`}!}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nLT^#vyB;#)=znMfe>MIemFS9n@LtW9K@ZVN-$;NG$nY<4oaKh(ra_w-*q1EYK?8 zddDOtM+I)l(vVnV3cc^n|m@xeg3j045R~GtN4oO%B%V;D5G@Y|%ap zFQI6DP`MlP>92sj)A2Fg#8UfbUAH<4P&nBWASa`?6Oeo7b_)Juu0YLT$D{5!sqkl9 zW>SYw-dNHH&AXN~m^1V4(Ey!CUoaZNdrWYyYfpDoXh7%j`#=w1q+=53Nk;b8x2%eY z#Gu_G`&-tGlqdeLU?MbhOn(8%n0Gq+`x3|Z4XOLw!kB#ZBVHgDk6fWRB)5fEL5A@o z4t8m>jQ@J0nb0?UpUZq!=0~kVMq37p5!ORCUa#mxcsR8j@BAZ|DYh@+f7LyuL4W_MdrDXRtL~}n zzN?W_n9Dth`^T#yb8s_@#}h+8tY$n3>_bY$BY6&;%me>R=-pTyh7h~|PB;lM&>$+> zG=%8Qh3I=KL`4}N?OI2=Jc=71mUl>q Date: Mon, 20 Mar 2023 16:53:41 +0200 Subject: [PATCH 67/99] RED-6154: update ids --- .../dossier-template-actions.component.html | 8 ++-- .../file-actions/file-actions.component.ts | 37 +++++++++---------- 2 files changed, 22 insertions(+), 23 deletions(-) diff --git a/apps/red-ui/src/app/modules/admin/shared/components/dossier-template-actions/dossier-template-actions.component.html b/apps/red-ui/src/app/modules/admin/shared/components/dossier-template-actions/dossier-template-actions.component.html index 3e96c6552..4b8099c03 100644 --- a/apps/red-ui/src/app/modules/admin/shared/components/dossier-template-actions/dossier-template-actions.component.html +++ b/apps/red-ui/src/app/modules/admin/shared/components/dossier-template-actions/dossier-template-actions.component.html @@ -1,8 +1,8 @@ -
+
this._openDeleteFileDialog(), tooltip: _('dossier-overview.delete.action'), @@ -131,7 +130,7 @@ export class FileActionsComponent implements OnChanges { show: this.showDelete, }, { - id: 'assign-btn-' + fileId, + id: 'assign-btn', type: ActionTypes.circleBtn, action: () => this._assign(), tooltip: this.assignTooltip, @@ -139,7 +138,7 @@ export class FileActionsComponent implements OnChanges { show: this.showAssign, }, { - id: 'assign-to-me-btn-' + fileId, + id: 'assign-to-me-btn', type: ActionTypes.circleBtn, action: () => this._assignToMe(), tooltip: _('dossier-overview.assign-me'), @@ -147,7 +146,7 @@ export class FileActionsComponent implements OnChanges { show: this.showAssignToSelf, }, { - id: 'open-import-redactions-dialog-btn-' + fileId, + id: 'open-import-redactions-dialog-btn', type: ActionTypes.circleBtn, action: () => this._openImportRedactionsDialog(), tooltip: _('dossier-overview.import-redactions'), @@ -155,7 +154,7 @@ export class FileActionsComponent implements OnChanges { show: this.showImportRedactions && !this._iqserPermissionsService.has(ROLES.getRss), }, { - id: 'download-file-btn-' + fileId, + id: 'download-file-btn', type: ActionTypes.downloadBtn, files: [this.file], dossier: this.dossier, @@ -164,7 +163,7 @@ export class FileActionsComponent implements OnChanges { disabled: this.file.processingStatus === ProcessingFileStatuses.ERROR, }, { - id: 'toggle-document-info-btn-' + fileId, + id: 'toggle-document-info-btn', type: ActionTypes.circleBtn, action: () => this._documentInfoService.toggle(), tooltip: _('file-preview.document-info'), @@ -173,7 +172,7 @@ export class FileActionsComponent implements OnChanges { show: !!this._documentInfoService, }, { - id: 'toggle-exclude-pages-btn-' + fileId, + id: 'toggle-exclude-pages-btn', type: ActionTypes.circleBtn, action: () => this._excludedPagesService.toggle(), tooltip: _('file-preview.exclude-pages'), @@ -186,7 +185,7 @@ export class FileActionsComponent implements OnChanges { !this._iqserPermissionsService.has(ROLES.getRss), }, { - id: 'set-file-to-new-btn-' + fileId, + id: 'set-file-to-new-btn', type: ActionTypes.circleBtn, action: () => this.#setToNew(), tooltip: _('dossier-overview.back-to-new'), @@ -194,7 +193,7 @@ export class FileActionsComponent implements OnChanges { show: this.showSetToNew, }, { - id: 'set-file-under-approval-btn-' + fileId, + id: 'set-file-under-approval-btn', type: ActionTypes.circleBtn, action: () => this._setFileUnderApproval(), tooltip: _('dossier-overview.under-approval'), @@ -202,7 +201,7 @@ export class FileActionsComponent implements OnChanges { show: this.showUnderApproval, }, { - id: 'set-file-under-review-btn-' + fileId, + id: 'set-file-under-review-btn', type: ActionTypes.circleBtn, action: () => this._setFileUnderReview(), tooltip: _('dossier-overview.under-review'), @@ -210,7 +209,7 @@ export class FileActionsComponent implements OnChanges { show: this.showUnderReview, }, { - id: 'set-file-approved-btn-' + fileId, + id: 'set-file-approved-btn', type: ActionTypes.circleBtn, action: () => this.setFileApproved(), tooltip: this.file.canBeApproved ? _('dossier-overview.approve') : _('dossier-overview.approve-disabled'), @@ -219,7 +218,7 @@ export class FileActionsComponent implements OnChanges { show: this.showApprove, }, { - id: 'toggle-automatic-analysis-btn-' + fileId, + id: 'toggle-automatic-analysis-btn', type: ActionTypes.circleBtn, action: () => this._toggleAutomaticAnalysis(), tooltip: _('dossier-overview.stop-auto-analysis'), @@ -227,7 +226,7 @@ export class FileActionsComponent implements OnChanges { show: this.canDisableAutoAnalysis, }, { - id: 'reanalyse-file-preview-btn-' + fileId, + id: 'reanalyse-file-preview-btn', type: ActionTypes.circleBtn, action: () => this._reanalyseFile(), tooltip: _('file-preview.reanalyse-notification'), @@ -237,7 +236,7 @@ export class FileActionsComponent implements OnChanges { disabled: this.file.isProcessing, }, { - id: 'toggle-automatic-analysis-btn-' + fileId, + id: 'toggle-automatic-analysis-btn', type: ActionTypes.circleBtn, action: () => this._toggleAutomaticAnalysis(), tooltip: _('dossier-overview.start-auto-analysis'), @@ -246,7 +245,7 @@ export class FileActionsComponent implements OnChanges { show: this.canEnableAutoAnalysis, }, { - id: 'set-under-approval-btn-' + fileId, + id: 'set-under-approval-btn', type: ActionTypes.circleBtn, action: () => this._setFileUnderApproval(), tooltip: _('dossier-overview.under-approval'), @@ -254,7 +253,7 @@ export class FileActionsComponent implements OnChanges { show: this.showUndoApproval, }, { - id: 'ocr-file-btn-' + fileId, + id: 'ocr-file-btn', type: ActionTypes.circleBtn, action: () => this._ocrFile(), tooltip: _('dossier-overview.ocr-file'), @@ -262,7 +261,7 @@ export class FileActionsComponent implements OnChanges { show: this.showOCR, }, { - id: 'reanalyse-file-btn-' + fileId, + id: 'reanalyse-file-btn', type: ActionTypes.circleBtn, action: () => this._reanalyseFile(), tooltip: _('dossier-overview.reanalyse.action'), @@ -270,7 +269,7 @@ export class FileActionsComponent implements OnChanges { show: this.showReanalyseDossierOverview, }, { - id: 'toggle-analysis-btn-' + fileId, + id: 'toggle-analysis-btn', type: ActionTypes.toggle, action: () => this._toggleAnalysis(), disabled: !this.canToggleAnalysis, From ba984838f8f9b25119eeb8341e436ee7e86fda8a Mon Sep 17 00:00:00 2001 From: Atlassian Bamboo Date: Mon, 20 Mar 2023 15:56:10 +0100 Subject: [PATCH 68/99] chore(release) --- package.json | 2 +- paligo-theme.tar.gz | Bin 3444 -> 3444 bytes 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 5a54e1d19..910dd2f5a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "redaction", - "version": "4.16.0", + "version": "4.17.0", "private": true, "license": "MIT", "scripts": { diff --git a/paligo-theme.tar.gz b/paligo-theme.tar.gz index 00fa87dbef19e76ca04f7377c2231063aded1686..83c5096d3c424fe53003da6ee9d52afdd0b5c6d3 100644 GIT binary patch delta 3162 zcmV-g45jn*8uS{FcvRO;uwFm09XoLRCn)$yuo<+bX1GG==UD2$u`PA^%O5qn&q)2T zwBh0M_dLfw%m3$SN9A9U7)MO@Eu*^rur;`VSN@dzJ#Xc@z5Lf}59GfJpc|3R#D9(F z`p$SBN*ytUGsCLsTe3wfpD!R^-N|J+Mer`8Ik7raHtTla9#=b>TdXKy@VDP)S5Ybu+2c3X9gSHEuxwiewneyM1^-B19xD zvQF?ti6hGHx5!?u9|&ymxRr<6qUnVr^+MADXER5zW9FAQj%mIF050&`S$# z%O8gzs)iAcSJh%9^z;Cpi_@8u7pq`=0tW-n=;OAYBv zpODaZ;Mi$$-;GmoFaS~cAz#+|-s4zF(`>YV#3eqtQ3Tl8N)4+iD`=MCVWGUp$*f)3 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-(scOMlXiF|DLlLYLiN*xp{9R!7dE8!_lb=?eTxS4 zR&kb+{}IljXMz10vcye~E0qA0dJ_5esYks1DUoh}aLJ_Js6wf4sYzpRERl{xy3zTI z$_~3yL#|YCDHqhXApQ zPmD9Rz=LPpbqM+^|5oE&af%L2qcz#uW_dE zD@39K>Dvp4I~Hga@baVMUyT+6$(0)O4JO&F-0CS2zf4S{0eZq&G+s#VyXSJu3LW{1t^^C36PUf+X=|Mb2|n9 zF;}2wu;WqpoK*NTE;FgaCvPn2gXUdJ8qAq__h^95qc0c@;XNie*R`j+Dm0+;_swYuL}Jixk^L=eM#>ZaS1=J8I;MbR%sZX^eTn1yhSYs-VNAaI5ibyn zN3KvDlG}g6t02Sp5eK_8S;l|8(M;$YzRzVoEAyk)A)_sW#R%&m8?RS%B0QX0j(7f% z%N3INzTD3L9|iIMN4Z>}8osQWR8&~mPhZa!6sFFieOUHSsoTHmo_I(mUv*EZ-@odf z(x89UJ*BJuRrgeO-_^(|%;lcM{o_@UIk=g{8r z4nv6De Date: Mon, 20 Mar 2023 17:59:46 +0200 Subject: [PATCH 69/99] RED-3800: move file attributes stuff to its own module --- .../app/modules/admin/admin-routing.module.ts | 6 +- .../src/app/modules/admin/admin.module.ts | 10 +-- ...ase-dossier-template-screen.component.html | 1 + ...ssier-states-listing-screen.component.html | 65 +++++----------- ...ssier-states-listing-screen.component.scss | 4 + .../active-fields-listing.component.html | 0 .../active-fields-listing.component.scss | 0 .../active-fields-listing.component.ts | 0 ...-edit-file-attribute-dialog.component.html | 0 ...-edit-file-attribute-dialog.component.scss | 0 ...dd-edit-file-attribute-dialog.component.ts | 2 +- ...butes-configurations-dialog.component.html | 0 ...ributes-configurations-dialog.component.ts | 15 ++-- ...ttributes-csv-import-dialog.component.html | 0 ...ttributes-csv-import-dialog.component.scss | 0 ...-attributes-csv-import-dialog.component.ts | 2 +- ...e-attributes-listing-screen.component.html | 51 ++++--------- ...ile-attributes-listing-screen.component.ts | 76 +++++++++++++------ .../file-attributes-listing.module.ts | 72 ++++++++++++++++++ .../admin/services/admin-dialog.service.ts | 18 ----- 20 files changed, 178 insertions(+), 144 deletions(-) rename apps/red-ui/src/app/modules/admin/{dialogs/file-attributes-csv-import-dialog => screens/file-attributes-listing}/active-fields-listing/active-fields-listing.component.html (100%) rename apps/red-ui/src/app/modules/admin/{dialogs/file-attributes-csv-import-dialog => screens/file-attributes-listing}/active-fields-listing/active-fields-listing.component.scss (100%) rename apps/red-ui/src/app/modules/admin/{dialogs/file-attributes-csv-import-dialog => screens/file-attributes-listing}/active-fields-listing/active-fields-listing.component.ts (100%) rename apps/red-ui/src/app/modules/admin/{dialogs => screens/file-attributes-listing}/add-edit-file-attribute-dialog/add-edit-file-attribute-dialog.component.html (100%) rename apps/red-ui/src/app/modules/admin/{dialogs => screens/file-attributes-listing}/add-edit-file-attribute-dialog/add-edit-file-attribute-dialog.component.scss (100%) rename apps/red-ui/src/app/modules/admin/{dialogs => screens/file-attributes-listing}/add-edit-file-attribute-dialog/add-edit-file-attribute-dialog.component.ts (98%) rename apps/red-ui/src/app/modules/admin/{dialogs => screens/file-attributes-listing}/file-attributes-configurations-dialog/file-attributes-configurations-dialog.component.html (100%) rename apps/red-ui/src/app/modules/admin/{dialogs => screens/file-attributes-listing}/file-attributes-configurations-dialog/file-attributes-configurations-dialog.component.ts (81%) rename apps/red-ui/src/app/modules/admin/{dialogs => screens/file-attributes-listing}/file-attributes-csv-import-dialog/file-attributes-csv-import-dialog.component.html (100%) rename apps/red-ui/src/app/modules/admin/{dialogs => screens/file-attributes-listing}/file-attributes-csv-import-dialog/file-attributes-csv-import-dialog.component.scss (100%) rename apps/red-ui/src/app/modules/admin/{dialogs => screens/file-attributes-listing}/file-attributes-csv-import-dialog/file-attributes-csv-import-dialog.component.ts (99%) create mode 100644 apps/red-ui/src/app/modules/admin/screens/file-attributes-listing/file-attributes-listing.module.ts diff --git a/apps/red-ui/src/app/modules/admin/admin-routing.module.ts b/apps/red-ui/src/app/modules/admin/admin-routing.module.ts index 71a10eb67..68703dac6 100644 --- a/apps/red-ui/src/app/modules/admin/admin-routing.module.ts +++ b/apps/red-ui/src/app/modules/admin/admin-routing.module.ts @@ -3,7 +3,6 @@ import { CompositeRouteGuard, IqserAuthGuard, IqserPermissionsGuard, IqserRoutes import { RedRoleGuard } from '@users/red-role.guard'; import { EntitiesListingScreenComponent } from './screens/entities-listing/entities-listing-screen.component'; import { PendingChangesGuard } from '@guards/can-deactivate.guard'; -import { FileAttributesListingScreenComponent } from './screens/file-attributes-listing/file-attributes-listing-screen.component'; import { DefaultColorsScreenComponent } from './screens/default-colors/default-colors-screen.component'; import { UserListingScreenComponent } from './screens/user-listing/user-listing-screen.component'; import { DigitalSignatureScreenComponent } from './screens/digital-signature/digital-signature-screen.component'; @@ -64,7 +63,9 @@ const dossierTemplateIdRoutes: IqserRoutes = [ }, { path: 'file-attributes', - component: FileAttributesListingScreenComponent, + component: BaseDossierTemplateScreenComponent, + loadChildren: () => + import('./screens/file-attributes-listing/file-attributes-listing.module').then(m => m.FileAttributesListingModule), canActivate: [CompositeRouteGuard], data: { routeGuards: [IqserAuthGuard, RedRoleGuard], @@ -97,6 +98,7 @@ const dossierTemplateIdRoutes: IqserRoutes = [ }, { path: 'dossier-states', + component: BaseDossierTemplateScreenComponent, loadChildren: () => import('./screens/dossier-states-listing/dossier-states-listing.module').then(m => m.DossierStatesListingModule), canActivate: [CompositeRouteGuard], diff --git a/apps/red-ui/src/app/modules/admin/admin.module.ts b/apps/red-ui/src/app/modules/admin/admin.module.ts index 215a8529b..edecbf01c 100644 --- a/apps/red-ui/src/app/modules/admin/admin.module.ts +++ b/apps/red-ui/src/app/modules/admin/admin.module.ts @@ -6,10 +6,9 @@ import { AuditScreenComponent } from './screens/audit/audit-screen.component'; import { DefaultColorsScreenComponent } from './screens/default-colors/default-colors-screen.component'; import { EntitiesListingScreenComponent } from './screens/entities-listing/entities-listing-screen.component'; import { DigitalSignatureScreenComponent } from './screens/digital-signature/digital-signature-screen.component'; -import { FileAttributesListingScreenComponent } from './screens/file-attributes-listing/file-attributes-listing-screen.component'; import { UserListingScreenComponent } from './screens/user-listing/user-listing-screen.component'; import { DossierTemplateBreadcrumbsComponent } from './shared/components/dossier-template-breadcrumbs/dossier-template-breadcrumbs.component'; -import { AddEditFileAttributeDialogComponent } from './dialogs/add-edit-file-attribute-dialog/add-edit-file-attribute-dialog.component'; +import { AddEditFileAttributeDialogComponent } from './screens/file-attributes-listing/add-edit-file-attribute-dialog/add-edit-file-attribute-dialog.component'; import { AddEditCloneDossierTemplateDialogComponent } from './dialogs/add-edit-dossier-template-dialog/add-edit-clone-dossier-template-dialog.component'; import { AddEntityDialogComponent } from './dialogs/add-entity-dialog/add-entity-dialog.component'; import { EditColorDialogComponent } from './dialogs/edit-color-dialog/edit-color-dialog.component'; @@ -18,8 +17,6 @@ import { GeneralConfigScreenComponent } from './screens/general-config/general-c import { SmtpAuthDialogComponent } from './dialogs/smtp-auth-dialog/smtp-auth-dialog.component'; import { AddEditUserDialogComponent } from './dialogs/add-edit-user-dialog/add-edit-user-dialog.component'; import { UsersStatsComponent } from './components/users-stats/users-stats.component'; -import { FileAttributesCsvImportDialogComponent } from './dialogs/file-attributes-csv-import-dialog/file-attributes-csv-import-dialog.component'; -import { ActiveFieldsListingComponent } from './dialogs/file-attributes-csv-import-dialog/active-fields-listing/active-fields-listing.component'; import { ResetPasswordComponent } from './dialogs/add-edit-user-dialog/reset-password/reset-password.component'; import { UserDetailsComponent } from './dialogs/add-edit-user-dialog/user-details/user-details.component'; import { AddEditDossierAttributeDialogComponent } from './dialogs/add-edit-dossier-attribute-dialog/add-edit-dossier-attribute-dialog.component'; @@ -32,7 +29,6 @@ import { SmtpConfigService } from './services/smtp-config.service'; import { UploadDictionaryDialogComponent } from './dialogs/upload-dictionary-dialog/upload-dictionary-dialog.component'; import { GeneralConfigFormComponent } from './screens/general-config/general-config-form/general-config-form.component'; import { SmtpFormComponent } from './screens/general-config/smtp-form/smtp-form.component'; -import { FileAttributesConfigurationsDialogComponent } from './dialogs/file-attributes-configurations-dialog/file-attributes-configurations-dialog.component'; import { BaseDossierTemplateScreenComponent } from './base-dossier-templates-screen/base-dossier-template-screen.component'; import { A11yModule } from '@angular/cdk/a11y'; import { BaseEntityScreenComponent } from './base-entity-screen/base-entity-screen.component'; @@ -70,8 +66,6 @@ const dialogs = [ EditColorDialogComponent, SmtpAuthDialogComponent, AddEditUserDialogComponent, - FileAttributesConfigurationsDialogComponent, - FileAttributesCsvImportDialogComponent, AddEditDossierAttributeDialogComponent, UploadDictionaryDialogComponent, ConfigureCertificateDialogComponent, @@ -83,7 +77,6 @@ const screens = [ DefaultColorsScreenComponent, EntitiesListingScreenComponent, DigitalSignatureScreenComponent, - FileAttributesListingScreenComponent, UserListingScreenComponent, GeneralConfigScreenComponent, DossierAttributesListingScreenComponent, @@ -91,7 +84,6 @@ const screens = [ const components = [ UsersStatsComponent, - ActiveFieldsListingComponent, ResetPasswordComponent, UserDetailsComponent, BaseAdminScreenComponent, diff --git a/apps/red-ui/src/app/modules/admin/base-dossier-templates-screen/base-dossier-template-screen.component.html b/apps/red-ui/src/app/modules/admin/base-dossier-templates-screen/base-dossier-template-screen.component.html index ee08d19cc..84f9dc06e 100644 --- a/apps/red-ui/src/app/modules/admin/base-dossier-templates-screen/base-dossier-template-screen.component.html +++ b/apps/red-ui/src/app/modules/admin/base-dossier-templates-screen/base-dossier-template-screen.component.html @@ -10,6 +10,7 @@ diff --git a/apps/red-ui/src/app/modules/admin/screens/dossier-states-listing/dossier-states-listing-screen/dossier-states-listing-screen.component.html b/apps/red-ui/src/app/modules/admin/screens/dossier-states-listing/dossier-states-listing-screen/dossier-states-listing-screen.component.html index 92bc9e700..f87e63f8b 100644 --- a/apps/red-ui/src/app/modules/admin/screens/dossier-states-listing/dossier-states-listing-screen/dossier-states-listing-screen.component.html +++ b/apps/red-ui/src/app/modules/admin/screens/dossier-states-listing/dossier-states-listing-screen/dossier-states-listing-screen.component.html @@ -1,48 +1,25 @@ -
- - -
-
- - - -
- -
- -
- -
-
-
+
+ +
diff --git a/apps/red-ui/src/app/modules/admin/screens/dossier-states-listing/dossier-states-listing-screen/dossier-states-listing-screen.component.scss b/apps/red-ui/src/app/modules/admin/screens/dossier-states-listing/dossier-states-listing-screen/dossier-states-listing-screen.component.scss index 9c456907d..a1aa8713e 100644 --- a/apps/red-ui/src/app/modules/admin/screens/dossier-states-listing/dossier-states-listing-screen/dossier-states-listing-screen.component.scss +++ b/apps/red-ui/src/app/modules/admin/screens/dossier-states-listing/dossier-states-listing-screen/dossier-states-listing-screen.component.scss @@ -1,3 +1,7 @@ +:host { + flex-direction: row !important; +} + .right-container { padding: 50px 26px 0; width: 250px; diff --git a/apps/red-ui/src/app/modules/admin/dialogs/file-attributes-csv-import-dialog/active-fields-listing/active-fields-listing.component.html b/apps/red-ui/src/app/modules/admin/screens/file-attributes-listing/active-fields-listing/active-fields-listing.component.html similarity index 100% rename from apps/red-ui/src/app/modules/admin/dialogs/file-attributes-csv-import-dialog/active-fields-listing/active-fields-listing.component.html rename to apps/red-ui/src/app/modules/admin/screens/file-attributes-listing/active-fields-listing/active-fields-listing.component.html diff --git a/apps/red-ui/src/app/modules/admin/dialogs/file-attributes-csv-import-dialog/active-fields-listing/active-fields-listing.component.scss b/apps/red-ui/src/app/modules/admin/screens/file-attributes-listing/active-fields-listing/active-fields-listing.component.scss similarity index 100% rename from apps/red-ui/src/app/modules/admin/dialogs/file-attributes-csv-import-dialog/active-fields-listing/active-fields-listing.component.scss rename to apps/red-ui/src/app/modules/admin/screens/file-attributes-listing/active-fields-listing/active-fields-listing.component.scss diff --git a/apps/red-ui/src/app/modules/admin/dialogs/file-attributes-csv-import-dialog/active-fields-listing/active-fields-listing.component.ts b/apps/red-ui/src/app/modules/admin/screens/file-attributes-listing/active-fields-listing/active-fields-listing.component.ts similarity index 100% rename from apps/red-ui/src/app/modules/admin/dialogs/file-attributes-csv-import-dialog/active-fields-listing/active-fields-listing.component.ts rename to apps/red-ui/src/app/modules/admin/screens/file-attributes-listing/active-fields-listing/active-fields-listing.component.ts diff --git a/apps/red-ui/src/app/modules/admin/dialogs/add-edit-file-attribute-dialog/add-edit-file-attribute-dialog.component.html b/apps/red-ui/src/app/modules/admin/screens/file-attributes-listing/add-edit-file-attribute-dialog/add-edit-file-attribute-dialog.component.html similarity index 100% rename from apps/red-ui/src/app/modules/admin/dialogs/add-edit-file-attribute-dialog/add-edit-file-attribute-dialog.component.html rename to apps/red-ui/src/app/modules/admin/screens/file-attributes-listing/add-edit-file-attribute-dialog/add-edit-file-attribute-dialog.component.html diff --git a/apps/red-ui/src/app/modules/admin/dialogs/add-edit-file-attribute-dialog/add-edit-file-attribute-dialog.component.scss b/apps/red-ui/src/app/modules/admin/screens/file-attributes-listing/add-edit-file-attribute-dialog/add-edit-file-attribute-dialog.component.scss similarity index 100% rename from apps/red-ui/src/app/modules/admin/dialogs/add-edit-file-attribute-dialog/add-edit-file-attribute-dialog.component.scss rename to apps/red-ui/src/app/modules/admin/screens/file-attributes-listing/add-edit-file-attribute-dialog/add-edit-file-attribute-dialog.component.scss diff --git a/apps/red-ui/src/app/modules/admin/dialogs/add-edit-file-attribute-dialog/add-edit-file-attribute-dialog.component.ts b/apps/red-ui/src/app/modules/admin/screens/file-attributes-listing/add-edit-file-attribute-dialog/add-edit-file-attribute-dialog.component.ts similarity index 98% rename from apps/red-ui/src/app/modules/admin/dialogs/add-edit-file-attribute-dialog/add-edit-file-attribute-dialog.component.ts rename to apps/red-ui/src/app/modules/admin/screens/file-attributes-listing/add-edit-file-attribute-dialog/add-edit-file-attribute-dialog.component.ts index 4c83ffc7c..6d2a89186 100644 --- a/apps/red-ui/src/app/modules/admin/dialogs/add-edit-file-attribute-dialog/add-edit-file-attribute-dialog.component.ts +++ b/apps/red-ui/src/app/modules/admin/screens/file-attributes-listing/add-edit-file-attribute-dialog/add-edit-file-attribute-dialog.component.ts @@ -30,7 +30,7 @@ export class AddEditFileAttributeDialogComponent extends BaseDialogComponent { }; constructor( - protected readonly _dialogRef: MatDialogRef, + protected readonly _dialogRef: MatDialogRef, @Inject(MAT_DIALOG_DATA) readonly data: AddEditFileAttributeDialogData, ) { super(_dialogRef, !!data.fileAttribute); diff --git a/apps/red-ui/src/app/modules/admin/dialogs/file-attributes-configurations-dialog/file-attributes-configurations-dialog.component.html b/apps/red-ui/src/app/modules/admin/screens/file-attributes-listing/file-attributes-configurations-dialog/file-attributes-configurations-dialog.component.html similarity index 100% rename from apps/red-ui/src/app/modules/admin/dialogs/file-attributes-configurations-dialog/file-attributes-configurations-dialog.component.html rename to apps/red-ui/src/app/modules/admin/screens/file-attributes-listing/file-attributes-configurations-dialog/file-attributes-configurations-dialog.component.html diff --git a/apps/red-ui/src/app/modules/admin/dialogs/file-attributes-configurations-dialog/file-attributes-configurations-dialog.component.ts b/apps/red-ui/src/app/modules/admin/screens/file-attributes-listing/file-attributes-configurations-dialog/file-attributes-configurations-dialog.component.ts similarity index 81% rename from apps/red-ui/src/app/modules/admin/dialogs/file-attributes-configurations-dialog/file-attributes-configurations-dialog.component.ts rename to apps/red-ui/src/app/modules/admin/screens/file-attributes-listing/file-attributes-configurations-dialog/file-attributes-configurations-dialog.component.ts index 1d2d34bcb..97a94b1f2 100644 --- a/apps/red-ui/src/app/modules/admin/dialogs/file-attributes-configurations-dialog/file-attributes-configurations-dialog.component.ts +++ b/apps/red-ui/src/app/modules/admin/screens/file-attributes-listing/file-attributes-configurations-dialog/file-attributes-configurations-dialog.component.ts @@ -1,6 +1,6 @@ -import { ChangeDetectionStrategy, Component, Inject } from '@angular/core'; +import { ChangeDetectionStrategy, Component, inject } from '@angular/core'; import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog'; -import { UntypedFormGroup, Validators } from '@angular/forms'; +import { Validators } from '@angular/forms'; import { FileAttributeEncodingTypes, IFileAttributesConfig } from '@red/domain'; import { fileAttributeEncodingTypesTranslations } from '@translations/file-attribute-encoding-types-translations'; import { BaseDialogComponent } from '@iqser/common-ui'; @@ -12,12 +12,9 @@ import { BaseDialogComponent } from '@iqser/common-ui'; export class FileAttributesConfigurationsDialogComponent extends BaseDialogComponent { readonly encodingTypeOptions = Object.keys(FileAttributeEncodingTypes); readonly translations = fileAttributeEncodingTypesTranslations; - readonly #configuration = this._data.config; + readonly #configuration = inject(MAT_DIALOG_DATA); - constructor( - protected readonly _dialogRef: MatDialogRef, - @Inject(MAT_DIALOG_DATA) private readonly _data: { config: IFileAttributesConfig; dossierTemplateId: string }, - ) { + constructor(protected readonly _dialogRef: MatDialogRef) { super(_dialogRef, true); this.form = this.#getForm(); this.initialFormValue = this.form.getRawValue(); @@ -39,7 +36,7 @@ export class FileAttributesConfigurationsDialogComponent extends BaseDialogCompo this._dialogRef.close(this.#getConfiguration()); } - #getConfiguration() { + #getConfiguration(): IFileAttributesConfig { const supportCsvMapping = this.form.get('supportCsvMapping').value; if (supportCsvMapping) { return { @@ -56,7 +53,7 @@ export class FileAttributesConfigurationsDialogComponent extends BaseDialogCompo }; } - #getForm(): UntypedFormGroup { + #getForm() { return this._formBuilder.group({ supportCsvMapping: [!!this.#configuration.filenameMappingColumnHeaderName], keyColumn: [this.#configuration.filenameMappingColumnHeaderName || '', [Validators.required]], diff --git a/apps/red-ui/src/app/modules/admin/dialogs/file-attributes-csv-import-dialog/file-attributes-csv-import-dialog.component.html b/apps/red-ui/src/app/modules/admin/screens/file-attributes-listing/file-attributes-csv-import-dialog/file-attributes-csv-import-dialog.component.html similarity index 100% rename from apps/red-ui/src/app/modules/admin/dialogs/file-attributes-csv-import-dialog/file-attributes-csv-import-dialog.component.html rename to apps/red-ui/src/app/modules/admin/screens/file-attributes-listing/file-attributes-csv-import-dialog/file-attributes-csv-import-dialog.component.html diff --git a/apps/red-ui/src/app/modules/admin/dialogs/file-attributes-csv-import-dialog/file-attributes-csv-import-dialog.component.scss b/apps/red-ui/src/app/modules/admin/screens/file-attributes-listing/file-attributes-csv-import-dialog/file-attributes-csv-import-dialog.component.scss similarity index 100% rename from apps/red-ui/src/app/modules/admin/dialogs/file-attributes-csv-import-dialog/file-attributes-csv-import-dialog.component.scss rename to apps/red-ui/src/app/modules/admin/screens/file-attributes-listing/file-attributes-csv-import-dialog/file-attributes-csv-import-dialog.component.scss diff --git a/apps/red-ui/src/app/modules/admin/dialogs/file-attributes-csv-import-dialog/file-attributes-csv-import-dialog.component.ts b/apps/red-ui/src/app/modules/admin/screens/file-attributes-listing/file-attributes-csv-import-dialog/file-attributes-csv-import-dialog.component.ts similarity index 99% rename from apps/red-ui/src/app/modules/admin/dialogs/file-attributes-csv-import-dialog/file-attributes-csv-import-dialog.component.ts rename to apps/red-ui/src/app/modules/admin/screens/file-attributes-listing/file-attributes-csv-import-dialog/file-attributes-csv-import-dialog.component.ts index f84139d14..bac130bfe 100644 --- a/apps/red-ui/src/app/modules/admin/dialogs/file-attributes-csv-import-dialog/file-attributes-csv-import-dialog.component.ts +++ b/apps/red-ui/src/app/modules/admin/screens/file-attributes-listing/file-attributes-csv-import-dialog/file-attributes-csv-import-dialog.component.ts @@ -10,7 +10,7 @@ import { FileAttributeConfig, FileAttributeConfigTypes, FileAttributeEncodingTyp import { FileAttributesService } from '@services/entity-services/file-attributes.service'; import { fileAttributeEncodingTypesTranslations } from '@translations/file-attribute-encoding-types-translations'; -interface IFileAttributesCSVImportData { +export interface IFileAttributesCSVImportData { readonly csv: File; readonly dossierTemplateId: string; readonly existingConfiguration: IFileAttributesConfig; 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 f1f991fc8..d563cb36a 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 @@ -1,41 +1,18 @@ -
- - -
-
- - - -
- -
- -
-
-
+