@mlightcad/ribbon 0.0.8 → 0.0.9
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 +4 -1
- package/dist/components/Ribbon.vue.d.ts +2 -2
- package/dist/items/RibbonButtonGroup.vue.d.ts +20 -6
- package/dist/ml-ribbon.css +1 -1
- package/dist/ml-ribbon.es.js +762 -595
- package/dist/ml-ribbon.umd.js +1 -1
- package/package.json +1 -1
package/dist/ml-ribbon.es.js
CHANGED
|
@@ -1,59 +1,59 @@
|
|
|
1
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, resolveDynamicComponent as C, toDisplayString as w, toRaw as T, unref as E, watch as D, withCtx as O, withModifiers as k } from "vue";
|
|
2
|
-
import { ElButton as
|
|
3
|
-
import { ArrowDown as
|
|
2
|
+
import { ElButton as ee, ElButtonGroup as te, ElCheckbox as ne, ElColorPicker as re, ElConfigProvider as ie, ElDrawer as A, ElDropdown as j, ElDropdownItem as M, ElDropdownMenu as N, ElIcon as P, ElOption as F, ElPopover as I, ElSegmented as ae, ElSelect as L, ElSwitch as oe, ElTooltip as R, useGlobalConfig as se } from "element-plus";
|
|
3
|
+
import { ArrowDown as z, ArrowDownBold as B, ArrowUp as ce, ArrowUpBold as le, Grid as ue, Menu as de, Promotion as fe } from "@element-plus/icons-vue";
|
|
4
4
|
//#region src/ribbon/context.ts
|
|
5
|
-
var
|
|
5
|
+
var pe = Symbol("RibbonContext");
|
|
6
6
|
//#endregion
|
|
7
7
|
//#region src/ribbon/composables/useRibbonState.ts
|
|
8
|
-
function
|
|
8
|
+
function V(e) {
|
|
9
9
|
return e == null || typeof e == "string" ? e : typeof e == "object" || typeof e == "function" ? d(T(e)) : e;
|
|
10
10
|
}
|
|
11
|
-
function
|
|
11
|
+
function H(e) {
|
|
12
12
|
if (!e) return;
|
|
13
13
|
let t = { ...e };
|
|
14
|
-
return "icon" in t && (t.icon =
|
|
14
|
+
return "icon" in t && (t.icon = V(t.icon)), Array.isArray(t.options) && (t.options = t.options.map((e) => {
|
|
15
15
|
if (!e || typeof e != "object") return e;
|
|
16
16
|
let t = e;
|
|
17
17
|
return "icon" in t ? {
|
|
18
18
|
...t,
|
|
19
|
-
icon:
|
|
19
|
+
icon: V(t.icon)
|
|
20
20
|
} : t;
|
|
21
21
|
})), t;
|
|
22
22
|
}
|
|
23
|
-
function
|
|
23
|
+
function U(e) {
|
|
24
24
|
return {
|
|
25
25
|
...e,
|
|
26
|
-
icon:
|
|
27
|
-
props:
|
|
26
|
+
icon: V(e.icon),
|
|
27
|
+
props: H(e.props)
|
|
28
28
|
};
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function W(e) {
|
|
31
31
|
return {
|
|
32
32
|
...e,
|
|
33
|
-
icon:
|
|
34
|
-
footerMenuItems: e.footerMenuItems?.map(
|
|
33
|
+
icon: V(e.icon),
|
|
34
|
+
footerMenuItems: e.footerMenuItems?.map(U),
|
|
35
35
|
collections: e.collections?.map((e) => ({
|
|
36
36
|
...e,
|
|
37
|
-
items: e.items.map(
|
|
37
|
+
items: e.items.map(U)
|
|
38
38
|
}))
|
|
39
39
|
};
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function me(e) {
|
|
42
42
|
return {
|
|
43
43
|
...e,
|
|
44
|
-
groups: e.groups?.map(
|
|
44
|
+
groups: e.groups?.map(W)
|
|
45
45
|
};
|
|
46
46
|
}
|
|
47
|
-
function
|
|
48
|
-
return e.map(
|
|
47
|
+
function G(e) {
|
|
48
|
+
return e.map(me);
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function he(e) {
|
|
51
51
|
(!e.collections || e.collections.length === 0) && (e.collections = [{
|
|
52
52
|
id: `${e.id}-collection-1`,
|
|
53
53
|
items: []
|
|
54
54
|
}]);
|
|
55
55
|
}
|
|
56
|
-
function
|
|
56
|
+
function K(e, t, n, r, i) {
|
|
57
57
|
let a = e.find((e) => e.id === t);
|
|
58
58
|
if (!a?.groups) return;
|
|
59
59
|
let o = a.groups.find((e) => e.id === n);
|
|
@@ -61,10 +61,10 @@ function J(e, t, n, r, i) {
|
|
|
61
61
|
let s = o.collections.find((e) => e.id === r);
|
|
62
62
|
s && i(s.items);
|
|
63
63
|
}
|
|
64
|
-
function
|
|
65
|
-
let l = b(r), u = b(i), d = b(a), f = b(o), p = b(
|
|
64
|
+
function q(e, n, r, i, a, o, s, c) {
|
|
65
|
+
let l = b(r), u = b(i), d = b(a), f = b(o), p = b(G(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 = {
|
|
66
66
|
addTab(e) {
|
|
67
|
-
p.value.push(
|
|
67
|
+
p.value.push(me(e)), f.value ||= e.id;
|
|
68
68
|
},
|
|
69
69
|
removeTab(e) {
|
|
70
70
|
p.value = p.value.filter((t) => t.id !== e), f.value === e && (f.value = S.value[0]?.id ?? "");
|
|
@@ -82,7 +82,7 @@ function me(e, n, r, i, a, o, s, c) {
|
|
|
82
82
|
},
|
|
83
83
|
addGroup(e, t) {
|
|
84
84
|
let n = p.value.find((t) => t.id === e);
|
|
85
|
-
n && (n.groups ??= [],
|
|
85
|
+
n && (n.groups ??= [], he(t), n.groups.push(W(t)));
|
|
86
86
|
},
|
|
87
87
|
removeGroup(e, t) {
|
|
88
88
|
let n = p.value.find((t) => t.id === e);
|
|
@@ -97,16 +97,16 @@ function me(e, n, r, i, a, o, s, c) {
|
|
|
97
97
|
n && (n.visible = !1);
|
|
98
98
|
},
|
|
99
99
|
addItem(e, t, n, r) {
|
|
100
|
-
|
|
100
|
+
K(p.value, e, t, n, (e) => e.push(U(r)));
|
|
101
101
|
},
|
|
102
102
|
removeItem(e, t, n, r) {
|
|
103
|
-
|
|
103
|
+
K(p.value, e, t, n, (e) => {
|
|
104
104
|
let t = e.findIndex((e) => e.id === r);
|
|
105
105
|
t >= 0 && e.splice(t, 1);
|
|
106
106
|
});
|
|
107
107
|
},
|
|
108
108
|
updateItem(e, t, n, r, i) {
|
|
109
|
-
|
|
109
|
+
K(p.value, e, t, n, (e) => {
|
|
110
110
|
let t = e.find((e) => e.id === r);
|
|
111
111
|
t && Object.assign(t, i);
|
|
112
112
|
});
|
|
@@ -155,7 +155,7 @@ function me(e, n, r, i, a, o, s, c) {
|
|
|
155
155
|
}
|
|
156
156
|
//#endregion
|
|
157
157
|
//#region src/ribbon/modules/RibbonBackstage.vue?vue&type=script&setup=true&lang.ts
|
|
158
|
-
var
|
|
158
|
+
var J = { class: "ml-ribbon-backstage__nav" }, ge = { class: "ml-ribbon-backstage__content" }, _e = { key: 0 }, ve = { key: 1 }, ye = /* @__PURE__ */ l({
|
|
159
159
|
__name: "RibbonBackstage",
|
|
160
160
|
props: {
|
|
161
161
|
open: { type: Boolean },
|
|
@@ -170,7 +170,7 @@ var Y = { class: "ml-ribbon-backstage__nav" }, he = { class: "ml-ribbon-backstag
|
|
|
170
170
|
function d() {
|
|
171
171
|
u("close");
|
|
172
172
|
}
|
|
173
|
-
return (t, o) => (v(), n(E(
|
|
173
|
+
return (t, o) => (v(), n(E(A), {
|
|
174
174
|
"model-value": l.open,
|
|
175
175
|
size: "100%",
|
|
176
176
|
"with-header": !1,
|
|
@@ -184,24 +184,24 @@ var Y = { class: "ml-ribbon-backstage__nav" }, he = { class: "ml-ribbon-backstag
|
|
|
184
184
|
title: l.title,
|
|
185
185
|
description: l.description,
|
|
186
186
|
size: l.size
|
|
187
|
-
}) : (v(), i(e, { key: 1 }, [a("aside",
|
|
187
|
+
}) : (v(), i(e, { key: 1 }, [a("aside", J, [c(E(ee), {
|
|
188
188
|
type: "primary",
|
|
189
189
|
onClick: d
|
|
190
190
|
}, {
|
|
191
191
|
default: O(() => [s(w(l.backLabel), 1)]),
|
|
192
192
|
_: 1
|
|
193
|
-
})]), a("section",
|
|
193
|
+
})]), a("section", ge, [l.title ? (v(), i("h2", _e, w(l.title), 1)) : r("", !0), l.description ? (v(), i("p", ve, w(l.description), 1)) : r("", !0)])], 64))], 2)]),
|
|
194
194
|
_: 3
|
|
195
195
|
}, 8, ["model-value"]));
|
|
196
196
|
}
|
|
197
|
-
}),
|
|
197
|
+
}), Y = {
|
|
198
198
|
class: "ml-ribbon-tabs",
|
|
199
199
|
role: "tablist"
|
|
200
|
-
},
|
|
200
|
+
}, be = [
|
|
201
201
|
"aria-selected",
|
|
202
202
|
"disabled",
|
|
203
203
|
"onClick"
|
|
204
|
-
],
|
|
204
|
+
], xe = /* @__PURE__ */ l({
|
|
205
205
|
__name: "RibbonTabs",
|
|
206
206
|
props: {
|
|
207
207
|
tabs: {},
|
|
@@ -217,7 +217,7 @@ var Y = { class: "ml-ribbon-backstage__nav" }, he = { class: "ml-ribbon-backstag
|
|
|
217
217
|
triggerEl: t.currentTarget instanceof HTMLElement ? t.currentTarget : null
|
|
218
218
|
});
|
|
219
219
|
}
|
|
220
|
-
return (t, r) => (v(), i("div",
|
|
220
|
+
return (t, r) => (v(), i("div", Y, [(v(!0), i(e, null, x(s.value, (e) => (v(), i("button", {
|
|
221
221
|
key: e.id,
|
|
222
222
|
type: "button",
|
|
223
223
|
class: m(["ml-ribbon-tab", { "is-active": n.activeTab === e.id }]),
|
|
@@ -225,9 +225,9 @@ var Y = { class: "ml-ribbon-backstage__nav" }, he = { class: "ml-ribbon-backstag
|
|
|
225
225
|
"aria-selected": n.activeTab === e.id,
|
|
226
226
|
disabled: a.disabled,
|
|
227
227
|
onClick: (t) => c(e.id, t)
|
|
228
|
-
}, w(e.title), 11,
|
|
228
|
+
}, w(e.title), 11, be))), 128))]));
|
|
229
229
|
}
|
|
230
|
-
}),
|
|
230
|
+
}), Se = { class: "ml-ribbon-contextual-tabs" }, Ce = { class: "ml-ribbon-contextual-tabs__normal" }, we = { class: "ml-ribbon-contextual-tabs__ctx" }, Te = /* @__PURE__ */ l({
|
|
231
231
|
__name: "RibbonContextualTabs",
|
|
232
232
|
props: {
|
|
233
233
|
tabs: {},
|
|
@@ -238,7 +238,7 @@ var Y = { class: "ml-ribbon-backstage__nav" }, he = { class: "ml-ribbon-backstag
|
|
|
238
238
|
emits: ["select"],
|
|
239
239
|
setup(t, { emit: n }) {
|
|
240
240
|
let r = t, o = n;
|
|
241
|
-
return (n, s) => (v(), i("div",
|
|
241
|
+
return (n, s) => (v(), i("div", Se, [a("div", Ce, [c(xe, {
|
|
242
242
|
tabs: r.tabs.filter((e) => !e.contextual),
|
|
243
243
|
"active-tab": t.activeTab,
|
|
244
244
|
disabled: r.disabled,
|
|
@@ -247,11 +247,11 @@ var Y = { class: "ml-ribbon-backstage__nav" }, he = { class: "ml-ribbon-backstag
|
|
|
247
247
|
"tabs",
|
|
248
248
|
"active-tab",
|
|
249
249
|
"disabled"
|
|
250
|
-
])]), a("div",
|
|
250
|
+
])]), a("div", we, [(v(!0), i(e, null, x(r.tabs.filter((e) => e.contextual), (e) => (v(), i("section", {
|
|
251
251
|
key: e.id,
|
|
252
252
|
class: "ml-ribbon-contextual-tabs__block",
|
|
253
253
|
style: h({ "--ctx-color": e.contextualColor || "#67c23a" })
|
|
254
|
-
}, [a("small", null, w(e.contextualTitle || r.defaultContextualTitle), 1), c(
|
|
254
|
+
}, [a("small", null, w(e.contextualTitle || r.defaultContextualTitle), 1), c(xe, {
|
|
255
255
|
tabs: [e],
|
|
256
256
|
"active-tab": t.activeTab,
|
|
257
257
|
disabled: r.disabled,
|
|
@@ -262,7 +262,7 @@ var Y = { class: "ml-ribbon-backstage__nav" }, he = { class: "ml-ribbon-backstag
|
|
|
262
262
|
"disabled"
|
|
263
263
|
])], 4))), 128))])]));
|
|
264
264
|
}
|
|
265
|
-
}),
|
|
265
|
+
}), Ee = ["disabled"], De = /* @__PURE__ */ l({
|
|
266
266
|
__name: "RibbonFileMenu",
|
|
267
267
|
props: {
|
|
268
268
|
items: {},
|
|
@@ -273,7 +273,7 @@ var Y = { class: "ml-ribbon-backstage__nav" }, he = { class: "ml-ribbon-backstag
|
|
|
273
273
|
},
|
|
274
274
|
emits: ["select", "open-backstage"],
|
|
275
275
|
setup(o, { emit: l }) {
|
|
276
|
-
let u = o, d = l, f = b(!1), p =
|
|
276
|
+
let u = o, d = l, f = b(!1), p = se("size", ""), h = t(() => p.value || "default"), g = t(() => `ml-ribbon-file-menu-dropdown ml-ribbon-popper ml-ribbon-popper--size-${h.value}`);
|
|
277
277
|
function _(e) {
|
|
278
278
|
f.value = e;
|
|
279
279
|
}
|
|
@@ -286,21 +286,21 @@ var Y = { class: "ml-ribbon-backstage__nav" }, he = { class: "ml-ribbon-backstag
|
|
|
286
286
|
}
|
|
287
287
|
return D(() => u.disabled, (e) => {
|
|
288
288
|
e && (f.value = !1);
|
|
289
|
-
}), (t, o) => (v(), n(E(
|
|
289
|
+
}), (t, o) => (v(), n(E(j), {
|
|
290
290
|
trigger: "click",
|
|
291
291
|
disabled: u.disabled,
|
|
292
292
|
"popper-class": g.value,
|
|
293
293
|
onCommand: y,
|
|
294
294
|
onVisibleChange: _
|
|
295
295
|
}, {
|
|
296
|
-
dropdown: O(() => [c(E(
|
|
297
|
-
default: O(() => [u.showOpenBackstage === !1 ? r("", !0) : (v(), n(E(
|
|
296
|
+
dropdown: O(() => [c(E(N), null, {
|
|
297
|
+
default: O(() => [u.showOpenBackstage === !1 ? r("", !0) : (v(), n(E(M), {
|
|
298
298
|
key: 0,
|
|
299
299
|
command: "__backstage"
|
|
300
300
|
}, {
|
|
301
301
|
default: O(() => [s(w(u.openBackstageLabel), 1)]),
|
|
302
302
|
_: 1
|
|
303
|
-
})), (v(!0), i(e, null, x(u.items, (e, t) => (v(), n(E(
|
|
303
|
+
})), (v(!0), i(e, null, x(u.items, (e, t) => (v(), n(E(M), {
|
|
304
304
|
key: e.id,
|
|
305
305
|
divided: u.showOpenBackstage !== !1 && t === 0,
|
|
306
306
|
command: e.id,
|
|
@@ -319,11 +319,11 @@ var Y = { class: "ml-ribbon-backstage__nav" }, he = { class: "ml-ribbon-backstag
|
|
|
319
319
|
type: "button",
|
|
320
320
|
class: m(["ml-ribbon-tab ml-ribbon-tab--file", { "is-active": f.value }]),
|
|
321
321
|
disabled: u.disabled
|
|
322
|
-
}, w(u.label), 11,
|
|
322
|
+
}, w(u.label), 11, Ee)]),
|
|
323
323
|
_: 1
|
|
324
324
|
}, 8, ["disabled", "popper-class"]));
|
|
325
325
|
}
|
|
326
|
-
}),
|
|
326
|
+
}), Oe = /* @__PURE__ */ l({
|
|
327
327
|
__name: "RibbonCollection",
|
|
328
328
|
props: {
|
|
329
329
|
id: {},
|
|
@@ -337,10 +337,10 @@ var Y = { class: "ml-ribbon-backstage__nav" }, he = { class: "ml-ribbon-backstag
|
|
|
337
337
|
style: h(r.value)
|
|
338
338
|
}, [S(e.$slots, "default")], 6));
|
|
339
339
|
}
|
|
340
|
-
}),
|
|
340
|
+
}), X = {
|
|
341
341
|
key: 0,
|
|
342
342
|
class: "ml-ribbon-gallery__title"
|
|
343
|
-
},
|
|
343
|
+
}, ke = { class: "ml-ribbon-gallery__categories" }, Ae = { class: "ml-ribbon-gallery__category-title" }, je = { class: "ml-ribbon-gallery__grid" }, Me = ["disabled", "onClick"], Ne = { class: "ml-ribbon-gallery__preview" }, Pe = { class: "ml-ribbon-gallery__label" }, Fe = /* @__PURE__ */ l({
|
|
344
344
|
__name: "RibbonGallery",
|
|
345
345
|
props: {
|
|
346
346
|
id: {},
|
|
@@ -358,66 +358,147 @@ var Y = { class: "ml-ribbon-backstage__nav" }, he = { class: "ml-ribbon-backstag
|
|
|
358
358
|
function l(e) {
|
|
359
359
|
o.disabled || (c.value = e, s("select", e));
|
|
360
360
|
}
|
|
361
|
-
return (n, s) => (v(), i("div", { class: m(["ml-ribbon-gallery", { "is-disabled": t.disabled }]) }, [t.label ? (v(), i("div",
|
|
361
|
+
return (n, s) => (v(), i("div", { class: m(["ml-ribbon-gallery", { "is-disabled": t.disabled }]) }, [t.label ? (v(), i("div", X, w(t.label), 1)) : r("", !0), a("div", ke, [(v(!0), i(e, null, x(t.categories, (n) => (v(), i("section", {
|
|
362
362
|
key: n.id,
|
|
363
363
|
class: "ml-ribbon-gallery__category"
|
|
364
|
-
}, [a("h4",
|
|
364
|
+
}, [a("h4", Ae, w(n.title), 1), a("div", je, [(v(!0), i(e, null, x(n.items, (e) => (v(), i("button", {
|
|
365
365
|
key: e.id,
|
|
366
366
|
type: "button",
|
|
367
367
|
class: m(["ml-ribbon-gallery__item", { "is-selected": c.value === e.id }]),
|
|
368
368
|
disabled: t.disabled,
|
|
369
369
|
onClick: (t) => l(e.id)
|
|
370
|
-
}, [a("div",
|
|
370
|
+
}, [a("div", Ne, w(e.preview ?? o.previewFallback), 1), a("div", Pe, w(e.label), 1)], 10, Me))), 128))])]))), 128))])], 2));
|
|
371
371
|
}
|
|
372
|
-
}),
|
|
372
|
+
}), Ie = ["data-id"], Le = {
|
|
373
|
+
key: 0,
|
|
374
|
+
class: "ml-ribbon-button-group__label"
|
|
375
|
+
}, Re = {
|
|
376
|
+
key: 2,
|
|
377
|
+
class: "ml-ribbon-button-group__text"
|
|
378
|
+
}, ze = /* @__PURE__ */ l({
|
|
373
379
|
__name: "RibbonButtonGroup",
|
|
374
380
|
props: {
|
|
375
381
|
id: {},
|
|
376
382
|
label: {},
|
|
377
383
|
options: {},
|
|
384
|
+
hideLabel: {
|
|
385
|
+
type: Boolean,
|
|
386
|
+
default: !1
|
|
387
|
+
},
|
|
388
|
+
wrap: {
|
|
389
|
+
type: Boolean,
|
|
390
|
+
default: !0
|
|
391
|
+
},
|
|
392
|
+
equalWidth: {
|
|
393
|
+
type: Boolean,
|
|
394
|
+
default: !1
|
|
395
|
+
},
|
|
396
|
+
buttonSize: {},
|
|
397
|
+
iconSize: {},
|
|
398
|
+
tooltipShowAfter: { default: 1e3 },
|
|
399
|
+
tooltipHideAfter: { default: 0 },
|
|
378
400
|
disabled: {
|
|
379
401
|
type: Boolean,
|
|
380
402
|
default: !1
|
|
381
403
|
}
|
|
382
404
|
},
|
|
383
405
|
emits: ["change"],
|
|
384
|
-
setup(t, { emit:
|
|
385
|
-
let
|
|
406
|
+
setup(t, { emit: a }) {
|
|
407
|
+
let o = t, s = a;
|
|
408
|
+
function l(e) {
|
|
409
|
+
o.disabled || s("change", e);
|
|
410
|
+
}
|
|
411
|
+
function u(e) {
|
|
412
|
+
return typeof e == "string" && e.trim().length > 0;
|
|
413
|
+
}
|
|
386
414
|
function d(e) {
|
|
387
|
-
|
|
415
|
+
if (typeof e != "string") return;
|
|
416
|
+
let t = e.trim();
|
|
417
|
+
return t.length > 0 ? t : void 0;
|
|
418
|
+
}
|
|
419
|
+
function f(e) {
|
|
420
|
+
if (typeof e == "string") {
|
|
421
|
+
let t = e.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]+/g, " ").trim();
|
|
422
|
+
return t ? t.replace(/\b\w/g, (e) => e.toUpperCase()) : void 0;
|
|
423
|
+
}
|
|
424
|
+
if (typeof e == "number" || typeof e == "boolean") return String(e);
|
|
388
425
|
}
|
|
389
|
-
|
|
390
|
-
|
|
426
|
+
function p(e) {
|
|
427
|
+
return d(e.tooltip) ?? d(e.label) ?? f(e.value);
|
|
428
|
+
}
|
|
429
|
+
function g(e) {
|
|
430
|
+
return !e.icon || typeof e.icon == "string" ? null : e.icon;
|
|
431
|
+
}
|
|
432
|
+
function _(e) {
|
|
433
|
+
return typeof e.icon != "string" || e.icon.trim().length === 0 ? null : e.icon;
|
|
434
|
+
}
|
|
435
|
+
function y() {
|
|
436
|
+
let e = o.iconSize;
|
|
437
|
+
if (e) return { fontSize: e };
|
|
438
|
+
}
|
|
439
|
+
return (a, o) => (v(), i("div", {
|
|
440
|
+
class: m(["ml-ribbon-button-group", {
|
|
441
|
+
"ml-ribbon-button-group--nowrap": !t.wrap,
|
|
442
|
+
"ml-ribbon-button-group--equal-width": !t.wrap && t.equalWidth
|
|
443
|
+
}]),
|
|
391
444
|
"data-id": t.id
|
|
392
|
-
}, [
|
|
393
|
-
default: O(() => [(v(!0), i(e, null, x(t.options, (e) => (v(), n(E(
|
|
394
|
-
key: e.value,
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
445
|
+
}, [!t.hideLabel && t.label ? (v(), i("div", Le, w(t.label), 1)) : r("", !0), c(E(te), null, {
|
|
446
|
+
default: O(() => [(v(!0), i(e, null, x(t.options, (e) => (v(), n(E(R), {
|
|
447
|
+
key: String(e.value),
|
|
448
|
+
content: p(e),
|
|
449
|
+
disabled: !p(e),
|
|
450
|
+
"show-after": t.tooltipShowAfter,
|
|
451
|
+
"hide-after": t.tooltipHideAfter,
|
|
452
|
+
placement: "top",
|
|
453
|
+
effect: "dark"
|
|
398
454
|
}, {
|
|
399
|
-
default: O(() => [
|
|
400
|
-
|
|
401
|
-
|
|
455
|
+
default: O(() => [c(E(ee), {
|
|
456
|
+
size: t.buttonSize,
|
|
457
|
+
disabled: t.disabled,
|
|
458
|
+
type: "default",
|
|
459
|
+
"aria-label": p(e) ?? String(e.value),
|
|
460
|
+
onClick: (t) => l(e.value)
|
|
402
461
|
}, {
|
|
403
|
-
default: O(() => [(v(), n(
|
|
462
|
+
default: O(() => [g(e) ? (v(), n(E(P), {
|
|
463
|
+
key: 0,
|
|
464
|
+
class: m(["ml-ribbon-item-host__icon", u(e.label) ? "ml-ribbon-item-host__icon--with-label" : "ml-ribbon-item-host__icon--icon-only"]),
|
|
465
|
+
style: h(y())
|
|
466
|
+
}, {
|
|
467
|
+
default: O(() => [(v(), n(C(g(e))))]),
|
|
468
|
+
_: 2
|
|
469
|
+
}, 1032, ["class", "style"])) : _(e) ? (v(), i("i", {
|
|
470
|
+
key: 1,
|
|
471
|
+
class: m(["ml-ribbon-item-host__icon ml-ribbon-item-host__icon--class", [_(e), u(e.label) ? "ml-ribbon-item-host__icon--with-label" : "ml-ribbon-item-host__icon--icon-only"]]),
|
|
472
|
+
style: h(y()),
|
|
473
|
+
"aria-hidden": "true"
|
|
474
|
+
}, null, 6)) : r("", !0), u(e.label) ? (v(), i("span", Re, w(e.label), 1)) : r("", !0)]),
|
|
404
475
|
_: 2
|
|
405
|
-
},
|
|
476
|
+
}, 1032, [
|
|
477
|
+
"size",
|
|
478
|
+
"disabled",
|
|
479
|
+
"aria-label",
|
|
480
|
+
"onClick"
|
|
481
|
+
])]),
|
|
406
482
|
_: 2
|
|
407
|
-
}, 1032, [
|
|
483
|
+
}, 1032, [
|
|
484
|
+
"content",
|
|
485
|
+
"disabled",
|
|
486
|
+
"show-after",
|
|
487
|
+
"hide-after"
|
|
488
|
+
]))), 128))]),
|
|
408
489
|
_: 1
|
|
409
|
-
})],
|
|
490
|
+
})], 10, Ie));
|
|
410
491
|
}
|
|
411
|
-
}),
|
|
492
|
+
}), Be = ["data-id"], Ve = {
|
|
412
493
|
key: 0,
|
|
413
494
|
class: "ml-ribbon-segmented__label"
|
|
414
|
-
},
|
|
495
|
+
}, He = ["data-option-value"], Z = {
|
|
415
496
|
key: 2,
|
|
416
497
|
class: "ml-ribbon-segmented__option-label"
|
|
417
|
-
},
|
|
498
|
+
}, Ue = {
|
|
418
499
|
key: 3,
|
|
419
500
|
class: "ml-ribbon-segmented__option-sr-label"
|
|
420
|
-
},
|
|
501
|
+
}, We = /* @__PURE__ */ l({
|
|
421
502
|
__name: "RibbonSegmented",
|
|
422
503
|
props: {
|
|
423
504
|
id: {},
|
|
@@ -473,7 +554,7 @@ var Y = { class: "ml-ribbon-backstage__nav" }, he = { class: "ml-ribbon-backstag
|
|
|
473
554
|
return (t, o) => (v(), i("div", {
|
|
474
555
|
class: "ml-ribbon-segmented",
|
|
475
556
|
"data-id": e.id
|
|
476
|
-
}, [d.value ? (v(), i("div",
|
|
557
|
+
}, [d.value ? (v(), i("div", Ve, w(u.value), 1)) : r("", !0), c(E(ae), {
|
|
477
558
|
class: "ml-ribbon-segmented__control",
|
|
478
559
|
options: e.options,
|
|
479
560
|
"model-value": e.modelValue,
|
|
@@ -486,7 +567,7 @@ var Y = { class: "ml-ribbon-backstage__nav" }, he = { class: "ml-ribbon-backstag
|
|
|
486
567
|
default: O(({ item: e }) => [a("span", {
|
|
487
568
|
class: "ml-ribbon-segmented__option",
|
|
488
569
|
"data-option-value": y(e)
|
|
489
|
-
}, [h(e) ? (v(), n(E(
|
|
570
|
+
}, [h(e) ? (v(), n(E(P), {
|
|
490
571
|
key: 0,
|
|
491
572
|
class: "ml-ribbon-segmented__option-icon",
|
|
492
573
|
"aria-hidden": "true"
|
|
@@ -497,7 +578,7 @@ var Y = { class: "ml-ribbon-backstage__nav" }, he = { class: "ml-ribbon-backstag
|
|
|
497
578
|
key: 1,
|
|
498
579
|
class: m(["ml-ribbon-segmented__option-icon ml-ribbon-item-host__icon--class", g(e)]),
|
|
499
580
|
"aria-hidden": "true"
|
|
500
|
-
}, null, 2)) : r("", !0), _(e) ? (v(), i("span",
|
|
581
|
+
}, null, 2)) : r("", !0), _(e) ? (v(), i("span", Z, w(p(e)), 1)) : (v(), i("span", Ue, w(p(e)), 1))], 8, He)]),
|
|
501
582
|
_: 1
|
|
502
583
|
}, 8, [
|
|
503
584
|
"options",
|
|
@@ -506,12 +587,12 @@ var Y = { class: "ml-ribbon-backstage__nav" }, he = { class: "ml-ribbon-backstag
|
|
|
506
587
|
"block",
|
|
507
588
|
"disabled",
|
|
508
589
|
"aria-label"
|
|
509
|
-
])], 8,
|
|
590
|
+
])], 8, Be));
|
|
510
591
|
}
|
|
511
|
-
}),
|
|
592
|
+
}), Ge = {
|
|
512
593
|
key: 2,
|
|
513
594
|
class: "ml-ribbon-item-host__label"
|
|
514
|
-
},
|
|
595
|
+
}, Ke = /* @__PURE__ */ l({
|
|
515
596
|
__name: "RibbonToggleButton",
|
|
516
597
|
props: {
|
|
517
598
|
id: {},
|
|
@@ -551,7 +632,7 @@ var Y = { class: "ml-ribbon-backstage__nav" }, he = { class: "ml-ribbon-backstag
|
|
|
551
632
|
let e = !u.value;
|
|
552
633
|
u.value = e, l("change", e);
|
|
553
634
|
}
|
|
554
|
-
return (t, a) => (v(), n(E(
|
|
635
|
+
return (t, a) => (v(), n(E(ee), {
|
|
555
636
|
class: m(["ml-ribbon-toggle", { "is-active": d.value }]),
|
|
556
637
|
type: "default",
|
|
557
638
|
disabled: e.disabled,
|
|
@@ -559,7 +640,7 @@ var Y = { class: "ml-ribbon-backstage__nav" }, he = { class: "ml-ribbon-backstag
|
|
|
559
640
|
"aria-pressed": String(d.value),
|
|
560
641
|
onClick: y
|
|
561
642
|
}, {
|
|
562
|
-
default: O(() => [p.value ? (v(), n(E(
|
|
643
|
+
default: O(() => [p.value ? (v(), n(E(P), {
|
|
563
644
|
key: 0,
|
|
564
645
|
class: "ml-ribbon-item-host__icon"
|
|
565
646
|
}, {
|
|
@@ -569,7 +650,7 @@ var Y = { class: "ml-ribbon-backstage__nav" }, he = { class: "ml-ribbon-backstag
|
|
|
569
650
|
key: 1,
|
|
570
651
|
class: m(["ml-ribbon-item-host__icon ml-ribbon-item-host__icon--class", h.value]),
|
|
571
652
|
"aria-hidden": "true"
|
|
572
|
-
}, null, 2)) : r("", !0), _.value ? (v(), i("span",
|
|
653
|
+
}, null, 2)) : r("", !0), _.value ? (v(), i("span", Ge, w(g.value), 1)) : r("", !0)]),
|
|
573
654
|
_: 1
|
|
574
655
|
}, 8, [
|
|
575
656
|
"class",
|
|
@@ -578,7 +659,7 @@ var Y = { class: "ml-ribbon-backstage__nav" }, he = { class: "ml-ribbon-backstag
|
|
|
578
659
|
"aria-pressed"
|
|
579
660
|
]));
|
|
580
661
|
}
|
|
581
|
-
}),
|
|
662
|
+
}), qe = ["data-template-id", "aria-disabled"], Je = /* @__PURE__ */ l({
|
|
582
663
|
__name: "RibbonTemplateItem",
|
|
583
664
|
props: {
|
|
584
665
|
id: {},
|
|
@@ -593,18 +674,18 @@ var Y = { class: "ml-ribbon-backstage__nav" }, he = { class: "ml-ribbon-backstag
|
|
|
593
674
|
}, [S(t.$slots, "default", {
|
|
594
675
|
item: e.item,
|
|
595
676
|
disabled: e.disabled
|
|
596
|
-
}, () => [a("span", null, w(e.item.label ?? e.item.id), 1)])], 8,
|
|
677
|
+
}, () => [a("span", null, w(e.item.label ?? e.item.id), 1)])], 8, qe));
|
|
597
678
|
}
|
|
598
|
-
}),
|
|
679
|
+
}), Ye = ["data-item-id"], Q = {
|
|
599
680
|
key: 0,
|
|
600
681
|
class: "ml-ribbon-item-host__keytip"
|
|
601
|
-
},
|
|
682
|
+
}, Xe = { class: "ml-ribbon-item-host__content" }, Ze = { class: "ml-ribbon-item-host__text-row" }, Qe = {
|
|
602
683
|
key: 0,
|
|
603
684
|
class: "ml-ribbon-item-host__label"
|
|
604
|
-
},
|
|
685
|
+
}, $e = { class: "ml-ribbon-dropdown-item__content" }, et = { class: "ml-ribbon-dropdown-item__label" }, tt = {
|
|
605
686
|
key: 2,
|
|
606
687
|
class: "ml-ribbon-item-host__label"
|
|
607
|
-
},
|
|
688
|
+
}, nt = /* @__PURE__ */ l({
|
|
608
689
|
__name: "RibbonItemHost",
|
|
609
690
|
props: {
|
|
610
691
|
id: {},
|
|
@@ -614,72 +695,79 @@ var Y = { class: "ml-ribbon-backstage__nav" }, he = { class: "ml-ribbon-backstag
|
|
|
614
695
|
},
|
|
615
696
|
emits: ["item-click"],
|
|
616
697
|
setup(o, { emit: l }) {
|
|
617
|
-
let d = o, p = l,
|
|
698
|
+
let d = o, p = l, g = u(pe, null), _ = t(() => Array.isArray(d.item.props?.options) ? d.item.props.options : []), y = se("size", ""), T = t(() => y.value || "default"), D = t(() => $(g?.tooltipShowAfter.value, 1e3)), te = t(() => $(g?.tooltipHideAfter.value, 0)), ie = t(() => `ml-ribbon-dropdown-menu ml-ribbon-popper ml-ribbon-popper--size-${T.value}`), A = t(() => `ml-ribbon-select-dropdown ml-ribbon-popper ml-ribbon-popper--size-${T.value}`), I = t(() => d.item.props?.icon || (typeof d.item.icon == "string" || !d.item.icon ? null : d.item.icon)), ae = t(() => {
|
|
618
699
|
let e = d.item.props?.icon;
|
|
619
700
|
return typeof e == "string" && e.trim().length > 0 ? e : typeof d.item.icon == "string" && d.item.icon.trim().length > 0 ? d.item.icon : null;
|
|
620
|
-
}),
|
|
621
|
-
let e =
|
|
622
|
-
if (e &&
|
|
623
|
-
let t =
|
|
701
|
+
}), oe = t(() => d.item.hideLabel !== !0), B = t(() => d.item.type === "dropdown" ? qe(W.value) ?? nt(d.item.tooltip) ?? nt(me.value) ?? nt(d.item.label) ?? ct(d.item.id) : nt(d.item.tooltip) ?? nt(d.item.label) ?? st(d.item) ?? ct(d.item.id)), le = t(() => d.item.type !== "buttonGroup"), ue = t(() => !le.value || !B.value), de = t(() => B.value ?? d.item.id), fe = t(() => d.item.keyTip?.trim().toUpperCase() ?? ""), V = t(() => d.item.props?.syncLabelWithSelection === !0), H = b(!1), U = b(void 0), W = t(() => _.value.find((e) => Z(e) === U.value) ?? null), me = t(() => {
|
|
702
|
+
let e = W.value;
|
|
703
|
+
if (e && V.value) {
|
|
704
|
+
let t = Ue(e);
|
|
624
705
|
if (t) return t;
|
|
625
706
|
}
|
|
626
707
|
return d.item.label ?? d.item.id;
|
|
627
708
|
}), G = t(() => {
|
|
628
|
-
if (
|
|
629
|
-
let e =
|
|
709
|
+
if (W.value) {
|
|
710
|
+
let e = Ve(W.value);
|
|
630
711
|
if (e) return e;
|
|
631
712
|
}
|
|
632
|
-
return
|
|
633
|
-
}),
|
|
634
|
-
if (
|
|
635
|
-
let e =
|
|
713
|
+
return I.value;
|
|
714
|
+
}), he = t(() => {
|
|
715
|
+
if (W.value) {
|
|
716
|
+
let e = He(W.value);
|
|
636
717
|
if (e) return e;
|
|
637
718
|
}
|
|
638
|
-
return G.value ? null :
|
|
639
|
-
}),
|
|
640
|
-
if (!
|
|
641
|
-
let e =
|
|
642
|
-
return e ?
|
|
643
|
-
}), q = t(() => d.item.disabled === !0 ||
|
|
719
|
+
return G.value ? null : ae.value;
|
|
720
|
+
}), K = t(() => {
|
|
721
|
+
if (!g?.keyTipsOpen.value || g?.disabled.value || !fe.value) return !1;
|
|
722
|
+
let e = g.keyTipsSequence.value.toLowerCase();
|
|
723
|
+
return e ? fe.value.toLowerCase().startsWith(e) : !0;
|
|
724
|
+
}), q = t(() => d.item.disabled === !0 || g?.disabled.value === !0), J = t(() => d.item.props?.modelValue), ge = t(() => d.item.props?.activeLabel), _e = t(() => d.item.props?.inactiveLabel), ve = t(() => {
|
|
644
725
|
let e = d.item.props?.component;
|
|
645
726
|
return !e || typeof e == "string" ? null : e;
|
|
646
|
-
}),
|
|
727
|
+
}), ye = t(() => {
|
|
647
728
|
let e = d.item.props?.componentProps;
|
|
648
729
|
return !e || typeof e != "object" || Array.isArray(e) ? {} : e;
|
|
730
|
+
}), Y = t(() => d.item.props?.wrap !== !1), be = t(() => d.item.props?.equalWidth === !0), xe = t(() => {
|
|
731
|
+
let e = d.item.props?.buttonSize;
|
|
732
|
+
if (e === "large" || e === "default" || e === "small") return e;
|
|
733
|
+
}), Se = t(() => at(d.item.props?.iconSize)), Ce = t(() => rt(d.item.props?.width ?? d.item.props?.comboWidth, "92px")), we = t(() => d.item.props?.modelValue), Te = t(() => ot(d.item.props?.labelWrapLines)), Ee = t(() => it(d.item.props?.labelWrapWidth)), De = t(() => d.item.type === "button" && d.item.size === "large" && oe.value && (Te.value ?? 0) > 1), Oe = t(() => {
|
|
734
|
+
if (!De.value) return {};
|
|
735
|
+
let e = { "--ml-rb-item-label-max-lines": String(Te.value ?? 2) };
|
|
736
|
+
return Ee.value && (e["--ml-rb-item-label-wrap-width"] = Ee.value), e;
|
|
649
737
|
});
|
|
650
738
|
function X() {
|
|
651
739
|
q.value || p("item-click", d.id);
|
|
652
740
|
}
|
|
653
|
-
function
|
|
741
|
+
function ke(e) {
|
|
654
742
|
if (q.value) {
|
|
655
743
|
H.value = !1;
|
|
656
744
|
return;
|
|
657
745
|
}
|
|
658
746
|
H.value = e;
|
|
659
747
|
}
|
|
660
|
-
function
|
|
661
|
-
q.value || (
|
|
748
|
+
function Ae(e) {
|
|
749
|
+
q.value || (U.value = e, Ne(e), H.value = !1);
|
|
662
750
|
}
|
|
663
|
-
function
|
|
751
|
+
function je() {
|
|
664
752
|
q.value || (H.value = !H.value);
|
|
665
753
|
}
|
|
666
|
-
function
|
|
754
|
+
function Me() {
|
|
667
755
|
if (q.value) return;
|
|
668
|
-
let e =
|
|
756
|
+
let e = W.value;
|
|
669
757
|
if (!e) {
|
|
670
758
|
X();
|
|
671
759
|
return;
|
|
672
760
|
}
|
|
673
|
-
|
|
761
|
+
Ne(Z(e));
|
|
674
762
|
}
|
|
675
|
-
function
|
|
763
|
+
function Ne(e) {
|
|
676
764
|
if (typeof e == "string" || typeof e == "number") {
|
|
677
765
|
p("item-click", String(e));
|
|
678
766
|
return;
|
|
679
767
|
}
|
|
680
768
|
X();
|
|
681
769
|
}
|
|
682
|
-
function
|
|
770
|
+
function Pe(e) {
|
|
683
771
|
if (!q.value) {
|
|
684
772
|
if (typeof e == "string" || typeof e == "number" || typeof e == "boolean") {
|
|
685
773
|
p("item-click", String(e));
|
|
@@ -688,7 +776,7 @@ var Y = { class: "ml-ribbon-backstage__nav" }, he = { class: "ml-ribbon-backstag
|
|
|
688
776
|
X();
|
|
689
777
|
}
|
|
690
778
|
}
|
|
691
|
-
function
|
|
779
|
+
function Ie(e) {
|
|
692
780
|
if (q.value) return;
|
|
693
781
|
let t = e ? d.item.props?.activeValue : d.item.props?.inactiveValue;
|
|
694
782
|
if (typeof t == "string" || typeof t == "number" || typeof t == "boolean") {
|
|
@@ -697,7 +785,7 @@ var Y = { class: "ml-ribbon-backstage__nav" }, he = { class: "ml-ribbon-backstag
|
|
|
697
785
|
}
|
|
698
786
|
p("item-click", String(e));
|
|
699
787
|
}
|
|
700
|
-
function
|
|
788
|
+
function Le(e) {
|
|
701
789
|
if (!q.value) {
|
|
702
790
|
if (typeof e == "string" || typeof e == "number" || typeof e == "boolean") {
|
|
703
791
|
p("item-click", String(e));
|
|
@@ -706,7 +794,16 @@ var Y = { class: "ml-ribbon-backstage__nav" }, he = { class: "ml-ribbon-backstag
|
|
|
706
794
|
X();
|
|
707
795
|
}
|
|
708
796
|
}
|
|
709
|
-
function
|
|
797
|
+
function Re(e) {
|
|
798
|
+
if (!q.value) {
|
|
799
|
+
if (d.item.props?.emitValueOnChange === !0 && (typeof e == "string" || typeof e == "number" || typeof e == "boolean")) {
|
|
800
|
+
p("item-click", String(e));
|
|
801
|
+
return;
|
|
802
|
+
}
|
|
803
|
+
X();
|
|
804
|
+
}
|
|
805
|
+
}
|
|
806
|
+
function Be(e) {
|
|
710
807
|
if (!q.value) {
|
|
711
808
|
if (typeof e == "string" || typeof e == "number" || typeof e == "boolean") {
|
|
712
809
|
p("item-click", String(e));
|
|
@@ -715,45 +812,76 @@ var Y = { class: "ml-ribbon-backstage__nav" }, he = { class: "ml-ribbon-backstag
|
|
|
715
812
|
X();
|
|
716
813
|
}
|
|
717
814
|
}
|
|
718
|
-
function
|
|
815
|
+
function Ve(e) {
|
|
719
816
|
if (!e || typeof e != "object") return null;
|
|
720
817
|
let t = e.icon;
|
|
721
818
|
return !t || typeof t == "string" ? null : t;
|
|
722
819
|
}
|
|
723
|
-
function
|
|
820
|
+
function He(e) {
|
|
724
821
|
if (!e || typeof e != "object") return null;
|
|
725
822
|
let t = e.icon;
|
|
726
823
|
return typeof t != "string" || t.trim().length === 0 ? null : t;
|
|
727
824
|
}
|
|
728
|
-
function
|
|
825
|
+
function Z(e) {
|
|
729
826
|
if (!(!e || typeof e != "object")) return e.value;
|
|
730
827
|
}
|
|
731
|
-
function
|
|
828
|
+
function Ue(e) {
|
|
732
829
|
if (!e || typeof e != "object") return;
|
|
733
830
|
let t = e.label;
|
|
734
831
|
return typeof t == "string" ? t : void 0;
|
|
735
832
|
}
|
|
736
|
-
function
|
|
833
|
+
function Ge(e) {
|
|
834
|
+
if (typeof e == "string") return ct(e);
|
|
835
|
+
if (typeof e == "number" || typeof e == "boolean") return String(e);
|
|
836
|
+
}
|
|
837
|
+
function qe(e) {
|
|
838
|
+
if (!(!e || typeof e != "object")) return nt(e.tooltip) ?? Ue(e) ?? Ge(Z(e));
|
|
839
|
+
}
|
|
840
|
+
function nt(e) {
|
|
737
841
|
if (typeof e != "string") return;
|
|
738
842
|
let t = e.trim();
|
|
739
843
|
return t.length > 0 ? t : void 0;
|
|
740
844
|
}
|
|
741
|
-
function
|
|
845
|
+
function $(e, t) {
|
|
742
846
|
return typeof e != "number" || Number.isNaN(e) || !Number.isFinite(e) ? t : Math.max(0, Math.round(e));
|
|
743
847
|
}
|
|
744
|
-
function
|
|
745
|
-
|
|
848
|
+
function rt(e, t) {
|
|
849
|
+
if (typeof e == "number" && Number.isFinite(e) && e > 0) return `${e}px`;
|
|
850
|
+
if (typeof e == "string") {
|
|
851
|
+
let n = e.trim();
|
|
852
|
+
return n ? n.toLowerCase() === "full" ? "100%" : n : t;
|
|
853
|
+
}
|
|
854
|
+
return t;
|
|
855
|
+
}
|
|
856
|
+
function it(e) {
|
|
857
|
+
if (typeof e == "number" && Number.isFinite(e) && e > 0) return `${e}px`;
|
|
858
|
+
if (typeof e == "string") {
|
|
859
|
+
let t = e.trim();
|
|
860
|
+
return t ? t.toLowerCase() === "full" ? "100%" : t : void 0;
|
|
861
|
+
}
|
|
862
|
+
}
|
|
863
|
+
function at(e) {
|
|
864
|
+
if (typeof e == "number" && Number.isFinite(e) && e > 0) return `${e}px`;
|
|
865
|
+
if (typeof e != "string") return;
|
|
866
|
+
let t = e.trim();
|
|
867
|
+
return t.length > 0 ? t : void 0;
|
|
868
|
+
}
|
|
869
|
+
function ot(e) {
|
|
870
|
+
if (!(typeof e != "number" || Number.isNaN(e) || !Number.isFinite(e))) return Math.max(1, Math.round(e));
|
|
871
|
+
}
|
|
872
|
+
function st(e) {
|
|
873
|
+
let t = _.value.map((e) => Ue(e)).filter((e) => !!e);
|
|
746
874
|
if (t.length) return e.type === "buttonGroup" ? t.join(" / ") : t[0];
|
|
747
875
|
}
|
|
748
|
-
function
|
|
876
|
+
function ct(e) {
|
|
749
877
|
let t = e.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]+/g, " ").trim();
|
|
750
878
|
return t ? t.replace(/\b\w/g, (e) => e.toUpperCase()) : e;
|
|
751
879
|
}
|
|
752
|
-
return (t, l) => (v(), n(E(
|
|
753
|
-
content:
|
|
754
|
-
disabled:
|
|
755
|
-
"show-after":
|
|
756
|
-
"hide-after":
|
|
880
|
+
return (t, l) => (v(), n(E(R), {
|
|
881
|
+
content: B.value,
|
|
882
|
+
disabled: ue.value,
|
|
883
|
+
"show-after": D.value,
|
|
884
|
+
"hide-after": te.value,
|
|
757
885
|
placement: "top",
|
|
758
886
|
effect: "dark"
|
|
759
887
|
}, {
|
|
@@ -761,23 +889,41 @@ var Y = { class: "ml-ribbon-backstage__nav" }, he = { class: "ml-ribbon-backstag
|
|
|
761
889
|
class: m(["ml-ribbon-item-host", [
|
|
762
890
|
`is-${o.item.size ?? "medium"}`,
|
|
763
891
|
`type-${o.item.type}`,
|
|
764
|
-
{
|
|
892
|
+
{
|
|
893
|
+
"is-label-hidden": o.item.hideLabel === !0,
|
|
894
|
+
"is-label-wrap": De.value
|
|
895
|
+
}
|
|
765
896
|
]]),
|
|
897
|
+
style: h(Oe.value),
|
|
766
898
|
"data-item-id": o.id,
|
|
767
899
|
role: "group"
|
|
768
|
-
}, [
|
|
900
|
+
}, [K.value ? (v(), i("span", Q, w(fe.value), 1)) : r("", !0), o.item.type === "buttonGroup" ? (v(), n(ze, {
|
|
769
901
|
key: 1,
|
|
770
902
|
id: o.item.id,
|
|
771
903
|
label: o.item.label ?? "",
|
|
772
904
|
options: o.item.props?.options ?? [],
|
|
905
|
+
"hide-label": o.item.hideLabel === !0,
|
|
906
|
+
wrap: Y.value,
|
|
907
|
+
"equal-width": be.value,
|
|
908
|
+
"button-size": xe.value,
|
|
909
|
+
"icon-size": Se.value,
|
|
910
|
+
"tooltip-show-after": D.value,
|
|
911
|
+
"tooltip-hide-after": te.value,
|
|
773
912
|
disabled: q.value,
|
|
774
|
-
onChange:
|
|
913
|
+
onChange: Le
|
|
775
914
|
}, null, 8, [
|
|
776
915
|
"id",
|
|
777
916
|
"label",
|
|
778
917
|
"options",
|
|
918
|
+
"hide-label",
|
|
919
|
+
"wrap",
|
|
920
|
+
"equal-width",
|
|
921
|
+
"button-size",
|
|
922
|
+
"icon-size",
|
|
923
|
+
"tooltip-show-after",
|
|
924
|
+
"tooltip-hide-after",
|
|
779
925
|
"disabled"
|
|
780
|
-
])) : o.item.type === "segmented" ? (v(), n(
|
|
926
|
+
])) : o.item.type === "segmented" ? (v(), n(We, {
|
|
781
927
|
key: 2,
|
|
782
928
|
id: o.item.id,
|
|
783
929
|
label: o.item.label ?? o.item.id,
|
|
@@ -787,7 +933,7 @@ var Y = { class: "ml-ribbon-backstage__nav" }, he = { class: "ml-ribbon-backstag
|
|
|
787
933
|
block: o.item.props?.block === !0,
|
|
788
934
|
disabled: q.value,
|
|
789
935
|
"hide-label": o.item.hideLabel === !0,
|
|
790
|
-
onChange:
|
|
936
|
+
onChange: Pe
|
|
791
937
|
}, null, 8, [
|
|
792
938
|
"id",
|
|
793
939
|
"label",
|
|
@@ -797,18 +943,18 @@ var Y = { class: "ml-ribbon-backstage__nav" }, he = { class: "ml-ribbon-backstag
|
|
|
797
943
|
"block",
|
|
798
944
|
"disabled",
|
|
799
945
|
"hide-label"
|
|
800
|
-
])) : o.item.type === "toggle" ? (v(), n(
|
|
946
|
+
])) : o.item.type === "toggle" ? (v(), n(Ke, {
|
|
801
947
|
key: 3,
|
|
802
948
|
id: o.item.id,
|
|
803
949
|
label: o.item.label ?? o.item.id,
|
|
804
|
-
"model-value":
|
|
950
|
+
"model-value": J.value,
|
|
805
951
|
"active-icon": o.item.props?.activeIcon ?? o.item.props?.icon ?? o.item.icon,
|
|
806
952
|
"inactive-icon": o.item.props?.inactiveIcon ?? o.item.props?.icon ?? o.item.icon,
|
|
807
|
-
"active-label":
|
|
808
|
-
"inactive-label":
|
|
953
|
+
"active-label": ge.value,
|
|
954
|
+
"inactive-label": _e.value,
|
|
809
955
|
disabled: q.value,
|
|
810
956
|
"hide-label": o.item.hideLabel === !0,
|
|
811
|
-
onChange:
|
|
957
|
+
onChange: Ie
|
|
812
958
|
}, null, 8, [
|
|
813
959
|
"id",
|
|
814
960
|
"label",
|
|
@@ -819,7 +965,7 @@ var Y = { class: "ml-ribbon-backstage__nav" }, he = { class: "ml-ribbon-backstag
|
|
|
819
965
|
"inactive-label",
|
|
820
966
|
"disabled",
|
|
821
967
|
"hide-label"
|
|
822
|
-
])) : o.item.type === "gallery" ? (v(), n(
|
|
968
|
+
])) : o.item.type === "gallery" ? (v(), n(Fe, {
|
|
823
969
|
key: 4,
|
|
824
970
|
id: o.item.id,
|
|
825
971
|
label: o.item.label ?? "",
|
|
@@ -833,17 +979,17 @@ var Y = { class: "ml-ribbon-backstage__nav" }, he = { class: "ml-ribbon-backstag
|
|
|
833
979
|
"categories",
|
|
834
980
|
"preview-fallback",
|
|
835
981
|
"disabled"
|
|
836
|
-
])) : o.item.type === "custom" || o.item.type === "template" ? (v(), n(
|
|
982
|
+
])) : o.item.type === "custom" || o.item.type === "template" ? (v(), n(Je, {
|
|
837
983
|
key: 5,
|
|
838
984
|
id: o.item.id,
|
|
839
985
|
item: o.item,
|
|
840
986
|
disabled: q.value
|
|
841
987
|
}, {
|
|
842
|
-
default: O(() => [
|
|
988
|
+
default: O(() => [ve.value ? (v(), n(C(ve.value), f({ key: 0 }, ye.value, {
|
|
843
989
|
item: o.item,
|
|
844
990
|
"group-id": o.groupId,
|
|
845
991
|
disabled: q.value,
|
|
846
|
-
"emit-item-click":
|
|
992
|
+
"emit-item-click": Be
|
|
847
993
|
}), null, 16, [
|
|
848
994
|
"item",
|
|
849
995
|
"group-id",
|
|
@@ -858,104 +1004,125 @@ var Y = { class: "ml-ribbon-backstage__nav" }, he = { class: "ml-ribbon-backstag
|
|
|
858
1004
|
"id",
|
|
859
1005
|
"item",
|
|
860
1006
|
"disabled"
|
|
861
|
-
])) : o.item.type === "dropdown" ? (v(), n(E(
|
|
1007
|
+
])) : o.item.type === "dropdown" ? (v(), n(E(j), {
|
|
862
1008
|
key: 6,
|
|
863
1009
|
trigger: "click",
|
|
864
1010
|
disabled: q.value,
|
|
865
|
-
"popper-class":
|
|
866
|
-
onVisibleChange:
|
|
867
|
-
onCommand:
|
|
1011
|
+
"popper-class": ie.value,
|
|
1012
|
+
onVisibleChange: ke,
|
|
1013
|
+
onCommand: Ae
|
|
868
1014
|
}, {
|
|
869
|
-
dropdown: O(() => [c(E(
|
|
870
|
-
default: O(() => [(v(!0), i(e, null, x(
|
|
1015
|
+
dropdown: O(() => [c(E(N), null, {
|
|
1016
|
+
default: O(() => [(v(!0), i(e, null, x(_.value, (e) => (v(), n(E(M), {
|
|
871
1017
|
key: String(e.value),
|
|
872
1018
|
command: e.value
|
|
873
1019
|
}, {
|
|
874
|
-
default: O(() => [
|
|
875
|
-
|
|
876
|
-
|
|
1020
|
+
default: O(() => [c(E(R), {
|
|
1021
|
+
content: qe(e),
|
|
1022
|
+
disabled: !qe(e),
|
|
1023
|
+
"show-after": D.value,
|
|
1024
|
+
"hide-after": te.value,
|
|
1025
|
+
placement: "top",
|
|
1026
|
+
effect: "dark"
|
|
877
1027
|
}, {
|
|
878
|
-
default: O(() => [(v(), n(
|
|
1028
|
+
default: O(() => [a("span", $e, [Ve(e) ? (v(), n(E(P), {
|
|
1029
|
+
key: 0,
|
|
1030
|
+
class: "ml-ribbon-dropdown-item__icon"
|
|
1031
|
+
}, {
|
|
1032
|
+
default: O(() => [(v(), n(C(Ve(e))))]),
|
|
1033
|
+
_: 2
|
|
1034
|
+
}, 1024)) : He(e) ? (v(), i("i", {
|
|
1035
|
+
key: 1,
|
|
1036
|
+
class: m(["ml-ribbon-dropdown-item__icon ml-ribbon-dropdown-item__icon--class", He(e)]),
|
|
1037
|
+
"aria-hidden": "true"
|
|
1038
|
+
}, null, 2)) : r("", !0), a("span", et, w(e.label), 1)])]),
|
|
879
1039
|
_: 2
|
|
880
|
-
},
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
"
|
|
884
|
-
|
|
1040
|
+
}, 1032, [
|
|
1041
|
+
"content",
|
|
1042
|
+
"disabled",
|
|
1043
|
+
"show-after",
|
|
1044
|
+
"hide-after"
|
|
1045
|
+
])]),
|
|
885
1046
|
_: 2
|
|
886
1047
|
}, 1032, ["command"]))), 128))]),
|
|
887
1048
|
_: 1
|
|
888
1049
|
})]),
|
|
889
|
-
default: O(() => [c(E(
|
|
1050
|
+
default: O(() => [c(E(ee), {
|
|
890
1051
|
type: "default",
|
|
891
1052
|
disabled: q.value,
|
|
892
|
-
"aria-label":
|
|
893
|
-
onClick:
|
|
1053
|
+
"aria-label": de.value,
|
|
1054
|
+
onClick: je
|
|
894
1055
|
}, {
|
|
895
|
-
default: O(() => [a("span",
|
|
1056
|
+
default: O(() => [a("span", Xe, [G.value ? (v(), i("span", {
|
|
896
1057
|
key: 0,
|
|
897
1058
|
class: "ml-ribbon-item-host__icon ml-ribbon-item-host__icon--dropdown-primary",
|
|
898
|
-
onClick: k(
|
|
899
|
-
}, [c(E(
|
|
1059
|
+
onClick: k(Me, ["stop"])
|
|
1060
|
+
}, [c(E(P), null, {
|
|
900
1061
|
default: O(() => [(v(), n(C(G.value)))]),
|
|
901
1062
|
_: 1
|
|
902
|
-
})])) :
|
|
1063
|
+
})])) : he.value ? (v(), i("span", {
|
|
903
1064
|
key: 1,
|
|
904
1065
|
class: "ml-ribbon-item-host__icon ml-ribbon-item-host__icon--class ml-ribbon-item-host__icon--dropdown-primary",
|
|
905
|
-
onClick: k(
|
|
1066
|
+
onClick: k(Me, ["stop"])
|
|
906
1067
|
}, [a("i", {
|
|
907
|
-
class: m(
|
|
1068
|
+
class: m(he.value),
|
|
908
1069
|
"aria-hidden": "true"
|
|
909
|
-
}, null, 2)])) : r("", !0), a("span",
|
|
910
|
-
default: O(() => [(v(), n(C(H.value ? E(
|
|
1070
|
+
}, null, 2)])) : r("", !0), a("span", Ze, [oe.value ? (v(), i("span", Qe, w(me.value), 1)) : r("", !0), c(E(P), { class: m(["ml-ribbon-item-host__dropdown-arrow", { "is-open": H.value }]) }, {
|
|
1071
|
+
default: O(() => [(v(), n(C(H.value ? E(ce) : E(z))))]),
|
|
911
1072
|
_: 1
|
|
912
1073
|
}, 8, ["class"])])])]),
|
|
913
1074
|
_: 1
|
|
914
1075
|
}, 8, ["disabled", "aria-label"])]),
|
|
915
1076
|
_: 1
|
|
916
|
-
}, 8, ["disabled", "popper-class"])) : o.item.type === "checkbox" ? (v(), n(E(
|
|
1077
|
+
}, 8, ["disabled", "popper-class"])) : o.item.type === "checkbox" ? (v(), n(E(ne), {
|
|
917
1078
|
key: 7,
|
|
918
1079
|
disabled: q.value,
|
|
919
1080
|
onChange: X
|
|
920
1081
|
}, {
|
|
921
1082
|
default: O(() => [s(w(o.item.label), 1)]),
|
|
922
1083
|
_: 1
|
|
923
|
-
}, 8, ["disabled"])) : o.item.type === "colorPicker" ? (v(), n(E(
|
|
1084
|
+
}, 8, ["disabled"])) : o.item.type === "colorPicker" ? (v(), n(E(re), {
|
|
924
1085
|
key: 8,
|
|
925
1086
|
disabled: q.value,
|
|
926
1087
|
onChange: X
|
|
927
|
-
}, null, 8, ["disabled"])) : o.item.type === "comboBox" ? (v(), n(E(
|
|
1088
|
+
}, null, 8, ["disabled"])) : o.item.type === "comboBox" ? (v(), n(E(L), {
|
|
928
1089
|
key: 9,
|
|
1090
|
+
"model-value": we.value,
|
|
929
1091
|
disabled: q.value,
|
|
930
|
-
"popper-class":
|
|
931
|
-
style: { width:
|
|
932
|
-
onChange:
|
|
1092
|
+
"popper-class": A.value,
|
|
1093
|
+
style: h({ width: Ce.value }),
|
|
1094
|
+
onChange: Re
|
|
933
1095
|
}, {
|
|
934
|
-
default: O(() => [(v(!0), i(e, null, x(
|
|
1096
|
+
default: O(() => [(v(!0), i(e, null, x(_.value, (e) => (v(), n(E(F), {
|
|
935
1097
|
key: String(e.value),
|
|
936
1098
|
label: String(e.label),
|
|
937
1099
|
value: e.value
|
|
938
1100
|
}, null, 8, ["label", "value"]))), 128))]),
|
|
939
1101
|
_: 1
|
|
940
|
-
}, 8, [
|
|
1102
|
+
}, 8, [
|
|
1103
|
+
"model-value",
|
|
1104
|
+
"disabled",
|
|
1105
|
+
"popper-class",
|
|
1106
|
+
"style"
|
|
1107
|
+
])) : (v(), n(E(ee), {
|
|
941
1108
|
key: 10,
|
|
942
1109
|
disabled: q.value,
|
|
943
|
-
"aria-label":
|
|
1110
|
+
"aria-label": de.value,
|
|
944
1111
|
onClick: X
|
|
945
1112
|
}, {
|
|
946
|
-
default: O(() => [
|
|
1113
|
+
default: O(() => [I.value ? (v(), n(E(P), {
|
|
947
1114
|
key: 0,
|
|
948
1115
|
class: "ml-ribbon-item-host__icon"
|
|
949
1116
|
}, {
|
|
950
|
-
default: O(() => [(v(), n(C(
|
|
1117
|
+
default: O(() => [(v(), n(C(I.value)))]),
|
|
951
1118
|
_: 1
|
|
952
|
-
})) :
|
|
1119
|
+
})) : ae.value ? (v(), i("i", {
|
|
953
1120
|
key: 1,
|
|
954
|
-
class: m(["ml-ribbon-item-host__icon ml-ribbon-item-host__icon--class",
|
|
1121
|
+
class: m(["ml-ribbon-item-host__icon ml-ribbon-item-host__icon--class", ae.value]),
|
|
955
1122
|
"aria-hidden": "true"
|
|
956
|
-
}, null, 2)) : r("", !0),
|
|
1123
|
+
}, null, 2)) : r("", !0), oe.value ? (v(), i("span", tt, w(o.item.label ?? o.item.id), 1)) : r("", !0)]),
|
|
957
1124
|
_: 1
|
|
958
|
-
}, 8, ["disabled", "aria-label"]))],
|
|
1125
|
+
}, 8, ["disabled", "aria-label"]))], 14, Ye)]),
|
|
959
1126
|
_: 3
|
|
960
1127
|
}, 8, [
|
|
961
1128
|
"content",
|
|
@@ -964,7 +1131,7 @@ var Y = { class: "ml-ribbon-backstage__nav" }, he = { class: "ml-ribbon-backstag
|
|
|
964
1131
|
"hide-after"
|
|
965
1132
|
]));
|
|
966
1133
|
}
|
|
967
|
-
}),
|
|
1134
|
+
}), $ = /* @__PURE__ */ l({
|
|
968
1135
|
__name: "RibbonGroupContent",
|
|
969
1136
|
props: {
|
|
970
1137
|
group: {},
|
|
@@ -973,13 +1140,13 @@ var Y = { class: "ml-ribbon-backstage__nav" }, he = { class: "ml-ribbon-backstag
|
|
|
973
1140
|
emits: ["item-click"],
|
|
974
1141
|
setup(t, { emit: r }) {
|
|
975
1142
|
let a = t, o = r;
|
|
976
|
-
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(
|
|
1143
|
+
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(Oe, {
|
|
977
1144
|
id: t.id,
|
|
978
1145
|
key: t.id,
|
|
979
1146
|
layout: t.layout ?? (a.group.orientation === "row" ? "row" : "column"),
|
|
980
1147
|
rows: t.rows
|
|
981
1148
|
}, {
|
|
982
|
-
default: O(() => [(v(!0), i(e, null, x(t.items, (e) => (v(), n(
|
|
1149
|
+
default: O(() => [(v(!0), i(e, null, x(t.items, (e) => (v(), n(nt, {
|
|
983
1150
|
id: e.id,
|
|
984
1151
|
key: e.id,
|
|
985
1152
|
item: e,
|
|
@@ -1002,15 +1169,15 @@ var Y = { class: "ml-ribbon-backstage__nav" }, he = { class: "ml-ribbon-backstag
|
|
|
1002
1169
|
"rows"
|
|
1003
1170
|
]))), 128))], 2));
|
|
1004
1171
|
}
|
|
1005
|
-
}),
|
|
1172
|
+
}), rt = ["data-priority"], it = { class: "ml-ribbon-group__body" }, at = { class: "ml-ribbon-group__footer" }, ot = { class: "ml-ribbon-group__title" }, st = [
|
|
1006
1173
|
"aria-label",
|
|
1007
1174
|
"aria-expanded",
|
|
1008
1175
|
"disabled"
|
|
1009
|
-
],
|
|
1176
|
+
], ct = { class: "ml-ribbon-group__overflow-content" }, lt = [
|
|
1010
1177
|
"aria-label",
|
|
1011
1178
|
"aria-expanded",
|
|
1012
1179
|
"disabled"
|
|
1013
|
-
],
|
|
1180
|
+
], ut = { class: "ml-ribbon-group__overflow-content" }, dt = /* @__PURE__ */ l({
|
|
1014
1181
|
__name: "RibbonGroup",
|
|
1015
1182
|
props: {
|
|
1016
1183
|
id: {},
|
|
@@ -1029,7 +1196,7 @@ var Y = { class: "ml-ribbon-backstage__nav" }, he = { class: "ml-ribbon-backstag
|
|
|
1029
1196
|
},
|
|
1030
1197
|
emits: ["item-click"],
|
|
1031
1198
|
setup(e, { emit: o }) {
|
|
1032
|
-
let s = e, l = o, d = u(
|
|
1199
|
+
let s = e, l = o, d = u(pe, null), f = t(() => s.width == null && s.autoWidth !== !1), y = t(() => {
|
|
1033
1200
|
if (typeof s.width != "number" || Number.isNaN(s.width) || s.width <= 0) return;
|
|
1034
1201
|
let e = `${s.width}px`;
|
|
1035
1202
|
return {
|
|
@@ -1038,13 +1205,13 @@ var Y = { class: "ml-ribbon-backstage__nav" }, he = { class: "ml-ribbon-backstag
|
|
|
1038
1205
|
maxWidth: e,
|
|
1039
1206
|
flex: `0 0 ${e}`
|
|
1040
1207
|
};
|
|
1041
|
-
}), x = t(() => d?.disabled.value === !0), T = b(null), k = b([]),
|
|
1042
|
-
name: "offset",
|
|
1043
|
-
options: { offset: [ne.value, 8] }
|
|
1044
|
-
}] })), I = t(() => ({ modifiers: [{
|
|
1208
|
+
}), x = t(() => d?.disabled.value === !0), T = b(null), k = b([]), te = b(null), ne = b(null), re = b(0), ie = b(0), A = se("size", ""), j = t(() => A.value || "default"), M = t(() => `ml-ribbon-group__overflow-popover ml-ribbon-group__overflow-popover--size-${j.value}`), N = t(() => ({ modifiers: [{
|
|
1045
1209
|
name: "offset",
|
|
1046
1210
|
options: { offset: [re.value, 8] }
|
|
1047
|
-
}] })),
|
|
1211
|
+
}] })), F = t(() => ({ modifiers: [{
|
|
1212
|
+
name: "offset",
|
|
1213
|
+
options: { offset: [ie.value, 8] }
|
|
1214
|
+
}] })), ae = t(() => !s.icon || typeof s.icon == "string" ? null : s.icon), L = t(() => k.value.length > 0), oe = t(() => (s.groupModel?.footerMenuItems?.length ?? 0) > 0), R = b(!1), B = b(!1), le = t(() => {
|
|
1048
1215
|
if (!s.groupModel || !k.value.length) return null;
|
|
1049
1216
|
let e = new Set(k.value), t = s.groupModel.collections?.map((t) => ({
|
|
1050
1217
|
...t,
|
|
@@ -1054,7 +1221,7 @@ var Y = { class: "ml-ribbon-backstage__nav" }, he = { class: "ml-ribbon-backstag
|
|
|
1054
1221
|
...s.groupModel,
|
|
1055
1222
|
collections: t
|
|
1056
1223
|
} : null;
|
|
1057
|
-
}),
|
|
1224
|
+
}), ue = t(() => s.groupModel?.footerMenuItems?.length ? {
|
|
1058
1225
|
id: `${s.groupModel.id}-footer-menu`,
|
|
1059
1226
|
title: "",
|
|
1060
1227
|
orientation: "row",
|
|
@@ -1064,7 +1231,7 @@ var Y = { class: "ml-ribbon-backstage__nav" }, he = { class: "ml-ribbon-backstag
|
|
|
1064
1231
|
items: s.groupModel.footerMenuItems
|
|
1065
1232
|
}]
|
|
1066
1233
|
} : null);
|
|
1067
|
-
function
|
|
1234
|
+
function de() {
|
|
1068
1235
|
let e = T.value?.querySelector(".ml-ribbon-group__content");
|
|
1069
1236
|
if (!e) {
|
|
1070
1237
|
k.value.length > 0 && (k.value = []);
|
|
@@ -1083,97 +1250,97 @@ var Y = { class: "ml-ribbon-backstage__nav" }, he = { class: "ml-ribbon-backstag
|
|
|
1083
1250
|
(i.right - t.right > .5 || i.bottom - t.bottom > .5 || t.left - i.left > .5 || t.top - i.top > .5) && n.push(r);
|
|
1084
1251
|
}), k.value.length === n.length && k.value.every((e, t) => e === n[t]) || (k.value = n);
|
|
1085
1252
|
}
|
|
1086
|
-
function
|
|
1253
|
+
function V() {
|
|
1087
1254
|
p(() => {
|
|
1088
|
-
|
|
1255
|
+
J(), H(), U(), de();
|
|
1089
1256
|
});
|
|
1090
1257
|
}
|
|
1091
|
-
function
|
|
1092
|
-
let e = T.value?.getBoundingClientRect(), t =
|
|
1258
|
+
function H() {
|
|
1259
|
+
let e = T.value?.getBoundingClientRect(), t = te.value?.getBoundingClientRect();
|
|
1093
1260
|
if (!e || !t) {
|
|
1094
|
-
|
|
1261
|
+
re.value !== 0 && (re.value = 0);
|
|
1095
1262
|
return;
|
|
1096
1263
|
}
|
|
1097
1264
|
let n = Math.round(e.left - t.left);
|
|
1098
|
-
|
|
1265
|
+
re.value !== n && (re.value = n);
|
|
1099
1266
|
}
|
|
1100
|
-
function
|
|
1101
|
-
let e = T.value?.getBoundingClientRect(), t =
|
|
1267
|
+
function U() {
|
|
1268
|
+
let e = T.value?.getBoundingClientRect(), t = ne.value?.getBoundingClientRect();
|
|
1102
1269
|
if (!e || !t) {
|
|
1103
|
-
|
|
1270
|
+
ie.value !== 0 && (ie.value = 0);
|
|
1104
1271
|
return;
|
|
1105
1272
|
}
|
|
1106
1273
|
let n = Math.round(e.left - t.left);
|
|
1107
|
-
|
|
1274
|
+
ie.value !== n && (ie.value = n);
|
|
1108
1275
|
}
|
|
1109
|
-
function
|
|
1110
|
-
|
|
1276
|
+
function W(e) {
|
|
1277
|
+
R.value = e;
|
|
1111
1278
|
}
|
|
1112
|
-
function
|
|
1113
|
-
|
|
1279
|
+
function me(e) {
|
|
1280
|
+
B.value = e;
|
|
1114
1281
|
}
|
|
1115
|
-
function
|
|
1116
|
-
x.value || (
|
|
1282
|
+
function G() {
|
|
1283
|
+
x.value || (R.value = !R.value);
|
|
1117
1284
|
}
|
|
1118
|
-
function
|
|
1119
|
-
x.value || (
|
|
1285
|
+
function he() {
|
|
1286
|
+
x.value || (B.value = !B.value);
|
|
1120
1287
|
}
|
|
1121
|
-
let
|
|
1122
|
-
function
|
|
1123
|
-
if (!
|
|
1288
|
+
let K = null, q = null;
|
|
1289
|
+
function J() {
|
|
1290
|
+
if (!K) return;
|
|
1124
1291
|
let e = T.value?.querySelector(".ml-ribbon-group__content") ?? null;
|
|
1125
|
-
|
|
1292
|
+
q !== e && (q && K.unobserve(q), e && K.observe(e), q = e);
|
|
1126
1293
|
}
|
|
1127
1294
|
return D(() => s.groupModel, () => {
|
|
1128
|
-
|
|
1295
|
+
V();
|
|
1129
1296
|
}, { deep: !0 }), D(x, (e) => {
|
|
1130
|
-
e && (
|
|
1297
|
+
e && (R.value = !1, B.value = !1);
|
|
1131
1298
|
}), g(() => {
|
|
1132
|
-
typeof ResizeObserver < "u" && (
|
|
1133
|
-
|
|
1134
|
-
}), T.value &&
|
|
1299
|
+
typeof ResizeObserver < "u" && (K = new ResizeObserver(() => {
|
|
1300
|
+
H(), U(), de();
|
|
1301
|
+
}), T.value && K.observe(T.value), J()), V();
|
|
1135
1302
|
}), _(() => {
|
|
1136
|
-
|
|
1303
|
+
K?.disconnect();
|
|
1137
1304
|
}), (t, o) => (v(), i("section", {
|
|
1138
1305
|
ref_key: "groupSectionRef",
|
|
1139
1306
|
ref: T,
|
|
1140
1307
|
class: m(["ml-ribbon-group", { "ml-ribbon-group--auto-width": f.value }]),
|
|
1141
1308
|
"data-priority": e.priority ?? 100,
|
|
1142
1309
|
style: h(y.value)
|
|
1143
|
-
}, [a("div",
|
|
1144
|
-
|
|
1310
|
+
}, [a("div", it, [S(t.$slots, "default")]), a("footer", at, [
|
|
1311
|
+
ae.value ? (v(), n(E(P), {
|
|
1145
1312
|
key: 0,
|
|
1146
1313
|
class: "ml-ribbon-group__icon"
|
|
1147
1314
|
}, {
|
|
1148
|
-
default: O(() => [(v(), n(C(
|
|
1315
|
+
default: O(() => [(v(), n(C(ae.value)))]),
|
|
1149
1316
|
_: 1
|
|
1150
1317
|
})) : r("", !0),
|
|
1151
|
-
a("span",
|
|
1152
|
-
|
|
1318
|
+
a("span", ot, w(e.title), 1),
|
|
1319
|
+
oe.value && ue.value ? (v(), n(E(I), {
|
|
1153
1320
|
key: 1,
|
|
1154
1321
|
trigger: "click",
|
|
1155
1322
|
placement: "bottom-start",
|
|
1156
1323
|
disabled: x.value,
|
|
1157
|
-
"popper-class":
|
|
1158
|
-
"popper-options":
|
|
1159
|
-
onShow: o[1] ||= (e) =>
|
|
1160
|
-
onHide: o[2] ||= (e) =>
|
|
1324
|
+
"popper-class": M.value,
|
|
1325
|
+
"popper-options": F.value,
|
|
1326
|
+
onShow: o[1] ||= (e) => W(!0),
|
|
1327
|
+
onHide: o[2] ||= (e) => W(!1)
|
|
1161
1328
|
}, {
|
|
1162
1329
|
reference: O(() => [a("button", {
|
|
1163
1330
|
ref_key: "footerTriggerRef",
|
|
1164
|
-
ref:
|
|
1331
|
+
ref: ne,
|
|
1165
1332
|
type: "button",
|
|
1166
|
-
class: m(["ml-ribbon-group__footer-trigger", { "is-open":
|
|
1333
|
+
class: m(["ml-ribbon-group__footer-trigger", { "is-open": R.value }]),
|
|
1167
1334
|
"aria-label": e.overflowTriggerAriaLabel,
|
|
1168
|
-
"aria-expanded":
|
|
1335
|
+
"aria-expanded": R.value,
|
|
1169
1336
|
disabled: x.value,
|
|
1170
|
-
onClick:
|
|
1171
|
-
}, [c(E(
|
|
1172
|
-
default: O(() => [(v(), n(C(
|
|
1337
|
+
onClick: G
|
|
1338
|
+
}, [c(E(P), null, {
|
|
1339
|
+
default: O(() => [(v(), n(C(R.value ? E(ce) : E(z))))]),
|
|
1173
1340
|
_: 1
|
|
1174
|
-
})], 10,
|
|
1175
|
-
default: O(() => [a("div",
|
|
1176
|
-
group:
|
|
1341
|
+
})], 10, st)]),
|
|
1342
|
+
default: O(() => [a("div", ct, [c($, {
|
|
1343
|
+
group: ue.value,
|
|
1177
1344
|
"gallery-preview-fallback": e.galleryPreviewFallback,
|
|
1178
1345
|
onItemClick: o[0] ||= (e) => l("item-click", e)
|
|
1179
1346
|
}, null, 8, ["group", "gallery-preview-fallback"])])]),
|
|
@@ -1183,31 +1350,31 @@ var Y = { class: "ml-ribbon-backstage__nav" }, he = { class: "ml-ribbon-backstag
|
|
|
1183
1350
|
"popper-class",
|
|
1184
1351
|
"popper-options"
|
|
1185
1352
|
])) : r("", !0),
|
|
1186
|
-
|
|
1353
|
+
L.value && le.value ? (v(), n(E(I), {
|
|
1187
1354
|
key: 2,
|
|
1188
1355
|
trigger: "click",
|
|
1189
1356
|
placement: "bottom-start",
|
|
1190
1357
|
disabled: x.value,
|
|
1191
|
-
"popper-class":
|
|
1192
|
-
"popper-options":
|
|
1193
|
-
onShow: o[4] ||= (e) =>
|
|
1194
|
-
onHide: o[5] ||= (e) =>
|
|
1358
|
+
"popper-class": M.value,
|
|
1359
|
+
"popper-options": N.value,
|
|
1360
|
+
onShow: o[4] ||= (e) => me(!0),
|
|
1361
|
+
onHide: o[5] ||= (e) => me(!1)
|
|
1195
1362
|
}, {
|
|
1196
1363
|
reference: O(() => [a("button", {
|
|
1197
1364
|
ref_key: "overflowTriggerRef",
|
|
1198
|
-
ref:
|
|
1365
|
+
ref: te,
|
|
1199
1366
|
type: "button",
|
|
1200
|
-
class: m(["ml-ribbon-group__overflow-trigger", { "is-open":
|
|
1367
|
+
class: m(["ml-ribbon-group__overflow-trigger", { "is-open": B.value }]),
|
|
1201
1368
|
"aria-label": e.overflowTriggerAriaLabel,
|
|
1202
|
-
"aria-expanded":
|
|
1369
|
+
"aria-expanded": B.value,
|
|
1203
1370
|
disabled: x.value,
|
|
1204
|
-
onClick:
|
|
1205
|
-
}, [c(E(
|
|
1206
|
-
default: O(() => [(v(), n(C(
|
|
1371
|
+
onClick: he
|
|
1372
|
+
}, [c(E(P), null, {
|
|
1373
|
+
default: O(() => [(v(), n(C(B.value ? E(ce) : E(z))))]),
|
|
1207
1374
|
_: 1
|
|
1208
|
-
})], 10,
|
|
1209
|
-
default: O(() => [a("div",
|
|
1210
|
-
group:
|
|
1375
|
+
})], 10, lt)]),
|
|
1376
|
+
default: O(() => [a("div", ut, [c($, {
|
|
1377
|
+
group: le.value,
|
|
1211
1378
|
"gallery-preview-fallback": e.galleryPreviewFallback,
|
|
1212
1379
|
onItemClick: o[3] ||= (e) => l("item-click", e)
|
|
1213
1380
|
}, null, 8, ["group", "gallery-preview-fallback"])])]),
|
|
@@ -1217,30 +1384,30 @@ var Y = { class: "ml-ribbon-backstage__nav" }, he = { class: "ml-ribbon-backstag
|
|
|
1217
1384
|
"popper-class",
|
|
1218
1385
|
"popper-options"
|
|
1219
1386
|
])) : r("", !0),
|
|
1220
|
-
e.showLauncherIcon ?? e.launcher ? (v(), n(E(
|
|
1387
|
+
e.showLauncherIcon ?? e.launcher ? (v(), n(E(ee), {
|
|
1221
1388
|
key: 3,
|
|
1222
1389
|
link: "",
|
|
1223
1390
|
class: "ml-ribbon-group__launcher",
|
|
1224
1391
|
disabled: x.value
|
|
1225
1392
|
}, {
|
|
1226
|
-
default: O(() => [c(E(
|
|
1227
|
-
default: O(() => [c(E(
|
|
1393
|
+
default: O(() => [c(E(P), null, {
|
|
1394
|
+
default: O(() => [c(E(fe))]),
|
|
1228
1395
|
_: 1
|
|
1229
1396
|
})]),
|
|
1230
1397
|
_: 1
|
|
1231
1398
|
}, 8, ["disabled"])) : r("", !0)
|
|
1232
|
-
])], 14,
|
|
1399
|
+
])], 14, rt));
|
|
1233
1400
|
}
|
|
1234
|
-
}),
|
|
1401
|
+
}), ft = ["inert", "aria-disabled"], pt = { class: "ml-ribbon__head-left" }, mt = { class: "ml-ribbon__head-right" }, ht = {
|
|
1235
1402
|
key: 2,
|
|
1236
1403
|
class: "ml-ribbon__tabs-extra"
|
|
1237
|
-
},
|
|
1404
|
+
}, gt = ["data-active-tab"], _t = {
|
|
1238
1405
|
key: 0,
|
|
1239
1406
|
class: "ml-ribbon-group ml-ribbon-group--overflow"
|
|
1240
|
-
},
|
|
1407
|
+
}, vt = { class: "ml-ribbon-group__body ml-ribbon-group__body--overflow" }, yt = ["aria-label", "disabled"], bt = { class: "ml-ribbon-overflow-list" }, xt = { class: "ml-ribbon-overflow-group__header" }, St = ["data-active-tab"], Ct = ["disabled"], wt = { class: "ml-ribbon-simplified-group__panel" }, Tt = ["data-active-tab"], Et = {
|
|
1241
1408
|
key: 0,
|
|
1242
1409
|
class: "ml-ribbon-group ml-ribbon-group--overflow"
|
|
1243
|
-
},
|
|
1410
|
+
}, Dt = { class: "ml-ribbon-group__body ml-ribbon-group__body--overflow" }, Ot = ["aria-label", "disabled"], kt = { class: "ml-ribbon-overflow-list" }, At = { class: "ml-ribbon-overflow-group__header" }, jt = ["data-active-tab"], Mt = ["disabled"], Nt = { class: "ml-ribbon-simplified-group__panel" }, Pt = 40, Ft = /* @__PURE__ */ l({
|
|
1244
1411
|
__name: "Ribbon",
|
|
1245
1412
|
props: {
|
|
1246
1413
|
id: { default: "ml-ribbon-root" },
|
|
@@ -1311,34 +1478,34 @@ var Y = { class: "ml-ribbon-backstage__nav" }, he = { class: "ml-ribbon-backstag
|
|
|
1311
1478
|
} : t;
|
|
1312
1479
|
})), t;
|
|
1313
1480
|
}
|
|
1314
|
-
function
|
|
1481
|
+
function te(e) {
|
|
1315
1482
|
return {
|
|
1316
1483
|
...e,
|
|
1317
1484
|
icon: f(e.icon),
|
|
1318
1485
|
props: k(e.props)
|
|
1319
1486
|
};
|
|
1320
1487
|
}
|
|
1321
|
-
function
|
|
1488
|
+
function ne(e) {
|
|
1322
1489
|
return {
|
|
1323
1490
|
...e,
|
|
1324
1491
|
icon: f(e.icon),
|
|
1325
|
-
footerMenuItems: e.footerMenuItems?.map(
|
|
1492
|
+
footerMenuItems: e.footerMenuItems?.map(te),
|
|
1326
1493
|
collections: e.collections?.map((e) => ({
|
|
1327
1494
|
...e,
|
|
1328
|
-
items: e.items?.map(
|
|
1495
|
+
items: e.items?.map(te)
|
|
1329
1496
|
}))
|
|
1330
1497
|
};
|
|
1331
1498
|
}
|
|
1332
|
-
function
|
|
1499
|
+
function re(e) {
|
|
1333
1500
|
return e.map((e) => ({
|
|
1334
1501
|
...e,
|
|
1335
|
-
groups: e.groups?.map(
|
|
1502
|
+
groups: e.groups?.map(ne)
|
|
1336
1503
|
}));
|
|
1337
1504
|
}
|
|
1338
|
-
function
|
|
1505
|
+
function A(e, t) {
|
|
1339
1506
|
return typeof e != "number" || Number.isNaN(e) || !Number.isFinite(e) ? t : Math.max(0, Math.round(e));
|
|
1340
1507
|
}
|
|
1341
|
-
let
|
|
1508
|
+
let j = {
|
|
1342
1509
|
layoutSwitcherTooltip: "Switch ribbon layout",
|
|
1343
1510
|
minimizeTooltip: "Minimize ribbon",
|
|
1344
1511
|
keyTipsToggleText: "Key Tips",
|
|
@@ -1353,69 +1520,69 @@ var Y = { class: "ml-ribbon-backstage__nav" }, he = { class: "ml-ribbon-backstag
|
|
|
1353
1520
|
keyTipsEmptySequence: "No key sequence",
|
|
1354
1521
|
contextualTabDefaultTitle: "Contextual",
|
|
1355
1522
|
galleryPreviewFallback: "Preview unavailable"
|
|
1356
|
-
},
|
|
1357
|
-
y(
|
|
1358
|
-
|
|
1359
|
-
}, { deep: !0 }), D(() =>
|
|
1360
|
-
e !==
|
|
1361
|
-
}), D(() =>
|
|
1523
|
+
}, M = s, N = u, { context: F, visibleTabs: ae } = q(M.id, M.tabs, M.disabled, M.activeLayout ? String(M.activeLayout).toLowerCase() === "simplified" ? "simplified" : "classic" : M.layout, M.minimized, M.activeTab || M.tabs[0]?.id || "", A(M.tooltipShowAfter, 1e3), A(M.tooltipHideAfter, 0));
|
|
1524
|
+
y(pe, F), D(() => M.tabs, (e) => {
|
|
1525
|
+
F.tabs.value = re(e), F.tabs.value.some((e) => e.id === F.activeTab.value) || (F.activeTab.value = F.tabs.value[0]?.id || "");
|
|
1526
|
+
}, { deep: !0 }), D(() => M.layout, (e) => {
|
|
1527
|
+
e !== F.layout.value && (F.layout.value = e);
|
|
1528
|
+
}), D(() => M.activeLayout, (e) => {
|
|
1362
1529
|
if (!e) return;
|
|
1363
1530
|
let t = String(e).toLowerCase() === "simplified" ? "simplified" : "classic";
|
|
1364
|
-
t !==
|
|
1365
|
-
}), D(() =>
|
|
1366
|
-
e !==
|
|
1367
|
-
}), D(() =>
|
|
1368
|
-
e !==
|
|
1369
|
-
}), D(() =>
|
|
1370
|
-
e && e !==
|
|
1371
|
-
}), D(() =>
|
|
1372
|
-
let t =
|
|
1373
|
-
t !==
|
|
1374
|
-
}), D(() =>
|
|
1375
|
-
let t =
|
|
1376
|
-
t !==
|
|
1377
|
-
}), D(
|
|
1378
|
-
|
|
1379
|
-
}), D(
|
|
1380
|
-
|
|
1381
|
-
}), D(
|
|
1382
|
-
|
|
1383
|
-
}), D(
|
|
1384
|
-
|
|
1385
|
-
}), D(
|
|
1386
|
-
|
|
1531
|
+
t !== F.layout.value && (F.layout.value = t);
|
|
1532
|
+
}), D(() => M.minimized, (e) => {
|
|
1533
|
+
e !== F.minimized.value && (F.minimized.value = e);
|
|
1534
|
+
}), D(() => M.disabled, (e) => {
|
|
1535
|
+
e !== F.disabled.value && (F.disabled.value = e);
|
|
1536
|
+
}), D(() => M.activeTab, (e) => {
|
|
1537
|
+
e && e !== F.activeTab.value && (F.activeTab.value = e);
|
|
1538
|
+
}), D(() => M.tooltipShowAfter, (e) => {
|
|
1539
|
+
let t = A(e, 1e3);
|
|
1540
|
+
t !== F.tooltipShowAfter.value && (F.tooltipShowAfter.value = t);
|
|
1541
|
+
}), D(() => M.tooltipHideAfter, (e) => {
|
|
1542
|
+
let t = A(e, 0);
|
|
1543
|
+
t !== F.tooltipHideAfter.value && (F.tooltipHideAfter.value = t);
|
|
1544
|
+
}), D(F.activeTab, (e) => {
|
|
1545
|
+
N("update:activeTab", e), N("tabChange", e);
|
|
1546
|
+
}), D(F.layout, (e) => {
|
|
1547
|
+
N("update:layout", e), N("layoutChange", e);
|
|
1548
|
+
}), D(F.minimized, (e) => {
|
|
1549
|
+
N("update:minimized", e);
|
|
1550
|
+
}), D(F.overflowOpen, (e) => {
|
|
1551
|
+
N(e ? "overflowOpen" : "overflowClose");
|
|
1552
|
+
}), D(F.backdropOpen, (e) => {
|
|
1553
|
+
N(e ? "backstageOpen" : "backstageClose");
|
|
1387
1554
|
});
|
|
1388
|
-
let
|
|
1555
|
+
let L = t(() => ae.value.find((e) => e.id === F.activeTab.value)), z = t(() => L.value?.groups?.filter((e) => e.visible !== !1) ?? []), ce = b(null), fe = b(null), V = b(null), H = b(null), U = b(!1), W = b(0), me = b({
|
|
1389
1556
|
left: "0px",
|
|
1390
1557
|
top: "0px",
|
|
1391
1558
|
width: "1px",
|
|
1392
1559
|
height: "0px"
|
|
1393
|
-
}),
|
|
1394
|
-
layoutSwitcherTooltip:
|
|
1395
|
-
minimizeTooltip:
|
|
1396
|
-
keyTipsToggleText:
|
|
1397
|
-
overflowTriggerAriaLabel:
|
|
1398
|
-
groupOverflowTriggerAriaLabel:
|
|
1399
|
-
fileMenuLabel:
|
|
1400
|
-
fileMenuOpenBackstageLabel:
|
|
1401
|
-
backstageBackLabel:
|
|
1402
|
-
backstageTitle:
|
|
1403
|
-
backstageDescription:
|
|
1404
|
-
keyTipsSequencePrefix:
|
|
1405
|
-
keyTipsEmptySequence:
|
|
1406
|
-
contextualTabDefaultTitle:
|
|
1407
|
-
galleryPreviewFallback:
|
|
1408
|
-
})),
|
|
1409
|
-
if (!
|
|
1410
|
-
let e =
|
|
1411
|
-
let n =
|
|
1560
|
+
}), G = b(/* @__PURE__ */ new Set()), he = b({}), K = se("size", ""), J = t(() => M.size || K.value || "default"), ge = t(() => `ml-ribbon-group-popover ml-ribbon-group-popover--size-${J.value}`), _e = t(() => `ml-ribbon-overflow-popover ml-ribbon-overflow-popover--size-${J.value}`), ve = t(() => `ml-ribbon-tab-panel-popover ml-ribbon-tab-panel-popover--size-${J.value}`), Y = t(() => ({
|
|
1561
|
+
layoutSwitcherTooltip: M.texts.layoutSwitcherTooltip || j.layoutSwitcherTooltip,
|
|
1562
|
+
minimizeTooltip: M.texts.minimizeTooltip || j.minimizeTooltip,
|
|
1563
|
+
keyTipsToggleText: M.texts.keyTipsToggleText || j.keyTipsToggleText,
|
|
1564
|
+
overflowTriggerAriaLabel: M.texts.overflowTriggerAriaLabel || j.overflowTriggerAriaLabel,
|
|
1565
|
+
groupOverflowTriggerAriaLabel: M.texts.groupOverflowTriggerAriaLabel || j.groupOverflowTriggerAriaLabel,
|
|
1566
|
+
fileMenuLabel: M.texts.fileMenuLabel || j.fileMenuLabel,
|
|
1567
|
+
fileMenuOpenBackstageLabel: M.texts.fileMenuOpenBackstageLabel || j.fileMenuOpenBackstageLabel,
|
|
1568
|
+
backstageBackLabel: M.texts.backstageBackLabel || j.backstageBackLabel,
|
|
1569
|
+
backstageTitle: M.texts.backstageTitle || j.backstageTitle,
|
|
1570
|
+
backstageDescription: M.texts.backstageDescription || j.backstageDescription,
|
|
1571
|
+
keyTipsSequencePrefix: M.texts.keyTipsSequencePrefix || j.keyTipsSequencePrefix,
|
|
1572
|
+
keyTipsEmptySequence: M.texts.keyTipsEmptySequence || j.keyTipsEmptySequence,
|
|
1573
|
+
contextualTabDefaultTitle: M.texts.contextualTabDefaultTitle || j.contextualTabDefaultTitle,
|
|
1574
|
+
galleryPreviewFallback: M.texts.galleryPreviewFallback || j.galleryPreviewFallback
|
|
1575
|
+
})), be = t(() => A(M.tooltipShowAfter, 1e3)), xe = t(() => A(M.tooltipHideAfter, 0)), Se = t(() => F.minimized.value ? le : B), Ce = t(() => z.value.filter((e) => !G.value.has(e.id))), we = t(() => z.value.filter((e) => G.value.has(e.id))), Ee = t(() => {
|
|
1576
|
+
if (!we.value.length) return 220;
|
|
1577
|
+
let e = we.value.reduce((e, t) => {
|
|
1578
|
+
let n = he.value[t.id] ?? ke(t);
|
|
1412
1579
|
return Math.max(e, n);
|
|
1413
1580
|
}, 0), t = Math.ceil(e + 40);
|
|
1414
1581
|
return Math.max(220, Math.min(720, t));
|
|
1415
1582
|
});
|
|
1416
|
-
function
|
|
1583
|
+
function Oe(e) {
|
|
1417
1584
|
let t = (e.collections ?? []).flatMap((e) => (e.items ?? []).map((e) => ({
|
|
1418
|
-
...
|
|
1585
|
+
...te(e),
|
|
1419
1586
|
size: "medium"
|
|
1420
1587
|
})));
|
|
1421
1588
|
return {
|
|
@@ -1428,13 +1595,13 @@ var Y = { class: "ml-ribbon-backstage__nav" }, he = { class: "ml-ribbon-backstag
|
|
|
1428
1595
|
}]
|
|
1429
1596
|
};
|
|
1430
1597
|
}
|
|
1431
|
-
function
|
|
1598
|
+
function X(e) {
|
|
1432
1599
|
return e.priority ?? 100;
|
|
1433
1600
|
}
|
|
1434
|
-
function
|
|
1601
|
+
function ke(e) {
|
|
1435
1602
|
return typeof e.width == "number" && Number.isFinite(e.width) && e.width > 0 ? e.width : e.autoWidth === !1 ? 190 : 140;
|
|
1436
1603
|
}
|
|
1437
|
-
function
|
|
1604
|
+
function Ae(e) {
|
|
1438
1605
|
let t = {};
|
|
1439
1606
|
return e.querySelectorAll(".ml-ribbon-group").forEach((e) => {
|
|
1440
1607
|
let n = e.dataset.groupId;
|
|
@@ -1443,121 +1610,121 @@ var Y = { class: "ml-ribbon-backstage__nav" }, he = { class: "ml-ribbon-backstag
|
|
|
1443
1610
|
r > 0 && (t[n] = r);
|
|
1444
1611
|
}), t;
|
|
1445
1612
|
}
|
|
1446
|
-
function
|
|
1447
|
-
let e =
|
|
1448
|
-
let n =
|
|
1449
|
-
return e + Math.max(n,
|
|
1613
|
+
function je() {
|
|
1614
|
+
let e = z.value.reduce((e, t) => {
|
|
1615
|
+
let n = he.value[t.id] ?? ke(t);
|
|
1616
|
+
return e + Math.max(n, ke(t));
|
|
1450
1617
|
}, 0);
|
|
1451
1618
|
return Math.max(220, e);
|
|
1452
1619
|
}
|
|
1453
|
-
function
|
|
1620
|
+
function Me(e) {
|
|
1454
1621
|
let t = Number.parseFloat(getComputedStyle(e).getPropertyValue("--ml-rb-overflow-slot-width"));
|
|
1455
|
-
return Number.isFinite(t) && t > 0 ? t :
|
|
1622
|
+
return Number.isFinite(t) && t > 0 ? t : Pt;
|
|
1456
1623
|
}
|
|
1457
|
-
function
|
|
1458
|
-
if (
|
|
1459
|
-
|
|
1624
|
+
function Ne() {
|
|
1625
|
+
if (F.layout.value !== "classic") {
|
|
1626
|
+
G.value = /* @__PURE__ */ new Set();
|
|
1460
1627
|
return;
|
|
1461
1628
|
}
|
|
1462
|
-
let e =
|
|
1629
|
+
let e = F.minimized.value ? H.value : V.value;
|
|
1463
1630
|
if (!e) return;
|
|
1464
|
-
let t =
|
|
1631
|
+
let t = z.value;
|
|
1465
1632
|
if (!t.length) {
|
|
1466
|
-
|
|
1633
|
+
G.value = /* @__PURE__ */ new Set();
|
|
1467
1634
|
return;
|
|
1468
1635
|
}
|
|
1469
|
-
let n = Math.round(e.getBoundingClientRect().width), r =
|
|
1470
|
-
|
|
1471
|
-
...
|
|
1636
|
+
let n = Math.round(e.getBoundingClientRect().width), r = Me(e), i = Ae(e);
|
|
1637
|
+
he.value = {
|
|
1638
|
+
...he.value,
|
|
1472
1639
|
...i
|
|
1473
1640
|
};
|
|
1474
1641
|
let a = t.filter((e) => e.enableGroupOverflow === !1), o = t.filter((e) => e.enableGroupOverflow !== !1).map((e, t) => ({
|
|
1475
1642
|
group: e,
|
|
1476
1643
|
index: t
|
|
1477
1644
|
})), s = /* @__PURE__ */ new Set(), c = [...o].sort((e, t) => {
|
|
1478
|
-
let n =
|
|
1645
|
+
let n = X(t.group) - X(e.group);
|
|
1479
1646
|
return n === 0 ? t.index - e.index : n;
|
|
1480
|
-
}), l = (e) => i[e.id] ??
|
|
1647
|
+
}), l = (e) => i[e.id] ?? ke(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;
|
|
1481
1648
|
for (; f(s) > n && p < c.length;) {
|
|
1482
1649
|
let e = c[p].group;
|
|
1483
1650
|
s.add(e.id), p += 1;
|
|
1484
1651
|
}
|
|
1485
|
-
|
|
1652
|
+
G.value = s;
|
|
1486
1653
|
}
|
|
1487
|
-
function
|
|
1654
|
+
function Pe() {
|
|
1488
1655
|
p(() => {
|
|
1489
|
-
if (
|
|
1490
|
-
|
|
1656
|
+
if (F.layout.value !== "classic" || F.minimized.value) {
|
|
1657
|
+
Ne();
|
|
1491
1658
|
return;
|
|
1492
1659
|
}
|
|
1493
|
-
if (
|
|
1494
|
-
|
|
1660
|
+
if (G.value.size === 0) {
|
|
1661
|
+
Ne();
|
|
1495
1662
|
return;
|
|
1496
1663
|
}
|
|
1497
|
-
|
|
1498
|
-
|
|
1664
|
+
G.value = /* @__PURE__ */ new Set(), p(() => {
|
|
1665
|
+
Ne();
|
|
1499
1666
|
});
|
|
1500
1667
|
});
|
|
1501
1668
|
}
|
|
1502
|
-
function
|
|
1503
|
-
let e =
|
|
1669
|
+
function Fe() {
|
|
1670
|
+
let e = ce.value, t = fe.value;
|
|
1504
1671
|
if (!e || !t) return;
|
|
1505
1672
|
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);
|
|
1506
|
-
|
|
1673
|
+
W.value = Math.round(a > 0 ? a : F.layout.value === "classic" ? je() : Math.max(360, z.value.length * 120)), me.value = {
|
|
1507
1674
|
left: `${Math.round(n.left - r.left + i)}px`,
|
|
1508
1675
|
top: "0px",
|
|
1509
1676
|
width: "1px",
|
|
1510
1677
|
height: `${Math.round(r.height)}px`
|
|
1511
1678
|
};
|
|
1512
1679
|
}
|
|
1513
|
-
function
|
|
1514
|
-
|
|
1680
|
+
function Ie() {
|
|
1681
|
+
U.value = !1;
|
|
1515
1682
|
}
|
|
1516
|
-
function
|
|
1517
|
-
if (
|
|
1518
|
-
let t =
|
|
1519
|
-
if (
|
|
1520
|
-
|
|
1683
|
+
function Le(e) {
|
|
1684
|
+
if (F.disabled.value) return;
|
|
1685
|
+
let t = F.activeTab.value === e.id;
|
|
1686
|
+
if (F.activeTab.value = e.id, !F.minimized.value) {
|
|
1687
|
+
Ie();
|
|
1521
1688
|
return;
|
|
1522
1689
|
}
|
|
1523
|
-
|
|
1524
|
-
}
|
|
1525
|
-
function Le() {
|
|
1526
|
-
I.disabled.value || I.api.toggleSimplified();
|
|
1690
|
+
Fe(), U.value = t ? !U.value : !0;
|
|
1527
1691
|
}
|
|
1528
1692
|
function Re() {
|
|
1529
|
-
|
|
1693
|
+
F.disabled.value || F.api.toggleSimplified();
|
|
1530
1694
|
}
|
|
1531
|
-
function ze(
|
|
1532
|
-
|
|
1695
|
+
function ze() {
|
|
1696
|
+
F.disabled.value || (F.minimized.value || Ie(), F.minimized.value = !F.minimized.value);
|
|
1533
1697
|
}
|
|
1534
|
-
function Be() {
|
|
1535
|
-
|
|
1698
|
+
function Be(e) {
|
|
1699
|
+
F.disabled.value || (Ie(), N("fileMenuSelect", e));
|
|
1536
1700
|
}
|
|
1537
1701
|
function Ve() {
|
|
1538
|
-
|
|
1702
|
+
F.disabled.value || (Ie(), F.backdropOpen.value = !0);
|
|
1703
|
+
}
|
|
1704
|
+
function He() {
|
|
1705
|
+
F.disabled.value || (F.backdropOpen.value = !1);
|
|
1539
1706
|
}
|
|
1540
|
-
function
|
|
1541
|
-
|
|
1542
|
-
tabId:
|
|
1707
|
+
function Z(e, t) {
|
|
1708
|
+
F.disabled.value || (N("itemClick", {
|
|
1709
|
+
tabId: F.activeTab.value,
|
|
1543
1710
|
groupId: e,
|
|
1544
1711
|
itemId: t
|
|
1545
|
-
}),
|
|
1712
|
+
}), F.minimized.value && Ie());
|
|
1546
1713
|
}
|
|
1547
|
-
function
|
|
1714
|
+
function Ue(e) {
|
|
1548
1715
|
if (!(e instanceof HTMLElement)) return !1;
|
|
1549
1716
|
if (e.isContentEditable) return !0;
|
|
1550
1717
|
let t = e.tagName;
|
|
1551
1718
|
return t === "INPUT" || t === "TEXTAREA" || t === "SELECT";
|
|
1552
1719
|
}
|
|
1553
|
-
function
|
|
1554
|
-
if (
|
|
1555
|
-
|
|
1720
|
+
function We() {
|
|
1721
|
+
if (F.disabled.value) {
|
|
1722
|
+
F.keyTips.value = [];
|
|
1556
1723
|
return;
|
|
1557
1724
|
}
|
|
1558
|
-
let e =
|
|
1725
|
+
let e = L.value;
|
|
1559
1726
|
if (!e?.groups?.length) {
|
|
1560
|
-
|
|
1727
|
+
F.keyTips.value = [];
|
|
1561
1728
|
return;
|
|
1562
1729
|
}
|
|
1563
1730
|
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) => {
|
|
@@ -1570,134 +1737,134 @@ var Y = { class: "ml-ribbon-backstage__nav" }, he = { class: "ml-ribbon-backstag
|
|
|
1570
1737
|
scope: "item"
|
|
1571
1738
|
} : null;
|
|
1572
1739
|
}).filter((e) => !!e)));
|
|
1573
|
-
|
|
1740
|
+
F.keyTips.value = t;
|
|
1574
1741
|
}
|
|
1575
|
-
function
|
|
1576
|
-
if (
|
|
1577
|
-
let t =
|
|
1742
|
+
function Ge(e) {
|
|
1743
|
+
if (F.disabled.value) return;
|
|
1744
|
+
let t = L.value;
|
|
1578
1745
|
if (t?.groups?.length) {
|
|
1579
1746
|
for (let n of t.groups) if (n.visible !== !1) for (let t of n.collections ?? []) {
|
|
1580
1747
|
let r = t.items.find((t) => t.id === e.targetId && t.disabled !== !0);
|
|
1581
1748
|
if (r) {
|
|
1582
|
-
|
|
1749
|
+
Z(n.id, r.id), F.keyTipsOpen.value = !1, F.keyTipsSequence.value = "";
|
|
1583
1750
|
return;
|
|
1584
1751
|
}
|
|
1585
1752
|
}
|
|
1586
1753
|
}
|
|
1587
1754
|
}
|
|
1588
|
-
function
|
|
1589
|
-
|
|
1755
|
+
function Ke() {
|
|
1756
|
+
F.keyTipsSequence.value = "";
|
|
1590
1757
|
}
|
|
1591
|
-
function
|
|
1592
|
-
if (!
|
|
1758
|
+
function qe(e) {
|
|
1759
|
+
if (!F.disabled.value && !Ue(e.target)) {
|
|
1593
1760
|
if (e.altKey && !e.ctrlKey && !e.metaKey && e.key === "Alt") {
|
|
1594
|
-
e.preventDefault(),
|
|
1761
|
+
e.preventDefault(), F.keyTipsOpen.value = !F.keyTipsOpen.value, F.keyTipsOpen.value || Ke();
|
|
1595
1762
|
return;
|
|
1596
1763
|
}
|
|
1597
|
-
if (
|
|
1764
|
+
if (F.keyTipsOpen.value && !(e.altKey || e.ctrlKey || e.metaKey)) {
|
|
1598
1765
|
if (e.key === "Escape") {
|
|
1599
|
-
e.preventDefault(),
|
|
1766
|
+
e.preventDefault(), F.keyTipsOpen.value = !1, Ke();
|
|
1600
1767
|
return;
|
|
1601
1768
|
}
|
|
1602
1769
|
if (e.key === "Backspace") {
|
|
1603
|
-
e.preventDefault(),
|
|
1770
|
+
e.preventDefault(), F.keyTipsSequence.value = F.keyTipsSequence.value.slice(0, -1);
|
|
1604
1771
|
return;
|
|
1605
1772
|
}
|
|
1606
1773
|
if (/^[a-z0-9]$/i.test(e.key)) {
|
|
1607
1774
|
e.preventDefault();
|
|
1608
|
-
let t = `${
|
|
1609
|
-
|
|
1610
|
-
let n = t.toLowerCase(), r =
|
|
1775
|
+
let t = `${F.keyTipsSequence.value}${e.key.toUpperCase()}`;
|
|
1776
|
+
F.keyTipsSequence.value = t;
|
|
1777
|
+
let n = t.toLowerCase(), r = F.keyTips.value.find((e) => e.key.toLowerCase() === n);
|
|
1611
1778
|
if (r) {
|
|
1612
|
-
|
|
1779
|
+
Ge(r);
|
|
1613
1780
|
return;
|
|
1614
1781
|
}
|
|
1615
|
-
|
|
1782
|
+
F.keyTips.value.some((e) => e.key.toLowerCase().startsWith(n)) || Ke();
|
|
1616
1783
|
}
|
|
1617
1784
|
}
|
|
1618
1785
|
}
|
|
1619
1786
|
}
|
|
1620
|
-
function qe(e) {
|
|
1621
|
-
return e.icon && typeof e.icon != "string" ? e.icon : e.groupIconCss ? le : null;
|
|
1622
|
-
}
|
|
1623
1787
|
function Je(e) {
|
|
1624
|
-
|
|
1788
|
+
return e.icon && typeof e.icon != "string" ? e.icon : e.groupIconCss ? ue : null;
|
|
1789
|
+
}
|
|
1790
|
+
function Ye(e) {
|
|
1791
|
+
U.value = e;
|
|
1625
1792
|
}
|
|
1626
1793
|
D([
|
|
1627
|
-
|
|
1628
|
-
() =>
|
|
1629
|
-
() =>
|
|
1794
|
+
z,
|
|
1795
|
+
() => F.layout.value,
|
|
1796
|
+
() => F.minimized.value
|
|
1630
1797
|
], () => {
|
|
1631
|
-
|
|
1798
|
+
Pe();
|
|
1632
1799
|
}), D([
|
|
1633
|
-
|
|
1634
|
-
() =>
|
|
1635
|
-
() =>
|
|
1800
|
+
L,
|
|
1801
|
+
() => F.tabs.value,
|
|
1802
|
+
() => F.disabled.value
|
|
1636
1803
|
], () => {
|
|
1637
|
-
|
|
1804
|
+
We(), Ke();
|
|
1638
1805
|
}, {
|
|
1639
1806
|
deep: !0,
|
|
1640
1807
|
immediate: !0
|
|
1641
|
-
}), D(() =>
|
|
1642
|
-
e ||
|
|
1643
|
-
}), D(() =>
|
|
1644
|
-
e && (
|
|
1808
|
+
}), D(() => F.keyTipsOpen.value, (e) => {
|
|
1809
|
+
e || Ke();
|
|
1810
|
+
}), D(() => F.disabled.value, (e) => {
|
|
1811
|
+
e && (F.overflowOpen.value = !1, F.backdropOpen.value = !1, F.keyTipsOpen.value = !1, Ie(), Ke());
|
|
1645
1812
|
}), D([
|
|
1646
|
-
() =>
|
|
1647
|
-
() =>
|
|
1648
|
-
|
|
1813
|
+
() => F.minimized.value,
|
|
1814
|
+
() => F.layout.value,
|
|
1815
|
+
L
|
|
1649
1816
|
], ([e, , t]) => {
|
|
1650
|
-
(!e || !t) &&
|
|
1651
|
-
}), D([
|
|
1652
|
-
n &&
|
|
1653
|
-
}, { flush: "post" }), D(
|
|
1817
|
+
(!e || !t) && Ie();
|
|
1818
|
+
}), D([V, H], ([e, t], [n, r]) => {
|
|
1819
|
+
n && Q && Q.unobserve(n), r && Q && Q.unobserve(r), e && Q && Q.observe(e), t && Q && Q.observe(t), (e || t) && Pe();
|
|
1820
|
+
}, { flush: "post" }), D(U, (e) => {
|
|
1654
1821
|
e && p(() => {
|
|
1655
|
-
|
|
1822
|
+
Fe(), Pe();
|
|
1656
1823
|
});
|
|
1657
1824
|
});
|
|
1658
|
-
let
|
|
1825
|
+
let Q = null;
|
|
1659
1826
|
g(() => {
|
|
1660
|
-
window.addEventListener("keydown",
|
|
1661
|
-
|
|
1662
|
-
}),
|
|
1827
|
+
window.addEventListener("keydown", qe), window.addEventListener("resize", Xe), typeof ResizeObserver < "u" && (Q = new ResizeObserver(() => {
|
|
1828
|
+
Fe(), Pe();
|
|
1829
|
+
}), V.value && Q.observe(V.value), H.value && Q.observe(H.value)), Fe(), Pe();
|
|
1663
1830
|
}), _(() => {
|
|
1664
|
-
window.removeEventListener("keydown",
|
|
1831
|
+
window.removeEventListener("keydown", qe), window.removeEventListener("resize", Xe), Q?.disconnect();
|
|
1665
1832
|
});
|
|
1666
|
-
function
|
|
1667
|
-
|
|
1833
|
+
function Xe() {
|
|
1834
|
+
U.value && Fe();
|
|
1668
1835
|
}
|
|
1669
|
-
return l(
|
|
1836
|
+
return l(F.api), (t, l) => (v(), n(E(ie), { size: M.size }, {
|
|
1670
1837
|
default: O(() => [(v(), i("section", {
|
|
1671
1838
|
ref_key: "ribbonRootRef",
|
|
1672
|
-
ref:
|
|
1673
|
-
key: E(
|
|
1839
|
+
ref: ce,
|
|
1840
|
+
key: E(F).disabled.value ? "ml-ribbon-disabled" : "ml-ribbon-enabled",
|
|
1674
1841
|
class: m(["ml-ribbon", [
|
|
1675
|
-
`ml-ribbon--${E(
|
|
1676
|
-
`ml-ribbon--size-${
|
|
1842
|
+
`ml-ribbon--${E(F).layout.value}`,
|
|
1843
|
+
`ml-ribbon--size-${J.value}`,
|
|
1677
1844
|
{
|
|
1678
|
-
"ml-ribbon--disabled": E(
|
|
1679
|
-
"ml-ribbon--minimized": E(
|
|
1680
|
-
"ml-ribbon--keytips-open": E(
|
|
1845
|
+
"ml-ribbon--disabled": E(F).disabled.value,
|
|
1846
|
+
"ml-ribbon--minimized": E(F).minimized.value,
|
|
1847
|
+
"ml-ribbon--keytips-open": E(F).keyTipsOpen.value
|
|
1681
1848
|
}
|
|
1682
1849
|
]]),
|
|
1683
|
-
inert: E(
|
|
1684
|
-
"aria-disabled": E(
|
|
1850
|
+
inert: E(F).disabled.value,
|
|
1851
|
+
"aria-disabled": E(F).disabled.value
|
|
1685
1852
|
}, [
|
|
1686
1853
|
a("header", {
|
|
1687
1854
|
ref_key: "ribbonHeaderRef",
|
|
1688
|
-
ref:
|
|
1855
|
+
ref: fe,
|
|
1689
1856
|
class: "ml-ribbon__header"
|
|
1690
1857
|
}, [
|
|
1691
|
-
a("div",
|
|
1692
|
-
s.showFileMenu ? (v(), n(
|
|
1858
|
+
a("div", pt, [
|
|
1859
|
+
s.showFileMenu ? (v(), n(De, {
|
|
1693
1860
|
key: 0,
|
|
1694
1861
|
items: s.fileMenuItems,
|
|
1695
|
-
disabled: E(
|
|
1696
|
-
label:
|
|
1697
|
-
"open-backstage-label":
|
|
1862
|
+
disabled: E(F).disabled.value,
|
|
1863
|
+
label: Y.value.fileMenuLabel,
|
|
1864
|
+
"open-backstage-label": Y.value.fileMenuOpenBackstageLabel,
|
|
1698
1865
|
"show-open-backstage": s.showOpenBackstage,
|
|
1699
|
-
onSelect:
|
|
1700
|
-
onOpenBackstage:
|
|
1866
|
+
onSelect: Be,
|
|
1867
|
+
onOpenBackstage: Ve
|
|
1701
1868
|
}, null, 8, [
|
|
1702
1869
|
"items",
|
|
1703
1870
|
"disabled",
|
|
@@ -1705,33 +1872,33 @@ var Y = { class: "ml-ribbon-backstage__nav" }, he = { class: "ml-ribbon-backstag
|
|
|
1705
1872
|
"open-backstage-label",
|
|
1706
1873
|
"show-open-backstage"
|
|
1707
1874
|
])) : r("", !0),
|
|
1708
|
-
c(
|
|
1709
|
-
tabs: E(
|
|
1710
|
-
"active-tab": E(
|
|
1711
|
-
disabled: E(
|
|
1712
|
-
"default-contextual-title":
|
|
1713
|
-
onSelect:
|
|
1875
|
+
c(Te, {
|
|
1876
|
+
tabs: E(ae),
|
|
1877
|
+
"active-tab": E(F).activeTab.value,
|
|
1878
|
+
disabled: E(F).disabled.value,
|
|
1879
|
+
"default-contextual-title": Y.value.contextualTabDefaultTitle,
|
|
1880
|
+
onSelect: Le
|
|
1714
1881
|
}, null, 8, [
|
|
1715
1882
|
"tabs",
|
|
1716
1883
|
"active-tab",
|
|
1717
1884
|
"disabled",
|
|
1718
1885
|
"default-contextual-title"
|
|
1719
1886
|
]),
|
|
1720
|
-
|
|
1887
|
+
M.hideMinimizeButton ? r("", !0) : (v(), n(E(R), {
|
|
1721
1888
|
key: 1,
|
|
1722
|
-
content:
|
|
1723
|
-
"show-after":
|
|
1724
|
-
"hide-after":
|
|
1889
|
+
content: Y.value.minimizeTooltip,
|
|
1890
|
+
"show-after": be.value,
|
|
1891
|
+
"hide-after": xe.value
|
|
1725
1892
|
}, {
|
|
1726
|
-
default: O(() => [c(E(
|
|
1893
|
+
default: O(() => [c(E(ee), {
|
|
1727
1894
|
class: m([
|
|
1728
1895
|
"ml-ribbon__control",
|
|
1729
1896
|
"ml-ribbon__control--minimize",
|
|
1730
|
-
E(
|
|
1897
|
+
E(F).minimized.value ? "ml-ribbon__control--minimize-up" : "ml-ribbon__control--minimize-down"
|
|
1731
1898
|
]),
|
|
1732
|
-
icon:
|
|
1733
|
-
disabled: E(
|
|
1734
|
-
onClick:
|
|
1899
|
+
icon: Se.value,
|
|
1900
|
+
disabled: E(F).disabled.value,
|
|
1901
|
+
onClick: ze
|
|
1735
1902
|
}, null, 8, [
|
|
1736
1903
|
"class",
|
|
1737
1904
|
"icon",
|
|
@@ -1744,19 +1911,19 @@ var Y = { class: "ml-ribbon-backstage__nav" }, he = { class: "ml-ribbon-backstag
|
|
|
1744
1911
|
"hide-after"
|
|
1745
1912
|
]))
|
|
1746
1913
|
]),
|
|
1747
|
-
a("div",
|
|
1748
|
-
|
|
1914
|
+
a("div", mt, [
|
|
1915
|
+
M.hideLayoutSwitcher ? r("", !0) : (v(), n(E(R), {
|
|
1749
1916
|
key: 0,
|
|
1750
|
-
content:
|
|
1751
|
-
"show-after":
|
|
1752
|
-
"hide-after":
|
|
1917
|
+
content: Y.value.layoutSwitcherTooltip,
|
|
1918
|
+
"show-after": be.value,
|
|
1919
|
+
"hide-after": xe.value
|
|
1753
1920
|
}, {
|
|
1754
|
-
default: O(() => [c(E(
|
|
1921
|
+
default: O(() => [c(E(ee), {
|
|
1755
1922
|
circle: "",
|
|
1756
1923
|
class: "ml-ribbon__control ml-ribbon__control--layout",
|
|
1757
|
-
icon: E(
|
|
1758
|
-
disabled: E(
|
|
1759
|
-
onClick:
|
|
1924
|
+
icon: E(de),
|
|
1925
|
+
disabled: E(F).disabled.value,
|
|
1926
|
+
onClick: Re
|
|
1760
1927
|
}, null, 8, ["icon", "disabled"])]),
|
|
1761
1928
|
_: 1
|
|
1762
1929
|
}, 8, [
|
|
@@ -1764,51 +1931,51 @@ var Y = { class: "ml-ribbon-backstage__nav" }, he = { class: "ml-ribbon-backstag
|
|
|
1764
1931
|
"show-after",
|
|
1765
1932
|
"hide-after"
|
|
1766
1933
|
])),
|
|
1767
|
-
|
|
1934
|
+
M.hideKeyTipsToggle ? r("", !0) : (v(), n(E(oe), {
|
|
1768
1935
|
key: 1,
|
|
1769
1936
|
"inline-prompt": "",
|
|
1770
1937
|
class: "ml-ribbon__control ml-ribbon__control--keytips",
|
|
1771
|
-
"active-text":
|
|
1772
|
-
"inactive-text":
|
|
1773
|
-
"model-value": E(
|
|
1774
|
-
disabled: E(
|
|
1775
|
-
onChange: l[0] ||= (e) => E(
|
|
1938
|
+
"active-text": Y.value.keyTipsToggleText,
|
|
1939
|
+
"inactive-text": Y.value.keyTipsToggleText,
|
|
1940
|
+
"model-value": E(F).keyTipsOpen.value,
|
|
1941
|
+
disabled: E(F).disabled.value,
|
|
1942
|
+
onChange: l[0] ||= (e) => E(F).keyTipsOpen.value = !E(F).keyTipsOpen.value
|
|
1776
1943
|
}, null, 8, [
|
|
1777
1944
|
"active-text",
|
|
1778
1945
|
"inactive-text",
|
|
1779
1946
|
"model-value",
|
|
1780
1947
|
"disabled"
|
|
1781
1948
|
])),
|
|
1782
|
-
t.$slots["tabs-extra"] ? (v(), i("div",
|
|
1783
|
-
activeTab: E(
|
|
1784
|
-
layout: E(
|
|
1785
|
-
minimized: E(
|
|
1786
|
-
disabled: E(
|
|
1949
|
+
t.$slots["tabs-extra"] ? (v(), i("div", ht, [S(t.$slots, "tabs-extra", {
|
|
1950
|
+
activeTab: E(F).activeTab.value,
|
|
1951
|
+
layout: E(F).layout.value,
|
|
1952
|
+
minimized: E(F).minimized.value,
|
|
1953
|
+
disabled: E(F).disabled.value
|
|
1787
1954
|
})])) : r("", !0)
|
|
1788
1955
|
]),
|
|
1789
|
-
|
|
1956
|
+
L.value ? (v(), n(E(I), {
|
|
1790
1957
|
key: 0,
|
|
1791
1958
|
placement: "bottom-start",
|
|
1792
|
-
visible:
|
|
1793
|
-
width:
|
|
1794
|
-
disabled: E(
|
|
1959
|
+
visible: U.value,
|
|
1960
|
+
width: W.value || void 0,
|
|
1961
|
+
disabled: E(F).disabled.value || !E(F).minimized.value,
|
|
1795
1962
|
"show-arrow": !1,
|
|
1796
1963
|
offset: 0,
|
|
1797
|
-
"popper-class":
|
|
1798
|
-
"onUpdate:visible":
|
|
1964
|
+
"popper-class": ve.value,
|
|
1965
|
+
"onUpdate:visible": Ye
|
|
1799
1966
|
}, {
|
|
1800
1967
|
reference: O(() => [a("span", {
|
|
1801
1968
|
"aria-hidden": "true",
|
|
1802
1969
|
class: "ml-ribbon__minimized-anchor",
|
|
1803
|
-
style: h(
|
|
1970
|
+
style: h(me.value)
|
|
1804
1971
|
}, null, 4)]),
|
|
1805
|
-
default: O(() => [E(
|
|
1972
|
+
default: O(() => [E(F).layout.value === "classic" ? (v(), i("main", {
|
|
1806
1973
|
key: 0,
|
|
1807
1974
|
ref_key: "minimizedClassicPanelRef",
|
|
1808
|
-
ref:
|
|
1975
|
+
ref: H,
|
|
1809
1976
|
class: "ml-ribbon__panel ml-ribbon__panel--floating",
|
|
1810
|
-
"data-active-tab":
|
|
1811
|
-
}, [(v(!0), i(e, null, x(
|
|
1977
|
+
"data-active-tab": L.value.id
|
|
1978
|
+
}, [(v(!0), i(e, null, x(Ce.value, (e) => (v(), n(dt, {
|
|
1812
1979
|
id: e.id,
|
|
1813
1980
|
key: e.id,
|
|
1814
1981
|
"data-group-id": e.id,
|
|
@@ -1822,14 +1989,14 @@ var Y = { class: "ml-ribbon-backstage__nav" }, he = { class: "ml-ribbon-backstag
|
|
|
1822
1989
|
launcher: e.launcher,
|
|
1823
1990
|
"show-launcher-icon": e.showLauncherIcon,
|
|
1824
1991
|
"group-model": e,
|
|
1825
|
-
"overflow-trigger-aria-label":
|
|
1826
|
-
"gallery-preview-fallback":
|
|
1827
|
-
onItemClick: l[2] ||= (e) =>
|
|
1992
|
+
"overflow-trigger-aria-label": Y.value.groupOverflowTriggerAriaLabel,
|
|
1993
|
+
"gallery-preview-fallback": Y.value.galleryPreviewFallback,
|
|
1994
|
+
onItemClick: l[2] ||= (e) => Z(e.groupId, e.itemId)
|
|
1828
1995
|
}, {
|
|
1829
|
-
default: O(() => [c(
|
|
1996
|
+
default: O(() => [c($, {
|
|
1830
1997
|
group: e,
|
|
1831
|
-
"gallery-preview-fallback":
|
|
1832
|
-
onItemClick: l[1] ||= (e) =>
|
|
1998
|
+
"gallery-preview-fallback": Y.value.galleryPreviewFallback,
|
|
1999
|
+
onItemClick: l[1] ||= (e) => Z(e.groupId, e.itemId)
|
|
1833
2000
|
}, null, 8, ["group", "gallery-preview-fallback"])]),
|
|
1834
2001
|
_: 2
|
|
1835
2002
|
}, 1032, [
|
|
@@ -1847,66 +2014,66 @@ var Y = { class: "ml-ribbon-backstage__nav" }, he = { class: "ml-ribbon-backstag
|
|
|
1847
2014
|
"group-model",
|
|
1848
2015
|
"overflow-trigger-aria-label",
|
|
1849
2016
|
"gallery-preview-fallback"
|
|
1850
|
-
]))), 128)),
|
|
2017
|
+
]))), 128)), we.value.length ? (v(), i("section", _t, [a("div", vt, [c(E(I), {
|
|
1851
2018
|
trigger: "click",
|
|
1852
2019
|
placement: "bottom-end",
|
|
1853
|
-
width:
|
|
1854
|
-
disabled: E(
|
|
2020
|
+
width: Ee.value,
|
|
2021
|
+
disabled: E(F).disabled.value,
|
|
1855
2022
|
"show-arrow": !1,
|
|
1856
|
-
"popper-class":
|
|
1857
|
-
onShow: l[4] ||= (e) => E(
|
|
1858
|
-
onHide: l[5] ||= (e) => E(
|
|
2023
|
+
"popper-class": _e.value,
|
|
2024
|
+
onShow: l[4] ||= (e) => E(F).overflowOpen.value = !0,
|
|
2025
|
+
onHide: l[5] ||= (e) => E(F).overflowOpen.value = !1
|
|
1859
2026
|
}, {
|
|
1860
2027
|
reference: O(() => [a("button", {
|
|
1861
2028
|
type: "button",
|
|
1862
2029
|
class: "ml-ribbon-overflow-trigger",
|
|
1863
|
-
"aria-label":
|
|
1864
|
-
disabled: E(
|
|
1865
|
-
}, [...l[13] ||= [a("span", { class: "ml-ribbon-overflow-trigger__dots" }, "...", -1)]], 8,
|
|
1866
|
-
default: O(() => [a("div",
|
|
2030
|
+
"aria-label": Y.value.overflowTriggerAriaLabel,
|
|
2031
|
+
disabled: E(F).disabled.value
|
|
2032
|
+
}, [...l[13] ||= [a("span", { class: "ml-ribbon-overflow-trigger__dots" }, "...", -1)]], 8, yt)]),
|
|
2033
|
+
default: O(() => [a("div", bt, [(v(!0), i(e, null, x(we.value, (e) => (v(), i("section", {
|
|
1867
2034
|
key: e.id,
|
|
1868
2035
|
class: "ml-ribbon-overflow-group"
|
|
1869
|
-
}, [a("header",
|
|
2036
|
+
}, [a("header", xt, w(e.title), 1), c($, {
|
|
1870
2037
|
group: e,
|
|
1871
|
-
"gallery-preview-fallback":
|
|
1872
|
-
onItemClick: l[3] ||= (e) =>
|
|
2038
|
+
"gallery-preview-fallback": Y.value.galleryPreviewFallback,
|
|
2039
|
+
onItemClick: l[3] ||= (e) => Z(e.groupId, e.itemId)
|
|
1873
2040
|
}, null, 8, ["group", "gallery-preview-fallback"])]))), 128))])]),
|
|
1874
2041
|
_: 1
|
|
1875
2042
|
}, 8, [
|
|
1876
2043
|
"width",
|
|
1877
2044
|
"disabled",
|
|
1878
2045
|
"popper-class"
|
|
1879
|
-
])]), l[14] ||= a("footer", { class: "ml-ribbon-group__footer ml-ribbon-group__footer--overflow" }, null, -1)])) : r("", !0)], 8,
|
|
2046
|
+
])]), l[14] ||= a("footer", { class: "ml-ribbon-group__footer ml-ribbon-group__footer--overflow" }, null, -1)])) : r("", !0)], 8, gt)) : (v(), i("main", {
|
|
1880
2047
|
key: 1,
|
|
1881
2048
|
class: "ml-ribbon__panel ml-ribbon__panel--simplified ml-ribbon__panel--floating",
|
|
1882
|
-
"data-active-tab":
|
|
1883
|
-
}, [(v(!0), i(e, null, x(
|
|
2049
|
+
"data-active-tab": L.value.id
|
|
2050
|
+
}, [(v(!0), i(e, null, x(z.value, (e) => (v(), n(E(I), {
|
|
1884
2051
|
key: e.id,
|
|
1885
2052
|
trigger: "click",
|
|
1886
2053
|
placement: "bottom-start",
|
|
1887
2054
|
width: 340,
|
|
1888
|
-
disabled: E(
|
|
2055
|
+
disabled: E(F).disabled.value,
|
|
1889
2056
|
"show-arrow": !1,
|
|
1890
|
-
"popper-class":
|
|
2057
|
+
"popper-class": ge.value
|
|
1891
2058
|
}, {
|
|
1892
2059
|
reference: O(() => [a("button", {
|
|
1893
2060
|
class: "ml-ribbon-simplified-group",
|
|
1894
2061
|
type: "button",
|
|
1895
|
-
disabled: E(
|
|
1896
|
-
}, [
|
|
2062
|
+
disabled: E(F).disabled.value
|
|
2063
|
+
}, [Je(e) ? (v(), n(E(P), {
|
|
1897
2064
|
key: 0,
|
|
1898
2065
|
class: "ml-ribbon-simplified-group__icon"
|
|
1899
2066
|
}, {
|
|
1900
|
-
default: O(() => [(v(), n(C(
|
|
2067
|
+
default: O(() => [(v(), n(C(Je(e))))]),
|
|
1901
2068
|
_: 2
|
|
1902
|
-
}, 1024)) : r("", !0), a("span", null, w(e.title), 1)], 8,
|
|
1903
|
-
default: O(() => [a("div",
|
|
1904
|
-
group:
|
|
1905
|
-
"gallery-preview-fallback":
|
|
1906
|
-
onItemClick: l[6] ||= (e) =>
|
|
2069
|
+
}, 1024)) : r("", !0), a("span", null, w(e.title), 1)], 8, Ct)]),
|
|
2070
|
+
default: O(() => [a("div", wt, [c($, {
|
|
2071
|
+
group: Oe(e),
|
|
2072
|
+
"gallery-preview-fallback": Y.value.galleryPreviewFallback,
|
|
2073
|
+
onItemClick: l[6] ||= (e) => Z(e.groupId, e.itemId)
|
|
1907
2074
|
}, null, 8, ["group", "gallery-preview-fallback"])])]),
|
|
1908
2075
|
_: 2
|
|
1909
|
-
}, 1032, ["disabled", "popper-class"]))), 128))], 8,
|
|
2076
|
+
}, 1032, ["disabled", "popper-class"]))), 128))], 8, St))]),
|
|
1910
2077
|
_: 1
|
|
1911
2078
|
}, 8, [
|
|
1912
2079
|
"visible",
|
|
@@ -1915,13 +2082,13 @@ var Y = { class: "ml-ribbon-backstage__nav" }, he = { class: "ml-ribbon-backstag
|
|
|
1915
2082
|
"popper-class"
|
|
1916
2083
|
])) : r("", !0)
|
|
1917
2084
|
], 512),
|
|
1918
|
-
!E(
|
|
2085
|
+
!E(F).minimized.value && L.value && E(F).layout.value === "classic" ? (v(), i("main", {
|
|
1919
2086
|
key: 0,
|
|
1920
2087
|
class: "ml-ribbon__panel",
|
|
1921
|
-
"data-active-tab":
|
|
2088
|
+
"data-active-tab": L.value.id,
|
|
1922
2089
|
ref_key: "classicPanelRef",
|
|
1923
|
-
ref:
|
|
1924
|
-
}, [(v(!0), i(e, null, x(
|
|
2090
|
+
ref: V
|
|
2091
|
+
}, [(v(!0), i(e, null, x(Ce.value, (e) => (v(), n(dt, {
|
|
1925
2092
|
id: e.id,
|
|
1926
2093
|
key: e.id,
|
|
1927
2094
|
"data-group-id": e.id,
|
|
@@ -1935,14 +2102,14 @@ var Y = { class: "ml-ribbon-backstage__nav" }, he = { class: "ml-ribbon-backstag
|
|
|
1935
2102
|
launcher: e.launcher,
|
|
1936
2103
|
"show-launcher-icon": e.showLauncherIcon,
|
|
1937
2104
|
"group-model": e,
|
|
1938
|
-
"overflow-trigger-aria-label":
|
|
1939
|
-
"gallery-preview-fallback":
|
|
1940
|
-
onItemClick: l[8] ||= (e) =>
|
|
2105
|
+
"overflow-trigger-aria-label": Y.value.groupOverflowTriggerAriaLabel,
|
|
2106
|
+
"gallery-preview-fallback": Y.value.galleryPreviewFallback,
|
|
2107
|
+
onItemClick: l[8] ||= (e) => Z(e.groupId, e.itemId)
|
|
1941
2108
|
}, {
|
|
1942
|
-
default: O(() => [c(
|
|
2109
|
+
default: O(() => [c($, {
|
|
1943
2110
|
group: e,
|
|
1944
|
-
"gallery-preview-fallback":
|
|
1945
|
-
onItemClick: l[7] ||= (e) =>
|
|
2111
|
+
"gallery-preview-fallback": Y.value.galleryPreviewFallback,
|
|
2112
|
+
onItemClick: l[7] ||= (e) => Z(e.groupId, e.itemId)
|
|
1946
2113
|
}, null, 8, ["group", "gallery-preview-fallback"])]),
|
|
1947
2114
|
_: 2
|
|
1948
2115
|
}, 1032, [
|
|
@@ -1960,82 +2127,82 @@ var Y = { class: "ml-ribbon-backstage__nav" }, he = { class: "ml-ribbon-backstag
|
|
|
1960
2127
|
"group-model",
|
|
1961
2128
|
"overflow-trigger-aria-label",
|
|
1962
2129
|
"gallery-preview-fallback"
|
|
1963
|
-
]))), 128)),
|
|
2130
|
+
]))), 128)), we.value.length ? (v(), i("section", Et, [a("div", Dt, [c(E(I), {
|
|
1964
2131
|
trigger: "click",
|
|
1965
2132
|
placement: "bottom-end",
|
|
1966
|
-
width:
|
|
1967
|
-
disabled: E(
|
|
1968
|
-
"popper-class":
|
|
1969
|
-
onShow: l[10] ||= (e) => E(
|
|
1970
|
-
onHide: l[11] ||= (e) => E(
|
|
2133
|
+
width: Ee.value,
|
|
2134
|
+
disabled: E(F).disabled.value,
|
|
2135
|
+
"popper-class": _e.value,
|
|
2136
|
+
onShow: l[10] ||= (e) => E(F).overflowOpen.value = !0,
|
|
2137
|
+
onHide: l[11] ||= (e) => E(F).overflowOpen.value = !1
|
|
1971
2138
|
}, {
|
|
1972
2139
|
reference: O(() => [a("button", {
|
|
1973
2140
|
type: "button",
|
|
1974
2141
|
class: "ml-ribbon-overflow-trigger",
|
|
1975
|
-
"aria-label":
|
|
1976
|
-
disabled: E(
|
|
1977
|
-
}, [...l[15] ||= [a("span", { class: "ml-ribbon-overflow-trigger__dots" }, "...", -1)]], 8,
|
|
1978
|
-
default: O(() => [a("div",
|
|
2142
|
+
"aria-label": Y.value.overflowTriggerAriaLabel,
|
|
2143
|
+
disabled: E(F).disabled.value
|
|
2144
|
+
}, [...l[15] ||= [a("span", { class: "ml-ribbon-overflow-trigger__dots" }, "...", -1)]], 8, Ot)]),
|
|
2145
|
+
default: O(() => [a("div", kt, [(v(!0), i(e, null, x(we.value, (e) => (v(), i("section", {
|
|
1979
2146
|
key: e.id,
|
|
1980
2147
|
class: "ml-ribbon-overflow-group"
|
|
1981
|
-
}, [a("header",
|
|
2148
|
+
}, [a("header", At, w(e.title), 1), c($, {
|
|
1982
2149
|
group: e,
|
|
1983
|
-
"gallery-preview-fallback":
|
|
1984
|
-
onItemClick: l[9] ||= (e) =>
|
|
2150
|
+
"gallery-preview-fallback": Y.value.galleryPreviewFallback,
|
|
2151
|
+
onItemClick: l[9] ||= (e) => Z(e.groupId, e.itemId)
|
|
1985
2152
|
}, null, 8, ["group", "gallery-preview-fallback"])]))), 128))])]),
|
|
1986
2153
|
_: 1
|
|
1987
2154
|
}, 8, [
|
|
1988
2155
|
"width",
|
|
1989
2156
|
"disabled",
|
|
1990
2157
|
"popper-class"
|
|
1991
|
-
])]), l[16] ||= a("footer", { class: "ml-ribbon-group__footer ml-ribbon-group__footer--overflow" }, null, -1)])) : r("", !0)], 8,
|
|
1992
|
-
!E(
|
|
2158
|
+
])]), l[16] ||= a("footer", { class: "ml-ribbon-group__footer ml-ribbon-group__footer--overflow" }, null, -1)])) : r("", !0)], 8, Tt)) : r("", !0),
|
|
2159
|
+
!E(F).minimized.value && L.value && E(F).layout.value === "simplified" ? (v(), i("main", {
|
|
1993
2160
|
key: 1,
|
|
1994
2161
|
class: "ml-ribbon__panel ml-ribbon__panel--simplified",
|
|
1995
|
-
"data-active-tab":
|
|
1996
|
-
}, [(v(!0), i(e, null, x(
|
|
2162
|
+
"data-active-tab": L.value.id
|
|
2163
|
+
}, [(v(!0), i(e, null, x(z.value, (e) => (v(), n(E(I), {
|
|
1997
2164
|
key: e.id,
|
|
1998
2165
|
trigger: "click",
|
|
1999
2166
|
placement: "bottom-start",
|
|
2000
2167
|
width: 340,
|
|
2001
|
-
disabled: E(
|
|
2002
|
-
"popper-class":
|
|
2168
|
+
disabled: E(F).disabled.value,
|
|
2169
|
+
"popper-class": ge.value
|
|
2003
2170
|
}, {
|
|
2004
2171
|
reference: O(() => [a("button", {
|
|
2005
2172
|
class: "ml-ribbon-simplified-group",
|
|
2006
2173
|
type: "button",
|
|
2007
|
-
disabled: E(
|
|
2008
|
-
}, [
|
|
2174
|
+
disabled: E(F).disabled.value
|
|
2175
|
+
}, [Je(e) ? (v(), n(E(P), {
|
|
2009
2176
|
key: 0,
|
|
2010
2177
|
class: "ml-ribbon-simplified-group__icon"
|
|
2011
2178
|
}, {
|
|
2012
|
-
default: O(() => [(v(), n(C(
|
|
2179
|
+
default: O(() => [(v(), n(C(Je(e))))]),
|
|
2013
2180
|
_: 2
|
|
2014
|
-
}, 1024)) : r("", !0), a("span", null, w(e.title), 1)], 8,
|
|
2015
|
-
default: O(() => [a("div",
|
|
2016
|
-
group:
|
|
2017
|
-
"gallery-preview-fallback":
|
|
2018
|
-
onItemClick: l[12] ||= (e) =>
|
|
2181
|
+
}, 1024)) : r("", !0), a("span", null, w(e.title), 1)], 8, Mt)]),
|
|
2182
|
+
default: O(() => [a("div", Nt, [c($, {
|
|
2183
|
+
group: Oe(e),
|
|
2184
|
+
"gallery-preview-fallback": Y.value.galleryPreviewFallback,
|
|
2185
|
+
onItemClick: l[12] ||= (e) => Z(e.groupId, e.itemId)
|
|
2019
2186
|
}, null, 8, ["group", "gallery-preview-fallback"])])]),
|
|
2020
2187
|
_: 2
|
|
2021
|
-
}, 1032, ["disabled", "popper-class"]))), 128))], 8,
|
|
2022
|
-
c(
|
|
2023
|
-
open: E(
|
|
2024
|
-
size:
|
|
2025
|
-
"back-label":
|
|
2026
|
-
title:
|
|
2027
|
-
description:
|
|
2028
|
-
onClose:
|
|
2188
|
+
}, 1032, ["disabled", "popper-class"]))), 128))], 8, jt)) : r("", !0),
|
|
2189
|
+
c(ye, {
|
|
2190
|
+
open: E(F).backdropOpen.value,
|
|
2191
|
+
size: J.value,
|
|
2192
|
+
"back-label": Y.value.backstageBackLabel,
|
|
2193
|
+
title: Y.value.backstageTitle,
|
|
2194
|
+
description: Y.value.backstageDescription,
|
|
2195
|
+
onClose: He
|
|
2029
2196
|
}, o({ _: 2 }, [t.$slots.backstage ? {
|
|
2030
2197
|
name: "default",
|
|
2031
2198
|
fn: O(() => [S(t.$slots, "backstage", {
|
|
2032
|
-
close:
|
|
2033
|
-
open: E(
|
|
2034
|
-
size:
|
|
2035
|
-
backLabel:
|
|
2036
|
-
title:
|
|
2037
|
-
description:
|
|
2038
|
-
disabled: E(
|
|
2199
|
+
close: He,
|
|
2200
|
+
open: E(F).backdropOpen.value,
|
|
2201
|
+
size: J.value,
|
|
2202
|
+
backLabel: Y.value.backstageBackLabel,
|
|
2203
|
+
title: Y.value.backstageTitle,
|
|
2204
|
+
description: Y.value.backstageDescription,
|
|
2205
|
+
disabled: E(F).disabled.value
|
|
2039
2206
|
})]),
|
|
2040
2207
|
key: "0"
|
|
2041
2208
|
} : void 0]), 1032, [
|
|
@@ -2045,14 +2212,14 @@ var Y = { class: "ml-ribbon-backstage__nav" }, he = { class: "ml-ribbon-backstag
|
|
|
2045
2212
|
"title",
|
|
2046
2213
|
"description"
|
|
2047
2214
|
])
|
|
2048
|
-
], 10,
|
|
2215
|
+
], 10, ft))]),
|
|
2049
2216
|
_: 3
|
|
2050
2217
|
}, 8, ["size"]));
|
|
2051
2218
|
}
|
|
2052
|
-
}),
|
|
2219
|
+
}), It = {
|
|
2053
2220
|
class: "ml-ribbon-tab-definition",
|
|
2054
2221
|
hidden: ""
|
|
2055
|
-
},
|
|
2222
|
+
}, Lt = /* @__PURE__ */ l({
|
|
2056
2223
|
__name: "RibbonTab",
|
|
2057
2224
|
props: {
|
|
2058
2225
|
id: {},
|
|
@@ -2063,13 +2230,13 @@ var Y = { class: "ml-ribbon-backstage__nav" }, he = { class: "ml-ribbon-backstag
|
|
|
2063
2230
|
contextualTitle: {}
|
|
2064
2231
|
},
|
|
2065
2232
|
setup(e) {
|
|
2066
|
-
return (e, t) => (v(), i("div",
|
|
2233
|
+
return (e, t) => (v(), i("div", It, [S(e.$slots, "default")]));
|
|
2067
2234
|
}
|
|
2068
|
-
}),
|
|
2235
|
+
}), Rt = {
|
|
2069
2236
|
key: 0,
|
|
2070
2237
|
class: "ml-ribbon-keytips",
|
|
2071
2238
|
"aria-live": "polite"
|
|
2072
|
-
},
|
|
2239
|
+
}, zt = { class: "ml-ribbon-keytips__hint" }, Bt = /* @__PURE__ */ l({
|
|
2073
2240
|
__name: "RibbonKeyTips",
|
|
2074
2241
|
props: {
|
|
2075
2242
|
open: { type: Boolean },
|
|
@@ -2104,11 +2271,11 @@ var Y = { class: "ml-ribbon-backstage__nav" }, he = { class: "ml-ribbon-backstag
|
|
|
2104
2271
|
}
|
|
2105
2272
|
return g(() => window.addEventListener("keydown", S)), _(() => window.removeEventListener("keydown", S)), D(() => s.open, (e) => {
|
|
2106
2273
|
e || y();
|
|
2107
|
-
}), (t, o) => n.open ? (v(), i("div",
|
|
2274
|
+
}), (t, o) => n.open ? (v(), i("div", Rt, [a("div", zt, w(f.value), 1), (v(!0), i(e, null, x(u.value, (e) => (v(), i("span", {
|
|
2108
2275
|
key: e.id,
|
|
2109
2276
|
class: "ml-ribbon-keytip"
|
|
2110
2277
|
}, w(e.key), 1))), 128))])) : r("", !0);
|
|
2111
2278
|
}
|
|
2112
2279
|
});
|
|
2113
2280
|
//#endregion
|
|
2114
|
-
export {
|
|
2281
|
+
export { Ft as MlRibbon, ye as MlRibbonBackstage, ze as MlRibbonButtonGroup, Oe as MlRibbonCollection, Te as MlRibbonContextualTabs, De as MlRibbonFileMenu, Fe as MlRibbonGallery, dt as MlRibbonGroup, nt as MlRibbonItemHost, Bt as MlRibbonKeyTips, We as MlRibbonSegmented, Lt as MlRibbonTab, xe as MlRibbonTabs, Je as MlRibbonTemplateItem, Ke as MlRibbonToggleButton };
|