@destyler/combobox 0.0.3 → 0.0.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.
@@ -1,22 +1,40 @@
1
- import { C as ComboboxRootContext } from './shared/combobox.27206b6f.mjs';
2
- export { D as DestylerComboboxAnchor, a as DestylerComboboxAnchorProps, b as DestylerComboboxArrow, c as DestylerComboboxArrowProps, d as DestylerComboboxCancel, e as DestylerComboboxCancelProps, f as DestylerComboboxContent, g as DestylerComboboxContentProps, h as DestylerComboboxEmpty, i as DestylerComboboxEmptyProps, j as DestylerComboboxGroup, k as DestylerComboboxGroupProps, l as DestylerComboboxInput, m as DestylerComboboxInputProps, n as DestylerComboboxItem, p as DestylerComboboxItemIndicator, q as DestylerComboboxItemIndicatorProps, o as DestylerComboboxItemProps, r as DestylerComboboxLabel, s as DestylerComboboxLabelProps, t as DestylerComboboxPortal, u as DestylerComboboxPortalProps, v as DestylerComboboxRoot, w as DestylerComboboxRootProps, x as DestylerComboboxSeparator, y as DestylerComboboxSeparatorProps, z as DestylerComboboxTrigger, A as DestylerComboboxTriggerProps, B as DestylerComboboxViewport, E as DestylerComboboxViewportProps } from './shared/combobox.27206b6f.mjs';
1
+ import { C as ComboboxRootContext, A as AcceptableValue } from './shared/combobox.d5de67c5.mjs';
2
+ export { a as ComboboxAnchor, b as ComboboxAnchorProps, d as ComboboxArrow, f as ComboboxArrowProps, g as ComboboxCancel, i as ComboboxCancelProps, j as ComboboxContent, m as ComboboxContentProps, n as ComboboxEmpty, p as ComboboxEmptyProps, q as ComboboxGroup, s as ComboboxGroupProps, t as ComboboxInput, v as ComboboxInputProps, w as ComboboxItem, B as ComboboxItemIndicator, E as ComboboxItemIndicatorProps, z as ComboboxItemProps, F as ComboboxLabel, H as ComboboxLabelProps, I as ComboboxPortal, K as ComboboxPortalProps, L as ComboboxRoot, O as ComboboxRootProps, P as ComboboxSeparator, R as ComboboxSeparatorProps, S as ComboboxTrigger, U as ComboboxTriggerProps, V as ComboboxViewport, X as ComboboxViewportProps, c as comboboxAnchorProps, e as comboboxArrowProps, h as comboboxCancelProps, l as comboboxContentEmits, k as comboboxContentProps, o as comboboxEmptyProps, r as comboboxGroupProps, u as comboboxInputProps, y as comboboxItemEmits, D as comboboxItemIndicatorProps, x as comboboxItemProps, G as comboboxLabelProps, J as comboboxPortalProps, N as comboboxRootEmits, M as comboboxRootProps, Q as comboboxSeparatorProps, T as comboboxTriggerProps, W as comboboxViewportProps } from './shared/combobox.d5de67c5.mjs';
3
+ import * as _destyler_primitive from '@destyler/primitive';
3
4
  import * as vue from 'vue';
4
- import { PropType, Component } from 'vue';
5
- import * as _destyler_shared from '@destyler/shared';
5
+ import { PropType } from 'vue';
6
6
  import { ExtractPublicPropTypes } from '@destyler/shared';
7
- import { AsTag } from '@destyler/primitive';
8
7
  import '@vue/shared';
9
8
 
