wave-ui 4.2.5 → 4.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  import { Fragment as e, KeepAlive as t, Teleport as n, Transition as r, TransitionGroup as i, computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createSlots as u, createTextVNode as d, createVNode as f, getCurrentInstance as p, h as m, inject as h, mergeProps as g, nextTick as _, normalizeClass as v, normalizeProps as y, normalizeStyle as b, onBeforeUnmount as ee, onMounted as te, onUnmounted as x, openBlock as S, reactive as C, ref as w, render as ne, renderList as T, renderSlot as E, resolveComponent as D, resolveDirective as re, resolveDynamicComponent as O, toDisplayString as k, toHandlers as ie, unref as ae, useAttrs as oe, useId as A, vModelDynamic as j, vModelText as M, vShow as se, watch as ce, withCtx as N, withDirectives as P, withKeys as F, withModifiers as I } from "vue";
2
- //#region \0rolldown/runtime.js
2
+ // \0rolldown/runtime.js
3
3
  var L = Object.defineProperty, le = (e, t) => {
4
4
  let n = {};
5
5
  for (var r in e) L(n, r, {
@@ -1307,13 +1307,12 @@ function Ne(t, r, a, u, d, p) {
1307
1307
  _: 1
1308
1308
  }, 8, ["class", "name"])]);
1309
1309
  }
1310
- //#endregion
1311
- //#region \0plugin-vue:export-helper
1310
+ // \0plugin-vue:export-helper
1312
1311
  var G = (e, t) => {
1313
1312
  let n = e.__vccOpts || e;
1314
1313
  for (let [e, r] of t) n[e] = r;
1315
1314
  return n;
1316
- }, Pe = /* @__PURE__ */ G({
1315
+ }, Pe = /*#__PURE__*/ G({
1317
1316
  name: "w-notification-manager",
1318
1317
  computed: {
1319
1318
  conf() {
@@ -1363,7 +1362,7 @@ var G = (e, t) => {
1363
1362
  timeout: i || i === 0 ? parseFloat(i) : 4e3
1364
1363
  };
1365
1364
  }
1366
- t.dismiss &&= () => this.dismiss(t._uid), this.notifications.push(t), ~~t.timeout !== 0 && setTimeout(() => this.dismiss(t._uid), t.timeout);
1365
+ t.dismiss && (t.dismiss = () => this.dismiss(t._uid)), this.notifications.push(t), ~~t.timeout !== 0 && setTimeout(() => this.dismiss(t._uid), t.timeout);
1367
1366
  }
1368
1367
  dismiss(e) {
1369
1368
  this.notifications = this.notifications.filter((t) => t._uid !== e);
@@ -1374,8 +1373,7 @@ var G = (e, t) => {
1374
1373
  let n = m(Pe);
1375
1374
  n.appContext = e._context, ne(n, t), t.remove();
1376
1375
  };
1377
- //#endregion
1378
- //#region src/wave-ui/utils/ripple.js
1376
+ // src/wave-ui/utils/ripple.js
1379
1377
  function Le(e, t, n = {}) {
1380
1378
  if (typeof window > "u" || typeof document > "u" || !e?.ownerDocument || n.disabled || window.matchMedia?.("(prefers-reduced-motion: reduce)")?.matches) return;
1381
1379
  let r = typeof t.clientX == "number" ? t.clientX : null, i = typeof t.clientY == "number" ? t.clientY : null;
@@ -1398,8 +1396,7 @@ function Re(e) {
1398
1396
  function ze(e, t) {
1399
1397
  return typeof e == "boolean" ? e : t?.config?.ripple !== !1;
1400
1398
  }
1401
- //#endregion
1402
- //#region src/wave-ui/utils/wave-ripple-directive.js
1399
+ // src/wave-ui/utils/wave-ripple-directive.js
1403
1400
  function Be(e) {
1404
1401
  let t = e.value;
1405
1402
  return !!(t === !1 || t && typeof t == "object" && t.disabled);
@@ -1425,7 +1422,7 @@ var He = {
1425
1422
  unmounted(e) {
1426
1423
  e.removeEventListener("pointerdown", e.__waveRippleHandler), delete e.__waveRippleHandler, delete e.__waveRippleLastBinding;
1427
1424
  }
1428
- }, Ue = new Set(["w-menu", "w-tooltip"]);
1425
+ }, Ue = /* @__PURE__ */ new Set(["w-menu", "w-tooltip"]);
1429
1426
  function K(e, t) {
1430
1427
  let n = e;
1431
1428
  for (; n;) {
@@ -1470,11 +1467,7 @@ function $e(e) {
1470
1467
  }
1471
1468
  function et(e, t, n) {
1472
1469
  let r = Xe(t, n), i = () => Ze(r, e), a = Ye(t, n);
1473
- if (a) {
1474
- Qe(e, a, i);
1475
- return;
1476
- }
1477
- _(i);
1470
+ a ? Qe(e, a, i) : _(i);
1478
1471
  }
1479
1472
  function q(e) {
1480
1473
  e?.focus?.();
@@ -1499,11 +1492,7 @@ function it(e) {
1499
1492
  let n = e?.proxy, r = t.el ?? n?.$el;
1500
1493
  if (!r) return;
1501
1494
  let i = () => n?.focus?.(), a = Je(e);
1502
- if (a) {
1503
- Qe(r, a, i);
1504
- return;
1505
- }
1506
- i();
1495
+ a ? Qe(r, a, i) : i();
1507
1496
  }
1508
1497
  var J = {
1509
1498
  mounted() {
@@ -1522,8 +1511,7 @@ function at() {
1522
1511
  e && $e(e);
1523
1512
  });
1524
1513
  }
1525
- //#endregion
1526
- //#region src/wave-ui/core.js
1514
+ // src/wave-ui/core.js
1527
1515
  var ot = !1, st = (e) => {
1528
1516
  let t = window.matchMedia("(prefers-color-scheme: dark)");
1529
1517
  e.preferredTheme = t.matches ? "dark" : "light", e.switchTheme(e.preferredTheme), t.addEventListener("change", (t) => {
@@ -1646,7 +1634,7 @@ var ot = !1, st = (e) => {
1646
1634
  default: void 0
1647
1635
  } },
1648
1636
  computed: { rippleActive() {
1649
- return ze(this.noRipple ? !1 : void 0, this.$waveui);
1637
+ return ze(!this.noRipple && void 0, this.$waveui);
1650
1638
  } },
1651
1639
  methods: { onRipple(e, t, n) {
1652
1640
  if (!this.rippleActive || !e) return;
@@ -1661,7 +1649,7 @@ var ot = !1, st = (e) => {
1661
1649
  function dt(e, t, n, r, i, a) {
1662
1650
  return S(), c("div", ut, [E(e.$slots, "default")]);
1663
1651
  }
1664
- var ft = /* @__PURE__ */ G({
1652
+ var ft = /*#__PURE__*/ G({
1665
1653
  name: "accordion-content",
1666
1654
  props: { item: {
1667
1655
  type: Object,
@@ -1730,16 +1718,14 @@ function bt(e, n, r, i, a, u) {
1730
1718
  class: v(u.contentClasses)
1731
1719
  }, {
1732
1720
  default: N(() => [e.$slots.content ? E(e.$slots, "content", {
1733
- key: 0,
1734
1721
  item: u.getOriginalItem(u.accordionItem),
1735
1722
  expanded: u.accordionItem._expanded,
1736
1723
  index: u.accordionItem._index + 1
1737
- }, () => [l("div", { innerHTML: u.accordionItem[u.options.itemContentKey] }, null, 8, gt)]) : E(e.$slots, "default", {
1738
- key: 1,
1724
+ }, () => [l("div", { innerHTML: u.accordionItem[u.options.itemContentKey] }, null, 8, gt)], void 0, 0) : E(e.$slots, "default", {
1739
1725
  item: u.getOriginalItem(u.accordionItem),
1740
1726
  expanded: u.accordionItem._expanded,
1741
1727
  index: u.accordionItem._index + 1
1742
- }, () => [l("div", { innerHTML: u.accordionItem[u.options.itemContentKey] }, null, 8, _t)])]),
1728
+ }, () => [l("div", { innerHTML: u.accordionItem[u.options.itemContentKey] }, null, 8, _t)], void 0, 1)]),
1743
1729
  _: 3
1744
1730
  }, 8, ["item", "class"]), [[se, u.accordionItem._expanded]])]),
1745
1731
  _: 3
@@ -1755,22 +1741,20 @@ function bt(e, n, r, i, a, u) {
1755
1741
  class: v(u.contentClasses)
1756
1742
  }, {
1757
1743
  default: N(() => [e.$slots.content ? E(e.$slots, "content", {
1758
- key: 0,
1759
1744
  item: u.getOriginalItem(u.accordionItem),
1760
1745
  expanded: u.accordionItem._expanded,
1761
1746
  index: u.accordionItem._index + 1
1762
- }, () => [l("div", { innerHTML: u.accordionItem[u.options.itemContentKey] }, null, 8, vt)]) : E(e.$slots, "default", {
1763
- key: 1,
1747
+ }, () => [l("div", { innerHTML: u.accordionItem[u.options.itemContentKey] }, null, 8, vt)], void 0, 0) : E(e.$slots, "default", {
1764
1748
  item: u.getOriginalItem(u.accordionItem),
1765
1749
  expanded: u.accordionItem._expanded,
1766
1750
  index: u.accordionItem._index + 1
1767
- }, () => [l("div", { innerHTML: u.accordionItem[u.options.itemContentKey] }, null, 8, yt)])]),
1751
+ }, () => [l("div", { innerHTML: u.accordionItem[u.options.itemContentKey] }, null, 8, yt)], void 0, 1)]),
1768
1752
  _: 3
1769
1753
  }, 8, ["item", "class"])) : s("", !0)], 1032, ["exclude"]))]),
1770
1754
  _: 3
1771
1755
  }, 8, ["duration"]))], 10, pt);
1772
1756
  }
1773
- var xt = /* @__PURE__ */ G({
1757
+ var xt = /*#__PURE__*/ G({
1774
1758
  name: "w-accordion-item",
1775
1759
  focusable: !0,
1776
1760
  expose: ["focus"],
@@ -1810,7 +1794,7 @@ var xt = /* @__PURE__ */ G({
1810
1794
  let t = this.getAccordionNoRipple?.();
1811
1795
  e = typeof t == "boolean" ? t : void 0;
1812
1796
  }
1813
- return ze(e ? !1 : void 0, this.$waveui);
1797
+ return ze(!e && void 0, this.$waveui);
1814
1798
  },
1815
1799
  accordionTitleClasses() {
1816
1800
  return {
@@ -1858,11 +1842,10 @@ var xt = /* @__PURE__ */ G({
1858
1842
  this.unregisterItem(this.accordionItemUid);
1859
1843
  }
1860
1844
  }, [["render", bt]]);
1861
- //#endregion
1862
- //#region src/wave-ui/components/w-accordion/index.vue?vue&type=template&lang.js
1845
+ // src/wave-ui/components/w-accordion/index.vue?vue&type=template&lang.js
1863
1846
  function St(t, n, r, i, a, l) {
1864
1847
  let u = D("w-accordion-item");
1865
- return S(), c("div", { class: v(["w-accordion", l.accordionClasses]) }, [l.accordionItemsProvided ? E(t.$slots, "default", { key: 0 }) : (r.items || []).length ? (S(!0), c(e, { key: 1 }, T(r.items.length ? r.items : t.accordionItems, (e, r) => (S(), o(u, {
1848
+ return S(), c("div", { class: v(["w-accordion", l.accordionClasses]) }, [l.accordionItemsProvided ? E(t.$slots, "default", {}, void 0, void 0, 0) : (r.items || []).length ? (S(!0), c(e, { key: 1 }, T(r.items.length ? r.items : t.accordionItems, (e, r) => (S(), o(u, {
1866
1849
  key: r,
1867
1850
  class: v(l.itemClasses),
1868
1851
  title: e.title,
@@ -1872,27 +1855,23 @@ function St(t, n, r, i, a, l) {
1872
1855
  onFocus: n[0] ||= (e) => t.$emit("focus", e)
1873
1856
  }, {
1874
1857
  title: N(({ item: e, expanded: n, index: r }) => [t.$slots[`item-title.${e.id || r}`] ? E(t.$slots, `item-title.${e.id || r}`, {
1875
- key: 0,
1876
1858
  item: e,
1877
1859
  expanded: n,
1878
1860
  index: r
1879
- }) : E(t.$slots, "item-title", {
1880
- key: 1,
1861
+ }, void 0, void 0, 0) : E(t.$slots, "item-title", {
1881
1862
  item: e,
1882
1863
  expanded: n,
1883
1864
  index: r
1884
- })]),
1865
+ }, void 0, void 0, 1)]),
1885
1866
  content: N(({ item: e, expanded: n, index: r }) => [t.$slots[`item-content.${e.id || r}`] ? E(t.$slots, `item-content.${e.id || r}`, {
1886
- key: 0,
1887
1867
  item: e,
1888
1868
  expanded: n,
1889
1869
  index: r
1890
- }) : E(t.$slots, "item-content", {
1891
- key: 1,
1870
+ }, void 0, void 0, 0) : E(t.$slots, "item-content", {
1892
1871
  item: e,
1893
1872
  expanded: n,
1894
1873
  index: r
1895
- })]),
1874
+ }, void 0, void 0, 1)]),
1896
1875
  _: 2
1897
1876
  }, 1032, [
1898
1877
  "class",
@@ -1902,7 +1881,7 @@ function St(t, n, r, i, a, l) {
1902
1881
  "disabled"
1903
1882
  ]))), 128)) : s("", !0)], 2);
1904
1883
  }
1905
- var Ct = /* @__PURE__ */ G({
1884
+ var Ct = /*#__PURE__*/ G({
1906
1885
  name: "w-accordion",
1907
1886
  mixins: [X],
1908
1887
  props: {
@@ -2099,9 +2078,9 @@ function Et(t, n, r, i, a, u) {
2099
2078
  sm: "",
2100
2079
  text: ""
2101
2080
  })) : s("", !0)
2102
- ], 64)) : E(t.$slots, "default", { key: 1 })], 10, wt)) : s("", !0);
2081
+ ], 64)) : E(t.$slots, "default", {}, void 0, void 0, 1)], 10, wt)) : s("", !0);
2103
2082
  }
2104
- var Dt = /* @__PURE__ */ G({
2083
+ var Dt = /*#__PURE__*/ G({
2105
2084
  name: "w-alert",
2106
2085
  props: {
2107
2086
  modelValue: { default: !0 },
@@ -2183,8 +2162,7 @@ var Dt = /* @__PURE__ */ G({
2183
2162
  this.show = e;
2184
2163
  } }
2185
2164
  }, [["render", Et]]);
2186
- //#endregion
2187
- //#region src/wave-ui/mixins/form-elements.js
2165
+ // src/wave-ui/mixins/form-elements.js
2188
2166
  function Z() {
2189
2167
  return { waveUiUseId: A() };
2190
2168
  }
@@ -2416,7 +2394,7 @@ function It(t, n, r, i, a, u) {
2416
2394
  "style"
2417
2395
  ]);
2418
2396
  }
2419
- var Lt = /* @__PURE__ */ G({
2397
+ var Lt = /*#__PURE__*/ G({
2420
2398
  name: "w-autocomplete",
2421
2399
  expose: ["focus"],
2422
2400
  mixins: [Q, $],
@@ -2645,20 +2623,22 @@ var Lt = /* @__PURE__ */ G({
2645
2623
  },
2646
2624
  onKeydown(e) {
2647
2625
  let t = this.filteredItems.length + +!!this.$slots["extra-item"];
2648
- if ((!this.openOnKeydown || (this.keywords || e.key.length === 1) && !this.menuOpen) && this.openMenu(), e.keyCode === 9) this.closeMenu();
2626
+ if (this.openOnKeydown && (!this.keywords && e.key.length !== 1 || this.menuOpen) || this.openMenu(), e.keyCode === 9) this.closeMenu();
2649
2627
  else if (e.keyCode === 8 && (!this.keywords || !e.target.selectionStart && !e.target.selectionEnd)) this.unselectItem();
2650
2628
  else if (e.keyCode === 13) e.preventDefault(), this.highlightedItem === "extra-item" ? this.selectExtraItem() : this.highlightedItemIndex >= 0 && this.selectItem(this.filteredItems[this.highlightedItemIndex]);
2651
2629
  else if ([38, 40].includes(e.keyCode)) {
2652
2630
  e.preventDefault();
2653
2631
  let n = this.highlightedItemIndex;
2654
- n = n === -1 ? e.keyCode === 38 ? t - 1 : 0 : (n + (e.keyCode === 38 ? -1 : 1) + t) % t, this.$slots["extra-item"] && n === t - 1 ? this.highlightedItem = "extra-item" : this.highlightedItem = this.filteredItems[n]?.uid ?? 0;
2632
+ n = n === -1 ? e.keyCode === 38 ? t - 1 : 0 : (n + (e.keyCode === 38 ? -1 : 1) + t) % t, this.highlightedItem = this.$slots["extra-item"] && n === t - 1 ? "extra-item" : this.filteredItems[n]?.uid ?? 0;
2655
2633
  let r = this.$refs.listWrap;
2656
- if (r) if (this.$slots["extra-item"] && n === t - 1) r.scrollTop = r.scrollHeight;
2657
- else {
2658
- let e = this.$refs.list?.$el?.childNodes[n];
2659
- if (e) {
2660
- let { offsetHeight: t, offsetTop: n } = e;
2661
- r.scrollTop + r.offsetHeight - t < n ? r.scrollTop = n - r.offsetHeight + t : r.scrollTop > n && (r.scrollTop = n);
2634
+ if (r) {
2635
+ if (this.$slots["extra-item"] && n === t - 1) r.scrollTop = r.scrollHeight;
2636
+ else {
2637
+ let e = this.$refs.list?.$el?.childNodes[n];
2638
+ if (e) {
2639
+ let { offsetHeight: t, offsetTop: n } = e;
2640
+ r.scrollTop + r.offsetHeight - t < n ? r.scrollTop = n - r.offsetHeight + t : r.scrollTop > n && (r.scrollTop = n);
2641
+ }
2662
2642
  }
2663
2643
  }
2664
2644
  } else !this.multiple && this.selection.length && e.key.length === 1 && e.preventDefault();
@@ -2729,11 +2709,11 @@ function Bt(e, t, n, i, a, o) {
2729
2709
  "aria-label": n.dot ? void 0 : n.ariaLabel || (n.modelValue === !0 ? "Badge" : String(n.modelValue)),
2730
2710
  "aria-live": n.dot ? void 0 : "polite",
2731
2711
  role: n.dot ? void 0 : "status"
2732
- }, [n.dot ? s("", !0) : E(e.$slots, "badge", { key: 0 }, () => [d(k(n.modelValue === !0 ? "" : n.modelValue || ""), 1)])], 14, zt)) : s("", !0)]),
2712
+ }, [n.dot ? s("", !0) : E(e.$slots, "badge", {}, () => [d(k(n.modelValue === !0 ? "" : n.modelValue || ""), 1)], void 0, 0)], 14, zt)) : s("", !0)]),
2733
2713
  _: 3
2734
2714
  }, 8, ["name"])]);
2735
2715
  }
2736
- var Vt = /* @__PURE__ */ G({
2716
+ var Vt = /*#__PURE__*/ G({
2737
2717
  name: "w-badge",
2738
2718
  props: {
2739
2719
  modelValue: { default: !0 },
@@ -2857,7 +2837,7 @@ function Ut(t, n, r, i, a, l) {
2857
2837
  innerHTML: n[r.itemLabelKey]
2858
2838
  }, null, 8, Ht))], 64))), 256))], 2);
2859
2839
  }
