@astryx-vue/core 0.43.1 → 0.43.2

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 (298) hide show
  1. package/dist/AlertDialog/index.js +1 -1
  2. package/dist/{AlertDialog-Dv5k7js-.js → AlertDialog-Bh3uhS_R.js} +7 -7
  3. package/dist/AppShell/index.js +1 -1
  4. package/dist/{AppShell-CCT8ttns.js → AppShell-1gvAIOLH.js} +3 -3
  5. package/dist/Avatar/index.js +1 -1
  6. package/dist/{Avatar-CCGyBins.js → Avatar-B9n7-kfv.js} +1 -1
  7. package/dist/AvatarGroup/index.d.ts +1 -1
  8. package/dist/AvatarGroup/index.js +1 -1
  9. package/dist/{AvatarGroup-BIAkrmao.js → AvatarGroup-BOkvPhXj.js} +1 -1
  10. package/dist/Badge/index.js +1 -1
  11. package/dist/{Badge-D3ZreOKp.js → Badge-DZaIs3aV.js} +1 -1
  12. package/dist/Banner/index.d.ts +1 -1
  13. package/dist/Banner/index.js +1 -1
  14. package/dist/{Banner-BnWEUYLY.js → Banner-4FQsRu7N.js} +1 -1
  15. package/dist/BottomSheet/index.d.ts +1 -1
  16. package/dist/BottomSheet/index.js +2 -2
  17. package/dist/{BottomSheet-B2b9l2Wt.js → BottomSheet-BlkSIOtf.js} +2 -2
  18. package/dist/{BottomSheet-j8vx6nzu.js → BottomSheet-j5app7P8.js} +3 -3
  19. package/dist/Breadcrumbs/index.js +2 -2
  20. package/dist/{Breadcrumbs-CjxF6e_F.js → Breadcrumbs-BfSV4Ewm.js} +1 -1
  21. package/dist/Button/index.d.ts +1 -1
  22. package/dist/Button/index.js +1 -1
  23. package/dist/{Button-BUwxLlDR.js → Button-euzAB2JG.js} +3 -3
  24. package/dist/ButtonGroup/index.d.ts +1 -1
  25. package/dist/ButtonGroup/index.js +1 -1
  26. package/dist/{ButtonGroup-CniWiype.js → ButtonGroup-DfNW3nfJ.js} +2 -2
  27. package/dist/Calendar/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-zqKVApwm.js → Carousel-DbMleN6W.js} +1 -1
  31. package/dist/Chat/index.d.ts +1 -1
  32. package/dist/Chat/index.js +1 -1
  33. package/dist/{Chat-DgQyVonB.js → Chat-CWCbGUYl.js} +8 -8
  34. package/dist/CheckboxInput/index.d.ts +1 -1
  35. package/dist/CheckboxInput/index.js +1 -1
  36. package/dist/{CheckboxInput-Cqu94yE-.js → CheckboxInput-B82_RIxf.js} +4 -4
  37. package/dist/CheckboxList/index.d.ts +1 -1
  38. package/dist/CheckboxList/index.js +1 -1
  39. package/dist/{CheckboxListItem-DBmjxrC9.js → CheckboxListItem-y0USbTgg.js} +4 -4
  40. package/dist/ClickableCard/index.d.ts +1 -1
  41. package/dist/ClickableCard/index.js +1 -1
  42. package/dist/{ClickableCard-CHYsyEoV.js → ClickableCard-CSSIVdtX.js} +2 -2
  43. package/dist/Code/index.js +2 -2
  44. package/dist/{Code-DWJRBkBo.js → Code-C43i8FCX.js} +1 -1
  45. package/dist/{CodeBlock-Cbo_qQKb.js → CodeBlock-ClzdGw3T.js} +2 -2
  46. package/dist/Collapsible/index.js +1 -1
  47. package/dist/{Collapsible-BGcAI7zr.js → Collapsible-B0Iu6_Iu.js} +2 -2
  48. package/dist/CommandPalette/index.js +1 -1
  49. package/dist/{CommandPalette-c5JKlxA4.js → CommandPalette-DF2xzlgf.js} +3 -3
  50. package/dist/ComplexSelector/index.js +1 -1
  51. package/dist/{ComplexSelector-DWvg6Tv8.js → ComplexSelector-DsGwWEoM.js} +3 -3
  52. package/dist/ContextMenu/index.d.ts +1 -1
  53. package/dist/ContextMenu/index.js +2 -2
  54. package/dist/{ContextMenu-BIvp1lte.js → ContextMenu-CJCpkIHr.js} +5 -5
  55. package/dist/DateInput/index.d.ts +1 -1
  56. package/dist/DateInput/index.js +1 -1
  57. package/dist/{DateInput-BIU5pnkd.js → DateInput-BW4Fwe7h.js} +4 -4
  58. package/dist/DateRangeInput/index.d.ts +1 -1
  59. package/dist/DateRangeInput/index.js +1 -1
  60. package/dist/{DateRangeInput-CS4fPKiS.js → DateRangeInput-DQBgDw_I.js} +4 -4
  61. package/dist/DateTimeInput/index.d.ts +1 -1
  62. package/dist/DateTimeInput/index.js +1 -1
  63. package/dist/{DateTimeInput-Ck6DPJbu.js → DateTimeInput-DwErM5ri.js} +6 -6
  64. package/dist/Dialog/index.js +3 -3
  65. package/dist/{Dialog-YHm_AxCR.js → Dialog-Cjw_hc9x.js} +4 -5
  66. package/dist/{Dialog-DKPLe00d.js → Dialog-JfrLWdwL.js} +1 -1
  67. package/dist/{DialogHeader-DLPgLxng.js → DialogHeader-74IISHta.js} +1 -1
  68. package/dist/Divider/index.d.ts +1 -1
  69. package/dist/Drawer/index.d.ts +1 -1
  70. package/dist/Drawer/index.js +1 -1
  71. package/dist/{Drawer-CeIcoLob.js → Drawer-CsZ2dJf6.js} +4 -4
  72. package/dist/DropdownMenu/index.js +2 -2
  73. package/dist/{DropdownMenu-DU38kcJj.js → DropdownMenu-BAgNL3vt.js} +10 -10
  74. package/dist/EmptyState/index.js +1 -1
  75. package/dist/{EmptyState-A-W5iHeg.js → EmptyState-Cb2poVS1.js} +3 -3
  76. package/dist/Field/index.js +3 -3
  77. package/dist/{Field-CywKGqLZ.js → Field-CZGZMsZE.js} +1 -1
  78. package/dist/{FieldInfoTip-ns5DSY2R.js → FieldInfoTip-C2jNfn3M.js} +4 -2
  79. package/dist/{FieldLabel-B_KKj3p2.js → FieldLabel-CS5Xq97O.js} +1 -1
  80. package/dist/FileInput/index.js +1 -1
  81. package/dist/{FileInput-iohQGlZx.js → FileInput-DwQ4Pwrr.js} +4 -4
  82. package/dist/Heading/index.d.ts +1 -1
  83. package/dist/Heading/index.js +1 -1
  84. package/dist/{Heading-DrRtU8qI.js → Heading-BxUBgmHB.js} +1 -1
  85. package/dist/HoverCard/index.d.ts +1 -1
  86. package/dist/HoverCard/index.js +1 -1
  87. package/dist/{HoverCard-BmehvS0D.js → HoverCard-B8q3MpjF.js} +3 -3
  88. package/dist/IconButton/index.js +1 -1
  89. package/dist/{IconButton-BA7GRuUJ.js → IconButton-ClmH02vt.js} +1 -1
  90. package/dist/InfoTip/index.d.ts +1 -1
  91. package/dist/InfoTip/index.js +1 -1
  92. package/dist/{InfoTip-fl6N72TS.js → InfoTip-BaWAyvEi.js} +2 -2
  93. package/dist/{InputClearButton-BKgQ8dgP.js → InputClearButton-fffY0HzH.js} +1 -1
  94. package/dist/InputGroup/index.d.ts +1 -1
  95. package/dist/InputGroup/index.js +1 -1
  96. package/dist/{InputGroup-COVIPIGq.js → InputGroup-D9sOFuMU.js} +2 -2
  97. package/dist/{Item-Dds9mU6Z.js → Item-Dmebq1UF.js} +12 -5
  98. package/dist/Layout/index.js +2 -2
  99. package/dist/{Layout-DdsbcT6Z.js → Layout-G_yTX__g.js} +1 -1
  100. package/dist/{LayoutPanel-0yi1xept.js → LayoutPanel-DcGI1bxe.js} +1 -1
  101. package/dist/Lightbox/index.js +1 -1
  102. package/dist/{Lightbox-DcrwBS9V.js → Lightbox-uK7doOtN.js} +3 -3
  103. package/dist/Link/index.d.ts +1 -1
  104. package/dist/Link/index.js +1 -1
  105. package/dist/{Link-BdlaErAT.js → Link-Dqmdo7zY.js} +2 -2
  106. package/dist/List/index.d.ts +1 -1
  107. package/dist/List/index.js +3 -3
  108. package/dist/{List-D1Pr6E7p.js → List-Cw_Bz7VJ.js} +1 -1
  109. package/dist/{ListItem-BmNr7uiR.js → ListItem-5IrzNrPG.js} +2 -2
  110. package/dist/Markdown/index.d.ts +1 -1
  111. package/dist/Markdown/index.js +1 -1
  112. package/dist/{Markdown-C8BXhDP0.js → Markdown-DgU8Z6fh.js} +3 -3
  113. package/dist/MobileNav/index.js +1 -1
  114. package/dist/{MobileNavToggle-BzfsPuLo.js → MobileNavToggle-CZjRE6ki.js} +3 -3
  115. package/dist/MoreMenu/index.d.ts +1 -1
  116. package/dist/MoreMenu/index.js +1 -1
  117. package/dist/{MoreMenu-CaWxztZx.js → MoreMenu-CctyrlIC.js} +6 -6
  118. package/dist/MultiSelector/index.d.ts +1 -1
  119. package/dist/MultiSelector/index.js +1 -1
  120. package/dist/{MultiSelector-Bi50qsF4.js → MultiSelector-B8gj7DC1.js} +7 -7
  121. package/dist/{NavDisclosure-D-vUD3Bl.js → NavDisclosure-B1Rk9uWm.js} +12 -0
  122. package/dist/{NavHeadingSurface-D2UWKpSw.js → NavHeadingSurface-B8vSLYn8.js} +32 -24
  123. package/dist/NavItem/index.d.ts +1 -1
  124. package/dist/NavItem/index.js +1 -1
  125. package/dist/{NavItem-CyYs0MqE.js → NavItem-BSw2rt6c.js} +1 -1
  126. package/dist/NavMenu/index.d.ts +1 -1
  127. package/dist/NavMenu/index.js +3 -3
  128. package/dist/{NavMenu-BxL910jk.js → NavMenu-CY_Lek2e.js} +18 -8
  129. package/dist/{NavMenuItem-BnvyXNmq.js → NavMenuItem-CGDBoeek.js} +3 -3
  130. package/dist/NumberInput/index.d.ts +1 -1
  131. package/dist/NumberInput/index.js +1 -1
  132. package/dist/{NumberInput-CwP23jyj.js → NumberInput-Dyrsd8iV.js} +3 -3
  133. package/dist/Outline/index.js +1 -1
  134. package/dist/{Outline-B2xpgjh8.js → Outline-DyWV1DE6.js} +1 -1
  135. package/dist/OverflowList/index.d.ts +1 -1
  136. package/dist/OverflowList/index.js +1 -1
  137. package/dist/{OverflowList-D9C4LDqG.js → OverflowList-BjtnyyFH.js} +2 -2
  138. package/dist/Pagination/index.d.ts +1 -1
  139. package/dist/Pagination/index.js +1 -1
  140. package/dist/{Pagination-CYqnfjlj.js → Pagination-DxCA-HxJ.js} +4 -4
  141. package/dist/Popover/index.d.ts +1 -1
  142. package/dist/Popover/index.js +1 -1
  143. package/dist/{Popover-B1KEO3cp.js → Popover-Bfdc7cPl.js} +7 -8
  144. package/dist/PowerSearch/index.d.ts +1 -1
  145. package/dist/PowerSearch/index.js +1 -1
  146. package/dist/{PowerSearch-DbHaoWLt.js → PowerSearch-BwF9Dlxz.js} +24 -24
  147. package/dist/ProgressBar/index.d.ts +1 -1
  148. package/dist/ProgressBar/index.js +1 -1
  149. package/dist/{ProgressBar-D7btyHEW.js → ProgressBar-LhOowRTl.js} +1 -1
  150. package/dist/Radio/index.d.ts +1 -1
  151. package/dist/Radio/index.js +1 -1
  152. package/dist/{RadioGroup-DHsmwHtm.js → RadioGroup-CFLTQl3K.js} +5 -5
  153. package/dist/RadioList/index.d.ts +1 -1
  154. package/dist/RadioList/index.js +1 -1
  155. package/dist/{RadioListItem-CvSf8RMH.js → RadioListItem-6vtMowgq.js} +1 -1
  156. package/dist/Resizable/index.d.ts +1 -1
  157. package/dist/ScrollableArea/index.d.ts +1 -1
  158. package/dist/ScrollableArea/index.js +1 -1
  159. package/dist/{ScrollableArea-CJsSDN45.js → ScrollableArea-CBFqNcS0.js} +1 -1
  160. package/dist/SegmentedControl/index.d.ts +1 -1
  161. package/dist/SegmentedControl/index.js +1 -1
  162. package/dist/{SegmentedControl-DCaDQ2zo.js → SegmentedControl-CvHxmxSq.js} +3 -3
  163. package/dist/SelectableCard/index.d.ts +1 -1
  164. package/dist/SelectableCard/index.js +1 -1
  165. package/dist/{SelectableCard-DXZnI7ib.js → SelectableCard-9SSfwFyD.js} +2 -2
  166. package/dist/Selector/index.d.ts +1 -1
  167. package/dist/Selector/index.js +1 -1
  168. package/dist/{Selector-DgA3p_vY.js → Selector-DLHdkU47.js} +4 -4
  169. package/dist/SideNav/index.d.ts +1 -1
  170. package/dist/SideNav/index.js +1 -1
  171. package/dist/{SideNav-DksQSYby.js → SideNav-UDy54LWk.js} +8 -8
  172. package/dist/Slider/index.js +1 -1
  173. package/dist/{Slider-CdRV1bCC.js → Slider-g5_g_-Eu.js} +2 -2
  174. package/dist/Spinner/index.js +1 -1
  175. package/dist/{Spinner-D6U81W87.js → Spinner-A3u6UMC2.js} +1 -1
  176. package/dist/StatusDot/index.js +1 -1
  177. package/dist/{StatusDot-D6piHeyt.js → StatusDot-BPbHIDK3.js} +1 -1
  178. package/dist/Stepper/index.d.ts +1 -1
  179. package/dist/Stepper/index.js +1 -1
  180. package/dist/{Stepper-datF7_Kw.js → Stepper-fAXQMCoa.js} +1 -1
  181. package/dist/Switch/index.d.ts +1 -1
  182. package/dist/Switch/index.js +1 -1
  183. package/dist/{Switch-CLyjn2EV.js → Switch-B4qQk8nJ.js} +4 -4
  184. package/dist/TabList/index.js +1 -1
  185. package/dist/{TabList-Ca_OTfBB.js → TabList-DPl5hrlq.js} +2 -2
  186. package/dist/Table/index.d.ts +1 -1
  187. package/dist/Table/index.js +1 -1
  188. package/dist/{Table-UQYSPKLi.js → Table-DcHbjYMH.js} +15 -15
  189. package/dist/Text/index.d.ts +1 -1
  190. package/dist/Text/index.js +1 -1
  191. package/dist/{Text-BNYzEYKN.js → Text-CqdqnOyw.js} +1 -1
  192. package/dist/TextArea/index.d.ts +1 -1
  193. package/dist/TextArea/index.js +1 -1
  194. package/dist/{TextArea-xyfbtdDe.js → TextArea-Bio9Gh34.js} +5 -5
  195. package/dist/TextInput/index.d.ts +1 -1
  196. package/dist/TextInput/index.js +1 -1
  197. package/dist/{TextInput-4T2l6nIx.js → TextInput-CQnO23U5.js} +5 -5
  198. package/dist/Thumbnail/index.js +1 -1
  199. package/dist/{Thumbnail-DMobmtCT.js → Thumbnail-BDQg5fM_.js} +4 -4
  200. package/dist/{TimeField-BJ0n_UmS.js → TimeField-DFQIaneq.js} +3 -3
  201. package/dist/TimeInput/index.d.ts +1 -1
  202. package/dist/TimeInput/index.js +1 -1
  203. package/dist/{TimeInput-EIvW94w2.js → TimeInput-BMgTNmFR.js} +2 -2
  204. package/dist/Timer/index.js +1 -1
  205. package/dist/{Timer-CwkKyCaZ.js → Timer-CYusx9bw.js} +1 -1
  206. package/dist/Timestamp/index.d.ts +1 -1
  207. package/dist/Timestamp/index.js +1 -1
  208. package/dist/{Timestamp-BsuGdHWI.js → Timestamp-mD_zYE11.js} +3 -3
  209. package/dist/Toast/index.js +1 -1
  210. package/dist/{Toast-DKuaFhrg.js → Toast-D6vNybEc.js} +3 -3
  211. package/dist/ToggleButton/index.d.ts +1 -1
  212. package/dist/ToggleButton/index.js +1 -1
  213. package/dist/{ToggleButton-BHasUu8b.js → ToggleButton-Dwt5c31B.js} +3 -3
  214. package/dist/Token/index.d.ts +1 -1
  215. package/dist/Token/index.js +1 -1
  216. package/dist/{Token-BQGcBNKf.js → Token-CZCvtfGU.js} +2 -2
  217. package/dist/Tokenizer/index.js +1 -1
  218. package/dist/{Tokenizer-DXwHDbL7.js → Tokenizer-vIHlJqfc.js} +13 -13
  219. package/dist/Toolbar/index.d.ts +1 -1
  220. package/dist/Tooltip/index.d.ts +1 -1
  221. package/dist/Tooltip/index.js +2 -2
  222. package/dist/{Tooltip-CSF5F0QB.js → Tooltip-BGw1Dxs7.js} +1 -1
  223. package/dist/TopNav/index.d.ts +1 -1
  224. package/dist/TopNav/index.js +1 -1
  225. package/dist/{TopNav-CTCH30YX.js → TopNav-B7WVftOG.js} +5 -5
  226. package/dist/TreeList/index.d.ts +1 -1
  227. package/dist/TreeList/index.js +1 -1
  228. package/dist/{TreeList-Adv2OI-T.js → TreeList-DlRkhOsr.js} +4 -4
  229. package/dist/Typeahead/index.js +2 -2
  230. package/dist/{Typeahead-Bvesheeg.js → Typeahead-DVSuuJF0.js} +5 -5
  231. package/dist/{accessibleName-Liv9VEpI.js → accessibleName-JNiIpYLV.js} +2 -2
  232. package/dist/{announceRenderedText-pHs_kfQB.js → announceRenderedText-Dzsx6ROw.js} +1 -1
  233. package/dist/{assertOptions-BOwrrTT-.js → assertOptions-D4YfVTam.js} +1 -1
  234. package/dist/{boxHold-BeZ6T0vP.js → boxHold-BZBGNilH.js} +1 -1
  235. package/dist/composables/index.d.ts +1 -1
  236. package/dist/composables/index.js +12 -11
  237. package/dist/{composables-BXjTzBd-.js → composables-CpnaT0rZ.js} +29 -17
  238. package/dist/{focus-x7mxEqjR.js → focus-DxAD3umZ.js} +12 -1
  239. package/dist/focusAcrossSwap-DYmqoqKg.js +83 -0
  240. package/dist/{focusLeaving-Df0Dqr5v.js → focusLeaving-mWmyOnpz.js} +1 -1
  241. package/dist/{focusRegion-CmDg7_4b.js → focusRegion-0I3hsblQ.js} +1 -1
  242. package/dist/{focusReturn-BeSRm0xD.js → focusReturn-CXHM5lOY.js} +1 -1
  243. package/dist/{holdEntranceInput-CxiwxRdS.js → holdEntranceInput-C9J7g1Pu.js} +1 -1
  244. package/dist/{index-ZXrvTM3A.d.ts → index-0RIgvtdm.d.ts} +2 -2
  245. package/dist/{index-C93nwgTW.d.ts → index-51CkIKnI.d.ts} +1 -1
  246. package/dist/{index-tdOyqA_U.d.ts → index-Ak1b0V24.d.ts} +1 -1
  247. package/dist/{index-CdvmnNMH.d.ts → index-BaFphczL.d.ts} +1 -1
  248. package/dist/{index-ByKedmzm.d.ts → index-CC9ETLL4.d.ts} +1 -1
  249. package/dist/{index-Ds4dOCSy.d.ts → index-CCa_dvoF.d.ts} +3 -3
  250. package/dist/{index-D9TEHLw6.d.ts → index-CFKpOpnO.d.ts} +3 -3
  251. package/dist/{index-C4S65SAW.d.ts → index-CKnr0JlT.d.ts} +1 -1
  252. package/dist/{index-v27zktLu.d.ts → index-CRjJmEtZ.d.ts} +4 -4
  253. package/dist/{index-DofC9Rll.d.ts → index-Cb-rvc1W.d.ts} +1 -1
  254. package/dist/{index-cxXrnuj3.d.ts → index-Cf4bPzU0.d.ts} +17 -9
  255. package/dist/{index-C8wfe0Mr.d.ts → index-D05JGsT3.d.ts} +1 -1
  256. package/dist/{index-Bew88db8.d.ts → index-D8G_PdWT.d.ts} +4 -4
  257. package/dist/{index-CgrQX9f9.d.ts → index-DNurYNHr.d.ts} +48 -48
  258. package/dist/{index-CAP19BZD.d.ts → index-DOlcm-Ra.d.ts} +2 -0
  259. package/dist/{index-C7uGs5Cl.d.ts → index-DZUoC8aR.d.ts} +1 -1
  260. package/dist/{index-BAp4nVVN.d.ts → index-iGHM85Y1.d.ts} +3 -3
  261. package/dist/{index-BenG-F5d.d.ts → index-maTGrWjF.d.ts} +1 -1
  262. package/dist/{index-BABha_qR.d.ts → index-n_U1D11_.d.ts} +4 -4
  263. package/dist/{index-CtYlR9Cu.d.ts → index-rdwI-mcm.d.ts} +1 -1
  264. package/dist/{index-BfFpUr1B.d.ts → index-vCRf5fyK.d.ts} +1 -1
  265. package/dist/{index-C89cIh4E.d.ts → index-waTkqxTz.d.ts} +1 -1
  266. package/dist/index.d.ts +23 -23
  267. package/dist/index.js +106 -105
  268. package/dist/{inputHold-CSq4NZlV.js → inputHold-CUraoRG3.js} +1 -1
  269. package/dist/interactiveAncestor-CEsQ_YQW.js +81 -0
  270. package/dist/internal/touch.d.ts +12 -0
  271. package/dist/internal/touch.js +5 -4
  272. package/dist/{layerFocusReturn-Bl6yja5A.js → layerFocusReturn-Ddz5_Z2Z.js} +25 -53
  273. package/dist/{lazyBottomSheet-Bt7UIxYT.js → lazyBottomSheet-CEZ77VHB.js} +1 -1
  274. package/dist/{pressSlot-DIN1AmiA.js → pressSlot-BxYt3vyU.js} +86 -2
  275. package/dist/revealReturnTarget-DNX6xtLb.js +43 -0
  276. package/dist/{scrollKeyboardDelegation-COtRAAWq.js → scrollKeyboardDelegation-C8MwNYgK.js} +1 -1
  277. package/dist/{textDirection-DJl_tYja.js → textDirection-DOiVLtX0.js} +12 -1
  278. package/dist/{tooltipFocusRules-D468Tl5q.js → tooltipFocusRules-BBshpLxm.js} +1 -1
  279. package/dist/{useActionGroupTracking-FyDVRrJo.js → useActionGroupTracking-2fXeyqxa.js} +2 -2
  280. package/dist/{useFocusTrap-Bj9GskLh.js → useFocusTrap-DhhwiBEF.js} +12 -5
  281. package/dist/{useInputContainer-CLhsKYZ6.js → useInputContainer-C8ARd4qy.js} +1 -1
  282. package/dist/{useInputStatusIcon-BOK9C-cK.js → useInputStatusIcon-Dpj4AtXd.js} +1 -1
  283. package/dist/{useMenuEntranceHold-DD7NT3Ye.js → useMenuEntranceHold-DYZ_k6kP.js} +1 -1
  284. package/dist/{useMenuPress-Cdh6Emnv.js → useMenuPress-C1fiHACF.js} +1 -1
  285. package/dist/{usePressFeedback-YVKOuzaa.js → usePressFeedback-DyCf9Ok5.js} +1 -1
  286. package/dist/{useResizable-Diq3vRVH.js → useResizable-B_QakV6o.js} +32 -2
  287. package/dist/{useRestoreFocus-m3rsqE4d.js → useRestoreFocus-D04TyAC3.js} +6 -2
  288. package/dist/{useScrollableArea-i2X5vvTv.js → useScrollableArea-B3gnyFbR.js} +1 -1
  289. package/dist/{useTooltip-CJKLcg2f.js → useTooltip-CYRQuYj_.js} +3 -3
  290. package/dist/{useTouchHitArea-DUezWadK.js → useTouchHitArea-DCAX0X6S.js} +1 -1
  291. package/dist/{useTouchTriggerInternal-B9YsuMRa.js → useTouchTriggerInternal-CCk8lhbz.js} +1 -1
  292. package/dist/{useTruncationTooltip-QB_t0RDb.js → useTruncationTooltip-0gr37s_G.js} +2 -2
  293. package/dist/{useTypeaheadMenuConfig-TSkUldd9.js → useTypeaheadMenuConfig-sk8aSp57.js} +1 -1
  294. package/package.json +1 -1
  295. package/styles/keyboard-hint.css +18 -0
  296. package/dist/focusAcrossSwap-Casww_IY.js +0 -19
  297. package/dist/useClickableContainer-Dtjg-nkm.js +0 -141
  298. package/dist/{index-DrIxH3YE.d.ts → index-7tsRPFfY.d.ts} +2 -2
