@soybeanjs/headless 0.0.16 → 0.0.18

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 (239) 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-title.vue.d.ts +2 -2
  11. package/dist/components/alert/context.d.ts +2 -2
  12. package/dist/components/alert-dialog/alert-dialog-close.vue.d.ts +2 -2
  13. package/dist/components/alert-dialog/alert-dialog-content.vue.d.ts +6 -6
  14. package/dist/components/alert-dialog/alert-dialog-root.vue.d.ts +4 -4
  15. package/dist/components/aspect-ratio/aspect-ratio.vue.d.ts +3 -3
  16. package/dist/components/avatar/avatar-fallback.vue.d.ts +2 -2
  17. package/dist/components/avatar/avatar-image.vue.d.ts +4 -4
  18. package/dist/components/avatar/avatar-root.vue.d.ts +2 -2
  19. package/dist/components/avatar/context.d.ts +2 -2
  20. package/dist/components/badge/badge-content.vue.d.ts +2 -2
  21. package/dist/components/badge/badge-root.vue.d.ts +4 -4
  22. package/dist/components/badge/context.d.ts +2 -2
  23. package/dist/components/breadcrumb/breadcrumb-ellipsis.vue.d.ts +2 -2
  24. package/dist/components/breadcrumb/breadcrumb-item.vue.d.ts +2 -2
  25. package/dist/components/breadcrumb/breadcrumb-link.vue.d.ts +2 -2
  26. package/dist/components/breadcrumb/breadcrumb-list.vue.d.ts +2 -2
  27. package/dist/components/breadcrumb/breadcrumb-page.vue.d.ts +2 -2
  28. package/dist/components/breadcrumb/breadcrumb-root.vue.d.ts +2 -2
  29. package/dist/components/breadcrumb/breadcrumb-separator.vue.d.ts +2 -2
  30. package/dist/components/breadcrumb/context.d.ts +2 -2
  31. package/dist/components/button/button.vue.d.ts +5 -5
  32. package/dist/components/card/card-content.vue.d.ts +2 -2
  33. package/dist/components/card/card-description.vue.d.ts +2 -2
  34. package/dist/components/card/card-footer.vue.d.ts +2 -2
  35. package/dist/components/card/card-header.vue.d.ts +2 -2
  36. package/dist/components/card/card-root.vue.d.ts +2 -2
  37. package/dist/components/card/card-title-root.vue.d.ts +2 -2
  38. package/dist/components/card/card-title.vue.d.ts +2 -2
  39. package/dist/components/card/context.d.ts +2 -2
  40. package/dist/components/checkbox/checkbox-control.vue.d.ts +2 -2
  41. package/dist/components/checkbox/checkbox-group-root.vue.d.ts +3 -3
  42. package/dist/components/checkbox/checkbox-indicator.vue.d.ts +4 -4
  43. package/dist/components/checkbox/checkbox-label.vue.d.ts +2 -2
  44. package/dist/components/checkbox/checkbox-root.vue.d.ts +4 -4
  45. package/dist/components/checkbox/context.d.ts +2 -2
  46. package/dist/components/collapsible/collapsible-content.vue.d.ts +2 -2
  47. package/dist/components/collapsible/collapsible-root.vue.d.ts +6 -6
  48. package/dist/components/collapsible/collapsible-trigger.vue.d.ts +4 -4
  49. package/dist/components/collapsible/context.d.ts +2 -2
  50. package/dist/components/config-provider/config-provider.vue.d.ts +3 -3
  51. package/dist/components/context-menu/context-menu-content.vue.d.ts +8 -8
  52. package/dist/components/context-menu/context-menu-root.vue.d.ts +4 -4
  53. package/dist/components/context-menu/context-menu-trigger.vue.d.ts +4 -4
  54. package/dist/components/dialog/context.d.ts +2 -2
  55. package/dist/components/dialog/dialog-close.vue.d.ts +2 -2
  56. package/dist/components/dialog/dialog-content.vue.d.ts +6 -6
  57. package/dist/components/dialog/dialog-description.vue.d.ts +2 -2
  58. package/dist/components/dialog/dialog-footer.vue.d.ts +2 -2
  59. package/dist/components/dialog/dialog-header.vue.d.ts +2 -2
  60. package/dist/components/dialog/dialog-overlay.vue.d.ts +2 -2
  61. package/dist/components/dialog/dialog-root.vue.d.ts +4 -4
  62. package/dist/components/dialog/dialog-title.vue.d.ts +2 -2
  63. package/dist/components/dialog/dialog-trigger.vue.d.ts +2 -2
  64. package/dist/components/dropdown-menu/dropdown-menu-content.vue.d.ts +8 -8
  65. package/dist/components/dropdown-menu/dropdown-menu-root.vue.d.ts +4 -4
  66. package/dist/components/dropdown-menu/dropdown-menu-trigger.vue.d.ts +4 -4
  67. package/dist/components/form/context.d.ts +2 -2
  68. package/dist/components/form/form-description.vue.d.ts +2 -2
  69. package/dist/components/form/form-error.vue.d.ts +2 -2
  70. package/dist/components/form/form-field.vue.d.ts +2 -2
  71. package/dist/components/form/form-label.vue.d.ts +2 -2
  72. package/dist/components/input/context.d.ts +2 -2
  73. package/dist/components/input/input-control.vue.d.ts +2 -2
  74. package/dist/components/input/input-root.vue.d.ts +4 -4
  75. package/dist/components/kbd/kbd.vue.d.ts +2 -2
  76. package/dist/components/layout/context.d.ts +2 -2
  77. package/dist/components/layout/layout-footer.vue.d.ts +2 -2
  78. package/dist/components/layout/layout-header.vue.d.ts +2 -2
  79. package/dist/components/layout/layout-main.vue.d.ts +2 -2
  80. package/dist/components/layout/layout-mobile.vue.d.ts +2 -2
  81. package/dist/components/layout/layout-rail.vue.d.ts +2 -2
  82. package/dist/components/layout/layout-root.vue.d.ts +4 -4
  83. package/dist/components/layout/layout-sidebar.vue.d.ts +2 -2
  84. package/dist/components/layout/layout-tab.vue.d.ts +2 -2
  85. package/dist/components/layout/layout-trigger.vue.d.ts +2 -2
  86. package/dist/components/link/link.vue.d.ts +4 -4
  87. package/dist/components/list/context.d.ts +2 -2
  88. package/dist/components/list/list-content.vue.d.ts +2 -2
  89. package/dist/components/list/list-description.vue.d.ts +2 -2
  90. package/dist/components/list/list-item.vue.d.ts +2 -2
  91. package/dist/components/list/list-root.vue.d.ts +2 -2
  92. package/dist/components/list/list-title.vue.d.ts +2 -2
  93. package/dist/components/listbox/context.d.ts +2 -2
  94. package/dist/components/listbox/listbox-content.vue.d.ts +2 -2
  95. package/dist/components/listbox/listbox-filter.vue.d.ts +4 -4
  96. package/dist/components/listbox/listbox-group-label.vue.d.ts +2 -2
  97. package/dist/components/listbox/listbox-group.vue.d.ts +2 -2
  98. package/dist/components/listbox/listbox-item-indicator.vue.d.ts +4 -4
  99. package/dist/components/listbox/listbox-item.vue.d.ts +5 -5
  100. package/dist/components/listbox/listbox-root.vue.d.ts +7 -7
  101. package/dist/components/listbox/listbox-virtualizer.vue.d.ts +2 -2
  102. package/dist/components/menu/context.d.ts +2 -2
  103. package/dist/components/menu/menu-checkbox-group.vue.d.ts +3 -3
  104. package/dist/components/menu/menu-checkbox-item.vue.d.ts +4 -4
  105. package/dist/components/menu/menu-content.vue.d.ts +8 -8
  106. package/dist/components/menu/menu-group-label.vue.d.ts +2 -2
  107. package/dist/components/menu/menu-group.vue.d.ts +2 -2
  108. package/dist/components/menu/menu-item-indicator.vue.d.ts +4 -4
  109. package/dist/components/menu/menu-item.vue.d.ts +4 -4
  110. package/dist/components/menu/menu-radio-group.vue.d.ts +3 -3
  111. package/dist/components/menu/menu-radio-item.vue.d.ts +4 -4
  112. package/dist/components/menu/menu-root.vue.d.ts +4 -4
  113. package/dist/components/menu/menu-sub-content.vue.d.ts +8 -8
  114. package/dist/components/menu/menu-sub-trigger.vue.d.ts +2 -2
  115. package/dist/components/menu/menu-sub.vue.d.ts +4 -4
  116. package/dist/components/navigation-menu/context.d.ts +2 -2
  117. package/dist/components/navigation-menu/navigation-menu-content.vue.d.ts +4 -4
  118. package/dist/components/navigation-menu/navigation-menu-indicator.vue.d.ts +2 -2
  119. package/dist/components/navigation-menu/navigation-menu-item.vue.d.ts +2 -2
  120. package/dist/components/navigation-menu/navigation-menu-link.vue.d.ts +4 -4
  121. package/dist/components/navigation-menu/navigation-menu-list.vue.d.ts +2 -2
  122. package/dist/components/navigation-menu/navigation-menu-root.vue.d.ts +4 -4
  123. package/dist/components/navigation-menu/navigation-menu-sub-list.vue.d.ts +2 -2
  124. package/dist/components/navigation-menu/navigation-menu-trigger.vue.d.ts +4 -4
  125. package/dist/components/navigation-menu/navigation-menu-viewport.vue.d.ts +3 -3
  126. package/dist/components/number-input/context.d.ts +2 -2
  127. package/dist/components/number-input/number-input-control.vue.d.ts +2 -2
  128. package/dist/components/number-input/number-input-decrement.vue.d.ts +4 -4
  129. package/dist/components/number-input/number-input-increment.vue.d.ts +4 -4
  130. package/dist/components/number-input/number-input-root.vue.d.ts +4 -4
  131. package/dist/components/pagination/context.d.ts +2 -2
  132. package/dist/components/pagination/pagination-ellipsis.vue.d.ts +2 -2
  133. package/dist/components/pagination/pagination-first.vue.d.ts +2 -2
  134. package/dist/components/pagination/pagination-last.vue.d.ts +2 -2
  135. package/dist/components/pagination/pagination-list-item.vue.d.ts +2 -2
  136. package/dist/components/pagination/pagination-list.vue.d.ts +2 -2
  137. package/dist/components/pagination/pagination-next.vue.d.ts +2 -2
  138. package/dist/components/pagination/pagination-prev.vue.d.ts +2 -2
  139. package/dist/components/pagination/pagination-root.vue.d.ts +5 -5
  140. package/dist/components/popover/popover-anchor.vue.d.ts +2 -2
  141. package/dist/components/popover/popover-close.vue.d.ts +4 -4
  142. package/dist/components/popover/popover-popup.vue.d.ts +2 -2
  143. package/dist/components/popover/popover-positioner.js +1 -1
  144. package/dist/components/popover/popover-positioner.vue.d.ts +6 -6
  145. package/dist/components/popover/popover-root.vue.d.ts +4 -4
  146. package/dist/components/popover/popover-trigger.vue.d.ts +4 -4
  147. package/dist/components/popper/context.d.ts +2 -2
  148. package/dist/components/popper/popper-anchor.vue.d.ts +2 -2
  149. package/dist/components/popper/popper-arrow.vue.d.ts +2 -2
  150. package/dist/components/popper/popper-popup.vue.d.ts +2 -2
  151. package/dist/components/popper/popper-positioner.vue.d.ts +12 -12
  152. package/dist/components/popper/popper-root.vue.d.ts +2 -2
  153. package/dist/components/primitive/primitive.d.ts +2 -2
  154. package/dist/components/radio-group/context.d.ts +2 -2
  155. package/dist/components/radio-group/radio-group-control.vue.d.ts +2 -2
  156. package/dist/components/radio-group/radio-group-indicator.vue.d.ts +4 -4
  157. package/dist/components/radio-group/radio-group-item.vue.d.ts +4 -4
  158. package/dist/components/radio-group/radio-group-label.vue.d.ts +2 -2
  159. package/dist/components/radio-group/radio-group-root.vue.d.ts +3 -3
  160. package/dist/components/roving-focus/roving-focus-group.vue.d.ts +6 -6
  161. package/dist/components/roving-focus/roving-focus-item.vue.d.ts +3 -3
  162. package/dist/components/select/context.d.ts +2 -2
  163. package/dist/components/select/context.js +1 -1
  164. package/dist/components/select/select-arrow.js +1 -1
  165. package/dist/components/select/select-arrow.vue.d.ts +2 -2
  166. package/dist/components/select/select-content-impl.js +1 -1
  167. package/dist/components/select/select-content.vue.d.ts +6 -6
  168. package/dist/components/select/select-group-label.vue.d.ts +2 -2
  169. package/dist/components/select/select-group.vue.d.ts +2 -2
  170. package/dist/components/select/select-item-aligned-popup.js +1 -1
  171. package/dist/components/select/select-item-aligned-positioner.js +1 -1
  172. package/dist/components/select/select-item-indicator.vue.d.ts +4 -4
  173. package/dist/components/select/select-item-text.vue.d.ts +2 -2
  174. package/dist/components/select/select-item.vue.d.ts +4 -4
  175. package/dist/components/select/select-root.vue.d.ts +5 -5
  176. package/dist/components/select/select-scroll-down-button.vue.d.ts +2 -2
  177. package/dist/components/select/select-scroll-up-button.vue.d.ts +2 -2
  178. package/dist/components/select/select-separator.vue.d.ts +2 -2
  179. package/dist/components/select/select-trigger-icon.vue.d.ts +2 -2
  180. package/dist/components/select/select-trigger.vue.d.ts +4 -4
  181. package/dist/components/select/select-value.vue.d.ts +3 -3
  182. package/dist/components/select/select-viewport.vue.d.ts +2 -2
  183. package/dist/components/separator/context.d.ts +2 -2
  184. package/dist/components/separator/separator-label.vue.d.ts +2 -2
  185. package/dist/components/separator/separator-root.vue.d.ts +3 -3
  186. package/dist/components/slot/slot.d.ts +2 -2
  187. package/dist/components/switch/context.d.ts +2 -2
  188. package/dist/components/switch/switch-control.vue.d.ts +2 -2
  189. package/dist/components/switch/switch-root.vue.d.ts +3 -3
  190. package/dist/components/switch/switch-thumb.vue.d.ts +4 -4
  191. package/dist/components/tabs/context.d.ts +2 -2
  192. package/dist/components/tabs/tabs-content.vue.d.ts +2 -2
  193. package/dist/components/tabs/tabs-indicator.vue.d.ts +2 -2
  194. package/dist/components/tabs/tabs-list.vue.d.ts +2 -2
  195. package/dist/components/tabs/tabs-root.vue.d.ts +4 -4
  196. package/dist/components/tabs/tabs-trigger.vue.d.ts +4 -4
  197. package/dist/components/tag/tag.vue.d.ts +4 -4
  198. package/dist/components/textarea/context.d.ts +2 -2
  199. package/dist/components/textarea/textarea-control.vue.d.ts +2 -2
  200. package/dist/components/textarea/textarea-counter.vue.d.ts +2 -2
  201. package/dist/components/textarea/textarea-root.vue.d.ts +4 -4
  202. package/dist/components/toast/toast-action.vue.d.ts +4 -4
  203. package/dist/components/toast/toast-close.vue.d.ts +4 -4
  204. package/dist/components/toast/toast-description.vue.d.ts +2 -2
  205. package/dist/components/toast/toast-provider.vue.d.ts +3 -3
  206. package/dist/components/toast/toast-root.vue.d.ts +5 -5
  207. package/dist/components/toast/toast-title.vue.d.ts +2 -2
  208. package/dist/components/toast/toast-viewport.vue.d.ts +4 -4
  209. package/dist/components/tooltip/tooltip-popup.vue.d.ts +2 -2
  210. package/dist/components/tooltip/tooltip-positioner.vue.d.ts +4 -4
  211. package/dist/components/tooltip/tooltip-root.vue.d.ts +4 -4
  212. package/dist/components/tooltip/tooltip-trigger.vue.d.ts +4 -4
  213. package/dist/components/tree/tree-item.vue.d.ts +5 -5
  214. package/dist/components/tree/tree-root.vue.d.ts +3 -3
  215. package/dist/components/tree/tree-virtualizer-item.vue.d.ts +4 -4
  216. package/dist/components/tree/tree-virtualizer-root.vue.d.ts +3 -3
  217. package/dist/components/tree-menu/context.d.ts +2 -2
  218. package/dist/components/tree-menu/tree-menu-button.vue.d.ts +4 -4
  219. package/dist/components/tree-menu/tree-menu-collapsible.vue.d.ts +2 -2
  220. package/dist/components/tree-menu/tree-menu-group-label.vue.d.ts +2 -2
  221. package/dist/components/tree-menu/tree-menu-group-root.vue.d.ts +2 -2
  222. package/dist/components/tree-menu/tree-menu-group.vue.d.ts +4 -4
  223. package/dist/components/tree-menu/tree-menu-item.vue.d.ts +4 -4
  224. package/dist/components/tree-menu/tree-menu-root.vue.d.ts +4 -4
  225. package/dist/components/tree-menu/tree-menu-sub.vue.d.ts +4 -4
  226. package/dist/components/virtualizer/virtualizer-content.vue.d.ts +2 -2
  227. package/dist/components/virtualizer/virtualizer-item.vue.d.ts +2 -2
  228. package/dist/components/virtualizer/virtualizer-root.vue.d.ts +3 -3
  229. package/dist/components/visually-hidden/visually-hidden-input.vue.d.ts +3 -3
  230. package/dist/components/visually-hidden/visually-hidden.vue.d.ts +4 -4
  231. package/dist/composables/use-collection.d.ts +6 -6
  232. package/dist/composables/use-direction.d.ts +2 -2
  233. package/dist/composables/use-dismissable-layer.d.ts +2 -2
  234. package/dist/composables/use-exposed-element.d.ts +2 -2
  235. package/dist/composables/use-forward-element.d.ts +2 -2
  236. package/dist/composables/use-image-loading-status.d.ts +2 -2
  237. package/dist/composables/use-nonce.d.ts +2 -2
  238. package/dist/composables/use-presence.d.ts +2 -2
  239. package/package.json +1 -1
