@mlightcad/ribbon 0.1.8 → 0.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,22 +1,22 @@
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, withKeys as k, withModifiers as A } from "vue";
2
- import { ElButton as j, ElButtonGroup as M, ElCheckbox as ee, ElColorPicker as N, ElConfigProvider as te, ElDrawer as P, ElDropdown as F, ElDropdownItem as I, ElDropdownMenu as L, ElIcon as R, ElInputNumber as ne, ElOption as z, ElPopover as B, ElSegmented as V, ElSelect as H, ElSwitch as U, ElTooltip as re, useGlobalConfig as ie } from "element-plus";
3
- import { ArrowDown as W, ArrowDownBold as ae, ArrowUp as oe, ArrowUpBold as se, Bottom as ce, Grid as le, Menu as ue, Promotion as de } from "@element-plus/icons-vue";
2
+ import { ElButton as j, ElButtonGroup as ee, ElCheckbox as M, ElColorPicker as N, ElConfigProvider as te, ElDrawer as P, ElDropdown as F, ElDropdownItem as I, ElDropdownMenu as L, ElIcon as R, ElInputNumber as ne, ElOption as z, ElPopover as B, ElSegmented as V, ElSelect as H, ElSwitch as U, ElTooltip as re, useGlobalConfig as ie } from "element-plus";
3
+ import { ArrowDown as W, ArrowDownBold as ae, ArrowUp as oe, ArrowUpBold as se, Bottom as ce, Check as le, Grid as ue, Menu as de, Promotion as G } from "@element-plus/icons-vue";
4
4
  //#region src/ribbon/context.ts
5
5
  var fe = Symbol("RibbonContext");
6
6
  //#endregion
7
7
  //#region src/ribbon/composables/useRibbonState.ts
8
- function G(e) {
8
+ function K(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 pe(e) {
12
12
  if (!e) return;
13
13
  let t = { ...e };
14
- return "component" in t && (t.component = G(t.component)), "icon" in t && (t.icon = G(t.icon)), "activeIcon" in t && (t.activeIcon = G(t.activeIcon)), "inactiveIcon" in t && (t.inactiveIcon = G(t.inactiveIcon)), Array.isArray(t.options) && (t.options = t.options.map((e) => {
14
+ return "component" in t && (t.component = K(t.component)), "icon" in t && (t.icon = K(t.icon)), "activeIcon" in t && (t.activeIcon = K(t.activeIcon)), "inactiveIcon" in t && (t.inactiveIcon = K(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: K(t.icon)
20
20
  } : t;
21
21
  })), Array.isArray(t.categories) && (t.categories = t.categories.map((e) => {
22
22
  if (!e || typeof e != "object") return e;
@@ -28,48 +28,48 @@ function K(e) {
28
28
  let t = e;
29
29
  return {
30
30
  ...t,
31
- preview: G(t.preview),
32
- icon: G(t.icon),
33
- component: G(t.component)
31
+ preview: K(t.preview),
32
+ icon: K(t.icon),
33
+ component: K(t.component)
34
34
  };
35
35
  }) : t.items
36
36
  };
37
37
  })), t;
38
38
  }
39
- function pe(e) {
39
+ function me(e) {
40
40
  return {
41
41
  ...e,
42
- icon: G(e.icon),
43
- props: K(e.props)
42
+ icon: K(e.icon),
43
+ props: pe(e.props)
44
44
  };
45
45
  }
46
- function me(e) {
46
+ function q(e) {
47
47
  return {
48
48
  ...e,
49
- icon: G(e.icon),
50
- footerMenuItems: e.footerMenuItems?.map(pe),
49
+ icon: K(e.icon),
50
+ footerMenuItems: e.footerMenuItems?.map(me),
51
51
  collections: e.collections?.map((e) => ({
52
52
  ...e,
53
- items: e.items.map(pe)
53
+ items: e.items.map(me)
54
54
  }))
55
55
  };
56
56
  }
57
- function q(e) {
57
+ function J(e) {
58
58
  return {
59
59
  ...e,
60
- groups: e.groups?.map(me)
60
+ groups: e.groups?.map(q)
61
61
  };
62
62
  }
63
- function J(e) {
64
- return e.map(q);
65
- }
66
63
  function he(e) {
64
+ return e.map(J);
65
+ }
66
+ function ge(e) {
67
67
  (!e.collections || e.collections.length === 0) && (e.collections = [{
68
68
  id: `${e.id}-collection-1`,
69
69
  items: []
70
70
  }]);
71
71
  }
72
- function ge(e, t, n, r, i) {
72
+ function _e(e, t, n, r, i) {
73
73
  let a = e.find((e) => e.id === t);
74
74
  if (!a?.groups) return;
75
75
  let o = a.groups.find((e) => e.id === n);
@@ -77,10 +77,10 @@ function ge(e, t, n, r, i) {
77
77
  let s = o.collections.find((e) => e.id === r);
78
78
  s && i(s.items);
79
79
  }
80
- function _e(e, n, r, i, a, o, s, c) {
81
- 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 = {
80
+ function ve(e, n, r, i, a, o, s, c) {
81
+ let l = b(r), u = b(i), d = b(a), f = b(o), p = b(he(n)), m = b(!1), h = b(!1), g = b(!1), _ = b([]), v = b(""), y = b(s), x = b(c), S = t(() => p.value.filter((e) => e.visible !== !1)), C = {
82
82
  addTab(e) {
83
- p.value.push(q(e)), f.value ||= e.id;
83
+ p.value.push(J(e)), f.value ||= e.id;
84
84
  },
85
85
  removeTab(e) {
86
86
  p.value = p.value.filter((t) => t.id !== e), f.value === e && (f.value = S.value[0]?.id ?? "");
@@ -98,7 +98,7 @@ function _e(e, n, r, i, a, o, s, c) {
98
98
  },
99
99
  addGroup(e, t) {
100
100
  let n = p.value.find((t) => t.id === e);
101
- n && (n.groups ??= [], he(t), n.groups.push(me(t)));
101
+ n && (n.groups ??= [], ge(t), n.groups.push(q(t)));
102
102
  },
103
103
  removeGroup(e, t) {
104
104
  let n = p.value.find((t) => t.id === e);
@@ -113,16 +113,16 @@ function _e(e, n, r, i, a, o, s, c) {
113
113
  n && (n.visible = !1);
114
114
  },
115
115
  addItem(e, t, n, r) {
116
- ge(p.value, e, t, n, (e) => e.push(pe(r)));
116
+ _e(p.value, e, t, n, (e) => e.push(me(r)));
117
117
  },
118
118
  removeItem(e, t, n, r) {
119
- ge(p.value, e, t, n, (e) => {
119
+ _e(p.value, e, t, n, (e) => {
120
120
  let t = e.findIndex((e) => e.id === r);
121
121
  t >= 0 && e.splice(t, 1);
122
122
  });
123
123
  },
124
124
  updateItem(e, t, n, r, i) {
125
- ge(p.value, e, t, n, (e) => {
125
+ _e(p.value, e, t, n, (e) => {
126
126
  let t = e.find((e) => e.id === r);
127
127
  t && Object.assign(t, i);
128
128
  });
@@ -171,7 +171,7 @@ function _e(e, n, r, i, a, o, s, c) {
171
171
  }
172
172
  //#endregion
173
173
  //#region src/ribbon/modules/RibbonBackstage.vue?vue&type=script&setup=true&lang.ts
174
- var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backstage__content" }, be = { key: 0 }, Y = { key: 1 }, xe = /* @__PURE__ */ l({
174
+ var ye = { class: "ml-ribbon-backstage__nav" }, be = { class: "ml-ribbon-backstage__content" }, Y = { key: 0 }, xe = { key: 1 }, X = /* @__PURE__ */ l({
175
175
  __name: "RibbonBackstage",
176
176
  props: {
177
177
  open: { type: Boolean },
@@ -200,24 +200,24 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
200
200
  title: l.title,
201
201
  description: l.description,
202
202
  size: l.size
203
- }) : (v(), i(e, { key: 1 }, [a("aside", ve, [c(E(j), {
203
+ }) : (v(), i(e, { key: 1 }, [a("aside", ye, [c(E(j), {
204
204
  type: "primary",
205
205
  onClick: d
206
206
  }, {
207
207
  default: O(() => [s(w(l.backLabel), 1)]),
208
208
  _: 1
209
- })]), a("section", ye, [l.title ? (v(), i("h2", be, w(l.title), 1)) : r("", !0), l.description ? (v(), i("p", Y, w(l.description), 1)) : r("", !0)])], 64))], 2)]),
209
+ })]), a("section", be, [l.title ? (v(), i("h2", Y, w(l.title), 1)) : r("", !0), l.description ? (v(), i("p", xe, w(l.description), 1)) : r("", !0)])], 64))], 2)]),
210
210
  _: 3
211
211
  }, 8, ["model-value"]));
212
212
  }
213
- }), X = {
213
+ }), Z = {
214
214
  class: "ml-ribbon-tabs",
215
215
  role: "tablist"
216
- }, Z = [
216
+ }, Q = [
217
217
  "aria-selected",
218
218
  "disabled",
219
219
  "onClick"
220
- ], Q = /* @__PURE__ */ l({
220
+ ], Se = /* @__PURE__ */ l({
221
221
  __name: "RibbonTabs",
222
222
  props: {
223
223
  tabs: {},
@@ -233,7 +233,7 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
233
233
  triggerEl: t.currentTarget instanceof HTMLElement ? t.currentTarget : null
234
234
  });
235
235
  }
236
- return (t, r) => (v(), i("div", X, [(v(!0), i(e, null, x(s.value, (e) => (v(), i("button", {
236
+ return (t, r) => (v(), i("div", Z, [(v(!0), i(e, null, x(s.value, (e) => (v(), i("button", {
237
237
  key: e.id,
238
238
  type: "button",
239
239
  class: m(["ml-ribbon-tab", { "is-active": n.activeTab === e.id }]),
@@ -241,9 +241,9 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
241
241
  "aria-selected": n.activeTab === e.id,
242
242
  disabled: a.disabled,
243
243
  onClick: (t) => c(e.id, t)
244
- }, w(e.title), 11, Z))), 128))]));
244
+ }, w(e.title), 11, Q))), 128))]));
245
245
  }
246
- }), Se = { class: "ml-ribbon-contextual-tabs" }, Ce = { class: "ml-ribbon-contextual-tabs__normal" }, we = { class: "ml-ribbon-contextual-tabs__ctx" }, Te = { key: 0 }, Ee = /* @__PURE__ */ l({
246
+ }), Ce = { class: "ml-ribbon-contextual-tabs" }, we = { class: "ml-ribbon-contextual-tabs__normal" }, Te = { class: "ml-ribbon-contextual-tabs__ctx" }, Ee = { key: 0 }, De = /* @__PURE__ */ l({
247
247
  __name: "RibbonContextualTabs",
248
248
  props: {
249
249
  tabs: {},
@@ -253,7 +253,7 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
253
253
  emits: ["select"],
254
254
  setup(t, { emit: n }) {
255
255
  let o = t, s = n;
256
- return (n, l) => (v(), i("div", Se, [a("div", Ce, [c(Q, {
256
+ return (n, l) => (v(), i("div", Ce, [a("div", we, [c(Se, {
257
257
  tabs: o.tabs.filter((e) => !e.contextual),
258
258
  "active-tab": t.activeTab,
259
259
  disabled: o.disabled,
@@ -262,11 +262,11 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
262
262
  "tabs",
263
263
  "active-tab",
264
264
  "disabled"
265
- ])]), a("div", we, [(v(!0), i(e, null, x(o.tabs.filter((e) => e.contextual), (e) => (v(), i("section", {
265
+ ])]), a("div", Te, [(v(!0), i(e, null, x(o.tabs.filter((e) => e.contextual), (e) => (v(), i("section", {
266
266
  key: e.id,
267
267
  class: "ml-ribbon-contextual-tabs__block",
268
268
  style: h({ "--ctx-color": e.contextualColor || "#67c23a" })
269
- }, [e.contextualTitle?.trim() ? (v(), i("small", Te, w(e.contextualTitle.trim()), 1)) : r("", !0), c(Q, {
269
+ }, [e.contextualTitle?.trim() ? (v(), i("small", Ee, w(e.contextualTitle.trim()), 1)) : r("", !0), c(Se, {
270
270
  tabs: [e],
271
271
  "active-tab": t.activeTab,
272
272
  disabled: o.disabled,
@@ -277,7 +277,7 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
277
277
  "disabled"
278
278
  ])], 4))), 128))])]));
279
279
  }
280
- }), De = ["disabled"], Oe = /* @__PURE__ */ l({
280
+ }), Oe = ["disabled"], ke = /* @__PURE__ */ l({
281
281
  __name: "RibbonFileMenu",
282
282
  props: {
283
283
  items: {},
@@ -334,11 +334,11 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
334
334
  type: "button",
335
335
  class: m(["ml-ribbon-tab ml-ribbon-tab--file", { "is-active": f.value }]),
336
336
  disabled: u.disabled
337
- }, w(u.label), 11, De)]),
337
+ }, w(u.label), 11, Oe)]),
338
338
  _: 1
339
339
  }, 8, ["disabled", "popper-class"]));
340
340
  }
341
- }), ke = /* @__PURE__ */ l({
341
+ }), Ae = /* @__PURE__ */ l({
342
342
  __name: "RibbonCollection",
343
343
  props: {
344
344
  id: {},
@@ -352,10 +352,10 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
352
352
  style: h(r.value)
353
353
  }, [S(e.$slots, "default")], 6));
354
354
  }
355
- }), Ae = {
355
+ }), je = {
356
356
  key: 3,
357
357
  class: "ml-ribbon-item-host__label ml-ribbon-button__label"
358
- }, je = /* @__PURE__ */ l({
358
+ }, Me = /* @__PURE__ */ l({
359
359
  name: "MlRibbonButton",
360
360
  __name: "RibbonButton",
361
361
  props: {
@@ -417,7 +417,7 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
417
417
  style: h(_.value),
418
418
  "aria-hidden": "true"
419
419
  }, null, 6)) : r("", !0),
420
- u.value ? (v(), i("span", Ae, [S(t.$slots, "label", {}, () => [s(w(l.value), 1)])])) : r("", !0),
420
+ u.value ? (v(), i("span", je, [S(t.$slots, "label", {}, () => [s(w(l.value), 1)])])) : r("", !0),
421
421
  S(t.$slots, "default")
422
422
  ]),