@@ -1,53 +1,7 @@
1
- import { t as SCROLLABLE_OVERFLOW } from "./scrollView-BGBtu5JP.js";
2
1
  import { t as devWarn } from "./useDevWarning-B2fsk2B-.js";
3
- import { t as FOCUSABLE_SELECTOR } from "./focus-x7mxEqjR.js";
4
- import { t as focusForLastInput } from "./focusReturn-BeSRm0xD.js";
5
- //#region src/layer/revealReturnTarget.ts
6
- /**
7
- * 焦点归还后把打开者露出来(上游 utils/focusReturn.ts 的 `revealReturnTarget`)。
8
- *
9
- * 归还焦点本身不滚动页面。打开者是 Tab 能到的控件、放得进可见区域、却被页面滚出了
10
- * 视野(或只露出一部分)时,把它滚到最近的边上,键盘用户能看见焦点在哪。
11
- *
12
- * 不是 Tab 停靠点的目标不滚:WebKit 会把轻点按钮时最近的可聚焦祖先(比如
13
- * `tabindex="-1"` 的主区域)记成打开者,滚到它会把页面卷回那个区域的顶边。
14
- * 比可见区域还大的目标、被 `overflow: hidden` 裁掉的目标也不滚。
15
- */
16
- /** Tab 能到它:本身可聚焦,也没有负的 tabindex 把它移出顺序。 */
17
- function isTabStop(element) {
18
- const attribute = element.getAttribute("tabindex");
19
- if (attribute != null && Number.parseInt(attribute, 10) < 0) return false;
20
- return element.matches(FOCUSABLE_SELECTOR);
21
- }
22
- function fitsVisibleArea(element) {
23
- const doc = element.ownerDocument;
24
- const view = doc.defaultView;
25
- if (view == null) return false;
26
- const box = element.getBoundingClientRect();
27
- const viewport = view.visualViewport;
28
- if (box.width > (viewport?.width ?? view.innerWidth) || box.height > (viewport?.height ?? view.innerHeight)) return false;
29
- let shown = box;
30
- for (let scroller = element.parentElement; scroller != null; scroller = scroller.parentElement) {
31
- const style = view.getComputedStyle(scroller);
32
- const scrollsX = SCROLLABLE_OVERFLOW.has(style.overflowX);
33
- const scrollsY = SCROLLABLE_OVERFLOW.has(style.overflowY);
34
- if (scrollsX && box.width > scroller.clientWidth || scrollsY && box.height > scroller.clientHeight) return false;
35
- if (scroller === doc.documentElement || scroller === doc.body) continue;
36
- const clip = scroller.getBoundingClientRect();
37
- if (style.overflowX === "hidden" && (shown.left < clip.left || shown.right > clip.right) || style.overflowY === "hidden" && (shown.top < clip.top || shown.bottom > clip.bottom)) return false;
38
- if (scrollsX || scrollsY) shown = clip;
39
- }
40
- return true;
41
- }
42
- /** 焦点在 `element` 上、它是 Tab 停靠点并且放得进可见区域时,把它滚到最近的边上。 */
43
- function revealReturnTarget(element) {
44
- if (element.ownerDocument.activeElement !== element || !isTabStop(element) || typeof element.scrollIntoView !== "function" || !fitsVisibleArea(element)) return;
45
- element.scrollIntoView({
46
- block: "nearest",
47
- inline: "nearest"
48
- });
49
- }
50
- //#endregion
2
+ import { t as FOCUSABLE_SELECTOR } from "./focus-DxAD3umZ.js";
3
+ import { t as focusForLastInput } from "./focusReturn-CXHM5lOY.js";
4
+ import { t as revealReturnTarget } from "./revealReturnTarget-DNX6xtLb.js";
51
5
  //#region src/layer/layerFocusReturn.ts