@@ -1,7 +1,7 @@
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 vue1293 from "vue";
4
+ import * as vue1469 from "vue";
5
5
  import { CSSProperties } from "vue";
6
6
  import * as _floating_ui_dom0 from "@floating-ui/dom";
7
7
  import * as _floating_ui_utils0 from "@floating-ui/utils";
@@ -11,19 +11,16 @@ declare var __VLS_1: {};
11
11
  type __VLS_Slots = {} & {
12
12
  default?: (props: typeof __VLS_1) => any;
13
13
  };
14
- declare const __VLS_base: vue1293.DefineComponent<PopperPositionerProps, {}, {}, {}, {}, vue1293.ComponentOptionsMixin, vue1293.ComponentOptionsMixin, {
14
+ declare const __VLS_base: vue1469.DefineComponent<PopperPositionerProps, {}, {}, {}, {}, vue1469.ComponentOptionsMixin, vue1469.ComponentOptionsMixin, {
15
15
  placed: () => any;
16
- }, string, vue1293.PublicProps, Readonly<PopperPositionerProps> & Readonly<{
16
+ }, string, vue1469.PublicProps, Readonly<PopperPositionerProps> & Readonly<{
17
17
  onPlaced?: (() => any) | undefined;
18
18
  }>, {
19
- dir: string;
20
- style: string | false | CSSProperties | vue1293.StyleValue[] | null;
19
+ style: string | false | CSSProperties | vue1469.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: vue1293.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,6 +111,7 @@ declare const __VLS_base: vue1293.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;
@@ -130,11 +130,11 @@ declare const __VLS_base: vue1293.DefineComponent<PopperPositionerProps, {}, {},
130
130
  'aria-colindex': string | number;
131
131
  'aria-colspan': string | number;
132
132
  'aria-controls': string;
133
- 'aria-current': "time" | (boolean | "true" | "false") | "page" | "step" | "location" | "date";
133
+ 'aria-current': "time" | "step" | (boolean | "true" | "false") | "page" | "location" | "date";
134
134
  'aria-describedby': string;
135
135
  'aria-details': string;
136
136
  'aria-disabled': boolean | "true" | "false";
137
- 'aria-dropeffect': "link" | "none" | "copy" | "execute" | "move" | "popup";
137
+ 'aria-dropeffect': "link" | "copy" | "none" | "execute" | "move" | "popup";
138
138
  'aria-errormessage': string;
139
139
  'aria-expanded': boolean | "true" | "false";
140
140
  'aria-flowto': string;
@@ -203,12 +203,11 @@ declare const __VLS_base: vue1293.DefineComponent<PopperPositionerProps, {}, {},
203
203
  is: string;
204
204
  exportparts: string;
205
205
  part: string;
206
- reference: _floating_ui_dom0.ReferenceElement;
206
+ align: Align;
207
207
  placement: Placement$1;
208
208
  side: _floating_ui_utils0.Side;
209
209
  sideOffset: number;
210
210
  sideFlip: boolean;
211
- align: Align;
212
211
  alignOffset: number;
213
212
  alignFlip: boolean;
214
213
  avoidCollisions: boolean;
@@ -221,7 +220,8 @@ declare const __VLS_base: vue1293.DefineComponent<PopperPositionerProps, {}, {},
221
220
  updatePositionStrategy: "optimized" | "always";
222
221
  disableUpdateOnLayoutShift: boolean;
223
222
  prioritizePosition: boolean;
224
- }, {}, {}, {}, string, vue1293.ComponentProvideOptions, false, {}, any>;
223
+ reference: _floating_ui_dom0.ReferenceElement;
224
+ }, {}, {}, {}, string, vue1469.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 vue1283 from "vue";
1
+ import * as vue1459 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: vue1283.DefineComponent<{}, {}, {}, {}, {}, vue1283.ComponentOptionsMixin, vue1283.ComponentOptionsMixin, {}, string, vue1283.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue1283.ComponentProvideOptions, true, {}, any>;
8
+ declare const __VLS_base: vue1459.DefineComponent<{}, {}, {}, {}, {}, vue1459.ComponentOptionsMixin, vue1459.ComponentOptionsMixin, {}, string, vue1459.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue1459.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 vue1647 from "vue";
4
+ import * as vue1209 from "vue";
5
5
 
