vue-tippy 4.13.0 → 4.16.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/dist/src/components/Tippy.d.ts +421 -0
- package/dist/src/components/Tippy.d.ts.map +1 -0
- package/dist/src/components/TippySingleton.d.ts +266 -0
- package/dist/src/components/TippySingleton.d.ts.map +1 -0
- package/dist/src/composables/index.d.ts +4 -0
- package/dist/src/composables/index.d.ts.map +1 -0
- package/dist/src/composables/useSingleton.d.ts +6 -0
- package/dist/src/composables/useSingleton.d.ts.map +1 -0
- package/dist/src/composables/useTippy.d.ts +27 -0
- package/dist/src/composables/useTippy.d.ts.map +1 -0
- package/dist/src/composables/useTippyComponent.d.ts +8 -0
- package/dist/src/composables/useTippyComponent.d.ts.map +1 -0
- package/dist/src/directive/index.d.ts +4 -0
- package/dist/src/directive/index.d.ts.map +1 -0
- package/dist/src/index.d.ts +13 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/plugin/index.d.ts +4 -0
- package/dist/src/plugin/index.d.ts.map +1 -0
- package/dist/src/types/index.d.ts +21 -0
- package/dist/src/types/index.d.ts.map +1 -0
- package/dist/vue-tippy.cjs +4789 -0
- package/dist/vue-tippy.d.ts +750 -0
- package/dist/vue-tippy.esm-browser.js +4460 -0
- package/dist/vue-tippy.esm.js +31 -6
- package/dist/vue-tippy.iife.js +4792 -0
- package/dist/vue-tippy.iife.prod.js +6 -0
- package/dist/vue-tippy.min.js +1 -1
- package/dist/vue-tippy.mjs +4460 -0
- package/dist/vue-tippy.prod.cjs +4473 -0
- package/dist/vue-tippy.umd.js +31 -6
- package/package.json +1 -1
- package/src/components/Tippy.vue +21 -15
- package/src/components/TippyNoStyles.vue +21 -15
- package/src/index.js +2 -0
@@ -0,0 +1,421 @@
|
|
1
|
+
import { UnwrapNestedRefs, PropType } from 'vue';
|
2
|
+
import { TippyOptions } from '../types';
|
3
|
+
import { useTippy } from '../composables';
|
4
|
+
declare module '@vue/runtime-core' {
|
5
|
+
interface ComponentCustomProps extends TippyOptions {
|
6
|
+
to: string | Element;
|
7
|
+
tag: string;
|
8
|
+
contentTag: string;
|
9
|
+
contentClass: string;
|
10
|
+
}
|
11
|
+
interface ComponentCustomProperties extends UnwrapNestedRefs<ReturnType<typeof useTippy>> {
|
12
|
+
}
|
13
|
+
}
|
14
|
+
declare const TippyComponent: import("vue").DefineComponent<{
|
15
|
+
to: {
|
16
|
+
type: PropType<string | Element>;
|
17
|
+
};
|
18
|
+
tag: {
|
19
|
+
type: StringConstructor;
|
20
|
+
default: string;
|
21
|
+
};
|
22
|
+
contentTag: {
|
23
|
+
type: StringConstructor;
|
24
|
+
default: string;
|
25
|
+
};
|
26
|
+
contentClass: {
|
27
|
+
type: StringConstructor;
|
28
|
+
default: null;
|
29
|
+
};
|
30
|
+
appendTo: {
|
31
|
+
default: () => Element | "parent" | ((ref: Element) => Element);
|
32
|
+
};
|
33
|
+
aria: {
|
34
|
+
default: () => {
|
35
|
+
content?: "auto" | "describedby" | "labelledby" | null | undefined;
|
36
|
+
expanded?: boolean | "auto" | undefined;
|
37
|
+
};
|
38
|
+
};
|
39
|
+
delay: {
|
40
|
+
default: () => number | [number, number];
|
41
|
+
};
|
42
|
+
duration: {
|
43
|
+
default: () => number | [number, number];
|
44
|
+
};
|
45
|
+
getReferenceClientRect: {
|
46
|
+
default: () => import("tippy.js").GetReferenceClientRect | null;
|
47
|
+
};
|
48
|
+
hideOnClick: {
|
49
|
+
type: (StringConstructor | BooleanConstructor)[];
|
50
|
+
default: () => boolean | "toggle";
|
51
|
+
};
|
52
|
+
ignoreAttributes: {
|
53
|
+
type: BooleanConstructor;
|
54
|
+
default: () => boolean;
|
55
|
+
};
|
56
|
+
interactive: {
|
57
|
+
type: BooleanConstructor;
|
58
|
+
default: () => boolean;
|
59
|
+
};
|
60
|
+
interactiveBorder: {
|
61
|
+
default: () => number;
|
62
|
+
};
|
63
|
+
interactiveDebounce: {
|
64
|
+
default: () => number;
|
65
|
+
};
|
66
|
+
moveTransition: {
|
67
|
+
default: () => string;
|
68
|
+
};
|
69
|
+
offset: {
|
70
|
+
default: () => [number, number] | (({ placement, popper, reference, }: {
|
71
|
+
placement: import("@popperjs/core").Placement;
|
72
|
+
popper: import("@popperjs/core").Rect;
|
73
|
+
reference: import("@popperjs/core").Rect;
|
74
|
+
}) => [number, number]);
|
75
|
+
};
|
76
|
+
onAfterUpdate: {
|
77
|
+
default: () => (instance: import("tippy.js").Instance<import("tippy.js").Props>, partialProps: Partial<import("tippy.js").Props>) => void;
|
78
|
+
};
|
79
|
+
onBeforeUpdate: {
|
80
|
+
default: () => (instance: import("tippy.js").Instance<import("tippy.js").Props>, partialProps: Partial<import("tippy.js").Props>) => void;
|
81
|
+
};
|
82
|
+
onCreate: {
|
83
|
+
default: () => (instance: import("tippy.js").Instance<import("tippy.js").Props>) => void;
|
84
|
+
};
|
85
|
+
onDestroy: {
|
86
|
+
default: () => (instance: import("tippy.js").Instance<import("tippy.js").Props>) => void;
|
87
|
+
};
|
88
|
+
onHidden: {
|
89
|
+
default: () => (instance: import("tippy.js").Instance<import("tippy.js").Props>) => void;
|
90
|
+
};
|
91
|
+
onHide: {
|
92
|
+
default: () => (instance: import("tippy.js").Instance<import("tippy.js").Props>) => false | void;
|
93
|
+
};
|
94
|
+
onMount: {
|
95
|
+
default: () => (instance: import("tippy.js").Instance<import("tippy.js").Props>) => void;
|
96
|
+
};
|
97
|
+
onShow: {
|
98
|
+
default: () => (instance: import("tippy.js").Instance<import("tippy.js").Props>) => false | void;
|
99
|
+
};
|
100
|
+
onShown: {
|
101
|
+
default: () => (instance: import("tippy.js").Instance<import("tippy.js").Props>) => void;
|
102
|
+
};
|
103
|
+
onTrigger: {
|
104
|
+
default: () => (instance: import("tippy.js").Instance<import("tippy.js").Props>, event: Event) => void;
|
105
|
+
};
|
106
|
+
onUntrigger: {
|
107
|
+
default: () => (instance: import("tippy.js").Instance<import("tippy.js").Props>, event: Event) => void;
|
108
|
+
};
|
109
|
+
onClickOutside: {
|
110
|
+
default: () => (instance: import("tippy.js").Instance<import("tippy.js").Props>, event: Event) => void;
|
111
|
+
};
|
112
|
+
placement: {
|
113
|
+
default: () => import("@popperjs/core").Placement;
|
114
|
+
};
|
115
|
+
plugins: {
|
116
|
+
default: () => import("tippy.js").Plugin<unknown>[];
|
117
|
+
};
|
118
|
+
popperOptions: {
|
119
|
+
default: () => Partial<import("@popperjs/core").Options>;
|
120
|
+
};
|
121
|
+
render: {
|
122
|
+
default: () => ((instance: import("tippy.js").Instance<import("tippy.js").Props>) => {
|
123
|
+
popper: import("tippy.js").PopperElement<import("tippy.js").Props>;
|
124
|
+
onUpdate?: ((prevProps: import("tippy.js").Props, nextProps: import("tippy.js").Props) => void) | undefined;
|
125
|
+
}) | null;
|
126
|
+
};
|
127
|
+
showOnCreate: {
|
128
|
+
type: BooleanConstructor;
|
129
|
+
default: () => boolean;
|
130
|
+
};
|
131
|
+
touch: {
|
132
|
+
type: (StringConstructor | BooleanConstructor | ArrayConstructor)[];
|
133
|
+
default: () => boolean | "hold" | ["hold", number];
|
134
|
+
};
|
135
|
+
trigger: {
|
136
|
+
default: () => string;
|
137
|
+
};
|
138
|
+
triggerTarget: {
|
139
|
+
default: () => Element | Element[] | null;
|
140
|
+
};
|
141
|
+
animateFill: {
|
142
|
+
type: BooleanConstructor;
|
143
|
+
default: () => boolean;
|
144
|
+
};
|
145
|
+
followCursor: {
|
146
|
+
type: (StringConstructor | BooleanConstructor)[];
|
147
|
+
default: () => boolean | "horizontal" | "vertical" | "initial";
|
148
|
+
};
|
149
|
+
inlinePositioning: {
|
150
|
+
type: BooleanConstructor;
|
151
|
+
default: () => boolean;
|
152
|
+
};
|
153
|
+
sticky: {
|
154
|
+
type: (StringConstructor | BooleanConstructor)[];
|
155
|
+
default: () => boolean | "reference" | "popper";
|
156
|
+
};
|
157
|
+
allowHTML: {
|
158
|
+
type: BooleanConstructor;
|
159
|
+
default: () => boolean;
|
160
|
+
};
|
161
|
+
animation: {
|
162
|
+
default: () => string | boolean;
|
163
|
+
};
|
164
|
+
arrow: {
|
165
|
+
default: () => string | boolean | DocumentFragment | SVGElement;
|
166
|
+
};
|
167
|
+
content: {
|
168
|
+
default: () => import("tippy.js").Content;
|
169
|
+
};
|
170
|
+
inertia: {
|
171
|
+
default: () => boolean;
|
172
|
+
};
|
173
|
+
maxWidth: {
|
174
|
+
default: () => string | number;
|
175
|
+
};
|
176
|
+
role: {
|
177
|
+
default: () => string;
|
178
|
+
};
|
179
|
+
theme: {
|
180
|
+
default: () => string;
|
181
|
+
};
|
182
|
+
zIndex: {
|
183
|
+
default: () => number;
|
184
|
+
};
|
185
|
+
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
186
|
+
[key: string]: any;
|
187
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "state"[], "state", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
188
|
+
to: {
|
189
|
+
type: PropType<string | Element>;
|
190
|
+
};
|
191
|
+
tag: {
|
192
|
+
type: StringConstructor;
|
193
|
+
default: string;
|
194
|
+
};
|
195
|
+
contentTag: {
|
196
|
+
type: StringConstructor;
|
197
|
+
default: string;
|
198
|
+
};
|
199
|
+
contentClass: {
|
200
|
+
type: StringConstructor;
|
201
|
+
default: null;
|
202
|
+
};
|
203
|
+
appendTo: {
|
204
|
+
default: () => Element | "parent" | ((ref: Element) => Element);
|
205
|
+
};
|
206
|
+
aria: {
|
207
|
+
default: () => {
|
208
|
+
content?: "auto" | "describedby" | "labelledby" | null | undefined;
|
209
|
+
expanded?: boolean | "auto" | undefined;
|
210
|
+
};
|
211
|
+
};
|
212
|
+
delay: {
|
213
|
+
default: () => number | [number, number];
|
214
|
+
};
|
215
|
+
duration: {
|
216
|
+
default: () => number | [number, number];
|
217
|
+
};
|
218
|
+
getReferenceClientRect: {
|
219
|
+
default: () => import("tippy.js").GetReferenceClientRect | null;
|
220
|
+
};
|
221
|
+
hideOnClick: {
|
222
|
+
type: (StringConstructor | BooleanConstructor)[];
|
223
|
+
default: () => boolean | "toggle";
|
224
|
+
};
|
225
|
+
ignoreAttributes: {
|
226
|
+
type: BooleanConstructor;
|
227
|
+
default: () => boolean;
|
228
|
+
};
|
229
|
+
interactive: {
|
230
|
+
type: BooleanConstructor;
|
231
|
+
default: () => boolean;
|
232
|
+
};
|
233
|
+
interactiveBorder: {
|
234
|
+
default: () => number;
|
235
|
+
};
|
236
|
+
interactiveDebounce: {
|
237
|
+
default: () => number;
|
238
|
+
};
|
239
|
+
moveTransition: {
|
240
|
+
default: () => string;
|
241
|
+
};
|
242
|
+
offset: {
|
243
|
+
default: () => [number, number] | (({ placement, popper, reference, }: {
|
244
|
+
placement: import("@popperjs/core").Placement;
|
245
|
+
popper: import("@popperjs/core").Rect;
|
246
|
+
reference: import("@popperjs/core").Rect;
|
247
|
+
}) => [number, number]);
|
248
|
+
};
|
249
|
+
onAfterUpdate: {
|
250
|
+
default: () => (instance: import("tippy.js").Instance<import("tippy.js").Props>, partialProps: Partial<import("tippy.js").Props>) => void;
|
251
|
+
};
|
252
|
+
onBeforeUpdate: {
|
253
|
+
default: () => (instance: import("tippy.js").Instance<import("tippy.js").Props>, partialProps: Partial<import("tippy.js").Props>) => void;
|
254
|
+
};
|
255
|
+
onCreate: {
|
256
|
+
default: () => (instance: import("tippy.js").Instance<import("tippy.js").Props>) => void;
|
257
|
+
};
|
258
|
+
onDestroy: {
|
259
|
+
default: () => (instance: import("tippy.js").Instance<import("tippy.js").Props>) => void;
|
260
|
+
};
|
261
|
+
onHidden: {
|
262
|
+
default: () => (instance: import("tippy.js").Instance<import("tippy.js").Props>) => void;
|
263
|
+
};
|
264
|
+
onHide: {
|
265
|
+
default: () => (instance: import("tippy.js").Instance<import("tippy.js").Props>) => false | void;
|
266
|
+
};
|
267
|
+
onMount: {
|
268
|
+
default: () => (instance: import("tippy.js").Instance<import("tippy.js").Props>) => void;
|
269
|
+
};
|
270
|
+
onShow: {
|
271
|
+
default: () => (instance: import("tippy.js").Instance<import("tippy.js").Props>) => false | void;
|
272
|
+
};
|
273
|
+
onShown: {
|
274
|
+
default: () => (instance: import("tippy.js").Instance<import("tippy.js").Props>) => void;
|
275
|
+
};
|
276
|
+
onTrigger: {
|
277
|
+
default: () => (instance: import("tippy.js").Instance<import("tippy.js").Props>, event: Event) => void;
|
278
|
+
};
|
279
|
+
onUntrigger: {
|
280
|
+
default: () => (instance: import("tippy.js").Instance<import("tippy.js").Props>, event: Event) => void;
|
281
|
+
};
|
282
|
+
onClickOutside: {
|
283
|
+
default: () => (instance: import("tippy.js").Instance<import("tippy.js").Props>, event: Event) => void;
|
284
|
+
};
|
285
|
+
placement: {
|
286
|
+
default: () => import("@popperjs/core").Placement;
|
287
|
+
};
|
288
|
+
plugins: {
|
289
|
+
default: () => import("tippy.js").Plugin<unknown>[];
|
290
|
+
};
|
291
|
+
popperOptions: {
|
292
|
+
default: () => Partial<import("@popperjs/core").Options>;
|
293
|
+
};
|
294
|
+
render: {
|
295
|
+
default: () => ((instance: import("tippy.js").Instance<import("tippy.js").Props>) => {
|
296
|
+
popper: import("tippy.js").PopperElement<import("tippy.js").Props>;
|
297
|
+
onUpdate?: ((prevProps: import("tippy.js").Props, nextProps: import("tippy.js").Props) => void) | undefined;
|
298
|
+
}) | null;
|
299
|
+
};
|
300
|
+
showOnCreate: {
|
301
|
+
type: BooleanConstructor;
|
302
|
+
default: () => boolean;
|
303
|
+
};
|
304
|
+
touch: {
|
305
|
+
type: (StringConstructor | BooleanConstructor | ArrayConstructor)[];
|
306
|
+
default: () => boolean | "hold" | ["hold", number];
|
307
|
+
};
|
308
|
+
trigger: {
|
309
|
+
default: () => string;
|
310
|
+
};
|
311
|
+
triggerTarget: {
|
312
|
+
default: () => Element | Element[] | null;
|
313
|
+
};
|
314
|
+
animateFill: {
|
315
|
+
type: BooleanConstructor;
|
316
|
+
default: () => boolean;
|
317
|
+
};
|
318
|
+
followCursor: {
|
319
|
+
type: (StringConstructor | BooleanConstructor)[];
|
320
|
+
default: () => boolean | "horizontal" | "vertical" | "initial";
|
321
|
+
};
|
322
|
+
inlinePositioning: {
|
323
|
+
type: BooleanConstructor;
|
324
|
+
default: () => boolean;
|
325
|
+
};
|
326
|
+
sticky: {
|
327
|
+
type: (StringConstructor | BooleanConstructor)[];
|
328
|
+
default: () => boolean | "reference" | "popper";
|
329
|
+
};
|
330
|
+
allowHTML: {
|
331
|
+
type: BooleanConstructor;
|
332
|
+
default: () => boolean;
|
333
|
+
};
|
334
|
+
animation: {
|
335
|
+
default: () => string | boolean;
|
336
|
+
};
|
337
|
+
arrow: {
|
338
|
+
default: () => string | boolean | DocumentFragment | SVGElement;
|
339
|
+
};
|
340
|
+
content: {
|
341
|
+
default: () => import("tippy.js").Content;
|
342
|
+
};
|
343
|
+
inertia: {
|
344
|
+
default: () => boolean;
|
345
|
+
};
|
346
|
+
maxWidth: {
|
347
|
+
default: () => string | number;
|
348
|
+
};
|
349
|
+
role: {
|
350
|
+
default: () => string;
|
351
|
+
};
|
352
|
+
theme: {
|
353
|
+
default: () => string;
|
354
|
+
};
|
355
|
+
zIndex: {
|
356
|
+
default: () => number;
|
357
|
+
};
|
358
|
+
}>> & {
|
359
|
+
onState?: ((...args: any[]) => any) | undefined;
|
360
|
+
}, {
|
361
|
+
content: import("tippy.js").Content;
|
362
|
+
triggerTarget: Element | Element[];
|
363
|
+
getReferenceClientRect: import("tippy.js").GetReferenceClientRect;
|
364
|
+
animateFill: boolean;
|
365
|
+
appendTo: Element | "parent" | ((ref: Element) => Element);
|
366
|
+
aria: {
|
367
|
+
content?: "auto" | "describedby" | "labelledby" | null | undefined;
|
368
|
+
expanded?: boolean | "auto" | undefined;
|
369
|
+
};
|
370
|
+
delay: number | [number, number];
|
371
|
+
duration: number | [number, number];
|
372
|
+
followCursor: string | boolean;
|
373
|
+
hideOnClick: string | boolean;
|
374
|
+
ignoreAttributes: boolean;
|
375
|
+
inlinePositioning: boolean;
|
376
|
+
interactive: boolean;
|
377
|
+
interactiveBorder: number;
|
378
|
+
interactiveDebounce: number;
|
379
|
+
moveTransition: string;
|
380
|
+
offset: [number, number] | (({ placement, popper, reference, }: {
|
381
|
+
placement: import("@popperjs/core").Placement;
|
382
|
+
popper: import("@popperjs/core").Rect;
|
383
|
+
reference: import("@popperjs/core").Rect;
|
384
|
+
}) => [number, number]);
|
385
|
+
placement: import("@popperjs/core").Placement;
|
386
|
+
plugins: import("tippy.js").Plugin<unknown>[];
|
387
|
+
popperOptions: Partial<import("@popperjs/core").Options>;
|
388
|
+
render: (instance: import("tippy.js").Instance<import("tippy.js").Props>) => {
|
389
|
+
popper: import("tippy.js").PopperElement<import("tippy.js").Props>;
|
390
|
+
onUpdate?: ((prevProps: import("tippy.js").Props, nextProps: import("tippy.js").Props) => void) | undefined;
|
391
|
+
};
|
392
|
+
showOnCreate: boolean;
|
393
|
+
sticky: string | boolean;
|
394
|
+
touch: string | boolean | unknown[];
|
395
|
+
trigger: string;
|
396
|
+
onAfterUpdate: (instance: import("tippy.js").Instance<import("tippy.js").Props>, partialProps: Partial<import("tippy.js").Props>) => void;
|
397
|
+
onBeforeUpdate: (instance: import("tippy.js").Instance<import("tippy.js").Props>, partialProps: Partial<import("tippy.js").Props>) => void;
|
398
|
+
onCreate: (instance: import("tippy.js").Instance<import("tippy.js").Props>) => void;
|
399
|
+
onDestroy: (instance: import("tippy.js").Instance<import("tippy.js").Props>) => void;
|
400
|
+
onHidden: (instance: import("tippy.js").Instance<import("tippy.js").Props>) => void;
|
401
|
+
onHide: (instance: import("tippy.js").Instance<import("tippy.js").Props>) => false | void;
|
402
|
+
onMount: (instance: import("tippy.js").Instance<import("tippy.js").Props>) => void;
|
403
|
+
onShow: (instance: import("tippy.js").Instance<import("tippy.js").Props>) => false | void;
|
404
|
+
onShown: (instance: import("tippy.js").Instance<import("tippy.js").Props>) => void;
|
405
|
+
onTrigger: (instance: import("tippy.js").Instance<import("tippy.js").Props>, event: Event) => void;
|
406
|
+
onUntrigger: (instance: import("tippy.js").Instance<import("tippy.js").Props>, event: Event) => void;
|
407
|
+
onClickOutside: (instance: import("tippy.js").Instance<import("tippy.js").Props>, event: Event) => void;
|
408
|
+
allowHTML: boolean;
|
409
|
+
animation: string | boolean;
|
410
|
+
arrow: string | boolean | DocumentFragment | SVGElement;
|
411
|
+
inertia: boolean;
|
412
|
+
maxWidth: string | number;
|
413
|
+
role: string;
|
414
|
+
theme: string;
|
415
|
+
zIndex: number;
|
416
|
+
tag: string;
|
417
|
+
contentTag: string;
|
418
|
+
contentClass: string;
|
419
|
+
}>;
|
420
|
+
export default TippyComponent;
|
421
|
+
//# sourceMappingURL=Tippy.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Tippy.d.ts","sourceRoot":"","sources":["Tippy.ts"],"names":[],"mappings":"AAAA,OAAO,EAA2B,gBAAgB,EAA+C,QAAQ,EAAE,MAAM,KAAK,CAAA;AACtH,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AACvC,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AAGzC,OAAO,QAAQ,mBAAmB,CAAC;IACjC,UAAU,oBAAqB,SAAQ,YAAY;QACjD,EAAE,EAAE,MAAM,GAAG,OAAO,CAAA;QACpB,GAAG,EAAE,MAAM,CAAA;QACX,UAAU,EAAE,MAAM,CAAA;QAClB,YAAY,EAAE,MAAM,CAAA;KACrB;IACD,UAAU,yBAA0B,SAAQ,gBAAgB,CAAC,UAAU,CAAC,OAAO,QAAQ,CAAC,CAAC;KAAI;CAC9F;AAGD,QAAA,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2IlB,CAAA;AAEF,eAAe,cAAc,CAAA"}
|
@@ -0,0 +1,266 @@
|
|
1
|
+
import { Instance } from 'tippy.js';
|
2
|
+
import { ComponentObjectPropsOptions } from 'vue';
|
3
|
+
import { TippyOptions } from '../types';
|
4
|
+
declare module '@vue/runtime-core' {
|
5
|
+
interface ComponentCustomProps extends TippyOptions {
|
6
|
+
}
|
7
|
+
}
|
8
|
+
declare const TippySingleton: import("vue").DefineComponent<ComponentObjectPropsOptions<Record<string, unknown>>, {
|
9
|
+
instances: import("vue").Ref<{
|
10
|
+
clearDelayTimeouts: () => void;
|
11
|
+
destroy: () => void;
|
12
|
+
disable: () => void;
|
13
|
+
enable: () => void;
|
14
|
+
hide: () => void;
|
15
|
+
hideWithInteractivity: (event: MouseEvent) => void;
|
16
|
+
id: number;
|
17
|
+
plugins: {
|
18
|
+
name?: string | undefined;
|
19
|
+
defaultValue?: any;
|
20
|
+
fn: (instance: Instance<any>) => Partial<import("tippy.js").LifecycleHooks<any>>;
|
21
|
+
}[];
|
22
|
+
popper: import("tippy.js").PopperElement<any>;
|
23
|
+
popperInstance: {
|
24
|
+
state: {
|
25
|
+
elements: {
|
26
|
+
reference: Element | {
|
27
|
+
getBoundingClientRect: () => ClientRect | DOMRect;
|
28
|
+
contextElement?: Element | undefined;
|
29
|
+
};
|
30
|
+
popper: HTMLElement;
|
31
|
+
arrow?: HTMLElement | undefined;
|
32
|
+
};
|
33
|
+
options: {
|
34
|
+
placement: import("@popperjs/core").Placement;
|
35
|
+
modifiers: any[];
|
36
|
+
strategy: import("@popperjs/core").PositioningStrategy;
|
37
|
+
onFirstUpdate?: ((arg0: Partial<import("@popperjs/core").State>) => void) | undefined;
|
38
|
+
};
|
39
|
+
placement: import("@popperjs/core").Placement;
|
40
|
+
strategy: import("@popperjs/core").PositioningStrategy;
|
41
|
+
orderedModifiers: {
|
42
|
+
name: any;
|
43
|
+
enabled: boolean;
|
44
|
+
phase: import("@popperjs/core").ModifierPhases;
|
45
|
+
requires?: string[] | undefined;
|
46
|
+
requiresIfExists?: string[] | undefined;
|
47
|
+
fn: (arg0: import("@popperjs/core").ModifierArguments<any>) => void | import("@popperjs/core").State;
|
48
|
+
effect?: ((arg0: import("@popperjs/core").ModifierArguments<any>) => void | (() => void)) | undefined;
|
49
|
+
options?: Partial<any> | undefined;
|
50
|
+
data?: import("@popperjs/core").Obj | undefined;
|
51
|
+
}[];
|
52
|
+
rects: {
|
53
|
+
reference: {
|
54
|
+
width: number;
|
55
|
+
height: number;
|
56
|
+
x: number;
|
57
|
+
y: number;
|
58
|
+
};
|
59
|
+
popper: {
|
60
|
+
width: number;
|
61
|
+
height: number;
|
62
|
+
x: number;
|
63
|
+
y: number;
|
64
|
+
};
|
65
|
+
};
|
66
|
+
scrollParents: {
|
67
|
+
reference: (Element | {
|
68
|
+
innerHeight: number;
|
69
|
+
offsetHeight: number;
|
70
|
+
innerWidth: number;
|
71
|
+
offsetWidth: number;
|
72
|
+
pageXOffset: number;
|
73
|
+
pageYOffset: number;
|
74
|
+
getComputedStyle: typeof getComputedStyle;
|
75
|
+
addEventListener: (type: any, listener: any, optionsOrUseCapture?: any) => void;
|
76
|
+
removeEventListener: (type: any, listener: any, optionsOrUseCapture?: any) => void;
|
77
|
+
Element: Element;
|
78
|
+
HTMLElement: HTMLElement;
|
79
|
+
Node: Node;
|
80
|
+
toString: () => "[object Window]";
|
81
|
+
devicePixelRatio: number;
|
82
|
+
visualViewport?: {
|
83
|
+
addEventListener: (type: string, listener: EventListener | EventListenerObject | null, options?: boolean | AddEventListenerOptions | undefined) => void;
|
84
|
+
dispatchEvent: (event: Event) => boolean;
|
85
|
+
removeEventListener: (type: string, callback: EventListener | EventListenerObject | null, options?: boolean | EventListenerOptions | undefined) => void;
|
86
|
+
width: number;
|
87
|
+
height: number;
|
88
|
+
offsetLeft: number;
|
89
|
+
offsetTop: number;
|
90
|
+
scale: number;
|
91
|
+
} | undefined;
|
92
|
+
ShadowRoot: ShadowRoot;
|
93
|
+
} | {
|
94
|
+
addEventListener: (type: string, listener: EventListener | EventListenerObject | null, options?: boolean | AddEventListenerOptions | undefined) => void;
|
95
|
+
dispatchEvent: (event: Event) => boolean;
|
96
|
+
removeEventListener: (type: string, callback: EventListener | EventListenerObject | null, options?: boolean | EventListenerOptions | undefined) => void;
|
97
|
+
width: number;
|
98
|
+
height: number;
|
99
|
+
offsetLeft: number;
|
100
|
+
offsetTop: number;
|
101
|
+
scale: number;
|
102
|
+
})[];
|
103
|
+
popper: (Element | {
|
104
|
+
innerHeight: number;
|
105
|
+
offsetHeight: number;
|
106
|
+
innerWidth: number;
|
107
|
+
offsetWidth: number;
|
108
|
+
pageXOffset: number;
|
109
|
+
pageYOffset: number;
|
110
|
+
getComputedStyle: typeof getComputedStyle;
|
111
|
+
addEventListener: (type: any, listener: any, optionsOrUseCapture?: any) => void;
|
112
|
+
removeEventListener: (type: any, listener: any, optionsOrUseCapture?: any) => void;
|
113
|
+
Element: Element;
|
114
|
+
HTMLElement: HTMLElement;
|
115
|
+
Node: Node;
|
116
|
+
toString: () => "[object Window]";
|
117
|
+
devicePixelRatio: number;
|
118
|
+
visualViewport?: {
|
119
|
+
addEventListener: (type: string, listener: EventListener | EventListenerObject | null, options?: boolean | AddEventListenerOptions | undefined) => void;
|
120
|
+
dispatchEvent: (event: Event) => boolean;
|
121
|
+
removeEventListener: (type: string, callback: EventListener | EventListenerObject | null, options?: boolean | EventListenerOptions | undefined) => void;
|
122
|
+
width: number;
|
123
|
+
height: number;
|
124
|
+
offsetLeft: number;
|
125
|
+
offsetTop: number;
|
126
|
+
scale: number;
|
127
|
+
} | undefined;
|
128
|
+
ShadowRoot: ShadowRoot;
|
129
|
+
} | {
|
130
|
+
addEventListener: (type: string, listener: EventListener | EventListenerObject | null, options?: boolean | AddEventListenerOptions | undefined) => void;
|
131
|
+
dispatchEvent: (event: Event) => boolean;
|
132
|
+
removeEventListener: (type: string, callback: EventListener | EventListenerObject | null, options?: boolean | EventListenerOptions | undefined) => void;
|
133
|
+
width: number;
|
134
|
+
height: number;
|
135
|
+
offsetLeft: number;
|
136
|
+
offsetTop: number;
|
137
|
+
scale: number;
|
138
|
+
})[];
|
139
|
+
};
|
140
|
+
styles: {
|
141
|
+
[key: string]: Partial<CSSStyleDeclaration>;
|
142
|
+
};
|
143
|
+
attributes: {
|
144
|
+
[key: string]: {
|
145
|
+
[key: string]: string | boolean;
|
146
|
+
};
|
147
|
+
};
|
148
|
+
modifiersData: {
|
149
|
+
[x: string]: any;
|
150
|
+
arrow?: {
|
151
|
+
x?: number | undefined;
|
152
|
+
y?: number | undefined;
|
153
|
+
centerOffset: number;
|
154
|
+
} | undefined;
|
155
|
+
hide?: {
|
156
|
+
isReferenceHidden: boolean;
|
157
|
+
hasPopperEscaped: boolean;
|
158
|
+
referenceClippingOffsets: {
|
159
|
+
top: number;
|
160
|
+
left: number;
|
161
|
+
right: number;
|
162
|
+
bottom: number;
|
163
|
+
};
|
164
|
+
popperEscapeOffsets: {
|
165
|
+
top: number;
|
166
|
+
left: number;
|
167
|
+
right: number;
|
168
|
+
bottom: number;
|
169
|
+
};
|
170
|
+
} | undefined;
|
171
|
+
offset?: {
|
172
|
+
auto?: {
|
173
|
+
y: number;
|
174
|
+
x: number;
|
175
|
+
} | undefined;
|
176
|
+
"auto-start"?: {
|
177
|
+
y: number;
|
178
|
+
x: number;
|
179
|
+
} | undefined;
|
180
|
+
"auto-end"?: {
|
181
|
+
y: number;
|
182
|
+
x: number;
|
183
|
+
} | undefined;
|
184
|
+
top?: {
|
185
|
+
y: number;
|
186
|
+
x: number;
|
187
|
+
} | undefined;
|
188
|
+
bottom?: {
|
189
|
+
y: number;
|
190
|
+
x: number;
|
191
|
+
} | undefined;
|
192
|
+
right?: {
|
193
|
+
y: number;
|
194
|
+
x: number;
|
195
|
+
} | undefined;
|
196
|
+
left?: {
|
197
|
+
y: number;
|
198
|
+
x: number;
|
199
|
+
} | undefined;
|
200
|
+
"top-start"?: {
|
201
|
+
y: number;
|
202
|
+
x: number;
|
203
|
+
} | undefined;
|
204
|
+
"top-end"?: {
|
205
|
+
y: number;
|
206
|
+
x: number;
|
207
|
+
} | undefined;
|
208
|
+
"bottom-start"?: {
|
209
|
+
y: number;
|
210
|
+
x: number;
|
211
|
+
} | undefined;
|
212
|
+
"bottom-end"?: {
|
213
|
+
y: number;
|
214
|
+
x: number;
|
215
|
+
} | undefined;
|
216
|
+
"right-start"?: {
|
217
|
+
y: number;
|
218
|
+
x: number;
|
219
|
+
} | undefined;
|
220
|
+
"right-end"?: {
|
221
|
+
y: number;
|
222
|
+
x: number;
|
223
|
+
} | undefined;
|
224
|
+
"left-start"?: {
|
225
|
+
y: number;
|
226
|
+
x: number;
|
227
|
+
} | undefined;
|
228
|
+
"left-end"?: {
|
229
|
+
y: number;
|
230
|
+
x: number;
|
231
|
+
} | undefined;
|
232
|
+
} | undefined;
|
233
|
+
preventOverflow?: {
|
234
|
+
y: number;
|
235
|
+
x: number;
|
236
|
+
} | undefined;
|
237
|
+
popperOffsets?: {
|
238
|
+
y: number;
|
239
|
+
x: number;
|
240
|
+
} | undefined;
|
241
|
+
};
|
242
|
+
reset: boolean;
|
243
|
+
};
|
244
|
+
destroy: () => void;
|
245
|
+
forceUpdate: () => void;
|
246
|
+
update: () => Promise<Partial<import("@popperjs/core").State>>;
|
247
|
+
setOptions: (setOptionsAction: Partial<import("@popperjs/core").OptionsGeneric<any>> | ((prev: Partial<import("@popperjs/core").OptionsGeneric<any>>) => Partial<import("@popperjs/core").OptionsGeneric<any>>)) => Promise<Partial<import("@popperjs/core").State>>;
|
248
|
+
} | null;
|
249
|
+
props: any;
|
250
|
+
reference: import("tippy.js").ReferenceElement<any>;
|
251
|
+
setContent: (content: import("tippy.js").Content) => void;
|
252
|
+
setProps: (partialProps: Partial<any>) => void;
|
253
|
+
show: () => void;
|
254
|
+
state: {
|
255
|
+
isEnabled: boolean;
|
256
|
+
isVisible: boolean;
|
257
|
+
isDestroyed: boolean;
|
258
|
+
isMounted: boolean;
|
259
|
+
isShown: boolean;
|
260
|
+
};
|
261
|
+
unmount: () => void;
|
262
|
+
}[]>;
|
263
|
+
singleton: import("vue").Ref<import("tippy.js").CreateSingletonInstance<import("tippy.js").CreateSingletonProps<import("tippy.js").Props>> | undefined>;
|
264
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<ComponentObjectPropsOptions<Record<string, unknown>>>>, {}>;
|
265
|
+
export default TippySingleton;
|
266
|
+
//# sourceMappingURL=TippySingleton.d.ts.map
|