@astryx-vue/core 0.16.5 → 0.17.0

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 (154) hide show
  1. package/dist/AvatarGroup/index.d.ts +1 -1
  2. package/dist/Banner/index.d.ts +1 -1
  3. package/dist/Button/index.d.ts +1 -1
  4. package/dist/ButtonGroup/index.d.ts +1 -1
  5. package/dist/Calendar/index.d.ts +1 -1
  6. package/dist/Card/index.d.ts +1 -1
  7. package/dist/Carousel/index.d.ts +1 -1
  8. package/dist/Chat/index.d.ts +1 -1
  9. package/dist/Chat/index.js +1 -1
  10. package/dist/CheckboxInput/index.d.ts +1 -1
  11. package/dist/CheckboxList/index.d.ts +1 -1
  12. package/dist/ClickableCard/index.d.ts +1 -1
  13. package/dist/Code/index.js +1 -1
  14. package/dist/Collapsible/index.d.ts +1 -1
  15. package/dist/CommandPalette/index.d.ts +1 -1
  16. package/dist/CommandPalette/index.js +1 -1
  17. package/dist/{CommandPalette-mNR6dV0B.js → CommandPalette-CECjNvGB.js} +1 -1
  18. package/dist/ComplexSelector/index.d.ts +1 -1
  19. package/dist/ComplexSelector/index.js +1 -1
  20. package/dist/{ComplexSelector-CR9XbpTa.js → ComplexSelector-Dmaag1wm.js} +5 -1
  21. package/dist/ContextMenu/index.d.ts +1 -1
  22. package/dist/DateInput/index.d.ts +1 -1
  23. package/dist/DateInput/index.js +1 -1
  24. package/dist/DateRangeInput/index.d.ts +1 -1
  25. package/dist/DateRangeInput/index.js +1 -1
  26. package/dist/DateTimeInput/index.d.ts +1 -1
  27. package/dist/DateTimeInput/index.js +1 -1
  28. package/dist/{DateTimeInput-ChGin5zS.js → DateTimeInput-Cfkuec_h.js} +1 -1
  29. package/dist/Dialog/index.d.ts +1 -1
  30. package/dist/Drawer/index.d.ts +1 -1
  31. package/dist/Field/index.d.ts +1 -1
  32. package/dist/FileInput/index.d.ts +1 -1
  33. package/dist/Heading/index.d.ts +1 -1
  34. package/dist/HoverCard/index.d.ts +1 -1
  35. package/dist/Indicator/index.d.ts +2 -2
  36. package/dist/InfoTip/index.d.ts +1 -1
  37. package/dist/InputGroup/index.d.ts +1 -1
  38. package/dist/InternationalizationProvider/index.d.ts +1 -1
  39. package/dist/InternationalizationProvider/index.js +1 -1
  40. package/dist/{InternationalizationProvider-7rA65NO7.js → InternationalizationProvider-Dr5GE6f0.js} +1 -1
  41. package/dist/Link/index.d.ts +1 -1
  42. package/dist/List/index.d.ts +1 -1
  43. package/dist/Markdown/index.js +1 -1
  44. package/dist/{Markdown-BNVd70jg.js → Markdown-DnnWjJGX.js} +1 -1
  45. package/dist/MoreMenu/index.d.ts +1 -1
  46. package/dist/MultiSelector/index.d.ts +1 -1
  47. package/dist/MultiSelector/index.js +1 -1
  48. package/dist/{MultiSelector-CXX1Hsty.js → MultiSelector-BK6nZweN.js} +26 -14
  49. package/dist/NavItem/index.d.ts +1 -1
  50. package/dist/NumberInput/index.d.ts +1 -1
  51. package/dist/OverflowList/index.d.ts +1 -1
  52. package/dist/Pagination/index.d.ts +1 -1
  53. package/dist/Pagination/index.js +1 -1
  54. package/dist/{Pagination-BvZFvwso.js → Pagination-DFQNX_Mb.js} +1 -1
  55. package/dist/Popover/index.d.ts +1 -1
  56. package/dist/PowerSearch/index.d.ts +1 -1
  57. package/dist/PowerSearch/index.js +1 -1
  58. package/dist/{PowerSearch-BiupstfT.js → PowerSearch-BAOqpQag.js} +10 -10
  59. package/dist/ProgressBar/index.d.ts +1 -1
  60. package/dist/Radio/index.d.ts +1 -1
  61. package/dist/RadioList/index.d.ts +1 -1
  62. package/dist/Resizable/index.d.ts +1 -1
  63. package/dist/ScrollableArea/index.d.ts +1 -1
  64. package/dist/SegmentedControl/index.d.ts +1 -1
  65. package/dist/SelectableCard/index.d.ts +1 -1
  66. package/dist/Selector/index.d.ts +1 -1
  67. package/dist/Selector/index.js +1 -1
  68. package/dist/{Selector-DiSLNzl8.js → Selector-Bo7qkt1P.js} +157 -62
  69. package/dist/SideNav/index.d.ts +1 -1
  70. package/dist/Stepper/index.d.ts +1 -1
  71. package/dist/Switch/index.d.ts +1 -1
  72. package/dist/TabList/index.d.ts +1 -1
  73. package/dist/Table/index.d.ts +1 -1
  74. package/dist/Table/index.js +1 -1
  75. package/dist/{Table-BD8MugZo.js → Table-CRKljXg4.js} +6 -6
  76. package/dist/Text/index.d.ts +1 -1
  77. package/dist/TextArea/index.d.ts +1 -1
  78. package/dist/TextInput/index.d.ts +1 -1
  79. package/dist/Theme/index.d.ts +3 -3
  80. package/dist/Theme/index.js +1 -1
  81. package/dist/{Theme-8bDq2nud.js → Theme-iqi6AvU_.js} +363 -39
  82. package/dist/TimeInput/index.d.ts +1 -1
  83. package/dist/Timestamp/index.d.ts +1 -1
  84. package/dist/ToggleButton/index.d.ts +1 -1
  85. package/dist/Token/index.d.ts +1 -1
  86. package/dist/Tokenizer/index.d.ts +1 -1
  87. package/dist/Tokenizer/index.js +1 -1
  88. package/dist/{Tokenizer-mu0Sak58.js → Tokenizer-CsFiYUJ_.js} +171 -103
  89. package/dist/Toolbar/index.d.ts +1 -1
  90. package/dist/Tooltip/index.d.ts +1 -1
  91. package/dist/TopNav/index.d.ts +1 -1
  92. package/dist/Typeahead/index.d.ts +2 -1
  93. package/dist/Typeahead/index.js +2 -2
  94. package/dist/{Typeahead-Db8Tu27Z.js → Typeahead--kEp21ut.js} +159 -71
  95. package/dist/{useKeyboardHighlight-CGCf1O57.js → assertOptions-CK_gJ0d3.js} +12 -1
  96. package/dist/composables/index.d.ts +3 -3
  97. package/dist/composables/index.js +5 -5
  98. package/dist/composables-BKHcPgN0.js +5730 -0
  99. package/dist/{index-CE74Qsbn.d.ts → index-85RFPeV0.d.ts} +10 -10
  100. package/dist/{index-BFZxzCYu.d.ts → index-9tZJgo0R.d.ts} +2 -2
  101. package/dist/{index-B-Jla56c.d.ts → index-B0iRA00v.d.ts} +3 -3
  102. package/dist/{index-LHvLg1Pv.d.ts → index-B95VIgRl.d.ts} +84 -84
  103. package/dist/{index-DMN_JVEt.d.ts → index-BL4mH8aK.d.ts} +1 -1
  104. package/dist/{index-Bfm6mF-r.d.ts → index-BfoazhEu.d.ts} +1 -1
  105. package/dist/{index-CQ1bsxLC.d.ts → index-C1qJlC65.d.ts} +1 -1
  106. package/dist/{index-ygmRS6Np.d.ts → index-C1zwvxPH.d.ts} +2 -2
  107. package/dist/{index-gmY3A_Iw.d.ts → index-C93nwgTW.d.ts} +1 -1
  108. package/dist/{index-BvWBeoa8.d.ts → index-CEjvYAUZ.d.ts} +1 -1
  109. package/dist/{index-B0yaHi__.d.ts → index-CH-xSiJz.d.ts} +12 -5
  110. package/dist/{index-sXu15K4j.d.ts → index-CO9GW-ik.d.ts} +1 -1
  111. package/dist/{index-Xc3q9f84.d.ts → index-COgrQZIL.d.ts} +3 -3
  112. package/dist/{index-Bgk1Rj2A.d.ts → index-CTjkJP4x.d.ts} +1 -1
  113. package/dist/{index-BQ3cm7mP.d.ts → index-CbA8rR_b.d.ts} +1 -1
  114. package/dist/{index-B0R5CLPF.d.ts → index-CsYDrQ9R.d.ts} +1 -1
  115. package/dist/{index-BWzEt0gT.d.ts → index-CuW4AQ7M.d.ts} +2 -2
  116. package/dist/{index-BPf_jmME.d.ts → index-Cy1rEWC-.d.ts} +2 -2
  117. package/dist/{index-D_xBhUV5.d.ts → index-CyMStZq4.d.ts} +10 -10
  118. package/dist/{index-C2cH8OLC.d.ts → index-D31bgBoy.d.ts} +1 -1
  119. package/dist/index-DGXCnzOL.d.ts +69 -0
  120. package/dist/{index-DBwEz4M9.d.ts → index-DK0Wdo9N.d.ts} +13 -13
  121. package/dist/{index-SWw-WMTO.d.ts → index-DYabo8TI.d.ts} +2 -2
  122. package/dist/{index-CJdOt5Cc.d.ts → index-DofC9Rll.d.ts} +2 -2
  123. package/dist/{index-Byan7Dad.d.ts → index-GmoeIuhl.d.ts} +1 -1
  124. package/dist/{index-unAZVFGz.d.ts → index-Qdbssopn.d.ts} +2 -2
  125. package/dist/{index-DE1genab.d.ts → index-QnlWyUxN.d.ts} +2 -2
  126. package/dist/{index-C5e2rZML.d.ts → index-dWlCpnua.d.ts} +2 -2
  127. package/dist/{index-BPHqOCfp.d.ts → index-lmd9LZKB.d.ts} +4 -4
  128. package/dist/{index-CtYlR9Cu.d.ts → index-rdwI-mcm.d.ts} +1 -1
  129. package/dist/{index-BXDqyk2_.d.ts → index-tuNsmJxw.d.ts} +169 -2
  130. package/dist/{index-BEZ4ezJk.d.ts → index-wY6dKz6c.d.ts} +2 -2
  131. package/dist/{index-C89cIh4E.d.ts → index-waTkqxTz.d.ts} +1 -1
  132. package/dist/index.d.ts +39 -38
  133. package/dist/index.js +26 -26
  134. package/dist/{loadCatalog-DFyDz_4e.d.ts → loadCatalog-BJwcyX8i.d.ts} +2 -0
  135. package/dist/{loadCatalog-C3MSknfx.js → loadCatalog-C1kms5sO.js} +5 -1
  136. package/dist/locale/index.d.ts +2 -2
  137. package/dist/locale/index.js +3 -3
  138. package/dist/{locale-OCGw4bi6.js → locale-CHhsd9Mq.js} +1 -1
  139. package/dist/{typeahead-RkZw0Ktn.js → typeahead-BgfLP7vR.js} +2 -0
  140. package/dist/{index-DbFIQDoa.d.ts → types-C1ydeFiu.d.ts} +43 -65
  141. package/dist/{types-uWxXh1Jm.d.ts → types-fRasDCe4.d.ts} +47 -6
  142. package/dist/{useAsyncSource-Gk0VtE7_.js → useAsyncSource-7GTcK8ep.js} +31 -1
  143. package/dist/{useAsyncSource-aGzrvRkI.d.ts → useAsyncSource-DbG2FSuI.d.ts} +19 -2
  144. package/dist/{useCombobox-D374_pT8.js → useCombobox-DIR9yoEu.js} +150 -3
  145. package/dist/{useTypeaheadAnnouncement-CSikDlpK.js → useTypeaheadMenuConfig--4f7jR6G.js} +264 -20
  146. package/package.json +1 -1
  147. package/styles/motion.css +10 -0
  148. package/styles/selector.css +10 -0
  149. package/dist/composables-CCsHfpCS.js +0 -1256
  150. package/dist/{Chat-PEkZTrQE.js → Chat-Wq7e98zS.js} +1 -1
  151. package/dist/{CodeBlock-9Lfec8C8.js → CodeBlock-CLVXVlB7.js} +1 -1
  152. package/dist/{DateInput-kXAc_r5m.js → DateInput-BitZfGEY.js} +1 -1
  153. package/dist/{DateRangeInput-DW7IzFQM.js → DateRangeInput-kxXBsUTU.js} +1 -1
  154. package/dist/{index-BqhgeAT4.d.ts → index-D8lv2BiD.d.ts} +1 -1
