From ae0eebcc6feceba4fe5c930d79eadd9b9a60b7e9 Mon Sep 17 00:00:00 2001 From: Nicoleta Panaghiu Date: Sun, 24 Nov 2024 13:30:43 +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/models/button-config.model.ts | 1 - src/lib/listing/page-header/page-header.component.html | 3 ++- src/lib/listing/page-header/page-header.component.ts | 2 ++ 4 files changed, 6 insertions(+), 3 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/models/button-config.model.ts b/src/lib/listing/page-header/models/button-config.model.ts index adda625..976d1f2 100644 --- a/src/lib/listing/page-header/models/button-config.model.ts +++ b/src/lib/listing/page-header/models/button-config.model.ts @@ -3,6 +3,5 @@ import { ActionConfig } from './action-config.model'; export interface ButtonConfig extends ActionConfig { readonly type?: IconButtonType; - readonly disabled?: boolean; readonly tooltip?: string; } diff --git a/src/lib/listing/page-header/page-header.component.html b/src/lib/listing/page-header/page-header.component.html index f30fe48..45e5fd7 100644 --- a/src/lib/listing/page-header/page-header.component.html +++ b/src/lib/listing/page-header/page-header.component.html @@ -63,10 +63,11 @@ } } diff --git a/src/lib/listing/page-header/page-header.component.ts b/src/lib/listing/page-header/page-header.component.ts index f36d5f9..280b829 100644 --- a/src/lib/listing/page-header/page-header.component.ts +++ b/src/lib/listing/page-header/page-header.component.ts @@ -16,6 +16,7 @@ import { List } from '../../utils'; import { IListable } from '../models'; import { ActionConfig, ButtonConfig, SearchPosition, SearchPositions } from './models'; import { MatTooltip } from '@angular/material/tooltip'; +import { DisableStopPropagationDirective } from '../../directives'; @Component({ selector: 'iqser-page-header', @@ -33,6 +34,7 @@ import { MatTooltip } from '@angular/material/tooltip'; TranslateModule, InputWithActionComponent, MatTooltip, + DisableStopPropagationDirective, ], }) export class PageHeaderComponent {