@astryx-vue/core 0.15.0 → 0.16.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 (320) hide show
  1. package/dist/AlertDialog/index.js +1 -1
  2. package/dist/{AlertDialog-BH74lTP9.js → AlertDialog-B6EU-qoC.js} +7 -7
  3. package/dist/AppShell/index.d.ts +1 -1
  4. package/dist/AppShell/index.js +1 -1
  5. package/dist/{AppShell-CBhuHXh4.js → AppShell-NvIT99xw.js} +49 -6
  6. package/dist/Avatar/index.js +1 -1
  7. package/dist/{Avatar-B-dg3imS.js → Avatar-BECb_pnL.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-qEMqg2D8.js → Banner-BL7ztCU4.js} +1 -1
  12. package/dist/BottomSheet/index.d.ts +1 -1
  13. package/dist/BottomSheet/index.js +2 -2
  14. package/dist/{BottomSheet-BvdEUioy.js → BottomSheet-CCW58Kl3.js} +4 -4
  15. package/dist/{BottomSheet-BTf3rz65.js → BottomSheet-HQpcSkPH.js} +6 -5
  16. package/dist/Breadcrumbs/index.js +1 -1
  17. package/dist/{Breadcrumbs-BAyIQaP-.js → Breadcrumbs-BpgUZDh3.js} +1 -1
  18. package/dist/Button/index.d.ts +1 -1
  19. package/dist/Button/index.js +1 -1
  20. package/dist/{Button-47s3ZBYa.js → Button-Bi1evguV.js} +16 -8
  21. package/dist/ButtonGroup/index.d.ts +1 -1
  22. package/dist/ButtonGroup/index.js +1 -1
  23. package/dist/{ButtonGroup-BFl-0uOp.js → ButtonGroup-IIN-hAJl.js} +2 -2
  24. package/dist/Calendar/index.d.ts +1 -1
  25. package/dist/Calendar/index.js +1 -1
  26. package/dist/{Calendar-D029GXOJ.js → Calendar-Bk2nGoT-.js} +69 -20
  27. package/dist/Card/index.d.ts +1 -1
  28. package/dist/Carousel/index.d.ts +1 -1
  29. package/dist/Carousel/index.js +1 -1
  30. package/dist/{Carousel-CYjVpChx.js → Carousel-r6KuUnE1.js} +1 -1
  31. package/dist/Chat/index.d.ts +1 -1
  32. package/dist/Chat/index.js +1 -1
  33. package/dist/{Chat-BfekV9OQ.js → Chat-JwOWSmvy.js} +7 -8
  34. package/dist/CheckboxInput/index.d.ts +1 -1
  35. package/dist/CheckboxInput/index.js +1 -1
  36. package/dist/{CheckboxInput-Cr0qhZpZ.js → CheckboxInput-3yFIGqYj.js} +1 -1
  37. package/dist/CheckboxList/index.d.ts +1 -1
  38. package/dist/CheckboxList/index.js +1 -1
  39. package/dist/{CheckboxList-DOAdqkXD.js → CheckboxList-2GMj8LSo.js} +3 -3
  40. package/dist/ClickableCard/index.d.ts +1 -1
  41. package/dist/Code/index.d.ts +2 -2
  42. package/dist/Code/index.js +3 -3
  43. package/dist/{Code-6GS0nAkR.js → Code-rmiC0XfO.js} +1 -1
  44. package/dist/{CodeBlock-CuNiGAhQ.js → CodeBlock-AeyHA3sX.js} +21 -9
  45. package/dist/Collapsible/index.d.ts +1 -1
  46. package/dist/CommandPalette/index.js +1 -1
  47. package/dist/{CommandPalette-ChtGNWy3.js → CommandPalette-CccNmfH_.js} +4 -4
  48. package/dist/ComplexSelector/index.d.ts +1 -1
  49. package/dist/ComplexSelector/index.js +1 -1
  50. package/dist/{ComplexSelector-TPRMIDgt.js → ComplexSelector-BQNwK1Rx.js} +2 -2
  51. package/dist/ContextMenu/index.d.ts +1 -1
  52. package/dist/ContextMenu/index.js +1 -1
  53. package/dist/{ContextMenu-DYKU1mJT.js → ContextMenu-DlkuMtXc.js} +8 -8
  54. package/dist/DateInput/index.d.ts +1 -1
  55. package/dist/DateInput/index.js +1 -1
  56. package/dist/{DateInput-iQQLaYlp.js → DateInput-BAEJLiKU.js} +7 -7
  57. package/dist/DateRangeInput/index.d.ts +1 -1
  58. package/dist/DateRangeInput/index.js +1 -1
  59. package/dist/{DateRangeInput-BTYlRhmn.js → DateRangeInput-BM1__kku.js} +4 -4
  60. package/dist/DateTimeInput/index.d.ts +1 -1
  61. package/dist/DateTimeInput/index.js +1 -1
  62. package/dist/{DateTimeInput-CiUKgoVy.js → DateTimeInput-CqPuS2Wb.js} +6 -6
  63. package/dist/Dialog/index.d.ts +1 -1
  64. package/dist/Dialog/index.js +3 -3
  65. package/dist/{Dialog-D54oHAxr.js → Dialog-BoV6-sZg.js} +4 -4
  66. package/dist/{Dialog-DeHVvhL3.js → Dialog-CvRMUDsx.js} +1 -1
  67. package/dist/{DialogHeader-B6ZIBIC4.js → DialogHeader-DywC9gTH.js} +2 -2
  68. package/dist/Drawer/index.d.ts +1 -1
  69. package/dist/Drawer/index.js +1 -1
  70. package/dist/{Drawer-fB3IoD5P.js → Drawer-BYXbMeXz.js} +2 -2
  71. package/dist/DropdownMenu/index.js +2 -2
  72. package/dist/{DropdownMenu-D5fBg5Cc.js → DropdownMenu-1qD5NjRZ.js} +6 -6
  73. package/dist/{DropdownMenu-ClBIeBwM.js → DropdownMenu-DFD4_snt.js} +10 -10
  74. package/dist/EmptyState/index.js +1 -1
  75. package/dist/{EmptyState-BS8ESteS.js → EmptyState-DHogz6sS.js} +60 -9
  76. package/dist/Field/index.js +3 -3
  77. package/dist/{Field-Dxacpe9d.js → Field-CqIDpjny.js} +1 -1
  78. package/dist/{FieldInfoTip-DS4OAl2Q.js → FieldInfoTip-tETk5JH_.js} +1 -1
  79. package/dist/{FieldLabel-DjzTYhCM.js → FieldLabel-DL8r5Jzc.js} +1 -1
  80. package/dist/FileInput/index.d.ts +1 -1
  81. package/dist/FileInput/index.js +1 -1
  82. package/dist/{FileInput-Dak2gIXU.js → FileInput-Bwvb-tQk.js} +3 -3
  83. package/dist/Heading/index.js +1 -1
  84. package/dist/{Heading-BYB7QXkT.js → Heading-CkHUa3bI.js} +1 -1
  85. package/dist/HoverCard/index.d.ts +1 -1
  86. package/dist/HoverCard/index.js +1 -1
  87. package/dist/{HoverCard-CtDr234t.js → HoverCard-Ddcu9mBO.js} +4 -4
  88. package/dist/IconButton/index.js +1 -1
  89. package/dist/{IconButton-DvgueAEp.js → IconButton-eGsozJhK.js} +1 -1
  90. package/dist/InfoTip/index.d.ts +1 -1
  91. package/dist/InfoTip/index.js +1 -1
  92. package/dist/{InfoTip-DshbO5eW.js → InfoTip-DH9gvEPg.js} +2 -2
  93. package/dist/{InputClearButton-DEb-bGsY.js → InputClearButton-tztlFeqp.js} +1 -1
  94. package/dist/InputGroup/index.js +1 -1
  95. package/dist/{InputGroup-DLu11Lsd.js → InputGroup-ew0kllZw.js} +1 -1
  96. package/dist/InternationalizationProvider/index.d.ts +1 -1
  97. package/dist/InternationalizationProvider/index.js +1 -1
  98. package/dist/{InternationalizationProvider-CqCxB9ku.js → InternationalizationProvider-7rA65NO7.js} +1 -1
  99. package/dist/{LayerContentBoundary-Cx5xXZzg.js → LayerContentBoundary-CpqXMTyU.js} +1 -1
  100. package/dist/Layout/index.js +2 -2
  101. package/dist/{Layout-BeYYiLFm.js → Layout-DP2vrvTv.js} +1 -1
  102. package/dist/{LayoutPanel-DDLcJgzG.js → LayoutPanel-DuroKU_A.js} +23 -4
  103. package/dist/Lightbox/index.js +1 -1
  104. package/dist/{Lightbox-BbeuDbgd.js → Lightbox-CwRSUkkH.js} +4 -4
  105. package/dist/Link/index.d.ts +1 -1
  106. package/dist/Link/index.js +1 -1
  107. package/dist/{Link-CFxZ9W2X.js → Link-DKeXWgvF.js} +1 -1
  108. package/dist/List/index.d.ts +1 -1
  109. package/dist/Markdown/index.d.ts +1 -1
  110. package/dist/Markdown/index.js +1 -1
  111. package/dist/{Markdown-DTqTIKbq.js → Markdown-umUpz0Pf.js} +3 -3
  112. package/dist/{MediaTheme-BVKUsMfC.js → MediaTheme-Bkj-_DFN.js} +1 -1
  113. package/dist/MobileNav/index.js +1 -1
  114. package/dist/{MobileNavToggle-pwkvRFW-.js → MobileNavToggle-DlQmYaBx.js} +4 -4
  115. package/dist/MoreMenu/index.d.ts +1 -1
  116. package/dist/MoreMenu/index.js +1 -1
  117. package/dist/{MoreMenu-BY1t1_QA.js → MoreMenu-YTZfzTM_.js} +5 -5
  118. package/dist/MultiSelector/index.d.ts +1 -1
  119. package/dist/MultiSelector/index.js +1 -1
  120. package/dist/{MultiSelector-BgGEzXiX.js → MultiSelector-wNUnwrLr.js} +24 -13
  121. package/dist/{NavDisclosure-mXBWmRDC.js → NavDisclosure-Dg6U7pc7.js} +1 -1
  122. package/dist/{NavHeadingSurface-foJo5bLT.js → NavHeadingSurface-C17cbKn9.js} +1 -1
  123. package/dist/NavItem/index.d.ts +1 -1
  124. package/dist/NavMenu/index.js +3 -3
  125. package/dist/{NavMenu-CG9Bthba.js → NavMenu-CTbvZnO2.js} +26 -6
  126. package/dist/{NavMenuItem-BiFZUPxC.js → NavMenuItem-BbT97LNz.js} +14 -7
  127. package/dist/NumberInput/index.d.ts +1 -1
  128. package/dist/NumberInput/index.js +1 -1
  129. package/dist/{NumberInput-BDNiEgzf.js → NumberInput-C8ymESEK.js} +3 -3
  130. package/dist/OverflowList/index.d.ts +1 -1
  131. package/dist/OverflowList/index.js +1 -1
  132. package/dist/{OverflowList-CR96Nr5t.js → OverflowList-Buzyq2be.js} +25 -10
  133. package/dist/Pagination/index.d.ts +1 -1
  134. package/dist/Pagination/index.js +1 -1
  135. package/dist/{Pagination-40BEwZOo.js → Pagination-BREwZINI.js} +1 -1
  136. package/dist/Popover/index.d.ts +1 -1
  137. package/dist/Popover/index.js +1 -1
  138. package/dist/{Popover-BUiTyOcY.js → Popover-CBXTOdtZ.js} +7 -7
  139. package/dist/PowerSearch/index.d.ts +1 -1
  140. package/dist/PowerSearch/index.js +1 -1
  141. package/dist/{PowerSearch-BLJd0NKp.js → PowerSearch-8ali3Cze.js} +19 -19
  142. package/dist/ProgressBar/index.d.ts +1 -1
  143. package/dist/ProgressBar/index.js +1 -1
  144. package/dist/{ProgressBar-sGSCEtHC.js → ProgressBar-B0IjJKEy.js} +1 -1
  145. package/dist/Radio/index.d.ts +1 -1
  146. package/dist/Radio/index.js +1 -1
  147. package/dist/{RadioGroup-D58Fy-bM.js → RadioGroup-fNJoHMK0.js} +2 -2
  148. package/dist/RadioList/index.d.ts +1 -1
  149. package/dist/RadioList/index.js +1 -1
  150. package/dist/{RadioList-u9PoRBXY.js → RadioList-Dt301fwV.js} +1 -1
  151. package/dist/Resizable/index.d.ts +1 -1
  152. package/dist/Resizable/index.js +1 -1
  153. package/dist/{ResizeHandle-Bon51yNV.js → ResizeHandle-4-krI-cQ.js} +1 -1
  154. package/dist/ScrollableArea/index.d.ts +1 -1
  155. package/dist/ScrollableArea/index.js +1 -1
  156. package/dist/{ScrollableArea-C2GBp55Z.js → ScrollableArea-Cflez3d4.js} +1 -1
  157. package/dist/SegmentedControl/index.d.ts +1 -1
  158. package/dist/SegmentedControl/index.js +1 -1
  159. package/dist/{SegmentedControl-COVOdCq2.js → SegmentedControl-DoTaOwPI.js} +16 -9
  160. package/dist/SelectableCard/index.d.ts +1 -1
  161. package/dist/Selector/index.d.ts +1 -1
  162. package/dist/Selector/index.js +1 -1
  163. package/dist/{Selector-QHLh7g_K.js → Selector-DJiziplk.js} +15 -10
  164. package/dist/SideNav/index.d.ts +1 -1
  165. package/dist/SideNav/index.js +1 -1
  166. package/dist/{SideNav-BgmpUELq.js → SideNav-CcgrhUXF.js} +6 -6
  167. package/dist/Slider/index.js +1 -1
  168. package/dist/{Slider-Depy9L-Y.js → Slider-W9T8GaFW.js} +2 -2
  169. package/dist/Stack/index.d.ts +1 -1
  170. package/dist/Stack/index.js +1 -1
  171. package/dist/{Stack-Tw4I_dt-.js → Stack-Byxur1jV.js} +19 -2
  172. package/dist/StatusDot/index.js +1 -1
  173. package/dist/{StatusDot-D0Wy2ggp.js → StatusDot-EQ8y4vq2.js} +1 -1
  174. package/dist/Switch/index.d.ts +1 -1
  175. package/dist/Switch/index.js +1 -1
  176. package/dist/{Switch-dD4OQLkI.js → Switch-YXDRo4ei.js} +2 -2
  177. package/dist/TabList/index.d.ts +1 -1
  178. package/dist/TabList/index.js +1 -1
  179. package/dist/{TabList-CoiyQidC.js → TabList-QBE7ojy4.js} +20 -8
  180. package/dist/Table/index.d.ts +1 -1
  181. package/dist/Table/index.js +1 -1
  182. package/dist/{Table-CIMUux6b.js → Table-uPs9O7-T.js} +14 -14
  183. package/dist/Text/index.js +1 -1
  184. package/dist/{Text-BWSmB93V.js → Text-vw2_AIxf.js} +1 -1
  185. package/dist/TextArea/index.d.ts +1 -1
  186. package/dist/TextArea/index.js +1 -1
  187. package/dist/{TextArea-CbY2w_ic.js → TextArea-BNiJxKXr.js} +9 -6
  188. package/dist/TextInput/index.d.ts +1 -1
  189. package/dist/TextInput/index.js +1 -1
  190. package/dist/{TextInput-C8f89GV8.js → TextInput-CiKL_mGp.js} +8 -5
  191. package/dist/Theme/index.js +2 -2
  192. package/dist/{Theme-PyAl8nM0.js → Theme-8bDq2nud.js} +1 -1
  193. package/dist/Thumbnail/index.js +1 -1
  194. package/dist/{Thumbnail-DENhXd9-.js → Thumbnail-BJSDUhEI.js} +3 -3
  195. package/dist/{TimeField-Bzq72Me_.js → TimeField-Cc6LnM1G.js} +5 -5
  196. package/dist/TimeInput/index.d.ts +1 -1
  197. package/dist/TimeInput/index.js +1 -1
  198. package/dist/{TimeInput-D-bRCUzU.js → TimeInput-DAd4fwAj.js} +2 -2
  199. package/dist/Timer/index.js +1 -1
  200. package/dist/{Timer-CgBSMr9E.js → Timer-DWdMqvhQ.js} +1 -1
  201. package/dist/Timestamp/index.d.ts +1 -1
  202. package/dist/Timestamp/index.js +1 -1
  203. package/dist/{Timestamp-B-VgG6l8.js → Timestamp-HUDZSHZO.js} +27 -8
  204. package/dist/Toast/index.js +1 -1
  205. package/dist/{Toast-CRSZV9K-.js → Toast-y_XAIj6o.js} +2 -2
  206. package/dist/ToggleButton/index.d.ts +1 -1
  207. package/dist/ToggleButton/index.js +1 -1
  208. package/dist/{ToggleButton-Bm5IQUy5.js → ToggleButton-Bo3FU3Fw.js} +3 -3
  209. package/dist/Tokenizer/index.d.ts +1 -1
  210. package/dist/Tokenizer/index.js +1 -1
  211. package/dist/{Tokenizer-DmjNQLDl.js → Tokenizer-IlXAt3yW.js} +7 -8
  212. package/dist/Toolbar/index.d.ts +1 -1
  213. package/dist/Tooltip/index.d.ts +1 -1
  214. package/dist/Tooltip/index.js +2 -2
  215. package/dist/{Tooltip-BwrJVZ8X.js → Tooltip-nEgotJlb.js} +1 -1
  216. package/dist/TopNav/index.d.ts +1 -1
  217. package/dist/TopNav/index.js +1 -1
  218. package/dist/{TopNav-FiszUHkM.js → TopNav-CzTYtsm4.js} +5 -5
  219. package/dist/TreeList/index.d.ts +1 -1
  220. package/dist/TreeList/index.js +1 -1
  221. package/dist/{TreeList-Dc3A72iY.js → TreeList-TEh2PChT.js} +15 -2
  222. package/dist/Typeahead/index.d.ts +1 -1
  223. package/dist/Typeahead/index.js +2 -2
  224. package/dist/{Typeahead-LdmEDCOU.js → Typeahead-Ck5wA5fs.js} +5 -5
  225. package/dist/announce-GU01Oix2.js +179 -0
  226. package/dist/busyAnnouncement-CExubuYm.js +55 -0
  227. package/dist/clipboardWrite-Ds6fxmZc.js +58 -0
  228. package/dist/composables/index.d.ts +3 -3
  229. package/dist/composables/index.js +18 -18
  230. package/dist/{composables-Bi0Rt0Uj.js → composables-CCsHfpCS.js} +25 -5
  231. package/dist/focusReturn-D7Y7Pwwb.js +41 -0
  232. package/dist/{index-6kd7pher.d.ts → index-51CkIKnI.d.ts} +4 -6
  233. package/dist/{index-qbj0Lj9a.d.ts → index-B99LFtEg.d.ts} +4 -4
  234. package/dist/{index-CP-fJFcJ.d.ts → index-BOCb89V9.d.ts} +3 -3
  235. package/dist/{index-D-eT_nvf.d.ts → index-BYEcUSBq.d.ts} +63 -63
  236. package/dist/{index-YKCx03zD.d.ts → index-BaFphczL.d.ts} +2 -2
  237. package/dist/{index-Dc9_kBrU.d.ts → index-Bc-ChXDo.d.ts} +2 -2
  238. package/dist/{index-BB9acgK8.d.ts → index-BgT6mH3U.d.ts} +1 -1
  239. package/dist/{index-CL8JvxHW.d.ts → index-C1zwvxPH.d.ts} +2 -2
  240. package/dist/{index-BHYhTZzp.d.ts → index-C2cH8OLC.d.ts} +1 -1
  241. package/dist/{index-O9y23OPJ.d.ts → index-CMLnSg3T.d.ts} +2 -0
  242. package/dist/{index-DfdtDWSP.d.ts → index-CQ1bsxLC.d.ts} +1 -1
  243. package/dist/{index-Bgk1Rj2A.d.ts → index-CTjkJP4x.d.ts} +1 -1
  244. package/dist/{index-DDrL_-hJ.d.ts → index-CbA8rR_b.d.ts} +3 -3
  245. package/dist/{index-ul1hNxih.d.ts → index-ChqMaV6N.d.ts} +13 -2
  246. package/dist/{index-C9ZssPUV.d.ts → index-CiVrhGUJ.d.ts} +1 -1
  247. package/dist/{index-Cf5j7Cjl.d.ts → index-Cv0FsOgj.d.ts} +50 -16
  248. package/dist/{index-rnFsCdJ7.d.ts → index-Cy1rEWC-.d.ts} +1 -1
  249. package/dist/{index-BzViSe8D.d.ts → index-D1J81rYJ.d.ts} +4 -4
  250. package/dist/{index-rzkX36wM.d.ts → index-D2p8EVVV.d.ts} +2 -2
  251. package/dist/{index-BL4mH8aK.d.ts → index-DMN_JVEt.d.ts} +1 -1
  252. package/dist/{index-DPH5yoAr.d.ts → index-DTvnURvQ.d.ts} +2 -2
  253. package/dist/{index-BhxqUt3y.d.ts → index-Dpz-JUMl.d.ts} +3 -3
  254. package/dist/{index-BlGEkjh5.d.ts → index-FzAAjCFZ.d.ts} +6 -6
  255. package/dist/{index-DYabo8TI.d.ts → index-MvrDMqnQ.d.ts} +1 -1
  256. package/dist/{index--tm6L1ot.d.ts → index-QRzXr6ME.d.ts} +1 -1
  257. package/dist/{index-DE1genab.d.ts → index-QnlWyUxN.d.ts} +2 -2
  258. package/dist/{index-B1eCxBCY.d.ts → index-TXcNH86P.d.ts} +1 -1
  259. package/dist/{index-C5e2rZML.d.ts → index-dWlCpnua.d.ts} +2 -2
  260. package/dist/{index-DS9SzqqJ.d.ts → index-lmd9LZKB.d.ts} +2 -2
  261. package/dist/{index-bwNMoZo_.d.ts → index-r1zpDegp.d.ts} +4 -4
  262. package/dist/{index-BEZ4ezJk.d.ts → index-wY6dKz6c.d.ts} +2 -2
  263. package/dist/index.d.ts +34 -34
  264. package/dist/index.js +109 -109
  265. package/dist/{layerDepth-I6d28O4d.js → interactionModality-B5dR7nnb.js} +125 -1
  266. package/dist/{layerFocusReturn-_pBrNAPE.js → layerFocusReturn-13azEIdn.js} +1 -1
  267. package/dist/{layout-DzxSsBe8.js → layout-DhX4-SyE.js} +4 -2
  268. package/dist/{loadCatalog-DYuZZRtf.js → loadCatalog-C3MSknfx.js} +10 -2
  269. package/dist/{loadCatalog-Cvf-xgDD.d.ts → loadCatalog-DFyDz_4e.d.ts} +5 -0
  270. package/dist/locale/index.d.ts +2 -2
  271. package/dist/locale/index.js +4 -4
  272. package/dist/{locale-B-DrJCMs.js → locale-OCGw4bi6.js} +1 -1
  273. package/dist/scrollGeometry-ivD7aoBo.js +104 -0
  274. package/dist/{scrollKeyboardDelegation-BSpUCTlO.js → scrollKeyboardDelegation-DZ4t5PvC.js} +2 -82
  275. package/dist/scrollLock-CoVg9lLU.js +212 -0
  276. package/dist/{stillPointerGate-DlAU_J_M.js → stillPointerGate-0vdn-hSa.js} +1 -1
  277. package/dist/strayClick-_QKRT5aH.js +99 -0
  278. package/dist/{timestamp-CFBVCsHF.js → timestamp-BMYQsFDj.js} +2 -0
  279. package/dist/{useActionGroupTracking-CDclbV3Y.js → useActionGroupTracking-CbE8fwYb.js} +1 -1
  280. package/dist/{useChatStreamScroll-oDfybEos.js → useChatStreamScroll-BIMKffDA.js} +1 -1
  281. package/dist/{useClipboard-i4a_x_Io.js → useClipboard-CTY3GwFz.js} +24 -10
  282. package/dist/{useClipboard-ZdT7wKBL.d.ts → useClipboard-DeO8fCW_.d.ts} +12 -3
  283. package/dist/{useDismiss-21Gk7uWk.js → useDismiss-Dfb0Ky7T.js} +1 -1
  284. package/dist/useFocusTrap-BUd-fvUH.js +238 -0
  285. package/dist/{useHoverLayerDismiss-Chfty2wT.js → useHoverLayerDismiss-CFGjvYi4.js} +1 -1
  286. package/dist/{useInputStatusIcon-Yd0hvw5K.js → useInputStatusIcon-lln4Pl9h.js} +1 -1
  287. package/dist/{selectorEscape-FjiU_5WC.js → useKeyboardHighlight-CGCf1O57.js} +24 -3
  288. package/dist/{useLayer-vK4-yRk_.js → useLayer-D34yqEqr.js} +1 -1
  289. package/dist/useMediaQuery-BzXGT1Aw.js +64 -0
  290. package/dist/{useMenuHover-CbjjfzAd.js → useMenuHover-CQYo0XCC.js} +4 -2
  291. package/dist/{useMenuPress-9vsHzbRX.js → useMenuPress-9dOj2hvC.js} +71 -26
  292. package/dist/{useOverflow-VrwF5oek.js → useOverflow-GU0pxGaU.js} +43 -3
  293. package/dist/{useResizable-DYlc06-H.js → useResizable-BMlG1oxA.js} +1 -1
  294. package/dist/{useResolvedColorMode-CHOh3Yz-.js → useResolvedColorMode-Df97_9w_.js} +1 -1
  295. package/dist/{useRestoreFocus-Do8y6Yy4.js → useRestoreFocus-Cz_jM_nW.js} +2 -2
  296. package/dist/useScrollRegionProps-DwkPUb-O.js +119 -0
  297. package/dist/{useScrollableArea-Bwn75HDg.js → useScrollableArea-BaHkGWbX.js} +73 -10
  298. package/dist/{useTooltip-DIg3ZE9P.js → useTooltip-CCPg2zcB.js} +7 -7
  299. package/dist/{useTouchHitArea-B3jx01C3.js → useTouchHitArea-CzCtdSt9.js} +1 -1
  300. package/dist/{useTouchTriggerInternal-CrLW-7kT.js → useTouchTriggerInternal-Bs7obOrb.js} +1 -2
  301. package/dist/{useTruncationTooltip-D9_lzxpF.js → useTruncationTooltip-BLNzBuiG.js} +3 -3
  302. package/dist/{useTypeahead-CiLt-yEg.js → useTypeahead-BrWvmOu9.js} +1 -1
  303. package/dist/{useTypeaheadAnnouncement-C59m2nSx.js → useTypeaheadAnnouncement-CSikDlpK.js} +2 -2
  304. package/package.json +1 -1
  305. package/styles/app-shell.css +13 -0
  306. package/styles/calendar.css +6 -0
  307. package/styles/dropdown-menu.css +16 -0
  308. package/styles/multi-selector.css +6 -0
  309. package/styles/nav-menu.css +6 -0
  310. package/styles/segmented-control.css +3 -8
  311. package/styles/selector.css +6 -0
  312. package/styles/tab-menu.css +6 -0
  313. package/styles/toolbar.css +12 -0
  314. package/dist/announce-B210eJVf.js +0 -104
  315. package/dist/busyAnnouncement-D3eGqdsf.js +0 -88
  316. package/dist/interactionModality-BPvyShJT.js +0 -125
  317. package/dist/scrollLock-C3aT4-0z.js +0 -102
  318. package/dist/strayClick-CY-_ImKv.js +0 -60
  319. package/dist/useFocusTrap-CnKnSN99.js +0 -190
  320. package/dist/useMediaQuery-GMmgp28-.js +0 -32