@@ -5,7 +5,7 @@ import { i as useLayerGutter } from "./context-M-er0-Rk.js";
5
5
  import { t as useDismiss } from "./useDismiss-Dfb0Ky7T.js";
6
6
  import { r as truncateCharacters, t as characterCount } from "./characters-wTnzjkkR.js";
7
7
  import { t as useAnnounce } from "./announce-GU01Oix2.js";
8
- import { t as createStaticSource } from "./useAsyncSource-Gk0VtE7_.js";
8
+ import { t as createStaticSource } from "./useAsyncSource-7GTcK8ep.js";
9
9
  import { a as useAstryxLocale, o as useComponentMessages } from "./context-B8IEFCDR.js";
10
10
  import { t as useOverflow } from "./useOverflow-GU0pxGaU.js";
11
11
  import { t as useResolvedLabelHidden } from "./useResolvedLabelHidden-B2rlWiaI.js";
@@ -13,20 +13,20 @@ import { t as _sfc_main$7 } from "./Tooltip-DQipgW1R.js";
13
13
  import { t as useScrollbars } from "./useScrollbars-Ch0xqJWO.js";
14
14
  import { t as _sfc_main$8 } from "./Field-BXkGR8H0.js";
15
15
  import { t as useFieldPartStyling } from "./fieldParts-CbWvZLhH.js";
16
- import { t as _sfc_main$9 } from "./DateInput-kXAc_r5m.js";
17
- import { l as powerSearchMessages } from "./loadCatalog-C3MSknfx.js";
18
- import { t as _sfc_main$10 } from "./DateRangeInput-DW7IzFQM.js";
19
- import { t as _sfc_main$11 } from "./DateTimeInput-ChGin5zS.js";
16
+ import { t as _sfc_main$9 } from "./DateInput-BitZfGEY.js";
17
+ import { l as powerSearchMessages } from "./loadCatalog-C1kms5sO.js";
18
+ import { t as _sfc_main$10 } from "./DateRangeInput-kxXBsUTU.js";
19
+ import { t as _sfc_main$11 } from "./DateTimeInput-Cfkuec_h.js";
20
20
  import { n as tokenNamingKey, t as _sfc_main$12 } from "./Token-jBbgdevV.js";
