@destyler/combobox 0.0.3 → 0.0.4

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.
@@ -0,0 +1,1794 @@
1
+ import * as vue from 'vue';
2
+ import { PropType, Ref, SlotsType, VNode } from 'vue';
3
+ import * as _destyler_primitive from '@destyler/primitive';
4
+ import { ExtractPublicPropTypes, Direction } from '@destyler/shared';
5
+ import * as _vue_shared from '@vue/shared';
6
+
7
+ declare const comboboxAnchorProps: {
8
+ readonly as: {
9
+ readonly type: vue.PropType<_destyler_primitive.AsTag | vue.Component>;
10
+ readonly required: false;
11
+ readonly default: "div";
12
+ };
13
+ readonly asChild: {
14
+ readonly type: vue.PropType<boolean>;
15
+ readonly required: false;
16
+ readonly default: false;
17
+ };
18
+ };
19
+ type ComboboxAnchorProps = ExtractPublicPropTypes<typeof comboboxAnchorProps>;
20
+ declare const ComboboxAnchor: vue.DefineComponent<{
21
+ readonly as: {
22
+ readonly type: vue.PropType<_destyler_primitive.AsTag | vue.Component>;
23
+ readonly required: false;
24
+ readonly default: "div";
25
+ };
26
+ readonly asChild: {
27
+ readonly type: vue.PropType<boolean>;
28
+ readonly required: false;
29
+ readonly default: false;
30
+ };
31
+ }, {
32
+ forwardRef: (ref: Element | vue.ComponentPublicInstance | null) => void;
33
+ }, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
34
+ readonly as: {
35
+ readonly type: vue.PropType<_destyler_primitive.AsTag | vue.Component>;
36
+ readonly required: false;
37
+ readonly default: "div";
38
+ };
39
+ readonly asChild: {
40
+ readonly type: vue.PropType<boolean>;
41
+ readonly required: false;
42
+ readonly default: false;
43
+ };
44
+ }>>, {
45
+ readonly as: _destyler_primitive.AsTag | vue.Component;
46
+ readonly asChild: boolean;
47
+ }, {}>;
48
+
49
+ type AcceptableValue = string | number | boolean | Record<string, any>;
50
+ type ArrayOrWrapped<T> = T extends any[] ? T : Array<T>;
51
+ declare const comboboxRootProps: {
52
+ /**
53
+ * The controlled value of the Combobox. Can be binded-with with `v-model`.
54
+ *
55
+ * @default undefined
56
+ */
57
+ readonly modelValue: {
58
+ readonly type: PropType<AcceptableValue | AcceptableValue[]>;
59
+ readonly required: false;
60
+ readonly default: undefined;
61
+ };
62
+ /**
63
+ * The value of the combobox when initially rendered.
64
+ * Use when you do not need to control the state of the Combobox
65
+ *
66
+ * @default undefined
67
+ */
68
+ readonly defaultValue: {
69
+ readonly type: PropType<AcceptableValue | AcceptableValue[]>;
70
+ readonly required: false;
71
+ readonly default: undefined;
72
+ };
73
+ /**
74
+ * The controlled open state of the Combobox. Can be binded-with with `v-model:open`.
75
+ *
76
+ * @default undefined
77
+ */
78
+ readonly open: {
79
+ readonly type: PropType<boolean>;
80
+ readonly required: false;
81
+ readonly default: undefined;
82
+ };
83
+ /**
84
+ * The open state of the combobox when it is initially rendered.
85
+ * Use when you do not need to control its open state.
86
+ */
87
+ readonly defaultOpen: {
88
+ readonly type: PropType<boolean>;
89
+ readonly required: false;
90
+ };
91
+ /**
92
+ * The controlled search term of the Combobox.
93
+ * Can be binded-with with `v-model:searchTerm`.
94
+ */
95
+ readonly searchTerm: {
96
+ readonly type: PropType<string>;
97
+ readonly required: false;
98
+ };
99
+ /**
100
+ * Whether multiple options can be selected or not.
101
+ *
102
+ * @default false
103
+ */
104
+ readonly multiple: {
105
+ readonly type: PropType<boolean>;
106
+ readonly required: false;
107
+ readonly default: false;
108
+ };
109
+ /**
110
+ * When `true`, prevents the user from interacting with Combobox.
111
+ *
112
+ * @default false
113
+ */
114
+ readonly disabled: {
115
+ readonly type: PropType<boolean>;
116
+ readonly required: false;
117
+ readonly default: false;
118
+ };
119
+ /**
120
+ * The name of the Combobox. Submitted with its owning form as part of a name/value pair.
121
+ */
122
+ readonly name: {
123
+ readonly type: PropType<string>;
124
+ readonly required: false;
125
+ };
126
+ /**
127
+ * The reading direction of the combobox when applicable.
128
+ */
129
+ readonly dir: {
130
+ readonly type: PropType<Direction>;
131
+ readonly required: false;
132
+ };
133
+ /**
134
+ * The custom filter function for filtering `ComboboxItem`.
135
+ */
136
+ readonly filterFunction: {
137
+ readonly type: PropType<(val: ArrayOrWrapped<AcceptableValue>, term: string) => ArrayOrWrapped<AcceptableValue>>;
138
+ readonly required: false;
139
+ };
140
+ /**
141
+ * The display value of input for selected item. Does not work with `multiple`.
142
+ */
143
+ readonly displayValue: {
144
+ readonly type: PropType<(val: AcceptableValue) => string>;
145
+ readonly required: false;
146
+ };
147
+ readonly as: {
148
+ readonly type: PropType<_destyler_primitive.AsTag | vue.Component>;
149
+ readonly required: false;
150
+ readonly default: "div";
151
+ };
152
+ readonly asChild: {
153
+ readonly type: PropType<boolean>;
154
+ readonly required: false;
155
+ readonly default: false;
156
+ };
157
+ };
158
+ type ComboboxRootProps = ExtractPublicPropTypes<typeof comboboxRootProps>;
159
+ declare const comboboxRootEmits: {
160
+ /**
161
+ * Event handler called when the value changes.
162
+ */
163
+ 'update:modelValue': (_value: AcceptableValue) => boolean;
164
+ /**
165
+ * Event handler called when the open state of the combobox changes.
166
+ */
167
+ 'update:open': (_value: boolean) => boolean;
168
+ /**
169
+ * Event handler called when the searchTerm of the combobox changes.
170
+ */
171
+ 'update:searchTerm': (_value: string) => boolean;
172
+ };
173
+ interface ComboboxRootContext<T> {
174
+ modelValue: Ref<T | Array<T>>;
175
+ onValueChange: (val: T) => void;
176
+ searchTerm: Ref<string>;
177
+ multiple: Ref<boolean>;
178
+ disabled: Ref<boolean>;
179
+ open: Ref<boolean>;
180
+ onOpenChange: (value: boolean) => void;
181
+ isUserInputted: Ref<boolean>;
182
+ filteredOptions: Ref<Array<T>>;
183
+ contentId: string;
184
+ contentElement: Ref<HTMLElement | undefined>;
185
+ onContentElementChange: (el: HTMLElement) => void;
186
+ inputElement: Ref<HTMLInputElement | undefined>;
187
+ onInputElementChange: (el: HTMLInputElement) => void;
188
+ onInputNavigation: (dir: 'up' | 'down' | 'home' | 'end') => void;
189
+ onInputEnter: () => void;
190
+ selectedValue: Ref<T | undefined>;
191
+ onSelectedValueChange: (val: T) => void;
192
+ parentElement: Ref<HTMLElement | undefined>;
193
+ }
194
+ declare const ComboboxRoot: vue.DefineComponent<{
195
+ /**
196
+ * The controlled value of the Combobox. Can be binded-with with `v-model`.
197
+ *
198
+ * @default undefined
199
+ */
200
+ readonly modelValue: {
201
+ readonly type: PropType<AcceptableValue | AcceptableValue[]>;
202
+ readonly required: false;
203
+ readonly default: undefined;
204
+ };
205
+ /**
206
+ * The value of the combobox when initially rendered.
207
+ * Use when you do not need to control the state of the Combobox
208
+ *
209
+ * @default undefined
210
+ */
211
+ readonly defaultValue: {
212
+ readonly type: PropType<AcceptableValue | AcceptableValue[]>;
213
+ readonly required: false;
214
+ readonly default: undefined;
215
+ };
216
+ /**
217
+ * The controlled open state of the Combobox. Can be binded-with with `v-model:open`.
218
+ *
219
+ * @default undefined
220
+ */
221
+ readonly open: {
222
+ readonly type: PropType<boolean>;
223
+ readonly required: false;
224
+ readonly default: undefined;
225
+ };
226
+ /**
227
+ * The open state of the combobox when it is initially rendered.
228
+ * Use when you do not need to control its open state.
229
+ */
230
+ readonly defaultOpen: {
231
+ readonly type: PropType<boolean>;
232
+ readonly required: false;
233
+ };
234
+ /**
235
+ * The controlled search term of the Combobox.
236
+ * Can be binded-with with `v-model:searchTerm`.
237
+ */
238
+ readonly searchTerm: {
239
+ readonly type: PropType<string>;
240
+ readonly required: false;
241
+ };
242
+ /**
243
+ * Whether multiple options can be selected or not.
244
+ *
245
+ * @default false
246
+ */
247
+ readonly multiple: {
248
+ readonly type: PropType<boolean>;
249
+ readonly required: false;
250
+ readonly default: false;
251
+ };
252
+ /**
253
+ * When `true`, prevents the user from interacting with Combobox.
254
+ *
255
+ * @default false
256
+ */
257
+ readonly disabled: {
258
+ readonly type: PropType<boolean>;
259
+ readonly required: false;
260
+ readonly default: false;
261
+ };
262
+ /**
263
+ * The name of the Combobox. Submitted with its owning form as part of a name/value pair.
264
+ */
265
+ readonly name: {
266
+ readonly type: PropType<string>;
267
+ readonly required: false;
268
+ };
269
+ /**
270
+ * The reading direction of the combobox when applicable.
271
+ */
272
+ readonly dir: {
273
+ readonly type: PropType<Direction>;
274
+ readonly required: false;
275
+ };
276
+ /**
277
+ * The custom filter function for filtering `ComboboxItem`.
278
+ */
279
+ readonly filterFunction: {
280
+ readonly type: PropType<(val: ArrayOrWrapped<AcceptableValue>, term: string) => ArrayOrWrapped<AcceptableValue>>;
281
+ readonly required: false;
282
+ };
283
+ /**
284
+ * The display value of input for selected item. Does not work with `multiple`.
285
+ */
286
+ readonly displayValue: {
287
+ readonly type: PropType<(val: AcceptableValue) => string>;
288
+ readonly required: false;
289
+ };
290
+ readonly as: {
291
+ readonly type: PropType<_destyler_primitive.AsTag | vue.Component>;
292
+ readonly required: false;
293
+ readonly default: "div";
294
+ };
295
+ readonly asChild: {
296
+ readonly type: PropType<boolean>;
297
+ readonly required: false;
298
+ readonly default: false;
299
+ };
300
+ }, {
301
+ forwardRef: (ref: Element | vue.ComponentPublicInstance | null) => void;
302
+ isFormControl: vue.ComputedRef<boolean>;
303
+ open: Ref<boolean>;
304
+ modelValue: Ref<AcceptableValue | AcceptableValue[]>;
305
+ dir: vue.ComputedRef<Direction>;
306
+ }, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
307
+ /**
308
+ * Event handler called when the value changes.
309
+ */
310
+ 'update:modelValue': (_value: AcceptableValue) => boolean;
311
+ /**
312
+ * Event handler called when the open state of the combobox changes.
313
+ */
314
+ 'update:open': (_value: boolean) => boolean;
315
+ /**
316
+ * Event handler called when the searchTerm of the combobox changes.
317
+ */
318
+ 'update:searchTerm': (_value: string) => boolean;
319
+ }, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
320
+ /**
321
+ * The controlled value of the Combobox. Can be binded-with with `v-model`.
322
+ *
323
+ * @default undefined
324
+ */
325
+ readonly modelValue: {
326
+ readonly type: PropType<AcceptableValue | AcceptableValue[]>;
327
+ readonly required: false;
328
+ readonly default: undefined;
329
+ };
330
+ /**
331
+ * The value of the combobox when initially rendered.
332
+ * Use when you do not need to control the state of the Combobox
333
+ *
334
+ * @default undefined
335
+ */
336
+ readonly defaultValue: {
337
+ readonly type: PropType<AcceptableValue | AcceptableValue[]>;
338
+ readonly required: false;
339
+ readonly default: undefined;
340
+ };
341
+ /**
342
+ * The controlled open state of the Combobox. Can be binded-with with `v-model:open`.
343
+ *
344
+ * @default undefined
345
+ */
346
+ readonly open: {
347
+ readonly type: PropType<boolean>;
348
+ readonly required: false;
349
+ readonly default: undefined;
350
+ };
351
+ /**
352
+ * The open state of the combobox when it is initially rendered.
353
+ * Use when you do not need to control its open state.
354
+ */
355
+ readonly defaultOpen: {
356
+ readonly type: PropType<boolean>;
357
+ readonly required: false;
358
+ };
359
+ /**
360
+ * The controlled search term of the Combobox.
361
+ * Can be binded-with with `v-model:searchTerm`.
362
+ */
363
+ readonly searchTerm: {
364
+ readonly type: PropType<string>;
365
+ readonly required: false;
366
+ };
367
+ /**
368
+ * Whether multiple options can be selected or not.
369
+ *
370
+ * @default false
371
+ */
372
+ readonly multiple: {
373
+ readonly type: PropType<boolean>;
374
+ readonly required: false;
375
+ readonly default: false;
376
+ };
377
+ /**
378
+ * When `true`, prevents the user from interacting with Combobox.
379
+ *
380
+ * @default false
381
+ */
382
+ readonly disabled: {
383
+ readonly type: PropType<boolean>;
384
+ readonly required: false;
385
+ readonly default: false;
386
+ };
387
+ /**
388
+ * The name of the Combobox. Submitted with its owning form as part of a name/value pair.
389
+ */
390
+ readonly name: {
391
+ readonly type: PropType<string>;
392
+ readonly required: false;
393
+ };
394
+ /**
395
+ * The reading direction of the combobox when applicable.
396
+ */
397
+ readonly dir: {
398
+ readonly type: PropType<Direction>;
399
+ readonly required: false;
400
+ };
401
+ /**
402
+ * The custom filter function for filtering `ComboboxItem`.
403
+ */
404
+ readonly filterFunction: {
405
+ readonly type: PropType<(val: ArrayOrWrapped<AcceptableValue>, term: string) => ArrayOrWrapped<AcceptableValue>>;
406
+ readonly required: false;
407
+ };
408
+ /**
409
+ * The display value of input for selected item. Does not work with `multiple`.
410
+ */
411
+ readonly displayValue: {
412
+ readonly type: PropType<(val: AcceptableValue) => string>;
413
+ readonly required: false;
414
+ };
415
+ readonly as: {
416
+ readonly type: PropType<_destyler_primitive.AsTag | vue.Component>;
417
+ readonly required: false;
418
+ readonly default: "div";
419
+ };
420
+ readonly asChild: {
421
+ readonly type: PropType<boolean>;
422
+ readonly required: false;
423
+ readonly default: false;
424
+ };
425
+ }>> & {
426
+ "onUpdate:modelValue"?: ((_value: AcceptableValue) => any) | undefined;
427
+ "onUpdate:open"?: ((_value: boolean) => any) | undefined;
428
+ "onUpdate:searchTerm"?: ((_value: string) => any) | undefined;
429
+ }, {
430
+ readonly as: _destyler_primitive.AsTag | vue.Component;
431
+ readonly asChild: boolean;
432
+ readonly modelValue: AcceptableValue | AcceptableValue[];
433
+ readonly defaultValue: AcceptableValue | AcceptableValue[];
434
+ readonly open: boolean;
435
+ readonly multiple: boolean;
436
+ readonly disabled: boolean;
437
+ }, SlotsType<{
438
+ default: (opts: {
439
+ /**
440
+ * Current open state
441
+ */
442
+ open: boolean;
443
+ /**
444
+ * Current active value
445
+ */
446
+ modelValue: AcceptableValue;
447
+ }) => VNode[];
448
+ }>>;
449
+
450
+ declare const comboboxArrowProps: {
451
+ readonly as: {
452
+ readonly default: "svg";
453
+ readonly type: vue.PropType<vue.Component<any, any, any, vue.ComputedOptions, vue.MethodOptions, {}, any> | _destyler_primitive.AsTag>;
454
+ readonly required: false;
455
+ };
456
+ readonly width: {
457
+ readonly type: vue.PropType<number>;
458
+ readonly required: false;
459
+ readonly default: 10;
460
+ };
461
+ readonly height: {
462
+ readonly type: vue.PropType<number>;
463
+ readonly required: false;
464
+ readonly default: 5;
465
+ };
466
+ readonly asChild: {
467
+ readonly type: vue.PropType<boolean>;
468
+ readonly required: false;
469
+ readonly default: false;
470
+ };
471
+ };
472
+ type ComboboxArrowProps = ExtractPublicPropTypes<typeof comboboxArrowProps>;
473
+ declare const ComboboxArrow: vue.DefineComponent<{
474
+ readonly as: {
475
+ readonly default: "svg";
476
+ readonly type: vue.PropType<vue.Component<any, any, any, vue.ComputedOptions, vue.MethodOptions, {}, any> | _destyler_primitive.AsTag>;
477
+ readonly required: false;
478
+ };
479
+ readonly width: {
480
+ readonly type: vue.PropType<number>;
481
+ readonly required: false;
482
+ readonly default: 10;
483
+ };
484
+ readonly height: {
485
+ readonly type: vue.PropType<number>;
486
+ readonly required: false;
487
+ readonly default: 5;
488
+ };
489
+ readonly asChild: {
490
+ readonly type: vue.PropType<boolean>;
491
+ readonly required: false;
492
+ readonly default: false;
493
+ };
494
+ }, {
495
+ rootContext: ComboboxRootContext<AcceptableValue>;
496
+ contentContext: {
497
+ position: vue.Ref<"inline" | "popper">;
498
+ };
499
+ }, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
500
+ readonly as: {
501
+ readonly default: "svg";
502
+ readonly type: vue.PropType<vue.Component<any, any, any, vue.ComputedOptions, vue.MethodOptions, {}, any> | _destyler_primitive.AsTag>;
503
+ readonly required: false;
504
+ };
505
+ readonly width: {
506
+ readonly type: vue.PropType<number>;
507
+ readonly required: false;
508
+ readonly default: 10;
509
+ };
510
+ readonly height: {
511
+ readonly type: vue.PropType<number>;
512
+ readonly required: false;
513
+ readonly default: 5;
514
+ };
515
+ readonly asChild: {
516
+ readonly type: vue.PropType<boolean>;
517
+ readonly required: false;
518
+ readonly default: false;
519
+ };
520
+ }>>, {
521
+ readonly as: vue.Component<any, any, any, vue.ComputedOptions, vue.MethodOptions, {}, any> | _destyler_primitive.AsTag;
522
+ readonly asChild: boolean;
523
+ readonly width: number;
524
+ readonly height: number;
525
+ }, {}>;
526
+
527
+ declare const comboboxCancelProps: {
528
+ /**
529
+ * @default button
530
+ */
531
+ readonly as: {
532
+ readonly default: "button";
533
+ readonly type: vue.PropType<_destyler_primitive.AsTag | vue.Component>;
534
+ readonly required: false;
535
+ };
536
+ readonly asChild: {
537
+ readonly type: vue.PropType<boolean>;
538
+ readonly required: false;
539
+ readonly default: false;
540
+ };
541
+ };
542
+ type ComboboxCancelProps = ExtractPublicPropTypes<typeof comboboxCancelProps>;
543
+ declare const ComboboxCancel: vue.DefineComponent<{
544
+ /**
545
+ * @default button
546
+ */
547
+ readonly as: {
548
+ readonly default: "button";
549
+ readonly type: vue.PropType<_destyler_primitive.AsTag | vue.Component>;
550
+ readonly required: false;
551
+ };
552
+ readonly asChild: {
553
+ readonly type: vue.PropType<boolean>;
554
+ readonly required: false;
555
+ readonly default: false;
556
+ };
557
+ }, {
558
+ rootContext: ComboboxRootContext<AcceptableValue>;
559
+ handleClick: () => void;
560
+ }, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
561
+ /**
562
+ * @default button
563
+ */
564
+ readonly as: {
565
+ readonly default: "button";
566
+ readonly type: vue.PropType<_destyler_primitive.AsTag | vue.Component>;
567
+ readonly required: false;
568
+ };
569
+ readonly asChild: {
570
+ readonly type: vue.PropType<boolean>;
571
+ readonly required: false;
572
+ readonly default: false;
573
+ };
574
+ }>>, {
575
+ readonly as: _destyler_primitive.AsTag | vue.Component;
576
+ readonly asChild: boolean;
577
+ }, {}>;
578
+
579
+ declare const comboboxContentProps: {
580
+ /**
581
+ * Used to force mounting when more control is needed.
582
+ * Useful when controlling animation with Vue animation libraries.
583
+ */
584
+ readonly forceMount: {
585
+ readonly type: PropType<boolean>;
586
+ readonly required: false;
587
+ };
588
+ readonly position: {
589
+ readonly type: PropType<"inline" | "popper">;
590
+ readonly required: false;
591
+ readonly default: "inline";
592
+ };
593
+ readonly bodyLock: {
594
+ readonly type: PropType<boolean>;
595
+ readonly required: false;
596
+ };
597
+ readonly dismissable: {
598
+ readonly type: PropType<boolean>;
599
+ readonly required: false;
600
+ readonly default: true;
601
+ };
602
+ readonly side: {
603
+ readonly type: PropType<"top" | "right" | "bottom" | "left">;
604
+ readonly required: false;
605
+ readonly default: "bottom";
606
+ };
607
+ readonly sideOffset: {
608
+ readonly type: PropType<number>;
609
+ readonly required: false;
610
+ readonly default: 0;
611
+ };
612
+ readonly align: {
613
+ readonly type: PropType<"end" | "center" | "start">;
614
+ readonly required: false;
615
+ readonly default: "center";
616
+ };
617
+ readonly alignOffset: {
618
+ readonly type: PropType<number>;
619
+ readonly required: false;
620
+ readonly default: 0;
621
+ };
622
+ readonly avoidCollisions: {
623
+ readonly type: PropType<boolean>;
624
+ readonly required: false;
625
+ readonly default: true;
626
+ };
627
+ readonly collisionBoundary: {
628
+ readonly type: PropType<Element | (Element | null)[] | null>;
629
+ readonly required: false;
630
+ readonly default: () => never[];
631
+ };
632
+ readonly collisionPadding: {
633
+ readonly type: PropType<number | Partial<Record<"top" | "right" | "bottom" | "left", number>>>;
634
+ readonly required: false;
635
+ readonly default: 0;
636
+ };
637
+ readonly arrowPadding: {
638
+ readonly type: PropType<number>;
639
+ readonly required: false;
640
+ readonly default: 0;
641
+ };
642
+ readonly sticky: {
643
+ readonly type: PropType<"partial" | "always">;
644
+ readonly required: false;
645
+ readonly default: "partial";
646
+ };
647
+ readonly hideWhenDetached: {
648
+ readonly type: PropType<boolean>;
649
+ readonly required: false;
650
+ readonly default: false;
651
+ };
652
+ readonly updatePositionStrategy: {
653
+ readonly type: PropType<"optimized" | "always">;
654
+ readonly required: false;
655
+ readonly default: "optimized";
656
+ };
657
+ readonly prioritizePosition: {
658
+ readonly type: PropType<boolean>;
659
+ readonly required: false;
660
+ readonly default: false;
661
+ };
662
+ readonly as: {
663
+ readonly type: PropType<vue.Component<any, any, any, vue.ComputedOptions, vue.MethodOptions, {}, any> | _destyler_primitive.AsTag>;
664
+ readonly required: false;
665
+ readonly default: "div";
666
+ };
667
+ readonly asChild: {
668
+ readonly type: PropType<boolean>;
669
+ readonly required: false;
670
+ readonly default: false;
671
+ };
672
+ readonly disableOutsidePointerEvents: {
673
+ readonly type: PropType<boolean>;
674
+ readonly required: false;
675
+ readonly default: false;
676
+ };
677
+ readonly isDismissable: {
678
+ readonly type: PropType<boolean>;
679
+ readonly required: false;
680
+ readonly default: true;
681
+ };
682
+ };
683
+ type ComboboxContentProps = ExtractPublicPropTypes<typeof comboboxContentProps>;
684
+ declare const comboboxContentEmits: {
685
+ escapeKeyDown: (_event: KeyboardEvent) => boolean;
686
+ pointerDownOutside: (_event: CustomEvent<{
687
+ originalEvent: PointerEvent;
688
+ }>) => boolean;
689
+ focusOutside: (_event: CustomEvent<{
690
+ originalEvent: FocusEvent;
691
+ }>) => boolean;
692
+ interactOutside: (_event: CustomEvent<{
693
+ originalEvent: PointerEvent;
694
+ }> | CustomEvent<{
695
+ originalEvent: FocusEvent;
696
+ }>) => boolean;
697
+ };
698
+ declare const ComboboxContent: vue.DefineComponent<{
699
+ /**
700
+ * Used to force mounting when more control is needed.
701
+ * Useful when controlling animation with Vue animation libraries.
702
+ */
703
+ readonly forceMount: {
704
+ readonly type: PropType<boolean>;
705
+ readonly required: false;
706
+ };
707
+ readonly position: {
708
+ readonly type: PropType<"inline" | "popper">;
709
+ readonly required: false;
710
+ readonly default: "inline";
711
+ };
712
+ readonly bodyLock: {
713
+ readonly type: PropType<boolean>;
714
+ readonly required: false;
715
+ };
716
+ readonly dismissable: {
717
+ readonly type: PropType<boolean>;
718
+ readonly required: false;
719
+ readonly default: true;
720
+ };
721
+ readonly side: {
722
+ readonly type: PropType<"top" | "right" | "bottom" | "left">;
723
+ readonly required: false;
724
+ readonly default: "bottom";
725
+ };
726
+ readonly sideOffset: {
727
+ readonly type: PropType<number>;
728
+ readonly required: false;
729
+ readonly default: 0;
730
+ };
731
+ readonly align: {
732
+ readonly type: PropType<"end" | "center" | "start">;
733
+ readonly required: false;
734
+ readonly default: "center";
735
+ };
736
+ readonly alignOffset: {
737
+ readonly type: PropType<number>;
738
+ readonly required: false;
739
+ readonly default: 0;
740
+ };
741
+ readonly avoidCollisions: {
742
+ readonly type: PropType<boolean>;
743
+ readonly required: false;
744
+ readonly default: true;
745
+ };
746
+ readonly collisionBoundary: {
747
+ readonly type: PropType<Element | (Element | null)[] | null>;
748
+ readonly required: false;
749
+ readonly default: () => never[];
750
+ };
751
+ readonly collisionPadding: {
752
+ readonly type: PropType<number | Partial<Record<"top" | "right" | "bottom" | "left", number>>>;
753
+ readonly required: false;
754
+ readonly default: 0;
755
+ };
756
+ readonly arrowPadding: {
757
+ readonly type: PropType<number>;
758
+ readonly required: false;
759
+ readonly default: 0;
760
+ };
761
+ readonly sticky: {
762
+ readonly type: PropType<"partial" | "always">;
763
+ readonly required: false;
764
+ readonly default: "partial";
765
+ };
766
+ readonly hideWhenDetached: {
767
+ readonly type: PropType<boolean>;
768
+ readonly required: false;
769
+ readonly default: false;
770
+ };
771
+ readonly updatePositionStrategy: {
772
+ readonly type: PropType<"optimized" | "always">;
773
+ readonly required: false;
774
+ readonly default: "optimized";
775
+ };
776
+ readonly prioritizePosition: {
777
+ readonly type: PropType<boolean>;
778
+ readonly required: false;
779
+ readonly default: false;
780
+ };
781
+ readonly as: {
782
+ readonly type: PropType<vue.Component<any, any, any, vue.ComputedOptions, vue.MethodOptions, {}, any> | _destyler_primitive.AsTag>;
783
+ readonly required: false;
784
+ readonly default: "div";
785
+ };
786
+ readonly asChild: {
787
+ readonly type: PropType<boolean>;
788
+ readonly required: false;
789
+ readonly default: false;
790
+ };
791
+ readonly disableOutsidePointerEvents: {
792
+ readonly type: PropType<boolean>;
793
+ readonly required: false;
794
+ readonly default: false;
795
+ };
796
+ readonly isDismissable: {
797
+ readonly type: PropType<boolean>;
798
+ readonly required: false;
799
+ readonly default: true;
800
+ };
801
+ }, {
802
+ forwardRef: (ref: Element | vue.ComponentPublicInstance | null) => void;
803
+ forwarded: vue.ComputedRef<{
804
+ readonly as: vue.FunctionalComponent<any, {}, any, {}> | {
805
+ new (...args: any[]): any;
806
+ __isFragment?: undefined;
807
+ __isTeleport?: undefined;
808
+ __isSuspense?: undefined;
809
+ } | _destyler_primitive.AsTag | {
810
+ [x: string]: any;
811
+ setup?: ((this: void, props: _vue_shared.LooseRequired<any>, ctx: {
812
+ attrs: {
813
+ [x: string]: unknown;
814
+ };
815
+ slots: Readonly<{
816
+ [name: string]: vue.Slot<any> | undefined;
817
+ }>;
818
+ emit: ((event: unknown, ...args: any[]) => void) | ((event: string, ...args: any[]) => void);
819
+ expose: (exposed?: Record<string, any> | undefined) => void;
820
+ }) => any) | undefined;
821
+ name?: string | undefined;
822
+ template?: string | object | undefined;
823
+ render?: Function | undefined;
824
+ components?: Record<string, vue.Component<any, any, any, vue.ComputedOptions, vue.MethodOptions, {}, any>> | undefined;
825
+ directives?: Record<string, vue.Directive<any, any>> | undefined;
826
+ inheritAttrs?: boolean | undefined;
827
+ emits?: any;
828
+ slots?: {} | undefined;
829
+ expose?: string[] | undefined;
830
+ serverPrefetch?: (() => void | Promise<any>) | undefined;
831
+ compilerOptions?: {
832
+ isCustomElement?: ((tag: string) => boolean) | undefined;
833
+ whitespace?: "preserve" | "condense" | undefined;
834
+ comments?: boolean | undefined;
835
+ delimiters?: [string, string] | undefined;
836
+ } | undefined;
837
+ call?: ((this: unknown, ...args: unknown[]) => never) | undefined;
838
+ __isFragment?: undefined;
839
+ __isTeleport?: undefined;
840
+ __isSuspense?: undefined;
841
+ __defaults?: any;
842
+ compatConfig?: {
843
+ GLOBAL_MOUNT?: boolean | "suppress-warning" | undefined;
844
+ GLOBAL_MOUNT_CONTAINER?: boolean | "suppress-warning" | undefined;
845
+ GLOBAL_EXTEND?: boolean | "suppress-warning" | undefined;
846
+ GLOBAL_PROTOTYPE?: boolean | "suppress-warning" | undefined;
847
+ GLOBAL_SET?: boolean | "suppress-warning" | undefined;
848
+ GLOBAL_DELETE?: boolean | "suppress-warning" | undefined;
849
+ GLOBAL_OBSERVABLE?: boolean | "suppress-warning" | undefined;
850
+ GLOBAL_PRIVATE_UTIL?: boolean | "suppress-warning" | undefined;
851
+ CONFIG_SILENT?: boolean | "suppress-warning" | undefined;
852
+ CONFIG_DEVTOOLS?: boolean | "suppress-warning" | undefined;
853
+ CONFIG_KEY_CODES?: boolean | "suppress-warning" | undefined;
854
+ CONFIG_PRODUCTION_TIP?: boolean | "suppress-warning" | undefined;
855
+ CONFIG_IGNORED_ELEMENTS?: boolean | "suppress-warning" | undefined;
856
+ CONFIG_WHITESPACE?: boolean | "suppress-warning" | undefined;
857
+ CONFIG_OPTION_MERGE_STRATS?: boolean | "suppress-warning" | undefined;
858
+ INSTANCE_SET?: boolean | "suppress-warning" | undefined;
859
+ INSTANCE_DELETE?: boolean | "suppress-warning" | undefined;
860
+ INSTANCE_DESTROY?: boolean | "suppress-warning" | undefined;
861
+ INSTANCE_EVENT_EMITTER?: boolean | "suppress-warning" | undefined;
862
+ INSTANCE_EVENT_HOOKS?: boolean | "suppress-warning" | undefined;
863
+ INSTANCE_CHILDREN?: boolean | "suppress-warning" | undefined;
864
+ INSTANCE_LISTENERS?: boolean | "suppress-warning" | undefined;
865
+ INSTANCE_SCOPED_SLOTS?: boolean | "suppress-warning" | undefined;
866
+ INSTANCE_ATTRS_CLASS_STYLE?: boolean | "suppress-warning" | undefined;
867
+ OPTIONS_DATA_FN?: boolean | "suppress-warning" | undefined;
868
+ OPTIONS_DATA_MERGE?: boolean | "suppress-warning" | undefined;
869
+ OPTIONS_BEFORE_DESTROY?: boolean | "suppress-warning" | undefined;
870
+ OPTIONS_DESTROYED?: boolean | "suppress-warning" | undefined;
871
+ WATCH_ARRAY?: boolean | "suppress-warning" | undefined;
872
+ PROPS_DEFAULT_THIS?: boolean | "suppress-warning" | undefined;
873
+ V_ON_KEYCODE_MODIFIER?: boolean | "suppress-warning" | undefined;
874
+ CUSTOM_DIR?: boolean | "suppress-warning" | undefined;
875
+ ATTR_FALSE_VALUE?: boolean | "suppress-warning" | undefined;
876
+ ATTR_ENUMERATED_COERCION?: boolean | "suppress-warning" | undefined;
877
+ TRANSITION_CLASSES?: boolean | "suppress-warning" | undefined;
878
+ TRANSITION_GROUP_ROOT?: boolean | "suppress-warning" | undefined;
879
+ COMPONENT_ASYNC?: boolean | "suppress-warning" | undefined;
880
+ COMPONENT_FUNCTIONAL?: boolean | "suppress-warning" | undefined;
881
+ COMPONENT_V_MODEL?: boolean | "suppress-warning" | undefined;
882
+ RENDER_FUNCTION?: boolean | "suppress-warning" | undefined;
883
+ FILTERS?: boolean | "suppress-warning" | undefined;
884
+ PRIVATE_APIS?: boolean | "suppress-warning" | undefined;
885
+ MODE?: 2 | 3 | ((comp: vue.Component<any, any, any, vue.ComputedOptions, vue.MethodOptions, {}, any> | null) => 2 | 3) | undefined;
886
+ } | undefined;
887
+ data?: ((this: any, vm: any) => any) | undefined;
888
+ computed?: vue.ComputedOptions | undefined;
889
+ methods?: vue.MethodOptions | undefined;
890
+ watch?: {
891
+ [x: string]: (string | vue.WatchCallback<any, any> | ({
892
+ handler: string | vue.WatchCallback<any, any>;
893
+ } & vue.WatchOptions<boolean>)) | (string | vue.WatchCallback<any, any> | ({
894
+ handler: string | vue.WatchCallback<any, any>;
895
+ } & vue.WatchOptions<boolean>))[];
896
+ } | undefined;
897
+ provide?: vue.ComponentProvideOptions | undefined;
898
+ inject?: {} | string[] | undefined;
899
+ filters?: Record<string, Function> | undefined;
900
+ mixins?: any[] | undefined;
901
+ extends?: any;
902
+ beforeCreate?: (() => void) | undefined;
903
+ created?: (() => void) | undefined;
904
+ beforeMount?: (() => void) | undefined;
905
+ mounted?: (() => void) | undefined;
906
+ beforeUpdate?: (() => void) | undefined;
907
+ updated?: (() => void) | undefined;
908
+ activated?: (() => void) | undefined;
909
+ deactivated?: (() => void) | undefined;
910
+ beforeDestroy?: (() => void) | undefined;
911
+ beforeUnmount?: (() => void) | undefined;
912
+ destroyed?: (() => void) | undefined;
913
+ unmounted?: (() => void) | undefined;
914
+ renderTracked?: ((e: vue.DebuggerEvent) => void) | undefined;
915
+ renderTriggered?: ((e: vue.DebuggerEvent) => void) | undefined;
916
+ errorCaptured?: ((err: unknown, instance: vue.ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, vue.ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null, info: string) => boolean | void) | undefined;
917
+ delimiters?: [string, string] | undefined;
918
+ __differentiator?: string | number | symbol | undefined;
919
+ __isBuiltIn?: boolean | undefined;
920
+ __file?: string | undefined;
921
+ __name?: string | undefined;
922
+ };
923
+ readonly asChild: boolean;
924
+ readonly position: "inline" | "popper";
925
+ readonly dismissable: boolean;
926
+ readonly side: "top" | "right" | "bottom" | "left";
927
+ readonly sideOffset: number;
928
+ readonly align: "end" | "center" | "start";
929
+ readonly alignOffset: number;
930
+ readonly avoidCollisions: boolean;
931
+ readonly collisionBoundary: Element | (Element | null)[] | null;
932
+ readonly collisionPadding: number | {
933
+ top?: number | undefined;
934
+ right?: number | undefined;
935
+ bottom?: number | undefined;
936
+ left?: number | undefined;
937
+ };
938
+ readonly arrowPadding: number;
939
+ readonly sticky: "partial" | "always";
940
+ readonly hideWhenDetached: boolean;
941
+ readonly updatePositionStrategy: "optimized" | "always";
942
+ readonly prioritizePosition: boolean;
943
+ readonly disableOutsidePointerEvents: boolean;
944
+ readonly isDismissable: boolean;
945
+ readonly bodyLock: boolean | undefined;
946
+ readonly forceMount: boolean | undefined;
947
+ readonly onEscapeKeyDown: ((_event: KeyboardEvent) => any) | undefined;
948
+ readonly onPointerDownOutside: ((_event: CustomEvent<{
949
+ originalEvent: PointerEvent;
950
+ }>) => any) | undefined;
951
+ readonly onFocusOutside: ((_event: CustomEvent<{
952
+ originalEvent: FocusEvent;
953
+ }>) => any) | undefined;
954
+ readonly onInteractOutside: ((_event: CustomEvent<{
955
+ originalEvent: PointerEvent;
956
+ }> | CustomEvent<{
957
+ originalEvent: FocusEvent;
958
+ }>) => any) | undefined;
959
+ } & Record<string, any>>;
960
+ rootContext: ComboboxRootContext<AcceptableValue>;
961
+ }, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
962
+ escapeKeyDown: (_event: KeyboardEvent) => boolean;
963
+ pointerDownOutside: (_event: CustomEvent<{
964
+ originalEvent: PointerEvent;
965
+ }>) => boolean;
966
+ focusOutside: (_event: CustomEvent<{
967
+ originalEvent: FocusEvent;
968
+ }>) => boolean;
969
+ interactOutside: (_event: CustomEvent<{
970
+ originalEvent: PointerEvent;
971
+ }> | CustomEvent<{
972
+ originalEvent: FocusEvent;
973
+ }>) => boolean;
974
+ }, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
975
+ /**
976
+ * Used to force mounting when more control is needed.
977
+ * Useful when controlling animation with Vue animation libraries.
978
+ */
979
+ readonly forceMount: {
980
+ readonly type: PropType<boolean>;
981
+ readonly required: false;
982
+ };
983
+ readonly position: {
984
+ readonly type: PropType<"inline" | "popper">;
985
+ readonly required: false;
986
+ readonly default: "inline";
987
+ };
988
+ readonly bodyLock: {
989
+ readonly type: PropType<boolean>;
990
+ readonly required: false;
991
+ };
992
+ readonly dismissable: {
993
+ readonly type: PropType<boolean>;
994
+ readonly required: false;
995
+ readonly default: true;
996
+ };
997
+ readonly side: {
998
+ readonly type: PropType<"top" | "right" | "bottom" | "left">;
999
+ readonly required: false;
1000
+ readonly default: "bottom";
1001
+ };
1002
+ readonly sideOffset: {
1003
+ readonly type: PropType<number>;
1004
+ readonly required: false;
1005
+ readonly default: 0;
1006
+ };
1007
+ readonly align: {
1008
+ readonly type: PropType<"end" | "center" | "start">;
1009
+ readonly required: false;
1010
+ readonly default: "center";
1011
+ };
1012
+ readonly alignOffset: {
1013
+ readonly type: PropType<number>;
1014
+ readonly required: false;
1015
+ readonly default: 0;
1016
+ };
1017
+ readonly avoidCollisions: {
1018
+ readonly type: PropType<boolean>;
1019
+ readonly required: false;
1020
+ readonly default: true;
1021
+ };
1022
+ readonly collisionBoundary: {
1023
+ readonly type: PropType<Element | (Element | null)[] | null>;
1024
+ readonly required: false;
1025
+ readonly default: () => never[];
1026
+ };
1027
+ readonly collisionPadding: {
1028
+ readonly type: PropType<number | Partial<Record<"top" | "right" | "bottom" | "left", number>>>;
1029
+ readonly required: false;
1030
+ readonly default: 0;
1031
+ };
1032
+ readonly arrowPadding: {
1033
+ readonly type: PropType<number>;
1034
+ readonly required: false;
1035
+ readonly default: 0;
1036
+ };
1037
+ readonly sticky: {
1038
+ readonly type: PropType<"partial" | "always">;
1039
+ readonly required: false;
1040
+ readonly default: "partial";
1041
+ };
1042
+ readonly hideWhenDetached: {
1043
+ readonly type: PropType<boolean>;
1044
+ readonly required: false;
1045
+ readonly default: false;
1046
+ };
1047
+ readonly updatePositionStrategy: {
1048
+ readonly type: PropType<"optimized" | "always">;
1049
+ readonly required: false;
1050
+ readonly default: "optimized";
1051
+ };
1052
+ readonly prioritizePosition: {
1053
+ readonly type: PropType<boolean>;
1054
+ readonly required: false;
1055
+ readonly default: false;
1056
+ };
1057
+ readonly as: {
1058
+ readonly type: PropType<vue.Component<any, any, any, vue.ComputedOptions, vue.MethodOptions, {}, any> | _destyler_primitive.AsTag>;
1059
+ readonly required: false;
1060
+ readonly default: "div";
1061
+ };
1062
+ readonly asChild: {
1063
+ readonly type: PropType<boolean>;
1064
+ readonly required: false;
1065
+ readonly default: false;
1066
+ };
1067
+ readonly disableOutsidePointerEvents: {
1068
+ readonly type: PropType<boolean>;
1069
+ readonly required: false;
1070
+ readonly default: false;
1071
+ };
1072
+ readonly isDismissable: {
1073
+ readonly type: PropType<boolean>;
1074
+ readonly required: false;
1075
+ readonly default: true;
1076
+ };
1077
+ }>> & {
1078
+ onEscapeKeyDown?: ((_event: KeyboardEvent) => any) | undefined;
1079
+ onPointerDownOutside?: ((_event: CustomEvent<{
1080
+ originalEvent: PointerEvent;
1081
+ }>) => any) | undefined;
1082
+ onFocusOutside?: ((_event: CustomEvent<{
1083
+ originalEvent: FocusEvent;
1084
+ }>) => any) | undefined;
1085
+ onInteractOutside?: ((_event: CustomEvent<{
1086
+ originalEvent: PointerEvent;
1087
+ }> | CustomEvent<{
1088
+ originalEvent: FocusEvent;
1089
+ }>) => any) | undefined;
1090
+ }, {
1091
+ readonly as: vue.Component<any, any, any, vue.ComputedOptions, vue.MethodOptions, {}, any> | _destyler_primitive.AsTag;
1092
+ readonly asChild: boolean;
1093
+ readonly position: "inline" | "popper";
1094
+ readonly dismissable: boolean;
1095
+ readonly side: "top" | "right" | "bottom" | "left";
1096
+ readonly sideOffset: number;
1097
+ readonly align: "end" | "center" | "start";
1098
+ readonly alignOffset: number;
1099
+ readonly avoidCollisions: boolean;
1100
+ readonly collisionBoundary: Element | (Element | null)[] | null;
1101
+ readonly collisionPadding: number | Partial<Record<"top" | "right" | "bottom" | "left", number>>;
1102
+ readonly arrowPadding: number;
1103
+ readonly sticky: "partial" | "always";
1104
+ readonly hideWhenDetached: boolean;
1105
+ readonly updatePositionStrategy: "optimized" | "always";
1106
+ readonly prioritizePosition: boolean;
1107
+ readonly disableOutsidePointerEvents: boolean;
1108
+ readonly isDismissable: boolean;
1109
+ }, {}>;
1110
+
1111
+ declare const comboboxEmptyProps: {
1112
+ readonly as: {
1113
+ readonly type: vue.PropType<_destyler_primitive.AsTag | vue.Component>;
1114
+ readonly required: false;
1115
+ readonly default: "div";
1116
+ };
1117
+ readonly asChild: {
1118
+ readonly type: vue.PropType<boolean>;
1119
+ readonly required: false;
1120
+ readonly default: false;
1121
+ };
1122
+ };
1123
+ type ComboboxEmptyProps = ExtractPublicPropTypes<typeof comboboxEmptyProps>;
1124
+ declare const ComboboxEmpty: vue.DefineComponent<{
1125
+ readonly as: {
1126
+ readonly type: vue.PropType<_destyler_primitive.AsTag | vue.Component>;
1127
+ readonly required: false;
1128
+ readonly default: "div";
1129
+ };
1130
+ readonly asChild: {
1131
+ readonly type: vue.PropType<boolean>;
1132
+ readonly required: false;
1133
+ readonly default: false;
1134
+ };
1135
+ }, {
1136
+ rootContext: ComboboxRootContext<AcceptableValue>;
1137
+ isEmpty: vue.ComputedRef<boolean>;
1138
+ }, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
1139
+ readonly as: {
1140
+ readonly type: vue.PropType<_destyler_primitive.AsTag | vue.Component>;
1141
+ readonly required: false;
1142
+ readonly default: "div";
1143
+ };
1144
+ readonly asChild: {
1145
+ readonly type: vue.PropType<boolean>;
1146
+ readonly required: false;
1147
+ readonly default: false;
1148
+ };
1149
+ }>>, {
1150
+ readonly as: _destyler_primitive.AsTag | vue.Component;
1151
+ readonly asChild: boolean;
1152
+ }, {}>;
1153
+
1154
+ declare const comboboxGroupProps: {
1155
+ readonly as: {
1156
+ readonly type: vue.PropType<_destyler_primitive.AsTag | vue.Component>;
1157
+ readonly required: false;
1158
+ readonly default: "div";
1159
+ };
1160
+ readonly asChild: {
1161
+ readonly type: vue.PropType<boolean>;
1162
+ readonly required: false;
1163
+ readonly default: false;
1164
+ };
1165
+ };
1166
+ type ComboboxGroupProps = ExtractPublicPropTypes<typeof comboboxGroupProps>;
1167
+ interface ComboboxGroupContext {
1168
+ id: string;
1169
+ }
1170
+ declare const ComboboxGroup: vue.DefineComponent<{
1171
+ readonly as: {
1172
+ readonly type: vue.PropType<_destyler_primitive.AsTag | vue.Component>;
1173
+ readonly required: false;
1174
+ readonly default: "div";
1175
+ };
1176
+ readonly asChild: {
1177
+ readonly type: vue.PropType<boolean>;
1178
+ readonly required: false;
1179
+ readonly default: false;
1180
+ };
1181
+ }, {
1182
+ currentRef: vue.Ref<Element | vue.ComponentPublicInstance | null | undefined>;
1183
+ hasOptions: vue.Ref<boolean>;
1184
+ id: string;
1185
+ }, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
1186
+ readonly as: {
1187
+ readonly type: vue.PropType<_destyler_primitive.AsTag | vue.Component>;
1188
+ readonly required: false;
1189
+ readonly default: "div";
1190
+ };
1191
+ readonly asChild: {
1192
+ readonly type: vue.PropType<boolean>;
1193
+ readonly required: false;
1194
+ readonly default: false;
1195
+ };
1196
+ }>>, {
1197
+ readonly as: _destyler_primitive.AsTag | vue.Component;
1198
+ readonly asChild: boolean;
1199
+ }, {}>;
1200
+
1201
+ declare const comboboxInputProps: {
1202
+ /**
1203
+ * @default input
1204
+ */
1205
+ readonly as: {
1206
+ readonly default: "input";
1207
+ readonly type: PropType<_destyler_primitive.AsTag | vue.Component>;
1208
+ readonly required: false;
1209
+ };
1210
+ /**
1211
+ * Native input type
1212
+ *
1213
+ * @default text
1214
+ */
1215
+ readonly type: {
1216
+ readonly type: PropType<string>;
1217
+ readonly required: false;
1218
+ readonly default: "text";
1219
+ };
1220
+ /**
1221
+ * When `true`, prevents the user from interacting with item
1222
+ */
1223
+ readonly disabled: {
1224
+ readonly type: PropType<boolean>;
1225
+ readonly required: false;
1226
+ };
1227
+ /**
1228
+ * Focus on element when mounted.
1229
+ *
1230
+ * @default false
1231
+ */
1232
+ readonly autoFocus: {
1233
+ readonly type: PropType<boolean>;
1234
+ readonly required: false;
1235
+ };
1236
+ readonly asChild: {
1237
+ readonly type: PropType<boolean>;
1238
+ readonly required: false;
1239
+ readonly default: false;
1240
+ };
1241
+ };
1242
+ type ComboboxInputProps = ExtractPublicPropTypes<typeof comboboxInputProps>;
1243
+ declare const ComboboxInput: vue.DefineComponent<{
1244
+ /**
1245
+ * @default input
1246
+ */
1247
+ readonly as: {
1248
+ readonly default: "input";
1249
+ readonly type: PropType<_destyler_primitive.AsTag | vue.Component>;
1250
+ readonly required: false;
1251
+ };
1252
+ /**
1253
+ * Native input type
1254
+ *
1255
+ * @default text
1256
+ */
1257
+ readonly type: {
1258
+ readonly type: PropType<string>;
1259
+ readonly required: false;
1260
+ readonly default: "text";
1261
+ };
1262
+ /**
1263
+ * When `true`, prevents the user from interacting with item
1264
+ */
1265
+ readonly disabled: {
1266
+ readonly type: PropType<boolean>;
1267
+ readonly required: false;
1268
+ };
1269
+ /**
1270
+ * Focus on element when mounted.
1271
+ *
1272
+ * @default false
1273
+ */
1274
+ readonly autoFocus: {
1275
+ readonly type: PropType<boolean>;
1276
+ readonly required: false;
1277
+ };
1278
+ readonly asChild: {
1279
+ readonly type: PropType<boolean>;
1280
+ readonly required: false;
1281
+ readonly default: false;
1282
+ };
1283
+ }, {
1284
+ disabled: vue.ComputedRef<boolean>;
1285
+ rootContext: ComboboxRootContext<AcceptableValue>;
1286
+ forwardRef: (ref: Element | vue.ComponentPublicInstance | null) => void;
1287
+ handleInput: (event: Event) => void;
1288
+ handleKeyDown: (ev: KeyboardEvent) => void;
1289
+ handleHomeEnd: (ev: KeyboardEvent) => void;
1290
+ }, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
1291
+ /**
1292
+ * @default input
1293
+ */
1294
+ readonly as: {
1295
+ readonly default: "input";
1296
+ readonly type: PropType<_destyler_primitive.AsTag | vue.Component>;
1297
+ readonly required: false;
1298
+ };
1299
+ /**
1300
+ * Native input type
1301
+ *
1302
+ * @default text
1303
+ */
1304
+ readonly type: {
1305
+ readonly type: PropType<string>;
1306
+ readonly required: false;
1307
+ readonly default: "text";
1308
+ };
1309
+ /**
1310
+ * When `true`, prevents the user from interacting with item
1311
+ */
1312
+ readonly disabled: {
1313
+ readonly type: PropType<boolean>;
1314
+ readonly required: false;
1315
+ };
1316
+ /**
1317
+ * Focus on element when mounted.
1318
+ *
1319
+ * @default false
1320
+ */
1321
+ readonly autoFocus: {
1322
+ readonly type: PropType<boolean>;
1323
+ readonly required: false;
1324
+ };
1325
+ readonly asChild: {
1326
+ readonly type: PropType<boolean>;
1327
+ readonly required: false;
1328
+ readonly default: false;
1329
+ };
1330
+ }>>, {
1331
+ readonly as: _destyler_primitive.AsTag | vue.Component;
1332
+ readonly asChild: boolean;
1333
+ readonly type: string;
1334
+ }, {}>;
1335
+
1336
+ type SelectEvent<T> = CustomEvent<{
1337
+ originalEvent: PointerEvent;
1338
+ value?: T;
1339
+ }>;
1340
+ declare const comboboxItemProps: {
1341
+ /**
1342
+ * The value given as data when submitted with a `name`.
1343
+ */
1344
+ readonly value: {
1345
+ readonly type: PropType<AcceptableValue>;
1346
+ readonly required: true;
1347
+ };
1348
+ /**
1349
+ * When true, prevents the user from interacting with the `item`.
1350
+ */
1351
+ readonly disabled: {
1352
+ readonly type: PropType<boolean>;
1353
+ readonly required: false;
1354
+ };
1355
+ readonly as: {
1356
+ readonly type: PropType<_destyler_primitive.AsTag | vue.Component>;
1357
+ readonly required: false;
1358
+ readonly default: "div";
1359
+ };
1360
+ readonly asChild: {
1361
+ readonly type: PropType<boolean>;
1362
+ readonly required: false;
1363
+ readonly default: false;
1364
+ };
1365
+ };
1366
+ type ComboboxItemProps = ExtractPublicPropTypes<typeof comboboxItemProps>;
1367
+ declare const comboboxItemEmits: {
1368
+ /**
1369
+ * Event handler called when the selecting item. <br>
1370
+ * It can be prevented by calling `event.preventDefault`.
1371
+ */
1372
+ select: (_ev: SelectEvent<AcceptableValue>) => boolean;
1373
+ };
1374
+ interface ComboboxItemContext {
1375
+ isSelected: Ref<boolean>;
1376
+ }
1377
+ declare const ComboboxItem: vue.DefineComponent<{
1378
+ /**
1379
+ * The value given as data when submitted with a `name`.
1380
+ */
1381
+ readonly value: {
1382
+ readonly type: PropType<AcceptableValue>;
1383
+ readonly required: true;
1384
+ };
1385
+ /**
1386
+ * When true, prevents the user from interacting with the `item`.
1387
+ */
1388
+ readonly disabled: {
1389
+ readonly type: PropType<boolean>;
1390
+ readonly required: false;
1391
+ };
1392
+ readonly as: {
1393
+ readonly type: PropType<_destyler_primitive.AsTag | vue.Component>;
1394
+ readonly required: false;
1395
+ readonly default: "div";
1396
+ };
1397
+ readonly asChild: {
1398
+ readonly type: PropType<boolean>;
1399
+ readonly required: false;
1400
+ readonly default: false;
1401
+ };
1402
+ }, {
1403
+ forwardRef: (ref: Element | vue.ComponentPublicInstance | null) => void;
1404
+ textId: string;
1405
+ isFocused: vue.ComputedRef<boolean>;
1406
+ isSelected: vue.ComputedRef<boolean>;
1407
+ isInOption: vue.ComputedRef<boolean>;
1408
+ handleSelectCustomEvent: (ev?: PointerEvent) => void;
1409
+ handlePointerMove: (event: PointerEvent) => Promise<void>;
1410
+ }, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
1411
+ /**
1412
+ * Event handler called when the selecting item. <br>
1413
+ * It can be prevented by calling `event.preventDefault`.
1414
+ */
1415
+ select: (_ev: SelectEvent<AcceptableValue>) => boolean;
1416
+ }, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
1417
+ /**
1418
+ * The value given as data when submitted with a `name`.
1419
+ */
1420
+ readonly value: {
1421
+ readonly type: PropType<AcceptableValue>;
1422
+ readonly required: true;
1423
+ };
1424
+ /**
1425
+ * When true, prevents the user from interacting with the `item`.
1426
+ */
1427
+ readonly disabled: {
1428
+ readonly type: PropType<boolean>;
1429
+ readonly required: false;
1430
+ };
1431
+ readonly as: {
1432
+ readonly type: PropType<_destyler_primitive.AsTag | vue.Component>;
1433
+ readonly required: false;
1434
+ readonly default: "div";
1435
+ };
1436
+ readonly asChild: {
1437
+ readonly type: PropType<boolean>;
1438
+ readonly required: false;
1439
+ readonly default: false;
1440
+ };
1441
+ }>> & {
1442
+ onSelect?: ((_ev: SelectEvent<AcceptableValue>) => any) | undefined;
1443
+ }, {
1444
+ readonly as: _destyler_primitive.AsTag | vue.Component;
1445
+ readonly asChild: boolean;
1446
+ }, {}>;
1447
+
1448
+ declare const comboboxItemIndicatorProps: {
1449
+ /**
1450
+ * @default span
1451
+ */
1452
+ readonly as: {
1453
+ readonly default: "span";
1454
+ readonly type: vue.PropType<_destyler_primitive.AsTag | vue.Component>;
1455
+ readonly required: false;
1456
+ };
1457
+ readonly asChild: {
1458
+ readonly type: vue.PropType<boolean>;
1459
+ readonly required: false;
1460
+ readonly default: false;
1461
+ };
1462
+ };
1463
+ type ComboboxItemIndicatorProps = ExtractPublicPropTypes<typeof comboboxItemIndicatorProps>;
1464
+ declare const ComboboxItemIndicator: vue.DefineComponent<{
1465
+ /**
1466
+ * @default span
1467
+ */
1468
+ readonly as: {
1469
+ readonly default: "span";
1470
+ readonly type: vue.PropType<_destyler_primitive.AsTag | vue.Component>;
1471
+ readonly required: false;
1472
+ };
1473
+ readonly asChild: {
1474
+ readonly type: vue.PropType<boolean>;
1475
+ readonly required: false;
1476
+ readonly default: false;
1477
+ };
1478
+ }, {
1479
+ itemContext: ComboboxItemContext;
1480
+ }, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
1481
+ /**
1482
+ * @default span
1483
+ */
1484
+ readonly as: {
1485
+ readonly default: "span";
1486
+ readonly type: vue.PropType<_destyler_primitive.AsTag | vue.Component>;
1487
+ readonly required: false;
1488
+ };
1489
+ readonly asChild: {
1490
+ readonly type: vue.PropType<boolean>;
1491
+ readonly required: false;
1492
+ readonly default: false;
1493
+ };
1494
+ }>>, {
1495
+ readonly as: _destyler_primitive.AsTag | vue.Component;
1496
+ readonly asChild: boolean;
1497
+ }, {}>;
1498
+
1499
+ declare const comboboxLabelProps: {
1500
+ /**
1501
+ * The id of the element the label is associated with.
1502
+ */
1503
+ readonly for: {
1504
+ readonly type: PropType<string>;
1505
+ readonly required: false;
1506
+ };
1507
+ readonly as: {
1508
+ readonly type: PropType<_destyler_primitive.AsTag | vue.Component>;
1509
+ readonly required: false;
1510
+ readonly default: "div";
1511
+ };
1512
+ readonly asChild: {
1513
+ readonly type: PropType<boolean>;
1514
+ readonly required: false;
1515
+ readonly default: false;
1516
+ };
1517
+ };
1518
+ type ComboboxLabelProps = ExtractPublicPropTypes<typeof comboboxLabelProps>;
1519
+ declare const ComboboxLabel: vue.DefineComponent<{
1520
+ /**
1521
+ * The id of the element the label is associated with.
1522
+ */
1523
+ readonly for: {
1524
+ readonly type: PropType<string>;
1525
+ readonly required: false;
1526
+ };
1527
+ readonly as: {
1528
+ readonly type: PropType<_destyler_primitive.AsTag | vue.Component>;
1529
+ readonly required: false;
1530
+ readonly default: "div";
1531
+ };
1532
+ readonly asChild: {
1533
+ readonly type: PropType<boolean>;
1534
+ readonly required: false;
1535
+ readonly default: false;
1536
+ };
1537
+ }, {
1538
+ groupContext: ComboboxGroupContext;
1539
+ }, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
1540
+ /**
1541
+ * The id of the element the label is associated with.
1542
+ */
1543
+ readonly for: {
1544
+ readonly type: PropType<string>;
1545
+ readonly required: false;
1546
+ };
1547
+ readonly as: {
1548
+ readonly type: PropType<_destyler_primitive.AsTag | vue.Component>;
1549
+ readonly required: false;
1550
+ readonly default: "div";
1551
+ };
1552
+ readonly asChild: {
1553
+ readonly type: PropType<boolean>;
1554
+ readonly required: false;
1555
+ readonly default: false;
1556
+ };
1557
+ }>>, {
1558
+ readonly as: _destyler_primitive.AsTag | vue.Component;
1559
+ readonly asChild: boolean;
1560
+ }, {}>;
1561
+
1562
+ declare const comboboxPortalProps: {
1563
+ readonly to: {
1564
+ readonly type: vue.PropType<string | HTMLElement>;
1565
+ readonly required: false;
1566
+ readonly default: "body";
1567
+ };
1568
+ readonly disabled: {
1569
+ readonly type: vue.PropType<boolean>;
1570
+ readonly required: false;
1571
+ readonly default: false;
1572
+ };
1573
+ readonly forceMount: {
1574
+ readonly type: vue.PropType<boolean>;
1575
+ readonly required: false;
1576
+ readonly default: false;
1577
+ };
1578
+ };
1579
+ type ComboboxPortalProps = ExtractPublicPropTypes<typeof comboboxPortalProps>;
1580
+ declare const ComboboxPortal: vue.DefineComponent<{
1581
+ readonly to: {
1582
+ readonly type: vue.PropType<string | HTMLElement>;
1583
+ readonly required: false;
1584
+ readonly default: "body";
1585
+ };
1586
+ readonly disabled: {
1587
+ readonly type: vue.PropType<boolean>;
1588
+ readonly required: false;
1589
+ readonly default: false;
1590
+ };
1591
+ readonly forceMount: {
1592
+ readonly type: vue.PropType<boolean>;
1593
+ readonly required: false;
1594
+ readonly default: false;
1595
+ };
1596
+ }, unknown, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
1597
+ readonly to: {
1598
+ readonly type: vue.PropType<string | HTMLElement>;
1599
+ readonly required: false;
1600
+ readonly default: "body";
1601
+ };
1602
+ readonly disabled: {
1603
+ readonly type: vue.PropType<boolean>;
1604
+ readonly required: false;
1605
+ readonly default: false;
1606
+ };
1607
+ readonly forceMount: {
1608
+ readonly type: vue.PropType<boolean>;
1609
+ readonly required: false;
1610
+ readonly default: false;
1611
+ };
1612
+ }>>, {
1613
+ readonly disabled: boolean;
1614
+ readonly forceMount: boolean;
1615
+ readonly to: string | HTMLElement;
1616
+ }, {}>;
1617
+
1618
+ declare const comboboxSeparatorProps: {
1619
+ readonly as: {
1620
+ readonly type: vue.PropType<_destyler_primitive.AsTag | vue.Component>;
1621
+ readonly required: false;
1622
+ readonly default: "div";
1623
+ };
1624
+ readonly asChild: {
1625
+ readonly type: vue.PropType<boolean>;
1626
+ readonly required: false;
1627
+ readonly default: false;
1628
+ };
1629
+ };
1630
+ type ComboboxSeparatorProps = ExtractPublicPropTypes<typeof comboboxSeparatorProps>;
1631
+ declare const ComboboxSeparator: vue.DefineComponent<{
1632
+ readonly as: {
1633
+ readonly type: vue.PropType<_destyler_primitive.AsTag | vue.Component>;
1634
+ readonly required: false;
1635
+ readonly default: "div";
1636
+ };
1637
+ readonly asChild: {
1638
+ readonly type: vue.PropType<boolean>;
1639
+ readonly required: false;
1640
+ readonly default: false;
1641
+ };
1642
+ }, void, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
1643
+ readonly as: {
1644
+ readonly type: vue.PropType<_destyler_primitive.AsTag | vue.Component>;
1645
+ readonly required: false;
1646
+ readonly default: "div";
1647
+ };
1648
+ readonly asChild: {
1649
+ readonly type: vue.PropType<boolean>;
1650
+ readonly required: false;
1651
+ readonly default: false;
1652
+ };
1653
+ }>>, {
1654
+ readonly as: _destyler_primitive.AsTag | vue.Component;
1655
+ readonly asChild: boolean;
1656
+ }, {}>;
1657
+
1658
+ declare const comboboxTriggerProps: {
1659
+ /**
1660
+ * @default button
1661
+ */
1662
+ readonly as: {
1663
+ readonly default: "button";
1664
+ readonly type: PropType<_destyler_primitive.AsTag | vue.Component>;
1665
+ readonly required: false;
1666
+ };
1667
+ /**
1668
+ * When `true`, prevents the user from interacting with item.
1669
+ */
1670
+ readonly disabled: {
1671
+ readonly type: PropType<boolean>;
1672
+ readonly required: false;
1673
+ };
1674
+ readonly asChild: {
1675
+ readonly type: PropType<boolean>;
1676
+ readonly required: false;
1677
+ readonly default: false;
1678
+ };
1679
+ };
1680
+ type ComboboxTriggerProps = ExtractPublicPropTypes<typeof comboboxTriggerProps>;
1681
+ declare const ComboboxTrigger: vue.DefineComponent<{
1682
+ /**
1683
+ * @default button
1684
+ */
1685
+ readonly as: {
1686
+ readonly default: "button";
1687
+ readonly type: PropType<_destyler_primitive.AsTag | vue.Component>;
1688
+ readonly required: false;
1689
+ };
1690
+ /**
1691
+ * When `true`, prevents the user from interacting with item.
1692
+ */
1693
+ readonly disabled: {
1694
+ readonly type: PropType<boolean>;
1695
+ readonly required: false;
1696
+ };
1697
+ readonly asChild: {
1698
+ readonly type: PropType<boolean>;
1699
+ readonly required: false;
1700
+ readonly default: false;
1701
+ };
1702
+ }, {
1703
+ rootContext: ComboboxRootContext<AcceptableValue>;
1704
+ disabled: vue.ComputedRef<boolean>;
1705
+ }, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
1706
+ /**
1707
+ * @default button
1708
+ */
1709
+ readonly as: {
1710
+ readonly default: "button";
1711
+ readonly type: PropType<_destyler_primitive.AsTag | vue.Component>;
1712
+ readonly required: false;
1713
+ };
1714
+ /**
1715
+ * When `true`, prevents the user from interacting with item.
1716
+ */
1717
+ readonly disabled: {
1718
+ readonly type: PropType<boolean>;
1719
+ readonly required: false;
1720
+ };
1721
+ readonly asChild: {
1722
+ readonly type: PropType<boolean>;
1723
+ readonly required: false;
1724
+ readonly default: false;
1725
+ };
1726
+ }>>, {
1727
+ readonly as: _destyler_primitive.AsTag | vue.Component;
1728
+ readonly asChild: boolean;
1729
+ }, {}>;
1730
+
1731
+ declare const comboboxViewportProps: {
1732
+ /**
1733
+ * Will add `nonce` attribute to the style tag which can be used by Content Security Policy.
1734
+ */
1735
+ readonly nonce: {
1736
+ readonly type: PropType<string>;
1737
+ readonly required: false;
1738
+ };
1739
+ readonly as: {
1740
+ readonly type: PropType<_destyler_primitive.AsTag | vue.Component>;
1741
+ readonly required: false;
1742
+ readonly default: "div";
1743
+ };
1744
+ readonly asChild: {
1745
+ readonly type: PropType<boolean>;
1746
+ readonly required: false;
1747
+ readonly default: false;
1748
+ };
1749
+ };
1750
+ type ComboboxViewportProps = ExtractPublicPropTypes<typeof comboboxViewportProps>;
1751
+ declare const ComboboxViewport: vue.DefineComponent<{
1752
+ /**
1753
+ * Will add `nonce` attribute to the style tag which can be used by Content Security Policy.
1754
+ */
1755
+ readonly nonce: {
1756
+ readonly type: PropType<string>;
1757
+ readonly required: false;
1758
+ };
1759
+ readonly as: {
1760
+ readonly type: PropType<_destyler_primitive.AsTag | vue.Component>;
1761
+ readonly required: false;
1762
+ readonly default: "div";
1763
+ };
1764
+ readonly asChild: {
1765
+ readonly type: PropType<boolean>;
1766
+ readonly required: false;
1767
+ readonly default: false;
1768
+ };
1769
+ }, {
1770
+ forwardRef: (ref: Element | vue.ComponentPublicInstance | null) => void;
1771
+ }, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
1772
+ /**
1773
+ * Will add `nonce` attribute to the style tag which can be used by Content Security Policy.
1774
+ */
1775
+ readonly nonce: {
1776
+ readonly type: PropType<string>;
1777
+ readonly required: false;
1778
+ };
1779
+ readonly as: {
1780
+ readonly type: PropType<_destyler_primitive.AsTag | vue.Component>;
1781
+ readonly required: false;
1782
+ readonly default: "div";
1783
+ };
1784
+ readonly asChild: {
1785
+ readonly type: PropType<boolean>;
1786
+ readonly required: false;
1787
+ readonly default: false;
1788
+ };
1789
+ }>>, {
1790
+ readonly as: _destyler_primitive.AsTag | vue.Component;
1791
+ readonly asChild: boolean;
1792
+ }, {}>;
1793
+
1794
+ export { type AcceptableValue as A, ComboboxItemIndicator as B, type ComboboxRootContext as C, comboboxItemIndicatorProps as D, type ComboboxItemIndicatorProps as E, ComboboxLabel as F, comboboxLabelProps as G, type ComboboxLabelProps as H, ComboboxPortal as I, comboboxPortalProps as J, type ComboboxPortalProps as K, ComboboxRoot as L, comboboxRootProps as M, comboboxRootEmits as N, type ComboboxRootProps as O, ComboboxSeparator as P, comboboxSeparatorProps as Q, type ComboboxSeparatorProps as R, ComboboxTrigger as S, comboboxTriggerProps as T, type ComboboxTriggerProps as U, ComboboxViewport as V, comboboxViewportProps as W, type ComboboxViewportProps as X, ComboboxAnchor as a, type ComboboxAnchorProps as b, comboboxAnchorProps as c, ComboboxArrow as d, comboboxArrowProps as e, type ComboboxArrowProps as f, ComboboxCancel as g, comboboxCancelProps as h, type ComboboxCancelProps as i, ComboboxContent as j, comboboxContentProps as k, comboboxContentEmits as l, type ComboboxContentProps as m, ComboboxEmpty as n, comboboxEmptyProps as o, type ComboboxEmptyProps as p, ComboboxGroup as q, comboboxGroupProps as r, type ComboboxGroupProps as s, ComboboxInput as t, comboboxInputProps as u, type ComboboxInputProps as v, ComboboxItem as w, comboboxItemProps as x, comboboxItemEmits as y, type ComboboxItemProps as z };