@astryx-vue/core 0.22.0 → 0.24.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 (352) hide show
  1. package/dist/AlertDialog/index.js +1 -1
  2. package/dist/{AlertDialog-VD9PadlM.js → AlertDialog-DXOTr1D7.js} +4 -4
  3. package/dist/AppShell/index.d.ts +1 -1
  4. package/dist/AppShell/index.js +1 -1
  5. package/dist/{AppShell-C4XGguw0.js → AppShell-Cmu6bMY6.js} +63 -23
  6. package/dist/Avatar/index.js +1 -1
  7. package/dist/{Avatar-CAweS1WY.js → Avatar-dMcn3j8Z.js} +1 -1
  8. package/dist/AvatarGroup/index.d.ts +1 -1
  9. package/dist/Banner/index.d.ts +1 -1
  10. package/dist/Banner/index.js +1 -1
  11. package/dist/{Banner-DnK7bKAb.js → Banner-CTY9qV89.js} +2 -2
  12. package/dist/BottomSheet/index.js +2 -2
  13. package/dist/{BottomSheet-CM0-eaUF.js → BottomSheet-DyJJtZZU.js} +5 -5
  14. package/dist/{BottomSheet-C4OU3mJT.js → BottomSheet-ZOjuZya0.js} +3 -3
  15. package/dist/Breadcrumbs/index.d.ts +2 -2
  16. package/dist/Breadcrumbs/index.js +2 -2
  17. package/dist/{Breadcrumbs-DZAgtC9c.js → Breadcrumbs-Nv-089W0.js} +2 -2
  18. package/dist/Button/index.d.ts +1 -1
  19. package/dist/Button/index.js +1 -1
  20. package/dist/{Button-Blnc0yB3.js → Button-TiYG0btL.js} +4 -4
  21. package/dist/ButtonGroup/index.d.ts +1 -1
  22. package/dist/Calendar/index.d.ts +2 -2
  23. package/dist/Calendar/index.js +3 -2
  24. package/dist/Calendar-B6TZYEge.js +105 -0
  25. package/dist/{Calendar-ydp0vJdO.js → Calendar-CUMnYIhe.js} +182 -257
  26. package/dist/Card/index.d.ts +1 -1
  27. package/dist/Card/index.js +1 -1
  28. package/dist/{Card-BbKFHWuD.js → Card-D_OJxmwD.js} +1 -1
  29. package/dist/Carousel/index.d.ts +1 -1
  30. package/dist/Carousel/index.js +1 -1
  31. package/dist/{Carousel-CB4Iap-B.js → Carousel-DsXup1mZ.js} +2 -2
  32. package/dist/Chat/index.d.ts +1 -1
  33. package/dist/Chat/index.js +1 -1
  34. package/dist/{Chat-DjJPQ9bX.js → Chat-DqYT_S9M.js} +7 -6
  35. package/dist/CheckboxInput/index.d.ts +1 -1
  36. package/dist/CheckboxInput/index.js +1 -1
  37. package/dist/{CheckboxInput-CGTPmOHs.js → CheckboxInput-FKfsoLcl.js} +17 -7
  38. package/dist/CheckboxList/index.d.ts +1 -1
  39. package/dist/CheckboxList/index.js +1 -1
  40. package/dist/{CheckboxList-CGzHkA95.js → CheckboxList-DuSVBtMk.js} +22 -7
  41. package/dist/Citation/index.js +1 -1
  42. package/dist/{Citation-CSgRYxGU.js → Citation-Ijf06x0V.js} +1 -1
  43. package/dist/ClickableCard/index.d.ts +1 -1
  44. package/dist/ClickableCard/index.js +1 -1
  45. package/dist/{ClickableCard-DMX5z-QV.js → ClickableCard-dNmSVHBu.js} +2 -2
  46. package/dist/Code/index.d.ts +1 -1
  47. package/dist/Code/index.js +2 -2
  48. package/dist/{Code-rmiC0XfO.js → Code-5rZyPwty.js} +1 -1
  49. package/dist/{CodeBlock-CwQCMSKA.js → CodeBlock-5KoJDvWd.js} +3 -3
  50. package/dist/Collapsible/index.d.ts +1 -1
  51. package/dist/Collapsible/index.js +1 -1
  52. package/dist/{Collapsible-BVoNZijw.js → Collapsible-B1qW6OuL.js} +3 -1
  53. package/dist/CommandPalette/index.js +1 -1
  54. package/dist/{CommandPalette-DBOETNGM.js → CommandPalette-B2riNg_7.js} +3 -3
  55. package/dist/ComplexSelector/index.d.ts +1 -1
  56. package/dist/ComplexSelector/index.js +1 -1
  57. package/dist/{ComplexSelector-CNBH2t6W.js → ComplexSelector-C4CO8Fd2.js} +5 -5
  58. package/dist/{ComponentIcon-BRXBBKeG.js → ComponentIcon-Dw4xQxg3.js} +3 -3
  59. package/dist/ContextMenu/index.d.ts +2 -2
  60. package/dist/ContextMenu/index.js +2 -2
  61. package/dist/{ContextMenu-CUwAPrVP.js → ContextMenu-SzsWZf18.js} +7 -7
  62. package/dist/DateInput/index.d.ts +1 -1
  63. package/dist/DateInput/index.js +1 -1
  64. package/dist/{DateInput-BQ-3bvV5.js → DateInput-D9Jv70H7.js} +1210 -108
  65. package/dist/DateRangeInput/index.d.ts +1 -1
  66. package/dist/DateRangeInput/index.js +1 -1
  67. package/dist/{DateRangeInput-DFXz4vNX.js → DateRangeInput-BsB2kg_q.js} +75 -55
  68. package/dist/DateTimeInput/index.d.ts +1 -1
  69. package/dist/DateTimeInput/index.js +1 -1
  70. package/dist/{DateTimeInput-BHO4nXKW.js → DateTimeInput-BDyKPKGD.js} +26 -13
  71. package/dist/Dialog/index.d.ts +1 -1
  72. package/dist/Dialog/index.js +3 -3
  73. package/dist/{Dialog-Dx6zuttb.js → Dialog-DUlWQH8R.js} +1 -1
  74. package/dist/{Dialog-BCPhWMxL.js → Dialog-JCB5s-T-.js} +4 -4
  75. package/dist/{DialogHeader-C9fp2Rti.js → DialogHeader-C6hZZxdv.js} +3 -3
  76. package/dist/Drawer/index.d.ts +1 -1
  77. package/dist/Drawer/index.js +1 -1
  78. package/dist/{Drawer--2vLSKY_.js → Drawer-BDuiw1-g.js} +2 -2
  79. package/dist/DropdownMenu/index.d.ts +2 -2
  80. package/dist/DropdownMenu/index.js +3 -3
  81. package/dist/{DropdownMenu-CskkQAAz.js → DropdownMenu-BhxKnh6D.js} +10 -10
  82. package/dist/{DropdownMenu-BImEVieZ.js → DropdownMenu-Der2x_k_.js} +7 -7
  83. package/dist/{DropdownMenuRadioItem.vue-C9DdN6UE.d.ts → DropdownMenuRadioItem.vue-DINRx71W.d.ts} +1 -1
  84. package/dist/EmptyState/index.js +1 -1
  85. package/dist/{EmptyState-Dq3NWNnG.js → EmptyState-CnFkYtcS.js} +3 -3
  86. package/dist/Field/index.js +3 -3
  87. package/dist/{Field-DsucLkyQ.js → Field-D4UmRHlD.js} +2 -2
  88. package/dist/{FieldIcon-DMtfe1Ne.js → FieldIcon-BU1ZWAuo.js} +1 -1
  89. package/dist/{FieldInfoTip-1zW3QTQG.js → FieldInfoTip-BSqcEcUx.js} +2 -2
  90. package/dist/{FieldLabel-D9uFPtXs.js → FieldLabel-CZbayYFD.js} +2 -2
  91. package/dist/FieldStatus/index.js +1 -1
  92. package/dist/{FieldStatus-DSUCli4W.js → FieldStatus-DmCWPT6U.js} +1 -1
  93. package/dist/FileInput/index.d.ts +1 -1
  94. package/dist/FileInput/index.js +1 -1
  95. package/dist/{FileInput-DLtHinlh.js → FileInput-8oYiJsq_.js} +4 -4
  96. package/dist/Grid/index.d.ts +1 -1
  97. package/dist/Grid/index.js +1 -1
  98. package/dist/{Grid-C0mp7fha.js → Grid-DTnDDT0Q.js} +2 -2
  99. package/dist/Heading/index.js +1 -1
  100. package/dist/{Heading-DBBChghq.js → Heading-COtyAhtB.js} +1 -1
  101. package/dist/HoverCard/index.js +1 -1
  102. package/dist/{HoverCard-BW-bOUZI.js → HoverCard-DGlOpk4x.js} +4 -4
  103. package/dist/Icon/index.js +3 -3
  104. package/dist/{Icon-BCHo7W0x.js → Icon-Dk0jccgU.js} +2 -1
  105. package/dist/{Icon-B2aULLnn.js → Icon-M1Rlknd0.js} +2 -1
  106. package/dist/IconButton/index.js +1 -1
  107. package/dist/{IconButton-CIUbkA8_.js → IconButton-CwjHTIBg.js} +1 -1
  108. package/dist/Indicator/index.js +1 -1
  109. package/dist/InfoTip/index.d.ts +1 -1
  110. package/dist/InfoTip/index.js +1 -1
  111. package/dist/{InfoTip-C71T8lv_.js → InfoTip-CNZateDb.js} +2 -2
  112. package/dist/{InputClearButton-h0BxBXu1.js → InputClearButton-CzCP41sx.js} +2 -2
  113. package/dist/InputGroup/index.js +1 -1
  114. package/dist/{InputGroup-DHPTru5v.js → InputGroup-CfUGHDNz.js} +1 -1
  115. package/dist/InternationalizationProvider/index.d.ts +1 -1
  116. package/dist/InternationalizationProvider/index.js +1 -1
  117. package/dist/{InternationalizationProvider-Ddo_-tLK.js → InternationalizationProvider-DaZS5Dch.js} +5 -2
  118. package/dist/{LayerContentBoundary-DxeAFxNJ.js → LayerContentBoundary-LCQLyxBT.js} +1 -1
  119. package/dist/Layout/index.d.ts +1 -1
  120. package/dist/Layout/index.js +2 -2
  121. package/dist/{Layout-DP2vrvTv.js → Layout-DOIeCgs4.js} +2 -2
  122. package/dist/{LayoutPanel-DuroKU_A.js → LayoutPanel-C7Wsid2W.js} +34 -14
  123. package/dist/Lightbox/index.js +1 -1
  124. package/dist/{Lightbox-B3WP06Qt.js → Lightbox-Dzzd2Vqe.js} +4 -4
  125. package/dist/Link/index.d.ts +1 -1
  126. package/dist/Link/index.js +1 -1
  127. package/dist/{Link-CQK9d_Yf.js → Link-B7OJQ0zl.js} +2 -2
  128. package/dist/List/index.d.ts +2 -2
  129. package/dist/List/index.js +2 -2
  130. package/dist/{ListItem-Bc4snKv8.js → ListItem-gj_lOvEt.js} +4 -1
  131. package/dist/Markdown/index.js +1 -1
  132. package/dist/{Markdown-BVXFWJT0.js → Markdown-Cbj-nqhN.js} +4 -4
  133. package/dist/{MediaTheme-DfcdEWx-.js → MediaTheme-UM8oOqwX.js} +1 -1
  134. package/dist/MobileNav/index.js +1 -1
  135. package/dist/{MobileNavToggle-DGZPwsf9.js → MobileNavToggle-BlcdCg8M.js} +3 -3
  136. package/dist/MoreMenu/index.d.ts +1 -1
  137. package/dist/MoreMenu/index.js +1 -1
  138. package/dist/{MoreMenu-Q_KpDTNB.js → MoreMenu-Dokwc4Mg.js} +6 -6
  139. package/dist/MultiSelector/index.d.ts +1 -1
  140. package/dist/MultiSelector/index.js +1 -1
  141. package/dist/{MultiSelector-CzGsdjcl.js → MultiSelector-CId8-qAX.js} +13 -12
  142. package/dist/{NavDisclosure-DIYayUrP.js → NavDisclosure-CqAThYgR.js} +1 -1
  143. package/dist/{NavHeadingSurface-bFcFpeMI.js → NavHeadingSurface-DJ4pWvEi.js} +2 -2
  144. package/dist/NavItem/index.d.ts +1 -1
  145. package/dist/NavItem/index.js +1 -1
  146. package/dist/{NavItem-CB3loauj.js → NavItem-_eIEwV41.js} +1 -1
  147. package/dist/NavMenu/index.js +3 -3
  148. package/dist/{NavMenu-DYvMKPU_.js → NavMenu-BtA_Xbmr.js} +3 -3
  149. package/dist/{NavMenuItem-Ccix-agv.js → NavMenuItem-BxfjAf1T.js} +2 -2
  150. package/dist/NumberInput/index.d.ts +1 -1
  151. package/dist/NumberInput/index.js +1 -1
  152. package/dist/{NumberInput-DTksMfSU.js → NumberInput-Bl5TFhGD.js} +5 -5
  153. package/dist/OverflowList/index.d.ts +1 -1
  154. package/dist/OverflowList/index.js +1 -1
  155. package/dist/{OverflowList-DKM7TeUs.js → OverflowList-CumJl6X_.js} +2 -2
  156. package/dist/Pagination/index.d.ts +1 -1
  157. package/dist/Pagination/index.js +1 -1
  158. package/dist/{Pagination-B-O21ut1.js → Pagination-C0Bx80Tu.js} +3 -3
  159. package/dist/Popover/index.d.ts +1 -1
  160. package/dist/Popover/index.js +1 -1
  161. package/dist/{Popover-BtfsoxXC.js → Popover-DpR4rwiW.js} +6 -6
  162. package/dist/PowerSearch/index.d.ts +1 -1
  163. package/dist/PowerSearch/index.js +1 -1
  164. package/dist/{PowerSearch-CniqThU7.js → PowerSearch-Dq6Gi9z1.js} +35 -34
  165. package/dist/ProgressBar/index.d.ts +1 -1
  166. package/dist/ProgressBar/index.js +1 -1
  167. package/dist/{ProgressBar-DOusesCL.js → ProgressBar-Dp-0xquN.js} +1 -1
  168. package/dist/Radio/index.d.ts +1 -1
  169. package/dist/Radio/index.js +1 -1
  170. package/dist/{RadioGroup-CRwMwMw4.js → RadioGroup-IKBXLzYU.js} +30 -8
  171. package/dist/RadioList/index.d.ts +1 -1
  172. package/dist/RadioList/index.js +1 -1
  173. package/dist/{RadioList-PUlENMq5.js → RadioList-NW4fGKgm.js} +4 -1
  174. package/dist/Resizable/index.d.ts +1 -1
  175. package/dist/Resizable/index.js +1 -1
  176. package/dist/{ResizeHandle-4-krI-cQ.js → ResizeHandle-BMSbAFdP.js} +43 -27
  177. package/dist/ScrollableArea/index.d.ts +1 -1
  178. package/dist/SegmentedControl/index.js +1 -1
  179. package/dist/{SegmentedControl-DFUYTOVH.js → SegmentedControl-DRxcUlVP.js} +71 -4
  180. package/dist/SelectableCard/index.d.ts +1 -1
  181. package/dist/SelectableCard/index.js +1 -1
  182. package/dist/{SelectableCard-DUTtyApJ.js → SelectableCard-Dp-LsEcf.js} +1 -1
  183. package/dist/Selector/index.d.ts +1 -1
  184. package/dist/Selector/index.js +1 -1
  185. package/dist/{Selector-Qs1rFiI6.js → Selector-BW_oxWDM.js} +10 -10
  186. package/dist/SideNav/index.d.ts +1 -1
  187. package/dist/SideNav/index.js +1 -1
  188. package/dist/{SideNav-BUfUwE2P.js → SideNav-B5mMRj98.js} +9 -59
  189. package/dist/Slider/index.js +1 -1
  190. package/dist/{Slider-BbiQbyie.js → Slider-oD3AY4jh.js} +66 -22
  191. package/dist/Stack/index.d.ts +1 -1
  192. package/dist/StatusDot/index.js +1 -1
  193. package/dist/{StatusDot-DhfcDBE7.js → StatusDot-B3oOyRF7.js} +1 -1
  194. package/dist/Stepper/index.d.ts +1 -1
  195. package/dist/Stepper/index.js +1 -1
  196. package/dist/{Stepper-CQd4YlPC.js → Stepper-CgOdL36_.js} +1 -1
  197. package/dist/Switch/index.d.ts +1 -1
  198. package/dist/Switch/index.js +1 -1
  199. package/dist/{Switch-CMK5bICl.js → Switch-DG_A9cD0.js} +7 -4
  200. package/dist/TabList/index.d.ts +1 -1
  201. package/dist/TabList/index.js +1 -1
  202. package/dist/{TabList-Bd3h7Nj3.js → TabList-FkoypUk0.js} +3 -3
  203. package/dist/Table/index.d.ts +1 -1
  204. package/dist/Table/index.js +1 -1
  205. package/dist/{Table-DN9mo-cQ.js → Table-zNW23VwP.js} +16 -16
  206. package/dist/Text/index.js +1 -1
  207. package/dist/{Text-Dez23ltM.js → Text-v1ep26uD.js} +1 -1
  208. package/dist/TextArea/index.d.ts +1 -1
  209. package/dist/TextArea/index.js +1 -1
  210. package/dist/{TextArea-BsGUOyDg.js → TextArea-BilHnmSs.js} +5 -5
  211. package/dist/TextInput/index.d.ts +1 -1
  212. package/dist/TextInput/index.js +1 -1
  213. package/dist/{TextInput-DZi0EMh-.js → TextInput-D6tHM2sA.js} +4 -4
  214. package/dist/Theme/index.js +3 -2
  215. package/dist/{Theme-1RJVaRgz.js → Theme-BmTbbiAD.js} +6 -22
  216. package/dist/Thumbnail/index.js +1 -1
  217. package/dist/{Thumbnail-CsmF1HTP.js → Thumbnail-llGdnQM8.js} +3 -3
  218. package/dist/{TimeField-DqOPj5s2.js → TimeField-C5rcoaVu.js} +7 -7
  219. package/dist/TimeInput/index.d.ts +1 -1
  220. package/dist/TimeInput/index.js +1 -1
  221. package/dist/{TimeInput-CA3kXBWB.js → TimeInput-D0N8nwrI.js} +2 -2
  222. package/dist/Timer/index.d.ts +1 -1
  223. package/dist/Timer/index.js +1 -1
  224. package/dist/{Timer-vubjQ88x.js → Timer-65PfuoQ7.js} +1 -1
  225. package/dist/Timestamp/index.d.ts +1 -1
  226. package/dist/Timestamp/index.js +2 -2
  227. package/dist/{Timestamp-Cz_0Ofj4.js → Timestamp-rYC8mE3r.js} +20 -12
  228. package/dist/Toast/index.js +1 -1
  229. package/dist/{Toast-DhJNtBjT.js → Toast-BtQ-4Y6Z.js} +3 -3
  230. package/dist/ToggleButton/index.d.ts +1 -1
  231. package/dist/ToggleButton/index.js +1 -1
  232. package/dist/{ToggleButton-BR_qVBEt.js → ToggleButton-Bnn_MiOn.js} +10 -4
  233. package/dist/Token/index.js +1 -1
  234. package/dist/{Token-CPNzkSj3.js → Token-B-j3AKxB.js} +1 -1
  235. package/dist/Tokenizer/index.d.ts +1 -1
  236. package/dist/Tokenizer/index.js +1 -1
  237. package/dist/{Tokenizer-C3pXgLmC.js → Tokenizer-Cpdy_L00.js} +7 -6
  238. package/dist/Toolbar/index.d.ts +1 -1
  239. package/dist/Toolbar/index.js +1 -1
  240. package/dist/{Toolbar-B4Vltu-j.js → Toolbar-DSWH8ll4.js} +25 -2
  241. package/dist/Tooltip/index.js +2 -2
  242. package/dist/{Tooltip-BUHvOnE1.js → Tooltip-CByjfHBZ.js} +1 -1
  243. package/dist/TopNav/index.d.ts +1 -1
  244. package/dist/TopNav/index.js +1 -1
  245. package/dist/{TopNav-klsRhS-I.js → TopNav-q8xDVlM_.js} +7 -7
  246. package/dist/TreeList/index.js +1 -1
  247. package/dist/{TreeList-DJQvL5tG.js → TreeList-CEGInQtF.js} +2 -2
  248. package/dist/Typeahead/index.d.ts +1 -1
  249. package/dist/Typeahead/index.js +2 -2
  250. package/dist/{Typeahead-BaPqX3Ey.js → Typeahead-C-PdRnRQ.js} +7 -7
  251. package/dist/adaptationTypes-Beao49TN.js +19 -0
  252. package/dist/{assertOptions-DF9pum-3.js → assertOptions-og3t30Fh.js} +2 -1
  253. package/dist/calendar-C7py_wtb.js +351 -0
  254. package/dist/calendarFormat-_CEZIMZG.js +123 -0
  255. package/dist/{componentIcons-CFr2L6o3.js → componentIcons-BBJqmilP.js} +1 -1
  256. package/dist/composables/index.js +11 -11
  257. package/dist/{composables-BDWdSCwe.js → composables-COCeg92e.js} +2 -2
  258. package/dist/context-Cws_tXTr.js +7 -0
  259. package/dist/{context-CjX2RSDn.js → context-D-Hwh-Jf.js} +1 -1
  260. package/dist/{date-input-rUD8YAow.js → date-input-CRdc2H3c.js} +6 -2
  261. package/dist/{disabledInteraction-CPzL8kVP.js → disabledInteraction-Bqoyhoss.js} +9 -1
  262. package/dist/focusLeaving-Dqm8Yj4T.js +53 -0
  263. package/dist/{focusReturn-CsEp47Wa.js → focusReturn-C1cFL3WM.js} +1 -1
  264. package/dist/{format-mffyPc-L.js → format-6G9QuGy1.js} +12 -4
  265. package/dist/{formatInstant-BDWUIxS7.js → formatInstant-CjCwl6JS.js} +8 -6
  266. package/dist/{index-DogWVRJi.d.ts → index-0RIgvtdm.d.ts} +1 -1
  267. package/dist/{index-D0MA9x_i.d.ts → index-85RFPeV0.d.ts} +5 -5
  268. package/dist/{index-C3FgFPrM.d.ts → index-BDJQW9cW.d.ts} +10 -10
  269. package/dist/{index-rzkX36wM.d.ts → index-BWcZ-L80.d.ts} +2 -2
  270. package/dist/{index-BB9acgK8.d.ts → index-BgT6mH3U.d.ts} +1 -1
  271. package/dist/{index-BTljzczH.d.ts → index-C-kIxNCq.d.ts} +8 -11
  272. package/dist/{index-CG3fD4hw.d.ts → index-C2HVLdNb.d.ts} +9 -7
  273. package/dist/{index-DDrL_-hJ.d.ts → index-CBOv5j3c.d.ts} +2 -2
  274. package/dist/{index-BvW0tiei.d.ts → index-CH-xSiJz.d.ts} +2 -2
  275. package/dist/{index-YKCx03zD.d.ts → index-COgrQZIL.d.ts} +2 -2
  276. package/dist/{index-GgHVkJtB.d.ts → index-CRtGmCHi.d.ts} +1 -1
  277. package/dist/{index-Bgk1Rj2A.d.ts → index-CTjkJP4x.d.ts} +1 -1
  278. package/dist/{index-Bzi3A980.d.ts → index-ChqMaV6N.d.ts} +1 -1
  279. package/dist/{index-BdZCLUgY.d.ts → index-CnVjgLP5.d.ts} +9 -1
  280. package/dist/{index-BhxqUt3y.d.ts → index-CuW4AQ7M.d.ts} +2 -2
  281. package/dist/{index--CtH4lQr.d.ts → index-CyMStZq4.d.ts} +4 -4
  282. package/dist/{index-B1eCxBCY.d.ts → index-DCyYldjP.d.ts} +7 -1
  283. package/dist/{index-BlhbRf58.d.ts → index-DDVCVpnG.d.ts} +1 -1
  284. package/dist/{index-BrMtj1lT.d.ts → index-DGXCnzOL.d.ts} +4 -4
  285. package/dist/{index-CAKT4Kkz.d.ts → index-DRDOArzq.d.ts} +242 -68
  286. package/dist/{index-fd--aE4B.d.ts → index-DbNGGCM0.d.ts} +4 -3
  287. package/dist/{index-BkxWKIV_.d.ts → index-HULXozsK.d.ts} +6 -6
  288. package/dist/{index-CO9GW-ik.d.ts → index-Q1oG9yIT.d.ts} +1 -1
  289. package/dist/{index-DE1genab.d.ts → index-QnlWyUxN.d.ts} +2 -2
  290. package/dist/{index-BA8exXNP.d.ts → index-X4S7_dmq.d.ts} +1 -1
  291. package/dist/{index-DIw5D3zj.d.ts → index-ZKBj_1nu.d.ts} +2 -2
  292. package/dist/{index-CQ-sq76o.d.ts → index-_FjbcSgD.d.ts} +8 -2
  293. package/dist/{index-DMN_JVEt.d.ts → index-etx25Eq-.d.ts} +4 -3
  294. package/dist/{index-BmXk_doE.d.ts → index-lmd9LZKB.d.ts} +3 -3
  295. package/dist/{index-C9uW39Mj.d.ts → index-mK1ICsVg.d.ts} +3 -3
  296. package/dist/{index-ql9ApSTF.d.ts → index-yQc-te9a.d.ts} +2 -2
  297. package/dist/index.d.ts +36 -36
  298. package/dist/index.js +122 -121
  299. package/dist/inputPresentation-DES0JwkL.js +203 -0
  300. package/dist/interactionModality-CedLz5PC.js +130 -0
  301. package/dist/{interactionModality-CyU67ucP.js → layerDepth-D3Rh8T5C.js} +1 -130
  302. package/dist/{layerFocusReturn-BeCsk_4F.js → layerFocusReturn-KvH6DMFT.js} +1 -1
  303. package/dist/{loadCatalog-DsEKSY3U.js → loadCatalog-BeQt6Uq-.js} +9 -1
  304. package/dist/{loadCatalog-C4h9SmJs.d.ts → loadCatalog-C8mRnC0E.d.ts} +5 -1
  305. package/dist/locale/index.d.ts +4 -4
  306. package/dist/locale/index.js +4 -4
  307. package/dist/{locale-C-Y-13BP.js → locale-B4FpGKpc.js} +6 -2
  308. package/dist/{dateParser-BKoaawL9.js → plainDate-CaTDErKr.js} +1 -132
  309. package/dist/{power-search-CqcsJT1F.d.ts → power-search-CuMzfLwW.d.ts} +13 -1
  310. package/dist/resizableChannel-LElsNkSY.js +33 -0
  311. package/dist/{stillPointerGate-BX4vr5M-.js → stillPointerGate-1Tgkns0J.js} +1 -1
  312. package/dist/{themeIcons-CqGF0fwW.js → themeIcons-1O7ymucc.js} +1 -7
  313. package/dist/{tooltipFocusRules-BnZ1zwAm.js → tooltipFocusRules-vIH7PZh1.js} +3 -2
  314. package/dist/{tooltipTriggerRules-BLBEkBcK.js → tooltipTriggerRules-DoBAbfGc.js} +1 -1
  315. package/dist/{triggerVariant-BDVvyLtv.js → triggerVariant-DG0VhG-X.js} +1 -1
  316. package/dist/{types-Dxs5rf-2.d.ts → types-Gw2OjSK9.d.ts} +9 -9
  317. package/dist/useCalendarGrid-0WvxbeFC.js +179 -0
  318. package/dist/{useCombobox-DcBbaWYj.js → useCombobox-BqkTY3bw.js} +1 -1
  319. package/dist/{useDismiss-C1dyveme.js → useDismiss-CMIsdIOQ.js} +1 -1
  320. package/dist/{useFocusTrap-DAKJJP0Z.js → useFocusTrap-DTz_d7IP.js} +3 -2
  321. package/dist/{useIndicator--9mGGlT2.js → useIndicator-PFDBNOvX.js} +2 -2
  322. package/dist/{useInputStatusIcon-BDWAijXe.js → useInputStatusIcon-CrgeMzrf.js} +2 -2
  323. package/dist/{useMenuDrillIn-RZwY55RM.js → useMenuDrillIn-CQrzwZvx.js} +2 -2
  324. package/dist/{useMenuPress-3203ryBY.js → useMenuPress-wqRDvUMW.js} +2 -2
  325. package/dist/{useResizable-wZU54yCO.js → useResizable-hv4NYIUi.js} +6 -3
  326. package/dist/{useRestoreFocus-v8-FFcQQ.js → useRestoreFocus-BxooFhas.js} +2 -2
  327. package/dist/{useTooltip-0_wOd0e5.js → useTooltip-BwqzEtoF.js} +5 -5
  328. package/dist/{useTouchTriggerInternal-DwzthF8T.js → useTouchTriggerInternal-Bdm_M4aa.js} +2 -1
  329. package/dist/{useTruncationTooltip-BDIe7-ya.js → useTruncationTooltip-CRhoPzeu.js} +4 -4
  330. package/dist/{useTypeahead-BlqvS9x9.js → useTypeahead-BGpvWkzm.js} +1 -1
  331. package/dist/{useTypeaheadMenuConfig-CIf9Ep57.js → useTypeaheadMenuConfig-GvdIymRg.js} +2 -2
  332. package/dist/utils/index.d.ts +1 -1
  333. package/dist/utils/index.js +2 -2
  334. package/package.json +1 -1
  335. package/reset.css +0 -19
  336. package/styles/app-shell.css +88 -7
  337. package/styles/aspect-ratio.css +4 -3
  338. package/styles/checkbox-list.css +5 -0
  339. package/styles/collapsible.css +1 -0
  340. package/styles/layout.css +22 -5
  341. package/styles/radio-indicator.css +2 -2
  342. package/styles/radio.css +25 -0
  343. package/styles/resize-handle.css +64 -35
  344. package/styles/scrollable-area.css +13 -0
  345. package/styles/segmented-control.css +46 -1
  346. package/styles/slider.css +8 -2
  347. package/styles/switch.css +2 -1
  348. package/styles/toggle-button.css +3 -0
  349. package/styles/toolbar.css +39 -3
  350. package/dist/inputPresentation-BOyHkCDr.js +0 -62
  351. package/dist/resizableChannel-3vivrEcT.js +0 -20
  352. package/dist/{Item-CzKm9wxQ.js → Item-DyaYlbyE.js} +1 -1
