@soybeanjs/headless 0.0.15 → 0.0.17

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 (247) 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/alert/alert-close.vue.d.ts +2 -2
  8. package/dist/components/alert/alert-content.vue.d.ts +2 -2
  9. package/dist/components/alert/alert-description.vue.d.ts +2 -2
  10. package/dist/components/alert/alert-root.vue.d.ts +4 -4
  11. package/dist/components/alert/alert-title.vue.d.ts +2 -2
  12. package/dist/components/alert/context.d.ts +2 -2
  13. package/dist/components/alert-dialog/alert-dialog-close.vue.d.ts +2 -2
  14. package/dist/components/alert-dialog/alert-dialog-content.vue.d.ts +4 -4
  15. package/dist/components/alert-dialog/alert-dialog-root.vue.d.ts +4 -4
  16. package/dist/components/arrow/arrow.vue.d.ts +2 -2
  17. package/dist/components/aspect-ratio/aspect-ratio.vue.d.ts +3 -3
  18. package/dist/components/avatar/avatar-fallback.vue.d.ts +2 -2
  19. package/dist/components/avatar/avatar-image.vue.d.ts +4 -4
  20. package/dist/components/avatar/avatar-root.vue.d.ts +2 -2
  21. package/dist/components/avatar/context.d.ts +2 -2
  22. package/dist/components/badge/badge-content.vue.d.ts +2 -2
  23. package/dist/components/badge/badge-root.vue.d.ts +4 -4
  24. package/dist/components/badge/context.d.ts +2 -2
  25. package/dist/components/breadcrumb/breadcrumb-ellipsis.vue.d.ts +2 -2
  26. package/dist/components/breadcrumb/breadcrumb-item.vue.d.ts +2 -2
  27. package/dist/components/breadcrumb/breadcrumb-link.vue.d.ts +2 -2
  28. package/dist/components/breadcrumb/breadcrumb-list.vue.d.ts +2 -2
  29. package/dist/components/breadcrumb/breadcrumb-page.vue.d.ts +2 -2
  30. package/dist/components/breadcrumb/breadcrumb-root.vue.d.ts +2 -2
  31. package/dist/components/breadcrumb/breadcrumb-separator.vue.d.ts +2 -2
  32. package/dist/components/breadcrumb/context.d.ts +2 -2
  33. package/dist/components/button/button.vue.d.ts +5 -5
  34. package/dist/components/card/card-content.vue.d.ts +2 -2
  35. package/dist/components/card/card-description.vue.d.ts +2 -2
  36. package/dist/components/card/card-footer.vue.d.ts +2 -2
  37. package/dist/components/card/card-header.vue.d.ts +2 -2
  38. package/dist/components/card/card-root.vue.d.ts +2 -2
  39. package/dist/components/card/card-title-root.vue.d.ts +2 -2
  40. package/dist/components/card/card-title.vue.d.ts +2 -2
  41. package/dist/components/card/context.d.ts +2 -2
  42. package/dist/components/checkbox/checkbox-control.vue.d.ts +2 -2
  43. package/dist/components/checkbox/checkbox-group-root.vue.d.ts +3 -3
  44. package/dist/components/checkbox/checkbox-indicator.vue.d.ts +4 -4
  45. package/dist/components/checkbox/checkbox-label.vue.d.ts +2 -2
  46. package/dist/components/checkbox/checkbox-root.vue.d.ts +4 -4
  47. package/dist/components/checkbox/context.d.ts +2 -2
  48. package/dist/components/collapsible/collapsible-content.vue.d.ts +2 -2
  49. package/dist/components/collapsible/collapsible-root.vue.d.ts +7 -7
  50. package/dist/components/collapsible/collapsible-trigger.vue.d.ts +4 -4
  51. package/dist/components/collapsible/context.d.ts +2 -2
  52. package/dist/components/config-provider/config-provider.vue.d.ts +3 -3
  53. package/dist/components/context-menu/context-menu-content.vue.d.ts +4 -4
  54. package/dist/components/context-menu/context-menu-root.vue.d.ts +4 -4
  55. package/dist/components/context-menu/context-menu-trigger.vue.d.ts +4 -4
  56. package/dist/components/dialog/context.d.ts +2 -2
  57. package/dist/components/dialog/dialog-close.vue.d.ts +2 -2
  58. package/dist/components/dialog/dialog-content.vue.d.ts +4 -4
  59. package/dist/components/dialog/dialog-description.vue.d.ts +2 -2
  60. package/dist/components/dialog/dialog-footer.vue.d.ts +2 -2
  61. package/dist/components/dialog/dialog-header.vue.d.ts +2 -2
  62. package/dist/components/dialog/dialog-overlay.vue.d.ts +2 -2
  63. package/dist/components/dialog/dialog-root.vue.d.ts +4 -4
  64. package/dist/components/dialog/dialog-title.vue.d.ts +2 -2
  65. package/dist/components/dialog/dialog-trigger.vue.d.ts +2 -2
  66. package/dist/components/dropdown-menu/dropdown-menu-content.vue.d.ts +4 -4
  67. package/dist/components/dropdown-menu/dropdown-menu-root.vue.d.ts +4 -4
  68. package/dist/components/dropdown-menu/dropdown-menu-trigger.vue.d.ts +4 -4
  69. package/dist/components/form/context.d.ts +2 -2
  70. package/dist/components/form/form-description.vue.d.ts +2 -2
  71. package/dist/components/form/form-error.vue.d.ts +2 -2
  72. package/dist/components/form/form-field.vue.d.ts +2 -2
  73. package/dist/components/form/form-label.vue.d.ts +2 -2
  74. package/dist/components/input/context.d.ts +2 -2
  75. package/dist/components/input/input-control.vue.d.ts +2 -2
  76. package/dist/components/input/input-root.vue.d.ts +4 -4
  77. package/dist/components/kbd/kbd.vue.d.ts +2 -2
  78. package/dist/components/label/label.vue.d.ts +2 -2
  79. package/dist/components/layout/context.d.ts +2 -2
  80. package/dist/components/layout/layout-footer.vue.d.ts +2 -2
  81. package/dist/components/layout/layout-header.vue.d.ts +2 -2
  82. package/dist/components/layout/layout-main.vue.d.ts +2 -2
  83. package/dist/components/layout/layout-mobile.vue.d.ts +2 -2
  84. package/dist/components/layout/layout-rail.vue.d.ts +2 -2
  85. package/dist/components/layout/layout-root.vue.d.ts +4 -4
  86. package/dist/components/layout/layout-sidebar.vue.d.ts +2 -2
  87. package/dist/components/layout/layout-tab.vue.d.ts +2 -2
  88. package/dist/components/layout/layout-trigger.vue.d.ts +2 -2
  89. package/dist/components/link/link.vue.d.ts +4 -4
  90. package/dist/components/list/context.d.ts +2 -2
  91. package/dist/components/list/list-content.vue.d.ts +2 -2
  92. package/dist/components/list/list-description.vue.d.ts +2 -2
  93. package/dist/components/list/list-item.vue.d.ts +2 -2
  94. package/dist/components/list/list-root.vue.d.ts +2 -2
  95. package/dist/components/list/list-title.vue.d.ts +2 -2
  96. package/dist/components/listbox/context.d.ts +2 -2
  97. package/dist/components/listbox/listbox-content.vue.d.ts +2 -2
  98. package/dist/components/listbox/listbox-filter.vue.d.ts +4 -4
  99. package/dist/components/listbox/listbox-group-label.vue.d.ts +2 -2
  100. package/dist/components/listbox/listbox-group.vue.d.ts +2 -2
  101. package/dist/components/listbox/listbox-item-indicator.vue.d.ts +4 -4
  102. package/dist/components/listbox/listbox-item.vue.d.ts +5 -5
  103. package/dist/components/listbox/listbox-root.vue.d.ts +7 -7
  104. package/dist/components/listbox/listbox-virtualizer.vue.d.ts +2 -2
  105. package/dist/components/menu/context.d.ts +2 -2
  106. package/dist/components/menu/menu-checkbox-group.vue.d.ts +3 -3
  107. package/dist/components/menu/menu-checkbox-item.vue.d.ts +4 -4
  108. package/dist/components/menu/menu-content.vue.d.ts +4 -4
  109. package/dist/components/menu/menu-group-label.vue.d.ts +2 -2
  110. package/dist/components/menu/menu-group.vue.d.ts +2 -2
  111. package/dist/components/menu/menu-item-indicator.vue.d.ts +4 -4
  112. package/dist/components/menu/menu-item.vue.d.ts +4 -4
  113. package/dist/components/menu/menu-radio-group.vue.d.ts +3 -3
  114. package/dist/components/menu/menu-radio-item.vue.d.ts +4 -4
  115. package/dist/components/menu/menu-root.vue.d.ts +4 -4
  116. package/dist/components/menu/menu-sub-content.vue.d.ts +4 -4
  117. package/dist/components/menu/menu-sub-trigger.vue.d.ts +2 -2
  118. package/dist/components/menu/menu-sub.vue.d.ts +4 -4
  119. package/dist/components/navigation-menu/context.d.ts +2 -2
  120. package/dist/components/navigation-menu/navigation-menu-content.vue.d.ts +4 -4
  121. package/dist/components/navigation-menu/navigation-menu-indicator.vue.d.ts +2 -2
  122. package/dist/components/navigation-menu/navigation-menu-item.vue.d.ts +2 -2
  123. package/dist/components/navigation-menu/navigation-menu-link.vue.d.ts +4 -4
  124. package/dist/components/navigation-menu/navigation-menu-list.vue.d.ts +2 -2
  125. package/dist/components/navigation-menu/navigation-menu-root.vue.d.ts +5 -5
  126. package/dist/components/navigation-menu/navigation-menu-sub-list.vue.d.ts +2 -2
  127. package/dist/components/navigation-menu/navigation-menu-trigger.vue.d.ts +4 -4
  128. package/dist/components/navigation-menu/navigation-menu-viewport.vue.d.ts +3 -3
  129. package/dist/components/number-input/context.d.ts +2 -2
  130. package/dist/components/number-input/number-input-control.vue.d.ts +2 -2
  131. package/dist/components/number-input/number-input-decrement.vue.d.ts +4 -4
  132. package/dist/components/number-input/number-input-increment.vue.d.ts +4 -4
  133. package/dist/components/number-input/number-input-root.vue.d.ts +4 -4
  134. package/dist/components/pagination/context.d.ts +2 -2
  135. package/dist/components/pagination/pagination-ellipsis.vue.d.ts +2 -2
  136. package/dist/components/pagination/pagination-first.vue.d.ts +2 -2
  137. package/dist/components/pagination/pagination-last.vue.d.ts +2 -2
  138. package/dist/components/pagination/pagination-list-item.vue.d.ts +2 -2
  139. package/dist/components/pagination/pagination-list.vue.d.ts +2 -2
  140. package/dist/components/pagination/pagination-next.vue.d.ts +2 -2
  141. package/dist/components/pagination/pagination-prev.vue.d.ts +2 -2
  142. package/dist/components/pagination/pagination-root.vue.d.ts +4 -4
  143. package/dist/components/popover/popover-anchor.vue.d.ts +2 -2
  144. package/dist/components/popover/popover-close.vue.d.ts +4 -4
  145. package/dist/components/popover/popover-popup.vue.d.ts +2 -2
  146. package/dist/components/popover/popover-positioner.js +1 -1
  147. package/dist/components/popover/popover-positioner.vue.d.ts +4 -4
  148. package/dist/components/popover/popover-root.vue.d.ts +4 -4
  149. package/dist/components/popover/popover-trigger.vue.d.ts +4 -4
  150. package/dist/components/popper/context.d.ts +2 -2
  151. package/dist/components/popper/popper-anchor.vue.d.ts +2 -2
  152. package/dist/components/popper/popper-arrow.vue.d.ts +2 -2
  153. package/dist/components/popper/popper-popup.vue.d.ts +2 -2
  154. package/dist/components/popper/popper-positioner.vue.d.ts +49 -49
  155. package/dist/components/popper/popper-root.vue.d.ts +2 -2
  156. package/dist/components/primitive/primitive.d.ts +2 -2
  157. package/dist/components/radio-group/context.d.ts +2 -2
  158. package/dist/components/radio-group/radio-group-control.vue.d.ts +2 -2
  159. package/dist/components/radio-group/radio-group-indicator.vue.d.ts +4 -4
  160. package/dist/components/radio-group/radio-group-item.vue.d.ts +4 -4
  161. package/dist/components/radio-group/radio-group-label.vue.d.ts +2 -2
  162. package/dist/components/radio-group/radio-group-root.vue.d.ts +3 -3
  163. package/dist/components/roving-focus/roving-focus-group.vue.d.ts +5 -5
  164. package/dist/components/roving-focus/roving-focus-item.vue.d.ts +3 -3
  165. package/dist/components/select/context.d.ts +2 -2
  166. package/dist/components/select/context.js +1 -1
  167. package/dist/components/select/select-arrow.js +1 -1
  168. package/dist/components/select/select-arrow.vue.d.ts +2 -2
  169. package/dist/components/select/select-content-impl.js +1 -1
  170. package/dist/components/select/select-content.vue.d.ts +4 -4
  171. package/dist/components/select/select-group-label.vue.d.ts +2 -2
  172. package/dist/components/select/select-group.vue.d.ts +2 -2
  173. package/dist/components/select/select-item-aligned-popup.js +1 -1
  174. package/dist/components/select/select-item-aligned-positioner.js +1 -1
  175. package/dist/components/select/select-item-indicator.vue.d.ts +4 -4
  176. package/dist/components/select/select-item-text.vue.d.ts +2 -2
  177. package/dist/components/select/select-item.vue.d.ts +4 -4
  178. package/dist/components/select/select-root.vue.d.ts +3 -3
  179. package/dist/components/select/select-scroll-down-button.vue.d.ts +2 -2
  180. package/dist/components/select/select-scroll-up-button.vue.d.ts +2 -2
  181. package/dist/components/select/select-separator.vue.d.ts +2 -2
  182. package/dist/components/select/select-trigger-icon.vue.d.ts +2 -2
  183. package/dist/components/select/select-trigger.vue.d.ts +4 -4
  184. package/dist/components/select/select-value.vue.d.ts +3 -3
  185. package/dist/components/select/select-viewport.vue.d.ts +2 -2
  186. package/dist/components/separator/context.d.ts +2 -2
  187. package/dist/components/separator/separator-label.vue.d.ts +2 -2
  188. package/dist/components/separator/separator-root.vue.d.ts +3 -3
  189. package/dist/components/slot/slot.d.ts +2 -2
  190. package/dist/components/switch/context.d.ts +2 -2
  191. package/dist/components/switch/switch-control.vue.d.ts +2 -2
  192. package/dist/components/switch/switch-root.vue.d.ts +3 -3
  193. package/dist/components/switch/switch-thumb.vue.d.ts +4 -4
  194. package/dist/components/tabs/context.d.ts +2 -2
  195. package/dist/components/tabs/tabs-content.vue.d.ts +2 -2
  196. package/dist/components/tabs/tabs-indicator.vue.d.ts +2 -2
  197. package/dist/components/tabs/tabs-list.vue.d.ts +2 -2
  198. package/dist/components/tabs/tabs-root.vue.d.ts +5 -5
  199. package/dist/components/tabs/tabs-trigger.vue.d.ts +4 -4
  200. package/dist/components/tag/tag.vue.d.ts +4 -4
  201. package/dist/components/textarea/context.d.ts +2 -2
  202. package/dist/components/textarea/textarea-control.vue.d.ts +2 -2
  203. package/dist/components/textarea/textarea-counter.vue.d.ts +2 -2
  204. package/dist/components/textarea/textarea-root.vue.d.ts +4 -4
  205. package/dist/components/toast/toast-action.vue.d.ts +4 -4
  206. package/dist/components/toast/toast-close.vue.d.ts +4 -4
  207. package/dist/components/toast/toast-description.vue.d.ts +2 -2
  208. package/dist/components/toast/toast-provider.vue.d.ts +3 -3
  209. package/dist/components/toast/toast-root.vue.d.ts +5 -5
  210. package/dist/components/toast/toast-title.vue.d.ts +2 -2
  211. package/dist/components/toast/toast-viewport.vue.d.ts +4 -4
  212. package/dist/components/tooltip/tooltip-popup.vue.d.ts +2 -2
  213. package/dist/components/tooltip/tooltip-positioner.vue.d.ts +4 -4
  214. package/dist/components/tooltip/tooltip-root.vue.d.ts +4 -4
  215. package/dist/components/tooltip/tooltip-trigger.vue.d.ts +4 -4
  216. package/dist/components/tree/tree-item.vue.d.ts +5 -5
  217. package/dist/components/tree/tree-root.vue.d.ts +3 -3
  218. package/dist/components/tree/tree-virtualizer-item.vue.d.ts +4 -4
  219. package/dist/components/tree/tree-virtualizer-root.vue.d.ts +3 -3
  220. package/dist/components/tree-menu/context.d.ts +2 -2
  221. package/dist/components/tree-menu/tree-menu-button.vue.d.ts +4 -4
  222. package/dist/components/tree-menu/tree-menu-collapsible.vue.d.ts +2 -2
  223. package/dist/components/tree-menu/tree-menu-group-label.vue.d.ts +2 -2
  224. package/dist/components/tree-menu/tree-menu-group-root.vue.d.ts +2 -2
  225. package/dist/components/tree-menu/tree-menu-group.vue.d.ts +4 -4
  226. package/dist/components/tree-menu/tree-menu-item.vue.d.ts +4 -4
  227. package/dist/components/tree-menu/tree-menu-root.vue.d.ts +4 -4
  228. package/dist/components/tree-menu/tree-menu-sub.vue.d.ts +4 -4
  229. package/dist/components/virtualizer/virtualizer-content.vue.d.ts +2 -2
  230. package/dist/components/virtualizer/virtualizer-item.vue.d.ts +2 -2
  231. package/dist/components/virtualizer/virtualizer-root.vue.d.ts +3 -3
  232. package/dist/components/visually-hidden/visually-hidden-input.vue.d.ts +3 -3
  233. package/dist/components/visually-hidden/visually-hidden.vue.d.ts +4 -4
  234. package/dist/composables/use-collection.d.ts +6 -6
  235. package/dist/composables/use-direction.d.ts +2 -2
  236. package/dist/composables/use-dismissable-layer.d.ts +2 -2
  237. package/dist/composables/use-exposed-element.d.ts +2 -2
  238. package/dist/composables/use-forward-element.d.ts +2 -2
  239. package/dist/composables/use-image-loading-status.d.ts +2 -2
  240. package/dist/composables/use-is-using-keyboard.d.ts +2 -2
  241. package/dist/composables/use-kbd.d.ts +2 -2
  242. package/dist/composables/use-locale.d.ts +2 -2
  243. package/dist/composables/use-nonce.d.ts +2 -2
  244. package/dist/composables/use-presence.d.ts +2 -2
  245. package/dist/composables/use-props.d.ts +3 -3
  246. package/dist/composables/use-selection.d.ts +4 -4
  247. package/package.json +1 -1
