@astryx-vue/core 0.33.2 → 0.33.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (320) hide show
  1. package/dist/AlertDialog/index.js +1 -1
  2. package/dist/{AlertDialog-BwW3jdTg.js → AlertDialog-CwyMvZEI.js} +9 -9
  3. package/dist/AppShell/index.js +1 -1
  4. package/dist/{AppShell-BURF50V8.js → AppShell-4hWTPKSD.js} +5 -5
  5. package/dist/Avatar/index.js +1 -1
  6. package/dist/{Avatar-CcmhCa5q.js → Avatar-C6E6TYbe.js} +1 -1
  7. package/dist/AvatarGroup/index.d.ts +1 -1
  8. package/dist/AvatarGroup/index.js +1 -1
  9. package/dist/{AvatarGroup-DJKoExQk.js → AvatarGroup-BIPixZOb.js} +1 -1
  10. package/dist/Banner/index.d.ts +1 -1
  11. package/dist/Banner/index.js +1 -1
  12. package/dist/{Banner-DSSXXFU9.js → Banner-CMXebR4Y.js} +1 -1
  13. package/dist/BottomSheet/index.js +2 -2
  14. package/dist/{BottomSheet-KUGb-GPw.js → BottomSheet-BmmGemH5.js} +1 -1
  15. package/dist/{BottomSheet-Jq7g0EWd.js → BottomSheet-DKEUVLe5.js} +9 -9
  16. package/dist/Breadcrumbs/index.js +2 -2
  17. package/dist/{Breadcrumbs-BEx7_LpB.js → Breadcrumbs-BPxPAEHQ.js} +1 -1
  18. package/dist/Button/index.d.ts +1 -1
  19. package/dist/Button/index.js +1 -1
  20. package/dist/{Button-BlWhnkeM.js → Button-B7PvGVt6.js} +4 -4
  21. package/dist/ButtonGroup/index.d.ts +1 -1
  22. package/dist/ButtonGroup/index.js +1 -1
  23. package/dist/{ButtonGroup-D3pGXH3t.js → ButtonGroup-BkwQ0h97.js} +2 -2
  24. package/dist/Calendar/index.d.ts +1 -1
  25. package/dist/Card/index.d.ts +1 -1
  26. package/dist/Carousel/index.d.ts +1 -1
  27. package/dist/Carousel/index.js +1 -1
  28. package/dist/{Carousel-XHo3AGQj.js → Carousel-BmfKiv69.js} +1 -1
  29. package/dist/Chat/index.d.ts +1 -1
  30. package/dist/Chat/index.js +1 -1
  31. package/dist/{Chat-B0c_CxBk.js → Chat-2AG37D51.js} +5 -5
  32. package/dist/CheckboxInput/index.d.ts +1 -1
  33. package/dist/CheckboxInput/index.js +1 -1
  34. package/dist/{CheckboxInput-DCeCsNvg.js → CheckboxInput-rbMgS8ZL.js} +79 -74
  35. package/dist/CheckboxList/index.d.ts +1 -1
  36. package/dist/CheckboxList/index.js +1 -1
  37. package/dist/{CheckboxListItem-CGC_EBYs.js → CheckboxListItem-Ckt1Cwt_.js} +5 -5
  38. package/dist/ClickableCard/index.d.ts +1 -1
  39. package/dist/ClickableCard/index.js +1 -1
  40. package/dist/{ClickableCard-aU0QED8P.js → ClickableCard-Dh0tOQv-.js} +1 -1
  41. package/dist/Code/index.js +1 -1
  42. package/dist/{CodeBlock-ClZvd61o.js → CodeBlock-ZluDuBT7.js} +1 -1
  43. package/dist/Collapsible/index.js +1 -1
  44. package/dist/{Collapsible-BAup__Sy.js → Collapsible-B_9H2wV_.js} +3 -3
  45. package/dist/CommandPalette/index.js +1 -1
  46. package/dist/{CommandPalette-CvalZZHH.js → CommandPalette-Cbr-WWC8.js} +2 -2
  47. package/dist/ComplexSelector/index.d.ts +1 -1
  48. package/dist/ComplexSelector/index.js +1 -1
  49. package/dist/{ComplexSelector-DIwWcWwi.js → ComplexSelector-BPvBCUJk.js} +2 -2
  50. package/dist/ContextMenu/index.d.ts +1 -1
  51. package/dist/ContextMenu/index.js +2 -2
  52. package/dist/{ContextMenu-BnX93m0D.js → ContextMenu-BF4ALBZn.js} +6 -6
  53. package/dist/DateInput/index.d.ts +1 -1
  54. package/dist/DateInput/index.js +1 -1
  55. package/dist/{DateInput-BFjeik3X.js → DateInput-C7PICKR2.js} +4 -4
  56. package/dist/DateRangeInput/index.d.ts +1 -1
  57. package/dist/DateRangeInput/index.js +1 -1
  58. package/dist/{DateRangeInput-Cnrp5SDW.js → DateRangeInput-Dt-BA7AA.js} +3 -3
  59. package/dist/DateTimeInput/index.d.ts +1 -1
  60. package/dist/DateTimeInput/index.js +1 -1
  61. package/dist/{DateTimeInput-Zsf86rSO.js → DateTimeInput-XEESzGJf.js} +5 -5
  62. package/dist/Dialog/index.d.ts +1 -1
  63. package/dist/Dialog/index.js +3 -3
  64. package/dist/{Dialog-Bl5CCsoX.js → Dialog-B1xC9xMC.js} +2 -2
  65. package/dist/{Dialog-DIWIrzgk.js → Dialog-BmdNX3NC.js} +1 -1
  66. package/dist/{DialogHeader-DbWkeIrf.js → DialogHeader-DcP4xAk3.js} +2 -2
  67. package/dist/Divider/index.d.ts +1 -1
  68. package/dist/Drawer/index.d.ts +1 -1
  69. package/dist/Drawer/index.js +1 -1
  70. package/dist/{Drawer-MdC2BxbG.js → Drawer-CdHbZffI.js} +2 -2
  71. package/dist/DropdownMenu/index.js +2 -2
  72. package/dist/{DropdownMenu-4o8qS78m.js → DropdownMenu-C1494BkC.js} +9 -9
  73. package/dist/EmptyState/index.js +1 -1
  74. package/dist/{EmptyState-CeZXvaPU.js → EmptyState-BAP8BpDj.js} +2 -2
  75. package/dist/Field/index.js +3 -3
  76. package/dist/{Field-CrTrfcXB.js → Field-KszpxUdx.js} +1 -1
  77. package/dist/{FieldInfoTip-C3Ztw-wI.js → FieldInfoTip-CY9BTVtK.js} +1 -1
  78. package/dist/{FieldLabel-CFE2WC_i.js → FieldLabel-KPCTcJpO.js} +1 -1
  79. package/dist/FileInput/index.js +1 -1
  80. package/dist/{FileInput-BhO1SCw-.js → FileInput-BTIn6OoY.js} +3 -3
  81. package/dist/Heading/index.d.ts +1 -1
  82. package/dist/Heading/index.js +1 -1
  83. package/dist/{Heading-AZCa8gid.js → Heading-D94VFJtm.js} +1 -1
  84. package/dist/HoverCard/index.d.ts +1 -1
  85. package/dist/HoverCard/index.js +1 -1
  86. package/dist/{HoverCard-C4VR_GZ0.js → HoverCard-rwpyd6nt.js} +4 -4
  87. package/dist/IconButton/index.js +1 -1
  88. package/dist/{IconButton-CqWEkha9.js → IconButton-e5xeGow-.js} +1 -1
  89. package/dist/InfoTip/index.d.ts +1 -1
  90. package/dist/InfoTip/index.js +1 -1
  91. package/dist/{InfoTip-Dps1Aaem.js → InfoTip-DpvV8zrm.js} +2 -2
  92. package/dist/{InputClearButton-Xjvkkq7B.js → InputClearButton-BzxJH6mk.js} +1 -1
  93. package/dist/InputGroup/index.d.ts +1 -1
  94. package/dist/InputGroup/index.js +1 -1
  95. package/dist/{InputGroup-gYIGs7VH.js → InputGroup-Bj4hksiI.js} +1 -1
  96. package/dist/{Item-FxMSEuU3.js → Item-D62Cibn1.js} +2 -2
  97. package/dist/{LayerContentBoundary-C7VZOgMs.js → LayerContentBoundary-CTjEpdM4.js} +1 -1
  98. package/dist/Layout/index.js +2 -2
  99. package/dist/{Layout-D6UhyoVb.js → Layout-SJoCw8NC.js} +1 -1
  100. package/dist/{LayoutPanel-DfS5TvSP.js → LayoutPanel-DZN4RxX6.js} +1 -1
  101. package/dist/Lightbox/index.js +1 -1
  102. package/dist/{Lightbox-76vHqGA0.js → Lightbox-FWtAn7X5.js} +1 -1
  103. package/dist/Link/index.d.ts +1 -1
  104. package/dist/Link/index.js +1 -1
  105. package/dist/{Link-QPBGLcTk.js → Link-BxK3lbA-.js} +2 -2
  106. package/dist/List/index.d.ts +1 -1
  107. package/dist/List/index.js +2 -2
  108. package/dist/{ListItem-Ss6Kw90l.js → ListItem-B4jt3EXr.js} +4 -4
  109. package/dist/Markdown/index.js +1 -1
  110. package/dist/{Markdown-Cz6wbx9z.js → Markdown-CsoseOGe.js} +3 -3
  111. package/dist/MobileNav/index.js +1 -1
  112. package/dist/{MobileNavToggle-CCJBX2fq.js → MobileNavToggle-AgT6hzTg.js} +2 -2
  113. package/dist/MoreMenu/index.d.ts +1 -1
  114. package/dist/MoreMenu/index.js +1 -1
  115. package/dist/{MoreMenu-OOQAeJT9.js → MoreMenu-4zcxptan.js} +8 -8
  116. package/dist/MultiSelector/index.d.ts +1 -1
  117. package/dist/MultiSelector/index.js +1 -1
  118. package/dist/{MultiSelector-9HGDsMQE.js → MultiSelector-LuAE71wE.js} +6 -6
  119. package/dist/{NavDisclosure-BTeZLyLq.js → NavDisclosure-CSnUZY3k.js} +1 -1
  120. package/dist/{NavHeadingSurface-DPmolgVb.js → NavHeadingSurface-C3fTf5--.js} +1 -1
  121. package/dist/NavItem/index.d.ts +1 -1
  122. package/dist/NavItem/index.js +1 -1
  123. package/dist/{NavItem-BL3g0YUf.js → NavItem-mcmzIshL.js} +1 -1
  124. package/dist/NavMenu/index.js +3 -3
  125. package/dist/{NavMenu-DcTh1DCM.js → NavMenu-Bp35Bk7_.js} +2 -2
  126. package/dist/{NavMenuItem-Dmsno5s3.js → NavMenuItem-DviXkleh.js} +3 -3
  127. package/dist/NumberInput/index.d.ts +1 -1
  128. package/dist/NumberInput/index.js +1 -1
  129. package/dist/{NumberInput-DWYCcrUw.js → NumberInput-CxzhFPQw.js} +3 -3
  130. package/dist/Outline/index.js +1 -1
  131. package/dist/{Outline-DGtPcD0U.js → Outline-KpA-ffCT.js} +3 -3
  132. package/dist/OverflowList/index.d.ts +1 -1
  133. package/dist/OverflowList/index.js +1 -1
  134. package/dist/{OverflowList-EIr4jQjY.js → OverflowList-DRZxrAYq.js} +2 -2
  135. package/dist/Overlay/index.d.ts +1 -1
  136. package/dist/Pagination/index.d.ts +1 -1
  137. package/dist/Pagination/index.js +1 -1
  138. package/dist/{Pagination-Ch7-xIFe.js → Pagination-B3JMAlnl.js} +2 -2
  139. package/dist/PanGestureRecognizer-R5y8LZ9h.js +681 -0
  140. package/dist/Popover/index.d.ts +1 -1
  141. package/dist/Popover/index.js +1 -1
  142. package/dist/{Popover-LSIKv1zS.js → Popover-CQr95J2s.js} +10 -10
  143. package/dist/PowerSearch/index.d.ts +1 -1
  144. package/dist/PowerSearch/index.js +1 -1
  145. package/dist/{PowerSearch-Cjkv0qON.js → PowerSearch-BEaqgsZa.js} +26 -26
  146. package/dist/PressTracker-Dze87pxw.js +190 -0
  147. package/dist/ProgressBar/index.d.ts +1 -1
  148. package/dist/ProgressBar/index.js +1 -1
  149. package/dist/{ProgressBar-nPERcjvJ.js → ProgressBar-ChgsiVRR.js} +3 -3
  150. package/dist/Radio/index.d.ts +1 -1
  151. package/dist/Radio/index.js +1 -1
  152. package/dist/{RadioGroup-BWFVn7Gd.js → RadioGroup-CpMYh9eL.js} +9 -6
  153. package/dist/RadioList/index.d.ts +1 -1
  154. package/dist/RadioList/index.js +1 -1
  155. package/dist/{RadioListItem-D1rnSZeL.js → RadioListItem-n-h5r1GO.js} +1 -1
  156. package/dist/Resizable/index.d.ts +1 -1
  157. package/dist/Resizable/index.js +1 -1
  158. package/dist/{ResizeHandle-DyjQfxxG.js → ResizeHandle-J9-dAMuo.js} +2 -2
  159. package/dist/ScrollableArea/index.d.ts +1 -1
  160. package/dist/SegmentedControl/index.js +1 -1
  161. package/dist/SegmentedControl-nz9d6e0y.js +1465 -0
  162. package/dist/SelectableCard/index.d.ts +1 -1
  163. package/dist/SelectableCard/index.js +1 -1
  164. package/dist/{SelectableCard-uDblNb5T.js → SelectableCard-C018jluo.js} +1 -1
  165. package/dist/Selector/index.d.ts +1 -1
  166. package/dist/Selector/index.js +1 -1
  167. package/dist/{Selector-BiLcyM3Y.js → Selector-CW1jaM4F.js} +4 -4
  168. package/dist/SideNav/index.d.ts +1 -1
  169. package/dist/SideNav/index.js +2 -2
  170. package/dist/{SideNav-d0A9mlEW.js → SideNav-DgRpBPuP.js} +9 -9
  171. package/dist/Slider/index.js +1 -1
  172. package/dist/Slider-Bz72itTP.js +1786 -0
  173. package/dist/Stack/index.d.ts +1 -1
  174. package/dist/StatusDot/index.js +1 -1
  175. package/dist/{StatusDot-D3z-WEGn.js → StatusDot-D7nVuPg7.js} +1 -1
  176. package/dist/Stepper/index.d.ts +1 -1
  177. package/dist/Stepper/index.js +1 -1
  178. package/dist/{Stepper-CePOs80C.js → Stepper-Af_rH8C4.js} +1 -1
  179. package/dist/Switch/index.d.ts +1 -1
  180. package/dist/Switch/index.js +1 -1
  181. package/dist/Switch-BYsb1gKn.js +1397 -0
  182. package/dist/TabList/index.d.ts +1 -1
  183. package/dist/TabList/index.js +1 -1
  184. package/dist/{TabList-CthDI2i1.js → TabList-Cgw2IuL-.js} +3 -3
  185. package/dist/Table/index.d.ts +1 -1
  186. package/dist/Table/index.js +1 -1
  187. package/dist/{Table-egoY0slV.js → Table-DzE-4_og.js} +12 -12
  188. package/dist/Text/index.d.ts +1 -1
  189. package/dist/Text/index.js +1 -1
  190. package/dist/{Text-CGb1rxyK.js → Text-kwsIut3C.js} +1 -1
  191. package/dist/TextArea/index.d.ts +1 -1
  192. package/dist/TextArea/index.js +1 -1
  193. package/dist/{TextArea-B3WlT4sr.js → TextArea-DrYMTaZm.js} +4 -4
  194. package/dist/TextInput/index.d.ts +1 -1
  195. package/dist/TextInput/index.js +1 -1
  196. package/dist/{TextInput-C4CqgE0E.js → TextInput-B-1cuwcB.js} +4 -4
  197. package/dist/Thumbnail/index.js +1 -1
  198. package/dist/{Thumbnail-6YWZ9a2A.js → Thumbnail-DeMaRkDU.js} +3 -3
  199. package/dist/{TimeField-CvBKO_Ew.js → TimeField-C1Nv-fz3.js} +3 -3
  200. package/dist/TimeInput/index.d.ts +1 -1
  201. package/dist/TimeInput/index.js +1 -1
  202. package/dist/{TimeInput-Cl9HIZrP.js → TimeInput-Dvh6qqHI.js} +2 -2
  203. package/dist/Timer/index.d.ts +1 -1
  204. package/dist/Timer/index.js +1 -1
  205. package/dist/{Timer-BNa_W8zr.js → Timer-B-9sSJWK.js} +1 -1
  206. package/dist/Timestamp/index.d.ts +1 -1
  207. package/dist/Timestamp/index.js +1 -1
  208. package/dist/{Timestamp-D_NTXtxz.js → Timestamp-wFkl39dn.js} +3 -3
  209. package/dist/Toast/index.js +1 -1
  210. package/dist/{Toast-E6NqFf3W.js → Toast-CO6Z1r1s.js} +5 -3
  211. package/dist/ToggleButton/index.d.ts +1 -1
  212. package/dist/ToggleButton/index.js +1 -1
  213. package/dist/{ToggleButton-ih92QX-K.js → ToggleButton-DPpjDYxP.js} +3 -3
  214. package/dist/Token/index.js +1 -1
  215. package/dist/{Token-DE1udaRF.js → Token-DZkUAIYA.js} +1 -1
  216. package/dist/Tokenizer/index.js +1 -1
  217. package/dist/{Tokenizer-DbD2ZBuh.js → Tokenizer-CX7D4klL.js} +13 -13
  218. package/dist/Toolbar/index.d.ts +1 -1
  219. package/dist/Tooltip/index.d.ts +1 -1
  220. package/dist/Tooltip/index.js +2 -2
  221. package/dist/{Tooltip-sXtW5dTD.js → Tooltip-DyGaJUbl.js} +1 -1
  222. package/dist/TopNav/index.d.ts +1 -1
  223. package/dist/TopNav/index.js +1 -1
  224. package/dist/{TopNav-D688LaUK.js → TopNav-D8Hc_kQ-.js} +5 -5
  225. package/dist/TreeList/index.d.ts +1 -1
  226. package/dist/TreeList/index.js +1 -1
  227. package/dist/{TreeList-BFKPBFKu.js → TreeList-lNyuRBOk.js} +4 -4
  228. package/dist/Typeahead/index.js +2 -2
  229. package/dist/{Typeahead-BwjzOjT4.js → Typeahead-BiosTaFo.js} +5 -5
  230. package/dist/{VelocityTracker-bns4TzMt.js → VelocityTracker-CPFBHDpy.js} +1 -1
  231. package/dist/{accessibleName-nYUMoSTW.js → accessibleName-f5xApbXG.js} +2 -2
  232. package/dist/{animator-DnLs_cbV.js → animator-ozeBZ_zC.js} +3 -3
  233. package/dist/{assertOptions-BdLvkG6M.js → assertOptions-Byu4Yqfg.js} +1 -1
  234. package/dist/boxHold-YML2o6iP.js +170 -0
  235. package/dist/browserClickWait-DIj9tkLa.js +77 -0
  236. package/dist/{clickGuard-C3VmOLhI.js → clickGuard-CxqcfBCJ.js} +2 -2
  237. package/dist/{coarsePointer-BfMx3H23.js → coarsePointer-BWNSUIY8.js} +2 -32
  238. package/dist/composables/index.js +10 -10
  239. package/dist/{composables-B9tgZEzP.js → composables-CPDafrux.js} +12 -9
  240. package/dist/{context-Dktfy1fh.js → context-C1MPE6J5.js} +1 -1
  241. package/dist/{useAttachment-CALrXA-t.js → geometry-CGa3nNzZ.js} +14 -837
  242. package/dist/{gestures-CppaWqif.js → gestures-yKyyMqeQ.js} +225 -1
  243. package/dist/{holdEntranceInput-DgimbgGm.js → holdEntranceInput-C8B_DYYs.js} +2 -2
  244. package/dist/{index-MOtVbTwK.d.ts → index-B6GTqpW-.d.ts} +4 -4
  245. package/dist/{index-X4S7_dmq.d.ts → index-BA8exXNP.d.ts} +1 -1
  246. package/dist/{index-D7ShT2c-.d.ts → index-BB9acgK8.d.ts} +2 -2
  247. package/dist/{index-BuubzuE8.d.ts → index-BDZCJ9ri.d.ts} +2 -2
  248. package/dist/{index-D65x5ny5.d.ts → index-BdICULsZ.d.ts} +78 -78
  249. package/dist/{index-maTGrWjF.d.ts → index-BenG-F5d.d.ts} +1 -1
  250. package/dist/{index-3LdpzxQZ.d.ts → index-BfFpUr1B.d.ts} +1 -1
  251. package/dist/{index-CTjkJP4x.d.ts → index-Bgk1Rj2A.d.ts} +1 -1
  252. package/dist/{index-CKnr0JlT.d.ts → index-C4S65SAW.d.ts} +1 -1
  253. package/dist/{index-waTkqxTz.d.ts → index-C89cIh4E.d.ts} +1 -1
  254. package/dist/{index-D05JGsT3.d.ts → index-C8wfe0Mr.d.ts} +1 -1
  255. package/dist/{index-Cm36VS1A.d.ts → index-C9uW39Mj.d.ts} +1 -1
  256. package/dist/{index-AgTJRqUY.d.ts → index-CQi9WGWE.d.ts} +2 -2
  257. package/dist/{index-Bwh8O-v8.d.ts → index-CZ29Xu_E.d.ts} +1 -1
  258. package/dist/{index-85y5NZP-.d.ts → index-CpkQlo1t.d.ts} +2 -2
  259. package/dist/{index-rdwI-mcm.d.ts → index-CtYlR9Cu.d.ts} +1 -1
  260. package/dist/{index-DWVhyvVu.d.ts → index-CukA-J8A.d.ts} +6 -6
  261. package/dist/{index-eCp-ElSp.d.ts → index-DYabo8TI.d.ts} +1 -1
  262. package/dist/{index-CM00rrgg.d.ts → index-DhrnMYVh.d.ts} +3 -3
  263. package/dist/{index-BOiwoyXq.d.ts → index-DlsrR4Gm.d.ts} +8 -8
  264. package/dist/{index-Otl047R1.d.ts → index-DofC9Rll.d.ts} +1 -1
  265. package/dist/{index-CArP_6wv.d.ts → index-ZXrvTM3A.d.ts} +1 -1
  266. package/dist/{index-CbA8rR_b.d.ts → index-a_FOKJMw.d.ts} +2 -2
  267. package/dist/{index-CdvmnNMH.d.ts → index-jz9GfvS0.d.ts} +1 -1
  268. package/dist/{index-Ak1b0V24.d.ts → index-tdOyqA_U.d.ts} +1 -1
  269. package/dist/index.d.ts +25 -25
  270. package/dist/index.js +101 -101
  271. package/dist/{inputHold-DW2LYHb5.js → inputHold-BJtjc9iI.js} +4 -4
  272. package/dist/{inputHoldState-xntIqr5W.js → inputHoldState-BYi5FKZl.js} +2 -2
  273. package/dist/{inputStream-bPd9eB2b.js → inputStream-HXw2lZ-3.js} +1 -1
  274. package/dist/{landing-9mjHGn26.js → landing-BW6qLvC8.js} +1 -1
  275. package/dist/{layerDepth-c3jUndA2.js → layerDepth-SGFJ5L6X.js} +1 -1
  276. package/dist/{lazyBottomSheet-Ca7Mdou2.js → lazyBottomSheet-Bg5E8lr3.js} +1 -1
  277. package/dist/{linearEasing-CBwOorE7.js → linearEasing-VHwy6xl_.js} +1 -1
  278. package/dist/{presentation-Cy_yf56y.js → presentation-twEOzzJq.js} +1 -1
  279. package/dist/{presentationHold-B4tK68sd.js → presentationHold-ZKixVLcz.js} +1 -1
  280. package/dist/pressClaim-DvdlIn4w.js +24 -0
  281. package/dist/{pressFeedback-BlOSZew9.js → pressFeedback--_INTed0.js} +49 -9
  282. package/dist/{pressGesture-yntcDLXo.js → pressGesture-B3Efxs_z.js} +1 -1
  283. package/dist/{rubberBand-DDapO54w.js → projection-qPcLQcwK.js} +2 -50
  284. package/dist/{reportChange-DPFCmyOB.js → reportChange-DwOfucSf.js} +4 -4
  285. package/dist/{resizableChannel-DOmBYh4V.js → resizableChannel-BnwrR5tr.js} +5 -5
  286. package/dist/{resolveMotion-CF9fXX0t.js → resolveMotion-DftkGFw6.js} +1 -1
  287. package/dist/{resolveSnapPoint-mZzJRIC2.js → resolveSnapPoint-A4dhS5jj.js} +1 -1
  288. package/dist/rubberBand-DDd5ElTe.js +65 -0
  289. package/dist/selectionLock-BrUpRS0E.js +130 -0
  290. package/dist/{sharedRealm-H1OrlP0V.js → sharedRealm-DBtNH73I.js} +9 -1
  291. package/dist/{springs-B2jqskKJ.js → springs-DjAn_oV5.js} +1 -1
  292. package/dist/{stillPointerGate-Htiy6uKa.js → stillPointerGate-BvCX7ddI.js} +1 -1
  293. package/dist/{themeTiming-ClYaZxGf.js → themeTiming-BJziEh4O.js} +1 -1
  294. package/dist/{tooltipFocusRules-BHJUQprJ.js → tooltipFocusRules-CxIlSnHw.js} +2 -2
  295. package/dist/{tooltipTriggerRules-Dremu4W9.js → tooltipTriggerRules-CHNpQ6RL.js} +1 -1
  296. package/dist/{touchHold-DXtx7npm.js → touchHold-CjNjGH7O.js} +1 -1
  297. package/dist/touchQueries-xy5IeZfe.js +32 -0
  298. package/dist/{useActionGroupTracking-DDhfTUOK.js → useActionGroupTracking-BTjuGF9J.js} +3 -3
  299. package/dist/{useAnimatedLayout-B6Xj_kTo.js → useAnimatedLayout-CRAuCwTZ.js} +1 -1
  300. package/dist/useAttachment-CGiD9rt6.js +24 -0
  301. package/dist/{useChatStreamScroll-CuMzkXgD.js → useChatStreamScroll-DcNKcNTj.js} +1 -1
  302. package/dist/{useDismiss-BvDK4xBe.js → useDismiss-6SGAlkB_.js} +1 -1
  303. package/dist/{useHeldPresentation-BF5vGVUn.js → useHeldPresentation-CaIKTwUh.js} +1 -1
  304. package/dist/{useInputStatusIcon-MyCpVp3g.js → useInputStatusIcon-Bl2JFlc3.js} +1 -1
  305. package/dist/{useMenuEntranceHold-HznOwIry.js → useMenuEntranceHold-C-kHicUN.js} +1 -1
  306. package/dist/{useMenuPress-BJVQF7ml.js → useMenuPress-CF1GHP_7.js} +6 -4
  307. package/dist/{usePressFeedback-cxyksfAD.js → usePressFeedback-B_NavJu0.js} +1 -1
  308. package/dist/{useResizable-C-9ff2ZK.js → useResizable-I0APFcMz.js} +6 -5
  309. package/dist/{useTooltip-w57yzB7h.js → useTooltip-owvVSn_m.js} +4 -4
  310. package/dist/{useTouchHitArea-CgUvnuTz.js → useTouchHitArea-BpEJXuu-.js} +2 -2
  311. package/dist/{useTouchTriggerInternal-DSA228_-.js → useTouchTriggerInternal-5ExaYYSy.js} +1 -1
  312. package/dist/{useTruncationTooltip--w8vh7M-.js → useTruncationTooltip-DHI6q_EV.js} +3 -3
  313. package/dist/{useTypeaheadMenuConfig-C-EOaLF-.js → useTypeaheadMenuConfig-COiZ4isy.js} +1 -1
  314. package/package.json +1 -1
  315. package/styles/segmented-control.css +20 -11
  316. package/styles/slider.css +59 -12
  317. package/styles/switch.css +101 -34
  318. package/dist/SegmentedControl-CkR8ur3h.js +0 -416
  319. package/dist/Slider-BdIrYmul.js +0 -735
  320. package/dist/Switch-6tQbDX9A.js +0 -355