52
6
  function documentOf(element) {
53
7
  if (element != null) return element.ownerDocument;
@@ -83,19 +37,37 @@ function trackLayerFocus(options) {
83
37
  doc,
84
38
  place,
85
39
  ancestors,
86
- stop: () => doc?.removeEventListener("focusin", onFocusIn, true)
40
+ focusMovingTo: null,
41
+ stop: () => {
42
+ doc?.removeEventListener("focusin", onFocusIn, true);
43
+ doc?.removeEventListener("blur", onBlur, true);
44
+ }
87
45
  };
88
46
  function onFocusIn(event) {
47
+ record.focusMovingTo = null;
89
48
  const current = options.getLayer();
90
49
  if (current != null && event.target instanceof Node && current.contains(event.target)) record.hasEntered = true;
91
50
  }
51
+ function onBlur(event) {
52
+ const next = event.relatedTarget;
53
+ const current = options.getLayer();
54
+ if (next instanceof Element && event.target instanceof Node && current != null && current.contains(event.target) && !current.contains(next)) {
55
+ record.focusMovingTo = next;
56
+ setTimeout(() => {
57
+ if (record.focusMovingTo === next) record.focusMovingTo = null;
58
+ }, 0);
59
+ }
60
+ }
92
61
  doc?.addEventListener("focusin", onFocusIn, true);
62
+ doc?.addEventListener("blur", onBlur, true);
93
63
  return record;
94
64
  }