@@ -1,29 +1,26 @@
1
1
  import { Align, Placement as Placement$1 } from "../../types/common.js";
2
2
  import { PopperPositionerProps } from "./types.js";
3
3
  import "../../index.js";
4
- import * as vue1710 from "vue";
4
+ import * as vue1686 from "vue";
5
5
  import { CSSProperties } from "vue";
6
6
  import * as _floating_ui_dom0 from "@floating-ui/dom";
7
- import * as _floating_ui_utils0 from "@floating-ui/utils";
7
+ import * as _floating_ui_utils3 from "@floating-ui/utils";
8
8
 
9
9
  //#region src/components/popper/popper-positioner.vue.d.ts
10
10
  declare var __VLS_1: {};
11
11
  type __VLS_Slots = {} & {
12
12
  default?: (props: typeof __VLS_1) => any;
13
13
  };
14
- declare const __VLS_base: vue1710.DefineComponent<PopperPositionerProps, {}, {}, {}, {}, vue1710.ComponentOptionsMixin, vue1710.ComponentOptionsMixin, {
14
+ declare const __VLS_base: vue1686.DefineComponent<PopperPositionerProps, {}, {}, {}, {}, vue1686.ComponentOptionsMixin, vue1686.ComponentOptionsMixin, {
15
15
  placed: () => any;
16
- }, string, vue1710.PublicProps, Readonly<PopperPositionerProps> & Readonly<{
16
+ }, string, vue1686.PublicProps, Readonly<PopperPositionerProps> & Readonly<{
17
17
  onPlaced?: (() => any) | undefined;
18
18
  }>, {
19
- dir: string;
20
- style: string | false | CSSProperties | vue1710.StyleValue[] | null;
19
+ style: string | false | CSSProperties | vue1686.StyleValue[] | null;
21
20
  title: string;
22
21
  contextmenu: string;
23
22
  onInput: (payload: InputEvent) => void;
24
23
  onSelect: (payload: Event) => void;
25
- onFocus: (payload: FocusEvent) => void;
26
- onError: (payload: Event) => void;
27
24
  onProgress: (payload: ProgressEvent<EventTarget>) => void;
28
25
  onFullscreenchange: (payload: Event) => void;
29
26
  onFullscreenerror: (payload: Event) => void;
@@ -57,6 +54,8 @@ declare const __VLS_base: vue1710.DefineComponent<PopperPositionerProps, {}, {},
57
54
  onDurationchange: (payload: Event) => void;
58
55
  onEmptied: (payload: Event) => void;
59
56
  onEnded: (payload: Event) => void;
57
+ onError: (payload: Event) => void;
58
+ onFocus: (payload: FocusEvent) => void;
60
59
  onFocusin: (payload: FocusEvent) => void;
61
60
  onFocusout: (payload: FocusEvent) => void;
62
61
  onFormdata: (payload: FormDataEvent) => void;
@@ -112,15 +111,50 @@ declare const __VLS_base: vue1710.DefineComponent<PopperPositionerProps, {}, {},
112
111
  onVolumechange: (payload: Event) => void;
113
112
  onWaiting: (payload: Event) => void;
114
113
  onWheel: (payload: WheelEvent) => void;
114
+ dir: string;
115
115
  onDragexit: (payload: DragEvent) => void;
116
116
  onEncrypted: (payload: MediaEncryptedEvent) => void;
117
117
  innerHTML: string;
118
118
  class: any;
119
- color: string;
119
+ accesskey: string;
120
+ contenteditable: (boolean | "true" | "false") | "inherit" | "plaintext-only";
121
+ draggable: boolean | "true" | "false";
122
+ enterkeyhint: "done" | "next" | "search" | "enter" | "go" | "previous" | "send";
123
+ enterKeyHint: "done" | "next" | "search" | "enter" | "go" | "previous" | "send";
124
+ hidden: "" | "hidden" | (boolean | "true" | "false") | "until-found";
120
125
  id: string;
126
+ inert: boolean | "true" | "false";
121
127
  lang: string;
122
- role: string;
128
+ placeholder: string;
129
+ spellcheck: boolean | "true" | "false";
123
130
  tabindex: string | number;
131
+ translate: "yes" | "no";
132
+ radiogroup: string;
133
+ role: string;
134
+ about: string;
135
+ datatype: string;
136
+ inlist: any;
137
+ prefix: string;
138
+ property: string;
139
+ resource: string;
140
+ typeof: string;
141
+ vocab: string;
142
+ autocapitalize: string;
143
+ autocorrect: string;
144
+ autosave: string;
145
+ color: string;
146
+ itemprop: string;
147
+ itemscope: boolean | "true" | "false";
148
+ itemtype: string;
149
+ itemid: string;
150
+ itemref: string;
151
+ results: string | number;
152
+ security: string;
153
+ unselectable: "on" | "off";
154
+ inputmode: "search" | "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal";
155
+ is: string;
156
+ exportparts: string;
157
+ part: string;
124
158
  'aria-activedescendant': string;
125
159
  'aria-atomic': boolean | "true" | "false";
126
160
  'aria-autocomplete': "list" | "none" | "inline" | "both";
@@ -134,7 +168,7 @@ declare const __VLS_base: vue1710.DefineComponent<PopperPositionerProps, {}, {},
134
168
  'aria-describedby': string;
135
169
  'aria-details': string;
136
170
  'aria-disabled': boolean | "true" | "false";
137
- 'aria-dropeffect': "link" | "none" | "copy" | "execute" | "move" | "popup";
171
+ 'aria-dropeffect': "link" | "copy" | "none" | "execute" | "move" | "popup";
138
172
  'aria-errormessage': string;
139
173
  'aria-expanded': boolean | "true" | "false";
140
174
  'aria-flowto': string;
@@ -156,7 +190,7 @@ declare const __VLS_base: vue1710.DefineComponent<PopperPositionerProps, {}, {},
156
190
  'aria-posinset': string | number;
157
191
  'aria-pressed': (boolean | "true" | "false") | "mixed";
158
192
  'aria-readonly': boolean | "true" | "false";
159
- 'aria-relevant': "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals";
193
+ 'aria-relevant': "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals";
160
194
  'aria-required': boolean | "true" | "false";
161
195
  'aria-roledescription': string;
162
196
  'aria-rowcount': string | number;
@@ -169,42 +203,8 @@ declare const __VLS_base: vue1710.DefineComponent<PopperPositionerProps, {}, {},
169
203
  'aria-valuemin': string | number;
170
204
  'aria-valuenow': string | number;
171
205
  'aria-valuetext': string;
172
- accesskey: string;
173
- contenteditable: (boolean | "true" | "false") | "inherit" | "plaintext-only";
174
- draggable: boolean | "true" | "false";
175
- enterkeyhint: "done" | "next" | "search" | "enter" | "go" | "previous" | "send";
176
- enterKeyHint: "done" | "next" | "search" | "enter" | "go" | "previous" | "send";
177
- hidden: "" | "hidden" | (boolean | "true" | "false") | "until-found";
178
- inert: boolean | "true" | "false";
179
- placeholder: string;
180
- spellcheck: boolean | "true" | "false";
181
- translate: "yes" | "no";
182
- radiogroup: string;
183
- about: string;
184
- datatype: string;
185
- inlist: any;
186
- prefix: string;
187
- property: string;
188
- resource: string;
189
- typeof: string;
190
- vocab: string;
191
- autocapitalize: string;
192
- autocorrect: string;
193
- autosave: string;
194
- itemprop: string;
195
- itemscope: boolean | "true" | "false";
196
- itemtype: string;
197
- itemid: string;
198
- itemref: string;
199
- results: string | number;
200
- security: string;
201
- unselectable: "off" | "on";
202
- inputmode: "search" | "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal";
203
- is: string;
204
- exportparts: string;
205
- part: string;
206
206
  placement: Placement$1;
207
- side: _floating_ui_utils0.Side;
207
+ side: _floating_ui_utils3.Side;
208
208
  sideOffset: number;
209
209
  sideFlip: boolean;
210
210
  align: Align;
@@ -212,7 +212,7 @@ declare const __VLS_base: vue1710.DefineComponent<PopperPositionerProps, {}, {},
212
212
  alignFlip: boolean;
213
213
  avoidCollisions: boolean;
214
214
  collisionBoundary: Element | null | Array<Element | null>;
215
- collisionPadding: _floating_ui_utils0.Padding;
215
+ collisionPadding: _floating_ui_utils3.Padding;
216
216
  arrowPadding: number;
217
217
  sticky: "partial" | "always";
218
218
  hideWhenDetached: boolean;
@@ -221,7 +221,7 @@ declare const __VLS_base: vue1710.DefineComponent<PopperPositionerProps, {}, {},
221
221
  disableUpdateOnLayoutShift: boolean;
222
222
  prioritizePosition: boolean;
223
223
  reference: _floating_ui_dom0.ReferenceElement;
224
- }, {}, {}, {}, string, vue1710.ComponentProvideOptions, false, {}, any>;
224
+ }, {}, {}, {}, string, vue1686.ComponentProvideOptions, false, {}, any>;
225
225
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
226
226
  declare const _default: typeof __VLS_export;
