@mlightcad/ribbon 0.1.0 → 0.1.1

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.
@@ -1,6 +1,6 @@
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
2
  import { ElButton as ee, ElButtonGroup as A, ElCheckbox as te, ElColorPicker as ne, ElConfigProvider as j, ElDrawer as M, ElDropdown as N, ElDropdownItem as P, ElDropdownMenu as F, ElIcon as I, ElOption as L, ElPopover as R, ElSegmented as re, ElSelect as z, ElSwitch as B, ElTooltip as V, useGlobalConfig as ie } from "element-plus";
3
- import { ArrowDown as H, ArrowDownBold as U, ArrowUp as ae, ArrowUpBold as W, Grid as oe, Menu as se, Promotion as ce } from "@element-plus/icons-vue";
3
+ import { ArrowDown as ae, ArrowDownBold as H, ArrowUp as U, ArrowUpBold as oe, Grid as se, Menu as ce, Promotion as W } from "@element-plus/icons-vue";
4
4
  //#region src/ribbon/context.ts
5
5
  var le = Symbol("RibbonContext");
6
6
  //#endregion
@@ -8,7 +8,7 @@ var le = Symbol("RibbonContext");
8
8
  function G(e) {
9
9
  return e == null || typeof e == "string" ? e : typeof e == "object" || typeof e == "function" ? d(T(e)) : e;
10
10
  }
11
- function K(e) {
11
+ function ue(e) {
12
12
  if (!e) return;
13
13
  let t = { ...e };
14
14
  return "icon" in t && (t.icon = G(t.icon)), Array.isArray(t.options) && (t.options = t.options.map((e) => {
@@ -20,32 +20,32 @@ function K(e) {
20
20
  } : t;
21
21
  })), t;
22
22
  }
23
- function q(e) {
23
+ function K(e) {
24
24
  return {
25
25
  ...e,
26
26
  icon: G(e.icon),
27
- props: K(e.props)
27
+ props: ue(e.props)
28
28
  };
29
29
  }
30
- function ue(e) {
30
+ function q(e) {
31
31
  return {
32
32
  ...e,
33
33
  icon: G(e.icon),
34
- footerMenuItems: e.footerMenuItems?.map(q),
34
+ footerMenuItems: e.footerMenuItems?.map(K),
35
35
  collections: e.collections?.map((e) => ({
36
36
  ...e,
37
- items: e.items.map(q)
37
+ items: e.items.map(K)
38
38
  }))
39
39
  };
40
40
  }
41
- function de(e) {
41
+ function J(e) {
42
42
  return {
43
43
  ...e,
44
- groups: e.groups?.map(ue)
44
+ groups: e.groups?.map(q)
45
45
  };
46
46
  }
47
- function J(e) {
48
- return e.map(de);
47
+ function de(e) {
48
+ return e.map(J);
49
49
  }
50
50
  function fe(e) {
51
51
  (!e.collections || e.collections.length === 0) && (e.collections = [{
@@ -62,9 +62,9 @@ function Y(e, t, n, r, i) {
62
62
  s && i(s.items);
63
63
  }
64
64
  function X(e, n, r, i, a, o, s, c) {
65
- let l = b(r), u = b(i), d = b(a), f = b(o), p = b(J(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 = {
65
+ let l = b(r), u = b(i), d = b(a), f = b(o), p = b(de(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(de(e)), f.value ||= e.id;
67
+ p.value.push(J(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 X(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 ??= [], fe(t), n.groups.push(ue(t)));
85
+ n && (n.groups ??= [], fe(t), n.groups.push(q(t)));
86
86
  },
87
87
  removeGroup(e, t) {
88
88
  let n = p.value.find((t) => t.id === e);
@@ -97,7 +97,7 @@ function X(e, n, r, i, a, o, s, c) {
97
97
  n && (n.visible = !1);
98
98
  },
99
99
  addItem(e, t, n, r) {
100
- Y(p.value, e, t, n, (e) => e.push(q(r)));
100
+ Y(p.value, e, t, n, (e) => e.push(K(r)));
101
101
  },
102
102
  removeItem(e, t, n, r) {
103
103
  Y(p.value, e, t, n, (e) => {
@@ -155,7 +155,7 @@ function X(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 Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstage__content" }, me = { key: 0 }, he = { key: 1 }, ge = /* @__PURE__ */ l({
158
+ var pe = { class: "ml-ribbon-backstage__nav" }, me = { class: "ml-ribbon-backstage__content" }, he = { key: 0 }, ge = { key: 1 }, _e = /* @__PURE__ */ l({
159
159
  __name: "RibbonBackstage",
160
160
  props: {
161
161
  open: { type: Boolean },
@@ -184,24 +184,24 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { 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", Z, [c(E(ee), {
187
+ }) : (v(), i(e, { key: 1 }, [a("aside", pe, [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", pe, [l.title ? (v(), i("h2", me, w(l.title), 1)) : r("", !0), l.description ? (v(), i("p", he, w(l.description), 1)) : r("", !0)])], 64))], 2)]),
193
+ })]), a("section", me, [l.title ? (v(), i("h2", he, w(l.title), 1)) : r("", !0), l.description ? (v(), i("p", ge, w(l.description), 1)) : r("", !0)])], 64))], 2)]),
194
194
  _: 3
195
195
  }, 8, ["model-value"]));
196
196
  }
197
- }), Q = {
197
+ }), ve = {
198
198
  class: "ml-ribbon-tabs",
199
199
  role: "tablist"
200
- }, _e = [
200
+ }, ye = [
201
201
  "aria-selected",
202
202
  "disabled",
203
203
  "onClick"
204
- ], ve = /* @__PURE__ */ l({
204
+ ], Z = /* @__PURE__ */ l({
205
205
  __name: "RibbonTabs",
206
206
  props: {
207
207
  tabs: {},
@@ -217,7 +217,7 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { 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", Q, [(v(!0), i(e, null, x(s.value, (e) => (v(), i("button", {
220
+ return (t, r) => (v(), i("div", ve, [(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 Z = { class: "ml-ribbon-backstage__nav" }, pe = { 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, _e))), 128))]));
228
+ }, w(e.title), 11, ye))), 128))]));
229
229
  }
230
- }), ye = { class: "ml-ribbon-contextual-tabs" }, be = { class: "ml-ribbon-contextual-tabs__normal" }, xe = { class: "ml-ribbon-contextual-tabs__ctx" }, Se = /* @__PURE__ */ l({
230
+ }), be = { class: "ml-ribbon-contextual-tabs" }, xe = { class: "ml-ribbon-contextual-tabs__normal" }, Se = { class: "ml-ribbon-contextual-tabs__ctx" }, Ce = /* @__PURE__ */ l({
231
231
  __name: "RibbonContextualTabs",
232
232
  props: {
233
233
  tabs: {},
@@ -238,7 +238,7 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { 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", ye, [a("div", be, [c(ve, {
241
+ return (n, s) => (v(), i("div", be, [a("div", xe, [c(Z, {
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 Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
247
247
  "tabs",
248
248
  "active-tab",
249
249
  "disabled"
250
- ])]), a("div", xe, [(v(!0), i(e, null, x(r.tabs.filter((e) => e.contextual), (e) => (v(), i("section", {
250
+ ])]), a("div", Se, [(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(ve, {
254
+ }, [a("small", null, w(e.contextualTitle || r.defaultContextualTitle), 1), c(Z, {
255
255
  tabs: [e],
256
256
  "active-tab": t.activeTab,
257
257
  disabled: r.disabled,
@@ -262,7 +262,7 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
262
262
  "disabled"
263
263
  ])], 4))), 128))])]));
264
264
  }
265
- }), Ce = ["disabled"], we = /* @__PURE__ */ l({
265
+ }), we = ["disabled"], Te = /* @__PURE__ */ l({
266
266
  __name: "RibbonFileMenu",
267
267
  props: {
268
268
  items: {},
@@ -319,11 +319,11 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { 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, Ce)]),
322
+ }, w(u.label), 11, we)]),
323
323
  _: 1
324
324
  }, 8, ["disabled", "popper-class"]));
325
325
  }
326
- }), Te = /* @__PURE__ */ l({
326
+ }), Ee = /* @__PURE__ */ l({
327
327
  __name: "RibbonCollection",
328
328
  props: {
329
329
  id: {},
@@ -337,10 +337,10 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
337
337
  style: h(r.value)
338
338
  }, [S(e.$slots, "default")], 6));
339
339
  }
340
- }), Ee = {
340
+ }), De = {
341
341
  key: 3,
342
342
  class: "ml-ribbon-item-host__label ml-ribbon-button__label"
343
- }, De = /* @__PURE__ */ l({
343
+ }, Oe = /* @__PURE__ */ l({
344
344
  name: "MlRibbonButton",
345
345
  __name: "RibbonButton",
346
346
  props: {
@@ -402,7 +402,7 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
402
402
  style: h(_.value),
403
403
  "aria-hidden": "true"
404
404
  }, null, 6)) : r("", !0),
405
- u.value ? (v(), i("span", Ee, [S(t.$slots, "label", {}, () => [s(w(l.value), 1)])])) : r("", !0),
405
+ u.value ? (v(), i("span", De, [S(t.$slots, "label", {}, () => [s(w(l.value), 1)])])) : r("", !0),
406
406
  S(t.$slots, "default")
407
407
  ]),
408
408
  _: 3
@@ -415,10 +415,10 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
415
415
  "aria-label"
416
416
  ]));
417
417
  }
