@astryx-vue/core 0.13.0 → 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.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.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/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.js +1 -1
- package/dist/{CodeBlock-CTPuBH_r.js → CodeBlock-DAlWY51H.js} +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.js +1 -1
- package/dist/{ComplexSelector-Dmbep7M7.js → ComplexSelector-NDpRucQB.js} +2 -2
- 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/Divider/index.d.ts +1 -1
- 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/{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/MetadataList/index.d.ts +1 -1
- 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-BXIpOmSU.js → MultiSelector-DgWCWpnM.js} +9 -9
- 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/Overlay/index.d.ts +1 -1
- package/dist/Pagination/index.d.ts +1 -1
- package/dist/Pagination/index.js +1 -1
- package/dist/{Pagination-eeM9SNsG.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-CaqFxaFb.js → PowerSearch-C6lkutch.js} +17 -17
- 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-DP012yul.js → Selector-CPCoJ7Sb.js} +6 -5
- 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-YDS_Hj1L.js → Table-CO2cYE8r.js} +11 -11
- 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.d.ts +1 -1
- 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-CY0ymjYr.js → Tokenizer-D7B1ff3O.js} +7 -7
- 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.d.ts +1 -1
- 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-ByeXwX8E.js → Typeahead-QWYeVsel.js} +6 -6
- package/dist/composables/index.d.ts +1 -1
- package/dist/composables/index.js +14 -14
- package/dist/{composables-WUkSRUCj.js → composables-CyKB3F8u.js} +53 -5
- package/dist/{focus-l8jVTcqd.js → focus-x7mxEqjR.js} +1 -1
- package/dist/{index-BcJzA5j_.d.ts → index-9YGUb_Ht.d.ts} +4 -4
- package/dist/{index-DPklTi3o.d.ts → index-B-3EGjfQ.d.ts} +2 -2
- package/dist/{index-BgT6mH3U.d.ts → index-BB9acgK8.d.ts} +1 -1
- package/dist/{index-CP-fJFcJ.d.ts → index-BOCb89V9.d.ts} +3 -3
- package/dist/{index-Buxb8Onp.d.ts → index-BWaO4-T-.d.ts} +30 -30
- package/dist/{index-wTwhcFQx.d.ts → index-Bl_K_cRv.d.ts} +1 -1
- package/dist/{index-BDZCJ9ri.d.ts → index-BuubzuE8.d.ts} +2 -2
- package/dist/{index-D1J81rYJ.d.ts → index-BzViSe8D.d.ts} +4 -4
- package/dist/{index-KcCNhdAw.d.ts → index-CL8JvxHW.d.ts} +1 -1
- package/dist/{index-D1RIIzDd.d.ts → index-CREW8ZiL.d.ts} +5 -5
- package/dist/{index-DKuoSloc.d.ts → index-CVs4A2QU.d.ts} +46 -15
- package/dist/{index-x0rjeitC.d.ts → index-CfoExOY_.d.ts} +2 -2
- package/dist/{index--tm6L1ot.d.ts → index-Cun6cXGP.d.ts} +1 -1
- package/dist/{index-C8wfe0Mr.d.ts → index-D05JGsT3.d.ts} +1 -1
- package/dist/{index-DYabo8TI.d.ts → index-DPhQZXYw.d.ts} +1 -1
- package/dist/{index-PffxihMx.d.ts → index-DS9SzqqJ.d.ts} +2 -2
- package/dist/{index-YfMHAQ_D.d.ts → index-Dc9_kBrU.d.ts} +2 -2
- package/dist/{index-CfHBwR3F.d.ts → index-Dep8pgnU.d.ts} +6 -6
- package/dist/{index-C5e2rZML.d.ts → index-Dlq0cFK-.d.ts} +1 -1
- package/dist/{index-DDrL_-hJ.d.ts → index-FeZXsFO-.d.ts} +1 -1
- package/dist/{index-DneQgJfI.d.ts → index-O9y23OPJ.d.ts} +1 -1
- package/dist/{index-BKnyTWPM.d.ts → index-ZbNwGVkS.d.ts} +1 -1
- package/dist/{index-DMcf0QeR.d.ts → index-bgjrSSaT.d.ts} +2 -2
- package/dist/{index-DPH5yoAr.d.ts → index-s0Ezq3U-.d.ts} +2 -2
- package/dist/{index-NOXYEdOI.d.ts → index-utZGF4GR.d.ts} +1 -1
- package/dist/index.d.ts +26 -26
- package/dist/index.js +103 -103
- 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/{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-BppRdqpc.js → selectorEscape-LkWoVYQN.js} +2 -2
- package/dist/{stillPointerGate-Bh02Mfnw.js → stillPointerGate-BZ7KMJOB.js} +1 -1
- package/dist/tooltipTriggerRules-9zkDe8_b.js +10 -0
- package/dist/{useActionGroupTracking-BJMRaXil.js → useActionGroupTracking-CDclbV3Y.js} +2 -2
- package/dist/useClickableContainer-Dtjg-nkm.js +141 -0
- 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-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/{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/{useTypeaheadAnnouncement-MbuZumTd.js → useTypeaheadAnnouncement-DVkdWTWy.js} +1 -1
- package/package.json +1 -1
- 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/useTouchTrigger-GGd85Obb.js +0 -146
- package/dist/{index-BqhgeAT4.d.ts → index-J6YRJ7Ul.d.ts} +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $i as DateInputStatusType, Gi as DateInputEmits, Ji as DateInputNativePicker, Ki as DateInputFormat, Qi as DateInputStatus, Wi as _default, Xi as DateInputProps, Yi as DateInputPresentation, Zi as DateInputSlots, qi as DateInputFormatName } from "../index-
|
|
1
|
+
import { $i as DateInputStatusType, Gi as DateInputEmits, Ji as DateInputNativePicker, Ki as DateInputFormat, Qi as DateInputStatus, Wi as _default, Xi as DateInputProps, Yi as DateInputPresentation, Zi as DateInputSlots, qi as DateInputFormatName } from "../index-BWaO4-T-.js";
|
|
2
2
|
export { _default as DateInput, type DateInputEmits, type DateInputFormat, type DateInputFormatName, type DateInputNativePicker, type DateInputPresentation, type DateInputProps, type DateInputSlots, type DateInputStatus, type DateInputStatusType };
|
package/dist/DateInput/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _sfc_main } from "../DateInput-
|
|
1
|
+
import { t as _sfc_main } from "../DateInput-DVEb1-fM.js";
|
|
2
2
|
export { _sfc_main as DateInput };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { n as _sfc_main$4 } from "./BottomSheet-
|
|
1
|
+
import { n as _sfc_main$4 } from "./BottomSheet-D67lQ3Lo.js";
|
|
2
2
|
import { t as _sfc_main$5 } from "./Icon-BCHo7W0x.js";
|
|
3
3
|
import { r as useInputGroupDisabled } from "./context-Bg7eSJ47.js";
|
|
4
4
|
import { i as useSize } from "./SizeContext-BbaF-SEx.js";
|
|
5
|
-
import {
|
|
5
|
+
import { o as isImeKeyEvent } from "./layerDepth-BU_55vPr.js";
|
|
6
6
|
import { t as _sfc_main$6 } from "./VisuallyHidden-cpmsV-0M.js";
|
|
7
7
|
import { t as _sfc_main$7 } from "./ButtonTooltip-CNKOQHYR.js";
|
|
8
8
|
import { t as useButtonTooltip } from "./useButtonTooltip-DjCaZMp_.js";
|
|
@@ -17,9 +17,9 @@ import { t as calendarMessages } from "./calendar-Cs2vIPsV.js";
|
|
|
17
17
|
import { a as isOutsideCalendarBounds, c as toCalendarDate, i as isCalendarDateDisabled, l as weekStartIndex, n as resolveCalendarKey, o as formatWeekdayDate, r as buildCalendarWeeks, s as sameCalendarDay, t as _sfc_main$9 } from "./Calendar-DwFAzDky.js";
|
|
18
18
|
import { t as _sfc_main$10 } from "./Spinner-DEVPDsD0.js";
|
|
19
19
|
import { i as useAriaRequired } from "./context-Cfml4jaK.js";
|
|
20
|
-
import { t as _sfc_main$11 } from "./Field-
|
|
20
|
+
import { t as _sfc_main$11 } from "./Field-Cw8J8ld7.js";
|
|
21
21
|
import { t as useFieldPartStyling } from "./fieldParts-CDOlBdy6.js";
|
|
22
|
-
import { t as _sfc_main$12 } from "./Popover-
|
|
22
|
+
import { t as _sfc_main$12 } from "./Popover-C68nCirC.js";
|
|
23
23
|
import { t as dateInputMessages } from "./date-input-CiEBtStM.js";
|
|
24
24
|
import { t as formatInstant } from "./formatInstant-BDWUIxS7.js";
|
|
25
25
|
import { t as _sfc_main$13 } from "./PickerWheel-CSwUYfes.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Bi as DateRange, Hi as DateRangeInputProps, Ui as DateRangePreset, Vi as DateRangeInputEmits, zi as _default } from "../index-
|
|
1
|
+
import { Bi as DateRange, Hi as DateRangeInputProps, Ui as DateRangePreset, Vi as DateRangeInputEmits, zi as _default } from "../index-BWaO4-T-.js";
|
|
2
2
|
export { type DateRange, _default as DateRangeInput, type DateRangeInputEmits, type DateRangeInputProps, type DateRangePreset };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _sfc_main } from "../DateRangeInput-
|
|
1
|
+
import { t as _sfc_main } from "../DateRangeInput-OuAz80nR.js";
|
|
2
2
|
export { _sfc_main as DateRangeInput };
|
|
@@ -5,7 +5,7 @@ import { t as _sfc_main$4 } from "./ButtonTooltip-CNKOQHYR.js";
|
|
|
5
5
|
import { t as useButtonTooltip } from "./useButtonTooltip-DjCaZMp_.js";
|
|
6
6
|
import { a as isRangeWithinSpan, c as resolveWeekStart, i as isDayOutsideSpan, r as formatDateRange, s as orderRange, t as applyRangeClick } from "./useDateRange-CIXoE_8k.js";
|
|
7
7
|
import { t as _sfc_main$5 } from "./FieldIcon-DMtfe1Ne.js";
|
|
8
|
-
import { t as _sfc_main$6 } from "./IconButton-
|
|
8
|
+
import { t as _sfc_main$6 } from "./IconButton-DiDHiGbo.js";
|
|
9
9
|
import { a as useAstryxLocale, o as useComponentMessages } from "./context-B8IEFCDR.js";
|
|
10
10
|
import { a as todayISODate, n as buildMonthGrid, t as addMonths } from "./useMonthGrid-fGHSSrFc.js";
|
|
11
11
|
import { t as usePendingChange } from "./usePendingChange-ib-h8FZK.js";
|
|
@@ -15,9 +15,9 @@ import { n as standaloneShortWeekdayNames, r as weekdayNames, t as formatCalenda
|
|
|
15
15
|
import { t as calendarMessages } from "./calendar-Cs2vIPsV.js";
|
|
16
16
|
import { t as _sfc_main$7 } from "./Spinner-DEVPDsD0.js";
|
|
17
17
|
import { i as useAriaRequired } from "./context-Cfml4jaK.js";
|
|
18
|
-
import { t as _sfc_main$8 } from "./Field-
|
|
18
|
+
import { t as _sfc_main$8 } from "./Field-Cw8J8ld7.js";
|
|
19
19
|
import { t as useFieldPartStyling } from "./fieldParts-CDOlBdy6.js";
|
|
20
|
-
import { t as _sfc_main$9 } from "./Popover-
|
|
20
|
+
import { t as _sfc_main$9 } from "./Popover-C68nCirC.js";
|
|
21
21
|
import { t as dateInputMessages } from "./date-input-CiEBtStM.js";
|
|
22
22
|
import { t as dateRangeInputMessages } from "./date-range-input-WnkVv8HN.js";
|
|
23
23
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, mergeModels, mergeProps, normalizeClass, normalizeStyle, openBlock, renderList, shallowRef, toDisplayString, unref, useAttrs, useId, useModel, useTemplateRef, withCtx } from "vue";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Fi as _default, Ii as DateTimeInputEmits, Li as DateTimeInputProps, Ri as DateTimeInputSize } from "../index-
|
|
1
|
+
import { Fi as _default, Ii as DateTimeInputEmits, Li as DateTimeInputProps, Ri as DateTimeInputSize } from "../index-BWaO4-T-.js";
|
|
2
2
|
export { _default as DateTimeInput, type DateTimeInputEmits, type DateTimeInputProps, type DateTimeInputSize };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _sfc_main } from "../DateTimeInput-
|
|
1
|
+
import { t as _sfc_main } from "../DateTimeInput-J5CFTSSa.js";
|
|
2
2
|
export { _sfc_main as DateTimeInput };
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { n as _sfc_main$2 } from "./BottomSheet-
|
|
1
|
+
import { n as _sfc_main$2 } from "./BottomSheet-D67lQ3Lo.js";
|
|
2
2
|
import { t as _sfc_main$3 } from "./Icon-BCHo7W0x.js";
|
|
3
3
|
import { i as useSize } from "./SizeContext-BbaF-SEx.js";
|
|
4
4
|
import { t as useMediaQuery } from "./useMediaQuery-GMmgp28-.js";
|
|
5
5
|
import { t as _sfc_main$4 } from "./FieldIcon-DMtfe1Ne.js";
|
|
6
|
-
import { t as _sfc_main$5 } from "./IconButton-
|
|
6
|
+
import { t as _sfc_main$5 } from "./IconButton-DiDHiGbo.js";
|
|
7
7
|
import { a as useAstryxLocale, o as useComponentMessages } from "./context-B8IEFCDR.js";
|
|
8
8
|
import { t as usePendingChange } from "./usePendingChange-ib-h8FZK.js";
|
|
9
9
|
import { t as useResolvedLabelHidden } from "./useResolvedLabelHidden-B2rlWiaI.js";
|
|
10
10
|
import { a as parseISOTime, n as formatISOTime, t as formatDisplayTime } from "./useTimeValue-BJd0xBhG.js";
|
|
11
11
|
import { t as _sfc_main$6 } from "./Spinner-DEVPDsD0.js";
|
|
12
|
-
import { t as _sfc_main$7 } from "./Field-
|
|
12
|
+
import { t as _sfc_main$7 } from "./Field-Cw8J8ld7.js";
|
|
13
13
|
import { t as useFieldPartStyling } from "./fieldParts-CDOlBdy6.js";
|
|
14
14
|
import { t as dateInputMessages } from "./date-input-CiEBtStM.js";
|
|
15
15
|
import { t as formatInstant } from "./formatInstant-BDWUIxS7.js";
|
|
16
|
-
import { n as _sfc_main$8, t as _sfc_main$9 } from "./DateInput-
|
|
16
|
+
import { n as _sfc_main$8, t as _sfc_main$9 } from "./DateInput-DVEb1-fM.js";
|
|
17
17
|
import { n as dateTimeInputMessages } from "./time-input-CKOsh84E.js";
|
|
18
|
-
import { n as _sfc_main$10, t as _sfc_main$11 } from "./TimeField-
|
|
18
|
+
import { n as _sfc_main$10, t as _sfc_main$11 } from "./TimeField-B3JGgLuf.js";
|
|
19
19
|
import { r as effectivePickerPresentation, s as resolvePickerPresentation } from "./inputPresentation-BOyHkCDr.js";
|
|
20
20
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, mergeModels, normalizeClass, normalizeStyle, openBlock, ref, toDisplayString, unref, useAttrs, useId, useModel, watch, withCtx } from "vue";
|
|
21
21
|
import "../styles/date-time-input.css";
|
package/dist/Dialog/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as _default$1, c as DialogHeaderProps, d as DialogProps, f as DialogPurpose, i as useDialogContext, l as DialogPadding, m as DialogContext, n as ImperativeDialogReturn, o as _default, p as DialogVariant, r as useImperativeDialog, s as DialogBlockPosition, t as ImperativeDialogOptions, u as DialogPosition } from "../index-
|
|
1
|
+
import { a as _default$1, c as DialogHeaderProps, d as DialogProps, f as DialogPurpose, i as useDialogContext, l as DialogPadding, m as DialogContext, n as ImperativeDialogReturn, o as _default, p as DialogVariant, r as useImperativeDialog, s as DialogBlockPosition, t as ImperativeDialogOptions, u as DialogPosition } from "../index-FeZXsFO-.js";
|
|
2
2
|
export { _default as Dialog, type DialogBlockPosition, type DialogContext, _default$1 as DialogHeader, type DialogHeaderProps, type DialogPadding, type DialogPosition, type DialogProps, type DialogPurpose, type DialogVariant, type ImperativeDialogOptions, type ImperativeDialogReturn, useDialogContext, useImperativeDialog };
|
package/dist/Dialog/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as _sfc_main } from "../Dialog-
|
|
2
|
-
import { t as _sfc_main$1 } from "../DialogHeader-
|
|
3
|
-
import { n as useDialogContext, t as useImperativeDialog } from "../Dialog-
|
|
1
|
+
import { t as _sfc_main } from "../Dialog-C0WuGDqP.js";
|
|
2
|
+
import { t as _sfc_main$1 } from "../DialogHeader-BD2Ezw4F.js";
|
|
3
|
+
import { n as useDialogContext, t as useImperativeDialog } from "../Dialog-Cm8CXGpI.js";
|
|
4
4
|
export { _sfc_main as Dialog, _sfc_main$1 as DialogHeader, useDialogContext, useImperativeDialog };
|
|
@@ -1,12 +1,48 @@
|
|
|
1
1
|
import { r as resetLayerScopedContext } from "./scopedProvide-C-Df7c15.js";
|
|
2
2
|
import { i as provideLayerMountTarget } from "./useLayerMountTarget-BmZyeKWE.js";
|
|
3
|
-
import {
|
|
3
|
+
import { r as didOutsideDismissInGesture, s as currentGesture } from "./layerDepth-BU_55vPr.js";
|
|
4
|
+
import { t as useFocusTrap } from "./useFocusTrap-CyooA0OC.js";
|
|
4
5
|
import { t as useScrollLock } from "./scrollLock-C3aT4-0z.js";
|
|
5
|
-
import { n as restoreLayerFocus, r as trackLayerFocus, t as isLayerFocusStranded } from "./layerFocusReturn-
|
|
6
|
-
import {
|
|
6
|
+
import { n as restoreLayerFocus, r as trackLayerFocus, t as isLayerFocusStranded } from "./layerFocusReturn-DWGkSHXj.js";
|
|
7
|
+
import { t as createModalOutletHandle } from "./modalOutlet-Drr9a16b.js";
|
|
7
8
|
import { i as provideLayoutContainer } from "./context-CjX2RSDn.js";
|
|
8
|
-
import { Fragment, computed, createCommentVNode, createElementBlock, createElementVNode, defineComponent, mergeProps, normalizeStyle, onBeforeUnmount, onMounted, openBlock, provide, ref, renderSlot, useAttrs, useId, useTemplateRef, watch } from "vue";
|
|
9
|
+
import { Fragment, computed, createCommentVNode, createElementBlock, createElementVNode, defineComponent, mergeProps, normalizeStyle, onBeforeUnmount, onMounted, openBlock, provide, ref, renderSlot, unref, useAttrs, useId, useTemplateRef, watch } from "vue";
|
|
9
10
|
import "../styles/dialog.css";
|
|
11
|
+
//#region src/layer/useBackdropPress.ts
|
|
12
|
+
/**
|
|
13
|
+
* 模态框「点遮罩关闭」的共用判断。Dialog(含 Drawer、CommandPalette)都走这里。
|
|
14
|
+
*
|
|
15
|
+
* 原生 `<dialog>` 的遮罩没有自己的元素,点在遮罩上的 click 目标就是 dialog 本身。
|
|
16
|
+
* 只看 click 不够,两种情况要排除:
|
|
17
|
+
*
|
|
18
|
+
* - 按下在框里、松手在遮罩上(拖选文字、拖滑块拖出了边)。浏览器把这次 click
|
|
19
|
+
* 发给两者共同的祖先,也就是 dialog,看起来像点了遮罩。只有按下和松手都在
|
|
20
|
+
* 遮罩上才算。
|
|
21
|
+
* - 这一下按压已经把框里打开的弹出框当作「点外面」关掉了。这一下是弹出框的,
|
|
22
|
+
* 模态框留着;再点一次遮罩才关它,和连按两次 Escape 一样。
|
|
23
|
+
*/
|
|
24
|
+
function useBackdropPress(getHost, onDismiss) {
|
|
25
|
+
let downOnBackdrop = false;
|
|
26
|
+
let downGesture = null;
|
|
27
|
+
function onPointerDown(event) {
|
|
28
|
+
downOnBackdrop = event.target === getHost();
|
|
29
|
+
downGesture = currentGesture();
|
|
30
|
+
}
|
|
31
|
+
function onClick(event) {
|
|
32
|
+
const startedOnBackdrop = downOnBackdrop;
|
|
33
|
+
const gesture = downGesture;
|
|
34
|
+
downOnBackdrop = false;
|
|
35
|
+
downGesture = null;
|
|
36
|
+
if (event.target !== getHost() || !startedOnBackdrop) return;
|
|
37
|
+
if (gesture != null && didOutsideDismissInGesture(gesture)) return;
|
|
38
|
+
onDismiss();
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
onPointerDown,
|
|
42
|
+
onClick
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
//#endregion
|
|
10
46
|
//#region src/Dialog/context.ts
|
|
11
47
|
const DIALOG_CONTEXT_KEY = Symbol("astryx-dialog");
|
|
12
48
|
//#endregion
|
|
@@ -148,20 +184,9 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
148
184
|
if (props.isInline) return false;
|
|
149
185
|
return dialogRef.value?.open ?? false;
|
|
150
186
|
});
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
detachModalOutlet();
|
|
155
|
-
modalOutlet = dialog;
|
|
156
|
-
dialog.addEventListener("close", detachModalOutlet);
|
|
157
|
-
addModalOutlet(dialog);
|
|
158
|
-
}
|
|
159
|
-
function detachModalOutlet() {
|
|
160
|
-
if (modalOutlet == null) return;
|
|
161
|
-
modalOutlet.removeEventListener("close", detachModalOutlet);
|
|
162
|
-
removeModalOutlet(modalOutlet);
|
|
163
|
-
modalOutlet = null;
|
|
164
|
-
}
|
|
187
|
+
const modalOutlet = createModalOutletHandle();
|
|
188
|
+
const attachModalOutlet = modalOutlet.attach;
|
|
189
|
+
const detachModalOutlet = modalOutlet.detach;
|
|
165
190
|
function initialFocusTarget() {
|
|
166
191
|
const dialog = dialogRef.value;
|
|
167
192
|
if (!dialog) return null;
|
|
@@ -212,9 +237,9 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
212
237
|
event.preventDefault();
|
|
213
238
|
if (props.purpose !== "required") emit("openChange", false);
|
|
214
239
|
}
|
|
215
|
-
|
|
216
|
-
if (
|
|
217
|
-
}
|
|
240
|
+
const backdropPress = useBackdropPress(() => dialogRef.value, () => {
|
|
241
|
+
if (props.purpose === "info") emit("openChange", false);
|
|
242
|
+
});
|
|
218
243
|
watch(() => props.isOpen, (open) => {
|
|
219
244
|
if (open) openDialog();
|
|
220
245
|
else closeDialog();
|
|
@@ -253,7 +278,8 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
253
278
|
"aria-modal": "true",
|
|
254
279
|
"aria-labelledby": resolvedLabelledBy(),
|
|
255
280
|
style: rootStyle.value,
|
|
256
|
-
|
|
281
|
+
onPointerdown: _cache[0] || (_cache[0] = (...args) => unref(backdropPress).onPointerDown && unref(backdropPress).onPointerDown(...args)),
|
|
282
|
+
onClick: _cache[1] || (_cache[1] = (...args) => unref(backdropPress).onClick && unref(backdropPress).onClick(...args)),
|
|
257
283
|
onCancel
|
|
258
284
|
}), [createElementVNode("div", {
|
|
259
285
|
class: "astryx-dialog__inner",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as DIALOG_CONTEXT_KEY, t as _sfc_main } from "./Dialog-
|
|
1
|
+
import { n as DIALOG_CONTEXT_KEY, t as _sfc_main } from "./Dialog-C0WuGDqP.js";
|
|
2
2
|
import { defineComponent, h, inject, readonly, ref, shallowRef } from "vue";
|
|
3
3
|
//#region src/Dialog/useDialogContext.ts
|
|
4
4
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as _sfc_main$1 } from "./IconButton-
|
|
1
|
+
import { t as _sfc_main$1 } from "./IconButton-DiDHiGbo.js";
|
|
2
2
|
import { o as useComponentMessages } from "./context-B8IEFCDR.js";
|
|
3
|
+
import { n as DIALOG_CONTEXT_KEY } from "./Dialog-C0WuGDqP.js";
|
|
3
4
|
import { a as useLayoutArea } from "./context-CjX2RSDn.js";
|
|
4
|
-
import { n as DIALOG_CONTEXT_KEY } from "./Dialog-Dkwt3mVt.js";
|
|
5
5
|
import { t as dialogMessages } from "./dialog-CNjGcdd1.js";
|
|
6
6
|
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, defineComponent, getCurrentInstance, inject, mergeProps, normalizeClass, onBeforeUnmount, onMounted, openBlock, renderSlot, toDisplayString, useAttrs, useId, useSlots, withCtx } from "vue";
|
|
7
7
|
import "../styles/dialog-header.css";
|
package/dist/Divider/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as DividerVariant, n as DividerOrientation, r as DividerProps, t as _default } from "../index-
|
|
1
|
+
import { i as DividerVariant, n as DividerOrientation, r as DividerProps, t as _default } from "../index-D05JGsT3.js";
|
|
2
2
|
export { _default as Divider, type DividerOrientation, type DividerProps, type DividerVariant };
|
package/dist/Drawer/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Ai as DrawerHeaderProps, Di as _default, Ei as _default$1, Mi as DrawerPlacement, Ni as DrawerProps, Oi as DrawerEmits, Pi as DrawerSlots, ji as DrawerHeaderSlots, ki as DrawerHeaderEmits } from "../index-
|
|
1
|
+
import { Ai as DrawerHeaderProps, Di as _default, Ei as _default$1, Mi as DrawerPlacement, Ni as DrawerProps, Oi as DrawerEmits, Pi as DrawerSlots, ji as DrawerHeaderSlots, ki as DrawerHeaderEmits } from "../index-BWaO4-T-.js";
|
|
2
2
|
export { _default as Drawer, type DrawerEmits, _default$1 as DrawerHeader, type DrawerHeaderEmits, type DrawerHeaderProps, type DrawerHeaderSlots, type DrawerPlacement, type DrawerProps, type DrawerSlots };
|
package/dist/Drawer/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as _sfc_main, t as _sfc_main$1 } from "../Drawer-
|
|
1
|
+
import { n as _sfc_main, t as _sfc_main$1 } from "../Drawer-CFpcRHt7.js";
|
|
2
2
|
export { _sfc_main as Drawer, _sfc_main$1 as DrawerHeader };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as _sfc_main$2 } from "./Dialog-
|
|
2
|
-
import { t as _sfc_main$3 } from "./DialogHeader-
|
|
1
|
+
import { t as _sfc_main$2 } from "./Dialog-C0WuGDqP.js";
|
|
2
|
+
import { t as _sfc_main$3 } from "./DialogHeader-BD2Ezw4F.js";
|
|
3
3
|
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, defineComponent, getCurrentInstance, mergeProps, openBlock, renderSlot, unref, useAttrs, useSlots, withCtx } from "vue";
|
|
4
4
|
import "../styles/drawer.css";
|
|
5
5
|
//#region src/Drawer/Drawer.vue
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as _sfc_main$1, c as useDropdownMenuRadioGroup, i as _sfc_main$5, r as _sfc_main$6, s as useDropdownMenuContext } from "../useMenuDrillIn-
|
|
2
|
-
import { a as _sfc_main$4, o as _sfc_main$3, s as _sfc_main$2, t as _sfc_main } from "../DropdownMenu-
|
|
3
|
-
import { t as _sfc_main$7 } from "../DropdownMenu-
|
|
1
|
+
import { a as _sfc_main$1, c as useDropdownMenuRadioGroup, i as _sfc_main$5, r as _sfc_main$6, s as useDropdownMenuContext } from "../useMenuDrillIn-BW9dNBje.js";
|
|
2
|
+
import { a as _sfc_main$4, o as _sfc_main$3, s as _sfc_main$2, t as _sfc_main } from "../DropdownMenu-2QRvY0aP.js";
|
|
3
|
+
import { t as _sfc_main$7 } from "../DropdownMenu-5Mn01A-5.js";
|
|
4
4
|
export { _sfc_main as DropdownMenu, _sfc_main$1 as DropdownMenuCheckboxItem, _sfc_main$2 as DropdownMenuDivider, _sfc_main$3 as DropdownMenuGroup, _sfc_main$4 as DropdownMenuItem, _sfc_main$5 as DropdownMenuRadioGroup, _sfc_main$6 as DropdownMenuRadioItem, _sfc_main$7 as DropdownMenuSubMenu, useDropdownMenuContext, useDropdownMenuRadioGroup };
|
|
@@ -2,18 +2,18 @@ import { t as hasSlotContent } from "./slotContent-CNWOrGOr.js";
|
|
|
2
2
|
import { n as isMenuPressActivation } from "./strayClick-CY-_ImKv.js";
|
|
3
3
|
import { t as _sfc_main$7 } from "./Icon-BCHo7W0x.js";
|
|
4
4
|
import { n as useLinkComponent } from "./context-C_peZbXf.js";
|
|
5
|
-
import { t as _sfc_main$8 } from "./Button-
|
|
6
|
-
import { n as usePositionedLayer, t as useDismiss } from "./useDismiss-
|
|
7
|
-
import { t as _sfc_main$9 } from "./LayerContentBoundary-
|
|
8
|
-
import {
|
|
5
|
+
import { t as _sfc_main$8 } from "./Button-CfbR2oPc.js";
|
|
6
|
+
import { n as usePositionedLayer, t as useDismiss } from "./useDismiss-74dLMi5S.js";
|
|
7
|
+
import { t as _sfc_main$9 } from "./LayerContentBoundary-CeebKoPB.js";
|
|
8
|
+
import { i as trackInteractionModality, t as getInteractionModality } from "./interactionModality-BPvyShJT.js";
|
|
9
9
|
import { t as useMediaQuery } from "./useMediaQuery-GMmgp28-.js";
|
|
10
|
-
import { r as getFocusables } from "./focus-
|
|
11
|
-
import { t as useMenuPress } from "./useMenuPress-
|
|
10
|
+
import { r as getFocusables } from "./focus-x7mxEqjR.js";
|
|
11
|
+
import { t as useMenuPress } from "./useMenuPress-BWq7kwWm.js";
|
|
12
12
|
import { n as useOverflow } from "./useOverflow-VrwF5oek.js";
|
|
13
|
-
import { t as useTypeahead } from "./useTypeahead-
|
|
13
|
+
import { t as useTypeahead } from "./useTypeahead-BWj3xhbR.js";
|
|
14
14
|
import { t as useScrollbars } from "./useScrollbars-Ch0xqJWO.js";
|
|
15
|
-
import { t as _sfc_main$10 } from "./Item-
|
|
16
|
-
import { a as _sfc_main$12, i as _sfc_main$13, n as useDropdownMenuMessages, o as dropdownMenuContextKey, r as _sfc_main$11, s as useDropdownMenuContext, t as useMenuDrillIn } from "./useMenuDrillIn-
|
|
15
|
+
import { t as _sfc_main$10 } from "./Item-CoNXshDg.js";
|
|
16
|
+
import { a as _sfc_main$12, i as _sfc_main$13, n as useDropdownMenuMessages, o as dropdownMenuContextKey, r as _sfc_main$11, s as useDropdownMenuContext, t as useMenuDrillIn } from "./useMenuDrillIn-BW9dNBje.js";
|
|
17
17
|
import { n as clampInlineSize, r as isIntrinsicInlineSize, t as LAYER_MAX_INLINE_SIZE } from "./inlineSize-BNe8wggI.js";
|
|
18
18
|
import { t as _sfc_main$14 } from "./Divider-mOZ6vIQw.js";
|
|
19
19
|
import { n as isModifiedClick, t as activateMenuItem } from "./menuActivation-BqiaK6ot.js";
|
|
@@ -61,7 +61,7 @@ const dropdownMenuFrameKey = Symbol("astryx-dropdown-menu-frame");
|
|
|
61
61
|
//#endregion
|
|
62
62
|
//#region src/DropdownMenu/lazyMenuBottomSheet.ts
|
|
63
63
|
/** 只在底部面板真正进入组件树时请求;普通 popover 菜单不会触发这次 import。 */
|
|
64
|
-
const MenuBottomSheet = defineAsyncComponent(() => import("./BottomSheet-
|
|
64
|
+
const MenuBottomSheet = defineAsyncComponent(() => import("./BottomSheet-D67lQ3Lo.js").then((n) => n.t));
|
|
65
65
|
//#endregion
|
|
66
66
|
//#region src/DropdownMenu/DropdownMenuDivider.vue
|
|
67
67
|
const _sfc_main$5 = /*@__PURE__*/ defineComponent({
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { n as isMenuPressActivation } from "./strayClick-CY-_ImKv.js";
|
|
2
2
|
import { t as _sfc_main$1 } from "./Icon-BCHo7W0x.js";
|
|
3
|
-
import { n as usePositionedLayer, t as useDismiss } from "./useDismiss-
|
|
4
|
-
import { t as _sfc_main$2 } from "./LayerContentBoundary-
|
|
3
|
+
import { n as usePositionedLayer, t as useDismiss } from "./useDismiss-74dLMi5S.js";
|
|
4
|
+
import { t as _sfc_main$2 } from "./LayerContentBoundary-CeebKoPB.js";
|
|
5
5
|
import { n as useOverflow } from "./useOverflow-VrwF5oek.js";
|
|
6
|
-
import { t as _sfc_main$3 } from "./Item-
|
|
7
|
-
import { n as useDropdownMenuMessages, s as useDropdownMenuContext } from "./useMenuDrillIn-
|
|
8
|
-
import { a as _sfc_main$5, c as _sfc_main$4, i as activateFocusedMenuItem, n as useMenuRegions, r as useMenuFocus } from "./DropdownMenu-
|
|
6
|
+
import { t as _sfc_main$3 } from "./Item-CoNXshDg.js";
|
|
7
|
+
import { n as useDropdownMenuMessages, s as useDropdownMenuContext } from "./useMenuDrillIn-BW9dNBje.js";
|
|
8
|
+
import { a as _sfc_main$5, c as _sfc_main$4, i as activateFocusedMenuItem, n as useMenuRegions, r as useMenuFocus } from "./DropdownMenu-2QRvY0aP.js";
|
|
9
9
|
import { n as clampInlineSize, r as isIntrinsicInlineSize } from "./inlineSize-BNe8wggI.js";
|
|
10
10
|
import { t as _sfc_main$6 } from "./Spinner-DEVPDsD0.js";
|
|
11
11
|
import { t as useSubmenuMode } from "./useSubmenuMode-CZN9qrUo.js";
|
package/dist/EmptyState/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _sfc_main } from "../EmptyState-
|
|
1
|
+
import { t as _sfc_main } from "../EmptyState-CqUTEnGg.js";
|
|
2
2
|
export { _sfc_main as EmptyState };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as _sfc_main$1 } from "./Heading-
|
|
2
|
-
import { t as _sfc_main$2 } from "./Text-
|
|
1
|
+
import { t as _sfc_main$1 } from "./Heading-BO9n2vLl.js";
|
|
2
|
+
import { t as _sfc_main$2 } from "./Text-C6SB2hHJ.js";
|
|
3
3
|
import { Comment, Fragment, Text, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, openBlock, renderSlot, toDisplayString, useSlots, useTemplateRef, withCtx } from "vue";
|
|
4
4
|
import "../styles/empty-state.css";
|
|
5
5
|
//#region src/EmptyState/EmptyState.vue
|
package/dist/Field/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as _sfc_main$1 } from "../FieldLabel-
|
|
2
|
-
import { t as _sfc_main } from "../Field-
|
|
3
|
-
import { t as _sfc_main$2 } from "../InputClearButton-
|
|
1
|
+
import { t as _sfc_main$1 } from "../FieldLabel-CJbiefUx.js";
|
|
2
|
+
import { t as _sfc_main } from "../Field-Cw8J8ld7.js";
|
|
3
|
+
import { t as _sfc_main$2 } from "../InputClearButton-DL4RM5z1.js";
|
|
4
4
|
export { _sfc_main as Field, _sfc_main$1 as FieldLabel, _sfc_main$2 as InputClearButton };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as useFormLayout } from "./context-Cfml4jaK.js";
|
|
2
|
-
import { t as _sfc_main$1 } from "./FieldLabel-
|
|
2
|
+
import { t as _sfc_main$1 } from "./FieldLabel-CJbiefUx.js";
|
|
3
3
|
import { t as _sfc_main$2 } from "./FieldStatus-DSUCli4W.js";
|
|
4
4
|
import { computed, createElementBlock, createElementVNode, createSlots, createVNode, defineComponent, guardReactiveProps, mergeProps, normalizeProps, openBlock, renderSlot, unref, useAttrs, useTemplateRef, withCtx } from "vue";
|
|
5
5
|
import "../styles/field.css";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as _sfc_main$1 } from "./ButtonTooltip-CNKOQHYR.js";
|
|
2
2
|
import { t as useButtonTooltip } from "./useButtonTooltip-DjCaZMp_.js";
|
|
3
3
|
import { t as _sfc_main$2 } from "./FieldIcon-DMtfe1Ne.js";
|
|
4
|
-
import { t as _sfc_main$3 } from "./IconButton-
|
|
4
|
+
import { t as _sfc_main$3 } from "./IconButton-DiDHiGbo.js";
|
|
5
5
|
import { Fragment, computed, createElementBlock, createVNode, defineComponent, onScopeDispose, openBlock, shallowRef, unref, useId, useTemplateRef, watch, withCtx } from "vue";
|
|
6
6
|
//#region src/Field/FieldInfoTip.vue
|
|
7
7
|
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as _sfc_main$1 } from "./Icon-BCHo7W0x.js";
|
|
2
2
|
import { o as useComponentMessages } from "./context-B8IEFCDR.js";
|
|
3
3
|
import { a as useFormLayout, n as showsOptionalIndicator, r as showsRequiredIndicator } from "./context-Cfml4jaK.js";
|
|
4
|
-
import { t as _sfc_main$2 } from "./InfoTip-
|
|
4
|
+
import { t as _sfc_main$2 } from "./InfoTip-ClRC1Hh9.js";
|
|
5
5
|
import { t as fieldMessages } from "./field-CehUqCe0.js";
|
|
6
6
|
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, defineComponent, normalizeClass, openBlock, renderSlot, resolveDynamicComponent, toDisplayString, toRaw, unref, useTemplateRef, withCtx } from "vue";
|
|
7
7
|
import "../styles/field.css";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Ci as FileInputSize, Si as FileInputProps, Ti as FileInputValue, bi as FileInputEmits, wi as FileInputStatus, xi as FileInputMode, yi as _default } from "../index-
|
|
1
|
+
import { Ci as FileInputSize, Si as FileInputProps, Ti as FileInputValue, bi as FileInputEmits, wi as FileInputStatus, xi as FileInputMode, yi as _default } from "../index-BWaO4-T-.js";
|
|
2
2
|
export { _default as FileInput, type FileInputEmits, type FileInputMode, type FileInputProps, type FileInputSize, type FileInputStatus, type FileInputValue };
|
package/dist/FileInput/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _sfc_main } from "../FileInput-
|
|
1
|
+
import { t as _sfc_main } from "../FileInput-CgfiwVfs.js";
|
|
2
2
|
export { _sfc_main as FileInput };
|
|
@@ -8,9 +8,9 @@ import { n as selectFiles, t as formatFileSize } from "./useFileSelection-Cfcbh8
|
|
|
8
8
|
import { t as _sfc_main$4 } from "./FieldIcon-DMtfe1Ne.js";
|
|
9
9
|
import { a as useAstryxLocale, o as useComponentMessages } from "./context-B8IEFCDR.js";
|
|
10
10
|
import { t as _sfc_main$5 } from "./Spinner-DEVPDsD0.js";
|
|
11
|
-
import { t as _sfc_main$6 } from "./Field-
|
|
11
|
+
import { t as _sfc_main$6 } from "./Field-Cw8J8ld7.js";
|
|
12
12
|
import { t as useFieldPartStyling } from "./fieldParts-CDOlBdy6.js";
|
|
13
|
-
import { t as _sfc_main$7 } from "./InputClearButton-
|
|
13
|
+
import { t as _sfc_main$7 } from "./InputClearButton-DL4RM5z1.js";
|
|
14
14
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, mergeModels, mergeProps, normalizeClass, normalizeStyle, openBlock, shallowRef, toDisplayString, unref, useAttrs, useId, useModel, useTemplateRef, withCtx } from "vue";
|
|
15
15
|
import "../styles/bordered-control.css";
|
|
16
16
|
import "../styles/file-input.css";
|
package/dist/Heading/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _sfc_main } from "../Heading-
|
|
1
|
+
import { t as _sfc_main } from "../Heading-BO9n2vLl.js";
|
|
2
2
|
export { _sfc_main as Heading };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as devWarn } from "./useDevWarning-B2fsk2B-.js";
|
|
2
|
-
import { n as _sfc_main$1, t as useTruncationTooltip } from "./useTruncationTooltip-
|
|
2
|
+
import { n as _sfc_main$1, t as useTruncationTooltip } from "./useTruncationTooltip-BVMCoNno.js";
|
|
3
3
|
import { computed, createBlock, createCommentVNode, defineComponent, mergeProps, openBlock, renderSlot, resolveDynamicComponent, unref, useAttrs, watch, withCtx } from "vue";
|
|
4
4
|
import "../styles/heading.css";
|
|
5
5
|
//#region src/Heading/level.ts
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as HoverCardAlignment, c as HoverCardHoverIndication, d as HoverCardSlots, f as HoverCardTouchTrigger, i as _default, l as HoverCardPlacement, n as UseHoverCardReturn, o as HoverCardEmits, r as useHoverCard, s as HoverCardFocusTrigger, t as UseHoverCardOptions, u as HoverCardProps } from "../index
|
|
1
|
+
import { a as HoverCardAlignment, c as HoverCardHoverIndication, d as HoverCardSlots, f as HoverCardTouchTrigger, i as _default, l as HoverCardPlacement, n as UseHoverCardReturn, o as HoverCardEmits, r as useHoverCard, s as HoverCardFocusTrigger, t as UseHoverCardOptions, u as HoverCardProps } from "../index-Cun6cXGP.js";
|
|
2
2
|
export { _default as HoverCard, type HoverCardAlignment, type HoverCardEmits, type HoverCardFocusTrigger, type HoverCardHoverIndication, type HoverCardPlacement, type HoverCardProps, type HoverCardSlots, type HoverCardTouchTrigger, type UseHoverCardOptions, type UseHoverCardReturn, useHoverCard };
|
package/dist/HoverCard/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as useHoverCard, t as _sfc_main } from "../HoverCard-
|
|
1
|
+
import { n as useHoverCard, t as _sfc_main } from "../HoverCard-47J_i9AH.js";
|
|
2
2
|
export { _sfc_main as HoverCard, useHoverCard };
|
|
@@ -1,11 +1,11 @@
|
|
|
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 { i as isFocusable } from "./focus-
|
|
3
|
+
import { t as useLayer } from "./useLayer-BnjrJ85F.js";
|
|
4
|
+
import { t as _sfc_main$1 } from "./LayerContentBoundary-CeebKoPB.js";
|
|
5
|
+
import { i as isFocusable } from "./focus-x7mxEqjR.js";
|
|
6
6
|
import { t as useMergedRefs } from "./useMergedRefs-DTGo1cEU.js";
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as useHoverLayerDismiss } from "./useHoverLayerDismiss-
|
|
7
|
+
import { t as useTouchTriggerInternal } from "./useTouchTriggerInternal-b-txblws.js";
|
|
8
|
+
import { t as useHoverLayerDismiss } from "./useHoverLayerDismiss-B1W5qIBx.js";
|
|
9
9
|
import { Fragment, Teleport, Transition, computed, createBlock, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, mergeProps, onMounted, onScopeDispose, onUpdated, openBlock, ref, renderSlot, shallowRef, toDisplayString, toValue, unref, vShow, watch, withCtx, withDirectives } from "vue";
|
|
10
10
|
import "../styles/hover-card.css";
|
|
11
11
|
//#region src/HoverCard/hoverCardTrigger.ts
|
|
@@ -137,7 +137,6 @@ function useHoverCardTriggerBinding(options) {
|
|
|
137
137
|
//#endregion
|
|
138
138
|
//#region src/HoverCard/useHoverCard.ts
|
|
139
139
|
const GAP = 4;
|
|
140
|
-
const TOUCH_POINTER_TYPES = /* @__PURE__ */ new Set(["touch", "pen"]);
|
|
141
140
|
/**
|
|
142
141
|
* 对应原版 Astryx 的 `hooks/useHoverCard`:悬停触发的浮层卡片。
|
|
143
142
|
* 负责悬停意图与延迟、指针从触发器移进卡片的宽限、触摸轻点、`aria-describedby` /
|
|
@@ -167,19 +166,25 @@ function useHoverCard(options = {}) {
|
|
|
167
166
|
function isEnabled() {
|
|
168
167
|
return toValue(options.isEnabled) ?? true;
|
|
169
168
|
}
|
|
170
|
-
let lastModality = "keyboard";
|
|
171
|
-
let isTouchPointer = false;
|
|
172
169
|
let isHoveringContent = false;
|
|
173
170
|
let isEscapeDismissing = false;
|
|
174
171
|
let showTimer;
|
|
175
172
|
let hideTimer;
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
173
|
+
const hoverDismiss = useHoverLayerDismiss({
|
|
174
|
+
isPresent: () => isOpen.value,
|
|
175
|
+
getContainer: () => layer.contentRef.value,
|
|
176
|
+
onDismiss: dismissFromEscape
|
|
177
|
+
});
|
|
178
|
+
const touch = useTouchTriggerInternal({
|
|
179
|
+
touchTrigger: () => toValue(options.touchTrigger) ?? "auto",
|
|
180
|
+
isEnabled,
|
|
181
|
+
isControlled,
|
|
182
|
+
isOpen,
|
|
183
|
+
layerId: layer.id,
|
|
184
|
+
triggerRef,
|
|
185
|
+
show: showNow,
|
|
186
|
+
hide: hideNow
|
|
187
|
+
}, { isOutsidePressIgnored: () => !hoverDismiss.isTop() });
|
|
183
188
|
function clearTimers() {
|
|
184
189
|
clearTimeout(showTimer);
|
|
185
190
|
clearTimeout(hideTimer);
|
|
@@ -213,33 +218,20 @@ function useHoverCard(options = {}) {
|
|
|
213
218
|
if (!isHoveringContent) layer.hide();
|
|
214
219
|
}, toValue(options.hideDelay) ?? 200);
|
|
215
220
|
}
|
|
216
|
-
function onPointerEnter(event) {
|
|
217
|
-
isTouchPointer = event.pointerType === "touch";
|
|
218
|
-
}
|
|
219
221
|
function onMouseEnter() {
|
|
220
|
-
if (isTouchPointer) return;
|
|
222
|
+
if (touch.isTouchPointer.value) return;
|
|
221
223
|
scheduleShow();
|
|
222
224
|
}
|
|
223
225
|
function onMouseLeave() {
|
|
224
|
-
if (isTouchPointer) return;
|
|
226
|
+
if (touch.isTouchPointer.value) return;
|
|
225
227
|
scheduleHide();
|
|
226
228
|
}
|
|
227
229
|
function onPointerDown(event) {
|
|
228
|
-
|
|
229
|
-
isTouchPointer = isTouch;
|
|
230
|
-
if (!isTouch || isControlled.value) return;
|
|
231
|
-
const trigger = triggerRef.value;
|
|
232
|
-
const mode = toValue(options.touchTrigger) ?? "auto";
|
|
233
|
-
if ((mode === "auto" ? trigger != null && isActionTrigger(trigger) ? "none" : "tap" : mode) === "none" || !isEnabled()) {
|
|
234
|
-
hideNow();
|
|
235
|
-
return;
|
|
236
|
-
}
|
|
237
|
-
if (isOpen.value) hideNow();
|
|
238
|
-
else showNow();
|
|
230
|
+
touch.handlePointerDown(event);
|
|
239
231
|
}
|
|
240
232
|
function onFocusIn() {
|
|
241
233
|
if (!isEnabled()) return;
|
|
242
|
-
if (
|
|
234
|
+
if (touch.isTouchInteraction()) return;
|
|
243
235
|
if (isEscapeDismissing) {
|
|
244
236
|
isEscapeDismissing = false;
|
|
245
237
|
return;
|
|
@@ -252,12 +244,12 @@ function useHoverCard(options = {}) {
|
|
|
252
244
|
scheduleHide();
|
|
253
245
|
}
|
|
254
246
|
function onContentMouseEnter() {
|
|
255
|
-
if (isTouchPointer) return;
|
|
247
|
+
if (touch.isTouchPointer.value) return;
|
|
256
248
|
isHoveringContent = true;
|
|
257
249
|
clearTimers();
|
|
258
250
|
}
|
|
259
251
|
function onContentMouseLeave() {
|
|
260
|
-
if (isTouchPointer) return;
|
|
252
|
+
if (touch.isTouchPointer.value) return;
|
|
261
253
|
isHoveringContent = false;
|
|
262
254
|
scheduleHide();
|
|
263
255
|
}
|
|
@@ -278,18 +270,6 @@ function useHoverCard(options = {}) {
|
|
|
278
270
|
triggerRef.value.focus();
|
|
279
271
|
}
|
|
280
272
|
}
|
|
281
|
-
const hoverDismiss = useHoverLayerDismiss({
|
|
282
|
-
isPresent: () => isOpen.value,
|
|
283
|
-
getContainer: () => layer.contentRef.value,
|
|
284
|
-
onDismiss: dismissFromEscape
|
|
285
|
-
});
|
|
286
|
-
function onDocumentPointerDown(event) {
|
|
287
|
-
if (!hoverDismiss.isTop()) return;
|
|
288
|
-
if (!TOUCH_POINTER_TYPES.has(event.pointerType) || !isOpen.value || isControlled.value) return;
|
|
289
|
-
const target = event.target;
|
|
290
|
-
if (triggerRef.value?.contains(target) || layer.contentRef.value?.contains(target)) return;
|
|
291
|
-
hideNow();
|
|
292
|
-
}
|
|
293
273
|
function shouldListenFocus(element) {
|
|
294
274
|
const mode = toValue(options.focusTrigger) ?? "auto";
|
|
295
275
|
return mode === "always" || mode === "auto" && isFocusable(element);
|
|
@@ -302,7 +282,7 @@ function useHoverCard(options = {}) {
|
|
|
302
282
|
supportsExpanded: supportsAriaExpanded,
|
|
303
283
|
shouldListenFocus,
|
|
304
284
|
handlers: {
|
|
305
|
-
onPointerEnter,
|
|
285
|
+
onPointerEnter: touch.handlePointerEnter,
|
|
306
286
|
onMouseEnter,
|
|
307
287
|
onMouseLeave,
|
|
308
288
|
onPointerDown,
|
|
@@ -317,9 +297,6 @@ function useHoverCard(options = {}) {
|
|
|
317
297
|
watch(isOpen, (visible) => {
|
|
318
298
|
applyTriggerAttributes();
|
|
319
299
|
if (!visible) isHoveringContent = false;
|
|
320
|
-
if (typeof document === "undefined") return;
|
|
321
|
-
if (visible) document.addEventListener("pointerdown", onDocumentPointerDown, true);
|
|
322
|
-
else document.removeEventListener("pointerdown", onDocumentPointerDown, true);
|
|
323
300
|
}, { immediate: true });
|
|
324
301
|
watch(() => toValue(options.isOpen), (open) => {
|
|
325
302
|
clearTimers();
|
|
@@ -330,15 +307,6 @@ function useHoverCard(options = {}) {
|
|
|
330
307
|
if (!enabled) hideNow();
|
|
331
308
|
});
|
|
332
309
|
onMounted(() => {
|
|
333
|
-
if (typeof document === "undefined") return;
|
|
334
|
-
document.addEventListener("pointerdown", onModalityPointerDown, {
|
|
335
|
-
capture: true,
|
|
336
|
-
passive: true
|
|
337
|
-
});
|
|
338
|
-
document.addEventListener("keydown", onModalityKeyDown, {
|
|
339
|
-
capture: true,
|
|
340
|
-
passive: true
|
|
341
|
-
});
|
|
342
310
|
if (isControlled.value) {
|
|
343
311
|
if (toValue(options.isOpen) === true) layer.isOpen.value = true;
|
|
344
312
|
return;
|
|
@@ -348,10 +316,6 @@ function useHoverCard(options = {}) {
|
|
|
348
316
|
onScopeDispose(() => {
|
|
349
317
|
clearTimers();
|
|
350
318
|
unbind();
|
|
351
|
-
if (typeof document === "undefined") return;
|
|
352
|
-
document.removeEventListener("pointerdown", onModalityPointerDown, true);
|
|
353
|
-
document.removeEventListener("keydown", onModalityKeyDown, true);
|
|
354
|
-
document.removeEventListener("pointerdown", onDocumentPointerDown, true);
|
|
355
319
|
});
|
|
356
320
|
function show() {
|
|
357
321
|
showNow();
|