@astryx-vue/core 0.20.0 → 0.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (313) hide show
  1. package/dist/AlertDialog/index.js +1 -1
  2. package/dist/{AlertDialog-Dbg8L2oy.js → AlertDialog-0UUojm_Q.js} +6 -6
  3. package/dist/AppShell/index.d.ts +1 -1
  4. package/dist/AppShell/index.js +1 -1
  5. package/dist/{AppShell-zEXmJb1h.js → AppShell-6rvfUu8p.js} +5 -5
  6. package/dist/Avatar/index.js +1 -1
  7. package/dist/{Avatar-D85dSNpq.js → Avatar-CXpGcula.js} +1 -1
  8. package/dist/AvatarGroup/index.d.ts +1 -1
  9. package/dist/AvatarGroup/index.js +1 -1
  10. package/dist/{AvatarGroup-AIu60Urv.js → AvatarGroup-BUXjzekw.js} +2 -2
  11. package/dist/Banner/index.d.ts +1 -1
  12. package/dist/Banner/index.js +1 -1
  13. package/dist/{Banner-BXITu2pn.js → Banner-fmkd6nXw.js} +1 -1
  14. package/dist/BottomSheet/index.js +2 -2
  15. package/dist/{BottomSheet-DNuzJPfQ.js → BottomSheet-DqAuZBgA.js} +3 -3
  16. package/dist/{BottomSheet-DV7bboru.js → BottomSheet-DrKtyVVo.js} +4 -4
  17. package/dist/Breadcrumbs/index.js +2 -2
  18. package/dist/{Breadcrumbs-yB6yZCuZ.js → Breadcrumbs-uaApwhFB.js} +1 -1
  19. package/dist/Button/index.d.ts +1 -1
  20. package/dist/Button/index.js +1 -1
  21. package/dist/{Button-BZtim0B-.js → Button-CQAjaQa0.js} +5 -5
  22. package/dist/ButtonGroup/index.d.ts +1 -1
  23. package/dist/ButtonGroup/index.js +1 -1
  24. package/dist/{ButtonGroup-EpWZowJP.js → ButtonGroup-DNN4O9_-.js} +3 -3
  25. package/dist/Calendar/index.d.ts +1 -1
  26. package/dist/Card/index.d.ts +1 -1
  27. package/dist/Carousel/index.d.ts +1 -1
  28. package/dist/Carousel/index.js +1 -1
  29. package/dist/{Carousel-BaCXqtKK.js → Carousel-C3O9Uavl.js} +1 -1
  30. package/dist/Center/index.d.ts +1 -1
  31. package/dist/Chat/index.d.ts +1 -1
  32. package/dist/Chat/index.js +1 -1
  33. package/dist/{Chat-CXwXzlZ0.js → Chat-CmjK6fBy.js} +5 -5
  34. package/dist/CheckboxInput/index.d.ts +1 -1
  35. package/dist/CheckboxInput/index.js +1 -1
  36. package/dist/{CheckboxInput-3ONBl1AY.js → CheckboxInput-D6ow4VuS.js} +34 -4
  37. package/dist/CheckboxList/index.d.ts +1 -1
  38. package/dist/CheckboxList/index.js +1 -1
  39. package/dist/{CheckboxList-CbRX5YDA.js → CheckboxList-CPaRsgRQ.js} +65 -6
  40. package/dist/ClickableCard/index.d.ts +1 -1
  41. package/dist/ClickableCard/index.js +1 -1
  42. package/dist/{ClickableCard-DH-zpF7o.js → ClickableCard-DMX5z-QV.js} +1 -1
  43. package/dist/Code/index.js +1 -1
  44. package/dist/{CodeBlock-CLVXVlB7.js → CodeBlock-DMG9rLQN.js} +1 -1
  45. package/dist/Collapsible/index.d.ts +1 -1
  46. package/dist/Collapsible/index.js +1 -1
  47. package/dist/{Collapsible-BG-u5nEt.js → Collapsible-BVoNZijw.js} +3 -3
  48. package/dist/CommandPalette/index.d.ts +1 -1
  49. package/dist/CommandPalette/index.js +1 -1
  50. package/dist/{CommandPalette-CV7t0ouM.js → CommandPalette-CmOytlWq.js} +3 -3
  51. package/dist/ComplexSelector/index.js +1 -1
  52. package/dist/{ComplexSelector-BOACo2vq.js → ComplexSelector-mfEoIHtI.js} +2 -2
  53. package/dist/ContextMenu/index.d.ts +1 -1
  54. package/dist/ContextMenu/index.js +2 -2
  55. package/dist/{ContextMenu-_cj8wRB6.js → ContextMenu-DDvOR25x.js} +6 -7
  56. package/dist/DateInput/index.d.ts +1 -1
  57. package/dist/DateInput/index.js +1 -1
  58. package/dist/{DateInput-DrMqXWSj.js → DateInput-pDh6H44y.js} +5 -5
  59. package/dist/DateRangeInput/index.d.ts +1 -1
  60. package/dist/DateRangeInput/index.js +1 -1
  61. package/dist/{DateRangeInput-BZuyhf-w.js → DateRangeInput-CQDfoXX5.js} +3 -3
  62. package/dist/DateTimeInput/index.d.ts +1 -1
  63. package/dist/DateTimeInput/index.js +1 -1
  64. package/dist/{DateTimeInput-DhB2gzx5.js → DateTimeInput-CZjere9H.js} +7 -7
  65. package/dist/Dialog/index.d.ts +1 -1
  66. package/dist/Dialog/index.js +3 -3
  67. package/dist/{Dialog-CztWmbf8.js → Dialog-BRlZ7n83.js} +3 -3
  68. package/dist/{Dialog-B2pOTrnQ.js → Dialog-XIB0KZ-m.js} +1 -1
  69. package/dist/{DialogHeader-5A5BUTTB.js → DialogHeader-DF6jFDq3.js} +2 -2
  70. package/dist/Drawer/index.d.ts +1 -1
  71. package/dist/Drawer/index.js +1 -1
  72. package/dist/{Drawer-Dt6paoDZ.js → Drawer-BYUELPLs.js} +2 -2
  73. package/dist/DropdownMenu/index.js +3 -3
  74. package/dist/{DropdownMenu-CFX1k1Ib.js → DropdownMenu-BBXFl5Mu.js} +9 -10
  75. package/dist/{DropdownMenu-D8s058G5.js → DropdownMenu-DY3yFENC.js} +35 -12
  76. package/dist/EmptyState/index.js +1 -1
  77. package/dist/{EmptyState-Bw0kWfMi.js → EmptyState-cs-L9Ovg.js} +3 -3
  78. package/dist/Field/index.js +3 -3
  79. package/dist/{Field-BXkGR8H0.js → Field-BQ3q-K5D.js} +1 -1
  80. package/dist/{FieldInfoTip-DzpUxMDh.js → FieldInfoTip-MgGzYEq0.js} +1 -1
  81. package/dist/{FieldLabel-DI7Yqdhf.js → FieldLabel-yH6KAVyU.js} +1 -1
  82. package/dist/FileInput/index.d.ts +1 -1
  83. package/dist/FileInput/index.js +1 -1
  84. package/dist/{FileInput-BNHjbyQY.js → FileInput-R8CqJrA5.js} +2 -2
  85. package/dist/Heading/index.js +1 -1
  86. package/dist/{Heading-Oph-5DDq.js → Heading-DkCkHEG-.js} +1 -1
  87. package/dist/HoverCard/index.d.ts +1 -1
  88. package/dist/HoverCard/index.js +1 -1
  89. package/dist/{HoverCard-FHYH3VXg.js → HoverCard-D0KqUCXI.js} +4 -4
  90. package/dist/IconButton/index.js +1 -1
  91. package/dist/{IconButton-Du2XBBAX.js → IconButton-DR9_545-.js} +1 -1
  92. package/dist/InfoTip/index.d.ts +1 -1
  93. package/dist/InfoTip/index.js +1 -1
  94. package/dist/{InfoTip-Bjw1ithP.js → InfoTip-BfgtAgck.js} +2 -2
  95. package/dist/{InputClearButton-CED-zP2y.js → InputClearButton-DaFtlyKR.js} +1 -1
  96. package/dist/InputGroup/index.d.ts +1 -1
  97. package/dist/InputGroup/index.js +1 -1
  98. package/dist/{InputGroup-D5PoL4cU.js → InputGroup-1CLPKULR.js} +1 -1
  99. package/dist/{Item-CNR22qzk.js → Item-CzKm9wxQ.js} +19 -11
  100. package/dist/{LayerContentBoundary-CpqXMTyU.js → LayerContentBoundary-lxUfJk2v.js} +1 -1
  101. package/dist/Lightbox/index.js +1 -1
  102. package/dist/{Lightbox-D8kFIbPj.js → Lightbox-DyaSfJix.js} +4 -4
  103. package/dist/Link/index.d.ts +1 -1
  104. package/dist/Link/index.js +1 -1
  105. package/dist/{Link-CQ-Ztuo_.js → Link-JVAfvoxT.js} +2 -2
  106. package/dist/List/index.d.ts +1 -1
  107. package/dist/List/index.js +2 -2
  108. package/dist/{ListItem-BJ6ZaKcj.js → ListItem-Bc4snKv8.js} +1 -1
  109. package/dist/Markdown/index.d.ts +1 -1
  110. package/dist/Markdown/index.js +1 -1
  111. package/dist/{Markdown-DnnWjJGX.js → Markdown-DtnPfhP0.js} +3 -3
  112. package/dist/MobileNav/index.js +1 -1
  113. package/dist/{MobileNavToggle-CKEOroi0.js → MobileNavToggle-CPNsCIFR.js} +3 -3
  114. package/dist/MoreMenu/index.d.ts +1 -1
  115. package/dist/MoreMenu/index.js +1 -1
  116. package/dist/{MoreMenu-i80Ey9vR.js → MoreMenu-DQjrchg5.js} +5 -5
  117. package/dist/MultiSelector/index.d.ts +1 -1
  118. package/dist/MultiSelector/index.js +1 -1
  119. package/dist/{MultiSelector-CkAhUYdn.js → MultiSelector-sJ-LUrze.js} +8 -8
  120. package/dist/{NavDisclosure-Dg6U7pc7.js → NavDisclosure-CE79mxpa.js} +1 -1
  121. package/dist/{NavHeadingSurface-DZPa2px5.js → NavHeadingSurface-EsNdvhx7.js} +1 -1
  122. package/dist/NavItem/index.d.ts +1 -1
  123. package/dist/NavItem/index.js +1 -1
  124. package/dist/{NavItem-CcbOJNnY.js → NavItem-CB3loauj.js} +1 -1
  125. package/dist/NavMenu/index.js +3 -3
  126. package/dist/{NavMenu-CTbvZnO2.js → NavMenu-_Mo1yWZC.js} +4 -4
  127. package/dist/{NavMenuItem-BS0oULrz.js → NavMenuItem-CDHKFOKi.js} +4 -4
  128. package/dist/NumberInput/index.d.ts +1 -1
  129. package/dist/NumberInput/index.js +1 -1
  130. package/dist/{NumberInput-BsWTXomE.js → NumberInput-Bpc2c39W.js} +3 -3
  131. package/dist/Outline/index.js +1 -1
  132. package/dist/{Outline-eucTzyZu.js → Outline-NuPQMjxw.js} +2 -2
  133. package/dist/OverflowList/index.d.ts +1 -1
  134. package/dist/OverflowList/index.js +1 -1
  135. package/dist/{OverflowList-B6Alf6bi.js → OverflowList-Dx_Iw8xd.js} +2 -2
  136. package/dist/Overlay/index.d.ts +1 -1
  137. package/dist/Pagination/index.d.ts +1 -1
  138. package/dist/Pagination/index.js +1 -1
  139. package/dist/{Pagination-C0oI5FRP.js → Pagination-D7sbjDKw.js} +2 -2
  140. package/dist/Popover/index.d.ts +1 -1
  141. package/dist/Popover/index.js +1 -1
  142. package/dist/{Popover-Cl4gQQZq.js → Popover-Bhi0b1x0.js} +6 -6
  143. package/dist/PowerSearch/index.d.ts +1 -1
  144. package/dist/PowerSearch/index.js +1 -1
  145. package/dist/{PowerSearch-CPgbhvEL.js → PowerSearch-B13bgXSs.js} +17 -17
  146. package/dist/ProgressBar/index.d.ts +1 -1
  147. package/dist/ProgressBar/index.js +1 -1
  148. package/dist/{ProgressBar-DgyPRxV0.js → ProgressBar-BtEaKOhz.js} +1 -1
  149. package/dist/Radio/index.d.ts +1 -1
  150. package/dist/Radio/index.js +1 -1
  151. package/dist/{RadioGroup-FhoQMqg5.js → RadioGroup-CFqN0t92.js} +12 -4
  152. package/dist/RadioList/index.d.ts +1 -1
  153. package/dist/RadioList/index.js +1 -1
  154. package/dist/{RadioList-DK2uXQ5S.js → RadioList-DVNkGcpc.js} +1 -1
  155. package/dist/ScrollableArea/index.d.ts +1 -1
  156. package/dist/SegmentedControl/index.d.ts +1 -1
  157. package/dist/SegmentedControl/index.js +1 -1
  158. package/dist/{SegmentedControl-BCvscZM9.js → SegmentedControl-DFUYTOVH.js} +10 -3
  159. package/dist/SelectableCard/index.d.ts +1 -1
  160. package/dist/SelectableCard/index.js +1 -1
  161. package/dist/{SelectableCard-CLwYtbZl.js → SelectableCard-DUTtyApJ.js} +1 -1
  162. package/dist/Selector/index.d.ts +1 -1
  163. package/dist/Selector/index.js +1 -1
  164. package/dist/{Selector-CUTnAjq-.js → Selector-sGqS3qNy.js} +6 -6
  165. package/dist/SideNav/index.d.ts +1 -1
  166. package/dist/SideNav/index.js +2 -2
  167. package/dist/{SideNav-5yLlEOdD.js → SideNav-Dw9MydVe.js} +11 -11
  168. package/dist/Slider/index.js +1 -1
  169. package/dist/{Slider-DIgb8ogt.js → Slider-BkVTjzrx.js} +3 -3
  170. package/dist/StatusDot/index.js +1 -1
  171. package/dist/{StatusDot-Cxm-uhTD.js → StatusDot-D4S8b-FU.js} +1 -1
  172. package/dist/Stepper/index.d.ts +1 -1
  173. package/dist/Stepper/index.js +1 -1
  174. package/dist/{Stepper-CnNUZDMO.js → Stepper-CQd4YlPC.js} +1 -1
  175. package/dist/Switch/index.d.ts +1 -1
  176. package/dist/Switch/index.js +1 -1
  177. package/dist/{Switch-5toeiELX.js → Switch-DU-MRs1W.js} +2 -2
  178. package/dist/TabList/index.d.ts +1 -1
  179. package/dist/TabList/index.js +1 -1
  180. package/dist/{TabList-D_OvLcD5.js → TabList-CmB55DUS.js} +4 -4
  181. package/dist/Table/index.d.ts +1 -1
  182. package/dist/Table/index.js +1 -1
  183. package/dist/{Table-Eok91IcO.js → Table-BUh0OjeU.js} +15 -15
  184. package/dist/Text/index.js +2 -2
  185. package/dist/{Text-CiSw2pOi.js → Text-BBQUFWb_.js} +1 -1
  186. package/dist/TextArea/index.d.ts +1 -1
  187. package/dist/TextArea/index.js +1 -1
  188. package/dist/{TextArea-B82oXF-m.js → TextArea-BVppzw5n.js} +4 -4
  189. package/dist/TextInput/index.d.ts +1 -1
  190. package/dist/TextInput/index.js +1 -1
  191. package/dist/{TextInput-_SIiqVOY.js → TextInput-CmxKsaUt.js} +4 -4
  192. package/dist/Thumbnail/index.js +1 -1
  193. package/dist/{Thumbnail-BlueoqOH.js → Thumbnail-_KR0IRj-.js} +3 -3
  194. package/dist/{TimeField-jfhGVEyI.js → TimeField-Dbr2MOqX.js} +6 -6
  195. package/dist/TimeInput/index.d.ts +1 -1
  196. package/dist/TimeInput/index.js +1 -1
  197. package/dist/{TimeInput-CvFcN4nl.js → TimeInput-hzZ3tuAw.js} +2 -2
  198. package/dist/Timer/index.js +1 -1
  199. package/dist/{Timer-DiIs5GLA.js → Timer-UnFtEgGb.js} +2 -2
  200. package/dist/Timestamp/index.d.ts +1 -1
  201. package/dist/Timestamp/index.js +1 -1
  202. package/dist/{Timestamp-D9Jyk9sD.js → Timestamp-DiPZTa4W.js} +3 -3
  203. package/dist/Toast/index.js +1 -1
  204. package/dist/{Toast-D4Q6wvYu.js → Toast-kV5KuJdD.js} +1 -1
  205. package/dist/ToggleButton/index.d.ts +1 -1
  206. package/dist/ToggleButton/index.js +1 -1
  207. package/dist/{ToggleButton-CO0XWWc0.js → ToggleButton-DZ3n-izd.js} +3 -3
  208. package/dist/Token/index.d.ts +1 -1
  209. package/dist/Token/index.js +1 -1
  210. package/dist/{Token-jBbgdevV.js → Token-CPNzkSj3.js} +1 -1
  211. package/dist/Tokenizer/index.d.ts +1 -1
  212. package/dist/Tokenizer/index.js +1 -1
  213. package/dist/{Tokenizer-CsFiYUJ_.js → Tokenizer-e8BisAF8.js} +6 -6
  214. package/dist/Toolbar/index.d.ts +1 -1
  215. package/dist/Toolbar/index.js +1 -1
  216. package/dist/{Toolbar-BH_E0F0G.js → Toolbar-B4Vltu-j.js} +1 -1
  217. package/dist/Tooltip/index.d.ts +1 -1
  218. package/dist/Tooltip/index.js +2 -2
  219. package/dist/{Tooltip-DQipgW1R.js → Tooltip-CPyoc4cM.js} +1 -1
  220. package/dist/TopNav/index.d.ts +1 -1
  221. package/dist/TopNav/index.js +1 -1
  222. package/dist/{TopNav-CSFUTuyI.js → TopNav-OOGD2uOp.js} +6 -6
  223. package/dist/TreeList/index.d.ts +1 -1
  224. package/dist/TreeList/index.js +1 -1
  225. package/dist/{TreeList-B33huihx.js → TreeList-DJQvL5tG.js} +19 -11
  226. package/dist/Typeahead/index.js +2 -2
  227. package/dist/{Typeahead--kEp21ut.js → Typeahead--CFFYPMl.js} +6 -6
  228. package/dist/{assertOptions-CK_gJ0d3.js → assertOptions-DLEhkmM-.js} +1 -1
  229. package/dist/{batch-BJD6Bt-O.js → batch-oTkSbtVz.js} +3 -1
  230. package/dist/clickGuard-ChKuogmR.js +132 -0
  231. package/dist/composables/index.d.ts +2 -2
  232. package/dist/composables/index.js +15 -16
  233. package/dist/composables-DSx0MWv0.js +11917 -0
  234. package/dist/{context-Cj_zItu2.js → context-DQPBIsl5.js} +2 -2
  235. package/dist/{dateParser-DS_a8Ej8.js → dateParser-BKoaawL9.js} +46 -2
  236. package/dist/{edge-DIlkB7vS.js → edge-3sC8-cbB.js} +1 -1
  237. package/dist/{edgeRide-D0oC2JEB.js → edgeRide-DOxmVxTM.js} +4 -3
  238. package/dist/focusAcrossSwap-Casww_IY.js +19 -0
  239. package/dist/{focusReturn-D7Y7Pwwb.js → focusReturn-CiSQAp52.js} +1 -1
  240. package/dist/handle-CSHfxBie.js +298 -0
  241. package/dist/{index-DBu-H-vB.d.ts → index-0pBqcQXV.d.ts} +164 -7
  242. package/dist/{index-C93nwgTW.d.ts → index-51CkIKnI.d.ts} +1 -1
  243. package/dist/{index-CO9GW-ik.d.ts → index-B-3EGjfQ.d.ts} +1 -1
  244. package/dist/{index-TXcNH86P.d.ts → index-B1eCxBCY.d.ts} +1 -1
  245. package/dist/{index-Qdbssopn.d.ts → index-B6svLvfZ.d.ts} +1 -1
  246. package/dist/{index--kbwaSXW.d.ts → index-B8K2sDmO.d.ts} +3 -3
  247. package/dist/{index-BuubzuE8.d.ts → index-BDZCJ9ri.d.ts} +2 -2
  248. package/dist/{index-DtZUOyCy.d.ts → index-BJputYk6.d.ts} +3 -3
  249. package/dist/{index-CHLLk77c.d.ts → index-BOzyKBg8.d.ts} +7 -7
  250. package/dist/{index-gxuXI7KD.d.ts → index-BZNoML0r.d.ts} +7 -7
  251. package/dist/{index-COgrQZIL.d.ts → index-BaFphczL.d.ts} +1 -1
  252. package/dist/{index-CTjkJP4x.d.ts → index-Bgk1Rj2A.d.ts} +1 -1
  253. package/dist/{index-CKUfpmFL.d.ts → index-C3FgFPrM.d.ts} +3 -1
  254. package/dist/{index-CKnr0JlT.d.ts → index-C4S65SAW.d.ts} +1 -1
  255. package/dist/{index-BvWBeoa8.d.ts → index-CEjvYAUZ.d.ts} +1 -1
  256. package/dist/{index-mPBIdznc.d.ts → index-CNzSg1OM.d.ts} +8 -8
  257. package/dist/{index-Otl047R1.d.ts → index-Cb-rvc1W.d.ts} +1 -1
  258. package/dist/{index-C9ZssPUV.d.ts → index-CiVrhGUJ.d.ts} +1 -1
  259. package/dist/{index-mK1ICsVg.d.ts → index-Cm36VS1A.d.ts} +2 -2
  260. package/dist/{index-Xhq1E7WZ.d.ts → index-DB1EP38S.d.ts} +1 -1
  261. package/dist/{index-DoSTYXsP.d.ts → index-DFTrqCmp.d.ts} +3 -3
  262. package/dist/{index-DbfcTFO6.d.ts → index-DSoQE84m.d.ts} +52 -52
  263. package/dist/{index-ZKBj_1nu.d.ts → index-Dge6tyPE.d.ts} +1 -1
  264. package/dist/{index-CBOv5j3c.d.ts → index-FeZXsFO-.d.ts} +3 -3
  265. package/dist/{index-eCp-ElSp.d.ts → index-MvrDMqnQ.d.ts} +1 -1
  266. package/dist/{index-Djf0M7PH.d.ts → index-PffxihMx.d.ts} +1 -1
  267. package/dist/{index-BKnyTWPM.d.ts → index-ZbNwGVkS.d.ts} +1 -1
  268. package/dist/{index-Cy1rEWC-.d.ts → index-fz8XqpNd.d.ts} +1 -1
  269. package/dist/{index-yQc-te9a.d.ts → index-ql9ApSTF.d.ts} +2 -2
  270. package/dist/index.d.ts +31 -31
  271. package/dist/index.js +108 -109
  272. package/dist/{interactionModality-B5dR7nnb.js → interactionModality-JFDvbtbb.js} +2 -1
  273. package/dist/{landing-C7nc9JHm.js → landing-DFC97kl9.js} +2 -2
  274. package/dist/{layerFocusReturn-B8Hp14ZG.js → layerFocusReturn-DJ5mlqYj.js} +1 -1
  275. package/dist/{pressFeedback-BajhWhi1.js → pressFeedback-CEUPQWIS.js} +297 -118
  276. package/dist/pressGesture-BzIBmKF2.js +615 -0
  277. package/dist/sharedMutationObserver-Dvh3N1N2.js +41 -0
  278. package/dist/sharedRealm-H1OrlP0V.js +124 -0
  279. package/dist/{stillPointerGate-0vdn-hSa.js → stillPointerGate-BTISispN.js} +1 -1
  280. package/dist/{timeFormat-CqrwFE42.js → timeFormat-Cnd5vu5t.js} +1 -1
  281. package/dist/{timeParser-D9tCF_b3.js → timeParser-nVL5sIwT.js} +34 -5
  282. package/dist/{tooltipFocusRules-D4cJ08fk.js → tooltipFocusRules-DPsyi9L5.js} +2 -2
  283. package/dist/{tooltipTriggerRules-PBxqztvn.js → tooltipTriggerRules-Dazz57_v.js} +1 -1
  284. package/dist/{useActionGroupTracking-DGeOIv3K.js → useActionGroupTracking-PVBCtLUE.js} +5 -4
  285. package/dist/{useCombobox-DIR9yoEu.js → useCombobox-DTDT9dRx.js} +1 -1
  286. package/dist/{useDismiss-Dfb0Ky7T.js → useDismiss-N66C48zd.js} +1 -1
  287. package/dist/{useFocusTrap-DsYtRdmV.js → useFocusTrap-DzspshsM.js} +2 -2
  288. package/dist/{useInputStatusIcon-ne9V7ZQC.js → useInputStatusIcon-D1WRYTOZ.js} +1 -1
  289. package/dist/{useListFocus-CbHkLT-X.js → useListFocus-CkHfsZp0.js} +23 -5
  290. package/dist/{useMenuDrillIn-BaNYxWiS.js → useMenuDrillIn-RZwY55RM.js} +1 -1
  291. package/dist/{useMenuHover-CQYo0XCC.js → useMenuHover-CfQtWMg-.js} +1 -1
  292. package/dist/{useMenuPress-9dOj2hvC.js → useMenuPress-Cm7LVmHJ.js} +63 -15
  293. package/dist/{usePressFeedback-2YAzGB6C.js → usePressFeedback-aufF1sCH.js} +1 -1
  294. package/dist/{useResizable-BMlG1oxA.js → useResizable-C9FtmPir.js} +1 -1
  295. package/dist/{useRestoreFocus-Cz_jM_nW.js → useRestoreFocus-CEbfcwWb.js} +2 -2
  296. package/dist/{useTimeValue-CcKrnO8z.js → useTimeValue-8YfPQffv.js} +2 -2
  297. package/dist/{useTooltip-C7gHRGEO.js → useTooltip-BfOruqIL.js} +5 -5
  298. package/dist/{useTouchHitArea-BI-CtI7e.js → useTouchHitArea-BMDBe36j.js} +51 -8
  299. package/dist/{useTouchTriggerInternal-Bs7obOrb.js → useTouchTriggerInternal-TQnpDkL0.js} +1 -1
  300. package/dist/{useTruncation-C4pdlaXa.js → useTruncation-D_T-ezdp.js} +1 -40
  301. package/dist/{useTruncationTooltip-DwUQN7fD.js → useTruncationTooltip-CbzoB-1m.js} +5 -5
  302. package/dist/{useTypeahead-BrWvmOu9.js → useTypeahead-BGmDZyPB.js} +1 -1
  303. package/dist/{useTypeaheadMenuConfig--4f7jR6G.js → useTypeaheadMenuConfig-BZaduAP4.js} +2 -2
  304. package/dist/utils/index.d.ts +1 -1
  305. package/dist/utils/index.js +2 -2
  306. package/package.json +1 -1
  307. package/styles/touch-hit-area.css +28 -0
  308. package/styles/tree-list.css +9 -4
  309. package/dist/composables-CDrwFX0l.js +0 -5420
  310. package/dist/handle-ChN2TMKH.js +0 -458
  311. package/dist/pressGesture-B3z3W3Za.js +0 -78
  312. package/dist/strayClick-_QKRT5aH.js +0 -99
  313. package/dist/{index-CHx33xGa.d.ts → index-5FGt4HsB.d.ts} +1 -1