@@ -1,15 +1,15 @@
1
- import { a as sharedWeakMap, c as deepActiveElement, d as shadowRootsOutward, h as isNode, l as parentAcrossShadow, m as isHTMLElement, n as sharedKey, p as isElement, s as containsAlongFlatTree, t as realmValue, u as shadowHostOf } from "./sharedRealm-H1OrlP0V.js";
2
- import { d as parseTouchAction, f as rootOverflow, l as SCROLLABLE_OVERFLOW, p as clockOf, u as isInsideScrollView } from "./pressFeedback-BlOSZew9.js";
3
- import { i as withoutClickGuard, n as disarmClickGuard, t as armClickGuard } from "./clickGuard-C3VmOLhI.js";
4
- import { i as subscribeInput } from "./inputStream-bPd9eB2b.js";
5
- import { i as UIKIT_TAP, n as UIKIT_PAN, r as UIKIT_PRESS, t as UIKIT_LONG_PRESS } from "./gestures-CppaWqif.js";
6
- import { i as presentedOffsetOf, o as resolvePresented, r as presentedElements, s as watchPresentedElements } from "./presentation-Cy_yf56y.js";
1
+ import { c as containsAlongFlatTree, d as shadowHostOf, f as shadowRootsOutward, g as isNode, h as isHTMLElement, l as deepActiveElement, m as isElement, n as sharedKey, t as realmValue, u as parentAcrossShadow } from "./sharedRealm-DBtNH73I.js";
2
+ import { d as isInsideScrollView, f as parseTouchAction, m as clockOf, p as rootOverflow, u as SCROLLABLE_OVERFLOW } from "./pressFeedback--_INTed0.js";
3
+ import { i as withoutClickGuard, n as disarmClickGuard, t as armClickGuard } from "./clickGuard-CxqcfBCJ.js";
4
+ import { i as subscribeInput } from "./inputStream-HXw2lZ-3.js";
5
+ import { i as UIKIT_LONG_PRESS, o as UIKIT_PRESS, s as UIKIT_TAP } from "./gestures-yKyyMqeQ.js";
6
+ import { i as presentedOffsetOf, o as resolvePresented, r as presentedElements, s as watchPresentedElements } from "./presentation-twEOzzJq.js";
7
7
  import { t as isApplePlatform } from "./isApplePlatform-B1ju6F5B.js";
