morya-ui 0.2.3 → 0.2.4
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/CHANGELOG.md +22 -0
- package/dist/FlyoutSubmenu-BC_cl17_.js +49 -0
- package/dist/ScrollBody-CXFNhBvq.js +68 -0
- package/dist/accordion/style.css +625 -583
- package/dist/auto-complete/style.css +625 -583
- package/dist/avatar/style.css +625 -583
- package/dist/badge/style.css +625 -583
- package/dist/block-ui/style.css +625 -583
- package/dist/breadcrumb/style.css +625 -583
- package/dist/button/style.css +625 -583
- package/dist/card/style.css +625 -583
- package/dist/carousel/style.css +625 -583
- package/dist/cascade-select/style.css +625 -583
- package/dist/checkbox/style.css +625 -583
- package/dist/chip/style.css +625 -583
- package/dist/command-menu/style.css +625 -583
- package/dist/components/ContextMenu/ContextMenu.vue.d.ts.map +1 -1
- package/dist/components/ContextMenu/ContextMenuNodes.vue.d.ts.map +1 -1
- package/dist/components/ContextMenu/styles.css +33 -4
- package/dist/components/Dropdown/Dropdown.vue.d.ts +2 -2
- package/dist/components/Dropdown/Dropdown.vue.d.ts.map +1 -1
- package/dist/components/Dropdown/DropdownNodes.vue.d.ts +2 -2
- package/dist/components/Dropdown/DropdownNodes.vue.d.ts.map +1 -1
- package/dist/components/Dropdown/styles.css +11 -0
- package/dist/components/Gallery/Gallery.vue.d.ts +2 -2
- package/dist/components/Gallery/Gallery.vue.d.ts.map +1 -1
- package/dist/components/Gallery/styles.css +5 -1
- package/dist/components/Layout/Layout.vue.d.ts +3 -3
- package/dist/components/Layout/Layout.vue.d.ts.map +1 -1
- package/dist/components/Layout/LayoutContent.vue.d.ts +2 -2
- package/dist/components/Layout/LayoutContent.vue.d.ts.map +1 -1
- package/dist/components/Layout/LayoutScrollContext.vue.d.ts +20 -0
- package/dist/components/Layout/LayoutScrollContext.vue.d.ts.map +1 -0
- package/dist/components/Layout/LayoutScrollRegion.vue.d.ts +34 -0
- package/dist/components/Layout/LayoutScrollRegion.vue.d.ts.map +1 -0
- package/dist/components/Layout/LayoutSider.vue.d.ts +2 -2
- package/dist/components/Layout/LayoutSider.vue.d.ts.map +1 -1
- package/dist/components/Layout/composables/useLayoutScroll.d.ts +4 -1
- package/dist/components/Layout/composables/useLayoutScroll.d.ts.map +1 -1
- package/dist/components/Layout/styles.css +31 -13
- package/dist/components/Menu/Menu.vue.d.ts.map +1 -1
- package/dist/components/Menu/styles.css +10 -0
- package/dist/components/Menubar/Menubar.vue.d.ts +2 -2
- package/dist/components/Menubar/Menubar.vue.d.ts.map +1 -1
- package/dist/components/Menubar/styles.css +14 -0
- package/dist/components/OrderList/OrderList.vue.d.ts +4 -4
- package/dist/components/OrderList/OrderList.vue.d.ts.map +1 -1
- package/dist/components/PickList/PickList.vue.d.ts +7 -7
- package/dist/components/PickList/PickList.vue.d.ts.map +1 -1
- package/dist/components/ScrollTop/ScrollTop.vue.d.ts.map +1 -1
- package/dist/components/Tabs/Tabs.vue.d.ts +3 -3
- package/dist/components/Tabs/Tabs.vue.d.ts.map +1 -1
- package/dist/components/Tabs/styles.css +72 -77
- package/dist/components/Terminal/Terminal.vue.d.ts.map +1 -1
- package/dist/components/Terminal/styles.css +6 -2
- package/dist/components/TieredMenu/TieredMenu.vue.d.ts.map +1 -1
- package/dist/components/TieredMenu/styles.css +33 -4
- package/dist/components/Timeline/Timeline.vue.d.ts +35 -10
- package/dist/components/Timeline/Timeline.vue.d.ts.map +1 -1
- package/dist/components/Timeline/styles.css +159 -156
- package/dist/components/TreeSelect/TreeSelect.vue.d.ts.map +1 -1
- package/dist/components/TreeSelect/styles.css +15 -0
- package/dist/components/TreeTable/TreeTable.vue.d.ts +2 -2
- package/dist/components/TreeTable/TreeTable.vue.d.ts.map +1 -1
- package/dist/components/TreeTable/styles.css +64 -61
- package/dist/components/VirtualScroller/VirtualScroller.vue.d.ts +2 -2
- package/dist/components/VirtualScroller/VirtualScroller.vue.d.ts.map +1 -1
- package/dist/components/VirtualScroller/styles.css +20 -17
- package/dist/config-provider/style.css +625 -583
- package/dist/confirm-dialog/style.css +625 -583
- package/dist/confirm-popup/style.css +625 -583
- package/dist/context-menu/index.js +131 -89
- package/dist/context-menu/style.css +781 -587
- package/dist/context-menu/style.js +1 -0
- package/dist/data-view/style.css +625 -583
- package/dist/date-picker/style.css +625 -583
- package/dist/dialog/style.css +625 -583
- package/dist/divider/style.css +625 -583
- package/dist/dock/style.css +625 -583
- package/dist/drawer/style.css +625 -583
- package/dist/dropdown/index.js +162 -122
- package/dist/dropdown/style.css +759 -583
- package/dist/dropdown/style.js +1 -0
- package/dist/fieldset/style.css +625 -583
- package/dist/file-upload/style.css +625 -583
- package/dist/flex/style.css +625 -583
- package/dist/float-label/style.css +625 -583
- package/dist/fluid/style.css +625 -583
- package/dist/form/style.css +625 -583
- package/dist/gallery/index.js +76 -67
- package/dist/gallery/style.css +753 -584
- package/dist/gallery/style.js +1 -0
- package/dist/grid/style.css +625 -583
- package/dist/icon/style.css +625 -583
- package/dist/icon-field/style.css +625 -583
- package/dist/index.js +1925 -1474
- package/dist/inplace/style.css +625 -583
- package/dist/input/style.css +625 -583
- package/dist/input-color/style.css +625 -583
- package/dist/input-group/style.css +625 -583
- package/dist/input-number/style.css +625 -583
- package/dist/input-otp/style.css +625 -583
- package/dist/input-password/style.css +625 -583
- package/dist/input-tags/style.css +625 -583
- package/dist/knob/style.css +625 -583
- package/dist/label/style.css +625 -583
- package/dist/layout/index.js +230 -136
- package/dist/layout/style.css +779 -596
- package/dist/layout/style.js +1 -0
- package/dist/listbox/style.css +625 -583
- package/dist/mega-menu/style.css +625 -583
- package/dist/menu/index.js +233 -216
- package/dist/menu/style.css +758 -583
- package/dist/menu/style.js +1 -0
- package/dist/menubar/index.js +77 -68
- package/dist/menubar/style.css +762 -583
- package/dist/menubar/style.js +1 -0
- package/dist/message/style.css +625 -583
- package/dist/meter-group/style.css +625 -583
- package/dist/order-list/index.js +66 -58
- package/dist/order-list/style.css +625 -583
- package/dist/page/style.css +625 -583
- package/dist/pagination/style.css +625 -583
- package/dist/panel/style.css +625 -583
- package/dist/pick-list/index.js +97 -84
- package/dist/pick-list/style.css +625 -583
- package/dist/popover/style.css +625 -583
- package/dist/progress-bar/style.css +625 -583
- package/dist/progress-spinner/style.css +625 -583
- package/dist/radio/style.css +625 -583
- package/dist/rating/style.css +625 -583
- package/dist/scroll-top/index.js +23 -13
- package/dist/scroll-top/style.css +748 -583
- package/dist/scroll-top/style.js +1 -0
- package/dist/scrollbar/style.css +625 -583
- package/dist/select/style.css +625 -583
- package/dist/select-button/style.css +625 -583
- package/dist/shared/FlyoutSubmenu.vue.d.ts +32 -0
- package/dist/shared/FlyoutSubmenu.vue.d.ts.map +1 -0
- package/dist/shared/ScrollBody.vue.d.ts +39 -0
- package/dist/shared/ScrollBody.vue.d.ts.map +1 -0
- package/dist/sidebar/style.css +625 -583
- package/dist/skeleton/style.css +625 -583
- package/dist/slider/style.css +625 -583
- package/dist/space/style.css +625 -583
- package/dist/speed-dial/style.css +625 -583
- package/dist/split-button/style.css +625 -583
- package/dist/splitter/style.css +625 -583
- package/dist/stepper/style.css +625 -583
- package/dist/styles/base.css +625 -583
- package/dist/styles.css +1 -1
- package/dist/switch/style.css +625 -583
- package/dist/table/style.css +625 -583
- package/dist/tabs/index.js +92 -81
- package/dist/tabs/style.css +818 -658
- package/dist/tabs/style.js +1 -0
- package/dist/tag/style.css +625 -583
- package/dist/terminal/index.js +47 -40
- package/dist/terminal/style.css +631 -585
- package/dist/textarea/style.css +625 -583
- package/dist/tiered-menu/index.js +130 -84
- package/dist/tiered-menu/style.css +781 -587
- package/dist/tiered-menu/style.js +1 -0
- package/dist/timeline/index.js +82 -37
- package/dist/timeline/style.css +907 -739
- package/dist/timeline/style.js +1 -0
- package/dist/toast/style.css +625 -583
- package/dist/toggle-button/style.css +625 -583
- package/dist/toolbar/style.css +625 -583
- package/dist/tooltip/style.css +625 -583
- package/dist/tree/style.css +625 -583
- package/dist/tree-select/index.js +202 -193
- package/dist/tree-select/style.css +763 -583
- package/dist/tree-select/style.js +1 -0
- package/dist/tree-table/index.js +57 -50
- package/dist/tree-table/style.css +689 -644
- package/dist/virtual-scroller/index.js +38 -34
- package/dist/virtual-scroller/style.css +775 -607
- package/dist/virtual-scroller/style.js +1 -0
- package/package.json +1 -1
package/dist/menu/index.js
CHANGED
|
@@ -3,17 +3,18 @@ import { t } from "../Icon-DfpIfo2L.js";
|
|
|
3
3
|
import { n, t as r } from "../overlay-oR-5MDuE.js";
|
|
4
4
|
import { t as i } from "../overlayPlacement-Cd20JTD_.js";
|
|
5
5
|
import { t as a } from "../useMenuKeyboard-BedmYE4W.js";
|
|
6
|
-
import { t as o } from "../
|
|
7
|
-
import { t as s } from "../
|
|
8
|
-
import { t as c } from "../
|
|
9
|
-
import { t as ee } from "../
|
|
6
|
+
import { t as o } from "../Scrollbar-DoNZvgX2.js";
|
|
7
|
+
import { t as s } from "../icon-xUOyawgJ.js";
|
|
8
|
+
import { t as c } from "../key-CaQYVkjh.js";
|
|
9
|
+
import { t as ee } from "../lastPointer-CRxcUqdd.js";
|
|
10
|
+
import { t as te } from "../Popover-6eE5yIT7.js";
|
|
10
11
|
import { t as l } from "../Tooltip-CrKm9FMD.js";
|
|
11
|
-
import { c as
|
|
12
|
+
import { c as u } from "../config-CI8_WBbE.js";
|
|
12
13
|
import "./style.js";
|
|
13
|
-
import { Fragment as
|
|
14
|
+
import { Fragment as d, Teleport as f, Transition as ne, computed as p, createBlock as m, createCommentVNode as h, createElementBlock as g, createElementVNode as _, createVNode as v, defineComponent as y, getCurrentInstance as b, inject as x, mergeProps as S, nextTick as C, normalizeClass as w, normalizeStyle as T, onBeforeUnmount as E, openBlock as D, provide as O, reactive as re, ref as k, renderList as A, renderSlot as j, resolveDynamicComponent as M, toDisplayString as N, unref as P, useAttrs as ie, useSlots as ae, watch as F, withCtx as I } from "vue";
|
|
14
15
|
//#region src/shared/menu/tree.ts
|
|
15
16
|
function L(e, t, n = "item") {
|
|
16
|
-
return
|
|
17
|
+
return c(e, t, n);
|
|
17
18
|
}
|
|
18
19
|
function R(e, t, n = "item") {
|
|
19
20
|
for (let r = 0; r < e.length; r++) {
|
|
@@ -28,20 +29,20 @@ function R(e, t, n = "item") {
|
|
|
28
29
|
}
|
|
29
30
|
return null;
|
|
30
31
|
}
|
|
31
|
-
function
|
|
32
|
+
function oe(e, t, n, r = "item") {
|
|
32
33
|
return e.items?.length ? L(e, n, r) === t || R(e.items, t, `${r}-${n}`) !== null : !1;
|
|
33
34
|
}
|
|
34
|
-
function
|
|
35
|
+
function se(e, t = "item") {
|
|
35
36
|
let n = [];
|
|
36
37
|
for (let r = 0; r < e.length; r++) {
|
|
37
38
|
let i = e[r];
|
|
38
39
|
if (i.separator || !i.items?.length) continue;
|
|
39
40
|
let a = L(i, r, t);
|
|
40
|
-
n.push(a), n.push(...
|
|
41
|
+
n.push(a), n.push(...se(i.items, `${t}-${r}`));
|
|
41
42
|
}
|
|
42
43
|
return n;
|
|
43
44
|
}
|
|
44
|
-
function
|
|
45
|
+
function ce(e, t = "item") {
|
|
45
46
|
let n = [];
|
|
46
47
|
for (let r = 0; r < e.length; r++) {
|
|
47
48
|
let i = e[r];
|
|
@@ -51,7 +52,7 @@ function se(e, t = "item") {
|
|
|
51
52
|
}
|
|
52
53
|
//#endregion
|
|
53
54
|
//#region src/components/Menu/context.ts
|
|
54
|
-
var
|
|
55
|
+
var le = Symbol("muMenu"), z = /* @__PURE__ */ y({
|
|
55
56
|
__name: "MenuCollapsedTooltip",
|
|
56
57
|
props: {
|
|
57
58
|
label: {},
|
|
@@ -65,8 +66,8 @@ var ce = Symbol("muMenu"), z = /* @__PURE__ */ v({
|
|
|
65
66
|
}
|
|
66
67
|
},
|
|
67
68
|
setup(e) {
|
|
68
|
-
let t = e, n =
|
|
69
|
-
return (t, r) => n.value ? (
|
|
69
|
+
let t = e, n = p(() => t.active && !!t.label && !t.suspended);
|
|
70
|
+
return (t, r) => n.value ? (D(), m(l, {
|
|
70
71
|
key: 0,
|
|
71
72
|
content: e.label,
|
|
72
73
|
placement: "right",
|
|
@@ -81,16 +82,16 @@ var ce = Symbol("muMenu"), z = /* @__PURE__ */ v({
|
|
|
81
82
|
//#endregion
|
|
82
83
|
//#region src/shared/optionalRouter.ts
|
|
83
84
|
function B() {
|
|
84
|
-
let e =
|
|
85
|
+
let e = b();
|
|
85
86
|
if (!e) return !1;
|
|
86
87
|
for (let t of Object.values(e.appContext.provides)) if (t && typeof t == "object" && "resolve" in t && "push" in t) return !0;
|
|
87
88
|
return !1;
|
|
88
89
|
}
|
|
89
|
-
function
|
|
90
|
-
let e =
|
|
90
|
+
function ue() {
|
|
91
|
+
let e = b();
|
|
91
92
|
return !e || !B() ? null : e.appContext.components.RouterLink ?? null;
|
|
92
93
|
}
|
|
93
|
-
function
|
|
94
|
+
function de(e) {
|
|
94
95
|
return typeof e == "string" ? e : typeof e.path == "string" ? e.path : typeof e.href == "string" ? e.href : "#";
|
|
95
96
|
}
|
|
96
97
|
function V(e) {
|
|
@@ -111,14 +112,14 @@ var H = {
|
|
|
111
112
|
key: 0,
|
|
112
113
|
class: "m-menu__icon",
|
|
113
114
|
"aria-hidden": "true"
|
|
114
|
-
},
|
|
115
|
+
}, fe = { class: "m-menu__label" }, pe = {
|
|
115
116
|
key: 1,
|
|
116
117
|
class: "m-menu__arrow",
|
|
117
118
|
"aria-hidden": "true"
|
|
118
119
|
}, G = {
|
|
119
120
|
class: "m-menu m-menu--flyout",
|
|
120
121
|
role: "menu"
|
|
121
|
-
},
|
|
122
|
+
}, me = [
|
|
122
123
|
"tabindex",
|
|
123
124
|
"data-m-menu-key",
|
|
124
125
|
"aria-expanded",
|
|
@@ -132,11 +133,11 @@ var H = {
|
|
|
132
133
|
key: 0,
|
|
133
134
|
class: "m-menu__submenu",
|
|
134
135
|
role: "group"
|
|
135
|
-
}, Y = { class: "m-menu__submenu-inner" },
|
|
136
|
+
}, Y = { class: "m-menu__submenu-inner" }, he = {
|
|
136
137
|
key: 0,
|
|
137
138
|
class: "m-menu__icon",
|
|
138
139
|
"aria-hidden": "true"
|
|
139
|
-
},
|
|
140
|
+
}, ge = { class: "m-menu__label" }, X = /* @__PURE__ */ y({
|
|
140
141
|
__name: "MenuNodes",
|
|
141
142
|
props: {
|
|
142
143
|
items: {},
|
|
@@ -145,17 +146,17 @@ var H = {
|
|
|
145
146
|
flyout: { type: Boolean }
|
|
146
147
|
},
|
|
147
148
|
setup(e) {
|
|
148
|
-
let n = e, r =
|
|
149
|
+
let n = e, r = x(le);
|
|
149
150
|
if (!r) throw Error("MenuNodes must be used inside MMenu");
|
|
150
|
-
let i = r, a =
|
|
151
|
-
function
|
|
151
|
+
let i = r, a = ue(), o = p(() => i.collapsed.value && !n.flyout), c = p(() => i.mode === "horizontal"), ee = p(() => (o.value || c.value) && !n.flyout);
|
|
152
|
+
function l(e, t) {
|
|
152
153
|
i.setFlyoutOpen(e, t);
|
|
153
154
|
}
|
|
154
|
-
function
|
|
155
|
+
function u(e, t) {
|
|
155
156
|
return i.resolveKey(e, t, n.prefix);
|
|
156
157
|
}
|
|
157
|
-
function
|
|
158
|
-
return
|
|
158
|
+
function f(e) {
|
|
159
|
+
return s(e.icon);
|
|
159
160
|
}
|
|
160
161
|
function y(e, t) {
|
|
161
162
|
if (e.disabled) {
|
|
@@ -164,85 +165,85 @@ var H = {
|
|
|
164
165
|
}
|
|
165
166
|
i.activate(e), e.to || t.preventDefault();
|
|
166
167
|
}
|
|
167
|
-
function
|
|
168
|
-
e.disabled ||
|
|
168
|
+
function b(e, t) {
|
|
169
|
+
e.disabled || ee.value || i.toggleExpand(u(e, t));
|
|
169
170
|
}
|
|
170
171
|
function S(e, t) {
|
|
171
|
-
return i.isExpanded(
|
|
172
|
+
return i.isExpanded(u(e, t));
|
|
172
173
|
}
|
|
173
|
-
function
|
|
174
|
-
let r =
|
|
174
|
+
function C(e, t) {
|
|
175
|
+
let r = f(e);
|
|
175
176
|
return {
|
|
176
177
|
"m-menu__item-content--selected": i.isSelected(e, t, n.prefix),
|
|
177
178
|
"m-menu__item-content--child-active": i.isChildActive(e, t, n.prefix),
|
|
178
179
|
"m-menu__item-content--disabled": !!e.disabled,
|
|
179
|
-
"m-menu__item-content--collapsed":
|
|
180
|
+
"m-menu__item-content--collapsed": o.value,
|
|
180
181
|
"m-menu__item-content--no-icon": !r,
|
|
181
|
-
"m-menu__item-content--active": i.activeKey.value ===
|
|
182
|
+
"m-menu__item-content--active": i.activeKey.value === u(e, t)
|
|
182
183
|
};
|
|
183
184
|
}
|
|
184
|
-
function
|
|
185
|
-
return n.flyout ? 0 : i.tabindexForKey(
|
|
185
|
+
function E(e, t) {
|
|
186
|
+
return n.flyout ? 0 : i.tabindexForKey(u(e, t));
|
|
186
187
|
}
|
|
187
188
|
function O(e) {
|
|
188
189
|
if (!(c.value || n.flyout)) return i.paddingStyle(e);
|
|
189
190
|
}
|
|
190
|
-
function
|
|
191
|
+
function re(e, t) {
|
|
191
192
|
return S(e, t);
|
|
192
193
|
}
|
|
193
|
-
function
|
|
194
|
+
function k(e) {
|
|
194
195
|
return !!(e.to && a && !V(e.to));
|
|
195
196
|
}
|
|
196
|
-
function
|
|
197
|
-
if (!(!e.to ||
|
|
197
|
+
function j(e) {
|
|
198
|
+
if (!(!e.to || k(e))) return de(e.to);
|
|
198
199
|
}
|
|
199
200
|
function ie(e) {
|
|
200
|
-
if (!(!
|
|
201
|
+
if (!(!k(e) || !e.to)) return e.to;
|
|
201
202
|
}
|
|
202
|
-
function
|
|
203
|
-
return
|
|
203
|
+
function ae(e) {
|
|
204
|
+
return o.value && !!e.label;
|
|
204
205
|
}
|
|
205
|
-
function
|
|
206
|
-
return !!i.flyoutOpen[
|
|
206
|
+
function F(e, t) {
|
|
207
|
+
return !!i.flyoutOpen[u(e, t)];
|
|
207
208
|
}
|
|
208
|
-
return (n, r) => (
|
|
209
|
+
return (n, r) => (D(!0), g(d, null, A(e.items, (n, r) => (D(), g(d, { key: u(n, r) }, [n.separator ? (D(), g("div", H)) : n.items?.length ? (D(), g("div", {
|
|
209
210
|
key: 1,
|
|
210
|
-
class:
|
|
211
|
+
class: w(["m-menu__item m-menu__item--submenu", { "m-menu__item--horizontal": c.value }]),
|
|
211
212
|
role: "none"
|
|
212
|
-
}, [
|
|
213
|
+
}, [ee.value ? (D(), m(te, {
|
|
213
214
|
key: 0,
|
|
214
215
|
class: "m-menu__collapsed-popover",
|
|
215
|
-
"model-value": !!P(i).flyoutOpen[
|
|
216
|
+
"model-value": !!P(i).flyoutOpen[u(n, r)],
|
|
216
217
|
trigger: c.value ? "click" : "hover",
|
|
217
218
|
placement: c.value ? "bottom-start" : "right-start",
|
|
218
219
|
"show-delay": c.value ? 0 : 50,
|
|
219
220
|
"hide-delay": c.value ? 0 : 80,
|
|
220
|
-
"onUpdate:modelValue": (e) =>
|
|
221
|
+
"onUpdate:modelValue": (e) => l(u(n, r), e)
|
|
221
222
|
}, {
|
|
222
|
-
default: I(() => [
|
|
223
|
+
default: I(() => [v(z, {
|
|
223
224
|
label: n.label,
|
|
224
|
-
active:
|
|
225
|
-
suspended:
|
|
225
|
+
active: ae(n),
|
|
226
|
+
suspended: F(n, r)
|
|
226
227
|
}, {
|
|
227
|
-
default: I(() => [
|
|
228
|
-
class:
|
|
229
|
-
style:
|
|
228
|
+
default: I(() => [_("div", {
|
|
229
|
+
class: w(["m-menu__item-content", C(n, r)]),
|
|
230
|
+
style: T(O(e.depth)),
|
|
230
231
|
role: "menuitem",
|
|
231
|
-
tabindex:
|
|
232
|
-
"data-m-menu-key": e.flyout ? void 0 :
|
|
232
|
+
tabindex: E(n, r),
|
|
233
|
+
"data-m-menu-key": e.flyout ? void 0 : u(n, r),
|
|
233
234
|
"aria-label": n.label,
|
|
234
235
|
"aria-haspopup": "menu",
|
|
235
|
-
"aria-expanded": c.value ? !!P(i).flyoutOpen[
|
|
236
|
+
"aria-expanded": c.value ? !!P(i).flyoutOpen[u(n, r)] : void 0
|
|
236
237
|
}, [
|
|
237
|
-
|
|
238
|
-
name:
|
|
238
|
+
f(n) ? (D(), g("span", W, [v(t, {
|
|
239
|
+
name: f(n),
|
|
239
240
|
size: "sm"
|
|
240
|
-
}, null, 8, ["name"])])) :
|
|
241
|
-
|
|
242
|
-
c.value ? (
|
|
241
|
+
}, null, 8, ["name"])])) : h("", !0),
|
|
242
|
+
_("span", fe, N(n.label), 1),
|
|
243
|
+
c.value ? (D(), g("span", pe, [v(t, {
|
|
243
244
|
name: "chevron-down",
|
|
244
245
|
size: "sm"
|
|
245
|
-
})])) :
|
|
246
|
+
})])) : h("", !0)
|
|
246
247
|
], 14, U)]),
|
|
247
248
|
_: 2
|
|
248
249
|
}, 1032, [
|
|
@@ -250,7 +251,7 @@ var H = {
|
|
|
250
251
|
"active",
|
|
251
252
|
"suspended"
|
|
252
253
|
])]),
|
|
253
|
-
content: I(() => [
|
|
254
|
+
content: I(() => [_("div", G, [v(X, {
|
|
254
255
|
items: n.items,
|
|
255
256
|
depth: 0,
|
|
256
257
|
prefix: `${e.prefix}-${r}`,
|
|
@@ -264,31 +265,31 @@ var H = {
|
|
|
264
265
|
"show-delay",
|
|
265
266
|
"hide-delay",
|
|
266
267
|
"onUpdate:modelValue"
|
|
267
|
-
])) : (
|
|
268
|
-
class:
|
|
269
|
-
style:
|
|
268
|
+
])) : (D(), g(d, { key: 1 }, [_("div", {
|
|
269
|
+
class: w(["m-menu__item-content", C(n, r)]),
|
|
270
|
+
style: T(O(e.depth)),
|
|
270
271
|
role: "menuitem",
|
|
271
|
-
tabindex:
|
|
272
|
-
"data-m-menu-key": e.flyout ? void 0 :
|
|
272
|
+
tabindex: E(n, r),
|
|
273
|
+
"data-m-menu-key": e.flyout ? void 0 : u(n, r),
|
|
273
274
|
"aria-haspopup": "menu",
|
|
274
275
|
"aria-expanded": S(n, r),
|
|
275
276
|
"aria-disabled": n.disabled || void 0,
|
|
276
|
-
onClick: (e) =>
|
|
277
|
+
onClick: (e) => b(n, r)
|
|
277
278
|
}, [
|
|
278
|
-
|
|
279
|
-
name:
|
|
279
|
+
f(n) ? (D(), g("span", K, [v(t, {
|
|
280
|
+
name: f(n),
|
|
280
281
|
size: "sm"
|
|
281
|
-
}, null, 8, ["name"])])) :
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
class:
|
|
282
|
+
}, null, 8, ["name"])])) : h("", !0),
|
|
283
|
+
_("span", q, N(n.label), 1),
|
|
284
|
+
_("span", {
|
|
285
|
+
class: w(["m-menu__arrow", { "m-menu__arrow--expanded": re(n, r) }]),
|
|
285
286
|
"aria-hidden": "true"
|
|
286
|
-
}, [
|
|
287
|
+
}, [v(t, {
|
|
287
288
|
name: "chevron-right",
|
|
288
289
|
size: "sm"
|
|
289
290
|
})], 2)
|
|
290
|
-
], 14,
|
|
291
|
-
default: I(() => [S(n, r) ? (
|
|
291
|
+
], 14, me), v(ne, { name: "m-menu-expand" }, {
|
|
292
|
+
default: I(() => [S(n, r) ? (D(), g("div", J, [_("div", Y, [v(X, {
|
|
292
293
|
items: n.items,
|
|
293
294
|
depth: e.depth + 1,
|
|
294
295
|
prefix: `${e.prefix}-${r}`
|
|
@@ -296,32 +297,32 @@ var H = {
|
|
|
296
297
|
"items",
|
|
297
298
|
"depth",
|
|
298
299
|
"prefix"
|
|
299
|
-
])])])) :
|
|
300
|
+
])])])) : h("", !0)]),
|
|
300
301
|
_: 2
|
|
301
|
-
}, 1024)], 64))], 2)) : (
|
|
302
|
+
}, 1024)], 64))], 2)) : (D(), g("div", {
|
|
302
303
|
key: 2,
|
|
303
|
-
class:
|
|
304
|
+
class: w(["m-menu__item", { "m-menu__item--horizontal": c.value }]),
|
|
304
305
|
role: "none"
|
|
305
|
-
}, [
|
|
306
|
+
}, [v(z, {
|
|
306
307
|
label: n.label,
|
|
307
|
-
active:
|
|
308
|
+
active: ae(n)
|
|
308
309
|
}, {
|
|
309
|
-
default: I(() => [(
|
|
310
|
-
class:
|
|
311
|
-
style:
|
|
310
|
+
default: I(() => [(D(), m(M(k(n) ? P(a) : j(n) ? "a" : "div"), {
|
|
311
|
+
class: w(["m-menu__item-content", C(n, r)]),
|
|
312
|
+
style: T(O(e.depth)),
|
|
312
313
|
role: "menuitem",
|
|
313
|
-
tabindex:
|
|
314
|
-
"data-m-menu-key": e.flyout ? void 0 :
|
|
314
|
+
tabindex: E(n, r),
|
|
315
|
+
"data-m-menu-key": e.flyout ? void 0 : u(n, r),
|
|
315
316
|
"aria-disabled": n.disabled || void 0,
|
|
316
317
|
"aria-current": P(i).isSelected(n, r, e.prefix) ? "page" : void 0,
|
|
317
|
-
href:
|
|
318
|
+
href: j(n),
|
|
318
319
|
to: ie(n),
|
|
319
320
|
onClick: (e) => y(n, e)
|
|
320
321
|
}, {
|
|
321
|
-
default: I(() => [
|
|
322
|
-
name:
|
|
322
|
+
default: I(() => [f(n) ? (D(), g("span", he, [v(t, {
|
|
323
|
+
name: f(n),
|
|
323
324
|
size: "sm"
|
|
324
|
-
}, null, 8, ["name"])])) :
|
|
325
|
+
}, null, 8, ["name"])])) : h("", !0), _("span", ge, N(n.label), 1)]),
|
|
325
326
|
_: 2
|
|
326
327
|
}, 1032, [
|
|
327
328
|
"class",
|
|
@@ -337,7 +338,7 @@ var H = {
|
|
|
337
338
|
_: 2
|
|
338
339
|
}, 1032, ["label", "active"])], 2))], 64))), 128));
|
|
339
340
|
}
|
|
340
|
-
}),
|
|
341
|
+
}), _e = /* @__PURE__ */ y({
|
|
341
342
|
inheritAttrs: !1,
|
|
342
343
|
__name: "Menu",
|
|
343
344
|
props: {
|
|
@@ -391,18 +392,18 @@ var H = {
|
|
|
391
392
|
"update:expandedKeys",
|
|
392
393
|
"select"
|
|
393
394
|
],
|
|
394
|
-
setup(t, { emit:
|
|
395
|
-
let
|
|
395
|
+
setup(t, { emit: s }) {
|
|
396
|
+
let c = t, te = ie(), { rootAttrs: l } = e(te, () => c.pt), d = s, y = ae(), b = u(), x = k(null), A = k(null), M = k({}), N = p(() => !!y.default?.()?.length), z = p(() => n(c.popup ? c : { teleport: !1 }, b.value.appendTo)), B = p(() => c.popup && r(c, b.value.appendTo)), ue = p(() => c.embedded ?? !c.popup), de = p(() => c.selectedKey), V = k([]), H = re({});
|
|
396
397
|
function U(e, t) {
|
|
397
398
|
H[e] = t;
|
|
398
399
|
}
|
|
399
400
|
function W() {
|
|
400
401
|
for (let e of Object.keys(H)) H[e] = !1;
|
|
401
402
|
}
|
|
402
|
-
function
|
|
403
|
+
function fe() {
|
|
403
404
|
let e = A.value?.getBoundingClientRect();
|
|
404
405
|
if (e && (e.width > 0 || e.height > 0)) return e;
|
|
405
|
-
let { x: t, y: n } =
|
|
406
|
+
let { x: t, y: n } = ee();
|
|
406
407
|
return {
|
|
407
408
|
left: t,
|
|
408
409
|
top: n,
|
|
@@ -412,35 +413,35 @@ var H = {
|
|
|
412
413
|
height: 0
|
|
413
414
|
};
|
|
414
415
|
}
|
|
415
|
-
function
|
|
416
|
-
!
|
|
416
|
+
function pe() {
|
|
417
|
+
!c.popup || !c.modelValue || !B.value || (M.value = i(fe(), c.placement, { minWidth: "10rem" }));
|
|
417
418
|
}
|
|
418
419
|
function G() {
|
|
419
|
-
|
|
420
|
+
c.modelValue && pe();
|
|
420
421
|
}
|
|
421
|
-
function
|
|
422
|
-
if (
|
|
423
|
-
V.value =
|
|
422
|
+
function me() {
|
|
423
|
+
if (c.defaultExpandAll) {
|
|
424
|
+
V.value = se(c.model);
|
|
424
425
|
return;
|
|
425
426
|
}
|
|
426
|
-
if (
|
|
427
|
-
V.value = [...
|
|
427
|
+
if (c.defaultExpandedKeys.length) {
|
|
428
|
+
V.value = [...c.defaultExpandedKeys];
|
|
428
429
|
return;
|
|
429
430
|
}
|
|
430
|
-
if (
|
|
431
|
-
let e = R(
|
|
431
|
+
if (c.selectedKey) {
|
|
432
|
+
let e = R(c.model, c.selectedKey);
|
|
432
433
|
V.value = e ?? [];
|
|
433
434
|
return;
|
|
434
435
|
}
|
|
435
436
|
V.value = [];
|
|
436
437
|
}
|
|
437
|
-
|
|
438
|
-
let K =
|
|
439
|
-
get: () =>
|
|
438
|
+
me();
|
|
439
|
+
let K = p({
|
|
440
|
+
get: () => c.expandedKeys ?? V.value,
|
|
440
441
|
set: (e) => {
|
|
441
|
-
V.value = e,
|
|
442
|
+
V.value = e, d("update:expandedKeys", e);
|
|
442
443
|
}
|
|
443
|
-
}), q =
|
|
444
|
+
}), q = p(() => ce(c.model));
|
|
444
445
|
function J(e) {
|
|
445
446
|
return K.value.includes(e);
|
|
446
447
|
}
|
|
@@ -448,7 +449,7 @@ var H = {
|
|
|
448
449
|
let t = [...K.value], n = t.indexOf(e);
|
|
449
450
|
if (n >= 0) t.splice(n, 1);
|
|
450
451
|
else {
|
|
451
|
-
if (
|
|
452
|
+
if (c.accordion && q.value.includes(e)) {
|
|
452
453
|
for (let n of [...t]) if (q.value.includes(n) && n !== e) {
|
|
453
454
|
let e = t.indexOf(n);
|
|
454
455
|
e >= 0 && t.splice(e, 1);
|
|
@@ -458,47 +459,47 @@ var H = {
|
|
|
458
459
|
}
|
|
459
460
|
K.value = t;
|
|
460
461
|
}
|
|
461
|
-
function
|
|
462
|
+
function he(e) {
|
|
462
463
|
if (!e) return;
|
|
463
|
-
let t = R(
|
|
464
|
+
let t = R(c.model, e);
|
|
464
465
|
if (!t?.length) return;
|
|
465
466
|
let n = /* @__PURE__ */ new Set([...K.value, ...t]);
|
|
466
|
-
if (
|
|
467
|
+
if (c.accordion) for (let e of q.value) n.has(e) && !t.includes(e) && n.delete(e);
|
|
467
468
|
K.value = Array.from(n);
|
|
468
469
|
}
|
|
469
|
-
F(() =>
|
|
470
|
-
function he(e, t, n) {
|
|
471
|
-
return L(e, t, n);
|
|
472
|
-
}
|
|
470
|
+
F(() => c.selectedKey, he);
|
|
473
471
|
function ge(e, t, n) {
|
|
474
|
-
|
|
475
|
-
return !!(s.selectedKey && r === s.selectedKey);
|
|
472
|
+
return L(e, t, n);
|
|
476
473
|
}
|
|
477
474
|
function _e(e, t, n) {
|
|
478
|
-
|
|
475
|
+
let r = ge(e, t, n);
|
|
476
|
+
return !!(c.selectedKey && r === c.selectedKey);
|
|
479
477
|
}
|
|
480
|
-
function ve(e) {
|
|
481
|
-
|
|
478
|
+
function ve(e, t, n) {
|
|
479
|
+
return c.selectedKey ? oe(e, c.selectedKey, t, n) : !1;
|
|
482
480
|
}
|
|
483
481
|
function ye(e) {
|
|
484
|
-
if (
|
|
485
|
-
|
|
486
|
-
|
|
482
|
+
if (c.mode !== "horizontal" && c.collapsed) return Math.max(0, c.collapsedWidth / 2 - 10);
|
|
483
|
+
}
|
|
484
|
+
function be(e) {
|
|
485
|
+
if (c.mode === "horizontal") return { paddingInlineStart: `${c.rootIndent}px` };
|
|
486
|
+
if (c.collapsed) {
|
|
487
|
+
let t = ye(e);
|
|
487
488
|
return t == null ? void 0 : { paddingInlineStart: `${t}px` };
|
|
488
489
|
}
|
|
489
490
|
return { paddingInlineStart: `calc(var(--m-menu-root-indent) + ${e} * var(--m-menu-indent))` };
|
|
490
491
|
}
|
|
491
|
-
function
|
|
492
|
+
function xe(e) {
|
|
492
493
|
if (e.disabled || e.separator) return;
|
|
493
494
|
e.command?.();
|
|
494
495
|
let t = e.key ?? e.label ?? null;
|
|
495
|
-
|
|
496
|
+
d("update:selectedKey", t), d("select", e), c.popup && (d("update:modelValue", !1), Se()), c.mode === "horizontal" && W();
|
|
496
497
|
}
|
|
497
|
-
function
|
|
498
|
+
function Se() {
|
|
498
499
|
(A.value?.querySelector("button, [tabindex]") ?? A.value)?.focus({ preventScroll: !0 });
|
|
499
500
|
}
|
|
500
|
-
let Z =
|
|
501
|
-
let e =
|
|
501
|
+
let Z = p(() => {
|
|
502
|
+
let e = c.collapsed || c.mode === "horizontal", t = [], n = (r, i, a) => {
|
|
502
503
|
r.forEach((r, o) => {
|
|
503
504
|
if (r.separator) return;
|
|
504
505
|
let s = L(r, o, i), c = !!r.items?.length;
|
|
@@ -510,47 +511,47 @@ var H = {
|
|
|
510
511
|
}), c && !e && J(s) && n(r.items, `${i}-${o}`, s);
|
|
511
512
|
});
|
|
512
513
|
};
|
|
513
|
-
return n(
|
|
514
|
+
return n(c.model, "item", null), t;
|
|
514
515
|
}), Q = a({
|
|
515
516
|
itemCount: () => Z.value.length,
|
|
516
517
|
isItemDisabled: (e) => !!Z.value[e]?.item.disabled,
|
|
517
|
-
orientation: () =>
|
|
518
|
+
orientation: () => c.mode === "horizontal" ? "horizontal" : "vertical",
|
|
518
519
|
onActivate: (e) => {
|
|
519
520
|
let t = Z.value[e];
|
|
520
521
|
if (t) {
|
|
521
522
|
if (t.hasChildren) {
|
|
522
|
-
if (
|
|
523
|
+
if (c.collapsed || c.mode === "horizontal") {
|
|
523
524
|
let e = !H[t.key];
|
|
524
525
|
W(), U(t.key, e);
|
|
525
526
|
} else Y(t.key);
|
|
526
527
|
return;
|
|
527
528
|
}
|
|
528
|
-
|
|
529
|
+
xe(t.item);
|
|
529
530
|
}
|
|
530
531
|
},
|
|
531
532
|
onEscape: () => {
|
|
532
|
-
|
|
533
|
+
c.popup ? d("update:modelValue", !1) : W();
|
|
533
534
|
},
|
|
534
|
-
returnFocusTo: () =>
|
|
535
|
-
}),
|
|
536
|
-
function
|
|
537
|
-
let t =
|
|
535
|
+
returnFocusTo: () => c.popup ? A.value?.querySelector("button, [tabindex]") ?? A.value : null
|
|
536
|
+
}), Ce = p(() => Z.value[Q.activeIndex.value]?.key ?? null);
|
|
537
|
+
function we(e) {
|
|
538
|
+
let t = Ce.value;
|
|
538
539
|
return t == null ? Z.value.find((e) => !e.item.disabled)?.key === e ? 0 : -1 : e === t ? 0 : -1;
|
|
539
540
|
}
|
|
540
|
-
function
|
|
541
|
-
if (e == null || !
|
|
542
|
-
let t =
|
|
541
|
+
function Te(e) {
|
|
542
|
+
if (e == null || !x.value) return;
|
|
543
|
+
let t = x.value.querySelectorAll("[data-m-menu-key]");
|
|
543
544
|
for (let n of t) if (n.dataset.mMenuKey === e) {
|
|
544
545
|
n.focus({ preventScroll: !0 });
|
|
545
546
|
return;
|
|
546
547
|
}
|
|
547
548
|
}
|
|
548
|
-
function
|
|
549
|
+
function Ee(e) {
|
|
549
550
|
let t = Z.value[Q.activeIndex.value];
|
|
550
|
-
if (
|
|
551
|
+
if (c.mode !== "horizontal") {
|
|
551
552
|
if (e.key === "ArrowRight") {
|
|
552
553
|
if (e.preventDefault(), !t) return;
|
|
553
|
-
if (t.hasChildren && !
|
|
554
|
+
if (t.hasChildren && !c.collapsed) {
|
|
554
555
|
if (!J(t.key)) Y(t.key);
|
|
555
556
|
else {
|
|
556
557
|
let e = Z.value.findIndex((e) => e.parentKey === t.key);
|
|
@@ -561,7 +562,7 @@ var H = {
|
|
|
561
562
|
}
|
|
562
563
|
if (e.key === "ArrowLeft") {
|
|
563
564
|
if (e.preventDefault(), !t) return;
|
|
564
|
-
if (t.hasChildren && !
|
|
565
|
+
if (t.hasChildren && !c.collapsed && J(t.key)) Y(t.key);
|
|
565
566
|
else if (t.parentKey != null) {
|
|
566
567
|
let e = Z.value.findIndex((e) => e.key === t.parentKey);
|
|
567
568
|
e >= 0 && Q.setActive(e);
|
|
@@ -575,107 +576,123 @@ var H = {
|
|
|
575
576
|
Q.onKeydown(e);
|
|
576
577
|
}
|
|
577
578
|
F(Q.activeIndex, () => {
|
|
578
|
-
|
|
579
|
-
}),
|
|
580
|
-
collapsed:
|
|
581
|
-
selectedKey:
|
|
579
|
+
C(() => Te(Ce.value));
|
|
580
|
+
}), O(le, {
|
|
581
|
+
collapsed: p(() => c.collapsed),
|
|
582
|
+
selectedKey: de,
|
|
582
583
|
expandedKeys: K,
|
|
583
|
-
accordion:
|
|
584
|
-
indent:
|
|
585
|
-
rootIndent:
|
|
586
|
-
mode:
|
|
587
|
-
inverted:
|
|
584
|
+
accordion: c.accordion,
|
|
585
|
+
indent: c.indent,
|
|
586
|
+
rootIndent: c.rootIndent,
|
|
587
|
+
mode: c.mode,
|
|
588
|
+
inverted: c.inverted,
|
|
588
589
|
flyoutOpen: H,
|
|
589
590
|
setFlyoutOpen: U,
|
|
590
591
|
toggleExpand: Y,
|
|
591
592
|
isExpanded: J,
|
|
592
|
-
activate:
|
|
593
|
-
resolveKey:
|
|
594
|
-
isSelected:
|
|
595
|
-
isChildActive:
|
|
596
|
-
paddingStyle:
|
|
597
|
-
activeKey:
|
|
598
|
-
tabindexForKey:
|
|
593
|
+
activate: xe,
|
|
594
|
+
resolveKey: ge,
|
|
595
|
+
isSelected: _e,
|
|
596
|
+
isChildActive: ve,
|
|
597
|
+
paddingStyle: be,
|
|
598
|
+
activeKey: Ce,
|
|
599
|
+
tabindexForKey: we
|
|
599
600
|
});
|
|
600
|
-
function
|
|
601
|
-
if (!
|
|
601
|
+
function De(e) {
|
|
602
|
+
if (!c.popup || !c.modelValue) return;
|
|
602
603
|
let t = e.target;
|
|
603
|
-
|
|
604
|
+
x.value?.contains(t) || A.value?.contains(t) || d("update:modelValue", !1);
|
|
604
605
|
}
|
|
605
|
-
F(() =>
|
|
606
|
-
|
|
607
|
-
}, { immediate: !0 }),
|
|
608
|
-
document.removeEventListener("click",
|
|
606
|
+
F(() => c.modelValue, (e) => {
|
|
607
|
+
c.popup && (e ? (C(pe), document.addEventListener("click", De), B.value && (window.addEventListener("resize", G), window.addEventListener("scroll", G, !0))) : (document.removeEventListener("click", De), window.removeEventListener("resize", G), window.removeEventListener("scroll", G, !0)));
|
|
608
|
+
}, { immediate: !0 }), E(() => {
|
|
609
|
+
document.removeEventListener("click", De), window.removeEventListener("resize", G), window.removeEventListener("scroll", G, !0);
|
|
609
610
|
});
|
|
610
|
-
let
|
|
611
|
-
"m-menu--popup":
|
|
611
|
+
let Oe = p(() => ["m-menu", {
|
|
612
|
+
"m-menu--popup": c.popup,
|
|
612
613
|
"m-menu--teleported": B.value,
|
|
613
|
-
"m-menu--collapsed":
|
|
614
|
-
"m-menu--embedded":
|
|
615
|
-
"m-menu--horizontal":
|
|
616
|
-
"m-menu--inverted":
|
|
617
|
-
}]), $ =
|
|
618
|
-
"--m-menu-indent": `${
|
|
619
|
-
"--m-menu-root-indent": `${
|
|
620
|
-
})),
|
|
614
|
+
"m-menu--collapsed": c.collapsed,
|
|
615
|
+
"m-menu--embedded": ue.value,
|
|
616
|
+
"m-menu--horizontal": c.mode === "horizontal",
|
|
617
|
+
"m-menu--inverted": c.inverted
|
|
618
|
+
}]), $ = p(() => ({
|
|
619
|
+
"--m-menu-indent": `${c.indent / 16}rem`,
|
|
620
|
+
"--m-menu-root-indent": `${c.rootIndent / 16}rem`
|
|
621
|
+
})), ke = p(() => B.value ? {
|
|
621
622
|
...$.value,
|
|
622
623
|
...M.value
|
|
623
624
|
} : $.value);
|
|
624
|
-
return (e, n) => t.popup ? N.value ? (
|
|
625
|
+
return (e, n) => t.popup ? N.value ? (D(), g("div", S({ key: 1 }, P(l), { class: "m-menu-popup" }), [_("div", {
|
|
625
626
|
ref_key: "triggerEl",
|
|
626
627
|
ref: A,
|
|
627
628
|
class: "m-menu-popup__anchor"
|
|
628
|
-
}, [j(e.$slots, "default")], 512), (
|
|
629
|
+
}, [j(e.$slots, "default")], 512), (D(), m(f, {
|
|
629
630
|
to: z.value.to,
|
|
630
631
|
disabled: z.value.disabled
|
|
631
|
-
}, [
|
|
632
|
-
default: I(() => [t.modelValue ? (
|
|
632
|
+
}, [v(ne, { name: "m-scale-fade" }, {
|
|
633
|
+
default: I(() => [t.modelValue ? (D(), g("div", {
|
|
633
634
|
key: 0,
|
|
634
635
|
ref_key: "root",
|
|
635
|
-
ref:
|
|
636
|
-
class:
|
|
637
|
-
style:
|
|
636
|
+
ref: x,
|
|
637
|
+
class: w(Oe.value),
|
|
638
|
+
style: T(B.value ? ke.value : $.value),
|
|
638
639
|
role: "menu",
|
|
639
|
-
onKeydown:
|
|
640
|
-
}, [
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
640
|
+
onKeydown: Ee
|
|
641
|
+
}, [v(o, {
|
|
642
|
+
class: "m-menu__scroll",
|
|
643
|
+
"fit-content": "",
|
|
644
|
+
"wrap-class": "m-menu__scroll-wrap",
|
|
645
|
+
"view-class": "m-menu__scroll-view"
|
|
646
|
+
}, {
|
|
647
|
+
default: I(() => [v(X, {
|
|
648
|
+
items: t.model,
|
|
649
|
+
depth: 0,
|
|
650
|
+
prefix: "item"
|
|
651
|
+
}, null, 8, ["items"])]),
|
|
652
|
+
_: 1
|
|
653
|
+
})], 38)) : h("", !0)]),
|
|
645
654
|
_: 1
|
|
646
|
-
})], 8, ["to", "disabled"]))], 16)) : (
|
|
655
|
+
})], 8, ["to", "disabled"]))], 16)) : (D(), m(f, {
|
|
647
656
|
key: 2,
|
|
648
657
|
to: z.value.to,
|
|
649
658
|
disabled: z.value.disabled
|
|
650
|
-
}, [
|
|
651
|
-
default: I(() => [t.modelValue ? (
|
|
659
|
+
}, [v(ne, { name: "m-scale-fade" }, {
|
|
660
|
+
default: I(() => [t.modelValue ? (D(), g("div", S({
|
|
652
661
|
key: 0,
|
|
653
662
|
ref_key: "root",
|
|
654
|
-
ref:
|
|
663
|
+
ref: x
|
|
655
664
|
}, P(l), {
|
|
656
|
-
class:
|
|
665
|
+
class: Oe.value,
|
|
657
666
|
style: B.value ? {
|
|
658
667
|
...$.value,
|
|
659
668
|
...M.value
|
|
660
669
|
} : $.value,
|
|
661
670
|
role: "menu",
|
|
662
|
-
onKeydown:
|
|
663
|
-
}), [
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
671
|
+
onKeydown: Ee
|
|
672
|
+
}), [v(o, {
|
|
673
|
+
class: "m-menu__scroll",
|
|
674
|
+
"fit-content": "",
|
|
675
|
+
"wrap-class": "m-menu__scroll-wrap",
|
|
676
|
+
"view-class": "m-menu__scroll-view"
|
|
677
|
+
}, {
|
|
678
|
+
default: I(() => [v(X, {
|
|
679
|
+
items: t.model,
|
|
680
|
+
depth: 0,
|
|
681
|
+
prefix: "item"
|
|
682
|
+
}, null, 8, ["items"])]),
|
|
683
|
+
_: 1
|
|
684
|
+
})], 16)) : h("", !0)]),
|
|
668
685
|
_: 1
|
|
669
|
-
})], 8, ["to", "disabled"])) : (
|
|
686
|
+
})], 8, ["to", "disabled"])) : (D(), g("div", S({
|
|
670
687
|
key: 0,
|
|
671
688
|
ref_key: "root",
|
|
672
|
-
ref:
|
|
689
|
+
ref: x
|
|
673
690
|
}, P(l), {
|
|
674
|
-
class:
|
|
691
|
+
class: Oe.value,
|
|
675
692
|
style: $.value,
|
|
676
693
|
role: "menu",
|
|
677
|
-
onKeydown:
|
|
678
|
-
}), [
|
|
694
|
+
onKeydown: Ee
|
|
695
|
+
}), [v(X, {
|
|
679
696
|
items: t.model,
|
|
680
697
|
depth: 0,
|
|
681
698
|
prefix: "item"
|
|
@@ -683,4 +700,4 @@ var H = {
|
|
|
683
700
|
}
|
|
684
701
|
});
|
|
685
702
|
//#endregion
|
|
686
|
-
export {
|
|
703
|
+
export { _e as MMenu };
|