@astryx-vue/core 0.43.0 → 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 (320) hide show
  1. package/dist/AlertDialog/index.js +1 -1
  2. package/dist/{AlertDialog-r9VdV_oH.js → AlertDialog-Bh3uhS_R.js} +7 -7
  3. package/dist/AppShell/index.d.ts +1 -1
  4. package/dist/AppShell/index.js +1 -1
  5. package/dist/{AppShell-CLi6skwa.js → AppShell-1gvAIOLH.js} +3 -3
  6. package/dist/Avatar/index.js +1 -1
  7. package/dist/{Avatar-Dl2oiG7t.js → Avatar-B9n7-kfv.js} +1 -1
  8. package/dist/AvatarGroup/index.d.ts +1 -1
  9. package/dist/AvatarGroup/index.js +1 -1
  10. package/dist/{AvatarGroup-BvJTbvr_.js → AvatarGroup-BOkvPhXj.js} +1 -1
  11. package/dist/Badge/index.js +1 -1
  12. package/dist/{Badge-D3ZreOKp.js → Badge-DZaIs3aV.js} +1 -1
  13. package/dist/Banner/index.d.ts +1 -1
  14. package/dist/Banner/index.js +1 -1
  15. package/dist/{Banner-u7GJQV3O.js → Banner-4FQsRu7N.js} +1 -1
  16. package/dist/BottomSheet/index.d.ts +1 -1
  17. package/dist/BottomSheet/index.js +2 -2
  18. package/dist/{BottomSheet-C65IqXMQ.js → BottomSheet-BlkSIOtf.js} +2 -2
  19. package/dist/{BottomSheet-CY-dU3F5.js → BottomSheet-j5app7P8.js} +4 -4
  20. package/dist/Breadcrumbs/index.js +2 -2
  21. package/dist/{Breadcrumbs-D_GhNvfK.js → Breadcrumbs-BfSV4Ewm.js} +1 -1
  22. package/dist/Button/index.d.ts +1 -1
  23. package/dist/Button/index.js +1 -1
  24. package/dist/{Button-D8vn_DnZ.js → Button-euzAB2JG.js} +4 -42
  25. package/dist/ButtonGroup/index.d.ts +1 -1
  26. package/dist/ButtonGroup/index.js +1 -1
  27. package/dist/{ButtonGroup-Bt7UZF_U.js → ButtonGroup-DfNW3nfJ.js} +2 -2
  28. package/dist/Calendar/index.d.ts +1 -1
  29. package/dist/Card/index.d.ts +1 -1
  30. package/dist/Carousel/index.d.ts +1 -1
  31. package/dist/Carousel/index.js +1 -1
  32. package/dist/{Carousel-BE-PqpOJ.js → Carousel-DbMleN6W.js} +1 -1
  33. package/dist/Chat/index.d.ts +1 -1
  34. package/dist/Chat/index.js +1 -1
  35. package/dist/{Chat-D_CxKvTw.js → Chat-CWCbGUYl.js} +10 -10
  36. package/dist/CheckboxInput/index.d.ts +1 -1
  37. package/dist/CheckboxInput/index.js +1 -1
  38. package/dist/{CheckboxInput-CiSb9VDk.js → CheckboxInput-B82_RIxf.js} +4 -4
  39. package/dist/CheckboxList/index.d.ts +1 -1
  40. package/dist/CheckboxList/index.js +1 -1
  41. package/dist/{CheckboxListItem-BwGzAz8V.js → CheckboxListItem-y0USbTgg.js} +5 -5
  42. package/dist/ClickableCard/index.d.ts +1 -1
  43. package/dist/ClickableCard/index.js +1 -1
  44. package/dist/{ClickableCard-Dkt25nJP.js → ClickableCard-CSSIVdtX.js} +2 -2
  45. package/dist/Code/index.js +2 -2
  46. package/dist/{Code-Cnk4QmuK.js → Code-C43i8FCX.js} +1 -1
  47. package/dist/{CodeBlock-PuLo1vOn.js → CodeBlock-ClzdGw3T.js} +2 -2
  48. package/dist/Collapsible/index.d.ts +1 -1
  49. package/dist/Collapsible/index.js +1 -1
  50. package/dist/{Collapsible-DqEriJMb.js → Collapsible-B0Iu6_Iu.js} +2 -2
  51. package/dist/CommandPalette/index.d.ts +1 -1
  52. package/dist/CommandPalette/index.js +1 -1
  53. package/dist/{CommandPalette-BdfvSd8U.js → CommandPalette-DF2xzlgf.js} +3 -3
  54. package/dist/ComplexSelector/index.js +1 -1
  55. package/dist/{ComplexSelector-QpUODnLj.js → ComplexSelector-DsGwWEoM.js} +3 -3
  56. package/dist/ContextMenu/index.d.ts +1 -1
  57. package/dist/ContextMenu/index.js +2 -2
  58. package/dist/{ContextMenu-BebiNEFX.js → ContextMenu-CJCpkIHr.js} +5 -5
  59. package/dist/DateInput/index.d.ts +1 -1
  60. package/dist/DateInput/index.js +1 -1
  61. package/dist/{DateInput-B1C1bpAH.js → DateInput-BW4Fwe7h.js} +5 -5
  62. package/dist/DateRangeInput/index.d.ts +1 -1
  63. package/dist/DateRangeInput/index.js +1 -1
  64. package/dist/{DateRangeInput-ByHRQ-Is.js → DateRangeInput-DQBgDw_I.js} +4 -4
  65. package/dist/DateTimeInput/index.d.ts +1 -1
  66. package/dist/DateTimeInput/index.js +1 -1
  67. package/dist/{DateTimeInput-DkFcxpoJ.js → DateTimeInput-DwErM5ri.js} +6 -6
  68. package/dist/Dialog/index.d.ts +1 -1
  69. package/dist/Dialog/index.js +3 -3
  70. package/dist/{Dialog-CgnIHMCI.js → Dialog-Cjw_hc9x.js} +4 -5
  71. package/dist/{Dialog-zqsAwjle.js → Dialog-JfrLWdwL.js} +1 -1
  72. package/dist/{DialogHeader-BpQQMQcb.js → DialogHeader-74IISHta.js} +1 -1
  73. package/dist/Divider/index.d.ts +1 -1
  74. package/dist/Drawer/index.d.ts +1 -1
  75. package/dist/Drawer/index.js +1 -1
  76. package/dist/{Drawer-CWL0fCGw.js → Drawer-CsZ2dJf6.js} +4 -4
  77. package/dist/DropdownMenu/index.js +2 -2
  78. package/dist/{DropdownMenu-Sb9A2F_S.js → DropdownMenu-BAgNL3vt.js} +17 -17
  79. package/dist/EmptyState/index.js +1 -1
  80. package/dist/{EmptyState-B57OV1V_.js → EmptyState-Cb2poVS1.js} +3 -3
  81. package/dist/Field/index.js +3 -3
  82. package/dist/{Field-jM0Ithrd.js → Field-CZGZMsZE.js} +1 -1
  83. package/dist/{FieldInfoTip-BrxcbuTn.js → FieldInfoTip-C2jNfn3M.js} +4 -2
  84. package/dist/{FieldLabel-BmjvZVOQ.js → FieldLabel-CS5Xq97O.js} +1 -1
  85. package/dist/FileInput/index.js +1 -1
  86. package/dist/{FileInput-Bb6LdXY1.js → FileInput-DwQ4Pwrr.js} +4 -4
  87. package/dist/{GestureHost-DXlDxyns.js → GestureHost-25aSFM1Y.js} +2 -2
  88. package/dist/Heading/index.js +1 -1
  89. package/dist/{Heading-Cymy5utP.js → Heading-BxUBgmHB.js} +1 -1
  90. package/dist/HoverCard/index.d.ts +1 -1
  91. package/dist/HoverCard/index.js +1 -1
  92. package/dist/{HoverCard-BmehvS0D.js → HoverCard-B8q3MpjF.js} +3 -3
  93. package/dist/IconButton/index.js +1 -1
  94. package/dist/{IconButton-BdXfxjCD.js → IconButton-ClmH02vt.js} +1 -1
  95. package/dist/InfoTip/index.d.ts +1 -1
  96. package/dist/InfoTip/index.js +1 -1
  97. package/dist/{InfoTip-BCOxwsJ4.js → InfoTip-BaWAyvEi.js} +2 -2
  98. package/dist/{InputClearButton-Dp87bq1c.js → InputClearButton-fffY0HzH.js} +1 -1
  99. package/dist/InputGroup/index.d.ts +1 -1
  100. package/dist/InputGroup/index.js +1 -1
  101. package/dist/{InputGroup-CsEB0Ufk.js → InputGroup-D9sOFuMU.js} +2 -2
  102. package/dist/{Item-DOATMVXE.js → Item-Dmebq1UF.js} +17 -10
  103. package/dist/Layout/index.js +2 -2
  104. package/dist/{Layout-DdsbcT6Z.js → Layout-G_yTX__g.js} +1 -1
  105. package/dist/{LayoutPanel-0yi1xept.js → LayoutPanel-DcGI1bxe.js} +1 -1
  106. package/dist/Lightbox/index.js +1 -1
  107. package/dist/{Lightbox-CQ0sOdK4.js → Lightbox-uK7doOtN.js} +9 -9
  108. package/dist/Link/index.d.ts +1 -1
  109. package/dist/Link/index.js +1 -1
  110. package/dist/{Link-CRNgZw--.js → Link-Dqmdo7zY.js} +2 -2
  111. package/dist/List/index.d.ts +1 -1
  112. package/dist/List/index.js +4 -4
  113. package/dist/{List-CsumsvTg.js → List-Cw_Bz7VJ.js} +2 -2
  114. package/dist/{ListItem-DHpWkhT9.js → ListItem-5IrzNrPG.js} +3 -3
  115. package/dist/{LongPressGestureRecognizer-V_iVvLNU.js → LongPressGestureRecognizer-DyfS9mpX.js} +2 -2
  116. package/dist/Markdown/index.d.ts +1 -1
  117. package/dist/Markdown/index.js +1 -1
  118. package/dist/{Markdown-DwCAq1ds.js → Markdown-DgU8Z6fh.js} +3 -3
  119. package/dist/MobileNav/index.js +1 -1
  120. package/dist/{MobileNavToggle-DYKJC6X6.js → MobileNavToggle-CZjRE6ki.js} +3 -3
  121. package/dist/MoreMenu/index.d.ts +1 -1
  122. package/dist/MoreMenu/index.js +1 -1
  123. package/dist/{MoreMenu-BJqN4qQ6.js → MoreMenu-CctyrlIC.js} +6 -6
  124. package/dist/MultiSelector/index.d.ts +1 -1
  125. package/dist/MultiSelector/index.js +1 -1
  126. package/dist/{MultiSelector-BI_uF-yk.js → MultiSelector-B8gj7DC1.js} +7 -7
  127. package/dist/{NavDisclosure-D-vUD3Bl.js → NavDisclosure-B1Rk9uWm.js} +12 -0
  128. package/dist/{NavHeadingSurface-D2UWKpSw.js → NavHeadingSurface-B8vSLYn8.js} +32 -24
  129. package/dist/NavItem/index.d.ts +1 -1
  130. package/dist/NavItem/index.js +1 -1
  131. package/dist/{NavItem-BY24W2B0.js → NavItem-BSw2rt6c.js} +1 -1
  132. package/dist/NavMenu/index.d.ts +1 -1
  133. package/dist/NavMenu/index.js +3 -3
  134. package/dist/{NavMenu-DF4JqIed.js → NavMenu-CY_Lek2e.js} +18 -8
  135. package/dist/{NavMenuItem-CGGECLdG.js → NavMenuItem-CGDBoeek.js} +3 -3
  136. package/dist/NumberInput/index.d.ts +1 -1
  137. package/dist/NumberInput/index.js +1 -1
  138. package/dist/{NumberInput-DIgfEtYW.js → NumberInput-Dyrsd8iV.js} +4 -4
  139. package/dist/Outline/index.js +1 -1
  140. package/dist/{Outline-CCnTR9Pe.js → Outline-DyWV1DE6.js} +1 -1
  141. package/dist/OverflowList/index.d.ts +1 -1
  142. package/dist/OverflowList/index.js +1 -1
  143. package/dist/{OverflowList-uk0l80Zd.js → OverflowList-BjtnyyFH.js} +2 -2
  144. package/dist/Pagination/index.d.ts +1 -1
  145. package/dist/Pagination/index.js +1 -1
  146. package/dist/{Pagination-BPGgks2l.js → Pagination-DxCA-HxJ.js} +4 -4
  147. package/dist/{PanGestureRecognizer-Crc0PhW0.js → PanGestureRecognizer-BVA9pqme.js} +1 -1
  148. package/dist/{PickerWheel-WEFgBW8I.js → PickerWheel-x5H1G_XB.js} +4 -4
  149. package/dist/Popover/index.d.ts +1 -1
  150. package/dist/Popover/index.js +1 -1
  151. package/dist/{Popover-OhEtacTy.js → Popover-Bfdc7cPl.js} +12 -13
  152. package/dist/PowerSearch/index.d.ts +1 -1
  153. package/dist/PowerSearch/index.js +1 -1
  154. package/dist/{PowerSearch-DPGknVx8.js → PowerSearch-BwF9Dlxz.js} +24 -24
  155. package/dist/ProgressBar/index.js +1 -1
  156. package/dist/{ProgressBar-IRNmWLg-.js → ProgressBar-LhOowRTl.js} +1 -1
  157. package/dist/Radio/index.d.ts +1 -1
  158. package/dist/Radio/index.js +1 -1
  159. package/dist/{RadioGroup-DoI7wu5m.js → RadioGroup-CFLTQl3K.js} +5 -5
  160. package/dist/RadioList/index.d.ts +1 -1
  161. package/dist/RadioList/index.js +1 -1
  162. package/dist/{RadioListItem-Bb0ggwoG.js → RadioListItem-6vtMowgq.js} +1 -1
  163. package/dist/ScrollableArea/index.d.ts +1 -1
  164. package/dist/ScrollableArea/index.js +1 -1
  165. package/dist/{ScrollableArea-CJsSDN45.js → ScrollableArea-CBFqNcS0.js} +1 -1
  166. package/dist/SegmentedControl/index.js +1 -1
  167. package/dist/{SegmentedControl-DjruBeFm.js → SegmentedControl-CvHxmxSq.js} +7 -7
  168. package/dist/SelectableCard/index.d.ts +1 -1
  169. package/dist/SelectableCard/index.js +1 -1
  170. package/dist/{SelectableCard-dUjsGX2o.js → SelectableCard-9SSfwFyD.js} +2 -2
  171. package/dist/Selector/index.d.ts +1 -1
  172. package/dist/Selector/index.js +1 -1
  173. package/dist/{Selector-D8BEYok_.js → Selector-DLHdkU47.js} +4 -4
  174. package/dist/SideNav/index.d.ts +1 -1
  175. package/dist/SideNav/index.js +1 -1
  176. package/dist/{SideNav-BYWNIIXT.js → SideNav-UDy54LWk.js} +8 -8
  177. package/dist/Slider/index.js +1 -1
  178. package/dist/{Slider-pnFJ6MfZ.js → Slider-g5_g_-Eu.js} +5 -5
  179. package/dist/Spinner/index.js +1 -1
  180. package/dist/{Spinner-D6U81W87.js → Spinner-A3u6UMC2.js} +1 -1
  181. package/dist/Stack/index.d.ts +1 -1
  182. package/dist/StatusDot/index.js +1 -1
  183. package/dist/{StatusDot-CdtauWfk.js → StatusDot-BPbHIDK3.js} +1 -1
  184. package/dist/Stepper/index.d.ts +1 -1
  185. package/dist/Stepper/index.js +1 -1
  186. package/dist/{Stepper-BL01wjk9.js → Stepper-fAXQMCoa.js} +1 -1
  187. package/dist/Switch/index.d.ts +1 -1
  188. package/dist/Switch/index.js +1 -1
  189. package/dist/{Switch-BJ9skC9r.js → Switch-B4qQk8nJ.js} +7 -7
  190. package/dist/TabList/index.d.ts +1 -1
  191. package/dist/TabList/index.js +1 -1
  192. package/dist/{TabList-XKIbMcy5.js → TabList-DPl5hrlq.js} +2 -2
  193. package/dist/Table/index.d.ts +1 -1
  194. package/dist/Table/index.js +1 -1
  195. package/dist/{Table-DQazvJ4Q.js → Table-DcHbjYMH.js} +15 -15
  196. package/dist/{TapGestureRecognizer-Cv0y3c02.js → TapGestureRecognizer-DGoxircL.js} +2 -2
  197. package/dist/Text/index.js +1 -1
  198. package/dist/{Text-9twwURuI.js → Text-CqdqnOyw.js} +1 -1
  199. package/dist/TextArea/index.d.ts +1 -1
  200. package/dist/TextArea/index.js +1 -1
  201. package/dist/{TextArea-C66zML5G.js → TextArea-Bio9Gh34.js} +6 -6
  202. package/dist/TextInput/index.d.ts +1 -1
  203. package/dist/TextInput/index.js +1 -1
  204. package/dist/{TextInput-BGsRns-X.js → TextInput-CQnO23U5.js} +6 -6
  205. package/dist/Thumbnail/index.js +1 -1
  206. package/dist/{Thumbnail-iJILNRPc.js → Thumbnail-BDQg5fM_.js} +4 -4
  207. package/dist/{TimeField-Ct2akfr9.js → TimeField-DFQIaneq.js} +4 -4
  208. package/dist/TimeInput/index.d.ts +1 -1
  209. package/dist/TimeInput/index.js +1 -1
  210. package/dist/{TimeInput-CBVMN37Z.js → TimeInput-BMgTNmFR.js} +2 -2
  211. package/dist/Timer/index.js +1 -1
  212. package/dist/{Timer-DBujcX_B.js → Timer-CYusx9bw.js} +1 -1
  213. package/dist/Timestamp/index.d.ts +1 -1
  214. package/dist/Timestamp/index.js +1 -1
  215. package/dist/{Timestamp-Dv6_wb89.js → Timestamp-mD_zYE11.js} +3 -3
  216. package/dist/Toast/index.js +1 -1
  217. package/dist/{Toast-C3khq9NA.js → Toast-D6vNybEc.js} +5 -5
  218. package/dist/ToggleButton/index.d.ts +1 -1
  219. package/dist/ToggleButton/index.js +1 -1
  220. package/dist/{ToggleButton-fvo3Mxmb.js → ToggleButton-Dwt5c31B.js} +3 -3
  221. package/dist/Token/index.js +1 -1
  222. package/dist/{Token-B_jnJ700.js → Token-CZCvtfGU.js} +2 -2
  223. package/dist/Tokenizer/index.d.ts +1 -1
  224. package/dist/Tokenizer/index.js +1 -1
  225. package/dist/{Tokenizer-3nwPA8Az.js → Tokenizer-vIHlJqfc.js} +13 -13
  226. package/dist/Toolbar/index.d.ts +1 -1
  227. package/dist/Tooltip/index.d.ts +1 -1
  228. package/dist/Tooltip/index.js +2 -2
  229. package/dist/{Tooltip-W32cHQH0.js → Tooltip-BGw1Dxs7.js} +5 -4
  230. package/dist/TopNav/index.d.ts +1 -1
  231. package/dist/TopNav/index.js +1 -1
  232. package/dist/{TopNav-Bvjt444e.js → TopNav-B7WVftOG.js} +5 -5
  233. package/dist/TreeList/index.d.ts +1 -1
  234. package/dist/TreeList/index.js +1 -1
  235. package/dist/{TreeList-CGW9V6x-.js → TreeList-DlRkhOsr.js} +4 -4
  236. package/dist/Typeahead/index.js +2 -2
  237. package/dist/{Typeahead-KXBQ4jXf.js → Typeahead-DVSuuJF0.js} +5 -5
  238. package/dist/{accessibleName-Dpzu2nL1.js → accessibleName-JNiIpYLV.js} +2 -2
  239. package/dist/{announceRenderedText-pHs_kfQB.js → announceRenderedText-Dzsx6ROw.js} +1 -1
  240. package/dist/{assertOptions-BOwrrTT-.js → assertOptions-D4YfVTam.js} +1 -1
  241. package/dist/{boxHold-DNjO01uo.js → boxHold-BZBGNilH.js} +4 -4
  242. package/dist/{browserClickWait-Cb550_M2.js → browserClickWait-TdyeNZwb.js} +2 -2
  243. package/dist/{clickGuard-BkegH2NW.js → clickGuard-CdmRG-4c.js} +1 -1
  244. package/dist/composables/index.d.ts +1 -1
  245. package/dist/composables/index.js +14 -13
  246. package/dist/{composables-cdO2fBF6.js → composables-CpnaT0rZ.js} +35 -23
  247. package/dist/cutText-Cg1a7iug.js +40 -0
  248. package/dist/{focus-x7mxEqjR.js → focus-DxAD3umZ.js} +12 -1
  249. package/dist/focusAcrossSwap-DYmqoqKg.js +83 -0
  250. package/dist/{focusLeaving-Df0Dqr5v.js → focusLeaving-mWmyOnpz.js} +1 -1
  251. package/dist/{focusRegion-CmDg7_4b.js → focusRegion-0I3hsblQ.js} +1 -1
  252. package/dist/{focusReturn-BeSRm0xD.js → focusReturn-CXHM5lOY.js} +1 -1
  253. package/dist/{holdEntranceInput-CROBPhuO.js → holdEntranceInput-C9J7g1Pu.js} +1 -1
  254. package/dist/{index-beOIC0Qk.d.ts → index-0RIgvtdm.d.ts} +1 -1
  255. package/dist/{index-a6o69uPN.d.ts → index-Ak1b0V24.d.ts} +1 -1
  256. package/dist/{index-BB9acgK8.d.ts → index-BgT6mH3U.d.ts} +1 -1
  257. package/dist/{index-C1e8LNx2.d.ts → index-BjqoHLMq.d.ts} +1 -1
  258. package/dist/{index-Ds4dOCSy.d.ts → index-CCa_dvoF.d.ts} +3 -3
  259. package/dist/{index-BstD8W_P.d.ts → index-CFKpOpnO.d.ts} +2 -2
  260. package/dist/{index-C4S65SAW.d.ts → index-CKnr0JlT.d.ts} +1 -1
  261. package/dist/{index-BK9UUbsu.d.ts → index-CRjJmEtZ.d.ts} +4 -4
  262. package/dist/{index-Bgk1Rj2A.d.ts → index-CTjkJP4x.d.ts} +1 -1
  263. package/dist/{index-D3UaSnbN.d.ts → index-Cb-rvc1W.d.ts} +1 -1
  264. package/dist/{index-DDrL_-hJ.d.ts → index-CbA8rR_b.d.ts} +3 -3
  265. package/dist/{index-cxXrnuj3.d.ts → index-Cf4bPzU0.d.ts} +17 -9
  266. package/dist/{index-C8wfe0Mr.d.ts → index-D05JGsT3.d.ts} +1 -1
  267. package/dist/{index-CLOppj9J.d.ts → index-D8G_PdWT.d.ts} +6 -6
  268. package/dist/{index-T5bzxQ30.d.ts → index-DCyYldjP.d.ts} +1 -1
  269. package/dist/{index-vuxO2gyJ.d.ts → index-DNurYNHr.d.ts} +64 -64
  270. package/dist/{index-CAP19BZD.d.ts → index-DOlcm-Ra.d.ts} +2 -0
  271. package/dist/{index-B7Yl723I.d.ts → index-DZUoC8aR.d.ts} +5 -3
  272. package/dist/{index-B7-c8UTz.d.ts → index-DgNCHxvu.d.ts} +3 -3
  273. package/dist/{index-C5aEstRY.d.ts → index-iGHM85Y1.d.ts} +3 -3
  274. package/dist/{index-C9uW39Mj.d.ts → index-mK1ICsVg.d.ts} +3 -3
  275. package/dist/{index-BenG-F5d.d.ts → index-maTGrWjF.d.ts} +1 -1
  276. package/dist/{index-ADSpm_Dq.d.ts → index-n_U1D11_.d.ts} +8 -8
  277. package/dist/{index-ZKBj_1nu.d.ts → index-vCRf5fyK.d.ts} +1 -1
  278. package/dist/{index-ql9ApSTF.d.ts → index-yQc-te9a.d.ts} +2 -2
  279. package/dist/index.d.ts +25 -25
  280. package/dist/index.js +109 -108
  281. package/dist/{inputHold-B53XZ8if.js → inputHold-CUraoRG3.js} +3 -3
  282. package/dist/{inputHoldState-Bav14W7v.js → inputHoldState-B4uHEjk5.js} +1 -1
  283. package/dist/{inputStream-DmPkJ1aU.js → inputStream-CFvjNDgT.js} +60 -5
  284. package/dist/interactiveAncestor-CEsQ_YQW.js +81 -0
  285. package/dist/internal/touch.d.ts +12 -0
  286. package/dist/internal/touch.js +11 -10
  287. package/dist/{itemSlots-D9aPTELK.js → itemSlots-0J_JDkUW.js} +2 -2
  288. package/dist/{layerFocusReturn-Bl6yja5A.js → layerFocusReturn-Ddz5_Z2Z.js} +25 -53
  289. package/dist/{lazyBottomSheet-CXBBo9Ao.js → lazyBottomSheet-CEZ77VHB.js} +1 -1
  290. package/dist/{pressSlot-DIN1AmiA.js → pressSlot-BxYt3vyU.js} +86 -2
  291. package/dist/revealReturnTarget-DNX6xtLb.js +43 -0
  292. package/dist/{rideKeyboard-SnVXHPCp.js → rideKeyboard-DiF6K9Lm.js} +2 -2
  293. package/dist/{scrollKeyboardDelegation-COtRAAWq.js → scrollKeyboardDelegation-C8MwNYgK.js} +1 -1
  294. package/dist/{snapPagingCatcher-CQ34r-x-.js → snapPagingCatcher-BL_D9uL5.js} +1 -1
  295. package/dist/{textDirection-DJl_tYja.js → textDirection-DOiVLtX0.js} +12 -1
  296. package/dist/{tooltipFocusRules-D468Tl5q.js → tooltipFocusRules-BBshpLxm.js} +1 -1
  297. package/dist/{useActionGroupTracking-CGikRIWR.js → useActionGroupTracking-2fXeyqxa.js} +2 -2
  298. package/dist/{useChatStreamScroll-CGHtw12w.js → useChatStreamScroll-BDD_ngLq.js} +1 -1
  299. package/dist/{useFingerScroll-CC19P9JS.js → useFingerScroll-BhnBhQoa.js} +2 -2
  300. package/dist/{useFocusTrap-Bj9GskLh.js → useFocusTrap-DhhwiBEF.js} +12 -5
  301. package/dist/{useGestureRecognizer-D5kNuQzG.js → useGestureRecognizer-Bj0nynLS.js} +1 -1
  302. package/dist/{useInputContainer-CLhsKYZ6.js → useInputContainer-C8ARd4qy.js} +1 -1
  303. package/dist/{useInputStatusIcon-BW70yd3c.js → useInputStatusIcon-Dpj4AtXd.js} +1 -1
  304. package/dist/{useMenuEntranceHold-DMHMzaRW.js → useMenuEntranceHold-DYZ_k6kP.js} +1 -1
  305. package/dist/{useMenuPress-CARtL4Wa.js → useMenuPress-C1fiHACF.js} +3 -3
  306. package/dist/{useMobileKeyboard-DcvMptTe.js → useMobileKeyboard-jeeHdtVD.js} +2 -2
  307. package/dist/{usePressFeedback-DkWA1son.js → usePressFeedback-DyCf9Ok5.js} +2 -2
  308. package/dist/{useResizable-Diq3vRVH.js → useResizable-B_QakV6o.js} +32 -2
  309. package/dist/{useRestoreFocus-m3rsqE4d.js → useRestoreFocus-D04TyAC3.js} +6 -2
  310. package/dist/{useScrollableArea-i2X5vvTv.js → useScrollableArea-B3gnyFbR.js} +1 -1
  311. package/dist/{useTooltip-D5kJD9ed.js → useTooltip-CYRQuYj_.js} +125 -19
  312. package/dist/{useTouchHitArea-CxqNaIyt.js → useTouchHitArea-DCAX0X6S.js} +2 -2
  313. package/dist/{useTouchTriggerInternal-B9YsuMRa.js → useTouchTriggerInternal-CCk8lhbz.js} +1 -1
  314. package/dist/{useTruncationTooltip-Cx4R7Fyp.js → useTruncationTooltip-0gr37s_G.js} +2 -2
  315. package/dist/{useTypeaheadMenuConfig-TSkUldd9.js → useTypeaheadMenuConfig-sk8aSp57.js} +1 -1
  316. package/dist/utils/index.js +1 -1
  317. package/package.json +1 -1
  318. package/styles/keyboard-hint.css +18 -0
  319. package/dist/focusAcrossSwap-Casww_IY.js +0 -19
  320. package/dist/useClickableContainer-Dtjg-nkm.js +0 -141
