ng-primitives 0.120.4 → 0.121.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/example-theme/index.css +9 -0
- package/fesm2022/ng-primitives-a11y.mjs +5 -5
- package/fesm2022/ng-primitives-a11y.mjs.map +1 -1
- package/fesm2022/ng-primitives-accordion.mjs +34 -51
- package/fesm2022/ng-primitives-accordion.mjs.map +1 -1
- package/fesm2022/ng-primitives-ai.mjs +39 -52
- package/fesm2022/ng-primitives-ai.mjs.map +1 -1
- package/fesm2022/ng-primitives-autofill.mjs +4 -4
- package/fesm2022/ng-primitives-autofill.mjs.map +1 -1
- package/fesm2022/ng-primitives-avatar.mjs +14 -17
- package/fesm2022/ng-primitives-avatar.mjs.map +1 -1
- package/fesm2022/ng-primitives-breadcrumbs.mjs +21 -21
- package/fesm2022/ng-primitives-breadcrumbs.mjs.map +1 -1
- package/fesm2022/ng-primitives-button.mjs +7 -9
- package/fesm2022/ng-primitives-button.mjs.map +1 -1
- package/fesm2022/ng-primitives-checkbox.mjs +15 -30
- package/fesm2022/ng-primitives-checkbox.mjs.map +1 -1
- package/fesm2022/ng-primitives-combobox.mjs +60 -92
- package/fesm2022/ng-primitives-combobox.mjs.map +1 -1
- package/fesm2022/ng-primitives-common.mjs +4 -4
- package/fesm2022/ng-primitives-common.mjs.map +1 -1
- package/fesm2022/ng-primitives-context-menu.mjs +68 -121
- package/fesm2022/ng-primitives-context-menu.mjs.map +1 -1
- package/fesm2022/ng-primitives-date-picker.mjs +91 -115
- package/fesm2022/ng-primitives-date-picker.mjs.map +1 -1
- package/fesm2022/ng-primitives-dialog.mjs +35 -51
- package/fesm2022/ng-primitives-dialog.mjs.map +1 -1
- package/fesm2022/ng-primitives-file-upload.mjs +26 -53
- package/fesm2022/ng-primitives-file-upload.mjs.map +1 -1
- package/fesm2022/ng-primitives-focus-trap.mjs +5 -8
- package/fesm2022/ng-primitives-focus-trap.mjs.map +1 -1
- package/fesm2022/ng-primitives-form-field.mjs +39 -44
- package/fesm2022/ng-primitives-form-field.mjs.map +1 -1
- package/fesm2022/ng-primitives-input-otp.mjs +30 -43
- package/fesm2022/ng-primitives-input-otp.mjs.map +1 -1
- package/fesm2022/ng-primitives-input.mjs +6 -8
- package/fesm2022/ng-primitives-input.mjs.map +1 -1
- package/fesm2022/ng-primitives-interactions.mjs +31 -48
- package/fesm2022/ng-primitives-interactions.mjs.map +1 -1
- package/fesm2022/ng-primitives-internal.mjs +39 -35
- package/fesm2022/ng-primitives-internal.mjs.map +1 -1
- package/fesm2022/ng-primitives-listbox.mjs +34 -48
- package/fesm2022/ng-primitives-listbox.mjs.map +1 -1
- package/fesm2022/ng-primitives-menu.mjs +85 -151
- package/fesm2022/ng-primitives-menu.mjs.map +1 -1
- package/fesm2022/ng-primitives-meter.mjs +25 -36
- package/fesm2022/ng-primitives-meter.mjs.map +1 -1
- package/fesm2022/ng-primitives-navigation-menu.mjs +60 -108
- package/fesm2022/ng-primitives-navigation-menu.mjs.map +1 -1
- package/fesm2022/ng-primitives-number-field.mjs +35 -59
- package/fesm2022/ng-primitives-number-field.mjs.map +1 -1
- package/fesm2022/ng-primitives-pagination.mjs +270 -297
- package/fesm2022/ng-primitives-pagination.mjs.map +1 -1
- package/fesm2022/ng-primitives-popover.mjs +209 -223
- package/fesm2022/ng-primitives-popover.mjs.map +1 -1
- package/fesm2022/ng-primitives-portal.mjs +88 -59
- package/fesm2022/ng-primitives-portal.mjs.map +1 -1
- package/fesm2022/ng-primitives-progress.mjs +30 -41
- package/fesm2022/ng-primitives-progress.mjs.map +1 -1
- package/fesm2022/ng-primitives-radio.mjs +20 -30
- package/fesm2022/ng-primitives-radio.mjs.map +1 -1
- package/fesm2022/ng-primitives-resize.mjs +3 -3
- package/fesm2022/ng-primitives-resize.mjs.map +1 -1
- package/fesm2022/ng-primitives-roving-focus.mjs +20 -34
- package/fesm2022/ng-primitives-roving-focus.mjs.map +1 -1
- package/fesm2022/ng-primitives-search.mjs +9 -9
- package/fesm2022/ng-primitives-search.mjs.map +1 -1
- package/fesm2022/ng-primitives-select.mjs +720 -620
- package/fesm2022/ng-primitives-select.mjs.map +1 -1
- package/fesm2022/ng-primitives-separator.mjs +4 -6
- package/fesm2022/ng-primitives-separator.mjs.map +1 -1
- package/fesm2022/ng-primitives-slider.mjs +63 -100
- package/fesm2022/ng-primitives-slider.mjs.map +1 -1
- package/fesm2022/ng-primitives-state.mjs +3 -3
- package/fesm2022/ng-primitives-state.mjs.map +1 -1
- package/fesm2022/ng-primitives-switch.mjs +15 -21
- package/fesm2022/ng-primitives-switch.mjs.map +1 -1
- package/fesm2022/ng-primitives-tabs.mjs +31 -41
- package/fesm2022/ng-primitives-tabs.mjs.map +1 -1
- package/fesm2022/ng-primitives-textarea.mjs +5 -7
- package/fesm2022/ng-primitives-textarea.mjs.map +1 -1
- package/fesm2022/ng-primitives-toast.mjs +30 -23
- package/fesm2022/ng-primitives-toast.mjs.map +1 -1
- package/fesm2022/ng-primitives-toggle-group.mjs +20 -36
- package/fesm2022/ng-primitives-toggle-group.mjs.map +1 -1
- package/fesm2022/ng-primitives-toggle.mjs +10 -19
- package/fesm2022/ng-primitives-toggle.mjs.map +1 -1
- package/fesm2022/ng-primitives-toolbar.mjs +4 -6
- package/fesm2022/ng-primitives-toolbar.mjs.map +1 -1
- package/fesm2022/ng-primitives-tooltip.mjs +401 -402
- package/fesm2022/ng-primitives-tooltip.mjs.map +1 -1
- package/fesm2022/ng-primitives-utils.mjs +5 -4
- package/fesm2022/ng-primitives-utils.mjs.map +1 -1
- package/package.json +56 -55
- package/schematics/ng-generate/templates/select/select.__fileSuffix@dasherize__.ts.template +48 -48
- package/{a11y/index.d.ts → types/ng-primitives-a11y.d.ts} +18 -24
- package/{accordion/index.d.ts → types/ng-primitives-accordion.d.ts} +85 -98
- package/{autofill/index.d.ts → types/ng-primitives-autofill.d.ts} +3 -10
- package/{avatar/index.d.ts → types/ng-primitives-avatar.d.ts} +7 -30
- package/{breadcrumbs/index.d.ts → types/ng-primitives-breadcrumbs.d.ts} +15 -70
- package/{button/index.d.ts → types/ng-primitives-button.d.ts} +23 -29
- package/{checkbox/index.d.ts → types/ng-primitives-checkbox.d.ts} +68 -74
- package/{combobox/index.d.ts → types/ng-primitives-combobox.d.ts} +35 -35
- package/{context-menu/index.d.ts → types/ng-primitives-context-menu.d.ts} +2 -1
- package/{date-picker/index.d.ts → types/ng-primitives-date-picker.d.ts} +2 -2
- package/{dialog/index.d.ts → types/ng-primitives-dialog.d.ts} +7 -2
- package/{file-upload/index.d.ts → types/ng-primitives-file-upload.d.ts} +5 -20
- package/{focus-trap/index.d.ts → types/ng-primitives-focus-trap.d.ts} +3 -10
- package/{form-field/index.d.ts → types/ng-primitives-form-field.d.ts} +9 -40
- package/{input/index.d.ts → types/ng-primitives-input.d.ts} +3 -10
- package/{menu/index.d.ts → types/ng-primitives-menu.d.ts} +17 -63
- package/{navigation-menu/index.d.ts → types/ng-primitives-navigation-menu.d.ts} +15 -70
- package/{number-field/index.d.ts → types/ng-primitives-number-field.d.ts} +80 -110
- package/types/ng-primitives-pagination.d.ts +502 -0
- package/{popover/index.d.ts → types/ng-primitives-popover.d.ts} +244 -57
- package/{portal/index.d.ts → types/ng-primitives-portal.d.ts} +22 -13
- package/{progress/index.d.ts → types/ng-primitives-progress.d.ts} +3 -10
- package/{roving-focus/index.d.ts → types/ng-primitives-roving-focus.d.ts} +65 -79
- package/types/ng-primitives-select.d.ts +687 -0
- package/{separator/index.d.ts → types/ng-primitives-separator.d.ts} +3 -10
- package/{slider/index.d.ts → types/ng-primitives-slider.d.ts} +76 -138
- package/{state/index.d.ts → types/ng-primitives-state.d.ts} +26 -21
- package/{switch/index.d.ts → types/ng-primitives-switch.d.ts} +50 -64
- package/{tabs/index.d.ts → types/ng-primitives-tabs.d.ts} +9 -40
- package/{textarea/index.d.ts → types/ng-primitives-textarea.d.ts} +3 -10
- package/{toast/index.d.ts → types/ng-primitives-toast.d.ts} +13 -1
- package/{toggle-group/index.d.ts → types/ng-primitives-toggle-group.d.ts} +75 -89
- package/{toggle/index.d.ts → types/ng-primitives-toggle.d.ts} +50 -56
- package/{toolbar/index.d.ts → types/ng-primitives-toolbar.d.ts} +3 -10
- package/types/ng-primitives-tooltip.d.ts +691 -0
- package/pagination/index.d.ts +0 -211
- package/select/index.d.ts +0 -396
- package/tooltip/index.d.ts +0 -384
- /package/{ai/index.d.ts → types/ng-primitives-ai.d.ts} +0 -0
- /package/{common/index.d.ts → types/ng-primitives-common.d.ts} +0 -0
- /package/{date-time-luxon/index.d.ts → types/ng-primitives-date-time-luxon.d.ts} +0 -0
- /package/{date-time/index.d.ts → types/ng-primitives-date-time.d.ts} +0 -0
- /package/{input-otp/index.d.ts → types/ng-primitives-input-otp.d.ts} +0 -0
- /package/{interactions/index.d.ts → types/ng-primitives-interactions.d.ts} +0 -0
- /package/{internal/index.d.ts → types/ng-primitives-internal.d.ts} +0 -0
- /package/{listbox/index.d.ts → types/ng-primitives-listbox.d.ts} +0 -0
- /package/{meter/index.d.ts → types/ng-primitives-meter.d.ts} +0 -0
- /package/{radio/index.d.ts → types/ng-primitives-radio.d.ts} +0 -0
- /package/{resize/index.d.ts → types/ng-primitives-resize.d.ts} +0 -0
- /package/{search/index.d.ts → types/ng-primitives-search.d.ts} +0 -0
- /package/{utils/index.d.ts → types/ng-primitives-utils.d.ts} +0 -0
- /package/{index.d.ts → types/ng-primitives.d.ts} +0 -0
package/tooltip/index.d.ts
DELETED
|
@@ -1,384 +0,0 @@
|
|
|
1
|
-
import * as ng_primitives_portal from 'ng-primitives/portal';
|
|
2
|
-
import { NgpOffset, NgpFlip, NgpShift, NgpOverlayArrowState, NgpOverlayArrowProps, NgpOverlayContent, NgpOffsetInput, NgpFlipInput, NgpShiftInput, NgpPosition, NgpOverlay } from 'ng-primitives/portal';
|
|
3
|
-
export { NgpOverlayArrowProps as NgpTooltipArrowProps, NgpOverlayArrowState as NgpTooltipArrowState, injectOverlayContext as injectTooltipContext } from 'ng-primitives/portal';
|
|
4
|
-
import * as _angular_core from '@angular/core';
|
|
5
|
-
import { Provider, OnDestroy, Signal } from '@angular/core';
|
|
6
|
-
import { Placement } from '@floating-ui/dom';
|
|
7
|
-
import { NumberInput, BooleanInput } from '@angular/cdk/coercion';
|
|
8
|
-
import * as ng_primitives_state from 'ng-primitives/state';
|
|
9
|
-
|
|
10
|
-
interface NgpTooltipConfig {
|
|
11
|
-
/**
|
|
12
|
-
* Define the offset of the tooltip relative to the trigger.
|
|
13
|
-
* Can be a number (applies to mainAxis) or an object with mainAxis, crossAxis, and alignmentAxis.
|
|
14
|
-
* @default 4
|
|
15
|
-
*/
|
|
16
|
-
offset: NgpOffset;
|
|
17
|
-
/**
|
|
18
|
-
* Define the placement of the tooltip relative to the trigger.
|
|
19
|
-
* @default 'top'
|
|
20
|
-
*/
|
|
21
|
-
placement: Placement;
|
|
22
|
-
/**
|
|
23
|
-
* Define the delay before the tooltip is shown.
|
|
24
|
-
* @default 0
|
|
25
|
-
*/
|
|
26
|
-
showDelay: number;
|
|
27
|
-
/**
|
|
28
|
-
* Define the delay before the tooltip is hidden.
|
|
29
|
-
* @default 500
|
|
30
|
-
*/
|
|
31
|
-
hideDelay: number;
|
|
32
|
-
/**
|
|
33
|
-
* Define whether the tooltip should flip when there is not enough space for the tooltip.
|
|
34
|
-
* Can be a boolean to enable/disable, or an object with padding and fallbackPlacements options.
|
|
35
|
-
* @default true
|
|
36
|
-
*/
|
|
37
|
-
flip: NgpFlip;
|
|
38
|
-
/**
|
|
39
|
-
* Define the container element or selector into which the tooltip should be attached.
|
|
40
|
-
* @default 'body'
|
|
41
|
-
*/
|
|
42
|
-
container: HTMLElement | string | null;
|
|
43
|
-
/**
|
|
44
|
-
* Whether the tooltip should only show when the trigger element overflows.
|
|
45
|
-
* @default false
|
|
46
|
-
*/
|
|
47
|
-
showOnOverflow: boolean;
|
|
48
|
-
/**
|
|
49
|
-
* Whether to use the text content of the trigger element as the tooltip content.
|
|
50
|
-
* @default true
|
|
51
|
-
*/
|
|
52
|
-
useTextContent: boolean;
|
|
53
|
-
/**
|
|
54
|
-
* Configure shift behavior to keep the tooltip in view.
|
|
55
|
-
* Can be a boolean to enable/disable, or an object with padding and limiter options.
|
|
56
|
-
* @default undefined (enabled by default in overlay)
|
|
57
|
-
*/
|
|
58
|
-
shift: NgpShift;
|
|
59
|
-
/**
|
|
60
|
-
* Whether to track the trigger element position on every animation frame.
|
|
61
|
-
* Useful for moving elements like slider thumbs.
|
|
62
|
-
* @default false
|
|
63
|
-
*/
|
|
64
|
-
trackPosition: boolean;
|
|
65
|
-
/**
|
|
66
|
-
* Defines how the tooltip behaves when the window is scrolled.
|
|
67
|
-
* @default 'reposition'
|
|
68
|
-
*/
|
|
69
|
-
scrollBehavior: 'reposition' | 'close';
|
|
70
|
-
/**
|
|
71
|
-
* Cooldown duration in milliseconds.
|
|
72
|
-
* When moving from one tooltip to another within this duration,
|
|
73
|
-
* the showDelay is skipped for the new tooltip.
|
|
74
|
-
* @default 300
|
|
75
|
-
*/
|
|
76
|
-
cooldown: number;
|
|
77
|
-
/**
|
|
78
|
-
* Whether hovering the tooltip content keeps it open while moving from the trigger.
|
|
79
|
-
* @default false
|
|
80
|
-
*/
|
|
81
|
-
hoverableContent: boolean;
|
|
82
|
-
}
|
|
83
|
-
/**
|
|
84
|
-
* Provide the default Tooltip configuration
|
|
85
|
-
* @param config The Tooltip configuration
|
|
86
|
-
* @returns The provider
|
|
87
|
-
*/
|
|
88
|
-
declare function provideTooltipConfig(config: Partial<NgpTooltipConfig>): Provider[];
|
|
89
|
-
|
|
90
|
-
declare class NgpTooltipArrow {
|
|
91
|
-
/**
|
|
92
|
-
* Padding between the arrow and the edges of the tooltip.
|
|
93
|
-
* This prevents the arrow from overflowing the rounded corners.
|
|
94
|
-
*/
|
|
95
|
-
readonly padding: _angular_core.InputSignalWithTransform<number | undefined, NumberInput>;
|
|
96
|
-
private readonly state;
|
|
97
|
-
/**
|
|
98
|
-
* Set the padding between the arrow and the edges of the tooltip.
|
|
99
|
-
* @param value The padding value in pixels
|
|
100
|
-
*/
|
|
101
|
-
setPadding(value: number | undefined): void;
|
|
102
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgpTooltipArrow, never>;
|
|
103
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<NgpTooltipArrow, "[ngpTooltipArrow]", ["ngpTooltipArrow"], { "padding": { "alias": "ngpTooltipArrowPadding"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
declare const NgpTooltipArrowStateToken: _angular_core.InjectionToken<_angular_core.WritableSignal<NgpOverlayArrowState>>;
|
|
107
|
-
declare const ngpTooltipArrow: ({ padding }: NgpOverlayArrowProps) => NgpOverlayArrowState;
|
|
108
|
-
declare const injectTooltipArrowState: {
|
|
109
|
-
(): _angular_core.Signal<NgpOverlayArrowState>;
|
|
110
|
-
(options: {
|
|
111
|
-
hoisted: true;
|
|
112
|
-
optional?: boolean;
|
|
113
|
-
skipSelf?: boolean;
|
|
114
|
-
}): _angular_core.Signal<NgpOverlayArrowState | null>;
|
|
115
|
-
(options?: {
|
|
116
|
-
hoisted?: boolean;
|
|
117
|
-
optional?: boolean;
|
|
118
|
-
skipSelf?: boolean;
|
|
119
|
-
}): _angular_core.Signal<NgpOverlayArrowState> | _angular_core.Signal<NgpOverlayArrowState | null>;
|
|
120
|
-
};
|
|
121
|
-
declare const provideTooltipArrowState: (opts?: {
|
|
122
|
-
inherit?: boolean;
|
|
123
|
-
}) => _angular_core.FactoryProvider;
|
|
124
|
-
|
|
125
|
-
type TooltipInput<T> = NgpOverlayContent<T> | string | null | undefined;
|
|
126
|
-
/**
|
|
127
|
-
* Apply the `ngpTooltipTrigger` directive to an element that triggers the tooltip to show.
|
|
128
|
-
*/
|
|
129
|
-
declare class NgpTooltipTrigger<T = null> implements OnDestroy {
|
|
130
|
-
/**
|
|
131
|
-
* Maximum time allowed to cross from trigger to tooltip without pointer movement.
|
|
132
|
-
*/
|
|
133
|
-
private static readonly HOVER_BRIDGE_TIMEOUT_MS;
|
|
134
|
-
/**
|
|
135
|
-
* Access the trigger element
|
|
136
|
-
*/
|
|
137
|
-
private readonly trigger;
|
|
138
|
-
/**
|
|
139
|
-
* Access the injector.
|
|
140
|
-
*/
|
|
141
|
-
private readonly injector;
|
|
142
|
-
/**
|
|
143
|
-
* Access the view container reference.
|
|
144
|
-
*/
|
|
145
|
-
private readonly viewContainerRef;
|
|
146
|
-
/**
|
|
147
|
-
* Access the global tooltip configuration.
|
|
148
|
-
*/
|
|
149
|
-
private readonly config;
|
|
150
|
-
/**
|
|
151
|
-
* Disposables for managing event listeners and timers with automatic teardown.
|
|
152
|
-
*/
|
|
153
|
-
private readonly disposables;
|
|
154
|
-
/**
|
|
155
|
-
* Access the tooltip template ref.
|
|
156
|
-
*/
|
|
157
|
-
readonly tooltip: _angular_core.InputSignalWithTransform<string | NgpOverlayContent<T> | null, TooltipInput<T>>;
|
|
158
|
-
/**
|
|
159
|
-
* Define if the trigger should be disabled. This will prevent the tooltip from being shown or hidden from interactions.
|
|
160
|
-
* @default false
|
|
161
|
-
*/
|
|
162
|
-
readonly disabled: _angular_core.InputSignalWithTransform<boolean, BooleanInput>;
|
|
163
|
-
/**
|
|
164
|
-
* Define the placement of the tooltip relative to the trigger.
|
|
165
|
-
* @default 'top'
|
|
166
|
-
*/
|
|
167
|
-
readonly placement: _angular_core.InputSignal<NgpTooltipPlacement>;
|
|
168
|
-
/**
|
|
169
|
-
* Define the offset of the tooltip relative to the trigger.
|
|
170
|
-
* Can be a number (applies to mainAxis) or an object with mainAxis, crossAxis, and alignmentAxis.
|
|
171
|
-
* @default 0
|
|
172
|
-
*/
|
|
173
|
-
readonly offset: _angular_core.InputSignalWithTransform<NgpOffset, NgpOffsetInput>;
|
|
174
|
-
/**
|
|
175
|
-
* Define the delay before the tooltip is displayed.
|
|
176
|
-
* @default 500
|
|
177
|
-
*/
|
|
178
|
-
readonly showDelay: _angular_core.InputSignalWithTransform<number, NumberInput>;
|
|
179
|
-
/**
|
|
180
|
-
* Define the delay before the tooltip is hidden.
|
|
181
|
-
* @default 0
|
|
182
|
-
*/
|
|
183
|
-
readonly hideDelay: _angular_core.InputSignalWithTransform<number, NumberInput>;
|
|
184
|
-
/**
|
|
185
|
-
* Define whether the tooltip should flip when there is not enough space for the tooltip.
|
|
186
|
-
* Can be a boolean to enable/disable, or an object with padding and fallbackPlacements options.
|
|
187
|
-
* @default true
|
|
188
|
-
*/
|
|
189
|
-
readonly flip: _angular_core.InputSignalWithTransform<NgpFlip, NgpFlipInput>;
|
|
190
|
-
/**
|
|
191
|
-
* Configure shift behavior to keep the tooltip in view.
|
|
192
|
-
* Can be a boolean to enable/disable, or an object with padding and limiter options.
|
|
193
|
-
* @default undefined (enabled by default in overlay)
|
|
194
|
-
*/
|
|
195
|
-
readonly shift: _angular_core.InputSignalWithTransform<NgpShift, NgpShiftInput>;
|
|
196
|
-
/**
|
|
197
|
-
* Define the container in which the tooltip should be attached.
|
|
198
|
-
* @default document.body
|
|
199
|
-
*/
|
|
200
|
-
readonly container: _angular_core.InputSignal<string | HTMLElement | null>;
|
|
201
|
-
/**
|
|
202
|
-
* Define whether the tooltip should only show when the trigger element overflows.
|
|
203
|
-
* @default false
|
|
204
|
-
*/
|
|
205
|
-
readonly showOnOverflow: _angular_core.InputSignalWithTransform<boolean, BooleanInput>;
|
|
206
|
-
/**
|
|
207
|
-
* Define an anchor element for positioning the tooltip.
|
|
208
|
-
* If provided, the tooltip will be positioned relative to this element instead of the trigger.
|
|
209
|
-
*/
|
|
210
|
-
readonly anchor: _angular_core.InputSignal<HTMLElement | null>;
|
|
211
|
-
/**
|
|
212
|
-
* Provide context to the tooltip. This can be used to pass data to the tooltip content.
|
|
213
|
-
*/
|
|
214
|
-
readonly context: _angular_core.InputSignal<T | undefined>;
|
|
215
|
-
/**
|
|
216
|
-
* Define whether to use the text content of the trigger element as the tooltip content.
|
|
217
|
-
* When enabled, the tooltip will display the text content of the trigger element.
|
|
218
|
-
* @default true
|
|
219
|
-
*/
|
|
220
|
-
readonly useTextContent: _angular_core.InputSignalWithTransform<boolean, BooleanInput>;
|
|
221
|
-
/**
|
|
222
|
-
* Define whether to track the trigger element position on every animation frame.
|
|
223
|
-
* Useful for moving elements like slider thumbs.
|
|
224
|
-
* @default false
|
|
225
|
-
*/
|
|
226
|
-
readonly trackPosition: _angular_core.InputSignalWithTransform<boolean, BooleanInput>;
|
|
227
|
-
/**
|
|
228
|
-
* Programmatic position for the tooltip. When provided, the tooltip
|
|
229
|
-
* will be positioned at these coordinates instead of the trigger element.
|
|
230
|
-
* Use with trackPosition="true" for smooth cursor following.
|
|
231
|
-
*/
|
|
232
|
-
readonly position: _angular_core.InputSignal<NgpPosition | null>;
|
|
233
|
-
/**
|
|
234
|
-
* Defines how the tooltip behaves when the window is scrolled.
|
|
235
|
-
* @default 'reposition'
|
|
236
|
-
*/
|
|
237
|
-
readonly scrollBehavior: _angular_core.InputSignal<"reposition" | "close">;
|
|
238
|
-
/**
|
|
239
|
-
* Define the cooldown duration in milliseconds.
|
|
240
|
-
* When moving from one tooltip to another within this duration,
|
|
241
|
-
* the showDelay is skipped for the new tooltip.
|
|
242
|
-
* @default 300
|
|
243
|
-
*/
|
|
244
|
-
readonly cooldown: _angular_core.InputSignalWithTransform<number, NumberInput>;
|
|
245
|
-
/**
|
|
246
|
-
* Whether hovering tooltip content keeps the tooltip open.
|
|
247
|
-
* @default false
|
|
248
|
-
*/
|
|
249
|
-
readonly hoverableContent: _angular_core.InputSignalWithTransform<boolean, BooleanInput>;
|
|
250
|
-
/**
|
|
251
|
-
* The overlay that manages the tooltip
|
|
252
|
-
* @internal
|
|
253
|
-
*/
|
|
254
|
-
readonly overlay: _angular_core.WritableSignal<NgpOverlay<string | T> | null>;
|
|
255
|
-
/**
|
|
256
|
-
* The unique id of the tooltip.
|
|
257
|
-
*/
|
|
258
|
-
readonly tooltipId: _angular_core.WritableSignal<string | undefined>;
|
|
259
|
-
/**
|
|
260
|
-
* The open state of the tooltip.
|
|
261
|
-
* @internal
|
|
262
|
-
*/
|
|
263
|
-
readonly open: Signal<boolean>;
|
|
264
|
-
/**
|
|
265
|
-
* Determine if the trigger element has overflow.
|
|
266
|
-
*/
|
|
267
|
-
private readonly hasOverflow;
|
|
268
|
-
/**
|
|
269
|
-
* Tracks whether pointer is currently over trigger.
|
|
270
|
-
*/
|
|
271
|
-
private triggerHovered;
|
|
272
|
-
/**
|
|
273
|
-
* Tracks whether pointer is currently over tooltip content.
|
|
274
|
-
*/
|
|
275
|
-
private contentHovered;
|
|
276
|
-
/**
|
|
277
|
-
* Current pointer grace polygon used while crossing trigger -> tooltip.
|
|
278
|
-
*/
|
|
279
|
-
private hoverBridgePolygon;
|
|
280
|
-
/**
|
|
281
|
-
* Cleanup callback for the document pointermove listener.
|
|
282
|
-
*/
|
|
283
|
-
private removePointerMoveListener?;
|
|
284
|
-
/**
|
|
285
|
-
* Cleanup callback for the hover bridge timeout.
|
|
286
|
-
*/
|
|
287
|
-
private clearHoverBridgeTimeout?;
|
|
288
|
-
/**
|
|
289
|
-
* Store the state of the tooltip.
|
|
290
|
-
* @internal
|
|
291
|
-
*/
|
|
292
|
-
readonly state: ng_primitives_state.CreatedState<NgpTooltipTrigger<T>>;
|
|
293
|
-
constructor();
|
|
294
|
-
ngOnDestroy(): void;
|
|
295
|
-
/**
|
|
296
|
-
* Show the tooltip programmatically (skips cooldown so multiple tooltips can coexist).
|
|
297
|
-
*/
|
|
298
|
-
show(): void;
|
|
299
|
-
/**
|
|
300
|
-
* Hide the tooltip.
|
|
301
|
-
*/
|
|
302
|
-
hide(): void;
|
|
303
|
-
/**
|
|
304
|
-
* Show the tooltip from an interaction (respects disabled state, uses cooldown).
|
|
305
|
-
* @internal
|
|
306
|
-
*/
|
|
307
|
-
protected showFromInteraction(): void;
|
|
308
|
-
/**
|
|
309
|
-
* Shared show logic.
|
|
310
|
-
* @param skipCooldown When true, skip cooldown registration so multiple tooltips can coexist.
|
|
311
|
-
*/
|
|
312
|
-
private performShow;
|
|
313
|
-
/**
|
|
314
|
-
* Hide the tooltip from an interaction (respects disabled state).
|
|
315
|
-
* @internal
|
|
316
|
-
*/
|
|
317
|
-
protected hideFromInteraction(event?: MouseEvent): void;
|
|
318
|
-
/**
|
|
319
|
-
* Called by tooltip content when pointer enters the tooltip.
|
|
320
|
-
* @internal
|
|
321
|
-
*/
|
|
322
|
-
onTooltipHoverStart(): void;
|
|
323
|
-
/**
|
|
324
|
-
* Called by tooltip content when pointer leaves the tooltip.
|
|
325
|
-
* @internal
|
|
326
|
-
*/
|
|
327
|
-
onTooltipHoverEnd(): void;
|
|
328
|
-
/**
|
|
329
|
-
* Create the overlay that will contain the tooltip
|
|
330
|
-
*/
|
|
331
|
-
private createOverlay;
|
|
332
|
-
/**
|
|
333
|
-
* Set the tooltip id.
|
|
334
|
-
*/
|
|
335
|
-
setTooltipId(id: string): void;
|
|
336
|
-
/**
|
|
337
|
-
* Register document-level pointer tracking while crossing trigger -> tooltip.
|
|
338
|
-
*/
|
|
339
|
-
private registerPointerMoveListener;
|
|
340
|
-
/**
|
|
341
|
-
* Clear hover bridge state and global listeners.
|
|
342
|
-
*/
|
|
343
|
-
private clearHoverBridge;
|
|
344
|
-
/**
|
|
345
|
-
* Close if pointer leaves trigger and does not move into tooltip soon enough.
|
|
346
|
-
*/
|
|
347
|
-
private scheduleHoverBridgeCloseFallback;
|
|
348
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgpTooltipTrigger<any>, never>;
|
|
349
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<NgpTooltipTrigger<any>, "[ngpTooltipTrigger]", ["ngpTooltipTrigger"], { "tooltip": { "alias": "ngpTooltipTrigger"; "required": false; "isSignal": true; }; "disabled": { "alias": "ngpTooltipTriggerDisabled"; "required": false; "isSignal": true; }; "placement": { "alias": "ngpTooltipTriggerPlacement"; "required": false; "isSignal": true; }; "offset": { "alias": "ngpTooltipTriggerOffset"; "required": false; "isSignal": true; }; "showDelay": { "alias": "ngpTooltipTriggerShowDelay"; "required": false; "isSignal": true; }; "hideDelay": { "alias": "ngpTooltipTriggerHideDelay"; "required": false; "isSignal": true; }; "flip": { "alias": "ngpTooltipTriggerFlip"; "required": false; "isSignal": true; }; "shift": { "alias": "ngpTooltipTriggerShift"; "required": false; "isSignal": true; }; "container": { "alias": "ngpTooltipTriggerContainer"; "required": false; "isSignal": true; }; "showOnOverflow": { "alias": "ngpTooltipTriggerShowOnOverflow"; "required": false; "isSignal": true; }; "anchor": { "alias": "ngpTooltipTriggerAnchor"; "required": false; "isSignal": true; }; "context": { "alias": "ngpTooltipTriggerContext"; "required": false; "isSignal": true; }; "useTextContent": { "alias": "ngpTooltipTriggerUseTextContent"; "required": false; "isSignal": true; }; "trackPosition": { "alias": "ngpTooltipTriggerTrackPosition"; "required": false; "isSignal": true; }; "position": { "alias": "ngpTooltipTriggerPosition"; "required": false; "isSignal": true; }; "scrollBehavior": { "alias": "ngpTooltipTriggerScrollBehavior"; "required": false; "isSignal": true; }; "cooldown": { "alias": "ngpTooltipTriggerCooldown"; "required": false; "isSignal": true; }; "hoverableContent": { "alias": "ngpTooltipTriggerHoverableContent"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
350
|
-
}
|
|
351
|
-
type NgpTooltipPlacement = 'top' | 'right' | 'bottom' | 'left' | 'top-start' | 'top-end' | 'right-start' | 'right-end' | 'bottom-start' | 'bottom-end' | 'left-start' | 'left-end';
|
|
352
|
-
|
|
353
|
-
/**
|
|
354
|
-
* Provides the TooltipTrigger state.
|
|
355
|
-
*/
|
|
356
|
-
declare const provideTooltipTriggerState: (options?: ng_primitives_state.CreateStateProviderOptions) => _angular_core.FactoryProvider;
|
|
357
|
-
/**
|
|
358
|
-
* Injects the TooltipTrigger state.
|
|
359
|
-
*/
|
|
360
|
-
declare const injectTooltipTriggerState: <U = NgpTooltipTrigger<unknown>>(injectOptions?: _angular_core.InjectOptions) => _angular_core.Signal<ng_primitives_state.State<U>>;
|
|
361
|
-
|
|
362
|
-
/**
|
|
363
|
-
* Apply the `ngpTooltip` directive to an element that represents the tooltip. This typically would be a `div` inside an `ng-template`.
|
|
364
|
-
*/
|
|
365
|
-
declare class NgpTooltip {
|
|
366
|
-
/**
|
|
367
|
-
* Access the overlay.
|
|
368
|
-
*/
|
|
369
|
-
protected readonly overlay: ng_primitives_portal.NgpOverlay<unknown>;
|
|
370
|
-
/**
|
|
371
|
-
* Access the tooltip trigger state.
|
|
372
|
-
*/
|
|
373
|
-
private readonly tooltipTrigger;
|
|
374
|
-
/**
|
|
375
|
-
* The unique id of the tooltip.
|
|
376
|
-
*/
|
|
377
|
-
readonly id: _angular_core.InputSignal<string>;
|
|
378
|
-
constructor();
|
|
379
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgpTooltip, never>;
|
|
380
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<NgpTooltip, "[ngpTooltip]", ["ngpTooltip"], { "id": { "alias": "id"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
381
|
-
}
|
|
382
|
-
|
|
383
|
-
export { NgpTooltip, NgpTooltipArrow, NgpTooltipArrowStateToken, NgpTooltipTrigger, injectTooltipArrowState, injectTooltipTriggerState, ngpTooltipArrow, provideTooltipArrowState, provideTooltipConfig, provideTooltipTriggerState };
|
|
384
|
-
export type { NgpTooltipConfig, NgpTooltipPlacement };
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|