wave-ui 3.16.1 → 3.16.3

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.
@@ -5,8 +5,8 @@ var de = (e) => {
5
5
  var $e = (e, t, i) => t in e ? _e(e, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[t] = i;
6
6
  var H = (e, t, i) => $e(e, typeof t != "symbol" ? t + "" : t, i), ue = (e, t, i) => t.has(e) || de("Cannot " + i);
7
7
  var Y = (e, t, i) => (ue(e, t, "read from private field"), i ? i.call(e) : t.get(e)), te = (e, t, i) => t.has(e) ? de("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, i), ie = (e, t, i, s) => (ue(e, t, "write to private field"), s ? s.call(e, i) : t.set(e, i), i);
8
- import { reactive as Z, resolveComponent as $, openBlock as o, createBlock as b, Teleport as Ie, createVNode as T, TransitionGroup as ae, normalizeClass as f, withCtx as m, createElementBlock as u, Fragment as k, renderList as x, mergeProps as _, createElementVNode as w, createCommentVNode as p, createApp as Ve, defineComponent as Te, inject as Le, withKeys as E, withModifiers as O, renderSlot as c, createTextVNode as B, toDisplayString as C, normalizeStyle as R, toHandlers as ne, Transition as P, resolveDynamicComponent as L, normalizeProps as le, resolveDirective as ke, withDirectives as W, createSlots as ee, vShow as re, vModelText as ve, vModelDynamic as Re, KeepAlive as xe } from "vue";
9
- const Pe = Z({
8
+ import { reactive as Z, resolveComponent as $, openBlock as o, createBlock as b, Teleport as Ie, createVNode as T, TransitionGroup as ae, normalizeClass as f, withCtx as m, createElementBlock as u, Fragment as k, renderList as x, mergeProps as _, createElementVNode as w, createCommentVNode as p, createApp as Ve, defineComponent as Te, inject as Le, withKeys as A, withModifiers as M, renderSlot as c, createTextVNode as B, toDisplayString as C, normalizeStyle as R, toHandlers as ne, Transition as O, resolveDynamicComponent as L, normalizeProps as le, resolveDirective as ke, withDirectives as W, createSlots as ee, vShow as re, vModelText as ve, vModelDynamic as Re, KeepAlive as xe } from "vue";
9
+ const Oe = Z({
10
10
  on: "#app",
11
11
  // Sets the Wave UI root node. If not found, will default to `body`.
12
12
  breakpoints: {
@@ -66,7 +66,7 @@ const Pe = Z({
66
66
  },
67
67
  presets: {}
68
68
  // User presets for each component.
69
- }), Ce = (e, t = Pe) => {
69
+ }), Ce = (e, t = Oe) => {
70
70
  if (!Object.keys(t).length) t = Object.assign(t, e);
71
71
  else
72
72
  for (const i in e) {
@@ -74,7 +74,7 @@ const Pe = Z({
74
74
  typeof s == "object" && typeof t[i] == "object" ? Ce(e[i], t[i]) : t[i] = s;
75
75
  }
76
76
  return t;
77
- }, j = (e) => console.warn(`Wave UI: ${e}`), F = (e) => console.error(`Wave UI: ${e}`), ze = (e) => {
77
+ }, j = (e) => console.warn(`Wave UI: ${e}`), F = (e) => console.error(`Wave UI: ${e}`), Pe = (e) => {
78
78
  ["light", "dark"].forEach((t) => {
79
79
  var s, n, l;
80
80
  const i = e.colors[t];
@@ -108,7 +108,7 @@ function J(e) {
108
108
  const t = e.toString(16);
109
109
  return t.length === 1 && `0${t}` || t.length === 2 && t || F(`expected value from 0~255, got: ${e}`) || "";
110
110
  }
111
- function Oe(e) {
111
+ function ze(e) {
112
112
  return /^#[0-9a-f]{6}([0-9a-f]{2})?$/i.test(e);
113
113
  }
114
114
  function Me(e) {
@@ -118,7 +118,7 @@ function Ee(e) {
118
118
  return `#${e.substring(1).split("").map((t) => `${t}${t}`).join("")}`;
119
119
  }
120
120
  function Ae(e) {
121
- return Oe(e) && e || Me(e) && Ee(e) || F(`expected color hex string, got '${e}'`) || "";
121
+ return ze(e) && e || Me(e) && Ee(e) || F(`expected color hex string, got '${e}'`) || "";
122
122
  }
123
123
  function ce(e) {
124
124
  const t = Ae(e), i = parseInt(t.substring(1, 3), 16), s = parseInt(t.substring(3, 5), 16), n = parseInt(t.substring(5, 7), 16), l = t.length === 9 ? parseInt(t.substring(7, 9), 16) / 255 : 1;
@@ -790,7 +790,7 @@ const N = class N {
790
790
  i.colors.light || (i.colors.light = a), i.colors.dark || (i.colors.dark = a), i.colors = { light: i.colors.light, dark: i.colors.dark };
791
791
  }
792
792
  let { components: s, ...n } = i;
793
- n = this.$waveui.config = Ce(n), n.css.colorShades && ze(n);
793
+ n = this.$waveui.config = Ce(n), n.css.colorShades && Pe(n);
794
794
  const l = Z(this.$waveui);
795
795
  t.config.globalProperties.$waveui = l, t.provide("$waveui", l), n.theme !== "auto" && (this.$waveui.colors = he(n.colors[n.theme], fe));
796
796
  }
@@ -826,7 +826,7 @@ const N = class N {
826
826
  };
827
827
  X = new WeakMap(), te(N, X, !1);
828
828
  let q = N;
829
- const et = ["aria-expanded"], tt = ["onClick", "onFocus", "onKeypress", "tabindex"], it = ["innerHTML"], lt = ["innerHTML"];
829
+ const P = (e = {}) => (typeof e == "string" ? e = { [e]: !0 } : Array.isArray(e) && (e = { [e.join(" ")]: !0 }), e), et = ["aria-expanded"], tt = ["onClick", "onFocus", "onKeypress", "tabindex"], it = ["innerHTML"], lt = ["innerHTML"];
830
830
  function st(e, t, i, s, n, l) {
831
831
  const a = $("w-button"), r = $("w-transition-expand");
832
832
  return o(), u("div", {
@@ -838,10 +838,10 @@ function st(e, t, i, s, n, l) {
838
838
  "aria-expanded": d._expanded ? "true" : "false"
839
839
  }, [
840
840
  w("div", {
841
- class: f(["w-accordion__item-title", i.titleClass]),
841
+ class: f(["w-accordion__item-title", l.titleClasses]),
842
842
  onClick: (y) => !d._disabled && l.toggleItem(d, y),
843
843
  onFocus: (y) => e.$emit("focus", l.getOriginalItem(d)),
844
- onKeypress: E((y) => !d._disabled && l.toggleItem(d, y), ["enter"]),
844
+ onKeypress: A((y) => !d._disabled && l.toggleItem(d, y), ["enter"]),
845
845
  tabindex: !d._disabled && 0
846
846
  }, [
847
847
  i.expandIcon && !i.expandIconRight ? (o(), b(a, {
@@ -852,9 +852,9 @@ function st(e, t, i, s, n, l) {
852
852
  disabled: d._disabled || null,
853
853
  tabindex: -1,
854
854
  text: "",
855
- onKeypress: t[0] || (t[0] = O(() => {
855
+ onKeypress: t[0] || (t[0] = M(() => {
856
856
  }, ["stop"])),
857
- onClick: O((y) => !d._disabled && l.toggleItem(d, y), ["stop"])
857
+ onClick: M((y) => !d._disabled && l.toggleItem(d, y), ["stop"])
858
858
  }, null, 8, ["icon", "icon-props", "disabled", "onClick", "class"])) : p("", !0),
859
859
  e.$slots[`item-title.${d.id || h + 1}`] ? c(e.$slots, `item-title.${d.id || h + 1}`, {
860
860
  key: 1,
@@ -877,9 +877,9 @@ function st(e, t, i, s, n, l) {
877
877
  class: f(["w-accordion__expand-icon", { "w-accordion__expand-icon--expanded": d._expanded, "w-accordion__expand-icon--rotate90": i.expandIconRotate90 }]),
878
878
  icon: d._expanded && i.collapseIcon || i.expandIcon,
879
879
  text: "",
880
- onKeypress: t[1] || (t[1] = O(() => {
880
+ onKeypress: t[1] || (t[1] = M(() => {
881
881
  }, ["stop"])),
882
- onClick: O((y) => !d._disabled && l.toggleItem(d, y), ["stop"])
882
+ onClick: M((y) => !d._disabled && l.toggleItem(d, y), ["stop"])
883
883
  }, null, 8, ["icon", "onClick", "class"])) : p("", !0)
884
884
  ], 42, tt),
885
885
  T(r, {
@@ -890,7 +890,7 @@ function st(e, t, i, s, n, l) {
890
890
  default: m(() => [
891
891
  d._expanded ? (o(), u("div", {
892
892
  key: 0,
893
- class: f(["w-accordion__item-content", i.contentClass])
893
+ class: f(["w-accordion__item-content", l.contentClasses])
894
894
  }, [
895
895
  e.$slots[`item-content.${d.id || h + 1}`] ? c(e.$slots, `item-content.${d.id || h + 1}`, {
896
896
  key: 0,
@@ -925,9 +925,9 @@ const ot = {
925
925
  // Support a different color per item.
926
926
  itemTitleKey: { type: String, default: "title" },
927
927
  itemContentKey: { type: String, default: "content" },
928
- itemClass: { type: String },
929
- titleClass: { type: String },
930
- contentClass: { type: String },
928
+ itemClass: { type: [String, Array, Object] },
929
+ titleClass: { type: [String, Array, Object] },
930
+ contentClass: { type: [String, Array, Object] },
931
931
  expandIcon: { type: [String, Boolean], default: "wi-triangle-down" },
932
932
  expandIconRight: { type: Boolean },
933
933
  expandIconRotate90: { type: Boolean },
@@ -955,6 +955,12 @@ const ot = {
955
955
  "w-accordion--icon-right": this.expandIcon && this.expandIconRight,
956
956
  "w-accordion--rotate-icon": this.expandIcon && !this.collapseIcon
957
957
  };
958
+ },
959
+ titleClasses() {
960
+ return P(this.titleClass);
961
+ },
962
+ contentClasses() {
963
+ return P(this.contentClass);
958
964
  }
959
965
  },
960
966
  methods: {
@@ -972,10 +978,10 @@ const ot = {
972
978
  },
973
979
  itemClasses(e) {
974
980
  return {
975
- [this.itemClass]: this.itemClass || null,
976
981
  "w-accordion__item--expanded": e._expanded,
977
982
  "w-accordion__item--disabled": e._disabled,
978
- [e[this.itemColorKey]]: e[this.itemColorKey]
983
+ [e[this.itemColorKey]]: e[this.itemColorKey],
984
+ ...P(this.itemClass)
979
985
  };
980
986
  },
981
987
  updateItems() {
@@ -1135,7 +1141,7 @@ function yt(e, t, i, s, n, l) {
1135
1141
  innerHTML: d[i.itemLabelKey]
1136
1142
  }, null, 8, ct),
1137
1143
  T(a, {
1138
- onClick: O((y) => l.unselectItem(h), ["stop"]),
1144
+ onClick: M((y) => l.unselectItem(h), ["stop"]),
1139
1145
  icon: "wi-cross",
1140
1146
  xs: "",
1141
1147
  text: "",
@@ -1166,7 +1172,7 @@ function yt(e, t, i, s, n, l) {
1166
1172
  }, [
1167
1173
  (o(!0), u(k, null, x(l.filteredItems, (d, h) => (o(), u("li", {
1168
1174
  key: h,
1169
- onClick: O((y) => (l.selectItem(d), e.$emit("item-click", d)), ["stop"]),
1175
+ onClick: M((y) => (l.selectItem(d), e.$emit("item-click", d)), ["stop"]),
1170
1176
  class: f({ highlighted: e.highlightedItem === d.uid })
1171
1177
  }, [
1172
1178
  c(e.$slots, "item", {
@@ -1411,7 +1417,7 @@ const St = {
1411
1417
  function $t(e, t, i, s, n, l) {
1412
1418
  return o(), u("div", _t, [
1413
1419
  c(e.$slots, "default"),
1414
- T(P, {
1420
+ T(O, {
1415
1421
  name: `${i.transition}`
1416
1422
  }, {
1417
1423
  default: m(() => [
@@ -1582,11 +1588,11 @@ const Rt = {
1582
1588
  };
1583
1589
  }
1584
1590
  }
1585
- }, xt = /* @__PURE__ */ v(Rt, [["render", Lt]]), Pt = {
1591
+ }, xt = /* @__PURE__ */ v(Rt, [["render", Lt]]), Ot = {
1586
1592
  key: 0,
1587
1593
  class: "w-button__loader"
1588
1594
  };
1589
- function zt(e, t, i, s, n, l) {
1595
+ function Pt(e, t, i, s, n, l) {
1590
1596
  const a = $("w-icon");
1591
1597
  return o(), b(L(!i.disabled && i.route ? "a" : "button"), _({
1592
1598
  class: ["w-button", l.classes],
@@ -1601,9 +1607,9 @@ function zt(e, t, i, s, n, l) {
1601
1607
  ]),
1602
1608
  _: 1
1603
1609
  }, 16)) : c(e.$slots, "default", { key: 1 }),
1604
- T(P, { name: "scale-fade" }, {
1610
+ T(O, { name: "scale-fade" }, {
1605
1611
  default: m(() => [
1606
- i.loading ? (o(), u("div", Pt, [
1612
+ i.loading ? (o(), u("div", Ot, [
1607
1613
  c(e.$slots, "loading", {}, () => [
1608
1614
  t[0] || (t[0] = w("svg", { viewBox: "0 0 40 40" }, [
1609
1615
  w("circle", {
@@ -1625,7 +1631,7 @@ function zt(e, t, i, s, n, l) {
1625
1631
  _: 3
1626
1632
  }, 16, ["type", "href", "class", "disabled", "style"]);
1627
1633
  }
1628
- const Ot = {
1634
+ const zt = {
1629
1635
  // Fully handle the attrs and listeners manually for the case of a router link that has both a
1630
1636
  // route and onClick.
1631
1637
  inheritAttrs: !1,
@@ -1726,7 +1732,7 @@ const Ot = {
1726
1732
  };
1727
1733
  }
1728
1734
  }
1729
- }, Mt = /* @__PURE__ */ v(Ot, [["render", zt]]), Et = ["innerHTML"];
1735
+ }, Mt = /* @__PURE__ */ v(zt, [["render", Pt]]), Et = ["innerHTML"];
1730
1736
  function At(e, t, i, s, n, l) {
1731
1737
  const a = $("button-partial");
1732
1738
  return i.tooltip ? (o(), b(L("w-tooltip"), le(_({ key: 0 }, i.tooltipProps)), {
@@ -1803,7 +1809,7 @@ const Wt = {
1803
1809
  return { ...i, ...this.$attrs };
1804
1810
  }
1805
1811
  }
1806
- }, Kt = /* @__PURE__ */ v(Wt, [["render", At]]), A = (e = {}) => (typeof e == "string" ? e = { [e]: !0 } : Array.isArray(e) && (e = { [e.join(" ")]: !0 }), e), Nt = ["innerHTML"];
1812
+ }, Kt = /* @__PURE__ */ v(Wt, [["render", At]]), Nt = ["innerHTML"];
1807
1813
  function Dt(e, t, i, s, n, l) {
1808
1814
  const a = $("w-image");
1809
1815
  return o(), u("div", {
@@ -1861,10 +1867,10 @@ const Ht = {
1861
1867
  emits: [],
1862
1868
  computed: {
1863
1869
  titleClasses() {
1864
- return A(this.titleClass);
1870
+ return P(this.titleClass);
1865
1871
  },
1866
1872
  contentClasses() {
1867
- return A(this.contentClass);
1873
+ return P(this.contentClass);
1868
1874
  },
1869
1875
  titleHasToolbar() {
1870
1876
  const { title: e } = this.$slots;
@@ -1893,7 +1899,7 @@ const Ht = {
1893
1899
  };
1894
1900
  }
1895
1901
  }
1896
- }, Ft = /* @__PURE__ */ v(Ht, [["render", Dt]]), M = {
1902
+ }, Ft = /* @__PURE__ */ v(Ht, [["render", Dt]]), E = {
1897
1903
  inject: {
1898
1904
  // Used in each form component to determine whether to use the w-form-element wrap or not.
1899
1905
  // So, if a form component is in a form, use the w-form-element wrap.
@@ -1963,7 +1969,7 @@ function Gt(e, t, i, s, n, l) {
1963
1969
  onFocus: t[0] || (t[0] = (a) => e.$emit("focus", a)),
1964
1970
  onBlur: t[1] || (t[1] = (a) => e.$emit("blur", a)),
1965
1971
  onChange: t[2] || (t[2] = (a) => l.onInput()),
1966
- onKeypress: t[3] || (t[3] = E((...a) => l.onInput && l.onInput(...a), ["enter"])),
1972
+ onKeypress: t[3] || (t[3] = A((...a) => l.onInput && l.onInput(...a), ["enter"])),
1967
1973
  "aria-checked": n.isChecked || "false",
1968
1974
  role: "checkbox"
1969
1975
  }, null, 40, jt),
@@ -2015,7 +2021,7 @@ function Gt(e, t, i, s, n, l) {
2015
2021
  }
2016
2022
  const Jt = {
2017
2023
  name: "w-checkbox",
2018
- mixins: [M],
2024
+ mixins: [E],
2019
2025
  inject: {
2020
2026
  wCheckboxes: { default: null }
2021
2027
  },
@@ -2124,7 +2130,7 @@ function ei(e, t, i, s, n, l) {
2124
2130
  }
2125
2131
  const ti = {
2126
2132
  name: "w-checkboxes",
2127
- mixins: [M],
2133
+ mixins: [E],
2128
2134
  props: {
2129
2135
  items: { type: Array, required: !0 },
2130
2136
  // All the possible options.
@@ -2219,7 +2225,7 @@ function li(e, t, i, s, n, l) {
2219
2225
  class: "mr2"
2220
2226
  }, l.cancelButtonProps, {
2221
2227
  "bg-color": (l.cancelButton || {}).bgColor || "error",
2222
- onKeyup: t[0] || (t[0] = E((y) => !i.persistent && l.onCancel(), ["escape"])),
2228
+ onKeyup: t[0] || (t[0] = A((y) => !i.persistent && l.onCancel(), ["escape"])),
2223
2229
  onClick: l.onCancel
2224
2230
  }), {
2225
2231
  default: m(() => [
@@ -2231,7 +2237,7 @@ function li(e, t, i, s, n, l) {
2231
2237
  }, 16, ["bg-color", "onClick"])) : p("", !0),
2232
2238
  W((o(), b(a, _(l.confirmButtonProps, {
2233
2239
  "bg-color": (l.confirmButton || {}).bgColor || "success",
2234
- onKeyup: t[1] || (t[1] = E((y) => !i.persistent && l.onCancel(), ["escape"])),
2240
+ onKeyup: t[1] || (t[1] = A((y) => !i.persistent && l.onCancel(), ["escape"])),
2235
2241
  onClick: l.onConfirm
2236
2242
  }), {
2237
2243
  default: m(() => [
@@ -2405,7 +2411,7 @@ function di(e, t, i, s, n, l) {
2405
2411
  opacity: i.overlayOpacity
2406
2412
  }, {
2407
2413
  default: m(() => [
2408
- T(P, {
2414
+ T(O, {
2409
2415
  name: i.transition,
2410
2416
  appear: "",
2411
2417
  onAfterLeave: l.onBeforeClose
@@ -2463,9 +2469,9 @@ const ui = {
2463
2469
  title: { type: String },
2464
2470
  transition: { type: String, default: "fade" },
2465
2471
  // @todo: validator.
2466
- titleClass: { type: String },
2467
- contentClass: { type: String },
2468
- dialogClass: { type: String },
2472
+ titleClass: { type: [String, Object, Array] },
2473
+ contentClass: { type: [String, Object, Array] },
2474
+ dialogClass: { type: [String, Object, Array] },
2469
2475
  overlayColor: { type: String },
2470
2476
  color: { type: String },
2471
2477
  bgColor: { type: String },
@@ -2488,9 +2494,18 @@ const ui = {
2488
2494
  };
2489
2495
  },
2490
2496
  computed: {
2497
+ titleClasses() {
2498
+ return P(this.titleClass);
2499
+ },
2500
+ contentClasses() {
2501
+ return P(this.contentClass);
2502
+ },
2503
+ dialogClasses() {
2504
+ return P(this.dialogClass);
2505
+ },
2491
2506
  maxWidth() {
2492
2507
  let e = this.width;
2493
- return e && parseInt(e) == e && (e += "px"), e;
2508
+ return e && parseInt(e) === +e && (e += "px"), e;
2494
2509
  },
2495
2510
  classes() {
2496
2511
  return {
@@ -2576,7 +2591,7 @@ function bi(e, t, i, s, n, l) {
2576
2591
  }, null, 8, ["modelValue", "onClick", "persistent", "bg-color", "opacity"])),
2577
2592
  c(e.$slots, "pushable")
2578
2593
  ]),
2579
- T(P, {
2594
+ T(O, {
2580
2595
  name: "fade",
2581
2596
  onBeforeLeave: l.onBeforeClose,
2582
2597
  onAfterLeave: l.onClose
@@ -2607,7 +2622,7 @@ function bi(e, t, i, s, n, l) {
2607
2622
  "bg-color": i.overlayColor,
2608
2623
  opacity: i.overlayOpacity
2609
2624
  }, null, 8, ["modelValue", "onClick", "persistent", "bg-color", "opacity"])),
2610
- T(P, {
2625
+ T(O, {
2611
2626
  name: l.transitionName,
2612
2627
  appear: "",
2613
2628
  onBeforeLeave: l.onBeforeClose,
@@ -3079,8 +3094,8 @@ const xi = {
3079
3094
  };
3080
3095
  }
3081
3096
  }
3082
- }, Pi = /* @__PURE__ */ v(xi, [["render", Ri]]);
3083
- function zi(e, t, i, s, n, l) {
3097
+ }, Oi = /* @__PURE__ */ v(xi, [["render", Ri]]);
3098
+ function Pi(e, t, i, s, n, l) {
3084
3099
  return o(), b(L(i.tag || "i"), {
3085
3100
  class: f(["w-icon", l.classes]),
3086
3101
  role: "icon",
@@ -3095,7 +3110,7 @@ function zi(e, t, i, s, n, l) {
3095
3110
  _: 1
3096
3111
  }, 8, ["class", "style"]);
3097
3112
  }
3098
- const Oi = {
3113
+ const zi = {
3099
3114
  name: "w-icon",
3100
3115
  props: {
3101
3116
  tag: { type: String, default: "i" },
@@ -3164,7 +3179,7 @@ const Oi = {
3164
3179
  return this.fontName = t, this.icon = i, !0;
3165
3180
  }
3166
3181
  }
3167
- }, Mi = /* @__PURE__ */ v(Oi, [["render", zi]]), Ei = {
3182
+ }, Mi = /* @__PURE__ */ v(zi, [["render", Pi]]), Ei = {
3168
3183
  key: 0,
3169
3184
  class: "w-image__loader"
3170
3185
  }, Ai = ["innerHTML"];
@@ -3175,7 +3190,7 @@ function Wi(e, t, i, s, n, l) {
3175
3190
  style: R(l.wrapperStyles)
3176
3191
  }, {
3177
3192
  default: m(() => [
3178
- T(P, {
3193
+ T(O, {
3179
3194
  name: i.transition,
3180
3195
  appear: ""
3181
3196
  }, {
@@ -3522,7 +3537,7 @@ function Gi(e, t, i, s, n, l) {
3522
3537
  }
3523
3538
  const Ji = {
3524
3539
  name: "w-input",
3525
- mixins: [M],
3540
+ mixins: [E],
3526
3541
  inheritAttrs: !1,
3527
3542
  // The attrs should only be added to the input not the wrapper.
3528
3543
  props: {
@@ -4168,7 +4183,7 @@ function il(e, t, i, s, n, l) {
4168
4183
  const a = $("w-card"), r = $("w-overlay");
4169
4184
  return o(), u(k, null, [
4170
4185
  c(e.$slots, "activator", { on: l.activatorEventHandlers }),
4171
- T(P, {
4186
+ T(O, {
4172
4187
  name: l.transitionName,
4173
4188
  appear: ""
4174
4189
  }, {
@@ -4319,17 +4334,17 @@ const ll = {
4319
4334
  return this.maxWidth === "activator" ? this.activatorWidth ? `${this.activatorWidth}px` : 0 : isNaN(this.maxWidth) ? this.maxWidth : this.maxWidth ? `${this.maxWidth}px` : 0;
4320
4335
  },
4321
4336
  menuClasses() {
4322
- return A(this.menuClass);
4337
+ return P(this.menuClass);
4323
4338
  },
4324
4339
  titleClasses() {
4325
- return A(this.titleClass);
4340
+ return P(this.titleClass);
4326
4341
  },
4327
4342
  contentClasses() {
4328
- return A(this.contentClass);
4343
+ return P(this.contentClass);
4329
4344
  },
4330
4345
  overlayClasses() {
4331
4346
  return {
4332
- ...A(this.overlayClass),
4347
+ ...P(this.overlayClass),
4333
4348
  "w-overlay--no-pointer-event": this.showOnHover
4334
4349
  };
4335
4350
  },
@@ -4412,7 +4427,7 @@ const ll = {
4412
4427
  }, sl = /* @__PURE__ */ v(ll, [["render", il]]);
4413
4428
  function ol(e, t, i, s, n, l) {
4414
4429
  const a = $("w-alert");
4415
- return o(), b(P, {
4430
+ return o(), b(O, {
4416
4431
  name: l.transitionName,
4417
4432
  appear: ""
4418
4433
  }, {
@@ -4564,7 +4579,7 @@ const al = {
4564
4579
  }, nl = /* @__PURE__ */ v(al, [["render", ol]]);
4565
4580
  function rl(e, t, i, s, n, l) {
4566
4581
  const a = ke("focus");
4567
- return o(), b(P, {
4582
+ return o(), b(O, {
4568
4583
  name: "fade",
4569
4584
  appear: "",
4570
4585
  onAfterLeave: l.onClose
@@ -4575,7 +4590,7 @@ function rl(e, t, i, s, n, l) {
4575
4590
  class: f(["w-overlay", l.classes]),
4576
4591
  ref: "overlay",
4577
4592
  style: R(i.modelValue && l.styles || null),
4578
- onKeydown: t[0] || (t[0] = E(O((...r) => l.onClick && l.onClick(...r), ["stop"]), ["escape"])),
4593
+ onKeydown: t[0] || (t[0] = A(M((...r) => l.onClick && l.onClick(...r), ["stop"]), ["escape"])),
4579
4594
  onClick: t[1] || (t[1] = (...r) => l.onClick && l.onClick(...r)),
4580
4595
  tabindex: "0"
4581
4596
  }, [
@@ -4839,7 +4854,7 @@ function Vl(e, t, i, s, n, l) {
4839
4854
  }
4840
4855
  const Tl = {
4841
4856
  name: "w-radio",
4842
- mixins: [M],
4857
+ mixins: [E],
4843
4858
  inject: { wRadios: { default: null } },
4844
4859
  props: {
4845
4860
  modelValue: { default: !1 },
@@ -4946,9 +4961,9 @@ function xl(e, t, i, s, n, l) {
4946
4961
  _: 3
4947
4962
  }, 16, ["valid", "column", "wrap", "class"]);
4948
4963
  }
4949
- const Pl = {
4964
+ const Ol = {
4950
4965
  name: "w-radios",
4951
- mixins: [M],
4966
+ mixins: [E],
4952
4967
  props: {
4953
4968
  items: { type: Array, required: !0 },
4954
4969
  // All the possible options.
@@ -4999,7 +5014,7 @@ const Pl = {
4999
5014
  return this.items[e._index];
5000
5015
  }
5001
5016
  }
5002
- }, zl = /* @__PURE__ */ v(Pl, [["render", xl]]), Ol = ["id", "name", "value"], Ml = ["disabled", "onMouseenter", "onClick", "tabindex"];
5017
+ }, Pl = /* @__PURE__ */ v(Ol, [["render", xl]]), zl = ["id", "name", "value"], Ml = ["disabled", "onMouseenter", "onClick", "tabindex"];
5003
5018
  function El(e, t, i, s, n, l) {
5004
5019
  return o(), b(L(e.formRegister ? "w-form-element" : "div"), _({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: n.rating, disabled: e.isDisabled, readonly: e.isReadonly }, {
5005
5020
  valid: e.valid,
@@ -5015,7 +5030,7 @@ function El(e, t, i, s, n, l) {
5015
5030
  name: e.inputName,
5016
5031
  type: "hidden",
5017
5032
  value: n.rating
5018
- }, null, 8, Ol),
5033
+ }, null, 8, zl),
5019
5034
  (o(!0), u(k, null, x(i.max, (a) => (o(), u(k, { key: a }, [
5020
5035
  e.$slots.item ? c(e.$slots, "item", {
5021
5036
  key: 0,
@@ -5048,7 +5063,7 @@ function El(e, t, i, s, n, l) {
5048
5063
  }
5049
5064
  const Al = {
5050
5065
  name: "w-rating",
5051
- mixins: [M],
5066
+ mixins: [E],
5052
5067
  props: {
5053
5068
  modelValue: {},
5054
5069
  max: { type: [Number, String], default: 5 },
@@ -5445,7 +5460,7 @@ function Xl(e, t, i, s, n, l) {
5445
5460
  }
5446
5461
  const Yl = {
5447
5462
  name: "w-select",
5448
- mixins: [M],
5463
+ mixins: [E],
5449
5464
  props: {
5450
5465
  items: { type: Array, required: !0 },
5451
5466
  modelValue: {},
@@ -5733,11 +5748,11 @@ function rs(e, t, i, s, n, l) {
5733
5748
  "aria-readonly": e.isReadonly ? "true" : "false",
5734
5749
  tabindex: e.isDisabled || e.isReadonly ? -1 : null,
5735
5750
  onKeydown: [
5736
- t[0] || (t[0] = E((a) => l.onKeyDown(a, -1), ["left"])),
5737
- t[1] || (t[1] = E((a) => l.onKeyDown(a, 1), ["right"]))
5751
+ t[0] || (t[0] = A((a) => l.onKeyDown(a, -1), ["left"])),
5752
+ t[1] || (t[1] = A((a) => l.onKeyDown(a, 1), ["right"]))
5738
5753
  ],
5739
5754
  onFocus: t[2] || (t[2] = (a) => e.$emit("focus", a)),
5740
- onClick: t[3] || (t[3] = O(() => {
5755
+ onClick: t[3] || (t[3] = M(() => {
5741
5756
  }, ["prevent"]))
5742
5757
  }, null, 42, ts),
5743
5758
  i.thumbLabel ? (o(), u("label", {
@@ -5795,7 +5810,7 @@ function rs(e, t, i, s, n, l) {
5795
5810
  }
5796
5811
  const ds = {
5797
5812
  name: "w-slider",
5798
- mixins: [M],
5813
+ mixins: [E],
5799
5814
  props: {
5800
5815
  modelValue: { type: Number, default: 0 },
5801
5816
  color: { type: String, default: "primary" },
@@ -6081,7 +6096,7 @@ function Ss(e, t, i, s, n, l) {
6081
6096
  }
6082
6097
  const Bs = {
6083
6098
  name: "w-switch",
6084
- mixins: [M],
6099
+ mixins: [E],
6085
6100
  inheritAttrs: !1,
6086
6101
  // The attrs should only be added to the input not the wrapper.
6087
6102
  props: {
@@ -6168,10 +6183,10 @@ const Vs = {
6168
6183
  }, Ts = /* @__PURE__ */ v(Vs, [["render", Is]]), Ls = ["onClick", "onFocus", "tabindex", "onKeypress", "aria-selected"], Rs = ["innerHTML"], xs = {
6169
6184
  key: 0,
6170
6185
  class: "w-tabs__bar-extra"
6171
- }, Ps = {
6186
+ }, Os = {
6172
6187
  key: 0,
6173
6188
  class: "w-tabs__content-wrap"
6174
- }, zs = ["innerHTML"], Os = ["innerHTML"];
6189
+ }, Ps = ["innerHTML"], zs = ["innerHTML"];
6175
6190
  function Ms(e, t, i, s, n, l) {
6176
6191
  const a = $("tab-content");
6177
6192
  return o(), u("div", {
@@ -6187,7 +6202,7 @@ function Ms(e, t, i, s, n, l) {
6187
6202
  onClick: (h) => !r._disabled && r._uid !== e.activeTabUid && l.openTab(r._uid),
6188
6203
  onFocus: (h) => e.$emit("focus", l.getOriginalItem(r)),
6189
6204
  tabindex: !r._disabled && 0,
6190
- onKeypress: E((h) => !r._disabled && l.openTab(r._uid), ["enter"]),
6205
+ onKeypress: A((h) => !r._disabled && l.openTab(r._uid), ["enter"]),
6191
6206
  "aria-selected": r._uid === e.activeTabUid ? "true" : "false",
6192
6207
  role: "tab"
6193
6208
  }, [
@@ -6216,7 +6231,7 @@ function Ms(e, t, i, s, n, l) {
6216
6231
  style: R(l.sliderStyles)
6217
6232
  }, null, 6)) : p("", !0)
6218
6233
  ], 2),
6219
- e.tabs.length ? (o(), u("div", Ps, [
6234
+ e.tabs.length ? (o(), u("div", Os, [
6220
6235
  i.keepInDom ? (o(), b(ae, {
6221
6236
  key: 0,
6222
6237
  name: l.transitionName
@@ -6225,7 +6240,7 @@ function Ms(e, t, i, s, n, l) {
6225
6240
  (o(!0), u(k, null, x(e.tabs, (r, d) => W((o(), b(a, {
6226
6241
  key: r._uid,
6227
6242
  item: r,
6228
- class: f(i.contentClass)
6243
+ class: f(l.contentClasses)
6229
6244
  }, {
6230
6245
  default: m(() => [
6231
6246
  e.$slots[`item-content.${r._index + 1}`] ? c(e.$slots, `item-content.${r._index + 1}`, {
@@ -6242,7 +6257,7 @@ function Ms(e, t, i, s, n, l) {
6242
6257
  r[i.itemContentKey] ? (o(), u("div", {
6243
6258
  key: 0,
6244
6259
  innerHTML: r[i.itemContentKey]
6245
- }, null, 8, zs)) : p("", !0)
6260
+ }, null, 8, Ps)) : p("", !0)
6246
6261
  ])
6247
6262
  ]),
6248
6263
  _: 2
@@ -6251,7 +6266,7 @@ function Ms(e, t, i, s, n, l) {
6251
6266
  ])), 128))
6252
6267
  ]),
6253
6268
  _: 3
6254
- }, 8, ["name"])) : (o(), b(P, {
6269
+ }, 8, ["name"])) : (o(), b(O, {
6255
6270
  key: 1,
6256
6271
  name: l.transitionName,
6257
6272
  mode: l.transitionMode
@@ -6281,7 +6296,7 @@ function Ms(e, t, i, s, n, l) {
6281
6296
  r[i.itemContentKey] ? (o(), u("div", {
6282
6297
  key: 0,
6283
6298
  innerHTML: r[i.itemContentKey]
6284
- }, null, 8, Os)) : p("", !0)
6299
+ }, null, 8, zs)) : p("", !0)
6285
6300
  ])
6286
6301
  ], 64)) : p("", !0)
6287
6302
  ]),
@@ -6305,12 +6320,12 @@ const Es = {
6305
6320
  itemIdKey: { type: String, default: "id" },
6306
6321
  itemTitleKey: { type: String, default: "title" },
6307
6322
  itemContentKey: { type: String, default: "content" },
6308
- titleClass: { type: String },
6309
- activeClass: { type: String, default: "primary" },
6323
+ titleClass: { type: [String, Array, Object] },
6324
+ activeClass: { type: [String, Array, Object], default: "primary" },
6310
6325
  noSlider: { type: Boolean },
6311
6326
  pillSlider: { type: Boolean },
6312
6327
  sliderColor: { type: String, default: "primary" },
6313
- contentClass: { type: String },
6328
+ contentClass: { type: [String, Array, Object] },
6314
6329
  transition: { type: [String, Boolean], default: "" },
6315
6330
  fillBar: { type: Boolean },
6316
6331
  center: { type: Boolean },
@@ -6337,6 +6352,9 @@ const Es = {
6337
6352
  init: !0
6338
6353
  }),
6339
6354
  computed: {
6355
+ contentClasses() {
6356
+ return P(this.contentClass);
6357
+ },
6340
6358
  transitionName() {
6341
6359
  return this.transition === !1 ? "" : this.transition || `w-tabs-slide-${this.direction}`;
6342
6360
  },
@@ -6410,9 +6428,10 @@ const Es = {
6410
6428
  return {
6411
6429
  [`${this.bgColor}--bg`]: this.bgColor,
6412
6430
  [this.color]: this.color && !e._disabled && !(this.activeClass && t),
6413
- [`w-tabs__bar-item--active ${this.activeClass}`]: t,
6431
+ "w-tabs__bar-item--active": t,
6414
6432
  "w-tabs__bar-item--disabled": e._disabled,
6415
- [this.titleClass]: this.titleClass
6433
+ ...P(this.titleClass),
6434
+ ...t ? P(this.activeClass) : {}
6416
6435
  };
6417
6436
  },
6418
6437
  // Switching tabs.
@@ -6555,7 +6574,7 @@ function po(e, t, i, s, n, l) {
6555
6574
  V < i.headers.length - 1 && i.resizableColumns ? (o(), u("span", {
6556
6575
  key: 3,
6557
6576
  class: f(["w-table__col-resizer", { "w-table__col-resizer--hover": e.colResizing.hover === V, "w-table__col-resizer--active": e.colResizing.columnIndex === V }]),
6558
- onClick: t[0] || (t[0] = O(() => {
6577
+ onClick: t[0] || (t[0] = M(() => {
6559
6578
  }, ["stop"]))
6560
6579
  }, null, 2)) : p("", !0)
6561
6580
  ], 10, Hs))), 128))
@@ -7104,7 +7123,7 @@ function bo(e, t, i, s, n, l) {
7104
7123
  onClick: t[1] || (t[1] = (a) => {
7105
7124
  e.$emit("update:modelValue", !i.modelValue), e.$emit("input", !i.modelValue);
7106
7125
  }),
7107
- onKeypress: t[2] || (t[2] = E((a) => {
7126
+ onKeypress: t[2] || (t[2] = A((a) => {
7108
7127
  e.$emit("update:modelValue", !i.modelValue), e.$emit("input", !i.modelValue);
7109
7128
  }, ["enter"])),
7110
7129
  role: i.modelValue !== -1 && "button",
@@ -7116,7 +7135,7 @@ function bo(e, t, i, s, n, l) {
7116
7135
  i.closable && i.modelValue ? (o(), u("i", {
7117
7136
  key: 0,
7118
7137
  class: "w-icon w-tag__closable wi-cross",
7119
- onClick: t[0] || (t[0] = O((a) => {
7138
+ onClick: t[0] || (t[0] = M((a) => {
7120
7139
  e.$emit("update:modelValue", !1), e.$emit("input", !1);
7121
7140
  }, ["stop"])),
7122
7141
  role: "icon",
@@ -7282,7 +7301,7 @@ function So(e, t, i, s, n, l) {
7282
7301
  }
7283
7302
  const Bo = {
7284
7303
  name: "w-textarea",
7285
- mixins: [M],
7304
+ mixins: [E],
7286
7305
  inheritAttrs: !1,
7287
7306
  // The attrs should only be added to the textarea not the wrapper.
7288
7307
  props: {
@@ -7526,11 +7545,11 @@ const xo = {
7526
7545
  };
7527
7546
  }
7528
7547
  }
7529
- }, Po = /* @__PURE__ */ v(xo, [["render", Ro]]);
7530
- function zo(e, t, i, s, n, l) {
7548
+ }, Oo = /* @__PURE__ */ v(xo, [["render", Ro]]);
7549
+ function Po(e, t, i, s, n, l) {
7531
7550
  return o(), u(k, null, [
7532
7551
  c(e.$slots, "activator", { on: l.activatorEventHandlers }),
7533
- T(P, {
7552
+ T(O, {
7534
7553
  name: l.transitionName,
7535
7554
  appear: ""
7536
7555
  }, {
@@ -7548,7 +7567,7 @@ function zo(e, t, i, s, n, l) {
7548
7567
  }, 8, ["name"])
7549
7568
  ], 64);
7550
7569
  }
7551
- const Oo = {
7570
+ const zo = {
7552
7571
  name: "w-tooltip",
7553
7572
  mixins: [Be],
7554
7573
  props: {
@@ -7600,7 +7619,7 @@ const Oo = {
7600
7619
  * - `alignment`
7601
7620
  **/
7602
7621
  tooltipClasses() {
7603
- return A(this.tooltipClass);
7622
+ return P(this.tooltipClass);
7604
7623
  },
7605
7624
  transitionName() {
7606
7625
  const e = this.position.replace(/top|bottom/, (t) => ({ top: "up", bottom: "down" })[t]);
@@ -7684,9 +7703,9 @@ const Oo = {
7684
7703
  }
7685
7704
  }
7686
7705
  // watch, mounted & beforeDestroy hooks are set in the detachable.js mixin.
7687
- }, Mo = /* @__PURE__ */ v(Oo, [["render", zo]]);
7706
+ }, Mo = /* @__PURE__ */ v(zo, [["render", Po]]);
7688
7707
  function Eo(e, t, i, s, n, l) {
7689
- return o(), b(P, _({ name: "bounce" }, e.$props), {
7708
+ return o(), b(O, _({ name: "bounce" }, e.$props), {
7690
7709
  default: m(() => [
7691
7710
  c(e.$slots, "default")
7692
7711
  ]),
@@ -7701,7 +7720,7 @@ const Ao = {
7701
7720
  }
7702
7721
  }, Wo = /* @__PURE__ */ v(Ao, [["render", Eo]]);
7703
7722
  function Ko(e, t, i, s, n, l) {
7704
- return o(), b(P, {
7723
+ return o(), b(O, {
7705
7724
  name: "expand",
7706
7725
  mode: "out-in",
7707
7726
  css: !1,
@@ -7813,7 +7832,7 @@ const No = {
7813
7832
  }
7814
7833
  }, Do = /* @__PURE__ */ v(No, [["render", Ko]]);
7815
7834
  function Ho(e, t, i, s, n, l) {
7816
- return o(), b(P, _({ name: "fade" }, e.$props), {
7835
+ return o(), b(O, _({ name: "fade" }, e.$props), {
7817
7836
  default: m(() => [
7818
7837
  c(e.$slots, "default")
7819
7838
  ]),
@@ -7828,7 +7847,7 @@ const Fo = {
7828
7847
  }
7829
7848
  }, jo = /* @__PURE__ */ v(Fo, [["render", Ho]]);
7830
7849
  function Uo(e, t, i, s, n, l) {
7831
- return o(), b(P, _({ name: "scale" }, e.$props), {
7850
+ return o(), b(O, _({ name: "scale" }, e.$props), {
7832
7851
  default: m(() => [
7833
7852
  c(e.$slots, "default")
7834
7853
  ]),
@@ -7843,7 +7862,7 @@ const qo = {
7843
7862
  }
7844
7863
  }, Xo = /* @__PURE__ */ v(qo, [["render", Uo]]);
7845
7864
  function Yo(e, t, i, s, n, l) {
7846
- return o(), b(P, _({ name: "scale-fade" }, e.$props), {
7865
+ return o(), b(O, _({ name: "scale-fade" }, e.$props), {
7847
7866
  default: m(() => [
7848
7867
  c(e.$slots, "default")
7849
7868
  ]),
@@ -7858,7 +7877,7 @@ const Go = {
7858
7877
  }
7859
7878
  }, Jo = /* @__PURE__ */ v(Go, [["render", Yo]]);
7860
7879
  function Qo(e, t, i, s, n, l) {
7861
- return o(), b(P, _({ name: l.transitionName }, e.$props), {
7880
+ return o(), b(O, _({ name: l.transitionName }, e.$props), {
7862
7881
  default: m(() => [
7863
7882
  c(e.$slots, "default")
7864
7883
  ]),
@@ -7885,7 +7904,7 @@ const Zo = {
7885
7904
  }
7886
7905
  }, ea = /* @__PURE__ */ v(Zo, [["render", Qo]]);
7887
7906
  function ta(e, t, i, s, n, l) {
7888
- return o(), b(P, _({ name: l.transitionName }, e.$props), {
7907
+ return o(), b(O, _({ name: l.transitionName }, e.$props), {
7889
7908
  default: m(() => [
7890
7909
  c(e.$slots, "default")
7891
7910
  ]),
@@ -7912,7 +7931,7 @@ const ia = {
7912
7931
  }
7913
7932
  }, la = /* @__PURE__ */ v(ia, [["render", ta]]);
7914
7933
  function sa(e, t, i, s, n, l) {
7915
- return o(), b(P, _({ name: "twist" }, e.$props), {
7934
+ return o(), b(O, _({ name: "twist" }, e.$props), {
7916
7935
  default: m(() => [
7917
7936
  c(e.$slots, "default")
7918
7937
  ]),
@@ -7950,7 +7969,7 @@ function da(e, t, i, s, n, l) {
7950
7969
  (h.children || h.branch) && (i.expandOpenIcon && h.open || i.expandIcon) && !(i.unexpandableEmpty && !h.children) ? (o(), b(a, {
7951
7970
  key: 0,
7952
7971
  class: "w-tree__item-expand",
7953
- onClick: O((S) => !i.disabled && !h.disabled && l.onLabelClick(h, S), ["stop"]),
7972
+ onClick: M((S) => !i.disabled && !h.disabled && l.onLabelClick(h, S), ["stop"]),
7954
7973
  color: "inherit",
7955
7974
  icon: h.open && i.expandOpenIcon || i.expandIcon,
7956
7975
  "icon-props": { rotate90a: !h.open },
@@ -8241,7 +8260,7 @@ const ua = {
8241
8260
  WFlex: Si,
8242
8261
  WForm: Ii,
8243
8262
  WFormElement: Li,
8244
- WGrid: Pi,
8263
+ WGrid: Oi,
8245
8264
  WIcon: Mi,
8246
8265
  WImage: Ni,
8247
8266
  WInput: Qi,
@@ -8252,7 +8271,7 @@ const ua = {
8252
8271
  WParallax: fl,
8253
8272
  WProgress: Cl,
8254
8273
  WRadio: Ll,
8255
- WRadios: zl,
8274
+ WRadios: Pl,
8256
8275
  WRating: Wl,
8257
8276
  WScrollable: Hl,
8258
8277
  WSelect: Gl,
@@ -8265,7 +8284,7 @@ const ua = {
8265
8284
  WTag: wo,
8266
8285
  WTextarea: _o,
8267
8286
  WTimeline: Lo,
8268
- WToolbar: Po,
8287
+ WToolbar: Oo,
8269
8288
  WTooltip: Mo,
8270
8289
  WTransitionBounce: Wo,
8271
8290
  WTransitionExpand: Do,