@@ -1,9 +1,9 @@
1
1
  import { n as msSinceInput } from "./inputAge-C-SoLwpD.js";
2
2
  import { n as isInsideScrollView } from "./scrollView-BGBtu5JP.js";
3
- import { a as subscribeInput } from "./inputStream-DmPkJ1aU.js";
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,16 +1,19 @@
1
- import { s as registerLayerSurface } from "./useClickableContainer-Dtjg-nkm.js";
1
+ import { a as holdMouseMoves, o as isMouseMove } from "./inputStream-CFvjNDgT.js";
2
+ import { o as registerLayerSurface } from "./interactiveAncestor-CEsQ_YQW.js";
3
+ import { r as visibleText } from "./cutText-Cg1a7iug.js";
2
4
  import { r as useResolvedLayerTeleport } from "./useLayerMountTarget-zwZQglr2.js";
3
5
  import { n as useLayer } from "./tooltipTriggerRules-BjnT3wIz.js";
4
6
  import { t as _sfc_main$1 } from "./LayerContentBoundary-CMjCvF35.js";
5
7
  import { a as trackInteractionModality } from "./interactionModality-4Km2ibsq.js";
6
8
  import { t as useAnnounce } from "./announce-GU01Oix2.js";
7
- import { t as useTouchTriggerInternal } from "./useTouchTriggerInternal-B9YsuMRa.js";
8
- 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";
9
11
  import { t as renderedText } from "./renderedText-BwJdmps3.js";
