@astryx-vue/core 0.12.1 → 0.13.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AlertDialog/index.js +1 -1
- package/dist/{AlertDialog-igjA8kZr.js → AlertDialog-CsdgJDLK.js} +6 -6
- package/dist/AppShell/index.d.ts +1 -1
- package/dist/AppShell/index.js +1 -1
- package/dist/{AppShell-DUHcLJWD.js → AppShell-CE5Up5SI.js} +1 -1
- package/dist/Avatar/index.js +1 -1
- package/dist/{Avatar-KmdgVaAb.js → Avatar-D5CFSkAG.js} +1 -1
- package/dist/AvatarGroup/index.d.ts +1 -1
- package/dist/AvatarGroup/index.js +1 -1
- package/dist/{AvatarGroup-KBzD0jeF.js → AvatarGroup-CKHxYNVh.js} +1 -1
- package/dist/Banner/index.d.ts +1 -1
- package/dist/Banner/index.js +1 -1
- package/dist/{Banner-Bf_nMW3-.js → Banner-B4IEG4Fx.js} +1 -1
- package/dist/BottomSheet/index.d.ts +1 -1
- package/dist/BottomSheet/index.js +2 -2
- package/dist/{BottomSheet-B57XUJV3.js → BottomSheet-D67lQ3Lo.js} +12 -6
- package/dist/{BottomSheet-BMqjymuf.js → BottomSheet-UctSPL-g.js} +3 -3
- package/dist/Breadcrumbs/index.js +2 -2
- package/dist/{Breadcrumbs-aTPAdLdg.js → Breadcrumbs-By21sIml.js} +1 -1
- package/dist/Button/index.d.ts +1 -1
- package/dist/Button/index.js +1 -1
- package/dist/{Button-sUkQ0Ufo.js → Button-CfbR2oPc.js} +6 -6
- package/dist/ButtonGroup/index.d.ts +1 -1
- package/dist/ButtonGroup/index.js +1 -1
- package/dist/{ButtonGroup-CWra-KDj.js → ButtonGroup-BFl-0uOp.js} +2 -2
- 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-DmXceU9h.js → Carousel-mL_KdBMw.js} +1 -1
- package/dist/Center/index.d.ts +1 -1
- package/dist/Chat/index.d.ts +1 -1
- package/dist/Chat/index.js +1 -1
- package/dist/{Chat-CeibAkxn.js → Chat-C10BQlIl.js} +40 -7
- package/dist/CheckboxInput/index.d.ts +1 -1
- package/dist/CheckboxInput/index.js +1 -1
- package/dist/{CheckboxInput-PvzPV1N1.js → CheckboxInput-BGqRMoEA.js} +2 -2
- package/dist/CheckboxList/index.d.ts +1 -1
- package/dist/CheckboxList/index.js +1 -1
- package/dist/{CheckboxList-DKtNzb0t.js → CheckboxList-DbMhC06M.js} +5 -5
- package/dist/ClickableCard/index.d.ts +1 -1
- package/dist/ClickableCard/index.js +1 -1
- package/dist/{ClickableCard-CvxSKkXh.js → ClickableCard-5k35MGot.js} +2 -2
- package/dist/Code/index.d.ts +1 -1
- package/dist/Code/index.js +1 -1
- package/dist/{CodeBlock-CTPuBH_r.js → CodeBlock-DAlWY51H.js} +1 -1
- package/dist/Collapsible/index.d.ts +1 -1
- package/dist/Collapsible/index.js +1 -1
- package/dist/{Collapsible-C_tl5-L0.js → Collapsible-C09C59LH.js} +1 -1
- package/dist/CommandPalette/index.js +1 -1
- package/dist/{CommandPalette-DIoT_vZh.js → CommandPalette-DYk_FyFB.js} +3 -3
- package/dist/ComplexSelector/index.d.ts +1 -1
- package/dist/ComplexSelector/index.js +1 -1
- package/dist/{ComplexSelector-B_5mzJjR.js → ComplexSelector-NDpRucQB.js} +165 -49
- package/dist/ContextMenu/index.d.ts +1 -1
- package/dist/ContextMenu/index.js +2 -2
- package/dist/{ContextMenu-DYnyk5rs.js → ContextMenu-JDU4HDKm.js} +6 -6
- package/dist/DateInput/index.d.ts +1 -1
- package/dist/DateInput/index.js +1 -1
- package/dist/{DateInput-DgPIsWPu.js → DateInput-DVEb1-fM.js} +4 -4
- package/dist/DateRangeInput/index.d.ts +1 -1
- package/dist/DateRangeInput/index.js +1 -1
- package/dist/{DateRangeInput-oOfhUt1Q.js → DateRangeInput-OuAz80nR.js} +3 -3
- package/dist/DateTimeInput/index.d.ts +1 -1
- package/dist/DateTimeInput/index.js +1 -1
- package/dist/{DateTimeInput-DZfghF2h.js → DateTimeInput-J5CFTSSa.js} +5 -5
- package/dist/Dialog/index.d.ts +1 -1
- package/dist/Dialog/index.js +3 -3
- package/dist/{Dialog-Dkwt3mVt.js → Dialog-C0WuGDqP.js} +48 -22
- package/dist/{Dialog-qIL4DUot.js → Dialog-Cm8CXGpI.js} +1 -1
- package/dist/{DialogHeader-w4TCzYEj.js → DialogHeader-BD2Ezw4F.js} +2 -2
- package/dist/Drawer/index.d.ts +1 -1
- package/dist/Drawer/index.js +1 -1
- package/dist/{Drawer-DBHSNUAa.js → Drawer-CFpcRHt7.js} +2 -2
- package/dist/DropdownMenu/index.js +3 -3
- package/dist/{DropdownMenu-DHvAlqSj.js → DropdownMenu-2QRvY0aP.js} +10 -10
- package/dist/{DropdownMenu-Cncx4FbU.js → DropdownMenu-5Mn01A-5.js} +5 -5
- package/dist/EmptyState/index.js +1 -1
- package/dist/{EmptyState-uWyPaIR1.js → EmptyState-CqUTEnGg.js} +2 -2
- package/dist/Field/index.js +3 -3
- package/dist/{Field-CqDOsI3P.js → Field-Cw8J8ld7.js} +1 -1
- package/dist/{FieldInfoTip-CUh2koNc.js → FieldInfoTip-D7UNDNje.js} +1 -1
- package/dist/{FieldLabel-BMHNRAG3.js → FieldLabel-CJbiefUx.js} +1 -1
- package/dist/FileInput/index.d.ts +1 -1
- package/dist/FileInput/index.js +1 -1
- package/dist/{FileInput-C6dK2pvX.js → FileInput-CgfiwVfs.js} +2 -2
- package/dist/Heading/index.js +1 -1
- package/dist/{Heading-C0axugQa.js → Heading-BO9n2vLl.js} +1 -1
- package/dist/HoverCard/index.d.ts +1 -1
- package/dist/HoverCard/index.js +1 -1
- package/dist/{HoverCard-C6Gxekg0.js → HoverCard-47J_i9AH.js} +28 -64
- package/dist/IconButton/index.js +1 -1
- package/dist/{IconButton-Bv2eIsJy.js → IconButton-DiDHiGbo.js} +1 -1
- package/dist/InfoTip/index.d.ts +1 -1
- package/dist/InfoTip/index.js +1 -1
- package/dist/{InfoTip-BKsbmGA6.js → InfoTip-ClRC1Hh9.js} +2 -2
- package/dist/{InputClearButton-CSS2Tjat.js → InputClearButton-DL4RM5z1.js} +1 -1
- package/dist/InputGroup/index.js +1 -1
- package/dist/{InputGroup-DTGh1ylC.js → InputGroup-JMOrdsmu.js} +1 -1
- package/dist/InternationalizationProvider/index.d.ts +1 -1
- package/dist/InternationalizationProvider/index.js +1 -1
- package/dist/{InternationalizationProvider-CyDjQn5Z.js → InternationalizationProvider-BYU2MRtX.js} +1 -1
- package/dist/{Item-Cfv4ALls.js → Item-CoNXshDg.js} +2 -2
- package/dist/{LayerContentBoundary-DwTkbifx.js → LayerContentBoundary-CeebKoPB.js} +1 -1
- package/dist/Lightbox/index.js +1 -1
- package/dist/{Lightbox-BZ-zBvly.js → Lightbox-kKjxYZ05.js} +3 -3
- package/dist/Link/index.d.ts +1 -1
- package/dist/Link/index.js +1 -1
- package/dist/{Link-Ddu0KjPZ.js → Link-CkbAlJ3-.js} +2 -2
- package/dist/List/index.d.ts +1 -1
- package/dist/List/index.js +2 -2
- package/dist/{ListItem-2evjQQ7n.js → ListItem-D-pqxQpq.js} +1 -1
- package/dist/Markdown/index.js +1 -1
- package/dist/{Markdown-D7bQGV9u.js → Markdown-DXRFVNJd.js} +3 -3
- package/dist/MobileNav/index.js +1 -1
- package/dist/{MobileNavToggle-Dfshmrdy.js → MobileNavToggle-DUtvvHc7.js} +3 -3
- package/dist/MoreMenu/index.d.ts +1 -1
- package/dist/MoreMenu/index.js +1 -1
- package/dist/{MoreMenu-Bie4B7Jr.js → MoreMenu-CEJ9E2eD.js} +6 -6
- package/dist/MultiSelector/index.d.ts +1 -1
- package/dist/MultiSelector/index.js +1 -1
- package/dist/{MultiSelector-BdedjB6u.js → MultiSelector-DgWCWpnM.js} +111 -56
- package/dist/{NavDisclosure-1otbO71l.js → NavDisclosure-Bf5OFtwv.js} +1 -1
- package/dist/{NavHeadingSurface-BkMR3V5m.js → NavHeadingSurface-D5MpO-gO.js} +1 -1
- package/dist/NavItem/index.d.ts +1 -1
- package/dist/NavItem/index.js +1 -1
- package/dist/{NavItem-BZLN0U5a.js → NavItem-hmUfwhiK.js} +1 -1
- package/dist/NavMenu/index.js +3 -3
- package/dist/{NavMenu-dyGZS1yM.js → NavMenu-BcmUfk7z.js} +2 -2
- package/dist/{NavMenuItem-CirgE73a.js → NavMenuItem-C9xk9KZk.js} +2 -2
- package/dist/NumberInput/index.d.ts +1 -1
- package/dist/NumberInput/index.js +1 -1
- package/dist/{NumberInput-0KbcEF3_.js → NumberInput-DNcE_HLD.js} +3 -3
- package/dist/Outline/index.js +1 -1
- package/dist/{Outline-BXu7HCHp.js → Outline--OQ2pCFL.js} +1 -1
- package/dist/OverflowList/index.d.ts +1 -1
- package/dist/OverflowList/index.js +1 -1
- package/dist/{OverflowList-BdcaX1bz.js → OverflowList-CeQT7MBd.js} +2 -2
- package/dist/Pagination/index.d.ts +1 -1
- package/dist/Pagination/index.js +1 -1
- package/dist/{Pagination-uttop2ls.js → Pagination-DJGQe6wH.js} +1 -1
- package/dist/Popover/index.d.ts +1 -1
- package/dist/Popover/index.js +1 -1
- package/dist/{Popover-BOQo9UPf.js → Popover-C68nCirC.js} +8 -7
- package/dist/PowerSearch/index.d.ts +1 -1
- package/dist/PowerSearch/index.js +1 -1
- package/dist/{PowerSearch-DDuYfvNh.js → PowerSearch-C6lkutch.js} +18 -18
- package/dist/ProgressBar/index.d.ts +1 -1
- package/dist/ProgressBar/index.js +1 -1
- package/dist/{ProgressBar-BS3VSoE9.js → ProgressBar-MaDhabCm.js} +1 -1
- package/dist/Radio/index.d.ts +1 -1
- package/dist/Radio/index.js +1 -1
- package/dist/{RadioGroup-DKaSstyl.js → RadioGroup-CLQLK_V7.js} +3 -3
- package/dist/RadioList/index.d.ts +1 -1
- package/dist/RadioList/index.js +1 -1
- package/dist/{RadioList-DtKm9spP.js → RadioList-DfHTyqIQ.js} +1 -1
- package/dist/Resizable/index.d.ts +1 -1
- package/dist/ScrollableArea/index.d.ts +1 -1
- package/dist/ScrollableArea/index.js +1 -1
- package/dist/{ScrollableArea-BgIytCxo.js → ScrollableArea-C2GBp55Z.js} +1 -1
- package/dist/SegmentedControl/index.js +1 -1
- package/dist/{SegmentedControl-Bs74LlvS.js → SegmentedControl-COVOdCq2.js} +1 -1
- package/dist/SelectableCard/index.d.ts +1 -1
- package/dist/SelectableCard/index.js +1 -1
- package/dist/{SelectableCard-BFCwgtWf.js → SelectableCard-CTRsWXfA.js} +2 -2
- package/dist/Selector/index.d.ts +1 -1
- package/dist/Selector/index.js +1 -1
- package/dist/{Selector-OpczmkqS.js → Selector-CPCoJ7Sb.js} +13 -47
- package/dist/SideNav/index.d.ts +1 -1
- package/dist/SideNav/index.js +1 -1
- package/dist/{SideNav-L6CWk5fV.js → SideNav-CV8MKVL-.js} +6 -6
- package/dist/Slider/index.js +1 -1
- package/dist/{Slider-DZS8mGZA.js → Slider-CHJ1CESd.js} +3 -3
- package/dist/Stack/index.d.ts +1 -1
- package/dist/StatusDot/index.js +1 -1
- package/dist/{StatusDot-DaQGq8YN.js → StatusDot-CGaRrl39.js} +1 -1
- package/dist/Stepper/index.d.ts +1 -1
- package/dist/Stepper/index.js +1 -1
- package/dist/{Stepper-DAQRW4n8.js → Stepper-CYZrGpQ9.js} +1 -1
- package/dist/Switch/index.d.ts +1 -1
- package/dist/Switch/index.js +1 -1
- package/dist/{Switch-BN_NnBuc.js → Switch-Bx9ezhrN.js} +2 -2
- package/dist/TabList/index.d.ts +1 -1
- package/dist/TabList/index.js +1 -1
- package/dist/{TabList-Bmj4tGT-.js → TabList-o4t9vWvl.js} +2 -2
- package/dist/Table/index.d.ts +1 -1
- package/dist/Table/index.js +1 -1
- package/dist/{Table-_pSoEiGP.js → Table-CO2cYE8r.js} +13 -13
- package/dist/Text/index.js +1 -1
- package/dist/{Text-IijvZmW-.js → Text-C6SB2hHJ.js} +1 -1
- package/dist/TextArea/index.d.ts +1 -1
- package/dist/TextArea/index.js +1 -1
- package/dist/{TextArea-BDR179q1.js → TextArea-DVaDS_1K.js} +5 -5
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/TextInput/index.js +1 -1
- package/dist/{TextInput-kUzxl99M.js → TextInput-Dylfzj33.js} +5 -5
- package/dist/Thumbnail/index.js +1 -1
- package/dist/{Thumbnail-Disi5yDb.js → Thumbnail-BTQAYnWi.js} +3 -3
- package/dist/{TimeField-C0la1AtP.js → TimeField-B3JGgLuf.js} +4 -4
- package/dist/TimeInput/index.d.ts +1 -1
- package/dist/TimeInput/index.js +1 -1
- package/dist/{TimeInput-C_jTijHh.js → TimeInput-Dmy6PxaD.js} +2 -2
- package/dist/Timer/index.js +1 -1
- package/dist/{Timer-DifGERP8.js → Timer-CN5BmaFS.js} +1 -1
- package/dist/Timestamp/index.d.ts +1 -1
- package/dist/Timestamp/index.js +1 -1
- package/dist/{Timestamp-BjXZGAvO.js → Timestamp-B7UcCEo2.js} +3 -3
- package/dist/Toast/index.js +1 -1
- package/dist/{Toast-DBo0WRAd.js → Toast-DCipbbCW.js} +3 -3
- package/dist/ToggleButton/index.d.ts +1 -1
- package/dist/ToggleButton/index.js +1 -1
- package/dist/{ToggleButton-B5HNykOh.js → ToggleButton-C78lrcdr.js} +3 -3
- package/dist/Token/index.js +1 -1
- package/dist/{Token-CtG_XE6z.js → Token-uhs8Q9Rr.js} +1 -1
- package/dist/Tokenizer/index.d.ts +1 -1
- package/dist/Tokenizer/index.js +1 -1
- package/dist/{Tokenizer-BNazaZsP.js → Tokenizer-D7B1ff3O.js} +111 -52
- 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-4APVAlN9.js → Tooltip-kQPfj3SE.js} +1 -1
- package/dist/TopNav/index.d.ts +1 -1
- package/dist/TopNav/index.js +1 -1
- package/dist/{TopNav-XSZWAR-7.js → TopNav-AGY785QI.js} +5 -5
- package/dist/TreeList/index.js +1 -1
- package/dist/{TreeList-CRMLcaRx.js → TreeList-Dc3A72iY.js} +2 -2
- package/dist/Typeahead/index.d.ts +1 -1
- package/dist/Typeahead/index.js +2 -2
- package/dist/{Typeahead-BgQVQw-0.js → Typeahead-QWYeVsel.js} +49 -14
- package/dist/composables/index.d.ts +2 -1
- package/dist/composables/index.js +15 -15
- package/dist/{composables-WUkSRUCj.js → composables-CyKB3F8u.js} +53 -5
- package/dist/{focus-l8jVTcqd.js → focus-x7mxEqjR.js} +1 -1
- package/dist/{index-a1jCiQP7.d.ts → index-9YGUb_Ht.d.ts} +4 -4
- package/dist/{index-Q1oG9yIT.d.ts → index-B-3EGjfQ.d.ts} +2 -2
- 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-wY6dKz6c.d.ts → index-BEZ4ezJk.d.ts} +2 -2
- package/dist/{index-DFLPv9io.d.ts → index-BOCb89V9.d.ts} +2 -2
- package/dist/{index-CGDmjlec.d.ts → index-BWaO4-T-.d.ts} +56 -56
- package/dist/{index-CTjkJP4x.d.ts → index-Bgk1Rj2A.d.ts} +1 -1
- package/dist/{index-CuW4AQ7M.d.ts → index-BhxqUt3y.d.ts} +2 -2
- package/dist/{index-wTwhcFQx.d.ts → index-Bl_K_cRv.d.ts} +1 -1
- package/dist/{index-Bmqz1lVz.d.ts → index-BpprL2SN.d.ts} +1 -1
- package/dist/{index-CM2L3SUw.d.ts → index-BzViSe8D.d.ts} +19 -4
- package/dist/{index-C1zwvxPH.d.ts → index-CL8JvxHW.d.ts} +2 -2
- package/dist/{index-CKtrcglY.d.ts → index-CREW8ZiL.d.ts} +6 -6
- package/dist/{index-D-YoRrfP.d.ts → index-CVs4A2QU.d.ts} +47 -58
- package/dist/{index-9tZJgo0R.d.ts → index-CfoExOY_.d.ts} +2 -2
- package/dist/{index-Cb-HJUhK.d.ts → index-Cun6cXGP.d.ts} +1 -1
- package/dist/{index-DydQ5Ngj.d.ts → index-D7YRtteD.d.ts} +1 -1
- package/dist/{index-BmYnVNI-.d.ts → index-DE1genab.d.ts} +14 -2
- package/dist/{index-B44fLswd.d.ts → index-DPhQZXYw.d.ts} +1 -1
- package/dist/{index-lmd9LZKB.d.ts → index-DS9SzqqJ.d.ts} +2 -2
- package/dist/{index-mkbGYz8f.d.ts → index-Dc9_kBrU.d.ts} +9 -2
- package/dist/{index-_5purQow.d.ts → index-Dep8pgnU.d.ts} +8 -6
- package/dist/{index-DhcjuwQq.d.ts → index-Dlq0cFK-.d.ts} +2 -2
- package/dist/{index-CBOv5j3c.d.ts → index-FeZXsFO-.d.ts} +3 -3
- package/dist/{index-COgrQZIL.d.ts → index-YKCx03zD.d.ts} +2 -2
- package/dist/{index-BKnyTWPM.d.ts → index-ZbNwGVkS.d.ts} +1 -1
- package/dist/{index-Cy1rEWC-.d.ts → index-bgjrSSaT.d.ts} +2 -2
- package/dist/{index-B3FE7s7V.d.ts → index-s0Ezq3U-.d.ts} +4 -4
- package/dist/{index-CLHJybQY.d.ts → index-ul1hNxih.d.ts} +1 -1
- package/dist/index.d.ts +32 -31
- package/dist/index.js +109 -109
- package/dist/interactionModality-BPvyShJT.js +125 -0
- package/dist/layerDepth-BU_55vPr.js +294 -0
- package/dist/{layerFocusReturn-DMJaFgcY.js → layerFocusReturn-DWGkSHXj.js} +2 -2
- package/dist/{loadCatalog-XbgoqaRp.js → loadCatalog-BtQRPyzj.js} +6 -2
- package/dist/{loadCatalog-CQEYXGuI.d.ts → loadCatalog-Kp7aQZpL.d.ts} +3 -0
- package/dist/locale/index.d.ts +2 -2
- package/dist/locale/index.js +4 -4
- package/dist/{locale-BwnZeppK.js → locale-DET_YkFW.js} +1 -1
- package/dist/{modalOutlet-CUOcrhIu.js → modalOutlet-Drr9a16b.js} +25 -1
- package/dist/{pressFeedback-Bwwpex9q.js → pressFeedback-Co3ugCsm.js} +3 -190
- package/dist/pressGesture-B3z3W3Za.js +78 -0
- package/dist/{scrollKeyboardDelegation-D7cumnOl.js → scrollKeyboardDelegation-BSpUCTlO.js} +1 -1
- package/dist/selectorEscape-LkWoVYQN.js +52 -0
- package/dist/{useAnchoredListbox-CuRfVgKl.js → stillPointerGate-BZ7KMJOB.js} +20 -2
- package/dist/{tokenizer-DSka5PJD.js → tokenizer-ChiAuPN-.js} +5 -1
- package/dist/tooltipTriggerRules-9zkDe8_b.js +10 -0
- package/dist/{searchResultMessage-BEqDlHdV.js → triggerVariant-BDVvyLtv.js} +18 -18
- package/dist/{useActionGroupTracking-BJMRaXil.js → useActionGroupTracking-CDclbV3Y.js} +2 -2
- package/dist/useClickableContainer-Dtjg-nkm.js +141 -0
- package/dist/{useCombobox-CTo5C-gc.js → useCombobox-D374_pT8.js} +32 -8
- package/dist/{useDismiss-BWd-sQ18.js → useDismiss-74dLMi5S.js} +58 -5
- package/dist/{useFocusTrap-FJt5QhEd.js → useFocusTrap-CyooA0OC.js} +32 -17
- package/dist/{useHoverLayerDismiss-uhfzmZyf.js → useHoverLayerDismiss-B1W5qIBx.js} +1 -1
- package/dist/{useInputContainer-BpLtCA-U.js → useInputContainer-CLhsKYZ6.js} +1 -1
- package/dist/useInputStatusIcon-B6m_t8cK.d.ts +45 -0
- package/dist/{useInputStatusIcon-C3Q-q_wI.js → useInputStatusIcon-ZqCxDNTj.js} +1 -1
- package/dist/{useLayer-BGv_wRSG.js → useLayer-BnjrJ85F.js} +13 -5
- package/dist/{useMenuDrillIn-uQtOSny6.js → useMenuDrillIn-BW9dNBje.js} +1 -1
- package/dist/{useMenuPress-BLPwY_m1.js → useMenuPress-BWq7kwWm.js} +1 -29
- package/dist/{useOptionActionGrid-CkJcuvaU.js → useOptionActionGrid-C7ibYM_A.js} +15 -1
- package/dist/{usePressFeedback-Bcjsw9vv.js → usePressFeedback-Cxu4-mCe.js} +1 -1
- package/dist/{useResizable-DTDhsLip.js → useResizable-De4Xp3TD.js} +1 -1
- package/dist/{useRestoreFocus-D2-pGoOk.js → useRestoreFocus-CSrI8x7v.js} +2 -2
- package/dist/{useScrollableArea-BE8b3qm7.js → useScrollableArea-Bwn75HDg.js} +1 -1
- package/dist/{useTooltip-md1tr6ef.js → useTooltip-uc-VLZ8I.js} +25 -27
- package/dist/{useTouchHitArea-1WtV3u6F.js → useTouchHitArea-B3jx01C3.js} +1 -1
- package/dist/useTouchTriggerInternal-b-txblws.js +257 -0
- package/dist/{useTruncationTooltip-BGsFITq5.js → useTruncationTooltip-BVMCoNno.js} +4 -4
- package/dist/{useTypeahead-BrUwR-kv.js → useTypeahead-BWj3xhbR.js} +1 -1
- package/dist/{TypeaheadMenu-BOzaCvSb.js → useTypeaheadAnnouncement-DVkdWTWy.js} +75 -33
- package/package.json +1 -1
- package/styles/complex-selector.css +24 -1
- package/styles/multi-selector.css +10 -0
- package/styles/selector.css +10 -0
- package/styles/tokenizer.css +64 -0
- package/styles/typeahead.css +28 -0
- package/dist/interactionModality-ACpTMhak.js +0 -44
- package/dist/layerDepth-BF74Cctw.js +0 -205
- package/dist/layerSurfacePress-C3PjPpJP.js +0 -29
- package/dist/tooltipTriggerRules-BY3LAtUl.js +0 -53
- package/dist/triggerVariant-BsL8jMHs.js +0 -16
- package/dist/useTouchTrigger-GGd85Obb.js +0 -146
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { r as getFocusables } from "./focus-
|
|
1
|
+
import { o as isImeKeyEvent } from "./layerDepth-BU_55vPr.js";
|
|
2
|
+
import { i as trackInteractionModality, t as getInteractionModality } from "./interactionModality-BPvyShJT.js";
|
|
3
|
+
import { r as getFocusables } from "./focus-x7mxEqjR.js";
|
|
4
4
|
import { onScopeDispose, ref, toValue, watch } from "vue";
|
|
5
5
|
//#region src/composables/internal/focusReturn.ts
|
|
6
6
|
function isTextEntry(element) {
|
|
@@ -45,13 +45,22 @@ function useFocusTrap(options = {}) {
|
|
|
45
45
|
let previouslyFocused = null;
|
|
46
46
|
/** 焦点是否进过陷阱。没进过就不还焦点,免得抢走浮层触发器的焦点。 */
|
|
47
47
|
let hasFocusEntered = false;
|
|
48
|
+
/**
|
|
49
|
+
* 陷阱所在的 document:容器的。经 Teleport 渲染进同源 iframe 或画中画窗口的陷阱,
|
|
50
|
+
* 按键和焦点变化只到那个窗口的 document,全局 `document` 收不到。
|
|
51
|
+
*/
|
|
52
|
+
function trapDocument() {
|
|
53
|
+
return containerRef.value?.ownerDocument ?? document;
|
|
54
|
+
}
|
|
55
|
+
/** 正在监听的 document,摘监听时用同一个。 */
|
|
56
|
+
let listeningDoc = null;
|
|
48
57
|
function isActive() {
|
|
49
58
|
return toValue(options.isActive) ?? toValue(options.isEnabled) ?? false;
|
|
50
59
|
}
|
|
51
60
|
function isFocusInside() {
|
|
52
61
|
const el = containerRef.value;
|
|
53
62
|
if (el == null || typeof document === "undefined") return false;
|
|
54
|
-
const active =
|
|
63
|
+
const active = trapDocument().activeElement;
|
|
55
64
|
return active != null && el.contains(active);
|
|
56
65
|
}
|
|
57
66
|
function isTargetInside(event) {
|
|
@@ -75,7 +84,7 @@ function useFocusTrap(options = {}) {
|
|
|
75
84
|
}
|
|
76
85
|
const first = focusables[0];
|
|
77
86
|
const last = focusables[focusables.length - 1];
|
|
78
|
-
const active =
|
|
87
|
+
const active = trapDocument().activeElement;
|
|
79
88
|
if (active === el) {
|
|
80
89
|
event.preventDefault();
|
|
81
90
|
if (event.shiftKey) last.focus();
|
|
@@ -109,8 +118,9 @@ function useFocusTrap(options = {}) {
|
|
|
109
118
|
function activate() {
|
|
110
119
|
trackInteractionModality();
|
|
111
120
|
if (typeof document !== "undefined") {
|
|
112
|
-
const
|
|
113
|
-
|
|
121
|
+
const doc = trapDocument();
|
|
122
|
+
const active = doc.activeElement;
|
|
123
|
+
previouslyFocused = active != null && active !== doc.body && typeof active.focus === "function" ? active : null;
|
|
114
124
|
}
|
|
115
125
|
hasFocusEntered = false;
|
|
116
126
|
setup();
|
|
@@ -125,8 +135,9 @@ function useFocusTrap(options = {}) {
|
|
|
125
135
|
previouslyFocused = null;
|
|
126
136
|
hasFocusEntered = false;
|
|
127
137
|
if (target == null || !hasEntered || !target.isConnected) return;
|
|
128
|
-
const
|
|
129
|
-
|
|
138
|
+
const doc = typeof document === "undefined" ? null : trapDocument();
|
|
139
|
+
const active = doc?.activeElement ?? null;
|
|
140
|
+
if (active != null && active !== doc?.body && !isFocusInside()) return;
|
|
130
141
|
focusForLastInput(target);
|
|
131
142
|
}
|
|
132
143
|
function deactivate() {
|
|
@@ -134,21 +145,25 @@ function useFocusTrap(options = {}) {
|
|
|
134
145
|
restoreFocus();
|
|
135
146
|
}
|
|
136
147
|
function setup() {
|
|
137
|
-
if (typeof document
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
148
|
+
if (typeof document === "undefined") return;
|
|
149
|
+
teardown();
|
|
150
|
+
listeningDoc = trapDocument();
|
|
151
|
+
listeningDoc.addEventListener("keydown", onKeyDown, true);
|
|
152
|
+
listeningDoc.addEventListener("focusin", onFocusIn, true);
|
|
141
153
|
}
|
|
142
154
|
function teardown() {
|
|
143
|
-
if (
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
155
|
+
if (listeningDoc == null) return;
|
|
156
|
+
listeningDoc.removeEventListener("keydown", onKeyDown, true);
|
|
157
|
+
listeningDoc.removeEventListener("focusin", onFocusIn, true);
|
|
158
|
+
listeningDoc = null;
|
|
147
159
|
}
|
|
148
160
|
watch(isActive, (enabled) => {
|
|
149
161
|
if (enabled) activate();
|
|
150
162
|
else deactivate();
|
|
151
163
|
}, { immediate: true });
|
|
164
|
+
watch(containerRef, () => {
|
|
165
|
+
if (isActive() && listeningDoc !== trapDocument()) setup();
|
|
166
|
+
});
|
|
152
167
|
onScopeDispose(deactivate);
|
|
153
168
|
return {
|
|
154
169
|
containerRef,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as pushLayer, i as isTopLayer, n as useLayerDepth } from "./layerDepth-BU_55vPr.js";
|
|
2
2
|
import { onScopeDispose } from "vue";
|
|
3
3
|
//#region src/layer/useHoverLayerDismiss.ts
|
|
4
4
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { i as useClickableContainer } from "./useClickableContainer-Dtjg-nkm.js";
|
|
2
2
|
import { toValue } from "vue";
|
|
3
3
|
//#region src/composables/useInputContainer.ts
|
|
4
4
|
/** 点了以后接焦点的输入框类型:这些类型自己不会因为点击容器而聚焦。 */
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { o as FieldStatusInput } from "./types-bAQk3F8G.js";
|
|
2
|
+
import { Component, ComputedRef, MaybeRefOrGetter } from "vue";
|
|
3
|
+
//#region src/composables/useInputStatusIcon.d.ts
|
|
4
|
+
/** 状态图标相对输入框的位置。 */
|
|
5
|
+
type InputStatusVariant = 'attached' | 'detached' | 'tooltip';
|
|
6
|
+
interface UseInputStatusIconOptions {
|
|
7
|
+
/** 输入框的状态(类型加文案),没有状态就不传。 */
|
|
8
|
+
status?: MaybeRefOrGetter<FieldStatusInput | undefined>;
|
|
9
|
+
/**
|
|
10
|
+
* 状态相对输入框怎么摆。`attached` 在框里画一个图标,`detached` 交给下面的
|
|
11
|
+
* 状态文案自己带图标,`tooltip` 画一个能用键盘够到的信息按钮。
|
|
12
|
+
* @default 'attached'
|
|
13
|
+
*/
|
|
14
|
+
statusVariant?: MaybeRefOrGetter<InputStatusVariant>;
|
|
15
|
+
/**
|
|
16
|
+
* 输入框是否在 `InputGroup` 里,组自己会画状态。
|
|
17
|
+
* @default false
|
|
18
|
+
*/
|
|
19
|
+
isInGroup?: MaybeRefOrGetter<boolean>;
|
|
20
|
+
}
|
|
21
|
+
interface UseInputStatusIconReturn {
|
|
22
|
+
/**
|
|
23
|
+
* 要渲染在输入框容器里的东西:`FieldIcon`(普通图标),或者 `FieldInfoTip`
|
|
24
|
+
* (带 tooltip 的信息按钮)。没有该画的东西时是 `null`。
|
|
25
|
+
* 和 `statusIconProps` 一起用:`<component :is="statusIcon" v-bind="statusIconProps" />`。
|
|
26
|
+
*/
|
|
27
|
+
statusIcon: ComputedRef<Component | null>;
|
|
28
|
+
/** 上面那个组件要的属性。 */
|
|
29
|
+
statusIconProps: ComputedRef<Record<string, unknown>>;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* 对应原版 Astryx 的 `hooks/useInputStatusIcon`。
|
|
33
|
+
*
|
|
34
|
+
* 决定输入框上那颗状态图标画什么,让同一状态下所有输入框长得一样:
|
|
35
|
+
* `attached` 画一个不说话的图标,文案留给下面的状态栏;`detached` 什么都不画,
|
|
36
|
+
* 因为状态栏自己带了图标;`tooltip` 画一个真按钮,键盘、鼠标、触摸、读屏都能
|
|
37
|
+
* 摸到它的说明。在 `InputGroup` 里也不画,组自己会画。
|
|
38
|
+
*
|
|
39
|
+
* 上游还会返回一个 `describedBy`,用来接进输入框的 `aria-describedby`。
|
|
40
|
+
* 我们这边 `Field` 已经把状态文案渲染成视觉隐藏文本并接进 `aria-describedby` 了,
|
|
41
|
+
* tooltip 按钮自己也带着 `aria-describedby`,所以不需要再返回一个 id。
|
|
42
|
+
*/
|
|
43
|
+
declare function useInputStatusIcon(options?: UseInputStatusIconOptions): UseInputStatusIconReturn;
|
|
44
|
+
//#endregion
|
|
45
|
+
export { useInputStatusIcon as i, UseInputStatusIconOptions as n, UseInputStatusIconReturn as r, InputStatusVariant as t };
|
|
@@ -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-D7UNDNje.js";
|
|
3
3
|
import { computed, toValue } from "vue";
|
|
4
4
|
//#region src/composables/useInputStatusIcon.ts
|
|
5
5
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as usePositionedLayer, t as useDismiss } from "./useDismiss-
|
|
1
|
+
import { n as usePositionedLayer, t as useDismiss } from "./useDismiss-74dLMi5S.js";
|
|
2
2
|
import { computed, shallowRef, toValue, useId } from "vue";
|
|
3
3
|
//#region src/composables/useLayer.ts
|
|
4
4
|
/**
|
|
@@ -35,7 +35,8 @@ function useLayer(options) {
|
|
|
35
35
|
isOpen,
|
|
36
36
|
placement,
|
|
37
37
|
alignment,
|
|
38
|
-
gap: options.gap ?? 4
|
|
38
|
+
gap: options.gap ?? 4,
|
|
39
|
+
keepAnchorClear: options.keepAnchorClear
|
|
39
40
|
});
|
|
40
41
|
const resolvedPlacement = computed(() => positioned?.position.value.placement ?? placement.value);
|
|
41
42
|
const contentStyle = computed(() => {
|
|
@@ -44,14 +45,21 @@ function useLayer(options) {
|
|
|
44
45
|
top: `${toValue(options.y) ?? 0}px`,
|
|
45
46
|
left: `${toValue(options.x) ?? 0}px`
|
|
46
47
|
};
|
|
47
|
-
const { top, left } = positioned?.position.value ?? {
|
|
48
|
+
const { top, left, maxHeight } = positioned?.position.value ?? {
|
|
48
49
|
top: 0,
|
|
49
|
-
left: 0
|
|
50
|
+
left: 0,
|
|
51
|
+
maxHeight: void 0
|
|
50
52
|
};
|
|
51
|
-
|
|
53
|
+
const style = {
|
|
52
54
|
top: `${top}px`,
|
|
53
55
|
left: `${left}px`
|
|
54
56
|
};
|
|
57
|
+
if (maxHeight != null) {
|
|
58
|
+
style.maxHeight = `${maxHeight}px`;
|
|
59
|
+
style.overflowY = "auto";
|
|
60
|
+
style.overscrollBehavior = "contain";
|
|
61
|
+
}
|
|
62
|
+
return style;
|
|
55
63
|
});
|
|
56
64
|
const isMounted = computed(() => !toValue(options.lazyMount) || hasOpened.value);
|
|
57
65
|
let isHiding = false;
|
|
@@ -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-CoNXshDg.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,4 +1,5 @@
|
|
|
1
1
|
import { i as runAsMenuPressActivation, t as armStrayClick } from "./strayClick-CY-_ImKv.js";
|
|
2
|
+
import { s as currentGesture } from "./layerDepth-BU_55vPr.js";
|
|
2
3
|
import { getCurrentScope, onScopeDispose, toValue } from "vue";
|
|
3
4
|
//#region src/composables/useLongPress.ts
|
|
4
5
|
const DEFAULT_DELAY_MS = 500;
|
|
@@ -104,35 +105,6 @@ function useLongPress(options) {
|
|
|
104
105
|
start
|
|
105
106
|
};
|
|
106
107
|
}
|
|
107
|
-
//#endregion
|
|
108
|
-
//#region src/composables/internal/gestureCounter.ts
|
|
109
|
-
/**
|
|
110
|
-
* 手势计数器:每一次新的按下或按键,计数加一。
|
|
111
|
-
*
|
|
112
|
-
* 同一次按压里,浏览器的点外关闭和触发器自己的 click 谁先到是没准的。
|
|
113
|
-
* 比时间窗口只能猜,数手势不用猜:「属于关闭那次手势的 click」就是
|
|
114
|
-
* 「计数还停在关闭那一刻的 click」,不管主线程中间卡了多久。
|
|
115
|
-
*
|
|
116
|
-
* 监听挂在 document 的捕获阶段,在任何处理函数读它之前先加一。第一次读的时候才装,服务端不装。
|
|
117
|
-
*/
|
|
118
|
-
let gesture = 0;
|
|
119
|
-
let isListening = false;
|
|
120
|
-
function advance() {
|
|
121
|
-
gesture += 1;
|
|
122
|
-
}
|
|
123
|
-
function markClicked() {}
|
|
124
|
-
function listen() {
|
|
125
|
-
if (isListening || typeof document === "undefined") return;
|
|
126
|
-
isListening = true;
|
|
127
|
-
document.addEventListener("pointerdown", advance, true);
|
|
128
|
-
document.addEventListener("keydown", advance, true);
|
|
129
|
-
document.addEventListener("click", markClicked, true);
|
|
130
|
-
}
|
|
131
|
-
/** 当前这次手势的编号。两次读到同一个数,说明它们在同一次按压(或同一次按键)里。 */
|
|
132
|
-
function currentGesture() {
|
|
133
|
-
listen();
|
|
134
|
-
return gesture;
|
|
135
|
-
}
|
|
136
108
|
const AUTOSCROLL_STEP_PX = 6;
|
|
137
109
|
const AUTOSCROLL_INTERVAL_MS = 16;
|
|
138
110
|
/** `onTick` 在每次真的滚动之后调用:行在静止的指针下面移动了,要重新看指针下是哪一行。 */
|
|
@@ -29,6 +29,20 @@ const OptionAction = defineComponent({
|
|
|
29
29
|
}
|
|
30
30
|
});
|
|
31
31
|
//#endregion
|
|
32
|
+
//#region src/Selector/searchResultMessage.ts
|
|
33
|
+
/**
|
|
34
|
+
* 面板打开时要说的那句话。
|
|
35
|
+
* 加载中什么都不说,因为选项还没到,不能断言「没有选项」或「没有结果」。
|
|
36
|
+
* 创建行本身算一条结果,所以这时不报空。
|
|
37
|
+
*/
|
|
38
|
+
function searchResultMessage(input) {
|
|
39
|
+
if (!input.isOpen || input.isLoading) return "";
|
|
40
|
+
const searching = input.query.trim() !== "";
|
|
41
|
+
if (input.matchCount === 0 && !input.hasCreateRow) return searching ? input.emptySearchText : input.emptyText;
|
|
42
|
+
if (!searching) return "";
|
|
43
|
+
return input.resultCount(input.matchCount + (input.hasCreateRow ? 1 : 0));
|
|
44
|
+
}
|
|
45
|
+
//#endregion
|
|
32
46
|
//#region src/selectors/useOptionActionGrid.ts
|
|
33
47
|
/**
|
|
34
48
|
* 选项操作的键盘列。上一项、下一项仍交给列表模型。
|
|
@@ -94,4 +108,4 @@ function useOptionActionGrid(options) {
|
|
|
94
108
|
};
|
|
95
109
|
}
|
|
96
110
|
//#endregion
|
|
97
|
-
export {
|
|
111
|
+
export { isOptionAction as i, searchResultMessage as n, OptionAction as r, useOptionActionGrid as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as PRESSABLE_ATTRIBUTE, n as installPressFeedback, o as PRESS_ACTION_ATTRIBUTE, s as PRESS_CONTAINER_ATTRIBUTE } from "./pressFeedback-
|
|
1
|
+
import { a as PRESSABLE_ATTRIBUTE, n as installPressFeedback, o as PRESS_ACTION_ATTRIBUTE, s as PRESS_CONTAINER_ATTRIBUTE } from "./pressFeedback-Co3ugCsm.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 { o as isImeKeyEvent } from "./layerDepth-BU_55vPr.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 { n as focusForLastInput } from "./useFocusTrap-
|
|
1
|
+
import { i as trackInteractionModality } from "./interactionModality-BPvyShJT.js";
|
|
2
|
+
import { n as focusForLastInput } from "./useFocusTrap-CyooA0OC.js";
|
|
3
3
|
import { onScopeDispose, watch } from "vue";
|
|
4
4
|
//#region src/composables/useRestoreFocus.ts
|
|
5
5
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as INACTIVE_AXIS_STATE, c as isMeasurable, d as measureScrollAxis, i as DEFAULT_AXIS_MAPPING, l as mappingsEqual, n as registerScrollOwner, o as axisStatesEqual, r as unregisterScrollOwner, s as getLogicalAxisMapping, t as attachScrollKeyboardDelegation, u as measureOverflow } from "./scrollKeyboardDelegation-
|
|
1
|
+
import { a as INACTIVE_AXIS_STATE, c as isMeasurable, d as measureScrollAxis, i as DEFAULT_AXIS_MAPPING, l as mappingsEqual, n as registerScrollOwner, o as axisStatesEqual, r as unregisterScrollOwner, s as getLogicalAxisMapping, t as attachScrollKeyboardDelegation, u as measureOverflow } from "./scrollKeyboardDelegation-BSpUCTlO.js";
|
|
2
2
|
import { computed, onBeforeUnmount, ref, shallowRef, watch } from "vue";
|
|
3
3
|
//#region src/composables/internal/scrollInvalidation.ts
|
|
4
4
|
/**
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { s as registerLayerSurface } from "./useClickableContainer-Dtjg-nkm.js";
|
|
2
2
|
import { r as useResolvedLayerTeleport } from "./useLayerMountTarget-BmZyeKWE.js";
|
|
3
|
-
import { t as useLayer } from "./useLayer-
|
|
4
|
-
import { t as _sfc_main$1 } from "./LayerContentBoundary-
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
3
|
+
import { t as useLayer } from "./useLayer-BnjrJ85F.js";
|
|
4
|
+
import { t as _sfc_main$1 } from "./LayerContentBoundary-CeebKoPB.js";
|
|
5
|
+
import { i as trackInteractionModality, o as isTextEntryControl, t as getInteractionModality } from "./interactionModality-BPvyShJT.js";
|
|
6
|
+
import { t as matchesFocusVisible } from "./tooltipTriggerRules-9zkDe8_b.js";
|
|
7
7
|
import { t as useAnnounce } from "./announce-B210eJVf.js";
|
|
8
|
-
import { i as isFocusable } from "./focus-
|
|
9
|
-
import { t as
|
|
10
|
-
import {
|
|
8
|
+
import { i as isFocusable } from "./focus-x7mxEqjR.js";
|
|
9
|
+
import { t as useTouchTriggerInternal } from "./useTouchTriggerInternal-b-txblws.js";
|
|
10
|
+
import { t as useHoverLayerDismiss } from "./useHoverLayerDismiss-B1W5qIBx.js";
|
|
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";
|
|
11
12
|
import "../styles/tooltip.css";
|
|
12
13
|
//#region src/Tooltip/TooltipSurface.vue
|
|
13
14
|
const _hoisted_1 = ["data-placement"];
|
|
@@ -177,7 +178,6 @@ const HOVER_BRIDGE_DELAY = 100;
|
|
|
177
178
|
function useTooltip(options = {}) {
|
|
178
179
|
const triggerRef = shallowRef(null);
|
|
179
180
|
const isControlled = computed(() => toValue(options.isOpen) !== void 0);
|
|
180
|
-
const isTouchPointer = ref(false);
|
|
181
181
|
let bound = null;
|
|
182
182
|
const announce = useAnnounce();
|
|
183
183
|
const presentInterest = inject(tooltipPresentInterestKey, null);
|
|
@@ -187,6 +187,7 @@ function useTooltip(options = {}) {
|
|
|
187
187
|
placement: () => toValue(options.placement) ?? "above",
|
|
188
188
|
alignment: () => toValue(options.alignment) ?? "center",
|
|
189
189
|
gap: GAP,
|
|
190
|
+
keepAnchorClear: true,
|
|
190
191
|
onShow: () => options.onShow?.(),
|
|
191
192
|
onHide: () => options.onHide?.()
|
|
192
193
|
});
|
|
@@ -214,6 +215,17 @@ function useTooltip(options = {}) {
|
|
|
214
215
|
function isInsideTooltip(node) {
|
|
215
216
|
return node != null && (bound?.contains(node) === true || layer.contentRef.value?.contains(node) === true);
|
|
216
217
|
}
|
|
218
|
+
const touch = useTouchTriggerInternal({
|
|
219
|
+
touchTrigger: touchTriggerMode,
|
|
220
|
+
isEnabled,
|
|
221
|
+
isControlled,
|
|
222
|
+
isOpen,
|
|
223
|
+
layerId: layer.id,
|
|
224
|
+
triggerRef,
|
|
225
|
+
show: showNow,
|
|
226
|
+
hide: hideNow
|
|
227
|
+
}, { isTextEntryTapIgnored: true });
|
|
228
|
+
const isTouchPointer = touch.isTouchPointer;
|
|
217
229
|
function showNow() {
|
|
218
230
|
clearTimers();
|
|
219
231
|
if (!isEnabled() || isControlled.value) return;
|
|
@@ -239,9 +251,6 @@ function useTooltip(options = {}) {
|
|
|
239
251
|
clearTimeout(hideTimer);
|
|
240
252
|
hideTimer = void 0;
|
|
241
253
|
}
|
|
242
|
-
function onPointerEnter(event) {
|
|
243
|
-
isTouchPointer.value = event.pointerType === "touch";
|
|
244
|
-
}
|
|
245
254
|
function onMouseEnter() {
|
|
246
255
|
if (isTouchPointer.value) return;
|
|
247
256
|
scheduleShow();
|
|
@@ -252,13 +261,6 @@ function useTooltip(options = {}) {
|
|
|
252
261
|
if (next instanceof Node && layer.contentRef.value?.contains(next)) return;
|
|
253
262
|
scheduleHide();
|
|
254
263
|
}
|
|
255
|
-
function onTouchTap(tapEvent) {
|
|
256
|
-
if (!isEnabled() || isControlled.value || touchTriggerMode() === "none") return;
|
|
257
|
-
const trigger = triggerRef.value;
|
|
258
|
-
if (trigger != null && (touchTriggerMode() === "auto" && isActionTrigger(trigger) || isTextEntryTap(trigger, tapEvent))) return;
|
|
259
|
-
if (isOpen.value) hideNow();
|
|
260
|
-
else showNow();
|
|
261
|
-
}
|
|
262
264
|
function trackTriggerPress() {
|
|
263
265
|
stopPressTracking?.();
|
|
264
266
|
const trigger = bound;
|
|
@@ -281,11 +283,7 @@ function useTooltip(options = {}) {
|
|
|
281
283
|
if (isHoldInThisTask) isHoldFromPress = true;
|
|
282
284
|
return;
|
|
283
285
|
}
|
|
284
|
-
if (event
|
|
285
|
-
onTouchTap(event);
|
|
286
|
-
return;
|
|
287
|
-
}
|
|
288
|
-
if (isControlled.value) return;
|
|
286
|
+
if (touch.handlePointerDown(event) || isControlled.value) return;
|
|
289
287
|
hideNow();
|
|
290
288
|
}
|
|
291
289
|
const focusGate = createFocusGate(focusTriggerMode);
|
|
@@ -375,7 +373,7 @@ function useTooltip(options = {}) {
|
|
|
375
373
|
unbind();
|
|
376
374
|
bound = element;
|
|
377
375
|
trackInteractionModality();
|
|
378
|
-
element.addEventListener("pointerenter",
|
|
376
|
+
element.addEventListener("pointerenter", touch.handlePointerEnter);
|
|
379
377
|
element.addEventListener("mouseenter", onMouseEnter);
|
|
380
378
|
element.addEventListener("mouseleave", onMouseLeave);
|
|
381
379
|
element.addEventListener("pointerdown", onPointerDown);
|
|
@@ -388,14 +386,14 @@ function useTooltip(options = {}) {
|
|
|
388
386
|
hover: scheduleShow,
|
|
389
387
|
tap: (tapEvent) => {
|
|
390
388
|
isTouchPointer.value = true;
|
|
391
|
-
|
|
389
|
+
touch.answerTap(tapEvent);
|
|
392
390
|
},
|
|
393
391
|
focus: (focused) => onFocusArrive(element, focused, false)
|
|
394
392
|
});
|
|
395
393
|
}
|
|
396
394
|
function unbind() {
|
|
397
395
|
if (bound == null) return;
|
|
398
|
-
bound.removeEventListener("pointerenter",
|
|
396
|
+
bound.removeEventListener("pointerenter", touch.handlePointerEnter);
|
|
399
397
|
bound.removeEventListener("mouseenter", onMouseEnter);
|
|
400
398
|
bound.removeEventListener("mouseleave", onMouseLeave);
|
|
401
399
|
bound.removeEventListener("pointerdown", onPointerDown);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as PRESS_GROUP_ITEM_ATTRIBUTE, l as isTrackedByGroup, r as pressFadeMs, t as PRESSED_ATTRIBUTE } from "./pressFeedback-
|
|
1
|
+
import { c as PRESS_GROUP_ITEM_ATTRIBUTE, l as isTrackedByGroup, r as pressFadeMs, t as PRESSED_ATTRIBUTE } from "./pressFeedback-Co3ugCsm.js";
|
|
2
2
|
import { t as armStrayClick } from "./strayClick-CY-_ImKv.js";
|
|
3
3
|
import { toValue, watch } from "vue";
|
|
4
4
|
import "../styles/touch-hit-area.css";
|