@astryx-vue/core 0.23.0 → 0.25.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 (304) hide show
  1. package/dist/AlertDialog/index.js +1 -1
  2. package/dist/{AlertDialog-DXOTr1D7.js → AlertDialog-Cub9_aPC.js} +6 -6
  3. package/dist/AppShell/index.js +1 -1
  4. package/dist/{AppShell-Cmu6bMY6.js → AppShell-D62A7lqZ.js} +5 -5
  5. package/dist/Avatar/index.js +1 -1
  6. package/dist/{Avatar-dMcn3j8Z.js → Avatar-BKoSK75s.js} +1 -1
  7. package/dist/AvatarGroup/index.d.ts +1 -1
  8. package/dist/AvatarGroup/index.js +1 -1
  9. package/dist/{AvatarGroup-BUXjzekw.js → AvatarGroup-DT5RbxDa.js} +1 -1
  10. package/dist/Banner/index.d.ts +1 -1
  11. package/dist/Banner/index.js +1 -1
  12. package/dist/{Banner-CTY9qV89.js → Banner-cg2nXT_4.js} +1 -1
  13. package/dist/BottomSheet/index.d.ts +1 -1
  14. package/dist/BottomSheet/index.js +2 -2
  15. package/dist/{BottomSheet-ZOjuZya0.js → BottomSheet-CpLYy3vb.js} +1 -1
  16. package/dist/{BottomSheet-DyJJtZZU.js → BottomSheet-DGhRZLw4.js} +108 -8
  17. package/dist/Breadcrumbs/index.d.ts +2 -2
  18. package/dist/Breadcrumbs/index.js +2 -2
  19. package/dist/{Breadcrumbs-mlCoLtma.js → Breadcrumbs-D-nHDHV8.js} +1 -1
  20. package/dist/Button/index.d.ts +1 -1
  21. package/dist/Button/index.js +1 -1
  22. package/dist/{Button-TiYG0btL.js → Button-D8AGK5oT.js} +3 -3
  23. package/dist/ButtonGroup/index.d.ts +1 -1
  24. package/dist/ButtonGroup/index.js +1 -1
  25. package/dist/{ButtonGroup-DNN4O9_-.js → ButtonGroup-CUN_rC57.js} +2 -2
  26. package/dist/Calendar/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-DsXup1mZ.js → Carousel-DrCG9wbP.js} +1 -1
  30. package/dist/Chat/index.d.ts +1 -1
  31. package/dist/Chat/index.js +1 -1
  32. package/dist/{Chat-DqYT_S9M.js → Chat-U1qq8gkF.js} +3 -3
  33. package/dist/CheckboxInput/index.d.ts +1 -1
  34. package/dist/CheckboxInput/index.js +1 -1
  35. package/dist/{CheckboxInput-BNwTTDHu.js → CheckboxInput-qm6lkjAw.js} +17 -7
  36. package/dist/CheckboxList/index.d.ts +1 -1
  37. package/dist/CheckboxList/index.js +1 -1
  38. package/dist/{CheckboxList-BLY16jPG.js → CheckboxList-DuCKhJHJ.js} +22 -7
  39. package/dist/ClickableCard/index.d.ts +1 -1
  40. package/dist/ClickableCard/index.js +1 -1
  41. package/dist/{ClickableCard-CVQ7XS4L.js → ClickableCard-CwGxO0GU.js} +2 -2
  42. package/dist/Code/index.js +1 -1
  43. package/dist/{CodeBlock-5KoJDvWd.js → CodeBlock-PMZd9dQ9.js} +1 -1
  44. package/dist/Collapsible/index.d.ts +1 -1
  45. package/dist/Collapsible/index.js +1 -1
  46. package/dist/{Collapsible-B1qW6OuL.js → Collapsible-BmUloCSR.js} +3 -3
  47. package/dist/CommandPalette/index.d.ts +1 -1
  48. package/dist/CommandPalette/index.js +1 -1
  49. package/dist/{CommandPalette-B2riNg_7.js → CommandPalette-Cy7trpD3.js} +2 -2
  50. package/dist/ComplexSelector/index.js +1 -1
  51. package/dist/{ComplexSelector-CVCIsgAU.js → ComplexSelector-DMBiVQWp.js} +3 -3
  52. package/dist/ContextMenu/index.d.ts +2 -2
  53. package/dist/ContextMenu/index.js +2 -2
  54. package/dist/{ContextMenu-DYLdP-Ok.js → ContextMenu-63ay7EE-.js} +13 -26
  55. package/dist/DateInput/index.d.ts +1 -1
  56. package/dist/DateInput/index.js +1 -1
  57. package/dist/{DateInput-D9Jv70H7.js → DateInput-B3Q91FDT.js} +3 -3
  58. package/dist/DateRangeInput/index.d.ts +1 -1
  59. package/dist/DateRangeInput/index.js +1 -1
  60. package/dist/{DateRangeInput-BsB2kg_q.js → DateRangeInput-B6Z66OsH.js} +3 -3
  61. package/dist/DateTimeInput/index.d.ts +1 -1
  62. package/dist/DateTimeInput/index.js +1 -1
  63. package/dist/{DateTimeInput-BDyKPKGD.js → DateTimeInput-B_7cn7ze.js} +5 -5
  64. package/dist/Dialog/index.d.ts +1 -1
  65. package/dist/Dialog/index.js +3 -3
  66. package/dist/{Dialog-JCB5s-T-.js → Dialog-C4FZ7p7Q.js} +10 -0
  67. package/dist/{Dialog-DUlWQH8R.js → Dialog-CBPD5b-S.js} +1 -1
  68. package/dist/{DialogHeader-C6hZZxdv.js → DialogHeader-CQ3pnLYi.js} +2 -2
  69. package/dist/Divider/index.d.ts +1 -1
  70. package/dist/Drawer/index.d.ts +1 -1
  71. package/dist/Drawer/index.js +1 -1
  72. package/dist/{Drawer-BDuiw1-g.js → Drawer-BOwQLKm9.js} +2 -2
  73. package/dist/DropdownMenu/index.d.ts +2 -2
  74. package/dist/DropdownMenu/index.js +3 -3
  75. package/dist/{DropdownMenu-PjqSkkQs.js → DropdownMenu-9CR9TiKG.js} +5 -5
  76. package/dist/{DropdownMenu-BVEOMFwc.js → DropdownMenu-DwIfoTnV.js} +18 -18
  77. package/dist/{DropdownMenuRadioItem.vue-C9DdN6UE.d.ts → DropdownMenuRadioItem.vue-DINRx71W.d.ts} +1 -1
  78. package/dist/EmptyState/index.js +1 -1
  79. package/dist/{EmptyState-CnFkYtcS.js → EmptyState-BG5g2jwJ.js} +3 -3
  80. package/dist/Field/index.js +3 -3
  81. package/dist/{Field-D4UmRHlD.js → Field-eAowUUMX.js} +1 -1
  82. package/dist/{FieldInfoTip-BSqcEcUx.js → FieldInfoTip-Dwl9HNp1.js} +1 -1
  83. package/dist/{FieldLabel-CZbayYFD.js → FieldLabel-CgYk-ORu.js} +1 -1
  84. package/dist/FileInput/index.d.ts +1 -1
  85. package/dist/FileInput/index.js +1 -1
  86. package/dist/{FileInput-8oYiJsq_.js → FileInput-B7zeePbM.js} +2 -2
  87. package/dist/Heading/index.js +1 -1
  88. package/dist/{Heading-COtyAhtB.js → Heading-B1dNZQtu.js} +1 -1
  89. package/dist/HoverCard/index.d.ts +1 -1
  90. package/dist/HoverCard/index.js +1 -1
  91. package/dist/{HoverCard-DGlOpk4x.js → HoverCard-CZhfsvP4.js} +2 -2
  92. package/dist/IconButton/index.js +1 -1
  93. package/dist/{IconButton-CwjHTIBg.js → IconButton-D9ZRJ7vD.js} +1 -1
  94. package/dist/InfoTip/index.d.ts +1 -1
  95. package/dist/InfoTip/index.js +1 -1
  96. package/dist/{InfoTip-CNZateDb.js → InfoTip-LJi9llxi.js} +2 -2
  97. package/dist/{InputClearButton-CzCP41sx.js → InputClearButton-C-j9Nf1s.js} +1 -1
  98. package/dist/InputGroup/index.js +1 -1
  99. package/dist/{InputGroup-CfUGHDNz.js → InputGroup-B8PGJZKH.js} +1 -1
  100. package/dist/{Item-CzKm9wxQ.js → Item-DUI1Qnnd.js} +2 -2
  101. package/dist/Lightbox/index.js +1 -1
  102. package/dist/{Lightbox-Dzzd2Vqe.js → Lightbox-BOWTHnTb.js} +1 -1
  103. package/dist/Link/index.d.ts +1 -1
  104. package/dist/Link/index.js +1 -1
  105. package/dist/{Link-B7OJQ0zl.js → Link-B75ygGzG.js} +2 -2
  106. package/dist/List/index.d.ts +2 -2
  107. package/dist/List/index.js +2 -2
  108. package/dist/{ListItem-Bc4snKv8.js → ListItem-C8SqSrU6.js} +4 -1
  109. package/dist/Markdown/index.js +1 -1
  110. package/dist/{Markdown-Cbj-nqhN.js → Markdown-Cqrcj-ct.js} +3 -3
  111. package/dist/MobileNav/index.js +1 -1
  112. package/dist/{MobileNavToggle-BlcdCg8M.js → MobileNavToggle-DLpEONfs.js} +12 -0
  113. package/dist/MoreMenu/index.d.ts +1 -1
  114. package/dist/MoreMenu/index.js +1 -1
  115. package/dist/{MoreMenu-DAhOiau3.js → MoreMenu-aR88r9xp.js} +17 -31
  116. package/dist/MultiSelector/index.d.ts +1 -1
  117. package/dist/MultiSelector/index.js +1 -1
  118. package/dist/{MultiSelector-ERv5u6r4.js → MultiSelector-UTaDe-YT.js} +23 -24
  119. package/dist/{NavDisclosure-CqAThYgR.js → NavDisclosure-B66SHKdd.js} +1 -1
  120. package/dist/{NavHeadingSurface-DJ4pWvEi.js → NavHeadingSurface-BZCzkCPJ.js} +1 -1
  121. package/dist/NavItem/index.js +1 -1
  122. package/dist/{NavItem-CB3loauj.js → NavItem-c1ScHEJY.js} +2 -2
  123. package/dist/NavMenu/index.js +3 -3
  124. package/dist/{NavMenu-BtA_Xbmr.js → NavMenu-DS6y8ZAY.js} +2 -2
  125. package/dist/{NavMenuItem-BxfjAf1T.js → NavMenuItem-BqIi3o3D.js} +3 -3
  126. package/dist/NumberInput/index.d.ts +1 -1
  127. package/dist/NumberInput/index.js +1 -1
  128. package/dist/{NumberInput-Bl5TFhGD.js → NumberInput-ClkOGF5j.js} +3 -3
  129. package/dist/Outline/index.js +1 -1
  130. package/dist/{Outline-NuPQMjxw.js → Outline-DvQbXc_H.js} +1 -1
  131. package/dist/OverflowList/index.d.ts +1 -1
  132. package/dist/OverflowList/index.js +1 -1
  133. package/dist/{OverflowList-CumJl6X_.js → OverflowList-UnVXBDIW.js} +2 -2
  134. package/dist/Pagination/index.d.ts +1 -1
  135. package/dist/Pagination/index.js +1 -1
  136. package/dist/{Pagination-DuTUReOl.js → Pagination-CTCLE02h.js} +2 -2
  137. package/dist/Popover/index.d.ts +1 -1
  138. package/dist/Popover/index.js +1 -1
  139. package/dist/{Popover-DpR4rwiW.js → Popover-CZvRSqqD.js} +3 -3
  140. package/dist/PowerSearch/index.d.ts +1 -1
  141. package/dist/PowerSearch/index.js +1 -1
  142. package/dist/{PowerSearch-CewQJzEt.js → PowerSearch-BBOum0TP.js} +17 -17
  143. package/dist/ProgressBar/index.d.ts +1 -1
  144. package/dist/ProgressBar/index.js +1 -1
  145. package/dist/{ProgressBar-Dp-0xquN.js → ProgressBar-Bgg6zsKR.js} +1 -1
  146. package/dist/Radio/index.d.ts +1 -1
  147. package/dist/Radio/index.js +1 -1
  148. package/dist/{RadioGroup-DrCL5-AN.js → RadioGroup-DPy5JQhm.js} +31 -9
  149. package/dist/RadioList/index.d.ts +1 -1
  150. package/dist/RadioList/index.js +1 -1
  151. package/dist/{RadioList-CRi4E1zq.js → RadioList-UN7IxQg8.js} +4 -1
  152. package/dist/Resizable/index.d.ts +1 -1
  153. package/dist/ScrollableArea/index.d.ts +1 -1
  154. package/dist/SegmentedControl/index.d.ts +1 -1
  155. package/dist/SegmentedControl/index.js +1 -1
  156. package/dist/{SegmentedControl-DFUYTOVH.js → SegmentedControl-BkWz-I2J.js} +73 -6
  157. package/dist/SelectableCard/index.d.ts +1 -1
  158. package/dist/SelectableCard/index.js +1 -1
  159. package/dist/{SelectableCard-Dp-LsEcf.js → SelectableCard-GRWYx3iD.js} +1 -1
  160. package/dist/Selector/index.d.ts +1 -1
  161. package/dist/Selector/index.js +1 -1
  162. package/dist/{Selector-D6yzPO5O.js → Selector-CCtsUveZ.js} +28 -23
  163. package/dist/SideNav/index.d.ts +1 -1
  164. package/dist/SideNav/index.js +2 -2
  165. package/dist/{SideNav-z_6FwEJy.js → SideNav-COl5ApOz.js} +9 -9
  166. package/dist/Slider/index.js +1 -1
  167. package/dist/{Slider-DMHlRq7q.js → Slider-CYie9hWm.js} +66 -22
  168. package/dist/Stack/index.d.ts +1 -1
  169. package/dist/StatusDot/index.js +1 -1
  170. package/dist/{StatusDot-B3oOyRF7.js → StatusDot-CHfgSYmv.js} +1 -1
  171. package/dist/Stepper/index.d.ts +1 -1
  172. package/dist/Stepper/index.js +1 -1
  173. package/dist/{Stepper-CgOdL36_.js → Stepper-CCuggsov.js} +1 -1
  174. package/dist/Switch/index.d.ts +1 -1
  175. package/dist/Switch/index.js +1 -1
  176. package/dist/{Switch-OPRkoPLi.js → Switch-D24CvhDS.js} +7 -4
  177. package/dist/TabList/index.d.ts +1 -1
  178. package/dist/TabList/index.js +1 -1
  179. package/dist/{TabList-FkoypUk0.js → TabList-DToCh5JW.js} +3 -3
  180. package/dist/Table/index.d.ts +1 -1
  181. package/dist/Table/index.js +1 -1
  182. package/dist/{Table-CCjpL_Ku.js → Table-D3mzxBr0.js} +13 -13
  183. package/dist/Text/index.js +1 -1
  184. package/dist/{Text-v1ep26uD.js → Text-5p-eZodt.js} +1 -1
  185. package/dist/TextArea/index.d.ts +1 -1
  186. package/dist/TextArea/index.js +1 -1
  187. package/dist/{TextArea-BilHnmSs.js → TextArea-Bp6D-riO.js} +4 -4
  188. package/dist/TextInput/index.d.ts +1 -1
  189. package/dist/TextInput/index.js +1 -1
  190. package/dist/{TextInput-D6tHM2sA.js → TextInput-BYslwBDZ.js} +4 -4
  191. package/dist/Thumbnail/index.js +1 -1
  192. package/dist/{Thumbnail-llGdnQM8.js → Thumbnail-B_a8tOS7.js} +3 -3
  193. package/dist/{TimeField-C5rcoaVu.js → TimeField-MDSJny9m.js} +3 -3
  194. package/dist/TimeInput/index.d.ts +1 -1
  195. package/dist/TimeInput/index.js +1 -1
  196. package/dist/{TimeInput-D0N8nwrI.js → TimeInput-B19amuxi.js} +2 -2
  197. package/dist/Timer/index.d.ts +1 -1
  198. package/dist/Timer/index.js +1 -1
  199. package/dist/{Timer-65PfuoQ7.js → Timer-BD3tfzrF.js} +1 -1
  200. package/dist/Timestamp/index.d.ts +1 -1
  201. package/dist/Timestamp/index.js +1 -1
  202. package/dist/{Timestamp-rYC8mE3r.js → Timestamp-CqWoZUKM.js} +3 -3
  203. package/dist/Toast/index.js +1 -1
  204. package/dist/{Toast-BtQ-4Y6Z.js → Toast-BKPl8iIr.js} +1 -1
  205. package/dist/ToggleButton/index.d.ts +1 -1
  206. package/dist/ToggleButton/index.js +1 -1
  207. package/dist/{ToggleButton-DTrNL430.js → ToggleButton-DfpsuhMa.js} +12 -6
  208. package/dist/Token/index.d.ts +1 -1
  209. package/dist/Token/index.js +1 -1
  210. package/dist/{Token-CPNzkSj3.js → Token-C7Dt5ygK.js} +2 -2
  211. package/dist/Tokenizer/index.d.ts +1 -1
  212. package/dist/Tokenizer/index.js +1 -1
  213. package/dist/{Tokenizer-DdddkJb1.js → Tokenizer-C-eorFsF.js} +5 -5
  214. package/dist/Toolbar/index.d.ts +1 -1
  215. package/dist/Tooltip/index.d.ts +1 -1
  216. package/dist/Tooltip/index.js +2 -2
  217. package/dist/{Tooltip-CByjfHBZ.js → Tooltip-88zhGfzF.js} +1 -1
  218. package/dist/TopNav/index.d.ts +1 -1
  219. package/dist/TopNav/index.js +1 -1
  220. package/dist/{TopNav-C1wpttKX.js → TopNav-DMFIsFwy.js} +5 -5
  221. package/dist/TreeList/index.d.ts +1 -1
  222. package/dist/TreeList/index.js +1 -1
  223. package/dist/{TreeList-DOAcS3PM.js → TreeList-nU2gSmQm.js} +4 -4
  224. package/dist/Typeahead/index.js +2 -2
  225. package/dist/{Typeahead-6y_r-VNU.js → Typeahead-DUQfmy_r.js} +5 -5
  226. package/dist/{assertOptions-og3t30Fh.js → assertOptions-DVRsfCk1.js} +22 -2
  227. package/dist/{batch-oTkSbtVz.js → batch-DR5SgbnX.js} +2 -2
  228. package/dist/{clickGuard-ChKuogmR.js → clickGuard-FrlnECMp.js} +1 -2
  229. package/dist/coarsePointer-BfMx3H23.js +86 -0
  230. package/dist/composables/index.js +6 -6
  231. package/dist/{composables-COCeg92e.js → composables-Do86VAmM.js} +7 -110
  232. package/dist/{context-DQPBIsl5.js → context-WY1ippwe.js} +2 -2
  233. package/dist/{disabledInteraction-CPzL8kVP.js → disabledInteraction-Bqoyhoss.js} +9 -1
  234. package/dist/{edge-3sC8-cbB.js → edge-qfeek_VV.js} +1 -1
  235. package/dist/{edgeRide-DOxmVxTM.js → edgeRide-iWUNdlxe.js} +4 -4
  236. package/dist/{sharedRealm-H1OrlP0V.js → flatTree-BB4yPMNL.js} +1 -49
  237. package/dist/{handle-CSHfxBie.js → handle-ma1yF_B_.js} +2 -1
  238. package/dist/holdEntranceInput-DjEzfGRU.js +523 -0
  239. package/dist/{index-beOIC0Qk.d.ts → index-0RIgvtdm.d.ts} +1 -1
  240. package/dist/{index-ZT45ZWd5.d.ts → index-B52PMrO7.d.ts} +8 -8
  241. package/dist/{index-Dc6mU3rv.d.ts → index-B63NOJRc.d.ts} +1 -1
  242. package/dist/{index-X4S7_dmq.d.ts → index-BA8exXNP.d.ts} +1 -1
  243. package/dist/{index-BB9acgK8.d.ts → index-BgT6mH3U.d.ts} +1 -1
  244. package/dist/{index-nk2xIHpr.d.ts → index-BhdxP-OG.d.ts} +3 -3
  245. package/dist/{index-B5MCvW75.d.ts → index-BjmMJ_4E.d.ts} +65 -49
  246. package/dist/{index-CpLLSVCn.d.ts → index-BtgkNd0Q.d.ts} +4 -4
  247. package/dist/{index-CP-fJFcJ.d.ts → index-BxWCX2pJ.d.ts} +2 -2
  248. package/dist/{index-51CkIKnI.d.ts → index-C93nwgTW.d.ts} +1 -1
  249. package/dist/{index-BJputYk6.d.ts → index-CH-xSiJz.d.ts} +3 -3
  250. package/dist/{index-C4S65SAW.d.ts → index-CKnr0JlT.d.ts} +1 -1
  251. package/dist/{index-B-3EGjfQ.d.ts → index-CO9GW-ik.d.ts} +1 -1
  252. package/dist/{index-BaFphczL.d.ts → index-COgrQZIL.d.ts} +1 -1
  253. package/dist/{index-GgHVkJtB.d.ts → index-CRtGmCHi.d.ts} +1 -1
  254. package/dist/{index-CBOv5j3c.d.ts → index-CbA8rR_b.d.ts} +1 -1
  255. package/dist/{index-DXHmlFcC.d.ts → index-CuW4AQ7M.d.ts} +3 -3
  256. package/dist/{index-C8wfe0Mr.d.ts → index-D05JGsT3.d.ts} +1 -1
  257. package/dist/{index-BlhbRf58.d.ts → index-DDVCVpnG.d.ts} +1 -1
  258. package/dist/{index-MvrDMqnQ.d.ts → index-DYabo8TI.d.ts} +1 -1
  259. package/dist/{index-SRA6e30Q.d.ts → index-Dcxqzk_d.d.ts} +8 -8
  260. package/dist/{index-Cb-rvc1W.d.ts → index-DofC9Rll.d.ts} +1 -1
  261. package/dist/{index-B6svLvfZ.d.ts → index-Qdbssopn.d.ts} +1 -1
  262. package/dist/{index-NOxH5oYj.d.ts → index-etx25Eq-.d.ts} +1 -1
  263. package/dist/{index-B3U6GJKl.d.ts → index-lmd9LZKB.d.ts} +1 -1
  264. package/dist/{index-C9uW39Mj.d.ts → index-mK1ICsVg.d.ts} +3 -3
  265. package/dist/{index-ql9ApSTF.d.ts → index-yQc-te9a.d.ts} +2 -2
  266. package/dist/index.d.ts +30 -30
  267. package/dist/index.js +95 -95
  268. package/dist/inputStream-LZdK8luP.js +239 -0
  269. package/dist/{landing-DFC97kl9.js → landing-qVsYAZ-v.js} +2 -2
  270. package/dist/{pressFeedback-CEUPQWIS.js → pressFeedback-DVR5V1b6.js} +3 -164
  271. package/dist/{stillPointerGate-1Tgkns0J.js → stillPointerGate-D3loXLh7.js} +1 -1
  272. package/dist/{tooltipFocusRules-vIH7PZh1.js → tooltipFocusRules-CFNKWzYn.js} +1 -1
  273. package/dist/{tooltipTriggerRules-DoBAbfGc.js → tooltipTriggerRules-DyPyWOdP.js} +1 -1
  274. package/dist/touchHold-CFJlSClt.js +30 -0
  275. package/dist/{types-Dxs5rf-2.d.ts → types-Gw2OjSK9.d.ts} +9 -9
  276. package/dist/{useActionGroupTracking-PVBCtLUE.js → useActionGroupTracking-C6BzQzvp.js} +2 -2
  277. package/dist/{useDismiss-CMIsdIOQ.js → useDismiss-C7_S7qUA.js} +87 -5
  278. package/dist/useHeldPresentation-fQsuYFhz.js +126 -0
  279. package/dist/{useInputStatusIcon-CrgeMzrf.js → useInputStatusIcon-BFw-EXjJ.js} +1 -1
  280. package/dist/{useMenuDrillIn-f3m-59Qb.js → useMenuDrillIn-CDn2na4X.js} +9 -8
  281. package/dist/{useMenuPress-wqRDvUMW.js → useMenuPress-CxUqSUZ9.js} +2 -2
  282. package/dist/{usePressFeedback-aufF1sCH.js → usePressFeedback-BhNcuxQv.js} +1 -1
  283. package/dist/{useTooltip-BwqzEtoF.js → useTooltip-CJHbG8Pv.js} +2 -2
  284. package/dist/{useTouchHitArea-BMDBe36j.js → useTouchHitArea-CNZyA18Y.js} +2 -2
  285. package/dist/{useTruncationTooltip-CRhoPzeu.js → useTruncationTooltip-BTcr1LCR.js} +3 -3
  286. package/dist/{useTypeaheadMenuConfig-GvdIymRg.js → useTypeaheadMenuConfig-DeDGVR8S.js} +1 -1
  287. package/package.json +1 -1
  288. package/styles/checkbox-list.css +5 -0
  289. package/styles/context-menu.css +17 -73
  290. package/styles/dialog.css +18 -1
  291. package/styles/hover-card.css +13 -72
  292. package/styles/layer.css +68 -0
  293. package/styles/multi-selector.css +17 -30
  294. package/styles/popover.css +13 -72
  295. package/styles/radio-indicator.css +2 -2
  296. package/styles/radio.css +25 -0
  297. package/styles/segmented-control.css +46 -1
  298. package/styles/selector.css +17 -30
  299. package/styles/slider.css +8 -2
  300. package/styles/switch.css +2 -1
  301. package/styles/toggle-button.css +3 -0
  302. package/styles/tooltip.css +12 -71
  303. package/styles/typeahead.css +17 -30
  304. package/dist/{index-BqhgeAT4.d.ts → index-CHx33xGa.d.ts} +2 -2
