@astryx-vue/core 0.31.0 → 0.32.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AlertDialog/index.js +1 -1
- package/dist/{AlertDialog-CvNtu0Jd.js → AlertDialog-C5pc5nQN.js} +4 -4
- package/dist/AppShell/index.d.ts +1 -1
- package/dist/AppShell/index.js +1 -1
- package/dist/{AppShell-BmX6wqba.js → AppShell-B7dkDyY8.js} +1 -1
- package/dist/Avatar/index.js +1 -1
- package/dist/{Avatar-IVvsyeGV.js → Avatar-CYW9ZTD3.js} +1 -1
- package/dist/AvatarGroup/index.d.ts +1 -1
- package/dist/Banner/index.d.ts +1 -1
- package/dist/Banner/index.js +1 -1
- package/dist/{Banner-DKmvoMxD.js → Banner-BNrs2Ptl.js} +1 -1
- package/dist/BottomSheet/index.d.ts +1 -1
- package/dist/BottomSheet/index.js +2 -2
- package/dist/{BottomSheet-B8_znPYE.js → BottomSheet-CAJJ8cR5.js} +3 -3
- package/dist/{BottomSheet-BZ_yFoKC.js → BottomSheet-Z92IvLBU.js} +2 -2
- package/dist/Breadcrumbs/index.d.ts +2 -2
- package/dist/Breadcrumbs/index.js +2 -2
- package/dist/{Breadcrumbs-CJpvbZsf.js → Breadcrumbs-CnvaPn8M.js} +1 -1
- package/dist/Button/index.d.ts +1 -1
- package/dist/Button/index.js +1 -1
- package/dist/{Button-DdPty46q.js → Button-CzMWqCpJ.js} +2 -2
- package/dist/ButtonGroup/index.d.ts +1 -1
- 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-BNr79JpP.js → Carousel-BjyedZ0Y.js} +1 -1
- package/dist/Chat/index.d.ts +1 -1
- package/dist/Chat/index.js +1 -1
- package/dist/{Chat-BadS0fEx.js → Chat-CJr2RIyc.js} +11 -11
- package/dist/CheckboxInput/index.d.ts +1 -1
- package/dist/CheckboxInput/index.js +1 -1
- package/dist/{CheckboxInput-CzP8gP3v.js → CheckboxInput-BrbQTrL-.js} +1 -1
- package/dist/CheckboxList/index.d.ts +1 -1
- package/dist/CheckboxList/index.js +1 -1
- package/dist/{CheckboxListItem-CxBjpX3d.js → CheckboxListItem-CrAzFR4x.js} +3 -3
- package/dist/ClickableCard/index.d.ts +1 -1
- package/dist/Code/index.d.ts +1 -1
- package/dist/Code/index.js +1 -1
- package/dist/{CodeBlock-Cgm4uOhG.js → CodeBlock-pWPw1-iu.js} +1 -1
- package/dist/Collapsible/index.d.ts +1 -1
- package/dist/CommandPalette/index.d.ts +1 -1
- package/dist/CommandPalette/index.js +1 -1
- package/dist/{CommandPalette-BgVwGtdA.js → CommandPalette-DnbvnT4c.js} +1 -1
- package/dist/ComplexSelector/index.d.ts +1 -1
- package/dist/ComplexSelector/index.js +1 -1
- package/dist/{ComplexSelector-vna5wtig.js → ComplexSelector-DWQbuovE.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-DfoShDVW.js} +167 -142
- package/dist/DateInput/index.d.ts +1 -1
- package/dist/DateInput/index.js +1 -1
- package/dist/{DateInput-BCasoeIj.js → DateInput-D9_QsZMj.js} +10 -10
- package/dist/DateRangeInput/index.d.ts +1 -1
- package/dist/DateRangeInput/index.js +1 -1
- package/dist/{DateRangeInput-Bi97pjDX.js → DateRangeInput-8P8i8aVI.js} +5 -5
- package/dist/DateTimeInput/index.d.ts +1 -1
- package/dist/DateTimeInput/index.js +1 -1
- package/dist/{DateTimeInput-CKnvjLhi.js → DateTimeInput-C2XWslHp.js} +5 -5
- package/dist/Dialog/index.d.ts +1 -1
- package/dist/Dialog/index.js +3 -3
- package/dist/{Dialog-Dt0gNuMT.js → Dialog-B1Hlr0x_.js} +2 -2
- package/dist/{Dialog-BN-NycQr.js → Dialog-Cet6PTnf.js} +1 -1
- package/dist/{DialogHeader-CSH2_5v-.js → DialogHeader-BiHQct4G.js} +2 -2
- package/dist/Drawer/index.d.ts +1 -1
- package/dist/Drawer/index.js +1 -1
- package/dist/{Drawer-PeMgE4iA.js → Drawer-Bm3l7Dey.js} +2 -2
- package/dist/DropdownMenu/index.d.ts +2 -2
- package/dist/DropdownMenu/index.js +2 -3
- package/dist/{DropdownMenu-aYOIh9gZ.js → DropdownMenu-BaRXEFLa.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-CXDlpIdI.js} +2 -2
- package/dist/Field/index.js +3 -3
- package/dist/{Field-D-fRqyso.js → Field-njr7AUcW.js} +1 -1
- package/dist/{FieldInfoTip-Bstp5Lvd.js → FieldInfoTip-DLqZykVm.js} +1 -1
- package/dist/{FieldLabel-lV_qLaGp.js → FieldLabel-CyL5D1lu.js} +1 -1
- package/dist/FileInput/index.d.ts +1 -1
- package/dist/FileInput/index.js +1 -1
- package/dist/{FileInput-CTNnDIkm.js → FileInput-CtqZSRdh.js} +3 -3
- package/dist/Heading/index.js +1 -1
- package/dist/{Heading-BFK3PftX.js → Heading-BXTbW_px.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-zVUEeqF2.js} +4 -4
- package/dist/IconButton/index.js +1 -1
- package/dist/{IconButton-DPezhVBA.js → IconButton-CoZFp0CP.js} +1 -1
- package/dist/InfoTip/index.d.ts +1 -1
- package/dist/InfoTip/index.js +1 -1
- package/dist/{InfoTip-B4BFfLtT.js → InfoTip-Eg2IGZJw.js} +1 -1
- package/dist/{InputClearButton-CxU3iv-5.js → InputClearButton-CBsL91my.js} +1 -1
- package/dist/InputGroup/index.d.ts +1 -1
- package/dist/InputGroup/index.js +1 -1
- package/dist/{InputGroup-CraWGK6Y.js → InputGroup-BE83-MCX.js} +1 -1
- package/dist/InternationalizationProvider/index.js +1 -1
- package/dist/{InternationalizationProvider-C-hZoz8a.js → InternationalizationProvider-BAUKUK7N.js} +1 -1
- package/dist/{LayerContentBoundary-LCQLyxBT.js → LayerContentBoundary-DmRI6Bg0.js} +1 -1
- package/dist/Lightbox/index.js +1 -1
- package/dist/{Lightbox-BNUG9CQ1.js → Lightbox-5PtYb0r4.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-BzXVGE7G.js} +1 -1
- package/dist/List/index.d.ts +1 -1
- package/dist/Markdown/index.d.ts +1 -1
- package/dist/Markdown/index.js +1 -1
- package/dist/{Markdown-BlEi5UGN.js → Markdown-HDZPj9Vw.js} +3 -3
- package/dist/MobileNav/index.js +1 -1
- package/dist/{MobileNavToggle-wVa9dzH1.js → MobileNavToggle-CrUf5UPQ.js} +2 -2
- package/dist/MoreMenu/index.d.ts +1 -1
- package/dist/MoreMenu/index.js +1 -1
- package/dist/{MoreMenu-CXshllJj.js → MoreMenu-DzpufGyj.js} +44 -15
- package/dist/MultiSelector/index.d.ts +1 -1
- package/dist/MultiSelector/index.js +1 -1
- package/dist/{MultiSelector-Bs3Imw6k.js → MultiSelector-BS6wxlx4.js} +7 -7
- package/dist/{NavDisclosure-DsUYuMJr.js → NavDisclosure-BM0dJGLA.js} +1 -1
- package/dist/{NavHeadingSurface-QdM33nOf.js → NavHeadingSurface-CuQnoV_V.js} +1 -1
- package/dist/NavItem/index.d.ts +1 -1
- package/dist/NavMenu/index.js +3 -3
- package/dist/{NavMenu-NCg3VjAQ.js → NavMenu-fXsoJKjW.js} +3 -3
- package/dist/{NavMenuItem-Bla6fYVl.js → NavMenuItem-BKY6eRkz.js} +2 -2
- package/dist/NumberInput/index.d.ts +1 -1
- package/dist/NumberInput/index.js +1 -1
- package/dist/{NumberInput-DicgvFte.js → NumberInput-Ueted2wi.js} +3 -3
- package/dist/OverflowList/index.d.ts +1 -1
- package/dist/OverflowList/index.js +1 -1
- package/dist/{OverflowList-BYYz3ePw.js → OverflowList-KpebInhH.js} +2 -2
- package/dist/Overlay/index.d.ts +1 -1
- package/dist/Pagination/index.d.ts +1 -1
- package/dist/Pagination/index.js +1 -1
- package/dist/{Pagination-kJhH6sPF.js → Pagination-BliQ5RGN.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-DXfXGrWG.js} +6 -6
- package/dist/PowerSearch/index.d.ts +1 -1
- package/dist/PowerSearch/index.js +1 -1
- package/dist/{PowerSearch-Ff2n7eJ2.js → PowerSearch-CmJKFEEu.js} +25 -25
- package/dist/ProgressBar/index.d.ts +1 -1
- package/dist/ProgressBar/index.js +1 -1
- package/dist/{ProgressBar-DCAEXJuP.js → ProgressBar-Dj1ucJxG.js} +1 -1
- package/dist/Radio/index.d.ts +1 -1
- package/dist/Radio/index.js +1 -1
- package/dist/{RadioGroup-CsJYGjyx.js → RadioGroup-BLOjBRrM.js} +2 -2
- package/dist/RadioList/index.d.ts +1 -1
- package/dist/RadioList/index.js +1 -1
- package/dist/{RadioListItem-Yc3K82YE.js → RadioListItem-CHxTpBva.js} +1 -1
- package/dist/ScrollableArea/index.d.ts +1 -1
- package/dist/SelectableCard/index.d.ts +1 -1
- package/dist/Selector/index.d.ts +1 -1
- package/dist/Selector/index.js +1 -1
- package/dist/{Selector-DgzSGUul.js → Selector-OhIdsI8A.js} +6 -6
- package/dist/SideNav/index.d.ts +1 -1
- package/dist/SideNav/index.js +1 -1
- package/dist/{SideNav-DNQZ8l6b.js → SideNav-CcdDU-hP.js} +5 -5
- package/dist/Slider/index.js +1 -1
- package/dist/{Slider-Bq_7Nskr.js → Slider-DjbWQ1wn.js} +1 -1
- package/dist/StatusDot/index.js +1 -1
- package/dist/{StatusDot-DFJavm30.js → StatusDot-Bta_bpaZ.js} +1 -1
- package/dist/Stepper/index.d.ts +1 -1
- package/dist/Switch/index.d.ts +1 -1
- package/dist/Switch/index.js +1 -1
- package/dist/{Switch-DTPvMAxd.js → Switch-D4ojsj_l.js} +1 -1
- package/dist/TabList/index.d.ts +1 -1
- package/dist/TabList/index.js +1 -1
- package/dist/{TabList-C4i7UZkp.js → TabList-S99zXoRN.js} +2 -2
- package/dist/Table/index.d.ts +1 -1
- package/dist/Table/index.js +1 -1
- package/dist/{Table-CqAV7l7W.js → Table-3NTjPpHc.js} +12 -12
- package/dist/Text/index.js +1 -1
- package/dist/{Text-D48QFTtL.js → Text-DNKNlENe.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-DnSmL0A8.js} +4 -4
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/TextInput/index.js +1 -1
- package/dist/{TextInput-Da1TYd57.js → TextInput-DyHEMYld.js} +4 -4
- package/dist/Thumbnail/index.js +1 -1
- package/dist/{Thumbnail-1LsaJ4_m.js → Thumbnail-D8GlIdNm.js} +2 -2
- package/dist/{TimeField-ojhX2ZOj.js → TimeField-ADeT0OA1.js} +4 -4
- package/dist/TimeInput/index.d.ts +1 -1
- package/dist/TimeInput/index.js +1 -1
- package/dist/{TimeInput-CfeDP72M.js → TimeInput-C1gzJGHk.js} +2 -2
- package/dist/Timer/index.js +1 -1
- package/dist/{Timer-DgQdZAEa.js → Timer-DhI2oV5L.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-CTZSVsmd.js} +3 -3
- package/dist/Toast/index.js +1 -1
- package/dist/{Toast-yUVFaZiJ.js → Toast-DUqDW07c.js} +1 -1
- package/dist/ToggleButton/index.d.ts +1 -1
- package/dist/ToggleButton/index.js +1 -1
- package/dist/{ToggleButton-B6hBzeVl.js → ToggleButton-BMBH2tmu.js} +1 -1
- package/dist/Token/index.d.ts +1 -1
- package/dist/Tokenizer/index.d.ts +1 -1
- package/dist/Tokenizer/index.js +1 -1
- package/dist/{Tokenizer-nSEekhN1.js → Tokenizer-C0CdEzQT.js} +12 -12
- 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-CxzlUVN0.js → Tooltip-CEyd_iFa.js} +1 -1
- package/dist/TopNav/index.d.ts +1 -1
- package/dist/TopNav/index.js +1 -1
- package/dist/{TopNav-CcIayfsW.js → TopNav-BObecD_X.js} +4 -4
- package/dist/Typeahead/index.d.ts +1 -1
- package/dist/Typeahead/index.js +2 -2
- package/dist/{Typeahead-BD6xXNKh.js → Typeahead-C_0dTmaf.js} +5 -5
- package/dist/{useMenuDrillIn-CMsgOcDP.js → accessibleName-Cq7krRE-.js} +116 -26
- package/dist/{assertOptions-DHfonaBU.js → assertOptions-Km_9Y5rI.js} +1 -1
- package/dist/composables/index.d.ts +2 -2
- package/dist/composables/index.js +11 -11
- package/dist/{composables-CVvk9709.js → composables-kHI1dSq2.js} +2 -2
- package/dist/{index-Dp6MmjIo.d.ts → index-4m5X7IYX.d.ts} +92 -92
- package/dist/{index-DtY_R6Oh.d.ts → index-B83v2qNb.d.ts} +3 -3
- package/dist/{index-BuubzuE8.d.ts → index-BDZCJ9ri.d.ts} +2 -2
- package/dist/{index-C_iTVOHQ.d.ts → index-BIiG1CF_.d.ts} +4 -4
- package/dist/{index-DHUCHxn2.d.ts → index-BWWirRm3.d.ts} +1 -1
- package/dist/{index-CTjkJP4x.d.ts → index-Bgk1Rj2A.d.ts} +1 -1
- package/dist/{index-COgrQZIL.d.ts → index-BpFzfJbo.d.ts} +2 -2
- package/dist/{index-DH_xZI84.d.ts → index-Bxus0zuz.d.ts} +11 -11
- package/dist/{index-ChqMaV6N.d.ts → index-Bzi3A980.d.ts} +1 -1
- package/dist/{index-BjqoHLMq.d.ts → index-C1e8LNx2.d.ts} +1 -1
- package/dist/{index-DE-QPNz0.d.ts → index-C943VIzi.d.ts} +3 -2
- package/dist/{index-DYabo8TI.d.ts → index-CHLZPpjQ.d.ts} +3 -3
- package/dist/{index-Q1oG9yIT.d.ts → index-CO9GW-ik.d.ts} +1 -1
- package/dist/{index-AgTJRqUY.d.ts → index-CQi9WGWE.d.ts} +2 -2
- package/dist/{index-Bh-GqMzd.d.ts → index-CdRxeyhB.d.ts} +30 -2
- package/dist/{index-C9ZssPUV.d.ts → index-CiVrhGUJ.d.ts} +1 -1
- package/dist/{index-CG6dbyeb.d.ts → index-Cj-Ob5jw.d.ts} +10 -10
- package/dist/{index-mK1ICsVg.d.ts → index-Cm36VS1A.d.ts} +2 -2
- package/dist/{index-aHC2C89h.d.ts → index-DAEgHJTK.d.ts} +4 -4
- package/dist/{index-CuW4AQ7M.d.ts → index-DGe-ApvN.d.ts} +3 -3
- package/dist/{index-ZKBj_1nu.d.ts → index-DIw5D3zj.d.ts} +2 -2
- package/dist/{index-DofC9Rll.d.ts → index-Dk50Zh3F.d.ts} +2 -2
- package/dist/{index-0RIgvtdm.d.ts → index-DogWVRJi.d.ts} +1 -1
- package/dist/{index-CbA8rR_b.d.ts → index-FeZXsFO-.d.ts} +2 -2
- package/dist/{index-QC9FDUDA.d.ts → index-ILJ7sKx3.d.ts} +4 -4
- package/dist/{index-DVX2jlTQ.d.ts → index-JE1HrzdJ.d.ts} +2 -2
- package/dist/{index-DCyYldjP.d.ts → index-T5bzxQ30.d.ts} +1 -1
- package/dist/{index-BenG-F5d.d.ts → index-maTGrWjF.d.ts} +1 -1
- package/dist/{index-CEtFUoIm.d.ts → index-o3JHyrk8.d.ts} +1 -1
- package/dist/{index-yQc-te9a.d.ts → index-ql9ApSTF.d.ts} +2 -2
- package/dist/index.d.ts +33 -33
- package/dist/index.js +91 -91
- package/dist/{layerDepth-D3Rh8T5C.js → layerDepth-8jb4An1z.js} +1 -1
- package/dist/lazyBottomSheet-CNYA5qOy.js +25 -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/{stillPointerGate-BbMABRyU.js → stillPointerGate-CpzpYNqy.js} +1 -1
- package/dist/{tooltipFocusRules-CpUOvFEU.js → tooltipFocusRules-BfnTnTpn.js} +2 -2
- package/dist/{tooltipTriggerRules-zN2xGd9K.js → tooltipTriggerRules-BRdKWVzo.js} +1 -1
- package/dist/{useCombobox-BqkTY3bw.js → useCombobox-DkwiskdE.js} +1 -1
- package/dist/{useDismiss-BKtyCwx4.js → useDismiss-fhWaGqY8.js} +1 -1
- package/dist/{useFocusTrap-BD9POtMp.js → useFocusTrap-DT2UCZd-.js} +1 -1
- package/dist/{useInputStatusIcon-BqV6YzTV.js → useInputStatusIcon-B1i0sFKu.js} +1 -1
- package/dist/{useMenuPress-DcwVUsQO.js → useMenuPress-CBtTaYOS.js} +71 -4
- package/dist/{useResizable-hv4NYIUi.js → useResizable-AfPBAq5c.js} +1 -1
- package/dist/{useTooltip-DvBKna-w.js → useTooltip-llyJd1q6.js} +4 -4
- package/dist/{useTouchTriggerInternal-Bl602PtA.js → useTouchTriggerInternal-DzsFiDjb.js} +1 -1
- package/dist/{useTruncationTooltip-DNAii2Nv.js → useTruncationTooltip-BFm7XgvO.js} +3 -3
- package/dist/{useTypeahead-BGpvWkzm.js → useTypeahead-8Y5m41VA.js} +1 -1
- package/dist/{useTypeaheadMenuConfig-BT9Lwsu7.js → useTypeaheadMenuConfig-Cy-gOjVd.js} +2 -2
- package/package.json +1 -1
- package/styles/dropdown-menu.css +5 -0
- package/dist/DropdownMenu-B_KDdI8P.js +0 -489
- package/dist/lazyBottomSheet-CbU1Pnfk.js +0 -16
- 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
|
@@ -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 };
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { defineAsyncComponent } from "vue";
|
|
2
|
-
//#region src/BottomSheet/lazyBottomSheet.ts
|
|
3
|
-
function loadBottomSheet() {
|
|
4
|
-
return import("./BottomSheet-BZ_yFoKC.js").then((n) => n.t);
|
|
5
|
-
}
|
|
6
|
-
/**
|
|
7
|
-
* 按需加载的 BottomSheet:只在底部弹层真正进入组件树时请求,只用锚定浮层的页面
|
|
8
|
-
* 不会加载它(以及它的手势)。菜单和 Popover 的底部弹层呈现共用。
|
|
9
|
-
*/
|
|
10
|
-
const LazyBottomSheet = defineAsyncComponent(loadBottomSheet);
|
|
11
|
-
/** 先把模块加载好、什么都不渲染:底部弹层可能成为呈现方式时调用,打开时立刻就有。 */
|
|
12
|
-
function preloadBottomSheet() {
|
|
13
|
-
loadBottomSheet();
|
|
14
|
-
}
|
|
15
|
-
//#endregion
|
|
16
|
-
export { preloadBottomSheet as n, LazyBottomSheet as t };
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { computed } from "vue";
|
|
2
|
-
//#region src/DropdownMenu/useSubmenuMode.ts
|
|
3
|
-
/**
|
|
4
|
-
* Whether a submenu flies out beside its row or replaces the menu's rows.
|
|
5
|
-
*
|
|
6
|
-
* `adaptive` drills in only when the menu opened on a compact touch surface.
|
|
7
|
-
* That choice is sampled by the root when the menu opens, so the panel does
|
|
8
|
-
* not change shape while it is open.
|
|
9
|
-
*/
|
|
10
|
-
function useSubmenuMode(options) {
|
|
11
|
-
const isDrill = computed(() => {
|
|
12
|
-
const drill = options.drillIn.value;
|
|
13
|
-
if (drill == null || options.presentation.value === "flyout") return false;
|
|
14
|
-
if (options.presentation.value === "drill-in") return true;
|
|
15
|
-
return drill.isCompactTouch;
|
|
16
|
-
});
|
|
17
|
-
const isOnStack = computed(() => options.drillIn.value?.viewStack.includes(options.viewId) === true);
|
|
18
|
-
const isTop = computed(() => isOnStack.value && options.drillIn.value?.viewStack.at(-1) === options.viewId);
|
|
19
|
-
function openDrill() {
|
|
20
|
-
options.drillIn.value?.push(options.viewId);
|
|
21
|
-
}
|
|
22
|
-
/** Pop this view when it is the top of the stack. Returns whether it popped. */
|
|
23
|
-
function closeDrill() {
|
|
24
|
-
if (!isTop.value) return false;
|
|
25
|
-
options.drillIn.value?.pop();
|
|
26
|
-
return true;
|
|
27
|
-
}
|
|
28
|
-
return {
|
|
29
|
-
closeDrill,
|
|
30
|
-
isDrill,
|
|
31
|
-
isOnStack,
|
|
32
|
-
isTop,
|
|
33
|
-
openDrill
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
//#endregion
|
|
37
|
-
export { useSubmenuMode as t };
|
|
@@ -43,9 +43,9 @@ declare const __VLS_base: import("vue").DefineComponent<TokenProps, {}, {}, {},
|
|
|
43
43
|
onRemove?: ((event: Event) => any) | undefined;
|
|
44
44
|
}>, {
|
|
45
45
|
size: TokenSize;
|
|
46
|
+
color: "default" | "blue" | "cyan" | "gray" | "green" | "orange" | "pink" | "purple" | "red" | "teal" | "yellow";
|
|
46
47
|
labelHidden: boolean;
|
|
47
48
|
disabled: boolean;
|
|
48
|
-
color: "default" | "blue" | "cyan" | "gray" | "green" | "orange" | "pink" | "purple" | "red" | "teal" | "yellow";
|
|
49
49
|
removable: boolean;
|
|
50
50
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
51
51
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -7,11 +7,11 @@ import { t as layoutMessages } from "./layout-DhX4-SyE.js";
|
|
|
7
7
|
import { t as navMessages } from "./nav-DpKQUHqR.js";
|
|
8
8
|
import { t as avatarGroupMessages } from "./avatar-group-Dcn6i_ne.js";
|
|
9
9
|
import { t as bannerMessages } from "./banner-Bv76b50U.js";
|
|
10
|
+
import { t as spinnerMessages } from "./spinner-DVia-eDf.js";
|
|
10
11
|
import { t as dropdownMenuMessages } from "./dropdown-menu-BDu4gWwQ.js";
|
|
11
12
|
import { t as calendarMessages } from "./calendar-Cs2vIPsV.js";
|
|
12
13
|
import { t as carouselMessages } from "./carousel-Uaa3h_cg.js";
|
|
13
14
|
import { t as chatMessages } from "./chat-BUFYB3bA.js";
|
|
14
|
-
import { t as spinnerMessages } from "./spinner-DVia-eDf.js";
|
|
15
15
|
import { t as infoTipMessages } from "./info-tip-BV42YsA4.js";
|
|
16
16
|
import { t as fieldMessages } from "./field-BaUBjqf5.js";
|
|
17
17
|
import { t as checkboxListMessages } from "./checkbox-list-uI6q4y3V.js";
|