@@ -1,2 +1,2 @@
1
- import { n as _sfc_main, t as _sfc_main$1 } from "../RadioList-PUlENMq5.js";
1
+ import { n as _sfc_main, t as _sfc_main$1 } from "../RadioList-NW4fGKgm.js";
2
2
  export { _sfc_main as RadioList, _sfc_main$1 as RadioListItem };
@@ -1,4 +1,4 @@
1
- import { n as _sfc_main$3, t as _sfc_main$2 } from "./RadioGroup-CRwMwMw4.js";
1
+ import { n as _sfc_main$3, t as _sfc_main$2 } from "./RadioGroup-IKBXLzYU.js";
2
2
  import { createBlock, createSlots, defineComponent, mergeModels, openBlock, renderSlot, useModel, withCtx } from "vue";
3
3
  //#region src/Radio/RadioList.vue
4
4
  const _sfc_main$1 = /*@__PURE__*/ defineComponent({
@@ -130,6 +130,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
130
130
  name: "AstryxRadioListItem",
131
131
  __name: "RadioListItem",
132
132
  props: {
133
+ align: {},
133
134
  value: {},
134
135
  label: {},
135
136
  description: {},
@@ -139,6 +140,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
139
140
  setup(__props) {
140
141
  return (_ctx, _cache) => {
141
142
  return openBlock(), createBlock(_sfc_main$3, {
143
+ align: __props.align,
142
144
  value: __props.value,
143
145
  label: __props.label,
144
146
  description: __props.description,
@@ -161,6 +163,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
161
163
  key: "2"
162
164
  } : void 0
163
165
  ]), 1032, [
166
+ "align",
164
167
  "value",
165
168
  "label",
166
169
  "description",
@@ -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-etx25Eq-.js";
2
2
  export { type ResizeDirection, _default as ResizeHandle, type ResizeHandleProps, type ResizeHandleSlots, type ResizePillPlacement, type ResizePosition };
@@ -1,2 +1,2 @@
1
- import { t as _sfc_main } from "../ResizeHandle-4-krI-cQ.js";
1
+ import { t as _sfc_main } from "../ResizeHandle-BMSbAFdP.js";
2
2
  export { _sfc_main as ResizeHandle };
@@ -1,6 +1,6 @@
1
1
  import { t as devWarn } from "./useDevWarning-B2fsk2B-.js";
2
2
  import { o as useComponentMessages } from "./context-B8IEFCDR.js";
3
- import { n as getEffectiveMaxPx, t as getCollapseControls } from "./resizableChannel-3vivrEcT.js";
3
+ import { i as resizablePropsOf, n as getEffectiveMaxPx, t as getCollapseControls } from "./resizableChannel-LElsNkSY.js";
4
4
  import { t as layoutMessages } from "./layout-DhX4-SyE.js";
5
5
  import { Fragment, computed, createCommentVNode, createElementBlock, createElementVNode, defineComponent, mergeProps, normalizeStyle, onBeforeUnmount, openBlock, ref, renderSlot, useAttrs, useTemplateRef, watch } from "vue";
6
6
  import "../styles/resize-handle.css";
@@ -37,8 +37,9 @@ function adjacentSnap(resizable, direction, count) {
37
37
  * 使用者自己的 keydown 要在调用本函数之前先跑。
38
38
  */
39
39
  function handleResizeKey(event, resizable, sign, rtl, isHorizontal) {
40
- const step = event.shiftKey ? KEYBOARD_LARGE_STEP : KEYBOARD_STEP;
41
40
  const key = event.key;
41
+ if (event.altKey || event.ctrlKey || event.metaKey || event.shiftKey && !key.startsWith("Arrow")) return;
42
+ const step = event.shiftKey ? KEYBOARD_LARGE_STEP : KEYBOARD_STEP;
42
43
  if (key === "ArrowRight" || key === "ArrowDown" || key === "ArrowLeft" || key === "ArrowUp") {
43
44
  event.preventDefault();
44
45
  if (resizable._isCollapsed) {
@@ -83,10 +84,10 @@ const _hoisted_1 = [
83
84
  "data-divider",
84
85
  "data-disabled",
85
86
  "data-active",
86
- "data-resizing"
87
+ "data-resizing",
88
+ "data-pane"
87
89
  ];
88
- const _hoisted_2 = ["data-bias"];
89
- const _hoisted_3 = ["data-hidden"];
90
+ const _hoisted_2 = ["data-hidden", "data-side"];
90
91
  const _sfc_main = /*@__PURE__*/ defineComponent({
91
92
  name: "AstryxResizeHandle",
92
93
  inheritAttrs: false,
@@ -124,21 +125,27 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
124
125
  const focused = ref(false);
125
126
  let drag = null;
126
127
  __expose({ element: root });
128
+ const resizableProps = computed(() => props.resizable == null ? void 0 : resizablePropsOf(props.resizable));
127
129
  const label = computed(() => props.label || messages.value.layout.resizeHandle);
128
130
  const sign = computed(() => props.isReversed ? -1 : 1);
129
- const collapsed = computed(() => props.resizable?._isCollapsed ?? false);
131
+ const collapsed = computed(() => resizableProps.value?._isCollapsed ?? false);
130
132
  const active = computed(() => hovered.value || focused.value || dragging.value);
131
133
  const pillSide = computed(() => resolveSide(props.pillPlacement, props.isReversed, collapsed.value));
132
134
  const forwardedAttrs = computed(() => Object.fromEntries(Object.entries(attrs).filter(([key]) => key !== "class" && key !== "style" && key !== "onKeydown" && key !== "onKeyDown")));
133
135
  const rootClass = computed(() => ["astryx-resize-handle", attrs.class]);
134
- const rootStyle = computed(() => attrs.style);
136
+ /** 面板有长度且没收起:抓取区最多占面板的一半,短面板自己的拖动不被抢走。收起或长度为 0 时保留整块。 */
137
+ const hasOpenPane = computed(() => {
138
+ const resizable = resizableProps.value;
139
+ return resizable != null && !resizable._isCollapsed && resizable._size > 0;
140
+ });
141
+ const rootStyle = computed(() => [hasOpenPane.value ? { "--_resize-pane-length": `${resizableProps.value?._size}px` } : void 0, attrs.style]);
135
142
  const ariaNow = computed(() => {
136
- const resizable = props.resizable;
143
+ const resizable = resizableProps.value;
137
144
  if (resizable == null) return void 0;
138
145
  return collapsed.value ? Math.max(resizable._size, resizable._minSizePx) : resizable._size;
139
146
  });
140
147
  const ariaMax = computed(() => {
141
- const resizable = props.resizable;
148
+ const resizable = resizableProps.value;
142
149
  if (resizable == null) return void 0;
143
150
  const reported = getEffectiveMaxPx(resizable);
144
151
  if (reported != null && Number.isFinite(reported)) return reported;
@@ -146,12 +153,12 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
146
153
  return max != null && Number.isFinite(max) ? max : void 0;
147
154
  });
148
155
  let warnedAxis = false;
149
- watch(() => [props.direction, props.resizable?._direction], ([direction, hookDirection]) => {
156
+ watch(() => [props.direction, resizableProps.value?._direction], ([direction, hookDirection]) => {
150
157
  if (warnedAxis || hookDirection == null || hookDirection === direction) return;
151
158
  warnedAxis = true;
152
159
  devWarn("ResizeHandle", `direction="${direction}" but its useResizable region is "${hookDirection}". They must match: the hook measures one axis and the handle drags the other.`);
153
160
  }, { immediate: true });
154
- const ariaText = computed(() => collapsed.value && props.resizable ? messages.value.layout.collapsed : void 0);
161
+ const ariaText = computed(() => collapsed.value && resizableProps.value ? messages.value.layout.collapsed : void 0);
155
162
  const pillStyle = computed(() => offsetStyle(props.direction, pillSide.value));
156
163
  function resolveSide(placement, reversed, isCollapsed) {
157
164
  if (placement !== "auto") return placement;
@@ -205,10 +212,10 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
205
212
  cancelAnimationFrame(frame);
206
213
  frame = 0;
207
214
  }
208
- props.resizable?._onResizeMove(pendingDelta);
215
+ resizableProps.value?._onResizeMove(pendingDelta);
209
216
  }
210
217
  function pointerDown(event) {
211
- if (props.isDisabled || props.resizable == null || drag) return;
218
+ if (props.isDisabled || resizableProps.value == null || drag) return;
212
219
  event.preventDefault();
213
220
  event.stopPropagation();
214
221
  const target = event.currentTarget;
@@ -222,22 +229,22 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
222
229
  pendingDelta = 0;
223
230
  document.body.style.cursor = props.direction === "horizontal" ? "col-resize" : "row-resize";
224
231
  document.body.style.userSelect = "none";
225
- props.resizable._onResizeStart();
232
+ resizableProps.value._onResizeStart();
226
233
  }
227
234
  function pointerMove(event) {
228
- if (drag == null || drag.pointerId !== event.pointerId || props.resizable == null) return;
235
+ if (drag == null || drag.pointerId !== event.pointerId || resizableProps.value == null) return;
229
236
  pendingDelta = ((props.direction === "horizontal" ? event.clientX : event.clientY) - drag.start) * drag.rtl * sign.value;
230
237
  if (frame) return;
231
238
  frame = requestAnimationFrame(() => {
232
239
  frame = 0;
233
- props.resizable?._onResizeMove(pendingDelta);
240
+ resizableProps.value?._onResizeMove(pendingDelta);
234
241
  });
235
242
  }
236
243
  function pointerUp(event) {
237
244
  if (drag?.pointerId !== event.pointerId) return;
238
245
  flushMove();
239
246
  clearDrag();
240
- props.resizable?._onResizeEnd();
247
+ resizableProps.value?._onResizeEnd();
241
248
  }
242
249
  function pointerCancel(event) {
243
250
  if (drag?.pointerId !== event.pointerId) return;
@@ -246,17 +253,17 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
246
253
  frame = 0;
247
254
  }
248
255
  clearDrag();
249
- props.resizable?._onResizeCancel?.();
256
+ resizableProps.value?._onResizeCancel?.();
250
257
  }
251
258
  function onRootKeyDown(event) {
252
259
  callKeydown(attrs.onKeydown, event);
253
260
  if (attrs.onKeyDown !== attrs.onKeydown) callKeydown(attrs.onKeyDown, event);
254
- const resizable = props.resizable;
261
+ const resizable = resizableProps.value;
255
262
  if (props.isDisabled || resizable == null) return;
256
263
  handleResizeKey(event, resizable, sign.value, rtlMultiplier(), props.direction === "horizontal");
257
264
  }
258
265
  function doubleClick() {
259
- const resizable = props.resizable;
266
+ const resizable = resizableProps.value;
260
267
  if (props.isDisabled || resizable == null || !resizable._collapsible) return;
261
268
  toggleCollapse(resizable);
262
269
  }
@@ -277,7 +284,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
277
284
  role: "separator",
278
285
  "aria-orientation": __props.direction === "horizontal" ? "vertical" : "horizontal",
279
286
  "aria-valuenow": ariaNow.value,
280
- "aria-valuemin": __props.resizable?._minSizePx,
287
+ "aria-valuemin": resizableProps.value?._minSizePx,
281
288
  "aria-valuemax": ariaMax.value,
282
289
  "aria-valuetext": ariaText.value,
283
290
  "aria-label": label.value,
@@ -289,13 +296,14 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
289
296
  "data-disabled": __props.isDisabled || void 0,
290
297
  "data-active": active.value || void 0,
291
298
  "data-resizing": dragging.value || void 0,
299
+ "data-pane": hasOpenPane.value || void 0,
292
300
  onKeydown: onRootKeyDown,
293
301
  onDblclick: doubleClick,
294
- onFocus: _cache[2] || (_cache[2] = ($event) => focused.value = true),
295
- onBlur: _cache[3] || (_cache[3] = ($event) => focused.value = false)
302
+ onFocus: _cache[4] || (_cache[4] = ($event) => focused.value = true),
303
+ onBlur: _cache[5] || (_cache[5] = ($event) => focused.value = false)
296
304
  }), [createElementVNode("div", {
297
305
  class: "astryx-resize-handle__hit",
298
- "data-bias": pillSide.value,
306
+ "data-bias": "center",
299
307
  onPointerdown: pointerDown,
300
308
  onPointermove: pointerMove,
301
309
  onPointerup: pointerUp,
@@ -303,11 +311,19 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
303
311
  onLostpointercapture: pointerCancel,
304
312
  onPointerenter: _cache[0] || (_cache[0] = ($event) => hovered.value = true),
305
313
  onPointerleave: _cache[1] || (_cache[1] = ($event) => hovered.value = dragging.value)
306
- }, null, 40, _hoisted_2), renderSlot(_ctx.$slots, "default", {}, () => [createElementVNode("div", {
314
+ }, null, 32), renderSlot(_ctx.$slots, "default", {}, () => [createElementVNode("div", {
307
315
  class: "astryx-resize-handle-pill",
308
316
  "data-hidden": __props.isAlwaysVisible ? void 0 : true,
309
- style: normalizeStyle(pillStyle.value)
310
- }, null, 12, _hoisted_3)])], 16, _hoisted_1)], 2112);
317
+ "data-side": pillSide.value,
318
+ style: normalizeStyle(pillStyle.value),
319
+ onPointerdown: pointerDown,
320
+ onPointermove: pointerMove,
321
+ onPointerup: pointerUp,
322
+ onPointercancel: pointerCancel,
323
+ onLostpointercapture: pointerCancel,
324
+ onPointerenter: _cache[2] || (_cache[2] = ($event) => hovered.value = true),
325
+ onPointerleave: _cache[3] || (_cache[3] = ($event) => hovered.value = dragging.value)
326
+ }, null, 44, _hoisted_2)])], 16, _hoisted_1)], 2112);
311
327
  };