@@ -1,4 +1,4 @@
1
- import { C as ownScaleOf, D as glides, T as visibleRect, f as round, o as bandFor, u as takesPart, w as scaleOf } from "./batch-oTkSbtVz.js";
1
+ import { C as ownScaleOf, D as glides, T as visibleRect, f as round, o as bandFor, u as takesPart, w as scaleOf } from "./batch-DR5SgbnX.js";
2
2
  //#region src/motion/layout/edge.ts
3
3
  /** Whether `element` lays its inline axis out right to left. */
4
4
  function isRtl(element) {
@@ -1,7 +1,7 @@
1
- import { a as sharedWeakMap } from "./sharedRealm-H1OrlP0V.js";
2
- import { t as areaOf } from "./handle-CSHfxBie.js";
3
- import { D as glides, O as numbersIn, T as visibleRect, _ as safeAnimate, d as layoutMotion, i as changeStartOf, m as sampleOver, n as batches, p as sampleKeyframes, u as takesPart, v as retimeSettle, w as scaleOf, x as intersects } from "./batch-oTkSbtVz.js";
4
- import { a as isRtl, c as slideFrame, i as holdSlideClip, l as slidingParts, n as fractionClip, o as previousInFlow, r as glideMoving, s as pxClip, t as extentOf } from "./edge-3sC8-cbB.js";
1
+ import { l as sharedWeakMap } from "./inputStream-LZdK8luP.js";
2
+ import { t as areaOf } from "./handle-ma1yF_B_.js";
3
+ import { D as glides, O as numbersIn, T as visibleRect, _ as safeAnimate, d as layoutMotion, i as changeStartOf, m as sampleOver, n as batches, p as sampleKeyframes, u as takesPart, v as retimeSettle, w as scaleOf, x as intersects } from "./batch-DR5SgbnX.js";
4
+ import { a as isRtl, c as slideFrame, i as holdSlideClip, l as slidingParts, n as fractionClip, o as previousInFlow, r as glideMoving, s as pxClip, t as extentOf } from "./edge-qfeek_VV.js";
5
5
  //#region src/motion/layout/playChange.ts
6
6
  /** Each part's slide, by its motion: a stopped slide is no glide. */
7
7
  const slideTargets = sharedWeakMap("motion/animated-layout/slide-targets", 1);
@@ -73,52 +73,4 @@ function shadowRootsOutward(node) {
73
73
  return roots;
74
74
  }
75
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 };
76
+ export { shadowRootsOutward as a, isHTMLElement as c, shadowHostOf as i, isNode as l, deepActiveElement as n, isDocument as o, parentAcrossShadow as r, isElement as s, containsAlongFlatTree as t };
@@ -1,4 +1,5 @@
1
- import { l as parentAcrossShadow, n as sharedKey, p as isElement, t as realmValue } from "./sharedRealm-H1OrlP0V.js";
1
+ import { r as parentAcrossShadow, s as isElement } from "./flatTree-BB4yPMNL.js";
2
+ import { a as realmValue, o as sharedKey } from "./inputStream-LZdK8luP.js";
2
3
  import { v as registerMotionTable } from "./pressGesture-BzIBmKF2.js";