95
65
  /** 焦点是不是被困在这一层:进过这一层,并且现在在这一层里或者掉到了 body 上。 */
96
66
  function isLayerFocusStranded(record, layer) {
97
67
  const { doc } = record;
98
68
  if (!record.hasEntered || doc == null) return false;
69
+ const movingTo = record.focusMovingTo;
70
+ if (movingTo instanceof HTMLElement && movingTo.isConnected && qualifies(movingTo, layer)) return false;
99
71
  const active = doc.activeElement;
100
72
  return isDetached(doc) || layer != null && active != null && layer.contains(active);
101
73
  }
@@ -132,13 +104,13 @@ function findController(doc, layerId) {
132
104
  return null;
133
105
  }
134
106
  /** 给本身不能聚焦的元素临时加一个 `tabindex="-1"`,焦点离开时摘掉。 */
135
- function focusWithTemporaryStop(element, reveal) {
107
+ function focusWithTemporaryStop(element) {
136
108
  if (!isFocusableNow(element)) {
137
109
  element.setAttribute("tabindex", "-1");
138
110
  element.addEventListener("blur", () => element.removeAttribute("tabindex"), { once: true });
139
111
  }
140
112
  focusForLastInput(element, { preventScroll: true });
141
- if (reveal) revealReturnTarget(element);
113
+ revealReturnTarget(element);
142
114
  }
143
115
  /**
144
116
  * 沿候选链把焦点送出这一层。只在焦点被困住时调用(见 `isLayerFocusStranded`)。
@@ -159,7 +131,7 @@ function restoreLayerFocus(record, options) {
159
131
  ];
160
132
  for (const candidate of candidates) {
161
133
  if (!qualifies(candidate, layer)) continue;
162
- focusWithTemporaryStop(candidate, options.reveal === true);
134
+ focusWithTemporaryStop(candidate);
163
135
  if (doc?.activeElement === candidate) return true;
164
136
  }
165
137
  devWarn(options.name ?? "Layer", "focus could not return anywhere after the layer closed: the opener, the trigger and every fallback are gone or cannot take focus.");
@@ -1,7 +1,7 @@
1
1
  import { defineAsyncComponent } from "vue";
2
2
  //#region src/BottomSheet/lazyBottomSheet.ts
3
3
  function loadBottomSheet() {
4
- return import("./BottomSheet-j8vx6nzu.js").then((n) => n.t);
4
+ return import("./BottomSheet-j5app7P8.js").then((n) => n.t);
5
5
  }
6
6
  /**
7
7
  * 按需加载的 BottomSheet:只在底部弹层真正进入组件树时请求,只用锚定浮层的页面
@@ -1,5 +1,84 @@
1
1
  import { a as idlePressGesture, n as PRESS_ONSET_MS, o as pressGestureStep, t as PRESS_FLASH_MS } from "./pressGesture-VrM5-7aV.js";
2
- import { n as hasInteractiveAncestor } from "./useClickableContainer-Dtjg-nkm.js";
2
+ import { n as innermostInteractive, r as labelledControl } from "./interactiveAncestor-CEsQ_YQW.js";
3
+ //#region src/composables/useClickableContainer.ts
4
+ function hasInteractiveAncestor(element, root) {
5
+ return innermostInteractive(element, root) != null;
6
+ }
7
+ function hasTextSelection(node) {
8
+ if (typeof document === "undefined" || document.getSelection == null) return false;
9
+ const selection = document.getSelection();
10
+ if (selection == null || selection.isCollapsed) return false;
11
+ return node.contains(selection.anchorNode);
12
+ }
13
+ function openInNewTab(href) {
14
+ window.open(href, "_blank", "noopener");
15
+ }
16
+ /**
17
+ * 把容器的 click / mouseup 交给调用方绑到根元素上。
18
+ * 组件挂载后会给容器加上 `data-pressable-container`,嵌套的可点容器因此不会互相抢走点击。
19
+ */
20
+ function useClickableContainer(options) {
21
+ function markContainer() {
22
+ const container = options.containerRef.value;
23
+ if (container != null) container.dataset.pressableContainer = "true";
24
+ }
25
+ function onClick(event) {
26
+ markContainer();
27
+ if (options.disabled) return;
28
+ const container = options.containerRef.value;
29
+ if (container == null) return;
30
+ if (hasTextSelection(container)) return;
31
+ const target = event.target;
32
+ if (!(target instanceof Element)) return;
33
+ if (target !== event.currentTarget && hasInteractiveAncestor(target, container)) return;
34
+ options.onClick?.(event);
35
+ if (event.defaultPrevented) return;
36
+ const href = options.href;
37
+ if (href != null && href !== "") {
38
+ if (options.target === "_blank" || event.metaKey || event.ctrlKey) {
39
+ openInNewTab(href);
40
+ return;
41
+ }
42
+ const interactive = options.interactiveRef?.value;
43
+ if (interactive != null) {
44
+ interactive.click();
45
+ return;
46
+ }
47
+ window.location.assign(href);
48
+ return;
49
+ }
50
+ if (options.onClick == null) {
51
+ const interactive = options.interactiveRef?.value;
52
+ if (interactive != null) {
53
+ interactive.dispatchEvent(new MouseEvent("click", {
54
+ bubbles: true,
55
+ cancelable: true,
56
+ button: event.button,
57
+ ctrlKey: event.ctrlKey,
58
+ metaKey: event.metaKey,
59
+ shiftKey: event.shiftKey,
60
+ altKey: event.altKey
61
+ }));
62
+ event.stopPropagation();
63
+ }
64
+ }
65
+ }
66
+ function onMouseUp(event) {
67
+ if (options.disabled) return;
68
+ const href = options.href;
69
+ if (href == null || href === "" || event.button !== 1) return;
70
+ const container = options.containerRef.value;
71
+ const target = event.target;
72
+ if (container == null || !(target instanceof Element)) return;
73
+ if (target !== event.currentTarget && hasInteractiveAncestor(target, container)) return;
74
+ openInNewTab(href);
75
+ }
76
+ return {
77
+ onClick,
78
+ onMouseUp
79
+ };
80
+ }
81
+ //#endregion
3
82
  //#region src/composables/internal/pressHeld.ts
4
83
  /**
5
84
  * 一块可按表面的按压被它的主人「按住不放」:表面照样接住按压,但什么都不画,和不可用的表面一样,
@@ -52,6 +131,11 @@ const DISABLED = ":disabled, [aria-disabled=\"true\"]";
52
131
  function landsOnNestedControl(target, container) {
53
132
  const action = target.closest(`[${PRESS_ACTION_ATTRIBUTE}]`);
54
133
  if (action != null && container.contains(action)) return false;
134
+ const owner = innermostInteractive(target, container);
135
+ const control = owner == null ? null : labelledControl(owner);
136
+ if (control != null) {
137
+ if (container.querySelector(`[data-astryx-press-action]`)?.contains(control) === true) return false;
138
+ }
55
139
  return hasInteractiveAncestor(target, container);
56
140
  }
57
141
  /**
@@ -237,4 +321,4 @@ function takeOver(other, element) {
237
321
  if (other.live?.element === element) finish(other);
238
322
  }
239
323
  //#endregion
240
- export { finish as a, pressFadeMs as c, PRESS_CONTAINER_ATTRIBUTE as d, PRESS_GROUP_ITEM_ATTRIBUTE as f, setPressHeld as h, finger as i, PRESSABLE_ATTRIBUTE as l, pressSurfaceAt as m, apply as n, releaseIfDead as o, isTrackedByGroup as p, button as r, takeOver as s, PRESSED_ATTRIBUTE as t, PRESS_ACTION_ATTRIBUTE as u };
324
+ export { hasTextSelection as _, finish as a, pressFadeMs as c, PRESS_CONTAINER_ATTRIBUTE as d, PRESS_GROUP_ITEM_ATTRIBUTE as f, hasInteractiveAncestor as g, setPressHeld as h, finger as i, PRESSABLE_ATTRIBUTE as l, pressSurfaceAt as m, apply as n, releaseIfDead as o, isTrackedByGroup as p, button as r, takeOver as s, PRESSED_ATTRIBUTE as t, PRESS_ACTION_ATTRIBUTE as u, useClickableContainer as v };
@@ -0,0 +1,43 @@
1
+ import { t as SCROLLABLE_OVERFLOW } from "./scrollView-BGBtu5JP.js";
2
+ import { a as isTabStop, t as FOCUSABLE_SELECTOR } from "./focus-DxAD3umZ.js";
3
+ //#region src/layer/revealReturnTarget.ts
4
+ /**
5
+ * 焦点归还后把打开者露出来(上游 utils/focusReturn.ts 的 `revealReturnTarget`)。
6
+ *
7
+ * 归还焦点本身不滚动页面。打开者是 Tab 能到的控件、放得进可见区域、却被页面滚出了
8
+ * 视野(或只露出一部分)时,把它滚到最近的边上,键盘用户能看见焦点在哪。
9
+ *
10
+ * 不是 Tab 停靠点的目标不滚:WebKit 会把轻点按钮时最近的可聚焦祖先(比如
11
+ * `tabindex="-1"` 的主区域)记成打开者,滚到它会把页面卷回那个区域的顶边。
12
+ * 比可见区域还大的目标、被 `overflow: hidden` 裁掉的目标也不滚。
13
+ */
14
+ function fitsVisibleArea(element) {
15
+ const doc = element.ownerDocument;
16
+ const view = doc.defaultView;
17
+ if (view == null) return false;
18
+ const box = element.getBoundingClientRect();
19
+ const viewport = view.visualViewport;
20
+ if (box.width > (viewport?.width ?? view.innerWidth) || box.height > (viewport?.height ?? view.innerHeight)) return false;
21
+ let shown = box;
22
+ for (let scroller = element.parentElement; scroller != null; scroller = scroller.parentElement) {
23
+ const style = view.getComputedStyle(scroller);
24
+ const scrollsX = SCROLLABLE_OVERFLOW.has(style.overflowX);
25
+ const scrollsY = SCROLLABLE_OVERFLOW.has(style.overflowY);
26
+ if (scrollsX && box.width > scroller.clientWidth || scrollsY && box.height > scroller.clientHeight) return false;
27
+ if (scroller === doc.documentElement || scroller === doc.body) continue;
28
+ const clip = scroller.getBoundingClientRect();
29
+ if (style.overflowX === "hidden" && (shown.left < clip.left || shown.right > clip.right) || style.overflowY === "hidden" && (shown.top < clip.top || shown.bottom > clip.bottom)) return false;
30
+ if (scrollsX || scrollsY) shown = clip;
31
+ }
32
+ return true;
33
+ }
34
+ /** 焦点在 `element` 上、它是 Tab 停靠点并且放得进可见区域时,把它滚到最近的边上。 */
35
+ function revealReturnTarget(element) {
36
+ if (element.ownerDocument.activeElement !== element || !element.matches(FOCUSABLE_SELECTOR) || !isTabStop(element) || typeof element.scrollIntoView !== "function" || !fitsVisibleArea(element)) return;
37
+ element.scrollIntoView({
38
+ block: "nearest",
39
+ inline: "nearest"
40
+ });
41
+ }
42
+ //#endregion
43
+ export { revealReturnTarget as t };
@@ -1,4 +1,4 @@
1
- import { t as FOCUSABLE_SELECTOR } from "./focus-x7mxEqjR.js";
1
+ import { t as FOCUSABLE_SELECTOR } from "./focus-DxAD3umZ.js";
2
2
  import { o as isScrollCapableOverflow } from "./scrollGeometry-ajfQQRJt.js";
3
3
  //#region src/composables/internal/scrollOwnerRegistry.ts
4
4
  const owners = /* @__PURE__ */ new WeakMap();
@@ -21,6 +21,17 @@ function textDirection(content) {
21
21
  if (typeof content !== "string" && typeof content !== "number") return void 0;
22
22
  return hasStrongRightToLeft(String(content)) ? void 0 : "ltr";
23
23
  }
24
+ /** 从左到右隔离(LRI,U+2066)和弹出隔离(PDI,U+2069)。 */
25
+ const LEFT_TO_RIGHT_ISOLATE = "⁦";
26
+ const POP_DIRECTIONAL_ISOLATE = "⁩";
27
+ /**
28
+ * 只能交出一段纯文字、没法给装文字的元素标 `dir` 的地方(例如一个只收字符串的气泡)用:
29
+ * `textDirection` 答 `'ltr'` 的文字包进一对从左到右的隔离符,等同于套一层 `dir="ltr"` 的 span。
30
+ * 只改文字的排列顺序,不改对齐。空字符串原样返回。
31
+ */
32
+ function isolateTextDirection(text) {
33
+ return text === "" || textDirection(text) !== "ltr" ? text : `${LEFT_TO_RIGHT_ISOLATE}${text}${POP_DIRECTIONAL_ISOLATE}`;
34
+ }
24
35
  const LETTER = unicodeRegExp("\\p{Letter}");
25
36
  /** 文字里有没有不是右到左的字母。数字和标点不算,所以 "דוח 2026" 仍算一种文字。 */
26
37
  function hasStrongLeftToRight(text) {
@@ -57,4 +68,4 @@ function plainSlotText(nodes) {
57
68
  return text;
58
69
  }
59
70
  //#endregion
60
- export { textDirection as i, cutTextDirection as n, plainSlotText as r, CUT_TEXT_PAGE_ALIGN_CLASS as t };
71
+ export { textDirection as a, plainSlotText as i, cutTextDirection as n, isolateTextDirection as r, CUT_TEXT_PAGE_ALIGN_CLASS as t };
@@ -1,7 +1,7 @@
1
1
  import { i as isTopLayer, n as useLayerDepth, o as pushLayer } from "./layerDepth-DxI-GE81.js";
2
2
  import { t as matchesFocusVisible } from "./tooltipTriggerRules-BjnT3wIz.js";
3
3
  import { s as isTextEntryControl, t as getInteractionModality } from "./interactionModality-4Km2ibsq.js";
4
- import { i as isFocusable } from "./focus-x7mxEqjR.js";
4
+ import { i as isFocusable } from "./focus-DxAD3umZ.js";
5
5
  import { onScopeDispose } from "vue";
6
6
  //#region src/layer/useHoverLayerDismiss.ts
7
7
  /**
@@ -1,8 +1,8 @@
1
1
  import { n as msSinceInput } from "./inputAge-C-SoLwpD.js";
2
2
  import { n as isInsideScrollView } from "./scrollView-BGBtu5JP.js";
3
- import { i as createActionGroupTracker, o as resolveGroupTouch, r as GROUP_PRESS_POINTERS } from "./useTouchHitArea-DUezWadK.js";
3
+ import { i as createActionGroupTracker, o as resolveGroupTouch, r as GROUP_PRESS_POINTERS } from "./useTouchHitArea-DCAX0X6S.js";
4
4
  import { i as PRESS_SLOP_PX, n as PRESS_ONSET_MS } from "./pressGesture-VrM5-7aV.js";
5
- import { f as PRESS_GROUP_ITEM_ATTRIBUTE, p as isTrackedByGroup } from "./pressSlot-DIN1AmiA.js";
5
+ import { f as PRESS_GROUP_ITEM_ATTRIBUTE, p as isTrackedByGroup } from "./pressSlot-BxYt3vyU.js";
6
6
  import { getCurrentScope, onScopeDispose, toValue, watch } from "vue";
7
7
  //#region src/composables/internal/useActionGroupTracking.ts
8
8
  const DISABLED = ":disabled, [aria-disabled=\"true\"]";
@@ -1,7 +1,8 @@
1
1
  import { t as isImeKeyEvent } from "./ime-VY8-80S8.js";
2
2
  import { a as trackInteractionModality } from "./interactionModality-4Km2ibsq.js";
3
- import { i as hasInnerRegionHolding, n as collapseRadioGroups, o as precedes, r as focusablesIn, s as registerRegion, t as attemptFocus } from "./focusRegion-CmDg7_4b.js";
4
- import { t as focusForLastInput } from "./focusReturn-BeSRm0xD.js";
3
+ import { a as isTabStop } from "./focus-DxAD3umZ.js";
4
+ import { i as hasInnerRegionHolding, n as collapseRadioGroups, o as precedes, r as focusablesIn, s as registerRegion, t as attemptFocus } from "./focusRegion-0I3hsblQ.js";
5
+ import { t as focusForLastInput } from "./focusReturn-CXHM5lOY.js";
5
6
  import { onScopeDispose, ref, toValue, watch } from "vue";
6
7
  //#region src/composables/useFocusTrap.ts
7
8
  /**
@@ -37,9 +38,15 @@ function useFocusTrap(options = {}) {
37
38
  const el = containerRef.value;
38
39
  return el != null && event.target instanceof Node && el.contains(event.target);
39
40
  }
40
- /** 把焦点绕到 `target`,只有焦点真的过去了才拦下这次 Tab;被拒绝时(被上层模态盖住)交给浏览器。 */
41
+ /**
42
+ * 把焦点绕到 `target`,只有焦点真的动了才拦下这次 Tab;被拒绝时(被上层模态盖住)交给浏览器。
43
+ * 目标可能在自己的 focus 处理里把焦点再转给别的元素,那也算动了。
44
+ */
41
45
  function wrapFocus(event, target) {
42
- if (target != null && attemptFocus(target)) event.preventDefault();
46
+ if (target == null) return;
47
+ const doc = target.ownerDocument;
48
+ const before = doc.activeElement;
49
+ if (attemptFocus(target) || doc.activeElement !== before) event.preventDefault();
43
50
  }
44
51
  function onEscapeKeyDown(event) {
45
52
  if (!isActive() || event.key !== "Escape") return;
@@ -55,7 +62,7 @@ function useFocusTrap(options = {}) {
55
62
  const active = trapDocument()?.activeElement ?? null;
56
63
  if (el == null || active == null || !el.contains(active)) return;
57
64
  if (hasInnerRegionHolding(el, active)) return;
58
- const focusables = focusablesIn(el);
65
+ const focusables = focusablesIn(el).filter(isTabStop);
59
66
  if (focusables.length === 0) {
60
67
  event.preventDefault();
61
68
  return;
@@ -1,4 +1,4 @@
1
- import { i as useClickableContainer } from "./useClickableContainer-Dtjg-nkm.js";
1
+ import { v as useClickableContainer } from "./pressSlot-BxYt3vyU.js";
2
2
  import { toValue } from "vue";
3
3
  //#region src/composables/useInputContainer.ts
4
4
  /** 点了以后接焦点的输入框类型:这些类型自己不会因为点击容器而聚焦。 */
@@ -1,5 +1,5 @@
1
1
  import { t as _sfc_main } from "./FieldIcon-C6A69-um.js";
2
- import { t as _sfc_main$1 } from "./FieldInfoTip-ns5DSY2R.js";
2
+ import { t as _sfc_main$1 } from "./FieldInfoTip-C2jNfn3M.js";
3
3
  import { computed, toValue } from "vue";
4
4
  //#region src/composables/useInputStatusIcon.ts
5
5
  /**
@@ -1,4 +1,4 @@
1
- import { t as holdEntranceInput } from "./holdEntranceInput-CxiwxRdS.js";
1
+ import { t as holdEntranceInput } from "./holdEntranceInput-C9J7g1Pu.js";
2
2
  import { nextTick, onBeforeUnmount, watch } from "vue";
3
3
  //#region src/layer/useMenuEntranceHold.ts
4
4
  /**
@@ -1,7 +1,7 @@
1
1
  import { n as msSinceInput } from "./inputAge-C-SoLwpD.js";
2
2
  import { i as withoutClickGuard, r as disarmEveryClickGuard, t as armClickGuard } from "./clickGuard-CdmRG-4c.js";
3
3
  import { s as currentGesture } from "./layerDepth-DxI-GE81.js";
4
- import { t as focusForLastInput } from "./focusReturn-BeSRm0xD.js";
4
+ import { t as focusForLastInput } from "./focusReturn-CXHM5lOY.js";
5
5
  import { t as claimPress } from "./pressClaim-DvdlIn4w.js";
6
6
  import { r as isInputShield } from "./inputHoldState-B4uHEjk5.js";
7
7
  import { getCurrentScope, onScopeDispose, toValue } from "vue";
@@ -3,7 +3,7 @@ import { n as isInsideScrollView } from "./scrollView-BGBtu5JP.js";
3
3
  import { s as subscribeInput } from "./inputStream-CFvjNDgT.js";
4
4
  import { s as UIKIT_PRESS } from "./gestures-BpGkqgpV.js";
5
5
  import { a as idlePressGesture, o as pressGestureStep, r as PRESS_SCROLL_BRAKE_MS } from "./pressGesture-VrM5-7aV.js";
6
- import { a as finish, d as PRESS_CONTAINER_ATTRIBUTE, i as finger, l as PRESSABLE_ATTRIBUTE, m as pressSurfaceAt, n as apply, o as releaseIfDead, p as isTrackedByGroup, r as button, s as takeOver, u as PRESS_ACTION_ATTRIBUTE } from "./pressSlot-DIN1AmiA.js";
6
+ import { a as finish, d as PRESS_CONTAINER_ATTRIBUTE, i as finger, l as PRESSABLE_ATTRIBUTE, m as pressSurfaceAt, n as apply, o as releaseIfDead, p as isTrackedByGroup, r as button, s as takeOver, u as PRESS_ACTION_ATTRIBUTE } from "./pressSlot-BxYt3vyU.js";
7
7
  import { getCurrentInstance, getCurrentScope, onMounted, onScopeDispose } from "vue";
8
8
  import "../styles/pressable.css";
9
9
  //#region src/composables/internal/pressButton.ts
@@ -18,6 +18,34 @@ const KEY_ALIASES = {
18
18
  return: "enter",
19
19
  plus: "+"
20
20
  };
21
+ /** 标点键不按 shift 时敲出的字符对应的 `event.code`。 */
22
+ const PUNCTUATION_CODES = {
23
+ ",": "Comma",
24
+ ".": "Period",
25
+ "/": "Slash",
26
+ ";": "Semicolon",
27
+ "'": "Quote",
28
+ "[": "BracketLeft",
29
+ "]": "BracketRight",
30
+ "\\": "Backslash",
31
+ "-": "Minus",
32
+ "=": "Equal",
33
+ "`": "Backquote"
34
+ };
35
+ /** 美式布局上敲出 `key` 的物理键(`event.code`);字母、数字、标点、空格之外的键返回 null。 */
36
+ function physicalKeyCode(key) {
37
+ if (key === " ") return "Space";
38
+ if (/^[a-z]$/.test(key)) return `Key${key.toUpperCase()}`;
39
+ if (/^\d$/.test(key)) return `Digit${key}`;
40
+ return PUNCTUATION_CODES[key] ?? null;
41
+ }
42
+ /**
43
+ * Option 死键(macOS 上的 Option+E)。有的浏览器会给它报输入法的 keyCode 229,
44
+ * 但它在这里并没有开始拼字,带 alt 的组合仍然可以命中它。正在输入框里拼字的死键不算。
45
+ */
46
+ function isOptionDeadKey(event) {
47
+ return event.key === "Dead" && event.altKey && event.isComposing !== true;
48
+ }
21
49
  function isTypingTarget(target) {
22
50
  if (!(target instanceof HTMLElement)) return false;
23
51
  if (target.isContentEditable) return true;
@@ -39,7 +67,9 @@ function matchesCombo(keys, event, isApple) {
39
67
  if (event.altKey !== wantsAlt) return false;
40
68
  if (wantsShift && !event.shiftKey) return false;
41
69
  const expected = KEY_ALIASES[key] ?? key;
42
- return event.key.toLowerCase() === expected;
70
+ if (event.key.toLowerCase() === expected) return true;
71
+ const isRewrittenByOption = event.key === "Dead" || event.key.length === 1 && event.key.charCodeAt(0) > 126;
72
+ return isApple && wantsAlt && isRewrittenByOption && event.code !== "" && event.code === physicalKeyCode(expected);
43
73
  }
44
74
  /**
45
75
  * 对应原版 Astryx 的 `hooks/useHotkeys`。
@@ -57,7 +87,7 @@ function useHotkeys(hotkeys) {
57
87
  if (typeof window === "undefined" || stop != null) return;
58
88
  const isApple = isApplePlatform();
59
89
  function handleKeyDown(event) {
60
- if (event.defaultPrevented || isImeKeyEvent(event)) return;
90
+ if (event.defaultPrevented || isImeKeyEvent(event) && !isOptionDeadKey(event)) return;
61
91
  const isTyping = isTypingTarget(event.target);
62
92
  for (const hotkey of toValue(hotkeys)) {
63
93
  if (hotkey.isDisabled) continue;
@@ -1,5 +1,6 @@
1
1
  import { a as trackInteractionModality } from "./interactionModality-4Km2ibsq.js";
2
- import { t as focusForLastInput } from "./focusReturn-BeSRm0xD.js";
2
+ import { t as focusForLastInput } from "./focusReturn-CXHM5lOY.js";
3
+ import { t as revealReturnTarget } from "./revealReturnTarget-DNX6xtLb.js";
3
4
  import { onScopeDispose, watch } from "vue";
4
5
  //#region src/composables/useRestoreFocus.ts
5
6
  /**
@@ -19,7 +20,10 @@ function useRestoreFocus(options) {
19
20
  }
20
21
  function restore() {
21
22
  if (!isEnabled.value || !savedElement) return;
22
- if (savedElement.isConnected && !savedElement.hasAttribute("disabled")) focusForLastInput(savedElement, options.preventScroll === true ? { preventScroll: true } : void 0);
23
+ if (savedElement.isConnected && !savedElement.hasAttribute("disabled")) {
24
+ focusForLastInput(savedElement, options.preventScroll === true ? { preventScroll: true } : void 0);
25
+ if (options.preventScroll === true) revealReturnTarget(savedElement);
26
+ }
23
27
  savedElement = null;
24
28
  }
25
29
  watch(shouldRestore, (should) => {
@@ -1,5 +1,5 @@
1
1
  import { a as isMeasurable, d as measureScrollPosition, i as getLogicalAxisMapping, l as measureOverflow, n as INACTIVE_AXIS_STATE, r as axisStatesEqual, s as mappingsEqual, t as DEFAULT_AXIS_MAPPING, u as measureScrollAxis } from "./scrollGeometry-ajfQQRJt.js";
2
- import { n as registerScrollOwner, r as unregisterScrollOwner, t as attachScrollKeyboardDelegation } from "./scrollKeyboardDelegation-COtRAAWq.js";
2
+ import { n as registerScrollOwner, r as unregisterScrollOwner, t as attachScrollKeyboardDelegation } from "./scrollKeyboardDelegation-C8MwNYgK.js";
3
3
  import { computed, onBeforeUnmount, ref, shallowRef, watch } from "vue";
4
4
  //#region src/composables/internal/scrollInvalidation.ts
5
5
  const MEASURE_PROPERTIES = [
@@ -1,13 +1,13 @@
1
1
  import { a as holdMouseMoves, o as isMouseMove } from "./inputStream-CFvjNDgT.js";
2
- import { s as registerLayerSurface } from "./useClickableContainer-Dtjg-nkm.js";
2
+ import { o as registerLayerSurface } from "./interactiveAncestor-CEsQ_YQW.js";
3
3
  import { r as visibleText } from "./cutText-Cg1a7iug.js";
4
4
  import { r as useResolvedLayerTeleport } from "./useLayerMountTarget-zwZQglr2.js";
5
5
  import { n as useLayer } from "./tooltipTriggerRules-BjnT3wIz.js";
6
6
  import { t as _sfc_main$1 } from "./LayerContentBoundary-CMjCvF35.js";
7
7
  import { a as trackInteractionModality } from "./interactionModality-4Km2ibsq.js";
8
8
  import { t as useAnnounce } from "./announce-GU01Oix2.js";
9
- import { t as useTouchTriggerInternal } from "./useTouchTriggerInternal-B9YsuMRa.js";
10
- import { n as opensOnFocus, r as useHoverLayerDismiss, t as createFocusGate } from "./tooltipFocusRules-D468Tl5q.js";
9
+ import { t as useTouchTriggerInternal } from "./useTouchTriggerInternal-CCk8lhbz.js";
10
+ import { n as opensOnFocus, r as useHoverLayerDismiss, t as createFocusGate } from "./tooltipFocusRules-BBshpLxm.js";
11
11
  import { t as renderedText } from "./renderedText-BwJdmps3.js";
12
12
  import { Teleport, computed, createBlock, createCommentVNode, createElementBlock, createTextVNode, createVNode, defineComponent, inject, mergeProps, onMounted, onScopeDispose, openBlock, renderSlot, shallowRef, toDisplayString, toValue, unref, vShow, watch, withCtx, withDirectives } from "vue";
13
13
  import "../styles/tooltip.css";
@@ -1,5 +1,5 @@
1
1
  import { t as armClickGuard } from "./clickGuard-CdmRG-4c.js";
2
- import { c as pressFadeMs, f as PRESS_GROUP_ITEM_ATTRIBUTE, p as isTrackedByGroup, t as PRESSED_ATTRIBUTE } from "./pressSlot-DIN1AmiA.js";
2
+ import { c as pressFadeMs, f as PRESS_GROUP_ITEM_ATTRIBUTE, p as isTrackedByGroup, t as PRESSED_ATTRIBUTE } from "./pressSlot-BxYt3vyU.js";
3
3
  import { toValue, watch } from "vue";
4
4
  import "../styles/touch-hit-area.css";
5
5
  /** 不长:热区就是目标本身。 */
@@ -1,4 +1,4 @@
1
- import { t as INTERACTIVE_SELECTORS } from "./useClickableContainer-Dtjg-nkm.js";
1
+ import { t as INTERACTIVE_SELECTORS } from "./interactiveAncestor-CEsQ_YQW.js";
2
2
  import { s as currentGesture } from "./layerDepth-DxI-GE81.js";
3
3
  import { a as trackInteractionModality, i as isTextEntrySincePointer, o as isDisabledControl, s as isTextEntryControl } from "./interactionModality-4Km2ibsq.js";
4
4
  import { onScopeDispose, ref, toValue, watch } from "vue";
@@ -1,7 +1,7 @@
1
1
  import { t as matchesFocusVisible } from "./tooltipTriggerRules-BjnT3wIz.js";
2
2
  import { a as trackInteractionModality, t as getInteractionModality } from "./interactionModality-4Km2ibsq.js";
3
- import { r as tooltipPresentInterestKey } from "./useTooltip-CJKLcg2f.js";
4
- import { t as _sfc_main$1 } from "./Tooltip-CSF5F0QB.js";
3
+ import { r as tooltipPresentInterestKey } from "./useTooltip-CYRQuYj_.js";
4
+ import { t as _sfc_main$1 } from "./Tooltip-BGw1Dxs7.js";
5
5
  import { n as useTruncation, t as truncatePlacement } from "./useTruncation-D_T-ezdp.js";
6
6
  import { computed, createBlock, createCommentVNode, defineComponent, openBlock, provide, shallowRef } from "vue";
7
7
  //#region src/Text/TruncationTooltip.vue
@@ -4,7 +4,7 @@ import { t as devWarn } from "./useDevWarning-B2fsk2B-.js";
4
4
  import { t as useAnnounce } from "./announce-GU01Oix2.js";
5
5
  import { n as useAsyncSource } from "./useAsyncSource-7GTcK8ep.js";
6
6
  import { t as useCombobox } from "./useCombobox-BbDP75hw.js";
7
- import { t as _sfc_main$3 } from "./Spinner-D6U81W87.js";
7
+ import { t as _sfc_main$3 } from "./Spinner-A3u6UMC2.js";
8
8
  import { t as createStillPointerGate } from "./stillPointerGate-D15jGSjP.js";
9
9
  import { i as isOptionAction, n as searchResultMessage, r as OptionAction, t as useOptionActionGrid } from "./useOptionActionGrid-C7ibYM_A.js";
10
10
  import { Fragment, Teleport, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, guardReactiveProps, h, mergeProps, nextTick, normalizeClass, normalizeProps, normalizeStyle, openBlock, ref, renderList, renderSlot, toDisplayString, toValue, unref, useSlots, useTemplateRef, vShow, watch, withCtx, withDirectives, withModifiers } from "vue";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@astryx-vue/core",
3
3
  "type": "module",
4
- "version": "0.43.1",
4
+ "version": "0.43.2",
5
5
  "description": "Vue 3 components for the unofficial astryx-vue port of Astryx. Not affiliated with Meta.",
6
6
  "author": "ShenQingchuan",
7
7
  "license": "MIT",
@@ -20,6 +20,24 @@
20
20
  pointer-events: none;
21
21
  }
22
22
 
23
+ /* 提示淡入淡出 150ms。精细指针下打开「减弱动态效果」时直接出现、直接消失;手指下照常淡入淡出。 */
24
+ .astryx-keyboard-hint-enter-active,
25
+ .astryx-keyboard-hint-leave-active {
26
+ transition: opacity 150ms;
27
+ }
28
+
29
+ .astryx-keyboard-hint-enter-from,
30
+ .astryx-keyboard-hint-leave-to {
31
+ opacity: 0;
32
+ }
33
+
34
+ @media (prefers-reduced-motion: reduce) and (not (pointer: coarse)) {
35
+ .astryx-keyboard-hint-enter-active,
36
+ .astryx-keyboard-hint-leave-active {
37
+ transition-duration: 0s;
38
+ }
39
+ }
40
+
23
41
  .astryx-keyboard-hint__keys {
24
42
  display: inline-flex;
25
43
  align-items: center;
@@ -1,19 +0,0 @@
1
- import { nextTick, watch } from "vue";
2
- //#region src/composables/internal/focusAcrossSwap.ts
3
- /**
4
- * 切换 `swapped` 会让 `root` 里某个元素被换成另一个元素(比如禁用后用普通
5
- * `<a>` 代替路由链接组件)。切换前焦点就在它身上的话,换完后把焦点交给新元素,
6
- * 不让它掉回页面;焦点本来在别处则不去抢。
7
- */
8
- function useFocusAcrossSwap(root, selector, swapped) {
9
- watch(swapped, () => {
10
- const before = root()?.querySelector(selector) ?? null;
11
- if (before == null || before.ownerDocument.activeElement !== before) return;
12
- nextTick(() => {
13
- const after = root()?.querySelector(selector);
14
- if (after != null && after !== before) after.focus({ preventScroll: true });
15
- });
16
- }, { flush: "pre" });
17
- }
18
- //#endregion
19
- export { useFocusAcrossSwap as t };