423
423
  _: 3
@@ -430,10 +430,10 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
430
430
  "aria-label"
431
431
  ]));
432
432
  }
433
- }), Me = ["data-id"], Ne = {
433
+ }), Ne = ["data-id"], Pe = {
434
434
  key: 0,
435
435
  class: "ml-ribbon-button-group__label"
436
- }, Pe = { class: "ml-ribbon-button-group__text" }, Fe = /* @__PURE__ */ l({
436
+ }, Fe = { class: "ml-ribbon-button-group__text" }, Ie = /* @__PURE__ */ l({
437
437
  __name: "RibbonButtonGroup",
438
438
  props: {
439
439
  id: {},
@@ -490,7 +490,7 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
490
490
  "ml-ribbon-button-group--equal-width": !t.wrap && t.equalWidth
491
491
  }]),
492
492
  "data-id": t.id
493
- }, [!t.hideLabel && t.label ? (v(), i("div", Ne, w(t.label), 1)) : r("", !0), c(E(M), null, {
493
+ }, [!t.hideLabel && t.label ? (v(), i("div", Pe, w(t.label), 1)) : r("", !0), c(E(ee), null, {
494
494
  default: O(() => [(v(!0), i(e, null, x(t.options, (e) => (v(), n(E(re), {
495
495
  key: String(e.value),
496
496
  content: g(e),
@@ -500,7 +500,7 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
500
500
  placement: "top",
501
501
  effect: "dark"
502
502
  }, {
503
- default: O(() => [c(je, {
503
+ default: O(() => [c(Me, {
504
504
  id: String(e.value),
505
505
  class: "ml-ribbon-button-group__button",
506
506
  label: e.label,
@@ -513,7 +513,7 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
513
513
  onClick: (t) => d(e.value)
514
514
  }, o({ _: 2 }, [f(e.label) ? {
515
515
  name: "label",
516
- fn: O(() => [a("span", Pe, w(e.label), 1)]),
516
+ fn: O(() => [a("span", Fe, w(e.label), 1)]),
517
517
  key: "0"
518
518
  } : void 0]), 1032, [
519
519
  "id",
@@ -534,12 +534,20 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
534
534
  "hide-after"
535
535
  ]))), 128))]),
536
536
  _: 1
537
- })], 10, Me));
537
+ })], 10, Ne));
538
538
  }
539
- }), Ie = { class: "ml-ribbon-item-host__content ml-ribbon-dropdown__content" }, Le = { class: "ml-ribbon-item-host__text-row ml-ribbon-dropdown__text-row" }, Re = {
539
+ }), Le = { class: "ml-ribbon-item-host__content ml-ribbon-dropdown__content" }, Re = { class: "ml-ribbon-item-host__text-row ml-ribbon-dropdown__text-row" }, ze = {
540
540
  key: 0,
541
541
  class: "ml-ribbon-item-host__label ml-ribbon-dropdown__label"
542
- }, ze = { class: "ml-ribbon-dropdown-item__content" }, Be = { class: "ml-ribbon-dropdown-item__label" }, Ve = /* @__PURE__ */ l({
542
+ }, Be = { class: "ml-ribbon-dropdown-item__content" }, Ve = { class: "ml-ribbon-dropdown-item__row" }, He = {
543
+ key: 0,
544
+ class: "ml-ribbon-dropdown-item__check",
545
+ "aria-hidden": "true"
546
+ }, Ue = { class: "ml-ribbon-dropdown-item__main" }, We = { class: "ml-ribbon-dropdown-item__label" }, Ge = /* @__PURE__ */ ((e, t) => {
547
+ let n = e.__vccOpts || e;
548
+ for (let [e, r] of t) n[e] = r;
549
+ return n;
550
+ })(/* @__PURE__ */ l({
543
551
  name: "MlRibbonDropdown",
544
552
  __name: "RibbonDropdown",
545
553
  props: {
@@ -563,7 +571,8 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
563
571
  itemSize: { default: "medium" },
564
572
  tooltipShowAfter: { default: 1e3 },
565
573
  tooltipHideAfter: { default: 0 },
566
- popperClass: { default: void 0 }
574
+ popperClass: { default: void 0 },
575
+ modelValue: { default: void 0 }
567
576
  },
568
577
  emits: [
569
578
  "command",
@@ -571,126 +580,141 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
571
580
  "tooltip-change"
572
581
  ],
573
582
  setup(o, { emit: l }) {
574
- 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) => U(e) === g.value) ?? null), T = t(() => {
583
+ let u = o, d = l, f = ie("size", ""), p = t(() => f.value || "default"), h = b(!1), g = b(void 0);
584
+ D(() => u.modelValue, (e) => {
585
+ e !== void 0 && (g.value = e);
586
+ }, { immediate: !0 });
587
+ let _ = t(() => Array.isArray(u.options) ? u.options : []), y = t(() => _.value.find((e) => se(e) === g.value) ?? null), T = t(() => {
575
588
  if (y.value && u.syncLabelWithSelection) {
576
- let e = se(y.value);
589
+ let e = ue(y.value);
577
590
  if (e) return e;
578
591
  }
579
- return ue(u.label) ?? u.id;
580
- }), D = t(() => !u.hideLabel && T.value.length > 0), k = t(() => {
592
+ return fe(u.label) ?? u.id;
593
+ }), k = t(() => !u.hideLabel && T.value.length > 0), ee = t(() => u.modelValue !== void 0 || u.syncLabelWithSelection), M = t(() => {
581
594
  if (y.value) {
582
- let e = V(y.value);
595
+ let e = U(y.value);
583
596
  if (e) return e;
584
597
  }
585
598
  return !u.icon || typeof u.icon == "string" ? null : u.icon;
586
- }), M = t(() => {
599
+ }), N = t(() => {
587
600
  if (y.value) {
588
- let e = H(y.value);
601
+ let e = ae(y.value);
589
602
  if (e) return e;
590
603
  }
591
604
  if (typeof u.icon != "string") return null;
592
605
  let e = u.icon.trim();
593
606
  return e.length > 0 ? e : null;
594
- }), ee = t(() => !!(k.value || M.value)), N = t(() => le(y.value) ?? ue(u.tooltip) ?? ue(T.value) ?? ue(u.label) ?? de(u.id)), te = t(() => [
607
+ }), te = t(() => !!(M.value || N.value)), P = t(() => G(y.value) ?? fe(u.tooltip) ?? fe(T.value) ?? fe(u.label) ?? K(u.id)), ne = t(() => [
595
608
  "ml-ribbon-dropdown-menu",
596
609
  "ml-ribbon-popper",
597
610
  `ml-ribbon-popper--size-${p.value}`,
598
611
  u.popperClass
599
612
  ].filter(Boolean).join(" "));
600
- function P(e) {
613
+ function z(e) {
601
614
  if (u.disabled) {
602
615
  h.value = !1;
603
616
  return;
604
617
  }
605
618
  h.value = e;
606
619
  }
607
- function ne() {
620
+ function B() {
608
621
  u.disabled || (h.value = !h.value);
609
622
  }
610
- function z(e) {
611
- u.disabled || (g.value = e, d("tooltip-change", le(y.value) ?? N.value), d("command", e), h.value = !1);
623
+ function V(e) {
624
+ u.disabled || (g.value = e, d("tooltip-change", G(y.value) ?? P.value), d("command", e), h.value = !1);
612
625
  }
613
- function B() {
626
+ function H() {
614
627
  if (u.disabled) return;
615
628
  let e = y.value;
616
629
  if (!e) {
617
630
  d("click");
618
631
  return;
619
632
  }
620
- d("command", U(e));
633
+ d("command", se(e));
621
634
  }
622
- function V(e) {
635
+ function U(e) {
623
636
  if (!e || typeof e != "object") return null;
624
637
  let t = e.icon;
625
638
  return !t || typeof t == "string" ? null : t;
626
639
  }
627
- function H(e) {
640
+ function ae(e) {
628
641
  if (!e || typeof e != "object") return null;
629
642
  let t = e.icon;
630
643
  return typeof t != "string" || t.trim().length === 0 ? null : t;
631
644
  }
632
- function U(e) {
645
+ function se(e) {
633
646
  if (!(!e || typeof e != "object")) return e.value;
634
647
  }
635
- function ae(e) {
636
- let t = U(e);
648
+ function ce(e) {
649
+ let t = se(e);
637
650
  if (typeof t == "string" || typeof t == "number" || t && typeof t == "object") return t;
638
651
  }
639
- function se(e) {
652
+ function ue(e) {
640
653
  if (!e || typeof e != "object") return;
641
654
  let t = e.label;
642
655
  return typeof t == "string" ? t : void 0;
643
656
  }
644
- function ce(e) {
645
- if (typeof e == "string") return de(e);
657
+ function de(e) {
658
+ if (typeof e == "string") return K(e);
646
659
  if (typeof e == "number" || typeof e == "boolean") return String(e);
647
660
  }
648
- function le(e) {
649
- if (!(!e || typeof e != "object")) return ue(e.tooltip) ?? se(e) ?? ce(U(e));
661
+ function G(e) {
662
+ if (!(!e || typeof e != "object")) return fe(e.tooltip) ?? ue(e) ?? de(se(e));
650
663
  }
651
- function ue(e) {
664
+ function fe(e) {
652
665
  if (typeof e != "string") return;
653
666
  let t = e.trim();
654
667
  return t.length > 0 ? t : void 0;
655
668
  }
656
- function de(e) {
669
+ function K(e) {
657
670
  let t = e.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]+/g, " ").trim();
658
671
  return t ? t.replace(/\b\w/g, (e) => e.toUpperCase()) : e;
659
672
  }
673
+ function pe(e) {
674
+ return se(e) === g.value;
675
+ }
660
676
  return (t, l) => (v(), n(E(F), {
661
677
  class: m(["ml-ribbon-dropdown", [`ml-ribbon-dropdown--item-${o.itemSize}`, { "is-label-hidden": o.hideLabel }]]),
662
678
  trigger: "click",
663
679
  disabled: o.disabled,
664
- "popper-class": te.value,
665
- onVisibleChange: P,
666
- onCommand: z
680
+ "popper-class": ne.value,
681
+ onVisibleChange: z,
682
+ onCommand: V
667
683
  }, {
668
684
  dropdown: O(() => [c(E(L), null, {
669
685
  default: O(() => [(v(!0), i(e, null, x(_.value, (e) => (v(), n(E(I), {
670
- key: String(U(e)),
671
- command: ae(e),
686
+ key: String(se(e)),
687
+ command: ce(e),
672
688
  disabled: e.disabled === !0,
673
- divided: e.divided === !0
689
+ divided: e.divided === !0,
690
+ "aria-current": pe(e) ? "true" : void 0,
691
+ class: m({ "ml-ribbon-dropdown-item--selected": pe(e) })
674
692
  }, {
675
693
  default: O(() => [c(E(re), {
676
- content: le(e),
677
- disabled: !le(e),
694
+ content: G(e),
695
+ disabled: !G(e),
678
696
  "show-after": o.tooltipShowAfter,
679
697
  "hide-after": o.tooltipHideAfter,
680
698
  placement: "top",
681
699
  effect: "dark"
682
700
  }, {
683
- default: O(() => [a("span", ze, [S(t.$slots, "option", { option: e }, () => [V(e) ? (v(), n(E(R), {
701
+ default: O(() => [a("span", Be, [S(t.$slots, "option", { option: e }, () => [a("span", Ve, [ee.value ? (v(), i("span", He, [pe(e) ? (v(), n(E(R), {
702
+ key: 0,
703
+ class: "ml-ribbon-dropdown-item__check-icon"
704
+ }, {
705
+ default: O(() => [c(E(le))]),
706
+ _: 1
707
+ })) : r("", !0)])) : r("", !0), a("span", Ue, [U(e) ? (v(), n(E(R), {
684
708
  key: 0,
685
709
  class: "ml-ribbon-dropdown-item__icon"
686
710
  }, {
687
- default: O(() => [(v(), n(C(V(e))))]),
711
+ default: O(() => [(v(), n(C(U(e))))]),
688
712
  _: 2
689
- }, 1024)) : H(e) ? (v(), i("i", {
713
+ }, 1024)) : ae(e) ? (v(), i("i", {
690
714
  key: 1,
691
- class: m(["ml-ribbon-dropdown-item__icon ml-ribbon-dropdown-item__icon--class", H(e)]),
715
+ class: m(["ml-ribbon-dropdown-item__icon ml-ribbon-dropdown-item__icon--class", ae(e)]),
692
716
  "aria-hidden": "true"
693
- }, null, 2)) : r("", !0), a("span", Be, w(se(e)), 1)])])]),
717
+ }, null, 2)) : r("", !0), a("span", We, w(ue(e)), 1)])])], !0)])]),
694
718
  _: 2
695
719
  }, 1032, [
696
720
  "content",
@@ -702,31 +726,33 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
702
726
  }, 1032, [
703
727
  "command",
704
728
  "disabled",
705
- "divided"
729
+ "divided",
730
+ "aria-current",
731
+ "class"
706
732
  ]))), 128))]),
707
733
  _: 3
708
734
  })]),
709
735
  default: O(() => [c(E(j), {
710
736
  type: "default",
711
737
  disabled: o.disabled,
712
- "aria-label": N.value,
713
- onClick: ne
738
+ "aria-label": P.value,
739
+ onClick: B
714
740
  }, {
715
- default: O(() => [a("span", Ie, [t.$slots.icon || ee.value ? (v(), i("span", {
741
+ default: O(() => [a("span", Le, [t.$slots.icon || te.value ? (v(), i("span", {
716
742
  key: 0,
717
- class: m(["ml-ribbon-item-host__icon ml-ribbon-item-host__icon--dropdown-primary ml-ribbon-dropdown__icon", { "ml-ribbon-item-host__icon--class": M.value && !k.value && !t.$slots.icon }]),
718
- onClick: A(B, ["stop"])
719
- }, [S(t.$slots, "icon", { selectedOption: y.value }, () => [k.value ? (v(), n(E(R), { key: 0 }, {
720
- default: O(() => [(v(), n(C(k.value)))]),
743
+ class: m(["ml-ribbon-item-host__icon ml-ribbon-item-host__icon--dropdown-primary ml-ribbon-dropdown__icon", { "ml-ribbon-item-host__icon--class": N.value && !M.value && !t.$slots.icon }]),
744
+ onClick: A(H, ["stop"])
745
+ }, [S(t.$slots, "icon", { selectedOption: y.value }, () => [M.value ? (v(), n(E(R), { key: 0 }, {
746
+ default: O(() => [(v(), n(C(M.value)))]),
721
747
  _: 1
722
- })) : M.value ? (v(), i("i", {
748
+ })) : N.value ? (v(), i("i", {
723
749
  key: 1,
724
- class: m(M.value),
750
+ class: m(N.value),
725
751
  "aria-hidden": "true"
726
- }, null, 2)) : r("", !0)])], 2)) : r("", !0), a("span", Le, [D.value ? (v(), i("span", Re, [S(t.$slots, "label", {
752
+ }, null, 2)) : r("", !0)], !0)], 2)) : r("", !0), a("span", Re, [k.value ? (v(), i("span", ze, [S(t.$slots, "label", {
727
753
  selectedOption: y.value,
728
754
  label: T.value
729
- }, () => [s(w(T.value), 1)])])) : r("", !0), c(E(R), { class: m(["ml-ribbon-item-host__dropdown-arrow ml-ribbon-dropdown__arrow", { "is-open": h.value }]) }, {
755
+ }, () => [s(w(T.value), 1)], !0)])) : r("", !0), c(E(R), { class: m(["ml-ribbon-item-host__dropdown-arrow ml-ribbon-dropdown__arrow", { "is-open": h.value }]) }, {
730
756
  default: O(() => [(v(), n(C(h.value ? E(oe) : E(W))))]),
731
757
  _: 1
732
758
  }, 8, ["class"])])])]),
@@ -739,50 +765,50 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
739
765
  "popper-class"
740
766
  ]));
741
767
  }
742
- }), He = ["disabled"], Ue = ["src"], We = {
768
+ }), [["__scopeId", "data-v-3704c6ba"]]), Ke = ["disabled"], qe = ["src"], Je = {
743
769
  key: 3,
744
770
  class: "ml-ribbon-gallery__preview-svg",
745
771
  role: "presentation",
746
772
  "aria-hidden": "true"
747
- }, Ge = ["href"], Ke = { class: "ml-ribbon-gallery__label ml-ribbon-gallery__collapsed-label" }, qe = { class: "ml-ribbon-gallery__panel" }, Je = {
773
+ }, Ye = ["href"], Xe = { class: "ml-ribbon-gallery__label ml-ribbon-gallery__collapsed-label" }, Ze = { class: "ml-ribbon-gallery__panel" }, $ = {
748
774
  key: 0,
749
775
  class: "ml-ribbon-gallery__panel-category-title"
750
- }, Ye = ["disabled", "onClick"], Xe = ["src"], Ze = {
776
+ }, Qe = ["disabled", "onClick"], $e = ["src"], et = {
751
777
  key: 3,
752
778
  class: "ml-ribbon-gallery__preview-svg",
753
779
  role: "presentation",
754
780
  "aria-hidden": "true"
755
- }, $ = ["href"], Qe = { class: "ml-ribbon-gallery__label" }, $e = {
781
+ }, tt = ["href"], nt = { class: "ml-ribbon-gallery__label" }, rt = {
756
782
  key: 1,
757
783
  class: "ml-ribbon-gallery__title"
758
- }, et = {
784
+ }, it = {
759
785
  key: 2,
760
786
  class: "ml-ribbon-gallery__categories"
761
- }, tt = {
787
+ }, at = {
762
788
  key: 0,
763
789
  class: "ml-ribbon-gallery__category-title"
764
- }, nt = ["disabled", "onClick"], rt = ["src"], it = {
790
+ }, ot = ["disabled", "onClick"], st = ["src"], ct = {
765
791
  key: 3,
766
792
  class: "ml-ribbon-gallery__preview-svg",
767
793
  role: "presentation",
768
794
  "aria-hidden": "true"
769
- }, at = ["href"], ot = { class: "ml-ribbon-gallery__label" }, st = {
795
+ }, lt = ["href"], ut = { class: "ml-ribbon-gallery__label" }, dt = {
770
796
  key: 0,
771
797
  class: "ml-ribbon-gallery__controls",
772
798
  "aria-label": "Gallery navigation"
773
- }, ct = ["disabled"], lt = ["disabled"], ut = ["disabled"], dt = {
799
+ }, ft = ["disabled"], pt = ["disabled"], mt = ["disabled"], ht = {
774
800
  key: 0,
775
801
  class: "ml-ribbon-gallery__panel-category-title"
776
- }, ft = [
802
+ }, gt = [
777
803
  "data-gallery-row-index",
778
804
  "disabled",
779
805
  "onClick"
780
- ], pt = ["src"], mt = {
806
+ ], _t = ["src"], vt = {
781
807
  key: 3,
782
808
  class: "ml-ribbon-gallery__preview-svg",
783
809
  role: "presentation",
784
810
  "aria-hidden": "true"
785
- }, ht = ["href"], gt = { class: "ml-ribbon-gallery__label" }, _t = 6, vt = 64, yt = 4, bt = 16, xt = 4, St = 22, Ct = /* @__PURE__ */ l({
811
+ }, yt = ["href"], bt = { class: "ml-ribbon-gallery__label" }, xt = 6, St = 64, Ct = 4, wt = 16, Tt = 4, Et = 22, Dt = /* @__PURE__ */ l({
786
812
  name: "MlRibbonGallery",
787
813
  __name: "RibbonGallery",
788
814
  props: {
@@ -804,13 +830,13 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
804
830
  },
805
831
  emits: ["select"],
806
832
  setup(o, { emit: l }) {
807
- let u = o, g = l, _ = b(""), y = b(!1), k = b(0), A = b(null), j = b(null), M = b(null), ee = b(0), N = ie("size", ""), te = t(() => N.value || "default"), P = t(() => te.value === "small" ? .92 : te.value === "large" ? 1.08 : 1), F = t(() => Math.round(vt * P.value)), I = t(() => Math.round(St * P.value)), L = t(() => u.label?.trim() ?? ""), ne = t(() => u.categories.filter((e) => e.items.length > 0).length), z = t(() => u.categories.flatMap((e) => e.items)), V = t(() => z.value.find((e) => e.id === _.value) ?? z.value[0]), H = t(() => !Number.isFinite(u.inlineItemLimit) || u.inlineItemLimit <= 0 ? 4 : Math.floor(u.inlineItemLimit)), U = t(() => {
833
+ let u = o, g = l, _ = b(""), y = b(!1), k = b(0), A = b(null), j = b(null), ee = b(null), M = b(0), N = ie("size", ""), te = t(() => N.value || "default"), P = t(() => te.value === "small" ? .92 : te.value === "large" ? 1.08 : 1), F = t(() => Math.round(St * P.value)), I = t(() => Math.round(Et * P.value)), L = t(() => u.label?.trim() ?? ""), ne = t(() => u.categories.filter((e) => e.items.length > 0).length), z = t(() => u.categories.flatMap((e) => e.items)), V = t(() => z.value.find((e) => e.id === _.value) ?? z.value[0]), H = t(() => !Number.isFinite(u.inlineItemLimit) || u.inlineItemLimit <= 0 ? 4 : Math.floor(u.inlineItemLimit)), U = t(() => {
808
834
  let e = H.value, t = z.value.length;
809
835
  return t === 0 ? Math.min(e, 1) : Math.min(e, t);
810
- }), re = t(() => Math.max(1, Math.ceil(z.value.length / U.value))), ae = t(() => Math.min(k.value, re.value - 1)), se = t(() => fe.value && ae.value > 0), le = t(() => fe.value && ae.value < re.value - 1), ue = t(() => {
836
+ }), re = t(() => Math.max(1, Math.ceil(z.value.length / U.value))), ae = t(() => Math.min(k.value, re.value - 1)), se = t(() => G.value && ae.value > 0), le = t(() => G.value && ae.value < re.value - 1), ue = t(() => {
811
837
  let e = ae.value * U.value;
812
838
  return z.value.slice(e, e + U.value);
813
- }), de = t(() => new Set(ue.value.map((e) => e.id))), fe = t(() => z.value.length > U.value), G = t(() => {
839
+ }), de = t(() => new Set(ue.value.map((e) => e.id))), G = t(() => z.value.length > U.value), fe = t(() => {
814
840
  let e = [
815
841
  "ml-ribbon-gallery-panel",
816
842
  `ml-ribbon-gallery-panel--${u.collapsed ? "collapsed" : "inline"}`,
@@ -820,9 +846,9 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
820
846
  }), K = t(() => ({
821
847
  "--ml-ribbon-gallery-panel-columns": String(U.value),
822
848
  "--ml-ribbon-gallery-panel-item-width": `${F.value}px`
823
- })), pe = t(() => u.inlineItemWidthMode === "auto" ? "fit-content" : U.value * F.value + Math.max(0, U.value - 1) * yt + _t * 2 + (u.collapsed ? bt : xt + I.value)), me = t(() => ({ modifiers: [{
849
+ })), pe = t(() => u.inlineItemWidthMode === "auto" ? "fit-content" : U.value * F.value + Math.max(0, U.value - 1) * Ct + xt * 2 + (u.collapsed ? wt : Tt + I.value)), me = t(() => ({ modifiers: [{
824
850
  name: "offset",
825
- options: { offset: [ee.value, 0] }
851
+ options: { offset: [M.value, 0] }
826
852
  }] }));
827
853
  D(() => u.modelValue, (e) => {
828
854
  typeof e == "string" && (_.value = e, ve(e));
@@ -843,10 +869,10 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
843
869
  return ne.value > 1 || !t || n !== t;
844
870
  }
845
871
  function he(e) {
846
- return fe.value ? e.items.filter((e) => de.value.has(e.id)) : e.items;
872
+ return G.value ? e.items.filter((e) => de.value.has(e.id)) : e.items;
847
873
  }
848
874
  function ge(e) {
849
- if (u.disabled || !fe.value) return;
875
+ if (u.disabled || !G.value) return;
850
876
  let t = ae.value + e;
851
877
  k.value = Math.min(Math.max(t, 0), re.value - 1);
852
878
  }
@@ -861,14 +887,14 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
861
887
  function ye() {
862
888
  let e = A.value, t = j.value;
863
889
  if (!e || !t) {
864
- ee.value = 0;
890
+ M.value = 0;
865
891
  return;
866
892
  }
867
893
  let n = e.querySelector(".ml-ribbon-gallery__grid .ml-ribbon-gallery__item")?.getBoundingClientRect().left ?? e.getBoundingClientRect().left;
868
- ee.value = Math.round(n - t.getBoundingClientRect().left - _t);
894
+ M.value = Math.round(n - t.getBoundingClientRect().left - xt);
869
895
  }
870
896
  function be() {
871
- let e = M.value;
897
+ let e = ee.value;
872
898
  e && e.querySelector(`[data-gallery-row-index="${ae.value}"]`)?.scrollIntoView?.({ block: "start" });
873
899
  }
874
900
  function Y(e) {
@@ -922,7 +948,7 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
922
948
  placement: "bottom-start",
923
949
  disabled: o.disabled,
924
950
  width: pe.value,
925
- "popper-class": G.value
951
+ "popper-class": fe.value
926
952
  }, {
927
953
  reference: O(() => [a("button", {
928
954
  type: "button",
@@ -957,11 +983,11 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
957
983
  class: "ml-ribbon-gallery__preview-svg",
958
984
  src: Q(V.value) ?? "",
959
985
  alt: ""
960
- }, null, 8, Ue)) : Q(V.value) ? (v(), i("svg", We, [a("use", { href: Q(V.value) ?? "" }, null, 8, Ge)])) : (v(), i(e, { key: 4 }, [s(w(we(V.value)), 1)], 64))], 2), a("div", Ke, w(V.value.label), 1)], 64))], 10, He)]),
961
- default: O(() => [a("div", qe, [(v(!0), i(e, null, x(o.categories, (o) => (v(), i("section", {
986
+ }, null, 8, qe)) : Q(V.value) ? (v(), i("svg", Je, [a("use", { href: Q(V.value) ?? "" }, null, 8, Ye)])) : (v(), i(e, { key: 4 }, [s(w(we(V.value)), 1)], 64))], 2), a("div", Xe, w(V.value.label), 1)], 64))], 10, Ke)]),
987
+ default: O(() => [a("div", Ze, [(v(!0), i(e, null, x(o.categories, (o) => (v(), i("section", {
962
988
  key: o.id,
963
989
  class: "ml-ribbon-gallery__panel-category"
964
- }, [J(o) ? (v(), i("h4", Je, w(o.title), 1)) : r("", !0), a("div", {
990
+ }, [J(o) ? (v(), i("h4", $, w(o.title), 1)) : r("", !0), a("div", {
965
991
  class: "ml-ribbon-gallery__panel-grid",
966
992
  style: h(K.value)
967
993
  }, [(v(!0), i(e, null, x(o.items, (r) => (v(), i("button", {
@@ -1007,7 +1033,7 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
1007
1033
  class: "ml-ribbon-gallery__preview-svg",
1008
1034
  src: Q(r) ?? "",
1009
1035
  alt: ""
1010
- }, null, 8, Xe)) : Q(r) ? (v(), i("svg", Ze, [a("use", { href: Q(r) ?? "" }, null, 8, $)])) : (v(), i(e, { key: 4 }, [s(w(we(r)), 1)], 64))], 2), a("div", Qe, w(r.label), 1)], 64))])], 10, Ye))), 128))], 4)]))), 128))])]),
1036
+ }, null, 8, $e)) : Q(r) ? (v(), i("svg", et, [a("use", { href: Q(r) ?? "" }, null, 8, tt)])) : (v(), i(e, { key: 4 }, [s(w(we(r)), 1)], 64))], 2), a("div", nt, w(r.label), 1)], 64))])], 10, Qe))), 128))], 4)]))), 128))])]),
1011
1037
  _: 3
