@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,23 +1,23 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as _sfc_main$7 } from "./Icon-Dk0jccgU.js";
|
|
1
|
+
import { t as _sfc_main$6 } from "./Icon-Dk0jccgU.js";
|
|
3
2
|
import { n as useLinkComponent } from "./context-C_peZbXf.js";
|
|
4
|
-
import { n as usePositionedLayer, t as useDismiss } from "./useDismiss-
|
|
5
|
-
import { s as isImeKeyEvent } from "./layerDepth-
|
|
6
|
-
import { t as _sfc_main$
|
|
3
|
+
import { n as usePositionedLayer, t as useDismiss } from "./useDismiss-fhWaGqY8.js";
|
|
4
|
+
import { s as isImeKeyEvent } from "./layerDepth-8jb4An1z.js";
|
|
5
|
+
import { t as _sfc_main$7 } from "./LayerContentBoundary-DmRI6Bg0.js";
|
|
7
6
|
import { t as useMediaQuery } from "./useMediaQuery-BzXGT1Aw.js";
|
|
7
|
+
import { t as focusForLastInput } from "./focusReturn-DfZS7TCp.js";
|
|
8
8
|
import { o as useComponentMessages } from "./context-B8IEFCDR.js";
|
|
9
|
-
import {
|
|
9
|
+
import { c as resetMenuPress, l as useLongPress, n as useMenuPress } from "./useMenuPress-CBtTaYOS.js";
|
|
10
10
|
import { t as useOverflow } from "./useOverflow-GU0pxGaU.js";
|
|
11
11
|
import { t as useScrollbars } from "./useScrollbars-Ch0xqJWO.js";
|
|
12
|
-
import {
|
|
12
|
+
import { n as isModifiedClick, r as keepDisabledRowUnfocused, t as activateMenuItem } from "./menuActivation-BQqnzKAX.js";
|
|
13
|
+
import { a as _sfc_main$10, d as contextMenuContextKey, f as submenuAncestorOpenKey, i as useDropdownMenuMessages, m as useContextMenuSize, n as useMenuDrillIn, o as _sfc_main$9, p as useContextMenu, r as useSubmenuMode, s as _sfc_main$8, t as readAccessibleName } from "./accessibleName-Cq7krRE-.js";
|
|
13
14
|
import { t as useHeldPresentation } from "./useHeldPresentation-BF5vGVUn.js";
|
|
14
|
-
import { t as
|
|
15
|
-
import {
|
|
16
|
-
import { t as _sfc_main$13 } from "./Spinner-DEVPDsD0.js";
|
|
17
|
-
import { t as contextMenuMessages } from "./context-menu-9i6CObx3.js";
|
|
18
|
-
import { t as useSubmenuMode } from "./useSubmenuMode-CZN9qrUo.js";
|
|
15
|
+
import { t as LazyBottomSheet } from "./lazyBottomSheet-CNYA5qOy.js";
|
|
16
|
+
import { t as _sfc_main$11 } from "./Divider-mOZ6vIQw.js";
|
|
19
17
|
import { t as createHideTimer } from "./hoverIntent-DMHGb85c.js";
|
|
20
|
-
import {
|
|
18
|
+
import { t as _sfc_main$12 } from "./Spinner-DEVPDsD0.js";
|
|
19
|
+
import { t as contextMenuMessages } from "./context-menu-9i6CObx3.js";
|
|
20
|
+
import { Fragment, Teleport, Transition, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, inject, mergeModels, mergeProps, nextTick, normalizeClass, normalizeStyle, onBeforeUnmount, onMounted, onScopeDispose, openBlock, provide, ref, renderList, renderSlot, resolveComponent, resolveDynamicComponent, toDisplayString, toRaw, unref, useAttrs, useId, useModel, useSlots, useTemplateRef, vShow, watch, withCtx, withDirectives, withModifiers } from "vue";
|
|
21
21
|
import "../styles/context-menu.css";
|
|
22
22
|
//#region src/ContextMenu/ContextMenuDivider.vue
|
|
23
23
|
const _sfc_main$5 = /*@__PURE__*/ defineComponent({
|
|
@@ -26,7 +26,7 @@ const _sfc_main$5 = /*@__PURE__*/ defineComponent({
|
|
|
26
26
|
props: { variant: { default: "subtle" } },
|
|
27
27
|
setup(__props) {
|
|
28
28
|
return (_ctx, _cache) => {
|
|
29
|
-
return openBlock(), createBlock(_sfc_main$
|
|
29
|
+
return openBlock(), createBlock(_sfc_main$11, {
|
|
30
30
|
class: "astryx-context-menu-divider",
|
|
31
31
|
variant: __props.variant
|
|
32
32
|
}, null, 8, ["variant"]);
|
|
@@ -129,7 +129,7 @@ const _sfc_main$3 = /*@__PURE__*/ defineComponent({
|
|
|
129
129
|
if (props.isDisabled || event.pointerType !== "mouse") return;
|
|
130
130
|
const element = root.value;
|
|
131
131
|
if (element == null || element === element.ownerDocument.activeElement) return;
|
|
132
|
-
element
|
|
132
|
+
focusForLastInput(element, { preventScroll: true });
|
|
133
133
|
}
|
|
134
134
|
return (_ctx, _cache) => {
|
|
135
135
|
return openBlock(), createBlock(resolveDynamicComponent(__props.href != null ? linkRoot.value : "div"), {
|
|
@@ -144,14 +144,15 @@ const _sfc_main$3 = /*@__PURE__*/ defineComponent({
|
|
|
144
144
|
to: __props.href != null && linkRoot.value !== "a" ? __props.href : void 0,
|
|
145
145
|
rel: __props.rel,
|
|
146
146
|
role: "menuitem",
|
|
147
|
-
tabindex:
|
|
147
|
+
tabindex: "-1",
|
|
148
148
|
target: __props.target,
|
|
149
149
|
onAuxclick: handleAuxClick,
|
|
150
150
|
onClick: handleClick,
|
|
151
|
+
onMousedown: _cache[0] || (_cache[0] = ($event) => __props.isDisabled && unref(keepDisabledRowUnfocused)($event)),
|
|
151
152
|
onPointermove: handlePointerMove
|
|
152
153
|
}, {
|
|
153
154
|
default: withCtx(() => [
|
|
154
|
-
__props.icon != null || _ctx.$slots.icon ? (openBlock(), createElementBlock("span", _hoisted_1$2, [renderSlot(_ctx.$slots, "icon", {}, () => [createVNode(_sfc_main$
|
|
155
|
+
__props.icon != null || _ctx.$slots.icon ? (openBlock(), createElementBlock("span", _hoisted_1$2, [renderSlot(_ctx.$slots, "icon", {}, () => [createVNode(_sfc_main$6, {
|
|
155
156
|
color: iconColor.value,
|
|
156
157
|
icon: __props.icon,
|
|
157
158
|
size: "sm"
|
|
@@ -169,7 +170,6 @@ const _sfc_main$3 = /*@__PURE__*/ defineComponent({
|
|
|
169
170
|
"href",
|
|
170
171
|
"to",
|
|
171
172
|
"rel",
|
|
172
|
-
"tabindex",
|
|
173
173
|
"target"
|
|
174
174
|
]);
|
|
175
175
|
};
|
|
@@ -186,8 +186,8 @@ const MENU_ITEM_ROLES = /* @__PURE__ */ new Set([
|
|
|
186
186
|
"menuitemradio",
|
|
187
187
|
"menuitemcheckbox"
|
|
188
188
|
]);
|
|
189
|
-
/** Selector for
|
|
190
|
-
const
|
|
189
|
+
/** Selector for every row of one menu level, disabled rows included. */
|
|
190
|
+
const MENU_ROW_SELECTOR = [...MENU_ITEM_ROLES].map((role) => `[role="${role}"]`).join(",");
|
|
191
191
|
/** Selector for any menu level, used to scope a level's rows and key events. */
|
|
192
192
|
const MENU_BOUNDARY_SELECTOR = "[role=\"menu\"]";
|
|
193
193
|
function isDisabledRow(row) {
|
|
@@ -223,7 +223,7 @@ function useMenuNav(options) {
|
|
|
223
223
|
function getItems() {
|
|
224
224
|
const menu = menuRef.value;
|
|
225
225
|
if (menu == null) return [];
|
|
226
|
-
return Array.from(menu.querySelectorAll(
|
|
226
|
+
return Array.from(menu.querySelectorAll(MENU_ROW_SELECTOR)).filter((row) => !isHiddenWithin(row, menu)).filter((row) => row.closest(MENU_BOUNDARY_SELECTOR) === menu);
|
|
227
227
|
}
|
|
228
228
|
function ownsEvent(event) {
|
|
229
229
|
const menu = menuRef.value;
|
|
@@ -260,15 +260,16 @@ function useMenuNav(options) {
|
|
|
260
260
|
const items = getItems();
|
|
261
261
|
return focusIndex(items, findEnabledIndex(items, 0, 1, false));
|
|
262
262
|
}
|
|
263
|
-
function focusLast() {
|
|
264
|
-
const items = getItems();
|
|
265
|
-
return focusIndex(items, findEnabledIndex(items, items.length - 1, -1, false));
|
|
266
|
-
}
|
|
267
263
|
function moveBy(direction) {
|
|
268
264
|
const items = getItems();
|
|
269
265
|
if (items.length === 0) return false;
|
|
270
266
|
const current = getCurrentIndex(items);
|
|
271
|
-
return focusIndex(items,
|
|
267
|
+
return focusIndex(items, ((current === -1 ? direction === 1 ? 0 : items.length - 1 : current + direction) + items.length) % items.length);
|
|
268
|
+
}
|
|
269
|
+
/** Home / End: the keys reach a disabled row at either end. */
|
|
270
|
+
function focusEdge(edge) {
|
|
271
|
+
const items = getItems();
|
|
272
|
+
return focusIndex(items, edge === "first" ? 0 : items.length - 1);
|
|
272
273
|
}
|
|
273
274
|
/**
|
|
274
275
|
* PageDown / PageUp move by the rows a viewport shows, never wrapping; in a
|
|
@@ -277,14 +278,13 @@ function useMenuNav(options) {
|
|
|
277
278
|
function focusPage(direction) {
|
|
278
279
|
const menu = menuRef.value;
|
|
279
280
|
const all = getItems();
|
|
280
|
-
|
|
281
|
-
if (menu
|
|
282
|
-
|
|
283
|
-
const
|
|
284
|
-
const
|
|
285
|
-
const
|
|
286
|
-
|
|
287
|
-
return focusIndex(all, active[Math.max(0, Math.min(active.length - 1, from + direction * perPage))]);
|
|
281
|
+
if (menu == null || all.length === 0) return false;
|
|
282
|
+
if (menu.clientHeight === 0 || menu.scrollHeight <= menu.clientHeight) return focusEdge(direction === 1 ? "last" : "first");
|
|
283
|
+
const rowHeight = all[0]?.getBoundingClientRect().height ?? 0;
|
|
284
|
+
const perPage = rowHeight > 0 ? Math.max(1, Math.floor(menu.clientHeight / rowHeight)) : all.length;
|
|
285
|
+
const position = getCurrentIndex(all);
|
|
286
|
+
const from = position === -1 ? direction === 1 ? -1 : all.length : position;
|
|
287
|
+
return focusIndex(all, Math.max(0, Math.min(all.length - 1, from + direction * perPage)));
|
|
288
288
|
}
|
|
289
289
|
/**
|
|
290
290
|
* Typeahead over the rows' label elements. Repeated presses of the same
|
|
@@ -307,7 +307,6 @@ function useMenuNav(options) {
|
|
|
307
307
|
const offset = hasCurrent && nextBuffer.length === 1 ? 1 : 0;
|
|
308
308
|
for (let i = 0; i < labels.length; i++) {
|
|
309
309
|
const index = (start + offset + i + labels.length) % labels.length;
|
|
310
|
-
if (isDisabledRow(items[index])) continue;
|
|
311
310
|
const label = labels[index];
|
|
312
311
|
if (label != null && label.trim().toLowerCase().startsWith(nextBuffer)) {
|
|
313
312
|
focusIndex(items, index);
|
|
@@ -347,11 +346,11 @@ function useMenuNav(options) {
|
|
|
347
346
|
event.preventDefault();
|
|
348
347
|
return;
|
|
349
348
|
}
|
|
350
|
-
if (event.key === "Home" &&
|
|
349
|
+
if (event.key === "Home" && focusEdge("first")) {
|
|
351
350
|
event.preventDefault();
|
|
352
351
|
return;
|
|
353
352
|
}
|
|
354
|
-
if (event.key === "End" &&
|
|
353
|
+
if (event.key === "End" && focusEdge("last")) {
|
|
355
354
|
event.preventDefault();
|
|
356
355
|
return;
|
|
357
356
|
}
|
|
@@ -484,18 +483,14 @@ const _hoisted_1$1 = [
|
|
|
484
483
|
"aria-disabled",
|
|
485
484
|
"aria-expanded",
|
|
486
485
|
"data-disabled",
|
|
487
|
-
"data-size"
|
|
488
|
-
"tabindex"
|
|
486
|
+
"data-size"
|
|
489
487
|
];
|
|
490
488
|
const _hoisted_2$1 = {
|
|
491
489
|
key: 0,
|
|
492
490
|
class: "astryx-context-menu-item__start"
|
|
493
491
|
};
|
|
494
492
|
const _hoisted_3$1 = { class: "astryx-context-menu-item__content" };
|
|
495
|
-
const _hoisted_4$1 =
|
|
496
|
-
class: "astryx-context-menu-item__label",
|
|
497
|
-
"data-menu-item-label": ""
|
|
498
|
-
};
|
|
493
|
+
const _hoisted_4$1 = ["id"];
|
|
499
494
|
const _hoisted_5 = {
|
|
500
495
|
key: 0,
|
|
501
496
|
class: "astryx-context-menu-item__description"
|
|
@@ -505,9 +500,14 @@ const _hoisted_7 = {
|
|
|
505
500
|
key: 0,
|
|
506
501
|
"aria-hidden": "true"
|
|
507
502
|
};
|
|
508
|
-
const _hoisted_8 = [
|
|
503
|
+
const _hoisted_8 = [
|
|
504
|
+
"aria-label",
|
|
505
|
+
"aria-labelledby",
|
|
506
|
+
"hidden"
|
|
507
|
+
];
|
|
509
508
|
const _hoisted_9 = [
|
|
510
509
|
"aria-label",
|
|
510
|
+
"aria-labelledby",
|
|
511
511
|
"data-overflow",
|
|
512
512
|
"data-placement",
|
|
513
513
|
"data-size"
|
|
@@ -559,10 +559,25 @@ const _sfc_main$2 = /*@__PURE__*/ defineComponent({
|
|
|
559
559
|
const flyout = useTemplateRef("flyout");
|
|
560
560
|
const isOpen = ref(false);
|
|
561
561
|
const flyoutId = `astryx-context-menu-submenu-${useId()}`;
|
|
562
|
-
const
|
|
562
|
+
const slots = useSlots();
|
|
563
|
+
const stringLabel = computed(() => typeof props.label === "string" && props.label !== "" ? props.label : void 0);
|
|
564
|
+
const hasNodeLabel = computed(() => stringLabel.value == null && slots.label != null);
|
|
565
|
+
const nodeLabelId = `astryx-context-submenu-label-${useId()}`;
|
|
566
|
+
const nodeLabelText = ref();
|
|
567
|
+
const flyoutLabel = computed(() => stringLabel.value ?? menu?.menuLabel.value ?? "Submenu");
|
|
568
|
+
const viewAriaLabel = computed(() => hasNodeLabel.value ? void 0 : flyoutLabel.value);
|
|
569
|
+
const viewLabelledBy = computed(() => hasNodeLabel.value ? nodeLabelId : void 0);
|
|
563
570
|
const ancestorOpen = inject(submenuAncestorOpenKey, computed(() => true));
|
|
564
571
|
const showsFlyout = computed(() => isOpen.value && (menu?.isOpen.value ?? true) && ancestorOpen.value);
|
|
565
572
|
provide(submenuAncestorOpenKey, showsFlyout);
|
|
573
|
+
const isShown = computed(() => isDrill.value ? drillOnStack.value : showsFlyout.value);
|
|
574
|
+
watch(isShown, (shown) => {
|
|
575
|
+
if (shown && hasNodeLabel.value) nodeLabelText.value = readAccessibleName(document.getElementById(nodeLabelId));
|
|
576
|
+
});
|
|
577
|
+
if (menu != null) provide(contextMenuContextKey, {
|
|
578
|
+
...menu,
|
|
579
|
+
menuLabel: computed(() => stringLabel.value ?? (hasNodeLabel.value ? nodeLabelText.value : void 0) ?? menu.menuLabel.value)
|
|
580
|
+
});
|
|
566
581
|
const { position, teleportTarget } = usePositionedLayer({
|
|
567
582
|
anchor: row,
|
|
568
583
|
layer: flyout,
|
|
@@ -665,7 +680,7 @@ const _sfc_main$2 = /*@__PURE__*/ defineComponent({
|
|
|
665
680
|
if (props.isDisabled || event.pointerType !== "mouse") return;
|
|
666
681
|
const element = row.value;
|
|
667
682
|
if (element == null || element === element.ownerDocument.activeElement) return;
|
|
668
|
-
element
|
|
683
|
+
focusForLastInput(element, { preventScroll: true });
|
|
669
684
|
}
|
|
670
685
|
function onFlyoutKeyDown(event) {
|
|
671
686
|
if (isImeKeyEvent(event)) return;
|
|
@@ -694,105 +709,108 @@ const _sfc_main$2 = /*@__PURE__*/ defineComponent({
|
|
|
694
709
|
close(false);
|
|
695
710
|
});
|
|
696
711
|
return (_ctx, _cache) => {
|
|
697
|
-
return openBlock(), createElementBlock(Fragment, null, [
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
}),
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
712
|
+
return openBlock(), createElementBlock(Fragment, null, [createElementVNode("div", mergeProps({
|
|
713
|
+
ref_key: "row",
|
|
714
|
+
ref: row
|
|
715
|
+
}, unref(attrs), {
|
|
716
|
+
"aria-controls": flyoutId,
|
|
717
|
+
"aria-disabled": __props.isDisabled || void 0,
|
|
718
|
+
"aria-expanded": showsFlyout.value || unref(drillOnStack),
|
|
719
|
+
"aria-haspopup": "menu",
|
|
720
|
+
class: ["astryx-context-menu-item astryx-context-menu-item--submenu", unref(attrs).class],
|
|
721
|
+
"data-disabled": __props.isDisabled || void 0,
|
|
722
|
+
"data-size": unref(size),
|
|
723
|
+
role: "menuitem",
|
|
724
|
+
style: unref(attrs).style,
|
|
725
|
+
tabindex: "-1",
|
|
726
|
+
onClick: onRowClick,
|
|
727
|
+
onFocusout: onRowFocusOut,
|
|
728
|
+
onMousedown: _cache[0] || (_cache[0] = ($event) => __props.isDisabled && unref(keepDisabledRowUnfocused)($event)),
|
|
729
|
+
onKeydown: onRowKeyDown,
|
|
730
|
+
onPointerenter: onRowPointerEnter,
|
|
731
|
+
onPointerleave: _cache[1] || (_cache[1] = (...args) => unref(hover).onTriggerPointerLeave && unref(hover).onTriggerPointerLeave(...args)),
|
|
732
|
+
onPointermove: onRowPointerMove
|
|
733
|
+
}), [
|
|
734
|
+
__props.icon != null || _ctx.$slots.icon ? (openBlock(), createElementBlock("span", _hoisted_2$1, [renderSlot(_ctx.$slots, "icon", {}, () => [createVNode(_sfc_main$6, {
|
|
735
|
+
icon: __props.icon,
|
|
736
|
+
color: "secondary",
|
|
737
|
+
size: "sm"
|
|
738
|
+
}, null, 8, ["icon"])])])) : createCommentVNode("v-if", true),
|
|
739
|
+
createElementVNode("span", _hoisted_3$1, [createElementVNode("span", {
|
|
740
|
+
id: hasNodeLabel.value ? nodeLabelId : void 0,
|
|
741
|
+
class: "astryx-context-menu-item__label",
|
|
742
|
+
"data-menu-item-label": ""
|
|
743
|
+
}, [renderSlot(_ctx.$slots, "label", {}, () => [createTextVNode(toDisplayString(__props.label), 1)])], 8, _hoisted_4$1), __props.description != null || _ctx.$slots.description ? (openBlock(), createElementBlock("span", _hoisted_5, [renderSlot(_ctx.$slots, "description", {}, () => [createTextVNode(toDisplayString(__props.description), 1)])])) : createCommentVNode("v-if", true)]),
|
|
744
|
+
createElementVNode("span", _hoisted_6, [renderSlot(_ctx.$slots, "endContent", {}, () => [__props.hasSpinner ? (openBlock(), createElementBlock("span", _hoisted_7, [createVNode(_sfc_main$12, { size: "sm" })])) : (openBlock(), createBlock(_sfc_main$6, {
|
|
745
|
+
key: 1,
|
|
746
|
+
class: "astryx-context-menu-item__chevron",
|
|
747
|
+
icon: "chevronRight",
|
|
748
|
+
color: "secondary",
|
|
749
|
+
size: "sm"
|
|
750
|
+
}))])])
|
|
751
|
+
], 16, _hoisted_1$1), drillHost.value ? (openBlock(), createBlock(Teleport, {
|
|
752
|
+
key: 0,
|
|
753
|
+
to: drillHost.value
|
|
754
|
+
}, [withDirectives(createElementVNode("div", {
|
|
755
|
+
ref_key: "flyout",
|
|
756
|
+
ref: flyout,
|
|
757
|
+
class: "astryx-context-menu astryx-context-menu--flyout",
|
|
758
|
+
role: "menu",
|
|
759
|
+
"aria-label": viewAriaLabel.value,
|
|
760
|
+
"aria-labelledby": viewLabelledBy.value,
|
|
761
|
+
hidden: unref(drillIsTop) ? void 0 : true,
|
|
762
|
+
tabindex: "-1",
|
|
763
|
+
onKeydown: onFlyoutKeyDown
|
|
764
|
+
}, [createVNode(_sfc_main$7, null, {
|
|
765
|
+
default: withCtx(() => [createVNode(_sfc_main$3, {
|
|
766
|
+
"has-close-on-select": false,
|
|
767
|
+
label: backLabel.value,
|
|
768
|
+
onClick: _cache[2] || (_cache[2] = ($event) => close(true))
|
|
769
|
+
}, {
|
|
770
|
+
icon: withCtx(() => [createVNode(_sfc_main$6, {
|
|
730
771
|
color: "secondary",
|
|
772
|
+
icon: "chevronLeft",
|
|
731
773
|
size: "sm"
|
|
732
|
-
})
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
}, [
|
|
774
|
+
})]),
|
|
775
|
+
_: 1
|
|
776
|
+
}, 8, ["label"]), renderSlot(_ctx.$slots, "default", {}, () => [createVNode(_sfc_main$1, {
|
|
777
|
+
items: __props.items ?? [],
|
|
778
|
+
onSelect: onNestedSelect
|
|
779
|
+
}, null, 8, ["items"])])]),
|
|
780
|
+
_: 3
|
|
781
|
+
})], 40, _hoisted_8), [[vShow, unref(drillOnStack)]])], 8, ["to"])) : (openBlock(), createBlock(Teleport, {
|
|
782
|
+
key: 1,
|
|
783
|
+
to: unref(teleportTarget)
|
|
784
|
+
}, [createVNode(Transition, {
|
|
785
|
+
name: "astryx-context-menu-flyout",
|
|
786
|
+
persisted: ""
|
|
787
|
+
}, {
|
|
788
|
+
default: withCtx(() => [withDirectives(createElementVNode("div", {
|
|
789
|
+
id: flyoutId,
|
|
738
790
|
ref_key: "flyout",
|
|
739
791
|
ref: flyout,
|
|
792
|
+
"aria-label": viewAriaLabel.value,
|
|
793
|
+
"aria-labelledby": viewLabelledBy.value,
|
|
740
794
|
class: "astryx-context-menu astryx-context-menu--flyout",
|
|
795
|
+
"data-overflow": unref(hasOverflow) || void 0,
|
|
796
|
+
"data-placement": unref(position).placement,
|
|
797
|
+
"data-size": unref(size),
|
|
741
798
|
role: "menu",
|
|
742
|
-
|
|
743
|
-
hidden: unref(drillIsTop) ? void 0 : true,
|
|
799
|
+
style: normalizeStyle(flyoutStyle.value),
|
|
744
800
|
tabindex: "-1",
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
}, {
|
|
752
|
-
icon: withCtx(() => [createVNode(_sfc_main$7, {
|
|
753
|
-
color: "secondary",
|
|
754
|
-
icon: "chevronLeft",
|
|
755
|
-
size: "sm"
|
|
756
|
-
})]),
|
|
757
|
-
_: 1
|
|
758
|
-
}, 8, ["label"]), renderSlot(_ctx.$slots, "default", {}, () => [createVNode(_sfc_main$1, {
|
|
801
|
+
onContextmenu: _cache[3] || (_cache[3] = withModifiers(() => {}, ["prevent"])),
|
|
802
|
+
onKeydown: onFlyoutKeyDown,
|
|
803
|
+
onPointerenter: _cache[4] || (_cache[4] = (...args) => unref(hover).onFlyoutPointerEnter && unref(hover).onFlyoutPointerEnter(...args)),
|
|
804
|
+
onPointerleave: _cache[5] || (_cache[5] = (...args) => unref(hover).onFlyoutPointerLeave && unref(hover).onFlyoutPointerLeave(...args))
|
|
805
|
+
}, [createVNode(_sfc_main$7, null, {
|
|
806
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default", {}, () => [createVNode(_sfc_main$1, {
|
|
759
807
|
items: __props.items ?? [],
|
|
760
808
|
onSelect: onNestedSelect
|
|
761
809
|
}, null, 8, ["items"])])]),
|
|
762
810
|
_: 3
|
|
763
|
-
})],
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
}, [createVNode(Transition, {
|
|
767
|
-
name: "astryx-context-menu-flyout",
|
|
768
|
-
persisted: ""
|
|
769
|
-
}, {
|
|
770
|
-
default: withCtx(() => [withDirectives(createElementVNode("div", {
|
|
771
|
-
id: flyoutId,
|
|
772
|
-
ref_key: "flyout",
|
|
773
|
-
ref: flyout,
|
|
774
|
-
"aria-label": flyoutLabel.value,
|
|
775
|
-
class: "astryx-context-menu astryx-context-menu--flyout",
|
|
776
|
-
"data-overflow": unref(hasOverflow) || void 0,
|
|
777
|
-
"data-placement": unref(position).placement,
|
|
778
|
-
"data-size": unref(size),
|
|
779
|
-
role: "menu",
|
|
780
|
-
style: normalizeStyle(flyoutStyle.value),
|
|
781
|
-
tabindex: "-1",
|
|
782
|
-
onContextmenu: _cache[2] || (_cache[2] = withModifiers(() => {}, ["prevent"])),
|
|
783
|
-
onKeydown: onFlyoutKeyDown,
|
|
784
|
-
onPointerenter: _cache[3] || (_cache[3] = (...args) => unref(hover).onFlyoutPointerEnter && unref(hover).onFlyoutPointerEnter(...args)),
|
|
785
|
-
onPointerleave: _cache[4] || (_cache[4] = (...args) => unref(hover).onFlyoutPointerLeave && unref(hover).onFlyoutPointerLeave(...args))
|
|
786
|
-
}, [createVNode(_sfc_main$8, null, {
|
|
787
|
-
default: withCtx(() => [renderSlot(_ctx.$slots, "default", {}, () => [createVNode(_sfc_main$1, {
|
|
788
|
-
items: __props.items ?? [],
|
|
789
|
-
onSelect: onNestedSelect
|
|
790
|
-
}, null, 8, ["items"])])]),
|
|
791
|
-
_: 3
|
|
792
|
-
})], 44, _hoisted_9), [[vShow, showsFlyout.value]])]),
|
|
793
|
-
_: 3
|
|
794
|
-
})], 8, ["to"]))
|
|
795
|
-
], 64);
|
|
811
|
+
})], 44, _hoisted_9), [[vShow, showsFlyout.value]])]),
|
|
812
|
+
_: 3
|
|
813
|
+
})], 8, ["to"]))], 64);
|
|
796
814
|
};
|
|
797
815
|
}
|
|
798
816
|
});
|
|
@@ -852,7 +870,7 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
852
870
|
return (_ctx, _cache) => {
|
|
853
871
|
const _component_ContextMenuItems = resolveComponent("ContextMenuItems", true);
|
|
854
872
|
return openBlock(true), createElementBlock(Fragment, null, renderList(__props.items, (option, index) => {
|
|
855
|
-
return openBlock(), createElementBlock(Fragment, { key: keyOf(option, index) }, [isDivider(option) ? (openBlock(), createBlock(_sfc_main$5, { key: 0 })) : isCheckbox(option) ? (openBlock(), createBlock(_sfc_main$
|
|
873
|
+
return openBlock(), createElementBlock(Fragment, { key: keyOf(option, index) }, [isDivider(option) ? (openBlock(), createBlock(_sfc_main$5, { key: 0 })) : isCheckbox(option) ? (openBlock(), createBlock(_sfc_main$8, {
|
|
856
874
|
key: 1,
|
|
857
875
|
description: option.description,
|
|
858
876
|
"has-close-on-select": option.hasCloseOnSelect,
|
|
@@ -869,7 +887,7 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
869
887
|
"label",
|
|
870
888
|
"model-value",
|
|
871
889
|
"onUpdate:modelValue"
|
|
872
|
-
])) : isRadio(option) ? (openBlock(), createBlock(_sfc_main$
|
|
890
|
+
])) : isRadio(option) ? (openBlock(), createBlock(_sfc_main$9, {
|
|
873
891
|
key: 2,
|
|
874
892
|
"has-close-on-select": option.hasCloseOnSelect,
|
|
875
893
|
label: option.label,
|
|
@@ -877,7 +895,7 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
877
895
|
"onUpdate:modelValue": ($event) => onRadioModel(option, $event)
|
|
878
896
|
}, {
|
|
879
897
|
default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(option.items, (choice, choiceIndex) => {
|
|
880
|
-
return openBlock(), createBlock(_sfc_main$
|
|
898
|
+
return openBlock(), createBlock(_sfc_main$10, {
|
|
881
899
|
key: choice.id ?? choiceIndex,
|
|
882
900
|
description: choice.description,
|
|
883
901
|
icon: choice.icon,
|
|
@@ -1126,6 +1144,10 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
1126
1144
|
}
|
|
1127
1145
|
nav.resetTypeahead();
|
|
1128
1146
|
}
|
|
1147
|
+
const hasOpened = ref(isOpen.value);
|
|
1148
|
+
watch(isOpen, (open) => {
|
|
1149
|
+
if (open) hasOpened.value = true;
|
|
1150
|
+
});
|
|
1129
1151
|
watch(isOpen, applyOpenState);
|
|
1130
1152
|
onMounted(() => {
|
|
1131
1153
|
if (isOpen.value) applyOpenState(true);
|
|
@@ -1175,7 +1197,10 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
1175
1197
|
"onPointercancel",
|
|
1176
1198
|
"onPointerup"
|
|
1177
1199
|
])),
|
|
1178
|
-
(openBlock(), createBlock(Teleport, {
|
|
1200
|
+
hasOpened.value ? (openBlock(), createBlock(Teleport, {
|
|
1201
|
+
key: 0,
|
|
1202
|
+
to: unref(teleportTarget)
|
|
1203
|
+
}, [createVNode(Transition, {
|
|
1179
1204
|
name: "astryx-context-menu",
|
|
1180
1205
|
persisted: ""
|
|
1181
1206
|
}, {
|
|
@@ -1196,7 +1221,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
1196
1221
|
onContextmenu: _cache[0] || (_cache[0] = withModifiers(() => {}, ["prevent"])),
|
|
1197
1222
|
onKeydown: _cache[1] || (_cache[1] = (...args) => unref(nav).handleKeyDown && unref(nav).handleKeyDown(...args)),
|
|
1198
1223
|
onPointerdown: _cache[2] || (_cache[2] = (...args) => unref(menuPress).onPointerDown && unref(menuPress).onPointerDown(...args))
|
|
1199
|
-
}, [createVNode(_sfc_main$
|
|
1224
|
+
}, [createVNode(_sfc_main$7, null, {
|
|
1200
1225
|
default: withCtx(() => [createElementVNode("div", {
|
|
1201
1226
|
class: "astryx-dropdown-menu-tree",
|
|
1202
1227
|
hidden: unref(isDrilled) || void 0,
|
|
@@ -1213,9 +1238,9 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
1213
1238
|
_: 3
|
|
1214
1239
|
})], 46, _hoisted_1), [[vShow, isOpen.value && !unref(isSheet)]])]),
|
|
1215
1240
|
_: 3
|
|
1216
|
-
})], 8, ["to"])),
|
|
1217
|
-
unref(isSheet) ? (openBlock(), createBlock(
|
|
1218
|
-
key:
|
|
1241
|
+
})], 8, ["to"])) : createCommentVNode("v-if", true),
|
|
1242
|
+
unref(isSheet) ? (openBlock(), createBlock(unref(LazyBottomSheet), {
|
|
1243
|
+
key: 1,
|
|
1219
1244
|
"is-open": isOpen.value,
|
|
1220
1245
|
label: menuName.value,
|
|
1221
1246
|
"onUpdate:isOpen": onSheetOpen,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Aa as DateInputFormatName, Da as DateInputEntryError, Ea as _default, Fa as DateInputStatus, Ia as DateInputStatusType, Ma as DateInputPresentation, Na as DateInputProps, Oa as DateInputEmits, Pa as DateInputSlots, ja as DateInputNativePicker, ka as DateInputFormat } from "../index-
|
|
1
|
+
import { Aa as DateInputFormatName, Da as DateInputEntryError, Ea as _default, Fa as DateInputStatus, Ia as DateInputStatusType, Ma as DateInputPresentation, Na as DateInputProps, Oa as DateInputEmits, Pa as DateInputSlots, ja as DateInputNativePicker, ka as DateInputFormat } from "../index-4m5X7IYX.js";
|
|
2
2
|
export { _default as DateInput, type DateInputEmits, type DateInputEntryError, 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-D9_QsZMj.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-Z92IvLBU.js";
|
|
2
2
|
import { t as _sfc_main$5 } from "./Icon-Dk0jccgU.js";
|
|
3
3
|
import { r as useInputGroupDisabled } from "./context-Bg7eSJ47.js";
|
|
4
4
|
import { i as useSize } from "./SizeContext-BbaF-SEx.js";
|
|
5
|
-
import { a as noteOutsideDismissal, c as currentGesture, s as isImeKeyEvent } from "./layerDepth-
|
|
5
|
+
import { a as noteOutsideDismissal, c as currentGesture, s as isImeKeyEvent } from "./layerDepth-8jb4An1z.js";
|
|
6
6
|
import { t as _sfc_main$6 } from "./VisuallyHidden-cpmsV-0M.js";
|
|
7
7
|
import { t as _sfc_main$7 } from "./ButtonTooltip-ZpQP-aQg.js";
|
|
8
8
|
import { t as useButtonTooltip } from "./useButtonTooltip-DjCaZMp_.js";
|
|
@@ -14,19 +14,19 @@ import { t as usePendingChange } from "./usePendingChange-ib-h8FZK.js";
|
|
|
14
14
|
import { t as useResolvedLabelHidden } from "./useResolvedLabelHidden-B2rlWiaI.js";
|
|
15
15
|
import { t as unicodeRegExp } from "./unicodeRegExp-B7yQnpFC.js";
|
|
16
16
|
import { n as toAsciiDigits, t as INVISIBLE_CHARS } from "./unicodeDigits-_BYIJcAu.js";
|
|
17
|
+
import { t as useBusyAnnouncement } from "./busyAnnouncement-CExubuYm.js";
|
|
18
|
+
import { t as _sfc_main$9 } from "./Spinner-DEVPDsD0.js";
|
|
17
19
|
import { C as plainDateIsAfter, F as plainDateToday, L as dateTimeFormatFor, M as plainDateToDate, d as getDaysInMonth, l as SHARED_DATE_FORMAT_OPTIONS, p as plainDateAddDays, u as formatSharedDate, v as plainDateFormat, w as plainDateIsBefore, y as plainDateFromDate } from "./plainDate-CaTDErKr.js";
|
|
18
20
|
import { _ as isCalendarSystemAvailable, a as calendarAddMonths, b as isInCalendarMonth, c as calendarDayOfMonth, d as calendarMonthLabelDay, f as calendarMonthOf, g as calendarYearMonthOf, h as calendarShiftYears, i as warnCalendarOnce, l as calendarMonthFromYearMonth, o as calendarDateFromFields, p as calendarMonthsInCalendarYear, r as useCalendarSystem, s as calendarDateFromMonthKey, u as calendarMonthKey, v as isGregorianAligned, y as isGregorianCalendar } from "./calendar-C7py_wtb.js";
|
|
19
21
|
import { a as weekdayNames, i as standaloneShortWeekdayNames, n as formatDayNumber } from "./format-6G9QuGy1.js";
|
|
20
22
|
import { t as calendarMessages } from "./calendar-Cs2vIPsV.js";
|
|
21
23
|
import { a as formatCalendarMonthName, i as formatCalendarMonthLabel, o as formatCalendarYearLabel, t as calendarDisplayName } from "./calendarFormat-_CEZIMZG.js";
|
|
22
24
|
import { a as formatWeekdayDate, f as weekStartIndex, l as sameCalendarDay, t as buildMonthWeeks, u as toCalendarDate, y as toCalendarDay } from "./useCalendarGrid-0WvxbeFC.js";
|
|
23
|
-
import { i as isOutsideCalendarBounds, n as resolveCalendarKey, r as isCalendarDateDisabled, t as _sfc_main$
|
|
24
|
-
import { t as useBusyAnnouncement } from "./busyAnnouncement-CExubuYm.js";
|
|
25
|
-
import { t as _sfc_main$10 } from "./Spinner-DEVPDsD0.js";
|
|
25
|
+
import { i as isOutsideCalendarBounds, n as resolveCalendarKey, r as isCalendarDateDisabled, t as _sfc_main$10 } from "./Calendar-CUMnYIhe.js";
|
|
26
26
|
import { a as useAriaRequired, o as useEntryErrorBehavior } from "./context-CrVCeUUK.js";
|
|
27
|
-
import { t as _sfc_main$11 } from "./Field-
|
|
27
|
+
import { t as _sfc_main$11 } from "./Field-njr7AUcW.js";
|
|
28
28
|
import { t as useFieldPartStyling } from "./fieldParts-CuE5V12i.js";
|
|
29
|
-
import { t as _sfc_main$12 } from "./Popover-
|
|
29
|
+
import { t as _sfc_main$12 } from "./Popover-DXfXGrWG.js";
|
|
30
30
|
import { t as dateInputMessages } from "./date-input-CRdc2H3c.js";
|
|
31
31
|
import { t as formatInstant } from "./formatInstant-CjCwl6JS.js";
|
|
32
32
|
import { n as calendarPickerPresentation, u as parseDateInput } from "./inputPresentation-DES0JwkL.js";
|
|
@@ -1500,7 +1500,7 @@ const _sfc_main$3 = /*@__PURE__*/ defineComponent({
|
|
|
1500
1500
|
icon: "close",
|
|
1501
1501
|
size: "sm"
|
|
1502
1502
|
})], 8, _hoisted_7$2)) : createCommentVNode("v-if", true),
|
|
1503
|
-
busy.value ? (openBlock(), createBlock(_sfc_main$
|
|
1503
|
+
busy.value ? (openBlock(), createBlock(_sfc_main$9, {
|
|
1504
1504
|
key: 1,
|
|
1505
1505
|
size: "sm",
|
|
1506
1506
|
"aria-hidden": "true"
|
|
@@ -2706,7 +2706,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
2706
2706
|
content: withCtx(() => [popoverOpen.value ? (openBlock(), createElementBlock("div", {
|
|
2707
2707
|
key: 0,
|
|
2708
2708
|
id: popupId.value
|
|
2709
|
-
}, [createVNode(_sfc_main$
|
|
2709
|
+
}, [createVNode(_sfc_main$10, {
|
|
2710
2710
|
"model-value": props.modelValue,
|
|
2711
2711
|
min: props.min,
|
|
2712
2712
|
max: props.max,
|
|
@@ -2785,7 +2785,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
2785
2785
|
icon: "close",
|
|
2786
2786
|
size: "sm"
|
|
2787
2787
|
})], 8, _hoisted_6)) : _ctx.$slots.suffix ? (openBlock(), createElementBlock("span", _hoisted_7, [renderSlot(_ctx.$slots, "suffix")])) : createCommentVNode("v-if", true),
|
|
2788
|
-
busy.value ? (openBlock(), createBlock(_sfc_main$
|
|
2788
|
+
busy.value ? (openBlock(), createBlock(_sfc_main$9, {
|
|
2789
2789
|
key: 3,
|
|
2790
2790
|
class: "astryx-date-input-spinner",
|
|
2791
2791
|
size: "sm",
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Ca as DateRangeInputEmits, Sa as DateRange, Ta as DateRangePreset, wa as DateRangeInputProps, xa as _default } from "../index-
|
|
1
|
+
import { Ca as DateRangeInputEmits, Sa as DateRange, Ta as DateRangePreset, wa as DateRangeInputProps, xa as _default } from "../index-4m5X7IYX.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-8P8i8aVI.js";
|
|
2
2
|
export { _sfc_main as DateRangeInput };
|
|
@@ -6,24 +6,24 @@ import { t as useButtonTooltip } from "./useButtonTooltip-DjCaZMp_.js";
|
|
|
6
6
|
import { n as isDevBuild, t as devPropError } from "./devBuild-G249YcdZ.js";
|
|
7
7
|
import { a as isRangeWithinSpan, c as resolveWeekStart, i as isDayOutsideSpan, r as formatDateRange, s as orderRange, t as applyRangeClick } from "./useDateRange-D1Szw54e.js";
|
|
8
8
|
import { t as _sfc_main$5 } from "./FieldIcon-BU1ZWAuo.js";
|
|
9
|
-
import { t as _sfc_main$6 } from "./IconButton-
|
|
9
|
+
import { t as _sfc_main$6 } from "./IconButton-CoZFp0CP.js";
|
|
10
10
|
import { a as useAstryxLocale, o as useComponentMessages } from "./context-B8IEFCDR.js";
|
|
11
11
|
import { a as todayISODate } from "./useMonthGrid-Bzvlstgc.js";
|
|
12
12
|
import { t as usePendingChange } from "./usePendingChange-ib-h8FZK.js";
|
|
13
13
|
import { t as useResolvedLabelHidden } from "./useResolvedLabelHidden-B2rlWiaI.js";
|
|
14
14
|
import { t as useScrollbars } from "./useScrollbars-Ch0xqJWO.js";
|
|
15
|
+
import { t as useBusyAnnouncement } from "./busyAnnouncement-CExubuYm.js";
|
|
16
|
+
import { t as _sfc_main$7 } from "./Spinner-DEVPDsD0.js";
|
|
15
17
|
import { F as plainDateToday, h as plainDateCreate, i as DATE_FORMAT_SHORT, o as DATE_FORMAT_SHORT_WITH_YEAR, y as plainDateFromDate } from "./plainDate-CaTDErKr.js";
|
|
16
18
|
import { a as calendarAddMonths, f as calendarMonthOf, g as calendarYearMonthOf, r as useCalendarSystem, y as isGregorianCalendar } from "./calendar-C7py_wtb.js";
|
|
17
19
|
import { a as weekdayNames, i as standaloneShortWeekdayNames, n as formatDayNumber } from "./format-6G9QuGy1.js";
|
|
18
20
|
import { t as calendarMessages } from "./calendar-Cs2vIPsV.js";
|
|
19
21
|
import { i as formatCalendarMonthLabel, n as formatCalendarDate } from "./calendarFormat-_CEZIMZG.js";
|
|
20
22
|
import { t as buildMonthWeeks } from "./useCalendarGrid-0WvxbeFC.js";
|
|
21
|
-
import { t as useBusyAnnouncement } from "./busyAnnouncement-CExubuYm.js";
|
|
22
|
-
import { t as _sfc_main$7 } from "./Spinner-DEVPDsD0.js";
|
|
23
23
|
import { a as useAriaRequired } from "./context-CrVCeUUK.js";
|
|
24
|
-
import { t as _sfc_main$8 } from "./Field-
|
|
24
|
+
import { t as _sfc_main$8 } from "./Field-njr7AUcW.js";
|
|
25
25
|
import { t as useFieldPartStyling } from "./fieldParts-CuE5V12i.js";
|
|
26
|
-
import { t as _sfc_main$9 } from "./Popover-
|
|
26
|
+
import { t as _sfc_main$9 } from "./Popover-DXfXGrWG.js";
|
|
27
27
|
import { t as dateInputMessages } from "./date-input-CRdc2H3c.js";
|
|
28
28
|
import { t as dateRangeInputMessages } from "./date-range-input-WnkVv8HN.js";
|
|
29
29
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, getCurrentInstance, inject, mergeModels, mergeProps, normalizeClass, normalizeStyle, onMounted, openBlock, renderList, shallowRef, ssrContextKey, toDisplayString, unref, useAttrs, useId, useModel, useTemplateRef, withCtx } from "vue";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _a as _default, ba as DateTimeInputSize, va as DateTimeInputEmits, ya as DateTimeInputProps } from "../index-
|
|
1
|
+
import { _a as _default, ba as DateTimeInputSize, va as DateTimeInputEmits, ya as DateTimeInputProps } from "../index-4m5X7IYX.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-C2XWslHp.js";
|
|
2
2
|
export { _sfc_main as DateTimeInput };
|