312
328
  }
313
329
  });
@@ -1,2 +1,2 @@
1
- import { Mr as ScrollableAreaProps, Nr as ScrollableAreaSlots, jr as _default } from "../index-CAKT4Kkz.js";
1
+ import { Mr as ScrollableAreaProps, Nr as ScrollableAreaSlots, jr as _default } from "../index-DRDOArzq.js";
2
2
  export { _default as ScrollableArea, type ScrollableAreaProps, type ScrollableAreaSlots };
@@ -1,2 +1,2 @@
1
- import { n as _sfc_main, t as _sfc_main$1 } from "../SegmentedControl-DFUYTOVH.js";
1
+ import { n as _sfc_main, t as _sfc_main$1 } from "../SegmentedControl-DRxcUlVP.js";
2
2
  export { _sfc_main as SegmentedControl, _sfc_main$1 as SegmentedControlItem };
@@ -10,6 +10,63 @@ import "../styles/segmented-control.css";
10
10
  //#region src/SegmentedControl/context.ts
11
11
  const segmentedControlContextKey = defineLayerScopedKey("astryx-segmented-control", null);
12
12
  //#endregion
13
+ //#region src/SegmentedControl/useSegmentedSelection.ts
14
+ /**
15
+ * 选中块是控件里的一块独立表面,每次选中的分段变了都滑到新位置,大小也跟着变。
16
+ * 位置和大小从选中的分段量出来:分段变宽、换行、字体加载完、控件被缩放,都会重新量。
17
+ */
18
+ function useSegmentedSelection(root) {
19
+ const box = shallowRef(null);
20
+ const isReady = shallowRef(false);
21
+ let observer;
22
+ let frame;
23
+ function measure() {
24
+ const element = root.value;
25
+ const selected = element?.querySelector("[role=\"radio\"][aria-checked=\"true\"]");
26
+ if (element == null || selected == null || selected.offsetWidth === 0 || selected.offsetHeight === 0) {
27
+ box.value = null;
28
+ return;
29
+ }
30
+ const next = {
31
+ x: selected.offsetLeft,
32
+ y: selected.offsetTop,
33
+ width: selected.offsetWidth,
34
+ height: selected.offsetHeight
35
+ };
36
+ const current = box.value;
37
+ if (current == null || current.x !== next.x || current.y !== next.y || current.width !== next.width || current.height !== next.height) box.value = next;
38
+ }
39
+ onMounted(() => {
40
+ measure();
41
+ if (box.value != null && typeof requestAnimationFrame === "function") frame = requestAnimationFrame(() => {
42
+ isReady.value = true;
43
+ });
44
+ if (typeof ResizeObserver !== "undefined" && root.value != null) {
45
+ observer = new ResizeObserver(measure);
46
+ observer.observe(root.value);
47
+ for (const item of root.value.querySelectorAll("[role=\"radio\"]")) observer.observe(item);
48
+ }
49
+ });
50
+ onUpdated(measure);
51
+ onBeforeUnmount(() => {
52
+ observer?.disconnect();
53
+ if (frame != null && typeof cancelAnimationFrame === "function") cancelAnimationFrame(frame);
54
+ });
55
+ return {
56
+ box,
57
+ isReady,
58
+ style: () => {
59
+ const current = box.value;
60
+ return current == null ? void 0 : {
61
+ "--_selection-x": `${current.x}px`,
62
+ "--_selection-y": `${current.y}px`,
63
+ "--_selection-width": `${current.width}px`,
64
+ "--_selection-height": `${current.height}px`
65
+ };
66
+ }
67
+ };
68
+ }
69
+ //#endregion
13
70
  //#region src/SegmentedControl/SegmentedControl.vue