@@ -0,0 +1,124 @@
1
+ //#region src/utils/nodeType.ts
2
+ /**
3
+ * 对应原版 Astryx 的 `utils/nodeType`。
4
+ *
5
+ * 按 `nodeType` 判断节点种类,不用 `instanceof`:别的窗口(iframe)里的节点也认得出来。
6
+ */
7
+ /** `value` 是不是一个节点,不管来自哪个窗口。 */
8
+ function isNode(value) {
9
+ return typeof value === "object" && value != null && typeof value.nodeType === "number";
10
+ }
11
+ /** `value` 是不是一个元素,不管来自哪个窗口。 */
12
+ function isElement(value) {
13
+ return isNode(value) && value.nodeType === 1;
14
+ }
15
+ /** `value` 是不是一个 shadow root,不管来自哪个窗口。 */
16
+ function isShadowRoot(value) {
17
+ return isNode(value) && value.nodeType === 11 && "host" in value;
18
+ }
19
+ /** `value` 是不是一个文档,不管来自哪个窗口。 */
20
+ function isDocument(value) {
21
+ return isNode(value) && value.nodeType === 9;
22
+ }
23
+ /** `value` 是不是一个 HTML 元素,不管来自哪个窗口:看命名空间,在窗口之间搬过的元素也认得出来。 */
24
+ function isHTMLElement(value) {
25
+ return isElement(value) && value.namespaceURI === "http://www.w3.org/1999/xhtml";
26
+ }
27
+ //#endregion
28
+ //#region src/utils/flatTree.ts
29
+ /**
30
+ * 对应原版 Astryx 的 `utils/flatTree`。
31
+ *
32
+ * 沿“扁平树”往上走:浏览器滚动和派发事件走的就是这棵树。
33
+ * 被分配进 slot 的节点上一层是它的 slot,shadow root 上一层是它的宿主。
34
+ */
35
+ /** 节点在扁平树里的父节点,穿过 shadow root 到宿主。 */
36
+ function parentAcrossShadow(node) {
37
+ const slot = node.assignedSlot;
38
+ if (slot != null) return slot;
39
+ if (node.parentNode != null) return isShadowRoot(node.parentNode) ? node.parentNode.host : node.parentNode;
40
+ return null;
41
+ }
42
+ /**
43
+ * Whether `node` is `ancestor` or below it along the flat tree: across an open
44
+ * shadow root to its host, which `Node.contains` does not follow.
45
+ */
46
+ function containsAlongFlatTree(ancestor, node) {
47
+ for (let at = node; at != null; at = parentAcrossShadow(at)) if (at === ancestor) return true;
48
+ return false;
49
+ }
50
+ /** The focused element of `doc`, inside open shadow roots too. */
51
+ function deepActiveElement(doc) {
52
+ let active = doc?.activeElement ?? null;
53
+ while (active?.shadowRoot?.activeElement != null) active = active.shadowRoot.activeElement;
54
+ return active;
55
+ }
56
+ /**
57
+ * The host of a shadow root, open or closed and from any window, and null for
58
+ * any other node.
59
+ */
60
+ function shadowHostOf(node) {
61
+ return isShadowRoot(node) ? node.host : null;
62
+ }
63
+ /**
64
+ * The shadow roots from `node` out to its document, innermost first, each with
65
+ * its host. Empty when `node` is not a shadow root.
66
+ */
67
+ function shadowRootsOutward(node) {
68
+ const roots = [];
69
+ for (let at = node, host = shadowHostOf(at); host != null; at = host.getRootNode(), host = shadowHostOf(at)) roots.push({
70
+ root: at,
71
+ host
72
+ });
73
+ return roots;
74
+ }
75
+ //#endregion
76
+ //#region src/utils/sharedRealm.ts
77
+ /**
78
+ * 对应原版 Astryx 的 `utils/sharedRealm`。
79
+ *
80
+ * 整个 JavaScript 运行环境里按键共享一份值:页面上同时加载了两份 core(比如包本身和一份复制进项目的副本)时,
81
+ * 两边拿同一个键读到的是同一份值。不碰 DOM,服务端也能用。
82
+ */
83
+ /**
84
+ * 共享值的注册键。版本号表示值的形状:形状变了、旧副本读不懂新值时就升版本,
85
+ * 两边各用各的。
86
+ */
87
+ function sharedKey(name, version) {
88
+ return Symbol.for(`@astryx-vue/core/${name}/v${version}`);
89
+ }
90
+ /**
91
+ * `key` 下的共享值,第一次用时创建。
92
+ * `accepts` 防键撞车:它不认的值原样留着,这一份自己另建一个。
93
+ */
94
+ function realmValue(key, create, accepts = () => true) {
95
+ const realm = globalThis;
96
+ if (Object.hasOwn(realm, key)) {
97
+ const existing = realm[key];
98
+ return accepts(existing) ? existing : create();
99
+ }
100
+ const value = create();
101
+ realm[key] = value;
102
+ return value;
103
+ }
104
+ /**
105
+ * 按注册名在整页共享一份值:计数器、开关,或装着几样东西的对象。
106
+ * 名字写成 `<目录>/<文件>/<绑定名>`(短横线小写),值的形状变了就升版本。
107
+ */
108
+ function sharedState(name, version, create) {
109
+ return realmValue(sharedKey(name, version), create);
110
+ }
111
+ /** 按注册名共享的 Map。 */
112
+ function sharedMap(name, version) {
113
+ return sharedState(name, version, () => /* @__PURE__ */ new Map());
114
+ }
115
+ /** 按注册名共享的 WeakMap,例如按文档存的状态。 */
116
+ function sharedWeakMap(name, version) {
117
+ return sharedState(name, version, () => /* @__PURE__ */ new WeakMap());
118
+ }
119
+ /** 按注册名共享的 WeakSet,例如登记过的值。 */
120
+ function sharedWeakSet(name, version) {
121
+ return sharedState(name, version, () => /* @__PURE__ */ new WeakSet());
122
+ }
123
+ //#endregion
124
+ export { sharedWeakMap as a, deepActiveElement as c, shadowRootsOutward as d, isDocument as f, isNode as h, sharedState as i, parentAcrossShadow as l, isHTMLElement as m, sharedKey as n, sharedWeakSet as o, isElement as p, sharedMap as r, containsAlongFlatTree as s, realmValue as t, shadowHostOf as u };
@@ -1,4 +1,4 @@
1
- import { n as usePositionedLayer, t as useDismiss } from "./useDismiss-Dfb0Ky7T.js";
1
+ import { n as usePositionedLayer, t as useDismiss } from "./useDismiss-N66C48zd.js";
2
2
  import { n as clampInlineSize } from "./inlineSize-BNe8wggI.js";