2860
- var Wt = /* @__PURE__ */ G({
2840
+ var Wt = /*#__PURE__*/ G({
2861
2841
  name: "w-breadcrumbs",
2862
2842
  mixins: [X],
2863
2843
  props: {
@@ -2922,7 +2902,7 @@ function Kt(e, t, n, i, a, u) {
2922
2902
  default: N(() => [n.icon ? (S(), o(p, y(g({ key: 0 }, n.iconProps || {})), {
2923
2903
  default: N(() => [d(k(n.icon), 1)]),
2924
2904
  _: 1
2925
- }, 16)) : E(e.$slots, "default", { key: 1 }), f(r, { name: "scale-fade" }, {
2905
+ }, 16)) : E(e.$slots, "default", {}, void 0, void 0, 1), f(r, { name: "scale-fade" }, {
2926
2906
  default: N(() => [n.loading ? (S(), c("div", Gt, [E(e.$slots, "loading", {}, () => [t[0] ||= l("svg", { viewBox: "0 0 40 40" }, [l("circle", {
2927
2907
  cx: "20",
2928
2908
  cy: "20",
@@ -2944,7 +2924,7 @@ function Kt(e, t, n, i, a, u) {
2944
2924
  "onPointerdown"
2945
2925
  ]);
2946
2926
  }
2947
- var qt = /* @__PURE__ */ G({
2927
+ var qt = /*#__PURE__*/ G({
2948
2928
  inheritAttrs: !1,
2949
2929
  mixins: [X],
2950
2930
  props: {
@@ -2986,7 +2966,8 @@ var qt = /* @__PURE__ */ G({
2986
2966
  sm: { type: Boolean },
2987
2967
  md: { type: Boolean },
2988
2968
  lg: { type: Boolean },
2989
- xl: { type: Boolean }
2969
+ xl: { type: Boolean },
2970
+ active: { type: Boolean }
2990
2971
  },
2991
2972
  emits: [],
2992
2973
  methods: { onPointerDownRipple(e) {
@@ -3034,6 +3015,7 @@ var qt = /* @__PURE__ */ G({
3034
3015
  "w-button--loading": this.loading,
3035
3016
  "w-button--icon": this.icon,
3036
3017
  [`size--${this.size}`]: !0,
3018
+ "w-button--active": this.active,
3037
3019
  "w-button--absolute": this.absolute,
3038
3020
  "w-button--fixed": this.fixed,
3039
3021
  [`w-button--${this.position.join(" w-button--")}`]: this.absolute || this.fixed
@@ -3066,7 +3048,7 @@ function Yt(e, t, n, r, i, a) {
3066
3048
  _: 3
3067
3049
  }, 16));
3068
3050
  }
3069
- var Xt = /* @__PURE__ */ G({
3051
+ var Xt = /*#__PURE__*/ G({
3070
3052
  name: "w-button",
3071
3053
  expose: ["focus"],
3072
3054
  inheritAttrs: !1,
@@ -3118,22 +3100,226 @@ var Xt = /* @__PURE__ */ G({
3118
3100
  noRipple: {
3119
3101
  type: Boolean,
3120
3102
  default: void 0
3121
- }
3103
+ },
3104
+ active: { type: Boolean }
3122
3105
  },
3123
3106
  components: { ButtonPartial: qt },
3124
- emits: [],
3125
- computed: { buttonProps() {
3126
- let { tooltip: e, tooltipProps: t = {}, ...n } = this.$props;
3127
- return {
3128
- ...n,
3129
- ...this.$attrs
3130
- };
3107
+ inject: { buttonsGroup: {
3108
+ from: "wButtons",
3109
+ default: null
3131
3110
  } },
3111
+ emits: [],
3112
+ computed: {
3113
+ inSlotGroup() {
3114
+ return !(!this.buttonsGroup || this.buttonsGroup.items);
3115
+ },
3116
+ resolvedActive() {
3117
+ return this.inSlotGroup ? this.buttonsGroup.isSlotActive(this) : this.active;
3118
+ },
3119
+ buttonProps() {
3120
+ let { tooltip: e, tooltipProps: t = {}, active: n, disabled: r, ...i } = this.$props;
3121
+ return {
3122
+ ...i,
3123
+ ...this.$attrs,
3124
+ disabled: this.inSlotGroup ? r || this.buttonsGroup.disabled : r,
3125
+ active: this.resolvedActive,
3126
+ "aria-pressed": this.inSlotGroup ? this.resolvedActive ? "true" : "false" : this.$attrs["aria-pressed"],
3127
+ class: [this.$attrs.class, this.inSlotGroup && { "w-buttons__btn--active": this.resolvedActive }]
3128
+ };
3129
+ }
3130
+ },
3132
3131
  methods: { focus() {
3133
3132
  this.disabled || q(this.$refs.button?.$el);
3134
- } }
3135
- }, [["render", Yt]]), Zt = ["id"], Qt = ["innerHTML", "id"];
3136
- function $t(e, t, n, r, i, a) {
3133
+ } },
3134
+ mounted() {
3135
+ this.inSlotGroup && this.buttonsGroup.register(this);
3136
+ },
3137
+ beforeUnmount() {
3138
+ this.inSlotGroup && this.buttonsGroup.unregister(this);
3139
+ }
3140
+ }, [["render", Yt]]);
3141
+ // src/wave-ui/components/w-buttons.vue?vue&type=template&lang.js
3142
+ function Zt(t, n, r, i, a, s) {
3143
+ let l = D("w-button");
3144
+ return S(), c("div", {
3145
+ class: v(["w-buttons", s.wrapperClasses]),
3146
+ style: b(s.wrapperStyle),
3147
+ role: "group",
3148
+ onClick: n[0] ||= (...e) => s.onGroupClick && s.onGroupClick(...e)
3149
+ }, [r.items ? (S(!0), c(e, { key: 0 }, T(s.buttonItems, (e, n) => (S(), o(l, g({ key: n }, { ref_for: !0 }, s.btnProps(e), { onClick: (t) => s.onItemClick(e, t) }), {
3150
+ default: N(() => [E(t.$slots, "default", {
3151
+ item: e,
3152
+ index: n,
3153
+ active: e._active
3154
+ }, () => [d(k(e.label), 1)])]),
3155
+ _: 2
3156
+ }, 1040, ["onClick"]))), 128)) : E(t.$slots, "default", {}, void 0, void 0, 1)], 6);
3157
+ }
3158
+ var Qt = /*#__PURE__*/ G({
3159
+ name: "w-buttons",
3160
+ inheritAttrs: !1,
3161
+ props: {
3162
+ items: { type: Array },
3163
+ modelValue: { type: [
3164
+ Number,
3165
+ String,
3166
+ Array
3167
+ ] },
3168
+ itemValueKey: { type: String },
3169
+ multiple: { type: Boolean },
3170
+ mandatory: { type: Boolean },
3171
+ disabled: { type: Boolean },
3172
+ gap: {
3173
+ type: [Number, String],
3174
+ default: 0
3175
+ },
3176
+ buttonClass: { type: [
3177
+ String,
3178
+ Object,
3179
+ Array
3180
+ ] },
3181
+ color: { type: String },
3182
+ bgColor: { type: String },
3183
+ activeColor: { type: String },
3184
+ activeBgColor: { type: String },
3185
+ dark: { type: Boolean },
3186
+ light: { type: Boolean },
3187
+ outline: { type: Boolean },
3188
+ text: { type: Boolean },
3189
+ round: { type: Boolean },
3190
+ shadow: { type: Boolean },
3191
+ tile: { type: Boolean },
3192
+ type: { type: String },
3193
+ noRipple: {
3194
+ type: Boolean,
3195
+ default: void 0
3196
+ },
3197
+ xs: { type: Boolean },
3198
+ sm: { type: Boolean },
3199
+ md: { type: Boolean },
3200
+ lg: { type: Boolean },
3201
+ xl: { type: Boolean },
3202
+ width: { type: [Number, String] },
3203
+ height: { type: [Number, String] }
3204
+ },
3205
+ emits: ["update:modelValue", "click"],
3206
+ provide() {
3207
+ return { wButtons: this };
3208
+ },
3209
+ created() {
3210
+ this.childButtons = [];
3211
+ },
3212
+ computed: {
3213
+ hasGap() {
3214
+ return !!~~this.gap;
3215
+ },
3216
+ resolvedValueKey() {
3217
+ return this.itemValueKey ? this.itemValueKey : this.items?.length && this.items.every((e) => e.id !== void 0) ? "id" : this.items?.length && this.items.every((e) => e.value !== void 0) ? "value" : null;
3218
+ },
3219
+ buttonItems() {
3220
+ return (this.items || []).map((e, t) => {
3221
+ let n = this.resolvedValueKey ? e[this.resolvedValueKey] : t, r = this.modelValue !== void 0 && this.modelValue !== null ? this.multiple ? Array.isArray(this.modelValue) && this.modelValue.includes(n) : this.modelValue === n : !!e.active;
3222
+ return {
3223
+ ...e,
3224
+ _index: t,
3225
+ _val: n,
3226
+ _active: r
3227
+ };
3228
+ });
3229
+ },
3230
+ wrapperClasses() {
3231
+ return [
3232
+ "w-buttons",
3233
+ this.hasGap && "w-buttons--gap",
3234
+ this.round && "w-buttons--round",
3235
+ this.shadow && !this.hasGap && "w-buttons--shadow",
3236
+ this.tile && "w-buttons--tile"
3237
+ ];
3238
+ },
3239
+ wrapperStyle() {
3240
+ return this.hasGap ? { gap: `calc(var(--w-base-increment) * ${~~this.gap})` } : null;
3241
+ },
3242
+ sharedProps() {
3243
+ return {
3244
+ type: this.type,
3245
+ dark: this.dark || null,
3246
+ light: this.light || null,
3247
+ tile: this.tile || null,
3248
+ noRipple: this.noRipple,
3249
+ xs: this.xs || null,
3250
+ sm: this.sm || null,
3251
+ md: this.md || null,
3252
+ lg: this.lg || null,
3253
+ xl: this.xl || null,
3254
+ width: this.width,
3255
+ height: this.height
3256
+ };
3257
+ }
3258
+ },
3259
+ methods: {
3260
+ isActive(e) {
3261
+ return this.modelValue === void 0 || this.modelValue === null ? !1 : this.multiple ? Array.isArray(this.modelValue) && this.modelValue.includes(e) : this.modelValue === e;
3262
+ },
3263
+ btnProps(e) {
3264
+ let t = e._active;
3265
+ return {
3266
+ ...this.sharedProps,
3267
+ color: t ? this.activeColor || e.color || this.color : e.color || this.color || null,
3268
+ bgColor: t && (this.activeBgColor || e.bgColor) || null,
3269
+ outline: !t && this.outline || null,
3270
+ text: !t && !this.outline || null,
3271
+ shadow: this.hasGap && this.shadow || null,
3272
+ round: this.hasGap && this.round || null,
3273
+ icon: this.$slots.default ? null : e.icon || null,
3274
+ iconProps: e.iconProps,
3275
+ disabled: this.disabled || e.disabled || null,
3276
+ active: t,
3277
+ "aria-pressed": t ? "true" : "false",
3278
+ class: [
3279
+ this.buttonClass,
3280
+ e.class,
3281
+ { "w-buttons__btn--active": t }
3282
+ ]
3283
+ };
3284
+ },
3285
+ onItemClick(e, t) {
3286
+ this.disabled || e.disabled || (this.toggle(e._val, e._index), this.$emit("click", e, e._index, t));
3287
+ },
3288
+ onGroupClick(e) {
3289
+ if (this.items || this.disabled) return;
3290
+ let t = this.childButtons.find((t) => t.$el === e.target || t.$el?.contains?.(e.target));
3291
+ if (!t || t.disabled || t.loading) return;
3292
+ let n = this.childButtons.indexOf(t);
3293
+ this.toggle(n, n), this.$emit("click", null, n, e);
3294
+ },
3295
+ register(e) {
3296
+ this.childButtons.includes(e) || this.childButtons.push(e), e.$forceUpdate?.();
3297
+ },
3298
+ unregister(e) {
3299
+ let t = this.childButtons.indexOf(e);
3300
+ t >= 0 && this.childButtons.splice(t, 1);
3301
+ },
3302
+ isSlotActive(e) {
3303
+ return this.isActive(this.childButtons.indexOf(e));
3304
+ },
3305
+ toggle(e, t) {
3306
+ let n;
3307
+ if (this.multiple) {
3308
+ let t = Array.isArray(this.modelValue) ? [...this.modelValue] : [];
3309
+ if (t.indexOf(e) === -1) n = [...t, e];
3310
+ else {
3311
+ if (this.mandatory && t.length === 1) return;
3312
+ n = t.filter((t) => t !== e);
3313
+ }
3314
+ } else if (this.modelValue === e) {
3315
+ if (this.mandatory) return;
3316
+ n = null;
3317
+ } else n = e;
3318
+ this.$emit("update:modelValue", n);
3319
+ }
3320
+ }
3321
+ }, [["render", Zt]]), $t = ["id"], en = ["innerHTML", "id"];
3322
+ function tn(e, t, n, r, i, a) {
3137
3323
  let u = D("w-image");
3138
3324
  return S(), c("div", { class: v(["w-card", a.classes]) }, [
3139
3325
  e.$slots.title ? (S(), c("div", {
@@ -3143,7 +3329,7 @@ function $t(e, t, n, r, i, a) {
3143
3329
  ...a.titleClasses
3144
3330
  }]),
3145
3331
  id: n.titleId || void 0
3146
- }, [E(e.$slots, "title")], 10, Zt)) : n.title ? (S(), c("div", {
3332
+ }, [E(e.$slots, "title")], 10, $t)) : n.title ? (S(), c("div", {
3147
3333
  key: 1,
3148
3334
  class: v(["w-card__title", {
3149
3335
  "w-card__title--has-toolbar": e.$slots.title && a.titleHasToolbar,
@@ -3151,7 +3337,7 @@ function $t(e, t, n, r, i, a) {
3151
3337
  }]),
3152
3338
  innerHTML: n.title,
3153
3339
  id: n.titleId || void 0
3154
- }, null, 10, Qt)) : s("", !0),
3340
+ }, null, 10, en)) : s("", !0),
3155
3341
  n.image ? (S(), o(u, g({
3156
3342
  key: 2,
3157
3343
  class: "w-card__image",
@@ -3167,7 +3353,7 @@ function $t(e, t, n, r, i, a) {
3167
3353
  }, [E(e.$slots, "actions")], 2)) : s("", !0)
3168
3354
  ], 2);
3169
3355
  }
3170
- var en = /* @__PURE__ */ G({
3356
+ var nn = /*#__PURE__*/ G({
3171
3357
  name: "w-card",
3172
3358
  props: {
3173
3359
  color: { type: String },
@@ -3228,7 +3414,7 @@ var en = /* @__PURE__ */ G({
3228
3414
  };
3229
3415
  }
3230
3416
  }
3231
- }, [["render", $t]]), tn = [
3417
+ }, [["render", tn]]), rn = [
3232
3418
  "id",
3233
3419
  "name",
3234
3420
  "checked",
@@ -3237,8 +3423,8 @@ var en = /* @__PURE__ */ G({
3237
3423
  "tabindex",
3238
3424
  "aria-checked",
3239
3425
  "aria-invalid"
3240
- ], nn = ["for"], rn = ["for", "innerHTML"], an = ["for"], on = ["for", "innerHTML"];
3241
- function sn(t, n, r, i, a, u) {
3426
+ ], an = ["for"], on = ["for", "innerHTML"], sn = ["for"], cn = ["for", "innerHTML"];
3427
+ function ln(t, n, r, i, a, u) {
3242
3428
  return S(), o(O(t.formRegister && !u.wCheckboxes ? "w-form-element" : "div"), g({ ref: "formEl" }, t.formRegister && {
3243
3429
  validators: t.validators,
3244
3430
  inputValue: a.isChecked,
@@ -3270,17 +3456,17 @@ function sn(t, n, r, i, a, u) {
3270
3456
  "aria-checked": a.isChecked || "false",
3271
3457
  "aria-invalid": t.valid === !1 ? "true" : void 0,
3272
3458
  role: "checkbox"
3273
- }, null, 40, tn),
3459
+ }, null, 40, rn),
3274
3460
  u.hasLabel && r.labelOnLeft ? (S(), c(e, { key: 0 }, [t.$slots.default ? (S(), c("label", {
3275
3461
  key: 0,
3276
3462
  class: v(["w-checkbox__label w-form-el-shakable pr2", t.labelClasses]),
3277
3463
  for: t.inputId
3278
- }, [E(t.$slots, "default", {}, () => [d(k(r.label), 1)])], 10, nn)) : r.label ? (S(), c("label", {
3464
+ }, [E(t.$slots, "default", {}, () => [d(k(r.label), 1)])], 10, an)) : r.label ? (S(), c("label", {
3279
3465
  key: 1,
3280
3466
  class: v(["w-checkbox__label w-form-el-shakable pr2", t.labelClasses]),
3281
3467
  for: t.inputId,
3282
3468
  innerHTML: r.label
3283
- }, null, 10, rn)) : s("", !0)], 64)) : s("", !0),
3469
+ }, null, 10, on)) : s("", !0)], 64)) : s("", !0),
3284
3470
  l("div", {
3285
3471
  class: v(["w-checkbox__input", this.color]),
3286
3472
  onClick: n[4] ||= (e) => {
@@ -3291,17 +3477,17 @@ function sn(t, n, r, i, a, u) {
3291
3477
  key: 0,
3292
3478
  class: v(["w-checkbox__label w-form-el-shakable pl2", t.labelClasses]),
3293
3479
  for: t.inputId
3294
- }, [E(t.$slots, "default", {}, () => [d(k(r.label), 1)])], 10, an)) : r.label ? (S(), c("label", {
3480
+ }, [E(t.$slots, "default", {}, () => [d(k(r.label), 1)])], 10, sn)) : r.label ? (S(), c("label", {
3295
3481
  key: 1,
3296
3482
  class: v(["w-checkbox__label w-form-el-shakable pl2", t.labelClasses]),
3297
3483
  for: t.inputId,
3298
3484
  innerHTML: r.label
3299
- }, null, 10, on)) : s("", !0)], 64)) : s("", !0)
3485
+ }, null, 10, cn)) : s("", !0)], 64)) : s("", !0)
3300
3486
  ]),
3301
3487
  _: 3
3302
3488
  }, 16, ["valid", "class"]);
3303
3489
  }
3304
- var cn = /* @__PURE__ */ G({
3490
+ var un = /*#__PURE__*/ G({
3305
3491
  name: "w-checkbox",
3306
3492
  expose: ["focus"],
3307
3493
  mixins: [Q, $],
@@ -3381,8 +3567,8 @@ var cn = /* @__PURE__ */ G({
3381
3567
  watch: { modelValue(e) {
3382
3568
  this.isChecked = e;
3383
3569
  } }
3384
- }, [["render", sn]]), ln = ["innerHTML"];
3385
- function un(t, n, r, i, a, l) {
3570
+ }, [["render", ln]]), dn = ["innerHTML"];
3571
+ function fn(t, n, r, i, a, l) {
3386
3572
  let u = D("w-checkbox");
3387
3573
  return S(), o(O(t.formRegister ? "w-form-element" : "div"), g({ ref: "formEl" }, t.formRegister && {
3388
3574
  validators: t.validators,
@@ -3417,15 +3603,14 @@ function un(t, n, r, i, a, l) {
3417
3603
  class: { mt1: !r.inline && i }
3418
3604
  }), {
3419
3605
  default: N(() => [t.$slots[`item.${i + 1}`] || t.$slots.item ? E(t.$slots, t.$slots[`item.${i + 1}`] ? `item.${i + 1}` : "item", {
3420
- key: 0,
3421
3606
  item: l.getOriginalItem(e),
3422
3607
  checked: !!e._isChecked,
3423
3608
  index: i + 1,
3424
3609
  innerHTML: e.label
3425
- }) : e.label ? (S(), c("div", {
3610
+ }, void 0, void 0, 0) : e.label ? (S(), c("div", {
3426
3611
  key: 1,
3427
3612
  innerHTML: e.label
3428
- }, null, 8, ln)) : s("", !0)]),
3613
+ }, null, 8, dn)) : s("", !0)]),
3429
3614
  _: 2
3430
3615
  }, 1040, [
3431
3616
  "model-value",
@@ -3444,7 +3629,7 @@ function un(t, n, r, i, a, l) {
3444
3629
  "class"
3445
3630
  ]);
3446
3631
  }
3447
- var dn = /* @__PURE__ */ G({
3632
+ var pn = /*#__PURE__*/ G({
3448
3633
  name: "w-checkboxes",
3449
3634
  focusable: !0,
3450
3635
  expose: ["focus"],
@@ -3537,10 +3722,9 @@ var dn = /* @__PURE__ */ G({
3537
3722
  return this.items[e._index];
3538
3723
  }
3539
3724
  }
3540
- }, [["render", un]]);
3541
- //#endregion
3542
- //#region src/wave-ui/components/w-confirm.vue?vue&type=template&lang.js
3543
- function fn(e, t, n, r, i, a) {
3725
+ }, [["render", fn]]);
3726
+ // src/wave-ui/components/w-confirm.vue?vue&type=template&lang.js
3727
+ function mn(e, t, n, r, i, a) {
3544
3728
  let c = D("w-button"), u = D("w-flex"), p = D("w-menu"), m = re("focus");
3545
3729
  return S(), o(p, g({
3546
3730
  modelValue: e.showPopup,
@@ -3580,7 +3764,7 @@ function fn(e, t, n, r, i, a) {
3580
3764
  _: 3
3581
3765
  }, 16, ["modelValue", "disable"]);
3582
3766
  }
3583
- var pn = /* @__PURE__ */ G({
3767
+ var hn = /*#__PURE__*/ G({
3584
3768
  name: "w-confirm",
3585
3769
  inheritAttrs: !1,
3586
3770
  props: {
@@ -3706,16 +3890,15 @@ var pn = /* @__PURE__ */ G({
3706
3890
  this.$emit("confirm"), this.showPopup = !1;
3707
3891
  }
3708
3892
  }
3709
- }, [["render", fn]]);
3710
- //#endregion
3711
- //#region src/wave-ui/components/w-date-picker.vue?vue&type=template&lang.js
3712
- function mn(e, t, n, r, i, a) {
3893
+ }, [["render", mn]]);
3894
+ // src/wave-ui/components/w-date-picker.vue?vue&type=template&lang.js
3895
+ function gn(e, t, n, r, i, a) {
3713
3896
  return S(), c("div", {
3714
3897
  class: v(["w-date-picker", a.classes]),
3715
3898
  style: b(a.styles)
3716
3899
  }, [E(e.$slots, "default")], 6);
3717
3900
  }
3718
- var hn = /* @__PURE__ */ G({
3901
+ var _n = /*#__PURE__*/ G({
3719
3902
  name: "w-date-picker",
3720
3903
  props: {
3721
3904
  dark: { type: Boolean },
@@ -3733,10 +3916,9 @@ var hn = /* @__PURE__ */ G({
3733
3916
  return !1;
3734
3917
  }
3735
3918
  }
3736
- }, [["render", mn]]);
3737
- //#endregion
3738
- //#region src/wave-ui/components/w-dialog.vue?vue&type=template&lang.js
3739
- function gn(e, t, n, i, a, s) {
3919
+ }, [["render", gn]]);
3920
+ // src/wave-ui/components/w-dialog.vue?vue&type=template&lang.js
3921
+ function vn(e, t, n, i, a, s) {
3740
3922
  let c = D("w-card"), l = D("w-overlay");
3741
3923
  return S(), o(l, {
3742
3924
  class: v(["w-dialog", s.classes]),
@@ -3752,7 +3934,8 @@ function gn(e, t, n, i, a, s) {
3752
3934
  default: N(() => [f(r, {
3753
3935
  name: n.transition,
3754
3936
  appear: "",
3755
- onAfterLeave: s.onBeforeClose
3937
+ onAfterLeave: s.onBeforeClose,
3938
+ persisted: ""
3756
3939
  }, {
3757
3940
  default: N(() => [P(f(c, {
3758
3941
  class: v(["w-dialog__content", n.dialogClass]),
@@ -3804,7 +3987,7 @@ function gn(e, t, n, i, a, s) {
3804
3987
  "class"
3805
3988
  ]);
3806
3989
  }
3807
- var _n = /* @__PURE__ */ G({
3990
+ var yn = /*#__PURE__*/ G({
3808
3991
  name: "w-dialog",
3809
3992
  expose: ["focus"],
3810
3993
  props: {
@@ -3906,15 +4089,15 @@ var _n = /* @__PURE__ */ G({
3906
4089
  watch: { modelValue(e) {
3907
4090
  this.showWrapper = e, this.showContent = e;
3908
4091
  } }
3909
- }, [["render", gn]]), vn = ["role", "aria-orientation"];
3910
- function yn(e, t, n, r, i, a) {
4092
+ }, [["render", vn]]), bn = ["role", "aria-orientation"];
4093
+ function xn(e, t, n, r, i, a) {
3911
4094
  return S(), c("div", {
3912
4095
  class: v(["w-divider", a.classes]),
3913
4096
  role: e.$slots.default ? null : "presentation",
3914
4097
  "aria-orientation": n.vertical ? "vertical" : "horizontal"
3915
- }, [E(e.$slots, "default")], 10, vn);
4098
+ }, [E(e.$slots, "default")], 10, bn);
3916
4099
  }
3917
- var bn = /* @__PURE__ */ G({
4100
+ var Sn = /*#__PURE__*/ G({
3918
4101
  name: "w-divider",
3919
4102
  props: {
3920
4103
  vertical: { type: Boolean },
@@ -3932,8 +4115,8 @@ var bn = /* @__PURE__ */ G({
3932
4115
  "w-divider--light": this.light
3933
4116
  };
3934
4117
  } }
3935
- }, [["render", yn]]), xn = { class: "w-drawer-wrap__pushable" };
3936
- function Sn(t, n, i, a, u, d) {
4118
+ }, [["render", xn]]), Cn = { class: "w-drawer-wrap__pushable" };
4119
+ function wn(t, n, i, a, u, d) {
3937
4120
  let p = D("w-overlay");
3938
4121
  return u.showWrapper || i.pushContent ? (S(), c("div", {
3939
4122
  key: 0,
@@ -3942,7 +4125,7 @@ function Sn(t, n, i, a, u, d) {
3942
4125
  key: 0,
3943
4126
  class: "w-drawer-wrap__track",
3944
4127
  style: b(d.trackStyles)
3945
- }, [l("div", xn, [i.noOverlay ? s("", !0) : (S(), o(p, {
4128
+ }, [l("div", Cn, [i.noOverlay ? s("", !0) : (S(), o(p, {
3946
4129
  key: 0,
3947
4130
  ref: "overlay",
3948
4131
  modelValue: u.showDrawer,
@@ -4033,14 +4216,13 @@ function Sn(t, n, i, a, u, d) {
4033
4216
  "onAfterLeave"
4034
4217
  ])], 64))], 2)) : s("", !0);
4035
4218
  }
4036
- //#endregion
4037
- //#region src/wave-ui/components/w-drawer.vue
4038
- var Cn = {
4219
+ // src/wave-ui/components/w-drawer.vue
4220
+ var Tn = {
4039
4221
  left: "right",
4040
4222
  right: "left",
4041
4223
  top: "down",
4042
4224
  bottom: "up"
4043
- }, wn = /* @__PURE__ */ G({
4225
+ }, En = /*#__PURE__*/ G({
4044
4226
  name: "w-drawer",
4045
4227
  expose: ["focus"],
4046
4228
  props: {
@@ -4148,7 +4330,7 @@ var Cn = {
4148
4330
  return !this.showWrapper;
4149
4331
  },
4150
4332
  transitionName() {
4151
- return `slide-${Cn[this.position]}`;
4333
+ return `slide-${Tn[this.position]}`;
4152
4334
  }
4153
4335
  },
4154
4336
  methods: {
@@ -4168,16 +4350,15 @@ var Cn = {
4168
4350
  watch: { modelValue(e) {
4169
4351
  e && (this.showWrapper = !0), this.showDrawer = e;
4170
4352
  } }
4171
- }, [["render", Sn]]);
4172
- //#endregion
4173
- //#region src/wave-ui/components/w-flex.vue?vue&type=template&lang.js
4174
- function Tn(e, t, n, r, i, a) {
4353
+ }, [["render", wn]]);
4354
+ // src/wave-ui/components/w-flex.vue?vue&type=template&lang.js
4355
+ function Dn(e, t, n, r, i, a) {
4175
4356
  return S(), o(O(n.tag), { class: v(["w-flex", a.classes]) }, {
4176
4357
  default: N(() => [E(e.$slots, "default")]),
4177
4358
  _: 3
4178
4359
  }, 8, ["class"]);
4179
4360
  }
4180
- var En = /* @__PURE__ */ G({
4361
+ var On = /*#__PURE__*/ G({
4181
4362
  name: "w-flex",
4182
4363
  props: {
4183
4364
  tag: {
@@ -4228,10 +4409,9 @@ var En = /* @__PURE__ */ G({
4228
4409
  [`gap${this.gap}`]: ~~this.gap
4229
4410
  };
4230
4411
  } }
4231
- }, [["render", Tn]]);
4232
- //#endregion
4233
- //#region src/wave-ui/components/w-form.vue?vue&type=template&lang.js
4234
- function Dn(e, t, n, r, i, a) {
4412
+ }, [["render", Dn]]);
4413
+ // src/wave-ui/components/w-form.vue?vue&type=template&lang.js
4414
+ function kn(e, t, n, r, i, a) {
4235
4415
  return S(), c("form", {
4236
4416
  class: v(["w-form", a.classes]),
4237
4417
  onSubmit: t[0] ||= (...e) => a.onSubmit && a.onSubmit(...e),
@@ -4239,12 +4419,11 @@ function Dn(e, t, n, r, i, a) {
4239
4419
  novalidate: ""
4240
4420
  }, [E(e.$slots, "default")], 34);
4241
4421
  }
4242
- //#endregion
4243
- //#region src/wave-ui/components/w-form.vue
4244
- var On = async (e, t) => {
4422
+ // src/wave-ui/components/w-form.vue
4423
+ var An = async (e, t) => {
4245
4424
  for (let n of e) if (await t(n)) return !0;
4246
4425
  return !1;
4247
- }, kn = /* @__PURE__ */ G({
4426
+ }, jn = /*#__PURE__*/ G({
4248
4427
  name: "w-form",
4249
4428
  props: {
4250
4429
  modelValue: {},
@@ -4319,7 +4498,7 @@ var On = async (e, t) => {
4319
4498
  },
4320
4499
  async checkElementValidators(e) {
4321
4500
  let t = !1, n = "";
4322
- await On(e.validators, async (r) => {
4501
+ await An(e.validators, async (r) => {
4323
4502
  let i = await (typeof r == "function" && r(e.inputValue));
4324
4503
  return t = typeof i != "string", n = t ? "" : i, !t;
4325
4504
  }), e.hasJustReset = !1, e.Validation.isValid = t, e.Validation.message = n;
@@ -4331,7 +4510,7 @@ var On = async (e, t) => {
4331
4510
  this.errorsCount = e === null ? this.formElements.reduce((e, t) => e + ~~(t.Validation.isValid === !1), 0) : e, this.status = t ? null : !this.errorsCount, this.$emit("update:modelValue", this.status), this.$emit("input", this.status), this.$emit("update:errorsCount", this.errorsCount);
4332
4511
  },
4333
4512
  onSubmit(e) {
4334
- this.validate(e), this.$emit("submit", e), (!this.allowSubmit || !this.status) && e.preventDefault();
4513
+ this.validate(e), this.$emit("submit", e), this.allowSubmit && this.status || e.preventDefault();
4335
4514
  }
4336
4515
  },
4337
4516
  created() {
@@ -4340,10 +4519,9 @@ var On = async (e, t) => {
4340
4519
  watch: { modelValue(e) {
4341
4520
  (this.status === !1 && e || e === null && this.status !== null) && this.reset(), this.status = e;
4342
4521
  } }
4343
- }, [["render", Dn]]);
4344
- //#endregion
4345
- //#region src/wave-ui/components/w-form-element.vue?vue&type=template&lang.js
4346
- function An(e, t, n, r, i, a) {
4522
+ }, [["render", kn]]);
4523
+ // src/wave-ui/components/w-form-element.vue?vue&type=template&lang.js
4524
+ function Mn(e, t, n, r, i, a) {
4347
4525
  let o = D("w-transition-expand");
4348
4526
  return S(), c("div", { class: v(a.classes) }, [l("div", { class: v(["w-flex grow", [n.column ? "column" : "align-center", n.wrap ? "wrap" : ""]]) }, [E(e.$slots, "default")], 2), f(o, { y: "" }, {
4349
4527
  default: N(() => [e.Validation.message ? (S(), c("div", {
@@ -4353,7 +4531,7 @@ function An(e, t, n, r, i, a) {
4353
4531
  _: 3
4354
4532
  })], 2);
4355
4533
  }
4356
- var jn = /* @__PURE__ */ G({
4534
+ var Nn = /*#__PURE__*/ G({
4357
4535
  name: "w-form-element",
4358
4536
  props: {
4359
4537
  valid: { required: !0 },
@@ -4395,7 +4573,7 @@ var jn = /* @__PURE__ */ G({
4395
4573
  ][this.Validation.isValid === null ? 2 : ~~this.Validation.isValid]];
4396
4574
  },
4397
4575
  shouldSkipBlurValidation() {
4398
- return this.noBlurValidation === !0 ? !0 : this.noBlurValidation === !1 ? !1 : !!this.formProps.noBlurValidation;
4576
+ return this.noBlurValidation === !0 || this.noBlurValidation !== !1 && !!this.formProps.noBlurValidation;
4399
4577
  }
4400
4578
  },
4401
4579
  methods: {
@@ -4421,16 +4599,15 @@ var jn = /* @__PURE__ */ G({
4421
4599
  beforeUnmount() {
4422
4600
  this.formUnregister && this.formUnregister(this);
4423
4601
  }
4424
- }, [["render", An]]);
4425
- //#endregion
4426
- //#region src/wave-ui/components/w-grid.vue?vue&type=template&lang.js
4427
- function Mn(e, t, n, r, i, a) {
4602
+ }, [["render", Mn]]);
4603
+ // src/wave-ui/components/w-grid.vue?vue&type=template&lang.js
4604
+ function Pn(e, t, n, r, i, a) {
4428
4605
  return S(), o(O(n.tag), { class: v(["w-grid", a.classes]) }, {
4429
4606
  default: N(() => [E(e.$slots, "default")]),
4430
4607
  _: 3
4431
4608
  }, 8, ["class"]);
4432
4609
  }
4433
- var Nn = /* @__PURE__ */ G({
4610
+ var Fn = /*#__PURE__*/ G({
4434
4611
  name: "w-grid",
4435
4612
  props: {
4436
4613
  tag: {
@@ -4465,10 +4642,7 @@ var Nn = /* @__PURE__ */ G({
4465
4642
  e = Object.assign(e, this.columns);
4466
4643
  break;
4467
4644
  case "number":
4468
- case "string":
4469
- e = Object.keys(e).reduce((e, t) => e[t] = ~~this.columns, {});
4470
- break;
4471
- default: break;
4645
+ case "string": e = Object.keys(e).reduce((e, t) => e[t] = ~~this.columns, {});
4472
4646
  }
4473
4647
  return e;
4474
4648
  },
@@ -4485,10 +4659,7 @@ var Nn = /* @__PURE__ */ G({
4485
4659
  e = Object.assign(e, this.gap);
4486
4660
  break;
4487
4661
  case "number":
4488
- case "string":
4489
- e = Object.keys(e).reduce((e, t) => e[t] = ~~this.gap, {});
4490
- break;
4491
- default: break;
4662
+ case "string": e = Object.keys(e).reduce((e, t) => e[t] = ~~this.gap, {});
4492
4663
  }
4493
4664
  return e;
4494
4665
  },
@@ -4502,10 +4673,9 @@ var Nn = /* @__PURE__ */ G({
4502
4673
  };
4503
4674
  }
4504
4675
  }
4505
- }, [["render", Mn]]);
4506
- //#endregion
4507
- //#region src/wave-ui/components/w-icon.vue?vue&type=template&lang.js
4508
- function Pn(t, n, r, i, a, l) {
4676
+ }, [["render", Pn]]);
4677
+ // src/wave-ui/components/w-icon.vue?vue&type=template&lang.js
4678
+ function In(t, n, r, i, a, l) {
4509
4679
  return S(), o(O(r.tag || "i"), {
4510
4680
  class: v(["w-icon", l.classes]),
4511
4681
  role: r.ariaLabel ? "img" : void 0,
@@ -4523,7 +4693,7 @@ function Pn(t, n, r, i, a, l) {
4523
4693
  "style"
4524
4694
  ]);
4525
4695
  }
4526
- var Fn = /* @__PURE__ */ G({
4696
+ var Ln = /*#__PURE__*/ G({
4527
4697
  name: "w-icon",
4528
4698
  props: {
4529
4699
  tag: {
@@ -4594,11 +4764,11 @@ var Fn = /* @__PURE__ */ G({
4594
4764
  let { default: e } = this.$slots, [t = "", n = ""] = typeof e == "function" && e()?.[0]?.children?.trim()?.split(" ") || [];
4595
4765
  return this.fontName = t, this.icon = n, !0;
4596
4766
  } }
4597
- }, [["render", Pn]]), In = {
4767
+ }, [["render", In]]), Rn = {
4598
4768
  key: 0,
4599
4769
  class: "w-image__loader"
4600
- }, Ln = ["innerHTML"];
4601
- function Rn(e, t, n, i, a, l) {
4770
+ }, zn = ["innerHTML"];
4771
+ function Bn(e, t, n, i, a, l) {
4602
4772
  let u = D("w-progress");
4603
4773
  return S(), o(O(l.wrapperTag), {
4604
4774
  class: v(["w-image", l.wrapperClasses]),
@@ -4623,7 +4793,7 @@ function Rn(e, t, n, i, a, l) {
4623
4793
  ])) : s("", !0)]),
4624
4794
  _: 1
4625
4795
  }, 8, ["name"]),
4626
- !n.noSpinner && a.loading ? (S(), c("span", In, [e.$slots.loading ? E(e.$slots, "loading", { key: 0 }) : (S(), o(u, g({
4796
+ !n.noSpinner && a.loading ? (S(), c("span", Rn, [e.$slots.loading ? E(e.$slots, "loading", {}, void 0, void 0, 0) : (S(), o(u, g({
4627
4797
  key: 1,
4628
4798
  circle: "",
4629
4799
  indeterminate: ""
@@ -4642,12 +4812,12 @@ function Rn(e, t, n, i, a, l) {
4642
4812
  key: 3,
4643
4813
  class: v(["w-image__caption caption", n.captionClass]),
4644
4814
  innerHTML: n.caption
4645
- }, null, 10, Ln)) : s("", !0)
4815
+ }, null, 10, zn)) : s("", !0)
4646
4816
  ]),
4647
4817
  _: 3
4648
4818
  }, 40, ["class", "style"]);
4649
4819
  }
4650
- var zn = /* @__PURE__ */ G({
4820
+ var Vn = /*#__PURE__*/ G({
4651
4821
  name: "w-image",
4652
4822
  props: {
4653
4823
  tag: {
@@ -4760,7 +4930,7 @@ var zn = /* @__PURE__ */ G({
4760
4930
  watch: { src() {
4761
4931
  this.loadImage();
4762
4932
  } }
4763
- }, [["render", Rn]]), Bn = ["name"], Vn = ["for"], Hn = [
4933
+ }, [["render", Bn]]), Hn = ["name"], Un = ["for"], Wn = [
4764
4934
  "id",
4765
4935
  "type",
4766
4936
  "name",
@@ -4776,17 +4946,17 @@ var zn = /* @__PURE__ */ G({
4776
4946
  "disabled",
4777
4947
  "required",
4778
4948
  "tabindex"
4779
- ], Un = [
4949
+ ], Gn = [
4780
4950
  "id",
4781
4951
  "name",
4782
4952
  "multiple",
4783
4953
  "disabled",
4784
4954
  "data-progress"
4785
- ], Wn = {
4955
+ ], Kn = {
4786
4956
  class: "w-input__no-file",
4787
4957
  key: "no-file"
4788
- }, Gn = ["for"], Kn = ["src"], qn = ["for"];
4789
- function Jn(t, n, r, a, u, p) {
4958
+ }, qn = ["for"], Jn = ["src"], Yn = ["for"];
4959
+ function Xn(t, n, r, a, u, p) {
4790
4960
  let m = D("w-icon"), h = D("w-progress");
4791
4961
  return S(), o(O(t.formRegister ? "w-form-element" : "div"), g({ ref: "formEl" }, t.formRegister && {
4792
4962
  validators: t.validators,
@@ -4810,12 +4980,12 @@ function Jn(t, n, r, a, u, p) {
4810
4980
  type: "hidden",
4811
4981
  name: t.name || null,
4812
4982
  "onUpdate:modelValue": n[0] ||= (e) => u.inputValue = e
4813
- }, null, 8, Bn)), [[M, u.inputValue]]) : (S(), c(e, { key: 1 }, [
4983
+ }, null, 8, Hn)), [[M, u.inputValue]]) : (S(), c(e, { key: 1 }, [
4814
4984
  r.labelPosition === "left" ? (S(), c(e, { key: 0 }, [t.$slots.default || r.label ? (S(), c("label", {
4815
4985
  key: 0,
4816
4986
  class: v(["w-input__label w-input__label--left w-form-el-shakable", t.labelClasses]),
4817
4987
  for: t.inputId
4818
- }, [E(t.$slots, "default", {}, () => [d(k(r.label), 1)])], 10, Vn)) : s("", !0)], 64)) : s("", !0),
4988
+ }, [E(t.$slots, "default", {}, () => [d(k(r.label), 1)])], 10, Un)) : s("", !0)], 64)) : s("", !0),
4819
4989
  l("div", { class: v(["w-input__input-wrap", p.inputWrapClasses]) }, [
4820
4990
  E(t.$slots, "icon-left", { inputId: t.inputId }, () => [r.innerIconLeft ? (S(), o(m, {
4821
4991
  key: 0,
@@ -4839,13 +5009,13 @@ function Jn(t, n, r, a, u, p) {
4839
5009
  }, p.attrs, {
4840
5010
  disabled: t.isDisabled || null,
4841
5011
  "data-progress": p.overallFilesProgress
4842
- }), null, 16, Un), f(i, {
5012
+ }), null, 16, Gn), f(i, {
4843
5013
  class: "w-input__input w-input__input--file",
4844
5014
  tag: "label",
4845
5015
  name: "fade",
4846
5016
  for: t.inputId
4847
5017
  }, {
4848
- default: N(() => [!u.inputFiles.length && u.isFocused ? (S(), c("span", Wn, [E(t.$slots, "no-file", {}, () => [t.$slots["no-file"] === void 0 ? (S(), c(e, { key: 0 }, [d("No file")], 64)) : s("", !0)])])) : s("", !0), (S(!0), c(e, null, T(u.inputFiles, (e, t) => (S(), c("span", { key: e.lastModified }, [
5018
+ default: N(() => [!u.inputFiles.length && u.isFocused ? (S(), c("span", Kn, [E(t.$slots, "no-file", {}, () => [t.$slots["no-file"] === void 0 ? (S(), c(e, { key: 0 }, [d("No file")], 64)) : s("", !0)])])) : s("", !0), (S(!0), c(e, null, T(u.inputFiles, (e, t) => (S(), c("span", { key: e.lastModified }, [
4849
5019
  d(k(t ? ", " : ""), 1),
4850
5020
  (S(), c("span", {
4851
5021
  class: "filename",
@@ -4877,7 +5047,7 @@ function Jn(t, n, r, a, u, p) {
4877
5047
  disabled: t.isDisabled || null,
4878
5048
  required: t.required || null,
4879
5049
  tabindex: t.tabindex || null
4880
- }, p.attrs, { class: r.inputClass }), null, 16, Hn)), [[j, u.inputValue]]),
5050
+ }, p.attrs, { class: r.inputClass }), null, 16, Wn)), [[j, u.inputValue]]),
4881
5051
  r.labelPosition === "inside" && p.showLabelInside ? (S(), c(e, { key: 2 }, [t.$slots.default || r.label ? (S(), c("label", {
4882
5052
  key: 0,
4883
5053
  class: v(["w-input__label w-input__label--inside w-form-el-shakable", t.labelClasses])
@@ -4912,15 +5082,15 @@ function Jn(t, n, r, a, u, p) {
4912
5082
  key: `${n}b`,
4913
5083
  src: t.preview,
4914
5084
  alt: ""
4915
- }, null, 8, Kn)) : (S(), c("i", {
5085
+ }, null, 8, Jn)) : (S(), c("i", {
4916
5086
  class: v(["w-icon w-input__file-preview primary size--md", r.preview && typeof r.preview == "string" ? r.preview : "wi-file"]),
4917
5087
  key: `${n}c`
4918
- }, null, 2))], 64))), 256))], 8, Gn)) : s("", !0),
5088
+ }, null, 2))], 64))), 256))], 8, qn)) : s("", !0),
4919
5089
  r.labelPosition === "right" ? (S(), c(e, { key: 2 }, [t.$slots.default || r.label ? (S(), c("label", {
4920
5090
  key: 0,
4921
5091
  class: v(["w-input__label w-input__label--right w-form-el-shakable", t.labelClasses]),
4922
5092
  for: t.inputId
4923
- }, [E(t.$slots, "default", {}, () => [d(k(r.label), 1)])], 10, qn)) : s("", !0)], 64)) : s("", !0)
5093
+ }, [E(t.$slots, "default", {}, () => [d(k(r.label), 1)])], 10, Yn)) : s("", !0)], 64)) : s("", !0)
4924
5094
  ], 64))]),
4925
5095
  _: 3
4926
5096
  }, 16, [
@@ -4930,7 +5100,7 @@ function Jn(t, n, r, a, u, p) {
4930
5100
  "style"
4931
5101
  ]);
4932
5102
  }
4933
- var Yn = /* @__PURE__ */ G({
5103
+ var Zn = /*#__PURE__*/ G({
4934
5104
  name: "w-input",
4935
5105
  expose: ["focus"],
4936
5106
  mixins: [Q, $],
@@ -5131,10 +5301,9 @@ var Yn = /* @__PURE__ */ G({
5131
5301
  watch: { modelValue(e) {
5132
5302
  this.inputValue = e, !e && e !== 0 && (this.isAutofilled = !1, this.inputFiles = []);
5133
5303
  } }
5134
- }, [["render", Jn]]);
5135
- //#endregion
5136
- //#region src/wave-ui/components/w-list.vue?vue&type=template&lang.js
5137
- function Xn(t, n, r, i, a, l) {
5304
+ }, [["render", Xn]]);
5305
+ // src/wave-ui/components/w-list.vue?vue&type=template&lang.js
5306
+ function Qn(t, n, r, i, a, l) {
5138
5307
  let f = D("w-icon"), p = D("w-list", !0);
5139
5308
  return S(), c("ul", { class: v(["w-list", l.classes]) }, [(S(!0), c(e, null, T(t.listItems, (e, i) => (S(), c("li", {
5140
5309
  class: v(["w-list__item", { "w-list__item--parent": (e.children || []).length }]),
@@ -5152,21 +5321,18 @@ function Xn(t, n, r, i, a, l) {
5152
5321
  class: "w-list__item-label"
5153
5322
  }, { ref_for: !0 }, l.liLabelProps(e, i, e._selected)), {
5154
5323
  default: N(() => [t.$slots[`item.${i + 1}`] ? E(t.$slots, `item.${i + 1}`, {
5155
- key: 0,
5156
5324
  item: l.cleanLi(e),
5157
5325
  index: i + 1,
5158
5326
  selected: e._selected
5159
- }) : t.$slots.item ? E(t.$slots, "item", {
5160
- key: 1,
5327
+ }, void 0, void 0, 0) : t.$slots.item ? E(t.$slots, "item", {
5161
5328
  item: l.cleanLi(e),
5162
5329
  index: i + 1,
5163
5330
  selected: e._selected
5164
- }) : E(t.$slots, "default", {
5165
- key: 2,
5331
+ }, void 0, void 0, 1) : E(t.$slots, "default", {
5166
5332
  item: l.cleanLi(e),
5167
5333
  index: i + 1,
5168
5334
  selected: e._selected
5169
- }, () => [d(k(e._label), 1)])]),
5335
+ }, () => [d(k(e._label), 1)], void 0, 2)]),
5170
5336
  _: 2
5171
5337
  }, 1040)) : (S(), o(O(r.checklist ? "w-checkbox" : r.nav && !e.disabled && e.route ? l.hasRouter ? "router-link" : "a" : "div"), g({
5172
5338
  key: 2,
@@ -5201,7 +5367,7 @@ function Xn(t, n, r, i, a, l) {
5201
5367
  }]), 1040, ["items", "depth"])) : s("", !0)
5202
5368
  ], 2))), 128))], 2);
5203
5369
  }
5204
- var Zn = /* @__PURE__ */ G({
5370
+ var $n = /*#__PURE__*/ G({
5205
5371
  name: "w-list",
5206
5372
  focusable: !0,
5207
5373
  expose: ["focus"],
@@ -5254,6 +5420,7 @@ var Zn = /* @__PURE__ */ G({
5254
5420
  default: 0
5255
5421
  },
5256
5422
  returnObject: { type: Boolean },
5423
+ mandatory: { type: Boolean },
5257
5424
  noUnselect: { type: Boolean },
5258
5425
  arrowsNavigation: { type: Boolean }
5259
5426
  },
@@ -5309,7 +5476,7 @@ var Zn = /* @__PURE__ */ G({
5309
5476
  return e && typeof e == "object" ? e[this.itemValueKey] === void 0 ? e[this.itemLabelKey] === void 0 ? e.index : e[this.itemLabelKey] : e[this.itemValueKey] : e;
5310
5477
  },
5311
5478
  selectItem(e, t) {
5312
- e._selected && !this.multiple && this.noUnselect || (e._selected = t === void 0 ? !e._selected : t, e._selected && !this.isMultipleSelect && this.listItems.forEach((t) => t._index !== e._index && (t._selected = !1)), this.emitSelection());
5479
+ (!e._selected || this.multiple || !this.mandatory && !this.noUnselect) && (e._selected = t === void 0 ? !e._selected : t, e._selected && !this.isMultipleSelect && this.listItems.forEach((t) => t._index !== e._index && (t._selected = !1)), this.emitSelection());
5313
5480
  },
5314
5481
  liLabelClasses(e) {
5315
5482
  return {
@@ -5346,7 +5513,7 @@ var Zn = /* @__PURE__ */ G({
5346
5513
  t && (t.focus(), t.click()), i();
5347
5514
  }) : this.nav ? (!e.disabled && e[this.itemRouteKey] && (s.onKeydown = o, s.onMousedown = a, s.onPointerdown = (e) => this.onRipple(e), this.$router ? (s.to = e[this.itemRouteKey], s.onClick = (t) => {
5348
5515
  t.preventDefault(), this.$router.push(e[this.itemRouteKey]), i();
5349
- }) : (s.href = e[this.itemRouteKey], s.onClick = i)), r || (s.innerHTML = e._label)) : this.isSelectable ? (e.disabled || (s.tabindex = 0), s.onClick = i, s.onKeydown = o, s.onMousedown = a, r || (s.innerHTML = e._label)) : r || (s.innerHTML = e._label), s;
5516
+ }) : (s.href = e[this.itemRouteKey], s.onClick = i)), r || (s.innerHTML = e._label)) : (this.isSelectable && (e.disabled || (s.tabindex = 0), s.onClick = i, s.onKeydown = o, s.onMousedown = a), r || (s.innerHTML = e._label)), s;
5350
5517
  },
5351
5518
  checkSelection(e) {
5352
5519
  return e = Array.isArray(e) ? e : e ? [e] : [], this.returnObject && (e = e.map(this.getItemValue)), e;
@@ -5406,8 +5573,8 @@ var Zn = /* @__PURE__ */ G({
5406
5573
  }
5407
5574
  }
5408
5575
  }
5409
- }, [["render", Xn]]), Qn = 4;
5410
- function $n(e) {
5576
+ }, [["render", Qn]]), er = 4;
5577
+ function tr(e) {
5411
5578
  return {
5412
5579
  top: "bottom",
5413
5580
  bottom: "top",
@@ -5415,7 +5582,7 @@ function $n(e) {
5415
5582
  right: "left"
5416
5583
  }[e] || "bottom";
5417
5584
  }
5418
- var er = {
5585
+ var nr = {
5419
5586
  props: {
5420
5587
  appendTo: { type: [
5421
5588
  String,
@@ -5514,7 +5681,7 @@ var er = {
5514
5681
  this._autofocusTargets = [], e.length && this.$nextTick(() => e.forEach(({ focus: e }) => e()));
5515
5682
  },
5516
5683
  unbindActivatorDocEvents() {
5517
- typeof document > "u" || this.docEventListenersHandlers.length && (this.docEventListenersHandlers.forEach(({ eventName: e, handler: t }) => {
5684
+ typeof document < "u" && this.docEventListenersHandlers.length && (this.docEventListenersHandlers.forEach(({ eventName: e, handler: t }) => {
5518
5685
  document.removeEventListener(e, t);
5519
5686
  }), this.docEventListenersHandlers = []);
5520
5687
  },
@@ -5544,9 +5711,9 @@ var er = {
5544
5711
  }), this._activatorDomEl = null, this._activatorAttachedEvents = []);
5545
5712
  },
5546
5713
  async open(e) {
5547
- this.disable || (this.delay && await new Promise((e) => this.openTimeout = setTimeout(e, this.delay)), !(this.delay && !this.openTimeout) && (this.disable || (this.detachableReady = !1, this._contentEntered = !1, typeof document < "u" && (this.teleportTarget = this.appendToTarget), this.detachableVisible = !0, this.activator && (this.activatorEl = e.target), await this.$nextTick(), this.detachableEl = this.$refs.detachable?.$el || this.$refs.detachable, this.minWidth === "activator" && this.activatorEl && (this.activatorWidth = this.activatorEl.offsetWidth), this.noPosition ? (this.detachableReady = !0, this._maybeFlushAutofocus()) : await this.computeDetachableCoords(), this.timeoutId = setTimeout(() => {
5714
+ this.disable || (this.delay && await new Promise((e) => this.openTimeout = setTimeout(e, this.delay)), this.delay && !this.openTimeout || this.disable || (this.detachableReady = !1, this._contentEntered = !1, typeof document < "u" && (this.teleportTarget = this.appendToTarget), this.detachableVisible = !0, this.activator && (this.activatorEl = e.target), await this.$nextTick(), this.detachableEl = this.$refs.detachable?.$el || this.$refs.detachable, this.minWidth === "activator" && this.activatorEl && (this.activatorWidth = this.activatorEl.offsetWidth), this.noPosition ? (this.detachableReady = !0, this._maybeFlushAutofocus()) : await this.computeDetachableCoords(), this.timeoutId = setTimeout(() => {
5548
5715
  this.$emit("update:modelValue", !0), this.$emit("input", !0), this.$emit("open");
5549
- }, 0), typeof document < "u" && !this.persistent && document.addEventListener("mousedown", this.onOutsideMousedown), typeof window < "u" && !this.noPosition && window.addEventListener("resize", this.onResize))));
5716
+ }, 0), typeof document < "u" && !this.persistent && document.addEventListener("mousedown", this.onOutsideMousedown), typeof window < "u" && !this.noPosition && window.addEventListener("resize", this.onResize)));
5550
5717
  },
5551
5718
  getActivatorCoordinates() {
5552
5719
  if (typeof window > "u" || typeof document > "u" || !this.activatorEl || !this.detachableParentEl) return {
@@ -5583,9 +5750,7 @@ var er = {
5583
5750
  case "left":
5584
5751
  i -= s.offsetWidth, this.alignBottom ? r += o - s.offsetHeight : this.alignTop || (r += (o - s.offsetHeight) / 2);
5585
5752
  break;
5586
- case "right":
5587
- i += a, this.alignBottom ? r += o - s.offsetHeight + parseInt(n.getPropertyValue("margin-top"), 10) : this.alignTop || (r += (o - s.offsetHeight) / 2 + parseInt(n.getPropertyValue("margin-top"), 10));
5588
- break;
5753
+ case "right": i += a, this.alignBottom ? r += o - s.offsetHeight + parseInt(n.getPropertyValue("margin-top"), 10) : this.alignTop || (r += (o - s.offsetHeight) / 2 + parseInt(n.getPropertyValue("margin-top"), 10));
5589
5754
  }
5590
5755
  return {
5591
5756
  top: r,
@@ -5597,8 +5762,8 @@ var er = {
5597
5762
  this.viewportPlacementOverride = null, this.detachableEl.style.display = "flex";
5598
5763
  let e = window.getComputedStyle(this.detachableEl, null), t = this.detachableEl.offsetWidth, n = this.detachableEl.offsetHeight, r = this.position;
5599
5764
  if (!this.noPosition) {
5600
- let e = Qn, i = window.innerWidth, a = window.innerHeight, { top: o, left: s, width: c, height: l } = this.activatorEl.getBoundingClientRect();
5601
- (r === "bottom" && o + l + n > a - e && o - n >= e || r === "top" && o - n < e && o + l + n <= a - e || r === "right" && s + c + t > i - e && s - t >= e || r === "left" && s - t < e && s + c + t <= i - e) && (r = $n(r), this.viewportPlacementOverride = r);
5765
+ let e = er, i = window.innerWidth, a = window.innerHeight, { top: o, left: s, width: c, height: l } = this.activatorEl.getBoundingClientRect();
5766
+ (r === "bottom" && o + l + n > a - e && o - n >= e || r === "top" && o - n < e && o + l + n <= a - e || r === "right" && s + c + t > i - e && s - t >= e || r === "left" && s - t < e && s + c + t <= i - e) && (r = tr(r), this.viewportPlacementOverride = r);
5602
5767
  }
5603
5768
  let i = this.getActivatorCoordinates(), { top: a, left: o } = this._applyDetachablePlacement(r, i, e);
5604
5769
  this.detachableCoords = {
@@ -5607,10 +5772,10 @@ var er = {
5607
5772
  }, this.detachableReady = !0, await this.$nextTick(), this._maybeFlushAutofocus(), this.detachableEl && (this.detachableVisible || (this.detachableEl.style.display = "none"));
5608
5773
  },
5609
5774
  onResize() {
5610
- typeof window > "u" || (this.minWidth === "activator" && this.activatorEl && (this.activatorWidth = this.activatorEl.offsetWidth), this.computeDetachableCoords());
5775
+ typeof window < "u" && (this.minWidth === "activator" && this.activatorEl && (this.activatorWidth = this.activatorEl.offsetWidth), this.computeDetachableCoords());
5611
5776
  },
5612
5777
  onOutsideMousedown(e) {
5613
- !this.detachableEl || !this.activatorEl || !this.detachableEl.contains(e.target) && !this.activatorEl.contains(e.target) && (this.$emit("update:modelValue", this.detachableVisible = !1), this.$emit("input", !1), this.$emit("close"), typeof document < "u" && document.removeEventListener("mousedown", this.onOutsideMousedown), typeof window < "u" && window.removeEventListener("resize", this.onResize));
5778
+ this.detachableEl && this.activatorEl && !this.detachableEl.contains(e.target) && !this.activatorEl.contains(e.target) && (this.$emit("update:modelValue", this.detachableVisible = !1), this.$emit("input", !1), this.$emit("close"), typeof document < "u" && document.removeEventListener("mousedown", this.onOutsideMousedown), typeof window < "u" && window.removeEventListener("resize", this.onResize));
5614
5779
  },
5615
5780
  bindActivatorEvents() {
5616
5781
  if (typeof document > "u") return;
@@ -5652,13 +5817,12 @@ var er = {
5652
5817
  }
5653
5818
  }
5654
5819
  };
5655
- //#endregion
5656
- //#region src/wave-ui/components/w-menu.vue?vue&type=template&lang.js
5657
- function tr(t, i, a, l, d, p) {
5820
+ // src/wave-ui/components/w-menu.vue?vue&type=template&lang.js
5821
+ function rr(t, i, a, l, d, p) {
5658
5822
  let m = D("w-card"), h = D("w-overlay");
5659
5823
  return S(), c(e, null, [
5660
5824
  E(t.$slots, "activator", { isOpen: t.detachableVisible }),
5661
- t.$slots.activator ? s("", !0) : E(t.$slots, "default", { key: 0 }),
5825
+ t.$slots.activator ? s("", !0) : E(t.$slots, "default", {}, void 0, void 0, 0),
5662
5826
  t.detachableDomReady ? (S(), o(n, {
5663
5827
  key: 1,
5664
5828
  to: t.teleportTarget,
@@ -5679,7 +5843,7 @@ function tr(t, i, a, l, d, p) {
5679
5843
  onMouseleave: i[2] ||= (e) => a.showOnHover && (t.hoveringMenu = !1, p.close()),
5680
5844
  class: p.classes,
5681
5845
  style: p.styles
5682
- }), [t.$slots.activator ? E(t.$slots, "default", { key: 0 }) : E(t.$slots, "content", { key: 1 })], 16)) : t.detachableVisible ? (S(), o(m, g({
5846
+ }), [t.$slots.activator ? E(t.$slots, "default", {}, void 0, void 0, 0) : E(t.$slots, "content", {}, void 0, void 0, 1)], 16)) : t.detachableVisible ? (S(), o(m, g({
5683
5847
  key: 1,
5684
5848
  class: "w-menu",
5685
5849
  ref: "detachable"
@@ -5695,7 +5859,7 @@ function tr(t, i, a, l, d, p) {
5695
5859
  class: p.classes,
5696
5860
  style: p.styles
5697
5861
  }), u({
5698
- default: N(() => [t.$slots.activator ? E(t.$slots, "default", { key: 0 }) : E(t.$slots, "content", { key: 1 })]),
5862
+ default: N(() => [t.$slots.activator ? E(t.$slots, "default", {}, void 0, void 0, 0) : E(t.$slots, "content", {}, void 0, void 0, 1)]),
5699
5863
  _: 2
5700
5864
  }, [t.$slots.title ? {
5701
5865
  name: "title",
@@ -5736,10 +5900,10 @@ function tr(t, i, a, l, d, p) {
5736
5900
  ])) : s("", !0)], 8, ["to", "disabled"])) : s("", !0)
5737
5901
  ], 64);
5738
5902
  }
5739
- var nr = /* @__PURE__ */ G({
5903
+ var ir = /*#__PURE__*/ G({
5740
5904
  name: "w-menu",
5741
5905
  expose: ["focus", "computeDetachableCoords"],
5742
- mixins: [er],
5906
+ mixins: [nr],
5743
5907
  inheritAttrs: !1,
5744
5908
  props: {
5745
5909
  modelValue: {},
@@ -5887,10 +6051,9 @@ var nr = /* @__PURE__ */ G({
5887
6051
  this.openTimeout = clearTimeout(this.openTimeout), this.detachableVisible && (this.showOnHover && !e && (await new Promise((e) => setTimeout(e, 10)), this.showOnHover && (this.hoveringMenu || this.hoveringActivator)) || (this.$emit("update:modelValue", this.detachableVisible = !1), this.$emit("input", !1), this.$emit("close"), this.viewportPlacementOverride = null, typeof document < "u" && document.removeEventListener("mousedown", this.onOutsideMousedown), typeof window < "u" && window.removeEventListener("resize", this.onResize)));
5888
6052
  }
5889
6053
  }
5890
- }, [["render", tr]]);
5891
- //#endregion
5892
- //#region src/wave-ui/components/w-notification.vue?vue&type=template&lang.js
5893
- function rr(e, t, n, i, a, l) {
6054
+ }, [["render", rr]]);
6055
+ // src/wave-ui/components/w-notification.vue?vue&type=template&lang.js
6056
+ function ar(e, t, n, i, a, l) {
5894
6057
  let u = D("w-alert");
5895
6058
  return S(), o(r, {
5896
6059
  name: l.transitionName,
@@ -5912,7 +6075,7 @@ function rr(e, t, n, i, a, l) {
5912
6075
  _: 3
5913
6076
  }, 8, ["name"]);
5914
6077
  }
5915
- var ir = /* @__PURE__ */ G({
6078
+ var or = /*#__PURE__*/ G({
5916
6079
  name: "w-notification",
5917
6080
  props: {
5918
6081
  modelValue: { default: !0 },
@@ -6042,10 +6205,9 @@ var ir = /* @__PURE__ */ G({
6042
6205
  watch: { modelValue(e) {
6043
6206
  clearTimeout(this.timeoutId), this.show = e, e && this.timeoutVal && this.countdown();
6044
6207
  } }
6045
- }, [["render", rr]]);
6046
- //#endregion
6047
- //#region src/wave-ui/components/w-overlay.vue?vue&type=template&lang.js
6048
- function ar(e, t, n, i, a, l) {
6208
+ }, [["render", ar]]);
6209
+ // src/wave-ui/components/w-overlay.vue?vue&type=template&lang.js
6210
+ function sr(e, t, n, i, a, l) {
6049
6211
  return S(), o(r, {
6050
6212
  name: "fade",
6051
6213
  appear: "",
@@ -6062,7 +6224,7 @@ function ar(e, t, n, i, a, l) {
6062
6224
  _: 3
6063
6225
  }, 8, ["onAfterLeave"]);
6064
6226
  }
6065
- var or = /* @__PURE__ */ G({
6227
+ var cr = /*#__PURE__*/ G({
6066
6228
  name: "w-overlay",
6067
6229
  expose: ["focus"],
6068
6230
  props: {
@@ -6125,7 +6287,7 @@ var or = /* @__PURE__ */ G({
6125
6287
  this.documentEscapeBound &&= (document.removeEventListener("keydown", this.onDocumentEscape), !1);
6126
6288
  },
6127
6289
  onDocumentEscape(e) {
6128
- e.key === "Escape" && (!this.showOverlay || !this.modelValue || this.dismiss(e));
6290
+ e.key === "Escape" && this.showOverlay && this.modelValue && this.dismiss(e);
6129
6291
  },
6130
6292
  dismiss(e) {
6131
6293
  this.persistent && !this.persistentNoAnimation ? (this.persistentAnimate = !0, setTimeout(() => this.persistentAnimate = !1, 150)) : this.persistent || (this.showOverlay = !1, this.$emit("before-close")), this.$emit("click", e);
@@ -6146,28 +6308,28 @@ var or = /* @__PURE__ */ G({
6146
6308
  watch: { modelValue(e) {
6147
6309
  e ? (this.showOverlay = !0, this.bindDocumentEscape()) : this.unbindDocumentEscape();
6148
6310
  } }
6149
- }, [["render", ar]]), sr = { class: "w-parallax" };
6150
- function cr(e, t, n, r, i, a) {
6151
- return S(), c("div", sr);
6311
+ }, [["render", sr]]), lr = { class: "w-parallax" };
6312
+ function ur(e, t, n, r, i, a) {
6313
+ return S(), c("div", lr);
6152
6314
  }
6153
- var lr = /* @__PURE__ */ G({
6315
+ var dr = /*#__PURE__*/ G({
6154
6316
  name: "w-parallax",
6155
6317
  props: {},
6156
6318
  emits: [],
6157
6319
  data: () => ({})
6158
- }, [["render", cr]]), ur = [
6320
+ }, [["render", ur]]), fr = [
6159
6321
  "aria-valuenow",
6160
6322
  "aria-valuemin",
6161
6323
  "aria-valuemax",
6162
6324
  "aria-valuetext",
6163
6325
  "aria-label"
6164
- ], dr = ["viewBox"], fr = [
6326
+ ], pr = ["viewBox"], mr = [
6165
6327
  "cx",
6166
6328
  "cy",
6167
6329
  "r",
6168
6330
  "stroke-dasharray",
6169
6331
  "stroke-width"
6170
- ], pr = [
6332
+ ], hr = [
6171
6333
  "cx",
6172
6334
  "cy",
6173
6335
  "r",
@@ -6175,7 +6337,7 @@ var lr = /* @__PURE__ */ G({
6175
6337
  "stroke-linecap",
6176
6338
  "stroke-dasharray"
6177
6339
  ];
6178
- function mr(e, t, n, r, i, a) {
6340
+ function gr(e, t, n, r, i, a) {
6179
6341
  return S(), c("div", {
6180
6342
  class: v(["w-progress", a.classes]),
6181
6343
  role: "progressbar",
@@ -6197,7 +6359,7 @@ function mr(e, t, n, r, i, a) {
6197
6359
  fill: "transparent",
6198
6360
  "stroke-dasharray": e.circleCircumference,
6199
6361
  "stroke-width": n.stroke
6200
- }, null, 10, fr)) : s("", !0), l("circle", {
6362
+ }, null, 10, mr)) : s("", !0), l("circle", {
6201
6363
  class: "w-progress__progress",
6202
6364
  cx: a.circleCenter,
6203
6365
  cy: a.circleCenter,
@@ -6207,18 +6369,17 @@ function mr(e, t, n, r, i, a) {
6207
6369
  "stroke-linecap": n.roundCap && "round",
6208
6370
  "stroke-dasharray": e.circleCircumference,
6209
6371
  style: b(`stroke-dashoffset: ${(1 - a.progressValue / 100) * e.circleCircumference}`)
6210
- }, null, 12, pr)], 8, dr)) : (S(), c("div", {
6372
+ }, null, 12, hr)], 8, pr)) : (S(), c("div", {
6211
6373
  key: 0,
6212
6374
  class: v(["w-progress__progress", { full: a.progressValue === 100 }]),
6213
6375
  style: b(`width: ${a.progressValue}%`)
6214
6376
  }, null, 6)), n.label || e.$slots.default ? (S(), c("div", {
6215
6377
  key: 2,
6216
6378
  class: v(["w-progress__label", n.labelColor || !1])
6217
- }, [E(e.$slots, "default", {}, () => [d(k(Math.round(a.progressValue)) + k(n.circle ? "" : "%"), 1)])], 2)) : s("", !0)], 14, ur);
6379
+ }, [E(e.$slots, "default", {}, () => [d(k(Math.round(a.progressValue)) + k(n.circle ? "" : "%"), 1)])], 2)) : s("", !0)], 14, fr);
6218
6380
  }
6219
- //#endregion
6220
- //#region src/wave-ui/components/w-progress.vue
6221
- var hr = 40, gr = hr / 2, _r = Math.round(hr * 3.14 * 100) / 100, vr = /* @__PURE__ */ G({
6381
+ // src/wave-ui/components/w-progress.vue
6382
+ var _r = 40, vr = _r / 2, yr = Math.round(_r * 3.14 * 100) / 100, br = /*#__PURE__*/ G({
6222
6383
  name: "w-progress",
6223
6384
  props: {
6224
6385
  modelValue: {
@@ -6261,16 +6422,16 @@ var hr = 40, gr = hr / 2, _r = Math.round(hr * 3.14 * 100) / 100, vr = /* @__PUR
6261
6422
  },
6262
6423
  emits: [],
6263
6424
  data: () => ({
6264
- circleSize: hr,
6265
- circleRadius: gr,
6266
- circleCircumference: _r
6425
+ circleSize: _r,
6426
+ circleRadius: vr,
6427
+ circleCircumference: yr
6267
6428
  }),
6268
6429
  computed: {
6269
6430
  progressValue() {
6270
6431
  return parseFloat(this.modelValue);
6271
6432
  },
6272
6433
  circleCenter() {
6273
- return hr + this.stroke;
6434
+ return _r + this.stroke;
6274
6435
  },
6275
6436
  forcedSize() {
6276
6437
  return this.size && (isNaN(this.size) ? this.size : `${this.size}px`);
@@ -6300,7 +6461,7 @@ var hr = 40, gr = hr / 2, _r = Math.round(hr * 3.14 * 100) / 100, vr = /* @__PUR
6300
6461
  return { [this.circle ? "width" : "height"]: this.forcedSize || null };
6301
6462
  }
6302
6463
  }
6303
- }, [["render", mr]]), yr = [
6464
+ }, [["render", gr]]), xr = [
6304
6465
  "id",
6305
6466
  "name",
6306
6467
  "checked",
@@ -6309,8 +6470,8 @@ var hr = 40, gr = hr / 2, _r = Math.round(hr * 3.14 * 100) / 100, vr = /* @__PUR
6309
6470
  "tabindex",
6310
6471
  "aria-checked",
6311
6472
  "aria-invalid"
6312
- ], br = ["for"], xr = ["for", "innerHTML"], Sr = ["for"], Cr = ["for", "innerHTML"];
6313
- function wr(t, n, r, i, a, u) {
6473
+ ], Sr = ["for"], Cr = ["for", "innerHTML"], wr = ["for"], Tr = ["for", "innerHTML"];
6474
+ function Er(t, n, r, i, a, u) {
6314
6475
  return S(), o(O(t.formRegister && !u.wRadios ? "w-form-element" : "div"), g({ ref: "formEl" }, t.formRegister && {
6315
6476
  validators: t.validators,
6316
6477
  inputValue: t.inputValue,
@@ -6340,17 +6501,17 @@ function wr(t, n, r, i, a, u) {
6340
6501
  "aria-checked": t.inputValue || "false",
6341
6502
  "aria-invalid": t.valid === !1 ? "true" : void 0,
6342
6503
  role: "radio"
6343
- }, null, 40, yr),
6504
+ }, null, 40, xr),
6344
6505
  u.hasLabel && r.labelOnLeft ? (S(), c(e, { key: 0 }, [t.$slots.default ? (S(), c("label", {
6345
6506
  key: 0,
6346
6507
  class: v(["w-radio__label w-form-el-shakable pr2", t.labelClasses]),
6347
6508
  for: t.inputId
6348
- }, [E(t.$slots, "default", {}, () => [d(k(r.label), 1)])], 10, br)) : r.label ? (S(), c("label", {
6509
+ }, [E(t.$slots, "default", {}, () => [d(k(r.label), 1)])], 10, Sr)) : r.label ? (S(), c("label", {
6349
6510
  key: 1,
6350
6511
  class: v(["w-radio__label w-form-el-shakable pr2", t.labelClasses]),
6351
6512
  for: t.inputId,
6352
6513
  innerHTML: r.label
6353
- }, null, 10, xr)) : s("", !0)], 64)) : s("", !0),
6514
+ }, null, 10, Cr)) : s("", !0)], 64)) : s("", !0),
6354
6515
  l("div", {
6355
6516
  class: v(["w-radio__input", this.color]),
6356
6517
  onClick: n[2] ||= (e) => {
@@ -6361,17 +6522,17 @@ function wr(t, n, r, i, a, u) {
6361
6522
  key: 0,
6362
6523
  class: v(["w-radio__label w-form-el-shakable pl2", t.labelClasses]),
6363
6524
  for: t.inputId
6364
- }, [E(t.$slots, "default", {}, () => [d(k(r.label), 1)])], 10, Sr)) : r.label ? (S(), c("label", {
6525
+ }, [E(t.$slots, "default", {}, () => [d(k(r.label), 1)])], 10, wr)) : r.label ? (S(), c("label", {
6365
6526
  key: 1,
6366
6527
  class: v(["w-radio__label w-form-el-shakable pl2", t.labelClasses]),
6367
6528
  for: t.inputId,
6368
6529
  innerHTML: r.label
6369
- }, null, 10, Cr)) : s("", !0)], 64)) : s("", !0)
6530
+ }, null, 10, Tr)) : s("", !0)], 64)) : s("", !0)
6370
6531
  ]),
6371
6532
  _: 3
6372
6533
  }, 16, ["valid", "class"]);
6373
6534
  }
6374
- var Tr = /* @__PURE__ */ G({
6535
+ var Dr = /*#__PURE__*/ G({
6375
6536
  name: "w-radio",
6376
6537
  expose: ["focus"],
6377
6538
  mixins: [Q, $],
@@ -6452,8 +6613,8 @@ var Tr = /* @__PURE__ */ G({
6452
6613
  watch: { modelValue() {
6453
6614
  this.toggleFromOutside();
6454
6615
  } }
6455
- }, [["render", wr]]), Er = ["innerHTML"];
6456
- function Dr(t, n, r, i, a, l) {
6616
+ }, [["render", Er]]), Or = ["innerHTML"];
6617
+ function kr(t, n, r, i, a, l) {
6457
6618
  let u = D("w-radio");
6458
6619
  return S(), o(O(t.formRegister ? "w-form-element" : "div"), g({ ref: "formEl" }, t.formRegister && {
6459
6620
  validators: t.validators,
@@ -6489,15 +6650,14 @@ function Dr(t, n, r, i, a, l) {
6489
6650
  class: { mt1: !r.inline && i }
6490
6651
  }), {
6491
6652
  default: N(() => [t.$slots[`item.${i + 1}`] || t.$slots.item ? E(t.$slots, t.$slots[`item.${i + 1}`] ? `item.${i + 1}` : "item", {
6492
- key: 0,
6493
6653
  item: l.getOriginalItem(e),
6494
6654
  index: i + 1,
6495
6655
  checked: e.value === r.modelValue,
6496
6656
  innerHTML: e.label
6497
- }) : e.label ? (S(), c("div", {
6657
+ }, void 0, void 0, 0) : e.label ? (S(), c("div", {
6498
6658
  key: 1,
6499
6659
  innerHTML: e.label
6500
- }, null, 8, Er)) : s("", !0)]),
6660
+ }, null, 8, Or)) : s("", !0)]),
6501
6661
  _: 2
6502
6662
  }, 1040, [
6503
6663
  "model-value",
@@ -6515,7 +6675,7 @@ function Dr(t, n, r, i, a, l) {
6515
6675
  "class"
6516
6676
  ]);
6517
6677
  }
6518
- var Or = /* @__PURE__ */ G({
6678
+ var Ar = /*#__PURE__*/ G({
6519
6679
  name: "w-radios",
6520
6680
  focusable: !0,
6521
6681
  expose: ["focus"],
@@ -6602,11 +6762,11 @@ var Or = /* @__PURE__ */ G({
6602
6762
  return this.items[e._index];
6603
6763
  }
6604
6764
  }
6605
- }, [["render", Dr]]), kr = [
6765
+ }, [["render", kr]]), jr = [
6606
6766
  "id",
6607
6767
  "name",
6608
6768
  "value"
6609
- ], Ar = ["aria-label"], jr = [
6769
+ ], Mr = ["aria-label"], Nr = [
6610
6770
  "disabled",
6611
6771
  "onMouseenter",
6612
6772
  "onClick",
@@ -6614,7 +6774,7 @@ var Or = /* @__PURE__ */ G({
6614
6774
  "aria-pressed",
6615
6775
  "tabindex"
6616
6776
  ];
6617
- function Mr(t, n, r, i, a, u) {
6777
+ function Pr(t, n, r, i, a, u) {
6618
6778
  return S(), o(O(t.formRegister ? "w-form-element" : "div"), g({ ref: "formEl" }, t.formRegister && {
6619
6779
  validators: t.validators,
6620
6780
  inputValue: a.rating,
@@ -6634,13 +6794,10 @@ function Mr(t, n, r, i, a, u) {
6634
6794
  name: t.inputName,
6635
6795
  type: "hidden",
6636
6796
  value: a.rating
6637
- }, null, 8, kr), l("div", {
6797
+ }, null, 8, jr), l("div", {
6638
6798
  role: "group",
6639
6799
  "aria-label": r.ariaLabel || "Rating"
6640
- }, [(S(!0), c(e, null, T(r.max, (i) => (S(), c(e, { key: i }, [t.$slots.item ? E(t.$slots, "item", {
6641
- key: 0,
6642
- index: i + 1
6643
- }) : s("", !0), l("button", {
6800
+ }, [(S(!0), c(e, null, T(r.max, (i) => (S(), c(e, { key: i }, [t.$slots.item ? E(t.$slots, "item", { index: i + 1 }, void 0, void 0, 0) : s("", !0), l("button", {
6644
6801
  class: v(["w-rating__button", u.buttonClasses(i)]),
6645
6802
  disabled: t.isDisabled || t.isReadonly,
6646
6803
  onMouseenter: (e) => a.hover = i,
@@ -6658,11 +6815,11 @@ function Mr(t, n, r, i, a, u) {
6658
6815
  class: v(["w-icon", `${r.icon} ${r.color}`]),
6659
6816
  "aria-hidden": "true",
6660
6817
  style: b(u.halfStarStyle)
6661
- }, null, 6)) : s("", !0)], 42, jr)], 64))), 128))], 8, Ar)]),
6818
+ }, null, 6)) : s("", !0)], 42, Nr)], 64))), 128))], 8, Mr)]),
6662
6819
  _: 3
6663
6820
  }, 16, ["valid", "class"]);
6664
6821
  }
6665
- var Nr = /* @__PURE__ */ G({
6822
+ var Fr = /*#__PURE__*/ G({
6666
6823
  name: "w-rating",
6667
6824
  focusable: !0,
6668
6825
  expose: ["focus"],
@@ -6776,14 +6933,14 @@ var Nr = /* @__PURE__ */ G({
6776
6933
  watch: { value(e) {
6777
6934
  this.rating = parseFloat(e);
6778
6935
  } }
6779
- }, [["render", Mr]]), Pr = ["tabindex", "aria-disabled"], Fr = ["id"], Ir = [
6936
+ }, [["render", Pr]]), Ir = ["tabindex", "aria-disabled"], Lr = ["id"], Rr = [
6780
6937
  "aria-controls",
6781
6938
  "aria-orientation",
6782
6939
  "aria-valuemax",
6783
6940
  "aria-valuenow",
6784
6941
  "aria-disabled",
6785
6942
  "aria-label"
6786
- ], Lr = 120, Rr = 450, zr = /* @__PURE__ */ Object.assign({
6943
+ ], zr = 120, Br = 450, Vr = /*@__PURE__*/ Object.assign({
6787
6944
  name: "WScrollable",
6788
6945
  focusable: !0
6789
6946
  }, {
@@ -6890,10 +7047,10 @@ var Nr = /* @__PURE__ */ G({
6890
7047
  return Math.max(8, Math.min(100, e * 100 / t));
6891
7048
  }), be = a(() => {
6892
7049
  let e = ue.value;
6893
- return !z.value || e === "off" ? !1 : e === "always" ? !0 : e === "hover" ? h.value || x.value || y.value : e === "interaction" ? x.value || y.value : !0;
7050
+ return !z.value || e === "off" ? !1 : e === "always" ? !0 : e === "hover" ? h.value || x.value || y.value : e !== "interaction" || x.value || y.value;
6894
7051
  });
6895
7052
  function xe(e) {
6896
- if (!(e == null || e === "")) return typeof e == "number" ? `${e}px` : typeof e == "string" && /^-?\d+(\.\d+)?$/.test(e.trim()) ? `${e.trim()}px` : e;
7053
+ if (e != null && e !== "") return typeof e == "number" ? `${e}px` : typeof e == "string" && /^-?\d+(\.\d+)?$/.test(e.trim()) ? `${e.trim()}px` : e;
6897
7054
  }
6898
7055
  let Se = a(() => ({
6899
7056
  "max-width": xe(r.width),
@@ -6943,7 +7100,7 @@ var Nr = /* @__PURE__ */ G({
6943
7100
  let t = Te(e);
6944
7101
  i("scroll", t), re.value || (re.value = !0, i("scroll-start", t)), ie && window.clearTimeout(ie), ie = window.setTimeout(() => {
6945
7102
  re.value = !1, i("scroll-end", Te("native"));
6946
- }, Lr);
7103
+ }, zr);
6947
7104
  }
6948
7105
  function De() {
6949
7106
  h.value = !0;
@@ -6957,11 +7114,7 @@ var Nr = /* @__PURE__ */ G({
6957
7114
  function U(e, t = "api") {
6958
7115
  if (!f.value) return;
6959
7116
  let n = V(e, 0, B.value), r = f.value[L.value.scrollTopOrLeft];
6960
- if (T.value = t, Math.abs(r - n) < 1) {
6961
- H(), Ee(t);
6962
- return;
6963
- }
6964
- (t === "wheel" || t === "keyboard") && Me(), D.value = !0, f.value[L.value.scrollTopOrLeft] = n, H(), Ee(t);
7117
+ T.value = t, Math.abs(r - n) < 1 ? (H(), Ee(t)) : ((t === "wheel" || t === "keyboard") && Me(), D.value = !0, f.value[L.value.scrollTopOrLeft] = n, H(), Ee(t));
6965
7118
  }
6966
7119
  function ke(e, t = "api") {
6967
7120
  U(V(e, 0, 100) / 100 * B.value, t);
@@ -6974,11 +7127,7 @@ var Nr = /* @__PURE__ */ G({
6974
7127
  });
6975
7128
  }
6976
7129
  function Ae() {
6977
- if (D.value) {
6978
- D.value = !1;
6979
- return;
6980
- }
6981
- H(), Ee(T.value), T.value = "native";
7130
+ D.value ? D.value = !1 : (H(), Ee(T.value), T.value = "native");
6982
7131
  }
6983
7132
  function je(e) {
6984
7133
  let t = e.deltaX || 0, n = e.deltaY || 0, i = 0;
@@ -6987,7 +7136,7 @@ var Nr = /* @__PURE__ */ G({
6987
7136
  function Me() {
6988
7137
  y.value = !0, j && window.clearTimeout(j), j = window.setTimeout(() => {
6989
7138
  y.value = !1, j = null;
6990
- }, Rr);
7139
+ }, Br);
6991
7140
  }
6992
7141
  function Ne() {
6993
7142
  let e = r.scrollPosition;
@@ -7071,9 +7220,7 @@ var Nr = /* @__PURE__ */ G({
7071
7220
  case "Home":
7072
7221
  a = 0;
7073
7222
  break;
7074
- case "End":
7075
- a = B.value;
7076
- break;
7223
+ case "End": a = B.value;
7077
7224
  }
7078
7225
  a !== null && (e.preventDefault(), U(a, "keyboard"));
7079
7226
  }
@@ -7122,11 +7269,7 @@ var Nr = /* @__PURE__ */ G({
7122
7269
  x.value && Be();
7123
7270
  }
7124
7271
  function We(e = C.value) {
7125
- if (typeof e == "number") {
7126
- ke(e, "api");
7127
- return;
7128
- }
7129
- e && typeof e == "object" && Ge(e);
7272
+ typeof e == "number" ? ke(e, "api") : e && typeof e == "object" && Ge(e);
7130
7273
  }
7131
7274
  function Ge({ top: e, left: t, behavior: n = "auto" } = {}) {
7132
7275
  let r = F.value ? t ?? e : e ?? t;
@@ -7194,7 +7337,7 @@ var Nr = /* @__PURE__ */ G({
7194
7337
  ref_key: "scrollableEl",
7195
7338
  ref: f,
7196
7339
  onScroll: Ae
7197
- }, [E(e.$slots, "default")], 42, Fr), P(l("div", {
7340
+ }, [E(e.$slots, "default")], 42, Lr), P(l("div", {
7198
7341
  class: v(["w-scrollable__scrollbar", R.value]),
7199
7342
  ref_key: "trackEl",
7200
7343
  ref: p,
@@ -7215,17 +7358,17 @@ var Nr = /* @__PURE__ */ G({
7215
7358
  "aria-label": ve.value,
7216
7359
  tabindex: "-1",
7217
7360
  onPointerdown: I(He, ["stop", "prevent"])
7218
- }, null, 46, Ir)], 34), [[se, z.value && de.value]])], 16, Pr));
7361
+ }, null, 46, Rr)], 34), [[se, z.value && de.value]])], 16, Ir));
7219
7362
  }
7220
- }), Br = [
7363
+ }), Hr = [
7221
7364
  "aria-expanded",
7222
7365
  "aria-owns",
7223
7366
  "aria-activedescendant"
7224
- ], Vr = {
7367
+ ], Ur = {
7225
7368
  key: 0,
7226
7369
  class: "w-select__selection-slot"
7227
- }, Hr = ["innerHTML"], Ur = ["value", "name"];
7228
- function Wr(t, n, r, i, a, p) {
7370
+ }, Wr = ["innerHTML"], Gr = ["value", "name"];
7371
+ function Kr(t, n, r, i, a, p) {
7229
7372
  let m = D("w-icon"), h = D("w-list"), _ = D("w-menu");
7230
7373
  return S(), o(O(t.formRegister ? "w-form-element" : "div"), g({ ref: "formEl" }, t.formRegister && {
7231
7374
  validators: t.validators,
@@ -7265,14 +7408,14 @@ function Wr(t, n, r, i, a, p) {
7265
7408
  onItemClick: n[7] ||= (e) => t.$emit("item-click", e),
7266
7409
  onItemSelect: p.onListItemSelect,
7267
7410
  onKeydown: p.onWListKeydown,
7268
- "onKeydown:enter": n[8] ||= (e) => r.noUnselect && !r.multiple && p.closeMenu(),
7411
+ "onKeydown:enter": n[8] ||= (e) => (r.mandatory || r.noUnselect) && !r.multiple && p.closeMenu(),
7269
7412
  "onKeydown:escape": n[9] ||= (e) => t.showMenu &&= !1,
7270
7413
  items: p.selectItems,
7271
7414
  multiple: r.multiple,
7272
7415
  "arrows-navigation": "",
7273
7416
  "return-object": "",
7274
7417
  "add-ids": i.selectListId,
7275
- "no-unselect": r.noUnselect,
7418
+ mandatory: r.mandatory || r.noUnselect,
7276
7419
  "selection-color": r.selectionColor,
7277
7420
  "item-color-key": r.itemColorKey,
7278
7421
  role: "listbox",
@@ -7280,16 +7423,14 @@ function Wr(t, n, r, i, a, p) {
7280
7423
  }, u({ _: 2 }, [T(r.items.length, (e) => ({
7281
7424
  name: `item.${e}`,
7282
7425
  fn: N(({ item: n, selected: i, index: a }) => [t.$slots[`item.${e}`] && t.$slots[`item.${e}`](n, i, a) ? E(t.$slots, `item.${e}`, {
7283
- key: 0,
7284
7426
  item: n,
7285
7427
  selected: i,
7286
7428
  index: a
7287
- }, () => [d(k(n[r.itemLabelKey]), 1)]) : E(t.$slots, "item", {
7288
- key: 1,
7429
+ }, () => [d(k(n[r.itemLabelKey]), 1)], void 0, 0) : E(t.$slots, "item", {
7289
7430
  item: n,
7290
7431
  selected: i,
7291
7432
  index: a
7292
- }, () => [d(k(n[r.itemLabelKey]), 1)])])
7433
+ }, () => [d(k(n[r.itemLabelKey]), 1)], void 0, 1)])
7293
7434
  }))]), 1032, [
7294
7435
  "model-value",
7295
7436
  "onUpdate:modelValue",
@@ -7298,7 +7439,7 @@ function Wr(t, n, r, i, a, p) {
7298
7439
  "items",
7299
7440
  "multiple",
7300
7441
  "add-ids",
7301
- "no-unselect",
7442
+ "mandatory",
7302
7443
  "selection-color",
7303
7444
  "item-color-key"
7304
7445
  ])]),
@@ -7320,20 +7461,20 @@ function Wr(t, n, r, i, a, p) {
7320
7461
  default: N(() => [d(k(r.innerIconLeft), 1)]),
7321
7462
  _: 1
7322
7463
  })) : s("", !0)]),
7323
- t.$slots.selection ? (S(), c("div", Vr, [E(t.$slots, "selection", { item: r.multiple ? t.inputValue : t.inputValue[0] })])) : s("", !0),
7464
+ t.$slots.selection ? (S(), c("div", Ur, [E(t.$slots, "selection", { item: r.multiple ? t.inputValue : t.inputValue[0] })])) : s("", !0),
7324
7465
  l("div", g({
7325
7466
  class: "w-select__selection",
7326
7467
  ref: "selection-input",
7327
7468
  onFocus: n[2] ||= (e) => !t.isDisabled && !t.isReadonly && p.onFocus(e),
7328
7469
  onBlur: n[3] ||= (...e) => p.onBlur && p.onBlur(...e),
7329
7470
  onKeydown: n[4] ||= (e) => !t.isDisabled && !t.isReadonly && p.onKeydown(e)
7330
- }, p.selectionAttributes, { innerHTML: p.selectionHtml }), null, 16, Hr),
7471
+ }, p.selectionAttributes, { innerHTML: p.selectionHtml }), null, 16, Wr),
7331
7472
  (S(!0), c(e, null, T(t.inputValue.length ? t.inputValue : [{}], (e, n) => (S(), c("input", {
7332
7473
  key: n,
7333
7474
  type: "hidden",
7334
7475
  value: e.value === void 0 ? "" : e.value.toString(),
7335
7476
  name: t.inputName + (r.multiple ? "[]" : "")
7336
- }, null, 8, Ur))), 128)),
7477
+ }, null, 8, Gr))), 128)),
7337
7478
  r.labelPosition === "inside" && p.showLabelInside ? (S(), c(e, { key: 1 }, [t.$slots.default || r.label ? (S(), c("label", {
7338
7479
  key: 0,
7339
7480
  class: v(["w-select__label w-select__label--inside w-form-el-shakable", t.labelClasses])
@@ -7347,7 +7488,7 @@ function Wr(t, n, r, i, a, p) {
7347
7488
  default: N(() => [d(k(r.innerIconRight), 1)]),
7348
7489
  _: 1
7349
7490
  })) : s("", !0)])
7350
- ], 10, Br)]),
7491
+ ], 10, Hr)]),
7351
7492
  _: 3
7352
7493
  }, 16, [
7353
7494
  "modelValue",
@@ -7369,7 +7510,7 @@ function Wr(t, n, r, i, a, p) {
7369
7510
  "class"
7370
7511
  ]);
7371
7512
  }
7372
- var Gr = /* @__PURE__ */ G({
7513
+ var qr = /*#__PURE__*/ G({
7373
7514
  name: "w-select",
7374
7515
  expose: ["focus"],
7375
7516
  mixins: [Q, $],
@@ -7436,6 +7577,7 @@ var Gr = /* @__PURE__ */ G({
7436
7577
  lg: { type: Boolean },
7437
7578
  xl: { type: Boolean },
7438
7579
  returnObject: { type: Boolean },
7580
+ mandatory: { type: Boolean },
7439
7581
  noUnselect: { type: Boolean },
7440
7582
  menuProps: { type: Object },
7441
7583
  dark: { type: Boolean },
@@ -7547,23 +7689,24 @@ var Gr = /* @__PURE__ */ G({
7547
7689
  onKeydown(e) {
7548
7690
  if (!e.metaKey && !e.ctrlKey && e.keyCode !== 9 && e.preventDefault(), e.keyCode === 27 && this.showMenu) this.closeMenu();
7549
7691
  else if ([13, 32].includes(e.keyCode)) this.openMenu();
7550
- else if ([38, 40].includes(e.keyCode)) if (this.multiple) this.openMenu();
7551
- else {
7552
- let { index: t } = this.inputValue[0] || {}, n = this.selectItems;
7553
- if (t === void 0) t = e.keyCode === 38 ? n.length - 1 : 0;
7692
+ else if ([38, 40].includes(e.keyCode)) {
7693
+ if (this.multiple) this.openMenu();
7554
7694
  else {
7555
- let r = e.keyCode === 38 ? -1 : 1;
7556
- t = (t + n.length + r) % n.length;
7557
- }
7558
- let r = !1;
7559
- if (n[t].disabled) {
7560
- let i = e.keyCode === 38 ? -1 : 1, a = (t + i + n.length) % n.length, o = n.length, s = 0;
7561
- for (; s < o && n[a].disabled;) a = (a + n.length + i) % n.length, s++;
7562
- s >= o && (r = !0), t = a;
7695
+ let { index: t } = this.inputValue[0] || {}, n = this.selectItems;
7696
+ if (t === void 0) t = e.keyCode === 38 ? n.length - 1 : 0;
7697
+ else {
7698
+ let r = e.keyCode === 38 ? -1 : 1;
7699
+ t = (t + n.length + r) % n.length;
7700
+ }
7701
+ let r = !1;
7702
+ if (n[t].disabled) {
7703
+ let i = e.keyCode === 38 ? -1 : 1, a = (t + i + n.length) % n.length, o = n.length, s = 0;
7704
+ for (; s < o && n[a].disabled;) a = (a + n.length + i) % n.length, s++;
7705
+ s >= o && (r = !0), t = a;
7706
+ }
7707
+ r || this.onInput(n[t]);
7563
7708
  }
7564
- r || this.onInput(n[t]);
7565
- }
7566
- else e.key.length === 1 && this.focusItemOnQuickLookup(e);
7709
+ } else e.key.length === 1 && this.focusItemOnQuickLookup(e);
7567
7710
  },
7568
7711
  onWListKeydown(e) {
7569
7712
  e.key.length === 1 && this.focusItemOnQuickLookup(e);
@@ -7621,12 +7764,12 @@ var Gr = /* @__PURE__ */ G({
7621
7764
  this.inputValue = this.checkSelection(this.modelValue);
7622
7765
  }
7623
7766
  }
7624
- }, [["render", Wr]]), Kr = ["for"], qr = ["for", "innerHTML"], Jr = { class: "w-slider__track-wrap" }, Yr = [
7767
+ }, [["render", Kr]]), Jr = ["for"], Yr = ["for", "innerHTML"], Xr = { class: "w-slider__track-wrap" }, Zr = [
7625
7768
  "aria-valuemin",
7626
7769
  "aria-valuemax",
7627
7770
  "aria-valuenow",
7628
7771
  "aria-readonly"
7629
- ], Xr = [
7772
+ ], Qr = [
7630
7773
  "id",
7631
7774
  "name",
7632
7775
  "model-value",
@@ -7634,11 +7777,11 @@ var Gr = /* @__PURE__ */ G({
7634
7777
  "readonly",
7635
7778
  "aria-readonly",
7636
7779
  "tabindex"
7637
- ], Zr = ["for"], Qr = { key: 0 }, $r = {
7780
+ ], $r = ["for"], ei = { key: 0 }, ti = {
7638
7781
  key: 0,
7639
7782
  class: "w-slider__step-labels"
7640
- }, ei = ["onClick"], ti = ["for"], ni = ["for", "innerHTML"];
7641
- function ri(t, n, r, i, a, u) {
7783
+ }, ni = ["onClick"], ri = ["for"], ii = ["for", "innerHTML"];
7784
+ function ai(t, n, r, i, a, u) {
7642
7785
  return S(), o(O(t.formRegister ? "w-form-element" : "div"), g({ ref: "formEl" }, t.formRegister && {
7643
7786
  validators: t.validators,
7644
7787
  inputValue: t.rangeValueScaled,
@@ -7659,13 +7802,13 @@ function ri(t, n, r, i, a, u) {
7659
7802
  key: 0,
7660
7803
  class: v(["w-slider__label w-slider__label--left w-form-el-shakable", t.labelClasses]),
7661
7804
  for: u.thumbId
7662
- }, [E(t.$slots, "label-left")], 10, Kr)) : r.labelLeft ? (S(), c("label", {
7805
+ }, [E(t.$slots, "label-left")], 10, Jr)) : r.labelLeft ? (S(), c("label", {
7663
7806
  key: 1,
7664
7807
  class: v(["w-slider__label w-slider__label--left w-form-el-shakable", t.labelClasses]),
7665
7808
  for: u.thumbId,
7666
7809
  innerHTML: r.labelLeft
7667
- }, null, 10, qr)) : s("", !0),
7668
- l("div", Jr, [l("div", {
7810
+ }, null, 10, Yr)) : s("", !0),
7811
+ l("div", Xr, [l("div", {
7669
7812
  class: v(["w-slider__track", u.trackClasses]),
7670
7813
  ref: "track",
7671
7814
  onMousedown: n[4] ||= (...e) => u.onTrackMouseDown && u.onTrackMouseDown(...e),
@@ -7696,14 +7839,11 @@ function ri(t, n, r, i, a, u) {
7696
7839
  onKeydown: [n[0] ||= F((e) => u.onKeyDown(e, -1), ["left"]), n[1] ||= F((e) => u.onKeyDown(e, 1), ["right"])],
7697
7840
  onFocus: n[2] ||= (e) => t.$emit("focus", e),
7698
7841
  onClick: n[3] ||= I(() => {}, ["prevent"])
7699
- }, null, 42, Xr), r.thumbLabel ? (S(), c("label", {
7842
+ }, null, 42, Qr), r.thumbLabel ? (S(), c("label", {
7700
7843
  key: 0,
7701
7844
  class: v(["w-slider__thumb-label", u.thumbClasses]),
7702
7845
  for: u.thumbId
7703
- }, [r.thumbLabel === "droplet" ? (S(), c("div", Qr, [E(t.$slots, "label", { value: t.rangeValueScaled }, () => [d(k(~~t.rangeValueScaled), 1)])])) : E(t.$slots, "label", {
7704
- key: 1,
7705
- value: t.rangeValueScaled
7706
- }, () => [d(k(~~t.rangeValueScaled), 1)])], 10, Zr)) : s("", !0)], 4)], 42, Yr), r.stepLabels && r.step ? (S(), c("div", $r, [
7846
+ }, [r.thumbLabel === "droplet" ? (S(), c("div", ei, [E(t.$slots, "label", { value: t.rangeValueScaled }, () => [d(k(~~t.rangeValueScaled), 1)])])) : E(t.$slots, "label", { value: t.rangeValueScaled }, () => [d(k(~~t.rangeValueScaled), 1)], void 0, 1)], 10, $r)) : s("", !0)], 4)], 42, Zr), r.stepLabels && r.step ? (S(), c("div", ti, [
7707
7847
  l("div", {
7708
7848
  class: "w-slider__step-label",
7709
7849
  onClick: n[6] ||= (e) => u.onStepLabelClick(0)
@@ -7713,7 +7853,7 @@ function ri(t, n, r, i, a, u) {
7713
7853
  key: e,
7714
7854
  onClick: (t) => u.onStepLabelClick(e * (100 / u.numberOfSteps)),
7715
7855
  style: b(`left: ${e * (100 / u.numberOfSteps)}%`)
7716
- }, k(u.percentToScaled(e * (100 / u.numberOfSteps))), 13, ei))), 128)),
7856
+ }, k(u.percentToScaled(e * (100 / u.numberOfSteps))), 13, ni))), 128)),
7717
7857
  ~~u.numberOfSteps === u.numberOfSteps ? s("", !0) : (S(), c("div", {
7718
7858
  key: 0,
7719
7859
  class: "w-slider__step-label",
@@ -7725,12 +7865,12 @@ function ri(t, n, r, i, a, u) {
7725
7865
  key: 2,
7726
7866
  class: v(["w-slider__label w-slider__label--right w-form-el-shakable", t.labelClasses]),
7727
7867
  for: u.thumbId
7728
- }, [E(t.$slots, "label-right")], 10, ti)) : r.labelRight ? (S(), c("label", {
7868
+ }, [E(t.$slots, "label-right")], 10, ri)) : r.labelRight ? (S(), c("label", {
7729
7869
  key: 3,
7730
7870
  class: v(["w-slider__label w-slider__label--right w-form-el-shakable", t.labelClasses]),
7731
7871
  for: u.thumbId,
7732
7872
  innerHTML: r.labelRight
7733
- }, null, 10, ni)) : s("", !0)
7873
+ }, null, 10, ii)) : s("", !0)
7734
7874
  ]),
7735
7875
  _: 3
7736
7876
  }, 16, [
@@ -7739,7 +7879,7 @@ function ri(t, n, r, i, a, u) {
7739
7879
  "class"
7740
7880
  ]);
7741
7881
  }
7742
- var ii = /* @__PURE__ */ G({
7882
+ var oi = /*#__PURE__*/ G({
7743
7883
  name: "w-slider",
7744
7884
  expose: ["focus"],
7745
7885
  focusTargetRef: "thumb",
@@ -7893,17 +8033,17 @@ var ii = /* @__PURE__ */ G({
7893
8033
  watch: { modelValue(e) {
7894
8034
  this.rangeValueScaled !== e && (this.rangeValueScaled = e, this.rangeValuePercent = this.scaledToPercent(e));
7895
8035
  } }
7896
- }, [["render", ri]]), ai = ["aria-label"], oi = { key: 0 };
7897
- function si(e, t, n, r, i, a) {
8036
+ }, [["render", ai]]), si = ["aria-label"], ci = { key: 0 };
8037
+ function li(e, t, n, r, i, a) {
7898
8038
  return n.modelValue || n.modelValue === void 0 ? (S(), c("div", {
7899
8039
  key: 0,
7900
8040
  class: v(["w-spinner", a.classes]),
7901
8041
  role: "status",
7902
8042
  "aria-label": n.ariaLabel || "Loading",
7903
8043
  style: b(a.styles)
7904
- }, [a.isThreeDots ? (S(), c("span", oi)) : s("", !0)], 14, ai)) : s("", !0);
8044
+ }, [a.isThreeDots ? (S(), c("span", ci)) : s("", !0)], 14, si)) : s("", !0);
7905
8045
  }
7906
- var ci = /* @__PURE__ */ G({
8046
+ var ui = /*#__PURE__*/ G({
7907
8047
  name: "w-spinner",
7908
8048
  props: {
7909
8049
  modelValue: {},
@@ -7945,13 +8085,12 @@ var ci = /* @__PURE__ */ G({
7945
8085
  };
7946
8086
  }
7947
8087
  }
7948
- }, [["render", si]]);
7949
- //#endregion
7950
- //#region src/wave-ui/components/w-steps.vue?vue&type=template&lang.js
7951
- function li(e, t, n, r, i, a) {
8088
+ }, [["render", li]]);
8089
+ // src/wave-ui/components/w-steps.vue?vue&type=template&lang.js
8090
+ function di(e, t, n, r, i, a) {
7952
8091
  return S(), c("div", { class: v(["w-steps", a.classes]) }, null, 2);
7953
8092
  }
7954
- var ui = /* @__PURE__ */ G({
8093
+ var fi = /*#__PURE__*/ G({
7955
8094
  name: "w-steps",
7956
8095
  props: {
7957
8096
  dark: { type: Boolean },
@@ -7965,7 +8104,7 @@ var ui = /* @__PURE__ */ G({
7965
8104
  "w-steps--light": this.light
7966
8105
  };
7967
8106
  } }
7968
- }, [["render", li]]), di = [
8107
+ }, [["render", di]]), pi = [
7969
8108
  "id",
7970
8109
  "name",
7971
8110
  "checked",
@@ -7975,11 +8114,11 @@ var ui = /* @__PURE__ */ G({
7975
8114
  "required",
7976
8115
  "tabindex",
7977
8116
  "aria-checked"
7978
- ], fi = ["for"], pi = {
8117
+ ], mi = ["for"], hi = {
7979
8118
  key: 0,
7980
8119
  class: "w-switch__track"
7981
- }, mi = { class: "w-switch__thumb" }, hi = { class: "w-switch__thumb-content" }, gi = ["for"];
7982
- function _i(t, n, r, i, a, u) {
8120
+ }, gi = { class: "w-switch__thumb" }, _i = { class: "w-switch__thumb-content" }, vi = ["for"];
8121
+ function yi(t, n, r, i, a, u) {
7983
8122
  let f = D("w-progress");
7984
8123
  return S(), o(O(t.formRegister ? "w-form-element" : "div"), g({ ref: "formEl" }, t.formRegister && {
7985
8124
  validators: t.validators,
@@ -8016,27 +8155,27 @@ function _i(t, n, r, i, a, u) {
8016
8155
  onBlur: n[2] ||= (e) => t.$emit("blur", e),
8017
8156
  "aria-checked": a.isOn || "false",
8018
8157
  role: "switch"
8019
- }), null, 16, di),
8158
+ }), null, 16, pi),
8020
8159
  u.hasLabel && r.labelOnLeft ? (S(), c(e, { key: 0 }, [t.$slots.default || r.label ? (S(), c("label", {
8021
8160
  key: 0,
8022
8161
  class: v(["w-switch__label w-switch__label--left w-form-el-shakable", t.labelClasses]),
8023
8162
  for: t.inputId
8024
- }, [E(t.$slots, "default", {}, () => [d(k(r.label), 1)])], 10, fi)) : s("", !0)], 64)) : s("", !0),
8163
+ }, [E(t.$slots, "default", {}, () => [d(k(r.label), 1)])], 10, mi)) : s("", !0)], 64)) : s("", !0),
8025
8164
  l("div", {
8026
8165
  class: v(["w-switch__input", u.inputClasses]),
8027
8166
  onClick: n[3] ||= (e) => {
8028
8167
  t.$refs.input.focus(), t.$refs.input.click();
8029
8168
  }
8030
- }, [t.$slots.track ? (S(), c("div", pi, [E(t.$slots, "track")])) : s("", !0), l("div", mi, [l("div", hi, [r.loading ? (S(), o(f, g({
8169
+ }, [t.$slots.track ? (S(), c("div", hi, [E(t.$slots, "track")])) : s("", !0), l("div", gi, [l("div", _i, [r.loading ? (S(), o(f, g({
8031
8170
  key: 0,
8032
8171
  circle: "",
8033
8172
  color: "inherit"
8034
- }, typeof r.loading == "number" && { "model-value": r.loading }), null, 16)) : t.$slots.thumb ? E(t.$slots, "thumb", { key: 1 }) : s("", !0)])])], 2),
8173
+ }, typeof r.loading == "number" && { "model-value": r.loading }), null, 16)) : t.$slots.thumb ? E(t.$slots, "thumb", {}, void 0, void 0, 1) : s("", !0)])])], 2),
8035
8174
  u.hasLabel && !r.labelOnLeft ? (S(), c(e, { key: 1 }, [t.$slots.default || r.label ? (S(), c("label", {
8036
8175
  key: 0,
8037
8176
  class: v(["w-switch__label w-switch__label--right w-form-el-shakable", t.labelClasses]),
8038
8177
  for: t.inputId
8039
- }, [E(t.$slots, "default", {}, () => [d(k(r.label), 1)])], 10, gi)) : s("", !0)], 64)) : s("", !0)
8178
+ }, [E(t.$slots, "default", {}, () => [d(k(r.label), 1)])], 10, vi)) : s("", !0)], 64)) : s("", !0)
8040
8179
  ]),
8041
8180
  _: 3
8042
8181
  }, 16, [
@@ -8045,7 +8184,7 @@ function _i(t, n, r, i, a, u) {
8045
8184
  "style"
8046
8185
  ]);
8047
8186
  }
8048
- var vi = /* @__PURE__ */ G({
8187
+ var bi = /*#__PURE__*/ G({
8049
8188
  name: "w-switch",
8050
8189
  expose: ["focus"],
8051
8190
  mixins: [Q, $],
@@ -8141,28 +8280,28 @@ var vi = /* @__PURE__ */ G({
8141
8280
  watch: { modelValue(e) {
8142
8281
  this.isOn = e;
8143
8282
  } }
8144
- }, [["render", _i]]), yi = { class: "w-tabs__content" };
8145
- function bi(e, t, n, r, i, a) {
8146
- return S(), c("div", yi, [E(e.$slots, "default", { item: n.item })]);
8283
+ }, [["render", yi]]), xi = { class: "w-tabs__content" };
8284
+ function Si(e, t, n, r, i, a) {
8285
+ return S(), c("div", xi, [E(e.$slots, "default", { item: n.item })]);
8147
8286
  }
8148
- var xi = /* @__PURE__ */ G({
8287
+ var Ci = /*#__PURE__*/ G({
8149
8288
  name: "tab-content",
8150
8289
  props: { item: Object }
8151
- }, [["render", bi]]), Si = [
8290
+ }, [["render", Si]]), wi = [
8152
8291
  "onPointerdown",
8153
8292
  "onClick",
8154
8293
  "onFocus",
8155
8294
  "tabindex",
8156
8295
  "onKeypress",
8157
8296
  "aria-selected"
8158
- ], Ci = ["innerHTML"], wi = {
8297
+ ], Ti = ["innerHTML"], Ei = {
8159
8298
  key: 0,
8160
8299
  class: "w-tabs__bar-extra"
8161
- }, Ti = {
8300
+ }, Di = {
8162
8301
  key: 0,
8163
8302
  class: "w-tabs__content-wrap"
8164
- }, Ei = ["innerHTML"], Di = ["innerHTML"];
8165
- function Oi(n, a, u, d, f, p) {
8303
+ }, Oi = ["innerHTML"], ki = ["innerHTML"];
8304
+ function Ai(n, a, u, d, f, p) {
8166
8305
  let m = D("tab-content");
8167
8306
  return S(), c("div", { class: v(["w-tabs", p.tabsClasses]) }, [l("div", {
8168
8307
  class: v(["w-tabs__bar", p.tabsBarClasses]),
@@ -8179,23 +8318,21 @@ function Oi(n, a, u, d, f, p) {
8179
8318
  "aria-selected": e._uid === n.activeTabUid ? "true" : "false",
8180
8319
  role: "tab"
8181
8320
  }, [n.$slots[`item-title.${e.id || t + 1}`] ? E(n.$slots, `item-title.${e.id || t + 1}`, {
8182
- key: 0,
8183
8321
  item: p.getOriginalItem(e),
8184
8322
  index: t + 1,
8185
8323
  active: e._uid === n.activeTabUid
8186
- }) : E(n.$slots, "item-title", {
8187
- key: 1,
8324
+ }, void 0, void 0, 0) : E(n.$slots, "item-title", {
8188
8325
  item: p.getOriginalItem(e),
8189
8326
  index: t + 1,
8190
8327
  active: e._uid === n.activeTabUid
8191
- }, () => [l("div", { innerHTML: e[u.itemTitleKey] }, null, 8, Ci)])], 42, Si))), 128)),
8192
- n.$slots["tabs-bar-extra"] ? (S(), c("div", wi, [E(n.$slots, "tabs-bar-extra")])) : s("", !0),
8328
+ }, () => [l("div", { innerHTML: e[u.itemTitleKey] }, null, 8, Ti)], void 0, 1)], 42, wi))), 128)),
8329
+ n.$slots["tabs-bar-extra"] ? (S(), c("div", Ei, [E(n.$slots, "tabs-bar-extra")])) : s("", !0),
8193
8330
  !u.noSlider && !u.card ? (S(), c("div", {
8194
8331
  key: 1,
8195
8332
  class: v(["w-tabs__slider", u.sliderColor]),
8196
8333
  style: b(p.sliderStyles)
8197
8334
  }, null, 6)) : s("", !0)
8198
- ], 2), n.tabs.length ? (S(), c("div", Ti, [u.keepInDom ? (S(), o(i, {
8335
+ ], 2), n.tabs.length ? (S(), c("div", Di, [u.keepInDom ? (S(), o(i, {
8199
8336
  key: 0,
8200
8337
  name: p.transitionName
8201
8338
  }, {
@@ -8205,19 +8342,17 @@ function Oi(n, a, u, d, f, p) {
8205
8342
  class: v(p.contentClasses)
8206
8343
  }, {
8207
8344
  default: N(() => [n.$slots[`item-content.${e._index + 1}`] ? E(n.$slots, `item-content.${e._index + 1}`, {
8208
- key: 0,
8209
8345
  item: p.getOriginalItem(e),
8210
8346
  index: e._index + 1,
8211
8347
  active: e._index === p.activeTab._index
8212
- }) : E(n.$slots, "item-content", {
8213
- key: 1,
8348
+ }, void 0, void 0, 0) : E(n.$slots, "item-content", {
8214
8349
  item: p.getOriginalItem(e),
8215
8350
  index: e._index + 1,
8216
8351
  active: e._index === p.activeTab._index
8217
8352
  }, () => [e[u.itemContentKey] ? (S(), c("div", {
8218
8353
  key: 0,
8219
8354
  innerHTML: e[u.itemContentKey]
8220
- }, null, 8, Ei)) : s("", !0)])]),
8355
+ }, null, 8, Oi)) : s("", !0)], void 0, 1)]),
8221
8356
  _: 2
8222
8357
  }, 1032, ["item", "class"])), [[se, e._uid === p.activeTab._uid]])), 128))]),
8223
8358
  _: 3
@@ -8232,25 +8367,23 @@ function Oi(n, a, u, d, f, p) {
8232
8367
  class: v(u.contentClass)
8233
8368
  }, {
8234
8369
  default: N(({ item: t }) => [t ? (S(), c(e, { key: 0 }, [n.$slots[`item-content.${t._index + 1}`] ? E(n.$slots, `item-content.${t._index + 1}`, {
8235
- key: 0,
8236
8370
  item: p.getOriginalItem(t),
8237
8371
  index: t._index + 1,
8238
8372
  active: t._uid === n.activeTabUid
8239
- }) : E(n.$slots, "item-content", {
8240
- key: 1,
8373
+ }, void 0, void 0, 0) : E(n.$slots, "item-content", {
8241
8374
  item: p.getOriginalItem(t),
8242
8375
  index: t._index + 1,
8243
8376
  active: t._uid === n.activeTabUid
8244
8377
  }, () => [t[u.itemContentKey] ? (S(), c("div", {
8245
8378
  key: 0,
8246
8379
  innerHTML: t[u.itemContentKey]
8247
- }, null, 8, Di)) : s("", !0)])], 64)) : s("", !0)]),
8380
+ }, null, 8, ki)) : s("", !0)], void 0, 1)], 64)) : s("", !0)]),
8248
8381
  _: 3
8249
8382
  }, 8, ["item", "class"]))], 1032, ["exclude"]))]),