@@ -0,0 +1,99 @@
1
+ let isModelActivation = false;
2
+ /**
3
+ * 按压模型派发的那次行激活是不是正在进行。只在那次派发的同步过程中为真,
4
+ * 所以把激活转交给里面链接的行,能分清这是模型的 click 还是浏览器多出来的那个。
5
+ */
6
+ function isMenuPressActivation() {
7
+ return isModelActivation;
8
+ }
9
+ /** 在「模型激活」标记下执行一段同步代码。 */
10
+ function runAsMenuPressActivation(run) {
11
+ isModelActivation = true;
12
+ try {
13
+ run();
14
+ } finally {
15
+ isModelActivation = false;
16
+ }
17
+ }
18
+ let swallower = null;
19
+ function disarm() {
20
+ if (swallower == null) return;
21
+ swallower.isArmed = false;
22
+ swallower.cancelsTouchEnd = false;
23
+ swallower.touchIdentifier = null;
24
+ if (swallower.timer != null) {
25
+ clearTimeout(swallower.timer);
26
+ swallower.timer = null;
27
+ }
28
+ }
29
+ function onWindowClickCapture(event) {
30
+ if (swallower == null || !swallower.isArmed) return;
31
+ if (event.detail === 0 || isModelActivation) return;
32
+ event.preventDefault();
33
+ event.stopImmediatePropagation();
34
+ disarm();
35
+ }
36
+ function onWindowTouchEndCapture(event) {
37
+ if (swallower == null || !swallower.isArmed || !swallower.cancelsTouchEnd || !event.cancelable) return;
38
+ const { touchIdentifier } = swallower;
39
+ if (touchIdentifier != null && event.changedTouches != null && !Array.from(event.changedTouches).some((touch) => touch.identifier === touchIdentifier)) return;
40
+ event.preventDefault();
41
+ disarm();
42
+ }
43
+ /** 布下吞 click 的口子。同一个文档只装一次监听。 */
44
+ function armStrayClick(doc, options = {}) {
45
+ const view = doc.defaultView;
46
+ if (view == null) return;
47
+ if (swallower == null || swallower.doc !== doc) {
48
+ if (swallower != null) {
49
+ swallower.doc.defaultView?.removeEventListener("click", onWindowClickCapture, true);
50
+ swallower.doc.defaultView?.removeEventListener("touchend", onWindowTouchEndCapture, true);
51
+ swallower.doc.removeEventListener("pointerdown", disarm, true);
52
+ }
53
+ view.addEventListener("click", onWindowClickCapture, true);
54
+ view.addEventListener("touchend", onWindowTouchEndCapture, {
55
+ capture: true,
56
+ passive: false
57
+ });
58
+ doc.addEventListener("pointerdown", disarm, true);
59
+ swallower = {
60
+ doc,
61
+ isArmed: false,
62
+ timer: null,
63
+ cancelsTouchEnd: false,
64
+ touchIdentifier: null
65
+ };
66
+ }
67
+ disarm();
68
+ swallower.isArmed = true;
69
+ swallower.cancelsTouchEnd = options.cancelsTouchEnd === true;
70
+ swallower.touchIdentifier = options.touchIdentifier ?? null;
71
+ swallower.timer = setTimeout(disarm, 400);
72
+ }
73
+ /** 撤掉已经布下的口子。卸载和测试里用。 */
74
+ function resetMenuPress() {
75
+ disarm();
76
+ }
77
+ /**
78
+ * 跟踪某个指针对应的 touch 标识。指针按下之后的下一个 touchstart 就是它的:
79
+ * WebKit 给 touch 的标识和指针 id 相同;Chromium 用自己的标识,这时唯一的那个改变的 touch 就是。
80
+ * 有好几个 touch 而且没有一个和指针 id 对得上,就说不出是哪根。
81
+ * 返回停止跟踪的函数,`identifier()` 取当前读到的标识。
82
+ */
83
+ function trackTouchOfPointer(view, pointerId) {
84
+ let identifier = null;
85
+ const stop = () => view.removeEventListener("touchstart", onTouchStart, true);
86
+ function onTouchStart(event) {
87
+ stop();
88
+ const touches = event.changedTouches == null ? [] : Array.from(event.changedTouches);
89
+ if (touches.some((touch) => touch.identifier === pointerId)) identifier = pointerId;
90
+ else identifier = touches.length === 1 ? touches[0].identifier : null;
91
+ }
92
+ view.addEventListener("touchstart", onTouchStart, true);
93
+ return {
94
+ identifier: () => identifier,
95
+ stop
96
+ };
97
+ }
98
+ //#endregion
99
+ export { trackTouchOfPointer as a, runAsMenuPressActivation as i, isMenuPressActivation as n, resetMenuPress as r, armStrayClick as t };
@@ -4,12 +4,14 @@ const timestampMessages = {
4
4
  copyValue: (value) => `Copy ${value}`,
5
5
  copy: "Copy",
6
6
  copied: "Copied",
7
+ copyFailed: "Failed to copy value to clipboard.",
7
8
  detailsLabel: "Timestamp details"
8
9
  },