6
6
  //#region src/components/radio-group/context.d.ts
7
7
 
8
- declare const provideRadioGroupUi: (ui: vue1647.ComputedRef<Partial<UiClass<RadioGroupUiSlot>>>) => vue1647.ComputedRef<Partial<UiClass<RadioGroupUiSlot>>>, useRadioGroupUi: <S extends RadioGroupUiSlot | undefined = undefined>(slot?: S | undefined) => S extends RadioGroupUiSlot ? vue1647.ComputedRef<ClassValue> : vue1647.ComputedRef<Partial<UiClass<RadioGroupUiSlot>>>;
8
+ declare const provideRadioGroupUi: (ui: vue1209.ComputedRef<Partial<UiClass<RadioGroupUiSlot>>>) => vue1209.ComputedRef<Partial<UiClass<RadioGroupUiSlot>>>, useRadioGroupUi: <S extends RadioGroupUiSlot | undefined = undefined>(slot?: S | undefined) => S extends RadioGroupUiSlot ? vue1209.ComputedRef<ClassValue> : vue1209.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 vue1631 from "vue";
2
+ import * as vue1252 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: vue1631.DefineComponent<RadioGroupControlProps, {}, {}, {}, {}, vue1631.ComponentOptionsMixin, vue1631.ComponentOptionsMixin, {}, string, vue1631.PublicProps, Readonly<RadioGroupControlProps> & Readonly<{}>, {}, {}, {}, {}, string, vue1631.ComponentProvideOptions, false, {}, any>;
13
+ declare const __VLS_base: vue1252.DefineComponent<RadioGroupControlProps, {}, {}, {}, {}, vue1252.ComponentOptionsMixin, vue1252.ComponentOptionsMixin, {}, string, vue1252.PublicProps, Readonly<RadioGroupControlProps> & Readonly<{}>, {}, {}, {}, {}, string, vue1252.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 vue1636 from "vue";
4
+ import * as vue1241 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: vue1636.DefineComponent<RadioGroupIndicatorProps, {}, {}, {}, {}, vue1636.ComponentOptionsMixin, vue1636.ComponentOptionsMixin, {}, string, vue1636.PublicProps, Readonly<RadioGroupIndicatorProps> & Readonly<{}>, {
12
- as: AsTag | vue1636.Component;
13
- }, {}, {}, {}, string, vue1636.ComponentProvideOptions, false, {}, any>;
11
+ declare const __VLS_base: vue1241.DefineComponent<RadioGroupIndicatorProps, {}, {}, {}, {}, vue1241.ComponentOptionsMixin, vue1241.ComponentOptionsMixin, {}, string, vue1241.PublicProps, Readonly<RadioGroupIndicatorProps> & Readonly<{}>, {
12
+ as: AsTag | vue1241.Component;
13
+ }, {}, {}, {}, string, vue1241.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 vue1626 from "vue";
2
+ import * as vue1247 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: vue1626.DefineComponent<RadioGroupItemProps, {}, {}, {}, {}, vue1626.ComponentOptionsMixin, vue1626.ComponentOptionsMixin, {
11
+ declare const __VLS_base: vue1247.DefineComponent<RadioGroupItemProps, {}, {}, {}, {}, vue1247.ComponentOptionsMixin, vue1247.ComponentOptionsMixin, {
12
12
  select: (event: RadioSelectEvent) => any;
13
- }, string, vue1626.PublicProps, Readonly<RadioGroupItemProps> & Readonly<{
13
+ }, string, vue1247.PublicProps, Readonly<RadioGroupItemProps> & Readonly<{
14
14
  onSelect?: ((event: RadioSelectEvent) => any) | undefined;
15
- }>, {}, {}, {}, {}, string, vue1626.ComponentProvideOptions, false, {}, any>;
15
+ }>, {}, {}, {}, {}, string, vue1247.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 vue1642 from "vue";
3
+ import * as vue1204 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: vue1642.DefineComponent<LabelProps, {}, {}, {}, {}, vue1642.ComponentOptionsMixin, vue1642.ComponentOptionsMixin, {}, string, vue1642.PublicProps, Readonly<LabelProps> & Readonly<{}>, {}, {}, {}, {}, string, vue1642.ComponentProvideOptions, false, {}, any>;
10
+ declare const __VLS_base: vue1204.DefineComponent<LabelProps, {}, {}, {}, {}, vue1204.ComponentOptionsMixin, vue1204.ComponentOptionsMixin, {}, string, vue1204.PublicProps, Readonly<LabelProps> & Readonly<{}>, {}, {}, {}, {}, string, vue1204.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 vue1624 from "vue";
4
+ import * as vue1202 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: vue1624.PublicProps & __VLS_PrettifyLocal<RadioGroupRootProps<T> & {
8
+ props: vue1202.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
- }>) => vue1624.VNode & {
21
+ }>) => vue1202.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 vue236 from "vue";
6
+ import * as vue1444 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: vue236.DefineComponent<RovingFocusGroupProps, {
13
+ declare const __VLS_base: vue1444.DefineComponent<RovingFocusGroupProps, {
14
14
  getItems: (excludeDisabled?: boolean) => CollectionItemData<Record<string, any>>[];
15
- }, {}, {}, {}, vue236.ComponentOptionsMixin, vue236.ComponentOptionsMixin, {
15
+ }, {}, {}, {}, vue1444.ComponentOptionsMixin, vue1444.ComponentOptionsMixin, {
16
16
  entryFocus: (event: Event) => any;
17
17
  "update:currentTabStopId": (value: string | null | undefined) => any;
18
- }, string, vue236.PublicProps, Readonly<RovingFocusGroupProps> & Readonly<{
18
+ }, string, vue1444.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
- loop: boolean;
24
23
  preventScrollOnEntryFocus: boolean;
25
- }, {}, {}, {}, string, vue236.ComponentProvideOptions, false, {}, any>;
24
+ loop: boolean;
25
+ }, {}, {}, {}, string, vue1444.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 vue241 from "vue";
2
+ import * as vue1449 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: vue241.DefineComponent<RovingFocusItemProps, {}, {}, {}, {}, vue241.ComponentOptionsMixin, vue241.ComponentOptionsMixin, {}, string, vue241.PublicProps, Readonly<RovingFocusItemProps> & Readonly<{}>, {
9
+ declare const __VLS_base: vue1449.DefineComponent<RovingFocusItemProps, {}, {}, {}, {}, vue1449.ComponentOptionsMixin, vue1449.ComponentOptionsMixin, {}, string, vue1449.PublicProps, Readonly<RovingFocusItemProps> & Readonly<{}>, {
10
10
  focusable: boolean;
11
- }, {}, {}, {}, string, vue241.ComponentProvideOptions, false, {}, any>;
11
+ }, {}, {}, {}, string, vue1449.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 vue446 from "vue";
6
+ import * as vue810 from "vue";
7
7
 
