forked from hero/www_hero
22 lines
923 B
TypeScript
22 lines
923 B
TypeScript
|
import { PopoverOptions, PopoverTriggerType, PopoverTriggerEventTypes } from './types';
|
||
|
import type { Instance as PopperInstance } from '@popperjs/core';
|
||
|
export declare interface PopoverInterface {
|
||
|
_targetEl: HTMLElement | null;
|
||
|
_triggerEl: HTMLElement | null;
|
||
|
_options: PopoverOptions;
|
||
|
_popperInstance: PopperInstance;
|
||
|
_clickOutsideEventListener: EventListenerOrEventListenerObject;
|
||
|
_keydownEventListener: EventListenerOrEventListenerObject;
|
||
|
_setupEventListeners(): void;
|
||
|
_setupClickOutsideListener(): void;
|
||
|
_removeClickOutsideListener(): void;
|
||
|
_setupKeydownListener(): void;
|
||
|
_removeKeydownListener(): void;
|
||
|
_handleClickOutside(ev: Event, targetEl: HTMLElement): void;
|
||
|
_getTriggerEvents(triggerType: PopoverTriggerType): PopoverTriggerEventTypes;
|
||
|
isVisible(): boolean;
|
||
|
show(): void;
|
||
|
hide(): void;
|
||
|
toggle(): void;
|
||
|
}
|
||
|
//# sourceMappingURL=interface.d.ts.map
|