9
10
  "zh-CN": {
10
11
  copyValue: (value) => `复制 ${value}`,
11
12
  copy: "复制",
12
13
  copied: "已复制",
14
+ copyFailed: "复制失败",
13
15
  detailsLabel: "时间戳详情"
14
16
  }
15
17
  };
@@ -1,4 +1,4 @@
1
- import { i as createActionGroupTracker, o as resolveGroupTouch, r as GROUP_PRESS_POINTERS } from "./useTouchHitArea-B3jx01C3.js";
1
+ import { i as createActionGroupTracker, o as resolveGroupTouch, r as GROUP_PRESS_POINTERS } from "./useTouchHitArea-CzCtdSt9.js";
2
2
  import { c as PRESS_GROUP_ITEM_ATTRIBUTE, i as isInsideScrollView, l as isTrackedByGroup, u as msSinceInput } from "./pressFeedback-Co3ugCsm.js";
3
3
  import { getCurrentScope, onScopeDispose, toValue, watch } from "vue";
4
4
  //#region src/composables/internal/useActionGroupTracking.ts
@@ -1,4 +1,4 @@
1
- import { t as useMediaQuery } from "./useMediaQuery-GMmgp28-.js";
1
+ import { t as useMediaQuery } from "./useMediaQuery-BzXGT1Aw.js";
2
2
  import { onScopeDispose, ref, toValue, watch } from "vue";