8
8
  //#region src/components/select/context.d.ts
9
9
 
10
- declare const provideSelectUi: (ui: vue446.ComputedRef<Partial<UiClass<SelectUiSlot>>>) => vue446.ComputedRef<Partial<UiClass<SelectUiSlot>>>, useSelectUi: <S extends SelectUiSlot | undefined = undefined>(slot?: S | undefined) => S extends SelectUiSlot ? vue446.ComputedRef<ClassValue> : vue446.ComputedRef<Partial<UiClass<SelectUiSlot>>>;
10
+ declare const provideSelectUi: (ui: vue810.ComputedRef<Partial<UiClass<SelectUiSlot>>>) => vue810.ComputedRef<Partial<UiClass<SelectUiSlot>>>, useSelectUi: <S extends SelectUiSlot | undefined = undefined>(slot?: S | undefined) => S extends SelectUiSlot ? vue810.ComputedRef<ClassValue> : vue810.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 vue425 from "vue";
3
+ import * as vue790 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: vue425.DefineComponent<PopperArrowProps, {}, {}, {}, {}, vue425.ComponentOptionsMixin, vue425.ComponentOptionsMixin, {}, string, vue425.PublicProps, Readonly<PopperArrowProps> & Readonly<{}>, {}, {}, {}, {}, string, vue425.ComponentProvideOptions, false, {}, any>;
10
+ declare const __VLS_base: vue790.DefineComponent<PopperArrowProps, {}, {}, {}, {}, vue790.ComponentOptionsMixin, vue790.ComponentOptionsMixin, {}, string, vue790.PublicProps, Readonly<PopperArrowProps> & Readonly<{}>, {}, {}, {}, {}, string, vue790.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 vue395 from "vue";
4
+ import * as vue736 from "vue";
5
5
 
