@astryx-vue/core 0.31.0 → 0.32.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-CvNtu0Jd.js → AlertDialog-JmxbMkeV.js} +8 -8
- package/dist/AppShell/index.js +1 -1
- package/dist/{AppShell-BmX6wqba.js → AppShell-mWlY4pE3.js} +4 -6
- package/dist/Avatar/index.js +1 -1
- package/dist/{Avatar-IVvsyeGV.js → Avatar-B-gSpEw4.js} +1 -1
- package/dist/AvatarGroup/index.d.ts +1 -1
- package/dist/AvatarGroup/index.js +1 -1
- package/dist/{AvatarGroup-Dd-yDDNz.js → AvatarGroup-CCFMtKks.js} +1 -1
- package/dist/Banner/index.d.ts +1 -1
- package/dist/Banner/index.js +1 -1
- package/dist/{Banner-DKmvoMxD.js → Banner-BJETFZr7.js} +1 -1
- package/dist/BottomSheet/index.d.ts +1 -1
- package/dist/BottomSheet/index.js +2 -2
- package/dist/{BottomSheet-BZ_yFoKC.js → BottomSheet-C6pQBvnU.js} +10 -38
- package/dist/{BottomSheet-B8_znPYE.js → BottomSheet-C_LoskZt.js} +3 -3
- package/dist/Breadcrumbs/index.d.ts +2 -2
- package/dist/Breadcrumbs/index.js +2 -2
- package/dist/{Breadcrumbs-CJpvbZsf.js → Breadcrumbs-D05OmNfd.js} +1 -1
- package/dist/Button/index.d.ts +1 -1
- package/dist/Button/index.js +1 -1
- package/dist/{Button-DdPty46q.js → Button-X7k1WCkW.js} +4 -4
- package/dist/ButtonGroup/index.d.ts +1 -1
- package/dist/ButtonGroup/index.js +1 -1
- package/dist/{ButtonGroup-oI99JAyN.js → ButtonGroup-D5E7QLWI.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-BNr79JpP.js → Carousel-Bpbx-2DK.js} +1 -1
- package/dist/Chat/index.d.ts +1 -1
- package/dist/Chat/index.js +1 -1
- package/dist/{Chat-BadS0fEx.js → Chat-D7Q2z9W2.js} +11 -11
- package/dist/CheckboxInput/index.d.ts +1 -1
- package/dist/CheckboxInput/index.js +1 -1
- package/dist/{CheckboxInput-CzP8gP3v.js → CheckboxInput-Cxtmdymo.js} +3 -3
- package/dist/CheckboxList/index.d.ts +1 -1
- package/dist/CheckboxList/index.js +1 -1
- package/dist/{CheckboxListItem-CxBjpX3d.js → CheckboxListItem-DJrx97cA.js} +5 -5
- package/dist/ClickableCard/index.d.ts +1 -1
- package/dist/ClickableCard/index.js +1 -1
- package/dist/{ClickableCard-B86P2aiM.js → ClickableCard-CLXCxaxo.js} +1 -1
- package/dist/Code/index.js +1 -1
- package/dist/{CodeBlock-Cgm4uOhG.js → CodeBlock-Bgxy15iD.js} +1 -1
- package/dist/Collapsible/index.js +1 -1
- package/dist/{Collapsible-DXl9RRaX.js → Collapsible-Cf5zttC-.js} +2 -3
- package/dist/CommandPalette/index.js +1 -1
- package/dist/{CommandPalette-BgVwGtdA.js → CommandPalette-CniaCqex.js} +2 -2
- package/dist/ComplexSelector/index.js +1 -1
- package/dist/{ComplexSelector-vna5wtig.js → ComplexSelector-DYeYZKON.js} +2 -2
- package/dist/ContextMenu/index.d.ts +2 -2
- package/dist/ContextMenu/index.js +2 -2
- package/dist/{ContextMenu-CE-FnLI6.js → ContextMenu-CLCgJG0C.js} +167 -142
- package/dist/DateInput/index.d.ts +1 -1
- package/dist/DateInput/index.js +1 -1
- package/dist/{DateInput-BCasoeIj.js → DateInput-BmEbQA1z.js} +10 -10
- package/dist/DateRangeInput/index.d.ts +1 -1
- package/dist/DateRangeInput/index.js +1 -1
- package/dist/{DateRangeInput-Bi97pjDX.js → DateRangeInput-CoA1PuGz.js} +5 -5
- package/dist/DateTimeInput/index.d.ts +1 -1
- package/dist/DateTimeInput/index.js +1 -1
- package/dist/{DateTimeInput-CKnvjLhi.js → DateTimeInput-CL0sp0ES.js} +5 -5
- package/dist/Dialog/index.js +3 -3
- package/dist/{Dialog-BN-NycQr.js → Dialog-C46xHdDO.js} +1 -1
- package/dist/{Dialog-Dt0gNuMT.js → Dialog-uzq24bX_.js} +2 -2
- package/dist/{DialogHeader-CSH2_5v-.js → DialogHeader-E0auaRKt.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-PeMgE4iA.js → Drawer-DfhhdBMZ.js} +2 -2
- package/dist/DropdownMenu/index.d.ts +2 -2
- package/dist/DropdownMenu/index.js +2 -3
- package/dist/{DropdownMenu-aYOIh9gZ.js → DropdownMenu-BWgt12MZ.js} +1083 -555
- package/dist/{DropdownMenuRadioItem.vue-C8rePTyz.d.ts → DropdownMenuRadioItem.vue-B4iwMWWD.d.ts} +16 -0
- package/dist/EmptyState/index.js +1 -1
- package/dist/{EmptyState-BGo1nrnT.js → EmptyState-C8WQltQk.js} +2 -2
- package/dist/Field/index.js +3 -3
- package/dist/{Field-D-fRqyso.js → Field-CrnwM-2A.js} +1 -1
- package/dist/{FieldInfoTip-Bstp5Lvd.js → FieldInfoTip-DqQP1T-d.js} +1 -1
- package/dist/{FieldLabel-lV_qLaGp.js → FieldLabel-CLxclKT2.js} +1 -1
- package/dist/FileInput/index.js +1 -1
- package/dist/{FileInput-CTNnDIkm.js → FileInput-BHFjo_zo.js} +3 -3
- package/dist/Heading/index.d.ts +1 -1
- package/dist/Heading/index.js +1 -1
- package/dist/{Heading-BFK3PftX.js → Heading-jYno4L3t.js} +1 -1
- package/dist/HoverCard/index.d.ts +1 -1
- package/dist/HoverCard/index.js +1 -1
- package/dist/{HoverCard-DGjsPn-Q.js → HoverCard-D_6idU4r.js} +4 -4
- package/dist/IconButton/index.js +1 -1
- package/dist/{IconButton-DPezhVBA.js → IconButton-B6m42AlL.js} +1 -1
- package/dist/InfoTip/index.d.ts +1 -1
- package/dist/InfoTip/index.js +1 -1
- package/dist/{InfoTip-B4BFfLtT.js → InfoTip-CUkTHca2.js} +2 -2
- package/dist/{InputClearButton-CxU3iv-5.js → InputClearButton-s_MEW25n.js} +1 -1
- package/dist/InputGroup/index.js +1 -1
- package/dist/{InputGroup-CraWGK6Y.js → InputGroup-42PbUmg-.js} +1 -1
- package/dist/InternationalizationProvider/index.js +1 -1
- package/dist/{InternationalizationProvider-C-hZoz8a.js → InternationalizationProvider-BAUKUK7N.js} +1 -1
- package/dist/{Item-C9u_kQUO.js → Item-C9Cs0Jqr.js} +1 -1
- package/dist/{LayerContentBoundary-LCQLyxBT.js → LayerContentBoundary-XvH9wmdg.js} +1 -1
- package/dist/Layout/index.d.ts +1 -1
- package/dist/Layout/index.js +2 -2
- package/dist/{Layout-094k14rN.js → Layout-tU7e1J1I.js} +1 -1
- package/dist/{LayoutPanel-BPboQAJj.js → LayoutPanel-D8t8F-sl.js} +22 -2
- package/dist/Lightbox/index.js +1 -1
- package/dist/{Lightbox-BNUG9CQ1.js → Lightbox-Bur4pvRo.js} +2 -2
- package/dist/Link/index.d.ts +1 -1
- package/dist/Link/index.js +1 -1
- package/dist/{Link-Bwgpn-di.js → Link-DVslj_GH.js} +2 -2
- package/dist/List/index.d.ts +1 -1
- package/dist/List/index.js +2 -2
- package/dist/{ListItem-_lOmngHp.js → ListItem-DOFfdRA_.js} +2 -2
- package/dist/Markdown/index.js +1 -1
- package/dist/{Markdown-BlEi5UGN.js → Markdown-Baq5r2Mp.js} +3 -3
- package/dist/MetadataList/index.d.ts +1 -1
- package/dist/MobileNav/index.js +1 -1
- package/dist/{MobileNavToggle-wVa9dzH1.js → MobileNavToggle-BV3fmVmO.js} +2 -2
- package/dist/MoreMenu/index.d.ts +1 -1
- package/dist/MoreMenu/index.js +1 -1
- package/dist/{MoreMenu-CXshllJj.js → MoreMenu-COSDjYyl.js} +45 -16
- package/dist/MultiSelector/index.d.ts +1 -1
- package/dist/MultiSelector/index.js +1 -1
- package/dist/{MultiSelector-Bs3Imw6k.js → MultiSelector-eJSx3iZR.js} +8 -8
- package/dist/{NavDisclosure-DsUYuMJr.js → NavDisclosure-B8G8t325.js} +1 -1
- package/dist/{NavHeadingSurface-QdM33nOf.js → NavHeadingSurface-BkNP_1au.js} +1 -1
- package/dist/NavItem/index.d.ts +1 -1
- package/dist/NavItem/index.js +1 -1
- package/dist/{NavItem-D4xHjSTo.js → NavItem-B7xpLk_x.js} +1 -1
- package/dist/NavMenu/index.js +3 -3
- package/dist/{NavMenu-NCg3VjAQ.js → NavMenu-C6OU4a5Z.js} +3 -3
- package/dist/{NavMenuItem-Bla6fYVl.js → NavMenuItem-BZuajqYL.js} +3 -3
- package/dist/NumberInput/index.d.ts +1 -1
- package/dist/NumberInput/index.js +1 -1
- package/dist/{NumberInput-DicgvFte.js → NumberInput-Dd4QQGZp.js} +3 -3
- package/dist/Outline/index.js +1 -1
- package/dist/{Outline-CnSt_KvS.js → Outline-coqRQ06s.js} +4 -3
- package/dist/OverflowList/index.d.ts +1 -1
- package/dist/OverflowList/index.js +1 -1
- package/dist/{OverflowList-BYYz3ePw.js → OverflowList-DS7cmNsr.js} +2 -2
- package/dist/Pagination/index.d.ts +1 -1
- package/dist/Pagination/index.js +1 -1
- package/dist/{Pagination-kJhH6sPF.js → Pagination-BWPJfO4_.js} +2 -2
- package/dist/Popover/index.d.ts +1 -1
- package/dist/Popover/index.js +1 -1
- package/dist/{Popover-CqL_AXQB.js → Popover-DnrZk22Y.js} +8 -8
- package/dist/PowerSearch/index.d.ts +1 -1
- package/dist/PowerSearch/index.js +1 -1
- package/dist/{PowerSearch-Ff2n7eJ2.js → PowerSearch-CDwASKYp.js} +27 -27
- package/dist/ProgressBar/index.d.ts +1 -1
- package/dist/ProgressBar/index.js +1 -1
- package/dist/{ProgressBar-DCAEXJuP.js → ProgressBar-C-HzrG8T.js} +1 -1
- package/dist/Radio/index.d.ts +1 -1
- package/dist/Radio/index.js +1 -1
- package/dist/{RadioGroup-CsJYGjyx.js → RadioGroup-B-AkUDI8.js} +4 -4
- package/dist/RadioList/index.d.ts +1 -1
- package/dist/RadioList/index.js +1 -1
- package/dist/{RadioListItem-Yc3K82YE.js → RadioListItem-DhmF7YNL.js} +1 -1
- package/dist/Resizable/index.d.ts +1 -1
- package/dist/Resizable/index.js +1 -1
- package/dist/{ResizeHandle-BMSbAFdP.js → ResizeHandle-CcS-NP4r.js} +21 -4
- package/dist/ScrollableArea/index.d.ts +1 -1
- package/dist/SegmentedControl/index.js +1 -1
- package/dist/{SegmentedControl-C-F5dkcG.js → SegmentedControl-BdbqWErg.js} +2 -2
- package/dist/SelectableCard/index.d.ts +1 -1
- package/dist/SelectableCard/index.js +1 -1
- package/dist/{SelectableCard-CwfpgsS8.js → SelectableCard-YzN6trLf.js} +1 -1
- package/dist/Selector/index.d.ts +1 -1
- package/dist/Selector/index.js +1 -1
- package/dist/{Selector-DgzSGUul.js → Selector-BNr_kb6Q.js} +6 -6
- package/dist/SideNav/index.d.ts +1 -1
- package/dist/SideNav/index.js +2 -2
- package/dist/{SideNav-DNQZ8l6b.js → SideNav-DnoR_4ml.js} +9 -11
- package/dist/Slider/index.js +1 -1
- package/dist/{Slider-Bq_7Nskr.js → Slider-DaHQhbA7.js} +2 -2
- package/dist/Stack/index.d.ts +1 -1
- package/dist/StatusDot/index.js +1 -1
- package/dist/{StatusDot-DFJavm30.js → StatusDot-B7T0et3H.js} +1 -1
- package/dist/Stepper/index.d.ts +1 -1
- package/dist/Stepper/index.js +1 -1
- package/dist/{Stepper-CWluGqBs.js → Stepper-C3ZFN-Gp.js} +1 -1
- package/dist/Switch/index.d.ts +1 -1
- package/dist/Switch/index.js +1 -1
- package/dist/{Switch-DTPvMAxd.js → Switch-B8HRxp3u.js} +2 -2
- package/dist/TabList/index.d.ts +1 -1
- package/dist/TabList/index.js +1 -1
- package/dist/{TabList-C4i7UZkp.js → TabList-BOQ0bvE3.js} +3 -3
- package/dist/Table/index.d.ts +2 -2
- package/dist/Table/index.js +1 -1
- package/dist/{Table-CqAV7l7W.js → Table-CoWGEhzQ.js} +13 -15
- package/dist/Text/index.d.ts +1 -1
- package/dist/Text/index.js +1 -1
- package/dist/{Text-D48QFTtL.js → Text-DqiV40AF.js} +1 -1
- package/dist/TextArea/index.d.ts +1 -1
- package/dist/TextArea/index.js +1 -1
- package/dist/{TextArea-J2_wct0p.js → TextArea-Vrx7Os5P.js} +4 -4
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/TextInput/index.js +1 -1
- package/dist/{TextInput-Da1TYd57.js → TextInput-DOeUROX8.js} +4 -4
- package/dist/Thumbnail/index.js +1 -1
- package/dist/{Thumbnail-1LsaJ4_m.js → Thumbnail-BF53Z6jm.js} +3 -3
- package/dist/{TimeField-ojhX2ZOj.js → TimeField-CkGXOHTG.js} +4 -4
- package/dist/TimeInput/index.d.ts +1 -1
- package/dist/TimeInput/index.js +1 -1
- package/dist/{TimeInput-CfeDP72M.js → TimeInput-DCksf1di.js} +2 -2
- package/dist/Timer/index.js +1 -1
- package/dist/{Timer-DgQdZAEa.js → Timer-DDrODKow.js} +1 -1
- package/dist/Timestamp/index.d.ts +1 -1
- package/dist/Timestamp/index.js +1 -1
- package/dist/{Timestamp-SseS_qtf.js → Timestamp-CCzREXNN.js} +3 -3
- package/dist/Toast/index.js +1 -1
- package/dist/{Toast-yUVFaZiJ.js → Toast-CoAEdN_I.js} +2 -2
- package/dist/ToggleButton/index.d.ts +1 -1
- package/dist/ToggleButton/index.js +1 -1
- package/dist/{ToggleButton-B6hBzeVl.js → ToggleButton-DAW-pV4r.js} +3 -3
- package/dist/Token/index.d.ts +1 -1
- package/dist/Token/index.js +1 -1
- package/dist/{Token-DTGUCgpn.js → Token-DZmmnHEj.js} +1 -1
- package/dist/Tokenizer/index.js +1 -1
- package/dist/{Tokenizer-nSEekhN1.js → Tokenizer-DsPtN6tZ.js} +13 -13
- package/dist/Toolbar/index.d.ts +2 -2
- package/dist/Tooltip/index.d.ts +1 -1
- package/dist/Tooltip/index.js +2 -2
- package/dist/{Tooltip-CxzlUVN0.js → Tooltip-DhV7MkwU.js} +1 -1
- package/dist/TopNav/index.d.ts +1 -1
- package/dist/TopNav/index.js +1 -1
- package/dist/{TopNav-CcIayfsW.js → TopNav-Djli-IEz.js} +5 -5
- package/dist/TreeList/index.d.ts +1 -1
- package/dist/TreeList/index.js +1 -1
- package/dist/{TreeList-CsgXzBdm.js → TreeList-CqJ3xfhB.js} +3 -4
- package/dist/Typeahead/index.js +2 -2
- package/dist/{Typeahead-BD6xXNKh.js → Typeahead-Dowds5Z-.js} +6 -6
- package/dist/{VelocityTracker-DgjmootV.js → VelocityTracker-DVbtTSXR.js} +1 -1
- package/dist/{useMenuDrillIn-CMsgOcDP.js → accessibleName-CINO01Ek.js} +117 -27
- package/dist/{animator-C0kqgDUJ.js → animator-DLWdws2R.js} +3 -2
- package/dist/{assertOptions-DHfonaBU.js → assertOptions-BCEzojGr.js} +1 -1
- package/dist/composables/index.d.ts +3 -3
- package/dist/composables/index.js +13 -13
- package/dist/{composables-CVvk9709.js → composables-B7FrCjk6.js} +11 -7
- package/dist/{context-ZWA02GaM.js → context-C_rX8KGX.js} +1 -2
- package/dist/cssValues-Cr6PhYTx.js +223 -0
- package/dist/{pressGesture-BzIBmKF2.js → gestures-C8VhWve7.js} +2 -296
- package/dist/{index-DH_xZI84.d.ts → index-B-Z4GL8g.d.ts} +2 -2
- package/dist/{index-DYabo8TI.d.ts → index-B44fLswd.d.ts} +2 -2
- package/dist/{index-etx25Eq-.d.ts → index-Bwh8O-v8.d.ts} +1 -1
- package/dist/{index-mK1ICsVg.d.ts → index-C3JmGujU.d.ts} +1 -1
- package/dist/{index-CKnr0JlT.d.ts → index-C4S65SAW.d.ts} +1 -1
- package/dist/{index-D05JGsT3.d.ts → index-C8wfe0Mr.d.ts} +1 -1
- package/dist/{index-DE-QPNz0.d.ts → index-C943VIzi.d.ts} +3 -2
- package/dist/{index-DVX2jlTQ.d.ts → index-CUuUoX3h.d.ts} +1 -1
- package/dist/{index-COgrQZIL.d.ts → index-CdvmnNMH.d.ts} +1 -1
- package/dist/{index-C_iTVOHQ.d.ts → index-CilCxEvD.d.ts} +1 -1
- package/dist/{index-BgT6mH3U.d.ts → index-D7ShT2c-.d.ts} +1 -1
- package/dist/{index-ZKBj_1nu.d.ts → index-D8l_CmL-.d.ts} +1 -1
- package/dist/{index-DbNGGCM0.d.ts → index-DAz4l6Jw.d.ts} +1 -1
- package/dist/{index-DtY_R6Oh.d.ts → index-DIkdln91.d.ts} +2 -2
- package/dist/{index-Bh-GqMzd.d.ts → index-DLE-sASO.d.ts} +31 -3
- package/dist/{index-Q1oG9yIT.d.ts → index-DPklTi3o.d.ts} +1 -1
- package/dist/{index-DofC9Rll.d.ts → index-Dk50Zh3F.d.ts} +2 -2
- package/dist/{index-CG6dbyeb.d.ts → index-DoYrlaEI.d.ts} +3 -3
- package/dist/{index-CuW4AQ7M.d.ts → index-In41wHf3.d.ts} +2 -2
- package/dist/{index-utZGF4GR.d.ts → index-NOXYEdOI.d.ts} +1 -1
- package/dist/{index-Dp6MmjIo.d.ts → index-Rz4jwv4Q.d.ts} +52 -52
- package/dist/{index-0RIgvtdm.d.ts → index-ZXrvTM3A.d.ts} +2 -2
- package/dist/{index-CEtFUoIm.d.ts → index-o3JHyrk8.d.ts} +1 -1
- package/dist/{index-CtYlR9Cu.d.ts → index-rdwI-mcm.d.ts} +1 -1
- package/dist/{index-C89cIh4E.d.ts → index-waTkqxTz.d.ts} +1 -1
- package/dist/index.d.ts +29 -29
- package/dist/index.js +110 -110
- package/dist/{batch-DPlrpYU6.js → landing-DrnLUanQ.js} +812 -4
- package/dist/{layerDepth-D3Rh8T5C.js → layerDepth-BdZX0xSD.js} +2 -2
- package/dist/lazyBottomSheet-BUXYsz28.js +25 -0
- package/dist/linearEasing-BxWjPql6.js +282 -0
- package/dist/locale/index.js +3 -3
- package/dist/{locale-CVpkedoa.js → locale-C9LWi1y1.js} +1 -1
- package/dist/{menuActivation-BqiaK6ot.js → menuActivation-BQqnzKAX.js} +8 -1
- package/dist/{pressFeedback-9dqGYjxv.js → pressFeedback-CPzGi_88.js} +2 -1
- package/dist/pressGesture-BV4fYPIG.js +103 -0
- package/dist/resizableChannel-BeoqCSou.js +387 -0
- package/dist/resolveMotion-BLdMNTpf.js +117 -0
- package/dist/resolveSnapPoint-DygD-wmL.js +110 -0
- package/dist/roles-CPMsH5Ob.js +196 -0
- package/dist/rubberBand-DecgmtDj.js +123 -0
- package/dist/{resolveSnapPoint-DdZyBkT4.js → springs-BR66JuIm.js} +2 -182
- package/dist/{stillPointerGate-BbMABRyU.js → stillPointerGate-BChxtcd6.js} +1 -1
- package/dist/{themeTiming-D1U0redl.js → themeTiming-BA_wpgEn.js} +1 -1
- package/dist/{tooltipFocusRules-CpUOvFEU.js → tooltipFocusRules-CU8eUu3v.js} +2 -2
- package/dist/{tooltipTriggerRules-zN2xGd9K.js → tooltipTriggerRules-CKfpQu9d.js} +1 -1
- package/dist/{useActionGroupTracking-CLFF7FI2.js → useActionGroupTracking-iv0p__dY.js} +3 -3
- package/dist/{useAnimatedLayout-DWWc31RR.js → useAnimatedLayout-B_mZd526.js} +1 -1
- package/dist/{useAttachment-BuNyeUXy.js → useAttachment-BohgLE3o.js} +3 -3
- package/dist/{useCombobox-BqkTY3bw.js → useCombobox-BYRrwLe-.js} +1 -1
- package/dist/{useDismiss-BKtyCwx4.js → useDismiss-Qq0hUJoO.js} +1 -1
- package/dist/{useFocusTrap-BD9POtMp.js → useFocusTrap-CX-qEF-G.js} +1 -1
- package/dist/{useInputStatusIcon-BqV6YzTV.js → useInputStatusIcon-CYvxaJvt.js} +1 -1
- package/dist/{useMenuPress-DcwVUsQO.js → useMenuPress-DDvcJNRd.js} +72 -5
- package/dist/{usePressFeedback-DHdmAsMp.js → usePressFeedback-BuyFZkQO.js} +1 -1
- package/dist/{useResizable-hv4NYIUi.js → useResizable-BIaZZDJ2.js} +411 -85
- package/dist/{useResizable-CJd4JkbJ.d.ts → useResizable-CKDaU_se.d.ts} +10 -8
- package/dist/{useTooltip-DvBKna-w.js → useTooltip-CgJi5QQW.js} +4 -4
- package/dist/{useTouchHitArea-SY1ITxSJ.js → useTouchHitArea-Dsz80HzY.js} +1 -1
- package/dist/{useTouchTriggerInternal-Bl602PtA.js → useTouchTriggerInternal-BapohoUw.js} +1 -1
- package/dist/{useTruncationTooltip-DNAii2Nv.js → useTruncationTooltip-x1cQd8of.js} +3 -3
- package/dist/{useTypeahead-BGpvWkzm.js → useTypeahead-CZuT8Niw.js} +1 -1
- package/dist/{useTypeaheadMenuConfig-BT9Lwsu7.js → useTypeaheadMenuConfig-BMd42XKb.js} +2 -2
- package/package.json +1 -1
- package/styles/dropdown-menu.css +5 -0
- package/styles/resize-handle.css +2 -0
- package/dist/DropdownMenu-B_KDdI8P.js +0 -489
- package/dist/edge-DFaE6rUg.js +0 -164
- package/dist/edgeRide-UdNxbwxY.js +0 -500
- package/dist/handle-CwxCHapJ.js +0 -22
- package/dist/landing-CSCE9afT.js +0 -105
- package/dist/lazyBottomSheet-CbU1Pnfk.js +0 -16
- package/dist/linearEasing-BiRVC8Mq.js +0 -98
- package/dist/resizableChannel-LElsNkSY.js +0 -33
- package/dist/resolveMotion-B9NDPeUz.js +0 -508
- package/dist/useSubmenuMode-CZN9qrUo.js +0 -37
- package/dist/{index-BqhgeAT4.d.ts → index-D8lv2BiD.d.ts} +1 -1
- package/dist/{loadCatalog-FwMzmCx1.js → loadCatalog-zJKVLZ89.js} +1 -1
package/package.json
CHANGED
package/styles/dropdown-menu.css
CHANGED
|
@@ -157,6 +157,11 @@
|
|
|
157
157
|
background-color: var(--astryx-dropdown-menu-hover-background, light-dark(#0536590c, #ffffff0c));
|
|
158
158
|
}
|
|
159
159
|
|
|
160
|
+
/* A row a held finger or pen lights paints as pressed; a held mouse keeps the hover tint. */
|
|
161
|
+
.astryx-dropdown-menu .astryx-item.astryx-dropdown-menu-item[data-astryx-menu-press-lit]:focus {
|
|
162
|
+
background-color: var(--astryx-dropdown-menu-pressed-background, light-dark(#05365919, #ffffff19));
|
|
163
|
+
}
|
|
164
|
+
|
|
160
165
|
.astryx-dropdown-menu .astryx-item.astryx-dropdown-menu-item[data-disabled='true'] {
|
|
161
166
|
cursor: default;
|
|
162
167
|
}
|
package/styles/resize-handle.css
CHANGED
|
@@ -1,489 +0,0 @@
|
|
|
1
|
-
import { t as _sfc_main$1 } from "./Icon-Dk0jccgU.js";
|
|
2
|
-
import { n as usePositionedLayer, t as useDismiss } from "./useDismiss-BKtyCwx4.js";
|
|
3
|
-
import { t as _sfc_main$2 } from "./LayerContentBoundary-LCQLyxBT.js";
|
|
4
|
-
import { a as isMenuPressActivation } from "./useMenuPress-DcwVUsQO.js";
|
|
5
|
-
import { t as useOverflow } from "./useOverflow-GU0pxGaU.js";
|
|
6
|
-
import { t as _sfc_main$3 } from "./Item-C9u_kQUO.js";
|
|
7
|
-
import { n as useDropdownMenuMessages, s as useDropdownMenuContext } from "./useMenuDrillIn-CMsgOcDP.js";
|
|
8
|
-
import { a as _sfc_main$5, c as _sfc_main$4, i as activateFocusedMenuItem, n as useMenuRegions, r as useMenuFocus } from "./DropdownMenu-aYOIh9gZ.js";
|
|
9
|
-
import { n as clampInlineSize, r as isIntrinsicInlineSize } from "./inlineSize-BNe8wggI.js";
|
|
10
|
-
import { t as _sfc_main$6 } from "./Spinner-DEVPDsD0.js";
|
|
11
|
-
import { t as useSubmenuMode } from "./useSubmenuMode-CZN9qrUo.js";
|
|
12
|
-
import { t as useMenuHover } from "./useMenuHover-DoBatZeD.js";
|
|
13
|
-
import { Fragment, Teleport, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createVNode, defineComponent, mergeProps, nextTick, normalizeClass, normalizeStyle, openBlock, ref, renderSlot, unref, useId, useSlots, vShow, watch, withCtx, withDirectives, withKeys, withModifiers } from "vue";
|
|
14
|
-
import "../styles/dropdown-menu.css";
|
|
15
|
-
//#region src/DropdownMenu/DropdownMenuSubMenu.vue
|
|
16
|
-
const _hoisted_1 = {
|
|
17
|
-
key: 0,
|
|
18
|
-
class: "astryx-dropdown-menu-spinner",
|
|
19
|
-
"aria-hidden": "true"
|
|
20
|
-
};
|
|
21
|
-
const _hoisted_2 = [
|
|
22
|
-
"role",
|
|
23
|
-
"aria-label",
|
|
24
|
-
"aria-labelledby",
|
|
25
|
-
"aria-modal",
|
|
26
|
-
"hidden"
|
|
27
|
-
];
|
|
28
|
-
const _hoisted_3 = ["aria-label", "aria-labelledby"];
|
|
29
|
-
const _hoisted_4 = [
|
|
30
|
-
"role",
|
|
31
|
-
"aria-label",
|
|
32
|
-
"aria-labelledby",
|
|
33
|
-
"aria-modal",
|
|
34
|
-
"data-overflow"
|
|
35
|
-
];
|
|
36
|
-
const _hoisted_5 = ["aria-label", "aria-labelledby"];
|
|
37
|
-
const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
38
|
-
name: "AstryxDropdownMenuSubMenu",
|
|
39
|
-
inheritAttrs: false,
|
|
40
|
-
__name: "DropdownMenuSubMenu",
|
|
41
|
-
props: {
|
|
42
|
-
label: {},
|
|
43
|
-
icon: {},
|
|
44
|
-
description: {},
|
|
45
|
-
isDisabled: {
|
|
46
|
-
type: Boolean,
|
|
47
|
-
default: false
|
|
48
|
-
},
|
|
49
|
-
hasSpinner: {
|
|
50
|
-
type: Boolean,
|
|
51
|
-
default: false
|
|
52
|
-
},
|
|
53
|
-
menuWidth: {},
|
|
54
|
-
presentation: { default: "adaptive" }
|
|
55
|
-
},
|
|
56
|
-
emits: ["openChange"],
|
|
57
|
-
setup(__props, { emit: __emit }) {
|
|
58
|
-
const props = __props;
|
|
59
|
-
const emit = __emit;
|
|
60
|
-
const slots = useSlots();
|
|
61
|
-
const messages = useDropdownMenuMessages();
|
|
62
|
-
const menu = useDropdownMenuContext();
|
|
63
|
-
const rowComponent = ref(null);
|
|
64
|
-
const rowRef = computed(() => rowComponent.value?.element ?? null);
|
|
65
|
-
const flyoutRef = ref(null);
|
|
66
|
-
const drillRef = ref(null);
|
|
67
|
-
const flyoutOpen = ref(false);
|
|
68
|
-
const viewId = useId();
|
|
69
|
-
const menuSize = computed(() => menu?.menuSize.value ?? "md");
|
|
70
|
-
const density = computed(() => menuSize.value === "sm" ? "compact" : "balanced");
|
|
71
|
-
const hasStart = computed(() => slots.icon != null || props.icon != null);
|
|
72
|
-
const hasRegions = computed(() => slots.header != null || slots.footer != null);
|
|
73
|
-
const headerRef = ref(null);
|
|
74
|
-
const footerRef = ref(null);
|
|
75
|
-
const regionMenuRef = ref(null);
|
|
76
|
-
function setHeader(el) {
|
|
77
|
-
headerRef.value = el ?? null;
|
|
78
|
-
}
|
|
79
|
-
function setFooter(el) {
|
|
80
|
-
footerRef.value = el ?? null;
|
|
81
|
-
}
|
|
82
|
-
function setRegionMenu(el) {
|
|
83
|
-
regionMenuRef.value = el ?? null;
|
|
84
|
-
}
|
|
85
|
-
const stringLabel = computed(() => typeof props.label === "string" && props.label !== "" ? props.label : void 0);
|
|
86
|
-
const hasNodeLabel = computed(() => stringLabel.value == null && slots.label != null);
|
|
87
|
-
const nodeLabelId = `astryx-dropdown-submenu-label-${useId()}`;
|
|
88
|
-
const nodeLabelText = ref();
|
|
89
|
-
const viewLabelledBy = computed(() => hasNodeLabel.value ? nodeLabelId : void 0);
|
|
90
|
-
function readNodeLabelText() {
|
|
91
|
-
const element = document.getElementById(nodeLabelId);
|
|
92
|
-
if (element == null) return void 0;
|
|
93
|
-
const copy = element.cloneNode(true);
|
|
94
|
-
for (const hidden of copy.querySelectorAll("[aria-hidden=\"true\"]")) hidden.remove();
|
|
95
|
-
return copy.textContent?.replace(/\s+/g, " ").trim() || void 0;
|
|
96
|
-
}
|
|
97
|
-
const focus = useMenuFocus({ list: flyoutRef });
|
|
98
|
-
const drillFocus = useMenuFocus({ list: drillRef });
|
|
99
|
-
const hasOverflow = useOverflow(flyoutRef, flyoutOpen);
|
|
100
|
-
/** Tab 循环里的「菜单」那一站:有头尾时是里层的 `role="menu"`,否则就是整个飞出层。 */
|
|
101
|
-
const menuStop = computed(() => hasRegions.value ? regionMenuRef.value : flyoutRef.value);
|
|
102
|
-
const regions = useMenuRegions({
|
|
103
|
-
header: headerRef,
|
|
104
|
-
footer: footerRef,
|
|
105
|
-
menu: menuStop,
|
|
106
|
-
hasRegions,
|
|
107
|
-
closeMenu: () => closeFlyout(true)
|
|
108
|
-
});
|
|
109
|
-
const mode = useSubmenuMode({
|
|
110
|
-
drillIn: computed(() => menu?.drillIn.value),
|
|
111
|
-
presentation: computed(() => props.presentation),
|
|
112
|
-
viewId
|
|
113
|
-
});
|
|
114
|
-
const isDrill = mode.isDrill;
|
|
115
|
-
const drillOnStack = mode.isOnStack;
|
|
116
|
-
const drillIsTop = mode.isTop;
|
|
117
|
-
const isShown = computed(() => isDrill.value ? drillOnStack.value : flyoutOpen.value);
|
|
118
|
-
watch(isShown, (shown) => {
|
|
119
|
-
if (shown && hasNodeLabel.value) nodeLabelText.value = readNodeLabelText();
|
|
120
|
-
});
|
|
121
|
-
const backLabel = computed(() => {
|
|
122
|
-
const parent = menu?.menuLabel.value;
|
|
123
|
-
return parent != null && parent !== "" ? messages.value.dropdownMenu.backTo(parent) : messages.value.dropdownMenu.back;
|
|
124
|
-
});
|
|
125
|
-
const { position, teleportTarget } = usePositionedLayer({
|
|
126
|
-
anchor: rowRef,
|
|
127
|
-
layer: flyoutRef,
|
|
128
|
-
isOpen: flyoutOpen,
|
|
129
|
-
placement: computed(() => "end"),
|
|
130
|
-
alignment: computed(() => "start"),
|
|
131
|
-
gap: 4
|
|
132
|
-
});
|
|
133
|
-
const flyoutStyle = computed(() => {
|
|
134
|
-
const style = {
|
|
135
|
-
top: `${position.value.top}px`,
|
|
136
|
-
left: `${position.value.left}px`,
|
|
137
|
-
zIndex: 1001
|
|
138
|
-
};
|
|
139
|
-
if (props.menuWidth == null) return style;
|
|
140
|
-
const width = (typeof props.menuWidth === "number" ? `${props.menuWidth}px` : props.menuWidth).trim();
|
|
141
|
-
if (isIntrinsicInlineSize(width)) style.width = width;
|
|
142
|
-
else style.minWidth = clampInlineSize(width);
|
|
143
|
-
return style;
|
|
144
|
-
});
|
|
145
|
-
const drillHost = computed(() => isDrill.value ? menu?.drillIn.value.host ?? null : null);
|
|
146
|
-
async function focusDrillFirst() {
|
|
147
|
-
await nextTick();
|
|
148
|
-
if (!drillFocus.focusFirst()) drillRef.value?.focus({ preventScroll: true });
|
|
149
|
-
}
|
|
150
|
-
async function openFlyout(options) {
|
|
151
|
-
if (props.isDisabled || menu?.isOpen.value === false) return;
|
|
152
|
-
const skipAutoFocus = options?.skipAutoFocus === true;
|
|
153
|
-
if (isDrill.value) {
|
|
154
|
-
const wasOpen = drillOnStack.value;
|
|
155
|
-
mode.openDrill();
|
|
156
|
-
if (!wasOpen) emit("openChange", true);
|
|
157
|
-
if (!skipAutoFocus) await focusDrillFirst();
|
|
158
|
-
return;
|
|
159
|
-
}
|
|
160
|
-
if (!flyoutOpen.value) emit("openChange", true);
|
|
161
|
-
flyoutOpen.value = true;
|
|
162
|
-
if (skipAutoFocus) return;
|
|
163
|
-
await nextTick();
|
|
164
|
-
focus.focusFirst();
|
|
165
|
-
}
|
|
166
|
-
/**
|
|
167
|
-
* 焦点回到触发行。行的 `focus()` 只会找里面的链接或按钮,子菜单这一行两者都没有,
|
|
168
|
-
* 所以直接聚焦行元素本身。
|
|
169
|
-
*/
|
|
170
|
-
function focusRowElement() {
|
|
171
|
-
rowRef.value?.focus();
|
|
172
|
-
nextTick(() => rowRef.value?.focus());
|
|
173
|
-
}
|
|
174
|
-
function closeFlyout(focusRow = true) {
|
|
175
|
-
if (isDrill.value) {
|
|
176
|
-
if (!mode.closeDrill()) return;
|
|
177
|
-
emit("openChange", false);
|
|
178
|
-
if (focusRow) focusRowElement();
|
|
179
|
-
return;
|
|
180
|
-
}
|
|
181
|
-
if (flyoutOpen.value) {
|
|
182
|
-
flyoutOpen.value = false;
|
|
183
|
-
emit("openChange", false);
|
|
184
|
-
}
|
|
185
|
-
if (focusRow) focusRowElement();
|
|
186
|
-
}
|
|
187
|
-
function onDrillKeydown(event) {
|
|
188
|
-
if (event.key === "Tab" && hasRegions.value) {
|
|
189
|
-
regions.moveDialogTab(event);
|
|
190
|
-
return;
|
|
191
|
-
}
|
|
192
|
-
if (event.key === "Tab" && menu?.hasRegions.value) {
|
|
193
|
-
event.preventDefault();
|
|
194
|
-
event.stopPropagation();
|
|
195
|
-
closeFlyout(false);
|
|
196
|
-
menu.moveDialogTab(event, true);
|
|
197
|
-
return;
|
|
198
|
-
}
|
|
199
|
-
if (event.key === "ArrowLeft" || event.key === "Escape") {
|
|
200
|
-
event.preventDefault();
|
|
201
|
-
event.stopPropagation();
|
|
202
|
-
closeFlyout(true);
|
|
203
|
-
return;
|
|
204
|
-
}
|
|
205
|
-
if (event.key === "Enter" || event.key === " ") {
|
|
206
|
-
event.preventDefault();
|
|
207
|
-
event.stopPropagation();
|
|
208
|
-
if (event.repeat) return;
|
|
209
|
-
activateFocusedMenuItem(event);
|
|
210
|
-
return;
|
|
211
|
-
}
|
|
212
|
-
event.stopPropagation();
|
|
213
|
-
drillFocus.handleKeyDown(event);
|
|
214
|
-
}
|
|
215
|
-
function onFlyoutKeydown(event) {
|
|
216
|
-
if (event.key === "Tab" && hasRegions.value) {
|
|
217
|
-
regions.moveDialogTab(event);
|
|
218
|
-
return;
|
|
219
|
-
}
|
|
220
|
-
if (event.key === "Tab" && menu?.hasRegions.value) {
|
|
221
|
-
event.preventDefault();
|
|
222
|
-
event.stopPropagation();
|
|
223
|
-
closeFlyout(false);
|
|
224
|
-
menu.moveDialogTab(event, true);
|
|
225
|
-
return;
|
|
226
|
-
}
|
|
227
|
-
if (event.key === "ArrowLeft" || event.key === "Escape") {
|
|
228
|
-
event.preventDefault();
|
|
229
|
-
event.stopPropagation();
|
|
230
|
-
closeFlyout(true);
|
|
231
|
-
return;
|
|
232
|
-
}
|
|
233
|
-
if (event.key === "Enter" || event.key === " ") {
|
|
234
|
-
event.preventDefault();
|
|
235
|
-
event.stopPropagation();
|
|
236
|
-
if (event.repeat) return;
|
|
237
|
-
activateFocusedMenuItem(event);
|
|
238
|
-
return;
|
|
239
|
-
}
|
|
240
|
-
event.stopPropagation();
|
|
241
|
-
focus.handleKeyDown(event);
|
|
242
|
-
}
|
|
243
|
-
const emptyDrill = {
|
|
244
|
-
host: null,
|
|
245
|
-
isCompactTouch: false,
|
|
246
|
-
pop: () => {},
|
|
247
|
-
push: () => {},
|
|
248
|
-
viewStack: []
|
|
249
|
-
};
|
|
250
|
-
const nestedContext = {
|
|
251
|
-
closeMenu: () => {
|
|
252
|
-
closeFlyout(false);
|
|
253
|
-
menu?.closeMenu();
|
|
254
|
-
},
|
|
255
|
-
drillIn: computed(() => menu?.drillIn.value ?? emptyDrill),
|
|
256
|
-
focusRegion: (direction) => menu?.focusRegion(direction) ?? false,
|
|
257
|
-
moveDialogTab: (event, fromFlyout) => menu?.moveDialogTab(event, fromFlyout),
|
|
258
|
-
hasRegions: computed(() => menu?.hasRegions.value ?? false),
|
|
259
|
-
isOpen: computed(() => (menu?.isOpen.value ?? true) && isShown.value),
|
|
260
|
-
menuLabel: computed(() => stringLabel.value ?? (hasNodeLabel.value ? nodeLabelText.value : void 0) ?? menu?.menuLabel.value),
|
|
261
|
-
menuSize
|
|
262
|
-
};
|
|
263
|
-
const hover = useMenuHover({
|
|
264
|
-
show: (options) => void openFlyout(options),
|
|
265
|
-
hide: () => {
|
|
266
|
-
if (hasRegions.value && flyoutRef.value?.contains(document.activeElement)) return;
|
|
267
|
-
closeFlyout(false);
|
|
268
|
-
},
|
|
269
|
-
isOpen: flyoutOpen,
|
|
270
|
-
isEnabled: () => !props.isDisabled && !isDrill.value,
|
|
271
|
-
flyoutRef,
|
|
272
|
-
ownsFocus: false
|
|
273
|
-
});
|
|
274
|
-
watch(rowRef, (element) => {
|
|
275
|
-
hover.setTriggerEl(element);
|
|
276
|
-
}, { immediate: true });
|
|
277
|
-
function onRowClick(event) {
|
|
278
|
-
if (isDrill.value) {
|
|
279
|
-
openFlyout({ skipAutoFocus: event.detail > 0 || isMenuPressActivation() });
|
|
280
|
-
return;
|
|
281
|
-
}
|
|
282
|
-
hover.triggerProps.onClick(event);
|
|
283
|
-
}
|
|
284
|
-
/**
|
|
285
|
-
* 关闭时焦点还留在面板里(Escape、外部关闭都会这样),就交还给触发行:
|
|
286
|
-
* 否则焦点会落进一个已经隐藏的容器。
|
|
287
|
-
*/
|
|
288
|
-
watch(flyoutOpen, (open, wasOpen) => {
|
|
289
|
-
if (open || !wasOpen) return;
|
|
290
|
-
if (isDrill.value) return;
|
|
291
|
-
const active = document.activeElement;
|
|
292
|
-
if (active instanceof Node && flyoutRef.value?.contains(active)) focusRowElement();
|
|
293
|
-
}, { flush: "pre" });
|
|
294
|
-
useDismiss({
|
|
295
|
-
container: flyoutRef,
|
|
296
|
-
trigger: rowRef,
|
|
297
|
-
isEnabled: computed(() => flyoutOpen.value && !isDrill.value),
|
|
298
|
-
onDismiss: () => closeFlyout(false),
|
|
299
|
-
onEscape: () => closeFlyout(true)
|
|
300
|
-
});
|
|
301
|
-
useDismiss({
|
|
302
|
-
container: drillRef,
|
|
303
|
-
isEnabled: drillIsTop,
|
|
304
|
-
onDismiss: () => {
|
|
305
|
-
if (drillIsTop.value) closeFlyout(true);
|
|
306
|
-
}
|
|
307
|
-
});
|
|
308
|
-
watch(() => menu?.isOpen.value, (open) => {
|
|
309
|
-
if (open) return;
|
|
310
|
-
hover.cancelPending();
|
|
311
|
-
if (!isDrill.value) closeFlyout(false);
|
|
312
|
-
});
|
|
313
|
-
watch(drillOnStack, (onStack, wasOnStack) => {
|
|
314
|
-
if (wasOnStack === true && !onStack && menu?.isOpen.value) focusRowElement();
|
|
315
|
-
});
|
|
316
|
-
return (_ctx, _cache) => {
|
|
317
|
-
return openBlock(), createElementBlock(Fragment, null, [createVNode(_sfc_main$3, mergeProps(_ctx.$attrs, {
|
|
318
|
-
ref_key: "rowComponent",
|
|
319
|
-
ref: rowComponent,
|
|
320
|
-
class: "astryx-dropdown-menu-item",
|
|
321
|
-
role: "menuitem",
|
|
322
|
-
"aria-haspopup": hasRegions.value ? "dialog" : "menu",
|
|
323
|
-
"aria-expanded": isShown.value,
|
|
324
|
-
"data-menu-size": menuSize.value,
|
|
325
|
-
"data-variant": "default",
|
|
326
|
-
density: density.value,
|
|
327
|
-
description: __props.description,
|
|
328
|
-
"is-disabled": __props.isDisabled,
|
|
329
|
-
label: __props.label,
|
|
330
|
-
tabindex: __props.isDisabled ? void 0 : -1,
|
|
331
|
-
"on-click": onRowClick,
|
|
332
|
-
onKeydown: [
|
|
333
|
-
_cache[0] || (_cache[0] = withKeys(withModifiers(($event) => openFlyout(), ["prevent", "stop"]), ["right"])),
|
|
334
|
-
_cache[1] || (_cache[1] = withKeys(withModifiers(($event) => openFlyout(), ["prevent", "stop"]), ["enter"])),
|
|
335
|
-
_cache[2] || (_cache[2] = withKeys(withModifiers(($event) => openFlyout(), ["prevent", "stop"]), ["space"]))
|
|
336
|
-
],
|
|
337
|
-
onMouseenter: unref(hover).triggerProps.onMouseenter,
|
|
338
|
-
onMouseleave: unref(hover).triggerProps.onMouseleave
|
|
339
|
-
}), createSlots({
|
|
340
|
-
endContent: withCtx(() => [__props.hasSpinner ? (openBlock(), createElementBlock("span", _hoisted_1, [createVNode(_sfc_main$6, { size: "sm" })])) : (openBlock(), createBlock(_sfc_main$1, {
|
|
341
|
-
key: 1,
|
|
342
|
-
color: "secondary",
|
|
343
|
-
icon: "chevronRight",
|
|
344
|
-
size: "sm"
|
|
345
|
-
}))]),
|
|
346
|
-
_: 2
|
|
347
|
-
}, [
|
|
348
|
-
hasStart.value ? {
|
|
349
|
-
name: "startContent",
|
|
350
|
-
fn: withCtx(() => [renderSlot(_ctx.$slots, "icon", {}, () => [createVNode(_sfc_main$1, {
|
|
351
|
-
color: "secondary",
|
|
352
|
-
icon: __props.icon,
|
|
353
|
-
size: "sm"
|
|
354
|
-
}, null, 8, ["icon"])])]),
|
|
355
|
-
key: "0"
|
|
356
|
-
} : void 0,
|
|
357
|
-
unref(slots).label ? {
|
|
358
|
-
name: "label",
|
|
359
|
-
fn: withCtx(() => [hasNodeLabel.value ? (openBlock(), createElementBlock("span", {
|
|
360
|
-
key: 0,
|
|
361
|
-
id: nodeLabelId
|
|
362
|
-
}, [renderSlot(_ctx.$slots, "label")])) : renderSlot(_ctx.$slots, "label", {}, void 0, void 0, 1)]),
|
|
363
|
-
key: "1"
|
|
364
|
-
} : void 0,
|
|
365
|
-
unref(slots).description ? {
|
|
366
|
-
name: "description",
|
|
367
|
-
fn: withCtx(() => [renderSlot(_ctx.$slots, "description")]),
|
|
368
|
-
key: "2"
|
|
369
|
-
} : void 0
|
|
370
|
-
]), 1040, [
|
|
371
|
-
"aria-haspopup",
|
|
372
|
-
"aria-expanded",
|
|
373
|
-
"data-menu-size",
|
|
374
|
-
"density",
|
|
375
|
-
"description",
|
|
376
|
-
"is-disabled",
|
|
377
|
-
"label",
|
|
378
|
-
"tabindex",
|
|
379
|
-
"onMouseenter",
|
|
380
|
-
"onMouseleave"
|
|
381
|
-
]), drillHost.value ? (openBlock(), createBlock(Teleport, {
|
|
382
|
-
key: 0,
|
|
383
|
-
to: drillHost.value
|
|
384
|
-
}, [createCommentVNode(" eslint-disable-next-line vue-a11y/no-static-element-interactions -- 键盘事件在面板根上接住再分发给头部、菜单和尾部,交互元素仍是里面的行和控件。 "), withDirectives(createElementVNode("div", {
|
|
385
|
-
ref_key: "drillRef",
|
|
386
|
-
ref: drillRef,
|
|
387
|
-
class: normalizeClass(["astryx-dropdown-menu-drill", { "is-frame": hasRegions.value }]),
|
|
388
|
-
role: hasRegions.value ? "dialog" : "menu",
|
|
389
|
-
"aria-label": stringLabel.value,
|
|
390
|
-
"aria-labelledby": viewLabelledBy.value,
|
|
391
|
-
"aria-modal": hasRegions.value ? "true" : void 0,
|
|
392
|
-
hidden: unref(drillIsTop) ? void 0 : true,
|
|
393
|
-
tabindex: "-1",
|
|
394
|
-
onKeydown: onDrillKeydown
|
|
395
|
-
}, [createVNode(_sfc_main$2, null, {
|
|
396
|
-
default: withCtx(() => [createVNode(_sfc_main$4, { value: nestedContext }, {
|
|
397
|
-
default: withCtx(() => [hasRegions.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
398
|
-
createElementVNode("div", {
|
|
399
|
-
ref: setHeader,
|
|
400
|
-
class: "astryx-dropdown-menu-region",
|
|
401
|
-
onKeydown: _cache[3] || (_cache[3] = (...args) => unref(regions).onRegionKeydown && unref(regions).onRegionKeydown(...args))
|
|
402
|
-
}, [renderSlot(_ctx.$slots, "header")], 544),
|
|
403
|
-
createElementVNode("div", {
|
|
404
|
-
ref: setRegionMenu,
|
|
405
|
-
class: "astryx-dropdown-menu-region-menu",
|
|
406
|
-
"aria-label": stringLabel.value,
|
|
407
|
-
"aria-labelledby": viewLabelledBy.value,
|
|
408
|
-
role: "menu",
|
|
409
|
-
tabindex: "-1"
|
|
410
|
-
}, [createVNode(_sfc_main$5, {
|
|
411
|
-
"has-close-on-select": false,
|
|
412
|
-
label: backLabel.value,
|
|
413
|
-
onClick: _cache[4] || (_cache[4] = ($event) => closeFlyout(true))
|
|
414
|
-
}, {
|
|
415
|
-
icon: withCtx(() => [createVNode(_sfc_main$1, {
|
|
416
|
-
color: "secondary",
|
|
417
|
-
icon: "chevronLeft",
|
|
418
|
-
size: "sm"
|
|
419
|
-
})]),
|
|
420
|
-
_: 1
|
|
421
|
-
}, 8, ["label"]), renderSlot(_ctx.$slots, "default")], 8, _hoisted_3),
|
|
422
|
-
createElementVNode("div", {
|
|
423
|
-
ref: setFooter,
|
|
424
|
-
class: "astryx-dropdown-menu-region",
|
|
425
|
-
onKeydown: _cache[5] || (_cache[5] = (...args) => unref(regions).onRegionKeydown && unref(regions).onRegionKeydown(...args))
|
|
426
|
-
}, [renderSlot(_ctx.$slots, "footer")], 544)
|
|
427
|
-
], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [createVNode(_sfc_main$5, {
|
|
428
|
-
"has-close-on-select": false,
|
|
429
|
-
label: backLabel.value,
|
|
430
|
-
onClick: _cache[6] || (_cache[6] = ($event) => closeFlyout(true))
|
|
431
|
-
}, {
|
|
432
|
-
icon: withCtx(() => [createVNode(_sfc_main$1, {
|
|
433
|
-
color: "secondary",
|
|
434
|
-
icon: "chevronLeft",
|
|
435
|
-
size: "sm"
|
|
436
|
-
})]),
|
|
437
|
-
_: 1
|
|
438
|
-
}, 8, ["label"]), renderSlot(_ctx.$slots, "default")], 64))]),
|
|
439
|
-
_: 3
|
|
440
|
-
})]),
|
|
441
|
-
_: 3
|
|
442
|
-
})], 42, _hoisted_2), [[vShow, unref(drillOnStack)]])], 8, ["to"])) : (openBlock(), createBlock(Teleport, {
|
|
443
|
-
key: 1,
|
|
444
|
-
to: unref(teleportTarget)
|
|
445
|
-
}, [createCommentVNode(" eslint-disable-next-line vue-a11y/no-static-element-interactions -- 键盘事件在面板根上接住再分发给头部、菜单和尾部,交互元素仍是里面的行和控件。 "), withDirectives(createElementVNode("div", {
|
|
446
|
-
ref_key: "flyoutRef",
|
|
447
|
-
ref: flyoutRef,
|
|
448
|
-
class: normalizeClass(["astryx-dropdown-menu astryx-dropdown-submenu", { "is-frame": hasRegions.value }]),
|
|
449
|
-
role: hasRegions.value ? "dialog" : "menu",
|
|
450
|
-
"aria-label": stringLabel.value,
|
|
451
|
-
"aria-labelledby": viewLabelledBy.value,
|
|
452
|
-
"aria-modal": hasRegions.value ? "true" : void 0,
|
|
453
|
-
"data-overflow": unref(hasOverflow) || void 0,
|
|
454
|
-
style: normalizeStyle(flyoutStyle.value),
|
|
455
|
-
tabindex: "-1",
|
|
456
|
-
onKeydown: onFlyoutKeydown,
|
|
457
|
-
onMouseenter: _cache[9] || (_cache[9] = (...args) => unref(hover).contentProps.onMouseenter && unref(hover).contentProps.onMouseenter(...args)),
|
|
458
|
-
onMouseleave: _cache[10] || (_cache[10] = (...args) => unref(hover).contentProps.onMouseleave && unref(hover).contentProps.onMouseleave(...args))
|
|
459
|
-
}, [createVNode(_sfc_main$2, null, {
|
|
460
|
-
default: withCtx(() => [createVNode(_sfc_main$4, { value: nestedContext }, {
|
|
461
|
-
default: withCtx(() => [hasRegions.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
462
|
-
createElementVNode("div", {
|
|
463
|
-
ref: setHeader,
|
|
464
|
-
class: "astryx-dropdown-menu-region",
|
|
465
|
-
onKeydown: _cache[7] || (_cache[7] = (...args) => unref(regions).onRegionKeydown && unref(regions).onRegionKeydown(...args))
|
|
466
|
-
}, [renderSlot(_ctx.$slots, "header")], 544),
|
|
467
|
-
createElementVNode("div", {
|
|
468
|
-
ref: setRegionMenu,
|
|
469
|
-
class: "astryx-dropdown-menu-region-menu",
|
|
470
|
-
"aria-label": stringLabel.value,
|
|
471
|
-
"aria-labelledby": viewLabelledBy.value,
|
|
472
|
-
role: "menu",
|
|
473
|
-
tabindex: "-1"
|
|
474
|
-
}, [renderSlot(_ctx.$slots, "default")], 8, _hoisted_5),
|
|
475
|
-
createElementVNode("div", {
|
|
476
|
-
ref: setFooter,
|
|
477
|
-
class: "astryx-dropdown-menu-region",
|
|
478
|
-
onKeydown: _cache[8] || (_cache[8] = (...args) => unref(regions).onRegionKeydown && unref(regions).onRegionKeydown(...args))
|
|
479
|
-
}, [renderSlot(_ctx.$slots, "footer")], 544)
|
|
480
|
-
], 64)) : renderSlot(_ctx.$slots, "default", {}, void 0, void 0, 1)]),
|
|
481
|
-
_: 3
|
|
482
|
-
})]),
|
|
483
|
-
_: 3
|
|
484
|
-
})], 46, _hoisted_4), [[vShow, flyoutOpen.value]])], 8, ["to"]))], 64);
|
|
485
|
-
};
|
|
486
|
-
}
|
|
487
|
-
});
|
|
488
|
-
//#endregion
|
|
489
|
-
export { _sfc_main as t };
|
package/dist/edge-DFaE6rUg.js
DELETED
|
@@ -1,164 +0,0 @@
|
|
|
1
|
-
import { C as ownScaleOf, D as glides, T as visibleRect, f as round, o as bandFor, u as takesPart, w as scaleOf } from "./batch-DPlrpYU6.js";
|
|
2
|
-
//#region src/motion/layout/edge.ts
|
|
3
|
-
/** Whether `element` lays its inline axis out right to left. */
|
|
4
|
-
function isRtl(element) {
|
|
5
|
-
return element.ownerDocument.defaultView?.getComputedStyle(element).direction === "rtl";
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* The `clip-path` that hides `side` of an element from `edge`: `inset()`'s
|
|
9
|
-
* sides are physical (top, right, bottom, left), so an inline edge is
|
|
10
|
-
* mirrored right to left. `zero` is how the other three are written.
|
|
11
|
-
*/
|
|
12
|
-
function edgeClip(edge, side, zero, rtl) {
|
|
13
|
-
const sides = [
|
|
14
|
-
zero,
|
|
15
|
-
zero,
|
|
16
|
-
zero,
|
|
17
|
-
zero
|
|
18
|
-
];
|
|
19
|
-
const index = edge === "block-start" ? 0 : edge === "block-end" ? 2 : edge === "inline-end" !== rtl ? 1 : 3;
|
|
20
|
-
sides[index] = side;
|
|
21
|
-
return `inset(${sides.join(" ")})`;
|
|
22
|
-
}
|
|
23
|
-
/** A hidden fraction of the element, as a percentage clip on `edge`. */
|
|
24
|
-
function fractionClip(edge, hidden, rtl) {
|
|
25
|
-
return edgeClip(edge, `${round(hidden * 100)}%`, "0", rtl);
|
|
26
|
-
}
|
|
27
|
-
/** A hidden length of the element, in its own px, as a clip on `edge`. */
|
|
28
|
-
function pxClip(edge, hidden, rtl) {
|
|
29
|
-
return edgeClip(edge, `${hidden}px`, "0px", rtl);
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* The element's size along `edge`'s axis, in its own px (a scaled ancestor
|
|
33
|
-
* divided out), read from the layout the caller already laid out.
|
|
34
|
-
*/
|
|
35
|
-
function extentOf(element, edge) {
|
|
36
|
-
const rect = element.getBoundingClientRect();
|
|
37
|
-
const scale = scaleOf(element, rect);
|
|
38
|
-
return edge.startsWith("inline") ? rect.width / scale.x : rect.height / scale.y;
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* The parts that slide inside an element revealed or concealed from a block
|
|
42
|
-
* edge by `extent` px. They are its child elements that the band can show:
|
|
43
|
-
* the area's visible part plus one viewport, or `extent` if larger, above and
|
|
44
|
-
* below. A part past the band cannot come into view while it moves, so it
|
|
45
|
-
* stays. The walk stops at the first child below the band, so its cost grows
|
|
46
|
-
* with the changed size, never with the length of a list. A translation
|
|
47
|
-
* cannot move text on its own, so an element with text of its own keeps the
|
|
48
|
-
* clip (null).
|
|
49
|
-
*/
|
|
50
|
-
function slidingParts(element, edge, area, extent) {
|
|
51
|
-
if (!edge.startsWith("block") || !(extent > 0)) return null;
|
|
52
|
-
const view = element.ownerDocument.defaultView;
|
|
53
|
-
const style = view?.getComputedStyle(element);
|
|
54
|
-
if (view == null || style == null || paintsOwnBox(style) || ["::before", "::after"].some((pseudo) => {
|
|
55
|
-
const { content } = view.getComputedStyle(element, pseudo);
|
|
56
|
-
return content !== "" && content !== "none" && content !== "normal";
|
|
57
|
-
})) return null;
|
|
58
|
-
const visible = visibleRect(area);
|
|
59
|
-
const band = bandFor(visible, Math.max(view.innerHeight, extent));
|
|
60
|
-
const parts = [];
|
|
61
|
-
const scales = [];
|
|
62
|
-
for (let node = element.firstChild; node != null; node = node.nextSibling) {
|
|
63
|
-
if (node.nodeType === Node.TEXT_NODE) {
|
|
64
|
-
if ((node.textContent ?? "").trim() !== "") return null;
|
|
65
|
-
continue;
|
|
66
|
-
}
|
|
67
|
-
if (node.nodeType !== Node.ELEMENT_NODE) continue;
|
|
68
|
-
const { display } = view.getComputedStyle(node);
|
|
69
|
-
if (display === "inline" || display === "contents") return null;
|
|
70
|
-
const box = node.getBoundingClientRect();
|
|
71
|
-
if (box.top > band.end) break;
|
|
72
|
-
if (box.bottom >= band.start) {
|
|
73
|
-
if (glides.has(node)) return null;
|
|
74
|
-
parts.push(node);
|
|
75
|
-
scales.push(scaleOf(node, box, ownScaleOf(node)));
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
if (parts.length === 0) return null;
|
|
79
|
-
const inner = (side) => (Number.parseFloat(style.getPropertyValue(`border-${side}-width`)) || 0) + (Number.parseFloat(style.getPropertyValue(`padding-${side}`)) || 0);
|
|
80
|
-
return {
|
|
81
|
-
parts,
|
|
82
|
-
scales,
|
|
83
|
-
clip: edge === "block-end" ? `inset(${inner("top")}px 0px 0px 0px)` : `inset(0px 0px ${inner("bottom")}px 0px)`
|
|
84
|
-
};
|
|
85
|
-
}
|
|
86
|
-
/**
|
|
87
|
-
* Whether a style paints a box of its own: a fill, a border, a shadow, an
|
|
88
|
-
* outline or a filter.
|
|
89
|
-
*/
|
|
90
|
-
function paintsOwnBox(style) {
|
|
91
|
-
const isClear = (color) => color === "" || color === "transparent" || /^rgba\(.*,\s*0\)$/.test(color);
|
|
92
|
-
return !isClear(style.backgroundColor) || style.backgroundImage !== "" && style.backgroundImage !== "none" || [
|
|
93
|
-
"Top",
|
|
94
|
-
"Right",
|
|
95
|
-
"Bottom",
|
|
96
|
-
"Left"
|
|
97
|
-
].some((side) => style.getPropertyValue(`border-${side.toLowerCase()}-style`) !== "none" && Number.parseFloat(style.getPropertyValue(`border-${side.toLowerCase()}-width`)) > 0) || style.boxShadow !== "" && style.boxShadow !== "none" || style.borderImageSource !== "" && style.borderImageSource !== "none" || style.filter !== "" && style.filter !== "none" || style.outlineStyle !== "" && style.outlineStyle !== "none" && Number.parseFloat(style.outlineWidth) > 0;
|
|
98
|
-
}
|
|
99
|
-
/**
|
|
100
|
-
* Where the parts sit when the element hides `hidden` px from `edge`. They
|
|
101
|
-
* move that far towards it, so their far edge meets the content that rides
|
|
102
|
-
* the same edge.
|
|
103
|
-
*/
|
|
104
|
-
function slideFrame(edge, hidden) {
|
|
105
|
-
return { translate: `0px ${edge === "block-end" ? -hidden : hidden}px` };
|
|
106
|
-
}
|
|
107
|
-
/**
|
|
108
|
-
* Clips `element` with `clip` while its parts slide, and returns what puts
|
|
109
|
-
* its own `clip-path` back. The clip does not move, so it stays in step with
|
|
110
|
-
* the parts and the content beside them on every engine.
|
|
111
|
-
*/
|
|
112
|
-
function holdSlideClip(element, clip) {
|
|
113
|
-
const { style } = element;
|
|
114
|
-
const value = style.getPropertyValue("clip-path");
|
|
115
|
-
const priority = style.getPropertyPriority("clip-path");
|
|
116
|
-
style.setProperty("clip-path", clip);
|
|
117
|
-
return () => {
|
|
118
|
-
if (value === "") style.removeProperty("clip-path");
|
|
119
|
-
else style.setProperty("clip-path", value, priority);
|
|
120
|
-
};
|
|
121
|
-
}
|
|
122
|
-
/**
|
|
123
|
-
* The last element before `element` in the area that takes part in layout:
|
|
124
|
-
* its previous sibling, or its nearest ancestor's below the area (the mirror
|
|
125
|
-
* of `nextInFlow`, for a start edge).
|
|
126
|
-
*/
|
|
127
|
-
function previousInFlow(element, area) {
|
|
128
|
-
const view = element.ownerDocument.defaultView;
|
|
129
|
-
const lastBox = (from) => {
|
|
130
|
-
const style = view?.getComputedStyle(from);
|
|
131
|
-
if (style == null) return from;
|
|
132
|
-
if (style.display === "contents") {
|
|
133
|
-
for (let child = from.lastElementChild; child != null; child = child.previousElementSibling) {
|
|
134
|
-
const box = lastBox(child);
|
|
135
|
-
if (box != null) return box;
|
|
136
|
-
}
|
|
137
|
-
return null;
|
|
138
|
-
}
|
|
139
|
-
return takesPart(from, style) ? from : null;
|
|
140
|
-
};
|
|
141
|
-
let node = element;
|
|
142
|
-
while (node != null && node !== area) {
|
|
143
|
-
for (let sibling = node.previousElementSibling; sibling != null; sibling = sibling.previousElementSibling) {
|
|
144
|
-
const box = lastBox(sibling);
|
|
145
|
-
if (box != null) return box;
|
|
146
|
-
}
|
|
147
|
-
node = node.parentElement;
|
|
148
|
-
}
|
|
149
|
-
return null;
|
|
150
|
-
}
|
|
151
|
-
/**
|
|
152
|
-
* The glide that moves `neighbour`: its own, or that of its nearest gliding
|
|
153
|
-
* ancestor below the area that does not also hold `element` (one that holds
|
|
154
|
-
* both moves the two together, so the edge does not ride it).
|
|
155
|
-
*/
|
|
156
|
-
function glideMoving(neighbour, element, area) {
|
|
157
|
-
for (let node = neighbour; node != null && node !== area && !node.contains(element); node = node.parentElement) {
|
|
158
|
-
const glide = glides.get(node);
|
|
159
|
-
if (glide != null) return glide;
|
|
160
|
-
}
|
|
161
|
-
return null;
|
|
162
|
-
}
|
|
163
|
-
//#endregion
|
|
164
|
-
export { isRtl as a, slideFrame as c, holdSlideClip as i, slidingParts as l, fractionClip as n, previousInFlow as o, glideMoving as r, pxClip as s, extentOf as t };
|