@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
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
//#region src/utils/nodeType.ts
|
|
2
|
+
/**
|
|
3
|
+
* 对应原版 Astryx 的 `utils/nodeType`。
|
|
4
|
+
*
|
|
5
|
+
* 按 `nodeType` 判断节点种类,不用 `instanceof`:别的窗口(iframe)里的节点也认得出来。
|
|
6
|
+
*/
|
|
7
|
+
/** `value` 是不是一个节点,不管来自哪个窗口。 */
|
|
8
|
+
function isNode(value) {
|
|
9
|
+
return typeof value === "object" && value != null && typeof value.nodeType === "number";
|
|
10
|
+
}
|
|
11
|
+
/** `value` 是不是一个元素,不管来自哪个窗口。 */
|
|
12
|
+
function isElement(value) {
|
|
13
|
+
return isNode(value) && value.nodeType === 1;
|
|
14
|
+
}
|
|
15
|
+
/** `value` 是不是一个 shadow root,不管来自哪个窗口。 */
|
|
16
|
+
function isShadowRoot(value) {
|
|
17
|
+
return isNode(value) && value.nodeType === 11 && "host" in value;
|
|
18
|
+
}
|
|
19
|
+
/** `value` 是不是一个文档,不管来自哪个窗口。 */
|
|
20
|
+
function isDocument(value) {
|
|
21
|
+
return isNode(value) && value.nodeType === 9;
|
|
22
|
+
}
|
|
23
|
+
/** `value` 是不是一个 HTML 元素,不管来自哪个窗口:看命名空间,在窗口之间搬过的元素也认得出来。 */
|
|
24
|
+
function isHTMLElement(value) {
|
|
25
|
+
return isElement(value) && value.namespaceURI === "http://www.w3.org/1999/xhtml";
|
|
26
|
+
}
|
|
27
|
+
//#endregion
|
|
28
|
+
//#region src/utils/flatTree.ts
|
|
29
|
+
/**
|
|
30
|
+
* 对应原版 Astryx 的 `utils/flatTree`。
|
|
31
|
+
*
|
|
32
|
+
* 沿“扁平树”往上走:浏览器滚动和派发事件走的就是这棵树。
|
|
33
|
+
* 被分配进 slot 的节点上一层是它的 slot,shadow root 上一层是它的宿主。
|
|
34
|
+
*/
|
|
35
|
+
/** 节点在扁平树里的父节点,穿过 shadow root 到宿主。 */
|
|
36
|
+
function parentAcrossShadow(node) {
|
|
37
|
+
const slot = node.assignedSlot;
|
|
38
|
+
if (slot != null) return slot;
|
|
39
|
+
if (node.parentNode != null) return isShadowRoot(node.parentNode) ? node.parentNode.host : node.parentNode;
|
|
40
|
+
return null;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Whether `node` is `ancestor` or below it along the flat tree: across an open
|
|
44
|
+
* shadow root to its host, which `Node.contains` does not follow.
|
|
45
|
+
*/
|
|
46
|
+
function containsAlongFlatTree(ancestor, node) {
|
|
47
|
+
for (let at = node; at != null; at = parentAcrossShadow(at)) if (at === ancestor) return true;
|
|
48
|
+
return false;
|
|
49
|
+
}
|
|
50
|
+
/** The focused element of `doc`, inside open shadow roots too. */
|
|
51
|
+
function deepActiveElement(doc) {
|
|
52
|
+
let active = doc?.activeElement ?? null;
|
|
53
|
+
while (active?.shadowRoot?.activeElement != null) active = active.shadowRoot.activeElement;
|
|
54
|
+
return active;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* The host of a shadow root, open or closed and from any window, and null for
|
|
58
|
+
* any other node.
|
|
59
|
+
*/
|
|
60
|
+
function shadowHostOf(node) {
|
|
61
|
+
return isShadowRoot(node) ? node.host : null;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* The shadow roots from `node` out to its document, innermost first, each with
|
|
65
|
+
* its host. Empty when `node` is not a shadow root.
|
|
66
|
+
*/
|
|
67
|
+
function shadowRootsOutward(node) {
|
|
68
|
+
const roots = [];
|
|
69
|
+
for (let at = node, host = shadowHostOf(at); host != null; at = host.getRootNode(), host = shadowHostOf(at)) roots.push({
|
|
70
|
+
root: at,
|
|
71
|
+
host
|
|
72
|
+
});
|
|
73
|
+
return roots;
|
|
74
|
+
}
|
|
75
|
+
//#endregion
|
|
76
|
+
//#region src/utils/sharedRealm.ts
|
|
77
|
+
/**
|
|
78
|
+
* 对应原版 Astryx 的 `utils/sharedRealm`。
|
|
79
|
+
*
|
|
80
|
+
* 整个 JavaScript 运行环境里按键共享一份值:页面上同时加载了两份 core(比如包本身和一份复制进项目的副本)时,
|
|
81
|
+
* 两边拿同一个键读到的是同一份值。不碰 DOM,服务端也能用。
|
|
82
|
+
*/
|
|
83
|
+
/**
|
|
84
|
+
* 共享值的注册键。版本号表示值的形状:形状变了、旧副本读不懂新值时就升版本,
|
|
85
|
+
* 两边各用各的。
|
|
86
|
+
*/
|
|
87
|
+
function sharedKey(name, version) {
|
|
88
|
+
return Symbol.for(`@astryx-vue/core/${name}/v${version}`);
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* `key` 下的共享值,第一次用时创建。
|
|
92
|
+
* `accepts` 防键撞车:它不认的值原样留着,这一份自己另建一个。
|
|
93
|
+
*/
|
|
94
|
+
function realmValue(key, create, accepts = () => true) {
|
|
95
|
+
const realm = globalThis;
|
|
96
|
+
if (Object.hasOwn(realm, key)) {
|
|
97
|
+
const existing = realm[key];
|
|
98
|
+
return accepts(existing) ? existing : create();
|
|
99
|
+
}
|
|
100
|
+
const value = create();
|
|
101
|
+
realm[key] = value;
|
|
102
|
+
return value;
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* 按注册名在整页共享一份值:计数器、开关,或装着几样东西的对象。
|
|
106
|
+
* 名字写成 `<目录>/<文件>/<绑定名>`(短横线小写),值的形状变了就升版本。
|
|
107
|
+
*/
|
|
108
|
+
function sharedState(name, version, create) {
|
|
109
|
+
return realmValue(sharedKey(name, version), create);
|
|
110
|
+
}
|
|
111
|
+
/** 按注册名共享的 Map。 */
|
|
112
|
+
function sharedMap(name, version) {
|
|
113
|
+
return sharedState(name, version, () => /* @__PURE__ */ new Map());
|
|
114
|
+
}
|
|
115
|
+
/** 按注册名共享的 WeakMap,例如按文档存的状态。 */
|
|
116
|
+
function sharedWeakMap(name, version) {
|
|
117
|
+
return sharedState(name, version, () => /* @__PURE__ */ new WeakMap());
|
|
118
|
+
}
|
|
119
|
+
/** 按注册名共享的 WeakSet,例如登记过的值。 */
|
|
120
|
+
function sharedWeakSet(name, version) {
|
|
121
|
+
return sharedState(name, version, () => /* @__PURE__ */ new WeakSet());
|
|
122
|
+
}
|
|
123
|
+
//#endregion
|
|
124
|
+
export { sharedWeakMap as a, deepActiveElement as c, shadowRootsOutward as d, isDocument as f, isNode as h, sharedState as i, parentAcrossShadow as l, isHTMLElement as m, sharedKey as n, sharedWeakSet as o, isElement as p, sharedMap as r, containsAlongFlatTree as s, realmValue as t, shadowHostOf as u };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as usePositionedLayer, t as useDismiss } from "./useDismiss-
|
|
1
|
+
import { n as usePositionedLayer, t as useDismiss } from "./useDismiss-C1dyveme.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
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as matchesFocusVisible } from "./tooltipTriggerRules-
|
|
1
|
+
import { d as isTopLayer, l as useLayerDepth, p as pushLayer, s as isTextEntryControl, t as getInteractionModality } from "./interactionModality-CyU67ucP.js";
|
|
2
|
+
import { t as matchesFocusVisible } from "./tooltipTriggerRules-BLBEkBcK.js";
|
|
3
3
|
import { i as isFocusable } from "./focus-x7mxEqjR.js";
|
|
4
4
|
import { onScopeDispose } from "vue";
|
|
5
5
|
//#region src/layer/useHoverLayerDismiss.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as usePositionedLayer, t as useDismiss } from "./useDismiss-
|
|
1
|
+
import { n as usePositionedLayer, t as useDismiss } from "./useDismiss-C1dyveme.js";
|
|
2
2
|
import { computed, shallowRef, toValue, useId } from "vue";
|
|
3
3
|
//#region src/composables/useLayer.ts
|
|
4
4
|
/**
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { c as isTrackedByGroup, d as isInsideScrollView, h as msSinceInput, s as PRESS_GROUP_ITEM_ATTRIBUTE } from "./pressFeedback-CEUPQWIS.js";
|
|
2
|
+
import { i as createActionGroupTracker, o as resolveGroupTouch, r as GROUP_PRESS_POINTERS } from "./useTouchHitArea-BMDBe36j.js";
|
|
3
|
+
import { i as PRESS_SLOP_PX, n as PRESS_ONSET_MS } from "./pressGesture-BzIBmKF2.js";
|
|
3
4
|
import { getCurrentScope, onScopeDispose, toValue, watch } from "vue";
|
|
4
5
|
//#region src/composables/internal/useActionGroupTracking.ts
|
|
5
6
|
const DISABLED = ":disabled, [aria-disabled=\"true\"]";
|
|
@@ -50,7 +51,7 @@ function useActionGroupTracking(rootRef, options) {
|
|
|
50
51
|
function onMove(event) {
|
|
51
52
|
if (event.pointerId !== pointerId) return;
|
|
52
53
|
if (pending != null) {
|
|
53
|
-
if (Math.hypot(event.clientX - pending.x, event.clientY - pending.y) >
|
|
54
|
+
if (Math.hypot(event.clientX - pending.x, event.clientY - pending.y) > PRESS_SLOP_PX) finish();
|
|
54
55
|
return;
|
|
55
56
|
}
|
|
56
57
|
tracker.move(event.clientX, event.clientY);
|
|
@@ -98,7 +99,7 @@ function useActionGroupTracking(rootRef, options) {
|
|
|
98
99
|
begin(root, x, y, target);
|
|
99
100
|
return;
|
|
100
101
|
}
|
|
101
|
-
const wait = Math.max(0,
|
|
102
|
+
const wait = Math.max(0, PRESS_ONSET_MS - msSinceInput(event.timeStamp, event));
|
|
102
103
|
pending = {
|
|
103
104
|
x,
|
|
104
105
|
y,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { m as isImeKeyEvent } from "./interactionModality-CyU67ucP.js";
|
|
2
2
|
import { computed, nextTick, onScopeDispose, ref, useId, watch } from "vue";
|
|
3
3
|
//#region src/composables/internal/comboboxFieldProps.ts
|
|
4
4
|
function hasModifier(event) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as useLayerTeleportTarget } from "./useLayerMountTarget-BmZyeKWE.js";
|
|
2
2
|
import { i as useLayerGutter, s as resolveLayerGutter } from "./context-M-er0-Rk.js";
|
|
3
|
-
import {
|
|
3
|
+
import { l as useLayerDepth, p as pushLayer } from "./interactionModality-CyU67ucP.js";
|
|
4
4
|
import { nextTick, onScopeDispose, ref, toValue, watch } from "vue";
|
|
5
5
|
//#region src/layer/anchorClear.ts
|
|
6
6
|
function overlapsAnchor(anchor, top, left, layer) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as trackInteractionModality, m as isImeKeyEvent } from "./interactionModality-CyU67ucP.js";
|
|
2
2
|
import { i as hasInnerRegionHolding, n as collapseRadioGroups, o as precedes, r as focusablesIn, s as registerRegion, t as attemptFocus } from "./focusRegion-CmDg7_4b.js";
|
|
3
|
-
import { t as focusForLastInput } from "./focusReturn-
|
|
3
|
+
import { t as focusForLastInput } from "./focusReturn-CsEp47Wa.js";
|
|
4
4
|
import { onScopeDispose, ref, toValue, watch } from "vue";
|
|
5
5
|
//#region src/composables/useFocusTrap.ts
|
|
6
6
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as _sfc_main } from "./FieldIcon-DMtfe1Ne.js";
|
|
2
|
-
import { t as _sfc_main$1 } from "./FieldInfoTip-
|
|
2
|
+
import { t as _sfc_main$1 } from "./FieldInfoTip-1zW3QTQG.js";
|
|
3
3
|
import { computed, toValue } from "vue";
|
|
4
4
|
//#region src/composables/useInputStatusIcon.ts
|
|
5
5
|
/**
|
|
@@ -1,4 +1,26 @@
|
|
|
1
1
|
import { ref, toValue, watch } from "vue";
|
|
2
|
+
//#region src/utils/isRtlElement.ts
|
|
3
|
+
/**
|
|
4
|
+
* @file isRtlElement.ts
|
|
5
|
+
* @input DOM element (nullable)
|
|
6
|
+
* @output Exports isRtlElement helper resolving an element's computed text
|
|
7
|
+
* direction
|
|
8
|
+
* @position Internal hook utility; used by useListFocus and useGridFocus to
|
|
9
|
+
* auto-detect RTL for arrow-key navigation (same getComputedStyle precedent
|
|
10
|
+
* as Resizable's ResizeHandle drag deltas).
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Whether `el` renders right-to-left, per its computed `direction`.
|
|
14
|
+
*
|
|
15
|
+
* SSR-safe: returns false when `el` is null or no DOM is available. Callers
|
|
16
|
+
* should invoke this lazily (on keydown, not on render) so getComputedStyle
|
|
17
|
+
* runs only when a horizontal arrow key is actually handled.
|
|
18
|
+
*/
|
|
19
|
+
function isRtlElement(el) {
|
|
20
|
+
if (!el || typeof window === "undefined") return false;
|
|
21
|
+
return window.getComputedStyle(el).direction === "rtl";
|
|
22
|
+
}
|
|
23
|
+
//#endregion
|
|
2
24
|
//#region src/composables/useListFocus.ts
|
|
3
25
|
const TEXT_INPUT_TYPES = /* @__PURE__ */ new Set([
|
|
4
26
|
"text",
|
|
@@ -13,10 +35,6 @@ function isHiddenWithin(el, listEl) {
|
|
|
13
35
|
const hidden = el.parentElement?.closest("[hidden],[inert]");
|
|
14
36
|
return hidden != null && hidden !== listEl && listEl.contains(hidden);
|
|
15
37
|
}
|
|
16
|
-
function isRtlElement(el) {
|
|
17
|
-
if (el == null || typeof window === "undefined") return false;
|
|
18
|
-
return window.getComputedStyle(el).direction === "rtl";
|
|
19
|
-
}
|
|
20
38
|
function getContentEditableRoot(el) {
|
|
21
39
|
if (el.isContentEditable) return el;
|
|
22
40
|
const candidate = el.closest("[contenteditable]");
|
|
@@ -257,4 +275,4 @@ function useListFocus(options = {}) {
|
|
|
257
275
|
};
|
|
258
276
|
}
|
|
259
277
|
//#endregion
|
|
260
|
-
export { useListFocus as t };
|
|
278
|
+
export { isRtlElement as n, useListFocus as t };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as readLayerScoped, t as defineLayerScopedKey } from "./scopedProvide-C-Df7c15.js";
|
|
2
2
|
import { t as _sfc_main$4 } from "./Icon-BCHo7W0x.js";
|
|
3
3
|
import { o as useComponentMessages } from "./context-B8IEFCDR.js";
|
|
4
|
-
import { t as _sfc_main$5 } from "./Item-
|
|
4
|
+
import { t as _sfc_main$5 } from "./Item-CzKm9wxQ.js";
|
|
5
5
|
import { t as _sfc_main$6 } from "./CheckboxIndicator-fH4d-JE1.js";
|
|
6
6
|
import { t as dropdownMenuMessages } from "./dropdown-menu-BDu4gWwQ.js";
|
|
7
7
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, inject, mergeModels, mergeProps, openBlock, provide, ref, renderSlot, toDisplayString, unref, useAttrs, useModel, useSlots, watch, withCtx } from "vue";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as useMediaQuery } from "./useMediaQuery-BzXGT1Aw.js";
|
|
2
|
-
import { t as useListFocus } from "./useListFocus-
|
|
2
|
+
import { t as useListFocus } from "./useListFocus-CkHfsZp0.js";
|
|
3
3
|
import { t as createHideTimer } from "./hoverIntent-DMHGb85c.js";
|
|
4
4
|
import { getCurrentScope, onScopeDispose, toValue, watch } from "vue";
|
|
5
5
|
/**
|
|
@@ -1,18 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { h as msSinceInput } from "./pressFeedback-CEUPQWIS.js";
|
|
2
|
+
import { i as withoutClickGuard, r as disarmEveryClickGuard, t as armClickGuard } from "./clickGuard-ChKuogmR.js";
|
|
3
|
+
import { h as currentGesture } from "./interactionModality-CyU67ucP.js";
|
|
4
|
+
import { t as focusForLastInput } from "./focusReturn-CsEp47Wa.js";
|
|
4
5
|
import { getCurrentScope, onScopeDispose, toValue } from "vue";
|
|
5
6
|
//#region src/composables/useLongPress.ts
|
|
6
7
|
const DEFAULT_DELAY_MS = 500;
|
|
7
8
|
const DEFAULT_MOVE_CANCEL_PX = 10;
|
|
8
|
-
/** 大于这个数的时间戳是 epoch 毫秒(测试环境常见),不是页面时钟上的毫秒。 */
|
|
9
|
-
const EPOCH_STAMP_FLOOR = 1e11;
|
|
10
|
-
/** 把触摸事件的时间戳换成现在这一刻之前多久(毫秒)。读不出来按 0 算。 */
|
|
11
|
-
function ageOf(stamp) {
|
|
12
|
-
if (stamp == null || !Number.isFinite(stamp)) return 0;
|
|
13
|
-
const now = stamp > EPOCH_STAMP_FLOOR ? Date.now() : typeof performance === "undefined" ? 0 : performance.now();
|
|
14
|
-
return Math.max(0, now - stamp);
|
|
15
|
-
}
|
|
16
9
|
function touchPoint(event) {
|
|
17
10
|
const touch = event.touches?.[0] ?? event.changedTouches?.[0];
|
|
18
11
|
return touch == null ? null : {
|
|
@@ -98,7 +91,7 @@ function useLongPress(options) {
|
|
|
98
91
|
}
|
|
99
92
|
const point = touchPoint(event);
|
|
100
93
|
if (point == null) return;
|
|
101
|
-
start(point,
|
|
94
|
+
start(point, msSinceInput(event.timeStamp, event));
|
|
102
95
|
if (timer != null && Number.isFinite(event.timeStamp)) deadline = event.timeStamp + delayMs;
|
|
103
96
|
}
|
|
104
97
|
function onTouchMove(event) {
|
|
@@ -131,6 +124,60 @@ function useLongPress(options) {
|
|
|
131
124
|
start
|
|
132
125
|
};
|
|
133
126
|
}
|
|
127
|
+
//#endregion
|
|
128
|
+
//#region src/composables/internal/menuPressActivation.ts
|
|
129
|
+
/**
|
|
130
|
+
* 菜单按压模型的两件小事:「正在派发按压激活」的标记,以及跟踪某个指针对应的 touch 标识。
|
|
131
|
+
*
|
|
132
|
+
* 按压模型在松开时已经替那一行派发过一次 click,浏览器随后还会再补一个。吞掉那一个的是全包共用的
|
|
133
|
+
* click 守卫(utils/clickGuard.ts):手势宿主、动作组和菜单都用它,只有一份监听、一个时间窗口。
|
|
134
|
+
* 菜单松开时布下的守卫一直装着(`staysInstalled`),手指松开时还取消挑选那根手指的 touchend,
|
|
135
|
+
* 浏览器就不会为它生成 click。
|
|
136
|
+
*/
|
|
137
|
+
let isModelActivation = false;
|
|
138
|
+
/**
|
|
139
|
+
* 按压模型派发的那次行激活是不是正在进行。只在那次派发的同步过程中为真,
|
|
140
|
+
* 所以把激活转交给里面链接的行,能分清这是模型的 click 还是浏览器多出来的那个。
|
|
141
|
+
*/
|
|
142
|
+
function isMenuPressActivation() {
|
|
143
|
+
return isModelActivation;
|
|
144
|
+
}
|
|
145
|
+
/** 在「模型激活」标记下执行一段同步代码;其间派发的 click 都不被守卫吞掉。 */
|
|
146
|
+
function runAsMenuPressActivation(run) {
|
|
147
|
+
withoutClickGuard(() => {
|
|
148
|
+
isModelActivation = true;
|
|
149
|
+
try {
|
|
150
|
+
run();
|
|
151
|
+
} finally {
|
|
152
|
+
isModelActivation = false;
|
|
153
|
+
}
|
|
154
|
+
});
|
|
155
|
+
}
|
|
156
|
+
/** 撤掉已经布下的守卫。卸载和测试里用。 */
|
|
157
|
+
function resetMenuPress() {
|
|
158
|
+
disarmEveryClickGuard();
|
|
159
|
+
}
|
|
160
|
+
/**
|
|
161
|
+
* 跟踪某个指针对应的 touch 标识。指针按下之后的下一个 touchstart 就是它的:
|
|
162
|
+
* WebKit 给 touch 的标识和指针 id 相同;Chromium 用自己的标识,这时唯一的那个改变的 touch 就是。
|
|
163
|
+
* 有好几个 touch 而且没有一个和指针 id 对得上,就说不出是哪根。
|
|
164
|
+
* 返回停止跟踪的函数,`identifier()` 取当前读到的标识。
|
|
165
|
+
*/
|
|
166
|
+
function trackTouchOfPointer(view, pointerId) {
|
|
167
|
+
let identifier = null;
|
|
168
|
+
const stop = () => view.removeEventListener("touchstart", onTouchStart, true);
|
|
169
|
+
function onTouchStart(event) {
|
|
170
|
+
stop();
|
|
171
|
+
const touches = event.changedTouches == null ? [] : Array.from(event.changedTouches);
|
|
172
|
+
if (touches.some((touch) => touch.identifier === pointerId)) identifier = pointerId;
|
|
173
|
+
else identifier = touches.length === 1 ? touches[0].identifier : null;
|
|
174
|
+
}
|
|
175
|
+
view.addEventListener("touchstart", onTouchStart, true);
|
|
176
|
+
return {
|
|
177
|
+
identifier: () => identifier,
|
|
178
|
+
stop
|
|
179
|
+
};
|
|
180
|
+
}
|
|
134
181
|
const AUTOSCROLL_STEP_PX = 6;
|
|
135
182
|
const AUTOSCROLL_INTERVAL_MS = 16;
|
|
136
183
|
/** `onTick` 在每次真的滚动之后调用:行在静止的指针下面移动了,要重新看指针下是哪一行。 */
|
|
@@ -507,9 +554,10 @@ function useMenuPress(options) {
|
|
|
507
554
|
/** 手指松开时挑选的那根手指的 touchend 要取消;鼠标和笔没有 touchend。 */
|
|
508
555
|
function armAfterRelease(doc, native, touchIdentifier) {
|
|
509
556
|
const isTouch = native?.pointerType === "touch";
|
|
510
|
-
|
|
557
|
+
armClickGuard(doc, {
|
|
558
|
+
staysInstalled: true,
|
|
511
559
|
cancelsTouchEnd: isTouch,
|
|
512
|
-
touchIdentifier
|
|
560
|
+
touchIdentifier: touchIdentifier ?? void 0
|
|
513
561
|
});
|
|
514
562
|
}
|
|
515
563
|
function endGesture() {
|
|
@@ -721,4 +769,4 @@ function useMenuPress(options) {
|
|
|
721
769
|
};
|
|
722
770
|
}
|
|
723
771
|
//#endregion
|
|
724
|
-
export {
|
|
772
|
+
export { isMenuPressActivation as a, MENU_PRESS_MARKER as i, MENU_PRESS_SETTLE_MS as n, resetMenuPress as o, menuPressStep as r, useLongPress as s, useMenuPress as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as
|
|
1
|
+
import { a as PRESS_ACTION_ATTRIBUTE, i as PRESSABLE_ATTRIBUTE, n as installPressFeedback, o as PRESS_CONTAINER_ATTRIBUTE } from "./pressFeedback-CEUPQWIS.js";
|
|
2
2
|
import { getCurrentInstance, getCurrentScope, onMounted, onScopeDispose } from "vue";
|
|
3
3
|
import "../styles/pressable.css";
|
|
4
4
|
//#region src/composables/usePressFeedback.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { m as isImeKeyEvent } from "./interactionModality-CyU67ucP.js";
|
|
2
2
|
import { t as isApplePlatform } from "./isApplePlatform-B1ju6F5B.js";
|
|
3
3
|
import { r as registerResizableChannel } from "./resizableChannel-3vivrEcT.js";
|
|
4
4
|
import { computed, onBeforeUnmount, onMounted, onScopeDispose, reactive, ref, toValue, watch } from "vue";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as focusForLastInput } from "./focusReturn-
|
|
1
|
+
import { a as trackInteractionModality } from "./interactionModality-CyU67ucP.js";
|
|
2
|
+
import { t as focusForLastInput } from "./focusReturn-CsEp47Wa.js";
|
|
3
3
|
import { onScopeDispose, watch } from "vue";
|
|
4
4
|
//#region src/composables/useRestoreFocus.ts
|
|
5
5
|
/**
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { s as registerLayerSurface } from "./useClickableContainer-Dtjg-nkm.js";
|
|
2
2
|
import { r as useResolvedLayerTeleport } from "./useLayerMountTarget-BmZyeKWE.js";
|
|
3
|
-
import {
|
|
4
|
-
import { n as useLayer } from "./tooltipTriggerRules-
|
|
5
|
-
import { t as _sfc_main$1 } from "./LayerContentBoundary-
|
|
3
|
+
import { a as trackInteractionModality } from "./interactionModality-CyU67ucP.js";
|
|
4
|
+
import { n as useLayer } from "./tooltipTriggerRules-BLBEkBcK.js";
|
|
5
|
+
import { t as _sfc_main$1 } from "./LayerContentBoundary-DxeAFxNJ.js";
|
|
6
6
|
import { t as useAnnounce } from "./announce-GU01Oix2.js";
|
|
7
|
-
import { t as useTouchTriggerInternal } from "./useTouchTriggerInternal-
|
|
8
|
-
import { n as opensOnFocus, r as useHoverLayerDismiss, t as createFocusGate } from "./tooltipFocusRules-
|
|
7
|
+
import { t as useTouchTriggerInternal } from "./useTouchTriggerInternal-DwzthF8T.js";
|
|
8
|
+
import { n as opensOnFocus, r as useHoverLayerDismiss, t as createFocusGate } from "./tooltipFocusRules-BnZ1zwAm.js";
|
|
9
9
|
import { Teleport, computed, createBlock, createCommentVNode, createElementVNode, createTextVNode, createVNode, defineComponent, inject, mergeProps, onMounted, onScopeDispose, openBlock, renderSlot, shallowRef, toDisplayString, toValue, unref, vShow, watch, withCtx, withDirectives } from "vue";
|
|
10
10
|
import "../styles/tooltip.css";
|
|
11
11
|
//#region src/Tooltip/TooltipSurface.vue
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as
|
|
2
|
-
import { t as
|
|
1
|
+
import { c as isTrackedByGroup, r as pressFadeMs, s as PRESS_GROUP_ITEM_ATTRIBUTE, t as PRESSED_ATTRIBUTE } from "./pressFeedback-CEUPQWIS.js";
|
|
2
|
+
import { t as armClickGuard } from "./clickGuard-ChKuogmR.js";
|
|
3
3
|
import { toValue, watch } from "vue";
|
|
4
4
|
import "../styles/touch-hit-area.css";
|
|
5
5
|
/** 不长:热区就是目标本身。 */
|
|
@@ -346,7 +346,7 @@ function createActionGroupTracker() {
|
|
|
346
346
|
if (!wasTracking || lifted == null) return null;
|
|
347
347
|
paint(lifted, "fading");
|
|
348
348
|
if (lifted.matches(DISABLED)) return null;
|
|
349
|
-
|
|
349
|
+
armClickGuard(lifted.ownerDocument);
|
|
350
350
|
lifted.click();
|
|
351
351
|
return lifted;
|
|
352
352
|
},
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as INTERACTIVE_SELECTORS } from "./useClickableContainer-Dtjg-nkm.js";
|
|
2
|
-
import { a as
|
|
2
|
+
import { a as trackInteractionModality, h as currentGesture, i as isTextEntrySincePointer, o as isDisabledControl, s as isTextEntryControl } from "./interactionModality-CyU67ucP.js";
|
|
3
3
|
import { onScopeDispose, ref, toValue, watch } from "vue";
|
|
4
4
|
//#region src/composables/internal/tapRecognizer.ts
|
|
5
5
|
/** 「按下去」算作点击的指针类型。笔只在落笔时算:悬停的笔和鼠标一样是悬停。 */
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as matchesFocusVisible } from "./tooltipTriggerRules-
|
|
3
|
-
import { n as tooltipPresentInterestKey } from "./useTooltip-
|
|
4
|
-
import { t as _sfc_main$1 } from "./Tooltip-
|
|
5
|
-
import { n as useTruncation, t as truncatePlacement } from "./useTruncation-
|
|
1
|
+
import { a as trackInteractionModality, t as getInteractionModality } from "./interactionModality-CyU67ucP.js";
|
|
2
|
+
import { t as matchesFocusVisible } from "./tooltipTriggerRules-BLBEkBcK.js";
|
|
3
|
+
import { n as tooltipPresentInterestKey } from "./useTooltip-0_wOd0e5.js";
|
|
4
|
+
import { t as _sfc_main$1 } from "./Tooltip-BUHvOnE1.js";
|
|
5
|
+
import { n as useTruncation, t as truncatePlacement } from "./useTruncation-D_T-ezdp.js";
|
|
6
6
|
import { computed, createBlock, createCommentVNode, defineComponent, openBlock, provide, shallowRef } from "vue";
|
|
7
7
|
//#region src/Text/TruncationTooltip.vue
|
|
8
8
|
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { m as isImeKeyEvent } from "./interactionModality-CyU67ucP.js";
|
|
2
2
|
import { n as isShortcutChord, r as nextTypeaheadBuffer, t as findTypeaheadMatch } from "./typeaheadMatch-Cl-oxKFt.js";
|
|
3
3
|
import { onScopeDispose, ref } from "vue";
|
|
4
4
|
//#region src/composables/useTypeahead.ts
|
|
@@ -3,9 +3,9 @@ import { n as isDevBuild, t as devPropError } from "./devBuild-G249YcdZ.js";
|
|
|
3
3
|
import { t as devWarn } from "./useDevWarning-B2fsk2B-.js";
|
|
4
4
|
import { t as useAnnounce } from "./announce-GU01Oix2.js";
|
|
5
5
|
import { n as useAsyncSource } from "./useAsyncSource-7GTcK8ep.js";
|
|
6
|
-
import { t as useCombobox } from "./useCombobox-
|
|
6
|
+
import { t as useCombobox } from "./useCombobox-DcBbaWYj.js";
|
|
7
7
|
import { t as _sfc_main$3 } from "./Spinner-DEVPDsD0.js";
|
|
8
|
-
import { t as createStillPointerGate } from "./stillPointerGate-
|
|
8
|
+
import { t as createStillPointerGate } from "./stillPointerGate-BX4vr5M-.js";
|
|
9
9
|
import { i as isOptionAction, n as searchResultMessage, r as OptionAction, t as useOptionActionGrid } from "./useOptionActionGrid-C7ibYM_A.js";
|
|
10
10
|
import { Fragment, Teleport, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, guardReactiveProps, h, mergeProps, nextTick, normalizeClass, normalizeProps, normalizeStyle, openBlock, ref, renderList, renderSlot, toDisplayString, toValue, unref, useSlots, useTemplateRef, vShow, watch, withCtx, withDirectives, withModifiers } from "vue";
|
|
11
11
|
import "../styles/layer.css";
|
package/dist/utils/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as isSafeUrl, r as sanitizeUrl, t as isSafeDestination } from "../safeUrl-CsvfcZ9m.js";
|
|
2
2
|
import { n as firstCharacter, r as truncateCharacters, t as characterCount } from "../characters-wTnzjkkR.js";
|
|
3
|
-
import { a as formatDisplayTime12h, i as createISOTimeString, n as clampTime, o as formatDisplayTime24h, r as compareTime, t as adjustTime, u as parseTimeInput } from "../timeParser-nVL5sIwT.js";
|
|
4
3
|
import { n as observeResize, r as unobserveResize } from "../sharedResizeObserver-BekhnB3E.js";
|
|
4
|
+
import { a as formatDisplayTime12h, i as createISOTimeString, n as clampTime, o as formatDisplayTime24h, r as compareTime, t as adjustTime, u as parseTimeInput } from "../timeParser-nVL5sIwT.js";
|
|
5
5
|
import { A as plainDateMin, C as plainDateFromInstant, D as plainDateIsEqual, E as plainDateIsBefore, F as plainDateToISO, I as plainDateToInstant, L as plainDateToday, M as plainDateSetFirstOfMonth, N as plainDateSetStartOfWeek, O as plainDateIsInRange, P as plainDateToDate, R as plainDateWeekFieldName, S as plainDateFromISO, T as plainDateIsAfter, _ as plainDateCreate, a as DATE_FORMAT_MONTH_YEAR, b as plainDateFormat, c as DATE_FORMAT_SHORT_WITH_YEAR, d as SHARED_DATE_FORMAT_OPTIONS, f as formatSharedDate, g as plainDateAddMonths, h as plainDateAddDays, i as DATE_FORMAT_MONTH_ONLY, j as plainDateSetEndOfWeekExclusive, k as plainDateMax, l as DATE_FORMAT_WEEKDAY_ONLY, m as getTimeZoneParts, n as parseDateInput, o as DATE_FORMAT_SHORT, p as getDaysInMonth, r as DATE_FORMAT_LONG, s as DATE_FORMAT_SHORT_WITH_WEEKDAY, t as isLocaleDayFirst, u as DATE_FORMAT_WITH_WEEKDAY, v as plainDateDayOfWeek, w as plainDateGetWeekNumber, x as plainDateFromDate, y as plainDateDiffDays } from "../dateParser-BKoaawL9.js";
|
|
6
6
|
import { a as presentationFromNativePicker, i as pickerPresentationFromNativePicker, n as effectiveInputPresentation, o as resolveInputPresentation, r as effectivePickerPresentation, s as resolvePickerPresentation, t as DEFAULT_INPUT_PRESENTATION } from "../inputPresentation-BOyHkCDr.js";
|
|
7
7
|
import { a as groupItems, i as getItemGroup, n as getInputARIA, o as normalizeDayOfWeek, r as joinAriaIDs, s as chainEventHandlers, t as parseStyleKey } from "../utils-BW62BpDR.js";
|
package/package.json
CHANGED
package/styles/app-shell.css
CHANGED
|
@@ -173,4 +173,40 @@
|
|
|
173
173
|
background-color: transparent;
|
|
174
174
|
isolation: isolate;
|
|
175
175
|
}
|
|
176
|
+
|
|
177
|
+
/* 脚本读到窗口之前(服务端渲染的页面),整条顶栏在手机上先藏起起始和中间内容;读完窗口后由 TopNav 自己收进抽屉。 */
|
|
178
|
+
@media (width < 640px) {
|
|
179
|
+
.astryx-app-shell[data-mobile-unread='sm'] .astryx-top-nav__items,
|
|
180
|
+
.astryx-app-shell[data-mobile-unread='sm'] .astryx-top-nav__center {
|
|
181
|
+
display: none;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
@media (width < 768px) {
|
|
186
|
+
.astryx-app-shell[data-mobile-unread='md'] .astryx-top-nav__items,
|
|
187
|
+
.astryx-app-shell[data-mobile-unread='md'] .astryx-top-nav__center {
|
|
188
|
+
display: none;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
@media (width < 1024px) {
|
|
193
|
+
.astryx-app-shell[data-mobile-unread='lg'] .astryx-top-nav__items,
|
|
194
|
+
.astryx-app-shell[data-mobile-unread='lg'] .astryx-top-nav__center {
|
|
195
|
+
display: none;
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
@media (width < 1280px) {
|
|
200
|
+
.astryx-app-shell[data-mobile-unread='xl'] .astryx-top-nav__items,
|
|
201
|
+
.astryx-app-shell[data-mobile-unread='xl'] .astryx-top-nav__center {
|
|
202
|
+
display: none;
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
@media (width < 1536px) {
|
|
207
|
+
.astryx-app-shell[data-mobile-unread='2xl'] .astryx-top-nav__items,
|
|
208
|
+
.astryx-app-shell[data-mobile-unread='2xl'] .astryx-top-nav__center {
|
|
209
|
+
display: none;
|
|
210
|
+
}
|
|
211
|
+
}
|
|
176
212
|
}
|
package/styles/breadcrumbs.css
CHANGED
package/styles/nav-item.css
CHANGED
|
@@ -27,9 +27,10 @@
|
|
|
27
27
|
color var(--astryx-duration-fast-max) var(--astryx-ease-standard);
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
|
|
31
|
-
.astryx-nav-item--
|
|
32
|
-
.astryx-nav-item--
|
|
30
|
+
/* 最小高度而不是固定高度:行随更大的文字尺寸长高,标签不会跑出行外。 */
|
|
31
|
+
.astryx-nav-item--sm { min-height: var(--astryx-size-element-sm, 28px); padding-inline: var(--astryx-spacing-1, 4px); }
|
|
32
|
+
.astryx-nav-item--md { min-height: var(--astryx-size-element-md, 32px); }
|
|
33
|
+
.astryx-nav-item--lg { min-height: var(--astryx-size-element-lg, 36px); }
|
|
33
34
|
|
|
34
35
|
.astryx-nav-item--block { width: 100%; }
|
|
35
36
|
|
|
@@ -42,6 +43,11 @@
|
|
|
42
43
|
.astryx-nav-item--sm.astryx-nav-item--icon-only { width: 28px; }
|
|
43
44
|
.astryx-nav-item--lg.astryx-nav-item--icon-only { width: 36px; }
|
|
44
45
|
|
|
46
|
+
/* 只有图标的行(收起的轨道)里没有会长高的文字,保持固定的方块。 */
|
|
47
|
+
.astryx-nav-item--icon-only { height: var(--astryx-size-element-md, 32px); }
|
|
48
|
+
.astryx-nav-item--sm.astryx-nav-item--icon-only { height: var(--astryx-size-element-sm, 28px); }
|
|
49
|
+
.astryx-nav-item--lg.astryx-nav-item--icon-only { height: var(--astryx-size-element-lg, 36px); }
|
|
50
|
+
|
|
45
51
|
.astryx-nav-item--plain {
|
|
46
52
|
width: auto;
|
|
47
53
|
height: auto;
|
package/styles/nav-menu.css
CHANGED
|
@@ -40,7 +40,9 @@
|
|
|
40
40
|
.astryx-nav-menu--md { min-width: 200px; }
|
|
41
41
|
.astryx-nav-menu--lg { min-width: 240px; }
|
|
42
42
|
|
|
43
|
+
/* 按住滑过各行时不选中行里的文字;菜单旁边调用方的内容仍可选中。 */
|
|
43
44
|
.astryx-nav-menu-item {
|
|
45
|
+
user-select: none;
|
|
44
46
|
display: flex;
|
|
45
47
|
align-items: center;
|
|
46
48
|
gap: var(--astryx-spacing-2, 8px);
|
|
@@ -52,6 +54,7 @@
|
|
|
52
54
|
background: transparent;
|
|
53
55
|
color: var(--astryx-color-text-primary);
|
|
54
56
|
font: inherit;
|
|
57
|
+
line-height: var(--astryx-text-label-leading, 1.4286);
|
|
55
58
|
text-align: start;
|
|
56
59
|
text-decoration: none;
|
|
57
60
|
cursor: pointer;
|
package/styles/pagination.css
CHANGED
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
.astryx-pagination--sm .astryx-pagination-button,
|
|
98
98
|
.astryx-pagination--sm .astryx-pagination-page {
|
|
99
99
|
min-width: var(--astryx-size-element-sm, 28px);
|
|
100
|
-
height: var(--astryx-size-element-sm, 28px);
|
|
100
|
+
min-height: var(--astryx-size-element-sm, 28px);
|
|
101
101
|
font-size: var(--astryx-text-supporting-size, 0.75rem);
|
|
102
102
|
line-height: var(--astryx-text-supporting-leading, 1.6667);
|
|
103
103
|
}
|
|
@@ -117,7 +117,7 @@
|
|
|
117
117
|
justify-content: center;
|
|
118
118
|
gap: var(--astryx-spacing-1);
|
|
119
119
|
min-width: var(--astryx-size-element-md);
|
|
120
|
-
height: var(--astryx-size-element-md);
|
|
120
|
+
min-height: var(--astryx-size-element-md);
|
|
121
121
|
padding: 0 var(--astryx-spacing-2);
|
|
122
122
|
border: 0;
|
|
123
123
|
border-radius: var(--astryx-radius-element);
|