1012
1038
  }, 8, [
1013
1039
  "visible",
@@ -1015,11 +1041,11 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
1015
1041
  "width",
1016
1042
  "popper-class"
1017
1043
  ])) : r("", !0),
1018
- !o.collapsed && L.value ? (v(), i("div", $e, w(L.value), 1)) : r("", !0),
1019
- o.collapsed ? r("", !0) : (v(), i("div", et, [(v(!0), i(e, null, x(o.categories, (o) => (v(), i("section", {
1044
+ !o.collapsed && L.value ? (v(), i("div", rt, w(L.value), 1)) : r("", !0),
1045
+ o.collapsed ? r("", !0) : (v(), i("div", it, [(v(!0), i(e, null, x(o.categories, (o) => (v(), i("section", {
1020
1046
  key: o.id,
1021
1047
  class: "ml-ribbon-gallery__category"
1022
- }, [L.value && J(o) ? (v(), i("h4", tt, w(o.title), 1)) : r("", !0), a("div", {
1048
+ }, [L.value && J(o) ? (v(), i("h4", at, w(o.title), 1)) : r("", !0), a("div", {
1023
1049
  class: "ml-ribbon-gallery__grid",
1024
1050
  style: h({ "--ml-ribbon-gallery-inline-columns": String(U.value) })
1025
1051
  }, [(v(!0), i(e, null, x(he(o), (r) => (v(), i("button", {
@@ -1065,7 +1091,7 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
1065
1091
  class: "ml-ribbon-gallery__preview-svg",
1066
1092
  src: Q(r) ?? "",
1067
1093
  alt: ""
1068
- }, null, 8, rt)) : Q(r) ? (v(), i("svg", it, [a("use", { href: Q(r) ?? "" }, null, 8, at)])) : (v(), i(e, { key: 4 }, [s(w(we(r)), 1)], 64))], 2), a("div", ot, w(r.label), 1)], 64))])], 10, nt))), 128))], 4)]))), 128)), fe.value ? (v(), i("div", st, [
1094
+ }, null, 8, st)) : Q(r) ? (v(), i("svg", ct, [a("use", { href: Q(r) ?? "" }, null, 8, lt)])) : (v(), i(e, { key: 4 }, [s(w(we(r)), 1)], 64))], 2), a("div", ut, w(r.label), 1)], 64))])], 10, ot))), 128))], 4)]))), 128)), G.value ? (v(), i("div", dt, [
1069
1095
  a("button", {
1070
1096
  type: "button",
1071
1097
  class: "ml-ribbon-gallery__control-button",
@@ -1075,7 +1101,7 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
1075
1101
  }, [c(E(R), null, {
1076
1102
  default: O(() => [c(E(oe))]),
1077
1103
  _: 1
1078
- })], 8, ct),
1104
+ })], 8, ft),
1079
1105
  a("button", {
1080
1106
  type: "button",
1081
1107
  class: "ml-ribbon-gallery__control-button",
@@ -1085,7 +1111,7 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
1085
1111
  }, [c(E(R), null, {
1086
1112
  default: O(() => [c(E(W))]),
1087
1113
  _: 1
1088
- })], 8, lt),
1114
+ })], 8, pt),
1089
1115
  c(E(B), {
1090
1116
  visible: y.value,
1091
1117
  "onUpdate:visible": l[3] ||= (e) => y.value = e,
@@ -1093,7 +1119,7 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
1093
1119
  placement: "bottom-start",
1094
1120
  disabled: o.disabled,
1095
1121
  width: pe.value,
1096
- "popper-class": G.value,
1122
+ "popper-class": fe.value,
1097
1123
  "popper-options": me.value
1098
1124
  }, {
1099
1125
  reference: O(() => [a("button", {
@@ -1107,15 +1133,15 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
1107
1133
  }, [c(E(R), null, {
1108
1134
  default: O(() => [c(E(ce))]),
1109
1135
  _: 1
1110
- })], 10, ut)]),
1136
+ })], 10, mt)]),
1111
1137
  default: O(() => [a("div", {
1112
1138
  ref_key: "inlinePanelRef",
1113
- ref: M,
1139
+ ref: ee,
1114
1140
  class: "ml-ribbon-gallery__panel"
1115
1141
  }, [(v(!0), i(e, null, x(o.categories, (o) => (v(), i("section", {
1116
1142
  key: o.id,
1117
1143
  class: "ml-ribbon-gallery__panel-category"
1118
- }, [J(o) ? (v(), i("h4", dt, w(o.title), 1)) : r("", !0), a("div", {
1144
+ }, [J(o) ? (v(), i("h4", ht, w(o.title), 1)) : r("", !0), a("div", {
1119
1145
  class: "ml-ribbon-gallery__panel-grid",
1120
1146
  style: h(K.value)
1121
1147
  }, [(v(!0), i(e, null, x(o.items, (r) => (v(), i("button", {
@@ -1162,7 +1188,7 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
1162
1188
  class: "ml-ribbon-gallery__preview-svg",
1163
1189
  src: Q(r) ?? "",
1164
1190
  alt: ""
1165
- }, null, 8, pt)) : Q(r) ? (v(), i("svg", mt, [a("use", { href: Q(r) ?? "" }, null, 8, ht)])) : (v(), i(e, { key: 4 }, [s(w(we(r)), 1)], 64))], 2), a("div", gt, w(r.label), 1)], 64))])], 10, ft))), 128))], 4)]))), 128))], 512)]),
1191
+ }, null, 8, _t)) : Q(r) ? (v(), i("svg", vt, [a("use", { href: Q(r) ?? "" }, null, 8, yt)])) : (v(), i(e, { key: 4 }, [s(w(we(r)), 1)], 64))], 2), a("div", bt, w(r.label), 1)], 64))])], 10, gt))), 128))], 4)]))), 128))], 512)]),
1166
1192
  _: 3
