@astryx-vue/core 0.15.0 → 0.16.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-BH74lTP9.js → AlertDialog-B6EU-qoC.js} +7 -7
- package/dist/AppShell/index.d.ts +1 -1
- package/dist/AppShell/index.js +1 -1
- package/dist/{AppShell-CBhuHXh4.js → AppShell-NvIT99xw.js} +49 -6
- package/dist/Avatar/index.js +1 -1
- package/dist/{Avatar-B-dg3imS.js → Avatar-BECb_pnL.js} +1 -1
- package/dist/AvatarGroup/index.d.ts +1 -1
- package/dist/Banner/index.d.ts +1 -1
- package/dist/Banner/index.js +1 -1
- package/dist/{Banner-qEMqg2D8.js → Banner-BL7ztCU4.js} +1 -1
- package/dist/BottomSheet/index.d.ts +1 -1
- package/dist/BottomSheet/index.js +2 -2
- package/dist/{BottomSheet-BvdEUioy.js → BottomSheet-CCW58Kl3.js} +4 -4
- package/dist/{BottomSheet-BTf3rz65.js → BottomSheet-HQpcSkPH.js} +6 -5
- package/dist/Breadcrumbs/index.js +1 -1
- package/dist/{Breadcrumbs-BAyIQaP-.js → Breadcrumbs-BpgUZDh3.js} +1 -1
- package/dist/Button/index.d.ts +1 -1
- package/dist/Button/index.js +1 -1
- package/dist/{Button-47s3ZBYa.js → Button-Bi1evguV.js} +16 -8
- package/dist/ButtonGroup/index.d.ts +1 -1
- package/dist/ButtonGroup/index.js +1 -1
- package/dist/{ButtonGroup-BFl-0uOp.js → ButtonGroup-IIN-hAJl.js} +2 -2
- package/dist/Calendar/index.d.ts +1 -1
- package/dist/Calendar/index.js +1 -1
- package/dist/{Calendar-D029GXOJ.js → Calendar-Bk2nGoT-.js} +69 -20
- 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-CYjVpChx.js → Carousel-r6KuUnE1.js} +1 -1
- package/dist/Chat/index.d.ts +1 -1
- package/dist/Chat/index.js +1 -1
- package/dist/{Chat-BfekV9OQ.js → Chat-JwOWSmvy.js} +7 -8
- package/dist/CheckboxInput/index.d.ts +1 -1
- package/dist/CheckboxInput/index.js +1 -1
- package/dist/{CheckboxInput-Cr0qhZpZ.js → CheckboxInput-3yFIGqYj.js} +1 -1
- package/dist/CheckboxList/index.d.ts +1 -1
- package/dist/CheckboxList/index.js +1 -1
- package/dist/{CheckboxList-DOAdqkXD.js → CheckboxList-2GMj8LSo.js} +3 -3
- package/dist/ClickableCard/index.d.ts +1 -1
- package/dist/Code/index.d.ts +2 -2
- package/dist/Code/index.js +3 -3
- package/dist/{Code-6GS0nAkR.js → Code-rmiC0XfO.js} +1 -1
- package/dist/{CodeBlock-CuNiGAhQ.js → CodeBlock-AeyHA3sX.js} +21 -9
- package/dist/Collapsible/index.d.ts +1 -1
- package/dist/CommandPalette/index.js +1 -1
- package/dist/{CommandPalette-ChtGNWy3.js → CommandPalette-CccNmfH_.js} +4 -4
- package/dist/ComplexSelector/index.d.ts +1 -1
- package/dist/ComplexSelector/index.js +1 -1
- package/dist/{ComplexSelector-TPRMIDgt.js → ComplexSelector-BQNwK1Rx.js} +2 -2
- package/dist/ContextMenu/index.d.ts +1 -1
- package/dist/ContextMenu/index.js +1 -1
- package/dist/{ContextMenu-DYKU1mJT.js → ContextMenu-DlkuMtXc.js} +8 -8
- package/dist/DateInput/index.d.ts +1 -1
- package/dist/DateInput/index.js +1 -1
- package/dist/{DateInput-iQQLaYlp.js → DateInput-BAEJLiKU.js} +7 -7
- package/dist/DateRangeInput/index.d.ts +1 -1
- package/dist/DateRangeInput/index.js +1 -1
- package/dist/{DateRangeInput-BTYlRhmn.js → DateRangeInput-BM1__kku.js} +4 -4
- package/dist/DateTimeInput/index.d.ts +1 -1
- package/dist/DateTimeInput/index.js +1 -1
- package/dist/{DateTimeInput-CiUKgoVy.js → DateTimeInput-CqPuS2Wb.js} +6 -6
- package/dist/Dialog/index.d.ts +1 -1
- package/dist/Dialog/index.js +3 -3
- package/dist/{Dialog-D54oHAxr.js → Dialog-BoV6-sZg.js} +4 -4
- package/dist/{Dialog-DeHVvhL3.js → Dialog-CvRMUDsx.js} +1 -1
- package/dist/{DialogHeader-B6ZIBIC4.js → DialogHeader-DywC9gTH.js} +2 -2
- package/dist/Drawer/index.d.ts +1 -1
- package/dist/Drawer/index.js +1 -1
- package/dist/{Drawer-fB3IoD5P.js → Drawer-BYXbMeXz.js} +2 -2
- package/dist/DropdownMenu/index.js +2 -2
- package/dist/{DropdownMenu-D5fBg5Cc.js → DropdownMenu-1qD5NjRZ.js} +6 -6
- package/dist/{DropdownMenu-ClBIeBwM.js → DropdownMenu-DFD4_snt.js} +10 -10
- package/dist/EmptyState/index.js +1 -1
- package/dist/{EmptyState-BS8ESteS.js → EmptyState-DHogz6sS.js} +60 -9
- package/dist/Field/index.js +3 -3
- package/dist/{Field-Dxacpe9d.js → Field-CqIDpjny.js} +1 -1
- package/dist/{FieldInfoTip-DS4OAl2Q.js → FieldInfoTip-tETk5JH_.js} +1 -1
- package/dist/{FieldLabel-DjzTYhCM.js → FieldLabel-DL8r5Jzc.js} +1 -1
- package/dist/FileInput/index.d.ts +1 -1
- package/dist/FileInput/index.js +1 -1
- package/dist/{FileInput-Dak2gIXU.js → FileInput-Bwvb-tQk.js} +3 -3
- package/dist/Heading/index.js +1 -1
- package/dist/{Heading-BYB7QXkT.js → Heading-CkHUa3bI.js} +1 -1
- package/dist/HoverCard/index.d.ts +1 -1
- package/dist/HoverCard/index.js +1 -1
- package/dist/{HoverCard-CtDr234t.js → HoverCard-Ddcu9mBO.js} +4 -4
- package/dist/IconButton/index.js +1 -1
- package/dist/{IconButton-DvgueAEp.js → IconButton-eGsozJhK.js} +1 -1
- package/dist/InfoTip/index.d.ts +1 -1
- package/dist/InfoTip/index.js +1 -1
- package/dist/{InfoTip-DshbO5eW.js → InfoTip-DH9gvEPg.js} +2 -2
- package/dist/{InputClearButton-DEb-bGsY.js → InputClearButton-tztlFeqp.js} +1 -1
- package/dist/InputGroup/index.js +1 -1
- package/dist/{InputGroup-DLu11Lsd.js → InputGroup-ew0kllZw.js} +1 -1
- package/dist/InternationalizationProvider/index.d.ts +1 -1
- package/dist/InternationalizationProvider/index.js +1 -1
- package/dist/{InternationalizationProvider-CqCxB9ku.js → InternationalizationProvider-7rA65NO7.js} +1 -1
- package/dist/{LayerContentBoundary-Cx5xXZzg.js → LayerContentBoundary-CpqXMTyU.js} +1 -1
- package/dist/Layout/index.js +2 -2
- package/dist/{Layout-BeYYiLFm.js → Layout-DP2vrvTv.js} +1 -1
- package/dist/{LayoutPanel-DDLcJgzG.js → LayoutPanel-DuroKU_A.js} +23 -4
- package/dist/Lightbox/index.js +1 -1
- package/dist/{Lightbox-BbeuDbgd.js → Lightbox-CwRSUkkH.js} +4 -4
- package/dist/Link/index.d.ts +1 -1
- package/dist/Link/index.js +1 -1
- package/dist/{Link-CFxZ9W2X.js → Link-DKeXWgvF.js} +1 -1
- package/dist/List/index.d.ts +1 -1
- package/dist/Markdown/index.d.ts +1 -1
- package/dist/Markdown/index.js +1 -1
- package/dist/{Markdown-DTqTIKbq.js → Markdown-umUpz0Pf.js} +3 -3
- package/dist/{MediaTheme-BVKUsMfC.js → MediaTheme-Bkj-_DFN.js} +1 -1
- package/dist/MobileNav/index.js +1 -1
- package/dist/{MobileNavToggle-pwkvRFW-.js → MobileNavToggle-DlQmYaBx.js} +4 -4
- package/dist/MoreMenu/index.d.ts +1 -1
- package/dist/MoreMenu/index.js +1 -1
- package/dist/{MoreMenu-BY1t1_QA.js → MoreMenu-YTZfzTM_.js} +5 -5
- package/dist/MultiSelector/index.d.ts +1 -1
- package/dist/MultiSelector/index.js +1 -1
- package/dist/{MultiSelector-BgGEzXiX.js → MultiSelector-wNUnwrLr.js} +24 -13
- package/dist/{NavDisclosure-mXBWmRDC.js → NavDisclosure-Dg6U7pc7.js} +1 -1
- package/dist/{NavHeadingSurface-foJo5bLT.js → NavHeadingSurface-C17cbKn9.js} +1 -1
- package/dist/NavItem/index.d.ts +1 -1
- package/dist/NavMenu/index.js +3 -3
- package/dist/{NavMenu-CG9Bthba.js → NavMenu-CTbvZnO2.js} +26 -6
- package/dist/{NavMenuItem-BiFZUPxC.js → NavMenuItem-BbT97LNz.js} +14 -7
- package/dist/NumberInput/index.d.ts +1 -1
- package/dist/NumberInput/index.js +1 -1
- package/dist/{NumberInput-BDNiEgzf.js → NumberInput-C8ymESEK.js} +3 -3
- package/dist/OverflowList/index.d.ts +1 -1
- package/dist/OverflowList/index.js +1 -1
- package/dist/{OverflowList-CR96Nr5t.js → OverflowList-Buzyq2be.js} +25 -10
- package/dist/Pagination/index.d.ts +1 -1
- package/dist/Pagination/index.js +1 -1
- package/dist/{Pagination-40BEwZOo.js → Pagination-BREwZINI.js} +1 -1
- package/dist/Popover/index.d.ts +1 -1
- package/dist/Popover/index.js +1 -1
- package/dist/{Popover-BUiTyOcY.js → Popover-CBXTOdtZ.js} +7 -7
- package/dist/PowerSearch/index.d.ts +1 -1
- package/dist/PowerSearch/index.js +1 -1
- package/dist/{PowerSearch-BLJd0NKp.js → PowerSearch-8ali3Cze.js} +19 -19
- package/dist/ProgressBar/index.d.ts +1 -1
- package/dist/ProgressBar/index.js +1 -1
- package/dist/{ProgressBar-sGSCEtHC.js → ProgressBar-B0IjJKEy.js} +1 -1
- package/dist/Radio/index.d.ts +1 -1
- package/dist/Radio/index.js +1 -1
- package/dist/{RadioGroup-D58Fy-bM.js → RadioGroup-fNJoHMK0.js} +2 -2
- package/dist/RadioList/index.d.ts +1 -1
- package/dist/RadioList/index.js +1 -1
- package/dist/{RadioList-u9PoRBXY.js → RadioList-Dt301fwV.js} +1 -1
- package/dist/Resizable/index.d.ts +1 -1
- package/dist/Resizable/index.js +1 -1
- package/dist/{ResizeHandle-Bon51yNV.js → ResizeHandle-4-krI-cQ.js} +1 -1
- package/dist/ScrollableArea/index.d.ts +1 -1
- package/dist/ScrollableArea/index.js +1 -1
- package/dist/{ScrollableArea-C2GBp55Z.js → ScrollableArea-Cflez3d4.js} +1 -1
- package/dist/SegmentedControl/index.d.ts +1 -1
- package/dist/SegmentedControl/index.js +1 -1
- package/dist/{SegmentedControl-COVOdCq2.js → SegmentedControl-DoTaOwPI.js} +16 -9
- package/dist/SelectableCard/index.d.ts +1 -1
- package/dist/Selector/index.d.ts +1 -1
- package/dist/Selector/index.js +1 -1
- package/dist/{Selector-QHLh7g_K.js → Selector-DJiziplk.js} +15 -10
- package/dist/SideNav/index.d.ts +1 -1
- package/dist/SideNav/index.js +1 -1
- package/dist/{SideNav-BgmpUELq.js → SideNav-CcgrhUXF.js} +6 -6
- package/dist/Slider/index.js +1 -1
- package/dist/{Slider-Depy9L-Y.js → Slider-W9T8GaFW.js} +2 -2
- package/dist/Stack/index.d.ts +1 -1
- package/dist/Stack/index.js +1 -1
- package/dist/{Stack-Tw4I_dt-.js → Stack-Byxur1jV.js} +19 -2
- package/dist/StatusDot/index.js +1 -1
- package/dist/{StatusDot-D0Wy2ggp.js → StatusDot-EQ8y4vq2.js} +1 -1
- package/dist/Switch/index.d.ts +1 -1
- package/dist/Switch/index.js +1 -1
- package/dist/{Switch-dD4OQLkI.js → Switch-YXDRo4ei.js} +2 -2
- package/dist/TabList/index.d.ts +1 -1
- package/dist/TabList/index.js +1 -1
- package/dist/{TabList-CoiyQidC.js → TabList-QBE7ojy4.js} +20 -8
- package/dist/Table/index.d.ts +1 -1
- package/dist/Table/index.js +1 -1
- package/dist/{Table-CIMUux6b.js → Table-uPs9O7-T.js} +14 -14
- package/dist/Text/index.js +1 -1
- package/dist/{Text-BWSmB93V.js → Text-vw2_AIxf.js} +1 -1
- package/dist/TextArea/index.d.ts +1 -1
- package/dist/TextArea/index.js +1 -1
- package/dist/{TextArea-CbY2w_ic.js → TextArea-BNiJxKXr.js} +9 -6
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/TextInput/index.js +1 -1
- package/dist/{TextInput-C8f89GV8.js → TextInput-CiKL_mGp.js} +8 -5
- package/dist/Theme/index.js +2 -2
- package/dist/{Theme-PyAl8nM0.js → Theme-8bDq2nud.js} +1 -1
- package/dist/Thumbnail/index.js +1 -1
- package/dist/{Thumbnail-DENhXd9-.js → Thumbnail-BJSDUhEI.js} +3 -3
- package/dist/{TimeField-Bzq72Me_.js → TimeField-Cc6LnM1G.js} +5 -5
- package/dist/TimeInput/index.d.ts +1 -1
- package/dist/TimeInput/index.js +1 -1
- package/dist/{TimeInput-D-bRCUzU.js → TimeInput-DAd4fwAj.js} +2 -2
- package/dist/Timer/index.js +1 -1
- package/dist/{Timer-CgBSMr9E.js → Timer-DWdMqvhQ.js} +1 -1
- package/dist/Timestamp/index.d.ts +1 -1
- package/dist/Timestamp/index.js +1 -1
- package/dist/{Timestamp-B-VgG6l8.js → Timestamp-HUDZSHZO.js} +27 -8
- package/dist/Toast/index.js +1 -1
- package/dist/{Toast-CRSZV9K-.js → Toast-y_XAIj6o.js} +2 -2
- package/dist/ToggleButton/index.d.ts +1 -1
- package/dist/ToggleButton/index.js +1 -1
- package/dist/{ToggleButton-Bm5IQUy5.js → ToggleButton-Bo3FU3Fw.js} +3 -3
- package/dist/Tokenizer/index.d.ts +1 -1
- package/dist/Tokenizer/index.js +1 -1
- package/dist/{Tokenizer-DmjNQLDl.js → Tokenizer-IlXAt3yW.js} +7 -8
- package/dist/Toolbar/index.d.ts +1 -1
- package/dist/Tooltip/index.d.ts +1 -1
- package/dist/Tooltip/index.js +2 -2
- package/dist/{Tooltip-BwrJVZ8X.js → Tooltip-nEgotJlb.js} +1 -1
- package/dist/TopNav/index.d.ts +1 -1
- package/dist/TopNav/index.js +1 -1
- package/dist/{TopNav-FiszUHkM.js → TopNav-CzTYtsm4.js} +5 -5
- package/dist/TreeList/index.d.ts +1 -1
- package/dist/TreeList/index.js +1 -1
- package/dist/{TreeList-Dc3A72iY.js → TreeList-TEh2PChT.js} +15 -2
- package/dist/Typeahead/index.d.ts +1 -1
- package/dist/Typeahead/index.js +2 -2
- package/dist/{Typeahead-LdmEDCOU.js → Typeahead-Ck5wA5fs.js} +5 -5
- package/dist/announce-GU01Oix2.js +179 -0
- package/dist/busyAnnouncement-CExubuYm.js +55 -0
- package/dist/clipboardWrite-Ds6fxmZc.js +58 -0
- package/dist/composables/index.d.ts +3 -3
- package/dist/composables/index.js +18 -18
- package/dist/{composables-Bi0Rt0Uj.js → composables-CCsHfpCS.js} +25 -5
- package/dist/focusReturn-D7Y7Pwwb.js +41 -0
- package/dist/{index-6kd7pher.d.ts → index-51CkIKnI.d.ts} +4 -6
- package/dist/{index-qbj0Lj9a.d.ts → index-B99LFtEg.d.ts} +4 -4
- package/dist/{index-CP-fJFcJ.d.ts → index-BOCb89V9.d.ts} +3 -3
- package/dist/{index-D-eT_nvf.d.ts → index-BYEcUSBq.d.ts} +63 -63
- package/dist/{index-YKCx03zD.d.ts → index-BaFphczL.d.ts} +2 -2
- package/dist/{index-Dc9_kBrU.d.ts → index-Bc-ChXDo.d.ts} +2 -2
- package/dist/{index-BB9acgK8.d.ts → index-BgT6mH3U.d.ts} +1 -1
- package/dist/{index-CL8JvxHW.d.ts → index-C1zwvxPH.d.ts} +2 -2
- package/dist/{index-BHYhTZzp.d.ts → index-C2cH8OLC.d.ts} +1 -1
- package/dist/{index-O9y23OPJ.d.ts → index-CMLnSg3T.d.ts} +2 -0
- package/dist/{index-DfdtDWSP.d.ts → index-CQ1bsxLC.d.ts} +1 -1
- package/dist/{index-Bgk1Rj2A.d.ts → index-CTjkJP4x.d.ts} +1 -1
- package/dist/{index-DDrL_-hJ.d.ts → index-CbA8rR_b.d.ts} +3 -3
- package/dist/{index-ul1hNxih.d.ts → index-ChqMaV6N.d.ts} +13 -2
- package/dist/{index-C9ZssPUV.d.ts → index-CiVrhGUJ.d.ts} +1 -1
- package/dist/{index-Cf5j7Cjl.d.ts → index-Cv0FsOgj.d.ts} +50 -16
- package/dist/{index-rnFsCdJ7.d.ts → index-Cy1rEWC-.d.ts} +1 -1
- package/dist/{index-BzViSe8D.d.ts → index-D1J81rYJ.d.ts} +4 -4
- package/dist/{index-rzkX36wM.d.ts → index-D2p8EVVV.d.ts} +2 -2
- package/dist/{index-BL4mH8aK.d.ts → index-DMN_JVEt.d.ts} +1 -1
- package/dist/{index-DPH5yoAr.d.ts → index-DTvnURvQ.d.ts} +2 -2
- package/dist/{index-BhxqUt3y.d.ts → index-Dpz-JUMl.d.ts} +3 -3
- package/dist/{index-BlGEkjh5.d.ts → index-FzAAjCFZ.d.ts} +6 -6
- package/dist/{index-DYabo8TI.d.ts → index-MvrDMqnQ.d.ts} +1 -1
- package/dist/{index--tm6L1ot.d.ts → index-QRzXr6ME.d.ts} +1 -1
- package/dist/{index-DE1genab.d.ts → index-QnlWyUxN.d.ts} +2 -2
- package/dist/{index-B1eCxBCY.d.ts → index-TXcNH86P.d.ts} +1 -1
- package/dist/{index-C5e2rZML.d.ts → index-dWlCpnua.d.ts} +2 -2
- package/dist/{index-DS9SzqqJ.d.ts → index-lmd9LZKB.d.ts} +2 -2
- package/dist/{index-bwNMoZo_.d.ts → index-r1zpDegp.d.ts} +4 -4
- package/dist/{index-BEZ4ezJk.d.ts → index-wY6dKz6c.d.ts} +2 -2
- package/dist/index.d.ts +34 -34
- package/dist/index.js +109 -109
- package/dist/{layerDepth-I6d28O4d.js → interactionModality-B5dR7nnb.js} +125 -1
- package/dist/{layerFocusReturn-_pBrNAPE.js → layerFocusReturn-13azEIdn.js} +1 -1
- package/dist/{layout-DzxSsBe8.js → layout-DhX4-SyE.js} +4 -2
- package/dist/{loadCatalog-DYuZZRtf.js → loadCatalog-C3MSknfx.js} +10 -2
- package/dist/{loadCatalog-Cvf-xgDD.d.ts → loadCatalog-DFyDz_4e.d.ts} +5 -0
- package/dist/locale/index.d.ts +2 -2
- package/dist/locale/index.js +4 -4
- package/dist/{locale-B-DrJCMs.js → locale-OCGw4bi6.js} +1 -1
- package/dist/scrollGeometry-ivD7aoBo.js +104 -0
- package/dist/{scrollKeyboardDelegation-BSpUCTlO.js → scrollKeyboardDelegation-DZ4t5PvC.js} +2 -82
- package/dist/scrollLock-CoVg9lLU.js +212 -0
- package/dist/{stillPointerGate-DlAU_J_M.js → stillPointerGate-0vdn-hSa.js} +1 -1
- package/dist/strayClick-_QKRT5aH.js +99 -0
- package/dist/{timestamp-CFBVCsHF.js → timestamp-BMYQsFDj.js} +2 -0
- package/dist/{useActionGroupTracking-CDclbV3Y.js → useActionGroupTracking-CbE8fwYb.js} +1 -1
- package/dist/{useChatStreamScroll-oDfybEos.js → useChatStreamScroll-BIMKffDA.js} +1 -1
- package/dist/{useClipboard-i4a_x_Io.js → useClipboard-CTY3GwFz.js} +24 -10
- package/dist/{useClipboard-ZdT7wKBL.d.ts → useClipboard-DeO8fCW_.d.ts} +12 -3
- package/dist/{useDismiss-21Gk7uWk.js → useDismiss-Dfb0Ky7T.js} +1 -1
- package/dist/useFocusTrap-BUd-fvUH.js +238 -0
- package/dist/{useHoverLayerDismiss-Chfty2wT.js → useHoverLayerDismiss-CFGjvYi4.js} +1 -1
- package/dist/{useInputStatusIcon-Yd0hvw5K.js → useInputStatusIcon-lln4Pl9h.js} +1 -1
- package/dist/{selectorEscape-FjiU_5WC.js → useKeyboardHighlight-CGCf1O57.js} +24 -3
- package/dist/{useLayer-vK4-yRk_.js → useLayer-D34yqEqr.js} +1 -1
- package/dist/useMediaQuery-BzXGT1Aw.js +64 -0
- package/dist/{useMenuHover-CbjjfzAd.js → useMenuHover-CQYo0XCC.js} +4 -2
- package/dist/{useMenuPress-9vsHzbRX.js → useMenuPress-9dOj2hvC.js} +71 -26
- package/dist/{useOverflow-VrwF5oek.js → useOverflow-GU0pxGaU.js} +43 -3
- package/dist/{useResizable-DYlc06-H.js → useResizable-BMlG1oxA.js} +1 -1
- package/dist/{useResolvedColorMode-CHOh3Yz-.js → useResolvedColorMode-Df97_9w_.js} +1 -1
- package/dist/{useRestoreFocus-Do8y6Yy4.js → useRestoreFocus-Cz_jM_nW.js} +2 -2
- package/dist/useScrollRegionProps-DwkPUb-O.js +119 -0
- package/dist/{useScrollableArea-Bwn75HDg.js → useScrollableArea-BaHkGWbX.js} +73 -10
- package/dist/{useTooltip-DIg3ZE9P.js → useTooltip-CCPg2zcB.js} +7 -7
- package/dist/{useTouchHitArea-B3jx01C3.js → useTouchHitArea-CzCtdSt9.js} +1 -1
- package/dist/{useTouchTriggerInternal-CrLW-7kT.js → useTouchTriggerInternal-Bs7obOrb.js} +1 -2
- package/dist/{useTruncationTooltip-D9_lzxpF.js → useTruncationTooltip-BLNzBuiG.js} +3 -3
- package/dist/{useTypeahead-CiLt-yEg.js → useTypeahead-BrWvmOu9.js} +1 -1
- package/dist/{useTypeaheadAnnouncement-C59m2nSx.js → useTypeaheadAnnouncement-CSikDlpK.js} +2 -2
- package/package.json +1 -1
- package/styles/app-shell.css +13 -0
- package/styles/calendar.css +6 -0
- package/styles/dropdown-menu.css +16 -0
- package/styles/multi-selector.css +6 -0
- package/styles/nav-menu.css +6 -0
- package/styles/segmented-control.css +3 -8
- package/styles/selector.css +6 -0
- package/styles/tab-menu.css +6 -0
- package/styles/toolbar.css +12 -0
- package/dist/announce-B210eJVf.js +0 -104
- package/dist/busyAnnouncement-D3eGqdsf.js +0 -88
- package/dist/interactionModality-BPvyShJT.js +0 -125
- package/dist/scrollLock-C3aT4-0z.js +0 -102
- package/dist/strayClick-CY-_ImKv.js +0 -60
- package/dist/useFocusTrap-CnKnSN99.js +0 -190
- package/dist/useMediaQuery-GMmgp28-.js +0 -32
|
@@ -1,9 +1,18 @@
|
|
|
1
|
-
import { i as runAsMenuPressActivation, t as armStrayClick } from "./strayClick-
|
|
2
|
-
import {
|
|
1
|
+
import { a as trackTouchOfPointer, i as runAsMenuPressActivation, t as armStrayClick } from "./strayClick-_QKRT5aH.js";
|
|
2
|
+
import { m as currentGesture } from "./interactionModality-B5dR7nnb.js";
|
|
3
|
+
import { t as focusForLastInput } from "./focusReturn-D7Y7Pwwb.js";
|
|
3
4
|
import { getCurrentScope, onScopeDispose, toValue } from "vue";
|
|
4
5
|
//#region src/composables/useLongPress.ts
|
|
5
6
|
const DEFAULT_DELAY_MS = 500;
|
|
6
7
|
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
|
+
}
|
|
7
16
|
function touchPoint(event) {
|
|
8
17
|
const touch = event.touches?.[0] ?? event.changedTouches?.[0];
|
|
9
18
|
return touch == null ? null : {
|
|
@@ -30,6 +39,8 @@ function useLongPress(options) {
|
|
|
30
39
|
const moveCancelPx = options.moveCancelPx ?? DEFAULT_MOVE_CANCEL_PX;
|
|
31
40
|
let timer = null;
|
|
32
41
|
let origin = null;
|
|
42
|
+
/** 触摸事件自己的时钟上,这次按住到期的时刻。页面忙的时候事件晚到,时刻不会晚。 */
|
|
43
|
+
let deadline = null;
|
|
33
44
|
function isDisabled() {
|
|
34
45
|
return toValue(options.isDisabled) === true || toValue(options.disabled) === true;
|
|
35
46
|
}
|
|
@@ -39,23 +50,33 @@ function useLongPress(options) {
|
|
|
39
50
|
timer = null;
|
|
40
51
|
}
|
|
41
52
|
origin = null;
|
|
53
|
+
deadline = null;
|
|
54
|
+
}
|
|
55
|
+
function fire() {
|
|
56
|
+
const from = origin;
|
|
57
|
+
timer = null;
|
|
58
|
+
deadline = null;
|
|
59
|
+
if (from == null) return;
|
|
60
|
+
options.onLongPress({
|
|
61
|
+
x: from.x,
|
|
62
|
+
y: from.y
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
/** 事件的时间戳到了按住的时刻:先把这次长按报出去,再处理这个事件(移动、抬起、第二根手指)。 */
|
|
66
|
+
function reportIfDue(event) {
|
|
67
|
+
if (timer == null || deadline == null || !(event.timeStamp >= deadline)) return;
|
|
68
|
+
clearTimeout(timer);
|
|
69
|
+
fire();
|
|
42
70
|
}
|
|
43
|
-
|
|
71
|
+
/** `age` 是起手事件已经晚到了多久:计时器只等剩下的那一段,晚到的触摸不会把按住的时间拉长。 */
|
|
72
|
+
function start(point, age = 0) {
|
|
44
73
|
if (isDisabled()) return;
|
|
45
74
|
cancel();
|
|
46
75
|
origin = {
|
|
47
76
|
x: point.x,
|
|
48
77
|
y: point.y
|
|
49
78
|
};
|
|
50
|
-
timer = setTimeout((
|
|
51
|
-
const from = origin;
|
|
52
|
-
timer = null;
|
|
53
|
-
if (from == null) return;
|
|
54
|
-
options.onLongPress({
|
|
55
|
-
x: from.x,
|
|
56
|
-
y: from.y
|
|
57
|
-
});
|
|
58
|
-
}, delayMs);
|
|
79
|
+
timer = setTimeout(fire, Math.max(0, delayMs - age));
|
|
59
80
|
}
|
|
60
81
|
function moveTo(point) {
|
|
61
82
|
if (origin == null) return false;
|
|
@@ -71,14 +92,18 @@ function useLongPress(options) {
|
|
|
71
92
|
*/
|
|
72
93
|
function onTouchStart(event) {
|
|
73
94
|
if ((event.touches?.length ?? 0) !== 1) {
|
|
95
|
+
reportIfDue(event);
|
|
74
96
|
cancel();
|
|
75
97
|
return;
|
|
76
98
|
}
|
|
77
99
|
const point = touchPoint(event);
|
|
78
|
-
if (point
|
|
100
|
+
if (point == null) return;
|
|
101
|
+
start(point, ageOf(event.timeStamp));
|
|
102
|
+
if (timer != null && Number.isFinite(event.timeStamp)) deadline = event.timeStamp + delayMs;
|
|
79
103
|
}
|
|
80
104
|
function onTouchMove(event) {
|
|
81
105
|
if (origin == null) return;
|
|
106
|
+
reportIfDue(event);
|
|
82
107
|
if ((event.touches?.length ?? 0) > 1) {
|
|
83
108
|
cancel();
|
|
84
109
|
return;
|
|
@@ -86,7 +111,8 @@ function useLongPress(options) {
|
|
|
86
111
|
const point = touchPoint(event);
|
|
87
112
|
if (point != null) moveTo(point);
|
|
88
113
|
}
|
|
89
|
-
function onTouchEnd() {
|
|
114
|
+
function onTouchEnd(event) {
|
|
115
|
+
reportIfDue(event);
|
|
90
116
|
cancel();
|
|
91
117
|
}
|
|
92
118
|
function onTouchCancel() {
|
|
@@ -187,14 +213,16 @@ function getOutermostRoot(menu) {
|
|
|
187
213
|
* 手指的指针事件一直发给它落下的那个元素,所以要按坐标找当前在它下面的是谁。
|
|
188
214
|
* 测试环境的 `elementFromPoint` 没有布局,答不出来时退回事件目标。
|
|
189
215
|
*/
|
|
190
|
-
function elementUnder(event, doc, hitTest) {
|
|
191
|
-
const
|
|
216
|
+
function elementUnder(event, doc, menu, hitTest) {
|
|
217
|
+
const tree = menu?.getRootNode();
|
|
218
|
+
const scope = tree != null && typeof tree.elementFromPoint === "function" ? tree : doc;
|
|
219
|
+
const hit = hitTest != null ? hitTest(event.clientX, event.clientY) : typeof scope.elementFromPoint === "function" ? scope.elementFromPoint(event.clientX, event.clientY) : null;
|
|
192
220
|
if (hit != null) return hit;
|
|
193
221
|
return event.target instanceof Element ? event.target : null;
|
|
194
222
|
}
|
|
195
223
|
/** 指针下面是哪一行、在不在菜单里、在不在触发器上。 */
|
|
196
224
|
function resolvePoint(event, doc, input) {
|
|
197
|
-
const element = elementUnder(event, doc, input.hitTest);
|
|
225
|
+
const element = elementUnder(event, doc, input.menu, input.hitTest);
|
|
198
226
|
const root = input.menu == null ? null : getOutermostRoot(input.menu);
|
|
199
227
|
const isInMenu = root != null && element != null && root.contains(element);
|
|
200
228
|
const isOnTrigger = input.trigger != null && element != null && input.trigger.contains(element);
|
|
@@ -210,12 +238,12 @@ function resolvePoint(event, doc, input) {
|
|
|
210
238
|
};
|
|
211
239
|
}
|
|
212
240
|
/**
|
|
213
|
-
* 默认的高亮:菜单里高亮就是 DOM 焦点(`preventScroll
|
|
241
|
+
* 默认的高亮:菜单里高亮就是 DOM 焦点(`preventScroll`)。指针按下之后的这次聚焦不画键盘焦点环。
|
|
214
242
|
* 行本身不可聚焦时聚焦里面的控件;指针下没有行时把焦点放在菜单根上,这样没有一行亮着。
|
|
215
243
|
*/
|
|
216
244
|
function focusHighlight(row, menu, doc) {
|
|
217
245
|
const target = row == null ? menu : row.matches(FOCUSABLE_ROW_SELECTOR) ? row : row.querySelector(INNER_CONTROL_SELECTOR);
|
|
218
|
-
if (target != null && target !== doc.activeElement) target
|
|
246
|
+
if (target != null && target !== doc.activeElement) focusForLastInput(target, { preventScroll: true });
|
|
219
247
|
}
|
|
220
248
|
/**
|
|
221
249
|
* 默认的执行:像这一行自己被点了一样,派发一次 click,带上松开时的按键和修饰键。
|
|
@@ -475,7 +503,18 @@ function useMenuPress(options) {
|
|
|
475
503
|
delayMs: options.longPressDelayMs ?? MENU_PRESS_LONG_PRESS_MS,
|
|
476
504
|
onLongPress: fireLongPress
|
|
477
505
|
});
|
|
506
|
+
let touchTracker = null;
|
|
507
|
+
/** 手指松开时挑选的那根手指的 touchend 要取消;鼠标和笔没有 touchend。 */
|
|
508
|
+
function armAfterRelease(doc, native, touchIdentifier) {
|
|
509
|
+
const isTouch = native?.pointerType === "touch";
|
|
510
|
+
armStrayClick(doc, {
|
|
511
|
+
cancelsTouchEnd: isTouch,
|
|
512
|
+
touchIdentifier
|
|
513
|
+
});
|
|
514
|
+
}
|
|
478
515
|
function endGesture() {
|
|
516
|
+
touchTracker?.stop();
|
|
517
|
+
touchTracker = null;
|
|
479
518
|
longPress.cancel();
|
|
480
519
|
stopTouchPrevent?.();
|
|
481
520
|
stopTouchPrevent = null;
|
|
@@ -510,15 +549,19 @@ function useMenuPress(options) {
|
|
|
510
549
|
case "clear":
|
|
511
550
|
highlight(null);
|
|
512
551
|
return;
|
|
513
|
-
case "act":
|
|
552
|
+
case "act": {
|
|
553
|
+
const touchIdentifier = touchTracker?.identifier() ?? null;
|
|
514
554
|
endGesture();
|
|
515
|
-
|
|
555
|
+
armAfterRelease(doc, native, touchIdentifier);
|
|
516
556
|
if (native != null) activate(effect.row, native);
|
|
517
557
|
return;
|
|
518
|
-
|
|
558
|
+
}
|
|
559
|
+
case "settle": {
|
|
560
|
+
const touchIdentifier = touchTracker?.identifier() ?? null;
|
|
519
561
|
endGesture();
|
|
520
|
-
if (effect.stray)
|
|
562
|
+
if (effect.stray) armAfterRelease(doc, native, touchIdentifier);
|
|
521
563
|
if (effect.dismiss) options.onDismiss?.();
|
|
564
|
+
}
|
|
522
565
|
}
|
|
523
566
|
}
|
|
524
567
|
function step(event, native) {
|
|
@@ -572,11 +615,13 @@ function useMenuPress(options) {
|
|
|
572
615
|
function onWindowBlur() {
|
|
573
616
|
step({ type: "cancel" });
|
|
574
617
|
}
|
|
575
|
-
function attach(id) {
|
|
618
|
+
function attach(id, pointerType) {
|
|
576
619
|
detach?.();
|
|
577
620
|
const doc = getDocument();
|
|
578
621
|
const view = doc.defaultView;
|
|
579
622
|
pointerId = id;
|
|
623
|
+
touchTracker?.stop();
|
|
624
|
+
touchTracker = pointerType === "touch" && view != null ? trackTouchOfPointer(view, id) : null;
|
|
580
625
|
doc.addEventListener("pointermove", onDocumentMove, true);
|
|
581
626
|
doc.addEventListener("pointerup", onDocumentUp, true);
|
|
582
627
|
doc.addEventListener("pointercancel", onDocumentCancel, true);
|
|
@@ -619,7 +664,7 @@ function useMenuPress(options) {
|
|
|
619
664
|
if (pointerType == null || pointerType === "mouse" && (event.button ?? 0) !== 0) return;
|
|
620
665
|
if ((event.target instanceof Element ? event.target : null)?.closest(MENU_PRESS_ROOT_SELECTOR) !== menu) return;
|
|
621
666
|
if (pointerType !== "mouse") event.preventDefault();
|
|
622
|
-
attach(event.pointerId);
|
|
667
|
+
attach(event.pointerId, pointerType);
|
|
623
668
|
lastPointerEvent = event;
|
|
624
669
|
step({
|
|
625
670
|
type: "down",
|
|
@@ -634,7 +679,7 @@ function useMenuPress(options) {
|
|
|
634
679
|
const pointerType = normalizePointerType(event.pointerType);
|
|
635
680
|
if (pointerType == null || (event.button ?? 0) !== 0) return;
|
|
636
681
|
if (pointerType === "mouse" && event.ctrlKey) return;
|
|
637
|
-
attach(event.pointerId);
|
|
682
|
+
attach(event.pointerId, pointerType);
|
|
638
683
|
lastPointerEvent = event;
|
|
639
684
|
if (pointerType !== "mouse") longPress.start({
|
|
640
685
|
x: event.clientX,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { computed, nextTick, onBeforeUnmount, onMounted, ref, toValue, watch } from "vue";
|
|
2
|
-
//#region src/composables/
|
|
2
|
+
//#region src/composables/internal/computeOverflow.ts
|
|
3
3
|
function clamp(value, min, max) {
|
|
4
4
|
return Math.max(Math.min(value, max), min);
|
|
5
5
|
}
|
|
@@ -10,6 +10,8 @@ function resolveBounds(itemCount, minVisibleItems, maxVisibleItems) {
|
|
|
10
10
|
};
|
|
11
11
|
}
|
|
12
12
|
function computeSingleLineFit(orderedWidths, gap, availableWidth, indicatorWidth, floor, ceiling) {
|
|
13
|
+
const allWidth = orderedWidths.reduce((sum, width) => sum + width, 0) + gap * Math.max(0, orderedWidths.length - 1);
|
|
14
|
+
if (orderedWidths.length <= ceiling && allWidth <= availableWidth) return orderedWidths.length;
|
|
13
15
|
let totalWidth = 0;
|
|
14
16
|
let count = 0;
|
|
15
17
|
for (let i = 0; i < orderedWidths.length; i++) {
|
|
@@ -116,6 +118,18 @@ function computeOverflow(input) {
|
|
|
116
118
|
rows: visibleCount > 0 ? Math.max(1, resolvedRows) : 0
|
|
117
119
|
};
|
|
118
120
|
}
|
|
121
|
+
//#endregion
|
|
122
|
+
//#region src/composables/useOverflow.ts
|
|
123
|
+
const NO_INLINE_BOUNDS = {
|
|
124
|
+
collapsed: 0,
|
|
125
|
+
rendered: 0,
|
|
126
|
+
inFlexRow: false
|
|
127
|
+
};
|
|
128
|
+
function isFlexRow(parent) {
|
|
129
|
+
if (parent == null) return false;
|
|
130
|
+
const style = getComputedStyle(parent);
|
|
131
|
+
return (style.display === "flex" || style.display === "inline-flex") && style.flexDirection.startsWith("row");
|
|
132
|
+
}
|
|
119
133
|
function isActiveRef(value) {
|
|
120
134
|
return typeof value === "object" && value != null && "value" in value && typeof value.value === "boolean";
|
|
121
135
|
}
|
|
@@ -176,6 +190,8 @@ function useItemOverflow(itemCount, options = {}) {
|
|
|
176
190
|
const rows = ref(count.value > 0 ? 1 : 0);
|
|
177
191
|
const rowHeight = ref(0);
|
|
178
192
|
const hasOverflow = computed(() => visibleCount.value < count.value);
|
|
193
|
+
const renderedGap = ref(gap);
|
|
194
|
+
const inlineBounds = ref(NO_INLINE_BOUNDS);
|
|
179
195
|
let unobserveContainer = null;
|
|
180
196
|
let unobserveMeasure = null;
|
|
181
197
|
function availableWidthOf(container) {
|
|
@@ -191,6 +207,11 @@ function useItemOverflow(itemCount, options = {}) {
|
|
|
191
207
|
const measure = measureRef.value;
|
|
192
208
|
const total = count.value;
|
|
193
209
|
if (container == null || measure == null) return;
|
|
210
|
+
if (toValue(options.gapToken) != null) {
|
|
211
|
+
const rendered = Number.parseFloat(getComputedStyle(measure).columnGap);
|
|
212
|
+
renderedGap.value = Number.isFinite(rendered) ? rendered : gap;
|
|
213
|
+
}
|
|
214
|
+
const gapWidth = renderedGap.value;
|
|
194
215
|
const availableWidth = availableWidthOf(container);
|
|
195
216
|
const allChildren = Array.from(measure.children);
|
|
196
217
|
const hasIndicator = allChildren.length > total;
|
|
@@ -210,11 +231,25 @@ function useItemOverflow(itemCount, options = {}) {
|
|
|
210
231
|
return;
|
|
211
232
|
}
|
|
212
233
|
const widths = children.map((child) => child.offsetWidth);
|
|
234
|
+
if (!(maxRows != null && maxRows > 1)) {
|
|
235
|
+
const { floor } = resolveBounds(total, minVisibleItems, maxVisibleItems);
|
|
236
|
+
const kept = collapseFrom === "end" ? widths.slice(0, floor) : widths.slice(widths.length - floor);
|
|
237
|
+
const keptWidth = kept.reduce((sum, width) => sum + width, 0) + gapWidth * Math.max(0, kept.length - 1);
|
|
238
|
+
const collapsed = Math.ceil(keptWidth + indicatorWidth + (kept.length > 0 && indicatorWidth > 0 ? gapWidth : 0));
|
|
239
|
+
const rendered = widths.reduce((sum, width) => sum + width, 0) + gapWidth * Math.max(0, widths.length - 1);
|
|
240
|
+
const inFlexRow = isFlexRow(container.parentElement);
|
|
241
|
+
const current = inlineBounds.value;
|
|
242
|
+
if (current.collapsed !== collapsed || current.rendered !== rendered || current.inFlexRow !== inFlexRow) inlineBounds.value = {
|
|
243
|
+
collapsed,
|
|
244
|
+
rendered,
|
|
245
|
+
inFlexRow
|
|
246
|
+
};
|
|
247
|
+
}
|
|
213
248
|
const measuredRowHeight = children.reduce((max, child) => Math.max(max, child.offsetHeight || 0), 0);
|
|
214
249
|
const next = computeOverflow({
|
|
215
250
|
availableWidth,
|
|
216
251
|
collapseFrom,
|
|
217
|
-
gap,
|
|
252
|
+
gap: gapWidth,
|
|
218
253
|
indicatorWidth,
|
|
219
254
|
maxRows,
|
|
220
255
|
maxVisibleItems,
|
|
@@ -243,6 +278,9 @@ function useItemOverflow(itemCount, options = {}) {
|
|
|
243
278
|
unobserveMeasure = observeResize(measureRef.value, calculate);
|
|
244
279
|
calculate();
|
|
245
280
|
}, { immediate: true });
|
|
281
|
+
watch(() => toValue(options.gapToken), () => {
|
|
282
|
+
nextTick(calculate);
|
|
283
|
+
});
|
|
246
284
|
onBeforeUnmount(() => {
|
|
247
285
|
unobserveContainer?.();
|
|
248
286
|
unobserveMeasure?.();
|
|
@@ -251,7 +289,9 @@ function useItemOverflow(itemCount, options = {}) {
|
|
|
251
289
|
containerRef,
|
|
252
290
|
hasOverflow,
|
|
253
291
|
measureRef,
|
|
292
|
+
inlineBounds,
|
|
254
293
|
remeasure: calculate,
|
|
294
|
+
renderedGap,
|
|
255
295
|
rowHeight,
|
|
256
296
|
rows,
|
|
257
297
|
visibleCount
|
|
@@ -262,4 +302,4 @@ function useOverflow(elementOrCount, activeOrOptions) {
|
|
|
262
302
|
return useItemOverflow(elementOrCount, activeOrOptions);
|
|
263
303
|
}
|
|
264
304
|
//#endregion
|
|
265
|
-
export {
|
|
305
|
+
export { computeOverflow as n, useOverflow as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { p as isImeKeyEvent } from "./interactionModality-B5dR7nnb.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 { i as trackInteractionModality } from "./interactionModality-
|
|
2
|
-
import {
|
|
1
|
+
import { i as trackInteractionModality } from "./interactionModality-B5dR7nnb.js";
|
|
2
|
+
import { t as focusForLastInput } from "./focusReturn-D7Y7Pwwb.js";
|
|
3
3
|
import { onScopeDispose, watch } from "vue";
|
|
4
4
|
//#region src/composables/useRestoreFocus.ts
|
|
5
5
|
/**
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { a as isMeasurable, i as getLogicalAxisMapping, l as measureScrollAxis } from "./scrollGeometry-ivD7aoBo.js";
|
|
2
|
+
import { n as observeResize } from "./sharedResizeObserver-BekhnB3E.js";
|
|
3
|
+
import { computed, onScopeDispose, shallowRef, toValue, watch } from "vue";
|
|
4
|
+
//#region src/composables/internal/mainOverflow.ts
|
|
5
|
+
/**
|
|
6
|
+
* 内容直接放在滚动容器里、没有内层盒子的区域(AppShell 的主区域,可滚动的 LayoutContent、
|
|
7
|
+
* LayoutPanel、StackItem)是不是溢出。内容变长时容器自己的大小不变,所以盯的是它的直接子元素。
|
|
8
|
+
*
|
|
9
|
+
* 先量一次,之后只在答案变化时调 `onChange`。多个信号合并成每帧一次测量。
|
|
10
|
+
* 藏起来、没连在文档上、尺寸为 0 的区域答「不知道」:保留上一次的答案,等下一次有效的信号。
|
|
11
|
+
* 返回停止观察的函数。
|
|
12
|
+
*/
|
|
13
|
+
function observeMainOverflow(main, onChange) {
|
|
14
|
+
let isActive = true;
|
|
15
|
+
let frame = null;
|
|
16
|
+
let overflows = null;
|
|
17
|
+
function measure() {
|
|
18
|
+
frame = null;
|
|
19
|
+
if (!isActive) return;
|
|
20
|
+
const style = getComputedStyle(main);
|
|
21
|
+
if (!isMeasurable(main, style)) return;
|
|
22
|
+
const mapping = getLogicalAxisMapping(style.writingMode, style.direction);
|
|
23
|
+
const next = measureScrollAxis(main, "inline", mapping, true, style).isScrollable || measureScrollAxis(main, "block", mapping, true, style).isScrollable;
|
|
24
|
+
if (next !== overflows) {
|
|
25
|
+
overflows = next;
|
|
26
|
+
onChange(next);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
function scheduleMeasure() {
|
|
30
|
+
if (!isActive || frame != null) return;
|
|
31
|
+
if (typeof requestAnimationFrame !== "function") {
|
|
32
|
+
measure();
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
35
|
+
frame = requestAnimationFrame(measure);
|
|
36
|
+
}
|
|
37
|
+
const childObservers = /* @__PURE__ */ new Map();
|
|
38
|
+
function syncChildObservers() {
|
|
39
|
+
const children = new Set(Array.from(main.children));
|
|
40
|
+
for (const [child, stop] of childObservers) if (!children.has(child)) {
|
|
41
|
+
stop();
|
|
42
|
+
childObservers.delete(child);
|
|
43
|
+
}
|
|
44
|
+
for (const child of children) if (!childObservers.has(child)) childObservers.set(child, observeResize(child, scheduleMeasure));
|
|
45
|
+
}
|
|
46
|
+
measure();
|
|
47
|
+
syncChildObservers();
|
|
48
|
+
const stopObservingMain = observeResize(main, scheduleMeasure);
|
|
49
|
+
const mutations = typeof MutationObserver === "undefined" ? null : new MutationObserver(() => {
|
|
50
|
+
syncChildObservers();
|
|
51
|
+
scheduleMeasure();
|
|
52
|
+
});
|
|
53
|
+
mutations?.observe(main, {
|
|
54
|
+
attributes: true,
|
|
55
|
+
attributeFilter: [
|
|
56
|
+
"class",
|
|
57
|
+
"dir",
|
|
58
|
+
"hidden",
|
|
59
|
+
"style"
|
|
60
|
+
],
|
|
61
|
+
characterData: true,
|
|
62
|
+
childList: true,
|
|
63
|
+
subtree: true
|
|
64
|
+
});
|
|
65
|
+
const view = main.ownerDocument.defaultView;
|
|
66
|
+
view?.addEventListener("resize", scheduleMeasure);
|
|
67
|
+
main.addEventListener("load", scheduleMeasure, true);
|
|
68
|
+
main.addEventListener("transitionend", scheduleMeasure);
|
|
69
|
+
main.addEventListener("animationend", scheduleMeasure);
|
|
70
|
+
return () => {
|
|
71
|
+
isActive = false;
|
|
72
|
+
if (frame != null && typeof cancelAnimationFrame === "function") cancelAnimationFrame(frame);
|
|
73
|
+
frame = null;
|
|
74
|
+
stopObservingMain();
|
|
75
|
+
mutations?.disconnect();
|
|
76
|
+
for (const stop of childObservers.values()) stop();
|
|
77
|
+
childObservers.clear();
|
|
78
|
+
view?.removeEventListener("resize", scheduleMeasure);
|
|
79
|
+
main.removeEventListener("load", scheduleMeasure, true);
|
|
80
|
+
main.removeEventListener("transitionend", scheduleMeasure);
|
|
81
|
+
main.removeEventListener("animationend", scheduleMeasure);
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
//#endregion
|
|
85
|
+
//#region src/composables/internal/useScrollRegionProps.ts
|
|
86
|
+
/**
|
|
87
|
+
* 可滚动区域的角色和名字。区域能滚而且内容真的溢出时,它是一个 `group`,
|
|
88
|
+
* 名字取调用方的 `label`,没有就取翻译过的「内容」:读屏到达它(包括浏览器给它的 Tab 停靠点)时能读出来。
|
|
89
|
+
* 调用方自己给了 `role` 就只带调用方的 `label`,单个 `main` 地标只靠角色。
|
|
90
|
+
* 区域不滚时,调用方的 `role` 和 `label` 原样交出去。
|
|
91
|
+
*/
|
|
92
|
+
function useScrollRegionProps(options) {
|
|
93
|
+
const overflows = shallowRef(false);
|
|
94
|
+
const hasRole = computed(() => toValue(options.role) != null);
|
|
95
|
+
watch([
|
|
96
|
+
options.target,
|
|
97
|
+
() => toValue(options.isScrollable),
|
|
98
|
+
hasRole
|
|
99
|
+
], ([node, scrollable, roleGiven], _previous, onCleanup) => {
|
|
100
|
+
overflows.value = false;
|
|
101
|
+
if (node == null || !scrollable || roleGiven) return;
|
|
102
|
+
onCleanup(observeMainOverflow(node, (next) => {
|
|
103
|
+
overflows.value = next;
|
|
104
|
+
}));
|
|
105
|
+
}, {
|
|
106
|
+
flush: "post",
|
|
107
|
+
immediate: true
|
|
108
|
+
});
|
|
109
|
+
onScopeDispose(() => {
|
|
110
|
+
overflows.value = false;
|
|
111
|
+
});
|
|
112
|
+
const isGroup = computed(() => !hasRole.value && toValue(options.isScrollable) && overflows.value);
|
|
113
|
+
return {
|
|
114
|
+
ariaLabel: computed(() => toValue(options.label) ?? (isGroup.value ? toValue(options.defaultLabel) : void 0)),
|
|
115
|
+
role: computed(() => toValue(options.role) ?? (isGroup.value ? "group" : void 0))
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
//#endregion
|
|
119
|
+
export { observeMainOverflow as n, useScrollRegionProps as t };
|
|
@@ -1,6 +1,22 @@
|
|
|
1
|
-
import { a as
|
|
1
|
+
import { a as isMeasurable, c as measureOverflow, i as getLogicalAxisMapping, l as measureScrollAxis, n as INACTIVE_AXIS_STATE, r as axisStatesEqual, s as mappingsEqual, t as DEFAULT_AXIS_MAPPING, u as measureScrollPosition } from "./scrollGeometry-ivD7aoBo.js";
|
|
2
|
+
import { n as registerScrollOwner, r as unregisterScrollOwner, t as attachScrollKeyboardDelegation } from "./scrollKeyboardDelegation-DZ4t5PvC.js";
|
|
2
3
|
import { computed, onBeforeUnmount, ref, shallowRef, watch } from "vue";
|
|
3
4
|
//#region src/composables/internal/scrollInvalidation.ts
|
|
5
|
+
const MEASURE_PROPERTIES = [
|
|
6
|
+
"direction",
|
|
7
|
+
"writing-mode",
|
|
8
|
+
"display",
|
|
9
|
+
"visibility",
|
|
10
|
+
"content-visibility"
|
|
11
|
+
];
|
|
12
|
+
function declarationsOf(text) {
|
|
13
|
+
if (text == null) return "";
|
|
14
|
+
return text.split(";").map((part) => part.trim().toLowerCase()).filter((part) => MEASURE_PROPERTIES.some((name) => part.startsWith(`${name}:`) || part.startsWith(`${name} :`))).sort().join(";");
|
|
15
|
+
}
|
|
16
|
+
/** 行内样式前后的差别里有没有会影响量出结果的声明。 */
|
|
17
|
+
function styleAffectsMeasure(before, after) {
|
|
18
|
+
return declarationsOf(before) !== declarationsOf(after);
|
|
19
|
+
}
|
|
4
20
|
/**
|
|
5
21
|
* 什么时候要重新量一块滚动区域。
|
|
6
22
|
*
|
|
@@ -8,17 +24,17 @@ import { computed, onBeforeUnmount, ref, shallowRef, watch } from "vue";
|
|
|
8
24
|
* 内容和祖先的属性变化(class、dir、hidden、style 会改书写方向和可见性)、字体加载完成。
|
|
9
25
|
* 这些信号只负责「该量了」,量本身由调用方合并到一次里做。
|
|
10
26
|
*/
|
|
11
|
-
function watchScrollInvalidation(viewport, content, schedule) {
|
|
27
|
+
function watchScrollInvalidation(viewport, content, schedule, onScroll = schedule) {
|
|
12
28
|
const doc = viewport.ownerDocument;
|
|
13
29
|
const view = doc.defaultView;
|
|
14
30
|
const cleanups = [];
|
|
15
|
-
function on(target, type, capture = false) {
|
|
31
|
+
function on(target, type, capture = false, handler = schedule) {
|
|
16
32
|
if (target == null) return;
|
|
17
|
-
target.addEventListener(type,
|
|
33
|
+
target.addEventListener(type, handler, {
|
|
18
34
|
capture,
|
|
19
35
|
passive: true
|
|
20
36
|
});
|
|
21
|
-
cleanups.push(() => target.removeEventListener(type,
|
|
37
|
+
cleanups.push(() => target.removeEventListener(type, handler, capture));
|
|
22
38
|
}
|
|
23
39
|
if (typeof ResizeObserver !== "undefined") {
|
|
24
40
|
const observer = new ResizeObserver(schedule);
|
|
@@ -26,7 +42,7 @@ function watchScrollInvalidation(viewport, content, schedule) {
|
|
|
26
42
|
observer.observe(content);
|
|
27
43
|
cleanups.push(() => observer.disconnect());
|
|
28
44
|
}
|
|
29
|
-
on(viewport, "scroll");
|
|
45
|
+
on(viewport, "scroll", false, onScroll);
|
|
30
46
|
on(view, "resize");
|
|
31
47
|
on(view?.visualViewport, "resize");
|
|
32
48
|
on(content, "load", true);
|
|
@@ -53,11 +69,24 @@ function watchScrollInvalidation(viewport, content, schedule) {
|
|
|
53
69
|
childList: true,
|
|
54
70
|
subtree: true
|
|
55
71
|
});
|
|
56
|
-
|
|
72
|
+
cleanups.push(() => observer.disconnect());
|
|
73
|
+
const ancestors = new MutationObserver((records) => {
|
|
74
|
+
for (const record of records) if (record.attributeName !== "style" || !(record.target instanceof Element) || styleAffectsMeasure(record.oldValue, record.target.getAttribute("style"))) {
|
|
75
|
+
schedule();
|
|
76
|
+
return;
|
|
77
|
+
}
|
|
78
|
+
});
|
|
79
|
+
for (let ancestor = viewport.parentElement; ancestor != null; ancestor = ancestor.parentElement) ancestors.observe(ancestor, {
|
|
57
80
|
attributes: true,
|
|
58
|
-
attributeFilter
|
|
81
|
+
attributeFilter: [
|
|
82
|
+
"class",
|
|
83
|
+
"dir",
|
|
84
|
+
"hidden",
|
|
85
|
+
"style"
|
|
86
|
+
],
|
|
87
|
+
attributeOldValue: true
|
|
59
88
|
});
|
|
60
|
-
cleanups.push(() =>
|
|
89
|
+
cleanups.push(() => ancestors.disconnect());
|
|
61
90
|
}
|
|
62
91
|
const fonts = doc.fonts;
|
|
63
92
|
if (fonts != null) {
|
|
@@ -130,6 +159,40 @@ function useScrollableArea(options) {
|
|
|
130
159
|
measure();
|
|
131
160
|
});
|
|
132
161
|
}
|
|
162
|
+
/**
|
|
163
|
+
* 滚动只挪偏移量,所以只靠盒子几何重算两头的位置:不读计算样式,也不排队等下一次测量。
|
|
164
|
+
* 滚动解释不了的变化(请求的轴上溢出出现或消失、偏移量的正负号和书写方向矛盾)仍然走完整测量。
|
|
165
|
+
*/
|
|
166
|
+
function onScroll() {
|
|
167
|
+
const element = viewport.value;
|
|
168
|
+
if (element == null || queued) return;
|
|
169
|
+
const current = measured.value;
|
|
170
|
+
let next = current;
|
|
171
|
+
for (const name of ["inline", "block"]) {
|
|
172
|
+
if (!requested(name)) continue;
|
|
173
|
+
const position = measureScrollPosition(element, name, mapping.value);
|
|
174
|
+
if (position == null) return;
|
|
175
|
+
const overflowed = name === "inline" ? overflowInline.value : overflowBlock.value;
|
|
176
|
+
if (position.overflows !== overflowed || position.contradictsMapping) {
|
|
177
|
+
queueMeasure();
|
|
178
|
+
return;
|
|
179
|
+
}
|
|
180
|
+
const axisState = current[name];
|
|
181
|
+
if (!axisState.isScrollable || axisState.atStart === position.atStart && axisState.atEnd === position.atEnd) continue;
|
|
182
|
+
next = {
|
|
183
|
+
...next,
|
|
184
|
+
[name]: {
|
|
185
|
+
isScrollable: true,
|
|
186
|
+
atStart: position.atStart,
|
|
187
|
+
atEnd: position.atEnd
|
|
188
|
+
}
|
|
189
|
+
};
|
|
190
|
+
}
|
|
191
|
+
if (next !== current) {
|
|
192
|
+
measured.value = next;
|
|
193
|
+
registerScrollOwner(element, next);
|
|
194
|
+
}
|
|
195
|
+
}
|
|
133
196
|
function onViewportFocusIn(event) {
|
|
134
197
|
viewportHasFocus.value = event.target === viewport.value;
|
|
135
198
|
}
|
|
@@ -153,7 +216,7 @@ function useScrollableArea(options) {
|
|
|
153
216
|
}
|
|
154
217
|
watch([viewport, content], ([element, inner], _previous, onCleanup) => {
|
|
155
218
|
if (element == null || inner == null) return;
|
|
156
|
-
onCleanup(watchScrollInvalidation(element, inner, queueMeasure));
|
|
219
|
+
onCleanup(watchScrollInvalidation(element, inner, queueMeasure, onScroll));
|
|
157
220
|
queueMeasure();
|
|
158
221
|
}, { immediate: true });
|
|
159
222
|
watch(axis, queueMeasure);
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { s as registerLayerSurface } from "./useClickableContainer-Dtjg-nkm.js";
|
|
2
2
|
import { r as useResolvedLayerTeleport } from "./useLayerMountTarget-BmZyeKWE.js";
|
|
3
|
-
import { t as
|
|
4
|
-
import { t as
|
|
5
|
-
import {
|
|
3
|
+
import { i as trackInteractionModality, o as isTextEntryControl, t as getInteractionModality } from "./interactionModality-B5dR7nnb.js";
|
|
4
|
+
import { t as useLayer } from "./useLayer-D34yqEqr.js";
|
|
5
|
+
import { t as _sfc_main$1 } from "./LayerContentBoundary-CpqXMTyU.js";
|
|
6
6
|
import { t as matchesFocusVisible } from "./tooltipTriggerRules-9zkDe8_b.js";
|
|
7
|
-
import { t as useAnnounce } from "./announce-
|
|
7
|
+
import { t as useAnnounce } from "./announce-GU01Oix2.js";
|
|
8
8
|
import { i as isFocusable } from "./focus-x7mxEqjR.js";
|
|
9
|
-
import { t as useTouchTriggerInternal } from "./useTouchTriggerInternal-
|
|
10
|
-
import { t as useHoverLayerDismiss } from "./useHoverLayerDismiss-
|
|
9
|
+
import { t as useTouchTriggerInternal } from "./useTouchTriggerInternal-Bs7obOrb.js";
|
|
10
|
+
import { t as useHoverLayerDismiss } from "./useHoverLayerDismiss-CFGjvYi4.js";
|
|
11
11
|
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";
|
|
12
12
|
import "../styles/tooltip.css";
|
|
13
13
|
//#region src/Tooltip/TooltipSurface.vue
|
|
@@ -456,4 +456,4 @@ function useTooltip(options = {}) {
|
|
|
456
456
|
};
|
|
457
457
|
}
|
|
458
458
|
//#endregion
|
|
459
|
-
export { tooltipPresentInterestKey as n,
|
|
459
|
+
export { _sfc_main as i, tooltipPresentInterestKey as n, renderedText as r, useTooltip as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as PRESS_GROUP_ITEM_ATTRIBUTE, l as isTrackedByGroup, r as pressFadeMs, t as PRESSED_ATTRIBUTE } from "./pressFeedback-Co3ugCsm.js";
|
|
2
|
-
import { t as armStrayClick } from "./strayClick-
|
|
2
|
+
import { t as armStrayClick } from "./strayClick-_QKRT5aH.js";
|
|
3
3
|
import { toValue, watch } from "vue";
|
|
4
4
|
import "../styles/touch-hit-area.css";
|
|
5
5
|
/** 不长:热区就是目标本身。 */
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { t as INTERACTIVE_SELECTORS } from "./useClickableContainer-Dtjg-nkm.js";
|
|
2
|
-
import {
|
|
3
|
-
import { a as isDisabledControl, i as trackInteractionModality, o as isTextEntryControl, r as isTextEntrySincePointer } from "./interactionModality-BPvyShJT.js";
|
|
2
|
+
import { a as isDisabledControl, i as trackInteractionModality, m as currentGesture, o as isTextEntryControl, r as isTextEntrySincePointer } from "./interactionModality-B5dR7nnb.js";
|
|
4
3
|
import { onScopeDispose, ref, toValue, watch } from "vue";
|
|
5
4
|
//#region src/composables/internal/tapRecognizer.ts
|
|
6
5
|
/** 「按下去」算作点击的指针类型。笔只在落笔时算:悬停的笔和鼠标一样是悬停。 */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { i as trackInteractionModality, t as getInteractionModality } from "./interactionModality-
|
|
1
|
+
import { i as trackInteractionModality, t as getInteractionModality } from "./interactionModality-B5dR7nnb.js";
|
|
2
2
|
import { t as matchesFocusVisible } from "./tooltipTriggerRules-9zkDe8_b.js";
|
|
3
|
-
import { n as tooltipPresentInterestKey } from "./useTooltip-
|
|
4
|
-
import { t as _sfc_main$1 } from "./Tooltip-
|
|
3
|
+
import { n as tooltipPresentInterestKey } from "./useTooltip-CCPg2zcB.js";
|
|
4
|
+
import { t as _sfc_main$1 } from "./Tooltip-nEgotJlb.js";
|
|
5
5
|
import { n as useTruncation, t as truncatePlacement } from "./useTruncation-C4pdlaXa.js";
|
|
6
6
|
import { computed, createBlock, createCommentVNode, defineComponent, openBlock, provide, shallowRef } from "vue";
|
|
7
7
|
//#region src/Text/TruncationTooltip.vue
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { p as isImeKeyEvent } from "./interactionModality-B5dR7nnb.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
|