14
71
  const _hoisted_1$1 = [
15
72
  "aria-describedby",
@@ -18,8 +75,14 @@ const _hoisted_1$1 = [
18
75
  "data-disabled",
19
76
  "data-disabled-message",
20
77
  "data-layout",
78
+ "data-selection",
21
79
  "data-size"
22
80
  ];
81
+ const _hoisted_2$1 = {
82
+ key: 0,
83
+ class: "astryx-segmented-control__selection",
84
+ "aria-hidden": "true"
85
+ };
23
86
  const ITEM_SELECTOR = "[role=\"radio\"]";
24
87
  const TOOLTIP_SHOW_DELAY = 200;
25
88
  const TOOLTIP_HIDE_DELAY = 100;
@@ -49,7 +112,9 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
49
112
  const attrs = useAttrs();
50
113
  const root = useTemplateRef("root");
51
114
  const tooltipId = `astryx-segmented-control-${useId()}-tooltip`;
52
- __expose({ element: computed(() => root.value ?? null) });
115
+ const element = computed(() => root.value ?? null);
116
+ const selection = useSegmentedSelection(root);
117
+ __expose({ element });
53
118
  const showsDisabledMessage = computed(() => props.isDisabled && !!props.disabledMessage?.trim());
54
119
  function select(value) {
55
120
  if (props.isDisabled || value === model.value) return;
@@ -200,7 +265,7 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
200
265
  ]);