8
- import { a as isIosWebKit, r as watchCoarsePointer, t as isCoarsePointer } from "./coarsePointer-BfMx3H23.js";
8
+ import { n as isIosWebKit } from "./touchQueries-xy5IeZfe.js";
9
+ import { i as locksSelectionFor, r as lockStyles, t as isTextEntry } from "./selectionLock-BrUpRS0E.js";
10
+ import { r as watchCoarsePointer, t as isCoarsePointer } from "./coarsePointer-BWNSUIY8.js";
9
11
  import { t as isRtlElement } from "./isRtlElement-NHuH48AA.js";
10
- import { t as holdsTouch } from "./touchHold-DXtx7npm.js";
11
- import { t as VelocityTracker } from "./VelocityTracker-bns4TzMt.js";
12
- import { getCurrentScope, onScopeDispose, toValue, watch } from "vue";
12
+ import { t as holdsTouch } from "./touchHold-CjNjGH7O.js";
13
13
  //#region src/gestures/arenaTypes.ts
14
14
  /** The browser's clock: `performance.now()`, the base of `event.timeStamp`. */
15
15
  const browserClock = {
@@ -378,365 +378,6 @@ const MANIPULATION = {
378
378
  doubleTapZoom: false
379
379
  };
380
380
  //#endregion
381
- //#region src/gestures/recognizerCore.ts
382
- let nextRecognizerId = 1;
383
- /** A recognizer's configuration and relationships; GestureRecognizer is the class to extend. */
384
- var RecognizerCore = class {
385
- /** Stable id, for ordering and debugging. */
386
- id = nextRecognizerId++;
387
- name;
388
- isEnabled;
389
- cancelsTouchesInView;
390
- /** See GestureRecognizerOptions.selectionLock. */
391
- selectionLock;
392
- delaysTouchesBegan;
393
- delaysTouchesEnded;
394
- allowedPointerTypes;
395
- /** See GestureRecognizerOptions.allowedScrollTypes. */
396
- allowedScrollTypes;
397
- requiresExclusiveTouchType;
398
- /**
399
- * The element (or any object) the recognizer is attached to. The DOM host
400
- * sets it; the arena treats it as opaque.
401
- */
402
- view = null;
403
- /** Internal. The arena delivering touches to this recognizer, if any. */
404
- arena = null;
405
- /** Internal. A recognition waiting for a failure requirement. */
406
- pending = null;
407
- /**
408
- * The delegate functions. Typed against the base so a subclass stays
409
- * assignable to GestureRecognizer; each is only ever called with `this`.
410
- */
411
- options;
412
- stateValue = "possible";
413
- listeners = /* @__PURE__ */ new Set();
414
- transitionListeners = /* @__PURE__ */ new Set();
415
- failureRequirements = /* @__PURE__ */ new Set();
416
- simultaneousWith = /* @__PURE__ */ new Set();
417
- /** Touches currently tracked, by id. */
418
- touches = /* @__PURE__ */ new Map();
419
- /** Internal. Every touch id received since the last reset. */
420
- seenTouchIds = /* @__PURE__ */ new Set();
421
- lastLocation = {
422
- x: 0,
423
- y: 0
424
- };
425
- constructor(options = {}) {
426
- this.options = options;
427
- this.name = options.name ?? this.constructor.name;
428
- this.isEnabled = options.isEnabled ?? true;
429
- this.cancelsTouchesInView = options.cancelsTouchesInView ?? true;
430
- this.selectionLock = options.selectionLock ?? null;
431
- this.delaysTouchesBegan = options.delaysTouchesBegan ?? false;
432
- this.delaysTouchesEnded = options.delaysTouchesEnded ?? true;
433
- this.allowedPointerTypes = options.allowedPointerTypes == null ? null : new Set(options.allowedPointerTypes);
434
- this.allowedScrollTypes = new Set(options.allowedScrollTypes ?? this.defaultScrollTypes);
435
- this.requiresExclusiveTouchType = options.requiresExclusiveTouchType ?? true;
436
- }
437
- /** This recognizer, as the GestureRecognizer every recognizer is. */
438
- get self() {
439
- return this;
440
- }
441
- /** Discrete recognizers go from `possible` straight to `ended`. */
442
- get isDiscrete() {
443
- return false;
444
- }
445
- /**
446
- * Whether recognizing takes the touches from the browser: while a claiming
447
- * recognizer owns a touch, the host cancels the browser's pan and zoom for
448
- * it. Every touch recognizer claims; hover has no touches to claim.
449
- */
450
- get claimsTouches() {
451
- return this.options.claimsTouches ?? true;
452
- }
453
- get state() {
454
- return this.stateValue;
455
- }
456
- /**
457
- * What the browser may still do natively on this recognizer's view: the
458
- * host intersects these across a view's recognizers into its
459
- * `touch-action`. A recognizer that takes no touches constrains nothing.
460
- */
461
- get nativeTouchBehavior() {
462
- return ALL_NATIVE_TOUCH;
463
- }
464
- /** Internal. Whether this recognizer listens to touch at all. */
465
- get acceptsTouchInput() {
466
- return this.allowedPointerTypes == null || this.allowedPointerTypes.has("touch");
467
- }
468
- /** How many touches the recognizer is tracking right now. */
469
- get numberOfTouches() {
470
- return this.touches.size;
471
- }
472
- /** The touches being tracked, in the order they began. */
473
- get trackedTouches() {
474
- return [...this.touches.values()];
475
- }
476
- /**
477
- * The centroid of the tracked touches in client coordinates; after they
478
- * end, where they were last.
479
- */
480
- location() {
481
- if (this.touches.size === 0) return this.lastLocation;
482
- let x = 0;
483
- let y = 0;
484
- for (const touch of this.touches.values()) {
485
- x += touch.x;
486
- y += touch.y;
487
- }
488
- this.lastLocation = {
489
- x: x / this.touches.size,
490
- y: y / this.touches.size
491
- };
492
- return this.lastLocation;
493
- }
494
- /** Facts about the page (viewport, writing direction). */
495
- get environment() {
496
- return this.arena?.environment ?? DEFAULT_ENVIRONMENT;
497
- }
498
- /** UIKit's `require(toFail:)`: recognize only once `other` has failed. */
499
- requireToFail(other) {
500
- this.failureRequirements.add(other);
501
- return this;
502
- }
503
- /** Let this and `others` be recognized at the same time (both directions). */
504
- recognizeSimultaneouslyWith(...others) {
505
- for (const other of others) {
506
- this.simultaneousWith.add(other);
507
- other.simultaneousWith.add(this.self);
508
- }
509
- return this;
510
- }
511
- /** Internal. Whether this recognizer must wait for `other` to fail. */
512
- requiresFailureOf(other) {
513
- return this.failureRequirements.has(other) || this.options.shouldRequireFailureOf?.(this.self, other) === true || other.options.shouldBeRequiredToFailBy?.(other, this.self) === true;
514
- }
515
- /**
516
- * Internal. Whether this and `other` may be active together: both allow it
517
- * (`recognizeSimultaneouslyWith` sets both sides; each delegate answers for
518
- * its own recognizer), so one delegate alone keeps them exclusive (FR15).
519
- */
520
- allowsSimultaneous(other) {
521
- return this.simultaneousWith.has(other) || this.options.shouldRecognizeSimultaneously?.(this.self, other) === true && other.options.shouldRecognizeSimultaneously?.(other, this.self) === true;
522
- }
523
- /** Internal. The delegate's should-begin answer. */
524
- shouldBegin() {
525
- return this.options.shouldBegin?.(this.self) ?? true;
526
- }
527
- /**
528
- * Internal. Whether this recognizer holds `touchId` before it begins: the
529
- * host then cancels that finger's moves as for a touch a recognizer owns.
530
- * None does by default (`spec:AST-094` FR19); a scroll-edge pan holds a
531
- * finger pulling away from an edge every scroller under it is at.
532
- */
533
- keepsTouch(_touchId) {
534
- return false;
535
- }
536
- /** UIKit's `canPrevent(_:)`: whether recognizing fails `other`. */
537
- canPrevent(_other) {
538
- return true;
539
- }
540
- /** UIKit's `canBePrevented(by:)`. */
541
- canBePrevented(_other) {
542
- return true;
543
- }
544
- /**
545
- * Whether this recognizer is still part of the current interaction: it
546
- * tracks touches, is waiting on a requirement, or (a multi-tap between
547
- * taps) expects more input. An idle `possible` recognizer cannot recognize
548
- * and so does not hold up anything that requires it to fail.
549
- */
550
- isInvolved() {
551
- return this.touches.size > 0 || this.pending != null;
552
- }
553
- /** Called on began, changed, ended (recognized) and cancelled. */
554
- addListener(listener) {
555
- const stored = listener;
556
- this.listeners.add(stored);
557
- return () => {
558
- this.listeners.delete(stored);
559
- };
560
- }
561
- /** Called on every transition, including failed and the reset to possible. */
562
- addTransitionListener(listener) {
563
- const stored = listener;
564
- this.transitionListeners.add(stored);
565
- return () => {
566
- this.transitionListeners.delete(stored);
567
- };
568
- }
569
- /** The scroll types taken when the options name none (UIKit's: none). */
570
- get defaultScrollTypes() {
571
- return [];
572
- }
573
- };
574
- //#endregion
575
- //#region src/gestures/GestureRecognizer.ts
576
- var GestureRecognizer = class extends RecognizerCore {
577
- /** New touches for this recognizer. */
578
- touchesBegan(_touches, _event) {}
579
- touchesMoved(_touches, _event) {}
580
- /** Touches lifted; they are removed from `touches` after this returns. */
581
- touchesEnded(_touches, _event) {}
582
- /**
583
- * The system or the browser took these touches. By default an active
584
- * gesture is cancelled and a possible one fails.
585
- */
586
- touchesCancelled(_touches, _event) {
587
- if (isActive(this.state)) this.setState("cancelled");
588
- else if (this.state === "possible") this.setState("failed");
589
- }
590
- /**
591
- * The browser took these touches for its own pan or zoom (their pointer
592
- * stream is gone). Return true to keep observing them; by default they are
593
- * treated as cancelled. An observer never claims them: a drag the browser
594
- * took stays the browser's (FR14).
595
- */
596
- touchesTakenByBrowser(touches, event) {
597
- if (!this.claimsTouches) return true;
598
- this.touchesCancelled(touches, event);
599
- return false;
600
- }
601
- /**
602
- * A touch began elsewhere (off this recognizer's hit path) while this
603
- * recognizer tracks touches of its own. It is not this recognizer's touch
604
- * and is never delivered as one; a recognizer that a foreign finger should
605
- * end (a menu's press slide) cancels itself here. By default nothing
606
- * happens.
607
- */
608
- touchBeganElsewhere(_touches, _event) {}
609
- /** Clear per-gesture state before the next attempt. */
610
- reset() {}
611
- /**
612
- * Whether a touch may join. The base checks enabled, pointer kind and
613
- * exclusivity of kind; subclasses narrow it (a one-finger pan ignores a
614
- * second finger once it is moving).
615
- */
616
- acceptsTouch(touch) {
617
- if (!this.isEnabled) return false;
618
- if (touch.scrollType != null) return this.allowedScrollTypes.has(touch.scrollType) && (this.options.shouldReceiveTouch?.(this, touch) ?? true);
619
- if (this.allowedPointerTypes != null && !this.allowedPointerTypes.has(touch.pointerType)) return false;
620
- if (this.requiresExclusiveTouchType) {
621
- for (const existing of this.touches.values()) if (existing.pointerType !== touch.pointerType) return false;
622
- }
623
- return this.options.shouldReceiveTouch?.(this, touch) ?? true;
624
- }
625
- /**
626
- * Ask for a state change. The arena may refuse (the recognizer fails
627
- * instead) or defer it until a failure requirement resolves.
628
- */
629
- setState(next) {
630
- if (this.arena != null) this.arena.requestTransition(this, next);
631
- else this.applyState(next);
632
- }
633
- /** Arm the recognizer's one timer at an absolute time on the event clock. */
634
- setTimer(deadline, callback) {
635
- this.arena?.setTimer(this, deadline, callback);
636
- }
637
- clearTimer() {
638
- this.arena?.clearTimer(this);
639
- }
640
- /** The event clock's current time. */
641
- now() {
642
- return this.arena?.now() ?? 0;
643
- }
644
- /**
645
- * Takes this recognizer's touches from the view, as a claiming winner does
646
- * under `cancelsTouchesInView`: the view's press ends and no click follows.
647
- * The touches stay unclaimed, so the page still scrolls.
648
- */
649
- cancelTouchesInView() {
650
- this.arena?.cancelTouchesInViewOf(this);
651
- }
652
- /** Internal. Whether this recognizer takes `touch` right now. */
653
- wantsTouch(touch) {
654
- if (this.state !== "possible" && !isActive(this.state)) return false;
655
- if (this.pending != null) return false;
656
- return this.acceptsTouch(touch);
657
- }
658
- /** Internal. */
659
- deliverBegan(touches, event) {
660
- for (const touch of touches) {
661
- this.touches.set(touch.id, touch);
662
- this.seenTouchIds.add(touch.id);
663
- }
664
- this.location();
665
- this.touchesBegan(touches, event);
666
- }
667
- /** Internal. */
668
- deliverBeganElsewhere(touches, event) {
669
- if (isTerminal(this.state)) return;
670
- this.touchBeganElsewhere(touches, event);
671
- }
672
- /** Internal. */
673
- deliverMoved(touches, event) {
674
- const own = touches.filter((touch) => this.touches.has(touch.id));
675
- if (own.length === 0 || isTerminal(this.state)) return;
676
- this.location();
677
- this.touchesMoved(own, event);
678
- }
679
- /** Internal. */
680
- deliverEnded(touches, event) {
681
- const own = touches.filter((touch) => this.touches.has(touch.id));
682
- if (own.length === 0) return;
683
- this.location();
684
- if (!isTerminal(this.state)) this.touchesEnded(own, event);
685
- for (const touch of own) this.touches.delete(touch.id);
686
- }
687
- /** Internal. */
688
- deliverCancelled(touches, event) {
689
- const own = touches.filter((touch) => this.touches.has(touch.id));
690
- if (own.length === 0) return;
691
- if (!isTerminal(this.state)) this.touchesCancelled(own, event);
692
- for (const touch of own) this.touches.delete(touch.id);
693
- }
694
- /** Internal. */
695
- deliverTakenByBrowser(touches, event) {
696
- const own = touches.filter((touch) => this.touches.has(touch.id));
697
- if (own.length === 0) return;
698
- if (!isTerminal(this.state) && this.touchesTakenByBrowser(own, event)) return;
699
- for (const touch of own) this.touches.delete(touch.id);
700
- }
701
- /** Internal. The host's hook: listeners follow whether anything is enabled. */
702
- onEnabledChange = null;
703
- /**
704
- * UIKit's `isEnabled` setter: turning a recognizer off mid-gesture cancels
705
- * the gesture (an active one) or fails it (a possible one).
706
- */
707
- setEnabled(value) {
708
- const changed = this.isEnabled !== value;
709
- this.isEnabled = value;
710
- if (changed) this.onEnabledChange?.();
711
- if (!value && (this.state !== "possible" || this.isInvolved())) this.cancel();
712
- }
713
- /** Cancel this recognizer if it is active, or fail it if it is possible. */
714
- cancel() {
715
- if (this.arena != null) this.arena.stop(this);
716
- else if (isActive(this.state)) this.applyState("cancelled");
717
- else if (this.state === "possible" && this.isInvolved()) this.applyState("failed");
718
- }
719
- /** Internal. Apply a transition the arena has approved. */
720
- applyState(next) {
721
- const from = this.stateValue;
722
- if (from === next && next !== "changed") return;
723
- if (!isTransitionAllowed(from, next)) return;
724
- this.stateValue = next;
725
- if (next !== "possible") this.pending = null;
726
- for (const listener of [...this.transitionListeners]) listener(this, from, next);
727
- if (ACTION_STATES.has(next)) for (const listener of [...this.listeners]) listener(this);
728
- }
729
- /** Internal. Return to `possible` for the next attempt. */
730
- resetToPossible() {
731
- this.clearTimer();
732
- this.pending = null;
733
- this.touches.clear();
734
- this.seenTouchIds.clear();
735
- this.reset();
736
- this.applyState("possible");
737
- }
738
- };
739
- //#endregion
740
381
  //#region src/gestures/arenaResolution.ts
741
382
  /** Conflict resolution and claims; GestureArena is the class to use. */
742
383
  var ArenaResolution = class extends ArenaDelivery {
@@ -1310,133 +951,6 @@ function isPrimaryClick(event) {
1310
951
  return event.button === 0 && !(event.ctrlKey && isApplePlatform());
1311
952
  }
1312
953
  //#endregion
1313
- //#region src/utils/selectionLock.ts
1314
- /**
1315
- * @file selectionLock.ts
1316
- * @input The elements a held touch contact presses, and the touch's target
1317
- * @output lockSelection and locksSelectionFor give a held finger's lock;
1318
- * lockStyles and isTextEntry are shared with a claimed drag's hold
1319
- * (dragSelection.ts)
1320
- * @position Recognizers whose hold does something bring lockSelection; the
1321
- * gesture host reads locksSelectionFor, and its drag hold is
1322
- * dragSelection.ts
1323
- */
1324
- /** What a held finger must not start on a control or a cell. */
1325
- const SELECTION_LOCK = [
1326
- "-webkit-touch-callout",
1327
- "-webkit-user-select",
1328
- "user-select"
1329
- ];
1330
- /** Inputs whose text a held finger edits: it places the caret there. */
1331
- const TEXT_ENTRY_TYPES = /* @__PURE__ */ new Set([
1332
- "text",
1333
- "search",
1334
- "email",
1335
- "url",
1336
- "tel",
1337
- "password",
1338
- "number"
1339
- ]);
1340
- /**
1341
- * Whether a contact of this pointer kind takes the lock: a finger or a pen,
1342
- * under any primary pointer, a laptop's touchscreen and a desktop pen tablet
1343
- * included, since a pen's hold acts as a finger's.
1344
- */
1345
- function locksSelectionFor(pointerType) {
1346
- return pointerType !== "mouse";
1347
- }
1348
- /**
1349
- * Locked elements, how many contacts hold each, and what to restore. Every
1350
- * copy of Core counts here, so the first lock's saved styles come back only
1351
- * after the last release in any copy.
1352
- */
1353
- const locks = sharedWeakMap("utils/selection-lock/locks", 1);
1354
- /**
1355
- * Refuse a selection and the touch callout on `elements` (and on a non-text
1356
- * input target inside one of them) until the returned function runs, while
1357
- * any holder holds. Idempotent release.
1358
- */
1359
- function lockSelection(elements, target) {
1360
- const set = new Set(elements);
1361
- if (isSelectableControl(target) && [...set].some((element) => containsAlongFlatTree(element, target))) set.add(target);
1362
- if (!isIosWebKit()) {
1363
- const refuse = (event) => {
1364
- if (!isTextEntry(event.target)) event.preventDefault();
1365
- };
1366
- for (const element of set) element.addEventListener("selectstart", refuse);
1367
- let isRefusing = true;
1368
- return () => {
1369
- if (isRefusing) {
1370
- isRefusing = false;
1371
- for (const element of set) element.removeEventListener("selectstart", refuse);
1372
- }
1373
- };
1374
- }
1375
- return lockStyles(set);
1376
- }
1377
- /**
1378
- * The selection-lock styles on `set`, refcounted per element; idempotent
1379
- * release.
1380
- */
1381
- function lockStyles(set) {
1382
- const locked = [];
1383
- for (const element of set) {
1384
- const style = styleOf(element);
1385
- if (style == null) continue;
1386
- locked.push(element);
1387
- const lock = locks.get(element);
1388
- if (lock != null) {
1389
- lock.count += 1;
1390
- continue;
1391
- }
1392
- locks.set(element, {
1393
- count: 1,
1394
- saved: SELECTION_LOCK.map((name) => ({
1395
- name,
1396
- value: style.getPropertyValue(name),
1397
- priority: style.getPropertyPriority(name)
1398
- }))
1399
- });
1400
- for (const name of SELECTION_LOCK) style.setProperty(name, "none");
1401
- }
1402
- let isReleased = false;
1403
- return () => {
1404
- if (isReleased) return;
1405
- isReleased = true;
1406
- for (const element of locked) {
1407
- const lock = locks.get(element);
1408
- if (lock == null || --lock.count > 0) continue;
1409
- locks.delete(element);
1410
- const style = styleOf(element);
1411
- for (const { name, value, priority } of lock.saved) if (value === "") style?.removeProperty(name);
1412
- else style?.setProperty(name, value, priority);
1413
- }
1414
- };
1415
- }
1416
- /**
1417
- * A form control WebKit's own stylesheet makes selectable, which no
1418
- * ancestor's lock reaches: every input that is not a text field.
1419
- */
1420
- function isSelectableControl(node) {
1421
- return isElement(node) && node.localName === "input" && !TEXT_ENTRY_TYPES.has(node.type);
1422
- }
1423
- /** Text a held finger edits: it places the caret there. */
1424
- function isTextEntry(node) {
1425
- const element = isElement(node) ? node : isNode(node) ? node.parentElement : null;
1426
- if (element == null) return false;
1427
- if (element.localName === "textarea") return true;
1428
- if (element.localName === "input") return TEXT_ENTRY_TYPES.has(element.type);
1429
- return element.isContentEditable;
1430
- }
1431
- /**
1432
- * An element's inline style, when it has one (HTML and SVG elements). It is
1433
- * checked as an object, so another window's style passes too.
1434
- */
1435
- function styleOf(element) {
1436
- const style = element.style;
1437
- return typeof style === "object" && style !== null ? style : null;
1438
- }
1439
- //#endregion
1440
954
  //#region src/utils/selectionRanges.ts
1441
955
  /**
1442
956
  * @file selectionRanges.ts
@@ -4851,349 +4365,12 @@ function centroid(touches, excluding) {
4851
4365
  y: y / count
4852
4366
  };
4853
4367
  }
4368
+ function distance(a, b) {
4369
+ return Math.hypot(a.x - b.x, a.y - b.y);
4370
+ }
4854
4371
  /** How far a touch is from where it landed. */
4855
4372
  function travel(touch) {
4856
4373
  return Math.hypot(touch.x - touch.startX, touch.y - touch.startY);
4857
4374
  }
4858
4375
  //#endregion
4859
- //#region src/gestures/PanGestureRecognizer.ts
4860
- const ZERO = {
4861
- x: 0,
4862
- y: 0
4863
- };
4864
- const DIRECTION_VECTORS = {
4865
- left: {
4866
- x: -1,
4867
- y: 0
4868
- },
4869
- right: {
4870
- x: 1,
4871
- y: 0
4872
- },
4873
- up: {
4874
- x: 0,
4875
- y: -1
4876
- },
4877
- down: {
4878
- x: 0,
4879
- y: 1
4880
- }
4881
- };
4882
- var PanGestureRecognizer = class extends GestureRecognizer {
4883
- get kind() {
4884
- return "pan";
4885
- }
4886
- /** Internal. The host's brand: a pan follows the one-finger rule (recognizerInternals). */
4887
- get family() {
4888
- return "pan";
4889
- }
4890
- minimumNumberOfTouches;
4891
- maximumNumberOfTouches;
4892
- hysteresis;
4893
- direction;
4894
- axisRatio;
4895
- lockAxis;
4896
- scrollEdge;
4897
- firstMoveDecides;
4898
- /** The axis a `lockAxis` pan locked to when it began. */
4899
- lockedAxis = null;
4900
- /** The movement the begin threshold took (excluded from `translation()`). */
4901
- travelAtBegan = ZERO;
4902
- tracker;
4903
- /**
4904
- * Read once per press. A finger that lands later keeps the press's
4905
- * threshold.
4906
- */
4907
- hysteresisFor;
4908
- /** The lift's event time once the pan ended: its release (AST-100 FR2). */
4909
- releaseTime = void 0;
4910
- /** The centroid where the gesture started, in client px. */
4911
- origin = ZERO;
4912
- /** Re-basing that keeps the translation continuous across finger changes. */
4913
- adjust = ZERO;
4914
- /** Translation since touch-down, before `setTranslation` offsets. */
4915
- raw = ZERO;
4916
- offset = ZERO;
4917
- /** How a `firstMoveDecides` pan read the touch's first move, once it moved. */
4918
- firstMove = null;
4919
- constructor(options = {}) {
4920
- super(options);
4921
- this.minimumNumberOfTouches = options.minimumNumberOfTouches ?? 1;
4922
- this.maximumNumberOfTouches = options.maximumNumberOfTouches ?? Number.POSITIVE_INFINITY;
4923
- const { hysteresis } = options;
4924
- this.hysteresisFor = typeof hysteresis === "function" ? hysteresis : null;
4925
- this.hysteresis = typeof hysteresis === "number" ? hysteresis : UIKIT_PAN.hysteresis.value;
4926
- this.direction = options.direction ?? "any";
4927
- this.axisRatio = options.axisRatio ?? 1;
4928
- this.lockAxis = options.lockAxis ?? false;
4929
- this.scrollEdge = options.scrollEdge ?? false;
4930
- this.firstMoveDecides = options.firstMoveDecides ?? false;
4931
- this.tracker = new VelocityTracker();
4932
- }
4933
- /**
4934
- * Movement since the pan began (or since `setTranslation`), client px; the
4935
- * movement since touch-down while it is still possible.
4936
- */
4937
- translation() {
4938
- return this.locked({
4939
- x: this.raw.x + this.offset.x,
4940
- y: this.raw.y + this.offset.y
4941
- });
4942
- }
4943
- /**
4944
- * Change the allowed direction for the next gesture (a pan in progress
4945
- * keeps the one it began with). The element's touch-action is derived
4946
- * when the recognizer is attached: switching between directions that
4947
- * leave the browser the same touches (up and down) needs nothing more.
4948
- */
4949
- setDirection(direction) {
4950
- this.direction = direction;
4951
- }
4952
- /** UIKit's `setTranslation(_:in:)`: make the current translation read `value`. */
4953
- setTranslation(value) {
4954
- this.offset = {
4955
- x: value.x - this.raw.x,
4956
- y: value.y - this.raw.y
4957
- };
4958
- }
4959
- /** Movement since the fingers landed, threshold included, client px. */
4960
- totalTranslation() {
4961
- return this.raw;
4962
- }
4963
- /**
4964
- * Velocity in px/s, UIKit's way, for a dragged surface. At the release it
4965
- * is 0 when the finger rested longer than the stillness interval before
4966
- * lifting, or moved fewer than twice (spec:AST-100 FR2).
4967
- */
4968
- velocity() {
4969
- return this.locked(this.tracker.velocity(this.releaseTime));
4970
- }
4971
- /**
4972
- * A scrolling surface's release velocity in px/s (paging, a wheel): the
4973
- * scroll-view blend of the pan's last two values, with the same release
4974
- * rules (architecture:interaction-modality INV10).
4975
- */
4976
- scrollVelocity() {
4977
- return this.locked(this.tracker.scrollVelocity(this.releaseTime ?? this.tracker.lastSample?.time ?? 0));
4978
- }
4979
- /**
4980
- * The browser keeps the axis a two-way pan does not use. A one-way pan,
4981
- * and a pan that coordinates with native scrolling, leave the browser
4982
- * everything: the other direction still scrolls (a toast dragged away from
4983
- * its edge scrolls the page), and the pan claims its own direction by
4984
- * cancelling `touchmove` when it begins, below the distance at which the
4985
- * browser decides to scroll. Pinch-zoom stays the browser's.
4986
- */
4987
- get nativeTouchBehavior() {
4988
- if (this.scrollEdge || DIRECTION_VECTORS[this.direction] != null) return ALL_NATIVE_TOUCH;
4989
- const horizontal = this.direction === "horizontal" || this.direction === "left" || this.direction === "right";
4990
- return {
4991
- panX: this.direction === "vertical" || this.direction === "up" || this.direction === "down",
4992
- panY: horizontal,
4993
- pinchZoom: true,
4994
- doubleTapZoom: false
4995
- };
4996
- }
4997
- acceptsTouch(touch) {
4998
- if (isActive(this.state) && this.numberOfTouches >= this.maximumNumberOfTouches) return false;
4999
- return super.acceptsTouch(touch);
5000
- }
5001
- touchesBegan(touches, event) {
5002
- if (this.numberOfTouches === touches.length) {
5003
- const first = touches[0];
5004
- if (this.hysteresisFor != null && first != null) this.hysteresis = this.hysteresisFor(first);
5005
- this.origin = centroid(this.touches.values());
5006
- this.adjust = ZERO;
5007
- this.raw = ZERO;
5008
- this.offset = ZERO;
5009
- this.tracker.reset();
5010
- this.tracker.add(this.origin.x, this.origin.y, event.time);
5011
- } else this.rebase(new Set(touches.map((touch) => touch.id)), "added");
5012
- if (this.state === "possible" && this.numberOfTouches > this.maximumNumberOfTouches) this.setState("failed");
5013
- }
5014
- touchesMoved(_touches, event) {
5015
- this.track(event.time);
5016
- if (this.state === "possible") {
5017
- if (this.firstMoveDecides && this.firstMove == null && (this.raw.x !== 0 || this.raw.y !== 0)) {
5018
- this.firstMove = this.classify(this.raw);
5019
- if (this.firstMove !== "begin") {
5020
- this.setState("failed");
5021
- return;
5022
- }
5023
- }
5024
- this.tryBegin();
5025
- } else if (isActive(this.state)) this.setState("changed");
5026
- }
5027
- touchesEnded(touches, event) {
5028
- const remaining = this.numberOfTouches - touches.length;
5029
- if (isActive(this.state)) {
5030
- if (remaining < this.minimumNumberOfTouches) {
5031
- this.releaseTime = event.time;
5032
- this.setState("ended");
5033
- return;
5034
- }
5035
- this.rebase(new Set(touches.map((touch) => touch.id)), "removed");
5036
- return;
5037
- }
5038
- if (remaining === 0 || remaining < this.minimumNumberOfTouches) {
5039
- this.setState("failed");
5040
- return;
5041
- }
5042
- this.rebase(new Set(touches.map((touch) => touch.id)), "removed");
5043
- }
5044
- reset() {
5045
- this.lockedAxis = null;
5046
- this.travelAtBegan = ZERO;
5047
- this.origin = ZERO;
5048
- this.adjust = ZERO;
5049
- this.raw = ZERO;
5050
- this.offset = ZERO;
5051
- this.releaseTime = void 0;
5052
- this.firstMove = null;
5053
- this.tracker.reset();
5054
- }
5055
- /**
5056
- * What this movement means for a pan limited to a direction: begin, fail,
5057
- * or undecided (between `axisRatio`'s lines), which fails it too once it
5058
- * reaches its hysteresis.
5059
- */
5060
- classify(translation) {
5061
- if (this.direction === "any") return "begin";
5062
- const isHorizontal = this.direction === "horizontal" || this.direction === "left" || this.direction === "right";
5063
- const along = isHorizontal ? translation.x : translation.y;
5064
- const across = Math.abs(isHorizontal ? translation.y : translation.x);
5065
- const magnitude = Math.abs(along);
5066
- if (magnitude > this.axisRatio * across) {
5067
- const vector = DIRECTION_VECTORS[this.direction];
5068
- const sign = vector == null ? 0 : vector.x + vector.y;
5069
- return sign === 0 || Math.sign(along) === sign ? "begin" : "fail";
5070
- }
5071
- return across * Math.min(1, this.axisRatio) > magnitude ? "fail" : "wait";
5072
- }
5073
- tryBegin() {
5074
- const count = this.numberOfTouches;
5075
- if (count < this.minimumNumberOfTouches) return;
5076
- if (count > this.maximumNumberOfTouches) {
5077
- this.setState("failed");
5078
- return;
5079
- }
5080
- const moved = this.raw;
5081
- if (Math.max(Math.abs(moved.x), Math.abs(moved.y)) < this.hysteresis) return;
5082
- const verdict = this.classify(moved);
5083
- if (verdict === "fail") {
5084
- this.setState("failed");
5085
- return;
5086
- }
5087
- if (verdict === "wait") {
5088
- this.setState("failed");
5089
- return;
5090
- }
5091
- if (this.scrollEdge && this.nativeCanScroll(moved.x, moved.y)) {
5092
- this.setState("failed");
5093
- return;
5094
- }
5095
- if (this.lockAxis && this.direction === "any") this.lockedAxis = Math.abs(moved.x) >= Math.abs(moved.y) ? "x" : "y";
5096
- this.startFromHere();
5097
- this.setState("began");
5098
- }
5099
- /**
5100
- * Leave the threshold's travel out of the translation, as UIKit does at
5101
- * .began: up to `hysteresis` px per axis, so a slow drag starts at zero and
5102
- * a step that overshoots keeps the overshoot (measured: a slow diagonal
5103
- * that crossed at (10.67, 10.67) reads (0.67, 0.67); a 3:1 drag crossing at
5104
- * (11, 3.67) reads (1, 0)). Some fast first moves read zero in UIKit; that
5105
- * case is not modelled.
5106
- */
5107
- startFromHere() {
5108
- const limit = this.hysteresis;
5109
- const swallowed = {
5110
- x: Math.sign(this.raw.x) * Math.min(Math.abs(this.raw.x), limit),
5111
- y: Math.sign(this.raw.y) * Math.min(Math.abs(this.raw.y), limit)
5112
- };
5113
- this.travelAtBegan = swallowed;
5114
- this.offset = {
5115
- x: -swallowed.x,
5116
- y: -swallowed.y
5117
- };
5118
- }
5119
- /**
5120
- * Inside a tap's wobble the moves stay the browser's, so WebKit keeps the
5121
- * tap's click. Past it, at an edge where the browser would only rubber-band,
5122
- * the pan holds the finger before it begins (`spec:AST-094` FR19, DEC-18).
5123
- * A move the content can still scroll stays the browser's, and so does every
5124
- * move while a second finger is down (a pinch).
5125
- */
5126
- keepsTouch(touchId) {
5127
- const touch = this.touches.get(touchId);
5128
- if (!this.scrollEdge && !this.firstMoveDecides || this.state !== "possible" || this.touches.size !== 1 || touch == null || touch.pointerType !== "touch" || touch.takenByBrowser) return false;
5129
- if (this.firstMoveDecides) return this.firstMove === "begin";
5130
- const moved = this.raw;
5131
- return this.travelAlongAxis(moved) >= 5 && this.classify(moved) === "begin" && !this.nativeCanScroll(moved.x, moved.y);
5132
- }
5133
- travelAlongAxis(moved) {
5134
- if (this.direction === "any") return Math.max(Math.abs(moved.x), Math.abs(moved.y));
5135
- const isHorizontal = this.direction === "horizontal" || this.direction === "left" || this.direction === "right";
5136
- return Math.abs(isHorizontal ? moved.x : moved.y);
5137
- }
5138
- nativeCanScroll(dx, dy) {
5139
- for (const touch of this.touches.values()) if (touch.scroll?.canScroll(dx, dy) === true) return true;
5140
- return false;
5141
- }
5142
- track(time) {
5143
- const current = centroid(this.touches.values());
5144
- const virtual = {
5145
- x: current.x + this.adjust.x,
5146
- y: current.y + this.adjust.y
5147
- };
5148
- this.tracker.add(virtual.x, virtual.y, time);
5149
- this.raw = {
5150
- x: virtual.x - this.origin.x,
5151
- y: virtual.y - this.origin.y
5152
- };
5153
- }
5154
- /** Keep the translation continuous when fingers join or leave. */
5155
- rebase(changedIds, kind) {
5156
- const all = centroid(this.touches.values());
5157
- const others = centroid(this.touches.values(), changedIds);
5158
- const [before, after] = kind === "added" ? [others, all] : [all, others];
5159
- this.adjust = {
5160
- x: this.adjust.x + before.x - after.x,
5161
- y: this.adjust.y + before.y - after.y
5162
- };
5163
- }
5164
- locked(value) {
5165
- if (this.lockedAxis === "x") return {
5166
- x: value.x,
5167
- y: 0
5168
- };
5169
- if (this.lockedAxis === "y") return {
5170
- x: 0,
5171
- y: value.y
5172
- };
5173
- return value;
5174
- }
5175
- };
5176
- //#endregion
5177
- //#region src/gestures/useAttachment.ts
5178
- function useAttachment(target, attach, key = () => null) {
5179
- if (typeof document === "undefined") return;
5180
- let release = null;
5181
- const releaseNow = () => {
5182
- const current = release;
5183
- release = null;
5184
- current?.();
5185
- };
5186
- const stop = watch([() => toValue(target), key], ([node]) => {
5187
- releaseNow();
5188
- if (node != null) release = attach(node);
5189
- }, {
5190
- immediate: true,
5191
- flush: "sync"
5192
- });
5193
- if (getCurrentScope()) onScopeDispose(() => {
5194
- stop();
5195
- releaseNow();
5196
- });
5197
- }
5198
- //#endregion
5199
- export { lockSelection as a, MANIPULATION as c, getGestureHost as i, isActive as l, PanGestureRecognizer as n, locksSelectionFor as o, travel as r, GestureRecognizer as s, useAttachment as t, internals as u };
4376
+ export { ACTION_STATES as a, isActive as c, internals as d, DEFAULT_ENVIRONMENT as f, getGestureHost as i, isTerminal as l, distance as n, ALL_NATIVE_TOUCH as o, travel as r, MANIPULATION as s, centroid as t, isTransitionAllowed as u };