@dialpad/dialtone 9.4.1 → 9.5.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/css/CHANGELOG.json +1 -1
- package/dist/css/dialtone.css +3 -2
- package/dist/css/dialtone.min.css +1 -1
- package/dist/tokens/android/java/tokens-dark.kt +1 -1
- package/dist/tokens/android/java/tokens-light.kt +1 -1
- package/dist/tokens/android/res/values/colors-dark.xml +1 -1
- package/dist/tokens/android/res/values/colors-light.xml +1 -1
- package/dist/tokens/android/res/values/dimens.xml +1 -1
- package/dist/tokens/css/variables-dark.css +1 -1
- package/dist/tokens/css/variables-light.css +1 -1
- package/dist/tokens/ios/tokens-dark.swift +1 -1
- package/dist/tokens/ios/tokens-light.swift +1 -1
- package/dist/tokens/less/variables-dark.less +1 -1
- package/dist/tokens/less/variables-light.less +1 -1
- package/dist/vue2/component-documentation.json +1 -1
- package/dist/vue2/dialtone-vue.cjs +5 -5
- package/dist/vue2/dialtone-vue.js +1309 -1137
- package/dist/vue2/directives.js +1 -1
- package/dist/vue2/{emoji-k30EufQP.js → emoji-5ohx0_fO.js} +1 -1
- package/dist/vue2/emoji.js +4 -4
- package/dist/vue2/{emoji_picker-phIBLWjO.js → emoji_picker-Xo-nGBB9.js} +2 -2
- package/dist/vue2/{emoji_text_wrapper-KU3Kyfko.js → emoji_text_wrapper-ySpZj2Hd.js} +2 -2
- package/dist/vue2/message_input.cjs +1 -1
- package/dist/vue2/message_input.js +4 -4
- package/dist/vue2/{stack-Xl6jQs_C.cjs → stack-n8PaTh0Q.cjs} +2 -2
- package/dist/vue2/{stack-klSxDym-.js → stack-spMDaIoR.js} +221 -165
- package/dist/vue2/{tooltip-PDBwUvGD.js → tooltip-UOWkfPpb.js} +9 -9
- package/dist/vue2/types/components/hovercard/hovercard.vue.d.ts +3 -0
- package/dist/vue2/types/components/hovercard/hovercard.vue.d.ts.map +1 -0
- package/dist/vue2/types/components/hovercard/index.d.ts +2 -0
- package/dist/vue2/types/components/hovercard/index.d.ts.map +1 -0
- package/dist/vue2/types/components/hovercard/timer.d.ts +3 -0
- package/dist/vue2/types/components/hovercard/timer.d.ts.map +1 -0
- package/dist/vue2/types/components/popover/popover.vue.d.ts +2 -725
- package/dist/vue2/types/components/popover/popover.vue.d.ts.map +1 -1
- package/dist/vue2/types/index.d.ts +1 -0
- package/dist/vue3/component-documentation.json +1 -1
- package/dist/vue3/dialtone-vue.cjs +5 -5
- package/dist/vue3/dialtone-vue.js +1586 -1417
- package/dist/vue3/message_input.cjs +1 -1
- package/dist/vue3/message_input.js +1 -1
- package/dist/vue3/{stack-J7X4gRRv.js → stack-5arAdMmw.js} +159 -141
- package/dist/vue3/stack-9esIKlKa.cjs +2 -0
- package/dist/vue3/types/components/hovercard/hovercard.vue.d.ts +1 -1
- package/dist/vue3/types/components/hovercard/hovercard.vue.d.ts.map +1 -1
- package/dist/vue3/types/components/hovercard/timer.d.ts +3 -0
- package/dist/vue3/types/components/hovercard/timer.d.ts.map +1 -0
- package/dist/vue3/types/components/popover/popover.vue.d.ts +1 -803
- package/dist/vue3/types/components/popover/popover.vue.d.ts.map +1 -1
- package/dist/vue3/types/index.d.ts +1 -0
- package/dist/vue3/types/recipes/leftbar/contact_row/contact_row.vue.d.ts +2 -2
- package/package.json +1 -1
- package/dist/vue3/stack-CYxcB-QD.cjs +0 -2
- package/dist/vue3/types/components/hovercard/hovercard_constants.d.ts +0 -1
- package/dist/vue3/types/components/hovercard/hovercard_constants.d.ts.map +0 -1
- package/dist/vue3/types/components/hovercard/hovercard_default_story.vue.d.ts +0 -3
- package/dist/vue3/types/components/hovercard/hovercard_default_story.vue.d.ts.map +0 -1
|
@@ -1,805 +1,3 @@
|
|
|
1
|
-
declare const _default:
|
|
2
|
-
/**
|
|
3
|
-
* Controls whether the popover is shown. Leaving this null will have the popover trigger on click by default.
|
|
4
|
-
* If you set this value, the default trigger behavior will be disabled, and you can control it as you need.
|
|
5
|
-
* Supports v-model
|
|
6
|
-
* @values null, true, false
|
|
7
|
-
*/
|
|
8
|
-
open: {
|
|
9
|
-
type: BooleanConstructor;
|
|
10
|
-
default: null;
|
|
11
|
-
};
|
|
12
|
-
/**
|
|
13
|
-
* Opens the popover on right click (context menu). If you set this value to `true`,
|
|
14
|
-
* the default trigger behavior will be disabled.
|
|
15
|
-
* @values true, false
|
|
16
|
-
*/
|
|
17
|
-
openOnContext: {
|
|
18
|
-
type: BooleanConstructor;
|
|
19
|
-
default: boolean;
|
|
20
|
-
};
|
|
21
|
-
/**
|
|
22
|
-
* Element type (tag name) of the root element of the component.
|
|
23
|
-
*/
|
|
24
|
-
elementType: {
|
|
25
|
-
type: StringConstructor;
|
|
26
|
-
default: string;
|
|
27
|
-
};
|
|
28
|
-
/**
|
|
29
|
-
* Named transition when the content display is toggled.
|
|
30
|
-
* @see DtLazyShow
|
|
31
|
-
*/
|
|
32
|
-
transition: {
|
|
33
|
-
type: StringConstructor;
|
|
34
|
-
default: string;
|
|
35
|
-
};
|
|
36
|
-
/**
|
|
37
|
-
* ARIA role for the content of the popover. Defaults to "dialog".
|
|
38
|
-
* <a class="d-link" href="https://www.w3.org/TR/wai-aria/#aria-haspopup" target="_blank">aria-haspopup</a>
|
|
39
|
-
*/
|
|
40
|
-
role: {
|
|
41
|
-
type: StringConstructor;
|
|
42
|
-
default: string;
|
|
43
|
-
validator: (role: unknown) => boolean;
|
|
44
|
-
};
|
|
45
|
-
/**
|
|
46
|
-
* ID of the element that serves as the label for the popover content.
|
|
47
|
-
* Defaults to the "anchor" element; this exists to provide a different
|
|
48
|
-
* ID of the label element if, for example, the anchor slot contains
|
|
49
|
-
* other items that do not serve as a label. You should provide this
|
|
50
|
-
* or ariaLabel, but not both.
|
|
51
|
-
*/
|
|
52
|
-
ariaLabelledby: {
|
|
53
|
-
type: StringConstructor;
|
|
54
|
-
default: null;
|
|
55
|
-
};
|
|
56
|
-
/**
|
|
57
|
-
* Descriptive label for the popover content. You should provide this
|
|
58
|
-
* or ariaLabelledby, but not both.
|
|
59
|
-
*/
|
|
60
|
-
ariaLabel: {
|
|
61
|
-
type: StringConstructor;
|
|
62
|
-
default: null;
|
|
63
|
-
};
|
|
64
|
-
/**
|
|
65
|
-
* A set of props to be passed into the popover's header close button.
|
|
66
|
-
* Requires an 'ariaLabel' property, when the header popover is visible
|
|
67
|
-
*/
|
|
68
|
-
closeButtonProps: {
|
|
69
|
-
type: ObjectConstructor;
|
|
70
|
-
default: () => {};
|
|
71
|
-
};
|
|
72
|
-
/**
|
|
73
|
-
* Padding size class for the popover content.
|
|
74
|
-
* @values none, small, medium, large
|
|
75
|
-
*/
|
|
76
|
-
padding: {
|
|
77
|
-
type: StringConstructor;
|
|
78
|
-
default: string;
|
|
79
|
-
validator: (padding: unknown) => boolean;
|
|
80
|
-
};
|
|
81
|
-
/**
|
|
82
|
-
* Additional class name for the content wrapper element.
|
|
83
|
-
*/
|
|
84
|
-
contentClass: {
|
|
85
|
-
type: (ObjectConstructor | ArrayConstructor | StringConstructor)[];
|
|
86
|
-
default: string;
|
|
87
|
-
};
|
|
88
|
-
/**
|
|
89
|
-
* Width configuration for the popover content. When its value is 'anchor',
|
|
90
|
-
* the popover content will have the same width as the anchor.
|
|
91
|
-
* @values null, anchor
|
|
92
|
-
*/
|
|
93
|
-
contentWidth: {
|
|
94
|
-
type: StringConstructor;
|
|
95
|
-
default: string;
|
|
96
|
-
validator: (contentWidth: unknown) => boolean;
|
|
97
|
-
};
|
|
98
|
-
/**
|
|
99
|
-
* Whether to apply transition on initial render in the content lazy show component.
|
|
100
|
-
*/
|
|
101
|
-
contentAppear: {
|
|
102
|
-
type: BooleanConstructor;
|
|
103
|
-
default: null;
|
|
104
|
-
};
|
|
105
|
-
/**
|
|
106
|
-
* Tabindex value for the content. Passing null, no tabindex attribute will be set.
|
|
107
|
-
*/
|
|
108
|
-
contentTabindex: {
|
|
109
|
-
type: NumberConstructor;
|
|
110
|
-
default: number;
|
|
111
|
-
};
|
|
112
|
-
/**
|
|
113
|
-
* External anchor id to use in those cases the anchor can't be provided via the slot.
|
|
114
|
-
* For instance, using the combobox's input as the anchor for the popover.
|
|
115
|
-
*/
|
|
116
|
-
externalAnchor: {
|
|
117
|
-
type: StringConstructor;
|
|
118
|
-
default: string;
|
|
119
|
-
};
|
|
120
|
-
/**
|
|
121
|
-
* The id of the tooltip
|
|
122
|
-
*/
|
|
123
|
-
id: {
|
|
124
|
-
type: StringConstructor;
|
|
125
|
-
default(): string;
|
|
126
|
-
};
|
|
127
|
-
/**
|
|
128
|
-
* Displaces the content box from its anchor element
|
|
129
|
-
* by the specified number of pixels.
|
|
130
|
-
* <a
|
|
131
|
-
* class="d-link"
|
|
132
|
-
* href="https://atomiks.github.io/tippyjs/v6/all-props/#offset"
|
|
133
|
-
* target="_blank"
|
|
134
|
-
* >
|
|
135
|
-
* Tippy.js docs
|
|
136
|
-
* </a>
|
|
137
|
-
*/
|
|
138
|
-
offset: {
|
|
139
|
-
type: ArrayConstructor;
|
|
140
|
-
default: () => number[];
|
|
141
|
-
};
|
|
142
|
-
/**
|
|
143
|
-
* Determines if the popover hides upon clicking the
|
|
144
|
-
* anchor or outside the content box.
|
|
145
|
-
* @values true, false
|
|
146
|
-
*/
|
|
147
|
-
hideOnClick: {
|
|
148
|
-
type: BooleanConstructor;
|
|
149
|
-
default: boolean;
|
|
150
|
-
};
|
|
151
|
-
/**
|
|
152
|
-
* Determines modal state. If enabled popover has a modal overlay
|
|
153
|
-
* preventing interaction with elements below it, but it is invisible.
|
|
154
|
-
* @values true, false
|
|
155
|
-
*/
|
|
156
|
-
modal: {
|
|
157
|
-
type: BooleanConstructor;
|
|
158
|
-
default: boolean;
|
|
159
|
-
};
|
|
160
|
-
/**
|
|
161
|
-
* If the popover does not fit in the direction described by "placement",
|
|
162
|
-
* it will attempt to change its direction to the "fallbackPlacements".
|
|
163
|
-
* <a
|
|
164
|
-
* class="d-link"
|
|
165
|
-
* href="https://popper.js.org/docs/v2/modifiers/flip/#fallbackplacements"
|
|
166
|
-
* target="_blank"
|
|
167
|
-
* >
|
|
168
|
-
* Popper.js docs
|
|
169
|
-
* </a>
|
|
170
|
-
* */
|
|
171
|
-
fallbackPlacements: {
|
|
172
|
-
type: ArrayConstructor;
|
|
173
|
-
default: () => string[];
|
|
174
|
-
};
|
|
175
|
-
/**
|
|
176
|
-
* The direction the popover displays relative to the anchor.
|
|
177
|
-
* <a
|
|
178
|
-
* class="d-link"
|
|
179
|
-
* href="https://atomiks.github.io/tippyjs/v6/all-props/#placement"
|
|
180
|
-
* target="_blank"
|
|
181
|
-
* >
|
|
182
|
-
* Tippy.js docs
|
|
183
|
-
* </a>
|
|
184
|
-
* @values top, top-start, top-end,
|
|
185
|
-
* right, right-start, right-end,
|
|
186
|
-
* left, left-start, left-end,
|
|
187
|
-
* bottom, bottom-start, bottom-end,
|
|
188
|
-
* auto, auto-start, auto-end
|
|
189
|
-
*/
|
|
190
|
-
placement: {
|
|
191
|
-
type: StringConstructor;
|
|
192
|
-
default: string;
|
|
193
|
-
};
|
|
194
|
-
/**
|
|
195
|
-
* If set to false the dialog will display over top of the anchor when there is insufficient space.
|
|
196
|
-
* If set to true it will never move from its position relative to the anchor and will clip instead.
|
|
197
|
-
* <a
|
|
198
|
-
* class="d-link"
|
|
199
|
-
* href="https://popper.js.org/docs/v2/modifiers/prevent-overflow/#tether"
|
|
200
|
-
* target="_blank"
|
|
201
|
-
* >
|
|
202
|
-
* Popper.js docs
|
|
203
|
-
* </a>
|
|
204
|
-
* @values true, false
|
|
205
|
-
*/
|
|
206
|
-
tether: {
|
|
207
|
-
type: BooleanConstructor;
|
|
208
|
-
default: boolean;
|
|
209
|
-
};
|
|
210
|
-
/**
|
|
211
|
-
* If the popover sticks to the anchor. This is usually not needed, but can be needed
|
|
212
|
-
* if the reference element's position is animating, or to automatically update the popover
|
|
213
|
-
* position in those cases the DOM layout changes the reference element's position.
|
|
214
|
-
* `true` enables it, `reference` only checks the "reference" rect for changes and `popper` only
|
|
215
|
-
* checks the "popper" rect for changes.
|
|
216
|
-
* <a
|
|
217
|
-
* class="d-link"
|
|
218
|
-
* href="https://atomiks.github.io/tippyjs/v6/all-props/#sticky"
|
|
219
|
-
* target="_blank"
|
|
220
|
-
* >
|
|
221
|
-
* Tippy.js docs
|
|
222
|
-
* </a>
|
|
223
|
-
* @values true, false, reference, popper
|
|
224
|
-
*/
|
|
225
|
-
sticky: {
|
|
226
|
-
type: (StringConstructor | BooleanConstructor)[];
|
|
227
|
-
default: boolean;
|
|
228
|
-
validator: (sticky: unknown) => boolean;
|
|
229
|
-
};
|
|
230
|
-
/**
|
|
231
|
-
* Determines maximum height for the popover before overflow.
|
|
232
|
-
* Possible units rem|px|em
|
|
233
|
-
*/
|
|
234
|
-
maxHeight: {
|
|
235
|
-
type: StringConstructor;
|
|
236
|
-
default: string;
|
|
237
|
-
};
|
|
238
|
-
/**
|
|
239
|
-
* Determines maximum width for the popover before overflow.
|
|
240
|
-
* Possible units rem|px|%|em
|
|
241
|
-
*/
|
|
242
|
-
maxWidth: {
|
|
243
|
-
type: StringConstructor;
|
|
244
|
-
default: string;
|
|
245
|
-
};
|
|
246
|
-
/**
|
|
247
|
-
* Determines visibility for close button
|
|
248
|
-
* @values true, false
|
|
249
|
-
*/
|
|
250
|
-
showCloseButton: {
|
|
251
|
-
type: BooleanConstructor;
|
|
252
|
-
default: boolean;
|
|
253
|
-
};
|
|
254
|
-
/**
|
|
255
|
-
* Additional class name for the header content wrapper element.
|
|
256
|
-
*/
|
|
257
|
-
headerClass: {
|
|
258
|
-
type: (ObjectConstructor | ArrayConstructor | StringConstructor)[];
|
|
259
|
-
default: string;
|
|
260
|
-
};
|
|
261
|
-
/**
|
|
262
|
-
* Additional class name for the footer content wrapper element.
|
|
263
|
-
*/
|
|
264
|
-
footerClass: {
|
|
265
|
-
type: (ObjectConstructor | ArrayConstructor | StringConstructor)[];
|
|
266
|
-
default: string;
|
|
267
|
-
};
|
|
268
|
-
/**
|
|
269
|
-
* Additional class name for the dialog element.
|
|
270
|
-
*/
|
|
271
|
-
dialogClass: {
|
|
272
|
-
type: (ObjectConstructor | ArrayConstructor | StringConstructor)[];
|
|
273
|
-
default: string;
|
|
274
|
-
};
|
|
275
|
-
/**
|
|
276
|
-
* The element that is focused when the popover is opened. This can be an
|
|
277
|
-
* HTMLElement within the popover, a string starting with '#' which will
|
|
278
|
-
* find the element by ID. 'first' which will automatically focus
|
|
279
|
-
* the first element, or 'dialog' which will focus the dialog window itself.
|
|
280
|
-
* If the dialog is modal this prop cannot be 'none'.
|
|
281
|
-
* @values none, dialog, first
|
|
282
|
-
*/
|
|
283
|
-
initialFocusElement: {
|
|
284
|
-
type: (StringConstructor | {
|
|
285
|
-
new (): HTMLElement;
|
|
286
|
-
prototype: HTMLElement;
|
|
287
|
-
})[];
|
|
288
|
-
default: string;
|
|
289
|
-
validator: (initialFocusElement: unknown) => any;
|
|
290
|
-
};
|
|
291
|
-
/**
|
|
292
|
-
* If the popover should open pressing up or down arrow key on the anchor element.
|
|
293
|
-
* This can be set when not passing open prop.
|
|
294
|
-
* @values true, false
|
|
295
|
-
*/
|
|
296
|
-
openWithArrowKeys: {
|
|
297
|
-
type: BooleanConstructor;
|
|
298
|
-
default: boolean;
|
|
299
|
-
};
|
|
300
|
-
/**
|
|
301
|
-
* Sets the element to which the popover is going to append to.
|
|
302
|
-
* 'body' will append to the nearest body (supports shadow DOM).
|
|
303
|
-
* @values 'body', 'parent', HTMLElement,
|
|
304
|
-
*/
|
|
305
|
-
appendTo: {
|
|
306
|
-
type: (StringConstructor | {
|
|
307
|
-
new (): HTMLElement;
|
|
308
|
-
prototype: HTMLElement;
|
|
309
|
-
})[];
|
|
310
|
-
default: string;
|
|
311
|
-
validator: (appendTo: unknown) => boolean;
|
|
312
|
-
};
|
|
313
|
-
/**
|
|
314
|
-
* Set this prop to true and popover component will support hovercard behaviour
|
|
315
|
-
* It will open on mouseenter and close on mouseleave with timer delay of 300ms
|
|
316
|
-
*/
|
|
317
|
-
hovercard: {
|
|
318
|
-
type: BooleanConstructor;
|
|
319
|
-
default: boolean;
|
|
320
|
-
};
|
|
321
|
-
}, any, {
|
|
322
|
-
POPOVER_PADDING_CLASSES: {
|
|
323
|
-
none: undefined;
|
|
324
|
-
small: string;
|
|
325
|
-
medium: string;
|
|
326
|
-
large: string;
|
|
327
|
-
};
|
|
328
|
-
POPOVER_HEADER_FOOTER_PADDING_CLASSES: {
|
|
329
|
-
none: undefined;
|
|
330
|
-
small: string;
|
|
331
|
-
medium: string;
|
|
332
|
-
large: string;
|
|
333
|
-
};
|
|
334
|
-
intersectionObserver: null;
|
|
335
|
-
isOutsideViewport: boolean;
|
|
336
|
-
isOpen: boolean;
|
|
337
|
-
toAppear: boolean;
|
|
338
|
-
anchorEl: null;
|
|
339
|
-
popoverContentEl: null;
|
|
340
|
-
hasSlotContent: typeof hasSlotContent;
|
|
341
|
-
inTimer: null;
|
|
342
|
-
outTimer: null;
|
|
343
|
-
}, {
|
|
344
|
-
popoverListeners(): {
|
|
345
|
-
keydown: (event: any) => void;
|
|
346
|
-
'after-leave': (event: any) => void;
|
|
347
|
-
'after-enter': (event: any) => void;
|
|
348
|
-
};
|
|
349
|
-
calculatedMaxHeight(): string;
|
|
350
|
-
labelledBy(): string | false;
|
|
351
|
-
}, {
|
|
352
|
-
hasIntersectedViewport(entries: any): void;
|
|
353
|
-
popperOptions(): {
|
|
354
|
-
modifiers: ({
|
|
355
|
-
name: string;
|
|
356
|
-
enabled: boolean;
|
|
357
|
-
phase: string;
|
|
358
|
-
fn: any;
|
|
359
|
-
requiresIfExists: string[];
|
|
360
|
-
} | {
|
|
361
|
-
name: string;
|
|
362
|
-
options: {
|
|
363
|
-
fallbackPlacements: any[];
|
|
364
|
-
boundary: string;
|
|
365
|
-
altAxis?: undefined;
|
|
366
|
-
tether?: undefined;
|
|
367
|
-
};
|
|
368
|
-
enabled?: undefined;
|
|
369
|
-
} | {
|
|
370
|
-
name: string;
|
|
371
|
-
enabled: boolean;
|
|
372
|
-
options?: undefined;
|
|
373
|
-
} | {
|
|
374
|
-
name: string;
|
|
375
|
-
options: {
|
|
376
|
-
altAxis: boolean;
|
|
377
|
-
tether: boolean;
|
|
378
|
-
fallbackPlacements?: undefined;
|
|
379
|
-
boundary?: undefined;
|
|
380
|
-
};
|
|
381
|
-
enabled?: undefined;
|
|
382
|
-
})[];
|
|
383
|
-
};
|
|
384
|
-
validateProps(): void;
|
|
385
|
-
calculateAnchorZindex(): 300 | 650;
|
|
386
|
-
defaultToggleOpen(e: any): void;
|
|
387
|
-
onContext(event: any): Promise<void>;
|
|
388
|
-
toggleOpen(): void;
|
|
389
|
-
onArrowKeyPress(e: any): void;
|
|
390
|
-
addEventListeners(): void;
|
|
391
|
-
removeEventListeners(): void;
|
|
392
|
-
closePopover(): void;
|
|
393
|
-
preventScrolling(): void;
|
|
394
|
-
enableScrolling(): void;
|
|
395
|
-
removeReferences(): void;
|
|
396
|
-
onShow(): Promise<void>;
|
|
397
|
-
onLeaveTransitionComplete(): Promise<void>;
|
|
398
|
-
onEnterTransitionComplete(): Promise<void>;
|
|
399
|
-
focusInitialElement(): void;
|
|
400
|
-
focusInitialElementById(): void;
|
|
401
|
-
onResize(): void;
|
|
402
|
-
onClickOutside(): void;
|
|
403
|
-
onKeydown(e: any): void;
|
|
404
|
-
setPopoverContentAnchorWidth(): Promise<void>;
|
|
405
|
-
focusFirstElementIfNeeded(domEl: any): void;
|
|
406
|
-
initTippyInstance(): void;
|
|
407
|
-
setInTimer(): void;
|
|
408
|
-
setOutTimer(): void;
|
|
409
|
-
onEnterAnchor(e: any): void;
|
|
410
|
-
onLeaveAnchor(e: any): void;
|
|
411
|
-
onEnterContent(): void;
|
|
412
|
-
onLeaveContent(e: any): void;
|
|
413
|
-
}, {
|
|
414
|
-
props: {
|
|
415
|
-
visuallyHiddenClose: {
|
|
416
|
-
type: BooleanConstructor;
|
|
417
|
-
default: boolean;
|
|
418
|
-
};
|
|
419
|
-
visuallyHiddenCloseLabel: {
|
|
420
|
-
type: StringConstructor;
|
|
421
|
-
default: null;
|
|
422
|
-
};
|
|
423
|
-
};
|
|
424
|
-
watch: {
|
|
425
|
-
$props: {
|
|
426
|
-
immediate: boolean;
|
|
427
|
-
deep: boolean;
|
|
428
|
-
handler(): void;
|
|
429
|
-
};
|
|
430
|
-
};
|
|
431
|
-
computed: {
|
|
432
|
-
showVisuallyHiddenClose(): any;
|
|
433
|
-
};
|
|
434
|
-
methods: {
|
|
435
|
-
validateVisuallyHiddenCloseProps(): void;
|
|
436
|
-
};
|
|
437
|
-
} | {
|
|
438
|
-
methods: {
|
|
439
|
-
getFirstFocusableElement(el: object): Promise<any>;
|
|
440
|
-
focusFirstElement(el: object): Promise<void>;
|
|
441
|
-
_getFirstFocusElement(focusableElements: any): any;
|
|
442
|
-
_getFocusableElements(el?: object, includeNegativeTabIndex?: bool): any[];
|
|
443
|
-
focusTrappedTabPress(e: object, el: object): void;
|
|
444
|
-
};
|
|
445
|
-
}, import("vue").ComponentOptionsMixin, ("keydown" | "update:open" | "opened")[], "keydown" | "update:open" | "opened", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
446
|
-
/**
|
|
447
|
-
* Controls whether the popover is shown. Leaving this null will have the popover trigger on click by default.
|
|
448
|
-
* If you set this value, the default trigger behavior will be disabled, and you can control it as you need.
|
|
449
|
-
* Supports v-model
|
|
450
|
-
* @values null, true, false
|
|
451
|
-
*/
|
|
452
|
-
open: {
|
|
453
|
-
type: BooleanConstructor;
|
|
454
|
-
default: null;
|
|
455
|
-
};
|
|
456
|
-
/**
|
|
457
|
-
* Opens the popover on right click (context menu). If you set this value to `true`,
|
|
458
|
-
* the default trigger behavior will be disabled.
|
|
459
|
-
* @values true, false
|
|
460
|
-
*/
|
|
461
|
-
openOnContext: {
|
|
462
|
-
type: BooleanConstructor;
|
|
463
|
-
default: boolean;
|
|
464
|
-
};
|
|
465
|
-
/**
|
|
466
|
-
* Element type (tag name) of the root element of the component.
|
|
467
|
-
*/
|
|
468
|
-
elementType: {
|
|
469
|
-
type: StringConstructor;
|
|
470
|
-
default: string;
|
|
471
|
-
};
|
|
472
|
-
/**
|
|
473
|
-
* Named transition when the content display is toggled.
|
|
474
|
-
* @see DtLazyShow
|
|
475
|
-
*/
|
|
476
|
-
transition: {
|
|
477
|
-
type: StringConstructor;
|
|
478
|
-
default: string;
|
|
479
|
-
};
|
|
480
|
-
/**
|
|
481
|
-
* ARIA role for the content of the popover. Defaults to "dialog".
|
|
482
|
-
* <a class="d-link" href="https://www.w3.org/TR/wai-aria/#aria-haspopup" target="_blank">aria-haspopup</a>
|
|
483
|
-
*/
|
|
484
|
-
role: {
|
|
485
|
-
type: StringConstructor;
|
|
486
|
-
default: string;
|
|
487
|
-
validator: (role: unknown) => boolean;
|
|
488
|
-
};
|
|
489
|
-
/**
|
|
490
|
-
* ID of the element that serves as the label for the popover content.
|
|
491
|
-
* Defaults to the "anchor" element; this exists to provide a different
|
|
492
|
-
* ID of the label element if, for example, the anchor slot contains
|
|
493
|
-
* other items that do not serve as a label. You should provide this
|
|
494
|
-
* or ariaLabel, but not both.
|
|
495
|
-
*/
|
|
496
|
-
ariaLabelledby: {
|
|
497
|
-
type: StringConstructor;
|
|
498
|
-
default: null;
|
|
499
|
-
};
|
|
500
|
-
/**
|
|
501
|
-
* Descriptive label for the popover content. You should provide this
|
|
502
|
-
* or ariaLabelledby, but not both.
|
|
503
|
-
*/
|
|
504
|
-
ariaLabel: {
|
|
505
|
-
type: StringConstructor;
|
|
506
|
-
default: null;
|
|
507
|
-
};
|
|
508
|
-
/**
|
|
509
|
-
* A set of props to be passed into the popover's header close button.
|
|
510
|
-
* Requires an 'ariaLabel' property, when the header popover is visible
|
|
511
|
-
*/
|
|
512
|
-
closeButtonProps: {
|
|
513
|
-
type: ObjectConstructor;
|
|
514
|
-
default: () => {};
|
|
515
|
-
};
|
|
516
|
-
/**
|
|
517
|
-
* Padding size class for the popover content.
|
|
518
|
-
* @values none, small, medium, large
|
|
519
|
-
*/
|
|
520
|
-
padding: {
|
|
521
|
-
type: StringConstructor;
|
|
522
|
-
default: string;
|
|
523
|
-
validator: (padding: unknown) => boolean;
|
|
524
|
-
};
|
|
525
|
-
/**
|
|
526
|
-
* Additional class name for the content wrapper element.
|
|
527
|
-
*/
|
|
528
|
-
contentClass: {
|
|
529
|
-
type: (ObjectConstructor | ArrayConstructor | StringConstructor)[];
|
|
530
|
-
default: string;
|
|
531
|
-
};
|
|
532
|
-
/**
|
|
533
|
-
* Width configuration for the popover content. When its value is 'anchor',
|
|
534
|
-
* the popover content will have the same width as the anchor.
|
|
535
|
-
* @values null, anchor
|
|
536
|
-
*/
|
|
537
|
-
contentWidth: {
|
|
538
|
-
type: StringConstructor;
|
|
539
|
-
default: string;
|
|
540
|
-
validator: (contentWidth: unknown) => boolean;
|
|
541
|
-
};
|
|
542
|
-
/**
|
|
543
|
-
* Whether to apply transition on initial render in the content lazy show component.
|
|
544
|
-
*/
|
|
545
|
-
contentAppear: {
|
|
546
|
-
type: BooleanConstructor;
|
|
547
|
-
default: null;
|
|
548
|
-
};
|
|
549
|
-
/**
|
|
550
|
-
* Tabindex value for the content. Passing null, no tabindex attribute will be set.
|
|
551
|
-
*/
|
|
552
|
-
contentTabindex: {
|
|
553
|
-
type: NumberConstructor;
|
|
554
|
-
default: number;
|
|
555
|
-
};
|
|
556
|
-
/**
|
|
557
|
-
* External anchor id to use in those cases the anchor can't be provided via the slot.
|
|
558
|
-
* For instance, using the combobox's input as the anchor for the popover.
|
|
559
|
-
*/
|
|
560
|
-
externalAnchor: {
|
|
561
|
-
type: StringConstructor;
|
|
562
|
-
default: string;
|
|
563
|
-
};
|
|
564
|
-
/**
|
|
565
|
-
* The id of the tooltip
|
|
566
|
-
*/
|
|
567
|
-
id: {
|
|
568
|
-
type: StringConstructor;
|
|
569
|
-
default(): string;
|
|
570
|
-
};
|
|
571
|
-
/**
|
|
572
|
-
* Displaces the content box from its anchor element
|
|
573
|
-
* by the specified number of pixels.
|
|
574
|
-
* <a
|
|
575
|
-
* class="d-link"
|
|
576
|
-
* href="https://atomiks.github.io/tippyjs/v6/all-props/#offset"
|
|
577
|
-
* target="_blank"
|
|
578
|
-
* >
|
|
579
|
-
* Tippy.js docs
|
|
580
|
-
* </a>
|
|
581
|
-
*/
|
|
582
|
-
offset: {
|
|
583
|
-
type: ArrayConstructor;
|
|
584
|
-
default: () => number[];
|
|
585
|
-
};
|
|
586
|
-
/**
|
|
587
|
-
* Determines if the popover hides upon clicking the
|
|
588
|
-
* anchor or outside the content box.
|
|
589
|
-
* @values true, false
|
|
590
|
-
*/
|
|
591
|
-
hideOnClick: {
|
|
592
|
-
type: BooleanConstructor;
|
|
593
|
-
default: boolean;
|
|
594
|
-
};
|
|
595
|
-
/**
|
|
596
|
-
* Determines modal state. If enabled popover has a modal overlay
|
|
597
|
-
* preventing interaction with elements below it, but it is invisible.
|
|
598
|
-
* @values true, false
|
|
599
|
-
*/
|
|
600
|
-
modal: {
|
|
601
|
-
type: BooleanConstructor;
|
|
602
|
-
default: boolean;
|
|
603
|
-
};
|
|
604
|
-
/**
|
|
605
|
-
* If the popover does not fit in the direction described by "placement",
|
|
606
|
-
* it will attempt to change its direction to the "fallbackPlacements".
|
|
607
|
-
* <a
|
|
608
|
-
* class="d-link"
|
|
609
|
-
* href="https://popper.js.org/docs/v2/modifiers/flip/#fallbackplacements"
|
|
610
|
-
* target="_blank"
|
|
611
|
-
* >
|
|
612
|
-
* Popper.js docs
|
|
613
|
-
* </a>
|
|
614
|
-
* */
|
|
615
|
-
fallbackPlacements: {
|
|
616
|
-
type: ArrayConstructor;
|
|
617
|
-
default: () => string[];
|
|
618
|
-
};
|
|
619
|
-
/**
|
|
620
|
-
* The direction the popover displays relative to the anchor.
|
|
621
|
-
* <a
|
|
622
|
-
* class="d-link"
|
|
623
|
-
* href="https://atomiks.github.io/tippyjs/v6/all-props/#placement"
|
|
624
|
-
* target="_blank"
|
|
625
|
-
* >
|
|
626
|
-
* Tippy.js docs
|
|
627
|
-
* </a>
|
|
628
|
-
* @values top, top-start, top-end,
|
|
629
|
-
* right, right-start, right-end,
|
|
630
|
-
* left, left-start, left-end,
|
|
631
|
-
* bottom, bottom-start, bottom-end,
|
|
632
|
-
* auto, auto-start, auto-end
|
|
633
|
-
*/
|
|
634
|
-
placement: {
|
|
635
|
-
type: StringConstructor;
|
|
636
|
-
default: string;
|
|
637
|
-
};
|
|
638
|
-
/**
|
|
639
|
-
* If set to false the dialog will display over top of the anchor when there is insufficient space.
|
|
640
|
-
* If set to true it will never move from its position relative to the anchor and will clip instead.
|
|
641
|
-
* <a
|
|
642
|
-
* class="d-link"
|
|
643
|
-
* href="https://popper.js.org/docs/v2/modifiers/prevent-overflow/#tether"
|
|
644
|
-
* target="_blank"
|
|
645
|
-
* >
|
|
646
|
-
* Popper.js docs
|
|
647
|
-
* </a>
|
|
648
|
-
* @values true, false
|
|
649
|
-
*/
|
|
650
|
-
tether: {
|
|
651
|
-
type: BooleanConstructor;
|
|
652
|
-
default: boolean;
|
|
653
|
-
};
|
|
654
|
-
/**
|
|
655
|
-
* If the popover sticks to the anchor. This is usually not needed, but can be needed
|
|
656
|
-
* if the reference element's position is animating, or to automatically update the popover
|
|
657
|
-
* position in those cases the DOM layout changes the reference element's position.
|
|
658
|
-
* `true` enables it, `reference` only checks the "reference" rect for changes and `popper` only
|
|
659
|
-
* checks the "popper" rect for changes.
|
|
660
|
-
* <a
|
|
661
|
-
* class="d-link"
|
|
662
|
-
* href="https://atomiks.github.io/tippyjs/v6/all-props/#sticky"
|
|
663
|
-
* target="_blank"
|
|
664
|
-
* >
|
|
665
|
-
* Tippy.js docs
|
|
666
|
-
* </a>
|
|
667
|
-
* @values true, false, reference, popper
|
|
668
|
-
*/
|
|
669
|
-
sticky: {
|
|
670
|
-
type: (StringConstructor | BooleanConstructor)[];
|
|
671
|
-
default: boolean;
|
|
672
|
-
validator: (sticky: unknown) => boolean;
|
|
673
|
-
};
|
|
674
|
-
/**
|
|
675
|
-
* Determines maximum height for the popover before overflow.
|
|
676
|
-
* Possible units rem|px|em
|
|
677
|
-
*/
|
|
678
|
-
maxHeight: {
|
|
679
|
-
type: StringConstructor;
|
|
680
|
-
default: string;
|
|
681
|
-
};
|
|
682
|
-
/**
|
|
683
|
-
* Determines maximum width for the popover before overflow.
|
|
684
|
-
* Possible units rem|px|%|em
|
|
685
|
-
*/
|
|
686
|
-
maxWidth: {
|
|
687
|
-
type: StringConstructor;
|
|
688
|
-
default: string;
|
|
689
|
-
};
|
|
690
|
-
/**
|
|
691
|
-
* Determines visibility for close button
|
|
692
|
-
* @values true, false
|
|
693
|
-
*/
|
|
694
|
-
showCloseButton: {
|
|
695
|
-
type: BooleanConstructor;
|
|
696
|
-
default: boolean;
|
|
697
|
-
};
|
|
698
|
-
/**
|
|
699
|
-
* Additional class name for the header content wrapper element.
|
|
700
|
-
*/
|
|
701
|
-
headerClass: {
|
|
702
|
-
type: (ObjectConstructor | ArrayConstructor | StringConstructor)[];
|
|
703
|
-
default: string;
|
|
704
|
-
};
|
|
705
|
-
/**
|
|
706
|
-
* Additional class name for the footer content wrapper element.
|
|
707
|
-
*/
|
|
708
|
-
footerClass: {
|
|
709
|
-
type: (ObjectConstructor | ArrayConstructor | StringConstructor)[];
|
|
710
|
-
default: string;
|
|
711
|
-
};
|
|
712
|
-
/**
|
|
713
|
-
* Additional class name for the dialog element.
|
|
714
|
-
*/
|
|
715
|
-
dialogClass: {
|
|
716
|
-
type: (ObjectConstructor | ArrayConstructor | StringConstructor)[];
|
|
717
|
-
default: string;
|
|
718
|
-
};
|
|
719
|
-
/**
|
|
720
|
-
* The element that is focused when the popover is opened. This can be an
|
|
721
|
-
* HTMLElement within the popover, a string starting with '#' which will
|
|
722
|
-
* find the element by ID. 'first' which will automatically focus
|
|
723
|
-
* the first element, or 'dialog' which will focus the dialog window itself.
|
|
724
|
-
* If the dialog is modal this prop cannot be 'none'.
|
|
725
|
-
* @values none, dialog, first
|
|
726
|
-
*/
|
|
727
|
-
initialFocusElement: {
|
|
728
|
-
type: (StringConstructor | {
|
|
729
|
-
new (): HTMLElement;
|
|
730
|
-
prototype: HTMLElement;
|
|
731
|
-
})[];
|
|
732
|
-
default: string;
|
|
733
|
-
validator: (initialFocusElement: unknown) => any;
|
|
734
|
-
};
|
|
735
|
-
/**
|
|
736
|
-
* If the popover should open pressing up or down arrow key on the anchor element.
|
|
737
|
-
* This can be set when not passing open prop.
|
|
738
|
-
* @values true, false
|
|
739
|
-
*/
|
|
740
|
-
openWithArrowKeys: {
|
|
741
|
-
type: BooleanConstructor;
|
|
742
|
-
default: boolean;
|
|
743
|
-
};
|
|
744
|
-
/**
|
|
745
|
-
* Sets the element to which the popover is going to append to.
|
|
746
|
-
* 'body' will append to the nearest body (supports shadow DOM).
|
|
747
|
-
* @values 'body', 'parent', HTMLElement,
|
|
748
|
-
*/
|
|
749
|
-
appendTo: {
|
|
750
|
-
type: (StringConstructor | {
|
|
751
|
-
new (): HTMLElement;
|
|
752
|
-
prototype: HTMLElement;
|
|
753
|
-
})[];
|
|
754
|
-
default: string;
|
|
755
|
-
validator: (appendTo: unknown) => boolean;
|
|
756
|
-
};
|
|
757
|
-
/**
|
|
758
|
-
* Set this prop to true and popover component will support hovercard behaviour
|
|
759
|
-
* It will open on mouseenter and close on mouseleave with timer delay of 300ms
|
|
760
|
-
*/
|
|
761
|
-
hovercard: {
|
|
762
|
-
type: BooleanConstructor;
|
|
763
|
-
default: boolean;
|
|
764
|
-
};
|
|
765
|
-
}>> & {
|
|
766
|
-
onKeydown?: ((...args: any[]) => any) | undefined;
|
|
767
|
-
"onUpdate:open"?: ((...args: any[]) => any) | undefined;
|
|
768
|
-
onOpened?: ((...args: any[]) => any) | undefined;
|
|
769
|
-
}, {
|
|
770
|
-
role: string;
|
|
771
|
-
id: string;
|
|
772
|
-
ariaLabel: string;
|
|
773
|
-
closeButtonProps: Record<string, any>;
|
|
774
|
-
dialogClass: string | Record<string, any> | unknown[];
|
|
775
|
-
transition: string;
|
|
776
|
-
maxHeight: string;
|
|
777
|
-
contentClass: string | Record<string, any> | unknown[];
|
|
778
|
-
headerClass: string | Record<string, any> | unknown[];
|
|
779
|
-
footerClass: string | Record<string, any> | unknown[];
|
|
780
|
-
elementType: string;
|
|
781
|
-
open: boolean;
|
|
782
|
-
maxWidth: string;
|
|
783
|
-
offset: unknown[];
|
|
784
|
-
fallbackPlacements: unknown[];
|
|
785
|
-
tether: boolean;
|
|
786
|
-
appendTo: string | HTMLElement;
|
|
787
|
-
hideOnClick: boolean;
|
|
788
|
-
placement: string;
|
|
789
|
-
sticky: string | boolean;
|
|
790
|
-
showCloseButton: boolean;
|
|
791
|
-
contentAppear: boolean;
|
|
792
|
-
externalAnchor: string;
|
|
793
|
-
modal: boolean;
|
|
794
|
-
openOnContext: boolean;
|
|
795
|
-
ariaLabelledby: string;
|
|
796
|
-
padding: string;
|
|
797
|
-
contentWidth: string;
|
|
798
|
-
contentTabindex: number;
|
|
799
|
-
initialFocusElement: string | HTMLElement;
|
|
800
|
-
openWithArrowKeys: boolean;
|
|
801
|
-
hovercard: boolean;
|
|
802
|
-
}, {}>;
|
|
1
|
+
declare const _default: (props: Record<string, any> & {}) => any;
|
|
803
2
|
export default _default;
|
|
804
|
-
import { hasSlotContent } from '@/common/utils';
|
|
805
3
|
//# sourceMappingURL=popover.vue.d.ts.map
|