8250
8383
  _: 3
8251
8384
  }, 8, ["name", "mode"]))])) : s("", !0)], 2);
8252
8385
  }
8253
- var ki = /* @__PURE__ */ G({
8386
+ var ji = /*#__PURE__*/ G({
8254
8387
  name: "w-tabs",
8255
8388
  focusable: !0,
8256
8389
  expose: ["focus"],
@@ -8318,7 +8451,7 @@ var ki = /* @__PURE__ */ G({
8318
8451
  default: !1
8319
8452
  }
8320
8453
  },
8321
- components: { TabContent: xi },
8454
+ components: { TabContent: Ci },
8322
8455
  emits: [
8323
8456
  "input",
8324
8457
  "update:modelValue",
@@ -8399,7 +8532,7 @@ var ki = /* @__PURE__ */ G({
8399
8532
  this.activeTabUid = n?._uid || null, this.activeTabIndex = n?._index || 0;
8400
8533
  },
8401
8534
  shouldEmitUidModelValue() {
8402
- return typeof this.modelValue == "string" ? !/^\d+$/.test(this.modelValue.trim()) : !1;
8535
+ return typeof this.modelValue == "string" && !/^\d+$/.test(this.modelValue.trim());
8403
8536
  },
8404
8537
  getModelValueForTab(e) {
8405
8538
  return this.shouldEmitUidModelValue() ? e[this.itemIdKey] ?? e._uid : e._index;
@@ -8503,45 +8636,45 @@ var ki = /* @__PURE__ */ G({
8503
8636
  e ? window.removeEventListener("resize", this.onResize) : (this.updateSlider(), window.addEventListener("resize", this.onResize));
8504
8637
  }
8505
8638
  }
8506
- }, [["render", Oi]]), Ai = { class: "w-table__scroll-wrap" }, ji = { ref: "colgroup" }, Mi = ["width"], Ni = { key: 0 }, Pi = ["onClick", "onPointerdown"], Fi = ["innerHTML"], Ii = {
8639
+ }, [["render", Ai]]), Mi = { class: "w-table__scroll-wrap" }, Ni = { ref: "colgroup" }, Pi = ["width"], Fi = { key: 0 }, Ii = ["onClick", "onPointerdown"], Li = ["innerHTML"], Ri = {
8507
8640
  key: 0,
8508
8641
  class: "w-table__progress-bar"
8509
- }, Li = ["colspan"], Ri = {
8642
+ }, zi = ["colspan"], Bi = {
8510
8643
  key: 0,
8511
8644
  class: "w-table__progress-bar"
8512
- }, zi = ["colspan"], Bi = { class: "w-table__loading-text" }, Vi = {
8645
+ }, Vi = ["colspan"], Hi = { class: "w-table__loading-text" }, Ui = {
8513
8646
  key: 1,
8514
8647
  class: "no-data"
8515
- }, Hi = ["colspan"], Ui = ["onClick"], Wi = ["data-label"], Gi = ["data-label"], Ki = ["innerHTML"], qi = {
8648
+ }, Wi = ["colspan"], Gi = ["onClick"], Ki = ["data-label"], qi = ["data-label"], Ji = ["innerHTML"], Yi = {
8516
8649
  key: 2,
8517
8650
  class: "w-table__row w-table__row--expansion"
8518
- }, Ji = ["colspan"], Yi = { key: 0 }, Xi = {
8651
+ }, Xi = ["colspan"], Zi = { key: 0 }, Qi = {
8519
8652
  key: 3,
8520
8653
  class: "w-table__extra-row"
8521
- }, Zi = {
8654
+ }, $i = {
8522
8655
  key: 1,
8523
8656
  class: "w-table__footer"
8524
- }, Qi = {
8657
+ }, ea = {
8525
8658
  key: 1,
8526
8659
  class: "w-table__row"
8527
- }, $i = ["colspan"], ea = {
8660
+ }, ta = ["colspan"], na = {
8528
8661
  key: 0,
8529
8662
  class: "w-table__pagination w-pagination"
8530
- }, ta = { class: "pages-wrap" }, na = { class: "w-pagination__results" };
8531
- function ra(t, n, r, i, a, u) {
8663
+ }, ra = { class: "pages-wrap" }, ia = { class: "w-pagination__results" };
8664
+ function aa(t, n, r, i, a, u) {
8532
8665
  let p = D("w-icon"), m = D("w-progress"), h = D("w-transition-fade"), g = D("w-transition-expand"), _ = D("w-select"), y = D("w-button");
8533
- return S(), c("div", { class: v(["w-table w-table--wrap", u.classes]) }, [l("div", Ai, [l("table", {
8666
+ return S(), c("div", { class: v(["w-table w-table--wrap", u.classes]) }, [l("div", Mi, [l("table", {
8534
8667
  class: v(["w-table__table", r.tableClass]),
8535
8668
  onMousedown: n[2] ||= (...e) => u.onMouseDown && u.onMouseDown(...e),
8536
8669
  onMouseover: n[3] ||= (...e) => u.onMouseOver && u.onMouseOver(...e),
8537
8670
  onMouseout: n[4] ||= (...e) => u.onMouseOut && u.onMouseOut(...e)
8538
8671
  }, [
8539
- l("colgroup", ji, [(S(!0), c(e, null, T(r.headers, (e, t) => (S(), c("col", {
8672
+ l("colgroup", Ni, [(S(!0), c(e, null, T(r.headers, (e, t) => (S(), c("col", {
8540
8673
  class: v(["w-table__col", u.colClasses[t]]),
8541
8674
  key: t,
8542
8675
  width: e.width || null
8543
- }, null, 10, Mi))), 128))], 512),
8544
- r.noHeaders ? s("", !0) : (S(), c("thead", Ni, [l("tr", null, [(S(!0), c(e, null, T(r.headers, (i, a) => (S(), c("th", {
8676
+ }, null, 10, Pi))), 128))], 512),
8677
+ r.noHeaders ? s("", !0) : (S(), c("thead", Fi, [l("tr", null, [(S(!0), c(e, null, T(r.headers, (i, a) => (S(), c("th", {
8545
8678
  class: v(["w-table__header", u.headerClasses(i)]),
8546
8679
  key: a,
8547
8680
  onClick: (e) => !t.colResizing.dragging && i.sortable !== !1 && u.sortTable(i),
@@ -8555,14 +8688,13 @@ function ra(t, n, r, i, a, u) {
8555
8688
  _: 1
8556
8689
  }, 8, ["class"])) : s("", !0),
8557
8690
  i.label ? (S(), c(e, { key: 1 }, [t.$slots["header-label"] ? E(t.$slots, "header-label", {
8558
- key: 0,
8559
8691
  header: i,
8560
8692
  label: i.label,
8561
8693
  index: a + 1
8562
- }, () => [d(k(i.label || ""), 1)]) : (S(), c("span", {
8694
+ }, () => [d(k(i.label || ""), 1)], void 0, 0) : (S(), c("span", {
8563
8695
  key: 1,
8564
8696
  innerHTML: i.label || ""
8565
- }, null, 8, Fi))], 64)) : s("", !0),
8697
+ }, null, 8, Li))], 64)) : s("", !0),
8566
8698
  i.sortable !== !1 && i.align !== "right" ? (S(), o(p, {
8567
8699
  key: 2,
8568
8700
  class: v(["w-table__header-sort", u.headerSortClasses(i)])
@@ -8578,17 +8710,16 @@ function ra(t, n, r, i, a, u) {
8578
8710
  }]),
8579
8711
  onClick: n[0] ||= I(() => {}, ["stop"])
8580
8712
  }, null, 2)) : s("", !0)
8581
- ], 42, Pi))), 128))]), f(h, null, {
8582
- default: N(() => [r.loading === "header" ? (S(), c("tr", Ii, [l("td", { colspan: r.headers.length }, [f(m, { tile: "" })], 8, Li)])) : s("", !0)]),
8713
+ ], 42, Ii))), 128))]), f(h, null, {
8714
+ default: N(() => [r.loading === "header" ? (S(), c("tr", Ri, [l("td", { colspan: r.headers.length }, [f(m, { tile: "" })], 8, zi)])) : s("", !0)]),
8583
8715
  _: 1
8584
8716
  })])),
8585
8717
  l("tbody", null, [
8586
- r.loading === !0 ? (S(), c("tr", Ri, [l("td", { colspan: r.headers.length }, [f(m, { tile: "" }), l("div", Bi, [E(t.$slots, "loading", {}, () => [n[11] ||= d("Loading...", -1)])])], 8, zi)])) : u.tableItems.length ? s("", !0) : (S(), c("tr", Vi, [l("td", {
8718
+ r.loading === !0 ? (S(), c("tr", Bi, [l("td", { colspan: r.headers.length }, [f(m, { tile: "" }), l("div", Hi, [E(t.$slots, "loading", {}, () => [n[11] ||= d("Loading...", -1)])])], 8, Vi)])) : u.tableItems.length ? s("", !0) : (S(), c("tr", Ui, [l("td", {
8587
8719
  class: "w-table__cell text-center",
8588
8720
  colspan: r.headers.length
8589
- }, [E(t.$slots, "no-data", {}, () => [n[12] ||= d("No data to show.", -1)])], 8, Hi)])),
8721
+ }, [E(t.$slots, "no-data", {}, () => [n[12] ||= d("No data to show.", -1)])], 8, Wi)])),
8590
8722
  u.tableItems.length && r.loading !== !0 ? (S(!0), c(e, { key: 2 }, T(u.paginatedItems, (i, a) => (S(), c(e, { key: a }, [t.$slots.item ? E(t.$slots, "item", {
8591
- key: 0,
8592
8723
  item: i,
8593
8724
  index: a + 1,
8594
8725
  select: () => u.doSelectRow(i, a),
@@ -8597,7 +8728,7 @@ function ra(t, n, r, i, a, u) {
8597
8728
  "w-table__row--selected": u.selectedRowsByUid[i._uid] !== void 0,
8598
8729
  "w-table__row--expanded": u.expandedRowsByUid[i._uid] !== void 0
8599
8730
  }
8600
- }) : (S(), c("tr", {
8731
+ }, void 0, void 0, 0) : (S(), c("tr", {
8601
8732
  key: 1,
8602
8733
  class: v(["w-table__row", [{
8603
8734
  "w-table__row--selected": u.selectedRowsByUid[i._uid] !== void 0,
@@ -8611,44 +8742,41 @@ function ra(t, n, r, i, a, u) {
8611
8742
  key: `${o}-a`,
8612
8743
  "data-label": n.label
8613
8744
  }, [t.$slots[`item-cell.${n.key}`] ? E(t.$slots, `item-cell.${n.key}`, {
8614
- key: 0,
8615
8745
  header: n,
8616
8746
  item: i,
8617
8747
  label: i[n.key] || "",
8618
8748
  index: a + 1
8619
- }) : t.$slots[`item-cell.${o + 1}`] ? E(t.$slots, `item-cell.${o + 1}`, {
8620
- key: 1,
8749
+ }, void 0, void 0, 0) : t.$slots[`item-cell.${o + 1}`] ? E(t.$slots, `item-cell.${o + 1}`, {
8621
8750
  header: n,
8622
8751
  item: i,
8623
8752
  label: i[n.key] || "",
8624
8753
  index: a + 1
8625
- }) : t.$slots["item-cell"] ? E(t.$slots, "item-cell", {
8626
- key: 2,
8754
+ }, void 0, void 0, 1) : t.$slots["item-cell"] ? E(t.$slots, "item-cell", {
8627
8755
  header: n,
8628
8756
  item: i,
8629
8757
  label: i[n.key] || "",
8630
8758
  index: a + 1
8631
- }) : s("", !0), o < r.headers.length - 1 && r.resizableColumns ? (S(), c("span", {
8759
+ }, void 0, void 0, 2) : s("", !0), o < r.headers.length - 1 && r.resizableColumns ? (S(), c("span", {
8632
8760
  key: 3,
8633
8761
  class: v(["w-table__col-resizer", {
8634
8762
  "w-table__col-resizer--hover": t.colResizing.hover === o,
8635
8763
  "w-table__col-resizer--active": t.colResizing.columnIndex === o
8636
8764
  }])
8637
- }, null, 2)) : s("", !0)], 10, Wi)) : (S(), c("td", {
8765
+ }, null, 2)) : s("", !0)], 10, Ki)) : (S(), c("td", {
8638
8766
  class: v(["w-table__cell", u.cellClasses(n)]),
8639
8767
  key: `${o}-b`,
8640
8768
  "data-label": n.label
8641
- }, [l("div", { innerHTML: i[n.key] || "" }, null, 8, Ki), o < r.headers.length - 1 && r.resizableColumns ? (S(), c("span", {
8769
+ }, [l("div", { innerHTML: i[n.key] || "" }, null, 8, Ji), o < r.headers.length - 1 && r.resizableColumns ? (S(), c("span", {
8642
8770
  key: 0,
8643
8771
  class: v(["w-table__col-resizer", {
8644
8772
  "w-table__col-resizer--hover": t.colResizing.hover === o,
8645
8773
  "w-table__col-resizer--active": t.colResizing.columnIndex === o
8646
8774
  }])
8647
- }, null, 2)) : s("", !0)], 10, Gi))], 64))), 256))], 42, Ui)), u.expandedRowsByUid[i._uid] ? (S(), c("tr", qi, [l("td", {
8775
+ }, null, 2)) : s("", !0)], 10, qi))], 64))), 256))], 42, Gi)), u.expandedRowsByUid[i._uid] ? (S(), c("tr", Yi, [l("td", {
8648
8776
  class: "w-table__cell",
8649
8777
  colspan: r.headers.length
8650
8778
  }, [f(g, { y: "" }, {
8651
- default: N(() => [u.expandedRowsByUid[i._uid] ? (S(), c("div", Yi, [E(t.$slots, "row-expansion", {
8779
+ default: N(() => [u.expandedRowsByUid[i._uid] ? (S(), c("div", Zi, [E(t.$slots, "row-expansion", {
8652
8780
  item: i,
8653
8781
  index: a + 1
8654
8782
  })])) : s("", !0), a < r.headers.length - 1 && r.resizableColumns ? (S(), c("span", {
@@ -8659,14 +8787,14 @@ function ra(t, n, r, i, a, u) {
8659
8787
  }])
8660
8788
  }, null, 2)) : s("", !0)]),
8661
8789
  _: 2
8662
- }, 1024)], 8, Ji)])) : s("", !0)], 64))), 128)) : s("", !0),
8663
- t.$slots["extra-row"] ? (S(), c("div", Xi, [E(t.$slots, "extra-row")])) : s("", !0)
8790
+ }, 1024)], 8, Xi)])) : s("", !0)], 64))), 128)) : s("", !0),
8791
+ t.$slots["extra-row"] ? (S(), c("div", Qi, [E(t.$slots, "extra-row")])) : s("", !0)
8664
8792
  ]),
