gw-popup
Version:
A configurable popup component for Vue 3
29 lines (28 loc) • 1.99 kB
TypeScript
import { PopupModeKeys } from './PopupConfig';
import type { PopupGlobalSettings, PopupPropsDefined, PopupServiceData, ToolTipHandler, ToolTipRef, PopupRegistration, PopupCallbacks, PopupStatusKeys, PopupWidthHeight, PopupCallbackKeys, PopupProps, PopupDirection, PopupDirectionMapItem, PopupBoxParams, SvgParams } from '../types/popupTypes';
export declare const usePopupManager: import("pinia").StoreDefinition<"popupManager", PopupServiceData, {}, {
mergeConfig(mode: PopupModeKeys, baseConfig: PopupPropsDefined, overrides: PopupProps): PopupPropsDefined;
mergeTool(baseConfig: PopupPropsDefined, overrides: PopupProps): PopupPropsDefined;
setPropValue<K extends keyof PopupPropsDefined>(key: K, config: PopupPropsDefined, value: PopupPropsDefined[K]): void;
connectToolTip(id: string, handler: ToolTipHandler): void;
registerToolTips(id: string, refs: ToolTipRef[], index?: number): void;
disconnectToolTip(id: string): void;
config(settings: PopupGlobalSettings): void;
buildArrowBox(params: PopupBoxParams): SvgParams | null;
processSvgTemplate(template: string, values: {
[key: string]: number;
}, directionSettings: PopupDirectionMapItem): string;
percentHeightWidth(percent: number): PopupWidthHeight;
log(label: string, data: object): void;
logSimple(message: string): void;
attachEvents(popupId: string, config: PopupRegistration): void;
attachEvent(popupId: string, eventObject: HTMLElement | Window, eventName: keyof WindowEventMap, action: PopupCallbackKeys): void;
registerPopup(popupId: string, config: PopupRegistration, callbacks: PopupCallbacks): string;
destroyPopup(id: string): void;
closeOpenTooltips(popupId: string): void;
showPopup(id: string, positioner?: HTMLElement | string, direction?: PopupDirection): void;
hidePopup(id: string): void;
refreshPopup(id: string): void;
setStatus(id: string, state: PopupStatusKeys, status: boolean): void;
reset(): void;
}>;