21
21
  import { n as scrollOptionIntoView, r as useAnchoredListbox } from "./stillPointerGate-0vdn-hSa.js";
22
- import { t as _sfc_main$13 } from "./MultiSelector-CXX1Hsty.js";
22
+ import { t as _sfc_main$13 } from "./MultiSelector-BK6nZweN.js";
23
23
  import { n as resolveNumberInputCommit, t as _sfc_main$14 } from "./NumberInput-BPeesTRv.js";
24
- import { t as _sfc_main$15 } from "./Selector-DiSLNzl8.js";
25
- import { a as useTypeaheadMenu } from "./useTypeaheadAnnouncement-CSikDlpK.js";
26
- import { n as useTokenRemoveTap, t as _sfc_main$16 } from "./Tokenizer-mu0Sak58.js";
24
+ import { t as _sfc_main$15 } from "./Selector-Bo7qkt1P.js";
25
+ import { o as useTypeaheadMenu } from "./useTypeaheadMenuConfig--4f7jR6G.js";
26
+ import { n as useTokenRemoveTap, t as _sfc_main$16 } from "./Tokenizer-CsFiYUJ_.js";
27
27
  import { t as _sfc_main$17 } from "./TextInput-_SIiqVOY.js";
28
28
  import { t as _sfc_main$18 } from "./TimeInput-8ASOMV3B.js";
29
- import { t as _sfc_main$19 } from "./Typeahead-Db8Tu27Z.js";
29
+ import { t as _sfc_main$19 } from "./Typeahead--kEp21ut.js";
30
30
  import { Fragment, Teleport, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createVNode, defineComponent, mergeProps, nextTick, normalizeClass, normalizeStyle, onMounted, openBlock, provide, ref, renderList, renderSlot, resolveComponent, resolveDynamicComponent, toDisplayString, unref, useAttrs, useId, useSlots, useTemplateRef, vShow, watch, withCtx, withDirectives, withModifiers } from "vue";
31
31
  import "../styles/layer.css";
32
32
  import "../styles/visually-hidden-utility.css";
@@ -1,2 +1,2 @@
1
- import { a as ProgressBarVariant, i as ProgressBarSize, n as ProgressBarMark, r as ProgressBarProps, t as _default } from "../index-Xc3q9f84.js";
1
+ import { a as ProgressBarVariant, i as ProgressBarSize, n as ProgressBarMark, r as ProgressBarProps, t as _default } from "../index-COgrQZIL.js";
2
2
  export { _default as ProgressBar, type ProgressBarMark, type ProgressBarProps, type ProgressBarSize, type ProgressBarVariant };
@@ -1,2 +1,2 @@
1
- import { Br as RadioGroupProps, Gr as RadioProps, Ir as _default$1, Jr as RadioStatus, Kr as RadioSize, Lr as _default, Rr as RadioChangeEvent, Ur as RadioOption, Vr as RadioGroupSlots, Wr as RadioOrientation, Xr as RadioValue, Yr as RadioStatusType, qr as RadioSlots, zr as RadioGroupEmits } from "../index-LHvLg1Pv.js";
1
+ import { Br as RadioGroupProps, Gr as RadioProps, Ir as _default$1, Jr as RadioStatus, Kr as RadioSize, Lr as _default, Rr as RadioChangeEvent, Ur as RadioOption, Vr as RadioGroupSlots, Wr as RadioOrientation, Xr as RadioValue, Yr as RadioStatusType, qr as RadioSlots, zr as RadioGroupEmits } from "../index-B95VIgRl.js";
2
2
  export { _default as Radio, type RadioChangeEvent, _default$1 as RadioGroup, type RadioGroupEmits, type RadioGroupProps, type RadioGroupSlots, type RadioOption, type RadioOrientation, type RadioProps, type RadioSize, type RadioSlots, type RadioStatus, type RadioStatusType, type RadioValue };
@@ -1,2 +1,2 @@
1
- import { Fr as _default, Hr as RadioListProps, Nr as _default$1, Pr as RadioListItemProps } from "../index-LHvLg1Pv.js";
1
+ import { Fr as _default, Hr as RadioListProps, Nr as _default$1, Pr as RadioListItemProps } from "../index-B95VIgRl.js";
2
2
  export { _default as RadioList, _default$1 as RadioListItem, type RadioListItemProps, type RadioListProps };
@@ -1,2 +1,2 @@
1
- import { a as ResizePillPlacement, i as ResizeHandleSlots, n as ResizeDirection, o as ResizePosition, r as ResizeHandleProps, t as _default } from "../index-DMN_JVEt.js";
1
+ import { a as ResizePillPlacement, i as ResizeHandleSlots, n as ResizeDirection, o as ResizePosition, r as ResizeHandleProps, t as _default } from "../index-BL4mH8aK.js";
2
2
  export { type ResizeDirection, _default as ResizeHandle, type ResizeHandleProps, type ResizeHandleSlots, type ResizePillPlacement, type ResizePosition };
@@ -1,2 +1,2 @@
1
- import { Ar as _default, Mr as ScrollableAreaSlots, jr as ScrollableAreaProps } from "../index-LHvLg1Pv.js";
1
+ import { Ar as _default, Mr as ScrollableAreaSlots, jr as ScrollableAreaProps } from "../index-B95VIgRl.js";
2
2
  export { _default as ScrollableArea, type ScrollableAreaProps, type ScrollableAreaSlots };
@@ -1,2 +1,2 @@
1
- import { a as SegmentedControlItemProps, c as SegmentedControlProps, i as SegmentedControlEmits, l as SegmentedControlSize, n as _default, o as SegmentedControlItemSlots, r as SegmentedControlContextValue, s as SegmentedControlLayout, t as _default$1, u as SegmentedControlSlots } from "../index-gmY3A_Iw.js";
1
+ import { a as SegmentedControlItemProps, c as SegmentedControlProps, i as SegmentedControlEmits, l as SegmentedControlSize, n as _default, o as SegmentedControlItemSlots, r as SegmentedControlContextValue, s as SegmentedControlLayout, t as _default$1, u as SegmentedControlSlots } from "../index-C93nwgTW.js";
2
2
  export { _default as SegmentedControl, type SegmentedControlContextValue, type SegmentedControlEmits, _default$1 as SegmentedControlItem, type SegmentedControlItemProps, type SegmentedControlItemSlots, type SegmentedControlLayout, type SegmentedControlProps, type SegmentedControlSize, type SegmentedControlSlots };
@@ -1,2 +1,2 @@
1
- import { Dr as SelectableCardEmits, Er as _default, Or as SelectableCardProps, kr as SelectableCardSlots } from "../index-LHvLg1Pv.js";
1
+ import { Dr as SelectableCardEmits, Er as _default, Or as SelectableCardProps, kr as SelectableCardSlots } from "../index-B95VIgRl.js";
2
2
  export { _default as SelectableCard, _default as default, type SelectableCardEmits, type SelectableCardProps, type SelectableCardSlots };
@@ -1,2 +1,2 @@
1
- import { a as SelectorOption, c as SelectorProps, d as SelectorSlots, f as SelectorStatus, h as SelectorVariant, i as SelectorIndicatorPosition, l as SelectorSection, m as SelectorStatusVariant, n as SelectorEmits, o as SelectorOptionInput, p as SelectorStatusInput, r as SelectorEntry, s as SelectorPresentation, t as _default, u as SelectorSize } from "../index-DBwEz4M9.js";
1
+ import { a as SelectorOption, c as SelectorProps, d as SelectorSlots, f as SelectorStatus, h as SelectorVariant, i as SelectorIndicatorPosition, l as SelectorSection, m as SelectorStatusVariant, n as SelectorEmits, o as SelectorOptionInput, p as SelectorStatusInput, r as SelectorEntry, s as SelectorPresentation, t as _default, u as SelectorSize } from "../index-DK0Wdo9N.js";
2
2
  export { _default as Selector, type SelectorEmits, type SelectorEntry, type SelectorIndicatorPosition, type SelectorOption, type SelectorOptionInput, type SelectorPresentation, type SelectorProps, type SelectorSection, type SelectorSize, type SelectorSlots, type SelectorStatus, type SelectorStatusInput, type SelectorStatusVariant, type SelectorVariant };