8665
- t.$slots.footer || t.$slots["footer-row"] ? (S(), c("tfoot", Zi, [t.$slots["footer-row"] ? E(t.$slots, "footer-row", { key: 0 }) : t.$slots.footer ? (S(), c("tr", Qi, [l("td", {
8793
+ t.$slots.footer || t.$slots["footer-row"] ? (S(), c("tfoot", $i, [t.$slots["footer-row"] ? E(t.$slots, "footer-row", {}, void 0, void 0, 0) : t.$slots.footer ? (S(), c("tr", ea, [l("td", {
8666
8794
  class: "w-table__cell",
8667
8795
  colspan: r.headers.length
8668
- }, [E(t.$slots, "footer")], 8, $i)])) : s("", !0)])) : s("", !0)
8669
- ], 34)]), r.pagination && t.paginationConfig ? (S(), c("div", ea, [E(t.$slots, "pagination", {
8796
+ }, [E(t.$slots, "footer")], 8, ta)])) : s("", !0)])) : s("", !0)
8797
+ ], 34)]), r.pagination && t.paginationConfig ? (S(), c("div", na, [E(t.$slots, "pagination", {
8670
8798
  range: `${t.paginationConfig.start}-${t.paginationConfig.end}`,
8671
8799
  total: t.paginationConfig.total,
8672
8800
  pagesCount: t.paginationConfig.pagesCount,
@@ -8684,7 +8812,7 @@ function ra(t, n, r, i, a, u) {
8684
8812
  label: "Items per page",
8685
8813
  "label-color": "inherit"
8686
8814
  }, null, 8, ["modelValue", "items"])) : s("", !0),
8687
- l("div", ta, [
8815
+ l("div", ra, [
8688
8816
  f(y, {
8689
8817
  class: "w-pagination__arrow w-pagination__arrow--prev",
8690
8818
  onClick: n[7] ||= (e) => u.goToPage("-1"),
@@ -8742,12 +8870,11 @@ function ra(t, n, r, i, a, u) {
8742
8870
  lg: ""
8743
8871
  }, null, 8, ["disabled"])
8744
8872
  ]),
8745
- l("span", na, k(t.paginationConfig.start) + "-" + k(t.paginationConfig.end || t.paginationConfig.total) + " of " + k(t.paginationConfig.total), 1)
8873
+ l("span", ia, k(t.paginationConfig.start) + "-" + k(t.paginationConfig.end || t.paginationConfig.total) + " of " + k(t.paginationConfig.total), 1)
8746
8874
  ])])) : s("", !0)], 2);
