From 3206637dd619acd906aba4461938f1a553217903 Mon Sep 17 00:00:00 2001 From: Dmitry Shovchko Date: Fri, 13 Dec 2024 21:18:57 +0200 Subject: [PATCH] style(esl-popup): update action param keys --- src/modules/esl-popup/core/esl-popup.ts | 1 + src/modules/esl-share/core/esl-share-popup.ts | 5 +++-- src/modules/esl-tooltip/core/esl-tooltip.ts | 5 +++-- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/modules/esl-popup/core/esl-popup.ts b/src/modules/esl-popup/core/esl-popup.ts index 4e5d95e2b..673a990ef 100644 --- a/src/modules/esl-popup/core/esl-popup.ts +++ b/src/modules/esl-popup/core/esl-popup.ts @@ -28,6 +28,7 @@ export class ESLPopup extends ESLToggleable { intersectionMargin: '0px' }; + /** List of action params keys */ public static PARAM_KEYS: string[] = KEYSOF_POPUP_ACTION_PARAMS as string[]; /** Classname of popups arrow element */ diff --git a/src/modules/esl-share/core/esl-share-popup.ts b/src/modules/esl-share/core/esl-share-popup.ts index 9d717270c..84f7ed42c 100644 --- a/src/modules/esl-share/core/esl-share-popup.ts +++ b/src/modules/esl-share/core/esl-share-popup.ts @@ -1,5 +1,5 @@ import {ExportNs} from '../../esl-utils/environment/export-ns'; -import {ESLPopup, KEYSOF_POPUP_ACTION_PARAMS} from '../../esl-popup/core'; +import {ESLPopup} from '../../esl-popup/core'; import {bind, listen, memoize} from '../../esl-utils/decorators'; import {ESLShareButton} from './esl-share-button'; import {ESLShareConfig} from './esl-share-config'; @@ -25,7 +25,7 @@ export interface ESLSharePopupActionParams extends ESLPopupActionParams { } /** List of ESLSharePopupActionParams keys */ export const KEYSOF_SHAREPOPUP_ACTION_PARAMS: (keyof ESLSharePopupActionParams)[] = [ - ...KEYSOF_POPUP_ACTION_PARAMS, + ...ESLPopup.PARAM_KEYS, 'list', 'dir', 'lang', @@ -52,6 +52,7 @@ export class ESLSharePopup extends ESLPopup { hideDelay: 300 }; + /** List of action params keys */ public static override PARAM_KEYS: string[] = KEYSOF_SHAREPOPUP_ACTION_PARAMS as string[]; /** List of attributes to forward from the activator to the {@link ESLSharePopup} */ diff --git a/src/modules/esl-tooltip/core/esl-tooltip.ts b/src/modules/esl-tooltip/core/esl-tooltip.ts index 02ebad258..465e7108a 100644 --- a/src/modules/esl-tooltip/core/esl-tooltip.ts +++ b/src/modules/esl-tooltip/core/esl-tooltip.ts @@ -1,5 +1,5 @@ import {ExportNs} from '../../esl-utils/environment/export-ns'; -import {ESLPopup, KEYSOF_POPUP_ACTION_PARAMS} from '../../esl-popup/core'; +import {ESLPopup} from '../../esl-popup/core'; import {memoize} from '../../esl-utils/decorators'; import type {ESLPopupActionParams} from '../../esl-popup/core'; @@ -18,7 +18,7 @@ export interface ESLTooltipActionParams extends ESLPopupActionParams { } /** List of ESLTooltipActionParams keys */ export const KEYSOF_TOOLTIP_ACTION_PARAMS: (keyof ESLTooltipActionParams)[] = [ - ...KEYSOF_POPUP_ACTION_PARAMS, + ...ESLPopup.PARAM_KEYS, 'text', 'html', 'dir', @@ -36,6 +36,7 @@ export class ESLTooltip extends ESLPopup { hideDelay: 300 }; + /** List of action params keys */ public static override PARAM_KEYS: string[] = KEYSOF_TOOLTIP_ACTION_PARAMS as string[]; /** Shared instanse of Tooltip */