@astryx-vue/core 0.33.2 → 0.33.3
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.
- package/dist/AlertDialog/index.js +1 -1
- package/dist/{AlertDialog-BwW3jdTg.js → AlertDialog-BwH9WU-t.js} +8 -8
- package/dist/AppShell/index.js +1 -1
- package/dist/{AppShell-BURF50V8.js → AppShell-BwzRYOky.js} +5 -5
- package/dist/Avatar/index.js +1 -1
- package/dist/{Avatar-CcmhCa5q.js → Avatar-C6E6TYbe.js} +1 -1
- package/dist/AvatarGroup/index.d.ts +1 -1
- package/dist/AvatarGroup/index.js +1 -1
- package/dist/{AvatarGroup-DJKoExQk.js → AvatarGroup-C0V--ipx.js} +1 -1
- package/dist/Banner/index.d.ts +1 -1
- package/dist/Banner/index.js +1 -1
- package/dist/{Banner-DSSXXFU9.js → Banner-Ds5KIeES.js} +1 -1
- package/dist/BottomSheet/index.d.ts +1 -1
- package/dist/BottomSheet/index.js +2 -2
- package/dist/{BottomSheet-KUGb-GPw.js → BottomSheet-BmmGemH5.js} +1 -1
- package/dist/{BottomSheet-Jq7g0EWd.js → BottomSheet-DKEUVLe5.js} +9 -9
- package/dist/Breadcrumbs/index.js +2 -2
- package/dist/{Breadcrumbs-BEx7_LpB.js → Breadcrumbs-DWAYp-JJ.js} +1 -1
- package/dist/Button/index.d.ts +1 -1
- package/dist/Button/index.js +1 -1
- package/dist/{Button-BlWhnkeM.js → Button-X-Q_ghg8.js} +4 -4
- package/dist/ButtonGroup/index.d.ts +1 -1
- package/dist/ButtonGroup/index.js +1 -1
- package/dist/{ButtonGroup-D3pGXH3t.js → ButtonGroup-DsYdUmF1.js} +2 -2
- package/dist/Calendar/index.d.ts +1 -1
- package/dist/Carousel/index.d.ts +1 -1
- package/dist/Carousel/index.js +1 -1
- package/dist/{Carousel-XHo3AGQj.js → Carousel-D8uVV1J_.js} +1 -1
- package/dist/Chat/index.d.ts +1 -1
- package/dist/Chat/index.js +1 -1
- package/dist/{Chat-B0c_CxBk.js → Chat-Dy-icS2C.js} +5 -5
- package/dist/CheckboxInput/index.d.ts +1 -1
- package/dist/CheckboxInput/index.js +1 -1
- package/dist/{CheckboxInput-DCeCsNvg.js → CheckboxInput-CiUtutIS.js} +3 -3
- package/dist/CheckboxList/index.d.ts +1 -1
- package/dist/CheckboxList/index.js +1 -1
- package/dist/{CheckboxListItem-CGC_EBYs.js → CheckboxListItem-B6sV7-Og.js} +5 -5
- package/dist/ClickableCard/index.d.ts +1 -1
- package/dist/ClickableCard/index.js +1 -1
- package/dist/{ClickableCard-aU0QED8P.js → ClickableCard-DDk_RtHd.js} +1 -1
- package/dist/Code/index.js +1 -1
- package/dist/{CodeBlock-ClZvd61o.js → CodeBlock-r2-MlpBB.js} +1 -1
- package/dist/Collapsible/index.d.ts +1 -1
- package/dist/Collapsible/index.js +1 -1
- package/dist/{Collapsible-BAup__Sy.js → Collapsible-0XI3tKgj.js} +3 -3
- package/dist/CommandPalette/index.d.ts +1 -1
- package/dist/CommandPalette/index.js +1 -1
- package/dist/{CommandPalette-CvalZZHH.js → CommandPalette-BYR0Lxxd.js} +2 -2
- package/dist/ComplexSelector/index.d.ts +1 -1
- package/dist/ComplexSelector/index.js +1 -1
- package/dist/{ComplexSelector-DIwWcWwi.js → ComplexSelector-CIXrqCoX.js} +2 -2
- package/dist/ContextMenu/index.d.ts +1 -1
- package/dist/ContextMenu/index.js +2 -2
- package/dist/{ContextMenu-BnX93m0D.js → ContextMenu-CfVyaP5v.js} +6 -6
- package/dist/DateInput/index.d.ts +1 -1
- package/dist/DateInput/index.js +1 -1
- package/dist/{DateInput-BFjeik3X.js → DateInput-DRzZ8dY7.js} +4 -4
- package/dist/DateRangeInput/index.d.ts +1 -1
- package/dist/DateRangeInput/index.js +1 -1
- package/dist/{DateRangeInput-Cnrp5SDW.js → DateRangeInput-DL2aOQXJ.js} +3 -3
- package/dist/DateTimeInput/index.d.ts +1 -1
- package/dist/DateTimeInput/index.js +1 -1
- package/dist/{DateTimeInput-Zsf86rSO.js → DateTimeInput-KWkpamG4.js} +5 -5
- package/dist/Dialog/index.js +3 -3
- package/dist/{Dialog-Bl5CCsoX.js → Dialog-BM5VEE8z.js} +2 -2
- package/dist/{Dialog-DIWIrzgk.js → Dialog-CJzq1gms.js} +1 -1
- package/dist/{DialogHeader-DbWkeIrf.js → DialogHeader-Do4EOX2f.js} +2 -2
- package/dist/Divider/index.d.ts +1 -1
- package/dist/Drawer/index.d.ts +1 -1
- package/dist/Drawer/index.js +1 -1
- package/dist/{Drawer-MdC2BxbG.js → Drawer-DuQ620WO.js} +2 -2
- package/dist/DropdownMenu/index.js +2 -2
- package/dist/{DropdownMenu-4o8qS78m.js → DropdownMenu-CbENfJOq.js} +9 -9
- package/dist/EmptyState/index.js +1 -1
- package/dist/{EmptyState-CeZXvaPU.js → EmptyState-BAP8BpDj.js} +2 -2
- package/dist/Field/index.js +3 -3
- package/dist/{Field-CrTrfcXB.js → Field-B1fsgAqp.js} +1 -1
- package/dist/{FieldInfoTip-C3Ztw-wI.js → FieldInfoTip-CntJCcnM.js} +1 -1
- package/dist/{FieldLabel-CFE2WC_i.js → FieldLabel-D56uJrRE.js} +1 -1
- package/dist/FileInput/index.js +1 -1
- package/dist/{FileInput-BhO1SCw-.js → FileInput-EjlruVVX.js} +3 -3
- package/dist/Heading/index.d.ts +1 -1
- package/dist/Heading/index.js +1 -1
- package/dist/{Heading-AZCa8gid.js → Heading-D94VFJtm.js} +1 -1
- package/dist/HoverCard/index.d.ts +1 -1
- package/dist/HoverCard/index.js +1 -1
- package/dist/{HoverCard-C4VR_GZ0.js → HoverCard-rwpyd6nt.js} +4 -4
- package/dist/IconButton/index.js +1 -1
- package/dist/{IconButton-CqWEkha9.js → IconButton-CXg9qTRM.js} +1 -1
- package/dist/InfoTip/index.d.ts +1 -1
- package/dist/InfoTip/index.js +1 -1
- package/dist/{InfoTip-Dps1Aaem.js → InfoTip-jFet-iAx.js} +2 -2
- package/dist/{InputClearButton-Xjvkkq7B.js → InputClearButton-DBTrsrSH.js} +1 -1
- package/dist/InputGroup/index.d.ts +1 -1
- package/dist/InputGroup/index.js +1 -1
- package/dist/{InputGroup-gYIGs7VH.js → InputGroup-D7UBxktR.js} +1 -1
- package/dist/{Item-FxMSEuU3.js → Item-DbalBZXc.js} +2 -2
- package/dist/{LayerContentBoundary-C7VZOgMs.js → LayerContentBoundary-CTjEpdM4.js} +1 -1
- package/dist/Layout/index.js +2 -2
- package/dist/{Layout-D6UhyoVb.js → Layout-BEJwZon4.js} +1 -1
- package/dist/{LayoutPanel-DfS5TvSP.js → LayoutPanel-BgJdL0KV.js} +1 -1
- package/dist/Lightbox/index.js +1 -1
- package/dist/{Lightbox-76vHqGA0.js → Lightbox-DJXB22k0.js} +1 -1
- package/dist/Link/index.d.ts +1 -1
- package/dist/Link/index.js +1 -1
- package/dist/{Link-QPBGLcTk.js → Link-eXwB0Hjg.js} +2 -2
- package/dist/List/index.d.ts +1 -1
- package/dist/List/index.js +2 -2
- package/dist/{ListItem-Ss6Kw90l.js → ListItem-C5B8uYyn.js} +4 -4
- package/dist/Markdown/index.js +1 -1
- package/dist/{Markdown-Cz6wbx9z.js → Markdown-COub2yng.js} +3 -3
- package/dist/MobileNav/index.js +1 -1
- package/dist/{MobileNavToggle-CCJBX2fq.js → MobileNavToggle-DI5yDKfp.js} +2 -2
- package/dist/MoreMenu/index.d.ts +1 -1
- package/dist/MoreMenu/index.js +1 -1
- package/dist/{MoreMenu-OOQAeJT9.js → MoreMenu-C7gie2PE.js} +8 -8
- package/dist/MultiSelector/index.d.ts +1 -1
- package/dist/MultiSelector/index.js +1 -1
- package/dist/{MultiSelector-9HGDsMQE.js → MultiSelector-CnGUU8P3.js} +6 -6
- package/dist/{NavDisclosure-BTeZLyLq.js → NavDisclosure-CSnUZY3k.js} +1 -1
- package/dist/{NavHeadingSurface-DPmolgVb.js → NavHeadingSurface-C3fTf5--.js} +1 -1
- package/dist/NavItem/index.d.ts +1 -1
- package/dist/NavItem/index.js +1 -1
- package/dist/{NavItem-BL3g0YUf.js → NavItem-Cciu9aok.js} +1 -1
- package/dist/NavMenu/index.js +3 -3
- package/dist/{NavMenu-DcTh1DCM.js → NavMenu--iyy_m84.js} +2 -2
- package/dist/{NavMenuItem-Dmsno5s3.js → NavMenuItem-BmAm-Cv8.js} +3 -3
- package/dist/NumberInput/index.d.ts +1 -1
- package/dist/NumberInput/index.js +1 -1
- package/dist/{NumberInput-DWYCcrUw.js → NumberInput-CD9sHbON.js} +3 -3
- package/dist/Outline/index.js +1 -1
- package/dist/{Outline-DGtPcD0U.js → Outline-vieAJS2J.js} +3 -3
- package/dist/OverflowList/index.d.ts +1 -1
- package/dist/OverflowList/index.js +1 -1
- package/dist/{OverflowList-EIr4jQjY.js → OverflowList-YLVHypB3.js} +2 -2
- package/dist/Pagination/index.d.ts +1 -1
- package/dist/Pagination/index.js +1 -1
- package/dist/{Pagination-Ch7-xIFe.js → Pagination-Bnkp4oAA.js} +2 -2
- package/dist/PanGestureRecognizer-CzIWpazn.js +681 -0
- package/dist/Popover/index.d.ts +1 -1
- package/dist/Popover/index.js +1 -1
- package/dist/{Popover-LSIKv1zS.js → Popover-CYJ1z_7L.js} +9 -9
- package/dist/PowerSearch/index.d.ts +1 -1
- package/dist/PowerSearch/index.js +1 -1
- package/dist/{PowerSearch-Cjkv0qON.js → PowerSearch-DEpXEmgs.js} +26 -26
- package/dist/PressTracker-L5-Ark_9.js +190 -0
- package/dist/ProgressBar/index.d.ts +1 -1
- package/dist/ProgressBar/index.js +1 -1
- package/dist/{ProgressBar-nPERcjvJ.js → ProgressBar-ChgsiVRR.js} +3 -3
- package/dist/Radio/index.d.ts +1 -1
- package/dist/Radio/index.js +1 -1
- package/dist/{RadioGroup-BWFVn7Gd.js → RadioGroup-BdO-xZv0.js} +4 -4
- package/dist/RadioList/index.d.ts +1 -1
- package/dist/RadioList/index.js +1 -1
- package/dist/{RadioListItem-D1rnSZeL.js → RadioListItem-DzGPuWTt.js} +1 -1
- package/dist/Resizable/index.js +1 -1
- package/dist/{ResizeHandle-DyjQfxxG.js → ResizeHandle-Dcel1HkU.js} +2 -2
- package/dist/ScrollableArea/index.d.ts +1 -1
- package/dist/SegmentedControl/index.js +1 -1
- package/dist/{SegmentedControl-CkR8ur3h.js → SegmentedControl-BURyE9XU.js} +2 -2
- package/dist/SelectableCard/index.d.ts +1 -1
- package/dist/SelectableCard/index.js +1 -1
- package/dist/{SelectableCard-uDblNb5T.js → SelectableCard-BZTF6qw-.js} +1 -1
- package/dist/Selector/index.d.ts +1 -1
- package/dist/Selector/index.js +1 -1
- package/dist/{Selector-BiLcyM3Y.js → Selector-SkwSbf4j.js} +4 -4
- package/dist/SideNav/index.d.ts +1 -1
- package/dist/SideNav/index.js +2 -2
- package/dist/{SideNav-d0A9mlEW.js → SideNav-BxJfJU95.js} +9 -9
- package/dist/Slider/index.js +1 -1
- package/dist/Slider-ORmi7QJ7.js +1785 -0
- package/dist/Stack/index.d.ts +1 -1
- package/dist/StatusDot/index.js +1 -1
- package/dist/{StatusDot-D3z-WEGn.js → StatusDot-D7nVuPg7.js} +1 -1
- package/dist/Stepper/index.d.ts +1 -1
- package/dist/Stepper/index.js +1 -1
- package/dist/{Stepper-CePOs80C.js → Stepper-C4-wtxn4.js} +1 -1
- package/dist/Switch/index.d.ts +1 -1
- package/dist/Switch/index.js +1 -1
- package/dist/Switch-Cw1UKVjQ.js +1468 -0
- package/dist/TabList/index.d.ts +1 -1
- package/dist/TabList/index.js +1 -1
- package/dist/{TabList-CthDI2i1.js → TabList-DNDe2ipJ.js} +3 -3
- package/dist/Table/index.d.ts +1 -1
- package/dist/Table/index.js +1 -1
- package/dist/{Table-egoY0slV.js → Table-CqppyRk8.js} +12 -12
- package/dist/Text/index.d.ts +1 -1
- package/dist/Text/index.js +1 -1
- package/dist/{Text-CGb1rxyK.js → Text-kwsIut3C.js} +1 -1
- package/dist/TextArea/index.d.ts +1 -1
- package/dist/TextArea/index.js +1 -1
- package/dist/{TextArea-B3WlT4sr.js → TextArea-I3ghDb9r.js} +4 -4
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/TextInput/index.js +1 -1
- package/dist/{TextInput-C4CqgE0E.js → TextInput-Xz_ibpOl.js} +4 -4
- package/dist/Thumbnail/index.js +1 -1
- package/dist/{Thumbnail-6YWZ9a2A.js → Thumbnail-bS62Tr_f.js} +3 -3
- package/dist/{TimeField-CvBKO_Ew.js → TimeField-Bsb8n22d.js} +3 -3
- package/dist/TimeInput/index.d.ts +1 -1
- package/dist/TimeInput/index.js +1 -1
- package/dist/{TimeInput-Cl9HIZrP.js → TimeInput-D40_6GrX.js} +2 -2
- package/dist/Timer/index.d.ts +1 -1
- package/dist/Timer/index.js +1 -1
- package/dist/{Timer-BNa_W8zr.js → Timer-B-9sSJWK.js} +1 -1
- package/dist/Timestamp/index.d.ts +1 -1
- package/dist/Timestamp/index.js +1 -1
- package/dist/{Timestamp-D_NTXtxz.js → Timestamp-Bt9ZR975.js} +3 -3
- package/dist/Toast/index.js +1 -1
- package/dist/{Toast-E6NqFf3W.js → Toast-BQxfIeVU.js} +5 -3
- package/dist/ToggleButton/index.d.ts +1 -1
- package/dist/ToggleButton/index.js +1 -1
- package/dist/{ToggleButton-ih92QX-K.js → ToggleButton-IFhFMpQh.js} +3 -3
- package/dist/Token/index.js +1 -1
- package/dist/{Token-DE1udaRF.js → Token-CpmqfG4i.js} +1 -1
- package/dist/Tokenizer/index.d.ts +1 -1
- package/dist/Tokenizer/index.js +1 -1
- package/dist/{Tokenizer-DbD2ZBuh.js → Tokenizer-Dvr7ICpS.js} +13 -13
- package/dist/Toolbar/index.d.ts +1 -1
- package/dist/Tooltip/index.d.ts +1 -1
- package/dist/Tooltip/index.js +2 -2
- package/dist/{Tooltip-sXtW5dTD.js → Tooltip-DyGaJUbl.js} +1 -1
- package/dist/TopNav/index.d.ts +1 -1
- package/dist/TopNav/index.js +1 -1
- package/dist/{TopNav-D688LaUK.js → TopNav-Cw_dcKpf.js} +5 -5
- package/dist/TreeList/index.js +1 -1
- package/dist/{TreeList-BFKPBFKu.js → TreeList-CBfKKbUQ.js} +4 -4
- package/dist/Typeahead/index.js +2 -2
- package/dist/{Typeahead-BwjzOjT4.js → Typeahead-D9-WjsCU.js} +5 -5
- package/dist/{VelocityTracker-bns4TzMt.js → VelocityTracker-CPFBHDpy.js} +1 -1
- package/dist/{accessibleName-nYUMoSTW.js → accessibleName-Cw9s1690.js} +2 -2
- package/dist/{animator-DnLs_cbV.js → animator-ozeBZ_zC.js} +3 -3
- package/dist/{assertOptions-BdLvkG6M.js → assertOptions-V_jJxpn9.js} +1 -1
- package/dist/{clickGuard-C3VmOLhI.js → clickGuard-CxqcfBCJ.js} +2 -2
- package/dist/{coarsePointer-BfMx3H23.js → coarsePointer-DGnAPIcU.js} +1 -1
- package/dist/composables/index.js +10 -10
- package/dist/{composables-B9tgZEzP.js → composables-BJoAw6XA.js} +11 -9
- package/dist/{context-Dktfy1fh.js → context-WDet15_N.js} +1 -1
- package/dist/{useAttachment-CALrXA-t.js → geometry-CoQRz-F1.js} +12 -710
- package/dist/{gestures-CppaWqif.js → gestures-yKyyMqeQ.js} +225 -1
- package/dist/{holdEntranceInput-DgimbgGm.js → holdEntranceInput-BsusS3bM.js} +2 -2
- package/dist/{index-MOtVbTwK.d.ts → index--kbwaSXW.d.ts} +3 -3
- package/dist/{index-X4S7_dmq.d.ts → index-BA8exXNP.d.ts} +1 -1
- package/dist/{index-CArP_6wv.d.ts → index-BI1QLuYB.d.ts} +2 -2
- package/dist/{index-maTGrWjF.d.ts → index-BenG-F5d.d.ts} +1 -1
- package/dist/{index-D7ShT2c-.d.ts → index-BgT6mH3U.d.ts} +1 -1
- package/dist/{index-C1e8LNx2.d.ts → index-BjqoHLMq.d.ts} +1 -1
- package/dist/{index-DN5Ga_Zm.d.ts → index-BqQlY3fL.d.ts} +3 -3
- package/dist/{index-Otl047R1.d.ts → index-BtqvPjAf.d.ts} +2 -2
- package/dist/{index-waTkqxTz.d.ts → index-C89cIh4E.d.ts} +1 -1
- package/dist/{index-D05JGsT3.d.ts → index-C8wfe0Mr.d.ts} +1 -1
- package/dist/{index-CdvmnNMH.d.ts → index-COgrQZIL.d.ts} +1 -1
- package/dist/{index-AgTJRqUY.d.ts → index-CQi9WGWE.d.ts} +2 -2
- package/dist/{index-D65x5ny5.d.ts → index-CY0KtUSC.d.ts} +67 -67
- package/dist/{index-rdwI-mcm.d.ts → index-CtYlR9Cu.d.ts} +1 -1
- package/dist/{index-DWVhyvVu.d.ts → index-D1JOMiI5.d.ts} +8 -8
- package/dist/{index-eCp-ElSp.d.ts → index-DPhQZXYw.d.ts} +2 -2
- package/dist/{index-CM00rrgg.d.ts → index-DuxRUPMc.d.ts} +3 -3
- package/dist/{index-BOiwoyXq.d.ts → index-GyRgg1-v.d.ts} +8 -8
- package/dist/{index-CUuUoX3h.d.ts → index-JE1HrzdJ.d.ts} +3 -3
- package/dist/{index-Ak1b0V24.d.ts → index-Pad9p8CU.d.ts} +1 -1
- package/dist/{index-85y5NZP-.d.ts → index-V6uruC4Z.d.ts} +1 -1
- package/dist/{index-3LdpzxQZ.d.ts → index-ZKBj_1nu.d.ts} +2 -2
- package/dist/{index-Cm36VS1A.d.ts → index-mK1ICsVg.d.ts} +2 -2
- package/dist/{index-ql9ApSTF.d.ts → index-yQc-te9a.d.ts} +2 -2
- package/dist/index.d.ts +24 -24
- package/dist/index.js +101 -101
- package/dist/{inputHold-DW2LYHb5.js → inputHold-BJtjc9iI.js} +4 -4
- package/dist/{inputHoldState-xntIqr5W.js → inputHoldState-BYi5FKZl.js} +2 -2
- package/dist/{inputStream-bPd9eB2b.js → inputStream-HXw2lZ-3.js} +1 -1
- package/dist/{landing-9mjHGn26.js → landing-Qk_FHR-s.js} +1 -1
- package/dist/{layerDepth-c3jUndA2.js → layerDepth-SGFJ5L6X.js} +1 -1
- package/dist/{lazyBottomSheet-Ca7Mdou2.js → lazyBottomSheet-Bg5E8lr3.js} +1 -1
- package/dist/{linearEasing-CBwOorE7.js → linearEasing-VHwy6xl_.js} +1 -1
- package/dist/{presentation-Cy_yf56y.js → presentation-twEOzzJq.js} +1 -1
- package/dist/{presentationHold-B4tK68sd.js → presentationHold-CZsVmjlY.js} +1 -1
- package/dist/{pressFeedback-BlOSZew9.js → pressFeedback-9ogipvI4.js} +4 -4
- package/dist/{pressGesture-yntcDLXo.js → pressGesture-B3Efxs_z.js} +1 -1
- package/dist/{rubberBand-DDapO54w.js → projection-qPcLQcwK.js} +2 -50
- package/dist/{reportChange-DPFCmyOB.js → reportChange-BUTgduu-.js} +3 -3
- package/dist/{resizableChannel-DOmBYh4V.js → resizableChannel-_j_AW2B6.js} +5 -5
- package/dist/{resolveMotion-CF9fXX0t.js → resolveMotion-DftkGFw6.js} +1 -1
- package/dist/{resolveSnapPoint-mZzJRIC2.js → resolveSnapPoint-A4dhS5jj.js} +1 -1
- package/dist/rubberBand-DDd5ElTe.js +65 -0
- package/dist/{sharedRealm-H1OrlP0V.js → sharedRealm-DBtNH73I.js} +9 -1
- package/dist/{springs-B2jqskKJ.js → springs-DjAn_oV5.js} +1 -1
- package/dist/{stillPointerGate-Htiy6uKa.js → stillPointerGate-BvCX7ddI.js} +1 -1
- package/dist/{tooltipFocusRules-BHJUQprJ.js → tooltipFocusRules-CxIlSnHw.js} +2 -2
- package/dist/{tooltipTriggerRules-Dremu4W9.js → tooltipTriggerRules-CHNpQ6RL.js} +1 -1
- package/dist/{touchHold-DXtx7npm.js → touchHold-CjNjGH7O.js} +1 -1
- package/dist/{useActionGroupTracking-DDhfTUOK.js → useActionGroupTracking-ByLJoM-8.js} +3 -3
- package/dist/{useAnimatedLayout-B6Xj_kTo.js → useAnimatedLayout-IcX0UfS4.js} +1 -1
- package/dist/useAttachment-CGiD9rt6.js +24 -0
- package/dist/{useChatStreamScroll-CuMzkXgD.js → useChatStreamScroll-DcNKcNTj.js} +1 -1
- package/dist/{useDismiss-BvDK4xBe.js → useDismiss-6SGAlkB_.js} +1 -1
- package/dist/{useHeldPresentation-BF5vGVUn.js → useHeldPresentation-DJEthuMT.js} +1 -1
- package/dist/{useInputStatusIcon-MyCpVp3g.js → useInputStatusIcon-D0q4S1Ye.js} +1 -1
- package/dist/{useMenuEntranceHold-HznOwIry.js → useMenuEntranceHold-B7f9ShX2.js} +1 -1
- package/dist/{useMenuPress-BJVQF7ml.js → useMenuPress-cBIQyTsN.js} +4 -4
- package/dist/{usePressFeedback-cxyksfAD.js → usePressFeedback-Dx-a3i82.js} +1 -1
- package/dist/{useResizable-C-9ff2ZK.js → useResizable-JvgYydox.js} +6 -5
- package/dist/{useTooltip-w57yzB7h.js → useTooltip-owvVSn_m.js} +4 -4
- package/dist/{useTouchHitArea-CgUvnuTz.js → useTouchHitArea-BGkvMAyp.js} +2 -2
- package/dist/{useTouchTriggerInternal-DSA228_-.js → useTouchTriggerInternal-5ExaYYSy.js} +1 -1
- package/dist/{useTruncationTooltip--w8vh7M-.js → useTruncationTooltip-DHI6q_EV.js} +3 -3
- package/dist/{useTypeaheadMenuConfig-C-EOaLF-.js → useTypeaheadMenuConfig-COiZ4isy.js} +1 -1
- package/package.json +1 -1
- package/styles/slider.css +59 -12
- package/styles/switch.css +101 -34
- package/dist/Slider-BdIrYmul.js +0 -735
- package/dist/Switch-6tQbDX9A.js +0 -355
|
@@ -1,15 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { d as parseTouchAction, f as rootOverflow, l as SCROLLABLE_OVERFLOW, p as clockOf, u as isInsideScrollView } from "./pressFeedback-
|
|
3
|
-
import { i as withoutClickGuard, n as disarmClickGuard, t as armClickGuard } from "./clickGuard-
|
|
4
|
-
import { i as subscribeInput } from "./inputStream-
|
|
5
|
-
import { i as
|
|
6
|
-
import { i as presentedOffsetOf, o as resolvePresented, r as presentedElements, s as watchPresentedElements } from "./presentation-
|
|
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, o as sharedWeakMap, t as realmValue, u as parentAcrossShadow } from "./sharedRealm-DBtNH73I.js";
|
|
2
|
+
import { d as parseTouchAction, f as rootOverflow, l as SCROLLABLE_OVERFLOW, p as clockOf, u as isInsideScrollView } from "./pressFeedback-9ogipvI4.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 {
|
|
8
|
+
import { o as isIosWebKit, r as watchCoarsePointer, t as isCoarsePointer } from "./coarsePointer-DGnAPIcU.js";
|
|
9
9
|
import { t as isRtlElement } from "./isRtlElement-NHuH48AA.js";
|
|
10
|
-
import { t as holdsTouch } from "./touchHold-
|
|
11
|
-
import { t as VelocityTracker } from "./VelocityTracker-bns4TzMt.js";
|
|
12
|
-
import { getCurrentScope, onScopeDispose, toValue, watch } from "vue";
|
|
10
|
+
import { t as holdsTouch } from "./touchHold-CjNjGH7O.js";
|
|
13
11
|
//#region src/gestures/arenaTypes.ts
|
|
14
12
|
/** The browser's clock: `performance.now()`, the base of `event.timeStamp`. */
|
|
15
13
|
const browserClock = {
|
|
@@ -378,365 +376,6 @@ const MANIPULATION = {
|
|
|
378
376
|
doubleTapZoom: false
|
|
379
377
|
};
|
|
380
378
|
//#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
379
|
//#region src/gestures/arenaResolution.ts
|
|
741
380
|
/** Conflict resolution and claims; GestureArena is the class to use. */
|
|
742
381
|
var ArenaResolution = class extends ArenaDelivery {
|
|
@@ -4851,349 +4490,12 @@ function centroid(touches, excluding) {
|
|
|
4851
4490
|
y: y / count
|
|
4852
4491
|
};
|
|
4853
4492
|
}
|
|
4493
|
+
function distance(a, b) {
|
|
4494
|
+
return Math.hypot(a.x - b.x, a.y - b.y);
|
|
4495
|
+
}
|
|
4854
4496
|
/** How far a touch is from where it landed. */
|
|
4855
4497
|
function travel(touch) {
|
|
4856
4498
|
return Math.hypot(touch.x - touch.startX, touch.y - touch.startY);
|
|
4857
4499
|
}
|
|
4858
4500
|
//#endregion
|
|
4859
|
-
|
|
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 };
|
|
4501
|
+
export { lockSelection as a, ALL_NATIVE_TOUCH as c, isTerminal as d, isTransitionAllowed as f, getGestureHost as i, MANIPULATION as l, DEFAULT_ENVIRONMENT as m, distance as n, locksSelectionFor as o, internals as p, travel as r, ACTION_STATES as s, centroid as t, isActive as u };
|