8747
8875
  }
8748
- //#endregion
8749
- //#region src/wave-ui/components/w-table.vue
8750
- var ia = 15, aa = /* @__PURE__ */ G({
8876
+ // src/wave-ui/components/w-table.vue
8877
+ var oa = 15, sa = /*#__PURE__*/ G({
8751
8878
  name: "w-table",
8752
8879
  mixins: [X],
8753
8880
  props: {
@@ -8942,7 +9069,7 @@ var ia = 15, aa = /* @__PURE__ */ G({
8942
9069
  });
8943
9070
  },
8944
9071
  doSelectRow(e, t) {
8945
- let n = this.expandableRows === "" ? !0 : this.expandableRows, r = this.selectableRows === "" ? !0 : this.selectableRows;
9072
+ let n = this.expandableRows === "" || this.expandableRows, r = this.selectableRows === "" || this.selectableRows;
8946
9073
  if (n) {
8947
9074
  let n = this.expandedRowsByUid[e._uid] === void 0;
8948
9075
  n ? this.expandableRows.toString() === "1" ? this.expandedRowsInternal = [e._uid] : this.expandedRowsInternal.push(e._uid) : this.expandedRowsInternal = this.expandedRowsInternal.filter((t) => t !== e._uid), this.$emit("row-expand", {
@@ -8979,9 +9106,9 @@ var ia = 15, aa = /* @__PURE__ */ G({
8979
9106
  this.colResizing.dragging = !0;
8980
9107
  let o = e.pageX - t, s = i + a, c = i + o, l = a - o;
8981
9108
  n.style.width = `${i + o}px`, r.style.width = `${a - o}px`;
8982
- let u = o < 0 && n.offsetWidth > c || n.offsetWidth <= ia, d = o > 0 && r.offsetWidth > l;
9109
+ let u = o < 0 && n.offsetWidth > c || n.offsetWidth <= oa, d = o > 0 && r.offsetWidth > l;
8983
9110
  if (u) {
8984
- let e = Math.max(n.offsetWidth, ia);
9111
+ let e = Math.max(n.offsetWidth, oa);
8985
9112
  n.style.width = `${e}px`, r.style.width = `${s - e}px`;
8986
9113
  } else d && (n.style.width = `${s - r.offsetWidth}px`, r.style.width = `${r.offsetWidth}px`);
8987
9114
  },
@@ -9040,11 +9167,11 @@ var ia = 15, aa = /* @__PURE__ */ G({
9040
9167
  }
9041
9168
  },
9042
9169
  created() {
9043
- this.sort ? this.activeSorting = Array.isArray(this.sort) ? this.sort : [this.sort] : this.activeSorting = [], (this.expandedRows || []).length && (this.expandedRowsInternal = this.expandedRows), (this.selectedRows || []).length && (this.selectedRowsInternal = this.selectedRows), this.pagination && this.initPagination();
9170
+ this.activeSorting = this.sort ? Array.isArray(this.sort) ? this.sort : [this.sort] : [], (this.expandedRows || []).length && (this.expandedRowsInternal = this.expandedRows), (this.selectedRows || []).length && (this.selectedRowsInternal = this.selectedRows), this.pagination && this.initPagination();
9044
9171
  },
9045
9172
  watch: {
9046
9173
  sort(e) {
9047
- e ? this.activeSorting = Array.isArray(e) ? e : [e] : this.activeSorting = [];
9174
+ this.activeSorting = e ? Array.isArray(e) ? e : [e] : [];
9048
9175
  },
9049
9176
  expandableRows(e) {
9050
9177
  e ? e.toString() === "1" && (this.expandedRowsInternal = this.expandedRowsInternal.slice(0, 1)) : this.expandedRowsInternal = [];
@@ -9068,12 +9195,12 @@ var ia = 15, aa = /* @__PURE__ */ G({
9068
9195
  this.updatePaginationConfig({ total: e });
9069
9196
  }
9070
9197
  }
9071
- }, [["render", ra]]), oa = [
9198
+ }, [["render", aa]]), ca = [
9072
9199
  "role",
9073
9200
  "aria-pressed",
9074
9201
  "tabindex"
9075
9202
  ];
9076
- function sa(e, t, n, r, i, a) {
9203
+ function la(e, t, n, r, i, a) {
9077
9204
  return S(), c("span", {
9078
9205
  class: v(["w-tag", a.classes]),
9079
9206
  onClick: t[1] ||= (t) => {
@@ -9095,9 +9222,9 @@ function sa(e, t, n, r, i, a) {
9095
9222
  }, ["stop"]),
9096
9223
  type: "button",
9097
9224
  "aria-label": "Remove"
9098
- })) : s("", !0)], 46, oa);
9225
+ })) : s("", !0)], 46, ca);
9099
9226
  }
9100
- var ca = /* @__PURE__ */ G({
9227
+ var ua = /*#__PURE__*/ G({
9101
9228
  name: "w-tag",
9102
9229
  focusable: !0,
9103
9230
  expose: ["focus"],
@@ -9159,7 +9286,7 @@ var ca = /* @__PURE__ */ G({
9159
9286
  methods: { onTagPointerDown(e) {
9160
9287
  this.modelValue !== -1 && (e.target.closest?.(".w-tag__closable") || this.onRipple(e));
9161
9288
  } }
9162
- }, [["render", sa]]), la = ["for"], ua = [
9289
+ }, [["render", la]]), da = ["for"], fa = [
9163
9290
  "id",
9164
9291
  "name",
9165
9292
  "placeholder",
@@ -9171,8 +9298,8 @@ var ca = /* @__PURE__ */ G({
9171
9298
  "disabled",
9172
9299
  "required",
9173
9300
  "tabindex"
9174
- ], da = ["for"];
9175
- function fa(t, n, r, i, a, u) {
9301
+ ], pa = ["for"];
9302
+ function ma(t, n, r, i, a, u) {
9176
9303
  let f = D("w-icon");
9177
9304
  return S(), o(O(t.formRegister ? "w-form-element" : "div"), g({ ref: "formEl" }, t.formRegister && {
9178
9305
  validators: t.validators,
@@ -9196,7 +9323,7 @@ function fa(t, n, r, i, a, u) {
9196
9323
  key: 0,
9197
9324
  class: v(["w-textarea__label w-textarea__label--left w-form-el-shakable", t.labelClasses]),
9198
9325
  for: t.inputId
9199
- }, [E(t.$slots, "default", {}, () => [d(k(r.label), 1)])], 10, la)) : s("", !0)], 64)) : s("", !0),
9326
+ }, [E(t.$slots, "default", {}, () => [d(k(r.label), 1)])], 10, da)) : s("", !0)], 64)) : s("", !0),
9200
9327
  l("div", { class: v(["w-textarea__textarea-wrap", u.inputWrapClasses]) }, [
9201
9328
  E(t.$slots, "icon-left", { inputId: t.inputId }, () => [r.innerIconLeft ? (S(), o(f, {
9202
9329
  key: 0,
@@ -9227,7 +9354,7 @@ function fa(t, n, r, i, a, u) {
9227
9354
  disabled: t.isDisabled || null,
9228
9355
  required: t.required || null,
9229
9356
  tabindex: t.tabindex || null
9230
- }), null, 16, ua), [[M, a.inputValue]]),
9357
+ }), null, 16, fa), [[M, a.inputValue]]),
9231
9358
  r.labelPosition === "inside" && u.showLabelInside ? (S(), c(e, { key: 0 }, [t.$slots.default || r.label ? (S(), c("label", {
9232
9359
  key: 0,
9233
9360
  class: v(["w-textarea__label w-textarea__label--inside w-form-el-shakable", t.labelClasses])
@@ -9247,7 +9374,7 @@ function fa(t, n, r, i, a, u) {
9247
9374
  key: 0,
9248
9375
  class: v(["w-textarea__label w-textarea__label--right w-form-el-shakable", t.labelClasses]),
9249
9376
  for: t.inputId
9250
- }, [E(t.$slots, "default", {}, () => [d(k(r.label), 1)])], 10, da)) : s("", !0)], 64)) : s("", !0)
9377
+ }, [E(t.$slots, "default", {}, () => [d(k(r.label), 1)])], 10, pa)) : s("", !0)], 64)) : s("", !0)
9251
9378
  ]),
