@soybeanjs/headless 0.28.1 → 0.29.0-beta.1

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.
Files changed (101) hide show
  1. package/dist/components/affix/affix-compact.js +1 -1
  2. package/dist/components/affix/affix-root.js +1 -1
  3. package/dist/components/affix/types.d.ts +1 -1
  4. package/dist/components/autocomplete/autocomplete-compact.vue.d.ts +2 -2
  5. package/dist/components/autocomplete/autocomplete-input.js +1 -1
  6. package/dist/components/autocomplete/autocomplete-input.vue.d.ts +2 -2
  7. package/dist/components/autocomplete/autocomplete-root.vue.d.ts +3 -3
  8. package/dist/components/bottom-sheet/bottom-sheet-popup.vue.d.ts +2 -2
  9. package/dist/components/bottom-sheet/bottom-sheet-root-nested.vue.d.ts +2 -2
  10. package/dist/components/calendar/calendar-root.js +1 -1
  11. package/dist/components/calendar-range/calendar-range-root.vue.d.ts +1 -1
  12. package/dist/components/checkbox/checkbox-control.vue.d.ts +2 -2
  13. package/dist/components/collapsible/collapsible-root.vue.d.ts +1 -1
  14. package/dist/components/color-area/color-area-area.vue.d.ts +2 -2
  15. package/dist/components/color-area/color-area-compact.vue.d.ts +2 -2
  16. package/dist/components/color-area/color-area-root.vue.d.ts +3 -3
  17. package/dist/components/color-field/color-field-root.vue.d.ts +2 -2
  18. package/dist/components/color-picker/color-picker-compact.vue.d.ts +3 -3
  19. package/dist/components/color-picker/color-picker-root.vue.d.ts +3 -3
  20. package/dist/components/color-slider/color-slider-compact.vue.d.ts +2 -2
  21. package/dist/components/color-slider/color-slider-root.vue.d.ts +4 -4
  22. package/dist/components/combobox/combobox-compact.vue.d.ts +2 -2
  23. package/dist/components/combobox/combobox-root.vue.d.ts +2 -2
  24. package/dist/components/context-menu/context-menu-checkbox-compact.vue.d.ts +2 -2
  25. package/dist/components/context-menu/context-menu-content.vue.d.ts +2 -2
  26. package/dist/components/context-menu/context-menu-radio-compact.vue.d.ts +2 -2
  27. package/dist/components/context-menu/context-menu-trigger.vue.d.ts +2 -2
  28. package/dist/components/date-field/date-field-root.vue.d.ts +2 -2
  29. package/dist/components/date-picker/date-picker-compact.vue.d.ts +6 -6
  30. package/dist/components/date-range-field/date-range-field-root.vue.d.ts +2 -2
  31. package/dist/components/date-range-picker/date-range-picker-compact.vue.d.ts +6 -6
  32. package/dist/components/dialog/dialog-compact.vue.d.ts +2 -2
  33. package/dist/components/dialog/dialog-popup.vue.d.ts +2 -2
  34. package/dist/components/dialog/dialog-provider.vue.d.ts +2 -2
  35. package/dist/components/dropdown-menu/dropdown-menu-checkbox-compact.vue.d.ts +2 -2
  36. package/dist/components/dropdown-menu/dropdown-menu-content.vue.d.ts +2 -2
  37. package/dist/components/dropdown-menu/dropdown-menu-radio-compact.vue.d.ts +2 -2
  38. package/dist/components/dropdown-menu/dropdown-menu-root.vue.d.ts +1 -1
  39. package/dist/components/editable/editable-compact.vue.d.ts +2 -2
  40. package/dist/components/editable/editable-input.vue.d.ts +2 -2
  41. package/dist/components/editable/editable-preview.vue.d.ts +2 -2
  42. package/dist/components/editable/editable-root.vue.d.ts +4 -4
  43. package/dist/components/hover-card/hover-card-popup.vue.d.ts +2 -2
  44. package/dist/components/hover-card/hover-card-trigger.vue.d.ts +2 -2
  45. package/dist/components/input-number/input-number-root.vue.d.ts +1 -1
  46. package/dist/components/input-otp/input-otp-compact.vue.d.ts +4 -4
  47. package/dist/components/input-otp/input-otp-root.vue.d.ts +5 -5
  48. package/dist/components/layout/layout-root.vue.d.ts +1 -1
  49. package/dist/components/listbox/listbox-filter.js +1 -1
  50. package/dist/components/listbox/listbox-filter.vue.d.ts +2 -2
  51. package/dist/components/listbox/listbox-item.vue.d.ts +2 -2
  52. package/dist/components/menu/menu-checkbox-item.vue.d.ts +2 -2
  53. package/dist/components/menu/menu-item.vue.d.ts +2 -2
  54. package/dist/components/menu/menu-radio-item.vue.d.ts +2 -2
  55. package/dist/components/menu/menu-sub-content.vue.d.ts +2 -2
  56. package/dist/components/menu/menu-sub-trigger.vue.d.ts +2 -2
  57. package/dist/components/menubar/menubar-compact.vue.d.ts +2 -2
  58. package/dist/components/menubar/menubar-content.vue.d.ts +2 -2
  59. package/dist/components/menubar/menubar-root.vue.d.ts +1 -1
  60. package/dist/components/menubar/menubar-trigger.vue.d.ts +2 -2
  61. package/dist/components/navigation-menu/navigation-menu-content.vue.d.ts +2 -2
  62. package/dist/components/navigation-menu/navigation-menu-root.vue.d.ts +1 -1
  63. package/dist/components/navigation-menu/navigation-menu-trigger.vue.d.ts +2 -2
  64. package/dist/components/page-tabs/page-tabs-compact.vue.d.ts +1 -1
  65. package/dist/components/page-tabs/page-tabs-item.js +1 -1
  66. package/dist/components/page-tabs/page-tabs-item.vue.d.ts +2 -2
  67. package/dist/components/page-tabs/page-tabs-root.vue.d.ts +1 -1
  68. package/dist/components/popover/popover-positioner.vue.d.ts +2 -2
  69. package/dist/components/popper/popper-positioner.vue.d.ts +1 -1
  70. package/dist/components/radio-group/radio-group-control.vue.d.ts +2 -2
  71. package/dist/components/scroll-area/scroll-area-root.vue.d.ts +2 -2
  72. package/dist/components/scroll-area/scroll-area-thumb.vue.d.ts +2 -2
  73. package/dist/components/select/select-compact.vue.d.ts +2 -2
  74. package/dist/components/select/select-item.vue.d.ts +2 -2
  75. package/dist/components/select/select-root.vue.d.ts +2 -2
  76. package/dist/components/select/select-trigger.vue.d.ts +2 -2
  77. package/dist/components/slider/slider-root.vue.d.ts +2 -2
  78. package/dist/components/slider/slider-thumb.vue.d.ts +2 -2
  79. package/dist/components/splitter/splitter-group.vue.d.ts +1 -1
  80. package/dist/components/splitter/splitter-resize-handle.vue.d.ts +2 -2
  81. package/dist/components/stepper/stepper-root.vue.d.ts +1 -1
  82. package/dist/components/stepper/stepper-trigger.vue.d.ts +2 -2
  83. package/dist/components/switch/switch-control.vue.d.ts +2 -2
  84. package/dist/components/tabs/tabs-root.vue.d.ts +1 -1
  85. package/dist/components/tabs/tabs-trigger.vue.d.ts +2 -2
  86. package/dist/components/tags-input/tags-input-compact.vue.d.ts +2 -2
  87. package/dist/components/tags-input/tags-input-root.vue.d.ts +3 -3
  88. package/dist/components/time-field/time-field-root.vue.d.ts +2 -2
  89. package/dist/components/time-range-field/time-range-field-root.vue.d.ts +2 -2
  90. package/dist/components/toast/toaster.vue.d.ts +2 -2
  91. package/dist/components/toggle/toggle.vue.d.ts +1 -1
  92. package/dist/components/tree/tree-item.js +1 -1
  93. package/dist/components/tree/tree-item.vue.d.ts +2 -2
  94. package/dist/components/tree/tree-root.js +1 -1
  95. package/dist/components/tree-menu/tree-menu-root.vue.d.ts +2 -2
  96. package/dist/components/visually-hidden/visually-hidden-input.vue.d.ts +1 -1
  97. package/dist/shared/env.d.ts +1 -2
  98. package/dist/shared/env.js +1 -1
  99. package/dist/shared/index.d.ts +2 -2
  100. package/dist/shared/index.js +1 -1
  101. package/package.json +8 -8
