@soybeanjs/headless 0.2.8 → 0.3.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 (279) hide show
  1. package/dist/components/accordion/accordion-content.vue.d.ts +2 -2
  2. package/dist/components/accordion/accordion-header.vue.d.ts +2 -2
  3. package/dist/components/accordion/accordion-item.vue.d.ts +5 -5
  4. package/dist/components/accordion/accordion-root.vue.d.ts +3 -3
  5. package/dist/components/accordion/accordion-trigger.vue.d.ts +2 -2
  6. package/dist/components/accordion/context.d.ts +2 -2
  7. package/dist/components/accordion/context.js +1 -1
  8. package/dist/components/alert/alert-close.js +1 -1
  9. package/dist/components/alert/alert-close.vue.d.ts +2 -2
  10. package/dist/components/alert/alert-content.vue.d.ts +2 -2
  11. package/dist/components/alert/alert-description.vue.d.ts +2 -2
  12. package/dist/components/alert/alert-root.vue.d.ts +4 -4
  13. package/dist/components/alert/alert-title.vue.d.ts +2 -2
  14. package/dist/components/alert/context.d.ts +2 -2
  15. package/dist/components/alert-dialog/alert-dialog-close.vue.d.ts +2 -2
  16. package/dist/components/alert-dialog/alert-dialog-content.js +1 -1
  17. package/dist/components/alert-dialog/alert-dialog-content.vue.d.ts +6 -6
  18. package/dist/components/alert-dialog/alert-dialog-root.vue.d.ts +4 -4
  19. package/dist/components/arrow/arrow.js +1 -1
  20. package/dist/components/aspect-ratio/aspect-ratio.vue.d.ts +3 -3
  21. package/dist/components/avatar/avatar-fallback.vue.d.ts +2 -2
  22. package/dist/components/avatar/avatar-image.vue.d.ts +4 -4
  23. package/dist/components/avatar/avatar-root.vue.d.ts +2 -2
  24. package/dist/components/avatar/context.d.ts +2 -2
  25. package/dist/components/badge/badge-content.vue.d.ts +2 -2
  26. package/dist/components/badge/badge-root.vue.d.ts +4 -4
  27. package/dist/components/badge/context.d.ts +2 -2
  28. package/dist/components/breadcrumb/breadcrumb-ellipsis.js +1 -1
  29. package/dist/components/breadcrumb/breadcrumb-ellipsis.vue.d.ts +2 -2
  30. package/dist/components/breadcrumb/breadcrumb-item.vue.d.ts +2 -2
  31. package/dist/components/breadcrumb/breadcrumb-link.vue.d.ts +2 -2
  32. package/dist/components/breadcrumb/breadcrumb-list.vue.d.ts +2 -2
  33. package/dist/components/breadcrumb/breadcrumb-page.vue.d.ts +2 -2
  34. package/dist/components/breadcrumb/breadcrumb-root.vue.d.ts +2 -2
  35. package/dist/components/breadcrumb/breadcrumb-separator.vue.d.ts +2 -2
  36. package/dist/components/breadcrumb/context.d.ts +2 -2
  37. package/dist/components/button/button.vue.d.ts +5 -5
  38. package/dist/components/card/card-content.vue.d.ts +2 -2
  39. package/dist/components/card/card-description.vue.d.ts +2 -2
  40. package/dist/components/card/card-footer.vue.d.ts +2 -2
  41. package/dist/components/card/card-header.vue.d.ts +2 -2
  42. package/dist/components/card/card-root.vue.d.ts +2 -2
  43. package/dist/components/card/card-title-root.vue.d.ts +2 -2
  44. package/dist/components/card/card-title.vue.d.ts +2 -2
  45. package/dist/components/card/context.d.ts +2 -2
  46. package/dist/components/checkbox/checkbox-control.vue.d.ts +2 -2
  47. package/dist/components/checkbox/checkbox-group-root.vue.d.ts +3 -3
  48. package/dist/components/checkbox/checkbox-indicator.vue.d.ts +4 -4
  49. package/dist/components/checkbox/checkbox-label.vue.d.ts +2 -2
  50. package/dist/components/checkbox/checkbox-root.vue.d.ts +4 -4
  51. package/dist/components/checkbox/context.d.ts +2 -2
  52. package/dist/components/collapsible/collapsible-content.js +1 -1
  53. package/dist/components/collapsible/collapsible-content.vue.d.ts +2 -2
  54. package/dist/components/collapsible/collapsible-root.vue.d.ts +7 -7
  55. package/dist/components/collapsible/collapsible-trigger.vue.d.ts +4 -4
  56. package/dist/components/collapsible/context.d.ts +2 -2
  57. package/dist/components/collapsible/context.js +1 -1
  58. package/dist/components/config-provider/config-provider.vue.d.ts +3 -3
  59. package/dist/components/context-menu/context-menu-content.vue.d.ts +8 -8
  60. package/dist/components/context-menu/context-menu-root.js +1 -1
  61. package/dist/components/context-menu/context-menu-root.vue.d.ts +4 -4
  62. package/dist/components/context-menu/context-menu-trigger.js +1 -1
  63. package/dist/components/context-menu/context-menu-trigger.vue.d.ts +4 -4
  64. package/dist/components/dialog/context.d.ts +2 -2
  65. package/dist/components/dialog/context.js +1 -1
  66. package/dist/components/dialog/dialog-close.vue.d.ts +2 -2
  67. package/dist/components/dialog/dialog-content.vue.d.ts +6 -6
  68. package/dist/components/dialog/dialog-description.vue.d.ts +2 -2
  69. package/dist/components/dialog/dialog-footer.vue.d.ts +2 -2
  70. package/dist/components/dialog/dialog-header.vue.d.ts +2 -2
  71. package/dist/components/dialog/dialog-overlay.vue.d.ts +2 -2
  72. package/dist/components/dialog/dialog-root.vue.d.ts +4 -4
  73. package/dist/components/dialog/dialog-title.vue.d.ts +2 -2
  74. package/dist/components/dialog/dialog-trigger.vue.d.ts +2 -2
  75. package/dist/components/dropdown-menu/context.js +1 -1
  76. package/dist/components/dropdown-menu/dropdown-menu-content.vue.d.ts +8 -8
  77. package/dist/components/dropdown-menu/dropdown-menu-root.js +1 -1
  78. package/dist/components/dropdown-menu/dropdown-menu-root.vue.d.ts +6 -6
  79. package/dist/components/dropdown-menu/dropdown-menu-trigger.vue.d.ts +4 -4
  80. package/dist/components/form/context.d.ts +2 -2
  81. package/dist/components/form/form-description.vue.d.ts +2 -2
  82. package/dist/components/form/form-error.vue.d.ts +2 -2
  83. package/dist/components/form/form-field.vue.d.ts +2 -2
  84. package/dist/components/form/form-label.vue.d.ts +2 -2
  85. package/dist/components/input/context.d.ts +2 -2
  86. package/dist/components/input/input-control.vue.d.ts +2 -2
  87. package/dist/components/input/input-root.vue.d.ts +4 -4
  88. package/dist/components/kbd/kbd.vue.d.ts +2 -2
  89. package/dist/components/label/label.vue.d.ts +2 -2
  90. package/dist/components/layout/context.d.ts +2 -2
  91. package/dist/components/layout/layout-footer.vue.d.ts +2 -2
  92. package/dist/components/layout/layout-header.vue.d.ts +2 -2
  93. package/dist/components/layout/layout-main.vue.d.ts +2 -2
  94. package/dist/components/layout/layout-mobile.vue.d.ts +2 -2
  95. package/dist/components/layout/layout-rail.js +1 -1
  96. package/dist/components/layout/layout-rail.vue.d.ts +2 -2
  97. package/dist/components/layout/layout-root.vue.d.ts +4 -4
  98. package/dist/components/layout/layout-sidebar.vue.d.ts +2 -2
  99. package/dist/components/layout/layout-tab.vue.d.ts +2 -2
  100. package/dist/components/layout/layout-trigger.vue.d.ts +2 -2
  101. package/dist/components/link/link.vue.d.ts +4 -4
  102. package/dist/components/list/context.d.ts +2 -2
  103. package/dist/components/list/list-content.vue.d.ts +2 -2
  104. package/dist/components/list/list-description.vue.d.ts +2 -2
  105. package/dist/components/list/list-item.vue.d.ts +2 -2
  106. package/dist/components/list/list-root.vue.d.ts +2 -2
  107. package/dist/components/list/list-title.vue.d.ts +2 -2
  108. package/dist/components/listbox/context.d.ts +2 -2
  109. package/dist/components/listbox/listbox-content.js +1 -1
  110. package/dist/components/listbox/listbox-content.vue.d.ts +2 -2
  111. package/dist/components/listbox/listbox-filter.js +1 -1
  112. package/dist/components/listbox/listbox-filter.vue.d.ts +4 -4
  113. package/dist/components/listbox/listbox-group-label.vue.d.ts +2 -2
  114. package/dist/components/listbox/listbox-group.vue.d.ts +2 -2
  115. package/dist/components/listbox/listbox-item-indicator.vue.d.ts +4 -4
  116. package/dist/components/listbox/listbox-item.vue.d.ts +5 -5
  117. package/dist/components/listbox/listbox-root.js +1 -1
  118. package/dist/components/listbox/listbox-root.vue.d.ts +7 -7
  119. package/dist/components/listbox/listbox-virtualizer.vue.d.ts +2 -2
  120. package/dist/components/menu/context.d.ts +2 -2
  121. package/dist/components/menu/context.js +1 -1
  122. package/dist/components/menu/menu-checkbox-group.vue.d.ts +3 -3
  123. package/dist/components/menu/menu-checkbox-item.vue.d.ts +4 -4
  124. package/dist/components/menu/menu-content-impl.js +1 -1
  125. package/dist/components/menu/menu-content.vue.d.ts +8 -8
  126. package/dist/components/menu/menu-group-label.vue.d.ts +2 -2
  127. package/dist/components/menu/menu-group.vue.d.ts +2 -2
  128. package/dist/components/menu/menu-item-indicator.vue.d.ts +4 -4
  129. package/dist/components/menu/menu-item.vue.d.ts +4 -4
  130. package/dist/components/menu/menu-radio-group.vue.d.ts +3 -3
  131. package/dist/components/menu/menu-radio-item.vue.d.ts +4 -4
  132. package/dist/components/menu/menu-root.vue.d.ts +4 -4
  133. package/dist/components/menu/menu-sub-content.js +1 -1
  134. package/dist/components/menu/menu-sub-content.vue.d.ts +8 -8
  135. package/dist/components/menu/menu-sub-trigger.vue.d.ts +2 -2
  136. package/dist/components/menu/menu-sub.vue.d.ts +4 -4
  137. package/dist/components/navigation-menu/context.d.ts +2 -2
  138. package/dist/components/navigation-menu/navigation-menu-content.vue.d.ts +4 -4
  139. package/dist/components/navigation-menu/navigation-menu-indicator.vue.d.ts +2 -2
  140. package/dist/components/navigation-menu/navigation-menu-item.js +1 -1
  141. package/dist/components/navigation-menu/navigation-menu-item.vue.d.ts +2 -2
  142. package/dist/components/navigation-menu/navigation-menu-link.vue.d.ts +4 -4
  143. package/dist/components/navigation-menu/navigation-menu-list.vue.d.ts +2 -2
  144. package/dist/components/navigation-menu/navigation-menu-root.vue.d.ts +5 -5
  145. package/dist/components/navigation-menu/navigation-menu-sub-list.vue.d.ts +2 -2
  146. package/dist/components/navigation-menu/navigation-menu-trigger.vue.d.ts +4 -4
  147. package/dist/components/navigation-menu/navigation-menu-viewport.vue.d.ts +3 -3
  148. package/dist/components/number-input/context.d.ts +2 -2
  149. package/dist/components/number-input/number-input-control.js +1 -1
  150. package/dist/components/number-input/number-input-control.vue.d.ts +2 -2
  151. package/dist/components/number-input/number-input-decrement.js +1 -1
  152. package/dist/components/number-input/number-input-decrement.vue.d.ts +4 -4
  153. package/dist/components/number-input/number-input-increment.js +1 -1
  154. package/dist/components/number-input/number-input-increment.vue.d.ts +4 -4
  155. package/dist/components/number-input/number-input-root.vue.d.ts +4 -4
  156. package/dist/components/pagination/context.d.ts +2 -2
  157. package/dist/components/pagination/pagination-ellipsis.js +1 -1
  158. package/dist/components/pagination/pagination-ellipsis.vue.d.ts +2 -2
  159. package/dist/components/pagination/pagination-first.js +1 -1
  160. package/dist/components/pagination/pagination-first.vue.d.ts +2 -2
  161. package/dist/components/pagination/pagination-last.js +1 -1
  162. package/dist/components/pagination/pagination-last.vue.d.ts +2 -2
  163. package/dist/components/pagination/pagination-list-item.vue.d.ts +2 -2
  164. package/dist/components/pagination/pagination-list.vue.d.ts +2 -2
  165. package/dist/components/pagination/pagination-next.js +1 -1
  166. package/dist/components/pagination/pagination-next.vue.d.ts +2 -2
  167. package/dist/components/pagination/pagination-prev.js +1 -1
  168. package/dist/components/pagination/pagination-prev.vue.d.ts +2 -2
  169. package/dist/components/pagination/pagination-root.vue.d.ts +4 -4
  170. package/dist/components/popover/context.js +1 -1
  171. package/dist/components/popover/popover-anchor.vue.d.ts +2 -2
  172. package/dist/components/popover/popover-close.js +1 -1
  173. package/dist/components/popover/popover-close.vue.d.ts +4 -4
  174. package/dist/components/popover/popover-popup.vue.d.ts +2 -2
  175. package/dist/components/popover/popover-positioner.vue.d.ts +6 -6
  176. package/dist/components/popover/popover-root.vue.d.ts +4 -4
  177. package/dist/components/popover/popover-trigger.vue.d.ts +4 -4
  178. package/dist/components/popper/context.d.ts +2 -2
  179. package/dist/components/popper/popper-anchor.vue.d.ts +2 -2
  180. package/dist/components/popper/popper-arrow.vue.d.ts +2 -2
  181. package/dist/components/popper/popper-popup.vue.d.ts +2 -2
  182. package/dist/components/popper/popper-positioner.vue.d.ts +11 -11
  183. package/dist/components/popper/popper-root.vue.d.ts +2 -2
  184. package/dist/components/portal/portal.vue.d.ts +3 -3
  185. package/dist/components/primitive/primitive.d.ts +2 -2
  186. package/dist/components/radio-group/context.d.ts +2 -2
  187. package/dist/components/radio-group/radio-group-control.js +1 -1
  188. package/dist/components/radio-group/radio-group-control.vue.d.ts +2 -2
  189. package/dist/components/radio-group/radio-group-indicator.vue.d.ts +4 -4
  190. package/dist/components/radio-group/radio-group-item.vue.d.ts +4 -4
  191. package/dist/components/radio-group/radio-group-label.vue.d.ts +2 -2
  192. package/dist/components/radio-group/radio-group-root.vue.d.ts +3 -3
  193. package/dist/components/roving-focus/roving-focus-group.vue.d.ts +5 -5
  194. package/dist/components/roving-focus/roving-focus-item.vue.d.ts +3 -3
  195. package/dist/components/select/context.d.ts +2 -2
  196. package/dist/components/select/context.js +1 -1
  197. package/dist/components/select/select-arrow.vue.d.ts +2 -2
  198. package/dist/components/select/select-content-impl.js +1 -1
  199. package/dist/components/select/select-content.vue.d.ts +8 -8
  200. package/dist/components/select/select-group-label.vue.d.ts +2 -2
  201. package/dist/components/select/select-group.vue.d.ts +2 -2
  202. package/dist/components/select/select-item-indicator.vue.d.ts +4 -4
  203. package/dist/components/select/select-item-text.vue.d.ts +2 -2
  204. package/dist/components/select/select-item.js +1 -1
  205. package/dist/components/select/select-item.vue.d.ts +4 -4
  206. package/dist/components/select/select-root.vue.d.ts +5 -5
  207. package/dist/components/select/select-scroll-down-button.vue.d.ts +2 -2
  208. package/dist/components/select/select-scroll-up-button.vue.d.ts +2 -2
  209. package/dist/components/select/select-separator.vue.d.ts +2 -2
  210. package/dist/components/select/select-trigger-icon.vue.d.ts +2 -2
  211. package/dist/components/select/select-trigger.vue.d.ts +4 -4
  212. package/dist/components/select/select-value.vue.d.ts +3 -3
  213. package/dist/components/select/select-viewport.vue.d.ts +2 -2
  214. package/dist/components/separator/context.d.ts +2 -2
  215. package/dist/components/separator/separator-label.vue.d.ts +2 -2
  216. package/dist/components/separator/separator-root.vue.d.ts +3 -3
  217. package/dist/components/slot/slot.d.ts +2 -2
  218. package/dist/components/switch/context.d.ts +2 -2
  219. package/dist/components/switch/switch-control.js +1 -1
  220. package/dist/components/switch/switch-control.vue.d.ts +2 -2
  221. package/dist/components/switch/switch-root.vue.d.ts +3 -3
  222. package/dist/components/switch/switch-thumb.vue.d.ts +4 -4
  223. package/dist/components/tabs/context.d.ts +2 -2
  224. package/dist/components/tabs/tabs-content.vue.d.ts +2 -2
  225. package/dist/components/tabs/tabs-indicator.vue.d.ts +2 -2
  226. package/dist/components/tabs/tabs-list.vue.d.ts +2 -2
  227. package/dist/components/tabs/tabs-root.vue.d.ts +4 -4
  228. package/dist/components/tabs/tabs-trigger.vue.d.ts +4 -4
  229. package/dist/components/tag/tag.vue.d.ts +4 -4
  230. package/dist/components/textarea/context.d.ts +2 -2
  231. package/dist/components/textarea/textarea-control.vue.d.ts +2 -2
  232. package/dist/components/textarea/textarea-counter.vue.d.ts +2 -2
  233. package/dist/components/textarea/textarea-root.vue.d.ts +4 -4
  234. package/dist/components/toast/toast-action.vue.d.ts +4 -4
  235. package/dist/components/toast/toast-close.vue.d.ts +4 -4
  236. package/dist/components/toast/toast-description.vue.d.ts +2 -2
  237. package/dist/components/toast/toast-provider.vue.d.ts +3 -3
  238. package/dist/components/toast/toast-root.vue.d.ts +8 -8
  239. package/dist/components/toast/toast-title.vue.d.ts +2 -2
  240. package/dist/components/toast/toast-viewport.js +1 -1
  241. package/dist/components/toast/toast-viewport.vue.d.ts +4 -4
  242. package/dist/components/tooltip/context.js +1 -1
  243. package/dist/components/tooltip/tooltip-popup.vue.d.ts +2 -2
  244. package/dist/components/tooltip/tooltip-positioner.vue.d.ts +4 -4
  245. package/dist/components/tooltip/tooltip-root.vue.d.ts +4 -4
  246. package/dist/components/tooltip/tooltip-trigger.vue.d.ts +4 -4
  247. package/dist/components/tree/tree-item.js +1 -1
  248. package/dist/components/tree/tree-item.vue.d.ts +5 -5
  249. package/dist/components/tree/tree-root.vue.d.ts +3 -3
  250. package/dist/components/tree/tree-virtualizer-item.vue.d.ts +4 -4
  251. package/dist/components/tree/tree-virtualizer-root.vue.d.ts +3 -3
  252. package/dist/components/tree-menu/context.d.ts +2 -2
  253. package/dist/components/tree-menu/tree-menu-button.vue.d.ts +4 -4
  254. package/dist/components/tree-menu/tree-menu-collapsible.vue.d.ts +2 -2
  255. package/dist/components/tree-menu/tree-menu-group-label.vue.d.ts +2 -2
  256. package/dist/components/tree-menu/tree-menu-group-root.vue.d.ts +2 -2
  257. package/dist/components/tree-menu/tree-menu-group.vue.d.ts +4 -4
  258. package/dist/components/tree-menu/tree-menu-item.vue.d.ts +4 -4
  259. package/dist/components/tree-menu/tree-menu-root.vue.d.ts +4 -4
  260. package/dist/components/tree-menu/tree-menu-sub.vue.d.ts +4 -4
  261. package/dist/components/virtualizer/virtualizer-content.vue.d.ts +2 -2
  262. package/dist/components/virtualizer/virtualizer-item.vue.d.ts +2 -2
  263. package/dist/components/virtualizer/virtualizer-root.vue.d.ts +3 -3
  264. package/dist/components/visually-hidden/visually-hidden-input.vue.d.ts +3 -3
  265. package/dist/components/visually-hidden/visually-hidden.vue.d.ts +4 -4
  266. package/dist/composables/use-collection.js +1 -1
  267. package/dist/composables/use-grace-area.js +1 -1
  268. package/dist/composables/use-image-loading-status.js +1 -1
  269. package/dist/composables/use-is-using-keyboard.js +1 -1
  270. package/dist/composables/use-kbd.d.ts +2 -2
  271. package/dist/composables/use-presence.d.ts +2 -2
  272. package/dist/composables/use-props.d.ts +3 -3
  273. package/dist/composables/use-selection.d.ts +4 -4
  274. package/dist/shared/focus.js +1 -1
  275. package/dist/shared/index.d.ts +2 -1
  276. package/dist/shared/index.js +1 -1
  277. package/dist/shared/tree.d.ts +13 -0
  278. package/dist/shared/tree.js +1 -0
  279. package/package.json +26 -26