9252
9379
  _: 3
9253
9380
  }, 16, [
@@ -9257,7 +9384,7 @@ function fa(t, n, r, i, a, u) {
9257
9384
  "style"
9258
9385
  ]);
9259
9386
  }
9260
- var pa = /* @__PURE__ */ G({
9387
+ var ha = /*#__PURE__*/ G({
9261
9388
  name: "w-textarea",
9262
9389
  expose: ["focus"],
9263
9390
  focusTargetRef: "textarea",
@@ -9397,8 +9524,8 @@ var pa = /* @__PURE__ */ G({
9397
9524
  e ? this.getLineHeight() : this.height = null;
9398
9525
  }
9399
9526
  }
9400
- }, [["render", fa]]), ma = ["innerHTML"], ha = ["innerHTML"];
9401
- function ga(t, n, r, i, a, s) {
9527
+ }, [["render", ma]]), ga = ["innerHTML"], _a = ["innerHTML"];
9528
+ function va(t, n, r, i, a, s) {
9402
9529
  return S(), c("ul", { class: v(["w-timeline", s.classes]) }, [(S(!0), c(e, null, T(r.items, (e, n) => (S(), c("li", {
9403
9530
  class: "w-timeline-item",
9404
9531
  key: n
@@ -9406,22 +9533,20 @@ function ga(t, n, r, i, a, s) {
9406
9533
  default: N(() => [d(k(e[r.itemIconKey] || r.icon), 1)]),
9407
9534
  _: 2
9408
9535
  }, 1032, ["class"])), t.$slots[`item.${n + 1}`] ? E(t.$slots, `item.${n + 1}`, {
9409
- key: 1,
9410
9536
  item: e,
9411
9537
  index: n + 1
9412
- }) : E(t.$slots, "item", {
9413
- key: 0,
9538
+ }, void 0, void 0, 1) : E(t.$slots, "item", {
9414
9539
  item: e,
9415
9540
  index: n + 1
9416
9541
  }, () => [l("div", {
9417
9542
  class: v(["w-timeline-item__title", { [e[r.itemColorKey] || r.color]: e[r.itemColorKey] || r.color }]),
9418
9543
  innerHTML: e[r.itemTitleKey]
9419
- }, null, 10, ma), l("div", {
9544
+ }, null, 10, ga), l("div", {
9420
9545
  class: "w-timeline-item__content",
9421
9546
  innerHTML: e[r.itemContentKey]
9422
- }, null, 8, ha)])]))), 128))], 2);
9547
+ }, null, 8, _a)], void 0, 0)]))), 128))], 2);
9423
9548
  }
