@astryx-vue/core 0.33.4 → 0.34.1
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-CwyMvZEI.js → AlertDialog-rndlABEe.js} +8 -8
- package/dist/AppShell/index.js +1 -1
- package/dist/{AppShell-4hWTPKSD.js → AppShell-eVrOpRqn.js} +5 -5
- package/dist/Avatar/index.js +1 -1
- package/dist/{Avatar-C6E6TYbe.js → Avatar-CpWBsTqf.js} +1 -1
- package/dist/AvatarGroup/index.d.ts +1 -1
- package/dist/AvatarGroup/index.js +1 -1
- package/dist/{AvatarGroup-BIPixZOb.js → AvatarGroup-BEBUEhxF.js} +1 -1
- package/dist/Banner/index.d.ts +1 -1
- package/dist/Banner/index.js +1 -1
- package/dist/{Banner-CMXebR4Y.js → Banner-CVBNGDsD.js} +1 -1
- package/dist/BottomSheet/index.js +2 -2
- package/dist/{BottomSheet-BmmGemH5.js → BottomSheet-B3qXtKQj.js} +1 -1
- package/dist/{BottomSheet-DKEUVLe5.js → BottomSheet-C6vet4pm.js} +8 -4
- package/dist/Breadcrumbs/index.js +2 -2
- package/dist/{Breadcrumbs-BPxPAEHQ.js → Breadcrumbs-B-w_yw-n.js} +1 -1
- package/dist/Button/index.d.ts +1 -1
- package/dist/Button/index.js +1 -1
- package/dist/{Button-B7PvGVt6.js → Button-DTdlisqJ.js} +4 -4
- package/dist/ButtonGroup/index.d.ts +1 -1
- package/dist/ButtonGroup/index.js +1 -1
- package/dist/{ButtonGroup-BkwQ0h97.js → ButtonGroup-Bjzs-HAG.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-BmfKiv69.js → Carousel-DjySyeDR.js} +1 -1
- package/dist/Chat/index.d.ts +1 -1
- package/dist/Chat/index.js +1 -1
- package/dist/{Chat-2AG37D51.js → Chat-DQ6BGAvP.js} +5 -5
- package/dist/CheckboxInput/index.d.ts +1 -1
- package/dist/CheckboxInput/index.js +1 -1
- package/dist/{CheckboxInput-rbMgS8ZL.js → CheckboxInput-DSW8yq92.js} +4 -4
- package/dist/CheckboxList/index.d.ts +1 -1
- package/dist/CheckboxList/index.js +1 -1
- package/dist/{CheckboxListItem-Ckt1Cwt_.js → CheckboxListItem-B2E2O1AE.js} +5 -5
- package/dist/ClickableCard/index.d.ts +1 -1
- package/dist/ClickableCard/index.js +1 -1
- package/dist/{ClickableCard-Dh0tOQv-.js → ClickableCard-D4EGX9Dh.js} +1 -1
- package/dist/Code/index.d.ts +3 -2
- package/dist/Code/index.js +3 -2
- package/dist/Code/languages/dockerfile/index.d.ts +5 -0
- package/dist/Code/languages/dockerfile/index.js +47 -0
- package/dist/Code/languages/graphql/index.d.ts +5 -0
- package/dist/Code/languages/graphql/index.js +24 -0
- package/dist/Code/languages/java/index.d.ts +5 -0
- package/dist/Code/languages/java/index.js +17 -0
- package/dist/Code/languages/lua/index.d.ts +5 -0
- package/dist/Code/languages/lua/index.js +14 -0
- package/dist/Code/languages/objective-c/index.d.ts +5 -0
- package/dist/Code/languages/objective-c/index.js +29 -0
- package/dist/Code/languages/powershell/index.d.ts +5 -0
- package/dist/Code/languages/powershell/index.js +36 -0
- package/dist/Code/languages/ruby/index.d.ts +5 -0
- package/dist/Code/languages/ruby/index.js +21 -0
- package/dist/Code/languages/thrift/index.d.ts +5 -0
- package/dist/Code/languages/thrift/index.js +15 -0
- package/dist/Code/languages/toml/index.d.ts +5 -0
- package/dist/Code/languages/toml/index.js +55 -0
- package/dist/{CodeBlock-ZluDuBT7.js → CodeBlock-D7ZJQV5Q.js} +309 -96
- package/dist/Collapsible/index.js +1 -1
- package/dist/{Collapsible-B_9H2wV_.js → Collapsible-C5xSG7oP.js} +3 -3
- package/dist/CommandPalette/index.js +1 -1
- package/dist/{CommandPalette-Cbr-WWC8.js → CommandPalette-BUNdrxrB.js} +2 -2
- package/dist/ComplexSelector/index.js +1 -1
- package/dist/{ComplexSelector-BPvBCUJk.js → ComplexSelector-m9wi7E0j.js} +2 -2
- package/dist/ContextMenu/index.d.ts +1 -1
- package/dist/ContextMenu/index.js +2 -2
- package/dist/{ContextMenu-BF4ALBZn.js → ContextMenu-BEHfVIAq.js} +5 -5
- package/dist/DateInput/index.d.ts +1 -1
- package/dist/DateInput/index.js +1 -1
- package/dist/{DateInput-C7PICKR2.js → DateInput-CHeetz7k.js} +5 -5
- package/dist/DateRangeInput/index.d.ts +1 -1
- package/dist/DateRangeInput/index.js +1 -1
- package/dist/{DateRangeInput-Dt-BA7AA.js → DateRangeInput-D524C1wc.js} +3 -3
- package/dist/DateTimeInput/index.d.ts +1 -1
- package/dist/DateTimeInput/index.js +1 -1
- package/dist/{DateTimeInput-XEESzGJf.js → DateTimeInput-2gTBrcbr.js} +5 -5
- package/dist/Dialog/index.js +3 -3
- package/dist/{Dialog-B1xC9xMC.js → Dialog-DS3xE1B7.js} +2 -2
- package/dist/{Dialog-BmdNX3NC.js → Dialog-nyLGClca.js} +1 -1
- package/dist/{DialogHeader-DcP4xAk3.js → DialogHeader-u_AaZpyZ.js} +2 -2
- package/dist/Drawer/index.d.ts +1 -1
- package/dist/Drawer/index.js +1 -1
- package/dist/{Drawer-CdHbZffI.js → Drawer-DqUdaZFh.js} +2 -2
- package/dist/DropdownMenu/index.js +2 -2
- package/dist/{DropdownMenu-C1494BkC.js → DropdownMenu-DlAON5Jf.js} +8 -8
- package/dist/EmptyState/index.js +1 -1
- package/dist/{EmptyState-BAP8BpDj.js → EmptyState-DU7uOI2G.js} +2 -2
- package/dist/Field/index.js +3 -3
- package/dist/{Field-KszpxUdx.js → Field-YNS4XxpR.js} +1 -1
- package/dist/{FieldInfoTip-CY9BTVtK.js → FieldInfoTip-DFlIBJlR.js} +1 -1
- package/dist/{FieldLabel-KPCTcJpO.js → FieldLabel-i0gos7hU.js} +1 -1
- package/dist/FileInput/index.d.ts +1 -1
- package/dist/FileInput/index.js +1 -1
- package/dist/{FileInput-BTIn6OoY.js → FileInput-DYVzAtvz.js} +3 -3
- package/dist/Heading/index.js +1 -1
- package/dist/{Heading-D94VFJtm.js → Heading-BZ0ydu2s.js} +1 -1
- package/dist/HoverCard/index.d.ts +1 -1
- package/dist/HoverCard/index.js +1 -1
- package/dist/{HoverCard-rwpyd6nt.js → HoverCard-BhHZE9q6.js} +4 -4
- package/dist/IconButton/index.js +1 -1
- package/dist/{IconButton-e5xeGow-.js → IconButton-DXt8DtsN.js} +1 -1
- package/dist/InfoTip/index.d.ts +1 -1
- package/dist/InfoTip/index.js +1 -1
- package/dist/{InfoTip-DpvV8zrm.js → InfoTip--fZOD0ux.js} +2 -2
- package/dist/{InputClearButton-BzxJH6mk.js → InputClearButton-LF0iVTVF.js} +1 -1
- package/dist/InputGroup/index.js +1 -1
- package/dist/{InputGroup-Bj4hksiI.js → InputGroup-D4CPVzo0.js} +1 -1
- package/dist/InternationalizationProvider/index.d.ts +1 -1
- package/dist/InternationalizationProvider/index.js +1 -1
- package/dist/{InternationalizationProvider-BGtwZDY0.js → InternationalizationProvider-DzNfleAX.js} +1 -1
- package/dist/{Item-D62Cibn1.js → Item-BKISM91o.js} +1 -1
- package/dist/{LayerContentBoundary-CTjEpdM4.js → LayerContentBoundary-D67fobWl.js} +1 -1
- package/dist/Layout/index.js +2 -2
- package/dist/{Layout-SJoCw8NC.js → Layout-BwSvAsLi.js} +1 -1
- package/dist/{LayoutPanel-DZN4RxX6.js → LayoutPanel-CmzJQpnL.js} +1 -1
- package/dist/Lightbox/index.js +1 -1
- package/dist/{Lightbox-FWtAn7X5.js → Lightbox-B32Yh8Uy.js} +1 -1
- package/dist/Link/index.d.ts +1 -1
- package/dist/Link/index.js +1 -1
- package/dist/{Link-BxK3lbA-.js → Link-DSXyw9MW.js} +2 -2
- package/dist/List/index.d.ts +1 -1
- package/dist/List/index.js +2 -2
- package/dist/{ListItem-B4jt3EXr.js → ListItem-D3iEhvU2.js} +4 -4
- package/dist/Markdown/index.d.ts +1 -1
- package/dist/Markdown/index.js +2 -2
- package/dist/Markdown/parser/index.js +1 -1
- package/dist/{Markdown-CsoseOGe.js → Markdown-BvWEX29v.js} +81 -6
- package/dist/MetadataList/index.d.ts +1 -1
- package/dist/MobileNav/index.js +1 -1
- package/dist/{MobileNavToggle-AgT6hzTg.js → MobileNavToggle-sC6GPVKQ.js} +2 -2
- package/dist/MoreMenu/index.d.ts +1 -1
- package/dist/MoreMenu/index.js +1 -1
- package/dist/{MoreMenu-4zcxptan.js → MoreMenu-CcavOuxV.js} +7 -7
- package/dist/MultiSelector/index.js +1 -1
- package/dist/{MultiSelector-LuAE71wE.js → MultiSelector-Diu5zHbP.js} +5 -5
- package/dist/{NavDisclosure-CSnUZY3k.js → NavDisclosure-BpYjtYo5.js} +1 -1
- package/dist/{NavHeadingSurface-C3fTf5--.js → NavHeadingSurface-CK9zMjFC.js} +1 -1
- package/dist/NavItem/index.js +1 -1
- package/dist/{NavItem-mcmzIshL.js → NavItem-DlW8noR6.js} +1 -1
- package/dist/NavMenu/index.js +3 -3
- package/dist/{NavMenu-Bp35Bk7_.js → NavMenu-J2kmtb1B.js} +2 -2
- package/dist/{NavMenuItem-DviXkleh.js → NavMenuItem-DItNRTDZ.js} +3 -3
- package/dist/NumberInput/index.d.ts +1 -1
- package/dist/NumberInput/index.js +1 -1
- package/dist/{NumberInput-CxzhFPQw.js → NumberInput-vhm5TQon.js} +3 -3
- package/dist/Outline/index.js +1 -1
- package/dist/{Outline-KpA-ffCT.js → Outline-CVIDd0fN.js} +3 -67
- package/dist/OverflowList/index.d.ts +1 -1
- package/dist/OverflowList/index.js +1 -1
- package/dist/{OverflowList-DRZxrAYq.js → OverflowList-DjWWBOkx.js} +2 -2
- package/dist/Pagination/index.js +1 -1
- package/dist/{Pagination-B3JMAlnl.js → Pagination-DKsePQjC.js} +2 -2
- package/dist/{PanGestureRecognizer-R5y8LZ9h.js → PanGestureRecognizer-C7hNunjF.js} +1 -1
- package/dist/PickerWheel-Bf7xe6g6.js +1131 -0
- package/dist/Popover/index.d.ts +1 -1
- package/dist/Popover/index.js +1 -1
- package/dist/{Popover-CQr95J2s.js → Popover-CKgepPJ6.js} +7 -7
- package/dist/PowerSearch/index.d.ts +1 -1
- package/dist/PowerSearch/index.js +1 -1
- package/dist/{PowerSearch-BEaqgsZa.js → PowerSearch-v_MRx2nn.js} +27 -27
- package/dist/{PressTracker-Dze87pxw.js → PressTracker-DL75qEq_.js} +2 -2
- package/dist/ProgressBar/index.d.ts +1 -1
- package/dist/ProgressBar/index.js +1 -1
- package/dist/{ProgressBar-ChgsiVRR.js → ProgressBar-B2ds3imd.js} +1 -1
- package/dist/Radio/index.d.ts +1 -1
- package/dist/Radio/index.js +1 -1
- package/dist/{RadioGroup-CpMYh9eL.js → RadioGroup-C-S-SnbH.js} +5 -5
- package/dist/RadioList/index.d.ts +1 -1
- package/dist/RadioList/index.js +1 -1
- package/dist/{RadioListItem-n-h5r1GO.js → RadioListItem-DzKVK4DZ.js} +1 -1
- package/dist/Resizable/index.js +1 -1
- package/dist/{ResizeHandle-J9-dAMuo.js → ResizeHandle-CaZEB4Py.js} +1 -1
- package/dist/ScrollableArea/index.d.ts +1 -1
- package/dist/SegmentedControl/index.js +1 -1
- package/dist/{SegmentedControl-nz9d6e0y.js → SegmentedControl-Bp7dpEjn.js} +10 -10
- package/dist/SelectableCard/index.d.ts +1 -1
- package/dist/SelectableCard/index.js +1 -1
- package/dist/{SelectableCard-C018jluo.js → SelectableCard-DPWaUCGZ.js} +1 -1
- package/dist/Selector/index.d.ts +1 -1
- package/dist/Selector/index.js +1 -1
- package/dist/{Selector-CW1jaM4F.js → Selector-CJmeuWhN.js} +3 -3
- package/dist/SideNav/index.d.ts +1 -1
- package/dist/SideNav/index.js +2 -2
- package/dist/{SideNav-DgRpBPuP.js → SideNav-D-AQqNPx.js} +9 -9
- package/dist/Slider/index.js +1 -1
- package/dist/{Slider-Bz72itTP.js → Slider-DU-Yl3fd.js} +9 -150
- package/dist/Stack/index.d.ts +1 -1
- package/dist/StatusDot/index.js +1 -1
- package/dist/{StatusDot-D7nVuPg7.js → StatusDot-Jw676Z_6.js} +1 -1
- package/dist/Stepper/index.d.ts +1 -1
- package/dist/Stepper/index.js +1 -1
- package/dist/{Stepper-Af_rH8C4.js → Stepper-67SsxUne.js} +1 -1
- package/dist/Switch/index.d.ts +1 -1
- package/dist/Switch/index.js +1 -1
- package/dist/{Switch-BYsb1gKn.js → Switch-C6qaebkX.js} +10 -10
- package/dist/TabList/index.d.ts +1 -1
- package/dist/TabList/index.js +1 -1
- package/dist/{TabList-Cgw2IuL-.js → TabList-TbJ6y1gN.js} +3 -3
- package/dist/Table/index.d.ts +1 -1
- package/dist/Table/index.js +1 -1
- package/dist/{Table-DzE-4_og.js → Table-CbMxkm2v.js} +14 -14
- package/dist/Text/index.js +1 -1
- package/dist/{Text-kwsIut3C.js → Text-bvai__ae.js} +1 -1
- package/dist/TextArea/index.d.ts +1 -1
- package/dist/TextArea/index.js +1 -1
- package/dist/{TextArea-DrYMTaZm.js → TextArea-D6EtmxTk.js} +4 -4
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/TextInput/index.js +1 -1
- package/dist/{TextInput-B-1cuwcB.js → TextInput-AngvgtdT.js} +4 -4
- package/dist/Thumbnail/index.js +1 -1
- package/dist/{Thumbnail-DeMaRkDU.js → Thumbnail-DExkxw8a.js} +3 -3
- package/dist/{TimeField-C1Nv-fz3.js → TimeField-BNGg25yA.js} +9 -4
- package/dist/TimeInput/index.d.ts +1 -1
- package/dist/TimeInput/index.js +1 -1
- package/dist/{TimeInput-Dvh6qqHI.js → TimeInput-D8lwgHOR.js} +2 -2
- package/dist/Timer/index.d.ts +1 -1
- package/dist/Timer/index.js +1 -1
- package/dist/{Timer-B-9sSJWK.js → Timer-CO-JNJTI.js} +1 -1
- package/dist/Timestamp/index.d.ts +1 -1
- package/dist/Timestamp/index.js +1 -1
- package/dist/{Timestamp-wFkl39dn.js → Timestamp-CeSb1A8c.js} +3 -3
- package/dist/Toast/index.js +1 -1
- package/dist/{Toast-CO6Z1r1s.js → Toast-B2Fq-JYA.js} +4 -107
- package/dist/ToggleButton/index.d.ts +1 -1
- package/dist/ToggleButton/index.js +1 -1
- package/dist/{ToggleButton-DPpjDYxP.js → ToggleButton-Bn8yLHbh.js} +3 -3
- package/dist/Token/index.js +1 -1
- package/dist/{Token-DZkUAIYA.js → Token-Dpxh42Mw.js} +1 -1
- package/dist/Tokenizer/index.js +1 -1
- package/dist/{Tokenizer-CX7D4klL.js → Tokenizer-B3EnI98V.js} +12 -12
- 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-DyGaJUbl.js → Tooltip-BdG9g6c6.js} +1 -1
- package/dist/TopNav/index.d.ts +1 -1
- package/dist/TopNav/index.js +1 -1
- package/dist/{TopNav-D8Hc_kQ-.js → TopNav-D7mzM7pu.js} +5 -5
- package/dist/TreeList/index.js +1 -1
- package/dist/{TreeList-lNyuRBOk.js → TreeList-BmeXFFqr.js} +4 -4
- package/dist/Typeahead/index.js +2 -2
- package/dist/{Typeahead-BiosTaFo.js → Typeahead-kLp9UG-Q.js} +5 -5
- package/dist/{accessibleName-f5xApbXG.js → accessibleName-Zr1_WoBg.js} +1 -1
- package/dist/{animator-ozeBZ_zC.js → animator-Bptiubcx.js} +1 -1
- package/dist/{boxHold-YML2o6iP.js → boxHold-Bh1fTcXx.js} +5 -5
- package/dist/{browserClickWait-DIj9tkLa.js → browserClickWait-CiUtuWNK.js} +2 -2
- package/dist/{clickGuard-CxqcfBCJ.js → clickGuard-Bd-jBj_G.js} +2 -2
- package/dist/code-block-DCVrTLMZ.js +19 -0
- package/dist/composables/index.d.ts +1 -1
- package/dist/composables/index.js +10 -10
- package/dist/{composables-CPDafrux.js → composables-B6ebqwHY.js} +7 -68
- package/dist/{context-C1MPE6J5.js → context-Dweha8vW.js} +1 -1
- package/dist/decay-TluwbMlP.js +64 -0
- package/dist/{sharedRealm-DBtNH73I.js → flatTree-BB4yPMNL.js} +1 -57
- package/dist/{geometry-CGa3nNzZ.js → geometry-0e0f5Mjv.js} +9 -8
- package/dist/grammar-4Pn2745Q.d.ts +58 -0
- package/dist/grammar-Dz71GleT.js +144 -0
- package/dist/haptics-DIfaJavG.js +146 -0
- package/dist/{holdEntranceInput-C8B_DYYs.js → holdEntranceInput-DWqsAYll.js} +1 -1
- package/dist/{index-DYabo8TI.d.ts → index-B44fLswd.d.ts} +2 -2
- package/dist/{index-BdICULsZ.d.ts → index-BHoivOHG.d.ts} +506 -110
- package/dist/{index-CTv55aOa.d.ts → index-BRr_eg_u.d.ts} +1 -1
- package/dist/{index-DHUCHxn2.d.ts → index-BWWirRm3.d.ts} +1 -1
- package/dist/{index-B6GTqpW-.d.ts → index-BWzEt0gT.d.ts} +2 -2
- package/dist/{index-ChqMaV6N.d.ts → index-BZDl_iLU.d.ts} +61 -13
- package/dist/{index-DlsrR4Gm.d.ts → index-BZx7HHxY.d.ts} +1 -1
- package/dist/{index-BB9acgK8.d.ts → index-BgT6mH3U.d.ts} +1 -1
- package/dist/{index-C9uW39Mj.d.ts → index-Cm36VS1A.d.ts} +1 -1
- package/dist/{index-DhrnMYVh.d.ts → index-D1C2Nt3F.d.ts} +2 -2
- package/dist/{index-BU1HdDER.d.ts → index-D8VViJw0.d.ts} +3 -1
- package/dist/{index-BVx-HFp8.d.ts → index-D9t_l8pJ.d.ts} +1 -1
- package/dist/{index-jz9GfvS0.d.ts → index-DEJlE6_N.d.ts} +2 -2
- package/dist/{index-DofC9Rll.d.ts → index-Dk50Zh3F.d.ts} +2 -2
- package/dist/{index-CpkQlo1t.d.ts → index-E4L3DiiH.d.ts} +1 -1
- package/dist/{index-utZGF4GR.d.ts → index-NOXYEdOI.d.ts} +1 -1
- package/dist/{index-BA8exXNP.d.ts → index-X4S7_dmq.d.ts} +1 -1
- package/dist/{index-tdOyqA_U.d.ts → index-a6o69uPN.d.ts} +2 -2
- package/dist/index.d.ts +21 -21
- package/dist/index.js +108 -106
- package/dist/{inputHold-BJtjc9iI.js → inputHold-CvjeOOWT.js} +4 -4
- package/dist/{inputHoldState-BYi5FKZl.js → inputHoldState-Cg1r8Ib7.js} +2 -2
- package/dist/{inputStream-HXw2lZ-3.js → inputStream-DkMWPYac.js} +1 -1
- package/dist/{landing-BW6qLvC8.js → landing-CrVewjeb.js} +1 -1
- package/dist/{layerDepth-SGFJ5L6X.js → layerDepth-DRfWATFr.js} +1 -1
- package/dist/{lazyBottomSheet-Bg5E8lr3.js → lazyBottomSheet-DlHcPsAT.js} +1 -1
- package/dist/{loadCatalog-BODWYaNy.d.ts → loadCatalog-C_Cy_8WN.d.ts} +2 -0
- package/dist/{loadCatalog-DMOOMWtw.js → loadCatalog-VlWGFIMU.js} +6 -17
- package/dist/locale/index.d.ts +2 -2
- package/dist/locale/index.js +3 -2
- package/dist/{locale-C8X7gJlc.js → locale-U0KLmREA.js} +1 -1
- package/dist/{presentation-twEOzzJq.js → presentation-Cl58tYA6.js} +2 -1
- package/dist/{pressGesture-B3Efxs_z.js → pressGesture-CfBgXWRM.js} +13 -0
- package/dist/pressSlot-B6TvGkSO.js +222 -0
- package/dist/{publicParser-C8RBKNLA.js → publicParser-Dbu2LRTf.js} +2 -2
- package/dist/reducedMotion-D8-U7XFT.js +121 -0
- package/dist/{reportChange-DwOfucSf.js → reportChange-CUo2YNPB.js} +2 -2
- package/dist/{resizableChannel-BnwrR5tr.js → resizableChannel-CaaqGvXj.js} +3 -3
- package/dist/scrollView-DcPpdCrj.js +128 -0
- package/dist/{selectionLock-BrUpRS0E.js → selectionLock-BM8XEZQD.js} +2 -1
- package/dist/sharedRealm-BYHklCVM.js +57 -0
- package/dist/{stillPointerGate-BvCX7ddI.js → stillPointerGate-BU1CKW7m.js} +1 -1
- package/dist/{tooltipFocusRules-CxIlSnHw.js → tooltipFocusRules-GGASOH_U.js} +2 -2
- package/dist/{tooltipTriggerRules-CHNpQ6RL.js → tooltipTriggerRules-DIaGdkD_.js} +1 -1
- package/dist/{touchHold-CjNjGH7O.js → touchHold-CciGr8hU.js} +1 -1
- package/dist/{useActionGroupTracking-BTjuGF9J.js → useActionGroupTracking-DjIdPbfL.js} +4 -3
- package/dist/{useAnimatedLayout-CRAuCwTZ.js → useAnimatedLayout-Dq-cttfe.js} +1 -1
- package/dist/{useChatStreamScroll-DcNKcNTj.js → useChatStreamScroll-DEp17Yq9.js} +1 -1
- package/dist/{useDismiss-6SGAlkB_.js → useDismiss-CegXF2Zo.js} +1 -1
- package/dist/useGestureRecognizer-DDd-6Km-.js +106 -0
- package/dist/{useInputStatusIcon-Bl2JFlc3.js → useInputStatusIcon-m6l4qBmA.js} +1 -1
- package/dist/{useMenuEntranceHold-C-kHicUN.js → useMenuEntranceHold-C4LOzKIS.js} +1 -1
- package/dist/{useMenuPress-CF1GHP_7.js → useMenuPress-BDPqPten.js} +4 -4
- package/dist/usePressFeedback-D2mWzgoJ.js +380 -0
- package/dist/{useResizable-I0APFcMz.js → useResizable-Bwv-j_9N.js} +2 -2
- package/dist/{useTooltip-owvVSn_m.js → useTooltip-DCp4sTM1.js} +4 -4
- package/dist/{useTouchHitArea-BpEJXuu-.js → useTouchHitArea-DL9D10Rq.js} +2 -2
- package/dist/{useTouchTriggerInternal-5ExaYYSy.js → useTouchTriggerInternal-C_mowlpv.js} +1 -1
- package/dist/{useTruncationTooltip-DHI6q_EV.js → useTruncationTooltip-Du80jGdE.js} +3 -3
- package/dist/{useTypeaheadMenuConfig-COiZ4isy.js → useTypeaheadMenuConfig-B14t0HGE.js} +1 -1
- package/package.json +37 -1
- package/reset.css +14 -0
- package/styles/code.css +85 -8
- package/styles/date-input.css +69 -0
- package/styles/markdown.css +6 -5
- package/styles/progress-bar.css +25 -26
- package/dist/PickerWheel-DNX3yrUd.js +0 -82
- package/dist/index-C9ZssPUV.d.ts +0 -380
- package/dist/pressFeedback--_INTed0.js +0 -470
- package/dist/usePressFeedback-B_NavJu0.js +0 -49
package/dist/locale/index.js
CHANGED
|
@@ -16,6 +16,7 @@ import { t as infoTipMessages } from "../info-tip-BV42YsA4.js";
|
|
|
16
16
|
import { t as fieldMessages } from "../field-BaUBjqf5.js";
|
|
17
17
|
import { t as checkboxListMessages } from "../checkbox-list-uI6q4y3V.js";
|
|
18
18
|
import { t as citationMessages } from "../citation-h6fyz-JH.js";
|
|
19
|
+
import { t as codeBlockMessages } from "../code-block-DCVrTLMZ.js";
|
|
19
20
|
import { t as commandPaletteMessages } from "../command-palette-g8Mnclgo.js";
|
|
20
21
|
import { t as inputMessages } from "../input-DUSvqqG_.js";
|
|
21
22
|
import { t as selectorMessages } from "../selector-BmGLjm94.js";
|
|
@@ -23,7 +24,7 @@ import { t as popoverMessages } from "../popover-DxCyd_Ua.js";
|
|
|
23
24
|
import { t as contextMenuMessages } from "../context-menu-9i6CObx3.js";
|
|
24
25
|
import { t as dateInputMessages } from "../date-input-CRdc2H3c.js";
|
|
25
26
|
import { n as alertDialogMessages, t as tokenizerMessages } from "../tokenizer-C1y-55Ft.js";
|
|
26
|
-
import { _ as
|
|
27
|
+
import { _ as buttonMessages, a as transferListMessages, c as richTextEditorMessages, d as listInputMessages, f as emojiPickerMessages, g as commentComposerMessages, i as useAstryxMessages, l as powerSearchMessages, o as transferListSelectorMessages, p as commentsMessages, s as tableMessages, t as loadAstryxCatalog, u as powerSearchSheetMessages, v as breadcrumbsMessages } from "../loadCatalog-VlWGFIMU.js";
|
|
27
28
|
import { t as dateRangeInputMessages } from "../date-range-input-WnkVv8HN.js";
|
|
28
29
|
import { n as dateTimeInputMessages, t as timeInputMessages } from "../time-input-CKOsh84E.js";
|
|
29
30
|
import { t as dialogMessages } from "../dialog-CNjGcdd1.js";
|
|
@@ -47,5 +48,5 @@ import { t as toastMessages } from "../toast-BvAnX6Vc.js";
|
|
|
47
48
|
import { t as tokenMessages } from "../token-DcbdjdZ2.js";
|
|
48
49
|
import { t as treeListMessages } from "../tree-list-NZ1EZhtd.js";
|
|
49
50
|
import { t as typeaheadMessages } from "../typeahead-BgfLP7vR.js";
|
|
50
|
-
import { n as useLocale, r as useCollator, t as useTranslator } from "../locale-
|
|
51
|
+
import { n as useLocale, r as useCollator, t as useTranslator } from "../locale-U0KLmREA.js";
|
|
51
52
|
export { alertDialogMessages, astryxLocaleKey, astryxMessagesKey, avatarGroupMessages, bannerMessages, breadcrumbsMessages, buttonMessages, calendarMessages, carouselMessages, chatMessages, checkboxListMessages, citationMessages, codeBlockMessages, commandPaletteMessages, commentComposerMessages, commentsMessages, contextMenuMessages, dateInputMessages, dateRangeInputMessages, dateTimeInputMessages, dialogMessages, dropdownMenuMessages, emojiPickerMessages, fieldMessages, fileInputMessages, formatCalendarMonth, infoTipMessages, inputMessages, kbdMessages, keyboardHintMessages, layoutMessages, lightboxMessages, listInputMessages, loadAstryxCatalog, markdownMessages, metadataListMessages, moreMenuMessages, multiSelectorMessages, navMessages, normalizeLocale, numberInputMessages, outlineMessages, paginationMessages, popoverMessages, powerSearchMessages, powerSearchSheetMessages, provideAstryxLocale, richTextEditorMessages, selectorMessages, sliderMessages, spinnerMessages, stepperMessages, switchMessages, tabListMessages, tableMessages, textAreaMessages, textInputMessages, thumbnailMessages, timeInputMessages, timestampMessages, toastMessages, tokenMessages, tokenizerMessages, transferListMessages, transferListSelectorMessages, treeListMessages, typeaheadMessages, useAstryxLocale, useAstryxMessages, useCollator, useComponentMessages, useLocale, useTranslator, weekdayNames };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as useAstryxLocale } from "./context-B8IEFCDR.js";
|
|
2
2
|
import { r as useCalendarSystem } from "./calendar-C7py_wtb.js";
|
|
3
|
-
import { i as useAstryxMessages, n as upstreamMessageMap } from "./loadCatalog-
|
|
3
|
+
import { i as useAstryxMessages, n as upstreamMessageMap } from "./loadCatalog-VlWGFIMU.js";
|
|
4
4
|
import { computed, toValue } from "vue";
|
|
5
5
|
//#region src/locale/useCollator.ts
|
|
6
6
|
/**
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { r as parentAcrossShadow, s as isElement } from "./flatTree-BB4yPMNL.js";
|
|
2
|
+
import { n as sharedKey, t as realmValue } from "./sharedRealm-BYHklCVM.js";
|
|
2
3
|
//#region src/motion/presentation.ts
|
|
3
4
|
/**
|
|
4
5
|
* @file presentation.ts
|
|
@@ -87,9 +87,22 @@ function pressGestureStep(gesture, event) {
|
|
|
87
87
|
timer: "onset"
|
|
88
88
|
};
|
|
89
89
|
}
|
|
90
|
+
if (event.kind === "buttonDown") return {
|
|
91
|
+
gesture: {
|
|
92
|
+
originX: 0,
|
|
93
|
+
originY: 0,
|
|
94
|
+
phase: "buttonHeld"
|
|
95
|
+
},
|
|
96
|
+
paint: "on",
|
|
97
|
+
timer: null
|
|
98
|
+
};
|
|
90
99
|
switch (gesture.phase) {
|
|
91
100
|
case "armed": return stepArmed(gesture, event);
|
|
92
101
|
case "pressed": return stepPressed(gesture, event);
|
|
102
|
+
case "buttonHeld":
|
|
103
|
+
if (event.kind === "up") return to(gesture, "fading", "fading", "fade");
|
|
104
|
+
if (event.kind === "cancel") return to(gesture, "dead", "none", null);
|
|
105
|
+
return stay(gesture, "on");
|
|
93
106
|
case "flash": return event.kind === "flashEnd" ? to(gesture, "fading", "fading", "fade") : stay(gesture, "on");
|
|
94
107
|
case "fading": return event.kind === "fadeEnd" ? stay(IDLE, "none") : stay(gesture, "fading");
|
|
95
108
|
case "dead": return event.kind === "up" ? stay(IDLE, "none") : stay(gesture, "none");
|
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
import { a as idlePressGesture, n as PRESS_ONSET_MS, o as pressGestureStep, t as PRESS_FLASH_MS } from "./pressGesture-CfBgXWRM.js";
|
|
2
|
+
import { n as hasInteractiveAncestor } from "./useClickableContainer-Dtjg-nkm.js";
|
|
3
|
+
//#region src/composables/internal/pressSurface.ts
|
|
4
|
+
/**
|
|
5
|
+
* 触屏按压模型里「这一下按的是谁」的判断:从手指落点往上找最里层的可按元素。
|
|
6
|
+
*
|
|
7
|
+
* 可按元素分两种:
|
|
8
|
+
* - 普通可按元素(按钮、开关行……):手指落在它里面任何地方,都是按它。
|
|
9
|
+
* - 可按容器(列表行、TreeList 行、Token、可点卡片):额外带 `data-astryx-press-container`。
|
|
10
|
+
* 手指落在它里面的其他控件上(行尾的按钮、Token 的删除按钮、卡片里的输入框)时,
|
|
11
|
+
* 这一下不会触发容器自己的动作,所以容器不亮。
|
|
12
|
+
* 容器自己的动作元素(行里那个看不见的链接或按钮、Token 的主按钮)带 `data-astryx-press-action`,
|
|
13
|
+
* 落在它上面就是按容器。
|
|
14
|
+
*/
|
|
15
|
+
/** 可按元素的标记。控制器用 `closest()` 找它。 */
|
|
16
|
+
const PRESSABLE_ATTRIBUTE = "data-astryx-pressable";
|
|
17
|
+
/** 可按容器的标记:里面别的控件被按下时,容器不亮。 */
|
|
18
|
+
const PRESS_CONTAINER_ATTRIBUTE = "data-astryx-press-container";
|
|
19
|
+
/** 可按容器自己的动作元素:按它就是按容器。 */
|
|
20
|
+
const PRESS_ACTION_ATTRIBUTE = "data-astryx-press-action";
|
|
21
|
+
/** 按钮组、提示对话框跟踪滑动的动作带这个标记,值是组跟踪的指针类型,比如 `touch pen`。 */
|
|
22
|
+
const PRESS_GROUP_ITEM_ATTRIBUTE = "data-astryx-press-group-item";
|
|
23
|
+
/** 这个元素(或它外面)是不是由组来画 `pointerType` 这种指针的按压。 */
|
|
24
|
+
function isTrackedByGroup(element, pointerType) {
|
|
25
|
+
const marked = element.closest(`[${PRESS_GROUP_ITEM_ATTRIBUTE}]`);
|
|
26
|
+
return marked != null && (marked.getAttribute("data-astryx-press-group-item") ?? "").split(" ").includes(pointerType);
|
|
27
|
+
}
|
|
28
|
+
/** 不可用的元素怎么按都不画。 */
|
|
29
|
+
const DISABLED = ":disabled, [aria-disabled=\"true\"]";
|
|
30
|
+
/**
|
|
31
|
+
* 手指按在容器里的另一个控件上:那个控件接走这次按压,容器的动作不会执行。
|
|
32
|
+
* 落在容器自己的动作元素里不算。
|
|
33
|
+
*/
|
|
34
|
+
function landsOnNestedControl(target, container) {
|
|
35
|
+
const action = target.closest(`[${PRESS_ACTION_ATTRIBUTE}]`);
|
|
36
|
+
if (action != null && container.contains(action)) return false;
|
|
37
|
+
return hasInteractiveAncestor(target, container);
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* 手指下最里层的可按元素。里层优先:可按的行里有个按钮,按钮接走这次按压。
|
|
41
|
+
* 不可用的元素也会接走,但什么都不画,所以按在禁用控件上不会把外面那一行点亮。
|
|
42
|
+
* 可按容器里落在别的控件上时,同样什么都不画。
|
|
43
|
+
*/
|
|
44
|
+
function pressSurfaceAt(target) {
|
|
45
|
+
if (!(target instanceof Element)) return null;
|
|
46
|
+
const found = target.closest(`[${PRESSABLE_ATTRIBUTE}]`);
|
|
47
|
+
if (!(found instanceof HTMLElement) || found.matches(DISABLED)) return null;
|
|
48
|
+
if (found.hasAttribute("data-astryx-press-container") && target !== found && landsOnNestedControl(target, found)) return null;
|
|
49
|
+
return found;
|
|
50
|
+
}
|
|
51
|
+
//#endregion
|
|
52
|
+
//#region src/composables/internal/pressFade.ts
|
|
53
|
+
/**
|
|
54
|
+
* 抬手淡出的时长,以及「淡出什么时候真的结束」。
|
|
55
|
+
* 时长读元素上主题的 `--astryx-duration-exit`;结束则等释放动画自己播完。
|
|
56
|
+
*/
|
|
57
|
+
/** 读出一个 CSS 时间值,单位毫秒。不是时间就返回 null。 */
|
|
58
|
+
function parseTimeMs(value) {
|
|
59
|
+
const match = /^\s*(-?(?:\d+(?:\.\d+)?|\.\d+))(ms|s)\s*$/.exec(value);
|
|
60
|
+
if (match == null) return null;
|
|
61
|
+
const amount = Number.parseFloat(match[1]);
|
|
62
|
+
return match[2] === "s" ? amount * 1e3 : amount;
|
|
63
|
+
}
|
|
64
|
+
function prefersReducedMotion() {
|
|
65
|
+
return typeof window !== "undefined" && typeof window.matchMedia === "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* 自定义属性读出来是原文,`calc(100ms + 75ms)` 这类写法不是纯时间。
|
|
69
|
+
* 让一个不显示的探针元素把这段原文当作 transition-duration,由浏览器算出实际长度,
|
|
70
|
+
* 和释放动画(用同一个 token 当时长)算出的结果一致。
|
|
71
|
+
*/
|
|
72
|
+
function resolveTimeMs(element, raw) {
|
|
73
|
+
const plain = parseTimeMs(raw);
|
|
74
|
+
if (plain != null || raw.trim() === "") return plain;
|
|
75
|
+
const probe = element.ownerDocument.createElement("span");
|
|
76
|
+
probe.style.setProperty("display", "none", "important");
|
|
77
|
+
probe.style.setProperty("transition-duration", raw, "important");
|
|
78
|
+
if (probe.style.getPropertyValue("transition-duration") === "") return null;
|
|
79
|
+
element.appendChild(probe);
|
|
80
|
+
try {
|
|
81
|
+
return parseTimeMs(getComputedStyle(probe).transitionDuration.split(",")[0] ?? "");
|
|
82
|
+
} finally {
|
|
83
|
+
probe.remove();
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* 抬手后淡出的时长:元素上主题的 `--astryx-duration-exit`,抬手时读一次,
|
|
88
|
+
* `calc()` 之类的写法按浏览器算出的长度算。
|
|
89
|
+
* 读不出时间(没主题、或不是时间值)就用默认的 PRESS_FADE_MS。
|
|
90
|
+
* 减少动态效果时不超过 {@link PRESS_FADE_REDUCED_MAX_MS}。
|
|
91
|
+
*/
|
|
92
|
+
function pressFadeMs(element) {
|
|
93
|
+
if (typeof getComputedStyle !== "function") return 175;
|
|
94
|
+
const ms = resolveTimeMs(element, getComputedStyle(element).getPropertyValue("--astryx-duration-exit"));
|
|
95
|
+
const exit = ms != null && ms >= 0 ? ms : 175;
|
|
96
|
+
return prefersReducedMotion() ? Math.min(exit, 200) : exit;
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* 这个元素的按压释放里还在播的动画:有限时长、没播完的 CSS 动画。
|
|
100
|
+
* 动画可以在元素本身、它的 `::before` 或 `::after`,也可以在它里面的某个部位上
|
|
101
|
+
* (最近的可按祖先得是这个元素)。嵌套的可按元素放自己那一次释放,不拖长这一次。
|
|
102
|
+
* 没有 Web Animations 的环境返回空数组。
|
|
103
|
+
*/
|
|
104
|
+
function releaseAnimationsOf(element) {
|
|
105
|
+
if (typeof element.getAnimations !== "function") return [];
|
|
106
|
+
return element.getAnimations({ subtree: true }).filter((animation) => {
|
|
107
|
+
const effect = animation.effect;
|
|
108
|
+
const target = effect?.target ?? null;
|
|
109
|
+
if (effect == null || target == null || !("animationName" in animation) || target !== element && target.closest(`[data-astryx-pressable]`) !== element) return false;
|
|
110
|
+
if (!Number.isFinite(Number(effect.getComputedTiming().endTime))) return false;
|
|
111
|
+
return animation.playState !== "finished";
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* 释放结束时调 `end`。主线程忙时释放动画的第一帧会晚到,从抬手起算的钟会把淡出剪在半路。
|
|
116
|
+
* 所以钟到点后,若还有释放动画在播或在等第一帧,就等它们播完或被取消(元素卸载、换了样式)。
|
|
117
|
+
* 没有释放动画(瞬时释放、没有动画的表面、没有 Web Animations 的环境)就在钟到点时结束。
|
|
118
|
+
* 返回取消函数。
|
|
119
|
+
*/
|
|
120
|
+
function endAfterRelease(element, clockMs, end) {
|
|
121
|
+
let waiting = true;
|
|
122
|
+
const timer = setTimeout(() => {
|
|
123
|
+
const running = releaseAnimationsOf(element);
|
|
124
|
+
if (running.length === 0) {
|
|
125
|
+
end();
|
|
126
|
+
return;
|
|
127
|
+
}
|
|
128
|
+
Promise.allSettled(running.map(async (animation) => animation.finished)).then(() => {
|
|
129
|
+
if (waiting) end();
|
|
130
|
+
});
|
|
131
|
+
}, clockMs);
|
|
132
|
+
return () => {
|
|
133
|
+
waiting = false;
|
|
134
|
+
clearTimeout(timer);
|
|
135
|
+
};
|
|
136
|
+
}
|
|
137
|
+
//#endregion
|
|
138
|
+
//#region src/composables/internal/pressSlot.ts
|
|
139
|
+
/**
|
|
140
|
+
* 按压控制器的跟踪槽位和「把状态机的答案画到元素上」。
|
|
141
|
+
* 控制器(pressFeedback.ts)和鼠标键、空格键的按压(pressButton.ts)共用这里。
|
|
142
|
+
*/
|
|
143
|
+
/** 按压成立且手指还在时为 `on`,抬手淡出时为 `fading`,其余时候不存在。 */
|
|
144
|
+
const PRESSED_ATTRIBUTE = "data-astryx-press";
|
|
145
|
+
const finger = { live: null };
|
|
146
|
+
const button = { live: null };
|
|
147
|
+
const TIMER_MS = {
|
|
148
|
+
fade: 175,
|
|
149
|
+
flash: PRESS_FLASH_MS,
|
|
150
|
+
onset: PRESS_ONSET_MS
|
|
151
|
+
};
|
|
152
|
+
const TIMER_EVENT = {
|
|
153
|
+
fade: "fadeEnd",
|
|
154
|
+
flash: "flashEnd",
|
|
155
|
+
onset: "onset"
|
|
156
|
+
};
|
|
157
|
+
function paintElement(element, paint) {
|
|
158
|
+
if (paint === "none") element.removeAttribute(PRESSED_ATTRIBUTE);
|
|
159
|
+
else if (element.getAttribute("data-astryx-press") !== paint) element.setAttribute(PRESSED_ATTRIBUTE, paint);
|
|
160
|
+
}
|
|
161
|
+
function clearTimer(slot) {
|
|
162
|
+
if (slot.live?.timer != null) {
|
|
163
|
+
slot.live.timer();
|
|
164
|
+
slot.live.timer = null;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
/**
|
|
168
|
+
* 把一个事件交给状态机,再让 DOM 照答案画。
|
|
169
|
+
*
|
|
170
|
+
* 计时器规则:阶段没变、又没要新计时器的一步是路过,原来那个计时器必须留着。
|
|
171
|
+
* 如果每步都先清掉,会有三种手势最后停在「没人碰却亮着」:
|
|
172
|
+
* 等待期内手指在容差内抖了一下(真手指都会抖),onset 被清掉,按压永远不亮;
|
|
173
|
+
* 轻点的 100ms 闪亮期内来了 pointercancel 或滚动,flashEnd 被清掉,一直亮着;
|
|
174
|
+
* 淡出期内同样,`fading` 留在元素上。
|
|
175
|
+
*/
|
|
176
|
+
function apply(slot, step, sinceEventMs = 0) {
|
|
177
|
+
const live = slot.live;
|
|
178
|
+
if (live == null) return;
|
|
179
|
+
const phaseMoved = step.gesture.phase !== live.gesture.phase;
|
|
180
|
+
if (step.timer != null || phaseMoved) clearTimer(slot);
|
|
181
|
+
live.gesture = step.gesture;
|
|
182
|
+
paintElement(live.element, step.paint);
|
|
183
|
+
if (step.gesture.phase === "idle") {
|
|
184
|
+
slot.live = null;
|
|
185
|
+
return;
|
|
186
|
+
}
|
|
187
|
+
if (step.timer != null) {
|
|
188
|
+
const kind = step.timer;
|
|
189
|
+
const fire = () => {
|
|
190
|
+
if (slot.live != null) slot.live.timer = null;
|
|
191
|
+
apply(slot, pressGestureStep(slot.live?.gesture ?? idlePressGesture(), { kind: TIMER_EVENT[kind] }));
|
|
192
|
+
};
|
|
193
|
+
if (kind === "fade") live.timer = endAfterRelease(live.element, pressFadeMs(live.element), fire);
|
|
194
|
+
else {
|
|
195
|
+
const delay = kind === "onset" ? Math.max(0, TIMER_MS.onset - sinceEventMs) : TIMER_MS[kind];
|
|
196
|
+
const timer = setTimeout(fire, delay);
|
|
197
|
+
live.timer = () => clearTimeout(timer);
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
/** 手势一死就让出槽位。变成滚动的手势以 pointercancel 结束,没有 pointerup。 */
|
|
202
|
+
function releaseIfDead(slot) {
|
|
203
|
+
if (slot.live?.gesture.phase === "dead") {
|
|
204
|
+
clearTimer(slot);
|
|
205
|
+
slot.live = null;
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
/** 擦掉颜色、忘掉手势,不经过状态机。 */
|
|
209
|
+
function finish(slot) {
|
|
210
|
+
const live = slot.live;
|
|
211
|
+
if (live == null) return;
|
|
212
|
+
clearTimer(slot);
|
|
213
|
+
live.element.removeAttribute(PRESSED_ATTRIBUTE);
|
|
214
|
+
slot.live = null;
|
|
215
|
+
slot.onFinish?.();
|
|
216
|
+
}
|
|
217
|
+
/** 新的一次按压拥有这个元素的画面:另一个槽位在它上面的手势结束。 */
|
|
218
|
+
function takeOver(other, element) {
|
|
219
|
+
if (other.live?.element === element) finish(other);
|
|
220
|
+
}
|
|
221
|
+
//#endregion
|
|
222
|
+
export { finish as a, pressFadeMs as c, PRESS_CONTAINER_ATTRIBUTE as d, PRESS_GROUP_ITEM_ATTRIBUTE as f, finger as i, PRESSABLE_ATTRIBUTE as l, pressSurfaceAt as m, apply as n, releaseIfDead as o, isTrackedByGroup as p, button as r, takeOver as s, PRESSED_ATTRIBUTE as t, PRESS_ACTION_ATTRIBUTE as u };
|
|
@@ -308,7 +308,7 @@ function comparableUrl(normalized) {
|
|
|
308
308
|
return normalized.toLowerCase().replace(/^([a-z][a-z\d+.-]*:) +/, "$1");
|
|
309
309
|
}
|
|
310
310
|
function isBlockedNavigation(url) {
|
|
311
|
-
return url.startsWith("javascript:") || url.startsWith("vbscript:") || url.startsWith("data:
|
|
311
|
+
return url.startsWith("javascript:") || url.startsWith("vbscript:") || url.startsWith("data:");
|
|
312
312
|
}
|
|
313
313
|
/**
|
|
314
314
|
* The parser's own rule: an unsafe destination is read as text, never as a
|
|
@@ -319,7 +319,7 @@ function isSafeMarkdownParserUrl(url) {
|
|
|
319
319
|
}
|
|
320
320
|
/**
|
|
321
321
|
* Navigation target with control characters removed.
|
|
322
|
-
* `javascript:`, `vbscript:`, and
|
|
322
|
+
* `javascript:`, `vbscript:`, and every `data:` URL are dropped.
|
|
323
323
|
*/
|
|
324
324
|
function sanitizeMarkdownLinkUrl(url) {
|
|
325
325
|
const normalized = normalizeUrl(url);
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { a as registerReducedMotionCrossFade, i as reducedMotionCrossFade } from "./linearEasing-VHwy6xl_.js";
|
|
2
|
+
import { n as defaultPrefersReducedMotion, t as defaultIsCoarsePointer } from "./cssValues-Cr6PhYTx.js";
|
|
3
|
+
import { t as quietFinished } from "./quietFinished-CKZXgsPM.js";
|
|
4
|
+
import { r as themeReducesMotion } from "./reducedMotionMark-CYSyfURo.js";
|
|
5
|
+
import { t as resolveMotion } from "./resolveMotion-DftkGFw6.js";
|
|
6
|
+
//#region src/motion/reducedMotion.ts
|
|
7
|
+
/**
|
|
8
|
+
* @file reducedMotion.ts
|
|
9
|
+
* @input The Reduced Motion preference, the primary pointer, the motion tables
|
|
10
|
+
* @output reducedMotionFade (the fade the animator would play, for motion it
|
|
11
|
+
* does not drive), playReducedMotionDip, and the queries a transition spells
|
|
12
|
+
* @position The one Reduced Motion policy (design:reduced-motion) for code
|
|
13
|
+
* beside the animator: a raw Web Animations fade, a CSS transition
|
|
14
|
+
*
|
|
15
|
+
* Under Reduce Motion nothing moves, scales or springs. On a coarse primary
|
|
16
|
+
* pointer, or for a change started by a touch drag's release on any pointer
|
|
17
|
+
* (DR2), a change becomes an opacity-only cross-fade of
|
|
18
|
+
* `timing.reducedMotionCrossFadeMs` (200 ms) on `timing.curves.move`; on
|
|
19
|
+
* any other primary pointer it completes at once (DR3). No theme value or
|
|
20
|
+
* call site lengthens the fade (DR4). The animator follows the same policy on
|
|
21
|
+
* its own (animator.ts).
|
|
22
|
+
*
|
|
23
|
+
* In StyleX, a transition spells the two keys literally and takes its values
|
|
24
|
+
* from reducedMotion.stylex.ts. A constant used as a computed key compiles to
|
|
25
|
+
* a later priority layer than the literal media key, which would outrank the
|
|
26
|
+
* element's state styles, so the keys stay literal:
|
|
27
|
+
*
|
|
28
|
+
* ```
|
|
29
|
+
* transitionProperty: {
|
|
30
|
+
* default: 'opacity, translate',
|
|
31
|
+
* '@media (prefers-reduced-motion: reduce) and (pointer: coarse)': 'opacity',
|
|
32
|
+
* '@media (prefers-reduced-motion: reduce) and (not (pointer: coarse))': 'none',
|
|
33
|
+
* },
|
|
34
|
+
* transitionDuration: {
|
|
35
|
+
* default: '300ms',
|
|
36
|
+
* '@media (prefers-reduced-motion: reduce) and (pointer: coarse)':
|
|
37
|
+
* reducedMotionFadeConsts.duration,
|
|
38
|
+
* '@media (prefers-reduced-motion: reduce) and (not (pointer: coarse))': '0s',
|
|
39
|
+
* },
|
|
40
|
+
* ```
|
|
41
|
+
*
|
|
42
|
+
* reducedMotion.test.ts requires every such key in core to equal one of
|
|
43
|
+
* `reducedMotionKeys`, exactly.
|
|
44
|
+
*/
|
|
45
|
+
/**
|
|
46
|
+
* The Reduced Motion fade for a change to `element` now, for motion the
|
|
47
|
+
* animator does not drive (two titles cross-fading with Web Animations):
|
|
48
|
+
* null when motion is not reduced (play the normal motion), else an
|
|
49
|
+
* opacity-only fade of 200 ms on a coarse pointer or for a touch release, or
|
|
50
|
+
* duration 0 (at once) on any other pointer, on Core Animation's easeInOut;
|
|
51
|
+
* the length is fixed.
|
|
52
|
+
*/
|
|
53
|
+
function reducedMotionFade(element, options = {}) {
|
|
54
|
+
if (!defaultPrefersReducedMotion() && !themeReducesMotion(element)) return null;
|
|
55
|
+
if (!(options.touchRelease === true || defaultIsCoarsePointer())) return {
|
|
56
|
+
duration: 0,
|
|
57
|
+
easing: "linear"
|
|
58
|
+
};
|
|
59
|
+
if (element != null) registerReducedMotionCrossFade();
|
|
60
|
+
const curve = element != null ? resolveMotion(element, reducedMotionCrossFade.curve) : reducedMotionCrossFade.curve;
|
|
61
|
+
return {
|
|
62
|
+
duration: reducedMotionCrossFade.durationMs,
|
|
63
|
+
easing: `cubic-bezier(${curve.join(", ")})`
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Plays `fade` on `element` as a dip, and runs `land` at its middle: the
|
|
68
|
+
* fade-out, the change, then the fade-in. The fade-out holds at 0 until `land`
|
|
69
|
+
* has run, and the fade-in starts only after it. So the change never shows at
|
|
70
|
+
* full opacity, however late the main thread runs. A timer at the middle can
|
|
71
|
+
* fire after the fade-in has begun.
|
|
72
|
+
*
|
|
73
|
+
* `land` must apply the change before it returns: the fade-in starts right
|
|
74
|
+
* after it. `from` is the opacity the fade-out starts at: a leaving element
|
|
75
|
+
* fades out from where it is.
|
|
76
|
+
*
|
|
77
|
+
* @example
|
|
78
|
+
* ```
|
|
79
|
+
* const dip = playReducedMotionDip(scroller, fade, () => scroller.scrollTo({top}));
|
|
80
|
+
* // A newer change replaces it:
|
|
81
|
+
* dip.cancel();
|
|
82
|
+
* ```
|
|
83
|
+
*/
|
|
84
|
+
function playReducedMotionDip(element, fade, land, from = 1) {
|
|
85
|
+
const half = fade.duration / 2;
|
|
86
|
+
let isCancelled = false;
|
|
87
|
+
let fadeIn = null;
|
|
88
|
+
const fadeOut = element.animate([{
|
|
89
|
+
opacity: from,
|
|
90
|
+
easing: fade.easing
|
|
91
|
+
}, { opacity: 0 }], {
|
|
92
|
+
duration: half,
|
|
93
|
+
fill: "forwards"
|
|
94
|
+
});
|
|
95
|
+
fadeOut.finished.then(() => {
|
|
96
|
+
if (isCancelled) return;
|
|
97
|
+
land();
|
|
98
|
+
fadeIn = quietFinished(element.animate([{
|
|
99
|
+
opacity: 0,
|
|
100
|
+
easing: fade.easing
|
|
101
|
+
}, { opacity: 1 }], {
|
|
102
|
+
duration: half,
|
|
103
|
+
fill: "backwards"
|
|
104
|
+
}));
|
|
105
|
+
const fadeOutEnd = endTime(fadeOut, half);
|
|
106
|
+
if (fadeOutEnd != null) fadeIn.startTime = Math.max(fadeOutEnd, performance.now() - half / 2);
|
|
107
|
+
fadeOut.cancel();
|
|
108
|
+
}, () => {});
|
|
109
|
+
return { cancel() {
|
|
110
|
+
isCancelled = true;
|
|
111
|
+
fadeOut.cancel();
|
|
112
|
+
fadeIn?.cancel();
|
|
113
|
+
} };
|
|
114
|
+
}
|
|
115
|
+
/** When `animation` was due to end, on its timeline (ms), if it has started. */
|
|
116
|
+
function endTime(animation, duration) {
|
|
117
|
+
const start = animation.startTime;
|
|
118
|
+
return typeof start === "number" ? start + duration : null;
|
|
119
|
+
}
|
|
120
|
+
//#endregion
|
|
121
|
+
export { reducedMotionFade as n, playReducedMotionDip as t };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as sharedState, n as sharedKey, o as sharedWeakMap, r as sharedMap, s as sharedWeakSet } from "./sharedRealm-
|
|
1
|
+
import { a as sharedState, n as sharedKey, o as sharedWeakMap, r as sharedMap, s as sharedWeakSet } from "./sharedRealm-BYHklCVM.js";
|
|
2
2
|
import { d as toSpring } from "./roles-DWH31Bn3.js";
|
|
3
3
|
import { c as solveSpring, i as reducedMotionCrossFade, n as sampleCount, s as settlingDuration, t as linearEasing } from "./linearEasing-VHwy6xl_.js";
|
|
4
4
|
import { r as themeReducesMotion } from "./reducedMotionMark-CYSyfURo.js";
|
|
5
|
-
import { a as registerPresentedOffset, c as writePresentedResolve, n as clearPresentedResolve, t as batchPresented } from "./presentation-
|
|
5
|
+
import { a as registerPresentedOffset, c as writePresentedResolve, n as clearPresentedResolve, t as batchPresented } from "./presentation-Cl58tYA6.js";
|
|
6
6
|
import { i as readThemeTokenText, n as readThemeTiming } from "./themeTiming-BJziEh4O.js";
|
|
7
7
|
//#region src/motion/layout/glides.ts
|
|
8
8
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { o as sharedWeakMap } from "./sharedRealm-
|
|
1
|
+
import { o as sharedWeakMap } from "./sharedRealm-BYHklCVM.js";
|
|
2
2
|
import { t as resolveMotion } from "./resolveMotion-DftkGFw6.js";
|
|
3
3
|
import { o as springs } from "./springs-DjAn_oV5.js";
|
|
4
|
-
import { C as safeAnimate, D as scaleOf, E as intersects, O as visibleRect, _ as layoutMotion, a as placeOf, b as springGlide, c as areaOf, d as extentOf, f as isRtl, g as glideNextChange, h as changeStartIn, i as nextInFlow, k as glideOf, l as createAnimatedLayout, m as pxClip, n as rideNeighbour, p as previousInFlow, t as reportLayoutChange, x as beginChange, y as sampleOver } from "./reportChange-
|
|
5
|
-
import { n as landLayoutGlide } from "./landing-
|
|
4
|
+
import { C as safeAnimate, D as scaleOf, E as intersects, O as visibleRect, _ as layoutMotion, a as placeOf, b as springGlide, c as areaOf, d as extentOf, f as isRtl, g as glideNextChange, h as changeStartIn, i as nextInFlow, k as glideOf, l as createAnimatedLayout, m as pxClip, n as rideNeighbour, p as previousInFlow, t as reportLayoutChange, x as beginChange, y as sampleOver } from "./reportChange-CUo2YNPB.js";
|
|
5
|
+
import { n as landLayoutGlide } from "./landing-CrVewjeb.js";
|
|
6
6
|
//#region src/motion/layout/edgeReport.ts
|
|
7
7
|
const resizeReveals = sharedWeakMap("motion/animated-layout/resize-reveals", 1);
|
|
8
8
|
/** The inline properties a size hold sets, by axis. */
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import { l as isNode, o as isDocument, r as parentAcrossShadow, s as isElement } from "./flatTree-BB4yPMNL.js";
|
|
2
|
+
//#region src/utils/inputAge.ts
|
|
3
|
+
/**
|
|
4
|
+
* @file inputAge.ts
|
|
5
|
+
* @input An input's time stamp, and its event or the node it landed on
|
|
6
|
+
* @output clockOf, timeOn and msSinceInput: the clock of the window that
|
|
7
|
+
* stamped an input, its time on that clock, and how long ago it happened
|
|
8
|
+
* @position Internal utility. The content-touch delay (utils/pressFeedback.ts,
|
|
9
|
+
* gestures/PressTracker.ts) and the long-press hold
|
|
10
|
+
* (hooks/longPressDetector.ts) count from the touch with it.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* The clock of the window that stamped an input: an event's `view`, or the
|
|
14
|
+
* window of the node it landed on. A same-origin iframe's clock or a popup's
|
|
15
|
+
* starts later than the page's. With neither, the clock is this window's.
|
|
16
|
+
*/
|
|
17
|
+
function clockOf(source) {
|
|
18
|
+
return (isNode(source) ? (isDocument(source) ? source : source.ownerDocument)?.defaultView : source?.view)?.performance ?? (typeof performance === "undefined" ? null : performance);
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* An event's time on its window's clock. jsdom stamps events with
|
|
22
|
+
* `Date.now()`. Such a stamp keeps its age on that clock, so a frozen system
|
|
23
|
+
* time keeps a delay's length. A stamp nearer `Date.now()` than the window's
|
|
24
|
+
* clock is that kind of stamp.
|
|
25
|
+
*/
|
|
26
|
+
function timeOn(clock, timeStamp) {
|
|
27
|
+
if (timeStamp == null || !Number.isFinite(timeStamp) || timeStamp <= 0) return;
|
|
28
|
+
if (clock != null && Math.abs(Date.now() - timeStamp) < Math.abs(clock.now() - timeStamp)) return clock.now() - (Date.now() - timeStamp);
|
|
29
|
+
return timeStamp;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* How long ago the input stamped `time` happened, on the clock of the window
|
|
33
|
+
* that stamped it (`clockOf(source)`). A busy main thread runs a listener
|
|
34
|
+
* late. An input with no time, or a time ahead of now, counts as now.
|
|
35
|
+
*/
|
|
36
|
+
function msSinceInput(time, source) {
|
|
37
|
+
const clock = clockOf(source);
|
|
38
|
+
const at = timeOn(clock, time);
|
|
39
|
+
return clock == null || at == null ? 0 : Math.max(0, clock.now() - at);
|
|
40
|
+
}
|
|
41
|
+
//#endregion
|
|
42
|
+
//#region src/utils/scrollView.ts
|
|
43
|
+
/**
|
|
44
|
+
* @file scrollView.ts
|
|
45
|
+
* @input An element and its computed styles
|
|
46
|
+
* @output Exports parseTouchAction, touchActionAllowsPan, rootOverflow,
|
|
47
|
+
* SCROLLABLE_OVERFLOW and isInsideScrollView: whether a touch on the
|
|
48
|
+
* element lands inside a box the browser can scroll
|
|
49
|
+
* @position The one definition of "inside a scroll view", shared by the
|
|
50
|
+
* press feedback controller (utils/pressFeedback.ts), the gesture core's
|
|
51
|
+
* native-scroll probe (gestures/nativeScroll.ts) and Layer's outside-press
|
|
52
|
+
* watch, so Core's main entry can ask it without the gesture core
|
|
53
|
+
*/
|
|
54
|
+
/** Overflow values that let a box scroll. */
|
|
55
|
+
const SCROLLABLE_OVERFLOW = /* @__PURE__ */ new Set([
|
|
56
|
+
"auto",
|
|
57
|
+
"scroll",
|
|
58
|
+
"overlay"
|
|
59
|
+
]);
|
|
60
|
+
/** How far a box must overflow, in px, before it counts as scrolling. */
|
|
61
|
+
const OVERFLOW_TOLERANCE_PX = 1;
|
|
62
|
+
/** Which pans a `touch-action` value lets the browser perform. */
|
|
63
|
+
function parseTouchAction(value) {
|
|
64
|
+
const tokens = value.trim().split(/\s+/);
|
|
65
|
+
if (tokens.includes("auto") || tokens.includes("manipulation")) return {
|
|
66
|
+
x: true,
|
|
67
|
+
y: true
|
|
68
|
+
};
|
|
69
|
+
if (tokens.includes("none")) return {
|
|
70
|
+
x: false,
|
|
71
|
+
y: false
|
|
72
|
+
};
|
|
73
|
+
return {
|
|
74
|
+
x: tokens.some((token) => token === "pan-x" || token === "pan-left" || token === "pan-right"),
|
|
75
|
+
y: tokens.some((token) => token === "pan-y" || token === "pan-up" || token === "pan-down")
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* The viewport's overflow on an axis. It scrolls unless the root or the body
|
|
80
|
+
* clips it, as a scroll lock does with `overflow: hidden`.
|
|
81
|
+
*/
|
|
82
|
+
function rootOverflow(doc, axis) {
|
|
83
|
+
const view = doc.defaultView;
|
|
84
|
+
if (view == null) return "hidden";
|
|
85
|
+
for (const element of [doc.documentElement, doc.body]) {
|
|
86
|
+
if (element == null) continue;
|
|
87
|
+
const style = view.getComputedStyle(element);
|
|
88
|
+
const value = axis === "x" ? style.overflowX : style.overflowY;
|
|
89
|
+
if (value === "hidden" || value === "clip") return "hidden";
|
|
90
|
+
}
|
|
91
|
+
return "auto";
|
|
92
|
+
}
|
|
93
|
+
function overflows(element, axis) {
|
|
94
|
+
return axis === "y" ? element.scrollHeight - element.clientHeight > OVERFLOW_TOLERANCE_PX : element.scrollWidth - element.clientWidth > OVERFLOW_TOLERANCE_PX;
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* Whether a touch on `element` lands inside a scroll view, UIKit's question
|
|
98
|
+
* for a touch: a box above it, the page included, overflows on an axis it
|
|
99
|
+
* scrolls, and `touch-action` on the way up leaves that axis to the browser.
|
|
100
|
+
* A `position: fixed` box ends the walk, because it does not move with any
|
|
101
|
+
* scroller above it. A wheel scrolls whatever `touch-action` says, so a
|
|
102
|
+
* wheel's question passes `readsTouchAction: false`.
|
|
103
|
+
*/
|
|
104
|
+
function isInsideScrollView(element, { readsTouchAction = true } = {}) {
|
|
105
|
+
const doc = element.ownerDocument;
|
|
106
|
+
const view = doc.defaultView;
|
|
107
|
+
if (view == null) return false;
|
|
108
|
+
const root = doc.scrollingElement ?? doc.documentElement;
|
|
109
|
+
let panX = true;
|
|
110
|
+
let panY = true;
|
|
111
|
+
for (let node = element; node != null;) {
|
|
112
|
+
if (isElement(node)) {
|
|
113
|
+
const style = view.getComputedStyle(node);
|
|
114
|
+
if (readsTouchAction) {
|
|
115
|
+
const pans = parseTouchAction(style.touchAction || "auto");
|
|
116
|
+
panX &&= pans.x;
|
|
117
|
+
panY &&= pans.y;
|
|
118
|
+
}
|
|
119
|
+
if (node === root || node === doc.documentElement) break;
|
|
120
|
+
if (panY && SCROLLABLE_OVERFLOW.has(style.overflowY) && overflows(node, "y") || panX && SCROLLABLE_OVERFLOW.has(style.overflowX) && overflows(node, "x")) return true;
|
|
121
|
+
if (style.position === "fixed") return false;
|
|
122
|
+
}
|
|
123
|
+
node = parentAcrossShadow(node);
|
|
124
|
+
}
|
|
125
|
+
return panY && SCROLLABLE_OVERFLOW.has(rootOverflow(doc, "y")) && overflows(root, "y") || panX && SCROLLABLE_OVERFLOW.has(rootOverflow(doc, "x")) && overflows(root, "x");
|
|
126
|
+
}
|
|
127
|
+
//#endregion
|
|
128
|
+
export { clockOf as a, rootOverflow as i, isInsideScrollView as n, msSinceInput as o, parseTouchAction as r, SCROLLABLE_OVERFLOW as t };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { l as isNode, s as isElement, t as containsAlongFlatTree } from "./flatTree-BB4yPMNL.js";
|
|
2
|
+
import { o as sharedWeakMap } from "./sharedRealm-BYHklCVM.js";
|
|
2
3
|
import { n as isIosWebKit } from "./touchQueries-xy5IeZfe.js";
|
|
3
4
|
//#region src/utils/selectionLock.ts
|
|
4
5
|
/**
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
//#region src/utils/sharedRealm.ts
|
|
2
|
+
/**
|
|
3
|
+
* 对应原版 Astryx 的 `utils/sharedRealm`。
|
|
4
|
+
*
|
|
5
|
+
* 整个 JavaScript 运行环境里按键共享一份值:页面上同时加载了两份 core(比如包本身和一份复制进项目的副本)时,
|
|
6
|
+
* 两边拿同一个键读到的是同一份值。不碰 DOM,服务端也能用。
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* 共享值的注册键。版本号表示值的形状:形状变了、旧副本读不懂新值时就升版本,
|
|
10
|
+
* 两边各用各的。
|
|
11
|
+
*/
|
|
12
|
+
function sharedKey(name, version) {
|
|
13
|
+
return Symbol.for(`@astryx-vue/core/${name}/v${version}`);
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* `key` 下的共享值,第一次用时创建。
|
|
17
|
+
* `accepts` 防键撞车:它不认的值原样留着,这一份自己另建一个。
|
|
18
|
+
*/
|
|
19
|
+
function realmValue(key, create, accepts = () => true) {
|
|
20
|
+
const realm = globalThis;
|
|
21
|
+
if (Object.hasOwn(realm, key)) {
|
|
22
|
+
const existing = realm[key];
|
|
23
|
+
return accepts(existing) ? existing : create();
|
|
24
|
+
}
|
|
25
|
+
const value = create();
|
|
26
|
+
realm[key] = value;
|
|
27
|
+
return value;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* 按注册名在整页共享一份值:计数器、开关,或装着几样东西的对象。
|
|
31
|
+
* 名字写成 `<目录>/<文件>/<绑定名>`(短横线小写),值的形状变了就升版本。
|
|
32
|
+
*/
|
|
33
|
+
function sharedState(name, version, create) {
|
|
34
|
+
return realmValue(sharedKey(name, version), create);
|
|
35
|
+
}
|
|
36
|
+
/** 按注册名共享的 Map。 */
|
|
37
|
+
function sharedMap(name, version) {
|
|
38
|
+
return sharedState(name, version, () => /* @__PURE__ */ new Map());
|
|
39
|
+
}
|
|
40
|
+
/** 按注册名共享的 WeakMap,例如按文档存的状态。 */
|
|
41
|
+
function sharedWeakMap(name, version) {
|
|
42
|
+
return sharedState(name, version, () => /* @__PURE__ */ new WeakMap());
|
|
43
|
+
}
|
|
44
|
+
/** 按注册名共享的 WeakSet,例如登记过的值。 */
|
|
45
|
+
function sharedWeakSet(name, version) {
|
|
46
|
+
return sharedState(name, version, () => /* @__PURE__ */ new WeakSet());
|
|
47
|
+
}
|
|
48
|
+
/** 按注册名共享的递增序号:每调一次返回下一个,从 1 开始。 */
|
|
49
|
+
function sharedSequence(name, version) {
|
|
50
|
+
const counter = sharedState(name, version, () => ({ next: 0 }));
|
|
51
|
+
return () => {
|
|
52
|
+
counter.next += 1;
|
|
53
|
+
return counter.next;
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
//#endregion
|
|
57
|
+
export { sharedState as a, sharedSequence as i, sharedKey as n, sharedWeakMap as o, sharedMap as r, sharedWeakSet as s, realmValue as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as usePositionedLayer, t as useDismiss } from "./useDismiss-
|
|
1
|
+
import { n as usePositionedLayer, t as useDismiss } from "./useDismiss-CegXF2Zo.js";
|
|
2
2
|
import { n as clampInlineSize } from "./inlineSize-BNe8wggI.js";
|
|
3
3
|
import { computed, onMounted, ref, toValue, watch } from "vue";
|
|
4
4
|
//#region src/Typeahead/useAnchoredListbox.ts
|