@astryx-vue/core 0.42.6 → 0.43.1

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 (274) hide show
  1. package/dist/AlertDialog/index.js +1 -1
  2. package/dist/{AlertDialog-CQxV1x0M.js → AlertDialog-Dv5k7js-.js} +7 -7
  3. package/dist/AppShell/index.js +1 -1
  4. package/dist/{AppShell-CLi6skwa.js → AppShell-CCT8ttns.js} +1 -1
  5. package/dist/Avatar/index.js +1 -1
  6. package/dist/{Avatar-Dl2oiG7t.js → Avatar-CCGyBins.js} +1 -1
  7. package/dist/AvatarGroup/index.d.ts +1 -1
  8. package/dist/AvatarGroup/index.js +1 -1
  9. package/dist/{AvatarGroup-BvJTbvr_.js → AvatarGroup-BIAkrmao.js} +1 -1
  10. package/dist/Banner/index.d.ts +1 -1
  11. package/dist/Banner/index.js +1 -1
  12. package/dist/{Banner-u7GJQV3O.js → Banner-BnWEUYLY.js} +1 -1
  13. package/dist/BottomSheet/index.js +2 -2
  14. package/dist/{BottomSheet-DRimCV1O.js → BottomSheet-B2b9l2Wt.js} +2 -2
  15. package/dist/{BottomSheet-q49-srZ5.js → BottomSheet-j8vx6nzu.js} +2 -2
  16. package/dist/Breadcrumbs/index.js +2 -2
  17. package/dist/{Breadcrumbs-B6UW2BdV.js → Breadcrumbs-CjxF6e_F.js} +1 -1
  18. package/dist/Button/index.d.ts +1 -1
  19. package/dist/Button/index.js +1 -1
  20. package/dist/{Button-D8vn_DnZ.js → Button-BUwxLlDR.js} +3 -41
  21. package/dist/ButtonGroup/index.d.ts +1 -1
  22. package/dist/ButtonGroup/index.js +1 -1
  23. package/dist/{ButtonGroup-Bt7UZF_U.js → ButtonGroup-CniWiype.js} +2 -2
  24. package/dist/Calendar/index.d.ts +1 -1
  25. package/dist/Carousel/index.d.ts +1 -1
  26. package/dist/Carousel/index.js +1 -1
  27. package/dist/{Carousel-BE-PqpOJ.js → Carousel-zqKVApwm.js} +1 -1
  28. package/dist/Chat/index.d.ts +1 -1
  29. package/dist/Chat/index.js +1 -1
  30. package/dist/{Chat-D_CxKvTw.js → Chat-DgQyVonB.js} +3 -3
  31. package/dist/CheckboxInput/index.d.ts +1 -1
  32. package/dist/CheckboxInput/index.js +1 -1
  33. package/dist/{CheckboxInput-CiSb9VDk.js → CheckboxInput-Cqu94yE-.js} +4 -4
  34. package/dist/CheckboxList/index.d.ts +1 -1
  35. package/dist/CheckboxList/index.js +1 -1
  36. package/dist/{CheckboxListItem-BwGzAz8V.js → CheckboxListItem-DBmjxrC9.js} +5 -5
  37. package/dist/ClickableCard/index.d.ts +1 -1
  38. package/dist/ClickableCard/index.js +1 -1
  39. package/dist/{ClickableCard-Dkt25nJP.js → ClickableCard-CHYsyEoV.js} +1 -1
  40. package/dist/Code/index.js +2 -2
  41. package/dist/{Code-Cnk4QmuK.js → Code-DWJRBkBo.js} +1 -1
  42. package/dist/{CodeBlock-PuLo1vOn.js → CodeBlock-Cbo_qQKb.js} +1 -1
  43. package/dist/Collapsible/index.js +1 -1
  44. package/dist/{Collapsible-DqEriJMb.js → Collapsible-BGcAI7zr.js} +1 -1
  45. package/dist/CommandPalette/index.js +1 -1
  46. package/dist/{CommandPalette-DX9qEl8X.js → CommandPalette-c5JKlxA4.js} +2 -2
  47. package/dist/ComplexSelector/index.d.ts +1 -1
  48. package/dist/ComplexSelector/index.js +1 -1
  49. package/dist/{ComplexSelector-DtewMXzB.js → ComplexSelector-DWvg6Tv8.js} +2 -2
  50. package/dist/ContextMenu/index.d.ts +1 -1
  51. package/dist/ContextMenu/index.js +2 -2
  52. package/dist/{ContextMenu-Bs77yiLi.js → ContextMenu-BIvp1lte.js} +3 -3
  53. package/dist/DateInput/index.d.ts +1 -1
  54. package/dist/DateInput/index.js +1 -1
  55. package/dist/{DateInput-BQ_q7nbT.js → DateInput-BIU5pnkd.js} +4 -4
  56. package/dist/DateRangeInput/index.d.ts +1 -1
  57. package/dist/DateRangeInput/index.js +1 -1
  58. package/dist/{DateRangeInput-lun9lX7q.js → DateRangeInput-CS4fPKiS.js} +3 -3
  59. package/dist/DateTimeInput/index.d.ts +1 -1
  60. package/dist/DateTimeInput/index.js +1 -1
  61. package/dist/{DateTimeInput-Dm8lyQlG.js → DateTimeInput-Ck6DPJbu.js} +5 -5
  62. package/dist/Dialog/index.js +3 -3
  63. package/dist/{Dialog-CEbICn0m.js → Dialog-DKPLe00d.js} +1 -1
  64. package/dist/{Dialog-6rKG9kce.js → Dialog-YHm_AxCR.js} +33 -6
  65. package/dist/{DialogHeader-BpQQMQcb.js → DialogHeader-DLPgLxng.js} +1 -1
  66. package/dist/Divider/index.d.ts +1 -1
  67. package/dist/Drawer/index.d.ts +1 -1
  68. package/dist/Drawer/index.js +1 -1
  69. package/dist/{Drawer-C82o6bdA.js → Drawer-CeIcoLob.js} +3 -3
  70. package/dist/DropdownMenu/index.js +2 -2
  71. package/dist/{DropdownMenu-BiYgf2YY.js → DropdownMenu-DU38kcJj.js} +13 -13
  72. package/dist/EmptyState/index.js +1 -1
  73. package/dist/{EmptyState-B57OV1V_.js → EmptyState-A-W5iHeg.js} +2 -2
  74. package/dist/Field/index.js +3 -3
  75. package/dist/{Field-jM0Ithrd.js → Field-CywKGqLZ.js} +1 -1
  76. package/dist/{FieldInfoTip-BrxcbuTn.js → FieldInfoTip-ns5DSY2R.js} +1 -1
  77. package/dist/{FieldLabel-BmjvZVOQ.js → FieldLabel-B_KKj3p2.js} +1 -1
  78. package/dist/FileInput/index.js +1 -1
  79. package/dist/{FileInput-Bb6LdXY1.js → FileInput-iohQGlZx.js} +3 -3
  80. package/dist/{GestureHost-DXlDxyns.js → GestureHost-25aSFM1Y.js} +2 -2
  81. package/dist/Heading/index.js +1 -1
  82. package/dist/{Heading-Cymy5utP.js → Heading-DrRtU8qI.js} +1 -1
  83. package/dist/HoverCard/index.d.ts +1 -1
  84. package/dist/IconButton/index.js +1 -1
  85. package/dist/{IconButton-BdXfxjCD.js → IconButton-BA7GRuUJ.js} +1 -1
  86. package/dist/InfoTip/index.d.ts +1 -1
  87. package/dist/InfoTip/index.js +1 -1
  88. package/dist/{InfoTip-BCOxwsJ4.js → InfoTip-fl6N72TS.js} +2 -2
  89. package/dist/{InputClearButton-Dp87bq1c.js → InputClearButton-BKgQ8dgP.js} +1 -1
  90. package/dist/InputGroup/index.js +1 -1
  91. package/dist/{InputGroup-CsEB0Ufk.js → InputGroup-COVIPIGq.js} +1 -1
  92. package/dist/{Item-DOATMVXE.js → Item-Dds9mU6Z.js} +6 -6
  93. package/dist/Lightbox/index.js +1 -1
  94. package/dist/{Lightbox-DpZLzzTZ.js → Lightbox-DcrwBS9V.js} +40 -11
  95. package/dist/Link/index.d.ts +1 -1
  96. package/dist/Link/index.js +1 -1
  97. package/dist/{Link-CRNgZw--.js → Link-BdlaErAT.js} +2 -2
  98. package/dist/List/index.d.ts +1 -1
  99. package/dist/List/index.js +4 -4
  100. package/dist/{List-CsumsvTg.js → List-D1Pr6E7p.js} +2 -2
  101. package/dist/{ListItem-DHpWkhT9.js → ListItem-BmNr7uiR.js} +3 -3
  102. package/dist/{LongPressGestureRecognizer-V_iVvLNU.js → LongPressGestureRecognizer-DyfS9mpX.js} +2 -2
  103. package/dist/Markdown/index.d.ts +1 -1
  104. package/dist/Markdown/index.js +1 -1
  105. package/dist/{Markdown-DwCAq1ds.js → Markdown-C8BXhDP0.js} +3 -3
  106. package/dist/MobileNav/index.js +1 -1
  107. package/dist/{MobileNavToggle-DYKJC6X6.js → MobileNavToggle-BzfsPuLo.js} +1 -1
  108. package/dist/MoreMenu/index.d.ts +1 -1
  109. package/dist/MoreMenu/index.js +1 -1
  110. package/dist/{MoreMenu-BJqN4qQ6.js → MoreMenu-CaWxztZx.js} +5 -5
  111. package/dist/MultiSelector/index.d.ts +1 -1
  112. package/dist/MultiSelector/index.js +1 -1
  113. package/dist/{MultiSelector-s09q_Lot.js → MultiSelector-Bi50qsF4.js} +4 -4
  114. package/dist/NavItem/index.d.ts +1 -1
  115. package/dist/NavItem/index.js +1 -1
  116. package/dist/{NavItem-BY24W2B0.js → NavItem-CyYs0MqE.js} +1 -1
  117. package/dist/NavMenu/index.js +2 -2
  118. package/dist/{NavMenu-DF4JqIed.js → NavMenu-BxL910jk.js} +1 -1
  119. package/dist/{NavMenuItem-CGGECLdG.js → NavMenuItem-BnvyXNmq.js} +2 -2
  120. package/dist/NumberInput/index.d.ts +1 -1
  121. package/dist/NumberInput/index.js +1 -1
  122. package/dist/{NumberInput-DIgfEtYW.js → NumberInput-CwP23jyj.js} +4 -4
  123. package/dist/Outline/index.js +1 -1
  124. package/dist/{Outline-CCnTR9Pe.js → Outline-B2xpgjh8.js} +1 -1
  125. package/dist/OverflowList/index.d.ts +1 -1
  126. package/dist/OverflowList/index.js +1 -1
  127. package/dist/{OverflowList-uk0l80Zd.js → OverflowList-D9C4LDqG.js} +1 -1
  128. package/dist/Overlay/index.d.ts +1 -1
  129. package/dist/Pagination/index.d.ts +1 -1
  130. package/dist/Pagination/index.js +1 -1
  131. package/dist/{Pagination-CvPQ6Xvk.js → Pagination-CYqnfjlj.js} +2 -2
  132. package/dist/{PanGestureRecognizer-Crc0PhW0.js → PanGestureRecognizer-BVA9pqme.js} +1 -1
  133. package/dist/{PickerWheel-WEFgBW8I.js → PickerWheel-x5H1G_XB.js} +4 -4
  134. package/dist/Popover/index.d.ts +3 -3
  135. package/dist/Popover/index.js +1 -1
  136. package/dist/{Popover-VGJEMOBl.js → Popover-B1KEO3cp.js} +260 -40
  137. package/dist/PowerSearch/index.d.ts +1 -1
  138. package/dist/PowerSearch/index.js +1 -1
  139. package/dist/{PowerSearch-B8VKqYSb.js → PowerSearch-DbHaoWLt.js} +23 -23
  140. package/dist/ProgressBar/index.d.ts +1 -1
  141. package/dist/ProgressBar/index.js +1 -1
  142. package/dist/{ProgressBar-IRNmWLg-.js → ProgressBar-D7btyHEW.js} +1 -1
  143. package/dist/Radio/index.d.ts +1 -1
  144. package/dist/Radio/index.js +1 -1
  145. package/dist/{RadioGroup-DoI7wu5m.js → RadioGroup-DHsmwHtm.js} +5 -5
  146. package/dist/RadioList/index.d.ts +1 -1
  147. package/dist/RadioList/index.js +1 -1
  148. package/dist/{RadioListItem-Bb0ggwoG.js → RadioListItem-CvSf8RMH.js} +1 -1
  149. package/dist/Resizable/index.d.ts +1 -1
  150. package/dist/ScrollableArea/index.d.ts +1 -1
  151. package/dist/SegmentedControl/index.js +1 -1
  152. package/dist/{SegmentedControl-DjruBeFm.js → SegmentedControl-DCaDQ2zo.js} +6 -6
  153. package/dist/SelectableCard/index.d.ts +1 -1
  154. package/dist/SelectableCard/index.js +1 -1
  155. package/dist/{SelectableCard-dUjsGX2o.js → SelectableCard-DXZnI7ib.js} +1 -1
  156. package/dist/Selector/index.d.ts +1 -1
  157. package/dist/Selector/index.js +1 -1
  158. package/dist/{Selector-BV2L5xMI.js → Selector-DgA3p_vY.js} +2 -2
  159. package/dist/SideNav/index.d.ts +1 -1
  160. package/dist/SideNav/index.js +1 -1
  161. package/dist/{SideNav-BYWNIIXT.js → SideNav-DksQSYby.js} +3 -3
  162. package/dist/Slider/index.js +1 -1
  163. package/dist/{Slider-pnFJ6MfZ.js → Slider-CdRV1bCC.js} +5 -5
  164. package/dist/Stack/index.d.ts +1 -1
  165. package/dist/StatusDot/index.js +1 -1
  166. package/dist/{StatusDot-CdtauWfk.js → StatusDot-D6piHeyt.js} +1 -1
  167. package/dist/Stepper/index.d.ts +1 -1
  168. package/dist/Stepper/index.js +1 -1
  169. package/dist/{Stepper-BL01wjk9.js → Stepper-datF7_Kw.js} +1 -1
  170. package/dist/Switch/index.d.ts +1 -1
  171. package/dist/Switch/index.js +1 -1
  172. package/dist/{Switch-BJ9skC9r.js → Switch-CLyjn2EV.js} +6 -6
  173. package/dist/TabList/index.js +1 -1
  174. package/dist/{TabList-XKIbMcy5.js → TabList-Ca_OTfBB.js} +2 -2
  175. package/dist/Table/index.d.ts +1 -1
  176. package/dist/Table/index.js +1 -1
  177. package/dist/{Table-Dsf4UU08.js → Table-UQYSPKLi.js} +10 -10
  178. package/dist/{TapGestureRecognizer-Cv0y3c02.js → TapGestureRecognizer-DGoxircL.js} +2 -2
  179. package/dist/Text/index.js +1 -1
  180. package/dist/{Text-9twwURuI.js → Text-BNYzEYKN.js} +1 -1
  181. package/dist/TextArea/index.d.ts +1 -1
  182. package/dist/TextArea/index.js +1 -1
  183. package/dist/{TextArea-C66zML5G.js → TextArea-xyfbtdDe.js} +5 -5
  184. package/dist/TextInput/index.d.ts +1 -1
  185. package/dist/TextInput/index.js +1 -1
  186. package/dist/{TextInput-BGsRns-X.js → TextInput-4T2l6nIx.js} +5 -5
  187. package/dist/Thumbnail/index.js +1 -1
  188. package/dist/{Thumbnail-iJILNRPc.js → Thumbnail-DMobmtCT.js} +3 -3
  189. package/dist/{TimeField-a83r3-AM.js → TimeField-BJ0n_UmS.js} +3 -3
  190. package/dist/TimeInput/index.d.ts +1 -1
  191. package/dist/TimeInput/index.js +1 -1
  192. package/dist/{TimeInput-BiYKuVMQ.js → TimeInput-EIvW94w2.js} +2 -2
  193. package/dist/Timer/index.js +1 -1
  194. package/dist/{Timer-DBujcX_B.js → Timer-CwkKyCaZ.js} +1 -1
  195. package/dist/Timestamp/index.d.ts +1 -1
  196. package/dist/Timestamp/index.js +1 -1
  197. package/dist/{Timestamp-Dv6_wb89.js → Timestamp-BsuGdHWI.js} +2 -2
  198. package/dist/Toast/index.js +1 -1
  199. package/dist/{Toast-DQMcX2nf.js → Toast-DKuaFhrg.js} +12 -3
  200. package/dist/ToggleButton/index.d.ts +1 -1
  201. package/dist/ToggleButton/index.js +1 -1
  202. package/dist/{ToggleButton-fvo3Mxmb.js → ToggleButton-BHasUu8b.js} +3 -3
  203. package/dist/Token/index.js +1 -1
  204. package/dist/{Token-B_jnJ700.js → Token-BQGcBNKf.js} +1 -1
  205. package/dist/Tokenizer/index.js +1 -1
  206. package/dist/{Tokenizer-f1byujPP.js → Tokenizer-DXwHDbL7.js} +10 -10
  207. package/dist/Toolbar/index.d.ts +1 -1
  208. package/dist/Tooltip/index.d.ts +1 -1
  209. package/dist/Tooltip/index.js +2 -2
  210. package/dist/{Tooltip-W32cHQH0.js → Tooltip-CSF5F0QB.js} +5 -4
  211. package/dist/TopNav/index.d.ts +1 -1
  212. package/dist/TopNav/index.js +1 -1
  213. package/dist/{TopNav-Bvjt444e.js → TopNav-CTCH30YX.js} +3 -3
  214. package/dist/TreeList/index.d.ts +1 -1
  215. package/dist/TreeList/index.js +1 -1
  216. package/dist/{TreeList-CGW9V6x-.js → TreeList-Adv2OI-T.js} +1 -1
  217. package/dist/Typeahead/index.js +1 -1
  218. package/dist/{Typeahead-KXBQ4jXf.js → Typeahead-Bvesheeg.js} +3 -3
  219. package/dist/{accessibleName-Dpzu2nL1.js → accessibleName-Liv9VEpI.js} +1 -1
  220. package/dist/{boxHold-DNjO01uo.js → boxHold-BeZ6T0vP.js} +4 -4
  221. package/dist/{browserClickWait-Cb550_M2.js → browserClickWait-TdyeNZwb.js} +2 -2
  222. package/dist/{clickGuard-BkegH2NW.js → clickGuard-CdmRG-4c.js} +1 -1
  223. package/dist/composables/index.js +6 -6
  224. package/dist/{composables-cdO2fBF6.js → composables-BXjTzBd-.js} +7 -7
  225. package/dist/cutText-Cg1a7iug.js +40 -0
  226. package/dist/{holdEntranceInput-CROBPhuO.js → holdEntranceInput-CxiwxRdS.js} +1 -1
  227. package/dist/{index-DFlzXsvO.d.ts → index-BABha_qR.d.ts} +4 -4
  228. package/dist/{index-CI-FbXLB.d.ts → index-BAp4nVVN.d.ts} +2 -2
  229. package/dist/{index-CuBP0rmj.d.ts → index-Bew88db8.d.ts} +4 -4
  230. package/dist/{index-ZKBj_1nu.d.ts → index-BfFpUr1B.d.ts} +1 -1
  231. package/dist/{index-BB9acgK8.d.ts → index-BgT6mH3U.d.ts} +1 -1
  232. package/dist/{index-BDZCJ9ri.d.ts → index-BuubzuE8.d.ts} +2 -2
  233. package/dist/{index-CC9ETLL4.d.ts → index-ByKedmzm.d.ts} +1 -1
  234. package/dist/{index-CKnr0JlT.d.ts → index-C4S65SAW.d.ts} +1 -1
  235. package/dist/{index-DPhQZXYw.d.ts → index-C7uGs5Cl.d.ts} +5 -3
  236. package/dist/{index-D05JGsT3.d.ts → index-C8wfe0Mr.d.ts} +1 -1
  237. package/dist/{index-COgrQZIL.d.ts → index-CdvmnNMH.d.ts} +1 -1
  238. package/dist/{index-Upg2KRlh.d.ts → index-CgrQX9f9.d.ts} +38 -38
  239. package/dist/{index-CqvIpZ-t.d.ts → index-D9TEHLw6.d.ts} +18 -3
  240. package/dist/{index-BtqvPjAf.d.ts → index-DofC9Rll.d.ts} +1 -1
  241. package/dist/{index-BfOs5BQj.d.ts → index-K9yFjQxo.d.ts} +1 -1
  242. package/dist/{index-BI1QLuYB.d.ts → index-ZXrvTM3A.d.ts} +3 -3
  243. package/dist/{index-Ak1b0V24.d.ts → index-tdOyqA_U.d.ts} +1 -1
  244. package/dist/{index-B7vE2Dx8.d.ts → index-v27zktLu.d.ts} +1 -1
  245. package/dist/index.d.ts +20 -20
  246. package/dist/index.js +93 -93
  247. package/dist/{inputHold-B53XZ8if.js → inputHold-CSq4NZlV.js} +2 -2
  248. package/dist/{inputHoldState-Bav14W7v.js → inputHoldState-B4uHEjk5.js} +1 -1
  249. package/dist/{inputStream-DmPkJ1aU.js → inputStream-CFvjNDgT.js} +60 -5
  250. package/dist/internal/touch.js +7 -7
  251. package/dist/{itemSlots-D9aPTELK.js → itemSlots-0J_JDkUW.js} +2 -2
  252. package/dist/{layerFocusReturn-uixUCSc8.js → layerFocusReturn-Bl6yja5A.js} +50 -2
  253. package/dist/{lazyBottomSheet-BfDsDl4w.js → lazyBottomSheet-Bt7UIxYT.js} +1 -1
  254. package/dist/{rideKeyboard-SnVXHPCp.js → rideKeyboard-DiF6K9Lm.js} +2 -2
  255. package/dist/{snapPagingCatcher-CQ34r-x-.js → snapPagingCatcher-BL_D9uL5.js} +1 -1
  256. package/dist/{types-DTlpQo7j.d.ts → types-BsFCq23a.d.ts} +11 -2
  257. package/dist/{useActionGroupTracking-CGikRIWR.js → useActionGroupTracking-FyDVRrJo.js} +1 -1
  258. package/dist/{useChatStreamScroll-CGHtw12w.js → useChatStreamScroll-BDD_ngLq.js} +1 -1
  259. package/dist/{useFingerScroll-CC19P9JS.js → useFingerScroll-BhnBhQoa.js} +2 -2
  260. package/dist/{useGestureRecognizer-D5kNuQzG.js → useGestureRecognizer-Bj0nynLS.js} +1 -1
  261. package/dist/{useInputStatusIcon-BW70yd3c.js → useInputStatusIcon-BOK9C-cK.js} +1 -1
  262. package/dist/{useMenuEntranceHold-DMHMzaRW.js → useMenuEntranceHold-DD7NT3Ye.js} +1 -1
  263. package/dist/{useMenuPress-CARtL4Wa.js → useMenuPress-Cdh6Emnv.js} +2 -2
  264. package/dist/{useMobileKeyboard-DcvMptTe.js → useMobileKeyboard-jeeHdtVD.js} +2 -2
  265. package/dist/{usePressFeedback-DkWA1son.js → usePressFeedback-YVKOuzaa.js} +1 -1
  266. package/dist/{useTooltip-D5kJD9ed.js → useTooltip-CJKLcg2f.js} +122 -16
  267. package/dist/{useTouchHitArea-CxqNaIyt.js → useTouchHitArea-DUezWadK.js} +1 -1
  268. package/dist/{useTruncationTooltip-Cx4R7Fyp.js → useTruncationTooltip-QB_t0RDb.js} +2 -2
  269. package/dist/utils/index.js +1 -1
  270. package/package.json +1 -1
  271. package/styles/dialog.css +5 -0
  272. package/styles/drawer.css +6 -0
  273. package/styles/popover.css +11 -3
  274. package/styles/toast.css +6 -0