1167
1193
  }, 8, [
1168
1194
  "visible",
@@ -1174,13 +1200,13 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
1174
1200
  ])) : r("", !0)]))
1175
1201
  ], 2));
1176
1202
  }
1177
- }), wt = ["data-id", "onKeydown"], Tt = {
1203
+ }), Ot = ["data-id", "onKeydown"], kt = {
1178
1204
  key: 0,
1179
1205
  class: "ml-ribbon-input-number__prefix"
1180
- }, Et = {
1206
+ }, At = {
1181
1207
  key: 2,
1182
1208
  class: "ml-ribbon-input-number__prefix-label"
1183
- }, Dt = /* @__PURE__ */ l({
1209
+ }, jt = /* @__PURE__ */ l({
1184
1210
  name: "MlRibbonInputNumber",
1185
1211
  __name: "RibbonInputNumber",
1186
1212
  props: {
@@ -1200,19 +1226,19 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
1200
1226
  setup(e, { emit: a }) {
1201
1227
  let o = e, s = a, l = t(() => te(o.width, "96px")), u = t(() => l.value === "100%"), d = t(() => u.value ? { width: "100%" } : {}), p = t(() => u.value ? {} : { width: l.value }), g = t(() => N(o.prefixLabel)), _ = t(() => !o.prefixIcon || typeof o.prefixIcon == "string" ? null : o.prefixIcon), y = t(() => N(o.prefixIconClass ?? (typeof o.prefixIcon == "string" ? o.prefixIcon : void 0)) ?? null), x = t(() => !!(g.value || _.value || y.value)), S = t(() => g.value ?? o.id), T = b(void 0);
1202
1228
  function D(e) {
1203
- M(e);
1229
+ ee(e);
1204
1230
  }
1205
1231
  function j(e) {
1206
1232
  e.preventDefault(), e.stopPropagation();
1207
1233
  let t = e.target;
1208
1234
  if (!(t instanceof HTMLInputElement)) return;
1209
- let n = ee(t.value);
1210
- n === void 0 && t.value.trim().length > 0 || M(n);
1235
+ let n = M(t.value);
1236
+ n === void 0 && t.value.trim().length > 0 || ee(n);
1211
1237
  }
1212
- function M(e) {
1238
+ function ee(e) {
1213
1239
  Object.is(T.value, e) || (T.value = e, s("change", e));
1214
1240
  }
1215
- function ee(e) {
1241
+ function M(e) {
1216
1242
  let t = e.trim();
1217
1243
  if (!t) return;
1218
1244
  let n = Number(t);
@@ -1239,7 +1265,7 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
1239
1265
  style: h(d.value),
1240
1266
  "data-id": e.id,
1241
1267
  onKeydown: k(A(j, ["stop", "prevent"]), ["enter"])
1242
- }, [x.value ? (v(), i("span", Tt, [_.value ? (v(), n(E(R), {
1268
+ }, [x.value ? (v(), i("span", kt, [_.value ? (v(), n(E(R), {
1243
1269
  key: 0,
1244
1270
  class: "ml-ribbon-input-number__prefix-icon",
1245
1271
  "aria-hidden": "true"
@@ -1250,7 +1276,7 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
1250
1276
  key: 1,
1251
1277
  class: m(["ml-ribbon-input-number__prefix-icon ml-ribbon-input-number__prefix-icon--class", y.value]),
1252
1278
  "aria-hidden": "true"
1253
- }, null, 2)) : r("", !0), g.value ? (v(), i("span", Et, w(g.value), 1)) : r("", !0)])) : r("", !0), c(E(ne), f(e.controlProps, {
1279
+ }, null, 2)) : r("", !0), g.value ? (v(), i("span", At, w(g.value), 1)) : r("", !0)])) : r("", !0), c(E(ne), f(e.controlProps, {
1254
1280
  "model-value": e.modelValue,
1255
1281
  disabled: e.disabled,
1256
1282
  style: p.value,
@@ -1261,18 +1287,18 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
1261
1287
  "disabled",
1262
1288
  "style",
1263
1289
  "aria-label"
1264
- ])], 46, wt));
1290
+ ])], 46, Ot));
1265
1291
  }
1266
- }), Ot = ["data-id"], kt = {
1292
+ }), Mt = ["data-id"], Nt = {
1267
1293
  key: 0,
1268
1294
  class: "ml-ribbon-segmented__label"
1269
- }, At = ["data-option-value", "aria-label"], jt = {
1295
+ }, Pt = ["data-option-value", "aria-label"], Ft = {
1270
1296
  key: 2,
1271
1297
  class: "ml-ribbon-segmented__option-label"
1272
- }, Mt = {
1298
+ }, It = {
1273
1299
  key: 3,
1274
1300
  class: "ml-ribbon-segmented__option-sr-label"
1275
- }, Nt = /* @__PURE__ */ l({
1301
+ }, Lt = /* @__PURE__ */ l({
1276
1302
  __name: "RibbonSegmented",
1277
1303
  props: {
1278
1304
  id: {},
@@ -1353,7 +1379,7 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
1353
1379
  return (t, o) => (v(), i("div", {
1354
1380
  class: "ml-ribbon-segmented",
1355
1381
  "data-id": e.id
1356
- }, [d.value ? (v(), i("div", kt, w(u.value), 1)) : r("", !0), c(E(V), {
1382
+ }, [d.value ? (v(), i("div", Nt, w(u.value), 1)) : r("", !0), c(E(V), {
1357
1383
  class: "ml-ribbon-segmented__control",
1358
1384
  options: e.options,
1359
1385
  "model-value": e.modelValue,
@@ -1386,7 +1412,7 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
1386
1412
  key: 1,
1387
1413
  class: m(["ml-ribbon-segmented__option-icon ml-ribbon-item-host__icon--class", b(t)]),
1388
1414
  "aria-hidden": "true"
1389
- }, null, 2)) : r("", !0), x(t) ? (v(), i("span", jt, w(g(t)), 1)) : (v(), i("span", Mt, w(g(t)), 1))], 8, At)]),
1415
+ }, null, 2)) : r("", !0), x(t) ? (v(), i("span", Ft, w(g(t)), 1)) : (v(), i("span", It, w(g(t)), 1))], 8, Pt)]),
1390
1416
  _: 2