3
3
  import { computed, onMounted, ref, toValue, watch } from "vue";
4
4
  //#region src/Typeahead/useAnchoredListbox.ts
@@ -1,4 +1,4 @@
1
- import { l as parseISOTime } from "./timeParser-D9tCF_b3.js";
1
+ import { l as parseISOTime } from "./timeParser-nVL5sIwT.js";
2
2
  import { n as toAsciiDigits, t as INVISIBLE_CHARS } from "./unicodeDigits-_BYIJcAu.js";
3
3
  //#region src/utils/timeFormat.ts
4
4
  const symbolsByLocale = /* @__PURE__ */ new Map();
@@ -4,9 +4,12 @@
4
4
  * Returns null if the string is not a valid time format.
5
5
  */
6
6
  function createISOTimeString(value) {
7
- const parsed = parseISOTime(value);
7
+ if (typeof value !== "string") return null;
8
+ const trimmed = value.trim();
9
+ if (!/^\d{1,2}:\d{1,2}(?::\d{1,2}(?:\.\d+)?)?$/.test(trimmed)) return null;
10
+ const parsed = parseISOTime(trimmed);
8
11
  if (!parsed) return null;
9
- return formatISOTime(parsed, value.split(":").length === 3);
12
+ return formatISOTime(parsed, trimmed.split(":").length === 3);
10
13
  }