@@ -10,8 +10,8 @@ declare const __VLS_base: import("vue").DefineComponent<PageTabsRootProps, {}, {
10
10
  }, string, import("vue").PublicProps, Readonly<PageTabsRootProps> & Readonly<{
11
11
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
12
12
  }>, {
13
- modelValue: string;
14
13
  loop: boolean;
14
+ modelValue: string;
15
15
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
16
16
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
17
17
  declare const _default: typeof __VLS_export;
@@ -1,9 +1,9 @@
1
1
  import { FocusOutsideEvent, PointerDownOutsideEvent } from "../../types/event.js";
2
2
  import { PopoverPositionerProps } from "./types.js";
3
3
  //#region src/components/popover/popover-positioner.vue.d.ts
4
- declare var __VLS_13: {};
4
+ declare var __VLS_10: {};
5
5
  type __VLS_Slots = {} & {
6
- default?: (props: typeof __VLS_13) => any;
6
+ default?: (props: typeof __VLS_10) => any;
7
7
  };
8
8
  declare const __VLS_base: import("vue").DefineComponent<PopoverPositionerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
9
9
  escapeKeyDown: (event: KeyboardEvent) => any;
@@ -201,7 +201,6 @@ declare const __VLS_base: import("vue").DefineComponent<PopperPositionerProps, {
201
201
  'aria-valuenow': string | number;
202
202
  'aria-valuetext': string;
203
203
  placement: Placement;
204
- reference: import("@floating-ui/dom").ReferenceElement;
205
204
  side: import("@floating-ui/utils").Side;
206
205
  sideOffset: number;
207
206
  sideFlip: boolean;
@@ -219,6 +218,7 @@ declare const __VLS_base: import("vue").DefineComponent<PopperPositionerProps, {
219
218
  updatePositionStrategy: "optimized" | "always";
220
219
  disableUpdateOnLayoutShift: boolean;
221
220
  prioritizePosition: boolean;
221
+ reference: import("@floating-ui/dom").ReferenceElement;
222
222
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
223
223
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
224
224
  declare const _default: typeof __VLS_export;
@@ -1,13 +1,13 @@
1
1
  import { RadioGroupControlProps } from "./types.js";
2
2
 
3
3
  //#region src/components/radio-group/radio-group-control.vue.d.ts
4
- declare var __VLS_20: {
4
+ declare var __VLS_18: {
5
5
  checked: boolean;
6
6
  required: boolean | undefined;
7
7
  disabled: boolean | undefined;
8
8
  };
9
9
  type __VLS_Slots = {} & {
10
- default?: (props: typeof __VLS_20) => any;
10
+ default?: (props: typeof __VLS_18) => any;
11
11
  };
12
12
  declare const __VLS_base: import("vue").DefineComponent<RadioGroupControlProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<RadioGroupControlProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
13
13
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -1,9 +1,9 @@
1
1
  import { ScrollAreaRootProps, ScrollAreaType } from "./types.js";
2
2
 
3
3
  //#region src/components/scroll-area/scroll-area-root.vue.d.ts
4
- declare var __VLS_11: {};
4
+ declare var __VLS_10: {};
5
5
  type __VLS_Slots = {} & {
6
- default?: (props: typeof __VLS_11) => any;
6
+ default?: (props: typeof __VLS_10) => any;
7
7
  };
8
8
  declare const __VLS_base: import("vue").DefineComponent<ScrollAreaRootProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ScrollAreaRootProps> & Readonly<{}>, {
9
9
  type: ScrollAreaType;
@@ -1,9 +1,9 @@
1
1
  import { ScrollAreaThumbProps } from "./types.js";
2
2
 
3
3
  //#region src/components/scroll-area/scroll-area-thumb.vue.d.ts
4
- declare var __VLS_11: {};
4
+ declare var __VLS_10: {};
5
5
  type __VLS_Slots = {} & {
6
- default?: (props: typeof __VLS_11) => any;
6
+ default?: (props: typeof __VLS_10) => any;
7
7
  };
8
8
  declare const __VLS_base: import("vue").DefineComponent<ScrollAreaThumbProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ScrollAreaThumbProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
9
9
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -5,8 +5,8 @@ import { SelectCompactProps, SelectCompactSlots, SelectItemEvent } from "./types
5
5
  declare const __VLS_export: <T extends DefinedValue = DefinedValue, M extends boolean = false>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
6
6
  props: import("vue").PublicProps & __VLS_PrettifyLocal<SelectCompactProps<T, M> & {
7
7
  onSelect?: ((event: SelectItemEvent<T>) => any) | undefined;
8
- "onUpdate:open"?: ((value: boolean) => any) | undefined;
9
8
  "onUpdate:modelValue"?: ((value: M extends true ? T[] : T) => any) | undefined;
9
+ "onUpdate:open"?: ((value: boolean) => any) | undefined;
10
10
  onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
11
11
  onPointerDownOutside?: ((event: PointerDownOutsideEvent) => any) | undefined;
12
12
  onCloseAutoFocus?: ((event: Event) => any) | undefined;
@@ -16,7 +16,7 @@ declare const __VLS_export: <T extends DefinedValue = DefinedValue, M extends bo
16
16
  expose: (exposed: {}) => void;
17
17
  attrs: any;
18
18
  slots: SelectCompactSlots<T, M>;
19
- emit: ((evt: "select", event: SelectItemEvent<T>) => void) & ((evt: "update:open", value: boolean) => void) & ((evt: "update:modelValue", value: M extends true ? T[] : T) => void) & ((evt: "escapeKeyDown", event: KeyboardEvent) => void) & ((evt: "pointerDownOutside", event: PointerDownOutsideEvent) => void) & ((evt: "closeAutoFocus", event: Event) => void);
19
+ emit: ((evt: "select", event: SelectItemEvent<T>) => void) & ((evt: "update:modelValue", value: M extends true ? T[] : T) => void) & ((evt: "update:open", value: boolean) => void) & ((evt: "escapeKeyDown", event: KeyboardEvent) => void) & ((evt: "pointerDownOutside", event: PointerDownOutsideEvent) => void) & ((evt: "closeAutoFocus", event: Event) => void);
20
20
  }>) => import("vue").VNode & {
21
21
  __ctx?: Awaited<typeof __VLS_setup>;
22
22
  };
@@ -2,9 +2,9 @@ import { DefinedValue } from "../../types/common.js";
2
2
  import { SelectItemEvent, SelectItemProps } from "./types.js";
3
3
 
4
4
  //#region src/components/select/select-item.vue.d.ts
5
- declare var __VLS_17: {};
5
+ declare var __VLS_10: {};
6
6
  type __VLS_Slots = {} & {
7
- default?: (props: typeof __VLS_17) => any;
7
+ default?: (props: typeof __VLS_10) => any;
8
8
  };
9
9
  declare const __VLS_base: import("vue").DefineComponent<SelectItemProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
10
10
  select: (event: SelectItemEvent<DefinedValue>) => any;
@@ -4,8 +4,8 @@ import { SelectRootProps } from "./types.js";
4
4
  //#region src/components/select/select-root.vue.d.ts
5
5
  declare const __VLS_export: <T extends DefinedValue, M extends boolean = false>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
6
6
  props: import("vue").PublicProps & __VLS_PrettifyLocal<SelectRootProps<T, M> & {
7
- "onUpdate:open"?: ((value: boolean) => any) | undefined;
8
7
  "onUpdate:modelValue"?: ((value: M extends true ? T[] : T) => any) | undefined;
8
+ "onUpdate:open"?: ((value: boolean) => any) | undefined;
9
9
  }> & (typeof globalThis extends {
10
10
  __VLS_PROPS_FALLBACK: infer P;
11
11
  } ? P : {});
@@ -17,7 +17,7 @@ declare const __VLS_export: <T extends DefinedValue, M extends boolean = false>(
17
17
  open: boolean;
18
18
  }) => any;
19
19
  };
20
- emit: ((evt: "update:open", value: boolean) => void) & ((evt: "update:modelValue", value: M extends true ? T[] : T) => void);
20
+ emit: ((evt: "update:modelValue", value: M extends true ? T[] : T) => void) & ((evt: "update:open", value: boolean) => void);
21
21
  }>) => import("vue").VNode & {
22
22
  __ctx?: Awaited<typeof __VLS_setup>;
23
23
  };
@@ -2,9 +2,9 @@ import { AsTag } from "../primitive/types.js";
2
2
  import { SelectTriggerProps } from "./types.js";
3
3
 
4
4
  //#region src/components/select/select-trigger.vue.d.ts
5
- declare var __VLS_19: {};
5
+ declare var __VLS_16: {};
6
6
  type __VLS_Slots = {} & {
7
- default?: (props: typeof __VLS_19) => any;
7
+ default?: (props: typeof __VLS_16) => any;
8
8
  };