9424
- var _a = /* @__PURE__ */ G({
9549
+ var ya = /*#__PURE__*/ G({
9425
9550
  name: "w-timeline",
9426
9551
  props: {
9427
9552
  items: {
@@ -9456,16 +9581,16 @@ var _a = /* @__PURE__ */ G({
9456
9581
  "w-timeline--light": this.light
9457
9582
  };
9458
9583
  } }
9459
- }, [["render", ga]]), va = ["aria-label"];
9460
- function ya(e, t, n, r, i, a) {
9584
+ }, [["render", va]]), ba = ["aria-label"];
9585
+ function xa(e, t, n, r, i, a) {
9461
9586
  return S(), c("div", {
9462
9587
  class: v(["w-toolbar", a.classes]),
9463
9588
  role: "toolbar",
9464
9589
  "aria-label": n.ariaLabel || void 0,
9465
9590
  style: b(a.styles)
9466
- }, [E(e.$slots, "default")], 14, va);
9591
+ }, [E(e.$slots, "default")], 14, ba);
9467
9592
  }
9468
- var ba = /* @__PURE__ */ G({
9593
+ var Sa = /*#__PURE__*/ G({
9469
9594
  name: "w-toolbar",
9470
9595
  props: {
9471
9596
  ariaLabel: { type: String },
@@ -9521,11 +9646,11 @@ var ba = /* @__PURE__ */ G({
9521
9646
  };
9522
9647
  }
9523
9648
  }
9524
- }, [["render", ya]]), xa = ["id"];
9525
- function Sa(t, i, a, l, u, p) {
9649
+ }, [["render", xa]]), Ca = ["id"];
9650
+ function wa(t, i, a, l, u, p) {
9526
9651
  return S(), c(e, null, [
9527
9652
  E(t.$slots, "activator", { tooltipId: l.tooltipInstanceId }),
9528
- t.$slots.activator ? s("", !0) : E(t.$slots, "default", { key: 0 }),
9653
+ t.$slots.activator ? s("", !0) : E(t.$slots, "default", {}, void 0, void 0, 0),
9529
9654
  t.detachableDomReady ? (S(), o(n, {
9530
9655
  key: 1,
9531
9656
  to: t.teleportTarget,
@@ -9543,7 +9668,7 @@ function Sa(t, i, a, l, u, p) {
9543
9668
  role: "tooltip",
9544
9669
  key: l.tooltipInstanceId,
9545
9670
  style: b(p.styles)
9546
- }, [a.tooltip ? (S(), c(e, { key: 0 }, [d(k(a.tooltip), 1)], 64)) : t.$slots.tooltip ? E(t.$slots, "tooltip", { key: 1 }) : t.$slots.activator ? E(t.$slots, "default", { key: 2 }) : s("", !0)], 14, xa)) : s("", !0)]),
9671
+ }, [a.tooltip ? (S(), c(e, { key: 0 }, [d(k(a.tooltip), 1)], 64)) : t.$slots.tooltip ? E(t.$slots, "tooltip", {}, void 0, void 0, 1) : t.$slots.activator ? E(t.$slots, "default", {}, void 0, void 0, 2) : s("", !0)], 14, Ca)) : s("", !0)]),
9547
9672
  _: 3