10
- import { Teleport, computed, createBlock, createCommentVNode, createElementVNode, createTextVNode, createVNode, defineComponent, inject, mergeProps, onMounted, onScopeDispose, openBlock, renderSlot, shallowRef, toDisplayString, toValue, unref, vShow, watch, withCtx, withDirectives } from "vue";
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";
11
13
  import "../styles/tooltip.css";
12
14
  //#region src/Tooltip/TooltipSurface.vue
13
15
  const _hoisted_1 = ["data-placement"];
16
+ const _hoisted_2 = ["id"];
14
17
  const _sfc_main = /*@__PURE__*/ defineComponent({
15
18
  name: "AstryxTooltipSurface",
16
19
  __name: "TooltipSurface",
@@ -26,13 +29,21 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
26
29
  */
27
30
  const props = __props;
28
31
  const target = useResolvedLayerTeleport(computed(() => props.anchor));
32
+ const hasShown = shallowRef(false);
33
+ watch(() => props.tooltip.isOpen.value, (open) => {
34
+ if (open) hasShown.value = true;
35
+ }, {
36
+ immediate: true,
37
+ flush: "sync"
38
+ });
29
39
  const { contentRef } = props.tooltip;
30
40
  function setContentRef(value) {
31
41
  contentRef.value = value;
32
42
  registerLayerSurface(value);
33
43
  }
34
44
  return (_ctx, _cache) => {
35
- return openBlock(), createBlock(Teleport, { to: unref(target) }, [createCommentVNode(" eslint-disable-next-line vue-a11y/mouse-events-have-key-events, vue-a11y/no-static-element-interactions -- 气泡上的鼠标事件仅用于指针移入气泡时保持显示;键盘焦点由触发元素的 focusin / focusout 处理。 "), withDirectives(createElementVNode("div", mergeProps({
45
+ return openBlock(), createBlock(Teleport, { to: unref(target) }, [createCommentVNode(" eslint-disable-next-line vue-a11y/mouse-events-have-key-events, vue-a11y/no-static-element-interactions -- 气泡上的鼠标事件仅用于指针移入气泡时保持显示;键盘焦点由触发元素的 focusin / focusout 处理。 "), hasShown.value ? withDirectives((openBlock(), createElementBlock("div", mergeProps({
46
+ key: 0,
36
47
  ref: setContentRef,
37
48
  class: "astryx-tooltip",
38
49
  "data-placement": __props.tooltip.resolvedPlacement.value,
@@ -40,7 +51,13 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
40
51
  }, __props.tooltip.contentProps.value), [createVNode(_sfc_main$1, null, {
41
52
  default: withCtx(() => [renderSlot(_ctx.$slots, "default", {}, () => [createTextVNode(toDisplayString(__props.content), 1)])]),
42
53
  _: 3
43
- })], 16, _hoisted_1), [[vShow, __props.tooltip.isOpen.value]])], 8, ["to"]);
54
+ })], 16, _hoisted_1)), [[vShow, __props.tooltip.isOpen.value]]) : (openBlock(), createElementBlock("div", {
55
+ key: 1,
56
+ id: __props.tooltip.id,
57
+ role: "tooltip",
58
+ class: "astryx-tooltip-description",
59
+ style: { "display": "none" }
60
+ }, [renderSlot(_ctx.$slots, "default", {}, () => [createTextVNode(toDisplayString(__props.content), 1)])], 8, _hoisted_2))], 8, ["to"]);
44
61
  };
45
62
  }