418
- }), Oe = ["data-id"], ke = {
418
+ }), ke = ["data-id"], Ae = {
419
419
  key: 0,
420
420
  class: "ml-ribbon-button-group__label"
421
- }, Ae = { class: "ml-ribbon-button-group__text" }, je = /* @__PURE__ */ l({
421
+ }, je = { class: "ml-ribbon-button-group__text" }, Me = /* @__PURE__ */ l({
422
422
  __name: "RibbonButtonGroup",
423
423
  props: {
424
424
  id: {},
@@ -475,7 +475,7 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
475
475
  "ml-ribbon-button-group--equal-width": !t.wrap && t.equalWidth
476
476
  }]),
477
477
  "data-id": t.id
478
- }, [!t.hideLabel && t.label ? (v(), i("div", ke, w(t.label), 1)) : r("", !0), c(E(A), null, {
478
+ }, [!t.hideLabel && t.label ? (v(), i("div", Ae, w(t.label), 1)) : r("", !0), c(E(A), null, {
479
479
  default: O(() => [(v(!0), i(e, null, x(t.options, (e) => (v(), n(E(V), {
480
480
  key: String(e.value),
481
481
  content: g(e),
@@ -485,7 +485,7 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
485
485
  placement: "top",
486
486
  effect: "dark"
487
487
  }, {
488
- default: O(() => [c(De, {
488
+ default: O(() => [c(Oe, {
489
489
  id: String(e.value),
490
490
  class: "ml-ribbon-button-group__button",
491
491
  label: e.label,
@@ -498,7 +498,7 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
498
498
  onClick: (t) => d(e.value)
499
499
  }, o({ _: 2 }, [f(e.label) ? {
500
500
  name: "label",
501
- fn: O(() => [a("span", Ae, w(e.label), 1)]),
501
+ fn: O(() => [a("span", je, w(e.label), 1)]),
502
502
  key: "0"
503
503
  } : void 0]), 1032, [
504
504
  "id",
@@ -519,12 +519,12 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
519
519
  "hide-after"
520
520
  ]))), 128))]),
521
521
  _: 1
522
- })], 10, Oe));
522
+ })], 10, ke));
523
523
  }
524
- }), Me = { class: "ml-ribbon-item-host__content ml-ribbon-dropdown__content" }, Ne = { class: "ml-ribbon-item-host__text-row ml-ribbon-dropdown__text-row" }, Pe = {
524
+ }), Ne = { class: "ml-ribbon-item-host__content ml-ribbon-dropdown__content" }, Pe = { class: "ml-ribbon-item-host__text-row ml-ribbon-dropdown__text-row" }, Fe = {
525
525
  key: 0,
526
526
  class: "ml-ribbon-item-host__label ml-ribbon-dropdown__label"
527
- }, Fe = { class: "ml-ribbon-dropdown-item__content" }, Ie = { class: "ml-ribbon-dropdown-item__label" }, Le = /* @__PURE__ */ l({
527
+ }, Ie = { class: "ml-ribbon-dropdown-item__content" }, Le = { class: "ml-ribbon-dropdown-item__label" }, Re = /* @__PURE__ */ l({
528
528
  name: "MlRibbonDropdown",
529
529
  __name: "RibbonDropdown",
530
530
  props: {
@@ -556,9 +556,9 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
556
556
  "tooltip-change"
557
557
  ],
558
558
  setup(o, { emit: l }) {
559
- let u = o, d = l, f = ie("size", ""), p = t(() => f.value || "default"), h = b(!1), g = b(void 0), _ = t(() => Array.isArray(u.options) ? u.options : []), y = t(() => _.value.find((e) => W(e) === g.value) ?? null), T = t(() => {
559
+ let u = o, d = l, f = ie("size", ""), p = t(() => f.value || "default"), h = b(!1), g = b(void 0), _ = t(() => Array.isArray(u.options) ? u.options : []), y = t(() => _.value.find((e) => oe(e) === g.value) ?? null), T = t(() => {
560
560
  if (y.value && u.syncLabelWithSelection) {
561
- let e = se(y.value);
561
+ let e = ce(y.value);
562
562
  if (e) return e;
563
563
  }
564
564
  return G(u.label) ?? u.id;
@@ -570,13 +570,13 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
570
570
  return !u.icon || typeof u.icon == "string" ? null : u.icon;
571
571
  }), te = t(() => {
572
572
  if (y.value) {
573
- let e = U(y.value);
573
+ let e = H(y.value);
574
574
  if (e) return e;
575
575
  }
576
576
  if (typeof u.icon != "string") return null;
577
577
  let e = u.icon.trim();
578
578
  return e.length > 0 ? e : null;
579
- }), ne = t(() => !!(A.value || te.value)), j = t(() => le(y.value) ?? G(u.tooltip) ?? G(T.value) ?? G(u.label) ?? K(u.id)), M = t(() => [
579
+ }), ne = t(() => !!(A.value || te.value)), j = t(() => le(y.value) ?? G(u.tooltip) ?? G(T.value) ?? G(u.label) ?? ue(u.id)), M = t(() => [
580
580
  "ml-ribbon-dropdown-menu",
581
581
  "ml-ribbon-popper",
582
582
  `ml-ribbon-popper--size-${p.value}`,
@@ -602,43 +602,43 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
602
602
  d("click");
603
603
  return;
604
604
  }
605
- d("command", W(e));
605
+ d("command", oe(e));
606
606
  }
607
607
  function B(e) {
608
608
  if (!e || typeof e != "object") return null;
609
609
  let t = e.icon;
610
610
  return !t || typeof t == "string" ? null : t;
611
611
  }
612
- function U(e) {
612
+ function H(e) {
613
613
  if (!e || typeof e != "object") return null;
614
614
  let t = e.icon;
615
615
  return typeof t != "string" || t.trim().length === 0 ? null : t;
616
616
  }
617
- function W(e) {
617
+ function oe(e) {
618
618
  if (!(!e || typeof e != "object")) return e.value;
619
619
  }
620
- function oe(e) {
621
- let t = W(e);
620
+ function se(e) {
621
+ let t = oe(e);
622
622
  if (typeof t == "string" || typeof t == "number" || t && typeof t == "object") return t;
623
623
  }
624
- function se(e) {
624
+ function ce(e) {
625
625
  if (!e || typeof e != "object") return;
626
626
  let t = e.label;
627
627
  return typeof t == "string" ? t : void 0;
628
628
  }
629
- function ce(e) {
630
- if (typeof e == "string") return K(e);
629
+ function W(e) {
630
+ if (typeof e == "string") return ue(e);
631
631
  if (typeof e == "number" || typeof e == "boolean") return String(e);
632
632
  }
633
633
  function le(e) {
634
- if (!(!e || typeof e != "object")) return G(e.tooltip) ?? se(e) ?? ce(W(e));
634
+ if (!(!e || typeof e != "object")) return G(e.tooltip) ?? ce(e) ?? W(oe(e));
635
635
  }
636
636
  function G(e) {
637
637
  if (typeof e != "string") return;
638
638
  let t = e.trim();
639
639
  return t.length > 0 ? t : void 0;
640
640
  }
641
- function K(e) {
641
+ function ue(e) {
642
642
  let t = e.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]+/g, " ").trim();
643
643
  return t ? t.replace(/\b\w/g, (e) => e.toUpperCase()) : e;
644
644
  }
@@ -652,8 +652,8 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
652
652
  }, {
653
653
  dropdown: O(() => [c(E(F), null, {
654
654
  default: O(() => [(v(!0), i(e, null, x(_.value, (e) => (v(), n(E(P), {
655
- key: String(W(e)),
656
- command: oe(e),
655
+ key: String(oe(e)),
656
+ command: se(e),
657
657
  disabled: e.disabled === !0
658
658
  }, {
659
659
  default: O(() => [c(E(V), {
@@ -664,17 +664,17 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
664
664
  placement: "top",
665
665
  effect: "dark"
666
666
  }, {
667
- default: O(() => [a("span", Fe, [S(t.$slots, "option", { option: e }, () => [B(e) ? (v(), n(E(I), {
667
+ default: O(() => [a("span", Ie, [S(t.$slots, "option", { option: e }, () => [B(e) ? (v(), n(E(I), {
668
668
  key: 0,
669
669
  class: "ml-ribbon-dropdown-item__icon"
670
670
  }, {
671
671
  default: O(() => [(v(), n(C(B(e))))]),
672
672
  _: 2
673
- }, 1024)) : U(e) ? (v(), i("i", {
673
+ }, 1024)) : H(e) ? (v(), i("i", {
674
674
  key: 1,
675
- class: m(["ml-ribbon-dropdown-item__icon ml-ribbon-dropdown-item__icon--class", U(e)]),
675
+ class: m(["ml-ribbon-dropdown-item__icon ml-ribbon-dropdown-item__icon--class", H(e)]),
676
676
  "aria-hidden": "true"
677
- }, null, 2)) : r("", !0), a("span", Ie, w(se(e)), 1)])])]),
677
+ }, null, 2)) : r("", !0), a("span", Le, w(ce(e)), 1)])])]),
678
678
  _: 2
679
679
  }, 1032, [
680
680
  "content",
@@ -692,7 +692,7 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
692
692
  "aria-label": j.value,
693
693
  onClick: R
694
694
  }, {
695
- default: O(() => [a("span", Me, [t.$slots.icon || ne.value ? (v(), i("span", {
695
+ default: O(() => [a("span", Ne, [t.$slots.icon || ne.value ? (v(), i("span", {
696
696
  key: 0,
697
697
  class: m(["ml-ribbon-item-host__icon ml-ribbon-item-host__icon--dropdown-primary ml-ribbon-dropdown__icon", { "ml-ribbon-item-host__icon--class": te.value && !A.value && !t.$slots.icon }]),
698
698
  onClick: k(z, ["stop"])
@@ -703,11 +703,11 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
703
703
  key: 1,
704
704
  class: m(te.value),
705
705
  "aria-hidden": "true"
706
- }, null, 2)) : r("", !0)])], 2)) : r("", !0), a("span", Ne, [D.value ? (v(), i("span", Pe, [S(t.$slots, "label", {
706
+ }, null, 2)) : r("", !0)])], 2)) : r("", !0), a("span", Pe, [D.value ? (v(), i("span", Fe, [S(t.$slots, "label", {
707
707
  selectedOption: y.value,
708
708
  label: T.value
709
709
  }, () => [s(w(T.value), 1)])])) : r("", !0), c(E(I), { class: m(["ml-ribbon-item-host__dropdown-arrow ml-ribbon-dropdown__arrow", { "is-open": h.value }]) }, {
710
- default: O(() => [(v(), n(C(h.value ? E(ae) : E(H))))]),
710
+ default: O(() => [(v(), n(C(h.value ? E(U) : E(ae))))]),
711
711
  _: 1
712
712
  }, 8, ["class"])])])]),
713
713
  _: 3
@@ -719,10 +719,10 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
719
719
  "popper-class"
720
720
  ]));
721
721
  }
722
- }), Re = {
722
+ }), ze = {
723
723
  key: 0,
724
724
  class: "ml-ribbon-gallery__title"
725
- }, ze = { class: "ml-ribbon-gallery__categories" }, Be = { class: "ml-ribbon-gallery__category-title" }, Ve = { class: "ml-ribbon-gallery__grid" }, He = ["disabled", "onClick"], Ue = { class: "ml-ribbon-gallery__preview" }, We = { class: "ml-ribbon-gallery__label" }, Ge = /* @__PURE__ */ l({
725
+ }, Be = { class: "ml-ribbon-gallery__categories" }, Ve = { class: "ml-ribbon-gallery__category-title" }, He = { class: "ml-ribbon-gallery__grid" }, Ue = ["disabled", "onClick"], We = { class: "ml-ribbon-gallery__preview" }, Q = { class: "ml-ribbon-gallery__label" }, Ge = /* @__PURE__ */ l({
726
726
  __name: "RibbonGallery",
727
727
  props: {
728
728
  id: {},
@@ -740,27 +740,27 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
740
740
  function l(e) {
741
741
  o.disabled || (c.value = e, s("select", e));
742
742
  }
743
- return (n, s) => (v(), i("div", { class: m(["ml-ribbon-gallery", { "is-disabled": t.disabled }]) }, [t.label ? (v(), i("div", Re, w(t.label), 1)) : r("", !0), a("div", ze, [(v(!0), i(e, null, x(t.categories, (n) => (v(), i("section", {
743
+ return (n, s) => (v(), i("div", { class: m(["ml-ribbon-gallery", { "is-disabled": t.disabled }]) }, [t.label ? (v(), i("div", ze, w(t.label), 1)) : r("", !0), a("div", Be, [(v(!0), i(e, null, x(t.categories, (n) => (v(), i("section", {
744
744
  key: n.id,
745
745
  class: "ml-ribbon-gallery__category"
746
- }, [a("h4", Be, w(n.title), 1), a("div", Ve, [(v(!0), i(e, null, x(n.items, (e) => (v(), i("button", {
746
+ }, [a("h4", Ve, w(n.title), 1), a("div", He, [(v(!0), i(e, null, x(n.items, (e) => (v(), i("button", {
747
747
  key: e.id,
748
748
  type: "button",
749
749
  class: m(["ml-ribbon-gallery__item", { "is-selected": c.value === e.id }]),
750
750
  disabled: t.disabled,
751
751
  onClick: (t) => l(e.id)
752
- }, [a("div", Ue, w(e.preview ?? o.previewFallback), 1), a("div", We, w(e.label), 1)], 10, He))), 128))])]))), 128))])], 2));
752
+ }, [a("div", We, w(e.preview ?? o.previewFallback), 1), a("div", Q, w(e.label), 1)], 10, Ue))), 128))])]))), 128))])], 2));
753
753
  }
754
754
  }), Ke = ["data-id"], qe = {
755
755
  key: 0,
756
756
  class: "ml-ribbon-segmented__label"
757
- }, Je = ["data-option-value"], $ = {
757
+ }, Je = ["data-option-value"], Ye = {
758
758
  key: 2,
759
759
  class: "ml-ribbon-segmented__option-label"
760
- }, Ye = {
760
+ }, Xe = {
761
761
  key: 3,
762
762
  class: "ml-ribbon-segmented__option-sr-label"
763
- }, Xe = /* @__PURE__ */ l({
763
+ }, Ze = /* @__PURE__ */ l({
764
764
  __name: "RibbonSegmented",
765
765
  props: {
766
766
  id: {},
@@ -840,7 +840,7 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
840
840
  key: 1,
841
841
  class: m(["ml-ribbon-segmented__option-icon ml-ribbon-item-host__icon--class", g(e)]),
842
842
  "aria-hidden": "true"
843
- }, null, 2)) : r("", !0), _(e) ? (v(), i("span", $, w(p(e)), 1)) : (v(), i("span", Ye, w(p(e)), 1))], 8, Je)]),
843
+ }, null, 2)) : r("", !0), _(e) ? (v(), i("span", Ye, w(p(e)), 1)) : (v(), i("span", Xe, w(p(e)), 1))], 8, Je)]),
844
844
  _: 1
845
845
  }, 8, [
846
846
  "options",
@@ -851,7 +851,7 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
851
851
  "aria-label"
852
852
  ])], 8, Ke));
853
853
  }
854
- }), Ze = /* @__PURE__ */ l({
854
+ }), $ = /* @__PURE__ */ l({
855
855
  __name: "RibbonToggleButton",
856
856
  props: {
857
857
  id: {},
@@ -885,7 +885,7 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
885
885
  let e = !o.value;
886
886
  o.value = e, a("change", e);
887
887
  }
888
- return (t, r) => (v(), n(De, {
888
+ return (t, r) => (v(), n(Oe, {
889
889
  id: e.id,
890
890
  class: m(["ml-ribbon-toggle", { "is-active": s.value }]),
891
891
  icon: c.value,
@@ -932,27 +932,28 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
932
932
  id: {},
933
933
  item: {},
934
934
  groupId: {},
935
- galleryPreviewFallback: {}
935
+ galleryPreviewFallback: {},
936
+ disabled: { type: Boolean }
936
937
  },
937
938
  emits: ["item-click"],
938
939
  setup(o, { emit: c }) {
939
- let l = o, d = c, p = u(le, null), g = t(() => Array.isArray(l.item.props?.options) ? l.item.props.options : []), _ = ie("size", ""), y = t(() => _.value || "default"), T = t(() => be(p?.tooltipShowAfter.value, 1e3)), k = t(() => be(p?.tooltipHideAfter.value, 0)), ee = t(() => `ml-ribbon-select-dropdown ml-ribbon-popper ml-ribbon-popper--size-${y.value}`), A = t(() => l.item.props?.icon || l.item.icon), j = t(() => l.item.hideLabel !== !0), M = b(void 0), N = t(() => l.item.type === "dropdown" && M.value ? M.value : ye(l.item.tooltip) ?? ye(l.item.label) ?? Te(l.item) ?? Ee(l.item.id)), P = t(() => l.item.type !== "buttonGroup"), F = t(() => !P.value || !N.value), I = t(() => N.value ?? l.item.id), R = t(() => l.item.keyTip?.trim().toUpperCase() ?? ""), re = t(() => {
940
- if (!p?.keyTipsOpen.value || p?.disabled.value || !R.value) return !1;
940
+ let l = o, d = c, p = u(le, null), g = t(() => Array.isArray(l.item.props?.options) ? l.item.props.options : []), _ = ie("size", ""), y = t(() => _.value || "default"), T = t(() => xe(p?.tooltipShowAfter.value, 1e3)), k = t(() => xe(p?.tooltipHideAfter.value, 0)), ee = t(() => `ml-ribbon-select-dropdown ml-ribbon-popper ml-ribbon-popper--size-${y.value}`), A = t(() => l.item.props?.icon || l.item.icon), j = t(() => l.item.hideLabel !== !0), M = b(void 0), N = t(() => l.item.type === "dropdown" && M.value ? M.value : be(l.item.tooltip) ?? be(l.item.label) ?? Ee(l.item) ?? De(l.item.id)), P = t(() => l.item.type !== "buttonGroup"), F = t(() => !P.value || !N.value), I = t(() => N.value ?? l.item.id), R = t(() => l.item.keyTip?.trim().toUpperCase() ?? ""), re = t(() => {
941
+ if (!p?.keyTipsOpen.value || p?.disabled.value || l.disabled === !0 || !R.value) return !1;
941
942
  let e = p.keyTipsSequence.value.toLowerCase();
942
943
  return e ? R.value.toLowerCase().startsWith(e) : !0;
943
- }), B = t(() => l.item.disabled === !0 || p?.disabled.value === !0), H = t(() => l.item.props?.modelValue), U = t(() => l.item.props?.activeLabel), ae = t(() => l.item.props?.inactiveLabel), W = t(() => {
944
+ }), B = t(() => l.disabled === !0 || l.item.disabled === !0 || p?.disabled.value === !0), ae = t(() => l.item.props?.modelValue), H = t(() => l.item.props?.activeLabel), U = t(() => l.item.props?.inactiveLabel), oe = t(() => {
944
945
  let e = l.item.props?.component;
945
946
  return !e || typeof e == "string" ? null : e;
946
- }), oe = t(() => {
947
+ }), se = t(() => {
947
948
  let e = l.item.props?.componentProps;
948
949
  return !e || typeof e != "object" || Array.isArray(e) ? {} : e;
949
- }), se = t(() => l.item.props?.wrap !== !1), ce = t(() => l.item.props?.equalWidth === !0), G = t(() => {
950
+ }), ce = t(() => l.item.props?.wrap !== !1), W = t(() => l.item.props?.equalWidth === !0), G = t(() => {
950
951
  let e = l.item.props?.buttonSize;
951
952
  if (e === "large" || e === "default" || e === "small") return e;
952
- }), K = t(() => Ce(l.item.props?.iconSize)), q = t(() => xe(l.item.props?.width ?? l.item.props?.comboWidth, "92px")), ue = t(() => l.item.props?.modelValue), de = t(() => we(l.item.props?.labelWrapLines)), J = t(() => Se(l.item.props?.labelWrapWidth)), fe = t(() => l.item.type === "button" && l.item.size === "large" && j.value && (de.value ?? 0) > 1), Y = t(() => {
953
+ }), ue = t(() => we(l.item.props?.iconSize)), K = t(() => Se(l.item.props?.width ?? l.item.props?.comboWidth, "92px")), q = t(() => l.item.props?.modelValue), J = t(() => Te(l.item.props?.labelWrapLines)), de = t(() => Ce(l.item.props?.labelWrapWidth)), fe = t(() => l.item.type === "button" && l.item.size === "large" && j.value && (J.value ?? 0) > 1), Y = t(() => {
953
954
  if (!fe.value) return {};
954
- let e = { "--ml-rb-item-label-max-lines": String(de.value ?? 2) };
955
- return J.value && (e["--ml-rb-item-label-wrap-width"] = J.value), e;
955
+ let e = { "--ml-rb-item-label-max-lines": String(J.value ?? 2) };
956
+ return de.value && (e["--ml-rb-item-label-wrap-width"] = de.value), e;
956
957
  });
957
958
  D(() => l.item.id, () => {
958
959
  M.value = void 0;
@@ -960,7 +961,7 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
960
961
  function X() {
961
962
  B.value || d("item-click", l.id);
962
963
  }
963
- function Z(e) {
964
+ function pe(e) {
964
965
  if (!B.value) {
965
966
  if (typeof e == "string" || typeof e == "number") {
966
967
  d("item-click", String(e));
@@ -969,10 +970,10 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
969
970
  X();
970
971
  }
971
972
  }
972
- function pe(e) {
973
+ function me(e) {
973
974
  M.value = e;
974
975
  }
975
- function me(e) {
976
+ function he(e) {
976
977
  if (!B.value) {
977
978
  if (typeof e == "string" || typeof e == "number" || typeof e == "boolean") {
978
979
  d("item-click", String(e));
@@ -981,7 +982,7 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
981
982
  X();
982
983
  }
983
984
  }
984
- function he(e) {
985
+ function ge(e) {
985
986
  if (B.value) return;
986
987
  let t = e ? l.item.props?.activeValue : l.item.props?.inactiveValue;
987
988
  if (typeof t == "string" || typeof t == "number" || typeof t == "boolean") {
@@ -990,7 +991,7 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
990
991
  }
991
992
  d("item-click", String(e));
992
993
  }
993
- function ge(e) {
994
+ function _e(e) {
994
995
  if (!B.value) {
995
996
  if (typeof e == "string" || typeof e == "number" || typeof e == "boolean") {
996
997
  d("item-click", String(e));
@@ -999,7 +1000,7 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
999
1000
  X();
1000
1001
  }
1001
1002
  }
1002
- function Q(e) {
1003
+ function ve(e) {
1003
1004
  if (!B.value) {
1004
1005
  if (l.item.props?.emitValueOnChange === !0 && (typeof e == "string" || typeof e == "number" || typeof e == "boolean")) {
1005
1006
  d("item-click", String(e));
@@ -1008,7 +1009,7 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
1008
1009
  X();
1009
1010
  }
1010
1011
  }
1011
- function _e(e) {
1012
+ function ye(e) {
1012
1013
  if (!B.value) {
1013
1014
  if (typeof e == "string" || typeof e == "number" || typeof e == "boolean") {
1014
1015
  d("item-click", String(e));
@@ -1017,20 +1018,20 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
1017
1018
  X();
1018
1019
  }
1019
1020
  }
1020
- function ve(e) {
1021
+ function Z(e) {
1021
1022
  if (!e || typeof e != "object") return;
1022
1023
  let t = e.label;
1023
1024
  return typeof t == "string" ? t : void 0;
1024
1025
  }
1025
- function ye(e) {
1026
+ function be(e) {
1026
1027
  if (typeof e != "string") return;
1027
1028
  let t = e.trim();
1028
1029
  return t.length > 0 ? t : void 0;
1029
1030
  }
1030
- function be(e, t) {
1031
+ function xe(e, t) {
1031
1032
  return typeof e != "number" || Number.isNaN(e) || !Number.isFinite(e) ? t : Math.max(0, Math.round(e));
1032
1033
  }
1033
- function xe(e, t) {
1034
+ function Se(e, t) {
1034
1035
  if (typeof e == "number" && Number.isFinite(e) && e > 0) return `${e}px`;
1035
1036
  if (typeof e == "string") {
1036
1037
  let n = e.trim();
@@ -1038,27 +1039,27 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
1038
1039
  }
1039
1040
  return t;
1040
1041
  }
1041
- function Se(e) {
1042
+ function Ce(e) {
1042
1043
  if (typeof e == "number" && Number.isFinite(e) && e > 0) return `${e}px`;
1043
1044
  if (typeof e == "string") {
1044
1045
  let t = e.trim();
1045
1046
  return t ? t.toLowerCase() === "full" ? "100%" : t : void 0;
1046
1047
  }
1047
1048
  }
1048
- function Ce(e) {
1049
+ function we(e) {
1049
1050
  if (typeof e == "number" && Number.isFinite(e) && e > 0) return `${e}px`;
1050
1051
  if (typeof e != "string") return;
1051
1052
  let t = e.trim();
1052
1053
  return t.length > 0 ? t : void 0;
1053
1054
  }
1054
- function we(e) {
1055
+ function Te(e) {
1055
1056
  if (!(typeof e != "number" || Number.isNaN(e) || !Number.isFinite(e))) return Math.max(1, Math.round(e));
1056
1057
  }
1057
- function Te(e) {
1058
- let t = g.value.map((e) => ve(e)).filter((e) => !!e);
1058
+ function Ee(e) {
1059
+ let t = g.value.map((e) => Z(e)).filter((e) => !!e);
1059
1060
  if (t.length) return e.type === "buttonGroup" ? t.join(" / ") : t[0];
1060
1061
  }
1061
- function Ee(e) {
1062
+ function De(e) {
1062
1063
  let t = e.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]+/g, " ").trim();
1063
1064
  return t ? t.replace(/\b\w/g, (e) => e.toUpperCase()) : e;
1064
1065
  }
@@ -1082,20 +1083,20 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
1082
1083
  style: h(Y.value),
1083
1084
  "data-item-id": o.id,
1084
1085
  role: "group"
1085
- }, [re.value ? (v(), i("span", tt, w(R.value), 1)) : r("", !0), o.item.type === "buttonGroup" ? (v(), n(je, {
1086
+ }, [re.value ? (v(), i("span", tt, w(R.value), 1)) : r("", !0), o.item.type === "buttonGroup" ? (v(), n(Me, {
1086
1087
  key: 1,
1087
1088
  id: o.item.id,
1088
1089
  label: o.item.label ?? "",
1089
1090
  options: o.item.props?.options ?? [],
1090
1091
  "hide-label": o.item.hideLabel === !0,
1091
- wrap: se.value,
1092
- "equal-width": ce.value,
1092
+ wrap: ce.value,
1093
+ "equal-width": W.value,
1093
1094
  "button-size": G.value,
1094
- "icon-size": K.value,
1095
+ "icon-size": ue.value,
1095
1096
  "tooltip-show-after": T.value,
1096
1097
  "tooltip-hide-after": k.value,
1097
1098
  disabled: B.value,
1098
- onChange: ge
1099
+ onChange: _e
1099
1100
  }, null, 8, [
1100
1101
  "id",
1101
1102
  "label",
@@ -1108,7 +1109,7 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
1108
1109
  "tooltip-show-after",
1109
1110
  "tooltip-hide-after",
1110
1111
  "disabled"
1111
- ])) : o.item.type === "segmented" ? (v(), n(Xe, {
1112
+ ])) : o.item.type === "segmented" ? (v(), n(Ze, {
1112
1113
  key: 2,
1113
1114
  id: o.item.id,
1114
1115
  label: o.item.label ?? o.item.id,
@@ -1118,7 +1119,7 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
1118
1119
  block: o.item.props?.block === !0,
1119
1120
  disabled: B.value,
1120
1121
  "hide-label": o.item.hideLabel === !0,
1121
- onChange: me
1122
+ onChange: he
1122
1123
  }, null, 8, [
1123
1124
  "id",
1124
1125
  "label",
@@ -1128,18 +1129,18 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
1128
1129
  "block",
1129
1130
  "disabled",
1130
1131
  "hide-label"
1131
- ])) : o.item.type === "toggle" ? (v(), n(Ze, {
1132
+ ])) : o.item.type === "toggle" ? (v(), n($, {
1132
1133
  key: 3,
1133
1134
  id: o.item.id,
1134
1135
  label: o.item.label ?? o.item.id,
1135
- "model-value": H.value,
1136
+ "model-value": ae.value,
1136
1137
  "active-icon": o.item.props?.activeIcon ?? o.item.props?.icon ?? o.item.icon,
1137
1138
  "inactive-icon": o.item.props?.inactiveIcon ?? o.item.props?.icon ?? o.item.icon,
1138
- "active-label": U.value,
1139
- "inactive-label": ae.value,
1139
+ "active-label": H.value,
1140
+ "inactive-label": U.value,
1140
1141
  disabled: B.value,
1141
1142
  "hide-label": o.item.hideLabel === !0,
1142
- onChange: he
1143
+ onChange: ge
1143
1144
  }, null, 8, [
1144
1145
  "id",
1145
1146
  "label",
@@ -1170,11 +1171,11 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
1170
1171
  item: o.item,
1171
1172
  disabled: B.value
1172
1173
  }, {
1173
- default: O(() => [W.value ? (v(), n(C(W.value), f({ key: 0 }, oe.value, {
1174
+ default: O(() => [oe.value ? (v(), n(C(oe.value), f({ key: 0 }, se.value, {
1174
1175
  item: o.item,
1175
1176
  "group-id": o.groupId,
1176
1177
  disabled: B.value,
1177
- "emit-item-click": _e
1178
+ "emit-item-click": ye
1178
1179
  }), null, 16, [
1179
1180
  "item",
1180
1181
  "group-id",
@@ -1189,7 +1190,7 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
1189
1190
  "id",
1190
1191
  "item",
1191
1192
  "disabled"
1192
- ])) : o.item.type === "dropdown" ? (v(), n(Le, {
1193
+ ])) : o.item.type === "dropdown" ? (v(), n(Re, {
1193
1194
  key: 6,
1194
1195
  id: o.item.id,
1195
1196
  label: o.item.label ?? o.item.id,
@@ -1202,8 +1203,8 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
1202
1203
  "sync-label-with-selection": o.item.props?.syncLabelWithSelection === !0,
1203
1204
  "tooltip-show-after": T.value,
1204
1205
  "tooltip-hide-after": k.value,
1205
- onCommand: Z,
1206
- onTooltipChange: pe,
1206
+ onCommand: pe,
1207
+ onTooltipChange: me,
1207
1208
  onClick: X
1208
1209
  }, null, 8, [
1209
1210
  "id",
@@ -1230,11 +1231,11 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
1230
1231
  onChange: X
1231
1232
  }, null, 8, ["disabled"])) : o.item.type === "comboBox" ? (v(), n(E(z), {
1232
1233
  key: 9,
1233
- "model-value": ue.value,
1234
+ "model-value": q.value,
1234
1235
  disabled: B.value,
1235
1236
  "popper-class": ee.value,
1236
- style: h({ width: q.value }),
1237
- onChange: Q
1237
+ style: h({ width: K.value }),
1238
+ onChange: ve
1238
1239
  }, {
1239
1240
  default: O(() => [(v(!0), i(e, null, x(g.value, (e) => (v(), n(E(L), {
1240
1241
  key: String(e.value),
@@ -1247,7 +1248,7 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
1247
1248
  "disabled",
1248
1249
  "popper-class",
1249
1250
  "style"
1250
- ])) : (v(), n(De, {
1251
+ ])) : (v(), n(Oe, {
1251
1252
  key: 10,
1252
1253
  id: o.item.id,
1253
1254
  label: o.item.label ?? o.item.id,
@@ -1276,12 +1277,13 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
1276
1277
  __name: "RibbonGroupContent",
1277
1278
  props: {
1278
1279
  group: {},
1279
- galleryPreviewFallback: {}
1280
+ galleryPreviewFallback: {},
1281
+ disabled: { type: Boolean }
1280
1282
  },
1281
1283
  emits: ["item-click"],
1282
1284
  setup(t, { emit: r }) {
1283
1285
  let a = t, o = r;
1284
- 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(Te, {
1286
+ 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(Ee, {
1285
1287
  id: t.id,
1286
1288
  key: t.id,
1287
1289
  layout: t.layout ?? (a.group.orientation === "row" ? "row" : "column"),
@@ -1293,6 +1295,7 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
1293
1295
  item: e,
1294
1296
  "group-id": a.group.id,
1295
1297
  "gallery-preview-fallback": a.galleryPreviewFallback,
1298
+ disabled: a.disabled,
1296
1299
  onItemClick: r[0] ||= (e) => o("item-click", {
1297
1300
  groupId: a.group.id,
1298
1301
  itemId: e
@@ -1301,7 +1304,8 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
1301
1304
  "id",
1302
1305
  "item",
1303
1306
  "group-id",
1304
- "gallery-preview-fallback"
1307
+ "gallery-preview-fallback",
1308
+ "disabled"
1305
1309
  ]))), 128))]),
1306
1310
  _: 2
1307
1311
  }, 1032, [
@@ -1326,18 +1330,18 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
1326
1330
  icon: {},
1327
1331
  groupIconCss: {},
1328
1332
  orientation: {},
1329
- autoWidth: { type: Boolean },
1330
1333
  width: {},
1331
1334
  priority: {},
1332
1335
  launcher: { type: Boolean },
1333
1336
  showLauncherIcon: { type: Boolean },
1334
1337
  groupModel: {},
1335
1338
  overflowTriggerAriaLabel: {},
1336
- galleryPreviewFallback: {}
1339
+ galleryPreviewFallback: {},
1340
+ disabled: { type: Boolean }
1337
1341
  },
1338
1342
  emits: ["item-click"],
1339
1343
  setup(e, { emit: o }) {
1340
- let s = e, l = o, d = u(le, null), f = t(() => s.width == null && s.autoWidth !== !1), y = t(() => {
1344
+ let s = e, l = o, d = u(le, null), f = t(() => s.width == null), y = t(() => {
1341
1345
  if (typeof s.width != "number" || Number.isNaN(s.width) || s.width <= 0) return;
1342
1346
  let e = `${s.width}px`;
1343
1347
  return {
@@ -1346,13 +1350,13 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
1346
1350
  maxWidth: e,
1347
1351
  flex: `0 0 ${e}`
1348
1352
  };
1349
- }), x = t(() => d?.disabled.value === !0), T = b(null), k = b([]), A = b(null), te = b(null), ne = b(0), j = b(0), M = ie("size", ""), N = t(() => M.value || "default"), P = t(() => `ml-ribbon-group__overflow-popover ml-ribbon-group__overflow-popover--size-${N.value}`), F = t(() => ({ modifiers: [{
1353
+ }), x = t(() => s.disabled === !0 || d?.disabled.value === !0), T = b(null), k = b([]), A = b(null), te = b(null), ne = b(0), j = b(0), M = ie("size", ""), N = t(() => M.value || "default"), P = t(() => `ml-ribbon-group__overflow-popover ml-ribbon-group__overflow-popover--size-${N.value}`), F = t(() => ({ modifiers: [{
1350
1354
  name: "offset",
1351
1355
  options: { offset: [ne.value, 8] }
1352
1356
  }] })), L = t(() => ({ modifiers: [{
1353
1357
  name: "offset",
1354
1358
  options: { offset: [j.value, 8] }
1355
- }] })), re = t(() => !s.icon || typeof s.icon == "string" ? null : s.icon), z = t(() => k.value.length > 0), B = t(() => (s.groupModel?.footerMenuItems?.length ?? 0) > 0), V = b(!1), U = b(!1), W = t(() => {
1359
+ }] })), re = t(() => !s.icon || typeof s.icon == "string" ? null : s.icon), z = t(() => k.value.length > 0), B = t(() => (s.groupModel?.footerMenuItems?.length ?? 0) > 0), V = b(!1), H = b(!1), oe = t(() => {
1356
1360
  if (!s.groupModel || !k.value.length) return null;
1357
1361
  let e = new Set(k.value), t = s.groupModel.collections?.map((t) => ({
1358
1362
  ...t,
@@ -1362,7 +1366,7 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
1362
1366
  ...s.groupModel,
1363
1367
  collections: t
1364
1368
  } : null;
1365
- }), oe = t(() => s.groupModel?.footerMenuItems?.length ? {
1369
+ }), se = t(() => s.groupModel?.footerMenuItems?.length ? {
1366
1370
  id: `${s.groupModel.id}-footer-menu`,
1367
1371
  title: "",
1368
1372
  orientation: "row",
@@ -1372,7 +1376,7 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
1372
1376
  items: s.groupModel.footerMenuItems
1373
1377
  }]
1374
1378
  } : null);
1375
- function se() {
1379
+ function ce() {
1376
1380
  let e = T.value?.querySelector(".ml-ribbon-group__content");
1377
1381
  if (!e) {
1378
1382
  k.value.length > 0 && (k.value = []);
@@ -1393,10 +1397,10 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
1393
1397
  }
1394
1398
  function G() {
1395
1399
  p(() => {
1396
- Z(), K(), q(), se();
1400
+ pe(), ue(), K(), ce();
1397
1401
  });
1398
1402
  }
1399
- function K() {
1403
+ function ue() {
1400
1404
  let e = T.value?.getBoundingClientRect(), t = A.value?.getBoundingClientRect();
1401
1405
  if (!e || !t) {
1402
1406
  ne.value !== 0 && (ne.value = 0);
@@ -1405,7 +1409,7 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
1405
1409
  let n = Math.round(e.left - t.left);
1406
1410
  ne.value !== n && (ne.value = n);
1407
1411
  }
1408
- function q() {
1412
+ function K() {
1409
1413
  let e = T.value?.getBoundingClientRect(), t = te.value?.getBoundingClientRect();
1410
1414
  if (!e || !t) {
1411
1415
  j.value !== 0 && (j.value = 0);
@@ -1414,20 +1418,20 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
1414
1418
  let n = Math.round(e.left - t.left);
1415
1419
  j.value !== n && (j.value = n);
1416
1420
  }
1417
- function ue(e) {
1421
+ function q(e) {
1418
1422
  V.value = e;
1419
1423
  }
1420
- function de(e) {
1421
- U.value = e;
1424
+ function J(e) {
1425
+ H.value = e;
1422
1426
  }
1423
- function J() {
1427
+ function de() {
1424
1428
  x.value || (V.value = !V.value);
1425
1429
  }
1426
1430
  function fe() {
1427
- x.value || (U.value = !U.value);
1431
+ x.value || (H.value = !H.value);
1428
1432
  }
1429
1433
  let Y = null, X = null;
1430
- function Z() {
1434
+ function pe() {
1431
1435
  if (!Y) return;
1432
1436
  let e = T.value?.querySelector(".ml-ribbon-group__content") ?? null;
1433
1437
  X !== e && (X && Y.unobserve(X), e && Y.observe(e), X = e);
@@ -1435,11 +1439,11 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
1435
1439
  return D(() => s.groupModel, () => {
1436
1440
  G();
1437
1441
  }, { deep: !0 }), D(x, (e) => {
1438
- e && (V.value = !1, U.value = !1);
1442
+ e && (V.value = !1, H.value = !1);
1439
1443
  }), g(() => {
1440
1444
  typeof ResizeObserver < "u" && (Y = new ResizeObserver(() => {
1441
- K(), q(), se();
1442
- }), T.value && Y.observe(T.value), Z()), G();
1445
+ ue(), K(), ce();
1446
+ }), T.value && Y.observe(T.value), pe()), G();
1443
1447
  }), _(() => {
1444
1448
  Y?.disconnect();
1445
1449
  }), (t, o) => (v(), i("section", {
@@ -1457,15 +1461,15 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
1457
1461
  _: 1
1458
1462
  })) : r("", !0),
1459
1463
  a("span", st, w(e.title), 1),
1460
- B.value && oe.value ? (v(), n(E(R), {
1464
+ B.value && se.value ? (v(), n(E(R), {
1461
1465
  key: 1,
1462
1466
  trigger: "click",
1463
1467
  placement: "bottom-start",
1464
1468
  disabled: x.value,
1465
1469
  "popper-class": P.value,
1466
1470
  "popper-options": L.value,
1467
- onShow: o[1] ||= (e) => ue(!0),
1468
- onHide: o[2] ||= (e) => ue(!1)
1471
+ onShow: o[1] ||= (e) => q(!0),
1472
+ onHide: o[2] ||= (e) => q(!1)
1469
1473
  }, {
1470
1474
  reference: O(() => [a("button", {
1471
1475
  ref_key: "footerTriggerRef",
@@ -1475,50 +1479,60 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
1475
1479
  "aria-label": e.overflowTriggerAriaLabel,
1476
1480
  "aria-expanded": V.value,
1477
1481
  disabled: x.value,
1478
- onClick: J
1482
+ onClick: de
1479
1483
  }, [c(E(I), null, {
1480
- default: O(() => [(v(), n(C(V.value ? E(ae) : E(H))))]),
1484
+ default: O(() => [(v(), n(C(V.value ? E(U) : E(ae))))]),
1481
1485
  _: 1
1482
1486
  })], 10, ct)]),
1483
1487
  default: O(() => [a("div", lt, [c(rt, {
1484
- group: oe.value,
1488
+ group: se.value,
1485
1489
  "gallery-preview-fallback": e.galleryPreviewFallback,
1490
+ disabled: x.value,
1486
1491
  onItemClick: o[0] ||= (e) => l("item-click", e)
1487
- }, null, 8, ["group", "gallery-preview-fallback"])])]),
1492
+ }, null, 8, [
1493
+ "group",
1494
+ "gallery-preview-fallback",
1495
+ "disabled"
1496
+ ])])]),
1488
1497
  _: 1
1489
1498
  }, 8, [
1490
1499
  "disabled",
1491
1500
  "popper-class",
1492
1501
  "popper-options"
1493
1502
  ])) : r("", !0),
1494
- z.value && W.value ? (v(), n(E(R), {
1503
+ z.value && oe.value ? (v(), n(E(R), {
1495
1504
  key: 2,
1496
1505
  trigger: "click",
1497
1506
  placement: "bottom-start",
1498
1507
  disabled: x.value,
1499
1508
  "popper-class": P.value,
1500
1509
  "popper-options": F.value,
1501
- onShow: o[4] ||= (e) => de(!0),
1502
- onHide: o[5] ||= (e) => de(!1)
1510
+ onShow: o[4] ||= (e) => J(!0),
1511
+ onHide: o[5] ||= (e) => J(!1)
1503
1512
  }, {
1504
1513
  reference: O(() => [a("button", {
1505
1514
  ref_key: "overflowTriggerRef",
1506
1515
  ref: A,
1507
1516
  type: "button",
1508
- class: m(["ml-ribbon-group__overflow-trigger", { "is-open": U.value }]),
1517
+ class: m(["ml-ribbon-group__overflow-trigger", { "is-open": H.value }]),
1509
1518
  "aria-label": e.overflowTriggerAriaLabel,
1510
- "aria-expanded": U.value,
1519
+ "aria-expanded": H.value,
1511
1520
  disabled: x.value,
1512
1521
  onClick: fe
1513
1522
  }, [c(E(I), null, {
1514
- default: O(() => [(v(), n(C(U.value ? E(ae) : E(H))))]),
1523
+ default: O(() => [(v(), n(C(H.value ? E(U) : E(ae))))]),
1515
1524
  _: 1
1516
1525
  })], 10, ut)]),
1517
1526
  default: O(() => [a("div", dt, [c(rt, {
1518
- group: W.value,
1527
+ group: oe.value,
1519
1528
  "gallery-preview-fallback": e.galleryPreviewFallback,
1529
+ disabled: x.value,
1520
1530
  onItemClick: o[3] ||= (e) => l("item-click", e)
1521
- }, null, 8, ["group", "gallery-preview-fallback"])])]),
1531
+ }, null, 8, [
1532
+ "group",
1533
+ "gallery-preview-fallback",
1534
+ "disabled"
1535
+ ])])]),
1522
1536
  _: 1
1523
1537
  }, 8, [
1524
1538
  "disabled",
@@ -1532,7 +1546,7 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
1532
1546
  disabled: x.value
1533
1547
  }, {
1534
1548
  default: O(() => [c(E(I), null, {
1535
- default: O(() => [c(E(ce))]),
1549
+ default: O(() => [c(E(W))]),
1536
1550
  _: 1
1537
1551
  })]),
1538
1552
  _: 1
@@ -1693,12 +1707,12 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
1693
1707
  }), D(L.backdropOpen, (e) => {
1694
1708
  F(e ? "backstageOpen" : "backstageClose");
1695
1709
  });
1696
- let z = t(() => re.value.find((e) => e.id === L.activeTab.value)), H = t(() => z.value?.groups?.filter((e) => e.visible !== !1) ?? []), ae = b(null), ce = b(null), G = b(null), K = b(null), q = b(!1), ue = b(0), de = b({
1710
+ let z = t(() => re.value.find((e) => e.id === L.activeTab.value)), ae = t(() => new Set(re.value.filter((e) => e.contextual && e.contextualMode === "exclusive").map((e) => e.id))), U = t(() => Re(z.value)), W = t(() => z.value?.groups?.filter((e) => e.visible !== !1) ?? []), G = b(null), ue = b(null), K = b(null), q = b(null), J = b(!1), de = b(0), fe = b({
1697
1711
  left: "0px",
1698
1712
  top: "0px",
1699
1713
  width: "1px",
1700
1714
  height: "0px"
1701
- }), J = b(/* @__PURE__ */ new Set()), fe = b({}), Y = ie("size", ""), Z = t(() => P.size || Y.value || "default"), pe = t(() => `ml-ribbon-group-popover ml-ribbon-group-popover--size-${Z.value}`), me = t(() => `ml-ribbon-overflow-popover ml-ribbon-overflow-popover--size-${Z.value}`), he = t(() => `ml-ribbon-tab-panel-popover ml-ribbon-tab-panel-popover--size-${Z.value}`), Q = t(() => ({
1715
+ }), Y = b(/* @__PURE__ */ new Set()), pe = b({}), me = ie("size", ""), he = t(() => P.size || me.value || "default"), ge = t(() => `ml-ribbon-group-popover ml-ribbon-group-popover--size-${he.value}`), ve = t(() => `ml-ribbon-overflow-popover ml-ribbon-overflow-popover--size-${he.value}`), ye = t(() => `ml-ribbon-tab-panel-popover ml-ribbon-tab-panel-popover--size-${he.value}`), Z = t(() => ({
1702
1716
  layoutSwitcherTooltip: P.texts.layoutSwitcherTooltip || N.layoutSwitcherTooltip,
1703
1717
  minimizeTooltip: P.texts.minimizeTooltip || N.minimizeTooltip,
1704
1718
  keyTipsToggleText: P.texts.keyTipsToggleText || N.keyTipsToggleText,
@@ -1713,15 +1727,15 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
1713
1727
  keyTipsEmptySequence: P.texts.keyTipsEmptySequence || N.keyTipsEmptySequence,
1714
1728
  contextualTabDefaultTitle: P.texts.contextualTabDefaultTitle || N.contextualTabDefaultTitle,
1715
1729
  galleryPreviewFallback: P.texts.galleryPreviewFallback || N.galleryPreviewFallback
1716
- })), _e = t(() => M(P.tooltipShowAfter, 1e3)), ve = t(() => M(P.tooltipHideAfter, 0)), ye = t(() => L.minimized.value ? W : U), be = t(() => H.value.filter((e) => !J.value.has(e.id))), xe = t(() => H.value.filter((e) => J.value.has(e.id))), Ce = t(() => {
1717
- if (!xe.value.length) return 220;
1718
- let e = xe.value.reduce((e, t) => {
1719
- let n = fe.value[t.id] ?? De(t);
1730
+ })), be = t(() => M(P.tooltipShowAfter, 1e3)), xe = t(() => M(P.tooltipHideAfter, 0)), Se = t(() => L.minimized.value ? oe : H), we = t(() => W.value.filter((e) => !Y.value.has(e.id))), Ee = t(() => W.value.filter((e) => Y.value.has(e.id))), De = t(() => {
1731
+ if (!Ee.value.length) return 220;
1732
+ let e = Ee.value.reduce((e, t) => {
1733
+ let n = pe.value[t.id] ?? Ae(t);
1720
1734
  return Math.max(e, n);
1721
1735
  }, 0), t = Math.ceil(e + 40);
1722
1736
  return Math.max(220, Math.min(720, t));
1723
1737
  });
1724
- function Te(e) {
1738
+ function Oe(e) {
1725
1739
  let t = (e.collections ?? []).flatMap((e) => (e.items ?? []).map((e) => ({
1726
1740
  ...A(e),
1727
1741
  size: "medium"
@@ -1736,13 +1750,13 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
1736
1750
  }]
1737
1751
  };
1738
1752
  }
1739
- function Ee(e) {
1753
+ function ke(e) {
1740
1754
  return e.priority ?? 100;
1741
1755
  }
1742
- function De(e) {
1743
- return typeof e.width == "number" && Number.isFinite(e.width) && e.width > 0 ? e.width : e.autoWidth === !1 ? 190 : 140;
1756
+ function Ae(e) {
1757
+ return typeof e.width == "number" && Number.isFinite(e.width) && e.width > 0 ? e.width : 140;
1744
1758
  }
1745
- function Oe(e) {
1759
+ function je(e) {
1746
1760
  let t = {};
1747
1761
  return e.querySelectorAll(".ml-ribbon-group").forEach((e) => {
1748
1762
  let n = e.dataset.groupId;
@@ -1751,115 +1765,118 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
1751
1765
  r > 0 && (t[n] = r);
1752
1766
  }), t;
1753
1767
  }
1754
- function ke() {
1755
- let e = H.value.reduce((e, t) => {
1756
- let n = fe.value[t.id] ?? De(t);
1757
- return e + Math.max(n, De(t));
1768
+ function Me() {
1769
+ let e = W.value.reduce((e, t) => {
1770
+ let n = pe.value[t.id] ?? Ae(t);
1771
+ return e + Math.max(n, Ae(t));
1758
1772
  }, 0);
1759
1773
  return Math.max(220, e);
1760
1774
  }
1761
- function Ae(e) {
1775
+ function Ne(e) {
1762
1776
  let t = Number.parseFloat(getComputedStyle(e).getPropertyValue("--ml-rb-overflow-slot-width"));
1763
1777
  return Number.isFinite(t) && t > 0 ? t : Ft;
1764
1778
  }
1765
- function je() {
1779
+ function Pe() {
1766
1780
  if (L.layout.value !== "classic") {
1767
- J.value = /* @__PURE__ */ new Set();
1781
+ Y.value = /* @__PURE__ */ new Set();
1768
1782
  return;
1769
1783
  }
1770
- let e = L.minimized.value ? K.value : G.value;
1784
+ let e = L.minimized.value ? q.value : K.value;
1771
1785
  if (!e) return;
1772
- let t = H.value;
1786
+ let t = W.value;
1773
1787
  if (!t.length) {
1774
- J.value = /* @__PURE__ */ new Set();
1788
+ Y.value = /* @__PURE__ */ new Set();
1775
1789
  return;
1776
1790
  }
1777
- let n = Math.round(e.getBoundingClientRect().width), r = Ae(e), i = Oe(e);
1778
- fe.value = {
1779
- ...fe.value,
1791
+ let n = Math.round(e.getBoundingClientRect().width), r = Ne(e), i = je(e);
1792
+ pe.value = {
1793
+ ...pe.value,
1780
1794
  ...i
1781
1795
  };
1782
1796
  let a = t.filter((e) => e.enableGroupOverflow === !1), o = t.filter((e) => e.enableGroupOverflow !== !1).map((e, t) => ({
1783
1797
  group: e,
1784
1798
  index: t
1785
1799
  })), s = /* @__PURE__ */ new Set(), c = [...o].sort((e, t) => {
1786
- let n = Ee(t.group) - Ee(e.group);
1800
+ let n = ke(t.group) - ke(e.group);
1787
1801
  return n === 0 ? t.index - e.index : n;
1788
- }), l = (e) => i[e.id] ?? De(e), u = a.reduce((e, t) => e + l(t), 0), d = (e) => o.filter(({ group: t }) => !e.has(t.id)).reduce((e, { group: t }) => e + l(t), 0), f = (e) => u + d(e) + (e.size > 0 ? r : 0), p = 0;
1802
+ }), l = (e) => i[e.id] ?? Ae(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;
1789
1803
  for (; f(s) > n && p < c.length;) {
1790
1804
  let e = c[p].group;
1791
1805
  s.add(e.id), p += 1;
1792
1806
  }
1793
- J.value = s;
1807
+ Y.value = s;
1794
1808
  }
1795
- function Me() {
1809
+ function Fe() {
1796
1810
  p(() => {
1797
1811
  if (L.layout.value !== "classic" || L.minimized.value) {
1798
- je();
1812
+ Pe();
1799
1813
  return;
1800
1814
  }
1801
- if (J.value.size === 0) {
1802
- je();
1815
+ if (Y.value.size === 0) {
1816
+ Pe();
1803
1817
  return;
1804
1818
  }
1805
- J.value = /* @__PURE__ */ new Set(), p(() => {
1806
- je();
1819
+ Y.value = /* @__PURE__ */ new Set(), p(() => {
1820
+ Pe();
1807
1821
  });
1808
1822
  });
1809
1823
  }
1810
- function Ne() {
1811
- let e = ae.value, t = ce.value;
1824
+ function Ie() {
1825
+ let e = G.value, t = ue.value;
1812
1826
  if (!e || !t) return;
1813
1827
  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);
1814
- ue.value = Math.round(a > 0 ? a : L.layout.value === "classic" ? ke() : Math.max(360, H.value.length * 120)), de.value = {
1828
+ de.value = Math.round(a > 0 ? a : L.layout.value === "classic" ? Me() : Math.max(360, W.value.length * 120)), fe.value = {
1815
1829
  left: `${Math.round(n.left - r.left + i)}px`,
1816
1830
  top: "0px",
1817
1831
  width: "1px",
1818
1832
  height: `${Math.round(r.height)}px`
1819
1833
  };
1820
1834
  }
1821
- function Pe() {
1822
- q.value = !1;
1835
+ function Le() {
1836
+ J.value = !1;
1837
+ }
1838
+ function Re(e) {
1839
+ return L.disabled.value ? !0 : !e || ae.value.size === 0 ? !1 : !ae.value.has(e.id);
1823
1840
  }
1824
- function Fe(e) {
1841
+ function ze(e) {
1825
1842
  if (L.disabled.value) return;
1826
1843
  let t = L.activeTab.value === e.id;
1827
1844
  if (L.activeTab.value = e.id, !L.minimized.value) {
1828
- Pe();
1845
+ Le();
1829
1846
  return;
1830
1847
  }
1831
- Ne(), q.value = t ? !q.value : !0;
1848
+ Ie(), J.value = t ? !J.value : !0;
1832
1849
  }
1833
- function Ie() {
1850
+ function Be() {
1834
1851
  L.disabled.value || L.api.toggleSimplified();
1835
1852
  }
1836
- function Le() {
1837
- L.disabled.value || (L.minimized.value || Pe(), L.minimized.value = !L.minimized.value);
1853
+ function Ve() {
1854
+ L.disabled.value || (L.minimized.value || Le(), L.minimized.value = !L.minimized.value);
1838
1855
  }
1839
- function Re(e) {
1840
- L.disabled.value || (Pe(), F("fileMenuSelect", e));
1856
+ function He(e) {
1857
+ L.disabled.value || (Le(), F("fileMenuSelect", e));
1841
1858
  }
1842
- function ze() {
1843
- L.disabled.value || (Pe(), L.backdropOpen.value = !0);
1859
+ function Ue() {
1860
+ L.disabled.value || (Le(), L.backdropOpen.value = !0);
1844
1861
  }
1845
- function Be() {
1862
+ function We() {
1846
1863
  L.disabled.value || (L.backdropOpen.value = !1);
1847
1864
  }
1848
- function Ve(e, t) {
1849
- L.disabled.value || (F("itemClick", {
1865
+ function Q(e, t) {
1866
+ U.value || (F("itemClick", {
1850
1867
  tabId: L.activeTab.value,
1851
1868
  groupId: e,
1852
1869
  itemId: t
1853
- }), L.minimized.value && Pe());
1870
+ }), L.minimized.value && Le());
1854
1871
  }
1855
- function He(e) {
1872
+ function Ge(e) {
1856
1873
  if (!(e instanceof HTMLElement)) return !1;
1857
1874
  if (e.isContentEditable) return !0;
1858
1875
  let t = e.tagName;
1859
1876
  return t === "INPUT" || t === "TEXTAREA" || t === "SELECT";
1860
1877
  }
1861
- function Ue() {
1862
- if (L.disabled.value) {
1878
+ function Ke() {
1879
+ if (U.value) {
1863
1880
  L.keyTips.value = [];
1864
1881
  return;
1865
1882
  }
@@ -1880,31 +1897,31 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
1880
1897
  }).filter((e) => !!e)));
1881
1898
  L.keyTips.value = t;
1882
1899
  }
1883
- function We(e) {
1900
+ function qe(e) {
1884
1901
  if (L.disabled.value) return;
1885
1902
  let t = z.value;
1886
1903
  if (t?.groups?.length) {
1887
1904
  for (let n of t.groups) if (n.visible !== !1) for (let t of n.collections ?? []) {
1888
1905
  let r = t.items.find((t) => t.id === e.targetId && t.disabled !== !0);
1889
1906
  if (r) {
1890
- Ve(n.id, r.id), L.keyTipsOpen.value = !1, L.keyTipsSequence.value = "";
1907
+ Q(n.id, r.id), L.keyTipsOpen.value = !1, L.keyTipsSequence.value = "";
1891
1908
  return;
1892
1909
  }
1893
1910
  }
1894
1911
  }
1895
1912
  }
1896
- function Ge() {
1913
+ function Je() {
1897
1914
  L.keyTipsSequence.value = "";
1898
1915
  }
1899
- function Ke(e) {
1900
- if (!L.disabled.value && !He(e.target)) {
1916
+ function Ye(e) {
1917
+ if (!L.disabled.value && !Ge(e.target)) {
1901
1918
  if (e.altKey && !e.ctrlKey && !e.metaKey && e.key === "Alt") {
1902
- e.preventDefault(), L.keyTipsOpen.value = !L.keyTipsOpen.value, L.keyTipsOpen.value || Ge();
1919
+ e.preventDefault(), L.keyTipsOpen.value = !L.keyTipsOpen.value, L.keyTipsOpen.value || Je();
1903
1920
  return;
1904
1921
  }
1905
1922
  if (L.keyTipsOpen.value && !(e.altKey || e.ctrlKey || e.metaKey)) {
1906
1923
  if (e.key === "Escape") {
1907
- e.preventDefault(), L.keyTipsOpen.value = !1, Ge();
1924
+ e.preventDefault(), L.keyTipsOpen.value = !1, Je();
1908
1925
  return;
1909
1926
  }
1910
1927
  if (e.key === "Backspace") {
@@ -1917,71 +1934,71 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
1917
1934
  L.keyTipsSequence.value = t;
1918
1935
  let n = t.toLowerCase(), r = L.keyTips.value.find((e) => e.key.toLowerCase() === n);
1919
1936
  if (r) {
1920
- We(r);
1937
+ qe(r);
1921
1938
  return;
1922
1939
  }
1923
- L.keyTips.value.some((e) => e.key.toLowerCase().startsWith(n)) || Ge();
1940
+ L.keyTips.value.some((e) => e.key.toLowerCase().startsWith(n)) || Je();
1924
1941
  }
1925
1942
  }
1926
1943
  }
1927
1944
  }
1928
- function qe(e) {
1929
- return e.icon && typeof e.icon != "string" ? e.icon : e.groupIconCss ? oe : null;
1945
+ function Xe(e) {
1946
+ return e.icon && typeof e.icon != "string" ? e.icon : e.groupIconCss ? se : null;
1930
1947
  }
1931
- function Je(e) {
1932
- q.value = e;
1948
+ function Ze(e) {
1949
+ J.value = e;
1933
1950
  }
1934
1951
  D([
1935
- H,
1952
+ W,
1936
1953
  () => L.layout.value,
1937
1954
  () => L.minimized.value
1938
1955
  ], () => {
1939
- Me();
1956
+ Fe();
1940
1957
  }), D([
1941
1958
  z,
1942
1959
  () => L.tabs.value,
1943
1960
  () => L.disabled.value
1944
1961
  ], () => {
1945
- Ue(), Ge();
1962
+ Ke(), Je();
1946
1963
  }, {
1947
1964
  deep: !0,
1948
1965
  immediate: !0
1949
1966
  }), D(() => L.keyTipsOpen.value, (e) => {
1950
- e || Ge();
1967
+ e || Je();
1951
1968
  }), D(() => L.disabled.value, (e) => {
1952
- e && (L.overflowOpen.value = !1, L.backdropOpen.value = !1, L.keyTipsOpen.value = !1, Pe(), Ge());
1969
+ e && (L.overflowOpen.value = !1, L.backdropOpen.value = !1, L.keyTipsOpen.value = !1, Le(), Je());
1953
1970
  }), D([
1954
1971
  () => L.minimized.value,
1955
1972
  () => L.layout.value,
1956
1973
  z
1957
1974
  ], ([e, , t]) => {
1958
- (!e || !t) && Pe();
1959
- }), D([G, K], ([e, t], [n, r]) => {
1960
- n && $ && $.unobserve(n), r && $ && $.unobserve(r), e && $ && $.observe(e), t && $ && $.observe(t), (e || t) && Me();
1961
- }, { flush: "post" }), D(q, (e) => {
1975
+ (!e || !t) && Le();
1976
+ }), D([K, q], ([e, t], [n, r]) => {
1977
+ n && $ && $.unobserve(n), r && $ && $.unobserve(r), e && $ && $.observe(e), t && $ && $.observe(t), (e || t) && Fe();
1978
+ }, { flush: "post" }), D(J, (e) => {
1962
1979
  e && p(() => {
1963
- Ne(), Me();
1980
+ Ie(), Fe();
1964
1981
  });
1965
1982
  });
1966
1983
  let $ = null;
1967
1984
  g(() => {
1968
- window.addEventListener("keydown", Ke), window.addEventListener("resize", Ye), typeof ResizeObserver < "u" && ($ = new ResizeObserver(() => {
1969
- Ne(), Me();
1970
- }), G.value && $.observe(G.value), K.value && $.observe(K.value)), Ne(), Me();
1985
+ window.addEventListener("keydown", Ye), window.addEventListener("resize", Qe), typeof ResizeObserver < "u" && ($ = new ResizeObserver(() => {
1986
+ Ie(), Fe();
1987
+ }), K.value && $.observe(K.value), q.value && $.observe(q.value)), Ie(), Fe();
1971
1988
  }), _(() => {
1972
- window.removeEventListener("keydown", Ke), window.removeEventListener("resize", Ye), $?.disconnect();
1989
+ window.removeEventListener("keydown", Ye), window.removeEventListener("resize", Qe), $?.disconnect();
1973
1990
  });
1974
- function Ye() {
1975
- q.value && Ne();
1991
+ function Qe() {
1992
+ J.value && Ie();
1976
1993
  }
1977
1994
  return l(L.api), (t, l) => (v(), n(E(j), { size: P.size }, {
1978
1995
  default: O(() => [(v(), i("section", {
1979
1996
  ref_key: "ribbonRootRef",
1980
- ref: ae,
1997
+ ref: G,
1981
1998
  key: E(L).disabled.value ? "ml-ribbon-disabled" : "ml-ribbon-enabled",
1982
1999
  class: m(["ml-ribbon", [
1983
2000
  `ml-ribbon--${E(L).layout.value}`,
1984
- `ml-ribbon--size-${Z.value}`,
2001
+ `ml-ribbon--size-${he.value}`,
1985
2002
  {
1986
2003
  "ml-ribbon--disabled": E(L).disabled.value,
1987
2004
  "ml-ribbon--minimized": E(L).minimized.value,
@@ -1993,19 +2010,19 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
1993
2010
  }, [
1994
2011
  a("header", {
1995
2012
  ref_key: "ribbonHeaderRef",
1996
- ref: ce,
2013
+ ref: ue,
1997
2014
  class: "ml-ribbon__header"
1998
2015
  }, [
1999
2016
  a("div", mt, [
2000
- s.showFileMenu ? (v(), n(we, {
2017
+ s.showFileMenu ? (v(), n(Te, {
2001
2018
  key: 0,
2002
2019
  items: s.fileMenuItems,
2003
2020
  disabled: E(L).disabled.value,
2004
- label: Q.value.fileMenuLabel,
2005
- "open-backstage-label": Q.value.fileMenuOpenBackstageLabel,
2021
+ label: Z.value.fileMenuLabel,
2022
+ "open-backstage-label": Z.value.fileMenuOpenBackstageLabel,
2006
2023
  "show-open-backstage": s.showOpenBackstage,
2007
- onSelect: Re,
2008
- onOpenBackstage: ze
2024
+ onSelect: He,
2025
+ onOpenBackstage: Ue
2009
2026
  }, null, 8, [
2010
2027
  "items",
2011
2028
  "disabled",
@@ -2013,12 +2030,12 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
2013
2030
  "open-backstage-label",
2014
2031
  "show-open-backstage"
2015
2032
  ])) : r("", !0),
2016
- c(Se, {
2033
+ c(Ce, {
2017
2034
  tabs: E(re),
2018
2035
  "active-tab": E(L).activeTab.value,
2019
2036
  disabled: E(L).disabled.value,
2020
- "default-contextual-title": Q.value.contextualTabDefaultTitle,
2021
- onSelect: Fe
2037
+ "default-contextual-title": Z.value.contextualTabDefaultTitle,
2038
+ onSelect: ze
2022
2039
  }, null, 8, [
2023
2040
  "tabs",
2024
2041
  "active-tab",
@@ -2027,9 +2044,9 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
2027
2044
  ]),
2028
2045
  P.hideMinimizeButton ? r("", !0) : (v(), n(E(V), {
2029
2046
  key: 1,
2030
- content: Q.value.minimizeTooltip,
2031
- "show-after": _e.value,
2032
- "hide-after": ve.value
2047
+ content: Z.value.minimizeTooltip,
2048
+ "show-after": be.value,
2049
+ "hide-after": xe.value
2033
2050
  }, {
2034
2051
  default: O(() => [c(E(ee), {
2035
2052
  class: m([
@@ -2037,9 +2054,9 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
2037
2054
  "ml-ribbon__control--minimize",
2038
2055
  E(L).minimized.value ? "ml-ribbon__control--minimize-up" : "ml-ribbon__control--minimize-down"
2039
2056
  ]),
2040
- icon: ye.value,
2057
+ icon: Se.value,
2041
2058
  disabled: E(L).disabled.value,
2042
- onClick: Le
2059
+ onClick: Ve
2043
2060
  }, null, 8, [
2044
2061
  "class",
2045
2062
  "icon",
@@ -2055,16 +2072,16 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
2055
2072
  a("div", ht, [
2056
2073
  P.hideLayoutSwitcher ? r("", !0) : (v(), n(E(V), {
2057
2074
  key: 0,
2058
- content: Q.value.layoutSwitcherTooltip,
2059
- "show-after": _e.value,
2060
- "hide-after": ve.value
2075
+ content: Z.value.layoutSwitcherTooltip,
2076
+ "show-after": be.value,
2077
+ "hide-after": xe.value
2061
2078
  }, {
2062
2079
  default: O(() => [c(E(ee), {
2063
2080
  circle: "",
2064
2081
  class: "ml-ribbon__control ml-ribbon__control--layout",
2065
- icon: E(se),
2082
+ icon: E(ce),
2066
2083
  disabled: E(L).disabled.value,
2067
- onClick: Ie
2084
+ onClick: Be
2068
2085
  }, null, 8, ["icon", "disabled"])]),
2069
2086
  _: 1
2070
2087
  }, 8, [
@@ -2076,8 +2093,8 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
2076
2093
  key: 1,
2077
2094
  "inline-prompt": "",
2078
2095
  class: "ml-ribbon__control ml-ribbon__control--keytips",
2079
- "active-text": Q.value.keyTipsToggleText,
2080
- "inactive-text": Q.value.keyTipsToggleText,
2096
+ "active-text": Z.value.keyTipsToggleText,
2097
+ "inactive-text": Z.value.keyTipsToggleText,
2081
2098
  "model-value": E(L).keyTipsOpen.value,
2082
2099
  disabled: E(L).disabled.value,
2083
2100
  onChange: l[0] ||= (e) => E(L).keyTipsOpen.value = !E(L).keyTipsOpen.value
@@ -2097,26 +2114,26 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
2097
2114
  z.value ? (v(), n(E(R), {
2098
2115
  key: 0,
2099
2116
  placement: "bottom-start",
2100
- visible: q.value,
2101
- width: ue.value || void 0,
2117
+ visible: J.value,
2118
+ width: de.value || void 0,
2102
2119
  disabled: E(L).disabled.value || !E(L).minimized.value,
2103
2120
  "show-arrow": !1,
2104
2121
  offset: 0,
2105
- "popper-class": he.value,
2106
- "onUpdate:visible": Je
2122
+ "popper-class": ye.value,
2123
+ "onUpdate:visible": Ze
2107
2124
  }, {
2108
2125
  reference: O(() => [a("span", {
2109
2126
  "aria-hidden": "true",
2110
2127
  class: "ml-ribbon__minimized-anchor",
2111
- style: h(de.value)
2128
+ style: h(fe.value)
2112
2129
  }, null, 4)]),
2113
2130
  default: O(() => [E(L).layout.value === "classic" ? (v(), i("main", {
2114
2131
  key: 0,
2115
2132
  ref_key: "minimizedClassicPanelRef",
2116
- ref: K,
2133
+ ref: q,
2117
2134
  class: "ml-ribbon__panel ml-ribbon__panel--floating",
2118
2135
  "data-active-tab": z.value.id
2119
- }, [(v(!0), i(e, null, x(be.value, (e) => (v(), n(ft, {
2136
+ }, [(v(!0), i(e, null, x(we.value, (e) => (v(), n(ft, {
2120
2137
  id: e.id,
2121
2138
  key: e.id,
2122
2139
  "data-group-id": e.id,
@@ -2124,21 +2141,26 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
2124
2141
  icon: e.icon,
2125
2142
  "group-icon-css": e.groupIconCss,
2126
2143
  orientation: e.orientation,
2127
- "auto-width": e.autoWidth,
2128
2144
  width: e.width,
2129
2145
  priority: e.priority ?? 100,
2130
2146
  launcher: e.launcher,
2131
2147
  "show-launcher-icon": e.showLauncherIcon,
2132
2148
  "group-model": e,
2133
- "overflow-trigger-aria-label": Q.value.groupOverflowTriggerAriaLabel,
2134
- "gallery-preview-fallback": Q.value.galleryPreviewFallback,
2135
- onItemClick: l[2] ||= (e) => Ve(e.groupId, e.itemId)
2149
+ "overflow-trigger-aria-label": Z.value.groupOverflowTriggerAriaLabel,
2150
+ "gallery-preview-fallback": Z.value.galleryPreviewFallback,
2151
+ disabled: U.value,
2152
+ onItemClick: l[2] ||= (e) => Q(e.groupId, e.itemId)
2136
2153
  }, {
2137
2154
  default: O(() => [c(rt, {
2138
2155
  group: e,
2139
- "gallery-preview-fallback": Q.value.galleryPreviewFallback,
2140
- onItemClick: l[1] ||= (e) => Ve(e.groupId, e.itemId)
2141
- }, null, 8, ["group", "gallery-preview-fallback"])]),
2156
+ "gallery-preview-fallback": Z.value.galleryPreviewFallback,
2157
+ disabled: U.value,
2158
+ onItemClick: l[1] ||= (e) => Q(e.groupId, e.itemId)
2159
+ }, null, 8, [
2160
+ "group",
2161
+ "gallery-preview-fallback",
2162
+ "disabled"
2163
+ ])]),
2142
2164
  _: 2
2143
2165
  }, 1032, [
2144
2166
  "id",
@@ -2147,38 +2169,43 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
2147
2169
  "icon",
2148
2170
  "group-icon-css",
2149
2171
  "orientation",
2150
- "auto-width",
2151
2172
  "width",
2152
2173
  "priority",
2153
2174
  "launcher",
2154
2175
  "show-launcher-icon",
2155
2176
  "group-model",
2156
2177
  "overflow-trigger-aria-label",
2157
- "gallery-preview-fallback"
2158
- ]))), 128)), xe.value.length ? (v(), i("section", vt, [a("div", yt, [c(E(R), {
2178
+ "gallery-preview-fallback",
2179
+ "disabled"
2180
+ ]))), 128)), Ee.value.length ? (v(), i("section", vt, [a("div", yt, [c(E(R), {
2159
2181
  trigger: "click",
2160
2182
  placement: "bottom-end",
2161
- width: Ce.value,
2162
- disabled: E(L).disabled.value,
2183
+ width: De.value,
2184
+ disabled: U.value,
2163
2185
  "show-arrow": !1,
2164
- "popper-class": me.value,
2186
+ "popper-class": ve.value,
2165
2187
  onShow: l[4] ||= (e) => E(L).overflowOpen.value = !0,
2166
2188
  onHide: l[5] ||= (e) => E(L).overflowOpen.value = !1
2167
2189
  }, {
2168
2190
  reference: O(() => [a("button", {
2169
2191
  type: "button",
2170
2192
  class: "ml-ribbon-overflow-trigger",
2171
- "aria-label": Q.value.overflowTriggerAriaLabel,
2172
- disabled: E(L).disabled.value
2193
+ "aria-label": Z.value.overflowTriggerAriaLabel,
2194
+ disabled: U.value
2173
2195
  }, [...l[13] ||= [a("span", { class: "ml-ribbon-overflow-trigger__dots" }, "...", -1)]], 8, bt)]),
2174
- default: O(() => [a("div", xt, [(v(!0), i(e, null, x(xe.value, (e) => (v(), i("section", {
2196
+ default: O(() => [a("div", xt, [(v(!0), i(e, null, x(Ee.value, (e) => (v(), i("section", {
2175
2197
  key: e.id,
2176
2198
  class: "ml-ribbon-overflow-group"
2177
2199
  }, [a("header", St, w(e.title), 1), c(rt, {
2178
2200
  group: e,
2179
- "gallery-preview-fallback": Q.value.galleryPreviewFallback,
2180
- onItemClick: l[3] ||= (e) => Ve(e.groupId, e.itemId)
2181
- }, null, 8, ["group", "gallery-preview-fallback"])]))), 128))])]),
2201
+ "gallery-preview-fallback": Z.value.galleryPreviewFallback,
2202
+ disabled: U.value,
2203
+ onItemClick: l[3] ||= (e) => Q(e.groupId, e.itemId)
2204
+ }, null, 8, [
2205
+ "group",
2206
+ "gallery-preview-fallback",
2207
+ "disabled"
2208
+ ])]))), 128))])]),
2182
2209
  _: 1
2183
2210
  }, 8, [
2184
2211
  "width",
@@ -2188,31 +2215,36 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
2188
2215
  key: 1,
2189
2216
  class: "ml-ribbon__panel ml-ribbon__panel--simplified ml-ribbon__panel--floating",
2190
2217
  "data-active-tab": z.value.id
2191
- }, [(v(!0), i(e, null, x(H.value, (e) => (v(), n(E(R), {
2218
+ }, [(v(!0), i(e, null, x(W.value, (e) => (v(), n(E(R), {
2192
2219
  key: e.id,
2193
2220
  trigger: "click",
2194
2221
  placement: "bottom-start",
2195
2222
  width: 340,
2196
- disabled: E(L).disabled.value,
2223
+ disabled: U.value,
2197
2224
  "show-arrow": !1,
2198
- "popper-class": pe.value
2225
+ "popper-class": ge.value
2199
2226
  }, {
2200
2227
  reference: O(() => [a("button", {
2201
2228
  class: "ml-ribbon-simplified-group",
2202
2229
  type: "button",
2203
- disabled: E(L).disabled.value
2204
- }, [qe(e) ? (v(), n(E(I), {
2230
+ disabled: U.value
2231
+ }, [Xe(e) ? (v(), n(E(I), {
2205
2232
  key: 0,
2206
2233
  class: "ml-ribbon-simplified-group__icon"
2207
2234
  }, {
2208
- default: O(() => [(v(), n(C(qe(e))))]),
2235
+ default: O(() => [(v(), n(C(Xe(e))))]),
2209
2236
  _: 2
2210
2237
  }, 1024)) : r("", !0), a("span", null, w(e.title), 1)], 8, wt)]),
2211
2238
  default: O(() => [a("div", Tt, [c(rt, {
2212
- group: Te(e),
2213
- "gallery-preview-fallback": Q.value.galleryPreviewFallback,
2214
- onItemClick: l[6] ||= (e) => Ve(e.groupId, e.itemId)
2215
- }, null, 8, ["group", "gallery-preview-fallback"])])]),
2239
+ group: Oe(e),
2240
+ "gallery-preview-fallback": Z.value.galleryPreviewFallback,
2241
+ disabled: U.value,
2242
+ onItemClick: l[6] ||= (e) => Q(e.groupId, e.itemId)
2243
+ }, null, 8, [
2244
+ "group",
2245
+ "gallery-preview-fallback",
2246
+ "disabled"
2247
+ ])])]),
2216
2248
  _: 2
2217
2249
  }, 1032, ["disabled", "popper-class"]))), 128))], 8, Ct))]),
2218
2250
  _: 1
@@ -2228,8 +2260,8 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
2228
2260
  class: "ml-ribbon__panel",
2229
2261
  "data-active-tab": z.value.id,
2230
2262
  ref_key: "classicPanelRef",
2231
- ref: G
2232
- }, [(v(!0), i(e, null, x(be.value, (e) => (v(), n(ft, {
2263
+ ref: K
2264
+ }, [(v(!0), i(e, null, x(we.value, (e) => (v(), n(ft, {
2233
2265
  id: e.id,
2234
2266
  key: e.id,
2235
2267
  "data-group-id": e.id,
@@ -2237,21 +2269,26 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
2237
2269
  icon: e.icon,
2238
2270
  "group-icon-css": e.groupIconCss,
2239
2271
  orientation: e.orientation,
2240
- "auto-width": e.autoWidth,
2241
2272
  width: e.width,
2242
2273
  priority: e.priority ?? 100,
2243
2274
  launcher: e.launcher,
2244
2275
  "show-launcher-icon": e.showLauncherIcon,
2245
2276
  "group-model": e,
2246
- "overflow-trigger-aria-label": Q.value.groupOverflowTriggerAriaLabel,
2247
- "gallery-preview-fallback": Q.value.galleryPreviewFallback,
2248
- onItemClick: l[8] ||= (e) => Ve(e.groupId, e.itemId)
2277
+ "overflow-trigger-aria-label": Z.value.groupOverflowTriggerAriaLabel,
2278
+ "gallery-preview-fallback": Z.value.galleryPreviewFallback,
2279
+ disabled: U.value,
2280
+ onItemClick: l[8] ||= (e) => Q(e.groupId, e.itemId)
2249
2281
  }, {
2250
2282
  default: O(() => [c(rt, {
2251
2283
  group: e,
2252
- "gallery-preview-fallback": Q.value.galleryPreviewFallback,
2253
- onItemClick: l[7] ||= (e) => Ve(e.groupId, e.itemId)
2254
- }, null, 8, ["group", "gallery-preview-fallback"])]),
2284
+ "gallery-preview-fallback": Z.value.galleryPreviewFallback,
2285
+ disabled: U.value,
2286
+ onItemClick: l[7] ||= (e) => Q(e.groupId, e.itemId)
2287
+ }, null, 8, [
2288
+ "group",
2289
+ "gallery-preview-fallback",
2290
+ "disabled"
2291
+ ])]),
2255
2292
  _: 2
2256
2293
  }, 1032, [
2257
2294
  "id",
@@ -2260,37 +2297,42 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
2260
2297
  "icon",
2261
2298
  "group-icon-css",
2262
2299
  "orientation",
2263
- "auto-width",
2264
2300
  "width",
2265
2301
  "priority",
2266
2302
  "launcher",
2267
2303
  "show-launcher-icon",
2268
2304
  "group-model",
2269
2305
  "overflow-trigger-aria-label",
2270
- "gallery-preview-fallback"
2271
- ]))), 128)), xe.value.length ? (v(), i("section", Dt, [a("div", Ot, [c(E(R), {
2306
+ "gallery-preview-fallback",
2307
+ "disabled"
2308
+ ]))), 128)), Ee.value.length ? (v(), i("section", Dt, [a("div", Ot, [c(E(R), {
2272
2309
  trigger: "click",
2273
2310
  placement: "bottom-end",
2274
- width: Ce.value,
2275
- disabled: E(L).disabled.value,
2276
- "popper-class": me.value,
2311
+ width: De.value,
2312
+ disabled: U.value,
2313
+ "popper-class": ve.value,
2277
2314
  onShow: l[10] ||= (e) => E(L).overflowOpen.value = !0,
2278
2315
  onHide: l[11] ||= (e) => E(L).overflowOpen.value = !1
2279
2316
  }, {
2280
2317
  reference: O(() => [a("button", {
2281
2318
  type: "button",
2282
2319
  class: "ml-ribbon-overflow-trigger",
2283
- "aria-label": Q.value.overflowTriggerAriaLabel,
2284
- disabled: E(L).disabled.value
2320
+ "aria-label": Z.value.overflowTriggerAriaLabel,
2321
+ disabled: U.value
2285
2322
  }, [...l[15] ||= [a("span", { class: "ml-ribbon-overflow-trigger__dots" }, "...", -1)]], 8, kt)]),
2286
- default: O(() => [a("div", At, [(v(!0), i(e, null, x(xe.value, (e) => (v(), i("section", {
2323
+ default: O(() => [a("div", At, [(v(!0), i(e, null, x(Ee.value, (e) => (v(), i("section", {
2287
2324
  key: e.id,
2288
2325
  class: "ml-ribbon-overflow-group"
2289
2326
  }, [a("header", jt, w(e.title), 1), c(rt, {
2290
2327
  group: e,
2291
- "gallery-preview-fallback": Q.value.galleryPreviewFallback,
2292
- onItemClick: l[9] ||= (e) => Ve(e.groupId, e.itemId)
2293
- }, null, 8, ["group", "gallery-preview-fallback"])]))), 128))])]),
2328
+ "gallery-preview-fallback": Z.value.galleryPreviewFallback,
2329
+ disabled: U.value,
2330
+ onItemClick: l[9] ||= (e) => Q(e.groupId, e.itemId)
2331
+ }, null, 8, [
2332
+ "group",
2333
+ "gallery-preview-fallback",
2334
+ "disabled"
2335
+ ])]))), 128))])]),
2294
2336
  _: 1
2295
2337
  }, 8, [
2296
2338
  "width",
@@ -2301,48 +2343,53 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
2301
2343
  key: 1,
2302
2344
  class: "ml-ribbon__panel ml-ribbon__panel--simplified",
2303
2345
  "data-active-tab": z.value.id
2304
- }, [(v(!0), i(e, null, x(H.value, (e) => (v(), n(E(R), {
2346
+ }, [(v(!0), i(e, null, x(W.value, (e) => (v(), n(E(R), {
2305
2347
  key: e.id,
2306
2348
  trigger: "click",
2307
2349
  placement: "bottom-start",
2308
2350
  width: 340,
2309
- disabled: E(L).disabled.value,
2310
- "popper-class": pe.value
2351
+ disabled: U.value,
2352
+ "popper-class": ge.value
2311
2353
  }, {
2312
2354
  reference: O(() => [a("button", {
2313
2355
  class: "ml-ribbon-simplified-group",
2314
2356
  type: "button",
2315
- disabled: E(L).disabled.value
2316
- }, [qe(e) ? (v(), n(E(I), {
2357
+ disabled: U.value
2358
+ }, [Xe(e) ? (v(), n(E(I), {
2317
2359
  key: 0,
2318
2360
  class: "ml-ribbon-simplified-group__icon"
2319
2361
  }, {
2320
- default: O(() => [(v(), n(C(qe(e))))]),
2362
+ default: O(() => [(v(), n(C(Xe(e))))]),
2321
2363
  _: 2
2322
2364
  }, 1024)) : r("", !0), a("span", null, w(e.title), 1)], 8, Nt)]),
2323
2365
  default: O(() => [a("div", Pt, [c(rt, {
2324
- group: Te(e),
2325
- "gallery-preview-fallback": Q.value.galleryPreviewFallback,
2326
- onItemClick: l[12] ||= (e) => Ve(e.groupId, e.itemId)
2327
- }, null, 8, ["group", "gallery-preview-fallback"])])]),
2366
+ group: Oe(e),
2367
+ "gallery-preview-fallback": Z.value.galleryPreviewFallback,
2368
+ disabled: U.value,
2369
+ onItemClick: l[12] ||= (e) => Q(e.groupId, e.itemId)
2370
+ }, null, 8, [
2371
+ "group",
2372
+ "gallery-preview-fallback",
2373
+ "disabled"
2374
+ ])])]),
2328
2375
  _: 2
2329
2376
  }, 1032, ["disabled", "popper-class"]))), 128))], 8, Mt)) : r("", !0),
2330
- c(ge, {
2377
+ c(_e, {
2331
2378
  open: E(L).backdropOpen.value,
2332
- size: Z.value,
2333
- "back-label": Q.value.backstageBackLabel,
2334
- title: Q.value.backstageTitle,
2335
- description: Q.value.backstageDescription,
2336
- onClose: Be
2379
+ size: he.value,
2380
+ "back-label": Z.value.backstageBackLabel,
2381
+ title: Z.value.backstageTitle,
2382
+ description: Z.value.backstageDescription,
2383
+ onClose: We
2337
2384
  }, o({ _: 2 }, [t.$slots.backstage ? {
2338
2385
  name: "default",
2339
2386
  fn: O(() => [S(t.$slots, "backstage", {
2340
- close: Be,
2387
+ close: We,
2341
2388
  open: E(L).backdropOpen.value,
2342
- size: Z.value,
2343
- backLabel: Q.value.backstageBackLabel,
2344
- title: Q.value.backstageTitle,
2345
- description: Q.value.backstageDescription,
2389
+ size: he.value,
2390
+ backLabel: Z.value.backstageBackLabel,
2391
+ title: Z.value.backstageTitle,
2392
+ description: Z.value.backstageDescription,
2346
2393
  disabled: E(L).disabled.value
2347
2394
  })]),
2348
2395
  key: "0"
@@ -2419,4 +2466,4 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
2419
2466
  }
2420
2467
  });
2421
2468
  //#endregion
2422
- export { It as MlRibbon, ge as MlRibbonBackstage, De as MlRibbonButton, je as MlRibbonButtonGroup, Te as MlRibbonCollection, Se as MlRibbonContextualTabs, Le as MlRibbonDropdown, we as MlRibbonFileMenu, Ge as MlRibbonGallery, ft as MlRibbonGroup, nt as MlRibbonItemHost, Vt as MlRibbonKeyTips, Xe as MlRibbonSegmented, Rt as MlRibbonTab, ve as MlRibbonTabs, $e as MlRibbonTemplateItem, Ze as MlRibbonToggleButton };
2469
+ export { It as MlRibbon, _e as MlRibbonBackstage, Oe as MlRibbonButton, Me as MlRibbonButtonGroup, Ee as MlRibbonCollection, Ce as MlRibbonContextualTabs, Re as MlRibbonDropdown, Te as MlRibbonFileMenu, Ge as MlRibbonGallery, ft as MlRibbonGroup, nt as MlRibbonItemHost, Vt as MlRibbonKeyTips, Ze as MlRibbonSegmented, Rt as MlRibbonTab, Z as MlRibbonTabs, $e as MlRibbonTemplateItem, $ as MlRibbonToggleButton };