@mlightcad/ribbon 0.1.0 → 0.1.2

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,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 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";
2
+ import { ElButton as ee, ElButtonGroup as A, ElCheckbox as te, ElColorPicker as ne, ElConfigProvider as re, ElDrawer as j, ElDropdown as M, ElDropdownItem as N, ElDropdownMenu as P, ElIcon as F, ElInputNumber as I, ElOption as ie, ElPopover as ae, ElSegmented as L, ElSelect as oe, ElSwitch as R, ElTooltip as z, useGlobalConfig as se } from "element-plus";
3
+ import { ArrowDown as B, ArrowDownBold as V, ArrowUp as H, ArrowUpBold as ce, Grid as le, Menu as ue, Promotion as de } from "@element-plus/icons-vue";
4
4
  //#region src/ribbon/context.ts
5
- var le = Symbol("RibbonContext");
5
+ var fe = Symbol("RibbonContext");
6
6
  //#endregion
7
7
  //#region src/ribbon/composables/useRibbonState.ts
8
- function G(e) {
8
+ function U(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 W(e) {
12
12
  if (!e) return;
13
13
  let t = { ...e };
14
- return "icon" in t && (t.icon = G(t.icon)), Array.isArray(t.options) && (t.options = t.options.map((e) => {
14
+ return "component" in t && (t.component = U(t.component)), "icon" in t && (t.icon = U(t.icon)), "activeIcon" in t && (t.activeIcon = U(t.activeIcon)), "inactiveIcon" in t && (t.inactiveIcon = U(t.inactiveIcon)), 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: G(t.icon)
19
+ icon: U(t.icon)
20
20
  } : t;
21
21
  })), t;
22
22
  }
23
- function q(e) {
23
+ function G(e) {
24
24
  return {
25
25
  ...e,
26
- icon: G(e.icon),
27
- props: K(e.props)
26
+ icon: U(e.icon),
27
+ props: W(e.props)
28
28
  };
29
29
  }
30
- function ue(e) {
30
+ function K(e) {
31
31
  return {
32
32
  ...e,
33
- icon: G(e.icon),
34
- footerMenuItems: e.footerMenuItems?.map(q),
33
+ icon: U(e.icon),
34
+ footerMenuItems: e.footerMenuItems?.map(G),
35
35
  collections: e.collections?.map((e) => ({
36
36
  ...e,
37
- items: e.items.map(q)
37
+ items: e.items.map(G)
38
38
  }))
39
39
  };
40
40
  }
41
- function de(e) {
41
+ function pe(e) {
42
42
  return {
43
43
  ...e,
44
- groups: e.groups?.map(ue)
44
+ groups: e.groups?.map(K)
45
45
  };
46
46
  }
47
- function J(e) {
48
- return e.map(de);
47
+ function me(e) {
48
+ return e.map(pe);
49
49
  }
50
- function fe(e) {
50
+ function q(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 Y(e, t, n, r, i) {
56
+ function J(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 Y(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 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 = {
64
+ function he(e, n, r, i, a, o, s, c) {
65
+ let l = b(r), u = b(i), d = b(a), f = b(o), p = b(me(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(pe(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 ??= [], q(t), n.groups.push(K(t)));
86
86
  },
87
87
  removeGroup(e, t) {
88
88
  let n = p.value.find((t) => t.id === e);
@@ -97,16 +97,16 @@ 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
+ J(p.value, e, t, n, (e) => e.push(G(r)));
101
101
  },
102
102
  removeItem(e, t, n, r) {
103
- Y(p.value, e, t, n, (e) => {
103
+ J(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
- Y(p.value, e, t, n, (e) => {
109
+ J(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 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 ge = { class: "ml-ribbon-backstage__nav" }, _e = { class: "ml-ribbon-backstage__content" }, ve = { key: 0 }, ye = { key: 1 }, Y = /* @__PURE__ */ l({
159
159
  __name: "RibbonBackstage",
160
160
  props: {
161
161
  open: { type: Boolean },
@@ -170,7 +170,7 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
170
170
  function d() {
171
171
  u("close");
172
172
  }
173
- return (t, o) => (v(), n(E(M), {
173
+ return (t, o) => (v(), n(E(j), {
174
174
  "model-value": l.open,
175
175
  size: "100%",
176
176
  "with-header": !1,
@@ -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", ge, [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", _e, [l.title ? (v(), i("h2", ve, w(l.title), 1)) : r("", !0), l.description ? (v(), i("p", ye, w(l.description), 1)) : r("", !0)])], 64))], 2)]),
194
194
  _: 3
195
195
  }, 8, ["model-value"]));
196
196
  }
197
- }), Q = {
197
+ }), be = {
198
198
  class: "ml-ribbon-tabs",
199
199
  role: "tablist"
200
- }, _e = [
200
+ }, X = [
201
201
  "aria-selected",
202
202
  "disabled",
203
203
  "onClick"
204
- ], ve = /* @__PURE__ */ l({
204
+ ], xe = /* @__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", be, [(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, X))), 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
+ }), 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 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", 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 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", 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(ve, {
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 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
+ }), Ee = ["disabled"], De = /* @__PURE__ */ l({
266
266
  __name: "RibbonFileMenu",
267
267
  props: {
268
268
  items: {},
@@ -273,7 +273,7 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { 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 = ie("size", ""), h = t(() => p.value || "default"), g = t(() => `ml-ribbon-file-menu-dropdown ml-ribbon-popper ml-ribbon-popper--size-${h.value}`);
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 Z = { class: "ml-ribbon-backstage__nav" }, pe = { 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(N), {
289
+ }), (t, o) => (v(), n(E(M), {
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(F), null, {
297
- default: O(() => [u.showOpenBackstage === !1 ? r("", !0) : (v(), n(E(P), {
296
+ dropdown: O(() => [c(E(P), null, {
297
+ default: O(() => [u.showOpenBackstage === !1 ? r("", !0) : (v(), n(E(N), {
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(P), {
303
+ })), (v(!0), i(e, null, x(u.items, (e, t) => (v(), n(E(N), {
304
304
  key: e.id,
305
305
  divided: u.showOpenBackstage !== !1 && t === 0,
306
306
  command: e.id,
@@ -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, Ee)]),
323
323
  _: 1
324
324
  }, 8, ["disabled", "popper-class"]));
325
325
  }
326
- }), Te = /* @__PURE__ */ l({
326
+ }), Oe = /* @__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
+ }), ke = {
341
341
  key: 3,
342
342
  class: "ml-ribbon-item-host__label ml-ribbon-button__label"
343
- }, De = /* @__PURE__ */ l({
343
+ }, Ae = /* @__PURE__ */ l({
344
344
  name: "MlRibbonButton",
345
345
  __name: "RibbonButton",
346
346
  props: {
@@ -389,7 +389,7 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
389
389
  class: m(["ml-ribbon-item-host__icon ml-ribbon-button__icon", g.value]),
390
390
  style: h(_.value),
391
391
  "aria-hidden": "true"
392
- }, [S(t.$slots, "icon")], 6)) : f.value ? (v(), n(E(I), {
392
+ }, [S(t.$slots, "icon")], 6)) : f.value ? (v(), n(E(F), {
393
393
  key: 1,
394
394
  class: m(["ml-ribbon-item-host__icon ml-ribbon-button__icon", g.value]),
395
395
  style: h(_.value)
@@ -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", ke, [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
+ }), je = ["data-id"], Me = {
419
419
  key: 0,
420
420
  class: "ml-ribbon-button-group__label"
421
- }, Ae = { class: "ml-ribbon-button-group__text" }, je = /* @__PURE__ */ l({
421
+ }, Ne = { class: "ml-ribbon-button-group__text" }, Pe = /* @__PURE__ */ l({
422
422
  __name: "RibbonButtonGroup",
423
423
  props: {
424
424
  id: {},
@@ -475,8 +475,8 @@ 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, {
479
- default: O(() => [(v(!0), i(e, null, x(t.options, (e) => (v(), n(E(V), {
478
+ }, [!t.hideLabel && t.label ? (v(), i("div", Me, w(t.label), 1)) : r("", !0), c(E(A), null, {
479
+ default: O(() => [(v(!0), i(e, null, x(t.options, (e) => (v(), n(E(z), {
480
480
  key: String(e.value),
481
481
  content: g(e),
482
482
  disabled: !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(Ae, {
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", Ne, 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, je));
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
+ }), Fe = { class: "ml-ribbon-item-host__content ml-ribbon-dropdown__content" }, Ie = { class: "ml-ribbon-item-host__text-row ml-ribbon-dropdown__text-row" }, Le = {
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
+ }, Z = { class: "ml-ribbon-dropdown-item__content" }, Re = { class: "ml-ribbon-dropdown-item__label" }, ze = /* @__PURE__ */ l({
528
528
  name: "MlRibbonDropdown",
529
529
  __name: "RibbonDropdown",
530
530
  props: {
@@ -556,125 +556,125 @@ 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 = se("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) => V(e) === g.value) ?? null), T = t(() => {
560
560
  if (y.value && u.syncLabelWithSelection) {
561
- let e = se(y.value);
561
+ let e = le(y.value);
562
562
  if (e) return e;
563
563
  }
564
- return G(u.label) ?? u.id;
564
+ return fe(u.label) ?? u.id;
565
565
  }), D = t(() => !u.hideLabel && T.value.length > 0), A = t(() => {
566
566
  if (y.value) {
567
- let e = B(y.value);
567
+ let e = oe(y.value);
568
568
  if (e) return e;
569
569
  }
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 = R(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)), re = t(() => de(y.value) ?? fe(u.tooltip) ?? fe(T.value) ?? fe(u.label) ?? U(u.id)), j = t(() => [
580
580
  "ml-ribbon-dropdown-menu",
581
581
  "ml-ribbon-popper",
582
582
  `ml-ribbon-popper--size-${p.value}`,
583
583
  u.popperClass
584
584
  ].filter(Boolean).join(" "));
585
- function L(e) {
585
+ function I(e) {
586
586
  if (u.disabled) {
587
587
  h.value = !1;
588
588
  return;
589
589
  }
590
590
  h.value = e;
591
591
  }
592
- function R() {
592
+ function ie() {
593
593
  u.disabled || (h.value = !h.value);
594
594
  }
595
- function re(e) {
596
- u.disabled || (g.value = e, d("tooltip-change", le(y.value) ?? j.value), d("command", e), h.value = !1);
595
+ function ae(e) {
596
+ u.disabled || (g.value = e, d("tooltip-change", de(y.value) ?? re.value), d("command", e), h.value = !1);
597
597
  }
598
- function z() {
598
+ function L() {
599
599
  if (u.disabled) return;
600
600
  let e = y.value;
601
601
  if (!e) {
602
602
  d("click");
603
603
  return;
604
604
  }
605
- d("command", W(e));
605
+ d("command", V(e));
606
606
  }
607
- function B(e) {
607
+ function oe(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 R(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 V(e) {
618
618
  if (!(!e || typeof e != "object")) return e.value;
619
619
  }
620
- function oe(e) {
621
- let t = W(e);
620
+ function ce(e) {
621
+ let t = V(e);
622
622
  if (typeof t == "string" || typeof t == "number" || t && typeof t == "object") return t;
623
623
  }
624
- function se(e) {
624
+ function le(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 ue(e) {
630
+ if (typeof e == "string") return U(e);
631
631
  if (typeof e == "number" || typeof e == "boolean") return String(e);
632
632
  }
633
- function le(e) {
634
- if (!(!e || typeof e != "object")) return G(e.tooltip) ?? se(e) ?? ce(W(e));
633
+ function de(e) {
634
+ if (!(!e || typeof e != "object")) return fe(e.tooltip) ?? le(e) ?? ue(V(e));
635
635
  }
636
- function G(e) {
636
+ function fe(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 U(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
  }
645
- return (t, l) => (v(), n(E(N), {
645
+ return (t, l) => (v(), n(E(M), {
646
646
  class: m(["ml-ribbon-dropdown", [`ml-ribbon-dropdown--item-${o.itemSize}`, { "is-label-hidden": o.hideLabel }]]),
647
647
  trigger: "click",
648
648
  disabled: o.disabled,
649
- "popper-class": M.value,
650
- onVisibleChange: L,
651
- onCommand: re
649
+ "popper-class": j.value,
650
+ onVisibleChange: I,
651
+ onCommand: ae
652
652
  }, {
653
- dropdown: O(() => [c(E(F), null, {
654
- default: O(() => [(v(!0), i(e, null, x(_.value, (e) => (v(), n(E(P), {
655
- key: String(W(e)),
656
- command: oe(e),
653
+ dropdown: O(() => [c(E(P), null, {
654
+ default: O(() => [(v(!0), i(e, null, x(_.value, (e) => (v(), n(E(N), {
655
+ key: String(V(e)),
656
+ command: ce(e),
657
657
  disabled: e.disabled === !0
658
658
  }, {
659
- default: O(() => [c(E(V), {
660
- content: le(e),
661
- disabled: !le(e),
659
+ default: O(() => [c(E(z), {
660
+ content: de(e),
661
+ disabled: !de(e),
662
662
  "show-after": o.tooltipShowAfter,
663
663
  "hide-after": o.tooltipHideAfter,
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", Z, [S(t.$slots, "option", { option: e }, () => [oe(e) ? (v(), n(E(F), {
668
668
  key: 0,
669
669
  class: "ml-ribbon-dropdown-item__icon"
670
670
  }, {
671
- default: O(() => [(v(), n(C(B(e))))]),
671
+ default: O(() => [(v(), n(C(oe(e))))]),
672
672
  _: 2
673
- }, 1024)) : U(e) ? (v(), i("i", {
673
+ }, 1024)) : R(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", R(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", Re, w(le(e)), 1)])])]),
678
678
  _: 2
679
679
  }, 1032, [
680
680
  "content",
@@ -689,25 +689,25 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
689
689
  default: O(() => [c(E(ee), {
690
690
  type: "default",
691
691
  disabled: o.disabled,
692
- "aria-label": j.value,
693
- onClick: R
692
+ "aria-label": re.value,
693
+ onClick: ie
694
694
  }, {
695
- default: O(() => [a("span", Me, [t.$slots.icon || ne.value ? (v(), i("span", {
695
+ default: O(() => [a("span", Fe, [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
- onClick: k(z, ["stop"])
699
- }, [S(t.$slots, "icon", { selectedOption: y.value }, () => [A.value ? (v(), n(E(I), { key: 0 }, {
698
+ onClick: k(L, ["stop"])
699
+ }, [S(t.$slots, "icon", { selectedOption: y.value }, () => [A.value ? (v(), n(E(F), { key: 0 }, {
700
700
  default: O(() => [(v(), n(C(A.value)))]),
701
701
  _: 1
702
702
  })) : te.value ? (v(), i("i", {
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", Ie, [D.value ? (v(), i("span", Le, [S(t.$slots, "label", {
707
707
  selectedOption: y.value,
708
708
  label: T.value
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))))]),
709
+ }, () => [s(w(T.value), 1)])])) : r("", !0), c(E(F), { 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(H) : E(B))))]),
711
711
  _: 1
712
712
  }, 8, ["class"])])])]),
713
713
  _: 3
@@ -719,10 +719,13 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
719
719
  "popper-class"
720
720
  ]));
721
721
  }
722
- }), Re = {
722
+ }), Be = {
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
+ }, Ve = { class: "ml-ribbon-gallery__categories" }, He = {
726
+ key: 0,
727
+ class: "ml-ribbon-gallery__category-title"
728
+ }, Ue = { class: "ml-ribbon-gallery__grid" }, We = ["disabled", "onClick"], Q = { class: "ml-ribbon-gallery__preview" }, Ge = { class: "ml-ribbon-gallery__label" }, Ke = /* @__PURE__ */ l({
726
729
  __name: "RibbonGallery",
727
730
  props: {
728
731
  id: {},
@@ -735,32 +738,36 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
735
738
  previewFallback: {}
736
739
  },
737
740
  emits: ["select"],
738
- setup(t, { emit: n }) {
739
- let o = t, s = n, c = b("");
740
- function l(e) {
741
- o.disabled || (c.value = e, s("select", e));
741
+ setup(n, { emit: o }) {
742
+ let s = n, c = o, l = b(""), u = t(() => s.categories.filter((e) => e.items.length > 0).length);
743
+ function d(e) {
744
+ let t = s.label.trim().toLowerCase(), n = e.title.trim().toLowerCase();
745
+ return u.value > 1 || !t || n !== t;
746
+ }
747
+ function f(e) {
748
+ s.disabled || (l.value = e, c("select", e));
742
749
  }
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", {
744
- key: n.id,
750
+ return (t, o) => (v(), i("div", { class: m(["ml-ribbon-gallery", { "is-disabled": n.disabled }]) }, [n.label ? (v(), i("div", Be, w(n.label), 1)) : r("", !0), a("div", Ve, [(v(!0), i(e, null, x(n.categories, (t) => (v(), i("section", {
751
+ key: t.id,
745
752
  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", {
753
+ }, [d(t) ? (v(), i("h4", He, w(t.title), 1)) : r("", !0), a("div", Ue, [(v(!0), i(e, null, x(t.items, (e) => (v(), i("button", {
747
754
  key: e.id,
748
755
  type: "button",
749
- class: m(["ml-ribbon-gallery__item", { "is-selected": c.value === e.id }]),
750
- disabled: t.disabled,
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));
756
+ class: m(["ml-ribbon-gallery__item", { "is-selected": l.value === e.id }]),
757
+ disabled: n.disabled,
758
+ onClick: (t) => f(e.id)
759
+ }, [a("div", Q, w(e.preview ?? s.previewFallback), 1), a("div", Ge, w(e.label), 1)], 10, We))), 128))])]))), 128))])], 2));
753
760
  }
754
- }), Ke = ["data-id"], qe = {
761
+ }), qe = ["data-id"], Je = {
755
762
  key: 0,
756
763
  class: "ml-ribbon-segmented__label"
757
- }, Je = ["data-option-value"], $ = {
764
+ }, Ye = ["data-option-value"], Xe = {
758
765
  key: 2,
759
766
  class: "ml-ribbon-segmented__option-label"
760
- }, Ye = {
767
+ }, Ze = {
761
768
  key: 3,
762
769
  class: "ml-ribbon-segmented__option-sr-label"
763
- }, Xe = /* @__PURE__ */ l({
770
+ }, $ = /* @__PURE__ */ l({
764
771
  __name: "RibbonSegmented",
765
772
  props: {
766
773
  id: {},
@@ -816,7 +823,7 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
816
823
  return (t, o) => (v(), i("div", {
817
824
  class: "ml-ribbon-segmented",
818
825
  "data-id": e.id
819
- }, [d.value ? (v(), i("div", qe, w(u.value), 1)) : r("", !0), c(E(re), {
826
+ }, [d.value ? (v(), i("div", Je, w(u.value), 1)) : r("", !0), c(E(L), {
820
827
  class: "ml-ribbon-segmented__control",
821
828
  options: e.options,
822
829
  "model-value": e.modelValue,
@@ -829,7 +836,7 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
829
836
  default: O(({ item: e }) => [a("span", {
830
837
  class: "ml-ribbon-segmented__option",
831
838
  "data-option-value": y(e)
832
- }, [h(e) ? (v(), n(E(I), {
839
+ }, [h(e) ? (v(), n(E(F), {
833
840
  key: 0,
834
841
  class: "ml-ribbon-segmented__option-icon",
835
842
  "aria-hidden": "true"
@@ -840,7 +847,7 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
840
847
  key: 1,
841
848
  class: m(["ml-ribbon-segmented__option-icon ml-ribbon-item-host__icon--class", g(e)]),
842
849
  "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)]),
850
+ }, null, 2)) : r("", !0), _(e) ? (v(), i("span", Xe, w(p(e)), 1)) : (v(), i("span", Ze, w(p(e)), 1))], 8, Ye)]),
844
851
  _: 1
845
852
  }, 8, [
846
853
  "options",
@@ -849,9 +856,9 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
849
856
  "block",
850
857
  "disabled",
851
858
  "aria-label"
852
- ])], 8, Ke));
859
+ ])], 8, qe));
853
860
  }
854
- }), Ze = /* @__PURE__ */ l({
861
+ }), Qe = /* @__PURE__ */ l({
855
862
  __name: "RibbonToggleButton",
856
863
  props: {
857
864
  id: {},
@@ -885,7 +892,7 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
885
892
  let e = !o.value;
886
893
  o.value = e, a("change", e);
887
894
  }
888
- return (t, r) => (v(), n(De, {
895
+ return (t, r) => (v(), n(Ae, {
889
896
  id: e.id,
890
897
  class: m(["ml-ribbon-toggle", { "is-active": s.value }]),
891
898
  icon: c.value,
@@ -906,7 +913,7 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
906
913
  "aria-pressed"
907
914
  ]));
908
915
  }
909
- }), Qe = ["data-template-id", "aria-disabled"], $e = /* @__PURE__ */ l({
916
+ }), $e = ["data-template-id", "aria-disabled"], et = /* @__PURE__ */ l({
910
917
  __name: "RibbonTemplateItem",
911
918
  props: {
912
919
  id: {},
@@ -921,116 +928,132 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
921
928
  }, [S(t.$slots, "default", {
922
929
  item: e.item,
923
930
  disabled: e.disabled
924
- }, () => [a("span", null, w(e.item.label ?? e.item.id), 1)])], 8, Qe));
931
+ }, () => [a("span", null, w(e.item.label ?? e.item.id), 1)])], 8, $e));
925
932
  }
926
- }), et = ["data-item-id"], tt = {
933
+ }), tt = ["data-item-id"], nt = {
927
934
  key: 0,
928
935
  class: "ml-ribbon-item-host__keytip"
929
- }, nt = /* @__PURE__ */ l({
936
+ }, rt = /* @__PURE__ */ l({
930
937
  __name: "RibbonItemHost",
931
938
  props: {
932
939
  id: {},
933
940
  item: {},
934
941
  groupId: {},
935
- galleryPreviewFallback: {}
942
+ galleryPreviewFallback: {},
943
+ disabled: { type: Boolean }
936
944
  },
937
945
  emits: ["item-click"],
938
946
  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;
941
- let e = p.keyTipsSequence.value.toLowerCase();
947
+ let l = o, p = c, g = u(fe, null), _ = t(() => Array.isArray(l.item.props?.options) ? l.item.props.options : []), y = se("size", ""), k = t(() => y.value || "default"), ee = t(() => je(g?.tooltipShowAfter.value, 1e3)), A = t(() => je(g?.tooltipHideAfter.value, 0)), re = t(() => `ml-ribbon-select-dropdown ml-ribbon-popper ml-ribbon-popper--size-${k.value}`), j = t(() => l.item.props?.icon || l.item.icon), M = t(() => l.item.hideLabel !== !0), N = b(void 0), P = t(() => l.item.type === "dropdown" && N.value ? N.value : ke(l.item.tooltip) ?? ke(l.item.label) ?? Le(l.item) ?? Z(l.item.id)), F = t(() => l.item.type !== "buttonGroup"), ae = t(() => !F.value || !P.value), L = t(() => P.value ?? l.item.id), R = t(() => l.item.keyTip?.trim().toUpperCase() ?? ""), B = t(() => {
948
+ if (!g?.keyTipsOpen.value || g?.disabled.value || l.disabled === !0 || !R.value) return !1;
949
+ let e = g.keyTipsSequence.value.toLowerCase();
942
950
  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(() => {
951
+ }), V = t(() => l.disabled === !0 || l.item.disabled === !0 || g?.disabled.value === !0), H = t(() => l.item.props?.modelValue), ce = t(() => l.item.props?.activeLabel), le = t(() => l.item.props?.inactiveLabel), ue = t(() => {
944
952
  let e = l.item.props?.component;
945
- return !e || typeof e == "string" ? null : e;
946
- }), oe = t(() => {
953
+ return !e || typeof e == "string" ? null : d(T(e));
954
+ }), de = t(() => {
947
955
  let e = l.item.props?.componentProps;
948
956
  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(() => {
957
+ }), U = t(() => l.item.props?.wrap !== !1), W = t(() => l.item.props?.equalWidth === !0), G = t(() => {
950
958
  let e = l.item.props?.buttonSize;
951
959
  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
- 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;
960
+ }), K = t(() => Fe(l.item.props?.iconSize)), pe = t(() => Me(l.item.props?.width ?? l.item.props?.comboWidth, "92px")), me = t(() => l.item.props?.modelValue), q = t(() => Me(l.item.props?.width ?? l.item.props?.inputNumberWidth, "96px")), J = t(() => l.item.props?.modelValue), he = t(() => {
961
+ let e = { ...l.item.props ?? {} };
962
+ return delete e.modelValue, delete e.width, delete e.inputNumberWidth, delete e.emitValueOnChange, delete e.options, delete e.component, delete e.componentProps, e;
963
+ }), ge = t(() => Ie(l.item.props?.labelWrapLines)), _e = t(() => Ne(l.item.props?.labelWrapWidth)), ve = t(() => l.item.type === "button" && l.item.size === "large" && M.value && (ge.value ?? 0) > 1), ye = t(() => {
964
+ if (!ve.value) return {};
965
+ let e = { "--ml-rb-item-label-max-lines": String(ge.value ?? 2) };
966
+ return _e.value && (e["--ml-rb-item-label-wrap-width"] = _e.value), e;
956
967
  });
957
968
  D(() => l.item.id, () => {
958
- M.value = void 0;
969
+ N.value = void 0;
959
970
  });
960
- function X() {
961
- B.value || d("item-click", l.id);
971
+ function Y() {
972
+ V.value || p("item-click", l.id);
962
973
  }
963
- function Z(e) {
964
- if (!B.value) {
974
+ function be(e) {
975
+ if (!V.value) {
965
976
  if (typeof e == "string" || typeof e == "number") {
966
- d("item-click", String(e));
977
+ p("item-click", String(e));
967
978
  return;
968
979
  }
969
- X();
980
+ Y();
970
981
  }
971
982
  }
972
- function pe(e) {
973
- M.value = e;
983
+ function X(e) {
984
+ N.value = e;
974
985
  }
975
- function me(e) {
976
- if (!B.value) {
986
+ function xe(e) {
987
+ if (!V.value) {
977
988
  if (typeof e == "string" || typeof e == "number" || typeof e == "boolean") {
978
- d("item-click", String(e));
989
+ p("item-click", String(e));
979
990
  return;
980
991
  }
981
- X();
992
+ Y();
982
993
  }
983
994
  }
984
- function he(e) {
985
- if (B.value) return;
995
+ function Se(e) {
996
+ if (V.value) return;
986
997
  let t = e ? l.item.props?.activeValue : l.item.props?.inactiveValue;
987
998
  if (typeof t == "string" || typeof t == "number" || typeof t == "boolean") {
988
- d("item-click", String(t));
999
+ p("item-click", String(t));
989
1000
  return;
990
1001
  }
991
- d("item-click", String(e));
1002
+ p("item-click", String(e));
992
1003
  }
993
- function ge(e) {
994
- if (!B.value) {
1004
+ function Ce(e) {
1005
+ if (!V.value) {
995
1006
  if (typeof e == "string" || typeof e == "number" || typeof e == "boolean") {
996
- d("item-click", String(e));
1007
+ p("item-click", String(e));
997
1008
  return;
998
1009
  }
999
- X();
1010
+ Y();
1000
1011
  }
1001
1012
  }
1002
- function Q(e) {
1003
- if (!B.value) {
1013
+ function we(e) {
1014
+ V.value || p("item-click", e);
1015
+ }
1016
+ function Te(e) {
1017
+ if (!V.value) {
1004
1018
  if (l.item.props?.emitValueOnChange === !0 && (typeof e == "string" || typeof e == "number" || typeof e == "boolean")) {
1005
- d("item-click", String(e));
1019
+ p("item-click", String(e));
1006
1020
  return;
1007
1021
  }
1008
- X();
1022
+ Y();
1009
1023
  }
1010
1024
  }
1011
- function _e(e) {
1012
- if (!B.value) {
1025
+ function Ee(e) {
1026
+ if (!V.value) {
1027
+ if (l.item.props?.emitValueOnChange === !0 && typeof e == "number" && Number.isFinite(e)) {
1028
+ p("item-click", String(e));
1029
+ return;
1030
+ }
1031
+ Y();
1032
+ }
1033
+ }
1034
+ function De(e) {
1035
+ if (!V.value) {
1013
1036
  if (typeof e == "string" || typeof e == "number" || typeof e == "boolean") {
1014
- d("item-click", String(e));
1037
+ p("item-click", String(e));
1015
1038
  return;
1016
1039
  }
1017
- X();
1040
+ Y();
1018
1041
  }
1019
1042
  }
1020
- function ve(e) {
1043
+ function Oe(e) {
1021
1044
  if (!e || typeof e != "object") return;
1022
1045
  let t = e.label;
1023
1046
  return typeof t == "string" ? t : void 0;
1024
1047
  }
1025
- function ye(e) {
1048
+ function ke(e) {
1026
1049
  if (typeof e != "string") return;
1027
1050
  let t = e.trim();
1028
1051
  return t.length > 0 ? t : void 0;
1029
1052
  }
1030
- function be(e, t) {
1053
+ function je(e, t) {
1031
1054
  return typeof e != "number" || Number.isNaN(e) || !Number.isFinite(e) ? t : Math.max(0, Math.round(e));
1032
1055
  }
1033
- function xe(e, t) {
1056
+ function Me(e, t) {
1034
1057
  if (typeof e == "number" && Number.isFinite(e) && e > 0) return `${e}px`;
1035
1058
  if (typeof e == "string") {
1036
1059
  let n = e.trim();
@@ -1038,35 +1061,35 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
1038
1061
  }
1039
1062
  return t;
1040
1063
  }
1041
- function Se(e) {
1064
+ function Ne(e) {
1042
1065
  if (typeof e == "number" && Number.isFinite(e) && e > 0) return `${e}px`;
1043
1066
  if (typeof e == "string") {
1044
1067
  let t = e.trim();
1045
1068
  return t ? t.toLowerCase() === "full" ? "100%" : t : void 0;
1046
1069
  }
1047
1070
  }
1048
- function Ce(e) {
1071
+ function Fe(e) {
1049
1072
  if (typeof e == "number" && Number.isFinite(e) && e > 0) return `${e}px`;
1050
1073
  if (typeof e != "string") return;
1051
1074
  let t = e.trim();
1052
1075
  return t.length > 0 ? t : void 0;
1053
1076
  }
1054
- function we(e) {
1077
+ function Ie(e) {
1055
1078
  if (!(typeof e != "number" || Number.isNaN(e) || !Number.isFinite(e))) return Math.max(1, Math.round(e));
1056
1079
  }
1057
- function Te(e) {
1058
- let t = g.value.map((e) => ve(e)).filter((e) => !!e);
1080
+ function Le(e) {
1081
+ let t = _.value.map((e) => Oe(e)).filter((e) => !!e);
1059
1082
  if (t.length) return e.type === "buttonGroup" ? t.join(" / ") : t[0];
1060
1083
  }
1061
- function Ee(e) {
1084
+ function Z(e) {
1062
1085
  let t = e.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]+/g, " ").trim();
1063
1086
  return t ? t.replace(/\b\w/g, (e) => e.toUpperCase()) : e;
1064
1087
  }
1065
- return (t, c) => (v(), n(E(V), {
1066
- content: N.value,
1067
- disabled: F.value,
1068
- "show-after": T.value,
1069
- "hide-after": k.value,
1088
+ return (t, c) => (v(), n(E(z), {
1089
+ content: P.value,
1090
+ disabled: ae.value,
1091
+ "show-after": ee.value,
1092
+ "hide-after": A.value,
1070
1093
  placement: "top",
1071
1094
  effect: "dark"
1072
1095
  }, {
@@ -1076,26 +1099,26 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
1076
1099
  `type-${o.item.type}`,
1077
1100
  {
1078
1101
  "is-label-hidden": o.item.hideLabel === !0,
1079
- "is-label-wrap": fe.value
1102
+ "is-label-wrap": ve.value
1080
1103
  }
1081
1104
  ]]),
1082
- style: h(Y.value),
1105
+ style: h(ye.value),
1083
1106
  "data-item-id": o.id,
1084
1107
  role: "group"
1085
- }, [re.value ? (v(), i("span", tt, w(R.value), 1)) : r("", !0), o.item.type === "buttonGroup" ? (v(), n(je, {
1108
+ }, [B.value ? (v(), i("span", nt, w(R.value), 1)) : r("", !0), o.item.type === "buttonGroup" ? (v(), n(Pe, {
1086
1109
  key: 1,
1087
1110
  id: o.item.id,
1088
1111
  label: o.item.label ?? "",
1089
1112
  options: o.item.props?.options ?? [],
1090
1113
  "hide-label": o.item.hideLabel === !0,
1091
- wrap: se.value,
1092
- "equal-width": ce.value,
1114
+ wrap: U.value,
1115
+ "equal-width": W.value,
1093
1116
  "button-size": G.value,
1094
1117
  "icon-size": K.value,
1095
- "tooltip-show-after": T.value,
1096
- "tooltip-hide-after": k.value,
1097
- disabled: B.value,
1098
- onChange: ge
1118
+ "tooltip-show-after": ee.value,
1119
+ "tooltip-hide-after": A.value,
1120
+ disabled: V.value,
1121
+ onChange: Ce
1099
1122
  }, null, 8, [
1100
1123
  "id",
1101
1124
  "label",
@@ -1108,7 +1131,7 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
1108
1131
  "tooltip-show-after",
1109
1132
  "tooltip-hide-after",
1110
1133
  "disabled"
1111
- ])) : o.item.type === "segmented" ? (v(), n(Xe, {
1134
+ ])) : o.item.type === "segmented" ? (v(), n($, {
1112
1135
  key: 2,
1113
1136
  id: o.item.id,
1114
1137
  label: o.item.label ?? o.item.id,
@@ -1116,9 +1139,9 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
1116
1139
  "model-value": o.item.props?.modelValue,
1117
1140
  direction: o.item.props?.direction ?? "horizontal",
1118
1141
  block: o.item.props?.block === !0,
1119
- disabled: B.value,
1142
+ disabled: V.value,
1120
1143
  "hide-label": o.item.hideLabel === !0,
1121
- onChange: me
1144
+ onChange: xe
1122
1145
  }, null, 8, [
1123
1146
  "id",
1124
1147
  "label",
@@ -1128,18 +1151,18 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
1128
1151
  "block",
1129
1152
  "disabled",
1130
1153
  "hide-label"
1131
- ])) : o.item.type === "toggle" ? (v(), n(Ze, {
1154
+ ])) : o.item.type === "toggle" ? (v(), n(Qe, {
1132
1155
  key: 3,
1133
1156
  id: o.item.id,
1134
1157
  label: o.item.label ?? o.item.id,
1135
1158
  "model-value": H.value,
1136
1159
  "active-icon": o.item.props?.activeIcon ?? o.item.props?.icon ?? o.item.icon,
1137
1160
  "inactive-icon": o.item.props?.inactiveIcon ?? o.item.props?.icon ?? o.item.icon,
1138
- "active-label": U.value,
1139
- "inactive-label": ae.value,
1140
- disabled: B.value,
1161
+ "active-label": ce.value,
1162
+ "inactive-label": le.value,
1163
+ disabled: V.value,
1141
1164
  "hide-label": o.item.hideLabel === !0,
1142
- onChange: he
1165
+ onChange: Se
1143
1166
  }, null, 8, [
1144
1167
  "id",
1145
1168
  "label",
@@ -1150,31 +1173,31 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
1150
1173
  "inactive-label",
1151
1174
  "disabled",
1152
1175
  "hide-label"
1153
- ])) : o.item.type === "gallery" ? (v(), n(Ge, {
1176
+ ])) : o.item.type === "gallery" ? (v(), n(Ke, {
1154
1177
  key: 4,
1155
1178
  id: o.item.id,
1156
1179
  label: o.item.label ?? "",
1157
1180
  categories: o.item.props?.categories ?? [],
1158
1181
  "preview-fallback": l.galleryPreviewFallback,
1159
- disabled: B.value,
1160
- onSelect: X
1182
+ disabled: V.value,
1183
+ onSelect: we
1161
1184
  }, null, 8, [
1162
1185
  "id",
1163
1186
  "label",
1164
1187
  "categories",
1165
1188
  "preview-fallback",
1166
1189
  "disabled"
1167
- ])) : o.item.type === "custom" || o.item.type === "template" ? (v(), n($e, {
1190
+ ])) : o.item.type === "custom" || o.item.type === "template" ? (v(), n(et, {
1168
1191
  key: 5,
1169
1192
  id: o.item.id,
1170
1193
  item: o.item,
1171
- disabled: B.value
1194
+ disabled: V.value
1172
1195
  }, {
1173
- default: O(() => [W.value ? (v(), n(C(W.value), f({ key: 0 }, oe.value, {
1196
+ default: O(() => [ue.value ? (v(), n(C(ue.value), f({ key: 0 }, de.value, {
1174
1197
  item: o.item,
1175
1198
  "group-id": o.groupId,
1176
- disabled: B.value,
1177
- "emit-item-click": _e
1199
+ disabled: V.value,
1200
+ "emit-item-click": De
1178
1201
  }), null, 16, [
1179
1202
  "item",
1180
1203
  "group-id",
@@ -1182,29 +1205,29 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
1182
1205
  ])) : S(t.$slots, "template", {
1183
1206
  key: 1,
1184
1207
  item: o.item,
1185
- disabled: B.value
1208
+ disabled: V.value
1186
1209
  })]),
1187
1210
  _: 3
1188
1211
  }, 8, [
1189
1212
  "id",
1190
1213
  "item",
1191
1214
  "disabled"
1192
- ])) : o.item.type === "dropdown" ? (v(), n(Le, {
1215
+ ])) : o.item.type === "dropdown" ? (v(), n(ze, {
1193
1216
  key: 6,
1194
1217
  id: o.item.id,
1195
1218
  label: o.item.label ?? o.item.id,
1196
1219
  tooltip: o.item.tooltip,
1197
- icon: A.value,
1220
+ icon: j.value,
1198
1221
  options: o.item.props?.options ?? [],
1199
- disabled: B.value,
1222
+ disabled: V.value,
1200
1223
  "hide-label": o.item.hideLabel === !0,
1201
1224
  "item-size": o.item.size ?? "medium",
1202
1225
  "sync-label-with-selection": o.item.props?.syncLabelWithSelection === !0,
1203
- "tooltip-show-after": T.value,
1204
- "tooltip-hide-after": k.value,
1205
- onCommand: Z,
1206
- onTooltipChange: pe,
1207
- onClick: X
1226
+ "tooltip-show-after": ee.value,
1227
+ "tooltip-hide-after": A.value,
1228
+ onCommand: be,
1229
+ onTooltipChange: X,
1230
+ onClick: Y
1208
1231
  }, null, 8, [
1209
1232
  "id",
1210
1233
  "label",
@@ -1219,24 +1242,24 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
1219
1242
  "tooltip-hide-after"
1220
1243
  ])) : o.item.type === "checkbox" ? (v(), n(E(te), {
1221
1244
  key: 7,
1222
- disabled: B.value,
1223
- onChange: X
1245
+ disabled: V.value,
1246
+ onChange: Y
1224
1247
  }, {
1225
1248
  default: O(() => [s(w(o.item.label), 1)]),
1226
1249
  _: 1
1227
1250
  }, 8, ["disabled"])) : o.item.type === "colorPicker" ? (v(), n(E(ne), {
1228
1251
  key: 8,
1229
- disabled: B.value,
1230
- onChange: X
1231
- }, null, 8, ["disabled"])) : o.item.type === "comboBox" ? (v(), n(E(z), {
1252
+ disabled: V.value,
1253
+ onChange: Y
1254
+ }, null, 8, ["disabled"])) : o.item.type === "comboBox" ? (v(), n(E(oe), {
1232
1255
  key: 9,
1233
- "model-value": ue.value,
1234
- disabled: B.value,
1235
- "popper-class": ee.value,
1236
- style: h({ width: q.value }),
1237
- onChange: Q
1256
+ "model-value": me.value,
1257
+ disabled: V.value,
1258
+ "popper-class": re.value,
1259
+ style: h({ width: pe.value }),
1260
+ onChange: Te
1238
1261
  }, {
1239
- default: O(() => [(v(!0), i(e, null, x(g.value, (e) => (v(), n(E(L), {
1262
+ default: O(() => [(v(!0), i(e, null, x(_.value, (e) => (v(), n(E(ie), {
1240
1263
  key: String(e.value),
1241
1264
  label: String(e.label),
1242
1265
  value: e.value
@@ -1247,15 +1270,25 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
1247
1270
  "disabled",
1248
1271
  "popper-class",
1249
1272
  "style"
1250
- ])) : (v(), n(De, {
1251
- key: 10,
1273
+ ])) : o.item.type === "inputNumber" ? (v(), n(E(I), f({ key: 10 }, he.value, {
1274
+ class: "ml-ribbon-input-number",
1275
+ "model-value": J.value,
1276
+ disabled: V.value,
1277
+ style: { width: q.value },
1278
+ onChange: Ee
1279
+ }), null, 16, [
1280
+ "model-value",
1281
+ "disabled",
1282
+ "style"
1283
+ ])) : (v(), n(Ae, {
1284
+ key: 11,
1252
1285
  id: o.item.id,
1253
1286
  label: o.item.label ?? o.item.id,
1254
- icon: A.value,
1255
- disabled: B.value,
1256
- "hide-label": !j.value,
1257
- "aria-label": I.value,
1258
- onClick: X
1287
+ icon: j.value,
1288
+ disabled: V.value,
1289
+ "hide-label": !M.value,
1290
+ "aria-label": L.value,
1291
+ onClick: Y
1259
1292
  }, null, 8, [
1260
1293
  "id",
1261
1294
  "label",
@@ -1263,7 +1296,7 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
1263
1296
  "disabled",
1264
1297
  "hide-label",
1265
1298
  "aria-label"
1266
- ]))], 14, et)]),
1299
+ ]))], 14, tt)]),
1267
1300
  _: 3
1268
1301
  }, 8, [
1269
1302
  "content",
@@ -1272,27 +1305,29 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
1272
1305
  "hide-after"
1273
1306
  ]));
1274
1307
  }
1275
- }), rt = /* @__PURE__ */ l({
1308
+ }), it = /* @__PURE__ */ l({
1276
1309
  __name: "RibbonGroupContent",
1277
1310
  props: {
1278
1311
  group: {},
1279
- galleryPreviewFallback: {}
1312
+ galleryPreviewFallback: {},
1313
+ disabled: { type: Boolean }
1280
1314
  },
1281
1315
  emits: ["item-click"],
1282
1316
  setup(t, { emit: r }) {
1283
1317
  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, {
1318
+ 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, {
1285
1319
  id: t.id,
1286
1320
  key: t.id,
1287
1321
  layout: t.layout ?? (a.group.orientation === "row" ? "row" : "column"),
1288
1322
  rows: t.rows
1289
1323
  }, {
1290
- default: O(() => [(v(!0), i(e, null, x(t.items, (e) => (v(), n(nt, {
1324
+ default: O(() => [(v(!0), i(e, null, x(t.items, (e) => (v(), n(rt, {
1291
1325
  id: e.id,
1292
1326
  key: e.id,
1293
1327
  item: e,
1294
1328
  "group-id": a.group.id,
1295
1329
  "gallery-preview-fallback": a.galleryPreviewFallback,
1330
+ disabled: a.disabled,
1296
1331
  onItemClick: r[0] ||= (e) => o("item-click", {
1297
1332
  groupId: a.group.id,
1298
1333
  itemId: e
@@ -1301,7 +1336,8 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
1301
1336
  "id",
1302
1337
  "item",
1303
1338
  "group-id",
1304
- "gallery-preview-fallback"
1339
+ "gallery-preview-fallback",
1340
+ "disabled"
1305
1341
  ]))), 128))]),
1306
1342
  _: 2
1307
1343
  }, 1032, [
@@ -1310,15 +1346,15 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
1310
1346
  "rows"
1311
1347
  ]))), 128))], 2));
1312
1348
  }
1313
- }), it = ["data-priority"], at = { class: "ml-ribbon-group__body" }, ot = { class: "ml-ribbon-group__footer" }, st = { class: "ml-ribbon-group__title" }, ct = [
1349
+ }), at = ["data-priority"], ot = { class: "ml-ribbon-group__body" }, st = { class: "ml-ribbon-group__footer" }, ct = { class: "ml-ribbon-group__title" }, lt = [
1314
1350
  "aria-label",
1315
1351
  "aria-expanded",
1316
1352
  "disabled"
1317
- ], lt = { class: "ml-ribbon-group__overflow-content" }, ut = [
1353
+ ], ut = { class: "ml-ribbon-group__overflow-content" }, dt = [
1318
1354
  "aria-label",
1319
1355
  "aria-expanded",
1320
1356
  "disabled"
1321
- ], dt = { class: "ml-ribbon-group__overflow-content" }, ft = /* @__PURE__ */ l({
1357
+ ], ft = { class: "ml-ribbon-group__overflow-content" }, pt = /* @__PURE__ */ l({
1322
1358
  __name: "RibbonGroup",
1323
1359
  props: {
1324
1360
  id: {},
@@ -1326,18 +1362,18 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
1326
1362
  icon: {},
1327
1363
  groupIconCss: {},
1328
1364
  orientation: {},
1329
- autoWidth: { type: Boolean },
1330
1365
  width: {},
1331
1366
  priority: {},
1332
1367
  launcher: { type: Boolean },
1333
1368
  showLauncherIcon: { type: Boolean },
1334
1369
  groupModel: {},
1335
1370
  overflowTriggerAriaLabel: {},
1336
- galleryPreviewFallback: {}
1371
+ galleryPreviewFallback: {},
1372
+ disabled: { type: Boolean }
1337
1373
  },
1338
1374
  emits: ["item-click"],
1339
1375
  setup(e, { emit: o }) {
1340
- let s = e, l = o, d = u(le, null), f = t(() => s.width == null && s.autoWidth !== !1), y = t(() => {
1376
+ let s = e, l = o, d = u(fe, null), f = t(() => s.width == null), y = t(() => {
1341
1377
  if (typeof s.width != "number" || Number.isNaN(s.width) || s.width <= 0) return;
1342
1378
  let e = `${s.width}px`;
1343
1379
  return {
@@ -1346,13 +1382,13 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
1346
1382
  maxWidth: e,
1347
1383
  flex: `0 0 ${e}`
1348
1384
  };
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: [{
1385
+ }), x = t(() => s.disabled === !0 || d?.disabled.value === !0), T = b(null), k = b([]), A = b(null), te = b(null), ne = b(0), re = b(0), j = se("size", ""), M = t(() => j.value || "default"), N = t(() => `ml-ribbon-group__overflow-popover ml-ribbon-group__overflow-popover--size-${M.value}`), P = t(() => ({ modifiers: [{
1350
1386
  name: "offset",
1351
1387
  options: { offset: [ne.value, 8] }
1352
- }] })), L = t(() => ({ modifiers: [{
1388
+ }] })), I = t(() => ({ modifiers: [{
1353
1389
  name: "offset",
1354
- 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(() => {
1390
+ options: { offset: [re.value, 8] }
1391
+ }] })), ie = 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), z = b(!1), V = t(() => {
1356
1392
  if (!s.groupModel || !k.value.length) return null;
1357
1393
  let e = new Set(k.value), t = s.groupModel.collections?.map((t) => ({
1358
1394
  ...t,
@@ -1362,7 +1398,7 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
1362
1398
  ...s.groupModel,
1363
1399
  collections: t
1364
1400
  } : null;
1365
- }), oe = t(() => s.groupModel?.footerMenuItems?.length ? {
1401
+ }), ce = t(() => s.groupModel?.footerMenuItems?.length ? {
1366
1402
  id: `${s.groupModel.id}-footer-menu`,
1367
1403
  title: "",
1368
1404
  orientation: "row",
@@ -1372,7 +1408,7 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
1372
1408
  items: s.groupModel.footerMenuItems
1373
1409
  }]
1374
1410
  } : null);
1375
- function se() {
1411
+ function le() {
1376
1412
  let e = T.value?.querySelector(".ml-ribbon-group__content");
1377
1413
  if (!e) {
1378
1414
  k.value.length > 0 && (k.value = []);
@@ -1391,12 +1427,12 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
1391
1427
  (i.right - t.right > .5 || i.bottom - t.bottom > .5 || t.left - i.left > .5 || t.top - i.top > .5) && n.push(r);
1392
1428
  }), k.value.length === n.length && k.value.every((e, t) => e === n[t]) || (k.value = n);
1393
1429
  }
1394
- function G() {
1430
+ function ue() {
1395
1431
  p(() => {
1396
- Z(), K(), q(), se();
1432
+ he(), U(), W(), le();
1397
1433
  });
1398
1434
  }
1399
- function K() {
1435
+ function U() {
1400
1436
  let e = T.value?.getBoundingClientRect(), t = A.value?.getBoundingClientRect();
1401
1437
  if (!e || !t) {
1402
1438
  ne.value !== 0 && (ne.value = 0);
@@ -1405,120 +1441,130 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
1405
1441
  let n = Math.round(e.left - t.left);
1406
1442
  ne.value !== n && (ne.value = n);
1407
1443
  }
1408
- function q() {
1444
+ function W() {
1409
1445
  let e = T.value?.getBoundingClientRect(), t = te.value?.getBoundingClientRect();
1410
1446
  if (!e || !t) {
1411
- j.value !== 0 && (j.value = 0);
1447
+ re.value !== 0 && (re.value = 0);
1412
1448
  return;
1413
1449
  }
1414
1450
  let n = Math.round(e.left - t.left);
1415
- j.value !== n && (j.value = n);
1451
+ re.value !== n && (re.value = n);
1416
1452
  }
1417
- function ue(e) {
1418
- V.value = e;
1453
+ function G(e) {
1454
+ R.value = e;
1419
1455
  }
1420
- function de(e) {
1421
- U.value = e;
1456
+ function K(e) {
1457
+ z.value = e;
1422
1458
  }
1423
- function J() {
1424
- x.value || (V.value = !V.value);
1459
+ function pe() {
1460
+ x.value || (R.value = !R.value);
1425
1461
  }
1426
- function fe() {
1427
- x.value || (U.value = !U.value);
1462
+ function me() {
1463
+ x.value || (z.value = !z.value);
1428
1464
  }
1429
- let Y = null, X = null;
1430
- function Z() {
1431
- if (!Y) return;
1465
+ let q = null, J = null;
1466
+ function he() {
1467
+ if (!q) return;
1432
1468
  let e = T.value?.querySelector(".ml-ribbon-group__content") ?? null;
1433
- X !== e && (X && Y.unobserve(X), e && Y.observe(e), X = e);
1469
+ J !== e && (J && q.unobserve(J), e && q.observe(e), J = e);
1434
1470
  }
1435
1471
  return D(() => s.groupModel, () => {
1436
- G();
1472
+ ue();
1437
1473
  }, { deep: !0 }), D(x, (e) => {
1438
- e && (V.value = !1, U.value = !1);
1474
+ e && (R.value = !1, z.value = !1);
1439
1475
  }), g(() => {
1440
- typeof ResizeObserver < "u" && (Y = new ResizeObserver(() => {
1441
- K(), q(), se();
1442
- }), T.value && Y.observe(T.value), Z()), G();
1476
+ typeof ResizeObserver < "u" && (q = new ResizeObserver(() => {
1477
+ U(), W(), le();
1478
+ }), T.value && q.observe(T.value), he()), ue();
1443
1479
  }), _(() => {
1444
- Y?.disconnect();
1480
+ q?.disconnect();
1445
1481
  }), (t, o) => (v(), i("section", {
1446
1482
  ref_key: "groupSectionRef",
1447
1483
  ref: T,
1448
1484
  class: m(["ml-ribbon-group", { "ml-ribbon-group--auto-width": f.value }]),
1449
1485
  "data-priority": e.priority ?? 100,
1450
1486
  style: h(y.value)
1451
- }, [a("div", at, [S(t.$slots, "default")]), a("footer", ot, [
1452
- re.value ? (v(), n(E(I), {
1487
+ }, [a("div", ot, [S(t.$slots, "default")]), a("footer", st, [
1488
+ ie.value ? (v(), n(E(F), {
1453
1489
  key: 0,
1454
1490
  class: "ml-ribbon-group__icon"
1455
1491
  }, {
1456
- default: O(() => [(v(), n(C(re.value)))]),
1492
+ default: O(() => [(v(), n(C(ie.value)))]),
1457
1493
  _: 1
1458
1494
  })) : r("", !0),
1459
- a("span", st, w(e.title), 1),
1460
- B.value && oe.value ? (v(), n(E(R), {
1495
+ a("span", ct, w(e.title), 1),
1496
+ oe.value && ce.value ? (v(), n(E(ae), {
1461
1497
  key: 1,
1462
1498
  trigger: "click",
1463
1499
  placement: "bottom-start",
1464
1500
  disabled: x.value,
1465
- "popper-class": P.value,
1466
- "popper-options": L.value,
1467
- onShow: o[1] ||= (e) => ue(!0),
1468
- onHide: o[2] ||= (e) => ue(!1)
1501
+ "popper-class": N.value,
1502
+ "popper-options": I.value,
1503
+ onShow: o[1] ||= (e) => G(!0),
1504
+ onHide: o[2] ||= (e) => G(!1)
1469
1505
  }, {
1470
1506
  reference: O(() => [a("button", {
1471
1507
  ref_key: "footerTriggerRef",
1472
1508
  ref: te,
1473
1509
  type: "button",
1474
- class: m(["ml-ribbon-group__footer-trigger", { "is-open": V.value }]),
1510
+ class: m(["ml-ribbon-group__footer-trigger", { "is-open": R.value }]),
1475
1511
  "aria-label": e.overflowTriggerAriaLabel,
1476
- "aria-expanded": V.value,
1512
+ "aria-expanded": R.value,
1477
1513
  disabled: x.value,
1478
- onClick: J
1479
- }, [c(E(I), null, {
1480
- default: O(() => [(v(), n(C(V.value ? E(ae) : E(H))))]),
1514
+ onClick: pe
1515
+ }, [c(E(F), null, {
1516
+ default: O(() => [(v(), n(C(R.value ? E(H) : E(B))))]),
1481
1517
  _: 1
1482
- })], 10, ct)]),
1483
- default: O(() => [a("div", lt, [c(rt, {
1484
- group: oe.value,
1518
+ })], 10, lt)]),
1519
+ default: O(() => [a("div", ut, [c(it, {
1520
+ group: ce.value,
1485
1521
  "gallery-preview-fallback": e.galleryPreviewFallback,
1522
+ disabled: x.value,
1486
1523
  onItemClick: o[0] ||= (e) => l("item-click", e)
1487
- }, null, 8, ["group", "gallery-preview-fallback"])])]),
1524
+ }, null, 8, [
1525
+ "group",
1526
+ "gallery-preview-fallback",
1527
+ "disabled"
1528
+ ])])]),
1488
1529
  _: 1
1489
1530
  }, 8, [
1490
1531
  "disabled",
1491
1532
  "popper-class",
1492
1533
  "popper-options"
1493
1534
  ])) : r("", !0),
1494
- z.value && W.value ? (v(), n(E(R), {
1535
+ L.value && V.value ? (v(), n(E(ae), {
1495
1536
  key: 2,
1496
1537
  trigger: "click",
1497
1538
  placement: "bottom-start",
1498
1539
  disabled: x.value,
1499
- "popper-class": P.value,
1500
- "popper-options": F.value,
1501
- onShow: o[4] ||= (e) => de(!0),
1502
- onHide: o[5] ||= (e) => de(!1)
1540
+ "popper-class": N.value,
1541
+ "popper-options": P.value,
1542
+ onShow: o[4] ||= (e) => K(!0),
1543
+ onHide: o[5] ||= (e) => K(!1)
1503
1544
  }, {
1504
1545
  reference: O(() => [a("button", {
1505
1546
  ref_key: "overflowTriggerRef",
1506
1547
  ref: A,
1507
1548
  type: "button",
1508
- class: m(["ml-ribbon-group__overflow-trigger", { "is-open": U.value }]),
1549
+ class: m(["ml-ribbon-group__overflow-trigger", { "is-open": z.value }]),
1509
1550
  "aria-label": e.overflowTriggerAriaLabel,
1510
- "aria-expanded": U.value,
1551
+ "aria-expanded": z.value,
1511
1552
  disabled: x.value,
1512
- onClick: fe
1513
- }, [c(E(I), null, {
1514
- default: O(() => [(v(), n(C(U.value ? E(ae) : E(H))))]),
1553
+ onClick: me
1554
+ }, [c(E(F), null, {
1555
+ default: O(() => [(v(), n(C(z.value ? E(H) : E(B))))]),
1515
1556
  _: 1
1516
- })], 10, ut)]),
1517
- default: O(() => [a("div", dt, [c(rt, {
1518
- group: W.value,
1557
+ })], 10, dt)]),
1558
+ default: O(() => [a("div", ft, [c(it, {
1559
+ group: V.value,
1519
1560
  "gallery-preview-fallback": e.galleryPreviewFallback,
1561
+ disabled: x.value,
1520
1562
  onItemClick: o[3] ||= (e) => l("item-click", e)
1521
- }, null, 8, ["group", "gallery-preview-fallback"])])]),
1563
+ }, null, 8, [
1564
+ "group",
1565
+ "gallery-preview-fallback",
1566
+ "disabled"
1567
+ ])])]),
1522
1568
  _: 1
1523
1569
  }, 8, [
1524
1570
  "disabled",
@@ -1531,24 +1577,24 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
1531
1577
  class: "ml-ribbon-group__launcher",
1532
1578
  disabled: x.value
1533
1579
  }, {
1534
- default: O(() => [c(E(I), null, {
1535
- default: O(() => [c(E(ce))]),
1580
+ default: O(() => [c(E(F), null, {
1581
+ default: O(() => [c(E(de))]),
1536
1582
  _: 1
1537
1583
  })]),
1538
1584
  _: 1
1539
1585
  }, 8, ["disabled"])) : r("", !0)
1540
- ])], 14, it));
1586
+ ])], 14, at));
1541
1587
  }
1542
- }), pt = ["inert", "aria-disabled"], mt = { class: "ml-ribbon__head-left" }, ht = { class: "ml-ribbon__head-right" }, gt = {
1588
+ }), mt = ["inert", "aria-disabled"], ht = { class: "ml-ribbon__head-left" }, gt = { class: "ml-ribbon__head-right" }, _t = {
1543
1589
  key: 2,
1544
1590
  class: "ml-ribbon__tabs-extra"
1545
- }, _t = ["data-active-tab"], vt = {
1591
+ }, vt = ["data-active-tab"], yt = {
1546
1592
  key: 0,
1547
1593
  class: "ml-ribbon-group ml-ribbon-group--overflow"
1548
- }, yt = { class: "ml-ribbon-group__body ml-ribbon-group__body--overflow" }, bt = ["aria-label", "disabled"], xt = { class: "ml-ribbon-overflow-list" }, St = { class: "ml-ribbon-overflow-group__header" }, Ct = ["data-active-tab"], wt = ["disabled"], Tt = { class: "ml-ribbon-simplified-group__panel" }, Et = ["data-active-tab"], Dt = {
1594
+ }, bt = { class: "ml-ribbon-group__body ml-ribbon-group__body--overflow" }, xt = ["aria-label", "disabled"], St = { class: "ml-ribbon-overflow-list" }, Ct = { class: "ml-ribbon-overflow-group__header" }, wt = ["data-active-tab"], Tt = ["disabled"], Et = { class: "ml-ribbon-simplified-group__panel" }, Dt = ["data-active-tab"], Ot = {
1549
1595
  key: 0,
1550
1596
  class: "ml-ribbon-group ml-ribbon-group--overflow"
1551
- }, Ot = { class: "ml-ribbon-group__body ml-ribbon-group__body--overflow" }, kt = ["aria-label", "disabled"], At = { class: "ml-ribbon-overflow-list" }, jt = { class: "ml-ribbon-overflow-group__header" }, Mt = ["data-active-tab"], Nt = ["disabled"], Pt = { class: "ml-ribbon-simplified-group__panel" }, Ft = 40, It = /* @__PURE__ */ l({
1597
+ }, kt = { class: "ml-ribbon-group__body ml-ribbon-group__body--overflow" }, At = ["aria-label", "disabled"], jt = { class: "ml-ribbon-overflow-list" }, Mt = { class: "ml-ribbon-overflow-group__header" }, Nt = ["data-active-tab"], Pt = ["disabled"], Ft = { class: "ml-ribbon-simplified-group__panel" }, It = 40, Lt = /* @__PURE__ */ l({
1552
1598
  __name: "Ribbon",
1553
1599
  props: {
1554
1600
  id: { default: "ml-ribbon-root" },
@@ -1643,10 +1689,10 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
1643
1689
  groups: e.groups?.map(te)
1644
1690
  }));
1645
1691
  }
1646
- function M(e, t) {
1692
+ function j(e, t) {
1647
1693
  return typeof e != "number" || Number.isNaN(e) || !Number.isFinite(e) ? t : Math.max(0, Math.round(e));
1648
1694
  }
1649
- let N = {
1695
+ let M = {
1650
1696
  layoutSwitcherTooltip: "Switch ribbon layout",
1651
1697
  minimizeTooltip: "Minimize ribbon",
1652
1698
  keyTipsToggleText: "Key Tips",
@@ -1661,67 +1707,67 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
1661
1707
  keyTipsEmptySequence: "No key sequence",
1662
1708
  contextualTabDefaultTitle: "Contextual",
1663
1709
  galleryPreviewFallback: "Preview unavailable"
1664
- }, P = s, F = u, { context: L, visibleTabs: re } = X(P.id, P.tabs, P.disabled, P.activeLayout ? String(P.activeLayout).toLowerCase() === "simplified" ? "simplified" : "classic" : P.layout, P.minimized, P.activeTab || P.tabs[0]?.id || "", M(P.tooltipShowAfter, 1e3), M(P.tooltipHideAfter, 0));
1665
- y(le, L), D(() => P.tabs, (e) => {
1666
- L.tabs.value = ne(e), L.tabs.value.some((e) => e.id === L.activeTab.value) || (L.activeTab.value = L.tabs.value[0]?.id || "");
1667
- }, { deep: !0 }), D(() => P.layout, (e) => {
1668
- e !== L.layout.value && (L.layout.value = e);
1669
- }), D(() => P.activeLayout, (e) => {
1710
+ }, N = s, P = u, { context: I, visibleTabs: ie } = he(N.id, N.tabs, N.disabled, N.activeLayout ? String(N.activeLayout).toLowerCase() === "simplified" ? "simplified" : "classic" : N.layout, N.minimized, N.activeTab || N.tabs[0]?.id || "", j(N.tooltipShowAfter, 1e3), j(N.tooltipHideAfter, 0));
1711
+ y(fe, I), D(() => N.tabs, (e) => {
1712
+ I.tabs.value = ne(e), I.tabs.value.some((e) => e.id === I.activeTab.value) || (I.activeTab.value = I.tabs.value[0]?.id || "");
1713
+ }, { deep: !0 }), D(() => N.layout, (e) => {
1714
+ e !== I.layout.value && (I.layout.value = e);
1715
+ }), D(() => N.activeLayout, (e) => {
1670
1716
  if (!e) return;
1671
1717
  let t = String(e).toLowerCase() === "simplified" ? "simplified" : "classic";
1672
- t !== L.layout.value && (L.layout.value = t);
1673
- }), D(() => P.minimized, (e) => {
1674
- e !== L.minimized.value && (L.minimized.value = e);
1675
- }), D(() => P.disabled, (e) => {
1676
- e !== L.disabled.value && (L.disabled.value = e);
1677
- }), D(() => P.activeTab, (e) => {
1678
- e && e !== L.activeTab.value && (L.activeTab.value = e);
1679
- }), D(() => P.tooltipShowAfter, (e) => {
1680
- let t = M(e, 1e3);
1681
- t !== L.tooltipShowAfter.value && (L.tooltipShowAfter.value = t);
1682
- }), D(() => P.tooltipHideAfter, (e) => {
1683
- let t = M(e, 0);
1684
- t !== L.tooltipHideAfter.value && (L.tooltipHideAfter.value = t);
1685
- }), D(L.activeTab, (e) => {
1686
- F("update:activeTab", e), F("tabChange", e);
1687
- }), D(L.layout, (e) => {
1688
- F("update:layout", e), F("layoutChange", e);
1689
- }), D(L.minimized, (e) => {
1690
- F("update:minimized", e);
1691
- }), D(L.overflowOpen, (e) => {
1692
- F(e ? "overflowOpen" : "overflowClose");
1693
- }), D(L.backdropOpen, (e) => {
1694
- F(e ? "backstageOpen" : "backstageClose");
1718
+ t !== I.layout.value && (I.layout.value = t);
1719
+ }), D(() => N.minimized, (e) => {
1720
+ e !== I.minimized.value && (I.minimized.value = e);
1721
+ }), D(() => N.disabled, (e) => {
1722
+ e !== I.disabled.value && (I.disabled.value = e);
1723
+ }), D(() => N.activeTab, (e) => {
1724
+ e && e !== I.activeTab.value && (I.activeTab.value = e);
1725
+ }), D(() => N.tooltipShowAfter, (e) => {
1726
+ let t = j(e, 1e3);
1727
+ t !== I.tooltipShowAfter.value && (I.tooltipShowAfter.value = t);
1728
+ }), D(() => N.tooltipHideAfter, (e) => {
1729
+ let t = j(e, 0);
1730
+ t !== I.tooltipHideAfter.value && (I.tooltipHideAfter.value = t);
1731
+ }), D(I.activeTab, (e) => {
1732
+ P("update:activeTab", e), P("tabChange", e);
1733
+ }), D(I.layout, (e) => {
1734
+ P("update:layout", e), P("layoutChange", e);
1735
+ }), D(I.minimized, (e) => {
1736
+ P("update:minimized", e);
1737
+ }), D(I.overflowOpen, (e) => {
1738
+ P(e ? "overflowOpen" : "overflowClose");
1739
+ }), D(I.backdropOpen, (e) => {
1740
+ P(e ? "backstageOpen" : "backstageClose");
1695
1741
  });
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({
1742
+ let L = t(() => ie.value.find((e) => e.id === I.activeTab.value)), oe = t(() => new Set(ie.value.filter((e) => e.contextual && e.contextualMode === "exclusive").map((e) => e.id))), B = t(() => Re(L.value)), H = t(() => L.value?.groups?.filter((e) => e.visible !== !1) ?? []), de = b(null), U = b(null), W = b(null), G = b(null), K = b(!1), pe = b(0), me = b({
1697
1743
  left: "0px",
1698
1744
  top: "0px",
1699
1745
  width: "1px",
1700
1746
  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(() => ({
1702
- layoutSwitcherTooltip: P.texts.layoutSwitcherTooltip || N.layoutSwitcherTooltip,
1703
- minimizeTooltip: P.texts.minimizeTooltip || N.minimizeTooltip,
1704
- keyTipsToggleText: P.texts.keyTipsToggleText || N.keyTipsToggleText,
1705
- overflowTriggerAriaLabel: P.texts.overflowTriggerAriaLabel || N.overflowTriggerAriaLabel,
1706
- groupOverflowTriggerAriaLabel: P.texts.groupOverflowTriggerAriaLabel || N.groupOverflowTriggerAriaLabel,
1707
- fileMenuLabel: P.texts.fileMenuLabel || N.fileMenuLabel,
1708
- fileMenuOpenBackstageLabel: P.texts.fileMenuOpenBackstageLabel || N.fileMenuOpenBackstageLabel,
1709
- backstageBackLabel: P.texts.backstageBackLabel || N.backstageBackLabel,
1710
- backstageTitle: P.texts.backstageTitle || N.backstageTitle,
1711
- backstageDescription: P.texts.backstageDescription || N.backstageDescription,
1712
- keyTipsSequencePrefix: P.texts.keyTipsSequencePrefix || N.keyTipsSequencePrefix,
1713
- keyTipsEmptySequence: P.texts.keyTipsEmptySequence || N.keyTipsEmptySequence,
1714
- contextualTabDefaultTitle: P.texts.contextualTabDefaultTitle || N.contextualTabDefaultTitle,
1715
- 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);
1747
+ }), q = b(/* @__PURE__ */ new Set()), J = b({}), ge = se("size", ""), _e = t(() => N.size || ge.value || "default"), ve = t(() => `ml-ribbon-group-popover ml-ribbon-group-popover--size-${_e.value}`), ye = t(() => `ml-ribbon-overflow-popover ml-ribbon-overflow-popover--size-${_e.value}`), be = t(() => `ml-ribbon-tab-panel-popover ml-ribbon-tab-panel-popover--size-${_e.value}`), X = t(() => ({
1748
+ layoutSwitcherTooltip: N.texts.layoutSwitcherTooltip || M.layoutSwitcherTooltip,
1749
+ minimizeTooltip: N.texts.minimizeTooltip || M.minimizeTooltip,
1750
+ keyTipsToggleText: N.texts.keyTipsToggleText || M.keyTipsToggleText,
1751
+ overflowTriggerAriaLabel: N.texts.overflowTriggerAriaLabel || M.overflowTriggerAriaLabel,
1752
+ groupOverflowTriggerAriaLabel: N.texts.groupOverflowTriggerAriaLabel || M.groupOverflowTriggerAriaLabel,
1753
+ fileMenuLabel: N.texts.fileMenuLabel || M.fileMenuLabel,
1754
+ fileMenuOpenBackstageLabel: N.texts.fileMenuOpenBackstageLabel || M.fileMenuOpenBackstageLabel,
1755
+ backstageBackLabel: N.texts.backstageBackLabel || M.backstageBackLabel,
1756
+ backstageTitle: N.texts.backstageTitle || M.backstageTitle,
1757
+ backstageDescription: N.texts.backstageDescription || M.backstageDescription,
1758
+ keyTipsSequencePrefix: N.texts.keyTipsSequencePrefix || M.keyTipsSequencePrefix,
1759
+ keyTipsEmptySequence: N.texts.keyTipsEmptySequence || M.keyTipsEmptySequence,
1760
+ contextualTabDefaultTitle: N.texts.contextualTabDefaultTitle || M.contextualTabDefaultTitle,
1761
+ galleryPreviewFallback: N.texts.galleryPreviewFallback || M.galleryPreviewFallback
1762
+ })), xe = t(() => j(N.tooltipShowAfter, 1e3)), Se = t(() => j(N.tooltipHideAfter, 0)), Ce = t(() => I.minimized.value ? ce : V), we = t(() => H.value.filter((e) => !q.value.has(e.id))), Ee = t(() => H.value.filter((e) => q.value.has(e.id))), Oe = t(() => {
1763
+ if (!Ee.value.length) return 220;
1764
+ let e = Ee.value.reduce((e, t) => {
1765
+ let n = J.value[t.id] ?? je(t);
1720
1766
  return Math.max(e, n);
1721
1767
  }, 0), t = Math.ceil(e + 40);
1722
1768
  return Math.max(220, Math.min(720, t));
1723
1769
  });
1724
- function Te(e) {
1770
+ function ke(e) {
1725
1771
  let t = (e.collections ?? []).flatMap((e) => (e.items ?? []).map((e) => ({
1726
1772
  ...A(e),
1727
1773
  size: "medium"
@@ -1736,13 +1782,13 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
1736
1782
  }]
1737
1783
  };
1738
1784
  }
1739
- function Ee(e) {
1785
+ function Ae(e) {
1740
1786
  return e.priority ?? 100;
1741
1787
  }
1742
- function De(e) {
1743
- return typeof e.width == "number" && Number.isFinite(e.width) && e.width > 0 ? e.width : e.autoWidth === !1 ? 190 : 140;
1788
+ function je(e) {
1789
+ return typeof e.width == "number" && Number.isFinite(e.width) && e.width > 0 ? e.width : 140;
1744
1790
  }
1745
- function Oe(e) {
1791
+ function Me(e) {
1746
1792
  let t = {};
1747
1793
  return e.querySelectorAll(".ml-ribbon-group").forEach((e) => {
1748
1794
  let n = e.dataset.groupId;
@@ -1751,121 +1797,124 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
1751
1797
  r > 0 && (t[n] = r);
1752
1798
  }), t;
1753
1799
  }
1754
- function ke() {
1800
+ function Ne() {
1755
1801
  let e = H.value.reduce((e, t) => {
1756
- let n = fe.value[t.id] ?? De(t);
1757
- return e + Math.max(n, De(t));
1802
+ let n = J.value[t.id] ?? je(t);
1803
+ return e + Math.max(n, je(t));
1758
1804
  }, 0);
1759
1805
  return Math.max(220, e);
1760
1806
  }
1761
- function Ae(e) {
1807
+ function Pe(e) {
1762
1808
  let t = Number.parseFloat(getComputedStyle(e).getPropertyValue("--ml-rb-overflow-slot-width"));
1763
- return Number.isFinite(t) && t > 0 ? t : Ft;
1809
+ return Number.isFinite(t) && t > 0 ? t : It;
1764
1810
  }
1765
- function je() {
1766
- if (L.layout.value !== "classic") {
1767
- J.value = /* @__PURE__ */ new Set();
1811
+ function Fe() {
1812
+ if (I.layout.value !== "classic") {
1813
+ q.value = /* @__PURE__ */ new Set();
1768
1814
  return;
1769
1815
  }
1770
- let e = L.minimized.value ? K.value : G.value;
1816
+ let e = I.minimized.value ? G.value : W.value;
1771
1817
  if (!e) return;
1772
1818
  let t = H.value;
1773
1819
  if (!t.length) {
1774
- J.value = /* @__PURE__ */ new Set();
1820
+ q.value = /* @__PURE__ */ new Set();
1775
1821
  return;
1776
1822
  }
1777
- let n = Math.round(e.getBoundingClientRect().width), r = Ae(e), i = Oe(e);
1778
- fe.value = {
1779
- ...fe.value,
1823
+ let n = Math.round(e.getBoundingClientRect().width), r = Pe(e), i = Me(e);
1824
+ J.value = {
1825
+ ...J.value,
1780
1826
  ...i
1781
1827
  };
1782
1828
  let a = t.filter((e) => e.enableGroupOverflow === !1), o = t.filter((e) => e.enableGroupOverflow !== !1).map((e, t) => ({
1783
1829
  group: e,
1784
1830
  index: t
1785
1831
  })), s = /* @__PURE__ */ new Set(), c = [...o].sort((e, t) => {
1786
- let n = Ee(t.group) - Ee(e.group);
1832
+ let n = Ae(t.group) - Ae(e.group);
1787
1833
  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;
1834
+ }), l = (e) => i[e.id] ?? je(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
1835
  for (; f(s) > n && p < c.length;) {
1790
1836
  let e = c[p].group;
1791
1837
  s.add(e.id), p += 1;
1792
1838
  }
1793
- J.value = s;
1839
+ q.value = s;
1794
1840
  }
1795
- function Me() {
1841
+ function Ie() {
1796
1842
  p(() => {
1797
- if (L.layout.value !== "classic" || L.minimized.value) {
1798
- je();
1843
+ if (I.layout.value !== "classic" || I.minimized.value) {
1844
+ Fe();
1799
1845
  return;
1800
1846
  }
1801
- if (J.value.size === 0) {
1802
- je();
1847
+ if (q.value.size === 0) {
1848
+ Fe();
1803
1849
  return;
1804
1850
  }
1805
- J.value = /* @__PURE__ */ new Set(), p(() => {
1806
- je();
1851
+ q.value = /* @__PURE__ */ new Set(), p(() => {
1852
+ Fe();
1807
1853
  });
1808
1854
  });
1809
1855
  }
1810
- function Ne() {
1811
- let e = ae.value, t = ce.value;
1856
+ function Le() {
1857
+ let e = de.value, t = U.value;
1812
1858
  if (!e || !t) return;
1813
1859
  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 = {
1860
+ pe.value = Math.round(a > 0 ? a : I.layout.value === "classic" ? Ne() : Math.max(360, H.value.length * 120)), me.value = {
1815
1861
  left: `${Math.round(n.left - r.left + i)}px`,
1816
1862
  top: "0px",
1817
1863
  width: "1px",
1818
1864
  height: `${Math.round(r.height)}px`
1819
1865
  };
1820
1866
  }
1821
- function Pe() {
1822
- q.value = !1;
1867
+ function Z() {
1868
+ K.value = !1;
1823
1869
  }
1824
- function Fe(e) {
1825
- if (L.disabled.value) return;
1826
- let t = L.activeTab.value === e.id;
1827
- if (L.activeTab.value = e.id, !L.minimized.value) {
1828
- Pe();
1870
+ function Re(e) {
1871
+ return I.disabled.value ? !0 : !e || oe.value.size === 0 ? !1 : !oe.value.has(e.id);
1872
+ }
1873
+ function ze(e) {
1874
+ if (I.disabled.value) return;
1875
+ let t = I.activeTab.value === e.id;
1876
+ if (I.activeTab.value = e.id, !I.minimized.value) {
1877
+ Z();
1829
1878
  return;
1830
1879
  }
1831
- Ne(), q.value = t ? !q.value : !0;
1880
+ Le(), K.value = t ? !K.value : !0;
1832
1881
  }
1833
- function Ie() {
1834
- L.disabled.value || L.api.toggleSimplified();
1882
+ function Be() {
1883
+ I.disabled.value || I.api.toggleSimplified();
1835
1884
  }
1836
- function Le() {
1837
- L.disabled.value || (L.minimized.value || Pe(), L.minimized.value = !L.minimized.value);
1885
+ function Ve() {
1886
+ I.disabled.value || (I.minimized.value || Z(), I.minimized.value = !I.minimized.value);
1838
1887
  }
1839
- function Re(e) {
1840
- L.disabled.value || (Pe(), F("fileMenuSelect", e));
1888
+ function He(e) {
1889
+ I.disabled.value || (Z(), P("fileMenuSelect", e));
1841
1890
  }
1842
- function ze() {
1843
- L.disabled.value || (Pe(), L.backdropOpen.value = !0);
1891
+ function Ue() {
1892
+ I.disabled.value || (Z(), I.backdropOpen.value = !0);
1844
1893
  }
1845
- function Be() {
1846
- L.disabled.value || (L.backdropOpen.value = !1);
1894
+ function We() {
1895
+ I.disabled.value || (I.backdropOpen.value = !1);
1847
1896
  }
1848
- function Ve(e, t) {
1849
- L.disabled.value || (F("itemClick", {
1850
- tabId: L.activeTab.value,
1897
+ function Q(e, t) {
1898
+ B.value || (P("itemClick", {
1899
+ tabId: I.activeTab.value,
1851
1900
  groupId: e,
1852
1901
  itemId: t
1853
- }), L.minimized.value && Pe());
1902
+ }), I.minimized.value && Z());
1854
1903
  }
1855
- function He(e) {
1904
+ function Ge(e) {
1856
1905
  if (!(e instanceof HTMLElement)) return !1;
1857
1906
  if (e.isContentEditable) return !0;
1858
1907
  let t = e.tagName;
1859
1908
  return t === "INPUT" || t === "TEXTAREA" || t === "SELECT";
1860
1909
  }
1861
- function Ue() {
1862
- if (L.disabled.value) {
1863
- L.keyTips.value = [];
1910
+ function Ke() {
1911
+ if (B.value) {
1912
+ I.keyTips.value = [];
1864
1913
  return;
1865
1914
  }
1866
- let e = z.value;
1915
+ let e = L.value;
1867
1916
  if (!e?.groups?.length) {
1868
- L.keyTips.value = [];
1917
+ I.keyTips.value = [];
1869
1918
  return;
1870
1919
  }
1871
1920
  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) => {
@@ -1878,134 +1927,134 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
1878
1927
  scope: "item"
1879
1928
  } : null;
1880
1929
  }).filter((e) => !!e)));
1881
- L.keyTips.value = t;
1930
+ I.keyTips.value = t;
1882
1931
  }
1883
- function We(e) {
1884
- if (L.disabled.value) return;
1885
- let t = z.value;
1932
+ function qe(e) {
1933
+ if (I.disabled.value) return;
1934
+ let t = L.value;
1886
1935
  if (t?.groups?.length) {
1887
1936
  for (let n of t.groups) if (n.visible !== !1) for (let t of n.collections ?? []) {
1888
1937
  let r = t.items.find((t) => t.id === e.targetId && t.disabled !== !0);
1889
1938
  if (r) {
1890
- Ve(n.id, r.id), L.keyTipsOpen.value = !1, L.keyTipsSequence.value = "";
1939
+ Q(n.id, r.id), I.keyTipsOpen.value = !1, I.keyTipsSequence.value = "";
1891
1940
  return;
1892
1941
  }
1893
1942
  }
1894
1943
  }
1895
1944
  }
1896
- function Ge() {
1897
- L.keyTipsSequence.value = "";
1945
+ function Je() {
1946
+ I.keyTipsSequence.value = "";
1898
1947
  }
1899
- function Ke(e) {
1900
- if (!L.disabled.value && !He(e.target)) {
1948
+ function Ye(e) {
1949
+ if (!I.disabled.value && !Ge(e.target)) {
1901
1950
  if (e.altKey && !e.ctrlKey && !e.metaKey && e.key === "Alt") {
1902
- e.preventDefault(), L.keyTipsOpen.value = !L.keyTipsOpen.value, L.keyTipsOpen.value || Ge();
1951
+ e.preventDefault(), I.keyTipsOpen.value = !I.keyTipsOpen.value, I.keyTipsOpen.value || Je();
1903
1952
  return;
1904
1953
  }
1905
- if (L.keyTipsOpen.value && !(e.altKey || e.ctrlKey || e.metaKey)) {
1954
+ if (I.keyTipsOpen.value && !(e.altKey || e.ctrlKey || e.metaKey)) {
1906
1955
  if (e.key === "Escape") {
1907
- e.preventDefault(), L.keyTipsOpen.value = !1, Ge();
1956
+ e.preventDefault(), I.keyTipsOpen.value = !1, Je();
1908
1957
  return;
1909
1958
  }
1910
1959
  if (e.key === "Backspace") {
1911
- e.preventDefault(), L.keyTipsSequence.value = L.keyTipsSequence.value.slice(0, -1);
1960
+ e.preventDefault(), I.keyTipsSequence.value = I.keyTipsSequence.value.slice(0, -1);
1912
1961
  return;
1913
1962
  }
1914
1963
  if (/^[a-z0-9]$/i.test(e.key)) {
1915
1964
  e.preventDefault();
1916
- let t = `${L.keyTipsSequence.value}${e.key.toUpperCase()}`;
1917
- L.keyTipsSequence.value = t;
1918
- let n = t.toLowerCase(), r = L.keyTips.value.find((e) => e.key.toLowerCase() === n);
1965
+ let t = `${I.keyTipsSequence.value}${e.key.toUpperCase()}`;
1966
+ I.keyTipsSequence.value = t;
1967
+ let n = t.toLowerCase(), r = I.keyTips.value.find((e) => e.key.toLowerCase() === n);
1919
1968
  if (r) {
1920
- We(r);
1969
+ qe(r);
1921
1970
  return;
1922
1971
  }
1923
- L.keyTips.value.some((e) => e.key.toLowerCase().startsWith(n)) || Ge();
1972
+ I.keyTips.value.some((e) => e.key.toLowerCase().startsWith(n)) || Je();
1924
1973
  }
1925
1974
  }
1926
1975
  }
1927
1976
  }
1928
- function qe(e) {
1929
- return e.icon && typeof e.icon != "string" ? e.icon : e.groupIconCss ? oe : null;
1977
+ function Xe(e) {
1978
+ return e.icon && typeof e.icon != "string" ? e.icon : e.groupIconCss ? le : null;
1930
1979
  }
1931
- function Je(e) {
1932
- q.value = e;
1980
+ function Ze(e) {
1981
+ K.value = e;
1933
1982
  }
1934
1983
  D([
1935
1984
  H,
1936
- () => L.layout.value,
1937
- () => L.minimized.value
1985
+ () => I.layout.value,
1986
+ () => I.minimized.value
1938
1987
  ], () => {
1939
- Me();
1988
+ Ie();
1940
1989
  }), D([
1941
- z,
1942
- () => L.tabs.value,
1943
- () => L.disabled.value
1990
+ L,
1991
+ () => I.tabs.value,
1992
+ () => I.disabled.value
1944
1993
  ], () => {
1945
- Ue(), Ge();
1994
+ Ke(), Je();
1946
1995
  }, {
1947
1996
  deep: !0,
1948
1997
  immediate: !0
1949
- }), D(() => L.keyTipsOpen.value, (e) => {
1950
- e || Ge();
1951
- }), D(() => L.disabled.value, (e) => {
1952
- e && (L.overflowOpen.value = !1, L.backdropOpen.value = !1, L.keyTipsOpen.value = !1, Pe(), Ge());
1998
+ }), D(() => I.keyTipsOpen.value, (e) => {
1999
+ e || Je();
2000
+ }), D(() => I.disabled.value, (e) => {
2001
+ e && (I.overflowOpen.value = !1, I.backdropOpen.value = !1, I.keyTipsOpen.value = !1, Z(), Je());
1953
2002
  }), D([
1954
- () => L.minimized.value,
1955
- () => L.layout.value,
1956
- z
2003
+ () => I.minimized.value,
2004
+ () => I.layout.value,
2005
+ L
1957
2006
  ], ([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) => {
2007
+ (!e || !t) && Z();
2008
+ }), D([W, G], ([e, t], [n, r]) => {
2009
+ n && $ && $.unobserve(n), r && $ && $.unobserve(r), e && $ && $.observe(e), t && $ && $.observe(t), (e || t) && Ie();
2010
+ }, { flush: "post" }), D(K, (e) => {
1962
2011
  e && p(() => {
1963
- Ne(), Me();
2012
+ Le(), Ie();
1964
2013
  });
1965
2014
  });
1966
2015
  let $ = null;
1967
2016
  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();
2017
+ window.addEventListener("keydown", Ye), window.addEventListener("resize", Qe), typeof ResizeObserver < "u" && ($ = new ResizeObserver(() => {
2018
+ Le(), Ie();
2019
+ }), W.value && $.observe(W.value), G.value && $.observe(G.value)), Le(), Ie();
1971
2020
  }), _(() => {
1972
- window.removeEventListener("keydown", Ke), window.removeEventListener("resize", Ye), $?.disconnect();
2021
+ window.removeEventListener("keydown", Ye), window.removeEventListener("resize", Qe), $?.disconnect();
1973
2022
  });
1974
- function Ye() {
1975
- q.value && Ne();
2023
+ function Qe() {
2024
+ K.value && Le();
1976
2025
  }
1977
- return l(L.api), (t, l) => (v(), n(E(j), { size: P.size }, {
2026
+ return l(I.api), (t, l) => (v(), n(E(re), { size: N.size }, {
1978
2027
  default: O(() => [(v(), i("section", {
1979
2028
  ref_key: "ribbonRootRef",
1980
- ref: ae,
1981
- key: E(L).disabled.value ? "ml-ribbon-disabled" : "ml-ribbon-enabled",
2029
+ ref: de,
2030
+ key: E(I).disabled.value ? "ml-ribbon-disabled" : "ml-ribbon-enabled",
1982
2031
  class: m(["ml-ribbon", [
1983
- `ml-ribbon--${E(L).layout.value}`,
1984
- `ml-ribbon--size-${Z.value}`,
2032
+ `ml-ribbon--${E(I).layout.value}`,
2033
+ `ml-ribbon--size-${_e.value}`,
1985
2034
  {
1986
- "ml-ribbon--disabled": E(L).disabled.value,
1987
- "ml-ribbon--minimized": E(L).minimized.value,
1988
- "ml-ribbon--keytips-open": E(L).keyTipsOpen.value
2035
+ "ml-ribbon--disabled": E(I).disabled.value,
2036
+ "ml-ribbon--minimized": E(I).minimized.value,
2037
+ "ml-ribbon--keytips-open": E(I).keyTipsOpen.value
1989
2038
  }
1990
2039
  ]]),
1991
- inert: E(L).disabled.value,
1992
- "aria-disabled": E(L).disabled.value
2040
+ inert: E(I).disabled.value,
2041
+ "aria-disabled": E(I).disabled.value
1993
2042
  }, [
1994
2043
  a("header", {
1995
2044
  ref_key: "ribbonHeaderRef",
1996
- ref: ce,
2045
+ ref: U,
1997
2046
  class: "ml-ribbon__header"
1998
2047
  }, [
1999
- a("div", mt, [
2000
- s.showFileMenu ? (v(), n(we, {
2048
+ a("div", ht, [
2049
+ s.showFileMenu ? (v(), n(De, {
2001
2050
  key: 0,
2002
2051
  items: s.fileMenuItems,
2003
- disabled: E(L).disabled.value,
2004
- label: Q.value.fileMenuLabel,
2005
- "open-backstage-label": Q.value.fileMenuOpenBackstageLabel,
2052
+ disabled: E(I).disabled.value,
2053
+ label: X.value.fileMenuLabel,
2054
+ "open-backstage-label": X.value.fileMenuOpenBackstageLabel,
2006
2055
  "show-open-backstage": s.showOpenBackstage,
2007
- onSelect: Re,
2008
- onOpenBackstage: ze
2056
+ onSelect: He,
2057
+ onOpenBackstage: Ue
2009
2058
  }, null, 8, [
2010
2059
  "items",
2011
2060
  "disabled",
@@ -2013,33 +2062,33 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
2013
2062
  "open-backstage-label",
2014
2063
  "show-open-backstage"
2015
2064
  ])) : r("", !0),
2016
- c(Se, {
2017
- tabs: E(re),
2018
- "active-tab": E(L).activeTab.value,
2019
- disabled: E(L).disabled.value,
2020
- "default-contextual-title": Q.value.contextualTabDefaultTitle,
2021
- onSelect: Fe
2065
+ c(Te, {
2066
+ tabs: E(ie),
2067
+ "active-tab": E(I).activeTab.value,
2068
+ disabled: E(I).disabled.value,
2069
+ "default-contextual-title": X.value.contextualTabDefaultTitle,
2070
+ onSelect: ze
2022
2071
  }, null, 8, [
2023
2072
  "tabs",
2024
2073
  "active-tab",
2025
2074
  "disabled",
2026
2075
  "default-contextual-title"
2027
2076
  ]),
2028
- P.hideMinimizeButton ? r("", !0) : (v(), n(E(V), {
2077
+ N.hideMinimizeButton ? r("", !0) : (v(), n(E(z), {
2029
2078
  key: 1,
2030
- content: Q.value.minimizeTooltip,
2031
- "show-after": _e.value,
2032
- "hide-after": ve.value
2079
+ content: X.value.minimizeTooltip,
2080
+ "show-after": xe.value,
2081
+ "hide-after": Se.value
2033
2082
  }, {
2034
2083
  default: O(() => [c(E(ee), {
2035
2084
  class: m([
2036
2085
  "ml-ribbon__control",
2037
2086
  "ml-ribbon__control--minimize",
2038
- E(L).minimized.value ? "ml-ribbon__control--minimize-up" : "ml-ribbon__control--minimize-down"
2087
+ E(I).minimized.value ? "ml-ribbon__control--minimize-up" : "ml-ribbon__control--minimize-down"
2039
2088
  ]),
2040
- icon: ye.value,
2041
- disabled: E(L).disabled.value,
2042
- onClick: Le
2089
+ icon: Ce.value,
2090
+ disabled: E(I).disabled.value,
2091
+ onClick: Ve
2043
2092
  }, null, 8, [
2044
2093
  "class",
2045
2094
  "icon",
@@ -2052,19 +2101,19 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
2052
2101
  "hide-after"
2053
2102
  ]))
2054
2103
  ]),
2055
- a("div", ht, [
2056
- P.hideLayoutSwitcher ? r("", !0) : (v(), n(E(V), {
2104
+ a("div", gt, [
2105
+ N.hideLayoutSwitcher ? r("", !0) : (v(), n(E(z), {
2057
2106
  key: 0,
2058
- content: Q.value.layoutSwitcherTooltip,
2059
- "show-after": _e.value,
2060
- "hide-after": ve.value
2107
+ content: X.value.layoutSwitcherTooltip,
2108
+ "show-after": xe.value,
2109
+ "hide-after": Se.value
2061
2110
  }, {
2062
2111
  default: O(() => [c(E(ee), {
2063
2112
  circle: "",
2064
2113
  class: "ml-ribbon__control ml-ribbon__control--layout",
2065
- icon: E(se),
2066
- disabled: E(L).disabled.value,
2067
- onClick: Ie
2114
+ icon: E(ue),
2115
+ disabled: E(I).disabled.value,
2116
+ onClick: Be
2068
2117
  }, null, 8, ["icon", "disabled"])]),
2069
2118
  _: 1
2070
2119
  }, 8, [
@@ -2072,51 +2121,51 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
2072
2121
  "show-after",
2073
2122
  "hide-after"
2074
2123
  ])),
2075
- P.hideKeyTipsToggle ? r("", !0) : (v(), n(E(B), {
2124
+ N.hideKeyTipsToggle ? r("", !0) : (v(), n(E(R), {
2076
2125
  key: 1,
2077
2126
  "inline-prompt": "",
2078
2127
  class: "ml-ribbon__control ml-ribbon__control--keytips",
2079
- "active-text": Q.value.keyTipsToggleText,
2080
- "inactive-text": Q.value.keyTipsToggleText,
2081
- "model-value": E(L).keyTipsOpen.value,
2082
- disabled: E(L).disabled.value,
2083
- onChange: l[0] ||= (e) => E(L).keyTipsOpen.value = !E(L).keyTipsOpen.value
2128
+ "active-text": X.value.keyTipsToggleText,
2129
+ "inactive-text": X.value.keyTipsToggleText,
2130
+ "model-value": E(I).keyTipsOpen.value,
2131
+ disabled: E(I).disabled.value,
2132
+ onChange: l[0] ||= (e) => E(I).keyTipsOpen.value = !E(I).keyTipsOpen.value
2084
2133
  }, null, 8, [
2085
2134
  "active-text",
2086
2135
  "inactive-text",
2087
2136
  "model-value",
2088
2137
  "disabled"
2089
2138
  ])),
2090
- t.$slots["tabs-extra"] ? (v(), i("div", gt, [S(t.$slots, "tabs-extra", {
2091
- activeTab: E(L).activeTab.value,
2092
- layout: E(L).layout.value,
2093
- minimized: E(L).minimized.value,
2094
- disabled: E(L).disabled.value
2139
+ t.$slots["tabs-extra"] ? (v(), i("div", _t, [S(t.$slots, "tabs-extra", {
2140
+ activeTab: E(I).activeTab.value,
2141
+ layout: E(I).layout.value,
2142
+ minimized: E(I).minimized.value,
2143
+ disabled: E(I).disabled.value
2095
2144
  })])) : r("", !0)
2096
2145
  ]),
2097
- z.value ? (v(), n(E(R), {
2146
+ L.value ? (v(), n(E(ae), {
2098
2147
  key: 0,
2099
2148
  placement: "bottom-start",
2100
- visible: q.value,
2101
- width: ue.value || void 0,
2102
- disabled: E(L).disabled.value || !E(L).minimized.value,
2149
+ visible: K.value,
2150
+ width: pe.value || void 0,
2151
+ disabled: E(I).disabled.value || !E(I).minimized.value,
2103
2152
  "show-arrow": !1,
2104
2153
  offset: 0,
2105
- "popper-class": he.value,
2106
- "onUpdate:visible": Je
2154
+ "popper-class": be.value,
2155
+ "onUpdate:visible": Ze
2107
2156
  }, {
2108
2157
  reference: O(() => [a("span", {
2109
2158
  "aria-hidden": "true",
2110
2159
  class: "ml-ribbon__minimized-anchor",
2111
- style: h(de.value)
2160
+ style: h(me.value)
2112
2161
  }, null, 4)]),
2113
- default: O(() => [E(L).layout.value === "classic" ? (v(), i("main", {
2162
+ default: O(() => [E(I).layout.value === "classic" ? (v(), i("main", {
2114
2163
  key: 0,
2115
2164
  ref_key: "minimizedClassicPanelRef",
2116
- ref: K,
2165
+ ref: G,
2117
2166
  class: "ml-ribbon__panel ml-ribbon__panel--floating",
2118
- "data-active-tab": z.value.id
2119
- }, [(v(!0), i(e, null, x(be.value, (e) => (v(), n(ft, {
2167
+ "data-active-tab": L.value.id
2168
+ }, [(v(!0), i(e, null, x(we.value, (e) => (v(), n(pt, {
2120
2169
  id: e.id,
2121
2170
  key: e.id,
2122
2171
  "data-group-id": e.id,
@@ -2124,21 +2173,26 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
2124
2173
  icon: e.icon,
2125
2174
  "group-icon-css": e.groupIconCss,
2126
2175
  orientation: e.orientation,
2127
- "auto-width": e.autoWidth,
2128
2176
  width: e.width,
2129
2177
  priority: e.priority ?? 100,
2130
2178
  launcher: e.launcher,
2131
2179
  "show-launcher-icon": e.showLauncherIcon,
2132
2180
  "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)
2181
+ "overflow-trigger-aria-label": X.value.groupOverflowTriggerAriaLabel,
2182
+ "gallery-preview-fallback": X.value.galleryPreviewFallback,
2183
+ disabled: B.value,
2184
+ onItemClick: l[2] ||= (e) => Q(e.groupId, e.itemId)
2136
2185
  }, {
2137
- default: O(() => [c(rt, {
2186
+ default: O(() => [c(it, {
2138
2187
  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"])]),
2188
+ "gallery-preview-fallback": X.value.galleryPreviewFallback,
2189
+ disabled: B.value,
2190
+ onItemClick: l[1] ||= (e) => Q(e.groupId, e.itemId)
2191
+ }, null, 8, [
2192
+ "group",
2193
+ "gallery-preview-fallback",
2194
+ "disabled"
2195
+ ])]),
2142
2196
  _: 2
2143
2197
  }, 1032, [
2144
2198
  "id",
@@ -2147,74 +2201,84 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
2147
2201
  "icon",
2148
2202
  "group-icon-css",
2149
2203
  "orientation",
2150
- "auto-width",
2151
2204
  "width",
2152
2205
  "priority",
2153
2206
  "launcher",
2154
2207
  "show-launcher-icon",
2155
2208
  "group-model",
2156
2209
  "overflow-trigger-aria-label",
2157
- "gallery-preview-fallback"
2158
- ]))), 128)), xe.value.length ? (v(), i("section", vt, [a("div", yt, [c(E(R), {
2210
+ "gallery-preview-fallback",
2211
+ "disabled"
2212
+ ]))), 128)), Ee.value.length ? (v(), i("section", yt, [a("div", bt, [c(E(ae), {
2159
2213
  trigger: "click",
2160
2214
  placement: "bottom-end",
2161
- width: Ce.value,
2162
- disabled: E(L).disabled.value,
2215
+ width: Oe.value,
2216
+ disabled: B.value,
2163
2217
  "show-arrow": !1,
2164
- "popper-class": me.value,
2165
- onShow: l[4] ||= (e) => E(L).overflowOpen.value = !0,
2166
- onHide: l[5] ||= (e) => E(L).overflowOpen.value = !1
2218
+ "popper-class": ye.value,
2219
+ onShow: l[4] ||= (e) => E(I).overflowOpen.value = !0,
2220
+ onHide: l[5] ||= (e) => E(I).overflowOpen.value = !1
2167
2221
  }, {
2168
2222
  reference: O(() => [a("button", {
2169
2223
  type: "button",
2170
2224
  class: "ml-ribbon-overflow-trigger",
2171
- "aria-label": Q.value.overflowTriggerAriaLabel,
2172
- disabled: E(L).disabled.value
2173
- }, [...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", {
2225
+ "aria-label": X.value.overflowTriggerAriaLabel,
2226
+ disabled: B.value
2227
+ }, [...l[13] ||= [a("span", { class: "ml-ribbon-overflow-trigger__dots" }, "...", -1)]], 8, xt)]),
2228
+ default: O(() => [a("div", St, [(v(!0), i(e, null, x(Ee.value, (e) => (v(), i("section", {
2175
2229
  key: e.id,
2176
2230
  class: "ml-ribbon-overflow-group"
2177
- }, [a("header", St, w(e.title), 1), c(rt, {
2231
+ }, [a("header", Ct, w(e.title), 1), c(it, {
2178
2232
  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))])]),
2233
+ "gallery-preview-fallback": X.value.galleryPreviewFallback,
2234
+ disabled: B.value,
2235
+ onItemClick: l[3] ||= (e) => Q(e.groupId, e.itemId)
2236
+ }, null, 8, [
2237
+ "group",
2238
+ "gallery-preview-fallback",
2239
+ "disabled"
2240
+ ])]))), 128))])]),
2182
2241
  _: 1
2183
2242
  }, 8, [
2184
2243
  "width",
2185
2244
  "disabled",
2186
2245
  "popper-class"
2187
- ])]), l[14] ||= a("footer", { class: "ml-ribbon-group__footer ml-ribbon-group__footer--overflow" }, null, -1)])) : r("", !0)], 8, _t)) : (v(), i("main", {
2246
+ ])]), l[14] ||= a("footer", { class: "ml-ribbon-group__footer ml-ribbon-group__footer--overflow" }, null, -1)])) : r("", !0)], 8, vt)) : (v(), i("main", {
2188
2247
  key: 1,
2189
2248
  class: "ml-ribbon__panel ml-ribbon__panel--simplified ml-ribbon__panel--floating",
2190
- "data-active-tab": z.value.id
2191
- }, [(v(!0), i(e, null, x(H.value, (e) => (v(), n(E(R), {
2249
+ "data-active-tab": L.value.id
2250
+ }, [(v(!0), i(e, null, x(H.value, (e) => (v(), n(E(ae), {
2192
2251
  key: e.id,
2193
2252
  trigger: "click",
2194
2253
  placement: "bottom-start",
2195
2254
  width: 340,
2196
- disabled: E(L).disabled.value,
2255
+ disabled: B.value,
2197
2256
  "show-arrow": !1,
2198
- "popper-class": pe.value
2257
+ "popper-class": ve.value
2199
2258
  }, {
2200
2259
  reference: O(() => [a("button", {
2201
2260
  class: "ml-ribbon-simplified-group",
2202
2261
  type: "button",
2203
- disabled: E(L).disabled.value
2204
- }, [qe(e) ? (v(), n(E(I), {
2262
+ disabled: B.value
2263
+ }, [Xe(e) ? (v(), n(E(F), {
2205
2264
  key: 0,
2206
2265
  class: "ml-ribbon-simplified-group__icon"
2207
2266
  }, {
2208
- default: O(() => [(v(), n(C(qe(e))))]),
2267
+ default: O(() => [(v(), n(C(Xe(e))))]),
2209
2268
  _: 2
2210
- }, 1024)) : r("", !0), a("span", null, w(e.title), 1)], 8, wt)]),
2211
- 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"])])]),
2269
+ }, 1024)) : r("", !0), a("span", null, w(e.title), 1)], 8, Tt)]),
2270
+ default: O(() => [a("div", Et, [c(it, {
2271
+ group: ke(e),
2272
+ "gallery-preview-fallback": X.value.galleryPreviewFallback,
2273
+ disabled: B.value,
2274
+ onItemClick: l[6] ||= (e) => Q(e.groupId, e.itemId)
2275
+ }, null, 8, [
2276
+ "group",
2277
+ "gallery-preview-fallback",
2278
+ "disabled"
2279
+ ])])]),
2216
2280
  _: 2
2217
- }, 1032, ["disabled", "popper-class"]))), 128))], 8, Ct))]),
2281
+ }, 1032, ["disabled", "popper-class"]))), 128))], 8, wt))]),
2218
2282
  _: 1
2219
2283
  }, 8, [
2220
2284
  "visible",
@@ -2223,13 +2287,13 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
2223
2287
  "popper-class"
2224
2288
  ])) : r("", !0)
2225
2289
  ], 512),
2226
- !E(L).minimized.value && z.value && E(L).layout.value === "classic" ? (v(), i("main", {
2290
+ !E(I).minimized.value && L.value && E(I).layout.value === "classic" ? (v(), i("main", {
2227
2291
  key: 0,
2228
2292
  class: "ml-ribbon__panel",
2229
- "data-active-tab": z.value.id,
2293
+ "data-active-tab": L.value.id,
2230
2294
  ref_key: "classicPanelRef",
2231
- ref: G
2232
- }, [(v(!0), i(e, null, x(be.value, (e) => (v(), n(ft, {
2295
+ ref: W
2296
+ }, [(v(!0), i(e, null, x(we.value, (e) => (v(), n(pt, {
2233
2297
  id: e.id,
2234
2298
  key: e.id,
2235
2299
  "data-group-id": e.id,
@@ -2237,21 +2301,26 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
2237
2301
  icon: e.icon,
2238
2302
  "group-icon-css": e.groupIconCss,
2239
2303
  orientation: e.orientation,
2240
- "auto-width": e.autoWidth,
2241
2304
  width: e.width,
2242
2305
  priority: e.priority ?? 100,
2243
2306
  launcher: e.launcher,
2244
2307
  "show-launcher-icon": e.showLauncherIcon,
2245
2308
  "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)
2309
+ "overflow-trigger-aria-label": X.value.groupOverflowTriggerAriaLabel,
2310
+ "gallery-preview-fallback": X.value.galleryPreviewFallback,
2311
+ disabled: B.value,
2312
+ onItemClick: l[8] ||= (e) => Q(e.groupId, e.itemId)
2249
2313
  }, {
2250
- default: O(() => [c(rt, {
2314
+ default: O(() => [c(it, {
2251
2315
  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"])]),
2316
+ "gallery-preview-fallback": X.value.galleryPreviewFallback,
2317
+ disabled: B.value,
2318
+ onItemClick: l[7] ||= (e) => Q(e.groupId, e.itemId)
2319
+ }, null, 8, [
2320
+ "group",
2321
+ "gallery-preview-fallback",
2322
+ "disabled"
2323
+ ])]),
2255
2324
  _: 2
2256
2325
  }, 1032, [
2257
2326
  "id",
@@ -2260,90 +2329,100 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
2260
2329
  "icon",
2261
2330
  "group-icon-css",
2262
2331
  "orientation",
2263
- "auto-width",
2264
2332
  "width",
2265
2333
  "priority",
2266
2334
  "launcher",
2267
2335
  "show-launcher-icon",
2268
2336
  "group-model",
2269
2337
  "overflow-trigger-aria-label",
2270
- "gallery-preview-fallback"
2271
- ]))), 128)), xe.value.length ? (v(), i("section", Dt, [a("div", Ot, [c(E(R), {
2338
+ "gallery-preview-fallback",
2339
+ "disabled"
2340
+ ]))), 128)), Ee.value.length ? (v(), i("section", Ot, [a("div", kt, [c(E(ae), {
2272
2341
  trigger: "click",
2273
2342
  placement: "bottom-end",
2274
- width: Ce.value,
2275
- disabled: E(L).disabled.value,
2276
- "popper-class": me.value,
2277
- onShow: l[10] ||= (e) => E(L).overflowOpen.value = !0,
2278
- onHide: l[11] ||= (e) => E(L).overflowOpen.value = !1
2343
+ width: Oe.value,
2344
+ disabled: B.value,
2345
+ "popper-class": ye.value,
2346
+ onShow: l[10] ||= (e) => E(I).overflowOpen.value = !0,
2347
+ onHide: l[11] ||= (e) => E(I).overflowOpen.value = !1
2279
2348
  }, {
2280
2349
  reference: O(() => [a("button", {
2281
2350
  type: "button",
2282
2351
  class: "ml-ribbon-overflow-trigger",
2283
- "aria-label": Q.value.overflowTriggerAriaLabel,
2284
- disabled: E(L).disabled.value
2285
- }, [...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", {
2352
+ "aria-label": X.value.overflowTriggerAriaLabel,
2353
+ disabled: B.value
2354
+ }, [...l[15] ||= [a("span", { class: "ml-ribbon-overflow-trigger__dots" }, "...", -1)]], 8, At)]),
2355
+ default: O(() => [a("div", jt, [(v(!0), i(e, null, x(Ee.value, (e) => (v(), i("section", {
2287
2356
  key: e.id,
2288
2357
  class: "ml-ribbon-overflow-group"
2289
- }, [a("header", jt, w(e.title), 1), c(rt, {
2358
+ }, [a("header", Mt, w(e.title), 1), c(it, {
2290
2359
  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))])]),
2360
+ "gallery-preview-fallback": X.value.galleryPreviewFallback,
2361
+ disabled: B.value,
2362
+ onItemClick: l[9] ||= (e) => Q(e.groupId, e.itemId)
2363
+ }, null, 8, [
2364
+ "group",
2365
+ "gallery-preview-fallback",
2366
+ "disabled"
2367
+ ])]))), 128))])]),
2294
2368
  _: 1
2295
2369
  }, 8, [
2296
2370
  "width",
2297
2371
  "disabled",
2298
2372
  "popper-class"
2299
- ])]), l[16] ||= a("footer", { class: "ml-ribbon-group__footer ml-ribbon-group__footer--overflow" }, null, -1)])) : r("", !0)], 8, Et)) : r("", !0),
2300
- !E(L).minimized.value && z.value && E(L).layout.value === "simplified" ? (v(), i("main", {
2373
+ ])]), l[16] ||= a("footer", { class: "ml-ribbon-group__footer ml-ribbon-group__footer--overflow" }, null, -1)])) : r("", !0)], 8, Dt)) : r("", !0),
2374
+ !E(I).minimized.value && L.value && E(I).layout.value === "simplified" ? (v(), i("main", {
2301
2375
  key: 1,
2302
2376
  class: "ml-ribbon__panel ml-ribbon__panel--simplified",
2303
- "data-active-tab": z.value.id
2304
- }, [(v(!0), i(e, null, x(H.value, (e) => (v(), n(E(R), {
2377
+ "data-active-tab": L.value.id
2378
+ }, [(v(!0), i(e, null, x(H.value, (e) => (v(), n(E(ae), {
2305
2379
  key: e.id,
2306
2380
  trigger: "click",
2307
2381
  placement: "bottom-start",
2308
2382
  width: 340,
2309
- disabled: E(L).disabled.value,
2310
- "popper-class": pe.value
2383
+ disabled: B.value,
2384
+ "popper-class": ve.value
2311
2385
  }, {
2312
2386
  reference: O(() => [a("button", {
2313
2387
  class: "ml-ribbon-simplified-group",
2314
2388
  type: "button",
2315
- disabled: E(L).disabled.value
2316
- }, [qe(e) ? (v(), n(E(I), {
2389
+ disabled: B.value
2390
+ }, [Xe(e) ? (v(), n(E(F), {
2317
2391
  key: 0,
2318
2392
  class: "ml-ribbon-simplified-group__icon"
2319
2393
  }, {
2320
- default: O(() => [(v(), n(C(qe(e))))]),
2394
+ default: O(() => [(v(), n(C(Xe(e))))]),
2321
2395
  _: 2
2322
- }, 1024)) : r("", !0), a("span", null, w(e.title), 1)], 8, Nt)]),
2323
- 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"])])]),
2396
+ }, 1024)) : r("", !0), a("span", null, w(e.title), 1)], 8, Pt)]),
2397
+ default: O(() => [a("div", Ft, [c(it, {
2398
+ group: ke(e),
2399
+ "gallery-preview-fallback": X.value.galleryPreviewFallback,
2400
+ disabled: B.value,
2401
+ onItemClick: l[12] ||= (e) => Q(e.groupId, e.itemId)
2402
+ }, null, 8, [
2403
+ "group",
2404
+ "gallery-preview-fallback",
2405
+ "disabled"
2406
+ ])])]),
2328
2407
  _: 2
2329
- }, 1032, ["disabled", "popper-class"]))), 128))], 8, Mt)) : r("", !0),
2330
- c(ge, {
2331
- 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
2408
+ }, 1032, ["disabled", "popper-class"]))), 128))], 8, Nt)) : r("", !0),
2409
+ c(Y, {
2410
+ open: E(I).backdropOpen.value,
2411
+ size: _e.value,
2412
+ "back-label": X.value.backstageBackLabel,
2413
+ title: X.value.backstageTitle,
2414
+ description: X.value.backstageDescription,
2415
+ onClose: We
2337
2416
  }, o({ _: 2 }, [t.$slots.backstage ? {
2338
2417
  name: "default",
2339
2418
  fn: O(() => [S(t.$slots, "backstage", {
2340
- close: Be,
2341
- open: E(L).backdropOpen.value,
2342
- size: Z.value,
2343
- backLabel: Q.value.backstageBackLabel,
2344
- title: Q.value.backstageTitle,
2345
- description: Q.value.backstageDescription,
2346
- disabled: E(L).disabled.value
2419
+ close: We,
2420
+ open: E(I).backdropOpen.value,
2421
+ size: _e.value,
2422
+ backLabel: X.value.backstageBackLabel,
2423
+ title: X.value.backstageTitle,
2424
+ description: X.value.backstageDescription,
2425
+ disabled: E(I).disabled.value
2347
2426
  })]),
2348
2427
  key: "0"
2349
2428
  } : void 0]), 1032, [
@@ -2353,14 +2432,14 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
2353
2432
  "title",
2354
2433
  "description"
2355
2434
  ])
2356
- ], 10, pt))]),
2435
+ ], 10, mt))]),
2357
2436
  _: 3
2358
2437
  }, 8, ["size"]));
2359
2438
  }
2360
- }), Lt = {
2439
+ }), Rt = {
2361
2440
  class: "ml-ribbon-tab-definition",
2362
2441
  hidden: ""
2363
- }, Rt = /* @__PURE__ */ l({
2442
+ }, zt = /* @__PURE__ */ l({
2364
2443
  __name: "RibbonTab",
2365
2444
  props: {
2366
2445
  id: {},
@@ -2371,13 +2450,13 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
2371
2450
  contextualTitle: {}
2372
2451
  },
2373
2452
  setup(e) {
2374
- return (e, t) => (v(), i("div", Lt, [S(e.$slots, "default")]));
2453
+ return (e, t) => (v(), i("div", Rt, [S(e.$slots, "default")]));
2375
2454
  }
2376
- }), zt = {
2455
+ }), Bt = {
2377
2456
  key: 0,
2378
2457
  class: "ml-ribbon-keytips",
2379
2458
  "aria-live": "polite"
2380
- }, Bt = { class: "ml-ribbon-keytips__hint" }, Vt = /* @__PURE__ */ l({
2459
+ }, Vt = { class: "ml-ribbon-keytips__hint" }, Ht = /* @__PURE__ */ l({
2381
2460
  __name: "RibbonKeyTips",
2382
2461
  props: {
2383
2462
  open: { type: Boolean },
@@ -2412,11 +2491,11 @@ var Z = { class: "ml-ribbon-backstage__nav" }, pe = { class: "ml-ribbon-backstag
2412
2491
  }
2413
2492
  return g(() => window.addEventListener("keydown", S)), _(() => window.removeEventListener("keydown", S)), D(() => s.open, (e) => {
2414
2493
  e || y();
2415
- }), (t, o) => n.open ? (v(), i("div", zt, [a("div", Bt, w(f.value), 1), (v(!0), i(e, null, x(u.value, (e) => (v(), i("span", {
2494
+ }), (t, o) => n.open ? (v(), i("div", Bt, [a("div", Vt, w(f.value), 1), (v(!0), i(e, null, x(u.value, (e) => (v(), i("span", {
2416
2495
  key: e.id,
2417
2496
  class: "ml-ribbon-keytip"
2418
2497
  }, w(e.key), 1))), 128))])) : r("", !0);
2419
2498
  }
2420
2499
  });
2421
2500
  //#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 };
2501
+ export { Lt as MlRibbon, Y as MlRibbonBackstage, Ae as MlRibbonButton, Pe as MlRibbonButtonGroup, Oe as MlRibbonCollection, Te as MlRibbonContextualTabs, ze as MlRibbonDropdown, De as MlRibbonFileMenu, Ke as MlRibbonGallery, pt as MlRibbonGroup, rt as MlRibbonItemHost, Ht as MlRibbonKeyTips, $ as MlRibbonSegmented, zt as MlRibbonTab, xe as MlRibbonTabs, et as MlRibbonTemplateItem, Qe as MlRibbonToggleButton };