46
63
  });
@@ -77,6 +94,46 @@ function listenPressEnd(onEnd) {
77
94
  return stop;
78
95
  }
79
96
  //#endregion
97
+ //#region src/Tooltip/hoverArrival.ts
98
+ /**
99
+ * 悬停要等指针真的在触发器上动过才算(上游 useTooltip 的 `isArrivalUnmovedRef`)。
100
+ *
101
+ * 触发器在一只不动的鼠标下面出现或挪过来时(排版变了、页面滚了),浏览器同样会发
102
+ * `mouseenter`。那不是人指过来的,所以从鼠标或笔「到达」触发器起,等它在触发器上第一次
103
+ * 移动才开始悬停计时。真的移进来的指针在同一帧里也会在触发器上移动,正常悬停照样在
104
+ * `delay` 后打开。Firefox 在 `mouseenter` 之前发 `pointermove`,所以紧随其后的
105
+ * `mousemove` 也算。滚动之后 WebKit 还会在鼠标原地补发一次移动,那不算(isMouseMove)。
106
+ * 到达之后、第一次移动之前的按压也结束这次到达。
107
+ */
108
+ function createHoverArrival(options) {
109
+ let isUnmoved = false;
110
+ const arrival = {
111
+ onEnter() {
112
+ isUnmoved = !options.isTouchPointer();
113
+ },
114
+ onMove(event) {
115
+ if (!isUnmoved || event.pointerType === "touch" || !isMouseMove(event)) return;
116
+ isUnmoved = false;
117
+ options.onHover();
118
+ },
119
+ reset() {
120
+ isUnmoved = false;
121
+ },
122
+ attach(element) {
123
+ const onMove = (event) => arrival.onMove(event);
124
+ element.addEventListener("pointermove", onMove);
125
+ element.addEventListener("mousemove", onMove);
126
+ const release = holdMouseMoves(element.ownerDocument.defaultView);
127
+ return () => {
128
+ element.removeEventListener("pointermove", onMove);
129
+ element.removeEventListener("mousemove", onMove);
130
+ release();
131
+ };
132
+ }
133
+ };
134
+ return arrival;
135
+ }
136
+ //#endregion
80
137
  //#region src/Tooltip/tooltipPresentInterest.ts
