Skip to content

Commit

Permalink
style(esl-popup): update action param keys
Browse files Browse the repository at this point in the history
  • Loading branch information
dshovchko committed Dec 13, 2024
1 parent 288e3ab commit 3206637
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/modules/esl-popup/core/esl-popup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down
5 changes: 3 additions & 2 deletions src/modules/esl-share/core/esl-share-popup.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand All @@ -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',
Expand All @@ -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} */
Expand Down
5 changes: 3 additions & 2 deletions src/modules/esl-tooltip/core/esl-tooltip.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand All @@ -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',
Expand All @@ -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 */
Expand Down

0 comments on commit 3206637

Please sign in to comment.