1 | import { AfterViewInit, ElementRef, OnChanges, OnDestroy, OnInit, EventEmitter } from '@angular/core';
|
2 | import { Subject } from 'rxjs';
|
3 | import { NbComponentOrCustomStatus } from '../component-status';
|
4 | import { NbAdjustment, NbPosition, NbPositionValues, NbAdjustmentValues } from '../cdk/overlay/overlay-position';
|
5 | import { NbTrigger } from '../cdk/overlay/overlay-trigger';
|
6 | import { NbDynamicOverlay } from '../cdk/overlay/dynamic/dynamic-overlay';
|
7 | import { NbDynamicOverlayHandler } from '../cdk/overlay/dynamic/dynamic-overlay-handler';
|
8 | import { NbOverlayConfig } from '../cdk/overlay/mapping';
|
9 | import { NbTooltipComponent } from './tooltip.component';
|
10 | import { NbIconConfig } from '../icon/icon.component';
|
11 | import * as i0 from "@angular/core";
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 |
|
27 |
|
28 |
|
29 |
|
30 |
|
31 |
|
32 |
|
33 |
|
34 |
|
35 |
|
36 |
|
37 |
|
38 |
|
39 |
|
40 |
|
41 |
|
42 |
|
43 |
|
44 |
|
45 |
|
46 |
|
47 |
|
48 |
|
49 |
|
50 |
|
51 |
|
52 | export declare class NbTooltipDirective implements OnInit, OnChanges, AfterViewInit, OnDestroy {
|
53 | protected hostRef: ElementRef;
|
54 | protected dynamicOverlayHandler: NbDynamicOverlayHandler;
|
55 | protected destroy$: Subject<void>;
|
56 | protected tooltipComponent: typeof NbTooltipComponent;
|
57 | protected dynamicOverlay: NbDynamicOverlay;
|
58 | context: Object;
|
59 | |
60 |
|
61 |
|
62 | content: string;
|
63 | |
64 |
|
65 |
|
66 |
|
67 | position: NbPosition;
|
68 | static ngAcceptInputType_position: NbPositionValues;
|
69 | |
70 |
|
71 |
|
72 |
|
73 |
|
74 | get adjustment(): NbAdjustment;
|
75 | set adjustment(value: NbAdjustment);
|
76 | protected _adjustment: NbAdjustment;
|
77 | static ngAcceptInputType_adjustment: NbAdjustmentValues;
|
78 | get tooltipClass(): string;
|
79 | set tooltipClass(value: string);
|
80 | _tooltipClass: string;
|
81 | |
82 |
|
83 |
|
84 |
|
85 | set icon(icon: string | NbIconConfig);
|
86 | |
87 |
|
88 |
|
89 |
|
90 | set status(status: NbComponentOrCustomStatus);
|
91 | |
92 |
|
93 |
|
94 |
|
95 | trigger: NbTrigger;
|
96 | |
97 |
|
98 |
|
99 | offset: number;
|
100 |
|
101 | disabled: boolean;
|
102 | nbTooltipShowStateChange: EventEmitter<{
|
103 | isShown: boolean;
|
104 | }>;
|
105 | protected overlayConfig: NbOverlayConfig;
|
106 | get isShown(): boolean;
|
107 | constructor(hostRef: ElementRef, dynamicOverlayHandler: NbDynamicOverlayHandler);
|
108 | ngOnInit(): void;
|
109 | ngOnChanges(): void;
|
110 | ngAfterViewInit(): void;
|
111 | rebuild(): void;
|
112 | show(): void;
|
113 | hide(): void;
|
114 | toggle(): void;
|
115 | ngOnDestroy(): void;
|
116 | protected configureDynamicOverlay(): NbDynamicOverlayHandler;
|
117 | static ɵfac: i0.ɵɵFactoryDeclaration<NbTooltipDirective, never>;
|
118 | static ɵdir: i0.ɵɵDirectiveDeclaration<NbTooltipDirective, "[nbTooltip]", ["nbTooltip"], { "content": { "alias": "nbTooltip"; "required": false; }; "position": { "alias": "nbTooltipPlacement"; "required": false; }; "adjustment": { "alias": "nbTooltipAdjustment"; "required": false; }; "tooltipClass": { "alias": "nbTooltipClass"; "required": false; }; "icon": { "alias": "nbTooltipIcon"; "required": false; }; "status": { "alias": "nbTooltipStatus"; "required": false; }; "trigger": { "alias": "nbTooltipTrigger"; "required": false; }; "offset": { "alias": "nbTooltipOffset"; "required": false; }; "disabled": { "alias": "nbTooltipDisabled"; "required": false; }; }, { "nbTooltipShowStateChange": "nbTooltipShowStateChange"; }, never, never, false, never>;
|
119 | }
|