@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,15 +1,19 @@
|
|
|
1
1
|
import { t as _sfc_main$1 } from "./Icon-BCHo7W0x.js";
|
|
2
|
+
import { i as useLayerGutter } from "./context-M-er0-Rk.js";
|
|
3
|
+
import { t as _sfc_main$2 } from "./ButtonTooltip-CNKOQHYR.js";
|
|
4
|
+
import { t as useButtonTooltip } from "./useButtonTooltip-DjCaZMp_.js";
|
|
2
5
|
import { n as useDevWarning } from "./useDevWarning-B2fsk2B-.js";
|
|
3
6
|
import { o as useComponentMessages } from "./context-B8IEFCDR.js";
|
|
4
7
|
import { t as useScrollbars } from "./useScrollbars-Ch0xqJWO.js";
|
|
5
|
-
import { t as _sfc_main$
|
|
6
|
-
import { t as _sfc_main$
|
|
8
|
+
import { t as _sfc_main$3 } from "./Spinner-DEVPDsD0.js";
|
|
9
|
+
import { t as _sfc_main$4 } from "./Field-Cw8J8ld7.js";
|
|
7
10
|
import { t as useFieldPartStyling } from "./fieldParts-CDOlBdy6.js";
|
|
8
11
|
import { t as consumeWhileDisabled } from "./disabledInteraction-CPzL8kVP.js";
|
|
9
|
-
import { n as fieldStatusPlacement, t as normalizeTriggerVariant } from "./triggerVariant-
|
|
12
|
+
import { n as fieldStatusPlacement, r as _sfc_main$5, t as normalizeTriggerVariant } from "./triggerVariant-BDVvyLtv.js";
|
|
10
13
|
import { t as selectorMessages } from "./selector-BmGLjm94.js";
|
|
11
|
-
import { t as _sfc_main$
|
|
12
|
-
import { computed, createBlock, createCommentVNode, createElementVNode, createVNode, defineComponent, guardReactiveProps, mergeModels, mergeProps, normalizeClass, normalizeProps, normalizeStyle, onBeforeUnmount, openBlock, ref, renderSlot, resolveDynamicComponent, toDisplayString, unref, useAttrs, useId, useModel, useSlots, useTemplateRef, watch, withCtx } from "vue";
|
|
14
|
+
import { t as _sfc_main$6 } from "./Popover-C68nCirC.js";
|
|
15
|
+
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, guardReactiveProps, mergeModels, mergeProps, normalizeClass, normalizeProps, normalizeStyle, onBeforeUnmount, openBlock, ref, renderSlot, resolveDynamicComponent, shallowRef, toDisplayString, unref, useAttrs, useId, useModel, useSlots, useTemplateRef, watch, withCtx } from "vue";
|
|
16
|
+
import "../styles/visually-hidden-utility.css";
|
|
13
17
|
import "../styles/complex-selector.css";
|
|
14
18
|
//#region src/ComplexSelector/ComplexSelector.vue
|
|
15
19
|
const _hoisted_1 = [
|
|
@@ -21,6 +25,9 @@ const _hoisted_1 = [
|
|
|
21
25
|
"aria-expanded",
|
|
22
26
|
"aria-invalid",
|
|
23
27
|
"aria-disabled",
|
|
28
|
+
"aria-label",
|
|
29
|
+
"aria-labelledby",
|
|
30
|
+
"aria-describedby",
|
|
24
31
|
"aria-required"
|
|
25
32
|
];
|
|
26
33
|
const _hoisted_2 = { class: "astryx-complex-selector-value" };
|
|
@@ -50,6 +57,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
50
57
|
type: Boolean,
|
|
51
58
|
default: false
|
|
52
59
|
},
|
|
60
|
+
disabledMessage: {},
|
|
53
61
|
isLoading: {
|
|
54
62
|
type: Boolean,
|
|
55
63
|
default: false
|
|
@@ -136,6 +144,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
136
144
|
"role",
|
|
137
145
|
"aria-label",
|
|
138
146
|
"aria-labelledby",
|
|
147
|
+
"aria-describedby",
|
|
139
148
|
"aria-expanded",
|
|
140
149
|
"aria-controls",
|
|
141
150
|
"aria-haspopup",
|
|
@@ -157,6 +166,49 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
157
166
|
const triggerId = `astryx-complex-selector-${useId()}`;
|
|
158
167
|
const labelId = `${triggerId}-label`;
|
|
159
168
|
const contentId = `${triggerId}-content`;
|
|
169
|
+
const disabledId = `${triggerId}-disabled`;
|
|
170
|
+
const disabledTooltipId = `${triggerId}-disabled-tooltip`;
|
|
171
|
+
const triggerEl = useTemplateRef("triggerEl");
|
|
172
|
+
/** 自制触发器的元素:它第一次收到聚焦或指针事件时记下来,禁用说明的提示挂在它上面。 */
|
|
173
|
+
const customAnchor = shallowRef(null);
|
|
174
|
+
const tooltipAnchor = computed(() => customAnchor.value ?? triggerEl.value);
|
|
175
|
+
/** 有禁用原因时,悬停、键盘聚焦和点按都能读到它。 */
|
|
176
|
+
const resolvedDisabledMessage = computed(() => props.disabledMessage?.trim() || void 0);
|
|
177
|
+
const showsDisabledMessage = computed(() => props.isDisabled && resolvedDisabledMessage.value != null);
|
|
178
|
+
const disabledTooltip = useButtonTooltip(showsDisabledMessage);
|
|
179
|
+
/**
|
|
180
|
+
* 内置触发器的状态图标:attached 是普通图标,tooltip 是能聚焦的提示按钮,都顶替箭头的位置;
|
|
181
|
+
* detached 不画,箭头照旧。
|
|
182
|
+
*/
|
|
183
|
+
const statusGlyph = computed(() => {
|
|
184
|
+
const type = props.status?.type;
|
|
185
|
+
if (type == null || effectiveStatusVariant.value === "detached") return void 0;
|
|
186
|
+
return type;
|
|
187
|
+
});
|
|
188
|
+
const isTooltipStatus = computed(() => statusGlyph.value != null && effectiveStatusVariant.value === "tooltip");
|
|
189
|
+
/**
|
|
190
|
+
* 内置触发器默认由字段标签命名;调用方给了 aria-label 或 aria-labelledby 就用调用方的。
|
|
191
|
+
*/
|
|
192
|
+
const builtinLabelledBy = computed(() => {
|
|
193
|
+
const external = attrs["aria-labelledby"];
|
|
194
|
+
if (typeof external === "string" && external !== "") return external;
|
|
195
|
+
return typeof attrs["aria-label"] === "string" && attrs["aria-label"] !== "" ? void 0 : labelId;
|
|
196
|
+
});
|
|
197
|
+
const builtinLabel = computed(() => typeof attrs["aria-label"] === "string" && attrs["aria-label"] !== "" ? attrs["aria-label"] : void 0);
|
|
198
|
+
const describedBy = computed(() => {
|
|
199
|
+
return [
|
|
200
|
+
typeof attrs["aria-describedby"] === "string" ? attrs["aria-describedby"] : void 0,
|
|
201
|
+
props.description ? `${triggerId}-description` : void 0,
|
|
202
|
+
props.status?.message ? `${triggerId}-status` : void 0,
|
|
203
|
+
showsDisabledMessage.value ? disabledId : void 0
|
|
204
|
+
].filter(Boolean).join(" ") || void 0;
|
|
205
|
+
});
|
|
206
|
+
/**
|
|
207
|
+
* 内容自己的高度上限:480px 和视口扣掉上下空隙之后的高度取小。LayerProvider 的 `inset`
|
|
208
|
+
* 给应用底栏留的空隙也在里面,最后几行不会滚到底栏下面。
|
|
209
|
+
*/
|
|
210
|
+
const layerGutter = useLayerGutter();
|
|
211
|
+
const contentStyles = computed(() => [{ "--_complex-selector-max-block": `min(480px, calc(100dvh - ${layerGutter.value.blockStart + layerGutter.value.blockEnd}px))` }, props.contentStyle]);
|
|
160
212
|
const placeholder = computed(() => props.placeholder ?? messages.value.selector.placeholder);
|
|
161
213
|
const isBusy = computed(() => props.isLoading || isPending.value);
|
|
162
214
|
const displayValue = computed(() => isPending.value && optimistic.value !== void 0 ? optimistic.value : model.value);
|
|
@@ -172,6 +224,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
172
224
|
isOpen.value = next;
|
|
173
225
|
}
|
|
174
226
|
async function commit(next) {
|
|
227
|
+
if (props.isDisabled) return;
|
|
175
228
|
model.value = next;
|
|
176
229
|
emit("change", next);
|
|
177
230
|
if (props.changeAction == null) return;
|
|
@@ -209,6 +262,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
209
262
|
return consumeWhileDisabled(event, props.isDisabled);
|
|
210
263
|
}
|
|
211
264
|
function onBuiltinClick(event) {
|
|
265
|
+
if (showsDisabledMessage.value) disabledTooltip.onTooltipPointerEnter();
|
|
212
266
|
if (blockedWhileDisabled(event)) return;
|
|
213
267
|
emit("click", event);
|
|
214
268
|
if (event.defaultPrevented) event.stopImmediatePropagation();
|
|
@@ -232,12 +286,27 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
232
286
|
if (!event.defaultPrevented) emit("keydown", event);
|
|
233
287
|
}
|
|
234
288
|
const hasCustomTrigger = computed(() => props.renderTrigger != null || slots.trigger != null);
|
|
289
|
+
useDevWarning("ComplexSelector", "needs a default slot that renders the picker, for example `<template #default=\"{ value, commit }\"><MyPicker :value=\"value\" @change=\"commit\" /></template>`.", () => slots.default == null);
|
|
235
290
|
useDevWarning("ComplexSelector", "`containerClass`/`containerStyle` have no effect on a custom trigger.", () => hasCustomTrigger.value && (props.containerClass != null || props.containerStyle != null));
|
|
236
291
|
useDevWarning("ComplexSelector", "`controlClass`/`controlStyle` have no effect on a custom trigger.", () => hasCustomTrigger.value && (props.controlClass != null || props.controlStyle != null));
|
|
292
|
+
function rememberCustomTrigger(event) {
|
|
293
|
+
if (event.currentTarget instanceof HTMLElement) customAnchor.value = event.currentTarget;
|
|
294
|
+
}
|
|
237
295
|
const triggerProps = computed(() => ({
|
|
238
296
|
"id": triggerId,
|
|
239
297
|
"onClick": onCustomClick,
|
|
240
298
|
"onKeydown": onCustomKeyDown,
|
|
299
|
+
"onFocus": (event) => {
|
|
300
|
+
rememberCustomTrigger(event);
|
|
301
|
+
disabledTooltip.onFocus(event);
|
|
302
|
+
},
|
|
303
|
+
"onBlur": disabledTooltip.onBlur,
|
|
304
|
+
"onPointerenter": (event) => {
|
|
305
|
+
rememberCustomTrigger(event);
|
|
306
|
+
disabledTooltip.onPointerEnter();
|
|
307
|
+
},
|
|
308
|
+
"onPointerleave": disabledTooltip.onPointerLeave,
|
|
309
|
+
"aria-describedby": showsDisabledMessage.value ? disabledId : void 0,
|
|
241
310
|
"role": "combobox",
|
|
242
311
|
"aria-disabled": props.isDisabled ? "true" : void 0,
|
|
243
312
|
"aria-haspopup": "dialog",
|
|
@@ -278,7 +347,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
278
347
|
onBeforeUnmount(() => publishHandle(null));
|
|
279
348
|
__expose(handle);
|
|
280
349
|
return (_ctx, _cache) => {
|
|
281
|
-
return hasCustomTrigger.value ? (openBlock(), createBlock(_sfc_main$
|
|
350
|
+
return openBlock(), createElementBlock(Fragment, null, [hasCustomTrigger.value ? (openBlock(), createBlock(_sfc_main$6, mergeProps({ key: 0 }, unref(parts).forwardedAttrs(), {
|
|
282
351
|
class: unref(attrs).class,
|
|
283
352
|
style: unref(attrs).style,
|
|
284
353
|
alignment: __props.alignment,
|
|
@@ -298,14 +367,18 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
298
367
|
ref_key: "contentEl",
|
|
299
368
|
ref: contentEl,
|
|
300
369
|
class: normalizeClass(["astryx-complex-selector-content", __props.contentClass]),
|
|
301
|
-
style: normalizeStyle(
|
|
370
|
+
style: normalizeStyle(contentStyles.value)
|
|
302
371
|
}, [renderSlot(_ctx.$slots, "default", {
|
|
303
372
|
close,
|
|
304
373
|
commit,
|
|
305
374
|
state: state.value,
|
|
306
375
|
value: displayValue.value
|
|
307
376
|
})], 6)]),
|
|
308
|
-
default: withCtx(() => [renderSlot(_ctx.$slots, "trigger", normalizeProps(guardReactiveProps(triggerProps.value)), () => [(openBlock(), createBlock(resolveDynamicComponent(triggerView)))])
|
|
377
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "trigger", normalizeProps(guardReactiveProps(triggerProps.value)), () => [(openBlock(), createBlock(resolveDynamicComponent(triggerView)))]), showsDisabledMessage.value ? (openBlock(), createElementBlock("span", {
|
|
378
|
+
key: 0,
|
|
379
|
+
id: disabledId,
|
|
380
|
+
class: "astryx-visually-hidden"
|
|
381
|
+
}, toDisplayString(resolvedDisabledMessage.value), 1)) : createCommentVNode("v-if", true)]),
|
|
309
382
|
_: 3
|
|
310
383
|
}, 16, [
|
|
311
384
|
"class",
|
|
@@ -316,7 +389,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
316
389
|
"label",
|
|
317
390
|
"placement",
|
|
318
391
|
"width"
|
|
319
|
-
])) : (openBlock(), createBlock(_sfc_main$
|
|
392
|
+
])) : (openBlock(), createBlock(_sfc_main$4, {
|
|
320
393
|
key: 1,
|
|
321
394
|
class: normalizeClass(["astryx-complex-selector-field", [unref(attrs).class, unref(parts).containerClass.value]]),
|
|
322
395
|
style: normalizeStyle([unref(attrs).style, unref(parts).containerStyle.value]),
|
|
@@ -334,7 +407,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
334
407
|
"status-variant": effectiveStatusVariant.value,
|
|
335
408
|
width: __props.width
|
|
336
409
|
}, {
|
|
337
|
-
default: withCtx(() => [createVNode(_sfc_main$
|
|
410
|
+
default: withCtx(() => [createVNode(_sfc_main$6, {
|
|
338
411
|
alignment: __props.alignment,
|
|
339
412
|
"has-auto-focus": true,
|
|
340
413
|
"has-close-button": false,
|
|
@@ -352,52 +425,81 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
352
425
|
ref_key: "contentEl",
|
|
353
426
|
ref: contentEl,
|
|
354
427
|
class: normalizeClass(["astryx-complex-selector-content", __props.contentClass]),
|
|
355
|
-
style: normalizeStyle(
|
|
428
|
+
style: normalizeStyle(contentStyles.value)
|
|
356
429
|
}, [renderSlot(_ctx.$slots, "default", {
|
|
357
430
|
close,
|
|
358
431
|
commit,
|
|
359
432
|
state: state.value,
|
|
360
433
|
value: displayValue.value
|
|
361
434
|
})], 6)]),
|
|
362
|
-
default: withCtx(() => [
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
435
|
+
default: withCtx(() => [
|
|
436
|
+
createElementVNode("button", mergeProps(unref(parts).forwardedAttrs(), {
|
|
437
|
+
id: triggerId,
|
|
438
|
+
ref_key: "triggerEl",
|
|
439
|
+
ref: triggerEl,
|
|
440
|
+
class: ["astryx-complex-selector", __props.controlClass],
|
|
441
|
+
style: __props.controlStyle,
|
|
442
|
+
"data-placeholder": hasTriggerLabel.value ? void 0 : "",
|
|
443
|
+
"data-size": __props.size,
|
|
444
|
+
"data-status": triggerVariant.value === "input" ? __props.status?.type : void 0,
|
|
445
|
+
"data-variant": triggerVariant.value,
|
|
446
|
+
"aria-busy": isBusy.value || void 0,
|
|
447
|
+
"aria-expanded": isOpen.value,
|
|
448
|
+
"aria-invalid": __props.status?.type === "error" || void 0,
|
|
449
|
+
"aria-disabled": __props.isDisabled || void 0,
|
|
450
|
+
"aria-label": builtinLabel.value,
|
|
451
|
+
"aria-labelledby": builtinLabelledBy.value,
|
|
452
|
+
"aria-describedby": describedBy.value,
|
|
453
|
+
"aria-required": __props.isRequired || void 0,
|
|
454
|
+
role: "combobox",
|
|
455
|
+
type: "button",
|
|
456
|
+
onClick: onBuiltinClick,
|
|
457
|
+
onKeydown: onBuiltinKeyDown,
|
|
458
|
+
onFocus: _cache[0] || (_cache[0] = (...args) => unref(disabledTooltip).onFocus && unref(disabledTooltip).onFocus(...args)),
|
|
459
|
+
onBlur: _cache[1] || (_cache[1] = (...args) => unref(disabledTooltip).onBlur && unref(disabledTooltip).onBlur(...args)),
|
|
460
|
+
onPointerenter: _cache[2] || (_cache[2] = (...args) => unref(disabledTooltip).onPointerEnter && unref(disabledTooltip).onPointerEnter(...args)),
|
|
461
|
+
onPointerleave: _cache[3] || (_cache[3] = (...args) => unref(disabledTooltip).onPointerLeave && unref(disabledTooltip).onPointerLeave(...args))
|
|
462
|
+
}), [
|
|
463
|
+
__props.startIcon ? (openBlock(), createBlock(_sfc_main$1, {
|
|
464
|
+
key: 0,
|
|
465
|
+
class: "astryx-complex-selector-start",
|
|
466
|
+
color: "secondary",
|
|
467
|
+
icon: __props.startIcon,
|
|
468
|
+
size: "sm"
|
|
469
|
+
}, null, 8, ["icon"])) : createCommentVNode("v-if", true),
|
|
470
|
+
createElementVNode("span", _hoisted_2, toDisplayString(hasTriggerLabel.value ? __props.triggerLabel : placeholder.value), 1),
|
|
471
|
+
isBusy.value ? (openBlock(), createBlock(_sfc_main$3, {
|
|
472
|
+
key: 1,
|
|
473
|
+
size: "sm"
|
|
474
|
+
})) : createCommentVNode("v-if", true),
|
|
475
|
+
statusGlyph.value && !isTooltipStatus.value ? (openBlock(), createBlock(_sfc_main$5, {
|
|
476
|
+
key: 2,
|
|
477
|
+
type: statusGlyph.value
|
|
478
|
+
}, null, 8, ["type"])) : isTooltipStatus.value ? (openBlock(), createElementBlock(Fragment, { key: 3 }, [createCommentVNode(" 提示按钮不能套在按钮里,它浮在这块空位上。 "), _cache[4] || (_cache[4] = createElementVNode("span", {
|
|
479
|
+
class: "astryx-complex-selector-status-slot",
|
|
480
|
+
"aria-hidden": "true"
|
|
481
|
+
}, null, -1))], 2112)) : (openBlock(), createBlock(_sfc_main$1, {
|
|
482
|
+
key: 4,
|
|
483
|
+
class: "astryx-complex-selector-chevron",
|
|
484
|
+
"data-state": isOpen.value ? "expanded" : "collapsed",
|
|
485
|
+
color: "secondary",
|
|
486
|
+
icon: "chevronDown",
|
|
487
|
+
size: "sm"
|
|
488
|
+
}, null, 8, ["data-state"]))
|
|
489
|
+
], 16, _hoisted_1),
|
|
490
|
+
isTooltipStatus.value && statusGlyph.value ? (openBlock(), createBlock(_sfc_main$5, {
|
|
382
491
|
key: 0,
|
|
383
|
-
class: "astryx-complex-selector-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
}, null, 8, ["
|
|
388
|
-
|
|
389
|
-
isBusy.value ? (openBlock(), createBlock(_sfc_main$2, {
|
|
492
|
+
class: "astryx-complex-selector-status-tip",
|
|
493
|
+
type: statusGlyph.value,
|
|
494
|
+
message: __props.status?.message,
|
|
495
|
+
tooltip: ""
|
|
496
|
+
}, null, 8, ["type", "message"])) : createCommentVNode("v-if", true),
|
|
497
|
+
showsDisabledMessage.value ? (openBlock(), createElementBlock("span", {
|
|
390
498
|
key: 1,
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
"data-state": isOpen.value ? "expanded" : "collapsed",
|
|
396
|
-
color: "secondary",
|
|
397
|
-
icon: "chevronDown",
|
|
398
|
-
size: "sm"
|
|
399
|
-
}, null, 8, ["data-state"])
|
|
400
|
-
], 16, _hoisted_1)]),
|
|
499
|
+
id: disabledId,
|
|
500
|
+
class: "astryx-visually-hidden"
|
|
501
|
+
}, toDisplayString(resolvedDisabledMessage.value), 1)) : createCommentVNode("v-if", true)
|
|
502
|
+
]),
|
|
401
503
|
_: 3
|
|
402
504
|
}, 8, [
|
|
403
505
|
"alignment",
|
|
@@ -422,7 +524,21 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
422
524
|
"status",
|
|
423
525
|
"status-variant",
|
|
424
526
|
"width"
|
|
425
|
-
]))
|
|
527
|
+
])), showsDisabledMessage.value ? (openBlock(), createBlock(_sfc_main$2, {
|
|
528
|
+
key: 2,
|
|
529
|
+
id: disabledTooltipId,
|
|
530
|
+
anchor: tooltipAnchor.value,
|
|
531
|
+
open: unref(disabledTooltip).isOpen.value,
|
|
532
|
+
text: resolvedDisabledMessage.value ?? "",
|
|
533
|
+
onPointerEnter: unref(disabledTooltip).onTooltipPointerEnter,
|
|
534
|
+
onPointerLeave: unref(disabledTooltip).onTooltipPointerLeave
|
|
535
|
+
}, null, 8, [
|
|
536
|
+
"anchor",
|
|
537
|
+
"open",
|
|
538
|
+
"text",
|
|
539
|
+
"onPointerEnter",
|
|
540
|
+
"onPointerLeave"
|
|
541
|
+
])) : createCommentVNode("v-if", true)], 64);
|
|
426
542
|
};
|
|
427
543
|
}
|
|
428
544
|
});
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Aa as ContextMenuSubMenuSlots, Ca as ContextMenuRadioData, Da as ContextMenuSlots, Ea as ContextMenuSize, Ma as ContextMenuVariant, Na as ContextMenuWidth, Oa as ContextMenuSubMenuEmits, Sa as ContextMenuProps, Ta as ContextMenuSection, _a as ContextMenuItemProps, aa as useContextMenu, ba as ContextMenuOption, ca as ContextMenuDividerData, da as ContextMenuEntry, ea as _default$7, fa as ContextMenuGroupProps, ga as ContextMenuItemIcon, ha as ContextMenuItemEmits, ia as _default, ja as ContextMenuTriggerElement, ka as ContextMenuSubMenuProps, la as ContextMenuDividerProps, ma as ContextMenuItemData, na as _default$3, oa as useContextMenuSize, pa as ContextMenuGroupSlots, ra as _default$2, sa as ContextMenuCheckboxData, ta as _default$4, ua as ContextMenuEmits, va as ContextMenuItemSlots, wa as ContextMenuRadioOptionData, xa as ContextMenuPresentation, ya as ContextMenuItemTarget } from "../index-
|
|
1
|
+
import { Aa as ContextMenuSubMenuSlots, Ca as ContextMenuRadioData, Da as ContextMenuSlots, Ea as ContextMenuSize, Ma as ContextMenuVariant, Na as ContextMenuWidth, Oa as ContextMenuSubMenuEmits, Sa as ContextMenuProps, Ta as ContextMenuSection, _a as ContextMenuItemProps, aa as useContextMenu, ba as ContextMenuOption, ca as ContextMenuDividerData, da as ContextMenuEntry, ea as _default$7, fa as ContextMenuGroupProps, ga as ContextMenuItemIcon, ha as ContextMenuItemEmits, ia as _default, ja as ContextMenuTriggerElement, ka as ContextMenuSubMenuProps, la as ContextMenuDividerProps, ma as ContextMenuItemData, na as _default$3, oa as useContextMenuSize, pa as ContextMenuGroupSlots, ra as _default$2, sa as ContextMenuCheckboxData, ta as _default$4, ua as ContextMenuEmits, va as ContextMenuItemSlots, wa as ContextMenuRadioOptionData, xa as ContextMenuPresentation, ya as ContextMenuItemTarget } from "../index-BWaO4-T-.js";
|
|
2
2
|
import { n as _default$5, r as _default$1, t as _default$6 } from "../DropdownMenuRadioItem.vue-C9DdN6UE.js";
|
|
3
3
|
export { _default as ContextMenu, type ContextMenuCheckboxData, _default$1 as ContextMenuCheckboxItem, _default$2 as ContextMenuDivider, type ContextMenuDividerData, type ContextMenuDividerProps, type ContextMenuEmits, type ContextMenuEntry, _default$3 as ContextMenuGroup, type ContextMenuGroupProps, type ContextMenuGroupSlots, _default$4 as ContextMenuItem, type ContextMenuItemData, type ContextMenuItemEmits, type ContextMenuItemIcon, type ContextMenuItemProps, type ContextMenuItemSlots, type ContextMenuItemTarget, type ContextMenuOption, type ContextMenuPresentation, type ContextMenuProps, type ContextMenuRadioData, _default$5 as ContextMenuRadioGroup, _default$6 as ContextMenuRadioItem, type ContextMenuRadioOptionData, type ContextMenuSection, type ContextMenuSize, type ContextMenuSlots, _default$7 as ContextMenuSubMenu, type ContextMenuSubMenuEmits, type ContextMenuSubMenuProps, type ContextMenuSubMenuSlots, type ContextMenuTriggerElement, type ContextMenuVariant, type ContextMenuWidth, useContextMenu, useContextMenuSize };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as _sfc_main$1, d as useContextMenu, f as useContextMenuSize, i as _sfc_main$5, r as _sfc_main$6 } from "../useMenuDrillIn-
|
|
2
|
-
import { a as _sfc_main$2, i as _sfc_main$3, n as _sfc_main$7, r as _sfc_main$4, t as _sfc_main } from "../ContextMenu-
|
|
1
|
+
import { a as _sfc_main$1, d as useContextMenu, f as useContextMenuSize, i as _sfc_main$5, r as _sfc_main$6 } from "../useMenuDrillIn-BW9dNBje.js";
|
|
2
|
+
import { a as _sfc_main$2, i as _sfc_main$3, n as _sfc_main$7, r as _sfc_main$4, t as _sfc_main } from "../ContextMenu-JDU4HDKm.js";
|
|
3
3
|
export { _sfc_main as ContextMenu, _sfc_main$1 as ContextMenuCheckboxItem, _sfc_main$2 as ContextMenuDivider, _sfc_main$3 as ContextMenuGroup, _sfc_main$4 as ContextMenuItem, _sfc_main$5 as ContextMenuRadioGroup, _sfc_main$6 as ContextMenuRadioItem, _sfc_main$7 as ContextMenuSubMenu, useContextMenu, useContextMenuSize };
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { n as _sfc_main$6 } from "./BottomSheet-
|
|
1
|
+
import { n as _sfc_main$6 } from "./BottomSheet-D67lQ3Lo.js";
|
|
2
2
|
import { r as resetMenuPress } 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 { n as usePositionedLayer, t as useDismiss } from "./useDismiss-
|
|
6
|
-
import {
|
|
7
|
-
import { t as _sfc_main$8 } from "./LayerContentBoundary-
|
|
5
|
+
import { n as usePositionedLayer, t as useDismiss } from "./useDismiss-74dLMi5S.js";
|
|
6
|
+
import { o as isImeKeyEvent } from "./layerDepth-BU_55vPr.js";
|
|
7
|
+
import { t as _sfc_main$8 } from "./LayerContentBoundary-CeebKoPB.js";
|
|
8
8
|
import { t as useMediaQuery } from "./useMediaQuery-GMmgp28-.js";
|
|
9
9
|
import { o as useComponentMessages } from "./context-B8IEFCDR.js";
|
|
10
|
-
import { a as useLongPress, t as useMenuPress } from "./useMenuPress-
|
|
10
|
+
import { a as useLongPress, t as useMenuPress } from "./useMenuPress-BWq7kwWm.js";
|
|
11
11
|
import { n as useOverflow } from "./useOverflow-VrwF5oek.js";
|
|
12
12
|
import { t as useScrollbars } from "./useScrollbars-Ch0xqJWO.js";
|
|
13
|
-
import { a as _sfc_main$9, d as useContextMenu, f as useContextMenuSize, i as _sfc_main$10, l as contextMenuContextKey, n as useDropdownMenuMessages, r as _sfc_main$11, t as useMenuDrillIn, u as submenuAncestorOpenKey } from "./useMenuDrillIn-
|
|
13
|
+
import { a as _sfc_main$9, d as useContextMenu, f as useContextMenuSize, i as _sfc_main$10, l as contextMenuContextKey, n as useDropdownMenuMessages, r as _sfc_main$11, t as useMenuDrillIn, u as submenuAncestorOpenKey } from "./useMenuDrillIn-BW9dNBje.js";
|
|
14
14
|
import { t as _sfc_main$12 } from "./Divider-mOZ6vIQw.js";
|
|
15
15
|
import { n as isModifiedClick, t as activateMenuItem } from "./menuActivation-BqiaK6ot.js";
|
|
16
16
|
import { t as _sfc_main$13 } from "./Spinner-DEVPDsD0.js";
|
|
@@ -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/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 };
|