81
138
  /** 仅库内部使用,不从 Tooltip 入口导出。 */
82
139
  const tooltipPresentInterestKey = Symbol("astryx-tooltip-present-interest");
@@ -94,6 +151,50 @@ function answerPresentInterest(state, trigger, answers) {
94
151
  }
95
152
  }
96
153
  //#endregion
154
+ //#region src/Tooltip/triggerDescription.ts
155
+ function nameOf(element) {
156
+ if (element.hasAttribute("aria-labelledby")) return null;
157
+ const label = element.getAttribute("aria-label");
158
+ if (label != null && label.trim() !== "") return label.trim();
159
+ return visibleText(element);
160
+ }
161
+ /** 纯文字的提示内容和触发器的名称一样。 */
162
+ function repeatsName(element, text) {
163
+ const content = text?.trim() ?? "";
164
+ return content !== "" && content === nameOf(element);
165
+ }
166
+ /**
167
+ * 跟着 `trigger` 维护描述关系。`repeatedText` 是可能重复触发器名称的纯文字内容,
168
+ * 不传就总是描述。
169
+ */
170
+ function useTriggerDescription(trigger, id, repeatedText) {
171
+ let described = null;
172
+ function restore() {
173
+ if (described == null) return;
174
+ const { element, before } = described;
175
+ if (before) element.setAttribute("aria-describedby", before);
176
+ else element.removeAttribute("aria-describedby");
177
+ described = null;
178
+ }
179
+ watch(() => {
180
+ const element = trigger.value;
181
+ return element != null && !repeatsName(element, toValue(repeatedText)) ? element : null;
182
+ }, (element) => {
183
+ restore();
184
+ if (element == null) return;
185
+ const before = element.getAttribute("aria-describedby");
186
+ described = {
187
+ element,
188
+ before
189
+ };
190
+ element.setAttribute("aria-describedby", [before, id].filter(Boolean).join(" "));
191
+ }, {
192
+ immediate: true,
193
+ flush: "sync"
194
+ });
195
+ onScopeDispose(restore);
196
+ }
197
+ //#endregion
97
198
  //#region src/Tooltip/useTooltip.ts