9548
9673
  }, 8, [
9549
9674
  "name",
@@ -9552,9 +9677,9 @@ function Sa(t, i, a, l, u, p) {
9552
9677
  ])], 8, ["to", "disabled"])) : s("", !0)
9553
9678
  ], 64);
9554
9679
  }
9555
- var Ca = /* @__PURE__ */ G({
9680
+ var Ta = /*#__PURE__*/ G({
9556
9681
  name: "w-tooltip",
9557
- mixins: [er],
9682
+ mixins: [nr],
9558
9683
  setup() {
9559
9684
  return { tooltipInstanceId: A() };
9560
9685
  },
@@ -9669,26 +9794,24 @@ var Ca = /* @__PURE__ */ G({
9669
9794
  this.detachableVisible && (this.showOnHover && !e && (await new Promise((e) => setTimeout(e, 10)), this.showOnHover && this.hoveringActivator) || (this.$emit("update:modelValue", this.detachableVisible = !1), this.$emit("input", !1), this.$emit("close"), this.viewportPlacementOverride = null, typeof document < "u" && document.removeEventListener("mousedown", this.onOutsideMousedown), typeof window < "u" && window.removeEventListener("resize", this.onResize)));
9670
9795
  }
9671
9796
  }
9672
- }, [["render", Sa]]);
9673
- //#endregion
9674
- //#region src/wave-ui/components/transitions/w-transition-bounce.vue?vue&type=template&lang.js
9675
- function wa(e, t, n, i, a, s) {
9797
+ }, [["render", wa]]);
9798
+ // src/wave-ui/components/transitions/w-transition-bounce.vue?vue&type=template&lang.js
9799
+ function Ea(e, t, n, i, a, s) {
9676
9800
  return S(), o(r, g({ name: "bounce" }, e.$props), {
9677
9801
  default: N(() => [E(e.$slots, "default")]),
9678
9802
  _: 3
9679
9803
  }, 16);
9680
9804
  }
9681
- var Ta = /* @__PURE__ */ G({
9805
+ var Da = /*#__PURE__*/ G({
9682
9806
  name: "w-transition-bounce",
9683
9807
  props: {
9684
9808
  appear: { type: Boolean },
9685
9809
  duration: { type: [Number, String] },
9686
9810
  mode: { type: String }
9687
9811
  }
9688
- }, [["render", wa]]);
9689
- //#endregion
9690
- //#region src/wave-ui/components/transitions/w-transition-expand.vue?vue&type=template&lang.js
9691
- function Ea(e, t, n, i, a, s) {
9812
+ }, [["render", Ea]]);
9813
+ // src/wave-ui/components/transitions/w-transition-expand.vue?vue&type=template&lang.js
9814
+ function Oa(e, t, n, i, a, s) {
9692
9815
  return S(), o(r, {
9693
9816
  name: "expand",
9694
9817
  mode: n.mode,
@@ -9718,7 +9841,7 @@ function Ea(e, t, n, i, a, s) {
9718
9841
  "onAfterLeave"
9719
9842
  ]);
9720
9843
  }
9721
- var Da = /* @__PURE__ */ G({
9844
+ var ka = /*#__PURE__*/ G({
9722
9845
  name: "w-transition-expand",
9723
9846
  props: {
9724
9847
  x: { type: Boolean },
@@ -9815,64 +9938,60 @@ var Da = /* @__PURE__ */ G({
9815
9938
  this.animX && (this.el.width = e.offsetWidth, this.el.marginLeft = t.getPropertyValue("marginLeft"), this.el.marginRight = t.getPropertyValue("marginRight"), this.el.paddingLeft = t.getPropertyValue("paddingLeft"), this.el.paddingRight = t.getPropertyValue("paddingRight"), this.el.borderLeftWidth = t.getPropertyValue("borderLeftWidth"), this.el.borderRightWidth = t.getPropertyValue("borderRightWidth")), this.animY && (this.el.height = e.offsetHeight, this.el.marginTop = t.getPropertyValue("marginTop"), this.el.marginBottom = t.getPropertyValue("marginBottom"), this.el.paddingTop = t.getPropertyValue("paddingTop"), this.el.paddingBottom = t.getPropertyValue("paddingBottom"), this.el.borderTopWidth = t.getPropertyValue("borderTopWidth"), this.el.borderBottomWidth = t.getPropertyValue("borderBottomWidth")), this.el.savedState = !0;
9816
9939
  }
9817
9940
  }
9818
- }, [["render", Ea]]);
9819
- //#endregion
9820
- //#region src/wave-ui/components/transitions/w-transition-fade.vue?vue&type=template&lang.js
9821
- function Oa(e, t, n, i, a, s) {
9941
+ }, [["render", Oa]]);
9942
+ // src/wave-ui/components/transitions/w-transition-fade.vue?vue&type=template&lang.js
9943
+ function Aa(e, t, n, i, a, s) {
9822
9944
  return S(), o(r, g({ name: "fade" }, e.$props), {
9823
9945
  default: N(() => [E(e.$slots, "default")]),
9824
9946
  _: 3
9825
9947
  }, 16);
9826
9948
  }
9827
- var ka = /* @__PURE__ */ G({
9949
+ var ja = /*#__PURE__*/ G({
9828
9950
  name: "w-transition-fade",
9829
9951
  props: {
9830
9952
  appear: { type: Boolean },
9831
9953
  duration: { type: [Number, String] },
9832
9954
  mode: { type: String }
9833
9955
  }
9834
- }, [["render", Oa]]);
9835
- //#endregion
9836
- //#region src/wave-ui/components/transitions/w-transition-scale.vue?vue&type=template&lang.js
9837
- function Aa(e, t, n, i, a, s) {
9956
+ }, [["render", Aa]]);
9957
+ // src/wave-ui/components/transitions/w-transition-scale.vue?vue&type=template&lang.js
9958
+ function Ma(e, t, n, i, a, s) {
9838
9959
  return S(), o(r, g({ name: "scale" }, e.$props), {
9839
9960
  default: N(() => [E(e.$slots, "default")]),
9840
9961
  _: 3
9841
9962
  }, 16);
9842
9963
  }
9843
- var ja = /* @__PURE__ */ G({
9964
+ var Na = /*#__PURE__*/ G({
9844
9965
  name: "w-transition-scale",
9845
9966
  props: {
9846
9967
  appear: { type: Boolean },
9847
9968
  duration: { type: [Number, String] },
9848
9969
  mode: { type: String }
9849
9970
  }
9850
- }, [["render", Aa]]);
9851
- //#endregion
9852
- //#region src/wave-ui/components/transitions/w-transition-scale-fade.vue?vue&type=template&lang.js
9853
- function Ma(e, t, n, i, a, s) {
9971
+ }, [["render", Ma]]);
9972
+ // src/wave-ui/components/transitions/w-transition-scale-fade.vue?vue&type=template&lang.js
9973
+ function Pa(e, t, n, i, a, s) {
9854
9974
  return S(), o(r, g({ name: "scale-fade" }, e.$props), {
9855
9975
  default: N(() => [E(e.$slots, "default")]),
9856
9976
  _: 3
9857
9977
  }, 16);
9858
9978
  }
9859
- var Na = /* @__PURE__ */ G({
9979
+ var Fa = /*#__PURE__*/ G({
9860
9980
  name: "w-transition-scale-fade",
9861
9981
  props: {
9862
9982
  appear: { type: Boolean },
9863
9983
  duration: { type: [Number, String] },
9864
9984
  mode: { type: String }
9865
9985
  }
9866
- }, [["render", Ma]]);
9867
- //#endregion
9868
- //#region src/wave-ui/components/transitions/w-transition-slide.vue?vue&type=template&lang.js
9869
- function Pa(e, t, n, i, a, s) {
9986
+ }, [["render", Pa]]);
9987
+ // src/wave-ui/components/transitions/w-transition-slide.vue?vue&type=template&lang.js
9988
+ function Ia(e, t, n, i, a, s) {
9870
9989
  return S(), o(r, g({ name: s.transitionName }, e.$props), {
9871
9990
  default: N(() => [E(e.$slots, "default")]),
9872
9991
  _: 3
9873
9992
  }, 16, ["name"]);
9874
9993
  }
9875
- var Fa = /* @__PURE__ */ G({
9994
+ var La = /*#__PURE__*/ G({
9876
9995
  name: "w-transition-slide",
9877
9996
  props: {
9878
9997
  appear: { type: Boolean },
@@ -9891,16 +10010,15 @@ var Fa = /* @__PURE__ */ G({
9891
10010
  return `slide-${this.direction}`;
9892
10011
  }
9893
10012
  }
9894
- }, [["render", Pa]]);
9895
- //#endregion
9896
- //#region src/wave-ui/components/transitions/w-transition-slide-fade.vue?vue&type=template&lang.js
9897
- function Ia(e, t, n, i, a, s) {
10013
+ }, [["render", Ia]]);
10014
+ // src/wave-ui/components/transitions/w-transition-slide-fade.vue?vue&type=template&lang.js
10015
+ function Ra(e, t, n, i, a, s) {
9898
10016
  return S(), o(r, g({ name: s.transitionName }, e.$props), {
9899
10017
  default: N(() => [E(e.$slots, "default")]),
9900
10018
  _: 3
9901
10019
  }, 16, ["name"]);
9902
10020
  }
9903
- var La = /* @__PURE__ */ G({
10021
+ var za = /*#__PURE__*/ G({
9904
10022
  name: "w-transition-slide-fade",
9905
10023
  props: {
9906
10024
  appear: { type: Boolean },
@@ -9919,27 +10037,26 @@ var La = /* @__PURE__ */ G({
9919
10037
  return `slide-fade-${this.direction}`;
9920
10038
  }
9921
10039
  }
9922
- }, [["render", Ia]]);
9923
- //#endregion
9924
- //#region src/wave-ui/components/transitions/w-transition-twist.vue?vue&type=template&lang.js
9925
- function Ra(e, t, n, i, a, s) {
10040
+ }, [["render", Ra]]);
10041
+ // src/wave-ui/components/transitions/w-transition-twist.vue?vue&type=template&lang.js
10042
+ function Ba(e, t, n, i, a, s) {
9926
10043
  return S(), o(r, g({ name: "twist" }, e.$props), {
9927
10044
  default: N(() => [E(e.$slots, "default")]),
9928
10045
  _: 3
9929
10046
  }, 16);
9930
10047
  }
9931
- var za = /* @__PURE__ */ G({
10048
+ var Va = /*#__PURE__*/ G({
9932
10049
  name: "w-transition-twist",
9933
10050
  props: {
9934
10051
  appear: { type: Boolean },
9935
10052
  duration: { type: [Number, String] },
9936
10053
  mode: { type: String }
9937
10054
  }
9938
- }, [["render", Ra]]), Ba = ["innerHTML"], Va = {
10055
+ }, [["render", Ba]]), Ha = ["innerHTML"], Ua = {
9939
10056
  key: 1,
9940
10057
  class: "ml1"
9941
10058
  };
9942
- function Ha(t, n, r, i, a, u) {
10059
+ function Wa(t, n, r, i, a, u) {
9943
10060
  let f = D("w-button"), p = D("w-icon"), m = D("w-tree", !0);
9944
10061
  return S(), c("ul", { class: v(["w-tree", u.classes]) }, [(S(!0), c(e, null, T(t.currentDepthItems, (e, i) => (S(), c("li", {
9945
10062
  class: v(["w-tree__item", u.itemClasses(e)]),
@@ -9951,7 +10068,7 @@ function Ha(t, n, r, i, a, u) {
9951
10068
  class: u.itemLabelClasses(e),
9952
10069
  tabindex: u.getTreeItemTabindex(e)
9953
10070
  }), {
9954
- default: N(() => [(e.children || e.branch) && (r.expandOpenIcon && e.open || r.expandIcon) && !(r.unexpandableEmpty && !e.children) ? (S(), o(f, {
10071
+ default: N(() => [(e.children || e.branch) && (r.expandOpenIcon && e.open || r.expandIcon) && (!r.unexpandableEmpty || e.children) ? (S(), o(f, {
9955
10072
  key: 0,
9956
10073
  class: "w-tree__item-expand",
9957
10074
  onClick: I((t) => !r.disabled && !e.disabled && u.onLabelClick(e, t), ["stop"]),
@@ -9981,8 +10098,8 @@ function Ha(t, n, r, i, a, u) {
9981
10098
  default: N(() => [d(k(u.itemIcon(e)), 1)]),
9982
10099
  _: 2
9983
10100
  }, 1032, ["color"])) : s("", !0),
9984
- l("span", { innerHTML: e.label }, null, 8, Ba),
9985
- r.counts && (e.children || e.branch) ? (S(), c("span", Va, "(" + k(e.originalItem.children?.length || 0) + ")", 1)) : s("", !0)
10101
+ l("span", { innerHTML: e.label }, null, 8, Ha),
10102
+ r.counts && (e.children || e.branch) ? (S(), c("span", Ua, "(" + k(e.originalItem.children?.length || 0) + ")", 1)) : s("", !0)
9986
10103
  ])]),
9987
10104
  _: 2
9988
10105
  }, 1040, [
@@ -10030,7 +10147,7 @@ function Ha(t, n, r, i, a, u) {
10030
10147
  "onAfterLeave"
10031
10148
  ]))], 2))), 128))], 2);
10032
10149
  }
10033
- var Ua = /* @__PURE__ */ G({
10150
+ var Ga = /*#__PURE__*/ G({
10034
10151
  name: "w-tree",
10035
10152
  focusable: !0,
10036
10153
  expose: ["focus"],
@@ -10142,7 +10259,7 @@ var Ua = /* @__PURE__ */ G({
10142
10259
  return !this.disabled && !e.disabled && e.route ? !this.$router || this.hasExternalLink(e) ? "a" : "router-link" : "div";
10143
10260
  },
10144
10261
  getTreeItemTabindex(e) {
10145
- return !this.disabled && !e.disabled && (e.children || e.branch || this.selectable) && !(this.unexpandableEmpty && !e.children) ? 0 : null;
10262
+ return !this.disabled && !e.disabled && (e.children || e.branch || this.selectable) && (!this.unexpandableEmpty || e.children) ? 0 : null;
10146
10263
  },
10147
10264
  getTreeItemPath(e) {
10148
10265
  let t = [e], n = e.parent;
@@ -10153,7 +10270,7 @@ var Ua = /* @__PURE__ */ G({
10153
10270
  return e.path.map((e) => e.originalItem);
10154
10271
  },
10155
10272
  expandDepth(e, t) {
10156
- typeof t == "boolean" ? e.open = t : e.open = !e.open;
10273
+ e.open = typeof t == "boolean" ? t : !e.open;
10157
10274
  let n = this.emitPayload(e);
10158
10275
  return this.$emit(e.open ? "before-open" : "before-close", n), !this.unexpandableEmpty && !e.children && this.$emit(e.open ? "open" : "close", n), !0;
10159
10276
  },
@@ -10169,7 +10286,7 @@ var Ua = /* @__PURE__ */ G({
10169
10286
  this.$emit("click", n), this.emitItemSelection(e, t);
10170
10287
  },
10171
10288
  onLabelPointerDown(e, t) {
10172
- !this.isItemRippleActive(e) || t.target.closest?.(".w-tree__item-expand") || this.onRipple(t);
10289
+ this.isItemRippleActive(e) && !t.target.closest?.(".w-tree__item-expand") && this.onRipple(t);
10173
10290
  },
10174
10291
  onLabelKeydown(e, t) {
10175
10292
  if (!(t.metaKey || t.ctrlKey || t.altKey || t.shiftKey) && [
@@ -10230,7 +10347,7 @@ var Ua = /* @__PURE__ */ G({
10230
10347
  unmounted() {
10231
10348
  this.dataPropUnwatch();
10232
10349
  }
10233
- }, [["render", Ha]]), Wa = /* @__PURE__ */ le({
10350
+ }, [["render", Wa]]), Ka = /* @__PURE__ */ le({
10234
10351
  WAccordion: () => Ct,
10235
10352
  WAccordionItem: () => xt,
10236
10353
  WAlert: () => Dt,
@@ -10238,57 +10355,57 @@ var Ua = /* @__PURE__ */ G({
10238
10355
  WBadge: () => Vt,
10239
10356
  WBreadcrumbs: () => Wt,
10240
10357
  WButton: () => Xt,
10241
- WCard: () => en,
10242
- WCheckbox: () => cn,
10243
- WCheckboxes: () => dn,
10244
- WConfirm: () => pn,
10245
- WDatePicker: () => hn,
10246
- WDialog: () => _n,
10247
- WDivider: () => bn,
10248
- WDrawer: () => wn,
10249
- WFlex: () => En,
10250
- WForm: () => kn,
10251
- WFormElement: () => jn,
10252
- WGrid: () => Nn,
10253
- WIcon: () => Fn,
10254
- WImage: () => zn,
10255
- WInput: () => Yn,
10256
- WList: () => Zn,
10257
- WMenu: () => nr,
10258
- WNotification: () => ir,
10259
- WOverlay: () => or,
10260
- WParallax: () => lr,
10261
- WProgress: () => vr,
10262
- WRadio: () => Tr,
10263
- WRadios: () => Or,
10264
- WRating: () => Nr,
10265
- WScrollable: () => zr,
10266
- WSelect: () => Gr,
10267
- WSlider: () => ii,
10268
- WSpinner: () => ci,
10269
- WSteps: () => ui,
10270
- WSwitch: () => vi,
10271
- WTable: () => aa,
10272
- WTabs: () => ki,
10273
- WTag: () => ca,
10274
- WTextarea: () => pa,
10275
- WTimeline: () => _a,
10276
- WToolbar: () => ba,
10277
- WTooltip: () => Ca,
10278
- WTransitionBounce: () => Ta,
10279
- WTransitionExpand: () => Da,
10280
- WTransitionFade: () => ka,
10281
- WTransitionScale: () => ja,
10282
- WTransitionScaleFade: () => Na,
10283
- WTransitionSlide: () => Fa,
10284
- WTransitionSlideFade: () => La,
10285
- WTransitionTwist: () => za,
10286
- WTree: () => Ua
10287
- }), Ga = lt.install;
10288
- lt.install = (e, t = {}) => Ga.call(lt, e, {
10289
- components: Wa,
10358
+ WButtons: () => Qt,
10359
+ WCard: () => nn,
10360
+ WCheckbox: () => un,
10361
+ WCheckboxes: () => pn,
10362
+ WConfirm: () => hn,
10363
+ WDatePicker: () => _n,
10364
+ WDialog: () => yn,
10365
+ WDivider: () => Sn,
10366
+ WDrawer: () => En,
10367
+ WFlex: () => On,
10368
+ WForm: () => jn,
10369
+ WFormElement: () => Nn,
10370
+ WGrid: () => Fn,
10371
+ WIcon: () => Ln,
10372
+ WImage: () => Vn,
10373
+ WInput: () => Zn,
10374
+ WList: () => $n,
10375
+ WMenu: () => ir,
10376
+ WNotification: () => or,
10377
+ WOverlay: () => cr,
10378
+ WParallax: () => dr,
10379
+ WProgress: () => br,
10380
+ WRadio: () => Dr,
10381
+ WRadios: () => Ar,
10382
+ WRating: () => Fr,
10383
+ WScrollable: () => Vr,
10384
+ WSelect: () => qr,
10385
+ WSlider: () => oi,
10386
+ WSpinner: () => ui,
10387
+ WSteps: () => fi,
10388
+ WSwitch: () => bi,
10389
+ WTable: () => sa,
10390
+ WTabs: () => ji,
10391
+ WTag: () => ua,
10392
+ WTextarea: () => ha,
10393
+ WTimeline: () => ya,
10394
+ WToolbar: () => Sa,
10395
+ WTooltip: () => Ta,
10396
+ WTransitionBounce: () => Da,
10397
+ WTransitionExpand: () => ka,
10398
+ WTransitionFade: () => ja,
10399
+ WTransitionScale: () => Na,
10400
+ WTransitionScaleFade: () => Fa,
10401
+ WTransitionSlide: () => La,
10402
+ WTransitionSlideFade: () => za,
10403
+ WTransitionTwist: () => Va,
10404
+ WTree: () => Ga
10405
+ }), qa = lt.install;
10406
+ lt.install = (e, t = {}) => qa.call(lt, e, {
10407
+ components: Ka,
10290
10408
  ...t
10291
10409
  });
10292
- var Ka = lt;
10293
- //#endregion
10294
- export { Ka as default };
10410
+ var Ja = lt;
10411
+ export { Ja as default };