201
266
  const forwardedAttrs = computed(() => Object.fromEntries(Object.entries(attrs).filter(([key]) => !controlledAttrs.has(key))));
202
267
  const rootClass = computed(() => ["astryx-segmented-control", attrs.class]);
203
- const rootStyle = computed(() => attrs.style);
268
+ const rootStyle = computed(() => [attrs.style, selection.style()]);
204
269
  const describedBy = computed(() => [attrs["aria-describedby"], showsDisabledMessage.value ? tooltipId : void 0].filter(Boolean).join(" ") || void 0);
205
270
  return (_ctx, _cache) => {
206
271
  return openBlock(), createElementBlock(Fragment, null, [createElementVNode("div", mergeProps({
@@ -214,6 +279,7 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
214
279
  "data-disabled": __props.isDisabled || void 0,
215
280
  "data-disabled-message": showsDisabledMessage.value || void 0,
216
281
  "data-layout": __props.layout,
282
+ "data-selection": unref(selection).box.value != null ? unref(selection).isReady.value ? "ready" : "measured" : void 0,
217
283
  "data-size": unref(size),
218
284
  style: rootStyle.value,
219
285
  role: "radiogroup",
@@ -221,7 +287,7 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
221
287
  onFocusout: scheduleHideTooltip,
222
288
  onPointerenter: scheduleShowTooltip,
223
289
  onPointerleave: scheduleHideTooltip
224
- }), [renderSlot(_ctx.$slots, "default")], 16, _hoisted_1$1), showsDisabledMessage.value ? (openBlock(), createBlock(_sfc_main$2, {
290
+ }), [unref(selection).box.value != null ? (openBlock(), createElementBlock("span", _hoisted_2$1)) : createCommentVNode("v-if", true), renderSlot(_ctx.$slots, "default")], 16, _hoisted_1$1), showsDisabledMessage.value ? (openBlock(), createBlock(_sfc_main$2, {
225
291
  key: 0,
226
292
  id: tooltipId,
227
293
  anchor: root.value,
@@ -294,8 +360,9 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
294
360
  });
295
361
  const describedBy = computed(() => [attrs["aria-describedby"], context?.disabledReasonId.value].filter(Boolean).join(" ") || void 0);
296
362
  function handleClick(event) {
363
+ if (isDisabled.value) return;
297
364
  invokeNativeEventHandler(attrs.onClick, event);
298
- if (event.defaultPrevented || isDisabled.value) return;
365
+ if (event.defaultPrevented) return;
299
366
  context?.select(props.value);
300
367
  }
301
368
  const controlledAttrs = /* @__PURE__ */ new Set([
@@ -1,2 +1,2 @@
1
- import { Ar as SelectableCardSlots, Dr as _default, Or as SelectableCardEmits, kr as SelectableCardProps } from "../index-CAKT4Kkz.js";
1
+ import { Ar as SelectableCardSlots, Dr as _default, Or as SelectableCardEmits, kr as SelectableCardProps } from "../index-DRDOArzq.js";
2
2
  export { _default as SelectableCard, _default as default, type SelectableCardEmits, type SelectableCardProps, type SelectableCardSlots };
@@ -1,2 +1,2 @@
1
- import { n as _sfc_main, t as SelectableCard_default } from "../SelectableCard-DUTtyApJ.js";
1
+ import { n as _sfc_main, t as SelectableCard_default } from "../SelectableCard-Dp-LsEcf.js";
2
2
  export { _sfc_main as SelectableCard, SelectableCard_default as default };
@@ -1,7 +1,7 @@
1
1
  import { i as useClickableContainer } from "./useClickableContainer-Dtjg-nkm.js";
2
2
  import { t as usePressFeedback } from "./usePressFeedback-aufF1sCH.js";
3
3
  import { t as _sfc_main$1 } from "./VisuallyHidden-cpmsV-0M.js";
4
- import { t as _sfc_main$2 } from "./Card-BbKFHWuD.js";
4
+ import { t as _sfc_main$2 } from "./Card-D_OJxmwD.js";
5
5
  import { computed, createBlock, createVNode, defineComponent, mergeModels, mergeProps, openBlock, renderSlot, unref, useModel, useTemplateRef, withCtx } from "vue";
6
6
  import "../styles/clickable-card.css";
7
7
  //#region src/SelectableCard/SelectableCard.vue
@@ -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-BkxWKIV_.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-HULXozsK.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-Qs1rFiI6.js";
1
+ import { t as _sfc_main } from "../Selector-BW_oxWDM.js";
2
2
  export { _sfc_main as Selector };
@@ -1,28 +1,28 @@
1
- import { n as _sfc_main$2 } from "./BottomSheet-CM0-eaUF.js";
2
- import { t as _sfc_main$3 } from "./Icon-BCHo7W0x.js";
1
+ import { n as _sfc_main$2 } from "./BottomSheet-DyJJtZZU.js";
2
+ import { t as _sfc_main$3 } from "./Icon-Dk0jccgU.js";
3
3
  import { n as useInputGroupContext, r as useInputGroupDisabled } from "./context-Bg7eSJ47.js";
4
4
  import { i as useSize } from "./SizeContext-BbaF-SEx.js";
5
- import { n as usePositionedLayer, t as useDismiss } from "./useDismiss-C1dyveme.js";
6
- import { m as isImeKeyEvent } from "./interactionModality-CyU67ucP.js";
5
+ import { n as usePositionedLayer, t as useDismiss } from "./useDismiss-CMIsdIOQ.js";
6
+ import { s as isImeKeyEvent } from "./layerDepth-D3Rh8T5C.js";
7
7
  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-DcBbaWYj.js";
11
+ import { t as useCombobox } from "./useCombobox-BqkTY3bw.js";
12
12
  import { t as useFieldControlState } from "./useFieldControlState-voICDrys.js";
13
13
  import { o as useComponentMessages } from "./context-B8IEFCDR.js";
14
14
  import { n as observeResize } from "./sharedResizeObserver-BekhnB3E.js";
15
15
  import { t as useScrollbars } from "./useScrollbars-Ch0xqJWO.js";
16
16
  import { n as clampInlineSize } from "./inlineSize-BNe8wggI.js";
17
17
  import { t as _sfc_main$6 } from "./Spinner-DEVPDsD0.js";
18
- import { t as useIndicator } from "./useIndicator--9mGGlT2.js";
19
- import { t as _sfc_main$7 } from "./Field-DsucLkyQ.js";
18
+ import { t as useIndicator } from "./useIndicator-PFDBNOvX.js";
19
+ import { t as consumeWhileDisabled } from "./disabledInteraction-Bqoyhoss.js";
20
+ import { t as _sfc_main$7 } from "./Field-D4UmRHlD.js";
20
21
  import { t as useFieldPartStyling } from "./fieldParts-CbWvZLhH.js";
21
- import { t as consumeWhileDisabled } from "./disabledInteraction-CPzL8kVP.js";
22
22
  import { t as useBusyAnnouncement } from "./busyAnnouncement-CExubuYm.js";
23
- import { n as fieldStatusPlacement, r as _sfc_main$8, t as normalizeTriggerVariant } from "./triggerVariant-BDVvyLtv.js";
23
+ import { n as fieldStatusPlacement, r as _sfc_main$8, t as normalizeTriggerVariant } from "./triggerVariant-DG0VhG-X.js";
24
24
  import { t as selectorMessages } from "./selector-BmGLjm94.js";
25
- import { a as focusSelectorTrigger, i as dismissSelectorEscape, n as useKeyboardHighlight, o as onSelectorListboxEscape, r as bindListboxEscape, t as assertOptionsArray } from "./assertOptions-DF9pum-3.js";
25
+ import { a as focusSelectorTrigger, i as dismissSelectorEscape, n as useKeyboardHighlight, o as onSelectorListboxEscape, r as bindListboxEscape, t as assertOptionsArray } from "./assertOptions-og3t30Fh.js";
26
26
  import { i as isOptionAction, n as searchResultMessage, r as OptionAction, t as useOptionActionGrid } from "./useOptionActionGrid-C7ibYM_A.js";
27
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";
28
28
  import "../styles/layer.css";
@@ -1,2 +1,2 @@
1
- import { Cr as SideNavResizable, Er as useSideNavCollapse, Sr as SideNavProps, Tr as SideNavCollapseContext, _r as SideNavEmits, br as SideNavItemEmits, cr as _default$3, dr as _default, fr as SideNavCollapseButtonProps, gr as SideNavControlledCollapsible, hr as SideNavCollapsible, lr as _default$2, mr as SideNavCollapseButtonSlots, pr as SideNavCollapseButtonSize, sr as _default$4, ur as _default$1, vr as SideNavHandle, wr as SideNavSectionProps, xr as SideNavItemProps, yr as SideNavHeadingProps } from "../index-CAKT4Kkz.js";
1
+ import { Cr as SideNavResizable, Er as useSideNavCollapse, Sr as SideNavProps, Tr as SideNavCollapseContext, _r as SideNavEmits, br as SideNavItemEmits, cr as _default$3, dr as _default, fr as SideNavCollapseButtonProps, gr as SideNavControlledCollapsible, hr as SideNavCollapsible, lr as _default$2, mr as SideNavCollapseButtonSlots, pr as SideNavCollapseButtonSize, sr as _default$4, ur as _default$1, vr as SideNavHandle, wr as SideNavSectionProps, xr as SideNavItemProps, yr as SideNavHeadingProps } from "../index-DRDOArzq.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,3 +1,3 @@
1
1
  import { a as useSideNavCollapse } from "../context-DQPBIsl5.js";
2
- import { a as _sfc_main$1, i as _sfc_main, n as _sfc_main$3, r as _sfc_main$2, t as _sfc_main$4 } from "../SideNav-BUfUwE2P.js";
2
+ import { a as _sfc_main$1, i as _sfc_main, n as _sfc_main$3, r as _sfc_main$2, t as _sfc_main$4 } from "../SideNav-B5mMRj98.js";
3
3
  export { _sfc_main as SideNav, _sfc_main$1 as SideNavCollapseButton, _sfc_main$2 as SideNavHeading, _sfc_main$3 as SideNavItem, _sfc_main$4 as SideNavSection, useSideNavCollapse };
@@ -1,26 +1,26 @@
1
1
  import { t as hasSlotContent } from "./slotContent-CNWOrGOr.js";
2
- import { t as _sfc_main$5 } from "./Icon-BCHo7W0x.js";
2
+ import { t as _sfc_main$5 } from "./Icon-Dk0jccgU.js";
3
3
  import { n as useLinkComponent } from "./context-C_peZbXf.js";
4
4
  import { n as SizeProvider } from "./SizeContext-BbaF-SEx.js";
5
- import { t as _sfc_main$6 } from "./Button-Blnc0yB3.js";
5
+ import { t as _sfc_main$6 } from "./Button-TiYG0btL.js";
6
6
  import { n as createAnimatedLayout, t as areaOf } from "./handle-CSHfxBie.js";
7
7
  import { d as layoutMotion, g as layoutStartFor, h as beginChange, k as shownBoxAt, r as changeStartIn } from "./batch-oTkSbtVz.js";
8
8
  import { a as isRtl, s as pxClip } from "./edge-3sC8-cbB.js";
9
9
  import { a as useSideNavCollapse, c as holdLayoutSwap, i as sideNavShellKey, l as playLayoutFrames, n as sideNavDepthKey, o as useSideNavDepth, s as useSideNavRenderMode, t as sideNavCollapseKey, u as playLayoutSwap } from "./context-DQPBIsl5.js";
10
10
  import { r as focusablesIn } from "./focusRegion-CmDg7_4b.js";
11
- import { n as isFocusDetached, t as focusForLastInput } from "./focusReturn-CsEp47Wa.js";
12
11
  import { t as useHandleRef } from "./useHandleRef-6cdKugm8.js";
13
- import { n as useResizable, r as useHotkeys } from "./useResizable-wZU54yCO.js";
12
+ import { n as useResizable, r as useHotkeys } from "./useResizable-hv4NYIUi.js";
14
13
  import { o as useComponentMessages } from "./context-B8IEFCDR.js";
15
- import { t as _sfc_main$7 } from "./Tooltip-BUHvOnE1.js";
14
+ import { t as _sfc_main$7 } from "./Tooltip-CByjfHBZ.js";
16
15
  import { t as useScrollbars } from "./useScrollbars-Ch0xqJWO.js";
16
+ import { n as noteFocusWithin, r as useFocusLeavingChange, t as moveFocusLeftBehind } from "./focusLeaving-Dqm8Yj4T.js";
17
17
  import { t as navMessages } from "./nav-DpKQUHqR.js";
18
18
  import { t as useCloseMobileDrawer } from "./closeOnActivate-D1KgKWwm.js";
19
19
  import { i as safeNavHref, r as resolveNavRoot } from "./link-DuuA2eCL.js";
20
- import { t as _sfc_main$8 } from "./NavItem-CB3loauj.js";
21
- import { t as _sfc_main$9 } from "./NavDisclosure-DIYayUrP.js";
22
- import { t as _sfc_main$10 } from "./ResizeHandle-4-krI-cQ.js";
23
- import { t as _sfc_main$11 } from "./NavHeadingSurface-bFcFpeMI.js";
20
+ import { t as _sfc_main$8 } from "./NavItem-_eIEwV41.js";
21
+ import { t as _sfc_main$9 } from "./NavDisclosure-CqAThYgR.js";
22
+ import { t as _sfc_main$10 } from "./ResizeHandle-BMSbAFdP.js";
23
+ import { t as _sfc_main$11 } from "./NavHeadingSurface-DJ4pWvEi.js";
24
24
  import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createVNode, defineComponent, getCurrentInstance, guardReactiveProps, inject, mergeProps, normalizeClass, normalizeProps, normalizeStyle, onBeforeUnmount, onMounted, openBlock, provide, reactive, ref, renderSlot, resolveDynamicComponent, toDisplayString, unref, useAttrs, useId, useSlots, useTemplateRef, watch, watchEffect, withCtx, withModifiers } from "vue";
25
25
  import "../styles/visually-hidden.css";
26
26
  import "../styles/side-nav.css";
@@ -163,56 +163,6 @@ function playLayoutEdge(hold, current, handle, { edge = "block-end", rideWith =
163
163
  };
164
164
  }
165
165
  //#endregion
166
- //#region src/composables/internal/focusLeaving.ts
167
- /**
168
- * @file focusLeaving.ts
169
- * @position 组件内部:一次状态变化会拿走或藏起带焦点的内容时,先记下焦点、变化提交后再挪走
170
- *
171
- * 配合 `focusReturn.ts` 的 `focusForLastInput`:挪动后的焦点环跟着上一次输入走。
172
- * 侧边导航收起轨道时,焦点所在的行会消失,用它把焦点交给收起按钮或最近的保留行。
173
- */
174
- /**
175
- * 如果变化会让焦点丢掉就返回 true:现在哪儿都没有焦点,或者焦点还在即将被藏起的 `surface` 里。
176
- * 读 `surface` 自己所在的文档,所以 iframe 或画中画窗口里的元素也能判断。
177
- */
178
- function isFocusLost(surface, doc) {
179
- const ownerDocument = doc ?? surface?.ownerDocument ?? document;
180
- return isFocusDetached(ownerDocument) || surface != null && surface.contains(ownerDocument.activeElement);
181
- }
182
- /** 焦点元素在 `container` 里就返回它,否则返回 null。要在 DOM 变化之前调用。 */
183
- function noteFocusWithin(container) {
184
- const active = container?.ownerDocument.activeElement;
185
- if (container == null || active == null || !container.contains(active)) return null;
186
- return {
187
- element: active,
188
- container
189
- };
190
- }
191
- /**
192
- * 变化把焦点弄丢了(掉到页面上,或还留在被藏起的 `hidden` 里)才把焦点挪到 `target`;
193
- * 焦点没丢,或本来就不在里面,就不动。返回焦点有没有挪。
194
- */
195
- function moveFocusLeftBehind(note, target, hidden = null) {
196
- if (note == null || target == null || !isFocusLost(hidden, note.container.ownerDocument)) return false;
197
- focusForLastInput(target);
198
- return true;
199
- }
200
- /**
201
- * `source` 变化时:DOM 更新之前调用 `note`(参数是离开的值),DOM 更新之后用它的结果调用 `move`。
202
- * `note` 返回 null 表示没有要挪的焦点。服务端渲染时侦听器不运行。
203
- */
204
- function useFocusLeavingChange(source, note, move) {
205
- let pending = null;
206
- watch(source, (_value, previous) => {
207
- pending = note(previous);
208
- }, { flush: "pre" });
209
- watch(source, (value) => {
210
- const noted = pending;
211
- pending = null;
212
- if (noted != null) move(noted, value);
213
- }, { flush: "post" });
214
- }
215
- //#endregion
216
166
  //#region src/SideNav/railFocus.ts
217
167
  const SIDE_NAV_ROW_ATTRIBUTE = "data-astryx-side-nav-row";
218
168
  /** nav 里所有行,按文档顺序;展开的子菜单浮层是独立的一层,不算。 */
@@ -1,2 +1,2 @@
1
- import { t as _sfc_main } from "../Slider-BbiQbyie.js";
1
+ import { t as _sfc_main } from "../Slider-oD3AY4jh.js";
2
2
  export { _sfc_main as Slider };