@opentiny/tiny-robot 0.3.0-alpha.4 → 0.3.0-alpha.5
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/action-group/index.js +5 -5
- package/dist/base-popper/index.js +121 -2
- package/dist/close.js +1 -1
- package/dist/dropdown-menu/index.js +43 -43
- package/dist/feedback/index.js +1 -1
- package/dist/flow-layout-buttons/index.js +8 -8
- package/dist/history/index.js +2 -2
- package/dist/index.d.ts +103 -49
- package/dist/index2.js +6 -7
- package/dist/index3.js +306 -137
- package/dist/index4.js +591 -269
- package/dist/index5.js +2047 -528
- package/dist/index6.js +4665 -2072
- package/dist/question/index.js +1 -1
- package/dist/sender/index.js +2 -2
- package/dist/style.css +1 -1
- package/dist/suggestion-pills/index.js +186 -103
- package/dist/suggestion-popover/index.js +192 -216
- package/package.json +3 -3
- package/dist/index7.js +0 -4749
- package/dist/useSlotRefs.js +0 -36
package/dist/index.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ import { default as default_2 } from './index.vue';
|
|
|
17
17
|
import { DefineComponent } from 'vue';
|
|
18
18
|
import { GlobalComponents } from 'vue';
|
|
19
19
|
import { GlobalDirectives } from 'vue';
|
|
20
|
+
import { MaybeElement } from '@vueuse/core';
|
|
20
21
|
import { nextTick } from 'vue';
|
|
21
22
|
import { OnCleanup } from '@vue/reactivity';
|
|
22
23
|
import { Options } from 'markdown-it';
|
|
@@ -46,13 +47,10 @@ declare const __VLS_component_2: DefineComponent<__VLS_PublicProps, {}, {}, {},
|
|
|
46
47
|
"onUpdate:fullscreen"?: ((value: boolean | undefined) => any) | undefined;
|
|
47
48
|
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
48
49
|
|
|
49
|
-
declare const __VLS_component_3: DefineComponent<
|
|
50
|
-
"update:show": (value: boolean) => any;
|
|
51
|
-
} & {
|
|
50
|
+
declare const __VLS_component_3: DefineComponent<DropdownMenuProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
52
51
|
"item-click": (item: DropdownMenuItem) => any;
|
|
53
52
|
"click-outside": (event: MouseEvent) => any;
|
|
54
|
-
}, string, PublicProps, Readonly<
|
|
55
|
-
"onUpdate:show"?: ((value: boolean) => any) | undefined;
|
|
53
|
+
}, string, PublicProps, Readonly<DropdownMenuProps> & Readonly<{
|
|
56
54
|
"onItem-click"?: ((item: DropdownMenuItem) => any) | undefined;
|
|
57
55
|
"onClick-outside"?: ((event: MouseEvent) => any) | undefined;
|
|
58
56
|
}>, {
|
|
@@ -69,6 +67,7 @@ crossAxis?: number;
|
|
|
69
67
|
} | undefined;
|
|
70
68
|
readonly placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | undefined;
|
|
71
69
|
readonly preventOverflow?: boolean | undefined;
|
|
70
|
+
readonly renderAllTriggers?: boolean | undefined;
|
|
72
71
|
readonly show?: boolean | undefined;
|
|
73
72
|
readonly transitionProps?: TransitionProps | undefined;
|
|
74
73
|
readonly triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>> | undefined;
|
|
@@ -78,6 +77,8 @@ $attrs: {
|
|
|
78
77
|
};
|
|
79
78
|
$refs: {
|
|
80
79
|
[x: string]: unknown;
|
|
80
|
+
} & {
|
|
81
|
+
popperRef: HTMLDivElement;
|
|
81
82
|
};
|
|
82
83
|
$slots: Readonly<{
|
|
83
84
|
[name: string]: Slot<any> | undefined;
|
|
@@ -95,12 +96,14 @@ crossAxis?: number;
|
|
|
95
96
|
};
|
|
96
97
|
placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
97
98
|
preventOverflow?: boolean;
|
|
99
|
+
renderAllTriggers?: boolean;
|
|
98
100
|
show?: boolean;
|
|
99
101
|
transitionProps?: TransitionProps;
|
|
100
102
|
triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>>;
|
|
101
103
|
}> & Readonly<{}>, {
|
|
102
|
-
triggerRef: ComputedRef<
|
|
103
|
-
|
|
104
|
+
triggerRef: ComputedRef<MaybeElement>;
|
|
105
|
+
triggerRefs: Ref<MaybeElement[], MaybeElement[]>;
|
|
106
|
+
popperRef: Ref<HTMLDivElement | null, HTMLDivElement | null>;
|
|
104
107
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
105
108
|
placement: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
106
109
|
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
|
@@ -133,19 +136,23 @@ crossAxis?: number;
|
|
|
133
136
|
};
|
|
134
137
|
placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
135
138
|
preventOverflow?: boolean;
|
|
139
|
+
renderAllTriggers?: boolean;
|
|
136
140
|
show?: boolean;
|
|
137
141
|
transitionProps?: TransitionProps;
|
|
138
142
|
triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>>;
|
|
139
|
-
}> & Readonly<{}>, "placement" | "triggerRef" | "popperRef"> & ShallowUnwrapRef< {
|
|
140
|
-
triggerRef: ComputedRef<
|
|
141
|
-
|
|
143
|
+
}> & Readonly<{}>, "placement" | "triggerRef" | "triggerRefs" | "popperRef"> & ShallowUnwrapRef< {
|
|
144
|
+
triggerRef: ComputedRef<MaybeElement>;
|
|
145
|
+
triggerRefs: Ref<MaybeElement[], MaybeElement[]>;
|
|
146
|
+
popperRef: Ref<HTMLDivElement | null, HTMLDivElement | null>;
|
|
142
147
|
}> & {} & ComponentCustomProperties & {} & {
|
|
143
148
|
$slots: Readonly<{
|
|
144
149
|
trigger?: () => VNode[];
|
|
145
150
|
content?: () => VNode[];
|
|
151
|
+
backdrop?: () => VNode[];
|
|
146
152
|
}> & {
|
|
147
153
|
trigger?: () => VNode[];
|
|
148
154
|
content?: () => VNode[];
|
|
155
|
+
backdrop?: () => VNode[];
|
|
149
156
|
};
|
|
150
157
|
}) | null;
|
|
151
158
|
}, any>;
|
|
@@ -158,13 +165,13 @@ declare const __VLS_component_4: DefineComponent<PromptsProps, {}, {}, {}, {}, C
|
|
|
158
165
|
|
|
159
166
|
declare const __VLS_component_5: DefineComponent<SuggestionPillButtonProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<SuggestionPillButtonProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLButtonElement>;
|
|
160
167
|
|
|
161
|
-
declare const __VLS_component_6: DefineComponent<
|
|
162
|
-
children: ComputedRef<(HTMLElement | SVGElement)[]>;
|
|
163
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
168
|
+
declare const __VLS_component_6: DefineComponent<__VLS_PublicProps_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
164
169
|
"update:showAll": (value: boolean | undefined) => any;
|
|
165
170
|
} & {
|
|
171
|
+
"item-click": (item: SuggestionPillItem<Record<string, unknown>>) => any;
|
|
166
172
|
"click-outside": (event: MouseEvent) => any;
|
|
167
|
-
}, string, PublicProps, Readonly<
|
|
173
|
+
}, string, PublicProps, Readonly<__VLS_PublicProps_2> & Readonly<{
|
|
174
|
+
"onItem-click"?: ((item: SuggestionPillItem<Record<string, unknown>>) => any) | undefined;
|
|
168
175
|
"onClick-outside"?: ((event: MouseEvent) => any) | undefined;
|
|
169
176
|
"onUpdate:showAll"?: ((value: boolean | undefined) => any) | undefined;
|
|
170
177
|
}>, {
|
|
@@ -173,12 +180,10 @@ overflowMode: "expand" | "scroll";
|
|
|
173
180
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
174
181
|
containerWrapperRef: HTMLDivElement;
|
|
175
182
|
containerRef: HTMLDivElement;
|
|
176
|
-
staticMaybeItemRefs: unknown[];
|
|
177
183
|
floatingItemsRef: HTMLDivElement;
|
|
178
|
-
floatingMaybeItemRefs: unknown[];
|
|
179
184
|
}, HTMLDivElement>;
|
|
180
185
|
|
|
181
|
-
declare const __VLS_component_7: DefineComponent<
|
|
186
|
+
declare const __VLS_component_7: DefineComponent<__VLS_PublicProps_3, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
182
187
|
"update:selectedGroup": (value: string) => any;
|
|
183
188
|
} & {
|
|
184
189
|
close: () => any;
|
|
@@ -186,7 +191,7 @@ open: () => any;
|
|
|
186
191
|
"item-click": (item: SuggestionItem<Record<string, unknown>>) => any;
|
|
187
192
|
"click-outside": (event: MouseEvent) => any;
|
|
188
193
|
"group-click": (group: SuggestionGroup<Record<string, unknown>>) => any;
|
|
189
|
-
}, string, PublicProps, Readonly<
|
|
194
|
+
}, string, PublicProps, Readonly<__VLS_PublicProps_3> & Readonly<{
|
|
190
195
|
onClose?: (() => any) | undefined;
|
|
191
196
|
onOpen?: (() => any) | undefined;
|
|
192
197
|
"onItem-click"?: ((item: SuggestionItem<Record<string, unknown>>) => any) | undefined;
|
|
@@ -210,6 +215,7 @@ crossAxis?: number;
|
|
|
210
215
|
} | undefined;
|
|
211
216
|
readonly placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | undefined;
|
|
212
217
|
readonly preventOverflow?: boolean | undefined;
|
|
218
|
+
readonly renderAllTriggers?: boolean | undefined;
|
|
213
219
|
readonly show?: boolean | undefined;
|
|
214
220
|
readonly transitionProps?: TransitionProps | undefined;
|
|
215
221
|
readonly triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>> | undefined;
|
|
@@ -219,6 +225,8 @@ $attrs: {
|
|
|
219
225
|
};
|
|
220
226
|
$refs: {
|
|
221
227
|
[x: string]: unknown;
|
|
228
|
+
} & {
|
|
229
|
+
popperRef: HTMLDivElement;
|
|
222
230
|
};
|
|
223
231
|
$slots: Readonly<{
|
|
224
232
|
[name: string]: Slot<any> | undefined;
|
|
@@ -236,12 +244,14 @@ crossAxis?: number;
|
|
|
236
244
|
};
|
|
237
245
|
placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
238
246
|
preventOverflow?: boolean;
|
|
247
|
+
renderAllTriggers?: boolean;
|
|
239
248
|
show?: boolean;
|
|
240
249
|
transitionProps?: TransitionProps;
|
|
241
250
|
triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>>;
|
|
242
251
|
}> & Readonly<{}>, {
|
|
243
|
-
triggerRef: ComputedRef<
|
|
244
|
-
|
|
252
|
+
triggerRef: ComputedRef<MaybeElement>;
|
|
253
|
+
triggerRefs: Ref<MaybeElement[], MaybeElement[]>;
|
|
254
|
+
popperRef: Ref<HTMLDivElement | null, HTMLDivElement | null>;
|
|
245
255
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
246
256
|
placement: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
247
257
|
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
|
@@ -274,19 +284,23 @@ crossAxis?: number;
|
|
|
274
284
|
};
|
|
275
285
|
placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
276
286
|
preventOverflow?: boolean;
|
|
287
|
+
renderAllTriggers?: boolean;
|
|
277
288
|
show?: boolean;
|
|
278
289
|
transitionProps?: TransitionProps;
|
|
279
290
|
triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>>;
|
|
280
|
-
}> & Readonly<{}>, "placement" | "triggerRef" | "popperRef"> & ShallowUnwrapRef< {
|
|
281
|
-
triggerRef: ComputedRef<
|
|
282
|
-
|
|
291
|
+
}> & Readonly<{}>, "placement" | "triggerRef" | "triggerRefs" | "popperRef"> & ShallowUnwrapRef< {
|
|
292
|
+
triggerRef: ComputedRef<MaybeElement>;
|
|
293
|
+
triggerRefs: Ref<MaybeElement[], MaybeElement[]>;
|
|
294
|
+
popperRef: Ref<HTMLDivElement | null, HTMLDivElement | null>;
|
|
283
295
|
}> & {} & ComponentCustomProperties & {} & {
|
|
284
296
|
$slots: Readonly<{
|
|
285
297
|
trigger?: () => VNode[];
|
|
286
298
|
content?: () => VNode[];
|
|
299
|
+
backdrop?: () => VNode[];
|
|
287
300
|
}> & {
|
|
288
301
|
trigger?: () => VNode[];
|
|
289
302
|
content?: () => VNode[];
|
|
303
|
+
backdrop?: () => VNode[];
|
|
290
304
|
};
|
|
291
305
|
}) | null;
|
|
292
306
|
listRef: HTMLUListElement;
|
|
@@ -314,11 +328,9 @@ declare const __VLS_component_8: DefineComponent<WelcomeProps, {}, {}, {}, {}, C
|
|
|
314
328
|
align: "left" | "center" | "right" | string;
|
|
315
329
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
316
330
|
|
|
317
|
-
declare type __VLS_Props =
|
|
331
|
+
declare type __VLS_Props = SuggestionPillsProps;
|
|
318
332
|
|
|
319
|
-
declare type __VLS_Props_2 =
|
|
320
|
-
|
|
321
|
-
declare type __VLS_Props_3 = SuggestionPopoverProps;
|
|
333
|
+
declare type __VLS_Props_2 = SuggestionPopoverProps;
|
|
322
334
|
|
|
323
335
|
declare type __VLS_PublicProps = {
|
|
324
336
|
'show': ContainerProps['show'];
|
|
@@ -326,16 +338,12 @@ declare type __VLS_PublicProps = {
|
|
|
326
338
|
};
|
|
327
339
|
|
|
328
340
|
declare type __VLS_PublicProps_2 = {
|
|
329
|
-
'
|
|
341
|
+
'showAll'?: SuggestionPillsProps['showAll'];
|
|
330
342
|
} & __VLS_Props;
|
|
331
343
|
|
|
332
344
|
declare type __VLS_PublicProps_3 = {
|
|
333
|
-
'showAll'?: SuggestionPillsProps['showAll'];
|
|
334
|
-
} & __VLS_Props_2;
|
|
335
|
-
|
|
336
|
-
declare type __VLS_PublicProps_4 = {
|
|
337
345
|
'selectedGroup'?: string;
|
|
338
|
-
} &
|
|
346
|
+
} & __VLS_Props_2;
|
|
339
347
|
|
|
340
348
|
declare function __VLS_template(): {
|
|
341
349
|
attrs: Partial<{}>;
|
|
@@ -368,6 +376,7 @@ declare function __VLS_template_3(): {
|
|
|
368
376
|
} | undefined;
|
|
369
377
|
readonly placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | undefined;
|
|
370
378
|
readonly preventOverflow?: boolean | undefined;
|
|
379
|
+
readonly renderAllTriggers?: boolean | undefined;
|
|
371
380
|
readonly show?: boolean | undefined;
|
|
372
381
|
readonly transitionProps?: TransitionProps | undefined;
|
|
373
382
|
readonly triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>> | undefined;
|
|
@@ -377,6 +386,8 @@ declare function __VLS_template_3(): {
|
|
|
377
386
|
};
|
|
378
387
|
$refs: {
|
|
379
388
|
[x: string]: unknown;
|
|
389
|
+
} & {
|
|
390
|
+
popperRef: HTMLDivElement;
|
|
380
391
|
};
|
|
381
392
|
$slots: Readonly<{
|
|
382
393
|
[name: string]: Slot<any> | undefined;
|
|
@@ -394,12 +405,14 @@ declare function __VLS_template_3(): {
|
|
|
394
405
|
};
|
|
395
406
|
placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
396
407
|
preventOverflow?: boolean;
|
|
408
|
+
renderAllTriggers?: boolean;
|
|
397
409
|
show?: boolean;
|
|
398
410
|
transitionProps?: TransitionProps;
|
|
399
411
|
triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>>;
|
|
400
412
|
}> & Readonly<{}>, {
|
|
401
|
-
triggerRef: ComputedRef<
|
|
402
|
-
|
|
413
|
+
triggerRef: ComputedRef<MaybeElement>;
|
|
414
|
+
triggerRefs: Ref<MaybeElement[], MaybeElement[]>;
|
|
415
|
+
popperRef: Ref<HTMLDivElement | null, HTMLDivElement | null>;
|
|
403
416
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
404
417
|
placement: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
405
418
|
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
|
@@ -432,19 +445,23 @@ declare function __VLS_template_3(): {
|
|
|
432
445
|
};
|
|
433
446
|
placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
434
447
|
preventOverflow?: boolean;
|
|
448
|
+
renderAllTriggers?: boolean;
|
|
435
449
|
show?: boolean;
|
|
436
450
|
transitionProps?: TransitionProps;
|
|
437
451
|
triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>>;
|
|
438
|
-
}> & Readonly<{}>, "placement" | "triggerRef" | "popperRef"> & ShallowUnwrapRef< {
|
|
439
|
-
triggerRef: ComputedRef<
|
|
440
|
-
|
|
452
|
+
}> & Readonly<{}>, "placement" | "triggerRef" | "triggerRefs" | "popperRef"> & ShallowUnwrapRef< {
|
|
453
|
+
triggerRef: ComputedRef<MaybeElement>;
|
|
454
|
+
triggerRefs: Ref<MaybeElement[], MaybeElement[]>;
|
|
455
|
+
popperRef: Ref<HTMLDivElement | null, HTMLDivElement | null>;
|
|
441
456
|
}> & {} & ComponentCustomProperties & {} & {
|
|
442
457
|
$slots: Readonly<{
|
|
443
458
|
trigger?: () => VNode[];
|
|
444
459
|
content?: () => VNode[];
|
|
460
|
+
backdrop?: () => VNode[];
|
|
445
461
|
}> & {
|
|
446
462
|
trigger?: () => VNode[];
|
|
447
463
|
content?: () => VNode[];
|
|
464
|
+
backdrop?: () => VNode[];
|
|
448
465
|
};
|
|
449
466
|
}) | null;
|
|
450
467
|
};
|
|
@@ -471,9 +488,7 @@ declare function __VLS_template_6(): {
|
|
|
471
488
|
refs: {
|
|
472
489
|
containerWrapperRef: HTMLDivElement;
|
|
473
490
|
containerRef: HTMLDivElement;
|
|
474
|
-
staticMaybeItemRefs: unknown[];
|
|
475
491
|
floatingItemsRef: HTMLDivElement;
|
|
476
|
-
floatingMaybeItemRefs: unknown[];
|
|
477
492
|
};
|
|
478
493
|
rootEl: HTMLDivElement;
|
|
479
494
|
};
|
|
@@ -493,6 +508,7 @@ declare function __VLS_template_7(): {
|
|
|
493
508
|
} | undefined;
|
|
494
509
|
readonly placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | undefined;
|
|
495
510
|
readonly preventOverflow?: boolean | undefined;
|
|
511
|
+
readonly renderAllTriggers?: boolean | undefined;
|
|
496
512
|
readonly show?: boolean | undefined;
|
|
497
513
|
readonly transitionProps?: TransitionProps | undefined;
|
|
498
514
|
readonly triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>> | undefined;
|
|
@@ -502,6 +518,8 @@ declare function __VLS_template_7(): {
|
|
|
502
518
|
};
|
|
503
519
|
$refs: {
|
|
504
520
|
[x: string]: unknown;
|
|
521
|
+
} & {
|
|
522
|
+
popperRef: HTMLDivElement;
|
|
505
523
|
};
|
|
506
524
|
$slots: Readonly<{
|
|
507
525
|
[name: string]: Slot<any> | undefined;
|
|
@@ -519,12 +537,14 @@ declare function __VLS_template_7(): {
|
|
|
519
537
|
};
|
|
520
538
|
placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
521
539
|
preventOverflow?: boolean;
|
|
540
|
+
renderAllTriggers?: boolean;
|
|
522
541
|
show?: boolean;
|
|
523
542
|
transitionProps?: TransitionProps;
|
|
524
543
|
triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>>;
|
|
525
544
|
}> & Readonly<{}>, {
|
|
526
|
-
triggerRef: ComputedRef<
|
|
527
|
-
|
|
545
|
+
triggerRef: ComputedRef<MaybeElement>;
|
|
546
|
+
triggerRefs: Ref<MaybeElement[], MaybeElement[]>;
|
|
547
|
+
popperRef: Ref<HTMLDivElement | null, HTMLDivElement | null>;
|
|
528
548
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
529
549
|
placement: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
530
550
|
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
|
@@ -557,19 +577,23 @@ declare function __VLS_template_7(): {
|
|
|
557
577
|
};
|
|
558
578
|
placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
559
579
|
preventOverflow?: boolean;
|
|
580
|
+
renderAllTriggers?: boolean;
|
|
560
581
|
show?: boolean;
|
|
561
582
|
transitionProps?: TransitionProps;
|
|
562
583
|
triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>>;
|
|
563
|
-
}> & Readonly<{}>, "placement" | "triggerRef" | "popperRef"> & ShallowUnwrapRef< {
|
|
564
|
-
triggerRef: ComputedRef<
|
|
565
|
-
|
|
584
|
+
}> & Readonly<{}>, "placement" | "triggerRef" | "triggerRefs" | "popperRef"> & ShallowUnwrapRef< {
|
|
585
|
+
triggerRef: ComputedRef<MaybeElement>;
|
|
586
|
+
triggerRefs: Ref<MaybeElement[], MaybeElement[]>;
|
|
587
|
+
popperRef: Ref<HTMLDivElement | null, HTMLDivElement | null>;
|
|
566
588
|
}> & {} & ComponentCustomProperties & {} & {
|
|
567
589
|
$slots: Readonly<{
|
|
568
590
|
trigger?: () => VNode[];
|
|
569
591
|
content?: () => VNode[];
|
|
592
|
+
backdrop?: () => VNode[];
|
|
570
593
|
}> & {
|
|
571
594
|
trigger?: () => VNode[];
|
|
572
595
|
content?: () => VNode[];
|
|
596
|
+
backdrop?: () => VNode[];
|
|
573
597
|
};
|
|
574
598
|
}) | null;
|
|
575
599
|
listRef: HTMLUListElement;
|
|
@@ -931,8 +955,7 @@ export declare interface DropdownMenuProps {
|
|
|
931
955
|
appendTo?: string | HTMLElement;
|
|
932
956
|
items: DropdownMenuItem[];
|
|
933
957
|
/**
|
|
934
|
-
*
|
|
935
|
-
* 否则当 trigger 为 'manual' 时,是一个单向绑定的 prop,组件内部无法修改 show 的值
|
|
958
|
+
* 是否显示菜单,仅在 trigger 为 'manual' 时有效
|
|
936
959
|
*/
|
|
937
960
|
show?: boolean;
|
|
938
961
|
/**
|
|
@@ -1212,6 +1235,13 @@ export declare interface SuggestionGroup<T = Record<string, unknown>> {
|
|
|
1212
1235
|
|
|
1213
1236
|
export declare type SuggestionItem<T = Record<string, unknown>> = SuggestionBaseItem & T;
|
|
1214
1237
|
|
|
1238
|
+
export declare type SuggestionPillAction = SuggestionPillPopoverAction | SuggestionPillMenuAction;
|
|
1239
|
+
|
|
1240
|
+
export declare type SuggestionPillBaseItem<T> = {
|
|
1241
|
+
id: string;
|
|
1242
|
+
action?: SuggestionPillAction;
|
|
1243
|
+
} & T;
|
|
1244
|
+
|
|
1215
1245
|
declare const SuggestionPillButton: typeof _default_21 & {
|
|
1216
1246
|
install: typeof installPillButton;
|
|
1217
1247
|
};
|
|
@@ -1227,19 +1257,40 @@ export declare interface SuggestionPillButtonSlots {
|
|
|
1227
1257
|
icon?: () => unknown;
|
|
1228
1258
|
}
|
|
1229
1259
|
|
|
1230
|
-
export declare type SuggestionPillItem = {
|
|
1260
|
+
export declare type SuggestionPillItem<T = Record<string, unknown>> = SuggestionPillBaseItem<T> & ({
|
|
1231
1261
|
text: string;
|
|
1232
1262
|
icon?: VNode | Component;
|
|
1233
1263
|
} | {
|
|
1234
1264
|
text?: string;
|
|
1235
1265
|
icon: VNode | Component;
|
|
1266
|
+
});
|
|
1267
|
+
|
|
1268
|
+
export declare type SuggestionPillMenuAction = {
|
|
1269
|
+
type: 'menu';
|
|
1270
|
+
props: DropdownMenuProps & DropdownMenuEventProps;
|
|
1271
|
+
/**
|
|
1272
|
+
* @deprecated use onXXX in props instead
|
|
1273
|
+
*/
|
|
1274
|
+
events?: DropdownMenuEvents;
|
|
1275
|
+
};
|
|
1276
|
+
|
|
1277
|
+
export declare type SuggestionPillPopoverAction = {
|
|
1278
|
+
type: 'popover';
|
|
1279
|
+
props: SuggestionPopoverProps & SuggestionPopoverEventProps;
|
|
1280
|
+
slots?: Omit<SuggestionPopoverSlots, 'default'>;
|
|
1281
|
+
/**
|
|
1282
|
+
* @deprecated use onXXX in props instead
|
|
1283
|
+
*/
|
|
1284
|
+
events?: SuggestionPopoverEvents;
|
|
1236
1285
|
};
|
|
1237
1286
|
|
|
1238
1287
|
export declare interface SuggestionPillsEmits {
|
|
1288
|
+
(e: 'item-click', item: SuggestionPillItem): void;
|
|
1239
1289
|
(e: 'click-outside', event: MouseEvent): void;
|
|
1240
1290
|
}
|
|
1241
1291
|
|
|
1242
1292
|
export declare interface SuggestionPillsProps {
|
|
1293
|
+
items?: SuggestionPillItem[];
|
|
1243
1294
|
/**
|
|
1244
1295
|
* model:showAll
|
|
1245
1296
|
*/
|
|
@@ -1265,8 +1316,11 @@ export declare interface SuggestionPillsProps {
|
|
|
1265
1316
|
autoScrollOnHover?: boolean;
|
|
1266
1317
|
}
|
|
1267
1318
|
|
|
1319
|
+
/**
|
|
1320
|
+
* @deprecated
|
|
1321
|
+
*/
|
|
1268
1322
|
export declare interface SuggestionPillsSlots {
|
|
1269
|
-
default?: () => VNode[];
|
|
1323
|
+
default?: () => VNode | VNode[];
|
|
1270
1324
|
}
|
|
1271
1325
|
|
|
1272
1326
|
export declare interface SuggestionPopoverEmits {
|
package/dist/index2.js
CHANGED
|
@@ -607,14 +607,13 @@ function Ne(e = {}) {
|
|
|
607
607
|
return { width: i, height: s };
|
|
608
608
|
}
|
|
609
609
|
export {
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
610
|
+
Ne as a,
|
|
611
|
+
Ve as b,
|
|
612
|
+
je as c,
|
|
613
613
|
E as d,
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
He as h,
|
|
614
|
+
De as e,
|
|
615
|
+
Fe as f,
|
|
616
|
+
He as g,
|
|
618
617
|
ke as o,
|
|
619
618
|
ze as u,
|
|
620
619
|
Ce as w
|