wave-ui 3.5.2 → 3.6.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.
- package/dist/wave-ui.cjs.js +1 -1
- package/dist/wave-ui.css +1 -1
- package/dist/wave-ui.es.js +184 -170
- package/dist/wave-ui.umd.js +1 -1
- package/package.json +1 -1
- package/src/wave-ui/components/w-button/button.vue +4 -1
- package/src/wave-ui/components/w-input.vue +1 -0
- package/src/wave-ui/components/w-list.vue +5 -5
- package/src/wave-ui/components/w-menu.vue +2 -2
- package/src/wave-ui/components/w-select.vue +1 -0
- package/src/wave-ui/components/w-textarea.vue +1 -0
- package/src/wave-ui/components/w-tooltip.vue +46 -12
- package/src/wave-ui/mixins/detachable.js +6 -3
package/dist/wave-ui.es.js
CHANGED
|
@@ -9,7 +9,7 @@ var Y = (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, o) => (ne(e, t, "write to private field"), o ? o.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
|
|
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 Be, inject as Se, withKeys as E, withModifiers as M, renderSlot as p, toHandlers as W, createTextVNode as B, 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: {
|
|
@@ -447,10 +447,10 @@ const Te = (e) => {
|
|
|
447
447
|
const y = { ...d, info: o, warning: n, success: i, error: a };
|
|
448
448
|
for (const b in y)
|
|
449
449
|
l[b] = y[b];
|
|
450
|
-
let
|
|
450
|
+
let S = "";
|
|
451
451
|
return Object.entries(l).forEach(([b, R]) => {
|
|
452
|
-
|
|
453
|
-
}), `:root{${
|
|
452
|
+
S += `--w-${b}-color: ${R};`;
|
|
453
|
+
}), `:root{${S}}${t}`;
|
|
454
454
|
}, Le = (e, t) => {
|
|
455
455
|
let l = "";
|
|
456
456
|
const { cssScope: o } = q;
|
|
@@ -521,7 +521,7 @@ const Te = (e) => {
|
|
|
521
521
|
xl: o === "xl",
|
|
522
522
|
width: t
|
|
523
523
|
}), e.breakpoint.width = window.innerWidth;
|
|
524
|
-
},
|
|
524
|
+
}, Oe = (e) => {
|
|
525
525
|
const { config: t } = e;
|
|
526
526
|
if (se = { keys: Object.keys(t.breakpoints), values: Object.values(t.breakpoints) }, !document.getElementById("wave-ui-styles")) {
|
|
527
527
|
const l = document.createElement("style");
|
|
@@ -530,7 +530,7 @@ const Te = (e) => {
|
|
|
530
530
|
o ? o.before(l) : document.head.appendChild(l);
|
|
531
531
|
}
|
|
532
532
|
ce(e), window.addEventListener("resize", () => ce(e));
|
|
533
|
-
},
|
|
533
|
+
}, Pe = (e) => {
|
|
534
534
|
if (!document.getElementById("wave-ui-colors")) {
|
|
535
535
|
const t = document.createElement("style");
|
|
536
536
|
t.id = "wave-ui-colors", t.innerHTML = Te(e);
|
|
@@ -646,7 +646,7 @@ H = new WeakMap(), ee(G, H, void 0);
|
|
|
646
646
|
const Ne = (e, t, l) => {
|
|
647
647
|
const o = document.createElement("div");
|
|
648
648
|
e.appendChild(o);
|
|
649
|
-
const n = Ce(
|
|
649
|
+
const n = Ce(Be({
|
|
650
650
|
...Ae,
|
|
651
651
|
inject: ["$waveui"]
|
|
652
652
|
})).provide("$waveui", l);
|
|
@@ -705,7 +705,7 @@ const j = class {
|
|
|
705
705
|
var n, i;
|
|
706
706
|
this.theme = t, document.documentElement.setAttribute("data-theme", t), (i = (n = document.head.querySelector("#wave-ui-colors")) == null ? void 0 : n.remove) == null || i.call(n);
|
|
707
707
|
const o = this.config.colors[this.theme];
|
|
708
|
-
|
|
708
|
+
Pe(o), this.colors = de(o, ue);
|
|
709
709
|
}
|
|
710
710
|
});
|
|
711
711
|
if (Y(j, X)) {
|
|
@@ -742,8 +742,8 @@ const j = class {
|
|
|
742
742
|
beforeMount() {
|
|
743
743
|
if (!pe) {
|
|
744
744
|
pe = !0;
|
|
745
|
-
const i =
|
|
746
|
-
r.classList.add("w-app"), a.theme === "auto" ? Ke(i) : i.switchTheme(a.theme, !0),
|
|
745
|
+
const i = Se("$waveui"), { config: a } = i, r = document.querySelector(a.on) || document.body;
|
|
746
|
+
r.classList.add("w-app"), a.theme === "auto" ? Ke(i) : i.switchTheme(a.theme, !0), Oe(i), Ne(r, o, i), t._context.mixins.find((d) => d.mounted && delete d.mounted);
|
|
747
747
|
}
|
|
748
748
|
}
|
|
749
749
|
}), new j(t, l), te(j, X, !0);
|
|
@@ -938,7 +938,7 @@ function Je(e, t, l, o, n, i) {
|
|
|
938
938
|
class: "w-alert__icon mr2"
|
|
939
939
|
}, {
|
|
940
940
|
default: g(() => [
|
|
941
|
-
|
|
941
|
+
B(_(i.type ? i.typeIcon : l.icon), 1)
|
|
942
942
|
]),
|
|
943
943
|
_: 1
|
|
944
944
|
})) : c("", !0),
|
|
@@ -1063,7 +1063,7 @@ const lt = {
|
|
|
1063
1063
|
function st(e, t, l, o, n, i) {
|
|
1064
1064
|
return s(), u("div", C({ class: "w-badge-wrap" }, W(e.$attrs, !0)), [
|
|
1065
1065
|
p(e.$slots, "default"),
|
|
1066
|
-
I(
|
|
1066
|
+
I(O, {
|
|
1067
1067
|
name: `${l.transition}`
|
|
1068
1068
|
}, {
|
|
1069
1069
|
default: g(() => [
|
|
@@ -1077,7 +1077,7 @@ function st(e, t, l, o, n, i) {
|
|
|
1077
1077
|
role: "status"
|
|
1078
1078
|
}, [
|
|
1079
1079
|
l.dot ? c("", !0) : p(e.$slots, "badge", { key: 0 }, () => [
|
|
1080
|
-
|
|
1080
|
+
B(_(l.modelValue === !0 ? "" : l.modelValue || ""), 1)
|
|
1081
1081
|
])
|
|
1082
1082
|
], 6)) : c("", !0)
|
|
1083
1083
|
]),
|
|
@@ -1165,7 +1165,7 @@ function rt(e, t, l, o, n, i) {
|
|
|
1165
1165
|
key: `${d}b`
|
|
1166
1166
|
}, {
|
|
1167
1167
|
default: g(() => [
|
|
1168
|
-
|
|
1168
|
+
B(_(l.icon), 1)
|
|
1169
1169
|
]),
|
|
1170
1170
|
_: 2
|
|
1171
1171
|
}, 1032, ["class"])) : c("", !0),
|
|
@@ -1258,11 +1258,11 @@ function pt(e, t, l, o, n, i) {
|
|
|
1258
1258
|
default: g(() => [
|
|
1259
1259
|
l.icon ? (s(), m(a, ie(C({ key: 0 }, l.iconProps || {})), {
|
|
1260
1260
|
default: g(() => [
|
|
1261
|
-
|
|
1261
|
+
B(_(l.icon), 1)
|
|
1262
1262
|
]),
|
|
1263
1263
|
_: 1
|
|
1264
1264
|
}, 16)) : p(e.$slots, "default", { key: 1 }),
|
|
1265
|
-
I(
|
|
1265
|
+
I(O, { name: "scale-fade" }, {
|
|
1266
1266
|
default: g(() => [
|
|
1267
1267
|
l.loading ? (s(), u("div", ht, [
|
|
1268
1268
|
p(e.$slots, "loading", {}, () => [
|
|
@@ -1567,7 +1567,7 @@ const _t = {
|
|
|
1567
1567
|
this.$refs.formEl.validate(this);
|
|
1568
1568
|
}
|
|
1569
1569
|
}
|
|
1570
|
-
},
|
|
1570
|
+
}, Bt = ["id", "name", "checked", "disabled", "required", "tabindex", "aria-checked"], St = ["for"], $t = ["for", "innerHTML"], Vt = /* @__PURE__ */ w("svg", { viewBox: "-0.5 0 12 10" }, [
|
|
1571
1571
|
/* @__PURE__ */ w("polyline", { points: "1 5 4 8 10 2" })
|
|
1572
1572
|
], -1), It = [
|
|
1573
1573
|
Vt
|
|
@@ -1597,7 +1597,7 @@ function Lt(e, t, l, o, n, i) {
|
|
|
1597
1597
|
onKeypress: t[3] || (t[3] = E((...a) => i.onInput && i.onInput(...a), ["enter"])),
|
|
1598
1598
|
"aria-checked": n.isChecked || "false",
|
|
1599
1599
|
role: "checkbox"
|
|
1600
|
-
}, null, 40,
|
|
1600
|
+
}, null, 40, Bt),
|
|
1601
1601
|
i.hasLabel && l.labelOnLeft ? (s(), u(k, { key: 0 }, [
|
|
1602
1602
|
e.$slots.default ? (s(), u("label", {
|
|
1603
1603
|
key: 0,
|
|
@@ -1605,9 +1605,9 @@ function Lt(e, t, l, o, n, i) {
|
|
|
1605
1605
|
for: `w-checkbox--${e._.uid}`
|
|
1606
1606
|
}, [
|
|
1607
1607
|
p(e.$slots, "default", {}, () => [
|
|
1608
|
-
|
|
1608
|
+
B(_(l.label), 1)
|
|
1609
1609
|
])
|
|
1610
|
-
], 10,
|
|
1610
|
+
], 10, St)) : l.label ? (s(), u("label", {
|
|
1611
1611
|
key: 1,
|
|
1612
1612
|
class: f(["w-checkbox__label w-form-el-shakable pr2", e.labelClasses]),
|
|
1613
1613
|
for: `w-checkbox--${e._.uid}`,
|
|
@@ -1627,7 +1627,7 @@ function Lt(e, t, l, o, n, i) {
|
|
|
1627
1627
|
for: `w-checkbox--${e._.uid}`
|
|
1628
1628
|
}, [
|
|
1629
1629
|
p(e.$slots, "default", {}, () => [
|
|
1630
|
-
|
|
1630
|
+
B(_(l.label), 1)
|
|
1631
1631
|
])
|
|
1632
1632
|
], 10, Rt)) : l.label ? (s(), u("label", {
|
|
1633
1633
|
key: 1,
|
|
@@ -1700,7 +1700,7 @@ const xt = {
|
|
|
1700
1700
|
this.isChecked = e;
|
|
1701
1701
|
}
|
|
1702
1702
|
}
|
|
1703
|
-
},
|
|
1703
|
+
}, Ot = /* @__PURE__ */ v(xt, [["render", Lt]]), Pt = ["innerHTML"];
|
|
1704
1704
|
function zt(e, t, l, o, n, i) {
|
|
1705
1705
|
const a = $("w-checkbox");
|
|
1706
1706
|
return s(), m(V(e.formRegister ? "w-form-element" : "div"), C({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: i.checkboxItems.some((r) => r._isChecked), disabled: e.isDisabled }, {
|
|
@@ -1733,7 +1733,7 @@ function zt(e, t, l, o, n, i) {
|
|
|
1733
1733
|
}) : r.label ? (s(), u("div", {
|
|
1734
1734
|
key: 1,
|
|
1735
1735
|
innerHTML: r.label
|
|
1736
|
-
}, null, 8,
|
|
1736
|
+
}, null, 8, Pt)) : c("", !0)
|
|
1737
1737
|
]),
|
|
1738
1738
|
_: 2
|
|
1739
1739
|
}, 1040, ["model-value", "onUpdate:modelValue", "name", "disabled", "readonly", "class"]))), 128))
|
|
@@ -1817,7 +1817,7 @@ function Wt(e, t, l, o, n, i) {
|
|
|
1817
1817
|
default: g(() => [
|
|
1818
1818
|
w("div", null, [
|
|
1819
1819
|
p(e.$slots, "question", {}, () => [
|
|
1820
|
-
|
|
1820
|
+
B(_(l.question), 1)
|
|
1821
1821
|
])
|
|
1822
1822
|
]),
|
|
1823
1823
|
w("div", {
|
|
@@ -1833,7 +1833,7 @@ function Wt(e, t, l, o, n, i) {
|
|
|
1833
1833
|
}), {
|
|
1834
1834
|
default: g(() => [
|
|
1835
1835
|
p(e.$slots, "cancel", {}, () => [
|
|
1836
|
-
|
|
1836
|
+
B(_(i.cancelButton.label), 1)
|
|
1837
1837
|
])
|
|
1838
1838
|
]),
|
|
1839
1839
|
_: 3
|
|
@@ -1845,7 +1845,7 @@ function Wt(e, t, l, o, n, i) {
|
|
|
1845
1845
|
}), {
|
|
1846
1846
|
default: g(() => [
|
|
1847
1847
|
p(e.$slots, "confirm", {}, () => [
|
|
1848
|
-
|
|
1848
|
+
B(_(i.confirmButton.label), 1)
|
|
1849
1849
|
])
|
|
1850
1850
|
]),
|
|
1851
1851
|
_: 3
|
|
@@ -1994,7 +1994,7 @@ function Ft(e, t, l, o, n, i) {
|
|
|
1994
1994
|
opacity: l.overlayOpacity
|
|
1995
1995
|
}, {
|
|
1996
1996
|
default: g(() => [
|
|
1997
|
-
I(
|
|
1997
|
+
I(O, {
|
|
1998
1998
|
name: l.transition,
|
|
1999
1999
|
appear: "",
|
|
2000
2000
|
onAfterLeave: i.onBeforeClose
|
|
@@ -2162,7 +2162,7 @@ function Qt(e, t, l, o, n, i) {
|
|
|
2162
2162
|
}, null, 8, ["modelValue", "onClick", "persistent", "bg-color", "opacity"])),
|
|
2163
2163
|
p(e.$slots, "pushable")
|
|
2164
2164
|
]),
|
|
2165
|
-
I(
|
|
2165
|
+
I(O, {
|
|
2166
2166
|
name: "fade",
|
|
2167
2167
|
onBeforeLeave: i.onBeforeClose,
|
|
2168
2168
|
onAfterLeave: i.onClose
|
|
@@ -2193,7 +2193,7 @@ function Qt(e, t, l, o, n, i) {
|
|
|
2193
2193
|
"bg-color": l.overlayColor,
|
|
2194
2194
|
opacity: l.overlayOpacity
|
|
2195
2195
|
}, null, 8, ["modelValue", "onClick", "persistent", "bg-color", "opacity"])),
|
|
2196
|
-
I(
|
|
2196
|
+
I(O, {
|
|
2197
2197
|
name: i.transitionName,
|
|
2198
2198
|
appear: "",
|
|
2199
2199
|
onBeforeLeave: i.onBeforeClose,
|
|
@@ -2506,7 +2506,7 @@ function dl(e, t, l, o, n, i) {
|
|
|
2506
2506
|
p(e.$slots, "error-message", {
|
|
2507
2507
|
message: e.Validation.message
|
|
2508
2508
|
}, () => [
|
|
2509
|
-
|
|
2509
|
+
B(_(e.Validation.message), 1)
|
|
2510
2510
|
])
|
|
2511
2511
|
], 2)) : c("", !0)
|
|
2512
2512
|
]),
|
|
@@ -2645,7 +2645,7 @@ function gl(e, t, l, o, n, i) {
|
|
|
2645
2645
|
}), {
|
|
2646
2646
|
default: g(() => [
|
|
2647
2647
|
i.hasLigature ? (s(), u(k, { key: 0 }, [
|
|
2648
|
-
|
|
2648
|
+
B(_(e.icon), 1)
|
|
2649
2649
|
], 64)) : c("", !0)
|
|
2650
2650
|
]),
|
|
2651
2651
|
_: 1
|
|
@@ -2731,7 +2731,7 @@ function wl(e, t, l, o, n, i) {
|
|
|
2731
2731
|
style: T(i.wrapperStyles)
|
|
2732
2732
|
}, {
|
|
2733
2733
|
default: g(() => [
|
|
2734
|
-
I(
|
|
2734
|
+
I(O, {
|
|
2735
2735
|
name: l.transition,
|
|
2736
2736
|
appear: ""
|
|
2737
2737
|
}, {
|
|
@@ -2861,7 +2861,7 @@ const vl = {
|
|
|
2861
2861
|
this.imgHeight = e;
|
|
2862
2862
|
}
|
|
2863
2863
|
}
|
|
2864
|
-
}, kl = /* @__PURE__ */ v(vl, [["render", wl]]), _l = ["name"], Cl = ["for"],
|
|
2864
|
+
}, kl = /* @__PURE__ */ v(vl, [["render", wl]]), _l = ["name"], Cl = ["for"], Bl = ["id", "type", "name", "placeholder", "step", "min", "max", "minlength", "maxlength", "readonly", "aria-readonly", "disabled", "required", "tabindex"], Sl = ["id", "name", "multiple", "disabled", "data-progress"], $l = {
|
|
2865
2865
|
class: "w-input__no-file",
|
|
2866
2866
|
key: "no-file"
|
|
2867
2867
|
}, Vl = ["for"], Il = ["for"], Rl = ["src"], Tl = ["for"];
|
|
@@ -2892,7 +2892,7 @@ function Ll(e, t, l, o, n, i) {
|
|
|
2892
2892
|
for: `w-input--${e._.uid}`
|
|
2893
2893
|
}, [
|
|
2894
2894
|
p(e.$slots, "default", {}, () => [
|
|
2895
|
-
|
|
2895
|
+
B(_(l.label), 1)
|
|
2896
2896
|
])
|
|
2897
2897
|
], 10, Cl)) : c("", !0)
|
|
2898
2898
|
], 64)) : c("", !0),
|
|
@@ -2907,7 +2907,7 @@ function Ll(e, t, l, o, n, i) {
|
|
|
2907
2907
|
onClick: t[1] || (t[1] = (d) => e.$emit("click:inner-icon-left", d))
|
|
2908
2908
|
}, {
|
|
2909
2909
|
default: g(() => [
|
|
2910
|
-
|
|
2910
|
+
B(_(l.innerIconLeft), 1)
|
|
2911
2911
|
]),
|
|
2912
2912
|
_: 1
|
|
2913
2913
|
}, 8, ["for"])) : c("", !0),
|
|
@@ -2934,7 +2934,7 @@ function Ll(e, t, l, o, n, i) {
|
|
|
2934
2934
|
disabled: e.isDisabled || null,
|
|
2935
2935
|
required: e.required || null,
|
|
2936
2936
|
tabindex: e.tabindex || null
|
|
2937
|
-
}, i.attrs), null, 16,
|
|
2937
|
+
}, i.attrs), null, 16, Bl)), [
|
|
2938
2938
|
[$e, n.inputValue]
|
|
2939
2939
|
]) : (s(), u(k, { key: 2 }, [
|
|
2940
2940
|
w("input", C({
|
|
@@ -2949,7 +2949,7 @@ function Ll(e, t, l, o, n, i) {
|
|
|
2949
2949
|
}, i.attrs, {
|
|
2950
2950
|
disabled: e.isDisabled || null,
|
|
2951
2951
|
"data-progress": i.overallFilesProgress
|
|
2952
|
-
}), null, 16,
|
|
2952
|
+
}), null, 16, Sl),
|
|
2953
2953
|
I(ae, {
|
|
2954
2954
|
class: "w-input__input w-input__input--file",
|
|
2955
2955
|
tag: "label",
|
|
@@ -2960,19 +2960,19 @@ function Ll(e, t, l, o, n, i) {
|
|
|
2960
2960
|
!n.inputFiles.length && n.isFocused ? (s(), u("span", $l, [
|
|
2961
2961
|
p(e.$slots, "no-file", {}, () => [
|
|
2962
2962
|
e.$slots["no-file"] === void 0 ? (s(), u(k, { key: 0 }, [
|
|
2963
|
-
|
|
2963
|
+
B("No file")
|
|
2964
2964
|
], 64)) : c("", !0)
|
|
2965
2965
|
])
|
|
2966
2966
|
])) : c("", !0),
|
|
2967
2967
|
(s(!0), u(k, null, L(n.inputFiles, (d, h) => (s(), u("span", {
|
|
2968
2968
|
key: d.lastModified
|
|
2969
2969
|
}, [
|
|
2970
|
-
|
|
2970
|
+
B(_(h ? ", " : ""), 1),
|
|
2971
2971
|
(s(), u("span", {
|
|
2972
2972
|
class: "filename",
|
|
2973
2973
|
key: `${h}b`
|
|
2974
2974
|
}, _(d.base), 1)),
|
|
2975
|
-
|
|
2975
|
+
B(_(d.extension ? `.${d.extension}` : ""), 1)
|
|
2976
2976
|
]))), 128))
|
|
2977
2977
|
]),
|
|
2978
2978
|
_: 3
|
|
@@ -2985,7 +2985,7 @@ function Ll(e, t, l, o, n, i) {
|
|
|
2985
2985
|
for: `w-input--${e._.uid}`
|
|
2986
2986
|
}, [
|
|
2987
2987
|
p(e.$slots, "default", {}, () => [
|
|
2988
|
-
|
|
2988
|
+
B(_(l.label), 1)
|
|
2989
2989
|
])
|
|
2990
2990
|
], 10, Vl)) : c("", !0)
|
|
2991
2991
|
], 64)) : c("", !0),
|
|
@@ -2997,7 +2997,7 @@ function Ll(e, t, l, o, n, i) {
|
|
|
2997
2997
|
onClick: t[9] || (t[9] = (d) => e.$emit("click:inner-icon-right", d))
|
|
2998
2998
|
}, {
|
|
2999
2999
|
default: g(() => [
|
|
3000
|
-
|
|
3000
|
+
B(_(l.innerIconRight), 1)
|
|
3001
3001
|
]),
|
|
3002
3002
|
_: 1
|
|
3003
3003
|
}, 8, ["for"])) : c("", !0),
|
|
@@ -3036,7 +3036,7 @@ function Ll(e, t, l, o, n, i) {
|
|
|
3036
3036
|
for: `w-input--${e._.uid}`
|
|
3037
3037
|
}, [
|
|
3038
3038
|
p(e.$slots, "default", {}, () => [
|
|
3039
|
-
|
|
3039
|
+
B(_(l.label), 1)
|
|
3040
3040
|
])
|
|
3041
3041
|
], 10, Tl)) : c("", !0)
|
|
3042
3042
|
], 64)) : c("", !0)
|
|
@@ -3214,8 +3214,8 @@ const xl = {
|
|
|
3214
3214
|
this.inputValue = e, !e && e !== 0 && (this.isAutofilled = !1, this.inputFiles = []);
|
|
3215
3215
|
}
|
|
3216
3216
|
}
|
|
3217
|
-
},
|
|
3218
|
-
function
|
|
3217
|
+
}, Ol = /* @__PURE__ */ v(xl, [["render", Ll]]);
|
|
3218
|
+
function Pl(e, t, l, o, n, i) {
|
|
3219
3219
|
const a = $("w-icon"), r = $("w-list", !0);
|
|
3220
3220
|
return s(), u("ul", {
|
|
3221
3221
|
class: f(["w-list", i.classes])
|
|
@@ -3229,7 +3229,7 @@ function Ol(e, t, l, o, n, i) {
|
|
|
3229
3229
|
class: "w-list__item-bullet"
|
|
3230
3230
|
}, {
|
|
3231
3231
|
default: g(() => [
|
|
3232
|
-
|
|
3232
|
+
B(_(l.icon), 1)
|
|
3233
3233
|
]),
|
|
3234
3234
|
_: 1
|
|
3235
3235
|
})) : c("", !0),
|
|
@@ -3254,7 +3254,7 @@ function Ol(e, t, l, o, n, i) {
|
|
|
3254
3254
|
index: h + 1,
|
|
3255
3255
|
selected: d._selected
|
|
3256
3256
|
}, () => [
|
|
3257
|
-
|
|
3257
|
+
B(_(d._label), 1)
|
|
3258
3258
|
])
|
|
3259
3259
|
]),
|
|
3260
3260
|
_: 2
|
|
@@ -3272,23 +3272,23 @@ function Ol(e, t, l, o, n, i) {
|
|
|
3272
3272
|
}), Z({ _: 2 }, [
|
|
3273
3273
|
e.$slots.item ? {
|
|
3274
3274
|
name: "item",
|
|
3275
|
-
fn: g(({ item: y, index:
|
|
3275
|
+
fn: g(({ item: y, index: S, selected: b }) => [
|
|
3276
3276
|
p(e.$slots, "item", {
|
|
3277
3277
|
item: i.cleanLi(y),
|
|
3278
|
-
index:
|
|
3278
|
+
index: S,
|
|
3279
3279
|
selected: b
|
|
3280
3280
|
})
|
|
3281
3281
|
]),
|
|
3282
3282
|
key: "0"
|
|
3283
3283
|
} : {
|
|
3284
3284
|
name: "default",
|
|
3285
|
-
fn: g(({ item: y, index:
|
|
3285
|
+
fn: g(({ item: y, index: S, selected: b }) => [
|
|
3286
3286
|
p(e.$slots, "default", {
|
|
3287
3287
|
item: i.cleanLi(y),
|
|
3288
|
-
index:
|
|
3288
|
+
index: S,
|
|
3289
3289
|
selected: b
|
|
3290
3290
|
}, () => [
|
|
3291
|
-
|
|
3291
|
+
B(_(y[l.itemLabelKey]), 1)
|
|
3292
3292
|
])
|
|
3293
3293
|
]),
|
|
3294
3294
|
key: "1"
|
|
@@ -3437,9 +3437,10 @@ const zl = {
|
|
|
3437
3437
|
}));
|
|
3438
3438
|
},
|
|
3439
3439
|
applySelectionOnItems(e) {
|
|
3440
|
-
this.isMultipleSelect || this.listItems.forEach((
|
|
3441
|
-
|
|
3442
|
-
|
|
3440
|
+
this.isMultipleSelect || this.listItems.forEach((l) => l._selected = !1);
|
|
3441
|
+
const t = this.checkSelection(e);
|
|
3442
|
+
this.listItems.forEach((l) => {
|
|
3443
|
+
l._selected = t.find((o) => l._value === o) !== void 0;
|
|
3443
3444
|
});
|
|
3444
3445
|
}
|
|
3445
3446
|
},
|
|
@@ -3462,7 +3463,7 @@ const zl = {
|
|
|
3462
3463
|
}
|
|
3463
3464
|
}
|
|
3464
3465
|
}
|
|
3465
|
-
}, Ml = /* @__PURE__ */ v(zl, [["render",
|
|
3466
|
+
}, Ml = /* @__PURE__ */ v(zl, [["render", Pl]]), we = {
|
|
3466
3467
|
props: {
|
|
3467
3468
|
appendTo: { type: [String, Boolean, Object] },
|
|
3468
3469
|
fixed: { type: Boolean },
|
|
@@ -3597,8 +3598,8 @@ const zl = {
|
|
|
3597
3598
|
mounted() {
|
|
3598
3599
|
var e;
|
|
3599
3600
|
this.activator ? this.bindActivatorEvents() : this.$nextTick(() => {
|
|
3600
|
-
this.activator && this.bindActivatorEvents(), this.modelValue && this.
|
|
3601
|
-
}), this.overlay && (this.overlayEl = (e = this.$refs.overlay) == null ? void 0 : e.$el), this.modelValue && this.activator
|
|
3601
|
+
this.activator && this.bindActivatorEvents(), this.modelValue && this.open({ target: this.activatorEl });
|
|
3602
|
+
}), this.overlay && (this.overlayEl = (e = this.$refs.overlay) == null ? void 0 : e.$el), this.modelValue && this.activator ? this.toggle({ type: this.showOnClick ? "click" : "mouseenter", target: this.activatorEl }) : this.modelValue && this.open({ target: this.activatorEl });
|
|
3602
3603
|
},
|
|
3603
3604
|
unmounted() {
|
|
3604
3605
|
this.close(), this.removeFromDOM(), this.docEventListenersHandlers.length && this.docEventListenersHandlers.forEach(({ eventName: e, handler: t }) => {
|
|
@@ -3607,7 +3608,7 @@ const zl = {
|
|
|
3607
3608
|
},
|
|
3608
3609
|
watch: {
|
|
3609
3610
|
modelValue(e) {
|
|
3610
|
-
!!e !== this.detachableVisible && this.toggle({ type: "click", target: this.activatorEl });
|
|
3611
|
+
!!e !== this.detachableVisible && this.toggle({ type: this.showOnClick ? "click" : "mouseenter", target: this.activatorEl });
|
|
3611
3612
|
},
|
|
3612
3613
|
appendTo() {
|
|
3613
3614
|
this.removeFromDOM(), this.insertInDOM();
|
|
@@ -3618,7 +3619,7 @@ function El(e, t, l, o, n, i) {
|
|
|
3618
3619
|
const a = $("w-card"), r = $("w-overlay");
|
|
3619
3620
|
return s(), u(k, null, [
|
|
3620
3621
|
p(e.$slots, "activator", { on: i.activatorEventHandlers }),
|
|
3621
|
-
I(
|
|
3622
|
+
I(O, {
|
|
3622
3623
|
name: i.transitionName,
|
|
3623
3624
|
appear: ""
|
|
3624
3625
|
}, {
|
|
@@ -3781,7 +3782,7 @@ const Wl = {
|
|
|
3781
3782
|
top: this.detachableCoords.top && `${~~this.detachableCoords.top}px` || null,
|
|
3782
3783
|
left: this.detachableCoords.left && `${~~this.detachableCoords.left}px` || null,
|
|
3783
3784
|
minWidth: this.minWidth && this.menuMinWidth || null,
|
|
3784
|
-
"--w-menu-bg-color": this.arrow && this.$waveui.colors[this.bgColor || "
|
|
3785
|
+
"--w-menu-bg-color": this.arrow && (this.$waveui.colors[this.bgColor] || "rgb(var(--w-base-bg-color-rgb))")
|
|
3785
3786
|
};
|
|
3786
3787
|
},
|
|
3787
3788
|
activatorEventHandlers() {
|
|
@@ -3812,7 +3813,7 @@ const Wl = {
|
|
|
3812
3813
|
}, Al = /* @__PURE__ */ v(Wl, [["render", El]]);
|
|
3813
3814
|
function Nl(e, t, l, o, n, i) {
|
|
3814
3815
|
const a = $("w-alert");
|
|
3815
|
-
return s(), m(
|
|
3816
|
+
return s(), m(O, {
|
|
3816
3817
|
name: i.transitionName,
|
|
3817
3818
|
appear: ""
|
|
3818
3819
|
}, {
|
|
@@ -3961,7 +3962,7 @@ const Kl = {
|
|
|
3961
3962
|
}, Hl = /* @__PURE__ */ v(Kl, [["render", Nl]]);
|
|
3962
3963
|
function Dl(e, t, l, o, n, i) {
|
|
3963
3964
|
const a = me("focus");
|
|
3964
|
-
return s(), m(
|
|
3965
|
+
return s(), m(O, {
|
|
3965
3966
|
name: "fade",
|
|
3966
3967
|
appear: "",
|
|
3967
3968
|
onAfterLeave: i.onClose
|
|
@@ -4089,7 +4090,7 @@ function Zl(e, t, l, o, n, i) {
|
|
|
4089
4090
|
class: f(["w-progress__label", l.labelColor || !1])
|
|
4090
4091
|
}, [
|
|
4091
4092
|
p(e.$slots, "default", {}, () => [
|
|
4092
|
-
|
|
4093
|
+
B(_(Math.round(i.progressValue)) + _(l.circle ? "" : "%"), 1)
|
|
4093
4094
|
])
|
|
4094
4095
|
], 2)) : c("", !0)
|
|
4095
4096
|
], 6);
|
|
@@ -4192,7 +4193,7 @@ function di(e, t, l, o, n, i) {
|
|
|
4192
4193
|
for: `w-radio--${e._.uid}`
|
|
4193
4194
|
}, [
|
|
4194
4195
|
p(e.$slots, "default", {}, () => [
|
|
4195
|
-
|
|
4196
|
+
B(_(l.label), 1)
|
|
4196
4197
|
])
|
|
4197
4198
|
], 10, ai)) : l.label ? (s(), u("label", {
|
|
4198
4199
|
key: 1,
|
|
@@ -4214,7 +4215,7 @@ function di(e, t, l, o, n, i) {
|
|
|
4214
4215
|
for: `w-radio--${e._.uid}`
|
|
4215
4216
|
}, [
|
|
4216
4217
|
p(e.$slots, "default", {}, () => [
|
|
4217
|
-
|
|
4218
|
+
B(_(l.label), 1)
|
|
4218
4219
|
])
|
|
4219
4220
|
], 10, ni)) : l.label ? (s(), u("label", {
|
|
4220
4221
|
key: 1,
|
|
@@ -4653,7 +4654,7 @@ const _i = {
|
|
|
4653
4654
|
const { top: e, left: t } = this.$refs.scrollable.getBoundingClientRect();
|
|
4654
4655
|
this.scrollable.top = e, this.scrollable.left = t, this.$el.parentNode.style.position = "relative", this.$el.parentNode.style[this.m.maxWidthOrHeight] = `${this[this.m.widthOrHeight]}px`;
|
|
4655
4656
|
}
|
|
4656
|
-
},
|
|
4657
|
+
}, Bi = /* @__PURE__ */ v(Ci, [["render", ki]]), Si = ["for"], $i = ["aria-expanded", "aria-owns", "aria-activedescendant"], Vi = {
|
|
4657
4658
|
key: 1,
|
|
4658
4659
|
class: "w-select__selection-slot"
|
|
4659
4660
|
}, Ii = ["contenteditable", "id", "disabled", "tabindex", "innerHTML"], Ri = ["value", "name"], Ti = ["for"], Li = ["for"];
|
|
@@ -4674,9 +4675,9 @@ function xi(e, t, l, o, n, i) {
|
|
|
4674
4675
|
for: `w-select--${e._.uid}`
|
|
4675
4676
|
}, [
|
|
4676
4677
|
p(e.$slots, "default", {}, () => [
|
|
4677
|
-
|
|
4678
|
+
B(_(l.label), 1)
|
|
4678
4679
|
])
|
|
4679
|
-
], 10,
|
|
4680
|
+
], 10, Si)) : c("", !0)
|
|
4680
4681
|
], 64)) : c("", !0),
|
|
4681
4682
|
I(d, C({
|
|
4682
4683
|
modelValue: e.showMenu,
|
|
@@ -4706,7 +4707,7 @@ function xi(e, t, l, o, n, i) {
|
|
|
4706
4707
|
onClick: t[0] || (t[0] = (y) => e.$emit("click:inner-icon-left", y))
|
|
4707
4708
|
}, {
|
|
4708
4709
|
default: g(() => [
|
|
4709
|
-
|
|
4710
|
+
B(_(l.innerIconLeft), 1)
|
|
4710
4711
|
]),
|
|
4711
4712
|
_: 1
|
|
4712
4713
|
})) : c("", !0),
|
|
@@ -4729,8 +4730,8 @@ function xi(e, t, l, o, n, i) {
|
|
|
4729
4730
|
tabindex: e.tabindex || null,
|
|
4730
4731
|
innerHTML: e.$slots.selection ? "" : i.selectionString || l.placeholder
|
|
4731
4732
|
}, null, 42, Ii),
|
|
4732
|
-
(s(!0), u(k, null, L(e.inputValue.length ? e.inputValue : [{}], (y,
|
|
4733
|
-
key:
|
|
4733
|
+
(s(!0), u(k, null, L(e.inputValue.length ? e.inputValue : [{}], (y, S) => (s(), u("input", {
|
|
4734
|
+
key: S,
|
|
4734
4735
|
type: "hidden",
|
|
4735
4736
|
value: y.value === void 0 ? "" : y.value.toString(),
|
|
4736
4737
|
name: e.inputName + (l.multiple ? "[]" : "")
|
|
@@ -4742,7 +4743,7 @@ function xi(e, t, l, o, n, i) {
|
|
|
4742
4743
|
for: `w-select--${e._.uid}`
|
|
4743
4744
|
}, [
|
|
4744
4745
|
p(e.$slots, "default", {}, () => [
|
|
4745
|
-
|
|
4746
|
+
B(_(l.label), 1)
|
|
4746
4747
|
])
|
|
4747
4748
|
], 10, Ti)) : c("", !0)
|
|
4748
4749
|
], 64)) : c("", !0),
|
|
@@ -4753,7 +4754,7 @@ function xi(e, t, l, o, n, i) {
|
|
|
4753
4754
|
onClick: t[4] || (t[4] = (y) => e.$emit("click:inner-icon-right", y))
|
|
4754
4755
|
}, {
|
|
4755
4756
|
default: g(() => [
|
|
4756
|
-
|
|
4757
|
+
B(_(l.innerIconRight), 1)
|
|
4757
4758
|
]),
|
|
4758
4759
|
_: 1
|
|
4759
4760
|
})) : c("", !0)
|
|
@@ -4781,21 +4782,21 @@ function xi(e, t, l, o, n, i) {
|
|
|
4781
4782
|
}, Z({ _: 2 }, [
|
|
4782
4783
|
L(l.items.length, (h) => ({
|
|
4783
4784
|
name: `item.${h}`,
|
|
4784
|
-
fn: g(({ item: y, selected:
|
|
4785
|
-
e.$slots[`item.${h}`] && e.$slots[`item.${h}`](y,
|
|
4785
|
+
fn: g(({ item: y, selected: S, index: b }) => [
|
|
4786
|
+
e.$slots[`item.${h}`] && e.$slots[`item.${h}`](y, S, b) ? p(e.$slots, `item.${h}`, {
|
|
4786
4787
|
key: 0,
|
|
4787
4788
|
item: y,
|
|
4788
|
-
selected:
|
|
4789
|
+
selected: S,
|
|
4789
4790
|
index: b
|
|
4790
4791
|
}, () => [
|
|
4791
|
-
|
|
4792
|
+
B(_(y[l.itemLabelKey]), 1)
|
|
4792
4793
|
]) : p(e.$slots, "item", {
|
|
4793
4794
|
key: 1,
|
|
4794
4795
|
item: y,
|
|
4795
|
-
selected:
|
|
4796
|
+
selected: S,
|
|
4796
4797
|
index: b
|
|
4797
4798
|
}, () => [
|
|
4798
|
-
|
|
4799
|
+
B(_(y[l.itemLabelKey]), 1)
|
|
4799
4800
|
])
|
|
4800
4801
|
])
|
|
4801
4802
|
}))
|
|
@@ -4810,7 +4811,7 @@ function xi(e, t, l, o, n, i) {
|
|
|
4810
4811
|
for: `w-select--${e._.uid}`
|
|
4811
4812
|
}, [
|
|
4812
4813
|
p(e.$slots, "default", {}, () => [
|
|
4813
|
-
|
|
4814
|
+
B(_(l.label), 1)
|
|
4814
4815
|
])
|
|
4815
4816
|
], 10, Li)) : c("", !0)
|
|
4816
4817
|
], 64)) : c("", !0)
|
|
@@ -4818,7 +4819,7 @@ function xi(e, t, l, o, n, i) {
|
|
|
4818
4819
|
_: 3
|
|
4819
4820
|
}, 16, ["valid", "onReset", "wrap", "class"]);
|
|
4820
4821
|
}
|
|
4821
|
-
const
|
|
4822
|
+
const Oi = {
|
|
4822
4823
|
name: "w-select",
|
|
4823
4824
|
mixins: [z],
|
|
4824
4825
|
props: {
|
|
@@ -4989,7 +4990,7 @@ const Pi = {
|
|
|
4989
4990
|
this.inputValue = this.checkSelection(this.modelValue);
|
|
4990
4991
|
}
|
|
4991
4992
|
}
|
|
4992
|
-
},
|
|
4993
|
+
}, Pi = /* @__PURE__ */ v(Oi, [["render", xi]]), zi = ["for"], Mi = ["for", "innerHTML"], Ei = { class: "w-slider__track-wrap" }, Wi = ["aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-readonly"], Ai = ["id", "name", "model-value", "disabled", "readonly", "aria-readonly", "tabindex"], Ni = ["for"], Ki = { key: 0 }, Hi = {
|
|
4993
4994
|
key: 0,
|
|
4994
4995
|
class: "w-slider__step-labels"
|
|
4995
4996
|
}, Di = ["onClick"], Fi = ["for"], ji = ["for", "innerHTML"];
|
|
@@ -5063,13 +5064,13 @@ function Ui(e, t, l, o, n, i) {
|
|
|
5063
5064
|
}, [
|
|
5064
5065
|
l.thumbLabel === "droplet" ? (s(), u("div", Ki, [
|
|
5065
5066
|
p(e.$slots, "label", { value: e.rangeValueScaled }, () => [
|
|
5066
|
-
|
|
5067
|
+
B(_(~~e.rangeValueScaled), 1)
|
|
5067
5068
|
])
|
|
5068
5069
|
])) : p(e.$slots, "label", {
|
|
5069
5070
|
key: 1,
|
|
5070
5071
|
value: e.rangeValueScaled
|
|
5071
5072
|
}, () => [
|
|
5072
|
-
|
|
5073
|
+
B(_(~~e.rangeValueScaled), 1)
|
|
5073
5074
|
])
|
|
5074
5075
|
], 10, Ni)) : c("", !0)
|
|
5075
5076
|
], 4)
|
|
@@ -5354,7 +5355,7 @@ function ns(e, t, l, o, n, i) {
|
|
|
5354
5355
|
for: `w-switch--${e._.uid}`
|
|
5355
5356
|
}, [
|
|
5356
5357
|
p(e.$slots, "default", {}, () => [
|
|
5357
|
-
|
|
5358
|
+
B(_(l.label), 1)
|
|
5358
5359
|
])
|
|
5359
5360
|
], 10, is)) : c("", !0)
|
|
5360
5361
|
], 64)) : c("", !0),
|
|
@@ -5382,7 +5383,7 @@ function ns(e, t, l, o, n, i) {
|
|
|
5382
5383
|
for: `w-switch--${e._.uid}`
|
|
5383
5384
|
}, [
|
|
5384
5385
|
p(e.$slots, "default", {}, () => [
|
|
5385
|
-
|
|
5386
|
+
B(_(l.label), 1)
|
|
5386
5387
|
])
|
|
5387
5388
|
], 10, os)) : c("", !0)
|
|
5388
5389
|
], 64)) : c("", !0)
|
|
@@ -5550,7 +5551,7 @@ function vs(e, t, l, o, n, i) {
|
|
|
5550
5551
|
])), 128))
|
|
5551
5552
|
]),
|
|
5552
5553
|
_: 3
|
|
5553
|
-
}, 8, ["name"])) : (s(), m(
|
|
5554
|
+
}, 8, ["name"])) : (s(), m(O, {
|
|
5554
5555
|
key: 1,
|
|
5555
5556
|
name: i.transitionName,
|
|
5556
5557
|
mode: i.transitionMode
|
|
@@ -5769,16 +5770,16 @@ const ks = {
|
|
|
5769
5770
|
e ? window.removeEventListener("resize", this.onResize) : (this.updateSlider(), window.addEventListener("resize", this.onResize));
|
|
5770
5771
|
}
|
|
5771
5772
|
}
|
|
5772
|
-
}, _s = /* @__PURE__ */ v(ks, [["render", vs]]), Cs = { ref: "colgroup" },
|
|
5773
|
+
}, _s = /* @__PURE__ */ v(ks, [["render", vs]]), Cs = { ref: "colgroup" }, Bs = ["width"], Ss = { key: 0 }, $s = ["onClick"], Vs = ["innerHTML"], Is = {
|
|
5773
5774
|
key: 0,
|
|
5774
5775
|
class: "w-table__progress-bar"
|
|
5775
5776
|
}, Rs = ["colspan"], Ts = {
|
|
5776
5777
|
key: 0,
|
|
5777
5778
|
class: "w-table__progress-bar"
|
|
5778
|
-
}, Ls = ["colspan"], xs = { class: "w-table__loading-text" },
|
|
5779
|
+
}, Ls = ["colspan"], xs = { class: "w-table__loading-text" }, Os = {
|
|
5779
5780
|
key: 1,
|
|
5780
5781
|
class: "no-data"
|
|
5781
|
-
},
|
|
5782
|
+
}, Ps = ["colspan"], zs = ["onClick"], Ms = ["data-label"], Es = ["data-label"], Ws = ["innerHTML"], As = {
|
|
5782
5783
|
key: 2,
|
|
5783
5784
|
class: "w-table__row w-table__row--expansion"
|
|
5784
5785
|
}, Ns = ["colspan"], Ks = { key: 0 }, Hs = {
|
|
@@ -5795,7 +5796,7 @@ const ks = {
|
|
|
5795
5796
|
class: "w-table__row w-table__pagination-wrap"
|
|
5796
5797
|
}, qs = ["colspan"], Xs = { class: "w-table__pagination w-pagination" }, Ys = { class: "pages-wrap" }, Gs = { class: "w-pagination__results" };
|
|
5797
5798
|
function Js(e, t, l, o, n, i) {
|
|
5798
|
-
const a = $("w-icon"), r = $("w-progress"), d = $("w-transition-fade"), h = $("w-transition-expand"), y = $("w-select"),
|
|
5799
|
+
const a = $("w-icon"), r = $("w-progress"), d = $("w-transition-fade"), h = $("w-transition-expand"), y = $("w-select"), S = $("w-button");
|
|
5799
5800
|
return s(), u("div", {
|
|
5800
5801
|
class: f(["w-table-wrap", i.wrapClasses])
|
|
5801
5802
|
}, [
|
|
@@ -5810,9 +5811,9 @@ function Js(e, t, l, o, n, i) {
|
|
|
5810
5811
|
class: f(["w-table__col", i.colClasses[R]]),
|
|
5811
5812
|
key: R,
|
|
5812
5813
|
width: b.width || null
|
|
5813
|
-
}, null, 10,
|
|
5814
|
+
}, null, 10, Bs))), 128))
|
|
5814
5815
|
], 512),
|
|
5815
|
-
l.noHeaders ? c("", !0) : (s(), u("thead",
|
|
5816
|
+
l.noHeaders ? c("", !0) : (s(), u("thead", Ss, [
|
|
5816
5817
|
w("tr", null, [
|
|
5817
5818
|
(s(!0), u(k, null, L(l.headers, (b, R) => (s(), u("th", {
|
|
5818
5819
|
class: f(["w-table__header", i.headerClasses(b)]),
|
|
@@ -5824,7 +5825,7 @@ function Js(e, t, l, o, n, i) {
|
|
|
5824
5825
|
class: f(["w-table__header-sort", i.headerSortClasses(b)])
|
|
5825
5826
|
}, {
|
|
5826
5827
|
default: g(() => [
|
|
5827
|
-
|
|
5828
|
+
B("wi-arrow-down")
|
|
5828
5829
|
]),
|
|
5829
5830
|
_: 2
|
|
5830
5831
|
}, 1032, ["class"])) : c("", !0),
|
|
@@ -5835,7 +5836,7 @@ function Js(e, t, l, o, n, i) {
|
|
|
5835
5836
|
label: b.label,
|
|
5836
5837
|
index: R + 1
|
|
5837
5838
|
}, () => [
|
|
5838
|
-
|
|
5839
|
+
B(_(b.label || ""), 1)
|
|
5839
5840
|
]) : (s(), u("span", {
|
|
5840
5841
|
key: 1,
|
|
5841
5842
|
innerHTML: b.label || ""
|
|
@@ -5846,7 +5847,7 @@ function Js(e, t, l, o, n, i) {
|
|
|
5846
5847
|
class: f(["w-table__header-sort", i.headerSortClasses(b)])
|
|
5847
5848
|
}, {
|
|
5848
5849
|
default: g(() => [
|
|
5849
|
-
|
|
5850
|
+
B("wi-arrow-down")
|
|
5850
5851
|
]),
|
|
5851
5852
|
_: 2
|
|
5852
5853
|
}, 1032, ["class"])) : c("", !0),
|
|
@@ -5879,19 +5880,19 @@ function Js(e, t, l, o, n, i) {
|
|
|
5879
5880
|
I(r, { tile: "" }),
|
|
5880
5881
|
w("div", xs, [
|
|
5881
5882
|
p(e.$slots, "loading", {}, () => [
|
|
5882
|
-
|
|
5883
|
+
B("Loading...")
|
|
5883
5884
|
])
|
|
5884
5885
|
])
|
|
5885
5886
|
], 8, Ls)
|
|
5886
|
-
])) : i.tableItems.length ? c("", !0) : (s(), u("tr",
|
|
5887
|
+
])) : i.tableItems.length ? c("", !0) : (s(), u("tr", Os, [
|
|
5887
5888
|
w("td", {
|
|
5888
5889
|
class: "w-table__cell text-center",
|
|
5889
5890
|
colspan: l.headers.length
|
|
5890
5891
|
}, [
|
|
5891
5892
|
p(e.$slots, "no-data", {}, () => [
|
|
5892
|
-
|
|
5893
|
+
B("No data to show.")
|
|
5893
5894
|
])
|
|
5894
|
-
], 8,
|
|
5895
|
+
], 8, Ps)
|
|
5895
5896
|
])),
|
|
5896
5897
|
i.tableItems.length && l.loading !== !0 ? (s(!0), u(k, { key: 2 }, L(i.paginatedItems, (b, R) => (s(), u(k, { key: R }, [
|
|
5897
5898
|
e.$slots.item ? p(e.$slots, "item", {
|
|
@@ -5905,10 +5906,10 @@ function Js(e, t, l, o, n, i) {
|
|
|
5905
5906
|
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 }]),
|
|
5906
5907
|
onClick: (x) => i.doSelectRow(b, R)
|
|
5907
5908
|
}, [
|
|
5908
|
-
(s(!0), u(k, null, L(l.headers, (x,
|
|
5909
|
-
e.$slots[`item-cell.${x.key}`] || e.$slots[`item-cell.${
|
|
5909
|
+
(s(!0), u(k, null, L(l.headers, (x, P) => (s(), u(k, null, [
|
|
5910
|
+
e.$slots[`item-cell.${x.key}`] || e.$slots[`item-cell.${P + 1}`] || e.$slots["item-cell"] ? (s(), u("td", {
|
|
5910
5911
|
class: f(["w-table__cell", { [`text-${x.align || "left"}`]: !0, "w-table__cell--sticky": x.sticky }]),
|
|
5911
|
-
key: `${
|
|
5912
|
+
key: `${P}-a`,
|
|
5912
5913
|
"data-label": x.label
|
|
5913
5914
|
}, [
|
|
5914
5915
|
e.$slots[`item-cell.${x.key}`] ? p(e.$slots, `item-cell.${x.key}`, {
|
|
@@ -5917,7 +5918,7 @@ function Js(e, t, l, o, n, i) {
|
|
|
5917
5918
|
item: b,
|
|
5918
5919
|
label: b[x.key] || "",
|
|
5919
5920
|
index: R + 1
|
|
5920
|
-
}) : e.$slots[`item-cell.${
|
|
5921
|
+
}) : e.$slots[`item-cell.${P + 1}`] ? p(e.$slots, `item-cell.${P + 1}`, {
|
|
5921
5922
|
key: 1,
|
|
5922
5923
|
header: x,
|
|
5923
5924
|
item: b,
|
|
@@ -5930,21 +5931,21 @@ function Js(e, t, l, o, n, i) {
|
|
|
5930
5931
|
label: b[x.key] || "",
|
|
5931
5932
|
index: R + 1
|
|
5932
5933
|
}) : c("", !0),
|
|
5933
|
-
|
|
5934
|
+
P < l.headers.length - 1 && l.resizableColumns ? (s(), u("span", {
|
|
5934
5935
|
key: 3,
|
|
5935
|
-
class: f(["w-table__col-resizer", { "w-table__col-resizer--hover": e.colResizing.hover ===
|
|
5936
|
+
class: f(["w-table__col-resizer", { "w-table__col-resizer--hover": e.colResizing.hover === P, "w-table__col-resizer--active": e.colResizing.columnIndex === P }])
|
|
5936
5937
|
}, null, 2)) : c("", !0)
|
|
5937
5938
|
], 10, Ms)) : (s(), u("td", {
|
|
5938
5939
|
class: f(["w-table__cell", { [`text-${x.align || "left"}`]: !0, "w-table__cell--sticky": x.sticky }]),
|
|
5939
|
-
key: `${
|
|
5940
|
+
key: `${P}-b`,
|
|
5940
5941
|
"data-label": x.label
|
|
5941
5942
|
}, [
|
|
5942
5943
|
w("div", {
|
|
5943
5944
|
innerHTML: b[x.key] || ""
|
|
5944
5945
|
}, null, 8, Ws),
|
|
5945
|
-
|
|
5946
|
+
P < l.headers.length - 1 && l.resizableColumns ? (s(), u("span", {
|
|
5946
5947
|
key: 0,
|
|
5947
|
-
class: f(["w-table__col-resizer", { "w-table__col-resizer--hover": e.colResizing.hover ===
|
|
5948
|
+
class: f(["w-table__col-resizer", { "w-table__col-resizer--hover": e.colResizing.hover === P, "w-table__col-resizer--active": e.colResizing.columnIndex === P }])
|
|
5948
5949
|
}, null, 2)) : c("", !0)
|
|
5949
5950
|
], 10, Es))
|
|
5950
5951
|
], 64))), 256))
|
|
@@ -6007,7 +6008,7 @@ function Js(e, t, l, o, n, i) {
|
|
|
6007
6008
|
"label-color": "inherit"
|
|
6008
6009
|
}, null, 8, ["modelValue", "items"])) : c("", !0),
|
|
6009
6010
|
w("div", Ys, [
|
|
6010
|
-
I(
|
|
6011
|
+
I(S, {
|
|
6011
6012
|
class: "w-pagination__arrow w-pagination__arrow--prev",
|
|
6012
6013
|
onClick: t[3] || (t[3] = (b) => i.goToPage("-1")),
|
|
6013
6014
|
disabled: e.paginationConfig.page <= 1,
|
|
@@ -6015,7 +6016,7 @@ function Js(e, t, l, o, n, i) {
|
|
|
6015
6016
|
text: "",
|
|
6016
6017
|
lg: ""
|
|
6017
6018
|
}, null, 8, ["disabled"]),
|
|
6018
|
-
(s(!0), u(k, null, L(e.paginationConfig.pagesCount, (b) => (s(), m(
|
|
6019
|
+
(s(!0), u(k, null, L(e.paginationConfig.pagesCount, (b) => (s(), m(S, {
|
|
6019
6020
|
class: f(["w-pagination__page", { "w-pagination__page--active": b === e.paginationConfig.page }]),
|
|
6020
6021
|
key: b,
|
|
6021
6022
|
onClick: (R) => b !== e.paginationConfig.page && i.goToPage(b),
|
|
@@ -6023,11 +6024,11 @@ function Js(e, t, l, o, n, i) {
|
|
|
6023
6024
|
lg: ""
|
|
6024
6025
|
}, {
|
|
6025
6026
|
default: g(() => [
|
|
6026
|
-
|
|
6027
|
+
B(_(b), 1)
|
|
6027
6028
|
]),
|
|
6028
6029
|
_: 2
|
|
6029
6030
|
}, 1032, ["onClick", "class"]))), 128)),
|
|
6030
|
-
I(
|
|
6031
|
+
I(S, {
|
|
6031
6032
|
class: "w-pagination__arrow w-pagination__arrow--next",
|
|
6032
6033
|
onClick: t[4] || (t[4] = (b) => i.goToPage("+1")),
|
|
6033
6034
|
disabled: e.paginationConfig.page >= e.paginationConfig.pagesCount,
|
|
@@ -6244,12 +6245,12 @@ const ge = 15, Qs = {
|
|
|
6244
6245
|
this.colResizing.dragging = !0;
|
|
6245
6246
|
const a = e.pageX - t, r = n + i, d = n + a, h = i - a;
|
|
6246
6247
|
l.style.width = n + a + "px", o.style.width = i - a + "px";
|
|
6247
|
-
const y = a < 0 && l.offsetWidth > d || l.offsetWidth <= ge,
|
|
6248
|
+
const y = a < 0 && l.offsetWidth > d || l.offsetWidth <= ge, S = a > 0 && o.offsetWidth > h;
|
|
6248
6249
|
if (y) {
|
|
6249
6250
|
const b = Math.max(l.offsetWidth, ge);
|
|
6250
6251
|
l.style.width = b + "px", o.style.width = r - b + "px";
|
|
6251
6252
|
} else
|
|
6252
|
-
|
|
6253
|
+
S && (l.style.width = r - o.offsetWidth + "px", o.style.width = o.offsetWidth + "px");
|
|
6253
6254
|
},
|
|
6254
6255
|
onResizerMouseUp() {
|
|
6255
6256
|
document.removeEventListener("mousemove", this.onResizerMouseMove), document.removeEventListener("mouseup", this.onResizerMouseUp), setTimeout(() => {
|
|
@@ -6425,7 +6426,7 @@ function ra(e, t, l, o, n, i) {
|
|
|
6425
6426
|
for: `w-textarea--${e._.uid}`
|
|
6426
6427
|
}, [
|
|
6427
6428
|
p(e.$slots, "default", {}, () => [
|
|
6428
|
-
|
|
6429
|
+
B(_(l.label), 1)
|
|
6429
6430
|
])
|
|
6430
6431
|
], 10, sa)) : c("", !0)
|
|
6431
6432
|
], 64)) : c("", !0),
|
|
@@ -6440,7 +6441,7 @@ function ra(e, t, l, o, n, i) {
|
|
|
6440
6441
|
onClick: t[0] || (t[0] = (r) => e.$emit("click:inner-icon-left", r))
|
|
6441
6442
|
}, {
|
|
6442
6443
|
default: g(() => [
|
|
6443
|
-
|
|
6444
|
+
B(_(l.innerIconLeft), 1)
|
|
6444
6445
|
]),
|
|
6445
6446
|
_: 1
|
|
6446
6447
|
}, 8, ["for"])) : c("", !0),
|
|
@@ -6472,7 +6473,7 @@ function ra(e, t, l, o, n, i) {
|
|
|
6472
6473
|
for: `w-textarea--${e._.uid}`
|
|
6473
6474
|
}, [
|
|
6474
6475
|
p(e.$slots, "default", {}, () => [
|
|
6475
|
-
|
|
6476
|
+
B(_(l.label), 1)
|
|
6476
6477
|
])
|
|
6477
6478
|
], 10, oa)) : c("", !0)
|
|
6478
6479
|
], 64)) : c("", !0),
|
|
@@ -6484,7 +6485,7 @@ function ra(e, t, l, o, n, i) {
|
|
|
6484
6485
|
onClick: t[5] || (t[5] = (r) => e.$emit("click:inner-icon-right", r))
|
|
6485
6486
|
}, {
|
|
6486
6487
|
default: g(() => [
|
|
6487
|
-
|
|
6488
|
+
B(_(l.innerIconRight), 1)
|
|
6488
6489
|
]),
|
|
6489
6490
|
_: 1
|
|
6490
6491
|
}, 8, ["for"])) : c("", !0)
|
|
@@ -6496,7 +6497,7 @@ function ra(e, t, l, o, n, i) {
|
|
|
6496
6497
|
for: `w-textarea--${e._.uid}`
|
|
6497
6498
|
}, [
|
|
6498
6499
|
p(e.$slots, "default", {}, () => [
|
|
6499
|
-
|
|
6500
|
+
B(_(l.label), 1)
|
|
6500
6501
|
])
|
|
6501
6502
|
], 10, na)) : c("", !0)
|
|
6502
6503
|
], 64)) : c("", !0)
|
|
@@ -6633,7 +6634,7 @@ function pa(e, t, l, o, n, i) {
|
|
|
6633
6634
|
class: f(["w-timeline-item__bullet", { [a[l.itemColorKey] || l.color]: a[l.itemColorKey] || l.color }])
|
|
6634
6635
|
}, {
|
|
6635
6636
|
default: g(() => [
|
|
6636
|
-
|
|
6637
|
+
B(_(a[l.itemIconKey] || l.icon), 1)
|
|
6637
6638
|
]),
|
|
6638
6639
|
_: 2
|
|
6639
6640
|
}, 1032, ["class"])),
|
|
@@ -6742,7 +6743,7 @@ const ba = {
|
|
|
6742
6743
|
function wa(e, t, l, o, n, i) {
|
|
6743
6744
|
return s(), u(k, null, [
|
|
6744
6745
|
p(e.$slots, "activator", { on: i.activatorEventHandlers }),
|
|
6745
|
-
I(
|
|
6746
|
+
I(O, {
|
|
6746
6747
|
name: i.transitionName,
|
|
6747
6748
|
appear: ""
|
|
6748
6749
|
}, {
|
|
@@ -6777,7 +6778,14 @@ const va = {
|
|
|
6777
6778
|
persistent: { type: Boolean },
|
|
6778
6779
|
delay: { type: Number },
|
|
6779
6780
|
dark: { type: Boolean },
|
|
6780
|
-
light: { type: Boolean }
|
|
6781
|
+
light: { type: Boolean },
|
|
6782
|
+
caption: { type: Boolean },
|
|
6783
|
+
xs: { type: Boolean },
|
|
6784
|
+
sm: { type: Boolean },
|
|
6785
|
+
md: { type: Boolean },
|
|
6786
|
+
lg: { type: Boolean },
|
|
6787
|
+
xl: { type: Boolean },
|
|
6788
|
+
enableTouch: { type: Boolean }
|
|
6781
6789
|
},
|
|
6782
6790
|
emits: ["input", "update:modelValue", "open", "close"],
|
|
6783
6791
|
data: () => ({
|
|
@@ -6798,6 +6806,9 @@ const va = {
|
|
|
6798
6806
|
const e = this.position.replace(/top|bottom/, (t) => ({ top: "up", bottom: "down" })[t]);
|
|
6799
6807
|
return this.transition || `w-tooltip-slide-fade-${e}`;
|
|
6800
6808
|
},
|
|
6809
|
+
size() {
|
|
6810
|
+
return this.xs && "xs" || this.sm && "sm" || this.sm && "md" || this.lg && "lg" || this.xl && "xl" || (this.caption ? "sm" : "md");
|
|
6811
|
+
},
|
|
6801
6812
|
classes() {
|
|
6802
6813
|
return {
|
|
6803
6814
|
[this.color]: this.color,
|
|
@@ -6809,6 +6820,8 @@ const va = {
|
|
|
6809
6820
|
"w-tooltip--light": this.light,
|
|
6810
6821
|
"w-tooltip--tile": this.tile,
|
|
6811
6822
|
"w-tooltip--round": this.round,
|
|
6823
|
+
caption: this.caption,
|
|
6824
|
+
[`size--${this.size}`]: !0,
|
|
6812
6825
|
"w-tooltip--shadow": this.shadow,
|
|
6813
6826
|
"w-tooltip--fixed": this.fixed,
|
|
6814
6827
|
"w-tooltip--no-border": this.noBorder || this.bgColor,
|
|
@@ -6820,27 +6833,28 @@ const va = {
|
|
|
6820
6833
|
zIndex: this.zIndex || this.zIndex === 0 || null,
|
|
6821
6834
|
top: this.detachableCoords.top && `${~~this.detachableCoords.top}px` || null,
|
|
6822
6835
|
left: this.detachableCoords.left && `${~~this.detachableCoords.left}px` || null,
|
|
6823
|
-
"--w-tooltip-bg-color": this.$waveui.colors[this.bgColor || "
|
|
6836
|
+
"--w-tooltip-bg-color": this.$waveui.colors[this.bgColor] || "rgb(var(--w-base-bg-color-rgb))"
|
|
6824
6837
|
};
|
|
6825
6838
|
},
|
|
6826
6839
|
activatorEventHandlers() {
|
|
6827
6840
|
let e = {};
|
|
6828
|
-
|
|
6829
|
-
|
|
6830
|
-
|
|
6831
|
-
|
|
6832
|
-
|
|
6841
|
+
const t = typeof window < "u" && "ontouchstart" in window;
|
|
6842
|
+
return !this.showOnClick && !t ? e = {
|
|
6843
|
+
focus: this.open,
|
|
6844
|
+
blur: this.close,
|
|
6845
|
+
mouseenter: (l) => {
|
|
6846
|
+
this.hoveringActivator = !0, this.open(l);
|
|
6833
6847
|
},
|
|
6834
|
-
mouseleave: (
|
|
6848
|
+
mouseleave: (l) => {
|
|
6835
6849
|
this.hoveringActivator = !1, this.close();
|
|
6836
6850
|
}
|
|
6837
|
-
}
|
|
6851
|
+
} : (this.enableTouch || this.showOnClick) && (e = { click: this.toggle }), e;
|
|
6838
6852
|
}
|
|
6839
6853
|
},
|
|
6840
6854
|
methods: {
|
|
6841
6855
|
toggle(e) {
|
|
6842
6856
|
let t = this.detachableVisible;
|
|
6843
|
-
typeof window < "u" && "ontouchstart" in window ?
|
|
6857
|
+
typeof window < "u" && "ontouchstart" in window ? !this.enableTouch && !this.showOnClick ? t = !1 : t = !t : e.type === "click" && this.showOnClick ? t = !t : ["mouseenter", "focus"].includes(e.type) && !this.showOnClick ? t = !0 : ["mouseleave", "blur"].includes(e.type) && !this.showOnClick && (t = !1), this.timeoutId = clearTimeout(this.timeoutId), t ? this.open(e) : this.close();
|
|
6844
6858
|
},
|
|
6845
6859
|
async close(e = !1) {
|
|
6846
6860
|
!this.detachableVisible || this.showOnHover && !e && (await new Promise((t) => setTimeout(t, 10)), this.showOnHover && this.hoveringActivator) || (this.$emit("update:modelValue", this.detachableVisible = !1), this.$emit("input", !1), this.$emit("close"), document.removeEventListener("mousedown", this.onOutsideMousedown), window.removeEventListener("resize", this.onResize));
|
|
@@ -6848,7 +6862,7 @@ const va = {
|
|
|
6848
6862
|
}
|
|
6849
6863
|
}, ka = /* @__PURE__ */ v(va, [["render", wa]]);
|
|
6850
6864
|
function _a(e, t, l, o, n, i) {
|
|
6851
|
-
return s(), m(
|
|
6865
|
+
return s(), m(O, C({ name: "bounce" }, e.$props), {
|
|
6852
6866
|
default: g(() => [
|
|
6853
6867
|
p(e.$slots, "default")
|
|
6854
6868
|
]),
|
|
@@ -6861,9 +6875,9 @@ const Ca = {
|
|
|
6861
6875
|
appear: { type: Boolean },
|
|
6862
6876
|
duration: { type: [Number, String] }
|
|
6863
6877
|
}
|
|
6864
|
-
},
|
|
6865
|
-
function
|
|
6866
|
-
return s(), m(
|
|
6878
|
+
}, Ba = /* @__PURE__ */ v(Ca, [["render", _a]]);
|
|
6879
|
+
function Sa(e, t, l, o, n, i) {
|
|
6880
|
+
return s(), m(O, {
|
|
6867
6881
|
name: "expand",
|
|
6868
6882
|
mode: "out-in",
|
|
6869
6883
|
css: !1,
|
|
@@ -6973,9 +6987,9 @@ const $a = {
|
|
|
6973
6987
|
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;
|
|
6974
6988
|
}
|
|
6975
6989
|
}
|
|
6976
|
-
}, Va = /* @__PURE__ */ v($a, [["render",
|
|
6990
|
+
}, Va = /* @__PURE__ */ v($a, [["render", Sa]]);
|
|
6977
6991
|
function Ia(e, t, l, o, n, i) {
|
|
6978
|
-
return s(), m(
|
|
6992
|
+
return s(), m(O, C({ name: "fade" }, e.$props), {
|
|
6979
6993
|
default: g(() => [
|
|
6980
6994
|
p(e.$slots, "default")
|
|
6981
6995
|
]),
|
|
@@ -6990,7 +7004,7 @@ const Ra = {
|
|
|
6990
7004
|
}
|
|
6991
7005
|
}, Ta = /* @__PURE__ */ v(Ra, [["render", Ia]]);
|
|
6992
7006
|
function La(e, t, l, o, n, i) {
|
|
6993
|
-
return s(), m(
|
|
7007
|
+
return s(), m(O, C({ name: "scale" }, e.$props), {
|
|
6994
7008
|
default: g(() => [
|
|
6995
7009
|
p(e.$slots, "default")
|
|
6996
7010
|
]),
|
|
@@ -7003,9 +7017,9 @@ const xa = {
|
|
|
7003
7017
|
appear: { type: Boolean },
|
|
7004
7018
|
duration: { type: [Number, String] }
|
|
7005
7019
|
}
|
|
7006
|
-
},
|
|
7007
|
-
function
|
|
7008
|
-
return s(), m(
|
|
7020
|
+
}, Oa = /* @__PURE__ */ v(xa, [["render", La]]);
|
|
7021
|
+
function Pa(e, t, l, o, n, i) {
|
|
7022
|
+
return s(), m(O, C({ name: "scale-fade" }, e.$props), {
|
|
7009
7023
|
default: g(() => [
|
|
7010
7024
|
p(e.$slots, "default")
|
|
7011
7025
|
]),
|
|
@@ -7018,9 +7032,9 @@ const za = {
|
|
|
7018
7032
|
appear: { type: Boolean },
|
|
7019
7033
|
duration: { type: [Number, String] }
|
|
7020
7034
|
}
|
|
7021
|
-
}, Ma = /* @__PURE__ */ v(za, [["render",
|
|
7035
|
+
}, Ma = /* @__PURE__ */ v(za, [["render", Pa]]);
|
|
7022
7036
|
function Ea(e, t, l, o, n, i) {
|
|
7023
|
-
return s(), m(
|
|
7037
|
+
return s(), m(O, C({ name: i.transitionName }, e.$props), {
|
|
7024
7038
|
default: g(() => [
|
|
7025
7039
|
p(e.$slots, "default")
|
|
7026
7040
|
]),
|
|
@@ -7047,7 +7061,7 @@ const Wa = {
|
|
|
7047
7061
|
}
|
|
7048
7062
|
}, Aa = /* @__PURE__ */ v(Wa, [["render", Ea]]);
|
|
7049
7063
|
function Na(e, t, l, o, n, i) {
|
|
7050
|
-
return s(), m(
|
|
7064
|
+
return s(), m(O, C({ name: i.transitionName }, e.$props), {
|
|
7051
7065
|
default: g(() => [
|
|
7052
7066
|
p(e.$slots, "default")
|
|
7053
7067
|
]),
|
|
@@ -7074,7 +7088,7 @@ const Ka = {
|
|
|
7074
7088
|
}
|
|
7075
7089
|
}, Ha = /* @__PURE__ */ v(Ka, [["render", Na]]);
|
|
7076
7090
|
function Da(e, t, l, o, n, i) {
|
|
7077
|
-
return s(), m(
|
|
7091
|
+
return s(), m(O, C({ name: "twist" }, e.$props), {
|
|
7078
7092
|
default: g(() => [
|
|
7079
7093
|
p(e.$slots, "default")
|
|
7080
7094
|
]),
|
|
@@ -7101,15 +7115,15 @@ function Xa(e, t, l, o, n, i) {
|
|
|
7101
7115
|
key: y
|
|
7102
7116
|
}, [
|
|
7103
7117
|
(s(), m(V(i.getTreeItemComponent(h)), C({ class: "w-tree__item-label" }, h.route && { [!e.$router || i.hasExternalLink(h) ? "href" : "to"]: h.route }, {
|
|
7104
|
-
onClick: (
|
|
7105
|
-
onKeydown: (
|
|
7118
|
+
onClick: (S) => !l.disabled && !h.disabled && i.onLabelClick(h, S),
|
|
7119
|
+
onKeydown: (S) => !l.disabled && !h.disabled && i.onLabelKeydown(h, S),
|
|
7106
7120
|
tabindex: i.getTreeItemTabindex(h)
|
|
7107
7121
|
}), {
|
|
7108
7122
|
default: g(() => [
|
|
7109
7123
|
(h.children || h.branch) && (l.expandOpenIcon && h.open || l.expandIcon) && !(l.unexpandableEmpty && !h.children) ? (s(), m(a, {
|
|
7110
7124
|
key: 0,
|
|
7111
7125
|
class: "w-tree__item-expand",
|
|
7112
|
-
onClick: M((
|
|
7126
|
+
onClick: M((S) => !l.disabled && !h.disabled && i.onLabelClick(h, S), ["stop"]),
|
|
7113
7127
|
color: "inherit",
|
|
7114
7128
|
icon: h.open && l.expandOpenIcon || l.expandIcon,
|
|
7115
7129
|
"icon-props": { rotate90a: !h.open },
|
|
@@ -7124,7 +7138,7 @@ function Xa(e, t, l, o, n, i) {
|
|
|
7124
7138
|
path: h.path,
|
|
7125
7139
|
open: h.open
|
|
7126
7140
|
}, () => {
|
|
7127
|
-
var
|
|
7141
|
+
var S;
|
|
7128
7142
|
return [
|
|
7129
7143
|
i.itemIcon(h) ? (s(), m(r, {
|
|
7130
7144
|
key: 0,
|
|
@@ -7132,14 +7146,14 @@ function Xa(e, t, l, o, n, i) {
|
|
|
7132
7146
|
color: h.originalItem[l.itemIconColorKey] || l.iconColor
|
|
7133
7147
|
}, {
|
|
7134
7148
|
default: g(() => [
|
|
7135
|
-
|
|
7149
|
+
B(_(i.itemIcon(h)), 1)
|
|
7136
7150
|
]),
|
|
7137
7151
|
_: 2
|
|
7138
7152
|
}, 1032, ["color"])) : c("", !0),
|
|
7139
7153
|
w("span", {
|
|
7140
7154
|
innerHTML: h.label
|
|
7141
7155
|
}, null, 8, Ua),
|
|
7142
|
-
l.counts && (h.children || h.branch) ? (s(), u("span", qa, "(" + _(((
|
|
7156
|
+
l.counts && (h.children || h.branch) ? (s(), u("span", qa, "(" + _(((S = h.originalItem.children) == null ? void 0 : S.length) || 0) + ")", 1)) : c("", !0)
|
|
7143
7157
|
];
|
|
7144
7158
|
})
|
|
7145
7159
|
]),
|
|
@@ -7147,25 +7161,25 @@ function Xa(e, t, l, o, n, i) {
|
|
|
7147
7161
|
}, 1040, ["onClick", "onKeydown", "tabindex"])),
|
|
7148
7162
|
(s(), m(V(l.noTransition ? "div" : "w-transition-expand"), {
|
|
7149
7163
|
y: !l.noTransition || null,
|
|
7150
|
-
onAfterEnter: (
|
|
7151
|
-
onAfterLeave: (
|
|
7164
|
+
onAfterEnter: (S) => e.$emit("open", i.emitPayload(h)),
|
|
7165
|
+
onAfterLeave: (S) => e.$emit("close", i.emitPayload(h))
|
|
7152
7166
|
}, {
|
|
7153
7167
|
default: g(() => [
|
|
7154
7168
|
h.children && h.open ? (s(), m(d, C({ key: 0 }, e.$props, {
|
|
7155
7169
|
depth: l.depth + 1,
|
|
7156
7170
|
data: h.originalItem.children,
|
|
7157
7171
|
parent: h,
|
|
7158
|
-
onBeforeOpen: t[0] || (t[0] = (
|
|
7159
|
-
onOpen: t[1] || (t[1] = (
|
|
7160
|
-
onBeforeClose: t[2] || (t[2] = (
|
|
7161
|
-
onClose: t[3] || (t[3] = (
|
|
7162
|
-
onClick: t[4] || (t[4] = (
|
|
7163
|
-
onSelect: t[5] || (t[5] = (
|
|
7164
|
-
"onUpdate:modelValue": t[6] || (t[6] = (
|
|
7172
|
+
onBeforeOpen: t[0] || (t[0] = (S) => e.$emit("before-open", S)),
|
|
7173
|
+
onOpen: t[1] || (t[1] = (S) => e.$emit("open", S)),
|
|
7174
|
+
onBeforeClose: t[2] || (t[2] = (S) => e.$emit("before-close", S)),
|
|
7175
|
+
onClose: t[3] || (t[3] = (S) => e.$emit("close", S)),
|
|
7176
|
+
onClick: t[4] || (t[4] = (S) => e.$emit("click", S)),
|
|
7177
|
+
onSelect: t[5] || (t[5] = (S) => e.$emit("select", S)),
|
|
7178
|
+
"onUpdate:modelValue": t[6] || (t[6] = (S) => e.$emit("update:model-value", S))
|
|
7165
7179
|
}), {
|
|
7166
|
-
item: g(({ item:
|
|
7180
|
+
item: g(({ item: S, depth: b, path: R, open: x }) => [
|
|
7167
7181
|
p(e.$slots, "item", {
|
|
7168
|
-
item:
|
|
7182
|
+
item: S,
|
|
7169
7183
|
depth: b,
|
|
7170
7184
|
path: R,
|
|
7171
7185
|
open: x
|
|
@@ -7342,7 +7356,7 @@ const Ya = {
|
|
|
7342
7356
|
WBreadcrumbs: ut,
|
|
7343
7357
|
WButton: wt,
|
|
7344
7358
|
WCard: Ct,
|
|
7345
|
-
WCheckbox:
|
|
7359
|
+
WCheckbox: Ot,
|
|
7346
7360
|
WCheckboxes: Et,
|
|
7347
7361
|
WConfirm: Nt,
|
|
7348
7362
|
WDatePicker: Dt,
|
|
@@ -7355,7 +7369,7 @@ const Ya = {
|
|
|
7355
7369
|
WGrid: fl,
|
|
7356
7370
|
WIcon: bl,
|
|
7357
7371
|
WImage: kl,
|
|
7358
|
-
WInput:
|
|
7372
|
+
WInput: Ol,
|
|
7359
7373
|
WList: Ml,
|
|
7360
7374
|
WMenu: Al,
|
|
7361
7375
|
WNotification: Hl,
|
|
@@ -7365,8 +7379,8 @@ const Ya = {
|
|
|
7365
7379
|
WRadio: hi,
|
|
7366
7380
|
WRadios: gi,
|
|
7367
7381
|
WRating: vi,
|
|
7368
|
-
WScrollable:
|
|
7369
|
-
WSelect:
|
|
7382
|
+
WScrollable: Bi,
|
|
7383
|
+
WSelect: Pi,
|
|
7370
7384
|
WSlider: Xi,
|
|
7371
7385
|
WSpinner: Qi,
|
|
7372
7386
|
WSteps: ts,
|
|
@@ -7378,10 +7392,10 @@ const Ya = {
|
|
|
7378
7392
|
WTimeline: ga,
|
|
7379
7393
|
WToolbar: ya,
|
|
7380
7394
|
WTooltip: ka,
|
|
7381
|
-
WTransitionBounce:
|
|
7395
|
+
WTransitionBounce: Ba,
|
|
7382
7396
|
WTransitionExpand: Va,
|
|
7383
7397
|
WTransitionFade: Ta,
|
|
7384
|
-
WTransitionScale:
|
|
7398
|
+
WTransitionScale: Oa,
|
|
7385
7399
|
WTransitionScaleFade: Ma,
|
|
7386
7400
|
WTransitionSlide: Aa,
|
|
7387
7401
|
WTransitionSlideFade: Ha,
|