@@ -1,2 +1,2 @@
1
- import { t as _sfc_main } from "../Selector-DiSLNzl8.js";
1
+ import { t as _sfc_main } from "../Selector-Bo7qkt1P.js";
2
2
  export { _sfc_main as Selector };
@@ -8,9 +8,10 @@ import { t as _sfc_main$4 } from "./VisuallyHidden-cpmsV-0M.js";
8
8
  import { t as _sfc_main$5 } from "./ButtonTooltip-CNKOQHYR.js";
9
9
  import { t as useButtonTooltip } from "./useButtonTooltip-DjCaZMp_.js";
10
10
  import { t as useAnnounce } from "./announce-GU01Oix2.js";
11
- import { t as useCombobox } from "./useCombobox-D374_pT8.js";
11
+ import { t as useCombobox } from "./useCombobox-DIR9yoEu.js";
12
12
  import { t as useFieldControlState } from "./useFieldControlState-voICDrys.js";
13
13
  import { o as useComponentMessages } from "./context-B8IEFCDR.js";
14
+ import { n as observeResize } from "./sharedResizeObserver-BekhnB3E.js";
14
15
  import { t as useScrollbars } from "./useScrollbars-Ch0xqJWO.js";
15
16
  import { n as clampInlineSize } from "./inlineSize-BNe8wggI.js";
16
17
  import { t as _sfc_main$6 } from "./Spinner-DEVPDsD0.js";
@@ -18,12 +19,12 @@ import { t as useIndicator } from "./useIndicator--9mGGlT2.js";
18
19
  import { t as _sfc_main$7 } from "./Field-BXkGR8H0.js";
19
20
  import { t as useFieldPartStyling } from "./fieldParts-CbWvZLhH.js";
20
21
  import { t as consumeWhileDisabled } from "./disabledInteraction-CPzL8kVP.js";
22
+ import { t as useBusyAnnouncement } from "./busyAnnouncement-CExubuYm.js";
21
23
  import { n as fieldStatusPlacement, r as _sfc_main$8, t as normalizeTriggerVariant } from "./triggerVariant-BDVvyLtv.js";
22
24
  import { t as selectorMessages } from "./selector-BmGLjm94.js";
23
- import { t as useBusyAnnouncement } from "./busyAnnouncement-CExubuYm.js";
24
- import { a as onSelectorListboxEscape, i as focusSelectorTrigger, n as bindListboxEscape, r as dismissSelectorEscape, t as useKeyboardHighlight } from "./useKeyboardHighlight-CGCf1O57.js";
25
+ import { a as focusSelectorTrigger, i as dismissSelectorEscape, n as useKeyboardHighlight, o as onSelectorListboxEscape, r as bindListboxEscape, t as assertOptionsArray } from "./assertOptions-CK_gJ0d3.js";
25
26
  import { i as isOptionAction, n as searchResultMessage, r as OptionAction, t as useOptionActionGrid } from "./useOptionActionGrid-C7ibYM_A.js";
26
- import { Fragment, Teleport, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, guardReactiveProps, h, isVNode, mergeProps, nextTick, normalizeClass, normalizeProps, normalizeStyle, onMounted, openBlock, ref, renderList, renderSlot, resolveDynamicComponent, toDisplayString, unref, useAttrs, useId, useSlots, useTemplateRef, vShow, watch, withCtx, withDirectives, withKeys, withModifiers } from "vue";
27
+ import { Fragment, Teleport, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, guardReactiveProps, h, isVNode, mergeProps, nextTick, normalizeClass, normalizeProps, normalizeStyle, onMounted, onScopeDispose, openBlock, ref, renderList, renderSlot, resolveDynamicComponent, toDisplayString, unref, useAttrs, useId, useSlots, useTemplateRef, vShow, watch, withCtx, withDirectives, withKeys, withModifiers } from "vue";
27
28
  import "../styles/layer.css";
28
29
  import "../styles/button.css";
29
30
  import "../styles/visually-hidden-utility.css";