98
199
  const GAP = 4;
99
200
  const HOVER_BRIDGE_DELAY = 100;
@@ -106,6 +207,10 @@ const HOVER_BRIDGE_DELAY = 100;
106
207
  * ```
107
208
  */
108
209
  function useTooltip(options = {}) {
210
+ return useTooltipInternal(options);
211
+ }
212
+ /** `useTooltip` 加上 Tooltip 组件自己的扩展点(见 `TooltipInternals`)。 */
213
+ function useTooltipInternal(options, internals = {}) {
109
214
  const triggerRef = shallowRef(null);
110
215
  const isControlled = computed(() => toValue(options.isOpen) !== void 0);
111
216
  let bound = null;
@@ -122,6 +227,7 @@ function useTooltip(options = {}) {
122
227
  onHide: () => options.onHide?.()
123
228
  });
124
229
  const isOpen = computed(() => toValue(options.isOpen) ?? layer.isOpen.value);
230
+ useTriggerDescription(triggerRef, layer.id, internals.repeatedText);
125
231
  const isEnabled = () => toValue(options.isEnabled) ?? true;
126
232
  const focusTriggerMode = () => toValue(options.focusTrigger) ?? "auto";
127
233
  const touchTriggerMode = () => toValue(options.touchTrigger) ?? "auto";
@@ -156,6 +262,11 @@ function useTooltip(options = {}) {
156
262
  hide: hideNow
157
263
  }, { isTextEntryTapIgnored: true });
158
264
  const isTouchPointer = touch.isTouchPointer;
265
+ const arrival = createHoverArrival({
266
+ isTouchPointer: () => isTouchPointer.value,
267
+ onHover: scheduleShow
268
+ });
269
+ let detachArrival = null;
159
270
  function showNow() {
160
271
  clearTimers();
161
272
  if (!isEnabled() || isControlled.value) return;
@@ -181,11 +292,8 @@ function useTooltip(options = {}) {
181
292
  clearTimeout(hideTimer);
182
293
  hideTimer = void 0;
183
294
  }
184
- function onMouseEnter() {
185
- if (isTouchPointer.value) return;
186
- scheduleShow();
187
- }
188
295
  function onMouseLeave(event) {
296
+ arrival.reset();
189
297
  if (isTouchPointer.value) return;
190
298
  const next = event.relatedTarget;
191
299
  if (next instanceof Node && layer.contentRef.value?.contains(next)) return;
@@ -208,6 +316,7 @@ function useTooltip(options = {}) {
208
316
  });
209
317
  }
210
318
  function onPointerDown(event) {
319
+ arrival.reset();
211
320
  trackTriggerPress();
212
321
  if (isHeld.value) {
213
322
  if (isHoldInThisTask) isHoldFromPress = true;
@@ -302,21 +411,19 @@ function useTooltip(options = {}) {
302
411
  layer.hide();
303
412
  }
304
413
  });
305
- let describedByBefore = null;
306
414
  function bind(element) {
307
415
  if (bound === element) return;
308
416
  unbind();
309
417
  bound = element;
310
418
  trackInteractionModality();
311
419
  element.addEventListener("pointerenter", touch.handlePointerEnter);
312
- element.addEventListener("mouseenter", onMouseEnter);
420
+ element.addEventListener("mouseenter", arrival.onEnter);
421
+ detachArrival = arrival.attach(element);
313
422
  element.addEventListener("mouseleave", onMouseLeave);
314
423
  element.addEventListener("pointerdown", onPointerDown);
315
424
  element.addEventListener("focusout", onHeldFocusOut);
316
425
  element.addEventListener("focusin", onFocusIn);
317
426
  element.addEventListener("focusout", onFocusOut);
318
- describedByBefore = element.getAttribute("aria-describedby");
319
- if (presentInterest == null) element.setAttribute("aria-describedby", [describedByBefore, layer.id].filter(Boolean).join(" "));
320
427
  answerPresentInterest(presentInterest, element, {
321
428
  hover: scheduleShow,
322
429
  tap: (tapEvent) => {
@@ -329,17 +436,16 @@ function useTooltip(options = {}) {
329
436
  function unbind() {
330
437
  if (bound == null) return;
331
438
  bound.removeEventListener("pointerenter", touch.handlePointerEnter);
332
- bound.removeEventListener("mouseenter", onMouseEnter);
439
+ bound.removeEventListener("mouseenter", arrival.onEnter);
440
+ detachArrival?.();
441
+ detachArrival = null;
333
442
  bound.removeEventListener("mouseleave", onMouseLeave);
334
443
  bound.removeEventListener("pointerdown", onPointerDown);
335
444
  bound.removeEventListener("focusout", onHeldFocusOut);
336
445
  stopPressTracking?.();
337
446
  bound.removeEventListener("focusin", onFocusIn);
338
447
  bound.removeEventListener("focusout", onFocusOut);
339
- if (describedByBefore) bound.setAttribute("aria-describedby", describedByBefore);
340
- else bound.removeAttribute("aria-describedby");
341
448
  bound = null;
342
- describedByBefore = null;
343
449
  }
344
450
  watch(triggerRef, (element) => {
345
451
  if (element == null) unbind();
@@ -391,4 +497,4 @@ function useTooltip(options = {}) {
391
497
  };
392
498
  }
393
499
  //#endregion
394
- export { tooltipPresentInterestKey as n, _sfc_main as r, useTooltip as t };
500
+ export { _sfc_main as i, useTooltipInternal as n, tooltipPresentInterestKey as r, useTooltip as t };
@@ -1,5 +1,5 @@
1
- import { t as armClickGuard } from "./clickGuard-BkegH2NW.js";
2
- import { c as pressFadeMs, f as PRESS_GROUP_ITEM_ATTRIBUTE, p as isTrackedByGroup, t as PRESSED_ATTRIBUTE } from "./pressSlot-DIN1AmiA.js";
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-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 { n as tooltipPresentInterestKey } from "./useTooltip-D5kJD9ed.js";
4
- import { t as _sfc_main$1 } from "./Tooltip-W32cHQH0.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";
@@ -5,6 +5,6 @@ import { n as observeResize, r as unobserveResize } from "../sharedResizeObserve
5
5
  import { a as formatDisplayTime12h, i as createISOTimeString, n as clampTime, o as formatDisplayTime24h, r as compareTime, t as adjustTime, u as parseTimeInput } from "../timeParser-nVL5sIwT.js";
6
6
  import { A as plainDateSetFirstOfMonth, C as plainDateIsAfter, D as plainDateMax, E as plainDateIsInRange, F as plainDateToday, I as plainDateWeekFieldName, M as plainDateToDate, N as plainDateToISO, O as plainDateMin, P as plainDateToInstant, S as plainDateGetWeekNumber, T as plainDateIsEqual, _ as plainDateDiffDays, a as DATE_FORMAT_SHORT_WITH_WEEKDAY, b as plainDateFromISO, c as DATE_FORMAT_WITH_WEEKDAY, d as getDaysInMonth, f as getTimeZoneParts, g as plainDateDayOfWeek, h as plainDateCreate, i as DATE_FORMAT_SHORT, j as plainDateSetStartOfWeek, k as plainDateSetEndOfWeekExclusive, l as SHARED_DATE_FORMAT_OPTIONS, m as plainDateAddMonths, n as DATE_FORMAT_MONTH_ONLY, o as DATE_FORMAT_SHORT_WITH_YEAR, p as plainDateAddDays, r as DATE_FORMAT_MONTH_YEAR, s as DATE_FORMAT_WEEKDAY_ONLY, t as DATE_FORMAT_LONG, u as formatSharedDate, v as plainDateFormat, w as plainDateIsBefore, x as plainDateFromInstant, y as plainDateFromDate } from "../plainDate-CaTDErKr.js";
7
7
  import { a as pickerPresentationFromNativePicker, c as resolvePickerPresentation, i as effectivePickerPresentation, l as isLocaleDayFirst, o as presentationFromNativePicker, r as effectiveInputPresentation, s as resolveInputPresentation, t as DEFAULT_INPUT_PRESENTATION, u as parseDateInput } from "../inputPresentation-DES0JwkL.js";
8
- import { t as useFingerScroll } from "../useFingerScroll-CC19P9JS.js";
8
+ import { t as useFingerScroll } from "../useFingerScroll-BhnBhQoa.js";
9
9
  import { a as groupItems, i as getItemGroup, n as getInputARIA, o as normalizeDayOfWeek, r as joinAriaIDs, s as chainEventHandlers, t as parseStyleKey } from "../utils-BW62BpDR.js";
10
10
  export { DATE_FORMAT_LONG, DATE_FORMAT_MONTH_ONLY, DATE_FORMAT_MONTH_YEAR, DATE_FORMAT_SHORT, DATE_FORMAT_SHORT_WITH_WEEKDAY, DATE_FORMAT_SHORT_WITH_YEAR, DATE_FORMAT_WEEKDAY_ONLY, DATE_FORMAT_WITH_WEEKDAY, DEFAULT_INPUT_PRESENTATION, SHARED_DATE_FORMAT_OPTIONS, adjustTime, chainEventHandlers, characterCount, clampTime, compareTime, createISOTimeString, plainDateToISO as dateToISO, plainDateToISO, effectiveInputPresentation, effectivePickerPresentation, firstCharacter, formatDisplayTime12h, formatDisplayTime24h, formatSharedDate, getDaysInMonth, getInputARIA, getItemGroup, getTimeZoneParts, groupItems, isLocaleDayFirst, isSafeDestination, isSafeUrl, joinAriaIDs, normalizeDayOfWeek, observeResize, parseDateInput, plainDateFromISO as parseISO, plainDateFromISO, parseStyleKey, parseTimeInput, pickerPresentationFromNativePicker, plainDateAddDays, plainDateAddMonths, plainDateCreate, plainDateDayOfWeek, plainDateDiffDays, plainDateFormat, plainDateFromDate, plainDateFromInstant, plainDateGetWeekNumber, plainDateIsAfter, plainDateIsBefore, plainDateIsEqual, plainDateIsInRange, plainDateMax, plainDateMin, plainDateSetEndOfWeekExclusive, plainDateSetFirstOfMonth, plainDateSetStartOfWeek, plainDateToDate, plainDateToInstant, plainDateToday, plainDateWeekFieldName, presentationFromNativePicker, resolveInputPresentation, resolvePickerPresentation, sanitizeUrl, truncateCharacters, unobserveResize, scrollEventTarget as unstable_scrollEventTarget, scrollportTop as unstable_scrollportTop, scrollsPage as unstable_scrollsPage, setScrollAnchoringOff as unstable_setScrollAnchoringOff, useFingerScroll as unstable_useFingerScroll };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@astryx-vue/core",
3
3
  "type": "module",
4
- "version": "0.43.0",
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 };
@@ -1,141 +0,0 @@
1
- //#region src/layer/layerSurfacePress.ts
2
- /**
3
- * 打开着的 Tooltip、HoverCard 气泡登记在这里。
4
- *
5
- * 气泡挂载时会尽量靠近触发元素(见 `layer/mount.ts`),可能落在一个可点容器
6
- * (可点卡片、列表行、文件选择区)的 DOM 里面,于是在气泡里点一下会冒泡到容器,
7
- * 把容器的动作也触发了。容器判断「这一下是不是点在别的东西上」时,把登记过的气泡
8
- * 当作别的东西,就不再响应。事件本身照常冒泡,页面级的监听仍然收得到。不从包里导出。
9
- */
10
- const surfaces = /* @__PURE__ */ new WeakSet();
11
- /** 给气泡内容元素用的 ref 回调。 */
12
- function registerLayerSurface(element) {
13
- if (element != null) surfaces.add(element);
14
- }
15
- /** 这个元素是不是登记过的气泡。 */
16
- function isLayerSurface(element) {
17
- return surfaces.has(element);
18
- }
19
- /** 从 `target` 往上走到 `root`(不含)之间,有没有登记过的气泡。 */
20
- function isInLayerSurface(target, root) {
21
- let current = target;
22
- while (current != null && current !== root) {
23
- if (surfaces.has(current)) return true;
24
- current = current.parentElement;
25
- }
26
- return false;
27
- }
28
- //#endregion
29
- //#region src/composables/useClickableContainer.ts
30
- /**
31
- * 对应原版 Astryx 的 `hooks/useClickableContainer`。
32
- *
33
- * 让整块容器可点,同时把点在嵌套按钮、链接、输入框上的点击留给那些控件自己。
34
- * ClickableCard 和 SelectableCard 都走这里,避免两套“点到谁算谁”的判断。
35
- */
36
- const INTERACTIVE_SELECTORS = [
37
- "button",
38
- "a",
39
- "input",
40
- "select",
41
- "textarea",
42
- "[role=\"button\"]",
43
- "[role=\"link\"]",
44
- "[role=\"checkbox\"]",
45
- "[role=\"radio\"]",
46
- "[role=\"switch\"]",
47
- "[role=\"tab\"]",
48
- "[role=\"menuitem\"]",
49
- "[role=\"option\"]",
50
- "[role=\"combobox\"]",
51
- "[role=\"listbox\"]",
52
- "[role=\"slider\"]",
53
- "[role=\"spinbutton\"]",
54
- "[data-pressable-container]"
55
- ].join(",");
56
- const NON_INTERACTIVE_SELECTORS = "[aria-readonly=\"true\"]";
57
- function hasInteractiveAncestor(element, root) {
58
- let current = element;
59
- while (current != null && current !== root && current !== document.body) {
60
- if (current.matches(INTERACTIVE_SELECTORS) && !current.matches(NON_INTERACTIVE_SELECTORS)) return true;
61
- if (isLayerSurface(current)) return true;
62
- current = current.parentElement;
63
- }
64
- return false;
65
- }
66
- function hasTextSelection(node) {
67
- if (typeof document === "undefined" || document.getSelection == null) return false;
68
- const selection = document.getSelection();
69
- if (selection == null || selection.isCollapsed) return false;
70
- return node.contains(selection.anchorNode);
71
- }
72
- function openInNewTab(href) {
73
- window.open(href, "_blank", "noopener");
74
- }
75
- /**
76
- * 把容器的 click / mouseup 交给调用方绑到根元素上。
77
- * 组件挂载后会给容器加上 `data-pressable-container`,嵌套的可点容器因此不会互相抢走点击。
78
- */
79
- function useClickableContainer(options) {
80
- function markContainer() {
81
- const container = options.containerRef.value;
82
- if (container != null) container.dataset.pressableContainer = "true";
83
- }
84
- function onClick(event) {
85
- markContainer();
86
- if (options.disabled) return;
87
- const container = options.containerRef.value;
88
- if (container == null) return;
89
- if (hasTextSelection(container)) return;
90
- const target = event.target;
91
- if (!(target instanceof Element)) return;
92
- if (target !== event.currentTarget && hasInteractiveAncestor(target, container)) return;
93
- options.onClick?.(event);
94
- if (event.defaultPrevented) return;
95
- const href = options.href;
96
- if (href != null && href !== "") {
97
- if (options.target === "_blank" || event.metaKey || event.ctrlKey) {
98
- openInNewTab(href);
99
- return;
100
- }
101
- const interactive = options.interactiveRef?.value;
102
- if (interactive != null) {
103
- interactive.click();
104
- return;
105
- }
106
- window.location.assign(href);
107
- return;
108
- }
109
- if (options.onClick == null) {
110
- const interactive = options.interactiveRef?.value;
111
- if (interactive != null) {
112
- interactive.dispatchEvent(new MouseEvent("click", {
113
- bubbles: true,
114
- cancelable: true,
115
- button: event.button,
116
- ctrlKey: event.ctrlKey,
117
- metaKey: event.metaKey,
118
- shiftKey: event.shiftKey,
119
- altKey: event.altKey
120
- }));
121
- event.stopPropagation();
122
- }
123
- }
124
- }
125
- function onMouseUp(event) {
126
- if (options.disabled) return;
127
- const href = options.href;
128
- if (href == null || href === "" || event.button !== 1) return;
129
- const container = options.containerRef.value;
130
- const target = event.target;
131
- if (container == null || !(target instanceof Element)) return;
132
- if (target !== event.currentTarget && hasInteractiveAncestor(target, container)) return;
133
- openInNewTab(href);
134
- }
135
- return {
136
- onClick,
137
- onMouseUp
138
- };
139
- }
140
- //#endregion
141
- export { isInLayerSurface as a, useClickableContainer as i, hasInteractiveAncestor as n, isLayerSurface as o, hasTextSelection as r, registerLayerSurface as s, INTERACTIVE_SELECTORS as t };