6
6
  //#region src/components/select/select-content.vue.d.ts
7
7
  declare var __VLS_8: {}, __VLS_22: {};
@@ -10,20 +10,20 @@ type __VLS_Slots = {} & {
10
10
  } & {
11
11
  default?: (props: typeof __VLS_22) => any;
12
12
  };
13
- declare const __VLS_base: vue395.DefineComponent<SelectContentProps, {}, {}, {}, {}, vue395.ComponentOptionsMixin, vue395.ComponentOptionsMixin, {
13
+ declare const __VLS_base: vue736.DefineComponent<SelectContentProps, {}, {}, {}, {}, vue736.ComponentOptionsMixin, vue736.ComponentOptionsMixin, {
14
14
  escapeKeyDown: (event: KeyboardEvent) => any;
15
- closeAutoFocus: (event: Event) => any;
16
15
  pointerDownOutside: (event: PointerDownOutsideEvent) => any;
17
- }, string, vue395.PublicProps, Readonly<SelectContentProps> & Readonly<{
16
+ closeAutoFocus: (event: Event) => any;
17
+ }, string, vue736.PublicProps, Readonly<SelectContentProps> & Readonly<{
18
18
  onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
19
- onCloseAutoFocus?: ((event: Event) => any) | undefined;
20
19
  onPointerDownOutside?: ((event: PointerDownOutsideEvent) => any) | undefined;
20
+ onCloseAutoFocus?: ((event: Event) => any) | undefined;
21
21
  }>, {
22
22
  position: SelectPosition;
23
23
  bodyLock: boolean;
24
24
  avoidCollisions: boolean;
25
25
  prioritizePosition: boolean;
26
- }, {}, {}, {}, string, vue395.ComponentProvideOptions, false, {}, any>;
26
+ }, {}, {}, {}, string, vue736.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 vue415 from "vue";
2
+ import * as vue769 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: vue415.DefineComponent<SelectGroupLabelProps, {}, {}, {}, {}, vue415.ComponentOptionsMixin, vue415.ComponentOptionsMixin, {}, string, vue415.PublicProps, Readonly<SelectGroupLabelProps> & Readonly<{}>, {}, {}, {}, {}, string, vue415.ComponentProvideOptions, false, {}, any>;
9
+ declare const __VLS_base: vue769.DefineComponent<SelectGroupLabelProps, {}, {}, {}, {}, vue769.ComponentOptionsMixin, vue769.ComponentOptionsMixin, {}, string, vue769.PublicProps, Readonly<SelectGroupLabelProps> & Readonly<{}>, {}, {}, {}, {}, string, vue769.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 vue405 from "vue";
2
+ import * as vue764 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: vue405.DefineComponent<SelectGroupProps, {}, {}, {}, {}, vue405.ComponentOptionsMixin, vue405.ComponentOptionsMixin, {}, string, vue405.PublicProps, Readonly<SelectGroupProps> & Readonly<{}>, {}, {}, {}, {}, string, vue405.ComponentProvideOptions, false, {}, any>;
9
+ declare const __VLS_base: vue764.DefineComponent<SelectGroupProps, {}, {}, {}, {}, vue764.ComponentOptionsMixin, vue764.ComponentOptionsMixin, {}, string, vue764.PublicProps, Readonly<SelectGroupProps> & Readonly<{}>, {}, {}, {}, {}, string, vue764.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 vue430 from "vue";
4
+ import * as vue784 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: vue430.DefineComponent<SelectItemIndicatorProps, {}, {}, {}, {}, vue430.ComponentOptionsMixin, vue430.ComponentOptionsMixin, {}, string, vue430.PublicProps, Readonly<SelectItemIndicatorProps> & Readonly<{}>, {
12
- as: AsTag | vue430.Component;
13
- }, {}, {}, {}, string, vue430.ComponentProvideOptions, false, {}, any>;
11
+ declare const __VLS_base: vue784.DefineComponent<SelectItemIndicatorProps, {}, {}, {}, {}, vue784.ComponentOptionsMixin, vue784.ComponentOptionsMixin, {}, string, vue784.PublicProps, Readonly<SelectItemIndicatorProps> & Readonly<{}>, {
12
+ as: AsTag | vue784.Component;
13
+ }, {}, {}, {}, string, vue784.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 vue400 from "vue";
2
+ import * as vue779 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: vue400.DefineComponent<SelectItemTextProps, {}, {}, {}, {}, vue400.ComponentOptionsMixin, vue400.ComponentOptionsMixin, {}, string, vue400.PublicProps, Readonly<SelectItemTextProps> & Readonly<{}>, {}, {}, {}, {}, string, vue400.ComponentProvideOptions, false, {}, any>;
9
+ declare const __VLS_base: vue779.DefineComponent<SelectItemTextProps, {}, {}, {}, {}, vue779.ComponentOptionsMixin, vue779.ComponentOptionsMixin, {}, string, vue779.PublicProps, Readonly<SelectItemTextProps> & Readonly<{}>, {}, {}, {}, {}, string, vue779.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,18 +1,18 @@
1
1
  import { DefinedValue } from "../../types/common.js";