1391
1417
  }, 1032, [
1392
1418
  "content",
@@ -1402,9 +1428,9 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
1402
1428
  "block",
1403
1429
  "disabled",
1404
1430
  "aria-label"
1405
- ])], 8, Ot));
1431
+ ])], 8, Mt));
1406
1432
  }
1407
- }), Pt = /* @__PURE__ */ l({
1433
+ }), Rt = /* @__PURE__ */ l({
1408
1434
  __name: "RibbonToggleButton",
1409
1435
  props: {
1410
1436
  id: {},
@@ -1438,7 +1464,7 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
1438
1464
  let e = !o.value;
1439
1465
  o.value = e, a("change", e);
1440
1466
  }
1441
- return (t, r) => (v(), n(je, {
1467
+ return (t, r) => (v(), n(Me, {
1442
1468
  id: e.id,
1443
1469
  class: m(["ml-ribbon-toggle", { "is-active": s.value }]),
1444
1470
  icon: c.value,
@@ -1459,7 +1485,7 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
1459
1485
  "aria-pressed"
1460
1486
  ]));
1461
1487
  }
1462
- }), Ft = ["data-template-id", "aria-disabled"], It = /* @__PURE__ */ l({
1488
+ }), zt = ["data-template-id", "aria-disabled"], Bt = /* @__PURE__ */ l({
1463
1489
  __name: "RibbonTemplateItem",
1464
1490
  props: {
1465
1491
  id: {},
@@ -1474,12 +1500,12 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
1474
1500
  }, [S(t.$slots, "default", {
1475
1501
  item: e.item,
1476
1502
  disabled: e.disabled
1477
- }, () => [a("span", null, w(e.item.label ?? e.item.id), 1)])], 8, Ft));
1503
+ }, () => [a("span", null, w(e.item.label ?? e.item.id), 1)])], 8, zt));
1478
1504
  }
1479
- }), Lt = ["data-item-id"], Rt = {
1505
+ }), Vt = ["data-item-id"], Ht = {
1480
1506
  key: 0,
1481
1507
  class: "ml-ribbon-item-host__keytip"
1482
- }, zt = /* @__PURE__ */ l({
1508
+ }, Ut = /* @__PURE__ */ l({
1483
1509
  __name: "RibbonItemHost",
1484
1510
  props: {
1485
1511
  id: {},
@@ -1490,7 +1516,7 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
1490
1516
  },
1491
1517
  emits: ["item-click"],
1492
1518
  setup(o, { emit: c }) {
1493
- let l = o, p = c, g = u(fe, null), _ = t(() => Array.isArray(l.item.props?.options) ? l.item.props.options : []), y = ie("size", ""), k = t(() => y.value || "default"), A = t(() => Me(g?.tooltipShowAfter.value, 1e3)), j = t(() => Me(g?.tooltipHideAfter.value, 0)), M = t(() => `ml-ribbon-select-dropdown ml-ribbon-popper ml-ribbon-popper--size-${k.value}`), te = t(() => l.item.props?.icon || l.item.icon), P = t(() => l.item.hideLabel !== !0), F = b(void 0), I = t(() => l.item.type === "dropdown" && F.value ? F.value : Ae(l.item.tooltip) ?? Ae(l.item.label) ?? Re(l.item) ?? ze(l.item.id)), L = t(() => l.item.type !== "buttonGroup" && l.item.type !== "segmented"), R = t(() => !L.value || !I.value), ne = t(() => I.value ?? l.item.id), B = t(() => l.item.keyTip?.trim().toUpperCase() ?? ""), V = t(() => {
1519
+ let l = o, p = c, g = u(fe, null), _ = t(() => Array.isArray(l.item.props?.options) ? l.item.props.options : []), y = ie("size", ""), k = t(() => y.value || "default"), A = t(() => je(g?.tooltipShowAfter.value, 1e3)), j = t(() => je(g?.tooltipHideAfter.value, 0)), ee = t(() => `ml-ribbon-select-dropdown ml-ribbon-popper ml-ribbon-popper--size-${k.value}`), te = t(() => l.item.props?.icon || l.item.icon), P = t(() => l.item.hideLabel !== !0), F = b(void 0), I = t(() => l.item.type === "dropdown" && F.value ? F.value : Ae(l.item.tooltip) ?? Ae(l.item.label) ?? Re(l.item) ?? ze(l.item.id)), L = t(() => l.item.type !== "buttonGroup" && l.item.type !== "segmented"), R = t(() => !L.value || !I.value), ne = t(() => I.value ?? l.item.id), B = t(() => l.item.keyTip?.trim().toUpperCase() ?? ""), V = t(() => {
1494
1520
  if (!g?.keyTipsOpen.value || g?.disabled.value || l.disabled === !0 || !B.value) return !1;
1495
1521
  let e = g.keyTipsSequence.value.toLowerCase();
1496
1522
  return e ? B.value.toLowerCase().startsWith(e) : !0;
@@ -1509,7 +1535,7 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
1509
1535
  }), K = t(() => l.item.props?.wrap !== !1), pe = t(() => l.item.props?.equalWidth === !0), me = t(() => {
1510
1536
  let e = l.item.props?.buttonSize;
1511
1537
  if (e === "large" || e === "default" || e === "small") return e;
1512
- }), q = t(() => Ie(l.item.props?.iconSize)), J = t(() => Ne(l.item.props?.width ?? l.item.props?.comboWidth, "92px")), he = t(() => l.item.props?.modelValue), ge = t(() => Ne(l.item.props?.width ?? l.item.props?.inputNumberWidth, "96px")), _e = t(() => l.item.props?.modelValue), ve = t(() => {
1538
+ }), q = t(() => Fe(l.item.props?.iconSize)), J = t(() => Ne(l.item.props?.width ?? l.item.props?.comboWidth, "92px")), he = t(() => l.item.props?.modelValue), ge = t(() => Ne(l.item.props?.width ?? l.item.props?.inputNumberWidth, "96px")), _e = t(() => l.item.props?.modelValue), ve = t(() => {
1513
1539
  let e = { ...l.item.props ?? {} };
1514
1540
  return delete e.modelValue, delete e.width, delete e.inputNumberWidth, delete e.prefixLabel, delete e.prefixIcon, delete e.prefixIconClass, delete e.emitValueOnChange, delete e.valuePrefix, delete e.options, delete e.component, delete e.componentProps, e;
1515
1541
  }), ye = t(() => Le(l.item.props?.labelWrapLines)), be = t(() => Pe(l.item.props?.labelWrapWidth)), Y = t(() => l.item.type === "button" && l.item.size === "large" && P.value && (ye.value ?? 0) > 1), xe = t(() => {
@@ -1603,7 +1629,7 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
1603
1629
  let t = e.trim();
1604
1630
  return t.length > 0 ? t : void 0;
1605
1631
  }
1606
- function Me(e, t) {
1632
+ function je(e, t) {
1607
1633
  return typeof e != "number" || Number.isNaN(e) || !Number.isFinite(e) ? t : Math.max(0, Math.round(e));
1608
1634
  }
1609
1635
  function Ne(e, t) {
@@ -1621,7 +1647,7 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
1621
1647
  return t ? t.toLowerCase() === "full" ? "100%" : t : void 0;
1622
1648
  }
1623
1649
  }
1624
- function Ie(e) {
1650
+ function Fe(e) {
1625
1651
  if (typeof e == "number" && Number.isFinite(e) && e > 0) return `${e}px`;
1626
1652
  if (typeof e != "string") return;
1627
1653
  let t = e.trim();
@@ -1658,7 +1684,7 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
1658
1684
  style: h(xe.value),
1659
1685
  "data-item-id": o.id,
1660
1686
  role: "group"
1661
- }, [V.value ? (v(), i("span", Rt, w(B.value), 1)) : r("", !0), o.item.type === "buttonGroup" ? (v(), n(Fe, {
1687
+ }, [V.value ? (v(), i("span", Ht, w(B.value), 1)) : r("", !0), o.item.type === "buttonGroup" ? (v(), n(Ie, {
1662
1688
  key: 1,
1663
1689
  id: o.item.id,
1664
1690
  label: o.item.label ?? "",
@@ -1684,7 +1710,7 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
1684
1710
  "tooltip-show-after",
1685
1711
  "tooltip-hide-after",
1686
1712
  "disabled"
1687
- ])) : o.item.type === "segmented" ? (v(), n(Nt, {
1713
+ ])) : o.item.type === "segmented" ? (v(), n(Lt, {
1688
1714
  key: 2,
1689
1715
  id: o.item.id,
1690
1716
  label: o.item.label ?? o.item.id,
@@ -1708,7 +1734,7 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
1708
1734
  "hide-label",
1709
1735
  "tooltip-show-after",
1710
1736
  "tooltip-hide-after"
1711
- ])) : o.item.type === "toggle" ? (v(), n(Pt, {
1737
+ ])) : o.item.type === "toggle" ? (v(), n(Rt, {
1712
1738
  key: 3,
1713
1739
  id: o.item.id,
1714
1740
  label: o.item.label ?? o.item.id,
@@ -1730,7 +1756,7 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
1730
1756
  "inactive-label",
1731
1757
  "disabled",
1732
1758
  "hide-label"
1733
- ])) : o.item.type === "gallery" ? (v(), n(Ct, {
1759
+ ])) : o.item.type === "gallery" ? (v(), n(Dt, {
1734
1760
  key: 4,
1735
1761
  id: o.item.id,
1736
1762
  label: o.item.label ?? "",
@@ -1752,7 +1778,7 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
1752
1778
  "inline-item-width-mode",
1753
1779
  "preview-fallback",
1754
1780
  "disabled"
1755
- ])) : o.item.type === "custom" || o.item.type === "template" ? (v(), n(It, {
1781
+ ])) : o.item.type === "custom" || o.item.type === "template" ? (v(), n(Bt, {
1756
1782
  key: 5,
1757
1783
  id: o.item.id,
1758
1784
  item: o.item,
@@ -1777,13 +1803,14 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
1777
1803
  "id",
1778
1804
  "item",
1779
1805
  "disabled"
1780
- ])) : o.item.type === "dropdown" ? (v(), n(Ve, {
1806
+ ])) : o.item.type === "dropdown" ? (v(), n(Ge, {
1781
1807
  key: 6,
1782
1808
  id: o.item.id,
1783
1809
  label: o.item.label ?? o.item.id,
1784
1810
  tooltip: o.item.tooltip,
1785
1811
  icon: te.value,
1786
1812
  options: o.item.props?.options ?? [],
1813
+ "model-value": o.item.props?.modelValue,
1787
1814
  disabled: U.value,
1788
1815
  "hide-label": o.item.hideLabel === !0,
1789
1816
  "item-size": o.item.size ?? "medium",
@@ -1799,13 +1826,14 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
1799
1826
  "tooltip",
1800
1827
  "icon",
1801
1828
  "options",
1829
+ "model-value",
1802
1830
  "disabled",
1803
1831
  "hide-label",
1804
1832
  "item-size",
1805
1833
  "sync-label-with-selection",
1806
1834
  "tooltip-show-after",
1807
1835
  "tooltip-hide-after"
1808
- ])) : o.item.type === "checkbox" ? (v(), n(E(ee), {
1836
+ ])) : o.item.type === "checkbox" ? (v(), n(E(M), {
1809
1837
  key: 7,
1810
1838
  disabled: U.value,
1811
1839
  onChange: X
@@ -1820,7 +1848,7 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
1820
1848
  key: 9,
1821
1849
  "model-value": he.value,
1822
1850
  disabled: U.value,
1823
- "popper-class": M.value,
1851
+ "popper-class": ee.value,
1824
1852
  style: h({ width: J.value }),
1825
1853
  onChange: Ee
1826
1854
  }, {
@@ -1835,7 +1863,7 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
1835
1863
  "disabled",
1836
1864
  "popper-class",
1837
1865
  "style"
1838
- ])) : o.item.type === "inputNumber" ? (v(), n(Dt, {
1866
+ ])) : o.item.type === "inputNumber" ? (v(), n(jt, {
1839
1867
  key: 10,
1840
1868
  id: o.item.id,
1841
1869
  "model-value": _e.value,
@@ -1855,7 +1883,7 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
1855
1883
  "prefix-icon-class",
1856
1884
  "control-props",
1857
1885
  "disabled"
1858
- ])) : (v(), n(je, {
1886
+ ])) : (v(), n(Me, {
1859
1887
  key: 11,
1860
1888
  id: o.item.id,
1861
1889
  label: o.item.label ?? o.item.id,
@@ -1871,7 +1899,7 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
1871
1899
  "disabled",
1872
1900
  "hide-label",
1873
1901
  "aria-label"
1874
- ]))], 14, Lt)]),
1902
+ ]))], 14, Vt)]),
1875
1903
  _: 3
1876
1904
  }, 8, [
1877
1905
  "content",
@@ -1880,7 +1908,7 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
1880
1908
  "hide-after"
1881
1909
  ]));
