UNPKG

@kaspacom/ui

Version:

UI Component Library for KaspaCom DeFi Applications

43 lines 2.57 kB
import { ElementRef, Renderer2, OnDestroy, TemplateRef, ViewContainerRef } from '@angular/core'; import * as i0 from "@angular/core"; export type TooltipPosition = 'top' | 'bottom' | 'left' | 'right'; export declare class KcTooltipDirective implements OnDestroy { private el; private renderer; private viewContainerRef; private tooltipElement; private showTimeoutId; private hideTimeoutId; private isBrowser; private static stylesInjected; private embeddedViewRef; text: string; tooltipTemplate: TemplateRef<any> | null; tooltipPosition: TooltipPosition; tooltipShowDelay: number; tooltipHideDelay: number; tooltipTextColor: string | undefined; tooltipPrefixIcon: string | undefined; tooltipSuffixIcon: string | undefined; tooltipPrefixIconColor: string | undefined; tooltipSuffixIconColor: string | undefined; tooltipActionable: boolean; tooltipActionableDebounce: number; constructor(el: ElementRef, renderer: Renderer2, viewContainerRef: ViewContainerRef, platformId: Object); private injectStyles; onMouseEnter(): void; onMouseLeave(): void; onFocus(): void; onBlur(): void; showTooltip(): void; hideTooltip(): void; private clearTimeouts; private addTooltipMouseListeners; private createTooltip; private removeTooltip; private setTooltipPosition; ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration<KcTooltipDirective, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<KcTooltipDirective, "[kcTooltip]", ["kcTooltip"], { "text": { "alias": "kcTooltip"; "required": false; }; "tooltipTemplate": { "alias": "tooltipTemplate"; "required": false; }; "tooltipPosition": { "alias": "tooltipPosition"; "required": false; }; "tooltipShowDelay": { "alias": "tooltipShowDelay"; "required": false; }; "tooltipHideDelay": { "alias": "tooltipHideDelay"; "required": false; }; "tooltipTextColor": { "alias": "tooltipTextColor"; "required": false; }; "tooltipPrefixIcon": { "alias": "tooltipPrefixIcon"; "required": false; }; "tooltipSuffixIcon": { "alias": "tooltipSuffixIcon"; "required": false; }; "tooltipPrefixIconColor": { "alias": "tooltipPrefixIconColor"; "required": false; }; "tooltipSuffixIconColor": { "alias": "tooltipSuffixIconColor"; "required": false; }; "tooltipActionable": { "alias": "tooltipActionable"; "required": false; }; "tooltipActionableDebounce": { "alias": "tooltipActionableDebounce"; "required": false; }; }, {}, never, never, true, never>; } //# sourceMappingURL=tooltip.directive.d.ts.map