1 | import { ElementRef, AfterViewInit, OnDestroy, NgZone, SimpleChanges } from '@angular/core';
|
---|
2 | import { PrimeNGConfig } from 'primeng/api';
|
---|
3 | import * as i0 from "@angular/core";
|
---|
4 | import * as i1 from "@angular/common";
|
---|
5 | export interface TooltipOptions {
|
---|
6 | tooltipLabel?: string;
|
---|
7 | tooltipPosition?: string;
|
---|
8 | tooltipEvent?: string;
|
---|
9 | appendTo?: any;
|
---|
10 | positionStyle?: string;
|
---|
11 | tooltipStyleClass?: string;
|
---|
12 | tooltipZIndex?: string;
|
---|
13 | escape?: boolean;
|
---|
14 | disabled?: boolean;
|
---|
15 | showDelay?: number;
|
---|
16 | hideDelay?: number;
|
---|
17 | positionTop?: number;
|
---|
18 | positionLeft?: number;
|
---|
19 | life?: number;
|
---|
20 | }
|
---|
21 | export declare class Tooltip implements AfterViewInit, OnDestroy {
|
---|
22 | el: ElementRef;
|
---|
23 | zone: NgZone;
|
---|
24 | config: PrimeNGConfig;
|
---|
25 | tooltipPosition: string;
|
---|
26 | tooltipEvent: string;
|
---|
27 | appendTo: any;
|
---|
28 | positionStyle: string;
|
---|
29 | tooltipStyleClass: string;
|
---|
30 | tooltipZIndex: string;
|
---|
31 | escape: boolean;
|
---|
32 | showDelay: number;
|
---|
33 | hideDelay: number;
|
---|
34 | life: number;
|
---|
35 | positionTop: number;
|
---|
36 | positionLeft: number;
|
---|
37 | text: string;
|
---|
38 | get disabled(): boolean;
|
---|
39 | set disabled(val: boolean);
|
---|
40 | tooltipOptions: TooltipOptions;
|
---|
41 | _tooltipOptions: TooltipOptions;
|
---|
42 | _disabled: boolean;
|
---|
43 | container: any;
|
---|
44 | styleClass: string;
|
---|
45 | tooltipText: any;
|
---|
46 | showTimeout: any;
|
---|
47 | hideTimeout: any;
|
---|
48 | active: boolean;
|
---|
49 | mouseEnterListener: Function;
|
---|
50 | mouseLeaveListener: Function;
|
---|
51 | clickListener: Function;
|
---|
52 | focusListener: Function;
|
---|
53 | blurListener: Function;
|
---|
54 | scrollHandler: any;
|
---|
55 | resizeListener: any;
|
---|
56 | constructor(el: ElementRef, zone: NgZone, config: PrimeNGConfig);
|
---|
57 | ngAfterViewInit(): void;
|
---|
58 | ngOnChanges(simpleChange: SimpleChanges): void;
|
---|
59 | onMouseEnter(e: Event): void;
|
---|
60 | onMouseLeave(e: Event): void;
|
---|
61 | onFocus(e: Event): void;
|
---|
62 | onBlur(e: Event): void;
|
---|
63 | onClick(e: Event): void;
|
---|
64 | activate(): void;
|
---|
65 | deactivate(): void;
|
---|
66 | create(): void;
|
---|
67 | show(): void;
|
---|
68 | hide(): void;
|
---|
69 | updateText(): void;
|
---|
70 | align(): void;
|
---|
71 | getHostOffset(): {
|
---|
72 | left: any;
|
---|
73 | top: any;
|
---|
74 | };
|
---|
75 | alignRight(): void;
|
---|
76 | alignLeft(): void;
|
---|
77 | alignTop(): void;
|
---|
78 | alignBottom(): void;
|
---|
79 | setOption(option: TooltipOptions): void;
|
---|
80 | getOption(option: string): any;
|
---|
81 | preAlign(position: string): void;
|
---|
82 | isOutOfBounds(): boolean;
|
---|
83 | onWindowResize(e: Event): void;
|
---|
84 | bindDocumentResizeListener(): void;
|
---|
85 | unbindDocumentResizeListener(): void;
|
---|
86 | bindScrollListener(): void;
|
---|
87 | unbindScrollListener(): void;
|
---|
88 | unbindEvents(): void;
|
---|
89 | remove(): void;
|
---|
90 | clearShowTimeout(): void;
|
---|
91 | clearHideTimeout(): void;
|
---|
92 | clearTimeouts(): void;
|
---|
93 | ngOnDestroy(): void;
|
---|
94 | static ɵfac: i0.ɵɵFactoryDeclaration<Tooltip, never>;
|
---|
95 | static ɵdir: i0.ɵɵDirectiveDeclaration<Tooltip, "[pTooltip]", never, { "tooltipPosition": "tooltipPosition"; "tooltipEvent": "tooltipEvent"; "appendTo": "appendTo"; "positionStyle": "positionStyle"; "tooltipStyleClass": "tooltipStyleClass"; "tooltipZIndex": "tooltipZIndex"; "escape": "escape"; "showDelay": "showDelay"; "hideDelay": "hideDelay"; "life": "life"; "positionTop": "positionTop"; "positionLeft": "positionLeft"; "text": "pTooltip"; "disabled": "tooltipDisabled"; "tooltipOptions": "tooltipOptions"; }, {}, never>;
|
---|
96 | }
|
---|
97 | export declare class TooltipModule {
|
---|
98 | static ɵfac: i0.ɵɵFactoryDeclaration<TooltipModule, never>;
|
---|
99 | static ɵmod: i0.ɵɵNgModuleDeclaration<TooltipModule, [typeof Tooltip], [typeof i1.CommonModule], [typeof Tooltip]>;
|
---|
100 | static ɵinj: i0.ɵɵInjectorDeclaration<TooltipModule>;
|
---|
101 | }
|
---|