1882
1910
  }
1883
- }), Bt = /* @__PURE__ */ l({
1911
+ }), Wt = /* @__PURE__ */ l({
1884
1912
  __name: "RibbonGroupContent",
1885
1913
  props: {
1886
1914
  group: {},
@@ -1890,13 +1918,13 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
1890
1918
  emits: ["item-click"],
1891
1919
  setup(t, { emit: r }) {
1892
1920
  let a = t, o = r;
1893
- return (t, r) => (v(), i("div", { class: m(["ml-ribbon-group__content", [`ml-ribbon-group__content--${a.group.orientation ?? "column"}`]]) }, [(v(!0), i(e, null, x(a.group.collections ?? [], (t) => (v(), n(ke, {
1921
+ 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(Ae, {
1894
1922
  id: t.id,
1895
1923
  key: t.id,
1896
1924
  layout: t.layout ?? (a.group.orientation === "row" ? "row" : "column"),
1897
1925
  rows: t.rows
1898
1926
  }, {
1899
- default: O(() => [(v(!0), i(e, null, x(t.items, (e) => (v(), n(zt, {
1927
+ default: O(() => [(v(!0), i(e, null, x(t.items, (e) => (v(), n(Ut, {
1900
1928
  id: e.id,
1901
1929
  key: e.id,
1902
1930
  item: e,
@@ -1921,15 +1949,15 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
1921
1949
  "rows"
1922
1950
  ]))), 128))], 2));
1923
1951
  }
1924
- }), Vt = ["data-priority"], Ht = { class: "ml-ribbon-group__body" }, Ut = { class: "ml-ribbon-group__footer" }, Wt = { class: "ml-ribbon-group__title" }, Gt = [
1952
+ }), Gt = ["data-priority"], Kt = { class: "ml-ribbon-group__body" }, qt = { class: "ml-ribbon-group__footer" }, Jt = { class: "ml-ribbon-group__title" }, Yt = [
1925
1953
  "aria-label",
1926
1954
  "aria-expanded",
1927
1955
  "disabled"
1928
- ], Kt = { class: "ml-ribbon-group__overflow-content" }, qt = [
1956
+ ], Xt = { class: "ml-ribbon-group__overflow-content" }, Zt = [
1929
1957
  "aria-label",
1930
1958
  "aria-expanded",
1931
1959
  "disabled"
1932
- ], Jt = { class: "ml-ribbon-group__overflow-content" }, Yt = /* @__PURE__ */ l({
1960
+ ], Qt = { class: "ml-ribbon-group__overflow-content" }, $t = /* @__PURE__ */ l({
1933
1961
  __name: "RibbonGroup",
1934
1962
  props: {
1935
1963
  id: {},
@@ -1957,9 +1985,9 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
1957
1985
  maxWidth: e,
1958
1986
  flex: `0 0 ${e}`
1959
1987
  };
1960
- }), x = t(() => s.disabled === !0 || d?.disabled.value === !0), T = b(null), k = b([]), A = b(null), M = b(null), ee = b(0), N = b(0), te = ie("size", ""), P = t(() => te.value || "default"), F = t(() => `ml-ribbon-group__overflow-popover ml-ribbon-group__overflow-popover--size-${P.value}`), I = t(() => ({ modifiers: [{
1988
+ }), x = t(() => s.disabled === !0 || d?.disabled.value === !0), T = b(null), k = b([]), A = b(null), ee = b(null), M = b(0), N = b(0), te = ie("size", ""), P = t(() => te.value || "default"), F = t(() => `ml-ribbon-group__overflow-popover ml-ribbon-group__overflow-popover--size-${P.value}`), I = t(() => ({ modifiers: [{
1961
1989
  name: "offset",
1962
- options: { offset: [ee.value, 8] }
1990
+ options: { offset: [M.value, 8] }
1963
1991
  }] })), L = t(() => ({ modifiers: [{
1964
1992
  name: "offset",
1965
1993
  options: { offset: [N.value, 8] }
@@ -2010,14 +2038,14 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
2010
2038
  function le() {
2011
2039
  let e = T.value?.getBoundingClientRect(), t = A.value?.getBoundingClientRect();
2012
2040
  if (!e || !t) {
2013
- ee.value !== 0 && (ee.value = 0);
2041
+ M.value !== 0 && (M.value = 0);
2014
2042
  return;
2015
2043
  }
2016
2044
  let n = Math.round(e.left - t.left);
2017
- ee.value !== n && (ee.value = n);
2045
+ M.value !== n && (M.value = n);
2018
2046
  }
2019
2047
  function ue() {
2020
- let e = T.value?.getBoundingClientRect(), t = M.value?.getBoundingClientRect();
2048
+ let e = T.value?.getBoundingClientRect(), t = ee.value?.getBoundingClientRect();
2021
2049
  if (!e || !t) {
2022
2050
  N.value !== 0 && (N.value = 0);
2023
2051
  return;
@@ -2025,7 +2053,7 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
2025
2053
  let n = Math.round(e.left - t.left);
2026
2054
  N.value !== n && (N.value = n);
2027
2055
  }
2028
- function G(e) {
2056
+ function de(e) {
2029
2057
  H.value = e;
2030
2058
  }
2031
2059
  function K(e) {
@@ -2059,7 +2087,7 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
2059
2087
  class: m(["ml-ribbon-group", { "ml-ribbon-group--auto-width": f.value }]),
2060
2088
  "data-priority": e.priority ?? 100,
2061
2089
  style: h(y.value)
2062
- }, [a("div", Ht, [S(t.$slots, "default")]), a("footer", Ut, [
2090
+ }, [a("div", Kt, [S(t.$slots, "default")]), a("footer", qt, [
2063
2091
  ne.value ? (v(), n(E(R), {
2064
2092
  key: 0,
2065
2093
  class: "ml-ribbon-group__icon"
@@ -2067,7 +2095,7 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
2067
2095
  default: O(() => [(v(), n(C(ne.value)))]),
2068
2096
  _: 1
2069
2097
  })) : r("", !0),
2070
- a("span", Wt, w(e.title), 1),
2098
+ a("span", Jt, w(e.title), 1),
2071
2099
  V.value && ae.value ? (v(), n(E(B), {
2072
2100
  key: 1,
2073
2101
  trigger: "click",
@@ -2075,12 +2103,12 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
2075
2103
  disabled: x.value,
2076
2104
  "popper-class": F.value,
2077
2105
  "popper-options": L.value,
2078
- onShow: o[1] ||= (e) => G(!0),
2079
- onHide: o[2] ||= (e) => G(!1)
2106
+ onShow: o[1] ||= (e) => de(!0),
2107
+ onHide: o[2] ||= (e) => de(!1)
2080
2108
  }, {
2081
2109
  reference: O(() => [a("button", {
2082
2110
  ref_key: "footerTriggerRef",
2083
- ref: M,
2111
+ ref: ee,
2084
2112
  type: "button",
2085
2113
  class: m(["ml-ribbon-group__footer-trigger", { "is-open": H.value }]),
2086
2114
  "aria-label": e.overflowTriggerAriaLabel,
@@ -2090,8 +2118,8 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
2090
2118
  }, [c(E(R), null, {
2091
2119
  default: O(() => [(v(), n(C(H.value ? E(oe) : E(W))))]),
2092
2120
  _: 1
2093
- })], 10, Gt)]),
2094
- default: O(() => [a("div", Kt, [c(Bt, {
2121
+ })], 10, Yt)]),
2122
+ default: O(() => [a("div", Xt, [c(Wt, {
2095
2123
  group: ae.value,
2096
2124
  "gallery-preview-fallback": e.galleryPreviewFallback,
2097
2125
  disabled: x.value,
@@ -2129,8 +2157,8 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
2129
2157
  }, [c(E(R), null, {
2130
2158
  default: O(() => [(v(), n(C(U.value ? E(oe) : E(W))))]),
2131
2159
  _: 1
2132
- })], 10, qt)]),
2133
- default: O(() => [a("div", Jt, [c(Bt, {
2160
+ })], 10, Zt)]),
2161
+ default: O(() => [a("div", Qt, [c(Wt, {
2134
2162
  group: re.value,
2135
2163
  "gallery-preview-fallback": e.galleryPreviewFallback,
2136
2164
  disabled: x.value,
@@ -2153,23 +2181,23 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
2153
2181
  disabled: x.value
2154
2182
  }, {
2155
2183
  default: O(() => [c(E(R), null, {
2156
- default: O(() => [c(E(de))]),
2184
+ default: O(() => [c(E(G))]),
2157
2185
  _: 1
2158
2186
  })]),
2159
2187
  _: 1
2160
2188
  }, 8, ["disabled"])) : r("", !0)
2161
- ])], 14, Vt));
2189
+ ])], 14, Gt));
2162
2190
  }
2163
- }), Xt = ["inert", "aria-disabled"], Zt = { class: "ml-ribbon__head-left" }, Qt = { class: "ml-ribbon__head-right" }, $t = {
2191
+ }), en = ["inert", "aria-disabled"], tn = { class: "ml-ribbon__head-left" }, nn = { class: "ml-ribbon__head-right" }, rn = {
2164
2192
  key: 2,
2165
2193
  class: "ml-ribbon__tabs-extra"
2166
- }, en = ["data-active-tab"], tn = {
2194
+ }, an = ["data-active-tab"], on = {
2167
2195
  key: 0,
2168
2196
  class: "ml-ribbon-group ml-ribbon-group--overflow"
2169
- }, nn = { class: "ml-ribbon-group__body ml-ribbon-group__body--overflow" }, rn = ["aria-label", "disabled"], an = { class: "ml-ribbon-overflow-list" }, on = { class: "ml-ribbon-overflow-group__header" }, sn = ["data-active-tab"], cn = ["disabled"], ln = { class: "ml-ribbon-simplified-group__panel" }, un = ["data-active-tab"], dn = {
2197
+ }, sn = { class: "ml-ribbon-group__body ml-ribbon-group__body--overflow" }, cn = ["aria-label", "disabled"], ln = { class: "ml-ribbon-overflow-list" }, un = { class: "ml-ribbon-overflow-group__header" }, dn = ["data-active-tab"], fn = ["disabled"], pn = { class: "ml-ribbon-simplified-group__panel" }, mn = ["data-active-tab"], hn = {
2170
2198
  key: 0,
2171
2199
  class: "ml-ribbon-group ml-ribbon-group--overflow"
2172
- }, fn = { class: "ml-ribbon-group__body ml-ribbon-group__body--overflow" }, pn = ["aria-label", "disabled"], mn = { class: "ml-ribbon-overflow-list" }, hn = { class: "ml-ribbon-overflow-group__header" }, gn = ["data-active-tab"], _n = ["disabled"], vn = { class: "ml-ribbon-simplified-group__panel" }, yn = 40, bn = /* @__PURE__ */ l({
2200
+ }, gn = { class: "ml-ribbon-group__body ml-ribbon-group__body--overflow" }, _n = ["aria-label", "disabled"], vn = { class: "ml-ribbon-overflow-list" }, yn = { class: "ml-ribbon-overflow-group__header" }, bn = ["data-active-tab"], xn = ["disabled"], Sn = { class: "ml-ribbon-simplified-group__panel" }, Cn = 40, wn = /* @__PURE__ */ l({
2173
2201
  __name: "Ribbon",
2174
2202
  props: {
2175
2203
  id: { default: "ml-ribbon-root" },
@@ -2263,7 +2291,7 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
2263
2291
  props: k(e.props)
2264
2292
  };
2265
2293
  }
2266
- function M(e) {
2294
+ function ee(e) {
2267
2295
  return {
2268
2296
  ...e,
2269
2297
  icon: f(e.icon),
@@ -2274,10 +2302,10 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
2274
2302
  }))
2275
2303
  };
2276
2304
  }
2277
- function ee(e) {
2305
+ function M(e) {
2278
2306
  return e.map((e) => ({
2279
2307
  ...e,
2280
- groups: e.groups?.map(M)
2308
+ groups: e.groups?.map(ee)
2281
2309
  }));
2282
2310
  }
2283
2311
  function N(e, t) {
@@ -2297,9 +2325,9 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
2297
2325
  keyTipsSequencePrefix: "Sequence:",
2298
2326
  keyTipsEmptySequence: "No key sequence",
2299
2327
  galleryPreviewFallback: "Preview unavailable"
2300
- }, F = s, I = u, { context: L, visibleTabs: ne } = _e(F.id, F.tabs, F.disabled, F.activeLayout ? String(F.activeLayout).toLowerCase() === "simplified" ? "simplified" : "classic" : F.layout, F.minimized, F.activeTab || F.tabs[0]?.id || "", N(F.tooltipShowAfter, 1e3), N(F.tooltipHideAfter, 0));
2328
+ }, F = s, I = u, { context: L, visibleTabs: ne } = ve(F.id, F.tabs, F.disabled, F.activeLayout ? String(F.activeLayout).toLowerCase() === "simplified" ? "simplified" : "classic" : F.layout, F.minimized, F.activeTab || F.tabs[0]?.id || "", N(F.tooltipShowAfter, 1e3), N(F.tooltipHideAfter, 0));
2301
2329
  y(fe, L), D(() => F.tabs, (e) => {
2302
- L.tabs.value = ee(e), L.tabs.value.some((e) => e.id === L.activeTab.value) || (L.activeTab.value = L.tabs.value[0]?.id || "");
2330
+ L.tabs.value = M(e), L.tabs.value.some((e) => e.id === L.activeTab.value) || (L.activeTab.value = L.tabs.value[0]?.id || "");
2303
2331
  }, { deep: !0 }), D(() => F.layout, (e) => {
2304
2332
  e !== L.layout.value && (L.layout.value = e);
2305
2333
  }), D(() => F.activeLayout, (e) => {
@@ -2329,12 +2357,12 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
2329
2357
  }), D(L.backdropOpen, (e) => {
2330
2358
  I(e ? "backstageOpen" : "backstageClose");
2331
2359
  });
2332
- let z = t(() => ne.value.find((e) => e.id === L.activeTab.value)), V = t(() => new Set(ne.value.filter((e) => e.contextual && e.contextualMode === "exclusive").map((e) => e.id))), H = t(() => Le(z.value)), W = t(() => z.value?.groups?.filter((e) => e.visible !== !1) ?? []), oe = b(null), ce = b(null), de = b(null), G = b(null), K = b(!1), pe = b(0), me = b({
2360
+ let z = t(() => ne.value.find((e) => e.id === L.activeTab.value)), V = t(() => new Set(ne.value.filter((e) => e.contextual && e.contextualMode === "exclusive").map((e) => e.id))), H = t(() => Le(z.value)), W = t(() => z.value?.groups?.filter((e) => e.visible !== !1) ?? []), oe = b(null), ce = b(null), le = b(null), G = b(null), K = b(!1), pe = b(0), me = b({
2333
2361
  left: "0px",
2334
2362
  top: "0px",
2335
2363
  width: "1px",
2336
2364
  height: "0px"
2337
- }), q = b(/* @__PURE__ */ new Set()), J = b({}), he = ie("size", ""), ge = t(() => F.size || he.value || "default"), ve = t(() => `ml-ribbon-group-popover ml-ribbon-group-popover--size-${ge.value}`), ye = t(() => `ml-ribbon-overflow-popover ml-ribbon-overflow-popover--size-${ge.value}`), be = t(() => `ml-ribbon-tab-panel-popover ml-ribbon-tab-panel-popover--size-${ge.value}`), Y = t(() => ({
2365
+ }), q = b(/* @__PURE__ */ new Set()), J = b({}), he = ie("size", ""), ge = t(() => F.size || he.value || "default"), _e = t(() => `ml-ribbon-group-popover ml-ribbon-group-popover--size-${ge.value}`), ye = t(() => `ml-ribbon-overflow-popover ml-ribbon-overflow-popover--size-${ge.value}`), be = t(() => `ml-ribbon-tab-panel-popover ml-ribbon-tab-panel-popover--size-${ge.value}`), Y = t(() => ({
2338
2366
  layoutSwitcherTooltip: F.texts.layoutSwitcherTooltip || P.layoutSwitcherTooltip,
2339
2367
  minimizeTooltip: F.texts.minimizeTooltip || P.minimizeTooltip,
2340
2368
  keyTipsToggleText: F.texts.keyTipsToggleText || P.keyTipsToggleText,
@@ -2348,10 +2376,10 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
2348
2376
  keyTipsSequencePrefix: F.texts.keyTipsSequencePrefix || P.keyTipsSequencePrefix,
2349
2377
  keyTipsEmptySequence: F.texts.keyTipsEmptySequence || P.keyTipsEmptySequence,
2350
2378
  galleryPreviewFallback: F.texts.galleryPreviewFallback || P.galleryPreviewFallback
2351
- })), X = t(() => N(F.tooltipShowAfter, 1e3)), Z = t(() => N(F.tooltipHideAfter, 0)), Q = t(() => L.minimized.value ? se : ae), Se = t(() => W.value.filter((e) => !q.value.has(e.id))), Ce = t(() => W.value.filter((e) => q.value.has(e.id))), we = t(() => {
2379
+ })), xe = t(() => N(F.tooltipShowAfter, 1e3)), Z = t(() => N(F.tooltipHideAfter, 0)), Q = t(() => L.minimized.value ? se : ae), Se = t(() => W.value.filter((e) => !q.value.has(e.id))), Ce = t(() => W.value.filter((e) => q.value.has(e.id))), we = t(() => {
2352
2380
  if (!Ce.value.length) return 220;
2353
2381
  let e = Ce.value.reduce((e, t) => {
2354
- let n = J.value[t.id] ?? ke(t);
2382
+ let n = J.value[t.id] ?? Oe(t);
2355
2383
  return Math.max(e, n);
2356
2384
  }, 0), t = Math.ceil(e + 40);
2357
2385
  return Math.max(220, Math.min(720, t));
@@ -2371,10 +2399,10 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
2371
2399
  }]
2372
2400
  };
2373
2401
  }
2374
- function De(e) {
2402
+ function Ee(e) {
2375
2403
  return e.priority ?? 100;
2376
2404
  }
2377
- function ke(e) {
2405
+ function Oe(e) {
2378
2406
  return typeof e.width == "number" && Number.isFinite(e.width) && e.width > 0 ? e.width : 140;
2379
2407
  }
2380
2408
  function Ae(e) {
@@ -2388,21 +2416,21 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
2388
2416
  }
2389
2417
  function je() {
2390
2418
  let e = W.value.reduce((e, t) => {
2391
- let n = J.value[t.id] ?? ke(t);
2392
- return e + Math.max(n, ke(t));
2419
+ let n = J.value[t.id] ?? Oe(t);
2420
+ return e + Math.max(n, Oe(t));
2393
2421
  }, 0);
2394
2422
  return Math.max(220, e);
2395
2423
  }
2396
2424
  function Me(e) {
2397
2425
  let t = Number.parseFloat(getComputedStyle(e).getPropertyValue("--ml-rb-overflow-slot-width"));
2398
- return Number.isFinite(t) && t > 0 ? t : yn;
2426
+ return Number.isFinite(t) && t > 0 ? t : Cn;
2399
2427
  }
2400
2428
  function Ne() {
2401
2429
  if (L.layout.value !== "classic") {
2402
2430
  q.value = /* @__PURE__ */ new Set();
2403
2431
  return;
2404
2432
  }
2405
- let e = L.minimized.value ? G.value : de.value;
2433
+ let e = L.minimized.value ? G.value : le.value;
2406
2434
  if (!e) return;
2407
2435
  let t = W.value;
2408
2436
  if (!t.length) {
@@ -2418,9 +2446,9 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
2418
2446
  group: e,
2419
2447
  index: t
2420
2448
  })), s = /* @__PURE__ */ new Set(), c = [...o].sort((e, t) => {
2421
- let n = De(t.group) - De(e.group);
2449
+ let n = Ee(t.group) - Ee(e.group);
2422
2450
  return n === 0 ? t.index - e.index : n;
2423
- }), l = (e) => i[e.id] ?? ke(e), u = a.reduce((e, t) => e + l(t), 0), d = (e) => o.filter(({ group: t }) => !e.has(t.id)).reduce((e, { group: t }) => e + l(t), 0), f = (e) => u + d(e) + (e.size > 0 ? r : 0), p = 0;
2451
+ }), l = (e) => i[e.id] ?? Oe(e), u = a.reduce((e, t) => e + l(t), 0), d = (e) => o.filter(({ group: t }) => !e.has(t.id)).reduce((e, { group: t }) => e + l(t), 0), f = (e) => u + d(e) + (e.size > 0 ? r : 0), p = 0;
2424
2452
  for (; f(s) > n && p < c.length;) {
2425
2453
  let e = c[p].group;
2426
2454
  s.add(e.id), p += 1;
@@ -2564,7 +2592,7 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
2564
2592
  }
2565
2593
  }
2566
2594
  function Xe(e) {
2567
- return e.icon && typeof e.icon != "string" ? e.icon : e.groupIconCss ? le : null;
2595
+ return e.icon && typeof e.icon != "string" ? e.icon : e.groupIconCss ? ue : null;
2568
2596
  }
2569
2597
  function Ze(e) {
2570
2598
  K.value = e;
@@ -2594,7 +2622,7 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
2594
2622
  z
2595
2623
  ], ([e, , t]) => {
2596
2624
  (!e || !t) && Ie();
2597
- }), D([de, G], ([e, t], [n, r]) => {
2625
+ }), D([le, G], ([e, t], [n, r]) => {
2598
2626
  n && $ && $.unobserve(n), r && $ && $.unobserve(r), e && $ && $.observe(e), t && $ && $.observe(t), (e || t) && Pe();
2599
2627
  }, { flush: "post" }), D(K, (e) => {
2600
2628
  e && p(() => {
@@ -2605,7 +2633,7 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
2605
2633
  g(() => {
2606
2634
  window.addEventListener("keydown", Ye), window.addEventListener("resize", Qe), typeof ResizeObserver < "u" && ($ = new ResizeObserver(() => {
2607
2635
  Fe(), Pe();
2608
- }), de.value && $.observe(de.value), G.value && $.observe(G.value)), Fe(), Pe();
2636
+ }), le.value && $.observe(le.value), G.value && $.observe(G.value)), Fe(), Pe();
2609
2637
  }), _(() => {
2610
2638
  window.removeEventListener("keydown", Ye), window.removeEventListener("resize", Qe), $?.disconnect();
2611
2639
  });
@@ -2634,8 +2662,8 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
2634
2662
  ref: ce,
2635
2663
  class: "ml-ribbon__header"
2636
2664
  }, [
2637
- a("div", Zt, [
2638
- s.showFileMenu ? (v(), n(Oe, {
2665
+ a("div", tn, [
2666
+ s.showFileMenu ? (v(), n(ke, {
2639
2667
  key: 0,
2640
2668
  items: s.fileMenuItems,
2641
2669
  disabled: E(L).disabled.value,
@@ -2651,7 +2679,7 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
2651
2679
  "open-backstage-label",
2652
2680
  "show-open-backstage"
2653
2681
  ])) : r("", !0),
2654
- c(Ee, {
2682
+ c(De, {
2655
2683
  tabs: E(ne),
2656
2684
  "active-tab": E(L).activeTab.value,
2657
2685
  disabled: E(L).disabled.value,
@@ -2664,7 +2692,7 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
2664
2692
  F.hideMinimizeButton ? r("", !0) : (v(), n(E(re), {
2665
2693
  key: 1,
2666
2694
  content: Y.value.minimizeTooltip,
2667
- "show-after": X.value,
2695
+ "show-after": xe.value,
2668
2696
  "hide-after": Z.value
2669
2697
  }, {
2670
2698
  default: O(() => [c(E(j), {
@@ -2688,17 +2716,17 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
2688
2716
  "hide-after"
2689
2717
  ]))
2690
2718
  ]),
2691
- a("div", Qt, [
2719
+ a("div", nn, [
2692
2720
  F.hideLayoutSwitcher ? r("", !0) : (v(), n(E(re), {
2693
2721
  key: 0,
2694
2722
  content: Y.value.layoutSwitcherTooltip,
2695
- "show-after": X.value,
2723
+ "show-after": xe.value,
2696
2724
  "hide-after": Z.value
2697
2725
  }, {
2698
2726
  default: O(() => [c(E(j), {
2699
2727
  circle: "",
2700
2728
  class: "ml-ribbon__control ml-ribbon__control--layout",
2701
- icon: E(ue),
2729
+ icon: E(de),
2702
2730
  disabled: E(L).disabled.value,
2703
2731
  onClick: ze
2704
2732
  }, null, 8, ["icon", "disabled"])]),
@@ -2723,7 +2751,7 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
2723
2751
  "model-value",
2724
2752
  "disabled"
2725
2753
  ])),
2726
- t.$slots["tabs-extra"] ? (v(), i("div", $t, [S(t.$slots, "tabs-extra", {
2754
+ t.$slots["tabs-extra"] ? (v(), i("div", rn, [S(t.$slots, "tabs-extra", {
2727
2755
  activeTab: E(L).activeTab.value,
2728
2756
  layout: E(L).layout.value,
2729
2757
  minimized: E(L).minimized.value,
@@ -2752,7 +2780,7 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
2752
2780
  ref: G,
2753
2781
  class: "ml-ribbon__panel ml-ribbon__panel--floating",
2754
2782
  "data-active-tab": z.value.id
2755
- }, [(v(!0), i(e, null, x(Se.value, (e) => (v(), n(Yt, {
2783
+ }, [(v(!0), i(e, null, x(Se.value, (e) => (v(), n($t, {
2756
2784
  id: e.id,
2757
2785
  key: e.id,
2758
2786
  "data-group-id": e.id,
@@ -2770,7 +2798,7 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
2770
2798
  disabled: H.value,
2771
2799
  onItemClick: l[2] ||= (e) => We(e.groupId, e.itemId)
2772
2800
  }, {
2773
- default: O(() => [c(Bt, {
2801
+ default: O(() => [c(Wt, {
2774
2802
  group: e,
2775
2803
  "gallery-preview-fallback": Y.value.galleryPreviewFallback,
2776
2804
  disabled: H.value,
@@ -2796,7 +2824,7 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
2796
2824
  "overflow-trigger-aria-label",
2797
2825
  "gallery-preview-fallback",
2798
2826
  "disabled"
2799
- ]))), 128)), Ce.value.length ? (v(), i("section", tn, [a("div", nn, [c(E(B), {
2827
+ ]))), 128)), Ce.value.length ? (v(), i("section", on, [a("div", sn, [c(E(B), {
2800
2828
  trigger: "click",
2801
2829
  placement: "bottom-end",
2802
2830
  width: we.value,
@@ -2811,11 +2839,11 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
2811
2839
  class: "ml-ribbon-overflow-trigger",
2812
2840
  "aria-label": Y.value.overflowTriggerAriaLabel,
2813
2841
  disabled: H.value
2814
- }, [...l[13] ||= [a("span", { class: "ml-ribbon-overflow-trigger__dots" }, "...", -1)]], 8, rn)]),
2815
- default: O(() => [a("div", an, [(v(!0), i(e, null, x(Ce.value, (e) => (v(), i("section", {
2842
+ }, [...l[13] ||= [a("span", { class: "ml-ribbon-overflow-trigger__dots" }, "...", -1)]], 8, cn)]),
2843
+ default: O(() => [a("div", ln, [(v(!0), i(e, null, x(Ce.value, (e) => (v(), i("section", {
2816
2844
  key: e.id,
2817
2845
  class: "ml-ribbon-overflow-group"
2818
- }, [a("header", on, w(e.title), 1), c(Bt, {
2846
+ }, [a("header", un, w(e.title), 1), c(Wt, {
2819
2847
  group: e,
2820
2848
  "gallery-preview-fallback": Y.value.galleryPreviewFallback,
2821
2849
  disabled: H.value,
@@ -2830,7 +2858,7 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
2830
2858
  "width",
2831
2859
  "disabled",
2832
2860
  "popper-class"
2833
- ])]), l[14] ||= a("footer", { class: "ml-ribbon-group__footer ml-ribbon-group__footer--overflow" }, null, -1)])) : r("", !0)], 8, en)) : (v(), i("main", {
2861
+ ])]), l[14] ||= a("footer", { class: "ml-ribbon-group__footer ml-ribbon-group__footer--overflow" }, null, -1)])) : r("", !0)], 8, an)) : (v(), i("main", {
2834
2862
  key: 1,
2835
2863
  class: "ml-ribbon__panel ml-ribbon__panel--simplified ml-ribbon__panel--floating",
2836
2864
  "data-active-tab": z.value.id
@@ -2841,7 +2869,7 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
2841
2869
  width: 340,
2842
2870
  disabled: H.value,
2843
2871
  "show-arrow": !1,
2844
- "popper-class": ve.value
2872
+ "popper-class": _e.value
2845
2873
  }, {
2846
2874
  reference: O(() => [a("button", {
2847
2875
  class: "ml-ribbon-simplified-group",
@@ -2853,8 +2881,8 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
2853
2881
  }, {
2854
2882
  default: O(() => [(v(), n(C(Xe(e))))]),
2855
2883
  _: 2
2856
- }, 1024)) : r("", !0), a("span", null, w(e.title), 1)], 8, cn)]),
2857
- default: O(() => [a("div", ln, [c(Bt, {
2884
+ }, 1024)) : r("", !0), a("span", null, w(e.title), 1)], 8, fn)]),
2885
+ default: O(() => [a("div", pn, [c(Wt, {
2858
2886
  group: Te(e),
2859
2887
  "gallery-preview-fallback": Y.value.galleryPreviewFallback,
2860
2888
  disabled: H.value,
@@ -2865,7 +2893,7 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
2865
2893
  "disabled"
2866
2894
  ])])]),
2867
2895
  _: 2
2868
- }, 1032, ["disabled", "popper-class"]))), 128))], 8, sn))]),
2896
+ }, 1032, ["disabled", "popper-class"]))), 128))], 8, dn))]),
2869
2897
  _: 1
2870
2898
  }, 8, [
2871
2899
  "visible",
@@ -2879,8 +2907,8 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
2879
2907
  class: "ml-ribbon__panel",
2880
2908
  "data-active-tab": z.value.id,
2881
2909
  ref_key: "classicPanelRef",
2882
- ref: de
2883
- }, [(v(!0), i(e, null, x(Se.value, (e) => (v(), n(Yt, {
2910
+ ref: le
2911
+ }, [(v(!0), i(e, null, x(Se.value, (e) => (v(), n($t, {
2884
2912
  id: e.id,
2885
2913
  key: e.id,
2886
2914
  "data-group-id": e.id,
@@ -2898,7 +2926,7 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
2898
2926
  disabled: H.value,
2899
2927
  onItemClick: l[8] ||= (e) => We(e.groupId, e.itemId)
2900
2928
  }, {
2901
- default: O(() => [c(Bt, {
2929
+ default: O(() => [c(Wt, {
2902
2930
  group: e,
2903
2931
  "gallery-preview-fallback": Y.value.galleryPreviewFallback,
2904
2932
  disabled: H.value,
@@ -2924,7 +2952,7 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
2924
2952
  "overflow-trigger-aria-label",
2925
2953
  "gallery-preview-fallback",
2926
2954
  "disabled"
2927
- ]))), 128)), Ce.value.length ? (v(), i("section", dn, [a("div", fn, [c(E(B), {
2955
+ ]))), 128)), Ce.value.length ? (v(), i("section", hn, [a("div", gn, [c(E(B), {
2928
2956
  trigger: "click",
2929
2957
  placement: "bottom-end",
2930
2958
  width: we.value,
@@ -2938,11 +2966,11 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
2938
2966
  class: "ml-ribbon-overflow-trigger",
2939
2967
  "aria-label": Y.value.overflowTriggerAriaLabel,
2940
2968
  disabled: H.value
2941
- }, [...l[15] ||= [a("span", { class: "ml-ribbon-overflow-trigger__dots" }, "...", -1)]], 8, pn)]),
2942
- default: O(() => [a("div", mn, [(v(!0), i(e, null, x(Ce.value, (e) => (v(), i("section", {
2969
+ }, [...l[15] ||= [a("span", { class: "ml-ribbon-overflow-trigger__dots" }, "...", -1)]], 8, _n)]),
2970
+ default: O(() => [a("div", vn, [(v(!0), i(e, null, x(Ce.value, (e) => (v(), i("section", {
2943
2971
  key: e.id,
2944
2972
  class: "ml-ribbon-overflow-group"
2945
- }, [a("header", hn, w(e.title), 1), c(Bt, {
2973
+ }, [a("header", yn, w(e.title), 1), c(Wt, {
2946
2974
  group: e,
2947
2975
  "gallery-preview-fallback": Y.value.galleryPreviewFallback,
2948
2976
  disabled: H.value,
@@ -2957,7 +2985,7 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
2957
2985
  "width",
2958
2986
  "disabled",
2959
2987
  "popper-class"
2960
- ])]), l[16] ||= a("footer", { class: "ml-ribbon-group__footer ml-ribbon-group__footer--overflow" }, null, -1)])) : r("", !0)], 8, un)) : r("", !0),
2988
+ ])]), l[16] ||= a("footer", { class: "ml-ribbon-group__footer ml-ribbon-group__footer--overflow" }, null, -1)])) : r("", !0)], 8, mn)) : r("", !0),
2961
2989
  !E(L).minimized.value && z.value && E(L).layout.value === "simplified" ? (v(), i("main", {
2962
2990
  key: 1,
2963
2991
  class: "ml-ribbon__panel ml-ribbon__panel--simplified",
@@ -2968,7 +2996,7 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
2968
2996
  placement: "bottom-start",
2969
2997
  width: 340,
2970
2998
  disabled: H.value,
2971
- "popper-class": ve.value
2999
+ "popper-class": _e.value
2972
3000
  }, {
2973
3001
  reference: O(() => [a("button", {
2974
3002
  class: "ml-ribbon-simplified-group",
@@ -2980,8 +3008,8 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
2980
3008
  }, {
2981
3009
  default: O(() => [(v(), n(C(Xe(e))))]),
2982
3010
  _: 2
2983
- }, 1024)) : r("", !0), a("span", null, w(e.title), 1)], 8, _n)]),
2984
- default: O(() => [a("div", vn, [c(Bt, {
3011
+ }, 1024)) : r("", !0), a("span", null, w(e.title), 1)], 8, xn)]),
3012
+ default: O(() => [a("div", Sn, [c(Wt, {
2985
3013
  group: Te(e),
2986
3014
  "gallery-preview-fallback": Y.value.galleryPreviewFallback,
2987
3015
  disabled: H.value,
@@ -2992,8 +3020,8 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
2992
3020
  "disabled"
2993
3021
  ])])]),
2994
3022
  _: 2
2995
- }, 1032, ["disabled", "popper-class"]))), 128))], 8, gn)) : r("", !0),
2996
- c(xe, {
3023
+ }, 1032, ["disabled", "popper-class"]))), 128))], 8, bn)) : r("", !0),
3024
+ c(X, {
2997
3025
  open: E(L).backdropOpen.value,
2998
3026
  size: ge.value,
2999
3027
  "back-label": Y.value.backstageBackLabel,
@@ -3019,14 +3047,14 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
3019
3047
  "title",
3020
3048
  "description"
3021
3049
  ])
3022
- ], 10, Xt))]),
3050
+ ], 10, en))]),
3023
3051
  _: 3
3024
3052
  }, 8, ["size"]));
3025
3053
  }
3026
- }), xn = {
3054
+ }), Tn = {
3027
3055
  class: "ml-ribbon-tab-definition",
3028
3056
  hidden: ""
3029
- }, Sn = /* @__PURE__ */ l({
3057
+ }, En = /* @__PURE__ */ l({
3030
3058
  __name: "RibbonTab",
3031
3059
  props: {
3032
3060
  id: {},
@@ -3037,13 +3065,13 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
3037
3065
  contextualTitle: {}
3038
3066
  },
3039
3067
  setup(e) {
3040
- return (e, t) => (v(), i("div", xn, [S(e.$slots, "default")]));
3068
+ return (e, t) => (v(), i("div", Tn, [S(e.$slots, "default")]));
3041
3069
  }
3042
- }), Cn = {
3070
+ }), Dn = {
3043
3071
  key: 0,
3044
3072
  class: "ml-ribbon-keytips",
3045
3073
  "aria-live": "polite"
3046
- }, wn = { class: "ml-ribbon-keytips__hint" }, Tn = /* @__PURE__ */ l({
3074
+ }, On = { class: "ml-ribbon-keytips__hint" }, kn = /* @__PURE__ */ l({
3047
3075
  __name: "RibbonKeyTips",
3048
3076
  props: {
3049
3077
  open: { type: Boolean },
@@ -3078,11 +3106,11 @@ var ve = { class: "ml-ribbon-backstage__nav" }, ye = { class: "ml-ribbon-backsta
3078
3106
  }
3079
3107
  return g(() => window.addEventListener("keydown", S)), _(() => window.removeEventListener("keydown", S)), D(() => s.open, (e) => {
3080
3108
  e || y();
3081
- }), (t, o) => n.open ? (v(), i("div", Cn, [a("div", wn, w(f.value), 1), (v(!0), i(e, null, x(u.value, (e) => (v(), i("span", {
3109
+ }), (t, o) => n.open ? (v(), i("div", Dn, [a("div", On, w(f.value), 1), (v(!0), i(e, null, x(u.value, (e) => (v(), i("span", {
3082
3110
  key: e.id,
3083
3111
  class: "ml-ribbon-keytip"
3084
3112
  }, w(e.key), 1))), 128))])) : r("", !0);
3085
3113
  }
3086
3114
  });
3087
3115
  //#endregion
3088
- export { bn as MlRibbon, xe as MlRibbonBackstage, je as MlRibbonButton, Fe as MlRibbonButtonGroup, ke as MlRibbonCollection, Ee as MlRibbonContextualTabs, Ve as MlRibbonDropdown, Oe as MlRibbonFileMenu, Ct as MlRibbonGallery, Yt as MlRibbonGroup, Dt as MlRibbonInputNumber, zt as MlRibbonItemHost, Tn as MlRibbonKeyTips, Nt as MlRibbonSegmented, Sn as MlRibbonTab, Q as MlRibbonTabs, It as MlRibbonTemplateItem, Pt as MlRibbonToggleButton };
3116
+ export { wn as MlRibbon, X as MlRibbonBackstage, Me as MlRibbonButton, Ie as MlRibbonButtonGroup, Ae as MlRibbonCollection, De as MlRibbonContextualTabs, Ge as MlRibbonDropdown, ke as MlRibbonFileMenu, Dt as MlRibbonGallery, $t as MlRibbonGroup, jt as MlRibbonInputNumber, Ut as MlRibbonItemHost, kn as MlRibbonKeyTips, Lt as MlRibbonSegmented, En as MlRibbonTab, Se as MlRibbonTabs, Bt as MlRibbonTemplateItem, Rt as MlRibbonToggleButton };