@@ -104,6 +105,7 @@ const _hoisted_2$1 = [
104
105
  "aria-label",
105
106
  "aria-expanded",
106
107
  "aria-controls",
108
+ "aria-required",
107
109
  "aria-activedescendant",
108
110
  "placeholder",
109
111
  "value"
@@ -131,7 +133,7 @@ const _hoisted_9$1 = {
131
133
  key: 0,
132
134
  class: "astryx-selector-option-mark"
133
135
  };
134
- const _hoisted_10 = { class: "astryx-selector-option-body" };
136
+ const _hoisted_10$1 = { class: "astryx-selector-option-body" };
135
137
  const _hoisted_11 = { class: "astryx-selector-option-copy" };
136
138
  const _hoisted_12 = { class: "astryx-selector-option-label" };
137
139
  const _hoisted_13 = {
@@ -170,6 +172,7 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
170
172
  __name: "SelectorPanel",
171
173
  props: {
172
174
  searchable: { type: Boolean },
175
+ required: { type: Boolean },
173
176
  query: {},
174
177
  placeholder: {},
175
178
  clearLabel: {},
@@ -210,6 +213,14 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
210
213
  function active(index) {
211
214
  return index === props.activeIndex;
212
215
  }
216
+ /** 主题用 highlighted、selected、disabled 状态属性挂样式。 */
217
+ function stateAttrs(option, index) {
218
+ return {
219
+ "data-highlighted": active(index) ? "highlighted" : void 0,
220
+ "data-selected": selected(option) ? "selected" : void 0,
221
+ "data-disabled": option.disabled ? "disabled" : void 0
222
+ };
223
+ }
213
224
  __expose({ focusSearch: () => searchInput.value?.focus() });
214
225
  function clearQuery(event) {
215
226
  event.stopPropagation();
@@ -246,10 +257,13 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
246
257
  class: "astryx-selector-search-input",
247
258
  role: "combobox",
248
259
  autocomplete: "off",
260
+ autocorrect: "off",
261
+ enterkeyhint: "search",
249
262
  "aria-label": __props.placeholder,
250
263
  "aria-expanded": __props.isOpen,
251
264
  "aria-controls": __props.listboxId,
252
265
  "aria-autocomplete": "list",
266
+ "aria-required": __props.required || void 0,
253
267
  "aria-activedescendant": __props.activeDescendant,
254
268
  placeholder: __props.placeholder,
255
269
  value: __props.query,
@@ -272,28 +286,29 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
272
286
  class: "astryx-selector-section",
273
287
  role: "rowgroup",
274
288
  "aria-label": row.title
275
- }, [createElementVNode("span", _hoisted_7$1, toDisplayString(row.title), 1)], 8, _hoisted_6$1)) : row.option && row.index != null && !__props.grid ? (openBlock(), createElementBlock("div", {
289
+ }, [createElementVNode("span", _hoisted_7$1, toDisplayString(row.title), 1)], 8, _hoisted_6$1)) : row.option && row.index != null && !__props.grid ? (openBlock(), createElementBlock("div", mergeProps({
276
290
  key: 2,
277
291
  id: optionId(row.index),
278
292
  role: "option",
279
293
  tabindex: "-1",
280
- class: normalizeClass(["astryx-selector-option", {
294
+ class: ["astryx-selector-option", {
281
295
  "is-active": active(row.index),
282
296
  "is-selected": selected(row.option),
283
297
  "is-disabled": row.option.disabled
284
- }]),
298
+ }],
285
299
  "aria-selected": selected(row.option),
286
- "aria-disabled": row.option.disabled,
300
+ "aria-disabled": row.option.disabled
301
+ }, { ref_for: true }, stateAttrs(row.option, row.index), {
287
302
  onClick: ($event) => emit("select", row.option),
288
303
  onKeydown: [withKeys(($event) => emit("select", row.option), ["enter"]), withKeys(withModifiers(($event) => emit("select", row.option), ["prevent"]), ["space"])]
289
- }, [
304
+ }), [
290
305
  __props.indicatorPosition === "start" ? (openBlock(), createElementBlock("span", _hoisted_9$1, [(openBlock(), createBlock(resolveDynamicComponent(__props.mark), {
291
306
  class: "astryx-selector-check",
292
307
  state: selected(row.option) ? "checked" : "unchecked",
293
308
  size: "sm",
294
309
  "is-disabled": row.option.disabled
295
310
  }, null, 8, ["state", "is-disabled"]))])) : createCommentVNode("v-if", true),
296
- createElementVNode("span", _hoisted_10, [_ctx.$slots.option ? renderSlot(_ctx.$slots, "option", {
311
+ createElementVNode("span", _hoisted_10$1, [_ctx.$slots.option ? renderSlot(_ctx.$slots, "option", {
297
312
  option: row.option,
298
313
  isActive: active(row.index),
299
314
  isSelected: selected(row.option)
@@ -308,17 +323,17 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
308
323
  size: "sm",
309
324
  "is-disabled": row.option.disabled
310
325
  }, null, 8, ["state", "is-disabled"]))])) : createCommentVNode("v-if", true)
311
- ], 42, _hoisted_8$1)) : row.option && row.index != null ? (openBlock(), createElementBlock("div", {
326
+ ], 16, _hoisted_8$1)) : row.option && row.index != null ? (openBlock(), createElementBlock("div", mergeProps({
312
327
  key: 3,
313
- class: normalizeClass(["astryx-selector-option", {
328
+ class: ["astryx-selector-option", {
314
329
  "is-active": active(row.index),
315
330
  "is-selected": selected(row.option),
316
331
  "is-disabled": row.option.disabled
317
- }]),
332
+ }],
318
333
  role: "row",
319
334
  "aria-selected": selected(row.option),
320
335
  "aria-disabled": row.option.disabled || void 0
321
- }, [
336
+ }, { ref_for: true }, stateAttrs(row.option, row.index)), [
322
337
  createCommentVNode(" eslint-disable-next-line vue-a11y/click-events-have-key-events -- 选项格不进 Tab 序,方向键和回车由组合框处理。 "),
323
338
  createElementVNode("div", {
324
339
  id: optionId(row.index),
@@ -360,7 +375,7 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
360
375
  node: row.option.action,
361
376
  "dom-id": actionId(row.index)
362
377
  }, null, 8, ["node", "dom-id"])) : createCommentVNode("v-if", true)], 42, _hoisted_23)
363
- ], 10, _hoisted_15)) : createCommentVNode("v-if", true)], 64);
378
+ ], 16, _hoisted_15)) : createCommentVNode("v-if", true)], 64);
364
379
  }), 128))])) : __props.showEmpty ? (openBlock(), createElementBlock("div", _hoisted_24, [!__props.searching && _ctx.$slots.empty ? renderSlot(_ctx.$slots, "empty", {}, void 0, void 0, 0) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [createTextVNode(toDisplayString(__props.emptyText), 1)], 64))])) : createCommentVNode("v-if", true)], 512);
365
380
  };
366
381
  }
@@ -410,11 +425,28 @@ function createTriggerActivation(options) {
410
425
  };
411
426
  }
412
427
  //#endregion
428
+ //#region src/Selector/triggerName.ts
429
+ function ids(...parts) {
430
+ return parts.flatMap((part) => part?.split(" ") ?? []).filter(Boolean);
431
+ }
432
+ /**
433
+ * 触发器的 aria-labelledby。调用方的 id 接在字段标签(组内先是组标签)后面,
434
+ * 不取代它;可搜索的触发器再在最后接上所选的值。
435
+ * 返回 undefined 时触发器由 aria-label 命名。
436
+ */
437
+ function selectorTriggerLabelledBy(input) {
438
+ const caller = typeof input.callerLabelledBy === "string" && input.callerLabelledBy !== "" ? input.callerLabelledBy : void 0;
439
+ if (caller === void 0 && !input.includesValue) return void 0;
440
+ const base = ids(input.groupLabelId, input.fieldLabelId, caller);
441
+ return (input.includesValue ? [...base, input.valueId] : base).join(" ");
442
+ }
443
+ //#endregion
413
444
  //#region src/Selector/useListboxOverlay.ts
414
445
  /**
415
446
  * 原版的下拉列表(没有搜索框、没指定位置时)把选中项盖在触发器上:
416
447
  * 列表上移,使选中项的顶边和字段顶边对齐;还没选值时贴着字段下沿、不留空隙。
417
448
  * 只在朝下展开时生效;空间不够翻到上方时按普通位置走。
449
+ * 列表自己的尺寸变了(选项增减、异步加载)也重新量一次,选中项始终留在触发器上。
418
450
  */
419
451
  function useListboxOverlay(options) {
420
452
  const overlayTop = ref(null);
@@ -438,9 +470,42 @@ function useListboxOverlay(options) {
438
470
  ], () => {
439
471
  nextTick(syncOverlay);
440
472
  }, { flush: "post" });
473
+ let stopObserving;
474
+ watch([options.isOpen, options.listboxRef], ([open, list]) => {
475
+ stopObserving?.();
476
+ stopObserving = void 0;
477
+ if (!open || !list) return;
478
+ let isInitial = true;
479
+ stopObserving = observeResize(list, () => {
480
+ if (isInitial) {
481
+ isInitial = false;
482
+ return;
483
+ }
484
+ syncOverlay();
485
+ });
486
+ }, { flush: "post" });
487
+ onScopeDispose(() => stopObserving?.());
441
488
  return { overlayTop };
442
489
  }
443
490
  //#endregion
491
+ //#region src/Selector/useListboxStyle.ts
492
+ /** 弹层形态下列表的位置和最小宽度;底部弹层不用定位。 */
493
+ function useListboxStyle(options) {
494
+ const anchorWidth = ref(0);
495
+ function syncAnchorWidth() {
496
+ anchorWidth.value = options.fieldRef.value?.getBoundingClientRect().width ?? 0;
497
+ }
498
+ watch(options.isOpen, (open) => {
499
+ if (open) syncAnchorWidth();
500
+ }, { flush: "pre" });
501
+ onMounted(syncAnchorWidth);
502
+ return computed(() => options.isSheet.value ? void 0 : {
503
+ top: `${options.overlayTop.value ?? options.position.value.top}px`,
504
+ left: `${options.position.value.left}px`,
505
+ minWidth: anchorWidth.value > 0 ? clampInlineSize(`${anchorWidth.value}px`) : void 0
506
+ });
507
+ }
508
+ //#endregion
444
509
  //#region src/Selector/useSelectorPopup.ts
445
510
  /** 选项操作把弹出层锁成网格,并拦下行末方向键。 */
446
511
  function useSelectorPopup(options) {
@@ -494,6 +559,19 @@ function useSelectorPopup(options) {
494
559
  };
495
560
  }
496
561
  //#endregion