11
14
  /**
12
15
  * Parses an ISO time string into a ParsedTime object.
@@ -170,21 +173,47 @@ function isTimeInRange(time, min, max) {
170
173
  return true;
171
174
  }
172
175
  /**
173
- * Clamps a time to a min/max range.
176
+ * Clamps a time to a min/max range. Without seconds, a bound that falls
177
+ * between whole minutes gives the nearest whole minute inside the range. With
178
+ * no whole minute inside it, the bound itself answers, seconds included.
174
179
  */
175
180
  function clampTime(time, min, max, includeSeconds = false) {
176
181
  if (!parseISOTime(time)) return time;
177
182
  if (min && compareTime(time, min) < 0) {
178
183
  const parsedMin = parseISOTime(min);
179
- if (parsedMin) return formatISOTime(parsedMin, includeSeconds);
184
+ if (parsedMin) {
185
+ const reached = onWholeMinute(parsedMin, 1, includeSeconds, max);
186
+ return formatISOTime(reached, includeSeconds || reached.second !== 0);
187
+ }
180
188
  }
181
189
  if (max && compareTime(time, max) > 0) {
182
190
  const parsedMax = parseISOTime(max);
183
- if (parsedMax) return formatISOTime(parsedMax, includeSeconds);
191
+ if (parsedMax) {
192
+ const reached = onWholeMinute(parsedMax, -1, includeSeconds, min);
193
+ return formatISOTime(reached, includeSeconds || reached.second !== 0);
194
+ }
184
195
  }
185
196
  return time;
186
197
  }