3
4
  //#region src/motion/reducedMotionMark.ts
4
5
  /**
@@ -0,0 +1,523 @@
1
+ import { l as isNode, o as isDocument, r as parentAcrossShadow, s as isElement, t as containsAlongFlatTree } from "./flatTree-BB4yPMNL.js";
2
+ import { c as sharedState, i as subscribeInput, n as getLastMousePoint, r as getLastPointerType, t as getDownPresses } from "./inputStream-LZdK8luP.js";
3
+ import { t as isCoarsePointer } from "./coarsePointer-BfMx3H23.js";
4
+ import { n as registerTouchHold } from "./touchHold-CFJlSClt.js";
5
+ //#region src/layer/inputHoldState.ts
6
+ /**
7
+ * @file inputHoldState.ts
8
+ * @output 输入暂挡的共享登记:哪些浮层正被挡着、各文档的按压暂挡、哪些元素是挡板
9
+ * @position `inputHold.ts`、`inputHoldShield.ts`、`inputHoldPress.ts` 共用的状态,
10
+ * 按 realm 共享,页面上另一份 core 副本挡住的浮层,手势宿主一样看得见
11
+ */
12
+ const { held, heldDocuments, pressHolds, liveShields } = sharedState("layer/input-hold/state", 1, () => ({
13
+ held: /* @__PURE__ */ new WeakMap(),
14
+ /** 每个文档里被挡着的浮层,先挡的在前。 */
15
+ heldDocuments: /* @__PURE__ */ new WeakMap(),
16
+ pressHolds: /* @__PURE__ */ new WeakMap(),
17
+ liveShields: /* @__PURE__ */ new WeakSet()
18
+ }));
19
+ /** 共享输入流最后送来的指针事件是不是鼠标的。 */
20
+ function isMouseLast(doc) {
21
+ const view = doc?.defaultView;
22
+ return view != null && getLastPointerType(view) === "mouse";
23
+ }
24
+ /** `node` 是不是一块正在生效的挡板。需要看穿挡板的命中测试跳过它。 */
25
+ function isInputShield(node) {
26
+ return node != null && liveShields.has(node);
27
+ }
28
+ /**
29
+ * 文档里还在文档中的被挡浮层,先挡的在前。离开文档的浮层不再挡什么;
30
+ * 一个都不剩时,按压暂挡不再接新的按压,等已挡的按压结束后退订。
31
+ */
32
+ function liveLayers(doc) {
33
+ const layers = heldDocuments.get(doc);
34
+ if (layers == null) return [];
35
+ for (const layer of layers) if (!layer.isConnected) layers.delete(layer);
36
+ if (layers.size > 0) return [...layers];
37
+ heldDocuments.delete(doc);
38
+ pressHolds.get(doc)?.release();
39
+ return [];
40
+ }
41
+ //#endregion
42
+ //#region src/layer/inputHoldShield.ts
43
+ const SWALLOWED = [
44
+ "pointerdown",
45
+ "pointerup",
46
+ "touchstart",
47
+ "touchend",
48
+ "mousedown",
49
+ "mouseup",
50
+ "click",
51
+ "contextmenu"
52
+ ];
53
+ function swallow(event) {
54
+ if (event.cancelable && event.type !== "touchstart") event.preventDefault();
55
+ event.stopPropagation();
56
+ }
57
+ /**
58
+ * 放进 `layer` 里的透明遮挡:`isFull` 时从顶层盖满视口,否则只盖浮层自己。
59
+ * 挡板在浮层里面,点在它上面等于点在浮层里,会被轻触关闭的浮层不会因此关掉。
60
+ */
61
+ function addShield(layer, isFull) {
62
+ const shield = layer.ownerDocument.createElement("div");
63
+ if (isFull) shield.setAttribute("popover", "manual");
64
+ shield.setAttribute("aria-hidden", "true");
65
+ shield.setAttribute("data-astryx-input-shield", "");
66
+ Object.assign(shield.style, {
67
+ position: isFull ? "fixed" : "absolute",
68
+ inset: "0",
69
+ width: isFull ? "100vw" : "100%",
70
+ height: isFull ? "100vh" : "100%",
71
+ zIndex: isFull ? "auto" : "2147483647",
72
+ maxWidth: "none",
73
+ maxHeight: "none",
74
+ margin: "0",
75
+ padding: "0",
76
+ border: "0",
77
+ background: "transparent",
78
+ overflow: "hidden",
79
+ touchAction: "pinch-zoom",
80
+ pointerEvents: "auto",
81
+ visibility: "visible"
82
+ });
83
+ for (const type of SWALLOWED) shield.addEventListener(type, swallow, {
84
+ capture: true,
85
+ passive: false
86
+ });
87
+ layer.append(shield);
88
+ liveShields.add(shield);
89
+ if (isFull && typeof shield.showPopover === "function") try {
90
+ shield.showPopover();
91
+ } catch {}
92
+ return shield;
93
+ }
94
+ /** 拆掉一块挡板。 */
95
+ function removeShield(shield) {
96
+ liveShields.delete(shield);
97
+ shield.remove();
98
+ }
99
+ /**
100
+ * 每个点周围的正方形口子。两个重叠的口子合成一个盖住两者的框:按非零环绕规则,
101
+ * 同向画的两个口子重叠的部分会被算两次,反而又合上了。
102
+ */
103
+ function openings(points) {
104
+ const boxes = [];
105
+ for (const { x, y } of points) {
106
+ let box = {
107
+ left: x - 2,
108
+ right: x + 2,
109
+ top: y - 2,
110
+ bottom: y + 2
111
+ };
112
+ for (let index = boxes.length - 1; index >= 0; index--) {
113
+ const other = boxes[index];
114
+ if (box.left < other.right && other.left < box.right && box.top < other.bottom && other.top < box.bottom) {
115
+ box = {
116
+ left: Math.min(box.left, other.left),
117
+ right: Math.max(box.right, other.right),
118
+ top: Math.min(box.top, other.top),
119
+ bottom: Math.max(box.bottom, other.bottom)
120
+ };
121
+ boxes.splice(index, 1);
122
+ index = boxes.length;
123
+ }
124
+ }
125
+ boxes.push(box);
126
+ }
127
+ return boxes;
128
+ }
129
+ /**
130
+ * 给鼠标在挡板上留条路。浏览器先命中测试、脚本才读得到指针类型,所以手指
131
+ * 升起挡板后一直没动过的鼠标,会按到挡板上。满屏挡板在输入流最后听到鼠标
132
+ * 的那一点留个口子;只盖浮层自己的挡板干脆不接点击(它跟着进场动画在动)——
133
+ * 手指按在那里照样被按压暂挡按指针拦下。满屏挡板还给升起前就按下的手指
134
+ * 各留一个口子(见 {@link openToEarlierPresses})。
135
+ */
136
+ function openToMouse(state, doc) {
137
+ const { shield } = state;
138
+ if (shield == null) return;
139
+ const view = doc.defaultView;
140
+ const mouse = view == null ? null : getLastMousePoint(view);
141
+ const downPresses = view == null ? null : getDownPresses(view);
142
+ const presses = [];
143
+ if (state.isShieldFull && downPresses != null) for (const pointerId of state.pressOpenings) {
144
+ const point = downPresses.get(pointerId);
145
+ if (point != null) presses.push(point);
146
+ }
147
+ if (mouse == null && presses.length === 0 || shield.style.pointerEvents === "none") {
148
+ shield.style.removeProperty("clip-path");
149
+ return;
150
+ }
151
+ if (!state.isShieldFull) {
152
+ shield.style.pointerEvents = "none";
153
+ return;
154
+ }
155
+ const outline = [
156
+ "0 0",
157
+ "100% 0",
158
+ "100% 100%",
159
+ "0 100%"
160
+ ];
161
+ for (const { left, right, top, bottom } of openings(mouse == null ? presses : [mouse, ...presses])) outline.push(`0 ${top}px`, `${left}px ${top}px`, `${left}px ${bottom}px`, `${right}px ${bottom}px`, `${right}px ${top}px`, `0 ${top}px`);
162
+ shield.style.clipPath = `polygon(${outline.join(", ")})`;
163
+ }
164
+ /**
165
+ * 满屏挡板升起前就按下的每根手指或笔,在它那里留个口子。WebKit 会对这一下的
166
+ * 抬起重新做命中测试(即使抓着指针),抬起落在挡板上就是落在浮层里,会被轻触
167
+ * 关闭的浮层就关不掉了。有了口子,抬起落到下面原本的东西上,轻触关闭照常。
168
+ * 在更早一次暂挡里按下、正被按压暂挡拦着的按压不留口子。
169
+ */
170
+ function openToEarlierPresses(state, doc) {
171
+ const view = doc.defaultView;
172
+ if (view == null) return;
173
+ const pressHold = pressHolds.get(doc);
174
+ for (const pointerId of getDownPresses(view).keys()) if (pressHold?.holds(pointerId) !== true) state.pressOpenings.add(pointerId);
175
+ }
176
+ //#endregion
177
+ //#region src/layer/inputHoldPress.ts
178
+ const HELD_POINTERS = /* @__PURE__ */ new Set(["touch", "pen"]);
179
+ /** 被挡的一下在暂挡结束后最多再跟多久。 */
180
+ const STRAY_PRESS_MS = 1e4;
181
+ const POINTER_EVENTS = [
182
+ "pointerdown",
183
+ "pointermove",
184
+ "pointerup",
185
+ "pointercancel"
186
+ ];
187
+ const TOUCH_EVENTS = [
188
+ "touchstart",
189
+ "touchmove",
190
+ "touchend",
191
+ "touchcancel"
192
+ ];
193
+ const PRESS_EVENTS = [
194
+ "mousedown",
195
+ "mouseup",
196
+ "click",
197
+ "auxclick",
198
+ "dblclick",
199
+ "contextmenu"
200
+ ];
201
+ /** 文档的按压暂挡,没开就开起来。 */
202
+ function pressHoldFor(doc) {
203
+ let hold = pressHolds.get(doc) ?? null;
204
+ if (hold == null) {
205
+ hold = createPressHold(doc);
206
+ if (hold != null) pressHolds.set(doc, hold);
207
+ }
208
+ return hold;
209
+ }
210
+ /**
211
+ * 有浮层被挡期间,拦下落进 `doc` 窗口的每一下手指或笔的按压,每一下都跟到它
212
+ * 自己结束,哪怕暂挡已经放开。移动的鼠标从挡板穿过去。它通过共享输入流最先
213
+ * 听到事件,被挡的事件在那里就停下:文档、元素上的监听都听不到,按压反馈和
214
+ * 手势宿主也听不到。每个文档一份;不再挡、被挡的按压和它们的 click 都结束后退订。
215
+ */
216
+ function createPressHold(doc) {
217
+ const view = doc.defaultView;
218
+ if (view == null) return null;
219
+ /** 新的按压要不要挡:直到 release。 */
220
+ let isHolding = true;
221
+ let isListening = true;
222
+ /** 还按着的被挡按压,按 pointerId 和 touch identifier 记。 */
223
+ const pointers = /* @__PURE__ */ new Set();
224
+ const touches = /* @__PURE__ */ new Set();
225
+ /** 下一个 click 属于谁:被挡的那一下,还是别的。 */
226
+ let lastPress = null;
227
+ /** 没写指针类型的 click 在这个时刻之前都算被挡那一下的。 */
228
+ let clickUntil = -Infinity;
229
+ let timer;
230
+ const unsubscribers = [];
231
+ const now = () => view.performance.now();
232
+ const isPressDown = () => pointers.size > 0 || touches.size > 0;
233
+ const swallow = (event) => {
234
+ if (event.cancelable) event.preventDefault();
235
+ event.stopImmediatePropagation();
236
+ };
237
+ /** release 之后:最后一下被挡的按压和它的 click 结束就退订。 */
238
+ const settle = () => {
239
+ if (isHolding || !isListening) return;
240
+ if (timer !== void 0) clearTimeout(timer);
241
+ if (isPressDown()) {
242
+ timer = setTimeout(stop, STRAY_PRESS_MS);
243
+ return;
244
+ }
245
+ const wait = clickUntil - now();
246
+ if (wait > 0) timer = setTimeout(stop, wait);
247
+ else stop();
248
+ };
249
+ /** 还有浮层被挡吗(离开文档的不算)。 */
250
+ const holdsNewPress = () => {
251
+ if (isHolding) liveLayers(doc);
252
+ return isHolding;
253
+ };
254
+ /**
255
+ * 落在 `target` 上的新按压要不要挡。有浮层盖满视口时,按在哪都挡;
256
+ * 只挡自己那块(`'surface'`)时,只挡按在浮层上的,周围页面照常。
257
+ */
258
+ const holdsPressAt = (target) => {
259
+ if (!holdsNewPress()) return false;
260
+ for (const layer of liveLayers(doc)) {
261
+ const state = held.get(layer);
262
+ if (state == null) continue;
263
+ if (state.viewport > 0) return true;
264
+ if (state.surface > 0 && isNode(target) && containsAlongFlatTree(layer, target)) return true;
265
+ }
266
+ return false;
267
+ };
268
+ const pressEnded = () => {
269
+ clickUntil = now() + 800;
270
+ settle();
271
+ };
272
+ /** 手指或笔来了,挡板接点击;移动的鼠标来了,挡板让开。 */
273
+ const followPointer = (pointerType) => {
274
+ for (const layer of liveLayers(doc)) {
275
+ const state = held.get(layer);
276
+ if (state?.shield == null) continue;
277
+ const value = pointerType === "mouse" ? "none" : "auto";
278
+ if (state.shield.style.pointerEvents !== value) state.shield.style.pointerEvents = value;
279
+ openToMouse(state, doc);
280
+ }
281
+ };
282
+ /**
283
+ * 挡板给鼠标让开时,被挡的一下落到了挡板后面:把它抓到挡板上,抬起也算暂挡的,
284
+ * 会被轻触关闭的浮层不会关掉。合成的按压没有活动指针可抓,照样吞掉。
285
+ */
286
+ const captureToShield = (event) => {
287
+ if (!event.isTrusted) return;
288
+ const top = liveLayers(doc).at(-1);
289
+ const shield = top == null ? null : held.get(top)?.shield;
290
+ if (shield == null || isInputShield(event.target)) return;
291
+ try {
292
+ shield.setPointerCapture(event.pointerId);
293
+ } catch {}
294
+ };
295
+ /** 更早按下那一下的口子跟着它走,抬起时合上。输入流已经先记下了这次的位置。 */
296
+ const followEarlierPress = (event) => {
297
+ const { pointerId, type } = event;
298
+ for (const layer of liveLayers(doc)) {
299
+ const state = held.get(layer);
300
+ if (state == null || !state.pressOpenings.has(pointerId)) continue;
301
+ if (type === "pointerup" || type === "pointercancel") state.pressOpenings.delete(pointerId);
302
+ openToMouse(state, doc);
303
+ }
304
+ };
305
+ const onPointer = (event) => {
306
+ const { pointerId, pointerType, type } = event;
307
+ if (HELD_POINTERS.has(pointerType) && type !== "pointerdown" && !pointers.has(pointerId)) followEarlierPress(event);
308
+ if ((HELD_POINTERS.has(pointerType) ? type === "pointerdown" || type === "pointermove" : pointerType === "mouse" && type === "pointermove" && event.buttons === 0) && holdsNewPress()) followPointer(pointerType);
309
+ if (type === "pointerdown") {
310
+ if (!HELD_POINTERS.has(pointerType) || !holdsPressAt(event.target)) {
311
+ pointers.delete(pointerId);
312
+ lastPress = "free";
313
+ clickUntil = -Infinity;
314
+ settle();
315
+ return false;
316
+ }
317
+ pointers.add(pointerId);
318
+ lastPress = "held";
319
+ captureToShield(event);
320
+ } else if (!pointers.has(pointerId)) return false;
321
+ swallow(event);
322
+ if (type === "pointerup" || type === "pointercancel") {
323
+ pointers.delete(pointerId);
324
+ pressEnded();
325
+ }
326
+ return true;
327
+ };
328
+ const onTouch = (event) => {
329
+ const { changedTouches, touches: down, type } = event;
330
+ const changed = Array.from(changedTouches);
331
+ if (type === "touchstart") {
332
+ const live = new Set(Array.from(down, (touch) => touch.identifier));
333
+ for (const identifier of touches) if (!live.has(identifier)) touches.delete(identifier);
334
+ const heldTouches = changed.filter((touch) => holdsPressAt(touch.target));
335
+ if (heldTouches.length === 0) {
336
+ for (const touch of changed) touches.delete(touch.identifier);
337
+ lastPress = "free";
338
+ clickUntil = -Infinity;
339
+ settle();
340
+ return false;
341
+ }
342
+ for (const touch of heldTouches) touches.add(touch.identifier);
343
+ lastPress = "held";
344
+ event.stopImmediatePropagation();
345
+ return true;
346
+ }
347
+ if (!changed.some((touch) => touches.has(touch.identifier))) return false;
348
+ if (type === "touchmove") {
349
+ event.stopImmediatePropagation();
350
+ if (down.length === 1 && event.cancelable) event.preventDefault();
351
+ return true;
352
+ }
353
+ swallow(event);
354
+ for (const touch of changed) touches.delete(touch.identifier);
355
+ pressEnded();
356
+ return true;
357
+ };
358
+ const onPress = (event) => {
359
+ if (event.detail === 0) return false;
360
+ const { pointerType } = event;
361
+ if (lastPress === "held" && (pointerType == null || pointerType === "" || HELD_POINTERS.has(pointerType)) && (isPressDown() || now() <= clickUntil)) {
362
+ swallow(event);
363
+ return true;
364
+ }
365
+ return false;
366
+ };
367
+ const pressHold = {
368
+ hold() {
369
+ isHolding = true;
370
+ if (timer !== void 0) {
371
+ clearTimeout(timer);
372
+ timer = void 0;
373
+ }
374
+ },
375
+ release() {
376
+ if (!isHolding) return;
377
+ isHolding = false;
378
+ settle();
379
+ },
380
+ holds: (pointerId) => pointers.has(pointerId)
381
+ };
382
+ function stop() {
383
+ if (!isListening) return;
384
+ isListening = false;
385
+ if (pressHolds.get(doc) === pressHold) pressHolds.delete(doc);
386
+ if (timer !== void 0) clearTimeout(timer);
387
+ for (const unsubscribe of unsubscribers.splice(0)) unsubscribe();
388
+ }
389
+ unsubscribers.push(...POINTER_EVENTS.map((type) => subscribeInput(view, type, onPointer, {
390
+ cancels: true,
391
+ first: true
392
+ })), ...TOUCH_EVENTS.map((type) => subscribeInput(view, type, onTouch, {
393
+ cancels: type === "touchmove" || type === "touchend",
394
+ first: true
395
+ })), ...PRESS_EVENTS.map((type) => subscribeInput(view, type, onPress, {
396
+ cancels: true,
397
+ first: true
398
+ })));
399
+ return pressHold;
400
+ }
401
+ //#endregion
402
+ //#region src/layer/inputHold.ts
403
+ /** `target` 是否在一个被挡着的浮层里,沿扁平树往上找。 */
404
+ function isInHeldLayer(target) {
405
+ for (let node = target; node != null; node = parentAcrossShadow(node)) if (isElement(node) && held.has(node)) return true;
406
+ return false;
407
+ }
408
+ /**
409
+ * 手势宿主问的那一句:`target` 上这一下触摸要不要挡。落在挡板上的都挡;
410
+ * 落在被挡浮层里的,除了鼠标都挡。什么都没挡时立刻答否。
411
+ */
412
+ function holdsTouch(target) {
413
+ const doc = isDocument(target) ? target : target.ownerDocument;
414
+ if (doc == null || !heldDocuments.has(doc)) return false;
415
+ if (isInputShield(target)) return true;
416
+ return isInHeldLayer(target) && !isMouseLast(doc);
417
+ }
418
+ let isRegistered = false;
419
+ function startHolding(layer) {
420
+ if (!isRegistered) {
421
+ isRegistered = true;
422
+ registerTouchHold(holdsTouch);
423
+ }
424
+ const doc = layer.ownerDocument;
425
+ let layers = heldDocuments.get(doc);
426
+ if (layers == null) {
427
+ layers = /* @__PURE__ */ new Set();
428
+ heldDocuments.set(doc, layers);
429
+ }
430
+ layers.add(layer);
431
+ pressHoldFor(doc)?.hold();
432
+ }
433
+ function stopHolding(layer) {
434
+ heldDocuments.get(layer.ownerDocument)?.delete(layer);
435
+ liveLayers(layer.ownerDocument);
436
+ }
437
+ /**
438
+ * 在 `until` settle 之前把输入挡在 `layer` 外面,返回提前放开的函数(重复调用无害)。
439
+ * 同一个浮层上的几次暂挡叠在一起,最后一次放开时浮层才恢复。每个事件按它自己的
440
+ * 指针判断,不看主指针,所以触屏上的鼠标在呈现期间照样能点。
441
+ */
442
+ function holdInput(layer, { until, scope }) {
443
+ let state = held.get(layer);
444
+ if (state == null) {
445
+ state = {
446
+ viewport: 0,
447
+ surface: 0,
448
+ shield: null,
449
+ isShieldFull: false,
450
+ pressOpenings: /* @__PURE__ */ new Set()
451
+ };
452
+ held.set(layer, state);
453
+ }
454
+ startHolding(layer);
455
+ const isFull = scope === "viewport";
456
+ const raisesFullShield = isFull && (state.shield == null || !state.isShieldFull);
457
+ if (state.shield != null && isFull && !state.isShieldFull) {
458
+ removeShield(state.shield);
459
+ state.shield = null;
460
+ }
461
+ if (state.shield == null) {
462
+ state.isShieldFull = isFull || state.viewport > 0;
463
+ state.shield = addShield(layer, state.isShieldFull);
464
+ if (isMouseLast(layer.ownerDocument)) state.shield.style.pointerEvents = "none";
465
+ }
466
+ if (isFull) state.viewport += 1;
467
+ else state.surface += 1;
468
+ if (raisesFullShield) openToEarlierPresses(state, layer.ownerDocument);
469
+ openToMouse(state, layer.ownerDocument);
470
+ let isReleased = false;
471
+ const release = () => {
472
+ if (isReleased) return;
473
+ isReleased = true;
474
+ const current = held.get(layer);
475
+ if (current == null) return;
476
+ if (isFull) current.viewport -= 1;
477
+ else current.surface -= 1;
478
+ if (current.viewport === 0 && current.surface === 0) {
479
+ if (current.shield != null) removeShield(current.shield);
480
+ held.delete(layer);
481
+ stopHolding(layer);
482
+ }
483
+ };
484
+ const end = "finished" in until ? until.finished : until;
485
+ Promise.resolve(end).then(release, release);
486
+ return release;
487
+ }
488
+ //#endregion
489
+ //#region src/layer/holdEntranceInput.ts
490
+ /**
491
+ * @file holdEntranceInput.ts
492
+ * @input 刚开始播 CSS 进场动画的浮层根元素
493
+ * @output holdEntranceInput:主指针是粗略指针(手指、笔)时,进场播完之前挡住输入
494
+ * @position 用 CSS 进场的浮层(Dialog、Drawer、MobileNav)的进场暂挡,建在 `inputHold.ts` 上
495
+ */
496
+ /**
497
+ * 进场播完前(最多 `capMs`)把手指和笔的输入挡在 `layer` 外面。返回放开的函数;
498
+ * 没有进场在播、或主指针是精细指针时什么都不挡,返回 `null`。
499
+ */
500
+ function holdEntranceInput(layer, { isModal = true, entrance: animated = layer, capMs } = {}) {
501
+ if (animated == null || typeof animated.getAnimations !== "function") return null;
502
+ const entrance = animated.getAnimations().filter(isEntrance);
503
+ if (entrance.length === 0) return null;
504
+ if (!isCoarsePointer(layer.ownerDocument.defaultView)) return null;
505
+ const ended = Promise.all(entrance.map(async (animation) => animation.finished));
506
+ return holdInput(layer, {
507
+ until: capMs == null ? ended : Promise.race([ended, after(capMs)]),
508
+ scope: isModal ? "viewport" : "surface"
509
+ });
510
+ }
511
+ async function after(ms) {
512
+ await new Promise((resolve) => {
513
+ setTimeout(resolve, ms);
514
+ });
515
+ }
516
+ /** 会自己结束的、正在播的动画:进场,而不是转圈。 */
517
+ function isEntrance(animation) {
518
+ if (animation.playState !== "running") return false;
519
+ const end = animation.effect?.getComputedTiming().endTime;
520
+ return typeof end === "number" && Number.isFinite(end);
521
+ }
522
+ //#endregion
523
+ export { holdEntranceInput as t };
@@ -122,9 +122,9 @@ declare const __VLS_base: import("vue").DefineComponent<PaginationProps, {}, {},
122
122
  onPageSizeChange?: ((pageSize: number) => any) | undefined;