3
3
  //#region src/composables/useChatNewMessages.ts
4
4
  /** Class that marks a transcript row `useChatNewMessages` watches. */
@@ -1,5 +1,6 @@
1
- import { t as useAnnounce } from "./announce-B210eJVf.js";
2
- import { onScopeDispose, ref } from "vue";
1
+ import { t as useAnnounce } from "./announce-GU01Oix2.js";
2
+ import { t as writeClipboardText } from "./clipboardWrite-Ds6fxmZc.js";
3
+ import { onScopeDispose, ref, toValue } from "vue";
3
4
  //#region src/composables/useClipboard.ts
4
5
  const DEFAULT_RESET_AFTER_MS = 2e3;
5
6
  /**
@@ -13,6 +14,7 @@ function useClipboard(options = {}) {
13
14
  const announceMessage = options.announce;
14
15
  const announce = useAnnounce();
15
16
  const isCopied = ref(false);
17
+ const isFailed = ref(false);
16
18
  let resetTimer = null;
17
19
  function clearResetTimer() {
18
20
  if (resetTimer != null) {
@@ -20,25 +22,37 @@ function useClipboard(options = {}) {
20
22
  resetTimer = null;
21
23
  }
22
24
  }
25
+ function armReset() {
26
+ clearResetTimer();
27
+ resetTimer = setTimeout(() => {
28
+ resetTimer = null;
29
+ isCopied.value = false;
30
+ isFailed.value = false;
31
+ }, resetAfterMs);
32
+ }
23
33
  async function copy(text) {
24
34
  try {
25
- await navigator.clipboard.writeText(text);
26
- } catch {
35
+ await writeClipboardText(text);
36
+ } catch (error) {
37
+ isCopied.value = false;
38
+ isFailed.value = true;
39
+ const failure = toValue(options.announceFailure);
40
+ if (failure) announce(failure, "assertive");
41
+ options.onError?.(error);
42
+ armReset();
27
43
  return false;
28
44
  }
45
+ isFailed.value = false;
29
46
  isCopied.value = true;
30
47
  if (announceMessage) announce(announceMessage);
31
- clearResetTimer();
32
- resetTimer = setTimeout(() => {
33
- resetTimer = null;
34
- isCopied.value = false;
35
- }, resetAfterMs);
48
+ armReset();
36
49
  return true;
37
50
  }
38
51
  onScopeDispose(clearResetTimer);
39
52
  return {
40
53
  copy,
41
- isCopied
54
+ isCopied,
55
+ isFailed
42
56
  };
43
57
  }
44
58
  //#endregion
@@ -1,4 +1,4 @@
1
- import { Ref } from "vue";
1
+ import { MaybeRefOrGetter, Ref } from "vue";
2
2
  //#region src/composables/useClipboard.d.ts
3
3
  interface UseClipboardOptions {
4
4
  /**
@@ -7,19 +7,28 @@ interface UseClipboardOptions {
7
7
  */
