DM-358 - added all keys
This commit is contained in:
parent
d4d593d24a
commit
da0e057721
@ -5,16 +5,15 @@ import { BehaviorSubject, firstValueFrom } from 'rxjs';
|
|||||||
import { HelpModeDialogComponent } from './help-mode-dialog/help-mode-dialog.component';
|
import { HelpModeDialogComponent } from './help-mode-dialog/help-mode-dialog.component';
|
||||||
import { HELP_MODE_KEYS, MANUAL_BASE_URL } from './tokens';
|
import { HELP_MODE_KEYS, MANUAL_BASE_URL } from './tokens';
|
||||||
import {
|
import {
|
||||||
ANNOTATIONS_LIST_ID,
|
|
||||||
HELP_HIGHLIGHT_CLASS,
|
HELP_HIGHLIGHT_CLASS,
|
||||||
HELP_MODE_CLASS,
|
HELP_MODE_CLASS,
|
||||||
OVERLAPPING_DROPDOWNS_IDS,
|
OVERLAPPING_DROPDOWNS_IDS,
|
||||||
OverlappingElement,
|
OverlappingElement,
|
||||||
PDF_TRON_IFRAME_ID,
|
PDF_TRON_IFRAME_ID,
|
||||||
SCROLL_BUTTONS_IDS,
|
SCROLL_BUTTONS_IDS,
|
||||||
|
SCROLLABLE_PARENT_VIEWS_IDS,
|
||||||
ScrollableParentView,
|
ScrollableParentView,
|
||||||
ScrollableParentViews,
|
ScrollableParentViews,
|
||||||
VIRTUAL_SCROLL_ID,
|
|
||||||
WEB_VIEWER_ELEMENTS,
|
WEB_VIEWER_ELEMENTS,
|
||||||
} from './utils/constants';
|
} from './utils/constants';
|
||||||
|
|
||||||
@ -174,8 +173,7 @@ export class HelpModeService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (helper.scrollableParentView) {
|
if (helper.scrollableParentView) {
|
||||||
const scrollableElementId =
|
const scrollableElementId = SCROLLABLE_PARENT_VIEWS_IDS[helper.scrollableParentView];
|
||||||
helper.scrollableParentView === ScrollableParentViews.VIRTUAL_SCROLL ? VIRTUAL_SCROLL_ID : ANNOTATIONS_LIST_ID;
|
|
||||||
const scrollableElement: HTMLElement = <HTMLElement>document.getElementById(scrollableElementId);
|
const scrollableElement: HTMLElement = <HTMLElement>document.getElementById(scrollableElementId);
|
||||||
|
|
||||||
if (!scrollableElement) {
|
if (!scrollableElement) {
|
||||||
|
|||||||
@ -1,5 +1,3 @@
|
|||||||
export const VIRTUAL_SCROLL_ID = 'virtual-scroll';
|
|
||||||
export const ANNOTATIONS_LIST_ID = 'annotations-list';
|
|
||||||
export const OVERLAPPING_DROPDOWNS_IDS = {
|
export const OVERLAPPING_DROPDOWNS_IDS = {
|
||||||
USER_MENU: 'user-menu-items',
|
USER_MENU: 'user-menu-items',
|
||||||
WORKLOAD_FILTER: 'workload-filters',
|
WORKLOAD_FILTER: 'workload-filters',
|
||||||
@ -18,6 +16,13 @@ export const WEB_VIEWER_ELEMENTS = [
|
|||||||
export const ScrollableParentViews = {
|
export const ScrollableParentViews = {
|
||||||
VIRTUAL_SCROLL: 'VIRTUAL_SCROLL',
|
VIRTUAL_SCROLL: 'VIRTUAL_SCROLL',
|
||||||
ANNOTATIONS_LIST: 'ANNOTATIONS_LIST',
|
ANNOTATIONS_LIST: 'ANNOTATIONS_LIST',
|
||||||
|
SCM_EDIT_DIALOG: 'SCM_EDIT_DIALOG',
|
||||||
|
} as const;
|
||||||
|
|
||||||
|
export const SCROLLABLE_PARENT_VIEWS_IDS = {
|
||||||
|
VIRTUAL_SCROLL: 'virtual-scroll',
|
||||||
|
ANNOTATIONS_LIST: 'annotations-list',
|
||||||
|
SCM_EDIT_DIALOG: 'scm-edit',
|
||||||
} as const;
|
} as const;
|
||||||
|
|
||||||
export type ScrollableParentView = keyof typeof ScrollableParentViews;
|
export type ScrollableParentView = keyof typeof ScrollableParentViews;
|
||||||
|
|||||||
@ -9,6 +9,7 @@
|
|||||||
(action)="editing = true"
|
(action)="editing = true"
|
||||||
[tooltip]="editTooltip"
|
[tooltip]="editTooltip"
|
||||||
[type]="buttonsType"
|
[type]="buttonsType"
|
||||||
|
[attr.help-mode-key]="helpModeKey"
|
||||||
class="edit-button"
|
class="edit-button"
|
||||||
icon="iqser:edit"
|
icon="iqser:edit"
|
||||||
></iqser-circle-button>
|
></iqser-circle-button>
|
||||||
|
|||||||
@ -23,6 +23,7 @@ export class EditableInputComponent implements OnChanges {
|
|||||||
@Input() showPreview = true;
|
@Input() showPreview = true;
|
||||||
@Input() canEdit = true;
|
@Input() canEdit = true;
|
||||||
@Input() buttonsType: CircleButtonType = CircleButtonTypes.default;
|
@Input() buttonsType: CircleButtonType = CircleButtonTypes.default;
|
||||||
|
@Input() helpModeKey: string = '';
|
||||||
@Output() readonly save = new EventEmitter<string>();
|
@Output() readonly save = new EventEmitter<string>();
|
||||||
parentDimensions?: { width: number; height: number };
|
parentDimensions?: { width: number; height: number };
|
||||||
newValue = '';
|
newValue = '';
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user