@@ -1,6 +1,53 @@
1
+ import { t as SCROLLABLE_OVERFLOW } from "./scrollView-BGBtu5JP.js";
1
2
  import { t as devWarn } from "./useDevWarning-B2fsk2B-.js";
2
3
  import { t as FOCUSABLE_SELECTOR } from "./focus-x7mxEqjR.js";
3
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
4
51
  //#region src/layer/layerFocusReturn.ts
5
52
  function documentOf(element) {
6
53
  if (element != null) return element.ownerDocument;
@@ -85,12 +132,13 @@ function findController(doc, layerId) {
85
132
  return null;
86
133
  }
87
134
  /** 给本身不能聚焦的元素临时加一个 `tabindex="-1"`,焦点离开时摘掉。 */
88
- function focusWithTemporaryStop(element) {
135
+ function focusWithTemporaryStop(element, reveal) {
89
136
  if (!isFocusableNow(element)) {
90
137
  element.setAttribute("tabindex", "-1");
91
138
  element.addEventListener("blur", () => element.removeAttribute("tabindex"), { once: true });
92
139
  }
93
140
  focusForLastInput(element, { preventScroll: true });
141
+ if (reveal) revealReturnTarget(element);
94
142
  }
95
143
  /**
96
144
  * 沿候选链把焦点送出这一层。只在焦点被困住时调用(见 `isLayerFocusStranded`)。
@@ -111,7 +159,7 @@ function restoreLayerFocus(record, options) {
111
159
  ];
112
160
  for (const candidate of candidates) {
113
161
  if (!qualifies(candidate, layer)) continue;
114
- focusWithTemporaryStop(candidate);
162
+ focusWithTemporaryStop(candidate, options.reveal === true);
115
163
  if (doc?.activeElement === candidate) return true;
116
164
  }
117
165
  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-q49-srZ5.js").then((n) => n.t);
4
+ return import("./BottomSheet-j8vx6nzu.js").then((n) => n.t);
5
5
  }
6
6
  /**
7
7
  * 按需加载的 BottomSheet:只在底部弹层真正进入组件树时请求,只用锚定浮层的页面
@@ -1,7 +1,7 @@
1
1
  import { c as isHTMLElement, l as isNode, s as isElement } from "./flatTree-BB4yPMNL.js";
2
- import { t as armClickGuard } from "./clickGuard-BkegH2NW.js";
2
+ import { t as armClickGuard } from "./clickGuard-CdmRG-4c.js";
3
3
  import { o as sharedWeakMap, s as sharedWeakSet } from "./sharedRealm-BYHklCVM.js";
4
- import { a as subscribeInput, i as getTouches } from "./inputStream-DmPkJ1aU.js";
4
+ import { i as getTouches, s as subscribeInput } from "./inputStream-CFvjNDgT.js";
5
5
  import { i as PRESS_SLOP_PX } from "./pressGesture-VrM5-7aV.js";
6
6
  import { t as cubicBezier } from "./bezier-Dko5MnTp.js";
7
7
  import { n as isIosWebKit } from "./touchQueries-xy5IeZfe.js";
@@ -4,7 +4,7 @@ import { d as registerScrollTable, f as scroll } from "./gestures-BpGkqgpV.js";
4
4
  import { r as SETTLE_THRESHOLD } from "./animator-D6Buqmbt.js";
5
5
  import { t as resolveMotion } from "./resolveMotion-BHR1cz0Q.js";
6
6
  import { n as solveDecay } from "./decay-ClFADeqT.js";
7
- import { t as LongPressGestureRecognizer } from "./LongPressGestureRecognizer-V_iVvLNU.js";
7
+ import { t as LongPressGestureRecognizer } from "./LongPressGestureRecognizer-DyfS9mpX.js";
8
8
  //#region src/motion/coast.ts
9
9
  /** A curve that holds `end` from `duration` on. */
10
10
  function settling(duration, end, at, velocity) {
@@ -8,6 +8,8 @@ type AdaptivePresentation = 'popover' | 'bottom-sheet' | 'adaptive';
8
8
  type PopoverPlacement = LayerPlacement;
9
9
  type PopoverAlignment = LayerAlignment;
10
10
  type PopoverRole = 'dialog' | 'none';
11
+ /** 浮层打开期间 Tab 的去向:在浮层里循环,或按页面顺序穿过浮层。 */
12
+ type PopoverTabBehavior = 'contain' | 'pageOrder';
11
13
  /**
12
14
  * 内容放在哪:锚定在触发器上、底部弹层,或自适应(紧凑触屏上用底部弹层,
13
15
  * 其余用浮层)。
@@ -32,8 +34,15 @@ interface PopoverProps {
32
34
  label?: string;
33
35
  /** `dialog` 为对话框,适用于包含交互内容的浮层;`none` 适用于内容自带角色的弹出列表或菜单。 */
34
36
  role?: PopoverRole;
35
- /** 为 true 时焦点保持在浮层内,直到浮层关闭。 */
37
+ /** 为 true 时浮层是模态对话框(带 `aria-modal`,页面其余部分不可用)。`tabBehavior` 为 `'pageOrder'` 时不生效。 */
36
38
  isModal?: boolean;
39
+ /**
40
+ * 浮层打开期间 Tab 去哪。`'contain'` 在浮层里循环;`'pageOrder'` 不圈焦点,
41
+ * Tab 按页面顺序走,浮层排在触发器后面,Escape 只在焦点在浮层、锚点或触发器上时关闭它。
42
+ * 适合新手引导、导览步骤。请在打开前设好。
43
+ * @default 'contain'
44
+ */
45
+ tabBehavior?: PopoverTabBehavior;
37
46
  /** 是否显示关闭按钮。关闭按钮默认隐藏,聚焦时显示。 */
38
47
  hasCloseButton?: boolean;
39
48
  /** 关闭按钮的文字,同时作为其无障碍名称。 */
@@ -64,4 +73,4 @@ interface PopoverProps {
64
73
  presentation?: PopoverPresentation;
65
74
  }
66
75
  //#endregion
67
- export { PopoverProps as a, PopoverPresentation as i, PopoverPadding as n, PopoverRole as o, PopoverPlacement as r, AdaptivePresentation as s, PopoverAlignment as t };
76
+ export { PopoverProps as a, AdaptivePresentation as c, PopoverPresentation as i, PopoverPadding as n, PopoverRole as o, PopoverPlacement as r, PopoverTabBehavior as s, PopoverAlignment as t };
@@ -1,6 +1,6 @@
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-CxqNaIyt.js";
3
+ import { i as createActionGroupTracker, o as resolveGroupTouch, r as GROUP_PRESS_POINTERS } from "./useTouchHitArea-DUezWadK.js";
4
4
  import { i as PRESS_SLOP_PX, n as PRESS_ONSET_MS } from "./pressGesture-VrM5-7aV.js";
5
5
  import { f as PRESS_GROUP_ITEM_ATTRIBUTE, p as isTrackedByGroup } from "./pressSlot-DIN1AmiA.js";
6
6
  import { getCurrentScope, onScopeDispose, toValue, watch } from "vue";
@@ -1,4 +1,4 @@
1
- import { a as subscribeInput } from "./inputStream-DmPkJ1aU.js";
1
+ import { s as subscribeInput } from "./inputStream-CFvjNDgT.js";
2
2
  import { t as useMediaQuery } from "./useMediaQuery-DKnSDG3S.js";
3
3
  import { i as scrollsPage, n as scrollEventTarget, r as scrollportTop, t as setScrollAnchoringOff } from "./scrollAnchoring-CNplZXRt.js";
4
4
  import { onScopeDispose, ref, toValue, watch } from "vue";
@@ -1,6 +1,6 @@
1
1
  import { l as isNode, o as isDocument } from "./flatTree-BB4yPMNL.js";
2
- import { a as subscribeInput } from "./inputStream-DmPkJ1aU.js";
3
- import { t as getGestureHost } from "./GestureHost-DXlDxyns.js";
2
+ import { s as subscribeInput } from "./inputStream-CFvjNDgT.js";
3
+ import { t as getGestureHost } from "./GestureHost-25aSFM1Y.js";
4
4
  import { r as watchCoarsePointer, t as isCoarsePointer } from "./coarsePointer-BWNSUIY8.js";
5
5
  import { t as useAttachment } from "./useAttachment-CGiD9rt6.js";
6
6
  //#region src/gestures/fingerScroll.ts
@@ -1,5 +1,5 @@
1
1
  import { a as sharedState } from "./sharedRealm-BYHklCVM.js";
2
- import { l as internals, t as getGestureHost } from "./GestureHost-DXlDxyns.js";
2
+ import { l as internals, t as getGestureHost } from "./GestureHost-25aSFM1Y.js";
3
3
  import { t as useAttachment } from "./useAttachment-CGiD9rt6.js";
4
4
  import { getCurrentScope, onScopeDispose, toValue, watch } from "vue";
5
5
  //#region src/gestures/gestureSync.ts
@@ -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-BrxcbuTn.js";
2
+ import { t as _sfc_main$1 } from "./FieldInfoTip-ns5DSY2R.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-CROBPhuO.js";
1
+ import { t as holdEntranceInput } from "./holdEntranceInput-CxiwxRdS.js";
2
2
  import { nextTick, onBeforeUnmount, watch } from "vue";
3
3
  //#region src/layer/useMenuEntranceHold.ts
4
4
  /**
@@ -1,9 +1,9 @@
1
1
  import { n as msSinceInput } from "./inputAge-C-SoLwpD.js";
2
- import { i as withoutClickGuard, r as disarmEveryClickGuard, t as armClickGuard } from "./clickGuard-BkegH2NW.js";
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
4
  import { t as focusForLastInput } from "./focusReturn-BeSRm0xD.js";
5
5
  import { t as claimPress } from "./pressClaim-DvdlIn4w.js";
6
- import { r as isInputShield } from "./inputHoldState-Bav14W7v.js";
6
+ import { r as isInputShield } from "./inputHoldState-B4uHEjk5.js";
7
7
  import { getCurrentScope, onScopeDispose, toValue } from "vue";
8
8
  //#region src/composables/useLongPress.ts
9
9
  const DEFAULT_DELAY_MS = 500;
@@ -1,6 +1,6 @@
1
1
  import { l as isNode, n as deepActiveElement, o as isDocument } from "./flatTree-BB4yPMNL.js";
2
2
  import { a as sharedState, o as sharedWeakMap } from "./sharedRealm-BYHklCVM.js";
3
- import { a as subscribeInput } from "./inputStream-DmPkJ1aU.js";
3
+ import { s as subscribeInput } from "./inputStream-CFvjNDgT.js";
4
4
  import { t as useMediaQuery } from "./useMediaQuery-DKnSDG3S.js";
5
5
  import { t as animatorFor } from "./animator-D6Buqmbt.js";
6
6
  import { t as KEYBOARD_SPRING } from "./springs-BqW2WrS-.js";
@@ -8,7 +8,7 @@ import { t as TOUCH_QUERY } from "./touchQueries-xy5IeZfe.js";
8
8
  import { n as scrollingAncestor, t as nearestScroller } from "./scrollingAncestor-DMWTn_Ih.js";
9
9
  import { t as useAttachment } from "./useAttachment-CGiD9rt6.js";
10
10
  import { n as observeResize } from "./sharedResizeObserver-BekhnB3E.js";
11
- import { A as riddenAnimators, C as hasOwnTranslate, D as nearestFixedAncestor, E as isMovedByApp, F as subscribeKeyboardHeight, I as layoutViewportHeight, M as getKeyboardHeight, N as isKeyboardMeasurable, O as registerKeyboardTarget, P as isTextEntryControl, S as followsKeyboard, T as isInsideKeyboardTarget, _ as refuseFocusReveal, a as revealWithKeyboard, b as fixedContainerOf, c as claimTapFocus, d as claimKeyboardScrollBack, f as stopKeyboardScrollBack, g as keyboardProfileOf, h as hidesField, i as revealDistance, j as findTextEntryControl, k as restingBottom, l as watchRevealPan, m as getKeyboardLayoutGuide, n as bandOf, o as scrollBy, p as bringsUpKeyboard, r as deliverTap, s as watchPans, t as rideKeyboard, u as distanceIntoBand, v as coveredBy, w as isDockedContainer, x as focusedFieldIn, y as drawnOffsetOf } from "./rideKeyboard-SnVXHPCp.js";
11
+ import { A as riddenAnimators, C as hasOwnTranslate, D as nearestFixedAncestor, E as isMovedByApp, F as subscribeKeyboardHeight, I as layoutViewportHeight, M as getKeyboardHeight, N as isKeyboardMeasurable, O as registerKeyboardTarget, P as isTextEntryControl, S as followsKeyboard, T as isInsideKeyboardTarget, _ as refuseFocusReveal, a as revealWithKeyboard, b as fixedContainerOf, c as claimTapFocus, d as claimKeyboardScrollBack, f as stopKeyboardScrollBack, g as keyboardProfileOf, h as hidesField, i as revealDistance, j as findTextEntryControl, k as restingBottom, l as watchRevealPan, m as getKeyboardLayoutGuide, n as bandOf, o as scrollBy, p as bringsUpKeyboard, r as deliverTap, s as watchPans, t as rideKeyboard, u as distanceIntoBand, v as coveredBy, w as isDockedContainer, x as focusedFieldIn, y as drawnOffsetOf } from "./rideKeyboard-DiF6K9Lm.js";
12
12
  import { readonly, shallowRef, toValue, watch } from "vue";
13
13
  //#region src/keyboard/keyboardRide.ts
14
14
  function liftFor(target, animator, height, offset, win, isHostOwned) {
@@ -1,6 +1,6 @@
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
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";
@@ -1,4 +1,6 @@
1
+ import { a as holdMouseMoves, o as isMouseMove } from "./inputStream-CFvjNDgT.js";
1
2
  import { s as registerLayerSurface } from "./useClickableContainer-Dtjg-nkm.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";
@@ -7,10 +9,11 @@ import { t as useAnnounce } from "./announce-GU01Oix2.js";
7
9
  import { t as useTouchTriggerInternal } from "./useTouchTriggerInternal-B9YsuMRa.js";
8
10
  import { n as opensOnFocus, r as useHoverLayerDismiss, t as createFocusGate } from "./tooltipFocusRules-D468Tl5q.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,4 +1,4 @@
1
- import { t as armClickGuard } from "./clickGuard-BkegH2NW.js";
1
+ import { t as armClickGuard } from "./clickGuard-CdmRG-4c.js";
2
2
  import { c as pressFadeMs, f as PRESS_GROUP_ITEM_ATTRIBUTE, p as isTrackedByGroup, t as PRESSED_ATTRIBUTE } from "./pressSlot-DIN1AmiA.js";
3
3
  import { toValue, watch } from "vue";
4
4
  import "../styles/touch-hit-area.css";
@@ -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-CJKLcg2f.js";
4
+ import { t as _sfc_main$1 } from "./Tooltip-CSF5F0QB.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
@@ -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.42.6",
4
+ "version": "0.43.1",
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",
package/styles/dialog.css CHANGED
@@ -138,6 +138,11 @@
138
138
  }
139
139
  }
140
140
 
141
+ /* 主题对所有人减少动效(Theme 写在根上的标记):任何指针下对话框都直接出现。 */
142
+ :where([data-astryx-reduced-motion]) .astryx-dialog[open] {
143
+ animation: none;
144
+ }
145
+
141
146
  @media (forced-colors: active) {
142
147
  /* 强制配色会去掉阴影,遮罩颜色也由系统接管,对话框靠这圈边和页面分开。全屏对话框四周没有页面,不加。 */
143
148
  .astryx-dialog:not(.astryx-dialog--fullscreen) {
package/styles/drawer.css CHANGED
@@ -179,6 +179,12 @@
179
179
  }
180
180
  }
181
181
 
182
+ /* 主题对所有人减少动效时一样压到 0.01s。 */
183
+ :where([data-astryx-reduced-motion]) .astryx-drawer,
184
+ :where([data-astryx-reduced-motion]) .astryx-drawer--scrim::backdrop {
185
+ transition-duration: 0.01s;
186
+ }
187
+
182
188
  @media (forced-colors: active) {
183
189
  .astryx-drawer {
184
190
  border-inline: 1px solid CanvasText;
@@ -93,10 +93,18 @@
93
93
  }
94
94
  }
95
95
 
96
+ /* 浮层自己拿到键盘焦点时(内容里没有可聚焦的控件)画共用的焦点环。 */
97
+ .astryx-popover:focus-visible {
98
+ outline: var(--astryx-focus-outline-width, 2px) var(--astryx-focus-outline-style, solid) var(--astryx-focus-outline-color, var(--astryx-color-accent, #0074e2));
99
+ outline-offset: var(--astryx-focus-outline-offset, 0px);
100
+ }
101
+
96
102
  @media (forced-colors: active) {
97
- /* 强制配色会去掉阴影,阴影是这块浮层唯一的边,这里补一圈系统色边框。 */
98
- .astryx-popover {
99
- border: 1px solid CanvasText;
103
+ /* 强制配色会去掉阴影,阴影是这块浮层唯一的边。边画成盒子里面的 1px 轮廓,不加尺寸,
104
+ 贴着视口上限的浮层照样留出两边的空隙;键盘聚焦时焦点环换掉这条边。 */
105
+ .astryx-popover:not(:focus-visible) {
106
+ outline: 1px solid CanvasText;
107
+ outline-offset: -1px;
100
108
  }
101
109
  }
102
110
  }
package/styles/toast.css CHANGED
@@ -233,4 +233,10 @@
233
233
  transition-duration: 0.01ms;
234
234
  }
235
235
  }
236
+
237
+ /* 主题对所有人减少动效(Theme 写在根上的标记):和系统设置一样,滑动直接落位,过渡仍会结束。 */
238
+ :where([data-astryx-reduced-motion]) .astryx-toast-viewport__row,
239
+ :where([data-astryx-reduced-motion]) .astryx-toast {
240
+ transition-duration: 0.01ms;
241
+ }
236
242
  }