8
8
  announce?: string;
9
9
  /**
10
- * `isCopied` 保持为 true 的毫秒数。
10
+ * `isCopied` 和 `isFailed` 保持为 true 的毫秒数。
11
11
  * @default 2000
12
12
  */
13
13
  resetAfterMs?: number;
14
+ /**
15
+ * 复制失败后念给读屏的句子,走更紧迫的 assertive 播报,因为失败是错误。不传就不播报。
16
+ */
17
+ announceFailure?: MaybeRefOrGetter<string | undefined>;
18
+ /** 剪贴板写入被拒绝时调用一次,参数是拒绝的原因。原因本身不会显示出来。 */
19
+ onError?: (error: unknown) => void;
14
20
  }
15
21
  interface UseClipboardReturn {
16
22
  /**
17
23
  * 把 `text` 写进剪贴板。成功时 `isCopied` 变为 true,并重新计时,返回 true。
18
- * 写入失败时状态不动,返回 false。
24
+ * 所在框架不允许异步 Clipboard API、或浏览器拒绝写入时,在这次点击或按键里改用浏览器的复制命令。
25
+ * 写入失败时 `isFailed` 变为 true 并重新计时,返回 false。
19
26
  */
20
27
  copy: (text: string) => Promise<boolean>;
21
28
  /** 最近一次复制成功后的 `resetAfterMs` 内为 true。 */
22
29
  isCopied: Ref<boolean>;
30
+ /** 最近一次复制失败后的 `resetAfterMs` 内为 true。下一次复制开始时清掉。 */
31
+ isFailed: Ref<boolean>;
23
32
  }
