@astryx-vue/core 0.34.0 → 0.35.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 (299) hide show
  1. package/dist/AlertDialog/index.js +1 -1
  2. package/dist/{AlertDialog-CdrF01J0.js → AlertDialog-rndlABEe.js} +8 -8
  3. package/dist/AppShell/index.js +1 -1
  4. package/dist/{AppShell-4hWTPKSD.js → AppShell-eVrOpRqn.js} +5 -5
  5. package/dist/Avatar/index.js +1 -1
  6. package/dist/{Avatar-C6E6TYbe.js → Avatar-CpWBsTqf.js} +1 -1
  7. package/dist/AvatarGroup/index.d.ts +1 -1
  8. package/dist/AvatarGroup/index.js +1 -1
  9. package/dist/{AvatarGroup-CACtdvXz.js → AvatarGroup-BEBUEhxF.js} +1 -1
  10. package/dist/Banner/index.d.ts +1 -1
  11. package/dist/Banner/index.js +1 -1
  12. package/dist/{Banner-CAyN5-NO.js → Banner-CVBNGDsD.js} +1 -1
  13. package/dist/BottomSheet/index.js +2 -2
  14. package/dist/{BottomSheet-BmmGemH5.js → BottomSheet-B3qXtKQj.js} +1 -1
  15. package/dist/{BottomSheet-DKEUVLe5.js → BottomSheet-C6vet4pm.js} +8 -4
  16. package/dist/Breadcrumbs/index.js +2 -2
  17. package/dist/{Breadcrumbs-BQnrbWXt.js → Breadcrumbs-B-w_yw-n.js} +1 -1
  18. package/dist/Button/index.d.ts +1 -1
  19. package/dist/Button/index.js +1 -1
  20. package/dist/{Button-CrZtv_4j.js → Button-DTdlisqJ.js} +4 -4
  21. package/dist/ButtonGroup/index.d.ts +1 -1
  22. package/dist/ButtonGroup/index.js +1 -1
  23. package/dist/{ButtonGroup-Jgx-IWPz.js → ButtonGroup-Bjzs-HAG.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-BdhtUtf-.js → Carousel-DjySyeDR.js} +1 -1
  28. package/dist/Chat/index.d.ts +1 -1
  29. package/dist/Chat/index.js +1 -1
  30. package/dist/{Chat-DT712Yft.js → Chat-DQ6BGAvP.js} +5 -5
  31. package/dist/CheckboxInput/index.d.ts +1 -1
  32. package/dist/CheckboxInput/index.js +1 -1
  33. package/dist/{CheckboxInput-D8N6yvK5.js → CheckboxInput-DSW8yq92.js} +4 -4
  34. package/dist/CheckboxList/index.d.ts +1 -1
  35. package/dist/CheckboxList/index.js +1 -1
  36. package/dist/{CheckboxListItem--iUp9-KO.js → CheckboxListItem-B2E2O1AE.js} +5 -5
  37. package/dist/ClickableCard/index.d.ts +1 -1
  38. package/dist/ClickableCard/index.js +1 -1
  39. package/dist/{ClickableCard-B_upAn7L.js → ClickableCard-D4EGX9Dh.js} +1 -1
  40. package/dist/Code/index.d.ts +2 -2
  41. package/dist/Code/index.js +3 -3
  42. package/dist/{Code-_PngYOKp.js → Code-BqqB2kUM.js} +159 -1
  43. package/dist/{CodeBlock-BkqcfoZ1.js → CodeBlock-D7ZJQV5Q.js} +1 -1
  44. package/dist/Collapsible/index.js +1 -1
  45. package/dist/{Collapsible-BKt7UCeF.js → Collapsible-C5xSG7oP.js} +3 -3
  46. package/dist/CommandPalette/index.js +1 -1
  47. package/dist/{CommandPalette-CvOeE6i-.js → CommandPalette-BUNdrxrB.js} +2 -2
  48. package/dist/ComplexSelector/index.js +1 -1
  49. package/dist/{ComplexSelector-CVEfoN0k.js → ComplexSelector-m9wi7E0j.js} +2 -2
  50. package/dist/ContextMenu/index.d.ts +1 -1
  51. package/dist/ContextMenu/index.js +2 -2
  52. package/dist/{ContextMenu-ZqWtb5Si.js → ContextMenu-BEHfVIAq.js} +5 -5
  53. package/dist/DateInput/index.d.ts +1 -1
  54. package/dist/DateInput/index.js +1 -1
  55. package/dist/{DateInput-7FFzOvcu.js → DateInput-CHeetz7k.js} +5 -5
  56. package/dist/DateRangeInput/index.d.ts +1 -1
  57. package/dist/DateRangeInput/index.js +1 -1
  58. package/dist/{DateRangeInput-C0ICAvm7.js → DateRangeInput-D524C1wc.js} +3 -3
  59. package/dist/DateTimeInput/index.d.ts +1 -1
  60. package/dist/DateTimeInput/index.js +1 -1
  61. package/dist/{DateTimeInput-CaX09wfm.js → DateTimeInput-2gTBrcbr.js} +5 -5
  62. package/dist/Dialog/index.js +3 -3
  63. package/dist/{Dialog-B1xC9xMC.js → Dialog-DS3xE1B7.js} +2 -2
  64. package/dist/{Dialog-BmdNX3NC.js → Dialog-nyLGClca.js} +1 -1
  65. package/dist/{DialogHeader-DLaiYrvF.js → DialogHeader-u_AaZpyZ.js} +2 -2
  66. package/dist/Drawer/index.d.ts +1 -1
  67. package/dist/Drawer/index.js +1 -1
  68. package/dist/{Drawer-BpuER-VT.js → Drawer-DqUdaZFh.js} +2 -2
  69. package/dist/DropdownMenu/index.js +2 -2
  70. package/dist/{DropdownMenu-K8JPIcSk.js → DropdownMenu-DlAON5Jf.js} +8 -8
  71. package/dist/EmptyState/index.js +1 -1
  72. package/dist/{EmptyState-BAP8BpDj.js → EmptyState-DU7uOI2G.js} +2 -2
  73. package/dist/Field/index.js +3 -3
  74. package/dist/{Field-CjC4qc2q.js → Field-YNS4XxpR.js} +1 -1
  75. package/dist/{FieldInfoTip-Cu4LNidQ.js → FieldInfoTip-DFlIBJlR.js} +1 -1
  76. package/dist/{FieldLabel-BFBAGrFY.js → FieldLabel-i0gos7hU.js} +1 -1
  77. package/dist/FileInput/index.js +1 -1
  78. package/dist/{FileInput-DFsbOoe-.js → FileInput-DYVzAtvz.js} +3 -3
  79. package/dist/Heading/index.js +1 -1
  80. package/dist/{Heading-D94VFJtm.js → Heading-BZ0ydu2s.js} +1 -1
  81. package/dist/HoverCard/index.d.ts +1 -1
  82. package/dist/HoverCard/index.js +1 -1
  83. package/dist/{HoverCard-rwpyd6nt.js → HoverCard-BhHZE9q6.js} +4 -4
  84. package/dist/IconButton/index.js +1 -1
  85. package/dist/{IconButton-BPjZPGRy.js → IconButton-DXt8DtsN.js} +1 -1
  86. package/dist/InfoTip/index.d.ts +1 -1
  87. package/dist/InfoTip/index.js +1 -1
  88. package/dist/{InfoTip-DqDgJRtp.js → InfoTip--fZOD0ux.js} +2 -2
  89. package/dist/{InputClearButton-BZzOtoH7.js → InputClearButton-LF0iVTVF.js} +1 -1
  90. package/dist/InputGroup/index.js +1 -1
  91. package/dist/{InputGroup-BN6v-b9L.js → InputGroup-D4CPVzo0.js} +1 -1
  92. package/dist/InternationalizationProvider/index.d.ts +1 -1
  93. package/dist/InternationalizationProvider/index.js +1 -1
  94. package/dist/{InternationalizationProvider-DzNfleAX.js → InternationalizationProvider-yLbf4Wi_.js} +1 -1
  95. package/dist/{Item-BzjepDWA.js → Item-BKISM91o.js} +1 -1
  96. package/dist/{LayerContentBoundary-CTjEpdM4.js → LayerContentBoundary-D67fobWl.js} +1 -1
  97. package/dist/Layout/index.js +2 -2
  98. package/dist/{Layout-SJoCw8NC.js → Layout-BwSvAsLi.js} +1 -1
  99. package/dist/{LayoutPanel-DZN4RxX6.js → LayoutPanel-CmzJQpnL.js} +1 -1
  100. package/dist/Lightbox/index.js +1 -1
  101. package/dist/{Lightbox-K2cAUZRG.js → Lightbox-B32Yh8Uy.js} +1 -1
  102. package/dist/Link/index.d.ts +1 -1
  103. package/dist/Link/index.js +1 -1
  104. package/dist/{Link-v-K2lhCh.js → Link-DSXyw9MW.js} +2 -2
  105. package/dist/List/index.d.ts +1 -1
  106. package/dist/List/index.js +2 -2
  107. package/dist/{ListItem-BTcwwpFb.js → ListItem-D3iEhvU2.js} +4 -4
  108. package/dist/Markdown/index.d.ts +2 -2
  109. package/dist/Markdown/index.js +2 -2
  110. package/dist/{Markdown-B4WsMYzN.js → Markdown-BY5Bju8w.js} +78 -62
  111. package/dist/MetadataList/index.d.ts +1 -1
  112. package/dist/MobileNav/index.js +1 -1
  113. package/dist/{MobileNavToggle-AgT6hzTg.js → MobileNavToggle-sC6GPVKQ.js} +2 -2
  114. package/dist/MoreMenu/index.d.ts +1 -1
  115. package/dist/MoreMenu/index.js +1 -1
  116. package/dist/{MoreMenu-BF9qhsxq.js → MoreMenu-CcavOuxV.js} +7 -7
  117. package/dist/MultiSelector/index.d.ts +1 -1
  118. package/dist/MultiSelector/index.js +1 -1
  119. package/dist/{MultiSelector-CDMoxGKV.js → MultiSelector-Diu5zHbP.js} +5 -5
  120. package/dist/{NavDisclosure-CSnUZY3k.js → NavDisclosure-BpYjtYo5.js} +1 -1
  121. package/dist/{NavHeadingSurface-C3fTf5--.js → NavHeadingSurface-CK9zMjFC.js} +1 -1
  122. package/dist/NavItem/index.js +1 -1
  123. package/dist/{NavItem-DUnSwKRl.js → NavItem-DlW8noR6.js} +1 -1
  124. package/dist/NavMenu/index.js +3 -3
  125. package/dist/{NavMenu-DAnQr1S5.js → NavMenu-J2kmtb1B.js} +2 -2
  126. package/dist/{NavMenuItem-CrTUxgBP.js → NavMenuItem-DItNRTDZ.js} +3 -3
  127. package/dist/NumberInput/index.d.ts +1 -1
  128. package/dist/NumberInput/index.js +1 -1
  129. package/dist/{NumberInput-DQ7FMUTd.js → NumberInput-vhm5TQon.js} +3 -3
  130. package/dist/Outline/index.js +1 -1
  131. package/dist/{Outline-CSHJqtg4.js → Outline-CVIDd0fN.js} +2 -66
  132. package/dist/OverflowList/index.d.ts +1 -1
  133. package/dist/OverflowList/index.js +1 -1
  134. package/dist/{OverflowList-CK6sgmY3.js → OverflowList-DjWWBOkx.js} +2 -2
  135. package/dist/Pagination/index.js +1 -1
  136. package/dist/{Pagination-B-337WLy.js → Pagination-DKsePQjC.js} +2 -2
  137. package/dist/{PanGestureRecognizer-yYMpXB93.js → PanGestureRecognizer-C7hNunjF.js} +1 -1
  138. package/dist/PickerWheel-Bf7xe6g6.js +1131 -0
  139. package/dist/Popover/index.d.ts +1 -1
  140. package/dist/Popover/index.js +1 -1
  141. package/dist/{Popover-DVrWAYg2.js → Popover-CKgepPJ6.js} +7 -7
  142. package/dist/PowerSearch/index.d.ts +1 -1
  143. package/dist/PowerSearch/index.js +1 -1
  144. package/dist/{PowerSearch-sWyeh9Az.js → PowerSearch-DopZnZDZ.js} +27 -27
  145. package/dist/{PressTracker-CjfG1d8n.js → PressTracker-DL75qEq_.js} +2 -2
  146. package/dist/ProgressBar/index.js +1 -1
  147. package/dist/{ProgressBar-ChgsiVRR.js → ProgressBar-B2ds3imd.js} +1 -1
  148. package/dist/Radio/index.d.ts +1 -1
  149. package/dist/Radio/index.js +1 -1
  150. package/dist/{RadioGroup-BloTgj7H.js → RadioGroup-C-S-SnbH.js} +5 -5
  151. package/dist/RadioList/index.d.ts +1 -1
  152. package/dist/RadioList/index.js +1 -1
  153. package/dist/{RadioListItem-BERujpW8.js → RadioListItem-DzKVK4DZ.js} +1 -1
  154. package/dist/Resizable/index.d.ts +1 -1
  155. package/dist/Resizable/index.js +1 -1
  156. package/dist/{ResizeHandle-J9-dAMuo.js → ResizeHandle-CaZEB4Py.js} +1 -1
  157. package/dist/ScrollableArea/index.d.ts +1 -1
  158. package/dist/SegmentedControl/index.js +1 -1
  159. package/dist/{SegmentedControl-BzvLJL8T.js → SegmentedControl-Bp7dpEjn.js} +10 -10
  160. package/dist/SelectableCard/index.d.ts +1 -1
  161. package/dist/SelectableCard/index.js +1 -1
  162. package/dist/{SelectableCard-IAv2X4dq.js → SelectableCard-DPWaUCGZ.js} +1 -1
  163. package/dist/Selector/index.d.ts +1 -1
  164. package/dist/Selector/index.js +1 -1
  165. package/dist/{Selector-CsEWOfWV.js → Selector-CJmeuWhN.js} +3 -3
  166. package/dist/SideNav/index.d.ts +1 -1
  167. package/dist/SideNav/index.js +2 -2
  168. package/dist/{SideNav-CVAi462m.js → SideNav-D-AQqNPx.js} +9 -9
  169. package/dist/Slider/index.js +1 -1
  170. package/dist/{Slider-D0omHlRI.js → Slider-DU-Yl3fd.js} +9 -150
  171. package/dist/Stack/index.d.ts +1 -1
  172. package/dist/StatusDot/index.js +1 -1
  173. package/dist/{StatusDot-D7nVuPg7.js → StatusDot-Jw676Z_6.js} +1 -1
  174. package/dist/Stepper/index.d.ts +1 -1
  175. package/dist/Stepper/index.js +1 -1
  176. package/dist/{Stepper-CetoMTog.js → Stepper-67SsxUne.js} +1 -1
  177. package/dist/Switch/index.d.ts +1 -1
  178. package/dist/Switch/index.js +1 -1
  179. package/dist/{Switch-DTwurKmh.js → Switch-C6qaebkX.js} +10 -10
  180. package/dist/TabList/index.js +1 -1
  181. package/dist/{TabList-BJTT4nm6.js → TabList-TbJ6y1gN.js} +3 -3
  182. package/dist/Table/index.d.ts +1 -1
  183. package/dist/Table/index.js +1 -1
  184. package/dist/{Table-CUqi9BXT.js → Table-DG_GVUF4.js} +14 -14
  185. package/dist/Text/index.js +1 -1
  186. package/dist/{Text-kwsIut3C.js → Text-bvai__ae.js} +1 -1
  187. package/dist/TextArea/index.d.ts +1 -1
  188. package/dist/TextArea/index.js +1 -1
  189. package/dist/{TextArea-BKwmXPGQ.js → TextArea-D6EtmxTk.js} +4 -4
  190. package/dist/TextInput/index.d.ts +1 -1
  191. package/dist/TextInput/index.js +1 -1
  192. package/dist/{TextInput-CRXs8cDs.js → TextInput-AngvgtdT.js} +4 -4
  193. package/dist/Thumbnail/index.js +1 -1
  194. package/dist/{Thumbnail-GUwgnwZb.js → Thumbnail-DExkxw8a.js} +3 -3
  195. package/dist/{TimeField-Bn_ziTCi.js → TimeField-BNGg25yA.js} +9 -4
  196. package/dist/TimeInput/index.d.ts +1 -1
  197. package/dist/TimeInput/index.js +1 -1
  198. package/dist/{TimeInput-BKkwmN1V.js → TimeInput-D8lwgHOR.js} +2 -2
  199. package/dist/Timer/index.js +1 -1
  200. package/dist/{Timer-B-9sSJWK.js → Timer-CO-JNJTI.js} +1 -1
  201. package/dist/Timestamp/index.d.ts +1 -1
  202. package/dist/Timestamp/index.js +1 -1
  203. package/dist/{Timestamp-Dlz2SvSe.js → Timestamp-CeSb1A8c.js} +3 -3
  204. package/dist/Toast/index.js +1 -1
  205. package/dist/{Toast-BSnsRCyB.js → Toast-B2Fq-JYA.js} +4 -107
  206. package/dist/ToggleButton/index.d.ts +1 -1
  207. package/dist/ToggleButton/index.js +1 -1
  208. package/dist/{ToggleButton-DE79lIQq.js → ToggleButton-Bn8yLHbh.js} +3 -3
  209. package/dist/Token/index.js +1 -1
  210. package/dist/{Token-BdClMOG9.js → Token-Dpxh42Mw.js} +1 -1
  211. package/dist/Tokenizer/index.js +1 -1
  212. package/dist/{Tokenizer-BitI30VU.js → Tokenizer-B3EnI98V.js} +12 -12
  213. package/dist/Toolbar/index.d.ts +1 -1
  214. package/dist/Tooltip/index.d.ts +1 -1
  215. package/dist/Tooltip/index.js +2 -2
  216. package/dist/{Tooltip-DyGaJUbl.js → Tooltip-BdG9g6c6.js} +1 -1
  217. package/dist/TopNav/index.d.ts +1 -1
  218. package/dist/TopNav/index.js +1 -1
  219. package/dist/{TopNav-BUjEldSq.js → TopNav-D7mzM7pu.js} +5 -5
  220. package/dist/TreeList/index.js +1 -1
  221. package/dist/{TreeList-BVJ3V-xI.js → TreeList-BmeXFFqr.js} +4 -4
  222. package/dist/Typeahead/index.js +2 -2
  223. package/dist/{Typeahead-C54ao2ye.js → Typeahead-kLp9UG-Q.js} +5 -5
  224. package/dist/{accessibleName-19W3jhkD.js → accessibleName-Zr1_WoBg.js} +1 -1
  225. package/dist/{animator-ozeBZ_zC.js → animator-Bptiubcx.js} +1 -1
  226. package/dist/{boxHold-0ChMpiin.js → boxHold-Bh1fTcXx.js} +5 -5
  227. package/dist/{browserClickWait-DIj9tkLa.js → browserClickWait-CiUtuWNK.js} +2 -2
  228. package/dist/{clickGuard-CxqcfBCJ.js → clickGuard-Bd-jBj_G.js} +2 -2
  229. package/dist/composables/index.d.ts +1 -1
  230. package/dist/composables/index.js +10 -10
  231. package/dist/{composables-CF2weN-L.js → composables-B6ebqwHY.js} +7 -68
  232. package/dist/{context-C1MPE6J5.js → context-Dweha8vW.js} +1 -1
  233. package/dist/decay-TluwbMlP.js +64 -0
  234. package/dist/{sharedRealm-DBtNH73I.js → flatTree-BB4yPMNL.js} +1 -57
  235. package/dist/{geometry-BnZ6uDX_.js → geometry-0e0f5Mjv.js} +9 -8
  236. package/dist/haptics-DIfaJavG.js +146 -0
  237. package/dist/{holdEntranceInput-C8B_DYYs.js → holdEntranceInput-DWqsAYll.js} +1 -1
  238. package/dist/{index-BZDl_iLU.d.ts → index-8FJZ4hpI.d.ts} +39 -1
  239. package/dist/{index-BgT6mH3U.d.ts → index-BB9acgK8.d.ts} +1 -1
  240. package/dist/{index-uLDBzCDo.d.ts → index-BqAI9Sxh.d.ts} +3 -3
  241. package/dist/{index-CArlEl1O.d.ts → index-C9TEn6LQ.d.ts} +35 -28
  242. package/dist/{index-Bwh8O-v8.d.ts → index-CZ29Xu_E.d.ts} +1 -1
  243. package/dist/{index-V6uruC4Z.d.ts → index-C_iTVOHQ.d.ts} +2 -2
  244. package/dist/{index-BU1HdDER.d.ts → index-D8VViJw0.d.ts} +3 -1
  245. package/dist/{index--kbwaSXW.d.ts → index-DXHmlFcC.d.ts} +3 -3
  246. package/dist/{index-DPhQZXYw.d.ts → index-DYabo8TI.d.ts} +1 -1
  247. package/dist/{index-DHsYyqMP.d.ts → index-DoYrlaEI.d.ts} +2 -2
  248. package/dist/{index-BtqvPjAf.d.ts → index-DofC9Rll.d.ts} +1 -1
  249. package/dist/{index-BRr_eg_u.d.ts → index-OP4ntESa.d.ts} +1 -1
  250. package/dist/{index-D1C2Nt3F.d.ts → index-rr6Rns7h.d.ts} +1 -1
  251. package/dist/{index-D9t_l8pJ.d.ts → index-tXYy8MJ0.d.ts} +1 -1
  252. package/dist/{index-a6o69uPN.d.ts → index-tdOyqA_U.d.ts} +2 -2
  253. package/dist/{index-NOXYEdOI.d.ts → index-utZGF4GR.d.ts} +1 -1
  254. package/dist/index.d.ts +18 -18
  255. package/dist/index.js +106 -106
  256. package/dist/{inputHold-BJtjc9iI.js → inputHold-CvjeOOWT.js} +4 -4
  257. package/dist/{inputHoldState-BYi5FKZl.js → inputHoldState-Cg1r8Ib7.js} +2 -2
  258. package/dist/{inputStream-HXw2lZ-3.js → inputStream-DkMWPYac.js} +1 -1
  259. package/dist/{landing-BW6qLvC8.js → landing-CrVewjeb.js} +1 -1
  260. package/dist/{layerDepth-SGFJ5L6X.js → layerDepth-DRfWATFr.js} +1 -1
  261. package/dist/{lazyBottomSheet-Bg5E8lr3.js → lazyBottomSheet-DlHcPsAT.js} +1 -1
  262. package/dist/{loadCatalog-VlWGFIMU.js → loadCatalog-CKntEldg.js} +3 -0
  263. package/dist/{loadCatalog-C_Cy_8WN.d.ts → loadCatalog-CdEXyPYj.d.ts} +1 -0
  264. package/dist/locale/index.d.ts +2 -2
  265. package/dist/locale/index.js +2 -2
  266. package/dist/{locale-U0KLmREA.js → locale-CHA0DNw5.js} +1 -1
  267. package/dist/{presentation-twEOzzJq.js → presentation-Cl58tYA6.js} +2 -1
  268. package/dist/{pressGesture-B3Efxs_z.js → pressGesture-CfBgXWRM.js} +13 -0
  269. package/dist/pressSlot-B6TvGkSO.js +222 -0
  270. package/dist/reducedMotion-D8-U7XFT.js +121 -0
  271. package/dist/{reportChange-DwOfucSf.js → reportChange-CUo2YNPB.js} +2 -2
  272. package/dist/{resizableChannel-BnwrR5tr.js → resizableChannel-CaaqGvXj.js} +3 -3
  273. package/dist/scrollView-DcPpdCrj.js +128 -0
  274. package/dist/{selectionLock-BrUpRS0E.js → selectionLock-BM8XEZQD.js} +2 -1
  275. package/dist/sharedRealm-BYHklCVM.js +57 -0
  276. package/dist/{stillPointerGate-BvCX7ddI.js → stillPointerGate-BU1CKW7m.js} +1 -1
  277. package/dist/{tooltipFocusRules-CxIlSnHw.js → tooltipFocusRules-GGASOH_U.js} +2 -2
  278. package/dist/{tooltipTriggerRules-CHNpQ6RL.js → tooltipTriggerRules-DIaGdkD_.js} +1 -1
  279. package/dist/{touchHold-CjNjGH7O.js → touchHold-CciGr8hU.js} +1 -1
  280. package/dist/{useActionGroupTracking-D0IwimcQ.js → useActionGroupTracking-DjIdPbfL.js} +4 -3
  281. package/dist/{useAnimatedLayout-CRAuCwTZ.js → useAnimatedLayout-Dq-cttfe.js} +1 -1
  282. package/dist/{useChatStreamScroll-DcNKcNTj.js → useChatStreamScroll-DEp17Yq9.js} +1 -1
  283. package/dist/{useDismiss-6SGAlkB_.js → useDismiss-CegXF2Zo.js} +1 -1
  284. package/dist/useGestureRecognizer-DDd-6Km-.js +106 -0
  285. package/dist/{useInputStatusIcon-C2AkJiAT.js → useInputStatusIcon-m6l4qBmA.js} +1 -1
  286. package/dist/{useMenuEntranceHold-C-kHicUN.js → useMenuEntranceHold-C4LOzKIS.js} +1 -1
  287. package/dist/{useMenuPress-B5h9PBx_.js → useMenuPress-BDPqPten.js} +4 -4
  288. package/dist/usePressFeedback-D2mWzgoJ.js +380 -0
  289. package/dist/{useResizable-I0APFcMz.js → useResizable-Bwv-j_9N.js} +2 -2
  290. package/dist/{useTooltip-owvVSn_m.js → useTooltip-DCp4sTM1.js} +4 -4
  291. package/dist/{useTouchHitArea-MvzPCmJg.js → useTouchHitArea-DL9D10Rq.js} +2 -2
  292. package/dist/{useTouchTriggerInternal-5ExaYYSy.js → useTouchTriggerInternal-C_mowlpv.js} +1 -1
  293. package/dist/{useTruncationTooltip-DHI6q_EV.js → useTruncationTooltip-Du80jGdE.js} +3 -3
  294. package/dist/{useTypeaheadMenuConfig-COiZ4isy.js → useTypeaheadMenuConfig-B14t0HGE.js} +1 -1
  295. package/package.json +1 -1
  296. package/styles/date-input.css +69 -0
  297. package/dist/PickerWheel-DNX3yrUd.js +0 -82
  298. package/dist/pressFeedback-B3cqaMGl.js +0 -470
  299. package/dist/usePressFeedback-iyoKakPX.js +0 -49
