@astryx-vue/core 0.20.1 → 0.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AlertDialog/index.js +1 -1
- package/dist/{AlertDialog-DYYA2LOe.js → AlertDialog-VD9PadlM.js} +6 -6
- package/dist/AppShell/index.d.ts +1 -1
- package/dist/AppShell/index.js +1 -1
- package/dist/{AppShell-zEXmJb1h.js → AppShell-C4XGguw0.js} +23 -8
- package/dist/Avatar/index.js +1 -1
- package/dist/{Avatar-D85dSNpq.js → Avatar-CAweS1WY.js} +1 -1
- package/dist/AvatarGroup/index.d.ts +1 -1
- package/dist/AvatarGroup/index.js +1 -1
- package/dist/{AvatarGroup-AIu60Urv.js → AvatarGroup-BUXjzekw.js} +2 -2
- package/dist/Banner/index.d.ts +1 -1
- package/dist/Banner/index.js +1 -1
- package/dist/{Banner-C4ZICVvW.js → Banner-DnK7bKAb.js} +1 -1
- package/dist/BottomSheet/index.js +2 -2
- package/dist/{BottomSheet-DNuzJPfQ.js → BottomSheet-C4OU3mJT.js} +3 -3
- package/dist/{BottomSheet-DV7bboru.js → BottomSheet-CM0-eaUF.js} +4 -4
- package/dist/Breadcrumbs/index.js +2 -2
- package/dist/{Breadcrumbs-C8nA3Ft9.js → Breadcrumbs-DZAgtC9c.js} +4 -1
- package/dist/Button/index.d.ts +1 -1
- package/dist/Button/index.js +1 -1
- package/dist/{Button-DOfigN38.js → Button-Blnc0yB3.js} +5 -5
- package/dist/ButtonGroup/index.d.ts +1 -1
- package/dist/ButtonGroup/index.js +1 -1
- package/dist/{ButtonGroup-BzrDhbMP.js → ButtonGroup-DNN4O9_-.js} +3 -3
- package/dist/Calendar/index.d.ts +1 -1
- package/dist/Card/index.d.ts +1 -1
- package/dist/Carousel/index.d.ts +1 -1
- package/dist/Carousel/index.js +1 -1
- package/dist/{Carousel-CRaHAUsZ.js → Carousel-CB4Iap-B.js} +1 -1
- package/dist/Chat/index.d.ts +1 -1
- package/dist/Chat/index.js +1 -1
- package/dist/{Chat-DTs843Ta.js → Chat-DjJPQ9bX.js} +5 -5
- package/dist/CheckboxInput/index.d.ts +1 -1
- package/dist/CheckboxInput/index.js +1 -1
- package/dist/{CheckboxInput-Ydl1GSBh.js → CheckboxInput-CGTPmOHs.js} +3 -3
- package/dist/CheckboxList/index.d.ts +1 -1
- package/dist/CheckboxList/index.js +1 -1
- package/dist/{CheckboxList-Sn_ph-Xz.js → CheckboxList-CGzHkA95.js} +5 -5
- package/dist/ClickableCard/index.d.ts +1 -1
- package/dist/ClickableCard/index.js +1 -1
- package/dist/{ClickableCard-DH-zpF7o.js → ClickableCard-DMX5z-QV.js} +1 -1
- package/dist/Code/index.d.ts +1 -1
- package/dist/Code/index.js +1 -1
- package/dist/{CodeBlock-DXBJEZS6.js → CodeBlock-CwQCMSKA.js} +1 -1
- package/dist/Collapsible/index.d.ts +1 -1
- package/dist/Collapsible/index.js +1 -1
- package/dist/{Collapsible-BG-u5nEt.js → Collapsible-BVoNZijw.js} +3 -3
- package/dist/CommandPalette/index.js +1 -1
- package/dist/{CommandPalette-CV7t0ouM.js → CommandPalette-DBOETNGM.js} +3 -3
- package/dist/ComplexSelector/index.d.ts +1 -1
- package/dist/ComplexSelector/index.js +1 -1
- package/dist/{ComplexSelector-BKjyFdHr.js → ComplexSelector-CNBH2t6W.js} +2 -2
- package/dist/ContextMenu/index.d.ts +1 -1
- package/dist/ContextMenu/index.js +2 -2
- package/dist/{ContextMenu-CwnY6hcJ.js → ContextMenu-CUwAPrVP.js} +6 -7
- package/dist/DateInput/index.d.ts +1 -1
- package/dist/DateInput/index.js +1 -1
- package/dist/{DateInput-BaX40vSs.js → DateInput-BQ-3bvV5.js} +4 -4
- package/dist/DateRangeInput/index.d.ts +1 -1
- package/dist/DateRangeInput/index.js +1 -1
- package/dist/{DateRangeInput-DplhXZqK.js → DateRangeInput-DFXz4vNX.js} +3 -3
- package/dist/DateTimeInput/index.d.ts +1 -1
- package/dist/DateTimeInput/index.js +1 -1
- package/dist/{DateTimeInput-CrD1EEfs.js → DateTimeInput-BHO4nXKW.js} +5 -5
- package/dist/Dialog/index.d.ts +1 -1
- package/dist/Dialog/index.js +3 -3
- package/dist/{Dialog-CztWmbf8.js → Dialog-BCPhWMxL.js} +3 -3
- package/dist/{Dialog-B2pOTrnQ.js → Dialog-Dx6zuttb.js} +1 -1
- package/dist/{DialogHeader-CjHTNccL.js → DialogHeader-C9fp2Rti.js} +2 -2
- package/dist/Drawer/index.d.ts +1 -1
- package/dist/Drawer/index.js +1 -1
- package/dist/{Drawer-DGIuMLms.js → Drawer--2vLSKY_.js} +2 -2
- package/dist/DropdownMenu/index.js +3 -3
- package/dist/{DropdownMenu-l9c562oA.js → DropdownMenu-BImEVieZ.js} +7 -7
- package/dist/{DropdownMenu-r93pI0mD.js → DropdownMenu-CskkQAAz.js} +9 -10
- package/dist/EmptyState/index.js +1 -1
- package/dist/{EmptyState-nyV5XxMA.js → EmptyState-Dq3NWNnG.js} +3 -3
- package/dist/Field/index.js +3 -3
- package/dist/{Field-CIZdFzXr.js → Field-DsucLkyQ.js} +1 -1
- package/dist/{FieldInfoTip-eJSORVbp.js → FieldInfoTip-1zW3QTQG.js} +1 -1
- package/dist/{FieldLabel-BoMSIOLF.js → FieldLabel-D9uFPtXs.js} +1 -1
- package/dist/FileInput/index.d.ts +1 -1
- package/dist/FileInput/index.js +1 -1
- package/dist/{FileInput-DvGU92Sg.js → FileInput-DLtHinlh.js} +2 -2
- package/dist/Heading/index.js +1 -1
- package/dist/{Heading-Bo6A69fA.js → Heading-DBBChghq.js} +1 -1
- package/dist/HoverCard/index.d.ts +1 -1
- package/dist/HoverCard/index.js +1 -1
- package/dist/{HoverCard-FHYH3VXg.js → HoverCard-BW-bOUZI.js} +4 -4
- package/dist/IconButton/index.js +1 -1
- package/dist/{IconButton-oKXLxgYb.js → IconButton-CIUbkA8_.js} +1 -1
- package/dist/InfoTip/index.d.ts +1 -1
- package/dist/InfoTip/index.js +1 -1
- package/dist/{InfoTip-DWC-vnT5.js → InfoTip-C71T8lv_.js} +2 -2
- package/dist/{InputClearButton-CAitWZTk.js → InputClearButton-h0BxBXu1.js} +1 -1
- package/dist/InputGroup/index.js +1 -1
- package/dist/{InputGroup-CeTKqJQn.js → InputGroup-DHPTru5v.js} +1 -1
- package/dist/{Item-BSHDEJyh.js → Item-CzKm9wxQ.js} +1 -1
- package/dist/{LayerContentBoundary-CpqXMTyU.js → LayerContentBoundary-DxeAFxNJ.js} +1 -1
- package/dist/Lightbox/index.js +1 -1
- package/dist/{Lightbox-CesmEisI.js → Lightbox-B3WP06Qt.js} +4 -4
- package/dist/Link/index.d.ts +1 -1
- package/dist/Link/index.js +1 -1
- package/dist/{Link-CQ-Ztuo_.js → Link-CQK9d_Yf.js} +2 -2
- package/dist/List/index.d.ts +1 -1
- package/dist/List/index.js +2 -2
- package/dist/{ListItem-v1GFTbba.js → ListItem-Bc4snKv8.js} +1 -1
- package/dist/Markdown/index.d.ts +1 -1
- package/dist/Markdown/index.js +1 -1
- package/dist/{Markdown-CIA5ejYp.js → Markdown-BVXFWJT0.js} +3 -3
- package/dist/MobileNav/index.js +2 -1
- package/dist/{MobileNavToggle-CKEOroi0.js → MobileNavToggle-DGZPwsf9.js} +6 -8
- package/dist/MoreMenu/index.d.ts +1 -1
- package/dist/MoreMenu/index.js +1 -1
- package/dist/{MoreMenu-DcImQxyp.js → MoreMenu-Q_KpDTNB.js} +5 -5
- package/dist/MultiSelector/index.d.ts +1 -1
- package/dist/MultiSelector/index.js +1 -1
- package/dist/{MultiSelector-DedRF-RL.js → MultiSelector-CzGsdjcl.js} +8 -8
- package/dist/{NavDisclosure-Dg6U7pc7.js → NavDisclosure-DIYayUrP.js} +13 -4
- package/dist/{NavHeadingSurface-DZPa2px5.js → NavHeadingSurface-bFcFpeMI.js} +15 -14
- package/dist/NavItem/index.d.ts +1 -1
- package/dist/NavItem/index.js +1 -1
- package/dist/{NavItem-CcbOJNnY.js → NavItem-CB3loauj.js} +1 -1
- package/dist/NavMenu/index.js +3 -3
- package/dist/{NavMenu-CTbvZnO2.js → NavMenu-DYvMKPU_.js} +9 -7
- package/dist/{NavMenuItem-BS0oULrz.js → NavMenuItem-Ccix-agv.js} +9 -6
- package/dist/NumberInput/index.d.ts +1 -1
- package/dist/NumberInput/index.js +1 -1
- package/dist/{NumberInput-q9HP5L_V.js → NumberInput-DTksMfSU.js} +3 -3
- package/dist/Outline/index.js +1 -1
- package/dist/{Outline-eucTzyZu.js → Outline-NuPQMjxw.js} +2 -2
- package/dist/OverflowList/index.d.ts +1 -1
- package/dist/OverflowList/index.js +1 -1
- package/dist/{OverflowList-B6Alf6bi.js → OverflowList-DKM7TeUs.js} +2 -2
- package/dist/Overlay/index.d.ts +1 -1
- package/dist/Pagination/index.d.ts +1 -1
- package/dist/Pagination/index.js +1 -1
- package/dist/{Pagination-DfAHckUV.js → Pagination-B-O21ut1.js} +272 -136
- package/dist/Popover/index.d.ts +1 -1
- package/dist/Popover/index.js +1 -1
- package/dist/{Popover-D0jAIXkw.js → Popover-BtfsoxXC.js} +6 -6
- package/dist/PowerSearch/index.d.ts +1 -1
- package/dist/PowerSearch/index.js +1 -1
- package/dist/{PowerSearch-CU_MBQlC.js → PowerSearch-CniqThU7.js} +17 -17
- package/dist/ProgressBar/index.d.ts +1 -1
- package/dist/ProgressBar/index.js +1 -1
- package/dist/{ProgressBar-DgyPRxV0.js → ProgressBar-DOusesCL.js} +1 -1
- package/dist/Radio/index.d.ts +1 -1
- package/dist/Radio/index.js +1 -1
- package/dist/{RadioGroup-Cm2n6M5C.js → RadioGroup-CRwMwMw4.js} +4 -4
- package/dist/RadioList/index.d.ts +1 -1
- package/dist/RadioList/index.js +1 -1
- package/dist/{RadioList-B5MaynOw.js → RadioList-PUlENMq5.js} +1 -1
- package/dist/ScrollableArea/index.d.ts +1 -1
- package/dist/SegmentedControl/index.d.ts +1 -1
- package/dist/SegmentedControl/index.js +1 -1
- package/dist/{SegmentedControl-D--5X0eZ.js → SegmentedControl-DFUYTOVH.js} +2 -2
- package/dist/SelectableCard/index.d.ts +1 -1
- package/dist/SelectableCard/index.js +1 -1
- package/dist/{SelectableCard-CLwYtbZl.js → SelectableCard-DUTtyApJ.js} +1 -1
- package/dist/Selector/index.d.ts +1 -1
- package/dist/Selector/index.js +1 -1
- package/dist/{Selector-wcbEB7BC.js → Selector-Qs1rFiI6.js} +6 -6
- package/dist/SideNav/index.d.ts +1 -1
- package/dist/SideNav/index.js +2 -2
- package/dist/{SideNav-CYlAzvrT.js → SideNav-BUfUwE2P.js} +16 -11
- package/dist/Slider/index.js +1 -1
- package/dist/{Slider-jgmpvIDe.js → Slider-BbiQbyie.js} +3 -3
- package/dist/Stack/index.d.ts +1 -1
- package/dist/StatusDot/index.js +1 -1
- package/dist/{StatusDot-Cxm-uhTD.js → StatusDot-DhfcDBE7.js} +1 -1
- package/dist/Stepper/index.d.ts +1 -1
- package/dist/Stepper/index.js +1 -1
- package/dist/{Stepper-CnNUZDMO.js → Stepper-CQd4YlPC.js} +1 -1
- package/dist/Switch/index.d.ts +1 -1
- package/dist/Switch/index.js +1 -1
- package/dist/{Switch-YNk17Lct.js → Switch-CMK5bICl.js} +2 -2
- package/dist/TabList/index.d.ts +1 -1
- package/dist/TabList/index.js +1 -1
- package/dist/{TabList-D_OvLcD5.js → TabList-Bd3h7Nj3.js} +63 -24
- package/dist/Table/index.d.ts +1 -1
- package/dist/Table/index.js +1 -1
- package/dist/{Table-DcFujAPW.js → Table-DN9mo-cQ.js} +15 -15
- package/dist/Text/index.js +2 -2
- package/dist/{Text-Bv4urzOW.js → Text-Dez23ltM.js} +1 -1
- package/dist/TextArea/index.d.ts +1 -1
- package/dist/TextArea/index.js +1 -1
- package/dist/{TextArea-CixgkV__.js → TextArea-BsGUOyDg.js} +4 -4
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/TextInput/index.js +1 -1
- package/dist/{TextInput-Bpiq3FcP.js → TextInput-DZi0EMh-.js} +4 -4
- package/dist/Thumbnail/index.js +1 -1
- package/dist/{Thumbnail-Bktyar_H.js → Thumbnail-CsmF1HTP.js} +3 -3
- package/dist/{TimeField-BtiLoHqW.js → TimeField-DqOPj5s2.js} +4 -4
- package/dist/TimeInput/index.d.ts +1 -1
- package/dist/TimeInput/index.js +1 -1
- package/dist/{TimeInput-eyxw3KzD.js → TimeInput-CA3kXBWB.js} +2 -2
- package/dist/Timer/index.js +1 -1
- package/dist/{Timer-C-N-sElU.js → Timer-vubjQ88x.js} +1 -1
- package/dist/Timestamp/index.d.ts +1 -1
- package/dist/Timestamp/index.js +1 -1
- package/dist/{Timestamp-BTs10ZLD.js → Timestamp-Cz_0Ofj4.js} +3 -3
- package/dist/Toast/index.js +1 -1
- package/dist/{Toast-DpMqZ72F.js → Toast-DhJNtBjT.js} +1 -1
- package/dist/ToggleButton/index.d.ts +1 -1
- package/dist/ToggleButton/index.js +1 -1
- package/dist/{ToggleButton-W_tpgZ8k.js → ToggleButton-BR_qVBEt.js} +3 -3
- package/dist/Token/index.d.ts +1 -1
- package/dist/Token/index.js +1 -1
- package/dist/{Token-jBbgdevV.js → Token-CPNzkSj3.js} +1 -1
- package/dist/Tokenizer/index.d.ts +1 -1
- package/dist/Tokenizer/index.js +1 -1
- package/dist/{Tokenizer-Bs1VXinx.js → Tokenizer-C3pXgLmC.js} +6 -6
- package/dist/Toolbar/index.d.ts +1 -1
- package/dist/Toolbar/index.js +1 -1
- package/dist/{Toolbar-BH_E0F0G.js → Toolbar-B4Vltu-j.js} +1 -1
- package/dist/Tooltip/index.d.ts +1 -1
- package/dist/Tooltip/index.js +2 -2
- package/dist/{Tooltip-DQipgW1R.js → Tooltip-BUHvOnE1.js} +1 -1
- package/dist/TopNav/index.d.ts +1 -1
- package/dist/TopNav/index.js +1 -1
- package/dist/{TopNav-CSFUTuyI.js → TopNav-klsRhS-I.js} +169 -62
- package/dist/TreeList/index.js +1 -1
- package/dist/{TreeList-B8p_lI7a.js → TreeList-DJQvL5tG.js} +3 -3
- package/dist/Typeahead/index.d.ts +1 -1
- package/dist/Typeahead/index.js +2 -2
- package/dist/{Typeahead-Bh0nap5Z.js → Typeahead-BaPqX3Ey.js} +6 -6
- package/dist/{assertOptions-CK_gJ0d3.js → assertOptions-DF9pum-3.js} +1 -1
- package/dist/{batch-BJD6Bt-O.js → batch-oTkSbtVz.js} +3 -1
- package/dist/clickGuard-ChKuogmR.js +132 -0
- package/dist/closeOnActivate-D1KgKWwm.js +13 -0
- package/dist/composables/index.d.ts +2 -2
- package/dist/composables/index.js +14 -15
- package/dist/composables-BDWdSCwe.js +11917 -0
- package/dist/context-D8MAZio1.js +7 -0
- package/dist/{context-Cj_zItu2.js → context-DQPBIsl5.js} +2 -2
- package/dist/{edge-DIlkB7vS.js → edge-3sC8-cbB.js} +1 -1
- package/dist/{edgeRide-D0oC2JEB.js → edgeRide-DOxmVxTM.js} +4 -3
- package/dist/{focusReturn-D7Y7Pwwb.js → focusReturn-CsEp47Wa.js} +1 -1
- package/dist/handle-CSHfxBie.js +298 -0
- package/dist/{index-B63NOJRc.d.ts → index--CtH4lQr.d.ts} +5 -5
- package/dist/{index-DBu-H-vB.d.ts → index-0pBqcQXV.d.ts} +164 -7
- package/dist/{index-TXcNH86P.d.ts → index-B1eCxBCY.d.ts} +1 -1
- package/dist/{index-BgT6mH3U.d.ts → index-BB9acgK8.d.ts} +1 -1
- package/dist/{index-BuubzuE8.d.ts → index-BDZCJ9ri.d.ts} +2 -2
- package/dist/{index-CTjkJP4x.d.ts → index-Bgk1Rj2A.d.ts} +1 -1
- package/dist/{index-5Hrxeq2J.d.ts → index-BhxqUt3y.d.ts} +5 -5
- package/dist/{index-LaQSu7ST.d.ts → index-BkxWKIV_.d.ts} +6 -6
- package/dist/{index-BP2SjZiM.d.ts → index-BmXk_doE.d.ts} +3 -3
- package/dist/{index-DGXCnzOL.d.ts → index-BrMtj1lT.d.ts} +4 -4
- package/dist/{index-DtZUOyCy.d.ts → index-BvW0tiei.d.ts} +2 -2
- package/dist/{index-ChqMaV6N.d.ts → index-Bzi3A980.d.ts} +1 -1
- package/dist/{index-51CkIKnI.d.ts → index-C93nwgTW.d.ts} +1 -1
- package/dist/{index-CiVrhGUJ.d.ts → index-C9ZssPUV.d.ts} +1 -1
- package/dist/{index-mK1ICsVg.d.ts → index-C9uW39Mj.d.ts} +3 -3
- package/dist/{index-CaE2cqeG.d.ts → index-CAKT4Kkz.d.ts} +78 -64
- package/dist/{index-DmAEpn5E.d.ts → index-CG3fD4hw.d.ts} +1 -1
- package/dist/{index-Q1oG9yIT.d.ts → index-CO9GW-ik.d.ts} +1 -1
- package/dist/{index-BNtSmuWg.d.ts → index-D0MA9x_i.d.ts} +5 -5
- package/dist/{index-CbA8rR_b.d.ts → index-DDrL_-hJ.d.ts} +3 -3
- package/dist/{index-QnlWyUxN.d.ts → index-DE1genab.d.ts} +2 -2
- package/dist/{index-vCRf5fyK.d.ts → index-DIw5D3zj.d.ts} +2 -2
- package/dist/{index-MvrDMqnQ.d.ts → index-DYabo8TI.d.ts} +1 -1
- package/dist/{index-Cb-rvc1W.d.ts → index-DofC9Rll.d.ts} +1 -1
- package/dist/{index-D1JXm7Et.d.ts → index-DogWVRJi.d.ts} +15 -2
- package/dist/{index-BaFphczL.d.ts → index-YKCx03zD.d.ts} +2 -2
- package/dist/{index-yQc-te9a.d.ts → index-ql9ApSTF.d.ts} +2 -2
- package/dist/{index-Y-AmNzkO.d.ts → index-rzkX36wM.d.ts} +3 -3
- package/dist/index.d.ts +30 -30
- package/dist/index.js +106 -107
- package/dist/{interactionModality-B5dR7nnb.js → interactionModality-CyU67ucP.js} +9 -3
- package/dist/{landing-C7nc9JHm.js → landing-DFC97kl9.js} +2 -2
- package/dist/{layerFocusReturn-B8Hp14ZG.js → layerFocusReturn-BeCsk_4F.js} +1 -1
- package/dist/{pressFeedback-BajhWhi1.js → pressFeedback-CEUPQWIS.js} +297 -118
- package/dist/pressGesture-BzIBmKF2.js +615 -0
- package/dist/sharedRealm-H1OrlP0V.js +124 -0
- package/dist/{stillPointerGate-0vdn-hSa.js → stillPointerGate-BX4vr5M-.js} +1 -1
- package/dist/{tooltipFocusRules-D4cJ08fk.js → tooltipFocusRules-BnZ1zwAm.js} +2 -2
- package/dist/{tooltipTriggerRules-PBxqztvn.js → tooltipTriggerRules-BLBEkBcK.js} +1 -1
- package/dist/{useActionGroupTracking-fwmxDcU3.js → useActionGroupTracking-PVBCtLUE.js} +5 -4
- package/dist/{useCombobox-DIR9yoEu.js → useCombobox-DcBbaWYj.js} +1 -1
- package/dist/{useDismiss-Dfb0Ky7T.js → useDismiss-C1dyveme.js} +1 -1
- package/dist/{useFocusTrap-DsYtRdmV.js → useFocusTrap-DAKJJP0Z.js} +2 -2
- package/dist/{useInputStatusIcon-CVGsNTi_.js → useInputStatusIcon-BDWAijXe.js} +1 -1
- package/dist/{useListFocus-CbHkLT-X.js → useListFocus-CkHfsZp0.js} +23 -5
- package/dist/{useMenuDrillIn-DaH0nhPa.js → useMenuDrillIn-RZwY55RM.js} +1 -1
- package/dist/{useMenuHover-CQYo0XCC.js → useMenuHover-CfQtWMg-.js} +1 -1
- package/dist/{useMenuPress-9dOj2hvC.js → useMenuPress-3203ryBY.js} +63 -15
- package/dist/{usePressFeedback-2YAzGB6C.js → usePressFeedback-aufF1sCH.js} +1 -1
- package/dist/{useResizable-BMlG1oxA.js → useResizable-wZU54yCO.js} +1 -1
- package/dist/{useRestoreFocus-Cz_jM_nW.js → useRestoreFocus-v8-FFcQQ.js} +2 -2
- package/dist/{useTooltip-C7gHRGEO.js → useTooltip-0_wOd0e5.js} +5 -5
- package/dist/{useTouchHitArea-BKZL6tHX.js → useTouchHitArea-BMDBe36j.js} +3 -3
- package/dist/{useTouchTriggerInternal-Bs7obOrb.js → useTouchTriggerInternal-DwzthF8T.js} +1 -1
- package/dist/{useTruncationTooltip-DeCGRmot.js → useTruncationTooltip-BDIe7-ya.js} +5 -5
- package/dist/{useTypeahead-BrWvmOu9.js → useTypeahead-BlqvS9x9.js} +1 -1
- package/dist/{useTypeaheadMenuConfig--4f7jR6G.js → useTypeaheadMenuConfig-CIf9Ep57.js} +2 -2
- package/dist/utils/index.js +1 -1
- package/package.json +1 -1
- package/styles/app-shell.css +36 -0
- package/styles/breadcrumbs.css +1 -0
- package/styles/nav-item.css +9 -3
- package/styles/nav-menu.css +3 -0
- package/styles/pagination.css +2 -2
- package/styles/tab-list.css +7 -3
- package/styles/tab-menu.css +1 -0
- package/styles/top-nav.css +141 -11
- package/dist/composables-CDrwFX0l.js +0 -5420
- package/dist/handle-ChN2TMKH.js +0 -458
- package/dist/pressGesture-B3z3W3Za.js +0 -78
- package/dist/strayClick-_QKRT5aH.js +0 -99
- package/dist/{index-BJ9Wim6J.d.ts → index-BqhgeAT4.d.ts} +1 -1
- package/dist/{useTruncation-BxYAhQtF.js → useTruncation-D_T-ezdp.js} +1 -1
package/dist/handle-ChN2TMKH.js
DELETED
|
@@ -1,458 +0,0 @@
|
|
|
1
|
-
//#region src/motion/reducedMotionMark.ts
|
|
2
|
-
/**
|
|
3
|
-
* @file reducedMotionMark.ts
|
|
4
|
-
* @input Whether a theme reduces motion for everyone
|
|
5
|
-
* @output reducedMotionMarkProps and setRootReducedMotionMark, which write the
|
|
6
|
-
* mark, and themeReducesMotion, which reads it
|
|
7
|
-
* @position Owner module of the private reduced-motion attribute: the only
|
|
8
|
-
* file that writes its name. A theme that reduces motion for everyone
|
|
9
|
-
* spreads the mark on its root, and the root theme sets it on `<html>`; the
|
|
10
|
-
* animator and reducedMotionFade read it as the person's Reduce Motion
|
|
11
|
-
* setting. No package entry exports it.
|
|
12
|
-
*/
|
|
13
|
-
const REDUCED_MOTION = "data-astryx-reduced-motion";
|
|
14
|
-
/**
|
|
15
|
-
* Whether the theme `element` is in reduces motion for everyone: its root,
|
|
16
|
-
* or `<html>` for the root theme, carries the mark.
|
|
17
|
-
*/
|
|
18
|
-
function themeReducesMotion(element) {
|
|
19
|
-
return element?.closest?.(`[${REDUCED_MOTION}]`) != null;
|
|
20
|
-
}
|
|
21
|
-
//#endregion
|
|
22
|
-
//#region src/utils/sharedRealm.ts
|
|
23
|
-
/**
|
|
24
|
-
* 对应原版 Astryx 的 `utils/sharedRealm`。
|
|
25
|
-
*
|
|
26
|
-
* 整个 JavaScript 运行环境里按键共享一份值:页面上同时加载了两份 core(比如包本身和一份复制进项目的副本)时,
|
|
27
|
-
* 两边拿同一个键读到的是同一份值。不碰 DOM,服务端也能用。
|
|
28
|
-
*/
|
|
29
|
-
/**
|
|
30
|
-
* 共享值的注册键。版本号表示值的形状:形状变了、旧副本读不懂新值时就升版本,
|
|
31
|
-
* 两边各用各的。
|
|
32
|
-
*/
|
|
33
|
-
function sharedKey(name, version) {
|
|
34
|
-
return Symbol.for(`@astryx-vue/core/${name}/v${version}`);
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* `key` 下的共享值,第一次用时创建。
|
|
38
|
-
* `accepts` 防键撞车:它不认的值原样留着,这一份自己另建一个。
|
|
39
|
-
*/
|
|
40
|
-
function realmValue(key, create, accepts = () => true) {
|
|
41
|
-
const realm = globalThis;
|
|
42
|
-
if (Object.hasOwn(realm, key)) {
|
|
43
|
-
const existing = realm[key];
|
|
44
|
-
return accepts(existing) ? existing : create();
|
|
45
|
-
}
|
|
46
|
-
const value = create();
|
|
47
|
-
realm[key] = value;
|
|
48
|
-
return value;
|
|
49
|
-
}
|
|
50
|
-
/**
|
|
51
|
-
* 按注册名在整页共享一份值:计数器、开关,或装着几样东西的对象。
|
|
52
|
-
* 名字写成 `<目录>/<文件>/<绑定名>`(短横线小写),值的形状变了就升版本。
|
|
53
|
-
*/
|
|
54
|
-
function sharedState(name, version, create) {
|
|
55
|
-
return realmValue(sharedKey(name, version), create);
|
|
56
|
-
}
|
|
57
|
-
/** 按注册名共享的 Map。 */
|
|
58
|
-
function sharedMap(name, version) {
|
|
59
|
-
return sharedState(name, version, () => /* @__PURE__ */ new Map());
|
|
60
|
-
}
|
|
61
|
-
/** 按注册名共享的 WeakMap,例如按文档存的状态。 */
|
|
62
|
-
function sharedWeakMap(name, version) {
|
|
63
|
-
return sharedState(name, version, () => /* @__PURE__ */ new WeakMap());
|
|
64
|
-
}
|
|
65
|
-
/** 按注册名共享的 WeakSet,例如登记过的值。 */
|
|
66
|
-
function sharedWeakSet(name, version) {
|
|
67
|
-
return sharedState(name, version, () => /* @__PURE__ */ new WeakSet());
|
|
68
|
-
}
|
|
69
|
-
//#endregion
|
|
70
|
-
//#region src/motion/presentation.ts
|
|
71
|
-
const presented = realmValue(sharedKey("motion/presentation", 1), () => ({
|
|
72
|
-
sources: /* @__PURE__ */ new Map(),
|
|
73
|
-
watchers: /* @__PURE__ */ new Set(),
|
|
74
|
-
batchDepth: 0,
|
|
75
|
-
isChanged: false
|
|
76
|
-
}));
|
|
77
|
-
const { sources, watchers } = presented;
|
|
78
|
-
/** Tell every watcher the reported elements changed; one's throw stops none. */
|
|
79
|
-
function notifyWatchers() {
|
|
80
|
-
if (presented.batchDepth > 0) {
|
|
81
|
-
presented.isChanged = true;
|
|
82
|
-
return;
|
|
83
|
-
}
|
|
84
|
-
for (const watcher of [...watchers]) try {
|
|
85
|
-
watcher();
|
|
86
|
-
} catch (error) {
|
|
87
|
-
queueMicrotask(() => {
|
|
88
|
-
throw error;
|
|
89
|
-
});
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
/**
|
|
93
|
-
* Runs `apply`, which reports elements or removes reports, and tells the
|
|
94
|
-
* watchers once, at its end, when the reported elements changed. So the
|
|
95
|
-
* moves of one layout change cost one notice.
|
|
96
|
-
*/
|
|
97
|
-
function batchPresented(apply) {
|
|
98
|
-
presented.batchDepth += 1;
|
|
99
|
-
try {
|
|
100
|
-
apply();
|
|
101
|
-
} finally {
|
|
102
|
-
presented.batchDepth -= 1;
|
|
103
|
-
if (presented.batchDepth === 0 && presented.isChanged) {
|
|
104
|
-
presented.isChanged = false;
|
|
105
|
-
notifyWatchers();
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
/**
|
|
110
|
-
* Report an element drawn away from where the engine hit-tests it. Returns
|
|
111
|
-
* the function that removes the report.
|
|
112
|
-
*/
|
|
113
|
-
function registerPresentedOffset(element, source) {
|
|
114
|
-
sources.set(element, source);
|
|
115
|
-
notifyWatchers();
|
|
116
|
-
return () => {
|
|
117
|
-
if (sources.get(element) === source) {
|
|
118
|
-
sources.delete(element);
|
|
119
|
-
notifyWatchers();
|
|
120
|
-
}
|
|
121
|
-
};
|
|
122
|
-
}
|
|
123
|
-
/** The custom property whose writes make WebKit resolve a moving element. */
|
|
124
|
-
const RESOLVE_PROPERTY = "--astryx-presented";
|
|
125
|
-
/**
|
|
126
|
-
* Makes iOS WebKit resolve `element`'s transform again, to the value drawn
|
|
127
|
-
* now: one write of a value the property does not have yet. The animator and
|
|
128
|
-
* the animated layout both write it, so it counts up from the element's own
|
|
129
|
-
* last value.
|
|
130
|
-
*/
|
|
131
|
-
function writePresentedResolve(element) {
|
|
132
|
-
const last = Number(element.style.getPropertyValue(RESOLVE_PROPERTY)) || 0;
|
|
133
|
-
element.style.setProperty(RESOLVE_PROPERTY, String(last + 1));
|
|
134
|
-
}
|
|
135
|
-
/** Removes the resolve write from `element`. */
|
|
136
|
-
function clearPresentedResolve(element) {
|
|
137
|
-
element.style.removeProperty(RESOLVE_PROPERTY);
|
|
138
|
-
}
|
|
139
|
-
//#endregion
|
|
140
|
-
//#region src/motion/roleValue.ts
|
|
141
|
-
const ROLE_ID = /^[a-z][A-Za-z0-9]*(?:\.[a-z][A-Za-z0-9]*)+$/;
|
|
142
|
-
/** Whether `id` is a well-formed role name (a dotted table path). */
|
|
143
|
-
function isMotionRoleId(id) {
|
|
144
|
-
return ROLE_ID.test(id);
|
|
145
|
-
}
|
|
146
|
-
/** The CSS custom property for a role: `--motion-` + the path in kebab case. */
|
|
147
|
-
function motionRoleVariable(id) {
|
|
148
|
-
if (!isMotionRoleId(id)) throw new Error(`motion role "${id}" must be a dotted table path such as "springs.sheetPresent"`);
|
|
149
|
-
return `--motion-${id.split(".").map((part) => part.replace(/[A-Z]/g, (c) => `-${c.toLowerCase()}`)).join("-")}`;
|
|
150
|
-
}
|
|
151
|
-
function isSpring(value) {
|
|
152
|
-
if (value === null || typeof value !== "object" || Array.isArray(value)) return false;
|
|
153
|
-
return "response" in value && "dampingRatio" in value || "duration" in value && "bounce" in value || "stiffness" in value && "damping" in value;
|
|
154
|
-
}
|
|
155
|
-
function isCurve(value) {
|
|
156
|
-
return Array.isArray(value) && value.length === 4 && value.every((n) => typeof n === "number");
|
|
157
|
-
}
|
|
158
|
-
//#endregion
|
|
159
|
-
//#region src/motion/roles.ts
|
|
160
|
-
const rolesById = /* @__PURE__ */ new Map();
|
|
161
|
-
/** A table id → the table registered under it. */
|
|
162
|
-
const tablesById = /* @__PURE__ */ new Map();
|
|
163
|
-
/** A spring or curve leaf → its role. */
|
|
164
|
-
const roleOfLeaf = /* @__PURE__ */ new WeakMap();
|
|
165
|
-
/** A table or one of its groups → its path. */
|
|
166
|
-
const pathOfGroup = /* @__PURE__ */ new WeakMap();
|
|
167
|
-
/** A table path → the role id it is registered under, when renamed. */
|
|
168
|
-
const roleIdOfPath = /* @__PURE__ */ new Map();
|
|
169
|
-
/**
|
|
170
|
-
* Registers a motion table: each spring, `…Ms` duration and curve leaf that
|
|
171
|
-
* `roles` lists (its role name, relative to the table) becomes a role named
|
|
172
|
-
* by its path under `id`; the table's other values stay internal constants. A leaf object the table shares between
|
|
173
|
-
* two keys is replaced in the table by an equal copy, so each role has its own
|
|
174
|
-
* object (an animator resolves a role from the object it is handed).
|
|
175
|
-
* `exclude` lists paths, relative to the table, that are not motion;
|
|
176
|
-
* `rename` maps a path, relative to the table, to the role name it is
|
|
177
|
-
* registered under (relative too), so a role is named for its use while the
|
|
178
|
-
* table keeps its source's name. Registering the same table under the same id
|
|
179
|
-
* again does nothing.
|
|
180
|
-
*/
|
|
181
|
-
function registerMotionTable(id, table, { roles = [], exclude = [], rename = {} } = {}) {
|
|
182
|
-
if (!/^[a-z][A-Za-z0-9]*$/.test(id)) throw new Error(`motion table id "${id}" must be one camelCase word`);
|
|
183
|
-
if (tablesById.get(id) === table) return;
|
|
184
|
-
tablesById.set(id, table);
|
|
185
|
-
const skip = new Set(exclude.map((path) => `${id}.${path}`));
|
|
186
|
-
const listed = new Set(roles.map((name) => `${id}.${name}`));
|
|
187
|
-
const walk = (group, prefix) => {
|
|
188
|
-
pathOfGroup.set(group, prefix);
|
|
189
|
-
for (const [key, value] of Object.entries(group)) {
|
|
190
|
-
const path = `${prefix}.${key}`;
|
|
191
|
-
if (skip.has(path)) continue;
|
|
192
|
-
let kind = null;
|
|
193
|
-
if (isSpring(value)) kind = "spring";
|
|
194
|
-
else if (isCurve(value)) kind = "curve";
|
|
195
|
-
else if (typeof value === "number" && key.endsWith("Ms")) kind = "duration";
|
|
196
|
-
else if (value !== null && typeof value === "object" && !Array.isArray(value)) {
|
|
197
|
-
walk(value, path);
|
|
198
|
-
continue;
|
|
199
|
-
}
|
|
200
|
-
if (kind == null) continue;
|
|
201
|
-
const relative = path.slice(id.length + 1);
|
|
202
|
-
const roleId = relative in rename ? `${id}.${rename[relative]}` : path;
|
|
203
|
-
if (!listed.has(roleId)) continue;
|
|
204
|
-
if (roleId !== path) roleIdOfPath.set(path, roleId);
|
|
205
|
-
let leaf = value;
|
|
206
|
-
if (typeof leaf === "object") {
|
|
207
|
-
const taken = roleOfLeaf.get(leaf);
|
|
208
|
-
if (taken != null && taken.id !== roleId) {
|
|
209
|
-
leaf = Object.freeze(Array.isArray(leaf) ? [...leaf] : { ...leaf });
|
|
210
|
-
group[key] = leaf;
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
const role = {
|
|
214
|
-
id: roleId,
|
|
215
|
-
kind,
|
|
216
|
-
variable: motionRoleVariable(roleId),
|
|
217
|
-
value: leaf
|
|
218
|
-
};
|
|
219
|
-
rolesById.set(roleId, role);
|
|
220
|
-
if (typeof leaf === "object") roleOfLeaf.set(leaf, role);
|
|
221
|
-
}
|
|
222
|
-
};
|
|
223
|
-
walk(table, id);
|
|
224
|
-
}
|
|
225
|
-
/**
|
|
226
|
-
* Registers `leaf` as the spring role `id` (a table path such as
|
|
227
|
-
* `springs.settle`) and returns it, so a table row can register itself. A row
|
|
228
|
-
* that calls it under a pure annotation drops out of a bundle that does not
|
|
229
|
-
* use it, call included. Registering the same leaf under the same id again
|
|
230
|
-
* does nothing.
|
|
231
|
-
*/
|
|
232
|
-
function registerSpringRole(id, leaf) {
|
|
233
|
-
if (!isMotionRoleId(id)) throw new Error(`motion role "${id}" must be a dotted table path such as "springs.settle"`);
|
|
234
|
-
if (roleOfLeaf.get(leaf)?.id !== id) {
|
|
235
|
-
const role = {
|
|
236
|
-
id,
|
|
237
|
-
kind: "spring",
|
|
238
|
-
variable: motionRoleVariable(id),
|
|
239
|
-
value: leaf
|
|
240
|
-
};
|
|
241
|
-
rolesById.set(id, role);
|
|
242
|
-
roleOfLeaf.set(leaf, role);
|
|
243
|
-
}
|
|
244
|
-
return leaf;
|
|
245
|
-
}
|
|
246
|
-
/** The role a spring or curve leaf of a registered table plays, if any. */
|
|
247
|
-
function motionRoleOf(leaf) {
|
|
248
|
-
return leaf !== null && typeof leaf === "object" ? roleOfLeaf.get(leaf) : void 0;
|
|
249
|
-
}
|
|
250
|
-
/**
|
|
251
|
-
* The role `group[key]` plays, for a table or one of its groups: the way to
|
|
252
|
-
* name a duration, which is a bare number.
|
|
253
|
-
*/
|
|
254
|
-
function motionRoleIn(group, key) {
|
|
255
|
-
const prefix = pathOfGroup.get(group);
|
|
256
|
-
if (prefix == null) return;
|
|
257
|
-
const path = `${prefix}.${key}`;
|
|
258
|
-
return rolesById.get(roleIdOfPath.get(path) ?? path);
|
|
259
|
-
}
|
|
260
|
-
const NUMBER = "(-?(?:\\d+(?:\\.\\d*)?|\\.\\d+)(?:e-?\\d+)?)";
|
|
261
|
-
const SPRING_VALUE = new RegExp(`^${NUMBER}s\\s+${NUMBER}$`);
|
|
262
|
-
const DURATION_VALUE = new RegExp(`^${NUMBER}(ms|s)$`);
|
|
263
|
-
const CURVE_VALUE = new RegExp(`^cubic-bezier\\(\\s*${NUMBER}\\s*,\\s*${NUMBER}\\s*,\\s*${NUMBER}\\s*,\\s*${NUMBER}\\s*\\)$`);
|
|
264
|
-
function parseMotionRoleValue(kind, text) {
|
|
265
|
-
const value = text.trim();
|
|
266
|
-
if (value === "") return null;
|
|
267
|
-
if (kind === "spring") {
|
|
268
|
-
const m = SPRING_VALUE.exec(value);
|
|
269
|
-
if (m == null) return null;
|
|
270
|
-
const duration = Number(m[1]);
|
|
271
|
-
const bounce = Number(m[2]);
|
|
272
|
-
return duration > 0 && bounce > -1 && bounce < 1 ? {
|
|
273
|
-
duration,
|
|
274
|
-
bounce
|
|
275
|
-
} : null;
|
|
276
|
-
}
|
|
277
|
-
if (kind === "duration") {
|
|
278
|
-
const m = DURATION_VALUE.exec(value);
|
|
279
|
-
if (m == null) return null;
|
|
280
|
-
const ms = Number(m[1]) * (m[2] === "s" ? 1e3 : 1);
|
|
281
|
-
return ms >= 0 ? ms : null;
|
|
282
|
-
}
|
|
283
|
-
const m = CURVE_VALUE.exec(value);
|
|
284
|
-
if (m == null) return null;
|
|
285
|
-
const points = [
|
|
286
|
-
m[1],
|
|
287
|
-
m[2],
|
|
288
|
-
m[3],
|
|
289
|
-
m[4]
|
|
290
|
-
].map(Number);
|
|
291
|
-
return points[0] >= 0 && points[0] <= 1 && points[2] >= 0 && points[2] <= 1 ? points : null;
|
|
292
|
-
}
|
|
293
|
-
/** The CSS easing keywords, as the control points CSS gives them. */
|
|
294
|
-
const EASING_KEYWORDS = {
|
|
295
|
-
"linear": [
|
|
296
|
-
0,
|
|
297
|
-
0,
|
|
298
|
-
1,
|
|
299
|
-
1
|
|
300
|
-
],
|
|
301
|
-
"ease": [
|
|
302
|
-
.25,
|
|
303
|
-
.1,
|
|
304
|
-
.25,
|
|
305
|
-
1
|
|
306
|
-
],
|
|
307
|
-
"ease-in": [
|
|
308
|
-
.42,
|
|
309
|
-
0,
|
|
310
|
-
1,
|
|
311
|
-
1
|
|
312
|
-
],
|
|
313
|
-
"ease-out": [
|
|
314
|
-
0,
|
|
315
|
-
0,
|
|
316
|
-
.58,
|
|
317
|
-
1
|
|
318
|
-
],
|
|
319
|
-
"ease-in-out": [
|
|
320
|
-
.42,
|
|
321
|
-
0,
|
|
322
|
-
.58,
|
|
323
|
-
1
|
|
324
|
-
]
|
|
325
|
-
};
|
|
326
|
-
/**
|
|
327
|
-
* Reads a CSS easing, a keyword or a `cubic-bezier()`, as a curve role's value
|
|
328
|
-
* is read. Returns null for any other easing, such as `steps()`.
|
|
329
|
-
*/
|
|
330
|
-
function parseCssEasing(text) {
|
|
331
|
-
const value = text.trim();
|
|
332
|
-
return EASING_KEYWORDS[value] ?? parseMotionRoleValue("curve", value);
|
|
333
|
-
}
|
|
334
|
-
//#endregion
|
|
335
|
-
//#region src/motion/uikit/timing.ts
|
|
336
|
-
/**
|
|
337
|
-
* @file timing.ts
|
|
338
|
-
* @input Nothing; data only
|
|
339
|
-
* @output Exports `timing`: the non-spring clocks and curves UIKit uses
|
|
340
|
-
* (press highlight onset, flash and fade, Core Animation's named Bézier
|
|
341
|
-
* curves, the navigation bar hide/show duration, the keyboard
|
|
342
|
-
* notification duration, the Reduced Motion cross-fade)
|
|
343
|
-
* @position The timing domain of the UIKit constants table (motion/uikit)
|
|
344
|
-
*
|
|
345
|
-
* Every leaf carries one or more `@source` (apple-docs | wwdc | webkit |
|
|
346
|
-
* measured | GUESS); webkit and GUESS values also carry the `@measure` task
|
|
347
|
-
* that will confirm or replace them (MEASUREMENTS.md). uikit.test.ts
|
|
348
|
-
* enforces both.
|
|
349
|
-
*
|
|
350
|
-
* Durations are in ms (the unit of pointer-event timestamps, which these
|
|
351
|
-
* clocks are compared against); curves are cubic-bézier control points
|
|
352
|
-
* [x1, y1, x2, y2].
|
|
353
|
-
*/
|
|
354
|
-
/**
|
|
355
|
-
* The Reduce Motion fade, its own export so the animator reads it without
|
|
356
|
-
* the rest of the table (`architecture:component-style-authoring` INV6).
|
|
357
|
-
* `timing` composes it under its table paths, `reducedMotionCrossFadeMs` and
|
|
358
|
-
* `curves.move`, so their roles are unchanged.
|
|
359
|
-
*/
|
|
360
|
-
const reducedMotionCrossFade = {
|
|
361
|
-
/**
|
|
362
|
-
* The Reduced Motion cross-fade, in ms, on `curves.move`: under
|
|
363
|
-
* Reduce Motion an entrance, exit, presentation switch or state change
|
|
364
|
-
* becomes an opacity-only cross-fade of this length on a coarse pointer
|
|
365
|
-
* (design:reduced-motion DR2 caps it at 200 ms, by owner decision DEC-1
|
|
366
|
-
* of 2026-10-24, departing from UIKit's own navigation cross-fade,
|
|
367
|
-
* measured below at 0.5 s). Not a role: nothing lengthens it (DR4).
|
|
368
|
-
* @source apple-docs https://developer.apple.com/documentation/uikit/uiaccessibility/preferscrossfadetransitions
|
|
369
|
-
* (the setting)
|
|
370
|
-
* @source measured: UIKit lab (injected host app), iOS 26.2 simulator,
|
|
371
|
-
* iPhone 17 Pro, CAAnimation dump with Reduce Motion and Prefer
|
|
372
|
-
* Cross-Fade Transitions on (opacity CABasicAnimation 0.5 s,
|
|
373
|
-
* (0.42, 0, 0.58, 1)), Oct 23 2026
|
|
374
|
-
*/
|
|
375
|
-
durationMs: 200,
|
|
376
|
-
/**
|
|
377
|
-
* `easeInEaseOut`; UIKit's default curve (`UIView.AnimationCurve
|
|
378
|
-
* .easeInOut`, "the default curve for most animations").
|
|
379
|
-
* @source apple-docs https://developer.apple.com/documentation/quartzcore/camediatimingfunctionname/easeineaseout
|
|
380
|
-
* @source measured: UIKit lab (injected host app), iOS 26.2 simulator,
|
|
381
|
-
* iPhone 17 Pro, CAMediaTimingFunction read from UIView.animate,
|
|
382
|
-
* Oct 23 2026
|
|
383
|
-
*/
|
|
384
|
-
curve: [
|
|
385
|
-
.42,
|
|
386
|
-
0,
|
|
387
|
-
.58,
|
|
388
|
-
1
|
|
389
|
-
]
|
|
390
|
-
};
|
|
391
|
-
const { durationMs: reducedMotionCrossFadeMs, curve: move } = reducedMotionCrossFade;
|
|
392
|
-
const reducedMotionCrossFadeRoles = { curves: { move } };
|
|
393
|
-
/**
|
|
394
|
-
* Registers only the Reduce Motion fade's curve as its role,
|
|
395
|
-
* `timing.curves.move`, for code that reads the fade without the rest of the
|
|
396
|
-
* table (the animator, reducedMotionFade()). The fade's length is not a role.
|
|
397
|
-
*/
|
|
398
|
-
function registerReducedMotionCrossFade() {
|
|
399
|
-
registerMotionTable("timing", reducedMotionCrossFadeRoles, { roles: ["curves.move"] });
|
|
400
|
-
}
|
|
401
|
-
//#endregion
|
|
402
|
-
//#region src/motion/bezier.ts
|
|
403
|
-
/** The timing function for `points`: maps time progress to eased progress. */
|
|
404
|
-
function cubicBezier([x1, y1, x2, y2]) {
|
|
405
|
-
const cx = 3 * x1;
|
|
406
|
-
const bx = 3 * (x2 - x1) - cx;
|
|
407
|
-
const ax = 1 - cx - bx;
|
|
408
|
-
const cy = 3 * y1;
|
|
409
|
-
const by = 3 * (y2 - y1) - cy;
|
|
410
|
-
const ay = 1 - cy - by;
|
|
411
|
-
const sampleX = (t) => ((ax * t + bx) * t + cx) * t;
|
|
412
|
-
const sampleY = (t) => ((ay * t + by) * t + cy) * t;
|
|
413
|
-
const slopeX = (t) => (3 * ax * t + 2 * bx) * t + cx;
|
|
414
|
-
const solveT = (x) => {
|
|
415
|
-
let t = x;
|
|
416
|
-
for (let i = 0; i < 8; i++) {
|
|
417
|
-
const error = sampleX(t) - x;
|
|
418
|
-
if (Math.abs(error) < 1e-7) return t;
|
|
419
|
-
const slope = slopeX(t);
|
|
420
|
-
if (Math.abs(slope) < 1e-6) break;
|
|
421
|
-
t -= error / slope;
|
|
422
|
-
}
|
|
423
|
-
let lo = 0;
|
|
424
|
-
let hi = 1;
|
|
425
|
-
t = x;
|
|
426
|
-
for (let i = 0; i < 60; i++) {
|
|
427
|
-
const value = sampleX(t);
|
|
428
|
-
if (Math.abs(value - x) < 1e-7) break;
|
|
429
|
-
if (value < x) lo = t;
|
|
430
|
-
else hi = t;
|
|
431
|
-
t = (lo + hi) / 2;
|
|
432
|
-
}
|
|
433
|
-
return t;
|
|
434
|
-
};
|
|
435
|
-
return (x) => x <= 0 ? 0 : x >= 1 ? 1 : sampleY(solveT(x));
|
|
436
|
-
}
|
|
437
|
-
//#endregion
|
|
438
|
-
//#region src/motion/layout/handle.ts
|
|
439
|
-
/**
|
|
440
|
-
* @file handle.ts
|
|
441
|
-
* @position Internal to motion/layout; split from upstream motion/animatedLayout.ts
|
|
442
|
-
*/
|
|
443
|
-
const AREA = sharedKey("animated-layout/area", 1);
|
|
444
|
-
/** The container a handle reads, or null for a value that is not a handle. */
|
|
445
|
-
function readArea(handle) {
|
|
446
|
-
const read = handle[AREA];
|
|
447
|
-
return typeof read === "function" ? read() : null;
|
|
448
|
-
}
|
|
449
|
-
/** A handle over `area` (the container element, read when a change runs). */
|
|
450
|
-
function createAnimatedLayout(area) {
|
|
451
|
-
return Object.freeze(Object.defineProperty({}, AREA, { value: area }));
|
|
452
|
-
}
|
|
453
|
-
function areaOf(handle, element) {
|
|
454
|
-
const area = readArea(handle);
|
|
455
|
-
return area != null && area !== element && area.contains(element) ? area : null;
|
|
456
|
-
}
|
|
457
|
-
//#endregion
|
|
458
|
-
export { themeReducesMotion as S, writePresentedResolve as _, reducedMotionCrossFade as a, sharedWeakMap as b, motionRoleOf as c, registerMotionTable as d, registerSpringRole as f, registerPresentedOffset as g, clearPresentedResolve as h, cubicBezier as i, parseCssEasing as l, batchPresented as m, createAnimatedLayout as n, registerReducedMotionCrossFade as o, isSpring as p, readArea as r, motionRoleIn as s, areaOf as t, parseMotionRoleValue as u, sharedMap as v, sharedWeakSet as x, sharedState as y };
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
const IDLE = {
|
|
2
|
-
originX: 0,
|
|
3
|
-
originY: 0,
|
|
4
|
-
phase: "idle"
|
|
5
|
-
};
|
|
6
|
-
function travelled(gesture, x, y) {
|
|
7
|
-
return Math.hypot(x - gesture.originX, y - gesture.originY) > 10;
|
|
8
|
-
}
|
|
9
|
-
function to(gesture, phase, paint, timer) {
|
|
10
|
-
return {
|
|
11
|
-
gesture: {
|
|
12
|
-
...gesture,
|
|
13
|
-
phase
|
|
14
|
-
},
|
|
15
|
-
paint,
|
|
16
|
-
timer
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
function stay(gesture, paint) {
|
|
20
|
-
return {
|
|
21
|
-
gesture,
|
|
22
|
-
paint,
|
|
23
|
-
timer: null
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
function stepArmed(gesture, event) {
|
|
27
|
-
switch (event.kind) {
|
|
28
|
-
case "move": return travelled(gesture, event.x, event.y) ? to(gesture, "dead", "none", null) : stay(gesture, "none");
|
|
29
|
-
case "cancel": return to(gesture, "dead", "none", null);
|
|
30
|
-
case "onset": return to(gesture, "pressed", "on", null);
|
|
31
|
-
case "up": return to(gesture, "flash", "on", "flash");
|
|
32
|
-
default: return stay(gesture, "none");
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
function stepPressed(gesture, event) {
|
|
36
|
-
if (event.kind === "move" && !travelled(gesture, event.x, event.y)) return stay(gesture, "on");
|
|
37
|
-
if (event.kind === "move" || event.kind === "cancel") return to(gesture, "dead", "none", null);
|
|
38
|
-
if (event.kind === "up") return to(gesture, "fading", "fading", "fade");
|
|
39
|
-
return stay(gesture, "on");
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* 一个事件,一个答案。
|
|
43
|
-
*/
|
|
44
|
-
function pressGestureStep(gesture, event) {
|
|
45
|
-
if (event.kind === "down") {
|
|
46
|
-
if (event.delayed === false) return {
|
|
47
|
-
gesture: {
|
|
48
|
-
originX: event.x,
|
|
49
|
-
originY: event.y,
|
|
50
|
-
phase: "pressed"
|
|
51
|
-
},
|
|
52
|
-
paint: "on",
|
|
53
|
-
timer: null
|
|
54
|
-
};
|
|
55
|
-
return {
|
|
56
|
-
gesture: {
|
|
57
|
-
originX: event.x,
|
|
58
|
-
originY: event.y,
|
|
59
|
-
phase: "armed"
|
|
60
|
-
},
|
|
61
|
-
paint: "none",
|
|
62
|
-
timer: "onset"
|
|
63
|
-
};
|
|
64
|
-
}
|
|
65
|
-
switch (gesture.phase) {
|
|
66
|
-
case "armed": return stepArmed(gesture, event);
|
|
67
|
-
case "pressed": return stepPressed(gesture, event);
|
|
68
|
-
case "flash": return event.kind === "flashEnd" ? to(gesture, "fading", "fading", "fade") : stay(gesture, "on");
|
|
69
|
-
case "fading": return event.kind === "fadeEnd" ? stay(IDLE, "none") : stay(gesture, "fading");
|
|
70
|
-
case "dead": return event.kind === "up" ? stay(IDLE, "none") : stay(gesture, "none");
|
|
71
|
-
case "idle": return stay(IDLE, "none");
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
function idlePressGesture() {
|
|
75
|
-
return IDLE;
|
|
76
|
-
}
|
|
77
|
-
//#endregion
|
|
78
|
-
export { pressGestureStep as n, idlePressGesture as t };
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
let isModelActivation = false;
|
|
2
|
-
/**
|
|
3
|
-
* 按压模型派发的那次行激活是不是正在进行。只在那次派发的同步过程中为真,
|
|
4
|
-
* 所以把激活转交给里面链接的行,能分清这是模型的 click 还是浏览器多出来的那个。
|
|
5
|
-
*/
|
|
6
|
-
function isMenuPressActivation() {
|
|
7
|
-
return isModelActivation;
|
|
8
|
-
}
|
|
9
|
-
/** 在「模型激活」标记下执行一段同步代码。 */
|
|
10
|
-
function runAsMenuPressActivation(run) {
|
|
11
|
-
isModelActivation = true;
|
|
12
|
-
try {
|
|
13
|
-
run();
|
|
14
|
-
} finally {
|
|
15
|
-
isModelActivation = false;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
let swallower = null;
|
|
19
|
-
function disarm() {
|
|
20
|
-
if (swallower == null) return;
|
|
21
|
-
swallower.isArmed = false;
|
|
22
|
-
swallower.cancelsTouchEnd = false;
|
|
23
|
-
swallower.touchIdentifier = null;
|
|
24
|
-
if (swallower.timer != null) {
|
|
25
|
-
clearTimeout(swallower.timer);
|
|
26
|
-
swallower.timer = null;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
function onWindowClickCapture(event) {
|
|
30
|
-
if (swallower == null || !swallower.isArmed) return;
|
|
31
|
-
if (event.detail === 0 || isModelActivation) return;
|
|
32
|
-
event.preventDefault();
|
|
33
|
-
event.stopImmediatePropagation();
|
|
34
|
-
disarm();
|
|
35
|
-
}
|
|
36
|
-
function onWindowTouchEndCapture(event) {
|
|
37
|
-
if (swallower == null || !swallower.isArmed || !swallower.cancelsTouchEnd || !event.cancelable) return;
|
|
38
|
-
const { touchIdentifier } = swallower;
|
|
39
|
-
if (touchIdentifier != null && event.changedTouches != null && !Array.from(event.changedTouches).some((touch) => touch.identifier === touchIdentifier)) return;
|
|
40
|
-
event.preventDefault();
|
|
41
|
-
disarm();
|
|
42
|
-
}
|
|
43
|
-
/** 布下吞 click 的口子。同一个文档只装一次监听。 */
|
|
44
|
-
function armStrayClick(doc, options = {}) {
|
|
45
|
-
const view = doc.defaultView;
|
|
46
|
-
if (view == null) return;
|
|
47
|
-
if (swallower == null || swallower.doc !== doc) {
|
|
48
|
-
if (swallower != null) {
|
|
49
|
-
swallower.doc.defaultView?.removeEventListener("click", onWindowClickCapture, true);
|
|
50
|
-
swallower.doc.defaultView?.removeEventListener("touchend", onWindowTouchEndCapture, true);
|
|
51
|
-
swallower.doc.removeEventListener("pointerdown", disarm, true);
|
|
52
|
-
}
|
|
53
|
-
view.addEventListener("click", onWindowClickCapture, true);
|
|
54
|
-
view.addEventListener("touchend", onWindowTouchEndCapture, {
|
|
55
|
-
capture: true,
|
|
56
|
-
passive: false
|
|
57
|
-
});
|
|
58
|
-
doc.addEventListener("pointerdown", disarm, true);
|
|
59
|
-
swallower = {
|
|
60
|
-
doc,
|
|
61
|
-
isArmed: false,
|
|
62
|
-
timer: null,
|
|
63
|
-
cancelsTouchEnd: false,
|
|
64
|
-
touchIdentifier: null
|
|
65
|
-
};
|
|
66
|
-
}
|
|
67
|
-
disarm();
|
|
68
|
-
swallower.isArmed = true;
|
|
69
|
-
swallower.cancelsTouchEnd = options.cancelsTouchEnd === true;
|
|
70
|
-
swallower.touchIdentifier = options.touchIdentifier ?? null;
|
|
71
|
-
swallower.timer = setTimeout(disarm, 400);
|
|
72
|
-
}
|
|
73
|
-
/** 撤掉已经布下的口子。卸载和测试里用。 */
|
|
74
|
-
function resetMenuPress() {
|
|
75
|
-
disarm();
|
|
76
|
-
}
|
|
77
|
-
/**
|
|
78
|
-
* 跟踪某个指针对应的 touch 标识。指针按下之后的下一个 touchstart 就是它的:
|
|
79
|
-
* WebKit 给 touch 的标识和指针 id 相同;Chromium 用自己的标识,这时唯一的那个改变的 touch 就是。
|
|
80
|
-
* 有好几个 touch 而且没有一个和指针 id 对得上,就说不出是哪根。
|
|
81
|
-
* 返回停止跟踪的函数,`identifier()` 取当前读到的标识。
|
|
82
|
-
*/
|
|
83
|
-
function trackTouchOfPointer(view, pointerId) {
|
|
84
|
-
let identifier = null;
|
|
85
|
-
const stop = () => view.removeEventListener("touchstart", onTouchStart, true);
|
|
86
|
-
function onTouchStart(event) {
|
|
87
|
-
stop();
|
|
88
|
-
const touches = event.changedTouches == null ? [] : Array.from(event.changedTouches);
|
|
89
|
-
if (touches.some((touch) => touch.identifier === pointerId)) identifier = pointerId;
|
|
90
|
-
else identifier = touches.length === 1 ? touches[0].identifier : null;
|
|
91
|
-
}
|
|
92
|
-
view.addEventListener("touchstart", onTouchStart, true);
|
|
93
|
-
return {
|
|
94
|
-
identifier: () => identifier,
|
|
95
|
-
stop
|
|
96
|
-
};
|
|
97
|
-
}
|
|
98
|
-
//#endregion
|
|
99
|
-
export { trackTouchOfPointer as a, runAsMenuPressActivation as i, isMenuPressActivation as n, resetMenuPress as r, armStrayClick as t };
|
|
@@ -44,8 +44,8 @@ declare const __VLS_base: import("vue").DefineComponent<TokenProps, {}, {}, {},
|
|
|
44
44
|
}>, {
|
|
45
45
|
size: TokenSize;
|
|
46
46
|
labelHidden: boolean;
|
|
47
|
-
color: "default" | "blue" | "cyan" | "gray" | "green" | "orange" | "pink" | "purple" | "red" | "teal" | "yellow";
|
|
48
47
|
disabled: boolean;
|
|
48
|
+
color: "default" | "blue" | "cyan" | "gray" | "green" | "orange" | "pink" | "purple" | "red" | "teal" | "yellow";
|
|
49
49
|
removable: boolean;
|
|
50
50
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
51
51
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as observeContent } from "./sharedMutationObserver-Dvh3N1N2.js";
|
|
2
1
|
import { n as observeResize, t as isResizeObserved } from "./sharedResizeObserver-BekhnB3E.js";
|
|
2
|
+
import { t as observeContent } from "./sharedMutationObserver-Dvh3N1N2.js";
|
|
3
3
|
import { onScopeDispose, ref, toValue, watch } from "vue";
|
|
4
4
|
//#region src/Text/useTruncation.ts
|
|
5
5
|
/** `false` 关掉提示。`true` 和缺省都出现在上方。 */
|