24
33
  /**
25
34
  * 对应原版 Astryx 的 `hooks/useClipboard`。
@@ -1,6 +1,6 @@
1
1
  import { n as useLayerTeleportTarget } from "./useLayerMountTarget-BmZyeKWE.js";
2
2
  import { i as useLayerGutter, s as resolveLayerGutter } from "./context-M-er0-Rk.js";
3
- import { n as useLayerDepth, o as pushLayer } from "./layerDepth-I6d28O4d.js";
3
+ import { c as useLayerDepth, f as pushLayer } from "./interactionModality-B5dR7nnb.js";
4
4
  import { nextTick, onScopeDispose, ref, toValue, watch } from "vue";
5
5
  //#region src/layer/anchorClear.ts
6
6
  function overlapsAnchor(anchor, top, left, layer) {
@@ -0,0 +1,238 @@
1
+ import { i as trackInteractionModality, p as isImeKeyEvent } from "./interactionModality-B5dR7nnb.js";
2
+ import { r as getFocusables } from "./focus-x7mxEqjR.js";
3
+ import { t as focusForLastInput } from "./focusReturn-D7Y7Pwwb.js";
4
+ import { onScopeDispose, ref, toValue, watch } from "vue";
5
+ //#region src/composables/internal/focusRegion.ts
6
+ /**
7
+ * 焦点区域(useFocusTrap)找 Tab 落脚点、判断谁来接这次 Tab 用的几个小工具。
8
+ * 对应原版 Astryx `hooks/useFocusTrap` 和 `hooks/focusableSelector` 里的同名逻辑。
9
+ */
10
+ /** `a` 在文档顺序上是否排在 `b` 前面。 */
11
+ function precedes(a, b) {
12
+ return (a.compareDocumentPosition(b) & Node.DOCUMENT_POSITION_FOLLOWING) !== 0;
13
+ }
14
+ /** 按文档顺序排好。浏览器的 querySelectorAll 本来就是文档顺序,jsdom 可能按选择器分组返回。 */
15
+ function inDocumentOrder(nodes) {
16
+ return [...nodes].sort((a, b) => precedes(a, b) ? -1 : 1);
17
+ }
18
+ function isShownAsPopover(element) {
19
+ try {
20
+ return element.matches(":popover-open");
21
+ } catch {
22
+ return false;
23
+ }
24
+ }
25
+ /** 对话框在顶层里:打开了,或者作为 popover 显示着。 */
26
+ function isDialogShown(dialog) {
27
+ return dialog.open || isShownAsPopover(dialog);
28
+ }
29
+ /**
30
+ * 元素是否在一个页面不显示的、关着的 `<dialog>` 里。这样的对话框什么都不画,里面也不能聚焦。
31
+ * 关着但页面把它按普通流显示出来的对话框有盒子,里面的控件照样是 Tab 落脚点。
32
+ */
33
+ function isInHiddenClosedDialog(element) {
34
+ for (let dialog = element.closest("dialog"); dialog != null; dialog = dialog.parentElement?.closest("dialog") ?? null) if (!isDialogShown(dialog) && dialog.ownerDocument.defaultView?.getComputedStyle(dialog).display === "none") return true;
35
+ return false;
36
+ }
37
+ function radioNameOf(element) {
38
+ if (!element.matches("input[type=\"radio\"][name]")) return null;
39
+ return element.name || null;
40
+ }
41
+ function isSameRadioGroup(a, b) {
42
+ const name = radioNameOf(a);
43
+ return name != null && name === radioNameOf(b) && a.form === b.form;
44
+ }
45
+ /**
46
+ * 去掉浏览器按 Tab 时会跳过的单选框,其余元素原样保留。
47
+ * 同名单选组只停一站:有焦点的那个,否则选中的那个;一个都没选时整组都留着,
48
+ * 正向进入落在第一个,反向进入落在最后一个。
49
+ */
50
+ function collapseRadioGroups(elements, active) {
51
+ return elements.filter((element) => {
52
+ if (radioNameOf(element) == null) return true;
53
+ if (active != null && isSameRadioGroup(element, active)) return element === active;
54
+ return element.checked || !elements.some((other) => isSameRadioGroup(element, other) && other.checked);
55
+ });
56
+ }
57
+ /** 容器里能被 Tab 走到的元素,按文档顺序,不含藏在关着的对话框里的。 */
58
+ function focusablesIn(container) {
59
+ return inDocumentOrder(getFocusables(container)).filter((element) => !isInHiddenClosedDialog(element));
60
+ }
61
+ /** 试着聚焦,返回焦点是否真的过去了。被模态层盖住(inert)的元素会拒绝。 */
62
+ function attemptFocus(element) {
63
+ try {
64
+ element.focus();
65
+ } catch {
66
+ return false;
67
+ }
68
+ return element.ownerDocument.activeElement === element;
69
+ }
70
+ /** 当前启用的焦点区域容器。区域嵌套时,握着焦点的最里层那个接 Tab。 */
71
+ const activeRegions = /* @__PURE__ */ new Set();
72
+ function registerRegion(container) {
73
+ activeRegions.add(container);
74
+ return () => activeRegions.delete(container);
75
+ }
76
+ /** 焦点是否握在嵌套在 `container` 里的另一个区域(或另一个打开的 `<dialog>`)手里。那时由它接 Tab。 */
77
+ function hasInnerRegionHolding(container, active) {
78
+ const dialog = active.closest("dialog[open]");
79
+ if (dialog != null && dialog !== container && container.contains(dialog)) return true;
80
+ for (const other of activeRegions) if (other !== container && container.contains(other) && other.contains(active)) return true;
81
+ return false;
82
+ }
83
+ //#endregion
84
+ //#region src/composables/useFocusTrap.ts
85
+ /**
86
+ * 在容器内陷阱键盘焦点,按 Tab 时循环聚焦容器内的可聚焦元素。
87
+ * 用于模态对话框、抽屉等需要限制焦点范围的浮层组件。
88
+ *
89
+ * 打开时把焦点送进容器,关闭或卸载时把焦点还给打开前聚焦的元素;
90
+ * 焦点从没进过容器、或者已经被别处拿走时不还。还焦点时焦点环跟着上一次的输入走:
91
+ * 用鼠标或手指关掉的,回到触发器上不画环。
92
+ *
93
+ * Tab 只在焦点真的在陷阱里面时才被拦下。浮层开着、焦点却合理地留在外面
94
+ * (例如挂在输入框上的列表框)时,拦下 Tab 会让整个页面都没法用 Tab。
95
+ */
96
+ function useFocusTrap(options = {}) {
97
+ const containerRef = options.container ?? ref(null);
98
+ /** 打开陷阱前聚焦的元素,关闭时还给它。 */
99
+ let previouslyFocused = null;
100
+ /** 焦点是否进过陷阱。没进过就不还焦点,免得抢走浮层触发器的焦点。 */
101
+ let hasFocusEntered = false;
102
+ function isActive() {
103
+ return toValue(options.isActive) ?? toValue(options.isEnabled) ?? false;
104
+ }
105
+ /** 陷阱所在的文档:容器自己的。传送进同源 iframe 或画中画窗口的浮层,按键和焦点事件只发生在那个文档里。 */
106
+ function trapDocument() {
107
+ return containerRef.value?.ownerDocument ?? (typeof document === "undefined" ? null : document);
108
+ }
109
+ function isFocusInside() {
110
+ const el = containerRef.value;
111
+ const active = trapDocument()?.activeElement;
112
+ return el != null && active != null && el.contains(active);
113
+ }
114
+ function isTargetInside(event) {
115
+ const el = containerRef.value;
116
+ return el != null && event.target instanceof Node && el.contains(event.target);
117
+ }
118
+ /** 把焦点绕到 `target`,只有焦点真的过去了才拦下这次 Tab;被拒绝时(被上层模态盖住)交给浏览器。 */
119
+ function wrapFocus(event, target) {
120
+ if (target != null && attemptFocus(target)) event.preventDefault();
121
+ }
122
+ function onEscapeKeyDown(event) {
123
+ if (!isActive() || event.key !== "Escape") return;
124
+ if (event.defaultPrevented || isImeKeyEvent(event)) return;
125
+ if (options.onEscape != null && (isTargetInside(event) || isFocusInside())) options.onEscape();
126
+ }
127
+ /** Tab 在冒泡阶段处理,内容里自己接住 Tab 的控件先有机会取消它。 */
128
+ function onTabKeyDown(event) {
129
+ if (!isActive()) return;
130
+ if (event.key !== "Tab" || event.ctrlKey || event.metaKey) return;
131
+ if (event.defaultPrevented) return;
132
+ const el = containerRef.value;
133
+ const active = trapDocument()?.activeElement ?? null;
134
+ if (el == null || active == null || !el.contains(active)) return;
135
+ if (hasInnerRegionHolding(el, active)) return;
136
+ const focusables = focusablesIn(el);
137
+ if (focusables.length === 0) {
138
+ event.preventDefault();
139
+ return;
140
+ }
141
+ const stops = collapseRadioGroups(focusables, active);
142
+ const first = stops[0];
143
+ const last = stops[stops.length - 1];
144
+ if (active === el) {
145
+ wrapFocus(event, event.shiftKey ? last : first);
146
+ return;
147
+ }
148
+ const isProgrammaticStop = !focusables.includes(active);
149
+ if (event.shiftKey) {
150
+ if (active === first || isProgrammaticStop && first != null && precedes(active, first)) wrapFocus(event, last);
151
+ } else if (active === last || isProgrammaticStop && last != null && precedes(last, active)) wrapFocus(event, first);
152
+ }
153
+ function onFocusIn() {
154
+ if (isFocusInside()) hasFocusEntered = true;
155
+ }
156
+ function update() {}
157
+ function focusFirst() {
158
+ const el = containerRef.value;
159
+ if (!el) return;
160
+ for (const element of focusablesIn(el)) if (attemptFocus(element)) return;
161
+ }
162
+ function focusLast() {
163
+ const el = containerRef.value;
164
+ if (!el) return;
165
+ for (const element of focusablesIn(el).reverse()) if (attemptFocus(element)) return;
166
+ }
167
+ function activate() {
168
+ trackInteractionModality();
169
+ const doc = trapDocument();
170
+ if (doc != null) {
171
+ const active = doc.activeElement;
172
+ previouslyFocused = active != null && active !== doc.body && typeof active.focus === "function" ? active : null;
173
+ }
174
+ hasFocusEntered = false;
175
+ setup();
176
+ const target = options.initialFocus?.();
177
+ if (target) target.focus();
178
+ else focusFirst();
179
+ if (isFocusInside()) hasFocusEntered = true;
180
+ }
181
+ function restoreFocus() {
182
+ const target = previouslyFocused;
183
+ const hasEntered = hasFocusEntered;
184
+ previouslyFocused = null;
185
+ hasFocusEntered = false;
186
+ if (target == null || !hasEntered || !target.isConnected) return;
187
+ const doc = trapDocument();
188
+ const active = doc?.activeElement ?? null;
189
+ if (active != null && active !== doc?.body && !isFocusInside()) return;
190
+ focusForLastInput(target);
191
+ }
192
+ function deactivate() {
193
+ teardown();
194
+ restoreFocus();
195
+ }
196
+ /** 正在监听的 document,摘监听时用同一个。 */
197
+ let listeningDoc = null;
198
+ function setup() {
199
+ teardown();
200
+ const doc = trapDocument();
201
+ if (doc == null) return;
202
+ listeningDoc = doc;
203
+ doc.addEventListener("keydown", onEscapeKeyDown, true);
204
+ doc.addEventListener("keydown", onTabKeyDown);
205
+ doc.addEventListener("focusin", onFocusIn, true);
206
+ }
207
+ function teardown() {
208
+ const doc = listeningDoc;
209
+ listeningDoc = null;
210
+ if (doc == null) return;
211
+ doc.removeEventListener("keydown", onEscapeKeyDown, true);
212
+ doc.removeEventListener("keydown", onTabKeyDown);
213
+ doc.removeEventListener("focusin", onFocusIn, true);
214
+ }
215
+ let unregister = null;
216
+ watch([isActive, containerRef], ([enabled, container]) => {
217
+ unregister?.();
218
+ unregister = enabled && container != null ? registerRegion(container) : null;
219
+ if (enabled && listeningDoc != null && container != null && container.ownerDocument !== listeningDoc) setup();
220
+ }, { immediate: true });
221
+ watch(isActive, (enabled) => {
222
+ if (enabled) activate();
223
+ else deactivate();
224
+ }, { immediate: true });
225
+ onScopeDispose(() => {
226
+ unregister?.();
227
+ unregister = null;
228
+ deactivate();
229
+ });
230
+ return {
231
+ containerRef,
232
+ focusFirst,
233
+ focusLast,
234
+ update
235
+ };
236
+ }
237
+ //#endregion
238
+ export { inDocumentOrder as n, useFocusTrap as t };
@@ -1,4 +1,4 @@
1
- import { i as isTopLayer, n as useLayerDepth, o as pushLayer } from "./layerDepth-I6d28O4d.js";
1
+ import { c as useLayerDepth, f as pushLayer, u as isTopLayer } from "./interactionModality-B5dR7nnb.js";
2
2
  import { onScopeDispose } from "vue";