10
- declare const destylerComboboxContentImplProps: {
11
- readonly as: {
12
- readonly type: PropType<AsTag | Component>;
9
+ declare const comboboxContentImplProps: {
10
+ /**
11
+ * The positioning mode to use, <br>
12
+ * `inline` is the default and you can control the position using CSS. <br>
13
+ * `popper` positions content in the same way as our other primitives, for example `Popover` or `DropdownMenu`.
14
+ *
15
+ * @default inline
16
+ */
17
+ readonly position: {
18
+ readonly type: PropType<"inline" | "popper">;
13
19
  readonly required: false;
14
- readonly default: "div";
20
+ readonly default: "inline";
15
21
  };
16
- readonly asChild: {
22
+ /**
23
+ * The document.body will be lock, and scrolling will be disabled.
24
+ */
25
+ readonly bodyLock: {
17
26
  readonly type: PropType<boolean>;
18
27
  readonly required: false;
19
- readonly default: false;
28
+ };
29
+ /**
30
+ * Allow component to be dismissableLayer.
31
+ *
32
+ * @default true
33
+ */
34
+ readonly dismissable: {
35
+ readonly type: PropType<boolean>;
36
+ readonly required: false;
37
+ readonly default: true;
20
38
  };
21
39
  readonly side: {
22
40
  readonly type: PropType<"top" | "right" | "bottom" | "left">;
@@ -69,15 +87,21 @@ declare const destylerComboboxContentImplProps: {
69
87
  readonly default: false;
70
88
  };
71
89
  readonly updatePositionStrategy: {
72
- readonly type: PropType<"always" | "optimized">;
90
+ readonly type: PropType<"optimized" | "always">;
73
91
  readonly required: false;
74
92
  readonly default: "optimized";
75
93
  };
76
- readonly onPlaced: {
77
- readonly type: PropType<() => void>;
94
+ readonly prioritizePosition: {
95
+ readonly type: PropType<boolean>;
78
96
  readonly required: false;
97
+ readonly default: false;
79
98
  };
80
- readonly prioritizePosition: {
99
+ readonly as: {
100
+ readonly type: PropType<vue.Component<any, any, any, vue.ComputedOptions, vue.MethodOptions, {}, any> | _destyler_primitive.AsTag>;
101
+ readonly required: false;
102
+ readonly default: "div";
103
+ };
104
+ readonly asChild: {
81
105
  readonly type: PropType<boolean>;
82
106
  readonly required: false;
83
107
  readonly default: false;
@@ -92,33 +116,52 @@ declare const destylerComboboxContentImplProps: {
92
116
  readonly required: false;
93
117
  readonly default: true;
94
118
  };
119
+ };
120
+ type ComboboxContentImplProps = ExtractPublicPropTypes<typeof comboboxContentImplProps>;
121
+ declare const comboboxContentImplEmits: {
122
+ escapeKeyDown: (_event: KeyboardEvent) => boolean;
123
+ pointerDownOutside: (_event: CustomEvent<{
124
+ originalEvent: PointerEvent;
125
+ }>) => boolean;
126
+ focusOutside: (_event: CustomEvent<{
127
+ originalEvent: FocusEvent;
128
+ }>) => boolean;
129
+ interactOutside: (_event: CustomEvent<{
130
+ originalEvent: PointerEvent;
131
+ }> | CustomEvent<{
132
+ originalEvent: FocusEvent;
133
+ }>) => boolean;
134
+ };
135
+ declare const ComboboxContentImpl: vue.DefineComponent<{
136
+ /**
137
+ * The positioning mode to use, <br>
138
+ * `inline` is the default and you can control the position using CSS. <br>
139
+ * `popper` positions content in the same way as our other primitives, for example `Popover` or `DropdownMenu`.
140
+ *
141
+ * @default inline
142
+ */
95
143
  readonly position: {
96
144
  readonly type: PropType<"inline" | "popper">;
97
145
  readonly required: false;
98
146
  readonly default: "inline";
99
147
  };
148
+ /**
149
+ * The document.body will be lock, and scrolling will be disabled.
150
+ */
100
151
  readonly bodyLock: {
101
152
  readonly type: PropType<boolean>;
102
153
  readonly required: false;
103
154
  };
155
+ /**
156
+ * Allow component to be dismissableLayer.
157
+ *
158
+ * @default true
159
+ */
104
160
  readonly dismissable: {
105
161
  readonly type: PropType<boolean>;
106
162
  readonly required: false;
107
163
  readonly default: true;
108
164
  };
109
- };
110
- type DestylerComboboxContentImplProps = ExtractPublicPropTypes<typeof destylerComboboxContentImplProps>;
111
- declare const DestylerComboboxContentImpl: vue.DefineComponent<{
112
- readonly as: {
113
- readonly type: PropType<AsTag | Component>;
114
- readonly required: false;
115
- readonly default: "div";
116
- };
117
- readonly asChild: {
118
- readonly type: PropType<boolean>;
119
- readonly required: false;
120
- readonly default: false;
121
- };
122
165
  readonly side: {
123
166
  readonly type: PropType<"top" | "right" | "bottom" | "left">;
124
167
  readonly required: false;
@@ -170,15 +213,21 @@ declare const DestylerComboboxContentImpl: vue.DefineComponent<{
170
213
  readonly default: false;
171
214
  };
172
215
  readonly updatePositionStrategy: {
173
- readonly type: PropType<"always" | "optimized">;
216
+ readonly type: PropType<"optimized" | "always">;
174
217
  readonly required: false;
175
218
  readonly default: "optimized";
176
219
  };
177
- readonly onPlaced: {
178
- readonly type: PropType<() => void>;
220
+ readonly prioritizePosition: {
221
+ readonly type: PropType<boolean>;
179
222
  readonly required: false;
223
+ readonly default: false;
180
224
  };
181
- readonly prioritizePosition: {
225
+ readonly as: {
226
+ readonly type: PropType<vue.Component<any, any, any, vue.ComputedOptions, vue.MethodOptions, {}, any> | _destyler_primitive.AsTag>;
227
+ readonly required: false;
228
+ readonly default: "div";
229
+ };
230
+ readonly asChild: {
182
231
  readonly type: PropType<boolean>;
183
232
  readonly required: false;
184
233
  readonly default: false;
@@ -193,44 +242,63 @@ declare const DestylerComboboxContentImpl: vue.DefineComponent<{
193
242
  readonly required: false;
194
243
  readonly default: true;
195
244
  };
245
+ }, {
246
+ rootContext: ComboboxRootContext<AcceptableValue>;
247
+ popperStyle: {
248
+ boxSizing: string;
249
+ '--destyler-combobox-content-transform-origin': string;
250
+ '--destyler-combobox-content-available-width': string;
251
+ '--destyler-combobox-content-available-height': string;
252
+ '--destyler-combobox-trigger-width': string;
253
+ '--destyler-combobox-trigger-height': string;
254
+ };
255
+ forwardedProps: vue.ComputedRef<{}>;
256
+ pickedProps: vue.ComputedRef<{}>;
257
+ forwardRef: (ref: Element | vue.ComponentPublicInstance | null) => void;
258
+ handleLeave: () => void;
259
+ }, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
260
+ escapeKeyDown: (_event: KeyboardEvent) => boolean;
261
+ pointerDownOutside: (_event: CustomEvent<{
262
+ originalEvent: PointerEvent;
263
+ }>) => boolean;
264
+ focusOutside: (_event: CustomEvent<{
265
+ originalEvent: FocusEvent;
266
+ }>) => boolean;
267
+ interactOutside: (_event: CustomEvent<{
268
+ originalEvent: PointerEvent;
269
+ }> | CustomEvent<{
270
+ originalEvent: FocusEvent;
271
+ }>) => boolean;
272
+ }, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
273
+ /**
274
+ * The positioning mode to use, <br>
275
+ * `inline` is the default and you can control the position using CSS. <br>
276
+ * `popper` positions content in the same way as our other primitives, for example `Popover` or `DropdownMenu`.
277
+ *
278
+ * @default inline
279
+ */
196
280
  readonly position: {
197
281
  readonly type: PropType<"inline" | "popper">;
198
282
  readonly required: false;
199
283
  readonly default: "inline";
200
284
  };
285
+ /**
286
+ * The document.body will be lock, and scrolling will be disabled.
287
+ */
201
288
  readonly bodyLock: {
202
289
  readonly type: PropType<boolean>;
203
290
  readonly required: false;
204
291
  };
292
+ /**
293
+ * Allow component to be dismissableLayer.
294
+ *
295
+ * @default true
296
+ */
205
297
  readonly dismissable: {
206
298
  readonly type: PropType<boolean>;
207
299
  readonly required: false;
208
300
  readonly default: true;
209
301
  };
210
- }, {
211
- rootContext: ComboboxRootContext<string | number | boolean | Record<string, any>>;
212
- popperStyle: {
213
- boxSizing: string;
214
- '--destyler_combobox_content_transform_origin': string;
215
- '--destyler_combobox_content_available_width': string;
216
- '--destyler_combobox_content_available_height': string;
217
- '--destyler_combobox_trigger_width': string;
218
- '--destyler_combobox_trigger_height': string;
219
- };
220
- forwardedProps: _destyler_shared.ComputedRefWithControl<{}>;
221
- forwardRef: (ref: Element | vue.ComponentPublicInstance | null) => void;
222
- handleLeave: () => void;
223
- }, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, ("escapeKeyDown" | "pointerDownOutside" | "focusOutside" | "interactOutside" | "dismiss")[], "escapeKeyDown" | "pointerDownOutside" | "focusOutside" | "interactOutside" | "dismiss", vue.PublicProps, Readonly<vue.ExtractPropTypes<{
224
- readonly as: {
225
- readonly type: PropType<AsTag | Component>;
226
- readonly required: false;
227
- readonly default: "div";
228
- };
229
- readonly asChild: {
230
- readonly type: PropType<boolean>;
231
- readonly required: false;
232
- readonly default: false;
233
- };
234
302
  readonly side: {
235
303
  readonly type: PropType<"top" | "right" | "bottom" | "left">;
236
304
  readonly required: false;
@@ -282,52 +350,53 @@ declare const DestylerComboboxContentImpl: vue.DefineComponent<{
282
350
  readonly default: false;
283
351
  };
284
352
  readonly updatePositionStrategy: {
285
- readonly type: PropType<"always" | "optimized">;
353
+ readonly type: PropType<"optimized" | "always">;
286
354
  readonly required: false;
287
355
  readonly default: "optimized";
288
356
  };
289
- readonly onPlaced: {
290
- readonly type: PropType<() => void>;
291
- readonly required: false;
292
- };
293
357
  readonly prioritizePosition: {
294
358
  readonly type: PropType<boolean>;
295
359
  readonly required: false;
296
360
  readonly default: false;
297
361
  };
298
- readonly disableOutsidePointerEvents: {
299
- readonly type: PropType<boolean>;
362
+ readonly as: {
363
+ readonly type: PropType<vue.Component<any, any, any, vue.ComputedOptions, vue.MethodOptions, {}, any> | _destyler_primitive.AsTag>;
300
364
  readonly required: false;
301
- readonly default: false;
365
+ readonly default: "div";
302
366
  };
303
- readonly isDismissable: {
367
+ readonly asChild: {
304
368
  readonly type: PropType<boolean>;
305
369
  readonly required: false;
306
- readonly default: true;
307
- };
308
- readonly position: {
309
- readonly type: PropType<"inline" | "popper">;
310
- readonly required: false;
311
- readonly default: "inline";
370
+ readonly default: false;
312
371
  };
313
- readonly bodyLock: {
372
+ readonly disableOutsidePointerEvents: {
314
373
  readonly type: PropType<boolean>;
315
374
  readonly required: false;
375
+ readonly default: false;
316
376
  };
317
- readonly dismissable: {
377
+ readonly isDismissable: {
318
378
  readonly type: PropType<boolean>;
319
379
  readonly required: false;
320
380
  readonly default: true;
321
381
  };
322
382
  }>> & {
323
- onEscapeKeyDown?: ((...args: any[]) => any) | undefined;
324
- onPointerDownOutside?: ((...args: any[]) => any) | undefined;
325
- onFocusOutside?: ((...args: any[]) => any) | undefined;
326
- onInteractOutside?: ((...args: any[]) => any) | undefined;
327
- onDismiss?: ((...args: any[]) => any) | undefined;
383
+ onEscapeKeyDown?: ((_event: KeyboardEvent) => any) | undefined;
384
+ onPointerDownOutside?: ((_event: CustomEvent<{
385
+ originalEvent: PointerEvent;
386
+ }>) => any) | undefined;
387
+ onFocusOutside?: ((_event: CustomEvent<{
388
+ originalEvent: FocusEvent;
389
+ }>) => any) | undefined;
390
+ onInteractOutside?: ((_event: CustomEvent<{
391
+ originalEvent: PointerEvent;
392
+ }> | CustomEvent<{
393
+ originalEvent: FocusEvent;
394
+ }>) => any) | undefined;
328
395
  }, {
329
- readonly as: AsTag | Component;
396
+ readonly as: vue.Component<any, any, any, vue.ComputedOptions, vue.MethodOptions, {}, any> | _destyler_primitive.AsTag;
330
397
  readonly asChild: boolean;
398
+ readonly position: "inline" | "popper";
399
+ readonly dismissable: boolean;
331
400
  readonly side: "top" | "right" | "bottom" | "left";
332
401
  readonly sideOffset: number;
333
402
  readonly align: "end" | "center" | "start";
@@ -338,12 +407,10 @@ declare const DestylerComboboxContentImpl: vue.DefineComponent<{
338
407
  readonly arrowPadding: number;
339
408
  readonly sticky: "partial" | "always";
340
409
  readonly hideWhenDetached: boolean;
341
- readonly updatePositionStrategy: "always" | "optimized";
410
+ readonly updatePositionStrategy: "optimized" | "always";
342
411
  readonly prioritizePosition: boolean;
343
412
  readonly disableOutsidePointerEvents: boolean;
344
413
  readonly isDismissable: boolean;
345
- readonly position: "inline" | "popper";
346
- readonly dismissable: boolean;
347
414
  }, {}>;
348
415
 
349
- export { DestylerComboboxContentImpl, type DestylerComboboxContentImplProps };
416
+ export { ComboboxContentImpl, type ComboboxContentImplProps, comboboxContentImplEmits, comboboxContentImplProps };