2
2
  import "../../types/index.js";
3
3
  import { SelectItemEvent, SelectItemProps } from "./types.js";
4
- import * as vue420 from "vue";
4
+ import * as vue774 from "vue";
5
5
 
6
6
  //#region src/components/select/select-item.vue.d.ts
7
7
  declare var __VLS_17: {};
8
8
  type __VLS_Slots = {} & {
9
9
  default?: (props: typeof __VLS_17) => any;
10
10
  };
11
- declare const __VLS_base: vue420.DefineComponent<SelectItemProps, {}, {}, {}, {}, vue420.ComponentOptionsMixin, vue420.ComponentOptionsMixin, {
11
+ declare const __VLS_base: vue774.DefineComponent<SelectItemProps, {}, {}, {}, {}, vue774.ComponentOptionsMixin, vue774.ComponentOptionsMixin, {
12
12
  select: (event: SelectItemEvent<DefinedValue>) => any;
13
- }, string, vue420.PublicProps, Readonly<SelectItemProps> & Readonly<{
13
+ }, string, vue774.PublicProps, Readonly<SelectItemProps> & Readonly<{
14
14
  onSelect?: ((event: SelectItemEvent<DefinedValue>) => any) | undefined;
15
- }>, {}, {}, {}, {}, string, vue420.ComponentProvideOptions, false, {}, any>;
15
+ }>, {}, {}, {}, {}, string, vue774.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 { DefinedValue } from "../../types/common.js";
2
2
  import "../../types/index.js";
