From 57952da74a05e31db396e8bc61bb595d8fa7b99f Mon Sep 17 00:00:00 2001 From: Valentin Date: Wed, 1 Dec 2021 11:43:43 +0200 Subject: [PATCH] added more keys and fixes for help mode --- .../dossiers-listing-actions.component.html | 9 +++- .../annotation-actions.component.html | 5 +++ .../annotations-list.component.html | 1 + .../annotations-list.component.scss | 3 +- .../annotations-list.component.ts | 4 +- .../user-management.component.html | 1 + .../file-preview-screen.component.html | 1 - .../file-actions/file-actions.component.html | 2 +- apps/red-ui/src/assets/help-mode/links.json | 42 +++++++++++++++++++ libs/common-ui | 2 +- 10 files changed, 63 insertions(+), 7 deletions(-) diff --git a/apps/red-ui/src/app/modules/dossier/screens/dossiers-listing/components/dossiers-listing-actions/dossiers-listing-actions.component.html b/apps/red-ui/src/app/modules/dossier/screens/dossiers-listing/components/dossiers-listing-actions/dossiers-listing-actions.component.html index 6c1bd51a1..7ab3ea424 100644 --- a/apps/red-ui/src/app/modules/dossier/screens/dossiers-listing/components/dossiers-listing-actions/dossiers-listing-actions.component.html +++ b/apps/red-ui/src/app/modules/dossier/screens/dossiers-listing/components/dossiers-listing-actions/dossiers-listing-actions.component.html @@ -1,12 +1,19 @@ -
+
diff --git a/apps/red-ui/src/app/modules/dossier/screens/file-preview-screen/components/annotations-list/annotations-list.component.html b/apps/red-ui/src/app/modules/dossier/screens/file-preview-screen/components/annotations-list/annotations-list.component.html index 4f8ce523b..b4a0acb70 100644 --- a/apps/red-ui/src/app/modules/dossier/screens/file-preview-screen/components/annotations-list/annotations-list.component.html +++ b/apps/red-ui/src/app/modules/dossier/screens/file-preview-screen/components/annotations-list/annotations-list.component.html @@ -5,6 +5,7 @@ [attr.annotation-page]="activeViewerPage" [class.active]="isSelected(annotation.annotationId)" [class.multi-select-active]="multiSelectService.active$ | async" + [class.help-mode]="helpModeService.isHelpModeActive$ | async" class="annotation-wrapper" >
diff --git a/apps/red-ui/src/app/modules/dossier/screens/file-preview-screen/components/annotations-list/annotations-list.component.scss b/apps/red-ui/src/app/modules/dossier/screens/file-preview-screen/components/annotations-list/annotations-list.component.scss index 6a29cea73..c9df84618 100644 --- a/apps/red-ui/src/app/modules/dossier/screens/file-preview-screen/components/annotations-list/annotations-list.component.scss +++ b/apps/red-ui/src/app/modules/dossier/screens/file-preview-screen/components/annotations-list/annotations-list.component.scss @@ -81,7 +81,8 @@ } } - &:hover { + &:hover, + &.help-mode { background-color: variables.$grey-8; ::ng-deep .annotation-actions { diff --git a/apps/red-ui/src/app/modules/dossier/screens/file-preview-screen/components/annotations-list/annotations-list.component.ts b/apps/red-ui/src/app/modules/dossier/screens/file-preview-screen/components/annotations-list/annotations-list.component.ts index 302de9e3e..e153bd47a 100644 --- a/apps/red-ui/src/app/modules/dossier/screens/file-preview-screen/components/annotations-list/annotations-list.component.ts +++ b/apps/red-ui/src/app/modules/dossier/screens/file-preview-screen/components/annotations-list/annotations-list.component.ts @@ -1,6 +1,6 @@ import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output, TemplateRef } from '@angular/core'; import { AnnotationWrapper } from '@models/file/annotation.wrapper'; -import { IqserEventTarget } from '@iqser/common-ui'; +import { HelpModeService, IqserEventTarget } from '@iqser/common-ui'; import { File } from '@red/domain'; import { MultiSelectService } from '../../services/multi-select.service'; @@ -22,7 +22,7 @@ export class AnnotationsListComponent { @Output() readonly selectAnnotations = new EventEmitter(); @Output() readonly deselectAnnotations = new EventEmitter(); - constructor(readonly multiSelectService: MultiSelectService) {} + constructor(readonly multiSelectService: MultiSelectService, readonly helpModeService: HelpModeService) {} annotationClicked(annotation: AnnotationWrapper, $event: MouseEvent): void { if (($event.target as IqserEventTarget).localName === 'input') { diff --git a/apps/red-ui/src/app/modules/dossier/screens/file-preview-screen/components/user-management/user-management.component.html b/apps/red-ui/src/app/modules/dossier/screens/file-preview-screen/components/user-management/user-management.component.html index 52b95aaf7..1fc165006 100644 --- a/apps/red-ui/src/app/modules/dossier/screens/file-preview-screen/components/user-management/user-management.component.html +++ b/apps/red-ui/src/app/modules/dossier/screens/file-preview-screen/components/user-management/user-management.component.html @@ -34,6 +34,7 @@ [tooltip]="assignTooltip" icon="iqser:edit" tooltipPosition="below" + iqserHelpMode="assign-reviewer" > diff --git a/apps/red-ui/src/app/modules/dossier/shared/components/file-actions/file-actions.component.html b/apps/red-ui/src/app/modules/dossier/shared/components/file-actions/file-actions.component.html index 646de42ff..d740a01c1 100644 --- a/apps/red-ui/src/app/modules/dossier/shared/components/file-actions/file-actions.component.html +++ b/apps/red-ui/src/app/modules/dossier/shared/components/file-actions/file-actions.component.html @@ -16,7 +16,7 @@ -
+