562
+ //#region src/Selector/useSelectorTexts.ts
563
+ /** 调用方没给文案时,各处用内置文案补上。 */
564
+ function useSelectorTexts(props, messages) {
565
+ return {
566
+ resolvedPlaceholder: computed(() => props.placeholder ?? messages.value.selector.placeholder),
567
+ resolvedSearchPlaceholder: computed(() => props.searchPlaceholder ?? messages.value.selector.search),
568
+ resolvedClearLabel: computed(() => props.clearLabel ?? messages.value.selector.clear),
569
+ valueClearLabel: computed(() => props.clearLabel ?? messages.value.selector.clearField(props.label)),
570
+ resolvedEmptyText: computed(() => props.emptyText ?? messages.value.selector.empty),
571
+ resolvedEmptySearchText: computed(() => props.emptySearchText ?? messages.value.selector.emptySearch)
572
+ };
573
+ }
574
+ //#endregion
497
575
  //#region src/Selector/Selector.vue
498
576
  const _hoisted_1 = ["data-variant"];
499
577
  const _hoisted_2 = [
@@ -507,28 +585,31 @@ const _hoisted_2 = [
507
585
  "aria-busy",
508
586
  "aria-required",
509
587
  "aria-label",
588
+ "aria-labelledby",
510
589
  "aria-describedby",
511
590
  "aria-autocomplete",
512
591
  "aria-activedescendant"
513
592
  ];
514
- const _hoisted_3 = { class: "astryx-selector-value-label" };
515
- const _hoisted_4 = ["aria-label"];
516
- const _hoisted_5 = ["id"];
517
- const _hoisted_6 = { class: "astryx-selector-sheet-title" };
518
- const _hoisted_7 = [
593
+ const _hoisted_3 = ["id"];
594
+ const _hoisted_4 = { class: "astryx-selector-value-label" };
595
+ const _hoisted_5 = ["aria-label"];
596
+ const _hoisted_6 = ["id"];
597
+ const _hoisted_7 = { class: "astryx-selector-sheet-title" };
598
+ const _hoisted_8 = [
519
599
  "id",
520
600
  "role",
601
+ "aria-label",
521
602
  "data-placement",
522
603
  "data-keyboard-highlight"
523
604
  ];
524
- const _hoisted_8 = [
605
+ const _hoisted_9 = [
525
606
  "id",
526
607
  "name",
527
608
  "value",
528
609
  "disabled",
529
610
  "aria-label"
530
611
  ];
531
- const _hoisted_9 = ["value"];
612
+ const _hoisted_10 = ["value"];
532
613
  const _sfc_main = /*@__PURE__*/ defineComponent({
533
614
  name: "AstryxSelector",
534
615
  inheritAttrs: false,
@@ -629,6 +710,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
629
710
  setup(__props, { emit: __emit }) {
630
711
  const props = __props;
631
712
  const emit = __emit;
713
+ assertOptionsArray("Selector", props.options);
632
714
  const size = useSize(() => props.size, "md");
633
715
  const slots = useSlots();
634
716
  const attrs = useAttrs();
@@ -659,13 +741,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
659
741
  const selectorId = computed(() => typeof attrs.id === "string" && attrs.id !== "" ? attrs.id : generatedId);
660
742
  const listboxId = computed(() => `${selectorId.value}-listbox`);
661
743
  const messages = useComponentMessages({ selector: selectorMessages });
662
- const resolvedPlaceholder = computed(() => props.placeholder ?? messages.value.selector.placeholder);
663
- const resolvedSearchPlaceholder = computed(() => props.searchPlaceholder ?? messages.value.selector.search);
664
- const resolvedClearLabel = computed(() => props.clearLabel ?? messages.value.selector.clear);
665
- /** 值上的清除按钮带着字段名,读屏能听出清的是哪一项。 */
666
- const valueClearLabel = computed(() => props.clearLabel ?? messages.value.selector.clearField(props.label));
667
- const resolvedEmptyText = computed(() => props.emptyText ?? messages.value.selector.empty);
668
- const resolvedEmptySearchText = computed(() => props.emptySearchText ?? messages.value.selector.emptySearch);
744
+ const { resolvedPlaceholder, resolvedSearchPlaceholder, resolvedClearLabel, valueClearLabel, resolvedEmptyText, resolvedEmptySearchText } = useSelectorTexts(props, messages);
669
745
  const inputGroup = useInputGroupContext();
670
746
  const inGroup = computed(() => inputGroup != null);
671
747
  const groupDisabled = useInputGroupDisabled(() => props.disabled);
@@ -693,6 +769,8 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
693
769
  const sheetLabel = computed(() => props.label || resolvedPlaceholder.value);
694
770
  const isEnabled = control.canActivate;
695
771
  const isSearchable = computed(() => props.searchable && control.canActivate.value);
772
+ /** 带搜索且不是只读时,触发器是普通按钮,搜索框才是组合框。 */
773
+ const isSearchTrigger = computed(() => props.searchable && !control.isReadOnly.value);
696
774
  const normalizedEntries = computed(() => normalizeSelectorEntries(props.options));
697
775
  const flatOptions = computed(() => flattenSelectorOptions(normalizedEntries.value));
698
776
  const comboboxOptions = computed(() => flatOptions.value.map((opt) => ({
@@ -714,6 +792,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
714
792
  isSearchable,
715
793
  onChange: (value) => {
716
794
  modelValueRef.value = value;
795
+ focusSelectorTrigger(fieldRef.value);
717
796
  },
718
797
  onOpenChange: (isOpen) => {
719
798
  if (isOpen && props.searchable) nextTick(() => {
@@ -776,6 +855,21 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
776
855
  });
777
856
  const isSearching = computed(() => props.searchable && combobox.searchQuery.value.trim() !== "");
778
857
  const showEmpty = computed(() => isEmpty.value && !control.isLoading.value);
858
+ const fieldLabelId = computed(() => `${selectorId.value}-label`);
859
+ const valueId = computed(() => `${selectorId.value}-value`);
860
+ /** 调用方的 aria-label 优先于字段标签。 */
861
+ const triggerAriaLabel = computed(() => {
862
+ const external = attrs["aria-label"];
863
+ return typeof external === "string" && external !== "" ? external : props.label;
864
+ });
865
+ /** 带搜索的触发器是不带角色的按钮,读屏不念它的值,所以名字里接上所选的值。 */
866
+ const triggerLabelledBy = computed(() => selectorTriggerLabelledBy({
867
+ fieldLabelId: fieldLabelId.value,
868
+ valueId: valueId.value,
869
+ groupLabelId: inGroup.value ? inputGroup?.labelId.value : void 0,
870
+ callerLabelledBy: attrs["aria-labelledby"],
871
+ includesValue: isSearchTrigger.value
872
+ }));
779
873
  const describedBy = computed(() => {
780
874
  return [
781
875
  inGroup.value ? inputGroup?.describedBy.value : void 0,
@@ -838,10 +932,6 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
838
932
  combobox.setSearchQuery(value);
839
933
  emit("search", value);
840
934
  }
841
- const anchorWidth = ref(0);
842
- function syncAnchorWidth() {
843
- anchorWidth.value = fieldRef.value?.getBoundingClientRect().width ?? 0;
844
- }
845
935
  const { overlayTop } = useListboxOverlay({
846
936
  fieldRef,
847
937
  listboxRef,
@@ -850,15 +940,13 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
850
940
  value: () => props.modelValue,
851
941
  isEnabled: () => !props.searchable && !isSheet.value && props.placement == null
852
942
  });
853
- const listboxStyle = computed(() => isSheet.value ? void 0 : {
854
- top: `${overlayTop.value ?? position.value.top}px`,
855
- left: `${position.value.left}px`,
856
- minWidth: anchorWidth.value > 0 ? clampInlineSize(`${anchorWidth.value}px`) : void 0
943
+ const listboxStyle = useListboxStyle({
944
+ fieldRef,
945
+ isOpen: combobox.isOpen,
946
+ isSheet,
947
+ overlayTop,
948
+ position
857
949
  });
858
- watch(combobox.isOpen, (open) => {
859
- if (open) syncAnchorWidth();
860
- }, { flush: "pre" });
861
- onMounted(syncAnchorWidth);
862
950
  return (_ctx, _cache) => {
863
951
  return openBlock(), createBlock(_sfc_main$7, {
864
952
  class: normalizeClass(["astryx-selector", [
@@ -915,8 +1003,9 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
915
1003
  "aria-readonly": unref(control).isReadOnly.value || void 0,
916
1004
  "aria-disabled": unref(control).isDisabled.value || void 0,
917
1005
  "aria-busy": unref(control).isLoading.value || void 0,
918
- "aria-required": props.isRequired || void 0,
919
- "aria-label": props.label,
1006
+ "aria-required": props.isRequired && !isSearchTrigger.value ? true : void 0,
1007
+ "aria-label": triggerAriaLabel.value,
1008
+ "aria-labelledby": triggerLabelledBy.value,
920
1009
  "aria-describedby": describedBy.value,
921
1010
  "aria-autocomplete": props.searchable ? void 0 : "none",
922
1011
  "aria-activedescendant": !props.searchable && !unref(control).isReadOnly.value ? unref(actionGrid).activeDescendant.value : void 0,
@@ -924,15 +1013,18 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
924
1013
  onFocus: onTriggerFocus,
925
1014
  onBlur: _cache[1] || (_cache[1] = (...args) => unref(disabledTooltip).onBlur && unref(disabledTooltip).onBlur(...args)),
926
1015
  onKeydown: _cache[2] || (_cache[2] = (...args) => unref(onTriggerKeyDown) && unref(onTriggerKeyDown)(...args))
927
- }), [createElementVNode("span", { class: normalizeClass(["astryx-selector-value", {
928
- "is-placeholder": !selectedOption.value,
929
- "is-rich": unref(slots).selected,
930
- "is-grouped": inGroup.value
931
- }]) }, [unref(slots).selected ? renderSlot(_ctx.$slots, "selected", { option: selectedOption.value }, void 0, void 0, 0) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [!props.startIcon && selectedOption.value?.icon ? (openBlock(), createBlock(unref(SelectorIcon), {
1016
+ }), [createElementVNode("span", {
1017
+ id: valueId.value,
1018
+ class: normalizeClass(["astryx-selector-value", {
1019
+ "is-placeholder": !selectedOption.value,
1020
+ "is-rich": unref(slots).selected,
1021
+ "is-grouped": inGroup.value
1022
+ }])
1023
+ }, [unref(slots).selected ? renderSlot(_ctx.$slots, "selected", { option: selectedOption.value }, void 0, void 0, 0) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [!props.startIcon && selectedOption.value?.icon ? (openBlock(), createBlock(unref(SelectorIcon), {
932
1024
  key: 0,
933
1025
  class: "astryx-selector-value-icon",
934
1026
  icon: selectedOption.value.icon
935
- }, null, 8, ["icon"])) : createCommentVNode("v-if", true), createElementVNode("span", _hoisted_3, toDisplayString(displayText.value), 1)], 64))], 2)], 16, _hoisted_2),
1027
+ }, null, 8, ["icon"])) : createCommentVNode("v-if", true), createElementVNode("span", _hoisted_4, toDisplayString(displayText.value), 1)], 64))], 10, _hoisted_3)], 16, _hoisted_2),
936
1028
  unref(control).isLoading.value ? (openBlock(), createBlock(_sfc_main$6, {
937
1029
  key: 1,
938
1030
  class: "astryx-selector-spinner",
@@ -943,12 +1035,12 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
943
1035
  key: 2,
944
1036
  type: "button",
945
1037
  class: "astryx-selector-clear",
946
- "aria-label": valueClearLabel.value,
1038
+ "aria-label": unref(valueClearLabel),
947
1039
  onClick: onClear
948
1040
  }, [createVNode(_sfc_main$3, {
949
1041
  icon: "close",
950
1042
  size: "sm"
951
- })], 8, _hoisted_4)) : createCommentVNode("v-if", true),
1043
+ })], 8, _hoisted_5)) : createCommentVNode("v-if", true),
952
1044
  statusGlyph.value ? (openBlock(), createBlock(_sfc_main$8, {
953
1045
  key: 3,
954
1046
  type: statusGlyph.value,
@@ -968,7 +1060,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
968
1060
  key: 5,
969
1061
  id: readOnlyId.value,
970
1062
  class: "astryx-visually-hidden"
971
- }, toDisplayString(unref(messages).selector.readOnly), 9, _hoisted_5)) : createCommentVNode("v-if", true)
1063
+ }, toDisplayString(unref(messages).selector.readOnly), 9, _hoisted_6)) : createCommentVNode("v-if", true)
972
1064
  ], 46, _hoisted_1),
973
1065
  showsDisabledMessage.value ? (openBlock(), createBlock(_sfc_main$4, {
974
1066
  key: 0,
@@ -1005,7 +1097,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
1005
1097
  ref_key: "sheetSlot",
1006
1098
  ref: sheetSlot,
1007
1099
  class: "astryx-selector-sheet"
1008
- }, [createElementVNode("div", _hoisted_6, toDisplayString(sheetLabel.value), 1)], 512)]),
1100
+ }, [createElementVNode("div", _hoisted_7, toDisplayString(sheetLabel.value), 1)], 512)]),
1009
1101
  _: 1