227
227
  type __VLS_WithSlots<T, S> = T & {
@@ -1,11 +1,11 @@
1
- import * as vue1716 from "vue";
1
+ import * as vue1671 from "vue";
2
2
 
3
3
  //#region src/components/popper/popper-root.vue.d.ts
4
4
  declare var __VLS_1: {};
5
5
  type __VLS_Slots = {} & {
6
6
  default?: (props: typeof __VLS_1) => any;
7
7
  };
8
- declare const __VLS_base: vue1716.DefineComponent<{}, {}, {}, {}, {}, vue1716.ComponentOptionsMixin, vue1716.ComponentOptionsMixin, {}, string, vue1716.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue1716.ComponentProvideOptions, true, {}, any>;
8
+ declare const __VLS_base: vue1671.DefineComponent<{}, {}, {}, {}, {}, vue1671.ComponentOptionsMixin, vue1671.ComponentOptionsMixin, {}, string, vue1671.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue1671.ComponentProvideOptions, true, {}, any>;
9
9
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
10
10
  declare const _default: typeof __VLS_export;
11
11
  type __VLS_WithSlots<T, S> = T & {
@@ -1,7 +1,7 @@
1
1
  import { PrimitiveProps } from "./types.js";
2
- import * as vue21 from "vue";
2
+ import * as vue0 from "vue";
3
3
 
4
4
  //#region src/components/primitive/primitive.d.ts
5
- declare const Primitive: vue21.DefineSetupFnComponent<PrimitiveProps, {}, {}, PrimitiveProps & {}, vue21.PublicProps>;
5
+ declare const Primitive: vue0.DefineSetupFnComponent<PrimitiveProps, {}, {}, PrimitiveProps & {}, vue0.PublicProps>;
6
6
  //#endregion
7
7
  export { Primitive };
@@ -1,10 +1,10 @@
1
1
  import { ClassValue, UiClass } from "../../types/common.js";
2
2
  import { RadioGroupUiSlot } from "./types.js";
3
3
  import "../../index.js";
4
- import * as vue1133 from "vue";
4
+ import * as vue303 from "vue";
5
5
 
6
6
  //#region src/components/radio-group/context.d.ts
7
7
 
8
- declare const provideRadioGroupUi: (ui: vue1133.ComputedRef<Partial<UiClass<RadioGroupUiSlot>>>) => vue1133.ComputedRef<Partial<UiClass<RadioGroupUiSlot>>>, useRadioGroupUi: <S extends RadioGroupUiSlot | undefined = undefined>(slot?: S | undefined) => S extends RadioGroupUiSlot ? vue1133.ComputedRef<ClassValue> : vue1133.ComputedRef<Partial<UiClass<RadioGroupUiSlot>>>;
8
+ declare const provideRadioGroupUi: (ui: vue303.ComputedRef<Partial<UiClass<RadioGroupUiSlot>>>) => vue303.ComputedRef<Partial<UiClass<RadioGroupUiSlot>>>, useRadioGroupUi: <S extends RadioGroupUiSlot | undefined = undefined>(slot?: S | undefined) => S extends RadioGroupUiSlot ? vue303.ComputedRef<ClassValue> : vue303.ComputedRef<Partial<UiClass<RadioGroupUiSlot>>>;
9
9
  //#endregion
10
10
  export { provideRadioGroupUi };
@@ -1,5 +1,5 @@
1
1
  import { RadioGroupControlProps } from "./types.js";
2
- import * as vue1117 from "vue";
2
+ import * as vue287 from "vue";
3
3
 
4
4
  //#region src/components/radio-group/radio-group-control.vue.d.ts
5
5
  declare var __VLS_8: {
@@ -10,7 +10,7 @@ declare var __VLS_8: {
10
10
  type __VLS_Slots = {} & {
11
11
  default?: (props: typeof __VLS_8) => any;
12
12
  };
13
- declare const __VLS_base: vue1117.DefineComponent<RadioGroupControlProps, {}, {}, {}, {}, vue1117.ComponentOptionsMixin, vue1117.ComponentOptionsMixin, {}, string, vue1117.PublicProps, Readonly<RadioGroupControlProps> & Readonly<{}>, {}, {}, {}, {}, string, vue1117.ComponentProvideOptions, false, {}, any>;
13
+ declare const __VLS_base: vue287.DefineComponent<RadioGroupControlProps, {}, {}, {}, {}, vue287.ComponentOptionsMixin, vue287.ComponentOptionsMixin, {}, string, vue287.PublicProps, Readonly<RadioGroupControlProps> & Readonly<{}>, {}, {}, {}, {}, string, vue287.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 { RadioGroupIndicatorProps } from "./types.js";
4
- import * as vue1122 from "vue";
4
+ import * as vue292 from "vue";
5
5
 
6
6
  //#region src/components/radio-group/radio-group-indicator.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: vue1122.DefineComponent<RadioGroupIndicatorProps, {}, {}, {}, {}, vue1122.ComponentOptionsMixin, vue1122.ComponentOptionsMixin, {}, string, vue1122.PublicProps, Readonly<RadioGroupIndicatorProps> & Readonly<{}>, {
12
- as: AsTag | vue1122.Component;
13
- }, {}, {}, {}, string, vue1122.ComponentProvideOptions, false, {}, any>;
11
+ declare const __VLS_base: vue292.DefineComponent<RadioGroupIndicatorProps, {}, {}, {}, {}, vue292.ComponentOptionsMixin, vue292.ComponentOptionsMixin, {}, string, vue292.PublicProps, Readonly<RadioGroupIndicatorProps> & Readonly<{}>, {
12
+ as: AsTag | vue292.Component;
13
+ }, {}, {}, {}, string, vue292.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 { RadioGroupItemProps, RadioSelectEvent } from "./types.js";
2
- import * as vue1112 from "vue";
2
+ import * as vue282 from "vue";
3
3
 
4
4
  //#region src/components/radio-group/radio-group-item.vue.d.ts
5
5
  declare var __VLS_1: {
@@ -8,11 +8,11 @@ declare var __VLS_1: {
8
8
  type __VLS_Slots = {} & {
9
9
  default?: (props: typeof __VLS_1) => any;
10
10
  };
11
- declare const __VLS_base: vue1112.DefineComponent<RadioGroupItemProps, {}, {}, {}, {}, vue1112.ComponentOptionsMixin, vue1112.ComponentOptionsMixin, {
11
+ declare const __VLS_base: vue282.DefineComponent<RadioGroupItemProps, {}, {}, {}, {}, vue282.ComponentOptionsMixin, vue282.ComponentOptionsMixin, {
12
12
  select: (event: RadioSelectEvent) => any;
13
- }, string, vue1112.PublicProps, Readonly<RadioGroupItemProps> & Readonly<{
13
+ }, string, vue282.PublicProps, Readonly<RadioGroupItemProps> & Readonly<{
14
14
  onSelect?: ((event: RadioSelectEvent) => any) | undefined;
15
- }>, {}, {}, {}, {}, string, vue1112.ComponentProvideOptions, false, {}, any>;
15
+ }>, {}, {}, {}, {}, string, vue282.ComponentProvideOptions, false, {}, any>;
16
16
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
17
17
  declare const _default: typeof __VLS_export;
18
18
  type __VLS_WithSlots<T, S> = T & {
@@ -1,13 +1,13 @@
1
1
  import { LabelProps } from "../label/types.js";
2
2
  import "./types.js";
3
- import * as vue1128 from "vue";
3
+ import * as vue298 from "vue";
4
4
 
5
5
  //#region src/components/radio-group/radio-group-label.vue.d.ts
6
6
  declare var __VLS_8: {};
7
7
  type __VLS_Slots = {} & {
8
8
  default?: (props: typeof __VLS_8) => any;
9
9
  };
10
- declare const __VLS_base: vue1128.DefineComponent<LabelProps, {}, {}, {}, {}, vue1128.ComponentOptionsMixin, vue1128.ComponentOptionsMixin, {}, string, vue1128.PublicProps, Readonly<LabelProps> & Readonly<{}>, {}, {}, {}, {}, string, vue1128.ComponentProvideOptions, false, {}, any>;
10
+ declare const __VLS_base: vue298.DefineComponent<LabelProps, {}, {}, {}, {}, vue298.ComponentOptionsMixin, vue298.ComponentOptionsMixin, {}, string, vue298.PublicProps, Readonly<LabelProps> & Readonly<{}>, {}, {}, {}, {}, string, vue298.ComponentProvideOptions, false, {}, any>;
11
11
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
12
12
  declare const _default: typeof __VLS_export;
13
13
  type __VLS_WithSlots<T, S> = T & {
@@ -1,11 +1,11 @@
1
1
  import { AcceptableBooleanValue } from "../../types/common.js";
2
2
  import "../../types/index.js";
3
3
  import { RadioGroupRootProps } from "./types.js";
4
- import * as vue1110 from "vue";
4
+ import * as vue280 from "vue";
5
5
 
6
6
  //#region src/components/radio-group/radio-group-root.vue.d.ts
7
7
  declare const __VLS_export: <T extends AcceptableBooleanValue>(__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<{
8
- props: vue1110.PublicProps & __VLS_PrettifyLocal<RadioGroupRootProps<T> & {
8
+ props: vue280.PublicProps & __VLS_PrettifyLocal<RadioGroupRootProps<T> & {
9
9
  "onUpdate:modelValue"?: ((payload: NonNullable<T>) => any) | undefined;
10
10
  }> & (typeof globalThis extends {
11
11
  __VLS_PROPS_FALLBACK: infer P;
@@ -18,7 +18,7 @@ declare const __VLS_export: <T extends AcceptableBooleanValue>(__VLS_props: NonN
18
18
  }) => any;
19
19
  };
20
20
  emit: (evt: "update:modelValue", payload: NonNullable<T>) => void;
21
- }>) => vue1110.VNode & {
21
+ }>) => vue280.VNode & {
22
22
  __ctx?: Awaited<typeof __VLS_setup>;
23
23
  };
24
24
  declare const _default: typeof __VLS_export;
@@ -3,26 +3,26 @@ import { RovingFocusGroupProps } from "./types.js";
3
3
  import { CollectionItemData } from "../../composables/use-collection.js";
4
4
  import "../../composables/index.js";
5
5
  import "../../index.js";
6
- import * as vue578 from "vue";
6
+ import * as vue270 from "vue";
7
7
 
8
8
  //#region src/components/roving-focus/roving-focus-group.vue.d.ts
9
9
  declare var __VLS_8: {};
10
10
  type __VLS_Slots = {} & {
11
11
  default?: (props: typeof __VLS_8) => any;
12
12
  };
13
- declare const __VLS_base: vue578.DefineComponent<RovingFocusGroupProps, {
13
+ declare const __VLS_base: vue270.DefineComponent<RovingFocusGroupProps, {
14
14
  getItems: (excludeDisabled?: boolean) => CollectionItemData<Record<string, any>>[];
15
- }, {}, {}, {}, vue578.ComponentOptionsMixin, vue578.ComponentOptionsMixin, {
15
+ }, {}, {}, {}, vue270.ComponentOptionsMixin, vue270.ComponentOptionsMixin, {
16
16
  entryFocus: (event: Event) => any;
17
17
  "update:currentTabStopId": (value: string | null | undefined) => any;
18
- }, string, vue578.PublicProps, Readonly<RovingFocusGroupProps> & Readonly<{
18
+ }, string, vue270.PublicProps, Readonly<RovingFocusGroupProps> & Readonly<{
19
19
  onEntryFocus?: ((event: Event) => any) | undefined;
20
20
  "onUpdate:currentTabStopId"?: ((value: string | null | undefined) => any) | undefined;
21
21
  }>, {
22
22
  orientation: DataOrientation;
23
23
  loop: boolean;
24
24
  preventScrollOnEntryFocus: boolean;
25
- }, {}, {}, {}, string, vue578.ComponentProvideOptions, false, {}, any>;
25
+ }, {}, {}, {}, string, vue270.ComponentProvideOptions, false, {}, any>;
26
26
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
27
27
  declare const _default: typeof __VLS_export;
28
28
  type __VLS_WithSlots<T, S> = T & {
@@ -1,14 +1,14 @@
1
1
  import { RovingFocusItemProps } from "./types.js";
2
- import * as vue583 from "vue";
2
+ import * as vue275 from "vue";
3
3
 
4
4
  //#region src/components/roving-focus/roving-focus-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: vue583.DefineComponent<RovingFocusItemProps, {}, {}, {}, {}, vue583.ComponentOptionsMixin, vue583.ComponentOptionsMixin, {}, string, vue583.PublicProps, Readonly<RovingFocusItemProps> & Readonly<{}>, {
9
+ declare const __VLS_base: vue275.DefineComponent<RovingFocusItemProps, {}, {}, {}, {}, vue275.ComponentOptionsMixin, vue275.ComponentOptionsMixin, {}, string, vue275.PublicProps, Readonly<RovingFocusItemProps> & Readonly<{}>, {
10
10
  focusable: boolean;
11
- }, {}, {}, {}, string, vue583.ComponentProvideOptions, false, {}, any>;
11
+ }, {}, {}, {}, string, vue275.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 & {
@@ -3,10 +3,10 @@ import "../../types/index.js";
3
3
  import "../../composables/index.js";
4
4
  import { SelectUiSlot } from "./types.js";
5
5
  import "../../index.js";
6
- import * as vue746 from "vue";
6
+ import * as vue1157 from "vue";
7
7
 
8
8
  //#region src/components/select/context.d.ts
9
9
 
10
- declare const provideSelectUi: (ui: vue746.ComputedRef<Partial<UiClass<SelectUiSlot>>>) => vue746.ComputedRef<Partial<UiClass<SelectUiSlot>>>, useSelectUi: <S extends SelectUiSlot | undefined = undefined>(slot?: S | undefined) => S extends SelectUiSlot ? vue746.ComputedRef<ClassValue> : vue746.ComputedRef<Partial<UiClass<SelectUiSlot>>>;
10
+ declare const provideSelectUi: (ui: vue1157.ComputedRef<Partial<UiClass<SelectUiSlot>>>) => vue1157.ComputedRef<Partial<UiClass<SelectUiSlot>>>, useSelectUi: <S extends SelectUiSlot | undefined = undefined>(slot?: S | undefined) => S extends SelectUiSlot ? vue1157.ComputedRef<ClassValue> : vue1157.ComputedRef<Partial<UiClass<SelectUiSlot>>>;
11
11
  //#endregion
12
12
  export { provideSelectUi };
@@ -1 +1 @@
1
- import{isValueEqualOrExist as e}from"../../shared/comparison.js";import{getDisclosureState as t}from"../../shared/value.js";import{tryFocusFirst as n}from"../../shared/focus.js";import{useContext as r}from"../../composables/use-context.js";import{useCollection as i}from"../../composables/use-collection.js";import{useDirection as a}from"../../composables/use-direction.js";import{useUiContext as o}from"../../composables/use-ui-context.js";import{computed as s,ref as c,shallowRef as l,useId as u}from"vue";const[d,f]=r(`SelectRoot`,e=>{let{open:n}=e,r=e=>{n.value=e},i=s(()=>t(n.value)),o=a(e.dir),d=l(``),f=()=>{d.value||=`soybean-select-content-${u()}`},p=l(),m=e=>{p.value=e},h=l(),g=e=>{h.value=e},_=c(new Set),v=s(()=>Array.from(_.value)),y=s(()=>v.value.map(e=>e.value).join(`;`)),b=e=>{_.value.add(e)},x=e=>{_.value.delete(e)},S=l({x:0,y:0}),C=e=>{S.value=e},w=()=>{S.value=null};return{...e,dataState:i,onOpenChange:r,dir:o,contentId:d,initContentId:f,triggerElement:p,onTriggerElementChange:m,valueElement:h,onValueElementChange:g,optionsSet:_,onOptionAdd:b,onOptionRemove:x,options:v,nativeSelectKey:y,triggerPointerDownPosition:S,setTriggerPointerDownPosition:C,resetTriggerPointerDownPosition:w}}),{provideCollectionContext:p,useCollectionContext:m,useCollectionItem:h}=i(`Select`),[g,_]=r(`SelectContent`,t=>{let{modelValue:r,isMultiple:i,popupElement:a}=t,o=l(!1),s=l(),c=e=>{s.value=e},u=!1,d=!1,f=l(),p=(t,n,i)=>{let a=!u&&!i;(e(r.value,n)||a)&&(f.value=t)},m=l(),h=(t,n,a)=>{let o=!u&&!a,s=e(r.value,n);if(i.value){if(d)return;(s||o)&&(m.value=t,s&&(d=!0))}else (s||o)&&(m.value=t);o&&(u=!0)},g=()=>{a.value?.focus()};function _(){!m.value||!a.value||n([m.value,a.value])}return{...t,isPositioned:o,viewportElement:s,onViewportElementChange:c,selectedItemElement:m,onSelectedItemElementChange:h,onItemElementLeave:g,selectedItemTextElement:f,onSelectedItemTextElementChange:p,focusSelectedItem:_}}),[v,y]=r(`SelectGroup`,()=>{let e=l(``);return{labelId:e,initLabelId:()=>{e.value||=`soybean-select-group-label-${u()}`}}}),[b,x]=r(`SelectItem`,e=>{let t=l(e.textValue.value??``),n=l(),r=e=>{n.value=e,t.value=((t.value||e?.textContent)??``).trim()},i=l(``),a=()=>{i.value||=`soybean-select-item-text-${u()}`};return{...e,textId:i,initTextId:a,textValue:t,itemTextElement:n,onItemTextElementChange:r}}),[S,C]=r(`SelectPopupElement`,()=>{let e=l();return{popupElement:e,onPopupElementChange:t=>{e.value=t}}}),[w,T]=r(`SelectItemAlignedPosition`,e=>e),[E,D]=o(`SelectUi`);export{p as provideCollectionContext,g as provideSelectContentContext,v as provideSelectGroupContext,w as provideSelectItemAlignedPositionContext,b as provideSelectItemContext,S as provideSelectPopupElementContext,d as provideSelectRootContext,E as provideSelectUi,m as useCollectionContext,h as useCollectionItem,_ as useSelectContentContext,y as useSelectGroupContext,T as useSelectItemAlignedPositionContext,x as useSelectItemContext,C as useSelectPopupElementContext,f as useSelectRootContext,D as useSelectUi};
1
+ import{isValueEqualOrExist as e}from"../../shared/comparison.js";import{getDisclosureState as t}from"../../shared/value.js";import{tryFocusFirst as n}from"../../shared/focus.js";import{useContext as r}from"../../composables/use-context.js";import{useCollection as i}from"../../composables/use-collection.js";import{useDirection as a}from"../../composables/use-direction.js";import{useUiContext as o}from"../../composables/use-ui-context.js";import{providePopperUi as s}from"../popper/context.js";import{computed as c,ref as l,shallowRef as u,useId as d}from"vue";const[f,p]=r(`SelectRoot`,e=>{let{open:n}=e,r=e=>{n.value=e},i=c(()=>t(n.value)),o=a(e.dir),s=u(``),f=()=>{s.value||=`soybean-select-content-${d()}`},p=u(),m=e=>{p.value=e},h=u(),g=e=>{h.value=e},_=l(new Set),v=c(()=>Array.from(_.value)),y=c(()=>v.value.map(e=>e.value).join(`;`)),b=e=>{_.value.add(e)},x=e=>{_.value.delete(e)},S=u({x:0,y:0}),C=e=>{S.value=e},w=()=>{S.value=null};return{...e,dataState:i,onOpenChange:r,dir:o,contentId:s,initContentId:f,triggerElement:p,onTriggerElementChange:m,valueElement:h,onValueElementChange:g,optionsSet:_,onOptionAdd:b,onOptionRemove:x,options:v,nativeSelectKey:y,triggerPointerDownPosition:S,setTriggerPointerDownPosition:C,resetTriggerPointerDownPosition:w}}),{provideCollectionContext:m,useCollectionContext:h,useCollectionItem:g}=i(`Select`),[_,v]=r(`SelectContent`,t=>{let{modelValue:r,isMultiple:i,popupElement:a}=t,o=u(!1),s=u(),c=e=>{s.value=e},l=!1,d=!1,f=u(),p=(t,n,i)=>{let a=!l&&!i;(e(r.value,n)||a)&&(f.value=t)},m=u(),h=(t,n,a)=>{let o=!l&&!a,s=e(r.value,n);if(i.value){if(d)return;(s||o)&&(m.value=t,s&&(d=!0))}else (s||o)&&(m.value=t);o&&(l=!0)},g=()=>{a.value?.focus()};function _(){!m.value||!a.value||n([m.value,a.value])}return{...t,isPositioned:o,viewportElement:s,onViewportElementChange:c,selectedItemElement:m,onSelectedItemElementChange:h,onItemElementLeave:g,selectedItemTextElement:f,onSelectedItemTextElementChange:p,focusSelectedItem:_}}),[y,b]=r(`SelectGroup`,()=>{let e=u(``);return{labelId:e,initLabelId:()=>{e.value||=`soybean-select-group-label-${d()}`}}}),[x,S]=r(`SelectItem`,e=>{let t=u(e.textValue.value??``),n=u(),r=e=>{n.value=e,t.value=((t.value||e?.textContent)??``).trim()},i=u(``),a=()=>{i.value||=`soybean-select-item-text-${d()}`};return{...e,textId:i,initTextId:a,textValue:t,itemTextElement:n,onItemTextElementChange:r}}),[C,w]=r(`SelectPopupElement`,()=>{let e=u();return{popupElement:e,onPopupElementChange:t=>{e.value=t}}}),[T,E]=r(`SelectItemAlignedPosition`,e=>e),[D,O]=o(`SelectUi`,e=>(s(e),e));export{m as provideCollectionContext,_ as provideSelectContentContext,y as provideSelectGroupContext,T as provideSelectItemAlignedPositionContext,x as provideSelectItemContext,C as provideSelectPopupElementContext,f as provideSelectRootContext,D as provideSelectUi,h as useCollectionContext,g as useCollectionItem,v as useSelectContentContext,b as useSelectGroupContext,E as useSelectItemAlignedPositionContext,S as useSelectItemContext,w as useSelectPopupElementContext,p as useSelectRootContext,O as useSelectUi};
@@ -1 +1 @@
1
- import e from"../popper/popper-arrow.js";import{useSelectContentContext as t,useSelectRootContext as n,useSelectUi as r}from"./context.js";import{computed as i,createBlock as a,createCommentVNode as o,defineComponent as s,normalizeClass as c,openBlock as l,renderSlot as u,unref as d,withCtx as f}from"vue";var p=s({name:`SelectArrow`,__name:`select-arrow`,setup(s){let{open:p}=n(`SelectArrow`),{position:m}=t(`SelectArrow`),h=r(`arrow`),g=i(()=>p.value&&m.value===`popper`);return(t,n)=>g.value?(l(),a(d(e),{key:0,class:c(d(h))},{default:f(()=>[u(t.$slots,`default`)]),_:3},8,[`class`])):o(`v-if`,!0)}});export{p as default};
1
+ import e from"../popper/popper-arrow.js";import{useSelectContentContext as t,useSelectRootContext as n}from"./context.js";import{computed as r,createBlock as i,createCommentVNode as a,defineComponent as o,openBlock as s,renderSlot as c,unref as l,withCtx as u}from"vue";var d=o({name:`SelectArrow`,__name:`select-arrow`,setup(o){let{open:d}=n(`SelectArrow`),{position:f}=t(`SelectArrow`),p=r(()=>d.value&&f.value===`popper`);return(t,n)=>p.value?(s(),i(l(e),{key:0},{default:u(()=>[c(t.$slots,`default`)]),_:3})):a(`v-if`,!0)}});export{d as default};
@@ -1,13 +1,13 @@
1
1
  import { PopperArrowProps } from "../popper/types.js";
2
2
  import "./types.js";
3
- import * as vue736 from "vue";
3
+ import * as vue1147 from "vue";
4
4
 
5
5
  //#region src/components/select/select-arrow.vue.d.ts
6
6
  declare var __VLS_8: {};
7
7
  type __VLS_Slots = {} & {
8
8
  default?: (props: typeof __VLS_8) => any;
9
9
  };
10
- declare const __VLS_base: vue736.DefineComponent<PopperArrowProps, {}, {}, {}, {}, vue736.ComponentOptionsMixin, vue736.ComponentOptionsMixin, {}, string, vue736.PublicProps, Readonly<PopperArrowProps> & Readonly<{}>, {}, {}, {}, {}, string, vue736.ComponentProvideOptions, false, {}, any>;
10
+ declare const __VLS_base: vue1147.DefineComponent<PopperArrowProps, {}, {}, {}, {}, vue1147.ComponentOptionsMixin, vue1147.ComponentOptionsMixin, {}, string, vue1147.PublicProps, Readonly<PopperArrowProps> & Readonly<{}>, {}, {}, {}, {}, string, vue1147.ComponentProvideOptions, false, {}, any>;
11
11
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
12
12
  declare const _default: typeof __VLS_export;
13
13
  type __VLS_WithSlots<T, S> = T & {
@@ -1 +1 @@
1
- import{tryFocusFirst as e}from"../../shared/focus.js";import{useBodyScrollLock as t}from"../../composables/use-body-scroll-lock.js";import{useDismissableLayer as n}from"../../composables/use-dismissable-layer.js";import{useForwardElement as r}from"../../composables/use-forward-element.js";import{useFocusGuards as ee}from"../../composables/use-focus-guards.js";import{useFocusScope as te}from"../../composables/use-focus-scope.js";import{useHideOthers as i}from"../../composables/use-hide-others.js";import{useOmitProps as a}from"../../composables/use-props.js";import{useTypeahead as o}from"../../composables/use-typeahead.js";import s from"../popper/popper-positioner.js";import{provideSelectContentContext as c,useCollectionContext as l,useSelectPopupElementContext as u,useSelectRootContext as d,useSelectUi as ne}from"./context.js";import{CONTENT_MARGIN as f}from"./shared.js";import re from"./select-popper-popup.js";import ie from"./select-item-aligned-popup.js";import ae from"./select-item-aligned-positioner.js";import{computed as p,createBlock as m,createVNode as h,defineComponent as g,mergeProps as _,normalizeClass as v,onWatcherCleanup as y,openBlock as b,renderSlot as x,unref as S,watch as C,watchEffect as w,withCtx as T,withModifiers as E}from"vue";var D=g({name:`SelectContentImpl`,__name:`select-content-impl`,props:{position:{default:`popper`},bodyLock:{type:Boolean,default:!0},popupProps:{},placement:{},side:{},sideOffset:{},sideFlip:{type:Boolean},align:{default:`start`},alignOffset:{},alignFlip:{type:Boolean},avoidCollisions:{type:Boolean,default:!0},collisionBoundary:{},collisionPadding:{default:f},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},positionStrategy:{},updatePositionStrategy:{},disableUpdateOnLayoutShift:{type:Boolean},prioritizePosition:{type:Boolean},reference:{}},emits:[`closeAutoFocus`,`escapeKeyDown`,`pointerDownOutside`],setup(f,{emit:g}){let D=f,O=g,k=ne(),A=p(()=>k.value?.positioner),j=p(()=>k.value?.popup),{onOpenChange:M,dataState:N,modelValue:P,isMultiple:F,dir:I,contentId:L,triggerElement:R,triggerPointerDownPosition:z,resetTriggerPointerDownPosition:B}=d(`SelectContentImpl`),{onPopupElementChange:V}=u(`SelectContentImpl`),{onContainerElementChange:H,getOrderedItems:U,getOrderedElements:W}=l(`SelectContentImpl`),[G,K]=r(),[q,J]=r(e=>{V(e),H(e)}),{search:oe,handleTypeaheadSearch:se}=o(),{pointerEvents:ce}=n(G,{disableOutsidePointerEvents:!0,onEscapeKeyDown:e=>{O(`escapeKeyDown`,e)},onPointerDownOutside:e=>{O(`pointerDownOutside`,e)},onFocusOutside:e=>{e.preventDefault()},onDismiss:()=>{M(!1)}}),{onKeydown:le}=te(G,{onOpenAutoFocus:e=>{e.preventDefault()},onCloseAutoFocus:e=>{O(`closeAutoFocus`,e),!e.defaultPrevented&&(R.value?.focus({preventScroll:!0}),e.preventDefault())}}),{isPositioned:Y,focusSelectedItem:X}=c({position:p(()=>D.position),modelValue:P,isMultiple:F,search:oe,popupElement:q}),ue=a(D,[`position`,`bodyLock`,`popupProps`]),Z=p(()=>({display:`flex`,flexDirection:`column`,outline:`none`,pointerEvents:ce.value})),Q=t=>{le(t);let n=t.ctrlKey||t.altKey||t.metaKey;if(t.key===`Tab`&&t.preventDefault(),!n&&t.key.length===1&&se(t.key,U()),[`ArrowUp`,`ArrowDown`,`Home`,`End`].includes(t.key)){let n=[...W()];if([`ArrowUp`,`End`].includes(t.key)&&(n=n.slice().reverse()),[`ArrowUp`,`ArrowDown`].includes(t.key)){let e=t.target,r=n.indexOf(e);n=n.slice(r+1)}setTimeout(()=>{e(n)}),t.preventDefault()}},$=()=>{Y.value=!0};return ee(),i(q),C(Y,()=>{X()}),w(()=>{D.bodyLock&&y(t())}),w(()=>{if(!q.value)return;let e={x:0,y:0},t=t=>{let{x:n,y:r}=z.value??{x:0,y:0};e={x:Math.abs(Math.round(t.pageX)-n),y:Math.abs(Math.round(t.pageY)-r)}},n=n=>{n.pointerType!==`touch`&&(e.x<=10&&e.y<=10?n.preventDefault():q.value?.contains(n.target)||M(!1),document.removeEventListener(`pointermove`,t),B())};z.value!==null&&(document.addEventListener(`pointermove`,t),document.addEventListener(`pointerup`,n,{capture:!0,once:!0})),y(()=>{document.removeEventListener(`pointermove`,t),document.removeEventListener(`pointerup`,n,{capture:!0})})}),(e,t)=>f.position===`popper`?(b(),m(S(s),_({key:0,ref:S(K)},S(ue),{class:A.value,onContextmenu:t[0]||=E(()=>{},[`prevent`]),onPlaced:$,onKeydown:Q}),{default:T(()=>[h(re,_({id:S(L),ref:S(J)},f.popupProps,{class:j.value,"data-dismissable-layer":``,"data-state":S(N),dir:S(I),role:`listbox`,tabindex:`-1`,style:Z.value}),{default:T(()=>[x(e.$slots,`default`)]),_:3},16,[`id`,`class`,`data-state`,`dir`,`style`])]),_:3},16,[`class`])):(b(),m(ae,{key:1,ref:S(K),class:v(A.value),onContextmenu:t[1]||=E(()=>{},[`prevent`]),onPlaced:$,onKeydown:Q},{default:T(()=>[h(ie,_({id:S(L),ref:S(J)},f.popupProps,{class:j.value,"data-dismissable-layer":``,"data-state":S(N),dir:S(I),role:`listbox`,tabindex:`-1`,style:Z.value}),{default:T(()=>[x(e.$slots,`default`)]),_:3},16,[`id`,`class`,`data-state`,`dir`,`style`])]),_:3},8,[`class`]))}});export{D as default};
1
+ import{tryFocusFirst as e}from"../../shared/focus.js";import{useBodyScrollLock as t}from"../../composables/use-body-scroll-lock.js";import{useDismissableLayer as n}from"../../composables/use-dismissable-layer.js";import{useForwardElement as r}from"../../composables/use-forward-element.js";import{useFocusGuards as ee}from"../../composables/use-focus-guards.js";import{useFocusScope as te}from"../../composables/use-focus-scope.js";import{useHideOthers as i}from"../../composables/use-hide-others.js";import{useOmitProps as a}from"../../composables/use-props.js";import{useTypeahead as ne}from"../../composables/use-typeahead.js";import re from"../popper/popper-positioner.js";import{provideSelectContentContext as o,useCollectionContext as s,useSelectPopupElementContext as c,useSelectRootContext as l}from"./context.js";import{CONTENT_MARGIN as u}from"./shared.js";import d from"./select-popper-popup.js";import f from"./select-item-aligned-popup.js";import p from"./select-item-aligned-positioner.js";import{computed as m,createBlock as h,createVNode as g,defineComponent as _,mergeProps as v,onWatcherCleanup as y,openBlock as b,renderSlot as x,unref as S,watch as C,watchEffect as w,withCtx as T,withModifiers as E}from"vue";var D=_({name:`SelectContentImpl`,__name:`select-content-impl`,props:{position:{default:`popper`},bodyLock:{type:Boolean,default:!0},popupProps:{},placement:{},side:{},sideOffset:{},sideFlip:{type:Boolean},align:{default:`start`},alignOffset:{},alignFlip:{type:Boolean},avoidCollisions:{type:Boolean,default:!0},collisionBoundary:{},collisionPadding:{default:u},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},positionStrategy:{},updatePositionStrategy:{},disableUpdateOnLayoutShift:{type:Boolean},prioritizePosition:{type:Boolean},reference:{}},emits:[`closeAutoFocus`,`escapeKeyDown`,`pointerDownOutside`],setup(u,{emit:_}){let D=u,O=_,{onOpenChange:k,dataState:A,modelValue:j,isMultiple:M,dir:N,contentId:P,triggerElement:F,triggerPointerDownPosition:I,resetTriggerPointerDownPosition:L}=l(`SelectContentImpl`),{onPopupElementChange:R}=c(`SelectContentImpl`),{onContainerElementChange:z,getOrderedItems:B,getOrderedElements:V}=s(`SelectContentImpl`),[H,U]=r(),[W,G]=r(e=>{R(e),z(e)}),{search:K,handleTypeaheadSearch:q}=ne(),{pointerEvents:J}=n(H,{disableOutsidePointerEvents:!0,onEscapeKeyDown:e=>{O(`escapeKeyDown`,e)},onPointerDownOutside:e=>{O(`pointerDownOutside`,e)},onFocusOutside:e=>{e.preventDefault()},onDismiss:()=>{k(!1)}}),{onKeydown:Y}=te(H,{onOpenAutoFocus:e=>{e.preventDefault()},onCloseAutoFocus:e=>{O(`closeAutoFocus`,e),!e.defaultPrevented&&(F.value?.focus({preventScroll:!0}),e.preventDefault())}}),{isPositioned:X,focusSelectedItem:ie}=o({position:m(()=>D.position),modelValue:j,isMultiple:M,search:K,popupElement:W}),ae=a(D,[`position`,`bodyLock`,`popupProps`]),Z=m(()=>({display:`flex`,flexDirection:`column`,outline:`none`,pointerEvents:J.value})),Q=t=>{Y(t);let n=t.ctrlKey||t.altKey||t.metaKey;if(t.key===`Tab`&&t.preventDefault(),!n&&t.key.length===1&&q(t.key,B()),[`ArrowUp`,`ArrowDown`,`Home`,`End`].includes(t.key)){let n=[...V()];if([`ArrowUp`,`End`].includes(t.key)&&(n=n.slice().reverse()),[`ArrowUp`,`ArrowDown`].includes(t.key)){let e=t.target,r=n.indexOf(e);n=n.slice(r+1)}setTimeout(()=>{e(n)}),t.preventDefault()}},$=()=>{X.value=!0};return ee(),i(W),C(X,()=>{ie()}),w(()=>{D.bodyLock&&y(t())}),w(()=>{if(!W.value)return;let e={x:0,y:0},t=t=>{let{x:n,y:r}=I.value??{x:0,y:0};e={x:Math.abs(Math.round(t.pageX)-n),y:Math.abs(Math.round(t.pageY)-r)}},n=n=>{n.pointerType!==`touch`&&(e.x<=10&&e.y<=10?n.preventDefault():W.value?.contains(n.target)||k(!1),document.removeEventListener(`pointermove`,t),L())};I.value!==null&&(document.addEventListener(`pointermove`,t),document.addEventListener(`pointerup`,n,{capture:!0,once:!0})),y(()=>{document.removeEventListener(`pointermove`,t),document.removeEventListener(`pointerup`,n,{capture:!0})})}),(e,t)=>u.position===`popper`?(b(),h(S(re),v({key:0,ref:S(U)},S(ae),{onContextmenu:t[0]||=E(()=>{},[`prevent`]),onPlaced:$,onKeydown:Q}),{default:T(()=>[g(d,v({id:S(P),ref:S(G)},u.popupProps,{"data-dismissable-layer":``,"data-state":S(A),dir:S(N),role:`listbox`,tabindex:`-1`,style:Z.value}),{default:T(()=>[x(e.$slots,`default`)]),_:3},16,[`id`,`data-state`,`dir`,`style`])]),_:3},16)):(b(),h(p,{key:1,ref:S(U),onContextmenu:t[1]||=E(()=>{},[`prevent`]),onPlaced:$,onKeydown:Q},{default:T(()=>[g(f,v({id:S(P),ref:S(G)},u.popupProps,{"data-dismissable-layer":``,"data-state":S(A),dir:S(N),role:`listbox`,tabindex:`-1`,style:Z.value}),{default:T(()=>[x(e.$slots,`default`)]),_:3},16,[`id`,`data-state`,`dir`,`style`])]),_:3},512))}});export{D as default};
@@ -1,7 +1,7 @@
1
1
  import { PointerDownOutsideEvent } from "../../types/event.js";
2
2
  import { SelectContentProps, SelectPosition } from "./types.js";
3
3
  import "../../index.js";
4
- import * as vue684 from "vue";
4
+ import * as vue1090 from "vue";
5
5
 
6
6
  //#region src/components/select/select-content.vue.d.ts
7
7
  declare var __VLS_8: {}, __VLS_22: {};
@@ -10,11 +10,11 @@ type __VLS_Slots = {} & {
10
10
  } & {
11
11
  default?: (props: typeof __VLS_22) => any;
12
12
  };
13
- declare const __VLS_base: vue684.DefineComponent<SelectContentProps, {}, {}, {}, {}, vue684.ComponentOptionsMixin, vue684.ComponentOptionsMixin, {
13
+ declare const __VLS_base: vue1090.DefineComponent<SelectContentProps, {}, {}, {}, {}, vue1090.ComponentOptionsMixin, vue1090.ComponentOptionsMixin, {
14
14
  escapeKeyDown: (event: KeyboardEvent) => any;
15
15
  pointerDownOutside: (event: PointerDownOutsideEvent) => any;
16
16
  closeAutoFocus: (event: Event) => any;
17
- }, string, vue684.PublicProps, Readonly<SelectContentProps> & Readonly<{
17
+ }, string, vue1090.PublicProps, Readonly<SelectContentProps> & Readonly<{
18
18
  onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
19
19
  onPointerDownOutside?: ((event: PointerDownOutsideEvent) => any) | undefined;
20
20
  onCloseAutoFocus?: ((event: Event) => any) | undefined;
@@ -23,7 +23,7 @@ declare const __VLS_base: vue684.DefineComponent<SelectContentProps, {}, {}, {},
23
23
  prioritizePosition: boolean;
24
24
  position: SelectPosition;
25
25
  bodyLock: boolean;
26
- }, {}, {}, {}, string, vue684.ComponentProvideOptions, false, {}, any>;
26
+ }, {}, {}, {}, string, vue1090.ComponentProvideOptions, false, {}, any>;
27
27
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
28
28
  declare const _default: typeof __VLS_export;
29
29
  type __VLS_WithSlots<T, S> = T & {
@@ -1,12 +1,12 @@
1
1
  import { SelectGroupLabelProps } from "./types.js";
2
- import * as vue715 from "vue";
2
+ import * as vue1121 from "vue";
3
3
 
4
4
  //#region src/components/select/select-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: vue715.DefineComponent<SelectGroupLabelProps, {}, {}, {}, {}, vue715.ComponentOptionsMixin, vue715.ComponentOptionsMixin, {}, string, vue715.PublicProps, Readonly<SelectGroupLabelProps> & Readonly<{}>, {}, {}, {}, {}, string, vue715.ComponentProvideOptions, false, {}, any>;
9
+ declare const __VLS_base: vue1121.DefineComponent<SelectGroupLabelProps, {}, {}, {}, {}, vue1121.ComponentOptionsMixin, vue1121.ComponentOptionsMixin, {}, string, vue1121.PublicProps, Readonly<SelectGroupLabelProps> & Readonly<{}>, {}, {}, {}, {}, string, vue1121.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 { SelectGroupProps } from "./types.js";
2
- import * as vue710 from "vue";
2
+ import * as vue1111 from "vue";
3
3
 
4
4
  //#region src/components/select/select-group.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: vue710.DefineComponent<SelectGroupProps, {}, {}, {}, {}, vue710.ComponentOptionsMixin, vue710.ComponentOptionsMixin, {}, string, vue710.PublicProps, Readonly<SelectGroupProps> & Readonly<{}>, {}, {}, {}, {}, string, vue710.ComponentProvideOptions, false, {}, any>;
9
+ declare const __VLS_base: vue1111.DefineComponent<SelectGroupProps, {}, {}, {}, {}, vue1111.ComponentOptionsMixin, vue1111.ComponentOptionsMixin, {}, string, vue1111.PublicProps, Readonly<SelectGroupProps> & Readonly<{}>, {}, {}, {}, {}, string, vue1111.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 +1 @@
1
- import{useForwardElement as e}from"../../composables/use-forward-element.js";import{useSelectPopupElementContext as t}from"./context.js";import{createElementBlock as n,defineComponent as r,openBlock as i,renderSlot as a,unref as o}from"vue";var s=r({name:`SelectItemAlignedPopup`,__name:`select-item-aligned-popup`,setup(r){let{onPopupElementChange:s}=t(`SelectItemAlignedPopup`),[c,l]=e(s);return(e,t)=>(i(),n(`div`,{ref:o(l),style:{"box-sizing":`border-box`,"max-height":`100%`}},[a(e.$slots,`default`)],512))}});export{s as default};
1
+ import{useForwardElement as e}from"../../composables/use-forward-element.js";import{useSelectPopupElementContext as t,useSelectUi as n}from"./context.js";import{createElementBlock as r,defineComponent as i,normalizeClass as a,openBlock as o,renderSlot as s,unref as c}from"vue";var l=i({name:`SelectItemAlignedPopup`,__name:`select-item-aligned-popup`,setup(i){let{onPopupElementChange:l}=t(`SelectItemAlignedPopup`),[u,d]=e(l),f=n(`popup`);return(e,t)=>(o(),r(`div`,{ref:c(d),class:a(c(f)),style:{"box-sizing":`border-box`,"max-height":`100%`}},[s(e.$slots,`default`)],2))}});export{l as default};
@@ -1 +1 @@
1
- import{clamp as e}from"../../shared/value.js";import{provideSelectItemAlignedPositionContext as t,useCollectionContext as n,useSelectContentContext as r,useSelectPopupElementContext as i,useSelectRootContext as a}from"./context.js";import{CONTENT_MARGIN as o}from"./shared.js";import{createElementBlock as s,defineComponent as c,nextTick as l,normalizeStyle as u,onMounted as d,openBlock as f,renderSlot as p,shallowRef as m}from"vue";import{useResizeObserver as h}from"@vueuse/core";var g=c({name:`SelectItemAlignedPosition`,__name:`select-item-aligned-positioner`,emits:[`placed`],setup(c,{emit:g}){let _=g,{dir:v,triggerElement:y,valueElement:b}=a(`SelectItemAlignedPosition`),{viewportElement:x,selectedItemElement:S,selectedItemTextElement:C,focusSelectedItem:w}=r(`SelectItemAlignedPosition`),{getOrderedElements:T}=n(`SelectItemAlignedPosition`),E=m(),{popupElement:D}=i(`SelectItemAlignedPosition`),O=m(!1),k=!0;function A(){if(!y.value||!b.value||!E.value||!D.value||!x.value||!S.value||!C.value)return;let t=y.value.getBoundingClientRect(),n=D.value.getBoundingClientRect(),r=b.value.getBoundingClientRect(),i=C.value.getBoundingClientRect();if(v.value!==`rtl`){let a=i.left-n.left,s=r.left-a,c=t.left-s,l=t.width+c,u=Math.max(l,n.width),d=window.innerWidth-o,f=e(s,o,Math.max(o,d-u));E.value.style.minWidth=`${l}px`,E.value.style.left=`${f}px`}else{let a=n.right-i.right,s=window.innerWidth-r.right-a,c=window.innerWidth-t.right-s,l=t.width+c,u=Math.max(l,n.width),d=window.innerWidth-o,f=e(s,o,Math.max(o,d-u));E.value.style.minWidth=`${l}px`,E.value.style.right=`${f}px`}let a=T(),s=window.innerHeight-o*2,c=x.value.scrollHeight,l=window.getComputedStyle(D.value),u=Number.parseInt(l.borderTopWidth,10),d=Number.parseInt(l.paddingTop,10),f=Number.parseInt(l.borderBottomWidth,10),p=Number.parseInt(l.paddingBottom,10),m=u+d+c+p+f,h=Math.min(S.value.offsetHeight*5,m),g=window.getComputedStyle(x.value),w=Number.parseInt(g.paddingTop,10),k=Number.parseInt(g.paddingBottom,10),A=t.top+t.height/2-o,j=s-A,M=S.value.offsetHeight/2,N=S.value.offsetTop+M,P=u+d+N,F=m-P;if(P<=A){let e=S.value===a[a.length-1];E.value.style.bottom=`0px`;let t=D.value.clientHeight-x.value.offsetTop-x.value.offsetHeight,n=P+Math.max(j,M+(e?k:0)+t+f);E.value.style.height=`${n}px`}else{let e=S.value===a[0];E.value.style.top=`0px`;let t=Math.max(A,u+x.value.offsetTop+(e?w:0)+M)+F;E.value.style.height=`${t}px`,x.value.scrollTop=P-A+x.value.offsetTop}E.value.style.margin=`${o}px 0`,E.value.style.minHeight=`${h}px`,E.value.style.maxHeight=`${s}px`,_(`placed`),requestAnimationFrame(()=>{O.value=!0})}let j=m(``),M=()=>{D.value&&(j.value=window.getComputedStyle(D.value).zIndex)};function N(e){!e||!k||(A(),w(),k=!1)}return t({positionerElement:E,shouldExpandOnScroll:O,onScrollButtonChange:N}),h(y,()=>{A()}),d(async()=>{await l(),A(),M()}),(e,t)=>(f(),s(`div`,{ref_key:`positionerElement`,ref:E,style:u([{display:`flex`,"flex-direction":`column`,position:`fixed`},{zIndex:j.value}])},[p(e.$slots,`default`)],4))}});export{g as default};
1
+ import{clamp as e}from"../../shared/value.js";import{provideSelectItemAlignedPositionContext as t,useCollectionContext as n,useSelectContentContext as r,useSelectPopupElementContext as i,useSelectRootContext as a,useSelectUi as o}from"./context.js";import{CONTENT_MARGIN as s}from"./shared.js";import{createElementBlock as c,defineComponent as l,nextTick as u,normalizeClass as d,normalizeStyle as f,onMounted as p,openBlock as m,renderSlot as h,shallowRef as g,unref as _}from"vue";import{useResizeObserver as v}from"@vueuse/core";var y=l({name:`SelectItemAlignedPosition`,__name:`select-item-aligned-positioner`,emits:[`placed`],setup(l,{emit:y}){let b=y,x=o(`positioner`),{dir:S,triggerElement:C,valueElement:w}=a(`SelectItemAlignedPosition`),{viewportElement:T,selectedItemElement:E,selectedItemTextElement:D,focusSelectedItem:O}=r(`SelectItemAlignedPosition`),{getOrderedElements:k}=n(`SelectItemAlignedPosition`),A=g(),{popupElement:j}=i(`SelectItemAlignedPosition`),M=g(!1),N=!0;function P(){if(!C.value||!w.value||!A.value||!j.value||!T.value||!E.value||!D.value)return;let t=C.value.getBoundingClientRect(),n=j.value.getBoundingClientRect(),r=w.value.getBoundingClientRect(),i=D.value.getBoundingClientRect();if(S.value!==`rtl`){let a=i.left-n.left,o=r.left-a,c=t.left-o,l=t.width+c,u=Math.max(l,n.width),d=window.innerWidth-s,f=e(o,s,Math.max(s,d-u));A.value.style.minWidth=`${l}px`,A.value.style.left=`${f}px`}else{let a=n.right-i.right,o=window.innerWidth-r.right-a,c=window.innerWidth-t.right-o,l=t.width+c,u=Math.max(l,n.width),d=window.innerWidth-s,f=e(o,s,Math.max(s,d-u));A.value.style.minWidth=`${l}px`,A.value.style.right=`${f}px`}let a=k(),o=window.innerHeight-s*2,c=T.value.scrollHeight,l=window.getComputedStyle(j.value),u=Number.parseInt(l.borderTopWidth,10),d=Number.parseInt(l.paddingTop,10),f=Number.parseInt(l.borderBottomWidth,10),p=Number.parseInt(l.paddingBottom,10),m=u+d+c+p+f,h=Math.min(E.value.offsetHeight*5,m),g=window.getComputedStyle(T.value),_=Number.parseInt(g.paddingTop,10),v=Number.parseInt(g.paddingBottom,10),y=t.top+t.height/2-s,x=o-y,O=E.value.offsetHeight/2,N=E.value.offsetTop+O,P=u+d+N,F=m-P;if(P<=y){let e=E.value===a[a.length-1];A.value.style.bottom=`0px`;let t=j.value.clientHeight-T.value.offsetTop-T.value.offsetHeight,n=P+Math.max(x,O+(e?v:0)+t+f);A.value.style.height=`${n}px`}else{let e=E.value===a[0];A.value.style.top=`0px`;let t=Math.max(y,u+T.value.offsetTop+(e?_:0)+O)+F;A.value.style.height=`${t}px`,T.value.scrollTop=P-y+T.value.offsetTop}A.value.style.margin=`${s}px 0`,A.value.style.minHeight=`${h}px`,A.value.style.maxHeight=`${o}px`,b(`placed`),requestAnimationFrame(()=>{M.value=!0})}let F=g(``),I=()=>{j.value&&(F.value=window.getComputedStyle(j.value).zIndex)};function L(e){!e||!N||(P(),O(),N=!1)}return t({positionerElement:A,shouldExpandOnScroll:M,onScrollButtonChange:L}),v(C,()=>{P()}),p(async()=>{await u(),P(),I()}),(e,t)=>(m(),c(`div`,{ref_key:`positionerElement`,ref:A,class:d(_(x)),style:f([{display:`flex`,"flex-direction":`column`,position:`fixed`},{zIndex:F.value}])},[h(e.$slots,`default`)],6))}});export{y as default};
@@ -1,16 +1,16 @@
1
1
  import { AsTag } from "../primitive/types.js";
2
2
  import "../primitive/index.js";
3
3
  import { SelectItemIndicatorProps } from "./types.js";
4
- import * as vue720 from "vue";
4
+ import * as vue1136 from "vue";
5
5
 
6
6
  //#region src/components/select/select-item-indicator.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: vue720.DefineComponent<SelectItemIndicatorProps, {}, {}, {}, {}, vue720.ComponentOptionsMixin, vue720.ComponentOptionsMixin, {}, string, vue720.PublicProps, Readonly<SelectItemIndicatorProps> & Readonly<{}>, {
12
- as: AsTag | vue720.Component;
13
- }, {}, {}, {}, string, vue720.ComponentProvideOptions, false, {}, any>;
11
+ declare const __VLS_base: vue1136.DefineComponent<SelectItemIndicatorProps, {}, {}, {}, {}, vue1136.ComponentOptionsMixin, vue1136.ComponentOptionsMixin, {}, string, vue1136.PublicProps, Readonly<SelectItemIndicatorProps> & Readonly<{}>, {
12
+ as: AsTag | vue1136.Component;
13
+ }, {}, {}, {}, string, vue1136.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 { SelectItemTextProps } from "./types.js";
2
- import * as vue700 from "vue";
2
+ import * as vue1116 from "vue";
3
3
 
4
4
  //#region src/components/select/select-item-text.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: vue700.DefineComponent<SelectItemTextProps, {}, {}, {}, {}, vue700.ComponentOptionsMixin, vue700.ComponentOptionsMixin, {}, string, vue700.PublicProps, Readonly<SelectItemTextProps> & Readonly<{}>, {}, {}, {}, {}, string, vue700.ComponentProvideOptions, false, {}, any>;
9
+ declare const __VLS_base: vue1116.DefineComponent<SelectItemTextProps, {}, {}, {}, {}, vue1116.ComponentOptionsMixin, vue1116.ComponentOptionsMixin, {}, string, vue1116.PublicProps, Readonly<SelectItemTextProps> & Readonly<{}>, {}, {}, {}, {}, string, vue1116.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 & {