@@ -1,7 +1,7 @@
1
1
  import { TreeSelectEvent, TreeToggleEvent } from "../../types/event.js";
2
2
  import { TreeVirtualizerItemProps } from "./types.js";
3
3
  import "../../index.js";
4
- import * as vue1263 from "vue";
4
+ import * as vue295 from "vue";
5
5
 
6
6
  //#region src/components/tree/tree-virtualizer-item.vue.d.ts
7
7
  declare var __VLS_14: {
@@ -13,13 +13,13 @@ declare var __VLS_14: {
13
13
  type __VLS_Slots = {} & {
14
14
  default?: (props: typeof __VLS_14) => any;
15
15
  };
16
- declare const __VLS_base: vue1263.DefineComponent<TreeVirtualizerItemProps, {}, {}, {}, {}, vue1263.ComponentOptionsMixin, vue1263.ComponentOptionsMixin, {
16
+ declare const __VLS_base: vue295.DefineComponent<TreeVirtualizerItemProps, {}, {}, {}, {}, vue295.ComponentOptionsMixin, vue295.ComponentOptionsMixin, {
17
17
  select: (event: TreeSelectEvent<string>) => any;
18
18
  toggle: (event: TreeToggleEvent<string>) => any;
19
- }, string, vue1263.PublicProps, Readonly<TreeVirtualizerItemProps> & Readonly<{
19
+ }, string, vue295.PublicProps, Readonly<TreeVirtualizerItemProps> & Readonly<{
20
20
  onSelect?: ((event: TreeSelectEvent<string>) => any) | undefined;
21
21
  onToggle?: ((event: TreeToggleEvent<string>) => any) | undefined;
22
- }>, {}, {}, {}, {}, string, vue1263.ComponentProvideOptions, false, {}, any>;
22
+ }>, {}, {}, {}, {}, string, vue295.ComponentProvideOptions, false, {}, any>;
23
23
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
24
24
  declare const _default: typeof __VLS_export;
25
25
  type __VLS_WithSlots<T, S> = T & {
@@ -1,12 +1,12 @@
1
1
  import { MaybeArray } from "../../types/common.js";
2
2
  import "../../types/index.js";
3
3
  import { FlattenedItem, TreeItemData, TreeVirtualizerRootProps } from "./types.js";
4
- import * as vue1259 from "vue";
4
+ import * as vue300 from "vue";
5
5
  import * as _tanstack_vue_virtual0 from "@tanstack/vue-virtual";
6
6
 
7
7
  //#region src/components/tree/tree-virtualizer-root.vue.d.ts
8
8
  declare const __VLS_export: <T extends TreeItemData, U extends MaybeArray<string> | undefined, M extends boolean>(__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<{
9
- props: vue1259.PublicProps & __VLS_PrettifyLocal<TreeVirtualizerRootProps<T, U, M> & {
9
+ props: vue300.PublicProps & __VLS_PrettifyLocal<TreeVirtualizerRootProps<T, U, M> & {
10
10
  "onUpdate:modelValue"?: ((value: string | ((U extends string ? false : M extends true ? true : false) extends infer T_1 ? T_1 extends (U extends string ? false : M extends true ? true : false) ? T_1 extends true ? string[] : string : never : never)) => any) | undefined;
11
11
  "onUpdate:expanded"?: ((value: string[]) => any) | undefined;
12
12
  }> & (typeof globalThis extends {
@@ -23,7 +23,7 @@ declare const __VLS_export: <T extends TreeItemData, U extends MaybeArray<string
23
23
  }) => any;
24
24
  };
25
25
  emit: ((evt: "update:modelValue", value: string | ((U extends string ? false : M extends true ? true : false) extends infer T_1 ? T_1 extends (U extends string ? false : M extends true ? true : false) ? T_1 extends true ? string[] : string : never : never)) => void) & ((evt: "update:expanded", value: string[]) => void);
26
- }>) => vue1259.VNode & {
26
+ }>) => vue300.VNode & {
27
27
  __ctx?: Awaited<typeof __VLS_setup>;
28
28
  };
29
29
  declare const _default: typeof __VLS_export;
@@ -1,10 +1,10 @@
1
1
  import { ClassValue, UiClass } from "../../types/common.js";
2
2
  import { TreeMenuUiSlot } from "./types.js";
3
3
  import "../../index.js";
4
- import * as vue1225 from "vue";
4
+ import * as vue259 from "vue";
5
5
 
6
6
  //#region src/components/tree-menu/context.d.ts
7
7
 
8
- declare const provideTreeMenuUi: (ui: vue1225.ComputedRef<Partial<UiClass<TreeMenuUiSlot>>>) => vue1225.ComputedRef<Partial<UiClass<TreeMenuUiSlot>>>, useTreeMenuUi: <S extends TreeMenuUiSlot | undefined = undefined>(slot?: S | undefined) => S extends TreeMenuUiSlot ? vue1225.ComputedRef<ClassValue> : vue1225.ComputedRef<Partial<UiClass<TreeMenuUiSlot>>>;
8
+ declare const provideTreeMenuUi: (ui: vue259.ComputedRef<Partial<UiClass<TreeMenuUiSlot>>>) => vue259.ComputedRef<Partial<UiClass<TreeMenuUiSlot>>>, useTreeMenuUi: <S extends TreeMenuUiSlot | undefined = undefined>(slot?: S | undefined) => S extends TreeMenuUiSlot ? vue259.ComputedRef<ClassValue> : vue259.ComputedRef<Partial<UiClass<TreeMenuUiSlot>>>;
9
9
  //#endregion
10
10
  export { provideTreeMenuUi, useTreeMenuRootContext };
@@ -1,16 +1,16 @@
1
1
  import { AsTag } from "../primitive/types.js";
2
2
  import "../primitive/index.js";
3
3
  import { TreeMenuButtonProps } from "./types.js";
4
- import * as vue1247 from "vue";
4
+ import * as vue281 from "vue";
5
5
 
6
6
  //#region src/components/tree-menu/tree-menu-button.vue.d.ts
7
7
  declare var __VLS_10: {};
8
8
  type __VLS_Slots = {} & {
9
9
  default?: (props: typeof __VLS_10) => any;
10
10
  };
11
- declare const __VLS_base: vue1247.DefineComponent<TreeMenuButtonProps, {}, {}, {}, {}, vue1247.ComponentOptionsMixin, vue1247.ComponentOptionsMixin, {}, string, vue1247.PublicProps, Readonly<TreeMenuButtonProps> & Readonly<{}>, {
12
- as: AsTag | vue1247.Component;
13
- }, {}, {}, {}, string, vue1247.ComponentProvideOptions, false, {}, any>;
11
+ declare const __VLS_base: vue281.DefineComponent<TreeMenuButtonProps, {}, {}, {}, {}, vue281.ComponentOptionsMixin, vue281.ComponentOptionsMixin, {}, string, vue281.PublicProps, Readonly<TreeMenuButtonProps> & Readonly<{}>, {
12
+ as: AsTag | vue281.Component;
13
+ }, {}, {}, {}, string, vue281.ComponentProvideOptions, false, {}, any>;
14
14
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
15
15
  declare const _default: typeof __VLS_export;
16
16
  type __VLS_WithSlots<T, S> = T & {
@@ -1,5 +1,5 @@
1
1
  import { TreeMenuCollapsibleProps } from "./types.js";
2
- import * as vue1220 from "vue";
2
+ import * as vue248 from "vue";
3
3
 
4
4
  //#region src/components/tree-menu/tree-menu-collapsible.vue.d.ts
5
5
  declare var __VLS_16: {}, __VLS_18: {}, __VLS_26: {};
@@ -10,7 +10,7 @@ type __VLS_Slots = {} & {
10
10
  } & {
11
11
  default?: (props: typeof __VLS_26) => any;
12
12
  };
13
- declare const __VLS_base: vue1220.DefineComponent<TreeMenuCollapsibleProps, {}, {}, {}, {}, vue1220.ComponentOptionsMixin, vue1220.ComponentOptionsMixin, {}, string, vue1220.PublicProps, Readonly<TreeMenuCollapsibleProps> & Readonly<{}>, {}, {}, {}, {}, string, vue1220.ComponentProvideOptions, false, {}, any>;
13
+ declare const __VLS_base: vue248.DefineComponent<TreeMenuCollapsibleProps, {}, {}, {}, {}, vue248.ComponentOptionsMixin, vue248.ComponentOptionsMixin, {}, string, vue248.PublicProps, Readonly<TreeMenuCollapsibleProps> & Readonly<{}>, {}, {}, {}, {}, string, vue248.ComponentProvideOptions, false, {}, any>;
14
14
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
15
15
  declare const _default: typeof __VLS_export;
16
16
  type __VLS_WithSlots<T, S> = T & {
@@ -1,12 +1,12 @@
1
1
  import { TreeMenuGroupLabelProps } from "./types.js";
2
- import * as vue1209 from "vue";
2
+ import * as vue221 from "vue";
3
3
 
4
4
  //#region src/components/tree-menu/tree-menu-group-label.vue.d.ts
5
5
  declare var __VLS_1: {};
6
6
  type __VLS_Slots = {} & {
7
7
  default?: (props: typeof __VLS_1) => any;
8
8
  };
9
- declare const __VLS_base: vue1209.DefineComponent<TreeMenuGroupLabelProps, {}, {}, {}, {}, vue1209.ComponentOptionsMixin, vue1209.ComponentOptionsMixin, {}, string, vue1209.PublicProps, Readonly<TreeMenuGroupLabelProps> & Readonly<{}>, {}, {}, {}, {}, string, vue1209.ComponentProvideOptions, false, {}, any>;
9
+ declare const __VLS_base: vue221.DefineComponent<TreeMenuGroupLabelProps, {}, {}, {}, {}, vue221.ComponentOptionsMixin, vue221.ComponentOptionsMixin, {}, string, vue221.PublicProps, Readonly<TreeMenuGroupLabelProps> & Readonly<{}>, {}, {}, {}, {}, string, vue221.ComponentProvideOptions, false, {}, any>;
10
10
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
11
11
  declare const _default: typeof __VLS_export;
12
12
  type __VLS_WithSlots<T, S> = T & {
@@ -1,12 +1,12 @@
1
1
  import { TreeMenuGroupRootProps } from "./types.js";
2
- import * as vue1204 from "vue";
2
+ import * as vue231 from "vue";
3
3
 
4
4
  //#region src/components/tree-menu/tree-menu-group-root.vue.d.ts
5
5
  declare var __VLS_1: {};
6
6
  type __VLS_Slots = {} & {
7
7
  default?: (props: typeof __VLS_1) => any;
8
8
  };
9
- declare const __VLS_base: vue1204.DefineComponent<TreeMenuGroupRootProps, {}, {}, {}, {}, vue1204.ComponentOptionsMixin, vue1204.ComponentOptionsMixin, {}, string, vue1204.PublicProps, Readonly<TreeMenuGroupRootProps> & Readonly<{}>, {}, {}, {}, {}, string, vue1204.ComponentProvideOptions, false, {}, any>;
9
+ declare const __VLS_base: vue231.DefineComponent<TreeMenuGroupRootProps, {}, {}, {}, {}, vue231.ComponentOptionsMixin, vue231.ComponentOptionsMixin, {}, string, vue231.PublicProps, Readonly<TreeMenuGroupRootProps> & Readonly<{}>, {}, {}, {}, {}, string, vue231.ComponentProvideOptions, false, {}, any>;
10
10
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
11
11
  declare const _default: typeof __VLS_export;
12
12
  type __VLS_WithSlots<T, S> = T & {
@@ -1,16 +1,16 @@
1
1
  import { AsTag } from "../primitive/types.js";
2
2
  import "../primitive/index.js";
3
3
  import { TreeMenuGroupProps } from "./types.js";
4
- import * as vue1193 from "vue";
4
+ import * as vue236 from "vue";
5
5
 
6
6
  //#region src/components/tree-menu/tree-menu-group.vue.d.ts
7
7
  declare var __VLS_8: {};
8
8
  type __VLS_Slots = {} & {
9
9
  default?: (props: typeof __VLS_8) => any;
10
10
  };
11
- declare const __VLS_base: vue1193.DefineComponent<TreeMenuGroupProps, {}, {}, {}, {}, vue1193.ComponentOptionsMixin, vue1193.ComponentOptionsMixin, {}, string, vue1193.PublicProps, Readonly<TreeMenuGroupProps> & Readonly<{}>, {
12
- as: AsTag | vue1193.Component;
13
- }, {}, {}, {}, string, vue1193.ComponentProvideOptions, false, {}, any>;
11
+ declare const __VLS_base: vue236.DefineComponent<TreeMenuGroupProps, {}, {}, {}, {}, vue236.ComponentOptionsMixin, vue236.ComponentOptionsMixin, {}, string, vue236.PublicProps, Readonly<TreeMenuGroupProps> & Readonly<{}>, {
12
+ as: AsTag | vue236.Component;
13
+ }, {}, {}, {}, string, vue236.ComponentProvideOptions, false, {}, any>;
14
14
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
15
15
  declare const _default: typeof __VLS_export;
16
16
  type __VLS_WithSlots<T, S> = T & {
@@ -1,16 +1,16 @@
1
1
  import { AsTag } from "../primitive/types.js";
2
2
  import "../primitive/index.js";
3
3
  import { TreeMenuItemProps } from "./types.js";
4
- import * as vue1241 from "vue";
4
+ import * as vue275 from "vue";
5
5
 
6
6
  //#region src/components/tree-menu/tree-menu-item.vue.d.ts
7
7
  declare var __VLS_8: {};
8
8
  type __VLS_Slots = {} & {
9
9
  default?: (props: typeof __VLS_8) => any;
10
10
  };
11
- declare const __VLS_base: vue1241.DefineComponent<TreeMenuItemProps, {}, {}, {}, {}, vue1241.ComponentOptionsMixin, vue1241.ComponentOptionsMixin, {}, string, vue1241.PublicProps, Readonly<TreeMenuItemProps> & Readonly<{}>, {
12
- as: AsTag | vue1241.Component;
13
- }, {}, {}, {}, string, vue1241.ComponentProvideOptions, false, {}, any>;
11
+ declare const __VLS_base: vue275.DefineComponent<TreeMenuItemProps, {}, {}, {}, {}, vue275.ComponentOptionsMixin, vue275.ComponentOptionsMixin, {}, string, vue275.PublicProps, Readonly<TreeMenuItemProps> & Readonly<{}>, {
12
+ as: AsTag | vue275.Component;
13
+ }, {}, {}, {}, string, vue275.ComponentProvideOptions, false, {}, any>;
14
14
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
15
15
  declare const _default: typeof __VLS_export;
16
16
  type __VLS_WithSlots<T, S> = T & {
@@ -1,16 +1,16 @@
1
1
  import { TreeMenuRootProps } from "./types.js";
2
- import * as vue1199 from "vue";
2
+ import * as vue226 from "vue";
3
3
 
4
4
  //#region src/components/tree-menu/tree-menu-root.vue.d.ts
5
5
  declare var __VLS_1: {};
6
6
  type __VLS_Slots = {} & {
7
7
  default?: (props: typeof __VLS_1) => any;
8
8
  };
9
- declare const __VLS_base: vue1199.DefineComponent<TreeMenuRootProps, {}, {}, {}, {}, vue1199.ComponentOptionsMixin, vue1199.ComponentOptionsMixin, {
9
+ declare const __VLS_base: vue226.DefineComponent<TreeMenuRootProps, {}, {}, {}, {}, vue226.ComponentOptionsMixin, vue226.ComponentOptionsMixin, {
10
10
  "update:modelValue": (value: string) => any;
11
11
  "update:expanded": (value: string[]) => any;
12
12
  "update:collapsed": (value: boolean) => any;
13
- }, string, vue1199.PublicProps, Readonly<TreeMenuRootProps> & Readonly<{
13
+ }, string, vue226.PublicProps, Readonly<TreeMenuRootProps> & Readonly<{
14
14
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
15
15
  "onUpdate:expanded"?: ((value: string[]) => any) | undefined;
16
16
  "onUpdate:collapsed"?: ((value: boolean) => any) | undefined;
@@ -19,7 +19,7 @@ declare const __VLS_base: vue1199.DefineComponent<TreeMenuRootProps, {}, {}, {},
19
19
  defaultExpanded: string[];
20
20
  collapsed: boolean;
21
21
  defaultCollapsed: boolean;
22
- }, {}, {}, {}, string, vue1199.ComponentProvideOptions, false, {}, any>;
22
+ }, {}, {}, {}, string, vue226.ComponentProvideOptions, false, {}, any>;
23
23
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
24
24
  declare const _default: typeof __VLS_export;
25
25
  type __VLS_WithSlots<T, S> = T & {
@@ -1,16 +1,16 @@
1
1
  import { AsTag } from "../primitive/types.js";
2
2
  import "../primitive/index.js";
3
3
  import { TreeMenuSubProps } from "./types.js";
4
- import * as vue1214 from "vue";
4
+ import * as vue242 from "vue";
5
5
 
6
6
  //#region src/components/tree-menu/tree-menu-sub.vue.d.ts
7
7
  declare var __VLS_8: {};
8
8
  type __VLS_Slots = {} & {
9
9
  default?: (props: typeof __VLS_8) => any;
10
10
  };
11
- declare const __VLS_base: vue1214.DefineComponent<TreeMenuSubProps, {}, {}, {}, {}, vue1214.ComponentOptionsMixin, vue1214.ComponentOptionsMixin, {}, string, vue1214.PublicProps, Readonly<TreeMenuSubProps> & Readonly<{}>, {
12
- as: AsTag | vue1214.Component;
13
- }, {}, {}, {}, string, vue1214.ComponentProvideOptions, false, {}, any>;
11
+ declare const __VLS_base: vue242.DefineComponent<TreeMenuSubProps, {}, {}, {}, {}, vue242.ComponentOptionsMixin, vue242.ComponentOptionsMixin, {}, string, vue242.PublicProps, Readonly<TreeMenuSubProps> & Readonly<{}>, {
12
+ as: AsTag | vue242.Component;
13
+ }, {}, {}, {}, string, vue242.ComponentProvideOptions, false, {}, any>;
14
14
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
15
15
  declare const _default: typeof __VLS_export;
16
16
  type __VLS_WithSlots<T, S> = T & {
@@ -1,5 +1,5 @@
1
1
  import { VirtualizerContentProps } from "./types.js";
2
- import * as vue61 from "vue";
2
+ import * as vue209 from "vue";
3
3
 
4
4
  //#region src/components/virtualizer/virtualizer-content.vue.d.ts
5
5
  declare var __VLS_1: {}, __VLS_3: {};
@@ -8,7 +8,7 @@ type __VLS_Slots = {} & {
8
8
  } & {
9
9
  default?: (props: typeof __VLS_3) => any;
10
10
  };
11
- declare const __VLS_base: vue61.DefineComponent<VirtualizerContentProps, {}, {}, {}, {}, vue61.ComponentOptionsMixin, vue61.ComponentOptionsMixin, {}, string, vue61.PublicProps, Readonly<VirtualizerContentProps> & Readonly<{}>, {}, {}, {}, {}, string, vue61.ComponentProvideOptions, false, {}, any>;
11
+ declare const __VLS_base: vue209.DefineComponent<VirtualizerContentProps, {}, {}, {}, {}, vue209.ComponentOptionsMixin, vue209.ComponentOptionsMixin, {}, string, vue209.PublicProps, Readonly<VirtualizerContentProps> & Readonly<{}>, {}, {}, {}, {}, string, vue209.ComponentProvideOptions, false, {}, any>;
12
12
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
13
13
  declare const _default: typeof __VLS_export;
14
14
  type __VLS_WithSlots<T, S> = T & {
@@ -1,12 +1,12 @@
1
1
  import { VirtualizerItemProps } from "./types.js";
2
- import * as vue56 from "vue";
2
+ import * as vue216 from "vue";
3
3
 
4
4
  //#region src/components/virtualizer/virtualizer-item.vue.d.ts
5
5
  declare var __VLS_8: {};
6
6
  type __VLS_Slots = {} & {
7
7
  default?: (props: typeof __VLS_8) => any;
8
8
  };
9
- declare const __VLS_base: vue56.DefineComponent<VirtualizerItemProps, {}, {}, {}, {}, vue56.ComponentOptionsMixin, vue56.ComponentOptionsMixin, {}, string, vue56.PublicProps, Readonly<VirtualizerItemProps> & Readonly<{}>, {}, {}, {}, {}, string, vue56.ComponentProvideOptions, false, {}, any>;
9
+ declare const __VLS_base: vue216.DefineComponent<VirtualizerItemProps, {}, {}, {}, {}, vue216.ComponentOptionsMixin, vue216.ComponentOptionsMixin, {}, string, vue216.PublicProps, Readonly<VirtualizerItemProps> & Readonly<{}>, {}, {}, {}, {}, string, vue216.ComponentProvideOptions, false, {}, any>;
10
10
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
11
11
  declare const _default: typeof __VLS_export;
12
12
  type __VLS_WithSlots<T, S> = T & {
@@ -1,10 +1,10 @@
1
1
  import { VirtualizerRootProps } from "./types.js";
2
- import * as vue54 from "vue";
2
+ import * as vue214 from "vue";
3
3
  import * as _tanstack_vue_virtual0 from "@tanstack/vue-virtual";
4
4
 
5
5
  //#region src/components/virtualizer/virtualizer-root.vue.d.ts
6
6
  declare const __VLS_export: <T extends Record<string, any>>(__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<{
7
- props: vue54.PublicProps & __VLS_PrettifyLocal<VirtualizerRootProps<T>> & (typeof globalThis extends {
7
+ props: vue214.PublicProps & __VLS_PrettifyLocal<VirtualizerRootProps<T>> & (typeof globalThis extends {
8
8
  __VLS_PROPS_FALLBACK: infer P;
9
9
  } ? P : {});
10
10
  expose: (exposed: {}) => void;
@@ -16,7 +16,7 @@ declare const __VLS_export: <T extends Record<string, any>>(__VLS_props: NonNull
16
16
  }) => any;
17
17
  };
18
18
  emit: {};
19
- }>) => vue54.VNode & {
19
+ }>) => vue214.VNode & {
20
20
  __ctx?: Awaited<typeof __VLS_setup>;
21
21
  };
22
22
  declare const _default: typeof __VLS_export;
@@ -1,11 +1,11 @@
1
1
  import { VisuallyHiddenFeature, VisuallyHiddenInputProps } from "./types.js";
2
- import * as vue465 from "vue";
2
+ import * as vue599 from "vue";
3
3
 
4
4
  //#region src/components/visually-hidden/visually-hidden-input.vue.d.ts
5
- declare const __VLS_export: vue465.DefineComponent<VisuallyHiddenInputProps, {}, {}, {}, {}, vue465.ComponentOptionsMixin, vue465.ComponentOptionsMixin, {}, string, vue465.PublicProps, Readonly<VisuallyHiddenInputProps> & Readonly<{}>, {
5
+ declare const __VLS_export: vue599.DefineComponent<VisuallyHiddenInputProps, {}, {}, {}, {}, vue599.ComponentOptionsMixin, vue599.ComponentOptionsMixin, {}, string, vue599.PublicProps, Readonly<VisuallyHiddenInputProps> & Readonly<{}>, {
6
6
  checked: boolean;
7
7
  feature: VisuallyHiddenFeature;
8
- }, {}, {}, {}, string, vue465.ComponentProvideOptions, false, {}, any>;
8
+ }, {}, {}, {}, string, vue599.ComponentProvideOptions, false, {}, any>;
9
9
  declare const _default: typeof __VLS_export;
10
10
  //#endregion
11
11
  export { _default };
@@ -1,17 +1,17 @@
1
1
  import { AsTag } from "../primitive/types.js";
2
2
  import "../primitive/index.js";
3
3
  import { VisuallyHiddenFeature, VisuallyHiddenProps } from "./types.js";
4
- import * as vue470 from "vue";
4
+ import * as vue593 from "vue";
5
5
 
6
6
  //#region src/components/visually-hidden/visually-hidden.vue.d.ts
7
7
  declare var __VLS_8: {};
8
8
  type __VLS_Slots = {} & {
9
9
  default?: (props: typeof __VLS_8) => any;
10
10
  };
11
- declare const __VLS_base: vue470.DefineComponent<VisuallyHiddenProps, {}, {}, {}, {}, vue470.ComponentOptionsMixin, vue470.ComponentOptionsMixin, {}, string, vue470.PublicProps, Readonly<VisuallyHiddenProps> & Readonly<{}>, {
12
- as: AsTag | vue470.Component;
11
+ declare const __VLS_base: vue593.DefineComponent<VisuallyHiddenProps, {}, {}, {}, {}, vue593.ComponentOptionsMixin, vue593.ComponentOptionsMixin, {}, string, vue593.PublicProps, Readonly<VisuallyHiddenProps> & Readonly<{}>, {
12
+ as: AsTag | vue593.Component;
13
13
  feature: VisuallyHiddenFeature;
14
- }, {}, {}, {}, string, vue470.ComponentProvideOptions, false, {}, any>;
14
+ }, {}, {}, {}, string, vue593.ComponentProvideOptions, false, {}, any>;
15
15
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
16
16
  declare const _default: typeof __VLS_export;
17
17
  type __VLS_WithSlots<T, S> = T & {
@@ -1 +1 @@
1
- import{COLLECTION_ITEM_ATTRIBUTE as e}from"../constants/attr.js";import{toPascalCase as t}from"../shared/string.js";import{getCollectionItemElements as n,isElementHasAttribute as r}from"../shared/dom.js";import{getElFromTemplateRef as i}from"../shared/vue.js";import{useContext as a}from"./use-context.js";import{onBeforeUnmount as o,onWatcherCleanup as s,ref as c,shallowRef as l,toValue as u,watchPostEffect as d}from"vue";function f(f){let[p,m]=a(t(`${f}Collection`),()=>{let e=l(),t=t=>{e.value=t},i=c(new Map),a=(t=!0)=>{if(!e.value)return[];let a=n(e.value),o=[];for(let e of a){let n=i.value.get(e);n&&(!t||!r(e,`disabled`))&&o.push(n)}return o};return o(()=>{i.value.clear()}),{containerElement:e,onContainerElementChange:t,itemRegistry:i,getOrderedItems:a,getOrderedElements:(e=!0)=>a(e).map(e=>e.element)}});return{provideCollectionContext:p,useCollectionContext:m,useCollectionItem:(n={})=>{let{itemRegistry:r}=m(t(`${f}Item`)),a=l(),o=e=>{a.value&&a.value!==e&&r.value.delete(a.value),a.value=e};return d(()=>{a.value&&r.value.set(a.value,{element:a.value,data:u(n)}),s(()=>{a.value&&=(r.value.delete(a.value),void 0)})}),{itemElement:a,onItemElementChange:o,setItemElement:e=>{let t=i(e);t&&o(t)},itemProps:{[e]:``}}}}}export{f as useCollection};
1
+ import{COLLECTION_ITEM_ATTRIBUTE as e}from"../constants/attr.js";import{toPascalCase as t}from"../shared/string.js";import{getCollectionItemElements as n,isElementHasAttribute as r}from"../shared/dom.js";import{getElFromTemplateRef as i}from"../shared/vue.js";import{useContext as a}from"./use-context.js";import{onBeforeUnmount as o,onWatcherCleanup as s,ref as c,shallowRef as l,toValue as u,watchPostEffect as d}from"vue";function f(f){let[p,m]=a(t(`${f}Collection`),()=>{let e=l(),t=t=>{e.value=t},i=c(new Map),a=(t=!0)=>{if(!e.value)return[];let a=n(e.value),o=[];for(let e of a){let n=i.value.get(e);n&&(!t||!r(e,`disabled`))&&o.push(n)}return o};return o(()=>{i.value.clear()}),{containerElement:e,onContainerElementChange:t,itemRegistry:i,getOrderedItems:a,getOrderedElements:(e=!0)=>a(e).map(e=>e.element)}});return{provideCollectionContext:p,useCollectionContext:m,useCollectionItem:(n={})=>{let{itemRegistry:r}=m(t(`${f}Item`)),a=l(),o=e=>{a.value&&a.value!==e&&r.value.delete(a.value),a.value=e};return d(()=>{a.value&&r.value.set(a.value,{element:a.value,data:u(n)}),s(()=>{a.value&&(r.value.delete(a.value),a.value=void 0)})}),{itemElement:a,onItemElementChange:o,setItemElement:e=>{let t=i(e);t&&o(t)},itemProps:{[e]:``}}}}}export{f as useCollection};
@@ -1 +1 @@
1
- import{GRACE_AREA_TRIGGER_ATTR as e}from"../constants/attr.js";import{isClient as t}from"../shared/env.js";import{getExitSideFromRect as n,getHull as r,getPaddedExitPoints as i,getPointsFromRect as a,isPointInPolygon as o}from"../shared/geometry.js";import{onWatcherCleanup as s,ref as c,watchEffect as l}from"vue";import{refAutoReset as u}from"@vueuse/core";function d(n){let{triggerElement:r,areaElement:i,onPointerInTransitChange:a,onPointerExit:d,disabled:p,subAreaAttribute:m,onSubAreaEnter:h,onSubAreaExit:g}=n,_=u(!1,300),v=c(),y=c(),b=()=>{v.value=void 0,y.value=void 0,a?.(!1)};l(()=>{if(!t||p?.value===!0)return;let e=r.value,n=i.value;if(!e||!n)return;function a(e,t){let{currentTarget:n,clientX:r,clientY:i}=e;n instanceof HTMLElement&&(v.value=f({x:r,y:i},n,t),_.value=!0)}function o(t){if(!m)return;let n=t.target.closest(`[${m}]`);if(n&&i.value?.contains(n)){if(y.value!==n){y.value&&g?.(y.value),y.value=n,h?.(n);let{clientX:r,clientY:i}=t;v.value=f({x:r,y:i},e,n),_.value=!0}}else y.value&&=(g?.(y.value),void 0)}let c=e=>a(e,n),l=t=>a(t,e),u=e=>o(e);e.addEventListener(`pointerleave`,c),n.addEventListener(`pointerleave`,l),m&&n.addEventListener(`pointermove`,u),s(()=>{e.removeEventListener(`pointerleave`,c),n.removeEventListener(`pointerleave`,l),m&&n.removeEventListener(`pointermove`,u)})}),l(()=>{if(!t||p?.value===!0||!v.value)return;let n=t=>{if(!v.value)return;let n=t.target;if(!(n instanceof Element))return;let{clientX:a,clientY:s}=t,c=r.value?.contains(n)||i.value?.contains(n),l=m&&n.closest(`[${m}]`)&&i.value?.contains(n);if(c||l){c&&b();return}let u=!o({x:a,y:s},v.value),f=!!n.closest(`[${e}]`),p=!r.value?.contains(n)&&!i.value?.contains(n)&&!(m&&n.closest(`[${m}]`));(u&&p||f)&&(b(),d())};r.value?.ownerDocument.addEventListener(`pointermove`,n),s(()=>{r.value?.ownerDocument.removeEventListener(`pointermove`,n)})}),l(()=>{let e=_.value;a?.(e)})}function f(e,t,o){let s=i(e,n(e,t.getBoundingClientRect())),c=a(o.getBoundingClientRect());return r([...s,...c])}export{d as useGraceArea};
1
+ import{GRACE_AREA_TRIGGER_ATTR as e}from"../constants/attr.js";import{isClient as t}from"../shared/env.js";import{getExitSideFromRect as n,getHull as r,getPaddedExitPoints as i,getPointsFromRect as a,isPointInPolygon as o}from"../shared/geometry.js";import{onWatcherCleanup as s,ref as c,watchEffect as l}from"vue";import{refAutoReset as u}from"@vueuse/core";function d(n){let{triggerElement:r,areaElement:i,onPointerInTransitChange:a,onPointerExit:d,disabled:p,subAreaAttribute:m,onSubAreaEnter:h,onSubAreaExit:g}=n,_=u(!1,300),v=c(),y=c(),b=()=>{v.value=void 0,y.value=void 0,a?.(!1)};l(()=>{if(!t||p?.value===!0)return;let e=r.value,n=i.value;if(!e||!n)return;function a(e,t){let{currentTarget:n,clientX:r,clientY:i}=e;n instanceof HTMLElement&&(v.value=f({x:r,y:i},n,t),_.value=!0)}function o(t){if(!m)return;let n=t.target.closest(`[${m}]`);if(n&&i.value?.contains(n)){if(y.value!==n){y.value&&g?.(y.value),y.value=n,h?.(n);let{clientX:r,clientY:i}=t;v.value=f({x:r,y:i},e,n),_.value=!0}}else y.value&&(g?.(y.value),y.value=void 0)}let c=e=>a(e,n),l=t=>a(t,e),u=e=>o(e);e.addEventListener(`pointerleave`,c),n.addEventListener(`pointerleave`,l),m&&n.addEventListener(`pointermove`,u),s(()=>{e.removeEventListener(`pointerleave`,c),n.removeEventListener(`pointerleave`,l),m&&n.removeEventListener(`pointermove`,u)})}),l(()=>{if(!t||p?.value===!0||!v.value)return;let n=t=>{if(!v.value)return;let n=t.target;if(!(n instanceof Element))return;let{clientX:a,clientY:s}=t,c=r.value?.contains(n)||i.value?.contains(n),l=m&&n.closest(`[${m}]`)&&i.value?.contains(n);if(c||l){c&&b();return}let u=!o({x:a,y:s},v.value),f=!!n.closest(`[${e}]`),p=!r.value?.contains(n)&&!i.value?.contains(n)&&!(m&&n.closest(`[${m}]`));(u&&p||f)&&(b(),d())};r.value?.ownerDocument.addEventListener(`pointermove`,n),s(()=>{r.value?.ownerDocument.removeEventListener(`pointermove`,n)})}),l(()=>{let e=_.value;a?.(e)})}function f(e,t,o){let s=i(e,n(e,t.getBoundingClientRect())),c=a(o.getBoundingClientRect());return r([...s,...c])}export{d as useGraceArea};
@@ -1 +1 @@
1
- import{isClient as e}from"../shared/env.js";import{onWatcherCleanup as t,shallowRef as n,toValue as r,watchEffect as i}from"vue";function a(a){let{src:o,referrerpolicy:s,crossorigin:c}=a,l=n(`idle`);return e&&i(()=>{let e=r(o),n=r(s),i=r(c);if(!e){l.value=`error`;return}let a=!0,u=new window.Image,d=e=>()=>{a&&(l.value=e)};l.value=`loading`,n&&(u.referrerPolicy=n),i!==void 0&&(u.crossOrigin=i),u.onload=d(`loaded`),u.onerror=d(`error`),u.src=e,t(()=>{a=!1,u.onload=null,u.onerror=null})}),l}export{a as useImageLoadingStatus};
1
+ import{isClient as e}from"../shared/env.js";import{onWatcherCleanup as t,shallowRef as n,toValue as r,watchEffect as i}from"vue";function a(a){let{src:o,referrerpolicy:s,crossorigin:c}=a,l=n(`idle`);return e&&i(()=>{let e=r(o),n=r(s),i=r(c);if(!e){l.value=`error`;return}let a=!0,u=new window.Image,d=e=>()=>{a&&(l.value=e)};l.value=`loading`,n&&(u.referrerPolicy=n),i!==void 0&&(u.crossOrigin=i);let f=d(`loaded`),p=d(`error`);u.addEventListener(`load`,f),u.addEventListener(`error`,p),u.src=e,t(()=>{a=!1,u.removeEventListener(`load`,f),u.removeEventListener(`error`,p)})}),l}export{a as useImageLoadingStatus};
@@ -1 +1 @@
1
- import{isClient as e}from"../shared/env.js";import{computed as t,onWatcherCleanup as n,shallowRef as r,watchPostEffect as i}from"vue";let a=0;const o=r(!1);let s=!1;function c(){o.value=!1}function l(){o.value=!0}function u(){s||=(document.addEventListener(`keydown`,l,{capture:!0,passive:!0}),document.addEventListener(`pointerdown`,c,{capture:!0,passive:!0}),document.addEventListener(`pointermove`,c,{capture:!0,passive:!0}),!0)}function d(){s&&=(document.removeEventListener(`keydown`,l,{capture:!0}),document.removeEventListener(`pointerdown`,c,{capture:!0}),document.removeEventListener(`pointermove`,c,{capture:!0}),!1)}function f(){return i(()=>{e&&(a++,a===1&&u(),n(()=>{a=Math.max(0,a-1),a===0&&(d(),o.value=!1)}))}),t(()=>o.value)}export{f as useIsUsingKeyboard};
1
+ import{isClient as e}from"../shared/env.js";import{computed as t,onWatcherCleanup as n,shallowRef as r,watchPostEffect as i}from"vue";let a=0;const o=r(!1);let s=!1;function c(){o.value=!1}function l(){o.value=!0}function u(){s||(document.addEventListener(`keydown`,l,{capture:!0,passive:!0}),document.addEventListener(`pointerdown`,c,{capture:!0,passive:!0}),document.addEventListener(`pointermove`,c,{capture:!0,passive:!0}),s=!0)}function d(){s&&(document.removeEventListener(`keydown`,l,{capture:!0}),document.removeEventListener(`pointerdown`,c,{capture:!0}),document.removeEventListener(`pointermove`,c,{capture:!0}),s=!1)}function f(){return i(()=>{e&&(a++,a===1&&u(),n(()=>{a=Math.max(0,a-1),a===0&&(d(),o.value=!1)}))}),t(()=>o.value)}export{f as useIsUsingKeyboard};
@@ -1,11 +1,11 @@
1
1
  import { KbdKey } from "../types/common.js";
2
2
  import "../types/index.js";
3
- import * as vue9 from "vue";
3
+ import * as vue10 from "vue";
4
4
 
5
5
  //#region src/composables/use-kbd.d.ts
6
6
  declare const kbdMap: Record<KbdKey, string>;
7
7
  declare function useKbdKey(): {
8
- macOS: vue9.ComputedRef<"" | RegExpMatchArray | null>;
8
+ macOS: vue10.ComputedRef<"" | RegExpMatchArray | null>;
9
9
  getKeyboardKey: (value?: KbdKey | (string & {})) => string | undefined;
10
10
  };
11
11
  declare const useKbd: typeof useKbdKey;
@@ -1,7 +1,7 @@
1
- import * as vue10 from "vue";
1
+ import * as vue9 from "vue";
2
2
  import { MaybeRefOrGetter, Ref } from "vue";
3
3
 
4
4
  //#region src/composables/use-presence.d.ts
5
- declare function usePresence(elRef: Ref<HTMLElement | null | undefined>, present: MaybeRefOrGetter<boolean | undefined>, onChange?: (value: boolean) => void): vue10.ComputedRef<boolean>;
5
+ declare function usePresence(elRef: Ref<HTMLElement | null | undefined>, present: MaybeRefOrGetter<boolean | undefined>, onChange?: (value: boolean) => void): vue9.ComputedRef<boolean>;
6
6
  //#endregion
7
7
  export { usePresence };
@@ -1,8 +1,8 @@
1
- import * as vue11 from "vue";
1
+ import * as vue14 from "vue";
2
2
  import { MaybeRefOrGetter } from "vue";
3
3
 
4
4
  //#region src/composables/use-props.d.ts
5
- declare function usePickProps<T extends object, K extends keyof T>(props: T, keys: K[], ...extraProps: MaybeRefOrGetter<object>[]): vue11.ComputedRef<Pick<T, K>>;
6
- declare function useOmitProps<T extends object, K extends keyof T>(props: T, keys: K[], ...extraProps: MaybeRefOrGetter<object>[]): vue11.ComputedRef<Omit<T, K>>;
5
+ declare function usePickProps<T extends object, K extends keyof T>(props: T, keys: K[], ...extraProps: MaybeRefOrGetter<object>[]): vue14.ComputedRef<Pick<T, K>>;
6
+ declare function useOmitProps<T extends object, K extends keyof T>(props: T, keys: K[], ...extraProps: MaybeRefOrGetter<object>[]): vue14.ComputedRef<Omit<T, K>>;
7
7
  //#endregion
8
8
  export { useOmitProps, usePickProps };
@@ -1,13 +1,13 @@
1
1
  import { DefinedValue, SelectionProps } from "../types/common.js";
2
2
  import "../types/index.js";
3
- import * as vue13 from "vue";
3
+ import * as vue11 from "vue";
4
4
 
5
5
  //#region src/composables/use-selection.d.ts
6
6
  declare function useSelection<M extends boolean = false, N extends DefinedValue = string>(props: SelectionProps<M, N>, onUpdateModelValue: (value: NonNullable<SelectionProps<M, N>['modelValue']>) => void): {
7
- modelValue: vue13.ShallowRef<(M extends true ? N[] : N) | undefined>;
7
+ modelValue: vue11.ShallowRef<(M extends true ? N[] : N) | undefined>;
8
8
  onModelValueChange: (value: N) => void;
9
- isMultiple: vue13.ComputedRef<boolean>;
10
- isEmptyModelValue: vue13.ComputedRef<boolean>;
9
+ isMultiple: vue11.ComputedRef<boolean>;
10
+ isEmptyModelValue: vue11.ComputedRef<boolean>;
11
11
  };
12
12
  //#endregion
13
13
  export { useSelection };
@@ -1 +1 @@
1
- import{MAP_KEY_TO_FOCUS_INTENT as e}from"../constants/common.js";import{getActiveElement as t}from"./dom.js";function n(e,{select:n=!1}={}){let r=t();for(let i of e)if(u(i,{select:n}),t()!==r)return}function r(e,n=!1){let r=t();return e.some(e=>e===r?!0:(e.focus({preventScroll:n}),t()!==r))}function i(e){return e.forEach(e=>{e.dataset.tabindex=e.getAttribute(`tabindex`)||``,e.setAttribute(`tabindex`,`-1`)}),()=>{e.forEach(e=>{let t=e.dataset.tabindex;e.setAttribute(`tabindex`,t)})}}function a(e){let t=o(e);return[s(t,e),s(t.reverse(),e)]}function o(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(e){let t=e.tagName===`INPUT`&&e.type===`hidden`;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function s(e,t){return e.find(e=>!c(e,{upTo:t}))}function c(e,{upTo:t}){if(getComputedStyle(e).visibility===`hidden`)return!0;let n=e;for(;n;){if(t!==void 0&&n===t)return!1;if(getComputedStyle(n).display===`none`)return!0;n=n.parentElement}return!1}function l(e){return e instanceof HTMLInputElement&&`select`in e}function u(e,{select:n=!1}={}){if(!e||!e.focus)return;let r=t();e.focus({preventScroll:!0}),n&&e!==r&&l(e)&&e.select()}function d(e,t){return t===`rtl`?e===`ArrowLeft`?`ArrowRight`:e===`ArrowRight`?`ArrowLeft`:e:e}function f(t,n,r){let i=d(t.key,r);if(!(n===`vertical`&&[`ArrowLeft`,`ArrowRight`].includes(i))&&!(n===`horizontal`&&[`ArrowUp`,`ArrowDown`].includes(i)))return e[i]}export{u as focus,n as focusFirstAndSelect,d as getDirectionAwareKey,f as getFocusIntent,o as getTabbableCandidates,a as getTabbableEdges,i as removeFromTabOrder,r as tryFocusFirst};
1
+ import{MAP_KEY_TO_FOCUS_INTENT as e}from"../constants/common.js";import{getActiveElement as t}from"./dom.js";function n(e,{select:n=!1}={}){let r=t();for(let i of e)if(u(i,{select:n}),t()!==r)return}function r(e,n=!1){let r=t();return e.some(e=>e===r?!0:(e.focus({preventScroll:n}),t()!==r))}function i(e){return e.forEach(e=>{e.dataset.tabindex=e.getAttribute(`tabindex`)||``,e.setAttribute(`tabindex`,`-1`)}),()=>{e.forEach(e=>{let t=e.dataset.tabindex;e.setAttribute(`tabindex`,t)})}}function a(e){let t=o(e);return[s(t,e),s(t.slice().reverse(),e)]}function o(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(e){let t=e.tagName===`INPUT`&&e.type===`hidden`;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function s(e,t){return e.find(e=>!c(e,{upTo:t}))}function c(e,{upTo:t}){if(getComputedStyle(e).visibility===`hidden`)return!0;let n=e;for(;n;){if(t!==void 0&&n===t)return!1;if(getComputedStyle(n).display===`none`)return!0;n=n.parentElement}return!1}function l(e){return e instanceof HTMLInputElement&&`select`in e}function u(e,{select:n=!1}={}){if(!e||!e.focus)return;let r=t();e.focus({preventScroll:!0}),n&&e!==r&&l(e)&&e.select()}function d(e,t){return t===`rtl`?e===`ArrowLeft`?`ArrowRight`:e===`ArrowRight`?`ArrowLeft`:e:e}function f(t,n,r){let i=d(t.key,r);if(!(n===`vertical`&&[`ArrowLeft`,`ArrowRight`].includes(i))&&!(n===`horizontal`&&[`ArrowUp`,`ArrowDown`].includes(i)))return e[i]}export{u as focus,n as focusFirstAndSelect,d as getDirectionAwareKey,f as getFocusIntent,o as getTabbableCandidates,a as getTabbableEdges,i as removeFromTabOrder,r as tryFocusFirst};
@@ -10,4 +10,5 @@ import { getElFromTemplateRef, getLifeCycleTarget, getRawChildren, isFormControl
10
10
  import { isBrowser, isClient, isIOS, refreshIOSDetection } from "./env.js";
11
11
  import { handleAndDispatchCustomEvent, isMouseEvent } from "./event.js";
12
12
  import { getExitSideFromRect, getHull, getPaddedExitPoints, getPointsFromRect, isDeltaInDirection, isPointInPolygon, isPointerInGraceArea } from "./geometry.js";
13
- export { appendAt, arrayRemove, clamp, compact, createFieldName, findValuesBetween, flattenChildren, focus, focusFirstAndSelect, getActiveElement, getAriaLabel, getAriaLabelByVNode, getAriaLabelByVNodeList, getBinaryCheckedState, getCheckedState, getCollectionItemElements, getDirectionAwareKey, getDisclosureState, getElFromTemplateRef, getExitSideFromRect, getFocusIntent, getHull, getLifeCycleTarget, getNextMatch, getOpenFromSingleOrMultiple, getPaddedExitPoints, getPointsFromRect, getRawChildren, getTabbableCandidates, getTabbableEdges, getValue, handleAndDispatchCustomEvent, insertAt, isArrayValue, isBlankString, isBrowser, isClient, isDateObject, isDeltaInDirection, isElementHasAttribute, isFormControl, isFunction, isHTMLElement, isIOS, isIndeterminate, isKey, isMouseEvent, isNonNullObject, isNullish, isObject, isObjectType, isPointInPolygon, isPointerInGraceArea, isPrimitive, isPromise, isString, isValueEqualOrExist, keysOf, moveAt, omit, parseArrayValue, parseFormValue, parseObjectValue, parsePrimitiveValue, pick, prependAt, refreshIOSDetection, removeAt, removeFromTabOrder, removeLinks, roundToStepPrecision, setValue, snapValueToStep, stringToPath, swapAt, toCamelCase, toKebabCase, toPascalCase, transformPropsToContext, tryFocusFirst, updateAt, wrapArray };
13
+ import { getTreePaths } from "./tree.js";
14
+ export { appendAt, arrayRemove, clamp, compact, createFieldName, findValuesBetween, flattenChildren, focus, focusFirstAndSelect, getActiveElement, getAriaLabel, getAriaLabelByVNode, getAriaLabelByVNodeList, getBinaryCheckedState, getCheckedState, getCollectionItemElements, getDirectionAwareKey, getDisclosureState, getElFromTemplateRef, getExitSideFromRect, getFocusIntent, getHull, getLifeCycleTarget, getNextMatch, getOpenFromSingleOrMultiple, getPaddedExitPoints, getPointsFromRect, getRawChildren, getTabbableCandidates, getTabbableEdges, getTreePaths, getValue, handleAndDispatchCustomEvent, insertAt, isArrayValue, isBlankString, isBrowser, isClient, isDateObject, isDeltaInDirection, isElementHasAttribute, isFormControl, isFunction, isHTMLElement, isIOS, isIndeterminate, isKey, isMouseEvent, isNonNullObject, isNullish, isObject, isObjectType, isPointInPolygon, isPointerInGraceArea, isPrimitive, isPromise, isString, isValueEqualOrExist, keysOf, moveAt, omit, parseArrayValue, parseFormValue, parseObjectValue, parsePrimitiveValue, pick, prependAt, refreshIOSDetection, removeAt, removeFromTabOrder, removeLinks, roundToStepPrecision, setValue, snapValueToStep, stringToPath, swapAt, toCamelCase, toKebabCase, toPascalCase, 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,compact as m,findValuesBetween as h,flattenChildren as g,getNextMatch as _,insertAt as v,moveAt as y,omit as b,pick as x,prependAt as S,removeAt as C,swapAt as w,updateAt as T,wrapArray as E}from"./object.js";import{isKey as D,stringToPath as O,toCamelCase as k,toKebabCase as A,toPascalCase as j}from"./string.js";import{isValueEqualOrExist as M}from"./comparison.js";import{clamp as N,getBinaryCheckedState as P,getCheckedState as F,getDisclosureState as I,getOpenFromSingleOrMultiple as L,getValue as R,isIndeterminate as z,roundToStepPrecision as B,setValue as V,snapValueToStep as H}from"./value.js";import{createFieldName as U,parseArrayValue as W,parseFormValue as G,parseObjectValue as K,parsePrimitiveValue as q}from"./form.js";import{getActiveElement as J,getAriaLabel as Y,getAriaLabelByVNode as X,getAriaLabelByVNodeList as Z,getCollectionItemElements as Q,isElementHasAttribute as $,isHTMLElement as ee,removeLinks as te}from"./dom.js";import{focus as ne,focusFirstAndSelect as re,getDirectionAwareKey as ie,getFocusIntent as ae,getTabbableCandidates as oe,getTabbableEdges as se,removeFromTabOrder as ce,tryFocusFirst as le}from"./focus.js";import{getElFromTemplateRef as ue,getLifeCycleTarget as de,getRawChildren as fe,isFormControl as pe,transformPropsToContext as me}from"./vue.js";import{isBrowser as he,isClient as ge,isIOS as _e,refreshIOSDetection as ve}from"./env.js";import{handleAndDispatchCustomEvent as ye,isMouseEvent as be}from"./event.js";import{getExitSideFromRect as xe,getHull as Se,getPaddedExitPoints as Ce,getPointsFromRect as we,isDeltaInDirection as Te,isPointInPolygon as Ee,isPointerInGraceArea as De}from"./geometry.js";export{f as appendAt,p as arrayRemove,N as clamp,m as compact,U as createFieldName,h as findValuesBetween,g as flattenChildren,ne as focus,re as focusFirstAndSelect,J as getActiveElement,Y as getAriaLabel,X as getAriaLabelByVNode,Z as getAriaLabelByVNodeList,P as getBinaryCheckedState,F as getCheckedState,Q as getCollectionItemElements,ie as getDirectionAwareKey,I as getDisclosureState,ue as getElFromTemplateRef,xe as getExitSideFromRect,ae as getFocusIntent,Se as getHull,de as getLifeCycleTarget,_ as getNextMatch,L as getOpenFromSingleOrMultiple,Ce as getPaddedExitPoints,we as getPointsFromRect,fe as getRawChildren,oe as getTabbableCandidates,se as getTabbableEdges,R as getValue,ye as handleAndDispatchCustomEvent,v as insertAt,e as isArrayValue,t as isBlankString,he as isBrowser,ge as isClient,n as isDateObject,Te as isDeltaInDirection,$ as isElementHasAttribute,pe as isFormControl,r as isFunction,ee as isHTMLElement,_e as isIOS,z as isIndeterminate,D as isKey,be as isMouseEvent,i as isNonNullObject,a as isNullish,o as isObject,s as isObjectType,Ee as isPointInPolygon,De as isPointerInGraceArea,c as isPrimitive,l as isPromise,u as isString,M as isValueEqualOrExist,d as keysOf,y as moveAt,b as omit,W as parseArrayValue,G as parseFormValue,K as parseObjectValue,q as parsePrimitiveValue,x as pick,S as prependAt,ve as refreshIOSDetection,C as removeAt,ce as removeFromTabOrder,te as removeLinks,B as roundToStepPrecision,V as setValue,H as snapValueToStep,O as stringToPath,w as swapAt,k as toCamelCase,A as toKebabCase,j as toPascalCase,me as transformPropsToContext,le as tryFocusFirst,T as updateAt,E 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,compact as m,findValuesBetween as h,flattenChildren as g,getNextMatch as _,insertAt as v,moveAt as y,omit as b,pick as x,prependAt as S,removeAt as C,swapAt as w,updateAt as T,wrapArray as E}from"./object.js";import{isKey as D,stringToPath as O,toCamelCase as k,toKebabCase as A,toPascalCase as j}from"./string.js";import{isValueEqualOrExist as M}from"./comparison.js";import{clamp as N,getBinaryCheckedState as P,getCheckedState as F,getDisclosureState as I,getOpenFromSingleOrMultiple as L,getValue as R,isIndeterminate as z,roundToStepPrecision as B,setValue as V,snapValueToStep as H}from"./value.js";import{createFieldName as U,parseArrayValue as W,parseFormValue as G,parseObjectValue as K,parsePrimitiveValue as q}from"./form.js";import{getActiveElement as J,getAriaLabel as Y,getAriaLabelByVNode as X,getAriaLabelByVNodeList as Z,getCollectionItemElements as Q,isElementHasAttribute as $,isHTMLElement as ee,removeLinks as te}from"./dom.js";import{focus as ne,focusFirstAndSelect as re,getDirectionAwareKey as ie,getFocusIntent as ae,getTabbableCandidates as oe,getTabbableEdges as se,removeFromTabOrder as ce,tryFocusFirst as le}from"./focus.js";import{getElFromTemplateRef as ue,getLifeCycleTarget as de,getRawChildren as fe,isFormControl as pe,transformPropsToContext as me}from"./vue.js";import{isBrowser as he,isClient as ge,isIOS as _e,refreshIOSDetection as ve}from"./env.js";import{handleAndDispatchCustomEvent as ye,isMouseEvent as be}from"./event.js";import{getExitSideFromRect as xe,getHull as Se,getPaddedExitPoints as Ce,getPointsFromRect as we,isDeltaInDirection as Te,isPointInPolygon as Ee,isPointerInGraceArea as De}from"./geometry.js";import{getTreePaths as Oe}from"./tree.js";export{f as appendAt,p as arrayRemove,N as clamp,m as compact,U as createFieldName,h as findValuesBetween,g as flattenChildren,ne as focus,re as focusFirstAndSelect,J as getActiveElement,Y as getAriaLabel,X as getAriaLabelByVNode,Z as getAriaLabelByVNodeList,P as getBinaryCheckedState,F as getCheckedState,Q as getCollectionItemElements,ie as getDirectionAwareKey,I as getDisclosureState,ue as getElFromTemplateRef,xe as getExitSideFromRect,ae as getFocusIntent,Se as getHull,de as getLifeCycleTarget,_ as getNextMatch,L as getOpenFromSingleOrMultiple,Ce as getPaddedExitPoints,we as getPointsFromRect,fe as getRawChildren,oe as getTabbableCandidates,se as getTabbableEdges,Oe as getTreePaths,R as getValue,ye as handleAndDispatchCustomEvent,v as insertAt,e as isArrayValue,t as isBlankString,he as isBrowser,ge as isClient,n as isDateObject,Te as isDeltaInDirection,$ as isElementHasAttribute,pe as isFormControl,r as isFunction,ee as isHTMLElement,_e as isIOS,z as isIndeterminate,D as isKey,be as isMouseEvent,i as isNonNullObject,a as isNullish,o as isObject,s as isObjectType,Ee as isPointInPolygon,De as isPointerInGraceArea,c as isPrimitive,l as isPromise,u as isString,M as isValueEqualOrExist,d as keysOf,y as moveAt,b as omit,W as parseArrayValue,G as parseFormValue,K as parseObjectValue,q as parsePrimitiveValue,x as pick,S as prependAt,ve as refreshIOSDetection,C as removeAt,ce as removeFromTabOrder,te as removeLinks,B as roundToStepPrecision,V as setValue,H as snapValueToStep,O as stringToPath,w as swapAt,k as toCamelCase,A as toKebabCase,j as toPascalCase,me as transformPropsToContext,le as tryFocusFirst,T as updateAt,E as wrapArray};
@@ -0,0 +1,13 @@
1
+ import { DefinedValue } from "../types/common.js";
2
+ import "../types/index.js";
3
+
4
+ //#region src/shared/tree.d.ts
5
+ interface BaseTree<T extends DefinedValue = DefinedValue> {
6
+ value: T;
7
+ }
8
+ type Tree<T extends DefinedValue = DefinedValue, S extends BaseTree<T> = BaseTree<T>> = BaseTree<T> & {
9
+ children?: S[];
10
+ };
11
+ declare function getTreePaths<T extends DefinedValue = DefinedValue, S extends BaseTree<T> = BaseTree<T>>(targetValue: T, items: Tree<T, S>[]): T[];
12
+ //#endregion
13
+ export { getTreePaths };
@@ -0,0 +1 @@
1
+ function e(e,t){let n=[];if(!e)return n;function r(t,n){let i=[...n,t.value];if(t.value===e)return i;if(t.children&&t.children.length>0)for(let e of t.children){let t=r(e,i);if(t)return t}return null}for(let e of t){let t=r(e,[]);if(t){n.push(...t);break}}return n}export{e as getTreePaths};
package/package.json CHANGED
@@ -1,25 +1,28 @@
1
1
  {
2
2
  "name": "@soybeanjs/headless",
3
- "type": "module",
4
- "version": "0.2.8",
3
+ "version": "0.3.1",
5
4
  "description": "SoybeanHeadless is a collection unstyled components for Vue 3. It is designed to be lightweight and easy to use.",
5
+ "homepage": "https://github.com/soybeanjs/soybean-ui",
6
+ "bugs": {
7
+ "url": "https://github.com/soybeanjs/soybean-ui/issues"
8
+ },
9
+ "license": "MIT",
6
10
  "author": {
7
11
  "name": "Soybean",
8
12
  "email": "soybeanjs@outlook.com",
9
13
  "url": "https://github.com/soybeanjs"
10
14
  },
11
- "license": "MIT",
12
- "homepage": "https://github.com/soybeanjs/soybean-ui",
13
15
  "repository": {
14
16
  "url": "https://github.com/soybeanjs/soybean-ui.git"
15
17
  },
16
- "bugs": {
17
- "url": "https://github.com/soybeanjs/soybean-ui/issues"
18
- },
19
- "publishConfig": {
20
- "registry": "https://registry.npmjs.org/"
21
- },
18
+ "files": [
19
+ "dist"
20
+ ],
21
+ "type": "module",
22
22
  "sideEffects": false,
23
+ "main": "./dist/index.js",
24
+ "module": "./dist/index.js",
25
+ "types": "./dist/index.d.ts",
23
26
  "exports": {
24
27
  ".": {
25
28
  "types": "./dist/index.d.ts",
@@ -62,24 +65,11 @@
62
65
  "require": "./dist/components/*/index.js"
63
66
  }
64
67
  },
65
- "main": "./dist/index.js",
66
- "module": "./dist/index.js",
67
- "types": "./dist/index.d.ts",
68
- "files": [
69
- "dist"
70
- ],
71
- "peerDependencies": {
72
- "nuxt": ">=4.0.0",
73
- "vue": ">=3.2.0",
74
- "vue-router": ">=4.0.0"
75
- },
76
- "peerDependenciesMeta": {
77
- "nuxt": {
78
- "optional": true
79
- }
68
+ "publishConfig": {
69
+ "registry": "https://registry.npmjs.org/"
80
70
  },
81
71
  "dependencies": {
82
- "@floating-ui/dom": "^1.7.4",
72
+ "@floating-ui/dom": "^1.7.5",
83
73
  "@floating-ui/utils": "^0.2.10",
84
74
  "@internationalized/date": "^3.10.1",
85
75
  "@internationalized/number": "^3.6.5",
@@ -104,6 +94,16 @@
104
94
  "vue": "3.5.27",
105
95
  "vue-router": "4.6.4"
106
96
  },
97
+ "peerDependencies": {
98
+ "nuxt": ">=4.0.0",
99
+ "vue": ">=3.2.0",
100
+ "vue-router": ">=4.0.0"
101
+ },
102
+ "peerDependenciesMeta": {
103
+ "nuxt": {
104
+ "optional": true
105
+ }
106
+ },
107
107
  "scripts": {
108
108
  "build": "pnpm tsdown"
109
109
  }