@astryx-vue/core 0.2.2 → 0.2.3
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/THIRD_PARTY_NOTICES.md +2 -0
- package/dist/AppShell/index.d.ts +1 -1
- package/dist/AppShell/index.js +1 -1
- package/dist/{AppShell-Cb41gIAj.js → AppShell-Dd-D4bA2.js} +2 -2
- package/dist/AvatarGroup/index.d.ts +1 -1
- package/dist/Banner/index.d.ts +1 -1
- package/dist/Breadcrumbs/index.d.ts +3 -2
- package/dist/Breadcrumbs/index.js +3 -2
- package/dist/{Breadcrumbs-CTQ7fjDn.js → Breadcrumbs-CWGfgLNK.js} +13 -8
- package/dist/Button/index.d.ts +1 -1
- package/dist/ButtonGroup/index.d.ts +1 -1
- package/dist/Calendar/index.d.ts +2 -2
- package/dist/Calendar/index.js +1 -1
- package/dist/Calendar-CnOsSjMY.js +656 -0
- package/dist/Card/index.d.ts +1 -1
- package/dist/Carousel/index.js +1 -1
- package/dist/{Carousel-X0cuQkvg.js → Carousel-JA7ilqI_.js} +2 -2
- package/dist/Chat/index.d.ts +1 -1
- package/dist/Chat/index.js +1 -1
- package/dist/{Chat-M0tiGrNT.js → Chat-C7WrCOE4.js} +3 -3
- package/dist/CheckboxIndicator/index.js +1 -1
- package/dist/CheckboxIndicator-D37cm2Rh.js +68 -0
- package/dist/CheckboxInput/index.d.ts +1 -1
- package/dist/CheckboxInput/index.js +1 -1
- package/dist/{CheckboxInput-CMsEE1_4.js → CheckboxInput-25Q8ItH-.js} +10 -9
- package/dist/CheckboxList/index.d.ts +1 -1
- package/dist/CheckboxList/index.js +1 -1
- package/dist/{CheckboxList-BbCPiend.js → CheckboxList-CnCGnkZk.js} +77 -24
- package/dist/Citation/index.js +1 -1
- package/dist/{Citation-C1veUk5p.js → Citation-CtwrU33I.js} +2 -2
- package/dist/ClickableCard/index.d.ts +1 -1
- package/dist/Code/index.d.ts +1 -1
- package/dist/Code/index.js +2 -2
- package/dist/{Code-yb_KOFtJ.js → Code-BvefYRpx.js} +2 -1
- package/dist/{CodeBlock-DesTJAkm.js → CodeBlock-BZGzYeoL.js} +1 -1
- package/dist/Collapsible/index.d.ts +1 -1
- package/dist/Collapsible/index.js +1 -1
- package/dist/{Collapsible-BestK35V.js → Collapsible-3YerR-FO.js} +1 -1
- package/dist/CommandPalette/index.js +1 -1
- package/dist/{CommandPalette-BArt97V8.js → CommandPalette-BNbM9T9y.js} +1 -1
- package/dist/ComplexSelector/index.d.ts +1 -1
- package/dist/ComplexSelector/index.js +1 -1
- package/dist/{ComplexSelector-CAoig1RK.js → ComplexSelector-LtbLlrcj.js} +3 -3
- package/dist/ContextMenu/index.d.ts +3 -2
- package/dist/ContextMenu/index.js +3 -2
- package/dist/{ContextMenu-9Im6i43E.js → ContextMenu-DVQl0xL5.js} +204 -56
- package/dist/DateInput/index.d.ts +2 -2
- package/dist/DateInput/index.js +1 -1
- package/dist/DateInput-zm8sNc0t.js +743 -0
- package/dist/DateRangeInput/index.d.ts +1 -1
- package/dist/DateRangeInput/index.js +1 -1
- package/dist/{DateRangeInput-DwDy3eRo.js → DateRangeInput-DlVFzrf7.js} +54 -19
- package/dist/DateTimeInput/index.d.ts +1 -1
- package/dist/DateTimeInput/index.js +1 -1
- package/dist/{DateTimeInput-BYiaC9bn.js → DateTimeInput-C7Z-p6Yd.js} +54 -15
- package/dist/Dialog/index.d.ts +1 -1
- package/dist/DropdownMenu/index.d.ts +3 -3
- package/dist/DropdownMenu/index.js +4 -3
- package/dist/{DropdownMenu-Dh-WAHKb.js → DropdownMenu-BoZChdev.js} +308 -63
- package/dist/DropdownMenu-u1psFjis.js +325 -0
- package/dist/DropdownMenuRadioItem.vue-uVM0FD2f.d.ts +564 -0
- package/dist/FileInput/index.d.ts +1 -1
- package/dist/FileInput/index.js +1 -1
- package/dist/{FileInput-DLO6V12n.js → FileInput-QdlZn7qK.js} +2 -2
- package/dist/Icon/index.d.ts +4 -3
- package/dist/Icon/index.js +2 -2
- package/dist/{Icon-CJKjdJy-.js → Icon-bteSId7T.js} +113 -18
- package/dist/Indicator/index.d.ts +3 -0
- package/dist/Indicator/index.js +2 -0
- package/dist/InputGroup/index.d.ts +2 -2
- package/dist/InputGroup/index.js +3 -2
- package/dist/InputGroup-BzR6JRZb.js +129 -0
- package/dist/Lightbox/index.js +1 -1
- package/dist/{Lightbox-CdFCS_EA.js → Lightbox-BSzfqZ-u.js} +2 -2
- package/dist/List/index.d.ts +1 -1
- package/dist/Markdown/index.js +1 -1
- package/dist/{Markdown-BqKloI3w.js → Markdown-B6tSqenv.js} +8 -5
- package/dist/MetadataList/index.js +1 -1
- package/dist/{MetadataList-CvZkmisf.js → MetadataList-aN1tRn6W.js} +1 -1
- package/dist/MobileNav/index.js +1 -1
- package/dist/{MobileNavToggle-Bwi0qXXM.js → MobileNavToggle-fqcSafkc.js} +1 -1
- package/dist/MoreMenu/index.d.ts +1 -1
- package/dist/MoreMenu/index.js +1 -1
- package/dist/{MoreMenu-BwJaJrkB.js → MoreMenu-B3brqdK_.js} +1 -1
- package/dist/MultiSelector/index.d.ts +2 -2
- package/dist/MultiSelector/index.js +1 -1
- package/dist/{MultiSelector-C-ETfFy_.js → MultiSelector-BD5PMgez.js} +303 -121
- package/dist/{NavDisclosure-DHrSNRDR.js → NavDisclosure-DbYLDXK0.js} +1 -1
- package/dist/NavItem/index.d.ts +1 -1
- package/dist/NavMenu/index.js +2 -2
- package/dist/{NavMenuItem-B-k7olt5.js → NavMenuItem-DrwIMHKO.js} +1 -1
- package/dist/NumberInput/index.d.ts +1 -1
- package/dist/NumberInput/index.js +1 -1
- package/dist/{NumberInput-DjetVB8O.js → NumberInput-CBeU4lEl.js} +1 -1
- package/dist/Outline/index.js +1 -1
- package/dist/{Outline-Bz9c-u5y.js → Outline--HVMSB6i.js} +1 -1
- package/dist/OverflowList/index.d.ts +1 -1
- package/dist/OverflowList/index.js +1 -1
- package/dist/{OverflowList-ED-KN9Y5.js → OverflowList-FMh7r-r_.js} +3 -3
- package/dist/Pagination/index.d.ts +1 -1
- package/dist/Pagination/index.js +1 -1
- package/dist/{Pagination-Cb66HMEf.js → Pagination-DlIvESjx.js} +2 -2
- package/dist/Popover/index.d.ts +1 -1
- package/dist/Popover/index.js +1 -1
- package/dist/{Popover-Crhk9PNP.js → Popover-D7zqpFwU.js} +1 -1
- package/dist/PowerSearch/index.d.ts +1 -1
- package/dist/PowerSearch/index.js +1 -1
- package/dist/{PowerSearch-CjU8y4mi.js → PowerSearch-CMG7Rb69.js} +14 -14
- package/dist/ProgressBar/index.d.ts +1 -1
- package/dist/Radio/index.d.ts +1 -1
- package/dist/Radio/index.js +1 -1
- package/dist/{RadioGroup-BqjdSCfJ.js → RadioGroup-CBqUPq_L.js} +16 -8
- package/dist/RadioList/index.d.ts +1 -1
- package/dist/RadioList/index.js +1 -1
- package/dist/{RadioList-DI8ujXcT.js → RadioList-CPOJn9Th.js} +1 -1
- package/dist/Resizable/index.js +1 -1
- package/dist/{Resizable-D-TBCg0Y.js → Resizable-CXpvj1TZ.js} +1 -1
- package/dist/ScrollableArea/index.d.ts +1 -1
- package/dist/SegmentedControl/index.d.ts +1 -1
- package/dist/SelectableCard/index.d.ts +1 -1
- package/dist/Selector/index.d.ts +2 -2
- package/dist/Selector/index.js +1 -1
- package/dist/Selector-BpPnuWH3.js +618 -0
- package/dist/SideNav/index.d.ts +1 -1
- package/dist/SideNav/index.js +1 -1
- package/dist/{SideNav-DonEfiAx.js → SideNav-D4TupqgE.js} +3 -3
- package/dist/Stack/index.d.ts +1 -1
- package/dist/Stepper/index.d.ts +1 -1
- package/dist/Stepper/index.js +1 -1
- package/dist/{Stepper-D2ZIcUNx.js → Stepper-H-6-T5Ps.js} +1 -1
- package/dist/Switch/index.d.ts +1 -1
- package/dist/TabList/index.d.ts +1 -1
- package/dist/TabList/index.js +1 -1
- package/dist/{TabList-D3F-stq-.js → TabList-BlzkrObv.js} +2 -2
- package/dist/Table/index.js +1 -1
- package/dist/{Table-CrP2Uffq.js → Table-nqA_njNz.js} +6 -6
- package/dist/TextArea/index.d.ts +1 -1
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/Theme/index.d.ts +2 -1
- package/dist/Theme/index.js +1 -1
- package/dist/{Theme-BuUiiJNr.js → Theme-CejS9MHm.js} +21 -3
- package/dist/Thumbnail/index.js +1 -1
- package/dist/{Thumbnail-BC5JGPGZ.js → Thumbnail-CXb3m_Hv.js} +2 -2
- package/dist/{TimeField-DpHFrNv0.js → TimeField-B3cndWb0.js} +2 -2
- package/dist/TimeInput/index.d.ts +1 -1
- package/dist/TimeInput/index.js +1 -1
- package/dist/{TimeInput-DJLV0_4z.js → TimeInput-BHQ_LKGm.js} +1 -1
- package/dist/Timestamp/index.d.ts +1 -1
- package/dist/Timestamp/index.js +1 -1
- package/dist/{Timestamp-GKNjjt5g.js → Timestamp-Cfuxbb3i.js} +2 -2
- package/dist/ToggleButton/index.d.ts +1 -1
- package/dist/Token/index.d.ts +1 -1
- package/dist/Token/index.js +1 -1
- package/dist/{Token-Chu_eCVs.js → Token-CdVLH0_H.js} +2 -2
- package/dist/Tokenizer/index.d.ts +1 -1
- package/dist/Tokenizer/index.js +1 -1
- package/dist/{Tokenizer-DRDpvQ_l.js → Tokenizer-DlD-S_8-.js} +3 -3
- package/dist/Toolbar/index.d.ts +1 -1
- package/dist/TopNav/index.d.ts +1 -1
- package/dist/TopNav/index.js +1 -1
- package/dist/{TopNav-CEyWddtA.js → TopNav-DzV874G7.js} +5 -5
- package/dist/TreeList/index.js +1 -1
- package/dist/{TreeList-COS8US8e.js → TreeList-DEwvlZRV.js} +2 -2
- package/dist/Typeahead/index.d.ts +1 -1
- package/dist/Typeahead/index.js +1 -1
- package/dist/{Typeahead-P7cCqtaQ.js → Typeahead-DQ3tmqYe.js} +3 -3
- package/dist/{context-O2Vb8cJl.js → colorMode-CBgdgDSn.js} +1 -7
- package/dist/composables/index.d.ts +2 -2
- package/dist/composables/index.js +10 -5
- package/dist/{composables-CVfjp9h4.js → composables-DDI08XFF.js} +98 -1
- package/dist/context-Cws_tXTr.js +7 -0
- package/dist/context-D5-MwxnN.js +4 -0
- package/dist/{context-CiKncNSH.js → context-DmOLCubj.js} +82 -8
- package/dist/{index-DimuSES0.d.ts → index-B1x05arQ.d.ts} +3 -1
- package/dist/index-B9f1rUEv.d.ts +77 -0
- package/dist/{index-D-ZuubCK.d.ts → index-BB5yVIN-.d.ts} +2 -2
- package/dist/{index-Bu0Zd1uw.d.ts → index-BMn9ghAX.d.ts} +3 -3
- package/dist/{index-CJlBAXwj.d.ts → index-BRfR0lhb.d.ts} +41 -4
- package/dist/{index-DNRBbwp_.d.ts → index-BTAgQRP0.d.ts} +758 -111
- package/dist/{index-DA52oIdw.d.ts → index-BcJBLWJ0.d.ts} +2 -2
- package/dist/{index-jdjcb3Js.d.ts → index-Bqb_Fyju.d.ts} +2 -2
- package/dist/{index-CNjbOgty.d.ts → index-C-QpeUlQ.d.ts} +2 -2
- package/dist/{index-DGXviOlp.d.ts → index-C2sfHfBw.d.ts} +31 -5
- package/dist/{index-By2mSzUA.d.ts → index-CA6RbRWx.d.ts} +1 -1
- package/dist/{index-gW0HW02U.d.ts → index-COxy6LEW.d.ts} +1 -1
- package/dist/{index-CVn0GBdB.d.ts → index-Ca8VIE4l.d.ts} +1 -1
- package/dist/{index-CRizexSC.d.ts → index-Ch6BbxCP.d.ts} +2 -67
- package/dist/{index-DWH_HzXi.d.ts → index-ChWlKHjc.d.ts} +1 -1
- package/dist/{index-kVhSuA9t.d.ts → index-Ctu32CLv.d.ts} +4 -4
- package/dist/{index-DOUEn7V0.d.ts → index-D1Twv_fL.d.ts} +65 -6
- package/dist/{index-D_nYxnNv.d.ts → index-D7-WTV6I.d.ts} +1 -1
- package/dist/{index-c_TaW8mM.d.ts → index-D8o50qOE.d.ts} +1 -1
- package/dist/{index-D4I_obqR.d.ts → index-DAiGhkNZ.d.ts} +1 -1
- package/dist/{index-Cs5pcwY3.d.ts → index-DMQG6kdM.d.ts} +3 -3
- package/dist/index-D_UEJIU5.d.ts +83 -0
- package/dist/{index-fa72tWIU.d.ts → index-DkVEBdWa.d.ts} +2 -2
- package/dist/{index-B1TG2GPS.d.ts → index-DxsKyAxq.d.ts} +116 -44
- package/dist/{index-BHqRH7QW.d.ts → index-FEy8qFSD.d.ts} +2 -2
- package/dist/{index-qiZtHnGK.d.ts → index-LIyvJTW3.d.ts} +39 -0
- package/dist/{index-BKr7yvVv.d.ts → index-MPcg1Pm4.d.ts} +1 -1
- package/dist/{index-cGagYM1g.d.ts → index-ViSV0RBx.d.ts} +1 -1
- package/dist/{index-C7mxUcDR.d.ts → index-f4NGT-e2.d.ts} +4 -4
- package/dist/{index-DsyKhauk.d.ts → index-foQMNKZO.d.ts} +1 -1
- package/dist/{index-u5ozu0G7.d.ts → index-vP0EtrJJ.d.ts} +13 -3
- package/dist/{index-CZeoAr0a.d.ts → index-xfkEuGLY.d.ts} +2 -2
- package/dist/index.d.ts +76 -75
- package/dist/index.js +115 -107
- package/dist/locale/index.d.ts +1 -1
- package/dist/locale/index.js +2 -2
- package/dist/{locale-Cpk_nrLA.js → locale-CCwVnyMZ.js} +25 -1
- package/dist/searchResultMessage-DN0HeRRB.js +94 -0
- package/dist/semantic-CKH9XVqa.d.ts +54 -0
- package/dist/{types-pnljWjEE.d.ts → types-CwyibrRB.d.ts} +12 -11
- package/dist/types-jmqqnkKA.d.ts +163 -0
- package/dist/{useAnchoredListbox-7W90Ny-9.js → useAnchoredListbox-BN9LQnon.js} +1 -1
- package/dist/useDatePresentation-C07PnOCw.js +21 -0
- package/dist/{useMonthGrid-CmJsZTcB.js → useDateRange-CIXoE_8k.js} +1 -42
- package/dist/useDisclosureHandle-Df3HhAfC.js +24 -0
- package/dist/{useDismiss-CAiHU6QD.js → useDismiss-Cj8x_51F.js} +8 -4
- package/dist/useFieldControlState-voICDrys.js +18 -0
- package/dist/useHandleRef-6cdKugm8.js +17 -0
- package/dist/useIndicator-i1NORM7W.js +147 -0
- package/dist/useMenuDrillIn-OaEwjK44.js +520 -0
- package/dist/useMonthGrid-fGHSSrFc.js +43 -0
- package/dist/usePendingChange-ib-h8FZK.js +25 -0
- package/dist/useSubmenuMode-CZN9qrUo.js +37 -0
- package/package.json +5 -1
- package/styles/calendar.css +38 -3
- package/styles/check-indicator.css +17 -0
- package/styles/checkbox-indicator.css +29 -10
- package/styles/checkbox-input.css +0 -11
- package/styles/date-input.css +48 -0
- package/styles/dropdown-menu.css +163 -0
- package/styles/field.css +48 -0
- package/styles/icon.css +51 -3
- package/styles/input-group.css +32 -3
- package/styles/multi-selector.css +26 -0
- package/styles/radio-indicator.css +90 -0
- package/styles/radio.css +9 -42
- package/styles/selector.css +112 -14
- package/styles.css +2 -0
- package/dist/Calendar-BFaI5AMv.js +0 -352
- package/dist/CheckboxIndicator-DdJmksHt.js +0 -52
- package/dist/DateInput-BLocxqC3.js +0 -376
- package/dist/DropdownMenu-Ddfr-aEC.js +0 -164
- package/dist/InputGroup-ChrFVxzV.js +0 -42
- package/dist/Selector-DE2IEFML.js +0 -468
- package/dist/index-Bgv4ZmBl.d.ts +0 -72
- package/dist/index-DN7MXPHM.d.ts +0 -398
- package/dist/index-IbUN4M8V.d.ts +0 -40
- package/dist/types-DDAAT1Xd.d.ts +0 -285
- package/dist/useGridRovingFocus-DQQAOYH5.js +0 -99
- /package/dist/{index-BUXNRekN.d.ts → index-BXkNZF3q.d.ts} +0 -0
|
@@ -1,33 +1,17 @@
|
|
|
1
1
|
import { t as useMediaQuery } from "./useMediaQuery-GMmgp28-.js";
|
|
2
|
-
import { t as useDismiss } from "./useDismiss-
|
|
2
|
+
import { t as useDismiss } from "./useDismiss-Cj8x_51F.js";
|
|
3
3
|
import { t as useLongPress } from "./useLongPress-Cyxwa73s.js";
|
|
4
4
|
import { n as useOverflow } from "./useOverflow-VrwF5oek.js";
|
|
5
|
+
import { a as useAstryxMessages } from "./context-DmOLCubj.js";
|
|
5
6
|
import { t as usePositionedLayer } from "./usePositionedLayer-C1NBOsVT.js";
|
|
6
7
|
import { t as _sfc_main$6 } from "./BottomSheet-Dg95HB1s.js";
|
|
7
|
-
import { t as _sfc_main$7 } from "./Icon-
|
|
8
|
-
import {
|
|
8
|
+
import { t as _sfc_main$7 } from "./Icon-bteSId7T.js";
|
|
9
|
+
import { c as contextMenuContextKey, d as useContextMenuSize, i as _sfc_main$8, l as submenuAncestorOpenKey, n as _sfc_main$10, r as _sfc_main$9, t as useMenuDrillIn, u as useContextMenu } from "./useMenuDrillIn-OaEwjK44.js";
|
|
10
|
+
import { t as _sfc_main$11 } from "./Divider-BtwnL18I.js";
|
|
11
|
+
import { t as _sfc_main$12 } from "./Spinner-9cYUCnDy.js";
|
|
12
|
+
import { t as useSubmenuMode } from "./useSubmenuMode-CZN9qrUo.js";
|
|
9
13
|
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, shallowRef, toDisplayString, unref, useAttrs, useId, useModel, useTemplateRef, vShow, watch, withCtx, withDirectives, withModifiers } from "vue";
|
|
10
14
|
import "../styles/context-menu.css";
|
|
11
|
-
//#region src/ContextMenu/context.ts
|
|
12
|
-
const contextMenuContextKey = Symbol("astryx-context-menu");
|
|
13
|
-
/**
|
|
14
|
-
* Whether the submenu flyout that contains this one is showing.
|
|
15
|
-
*
|
|
16
|
-
* Nested flyouts are teleported to `body`, so hiding an ancestor's DOM does
|
|
17
|
-
* not hide them. Each submenu provides its own `showsFlyout` for the next
|
|
18
|
-
* level; a row with no ancestor submenu reads as open.
|
|
19
|
-
*/
|
|
20
|
-
const submenuAncestorOpenKey = Symbol("astryx-submenu-ancestor-open");
|
|
21
|
-
/** The surrounding menu, or `undefined` when the row stands alone. */
|
|
22
|
-
function useContextMenu() {
|
|
23
|
-
return inject(contextMenuContextKey, void 0);
|
|
24
|
-
}
|
|
25
|
-
/** The row density of the surrounding menu, or the menu default. */
|
|
26
|
-
function useContextMenuSize() {
|
|
27
|
-
const menu = useContextMenu();
|
|
28
|
-
return computed(() => menu?.menuSize.value ?? "md");
|
|
29
|
-
}
|
|
30
|
-
//#endregion
|
|
31
15
|
//#region src/ContextMenu/ContextMenuDivider.vue
|
|
32
16
|
const _sfc_main$5 = /*@__PURE__*/ defineComponent({
|
|
33
17
|
name: "AstryxContextMenuDivider",
|
|
@@ -35,7 +19,7 @@ const _sfc_main$5 = /*@__PURE__*/ defineComponent({
|
|
|
35
19
|
props: { variant: { default: "subtle" } },
|
|
36
20
|
setup(__props) {
|
|
37
21
|
return (_ctx, _cache) => {
|
|
38
|
-
return openBlock(), createBlock(_sfc_main$
|
|
22
|
+
return openBlock(), createBlock(_sfc_main$11, {
|
|
39
23
|
class: "astryx-context-menu-divider",
|
|
40
24
|
variant: __props.variant
|
|
41
25
|
}, null, 8, ["variant"]);
|
|
@@ -288,12 +272,12 @@ const _hoisted_1$2 = {
|
|
|
288
272
|
key: 0,
|
|
289
273
|
class: "astryx-context-menu-item__start"
|
|
290
274
|
};
|
|
291
|
-
const _hoisted_2$
|
|
292
|
-
const _hoisted_3$
|
|
275
|
+
const _hoisted_2$2 = { class: "astryx-context-menu-item__content" };
|
|
276
|
+
const _hoisted_3$2 = {
|
|
293
277
|
class: "astryx-context-menu-item__label",
|
|
294
278
|
"data-menu-item-label": ""
|
|
295
279
|
};
|
|
296
|
-
const _hoisted_4$
|
|
280
|
+
const _hoisted_4$2 = {
|
|
297
281
|
key: 0,
|
|
298
282
|
class: "astryx-context-menu-item__description"
|
|
299
283
|
};
|
|
@@ -377,7 +361,7 @@ const _sfc_main$3 = /*@__PURE__*/ defineComponent({
|
|
|
377
361
|
icon: __props.icon,
|
|
378
362
|
size: "sm"
|
|
379
363
|
}, null, 8, ["color", "icon"])])])) : createCommentVNode("v-if", true),
|
|
380
|
-
createElementVNode("span", _hoisted_2$
|
|
364
|
+
createElementVNode("span", _hoisted_2$2, [createElementVNode("span", _hoisted_3$2, [renderSlot(_ctx.$slots, "label", {}, () => [createTextVNode(toDisplayString(__props.label), 1)])]), __props.description != null || _ctx.$slots.description ? (openBlock(), createElementBlock("span", _hoisted_4$2, [renderSlot(_ctx.$slots, "description", {}, () => [createTextVNode(toDisplayString(__props.description), 1)])])) : createCommentVNode("v-if", true)]),
|
|
381
365
|
__props.endContent != null || _ctx.$slots.endContent ? (openBlock(), createElementBlock("span", _hoisted_5$1, [renderSlot(_ctx.$slots, "endContent", {}, () => [createTextVNode(toDisplayString(__props.endContent), 1)])])) : createCommentVNode("v-if", true)
|
|
382
366
|
]),
|
|
383
367
|
_: 3
|
|
@@ -627,12 +611,12 @@ const _hoisted_1$1 = [
|
|
|
627
611
|
"data-size",
|
|
628
612
|
"tabindex"
|
|
629
613
|
];
|
|
630
|
-
const _hoisted_2 = {
|
|
614
|
+
const _hoisted_2$1 = {
|
|
631
615
|
key: 0,
|
|
632
616
|
class: "astryx-context-menu-item__start"
|
|
633
617
|
};
|
|
634
|
-
const _hoisted_3 = { class: "astryx-context-menu-item__content" };
|
|
635
|
-
const _hoisted_4 = {
|
|
618
|
+
const _hoisted_3$1 = { class: "astryx-context-menu-item__content" };
|
|
619
|
+
const _hoisted_4$1 = {
|
|
636
620
|
class: "astryx-context-menu-item__label",
|
|
637
621
|
"data-menu-item-label": ""
|
|
638
622
|
};
|
|
@@ -641,7 +625,12 @@ const _hoisted_5 = {
|
|
|
641
625
|
class: "astryx-context-menu-item__description"
|
|
642
626
|
};
|
|
643
627
|
const _hoisted_6 = { class: "astryx-context-menu-item__end" };
|
|
644
|
-
const _hoisted_7 =
|
|
628
|
+
const _hoisted_7 = {
|
|
629
|
+
key: 0,
|
|
630
|
+
"aria-hidden": "true"
|
|
631
|
+
};
|
|
632
|
+
const _hoisted_8 = ["aria-label", "hidden"];
|
|
633
|
+
const _hoisted_9 = [
|
|
645
634
|
"aria-label",
|
|
646
635
|
"data-overflow",
|
|
647
636
|
"data-placement",
|
|
@@ -660,7 +649,13 @@ const _sfc_main$2 = /*@__PURE__*/ defineComponent({
|
|
|
660
649
|
type: Boolean,
|
|
661
650
|
default: false
|
|
662
651
|
},
|
|
663
|
-
items: {}
|
|
652
|
+
items: {},
|
|
653
|
+
hasSpinner: {
|
|
654
|
+
type: Boolean,
|
|
655
|
+
default: false
|
|
656
|
+
},
|
|
657
|
+
menuWidth: {},
|
|
658
|
+
presentation: { default: "adaptive" }
|
|
664
659
|
},
|
|
665
660
|
emits: ["openChange", "select"],
|
|
666
661
|
setup(__props, { emit: __emit }) {
|
|
@@ -669,6 +664,21 @@ const _sfc_main$2 = /*@__PURE__*/ defineComponent({
|
|
|
669
664
|
const attrs = useAttrs();
|
|
670
665
|
const menu = useContextMenu();
|
|
671
666
|
const size = useContextMenuSize();
|
|
667
|
+
const messages = useAstryxMessages();
|
|
668
|
+
const viewId = useId();
|
|
669
|
+
const mode = useSubmenuMode({
|
|
670
|
+
drillIn: computed(() => menu?.drillIn.value),
|
|
671
|
+
presentation: computed(() => props.presentation),
|
|
672
|
+
viewId
|
|
673
|
+
});
|
|
674
|
+
const isDrill = mode.isDrill;
|
|
675
|
+
const drillOnStack = mode.isOnStack;
|
|
676
|
+
const drillIsTop = mode.isTop;
|
|
677
|
+
const drillHost = computed(() => isDrill.value ? menu?.drillIn.value.host ?? null : null);
|
|
678
|
+
const backLabel = computed(() => {
|
|
679
|
+
const parent = menu?.menuLabel.value;
|
|
680
|
+
return parent != null && parent !== "" ? messages.value.dropdownMenu.backTo(parent) : messages.value.dropdownMenu.back;
|
|
681
|
+
});
|
|
672
682
|
const row = useTemplateRef("row");
|
|
673
683
|
const flyout = useTemplateRef("flyout");
|
|
674
684
|
const isOpen = ref(false);
|
|
@@ -685,10 +695,14 @@ const _sfc_main$2 = /*@__PURE__*/ defineComponent({
|
|
|
685
695
|
alignment: computed(() => "start"),
|
|
686
696
|
gap: GAP$1
|
|
687
697
|
});
|
|
688
|
-
const flyoutStyle = computed(() =>
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
698
|
+
const flyoutStyle = computed(() => {
|
|
699
|
+
const style = {
|
|
700
|
+
left: `${position.value.left}px`,
|
|
701
|
+
top: `${position.value.top}px`
|
|
702
|
+
};
|
|
703
|
+
if (props.menuWidth != null) style.minWidth = `min(${typeof props.menuWidth === "number" ? `${props.menuWidth}px` : props.menuWidth}, calc(100vw - 16px))`;
|
|
704
|
+
return style;
|
|
705
|
+
});
|
|
692
706
|
const hasOverflow = useOverflow(flyout, showsFlyout);
|
|
693
707
|
const nav = useMenuNav({
|
|
694
708
|
menuRef: flyout,
|
|
@@ -714,6 +728,13 @@ const _sfc_main$2 = /*@__PURE__*/ defineComponent({
|
|
|
714
728
|
});
|
|
715
729
|
function open(focusFirstRow) {
|
|
716
730
|
if (props.isDisabled) return;
|
|
731
|
+
if (isDrill.value) {
|
|
732
|
+
const wasOpen = drillOnStack.value;
|
|
733
|
+
mode.openDrill();
|
|
734
|
+
if (!wasOpen) emit("openChange", true);
|
|
735
|
+
if (focusFirstRow) nextTick(() => nav.focusFirst());
|
|
736
|
+
return;
|
|
737
|
+
}
|
|
717
738
|
if (isOpen.value) {
|
|
718
739
|
if (focusFirstRow) nav.focusFirst();
|
|
719
740
|
return;
|
|
@@ -730,6 +751,12 @@ const _sfc_main$2 = /*@__PURE__*/ defineComponent({
|
|
|
730
751
|
hover.noteHoverOpened();
|
|
731
752
|
}
|
|
732
753
|
function close(focusRow) {
|
|
754
|
+
if (isDrill.value) {
|
|
755
|
+
if (!mode.closeDrill()) return;
|
|
756
|
+
emit("openChange", false);
|
|
757
|
+
if (focusRow) row.value?.focus();
|
|
758
|
+
return;
|
|
759
|
+
}
|
|
733
760
|
const wasOpen = isOpen.value;
|
|
734
761
|
hover.markClosed();
|
|
735
762
|
if (!wasOpen) return;
|
|
@@ -799,7 +826,7 @@ const _sfc_main$2 = /*@__PURE__*/ defineComponent({
|
|
|
799
826
|
}, unref(attrs), {
|
|
800
827
|
"aria-controls": flyoutId,
|
|
801
828
|
"aria-disabled": __props.isDisabled || void 0,
|
|
802
|
-
"aria-expanded": showsFlyout.value,
|
|
829
|
+
"aria-expanded": showsFlyout.value || unref(drillOnStack),
|
|
803
830
|
"aria-haspopup": "menu",
|
|
804
831
|
class: ["astryx-context-menu-item astryx-context-menu-item--submenu", unref(attrs).class],
|
|
805
832
|
"data-disabled": __props.isDisabled || void 0,
|
|
@@ -814,20 +841,50 @@ const _sfc_main$2 = /*@__PURE__*/ defineComponent({
|
|
|
814
841
|
onPointerleave: _cache[0] || (_cache[0] = (...args) => unref(hover).onTriggerPointerLeave && unref(hover).onTriggerPointerLeave(...args)),
|
|
815
842
|
onPointermove: onRowPointerMove
|
|
816
843
|
}), [
|
|
817
|
-
__props.icon != null || _ctx.$slots.icon ? (openBlock(), createElementBlock("span", _hoisted_2, [renderSlot(_ctx.$slots, "icon", {}, () => [createVNode(_sfc_main$7, {
|
|
844
|
+
__props.icon != null || _ctx.$slots.icon ? (openBlock(), createElementBlock("span", _hoisted_2$1, [renderSlot(_ctx.$slots, "icon", {}, () => [createVNode(_sfc_main$7, {
|
|
818
845
|
icon: __props.icon,
|
|
819
846
|
color: "secondary",
|
|
820
847
|
size: "sm"
|
|
821
848
|
}, null, 8, ["icon"])])])) : createCommentVNode("v-if", true),
|
|
822
|
-
createElementVNode("span", _hoisted_3, [createElementVNode("span", _hoisted_4, [renderSlot(_ctx.$slots, "label", {}, () => [createTextVNode(toDisplayString(__props.label), 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)]),
|
|
823
|
-
createElementVNode("span", _hoisted_6, [renderSlot(_ctx.$slots, "endContent", {}, () => [createVNode(_sfc_main$7, {
|
|
849
|
+
createElementVNode("span", _hoisted_3$1, [createElementVNode("span", _hoisted_4$1, [renderSlot(_ctx.$slots, "label", {}, () => [createTextVNode(toDisplayString(__props.label), 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)]),
|
|
850
|
+
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$7, {
|
|
851
|
+
key: 1,
|
|
824
852
|
class: "astryx-context-menu-item__chevron",
|
|
825
853
|
icon: "chevronRight",
|
|
826
854
|
color: "secondary",
|
|
827
855
|
size: "sm"
|
|
828
|
-
})])])
|
|
856
|
+
}))])])
|
|
829
857
|
], 16, _hoisted_1$1),
|
|
830
|
-
(openBlock(), createBlock(Teleport, {
|
|
858
|
+
drillHost.value ? (openBlock(), createBlock(Teleport, {
|
|
859
|
+
key: 0,
|
|
860
|
+
to: drillHost.value
|
|
861
|
+
}, [withDirectives(createElementVNode("div", {
|
|
862
|
+
ref_key: "flyout",
|
|
863
|
+
ref: flyout,
|
|
864
|
+
class: "astryx-context-menu astryx-context-menu--flyout",
|
|
865
|
+
role: "menu",
|
|
866
|
+
"aria-label": flyoutLabel.value,
|
|
867
|
+
hidden: unref(drillIsTop) ? void 0 : true,
|
|
868
|
+
tabindex: "-1",
|
|
869
|
+
onKeydown: onFlyoutKeyDown
|
|
870
|
+
}, [createVNode(_sfc_main$3, {
|
|
871
|
+
"has-close-on-select": false,
|
|
872
|
+
label: backLabel.value,
|
|
873
|
+
onClick: _cache[1] || (_cache[1] = ($event) => close(true))
|
|
874
|
+
}, {
|
|
875
|
+
icon: withCtx(() => [createVNode(_sfc_main$7, {
|
|
876
|
+
color: "secondary",
|
|
877
|
+
icon: "chevronLeft",
|
|
878
|
+
size: "sm"
|
|
879
|
+
})]),
|
|
880
|
+
_: 1
|
|
881
|
+
}, 8, ["label"]), renderSlot(_ctx.$slots, "default", {}, () => [createVNode(_sfc_main$1, {
|
|
882
|
+
items: __props.items ?? [],
|
|
883
|
+
onSelect: onNestedSelect
|
|
884
|
+
}, null, 8, ["items"])])], 40, _hoisted_8), [[vShow, unref(drillOnStack)]])], 8, ["to"])) : (openBlock(), createBlock(Teleport, {
|
|
885
|
+
key: 1,
|
|
886
|
+
to: "body"
|
|
887
|
+
}, [createVNode(Transition, {
|
|
831
888
|
name: "astryx-context-menu-flyout",
|
|
832
889
|
persisted: ""
|
|
833
890
|
}, {
|
|
@@ -843,14 +900,14 @@ const _sfc_main$2 = /*@__PURE__*/ defineComponent({
|
|
|
843
900
|
role: "menu",
|
|
844
901
|
style: normalizeStyle(flyoutStyle.value),
|
|
845
902
|
tabindex: "-1",
|
|
846
|
-
onContextmenu: _cache[
|
|
903
|
+
onContextmenu: _cache[2] || (_cache[2] = withModifiers(() => {}, ["prevent"])),
|
|
847
904
|
onKeydown: onFlyoutKeyDown,
|
|
848
|
-
onPointerenter: _cache[
|
|
849
|
-
onPointerleave: _cache[
|
|
905
|
+
onPointerenter: _cache[3] || (_cache[3] = (...args) => unref(hover).onFlyoutPointerEnter && unref(hover).onFlyoutPointerEnter(...args)),
|
|
906
|
+
onPointerleave: _cache[4] || (_cache[4] = (...args) => unref(hover).onFlyoutPointerLeave && unref(hover).onFlyoutPointerLeave(...args))
|
|
850
907
|
}, [renderSlot(_ctx.$slots, "default", {}, () => [createVNode(_sfc_main$1, {
|
|
851
908
|
items: __props.items ?? [],
|
|
852
909
|
onSelect: onNestedSelect
|
|
853
|
-
}, null, 8, ["items"])])], 44,
|
|
910
|
+
}, null, 8, ["items"])])], 44, _hoisted_9), [[vShow, showsFlyout.value]])]),
|
|
854
911
|
_: 3
|
|
855
912
|
})]))
|
|
856
913
|
], 64);
|
|
@@ -866,6 +923,12 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
866
923
|
emits: ["select"],
|
|
867
924
|
setup(__props, { emit: __emit }) {
|
|
868
925
|
const emit = __emit;
|
|
926
|
+
function isCheckbox(option) {
|
|
927
|
+
return option.type === "checkbox";
|
|
928
|
+
}
|
|
929
|
+
function isRadio(option) {
|
|
930
|
+
return option.type === "radio";
|
|
931
|
+
}
|
|
869
932
|
function isDivider(option) {
|
|
870
933
|
return option.type === "divider";
|
|
871
934
|
}
|
|
@@ -889,6 +952,8 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
889
952
|
function keyOf(option, index) {
|
|
890
953
|
if (option.type === "divider") return `divider-${index}`;
|
|
891
954
|
if (option.type === "section") return `section-${option.id ?? index}`;
|
|
955
|
+
if (option.type === "checkbox") return `checkbox-${option.id ?? index}`;
|
|
956
|
+
if (option.type === "radio") return `radio-${option.id ?? index}`;
|
|
892
957
|
return `item-${option.id ?? index}`;
|
|
893
958
|
}
|
|
894
959
|
function onRowClick(option, event) {
|
|
@@ -899,11 +964,60 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
899
964
|
function onNestedSelect(item, event) {
|
|
900
965
|
emit("select", item, event);
|
|
901
966
|
}
|
|
967
|
+
function onRadioModel(option, value) {
|
|
968
|
+
if (value != null) option.onChange?.(value);
|
|
969
|
+
}
|
|
902
970
|
return (_ctx, _cache) => {
|
|
903
971
|
const _component_ContextMenuItems = resolveComponent("ContextMenuItems", true);
|
|
904
972
|
return openBlock(true), createElementBlock(Fragment, null, renderList(__props.items, (option, index) => {
|
|
905
|
-
return openBlock(), createElementBlock(Fragment, { key: keyOf(option, index) }, [isDivider(option) ? (openBlock(), createBlock(_sfc_main$5, { key: 0 })) :
|
|
973
|
+
return openBlock(), createElementBlock(Fragment, { key: keyOf(option, index) }, [isDivider(option) ? (openBlock(), createBlock(_sfc_main$5, { key: 0 })) : isCheckbox(option) ? (openBlock(), createBlock(_sfc_main$8, {
|
|
906
974
|
key: 1,
|
|
975
|
+
description: option.description,
|
|
976
|
+
"has-close-on-select": option.hasCloseOnSelect,
|
|
977
|
+
icon: option.icon,
|
|
978
|
+
"is-disabled": option.isDisabled,
|
|
979
|
+
label: option.label,
|
|
980
|
+
"model-value": option.checked,
|
|
981
|
+
"onUpdate:modelValue": ($event) => option.onChange?.($event)
|
|
982
|
+
}, null, 8, [
|
|
983
|
+
"description",
|
|
984
|
+
"has-close-on-select",
|
|
985
|
+
"icon",
|
|
986
|
+
"is-disabled",
|
|
987
|
+
"label",
|
|
988
|
+
"model-value",
|
|
989
|
+
"onUpdate:modelValue"
|
|
990
|
+
])) : isRadio(option) ? (openBlock(), createBlock(_sfc_main$9, {
|
|
991
|
+
key: 2,
|
|
992
|
+
"has-close-on-select": option.hasCloseOnSelect,
|
|
993
|
+
label: option.label,
|
|
994
|
+
"model-value": option.value,
|
|
995
|
+
"onUpdate:modelValue": ($event) => onRadioModel(option, $event)
|
|
996
|
+
}, {
|
|
997
|
+
default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(option.items, (choice, choiceIndex) => {
|
|
998
|
+
return openBlock(), createBlock(_sfc_main$10, {
|
|
999
|
+
key: choice.id ?? choiceIndex,
|
|
1000
|
+
description: choice.description,
|
|
1001
|
+
icon: choice.icon,
|
|
1002
|
+
"is-disabled": choice.isDisabled,
|
|
1003
|
+
label: choice.label,
|
|
1004
|
+
value: choice.value
|
|
1005
|
+
}, null, 8, [
|
|
1006
|
+
"description",
|
|
1007
|
+
"icon",
|
|
1008
|
+
"is-disabled",
|
|
1009
|
+
"label",
|
|
1010
|
+
"value"
|
|
1011
|
+
]);
|
|
1012
|
+
}), 128))]),
|
|
1013
|
+
_: 2
|
|
1014
|
+
}, 1032, [
|
|
1015
|
+
"has-close-on-select",
|
|
1016
|
+
"label",
|
|
1017
|
+
"model-value",
|
|
1018
|
+
"onUpdate:modelValue"
|
|
1019
|
+
])) : isSection(option) ? (openBlock(), createBlock(_sfc_main$4, {
|
|
1020
|
+
key: 3,
|
|
907
1021
|
title: option.title
|
|
908
1022
|
}, {
|
|
909
1023
|
default: withCtx(() => [createVNode(_component_ContextMenuItems, {
|
|
@@ -912,7 +1026,7 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
912
1026
|
}, null, 8, ["items"])]),
|
|
913
1027
|
_: 2
|
|
914
1028
|
}, 1032, ["title"])) : isSubMenu(option) ? (openBlock(), createBlock(_sfc_main$2, {
|
|
915
|
-
key:
|
|
1029
|
+
key: 4,
|
|
916
1030
|
icon: option.icon,
|
|
917
1031
|
"is-disabled": option.isDisabled,
|
|
918
1032
|
items: option.items,
|
|
@@ -924,7 +1038,7 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
924
1038
|
"items",
|
|
925
1039
|
"label"
|
|
926
1040
|
])) : (openBlock(), createBlock(_sfc_main$3, mergeProps({
|
|
927
|
-
key:
|
|
1041
|
+
key: 5,
|
|
928
1042
|
ref_for: true
|
|
929
1043
|
}, itemProps(option), { onClick: ($event) => onRowClick(option, $event) }), null, 16, ["onClick"]))], 64);
|
|
930
1044
|
}), 128);
|
|
@@ -1089,6 +1203,9 @@ const _hoisted_1 = [
|
|
|
1089
1203
|
"data-size",
|
|
1090
1204
|
"data-width"
|
|
1091
1205
|
];
|
|
1206
|
+
const _hoisted_2 = ["hidden", "inert"];
|
|
1207
|
+
const _hoisted_3 = ["aria-label"];
|
|
1208
|
+
const _hoisted_4 = ["hidden", "inert"];
|
|
1092
1209
|
const GAP = 0;
|
|
1093
1210
|
const DEFAULT_MIN_WIDTH = 160;
|
|
1094
1211
|
const ADAPTIVE_QUERY = "(max-width: 768px) and (pointer: coarse)";
|
|
@@ -1176,10 +1293,18 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
1176
1293
|
openAt(rect == null ? point.x : point.x - rect.left, rect == null ? point.y : point.y - rect.top);
|
|
1177
1294
|
}
|
|
1178
1295
|
});
|
|
1296
|
+
const { drillIn, host, isDrilled } = useMenuDrillIn(isOpen, ADAPTIVE_QUERY);
|
|
1179
1297
|
useDismiss({
|
|
1180
1298
|
container: panel,
|
|
1181
1299
|
isEnabled: isOpen,
|
|
1182
|
-
onDismiss: () => closeMenu()
|
|
1300
|
+
onDismiss: () => closeMenu(),
|
|
1301
|
+
onEscape: () => {
|
|
1302
|
+
if (drillIn.value.viewStack.length > 0) {
|
|
1303
|
+
drillIn.value.pop();
|
|
1304
|
+
return;
|
|
1305
|
+
}
|
|
1306
|
+
closeMenu({ restoreFocus: true });
|
|
1307
|
+
}
|
|
1183
1308
|
});
|
|
1184
1309
|
function formatSize(value) {
|
|
1185
1310
|
return typeof value === "number" ? `${value}px` : value;
|
|
@@ -1256,8 +1381,12 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
1256
1381
|
function onSelect(item, event) {
|
|
1257
1382
|
emit("select", item, event);
|
|
1258
1383
|
}
|
|
1384
|
+
function assignHost(element) {
|
|
1385
|
+
host.value = element instanceof HTMLElement ? element : null;
|
|
1386
|
+
}
|
|
1259
1387
|
provide(contextMenuContextKey, {
|
|
1260
1388
|
closeMenu,
|
|
1389
|
+
drillIn,
|
|
1261
1390
|
isOpen,
|
|
1262
1391
|
menuLabel: computed(() => props.label),
|
|
1263
1392
|
menuSize: computed(() => props.size)
|
|
@@ -1346,11 +1475,19 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
1346
1475
|
onContextmenu: _cache[0] || (_cache[0] = withModifiers(() => {}, ["prevent"])),
|
|
1347
1476
|
onKeydown: _cache[1] || (_cache[1] = (...args) => unref(nav).handleKeyDown && unref(nav).handleKeyDown(...args)),
|
|
1348
1477
|
onPointerdown: _cache[2] || (_cache[2] = (...args) => unref(menuPress).onPointerDown && unref(menuPress).onPointerDown(...args))
|
|
1349
|
-
}, [
|
|
1478
|
+
}, [createElementVNode("div", {
|
|
1479
|
+
class: "astryx-dropdown-menu-tree",
|
|
1480
|
+
hidden: unref(isDrilled) || void 0,
|
|
1481
|
+
inert: unref(isDrilled) || void 0
|
|
1482
|
+
}, [__props.items != null ? (openBlock(), createBlock(_sfc_main$1, {
|
|
1350
1483
|
key: 0,
|
|
1351
1484
|
items: __props.items,
|
|
1352
1485
|
onSelect
|
|
1353
|
-
}, null, 8, ["items"])) :
|
|
1486
|
+
}, null, 8, ["items"])) : renderSlot(_ctx.$slots, "content", {}, void 0, void 0, 1)], 8, _hoisted_2), !isSheet.value ? (openBlock(), createElementBlock("div", {
|
|
1487
|
+
key: 0,
|
|
1488
|
+
ref: assignHost,
|
|
1489
|
+
class: "astryx-dropdown-menu-tree"
|
|
1490
|
+
}, null, 512)) : createCommentVNode("v-if", true)], 46, _hoisted_1), [[vShow, isOpen.value && !isSheet.value]])]),
|
|
1354
1491
|
_: 3
|
|
1355
1492
|
})])),
|
|
1356
1493
|
isSheet.value ? (openBlock(), createBlock(_sfc_main$6, {
|
|
@@ -1359,11 +1496,22 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
1359
1496
|
label: __props.label,
|
|
1360
1497
|
"onUpdate:isOpen": onSheetOpen
|
|
1361
1498
|
}, {
|
|
1362
|
-
default: withCtx(() => [
|
|
1499
|
+
default: withCtx(() => [createElementVNode("div", {
|
|
1500
|
+
class: "astryx-context-menu-sheet",
|
|
1501
|
+
role: "menu",
|
|
1502
|
+
"aria-label": __props.label
|
|
1503
|
+
}, [createElementVNode("div", {
|
|
1504
|
+
class: "astryx-dropdown-menu-tree",
|
|
1505
|
+
hidden: unref(isDrilled) || void 0,
|
|
1506
|
+
inert: unref(isDrilled) || void 0
|
|
1507
|
+
}, [__props.items != null ? (openBlock(), createBlock(_sfc_main$1, {
|
|
1363
1508
|
key: 0,
|
|
1364
1509
|
items: __props.items,
|
|
1365
1510
|
onSelect
|
|
1366
|
-
}, null, 8, ["items"])) : renderSlot(_ctx.$slots, "content", {}, void 0, void 0, 1)]),
|
|
1511
|
+
}, null, 8, ["items"])) : renderSlot(_ctx.$slots, "content", {}, void 0, void 0, 1)], 8, _hoisted_4), createElementVNode("div", {
|
|
1512
|
+
ref: assignHost,
|
|
1513
|
+
class: "astryx-dropdown-menu-tree"
|
|
1514
|
+
}, null, 512)], 8, _hoisted_3)]),
|
|
1367
1515
|
_: 3
|
|
1368
1516
|
}, 8, ["is-open", "label"])) : createCommentVNode("v-if", true)
|
|
1369
1517
|
], 64);
|
|
@@ -1371,4 +1519,4 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
1371
1519
|
}
|
|
1372
1520
|
});
|
|
1373
1521
|
//#endregion
|
|
1374
|
-
export { _sfc_main$5 as a, _sfc_main$4 as i, _sfc_main$2 as n,
|
|
1522
|
+
export { _sfc_main$5 as a, _sfc_main$4 as i, _sfc_main$2 as n, _sfc_main$3 as r, _sfc_main as t };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ar as DateInputFormatName, cr as
|
|
2
|
-
export { _default as DateInput, type DateInputEmits, type DateInputFormat, type DateInputFormatName, type DateInputPresentation, type DateInputProps, type DateInputSlots, type DateInputStatus, type DateInputStatusType };
|
|
1
|
+
import { ar as DateInputFormatName, cr as DateInputProps, dr as DateInputStatusType, ir as DateInputFormat, lr as DateInputSlots, nr as _default, or as DateInputNativePicker, rr as DateInputEmits, sr as DateInputPresentation, ur as DateInputStatus } from "../index-BTAgQRP0.js";
|
|
2
|
+
export { _default as DateInput, type DateInputEmits, type DateInputFormat, type DateInputFormatName, type DateInputNativePicker, type DateInputPresentation, type DateInputProps, type DateInputSlots, type DateInputStatus, type DateInputStatusType };
|
package/dist/DateInput/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _sfc_main } from "../DateInput-
|
|
1
|
+
import { t as _sfc_main } from "../DateInput-zm8sNc0t.js";
|
|
2
2
|
export { _sfc_main as DateInput };
|