123
123
  }>, {
124
124
  size: PaginationSize;
125
- step: number;
126
125
  isDisabled: boolean;
127
126
  variant: PaginationVariant;
127
+ step: number;
128
128
  disabled: boolean;
129
129
  page: number;
130
130
  pageSize: number;
@@ -4,7 +4,7 @@ import { Ref } from "vue";
4
4
  //#region src/MultiSelector/types.d.ts
5
5
  type MultiSelectorSize = 'sm' | 'md' | 'lg';
6
6
  type MultiSelectorVariant = 'input' | 'secondary' | 'ghost';
7
- type MultiSelectorPresentation = 'popover' | 'bottom-sheet';
7
+ type MultiSelectorPresentation = 'popover' | 'bottom-sheet' | 'adaptive';
8
8
  type MultiSelectorStatus = 'default' | 'success' | 'warning' | 'error';
9
9
  type MultiSelectorStatusVariant = 'attached' | 'detached' | 'tooltip';
10
10
  type MultiSelectorTriggerDisplay = 'count' | 'labels' | 'badges';
@@ -74,7 +74,7 @@ interface MultiSelectorProps extends FieldPartStylingProps {
74
74
  size?: MultiSelectorSize;
75
75
  /** input 是带边框的表单控件。secondary 对齐次要按钮。ghost 适合放在工具栏里。 */
76
76
  variant?: MultiSelectorVariant;
77
- /** popover 锚在触发器下,bottom-sheet 在底部弹层里展开。 */
77
+ /** popover 锚在触发器下,bottom-sheet 在底部弹层里展开,adaptive 在紧凑触屏上用底部弹层、其余用浮层。 */
78
78
  presentation?: MultiSelectorPresentation;
79
79
  /** 是否可清除。和 hasClear 等价,两者任一为真即生效。 */
80
80
  clearable?: boolean;
@@ -176,34 +176,34 @@ declare const __VLS_base: import("vue").DefineComponent<MultiSelectorProps, {
176
176
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
177
177
  search: (query: string) => any;
178
178
  click: (event: MouseEvent) => any;
179
+ focus: (event: FocusEvent) => any;
179
180
  change: (value: (string | number)[], change?: MultiSelectorCreateChange | undefined) => any;
180
181
  keydown: (event: KeyboardEvent) => any;
181
182
  openChange: (isOpen: boolean) => any;
182
183
  "update:modelValue": (value: (string | number)[]) => any;
183
- focus: (event: FocusEvent) => any;
184
184
  }, string, import("vue").PublicProps, Readonly<MultiSelectorProps> & Readonly<{
185
185
  onSearch?: ((query: string) => any) | undefined;
186
186
  onClick?: ((event: MouseEvent) => any) | undefined;
187
+ onFocus?: ((event: FocusEvent) => any) | undefined;
187
188
  onChange?: ((value: (string | number)[], change?: MultiSelectorCreateChange | undefined) => any) | undefined;
188
189
  onKeydown?: ((event: KeyboardEvent) => any) | undefined;
189
190
  onOpenChange?: ((isOpen: boolean) => any) | undefined;
190
191
  "onUpdate:modelValue"?: ((value: (string | number)[]) => any) | undefined;
191
- onFocus?: ((event: FocusEvent) => any) | undefined;
192
192
  }>, {
193
193
  required: boolean;
194
- status: MultiSelectorStatus;
195
194
  isLoading: boolean;
196
195
  variant: MultiSelectorVariant;
196
+ status: MultiSelectorStatus;
197
197
  modelValue: readonly (string | number)[];
198
198
  statusVariant: MultiSelectorStatusVariant;
199
- presentation: MultiSelectorPresentation;
200
199
  isReadOnly: boolean;
201
- labelHidden: boolean;
202
200
  disabled: boolean;
201
+ presentation: MultiSelectorPresentation;
202
+ searchable: boolean;
203
203
  clearable: boolean;
204
+ labelHidden: boolean;
204
205
  hasCreate: boolean;
205
206
  optional: boolean;
206
- searchable: boolean;
207
207
  selectAll: boolean;
208
208
  triggerDisplay: MultiSelectorTriggerDisplay;
209
209
  maxBadges: number;
@@ -545,8 +545,8 @@ declare const __VLS_base$11: import("vue").DefineComponent<ChatComposerProps, {
545
545
  onChange?: ((value: string) => any) | undefined;
546
546
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
547
547
  }>, {
548
- density: ChatDensity;
549
548
  elevation: ChatComposerElevation;
549
+ density: ChatDensity;
550
550
  statusPosition: "top" | "bottom";
551
551
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
552
552
  declare const __VLS_export$17: __VLS_WithSlots$11<typeof __VLS_base$11, __VLS_Slots$11>;