3
3
  import { SelectRootProps } from "./types.js";
4
- import * as vue382 from "vue";
4
+ import * as vue747 from "vue";
5
5
 
6
6
  //#region src/components/select/select-root.vue.d.ts
7
7
  declare const __VLS_export: <T extends DefinedValue, M extends boolean = false>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
8
- props: vue382.PublicProps & __VLS_PrettifyLocal<SelectRootProps<T, M> & {
9
- "onUpdate:open"?: ((value: boolean) => any) | undefined;
8
+ props: vue747.PublicProps & __VLS_PrettifyLocal<SelectRootProps<T, M> & {
10
9
  "onUpdate:modelValue"?: ((value: M extends true ? T[] : T) => any) | undefined;
10
+ "onUpdate:open"?: ((value: boolean) => any) | undefined;
11
11
  }> & (typeof globalThis extends {
12
12
  __VLS_PROPS_FALLBACK: infer P;
13
13
  } ? P : {});
@@ -19,8 +19,8 @@ declare const __VLS_export: <T extends DefinedValue, M extends boolean = false>(
19
19
  open: boolean;
20
20
  }) => any;
21
21
  };
22
- emit: ((evt: "update:open", value: boolean) => void) & ((evt: "update:modelValue", value: M extends true ? T[] : T) => void);
23
- }>) => vue382.VNode & {
22
+ emit: ((evt: "update:modelValue", value: M extends true ? T[] : T) => void) & ((evt: "update:open", value: boolean) => void);
23
+ }>) => vue747.VNode & {
24
24
  __ctx?: Awaited<typeof __VLS_setup>;
25
25
  };
