@mlightcad/ribbon 0.1.8 → 0.1.10
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/README.md +27 -2
- package/dist/components/Ribbon.vue.d.ts +3 -11
- package/dist/items/RibbonDropdown.vue.d.ts +4 -1
- package/dist/ml-ribbon.css +1 -1
- package/dist/ml-ribbon.es.js +848 -761
- package/dist/ml-ribbon.umd.js +1 -1
- package/dist/modules/RibbonFileMenu.vue.d.ts +2 -5
- package/dist/modules/RibbonFileMenuItem.vue.d.ts +13 -0
- package/dist/types.d.ts +1 -0
- package/package.json +1 -1
package/dist/ml-ribbon.es.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { Fragment as e, computed as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createSlots as o, createTextVNode as s, createVNode as c, defineComponent as l, inject as u, markRaw as d, mergeProps as f, nextTick as p, normalizeClass as m, normalizeStyle as h, onMounted as g, onUnmounted as _, openBlock as v, provide as y, ref as b, renderList as x, renderSlot as S,
|
|
2
|
-
import { ElButton as
|
|
3
|
-
import { ArrowDown as
|
|
1
|
+
import { Fragment as e, computed as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createSlots as o, createTextVNode as s, createVNode as c, defineComponent as l, inject as u, markRaw as d, mergeProps as f, nextTick as p, normalizeClass as m, normalizeStyle as h, onMounted as g, onUnmounted as _, openBlock as v, provide as y, ref as b, renderList as x, renderSlot as S, resolveComponent as C, resolveDynamicComponent as w, toDisplayString as T, toRaw as E, unref as D, watch as O, withCtx as k, withKeys as A, withModifiers as ee } from "vue";
|
|
2
|
+
import { ElButton as te, ElButtonGroup as j, ElCheckbox as M, ElColorPicker as N, ElConfigProvider as ne, ElDrawer as P, ElDropdown as F, ElDropdownItem as I, ElDropdownMenu as re, ElIcon as L, ElInputNumber as R, ElOption as z, ElPopover as ie, ElSegmented as B, ElSelect as V, ElSwitch as ae, ElTooltip as H, useGlobalConfig as oe } from "element-plus";
|
|
3
|
+
import { ArrowDown as se, ArrowDownBold as ce, ArrowRight as le, ArrowUp as ue, ArrowUpBold as de, Bottom as fe, Check as U, Grid as W, Menu as pe, Promotion as me } from "@element-plus/icons-vue";
|
|
4
4
|
//#region src/ribbon/context.ts
|
|
5
|
-
var
|
|
5
|
+
var he = Symbol("RibbonContext");
|
|
6
6
|
//#endregion
|
|
7
7
|
//#region src/ribbon/composables/useRibbonState.ts
|
|
8
8
|
function G(e) {
|
|
9
|
-
return e == null || typeof e == "string" ? e : typeof e == "object" || typeof e == "function" ? d(
|
|
9
|
+
return e == null || typeof e == "string" ? e : typeof e == "object" || typeof e == "function" ? d(E(e)) : e;
|
|
10
10
|
}
|
|
11
11
|
function K(e) {
|
|
12
12
|
if (!e) return;
|
|
@@ -36,40 +36,40 @@ function K(e) {
|
|
|
36
36
|
};
|
|
37
37
|
})), t;
|
|
38
38
|
}
|
|
39
|
-
function
|
|
39
|
+
function q(e) {
|
|
40
40
|
return {
|
|
41
41
|
...e,
|
|
42
42
|
icon: G(e.icon),
|
|
43
43
|
props: K(e.props)
|
|
44
44
|
};
|
|
45
45
|
}
|
|
46
|
-
function
|
|
46
|
+
function ge(e) {
|
|
47
47
|
return {
|
|
48
48
|
...e,
|
|
49
49
|
icon: G(e.icon),
|
|
50
|
-
footerMenuItems: e.footerMenuItems?.map(
|
|
50
|
+
footerMenuItems: e.footerMenuItems?.map(q),
|
|
51
51
|
collections: e.collections?.map((e) => ({
|
|
52
52
|
...e,
|
|
53
|
-
items: e.items.map(
|
|
53
|
+
items: e.items.map(q)
|
|
54
54
|
}))
|
|
55
55
|
};
|
|
56
56
|
}
|
|
57
|
-
function
|
|
57
|
+
function _e(e) {
|
|
58
58
|
return {
|
|
59
59
|
...e,
|
|
60
|
-
groups: e.groups?.map(
|
|
60
|
+
groups: e.groups?.map(ge)
|
|
61
61
|
};
|
|
62
62
|
}
|
|
63
|
-
function
|
|
64
|
-
return e.map(
|
|
63
|
+
function ve(e) {
|
|
64
|
+
return e.map(_e);
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function ye(e) {
|
|
67
67
|
(!e.collections || e.collections.length === 0) && (e.collections = [{
|
|
68
68
|
id: `${e.id}-collection-1`,
|
|
69
69
|
items: []
|
|
70
70
|
}]);
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function be(e, t, n, r, i) {
|
|
73
73
|
let a = e.find((e) => e.id === t);
|
|
74
74
|
if (!a?.groups) return;
|
|
75
75
|
let o = a.groups.find((e) => e.id === n);
|
|
@@ -77,10 +77,10 @@ function ge(e, t, n, r, i) {
|
|
|
77
77
|
let s = o.collections.find((e) => e.id === r);
|
|
78
78
|
s && i(s.items);
|
|
79
79
|
}
|
|
80
|
-
function
|
|
81
|
-
let l = b(r), u = b(i), d = b(a), f = b(o), p = b(
|
|
80
|
+
function xe(e, n, r, i, a, o, s, c) {
|
|
81
|
+
let l = b(r), u = b(i), d = b(a), f = b(o), p = b(ve(n)), m = b(!1), h = b(!1), g = b(!1), _ = b([]), v = b(""), y = b(s), x = b(c), S = t(() => p.value.filter((e) => e.visible !== !1)), C = {
|
|
82
82
|
addTab(e) {
|
|
83
|
-
p.value.push(
|
|
83
|
+
p.value.push(_e(e)), f.value ||= e.id;
|
|
84
84
|
},
|
|
85
85
|
removeTab(e) {
|
|
86
86
|
p.value = p.value.filter((t) => t.id !== e), f.value === e && (f.value = S.value[0]?.id ?? "");
|
|
@@ -98,7 +98,7 @@ function _e(e, n, r, i, a, o, s, c) {
|
|
|
98
98
|
},
|
|
99
99
|
addGroup(e, t) {
|
|
100
100
|
let n = p.value.find((t) => t.id === e);
|
|
101
|
-
n && (n.groups ??= [],
|
|
101
|
+
n && (n.groups ??= [], ye(t), n.groups.push(ge(t)));
|
|
102
102
|
},
|
|
103
103
|
removeGroup(e, t) {
|
|
104
104
|
let n = p.value.find((t) => t.id === e);
|
|
@@ -113,16 +113,16 @@ function _e(e, n, r, i, a, o, s, c) {
|
|
|
113
113
|
n && (n.visible = !1);
|
|
114
114
|
},
|
|
115
115
|
addItem(e, t, n, r) {
|
|
116
|
-
|
|
116
|
+
be(p.value, e, t, n, (e) => e.push(q(r)));
|
|
117
117
|
},
|
|
118
118
|
removeItem(e, t, n, r) {
|
|
119
|
-
|
|
119
|
+
be(p.value, e, t, n, (e) => {
|
|
120
120
|
let t = e.findIndex((e) => e.id === r);
|
|
121
121
|
t >= 0 && e.splice(t, 1);
|
|
122
122
|
});
|
|
123
123
|
},
|
|
124
124
|
updateItem(e, t, n, r, i) {
|
|
125
|
-
|
|
125
|
+
be(p.value, e, t, n, (e) => {
|
|
126
126
|
let t = e.find((e) => e.id === r);
|
|
127
127
|
t && Object.assign(t, i);
|
|
128
128
|
});
|
|
@@ -171,7 +171,7 @@ function _e(e, n, r, i, a, o, s, c) {
|
|
|
171
171
|
}
|
|
172
172
|
//#endregion
|
|
173
173
|
//#region src/ribbon/modules/RibbonBackstage.vue?vue&type=script&setup=true&lang.ts
|
|
174
|
-
var
|
|
174
|
+
var J = { class: "ml-ribbon-backstage__nav" }, Y = { class: "ml-ribbon-backstage__content" }, X = { key: 0 }, Z = { key: 1 }, Q = /* @__PURE__ */ l({
|
|
175
175
|
__name: "RibbonBackstage",
|
|
176
176
|
props: {
|
|
177
177
|
open: { type: Boolean },
|
|
@@ -186,38 +186,38 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
|
|
|
186
186
|
function d() {
|
|
187
187
|
u("close");
|
|
188
188
|
}
|
|
189
|
-
return (t, o) => (v(), n(
|
|
189
|
+
return (t, o) => (v(), n(D(P), {
|
|
190
190
|
"model-value": l.open,
|
|
191
191
|
size: "100%",
|
|
192
192
|
"with-header": !1,
|
|
193
193
|
direction: "ltr",
|
|
194
194
|
onClose: d
|
|
195
195
|
}, {
|
|
196
|
-
default:
|
|
196
|
+
default: k(() => [a("div", { class: m(["ml-ribbon-backstage", `ml-ribbon-backstage--size-${l.size || "default"}`]) }, [t.$slots.default ? S(t.$slots, "default", {
|
|
197
197
|
key: 0,
|
|
198
198
|
close: d,
|
|
199
199
|
backLabel: l.backLabel,
|
|
200
200
|
title: l.title,
|
|
201
201
|
description: l.description,
|
|
202
202
|
size: l.size
|
|
203
|
-
}) : (v(), i(e, { key: 1 }, [a("aside",
|
|
203
|
+
}) : (v(), i(e, { key: 1 }, [a("aside", J, [c(D(te), {
|
|
204
204
|
type: "primary",
|
|
205
205
|
onClick: d
|
|
206
206
|
}, {
|
|
207
|
-
default:
|
|
207
|
+
default: k(() => [s(T(l.backLabel), 1)]),
|
|
208
208
|
_: 1
|
|
209
|
-
})]), a("section",
|
|
209
|
+
})]), a("section", Y, [l.title ? (v(), i("h2", X, T(l.title), 1)) : r("", !0), l.description ? (v(), i("p", Z, T(l.description), 1)) : r("", !0)])], 64))], 2)]),
|
|
210
210
|
_: 3
|
|
211
211
|
}, 8, ["model-value"]));
|
|
212
212
|
}
|
|
213
|
-
}),
|
|
213
|
+
}), Se = {
|
|
214
214
|
class: "ml-ribbon-tabs",
|
|
215
215
|
role: "tablist"
|
|
216
|
-
},
|
|
216
|
+
}, Ce = [
|
|
217
217
|
"aria-selected",
|
|
218
218
|
"disabled",
|
|
219
219
|
"onClick"
|
|
220
|
-
],
|
|
220
|
+
], we = /* @__PURE__ */ l({
|
|
221
221
|
__name: "RibbonTabs",
|
|
222
222
|
props: {
|
|
223
223
|
tabs: {},
|
|
@@ -233,7 +233,7 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
|
|
|
233
233
|
triggerEl: t.currentTarget instanceof HTMLElement ? t.currentTarget : null
|
|
234
234
|
});
|
|
235
235
|
}
|
|
236
|
-
return (t, r) => (v(), i("div",
|
|
236
|
+
return (t, r) => (v(), i("div", Se, [(v(!0), i(e, null, x(s.value, (e) => (v(), i("button", {
|
|
237
237
|
key: e.id,
|
|
238
238
|
type: "button",
|
|
239
239
|
class: m(["ml-ribbon-tab", { "is-active": n.activeTab === e.id }]),
|
|
@@ -241,9 +241,9 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
|
|
|
241
241
|
"aria-selected": n.activeTab === e.id,
|
|
242
242
|
disabled: a.disabled,
|
|
243
243
|
onClick: (t) => c(e.id, t)
|
|
244
|
-
},
|
|
244
|
+
}, T(e.title), 11, Ce))), 128))]));
|
|
245
245
|
}
|
|
246
|
-
}),
|
|
246
|
+
}), Te = { class: "ml-ribbon-contextual-tabs" }, Ee = { class: "ml-ribbon-contextual-tabs__normal" }, De = { class: "ml-ribbon-contextual-tabs__ctx" }, Oe = { key: 0 }, ke = /* @__PURE__ */ l({
|
|
247
247
|
__name: "RibbonContextualTabs",
|
|
248
248
|
props: {
|
|
249
249
|
tabs: {},
|
|
@@ -253,7 +253,7 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
|
|
|
253
253
|
emits: ["select"],
|
|
254
254
|
setup(t, { emit: n }) {
|
|
255
255
|
let o = t, s = n;
|
|
256
|
-
return (n, l) => (v(), i("div",
|
|
256
|
+
return (n, l) => (v(), i("div", Te, [a("div", Ee, [c(we, {
|
|
257
257
|
tabs: o.tabs.filter((e) => !e.contextual),
|
|
258
258
|
"active-tab": t.activeTab,
|
|
259
259
|
disabled: o.disabled,
|
|
@@ -262,11 +262,11 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
|
|
|
262
262
|
"tabs",
|
|
263
263
|
"active-tab",
|
|
264
264
|
"disabled"
|
|
265
|
-
])]), a("div",
|
|
265
|
+
])]), a("div", De, [(v(!0), i(e, null, x(o.tabs.filter((e) => e.contextual), (e) => (v(), i("section", {
|
|
266
266
|
key: e.id,
|
|
267
267
|
class: "ml-ribbon-contextual-tabs__block",
|
|
268
268
|
style: h({ "--ctx-color": e.contextualColor || "#67c23a" })
|
|
269
|
-
}, [e.contextualTitle?.trim() ? (v(), i("small",
|
|
269
|
+
}, [e.contextualTitle?.trim() ? (v(), i("small", Oe, T(e.contextualTitle.trim()), 1)) : r("", !0), c(we, {
|
|
270
270
|
tabs: [e],
|
|
271
271
|
"active-tab": t.activeTab,
|
|
272
272
|
disabled: o.disabled,
|
|
@@ -277,7 +277,68 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
|
|
|
277
277
|
"disabled"
|
|
278
278
|
])], 4))), 128))])]));
|
|
279
279
|
}
|
|
280
|
-
}),
|
|
280
|
+
}), Ae = { class: "ml-ribbon-file-menu-submenu__trigger" }, je = /* @__PURE__ */ l({
|
|
281
|
+
__name: "RibbonFileMenuItem",
|
|
282
|
+
props: {
|
|
283
|
+
item: {},
|
|
284
|
+
divided: { type: Boolean },
|
|
285
|
+
popperClass: {}
|
|
286
|
+
},
|
|
287
|
+
emits: ["select"],
|
|
288
|
+
setup(t, { emit: r }) {
|
|
289
|
+
let o = t, l = r, u = (e) => Array.isArray(e.children) && e.children.length > 0;
|
|
290
|
+
function d(e) {
|
|
291
|
+
l("select", e);
|
|
292
|
+
}
|
|
293
|
+
return (t, r) => {
|
|
294
|
+
let l = C("RibbonFileMenuItem", !0);
|
|
295
|
+
return u(o.item) ? (v(), n(D(I), {
|
|
296
|
+
key: 0,
|
|
297
|
+
divided: o.divided,
|
|
298
|
+
disabled: o.item.disabled,
|
|
299
|
+
class: "ml-ribbon-file-menu-submenu"
|
|
300
|
+
}, {
|
|
301
|
+
default: k(() => [c(D(F), {
|
|
302
|
+
trigger: "hover",
|
|
303
|
+
placement: "right-start",
|
|
304
|
+
teleported: !0,
|
|
305
|
+
"show-timeout": 0,
|
|
306
|
+
"hide-timeout": 100,
|
|
307
|
+
"popper-class": o.popperClass,
|
|
308
|
+
onCommand: d
|
|
309
|
+
}, {
|
|
310
|
+
dropdown: k(() => [c(D(re), null, {
|
|
311
|
+
default: k(() => [(v(!0), i(e, null, x(o.item.children, (e) => (v(), n(l, {
|
|
312
|
+
key: e.id,
|
|
313
|
+
item: e,
|
|
314
|
+
"popper-class": o.popperClass,
|
|
315
|
+
onSelect: d
|
|
316
|
+
}, null, 8, ["item", "popper-class"]))), 128))]),
|
|
317
|
+
_: 1
|
|
318
|
+
})]),
|
|
319
|
+
default: k(() => [a("span", Ae, [s(T(o.item.label) + " ", 1), c(D(L), { class: "ml-ribbon-file-menu-submenu__arrow" }, {
|
|
320
|
+
default: k(() => [c(D(le))]),
|
|
321
|
+
_: 1
|
|
322
|
+
})])]),
|
|
323
|
+
_: 1
|
|
324
|
+
}, 8, ["popper-class"])]),
|
|
325
|
+
_: 1
|
|
326
|
+
}, 8, ["divided", "disabled"])) : (v(), n(D(I), {
|
|
327
|
+
key: 1,
|
|
328
|
+
divided: o.divided,
|
|
329
|
+
command: o.item.id,
|
|
330
|
+
disabled: o.item.disabled
|
|
331
|
+
}, {
|
|
332
|
+
default: k(() => [s(T(o.item.label), 1)]),
|
|
333
|
+
_: 1
|
|
334
|
+
}, 8, [
|
|
335
|
+
"divided",
|
|
336
|
+
"command",
|
|
337
|
+
"disabled"
|
|
338
|
+
]));
|
|
339
|
+
};
|
|
340
|
+
}
|
|
341
|
+
}), Me = ["disabled"], Ne = /* @__PURE__ */ l({
|
|
281
342
|
__name: "RibbonFileMenu",
|
|
282
343
|
props: {
|
|
283
344
|
items: {},
|
|
@@ -288,7 +349,7 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
|
|
|
288
349
|
},
|
|
289
350
|
emits: ["select", "open-backstage"],
|
|
290
351
|
setup(o, { emit: l }) {
|
|
291
|
-
let u = o, d = l, f = b(!1), p =
|
|
352
|
+
let u = o, d = l, f = b(!1), p = oe("size", ""), h = t(() => p.value || "default"), g = t(() => `ml-ribbon-file-menu-dropdown ml-ribbon-popper ml-ribbon-popper--size-${h.value}`);
|
|
292
353
|
function _(e) {
|
|
293
354
|
f.value = e;
|
|
294
355
|
}
|
|
@@ -299,46 +360,44 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
|
|
|
299
360
|
}
|
|
300
361
|
d("select", e);
|
|
301
362
|
}
|
|
302
|
-
return
|
|
363
|
+
return O(() => u.disabled, (e) => {
|
|
303
364
|
e && (f.value = !1);
|
|
304
|
-
}), (t, o) => (v(), n(
|
|
365
|
+
}), (t, o) => (v(), n(D(F), {
|
|
305
366
|
trigger: "click",
|
|
306
367
|
disabled: u.disabled,
|
|
307
368
|
"popper-class": g.value,
|
|
308
369
|
onCommand: y,
|
|
309
370
|
onVisibleChange: _
|
|
310
371
|
}, {
|
|
311
|
-
dropdown:
|
|
312
|
-
default:
|
|
372
|
+
dropdown: k(() => [c(D(re), null, {
|
|
373
|
+
default: k(() => [u.showOpenBackstage === !1 ? r("", !0) : (v(), n(D(I), {
|
|
313
374
|
key: 0,
|
|
314
375
|
command: "__backstage"
|
|
315
376
|
}, {
|
|
316
|
-
default:
|
|
377
|
+
default: k(() => [s(T(u.openBackstageLabel), 1)]),
|
|
317
378
|
_: 1
|
|
318
|
-
})), (v(!0), i(e, null, x(u.items, (e, t) => (v(), n(
|
|
379
|
+
})), (v(!0), i(e, null, x(u.items, (e, t) => (v(), n(je, {
|
|
319
380
|
key: e.id,
|
|
381
|
+
item: e,
|
|
320
382
|
divided: u.showOpenBackstage !== !1 && t === 0,
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
},
|
|
324
|
-
|
|
325
|
-
_: 2
|
|
326
|
-
}, 1032, [
|
|
383
|
+
"popper-class": g.value,
|
|
384
|
+
onSelect: y
|
|
385
|
+
}, null, 8, [
|
|
386
|
+
"item",
|
|
327
387
|
"divided",
|
|
328
|
-
"
|
|
329
|
-
"disabled"
|
|
388
|
+
"popper-class"
|
|
330
389
|
]))), 128))]),
|
|
331
390
|
_: 1
|
|
332
391
|
})]),
|
|
333
|
-
default:
|
|
392
|
+
default: k(() => [a("button", {
|
|
334
393
|
type: "button",
|
|
335
394
|
class: m(["ml-ribbon-tab ml-ribbon-tab--file", { "is-active": f.value }]),
|
|
336
395
|
disabled: u.disabled
|
|
337
|
-
},
|
|
396
|
+
}, T(u.label), 11, Me)]),
|
|
338
397
|
_: 1
|
|
339
398
|
}, 8, ["disabled", "popper-class"]));
|
|
340
399
|
}
|
|
341
|
-
}),
|
|
400
|
+
}), Pe = /* @__PURE__ */ l({
|
|
342
401
|
__name: "RibbonCollection",
|
|
343
402
|
props: {
|
|
344
403
|
id: {},
|
|
@@ -352,10 +411,10 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
|
|
|
352
411
|
style: h(r.value)
|
|
353
412
|
}, [S(e.$slots, "default")], 6));
|
|
354
413
|
}
|
|
355
|
-
}),
|
|
414
|
+
}), Fe = {
|
|
356
415
|
key: 3,
|
|
357
416
|
class: "ml-ribbon-item-host__label ml-ribbon-button__label"
|
|
358
|
-
},
|
|
417
|
+
}, Ie = /* @__PURE__ */ l({
|
|
359
418
|
name: "MlRibbonButton",
|
|
360
419
|
__name: "RibbonButton",
|
|
361
420
|
props: {
|
|
@@ -388,7 +447,7 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
|
|
|
388
447
|
function y(e) {
|
|
389
448
|
o.disabled || c("click", e);
|
|
390
449
|
}
|
|
391
|
-
return (t, a) => (v(), n(
|
|
450
|
+
return (t, a) => (v(), n(D(te), {
|
|
392
451
|
class: "ml-ribbon-button",
|
|
393
452
|
"data-ribbon-button-id": e.id,
|
|
394
453
|
type: e.buttonType,
|
|
@@ -398,18 +457,18 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
|
|
|
398
457
|
"aria-label": d.value,
|
|
399
458
|
onClick: y
|
|
400
459
|
}, {
|
|
401
|
-
default:
|
|
460
|
+
default: k(() => [
|
|
402
461
|
t.$slots.icon ? (v(), i("span", {
|
|
403
462
|
key: 0,
|
|
404
463
|
class: m(["ml-ribbon-item-host__icon ml-ribbon-button__icon", g.value]),
|
|
405
464
|
style: h(_.value),
|
|
406
465
|
"aria-hidden": "true"
|
|
407
|
-
}, [S(t.$slots, "icon")], 6)) : f.value ? (v(), n(
|
|
466
|
+
}, [S(t.$slots, "icon")], 6)) : f.value ? (v(), n(D(L), {
|
|
408
467
|
key: 1,
|
|
409
468
|
class: m(["ml-ribbon-item-host__icon ml-ribbon-button__icon", g.value]),
|
|
410
469
|
style: h(_.value)
|
|
411
470
|
}, {
|
|
412
|
-
default:
|
|
471
|
+
default: k(() => [(v(), n(w(f.value)))]),
|
|
413
472
|
_: 1
|
|
414
473
|
}, 8, ["class", "style"])) : p.value ? (v(), i("i", {
|
|
415
474
|
key: 2,
|
|
@@ -417,7 +476,7 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
|
|
|
417
476
|
style: h(_.value),
|
|
418
477
|
"aria-hidden": "true"
|
|
419
478
|
}, null, 6)) : r("", !0),
|
|
420
|
-
u.value ? (v(), i("span",
|
|
479
|
+
u.value ? (v(), i("span", Fe, [S(t.$slots, "label", {}, () => [s(T(l.value), 1)])])) : r("", !0),
|
|
421
480
|
S(t.$slots, "default")
|
|
422
481
|
]),
|
|
423
482
|
_: 3
|
|
@@ -430,10 +489,10 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
|
|
|
430
489
|
"aria-label"
|
|
431
490
|
]));
|
|
432
491
|
}
|
|
433
|
-
}),
|
|
492
|
+
}), Le = ["data-id"], Re = {
|
|
434
493
|
key: 0,
|
|
435
494
|
class: "ml-ribbon-button-group__label"
|
|
436
|
-
},
|
|
495
|
+
}, ze = { class: "ml-ribbon-button-group__text" }, Be = /* @__PURE__ */ l({
|
|
437
496
|
__name: "RibbonButtonGroup",
|
|
438
497
|
props: {
|
|
439
498
|
id: {},
|
|
@@ -490,8 +549,8 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
|
|
|
490
549
|
"ml-ribbon-button-group--equal-width": !t.wrap && t.equalWidth
|
|
491
550
|
}]),
|
|
492
551
|
"data-id": t.id
|
|
493
|
-
}, [!t.hideLabel && t.label ? (v(), i("div",
|
|
494
|
-
default:
|
|
552
|
+
}, [!t.hideLabel && t.label ? (v(), i("div", Re, T(t.label), 1)) : r("", !0), c(D(j), null, {
|
|
553
|
+
default: k(() => [(v(!0), i(e, null, x(t.options, (e) => (v(), n(D(H), {
|
|
495
554
|
key: String(e.value),
|
|
496
555
|
content: g(e),
|
|
497
556
|
disabled: !g(e),
|
|
@@ -500,7 +559,7 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
|
|
|
500
559
|
placement: "top",
|
|
501
560
|
effect: "dark"
|
|
502
561
|
}, {
|
|
503
|
-
default:
|
|
562
|
+
default: k(() => [c(Ie, {
|
|
504
563
|
id: String(e.value),
|
|
505
564
|
class: "ml-ribbon-button-group__button",
|
|
506
565
|
label: e.label,
|
|
@@ -513,7 +572,7 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
|
|
|
513
572
|
onClick: (t) => d(e.value)
|
|
514
573
|
}, o({ _: 2 }, [f(e.label) ? {
|
|
515
574
|
name: "label",
|
|
516
|
-
fn:
|
|
575
|
+
fn: k(() => [a("span", ze, T(e.label), 1)]),
|
|
517
576
|
key: "0"
|
|
518
577
|
} : void 0]), 1032, [
|
|
519
578
|
"id",
|
|
@@ -534,12 +593,20 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
|
|
|
534
593
|
"hide-after"
|
|
535
594
|
]))), 128))]),
|
|
536
595
|
_: 1
|
|
537
|
-
})], 10,
|
|
596
|
+
})], 10, Le));
|
|
538
597
|
}
|
|
539
|
-
}),
|
|
598
|
+
}), Ve = { class: "ml-ribbon-item-host__content ml-ribbon-dropdown__content" }, He = { class: "ml-ribbon-item-host__text-row ml-ribbon-dropdown__text-row" }, Ue = {
|
|
540
599
|
key: 0,
|
|
541
600
|
class: "ml-ribbon-item-host__label ml-ribbon-dropdown__label"
|
|
542
|
-
},
|
|
601
|
+
}, We = { class: "ml-ribbon-dropdown-item__content" }, Ge = { class: "ml-ribbon-dropdown-item__row" }, Ke = {
|
|
602
|
+
key: 0,
|
|
603
|
+
class: "ml-ribbon-dropdown-item__check",
|
|
604
|
+
"aria-hidden": "true"
|
|
605
|
+
}, qe = { class: "ml-ribbon-dropdown-item__main" }, Je = { class: "ml-ribbon-dropdown-item__label" }, Ye = /* @__PURE__ */ ((e, t) => {
|
|
606
|
+
let n = e.__vccOpts || e;
|
|
607
|
+
for (let [e, r] of t) n[e] = r;
|
|
608
|
+
return n;
|
|
609
|
+
})(/* @__PURE__ */ l({
|
|
543
610
|
name: "MlRibbonDropdown",
|
|
544
611
|
__name: "RibbonDropdown",
|
|
545
612
|
props: {
|
|
@@ -563,7 +630,8 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
|
|
|
563
630
|
itemSize: { default: "medium" },
|
|
564
631
|
tooltipShowAfter: { default: 1e3 },
|
|
565
632
|
tooltipHideAfter: { default: 0 },
|
|
566
|
-
popperClass: { default: void 0 }
|
|
633
|
+
popperClass: { default: void 0 },
|
|
634
|
+
modelValue: { default: void 0 }
|
|
567
635
|
},
|
|
568
636
|
emits: [
|
|
569
637
|
"command",
|
|
@@ -571,13 +639,17 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
|
|
|
571
639
|
"tooltip-change"
|
|
572
640
|
],
|
|
573
641
|
setup(o, { emit: l }) {
|
|
574
|
-
let u = o, d = l, f =
|
|
642
|
+
let u = o, d = l, f = oe("size", ""), p = t(() => f.value || "default"), h = b(!1), g = b(void 0);
|
|
643
|
+
O(() => u.modelValue, (e) => {
|
|
644
|
+
e !== void 0 && (g.value = e);
|
|
645
|
+
}, { immediate: !0 });
|
|
646
|
+
let _ = t(() => Array.isArray(u.options) ? u.options : []), y = t(() => _.value.find((e) => ce(e) === g.value) ?? null), C = t(() => {
|
|
575
647
|
if (y.value && u.syncLabelWithSelection) {
|
|
576
|
-
let e =
|
|
648
|
+
let e = de(y.value);
|
|
577
649
|
if (e) return e;
|
|
578
650
|
}
|
|
579
|
-
return
|
|
580
|
-
}),
|
|
651
|
+
return pe(u.label) ?? u.id;
|
|
652
|
+
}), E = t(() => !u.hideLabel && C.value.length > 0), A = t(() => u.modelValue !== void 0 || u.syncLabelWithSelection), j = t(() => {
|
|
581
653
|
if (y.value) {
|
|
582
654
|
let e = V(y.value);
|
|
583
655
|
if (e) return e;
|
|
@@ -585,30 +657,30 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
|
|
|
585
657
|
return !u.icon || typeof u.icon == "string" ? null : u.icon;
|
|
586
658
|
}), M = t(() => {
|
|
587
659
|
if (y.value) {
|
|
588
|
-
let e =
|
|
660
|
+
let e = ae(y.value);
|
|
589
661
|
if (e) return e;
|
|
590
662
|
}
|
|
591
663
|
if (typeof u.icon != "string") return null;
|
|
592
664
|
let e = u.icon.trim();
|
|
593
665
|
return e.length > 0 ? e : null;
|
|
594
|
-
}),
|
|
666
|
+
}), N = t(() => !!(j.value || M.value)), ne = t(() => W(y.value) ?? pe(u.tooltip) ?? pe(C.value) ?? pe(u.label) ?? me(u.id)), P = t(() => [
|
|
595
667
|
"ml-ribbon-dropdown-menu",
|
|
596
668
|
"ml-ribbon-popper",
|
|
597
669
|
`ml-ribbon-popper--size-${p.value}`,
|
|
598
670
|
u.popperClass
|
|
599
671
|
].filter(Boolean).join(" "));
|
|
600
|
-
function
|
|
672
|
+
function R(e) {
|
|
601
673
|
if (u.disabled) {
|
|
602
674
|
h.value = !1;
|
|
603
675
|
return;
|
|
604
676
|
}
|
|
605
677
|
h.value = e;
|
|
606
678
|
}
|
|
607
|
-
function
|
|
679
|
+
function z() {
|
|
608
680
|
u.disabled || (h.value = !h.value);
|
|
609
681
|
}
|
|
610
|
-
function
|
|
611
|
-
u.disabled || (g.value = e, d("tooltip-change",
|
|
682
|
+
function ie(e) {
|
|
683
|
+
u.disabled || (g.value = e, d("tooltip-change", W(y.value) ?? ne.value), d("command", e), h.value = !1);
|
|
612
684
|
}
|
|
613
685
|
function B() {
|
|
614
686
|
if (u.disabled) return;
|
|
@@ -617,80 +689,91 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
|
|
|
617
689
|
d("click");
|
|
618
690
|
return;
|
|
619
691
|
}
|
|
620
|
-
d("command",
|
|
692
|
+
d("command", ce(e));
|
|
621
693
|
}
|
|
622
694
|
function V(e) {
|
|
623
695
|
if (!e || typeof e != "object") return null;
|
|
624
696
|
let t = e.icon;
|
|
625
697
|
return !t || typeof t == "string" ? null : t;
|
|
626
698
|
}
|
|
627
|
-
function
|
|
699
|
+
function ae(e) {
|
|
628
700
|
if (!e || typeof e != "object") return null;
|
|
629
701
|
let t = e.icon;
|
|
630
702
|
return typeof t != "string" || t.trim().length === 0 ? null : t;
|
|
631
703
|
}
|
|
632
|
-
function
|
|
704
|
+
function ce(e) {
|
|
633
705
|
if (!(!e || typeof e != "object")) return e.value;
|
|
634
706
|
}
|
|
635
|
-
function
|
|
636
|
-
let t =
|
|
707
|
+
function le(e) {
|
|
708
|
+
let t = ce(e);
|
|
637
709
|
if (typeof t == "string" || typeof t == "number" || t && typeof t == "object") return t;
|
|
638
710
|
}
|
|
639
|
-
function
|
|
711
|
+
function de(e) {
|
|
640
712
|
if (!e || typeof e != "object") return;
|
|
641
713
|
let t = e.label;
|
|
642
714
|
return typeof t == "string" ? t : void 0;
|
|
643
715
|
}
|
|
644
|
-
function
|
|
645
|
-
if (typeof e == "string") return
|
|
716
|
+
function fe(e) {
|
|
717
|
+
if (typeof e == "string") return me(e);
|
|
646
718
|
if (typeof e == "number" || typeof e == "boolean") return String(e);
|
|
647
719
|
}
|
|
648
|
-
function
|
|
649
|
-
if (!(!e || typeof e != "object")) return
|
|
720
|
+
function W(e) {
|
|
721
|
+
if (!(!e || typeof e != "object")) return pe(e.tooltip) ?? de(e) ?? fe(ce(e));
|
|
650
722
|
}
|
|
651
|
-
function
|
|
723
|
+
function pe(e) {
|
|
652
724
|
if (typeof e != "string") return;
|
|
653
725
|
let t = e.trim();
|
|
654
726
|
return t.length > 0 ? t : void 0;
|
|
655
727
|
}
|
|
656
|
-
function
|
|
728
|
+
function me(e) {
|
|
657
729
|
let t = e.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]+/g, " ").trim();
|
|
658
730
|
return t ? t.replace(/\b\w/g, (e) => e.toUpperCase()) : e;
|
|
659
731
|
}
|
|
660
|
-
|
|
732
|
+
function he(e) {
|
|
733
|
+
return ce(e) === g.value;
|
|
734
|
+
}
|
|
735
|
+
return (t, l) => (v(), n(D(F), {
|
|
661
736
|
class: m(["ml-ribbon-dropdown", [`ml-ribbon-dropdown--item-${o.itemSize}`, { "is-label-hidden": o.hideLabel }]]),
|
|
662
737
|
trigger: "click",
|
|
663
738
|
disabled: o.disabled,
|
|
664
|
-
"popper-class":
|
|
665
|
-
onVisibleChange:
|
|
666
|
-
onCommand:
|
|
739
|
+
"popper-class": P.value,
|
|
740
|
+
onVisibleChange: R,
|
|
741
|
+
onCommand: ie
|
|
667
742
|
}, {
|
|
668
|
-
dropdown:
|
|
669
|
-
default:
|
|
670
|
-
key: String(
|
|
671
|
-
command:
|
|
743
|
+
dropdown: k(() => [c(D(re), null, {
|
|
744
|
+
default: k(() => [(v(!0), i(e, null, x(_.value, (e) => (v(), n(D(I), {
|
|
745
|
+
key: String(ce(e)),
|
|
746
|
+
command: le(e),
|
|
672
747
|
disabled: e.disabled === !0,
|
|
673
|
-
divided: e.divided === !0
|
|
748
|
+
divided: e.divided === !0,
|
|
749
|
+
"aria-current": he(e) ? "true" : void 0,
|
|
750
|
+
class: m({ "ml-ribbon-dropdown-item--selected": he(e) })
|
|
674
751
|
}, {
|
|
675
|
-
default:
|
|
676
|
-
content:
|
|
677
|
-
disabled: !
|
|
752
|
+
default: k(() => [c(D(H), {
|
|
753
|
+
content: W(e),
|
|
754
|
+
disabled: !W(e),
|
|
678
755
|
"show-after": o.tooltipShowAfter,
|
|
679
756
|
"hide-after": o.tooltipHideAfter,
|
|
680
757
|
placement: "top",
|
|
681
758
|
effect: "dark"
|
|
682
759
|
}, {
|
|
683
|
-
default:
|
|
760
|
+
default: k(() => [a("span", We, [S(t.$slots, "option", { option: e }, () => [a("span", Ge, [A.value ? (v(), i("span", Ke, [he(e) ? (v(), n(D(L), {
|
|
761
|
+
key: 0,
|
|
762
|
+
class: "ml-ribbon-dropdown-item__check-icon"
|
|
763
|
+
}, {
|
|
764
|
+
default: k(() => [c(D(U))]),
|
|
765
|
+
_: 1
|
|
766
|
+
})) : r("", !0)])) : r("", !0), a("span", qe, [V(e) ? (v(), n(D(L), {
|
|
684
767
|
key: 0,
|
|
685
768
|
class: "ml-ribbon-dropdown-item__icon"
|
|
686
769
|
}, {
|
|
687
|
-
default:
|
|
770
|
+
default: k(() => [(v(), n(w(V(e))))]),
|
|
688
771
|
_: 2
|
|
689
|
-
}, 1024)) :
|
|
772
|
+
}, 1024)) : ae(e) ? (v(), i("i", {
|
|
690
773
|
key: 1,
|
|
691
|
-
class: m(["ml-ribbon-dropdown-item__icon ml-ribbon-dropdown-item__icon--class",
|
|
774
|
+
class: m(["ml-ribbon-dropdown-item__icon ml-ribbon-dropdown-item__icon--class", ae(e)]),
|
|
692
775
|
"aria-hidden": "true"
|
|
693
|
-
}, null, 2)) : r("", !0), a("span",
|
|
776
|
+
}, null, 2)) : r("", !0), a("span", Je, T(de(e)), 1)])])], !0)])]),
|
|
694
777
|
_: 2
|
|
695
778
|
}, 1032, [
|
|
696
779
|
"content",
|
|
@@ -702,32 +785,34 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
|
|
|
702
785
|
}, 1032, [
|
|
703
786
|
"command",
|
|
704
787
|
"disabled",
|
|
705
|
-
"divided"
|
|
788
|
+
"divided",
|
|
789
|
+
"aria-current",
|
|
790
|
+
"class"
|
|
706
791
|
]))), 128))]),
|
|
707
792
|
_: 3
|
|
708
793
|
})]),
|
|
709
|
-
default:
|
|
794
|
+
default: k(() => [c(D(te), {
|
|
710
795
|
type: "default",
|
|
711
796
|
disabled: o.disabled,
|
|
712
|
-
"aria-label":
|
|
713
|
-
onClick:
|
|
797
|
+
"aria-label": ne.value,
|
|
798
|
+
onClick: z
|
|
714
799
|
}, {
|
|
715
|
-
default:
|
|
800
|
+
default: k(() => [a("span", Ve, [t.$slots.icon || N.value ? (v(), i("span", {
|
|
716
801
|
key: 0,
|
|
717
|
-
class: m(["ml-ribbon-item-host__icon ml-ribbon-item-host__icon--dropdown-primary ml-ribbon-dropdown__icon", { "ml-ribbon-item-host__icon--class": M.value && !
|
|
718
|
-
onClick:
|
|
719
|
-
}, [S(t.$slots, "icon", { selectedOption: y.value }, () => [
|
|
720
|
-
default:
|
|
802
|
+
class: m(["ml-ribbon-item-host__icon ml-ribbon-item-host__icon--dropdown-primary ml-ribbon-dropdown__icon", { "ml-ribbon-item-host__icon--class": M.value && !j.value && !t.$slots.icon }]),
|
|
803
|
+
onClick: ee(B, ["stop"])
|
|
804
|
+
}, [S(t.$slots, "icon", { selectedOption: y.value }, () => [j.value ? (v(), n(D(L), { key: 0 }, {
|
|
805
|
+
default: k(() => [(v(), n(w(j.value)))]),
|
|
721
806
|
_: 1
|
|
722
807
|
})) : M.value ? (v(), i("i", {
|
|
723
808
|
key: 1,
|
|
724
809
|
class: m(M.value),
|
|
725
810
|
"aria-hidden": "true"
|
|
726
|
-
}, null, 2)) : r("", !0)])], 2)) : r("", !0), a("span",
|
|
811
|
+
}, null, 2)) : r("", !0)], !0)], 2)) : r("", !0), a("span", He, [E.value ? (v(), i("span", Ue, [S(t.$slots, "label", {
|
|
727
812
|
selectedOption: y.value,
|
|
728
|
-
label:
|
|
729
|
-
}, () => [s(
|
|
730
|
-
default:
|
|
813
|
+
label: C.value
|
|
814
|
+
}, () => [s(T(C.value), 1)], !0)])) : r("", !0), c(D(L), { class: m(["ml-ribbon-item-host__dropdown-arrow ml-ribbon-dropdown__arrow", { "is-open": h.value }]) }, {
|
|
815
|
+
default: k(() => [(v(), n(w(h.value ? D(ue) : D(se))))]),
|
|
731
816
|
_: 1
|
|
732
817
|
}, 8, ["class"])])])]),
|
|
733
818
|
_: 3
|
|
@@ -739,50 +824,50 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
|
|
|
739
824
|
"popper-class"
|
|
740
825
|
]));
|
|
741
826
|
}
|
|
742
|
-
}),
|
|
827
|
+
}), [["__scopeId", "data-v-3704c6ba"]]), Xe = ["disabled"], Ze = ["src"], $ = {
|
|
743
828
|
key: 3,
|
|
744
829
|
class: "ml-ribbon-gallery__preview-svg",
|
|
745
830
|
role: "presentation",
|
|
746
831
|
"aria-hidden": "true"
|
|
747
|
-
},
|
|
832
|
+
}, Qe = ["href"], $e = { class: "ml-ribbon-gallery__label ml-ribbon-gallery__collapsed-label" }, et = { class: "ml-ribbon-gallery__panel" }, tt = {
|
|
748
833
|
key: 0,
|
|
749
834
|
class: "ml-ribbon-gallery__panel-category-title"
|
|
750
|
-
},
|
|
835
|
+
}, nt = ["disabled", "onClick"], rt = ["src"], it = {
|
|
751
836
|
key: 3,
|
|
752
837
|
class: "ml-ribbon-gallery__preview-svg",
|
|
753
838
|
role: "presentation",
|
|
754
839
|
"aria-hidden": "true"
|
|
755
|
-
},
|
|
840
|
+
}, at = ["href"], ot = { class: "ml-ribbon-gallery__label" }, st = {
|
|
756
841
|
key: 1,
|
|
757
842
|
class: "ml-ribbon-gallery__title"
|
|
758
|
-
},
|
|
843
|
+
}, ct = {
|
|
759
844
|
key: 2,
|
|
760
845
|
class: "ml-ribbon-gallery__categories"
|
|
761
|
-
},
|
|
846
|
+
}, lt = {
|
|
762
847
|
key: 0,
|
|
763
848
|
class: "ml-ribbon-gallery__category-title"
|
|
764
|
-
},
|
|
849
|
+
}, ut = ["disabled", "onClick"], dt = ["src"], ft = {
|
|
765
850
|
key: 3,
|
|
766
851
|
class: "ml-ribbon-gallery__preview-svg",
|
|
767
852
|
role: "presentation",
|
|
768
853
|
"aria-hidden": "true"
|
|
769
|
-
},
|
|
854
|
+
}, pt = ["href"], mt = { class: "ml-ribbon-gallery__label" }, ht = {
|
|
770
855
|
key: 0,
|
|
771
856
|
class: "ml-ribbon-gallery__controls",
|
|
772
857
|
"aria-label": "Gallery navigation"
|
|
773
|
-
},
|
|
858
|
+
}, gt = ["disabled"], _t = ["disabled"], vt = ["disabled"], yt = {
|
|
774
859
|
key: 0,
|
|
775
860
|
class: "ml-ribbon-gallery__panel-category-title"
|
|
776
|
-
},
|
|
861
|
+
}, bt = [
|
|
777
862
|
"data-gallery-row-index",
|
|
778
863
|
"disabled",
|
|
779
864
|
"onClick"
|
|
780
|
-
],
|
|
865
|
+
], xt = ["src"], St = {
|
|
781
866
|
key: 3,
|
|
782
867
|
class: "ml-ribbon-gallery__preview-svg",
|
|
783
868
|
role: "presentation",
|
|
784
869
|
"aria-hidden": "true"
|
|
785
|
-
},
|
|
870
|
+
}, Ct = ["href"], wt = { class: "ml-ribbon-gallery__label" }, Tt = 6, Et = 64, Dt = 4, Ot = 16, kt = 4, At = 22, jt = /* @__PURE__ */ l({
|
|
786
871
|
name: "MlRibbonGallery",
|
|
787
872
|
__name: "RibbonGallery",
|
|
788
873
|
props: {
|
|
@@ -804,78 +889,78 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
|
|
|
804
889
|
},
|
|
805
890
|
emits: ["select"],
|
|
806
891
|
setup(o, { emit: l }) {
|
|
807
|
-
let u = o, g = l, _ = b(""), y = b(!1),
|
|
808
|
-
let e =
|
|
892
|
+
let u = o, g = l, _ = b(""), y = b(!1), C = b(0), A = b(null), ee = b(null), te = b(null), j = b(0), M = oe("size", ""), N = t(() => M.value || "default"), ne = t(() => N.value === "small" ? .92 : N.value === "large" ? 1.08 : 1), P = t(() => Math.round(Et * ne.value)), F = t(() => Math.round(At * ne.value)), I = t(() => u.label?.trim() ?? ""), re = t(() => u.categories.filter((e) => e.items.length > 0).length), R = t(() => u.categories.flatMap((e) => e.items)), z = t(() => R.value.find((e) => e.id === _.value) ?? R.value[0]), B = t(() => !Number.isFinite(u.inlineItemLimit) || u.inlineItemLimit <= 0 ? 4 : Math.floor(u.inlineItemLimit)), V = t(() => {
|
|
893
|
+
let e = B.value, t = R.value.length;
|
|
809
894
|
return t === 0 ? Math.min(e, 1) : Math.min(e, t);
|
|
810
|
-
}),
|
|
811
|
-
let e =
|
|
812
|
-
return
|
|
813
|
-
}),
|
|
895
|
+
}), ae = t(() => Math.max(1, Math.ceil(R.value.length / V.value))), H = t(() => Math.min(C.value, ae.value - 1)), ce = t(() => W.value && H.value > 0), le = t(() => W.value && H.value < ae.value - 1), de = t(() => {
|
|
896
|
+
let e = H.value * V.value;
|
|
897
|
+
return R.value.slice(e, e + V.value);
|
|
898
|
+
}), U = t(() => new Set(de.value.map((e) => e.id))), W = t(() => R.value.length > V.value), pe = t(() => {
|
|
814
899
|
let e = [
|
|
815
900
|
"ml-ribbon-gallery-panel",
|
|
816
901
|
`ml-ribbon-gallery-panel--${u.collapsed ? "collapsed" : "inline"}`,
|
|
817
|
-
`ml-ribbon-gallery-panel--size-${
|
|
902
|
+
`ml-ribbon-gallery-panel--size-${N.value}`
|
|
818
903
|
];
|
|
819
904
|
return u.inlineItemWidthMode === "auto" && e.push("ml-ribbon-gallery-panel--item-width-auto"), e.join(" ");
|
|
820
|
-
}),
|
|
821
|
-
"--ml-ribbon-gallery-panel-columns": String(
|
|
822
|
-
"--ml-ribbon-gallery-panel-item-width": `${
|
|
823
|
-
})),
|
|
905
|
+
}), me = t(() => ({
|
|
906
|
+
"--ml-ribbon-gallery-panel-columns": String(V.value),
|
|
907
|
+
"--ml-ribbon-gallery-panel-item-width": `${P.value}px`
|
|
908
|
+
})), he = t(() => u.inlineItemWidthMode === "auto" ? "fit-content" : V.value * P.value + Math.max(0, V.value - 1) * Dt + Tt * 2 + (u.collapsed ? Ot : kt + F.value)), G = t(() => ({ modifiers: [{
|
|
824
909
|
name: "offset",
|
|
825
|
-
options: { offset: [
|
|
910
|
+
options: { offset: [j.value, 0] }
|
|
826
911
|
}] }));
|
|
827
|
-
|
|
828
|
-
typeof e == "string" && (_.value = e,
|
|
829
|
-
}, { immediate: !0 }),
|
|
830
|
-
|
|
831
|
-
|
|
912
|
+
O(() => u.modelValue, (e) => {
|
|
913
|
+
typeof e == "string" && (_.value = e, ye(e));
|
|
914
|
+
}, { immediate: !0 }), O(() => [
|
|
915
|
+
R.value.map((e) => e.id).join("\0"),
|
|
916
|
+
V.value,
|
|
832
917
|
_.value
|
|
833
918
|
], () => {
|
|
834
|
-
|
|
835
|
-
}),
|
|
836
|
-
!e || u.collapsed || (
|
|
919
|
+
ye() || (C.value = Math.min(C.value, ae.value - 1));
|
|
920
|
+
}), O(y, async (e) => {
|
|
921
|
+
!e || u.collapsed || (be(), await p(), await p(), xe());
|
|
837
922
|
});
|
|
838
|
-
function
|
|
839
|
-
return e == null || typeof e == "string" ? e : typeof e == "object" || typeof e == "function" ? d(
|
|
840
|
-
}
|
|
841
|
-
function J(e) {
|
|
842
|
-
let t = L.value.toLowerCase(), n = e.title.trim().toLowerCase();
|
|
843
|
-
return ne.value > 1 || !t || n !== t;
|
|
923
|
+
function K(e) {
|
|
924
|
+
return e == null || typeof e == "string" ? e : typeof e == "object" || typeof e == "function" ? d(E(e)) : e;
|
|
844
925
|
}
|
|
845
|
-
function
|
|
846
|
-
|
|
926
|
+
function q(e) {
|
|
927
|
+
let t = I.value.toLowerCase(), n = e.title.trim().toLowerCase();
|
|
928
|
+
return re.value > 1 || !t || n !== t;
|
|
847
929
|
}
|
|
848
930
|
function ge(e) {
|
|
849
|
-
|
|
850
|
-
let t = ae.value + e;
|
|
851
|
-
k.value = Math.min(Math.max(t, 0), re.value - 1);
|
|
931
|
+
return W.value ? e.items.filter((e) => U.value.has(e.id)) : e.items;
|
|
852
932
|
}
|
|
853
933
|
function _e(e) {
|
|
854
|
-
|
|
855
|
-
|
|
934
|
+
if (u.disabled || !W.value) return;
|
|
935
|
+
let t = H.value + e;
|
|
936
|
+
C.value = Math.min(Math.max(t, 0), ae.value - 1);
|
|
937
|
+
}
|
|
938
|
+
function ve(e) {
|
|
939
|
+
let t = R.value.findIndex((t) => t.id === e.id);
|
|
940
|
+
return t < 0 ? 0 : Math.floor(t / V.value);
|
|
856
941
|
}
|
|
857
|
-
function
|
|
858
|
-
let t =
|
|
859
|
-
return t ? (
|
|
942
|
+
function ye(e = _.value) {
|
|
943
|
+
let t = R.value.find((t) => t.id === e);
|
|
944
|
+
return t ? (C.value = ve(t), !0) : !1;
|
|
860
945
|
}
|
|
861
|
-
function
|
|
862
|
-
let e = A.value, t =
|
|
946
|
+
function be() {
|
|
947
|
+
let e = A.value, t = ee.value;
|
|
863
948
|
if (!e || !t) {
|
|
864
|
-
|
|
949
|
+
j.value = 0;
|
|
865
950
|
return;
|
|
866
951
|
}
|
|
867
952
|
let n = e.querySelector(".ml-ribbon-gallery__grid .ml-ribbon-gallery__item")?.getBoundingClientRect().left ?? e.getBoundingClientRect().left;
|
|
868
|
-
|
|
953
|
+
j.value = Math.round(n - t.getBoundingClientRect().left - Tt);
|
|
869
954
|
}
|
|
870
|
-
function
|
|
871
|
-
let e =
|
|
872
|
-
e && e.querySelector(`[data-gallery-row-index="${
|
|
955
|
+
function xe() {
|
|
956
|
+
let e = te.value;
|
|
957
|
+
e && e.querySelector(`[data-gallery-row-index="${H.value}"]`)?.scrollIntoView?.({ block: "start" });
|
|
873
958
|
}
|
|
874
|
-
function
|
|
875
|
-
return e.preview && typeof e.preview != "string" ?
|
|
959
|
+
function J(e) {
|
|
960
|
+
return e.preview && typeof e.preview != "string" ? K(e.preview) : e.icon && typeof e.icon != "string" ? K(e.icon) : null;
|
|
876
961
|
}
|
|
877
|
-
function
|
|
878
|
-
return e.component ?
|
|
962
|
+
function Y(e) {
|
|
963
|
+
return e.component ? K(e.component) : null;
|
|
879
964
|
}
|
|
880
965
|
function X(e) {
|
|
881
966
|
return u.disabled || e.disabled === !0;
|
|
@@ -902,7 +987,7 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
|
|
|
902
987
|
return typeof e.preview == "string" ? e.preview : u.previewFallback;
|
|
903
988
|
}
|
|
904
989
|
function Te(e) {
|
|
905
|
-
X(e) || (_.value = e.id,
|
|
990
|
+
X(e) || (_.value = e.id, C.value = ve(e), y.value = !1, g("select", e.id));
|
|
906
991
|
}
|
|
907
992
|
return (t, l) => (v(), i("div", {
|
|
908
993
|
ref_key: "galleryRef",
|
|
@@ -910,60 +995,60 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
|
|
|
910
995
|
class: m(["ml-ribbon-gallery", {
|
|
911
996
|
"is-disabled": o.disabled,
|
|
912
997
|
"is-collapsed": o.collapsed,
|
|
913
|
-
"is-unlabeled": !o.collapsed && !
|
|
998
|
+
"is-unlabeled": !o.collapsed && !I.value,
|
|
914
999
|
"is-inline-item-width-auto": !o.collapsed && o.inlineItemWidthMode === "auto"
|
|
915
1000
|
}])
|
|
916
1001
|
}, [
|
|
917
|
-
o.collapsed &&
|
|
1002
|
+
o.collapsed && z.value ? (v(), n(D(ie), {
|
|
918
1003
|
key: 0,
|
|
919
1004
|
visible: y.value,
|
|
920
1005
|
"onUpdate:visible": l[0] ||= (e) => y.value = e,
|
|
921
1006
|
trigger: "click",
|
|
922
1007
|
placement: "bottom-start",
|
|
923
1008
|
disabled: o.disabled,
|
|
924
|
-
width:
|
|
925
|
-
"popper-class":
|
|
1009
|
+
width: he.value,
|
|
1010
|
+
"popper-class": pe.value
|
|
926
1011
|
}, {
|
|
927
|
-
reference:
|
|
1012
|
+
reference: k(() => [a("button", {
|
|
928
1013
|
type: "button",
|
|
929
1014
|
class: m(["ml-ribbon-gallery__collapsed-button", {
|
|
930
|
-
"is-selected": _.value ===
|
|
1015
|
+
"is-selected": _.value === z.value.id,
|
|
931
1016
|
"is-open": y.value
|
|
932
1017
|
}]),
|
|
933
|
-
disabled: X(
|
|
934
|
-
}, [
|
|
935
|
-
item:
|
|
936
|
-
selected: _.value ===
|
|
937
|
-
disabled: X(
|
|
1018
|
+
disabled: X(z.value)
|
|
1019
|
+
}, [Y(z.value) ? (v(), n(w(Y(z.value)), f({ key: 0 }, z.value.componentProps, {
|
|
1020
|
+
item: z.value,
|
|
1021
|
+
selected: _.value === z.value.id,
|
|
1022
|
+
disabled: X(z.value)
|
|
938
1023
|
}), null, 16, [
|
|
939
1024
|
"item",
|
|
940
1025
|
"selected",
|
|
941
1026
|
"disabled"
|
|
942
1027
|
])) : (v(), i(e, { key: 1 }, [a("div", { class: m(["ml-ribbon-gallery__preview ml-ribbon-gallery__collapsed-preview", {
|
|
943
|
-
"ml-ribbon-gallery__preview--icon":
|
|
944
|
-
"ml-ribbon-gallery__preview--svg": Q(
|
|
945
|
-
}]) }, [
|
|
1028
|
+
"ml-ribbon-gallery__preview--icon": J(z.value) || Z(z.value),
|
|
1029
|
+
"ml-ribbon-gallery__preview--svg": Q(z.value)
|
|
1030
|
+
}]) }, [J(z.value) ? (v(), n(D(L), {
|
|
946
1031
|
key: 0,
|
|
947
1032
|
class: "ml-ribbon-gallery__preview-icon"
|
|
948
1033
|
}, {
|
|
949
|
-
default:
|
|
1034
|
+
default: k(() => [(v(), n(w(J(z.value))))]),
|
|
950
1035
|
_: 1
|
|
951
|
-
})) : Z(
|
|
1036
|
+
})) : Z(z.value) ? (v(), i("i", {
|
|
952
1037
|
key: 1,
|
|
953
|
-
class: m(["ml-ribbon-gallery__preview-icon ml-ribbon-gallery__preview-icon--class", Z(
|
|
1038
|
+
class: m(["ml-ribbon-gallery__preview-icon ml-ribbon-gallery__preview-icon--class", Z(z.value)]),
|
|
954
1039
|
"aria-hidden": "true"
|
|
955
|
-
}, null, 2)) : Q(
|
|
1040
|
+
}, null, 2)) : Q(z.value) && Ce(z.value) ? (v(), i("img", {
|
|
956
1041
|
key: 2,
|
|
957
1042
|
class: "ml-ribbon-gallery__preview-svg",
|
|
958
|
-
src: Q(
|
|
1043
|
+
src: Q(z.value) ?? "",
|
|
959
1044
|
alt: ""
|
|
960
|
-
}, null, 8,
|
|
961
|
-
default:
|
|
1045
|
+
}, null, 8, Ze)) : Q(z.value) ? (v(), i("svg", $, [a("use", { href: Q(z.value) ?? "" }, null, 8, Qe)])) : (v(), i(e, { key: 4 }, [s(T(we(z.value)), 1)], 64))], 2), a("div", $e, T(z.value.label), 1)], 64))], 10, Xe)]),
|
|
1046
|
+
default: k(() => [a("div", et, [(v(!0), i(e, null, x(o.categories, (o) => (v(), i("section", {
|
|
962
1047
|
key: o.id,
|
|
963
1048
|
class: "ml-ribbon-gallery__panel-category"
|
|
964
|
-
}, [
|
|
1049
|
+
}, [q(o) ? (v(), i("h4", tt, T(o.title), 1)) : r("", !0), a("div", {
|
|
965
1050
|
class: "ml-ribbon-gallery__panel-grid",
|
|
966
|
-
style: h(
|
|
1051
|
+
style: h(me.value)
|
|
967
1052
|
}, [(v(!0), i(e, null, x(o.items, (r) => (v(), i("button", {
|
|
968
1053
|
key: r.id,
|
|
969
1054
|
type: "button",
|
|
@@ -976,7 +1061,7 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
|
|
|
976
1061
|
selected: _.value === r.id,
|
|
977
1062
|
disabled: X(r),
|
|
978
1063
|
select: () => Te(r)
|
|
979
|
-
}, () => [
|
|
1064
|
+
}, () => [Y(r) ? (v(), n(w(Y(r)), f({
|
|
980
1065
|
key: 0,
|
|
981
1066
|
ref_for: !0
|
|
982
1067
|
}, r.componentProps, {
|
|
@@ -990,13 +1075,13 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
|
|
|
990
1075
|
"selected",
|
|
991
1076
|
"disabled"
|
|
992
1077
|
])) : (v(), i(e, { key: 1 }, [a("div", { class: m(["ml-ribbon-gallery__preview", {
|
|
993
|
-
"ml-ribbon-gallery__preview--icon":
|
|
1078
|
+
"ml-ribbon-gallery__preview--icon": J(r) || Z(r),
|
|
994
1079
|
"ml-ribbon-gallery__preview--svg": Q(r)
|
|
995
|
-
}]) }, [
|
|
1080
|
+
}]) }, [J(r) ? (v(), n(D(L), {
|
|
996
1081
|
key: 0,
|
|
997
1082
|
class: "ml-ribbon-gallery__preview-icon"
|
|
998
1083
|
}, {
|
|
999
|
-
default:
|
|
1084
|
+
default: k(() => [(v(), n(w(J(r))))]),
|
|
1000
1085
|
_: 2
|
|
1001
1086
|
}, 1024)) : Z(r) ? (v(), i("i", {
|
|
1002
1087
|
key: 1,
|
|
@@ -1007,7 +1092,7 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
|
|
|
1007
1092
|
class: "ml-ribbon-gallery__preview-svg",
|
|
1008
1093
|
src: Q(r) ?? "",
|
|
1009
1094
|
alt: ""
|
|
1010
|
-
}, null, 8,
|
|
1095
|
+
}, null, 8, rt)) : Q(r) ? (v(), i("svg", it, [a("use", { href: Q(r) ?? "" }, null, 8, at)])) : (v(), i(e, { key: 4 }, [s(T(we(r)), 1)], 64))], 2), a("div", ot, T(r.label), 1)], 64))])], 10, nt))), 128))], 4)]))), 128))])]),
|
|
1011
1096
|
_: 3
|
|
1012
1097
|
}, 8, [
|
|
1013
1098
|
"visible",
|
|
@@ -1015,14 +1100,14 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
|
|
|
1015
1100
|
"width",
|
|
1016
1101
|
"popper-class"
|
|
1017
1102
|
])) : r("", !0),
|
|
1018
|
-
!o.collapsed &&
|
|
1019
|
-
o.collapsed ? r("", !0) : (v(), i("div",
|
|
1103
|
+
!o.collapsed && I.value ? (v(), i("div", st, T(I.value), 1)) : r("", !0),
|
|
1104
|
+
o.collapsed ? r("", !0) : (v(), i("div", ct, [(v(!0), i(e, null, x(o.categories, (o) => (v(), i("section", {
|
|
1020
1105
|
key: o.id,
|
|
1021
1106
|
class: "ml-ribbon-gallery__category"
|
|
1022
|
-
}, [
|
|
1107
|
+
}, [I.value && q(o) ? (v(), i("h4", lt, T(o.title), 1)) : r("", !0), a("div", {
|
|
1023
1108
|
class: "ml-ribbon-gallery__grid",
|
|
1024
|
-
style: h({ "--ml-ribbon-gallery-inline-columns": String(
|
|
1025
|
-
}, [(v(!0), i(e, null, x(
|
|
1109
|
+
style: h({ "--ml-ribbon-gallery-inline-columns": String(V.value) })
|
|
1110
|
+
}, [(v(!0), i(e, null, x(ge(o), (r) => (v(), i("button", {
|
|
1026
1111
|
key: r.id,
|
|
1027
1112
|
type: "button",
|
|
1028
1113
|
class: m(["ml-ribbon-gallery__item", { "is-selected": _.value === r.id }]),
|
|
@@ -1034,7 +1119,7 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
|
|
|
1034
1119
|
selected: _.value === r.id,
|
|
1035
1120
|
disabled: X(r),
|
|
1036
1121
|
select: () => Te(r)
|
|
1037
|
-
}, () => [
|
|
1122
|
+
}, () => [Y(r) ? (v(), n(w(Y(r)), f({
|
|
1038
1123
|
key: 0,
|
|
1039
1124
|
ref_for: !0
|
|
1040
1125
|
}, r.componentProps, {
|
|
@@ -1048,13 +1133,13 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
|
|
|
1048
1133
|
"selected",
|
|
1049
1134
|
"disabled"
|
|
1050
1135
|
])) : (v(), i(e, { key: 1 }, [a("div", { class: m(["ml-ribbon-gallery__preview", {
|
|
1051
|
-
"ml-ribbon-gallery__preview--icon":
|
|
1136
|
+
"ml-ribbon-gallery__preview--icon": J(r) || Z(r),
|
|
1052
1137
|
"ml-ribbon-gallery__preview--svg": Q(r)
|
|
1053
|
-
}]) }, [
|
|
1138
|
+
}]) }, [J(r) ? (v(), n(D(L), {
|
|
1054
1139
|
key: 0,
|
|
1055
1140
|
class: "ml-ribbon-gallery__preview-icon"
|
|
1056
1141
|
}, {
|
|
1057
|
-
default:
|
|
1142
|
+
default: k(() => [(v(), n(w(J(r))))]),
|
|
1058
1143
|
_: 2
|
|
1059
1144
|
}, 1024)) : Z(r) ? (v(), i("i", {
|
|
1060
1145
|
key: 1,
|
|
@@ -1065,64 +1150,64 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
|
|
|
1065
1150
|
class: "ml-ribbon-gallery__preview-svg",
|
|
1066
1151
|
src: Q(r) ?? "",
|
|
1067
1152
|
alt: ""
|
|
1068
|
-
}, null, 8,
|
|
1153
|
+
}, null, 8, dt)) : Q(r) ? (v(), i("svg", ft, [a("use", { href: Q(r) ?? "" }, null, 8, pt)])) : (v(), i(e, { key: 4 }, [s(T(we(r)), 1)], 64))], 2), a("div", mt, T(r.label), 1)], 64))])], 10, ut))), 128))], 4)]))), 128)), W.value ? (v(), i("div", ht, [
|
|
1069
1154
|
a("button", {
|
|
1070
1155
|
type: "button",
|
|
1071
1156
|
class: "ml-ribbon-gallery__control-button",
|
|
1072
|
-
disabled: o.disabled || !
|
|
1157
|
+
disabled: o.disabled || !ce.value,
|
|
1073
1158
|
"aria-label": "Show previous gallery row",
|
|
1074
|
-
onClick: l[1] ||= (e) =>
|
|
1075
|
-
}, [c(
|
|
1076
|
-
default:
|
|
1159
|
+
onClick: l[1] ||= (e) => _e(-1)
|
|
1160
|
+
}, [c(D(L), null, {
|
|
1161
|
+
default: k(() => [c(D(ue))]),
|
|
1077
1162
|
_: 1
|
|
1078
|
-
})], 8,
|
|
1163
|
+
})], 8, gt),
|
|
1079
1164
|
a("button", {
|
|
1080
1165
|
type: "button",
|
|
1081
1166
|
class: "ml-ribbon-gallery__control-button",
|
|
1082
1167
|
disabled: o.disabled || !le.value,
|
|
1083
1168
|
"aria-label": "Show next gallery row",
|
|
1084
|
-
onClick: l[2] ||= (e) =>
|
|
1085
|
-
}, [c(
|
|
1086
|
-
default:
|
|
1169
|
+
onClick: l[2] ||= (e) => _e(1)
|
|
1170
|
+
}, [c(D(L), null, {
|
|
1171
|
+
default: k(() => [c(D(se))]),
|
|
1087
1172
|
_: 1
|
|
1088
|
-
})], 8,
|
|
1089
|
-
c(
|
|
1173
|
+
})], 8, _t),
|
|
1174
|
+
c(D(ie), {
|
|
1090
1175
|
visible: y.value,
|
|
1091
1176
|
"onUpdate:visible": l[3] ||= (e) => y.value = e,
|
|
1092
1177
|
trigger: "click",
|
|
1093
1178
|
placement: "bottom-start",
|
|
1094
1179
|
disabled: o.disabled,
|
|
1095
|
-
width:
|
|
1096
|
-
"popper-class":
|
|
1097
|
-
"popper-options":
|
|
1180
|
+
width: he.value,
|
|
1181
|
+
"popper-class": pe.value,
|
|
1182
|
+
"popper-options": G.value
|
|
1098
1183
|
}, {
|
|
1099
|
-
reference:
|
|
1184
|
+
reference: k(() => [a("button", {
|
|
1100
1185
|
ref_key: "inlineMoreButtonRef",
|
|
1101
|
-
ref:
|
|
1186
|
+
ref: ee,
|
|
1102
1187
|
type: "button",
|
|
1103
1188
|
class: m(["ml-ribbon-gallery__control-button ml-ribbon-gallery__more-button", { "is-open": y.value }]),
|
|
1104
1189
|
disabled: o.disabled,
|
|
1105
1190
|
"aria-label": "Show more gallery items",
|
|
1106
|
-
onClick:
|
|
1107
|
-
}, [c(
|
|
1108
|
-
default:
|
|
1191
|
+
onClick: be
|
|
1192
|
+
}, [c(D(L), null, {
|
|
1193
|
+
default: k(() => [c(D(fe))]),
|
|
1109
1194
|
_: 1
|
|
1110
|
-
})], 10,
|
|
1111
|
-
default:
|
|
1195
|
+
})], 10, vt)]),
|
|
1196
|
+
default: k(() => [a("div", {
|
|
1112
1197
|
ref_key: "inlinePanelRef",
|
|
1113
|
-
ref:
|
|
1198
|
+
ref: te,
|
|
1114
1199
|
class: "ml-ribbon-gallery__panel"
|
|
1115
1200
|
}, [(v(!0), i(e, null, x(o.categories, (o) => (v(), i("section", {
|
|
1116
1201
|
key: o.id,
|
|
1117
1202
|
class: "ml-ribbon-gallery__panel-category"
|
|
1118
|
-
}, [
|
|
1203
|
+
}, [q(o) ? (v(), i("h4", yt, T(o.title), 1)) : r("", !0), a("div", {
|
|
1119
1204
|
class: "ml-ribbon-gallery__panel-grid",
|
|
1120
|
-
style: h(
|
|
1205
|
+
style: h(me.value)
|
|
1121
1206
|
}, [(v(!0), i(e, null, x(o.items, (r) => (v(), i("button", {
|
|
1122
1207
|
key: r.id,
|
|
1123
1208
|
type: "button",
|
|
1124
1209
|
class: m(["ml-ribbon-gallery__item ml-ribbon-gallery__panel-item", { "is-selected": _.value === r.id }]),
|
|
1125
|
-
"data-gallery-row-index":
|
|
1210
|
+
"data-gallery-row-index": ve(r),
|
|
1126
1211
|
disabled: X(r),
|
|
1127
1212
|
onClick: (e) => Te(r)
|
|
1128
1213
|
}, [S(t.$slots, "item", {
|
|
@@ -1131,7 +1216,7 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
|
|
|
1131
1216
|
selected: _.value === r.id,
|
|
1132
1217
|
disabled: X(r),
|
|
1133
1218
|
select: () => Te(r)
|
|
1134
|
-
}, () => [
|
|
1219
|
+
}, () => [Y(r) ? (v(), n(w(Y(r)), f({
|
|
1135
1220
|
key: 0,
|
|
1136
1221
|
ref_for: !0
|
|
1137
1222
|
}, r.componentProps, {
|
|
@@ -1145,13 +1230,13 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
|
|
|
1145
1230
|
"selected",
|
|
1146
1231
|
"disabled"
|
|
1147
1232
|
])) : (v(), i(e, { key: 1 }, [a("div", { class: m(["ml-ribbon-gallery__preview", {
|
|
1148
|
-
"ml-ribbon-gallery__preview--icon":
|
|
1233
|
+
"ml-ribbon-gallery__preview--icon": J(r) || Z(r),
|
|
1149
1234
|
"ml-ribbon-gallery__preview--svg": Q(r)
|
|
1150
|
-
}]) }, [
|
|
1235
|
+
}]) }, [J(r) ? (v(), n(D(L), {
|
|
1151
1236
|
key: 0,
|
|
1152
1237
|
class: "ml-ribbon-gallery__preview-icon"
|
|
1153
1238
|
}, {
|
|
1154
|
-
default:
|
|
1239
|
+
default: k(() => [(v(), n(w(J(r))))]),
|
|
1155
1240
|
_: 2
|
|
1156
1241
|
}, 1024)) : Z(r) ? (v(), i("i", {
|
|
1157
1242
|
key: 1,
|
|
@@ -1162,7 +1247,7 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
|
|
|
1162
1247
|
class: "ml-ribbon-gallery__preview-svg",
|
|
1163
1248
|
src: Q(r) ?? "",
|
|
1164
1249
|
alt: ""
|
|
1165
|
-
}, null, 8,
|
|
1250
|
+
}, null, 8, xt)) : Q(r) ? (v(), i("svg", St, [a("use", { href: Q(r) ?? "" }, null, 8, Ct)])) : (v(), i(e, { key: 4 }, [s(T(we(r)), 1)], 64))], 2), a("div", wt, T(r.label), 1)], 64))])], 10, bt))), 128))], 4)]))), 128))], 512)]),
|
|
1166
1251
|
_: 3
|
|
1167
1252
|
}, 8, [
|
|
1168
1253
|
"visible",
|
|
@@ -1174,13 +1259,13 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
|
|
|
1174
1259
|
])) : r("", !0)]))
|
|
1175
1260
|
], 2));
|
|
1176
1261
|
}
|
|
1177
|
-
}),
|
|
1262
|
+
}), Mt = ["data-id", "onKeydown"], Nt = {
|
|
1178
1263
|
key: 0,
|
|
1179
1264
|
class: "ml-ribbon-input-number__prefix"
|
|
1180
|
-
},
|
|
1265
|
+
}, Pt = {
|
|
1181
1266
|
key: 2,
|
|
1182
1267
|
class: "ml-ribbon-input-number__prefix-label"
|
|
1183
|
-
},
|
|
1268
|
+
}, Ft = /* @__PURE__ */ l({
|
|
1184
1269
|
name: "MlRibbonInputNumber",
|
|
1185
1270
|
__name: "RibbonInputNumber",
|
|
1186
1271
|
props: {
|
|
@@ -1198,32 +1283,32 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
|
|
|
1198
1283
|
},
|
|
1199
1284
|
emits: ["change"],
|
|
1200
1285
|
setup(e, { emit: a }) {
|
|
1201
|
-
let o = e, s = a, l = t(() =>
|
|
1202
|
-
function
|
|
1203
|
-
|
|
1286
|
+
let o = e, s = a, l = t(() => N(o.width, "96px")), u = t(() => l.value === "100%"), d = t(() => u.value ? { width: "100%" } : {}), p = t(() => u.value ? {} : { width: l.value }), g = t(() => M(o.prefixLabel)), _ = t(() => !o.prefixIcon || typeof o.prefixIcon == "string" ? null : o.prefixIcon), y = t(() => M(o.prefixIconClass ?? (typeof o.prefixIcon == "string" ? o.prefixIcon : void 0)) ?? null), x = t(() => !!(g.value || _.value || y.value)), S = t(() => g.value ?? o.id), C = b(void 0);
|
|
1287
|
+
function E(e) {
|
|
1288
|
+
te(e);
|
|
1204
1289
|
}
|
|
1205
|
-
function
|
|
1290
|
+
function O(e) {
|
|
1206
1291
|
e.preventDefault(), e.stopPropagation();
|
|
1207
1292
|
let t = e.target;
|
|
1208
1293
|
if (!(t instanceof HTMLInputElement)) return;
|
|
1209
|
-
let n =
|
|
1210
|
-
n === void 0 && t.value.trim().length > 0 ||
|
|
1294
|
+
let n = j(t.value);
|
|
1295
|
+
n === void 0 && t.value.trim().length > 0 || te(n);
|
|
1211
1296
|
}
|
|
1212
|
-
function
|
|
1213
|
-
Object.is(
|
|
1297
|
+
function te(e) {
|
|
1298
|
+
Object.is(C.value, e) || (C.value = e, s("change", e));
|
|
1214
1299
|
}
|
|
1215
|
-
function
|
|
1300
|
+
function j(e) {
|
|
1216
1301
|
let t = e.trim();
|
|
1217
1302
|
if (!t) return;
|
|
1218
1303
|
let n = Number(t);
|
|
1219
1304
|
return Number.isFinite(n) ? n : void 0;
|
|
1220
1305
|
}
|
|
1221
|
-
function
|
|
1306
|
+
function M(e) {
|
|
1222
1307
|
if (typeof e != "string") return;
|
|
1223
1308
|
let t = e.trim();
|
|
1224
1309
|
return t.length > 0 ? t : void 0;
|
|
1225
1310
|
}
|
|
1226
|
-
function
|
|
1311
|
+
function N(e, t) {
|
|
1227
1312
|
if (typeof e == "number" && Number.isFinite(e) && e > 0) return `${e}px`;
|
|
1228
1313
|
if (typeof e == "string") {
|
|
1229
1314
|
let n = e.trim();
|
|
@@ -1238,41 +1323,41 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
|
|
|
1238
1323
|
}]),
|
|
1239
1324
|
style: h(d.value),
|
|
1240
1325
|
"data-id": e.id,
|
|
1241
|
-
onKeydown:
|
|
1242
|
-
}, [x.value ? (v(), i("span",
|
|
1326
|
+
onKeydown: A(ee(O, ["stop", "prevent"]), ["enter"])
|
|
1327
|
+
}, [x.value ? (v(), i("span", Nt, [_.value ? (v(), n(D(L), {
|
|
1243
1328
|
key: 0,
|
|
1244
1329
|
class: "ml-ribbon-input-number__prefix-icon",
|
|
1245
1330
|
"aria-hidden": "true"
|
|
1246
1331
|
}, {
|
|
1247
|
-
default:
|
|
1332
|
+
default: k(() => [(v(), n(w(_.value)))]),
|
|
1248
1333
|
_: 1
|
|
1249
1334
|
})) : y.value ? (v(), i("i", {
|
|
1250
1335
|
key: 1,
|
|
1251
1336
|
class: m(["ml-ribbon-input-number__prefix-icon ml-ribbon-input-number__prefix-icon--class", y.value]),
|
|
1252
1337
|
"aria-hidden": "true"
|
|
1253
|
-
}, null, 2)) : r("", !0), g.value ? (v(), i("span",
|
|
1338
|
+
}, null, 2)) : r("", !0), g.value ? (v(), i("span", Pt, T(g.value), 1)) : r("", !0)])) : r("", !0), c(D(R), f(e.controlProps, {
|
|
1254
1339
|
"model-value": e.modelValue,
|
|
1255
1340
|
disabled: e.disabled,
|
|
1256
1341
|
style: p.value,
|
|
1257
1342
|
"aria-label": S.value,
|
|
1258
|
-
onChange:
|
|
1343
|
+
onChange: E
|
|
1259
1344
|
}), null, 16, [
|
|
1260
1345
|
"model-value",
|
|
1261
1346
|
"disabled",
|
|
1262
1347
|
"style",
|
|
1263
1348
|
"aria-label"
|
|
1264
|
-
])], 46,
|
|
1349
|
+
])], 46, Mt));
|
|
1265
1350
|
}
|
|
1266
|
-
}),
|
|
1351
|
+
}), It = ["data-id"], Lt = {
|
|
1267
1352
|
key: 0,
|
|
1268
1353
|
class: "ml-ribbon-segmented__label"
|
|
1269
|
-
},
|
|
1354
|
+
}, Rt = ["data-option-value", "aria-label"], zt = {
|
|
1270
1355
|
key: 2,
|
|
1271
1356
|
class: "ml-ribbon-segmented__option-label"
|
|
1272
|
-
},
|
|
1357
|
+
}, Bt = {
|
|
1273
1358
|
key: 3,
|
|
1274
1359
|
class: "ml-ribbon-segmented__option-sr-label"
|
|
1275
|
-
},
|
|
1360
|
+
}, Vt = /* @__PURE__ */ l({
|
|
1276
1361
|
__name: "RibbonSegmented",
|
|
1277
1362
|
props: {
|
|
1278
1363
|
id: {},
|
|
@@ -1344,16 +1429,16 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
|
|
|
1344
1429
|
function S(e) {
|
|
1345
1430
|
return String(f(e).value);
|
|
1346
1431
|
}
|
|
1347
|
-
function
|
|
1432
|
+
function C(e) {
|
|
1348
1433
|
return _(e) ?? S(e);
|
|
1349
1434
|
}
|
|
1350
|
-
function
|
|
1435
|
+
function E(e) {
|
|
1351
1436
|
l("change", e);
|
|
1352
1437
|
}
|
|
1353
1438
|
return (t, o) => (v(), i("div", {
|
|
1354
1439
|
class: "ml-ribbon-segmented",
|
|
1355
1440
|
"data-id": e.id
|
|
1356
|
-
}, [d.value ? (v(), i("div",
|
|
1441
|
+
}, [d.value ? (v(), i("div", Lt, T(u.value), 1)) : r("", !0), c(D(B), {
|
|
1357
1442
|
class: "ml-ribbon-segmented__control",
|
|
1358
1443
|
options: e.options,
|
|
1359
1444
|
"model-value": e.modelValue,
|
|
@@ -1361,9 +1446,9 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
|
|
|
1361
1446
|
block: e.block,
|
|
1362
1447
|
disabled: e.disabled,
|
|
1363
1448
|
"aria-label": u.value || e.id,
|
|
1364
|
-
onChange:
|
|
1449
|
+
onChange: E
|
|
1365
1450
|
}, {
|
|
1366
|
-
default:
|
|
1451
|
+
default: k(({ item: t }) => [c(D(H), {
|
|
1367
1452
|
content: _(t),
|
|
1368
1453
|
disabled: !_(t),
|
|
1369
1454
|
"show-after": e.tooltipShowAfter,
|
|
@@ -1371,22 +1456,22 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
|
|
|
1371
1456
|
placement: "top",
|
|
1372
1457
|
effect: "dark"
|
|
1373
1458
|
}, {
|
|
1374
|
-
default:
|
|
1459
|
+
default: k(() => [a("span", {
|
|
1375
1460
|
class: "ml-ribbon-segmented__option",
|
|
1376
1461
|
"data-option-value": S(t),
|
|
1377
|
-
"aria-label":
|
|
1378
|
-
}, [y(t) ? (v(), n(
|
|
1462
|
+
"aria-label": C(t)
|
|
1463
|
+
}, [y(t) ? (v(), n(D(L), {
|
|
1379
1464
|
key: 0,
|
|
1380
1465
|
class: "ml-ribbon-segmented__option-icon",
|
|
1381
1466
|
"aria-hidden": "true"
|
|
1382
1467
|
}, {
|
|
1383
|
-
default:
|
|
1468
|
+
default: k(() => [(v(), n(w(y(t))))]),
|
|
1384
1469
|
_: 2
|
|
1385
1470
|
}, 1024)) : b(t) ? (v(), i("i", {
|
|
1386
1471
|
key: 1,
|
|
1387
1472
|
class: m(["ml-ribbon-segmented__option-icon ml-ribbon-item-host__icon--class", b(t)]),
|
|
1388
1473
|
"aria-hidden": "true"
|
|
1389
|
-
}, null, 2)) : r("", !0), x(t) ? (v(), i("span",
|
|
1474
|
+
}, null, 2)) : r("", !0), x(t) ? (v(), i("span", zt, T(g(t)), 1)) : (v(), i("span", Bt, T(g(t)), 1))], 8, Rt)]),
|
|
1390
1475
|
_: 2
|
|
1391
1476
|
}, 1032, [
|
|
1392
1477
|
"content",
|
|
@@ -1402,9 +1487,9 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
|
|
|
1402
1487
|
"block",
|
|
1403
1488
|
"disabled",
|
|
1404
1489
|
"aria-label"
|
|
1405
|
-
])], 8,
|
|
1490
|
+
])], 8, It));
|
|
1406
1491
|
}
|
|
1407
|
-
}),
|
|
1492
|
+
}), Ht = /* @__PURE__ */ l({
|
|
1408
1493
|
__name: "RibbonToggleButton",
|
|
1409
1494
|
props: {
|
|
1410
1495
|
id: {},
|
|
@@ -1429,7 +1514,7 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
|
|
|
1429
1514
|
emits: ["change"],
|
|
1430
1515
|
setup(e, { emit: r }) {
|
|
1431
1516
|
let i = e, a = r, o = b(!!i.modelValue);
|
|
1432
|
-
|
|
1517
|
+
O(() => i.modelValue, (e) => {
|
|
1433
1518
|
o.value = !!e;
|
|
1434
1519
|
}, { immediate: !0 });
|
|
1435
1520
|
let s = t(() => o.value), c = t(() => s.value ? i.activeIcon ?? i.inactiveIcon : i.inactiveIcon ?? i.activeIcon), l = t(() => (s.value ? i.activeLabel?.trim() : i.inactiveLabel?.trim()) || i.label?.trim() || i.id), u = t(() => !i.hideLabel && l.value.length > 0);
|
|
@@ -1438,7 +1523,7 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
|
|
|
1438
1523
|
let e = !o.value;
|
|
1439
1524
|
o.value = e, a("change", e);
|
|
1440
1525
|
}
|
|
1441
|
-
return (t, r) => (v(), n(
|
|
1526
|
+
return (t, r) => (v(), n(Ie, {
|
|
1442
1527
|
id: e.id,
|
|
1443
1528
|
class: m(["ml-ribbon-toggle", { "is-active": s.value }]),
|
|
1444
1529
|
icon: c.value,
|
|
@@ -1459,7 +1544,7 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
|
|
|
1459
1544
|
"aria-pressed"
|
|
1460
1545
|
]));
|
|
1461
1546
|
}
|
|
1462
|
-
}),
|
|
1547
|
+
}), Ut = ["data-template-id", "aria-disabled"], Wt = /* @__PURE__ */ l({
|
|
1463
1548
|
__name: "RibbonTemplateItem",
|
|
1464
1549
|
props: {
|
|
1465
1550
|
id: {},
|
|
@@ -1474,12 +1559,12 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
|
|
|
1474
1559
|
}, [S(t.$slots, "default", {
|
|
1475
1560
|
item: e.item,
|
|
1476
1561
|
disabled: e.disabled
|
|
1477
|
-
}, () => [a("span", null,
|
|
1562
|
+
}, () => [a("span", null, T(e.item.label ?? e.item.id), 1)])], 8, Ut));
|
|
1478
1563
|
}
|
|
1479
|
-
}),
|
|
1564
|
+
}), Gt = ["data-item-id"], Kt = {
|
|
1480
1565
|
key: 0,
|
|
1481
1566
|
class: "ml-ribbon-item-host__keytip"
|
|
1482
|
-
},
|
|
1567
|
+
}, qt = /* @__PURE__ */ l({
|
|
1483
1568
|
__name: "RibbonItemHost",
|
|
1484
1569
|
props: {
|
|
1485
1570
|
id: {},
|
|
@@ -1490,41 +1575,41 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
|
|
|
1490
1575
|
},
|
|
1491
1576
|
emits: ["item-click"],
|
|
1492
1577
|
setup(o, { emit: c }) {
|
|
1493
|
-
let l = o, p = c, g = u(
|
|
1494
|
-
if (!g?.keyTipsOpen.value || g?.disabled.value || l.disabled === !0 || !
|
|
1578
|
+
let l = o, p = c, g = u(he, null), _ = t(() => Array.isArray(l.item.props?.options) ? l.item.props.options : []), y = oe("size", ""), C = t(() => y.value || "default"), A = t(() => je(g?.tooltipShowAfter.value, 1e3)), ee = t(() => je(g?.tooltipHideAfter.value, 0)), te = t(() => `ml-ribbon-select-dropdown ml-ribbon-popper ml-ribbon-popper--size-${C.value}`), j = t(() => l.item.props?.icon || l.item.icon), ne = t(() => l.item.hideLabel !== !0), P = b(void 0), F = t(() => l.item.type === "dropdown" && P.value ? P.value : Ae(l.item.tooltip) ?? Ae(l.item.label) ?? Le(l.item) ?? Re(l.item.id)), I = t(() => l.item.type !== "buttonGroup" && l.item.type !== "segmented"), re = t(() => !I.value || !F.value), L = t(() => F.value ?? l.item.id), R = t(() => l.item.keyTip?.trim().toUpperCase() ?? ""), ie = t(() => {
|
|
1579
|
+
if (!g?.keyTipsOpen.value || g?.disabled.value || l.disabled === !0 || !R.value) return !1;
|
|
1495
1580
|
let e = g.keyTipsSequence.value.toLowerCase();
|
|
1496
|
-
return e ?
|
|
1497
|
-
}),
|
|
1581
|
+
return e ? R.value.toLowerCase().startsWith(e) : !0;
|
|
1582
|
+
}), B = t(() => l.disabled === !0 || l.item.disabled === !0 || g?.disabled.value === !0), ae = t(() => l.item.props?.modelValue), se = t(() => l.item.props?.activeLabel), ce = t(() => l.item.props?.inactiveLabel), le = t(() => Array.isArray(l.item.props?.categories) ? l.item.props.categories : []), ue = t(() => {
|
|
1498
1583
|
let e = l.item.props?.modelValue;
|
|
1499
1584
|
return typeof e == "string" ? e : void 0;
|
|
1500
|
-
}),
|
|
1585
|
+
}), de = t(() => {
|
|
1501
1586
|
let e = l.item.props?.inlineItemLimit;
|
|
1502
1587
|
return typeof e == "number" ? e : void 0;
|
|
1503
|
-
}),
|
|
1588
|
+
}), fe = t(() => l.item.props?.inlineItemWidthMode === "auto" ? "auto" : "fixed"), U = t(() => {
|
|
1504
1589
|
let e = l.item.props?.component;
|
|
1505
|
-
return !e || typeof e == "string" ? null : d(
|
|
1506
|
-
}),
|
|
1590
|
+
return !e || typeof e == "string" ? null : d(E(e));
|
|
1591
|
+
}), W = t(() => {
|
|
1507
1592
|
let e = l.item.props?.componentProps;
|
|
1508
1593
|
return !e || typeof e != "object" || Array.isArray(e) ? {} : e;
|
|
1509
|
-
}),
|
|
1594
|
+
}), pe = t(() => l.item.props?.wrap !== !1), me = t(() => l.item.props?.equalWidth === !0), G = t(() => {
|
|
1510
1595
|
let e = l.item.props?.buttonSize;
|
|
1511
1596
|
if (e === "large" || e === "default" || e === "small") return e;
|
|
1512
|
-
}),
|
|
1597
|
+
}), K = t(() => Pe(l.item.props?.iconSize)), q = t(() => Me(l.item.props?.width ?? l.item.props?.comboWidth, "92px")), ge = t(() => l.item.props?.modelValue), _e = t(() => Me(l.item.props?.width ?? l.item.props?.inputNumberWidth, "96px")), ve = t(() => l.item.props?.modelValue), ye = t(() => {
|
|
1513
1598
|
let e = { ...l.item.props ?? {} };
|
|
1514
1599
|
return delete e.modelValue, delete e.width, delete e.inputNumberWidth, delete e.prefixLabel, delete e.prefixIcon, delete e.prefixIconClass, delete e.emitValueOnChange, delete e.valuePrefix, delete e.options, delete e.component, delete e.componentProps, e;
|
|
1515
|
-
}),
|
|
1516
|
-
if (!
|
|
1517
|
-
let e = { "--ml-rb-item-label-max-lines": String(
|
|
1518
|
-
return
|
|
1600
|
+
}), be = t(() => Fe(l.item.props?.labelWrapLines)), xe = t(() => Ne(l.item.props?.labelWrapWidth)), J = t(() => l.item.type === "button" && l.item.size === "large" && ne.value && (be.value ?? 0) > 1), Y = t(() => {
|
|
1601
|
+
if (!J.value) return {};
|
|
1602
|
+
let e = { "--ml-rb-item-label-max-lines": String(be.value ?? 2) };
|
|
1603
|
+
return xe.value && (e["--ml-rb-item-label-wrap-width"] = xe.value), e;
|
|
1519
1604
|
});
|
|
1520
|
-
|
|
1521
|
-
|
|
1605
|
+
O(() => l.item.id, () => {
|
|
1606
|
+
P.value = void 0;
|
|
1522
1607
|
});
|
|
1523
1608
|
function X() {
|
|
1524
|
-
|
|
1609
|
+
B.value || p("item-click", l.id);
|
|
1525
1610
|
}
|
|
1526
1611
|
function Z(e) {
|
|
1527
|
-
if (!
|
|
1612
|
+
if (!B.value) {
|
|
1528
1613
|
if (typeof e == "string" || typeof e == "number") {
|
|
1529
1614
|
p("item-click", String(e));
|
|
1530
1615
|
return;
|
|
@@ -1533,10 +1618,10 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
|
|
|
1533
1618
|
}
|
|
1534
1619
|
}
|
|
1535
1620
|
function Q(e) {
|
|
1536
|
-
|
|
1621
|
+
P.value = e;
|
|
1537
1622
|
}
|
|
1538
1623
|
function Se(e) {
|
|
1539
|
-
if (!
|
|
1624
|
+
if (!B.value) {
|
|
1540
1625
|
if (typeof e == "string" || typeof e == "number" || typeof e == "boolean") {
|
|
1541
1626
|
p("item-click", String(e));
|
|
1542
1627
|
return;
|
|
@@ -1545,7 +1630,7 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
|
|
|
1545
1630
|
}
|
|
1546
1631
|
}
|
|
1547
1632
|
function Ce(e) {
|
|
1548
|
-
if (
|
|
1633
|
+
if (B.value) return;
|
|
1549
1634
|
let t = e ? l.item.props?.activeValue : l.item.props?.inactiveValue;
|
|
1550
1635
|
if (typeof t == "string" || typeof t == "number" || typeof t == "boolean") {
|
|
1551
1636
|
p("item-click", String(t));
|
|
@@ -1554,7 +1639,7 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
|
|
|
1554
1639
|
p("item-click", String(e));
|
|
1555
1640
|
}
|
|
1556
1641
|
function we(e) {
|
|
1557
|
-
if (!
|
|
1642
|
+
if (!B.value) {
|
|
1558
1643
|
if (typeof e == "string" || typeof e == "number" || typeof e == "boolean") {
|
|
1559
1644
|
p("item-click", String(e));
|
|
1560
1645
|
return;
|
|
@@ -1563,10 +1648,10 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
|
|
|
1563
1648
|
}
|
|
1564
1649
|
}
|
|
1565
1650
|
function Te(e) {
|
|
1566
|
-
|
|
1651
|
+
B.value || p("item-click", e);
|
|
1567
1652
|
}
|
|
1568
1653
|
function Ee(e) {
|
|
1569
|
-
if (!
|
|
1654
|
+
if (!B.value) {
|
|
1570
1655
|
if (l.item.props?.emitValueOnChange === !0 && (typeof e == "string" || typeof e == "number" || typeof e == "boolean")) {
|
|
1571
1656
|
p("item-click", String(e));
|
|
1572
1657
|
return;
|
|
@@ -1575,7 +1660,7 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
|
|
|
1575
1660
|
}
|
|
1576
1661
|
}
|
|
1577
1662
|
function De(e) {
|
|
1578
|
-
if (!
|
|
1663
|
+
if (!B.value) {
|
|
1579
1664
|
if (l.item.props?.emitValueOnChange === !0 && typeof e == "number" && Number.isFinite(e)) {
|
|
1580
1665
|
let t = l.item.props?.valuePrefix;
|
|
1581
1666
|
p("item-click", `${typeof t == "string" ? t : ""}${e}`);
|
|
@@ -1585,7 +1670,7 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
|
|
|
1585
1670
|
}
|
|
1586
1671
|
}
|
|
1587
1672
|
function Oe(e) {
|
|
1588
|
-
if (!
|
|
1673
|
+
if (!B.value) {
|
|
1589
1674
|
if (typeof e == "string" || typeof e == "number" || typeof e == "boolean") {
|
|
1590
1675
|
p("item-click", String(e));
|
|
1591
1676
|
return;
|
|
@@ -1603,10 +1688,10 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
|
|
|
1603
1688
|
let t = e.trim();
|
|
1604
1689
|
return t.length > 0 ? t : void 0;
|
|
1605
1690
|
}
|
|
1606
|
-
function
|
|
1691
|
+
function je(e, t) {
|
|
1607
1692
|
return typeof e != "number" || Number.isNaN(e) || !Number.isFinite(e) ? t : Math.max(0, Math.round(e));
|
|
1608
1693
|
}
|
|
1609
|
-
function
|
|
1694
|
+
function Me(e, t) {
|
|
1610
1695
|
if (typeof e == "number" && Number.isFinite(e) && e > 0) return `${e}px`;
|
|
1611
1696
|
if (typeof e == "string") {
|
|
1612
1697
|
let n = e.trim();
|
|
@@ -1614,63 +1699,63 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
|
|
|
1614
1699
|
}
|
|
1615
1700
|
return t;
|
|
1616
1701
|
}
|
|
1617
|
-
function
|
|
1702
|
+
function Ne(e) {
|
|
1618
1703
|
if (typeof e == "number" && Number.isFinite(e) && e > 0) return `${e}px`;
|
|
1619
1704
|
if (typeof e == "string") {
|
|
1620
1705
|
let t = e.trim();
|
|
1621
1706
|
return t ? t.toLowerCase() === "full" ? "100%" : t : void 0;
|
|
1622
1707
|
}
|
|
1623
1708
|
}
|
|
1624
|
-
function
|
|
1709
|
+
function Pe(e) {
|
|
1625
1710
|
if (typeof e == "number" && Number.isFinite(e) && e > 0) return `${e}px`;
|
|
1626
1711
|
if (typeof e != "string") return;
|
|
1627
1712
|
let t = e.trim();
|
|
1628
1713
|
return t.length > 0 ? t : void 0;
|
|
1629
1714
|
}
|
|
1630
|
-
function
|
|
1715
|
+
function Fe(e) {
|
|
1631
1716
|
if (!(typeof e != "number" || Number.isNaN(e) || !Number.isFinite(e))) return Math.max(1, Math.round(e));
|
|
1632
1717
|
}
|
|
1633
|
-
function
|
|
1718
|
+
function Le(e) {
|
|
1634
1719
|
let t = _.value.map((e) => ke(e)).filter((e) => !!e);
|
|
1635
1720
|
if (t.length) return e.type === "buttonGroup" ? t.join(" / ") : t[0];
|
|
1636
1721
|
}
|
|
1637
|
-
function
|
|
1722
|
+
function Re(e) {
|
|
1638
1723
|
let t = e.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]+/g, " ").trim();
|
|
1639
1724
|
return t ? t.replace(/\b\w/g, (e) => e.toUpperCase()) : e;
|
|
1640
1725
|
}
|
|
1641
|
-
return (t, c) => (v(), n(
|
|
1642
|
-
content:
|
|
1643
|
-
disabled:
|
|
1726
|
+
return (t, c) => (v(), n(D(H), {
|
|
1727
|
+
content: F.value,
|
|
1728
|
+
disabled: re.value,
|
|
1644
1729
|
"show-after": A.value,
|
|
1645
|
-
"hide-after":
|
|
1730
|
+
"hide-after": ee.value,
|
|
1646
1731
|
placement: "top",
|
|
1647
1732
|
effect: "dark"
|
|
1648
1733
|
}, {
|
|
1649
|
-
default:
|
|
1734
|
+
default: k(() => [a("div", {
|
|
1650
1735
|
class: m(["ml-ribbon-item-host", [
|
|
1651
1736
|
`is-${o.item.size ?? "medium"}`,
|
|
1652
1737
|
`type-${o.item.type}`,
|
|
1653
1738
|
{
|
|
1654
1739
|
"is-label-hidden": o.item.hideLabel === !0,
|
|
1655
|
-
"is-label-wrap":
|
|
1740
|
+
"is-label-wrap": J.value
|
|
1656
1741
|
}
|
|
1657
1742
|
]]),
|
|
1658
|
-
style: h(
|
|
1743
|
+
style: h(Y.value),
|
|
1659
1744
|
"data-item-id": o.id,
|
|
1660
1745
|
role: "group"
|
|
1661
|
-
}, [
|
|
1746
|
+
}, [ie.value ? (v(), i("span", Kt, T(R.value), 1)) : r("", !0), o.item.type === "buttonGroup" ? (v(), n(Be, {
|
|
1662
1747
|
key: 1,
|
|
1663
1748
|
id: o.item.id,
|
|
1664
1749
|
label: o.item.label ?? "",
|
|
1665
1750
|
options: o.item.props?.options ?? [],
|
|
1666
1751
|
"hide-label": o.item.hideLabel === !0,
|
|
1667
|
-
wrap:
|
|
1668
|
-
"equal-width":
|
|
1669
|
-
"button-size":
|
|
1670
|
-
"icon-size":
|
|
1752
|
+
wrap: pe.value,
|
|
1753
|
+
"equal-width": me.value,
|
|
1754
|
+
"button-size": G.value,
|
|
1755
|
+
"icon-size": K.value,
|
|
1671
1756
|
"tooltip-show-after": A.value,
|
|
1672
|
-
"tooltip-hide-after":
|
|
1673
|
-
disabled:
|
|
1757
|
+
"tooltip-hide-after": ee.value,
|
|
1758
|
+
disabled: B.value,
|
|
1674
1759
|
onChange: we
|
|
1675
1760
|
}, null, 8, [
|
|
1676
1761
|
"id",
|
|
@@ -1684,7 +1769,7 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
|
|
|
1684
1769
|
"tooltip-show-after",
|
|
1685
1770
|
"tooltip-hide-after",
|
|
1686
1771
|
"disabled"
|
|
1687
|
-
])) : o.item.type === "segmented" ? (v(), n(
|
|
1772
|
+
])) : o.item.type === "segmented" ? (v(), n(Vt, {
|
|
1688
1773
|
key: 2,
|
|
1689
1774
|
id: o.item.id,
|
|
1690
1775
|
label: o.item.label ?? o.item.id,
|
|
@@ -1692,10 +1777,10 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
|
|
|
1692
1777
|
"model-value": o.item.props?.modelValue,
|
|
1693
1778
|
direction: o.item.props?.direction ?? "horizontal",
|
|
1694
1779
|
block: o.item.props?.block === !0,
|
|
1695
|
-
disabled:
|
|
1780
|
+
disabled: B.value,
|
|
1696
1781
|
"hide-label": o.item.hideLabel === !0,
|
|
1697
1782
|
"tooltip-show-after": A.value,
|
|
1698
|
-
"tooltip-hide-after":
|
|
1783
|
+
"tooltip-hide-after": ee.value,
|
|
1699
1784
|
onChange: Se
|
|
1700
1785
|
}, null, 8, [
|
|
1701
1786
|
"id",
|
|
@@ -1708,16 +1793,16 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
|
|
|
1708
1793
|
"hide-label",
|
|
1709
1794
|
"tooltip-show-after",
|
|
1710
1795
|
"tooltip-hide-after"
|
|
1711
|
-
])) : o.item.type === "toggle" ? (v(), n(
|
|
1796
|
+
])) : o.item.type === "toggle" ? (v(), n(Ht, {
|
|
1712
1797
|
key: 3,
|
|
1713
1798
|
id: o.item.id,
|
|
1714
1799
|
label: o.item.label ?? o.item.id,
|
|
1715
|
-
"model-value":
|
|
1800
|
+
"model-value": ae.value,
|
|
1716
1801
|
"active-icon": o.item.props?.activeIcon ?? o.item.props?.icon ?? o.item.icon,
|
|
1717
1802
|
"inactive-icon": o.item.props?.inactiveIcon ?? o.item.props?.icon ?? o.item.icon,
|
|
1718
|
-
"active-label":
|
|
1719
|
-
"inactive-label":
|
|
1720
|
-
disabled:
|
|
1803
|
+
"active-label": se.value,
|
|
1804
|
+
"inactive-label": ce.value,
|
|
1805
|
+
disabled: B.value,
|
|
1721
1806
|
"hide-label": o.item.hideLabel === !0,
|
|
1722
1807
|
onChange: Ce
|
|
1723
1808
|
}, null, 8, [
|
|
@@ -1730,17 +1815,17 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
|
|
|
1730
1815
|
"inactive-label",
|
|
1731
1816
|
"disabled",
|
|
1732
1817
|
"hide-label"
|
|
1733
|
-
])) : o.item.type === "gallery" ? (v(), n(
|
|
1818
|
+
])) : o.item.type === "gallery" ? (v(), n(jt, {
|
|
1734
1819
|
key: 4,
|
|
1735
1820
|
id: o.item.id,
|
|
1736
1821
|
label: o.item.label ?? "",
|
|
1737
|
-
categories:
|
|
1738
|
-
"model-value":
|
|
1822
|
+
categories: le.value,
|
|
1823
|
+
"model-value": ue.value,
|
|
1739
1824
|
collapsed: o.item.props?.collapsed === !0,
|
|
1740
|
-
"inline-item-limit":
|
|
1741
|
-
"inline-item-width-mode":
|
|
1825
|
+
"inline-item-limit": de.value,
|
|
1826
|
+
"inline-item-width-mode": fe.value,
|
|
1742
1827
|
"preview-fallback": l.galleryPreviewFallback,
|
|
1743
|
-
disabled:
|
|
1828
|
+
disabled: B.value,
|
|
1744
1829
|
onSelect: Te
|
|
1745
1830
|
}, null, 8, [
|
|
1746
1831
|
"id",
|
|
@@ -1752,16 +1837,16 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
|
|
|
1752
1837
|
"inline-item-width-mode",
|
|
1753
1838
|
"preview-fallback",
|
|
1754
1839
|
"disabled"
|
|
1755
|
-
])) : o.item.type === "custom" || o.item.type === "template" ? (v(), n(
|
|
1840
|
+
])) : o.item.type === "custom" || o.item.type === "template" ? (v(), n(Wt, {
|
|
1756
1841
|
key: 5,
|
|
1757
1842
|
id: o.item.id,
|
|
1758
1843
|
item: o.item,
|
|
1759
|
-
disabled:
|
|
1844
|
+
disabled: B.value
|
|
1760
1845
|
}, {
|
|
1761
|
-
default:
|
|
1846
|
+
default: k(() => [U.value ? (v(), n(w(U.value), f({ key: 0 }, W.value, {
|
|
1762
1847
|
item: o.item,
|
|
1763
1848
|
"group-id": o.groupId,
|
|
1764
|
-
disabled:
|
|
1849
|
+
disabled: B.value,
|
|
1765
1850
|
"emit-item-click": Oe
|
|
1766
1851
|
}), null, 16, [
|
|
1767
1852
|
"item",
|
|
@@ -1770,26 +1855,27 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
|
|
|
1770
1855
|
])) : S(t.$slots, "template", {
|
|
1771
1856
|
key: 1,
|
|
1772
1857
|
item: o.item,
|
|
1773
|
-
disabled:
|
|
1858
|
+
disabled: B.value
|
|
1774
1859
|
})]),
|
|
1775
1860
|
_: 3
|
|
1776
1861
|
}, 8, [
|
|
1777
1862
|
"id",
|
|
1778
1863
|
"item",
|
|
1779
1864
|
"disabled"
|
|
1780
|
-
])) : o.item.type === "dropdown" ? (v(), n(
|
|
1865
|
+
])) : o.item.type === "dropdown" ? (v(), n(Ye, {
|
|
1781
1866
|
key: 6,
|
|
1782
1867
|
id: o.item.id,
|
|
1783
1868
|
label: o.item.label ?? o.item.id,
|
|
1784
1869
|
tooltip: o.item.tooltip,
|
|
1785
|
-
icon:
|
|
1870
|
+
icon: j.value,
|
|
1786
1871
|
options: o.item.props?.options ?? [],
|
|
1787
|
-
|
|
1872
|
+
"model-value": o.item.props?.modelValue,
|
|
1873
|
+
disabled: B.value,
|
|
1788
1874
|
"hide-label": o.item.hideLabel === !0,
|
|
1789
1875
|
"item-size": o.item.size ?? "medium",
|
|
1790
1876
|
"sync-label-with-selection": o.item.props?.syncLabelWithSelection === !0,
|
|
1791
1877
|
"tooltip-show-after": A.value,
|
|
1792
|
-
"tooltip-hide-after":
|
|
1878
|
+
"tooltip-hide-after": ee.value,
|
|
1793
1879
|
onCommand: Z,
|
|
1794
1880
|
onTooltipChange: Q,
|
|
1795
1881
|
onClick: X
|
|
@@ -1799,32 +1885,33 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
|
|
|
1799
1885
|
"tooltip",
|
|
1800
1886
|
"icon",
|
|
1801
1887
|
"options",
|
|
1888
|
+
"model-value",
|
|
1802
1889
|
"disabled",
|
|
1803
1890
|
"hide-label",
|
|
1804
1891
|
"item-size",
|
|
1805
1892
|
"sync-label-with-selection",
|
|
1806
1893
|
"tooltip-show-after",
|
|
1807
1894
|
"tooltip-hide-after"
|
|
1808
|
-
])) : o.item.type === "checkbox" ? (v(), n(
|
|
1895
|
+
])) : o.item.type === "checkbox" ? (v(), n(D(M), {
|
|
1809
1896
|
key: 7,
|
|
1810
|
-
disabled:
|
|
1897
|
+
disabled: B.value,
|
|
1811
1898
|
onChange: X
|
|
1812
1899
|
}, {
|
|
1813
|
-
default:
|
|
1900
|
+
default: k(() => [s(T(o.item.label), 1)]),
|
|
1814
1901
|
_: 1
|
|
1815
|
-
}, 8, ["disabled"])) : o.item.type === "colorPicker" ? (v(), n(
|
|
1902
|
+
}, 8, ["disabled"])) : o.item.type === "colorPicker" ? (v(), n(D(N), {
|
|
1816
1903
|
key: 8,
|
|
1817
|
-
disabled:
|
|
1904
|
+
disabled: B.value,
|
|
1818
1905
|
onChange: X
|
|
1819
|
-
}, null, 8, ["disabled"])) : o.item.type === "comboBox" ? (v(), n(
|
|
1906
|
+
}, null, 8, ["disabled"])) : o.item.type === "comboBox" ? (v(), n(D(V), {
|
|
1820
1907
|
key: 9,
|
|
1821
|
-
"model-value":
|
|
1822
|
-
disabled:
|
|
1823
|
-
"popper-class":
|
|
1824
|
-
style: h({ width:
|
|
1908
|
+
"model-value": ge.value,
|
|
1909
|
+
disabled: B.value,
|
|
1910
|
+
"popper-class": te.value,
|
|
1911
|
+
style: h({ width: q.value }),
|
|
1825
1912
|
onChange: Ee
|
|
1826
1913
|
}, {
|
|
1827
|
-
default:
|
|
1914
|
+
default: k(() => [(v(!0), i(e, null, x(_.value, (e) => (v(), n(D(z), {
|
|
1828
1915
|
key: String(e.value),
|
|
1829
1916
|
label: String(e.label),
|
|
1830
1917
|
value: e.value
|
|
@@ -1835,16 +1922,16 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
|
|
|
1835
1922
|
"disabled",
|
|
1836
1923
|
"popper-class",
|
|
1837
1924
|
"style"
|
|
1838
|
-
])) : o.item.type === "inputNumber" ? (v(), n(
|
|
1925
|
+
])) : o.item.type === "inputNumber" ? (v(), n(Ft, {
|
|
1839
1926
|
key: 10,
|
|
1840
1927
|
id: o.item.id,
|
|
1841
|
-
"model-value":
|
|
1842
|
-
width:
|
|
1928
|
+
"model-value": ve.value,
|
|
1929
|
+
width: _e.value,
|
|
1843
1930
|
"prefix-label": o.item.props?.prefixLabel,
|
|
1844
1931
|
"prefix-icon": o.item.props?.prefixIcon ?? o.item.props?.icon ?? o.item.icon,
|
|
1845
1932
|
"prefix-icon-class": o.item.props?.prefixIconClass,
|
|
1846
|
-
"control-props":
|
|
1847
|
-
disabled:
|
|
1933
|
+
"control-props": ye.value,
|
|
1934
|
+
disabled: B.value,
|
|
1848
1935
|
onChange: De
|
|
1849
1936
|
}, null, 8, [
|
|
1850
1937
|
"id",
|
|
@@ -1855,14 +1942,14 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
|
|
|
1855
1942
|
"prefix-icon-class",
|
|
1856
1943
|
"control-props",
|
|
1857
1944
|
"disabled"
|
|
1858
|
-
])) : (v(), n(
|
|
1945
|
+
])) : (v(), n(Ie, {
|
|
1859
1946
|
key: 11,
|
|
1860
1947
|
id: o.item.id,
|
|
1861
1948
|
label: o.item.label ?? o.item.id,
|
|
1862
|
-
icon:
|
|
1863
|
-
disabled:
|
|
1864
|
-
"hide-label": !
|
|
1865
|
-
"aria-label":
|
|
1949
|
+
icon: j.value,
|
|
1950
|
+
disabled: B.value,
|
|
1951
|
+
"hide-label": !ne.value,
|
|
1952
|
+
"aria-label": L.value,
|
|
1866
1953
|
onClick: X
|
|
1867
1954
|
}, null, 8, [
|
|
1868
1955
|
"id",
|
|
@@ -1871,7 +1958,7 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
|
|
|
1871
1958
|
"disabled",
|
|
1872
1959
|
"hide-label",
|
|
1873
1960
|
"aria-label"
|
|
1874
|
-
]))], 14,
|
|
1961
|
+
]))], 14, Gt)]),
|
|
1875
1962
|
_: 3
|
|
1876
1963
|
}, 8, [
|
|
1877
1964
|
"content",
|
|
@@ -1880,7 +1967,7 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
|
|
|
1880
1967
|
"hide-after"
|
|
1881
1968
|
]));
|
|
1882
1969
|
}
|
|
1883
|
-
}),
|
|
1970
|
+
}), Jt = /* @__PURE__ */ l({
|
|
1884
1971
|
__name: "RibbonGroupContent",
|
|
1885
1972
|
props: {
|
|
1886
1973
|
group: {},
|
|
@@ -1890,13 +1977,13 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
|
|
|
1890
1977
|
emits: ["item-click"],
|
|
1891
1978
|
setup(t, { emit: r }) {
|
|
1892
1979
|
let a = t, o = r;
|
|
1893
|
-
return (t, r) => (v(), i("div", { class: m(["ml-ribbon-group__content", [`ml-ribbon-group__content--${a.group.orientation ?? "column"}`]]) }, [(v(!0), i(e, null, x(a.group.collections ?? [], (t) => (v(), n(
|
|
1980
|
+
return (t, r) => (v(), i("div", { class: m(["ml-ribbon-group__content", [`ml-ribbon-group__content--${a.group.orientation ?? "column"}`]]) }, [(v(!0), i(e, null, x(a.group.collections ?? [], (t) => (v(), n(Pe, {
|
|
1894
1981
|
id: t.id,
|
|
1895
1982
|
key: t.id,
|
|
1896
1983
|
layout: t.layout ?? (a.group.orientation === "row" ? "row" : "column"),
|
|
1897
1984
|
rows: t.rows
|
|
1898
1985
|
}, {
|
|
1899
|
-
default:
|
|
1986
|
+
default: k(() => [(v(!0), i(e, null, x(t.items, (e) => (v(), n(qt, {
|
|
1900
1987
|
id: e.id,
|
|
1901
1988
|
key: e.id,
|
|
1902
1989
|
item: e,
|
|
@@ -1921,15 +2008,15 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
|
|
|
1921
2008
|
"rows"
|
|
1922
2009
|
]))), 128))], 2));
|
|
1923
2010
|
}
|
|
1924
|
-
}),
|
|
2011
|
+
}), Yt = ["data-priority"], Xt = { class: "ml-ribbon-group__body" }, Zt = { class: "ml-ribbon-group__footer" }, Qt = { class: "ml-ribbon-group__title" }, $t = [
|
|
1925
2012
|
"aria-label",
|
|
1926
2013
|
"aria-expanded",
|
|
1927
2014
|
"disabled"
|
|
1928
|
-
],
|
|
2015
|
+
], en = { class: "ml-ribbon-group__overflow-content" }, tn = [
|
|
1929
2016
|
"aria-label",
|
|
1930
2017
|
"aria-expanded",
|
|
1931
2018
|
"disabled"
|
|
1932
|
-
],
|
|
2019
|
+
], nn = { class: "ml-ribbon-group__overflow-content" }, rn = /* @__PURE__ */ l({
|
|
1933
2020
|
__name: "RibbonGroup",
|
|
1934
2021
|
props: {
|
|
1935
2022
|
id: {},
|
|
@@ -1948,7 +2035,7 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
|
|
|
1948
2035
|
},
|
|
1949
2036
|
emits: ["item-click"],
|
|
1950
2037
|
setup(e, { emit: o }) {
|
|
1951
|
-
let s = e, l = o, d = u(
|
|
2038
|
+
let s = e, l = o, d = u(he, null), f = t(() => s.width == null), y = t(() => {
|
|
1952
2039
|
if (typeof s.width != "number" || Number.isNaN(s.width) || s.width <= 0) return;
|
|
1953
2040
|
let e = `${s.width}px`;
|
|
1954
2041
|
return {
|
|
@@ -1957,15 +2044,15 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
|
|
|
1957
2044
|
maxWidth: e,
|
|
1958
2045
|
flex: `0 0 ${e}`
|
|
1959
2046
|
};
|
|
1960
|
-
}), x = t(() => s.disabled === !0 || d?.disabled.value === !0),
|
|
2047
|
+
}), x = t(() => s.disabled === !0 || d?.disabled.value === !0), C = b(null), E = b([]), A = b(null), ee = b(null), j = b(0), M = b(0), N = oe("size", ""), ne = t(() => N.value || "default"), P = t(() => `ml-ribbon-group__overflow-popover ml-ribbon-group__overflow-popover--size-${ne.value}`), F = t(() => ({ modifiers: [{
|
|
1961
2048
|
name: "offset",
|
|
1962
|
-
options: { offset: [
|
|
1963
|
-
}] })),
|
|
2049
|
+
options: { offset: [j.value, 8] }
|
|
2050
|
+
}] })), I = t(() => ({ modifiers: [{
|
|
1964
2051
|
name: "offset",
|
|
1965
|
-
options: { offset: [
|
|
1966
|
-
}] })),
|
|
1967
|
-
if (!s.groupModel || !
|
|
1968
|
-
let e = new Set(
|
|
2052
|
+
options: { offset: [M.value, 8] }
|
|
2053
|
+
}] })), re = t(() => !s.icon || typeof s.icon == "string" ? null : s.icon), R = t(() => E.value.length > 0), z = t(() => (s.groupModel?.footerMenuItems?.length ?? 0) > 0), B = b(!1), V = b(!1), ae = t(() => {
|
|
2054
|
+
if (!s.groupModel || !E.value.length) return null;
|
|
2055
|
+
let e = new Set(E.value), t = s.groupModel.collections?.map((t) => ({
|
|
1969
2056
|
...t,
|
|
1970
2057
|
items: t.items.filter((t) => e.has(t.id))
|
|
1971
2058
|
})).filter((e) => e.items.length > 0) ?? [];
|
|
@@ -1973,7 +2060,7 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
|
|
|
1973
2060
|
...s.groupModel,
|
|
1974
2061
|
collections: t
|
|
1975
2062
|
} : null;
|
|
1976
|
-
}),
|
|
2063
|
+
}), H = t(() => s.groupModel?.footerMenuItems?.length ? {
|
|
1977
2064
|
id: `${s.groupModel.id}-footer-menu`,
|
|
1978
2065
|
title: "",
|
|
1979
2066
|
orientation: "row",
|
|
@@ -1983,15 +2070,15 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
|
|
|
1983
2070
|
items: s.groupModel.footerMenuItems
|
|
1984
2071
|
}]
|
|
1985
2072
|
} : null);
|
|
1986
|
-
function
|
|
1987
|
-
let e =
|
|
2073
|
+
function ce() {
|
|
2074
|
+
let e = C.value?.querySelector(".ml-ribbon-group__content");
|
|
1988
2075
|
if (!e) {
|
|
1989
|
-
|
|
2076
|
+
E.value.length > 0 && (E.value = []);
|
|
1990
2077
|
return;
|
|
1991
2078
|
}
|
|
1992
2079
|
let t = e.getBoundingClientRect();
|
|
1993
2080
|
if (t.width <= 0 || t.height <= 0) {
|
|
1994
|
-
|
|
2081
|
+
E.value.length > 0 && (E.value = []);
|
|
1995
2082
|
return;
|
|
1996
2083
|
}
|
|
1997
2084
|
let n = [];
|
|
@@ -2000,99 +2087,99 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
|
|
|
2000
2087
|
if (!r) return;
|
|
2001
2088
|
let i = e.getBoundingClientRect();
|
|
2002
2089
|
(i.right - t.right > .5 || i.bottom - t.bottom > .5 || t.left - i.left > .5 || t.top - i.top > .5) && n.push(r);
|
|
2003
|
-
}),
|
|
2090
|
+
}), E.value.length === n.length && E.value.every((e, t) => e === n[t]) || (E.value = n);
|
|
2004
2091
|
}
|
|
2005
|
-
function
|
|
2092
|
+
function le() {
|
|
2006
2093
|
p(() => {
|
|
2007
|
-
|
|
2094
|
+
ge(), de(), fe(), ce();
|
|
2008
2095
|
});
|
|
2009
2096
|
}
|
|
2010
|
-
function
|
|
2011
|
-
let e =
|
|
2097
|
+
function de() {
|
|
2098
|
+
let e = C.value?.getBoundingClientRect(), t = A.value?.getBoundingClientRect();
|
|
2012
2099
|
if (!e || !t) {
|
|
2013
|
-
|
|
2100
|
+
j.value !== 0 && (j.value = 0);
|
|
2014
2101
|
return;
|
|
2015
2102
|
}
|
|
2016
2103
|
let n = Math.round(e.left - t.left);
|
|
2017
|
-
|
|
2104
|
+
j.value !== n && (j.value = n);
|
|
2018
2105
|
}
|
|
2019
|
-
function
|
|
2020
|
-
let e =
|
|
2106
|
+
function fe() {
|
|
2107
|
+
let e = C.value?.getBoundingClientRect(), t = ee.value?.getBoundingClientRect();
|
|
2021
2108
|
if (!e || !t) {
|
|
2022
|
-
|
|
2109
|
+
M.value !== 0 && (M.value = 0);
|
|
2023
2110
|
return;
|
|
2024
2111
|
}
|
|
2025
2112
|
let n = Math.round(e.left - t.left);
|
|
2026
|
-
|
|
2113
|
+
M.value !== n && (M.value = n);
|
|
2027
2114
|
}
|
|
2028
|
-
function
|
|
2029
|
-
|
|
2115
|
+
function U(e) {
|
|
2116
|
+
B.value = e;
|
|
2030
2117
|
}
|
|
2031
|
-
function
|
|
2032
|
-
|
|
2118
|
+
function W(e) {
|
|
2119
|
+
V.value = e;
|
|
2033
2120
|
}
|
|
2034
2121
|
function pe() {
|
|
2035
|
-
x.value || (
|
|
2122
|
+
x.value || (B.value = !B.value);
|
|
2036
2123
|
}
|
|
2037
|
-
function
|
|
2038
|
-
x.value || (
|
|
2124
|
+
function G() {
|
|
2125
|
+
x.value || (V.value = !V.value);
|
|
2039
2126
|
}
|
|
2040
|
-
let
|
|
2041
|
-
function
|
|
2042
|
-
if (!
|
|
2043
|
-
let e =
|
|
2044
|
-
|
|
2127
|
+
let K = null, q = null;
|
|
2128
|
+
function ge() {
|
|
2129
|
+
if (!K) return;
|
|
2130
|
+
let e = C.value?.querySelector(".ml-ribbon-group__content") ?? null;
|
|
2131
|
+
q !== e && (q && K.unobserve(q), e && K.observe(e), q = e);
|
|
2045
2132
|
}
|
|
2046
|
-
return
|
|
2047
|
-
|
|
2048
|
-
}, { deep: !0 }),
|
|
2049
|
-
e && (
|
|
2133
|
+
return O(() => s.groupModel, () => {
|
|
2134
|
+
le();
|
|
2135
|
+
}, { deep: !0 }), O(x, (e) => {
|
|
2136
|
+
e && (B.value = !1, V.value = !1);
|
|
2050
2137
|
}), g(() => {
|
|
2051
|
-
typeof ResizeObserver < "u" && (
|
|
2052
|
-
|
|
2053
|
-
}),
|
|
2138
|
+
typeof ResizeObserver < "u" && (K = new ResizeObserver(() => {
|
|
2139
|
+
de(), fe(), ce();
|
|
2140
|
+
}), C.value && K.observe(C.value), ge()), le();
|
|
2054
2141
|
}), _(() => {
|
|
2055
|
-
|
|
2142
|
+
K?.disconnect();
|
|
2056
2143
|
}), (t, o) => (v(), i("section", {
|
|
2057
2144
|
ref_key: "groupSectionRef",
|
|
2058
|
-
ref:
|
|
2145
|
+
ref: C,
|
|
2059
2146
|
class: m(["ml-ribbon-group", { "ml-ribbon-group--auto-width": f.value }]),
|
|
2060
2147
|
"data-priority": e.priority ?? 100,
|
|
2061
2148
|
style: h(y.value)
|
|
2062
|
-
}, [a("div",
|
|
2063
|
-
|
|
2149
|
+
}, [a("div", Xt, [S(t.$slots, "default")]), a("footer", Zt, [
|
|
2150
|
+
re.value ? (v(), n(D(L), {
|
|
2064
2151
|
key: 0,
|
|
2065
2152
|
class: "ml-ribbon-group__icon"
|
|
2066
2153
|
}, {
|
|
2067
|
-
default:
|
|
2154
|
+
default: k(() => [(v(), n(w(re.value)))]),
|
|
2068
2155
|
_: 1
|
|
2069
2156
|
})) : r("", !0),
|
|
2070
|
-
a("span",
|
|
2071
|
-
|
|
2157
|
+
a("span", Qt, T(e.title), 1),
|
|
2158
|
+
z.value && H.value ? (v(), n(D(ie), {
|
|
2072
2159
|
key: 1,
|
|
2073
2160
|
trigger: "click",
|
|
2074
2161
|
placement: "bottom-start",
|
|
2075
2162
|
disabled: x.value,
|
|
2076
|
-
"popper-class":
|
|
2077
|
-
"popper-options":
|
|
2078
|
-
onShow: o[1] ||= (e) =>
|
|
2079
|
-
onHide: o[2] ||= (e) =>
|
|
2163
|
+
"popper-class": P.value,
|
|
2164
|
+
"popper-options": I.value,
|
|
2165
|
+
onShow: o[1] ||= (e) => U(!0),
|
|
2166
|
+
onHide: o[2] ||= (e) => U(!1)
|
|
2080
2167
|
}, {
|
|
2081
|
-
reference:
|
|
2168
|
+
reference: k(() => [a("button", {
|
|
2082
2169
|
ref_key: "footerTriggerRef",
|
|
2083
|
-
ref:
|
|
2170
|
+
ref: ee,
|
|
2084
2171
|
type: "button",
|
|
2085
|
-
class: m(["ml-ribbon-group__footer-trigger", { "is-open":
|
|
2172
|
+
class: m(["ml-ribbon-group__footer-trigger", { "is-open": B.value }]),
|
|
2086
2173
|
"aria-label": e.overflowTriggerAriaLabel,
|
|
2087
|
-
"aria-expanded":
|
|
2174
|
+
"aria-expanded": B.value,
|
|
2088
2175
|
disabled: x.value,
|
|
2089
2176
|
onClick: pe
|
|
2090
|
-
}, [c(
|
|
2091
|
-
default:
|
|
2177
|
+
}, [c(D(L), null, {
|
|
2178
|
+
default: k(() => [(v(), n(w(B.value ? D(ue) : D(se))))]),
|
|
2092
2179
|
_: 1
|
|
2093
|
-
})], 10,
|
|
2094
|
-
default:
|
|
2095
|
-
group:
|
|
2180
|
+
})], 10, $t)]),
|
|
2181
|
+
default: k(() => [a("div", en, [c(Jt, {
|
|
2182
|
+
group: H.value,
|
|
2096
2183
|
"gallery-preview-fallback": e.galleryPreviewFallback,
|
|
2097
2184
|
disabled: x.value,
|
|
2098
2185
|
onItemClick: o[0] ||= (e) => l("item-click", e)
|
|
@@ -2107,31 +2194,31 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
|
|
|
2107
2194
|
"popper-class",
|
|
2108
2195
|
"popper-options"
|
|
2109
2196
|
])) : r("", !0),
|
|
2110
|
-
|
|
2197
|
+
R.value && ae.value ? (v(), n(D(ie), {
|
|
2111
2198
|
key: 2,
|
|
2112
2199
|
trigger: "click",
|
|
2113
2200
|
placement: "bottom-start",
|
|
2114
2201
|
disabled: x.value,
|
|
2115
|
-
"popper-class":
|
|
2116
|
-
"popper-options":
|
|
2117
|
-
onShow: o[4] ||= (e) =>
|
|
2118
|
-
onHide: o[5] ||= (e) =>
|
|
2202
|
+
"popper-class": P.value,
|
|
2203
|
+
"popper-options": F.value,
|
|
2204
|
+
onShow: o[4] ||= (e) => W(!0),
|
|
2205
|
+
onHide: o[5] ||= (e) => W(!1)
|
|
2119
2206
|
}, {
|
|
2120
|
-
reference:
|
|
2207
|
+
reference: k(() => [a("button", {
|
|
2121
2208
|
ref_key: "overflowTriggerRef",
|
|
2122
2209
|
ref: A,
|
|
2123
2210
|
type: "button",
|
|
2124
|
-
class: m(["ml-ribbon-group__overflow-trigger", { "is-open":
|
|
2211
|
+
class: m(["ml-ribbon-group__overflow-trigger", { "is-open": V.value }]),
|
|
2125
2212
|
"aria-label": e.overflowTriggerAriaLabel,
|
|
2126
|
-
"aria-expanded":
|
|
2213
|
+
"aria-expanded": V.value,
|
|
2127
2214
|
disabled: x.value,
|
|
2128
|
-
onClick:
|
|
2129
|
-
}, [c(
|
|
2130
|
-
default:
|
|
2215
|
+
onClick: G
|
|
2216
|
+
}, [c(D(L), null, {
|
|
2217
|
+
default: k(() => [(v(), n(w(V.value ? D(ue) : D(se))))]),
|
|
2131
2218
|
_: 1
|
|
2132
|
-
})], 10,
|
|
2133
|
-
default:
|
|
2134
|
-
group:
|
|
2219
|
+
})], 10, tn)]),
|
|
2220
|
+
default: k(() => [a("div", nn, [c(Jt, {
|
|
2221
|
+
group: ae.value,
|
|
2135
2222
|
"gallery-preview-fallback": e.galleryPreviewFallback,
|
|
2136
2223
|
disabled: x.value,
|
|
2137
2224
|
onItemClick: o[3] ||= (e) => l("item-click", e)
|
|
@@ -2146,30 +2233,30 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
|
|
|
2146
2233
|
"popper-class",
|
|
2147
2234
|
"popper-options"
|
|
2148
2235
|
])) : r("", !0),
|
|
2149
|
-
e.showLauncherIcon ?? e.launcher ? (v(), n(
|
|
2236
|
+
e.showLauncherIcon ?? e.launcher ? (v(), n(D(te), {
|
|
2150
2237
|
key: 3,
|
|
2151
2238
|
link: "",
|
|
2152
2239
|
class: "ml-ribbon-group__launcher",
|
|
2153
2240
|
disabled: x.value
|
|
2154
2241
|
}, {
|
|
2155
|
-
default:
|
|
2156
|
-
default:
|
|
2242
|
+
default: k(() => [c(D(L), null, {
|
|
2243
|
+
default: k(() => [c(D(me))]),
|
|
2157
2244
|
_: 1
|
|
2158
2245
|
})]),
|
|
2159
2246
|
_: 1
|
|
2160
2247
|
}, 8, ["disabled"])) : r("", !0)
|
|
2161
|
-
])], 14,
|
|
2248
|
+
])], 14, Yt));
|
|
2162
2249
|
}
|
|
2163
|
-
}),
|
|
2250
|
+
}), an = ["inert", "aria-disabled"], on = { class: "ml-ribbon__head-left" }, sn = { class: "ml-ribbon__head-right" }, cn = {
|
|
2164
2251
|
key: 2,
|
|
2165
2252
|
class: "ml-ribbon__tabs-extra"
|
|
2166
|
-
},
|
|
2253
|
+
}, ln = ["data-active-tab"], un = {
|
|
2167
2254
|
key: 0,
|
|
2168
2255
|
class: "ml-ribbon-group ml-ribbon-group--overflow"
|
|
2169
|
-
},
|
|
2256
|
+
}, dn = { class: "ml-ribbon-group__body ml-ribbon-group__body--overflow" }, fn = ["aria-label", "disabled"], pn = { class: "ml-ribbon-overflow-list" }, mn = { class: "ml-ribbon-overflow-group__header" }, hn = ["data-active-tab"], gn = ["disabled"], _n = { class: "ml-ribbon-simplified-group__panel" }, vn = ["data-active-tab"], yn = {
|
|
2170
2257
|
key: 0,
|
|
2171
2258
|
class: "ml-ribbon-group ml-ribbon-group--overflow"
|
|
2172
|
-
},
|
|
2259
|
+
}, bn = { class: "ml-ribbon-group__body ml-ribbon-group__body--overflow" }, xn = ["aria-label", "disabled"], Sn = { class: "ml-ribbon-overflow-list" }, Cn = { class: "ml-ribbon-overflow-group__header" }, wn = ["data-active-tab"], Tn = ["disabled"], En = { class: "ml-ribbon-simplified-group__panel" }, Dn = 40, On = /* @__PURE__ */ l({
|
|
2173
2260
|
__name: "Ribbon",
|
|
2174
2261
|
props: {
|
|
2175
2262
|
id: { default: "ml-ribbon-root" },
|
|
@@ -2226,9 +2313,9 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
|
|
|
2226
2313
|
],
|
|
2227
2314
|
setup(s, { expose: l, emit: u }) {
|
|
2228
2315
|
function f(e) {
|
|
2229
|
-
return e == null || typeof e == "string" ? e : typeof e == "object" || typeof e == "function" ? d(
|
|
2316
|
+
return e == null || typeof e == "string" ? e : typeof e == "object" || typeof e == "function" ? d(E(e)) : e;
|
|
2230
2317
|
}
|
|
2231
|
-
function
|
|
2318
|
+
function C(e) {
|
|
2232
2319
|
if (!e) return;
|
|
2233
2320
|
let t = { ...e };
|
|
2234
2321
|
return "component" in t && (t.component = f(t.component)), "icon" in t && (t.icon = f(t.icon)), "activeIcon" in t && (t.activeIcon = f(t.activeIcon)), "inactiveIcon" in t && (t.inactiveIcon = f(t.inactiveIcon)), Array.isArray(t.options) && (t.options = t.options.map((e) => {
|
|
@@ -2260,10 +2347,10 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
|
|
|
2260
2347
|
return {
|
|
2261
2348
|
...e,
|
|
2262
2349
|
icon: f(e.icon),
|
|
2263
|
-
props:
|
|
2350
|
+
props: C(e.props)
|
|
2264
2351
|
};
|
|
2265
2352
|
}
|
|
2266
|
-
function
|
|
2353
|
+
function ee(e) {
|
|
2267
2354
|
return {
|
|
2268
2355
|
...e,
|
|
2269
2356
|
icon: f(e.icon),
|
|
@@ -2274,16 +2361,16 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
|
|
|
2274
2361
|
}))
|
|
2275
2362
|
};
|
|
2276
2363
|
}
|
|
2277
|
-
function
|
|
2364
|
+
function j(e) {
|
|
2278
2365
|
return e.map((e) => ({
|
|
2279
2366
|
...e,
|
|
2280
|
-
groups: e.groups?.map(
|
|
2367
|
+
groups: e.groups?.map(ee)
|
|
2281
2368
|
}));
|
|
2282
2369
|
}
|
|
2283
|
-
function
|
|
2370
|
+
function M(e, t) {
|
|
2284
2371
|
return typeof e != "number" || Number.isNaN(e) || !Number.isFinite(e) ? t : Math.max(0, Math.round(e));
|
|
2285
2372
|
}
|
|
2286
|
-
let
|
|
2373
|
+
let N = {
|
|
2287
2374
|
layoutSwitcherTooltip: "Switch ribbon layout",
|
|
2288
2375
|
minimizeTooltip: "Minimize ribbon",
|
|
2289
2376
|
keyTipsToggleText: "Key Tips",
|
|
@@ -2297,61 +2384,61 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
|
|
|
2297
2384
|
keyTipsSequencePrefix: "Sequence:",
|
|
2298
2385
|
keyTipsEmptySequence: "No key sequence",
|
|
2299
2386
|
galleryPreviewFallback: "Preview unavailable"
|
|
2300
|
-
},
|
|
2301
|
-
y(
|
|
2302
|
-
|
|
2303
|
-
}, { deep: !0 }),
|
|
2304
|
-
e !==
|
|
2305
|
-
}),
|
|
2387
|
+
}, P = s, F = u, { context: I, visibleTabs: re } = xe(P.id, P.tabs, P.disabled, P.activeLayout ? String(P.activeLayout).toLowerCase() === "simplified" ? "simplified" : "classic" : P.layout, P.minimized, P.activeTab || P.tabs[0]?.id || "", M(P.tooltipShowAfter, 1e3), M(P.tooltipHideAfter, 0));
|
|
2388
|
+
y(he, I), O(() => P.tabs, (e) => {
|
|
2389
|
+
I.tabs.value = j(e), I.tabs.value.some((e) => e.id === I.activeTab.value) || (I.activeTab.value = I.tabs.value[0]?.id || "");
|
|
2390
|
+
}, { deep: !0 }), O(() => P.layout, (e) => {
|
|
2391
|
+
e !== I.layout.value && (I.layout.value = e);
|
|
2392
|
+
}), O(() => P.activeLayout, (e) => {
|
|
2306
2393
|
if (!e) return;
|
|
2307
2394
|
let t = String(e).toLowerCase() === "simplified" ? "simplified" : "classic";
|
|
2308
|
-
t !==
|
|
2309
|
-
}),
|
|
2310
|
-
e !==
|
|
2311
|
-
}),
|
|
2312
|
-
e !==
|
|
2313
|
-
}),
|
|
2314
|
-
e && e !==
|
|
2315
|
-
}),
|
|
2316
|
-
let t =
|
|
2317
|
-
t !==
|
|
2318
|
-
}),
|
|
2319
|
-
let t =
|
|
2320
|
-
t !==
|
|
2321
|
-
}),
|
|
2322
|
-
|
|
2323
|
-
}),
|
|
2324
|
-
|
|
2325
|
-
}),
|
|
2326
|
-
|
|
2327
|
-
}),
|
|
2328
|
-
|
|
2329
|
-
}),
|
|
2330
|
-
|
|
2395
|
+
t !== I.layout.value && (I.layout.value = t);
|
|
2396
|
+
}), O(() => P.minimized, (e) => {
|
|
2397
|
+
e !== I.minimized.value && (I.minimized.value = e);
|
|
2398
|
+
}), O(() => P.disabled, (e) => {
|
|
2399
|
+
e !== I.disabled.value && (I.disabled.value = e);
|
|
2400
|
+
}), O(() => P.activeTab, (e) => {
|
|
2401
|
+
e && e !== I.activeTab.value && (I.activeTab.value = e);
|
|
2402
|
+
}), O(() => P.tooltipShowAfter, (e) => {
|
|
2403
|
+
let t = M(e, 1e3);
|
|
2404
|
+
t !== I.tooltipShowAfter.value && (I.tooltipShowAfter.value = t);
|
|
2405
|
+
}), O(() => P.tooltipHideAfter, (e) => {
|
|
2406
|
+
let t = M(e, 0);
|
|
2407
|
+
t !== I.tooltipHideAfter.value && (I.tooltipHideAfter.value = t);
|
|
2408
|
+
}), O(I.activeTab, (e) => {
|
|
2409
|
+
F("update:activeTab", e), F("tabChange", e);
|
|
2410
|
+
}), O(I.layout, (e) => {
|
|
2411
|
+
F("update:layout", e), F("layoutChange", e);
|
|
2412
|
+
}), O(I.minimized, (e) => {
|
|
2413
|
+
F("update:minimized", e);
|
|
2414
|
+
}), O(I.overflowOpen, (e) => {
|
|
2415
|
+
F(e ? "overflowOpen" : "overflowClose");
|
|
2416
|
+
}), O(I.backdropOpen, (e) => {
|
|
2417
|
+
F(e ? "backstageOpen" : "backstageClose");
|
|
2331
2418
|
});
|
|
2332
|
-
let
|
|
2419
|
+
let R = t(() => re.value.find((e) => e.id === I.activeTab.value)), z = t(() => new Set(re.value.filter((e) => e.contextual && e.contextualMode === "exclusive").map((e) => e.id))), B = t(() => Le(R.value)), V = t(() => R.value?.groups?.filter((e) => e.visible !== !1) ?? []), se = b(null), le = b(null), ue = b(null), fe = b(null), U = b(!1), me = b(0), G = b({
|
|
2333
2420
|
left: "0px",
|
|
2334
2421
|
top: "0px",
|
|
2335
2422
|
width: "1px",
|
|
2336
2423
|
height: "0px"
|
|
2337
|
-
}),
|
|
2338
|
-
layoutSwitcherTooltip:
|
|
2339
|
-
minimizeTooltip:
|
|
2340
|
-
keyTipsToggleText:
|
|
2341
|
-
overflowTriggerAriaLabel:
|
|
2342
|
-
groupOverflowTriggerAriaLabel:
|
|
2343
|
-
fileMenuLabel:
|
|
2344
|
-
fileMenuOpenBackstageLabel:
|
|
2345
|
-
backstageBackLabel:
|
|
2346
|
-
backstageTitle:
|
|
2347
|
-
backstageDescription:
|
|
2348
|
-
keyTipsSequencePrefix:
|
|
2349
|
-
keyTipsEmptySequence:
|
|
2350
|
-
galleryPreviewFallback:
|
|
2351
|
-
})),
|
|
2424
|
+
}), K = b(/* @__PURE__ */ new Set()), q = b({}), ge = oe("size", ""), _e = t(() => P.size || ge.value || "default"), ve = t(() => `ml-ribbon-group-popover ml-ribbon-group-popover--size-${_e.value}`), ye = t(() => `ml-ribbon-overflow-popover ml-ribbon-overflow-popover--size-${_e.value}`), be = t(() => `ml-ribbon-tab-panel-popover ml-ribbon-tab-panel-popover--size-${_e.value}`), J = t(() => ({
|
|
2425
|
+
layoutSwitcherTooltip: P.texts.layoutSwitcherTooltip || N.layoutSwitcherTooltip,
|
|
2426
|
+
minimizeTooltip: P.texts.minimizeTooltip || N.minimizeTooltip,
|
|
2427
|
+
keyTipsToggleText: P.texts.keyTipsToggleText || N.keyTipsToggleText,
|
|
2428
|
+
overflowTriggerAriaLabel: P.texts.overflowTriggerAriaLabel || N.overflowTriggerAriaLabel,
|
|
2429
|
+
groupOverflowTriggerAriaLabel: P.texts.groupOverflowTriggerAriaLabel || N.groupOverflowTriggerAriaLabel,
|
|
2430
|
+
fileMenuLabel: P.texts.fileMenuLabel || N.fileMenuLabel,
|
|
2431
|
+
fileMenuOpenBackstageLabel: P.texts.fileMenuOpenBackstageLabel || N.fileMenuOpenBackstageLabel,
|
|
2432
|
+
backstageBackLabel: P.texts.backstageBackLabel || N.backstageBackLabel,
|
|
2433
|
+
backstageTitle: P.texts.backstageTitle || N.backstageTitle,
|
|
2434
|
+
backstageDescription: P.texts.backstageDescription || N.backstageDescription,
|
|
2435
|
+
keyTipsSequencePrefix: P.texts.keyTipsSequencePrefix || N.keyTipsSequencePrefix,
|
|
2436
|
+
keyTipsEmptySequence: P.texts.keyTipsEmptySequence || N.keyTipsEmptySequence,
|
|
2437
|
+
galleryPreviewFallback: P.texts.galleryPreviewFallback || N.galleryPreviewFallback
|
|
2438
|
+
})), Y = t(() => M(P.tooltipShowAfter, 1e3)), X = t(() => M(P.tooltipHideAfter, 0)), Z = t(() => I.minimized.value ? de : ce), Se = t(() => V.value.filter((e) => !K.value.has(e.id))), Ce = t(() => V.value.filter((e) => K.value.has(e.id))), we = t(() => {
|
|
2352
2439
|
if (!Ce.value.length) return 220;
|
|
2353
2440
|
let e = Ce.value.reduce((e, t) => {
|
|
2354
|
-
let n =
|
|
2441
|
+
let n = q.value[t.id] ?? De(t);
|
|
2355
2442
|
return Math.max(e, n);
|
|
2356
2443
|
}, 0), t = Math.ceil(e + 40);
|
|
2357
2444
|
return Math.max(220, Math.min(720, t));
|
|
@@ -2371,13 +2458,13 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
|
|
|
2371
2458
|
}]
|
|
2372
2459
|
};
|
|
2373
2460
|
}
|
|
2374
|
-
function
|
|
2461
|
+
function Ee(e) {
|
|
2375
2462
|
return e.priority ?? 100;
|
|
2376
2463
|
}
|
|
2377
|
-
function
|
|
2464
|
+
function De(e) {
|
|
2378
2465
|
return typeof e.width == "number" && Number.isFinite(e.width) && e.width > 0 ? e.width : 140;
|
|
2379
2466
|
}
|
|
2380
|
-
function
|
|
2467
|
+
function Oe(e) {
|
|
2381
2468
|
let t = {};
|
|
2382
2469
|
return e.querySelectorAll(".ml-ribbon-group").forEach((e) => {
|
|
2383
2470
|
let n = e.dataset.groupId;
|
|
@@ -2386,67 +2473,67 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
|
|
|
2386
2473
|
r > 0 && (t[n] = r);
|
|
2387
2474
|
}), t;
|
|
2388
2475
|
}
|
|
2389
|
-
function
|
|
2390
|
-
let e =
|
|
2391
|
-
let n =
|
|
2392
|
-
return e + Math.max(n,
|
|
2476
|
+
function Ae() {
|
|
2477
|
+
let e = V.value.reduce((e, t) => {
|
|
2478
|
+
let n = q.value[t.id] ?? De(t);
|
|
2479
|
+
return e + Math.max(n, De(t));
|
|
2393
2480
|
}, 0);
|
|
2394
2481
|
return Math.max(220, e);
|
|
2395
2482
|
}
|
|
2396
|
-
function
|
|
2483
|
+
function je(e) {
|
|
2397
2484
|
let t = Number.parseFloat(getComputedStyle(e).getPropertyValue("--ml-rb-overflow-slot-width"));
|
|
2398
|
-
return Number.isFinite(t) && t > 0 ? t :
|
|
2485
|
+
return Number.isFinite(t) && t > 0 ? t : Dn;
|
|
2399
2486
|
}
|
|
2400
|
-
function
|
|
2401
|
-
if (
|
|
2402
|
-
|
|
2487
|
+
function Me() {
|
|
2488
|
+
if (I.layout.value !== "classic") {
|
|
2489
|
+
K.value = /* @__PURE__ */ new Set();
|
|
2403
2490
|
return;
|
|
2404
2491
|
}
|
|
2405
|
-
let e =
|
|
2492
|
+
let e = I.minimized.value ? fe.value : ue.value;
|
|
2406
2493
|
if (!e) return;
|
|
2407
|
-
let t =
|
|
2494
|
+
let t = V.value;
|
|
2408
2495
|
if (!t.length) {
|
|
2409
|
-
|
|
2496
|
+
K.value = /* @__PURE__ */ new Set();
|
|
2410
2497
|
return;
|
|
2411
2498
|
}
|
|
2412
|
-
let n = Math.round(e.getBoundingClientRect().width), r =
|
|
2413
|
-
|
|
2414
|
-
...
|
|
2499
|
+
let n = Math.round(e.getBoundingClientRect().width), r = je(e), i = Oe(e);
|
|
2500
|
+
q.value = {
|
|
2501
|
+
...q.value,
|
|
2415
2502
|
...i
|
|
2416
2503
|
};
|
|
2417
2504
|
let a = t.filter((e) => e.enableGroupOverflow === !1), o = t.filter((e) => e.enableGroupOverflow !== !1).map((e, t) => ({
|
|
2418
2505
|
group: e,
|
|
2419
2506
|
index: t
|
|
2420
2507
|
})), s = /* @__PURE__ */ new Set(), c = [...o].sort((e, t) => {
|
|
2421
|
-
let n =
|
|
2508
|
+
let n = Ee(t.group) - Ee(e.group);
|
|
2422
2509
|
return n === 0 ? t.index - e.index : n;
|
|
2423
|
-
}), l = (e) => i[e.id] ??
|
|
2510
|
+
}), l = (e) => i[e.id] ?? De(e), u = a.reduce((e, t) => e + l(t), 0), d = (e) => o.filter(({ group: t }) => !e.has(t.id)).reduce((e, { group: t }) => e + l(t), 0), f = (e) => u + d(e) + (e.size > 0 ? r : 0), p = 0;
|
|
2424
2511
|
for (; f(s) > n && p < c.length;) {
|
|
2425
2512
|
let e = c[p].group;
|
|
2426
2513
|
s.add(e.id), p += 1;
|
|
2427
2514
|
}
|
|
2428
|
-
|
|
2515
|
+
K.value = s;
|
|
2429
2516
|
}
|
|
2430
2517
|
function Pe() {
|
|
2431
2518
|
p(() => {
|
|
2432
|
-
if (
|
|
2433
|
-
|
|
2519
|
+
if (I.layout.value !== "classic" || I.minimized.value) {
|
|
2520
|
+
Me();
|
|
2434
2521
|
return;
|
|
2435
2522
|
}
|
|
2436
|
-
if (
|
|
2437
|
-
|
|
2523
|
+
if (K.value.size === 0) {
|
|
2524
|
+
Me();
|
|
2438
2525
|
return;
|
|
2439
2526
|
}
|
|
2440
|
-
|
|
2441
|
-
|
|
2527
|
+
K.value = /* @__PURE__ */ new Set(), p(() => {
|
|
2528
|
+
Me();
|
|
2442
2529
|
});
|
|
2443
2530
|
});
|
|
2444
2531
|
}
|
|
2445
2532
|
function Fe() {
|
|
2446
|
-
let e =
|
|
2533
|
+
let e = se.value, t = le.value;
|
|
2447
2534
|
if (!e || !t) return;
|
|
2448
2535
|
let n = e.getBoundingClientRect(), r = t.getBoundingClientRect(), i = Number.parseFloat(getComputedStyle(e).borderLeftWidth || "0") || 0, a = Math.max(n.width - i * 2, e.clientWidth, r.width, t.clientWidth);
|
|
2449
|
-
|
|
2536
|
+
me.value = Math.round(a > 0 ? a : I.layout.value === "classic" ? Ae() : Math.max(360, V.value.length * 120)), G.value = {
|
|
2450
2537
|
left: `${Math.round(n.left - r.left + i)}px`,
|
|
2451
2538
|
top: "0px",
|
|
2452
2539
|
width: "1px",
|
|
@@ -2454,41 +2541,41 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
|
|
|
2454
2541
|
};
|
|
2455
2542
|
}
|
|
2456
2543
|
function Ie() {
|
|
2457
|
-
|
|
2544
|
+
U.value = !1;
|
|
2458
2545
|
}
|
|
2459
2546
|
function Le(e) {
|
|
2460
|
-
return
|
|
2547
|
+
return I.disabled.value ? !0 : !e || z.value.size === 0 ? !1 : !z.value.has(e.id);
|
|
2461
2548
|
}
|
|
2462
2549
|
function Re(e) {
|
|
2463
|
-
if (
|
|
2464
|
-
let t =
|
|
2465
|
-
if (
|
|
2550
|
+
if (I.disabled.value) return;
|
|
2551
|
+
let t = I.activeTab.value === e.id;
|
|
2552
|
+
if (I.activeTab.value = e.id, !I.minimized.value) {
|
|
2466
2553
|
Ie();
|
|
2467
2554
|
return;
|
|
2468
2555
|
}
|
|
2469
|
-
Fe(),
|
|
2556
|
+
Fe(), U.value = t ? !U.value : !0;
|
|
2470
2557
|
}
|
|
2471
2558
|
function ze() {
|
|
2472
|
-
|
|
2559
|
+
I.disabled.value || I.api.toggleSimplified();
|
|
2473
2560
|
}
|
|
2474
2561
|
function Be() {
|
|
2475
|
-
|
|
2562
|
+
I.disabled.value || (I.minimized.value || Ie(), I.minimized.value = !I.minimized.value);
|
|
2476
2563
|
}
|
|
2477
2564
|
function Ve(e) {
|
|
2478
|
-
|
|
2565
|
+
I.disabled.value || (Ie(), F("fileMenuSelect", e));
|
|
2479
2566
|
}
|
|
2480
2567
|
function He() {
|
|
2481
|
-
|
|
2568
|
+
I.disabled.value || (Ie(), I.backdropOpen.value = !0);
|
|
2482
2569
|
}
|
|
2483
2570
|
function Ue() {
|
|
2484
|
-
|
|
2571
|
+
I.disabled.value || (I.backdropOpen.value = !1);
|
|
2485
2572
|
}
|
|
2486
2573
|
function We(e, t) {
|
|
2487
|
-
|
|
2488
|
-
tabId:
|
|
2574
|
+
B.value || (F("itemClick", {
|
|
2575
|
+
tabId: I.activeTab.value,
|
|
2489
2576
|
groupId: e,
|
|
2490
2577
|
itemId: t
|
|
2491
|
-
}),
|
|
2578
|
+
}), I.minimized.value && Ie());
|
|
2492
2579
|
}
|
|
2493
2580
|
function Ge(e) {
|
|
2494
2581
|
if (!(e instanceof HTMLElement)) return !1;
|
|
@@ -2497,13 +2584,13 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
|
|
|
2497
2584
|
return t === "INPUT" || t === "TEXTAREA" || t === "SELECT";
|
|
2498
2585
|
}
|
|
2499
2586
|
function Ke() {
|
|
2500
|
-
if (
|
|
2501
|
-
|
|
2587
|
+
if (B.value) {
|
|
2588
|
+
I.keyTips.value = [];
|
|
2502
2589
|
return;
|
|
2503
2590
|
}
|
|
2504
|
-
let e =
|
|
2591
|
+
let e = R.value;
|
|
2505
2592
|
if (!e?.groups?.length) {
|
|
2506
|
-
|
|
2593
|
+
I.keyTips.value = [];
|
|
2507
2594
|
return;
|
|
2508
2595
|
}
|
|
2509
2596
|
let t = e.groups.filter((e) => e.visible !== !1).flatMap((t) => (t.collections ?? []).flatMap((n) => n.items.filter((e) => e.keyTip && e.disabled !== !0).map((n) => {
|
|
@@ -2516,87 +2603,87 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
|
|
|
2516
2603
|
scope: "item"
|
|
2517
2604
|
} : null;
|
|
2518
2605
|
}).filter((e) => !!e)));
|
|
2519
|
-
|
|
2606
|
+
I.keyTips.value = t;
|
|
2520
2607
|
}
|
|
2521
2608
|
function qe(e) {
|
|
2522
|
-
if (
|
|
2523
|
-
let t =
|
|
2609
|
+
if (I.disabled.value) return;
|
|
2610
|
+
let t = R.value;
|
|
2524
2611
|
if (t?.groups?.length) {
|
|
2525
2612
|
for (let n of t.groups) if (n.visible !== !1) for (let t of n.collections ?? []) {
|
|
2526
2613
|
let r = t.items.find((t) => t.id === e.targetId && t.disabled !== !0);
|
|
2527
2614
|
if (r) {
|
|
2528
|
-
We(n.id, r.id),
|
|
2615
|
+
We(n.id, r.id), I.keyTipsOpen.value = !1, I.keyTipsSequence.value = "";
|
|
2529
2616
|
return;
|
|
2530
2617
|
}
|
|
2531
2618
|
}
|
|
2532
2619
|
}
|
|
2533
2620
|
}
|
|
2534
2621
|
function Je() {
|
|
2535
|
-
|
|
2622
|
+
I.keyTipsSequence.value = "";
|
|
2536
2623
|
}
|
|
2537
2624
|
function Ye(e) {
|
|
2538
|
-
if (!
|
|
2625
|
+
if (!I.disabled.value && !Ge(e.target)) {
|
|
2539
2626
|
if (e.altKey && !e.ctrlKey && !e.metaKey && e.key === "Alt") {
|
|
2540
|
-
e.preventDefault(),
|
|
2627
|
+
e.preventDefault(), I.keyTipsOpen.value = !I.keyTipsOpen.value, I.keyTipsOpen.value || Je();
|
|
2541
2628
|
return;
|
|
2542
2629
|
}
|
|
2543
|
-
if (
|
|
2630
|
+
if (I.keyTipsOpen.value && !(e.altKey || e.ctrlKey || e.metaKey)) {
|
|
2544
2631
|
if (e.key === "Escape") {
|
|
2545
|
-
e.preventDefault(),
|
|
2632
|
+
e.preventDefault(), I.keyTipsOpen.value = !1, Je();
|
|
2546
2633
|
return;
|
|
2547
2634
|
}
|
|
2548
2635
|
if (e.key === "Backspace") {
|
|
2549
|
-
e.preventDefault(),
|
|
2636
|
+
e.preventDefault(), I.keyTipsSequence.value = I.keyTipsSequence.value.slice(0, -1);
|
|
2550
2637
|
return;
|
|
2551
2638
|
}
|
|
2552
2639
|
if (/^[a-z0-9]$/i.test(e.key)) {
|
|
2553
2640
|
e.preventDefault();
|
|
2554
|
-
let t = `${
|
|
2555
|
-
|
|
2556
|
-
let n = t.toLowerCase(), r =
|
|
2641
|
+
let t = `${I.keyTipsSequence.value}${e.key.toUpperCase()}`;
|
|
2642
|
+
I.keyTipsSequence.value = t;
|
|
2643
|
+
let n = t.toLowerCase(), r = I.keyTips.value.find((e) => e.key.toLowerCase() === n);
|
|
2557
2644
|
if (r) {
|
|
2558
2645
|
qe(r);
|
|
2559
2646
|
return;
|
|
2560
2647
|
}
|
|
2561
|
-
|
|
2648
|
+
I.keyTips.value.some((e) => e.key.toLowerCase().startsWith(n)) || Je();
|
|
2562
2649
|
}
|
|
2563
2650
|
}
|
|
2564
2651
|
}
|
|
2565
2652
|
}
|
|
2566
2653
|
function Xe(e) {
|
|
2567
|
-
return e.icon && typeof e.icon != "string" ? e.icon : e.groupIconCss ?
|
|
2654
|
+
return e.icon && typeof e.icon != "string" ? e.icon : e.groupIconCss ? W : null;
|
|
2568
2655
|
}
|
|
2569
2656
|
function Ze(e) {
|
|
2570
|
-
|
|
2657
|
+
U.value = e;
|
|
2571
2658
|
}
|
|
2572
|
-
|
|
2573
|
-
|
|
2574
|
-
() =>
|
|
2575
|
-
() =>
|
|
2659
|
+
O([
|
|
2660
|
+
V,
|
|
2661
|
+
() => I.layout.value,
|
|
2662
|
+
() => I.minimized.value
|
|
2576
2663
|
], () => {
|
|
2577
2664
|
Pe();
|
|
2578
|
-
}),
|
|
2579
|
-
|
|
2580
|
-
() =>
|
|
2581
|
-
() =>
|
|
2665
|
+
}), O([
|
|
2666
|
+
R,
|
|
2667
|
+
() => I.tabs.value,
|
|
2668
|
+
() => I.disabled.value
|
|
2582
2669
|
], () => {
|
|
2583
2670
|
Ke(), Je();
|
|
2584
2671
|
}, {
|
|
2585
2672
|
deep: !0,
|
|
2586
2673
|
immediate: !0
|
|
2587
|
-
}),
|
|
2674
|
+
}), O(() => I.keyTipsOpen.value, (e) => {
|
|
2588
2675
|
e || Je();
|
|
2589
|
-
}),
|
|
2590
|
-
e && (
|
|
2591
|
-
}),
|
|
2592
|
-
() =>
|
|
2593
|
-
() =>
|
|
2594
|
-
|
|
2676
|
+
}), O(() => I.disabled.value, (e) => {
|
|
2677
|
+
e && (I.overflowOpen.value = !1, I.backdropOpen.value = !1, I.keyTipsOpen.value = !1, Ie(), Je());
|
|
2678
|
+
}), O([
|
|
2679
|
+
() => I.minimized.value,
|
|
2680
|
+
() => I.layout.value,
|
|
2681
|
+
R
|
|
2595
2682
|
], ([e, , t]) => {
|
|
2596
2683
|
(!e || !t) && Ie();
|
|
2597
|
-
}),
|
|
2684
|
+
}), O([ue, fe], ([e, t], [n, r]) => {
|
|
2598
2685
|
n && $ && $.unobserve(n), r && $ && $.unobserve(r), e && $ && $.observe(e), t && $ && $.observe(t), (e || t) && Pe();
|
|
2599
|
-
}, { flush: "post" }),
|
|
2686
|
+
}, { flush: "post" }), O(U, (e) => {
|
|
2600
2687
|
e && p(() => {
|
|
2601
2688
|
Fe(), Pe();
|
|
2602
2689
|
});
|
|
@@ -2605,42 +2692,42 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
|
|
|
2605
2692
|
g(() => {
|
|
2606
2693
|
window.addEventListener("keydown", Ye), window.addEventListener("resize", Qe), typeof ResizeObserver < "u" && ($ = new ResizeObserver(() => {
|
|
2607
2694
|
Fe(), Pe();
|
|
2608
|
-
}),
|
|
2695
|
+
}), ue.value && $.observe(ue.value), fe.value && $.observe(fe.value)), Fe(), Pe();
|
|
2609
2696
|
}), _(() => {
|
|
2610
2697
|
window.removeEventListener("keydown", Ye), window.removeEventListener("resize", Qe), $?.disconnect();
|
|
2611
2698
|
});
|
|
2612
2699
|
function Qe() {
|
|
2613
|
-
|
|
2700
|
+
U.value && Fe();
|
|
2614
2701
|
}
|
|
2615
|
-
return l(
|
|
2616
|
-
default:
|
|
2702
|
+
return l(I.api), (t, l) => (v(), n(D(ne), { size: P.size }, {
|
|
2703
|
+
default: k(() => [(v(), i("section", {
|
|
2617
2704
|
ref_key: "ribbonRootRef",
|
|
2618
|
-
ref:
|
|
2619
|
-
key:
|
|
2705
|
+
ref: se,
|
|
2706
|
+
key: D(I).disabled.value ? "ml-ribbon-disabled" : "ml-ribbon-enabled",
|
|
2620
2707
|
class: m(["ml-ribbon", [
|
|
2621
|
-
`ml-ribbon--${
|
|
2622
|
-
`ml-ribbon--size-${
|
|
2708
|
+
`ml-ribbon--${D(I).layout.value}`,
|
|
2709
|
+
`ml-ribbon--size-${_e.value}`,
|
|
2623
2710
|
{
|
|
2624
|
-
"ml-ribbon--disabled":
|
|
2625
|
-
"ml-ribbon--minimized":
|
|
2626
|
-
"ml-ribbon--keytips-open":
|
|
2711
|
+
"ml-ribbon--disabled": D(I).disabled.value,
|
|
2712
|
+
"ml-ribbon--minimized": D(I).minimized.value,
|
|
2713
|
+
"ml-ribbon--keytips-open": D(I).keyTipsOpen.value
|
|
2627
2714
|
}
|
|
2628
2715
|
]]),
|
|
2629
|
-
inert:
|
|
2630
|
-
"aria-disabled":
|
|
2716
|
+
inert: D(I).disabled.value,
|
|
2717
|
+
"aria-disabled": D(I).disabled.value
|
|
2631
2718
|
}, [
|
|
2632
2719
|
a("header", {
|
|
2633
2720
|
ref_key: "ribbonHeaderRef",
|
|
2634
|
-
ref:
|
|
2721
|
+
ref: le,
|
|
2635
2722
|
class: "ml-ribbon__header"
|
|
2636
2723
|
}, [
|
|
2637
|
-
a("div",
|
|
2638
|
-
s.showFileMenu ? (v(), n(
|
|
2724
|
+
a("div", on, [
|
|
2725
|
+
s.showFileMenu ? (v(), n(Ne, {
|
|
2639
2726
|
key: 0,
|
|
2640
2727
|
items: s.fileMenuItems,
|
|
2641
|
-
disabled:
|
|
2642
|
-
label:
|
|
2643
|
-
"open-backstage-label":
|
|
2728
|
+
disabled: D(I).disabled.value,
|
|
2729
|
+
label: J.value.fileMenuLabel,
|
|
2730
|
+
"open-backstage-label": J.value.fileMenuOpenBackstageLabel,
|
|
2644
2731
|
"show-open-backstage": s.showOpenBackstage,
|
|
2645
2732
|
onSelect: Ve,
|
|
2646
2733
|
onOpenBackstage: He
|
|
@@ -2651,30 +2738,30 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
|
|
|
2651
2738
|
"open-backstage-label",
|
|
2652
2739
|
"show-open-backstage"
|
|
2653
2740
|
])) : r("", !0),
|
|
2654
|
-
c(
|
|
2655
|
-
tabs:
|
|
2656
|
-
"active-tab":
|
|
2657
|
-
disabled:
|
|
2741
|
+
c(ke, {
|
|
2742
|
+
tabs: D(re),
|
|
2743
|
+
"active-tab": D(I).activeTab.value,
|
|
2744
|
+
disabled: D(I).disabled.value,
|
|
2658
2745
|
onSelect: Re
|
|
2659
2746
|
}, null, 8, [
|
|
2660
2747
|
"tabs",
|
|
2661
2748
|
"active-tab",
|
|
2662
2749
|
"disabled"
|
|
2663
2750
|
]),
|
|
2664
|
-
|
|
2751
|
+
P.hideMinimizeButton ? r("", !0) : (v(), n(D(H), {
|
|
2665
2752
|
key: 1,
|
|
2666
|
-
content:
|
|
2667
|
-
"show-after":
|
|
2668
|
-
"hide-after":
|
|
2753
|
+
content: J.value.minimizeTooltip,
|
|
2754
|
+
"show-after": Y.value,
|
|
2755
|
+
"hide-after": X.value
|
|
2669
2756
|
}, {
|
|
2670
|
-
default:
|
|
2757
|
+
default: k(() => [c(D(te), {
|
|
2671
2758
|
class: m([
|
|
2672
2759
|
"ml-ribbon__control",
|
|
2673
2760
|
"ml-ribbon__control--minimize",
|
|
2674
|
-
|
|
2761
|
+
D(I).minimized.value ? "ml-ribbon__control--minimize-up" : "ml-ribbon__control--minimize-down"
|
|
2675
2762
|
]),
|
|
2676
|
-
icon:
|
|
2677
|
-
disabled:
|
|
2763
|
+
icon: Z.value,
|
|
2764
|
+
disabled: D(I).disabled.value,
|
|
2678
2765
|
onClick: Be
|
|
2679
2766
|
}, null, 8, [
|
|
2680
2767
|
"class",
|
|
@@ -2688,18 +2775,18 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
|
|
|
2688
2775
|
"hide-after"
|
|
2689
2776
|
]))
|
|
2690
2777
|
]),
|
|
2691
|
-
a("div",
|
|
2692
|
-
|
|
2778
|
+
a("div", sn, [
|
|
2779
|
+
P.hideLayoutSwitcher ? r("", !0) : (v(), n(D(H), {
|
|
2693
2780
|
key: 0,
|
|
2694
|
-
content:
|
|
2695
|
-
"show-after":
|
|
2696
|
-
"hide-after":
|
|
2781
|
+
content: J.value.layoutSwitcherTooltip,
|
|
2782
|
+
"show-after": Y.value,
|
|
2783
|
+
"hide-after": X.value
|
|
2697
2784
|
}, {
|
|
2698
|
-
default:
|
|
2785
|
+
default: k(() => [c(D(te), {
|
|
2699
2786
|
circle: "",
|
|
2700
2787
|
class: "ml-ribbon__control ml-ribbon__control--layout",
|
|
2701
|
-
icon:
|
|
2702
|
-
disabled:
|
|
2788
|
+
icon: D(pe),
|
|
2789
|
+
disabled: D(I).disabled.value,
|
|
2703
2790
|
onClick: ze
|
|
2704
2791
|
}, null, 8, ["icon", "disabled"])]),
|
|
2705
2792
|
_: 1
|
|
@@ -2708,51 +2795,51 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
|
|
|
2708
2795
|
"show-after",
|
|
2709
2796
|
"hide-after"
|
|
2710
2797
|
])),
|
|
2711
|
-
|
|
2798
|
+
P.hideKeyTipsToggle ? r("", !0) : (v(), n(D(ae), {
|
|
2712
2799
|
key: 1,
|
|
2713
2800
|
"inline-prompt": "",
|
|
2714
2801
|
class: "ml-ribbon__control ml-ribbon__control--keytips",
|
|
2715
|
-
"active-text":
|
|
2716
|
-
"inactive-text":
|
|
2717
|
-
"model-value":
|
|
2718
|
-
disabled:
|
|
2719
|
-
onChange: l[0] ||= (e) =>
|
|
2802
|
+
"active-text": J.value.keyTipsToggleText,
|
|
2803
|
+
"inactive-text": J.value.keyTipsToggleText,
|
|
2804
|
+
"model-value": D(I).keyTipsOpen.value,
|
|
2805
|
+
disabled: D(I).disabled.value,
|
|
2806
|
+
onChange: l[0] ||= (e) => D(I).keyTipsOpen.value = !D(I).keyTipsOpen.value
|
|
2720
2807
|
}, null, 8, [
|
|
2721
2808
|
"active-text",
|
|
2722
2809
|
"inactive-text",
|
|
2723
2810
|
"model-value",
|
|
2724
2811
|
"disabled"
|
|
2725
2812
|
])),
|
|
2726
|
-
t.$slots["tabs-extra"] ? (v(), i("div",
|
|
2727
|
-
activeTab:
|
|
2728
|
-
layout:
|
|
2729
|
-
minimized:
|
|
2730
|
-
disabled:
|
|
2813
|
+
t.$slots["tabs-extra"] ? (v(), i("div", cn, [S(t.$slots, "tabs-extra", {
|
|
2814
|
+
activeTab: D(I).activeTab.value,
|
|
2815
|
+
layout: D(I).layout.value,
|
|
2816
|
+
minimized: D(I).minimized.value,
|
|
2817
|
+
disabled: D(I).disabled.value
|
|
2731
2818
|
})])) : r("", !0)
|
|
2732
2819
|
]),
|
|
2733
|
-
|
|
2820
|
+
R.value ? (v(), n(D(ie), {
|
|
2734
2821
|
key: 0,
|
|
2735
2822
|
placement: "bottom-start",
|
|
2736
|
-
visible:
|
|
2737
|
-
width:
|
|
2738
|
-
disabled:
|
|
2823
|
+
visible: U.value,
|
|
2824
|
+
width: me.value || void 0,
|
|
2825
|
+
disabled: D(I).disabled.value || !D(I).minimized.value,
|
|
2739
2826
|
"show-arrow": !1,
|
|
2740
2827
|
offset: 0,
|
|
2741
2828
|
"popper-class": be.value,
|
|
2742
2829
|
"onUpdate:visible": Ze
|
|
2743
2830
|
}, {
|
|
2744
|
-
reference:
|
|
2831
|
+
reference: k(() => [a("span", {
|
|
2745
2832
|
"aria-hidden": "true",
|
|
2746
2833
|
class: "ml-ribbon__minimized-anchor",
|
|
2747
|
-
style: h(
|
|
2834
|
+
style: h(G.value)
|
|
2748
2835
|
}, null, 4)]),
|
|
2749
|
-
default:
|
|
2836
|
+
default: k(() => [D(I).layout.value === "classic" ? (v(), i("main", {
|
|
2750
2837
|
key: 0,
|
|
2751
2838
|
ref_key: "minimizedClassicPanelRef",
|
|
2752
|
-
ref:
|
|
2839
|
+
ref: fe,
|
|
2753
2840
|
class: "ml-ribbon__panel ml-ribbon__panel--floating",
|
|
2754
|
-
"data-active-tab":
|
|
2755
|
-
}, [(v(!0), i(e, null, x(Se.value, (e) => (v(), n(
|
|
2841
|
+
"data-active-tab": R.value.id
|
|
2842
|
+
}, [(v(!0), i(e, null, x(Se.value, (e) => (v(), n(rn, {
|
|
2756
2843
|
id: e.id,
|
|
2757
2844
|
key: e.id,
|
|
2758
2845
|
"data-group-id": e.id,
|
|
@@ -2765,15 +2852,15 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
|
|
|
2765
2852
|
launcher: e.launcher,
|
|
2766
2853
|
"show-launcher-icon": e.showLauncherIcon,
|
|
2767
2854
|
"group-model": e,
|
|
2768
|
-
"overflow-trigger-aria-label":
|
|
2769
|
-
"gallery-preview-fallback":
|
|
2770
|
-
disabled:
|
|
2855
|
+
"overflow-trigger-aria-label": J.value.groupOverflowTriggerAriaLabel,
|
|
2856
|
+
"gallery-preview-fallback": J.value.galleryPreviewFallback,
|
|
2857
|
+
disabled: B.value,
|
|
2771
2858
|
onItemClick: l[2] ||= (e) => We(e.groupId, e.itemId)
|
|
2772
2859
|
}, {
|
|
2773
|
-
default:
|
|
2860
|
+
default: k(() => [c(Jt, {
|
|
2774
2861
|
group: e,
|
|
2775
|
-
"gallery-preview-fallback":
|
|
2776
|
-
disabled:
|
|
2862
|
+
"gallery-preview-fallback": J.value.galleryPreviewFallback,
|
|
2863
|
+
disabled: B.value,
|
|
2777
2864
|
onItemClick: l[1] ||= (e) => We(e.groupId, e.itemId)
|
|
2778
2865
|
}, null, 8, [
|
|
2779
2866
|
"group",
|
|
@@ -2796,29 +2883,29 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
|
|
|
2796
2883
|
"overflow-trigger-aria-label",
|
|
2797
2884
|
"gallery-preview-fallback",
|
|
2798
2885
|
"disabled"
|
|
2799
|
-
]))), 128)), Ce.value.length ? (v(), i("section",
|
|
2886
|
+
]))), 128)), Ce.value.length ? (v(), i("section", un, [a("div", dn, [c(D(ie), {
|
|
2800
2887
|
trigger: "click",
|
|
2801
2888
|
placement: "bottom-end",
|
|
2802
2889
|
width: we.value,
|
|
2803
|
-
disabled:
|
|
2890
|
+
disabled: B.value,
|
|
2804
2891
|
"show-arrow": !1,
|
|
2805
2892
|
"popper-class": ye.value,
|
|
2806
|
-
onShow: l[4] ||= (e) =>
|
|
2807
|
-
onHide: l[5] ||= (e) =>
|
|
2893
|
+
onShow: l[4] ||= (e) => D(I).overflowOpen.value = !0,
|
|
2894
|
+
onHide: l[5] ||= (e) => D(I).overflowOpen.value = !1
|
|
2808
2895
|
}, {
|
|
2809
|
-
reference:
|
|
2896
|
+
reference: k(() => [a("button", {
|
|
2810
2897
|
type: "button",
|
|
2811
2898
|
class: "ml-ribbon-overflow-trigger",
|
|
2812
|
-
"aria-label":
|
|
2813
|
-
disabled:
|
|
2814
|
-
}, [...l[13] ||= [a("span", { class: "ml-ribbon-overflow-trigger__dots" }, "...", -1)]], 8,
|
|
2815
|
-
default:
|
|
2899
|
+
"aria-label": J.value.overflowTriggerAriaLabel,
|
|
2900
|
+
disabled: B.value
|
|
2901
|
+
}, [...l[13] ||= [a("span", { class: "ml-ribbon-overflow-trigger__dots" }, "...", -1)]], 8, fn)]),
|
|
2902
|
+
default: k(() => [a("div", pn, [(v(!0), i(e, null, x(Ce.value, (e) => (v(), i("section", {
|
|
2816
2903
|
key: e.id,
|
|
2817
2904
|
class: "ml-ribbon-overflow-group"
|
|
2818
|
-
}, [a("header",
|
|
2905
|
+
}, [a("header", mn, T(e.title), 1), c(Jt, {
|
|
2819
2906
|
group: e,
|
|
2820
|
-
"gallery-preview-fallback":
|
|
2821
|
-
disabled:
|
|
2907
|
+
"gallery-preview-fallback": J.value.galleryPreviewFallback,
|
|
2908
|
+
disabled: B.value,
|
|
2822
2909
|
onItemClick: l[3] ||= (e) => We(e.groupId, e.itemId)
|
|
2823
2910
|
}, null, 8, [
|
|
2824
2911
|
"group",
|
|
@@ -2830,34 +2917,34 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
|
|
|
2830
2917
|
"width",
|
|
2831
2918
|
"disabled",
|
|
2832
2919
|
"popper-class"
|
|
2833
|
-
])]), l[14] ||= a("footer", { class: "ml-ribbon-group__footer ml-ribbon-group__footer--overflow" }, null, -1)])) : r("", !0)], 8,
|
|
2920
|
+
])]), l[14] ||= a("footer", { class: "ml-ribbon-group__footer ml-ribbon-group__footer--overflow" }, null, -1)])) : r("", !0)], 8, ln)) : (v(), i("main", {
|
|
2834
2921
|
key: 1,
|
|
2835
2922
|
class: "ml-ribbon__panel ml-ribbon__panel--simplified ml-ribbon__panel--floating",
|
|
2836
|
-
"data-active-tab":
|
|
2837
|
-
}, [(v(!0), i(e, null, x(
|
|
2923
|
+
"data-active-tab": R.value.id
|
|
2924
|
+
}, [(v(!0), i(e, null, x(V.value, (e) => (v(), n(D(ie), {
|
|
2838
2925
|
key: e.id,
|
|
2839
2926
|
trigger: "click",
|
|
2840
2927
|
placement: "bottom-start",
|
|
2841
2928
|
width: 340,
|
|
2842
|
-
disabled:
|
|
2929
|
+
disabled: B.value,
|
|
2843
2930
|
"show-arrow": !1,
|
|
2844
2931
|
"popper-class": ve.value
|
|
2845
2932
|
}, {
|
|
2846
|
-
reference:
|
|
2933
|
+
reference: k(() => [a("button", {
|
|
2847
2934
|
class: "ml-ribbon-simplified-group",
|
|
2848
2935
|
type: "button",
|
|
2849
|
-
disabled:
|
|
2850
|
-
}, [Xe(e) ? (v(), n(
|
|
2936
|
+
disabled: B.value
|
|
2937
|
+
}, [Xe(e) ? (v(), n(D(L), {
|
|
2851
2938
|
key: 0,
|
|
2852
2939
|
class: "ml-ribbon-simplified-group__icon"
|
|
2853
2940
|
}, {
|
|
2854
|
-
default:
|
|
2941
|
+
default: k(() => [(v(), n(w(Xe(e))))]),
|
|
2855
2942
|
_: 2
|
|
2856
|
-
}, 1024)) : r("", !0), a("span", null,
|
|
2857
|
-
default:
|
|
2943
|
+
}, 1024)) : r("", !0), a("span", null, T(e.title), 1)], 8, gn)]),
|
|
2944
|
+
default: k(() => [a("div", _n, [c(Jt, {
|
|
2858
2945
|
group: Te(e),
|
|
2859
|
-
"gallery-preview-fallback":
|
|
2860
|
-
disabled:
|
|
2946
|
+
"gallery-preview-fallback": J.value.galleryPreviewFallback,
|
|
2947
|
+
disabled: B.value,
|
|
2861
2948
|
onItemClick: l[6] ||= (e) => We(e.groupId, e.itemId)
|
|
2862
2949
|
}, null, 8, [
|
|
2863
2950
|
"group",
|
|
@@ -2865,7 +2952,7 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
|
|
|
2865
2952
|
"disabled"
|
|
2866
2953
|
])])]),
|
|
2867
2954
|
_: 2
|
|
2868
|
-
}, 1032, ["disabled", "popper-class"]))), 128))], 8,
|
|
2955
|
+
}, 1032, ["disabled", "popper-class"]))), 128))], 8, hn))]),
|
|
2869
2956
|
_: 1
|
|
2870
2957
|
}, 8, [
|
|
2871
2958
|
"visible",
|
|
@@ -2874,13 +2961,13 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
|
|
|
2874
2961
|
"popper-class"
|
|
2875
2962
|
])) : r("", !0)
|
|
2876
2963
|
], 512),
|
|
2877
|
-
!
|
|
2964
|
+
!D(I).minimized.value && R.value && D(I).layout.value === "classic" ? (v(), i("main", {
|
|
2878
2965
|
key: 0,
|
|
2879
2966
|
class: "ml-ribbon__panel",
|
|
2880
|
-
"data-active-tab":
|
|
2967
|
+
"data-active-tab": R.value.id,
|
|
2881
2968
|
ref_key: "classicPanelRef",
|
|
2882
|
-
ref:
|
|
2883
|
-
}, [(v(!0), i(e, null, x(Se.value, (e) => (v(), n(
|
|
2969
|
+
ref: ue
|
|
2970
|
+
}, [(v(!0), i(e, null, x(Se.value, (e) => (v(), n(rn, {
|
|
2884
2971
|
id: e.id,
|
|
2885
2972
|
key: e.id,
|
|
2886
2973
|
"data-group-id": e.id,
|
|
@@ -2893,15 +2980,15 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
|
|
|
2893
2980
|
launcher: e.launcher,
|
|
2894
2981
|
"show-launcher-icon": e.showLauncherIcon,
|
|
2895
2982
|
"group-model": e,
|
|
2896
|
-
"overflow-trigger-aria-label":
|
|
2897
|
-
"gallery-preview-fallback":
|
|
2898
|
-
disabled:
|
|
2983
|
+
"overflow-trigger-aria-label": J.value.groupOverflowTriggerAriaLabel,
|
|
2984
|
+
"gallery-preview-fallback": J.value.galleryPreviewFallback,
|
|
2985
|
+
disabled: B.value,
|
|
2899
2986
|
onItemClick: l[8] ||= (e) => We(e.groupId, e.itemId)
|
|
2900
2987
|
}, {
|
|
2901
|
-
default:
|
|
2988
|
+
default: k(() => [c(Jt, {
|
|
2902
2989
|
group: e,
|
|
2903
|
-
"gallery-preview-fallback":
|
|
2904
|
-
disabled:
|
|
2990
|
+
"gallery-preview-fallback": J.value.galleryPreviewFallback,
|
|
2991
|
+
disabled: B.value,
|
|
2905
2992
|
onItemClick: l[7] ||= (e) => We(e.groupId, e.itemId)
|
|
2906
2993
|
}, null, 8, [
|
|
2907
2994
|
"group",
|
|
@@ -2924,28 +3011,28 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
|
|
|
2924
3011
|
"overflow-trigger-aria-label",
|
|
2925
3012
|
"gallery-preview-fallback",
|
|
2926
3013
|
"disabled"
|
|
2927
|
-
]))), 128)), Ce.value.length ? (v(), i("section",
|
|
3014
|
+
]))), 128)), Ce.value.length ? (v(), i("section", yn, [a("div", bn, [c(D(ie), {
|
|
2928
3015
|
trigger: "click",
|
|
2929
3016
|
placement: "bottom-end",
|
|
2930
3017
|
width: we.value,
|
|
2931
|
-
disabled:
|
|
3018
|
+
disabled: B.value,
|
|
2932
3019
|
"popper-class": ye.value,
|
|
2933
|
-
onShow: l[10] ||= (e) =>
|
|
2934
|
-
onHide: l[11] ||= (e) =>
|
|
3020
|
+
onShow: l[10] ||= (e) => D(I).overflowOpen.value = !0,
|
|
3021
|
+
onHide: l[11] ||= (e) => D(I).overflowOpen.value = !1
|
|
2935
3022
|
}, {
|
|
2936
|
-
reference:
|
|
3023
|
+
reference: k(() => [a("button", {
|
|
2937
3024
|
type: "button",
|
|
2938
3025
|
class: "ml-ribbon-overflow-trigger",
|
|
2939
|
-
"aria-label":
|
|
2940
|
-
disabled:
|
|
2941
|
-
}, [...l[15] ||= [a("span", { class: "ml-ribbon-overflow-trigger__dots" }, "...", -1)]], 8,
|
|
2942
|
-
default:
|
|
3026
|
+
"aria-label": J.value.overflowTriggerAriaLabel,
|
|
3027
|
+
disabled: B.value
|
|
3028
|
+
}, [...l[15] ||= [a("span", { class: "ml-ribbon-overflow-trigger__dots" }, "...", -1)]], 8, xn)]),
|
|
3029
|
+
default: k(() => [a("div", Sn, [(v(!0), i(e, null, x(Ce.value, (e) => (v(), i("section", {
|
|
2943
3030
|
key: e.id,
|
|
2944
3031
|
class: "ml-ribbon-overflow-group"
|
|
2945
|
-
}, [a("header",
|
|
3032
|
+
}, [a("header", Cn, T(e.title), 1), c(Jt, {
|
|
2946
3033
|
group: e,
|
|
2947
|
-
"gallery-preview-fallback":
|
|
2948
|
-
disabled:
|
|
3034
|
+
"gallery-preview-fallback": J.value.galleryPreviewFallback,
|
|
3035
|
+
disabled: B.value,
|
|
2949
3036
|
onItemClick: l[9] ||= (e) => We(e.groupId, e.itemId)
|
|
2950
3037
|
}, null, 8, [
|
|
2951
3038
|
"group",
|
|
@@ -2957,34 +3044,34 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
|
|
|
2957
3044
|
"width",
|
|
2958
3045
|
"disabled",
|
|
2959
3046
|
"popper-class"
|
|
2960
|
-
])]), l[16] ||= a("footer", { class: "ml-ribbon-group__footer ml-ribbon-group__footer--overflow" }, null, -1)])) : r("", !0)], 8,
|
|
2961
|
-
!
|
|
3047
|
+
])]), l[16] ||= a("footer", { class: "ml-ribbon-group__footer ml-ribbon-group__footer--overflow" }, null, -1)])) : r("", !0)], 8, vn)) : r("", !0),
|
|
3048
|
+
!D(I).minimized.value && R.value && D(I).layout.value === "simplified" ? (v(), i("main", {
|
|
2962
3049
|
key: 1,
|
|
2963
3050
|
class: "ml-ribbon__panel ml-ribbon__panel--simplified",
|
|
2964
|
-
"data-active-tab":
|
|
2965
|
-
}, [(v(!0), i(e, null, x(
|
|
3051
|
+
"data-active-tab": R.value.id
|
|
3052
|
+
}, [(v(!0), i(e, null, x(V.value, (e) => (v(), n(D(ie), {
|
|
2966
3053
|
key: e.id,
|
|
2967
3054
|
trigger: "click",
|
|
2968
3055
|
placement: "bottom-start",
|
|
2969
3056
|
width: 340,
|
|
2970
|
-
disabled:
|
|
3057
|
+
disabled: B.value,
|
|
2971
3058
|
"popper-class": ve.value
|
|
2972
3059
|
}, {
|
|
2973
|
-
reference:
|
|
3060
|
+
reference: k(() => [a("button", {
|
|
2974
3061
|
class: "ml-ribbon-simplified-group",
|
|
2975
3062
|
type: "button",
|
|
2976
|
-
disabled:
|
|
2977
|
-
}, [Xe(e) ? (v(), n(
|
|
3063
|
+
disabled: B.value
|
|
3064
|
+
}, [Xe(e) ? (v(), n(D(L), {
|
|
2978
3065
|
key: 0,
|
|
2979
3066
|
class: "ml-ribbon-simplified-group__icon"
|
|
2980
3067
|
}, {
|
|
2981
|
-
default:
|
|
3068
|
+
default: k(() => [(v(), n(w(Xe(e))))]),
|
|
2982
3069
|
_: 2
|
|
2983
|
-
}, 1024)) : r("", !0), a("span", null,
|
|
2984
|
-
default:
|
|
3070
|
+
}, 1024)) : r("", !0), a("span", null, T(e.title), 1)], 8, Tn)]),
|
|
3071
|
+
default: k(() => [a("div", En, [c(Jt, {
|
|
2985
3072
|
group: Te(e),
|
|
2986
|
-
"gallery-preview-fallback":
|
|
2987
|
-
disabled:
|
|
3073
|
+
"gallery-preview-fallback": J.value.galleryPreviewFallback,
|
|
3074
|
+
disabled: B.value,
|
|
2988
3075
|
onItemClick: l[12] ||= (e) => We(e.groupId, e.itemId)
|
|
2989
3076
|
}, null, 8, [
|
|
2990
3077
|
"group",
|
|
@@ -2992,24 +3079,24 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
|
|
|
2992
3079
|
"disabled"
|
|
2993
3080
|
])])]),
|
|
2994
3081
|
_: 2
|
|
2995
|
-
}, 1032, ["disabled", "popper-class"]))), 128))], 8,
|
|
2996
|
-
c(
|
|
2997
|
-
open:
|
|
2998
|
-
size:
|
|
2999
|
-
"back-label":
|
|
3000
|
-
title:
|
|
3001
|
-
description:
|
|
3082
|
+
}, 1032, ["disabled", "popper-class"]))), 128))], 8, wn)) : r("", !0),
|
|
3083
|
+
c(Q, {
|
|
3084
|
+
open: D(I).backdropOpen.value,
|
|
3085
|
+
size: _e.value,
|
|
3086
|
+
"back-label": J.value.backstageBackLabel,
|
|
3087
|
+
title: J.value.backstageTitle,
|
|
3088
|
+
description: J.value.backstageDescription,
|
|
3002
3089
|
onClose: Ue
|
|
3003
3090
|
}, o({ _: 2 }, [t.$slots.backstage ? {
|
|
3004
3091
|
name: "default",
|
|
3005
|
-
fn:
|
|
3092
|
+
fn: k(() => [S(t.$slots, "backstage", {
|
|
3006
3093
|
close: Ue,
|
|
3007
|
-
open:
|
|
3008
|
-
size:
|
|
3009
|
-
backLabel:
|
|
3010
|
-
title:
|
|
3011
|
-
description:
|
|
3012
|
-
disabled:
|
|
3094
|
+
open: D(I).backdropOpen.value,
|
|
3095
|
+
size: _e.value,
|
|
3096
|
+
backLabel: J.value.backstageBackLabel,
|
|
3097
|
+
title: J.value.backstageTitle,
|
|
3098
|
+
description: J.value.backstageDescription,
|
|
3099
|
+
disabled: D(I).disabled.value
|
|
3013
3100
|
})]),
|
|
3014
3101
|
key: "0"
|
|
3015
3102
|
} : void 0]), 1032, [
|
|
@@ -3019,14 +3106,14 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
|
|
|
3019
3106
|
"title",
|
|
3020
3107
|
"description"
|
|
3021
3108
|
])
|
|
3022
|
-
], 10,
|
|
3109
|
+
], 10, an))]),
|
|
3023
3110
|
_: 3
|
|
3024
3111
|
}, 8, ["size"]));
|
|
3025
3112
|
}
|
|
3026
|
-
}),
|
|
3113
|
+
}), kn = {
|
|
3027
3114
|
class: "ml-ribbon-tab-definition",
|
|
3028
3115
|
hidden: ""
|
|
3029
|
-
},
|
|
3116
|
+
}, An = /* @__PURE__ */ l({
|
|
3030
3117
|
__name: "RibbonTab",
|
|
3031
3118
|
props: {
|
|
3032
3119
|
id: {},
|
|
@@ -3037,13 +3124,13 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
|
|
|
3037
3124
|
contextualTitle: {}
|
|
3038
3125
|
},
|
|
3039
3126
|
setup(e) {
|
|
3040
|
-
return (e, t) => (v(), i("div",
|
|
3127
|
+
return (e, t) => (v(), i("div", kn, [S(e.$slots, "default")]));
|
|
3041
3128
|
}
|
|
3042
|
-
}),
|
|
3129
|
+
}), jn = {
|
|
3043
3130
|
key: 0,
|
|
3044
3131
|
class: "ml-ribbon-keytips",
|
|
3045
3132
|
"aria-live": "polite"
|
|
3046
|
-
},
|
|
3133
|
+
}, Mn = { class: "ml-ribbon-keytips__hint" }, Nn = /* @__PURE__ */ l({
|
|
3047
3134
|
__name: "RibbonKeyTips",
|
|
3048
3135
|
props: {
|
|
3049
3136
|
open: { type: Boolean },
|
|
@@ -3076,13 +3163,13 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
|
|
|
3076
3163
|
}
|
|
3077
3164
|
}
|
|
3078
3165
|
}
|
|
3079
|
-
return g(() => window.addEventListener("keydown", S)), _(() => window.removeEventListener("keydown", S)),
|
|
3166
|
+
return g(() => window.addEventListener("keydown", S)), _(() => window.removeEventListener("keydown", S)), O(() => s.open, (e) => {
|
|
3080
3167
|
e || y();
|
|
3081
|
-
}), (t, o) => n.open ? (v(), i("div",
|
|
3168
|
+
}), (t, o) => n.open ? (v(), i("div", jn, [a("div", Mn, T(f.value), 1), (v(!0), i(e, null, x(u.value, (e) => (v(), i("span", {
|
|
3082
3169
|
key: e.id,
|
|
3083
3170
|
class: "ml-ribbon-keytip"
|
|
3084
|
-
},
|
|
3171
|
+
}, T(e.key), 1))), 128))])) : r("", !0);
|
|
3085
3172
|
}
|
|
3086
3173
|
});
|
|
3087
3174
|
//#endregion
|
|
3088
|
-
export {
|
|
3175
|
+
export { On as MlRibbon, Q as MlRibbonBackstage, Ie as MlRibbonButton, Be as MlRibbonButtonGroup, Pe as MlRibbonCollection, ke as MlRibbonContextualTabs, Ye as MlRibbonDropdown, Ne as MlRibbonFileMenu, jt as MlRibbonGallery, rn as MlRibbonGroup, Ft as MlRibbonInputNumber, qt as MlRibbonItemHost, Nn as MlRibbonKeyTips, Vt as MlRibbonSegmented, An as MlRibbonTab, we as MlRibbonTabs, Wt as MlRibbonTemplateItem, Ht as MlRibbonToggleButton };
|