@astryx-vue/core 0.45.1 → 0.45.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/dist/AvatarGroup/index.d.ts +1 -1
- package/dist/Banner/index.d.ts +1 -1
- package/dist/BottomSheet/index.d.ts +1 -1
- package/dist/Breadcrumbs/index.js +2 -2
- package/dist/{Breadcrumbs-CxVd4tga.js → Breadcrumbs-Bk3b_Olo.js} +1 -1
- package/dist/Button/index.d.ts +1 -1
- package/dist/ButtonGroup/index.d.ts +1 -1
- package/dist/Calendar/index.d.ts +1 -1
- package/dist/Carousel/index.d.ts +1 -1
- package/dist/Center/index.d.ts +1 -1
- package/dist/Chat/index.d.ts +1 -1
- package/dist/Chat/index.js +1 -1
- package/dist/{Chat-Bo3jDoY2.js → Chat-CTc9Hs1X.js} +63 -18
- package/dist/CheckboxInput/index.d.ts +1 -1
- package/dist/CheckboxList/index.d.ts +1 -1
- package/dist/ClickableCard/index.d.ts +1 -1
- package/dist/ComplexSelector/index.d.ts +1 -1
- package/dist/ContextMenu/index.d.ts +1 -1
- package/dist/ContextMenu/index.js +2 -2
- package/dist/{ContextMenu-CERvzywk.js → ContextMenu-CqnGrEb6.js} +36 -18
- package/dist/DateInput/index.d.ts +1 -1
- package/dist/DateRangeInput/index.d.ts +1 -1
- package/dist/DateTimeInput/index.d.ts +1 -1
- package/dist/Dialog/index.d.ts +1 -1
- package/dist/Drawer/index.d.ts +1 -1
- package/dist/DropdownMenu/index.d.ts +1 -1
- package/dist/DropdownMenu/index.js +2 -2
- package/dist/{DropdownMenu-B_wM21MY.js → DropdownMenu-DKr8RC2H.js} +122 -87
- package/dist/Heading/index.d.ts +1 -1
- package/dist/InfoTip/index.d.ts +1 -1
- package/dist/Link/index.d.ts +1 -1
- package/dist/List/index.d.ts +1 -1
- package/dist/Markdown/index.d.ts +1 -1
- package/dist/MetadataList/index.d.ts +1 -1
- package/dist/MoreMenu/index.d.ts +1 -1
- package/dist/MultiSelector/index.d.ts +1 -1
- package/dist/NavItem/index.d.ts +1 -1
- package/dist/NumberInput/index.d.ts +1 -1
- package/dist/OverflowList/index.d.ts +1 -1
- package/dist/Pagination/index.d.ts +1 -1
- package/dist/Popover/index.d.ts +1 -1
- package/dist/PowerSearch/index.d.ts +1 -1
- package/dist/ProgressBar/index.d.ts +1 -1
- package/dist/Radio/index.d.ts +1 -1
- package/dist/RadioList/index.d.ts +1 -1
- package/dist/Resizable/index.d.ts +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/SideNav/index.d.ts +1 -1
- package/dist/Stack/index.d.ts +1 -1
- package/dist/Stepper/index.d.ts +1 -1
- package/dist/Switch/index.d.ts +1 -1
- package/dist/TabList/index.d.ts +1 -1
- package/dist/Table/index.d.ts +1 -1
- package/dist/Text/index.d.ts +1 -1
- package/dist/TextArea/index.d.ts +1 -1
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/TimeInput/index.d.ts +1 -1
- package/dist/Timestamp/index.d.ts +1 -1
- package/dist/ToggleButton/index.d.ts +1 -1
- package/dist/Token/index.d.ts +1 -1
- package/dist/Tokenizer/index.d.ts +1 -1
- package/dist/Toolbar/index.d.ts +1 -1
- package/dist/TopNav/index.d.ts +1 -1
- package/dist/TreeList/index.d.ts +1 -1
- package/dist/{accessibleName-CuQ2Zyti.js → accessibleName-DHGLl8Iq.js} +111 -29
- package/dist/{index-a6o69uPN.d.ts → index-Ak1b0V24.d.ts} +1 -1
- package/dist/{index-BgT6mH3U.d.ts → index-BB9acgK8.d.ts} +1 -1
- package/dist/{index-ZbNwGVkS.d.ts → index-BKnyTWPM.d.ts} +1 -1
- package/dist/{index-DZMs9KqG.d.ts → index-BMoR8Uoh.d.ts} +1 -1
- package/dist/{index-BbHuan0g.d.ts → index-BZ_lQz43.d.ts} +1 -1
- package/dist/{index-r-SMqLfv.d.ts → index-BtReVAyz.d.ts} +63 -58
- package/dist/{index-B_XTzQhm.d.ts → index-C5HUsKnf.d.ts} +2 -2
- package/dist/{index-waTkqxTz.d.ts → index-C89cIh4E.d.ts} +1 -1
- package/dist/{index-CbA8rR_b.d.ts → index-CBOv5j3c.d.ts} +1 -1
- package/dist/{index-CdvmnNMH.d.ts → index-COgrQZIL.d.ts} +1 -1
- package/dist/{index-Dy4tHTUG.d.ts → index-CRVO1inY.d.ts} +7 -7
- package/dist/{index-0rops6Vo.d.ts → index-Cg6pihUE.d.ts} +2 -2
- package/dist/{index-UG4bxHcx.d.ts → index-CkkybuPJ.d.ts} +2 -2
- package/dist/{index-BAp4nVVN.d.ts → index-CpLGbFCR.d.ts} +1 -1
- package/dist/{index-rdwI-mcm.d.ts → index-CtYlR9Cu.d.ts} +1 -1
- package/dist/{index-knkRQYho.d.ts → index-DHQtLCGt.d.ts} +2 -0
- package/dist/{index-CCa_dvoF.d.ts → index-Ds4dOCSy.d.ts} +3 -3
- package/dist/{index-COs_GSkP.d.ts → index-PydsflFS.d.ts} +8 -8
- package/dist/{index-BfFpUr1B.d.ts → index-ZKBj_1nu.d.ts} +1 -1
- package/dist/{index-C9iidKbL.d.ts → index-cgAit2pF.d.ts} +3 -3
- package/dist/{index-K9yFjQxo.d.ts → index-dgfLDqBm.d.ts} +2 -2
- package/dist/{index-C3JmGujU.d.ts → index-mK1ICsVg.d.ts} +1 -1
- package/dist/{index-NOXYEdOI.d.ts → index-utZGF4GR.d.ts} +1 -1
- package/dist/index.d.ts +24 -24
- package/dist/index.js +5 -5
- package/package.json +1 -1
- package/styles/context-menu.css +15 -4
- package/styles/dropdown-menu.css +35 -5
- package/dist/{index-se0cvXjc.d.ts → index-DKlE9Iqk.d.ts} +2 -2
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as hasSlotContent } from "./slotContent-CNWOrGOr.js";
|
|
2
|
-
import { t as _sfc_main$
|
|
2
|
+
import { t as _sfc_main$9 } from "./Icon-BUSj1-Th.js";
|
|
3
3
|
import { n as useLinkComponent } from "./context-C_peZbXf.js";
|
|
4
4
|
import { n as usePositionedLayer, t as useDismiss } from "./useDismiss-BqTTrMi-.js";
|
|
5
|
-
import { t as _sfc_main$
|
|
6
|
-
import { t as _sfc_main$
|
|
5
|
+
import { t as _sfc_main$10 } from "./LayerContentBoundary-CMjCvF35.js";
|
|
6
|
+
import { t as _sfc_main$11 } from "./Button-CWzILTBG.js";
|
|
7
7
|
import { a as trackInteractionModality, t as getInteractionModality } from "./interactionModality-4Km2ibsq.js";
|
|
8
8
|
import { o as useComponentMessages } from "./context-B8IEFCDR.js";
|
|
9
9
|
import { a as isTabStop, r as getFocusables } from "./focus-DxAD3umZ.js";
|
|
@@ -13,17 +13,17 @@ import { t as useOverflow } from "./useOverflow-GU0pxGaU.js";
|
|
|
13
13
|
import { t as useTypeahead } from "./useTypeahead-HlZ9cICe.js";
|
|
14
14
|
import { t as useScrollbars } from "./useScrollbars-Ch0xqJWO.js";
|
|
15
15
|
import { n as isModifiedClick, r as keepDisabledRowUnfocused, t as activateMenuItem } from "./menuActivation-BQqnzKAX.js";
|
|
16
|
-
import { t as _sfc_main$
|
|
17
|
-
import { a as
|
|
16
|
+
import { t as _sfc_main$12 } from "./Item-JktfViUH.js";
|
|
17
|
+
import { a as readMenuDirection, c as _sfc_main$13, d as _sfc_main$16, f as _sfc_main$15, i as useSubmenuMode, l as useDropdownMenuMessages, m as useDropdownMenuContext, n as readNameReference, o as submenuCloseKey, p as dropdownMenuContextKey, r as useMenuDrillIn, s as submenuOpenKey, t as readAccessibleName, u as _sfc_main$14 } from "./accessibleName-DHGLl8Iq.js";
|
|
18
18
|
import { n as clampInlineSize, r as isIntrinsicInlineSize, t as LAYER_MAX_INLINE_SIZE } from "./inlineSize-BNe8wggI.js";
|
|
19
19
|
import { t as useHeldPresentation } from "./useHeldPresentation-0Z0Untra.js";
|
|
20
20
|
import { t as useMenuEntranceHold } from "./useMenuEntranceHold-Dkl03O-0.js";
|
|
21
21
|
import { t as LazyBottomSheet } from "./lazyBottomSheet-BaF3XOW9.js";
|
|
22
|
-
import { t as _sfc_main$
|
|
22
|
+
import { t as _sfc_main$17 } from "./Divider-mOZ6vIQw.js";
|
|
23
23
|
import { t as useBusyAnnouncement } from "./busyAnnouncement-CExubuYm.js";
|
|
24
24
|
import { t as useMenuHover } from "./useMenuHover-Dahcf3qo.js";
|
|
25
25
|
import { t as spinnerMessages } from "./spinner-DVia-eDf.js";
|
|
26
|
-
import { t as _sfc_main$
|
|
26
|
+
import { t as _sfc_main$18 } from "./Spinner-CQXQ0RqS.js";
|
|
27
27
|
import { Fragment, Teleport, Transition, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, guardReactiveProps, h, inject, markRaw, mergeModels, mergeProps, nextTick, normalizeClass, normalizeProps, normalizeStyle, onBeforeUnmount, onMounted, openBlock, provide, reactive, ref, renderSlot, resolveDynamicComponent, shallowRef, toDisplayString, toRaw, unref, useAttrs, useId, useModel, useSlots, vShow, watch, withCtx, withDirectives, withKeys, withModifiers } from "vue";
|
|
28
28
|
import "../styles/dropdown-menu.css";
|
|
29
29
|
//#region src/composables/internal/useFocusReturnVisibility.ts
|
|
@@ -51,7 +51,7 @@ function useFocusReturnVisibility() {
|
|
|
51
51
|
}
|
|
52
52
|
//#endregion
|
|
53
53
|
//#region src/DropdownMenu/DropdownMenuBranch.vue
|
|
54
|
-
const _sfc_main$
|
|
54
|
+
const _sfc_main$8 = /*@__PURE__*/ defineComponent({
|
|
55
55
|
name: "AstryxDropdownMenuBranch",
|
|
56
56
|
__name: "DropdownMenuBranch",
|
|
57
57
|
props: { value: {} },
|
|
@@ -67,19 +67,19 @@ const _sfc_main$7 = /*@__PURE__*/ defineComponent({
|
|
|
67
67
|
const dropdownMenuFrameKey = Symbol("astryx-dropdown-menu-frame");
|
|
68
68
|
//#endregion
|
|
69
69
|
//#region src/DropdownMenu/DropdownMenuDivider.vue
|
|
70
|
-
const _sfc_main$
|
|
70
|
+
const _sfc_main$7 = /*@__PURE__*/ defineComponent({
|
|
71
71
|
name: "AstryxDropdownMenuDivider",
|
|
72
72
|
__name: "DropdownMenuDivider",
|
|
73
73
|
setup(__props) {
|
|
74
74
|
return (_ctx, _cache) => {
|
|
75
|
-
return openBlock(), createBlock(_sfc_main$
|
|
75
|
+
return openBlock(), createBlock(_sfc_main$17, { class: "astryx-dropdown-menu-divider" });
|
|
76
76
|
};
|
|
77
77
|
}
|
|
78
78
|
});
|
|
79
79
|
//#endregion
|
|
80
80
|
//#region src/DropdownMenu/DropdownMenuSectionHeading.vue
|
|
81
81
|
const _hoisted_1$5 = { class: "astryx-dropdown-menu-section-heading" };
|
|
82
|
-
const _sfc_main$
|
|
82
|
+
const _sfc_main$6 = /*@__PURE__*/ defineComponent({
|
|
83
83
|
name: "AstryxDropdownMenuSectionHeading",
|
|
84
84
|
__name: "DropdownMenuSectionHeading",
|
|
85
85
|
setup(__props) {
|
|
@@ -91,7 +91,7 @@ const _sfc_main$5 = /*@__PURE__*/ defineComponent({
|
|
|
91
91
|
//#endregion
|
|
92
92
|
//#region src/DropdownMenu/DropdownMenuGroup.vue
|
|
93
93
|
const _hoisted_1$4 = ["aria-labelledby"];
|
|
94
|
-
const _sfc_main$
|
|
94
|
+
const _sfc_main$5 = /*@__PURE__*/ defineComponent({
|
|
95
95
|
name: "AstryxDropdownMenuGroup",
|
|
96
96
|
inheritAttrs: false,
|
|
97
97
|
__name: "DropdownMenuGroup",
|
|
@@ -113,7 +113,7 @@ const _sfc_main$4 = /*@__PURE__*/ defineComponent({
|
|
|
113
113
|
class: "astryx-dropdown-menu-group",
|
|
114
114
|
role: "group",
|
|
115
115
|
"aria-labelledby": hasTitle() ? headingId : callerLabelledBy.value
|
|
116
|
-
}), [hasTitle() ? (openBlock(), createBlock(_sfc_main$
|
|
116
|
+
}), [hasTitle() ? (openBlock(), createBlock(_sfc_main$6, {
|
|
117
117
|
key: 0,
|
|
118
118
|
id: headingId
|
|
119
119
|
}, {
|
|
@@ -142,7 +142,7 @@ const _hoisted_5$2 = {
|
|
|
142
142
|
key: 1,
|
|
143
143
|
class: "astryx-item__end"
|
|
144
144
|
};
|
|
145
|
-
const _sfc_main$
|
|
145
|
+
const _sfc_main$4 = /*@__PURE__*/ defineComponent({
|
|
146
146
|
name: "AstryxDropdownMenuItem",
|
|
147
147
|
inheritAttrs: false,
|
|
148
148
|
__name: "DropdownMenuItem",
|
|
@@ -248,7 +248,7 @@ const _sfc_main$3 = /*@__PURE__*/ defineComponent({
|
|
|
248
248
|
onPointermove: handlePointerMove
|
|
249
249
|
}), {
|
|
250
250
|
default: withCtx(() => [
|
|
251
|
-
hasStart.value ? (openBlock(), createElementBlock("span", _hoisted_1$3, [renderSlot(_ctx.$slots, "icon", {}, () => [createVNode(_sfc_main$
|
|
251
|
+
hasStart.value ? (openBlock(), createElementBlock("span", _hoisted_1$3, [renderSlot(_ctx.$slots, "icon", {}, () => [createVNode(_sfc_main$9, {
|
|
252
252
|
color: iconColor.value,
|
|
253
253
|
icon: __props.icon,
|
|
254
254
|
size: "sm"
|
|
@@ -269,7 +269,7 @@ const _sfc_main$3 = /*@__PURE__*/ defineComponent({
|
|
|
269
269
|
"rel",
|
|
270
270
|
"style",
|
|
271
271
|
"target"
|
|
272
|
-
])) : (openBlock(), createBlock(_sfc_main$
|
|
272
|
+
])) : (openBlock(), createBlock(_sfc_main$12, mergeProps({ key: 1 }, unref(attrs), {
|
|
273
273
|
class: "astryx-dropdown-menu-item",
|
|
274
274
|
role: "menuitem",
|
|
275
275
|
"data-menu-size": menuSize.value,
|
|
@@ -286,7 +286,7 @@ const _sfc_main$3 = /*@__PURE__*/ defineComponent({
|
|
|
286
286
|
}), createSlots({ _: 2 }, [
|
|
287
287
|
hasStart.value ? {
|
|
288
288
|
name: "startContent",
|
|
289
|
-
fn: withCtx(() => [renderSlot(_ctx.$slots, "icon", {}, () => [createVNode(_sfc_main$
|
|
289
|
+
fn: withCtx(() => [renderSlot(_ctx.$slots, "icon", {}, () => [createVNode(_sfc_main$9, {
|
|
290
290
|
color: iconColor.value,
|
|
291
291
|
icon: __props.icon,
|
|
292
292
|
size: "sm"
|
|
@@ -320,6 +320,37 @@ const _sfc_main$3 = /*@__PURE__*/ defineComponent({
|
|
|
320
320
|
}
|
|
321
321
|
});
|
|
322
322
|
//#endregion
|
|
323
|
+
//#region src/DropdownMenu/DropdownMenuBackRow.vue
|
|
324
|
+
/** 抽屉视图最上面那一行「返回到 <上一级>」。箭头按菜单自己的方向翻转。 */
|
|
325
|
+
const _sfc_main$3 = /*@__PURE__*/ defineComponent({
|
|
326
|
+
name: "AstryxDropdownMenuBackRow",
|
|
327
|
+
__name: "DropdownMenuBackRow",
|
|
328
|
+
props: { parent: {} },
|
|
329
|
+
emits: ["click"],
|
|
330
|
+
setup(__props, { emit: __emit }) {
|
|
331
|
+
const props = __props;
|
|
332
|
+
const emit = __emit;
|
|
333
|
+
const messages = useDropdownMenuMessages();
|
|
334
|
+
const label = computed(() => props.parent != null && props.parent !== "" ? messages.value.dropdownMenu.backTo(props.parent) : messages.value.dropdownMenu.back);
|
|
335
|
+
return (_ctx, _cache) => {
|
|
336
|
+
return openBlock(), createBlock(_sfc_main$4, {
|
|
337
|
+
"has-close-on-select": false,
|
|
338
|
+
label: label.value,
|
|
339
|
+
onClick: _cache[0] || (_cache[0] = ($event) => emit("click"))
|
|
340
|
+
}, {
|
|
341
|
+
icon: withCtx(() => [createVNode(_sfc_main$9, {
|
|
342
|
+
class: "astryx-menu-direction-mirror",
|
|
343
|
+
color: "secondary",
|
|
344
|
+
icon: "chevronLeft",
|
|
345
|
+
size: "sm"
|
|
346
|
+
})]),
|
|
347
|
+
label: withCtx(() => [createVNode(_sfc_main$13, { parent: __props.parent }, null, 8, ["parent"])]),
|
|
348
|
+
_: 1
|
|
349
|
+
}, 8, ["label"]);
|
|
350
|
+
};
|
|
351
|
+
}
|
|
352
|
+
});
|
|
353
|
+
//#endregion
|
|
323
354
|
//#region src/DropdownMenu/menuItemRoles.ts
|
|
324
355
|
/**
|
|
325
356
|
* Rows a menu's roving focus, typeahead, and keyboard activation all agree on.
|
|
@@ -611,7 +642,8 @@ const _hoisted_4$1 = [
|
|
|
611
642
|
"aria-label",
|
|
612
643
|
"aria-labelledby",
|
|
613
644
|
"aria-modal",
|
|
614
|
-
"data-overflow"
|
|
645
|
+
"data-overflow",
|
|
646
|
+
"dir"
|
|
615
647
|
];
|
|
616
648
|
const _hoisted_5$1 = ["aria-label", "aria-labelledby"];
|
|
617
649
|
const _sfc_main$2 = /*@__PURE__*/ defineComponent({
|
|
@@ -640,7 +672,6 @@ const _sfc_main$2 = /*@__PURE__*/ defineComponent({
|
|
|
640
672
|
const props = __props;
|
|
641
673
|
const emit = __emit;
|
|
642
674
|
const slots = useSlots();
|
|
643
|
-
const messages = useDropdownMenuMessages();
|
|
644
675
|
const spinnerText = useComponentMessages({ spinner: spinnerMessages });
|
|
645
676
|
const menu = useDropdownMenuContext();
|
|
646
677
|
const rowComponent = ref(null);
|
|
@@ -648,6 +679,7 @@ const _sfc_main$2 = /*@__PURE__*/ defineComponent({
|
|
|
648
679
|
const flyoutRef = ref(null);
|
|
649
680
|
const drillRef = ref(null);
|
|
650
681
|
const flyoutOpen = ref(false);
|
|
682
|
+
const flyoutDir = ref();
|
|
651
683
|
const viewId = useId();
|
|
652
684
|
const menuSize = computed(() => menu?.menuSize.value ?? "md");
|
|
653
685
|
const density = computed(() => menuSize.value === "sm" ? "compact" : "balanced");
|
|
@@ -699,15 +731,11 @@ const _sfc_main$2 = /*@__PURE__*/ defineComponent({
|
|
|
699
731
|
watch(isShown, (shown) => {
|
|
700
732
|
if (shown && hasNodeLabel.value) nodeLabelText.value = readNodeLabelText();
|
|
701
733
|
});
|
|
702
|
-
const backLabel = computed(() => {
|
|
703
|
-
const parent = menu?.menuLabel.value;
|
|
704
|
-
return parent != null && parent !== "" ? messages.value.dropdownMenu.backTo(parent) : messages.value.dropdownMenu.back;
|
|
705
|
-
});
|
|
706
734
|
const { position, teleportTarget } = usePositionedLayer({
|
|
707
735
|
anchor: rowRef,
|
|
708
736
|
layer: flyoutRef,
|
|
709
737
|
isOpen: flyoutOpen,
|
|
710
|
-
placement: computed(() => "end"),
|
|
738
|
+
placement: computed(() => flyoutDir.value === "rtl" ? "start" : "end"),
|
|
711
739
|
alignment: computed(() => "start"),
|
|
712
740
|
gap: 4
|
|
713
741
|
});
|
|
@@ -741,7 +769,10 @@ const _sfc_main$2 = /*@__PURE__*/ defineComponent({
|
|
|
741
769
|
if (!skipAutoFocus) await focusDrillFirst();
|
|
742
770
|
return;
|
|
743
771
|
}
|
|
744
|
-
if (!flyoutOpen.value)
|
|
772
|
+
if (!flyoutOpen.value) {
|
|
773
|
+
flyoutDir.value = readMenuDirection(rowRef.value);
|
|
774
|
+
emit("openChange", true);
|
|
775
|
+
}
|
|
745
776
|
flyoutOpen.value = true;
|
|
746
777
|
if (skipAutoFocus) return;
|
|
747
778
|
await nextTick();
|
|
@@ -791,7 +822,7 @@ const _sfc_main$2 = /*@__PURE__*/ defineComponent({
|
|
|
791
822
|
closeWholeMenu();
|
|
792
823
|
return;
|
|
793
824
|
}
|
|
794
|
-
if (event.key ===
|
|
825
|
+
if (event.key === submenuCloseKey(event.currentTarget) || event.key === "Escape") {
|
|
795
826
|
event.preventDefault();
|
|
796
827
|
event.stopPropagation();
|
|
797
828
|
closeFlyout(true);
|
|
@@ -814,6 +845,7 @@ const _sfc_main$2 = /*@__PURE__*/ defineComponent({
|
|
|
814
845
|
isCompactTouch: false,
|
|
815
846
|
pop: () => {},
|
|
816
847
|
push: () => {},
|
|
848
|
+
remove: () => {},
|
|
817
849
|
viewStack: []
|
|
818
850
|
};
|
|
819
851
|
const nestedContext = {
|
|
@@ -842,6 +874,12 @@ const _sfc_main$2 = /*@__PURE__*/ defineComponent({
|
|
|
842
874
|
watch(rowRef, (element) => {
|
|
843
875
|
hover.setTriggerEl(element);
|
|
844
876
|
}, { immediate: true });
|
|
877
|
+
function onRowKeydown(event) {
|
|
878
|
+
if (event.key !== submenuOpenKey(rowRef.value)) return;
|
|
879
|
+
event.preventDefault();
|
|
880
|
+
event.stopPropagation();
|
|
881
|
+
openFlyout();
|
|
882
|
+
}
|
|
845
883
|
function onRowClick(event) {
|
|
846
884
|
if (isDrill.value) {
|
|
847
885
|
openFlyout({ skipAutoFocus: event.detail > 0 || isMenuPressActivation() });
|
|
@@ -882,7 +920,7 @@ const _sfc_main$2 = /*@__PURE__*/ defineComponent({
|
|
|
882
920
|
if (wasOnStack === true && !onStack && menu?.isOpen.value) focusRowElement();
|
|
883
921
|
});
|
|
884
922
|
return (_ctx, _cache) => {
|
|
885
|
-
return openBlock(), createElementBlock(Fragment, null, [createVNode(_sfc_main$
|
|
923
|
+
return openBlock(), createElementBlock(Fragment, null, [createVNode(_sfc_main$12, mergeProps(_ctx.$attrs, {
|
|
886
924
|
ref_key: "rowComponent",
|
|
887
925
|
ref: rowComponent,
|
|
888
926
|
class: "astryx-dropdown-menu-item",
|
|
@@ -898,15 +936,16 @@ const _sfc_main$2 = /*@__PURE__*/ defineComponent({
|
|
|
898
936
|
tabindex: __props.isDisabled ? void 0 : -1,
|
|
899
937
|
"on-click": onRowClick,
|
|
900
938
|
onKeydown: [
|
|
901
|
-
|
|
902
|
-
_cache[
|
|
903
|
-
_cache[
|
|
939
|
+
onRowKeydown,
|
|
940
|
+
_cache[0] || (_cache[0] = withKeys(withModifiers(($event) => openFlyout(), ["prevent", "stop"]), ["enter"])),
|
|
941
|
+
_cache[1] || (_cache[1] = withKeys(withModifiers(($event) => openFlyout(), ["prevent", "stop"]), ["space"]))
|
|
904
942
|
],
|
|
905
943
|
onMouseenter: unref(hover).triggerProps.onMouseenter,
|
|
906
944
|
onMouseleave: unref(hover).triggerProps.onMouseleave
|
|
907
945
|
}), createSlots({
|
|
908
|
-
endContent: withCtx(() => [__props.hasSpinner ? (openBlock(), createElementBlock("span", _hoisted_1$2, [createVNode(_sfc_main$
|
|
946
|
+
endContent: withCtx(() => [__props.hasSpinner ? (openBlock(), createElementBlock("span", _hoisted_1$2, [createVNode(_sfc_main$18, { size: "sm" })])) : (openBlock(), createBlock(_sfc_main$9, {
|
|
909
947
|
key: 1,
|
|
948
|
+
class: "astryx-menu-direction-mirror",
|
|
910
949
|
color: "secondary",
|
|
911
950
|
icon: "chevronRight",
|
|
912
951
|
size: "sm"
|
|
@@ -915,7 +954,7 @@ const _sfc_main$2 = /*@__PURE__*/ defineComponent({
|
|
|
915
954
|
}, [
|
|
916
955
|
hasStart.value ? {
|
|
917
956
|
name: "startContent",
|
|
918
|
-
fn: withCtx(() => [renderSlot(_ctx.$slots, "icon", {}, () => [createVNode(_sfc_main$
|
|
957
|
+
fn: withCtx(() => [renderSlot(_ctx.$slots, "icon", {}, () => [createVNode(_sfc_main$9, {
|
|
919
958
|
color: "secondary",
|
|
920
959
|
icon: __props.icon,
|
|
921
960
|
size: "sm"
|
|
@@ -960,13 +999,13 @@ const _sfc_main$2 = /*@__PURE__*/ defineComponent({
|
|
|
960
999
|
hidden: unref(drillIsTop) ? void 0 : true,
|
|
961
1000
|
tabindex: "-1",
|
|
962
1001
|
onKeydown: onDrillKeydown
|
|
963
|
-
}, [createVNode(_sfc_main$
|
|
964
|
-
default: withCtx(() => [createVNode(_sfc_main$
|
|
1002
|
+
}, [createVNode(_sfc_main$10, null, {
|
|
1003
|
+
default: withCtx(() => [createVNode(_sfc_main$8, { value: nestedContext }, {
|
|
965
1004
|
default: withCtx(() => [hasRegions.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
966
1005
|
createElementVNode("div", {
|
|
967
1006
|
ref: setHeader,
|
|
968
1007
|
class: "astryx-dropdown-menu-region",
|
|
969
|
-
onKeydown: _cache[
|
|
1008
|
+
onKeydown: _cache[2] || (_cache[2] = (...args) => unref(regions).onRegionKeydown && unref(regions).onRegionKeydown(...args))
|
|
970
1009
|
}, [renderSlot(_ctx.$slots, "header")], 544),
|
|
971
1010
|
createElementVNode("div", {
|
|
972
1011
|
ref: setRegionMenu,
|
|
@@ -976,34 +1015,18 @@ const _sfc_main$2 = /*@__PURE__*/ defineComponent({
|
|
|
976
1015
|
role: "menu",
|
|
977
1016
|
tabindex: "-1"
|
|
978
1017
|
}, [createVNode(_sfc_main$3, {
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
}, {
|
|
983
|
-
icon: withCtx(() => [createVNode(_sfc_main$8, {
|
|
984
|
-
color: "secondary",
|
|
985
|
-
icon: "chevronLeft",
|
|
986
|
-
size: "sm"
|
|
987
|
-
})]),
|
|
988
|
-
_: 1
|
|
989
|
-
}, 8, ["label"]), renderSlot(_ctx.$slots, "default")], 8, _hoisted_3$1),
|
|
1018
|
+
parent: unref(menu)?.menuLabel.value,
|
|
1019
|
+
onClick: _cache[3] || (_cache[3] = ($event) => closeFlyout(true))
|
|
1020
|
+
}, null, 8, ["parent"]), renderSlot(_ctx.$slots, "default")], 8, _hoisted_3$1),
|
|
990
1021
|
createElementVNode("div", {
|
|
991
1022
|
ref: setFooter,
|
|
992
1023
|
class: "astryx-dropdown-menu-region",
|
|
993
|
-
onKeydown: _cache[
|
|
1024
|
+
onKeydown: _cache[4] || (_cache[4] = (...args) => unref(regions).onRegionKeydown && unref(regions).onRegionKeydown(...args))
|
|
994
1025
|
}, [renderSlot(_ctx.$slots, "footer")], 544)
|
|
995
1026
|
], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [createVNode(_sfc_main$3, {
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
}, {
|
|
1000
|
-
icon: withCtx(() => [createVNode(_sfc_main$8, {
|
|
1001
|
-
color: "secondary",
|
|
1002
|
-
icon: "chevronLeft",
|
|
1003
|
-
size: "sm"
|
|
1004
|
-
})]),
|
|
1005
|
-
_: 1
|
|
1006
|
-
}, 8, ["label"]), renderSlot(_ctx.$slots, "default")], 64))]),
|
|
1027
|
+
parent: unref(menu)?.menuLabel.value,
|
|
1028
|
+
onClick: _cache[5] || (_cache[5] = ($event) => closeFlyout(true))
|
|
1029
|
+
}, null, 8, ["parent"]), renderSlot(_ctx.$slots, "default")], 64))]),
|
|
1007
1030
|
_: 3
|
|
1008
1031
|
})]),
|
|
1009
1032
|
_: 3
|
|
@@ -1019,18 +1042,19 @@ const _sfc_main$2 = /*@__PURE__*/ defineComponent({
|
|
|
1019
1042
|
"aria-labelledby": viewLabelledBy.value,
|
|
1020
1043
|
"aria-modal": hasRegions.value ? "true" : void 0,
|
|
1021
1044
|
"data-overflow": unref(hasOverflow) || void 0,
|
|
1045
|
+
dir: flyoutDir.value,
|
|
1022
1046
|
style: normalizeStyle(flyoutStyle.value),
|
|
1023
1047
|
tabindex: "-1",
|
|
1024
1048
|
onKeydown: onFlyoutKeydown,
|
|
1025
|
-
onMouseenter: _cache[
|
|
1026
|
-
onMouseleave: _cache[
|
|
1027
|
-
}, [createVNode(_sfc_main$
|
|
1028
|
-
default: withCtx(() => [createVNode(_sfc_main$
|
|
1049
|
+
onMouseenter: _cache[8] || (_cache[8] = (...args) => unref(hover).contentProps.onMouseenter && unref(hover).contentProps.onMouseenter(...args)),
|
|
1050
|
+
onMouseleave: _cache[9] || (_cache[9] = (...args) => unref(hover).contentProps.onMouseleave && unref(hover).contentProps.onMouseleave(...args))
|
|
1051
|
+
}, [createVNode(_sfc_main$10, null, {
|
|
1052
|
+
default: withCtx(() => [createVNode(_sfc_main$8, { value: nestedContext }, {
|
|
1029
1053
|
default: withCtx(() => [hasRegions.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
1030
1054
|
createElementVNode("div", {
|
|
1031
1055
|
ref: setHeader,
|
|
1032
1056
|
class: "astryx-dropdown-menu-region",
|
|
1033
|
-
onKeydown: _cache[
|
|
1057
|
+
onKeydown: _cache[6] || (_cache[6] = (...args) => unref(regions).onRegionKeydown && unref(regions).onRegionKeydown(...args))
|
|
1034
1058
|
}, [renderSlot(_ctx.$slots, "header")], 544),
|
|
1035
1059
|
createElementVNode("div", {
|
|
1036
1060
|
ref: setRegionMenu,
|
|
@@ -1043,7 +1067,7 @@ const _sfc_main$2 = /*@__PURE__*/ defineComponent({
|
|
|
1043
1067
|
createElementVNode("div", {
|
|
1044
1068
|
ref: setFooter,
|
|
1045
1069
|
class: "astryx-dropdown-menu-region",
|
|
1046
|
-
onKeydown: _cache[
|
|
1070
|
+
onKeydown: _cache[7] || (_cache[7] = (...args) => unref(regions).onRegionKeydown && unref(regions).onRegionKeydown(...args))
|
|
1047
1071
|
}, [renderSlot(_ctx.$slots, "footer")], 544)
|
|
1048
1072
|
], 64)) : renderSlot(_ctx.$slots, "default", {}, void 0, void 0, 1)]),
|
|
1049
1073
|
_: 3
|
|
@@ -1060,14 +1084,14 @@ function endSlot(endContent) {
|
|
|
1060
1084
|
}
|
|
1061
1085
|
function renderRadioOption(option, index) {
|
|
1062
1086
|
const { endContent, id, ...itemProps } = option;
|
|
1063
|
-
return h(_sfc_main$
|
|
1087
|
+
return h(_sfc_main$14, {
|
|
1064
1088
|
key: id ?? `radio-${index}`,
|
|
1065
1089
|
...itemProps
|
|
1066
1090
|
}, endSlot(endContent));
|
|
1067
1091
|
}
|
|
1068
1092
|
function renderCheckbox(item, index) {
|
|
1069
1093
|
const { checked, endContent, id, onChange, ...itemProps } = item;
|
|
1070
|
-
return h(_sfc_main$
|
|
1094
|
+
return h(_sfc_main$15, {
|
|
1071
1095
|
"key": id ?? `checkbox-${index}`,
|
|
1072
1096
|
...itemProps,
|
|
1073
1097
|
"modelValue": checked,
|
|
@@ -1075,7 +1099,7 @@ function renderCheckbox(item, index) {
|
|
|
1075
1099
|
}, endSlot(endContent));
|
|
1076
1100
|
}
|
|
1077
1101
|
function renderRadio(item, index) {
|
|
1078
|
-
return h(_sfc_main$
|
|
1102
|
+
return h(_sfc_main$16, {
|
|
1079
1103
|
"key": item.id ?? `radio-group-${index}`,
|
|
1080
1104
|
"label": item.label,
|
|
1081
1105
|
"modelValue": item.value,
|
|
@@ -1094,7 +1118,7 @@ function renderItem(item, index) {
|
|
|
1094
1118
|
isDisabled: item.isDisabled,
|
|
1095
1119
|
label: item.label
|
|
1096
1120
|
}, { default: () => nested.map((option, optionIndex) => renderOption(option, optionIndex)) });
|
|
1097
|
-
return h(_sfc_main$
|
|
1121
|
+
return h(_sfc_main$4, {
|
|
1098
1122
|
key: id ?? `item-${index}`,
|
|
1099
1123
|
...itemProps
|
|
1100
1124
|
}, endSlot(endContent));
|
|
@@ -1109,8 +1133,8 @@ function renderEntry(entry, index) {
|
|
|
1109
1133
|
* so both modes produce one `role="group"` named by its visible heading.
|
|
1110
1134
|
*/
|
|
1111
1135
|
function renderOption(option, index) {
|
|
1112
|
-
if ("type" in option && option.type === "divider") return h(_sfc_main$
|
|
1113
|
-
if ("type" in option && option.type === "section") return h(_sfc_main$
|
|
1136
|
+
if ("type" in option && option.type === "divider") return h(_sfc_main$7, { key: `divider-${index}` });
|
|
1137
|
+
if ("type" in option && option.type === "section") return h(_sfc_main$5, {
|
|
1114
1138
|
key: option.id ?? `section-${index}`,
|
|
1115
1139
|
title: option.title
|
|
1116
1140
|
}, { default: () => option.items.map((item, itemIndex) => renderEntry(item, itemIndex)) });
|
|
@@ -1136,12 +1160,14 @@ const _hoisted_1$1 = [
|
|
|
1136
1160
|
"id",
|
|
1137
1161
|
"aria-labelledby",
|
|
1138
1162
|
"aria-label",
|
|
1139
|
-
"data-overflow"
|
|
1163
|
+
"data-overflow",
|
|
1164
|
+
"role"
|
|
1140
1165
|
];
|
|
1141
1166
|
const _hoisted_2 = ["hidden", "inert"];
|
|
1142
1167
|
const _hoisted_3 = [
|
|
1143
1168
|
"id",
|
|
1144
1169
|
"aria-label",
|
|
1170
|
+
"dir",
|
|
1145
1171
|
"data-placement"
|
|
1146
1172
|
];
|
|
1147
1173
|
const _hoisted_4 = [
|
|
@@ -1149,7 +1175,8 @@ const _hoisted_4 = [
|
|
|
1149
1175
|
"aria-labelledby",
|
|
1150
1176
|
"aria-label",
|
|
1151
1177
|
"data-overflow",
|
|
1152
|
-
"data-region-focus"
|
|
1178
|
+
"data-region-focus",
|
|
1179
|
+
"role"
|
|
1153
1180
|
];
|
|
1154
1181
|
const _hoisted_5 = ["hidden", "inert"];
|
|
1155
1182
|
const _hoisted_6 = [
|
|
@@ -1157,7 +1184,8 @@ const _hoisted_6 = [
|
|
|
1157
1184
|
"aria-labelledby",
|
|
1158
1185
|
"aria-label",
|
|
1159
1186
|
"data-placement",
|
|
1160
|
-
"data-overflow"
|
|
1187
|
+
"data-overflow",
|
|
1188
|
+
"role"
|
|
1161
1189
|
];
|
|
1162
1190
|
const _hoisted_7 = ["hidden", "inert"];
|
|
1163
1191
|
const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
@@ -1180,8 +1208,8 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
1180
1208
|
padding: 2,
|
|
1181
1209
|
onMotionComplete: _cache[4] || (_cache[4] = ($event) => $event === "exiting" && unref(frame).onSheetSettled())
|
|
1182
1210
|
}, {
|
|
1183
|
-
default: withCtx(() => [createVNode(_sfc_main$
|
|
1184
|
-
default: withCtx(() => [createVNode(_sfc_main$
|
|
1211
|
+
default: withCtx(() => [createVNode(_sfc_main$10, null, {
|
|
1212
|
+
default: withCtx(() => [createVNode(_sfc_main$8, { value: unref(frame).menuContext }, {
|
|
1185
1213
|
default: withCtx(() => [
|
|
1186
1214
|
_ctx.$slots.header ? (openBlock(), createElementBlock("div", {
|
|
1187
1215
|
key: 0,
|
|
@@ -1197,7 +1225,7 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
1197
1225
|
"aria-label": unref(frame).menuAriaLabel,
|
|
1198
1226
|
class: ["astryx-dropdown-menu is-sheet", unref(frame).surfaceClass],
|
|
1199
1227
|
"data-overflow": unref(frame).hasOverflow || void 0,
|
|
1200
|
-
role:
|
|
1228
|
+
role: unref(frame).menuRole,
|
|
1201
1229
|
tabindex: "-1",
|
|
1202
1230
|
onKeydown: _cache[1] || (_cache[1] = (...args) => unref(frame).onSurfaceKeydown && unref(frame).onSurfaceKeydown(...args))
|
|
1203
1231
|
}), [createElementVNode("div", {
|
|
@@ -1235,10 +1263,11 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
1235
1263
|
role: "dialog",
|
|
1236
1264
|
"aria-modal": "true",
|
|
1237
1265
|
"aria-label": unref(frame).dialogLabel,
|
|
1266
|
+
dir: unref(frame).menuDir,
|
|
1238
1267
|
"data-placement": unref(frame).placement,
|
|
1239
1268
|
style: normalizeStyle(unref(frame).surfaceStyle)
|
|
1240
|
-
}, [createVNode(_sfc_main$
|
|
1241
|
-
default: withCtx(() => [createVNode(_sfc_main$
|
|
1269
|
+
}, [createVNode(_sfc_main$10, null, {
|
|
1270
|
+
default: withCtx(() => [createVNode(_sfc_main$8, { value: unref(frame).menuContext }, {
|
|
1242
1271
|
default: withCtx(() => [
|
|
1243
1272
|
_ctx.$slots.header ? (openBlock(), createElementBlock("div", {
|
|
1244
1273
|
key: 0,
|
|
@@ -1255,7 +1284,7 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
1255
1284
|
class: ["astryx-dropdown-menu is-in-frame", unref(frame).surfaceClass],
|
|
1256
1285
|
"data-overflow": unref(frame).hasOverflow || void 0,
|
|
1257
1286
|
"data-region-focus": unref(frame).regionFocus || void 0,
|
|
1258
|
-
role:
|
|
1287
|
+
role: unref(frame).menuRole,
|
|
1259
1288
|
tabindex: "0",
|
|
1260
1289
|
onFocus: _cache[6] || (_cache[6] = (...args) => unref(frame).onSurfaceFocus && unref(frame).onSurfaceFocus(...args)),
|
|
1261
1290
|
onKeydown: _cache[7] || (_cache[7] = (...args) => unref(frame).onSurfaceKeydown && unref(frame).onSurfaceKeydown(...args))
|
|
@@ -1290,13 +1319,13 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
|
|
|
1290
1319
|
class: ["astryx-dropdown-menu", unref(frame).surfaceClass],
|
|
1291
1320
|
"data-placement": unref(frame).placement,
|
|
1292
1321
|
"data-overflow": unref(frame).hasOverflow || void 0,
|
|
1293
|
-
role:
|
|
1322
|
+
role: unref(frame).menuRole,
|
|
1294
1323
|
style: unref(frame).surfaceStyle,
|
|
1295
1324
|
tabindex: "-1",
|
|
1296
1325
|
onFocus: _cache[9] || (_cache[9] = (...args) => unref(frame).onSurfaceFocus && unref(frame).onSurfaceFocus(...args)),
|
|
1297
1326
|
onKeydown: _cache[10] || (_cache[10] = (...args) => unref(frame).onSurfaceKeydown && unref(frame).onSurfaceKeydown(...args))
|
|
1298
|
-
}), [createVNode(_sfc_main$
|
|
1299
|
-
default: withCtx(() => [createVNode(_sfc_main$
|
|
1327
|
+
}), [createVNode(_sfc_main$10, null, {
|
|
1328
|
+
default: withCtx(() => [createVNode(_sfc_main$8, { value: unref(frame).menuContext }, {
|
|
1300
1329
|
default: withCtx(() => [createElementVNode("div", {
|
|
1301
1330
|
class: "astryx-dropdown-menu-tree",
|
|
1302
1331
|
hidden: unref(frame).isDrilled || void 0,
|
|
@@ -1421,6 +1450,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
1421
1450
|
const menuId = `astryx-dropdown-menu-${uid}`;
|
|
1422
1451
|
const triggerId = `astryx-dropdown-menu-trigger-${uid}`;
|
|
1423
1452
|
const anchorRef = ref(null);
|
|
1453
|
+
const menuDir = ref();
|
|
1424
1454
|
const surfaceRef = ref(null);
|
|
1425
1455
|
useScrollbars(surfaceRef);
|
|
1426
1456
|
const popoverRef = ref(null);
|
|
@@ -1603,6 +1633,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
1603
1633
|
layerIsOpen.value = nowOpen && !isSheet.value;
|
|
1604
1634
|
if (nowOpen) {
|
|
1605
1635
|
captureTriggerName();
|
|
1636
|
+
menuDir.value = readMenuDirection(anchorRef.value);
|
|
1606
1637
|
anchorWidth.value = anchorRef.value?.getBoundingClientRect().width ?? 0;
|
|
1607
1638
|
await focusMenuOnOpen();
|
|
1608
1639
|
return;
|
|
@@ -1700,6 +1731,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
1700
1731
|
});
|
|
1701
1732
|
const paintedStyle = computed(() => [surfaceStyle.value, attrs.style]);
|
|
1702
1733
|
const menuBindings = computed(() => ({
|
|
1734
|
+
dir: menuDir.value,
|
|
1703
1735
|
...forwardedAttrs.value,
|
|
1704
1736
|
...press.menuProps
|
|
1705
1737
|
}));
|
|
@@ -1716,8 +1748,10 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
1716
1748
|
surfaceId,
|
|
1717
1749
|
dialogId,
|
|
1718
1750
|
dialogLabel,
|
|
1719
|
-
|
|
1720
|
-
|
|
1751
|
+
menuRole: computed(() => isDrilled.value ? "none" : "menu"),
|
|
1752
|
+
menuAriaLabel: computed(() => isDrilled.value ? void 0 : menuAriaLabel.value),
|
|
1753
|
+
menuAriaLabelledBy: computed(() => isDrilled.value ? void 0 : menuAriaLabelledBy.value),
|
|
1754
|
+
menuDir,
|
|
1721
1755
|
forwardedAttrs,
|
|
1722
1756
|
menuBindings,
|
|
1723
1757
|
surfaceClass: computed(() => attrs.class),
|
|
@@ -1739,6 +1773,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
1739
1773
|
if (!isOpen.value) return;
|
|
1740
1774
|
layerIsOpen.value = true;
|
|
1741
1775
|
captureTriggerName();
|
|
1776
|
+
menuDir.value = readMenuDirection(anchorRef.value);
|
|
1742
1777
|
anchorWidth.value = anchorRef.value?.getBoundingClientRect().width ?? 0;
|
|
1743
1778
|
});
|
|
1744
1779
|
onBeforeUnmount(() => {
|
|
@@ -1753,7 +1788,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
1753
1788
|
onContextmenu: _cache[0] || (_cache[0] = (...args) => unref(press).triggerProps.onContextmenu && unref(press).triggerProps.onContextmenu(...args)),
|
|
1754
1789
|
onFocusin: _cache[1] || (_cache[1] = (...args) => unref(focusReturn).onFocusReturnTargetFocus && unref(focusReturn).onFocusReturnTargetFocus(...args)),
|
|
1755
1790
|
onPointerdown: _cache[2] || (_cache[2] = (...args) => unref(press).triggerProps.onPointerdown && unref(press).triggerProps.onPointerdown(...args))
|
|
1756
|
-
}, [unref(slots).trigger ? renderSlot(_ctx.$slots, "trigger", normalizeProps(guardReactiveProps(triggerProps.value)), void 0, void 0, 0) : (openBlock(), createBlock(_sfc_main$
|
|
1791
|
+
}, [unref(slots).trigger ? renderSlot(_ctx.$slots, "trigger", normalizeProps(guardReactiveProps(triggerProps.value)), void 0, void 0, 0) : (openBlock(), createBlock(_sfc_main$11, mergeProps({ key: 1 }, buttonProps.value, {
|
|
1757
1792
|
id: triggerId,
|
|
1758
1793
|
"aria-controls": controlsId.value,
|
|
1759
1794
|
"aria-expanded": isOpen.value,
|
|
@@ -1765,7 +1800,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
1765
1800
|
onKeydown: onTriggerKeydown
|
|
1766
1801
|
}), createSlots({ _: 2 }, [hasChevron.value ? {
|
|
1767
1802
|
name: "end",
|
|
1768
|
-
fn: withCtx(() => [createVNode(_sfc_main$
|
|
1803
|
+
fn: withCtx(() => [createVNode(_sfc_main$9, {
|
|
1769
1804
|
color: "inherit",
|
|
1770
1805
|
icon: "chevronDown",
|
|
1771
1806
|
size: "sm"
|
|
@@ -1794,4 +1829,4 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
|
|
|
1794
1829
|
}
|
|
1795
1830
|
});
|
|
1796
1831
|
//#endregion
|
|
1797
|
-
export { _sfc_main$
|
|
1832
|
+
export { _sfc_main$7 as a, _sfc_main$5 as i, _sfc_main$2 as n, _sfc_main$4 as r, _sfc_main as t };
|
package/dist/Heading/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as HeadingLevel, c as HeadingType, d as HeadingWrap, i as HeadingJustify, l as HeadingWeight, n as HeadingColor, o as HeadingProps, r as HeadingDisplay, s as HeadingTruncateTooltip, t as _default, u as HeadingWordBreak } from "../index-
|
|
1
|
+
import { a as HeadingLevel, c as HeadingType, d as HeadingWrap, i as HeadingJustify, l as HeadingWeight, n as HeadingColor, o as HeadingProps, r as HeadingDisplay, s as HeadingTruncateTooltip, t as _default, u as HeadingWordBreak } from "../index-C89cIh4E.js";
|
|
2
2
|
export { _default as Heading, type HeadingColor, type HeadingDisplay, type HeadingJustify, type HeadingLevel, type HeadingProps, type HeadingTruncateTooltip, type HeadingType, type HeadingWeight, type HeadingWordBreak, type HeadingWrap };
|
package/dist/InfoTip/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { La as _default, Ra as InfoTipProps, za as InfoTipSize } from "../index-
|
|
1
|
+
import { La as _default, Ra as InfoTipProps, za as InfoTipSize } from "../index-BtReVAyz.js";
|
|
2
2
|
export { _default as InfoTip, _default as default, type InfoTipProps, type InfoTipSize };
|
package/dist/Link/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { _ as LinkWeight, f as LinkColor, g as LinkType, h as LinkSize, m as LinkRoot, p as LinkProps } from "../index-Dc52pmSr.js";
|
|
2
|
-
import { Ia as _default } from "../index-
|
|
2
|
+
import { Ia as _default } from "../index-BtReVAyz.js";
|
|
3
3
|
export { _default as Link, type LinkColor, type LinkProps, type LinkRoot, type LinkSize, type LinkType, type LinkWeight };
|
package/dist/List/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { r as ItemSwipeBehavior } from "../swipeHost-B2OlVVZt.js";
|
|
2
2
|
import { _ as ListItemSlots, a as ItemLayout, b as ListSlots, c as ItemSwipeAction, d as ItemTarget, f as ItemText, g as ListItemProps, h as ListEdgeCompensation, i as ItemLabel, l as ItemSwipeActions, m as ListEdge, n as ItemDensity, o as ItemProps, p as ListDensity, r as ItemElement, s as ItemSlots, t as ItemAlign, u as ItemSwipeSide, v as ListMarkerStyle, y as ListProps } from "../types-xOsWAC6i.js";
|
|
3
|
-
import { a as _default, c as ListReorderContextValue, i as _default$1, l as adaptReorderable, n as useListReorderScope, o as useItemDescriptionId, r as _default$2, s as useListContext, t as ListReorderScope, u as reorderableOptions } from "../index-
|
|
3
|
+
import { a as _default, c as ListReorderContextValue, i as _default$1, l as adaptReorderable, n as useListReorderScope, o as useItemDescriptionId, r as _default$2, s as useListContext, t as ListReorderScope, u as reorderableOptions } from "../index-cgAit2pF.js";
|
|
4
4
|
export { _default as Item, type ItemAlign, type ItemDensity, type ItemElement, type ItemLabel, type ItemLayout, type ItemProps, type ItemSlots, type ItemSwipeAction, type ItemSwipeActions, type ItemSwipeBehavior, type ItemSwipeSide, type ItemTarget, type ItemText, _default$1 as List, type ListDensity, type ListEdge, type ListEdgeCompensation, _default$2 as ListItem, type ListItemProps, type ListItemSlots, type ListMarkerStyle, type ListProps, type ListSlots, type ListReorderContextValue as unstable_ListReorderContextValue, ListReorderScope as unstable_ListReorderScope, adaptReorderable as unstable_adaptReorderable, reorderableOptions as unstable_reorderableOptions, useListReorderScope as unstable_useListReorderScope, useItemDescriptionId, useListContext };
|
package/dist/Markdown/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Aa as MarkdownTransformContext, Ca as MarkdownListProps, Da as MarkdownInlinePlugin, Ea as MarkdownSource, Fa as isMarkdownExtensionNode, Ma as applyMarkdownPlugins, Na as defineMarkdownPlugin, Oa as MarkdownPlugin, Pa as firstStrongDirection, Sa as MarkdownLinkProps, Ta as MarkdownSlots, _a as MarkdownDisplay, ba as MarkdownImageProps, ca as ParseMarkdownOptions, da as MarkdownAlign, fa as MarkdownAutolink, ga as MarkdownDensity, ha as MarkdownComponents, ja as applyInlinePlugins, ka as MarkdownPluginRenderContext, la as parseMarkdown, ma as MarkdownCodeProps, oa as slugify, pa as MarkdownCitationStyle, sa as uniqueSlug, ua as _default, va as MarkdownHeadingLevel, wa as MarkdownProps, xa as MarkdownInlineCodeProps, ya as MarkdownHeadingProps } from "../index-
|
|
1
|
+
import { Aa as MarkdownTransformContext, Ca as MarkdownListProps, Da as MarkdownInlinePlugin, Ea as MarkdownSource, Fa as isMarkdownExtensionNode, Ma as applyMarkdownPlugins, Na as defineMarkdownPlugin, Oa as MarkdownPlugin, Pa as firstStrongDirection, Sa as MarkdownLinkProps, Ta as MarkdownSlots, _a as MarkdownDisplay, ba as MarkdownImageProps, ca as ParseMarkdownOptions, da as MarkdownAlign, fa as MarkdownAutolink, ga as MarkdownDensity, ha as MarkdownComponents, ja as applyInlinePlugins, ka as MarkdownPluginRenderContext, la as parseMarkdown, ma as MarkdownCodeProps, oa as slugify, pa as MarkdownCitationStyle, sa as uniqueSlug, ua as _default, va as MarkdownHeadingLevel, wa as MarkdownProps, xa as MarkdownInlineCodeProps, ya as MarkdownHeadingProps } from "../index-BtReVAyz.js";
|
|
2
2
|
import { K as MarkdownAstRoot, Q as visitMarkdownNodes, U as MarkdownAstPhrasingContent } from "../protocol-DwUmpC5G.js";
|
|
3
3
|
import { a as ParseOptions, c as parseInlineAst, d as parseMarkdownIncremental, f as BlockNode, m as InlineNode, o as createIncrementalState, s as parseInline, u as parseMarkdownAst, y as SourceRange } from "../publicParser-B6XMcsB2.js";
|
|
4
4
|
import { t as decodeMarkdownCharacterReferences } from "../index-BkUkm6Al.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as MetadataListItemSlots, c as MetadataListOrientation, i as MetadataListItemProps, l as MetadataListProps, n as _default, o as MetadataListLabelConfig, r as MetadataListColumns, s as MetadataListLabelPosition, t as _default$1, u as MetadataListSlots } from "../index-
|
|
1
|
+
import { a as MetadataListItemSlots, c as MetadataListOrientation, i as MetadataListItemProps, l as MetadataListProps, n as _default, o as MetadataListLabelConfig, r as MetadataListColumns, s as MetadataListLabelPosition, t as _default$1, u as MetadataListSlots } from "../index-utZGF4GR.js";
|
|
2
2
|
export { _default as MetadataList, type MetadataListColumns, _default$1 as MetadataListItem, type MetadataListItemProps, type MetadataListItemSlots, type MetadataListLabelConfig, type MetadataListLabelPosition, type MetadataListOrientation, type MetadataListProps, type MetadataListSlots };
|
package/dist/MoreMenu/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $i as MoreMenuItemVariant, Ji as MoreMenuDivider, Qi as MoreMenuItem, Xi as MoreMenuIcon, Yi as MoreMenuEmits, Zi as MoreMenuInitialFocus, aa as MoreMenuSlots, ea as MoreMenuOption, ia as MoreMenuSection, na as MoreMenuProps, qi as _default, ra as MoreMenuResolvedPresentation, ta as MoreMenuPresentation } from "../index-
|
|
1
|
+
import { $i as MoreMenuItemVariant, Ji as MoreMenuDivider, Qi as MoreMenuItem, Xi as MoreMenuIcon, Yi as MoreMenuEmits, Zi as MoreMenuInitialFocus, aa as MoreMenuSlots, ea as MoreMenuOption, ia as MoreMenuSection, na as MoreMenuProps, qi as _default, ra as MoreMenuResolvedPresentation, ta as MoreMenuPresentation } from "../index-BtReVAyz.js";
|
|
2
2
|
export { _default as MoreMenu, type MoreMenuDivider, type MoreMenuEmits, type MoreMenuIcon, type MoreMenuInitialFocus, type MoreMenuItem, type MoreMenuItemVariant, type MoreMenuOption, type MoreMenuPresentation, type MoreMenuProps, type MoreMenuResolvedPresentation, type MoreMenuSection, type MoreMenuSlots };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as MultiSelectorSlots, a as MultiSelectorCreateChange, b as MultiSelectorTriggerDisplay, c as MultiSelectorHandle, d as MultiSelectorOptionData, f as MultiSelectorPresentation, g as MultiSelectorSize, h as MultiSelectorSelectedItem, i as MultiSelectorCheckboxPosition, l as MultiSelectorHandleRef, m as MultiSelectorSection, n as flattenOptions, o as MultiSelectorDivider, p as MultiSelectorProps, r as _default, s as MultiSelectorEmits, t as SELECT_ALL_VALUE, u as MultiSelectorOption, v as MultiSelectorStatus, x as MultiSelectorVariant, y as MultiSelectorStatusVariant } from "../index-
|
|
1
|
+
import { _ as MultiSelectorSlots, a as MultiSelectorCreateChange, b as MultiSelectorTriggerDisplay, c as MultiSelectorHandle, d as MultiSelectorOptionData, f as MultiSelectorPresentation, g as MultiSelectorSize, h as MultiSelectorSelectedItem, i as MultiSelectorCheckboxPosition, l as MultiSelectorHandleRef, m as MultiSelectorSection, n as flattenOptions, o as MultiSelectorDivider, p as MultiSelectorProps, r as _default, s as MultiSelectorEmits, t as SELECT_ALL_VALUE, u as MultiSelectorOption, v as MultiSelectorStatus, x as MultiSelectorVariant, y as MultiSelectorStatusVariant } from "../index-CRVO1inY.js";
|
|
2
2
|
export { _default as MultiSelector, type MultiSelectorCheckboxPosition, type MultiSelectorCreateChange, type MultiSelectorDivider, type MultiSelectorEmits, type MultiSelectorHandle, type MultiSelectorHandleRef, type MultiSelectorOption, type MultiSelectorOptionData, type MultiSelectorPresentation, type MultiSelectorProps, type MultiSelectorSection, type MultiSelectorSelectedItem, type MultiSelectorSize, type MultiSelectorSlots, type MultiSelectorStatus, type MultiSelectorStatusVariant, type MultiSelectorTriggerDisplay, type MultiSelectorVariant, SELECT_ALL_VALUE, flattenOptions };
|
package/dist/NavItem/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { a as NavItemSize, i as NavItemProps, n as NavIconSlots, o as NavItemSlots, r as NavItemEmits, s as NavLinkComponent, t as NavIconProps } from "../types-C2ZuV4jf.js";
|
|
2
|
-
import { n as _default, r as resolveNavRoot, t as _default$1 } from "../index-
|
|
2
|
+
import { n as _default, r as resolveNavRoot, t as _default$1 } from "../index-ZKBj_1nu.js";
|
|
3
3
|
export { _default as NavIcon, type NavIconProps, type NavIconSlots, _default$1 as NavItem, type NavItemEmits, type NavItemProps, type NavItemSize, type NavItemSlots, type NavLinkComponent, resolveNavRoot };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Gi as NumberInputStatus, Hi as _default, Ki as NumberInputEntryError, Ui as NumberInputEmits, Wi as NumberInputProps } from "../index-
|
|
1
|
+
import { Gi as NumberInputStatus, Hi as _default, Ki as NumberInputEntryError, Ui as NumberInputEmits, Wi as NumberInputProps } from "../index-BtReVAyz.js";
|
|
2
2
|
export { _default as NumberInput, type NumberInputEmits, type NumberInputEntryError, type NumberInputProps, type NumberInputStatus };
|