1010
1102
  }, 8, ["is-open", "label"])) : createCommentVNode("v-if", true),
1011
1103
  (openBlock(), createBlock(Teleport, { to: isSheet.value && sheetSlot.value ? sheetSlot.value : unref(teleportTarget) }, [withDirectives(createElementVNode("div", {
@@ -1013,21 +1105,23 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
1013
1105
  ref_key: "listboxRef",
1014
1106
  ref: listboxRef,
1015
1107
  role: unref(gridMode) ? "grid" : "listbox",
1108
+ "aria-label": fieldLabel.value,
1016
1109
  class: normalizeClass(["astryx-selector-listbox astryx-layer", [{
1017
1110
  "is-sheet": isSheet.value,
1018
1111
  "is-input": triggerVariant.value === "input"
1019
1112
  }, `size-${unref(size)}`]]),
1020
1113
  "data-placement": isSheet.value ? void 0 : unref(position).placement,
1021
- style: normalizeStyle(listboxStyle.value),
1114
+ style: normalizeStyle(unref(listboxStyle)),
1022
1115
  "data-keyboard-highlight": unref(isKeyboardHighlight) || void 0,
1023
1116
  tabindex: "-1"
1024
1117
  }, [createVNode(_sfc_main$1, {
1025
1118
  ref_key: "panelRef",
1026
1119
  ref: panelRef,
1027
1120
  searchable: props.searchable,
1121
+ required: props.isRequired,
1028
1122
  query: unref(combobox).searchQuery.value,
1029
- placeholder: resolvedSearchPlaceholder.value,
1030
- "clear-label": resolvedClearLabel.value,
1123
+ placeholder: unref(resolvedSearchPlaceholder),
1124
+ "clear-label": unref(resolvedClearLabel),
1031
1125
  rows: displayRows.value,
1032
1126
  "active-index": unref(combobox).activeIndex.value,
1033
1127
  "model-value": props.modelValue,
@@ -1037,7 +1131,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
1037
1131
  loading: unref(control).isLoading.value,
1038
1132
  "show-empty": showEmpty.value,
1039
1133
  searching: isSearching.value,
1040
- "empty-text": isSearching.value ? resolvedEmptySearchText.value : resolvedEmptyText.value,
1134
+ "empty-text": isSearching.value ? unref(resolvedEmptySearchText) : unref(resolvedEmptyText),
1041
1135
  "listbox-id": listboxId.value,
1042
1136
  "is-open": unref(combobox).isOpen.value,
1043
1137
  "active-descendant": unref(actionGrid).activeDescendant.value,
@@ -1055,6 +1149,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
1055
1149
  key: "1"
1056
1150
  } : void 0]), 1032, [
1057
1151
  "searchable",
1152
+ "required",
1058
1153
  "query",
1059
1154
  "placeholder",
1060
1155
  "clear-label",
@@ -1073,14 +1168,14 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
1073
1168
  "active-descendant",
1074
1169
  "mark",
1075
1170
  "onKeydown"
1076
- ])], 14, _hoisted_7), [[vShow, unref(combobox).isOpen.value]])], 8, ["to"])),
1171
+ ])], 14, _hoisted_8), [[vShow, unref(combobox).isOpen.value]])], 8, ["to"])),
1077
1172
  props.name ? (openBlock(), createElementBlock("select", {
1078
1173
  key: 3,
1079
1174
  id: `${selectorId.value}-hidden-select`,
1080
1175
  name: props.name,
1081
1176
  value: props.modelValue ?? "",
1082
1177
  disabled: unref(control).isDisabled.value,
1083
- "aria-label": props.label || resolvedPlaceholder.value,
1178
+ "aria-label": props.label || unref(resolvedPlaceholder),
1084
1179
  tabindex: "-1",
1085
1180
  style: {
1086
1181
  "position": "absolute",
@@ -1092,8 +1187,8 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
1092
1187
  return openBlock(), createElementBlock("option", {
1093
1188
  key: option.value,
1094
1189
  value: option.value
1095
- }, toDisplayString(option.label), 9, _hoisted_9);
1096
- }), 128))], 8, _hoisted_8)) : createCommentVNode("v-if", true)
1190
+ }, toDisplayString(option.label), 9, _hoisted_10);
1191
+ }), 128))], 8, _hoisted_9)) : createCommentVNode("v-if", true)
1097
1192
  ]),