9
9
  declare const __VLS_base: import("vue").DefineComponent<SelectTriggerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<SelectTriggerProps> & Readonly<{}>, {
10
10
  as: AsTag | import("vue").Component;
@@ -19,9 +19,9 @@ declare const __VLS_base: import("vue").DefineComponent<SliderRootProps, {}, {},
19
19
  max: number;
20
20
  min: number;
21
21
  orientation: DataOrientation;
22
- step: number;
23
- defaultValue: number[];
24
22
  modelValue: number[];
23
+ defaultValue: number[];
24
+ step: number;
25
25
  inverted: boolean;
26
26
  minStepsBetweenThumbs: number;
27
27
  thumbAlignment: SliderThumbAlignment;
@@ -1,9 +1,9 @@
1
1
  import { SliderThumbProps } from "./types.js";
2
2
 
3
3
  //#region src/components/slider/slider-thumb.vue.d.ts
4
- declare var __VLS_11: {};
4
+ declare var __VLS_10: {};
5
5
  type __VLS_Slots = {} & {
6
- default?: (props: typeof __VLS_11) => any;
6
+ default?: (props: typeof __VLS_10) => any;
7
7
  };
8
8
  declare const __VLS_base: import("vue").DefineComponent<SliderThumbProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<SliderThumbProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
9
9
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -14,8 +14,8 @@ declare const __VLS_base: import("vue").DefineComponent<SplitterGroupProps, {},
14
14
  }>, {
15
15
  dir: Direction;
16
16
  direction: DataOrientation;
17
- keyboardResizeBy: number;
18
17
  defaultLayout: number[];
18
+ keyboardResizeBy: number;
19
19
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
20
20
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
21
21
  declare const _default: typeof __VLS_export;
@@ -1,12 +1,12 @@
1
1
  import { SplitterResizeHandleProps } from "./types.js";
2
2
 
3
3
  //#region src/components/splitter/splitter-resize-handle.vue.d.ts
4
- declare var __VLS_15: {
4
+ declare var __VLS_10: {
5
5
  active: boolean;
6
6
  focused: boolean;
7
7
  };
8
8
  type __VLS_Slots = {} & {
9
- default?: (props: typeof __VLS_15) => any;
9
+ default?: (props: typeof __VLS_10) => any;
10
10
  };
11
11
  declare const __VLS_base: import("vue").DefineComponent<SplitterResizeHandleProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
12
12
  dragging: (value: boolean) => any;
@@ -37,8 +37,8 @@ declare const __VLS_base: import("vue").DefineComponent<StepperRootProps, {
37
37
  "onUpdate:modelValue"?: ((payload: number) => any) | undefined;
38
38
  }>, {
39
39
  orientation: DataOrientation;
40
- defaultValue: number;
41
40
  modelValue: number;
41
+ defaultValue: number;
42
42
  linear: boolean;
43
43
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
44
44
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -2,9 +2,9 @@ import { AsTag } from "../primitive/types.js";
2
2
  import { StepperTriggerProps } from "./types.js";
3
3
 
4
4
  //#region src/components/stepper/stepper-trigger.vue.d.ts
5
- declare var __VLS_11: {};
5
+ declare var __VLS_10: {};
6
6
  type __VLS_Slots = {} & {
7
- default?: (props: typeof __VLS_11) => any;
7
+ default?: (props: typeof __VLS_10) => any;
8
8
  };
9
9
  declare const __VLS_base: import("vue").DefineComponent<StepperTriggerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<StepperTriggerProps> & Readonly<{}>, {
10
10
  as: AsTag | import("vue").Component;
@@ -1,11 +1,11 @@
1
1
  import { AcceptableBooleanValue } from "../../types/common.js";
2
2
  import { SwitchControlProps } from "./types.js";
3
3
  //#region src/components/switch/switch-control.vue.d.ts
4
- declare var __VLS_11: {
4
+ declare var __VLS_10: {
5
5
  modelValue: AcceptableBooleanValue;
6
6
  };
7
7
  type __VLS_Slots = {} & {
8
- default?: (props: typeof __VLS_11) => any;
8
+ default?: (props: typeof __VLS_10) => any;
9
9
  };
10
10
  declare const __VLS_base: import("vue").DefineComponent<SwitchControlProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<SwitchControlProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
11
11
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -14,8 +14,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {},
14
14
  "onUpdate:modelValue"?: ((payload: DefinedValue | null) => any) | undefined;
15
15
  }>, {
16
16
  orientation: DataOrientation;
17
- modelValue: DefinedValue | null;
18
17
  loop: boolean;
18
+ modelValue: DefinedValue | null;
19
19
  activationMode: TabsActivationMode;
20
20
  unmountOnHide: boolean;
21
21
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -2,11 +2,11 @@ import { AsTag } from "../primitive/types.js";
2
2
  import { TabsTriggerProps } from "./types.js";
3
3
 
4
4
  //#region src/components/tabs/tabs-trigger.vue.d.ts
5
- declare var __VLS_18: {
5
+ declare var __VLS_16: {
6
6
  active: boolean;
7
7
  };
8
8
  type __VLS_Slots = {} & {
9
- default?: (props: typeof __VLS_18) => any;
9
+ default?: (props: typeof __VLS_16) => any;
10
10
  };
11
11
  declare const __VLS_base: import("vue").DefineComponent<TabsTriggerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<TabsTriggerProps> & Readonly<{}>, {
12
12
  disabled: boolean;
@@ -3,13 +3,13 @@ import { TagsInputCompactProps, TagsInputCompactSlots } from "./types.js";
3
3
  //#region src/components/tags-input/tags-input-compact.vue.d.ts
4
4
  type __VLS_Slots = TagsInputCompactSlots;
5
5
  declare const __VLS_base: import("vue").DefineComponent<TagsInputCompactProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
6
- invalid: (value: string) => any;
7
6
  "update:modelValue": (value: string[]) => any;
7
+ invalid: (value: string) => any;
8
8
  addTag: (value: string) => any;
9
9
  removeTag: (value: string) => any;
10
10
  }, string, import("vue").PublicProps, Readonly<TagsInputCompactProps> & Readonly<{
11
- onInvalid?: ((value: string) => any) | undefined;
12
11
  "onUpdate:modelValue"?: ((value: string[]) => any) | undefined;
12
+ onInvalid?: ((value: string) => any) | undefined;
13
13
  onAddTag?: ((value: string) => any) | undefined;
14
14
  onRemoveTag?: ((value: string) => any) | undefined;
15
15
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -9,19 +9,19 @@ type __VLS_Slots = {} & {
9
9
  default?: (props: typeof __VLS_1) => any;
10
10
  };
11
11
  declare const __VLS_base: import("vue").DefineComponent<TagsInputRootProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
12
- invalid: (value: string) => any;
13
12
  "update:modelValue": (value: string[]) => any;
13
+ invalid: (value: string) => any;
14
14
  addTag: (value: string) => any;
15
15
  removeTag: (value: string) => any;
16
16
  }, string, import("vue").PublicProps, Readonly<TagsInputRootProps> & Readonly<{
17
- onInvalid?: ((value: string) => any) | undefined;
18
17
  "onUpdate:modelValue"?: ((value: string[]) => any) | undefined;
18
+ onInvalid?: ((value: string) => any) | undefined;
19
19
  onAddTag?: ((value: string) => any) | undefined;
20
20
  onRemoveTag?: ((value: string) => any) | undefined;
21
21
  }>, {
22
22
  max: number;
23
- defaultValue: string[];
24
23
  modelValue: string[];
24
+ defaultValue: string[];
25
25
  delimiter: string | RegExp;
26
26
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
27
27
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -12,10 +12,10 @@ declare const __VLS_base: import("vue").DefineComponent<TimeFieldRootProps, {},
12
12
  }>, {
13
13
  disabled: boolean;
14
14
  placeholder: TimeValue;
15
- step: DateStep;
16
15
  defaultValue: TimeValue;
17
- defaultPlaceholder: TimeValue;
16
+ step: DateStep;
18
17
  readonly: boolean;
18
+ defaultPlaceholder: TimeValue;
19
19
  granularity: TimeGranularity;
20
20
  hourCycle: 12 | 24;
21
21
  hideTimeZone: boolean;
@@ -16,10 +16,10 @@ declare const __VLS_base: import("vue").DefineComponent<TimeRangeFieldRootProps,
16
16
  }>, {
17
17
  disabled: boolean;
18
18
  placeholder: TimeValue;
19
- step: DateStep;
20
19
  defaultValue: TimeRange;
21
- defaultPlaceholder: TimeValue;
20
+ step: DateStep;
22
21
  readonly: boolean;
22
+ defaultPlaceholder: TimeValue;
23
23
  granularity: TimeGranularity;
24
24
  hourCycle: 12 | 24;
25
25
  hideTimeZone: boolean;
@@ -1,9 +1,9 @@
1
1
  import { ToastOffset, ToastPosition, ToasterProps } from "./types.js";
2
2
 
3
3
  //#region src/components/toast/toaster.vue.d.ts
4
- declare var __VLS_9: {};
4
+ declare var __VLS_8: {};
5
5
  type __VLS_Slots = {} & {
6
- default?: (props: typeof __VLS_9) => any;
6
+ default?: (props: typeof __VLS_8) => any;
7
7
  };
8
8
  declare const __VLS_base: import("vue").DefineComponent<ToasterProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ToasterProps> & Readonly<{}>, {
9
9
  offset: ToastOffset;
@@ -15,8 +15,8 @@ declare const __VLS_base: import("vue").DefineComponent<ToggleProps, {}, {}, {},
15
15
  }, string, import("vue").PublicProps, Readonly<ToggleProps> & Readonly<{
16
16
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
17
17
  }>, {
18
- defaultValue: boolean;
19
18
  modelValue: boolean;
19
+ defaultValue: boolean;
20
20
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
21
21
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
22
22
  declare const _default: typeof __VLS_export;
@@ -1 +1 @@
1
- import{flattenChildren as e}from"../../shared/object.js";import{getActiveElement as t}from"../../shared/dom.js";import{handleAndDispatchCustomEvent as n}from"../../shared/event.js";import"../../shared/index.js";import{Primitive as r}from"../primitive/primitive.js";import"../primitive/index.js";import i from"../roving-focus/roving-focus-item.js";import{TREE_SELECT as a,TREE_TOGGLE as o,recurseCheckChildren as s}from"./shared.js";import{useTreeRootContext as c}from"./context.js";import{computed as l,createBlock as u,createVNode as d,defineComponent as f,openBlock as p,renderSlot as m,unref as h,withCtx as g,withKeys as _,withModifiers as v}from"vue";const y=f({name:`TreeItem`,__name:`tree-item`,props:{value:{},level:{},disabled:{type:Boolean},disabledSelect:{type:Boolean},disabledToggle:{type:Boolean},asChild:{type:Boolean},as:{default:`li`}},emits:[`select`,`toggle`],setup(f,{emit:y}){let b=f,x=y,{modelValue:S,disabled:C,dir:w,selectedKeys:T,expanded:E,expandedItems:D,propagateSelect:O,bubbleSelect:k,onSelect:A,onToggle:j,getItems:M}=c(`TreeItem`),N={value:b.value},P=l(()=>D.value.find(e=>e.value===b.value)),F=l(()=>C.value||b.disabled),I=l(()=>!!P.value?.hasChildren),L=l(()=>E.value?.includes(b.value)??!1),R=l(()=>T.value.includes(b.value)),z=l(()=>s(T.value,P.value?.data?.children)),B=l(()=>{if(!P.value||!I.value||!Array.isArray(S.value))return;let t=e(P.value.data.children);if(k.value)return t.some(e=>T.value.includes(e.value))&&!t.every(e=>T.value.includes(e.value));if(O.value&&R.value)return!t.every(e=>T.value.includes(e.value))}),V=e=>{F.value||!I.value||(L.value?W(`right`)?.focus?.():J(e))},H=e=>{F.value||(L.value?J(e):W(`left`)?.focus?.())},U=(e,t)=>{if(!F.value){if(t===`right`){w.value===`ltr`?V(e):H(e);return}w.value===`ltr`?H(e):V(e)}};function W(e){let n=M?.()?.map(e=>e.element)??[],r=t(),i=n.indexOf(r),a=[...n];a=e===`left`?a.slice(0,i).reverse():a.slice(i);let o=e===`left`?b.level-1:b.level+1;return a.find(e=>Number(e.getAttribute(`data-indent`))===o)}async function G(e){x(`select`,e),!e?.defaultPrevented&&A(b.value)}function K(e){x(`toggle`,e),!e?.defaultPrevented&&j(b.value)}async function q(e){b.disabledSelect||e&&n(a,G,{originalEvent:e,value:b.value,isExpanded:L.value,isSelected:R.value})}function J(e){b.disabledToggle||e&&n(o,K,{originalEvent:e,value:b.value,isExpanded:L.value,isSelected:R.value})}let Y=e=>{F.value||(q(e),J(e))};return(e,t)=>(p(),u(i,{"as-child":``,"item-data":N,"allow-shift-key":``},{default:g(()=>[d(h(r),{as:f.as,"as-child":f.asChild,"data-soybean-tree-item":``,"aria-disabled":F.value?!0:void 0,"aria-selected":R.value,"aria-expanded":I.value?L.value:void 0,"aria-level":f.level,"data-disabled":F.value?``:void 0,"data-indent":f.level,"data-selected":R.value?``:void 0,"data-expanded":L.value?``:void 0,"data-contains-selected":z.value?``:void 0,role:`treeitem`,onKeydown:[_(v(Y,[`self`,`prevent`]),[`enter`,`space`]),t[0]||(t[0]=_(v(e=>U(e,`right`),[`prevent`]),[`right`])),t[1]||(t[1]=_(v(e=>U(e,`left`),[`prevent`]),[`left`]))],onClick:v(Y,[`stop`])},{default:g(()=>[m(e.$slots,`default`,{isExpanded:L.value,isSelected:R.value,isIndeterminate:B.value,hasChildren:I.value})]),_:3},8,[`as`,`as-child`,`aria-disabled`,`aria-selected`,`aria-expanded`,`aria-level`,`data-disabled`,`data-indent`,`data-selected`,`data-expanded`,`data-contains-selected`,`onKeydown`])]),_:3}))}});export{y as default};
1
+ import{flattenChildren as e}from"../../shared/object.js";import{getActiveElement as t}from"../../shared/dom.js";import{handleAndDispatchCustomEvent as n}from"../../shared/event.js";import"../../shared/index.js";import{Primitive as r}from"../primitive/primitive.js";import"../primitive/index.js";import i from"../roving-focus/roving-focus-item.js";import{TREE_SELECT as a,TREE_TOGGLE as o,recurseCheckChildren as s}from"./shared.js";import{useTreeRootContext as c}from"./context.js";import{computed as l,createBlock as u,createVNode as d,defineComponent as f,openBlock as p,renderSlot as m,unref as h,withCtx as g,withKeys as _,withModifiers as v}from"vue";const y=f({name:`TreeItem`,__name:`tree-item`,props:{value:{},level:{},disabled:{type:Boolean},disabledSelect:{type:Boolean},disabledToggle:{type:Boolean},asChild:{type:Boolean},as:{default:`li`}},emits:[`select`,`toggle`],setup(f,{emit:y}){let b=f,x=y,{modelValue:S,disabled:C,dir:w,selectedKeys:T,expanded:E,expandedItems:D,propagateSelect:O,bubbleSelect:k,onSelect:A,onToggle:j,getItems:M}=c(`TreeItem`),N={value:b.value},P=l(()=>D.value.find(e=>e.value===b.value)),F=l(()=>C.value||b.disabled),I=l(()=>!!P.value?.hasChildren),L=l(()=>E.value?.includes(b.value)??!1),R=l(()=>T.value.includes(b.value)),z=l(()=>s(T.value,P.value?.data?.children)),B=l(()=>{if(!P.value||!I.value||!Array.isArray(S.value))return;let t=e(P.value.data.children);if(k.value)return t.some(e=>T.value.includes(e.value))&&!t.every(e=>T.value.includes(e.value));if(O.value&&R.value)return!t.every(e=>T.value.includes(e.value))}),V=e=>{F.value||!I.value||(L.value?W(`right`)?.focus?.():J(e))},H=e=>{F.value||(L.value?J(e):W(`left`)?.focus?.())},U=(e,t)=>{if(!F.value){if(t===`right`){w.value===`ltr`?V(e):H(e);return}w.value===`ltr`?H(e):V(e)}};function W(e){let n=M?.()?.map(e=>e.element)??[],r=t(),i=n.indexOf(r),a=[...n];a=e===`left`?a.slice(0,i).reverse():a.slice(i);let o=e===`left`?b.level-1:b.level+1;return a.find(e=>Number(e.getAttribute(`data-indent`))===o)}async function G(e){x(`select`,e),!e?.defaultPrevented&&A(b.value)}function K(e){x(`toggle`,e),!e?.defaultPrevented&&j(b.value)}async function q(e){b.disabledSelect||e&&n(a,G,{originalEvent:e,value:b.value,isExpanded:L.value,isSelected:R.value})}function J(e){b.disabledToggle||e&&n(o,K,{originalEvent:e,value:b.value,isExpanded:L.value,isSelected:R.value})}let Y=e=>{F.value||(q(e),J(e))},X=e=>{if(e.key===`ArrowRight`){U(e,`right`);return}if(e.key===`ArrowLeft`){U(e,`left`);return}Y(e)};return(e,t)=>(p(),u(i,{"as-child":``,"item-data":N,"allow-shift-key":``},{default:g(()=>[d(h(r),{as:f.as,"as-child":f.asChild,"data-soybean-tree-item":``,"aria-disabled":F.value?!0:void 0,"aria-selected":R.value,"aria-expanded":I.value?L.value:void 0,"aria-level":f.level,"data-disabled":F.value?``:void 0,"data-indent":f.level,"data-selected":R.value?``:void 0,"data-expanded":L.value?``:void 0,"data-contains-selected":z.value?``:void 0,role:`treeitem`,onKeydown:_(v(X,[`self`,`prevent`]),[`enter`,`space`,`right`,`left`]),onClick:v(Y,[`stop`])},{default:g(()=>[m(e.$slots,`default`,{isExpanded:L.value,isSelected:R.value,isIndeterminate:B.value,hasChildren:I.value})]),_:3},8,[`as`,`as-child`,`aria-disabled`,`aria-selected`,`aria-expanded`,`aria-level`,`data-disabled`,`data-indent`,`data-selected`,`data-expanded`,`data-contains-selected`,`onKeydown`])]),_:3}))}});export{y as default};
@@ -3,14 +3,14 @@ import { AsTag } from "../primitive/types.js";
3
3
  import { TreeItemProps } from "./types.js";
4
4
 
5
5
  //#region src/components/tree/tree-item.vue.d.ts
6
- declare var __VLS_19: {
6
+ declare var __VLS_16: {
7
7
  isExpanded: boolean;
8
8
  isSelected: boolean;
9
9
  isIndeterminate: boolean | undefined;
10
10
  hasChildren: boolean;
11
11
  };
12
12
  type __VLS_Slots = {} & {
13
- default?: (props: typeof __VLS_19) => any;
13
+ default?: (props: typeof __VLS_16) => any;
14
14
  };
15
15
  declare const __VLS_base: import("vue").DefineComponent<TreeItemProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
16
16
  select: (event: TreeSelectEvent<string>) => any;
@@ -1 +1 @@
1
- import{MAP_KEY_TO_FOCUS_INTENT as e}from"../../constants/common.js";import{isNullish as t}from"../../shared/guard.js";import{flattenChildren as n}from"../../shared/object.js";import{getActiveElement as r}from"../../shared/dom.js";import{transformPropsToContext as i}from"../../shared/vue.js";import"../../shared/index.js";import{useControllableState as a}from"../../composables/use-controllable-state.js";import{useTypeahead as o}from"../../composables/use-typeahead.js";import"../../composables/index.js";import{Primitive as s}from"../primitive/primitive.js";import"../primitive/index.js";import c from"../roving-focus/roving-focus-group.js";import{findParentPath as l,flattenItems as u}from"./shared.js";import{provideTreeRootContext as d}from"./context.js";import{useSelectionBehavior as f}from"./hooks.js";import{computed as p,createBlock as m,createVNode as h,defineComponent as g,nextTick as _,openBlock as v,renderSlot as y,shallowRef as b,unref as x,useTemplateRef as S,withCtx as C,withKeys as w,withModifiers as T}from"vue";import{createEventHook as E}from"@vueuse/core";const D=g({name:`TreeRoot`,__name:`tree-root`,props:{modelValue:{},defaultValue:{},multiple:{},items:{},expanded:{},defaultExpanded:{},selectionBehavior:{default:`toggle`},toggleBehavior:{default:`multiple`},dir:{},loop:{type:Boolean,default:!0},disabled:{type:Boolean},propagateSelect:{type:Boolean},bubbleSelect:{type:Boolean},allowParentSelect:{type:Boolean},asChild:{type:Boolean},as:{default:`ul`}},emits:[`update:modelValue`,`update:expanded`],setup(g,{emit:D}){let O=g,k=D,A=S(`rovingFocusGroupRef`),{handleTypeaheadSearch:j}=o(),M=b(!1),N=E(),P=a(()=>O.modelValue,e=>{k(`update:modelValue`,e)},R()),F=p(()=>O.multiple&&Array.isArray(P.value)?P.value:[P.value]),{onSelectItem:I,handleMultipleReplace:L}=f(P,()=>O.multiple,()=>O.selectionBehavior);function R(){return t(O.defaultValue)?O.multiple?[]:``:O.defaultValue}let z=a(()=>O.expanded,e=>{k(`update:expanded`,e??[])},O.defaultExpanded??[]),B=p(()=>u(O.items,z.value)),V=e=>{if(!O.disabled)if(M.value)N.trigger(e);else{let t=A.value?.getItems()??[];j(e.key,t)}},H=t=>{if(O.disabled||M.value)return;let n=e[t.key];_(()=>{L(n,r(),B.value.map(e=>e.value),A.value?.getItems)})},U=e=>{if(O.disabled||!e.parent||!O.multiple||!Array.isArray(P.value))return;let t=B.value.find(t=>e.parent&&t.value===e.parent.value);if(!t)return;let n=P.value;t.data.children?.every(e=>n.find(t=>t===e.value))?P.value=[...n,t.data.value]:P.value=n.filter(e=>e!==t.data.value),U(t)},W=e=>{if(O.disabled)return;let t=B.value.find(t=>t.value===e);if(!(t?.hasChildren&&!O.allowParentSelect)&&(I(e),O.bubbleSelect&&O.multiple&&Array.isArray(P.value)&&t&&U(t),O.propagateSelect&&O.multiple&&Array.isArray(P.value))){if(!t)return;let r=n(t.data.children);P.value.includes(e)?P.value=P.value.filter(e=>!r.some(t=>t.value===e)):P.value=[...P.value,...r]}},G=e=>{if(!O.disabled&&B.value.find(t=>t.value===e)?.data?.children){if(z.value.includes(e)){z.value=z.value.filter(t=>t!==e);return}if(O.toggleBehavior===`single`){let t=l(e,O.items);t?z.value=[...t,e]:z.value=[e]}else z.value=[...z.value,e]}};return d({modelValue:P,expanded:z,selectedKeys:F,onSelect:W,onToggle:G,expandedItems:B,isVirtual:M,virtualKeydownHook:N,getItems:()=>A.value?.getItems()??[],handleMultipleReplace:L,...i(O,[`items`,`multiple`,`disabled`,`dir`,`selectionBehavior`,`propagateSelect`,`bubbleSelect`])}),(e,t)=>(v(),m(c,{ref_key:`rovingFocusGroupRef`,ref:A,"as-child":``,orientation:`vertical`,dir:g.dir,loop:g.loop},{default:C(()=>[h(x(s),{as:g.as,"as-child":g.asChild,"data-soybean-tree-root":``,"aria-disabled":g.disabled?!0:void 0,"aria-multiselectable":g.multiple?!0:void 0,"data-disabled":g.disabled?``:void 0,role:`tree`,onKeydown:[V,w(T(H,[`shift`]),[`up`,`down`])]},{default:C(()=>[y(e.$slots,`default`,{flattenItems:B.value,modelValue:x(P),expanded:x(z),select:W,toggle:G})]),_:3},8,[`as`,`as-child`,`aria-disabled`,`aria-multiselectable`,`data-disabled`,`onKeydown`])]),_:3},8,[`dir`,`loop`]))}});export{D as default};
1
+ import{MAP_KEY_TO_FOCUS_INTENT as e}from"../../constants/common.js";import{isNullish as t}from"../../shared/guard.js";import{flattenChildren as n}from"../../shared/object.js";import{getActiveElement as r}from"../../shared/dom.js";import{transformPropsToContext as i}from"../../shared/vue.js";import"../../shared/index.js";import{useControllableState as a}from"../../composables/use-controllable-state.js";import{useTypeahead as o}from"../../composables/use-typeahead.js";import"../../composables/index.js";import{Primitive as s}from"../primitive/primitive.js";import"../primitive/index.js";import c from"../roving-focus/roving-focus-group.js";import{findParentPath as l,flattenItems as u}from"./shared.js";import{provideTreeRootContext as d}from"./context.js";import{useSelectionBehavior as f}from"./hooks.js";import{computed as p,createBlock as m,createVNode as h,defineComponent as g,nextTick as _,openBlock as v,renderSlot as y,shallowRef as b,unref as x,useTemplateRef as S,withCtx as C}from"vue";import{createEventHook as w}from"@vueuse/core";const T=g({name:`TreeRoot`,__name:`tree-root`,props:{modelValue:{},defaultValue:{},multiple:{},items:{},expanded:{},defaultExpanded:{},selectionBehavior:{default:`toggle`},toggleBehavior:{default:`multiple`},dir:{},loop:{type:Boolean,default:!0},disabled:{type:Boolean},propagateSelect:{type:Boolean},bubbleSelect:{type:Boolean},allowParentSelect:{type:Boolean},asChild:{type:Boolean},as:{default:`ul`}},emits:[`update:modelValue`,`update:expanded`],setup(g,{emit:T}){let E=g,D=T,O=S(`rovingFocusGroupRef`),{handleTypeaheadSearch:k}=o(),A=b(!1),j=w(),M=a(()=>E.modelValue,e=>{D(`update:modelValue`,e)},I()),N=p(()=>E.multiple&&Array.isArray(M.value)?M.value:[M.value]),{onSelectItem:P,handleMultipleReplace:F}=f(M,()=>E.multiple,()=>E.selectionBehavior);function I(){return t(E.defaultValue)?E.multiple?[]:``:E.defaultValue}let L=a(()=>E.expanded,e=>{D(`update:expanded`,e??[])},E.defaultExpanded??[]),R=p(()=>u(E.items,L.value)),z=t=>{let n=e[t.key];_(()=>{F(n,r(),R.value.map(e=>e.value),O.value?.getItems)})},B=e=>{if(E.disabled)return;if(A.value){j.trigger(e);return}if([`ArrowUp`,`ArrowDown`,`Shift`].includes(e.key)){z(e);return}let t=O.value?.getItems()??[];k(e.key,t)},V=e=>{if(E.disabled||!e.parent||!E.multiple||!Array.isArray(M.value))return;let t=R.value.find(t=>e.parent&&t.value===e.parent.value);if(!t)return;let n=M.value;t.data.children?.every(e=>n.find(t=>t===e.value))?M.value=[...n,t.data.value]:M.value=n.filter(e=>e!==t.data.value),V(t)},H=e=>{if(E.disabled)return;let t=R.value.find(t=>t.value===e);if(!(t?.hasChildren&&!E.allowParentSelect)&&(P(e),E.bubbleSelect&&E.multiple&&Array.isArray(M.value)&&t&&V(t),E.propagateSelect&&E.multiple&&Array.isArray(M.value))){if(!t)return;let r=n(t.data.children);M.value.includes(e)?M.value=M.value.filter(e=>!r.some(t=>t.value===e)):M.value=[...M.value,...r]}},U=e=>{if(!E.disabled&&R.value.find(t=>t.value===e)?.data?.children){if(L.value.includes(e)){L.value=L.value.filter(t=>t!==e);return}if(E.toggleBehavior===`single`){let t=l(e,E.items);t?L.value=[...t,e]:L.value=[e]}else L.value=[...L.value,e]}};return d({modelValue:M,expanded:L,selectedKeys:N,onSelect:H,onToggle:U,expandedItems:R,isVirtual:A,virtualKeydownHook:j,getItems:()=>O.value?.getItems()??[],handleMultipleReplace:F,...i(E,[`items`,`multiple`,`disabled`,`dir`,`selectionBehavior`,`propagateSelect`,`bubbleSelect`])}),(e,t)=>(v(),m(c,{ref_key:`rovingFocusGroupRef`,ref:O,"as-child":``,orientation:`vertical`,dir:g.dir,loop:g.loop},{default:C(()=>[h(x(s),{as:g.as,"as-child":g.asChild,"data-soybean-tree-root":``,"aria-disabled":g.disabled?!0:void 0,"aria-multiselectable":g.multiple?!0:void 0,"data-disabled":g.disabled?``:void 0,role:`tree`,onKeydown:B},{default:C(()=>[y(e.$slots,`default`,{flattenItems:R.value,modelValue:x(M),expanded:x(L),select:H,toggle:U})]),_:3},8,[`as`,`as-child`,`aria-disabled`,`aria-multiselectable`,`data-disabled`])]),_:3},8,[`dir`,`loop`]))}});export{T as default};
@@ -15,12 +15,12 @@ declare const __VLS_base: import("vue").DefineComponent<TreeMenuRootProps, {}, {
15
15
  "onUpdate:collapsed"?: ((value: boolean) => any) | undefined;
16
16
  }>, {
17
17
  defaultValue: string;
18
- collapsed: boolean;
19
18
  defaultExpanded: string[];
19
+ collapsed: boolean;
20
20
  indent: number;
21
- pxToRem: (px: number) => number;
22
21
  defaultCollapsed: boolean;
23
22
  collapsedWidth: number;
23
+ pxToRem: (px: number) => number;
24
24
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
25
25
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
26
26
  declare const _default: typeof __VLS_export;
@@ -2,8 +2,8 @@ import { VisuallyHiddenFeature, VisuallyHiddenInputProps } from "./types.js";
2
2
 
3
3
  //#region src/components/visually-hidden/visually-hidden-input.vue.d.ts
4
4
  declare const __VLS_export: import("vue").DefineComponent<VisuallyHiddenInputProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<VisuallyHiddenInputProps> & Readonly<{}>, {
5
- checked: boolean;
6
5
  feature: VisuallyHiddenFeature;
6
+ checked: boolean;
7
7
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
8
8
  declare const _default: typeof __VLS_export;
9
9
  //#endregion
@@ -1,8 +1,7 @@
1
1
  //#region src/shared/env.d.ts
2
2
  declare const isBrowser: boolean;
3
3
  declare const isClient: boolean;
4
- declare const isNuxt: boolean;
5
4
  declare function isIOS(): boolean;
6
5
  declare function refreshIOSDetection(): boolean;
7
6
  //#endregion
8
- export { isBrowser, isClient, isIOS, isNuxt, refreshIOSDetection };
7
+ export { isBrowser, isClient, isIOS, refreshIOSDetection };
@@ -1 +1 @@
1
- const e=typeof document<`u`,t=typeof window<`u`&&typeof document<`u`,n=typeof __NUXT_VERSION__<`u`;let r=null;function i(){return!t||!window?.navigator?.userAgent?!1:/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||window.navigator.maxTouchPoints>2&&/iPad|Macintosh/.test(window.navigator.userAgent)}function a(){return r===null&&(r=i()),r}function o(){return r=null,a()}export{e as isBrowser,t as isClient,a as isIOS,n as isNuxt,o as refreshIOSDetection};
1
+ const e=typeof document<`u`,t=typeof window<`u`&&typeof document<`u`;let n=null;function r(){return!t||!window?.navigator?.userAgent?!1:/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||window.navigator.maxTouchPoints>2&&/iPad|Macintosh/.test(window.navigator.userAgent)}function i(){return n===null&&(n=r()),n}function a(){return n=null,i()}export{e as isBrowser,t as isClient,i as isIOS,a as refreshIOSDetection};
@@ -8,9 +8,9 @@ import { createFieldName, parseArrayValue, parseFormValue, parseObjectValue, par
8
8
  import { getActiveElement, getAriaLabel, getCollectionItemElements, isElementHasAttribute, isHTMLElement, removeLinks } from "./dom.js";
9
9
  import { focus, focusFirstAndSelect, getDirectionAwareKey, getFocusIntent, getTabbableCandidates, getTabbableEdges, removeFromTabOrder, tryFocusFirst } from "./focus.js";
10
10
  import { getElFromTemplateRef, getLifeCycleTarget, getMergedRefsValue, getRawChildren, getVueBooleanCasting, isFormControl, transformPropsToContext } from "./vue.js";
11
- import { isBrowser, isClient, isIOS, isNuxt, refreshIOSDetection } from "./env.js";
11
+ import { isBrowser, isClient, isIOS, refreshIOSDetection } from "./env.js";
12
12
  import { handleAndDispatchCustomEvent, isMouseEvent } from "./event.js";
13
13
  import { getExitSideFromRect, getHull, getPaddedExitPoints, getPointsFromRect, isDeltaInDirection, isPointInPolygon, isPointerInGraceArea } from "./geometry.js";
14
14
  import { getTreePaths } from "./tree.js";
15
15
  import { CreateTimeOptionsProps, FormatTimeValueProps, TimePickerOption, compareTimeValues, createTimeOptions, findClosestTimeOption, formatTimeValue, isTimeBetweenInclusive } from "./time-picker.js";
16
- export { CreateTimeOptionsProps, FormatTimeValueProps, TimePickerOption, appendAt, areColorsEqual, arrayRemove, chunk, clamp, compact, compareTimeValues, createFieldName, createTimeOptions, findClosestTimeOption, findValuesBetween, flattenChildren, focus, focusFirstAndSelect, formatChannelValue, formatColor, formatTimeValue, getActiveElement, getAreaBackgroundStyle, getAriaLabel, getBinaryCheckedState, getChannelName, getChannelObjectSpace, getChannelRange, getChannelValue, getCheckedState, getCollectionItemElements, getColorContrast, getColorLabel, getDirectionAwareKey, getDisclosureState, getElFromTemplateRef, getExitSideFromRect, getFocusIntent, getHull, getLifeCycleTarget, getMergedRefsValue, getNextMatch, getOpenFromSingleOrMultiple, getPaddedExitPoints, getPointsFromRect, getRawChildren, getSliderBackgroundStyle, getTabbableCandidates, getTabbableEdges, getTreePaths, getValue, getVueBooleanCasting, handleAndDispatchCustomEvent, hasVisibleChromaticity, insertAt, interpolate, isArrayValue, isBlankString, isBrowser, isClient, isDateObject, isDeltaInDirection, isElementHasAttribute, isFormControl, isFunction, isHTMLElement, isIOS, isIndeterminate, isKey, isMouseEvent, isNonNullObject, isNullish, isNuxt, isObject, isObjectType, isPointInPolygon, isPointerInGraceArea, isPrimitive, isPromise, isString, isTimeBetweenInclusive, isValidColor, isValueEqualOrExist, keysOf, moveAt, normalizeColor, omit, parseArrayValue, parseFormValue, parseObjectValue, parsePrimitiveValue, pick, prependAt, refreshIOSDetection, removeAt, removeFromTabOrder, removeLinks, resolveColorFormat, roundToStepPrecision, setChannelValue, setChannelValues, setValue, snapValueToStep, stringToPath, swapAt, toColorObject, transformPropsToContext, tryFocusFirst, updateAt, wrapArray };
16
+ export { CreateTimeOptionsProps, FormatTimeValueProps, TimePickerOption, appendAt, areColorsEqual, arrayRemove, chunk, clamp, compact, compareTimeValues, createFieldName, createTimeOptions, findClosestTimeOption, findValuesBetween, flattenChildren, focus, focusFirstAndSelect, formatChannelValue, formatColor, formatTimeValue, getActiveElement, getAreaBackgroundStyle, getAriaLabel, getBinaryCheckedState, getChannelName, getChannelObjectSpace, getChannelRange, getChannelValue, getCheckedState, getCollectionItemElements, getColorContrast, getColorLabel, getDirectionAwareKey, getDisclosureState, getElFromTemplateRef, getExitSideFromRect, getFocusIntent, getHull, getLifeCycleTarget, getMergedRefsValue, getNextMatch, getOpenFromSingleOrMultiple, getPaddedExitPoints, getPointsFromRect, getRawChildren, getSliderBackgroundStyle, getTabbableCandidates, getTabbableEdges, getTreePaths, getValue, getVueBooleanCasting, handleAndDispatchCustomEvent, hasVisibleChromaticity, insertAt, interpolate, isArrayValue, isBlankString, isBrowser, isClient, isDateObject, isDeltaInDirection, isElementHasAttribute, isFormControl, isFunction, isHTMLElement, isIOS, isIndeterminate, isKey, isMouseEvent, isNonNullObject, isNullish, isObject, isObjectType, isPointInPolygon, isPointerInGraceArea, isPrimitive, isPromise, isString, isTimeBetweenInclusive, isValidColor, isValueEqualOrExist, keysOf, moveAt, normalizeColor, omit, parseArrayValue, parseFormValue, parseObjectValue, parsePrimitiveValue, pick, prependAt, refreshIOSDetection, removeAt, removeFromTabOrder, removeLinks, resolveColorFormat, roundToStepPrecision, setChannelValue, setChannelValues, setValue, snapValueToStep, stringToPath, swapAt, toColorObject, transformPropsToContext, tryFocusFirst, updateAt, wrapArray };
@@ -1 +1 @@
1
- import{isArrayValue as e,isBlankString as t,isDateObject as n,isFunction as r,isNonNullObject as i,isNullish as a,isObject as o,isObjectType as s,isPrimitive as c,isPromise as l,isString as u,keysOf as d}from"./guard.js";import{appendAt as f,arrayRemove as p,chunk as m,compact as h,findValuesBetween as g,flattenChildren as _,getNextMatch as v,insertAt as y,moveAt as b,omit as x,pick as S,prependAt as C,removeAt as w,swapAt as T,updateAt as E,wrapArray as D}from"./object.js";import{interpolate as O,isKey as k,stringToPath as A}from"./string.js";import{isValueEqualOrExist as j}from"./comparison.js";import{areColorsEqual as M,formatChannelValue as N,formatColor as P,getAreaBackgroundStyle as F,getChannelName as I,getChannelObjectSpace as L,getChannelRange as R,getChannelValue as z,getColorContrast as B,getColorLabel as V,getSliderBackgroundStyle as H,hasVisibleChromaticity as U,isValidColor as W,normalizeColor as G,resolveColorFormat as K,setChannelValue as q,setChannelValues as J,toColorObject as Y}from"./color.js";import{clamp as X,getBinaryCheckedState as Z,getCheckedState as Q,getDisclosureState as $,getOpenFromSingleOrMultiple as ee,getValue as te,isIndeterminate as ne,roundToStepPrecision as re,setValue as ie,snapValueToStep as ae}from"./value.js";import{createFieldName as oe,parseArrayValue as se,parseFormValue as ce,parseObjectValue as le,parsePrimitiveValue as ue}from"./form.js";import{getActiveElement as de,getAriaLabel as fe,getCollectionItemElements as pe,isElementHasAttribute as me,isHTMLElement as he,removeLinks as ge}from"./dom.js";import{focus as _e,focusFirstAndSelect as ve,getDirectionAwareKey as ye,getFocusIntent as be,getTabbableCandidates as xe,getTabbableEdges as Se,removeFromTabOrder as Ce,tryFocusFirst as we}from"./focus.js";import{getElFromTemplateRef as Te,getLifeCycleTarget as Ee,getMergedRefsValue as De,getRawChildren as Oe,getVueBooleanCasting as ke,isFormControl as Ae,transformPropsToContext as je}from"./vue.js";import{isBrowser as Me,isClient as Ne,isIOS as Pe,isNuxt as Fe,refreshIOSDetection as Ie}from"./env.js";import{handleAndDispatchCustomEvent as Le,isMouseEvent as Re}from"./event.js";import{getExitSideFromRect as ze,getHull as Be,getPaddedExitPoints as Ve,getPointsFromRect as He,isDeltaInDirection as Ue,isPointInPolygon as We,isPointerInGraceArea as Ge}from"./geometry.js";import{getTreePaths as Ke}from"./tree.js";import{compareTimeValues as qe,createTimeOptions as Je,findClosestTimeOption as Ye,formatTimeValue as Xe,isTimeBetweenInclusive as Ze}from"./time-picker.js";export{f as appendAt,M as areColorsEqual,p as arrayRemove,m as chunk,X as clamp,h as compact,qe as compareTimeValues,oe as createFieldName,Je as createTimeOptions,Ye as findClosestTimeOption,g as findValuesBetween,_ as flattenChildren,_e as focus,ve as focusFirstAndSelect,N as formatChannelValue,P as formatColor,Xe as formatTimeValue,de as getActiveElement,F as getAreaBackgroundStyle,fe as getAriaLabel,Z as getBinaryCheckedState,I as getChannelName,L as getChannelObjectSpace,R as getChannelRange,z as getChannelValue,Q as getCheckedState,pe as getCollectionItemElements,B as getColorContrast,V as getColorLabel,ye as getDirectionAwareKey,$ as getDisclosureState,Te as getElFromTemplateRef,ze as getExitSideFromRect,be as getFocusIntent,Be as getHull,Ee as getLifeCycleTarget,De as getMergedRefsValue,v as getNextMatch,ee as getOpenFromSingleOrMultiple,Ve as getPaddedExitPoints,He as getPointsFromRect,Oe as getRawChildren,H as getSliderBackgroundStyle,xe as getTabbableCandidates,Se as getTabbableEdges,Ke as getTreePaths,te as getValue,ke as getVueBooleanCasting,Le as handleAndDispatchCustomEvent,U as hasVisibleChromaticity,y as insertAt,O as interpolate,e as isArrayValue,t as isBlankString,Me as isBrowser,Ne as isClient,n as isDateObject,Ue as isDeltaInDirection,me as isElementHasAttribute,Ae as isFormControl,r as isFunction,he as isHTMLElement,Pe as isIOS,ne as isIndeterminate,k as isKey,Re as isMouseEvent,i as isNonNullObject,a as isNullish,Fe as isNuxt,o as isObject,s as isObjectType,We as isPointInPolygon,Ge as isPointerInGraceArea,c as isPrimitive,l as isPromise,u as isString,Ze as isTimeBetweenInclusive,W as isValidColor,j as isValueEqualOrExist,d as keysOf,b as moveAt,G as normalizeColor,x as omit,se as parseArrayValue,ce as parseFormValue,le as parseObjectValue,ue as parsePrimitiveValue,S as pick,C as prependAt,Ie as refreshIOSDetection,w as removeAt,Ce as removeFromTabOrder,ge as removeLinks,K as resolveColorFormat,re as roundToStepPrecision,q as setChannelValue,J as setChannelValues,ie as setValue,ae as snapValueToStep,A as stringToPath,T as swapAt,Y as toColorObject,je as transformPropsToContext,we as tryFocusFirst,E as updateAt,D as wrapArray};
1
+ import{isArrayValue as e,isBlankString as t,isDateObject as n,isFunction as r,isNonNullObject as i,isNullish as a,isObject as o,isObjectType as s,isPrimitive as c,isPromise as l,isString as u,keysOf as d}from"./guard.js";import{appendAt as f,arrayRemove as p,chunk as m,compact as h,findValuesBetween as g,flattenChildren as _,getNextMatch as v,insertAt as y,moveAt as b,omit as x,pick as S,prependAt as C,removeAt as w,swapAt as T,updateAt as E,wrapArray as D}from"./object.js";import{interpolate as O,isKey as k,stringToPath as A}from"./string.js";import{isValueEqualOrExist as j}from"./comparison.js";import{areColorsEqual as M,formatChannelValue as N,formatColor as P,getAreaBackgroundStyle as F,getChannelName as I,getChannelObjectSpace as L,getChannelRange as R,getChannelValue as z,getColorContrast as B,getColorLabel as V,getSliderBackgroundStyle as H,hasVisibleChromaticity as U,isValidColor as W,normalizeColor as G,resolveColorFormat as K,setChannelValue as q,setChannelValues as J,toColorObject as Y}from"./color.js";import{clamp as X,getBinaryCheckedState as Z,getCheckedState as Q,getDisclosureState as $,getOpenFromSingleOrMultiple as ee,getValue as te,isIndeterminate as ne,roundToStepPrecision as re,setValue as ie,snapValueToStep as ae}from"./value.js";import{createFieldName as oe,parseArrayValue as se,parseFormValue as ce,parseObjectValue as le,parsePrimitiveValue as ue}from"./form.js";import{getActiveElement as de,getAriaLabel as fe,getCollectionItemElements as pe,isElementHasAttribute as me,isHTMLElement as he,removeLinks as ge}from"./dom.js";import{focus as _e,focusFirstAndSelect as ve,getDirectionAwareKey as ye,getFocusIntent as be,getTabbableCandidates as xe,getTabbableEdges as Se,removeFromTabOrder as Ce,tryFocusFirst as we}from"./focus.js";import{getElFromTemplateRef as Te,getLifeCycleTarget as Ee,getMergedRefsValue as De,getRawChildren as Oe,getVueBooleanCasting as ke,isFormControl as Ae,transformPropsToContext as je}from"./vue.js";import{isBrowser as Me,isClient as Ne,isIOS as Pe,refreshIOSDetection as Fe}from"./env.js";import{handleAndDispatchCustomEvent as Ie,isMouseEvent as Le}from"./event.js";import{getExitSideFromRect as Re,getHull as ze,getPaddedExitPoints as Be,getPointsFromRect as Ve,isDeltaInDirection as He,isPointInPolygon as Ue,isPointerInGraceArea as We}from"./geometry.js";import{getTreePaths as Ge}from"./tree.js";import{compareTimeValues as Ke,createTimeOptions as qe,findClosestTimeOption as Je,formatTimeValue as Ye,isTimeBetweenInclusive as Xe}from"./time-picker.js";export{f as appendAt,M as areColorsEqual,p as arrayRemove,m as chunk,X as clamp,h as compact,Ke as compareTimeValues,oe as createFieldName,qe as createTimeOptions,Je as findClosestTimeOption,g as findValuesBetween,_ as flattenChildren,_e as focus,ve as focusFirstAndSelect,N as formatChannelValue,P as formatColor,Ye as formatTimeValue,de as getActiveElement,F as getAreaBackgroundStyle,fe as getAriaLabel,Z as getBinaryCheckedState,I as getChannelName,L as getChannelObjectSpace,R as getChannelRange,z as getChannelValue,Q as getCheckedState,pe as getCollectionItemElements,B as getColorContrast,V as getColorLabel,ye as getDirectionAwareKey,$ as getDisclosureState,Te as getElFromTemplateRef,Re as getExitSideFromRect,be as getFocusIntent,ze as getHull,Ee as getLifeCycleTarget,De as getMergedRefsValue,v as getNextMatch,ee as getOpenFromSingleOrMultiple,Be as getPaddedExitPoints,Ve as getPointsFromRect,Oe as getRawChildren,H as getSliderBackgroundStyle,xe as getTabbableCandidates,Se as getTabbableEdges,Ge as getTreePaths,te as getValue,ke as getVueBooleanCasting,Ie as handleAndDispatchCustomEvent,U as hasVisibleChromaticity,y as insertAt,O as interpolate,e as isArrayValue,t as isBlankString,Me as isBrowser,Ne as isClient,n as isDateObject,He as isDeltaInDirection,me as isElementHasAttribute,Ae as isFormControl,r as isFunction,he as isHTMLElement,Pe as isIOS,ne as isIndeterminate,k as isKey,Le as isMouseEvent,i as isNonNullObject,a as isNullish,o as isObject,s as isObjectType,Ue as isPointInPolygon,We as isPointerInGraceArea,c as isPrimitive,l as isPromise,u as isString,Xe as isTimeBetweenInclusive,W as isValidColor,j as isValueEqualOrExist,d as keysOf,b as moveAt,G as normalizeColor,x as omit,se as parseArrayValue,ce as parseFormValue,le as parseObjectValue,ue as parsePrimitiveValue,S as pick,C as prependAt,Fe as refreshIOSDetection,w as removeAt,Ce as removeFromTabOrder,ge as removeLinks,K as resolveColorFormat,re as roundToStepPrecision,q as setChannelValue,J as setChannelValues,ie as setValue,ae as snapValueToStep,A as stringToPath,T as swapAt,Y as toColorObject,je as transformPropsToContext,we as tryFocusFirst,E as updateAt,D as wrapArray};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soybeanjs/headless",
3
- "version": "0.28.1",
3
+ "version": "0.29.0-beta.1",
4
4
  "description": "SoybeanHeadless is a collection unstyled components for Vue 3. It is designed to be lightweight and easy to use.",
5
5
  "homepage": "https://github.com/soybeanjs/soybean-ui",
6
6
  "bugs": {
@@ -97,22 +97,22 @@
97
97
  "@soybeanjs/hooks": "^0.3.0",
98
98
  "@soybeanjs/utils": "^0.1.1",
99
99
  "@standard-schema/spec": "^1.1.0",
100
- "@tanstack/vue-virtual": "^3.13.26",
100
+ "@tanstack/vue-virtual": "^3.13.28",
101
101
  "@vueuse/core": "^14.3.0",
102
102
  "@vueuse/shared": "^14.3.0",
103
103
  "aria-hidden": "^1.2.6",
104
104
  "defu": "^6.1.7",
105
105
  "embla-carousel": "^8.6.0",
106
106
  "embla-carousel-reactive-utils": "^8.6.0",
107
- "fuse.js": "^7.3.0",
107
+ "fuse.js": "^7.4.2",
108
108
  "klona": "^2.0.6",
109
109
  "ohash": "^2.0.11"
110
110
  },
111
111
  "devDependencies": {
112
- "@nuxt/kit": "^4.4.6",
113
- "@nuxt/schema": "^4.4.6",
114
- "nuxt": ">=4.4.6",
115
- "tsdown": "0.22.1",
112
+ "@nuxt/kit": "^4.4.8",
113
+ "@nuxt/schema": "^4.4.8",
114
+ "fast-glob": "^3.3.3",
115
+ "nuxt": ">=4.4.8",
116
116
  "typescript": "6.0.3",
117
117
  "unplugin-vue": "7.2.0",
118
118
  "unplugin-vue-components": "^32.1.0",
@@ -145,6 +145,6 @@
145
145
  }
146
146
  },
147
147
  "scripts": {
148
- "build": "pnpm tsdown"
148
+ "build": "vp pack"
149
149
  }
150
150
  }