187
198
  /**
199
+ * A bound as a time without seconds reaches it: the next whole minute up from
200
+ * a minimum, or the whole minute down from a maximum. With no whole minute
201
+ * before the other bound, the bound stays as it is.
202
+ */
203
+ function onWholeMinute(bound, direction, includeSeconds, other) {
204
+ if (includeSeconds || bound.second === 0) return bound;
205
+ const minutes = bound.hour * 60 + bound.minute + (direction === 1 ? 1 : 0);
206
+ if (minutes > 1439) return bound;
207
+ const rounded = {
208
+ hour: Math.floor(minutes / 60),
209
+ minute: minutes % 60,
210
+ second: 0
211
+ };
212
+ const order = compareTime(formatISOTime(rounded, true), other);
213
+ if (other && (direction === 1 ? order > 0 : order < 0)) return bound;
214
+ return rounded;
215
+ }
216
+ /**
188
217
  * Adjusts a time by adding/subtracting minutes.
189
218
  */
190
219
  function adjustTime(time, deltaMinutes, includeSeconds = false) {
@@ -1,5 +1,5 @@
1
- import { c as useLayerDepth, f as pushLayer, o as isTextEntryControl, t as getInteractionModality, u as isTopLayer } from "./interactionModality-B5dR7nnb.js";
2
- import { t as matchesFocusVisible } from "./tooltipTriggerRules-PBxqztvn.js";
1
+ import { c as useLayerDepth, f as pushLayer, o as isTextEntryControl, t as getInteractionModality, u as isTopLayer } from "./interactionModality-JFDvbtbb.js";
2
+ import { t as matchesFocusVisible } from "./tooltipTriggerRules-Dazz57_v.js";
3
3
  import { i as isFocusable } from "./focus-x7mxEqjR.js";
4
4
  import { onScopeDispose } from "vue";
5
5
  //#region src/layer/useHoverLayerDismiss.ts
@@ -1,4 +1,4 @@
1
- import { n as usePositionedLayer, t as useDismiss } from "./useDismiss-Dfb0Ky7T.js";
1
+ import { n as usePositionedLayer, t as useDismiss } from "./useDismiss-N66C48zd.js";
2
2
  import { computed, shallowRef, toValue, useId } from "vue";
3
3
  //#region src/composables/useLayer.ts
4
4
  /**
@@ -1,5 +1,6 @@
1
- import { i as createActionGroupTracker, o as resolveGroupTouch, r as GROUP_PRESS_POINTERS } from "./useTouchHitArea-BI-CtI7e.js";
2
- import { c as PRESS_GROUP_ITEM_ATTRIBUTE, i as isInsideScrollView, l as isTrackedByGroup, u as msSinceInput } from "./pressFeedback-BajhWhi1.js";
1
+ import { c as isTrackedByGroup, d as isInsideScrollView, h as msSinceInput, s as PRESS_GROUP_ITEM_ATTRIBUTE } from "./pressFeedback-CEUPQWIS.js";
2
+ import { i as createActionGroupTracker, o as resolveGroupTouch, r as GROUP_PRESS_POINTERS } from "./useTouchHitArea-BMDBe36j.js";
3
+ import { i as PRESS_SLOP_PX, n as PRESS_ONSET_MS } from "./pressGesture-BzIBmKF2.js";
3
4
  import { getCurrentScope, onScopeDispose, toValue, watch } from "vue";
4
5
  //#region src/composables/internal/useActionGroupTracking.ts
5
6
  const DISABLED = ":disabled, [aria-disabled=\"true\"]";
@@ -50,7 +51,7 @@ function useActionGroupTracking(rootRef, options) {
50
51
  function onMove(event) {
51
52
  if (event.pointerId !== pointerId) return;
52
53
  if (pending != null) {
53
- if (Math.hypot(event.clientX - pending.x, event.clientY - pending.y) > 10) finish();
54
+ if (Math.hypot(event.clientX - pending.x, event.clientY - pending.y) > PRESS_SLOP_PX) finish();
54
55
  return;
55
56
  }
56
57
  tracker.move(event.clientX, event.clientY);
@@ -98,7 +99,7 @@ function useActionGroupTracking(rootRef, options) {
98
99
  begin(root, x, y, target);
99
100
  return;
100
101
  }
101
- const wait = Math.max(0, 150 - msSinceInput(event.timeStamp, event));
102
+ const wait = Math.max(0, PRESS_ONSET_MS - msSinceInput(event.timeStamp, event));
102
103
  pending = {
103
104
  x,
104
105
  y,
@@ -1,4 +1,4 @@
1
- import { p as isImeKeyEvent } from "./interactionModality-B5dR7nnb.js";
1
+ import { p as isImeKeyEvent } from "./interactionModality-JFDvbtbb.js";
2
2
  import { computed, nextTick, onScopeDispose, ref, useId, watch } from "vue";
3
3
  //#region src/composables/internal/comboboxFieldProps.ts
4
4
  function hasModifier(event) {
@@ -1,6 +1,6 @@
1
1
  import { n as useLayerTeleportTarget } from "./useLayerMountTarget-BmZyeKWE.js";
2
2
  import { i as useLayerGutter, s as resolveLayerGutter } from "./context-M-er0-Rk.js";
3
- import { c as useLayerDepth, f as pushLayer } from "./interactionModality-B5dR7nnb.js";
3
+ import { c as useLayerDepth, f as pushLayer } from "./interactionModality-JFDvbtbb.js";
4
4
  import { nextTick, onScopeDispose, ref, toValue, watch } from "vue";
5
5
  //#region src/layer/anchorClear.ts
6
6
  function overlapsAnchor(anchor, top, left, layer) {
@@ -1,6 +1,6 @@
1
- import { i as trackInteractionModality, p as isImeKeyEvent } from "./interactionModality-B5dR7nnb.js";
1
+ import { i as trackInteractionModality, p as isImeKeyEvent } from "./interactionModality-JFDvbtbb.js";
2
2
  import { i as hasInnerRegionHolding, n as collapseRadioGroups, o as precedes, r as focusablesIn, s as registerRegion, t as attemptFocus } from "./focusRegion-CmDg7_4b.js";
3
- import { t as focusForLastInput } from "./focusReturn-D7Y7Pwwb.js";
3
+ import { t as focusForLastInput } from "./focusReturn-CiSQAp52.js";
4
4
  import { onScopeDispose, ref, toValue, watch } from "vue";
5
5
  //#region src/composables/useFocusTrap.ts
6
6
  /**
@@ -1,5 +1,5 @@
1
1
  import { t as _sfc_main } from "./FieldIcon-DMtfe1Ne.js";
2
- import { t as _sfc_main$1 } from "./FieldInfoTip-DzpUxMDh.js";
2
+ import { t as _sfc_main$1 } from "./FieldInfoTip-MgGzYEq0.js";
3
3
  import { computed, toValue } from "vue";
4
4
  //#region src/composables/useInputStatusIcon.ts
5
5
  /**
@@ -1,4 +1,26 @@
1
1
  import { ref, toValue, watch } from "vue";
2
+ //#region src/utils/isRtlElement.ts
3
+ /**
4
+ * @file isRtlElement.ts
5
+ * @input DOM element (nullable)
6
+ * @output Exports isRtlElement helper resolving an element's computed text
7
+ * direction
8
+ * @position Internal hook utility; used by useListFocus and useGridFocus to
9
+ * auto-detect RTL for arrow-key navigation (same getComputedStyle precedent
10
+ * as Resizable's ResizeHandle drag deltas).
11
+ */
12
+ /**
13
+ * Whether `el` renders right-to-left, per its computed `direction`.
14
+ *
15
+ * SSR-safe: returns false when `el` is null or no DOM is available. Callers
16
+ * should invoke this lazily (on keydown, not on render) so getComputedStyle
17
+ * runs only when a horizontal arrow key is actually handled.
18
+ */
19
+ function isRtlElement(el) {
20
+ if (!el || typeof window === "undefined") return false;
21
+ return window.getComputedStyle(el).direction === "rtl";
22
+ }
23
+ //#endregion
2
24
  //#region src/composables/useListFocus.ts
3
25
  const TEXT_INPUT_TYPES = /* @__PURE__ */ new Set([
4
26
  "text",
@@ -13,10 +35,6 @@ function isHiddenWithin(el, listEl) {
13
35
  const hidden = el.parentElement?.closest("[hidden],[inert]");
14
36
  return hidden != null && hidden !== listEl && listEl.contains(hidden);
15
37
  }
16
- function isRtlElement(el) {
17
- if (el == null || typeof window === "undefined") return false;
18
- return window.getComputedStyle(el).direction === "rtl";
19
- }
20
38
  function getContentEditableRoot(el) {
21
39
  if (el.isContentEditable) return el;
22
40
  const candidate = el.closest("[contenteditable]");
@@ -257,4 +275,4 @@ function useListFocus(options = {}) {
257
275
  };
258
276
  }
259
277
  //#endregion
260
- export { useListFocus as t };
278
+ export { isRtlElement as n, useListFocus as t };
@@ -1,7 +1,7 @@
1
1
  import { n as readLayerScoped, t as defineLayerScopedKey } from "./scopedProvide-C-Df7c15.js";
2
2
  import { t as _sfc_main$4 } from "./Icon-BCHo7W0x.js";
3
3
  import { o as useComponentMessages } from "./context-B8IEFCDR.js";
4
- import { t as _sfc_main$5 } from "./Item-CNR22qzk.js";
4
+ import { t as _sfc_main$5 } from "./Item-CzKm9wxQ.js";
5
5
  import { t as _sfc_main$6 } from "./CheckboxIndicator-fH4d-JE1.js";
6
6
  import { t as dropdownMenuMessages } from "./dropdown-menu-BDu4gWwQ.js";
7
7
  import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, inject, mergeModels, mergeProps, openBlock, provide, ref, renderSlot, toDisplayString, unref, useAttrs, useModel, useSlots, watch, withCtx } from "vue";
@@ -1,5 +1,5 @@
1
1
  import { t as useMediaQuery } from "./useMediaQuery-BzXGT1Aw.js";
2
- import { t as useListFocus } from "./useListFocus-CbHkLT-X.js";
2
+ import { t as useListFocus } from "./useListFocus-CkHfsZp0.js";
3
3
  import { t as createHideTimer } from "./hoverIntent-DMHGb85c.js";
4
4
  import { getCurrentScope, onScopeDispose, toValue, watch } from "vue";
5
5
  /**
@@ -1,18 +1,11 @@
1
- import { a as trackTouchOfPointer, i as runAsMenuPressActivation, t as armStrayClick } from "./strayClick-_QKRT5aH.js";
2
- import { m as currentGesture } from "./interactionModality-B5dR7nnb.js";
3
- import { t as focusForLastInput } from "./focusReturn-D7Y7Pwwb.js";
1
+ import { h as msSinceInput } from "./pressFeedback-CEUPQWIS.js";
2
+ import { i as withoutClickGuard, r as disarmEveryClickGuard, t as armClickGuard } from "./clickGuard-ChKuogmR.js";
3
+ import { m as currentGesture } from "./interactionModality-JFDvbtbb.js";
4
+ import { t as focusForLastInput } from "./focusReturn-CiSQAp52.js";
4
5
  import { getCurrentScope, onScopeDispose, toValue } from "vue";
5
6
  //#region src/composables/useLongPress.ts
6
7
  const DEFAULT_DELAY_MS = 500;
7
8
  const DEFAULT_MOVE_CANCEL_PX = 10;
8
- /** 大于这个数的时间戳是 epoch 毫秒(测试环境常见),不是页面时钟上的毫秒。 */
9
- const EPOCH_STAMP_FLOOR = 1e11;
10
- /** 把触摸事件的时间戳换成现在这一刻之前多久(毫秒)。读不出来按 0 算。 */
11
- function ageOf(stamp) {
12
- if (stamp == null || !Number.isFinite(stamp)) return 0;
13
- const now = stamp > EPOCH_STAMP_FLOOR ? Date.now() : typeof performance === "undefined" ? 0 : performance.now();
14
- return Math.max(0, now - stamp);
15
- }
16
9
  function touchPoint(event) {
17
10
  const touch = event.touches?.[0] ?? event.changedTouches?.[0];
18
11
  return touch == null ? null : {
@@ -98,7 +91,7 @@ function useLongPress(options) {
98
91
  }
99
92
  const point = touchPoint(event);
100
93
  if (point == null) return;
101
- start(point, ageOf(event.timeStamp));
94
+ start(point, msSinceInput(event.timeStamp, event));
102
95
  if (timer != null && Number.isFinite(event.timeStamp)) deadline = event.timeStamp + delayMs;
103
96
  }
104
97
  function onTouchMove(event) {
@@ -131,6 +124,60 @@ function useLongPress(options) {
131
124
  start
132
125
  };
133
126
  }
127
+ //#endregion
128
+ //#region src/composables/internal/menuPressActivation.ts
129
+ /**
130
+ * 菜单按压模型的两件小事:「正在派发按压激活」的标记,以及跟踪某个指针对应的 touch 标识。
131
+ *
132
+ * 按压模型在松开时已经替那一行派发过一次 click,浏览器随后还会再补一个。吞掉那一个的是全包共用的
133
+ * click 守卫(utils/clickGuard.ts):手势宿主、动作组和菜单都用它,只有一份监听、一个时间窗口。
134
+ * 菜单松开时布下的守卫一直装着(`staysInstalled`),手指松开时还取消挑选那根手指的 touchend,
135
+ * 浏览器就不会为它生成 click。
136
+ */
137
+ let isModelActivation = false;
138
+ /**
139
+ * 按压模型派发的那次行激活是不是正在进行。只在那次派发的同步过程中为真,
140
+ * 所以把激活转交给里面链接的行,能分清这是模型的 click 还是浏览器多出来的那个。
141
+ */
142
+ function isMenuPressActivation() {
143
+ return isModelActivation;
144
+ }
145
+ /** 在「模型激活」标记下执行一段同步代码;其间派发的 click 都不被守卫吞掉。 */
146
+ function runAsMenuPressActivation(run) {
147
+ withoutClickGuard(() => {
148
+ isModelActivation = true;
149
+ try {
150
+ run();
151
+ } finally {
152
+ isModelActivation = false;
153
+ }
154
+ });
155
+ }
156
+ /** 撤掉已经布下的守卫。卸载和测试里用。 */
157
+ function resetMenuPress() {
158
+ disarmEveryClickGuard();
159
+ }
160
+ /**
161
+ * 跟踪某个指针对应的 touch 标识。指针按下之后的下一个 touchstart 就是它的:
162
+ * WebKit 给 touch 的标识和指针 id 相同;Chromium 用自己的标识,这时唯一的那个改变的 touch 就是。
163
+ * 有好几个 touch 而且没有一个和指针 id 对得上,就说不出是哪根。
164
+ * 返回停止跟踪的函数,`identifier()` 取当前读到的标识。
165
+ */
166
+ function trackTouchOfPointer(view, pointerId) {
167
+ let identifier = null;
168
+ const stop = () => view.removeEventListener("touchstart", onTouchStart, true);
169
+ function onTouchStart(event) {
170
+ stop();
171
+ const touches = event.changedTouches == null ? [] : Array.from(event.changedTouches);
172
+ if (touches.some((touch) => touch.identifier === pointerId)) identifier = pointerId;
173
+ else identifier = touches.length === 1 ? touches[0].identifier : null;
174
+ }
175
+ view.addEventListener("touchstart", onTouchStart, true);
176
+ return {
177
+ identifier: () => identifier,
178
+ stop
179
+ };
180
+ }
134
181
  const AUTOSCROLL_STEP_PX = 6;
135
182
  const AUTOSCROLL_INTERVAL_MS = 16;
136
183
  /** `onTick` 在每次真的滚动之后调用:行在静止的指针下面移动了,要重新看指针下是哪一行。 */
@@ -507,9 +554,10 @@ function useMenuPress(options) {
507
554
  /** 手指松开时挑选的那根手指的 touchend 要取消;鼠标和笔没有 touchend。 */
508
555
  function armAfterRelease(doc, native, touchIdentifier) {
509
556
  const isTouch = native?.pointerType === "touch";
510
- armStrayClick(doc, {
557
+ armClickGuard(doc, {
558
+ staysInstalled: true,
511
559
  cancelsTouchEnd: isTouch,
512
- touchIdentifier
560
+ touchIdentifier: touchIdentifier ?? void 0
513
561
  });
514
562
  }
515
563
  function endGesture() {
@@ -721,4 +769,4 @@ function useMenuPress(options) {
721
769
  };
722
770
  }
723
771
  //#endregion
724
- export { useLongPress as a, MENU_PRESS_MARKER as i, MENU_PRESS_SETTLE_MS as n, menuPressStep as r, useMenuPress as t };
772
+ export { isMenuPressActivation as a, MENU_PRESS_MARKER as i, MENU_PRESS_SETTLE_MS as n, resetMenuPress as o, menuPressStep as r, useLongPress as s, useMenuPress as t };
@@ -1,4 +1,4 @@
1
- import { a as PRESSABLE_ATTRIBUTE, n as installPressFeedback, o as PRESS_ACTION_ATTRIBUTE, s as PRESS_CONTAINER_ATTRIBUTE } from "./pressFeedback-BajhWhi1.js";
1
+ import { a as PRESS_ACTION_ATTRIBUTE, i as PRESSABLE_ATTRIBUTE, n as installPressFeedback, o as PRESS_CONTAINER_ATTRIBUTE } from "./pressFeedback-CEUPQWIS.js";
2
2
  import { getCurrentInstance, getCurrentScope, onMounted, onScopeDispose } from "vue";
3
3
  import "../styles/pressable.css";
4
4
  //#region src/composables/usePressFeedback.ts
@@ -1,4 +1,4 @@
1
- import { p as isImeKeyEvent } from "./interactionModality-B5dR7nnb.js";
1
+ import { p as isImeKeyEvent } from "./interactionModality-JFDvbtbb.js";
2
2
  import { t as isApplePlatform } from "./isApplePlatform-B1ju6F5B.js";
3
3
  import { r as registerResizableChannel } from "./resizableChannel-3vivrEcT.js";
4
4
  import { computed, onBeforeUnmount, onMounted, onScopeDispose, reactive, ref, toValue, watch } from "vue";
@@ -1,5 +1,5 @@
1
- import { i as trackInteractionModality } from "./interactionModality-B5dR7nnb.js";
2
- import { t as focusForLastInput } from "./focusReturn-D7Y7Pwwb.js";
1
+ import { i as trackInteractionModality } from "./interactionModality-JFDvbtbb.js";
2
+ import { t as focusForLastInput } from "./focusReturn-CiSQAp52.js";
3
3
  import { onScopeDispose, watch } from "vue";
4
4
  //#region src/composables/useRestoreFocus.ts
5
5
  /**
@@ -1,5 +1,5 @@
1
- import { c as isTimeInRange$1, l as parseISOTime$1, s as formatISOTime$1, t as adjustTime, u as parseTimeInput } from "./timeParser-D9tCF_b3.js";
2
- import { i as readLocaleTime, n as formatLocaleTime } from "./timeFormat-CqrwFE42.js";
1
+ import { c as isTimeInRange$1, l as parseISOTime$1, s as formatISOTime$1, t as adjustTime, u as parseTimeInput } from "./timeParser-nVL5sIwT.js";
2
+ import { i as readLocaleTime, n as formatLocaleTime } from "./timeFormat-Cnd5vu5t.js";
3
3
  //#region src/composables/useTimeValue.ts
4
4
  /** 字段接受的 ISO 时间写法:两位时、两位分,可带两位秒。 */
5
5
  const STRICT_ISO_TIME = /^\d{2}:\d{2}(?::\d{2})?$/;
@@ -1,11 +1,11 @@
1
1
  import { s as registerLayerSurface } from "./useClickableContainer-Dtjg-nkm.js";
2
2
  import { r as useResolvedLayerTeleport } from "./useLayerMountTarget-BmZyeKWE.js";
3
- import { i as trackInteractionModality } from "./interactionModality-B5dR7nnb.js";
4
- import { n as useLayer } from "./tooltipTriggerRules-PBxqztvn.js";
5
- import { t as _sfc_main$1 } from "./LayerContentBoundary-CpqXMTyU.js";
3
+ import { i as trackInteractionModality } from "./interactionModality-JFDvbtbb.js";
4
+ import { n as useLayer } from "./tooltipTriggerRules-Dazz57_v.js";
5
+ import { t as _sfc_main$1 } from "./LayerContentBoundary-lxUfJk2v.js";
6
6
  import { t as useAnnounce } from "./announce-GU01Oix2.js";
7
- import { t as useTouchTriggerInternal } from "./useTouchTriggerInternal-Bs7obOrb.js";
8
- import { n as opensOnFocus, r as useHoverLayerDismiss, t as createFocusGate } from "./tooltipFocusRules-D4cJ08fk.js";
7
+ import { t as useTouchTriggerInternal } from "./useTouchTriggerInternal-TQnpDkL0.js";
8
+ import { n as opensOnFocus, r as useHoverLayerDismiss, t as createFocusGate } from "./tooltipFocusRules-DPsyi9L5.js";
9
9
  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";
10
10
  import "../styles/tooltip.css";
11
11
  //#region src/Tooltip/TooltipSurface.vue
@@ -1,5 +1,5 @@
1
- import { c as PRESS_GROUP_ITEM_ATTRIBUTE, l as isTrackedByGroup, r as pressFadeMs, t as PRESSED_ATTRIBUTE } from "./pressFeedback-BajhWhi1.js";
2
- import { t as armStrayClick } from "./strayClick-_QKRT5aH.js";
1
+ import { c as isTrackedByGroup, r as pressFadeMs, s as PRESS_GROUP_ITEM_ATTRIBUTE, t as PRESSED_ATTRIBUTE } from "./pressFeedback-CEUPQWIS.js";
2
+ import { t as armClickGuard } from "./clickGuard-ChKuogmR.js";
3
3
  import { toValue, watch } from "vue";
4
4
  import "../styles/touch-hit-area.css";
5
5
  /** 不长:热区就是目标本身。 */
@@ -183,6 +183,48 @@ function plainRect(element) {
183
183
  bottom
184
184
  };
185
185
  }
186
+ /** 变换没有缩放过的盒子。 */
187
+ const UNSCALED = {
188
+ x: 1,
189
+ y: 1
190
+ };
191
+ /** 一条轴上盒子在屏幕上的缩放:屏幕尺寸除以布局尺寸。 */
192
+ function axisScale(onScreen, layout) {
193
+ if (!(layout > 0) || !(onScreen > 0)) return 1;
194
+ const scale = onScreen / layout;
195
+ return Math.abs(scale - 1) < .001 ? 1 : scale;
196
+ }
197
+ /**
198
+ * 包着 `element` 的变换把它的盒子在屏幕上缩放了多少。从小比例展开的层会缩放里面的每个矩形,
199
+ * 而布局盒保持层最终的大小。只预期缩放:旋转或倾斜的盒子会被读成更大的缩放。
200
+ */
201
+ function screenScale(element, onScreen) {
202
+ const box = element;
203
+ const offsetWidth = box.offsetWidth ?? 0;
204
+ const offsetHeight = box.offsetHeight ?? 0;
205
+ if (offsetWidth === 0 || offsetHeight === 0) return UNSCALED;
206
+ if (Math.abs(onScreen.right - onScreen.left - offsetWidth) <= 1 && Math.abs(onScreen.bottom - onScreen.top - offsetHeight) <= 1) return UNSCALED;
207
+ const style = element.ownerDocument.defaultView?.getComputedStyle(element);
208
+ if (style == null || !style.width.endsWith("px")) return UNSCALED;
209
+ const px = (value) => Number.parseFloat(value) || 0;
210
+ const isContentBox = style.boxSizing !== "border-box";
211
+ const width = px(style.width) + (isContentBox ? px(style.paddingLeft) + px(style.paddingRight) + px(style.borderLeftWidth) + px(style.borderRightWidth) : 0);
212
+ const height = px(style.height) + (isContentBox ? px(style.paddingTop) + px(style.paddingBottom) + px(style.borderTopWidth) + px(style.borderBottomWidth) : 0);
213
+ return {
214
+ x: axisScale(onScreen.right - onScreen.left, width),
215
+ y: axisScale(onScreen.bottom - onScreen.top, height)
216
+ };
217
+ }
218
+ /** `rect` 换算到以 `origin` 为原点的那个盒子的布局像素:到 `origin` 的偏移除以盒子的屏幕缩放。 */
219
+ function inLayout(rect, origin, scale) {
220
+ if (scale.x === 1 && scale.y === 1) return rect;
221
+ return {
222
+ left: origin.left + (rect.left - origin.left) / scale.x,
223
+ top: origin.top + (rect.top - origin.top) / scale.y,
224
+ right: origin.left + (rect.right - origin.left) / scale.x,
225
+ bottom: origin.top + (rect.bottom - origin.top) / scale.y
226
+ };
227
+ }
186
228
  //#endregion
187
229
  //#region src/composables/internal/actionGroupTracker.ts
188
230
  /** 组跟踪手指和笔的滑动;鼠标保持原生按钮的行为。 */
@@ -304,7 +346,7 @@ function createActionGroupTracker() {
304
346
  if (!wasTracking || lifted == null) return null;
305
347
  paint(lifted, "fading");
306
348
  if (lifted.matches(DISABLED)) return null;
307
- armStrayClick(lifted.ownerDocument);
349
+ armClickGuard(lifted.ownerDocument);
308
350
  lifted.click();
309
351
  return lifted;
310
352
  },
@@ -420,16 +462,17 @@ function isOwn(element, candidate) {
420
462
  }
421
463
  function measureOne(watch, all) {
422
464
  const target = plainRect(watch.element);
465
+ const scale = screenScale(watch.element, target);
423
466
  const band = grown(target, {
424
- top: 44,
425
- right: 44,
426
- bottom: 44,
427
- left: 44
467
+ top: 44 * scale.y,
468
+ right: 44 * scale.x,
469
+ bottom: 44 * scale.y,
470
+ left: 44 * scale.x
428
471
  });
429
472
  const neighbours = all.filter(({ element, rect }) => rect.right > rect.left && rect.bottom > rect.top && rect.left < band.right && band.left < rect.right && rect.top < band.bottom && band.top < rect.bottom && !isOwn(watch.element, element)).map(({ rect }) => rect);
430
473
  return {
431
474
  target,
432
- insets: clampedHitInsets(target, neighbours, 44, watch.growth?.(target, watch.element)),
475
+ insets: clampedHitInsets(inLayout(target, target, scale), neighbours.map((rect) => inLayout(rect, target, scale)), 44, watch.growth?.(target, watch.element)),
433
476
  neighbours
434
477
  };
435
478
  }
@@ -1,5 +1,5 @@
1
1
  import { t as INTERACTIVE_SELECTORS } from "./useClickableContainer-Dtjg-nkm.js";
2
- import { a as isDisabledControl, i as trackInteractionModality, m as currentGesture, o as isTextEntryControl, r as isTextEntrySincePointer } from "./interactionModality-B5dR7nnb.js";
2
+ import { a as isDisabledControl, i as trackInteractionModality, m as currentGesture, o as isTextEntryControl, r as isTextEntrySincePointer } from "./interactionModality-JFDvbtbb.js";
3
3
  import { onScopeDispose, ref, toValue, watch } from "vue";
4
4
  //#region src/composables/internal/tapRecognizer.ts
5
5
  /** 「按下去」算作点击的指针类型。笔只在落笔时算:悬停的笔和鼠标一样是悬停。 */