@@ -1,6 +1,6 @@
1
1
  import { n as useLayerTeleportTarget } from "./useLayerMountTarget-zwZQglr2.js";
2
2
  import { i as useLayerGutter, s as resolveLayerGutter } from "./context-M-er0-Rk.js";
3
- import { n as useLayerDepth, o as pushLayer } from "./layerDepth-SGFJ5L6X.js";
3
+ import { n as useLayerDepth, o as pushLayer } from "./layerDepth-DRfWATFr.js";
4
4
  import { nextTick, onScopeDispose, ref, toValue, watch } from "vue";
5
5
  //#region src/layer/anchorClear.ts
6
6
  function overlapsAnchor(anchor, top, left, layer) {
@@ -0,0 +1,106 @@
1
+ import { a as sharedState } from "./sharedRealm-BYHklCVM.js";
2
+ import { f as internals, i as getGestureHost } from "./geometry-0e0f5Mjv.js";
3
+ import { t as useAttachment } from "./useAttachment-CGiD9rt6.js";
4
+ import { getCurrentScope, onScopeDispose, toValue, watch } from "vue";
5
+ //#region src/gestures/gestureSync.ts
6
+ /**
7
+ * @file gestureSync.ts
8
+ * @input Nothing: module state
9
+ * @output syncingGestures and isSyncingGestures: the gesture-sync depth the
10
+ * gesture composables read
11
+ * @position Internal helpers shared by useGestureRecognizer and
12
+ * usePressTracker, so each composable imports only what it uses
13
+ *
14
+ * SYNC: When modified, update __tests__/useGestureRecognizer.test.ts.
15
+ */
16
+ /**
17
+ * How many composables are driving a recognizer from a watcher right now: an
18
+ * `isEnabled` sync, or the detach of a replaced node that cancels a gesture
19
+ * in flight. While one runs no composable's listener calls its caller's
20
+ * callback: the recognizer it stops is cancelled silently, and what that
21
+ * stop unblocks (a recognizer that required it to fail) resolves in the
22
+ * arena's next pass, a microtask later, where its listener reports as usual
23
+ * (`deferringResolution` in useGestureRecognizer). A press tracker's
24
+ * callbacks wait for a microtask after it (usePressTracker).
25
+ */
26
+ const sync = sharedState("gestures/gesture-sync/state", 1, () => ({ syncingDepth: 0 }));
27
+ /** Runs `body` as a gesture sync (see `syncingDepth`). */
28
+ function syncingGestures(body) {
29
+ sync.syncingDepth += 1;
30
+ try {
31
+ return body();
32
+ } finally {
33
+ sync.syncingDepth -= 1;
34
+ }
35
+ }
36
+ /** True while any gesture composable's sync runs. */
37
+ function isSyncingGestures() {
38
+ return sync.syncingDepth > 0;
39
+ }
40
+ //#endregion
41
+ //#region src/gestures/useGestureRecognizer.ts
42
+ /**
43
+ * Runs `body` with the recognizer's arena leaving what it unblocks to the
44
+ * next pass (GestureArena.deferResolution). A recognizer that has met no
45
+ * touch has no arena, and nothing waits on it.
46
+ */
47
+ function deferringResolution(recognizer, body) {
48
+ const { arena } = internals(recognizer);
49
+ if (arena == null) {
50
+ body();
51
+ return;
52
+ }
53
+ arena.deferResolution(body);
54
+ }
55
+ /**
56
+ * Attach a recognizer to the element `target` names.
57
+ *
58
+ * @example
59
+ * ```ts
60
+ * const sheet = ref<HTMLElement | null>(null)
61
+ * useGestureRecognizer(
62
+ * sheet,
63
+ * () => new PanGestureRecognizer({ direction: 'vertical' }),
64
+ * (recognizer) => {
65
+ * sheet.value!.style.transform = `translateY(${recognizer.translation().y}px)`
66
+ * },
67
+ * )
68
+ * ```
69
+ */
70
+ function useGestureRecognizer(target, create, onGesture, options = {}) {
71
+ const recognizer = create();
72
+ const isEnabled = () => toValue(options.isEnabled) ?? true;
73
+ const manageStyle = () => toValue(options.manageStyle) ?? true;
74
+ const actionGroup = () => toValue(options.actionGroup) ?? false;
75
+ let isDisposed = false;
76
+ const removeListener = recognizer.addListener((current) => {
77
+ if (!isDisposed && !isSyncingGestures()) onGesture?.(current);
78
+ });
79
+ if (getCurrentScope()) onScopeDispose(() => {
80
+ isDisposed = true;
81
+ removeListener();
82
+ });
83
+ watch(isEnabled, (enabled) => {
84
+ syncingGestures(() => {
85
+ deferringResolution(recognizer, () => {
86
+ recognizer.setEnabled(enabled);
87
+ });
88
+ });
89
+ }, {
90
+ immediate: true,
91
+ flush: "sync"
92
+ });
93
+ useAttachment(target, (element) => {
94
+ if (!isEnabled()) return () => {};
95
+ const detach = getGestureHost(element.ownerDocument).attach(element, recognizer, {
96
+ manageStyle: manageStyle(),
97
+ actionGroup: actionGroup()
98
+ });
99
+ return () => {
100
+ syncingGestures(() => deferringResolution(recognizer, detach));
101
+ };
102
+ }, () => `${manageStyle()}:${isEnabled()}:${actionGroup()}`);
103
+ return recognizer;
104
+ }
105
+ //#endregion
106
+ export { useGestureRecognizer as t };
@@ -1,5 +1,5 @@
1
1
  import { t as _sfc_main } from "./FieldIcon-BU1ZWAuo.js";
2
- import { t as _sfc_main$1 } from "./FieldInfoTip-Cu4LNidQ.js";
2
+ import { t as _sfc_main$1 } from "./FieldInfoTip-DFlIBJlR.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-C8B_DYYs.js";
1
+ import { t as holdEntranceInput } from "./holdEntranceInput-DWqsAYll.js";
2
2
  import { nextTick, onBeforeUnmount, watch } from "vue";
3
3
  //#region src/layer/useMenuEntranceHold.ts
4
4
  /**
@@ -1,9 +1,9 @@
1
- import { h as msSinceInput } from "./pressFeedback-B3cqaMGl.js";
2
- import { i as withoutClickGuard, r as disarmEveryClickGuard, t as armClickGuard } from "./clickGuard-CxqcfBCJ.js";
3
- import { s as currentGesture } from "./layerDepth-SGFJ5L6X.js";
1
+ import { o as msSinceInput } from "./scrollView-DcPpdCrj.js";
2
+ import { i as withoutClickGuard, r as disarmEveryClickGuard, t as armClickGuard } from "./clickGuard-Bd-jBj_G.js";
3
+ import { s as currentGesture } from "./layerDepth-DRfWATFr.js";
4
4
  import { t as focusForLastInput } from "./focusReturn-DfZS7TCp.js";
5
5
  import { t as claimPress } from "./pressClaim-DvdlIn4w.js";
6
- import { r as isInputShield } from "./inputHoldState-BYi5FKZl.js";
6
+ import { r as isInputShield } from "./inputHoldState-Cg1r8Ib7.js";
7
7
  import { getCurrentScope, onScopeDispose, toValue } from "vue";
8
8
  //#region src/composables/useLongPress.ts
9
9
  const DEFAULT_DELAY_MS = 500;
@@ -0,0 +1,380 @@
1
+ import { n as isInsideScrollView, o as msSinceInput } from "./scrollView-DcPpdCrj.js";
2
+ import { i as subscribeInput } from "./inputStream-DkMWPYac.js";
3
+ import { o as UIKIT_PRESS } from "./gestures-yKyyMqeQ.js";
4
+ import { a as idlePressGesture, o as pressGestureStep, r as PRESS_SCROLL_BRAKE_MS } from "./pressGesture-CfBgXWRM.js";
5
+ 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-B6TvGkSO.js";
6
+ import { getCurrentInstance, getCurrentScope, onMounted, onScopeDispose } from "vue";
7
+ import "../styles/pressable.css";
8
+ //#region src/composables/internal/pressButton.ts
9
+ /**
10
+ * 鼠标键和空格键的按压。`@media (pointer: coarse)` 读的是主指针,所以手机和平板上,
11
+ * 连接的鼠标、触控板和键盘也丢了 `:active`。这些按压立刻亮、按住期间一直亮、松开后和手指一样淡出。
12
+ * 主指针精细的设备(桌面)上这里什么都不做,`:active` 照旧。
13
+ */
14
+ /**
15
+ * 样式是不是已经把 `:active` 丢给了控制器:`@media (pointer: coarse)` 读的是主指针,
16
+ * 所以在手机和平板上,连接的鼠标、触控板和空格键也丢了 `:active`。每次这类按压时才问,
17
+ * 渲染可按元素从不查询指针。
18
+ */
19
+ function stylesheetDroppedActive() {
20
+ return typeof window.matchMedia === "function" && window.matchMedia("(pointer: coarse)").matches;
21
+ }
22
+ /** 空格键能当按钮激活的 `<input>` 类型。浏览器按住空格时它们和 `<button>` 一样匹配 `:active`。 */
23
+ const SPACE_ACTIVATED_INPUT_TYPES = /* @__PURE__ */ new Set([
24
+ "button",
25
+ "image",
26
+ "reset",
27
+ "submit"
28
+ ]);
29
+ /** 菜单自己的高亮是它唯一的画面:按住一行、高亮却跟着指针走到另一行,不能亮两行。 */
30
+ const MENU_PRESS_ROOT = "[data-astryx-menu-press]";
31
+ /**
32
+ * 鼠标键或空格键按压画在哪个元素上:最里层的可按元素,菜单里除外。
33
+ * 键盘的按压只画在自己就是可按元素的焦点元素上,和 `:active` 一样。
34
+ */
35
+ function buttonSurfaceAt(target, pointerId) {
36
+ const element = pressSurfaceAt(target);
37
+ if (element == null || element.closest(MENU_PRESS_ROOT) != null) return null;
38
+ if (pointerId == null && element !== target) return null;
39
+ return element;
40
+ }
41
+ /** 在可按元素上开始一次鼠标键或空格键的按压。 */
42
+ function pressButton(target, pointerId) {
43
+ finish(button);
44
+ const element = buttonSurfaceAt(target, pointerId);
45
+ if (element == null) return;
46
+ takeOver(finger, element);
47
+ button.live = {
48
+ element,
49
+ gesture: idlePressGesture(),
50
+ pointerId,
51
+ timer: null
52
+ };
53
+ holdKey(pointerId == null);
54
+ apply(button, pressGestureStep(button.live.gesture, { kind: "buttonDown" }));
55
+ }
56
+ /** 鼠标键或按键松开:和手指一样淡出。 */
57
+ function releaseButton() {
58
+ holdKey(false);
59
+ if (button.live == null) return;
60
+ apply(button, pressGestureStep(button.live.gesture, { kind: "up" }));
61
+ }
62
+ /** 平台拿走了鼠标的按压:画面立刻消失。 */
63
+ function cancelButton() {
64
+ holdKey(false);
65
+ if (button.live == null) return;
66
+ apply(button, pressGestureStep(button.live.gesture, { kind: "cancel" }));
67
+ releaseIfDead(button);
68
+ }
69
+ /** 空格键能不能激活这个目标:`<button>` 和几种按钮型 `<input>`。链接和 `role="button"` 按空格什么都不发生。 */
70
+ function activatesOnSpace(target) {
71
+ if (target instanceof HTMLButtonElement) return true;
72
+ return target instanceof HTMLInputElement && SPACE_ACTIVATED_INPUT_TYPES.has(target.type);
73
+ }
74
+ /**
75
+ * 空格落在自己就是可按元素的焦点按钮上。在冒泡阶段听,页面自己的处理函数之后:
76
+ * 页面取消了的按压(preventDefault)什么都不画,和 `:active` 不会成立一样。
77
+ */
78
+ function onKeyDown(event) {
79
+ if (event.key !== " " || event.repeat || event.isComposing || event.defaultPrevented || !activatesOnSpace(event.target) || !stylesheetDroppedActive()) return;
80
+ pressButton(event.target, null);
81
+ }
82
+ function onKeyUp(event) {
83
+ if (event.key === " " && button.live != null && button.live.pointerId == null) releaseButton();
84
+ }
85
+ /** 焦点离开了被按的按钮,或窗口失去焦点:松开事件可能再也到不了,这次按压现在就带着淡出结束。 */
86
+ function onBlur() {
87
+ if (button.live != null && button.live.pointerId == null) releaseButton();
88
+ }
89
+ const PASSIVE = { passive: true };
90
+ const PASSIVE_CAPTURE = {
91
+ capture: true,
92
+ passive: true
93
+ };
94
+ /** 空格键的松开和失焦监听是否挂着。 */
95
+ let keyHeld = false;
96
+ /**
97
+ * 只在空格按住期间挂着松开和失焦的监听,按完就拆:静止时按键路径只有一个 keydown 监听。
98
+ * `blur` 不冒泡,捕获阶段才听得到元素和窗口失焦。
99
+ */
100
+ function holdKey(held) {
101
+ if (held === keyHeld) return;
102
+ keyHeld = held;
103
+ if (held) {
104
+ window.addEventListener("keyup", onKeyUp, PASSIVE);
105
+ window.addEventListener("blur", onBlur, PASSIVE_CAPTURE);
106
+ } else {
107
+ window.removeEventListener("keyup", onKeyUp);
108
+ window.removeEventListener("blur", onBlur, PASSIVE_CAPTURE);
109
+ }
110
+ }
111
+ button.onFinish = () => holdKey(false);
112
+ /**
113
+ * 挂上空格键的监听。空格要在冒泡阶段听,才看得到页面自己的 preventDefault,
114
+ * 所以不走共用输入流(它在捕获阶段)。
115
+ */
116
+ function attachButtonKeys() {
117
+ window.addEventListener("keydown", onKeyDown, PASSIVE);
118
+ }
119
+ function detachButtonKeys() {
120
+ window.removeEventListener("keydown", onKeyDown);
121
+ holdKey(false);
122
+ }
123
+ //#endregion
124
+ //#region src/composables/internal/pressFeedback.ts
125
+ /**
126
+ * 触屏按压模型的 DOM 那一半:整个文档只有一个委托控制器,
127
+ * 在手指下最里层的可按元素上写 `data-astryx-press`。
128
+ *
129
+ * 为什么挂在文档上、而不是每个元素一套监听:虚拟列表可能有上千行,每行四个监听加一份状态
130
+ * 承受不起。这里整个文档就几个监听,一次按压只改一个元素的一个属性,不触发任何组件更新。
131
+ *
132
+ * 鼠标完全不管,CSS 的 `:active` 照旧。手指下,`@media (pointer: coarse)` 里的 `:active`
133
+ * 被样式丢掉,改由这里在按压成立时写 `on`,抬手淡出时写 `fading`。
134
+ * 样式见 `styles/pressable.css`。
135
+ *
136
+ * 手指只在滚动视图里才等:滚动视图外,落下那一帧就亮,和原生控件一样;
137
+ * 滚动视图里等 150ms,因为这次触摸可能变成滚动。这 150ms 从触摸自己的时间戳算起,
138
+ * 页面忙、监听函数跑晚了,不会让高亮跟着晚。
139
+ */
140
+ /** 手指离开后多久内的滚动还可能是那根手指甩出去的惯性。iOS 的惯性滚动会持续一两秒。 */
141
+ const PRESS_GESTURE_MEMORY_MS = UIKIT_PRESS.momentumMemory.value;
142
+ /**
143
+ * 手指或笔落在控件框上的这次接触(utils/boxHold.ts):记着它的指针、它开始的那次按压
144
+ * (刹车时没有)和框按住的收尾。刹车的接触也算,被滚动取消的也算,各自在自己的抬起或取消时结束。
145
+ * 只有抬起时按压还活着,才算「停着抬起」。
146
+ */
147
+ let contact = null;
148
+ /** 结束这次框上的接触,并且只告诉框按住一次。 */
149
+ function endContact(isStillLift) {
150
+ const ended = contact;
151
+ contact = null;
152
+ ended?.end(isStillLift);
153
+ }
154
+ let boxHold = null;
155
+ /**
156
+ * 装上框按住。只有用到框组件(复选框、单选)的页面才加载它,
157
+ * 只有按钮和链接的页面不带这段代码。
158
+ */
159
+ function installBoxHold(hold) {
160
+ boxHold = hold;
161
+ }
162
+ /** 有几个调用方装着控制器。大于 0 时监听才在。 */
163
+ let holders = 0;
164
+ /** 上一次「被手指带动」的滚动发生在什么时候、在哪个滚动容器里。只记手指带动的,程序滚动不算。 */
165
+ let lastScrollAt = 0;
166
+ let lastScroller = null;
167
+ /** 上一次手指在屏幕上是什么时候、落在哪里。 */
168
+ let lastTouchAt = 0;
169
+ let lastTouchTarget = null;
170
+ /**
171
+ * 这次触摸是不是在给手指刚甩动的列表「刹车」。原生列表刹车时什么都不亮。
172
+ * 两个条件都要满足:滚动容器包着这个元素,而且那次滚动是手指在这个容器里带起来的。
173
+ */
174
+ function scrollerIsBraking(element) {
175
+ if (Date.now() - lastScrollAt >= PRESS_SCROLL_BRAKE_MS) return false;
176
+ return lastScroller instanceof Node && lastScroller.contains(element);
177
+ }
178
+ function onPointerDown(event) {
179
+ if (event.pointerType === "mouse") {
180
+ if (event.button === 0 && stylesheetDroppedActive()) pressButton(event.target, event.pointerId);
181
+ return;
182
+ }
183
+ endContact(false);
184
+ if (finger.live != null) {
185
+ const fingerIsUp = finger.live.gesture.phase === "fading" || finger.live.gesture.phase === "flash";
186
+ finish(finger);
187
+ if (!fingerIsUp) return;
188
+ }
189
+ const element = event.target instanceof Element && isTrackedByGroup(event.target, event.pointerType) ? null : pressSurfaceAt(event.target);
190
+ const braking = element != null && scrollerIsBraking(element);
191
+ lastTouchAt = Date.now();
192
+ lastTouchTarget = event.target instanceof Node ? event.target : null;
193
+ if (element == null) return;
194
+ const end = boxHold?.start(element, event.target) ?? null;
195
+ const pressed = braking ? null : {
196
+ element,
197
+ gesture: idlePressGesture(),
198
+ pointerId: event.pointerId,
199
+ timer: null
200
+ };
201
+ if (end != null) contact = {
202
+ pointerId: event.pointerId,
203
+ live: pressed,
204
+ end
205
+ };
206
+ if (pressed == null) return;
207
+ takeOver(button, element);
208
+ finger.live = pressed;
209
+ apply(finger, pressGestureStep(pressed.gesture, {
210
+ kind: "down",
211
+ x: event.clientX,
212
+ y: event.clientY,
213
+ delayed: isInsideScrollView(element)
214
+ }), msSinceInput(event.timeStamp, event));
215
+ }
216
+ function isOtherPointer(event) {
217
+ const live = finger.live;
218
+ return live == null || live.pointerId != null && event.pointerId !== live.pointerId;
219
+ }
220
+ function onPointerMove(event) {
221
+ if (isOtherPointer(event)) return;
222
+ apply(finger, pressGestureStep(finger.live.gesture, {
223
+ kind: "move",
224
+ x: event.clientX,
225
+ y: event.clientY
226
+ }));
227
+ }
228
+ function onPointerUp(event) {
229
+ if (event.pointerType === "mouse") {
230
+ if (button.live != null && button.live.pointerId === event.pointerId) releaseButton();
231
+ return;
232
+ }
233
+ lastTouchAt = Date.now();
234
+ if (event.target instanceof Node) lastTouchTarget = event.target;
235
+ if (contact != null && contact.pointerId === event.pointerId) {
236
+ const pressed = contact.live;
237
+ endContact(pressed != null && finger.live === pressed && pressed.gesture.phase !== "dead");
238
+ }
239
+ if (isOtherPointer(event)) return;
240
+ apply(finger, pressGestureStep(finger.live.gesture, { kind: "up" }));
241
+ releaseIfDead(finger);
242
+ }
243
+ /** 滚动接管了手势,或者平台拿走了它。iOS 上 pointercancel 比第一个 scroll 事件还早到。 */
244
+ function onCancel(event) {
245
+ const pointer = event;
246
+ if (pointer?.pointerType === "mouse") {
247
+ if (button.live != null && button.live.pointerId === pointer.pointerId) cancelButton();
248
+ return;
249
+ }
250
+ if (pointer?.pointerId != null && contact?.pointerId === pointer.pointerId) endContact(false);
251
+ const live = finger.live;
252
+ if (live == null) return;
253
+ apply(finger, pressGestureStep(live.gesture, { kind: "cancel" }));
254
+ releaseIfDead(finger);
255
+ }
256
+ /**
257
+ * 按压变成拖拽,不管是谁按的,都算被拿走。不听 contextmenu:右键是鼠标的事,
258
+ * 这里从不跟踪,听它就像接管了浏览器自己的菜单。
259
+ */
260
+ function onDragStart() {
261
+ onCancel();
262
+ cancelButton();
263
+ }
264
+ /** 文档里任何一处滚动。scroll 不冒泡,只能在捕获阶段听。 */
265
+ function onScroll(event) {
266
+ const scroller = event.target instanceof Node ? event.target : document;
267
+ if (Date.now() - lastTouchAt < PRESS_GESTURE_MEMORY_MS && lastTouchTarget != null && scroller.contains(lastTouchTarget)) {
268
+ lastScrollAt = Date.now();
269
+ lastScroller = scroller;
270
+ }
271
+ const live = finger.live;
272
+ if (live == null) return;
273
+ if (scroller === document || scroller.contains(live.element)) onCancel();
274
+ }
275
+ /** 兜底:页面被切到后台时,不留下亮着的元素。 */
276
+ function onVisibilityChange() {
277
+ if (document.visibilityState === "hidden") {
278
+ endContact(false);
279
+ finish(finger);
280
+ finish(button);
281
+ }
282
+ }
283
+ /** 控制器在共用输入流(utils/inputStream.ts)上的订阅,全都被动,只在有人持有时存在。 */
284
+ let unsubscribers = [];
285
+ function addListeners() {
286
+ unsubscribers = [
287
+ subscribeInput(window, "pointerdown", onPointerDown),
288
+ subscribeInput(window, "pointermove", onPointerMove),
289
+ subscribeInput(window, "pointerup", onPointerUp),
290
+ subscribeInput(window, "pointercancel", onCancel),
291
+ subscribeInput(window, "touchcancel", onCancel),
292
+ subscribeInput(window, "dragstart", onDragStart),
293
+ subscribeInput(window, "scroll", onScroll),
294
+ subscribeInput(window, "visibilitychange", onVisibilityChange)
295
+ ];
296
+ attachButtonKeys();
297
+ }
298
+ function removeListeners() {
299
+ endContact(false);
300
+ boxHold?.endWaits();
301
+ for (const unsubscribe of unsubscribers) unsubscribe();
302
+ unsubscribers = [];
303
+ detachButtonKeys();
304
+ }
305
+ function resetClocks() {
306
+ lastScrollAt = 0;
307
+ lastScroller = null;
308
+ lastTouchAt = 0;
309
+ lastTouchTarget = null;
310
+ }
311
+ /**
312
+ * 在这个文档上装好按压控制器。调多少次都只装一份,有人持有时监听就在。
313
+ * 返回释放函数:每次安装各调一次;最后一个释放时拆掉监听,并清掉颜色和刹车时钟。
314
+ * 服务端什么都不做。
315
+ */
316
+ function installPressFeedback() {
317
+ if (typeof window === "undefined" || typeof document === "undefined") return () => void 0;
318
+ if (holders === 0) addListeners();
319
+ holders += 1;
320
+ let released = false;
321
+ return () => {
322
+ if (released) return;
323
+ released = true;
324
+ holders -= 1;
325
+ if (holders > 0) return;
326
+ removeListeners();
327
+ finish(finger);
328
+ finish(button);
329
+ resetClocks();
330
+ };
331
+ }
332
+ //#endregion
333
+ //#region src/composables/usePressFeedback.ts
334
+ const MARKER_ONLY = Object.freeze({ [PRESSABLE_ATTRIBUTE]: "" });
335
+ const WITH_OVERLAY = Object.freeze({
336
+ [PRESSABLE_ATTRIBUTE]: "",
337
+ class: "astryx-pressable"
338
+ });
339
+ const CONTAINER_MARKER_ONLY = Object.freeze({
340
+ ...MARKER_ONLY,
341
+ [PRESS_CONTAINER_ATTRIBUTE]: ""
342
+ });
343
+ const CONTAINER_WITH_OVERLAY = Object.freeze({
344
+ ...WITH_OVERLAY,
345
+ [PRESS_CONTAINER_ATTRIBUTE]: ""
346
+ });
347
+ const ACTION_MARKER = Object.freeze({ [PRESS_ACTION_ATTRIBUTE]: "" });
348
+ /**
349
+ * 对应原版 Astryx 的 `hooks/usePressFeedback`。
350
+ *
351
+ * 把一个元素标成触屏按压模型的可按表面,并确保文档级控制器已经装上。
352
+ *
353
+ * 手指下,CSS 的 `:active` 落手就亮,滚动开始了还可能亮着。按压模型反过来:
354
+ * 滚动视图外,手指落下那一帧就亮;滚动视图里先等 150 毫秒确认是按压。
355
+ * 手指挪动超过 10 像素或者页面滚动,立刻作废,这次手势里不再亮回来;
356
+ * 太快的轻点在抬手时补亮;抬手后按主题的退出时长淡出(等淡出动画自己播完才结束)。
357
+ * 桌面上鼠标不受影响,`:active` 照旧;手机和平板上样式连鼠标、触控板和键盘的 `:active` 也丢了,
358
+ * 控制器会代画:鼠标键或空格键按下立刻亮,按住期间一直亮,松开后同样淡出。
359
+ *
360
+ * 一个文档只有一个控制器:第一个挂载的可按组件装上,最后一个卸载时拆掉。
361
+ * 调用它不会给元素加监听或状态,一次按压只改一个属性。服务端不装。
362
+ */
363
+ function usePressFeedback(options = {}) {
364
+ let release = null;
365
+ const install = () => {
366
+ release ??= installPressFeedback();
367
+ };
368
+ if (getCurrentInstance() != null) onMounted(install);
369
+ else install();
370
+ if (getCurrentScope() != null) onScopeDispose(() => {
371
+ release?.();
372
+ release = null;
373
+ });
374
+ return {
375
+ pressableProps: options.isContainer === true ? options.hasOverlay === false ? CONTAINER_MARKER_ONLY : CONTAINER_WITH_OVERLAY : options.hasOverlay === false ? MARKER_ONLY : WITH_OVERLAY,
376
+ pressActionProps: ACTION_MARKER
377
+ };
378
+ }
379
+ //#endregion
380
+ export { installBoxHold as n, usePressFeedback as t };
@@ -1,10 +1,10 @@
1
1
  import { t as isImeKeyEvent } from "./ime-VY8-80S8.js";
2
- import { t as animatorFor } from "./animator-ozeBZ_zC.js";
2
+ import { t as animatorFor } from "./animator-Bptiubcx.js";
3
3
  import { t as resolveMotion } from "./resolveMotion-DftkGFw6.js";
4
4
  import { o as springs } from "./springs-DjAn_oV5.js";
5
5
  import { t as isApplePlatform } from "./isApplePlatform-B1ju6F5B.js";
6
6
  import { t as project } from "./projection-qPcLQcwK.js";
7
- import { c as createRegionPaneSlot, f as registerPropsRegion, h as slideNextOnRelease, i as registerResizableChannel, l as edgeAxis, m as slideMotionsOf, o as resizeHandleBeside, p as shownSizeReader, s as createPaneReveal, u as isScriptMotion } from "./resizableChannel-BnwrR5tr.js";
7
+ import { c as createRegionPaneSlot, f as registerPropsRegion, h as slideNextOnRelease, i as registerResizableChannel, l as edgeAxis, m as slideMotionsOf, o as resizeHandleBeside, p as shownSizeReader, s as createPaneReveal, u as isScriptMotion } from "./resizableChannel-CaaqGvXj.js";
8
8
  import { i as rubberBandSlope, r as rubberBandInverse, t as rubberBand } from "./rubberBand-DDd5ElTe.js";
9
9
  import { computed, onBeforeUnmount, onMounted, onScopeDispose, reactive, ref, toValue, watch } from "vue";
10
10
  //#region src/composables/useHotkeys.ts
@@ -1,11 +1,11 @@
1
1
  import { s as registerLayerSurface } from "./useClickableContainer-Dtjg-nkm.js";
2
2
  import { r as useResolvedLayerTeleport } from "./useLayerMountTarget-zwZQglr2.js";
3
- import { n as useLayer } from "./tooltipTriggerRules-CHNpQ6RL.js";
4
- import { t as _sfc_main$1 } from "./LayerContentBoundary-CTjEpdM4.js";
3
+ import { n as useLayer } from "./tooltipTriggerRules-DIaGdkD_.js";
4
+ import { t as _sfc_main$1 } from "./LayerContentBoundary-D67fobWl.js";
5
5
  import { a as trackInteractionModality } from "./interactionModality-4Km2ibsq.js";
6
6
  import { t as useAnnounce } from "./announce-GU01Oix2.js";
7
- import { t as useTouchTriggerInternal } from "./useTouchTriggerInternal-5ExaYYSy.js";
8
- import { n as opensOnFocus, r as useHoverLayerDismiss, t as createFocusGate } from "./tooltipFocusRules-CxIlSnHw.js";
7
+ import { t as useTouchTriggerInternal } from "./useTouchTriggerInternal-C_mowlpv.js";
8
+ import { n as opensOnFocus, r as useHoverLayerDismiss, t as createFocusGate } from "./tooltipFocusRules-GGASOH_U.js";
9
9
  import { t as renderedText } from "./renderedText-BwJdmps3.js";
10
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";
11
11
  import "../styles/tooltip.css";
@@ -1,5 +1,5 @@
1
- import { c as PRESS_GROUP_ITEM_ATTRIBUTE, i as pressFadeMs, l as isTrackedByGroup, t as PRESSED_ATTRIBUTE } from "./pressFeedback-B3cqaMGl.js";
2
- import { t as armClickGuard } from "./clickGuard-CxqcfBCJ.js";
1
+ import { t as armClickGuard } from "./clickGuard-Bd-jBj_G.js";
2
+ import { c as pressFadeMs, f as PRESS_GROUP_ITEM_ATTRIBUTE, p as isTrackedByGroup, t as PRESSED_ATTRIBUTE } from "./pressSlot-B6TvGkSO.js";
3
3
  import { toValue, watch } from "vue";
4
4
  import "../styles/touch-hit-area.css";
5
5
  /** 不长:热区就是目标本身。 */
@@ -1,5 +1,5 @@
1
1
  import { t as INTERACTIVE_SELECTORS } from "./useClickableContainer-Dtjg-nkm.js";
2
- import { s as currentGesture } from "./layerDepth-SGFJ5L6X.js";
2
+ import { s as currentGesture } from "./layerDepth-DRfWATFr.js";
3
3
  import { a as trackInteractionModality, i as isTextEntrySincePointer, o as isDisabledControl, s as isTextEntryControl } from "./interactionModality-4Km2ibsq.js";
4
4
  import { onScopeDispose, ref, toValue, watch } from "vue";
5
5
  //#region src/composables/internal/tapRecognizer.ts
@@ -1,7 +1,7 @@
1
- import { t as matchesFocusVisible } from "./tooltipTriggerRules-CHNpQ6RL.js";
1
+ import { t as matchesFocusVisible } from "./tooltipTriggerRules-DIaGdkD_.js";
2
2
  import { a as trackInteractionModality, t as getInteractionModality } from "./interactionModality-4Km2ibsq.js";
3
- import { n as tooltipPresentInterestKey } from "./useTooltip-owvVSn_m.js";
4
- import { t as _sfc_main$1 } from "./Tooltip-DyGaJUbl.js";
3
+ import { n as tooltipPresentInterestKey } from "./useTooltip-DCp4sTM1.js";
4
+ import { t as _sfc_main$1 } from "./Tooltip-BdG9g6c6.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,7 +5,7 @@ import { t as useAnnounce } from "./announce-GU01Oix2.js";
5
5
  import { n as useAsyncSource } from "./useAsyncSource-7GTcK8ep.js";
6
6
  import { t as useCombobox } from "./useCombobox-BbDP75hw.js";
7
7
  import { t as _sfc_main$3 } from "./Spinner-D1adu3uH.js";
8
- import { t as createStillPointerGate } from "./stillPointerGate-BvCX7ddI.js";
8
+ import { t as createStillPointerGate } from "./stillPointerGate-BU1CKW7m.js";
9
9
  import { i as isOptionAction, n as searchResultMessage, r as OptionAction, t as useOptionActionGrid } from "./useOptionActionGrid-C7ibYM_A.js";
10
10
  import { Fragment, Teleport, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, guardReactiveProps, h, mergeProps, nextTick, normalizeClass, normalizeProps, normalizeStyle, openBlock, ref, renderList, renderSlot, toDisplayString, toValue, unref, useSlots, useTemplateRef, vShow, watch, withCtx, withDirectives, withModifiers } from "vue";
11
11
  import "../styles/layer.css";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@astryx-vue/core",
3
3
  "type": "module",
4
- "version": "0.34.0",
4
+ "version": "0.35.0",
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",