wave-ui 3.10.0 → 3.10.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9,7 +9,7 @@ var Y = (e, t, i) => (ne(e, t, "read from private field"), i ? i.call(e) : t.get
9
9
  throw TypeError("Cannot add the same private member more than once");
10
10
  t instanceof WeakSet ? t.add(e) : t.set(e, i);
11
11
  }, ee = (e, t, i, o) => (ne(e, t, "write to private field"), o ? o.call(e, i) : t.set(e, i), i);
12
- import { reactive as J, resolveComponent as $, openBlock as s, createBlock as b, Teleport as Ce, createVNode as V, TransitionGroup as oe, normalizeClass as f, withCtx as m, createElementBlock as u, Fragment as w, renderList as L, mergeProps as S, createElementVNode as y, createCommentVNode as c, createApp as Se, defineComponent as Be, inject as _e, withKeys as W, withModifiers as z, renderSlot as p, toHandlers as M, createTextVNode as B, toDisplayString as C, Transition as O, normalizeStyle as R, resolveDynamicComponent as I, normalizeProps as ie, resolveDirective as ge, withDirectives as K, createSlots as Q, vShow as ae, vModelText as be, vModelDynamic as $e, KeepAlive as Ve } from "vue";
12
+ import { reactive as J, resolveComponent as $, openBlock as s, createBlock as b, Teleport as Ce, createVNode as V, TransitionGroup as oe, normalizeClass as f, withCtx as m, createElementBlock as u, Fragment as w, renderList as L, mergeProps as S, createElementVNode as y, createCommentVNode as c, createApp as Se, defineComponent as Be, inject as _e, withKeys as W, withModifiers as z, renderSlot as p, toHandlers as M, createTextVNode as B, toDisplayString as C, Transition as O, normalizeStyle as R, resolveDynamicComponent as I, normalizeProps as ie, resolveDirective as ge, withDirectives as A, createSlots as Q, vShow as ae, vModelText as be, vModelDynamic as $e, KeepAlive as Ve } from "vue";
13
13
  const Ie = J({
14
14
  on: "#app",
15
15
  // Sets the Wave UI root node. If not found, will default to `body`.
@@ -84,19 +84,19 @@ const Ie = J({
84
84
  if (o === "shades")
85
85
  continue;
86
86
  o = { label: o, color: i[o].replace("#", "") };
87
- const a = o.color;
88
- a.length === 3 && (o.color = a[0] + "" + a[0] + a[1] + a[1] + a[2] + a[2]);
87
+ const n = o.color;
88
+ n.length === 3 && (o.color = n[0] + "" + n[0] + n[1] + n[1] + n[2] + n[2]);
89
89
  for (let l = 1; l <= 3; l++) {
90
- const n = re(`#${o.color}`, l * 40), r = re(`#${o.color}`, -l * 40);
91
- i.shades[`${o.label}-light${l}`] = n, i.shades[`${o.label}-dark${l}`] = r;
90
+ const a = re(`#${o.color}`, l * 40), r = re(`#${o.color}`, -l * 40);
91
+ i.shades[`${o.label}-light${l}`] = a, i.shades[`${o.label}-dark${l}`] = r;
92
92
  }
93
93
  }
94
94
  });
95
95
  }, de = (e, t) => {
96
96
  const i = {
97
- ...t.reduce((o, a) => {
98
- o[a.label] = a.color;
99
- const l = (a.shades || []).reduce((n, r) => (n[r.label] = r.color, n), {});
97
+ ...t.reduce((o, n) => {
98
+ o[n.label] = n.color;
99
+ const l = (n.shades || []).reduce((a, r) => (a[r.label] = r.color, a), {});
100
100
  return { ...o, ...l };
101
101
  }, { ...e, ...e.shades })
102
102
  };
@@ -455,12 +455,12 @@ const Ie = J({
455
455
  let le = { keys: [], values: [] }, he = null;
456
456
  const Le = (e) => {
457
457
  let t = "";
458
- const i = {}, { info: o, warning: a, success: l, error: n, shades: r, ...d } = e, { cssScope: h } = U;
458
+ const i = {}, { info: o, warning: n, success: l, error: a, shades: r, ...d } = e, { cssScope: h } = U;
459
459
  for (const g in d)
460
460
  t += `${h} .${g}--bg{background-color:var(--w-${g}-color)}${h} .${g}{color:var(--w-${g}-color)}`;
461
461
  for (const g in r)
462
462
  t += `${h} .${g}--bg{background-color:${r[g]}}${h} .${g}{color:${r[g]}}`;
463
- const k = { ...d, info: o, warning: a, success: l, error: n };
463
+ const k = { ...d, info: o, warning: n, success: l, error: a };
464
464
  for (const g in k)
465
465
  i[g] = k[g];
466
466
  let _ = "";
@@ -470,20 +470,20 @@ const Le = (e) => {
470
470
  }, Re = (e, t) => {
471
471
  let i = "";
472
472
  const { cssScope: o } = U;
473
- return e.forEach(({ min: a, label: l }) => {
473
+ return e.forEach(({ min: n, label: l }) => {
474
474
  if (l === "xs")
475
- for (let n = 0; n < t; n++)
476
- i += `${o} .${l}${t - n}{width:${parseFloat(((t - n) * 100 / t).toFixed(4))}%;}`;
475
+ for (let a = 0; a < t; a++)
476
+ i += `${o} .${l}${t - a}{width:${parseFloat(((t - a) * 100 / t).toFixed(4))}%;}`;
477
477
  else {
478
- i += `@media(min-width:${a}px){`;
479
- for (let n = 0; n < t; n++)
480
- i += `${o} .${l}${t - n}{width:${parseFloat(((t - n) * 100 / t).toFixed(4))}%;}`;
478
+ i += `@media(min-width:${n}px){`;
479
+ for (let a = 0; a < t; a++)
480
+ i += `${o} .${l}${t - a}{width:${parseFloat(((t - a) * 100 / t).toFixed(4))}%;}`;
481
481
  i += "}";
482
482
  }
483
483
  }), i;
484
484
  }, Pe = (e) => {
485
485
  let t = "";
486
- const { cssScope: i, baseIncrement: o } = U, a = [
486
+ const { cssScope: i, baseIncrement: o } = U, n = [
487
487
  "show{display:block}",
488
488
  "hide{display:none}",
489
489
  "d-flex{display:flex}",
@@ -518,19 +518,19 @@ const Le = (e) => {
518
518
  "justify-space-around{justify-content:space-around}",
519
519
  "justify-space-evenly{justify-content:space-evenly}"
520
520
  ], l = Array(12).fill();
521
- return e.forEach(({ label: n, min: r }) => {
522
- n !== "xs" && (t += `@media(min-width:${r}px){` + a.map((d) => `${i} .${n}u-${d}`).join("") + // w-grid columns and gap.
523
- l.map((d, h) => `.w-grid.${n}u-columns${h + 1}{grid-template-columns:repeat(${h + 1},1fr);}`).join("") + l.map((d, h) => `.w-flex.${n}u-gap${h + 1},.w-grid.${n}u-gap${h + 1}{gap:${(h + 1) * o}px;}`).join("") + `.w-flex.${n}u-gap0,.w-flex.${n}u-gap0{gap:0}}`);
524
- }), e.forEach(({ label: n, min: r, max: d }) => {
525
- t += `@media (min-width:${r}px) and (max-width:${d}px){` + a.map((h) => `${i} .${n}-${h}`).join("") + // w-grid columns and gap.
526
- l.map((h, k) => `.w-grid.${n}-columns${k + 1}{grid-template-columns:repeat(${k + 1},1fr);}`).join("") + l.map((h, k) => `.w-flex.${n}-gap${k + 1},.w-grid.${n}-gap${k + 1}{gap:${(k + 1) * o}px;}`).join("") + `.w-flex.${n}-gap0,.w-flex.${n}-gap0{gap:0}}`;
527
- }), e.forEach(({ label: n, max: r }) => {
528
- n !== "xl" && (t += `@media (max-width:${r}px){` + a.map((d) => `${i} .${n}d-${d}`).join("") + // w-grid columns and gap.
529
- l.map((d, h) => `.w-grid.${n}d-columns${h + 1}{grid-template-columns:repeat(${h + 1},1fr);}`).join("") + l.map((d, h) => `.w-flex.${n}d-gap${h + 1},.w-grid.${n}d-gap${h + 1}{gap:${(h + 1) * o}px;}`).join("") + `.w-flex.${n}d-gap0,.w-flex.${n}d-gap0{gap:0}}`);
521
+ return e.forEach(({ label: a, min: r }) => {
522
+ a !== "xs" && (t += `@media(min-width:${r}px){` + n.map((d) => `${i} .${a}u-${d}`).join("") + // w-grid columns and gap.
523
+ l.map((d, h) => `.w-grid.${a}u-columns${h + 1}{grid-template-columns:repeat(${h + 1},1fr);}`).join("") + l.map((d, h) => `.w-flex.${a}u-gap${h + 1},.w-grid.${a}u-gap${h + 1}{gap:${(h + 1) * o}px;}`).join("") + `.w-flex.${a}u-gap0,.w-flex.${a}u-gap0{gap:0}}`);
524
+ }), e.forEach(({ label: a, min: r, max: d }) => {
525
+ t += `@media (min-width:${r}px) and (max-width:${d}px){` + n.map((h) => `${i} .${a}-${h}`).join("") + // w-grid columns and gap.
526
+ l.map((h, k) => `.w-grid.${a}-columns${k + 1}{grid-template-columns:repeat(${k + 1},1fr);}`).join("") + l.map((h, k) => `.w-flex.${a}-gap${k + 1},.w-grid.${a}-gap${k + 1}{gap:${(k + 1) * o}px;}`).join("") + `.w-flex.${a}-gap0,.w-flex.${a}-gap0{gap:0}}`;
527
+ }), e.forEach(({ label: a, max: r }) => {
528
+ a !== "xl" && (t += `@media (max-width:${r}px){` + n.map((d) => `${i} .${a}d-${d}`).join("") + // w-grid columns and gap.
529
+ l.map((d, h) => `.w-grid.${a}d-columns${h + 1}{grid-template-columns:repeat(${h + 1},1fr);}`).join("") + l.map((d, h) => `.w-flex.${a}d-gap${h + 1},.w-grid.${a}d-gap${h + 1}{gap:${(h + 1) * o}px;}`).join("") + `.w-flex.${a}d-gap0,.w-flex.${a}d-gap0{gap:0}}`);
530
530
  }), t;
531
531
  }, ce = (e) => {
532
532
  const t = window.innerWidth, i = le.values.slice(0);
533
- i.push(t), i.sort((a, l) => a - l);
533
+ i.push(t), i.sort((n, l) => n - l);
534
534
  const o = le.keys[i.indexOf(t)] || "xl";
535
535
  o !== he && (he = o, e.breakpoint = {
536
536
  name: o,
@@ -558,16 +558,16 @@ const Le = (e) => {
558
558
  i ? i.before(t) : document.head.appendChild(t);
559
559
  }
560
560
  }, ze = (e) => {
561
- const t = Object.entries(e.breakpoints), i = t.map(([l, n], r) => {
561
+ const t = Object.entries(e.breakpoints), i = t.map(([l, a], r) => {
562
562
  const [, d = 0] = t[r - 1] || [];
563
- return { label: l, min: d ? d + 1 : 0, max: n };
563
+ return { label: l, min: d ? d + 1 : 0, max: a };
564
564
  }), o = getComputedStyle(document.documentElement);
565
565
  U.cssScope = o.getPropertyValue("--w-css-scope"), U.baseIncrement = parseInt(o.getPropertyValue("--w-base-increment"));
566
- let a = "";
567
- return a += Re(i, e.css.grid), e.css.breakpointLayoutClasses && (a += Pe(i)), a;
566
+ let n = "";
567
+ return n += Re(i, e.css.grid), e.css.breakpointLayoutClasses && (n += Pe(i)), n;
568
568
  }, Me = ["innerHTML"];
569
- function Ee(e, t, i, o, a, l) {
570
- const n = $("w-alert");
569
+ function Ee(e, t, i, o, n, l) {
570
+ const a = $("w-alert");
571
571
  return s(), b(Ce, { to: ".w-app" }, [
572
572
  V(oe, {
573
573
  class: f(["w-notification-manager", { "w-notification-manager--left": l.conf.align === "left" }]),
@@ -577,7 +577,7 @@ function Ee(e, t, i, o, a, l) {
577
577
  }, {
578
578
  default: m(() => [
579
579
  (s(!0), u(w, null, L(l.notifications, (r) => (s(), u(w, null, [
580
- r._value ? (s(), b(n, S({
580
+ r._value ? (s(), b(a, S({
581
581
  class: "white--bg",
582
582
  key: r._uid,
583
583
  modelValue: r._value,
@@ -599,8 +599,8 @@ function Ee(e, t, i, o, a, l) {
599
599
  }
600
600
  const v = (e, t) => {
601
601
  const i = e.__vccOpts || e;
602
- for (const [o, a] of t)
603
- i[o] = a;
602
+ for (const [o, n] of t)
603
+ i[o] = n;
604
604
  return i;
605
605
  }, We = {
606
606
  name: "w-notification-manager",
@@ -620,11 +620,11 @@ const v = (e, t) => {
620
620
  },
621
621
  methods: {
622
622
  notifProps(e) {
623
- const { _value: t, _uid: i, message: o, timeout: a, ...l } = e;
623
+ const { _value: t, _uid: i, message: o, timeout: n, ...l } = e;
624
624
  return l.dismiss && (l.dismiss = !0), l;
625
625
  }
626
626
  }
627
- }, Ae = /* @__PURE__ */ v(We, [["render", Ee]]);
627
+ }, Ke = /* @__PURE__ */ v(We, [["render", Ee]]);
628
628
  var H;
629
629
  const N = class N {
630
630
  constructor() {
@@ -651,11 +651,11 @@ const N = class N {
651
651
  if (typeof t[0] == "object")
652
652
  i = { ...i, ...t[0] };
653
653
  else {
654
- const [o, a, l] = t;
654
+ const [o, n, l] = t;
655
655
  i = {
656
656
  ...i,
657
657
  message: o || "",
658
- [a === void 0 ? "info" : a]: !0,
658
+ [n === void 0 ? "info" : n]: !0,
659
659
  timeout: l || l === 0 ? parseFloat(l) : 4e3
660
660
  };
661
661
  }
@@ -667,18 +667,18 @@ const N = class N {
667
667
  };
668
668
  H = new WeakMap(), Z(N, H, void 0);
669
669
  let se = N;
670
- const Ke = (e, t, i) => {
670
+ const Ae = (e, t, i) => {
671
671
  const o = document.createElement("div");
672
672
  e.appendChild(o);
673
- const a = Se(Be({
674
- ...Ae,
673
+ const n = Se(Be({
674
+ ...Ke,
675
675
  inject: ["$waveui"]
676
676
  })).provide("$waveui", i);
677
677
  for (const l in t) {
678
- const n = t[l];
679
- a.component(n.name, { ...n, inject: ["$waveui"] });
678
+ const a = t[l];
679
+ n.component(a.name, { ...a, inject: ["$waveui"] });
680
680
  }
681
- a.mount(o), o.remove();
681
+ n.mount(o), o.remove();
682
682
  };
683
683
  let pe = !1;
684
684
  const Ne = (e) => {
@@ -688,18 +688,18 @@ const Ne = (e) => {
688
688
  });
689
689
  }, De = (e, t) => {
690
690
  var i, o;
691
- for (const a in t)
692
- if ((i = e.props) != null && i[a])
693
- e.props[a].default = t[a];
691
+ for (const n in t)
692
+ if ((i = e.props) != null && i[n])
693
+ e.props[n].default = t[n];
694
694
  else {
695
695
  let l = !1;
696
696
  if (Array.isArray(e.mixins) && e.mixins.length) {
697
- for (const n of e.mixins)
698
- if ((o = n == null ? void 0 : n.props) != null && o[a]) {
699
- n.props[a].default = t[a], l = !0;
697
+ for (const a of e.mixins)
698
+ if ((o = a == null ? void 0 : a.props) != null && o[n]) {
699
+ a.props[n].default = t[n], l = !0;
700
700
  break;
701
701
  }
702
- l || j(`Attempting to set a preset on a prop that doesn't exist: \`${e.name}.${a}\`.`);
702
+ l || j(`Attempting to set a preset on a prop that doesn't exist: \`${e.name}.${n}\`.`);
703
703
  continue;
704
704
  }
705
705
  }
@@ -733,8 +733,8 @@ const D = class D {
733
733
  },
734
734
  // Callable from this.$waveui.
735
735
  switchTheme(t, i = !1) {
736
- var a, l;
737
- this.theme = t, document.documentElement.setAttribute("data-theme", t), (l = (a = document.head.querySelector("#wave-ui-colors")) == null ? void 0 : a.remove) == null || l.call(a);
736
+ var n, l;
737
+ this.theme = t, document.documentElement.setAttribute("data-theme", t), (l = (n = document.head.querySelector("#wave-ui-colors")) == null ? void 0 : n.remove) == null || l.call(n);
738
738
  const o = this.config.colors[this.theme];
739
739
  xe(o), this.colors = de(o, ue);
740
740
  }
@@ -744,39 +744,39 @@ const D = class D {
744
744
  return;
745
745
  }
746
746
  if (this.$waveui._notificationManager = new se(), i.theme || (i.theme = "light"), i.colors) {
747
- const n = { ...i.colors };
748
- i.colors.light || (i.colors.light = n), i.colors.dark || (i.colors.dark = n), i.colors = { light: i.colors.light, dark: i.colors.dark };
747
+ const a = { ...i.colors };
748
+ i.colors.light || (i.colors.light = a), i.colors.dark || (i.colors.dark = a), i.colors = { light: i.colors.light, dark: i.colors.dark };
749
749
  }
750
- let { components: o, ...a } = i;
751
- a = this.$waveui.config = ye(a), a.css.colorShades && Te(a);
750
+ let { components: o, ...n } = i;
751
+ n = this.$waveui.config = ye(n), n.css.colorShades && Te(n);
752
752
  const l = J(this.$waveui);
753
- t.config.globalProperties.$waveui = l, t.provide("$waveui", l), a.theme !== "auto" && (this.$waveui.colors = de(a.colors[a.theme], ue));
753
+ t.config.globalProperties.$waveui = l, t.provide("$waveui", l), n.theme !== "auto" && (this.$waveui.colors = de(n.colors[n.theme], ue));
754
754
  }
755
755
  static install(t, i = {}) {
756
- var a;
756
+ var n;
757
757
  t.directive("focus", {
758
758
  // Wait for the next tick to focus the newly mounted element.
759
759
  mounted: (l) => setTimeout(() => l.focus(), 0)
760
760
  }), t.directive("scroll", {
761
- mounted: (l, n) => {
761
+ mounted: (l, a) => {
762
762
  const r = (d) => {
763
- n.value(d, l) && window.removeEventListener("scroll", r);
763
+ a.value(d, l) && window.removeEventListener("scroll", r);
764
764
  };
765
765
  window.addEventListener("scroll", r);
766
766
  }
767
767
  });
768
768
  const { components: o = {} } = i || {};
769
769
  for (const l in o) {
770
- const n = o[l];
771
- (a = i.presets) != null && a[n.name] && De(n, i.presets[n.name]), t.component(n.name, n);
770
+ const a = o[l];
771
+ (n = i.presets) != null && n[a.name] && De(a, i.presets[a.name]), t.component(a.name, a);
772
772
  }
773
773
  t.mixin({
774
774
  // Add a mixin to capture the first mounted hook, trigger the Wave UI init then unregister the mixin straight away.
775
775
  beforeMount() {
776
776
  if (!pe) {
777
777
  pe = !0;
778
- const l = _e("$waveui"), { config: n } = l, r = document.querySelector(n.on) || document.body;
779
- r.classList.add("w-app"), n.theme === "auto" ? Ne(l) : l.switchTheme(n.theme, !0), Oe(l), Ke(r, o, l), t._context.mixins.find((d) => d.mounted && delete d.mounted);
778
+ const l = _e("$waveui"), { config: a } = l, r = document.querySelector(a.on) || document.body;
779
+ r.classList.add("w-app"), a.theme === "auto" ? Ne(l) : l.switchTheme(a.theme, !0), Oe(l), Ae(r, o, l), t._context.mixins.find((d) => d.mounted && delete d.mounted);
780
780
  }
781
781
  }
782
782
  }), new D(t, i), ee(D, X, !0);
@@ -785,8 +785,8 @@ const D = class D {
785
785
  X = new WeakMap(), Z(D, X, !1);
786
786
  let q = D;
787
787
  const He = ["aria-expanded"], Fe = ["onClick", "onFocus", "onKeypress", "tabindex"], je = ["innerHTML"], Ue = ["innerHTML"];
788
- function qe(e, t, i, o, a, l) {
789
- const n = $("w-button"), r = $("w-transition-expand");
788
+ function qe(e, t, i, o, n, l) {
789
+ const a = $("w-button"), r = $("w-transition-expand");
790
790
  return s(), u("div", {
791
791
  class: f(["w-accordion", l.accordionClasses])
792
792
  }, [
@@ -802,7 +802,7 @@ function qe(e, t, i, o, a, l) {
802
802
  onKeypress: W((k) => !d._disabled && l.toggleItem(d, k), ["enter"]),
803
803
  tabindex: !d._disabled && 0
804
804
  }, [
805
- i.expandIcon && !i.expandIconRight ? (s(), b(n, {
805
+ i.expandIcon && !i.expandIconRight ? (s(), b(a, {
806
806
  key: 0,
807
807
  class: f(["w-accordion__expand-icon", { "w-accordion__expand-icon--expanded": d._expanded, "w-accordion__expand-icon--rotate90": i.expandIconRotate90 }]),
808
808
  icon: d._expanded && i.collapseIcon || i.expandIcon,
@@ -830,7 +830,7 @@ function qe(e, t, i, o, a, l) {
830
830
  innerHTML: d[i.itemTitleKey]
831
831
  }, null, 8, je)
832
832
  ]),
833
- i.expandIcon && i.expandIconRight ? (s(), b(n, {
833
+ i.expandIcon && i.expandIconRight ? (s(), b(a, {
834
834
  key: 3,
835
835
  class: f(["w-accordion__expand-icon", { "w-accordion__expand-icon--expanded": d._expanded, "w-accordion__expand-icon--rotate90": i.expandIconRotate90 }]),
836
836
  icon: d._expanded && i.collapseIcon || i.expandIcon,
@@ -961,14 +961,14 @@ const Xe = {
961
961
  }
962
962
  }
963
963
  }, Ye = /* @__PURE__ */ v(Xe, [["render", qe]]), Ge = { class: "w-alert__content" };
964
- function Je(e, t, i, o, a, l) {
965
- const n = $("w-icon"), r = $("w-button");
966
- return a.show ? (s(), u("div", S({
964
+ function Je(e, t, i, o, n, l) {
965
+ const a = $("w-icon"), r = $("w-button");
966
+ return n.show ? (s(), u("div", S({
967
967
  key: 0,
968
968
  class: "w-alert"
969
969
  }, M(e.$attrs, !0), { class: l.classes }), [
970
970
  l.type || i.icon || i.dismiss ? (s(), u(w, { key: 0 }, [
971
- l.type || i.icon ? (s(), b(n, {
971
+ l.type || i.icon ? (s(), b(a, {
972
972
  key: 0,
973
973
  class: "w-alert__icon mr2"
974
974
  }, {
@@ -984,7 +984,7 @@ function Je(e, t, i, o, a, l) {
984
984
  key: 1,
985
985
  class: "w-alert__dismiss",
986
986
  onClick: t[0] || (t[0] = (d) => {
987
- e.$emit("update:modelValue", a.show = !1), e.$emit("input", !1), e.$emit("close", !1);
987
+ e.$emit("update:modelValue", n.show = !1), e.$emit("input", !1), e.$emit("close", !1);
988
988
  }),
989
989
  icon: "wi-cross",
990
990
  color: "inherit",
@@ -1078,8 +1078,8 @@ const Qe = {
1078
1078
  }
1079
1079
  }
1080
1080
  }, Ze = /* @__PURE__ */ v(Qe, [["render", Je]]), et = { class: "w-autocomplete__selection" }, tt = ["innerHTML"], it = ["innerHTML"], lt = ["value"], st = ["onClick"], ot = ["innerHTML"], at = ["innerHTML"];
1081
- function nt(e, t, i, o, a, l) {
1082
- const n = $("w-button"), r = $("w-transition-slide-fade");
1081
+ function nt(e, t, i, o, n, l) {
1082
+ const a = $("w-button"), r = $("w-transition-slide-fade");
1083
1083
  return s(), u("div", {
1084
1084
  class: f(["w-autocomplete", l.classes]),
1085
1085
  onClick: t[5] || (t[5] = (...d) => l.onClick && l.onClick(...d))
@@ -1092,7 +1092,7 @@ function nt(e, t, i, o, a, l) {
1092
1092
  y("span", {
1093
1093
  innerHTML: d[i.itemLabelKey]
1094
1094
  }, null, 8, tt),
1095
- V(n, {
1095
+ V(a, {
1096
1096
  onClick: z((k) => l.unselectItem(h), ["stop"]),
1097
1097
  icon: "wi-cross",
1098
1098
  xs: "",
@@ -1293,13 +1293,13 @@ const rt = {
1293
1293
  e.preventDefault();
1294
1294
  let o = this.highlightedItemIndex;
1295
1295
  o === -1 ? o = e.keyCode === 38 ? t - 1 : 0 : o = (o + (e.keyCode === 38 ? -1 : 1) + t) % t, this.$slots["extra-item"] && o === t - 1 ? this.highlightedItem = "extra-item" : this.highlightedItem = ((i = this.filteredItems[o]) == null ? void 0 : i.uid) || 0;
1296
- const a = this.$refs.menu;
1297
- if (a)
1296
+ const n = this.$refs.menu;
1297
+ if (n)
1298
1298
  if (this.$slots["extra-item"] && o === t - 1)
1299
- a.scrollTop = a.scrollHeight;
1299
+ n.scrollTop = n.scrollHeight;
1300
1300
  else {
1301
- const { offsetHeight: l, offsetTop: n } = a.childNodes[o] || {};
1302
- a.scrollTop + a.offsetHeight - l < n ? a.scrollTop = n - a.offsetHeight + l : a.scrollTop > n && (a.scrollTop = n);
1301
+ const { offsetHeight: l, offsetTop: a } = n.childNodes[o] || {};
1302
+ n.scrollTop + n.offsetHeight - l < a ? n.scrollTop = a - n.offsetHeight + l : n.scrollTop > a && (n.scrollTop = a);
1303
1303
  }
1304
1304
  } else
1305
1305
  !this.multiple && this.selection.length && e.key.length === 1 && e.preventDefault();
@@ -1341,7 +1341,7 @@ const rt = {
1341
1341
  }
1342
1342
  }
1343
1343
  }, dt = /* @__PURE__ */ v(rt, [["render", nt]]), ut = { class: "w-app" };
1344
- function ht(e, t, i, o, a, l) {
1344
+ function ht(e, t, i, o, n, l) {
1345
1345
  return s(), u("div", ut, [
1346
1346
  p(e.$slots, "default")
1347
1347
  ]);
@@ -1363,7 +1363,7 @@ const ct = {
1363
1363
  textRight: { type: Boolean }
1364
1364
  }
1365
1365
  }, pt = /* @__PURE__ */ v(ct, [["render", ht]]);
1366
- function ft(e, t, i, o, a, l) {
1366
+ function ft(e, t, i, o, n, l) {
1367
1367
  return s(), u("div", S({ class: "w-badge-wrap" }, M(e.$attrs, !0)), [
1368
1368
  p(e.$slots, "default"),
1369
1369
  V(O, {
@@ -1452,8 +1452,8 @@ const mt = {
1452
1452
  }
1453
1453
  }
1454
1454
  }, gt = /* @__PURE__ */ v(mt, [["render", ft]]), bt = ["innerHTML"];
1455
- function yt(e, t, i, o, a, l) {
1456
- const n = $("w-icon");
1455
+ function yt(e, t, i, o, n, l) {
1456
+ const a = $("w-icon");
1457
1457
  return s(), u("div", {
1458
1458
  class: f(["w-breadcrumbs", l.classes])
1459
1459
  }, [
@@ -1463,7 +1463,7 @@ function yt(e, t, i, o, a, l) {
1463
1463
  key: `${d}a`
1464
1464
  }, [
1465
1465
  p(e.$slots, "separator", { index: d })
1466
- ], 2)) : d ? (s(), b(n, {
1466
+ ], 2)) : d ? (s(), b(a, {
1467
1467
  class: f(["w-breadcrumbs__separator", i.separatorColor]),
1468
1468
  key: `${d}b`
1469
1469
  }, {
@@ -1551,8 +1551,8 @@ const wt = {
1551
1551
  "stroke-linecap": "round"
1552
1552
  })
1553
1553
  ], -1);
1554
- function St(e, t, i, o, a, l) {
1555
- const n = $("w-icon");
1554
+ function St(e, t, i, o, n, l) {
1555
+ const a = $("w-icon");
1556
1556
  return s(), b(I(i.route ? "a" : "button"), S({
1557
1557
  class: ["w-button", l.classes],
1558
1558
  type: !i.route && i.type,
@@ -1560,7 +1560,7 @@ function St(e, t, i, o, a, l) {
1560
1560
  disabled: !!i.disabled || null
1561
1561
  }, M(l.listeners), { style: l.styles }), {
1562
1562
  default: m(() => [
1563
- i.icon ? (s(), b(n, ie(S({ key: 0 }, i.iconProps || {})), {
1563
+ i.icon ? (s(), b(a, ie(S({ key: 0 }, i.iconProps || {})), {
1564
1564
  default: m(() => [
1565
1565
  B(C(i.icon), 1)
1566
1566
  ]),
@@ -1678,11 +1678,11 @@ const Bt = {
1678
1678
  }
1679
1679
  }
1680
1680
  }, _t = /* @__PURE__ */ v(Bt, [["render", St]]), $t = ["innerHTML"];
1681
- function Vt(e, t, i, o, a, l) {
1682
- const n = $("button-partial");
1681
+ function Vt(e, t, i, o, n, l) {
1682
+ const a = $("button-partial");
1683
1683
  return i.tooltip ? (s(), b(I("w-tooltip"), ie(S({ key: 0 }, i.tooltipProps || {})), {
1684
1684
  activator: m(({ on: r }) => [
1685
- V(n, S(l.buttonProps, M(r)), {
1685
+ V(a, S(l.buttonProps, M(r)), {
1686
1686
  default: m(() => [
1687
1687
  p(e.$slots, "default")
1688
1688
  ]),
@@ -1693,7 +1693,7 @@ function Vt(e, t, i, o, a, l) {
1693
1693
  y("div", { innerHTML: i.tooltip }, null, 8, $t)
1694
1694
  ]),
1695
1695
  _: 3
1696
- }, 16)) : (s(), b(n, ie(S({ key: 1 }, l.buttonProps)), {
1696
+ }, 16)) : (s(), b(a, ie(S({ key: 1 }, l.buttonProps)), {
1697
1697
  loading: m(() => [
1698
1698
  p(e.$slots, "loading")
1699
1699
  ]),
@@ -1754,9 +1754,9 @@ const It = {
1754
1754
  return { ...i, ...this.$attrs };
1755
1755
  }
1756
1756
  }
1757
- }, Tt = /* @__PURE__ */ v(It, [["render", Vt]]), A = (e = {}) => (typeof e == "string" ? e = { [e]: !0 } : Array.isArray(e) && (e = { [e.join(" ")]: !0 }), e), Lt = ["innerHTML"];
1758
- function Rt(e, t, i, o, a, l) {
1759
- const n = $("w-image");
1757
+ }, Tt = /* @__PURE__ */ v(It, [["render", Vt]]), K = (e = {}) => (typeof e == "string" ? e = { [e]: !0 } : Array.isArray(e) && (e = { [e.join(" ")]: !0 }), e), Lt = ["innerHTML"];
1758
+ function Rt(e, t, i, o, n, l) {
1759
+ const a = $("w-image");
1760
1760
  return s(), u("div", {
1761
1761
  class: f(["w-card", l.classes])
1762
1762
  }, [
@@ -1770,7 +1770,7 @@ function Rt(e, t, i, o, a, l) {
1770
1770
  class: f(["w-card__title", { "w-card__title--has-toolbar": e.$slots.title && l.titleHasToolbar, ...l.titleClasses }]),
1771
1771
  innerHTML: i.title
1772
1772
  }, null, 10, Lt)) : c("", !0),
1773
- i.image ? (s(), b(n, S({
1773
+ i.image ? (s(), b(a, S({
1774
1774
  key: 2,
1775
1775
  class: "w-card__image",
1776
1776
  src: i.image
@@ -1812,10 +1812,10 @@ const Pt = {
1812
1812
  emits: [],
1813
1813
  computed: {
1814
1814
  titleClasses() {
1815
- return A(this.titleClass);
1815
+ return K(this.titleClass);
1816
1816
  },
1817
1817
  contentClasses() {
1818
- return A(this.contentClass);
1818
+ return K(this.contentClass);
1819
1819
  },
1820
1820
  titleHasToolbar() {
1821
1821
  const { title: e } = this.$slots;
@@ -1895,13 +1895,13 @@ const Pt = {
1895
1895
  /* @__PURE__ */ y("polyline", { points: "1 5 4 8 10 2" })
1896
1896
  ], -1), Wt = [
1897
1897
  Et
1898
- ], At = ["for"], Kt = ["for", "innerHTML"];
1899
- function Nt(e, t, i, o, a, l) {
1900
- return s(), b(I(e.formRegister && !l.wCheckboxes ? "w-form-element" : "div"), S({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: a.isChecked, disabled: e.isDisabled, readonly: e.isReadonly }, {
1898
+ ], Kt = ["for"], At = ["for", "innerHTML"];
1899
+ function Nt(e, t, i, o, n, l) {
1900
+ return s(), b(I(e.formRegister && !l.wCheckboxes ? "w-form-element" : "div"), S({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: n.isChecked, disabled: e.isDisabled, readonly: e.isReadonly }, {
1901
1901
  valid: e.valid,
1902
- "onUpdate:valid": t[5] || (t[5] = (n) => e.valid = n),
1903
- onReset: t[6] || (t[6] = (n) => {
1904
- e.$emit("update:modelValue", a.isChecked = null), e.$emit("input", null);
1902
+ "onUpdate:valid": t[5] || (t[5] = (a) => e.valid = a),
1903
+ onReset: t[6] || (t[6] = (a) => {
1904
+ e.$emit("update:modelValue", n.isChecked = null), e.$emit("input", null);
1905
1905
  }),
1906
1906
  class: l.classes
1907
1907
  }), {
@@ -1911,15 +1911,15 @@ function Nt(e, t, i, o, a, l) {
1911
1911
  id: `w-checkbox--${e._.uid}`,
1912
1912
  type: "checkbox",
1913
1913
  name: e.inputName,
1914
- checked: a.isChecked || null,
1914
+ checked: n.isChecked || null,
1915
1915
  disabled: e.isDisabled || e.isReadonly || null,
1916
1916
  required: e.required || null,
1917
1917
  tabindex: e.tabindex || null,
1918
- onFocus: t[0] || (t[0] = (n) => e.$emit("focus", n)),
1919
- onBlur: t[1] || (t[1] = (n) => e.$emit("blur", n)),
1920
- onChange: t[2] || (t[2] = (n) => l.onInput()),
1921
- onKeypress: t[3] || (t[3] = W((...n) => l.onInput && l.onInput(...n), ["enter"])),
1922
- "aria-checked": a.isChecked || "false",
1918
+ onFocus: t[0] || (t[0] = (a) => e.$emit("focus", a)),
1919
+ onBlur: t[1] || (t[1] = (a) => e.$emit("blur", a)),
1920
+ onChange: t[2] || (t[2] = (a) => l.onInput()),
1921
+ onKeypress: t[3] || (t[3] = W((...a) => l.onInput && l.onInput(...a), ["enter"])),
1922
+ "aria-checked": n.isChecked || "false",
1923
1923
  role: "checkbox"
1924
1924
  }, null, 40, xt),
1925
1925
  l.hasLabel && i.labelOnLeft ? (s(), u(w, { key: 0 }, [
@@ -1940,7 +1940,7 @@ function Nt(e, t, i, o, a, l) {
1940
1940
  ], 64)) : c("", !0),
1941
1941
  y("div", {
1942
1942
  class: f(["w-checkbox__input", this.color]),
1943
- onClick: t[4] || (t[4] = (n) => {
1943
+ onClick: t[4] || (t[4] = (a) => {
1944
1944
  e.$refs.input.focus(), e.$refs.input.click();
1945
1945
  })
1946
1946
  }, Wt, 2),
@@ -1953,12 +1953,12 @@ function Nt(e, t, i, o, a, l) {
1953
1953
  p(e.$slots, "default", {}, () => [
1954
1954
  B(C(i.label), 1)
1955
1955
  ])
1956
- ], 10, At)) : i.label ? (s(), u("label", {
1956
+ ], 10, Kt)) : i.label ? (s(), u("label", {
1957
1957
  key: 1,
1958
1958
  class: f(["w-checkbox__label w-form-el-shakable pl2", e.labelClasses]),
1959
1959
  for: `w-checkbox--${e._.uid}`,
1960
1960
  innerHTML: i.label
1961
- }, null, 10, Kt)) : c("", !0)
1961
+ }, null, 10, At)) : c("", !0)
1962
1962
  ], 64)) : c("", !0)
1963
1963
  ]),
1964
1964
  _: 3
@@ -2032,8 +2032,8 @@ const Dt = {
2032
2032
  }
2033
2033
  }
2034
2034
  }, Ht = /* @__PURE__ */ v(Dt, [["render", Nt]]), Ft = ["innerHTML"];
2035
- function jt(e, t, i, o, a, l) {
2036
- const n = $("w-checkbox");
2035
+ function jt(e, t, i, o, n, l) {
2036
+ const a = $("w-checkbox");
2037
2037
  return s(), b(I(e.formRegister ? "w-form-element" : "div"), S({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: l.checkboxItems.some((r) => r._isChecked), disabled: e.isDisabled }, {
2038
2038
  valid: e.valid,
2039
2039
  "onUpdate:valid": t[1] || (t[1] = (r) => e.valid = r),
@@ -2043,7 +2043,7 @@ function jt(e, t, i, o, a, l) {
2043
2043
  class: l.classes
2044
2044
  }), {
2045
2045
  default: m(() => [
2046
- (s(!0), u(w, null, L(l.checkboxItems, (r, d) => (s(), b(n, S({
2046
+ (s(!0), u(w, null, L(l.checkboxItems, (r, d) => (s(), b(a, S({
2047
2047
  key: d,
2048
2048
  "model-value": r._isChecked,
2049
2049
  "onUpdate:modelValue": (h) => l.toggleCheck(r, h),
@@ -2136,14 +2136,14 @@ const Ut = {
2136
2136
  }
2137
2137
  }
2138
2138
  }, qt = /* @__PURE__ */ v(Ut, [["render", jt]]);
2139
- function Xt(e, t, i, o, a, l) {
2140
- const n = $("w-button"), r = $("w-flex"), d = $("w-menu"), h = ge("focus");
2139
+ function Xt(e, t, i, o, n, l) {
2140
+ const a = $("w-button"), r = $("w-flex"), d = $("w-menu"), h = ge("focus");
2141
2141
  return s(), b(d, S({
2142
2142
  modelValue: e.showPopup,
2143
2143
  "onUpdate:modelValue": t[2] || (t[2] = (k) => e.showPopup = k)
2144
2144
  }, l.wMenuProps), {
2145
2145
  activator: m(({ on: k }) => [
2146
- V(n, S({ class: "w-confirm" }, { ...e.$attrs, ...l.buttonProps, ...i.disablePrompt ? {} : k }), {
2146
+ V(a, S({ class: "w-confirm" }, { ...e.$attrs, ...l.buttonProps, ...i.disablePrompt ? {} : k }), {
2147
2147
  default: m(() => [
2148
2148
  p(e.$slots, "default")
2149
2149
  ]),
@@ -2164,7 +2164,7 @@ function Xt(e, t, i, o, a, l) {
2164
2164
  y("div", {
2165
2165
  class: f(["w-flex justify-end", i.inline ? "ml2" : "mt2"])
2166
2166
  }, [
2167
- i.cancel !== !1 ? (s(), b(n, S({
2167
+ i.cancel !== !1 ? (s(), b(a, S({
2168
2168
  key: 0,
2169
2169
  class: "mr2"
2170
2170
  }, l.cancelButtonProps, {
@@ -2179,7 +2179,7 @@ function Xt(e, t, i, o, a, l) {
2179
2179
  ]),
2180
2180
  _: 3
2181
2181
  }, 16, ["bg-color", "onClick"])) : c("", !0),
2182
- K((s(), b(n, S(l.confirmButtonProps, {
2182
+ A((s(), b(a, S(l.confirmButtonProps, {
2183
2183
  "bg-color": (l.confirmButton || {}).bgColor || "success",
2184
2184
  onKeyup: t[1] || (t[1] = W((k) => !i.persistent && l.onCancel(), ["escape"])),
2185
2185
  onClick: l.onConfirm
@@ -2315,7 +2315,7 @@ const Yt = {
2315
2315
  }
2316
2316
  }
2317
2317
  }, Gt = /* @__PURE__ */ v(Yt, [["render", Xt]]);
2318
- function Jt(e, t, i, o, a, l) {
2318
+ function Jt(e, t, i, o, n, l) {
2319
2319
  return s(), u("div", {
2320
2320
  class: f(["w-date-picker", l.classes]),
2321
2321
  style: R(l.styles)
@@ -2342,11 +2342,11 @@ const Qt = {
2342
2342
  }
2343
2343
  }
2344
2344
  }, Zt = /* @__PURE__ */ v(Qt, [["render", Jt]]);
2345
- function ei(e, t, i, o, a, l) {
2346
- const n = $("w-card"), r = $("w-overlay");
2345
+ function ei(e, t, i, o, n, l) {
2346
+ const a = $("w-card"), r = $("w-overlay");
2347
2347
  return s(), b(r, {
2348
2348
  class: f(["w-dialog", l.classes]),
2349
- "model-value": a.showWrapper,
2349
+ "model-value": n.showWrapper,
2350
2350
  persistent: i.persistent,
2351
2351
  "persistent-no-animation": i.persistentNoAnimation,
2352
2352
  onClick: l.onOutsideClick,
@@ -2361,7 +2361,7 @@ function ei(e, t, i, o, a, l) {
2361
2361
  onAfterLeave: l.onBeforeClose
2362
2362
  }, {
2363
2363
  default: m(() => [
2364
- K(V(n, {
2364
+ A(V(a, {
2365
2365
  class: f(["w-dialog__content", i.dialogClass]),
2366
2366
  ref: "dialog",
2367
2367
  "no-border": "",
@@ -2392,7 +2392,7 @@ function ei(e, t, i, o, a, l) {
2392
2392
  key: "1"
2393
2393
  } : void 0
2394
2394
  ]), 1032, ["color", "bg-color", "class", "title-class", "content-class", "title", "style"]), [
2395
- [ae, a.showContent]
2395
+ [ae, n.showContent]
2396
2396
  ])
2397
2397
  ]),
2398
2398
  _: 3
@@ -2472,7 +2472,7 @@ const ti = {
2472
2472
  }
2473
2473
  }
2474
2474
  }, ii = /* @__PURE__ */ v(ti, [["render", ei]]), li = ["role", "aria-orientation"];
2475
- function si(e, t, i, o, a, l) {
2475
+ function si(e, t, i, o, n, l) {
2476
2476
  return s(), u("div", {
2477
2477
  class: f(["w-divider", l.classes]),
2478
2478
  role: e.$slots.default ? null : "presentation",
@@ -2502,9 +2502,9 @@ const oi = {
2502
2502
  }
2503
2503
  }
2504
2504
  }, ai = /* @__PURE__ */ v(oi, [["render", si]]), ni = { class: "w-drawer-wrap__pushable" };
2505
- function ri(e, t, i, o, a, l) {
2506
- const n = $("w-overlay");
2507
- return a.showWrapper || i.pushContent ? (s(), u("div", {
2505
+ function ri(e, t, i, o, n, l) {
2506
+ const a = $("w-overlay");
2507
+ return n.showWrapper || i.pushContent ? (s(), u("div", {
2508
2508
  key: 0,
2509
2509
  class: f(["w-drawer-wrap", l.wrapperClasses])
2510
2510
  }, [
@@ -2514,10 +2514,10 @@ function ri(e, t, i, o, a, l) {
2514
2514
  style: R(l.trackStyles)
2515
2515
  }, [
2516
2516
  y("div", ni, [
2517
- i.noOverlay ? c("", !0) : (s(), b(n, {
2517
+ i.noOverlay ? c("", !0) : (s(), b(a, {
2518
2518
  key: 0,
2519
- modelValue: a.showDrawer,
2520
- "onUpdate:modelValue": t[0] || (t[0] = (r) => a.showDrawer = r),
2519
+ modelValue: n.showDrawer,
2520
+ "onUpdate:modelValue": t[0] || (t[0] = (r) => n.showDrawer = r),
2521
2521
  onClick: l.onOutsideClick,
2522
2522
  persistent: i.persistent,
2523
2523
  "persistent-no-animation": "",
@@ -2532,7 +2532,7 @@ function ri(e, t, i, o, a, l) {
2532
2532
  onAfterLeave: l.onClose
2533
2533
  }, {
2534
2534
  default: m(() => [
2535
- a.showDrawer ? (s(), b(I(i.tag || "aside"), {
2535
+ n.showDrawer ? (s(), b(I(i.tag || "aside"), {
2536
2536
  key: 0,
2537
2537
  class: f(["w-drawer", l.drawerClasses]),
2538
2538
  ref: "drawer",
@@ -2547,10 +2547,10 @@ function ri(e, t, i, o, a, l) {
2547
2547
  _: 3
2548
2548
  }, 8, ["onBeforeLeave", "onAfterLeave"])
2549
2549
  ], 4)) : (s(), u(w, { key: 1 }, [
2550
- i.noOverlay ? c("", !0) : (s(), b(n, {
2550
+ i.noOverlay ? c("", !0) : (s(), b(a, {
2551
2551
  key: 0,
2552
- modelValue: a.showDrawer,
2553
- "onUpdate:modelValue": t[1] || (t[1] = (r) => a.showDrawer = r),
2552
+ modelValue: n.showDrawer,
2553
+ "onUpdate:modelValue": t[1] || (t[1] = (r) => n.showDrawer = r),
2554
2554
  onClick: l.onOutsideClick,
2555
2555
  persistent: i.persistent,
2556
2556
  "persistent-no-animation": "",
@@ -2564,7 +2564,7 @@ function ri(e, t, i, o, a, l) {
2564
2564
  onAfterLeave: l.onClose
2565
2565
  }, {
2566
2566
  default: m(() => [
2567
- a.showDrawer ? (s(), b(I(i.tag || "aside"), {
2567
+ n.showDrawer ? (s(), b(I(i.tag || "aside"), {
2568
2568
  key: 0,
2569
2569
  class: f(["w-drawer", l.drawerClasses]),
2570
2570
  ref: "drawer",
@@ -2695,7 +2695,7 @@ const di = { left: "right", right: "left", top: "down", bottom: "up" }, ui = {
2695
2695
  }
2696
2696
  }
2697
2697
  }, hi = /* @__PURE__ */ v(ui, [["render", ri]]);
2698
- function ci(e, t, i, o, a, l) {
2698
+ function ci(e, t, i, o, n, l) {
2699
2699
  return s(), b(I(i.tag), {
2700
2700
  class: f(["w-flex", l.classes])
2701
2701
  }, {
@@ -2753,11 +2753,11 @@ const pi = {
2753
2753
  }
2754
2754
  }
2755
2755
  }, fi = /* @__PURE__ */ v(pi, [["render", ci]]);
2756
- function mi(e, t, i, o, a, l) {
2756
+ function mi(e, t, i, o, n, l) {
2757
2757
  return s(), u("form", {
2758
2758
  class: f(["w-form", l.classes]),
2759
- onSubmit: t[0] || (t[0] = (...n) => l.onSubmit && l.onSubmit(...n)),
2760
- onReset: t[1] || (t[1] = (...n) => l.reset && l.reset(...n)),
2759
+ onSubmit: t[0] || (t[0] = (...a) => l.onSubmit && l.onSubmit(...a)),
2760
+ onReset: t[1] || (t[1] = (...a) => l.reset && l.reset(...a)),
2761
2761
  novalidate: ""
2762
2762
  }, [
2763
2763
  p(e.$slots, "default")
@@ -2849,8 +2849,8 @@ const gi = async (e, t) => {
2849
2849
  async checkElementValidators(e) {
2850
2850
  let t = !1, i = "";
2851
2851
  await gi(e.validators, async (o) => {
2852
- const a = await (typeof o == "function" && o(e.inputValue));
2853
- return t = typeof a != "string", i = t ? "" : a, !t;
2852
+ const n = await (typeof o == "function" && o(e.inputValue));
2853
+ return t = typeof n != "string", i = t ? "" : n, !t;
2854
2854
  }), e.hasJustReset = !1, e.Validation.isValid = t, e.Validation.message = i;
2855
2855
  },
2856
2856
  // Reset is called from:
@@ -2875,8 +2875,8 @@ const gi = async (e, t) => {
2875
2875
  }
2876
2876
  }
2877
2877
  }, yi = /* @__PURE__ */ v(bi, [["render", mi]]);
2878
- function wi(e, t, i, o, a, l) {
2879
- const n = $("w-transition-expand");
2878
+ function wi(e, t, i, o, n, l) {
2879
+ const a = $("w-transition-expand");
2880
2880
  return s(), u("div", {
2881
2881
  class: f(l.classes)
2882
2882
  }, [
@@ -2885,7 +2885,7 @@ function wi(e, t, i, o, a, l) {
2885
2885
  }, [
2886
2886
  p(e.$slots, "default")
2887
2887
  ], 2),
2888
- V(n, { y: "" }, {
2888
+ V(a, { y: "" }, {
2889
2889
  default: m(() => [
2890
2890
  e.Validation.message ? (s(), u("div", {
2891
2891
  key: 0,
@@ -2977,7 +2977,7 @@ const ki = {
2977
2977
  this.formUnregister && this.formUnregister(this);
2978
2978
  }
2979
2979
  }, vi = /* @__PURE__ */ v(ki, [["render", wi]]);
2980
- function Ci(e, t, i, o, a, l) {
2980
+ function Ci(e, t, i, o, n, l) {
2981
2981
  return s(), b(I(i.tag), {
2982
2982
  class: f(["w-grid", l.classes])
2983
2983
  }, {
@@ -3023,16 +3023,16 @@ const Si = {
3023
3023
  },
3024
3024
  classes() {
3025
3025
  let e = null;
3026
- typeof this.columns == "object" && (e = Object.entries(this.breakpointsColumns).reduce((i, [o, a]) => (i[`${o}-columns${a}`] = !0, i), {}));
3026
+ typeof this.columns == "object" && (e = Object.entries(this.breakpointsColumns).reduce((i, [o, n]) => (i[`${o}-columns${n}`] = !0, i), {}));
3027
3027
  let t = null;
3028
- return typeof this.gap == "object" && (t = Object.entries(this.breakpointsGap).reduce((i, [o, a]) => (i[`${o}-gap${a}`] = !0, i), {})), {
3028
+ return typeof this.gap == "object" && (t = Object.entries(this.breakpointsGap).reduce((i, [o, n]) => (i[`${o}-gap${n}`] = !0, i), {})), {
3029
3029
  ...e || { [`columns${this.columns}`]: this.columns },
3030
3030
  ...t || { [`gap${this.gap}`]: this.gap }
3031
3031
  };
3032
3032
  }
3033
3033
  }
3034
3034
  }, Bi = /* @__PURE__ */ v(Si, [["render", Ci]]);
3035
- function _i(e, t, i, o, a, l) {
3035
+ function _i(e, t, i, o, n, l) {
3036
3036
  return s(), b(I(i.tag || "i"), S({ class: "w-icon" }, M(e.$attrs), {
3037
3037
  class: l.classes,
3038
3038
  role: "icon",
@@ -3120,8 +3120,8 @@ const $i = {
3120
3120
  key: 0,
3121
3121
  class: "w-image__loader"
3122
3122
  };
3123
- function Ti(e, t, i, o, a, l) {
3124
- const n = $("w-progress");
3123
+ function Ti(e, t, i, o, n, l) {
3124
+ const a = $("w-progress");
3125
3125
  return s(), b(I(l.wrapperTag), {
3126
3126
  class: f(["w-image-wrap", l.wrapperClasses]),
3127
3127
  style: R(l.wrapperStyles)
@@ -3132,17 +3132,17 @@ function Ti(e, t, i, o, a, l) {
3132
3132
  appear: ""
3133
3133
  }, {
3134
3134
  default: m(() => [
3135
- a.loaded ? (s(), b(I(i.tag), {
3135
+ n.loaded ? (s(), b(I(i.tag), {
3136
3136
  key: 0,
3137
3137
  class: f(["w-image", l.imageClasses]),
3138
3138
  style: R(l.imageStyles),
3139
- src: i.tag === "img" ? a.imgSrc : null
3139
+ src: i.tag === "img" ? n.imgSrc : null
3140
3140
  }, null, 8, ["class", "style", "src"])) : c("", !0)
3141
3141
  ]),
3142
3142
  _: 1
3143
3143
  }, 8, ["name"]),
3144
- !i.noSpinner && a.loading ? (s(), u("div", Ii, [
3145
- e.$slots.loading ? p(e.$slots, "loading", { key: 0 }) : (s(), b(n, S({
3144
+ !i.noSpinner && n.loading ? (s(), u("div", Ii, [
3145
+ e.$slots.loading ? p(e.$slots, "loading", { key: 0 }) : (s(), b(a, S({
3146
3146
  key: 1,
3147
3147
  circle: "",
3148
3148
  indeterminate: ""
@@ -3260,26 +3260,26 @@ const Li = {
3260
3260
  }, Ri = /* @__PURE__ */ v(Li, [["render", Ti]]), Pi = ["name"], Oi = ["for"], xi = ["id", "type", "name", "placeholder", "step", "min", "max", "minlength", "maxlength", "readonly", "aria-readonly", "disabled", "required", "tabindex"], zi = ["id", "name", "multiple", "disabled", "data-progress"], Mi = {
3261
3261
  class: "w-input__no-file",
3262
3262
  key: "no-file"
3263
- }, Ei = ["for"], Wi = ["src"], Ai = ["for"];
3264
- function Ki(e, t, i, o, a, l) {
3265
- const n = $("w-icon"), r = $("w-progress");
3266
- return s(), b(I(e.formRegister ? "w-form-element" : "div"), S({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: a.inputValue, disabled: e.isDisabled, readonly: e.isReadonly, isFocused: a.isFocused }, {
3263
+ }, Ei = ["for"], Wi = ["src"], Ki = ["for"];
3264
+ function Ai(e, t, i, o, n, l) {
3265
+ const a = $("w-icon"), r = $("w-progress");
3266
+ return s(), b(I(e.formRegister ? "w-form-element" : "div"), S({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: n.inputValue, disabled: e.isDisabled, readonly: e.isReadonly, isFocused: n.isFocused }, {
3267
3267
  valid: e.valid,
3268
3268
  "onUpdate:valid": t[10] || (t[10] = (d) => e.valid = d),
3269
3269
  onReset: t[11] || (t[11] = (d) => {
3270
- e.$emit("update:modelValue", a.inputValue = ""), e.$emit("input", "");
3270
+ e.$emit("update:modelValue", n.inputValue = ""), e.$emit("input", "");
3271
3271
  }),
3272
3272
  wrap: l.hasLabel && i.labelPosition !== "inside",
3273
3273
  class: l.classes
3274
3274
  }), {
3275
3275
  default: m(() => [
3276
- i.type === "hidden" ? K((s(), u("input", {
3276
+ i.type === "hidden" ? A((s(), u("input", {
3277
3277
  key: 0,
3278
3278
  type: "hidden",
3279
3279
  name: e.name || null,
3280
- "onUpdate:modelValue": t[0] || (t[0] = (d) => a.inputValue = d)
3280
+ "onUpdate:modelValue": t[0] || (t[0] = (d) => n.inputValue = d)
3281
3281
  }, null, 8, Pi)), [
3282
- [be, a.inputValue]
3282
+ [be, n.inputValue]
3283
3283
  ]) : (s(), u(w, { key: 1 }, [
3284
3284
  i.labelPosition === "left" ? (s(), u(w, { key: 0 }, [
3285
3285
  e.$slots.default || i.label ? (s(), u("label", {
@@ -3298,7 +3298,7 @@ function Ki(e, t, i, o, a, l) {
3298
3298
  p(e.$slots, "icon-left", {
3299
3299
  inputId: `w-input--${e._.uid}`
3300
3300
  }, () => [
3301
- i.innerIconLeft ? (s(), b(n, {
3301
+ i.innerIconLeft ? (s(), b(a, {
3302
3302
  key: 0,
3303
3303
  class: "w-input__icon w-input__icon--inner-left",
3304
3304
  tag: "label",
@@ -3311,11 +3311,11 @@ function Ki(e, t, i, o, a, l) {
3311
3311
  _: 1
3312
3312
  }, 8, ["for"])) : c("", !0)
3313
3313
  ]),
3314
- i.type !== "file" ? K((s(), u("input", S({
3314
+ i.type !== "file" ? A((s(), u("input", S({
3315
3315
  key: 0,
3316
3316
  class: "w-input__input",
3317
3317
  ref: "input",
3318
- "onUpdate:modelValue": t[2] || (t[2] = (d) => a.inputValue = d)
3318
+ "onUpdate:modelValue": t[2] || (t[2] = (d) => n.inputValue = d)
3319
3319
  }, M(l.listeners, !0), {
3320
3320
  onInput: t[3] || (t[3] = (...d) => l.onInput && l.onInput(...d)),
3321
3321
  onFocus: t[4] || (t[4] = (...d) => l.onFocus && l.onFocus(...d)),
@@ -3335,7 +3335,7 @@ function Ki(e, t, i, o, a, l) {
3335
3335
  required: e.required || null,
3336
3336
  tabindex: e.tabindex || null
3337
3337
  }, l.attrs), null, 16, xi)), [
3338
- [$e, a.inputValue]
3338
+ [$e, n.inputValue]
3339
3339
  ]) : (s(), u(w, { key: 1 }, [
3340
3340
  y("input", S({
3341
3341
  ref: "input",
@@ -3358,14 +3358,14 @@ function Ki(e, t, i, o, a, l) {
3358
3358
  for: `w-input--${e._.uid}`
3359
3359
  }, {
3360
3360
  default: m(() => [
3361
- !a.inputFiles.length && a.isFocused ? (s(), u("span", Mi, [
3361
+ !n.inputFiles.length && n.isFocused ? (s(), u("span", Mi, [
3362
3362
  p(e.$slots, "no-file", {}, () => [
3363
3363
  e.$slots["no-file"] === void 0 ? (s(), u(w, { key: 0 }, [
3364
3364
  B("No file")
3365
3365
  ], 64)) : c("", !0)
3366
3366
  ])
3367
3367
  ])) : c("", !0),
3368
- (s(!0), u(w, null, L(a.inputFiles, (d, h) => (s(), u("span", {
3368
+ (s(!0), u(w, null, L(n.inputFiles, (d, h) => (s(), u("span", {
3369
3369
  key: d.lastModified
3370
3370
  }, [
3371
3371
  B(C(h ? ", " : ""), 1),
@@ -3392,7 +3392,7 @@ function Ki(e, t, i, o, a, l) {
3392
3392
  p(e.$slots, "icon-right", {
3393
3393
  inputId: `w-input--${e._.uid}`
3394
3394
  }, () => [
3395
- i.innerIconRight ? (s(), b(n, {
3395
+ i.innerIconRight ? (s(), b(a, {
3396
3396
  key: 0,
3397
3397
  class: "w-input__icon w-input__icon--inner-right",
3398
3398
  tag: "label",
@@ -3413,12 +3413,12 @@ function Ki(e, t, i, o, a, l) {
3413
3413
  "model-value": i.showProgress ? (l.uploadInProgress || l.uploadComplete) && l.overallFilesProgress : l.loadingValue
3414
3414
  }, null, 8, ["color", "model-value"])) : c("", !0)
3415
3415
  ], 2),
3416
- i.type === "file" && i.preview && a.inputFiles.length ? (s(), u("label", {
3416
+ i.type === "file" && i.preview && n.inputFiles.length ? (s(), u("label", {
3417
3417
  key: 1,
3418
3418
  class: "d-flex",
3419
3419
  for: `w-input--${e._.uid}`
3420
3420
  }, [
3421
- (s(!0), u(w, null, L(a.inputFiles, (d, h) => (s(), u(w, null, [
3421
+ (s(!0), u(w, null, L(n.inputFiles, (d, h) => (s(), u(w, null, [
3422
3422
  d.progress < 100 ? (s(), u("i", {
3423
3423
  class: "w-icon wi-spinner w-icon--spin size--sm w-input__file-preview primary",
3424
3424
  key: `${h}a`
@@ -3442,7 +3442,7 @@ function Ki(e, t, i, o, a, l) {
3442
3442
  p(e.$slots, "default", {}, () => [
3443
3443
  B(C(i.label), 1)
3444
3444
  ])
3445
- ], 10, Ai)) : c("", !0)
3445
+ ], 10, Ki)) : c("", !0)
3446
3446
  ], 64)) : c("", !0)
3447
3447
  ], 64))
3448
3448
  ]),
@@ -3598,10 +3598,10 @@ const Ni = {
3598
3598
  // For file input.
3599
3599
  onFileChange(e) {
3600
3600
  this.inputFiles = [...e.target.files].map((i) => {
3601
- const [, o = "", a = "", l = ""] = i.name.match(/^(.*?)\.([^.]*)$|(.*)/), n = J({
3601
+ const [, o = "", n = "", l = ""] = i.name.match(/^(.*?)\.([^.]*)$|(.*)/), a = J({
3602
3602
  name: i.name,
3603
3603
  base: o || l,
3604
- extension: a,
3604
+ extension: n,
3605
3605
  type: i.type,
3606
3606
  size: i.size,
3607
3607
  lastModified: i.lastModified,
@@ -3609,15 +3609,15 @@ const Ni = {
3609
3609
  progress: 0,
3610
3610
  file: i
3611
3611
  });
3612
- return this.readFile(i, n), n;
3612
+ return this.readFile(i, a), a;
3613
3613
  });
3614
3614
  const t = this.multiple ? this.inputFiles : this.inputFiles[0];
3615
3615
  this.$emit("update:modelValue", t), this.$emit("input", t);
3616
3616
  },
3617
3617
  // For file input.
3618
3618
  readFile(e, t) {
3619
- const i = new FileReader(), o = typeof this.preview == "string", a = e.type && e.type.startsWith("image/");
3620
- this.preview && !o && a ? i.addEventListener("load", (l) => {
3619
+ const i = new FileReader(), o = typeof this.preview == "string", n = e.type && e.type.startsWith("image/");
3620
+ this.preview && !o && n ? i.addEventListener("load", (l) => {
3621
3621
  t.preview = l.target.result;
3622
3622
  }) : delete t.preview, i.addEventListener("progress", (l) => {
3623
3623
  l.loaded && l.total && (t.progress = l.loaded * 100 / l.total);
@@ -3634,9 +3634,9 @@ const Ni = {
3634
3634
  this.inputValue = e, !e && e !== 0 && (this.isAutofilled = !1, this.inputFiles = []);
3635
3635
  }
3636
3636
  }
3637
- }, Di = /* @__PURE__ */ v(Ni, [["render", Ki]]);
3638
- function Hi(e, t, i, o, a, l) {
3639
- const n = $("w-icon"), r = $("w-list", !0);
3637
+ }, Di = /* @__PURE__ */ v(Ni, [["render", Ai]]);
3638
+ function Hi(e, t, i, o, n, l) {
3639
+ const a = $("w-icon"), r = $("w-list", !0);
3640
3640
  return s(), u("ul", {
3641
3641
  class: f(["w-list", l.classes])
3642
3642
  }, [
@@ -3644,7 +3644,7 @@ function Hi(e, t, i, o, a, l) {
3644
3644
  class: f(["w-list__item", { "w-list__item--parent": (d.children || []).length }]),
3645
3645
  key: h
3646
3646
  }, [
3647
- i.icon ? (s(), b(n, {
3647
+ i.icon ? (s(), b(a, {
3648
3648
  key: 0,
3649
3649
  class: "w-list__item-bullet"
3650
3650
  }, {
@@ -3823,14 +3823,14 @@ const Fi = {
3823
3823
  };
3824
3824
  },
3825
3825
  liLabelProps(e, t, i) {
3826
- const o = this.$slots[`item.${t + 1}`] || this.$slots.item, a = () => {
3826
+ const o = this.$slots[`item.${t + 1}`] || this.$slots.item, n = () => {
3827
3827
  if (!e.disabled) {
3828
3828
  const d = this.cleanLi(e);
3829
3829
  this.$emit("item-click", d), this.$emit("item-select", d);
3830
3830
  }
3831
3831
  }, l = this.isSelectable && ((d) => {
3832
3832
  d.stopPropagation(), !e.disabled && this.selectItem(e);
3833
- }), n = this.isSelectable && ((d) => {
3833
+ }), a = this.isSelectable && ((d) => {
3834
3834
  !e.disabled && d.keyCode === 13 ? (this.selectItem(e), this.$emit("keydown:enter"), this.$emit("item-select", this.cleanLi(e))) : d.keyCode === 27 ? this.$emit("keydown:escape") : this.arrowsNavigation && [38, 40].includes(d.keyCode) && (d.preventDefault(), d.keyCode === 38 && this.focusPrevNextItem(e._index, !1), d.keyCode === 40 && this.focusPrevNextItem(e._index, !0));
3835
3835
  }), r = {
3836
3836
  class: this.liLabelClasses(e),
@@ -3841,10 +3841,10 @@ const Fi = {
3841
3841
  };
3842
3842
  return this.checklist ? (r.modelValue = e._selected, r.color = e[this.itemColorKey] || this.color, r.round = this.roundCheckboxes, r.disabled = e.disabled, o || (r.label = e._label || null), r.onFocus = () => e._focused = !0, r.onBlur = () => e._focused = !1, r.onInput = (d) => this.selectItem(e, d), r.onClick = (d) => {
3843
3843
  const h = d.target.querySelector('input[type="checkbox"]');
3844
- h && (h.focus(), h.click()), a();
3845
- }) : this.nav ? (!e.disabled && e[this.itemRouteKey] && (r.onKeydown = n, r.onMousedown = l, this.$router ? (r.to = e[this.itemRouteKey], r.onClick = (d) => {
3846
- d.preventDefault(), this.$router.push(e[this.itemRouteKey]), a();
3847
- }) : (r.href = e[this.itemRouteKey], r.onClick = a)), o || (r.innerHTML = e._label)) : (this.isSelectable && (e.disabled || (r.tabindex = 0), r.onClick = a, r.onKeydown = n, r.onMousedown = l), o || (r.innerHTML = e._label)), r;
3844
+ h && (h.focus(), h.click()), n();
3845
+ }) : this.nav ? (!e.disabled && e[this.itemRouteKey] && (r.onKeydown = a, r.onMousedown = l, this.$router ? (r.to = e[this.itemRouteKey], r.onClick = (d) => {
3846
+ d.preventDefault(), this.$router.push(e[this.itemRouteKey]), n();
3847
+ }) : (r.href = e[this.itemRouteKey], r.onClick = n)), o || (r.innerHTML = e._label)) : (this.isSelectable && (e.disabled || (r.tabindex = 0), r.onClick = n, r.onKeydown = a, r.onMousedown = l), o || (r.innerHTML = e._label)), r;
3848
3848
  },
3849
3849
  // Convert the received items selection to array if it is a unique value.
3850
3850
  // Also accept objects if returnObject is true and convert to the object's value.
@@ -3858,7 +3858,7 @@ const Fi = {
3858
3858
  const e = this.selectedItems.map((i) => {
3859
3859
  if (!this.returnObject)
3860
3860
  return i._value;
3861
- const { _value: o, _selected: a, ...l } = i;
3861
+ const { _value: o, _selected: n, ...l } = i;
3862
3862
  return l;
3863
3863
  }), t = this.isMultipleSelect ? e : e[0] !== void 0 ? e[0] : null;
3864
3864
  this.$emit("update:modelValue", t), this.$emit("input", t);
@@ -3869,8 +3869,8 @@ const Fi = {
3869
3869
  e === void 0 && (e = this.enabledItemsIndexes[i]), this.$el.querySelector(`#${this.listId}_item-${e + 1}`).focus();
3870
3870
  },
3871
3871
  cleanLi(e) {
3872
- const { _index: t, _value: i, _label: o, _selected: a, _focused: l, ...n } = e;
3873
- return n;
3872
+ const { _index: t, _value: i, _label: o, _selected: n, _focused: l, ...a } = e;
3873
+ return a;
3874
3874
  },
3875
3875
  refreshListItems() {
3876
3876
  const e = typeof this.items == "number" ? Array(this.items).fill({}) : this.items || [];
@@ -3999,16 +3999,16 @@ const Fi = {
3999
3999
  // ! \ This function uses the DOM - NO SSR (only trigger from beforeMount and later).
4000
4000
  getActivatorCoordinates() {
4001
4001
  const { top: e, left: t, width: i, height: o } = this.activatorEl.getBoundingClientRect();
4002
- let a = { top: e, left: t, width: i, height: o };
4002
+ let n = { top: e, left: t, width: i, height: o };
4003
4003
  if (!this.fixed) {
4004
- const { top: l, left: n } = this.detachableParentEl.getBoundingClientRect(), r = window.getComputedStyle(this.detachableParentEl, null);
4005
- a = {
4006
- ...a,
4004
+ const { top: l, left: a } = this.detachableParentEl.getBoundingClientRect(), r = window.getComputedStyle(this.detachableParentEl, null);
4005
+ n = {
4006
+ ...n,
4007
4007
  top: e - l + this.detachableParentEl.scrollTop - parseInt(r.getPropertyValue("border-top-width")),
4008
- left: t - n + this.detachableParentEl.scrollLeft - parseInt(r.getPropertyValue("border-left-width"))
4008
+ left: t - a + this.detachableParentEl.scrollLeft - parseInt(r.getPropertyValue("border-left-width"))
4009
4009
  };
4010
4010
  }
4011
- return a;
4011
+ return n;
4012
4012
  },
4013
4013
  // ! \ This function uses the DOM - NO SSR (only trigger from beforeMount and later).
4014
4014
  computeDetachableCoords() {
@@ -4016,14 +4016,14 @@ const Fi = {
4016
4016
  if (!this.detachableEl)
4017
4017
  return;
4018
4018
  this.detachableEl.style.visibility = "hidden", this.detachableEl.style.display = "flex";
4019
- const a = window.getComputedStyle(this.detachableEl, null);
4019
+ const n = window.getComputedStyle(this.detachableEl, null);
4020
4020
  switch (this.position) {
4021
4021
  case "top": {
4022
- e -= this.detachableEl.offsetHeight, this.alignRight ? t += i - this.detachableEl.offsetWidth + parseInt(a.getPropertyValue("border-right-width")) : this.alignLeft || (t += (i - this.detachableEl.offsetWidth) / 2);
4022
+ e -= this.detachableEl.offsetHeight, this.alignRight ? t += i - this.detachableEl.offsetWidth + parseInt(n.getPropertyValue("border-right-width")) : this.alignLeft || (t += (i - this.detachableEl.offsetWidth) / 2);
4023
4023
  break;
4024
4024
  }
4025
4025
  case "bottom": {
4026
- e += o, this.alignRight ? t += i - this.detachableEl.offsetWidth + parseInt(a.getPropertyValue("border-right-width")) : this.alignLeft || (t += (i - this.detachableEl.offsetWidth) / 2);
4026
+ e += o, this.alignRight ? t += i - this.detachableEl.offsetWidth + parseInt(n.getPropertyValue("border-right-width")) : this.alignLeft || (t += (i - this.detachableEl.offsetWidth) / 2);
4027
4027
  break;
4028
4028
  }
4029
4029
  case "left": {
@@ -4031,8 +4031,8 @@ const Fi = {
4031
4031
  break;
4032
4032
  }
4033
4033
  case "right": {
4034
- t += i, this.alignBottom ? e += o - this.detachableEl.offsetHeight + parseInt(a.getPropertyValue("margin-top")) : this.alignTop || (e += (o - this.detachableEl.offsetHeight) / 2 + // top: 50% of activator - half menu height.
4035
- parseInt(a.getPropertyValue("margin-top")));
4034
+ t += i, this.alignBottom ? e += o - this.detachableEl.offsetHeight + parseInt(n.getPropertyValue("margin-top")) : this.alignTop || (e += (o - this.detachableEl.offsetHeight) / 2 + // top: 50% of activator - half menu height.
4035
+ parseInt(n.getPropertyValue("margin-top")));
4036
4036
  break;
4037
4037
  }
4038
4038
  }
@@ -4063,9 +4063,9 @@ const Fi = {
4063
4063
  const e = typeof this.activator == "string";
4064
4064
  Object.entries(this.activatorEventHandlers).forEach(([t, i]) => {
4065
4065
  t = t.replace("mouseenter", "mouseover").replace("mouseleave", "mouseout");
4066
- const o = (a) => {
4066
+ const o = (n) => {
4067
4067
  var l;
4068
- (e && ((l = a.target) != null && l.matches) && a.target.matches(this.activator) || a.target === this.activatorEl || this.activatorEl.contains(a.target)) && i(a);
4068
+ (e && ((l = n.target) != null && l.matches) && n.target.matches(this.activator) || n.target === this.activatorEl || this.activatorEl.contains(n.target)) && i(n);
4069
4069
  };
4070
4070
  document.addEventListener(t, o), this.docEventListenersHandlers.push({ eventName: t, handler: o });
4071
4071
  });
@@ -4091,8 +4091,8 @@ const Fi = {
4091
4091
  }
4092
4092
  }
4093
4093
  };
4094
- function Ui(e, t, i, o, a, l) {
4095
- const n = $("w-card"), r = $("w-overlay");
4094
+ function Ui(e, t, i, o, n, l) {
4095
+ const a = $("w-card"), r = $("w-overlay");
4096
4096
  return s(), u(w, null, [
4097
4097
  p(e.$slots, "activator", { on: l.activatorEventHandlers }),
4098
4098
  V(O, {
@@ -4112,7 +4112,7 @@ function Ui(e, t, i, o, a, l) {
4112
4112
  style: l.styles
4113
4113
  }), [
4114
4114
  p(e.$slots, "default")
4115
- ], 16)) : e.detachableVisible ? (s(), b(n, S({
4115
+ ], 16)) : e.detachableVisible ? (s(), b(a, S({
4116
4116
  key: 1,
4117
4117
  class: "w-menu",
4118
4118
  ref: "detachable"
@@ -4246,17 +4246,17 @@ const qi = {
4246
4246
  return this.maxWidth === "activator" ? this.activatorWidth ? `${this.activatorWidth}px` : 0 : isNaN(this.maxWidth) ? this.maxWidth : this.maxWidth ? `${this.maxWidth}px` : 0;
4247
4247
  },
4248
4248
  menuClasses() {
4249
- return A(this.menuClass);
4249
+ return K(this.menuClass);
4250
4250
  },
4251
4251
  titleClasses() {
4252
- return A(this.titleClass);
4252
+ return K(this.titleClass);
4253
4253
  },
4254
4254
  contentClasses() {
4255
- return A(this.contentClass);
4255
+ return K(this.contentClass);
4256
4256
  },
4257
4257
  overlayClasses() {
4258
4258
  return {
4259
- ...A(this.overlayClass),
4259
+ ...K(this.overlayClass),
4260
4260
  "w-overlay--no-pointer-event": this.showOnHover
4261
4261
  };
4262
4262
  },
@@ -4337,19 +4337,19 @@ const qi = {
4337
4337
  }
4338
4338
  // watch, mounted & beforeDestroy hooks are set in the detachable.js mixin.
4339
4339
  }, Xi = /* @__PURE__ */ v(qi, [["render", Ui]]);
4340
- function Yi(e, t, i, o, a, l) {
4341
- const n = $("w-alert");
4340
+ function Yi(e, t, i, o, n, l) {
4341
+ const a = $("w-alert");
4342
4342
  return s(), b(O, {
4343
4343
  name: l.transitionName,
4344
4344
  appear: ""
4345
4345
  }, {
4346
4346
  default: m(() => [
4347
- a.show ? (s(), u("div", {
4347
+ n.show ? (s(), u("div", {
4348
4348
  key: 0,
4349
4349
  class: f(["w-notification", l.classes]),
4350
4350
  style: R(l.styles)
4351
4351
  }, [
4352
- V(n, S(l.alertProps, {
4352
+ V(a, S(l.alertProps, {
4353
4353
  class: l.alertClasses,
4354
4354
  "onUpdate:modelValue": t[0] || (t[0] = (r) => {
4355
4355
  e.$emit("update:modelValue", !1), e.$emit("input", !1);
@@ -4489,15 +4489,15 @@ const Gi = {
4489
4489
  }
4490
4490
  }
4491
4491
  }, Ji = /* @__PURE__ */ v(Gi, [["render", Yi]]);
4492
- function Qi(e, t, i, o, a, l) {
4493
- const n = ge("focus");
4492
+ function Qi(e, t, i, o, n, l) {
4493
+ const a = ge("focus");
4494
4494
  return s(), b(O, {
4495
4495
  name: "fade",
4496
4496
  appear: "",
4497
4497
  onAfterLeave: l.onClose
4498
4498
  }, {
4499
4499
  default: m(() => [
4500
- i.modelValue ? K((s(), u("div", {
4500
+ i.modelValue ? A((s(), u("div", {
4501
4501
  key: 0,
4502
4502
  class: f(["w-overlay", l.classes]),
4503
4503
  ref: "overlay",
@@ -4509,7 +4509,7 @@ function Qi(e, t, i, o, a, l) {
4509
4509
  p(e.$slots, "default")
4510
4510
  ], 38)), [
4511
4511
  [ae, e.showOverlay],
4512
- [n]
4512
+ [a]
4513
4513
  ]) : c("", !0)
4514
4514
  ]),
4515
4515
  _: 3
@@ -4574,7 +4574,7 @@ const Zi = {
4574
4574
  }
4575
4575
  }
4576
4576
  }, el = /* @__PURE__ */ v(Zi, [["render", Qi]]), tl = { class: "w-parallax" };
4577
- function il(e, t, i, o, a, l) {
4577
+ function il(e, t, i, o, n, l) {
4578
4578
  return s(), u("div", tl);
4579
4579
  }
4580
4580
  const ll = {
@@ -4583,7 +4583,7 @@ const ll = {
4583
4583
  emits: [],
4584
4584
  data: () => ({})
4585
4585
  }, sl = /* @__PURE__ */ v(ll, [["render", il]]), ol = ["viewBox"], al = ["cx", "cy", "r", "stroke-dasharray", "stroke-width"], nl = ["cx", "cy", "r", "stroke-width", "stroke-linecap", "stroke-dasharray"];
4586
- function rl(e, t, i, o, a, l) {
4586
+ function rl(e, t, i, o, n, l) {
4587
4587
  return s(), u("div", {
4588
4588
  class: f(["w-progress", l.classes]),
4589
4589
  style: R(l.styles)
@@ -4698,11 +4698,11 @@ const G = 40, dl = G / 2, ul = Math.round(G * 3.14 * 100) / 100, hl = {
4698
4698
  }
4699
4699
  }
4700
4700
  }, cl = /* @__PURE__ */ v(hl, [["render", rl]]), pl = ["id", "name", "checked", "disabled", "required", "tabindex", "aria-checked"], fl = ["for"], ml = ["for", "innerHTML"], gl = ["for"], bl = ["for", "innerHTML"];
4701
- function yl(e, t, i, o, a, l) {
4701
+ function yl(e, t, i, o, n, l) {
4702
4702
  return s(), b(I(e.formRegister && !l.wRadios ? "w-form-element" : "div"), S({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: e.inputValue, disabled: e.isDisabled, readonly: e.isReadonly }, {
4703
4703
  valid: e.valid,
4704
- "onUpdate:valid": t[3] || (t[3] = (n) => e.valid = n),
4705
- onReset: t[4] || (t[4] = (n) => {
4704
+ "onUpdate:valid": t[3] || (t[3] = (a) => e.valid = a),
4705
+ onReset: t[4] || (t[4] = (a) => {
4706
4706
  e.$emit("update:modelValue", e.inputValue = null), e.$emit("input", null);
4707
4707
  }),
4708
4708
  class: l.classes
@@ -4717,8 +4717,8 @@ function yl(e, t, i, o, a, l) {
4717
4717
  disabled: e.isDisabled || e.isReadonly || null,
4718
4718
  required: e.required || null,
4719
4719
  tabindex: e.tabindex || null,
4720
- onFocus: t[0] || (t[0] = (n) => e.$emit("focus", n)),
4721
- onChange: t[1] || (t[1] = (n) => l.onInput(n)),
4720
+ onFocus: t[0] || (t[0] = (a) => e.$emit("focus", a)),
4721
+ onChange: t[1] || (t[1] = (a) => l.onInput(a)),
4722
4722
  "aria-checked": e.inputValue || "false",
4723
4723
  role: "radio"
4724
4724
  }, null, 40, pl),
@@ -4740,7 +4740,7 @@ function yl(e, t, i, o, a, l) {
4740
4740
  ], 64)) : c("", !0),
4741
4741
  y("div", {
4742
4742
  class: f(["w-radio__input", this.color]),
4743
- onClick: t[2] || (t[2] = (n) => {
4743
+ onClick: t[2] || (t[2] = (a) => {
4744
4744
  e.$refs.input.focus(), e.$refs.input.click();
4745
4745
  })
4746
4746
  }, null, 2),
@@ -4830,8 +4830,8 @@ const wl = {
4830
4830
  }
4831
4831
  }
4832
4832
  }, kl = /* @__PURE__ */ v(wl, [["render", yl]]), vl = ["innerHTML"];
4833
- function Cl(e, t, i, o, a, l) {
4834
- const n = $("w-radio");
4833
+ function Cl(e, t, i, o, n, l) {
4834
+ const a = $("w-radio");
4835
4835
  return s(), b(I(e.formRegister ? "w-form-element" : "div"), S({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: e.inputValue, disabled: e.isDisabled }, {
4836
4836
  valid: e.valid,
4837
4837
  "onUpdate:valid": t[1] || (t[1] = (r) => e.valid = r),
@@ -4843,7 +4843,7 @@ function Cl(e, t, i, o, a, l) {
4843
4843
  class: l.classes
4844
4844
  }), {
4845
4845
  default: m(() => [
4846
- (s(!0), u(w, null, L(l.radioItems, (r, d) => (s(), b(n, S({
4846
+ (s(!0), u(w, null, L(l.radioItems, (r, d) => (s(), b(a, S({
4847
4847
  key: d,
4848
4848
  "model-value": r.value === i.modelValue,
4849
4849
  "onUpdate:modelValue": (h) => l.onInput(r),
@@ -4926,12 +4926,12 @@ const Sl = {
4926
4926
  }
4927
4927
  }
4928
4928
  }, Bl = /* @__PURE__ */ v(Sl, [["render", Cl]]), _l = ["id", "name", "value"], $l = ["disabled", "onMouseenter", "onClick", "tabindex"];
4929
- function Vl(e, t, i, o, a, l) {
4930
- return s(), b(I(e.formRegister ? "w-form-element" : "div"), S({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: a.rating, disabled: e.isDisabled, readonly: e.isReadonly }, {
4929
+ function Vl(e, t, i, o, n, l) {
4930
+ return s(), b(I(e.formRegister ? "w-form-element" : "div"), S({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: n.rating, disabled: e.isDisabled, readonly: e.isReadonly }, {
4931
4931
  valid: e.valid,
4932
- "onUpdate:valid": t[4] || (t[4] = (n) => e.valid = n),
4933
- onReset: t[5] || (t[5] = (n) => {
4934
- e.$emit("update:modelValue", a.rating = null), e.$emit("input", null);
4932
+ "onUpdate:valid": t[4] || (t[4] = (a) => e.valid = a),
4933
+ onReset: t[5] || (t[5] = (a) => {
4934
+ e.$emit("update:modelValue", n.rating = null), e.$emit("input", null);
4935
4935
  }),
4936
4936
  class: l.classes
4937
4937
  }), {
@@ -4940,26 +4940,26 @@ function Vl(e, t, i, o, a, l) {
4940
4940
  id: e.inputName,
4941
4941
  name: e.inputName,
4942
4942
  type: "hidden",
4943
- value: a.rating
4943
+ value: n.rating
4944
4944
  }, null, 8, _l),
4945
- (s(!0), u(w, null, L(i.max, (n) => (s(), u(w, { key: n }, [
4945
+ (s(!0), u(w, null, L(i.max, (a) => (s(), u(w, { key: a }, [
4946
4946
  e.$slots.item ? p(e.$slots, "item", {
4947
4947
  key: 0,
4948
- index: n + 1
4948
+ index: a + 1
4949
4949
  }) : c("", !0),
4950
4950
  y("button", {
4951
- class: f(["w-rating__button", l.buttonClasses(n)]),
4951
+ class: f(["w-rating__button", l.buttonClasses(a)]),
4952
4952
  disabled: e.isDisabled || e.isReadonly,
4953
- onMouseenter: (r) => a.hover = n,
4954
- onMouseleave: t[0] || (t[0] = (r) => a.hover = 0),
4955
- onClick: (r) => l.onButtonClick(n),
4953
+ onMouseenter: (r) => n.hover = a,
4954
+ onMouseleave: t[0] || (t[0] = (r) => n.hover = 0),
4955
+ onClick: (r) => l.onButtonClick(a),
4956
4956
  onFocus: t[1] || (t[1] = (...r) => l.onFocus && l.onFocus(...r)),
4957
4957
  onBlur: t[2] || (t[2] = (...r) => l.onBlur && l.onBlur(...r)),
4958
4958
  onKeydown: t[3] || (t[3] = (...r) => l.onKeydown && l.onKeydown(...r)),
4959
4959
  type: "button",
4960
- tabindex: n === 1 ? 0 : -1
4960
+ tabindex: a === 1 ? 0 : -1
4961
4961
  }, [
4962
- n - 1 === ~~a.rating && a.rating - ~~a.rating ? (s(), u("i", {
4962
+ a - 1 === ~~n.rating && n.rating - ~~n.rating ? (s(), u("i", {
4963
4963
  key: 0,
4964
4964
  class: f(["w-icon", `${i.icon} ${i.color}`]),
4965
4965
  role: "icon",
@@ -5067,21 +5067,21 @@ const Il = {
5067
5067
  }
5068
5068
  }
5069
5069
  }, Tl = /* @__PURE__ */ v(Il, [["render", Vl]]);
5070
- function Ll(e, t, i, o, a, l) {
5070
+ function Ll(e, t, i, o, n, l) {
5071
5071
  return s(), u(w, null, [
5072
5072
  y("div", S({
5073
5073
  class: ["w-scrollable", l.scrollableClasses],
5074
5074
  ref: "scrollable",
5075
- onMouseenter: t[0] || (t[0] = (...n) => l.onMouseEnter && l.onMouseEnter(...n)),
5076
- onMouseleave: t[1] || (t[1] = (...n) => l.onMouseLeave && l.onMouseLeave(...n)),
5077
- onMousewheel: t[2] || (t[2] = (...n) => l.onMouseWheel && l.onMouseWheel(...n))
5075
+ onMouseenter: t[0] || (t[0] = (...a) => l.onMouseEnter && l.onMouseEnter(...a)),
5076
+ onMouseleave: t[1] || (t[1] = (...a) => l.onMouseLeave && l.onMouseLeave(...a)),
5077
+ onMousewheel: t[2] || (t[2] = (...a) => l.onMouseWheel && l.onMouseWheel(...a))
5078
5078
  }, e.$attrs, { style: l.scrollableStyles }), [
5079
5079
  p(e.$slots, "default")
5080
5080
  ], 16),
5081
5081
  y("div", {
5082
5082
  class: f(["w-scrollbar", l.scrollbarClasses]),
5083
5083
  ref: "track",
5084
- onMousedown: t[3] || (t[3] = (...n) => l.onTrackMouseDown && l.onTrackMouseDown(...n))
5084
+ onMousedown: t[3] || (t[3] = (...a) => l.onTrackMouseDown && l.onTrackMouseDown(...a))
5085
5085
  }, [
5086
5086
  y("div", {
5087
5087
  class: "w-scrollbar__thumb",
@@ -5171,8 +5171,8 @@ const Rl = {
5171
5171
  onTrackMouseDown(e) {
5172
5172
  if (this.isDisabled || this.isReadonly || "ontouchstart" in window && e.type === "mousedown")
5173
5173
  return;
5174
- const { top: t, left: i, width: o, height: a } = this.$refs.track.getBoundingClientRect();
5175
- this.isHorizontal ? (this.$refs.track.width = o, this.$refs.track.left = i) : (this.$refs.track.height = a, this.$refs.track.top = t), this.dragging = !0, this.computeScroll(e.type === "touchstart" ? e.touches[0][this.m.clientXorY] : e[this.m.clientXorY]), this.scroll(), document.addEventListener(e.type === "touchstart" ? "touchmove" : "mousemove", this.onDrag), document.addEventListener(e.type === "touchstart" ? "touchend" : "mouseup", this.onMouseUp, { once: !0 });
5174
+ const { top: t, left: i, width: o, height: n } = this.$refs.track.getBoundingClientRect();
5175
+ this.isHorizontal ? (this.$refs.track.width = o, this.$refs.track.left = i) : (this.$refs.track.height = n, this.$refs.track.top = t), this.dragging = !0, this.computeScroll(e.type === "touchstart" ? e.touches[0][this.m.clientXorY] : e[this.m.clientXorY]), this.scroll(), document.addEventListener(e.type === "touchstart" ? "touchmove" : "mousemove", this.onDrag), document.addEventListener(e.type === "touchstart" ? "touchend" : "mouseup", this.onMouseUp, { once: !0 });
5176
5176
  },
5177
5177
  onDrag(e) {
5178
5178
  this.computeScroll(e.type === "touchmove" ? e.touches[0][this.m.clientXorY] : e[this.m.clientXorY]), this.scroll();
@@ -5192,8 +5192,8 @@ const Rl = {
5192
5192
  this.scrollable.hovered && (this.scrollValuePercent <= 0 && e[this.m.deltaXorY] < 0 || this.scrollValuePercent >= 100 - this.thumbSizePercent && e[this.m.deltaXorY] > 0 || (e.preventDefault(), this.scrollValuePercent += e[this.m.deltaXorY] * 0.05, this.scrollValuePercent = Math.max(0, Math.min(this.scrollValuePercent, 100)), this.scroll()));
5193
5193
  },
5194
5194
  computeScroll(e) {
5195
- const { top: t, left: i, width: o, height: a } = this.$refs.scrollable.getBoundingClientRect(), l = this.isHorizontal ? i : t, n = this.isHorizontal ? o : a;
5196
- this.scrollValuePercent = Math.max(0, Math.min((e - l) / n * 100, 100));
5195
+ const { top: t, left: i, width: o, height: n } = this.$refs.scrollable.getBoundingClientRect(), l = this.isHorizontal ? i : t, a = this.isHorizontal ? o : n;
5196
+ this.scrollValuePercent = Math.max(0, Math.min((e - l) / a * 100, 100));
5197
5197
  },
5198
5198
  scroll() {
5199
5199
  var e;
@@ -5212,8 +5212,8 @@ const Rl = {
5212
5212
  key: 1,
5213
5213
  class: "w-select__selection-slot"
5214
5214
  }, Ml = ["innerHTML"], El = ["value", "name"];
5215
- function Wl(e, t, i, o, a, l) {
5216
- const n = $("w-icon"), r = $("w-list"), d = $("w-menu");
5215
+ function Wl(e, t, i, o, n, l) {
5216
+ const a = $("w-icon"), r = $("w-list"), d = $("w-menu");
5217
5217
  return s(), b(I(e.formRegister ? "w-form-element" : "div"), S({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: l.selectionString, disabled: e.isDisabled, readonly: e.isReadonly, isFocused: e.isFocused }, {
5218
5218
  valid: e.valid,
5219
5219
  "onUpdate:valid": t[12] || (t[12] = (h) => e.valid = h),
@@ -5254,7 +5254,7 @@ function Wl(e, t, i, o, a, l) {
5254
5254
  "aria-owns": `w-select-menu--${e._.uid}`,
5255
5255
  "aria-activedescendant": `w-select-menu--${e._.uid}_item-1`
5256
5256
  }, [
5257
- i.innerIconLeft ? (s(), b(n, {
5257
+ i.innerIconLeft ? (s(), b(a, {
5258
5258
  key: 0,
5259
5259
  class: "w-select__icon w-select__icon--inner-left",
5260
5260
  tag: "label",
@@ -5293,7 +5293,7 @@ function Wl(e, t, i, o, a, l) {
5293
5293
  ])
5294
5294
  ], 2)) : c("", !0)
5295
5295
  ], 64)) : c("", !0),
5296
- i.innerIconRight ? (s(), b(n, {
5296
+ i.innerIconRight ? (s(), b(a, {
5297
5297
  key: 3,
5298
5298
  class: "w-select__icon w-select__icon--inner-right",
5299
5299
  tag: "label",
@@ -5313,6 +5313,7 @@ function Wl(e, t, i, o, a, l) {
5313
5313
  "onUpdate:modelValue": l.onInput,
5314
5314
  onItemClick: t[7] || (t[7] = (h) => e.$emit("item-click", h)),
5315
5315
  onItemSelect: l.onListItemSelect,
5316
+ onKeydown: l.onWListKeydown,
5316
5317
  "onKeydown:enter": t[8] || (t[8] = (h) => i.noUnselect && !i.multiple && l.closeMenu()),
5317
5318
  "onKeydown:escape": t[9] || (t[9] = (h) => e.showMenu && (e.showMenu = !1)),
5318
5319
  items: l.selectItems,
@@ -5346,7 +5347,7 @@ function Wl(e, t, i, o, a, l) {
5346
5347
  ])
5347
5348
  ])
5348
5349
  }))
5349
- ]), 1032, ["model-value", "onUpdate:modelValue", "onItemSelect", "items", "multiple", "add-ids", "no-unselect", "selection-color", "item-color-key"])
5350
+ ]), 1032, ["model-value", "onUpdate:modelValue", "onItemSelect", "onKeydown", "items", "multiple", "add-ids", "no-unselect", "selection-color", "item-color-key"])
5350
5351
  ]),
5351
5352
  _: 3
5352
5353
  }, 16, ["modelValue", "onClose", "menu-class", "append-to"]),
@@ -5365,7 +5366,7 @@ function Wl(e, t, i, o, a, l) {
5365
5366
  _: 3
5366
5367
  }, 16, ["valid", "onReset", "wrap", "class"]);
5367
5368
  }
5368
- const Al = {
5369
+ const Kl = {
5369
5370
  name: "w-select",
5370
5371
  mixins: [E],
5371
5372
  props: {
@@ -5419,7 +5420,10 @@ const Al = {
5419
5420
  showMenu: !1,
5420
5421
  menuMinWidth: 0,
5421
5422
  isFocused: !1,
5422
- selectionWrapRef: void 0
5423
+ selectionWrapRef: void 0,
5424
+ // Lookup a select list item from typing the first characters.
5425
+ // If typing is too slow (> 1s), the lookup string is cleared.
5426
+ quickLookup: { string: "", timeout: null }
5423
5427
  }),
5424
5428
  computed: {
5425
5429
  // Check all the items and add a `value` if missing, containing either: value, label or index
@@ -5508,21 +5512,37 @@ const Al = {
5508
5512
  if (t === void 0)
5509
5513
  t = e.keyCode === 38 ? i.length - 1 : 0;
5510
5514
  else {
5511
- const a = e.keyCode === 38 ? -1 : 1;
5512
- t = (t + i.length + a) % i.length;
5515
+ const n = e.keyCode === 38 ? -1 : 1;
5516
+ t = (t + i.length + n) % i.length;
5513
5517
  }
5514
5518
  let o = !1;
5515
5519
  if (i[t].disabled) {
5516
- const a = e.keyCode === 38 ? -1 : 1;
5517
- let l = (t + a + i.length) % i.length;
5518
- const n = i.length;
5520
+ const n = e.keyCode === 38 ? -1 : 1;
5521
+ let l = (t + n + i.length) % i.length;
5522
+ const a = i.length;
5519
5523
  let r = 0;
5520
- for (; r < n && i[l].disabled; )
5521
- l = (l + i.length + a) % i.length, r++;
5522
- r >= n && (o = !0), t = l;
5524
+ for (; r < a && i[l].disabled; )
5525
+ l = (l + i.length + n) % i.length, r++;
5526
+ r >= a && (o = !0), t = l;
5523
5527
  }
5524
5528
  o || this.onInput(i[t]);
5525
5529
  }
5530
+ else
5531
+ e.key.length === 1 && this.focusItemOnQuickLookup(e);
5532
+ },
5533
+ onWListKeydown(e) {
5534
+ e.key.length === 1 && this.focusItemOnQuickLookup(e);
5535
+ },
5536
+ focusItemOnQuickLookup(e) {
5537
+ var o, n, l;
5538
+ this.quickLookup.timeout && clearTimeout(this.quickLookup.timeout), this.quickLookup.timeout = setTimeout(() => this.quickLookup.string = "", 1e3), this.quickLookup.string += e.key;
5539
+ const t = new RegExp(`^${this.quickLookup.string}`, "i"), i = this.selectItems.findIndex(
5540
+ (a) => !a.disabled && a[this.itemLabelKey].match(t)
5541
+ ) + 1;
5542
+ if (i) {
5543
+ const a = `.w-list__item:nth-child(${i}) .w-list__item-label`;
5544
+ (l = (n = (o = this.$refs["w-list"]) == null ? void 0 : o.$el) == null ? void 0 : n.querySelector(a)) == null || l.focus();
5545
+ }
5526
5546
  },
5527
5547
  // The items are given by the w-list component.
5528
5548
  onInput(e) {
@@ -5564,7 +5584,10 @@ const Al = {
5564
5584
  // Close the dropdown selection list.
5565
5585
  closeMenu() {
5566
5586
  var e;
5567
- ((e = this.menuProps) == null ? void 0 : e.hideOnMenuClick) !== !1 && (this.showMenu = !1, setTimeout(() => this.$refs["selection-input"].focus(), 50));
5587
+ ((e = this.menuProps) == null ? void 0 : e.hideOnMenuClick) !== !1 && (this.showMenu = !1, setTimeout(() => {
5588
+ var t;
5589
+ return (t = this.$refs["selection-input"]) == null ? void 0 : t.focus();
5590
+ }, 50));
5568
5591
  }
5569
5592
  },
5570
5593
  created() {
@@ -5578,15 +5601,15 @@ const Al = {
5578
5601
  this.inputValue = this.checkSelection(this.modelValue);
5579
5602
  }
5580
5603
  }
5581
- }, Kl = /* @__PURE__ */ v(Al, [["render", Wl]]), Nl = ["for"], Dl = ["for", "innerHTML"], Hl = { class: "w-slider__track-wrap" }, Fl = ["aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-readonly"], jl = ["id", "name", "model-value", "disabled", "readonly", "aria-readonly", "tabindex"], Ul = ["for"], ql = { key: 0 }, Xl = {
5604
+ }, Al = /* @__PURE__ */ v(Kl, [["render", Wl]]), Nl = ["for"], Dl = ["for", "innerHTML"], Hl = { class: "w-slider__track-wrap" }, Fl = ["aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-readonly"], jl = ["id", "name", "model-value", "disabled", "readonly", "aria-readonly", "tabindex"], Ul = ["for"], ql = { key: 0 }, Xl = {
5582
5605
  key: 0,
5583
5606
  class: "w-slider__step-labels"
5584
5607
  }, Yl = ["onClick"], Gl = ["for"], Jl = ["for", "innerHTML"];
5585
- function Ql(e, t, i, o, a, l) {
5608
+ function Ql(e, t, i, o, n, l) {
5586
5609
  return s(), b(I(e.formRegister ? "w-form-element" : "div"), S({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: e.rangeValueScaled, disabled: e.isDisabled, readonly: e.isReadonly }, {
5587
5610
  valid: e.valid,
5588
- "onUpdate:valid": t[8] || (t[8] = (n) => e.valid = n),
5589
- onReset: t[9] || (t[9] = (n) => {
5611
+ "onUpdate:valid": t[8] || (t[8] = (a) => e.valid = a),
5612
+ onReset: t[9] || (t[9] = (a) => {
5590
5613
  e.rangeValuePercent = 0, l.updateRangeValueScaled();
5591
5614
  }),
5592
5615
  wrap: e.formRegister || null,
@@ -5609,8 +5632,8 @@ function Ql(e, t, i, o, a, l) {
5609
5632
  y("div", {
5610
5633
  class: f(["w-slider__track", l.trackClasses]),
5611
5634
  ref: "track",
5612
- onMousedown: t[4] || (t[4] = (...n) => l.onTrackMouseDown && l.onTrackMouseDown(...n)),
5613
- onTouchstart: t[5] || (t[5] = (...n) => l.onTrackMouseDown && l.onTrackMouseDown(...n)),
5635
+ onMousedown: t[4] || (t[4] = (...a) => l.onTrackMouseDown && l.onTrackMouseDown(...a)),
5636
+ onTouchstart: t[5] || (t[5] = (...a) => l.onTrackMouseDown && l.onTrackMouseDown(...a)),
5614
5637
  role: "slider",
5615
5638
  "aria-label": "Slider",
5616
5639
  "aria-valuemin": l.minVal,
@@ -5638,10 +5661,10 @@ function Ql(e, t, i, o, a, l) {
5638
5661
  "aria-readonly": e.isReadonly ? "true" : "false",
5639
5662
  tabindex: e.isDisabled || e.isReadonly ? -1 : null,
5640
5663
  onKeydown: [
5641
- t[0] || (t[0] = W((n) => l.onKeyDown(n, -1), ["left"])),
5642
- t[1] || (t[1] = W((n) => l.onKeyDown(n, 1), ["right"]))
5664
+ t[0] || (t[0] = W((a) => l.onKeyDown(a, -1), ["left"])),
5665
+ t[1] || (t[1] = W((a) => l.onKeyDown(a, 1), ["right"]))
5643
5666
  ],
5644
- onFocus: t[2] || (t[2] = (n) => e.$emit("focus", n)),
5667
+ onFocus: t[2] || (t[2] = (a) => e.$emit("focus", a)),
5645
5668
  onClick: t[3] || (t[3] = z(() => {
5646
5669
  }, ["prevent"]))
5647
5670
  }, null, 42, jl),
@@ -5666,18 +5689,18 @@ function Ql(e, t, i, o, a, l) {
5666
5689
  i.stepLabels && i.step ? (s(), u("div", Xl, [
5667
5690
  y("div", {
5668
5691
  class: "w-slider__step-label",
5669
- onClick: t[6] || (t[6] = (n) => l.onStepLabelClick(0))
5692
+ onClick: t[6] || (t[6] = (a) => l.onStepLabelClick(0))
5670
5693
  }, C(this.minVal), 1),
5671
- (s(!0), u(w, null, L(~~l.numberOfSteps, (n) => (s(), u("div", {
5694
+ (s(!0), u(w, null, L(~~l.numberOfSteps, (a) => (s(), u("div", {
5672
5695
  class: "w-slider__step-label",
5673
- key: n,
5674
- onClick: (r) => l.onStepLabelClick(n * (100 / l.numberOfSteps)),
5675
- style: R(`left: ${n * (100 / l.numberOfSteps)}%`)
5676
- }, C(l.percentToScaled(n * (100 / l.numberOfSteps))), 13, Yl))), 128)),
5696
+ key: a,
5697
+ onClick: (r) => l.onStepLabelClick(a * (100 / l.numberOfSteps)),
5698
+ style: R(`left: ${a * (100 / l.numberOfSteps)}%`)
5699
+ }, C(l.percentToScaled(a * (100 / l.numberOfSteps))), 13, Yl))), 128)),
5677
5700
  ~~l.numberOfSteps !== l.numberOfSteps ? (s(), u("div", {
5678
5701
  key: 0,
5679
5702
  class: "w-slider__step-label",
5680
- onClick: t[7] || (t[7] = (n) => l.onStepLabelClick(100)),
5703
+ onClick: t[7] || (t[7] = (a) => l.onStepLabelClick(100)),
5681
5704
  style: { left: "100%" }
5682
5705
  }, C(this.maxVal), 1)) : c("", !0)
5683
5706
  ])) : c("", !0)
@@ -5837,7 +5860,7 @@ const Zl = {
5837
5860
  }
5838
5861
  }
5839
5862
  }, es = /* @__PURE__ */ v(Zl, [["render", Ql]]), ts = { key: 0 };
5840
- function is(e, t, i, o, a, l) {
5863
+ function is(e, t, i, o, n, l) {
5841
5864
  return i.modelValue || i.modelValue === void 0 ? (s(), u("div", {
5842
5865
  key: 0,
5843
5866
  class: f(["w-spinner", l.classes]),
@@ -5885,7 +5908,7 @@ const ls = {
5885
5908
  }
5886
5909
  }
5887
5910
  }, ss = /* @__PURE__ */ v(ls, [["render", is]]);
5888
- function os(e, t, i, o, a, l) {
5911
+ function os(e, t, i, o, n, l) {
5889
5912
  return s(), u("div", {
5890
5913
  class: f(["w-steps", l.classes])
5891
5914
  }, null, 2);
@@ -5913,13 +5936,13 @@ const as = {
5913
5936
  key: 1,
5914
5937
  class: "w-switch__thumb"
5915
5938
  }, cs = ["for"];
5916
- function ps(e, t, i, o, a, l) {
5917
- const n = $("w-progress");
5918
- return s(), b(I(e.formRegister ? "w-form-element" : "div"), S({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: a.isOn, disabled: e.isDisabled, readonly: e.isReadonly }, {
5939
+ function ps(e, t, i, o, n, l) {
5940
+ const a = $("w-progress");
5941
+ return s(), b(I(e.formRegister ? "w-form-element" : "div"), S({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: n.isOn, disabled: e.isDisabled, readonly: e.isReadonly }, {
5919
5942
  valid: e.valid,
5920
5943
  "onUpdate:valid": t[3] || (t[3] = (r) => e.valid = r),
5921
5944
  onReset: t[4] || (t[4] = (r) => {
5922
- e.$emit("update:modelValue", a.isOn = null), e.$emit("input", null);
5945
+ e.$emit("update:modelValue", n.isOn = null), e.$emit("input", null);
5923
5946
  }),
5924
5947
  class: l.classes
5925
5948
  }), {
@@ -5929,7 +5952,7 @@ function ps(e, t, i, o, a, l) {
5929
5952
  id: `w-switch--${e._.uid}`,
5930
5953
  type: "checkbox",
5931
5954
  name: e.inputName,
5932
- checked: a.isOn,
5955
+ checked: n.isOn,
5933
5956
  disabled: e.isDisabled || e.isReadonly || null,
5934
5957
  readonly: e.isReadonly || null,
5935
5958
  "aria-readonly": e.isReadonly ? "true" : "false",
@@ -5937,7 +5960,7 @@ function ps(e, t, i, o, a, l) {
5937
5960
  tabindex: e.tabindex || null,
5938
5961
  onChange: t[0] || (t[0] = (r) => l.onInput()),
5939
5962
  onFocus: t[1] || (t[1] = (r) => e.$emit("focus", r)),
5940
- "aria-checked": a.isOn || "false",
5963
+ "aria-checked": n.isOn || "false",
5941
5964
  role: "switch"
5942
5965
  }, null, 40, rs),
5943
5966
  l.hasLabel && i.labelOnLeft ? (s(), u(w, { key: 0 }, [
@@ -5961,7 +5984,7 @@ function ps(e, t, i, o, a, l) {
5961
5984
  p(e.$slots, "track")
5962
5985
  ])) : c("", !0),
5963
5986
  e.$slots.thumb || i.loading ? (s(), u("div", hs, [
5964
- i.loading ? (s(), b(n, S({
5987
+ i.loading ? (s(), b(a, S({
5965
5988
  key: 0,
5966
5989
  circle: "",
5967
5990
  color: "inherit"
@@ -6052,7 +6075,7 @@ const fs = {
6052
6075
  }
6053
6076
  }
6054
6077
  }, ms = /* @__PURE__ */ v(fs, [["render", ps]]), gs = { class: "w-tabs__content" };
6055
- function bs(e, t, i, o, a, l) {
6078
+ function bs(e, t, i, o, n, l) {
6056
6079
  return s(), u("div", gs, [
6057
6080
  p(e.$slots, "default", { item: i.item })
6058
6081
  ]);
@@ -6068,8 +6091,8 @@ const ys = {
6068
6091
  key: 0,
6069
6092
  class: "w-tabs__content-wrap"
6070
6093
  }, Bs = ["innerHTML"], _s = ["innerHTML"];
6071
- function $s(e, t, i, o, a, l) {
6072
- const n = $("tab-content");
6094
+ function $s(e, t, i, o, n, l) {
6095
+ const a = $("tab-content");
6073
6096
  return s(), u("div", {
6074
6097
  class: f(["w-tabs", l.tabsClasses])
6075
6098
  }, [
@@ -6118,7 +6141,7 @@ function $s(e, t, i, o, a, l) {
6118
6141
  name: l.transitionName
6119
6142
  }, {
6120
6143
  default: m(() => [
6121
- (s(!0), u(w, null, L(e.tabs, (r, d) => K((s(), b(n, {
6144
+ (s(!0), u(w, null, L(e.tabs, (r, d) => A((s(), b(a, {
6122
6145
  key: r._uid,
6123
6146
  item: r,
6124
6147
  class: f(i.contentClass)
@@ -6156,7 +6179,7 @@ function $s(e, t, i, o, a, l) {
6156
6179
  (s(), b(Ve, {
6157
6180
  exclude: i.keepAlive ? "" : "tab-content"
6158
6181
  }, [
6159
- (s(), b(n, {
6182
+ (s(), b(a, {
6160
6183
  key: e.activeTabUid,
6161
6184
  item: l.activeTab,
6162
6185
  class: f(i.contentClass)
@@ -6325,8 +6348,8 @@ const Vs = {
6325
6348
  this.activeTabEl = t && t.querySelector(".w-tabs__bar-item--active");
6326
6349
  }
6327
6350
  if (!this.fillBar && this.activeTabEl) {
6328
- const { left: t, width: i } = this.activeTabEl.getBoundingClientRect(), o = this.activeTabEl.parentNode, { left: a } = o.getBoundingClientRect(), { borderLeftWidth: l } = getComputedStyle(o);
6329
- this.slider.left = `${t - a - parseInt(l) + o.scrollLeft}px`, this.slider.width = `${i}px`;
6351
+ const { left: t, width: i } = this.activeTabEl.getBoundingClientRect(), o = this.activeTabEl.parentNode, { left: n } = o.getBoundingClientRect(), { borderLeftWidth: l } = getComputedStyle(o);
6352
+ this.slider.left = `${t - n - parseInt(l) + o.scrollLeft}px`, this.slider.width = `${i}px`;
6330
6353
  } else
6331
6354
  this.slider.left = `${this.activeTab._index * 100 / this.tabs.length}%`, this.slider.width = `${100 / this.tabs.length}%`;
6332
6355
  },
@@ -6373,7 +6396,7 @@ const Vs = {
6373
6396
  }, Ms = ["colspan"], Es = {
6374
6397
  key: 0,
6375
6398
  class: "w-table__progress-bar"
6376
- }, Ws = ["colspan"], As = { class: "w-table__loading-text" }, Ks = {
6399
+ }, Ws = ["colspan"], Ks = { class: "w-table__loading-text" }, As = {
6377
6400
  key: 1,
6378
6401
  class: "no-data"
6379
6402
  }, Ns = ["colspan"], Ds = ["onClick"], Hs = ["data-label"], Fs = ["data-label"], js = ["innerHTML"], Us = {
@@ -6392,8 +6415,8 @@ const Vs = {
6392
6415
  key: 0,
6393
6416
  class: "w-table__pagination w-pagination"
6394
6417
  }, eo = { class: "pages-wrap" }, to = { class: "w-pagination__results" };
6395
- function io(e, t, i, o, a, l) {
6396
- const n = $("w-icon"), r = $("w-progress"), d = $("w-transition-fade"), h = $("w-transition-expand"), k = $("w-select"), _ = $("w-button");
6418
+ function io(e, t, i, o, n, l) {
6419
+ const a = $("w-icon"), r = $("w-progress"), d = $("w-transition-fade"), h = $("w-transition-expand"), k = $("w-select"), _ = $("w-button");
6397
6420
  return s(), u("div", {
6398
6421
  class: f(["w-table w-table--wrap", l.classes])
6399
6422
  }, [
@@ -6418,7 +6441,7 @@ function io(e, t, i, o, a, l) {
6418
6441
  key: T,
6419
6442
  onClick: (P) => !e.colResizing.dragging && g.sortable !== !1 && l.sortTable(g)
6420
6443
  }, [
6421
- g.sortable !== !1 && g.align === "right" ? (s(), b(n, {
6444
+ g.sortable !== !1 && g.align === "right" ? (s(), b(a, {
6422
6445
  key: 0,
6423
6446
  class: f(["w-table__header-sort", l.headerSortClasses(g)])
6424
6447
  }, {
@@ -6440,7 +6463,7 @@ function io(e, t, i, o, a, l) {
6440
6463
  innerHTML: g.label || ""
6441
6464
  }, null, 8, xs))
6442
6465
  ], 64)) : c("", !0),
6443
- g.sortable !== !1 && g.align !== "right" ? (s(), b(n, {
6466
+ g.sortable !== !1 && g.align !== "right" ? (s(), b(a, {
6444
6467
  key: 2,
6445
6468
  class: f(["w-table__header-sort", l.headerSortClasses(g)])
6446
6469
  }, {
@@ -6476,13 +6499,13 @@ function io(e, t, i, o, a, l) {
6476
6499
  colspan: i.headers.length
6477
6500
  }, [
6478
6501
  V(r, { tile: "" }),
6479
- y("div", As, [
6502
+ y("div", Ks, [
6480
6503
  p(e.$slots, "loading", {}, () => [
6481
6504
  B("Loading...")
6482
6505
  ])
6483
6506
  ])
6484
6507
  ], 8, Ws)
6485
- ])) : l.tableItems.length ? c("", !0) : (s(), u("tr", Ks, [
6508
+ ])) : l.tableItems.length ? c("", !0) : (s(), u("tr", As, [
6486
6509
  y("td", {
6487
6510
  class: "w-table__cell text-center",
6488
6511
  colspan: i.headers.length
@@ -6838,26 +6861,26 @@ const me = 15, lo = {
6838
6861
  doSelectRow(e, t) {
6839
6862
  const i = this.expandableRows === "" ? !0 : this.expandableRows, o = this.selectableRows === "" ? !0 : this.selectableRows;
6840
6863
  if (i) {
6841
- const a = this.expandedRowsByUid[e._uid] === void 0;
6842
- a ? this.expandableRows.toString() === "1" ? this.expandedRowsInternal = [e._uid] : this.expandedRowsInternal.push(e._uid) : this.expandedRowsInternal = this.expandedRowsInternal.filter((l) => l !== e._uid), this.$emit(
6864
+ const n = this.expandedRowsByUid[e._uid] === void 0;
6865
+ n ? this.expandableRows.toString() === "1" ? this.expandedRowsInternal = [e._uid] : this.expandedRowsInternal.push(e._uid) : this.expandedRowsInternal = this.expandedRowsInternal.filter((l) => l !== e._uid), this.$emit(
6843
6866
  "row-expand",
6844
6867
  {
6845
6868
  item: e,
6846
6869
  index: t,
6847
- expanded: a,
6870
+ expanded: n,
6848
6871
  expandedRows: this.expandedRowsInternal.map((l) => this.filteredItems[l])
6849
6872
  }
6850
6873
  ), this.$emit("update:expanded-rows", this.expandedRowsInternal);
6851
6874
  } else if (o) {
6852
- let a = !1;
6875
+ let n = !1;
6853
6876
  const l = this.selectedRowsByUid[e._uid] === void 0;
6854
- l ? (this.selectableRows.toString() === "1" ? this.selectedRowsInternal = [e._uid] : this.selectedRowsInternal.push(e._uid), a = !0) : (!this.forceSelection || this.selectedRowsInternal.length > 1) && (this.selectedRowsInternal = this.selectedRowsInternal.filter((n) => n !== e._uid), a = !0), a && (this.$emit(
6877
+ l ? (this.selectableRows.toString() === "1" ? this.selectedRowsInternal = [e._uid] : this.selectedRowsInternal.push(e._uid), n = !0) : (!this.forceSelection || this.selectedRowsInternal.length > 1) && (this.selectedRowsInternal = this.selectedRowsInternal.filter((a) => a !== e._uid), n = !0), n && (this.$emit(
6855
6878
  "row-select",
6856
6879
  {
6857
6880
  item: e,
6858
6881
  index: t,
6859
6882
  selected: l,
6860
- selectedRows: this.selectedRowsInternal.map((n) => this.filteredItems[n])
6883
+ selectedRows: this.selectedRowsInternal.map((a) => this.filteredItems[a])
6861
6884
  }
6862
6885
  ), this.$emit("update:selected-rows", this.selectedRowsInternal));
6863
6886
  }
@@ -6886,11 +6909,11 @@ const me = 15, lo = {
6886
6909
  * (losing the 2 columns width). So do a direct DOM manipulation using `.style.width`.
6887
6910
  */
6888
6911
  onResizerMouseMove(e) {
6889
- const { startCursorX: t, columnEl: i, nextColumnEl: o, colWidth: a, nextColWidth: l } = this.colResizing;
6912
+ const { startCursorX: t, columnEl: i, nextColumnEl: o, colWidth: n, nextColWidth: l } = this.colResizing;
6890
6913
  this.colResizing.dragging = !0;
6891
- const n = e.pageX - t, r = a + l, d = a + n, h = l - n;
6892
- i.style.width = a + n + "px", o.style.width = l - n + "px";
6893
- const k = n < 0 && i.offsetWidth > d || i.offsetWidth <= me, _ = n > 0 && o.offsetWidth > h;
6914
+ const a = e.pageX - t, r = n + l, d = n + a, h = l - a;
6915
+ i.style.width = n + a + "px", o.style.width = l - a + "px";
6916
+ const k = a < 0 && i.offsetWidth > d || i.offsetWidth <= me, _ = a > 0 && o.offsetWidth > h;
6894
6917
  if (k) {
6895
6918
  const g = Math.max(i.offsetWidth, me);
6896
6919
  i.style.width = g + "px", o.style.width = r - g + "px";
@@ -6907,12 +6930,12 @@ const me = 15, lo = {
6907
6930
  }, 0);
6908
6931
  },
6909
6932
  initPagination() {
6910
- var o, a;
6911
- const e = ((o = this.pagination) == null ? void 0 : o.itemsPerPage) ?? 20, t = ((a = this.pagination) == null ? void 0 : a.itemsPerPageOptions) || [20, 100, { label: "All", value: 0 }];
6933
+ var o, n;
6934
+ const e = ((o = this.pagination) == null ? void 0 : o.itemsPerPage) ?? 20, t = ((n = this.pagination) == null ? void 0 : n.itemsPerPageOptions) || [20, 100, { label: "All", value: 0 }];
6912
6935
  t.find((l) => ((l == null ? void 0 : l.value) ?? l) === +e) || t.push(e), this.paginationConfig.itemsPerPageOptions = t.map((l) => ({
6913
6936
  label: ["string", "number"].includes(typeof l) ? l.toString() : l.label || l.value,
6914
6937
  value: ["string", "number"].includes(typeof l) ? ~~l : l.value ?? l.label
6915
- })), this.paginationConfig.itemsPerPageOptions.sort((l, n) => l.value < n.value ? -1 : 1);
6938
+ })), this.paginationConfig.itemsPerPageOptions.sort((l, a) => l.value < a.value ? -1 : 1);
6916
6939
  const i = this.paginationConfig.itemsPerPageOptions.shift();
6917
6940
  this.paginationConfig.itemsPerPageOptions.push(i), this.updatePaginationConfig({
6918
6941
  itemsPerPage: e,
@@ -6938,13 +6961,13 @@ const me = 15, lo = {
6938
6961
  * While waiting for the call to resolve, nothing in the table will change.
6939
6962
  */
6940
6963
  async callApiFetch() {
6941
- const { page: e, start: t, end: i, total: o, itemsPerPage: a } = this.paginationConfig;
6964
+ const { page: e, start: t, end: i, total: o, itemsPerPage: n } = this.paginationConfig;
6942
6965
  return await this.fetch({
6943
6966
  page: e,
6944
6967
  start: t,
6945
6968
  end: i || o,
6946
6969
  total: o,
6947
- itemsPerPage: a || o,
6970
+ itemsPerPage: n || o,
6948
6971
  sorting: this.activeSorting
6949
6972
  });
6950
6973
  }
@@ -6979,12 +7002,12 @@ const me = 15, lo = {
6979
7002
  }
6980
7003
  }
6981
7004
  }, so = /* @__PURE__ */ v(lo, [["render", io]]), oo = ["role", "aria-pressed", "tabindex"];
6982
- function ao(e, t, i, o, a, l) {
7005
+ function ao(e, t, i, o, n, l) {
6983
7006
  return s(), u("span", S({ class: "w-tag" }, M(e.$attrs, !0), {
6984
- onClick: t[1] || (t[1] = (n) => {
7007
+ onClick: t[1] || (t[1] = (a) => {
6985
7008
  e.$emit("update:modelValue", !i.modelValue), e.$emit("input", !i.modelValue);
6986
7009
  }),
6987
- onKeypress: t[2] || (t[2] = W((n) => {
7010
+ onKeypress: t[2] || (t[2] = W((a) => {
6988
7011
  e.$emit("update:modelValue", !i.modelValue), e.$emit("input", !i.modelValue);
6989
7012
  }, ["enter"])),
6990
7013
  class: l.classes,
@@ -6997,7 +7020,7 @@ function ao(e, t, i, o, a, l) {
6997
7020
  i.closable && i.modelValue ? (s(), u("i", {
6998
7021
  key: 0,
6999
7022
  class: "w-icon w-tag__closable wi-cross",
7000
- onClick: t[0] || (t[0] = z((n) => {
7023
+ onClick: t[0] || (t[0] = z((a) => {
7001
7024
  e.$emit("update:modelValue", !1), e.$emit("input", !1);
7002
7025
  }, ["stop"])),
7003
7026
  role: "icon",
@@ -7055,14 +7078,14 @@ const no = {
7055
7078
  }
7056
7079
  }
7057
7080
  }, ro = /* @__PURE__ */ v(no, [["render", ao]]), uo = ["for"], ho = ["id", "name", "placeholder", "rows", "cols", "readonly", "aria-readonly", "disabled", "required", "tabindex"], co = ["for"];
7058
- function po(e, t, i, o, a, l) {
7059
- const n = $("w-icon");
7060
- return s(), b(I(e.formRegister ? "w-form-element" : "div"), S({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: a.inputValue, disabled: e.isDisabled, readonly: e.isReadonly, isFocused: a.isFocused }, {
7081
+ function po(e, t, i, o, n, l) {
7082
+ const a = $("w-icon");
7083
+ return s(), b(I(e.formRegister ? "w-form-element" : "div"), S({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: n.inputValue, disabled: e.isDisabled, readonly: e.isReadonly, isFocused: n.isFocused }, {
7061
7084
  valid: e.valid,
7062
7085
  "onUpdate:valid": t[6] || (t[6] = (r) => e.valid = r),
7063
7086
  wrap: l.hasLabel && i.labelPosition !== "inside",
7064
7087
  onReset: t[7] || (t[7] = (r) => {
7065
- e.$emit("update:modelValue", a.inputValue = ""), e.$emit("input", "");
7088
+ e.$emit("update:modelValue", n.inputValue = ""), e.$emit("input", "");
7066
7089
  }),
7067
7090
  class: l.classes
7068
7091
  }), {
@@ -7081,7 +7104,7 @@ function po(e, t, i, o, a, l) {
7081
7104
  y("div", {
7082
7105
  class: f(["w-textarea__textarea-wrap", l.inputWrapClasses])
7083
7106
  }, [
7084
- i.innerIconLeft ? (s(), b(n, {
7107
+ i.innerIconLeft ? (s(), b(a, {
7085
7108
  key: 0,
7086
7109
  class: "w-textarea__icon w-textarea__icon--inner-left",
7087
7110
  tag: "label",
@@ -7093,10 +7116,10 @@ function po(e, t, i, o, a, l) {
7093
7116
  ]),
7094
7117
  _: 1
7095
7118
  }, 8, ["for"])) : c("", !0),
7096
- K(y("textarea", S({
7119
+ A(y("textarea", S({
7097
7120
  class: "w-textarea__textarea",
7098
7121
  ref: "textarea",
7099
- "onUpdate:modelValue": t[1] || (t[1] = (r) => a.inputValue = r)
7122
+ "onUpdate:modelValue": t[1] || (t[1] = (r) => n.inputValue = r)
7100
7123
  }, M(l.listeners, !0), {
7101
7124
  onInput: t[2] || (t[2] = (...r) => l.onInput && l.onInput(...r)),
7102
7125
  onFocus: t[3] || (t[3] = (...r) => l.onFocus && l.onFocus(...r)),
@@ -7112,7 +7135,7 @@ function po(e, t, i, o, a, l) {
7112
7135
  required: e.required || null,
7113
7136
  tabindex: e.tabindex || null
7114
7137
  }), null, 16, ho), [
7115
- [be, a.inputValue]
7138
+ [be, n.inputValue]
7116
7139
  ]),
7117
7140
  i.labelPosition === "inside" && l.showLabelInside ? (s(), u(w, { key: 1 }, [
7118
7141
  e.$slots.default || i.label ? (s(), u("label", {
@@ -7124,7 +7147,7 @@ function po(e, t, i, o, a, l) {
7124
7147
  ])
7125
7148
  ], 2)) : c("", !0)
7126
7149
  ], 64)) : c("", !0),
7127
- i.innerIconRight ? (s(), b(n, {
7150
+ i.innerIconRight ? (s(), b(a, {
7128
7151
  key: 2,
7129
7152
  class: "w-textarea__icon w-textarea__icon--inner-right",
7130
7153
  tag: "label",
@@ -7275,38 +7298,38 @@ const fo = {
7275
7298
  }
7276
7299
  }
7277
7300
  }, mo = /* @__PURE__ */ v(fo, [["render", po]]), go = ["innerHTML"], bo = ["innerHTML"];
7278
- function yo(e, t, i, o, a, l) {
7301
+ function yo(e, t, i, o, n, l) {
7279
7302
  return s(), u("ul", {
7280
7303
  class: f(["w-timeline", l.classes])
7281
7304
  }, [
7282
- (s(!0), u(w, null, L(i.items, (n, r) => (s(), u("li", {
7305
+ (s(!0), u(w, null, L(i.items, (a, r) => (s(), u("li", {
7283
7306
  class: "w-timeline-item",
7284
7307
  key: r
7285
7308
  }, [
7286
- (s(), b(I(n[i.itemIconKey] || i.icon ? "w-icon" : "div"), {
7287
- class: f(["w-timeline-item__bullet", { [n[i.itemColorKey] || i.color]: n[i.itemColorKey] || i.color }])
7309
+ (s(), b(I(a[i.itemIconKey] || i.icon ? "w-icon" : "div"), {
7310
+ class: f(["w-timeline-item__bullet", { [a[i.itemColorKey] || i.color]: a[i.itemColorKey] || i.color }])
7288
7311
  }, {
7289
7312
  default: m(() => [
7290
- B(C(n[i.itemIconKey] || i.icon), 1)
7313
+ B(C(a[i.itemIconKey] || i.icon), 1)
7291
7314
  ]),
7292
7315
  _: 2
7293
7316
  }, 1032, ["class"])),
7294
7317
  e.$slots[`item.${r + 1}`] ? p(e.$slots, `item.${r + 1}`, {
7295
7318
  key: 1,
7296
- item: n,
7319
+ item: a,
7297
7320
  index: r + 1
7298
7321
  }) : p(e.$slots, "item", {
7299
7322
  key: 0,
7300
- item: n,
7323
+ item: a,
7301
7324
  index: r + 1
7302
7325
  }, () => [
7303
7326
  y("div", {
7304
- class: f(["w-timeline-item__title", { [n[i.itemColorKey] || i.color]: n[i.itemColorKey] || i.color }]),
7305
- innerHTML: n[i.itemTitleKey]
7327
+ class: f(["w-timeline-item__title", { [a[i.itemColorKey] || i.color]: a[i.itemColorKey] || i.color }]),
7328
+ innerHTML: a[i.itemTitleKey]
7306
7329
  }, null, 10, go),
7307
7330
  y("div", {
7308
7331
  class: "w-timeline-item__content",
7309
- innerHTML: n[i.itemContentKey]
7332
+ innerHTML: a[i.itemContentKey]
7310
7333
  }, null, 8, bo)
7311
7334
  ])
7312
7335
  ]))), 128))
@@ -7335,7 +7358,7 @@ const wo = {
7335
7358
  }
7336
7359
  }
7337
7360
  }, ko = /* @__PURE__ */ v(wo, [["render", yo]]);
7338
- function vo(e, t, i, o, a, l) {
7361
+ function vo(e, t, i, o, n, l) {
7339
7362
  return s(), u("div", {
7340
7363
  class: f(["w-toolbar", l.classes]),
7341
7364
  style: R(l.styles)
@@ -7395,7 +7418,7 @@ const Co = {
7395
7418
  }
7396
7419
  }
7397
7420
  }, So = /* @__PURE__ */ v(Co, [["render", vo]]);
7398
- function Bo(e, t, i, o, a, l) {
7421
+ function Bo(e, t, i, o, n, l) {
7399
7422
  return s(), u(w, null, [
7400
7423
  p(e.$slots, "activator", { on: l.activatorEventHandlers }),
7401
7424
  V(O, {
@@ -7468,7 +7491,7 @@ const _o = {
7468
7491
  * - `alignment`
7469
7492
  **/
7470
7493
  tooltipClasses() {
7471
- return A(this.tooltipClass);
7494
+ return K(this.tooltipClass);
7472
7495
  },
7473
7496
  transitionName() {
7474
7497
  const e = this.position.replace(/top|bottom/, (t) => ({ top: "up", bottom: "down" })[t]);
@@ -7553,7 +7576,7 @@ const _o = {
7553
7576
  }
7554
7577
  // watch, mounted & beforeDestroy hooks are set in the detachable.js mixin.
7555
7578
  }, $o = /* @__PURE__ */ v(_o, [["render", Bo]]);
7556
- function Vo(e, t, i, o, a, l) {
7579
+ function Vo(e, t, i, o, n, l) {
7557
7580
  return s(), b(O, S({ name: "bounce" }, e.$props), {
7558
7581
  default: m(() => [
7559
7582
  p(e.$slots, "default")
@@ -7568,7 +7591,7 @@ const Io = {
7568
7591
  duration: { type: [Number, String] }
7569
7592
  }
7570
7593
  }, To = /* @__PURE__ */ v(Io, [["render", Vo]]);
7571
- function Lo(e, t, i, o, a, l) {
7594
+ function Lo(e, t, i, o, n, l) {
7572
7595
  return s(), b(O, {
7573
7596
  name: "expand",
7574
7597
  mode: "out-in",
@@ -7665,14 +7688,14 @@ const Ro = {
7665
7688
  saveOriginalInlineStyles(e) {
7666
7689
  this.el.originalStyles = e.style.cssText;
7667
7690
  },
7668
- show(e, t) {
7669
- this.saveComputedStyles(e), this.applyHideStyles(e), setTimeout(() => this.applyShowStyles(e), 20), setTimeout(t, this.duration);
7691
+ show(e) {
7692
+ this.saveComputedStyles(e), this.applyHideStyles(e), setTimeout(() => this.applyShowStyles(e), 20);
7670
7693
  },
7671
7694
  beforeHide(e) {
7672
7695
  this.applyShowStyles(e);
7673
7696
  },
7674
- hide(e, t) {
7675
- setTimeout(() => this.applyHideStyles(e), 20), setTimeout(t, this.duration);
7697
+ hide(e) {
7698
+ setTimeout(() => this.applyHideStyles(e), 20);
7676
7699
  },
7677
7700
  saveComputedStyles(e) {
7678
7701
  const t = window.getComputedStyle(e, null);
@@ -7680,7 +7703,7 @@ const Ro = {
7680
7703
  }
7681
7704
  }
7682
7705
  }, Po = /* @__PURE__ */ v(Ro, [["render", Lo]]);
7683
- function Oo(e, t, i, o, a, l) {
7706
+ function Oo(e, t, i, o, n, l) {
7684
7707
  return s(), b(O, S({ name: "fade" }, e.$props), {
7685
7708
  default: m(() => [
7686
7709
  p(e.$slots, "default")
@@ -7695,7 +7718,7 @@ const xo = {
7695
7718
  duration: { type: [Number, String] }
7696
7719
  }
7697
7720
  }, zo = /* @__PURE__ */ v(xo, [["render", Oo]]);
7698
- function Mo(e, t, i, o, a, l) {
7721
+ function Mo(e, t, i, o, n, l) {
7699
7722
  return s(), b(O, S({ name: "scale" }, e.$props), {
7700
7723
  default: m(() => [
7701
7724
  p(e.$slots, "default")
@@ -7710,7 +7733,7 @@ const Eo = {
7710
7733
  duration: { type: [Number, String] }
7711
7734
  }
7712
7735
  }, Wo = /* @__PURE__ */ v(Eo, [["render", Mo]]);
7713
- function Ao(e, t, i, o, a, l) {
7736
+ function Ko(e, t, i, o, n, l) {
7714
7737
  return s(), b(O, S({ name: "scale-fade" }, e.$props), {
7715
7738
  default: m(() => [
7716
7739
  p(e.$slots, "default")
@@ -7718,14 +7741,14 @@ function Ao(e, t, i, o, a, l) {
7718
7741
  _: 3
7719
7742
  }, 16);
7720
7743
  }
7721
- const Ko = {
7744
+ const Ao = {
7722
7745
  name: "w-transition-scale-fade",
7723
7746
  props: {
7724
7747
  appear: { type: Boolean },
7725
7748
  duration: { type: [Number, String] }
7726
7749
  }
7727
- }, No = /* @__PURE__ */ v(Ko, [["render", Ao]]);
7728
- function Do(e, t, i, o, a, l) {
7750
+ }, No = /* @__PURE__ */ v(Ao, [["render", Ko]]);
7751
+ function Do(e, t, i, o, n, l) {
7729
7752
  return s(), b(O, S({ name: l.transitionName }, e.$props), {
7730
7753
  default: m(() => [
7731
7754
  p(e.$slots, "default")
@@ -7752,7 +7775,7 @@ const Ho = {
7752
7775
  }
7753
7776
  }
7754
7777
  }, Fo = /* @__PURE__ */ v(Ho, [["render", Do]]);
7755
- function jo(e, t, i, o, a, l) {
7778
+ function jo(e, t, i, o, n, l) {
7756
7779
  return s(), b(O, S({ name: l.transitionName }, e.$props), {
7757
7780
  default: m(() => [
7758
7781
  p(e.$slots, "default")
@@ -7779,7 +7802,7 @@ const Uo = {
7779
7802
  }
7780
7803
  }
7781
7804
  }, qo = /* @__PURE__ */ v(Uo, [["render", jo]]);
7782
- function Xo(e, t, i, o, a, l) {
7805
+ function Xo(e, t, i, o, n, l) {
7783
7806
  return s(), b(O, S({ name: "twist" }, e.$props), {
7784
7807
  default: m(() => [
7785
7808
  p(e.$slots, "default")
@@ -7797,8 +7820,8 @@ const Yo = {
7797
7820
  key: 1,
7798
7821
  class: "ml1"
7799
7822
  };
7800
- function Zo(e, t, i, o, a, l) {
7801
- const n = $("w-button"), r = $("w-icon"), d = $("w-tree", !0);
7823
+ function Zo(e, t, i, o, n, l) {
7824
+ const a = $("w-button"), r = $("w-icon"), d = $("w-tree", !0);
7802
7825
  return s(), u("ul", {
7803
7826
  class: f(["w-tree", l.classes])
7804
7827
  }, [
@@ -7812,7 +7835,7 @@ function Zo(e, t, i, o, a, l) {
7812
7835
  tabindex: l.getTreeItemTabindex(h)
7813
7836
  }), {
7814
7837
  default: m(() => [
7815
- (h.children || h.branch) && (i.expandOpenIcon && h.open || i.expandIcon) && !(i.unexpandableEmpty && !h.children) ? (s(), b(n, {
7838
+ (h.children || h.branch) && (i.expandOpenIcon && h.open || i.expandIcon) && !(i.unexpandableEmpty && !h.children) ? (s(), b(a, {
7816
7839
  key: 0,
7817
7840
  class: "w-tree__item-expand",
7818
7841
  onClick: z((_) => !i.disabled && !h.disabled && l.onLabelClick(h, _), ["stop"]),
@@ -7948,8 +7971,8 @@ const ea = {
7948
7971
  if (this.currentDepthItems = [], !Array.isArray(e) && typeof e != "object")
7949
7972
  return j(`[w-tree] the tree items must be of type array or object, ${typeof e} received.`);
7950
7973
  Array.isArray(e) || (e = [e]), e.forEach((i, o) => {
7951
- var l, n;
7952
- const a = {
7974
+ var l, a;
7975
+ const n = {
7953
7976
  originalItem: i,
7954
7977
  // Store the original item to return it on event emits.
7955
7978
  _uid: this.depth.toString() + (o + 1),
@@ -7961,12 +7984,12 @@ const ea = {
7961
7984
  disabled: i[this.itemDisabledKey],
7962
7985
  selected: ((l = t[o]) == null ? void 0 : l.selected) || !1,
7963
7986
  depth: this.depth,
7964
- open: !!((n = t[o]) != null && n.open || this.expandAll || i[this.itemOpenKey]),
7987
+ open: !!((a = t[o]) != null && a.open || this.expandAll || i[this.itemOpenKey]),
7965
7988
  parent: this.parent || null,
7966
7989
  path: []
7967
7990
  // Ancestors path from root to leaf including self.
7968
7991
  };
7969
- a.path = this.getTreeItemPath(a), this.currentDepthItems.push(a);
7992
+ n.path = this.getTreeItemPath(n), this.currentDepthItems.push(n);
7970
7993
  });
7971
7994
  },
7972
7995
  getTreeItemComponent(e) {
@@ -8011,11 +8034,11 @@ const ea = {
8011
8034
  this.$emit("click", o), this.emitItemSelection(e, t);
8012
8035
  },
8013
8036
  onLabelKeydown(e, t) {
8014
- if (!(t.metaKey || t.ctrlKey || t.altKey || t.shiftKey) && [13, 32, 37, 38, 39, 40].includes(t.which) && ((e.children || e.branch) && ([13, 32].includes(t.which) ? this.expandDepth(e) && t.preventDefault() : t.which === 37 ? this.expandDepth(e, !1) && t.preventDefault() : t.which === 39 && this.expandDepth(e, !0) && t.preventDefault()), [38, 40].includes(t.which))) {
8015
- const o = this.$el.closest(".w-tree--depth0").querySelectorAll('.w-tree__item-label[tabindex="0"]'), a = t.target.closest(".w-tree__item-label"), l = t.which === 38 ? -1 : 1;
8016
- [...o].some((n, r) => n.isSameNode(a) ? (o[r + l] && o[r + l].focus(), !0) : !1);
8037
+ if (!(t.metaKey || t.ctrlKey || t.altKey || t.shiftKey) && [13, 32, 37, 38, 39, 40].includes(t.keyCode) && ((e.children || e.branch) && ([13, 32].includes(t.keyCode) ? this.expandDepth(e) && t.preventDefault() : t.keyCode === 37 ? this.expandDepth(e, !1) && t.preventDefault() : t.keyCode === 39 && this.expandDepth(e, !0) && t.preventDefault()), [38, 40].includes(t.keyCode))) {
8038
+ const o = this.$el.closest(".w-tree--depth0").querySelectorAll('.w-tree__item-label[tabindex="0"]'), n = t.target.closest(".w-tree__item-label"), l = t.keyCode === 38 ? -1 : 1;
8039
+ [...o].some((a, r) => a.isSameNode(n) ? (o[r + l] && o[r + l].focus(), !0) : !1);
8017
8040
  }
8018
- t.which === 13 && (this.selectable && (e.selected = !e.selected), this.emitItemSelection(e, t));
8041
+ t.keyCode === 13 && (this.selectable && (e.selected = !e.selected), this.emitItemSelection(e, t));
8019
8042
  },
8020
8043
  emitItemSelection(e, t) {
8021
8044
  const i = this.emitPayload(e, t);
@@ -8119,7 +8142,7 @@ const ea = {
8119
8142
  WRadios: Bl,
8120
8143
  WRating: Tl,
8121
8144
  WScrollable: Ol,
8122
- WSelect: Kl,
8145
+ WSelect: Al,
8123
8146
  WSlider: es,
8124
8147
  WSpinner: ss,
8125
8148
  WSteps: ns,