3
3
  //#region src/layer/useHoverLayerDismiss.ts
4
4
  /**
@@ -1,5 +1,5 @@
1
1
  import { t as _sfc_main } from "./FieldIcon-DMtfe1Ne.js";
2
- import { t as _sfc_main$1 } from "./FieldInfoTip-DS4OAl2Q.js";
2
+ import { t as _sfc_main$1 } from "./FieldInfoTip-tETk5JH_.js";
3
3
  import { computed, toValue } from "vue";
4
4
  //#region src/composables/useInputStatusIcon.ts
5
5
  /**
@@ -1,6 +1,6 @@
1
- import { s as isImeKeyEvent } from "./layerDepth-I6d28O4d.js";
1
+ import { n as isKeyboardModality, p as isImeKeyEvent } from "./interactionModality-B5dR7nnb.js";
2
2
  import { n as focusElement } from "./focus-x7mxEqjR.js";
3
- import { nextTick, onScopeDispose, watch } from "vue";
3
+ import { nextTick, onScopeDispose, ref, watch } from "vue";
4
4
  //#region src/Selector/selectorEscape.ts
5
5
  /** 弹出层关掉后,焦点回到触发按钮,而不是掉到 body。 */
6
6
  function focusSelectorTrigger(field) {
@@ -36,4 +36,25 @@ function bindListboxEscape(layer, onKeyDown) {
36
36
  onScopeDispose(() => layer.value?.removeEventListener("keydown", onKeyDown));
37
37
  }
38
38
  //#endregion
39
- export { onSelectorListboxEscape as i, dismissSelectorEscape as n, focusSelectorTrigger as r, bindListboxEscape as t };
39
+ //#region src/composables/internal/useKeyboardHighlight.ts
40
+ /**
41
+ * 高亮既能被按键移动,也能被指针移动,但只给键盘看的绘制(焦点环)只在键盘引起的移动后画。
42
+ * 每次高亮变化时读一次共用的交互模态;指针悬停另外用 `notePointerMove` 标出来,
43
+ * 因为键盘用过之后模态还停在「键盘」,光读模态分不出这次是悬停。
44
+ */
45
+ function useKeyboardHighlight(activeIndex) {
46
+ const isKeyboardHighlight = ref(isKeyboardModality());
47
+ let isPointerMove = false;
48
+ watch(activeIndex, () => {
49
+ isKeyboardHighlight.value = !isPointerMove && isKeyboardModality();
50
+ isPointerMove = false;
51
+ }, { flush: "sync" });
52
+ return {
53
+ isKeyboardHighlight,
54
+ notePointerMove: () => {
55
+ isPointerMove = true;
56
+ }
57
+ };
58
+ }
59
+ //#endregion
60
+ export { onSelectorListboxEscape as a, focusSelectorTrigger as i, bindListboxEscape as n, dismissSelectorEscape as r, useKeyboardHighlight as t };
@@ -1,4 +1,4 @@
1
- import { n as usePositionedLayer, t as useDismiss } from "./useDismiss-21Gk7uWk.js";
1
+ import { n as usePositionedLayer, t as useDismiss } from "./useDismiss-Dfb0Ky7T.js";
2
2
  import { computed, shallowRef, toValue, useId } from "vue";
3
3
  //#region src/composables/useLayer.ts
4
4
  /**
@@ -0,0 +1,64 @@
1
+ import { onBeforeUnmount, onMounted, ref } from "vue";
2
+ //#region src/composables/useMediaQuery.ts
3
+ function readMatches(query) {
4
+ if (typeof window === "undefined" || typeof window.matchMedia !== "function") return false;
5
+ return window.matchMedia(query).matches;
6
+ }
7
+ /** 按 `window.matchMedia` 这个函数分开存:换了实现(测试里常见)就是另一套,不会拿到旧的监听。 */
8
+ const sharedByMatcher = /* @__PURE__ */ new WeakMap();
9
+ function watchMediaQuery(query, listener) {
10
+ let sharedQueries = sharedByMatcher.get(window.matchMedia);
11
+ if (sharedQueries == null) {
12
+ sharedQueries = /* @__PURE__ */ new Map();
13
+ sharedByMatcher.set(window.matchMedia, sharedQueries);
14
+ }
15
+ const queries = sharedQueries;
16
+ let shared = queries.get(query);
17
+ if (shared == null) {
18
+ const list = window.matchMedia(query);
19
+ const created = {
20
+ list,
21
+ listeners: /* @__PURE__ */ new Set(),
22
+ onChange: (event) => {
23
+ for (const notify of created.listeners) notify(event.matches);
24
+ }
25
+ };
26
+ list.addEventListener("change", created.onChange);
27
+ queries.set(query, created);
28
+ shared = created;
29
+ }
30
+ const entry = shared;
31
+ entry.listeners.add(listener);
32
+ listener(entry.list.matches);
33
+ return () => {
34
+ entry.listeners.delete(listener);
35
+ if (entry.listeners.size === 0) {
36
+ entry.list.removeEventListener("change", entry.onChange);
37
+ queries.delete(query);
38
+ }
39
+ };
40
+ }
41
+ /**
42
+ * 对应原版 Astryx 的 `hooks/useMediaQuery`。
43
+ *
44
+ * Tracks a CSS media query as a ref. The first value is read during setup so a
45
+ * layout decision does not have to wait for mount, and changes are followed
46
+ * while the component is alive. All callers of one query share one listener.
47
+ */
48
+ function useMediaQuery(query) {
49
+ const matches = ref(readMatches(query));
50
+ let stop = null;
51
+ onMounted(() => {
52
+ if (typeof window === "undefined" || typeof window.matchMedia !== "function") return;
53
+ stop = watchMediaQuery(query, (next) => {
54
+ matches.value = next;
55
+ });
56
+ });
57
+ onBeforeUnmount(() => {
58
+ stop?.();
59
+ stop = null;
60
+ });
61
+ return matches;
62
+ }
63
+ //#endregion
64
+ export { useMediaQuery as t };
@@ -1,4 +1,4 @@
1
- import { t as useMediaQuery } from "./useMediaQuery-GMmgp28-.js";
1
+ import { t as useMediaQuery } from "./useMediaQuery-BzXGT1Aw.js";
2
2
  import { t as useListFocus } from "./useListFocus-CbHkLT-X.js";
3
3
  import { t as createHideTimer } from "./hoverIntent-DMHGb85c.js";
4
4
  import { getCurrentScope, onScopeDispose, toValue, watch } from "vue";
@@ -44,6 +44,7 @@ function useMenuHover(options) {
44
44
  }
45
45
  watch(isOpen, (open, wasOpen) => {
46
46
  if (wasOpen && !open) {
47
+ clearTimeouts();
47
48
  isHoverMode = false;
48
49
  hoverOpenedAt = 0;
49
50
  closedAt = Date.now();
@@ -139,8 +140,9 @@ function useMenuHover(options) {
139
140
  function onContentMouseEnter() {
140
141
  if (isEnabled()) clearTimeouts();
141
142
  }
143
+ /** 内容里的菜单可能自己管列表按键;它已经处理过的键冒泡到这里时不能再挪一次焦点(一次方向键只走一项)。 */
142
144
  function onContentKeyDown(event) {
143
- if (isEnabled()) list.handleKeyDown(event);
145
+ if (isEnabled() && !event.defaultPrevented) list.handleKeyDown(event);
144
146
  }
145
147
  function setTriggerEl(el) {
146
148
  triggerEl = typeof HTMLElement !== "undefined" && el instanceof HTMLElement ? el : null;