26
26
  declare const _default: typeof __VLS_export;
@@ -1,12 +1,12 @@
1
1
  import { SelectScrollDownButtonProps } from "./types.js";
2
- import * as vue441 from "vue";
2
+ import * as vue805 from "vue";
3
3
 
4
4
  //#region src/components/select/select-scroll-down-button.vue.d.ts
5
5
  declare var __VLS_10: {};
6
6
  type __VLS_Slots = {} & {
7
7
  default?: (props: typeof __VLS_10) => any;
8
8
  };
9
- declare const __VLS_base: vue441.DefineComponent<SelectScrollDownButtonProps, {}, {}, {}, {}, vue441.ComponentOptionsMixin, vue441.ComponentOptionsMixin, {}, string, vue441.PublicProps, Readonly<SelectScrollDownButtonProps> & Readonly<{}>, {}, {}, {}, {}, string, vue441.ComponentProvideOptions, false, {}, any>;
9
+ declare const __VLS_base: vue805.DefineComponent<SelectScrollDownButtonProps, {}, {}, {}, {}, vue805.ComponentOptionsMixin, vue805.ComponentOptionsMixin, {}, string, vue805.PublicProps, Readonly<SelectScrollDownButtonProps> & Readonly<{}>, {}, {}, {}, {}, string, vue805.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 { SelectScrollUpButtonProps } from "./types.js";
2
- import * as vue588 from "vue";
2
+ import * as vue800 from "vue";
3
3
 
4
4
  //#region src/components/select/select-scroll-up-button.vue.d.ts
5
5
  declare var __VLS_10: {};
6
6
  type __VLS_Slots = {} & {
7
7
  default?: (props: typeof __VLS_10) => any;
8
8
  };
9
- declare const __VLS_base: vue588.DefineComponent<SelectScrollUpButtonProps, {}, {}, {}, {}, vue588.ComponentOptionsMixin, vue588.ComponentOptionsMixin, {}, string, vue588.PublicProps, Readonly<SelectScrollUpButtonProps> & Readonly<{}>, {}, {}, {}, {}, string, vue588.ComponentProvideOptions, false, {}, any>;
9
+ declare const __VLS_base: vue800.DefineComponent<SelectScrollUpButtonProps, {}, {}, {}, {}, vue800.ComponentOptionsMixin, vue800.ComponentOptionsMixin, {}, string, vue800.PublicProps, Readonly<SelectScrollUpButtonProps> & Readonly<{}>, {}, {}, {}, {}, string, vue800.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 & {