wave-ui 3.4.2 → 3.4.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9,7 +9,7 @@ var X = (e, t, l) => (ne(e, t, "read from private field"), l ? l.call(e) : t.get
9
9
  throw TypeError("Cannot add the same private member more than once");
10
10
  t instanceof WeakSet ? t.add(e) : t.set(e, l);
11
11
  }, te = (e, t, l, a) => (ne(e, t, "write to private field"), a ? a.call(e, l) : t.set(e, l), l);
12
- import { reactive as Q, resolveComponent as $, openBlock as s, createBlock as m, Teleport as _e, createVNode as I, TransitionGroup as ae, normalizeClass as f, withCtx as g, createElementBlock as u, Fragment as k, renderList as L, mergeProps as C, createElementVNode as w, createCommentVNode as c, createApp as Ce, defineComponent as Se, inject as Be, withKeys as E, withModifiers as M, renderSlot as p, toHandlers as W, createTextVNode as S, toDisplayString as _, Transition as O, normalizeStyle as R, resolveDynamicComponent as V, normalizeProps as ie, resolveDirective as me, withDirectives as N, createSlots as Z, vShow as oe, vModelText as be, vModelDynamic as $e, KeepAlive as Ve } from "vue";
12
+ import { reactive as Q, resolveComponent as $, openBlock as s, createBlock as m, Teleport as _e, createVNode as I, TransitionGroup as ae, normalizeClass as f, withCtx as g, createElementBlock as u, Fragment as k, renderList as L, mergeProps as C, createElementVNode as w, createCommentVNode as c, createApp as Ce, defineComponent as Se, inject as Be, withKeys as E, withModifiers as M, renderSlot as p, toHandlers as W, createTextVNode as S, toDisplayString as _, Transition as O, normalizeStyle as T, resolveDynamicComponent as V, normalizeProps as ie, resolveDirective as me, withDirectives as N, createSlots as Z, vShow as oe, vModelText as be, vModelDynamic as $e, KeepAlive as Ve } from "vue";
13
13
  const Ie = Q({
14
14
  on: "#app",
15
15
  breakpoints: {
@@ -60,8 +60,8 @@ const Ie = Q({
60
60
  typeof a == "object" ? ye(e[l], t[l]) : t[l] = a;
61
61
  }
62
62
  return t;
63
- }, Te = ["innerHTML"];
64
- function Re(e, t, l, a, r, i) {
63
+ }, Re = ["innerHTML"];
64
+ function Te(e, t, l, a, r, i) {
65
65
  const o = $("w-alert");
66
66
  return s(), m(_e, { to: ".w-app" }, [
67
67
  I(ae, {
@@ -82,7 +82,7 @@ function Re(e, t, l, a, r, i) {
82
82
  default: g(() => [
83
83
  w("div", {
84
84
  innerHTML: n.message
85
- }, null, 8, Te)
85
+ }, null, 8, Re)
86
86
  ]),
87
87
  _: 2
88
88
  }, 1040, ["modelValue", "onUpdate:modelValue", "onClose"])) : c("", !0)
@@ -117,7 +117,7 @@ const v = (e, t) => {
117
117
  return i.dismiss && (i.dismiss = !0), i;
118
118
  }
119
119
  }
120
- }, xe = /* @__PURE__ */ v(Le, [["render", Re]]);
120
+ }, xe = /* @__PURE__ */ v(Le, [["render", Te]]);
121
121
  var H;
122
122
  const F = class {
123
123
  constructor() {
@@ -558,8 +558,8 @@ const ze = (e) => {
558
558
  for (const b in y)
559
559
  l[b] = y[b];
560
560
  let B = "";
561
- return Object.entries(l).forEach(([b, T]) => {
562
- B += `--w-${b}-color: ${T};`;
561
+ return Object.entries(l).forEach(([b, R]) => {
562
+ B += `--w-${b}-color: ${R};`;
563
563
  }), `:root{${B}}${t}`;
564
564
  }, Me = (e, t) => {
565
565
  let l = "";
@@ -1056,7 +1056,7 @@ function st(e, t, l, a, r, i) {
1056
1056
  l.modelValue ? (s(), u("div", {
1057
1057
  key: 0,
1058
1058
  class: f(["w-badge", i.classes]),
1059
- style: R(i.styles),
1059
+ style: T(i.styles),
1060
1060
  "aria-atomic": "true",
1061
1061
  "aria-label": "Badge",
1062
1062
  "aria-live": "polite",
@@ -1554,7 +1554,7 @@ const _t = {
1554
1554
  /* @__PURE__ */ w("polyline", { points: "1 5 4 8 10 2" })
1555
1555
  ], -1), It = [
1556
1556
  Vt
1557
- ], Tt = ["for"], Rt = ["for", "innerHTML"];
1557
+ ], Rt = ["for"], Tt = ["for", "innerHTML"];
1558
1558
  function Lt(e, t, l, a, r, i) {
1559
1559
  return s(), m(V(e.formRegister && !i.wCheckboxes ? "w-form-element" : "div"), C({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: r.isChecked, disabled: e.isDisabled }, {
1560
1560
  valid: e.valid,
@@ -1612,12 +1612,12 @@ function Lt(e, t, l, a, r, i) {
1612
1612
  p(e.$slots, "default", {}, () => [
1613
1613
  S(_(l.label), 1)
1614
1614
  ])
1615
- ], 10, Tt)) : l.label ? (s(), u("label", {
1615
+ ], 10, Rt)) : l.label ? (s(), u("label", {
1616
1616
  key: 1,
1617
1617
  class: f(["w-checkbox__label w-form-el-shakable pl2", e.labelClasses]),
1618
1618
  for: `w-checkbox--${e._.uid}`,
1619
1619
  innerHTML: l.label
1620
- }, null, 10, Rt)) : c("", !0)
1620
+ }, null, 10, Tt)) : c("", !0)
1621
1621
  ], 64)) : c("", !0)
1622
1622
  ]),
1623
1623
  _: 3
@@ -1939,7 +1939,7 @@ const At = {
1939
1939
  function Kt(e, t, l, a, r, i) {
1940
1940
  return s(), u("div", {
1941
1941
  class: f(["w-date-picker", i.classes]),
1942
- style: R(i.styles)
1942
+ style: T(i.styles)
1943
1943
  }, [
1944
1944
  p(e.$slots, "default")
1945
1945
  ], 6);
@@ -1991,7 +1991,7 @@ function Ft(e, t, l, a, r, i) {
1991
1991
  "title-class": l.titleClass,
1992
1992
  "content-class": l.contentClass,
1993
1993
  title: l.title || void 0,
1994
- style: R(i.contentStyles)
1994
+ style: T(i.contentStyles)
1995
1995
  }, Z({
1996
1996
  default: g(() => [
1997
1997
  p(e.$slots, "default")
@@ -2129,7 +2129,7 @@ function Qt(e, t, l, a, r, i) {
2129
2129
  l.pushContent ? (s(), u("div", {
2130
2130
  key: 0,
2131
2131
  class: "w-drawer-wrap__track",
2132
- style: R(i.trackStyles)
2132
+ style: T(i.trackStyles)
2133
2133
  }, [
2134
2134
  w("div", Jt, [
2135
2135
  l.noOverlay ? c("", !0) : (s(), m(o, {
@@ -2154,7 +2154,7 @@ function Qt(e, t, l, a, r, i) {
2154
2154
  key: 0,
2155
2155
  class: f(["w-drawer", i.drawerClasses]),
2156
2156
  ref: "drawer",
2157
- style: R(i.styles)
2157
+ style: T(i.styles)
2158
2158
  }, {
2159
2159
  default: g(() => [
2160
2160
  p(e.$slots, "default")
@@ -2186,7 +2186,7 @@ function Qt(e, t, l, a, r, i) {
2186
2186
  key: 0,
2187
2187
  class: f(["w-drawer", i.drawerClasses]),
2188
2188
  ref: "drawer",
2189
- style: R(i.styles)
2189
+ style: T(i.styles)
2190
2190
  }, {
2191
2191
  default: g(() => [
2192
2192
  p(e.$slots, "default")
@@ -2710,7 +2710,7 @@ function wl(e, t, l, a, r, i) {
2710
2710
  const o = $("w-progress");
2711
2711
  return s(), m(V(i.wrapperTag), {
2712
2712
  class: f(["w-image-wrap", i.wrapperClasses]),
2713
- style: R(i.wrapperStyles)
2713
+ style: T(i.wrapperStyles)
2714
2714
  }, {
2715
2715
  default: g(() => [
2716
2716
  I(O, {
@@ -2721,7 +2721,7 @@ function wl(e, t, l, a, r, i) {
2721
2721
  r.loaded ? (s(), m(V(l.tag), {
2722
2722
  key: 0,
2723
2723
  class: f(["w-image", i.imageClasses]),
2724
- style: R(i.imageStyles),
2724
+ style: T(i.imageStyles),
2725
2725
  src: l.tag === "img" ? r.imgSrc : null
2726
2726
  }, null, 8, ["class", "style", "src"])) : c("", !0)
2727
2727
  ]),
@@ -2846,7 +2846,7 @@ const vl = {
2846
2846
  }, kl = /* @__PURE__ */ v(vl, [["render", wl]]), _l = ["name"], Cl = ["for"], Sl = ["id", "type", "name", "placeholder", "step", "min", "max", "minlength", "maxlength", "readonly", "aria-readonly", "disabled", "required", "tabindex"], Bl = ["id", "name", "multiple", "data-progress"], $l = {
2847
2847
  class: "w-input__no-file",
2848
2848
  key: "no-file"
2849
- }, Vl = ["for"], Il = ["for"], Tl = ["src"], Rl = ["for"];
2849
+ }, Vl = ["for"], Il = ["for"], Rl = ["src"], Tl = ["for"];
2850
2850
  function Ll(e, t, l, a, r, i) {
2851
2851
  const o = $("w-icon"), n = $("w-progress");
2852
2852
  return s(), m(V(e.formRegister ? "w-form-element" : "div"), C({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: r.inputValue, disabled: e.isDisabled, readonly: e.isReadonly, isFocused: r.isFocused }, {
@@ -3004,7 +3004,7 @@ function Ll(e, t, l, a, r, i) {
3004
3004
  key: `${h}b`,
3005
3005
  src: d.preview,
3006
3006
  alt: ""
3007
- }, null, 8, Tl)) : (s(), u("i", {
3007
+ }, null, 8, Rl)) : (s(), u("i", {
3008
3008
  class: f(["w-icon w-input__file-preview primary size--md", l.preview && typeof l.preview == "string" ? l.preview : "wi-file"]),
3009
3009
  key: `${h}c`
3010
3010
  }, null, 2))
@@ -3019,7 +3019,7 @@ function Ll(e, t, l, a, r, i) {
3019
3019
  p(e.$slots, "default", {}, () => [
3020
3020
  S(_(l.label), 1)
3021
3021
  ])
3022
- ], 10, Rl)) : c("", !0)
3022
+ ], 10, Tl)) : c("", !0)
3023
3023
  ], 64)) : c("", !0)
3024
3024
  ], 64))
3025
3025
  ]),
@@ -3799,7 +3799,7 @@ function Nl(e, t, l, a, r, i) {
3799
3799
  r.show ? (s(), u("div", {
3800
3800
  key: 0,
3801
3801
  class: f(["w-notification", i.classes]),
3802
- style: R(i.styles)
3802
+ style: T(i.styles)
3803
3803
  }, [
3804
3804
  I(o, C(i.alertProps, {
3805
3805
  class: i.alertClasses,
@@ -3950,7 +3950,7 @@ function Dl(e, t, l, a, r, i) {
3950
3950
  key: 0,
3951
3951
  class: f(["w-overlay", i.classes]),
3952
3952
  ref: "overlay",
3953
- style: R(l.modelValue && i.styles || null),
3953
+ style: T(l.modelValue && i.styles || null),
3954
3954
  onKeydown: t[0] || (t[0] = E(M((...n) => i.onClick && i.onClick(...n), ["stop"]), ["escape"])),
3955
3955
  onClick: t[1] || (t[1] = (...n) => i.onClick && i.onClick(...n)),
3956
3956
  tabindex: "0"
@@ -4031,7 +4031,7 @@ const Xl = {
4031
4031
  function Zl(e, t, l, a, r, i) {
4032
4032
  return s(), u("div", {
4033
4033
  class: f(["w-progress", i.classes]),
4034
- style: R(i.styles)
4034
+ style: T(i.styles)
4035
4035
  }, [
4036
4036
  l.circle ? (s(), u("svg", {
4037
4037
  key: 1,
@@ -4056,12 +4056,12 @@ function Zl(e, t, l, a, r, i) {
4056
4056
  "stroke-width": l.stroke,
4057
4057
  "stroke-linecap": l.roundCap && "round",
4058
4058
  "stroke-dasharray": e.circleCircumference,
4059
- style: R(`stroke-dashoffset: ${(1 - i.progressValue / 100) * e.circleCircumference}`)
4059
+ style: T(`stroke-dashoffset: ${(1 - i.progressValue / 100) * e.circleCircumference}`)
4060
4060
  }, null, 12, Ql)
4061
4061
  ], 8, Gl)) : (s(), u("div", {
4062
4062
  key: 0,
4063
4063
  class: f(["w-progress__progress", { full: i.progressValue === 100 }]),
4064
- style: R(`width: ${i.progressValue}%`)
4064
+ style: T(`width: ${i.progressValue}%`)
4065
4065
  }, null, 6)),
4066
4066
  l.label || e.$slots.default ? (s(), u("div", {
4067
4067
  key: 2,
@@ -4393,7 +4393,7 @@ function yi(e, t, l, a, r, i) {
4393
4393
  class: f(["w-icon", `${l.icon} ${l.color}`]),
4394
4394
  role: "icon",
4395
4395
  "aria-hidden": "true",
4396
- style: R(i.halfStarStyle)
4396
+ style: T(i.halfStarStyle)
4397
4397
  }, null, 6)) : c("", !0)
4398
4398
  ], 42, bi)
4399
4399
  ], 64))), 128))
@@ -4511,7 +4511,7 @@ function ki(e, t, l, a, r, i) {
4511
4511
  w("div", {
4512
4512
  class: "w-scrollbar__thumb",
4513
4513
  ref: "thumb",
4514
- style: R(i.thumbStyles)
4514
+ style: T(i.thumbStyles)
4515
4515
  }, null, 4)
4516
4516
  ], 34)
4517
4517
  ], 64);
@@ -4634,12 +4634,12 @@ const _i = {
4634
4634
  }, Si = /* @__PURE__ */ v(Ci, [["render", ki]]), Bi = ["for"], $i = ["aria-expanded", "aria-owns", "aria-activedescendant"], Vi = {
4635
4635
  key: 1,
4636
4636
  class: "w-select__selection-slot"
4637
- }, Ii = ["contenteditable", "id", "disabled", "tabindex", "innerHTML"], Ti = ["value", "name"], Ri = ["for"], Li = ["for"];
4637
+ }, Ii = ["contenteditable", "id", "disabled", "tabindex", "innerHTML"], Ri = ["value", "name"], Ti = ["for"], Li = ["for"];
4638
4638
  function xi(e, t, l, a, r, i) {
4639
4639
  const o = $("w-icon"), n = $("w-list"), d = $("w-menu");
4640
- return s(), m(V(e.formRegister ? "w-form-element" : "div"), C({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: i.selectionString, disabled: e.isDisabled, readonly: e.isReadonly }, {
4640
+ return s(), m(V(e.formRegister ? "w-form-element" : "div"), C({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: i.selectionString, disabled: e.isDisabled, readonly: e.isReadonly, isFocused: e.isFocused }, {
4641
4641
  valid: e.valid,
4642
- "onUpdate:valid": t[9] || (t[9] = (h) => e.valid = h),
4642
+ "onUpdate:valid": t[11] || (t[11] = (h) => e.valid = h),
4643
4643
  onReset: i.onReset,
4644
4644
  wrap: i.hasLabel && l.labelPosition !== "inside",
4645
4645
  class: i.classes
@@ -4658,7 +4658,8 @@ function xi(e, t, l, a, r, i) {
4658
4658
  ], 64)) : c("", !0),
4659
4659
  I(d, C({
4660
4660
  modelValue: e.showMenu,
4661
- "onUpdate:modelValue": t[8] || (t[8] = (h) => e.showMenu = h),
4661
+ "onUpdate:modelValue": t[9] || (t[9] = (h) => e.showMenu = h),
4662
+ onClose: t[10] || (t[10] = (h) => !h && i.closeMenu()),
4662
4663
  "menu-class": `w-select__menu ${l.menuClass || ""}`,
4663
4664
  transition: "slide-fade-down",
4664
4665
  "append-to": (l.menuProps || {}).appendTo !== void 0 ? (l.menuProps || {}).appendTo : void 0,
@@ -4669,7 +4670,7 @@ function xi(e, t, l, a, r, i) {
4669
4670
  activator: g(({ on: h }) => [
4670
4671
  w("div", {
4671
4672
  class: f(["w-select__selection-wrap", i.inputWrapClasses]),
4672
- onClick: t[5] || (t[5] = (y) => !e.isDisabled && !e.isReadonly && (e.showMenu ? i.closeMenu : i.openMenu)()),
4673
+ onClick: t[5] || (t[5] = (y) => !e.isDisabled && !e.isReadonly && i.onInputFieldClick()),
4673
4674
  role: "button",
4674
4675
  "aria-haspopup": "listbox",
4675
4676
  "aria-expanded": e.showMenu ? "true" : "false",
@@ -4711,7 +4712,7 @@ function xi(e, t, l, a, r, i) {
4711
4712
  type: "hidden",
4712
4713
  value: y.value === void 0 ? "" : y.value.toString(),
4713
4714
  name: e.inputName + (l.multiple ? "[]" : "")
4714
- }, null, 8, Ti))), 128)),
4715
+ }, null, 8, Ri))), 128)),
4715
4716
  l.labelPosition === "inside" && i.showLabelInside ? (s(), u(k, { key: 2 }, [
4716
4717
  e.$slots.default || l.label ? (s(), u("label", {
4717
4718
  key: 0,
@@ -4721,7 +4722,7 @@ function xi(e, t, l, a, r, i) {
4721
4722
  p(e.$slots, "default", {}, () => [
4722
4723
  S(_(l.label), 1)
4723
4724
  ])
4724
- ], 10, Ri)) : c("", !0)
4725
+ ], 10, Ti)) : c("", !0)
4725
4726
  ], 64)) : c("", !0),
4726
4727
  l.innerIconRight ? (s(), m(o, {
4727
4728
  key: 3,
@@ -4743,8 +4744,8 @@ function xi(e, t, l, a, r, i) {
4743
4744
  "onUpdate:modelValue": i.onInput,
4744
4745
  onItemClick: t[6] || (t[6] = (h) => e.$emit("item-click", h)),
4745
4746
  onItemSelect: i.onListItemSelect,
4746
- "onKeydown:enter": t[7] || (t[7] = (h) => l.noUnselect && !l.multiple && i.closeMenu()),
4747
- "onKeydown:escape": i.closeMenu,
4747
+ "onKeydown:enter": t[7] || (t[7] = (h) => l.noUnselect && !l.multiple && i.closeMenu("la3")),
4748
+ "onKeydown:escape": t[8] || (t[8] = (h) => e.showMenu && (this.showMenu = !1)),
4748
4749
  items: i.selectItems,
4749
4750
  multiple: l.multiple,
4750
4751
  "arrows-navigation": "",
@@ -4776,7 +4777,7 @@ function xi(e, t, l, a, r, i) {
4776
4777
  ])
4777
4778
  ])
4778
4779
  }))
4779
- ]), 1032, ["model-value", "onUpdate:modelValue", "onItemSelect", "onKeydown:escape", "items", "multiple", "add-ids", "no-unselect", "selection-color", "item-color-key"])
4780
+ ]), 1032, ["model-value", "onUpdate:modelValue", "onItemSelect", "items", "multiple", "add-ids", "no-unselect", "selection-color", "item-color-key"])
4780
4781
  ]),
4781
4782
  _: 3
4782
4783
  }, 16, ["modelValue", "menu-class", "append-to"]),
@@ -4893,14 +4894,15 @@ const Oi = {
4893
4894
  },
4894
4895
  methods: {
4895
4896
  onFocus(e) {
4896
- return this.isFocused = !0, this.$emit("focus", e), !1;
4897
+ if (!this.isFocused)
4898
+ return this.isFocused = !0, this.$emit("focus", e), !1;
4897
4899
  },
4898
4900
  onBlur(e) {
4899
- this.isFocused = !1, this.$emit("blur", e);
4901
+ this.showMenu || (this.isFocused = !1, this.$emit("blur", e));
4900
4902
  },
4901
4903
  onKeydown(e) {
4902
- if (e.preventDefault(), [13, 27, 38, 40].includes(e.keyCode) && e.preventDefault(), e.keyCode === 27)
4903
- this.closeMenu();
4904
+ if (!e.metaKey && !e.ctrlKey && e.keyCode !== 9 && e.preventDefault(), e.keyCode === 27 && this.showMenu)
4905
+ this.closeMenu("la5");
4904
4906
  else if (e.keyCode === 13)
4905
4907
  this.openMenu();
4906
4908
  else if ([38, 40].includes(e.keyCode))
@@ -4923,8 +4925,11 @@ const Oi = {
4923
4925
  const t = this.multiple ? e : e[0];
4924
4926
  this.$emit("update:modelValue", t), this.$emit("input", t);
4925
4927
  },
4928
+ onInputFieldClick() {
4929
+ this.showMenu ? this.showMenu = !1 : this.openMenu();
4930
+ },
4926
4931
  onListItemSelect(e) {
4927
- this.$emit("item-select", e), this.multiple || this.closeMenu();
4932
+ this.$emit("item-select", e), this.multiple || (this.showMenu = !1);
4928
4933
  },
4929
4934
  onReset() {
4930
4935
  this.inputValue = [];
@@ -4947,7 +4952,8 @@ const Oi = {
4947
4952
  }, 100);
4948
4953
  },
4949
4954
  closeMenu() {
4950
- (this.menuProps || {}).hideOnMenuClick !== !1 && (this.showMenu = !1, setTimeout(() => this.$refs["selection-input"].focus(), 50));
4955
+ var e;
4956
+ ((e = this.menuProps) == null ? void 0 : e.hideOnMenuClick) !== !1 && (this.showMenu = !1, setTimeout(() => this.$refs["selection-input"].focus(), 50));
4951
4957
  }
4952
4958
  },
4953
4959
  created() {
@@ -5004,11 +5010,11 @@ function Ui(e, t, l, a, r, i) {
5004
5010
  }, [
5005
5011
  w("div", {
5006
5012
  class: f(["w-slider__range", i.rangeClasses]),
5007
- style: R(i.rangeStyles)
5013
+ style: T(i.rangeStyles)
5008
5014
  }, null, 6),
5009
5015
  w("div", {
5010
5016
  class: "w-slider__thumb",
5011
- style: R(i.thumbStyles)
5017
+ style: T(i.thumbStyles)
5012
5018
  }, [
5013
5019
  w("button", {
5014
5020
  class: f(["w-slider__thumb-button", [l.color]]),
@@ -5055,7 +5061,7 @@ function Ui(e, t, l, a, r, i) {
5055
5061
  class: "w-slider__step-label",
5056
5062
  key: o,
5057
5063
  onClick: (n) => i.onStepLabelClick(o * (100 / i.numberOfSteps)),
5058
- style: R(`left: ${o * (100 / i.numberOfSteps)}%`)
5064
+ style: T(`left: ${o * (100 / i.numberOfSteps)}%`)
5059
5065
  }, _(i.percentToScaled(o * (100 / i.numberOfSteps))), 13, Di))), 128)),
5060
5066
  ~~i.numberOfSteps !== i.numberOfSteps ? (s(), u("div", {
5061
5067
  key: 0,
@@ -5220,7 +5226,7 @@ function Gi(e, t, l, a, r, i) {
5220
5226
  return l.modelValue || l.modelValue === void 0 ? (s(), u("div", {
5221
5227
  key: 0,
5222
5228
  class: f(["w-spinner", i.classes]),
5223
- style: R(i.styles)
5229
+ style: T(i.styles)
5224
5230
  }, [
5225
5231
  i.isThreeDots ? (s(), u("span", Yi)) : c("", !0)
5226
5232
  ], 6)) : c("", !0);
@@ -5484,7 +5490,7 @@ function vs(e, t, l, a, r, i) {
5484
5490
  !l.noSlider && !l.card ? (s(), u("div", {
5485
5491
  key: 1,
5486
5492
  class: f(["w-tabs__slider", l.sliderColor]),
5487
- style: R(i.sliderStyles)
5493
+ style: T(i.sliderStyles)
5488
5494
  }, null, 6)) : c("", !0)
5489
5495
  ], 2),
5490
5496
  e.tabs.length ? (s(), u("div", bs, [
@@ -5744,7 +5750,7 @@ const ks = {
5744
5750
  }, _s = /* @__PURE__ */ v(ks, [["render", vs]]), Cs = { ref: "colgroup" }, Ss = ["width"], Bs = { key: 0 }, $s = ["onClick"], Vs = ["innerHTML"], Is = {
5745
5751
  key: 0,
5746
5752
  class: "w-table__progress-bar"
5747
- }, Ts = ["colspan"], Rs = {
5753
+ }, Rs = ["colspan"], Ts = {
5748
5754
  key: 0,
5749
5755
  class: "w-table__progress-bar"
5750
5756
  }, Ls = ["colspan"], xs = { class: "w-table__loading-text" }, Os = {
@@ -5778,17 +5784,17 @@ function Js(e, t, l, a, r, i) {
5778
5784
  onMouseout: t[7] || (t[7] = (...b) => i.onMouseOut && i.onMouseOut(...b))
5779
5785
  }, [
5780
5786
  w("colgroup", Cs, [
5781
- (s(!0), u(k, null, L(l.headers, (b, T) => (s(), u("col", {
5782
- class: f(["w-table__col", i.colClasses[T]]),
5783
- key: T,
5787
+ (s(!0), u(k, null, L(l.headers, (b, R) => (s(), u("col", {
5788
+ class: f(["w-table__col", i.colClasses[R]]),
5789
+ key: R,
5784
5790
  width: b.width || null
5785
5791
  }, null, 10, Ss))), 128))
5786
5792
  ], 512),
5787
5793
  l.noHeaders ? c("", !0) : (s(), u("thead", Bs, [
5788
5794
  w("tr", null, [
5789
- (s(!0), u(k, null, L(l.headers, (b, T) => (s(), u("th", {
5795
+ (s(!0), u(k, null, L(l.headers, (b, R) => (s(), u("th", {
5790
5796
  class: f(["w-table__header", i.headerClasses(b)]),
5791
- key: T,
5797
+ key: R,
5792
5798
  onClick: (x) => !e.colResizing.dragging && b.sortable !== !1 && i.sortTable(b)
5793
5799
  }, [
5794
5800
  b.sortable !== !1 && b.align === "right" ? (s(), m(o, {
@@ -5805,7 +5811,7 @@ function Js(e, t, l, a, r, i) {
5805
5811
  key: 0,
5806
5812
  header: b,
5807
5813
  label: b.label,
5808
- index: T + 1
5814
+ index: R + 1
5809
5815
  }, () => [
5810
5816
  S(_(b.label || ""), 1)
5811
5817
  ]) : (s(), u("span", {
@@ -5822,9 +5828,9 @@ function Js(e, t, l, a, r, i) {
5822
5828
  ]),
5823
5829
  _: 2
5824
5830
  }, 1032, ["class"])) : c("", !0),
5825
- T < l.headers.length - 1 && l.resizableColumns ? (s(), u("span", {
5831
+ R < l.headers.length - 1 && l.resizableColumns ? (s(), u("span", {
5826
5832
  key: 3,
5827
- class: f(["w-table__col-resizer", { "w-table__col-resizer--hover": e.colResizing.hover === T, "w-table__col-resizer--active": e.colResizing.columnIndex === T }]),
5833
+ class: f(["w-table__col-resizer", { "w-table__col-resizer--hover": e.colResizing.hover === R, "w-table__col-resizer--active": e.colResizing.columnIndex === R }]),
5828
5834
  onClick: t[0] || (t[0] = M(() => {
5829
5835
  }, ["stop"]))
5830
5836
  }, null, 2)) : c("", !0)
@@ -5837,14 +5843,14 @@ function Js(e, t, l, a, r, i) {
5837
5843
  colspan: l.headers.length
5838
5844
  }, [
5839
5845
  I(n, { tile: "" })
5840
- ], 8, Ts)
5846
+ ], 8, Rs)
5841
5847
  ])) : c("", !0)
5842
5848
  ]),
5843
5849
  _: 1
5844
5850
  })
5845
5851
  ])),
5846
5852
  w("tbody", null, [
5847
- l.loading === !0 ? (s(), u("tr", Rs, [
5853
+ l.loading === !0 ? (s(), u("tr", Ts, [
5848
5854
  w("td", {
5849
5855
  colspan: l.headers.length
5850
5856
  }, [
@@ -5865,17 +5871,17 @@ function Js(e, t, l, a, r, i) {
5865
5871
  ])
5866
5872
  ], 8, Ps)
5867
5873
  ])),
5868
- i.tableItems.length && l.loading !== !0 ? (s(!0), u(k, { key: 2 }, L(i.paginatedItems, (b, T) => (s(), u(k, { key: T }, [
5874
+ i.tableItems.length && l.loading !== !0 ? (s(!0), u(k, { key: 2 }, L(i.paginatedItems, (b, R) => (s(), u(k, { key: R }, [
5869
5875
  e.$slots.item ? p(e.$slots, "item", {
5870
5876
  key: 0,
5871
5877
  item: b,
5872
- index: T + 1,
5873
- select: () => i.doSelectRow(b, T),
5878
+ index: R + 1,
5879
+ select: () => i.doSelectRow(b, R),
5874
5880
  classes: { "w-table__row": !0, "w-table__row--selected": i.selectedRowsByUid[b._uid] !== void 0, "w-table__row--expanded": i.expandedRowsByUid[b._uid] !== void 0 }
5875
5881
  }) : (s(), u("tr", {
5876
5882
  key: 1,
5877
5883
  class: f(["w-table__row", { "w-table__row--selected": i.selectedRowsByUid[b._uid] !== void 0, "w-table__row--expanded": i.expandedRowsByUid[b._uid] !== void 0 }]),
5878
- onClick: (x) => i.doSelectRow(b, T)
5884
+ onClick: (x) => i.doSelectRow(b, R)
5879
5885
  }, [
5880
5886
  (s(!0), u(k, null, L(l.headers, (x, P) => (s(), u(k, null, [
5881
5887
  e.$slots[`item-cell.${x.key}`] || e.$slots[`item-cell.${P + 1}`] || e.$slots["item-cell"] ? (s(), u("td", {
@@ -5888,19 +5894,19 @@ function Js(e, t, l, a, r, i) {
5888
5894
  header: x,
5889
5895
  item: b,
5890
5896
  label: b[x.key] || "",
5891
- index: T + 1
5897
+ index: R + 1
5892
5898
  }) : e.$slots[`item-cell.${P + 1}`] ? p(e.$slots, `item-cell.${P + 1}`, {
5893
5899
  key: 1,
5894
5900
  header: x,
5895
5901
  item: b,
5896
5902
  label: b[x.key] || "",
5897
- index: T + 1
5903
+ index: R + 1
5898
5904
  }) : e.$slots["item-cell"] ? p(e.$slots, "item-cell", {
5899
5905
  key: 2,
5900
5906
  header: x,
5901
5907
  item: b,
5902
5908
  label: b[x.key] || "",
5903
- index: T + 1
5909
+ index: R + 1
5904
5910
  }) : c("", !0),
5905
5911
  P < l.headers.length - 1 && l.resizableColumns ? (s(), u("span", {
5906
5912
  key: 3,
@@ -5931,12 +5937,12 @@ function Js(e, t, l, a, r, i) {
5931
5937
  i.expandedRowsByUid[b._uid] ? (s(), u("div", Ks, [
5932
5938
  p(e.$slots, "row-expansion", {
5933
5939
  item: b,
5934
- index: T + 1
5940
+ index: R + 1
5935
5941
  })
5936
5942
  ])) : c("", !0),
5937
- T < l.headers.length - 1 && l.resizableColumns ? (s(), u("span", {
5943
+ R < l.headers.length - 1 && l.resizableColumns ? (s(), u("span", {
5938
5944
  key: 1,
5939
- class: f(["w-table__col-resizer", { "w-table__col-resizer--hover": e.colResizing.hover === T, "w-table__col-resizer--active": e.colResizing.columnIndex === e.j }])
5945
+ class: f(["w-table__col-resizer", { "w-table__col-resizer--hover": e.colResizing.hover === R, "w-table__col-resizer--active": e.colResizing.columnIndex === e.j }])
5940
5946
  }, null, 2)) : c("", !0)
5941
5947
  ]),
5942
5948
  _: 2
@@ -5990,7 +5996,7 @@ function Js(e, t, l, a, r, i) {
5990
5996
  (s(!0), u(k, null, L(e.paginationConfig.pagesCount, (b) => (s(), m(B, {
5991
5997
  class: f(["w-pagination__page", { "w-pagination__page--active": b === e.paginationConfig.page }]),
5992
5998
  key: b,
5993
- onClick: (T) => b !== e.paginationConfig.page && i.goToPage(b),
5999
+ onClick: (R) => b !== e.paginationConfig.page && i.goToPage(b),
5994
6000
  round: "",
5995
6001
  lg: ""
5996
6002
  }, {
@@ -6649,7 +6655,7 @@ const fa = {
6649
6655
  function ma(e, t, l, a, r, i) {
6650
6656
  return s(), u("div", {
6651
6657
  class: f(["w-toolbar", i.classes]),
6652
- style: R(i.styles)
6658
+ style: T(i.styles)
6653
6659
  }, [
6654
6660
  p(e.$slots, "default")
6655
6661
  ], 6);
@@ -6716,7 +6722,7 @@ function wa(e, t, l, a, r, i) {
6716
6722
  class: f(["w-tooltip", i.classes]),
6717
6723
  ref: "detachable",
6718
6724
  key: e._.uid,
6719
- style: R(i.styles)
6725
+ style: T(i.styles)
6720
6726
  }, [
6721
6727
  p(e.$slots, "default")
6722
6728
  ], 6)) : c("", !0)
@@ -6947,13 +6953,13 @@ function Ia(e, t, l, a, r, i) {
6947
6953
  _: 3
6948
6954
  }, 16);
6949
6955
  }
6950
- const Ta = {
6956
+ const Ra = {
6951
6957
  name: "w-transition-fade",
6952
6958
  props: {
6953
6959
  appear: { type: Boolean },
6954
6960
  duration: { type: [Number, String] }
6955
6961
  }
6956
- }, Ra = /* @__PURE__ */ v(Ta, [["render", Ia]]);
6962
+ }, Ta = /* @__PURE__ */ v(Ra, [["render", Ia]]);
6957
6963
  function La(e, t, l, a, r, i) {
6958
6964
  return s(), m(O, C({ name: "scale" }, e.$props), {
6959
6965
  default: g(() => [
@@ -7112,8 +7118,8 @@ function Xa(e, t, l, a, r, i) {
7112
7118
  }, 1040, ["onClick", "onKeydown", "tabindex"])),
7113
7119
  (s(), m(V(l.noTransition ? "div" : "w-transition-expand"), {
7114
7120
  y: !l.noTransition || null,
7115
- onAfterEnter: (B) => e.$emit("open", { item: h.originalItem, open: h.open, depth: l.depth, path: i.getTreeItemPathForOutput(h) }),
7116
- onAfterLeave: (B) => e.$emit("close", { item: h.originalItem, open: h.open, depth: l.depth, path: i.getTreeItemPathForOutput(h) })
7121
+ onAfterEnter: (B) => e.$emit("open", i.emitPayload(h)),
7122
+ onAfterLeave: (B) => e.$emit("close", i.emitPayload(h))
7117
7123
  }, {
7118
7124
  default: g(() => [
7119
7125
  h.children && h.open ? (s(), m(d, C({ key: 0 }, e.$props, {
@@ -7128,11 +7134,11 @@ function Xa(e, t, l, a, r, i) {
7128
7134
  onSelect: t[5] || (t[5] = (B) => e.$emit("select", B)),
7129
7135
  "onUpdate:modelValue": t[6] || (t[6] = (B) => e.$emit("update:model-value", B))
7130
7136
  }), {
7131
- item: g(({ item: B, depth: b, path: T, open: x }) => [
7137
+ item: g(({ item: B, depth: b, path: R, open: x }) => [
7132
7138
  p(e.$slots, "item", {
7133
7139
  item: B,
7134
7140
  depth: b,
7135
- path: T,
7141
+ path: R,
7136
7142
  open: x
7137
7143
  })
7138
7144
  ]),
@@ -7183,6 +7189,7 @@ const Ya = {
7183
7189
  return {
7184
7190
  [`w-tree--depth${this.depth}`]: !0,
7185
7191
  "w-tree--expand-icon": this.expandIcon && !this.depth,
7192
+ "w-tree--selectable": this.selectable,
7186
7193
  "w-tree--disabled": this.disabled && !this.depth,
7187
7194
  "w-tree--no-expand-button": !this.expandIcon
7188
7195
  };
@@ -7193,7 +7200,7 @@ const Ya = {
7193
7200
  if (this.currentDepthItems = [], !Array.isArray(e) && typeof e != "object")
7194
7201
  return G(`[w-tree] the tree items must be of type array or object, ${typeof e} received.`);
7195
7202
  Array.isArray(e) || (e = [e]), e.forEach((l, a) => {
7196
- var i;
7203
+ var i, o;
7197
7204
  const r = {
7198
7205
  originalItem: l,
7199
7206
  _uid: this.depth.toString() + (a + 1),
@@ -7202,8 +7209,9 @@ const Ya = {
7202
7209
  branch: l.branch,
7203
7210
  route: l[this.itemRouteKey],
7204
7211
  disabled: l[this.itemDisabledKey],
7212
+ selected: ((i = t[a]) == null ? void 0 : i.selected) || !1,
7205
7213
  depth: this.depth,
7206
- open: !!(((i = t[a]) == null ? void 0 : i.open) || this.expandAll || l[this.itemOpenKey]),
7214
+ open: !!(((o = t[a]) == null ? void 0 : o.open) || this.expandAll || l[this.itemOpenKey]),
7207
7215
  parent: this.parent || null,
7208
7216
  path: []
7209
7217
  };
@@ -7228,37 +7236,32 @@ const Ya = {
7228
7236
  },
7229
7237
  expandDepth(e, t) {
7230
7238
  typeof t == "boolean" ? e.open = t : e.open = !e.open;
7231
- const l = {
7232
- item: e.originalItem,
7233
- open: e.open,
7234
- depth: this.depth,
7235
- path: this.getTreeItemPathForOutput(e)
7236
- };
7239
+ const l = this.emitPayload(e);
7237
7240
  return this.$emit(e.open ? "before-open" : "before-close", l), !this.unexpandableEmpty && !e.children && this.$emit(e.open ? "open" : "close", l), !0;
7238
7241
  },
7239
7242
  onLabelClick(e, t) {
7240
- e[this.itemRouteKey] && this.$router && !this.hasExternalLink(e) && t.preventDefault(), this.$emit("click", {
7241
- item: e.originalItem,
7242
- depth: this.depth,
7243
- path: this.getTreeItemPathForOutput(e),
7244
- e: t
7245
- }), (e.children || e.branch && !this.unexpandableEmpty) && this.expandDepth(e), this.selectable && this.emitItemSelection(e, t);
7246
- },
7247
- emitItemSelection(e, t) {
7248
- const l = {
7249
- item: e.originalItem,
7250
- depth: this.depth,
7251
- path: this.getTreeItemPathForOutput(e),
7252
- e: t
7253
- };
7254
- (e.children || e.branch && !this.unexpandableEmpty) && (l.open = e.open), this.$emit("update:model-value", l), this.$emit("select", l);
7243
+ e[this.itemRouteKey] && this.$router && !this.hasExternalLink(e) && t.preventDefault(), (e.children || e.branch && !this.unexpandableEmpty) && this.expandDepth(e), this.selectable && (e.selected = !e.selected);
7244
+ const a = this.emitPayload(e, t);
7245
+ this.$emit("click", a), this.emitItemSelection(e, t);
7255
7246
  },
7256
7247
  onLabelKeydown(e, t) {
7257
7248
  if (!(t.metaKey || t.ctrlKey || t.altKey || t.shiftKey) && [13, 32, 37, 38, 39, 40].includes(t.which) && ((e.children || e.branch) && ([13, 32].includes(t.which) ? this.expandDepth(e) && t.preventDefault() : t.which === 37 ? this.expandDepth(e, !1) && t.preventDefault() : t.which === 39 && this.expandDepth(e, !0) && t.preventDefault()), [38, 40].includes(t.which))) {
7258
7249
  const a = this.$el.closest(".w-tree--depth0").querySelectorAll('.w-tree__item-label[tabindex="0"]'), r = t.target.closest(".w-tree__item-label"), i = t.which === 38 ? -1 : 1;
7259
7250
  [...a].some((o, n) => o.isSameNode(r) ? (a[n + i] && a[n + i].focus(), !0) : !1);
7260
7251
  }
7261
- this.selectable && this.emitItemSelection(e, t);
7252
+ t.which === 13 && (this.selectable && (e.selected = !e.selected), this.emitItemSelection(e, t));
7253
+ },
7254
+ emitItemSelection(e, t) {
7255
+ const l = this.emitPayload(e, t);
7256
+ this.$emit("update:model-value", l), this.selectable && this.$emit("select", l);
7257
+ },
7258
+ emitPayload(e, t) {
7259
+ const l = {
7260
+ item: e.originalItem,
7261
+ depth: this.depth,
7262
+ path: this.getTreeItemPathForOutput(e)
7263
+ };
7264
+ return t && (l.e = t), (e.children || e.branch && !this.unexpandableEmpty) && (l.open = e.open), this.selectable && (l.selected = e.selected), l;
7262
7265
  },
7263
7266
  getPreviousSibling(e, t) {
7264
7267
  for (; t && (e = e.previousElementSibling); )
@@ -7285,6 +7288,7 @@ const Ya = {
7285
7288
  return {
7286
7289
  [e.children || e.branch ? "w-tree__item--branch" : "w-tree__item--leaf"]: !0,
7287
7290
  "w-tree__item--disabled": e[this.itemDisabledKey],
7291
+ "w-tree__item--selected": e.selected,
7288
7292
  "w-tree__item--empty": e.branch && !e.children,
7289
7293
  "w-tree__item--unexpandable": e.branch && !e.children && this.unexpandableEmpty
7290
7294
  };
@@ -7347,7 +7351,7 @@ const Ya = {
7347
7351
  WTooltip: ka,
7348
7352
  WTransitionBounce: Sa,
7349
7353
  WTransitionExpand: Va,
7350
- WTransitionFade: Ra,
7354
+ WTransitionFade: Ta,
7351
7355
  WTransitionScale: Oa,
7352
7356
  WTransitionScaleFade: Ma,
7353
7357
  WTransitionSlide: Aa,