1098
1193
  _: 3
1099
1194
  }, 8, [
@@ -1,2 +1,2 @@
1
- import { Cr as SideNavSectionProps, Sr as SideNavResizable, Tr as useSideNavCollapse, _r as SideNavHandle, br as SideNavItemProps, cr as _default$2, dr as SideNavCollapseButtonProps, fr as SideNavCollapseButtonSize, gr as SideNavEmits, hr as SideNavControlledCollapsible, lr as _default$1, mr as SideNavCollapsible, or as _default$4, pr as SideNavCollapseButtonSlots, sr as _default$3, ur as _default, vr as SideNavHeadingProps, wr as SideNavCollapseContext, xr as SideNavProps, yr as SideNavItemEmits } from "../index-LHvLg1Pv.js";
1
+ import { Cr as SideNavSectionProps, Sr as SideNavResizable, Tr as useSideNavCollapse, _r as SideNavHandle, br as SideNavItemProps, cr as _default$2, dr as SideNavCollapseButtonProps, fr as SideNavCollapseButtonSize, gr as SideNavEmits, hr as SideNavControlledCollapsible, lr as _default$1, mr as SideNavCollapsible, or as _default$4, pr as SideNavCollapseButtonSlots, sr as _default$3, ur as _default, vr as SideNavHeadingProps, wr as SideNavCollapseContext, xr as SideNavProps, yr as SideNavItemEmits } from "../index-B95VIgRl.js";
2
2
  export { _default as SideNav, _default$1 as SideNavCollapseButton, type SideNavCollapseButtonProps, type SideNavCollapseButtonSize, type SideNavCollapseButtonSlots, type SideNavCollapseContext, type SideNavCollapsible, type SideNavControlledCollapsible, type SideNavEmits, type SideNavHandle, _default$2 as SideNavHeading, type SideNavHeadingProps, _default$3 as SideNavItem, type SideNavItemEmits, type SideNavItemProps, type SideNavProps, type SideNavResizable, _default$4 as SideNavSection, type SideNavSectionProps, useSideNavCollapse };
@@ -1,2 +1,2 @@
1
- import { a as StepProps, c as StepperCollapsedVariant, d as StepperIndicatorPosition, f as StepperOrientation, i as StepProgress, l as StepperDensity, m as StepperSlots, n as _default, o as StepSlots, p as StepperProps, r as StepIndicator, s as StepStatus, t as _default$1, u as StepperHorizontalOptions } from "../index-sXu15K4j.js";
1
+ import { a as StepProps, c as StepperCollapsedVariant, d as StepperIndicatorPosition, f as StepperOrientation, i as StepProgress, l as StepperDensity, m as StepperSlots, n as _default, o as StepSlots, p as StepperProps, r as StepIndicator, s as StepStatus, t as _default$1, u as StepperHorizontalOptions } from "../index-CO9GW-ik.js";
2
2
  export { _default as Step, type StepIndicator, type StepProgress, type StepProps, type StepSlots, type StepStatus, _default$1 as Stepper, type StepperCollapsedVariant, type StepperDensity, type StepperHorizontalOptions, type StepperIndicatorPosition, type StepperOrientation, type StepperProps, type StepperSlots };
@@ -1,2 +1,2 @@
1
- import { $n as SwitchLabelPosition, Qn as SwitchEmits, Xn as SwitchChangeAction, Yn as _default, Zn as SwitchChangeEvent, ar as SwitchStatusType, er as SwitchLabelSpacing, ir as SwitchStatus, nr as SwitchSize, rr as SwitchSlots, tr as SwitchProps } from "../index-LHvLg1Pv.js";
1
+ import { $n as SwitchLabelPosition, Qn as SwitchEmits, Xn as SwitchChangeAction, Yn as _default, Zn as SwitchChangeEvent, ar as SwitchStatusType, er as SwitchLabelSpacing, ir as SwitchStatus, nr as SwitchSize, rr as SwitchSlots, tr as SwitchProps } from "../index-B95VIgRl.js";
2
2
  export { _default as Switch, type SwitchChangeAction, type SwitchChangeEvent, type SwitchEmits, type SwitchLabelPosition, type SwitchLabelSpacing, type SwitchProps, type SwitchSize, type SwitchSlots, type SwitchStatus, type SwitchStatusType };
@@ -1,2 +1,2 @@
1
- import { a as TabListLayout, c as TabListSize, d as TabMenuProps, f as TabProps, i as TabListEdgeCompensation, l as TabListTab, n as _default$1, o as TabListOverflow, p as TabSlots, r as _default, s as TabListProps, t as _default$2, u as TabMenuOption } from "../index-C5e2rZML.js";
1
+ import { a as TabListLayout, c as TabListSize, d as TabMenuProps, f as TabProps, i as TabListEdgeCompensation, l as TabListTab, n as _default$1, o as TabListOverflow, p as TabSlots, r as _default, s as TabListProps, t as _default$2, u as TabMenuOption } from "../index-dWlCpnua.js";
2
2
  export { _default as Tab, _default$1 as TabList, type TabListEdgeCompensation, type TabListLayout, type TabListOverflow, type TabListProps, type TabListSize, type TabListTab, _default$2 as TabMenu, type TabMenuOption, type TabMenuProps, type TabProps, type TabSlots };