From 5e26e217a10e383453d0968adcff8bf893b5efb2 Mon Sep 17 00:00:00 2001 From: Nicoleta Panaghiu Date: Sun, 24 Nov 2024 14:02:13 +0200 Subject: [PATCH] RED-10509: added disableStopPropagation option for action config. --- src/lib/listing/page-header/models/action-config.model.ts | 3 ++- src/lib/listing/page-header/page-header.component.html | 3 ++- src/lib/listing/page-header/page-header.component.ts | 2 ++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/lib/listing/page-header/models/action-config.model.ts b/src/lib/listing/page-header/models/action-config.model.ts index dbfb226..c142397 100644 --- a/src/lib/listing/page-header/models/action-config.model.ts +++ b/src/lib/listing/page-header/models/action-config.model.ts @@ -1,9 +1,10 @@ import { BaseHeaderConfig } from './base-config.model'; import { Observable } from 'rxjs'; -import { OverlappingElement } from '../../../help-mode'; export interface ActionConfig extends BaseHeaderConfig { readonly action: ($event: MouseEvent) => void; readonly helpModeKey?: string; readonly disabled$?: Observable; + readonly disabled?: boolean; + readonly disableStopPropagation?: boolean; } diff --git a/src/lib/listing/page-header/page-header.component.html b/src/lib/listing/page-header/page-header.component.html index e566969..e25f209 100644 --- a/src/lib/listing/page-header/page-header.component.html +++ b/src/lib/listing/page-header/page-header.component.html @@ -60,10 +60,11 @@ } } diff --git a/src/lib/listing/page-header/page-header.component.ts b/src/lib/listing/page-header/page-header.component.ts index 183b260..686dbf0 100644 --- a/src/lib/listing/page-header/page-header.component.ts +++ b/src/lib/listing/page-header/page-header.component.ts @@ -15,6 +15,7 @@ import { filterEach } from '../../utils'; import { List } from '../../utils'; import { IListable } from '../models'; import { ActionConfig, ButtonConfig, SearchPosition, SearchPositions } from './models'; +import { DisableStopPropagationDirective } from '../../directives'; @Component({ selector: 'iqser-page-header', @@ -31,6 +32,7 @@ import { ActionConfig, ButtonConfig, SearchPosition, SearchPositions } from './m CircleButtonComponent, TranslateModule, InputWithActionComponent, + DisableStopPropagationDirective, ], }) export class PageHeaderComponent {