wave-ui 3.6.0 → 3.6.2
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.es.js +224 -218
- package/dist/wave-ui.umd.js +1 -1
- package/package.json +1 -1
- package/src/wave-ui/components/w-list.vue +5 -5
- package/src/wave-ui/components/w-menu.vue +4 -0
- package/src/wave-ui/components/w-select.vue +2 -1
- package/src/wave-ui/mixins/detachable.js +23 -5
- package/src/wave-ui/utils/dynamic-css.js +1 -0
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 Se, inject as Be, withKeys as W, withModifiers as E, renderSlot as p, toHandlers as z, 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";
|
|
13
13
|
const Ie = Q({
|
|
14
14
|
on: "#app",
|
|
15
15
|
breakpoints: {
|
|
@@ -60,7 +60,7 @@ const Ie = Q({
|
|
|
60
60
|
typeof o == "object" ? ye(e[l], t[l]) : t[l] = o;
|
|
61
61
|
}
|
|
62
62
|
return t;
|
|
63
|
-
}, U = (e) => console.warn(`Wave UI: ${e}`), le = (e) => console.error(`Wave UI: ${e}`), re = (e, t) => "#" + e.slice(1).match(/../g).map((l) => (l = +`0x${l}` + t, (l < 0 ? 0 : l > 255 ? 255 : l).toString(16).padStart(2, 0))).join(""),
|
|
63
|
+
}, U = (e) => console.warn(`Wave UI: ${e}`), le = (e) => console.error(`Wave UI: ${e}`), re = (e, t) => "#" + e.slice(1).match(/../g).map((l) => (l = +`0x${l}` + t, (l < 0 ? 0 : l > 255 ? 255 : l).toString(16).padStart(2, 0))).join(""), Te = (e) => {
|
|
64
64
|
["light", "dark"].forEach((t) => {
|
|
65
65
|
const l = e.colors[t];
|
|
66
66
|
l.shades = {};
|
|
@@ -437,7 +437,7 @@ const Ie = Q({
|
|
|
437
437
|
baseIncrement: 4
|
|
438
438
|
};
|
|
439
439
|
let se = { keys: [], values: [] }, he = null;
|
|
440
|
-
const
|
|
440
|
+
const Re = (e) => {
|
|
441
441
|
let t = "";
|
|
442
442
|
const l = {}, { info: o, warning: n, success: i, error: a, shades: r, ...d } = e, { cssScope: h } = q;
|
|
443
443
|
for (const b in d)
|
|
@@ -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
|
|
451
|
-
return Object.entries(l).forEach(([b,
|
|
452
|
-
|
|
453
|
-
}), `:root{${
|
|
450
|
+
let B = "";
|
|
451
|
+
return Object.entries(l).forEach(([b, T]) => {
|
|
452
|
+
B += `--w-${b}-color: ${T};`;
|
|
453
|
+
}), `:root{${B}}${t}`;
|
|
454
454
|
}, Le = (e, t) => {
|
|
455
455
|
let l = "";
|
|
456
456
|
const { cssScope: o } = q;
|
|
@@ -480,6 +480,7 @@ const Te = (e) => {
|
|
|
480
480
|
"text-nowrap{white-space:nowrap}",
|
|
481
481
|
"row{flex-direction:row}",
|
|
482
482
|
"column{flex-direction:column}",
|
|
483
|
+
"column-reverse{flex-direction:column-reverse}",
|
|
483
484
|
"grow{flex-grow:1;flex-basis:auto}",
|
|
484
485
|
"no-grow{flex-grow:0}",
|
|
485
486
|
"shrink{flex-shrink:1;margin-left:auto;margin-right:auto}",
|
|
@@ -533,7 +534,7 @@ const Te = (e) => {
|
|
|
533
534
|
}, Pe = (e) => {
|
|
534
535
|
if (!document.getElementById("wave-ui-colors")) {
|
|
535
536
|
const t = document.createElement("style");
|
|
536
|
-
t.id = "wave-ui-colors", t.innerHTML =
|
|
537
|
+
t.id = "wave-ui-colors", t.innerHTML = Re(e);
|
|
537
538
|
const l = document.head.querySelectorAll('style,link[rel="stylesheet"]')[0];
|
|
538
539
|
l ? l.before(t) : document.head.appendChild(t);
|
|
539
540
|
}
|
|
@@ -646,7 +647,7 @@ H = new WeakMap(), ee(G, H, void 0);
|
|
|
646
647
|
const Ne = (e, t, l) => {
|
|
647
648
|
const o = document.createElement("div");
|
|
648
649
|
e.appendChild(o);
|
|
649
|
-
const n = Ce(
|
|
650
|
+
const n = Ce(Se({
|
|
650
651
|
...Ae,
|
|
651
652
|
inject: ["$waveui"]
|
|
652
653
|
})).provide("$waveui", l);
|
|
@@ -717,7 +718,7 @@ const j = class {
|
|
|
717
718
|
l.colors.light || (l.colors.light = a), l.colors.dark || (l.colors.dark = a), l.colors = { light: l.colors.light, dark: l.colors.dark };
|
|
718
719
|
}
|
|
719
720
|
let { components: o, ...n } = l;
|
|
720
|
-
n = this.$waveui.config = ye(n), n.css.colorShades &&
|
|
721
|
+
n = this.$waveui.config = ye(n), n.css.colorShades && Te(n);
|
|
721
722
|
const i = Q(this.$waveui);
|
|
722
723
|
t.config.globalProperties.$waveui = i, t.provide("$waveui", i), n.theme !== "auto" && (this.$waveui.colors = de(n.colors[n.theme], ue));
|
|
723
724
|
}
|
|
@@ -742,7 +743,7 @@ const j = class {
|
|
|
742
743
|
beforeMount() {
|
|
743
744
|
if (!pe) {
|
|
744
745
|
pe = !0;
|
|
745
|
-
const i =
|
|
746
|
+
const i = Be("$waveui"), { config: a } = i, r = document.querySelector(a.on) || document.body;
|
|
746
747
|
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
748
|
}
|
|
748
749
|
}
|
|
@@ -766,7 +767,7 @@ function qe(e, t, l, o, n, i) {
|
|
|
766
767
|
class: f(["w-accordion__item-title", l.titleClass]),
|
|
767
768
|
onClick: (y) => !d._disabled && i.toggleItem(d, y),
|
|
768
769
|
onFocus: (y) => e.$emit("focus", i.getOriginalItem(d)),
|
|
769
|
-
onKeypress:
|
|
770
|
+
onKeypress: W((y) => !d._disabled && i.toggleItem(d, y), ["enter"]),
|
|
770
771
|
tabindex: !d._disabled && 0
|
|
771
772
|
}, [
|
|
772
773
|
l.expandIcon && !l.expandIconRight ? (s(), m(a, {
|
|
@@ -777,9 +778,9 @@ function qe(e, t, l, o, n, i) {
|
|
|
777
778
|
disabled: d._disabled || null,
|
|
778
779
|
tabindex: -1,
|
|
779
780
|
text: "",
|
|
780
|
-
onKeypress: t[0] || (t[0] =
|
|
781
|
+
onKeypress: t[0] || (t[0] = E(() => {
|
|
781
782
|
}, ["stop"])),
|
|
782
|
-
onClick:
|
|
783
|
+
onClick: E((y) => !d._disabled && i.toggleItem(d, y), ["stop"])
|
|
783
784
|
}, null, 8, ["icon", "icon-props", "disabled", "onClick", "class"])) : c("", !0),
|
|
784
785
|
e.$slots[`item-title.${d.id || h + 1}`] ? p(e.$slots, `item-title.${d.id || h + 1}`, {
|
|
785
786
|
key: 1,
|
|
@@ -802,9 +803,9 @@ function qe(e, t, l, o, n, i) {
|
|
|
802
803
|
class: f(["w-accordion__expand-icon", { "w-accordion__expand-icon--expanded": d._expanded, "w-accordion__expand-icon--rotate90": l.expandIconRotate90 }]),
|
|
803
804
|
icon: d._expanded && l.collapseIcon || l.expandIcon,
|
|
804
805
|
text: "",
|
|
805
|
-
onKeypress: t[1] || (t[1] =
|
|
806
|
+
onKeypress: t[1] || (t[1] = E(() => {
|
|
806
807
|
}, ["stop"])),
|
|
807
|
-
onClick:
|
|
808
|
+
onClick: E((y) => !d._disabled && i.toggleItem(d, y), ["stop"])
|
|
808
809
|
}, null, 8, ["icon", "onClick", "class"])) : c("", !0)
|
|
809
810
|
], 42, Fe),
|
|
810
811
|
I(r, {
|
|
@@ -931,14 +932,14 @@ function Je(e, t, l, o, n, i) {
|
|
|
931
932
|
return n.show ? (s(), u("div", C({
|
|
932
933
|
key: 0,
|
|
933
934
|
class: "w-alert"
|
|
934
|
-
},
|
|
935
|
+
}, z(e.$attrs, !0), { class: i.classes }), [
|
|
935
936
|
i.type || l.icon || l.dismiss ? (s(), u(k, { key: 0 }, [
|
|
936
937
|
i.type || l.icon ? (s(), m(a, {
|
|
937
938
|
key: 0,
|
|
938
939
|
class: "w-alert__icon mr2"
|
|
939
940
|
}, {
|
|
940
941
|
default: g(() => [
|
|
941
|
-
|
|
942
|
+
S(_(i.type ? i.typeIcon : l.icon), 1)
|
|
942
943
|
]),
|
|
943
944
|
_: 1
|
|
944
945
|
})) : c("", !0),
|
|
@@ -1061,7 +1062,7 @@ const lt = {
|
|
|
1061
1062
|
}
|
|
1062
1063
|
}, it = /* @__PURE__ */ v(lt, [["render", tt]]);
|
|
1063
1064
|
function st(e, t, l, o, n, i) {
|
|
1064
|
-
return s(), u("div", C({ class: "w-badge-wrap" },
|
|
1065
|
+
return s(), u("div", C({ class: "w-badge-wrap" }, z(e.$attrs, !0)), [
|
|
1065
1066
|
p(e.$slots, "default"),
|
|
1066
1067
|
I(O, {
|
|
1067
1068
|
name: `${l.transition}`
|
|
@@ -1070,14 +1071,14 @@ function st(e, t, l, o, n, i) {
|
|
|
1070
1071
|
l.modelValue ? (s(), u("div", {
|
|
1071
1072
|
key: 0,
|
|
1072
1073
|
class: f(["w-badge", i.classes]),
|
|
1073
|
-
style:
|
|
1074
|
+
style: R(i.styles),
|
|
1074
1075
|
"aria-atomic": "true",
|
|
1075
1076
|
"aria-label": "Badge",
|
|
1076
1077
|
"aria-live": "polite",
|
|
1077
1078
|
role: "status"
|
|
1078
1079
|
}, [
|
|
1079
1080
|
l.dot ? c("", !0) : p(e.$slots, "badge", { key: 0 }, () => [
|
|
1080
|
-
|
|
1081
|
+
S(_(l.modelValue === !0 ? "" : l.modelValue || ""), 1)
|
|
1081
1082
|
])
|
|
1082
1083
|
], 6)) : c("", !0)
|
|
1083
1084
|
]),
|
|
@@ -1165,7 +1166,7 @@ function rt(e, t, l, o, n, i) {
|
|
|
1165
1166
|
key: `${d}b`
|
|
1166
1167
|
}, {
|
|
1167
1168
|
default: g(() => [
|
|
1168
|
-
|
|
1169
|
+
S(_(l.icon), 1)
|
|
1169
1170
|
]),
|
|
1170
1171
|
_: 2
|
|
1171
1172
|
}, 1032, ["class"])) : c("", !0),
|
|
@@ -1254,11 +1255,11 @@ function pt(e, t, l, o, n, i) {
|
|
|
1254
1255
|
type: !l.route && l.type,
|
|
1255
1256
|
href: l.route && (i.externalLink ? l.route : i.resolvedRoute) || null,
|
|
1256
1257
|
disabled: !!l.disabled || null
|
|
1257
|
-
},
|
|
1258
|
+
}, z(i.listeners), { style: i.styles }), {
|
|
1258
1259
|
default: g(() => [
|
|
1259
1260
|
l.icon ? (s(), m(a, ie(C({ key: 0 }, l.iconProps || {})), {
|
|
1260
1261
|
default: g(() => [
|
|
1261
|
-
|
|
1262
|
+
S(_(l.icon), 1)
|
|
1262
1263
|
]),
|
|
1263
1264
|
_: 1
|
|
1264
1265
|
}, 16)) : p(e.$slots, "default", { key: 1 }),
|
|
@@ -1371,7 +1372,7 @@ function bt(e, t, l, o, n, i) {
|
|
|
1371
1372
|
const a = $("button-partial");
|
|
1372
1373
|
return l.tooltip ? (s(), m(V("w-tooltip"), ie(C({ key: 0 }, l.tooltipProps || {})), {
|
|
1373
1374
|
activator: g(({ on: r }) => [
|
|
1374
|
-
I(a, C(i.buttonProps,
|
|
1375
|
+
I(a, C(i.buttonProps, z(r)), {
|
|
1375
1376
|
default: g(() => [
|
|
1376
1377
|
p(e.$slots, "default")
|
|
1377
1378
|
]),
|
|
@@ -1526,7 +1527,7 @@ const _t = {
|
|
|
1526
1527
|
};
|
|
1527
1528
|
}
|
|
1528
1529
|
}
|
|
1529
|
-
}, Ct = /* @__PURE__ */ v(_t, [["render", kt]]),
|
|
1530
|
+
}, Ct = /* @__PURE__ */ v(_t, [["render", kt]]), M = {
|
|
1530
1531
|
inject: {
|
|
1531
1532
|
formRegister: { default: null },
|
|
1532
1533
|
formProps: { default: () => ({ disabled: !1, readonly: !1 }) }
|
|
@@ -1567,11 +1568,11 @@ const _t = {
|
|
|
1567
1568
|
this.$refs.formEl.validate(this);
|
|
1568
1569
|
}
|
|
1569
1570
|
}
|
|
1570
|
-
},
|
|
1571
|
+
}, St = ["id", "name", "checked", "disabled", "required", "tabindex", "aria-checked"], Bt = ["for"], $t = ["for", "innerHTML"], Vt = /* @__PURE__ */ w("svg", { viewBox: "-0.5 0 12 10" }, [
|
|
1571
1572
|
/* @__PURE__ */ w("polyline", { points: "1 5 4 8 10 2" })
|
|
1572
1573
|
], -1), It = [
|
|
1573
1574
|
Vt
|
|
1574
|
-
],
|
|
1575
|
+
], Tt = ["for"], Rt = ["for", "innerHTML"];
|
|
1575
1576
|
function Lt(e, t, l, o, n, i) {
|
|
1576
1577
|
return s(), m(V(e.formRegister && !i.wCheckboxes ? "w-form-element" : "div"), C({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: n.isChecked, disabled: e.isDisabled, readonly: e.isReadonly }, {
|
|
1577
1578
|
valid: e.valid,
|
|
@@ -1594,10 +1595,10 @@ function Lt(e, t, l, o, n, i) {
|
|
|
1594
1595
|
onFocus: t[0] || (t[0] = (a) => e.$emit("focus", a)),
|
|
1595
1596
|
onBlur: t[1] || (t[1] = (a) => e.$emit("blur", a)),
|
|
1596
1597
|
onChange: t[2] || (t[2] = (a) => i.onInput()),
|
|
1597
|
-
onKeypress: t[3] || (t[3] =
|
|
1598
|
+
onKeypress: t[3] || (t[3] = W((...a) => i.onInput && i.onInput(...a), ["enter"])),
|
|
1598
1599
|
"aria-checked": n.isChecked || "false",
|
|
1599
1600
|
role: "checkbox"
|
|
1600
|
-
}, null, 40,
|
|
1601
|
+
}, null, 40, St),
|
|
1601
1602
|
i.hasLabel && l.labelOnLeft ? (s(), u(k, { key: 0 }, [
|
|
1602
1603
|
e.$slots.default ? (s(), u("label", {
|
|
1603
1604
|
key: 0,
|
|
@@ -1605,9 +1606,9 @@ function Lt(e, t, l, o, n, i) {
|
|
|
1605
1606
|
for: `w-checkbox--${e._.uid}`
|
|
1606
1607
|
}, [
|
|
1607
1608
|
p(e.$slots, "default", {}, () => [
|
|
1608
|
-
|
|
1609
|
+
S(_(l.label), 1)
|
|
1609
1610
|
])
|
|
1610
|
-
], 10,
|
|
1611
|
+
], 10, Bt)) : l.label ? (s(), u("label", {
|
|
1611
1612
|
key: 1,
|
|
1612
1613
|
class: f(["w-checkbox__label w-form-el-shakable pr2", e.labelClasses]),
|
|
1613
1614
|
for: `w-checkbox--${e._.uid}`,
|
|
@@ -1627,14 +1628,14 @@ function Lt(e, t, l, o, n, i) {
|
|
|
1627
1628
|
for: `w-checkbox--${e._.uid}`
|
|
1628
1629
|
}, [
|
|
1629
1630
|
p(e.$slots, "default", {}, () => [
|
|
1630
|
-
|
|
1631
|
+
S(_(l.label), 1)
|
|
1631
1632
|
])
|
|
1632
|
-
], 10,
|
|
1633
|
+
], 10, Tt)) : l.label ? (s(), u("label", {
|
|
1633
1634
|
key: 1,
|
|
1634
1635
|
class: f(["w-checkbox__label w-form-el-shakable pl2", e.labelClasses]),
|
|
1635
1636
|
for: `w-checkbox--${e._.uid}`,
|
|
1636
1637
|
innerHTML: l.label
|
|
1637
|
-
}, null, 10,
|
|
1638
|
+
}, null, 10, Rt)) : c("", !0)
|
|
1638
1639
|
], 64)) : c("", !0)
|
|
1639
1640
|
]),
|
|
1640
1641
|
_: 3
|
|
@@ -1642,7 +1643,7 @@ function Lt(e, t, l, o, n, i) {
|
|
|
1642
1643
|
}
|
|
1643
1644
|
const xt = {
|
|
1644
1645
|
name: "w-checkbox",
|
|
1645
|
-
mixins: [
|
|
1646
|
+
mixins: [M],
|
|
1646
1647
|
inject: {
|
|
1647
1648
|
wCheckboxes: { default: null }
|
|
1648
1649
|
},
|
|
@@ -1743,7 +1744,7 @@ function zt(e, t, l, o, n, i) {
|
|
|
1743
1744
|
}
|
|
1744
1745
|
const Mt = {
|
|
1745
1746
|
name: "w-checkboxes",
|
|
1746
|
-
mixins: [
|
|
1747
|
+
mixins: [M],
|
|
1747
1748
|
props: {
|
|
1748
1749
|
items: { type: Array, required: !0 },
|
|
1749
1750
|
modelValue: { type: Array },
|
|
@@ -1817,7 +1818,7 @@ function Wt(e, t, l, o, n, i) {
|
|
|
1817
1818
|
default: g(() => [
|
|
1818
1819
|
w("div", null, [
|
|
1819
1820
|
p(e.$slots, "question", {}, () => [
|
|
1820
|
-
|
|
1821
|
+
S(_(l.question), 1)
|
|
1821
1822
|
])
|
|
1822
1823
|
]),
|
|
1823
1824
|
w("div", {
|
|
@@ -1828,24 +1829,24 @@ function Wt(e, t, l, o, n, i) {
|
|
|
1828
1829
|
class: "mr2"
|
|
1829
1830
|
}, i.cancelButtonProps, {
|
|
1830
1831
|
"bg-color": (i.cancelButton || {}).bgColor || "error",
|
|
1831
|
-
onKeyup: t[0] || (t[0] =
|
|
1832
|
+
onKeyup: t[0] || (t[0] = W((y) => !l.persistent && i.onCancel(), ["escape"])),
|
|
1832
1833
|
onClick: i.onCancel
|
|
1833
1834
|
}), {
|
|
1834
1835
|
default: g(() => [
|
|
1835
1836
|
p(e.$slots, "cancel", {}, () => [
|
|
1836
|
-
|
|
1837
|
+
S(_(i.cancelButton.label), 1)
|
|
1837
1838
|
])
|
|
1838
1839
|
]),
|
|
1839
1840
|
_: 3
|
|
1840
1841
|
}, 16, ["bg-color", "onClick"])) : c("", !0),
|
|
1841
1842
|
N((s(), m(a, C(i.confirmButtonProps, {
|
|
1842
1843
|
"bg-color": (i.confirmButton || {}).bgColor || "success",
|
|
1843
|
-
onKeyup: t[1] || (t[1] =
|
|
1844
|
+
onKeyup: t[1] || (t[1] = W((y) => !l.persistent && i.onCancel(), ["escape"])),
|
|
1844
1845
|
onClick: i.onConfirm
|
|
1845
1846
|
}), {
|
|
1846
1847
|
default: g(() => [
|
|
1847
1848
|
p(e.$slots, "confirm", {}, () => [
|
|
1848
|
-
|
|
1849
|
+
S(_(i.confirmButton.label), 1)
|
|
1849
1850
|
])
|
|
1850
1851
|
]),
|
|
1851
1852
|
_: 3
|
|
@@ -1957,7 +1958,7 @@ const At = {
|
|
|
1957
1958
|
function Kt(e, t, l, o, n, i) {
|
|
1958
1959
|
return s(), u("div", {
|
|
1959
1960
|
class: f(["w-date-picker", i.classes]),
|
|
1960
|
-
style:
|
|
1961
|
+
style: R(i.styles)
|
|
1961
1962
|
}, [
|
|
1962
1963
|
p(e.$slots, "default")
|
|
1963
1964
|
], 6);
|
|
@@ -2009,7 +2010,7 @@ function Ft(e, t, l, o, n, i) {
|
|
|
2009
2010
|
"title-class": l.titleClass,
|
|
2010
2011
|
"content-class": l.contentClass,
|
|
2011
2012
|
title: l.title || void 0,
|
|
2012
|
-
style:
|
|
2013
|
+
style: R(i.contentStyles)
|
|
2013
2014
|
}, Z({
|
|
2014
2015
|
default: g(() => [
|
|
2015
2016
|
p(e.$slots, "default")
|
|
@@ -2147,7 +2148,7 @@ function Qt(e, t, l, o, n, i) {
|
|
|
2147
2148
|
l.pushContent ? (s(), u("div", {
|
|
2148
2149
|
key: 0,
|
|
2149
2150
|
class: "w-drawer-wrap__track",
|
|
2150
|
-
style:
|
|
2151
|
+
style: R(i.trackStyles)
|
|
2151
2152
|
}, [
|
|
2152
2153
|
w("div", Jt, [
|
|
2153
2154
|
l.noOverlay ? c("", !0) : (s(), m(a, {
|
|
@@ -2172,7 +2173,7 @@ function Qt(e, t, l, o, n, i) {
|
|
|
2172
2173
|
key: 0,
|
|
2173
2174
|
class: f(["w-drawer", i.drawerClasses]),
|
|
2174
2175
|
ref: "drawer",
|
|
2175
|
-
style:
|
|
2176
|
+
style: R(i.styles)
|
|
2176
2177
|
}, {
|
|
2177
2178
|
default: g(() => [
|
|
2178
2179
|
p(e.$slots, "default")
|
|
@@ -2204,7 +2205,7 @@ function Qt(e, t, l, o, n, i) {
|
|
|
2204
2205
|
key: 0,
|
|
2205
2206
|
class: f(["w-drawer", i.drawerClasses]),
|
|
2206
2207
|
ref: "drawer",
|
|
2207
|
-
style:
|
|
2208
|
+
style: R(i.styles)
|
|
2208
2209
|
}, {
|
|
2209
2210
|
default: g(() => [
|
|
2210
2211
|
p(e.$slots, "default")
|
|
@@ -2506,7 +2507,7 @@ function dl(e, t, l, o, n, i) {
|
|
|
2506
2507
|
p(e.$slots, "error-message", {
|
|
2507
2508
|
message: e.Validation.message
|
|
2508
2509
|
}, () => [
|
|
2509
|
-
|
|
2510
|
+
S(_(e.Validation.message), 1)
|
|
2510
2511
|
])
|
|
2511
2512
|
], 2)) : c("", !0)
|
|
2512
2513
|
]),
|
|
@@ -2637,7 +2638,7 @@ const pl = {
|
|
|
2637
2638
|
}
|
|
2638
2639
|
}, fl = /* @__PURE__ */ v(pl, [["render", cl]]);
|
|
2639
2640
|
function gl(e, t, l, o, n, i) {
|
|
2640
|
-
return s(), m(V(l.tag || "i"), C({ class: "w-icon" },
|
|
2641
|
+
return s(), m(V(l.tag || "i"), C({ class: "w-icon" }, z(e.$attrs), {
|
|
2641
2642
|
class: i.classes,
|
|
2642
2643
|
role: "icon",
|
|
2643
2644
|
"aria-hidden": "true",
|
|
@@ -2645,7 +2646,7 @@ function gl(e, t, l, o, n, i) {
|
|
|
2645
2646
|
}), {
|
|
2646
2647
|
default: g(() => [
|
|
2647
2648
|
i.hasLigature ? (s(), u(k, { key: 0 }, [
|
|
2648
|
-
|
|
2649
|
+
S(_(e.icon), 1)
|
|
2649
2650
|
], 64)) : c("", !0)
|
|
2650
2651
|
]),
|
|
2651
2652
|
_: 1
|
|
@@ -2728,7 +2729,7 @@ function wl(e, t, l, o, n, i) {
|
|
|
2728
2729
|
const a = $("w-progress");
|
|
2729
2730
|
return s(), m(V(i.wrapperTag), {
|
|
2730
2731
|
class: f(["w-image-wrap", i.wrapperClasses]),
|
|
2731
|
-
style:
|
|
2732
|
+
style: R(i.wrapperStyles)
|
|
2732
2733
|
}, {
|
|
2733
2734
|
default: g(() => [
|
|
2734
2735
|
I(O, {
|
|
@@ -2739,7 +2740,7 @@ function wl(e, t, l, o, n, i) {
|
|
|
2739
2740
|
n.loaded ? (s(), m(V(l.tag), {
|
|
2740
2741
|
key: 0,
|
|
2741
2742
|
class: f(["w-image", i.imageClasses]),
|
|
2742
|
-
style:
|
|
2743
|
+
style: R(i.imageStyles),
|
|
2743
2744
|
src: l.tag === "img" ? n.imgSrc : null
|
|
2744
2745
|
}, null, 8, ["class", "style", "src"])) : c("", !0)
|
|
2745
2746
|
]),
|
|
@@ -2861,10 +2862,10 @@ const vl = {
|
|
|
2861
2862
|
this.imgHeight = e;
|
|
2862
2863
|
}
|
|
2863
2864
|
}
|
|
2864
|
-
}, kl = /* @__PURE__ */ v(vl, [["render", wl]]), _l = ["name"], Cl = ["for"],
|
|
2865
|
+
}, 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", "disabled", "data-progress"], $l = {
|
|
2865
2866
|
class: "w-input__no-file",
|
|
2866
2867
|
key: "no-file"
|
|
2867
|
-
}, Vl = ["for"], Il = ["for"],
|
|
2868
|
+
}, Vl = ["for"], Il = ["for"], Tl = ["src"], Rl = ["for"];
|
|
2868
2869
|
function Ll(e, t, l, o, n, i) {
|
|
2869
2870
|
const a = $("w-icon"), r = $("w-progress");
|
|
2870
2871
|
return s(), m(V(e.formRegister ? "w-form-element" : "div"), C({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: n.inputValue, disabled: e.isDisabled, readonly: e.isReadonly, isFocused: n.isFocused }, {
|
|
@@ -2892,7 +2893,7 @@ function Ll(e, t, l, o, n, i) {
|
|
|
2892
2893
|
for: `w-input--${e._.uid}`
|
|
2893
2894
|
}, [
|
|
2894
2895
|
p(e.$slots, "default", {}, () => [
|
|
2895
|
-
|
|
2896
|
+
S(_(l.label), 1)
|
|
2896
2897
|
])
|
|
2897
2898
|
], 10, Cl)) : c("", !0)
|
|
2898
2899
|
], 64)) : c("", !0),
|
|
@@ -2907,7 +2908,7 @@ function Ll(e, t, l, o, n, i) {
|
|
|
2907
2908
|
onClick: t[1] || (t[1] = (d) => e.$emit("click:inner-icon-left", d))
|
|
2908
2909
|
}, {
|
|
2909
2910
|
default: g(() => [
|
|
2910
|
-
|
|
2911
|
+
S(_(l.innerIconLeft), 1)
|
|
2911
2912
|
]),
|
|
2912
2913
|
_: 1
|
|
2913
2914
|
}, 8, ["for"])) : c("", !0),
|
|
@@ -2916,7 +2917,7 @@ function Ll(e, t, l, o, n, i) {
|
|
|
2916
2917
|
class: "w-input__input",
|
|
2917
2918
|
ref: "input",
|
|
2918
2919
|
"onUpdate:modelValue": t[2] || (t[2] = (d) => n.inputValue = d)
|
|
2919
|
-
},
|
|
2920
|
+
}, z(i.listeners, !0), {
|
|
2920
2921
|
onInput: t[3] || (t[3] = (...d) => i.onInput && i.onInput(...d)),
|
|
2921
2922
|
onFocus: t[4] || (t[4] = (...d) => i.onFocus && i.onFocus(...d)),
|
|
2922
2923
|
onBlur: t[5] || (t[5] = (...d) => i.onBlur && i.onBlur(...d)),
|
|
@@ -2934,7 +2935,7 @@ function Ll(e, t, l, o, n, i) {
|
|
|
2934
2935
|
disabled: e.isDisabled || null,
|
|
2935
2936
|
required: e.required || null,
|
|
2936
2937
|
tabindex: e.tabindex || null
|
|
2937
|
-
}, i.attrs), null, 16,
|
|
2938
|
+
}, i.attrs), null, 16, Sl)), [
|
|
2938
2939
|
[$e, n.inputValue]
|
|
2939
2940
|
]) : (s(), u(k, { key: 2 }, [
|
|
2940
2941
|
w("input", C({
|
|
@@ -2949,7 +2950,7 @@ function Ll(e, t, l, o, n, i) {
|
|
|
2949
2950
|
}, i.attrs, {
|
|
2950
2951
|
disabled: e.isDisabled || null,
|
|
2951
2952
|
"data-progress": i.overallFilesProgress
|
|
2952
|
-
}), null, 16,
|
|
2953
|
+
}), null, 16, Bl),
|
|
2953
2954
|
I(ae, {
|
|
2954
2955
|
class: "w-input__input w-input__input--file",
|
|
2955
2956
|
tag: "label",
|
|
@@ -2960,19 +2961,19 @@ function Ll(e, t, l, o, n, i) {
|
|
|
2960
2961
|
!n.inputFiles.length && n.isFocused ? (s(), u("span", $l, [
|
|
2961
2962
|
p(e.$slots, "no-file", {}, () => [
|
|
2962
2963
|
e.$slots["no-file"] === void 0 ? (s(), u(k, { key: 0 }, [
|
|
2963
|
-
|
|
2964
|
+
S("No file")
|
|
2964
2965
|
], 64)) : c("", !0)
|
|
2965
2966
|
])
|
|
2966
2967
|
])) : c("", !0),
|
|
2967
2968
|
(s(!0), u(k, null, L(n.inputFiles, (d, h) => (s(), u("span", {
|
|
2968
2969
|
key: d.lastModified
|
|
2969
2970
|
}, [
|
|
2970
|
-
|
|
2971
|
+
S(_(h ? ", " : ""), 1),
|
|
2971
2972
|
(s(), u("span", {
|
|
2972
2973
|
class: "filename",
|
|
2973
2974
|
key: `${h}b`
|
|
2974
2975
|
}, _(d.base), 1)),
|
|
2975
|
-
|
|
2976
|
+
S(_(d.extension ? `.${d.extension}` : ""), 1)
|
|
2976
2977
|
]))), 128))
|
|
2977
2978
|
]),
|
|
2978
2979
|
_: 3
|
|
@@ -2985,7 +2986,7 @@ function Ll(e, t, l, o, n, i) {
|
|
|
2985
2986
|
for: `w-input--${e._.uid}`
|
|
2986
2987
|
}, [
|
|
2987
2988
|
p(e.$slots, "default", {}, () => [
|
|
2988
|
-
|
|
2989
|
+
S(_(l.label), 1)
|
|
2989
2990
|
])
|
|
2990
2991
|
], 10, Vl)) : c("", !0)
|
|
2991
2992
|
], 64)) : c("", !0),
|
|
@@ -2997,7 +2998,7 @@ function Ll(e, t, l, o, n, i) {
|
|
|
2997
2998
|
onClick: t[9] || (t[9] = (d) => e.$emit("click:inner-icon-right", d))
|
|
2998
2999
|
}, {
|
|
2999
3000
|
default: g(() => [
|
|
3000
|
-
|
|
3001
|
+
S(_(l.innerIconRight), 1)
|
|
3001
3002
|
]),
|
|
3002
3003
|
_: 1
|
|
3003
3004
|
}, 8, ["for"])) : c("", !0),
|
|
@@ -3023,7 +3024,7 @@ function Ll(e, t, l, o, n, i) {
|
|
|
3023
3024
|
key: `${h}b`,
|
|
3024
3025
|
src: d.preview,
|
|
3025
3026
|
alt: ""
|
|
3026
|
-
}, null, 8,
|
|
3027
|
+
}, null, 8, Tl)) : (s(), u("i", {
|
|
3027
3028
|
class: f(["w-icon w-input__file-preview primary size--md", l.preview && typeof l.preview == "string" ? l.preview : "wi-file"]),
|
|
3028
3029
|
key: `${h}c`
|
|
3029
3030
|
}, null, 2))
|
|
@@ -3036,9 +3037,9 @@ function Ll(e, t, l, o, n, i) {
|
|
|
3036
3037
|
for: `w-input--${e._.uid}`
|
|
3037
3038
|
}, [
|
|
3038
3039
|
p(e.$slots, "default", {}, () => [
|
|
3039
|
-
|
|
3040
|
+
S(_(l.label), 1)
|
|
3040
3041
|
])
|
|
3041
|
-
], 10,
|
|
3042
|
+
], 10, Rl)) : c("", !0)
|
|
3042
3043
|
], 64)) : c("", !0)
|
|
3043
3044
|
], 64))
|
|
3044
3045
|
]),
|
|
@@ -3047,7 +3048,7 @@ function Ll(e, t, l, o, n, i) {
|
|
|
3047
3048
|
}
|
|
3048
3049
|
const xl = {
|
|
3049
3050
|
name: "w-input",
|
|
3050
|
-
mixins: [
|
|
3051
|
+
mixins: [M],
|
|
3051
3052
|
props: {
|
|
3052
3053
|
modelValue: { default: "" },
|
|
3053
3054
|
type: { type: String, default: "text" },
|
|
@@ -3229,7 +3230,7 @@ function Pl(e, t, l, o, n, i) {
|
|
|
3229
3230
|
class: "w-list__item-bullet"
|
|
3230
3231
|
}, {
|
|
3231
3232
|
default: g(() => [
|
|
3232
|
-
|
|
3233
|
+
S(_(l.icon), 1)
|
|
3233
3234
|
]),
|
|
3234
3235
|
_: 1
|
|
3235
3236
|
})) : c("", !0),
|
|
@@ -3254,7 +3255,7 @@ function Pl(e, t, l, o, n, i) {
|
|
|
3254
3255
|
index: h + 1,
|
|
3255
3256
|
selected: d._selected
|
|
3256
3257
|
}, () => [
|
|
3257
|
-
|
|
3258
|
+
S(_(d._label), 1)
|
|
3258
3259
|
])
|
|
3259
3260
|
]),
|
|
3260
3261
|
_: 2
|
|
@@ -3272,23 +3273,23 @@ function Pl(e, t, l, o, n, i) {
|
|
|
3272
3273
|
}), Z({ _: 2 }, [
|
|
3273
3274
|
e.$slots.item ? {
|
|
3274
3275
|
name: "item",
|
|
3275
|
-
fn: g(({ item: y, index:
|
|
3276
|
+
fn: g(({ item: y, index: B, selected: b }) => [
|
|
3276
3277
|
p(e.$slots, "item", {
|
|
3277
3278
|
item: i.cleanLi(y),
|
|
3278
|
-
index:
|
|
3279
|
+
index: B,
|
|
3279
3280
|
selected: b
|
|
3280
3281
|
})
|
|
3281
3282
|
]),
|
|
3282
3283
|
key: "0"
|
|
3283
3284
|
} : {
|
|
3284
3285
|
name: "default",
|
|
3285
|
-
fn: g(({ item: y, index:
|
|
3286
|
+
fn: g(({ item: y, index: B, selected: b }) => [
|
|
3286
3287
|
p(e.$slots, "default", {
|
|
3287
3288
|
item: i.cleanLi(y),
|
|
3288
|
-
index:
|
|
3289
|
+
index: B,
|
|
3289
3290
|
selected: b
|
|
3290
3291
|
}, () => [
|
|
3291
|
-
|
|
3292
|
+
S(_(y[l.itemLabelKey]), 1)
|
|
3292
3293
|
])
|
|
3293
3294
|
]),
|
|
3294
3295
|
key: "1"
|
|
@@ -3437,9 +3438,10 @@ const zl = {
|
|
|
3437
3438
|
}));
|
|
3438
3439
|
},
|
|
3439
3440
|
applySelectionOnItems(e) {
|
|
3440
|
-
this.isMultipleSelect || this.listItems.forEach((
|
|
3441
|
-
|
|
3442
|
-
|
|
3441
|
+
this.isMultipleSelect || this.listItems.forEach((l) => l._selected = !1);
|
|
3442
|
+
const t = this.checkSelection(e);
|
|
3443
|
+
this.listItems.forEach((l) => {
|
|
3444
|
+
l._selected = t.find((o) => l._value === o) !== void 0;
|
|
3443
3445
|
});
|
|
3444
3446
|
}
|
|
3445
3447
|
},
|
|
@@ -3482,7 +3484,8 @@ const zl = {
|
|
|
3482
3484
|
detachableDefaultRoot: { default: null }
|
|
3483
3485
|
},
|
|
3484
3486
|
data: () => ({
|
|
3485
|
-
docEventListenersHandlers: []
|
|
3487
|
+
docEventListenersHandlers: [],
|
|
3488
|
+
openTimeout: null
|
|
3486
3489
|
}),
|
|
3487
3490
|
computed: {
|
|
3488
3491
|
appendToTarget() {
|
|
@@ -3518,13 +3521,16 @@ const zl = {
|
|
|
3518
3521
|
},
|
|
3519
3522
|
alignment() {
|
|
3520
3523
|
return ["top", "bottom"].includes(this.position) && this.alignLeft && "left" || ["top", "bottom"].includes(this.position) && this.alignRight && "right" || ["left", "right"].includes(this.position) && this.alignTop && "top" || ["left", "right"].includes(this.position) && this.alignBottom && "bottom" || "";
|
|
3524
|
+
},
|
|
3525
|
+
shouldShowOnClick() {
|
|
3526
|
+
return this.$options.props.showOnHover && !this.showOnHover || this.$options.props.showOnClick && this.showOnClick;
|
|
3521
3527
|
}
|
|
3522
3528
|
},
|
|
3523
3529
|
methods: {
|
|
3524
3530
|
async open(e) {
|
|
3525
|
-
this.delay && await new Promise((t) => setTimeout(t, this.delay)), this.detachableVisible = !0, this.activator && (this.activatorEl = e.target), await this.insertInDOM(), this.minWidth === "activator" && (this.activatorWidth = this.activatorEl.offsetWidth), this.noPosition || this.computeDetachableCoords(), this.timeoutId = setTimeout(() => {
|
|
3531
|
+
this.delay && await new Promise((t) => this.openTimeout = setTimeout(t, this.delay)), !(this.delay && !this.openTimeout) && (this.detachableVisible = !0, this.activator && (this.activatorEl = e.target), await this.insertInDOM(), this.minWidth === "activator" && (this.activatorWidth = this.activatorEl.offsetWidth), this.noPosition || this.computeDetachableCoords(), this.timeoutId = setTimeout(() => {
|
|
3526
3532
|
this.$emit("update:modelValue", !0), this.$emit("input", !0), this.$emit("open");
|
|
3527
|
-
}, 0), this.persistent || document.addEventListener("mousedown", this.onOutsideMousedown), this.noPosition || window.addEventListener("resize", this.onResize);
|
|
3533
|
+
}, 0), this.persistent || document.addEventListener("mousedown", this.onOutsideMousedown), this.noPosition || window.addEventListener("resize", this.onResize));
|
|
3528
3534
|
},
|
|
3529
3535
|
getActivatorCoordinates() {
|
|
3530
3536
|
const { top: e, left: t, width: l, height: o } = this.activatorEl.getBoundingClientRect();
|
|
@@ -3598,7 +3604,7 @@ const zl = {
|
|
|
3598
3604
|
var e;
|
|
3599
3605
|
this.activator ? this.bindActivatorEvents() : this.$nextTick(() => {
|
|
3600
3606
|
this.activator && this.bindActivatorEvents(), this.modelValue && this.open({ target: this.activatorEl });
|
|
3601
|
-
}), this.overlay && (this.overlayEl = (e = this.$refs.overlay) == null ? void 0 : e.$el), this.modelValue && this.activator ? this.toggle({ type: this.
|
|
3607
|
+
}), this.overlay && (this.overlayEl = (e = this.$refs.overlay) == null ? void 0 : e.$el), this.modelValue && this.activator ? this.toggle({ type: this.shouldShowOnClick ? "click" : "mouseenter", target: this.activatorEl }) : this.modelValue && this.open({ target: this.activatorEl });
|
|
3602
3608
|
},
|
|
3603
3609
|
unmounted() {
|
|
3604
3610
|
this.close(), this.removeFromDOM(), this.docEventListenersHandlers.length && this.docEventListenersHandlers.forEach(({ eventName: e, handler: t }) => {
|
|
@@ -3607,7 +3613,7 @@ const zl = {
|
|
|
3607
3613
|
},
|
|
3608
3614
|
watch: {
|
|
3609
3615
|
modelValue(e) {
|
|
3610
|
-
!!e !== this.detachableVisible && this.
|
|
3616
|
+
!!e !== this.detachableVisible && (e ? this.open({ target: this.activatorEl }) : this.close());
|
|
3611
3617
|
},
|
|
3612
3618
|
appendTo() {
|
|
3613
3619
|
this.removeFromDOM(), this.insertInDOM();
|
|
@@ -3806,7 +3812,7 @@ const Wl = {
|
|
|
3806
3812
|
typeof window < "u" && "ontouchstart" in window && this.showOnHover && e.type === "click" || e.type === "click" && !this.showOnHover ? t = !t : e.type === "mouseenter" && this.showOnHover ? (this.hoveringActivator = !0, t = !0) : e.type === "mouseleave" && this.showOnHover && (this.hoveringActivator = !1, t = !1), this.timeoutId = clearTimeout(this.timeoutId), t ? this.open(e) : this.close();
|
|
3807
3813
|
},
|
|
3808
3814
|
async close(e = !1) {
|
|
3809
|
-
|
|
3815
|
+
this.openTimeout = clearTimeout(this.openTimeout), this.detachableVisible && (this.showOnHover && !e && (await new Promise((t) => setTimeout(t, 10)), this.showOnHover && (this.hoveringMenu || 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)));
|
|
3810
3816
|
}
|
|
3811
3817
|
}
|
|
3812
3818
|
}, Al = /* @__PURE__ */ v(Wl, [["render", El]]);
|
|
@@ -3820,7 +3826,7 @@ function Nl(e, t, l, o, n, i) {
|
|
|
3820
3826
|
n.show ? (s(), u("div", {
|
|
3821
3827
|
key: 0,
|
|
3822
3828
|
class: f(["w-notification", i.classes]),
|
|
3823
|
-
style:
|
|
3829
|
+
style: R(i.styles)
|
|
3824
3830
|
}, [
|
|
3825
3831
|
I(a, C(i.alertProps, {
|
|
3826
3832
|
class: i.alertClasses,
|
|
@@ -3971,8 +3977,8 @@ function Dl(e, t, l, o, n, i) {
|
|
|
3971
3977
|
key: 0,
|
|
3972
3978
|
class: f(["w-overlay", i.classes]),
|
|
3973
3979
|
ref: "overlay",
|
|
3974
|
-
style:
|
|
3975
|
-
onKeydown: t[0] || (t[0] = E(
|
|
3980
|
+
style: R(l.modelValue && i.styles || null),
|
|
3981
|
+
onKeydown: t[0] || (t[0] = W(E((...r) => i.onClick && i.onClick(...r), ["stop"]), ["escape"])),
|
|
3976
3982
|
onClick: t[1] || (t[1] = (...r) => i.onClick && i.onClick(...r)),
|
|
3977
3983
|
tabindex: "0"
|
|
3978
3984
|
}, [
|
|
@@ -4052,7 +4058,7 @@ const Xl = {
|
|
|
4052
4058
|
function Zl(e, t, l, o, n, i) {
|
|
4053
4059
|
return s(), u("div", {
|
|
4054
4060
|
class: f(["w-progress", i.classes]),
|
|
4055
|
-
style:
|
|
4061
|
+
style: R(i.styles)
|
|
4056
4062
|
}, [
|
|
4057
4063
|
l.circle ? (s(), u("svg", {
|
|
4058
4064
|
key: 1,
|
|
@@ -4077,19 +4083,19 @@ function Zl(e, t, l, o, n, i) {
|
|
|
4077
4083
|
"stroke-width": l.stroke,
|
|
4078
4084
|
"stroke-linecap": l.roundCap && "round",
|
|
4079
4085
|
"stroke-dasharray": e.circleCircumference,
|
|
4080
|
-
style:
|
|
4086
|
+
style: R(`stroke-dashoffset: ${(1 - i.progressValue / 100) * e.circleCircumference}`)
|
|
4081
4087
|
}, null, 12, Ql)
|
|
4082
4088
|
], 8, Gl)) : (s(), u("div", {
|
|
4083
4089
|
key: 0,
|
|
4084
4090
|
class: f(["w-progress__progress", { full: i.progressValue === 100 }]),
|
|
4085
|
-
style:
|
|
4091
|
+
style: R(`width: ${i.progressValue}%`)
|
|
4086
4092
|
}, null, 6)),
|
|
4087
4093
|
l.label || e.$slots.default ? (s(), u("div", {
|
|
4088
4094
|
key: 2,
|
|
4089
4095
|
class: f(["w-progress__label", l.labelColor || !1])
|
|
4090
4096
|
}, [
|
|
4091
4097
|
p(e.$slots, "default", {}, () => [
|
|
4092
|
-
|
|
4098
|
+
S(_(Math.round(i.progressValue)) + _(l.circle ? "" : "%"), 1)
|
|
4093
4099
|
])
|
|
4094
4100
|
], 2)) : c("", !0)
|
|
4095
4101
|
], 6);
|
|
@@ -4192,7 +4198,7 @@ function di(e, t, l, o, n, i) {
|
|
|
4192
4198
|
for: `w-radio--${e._.uid}`
|
|
4193
4199
|
}, [
|
|
4194
4200
|
p(e.$slots, "default", {}, () => [
|
|
4195
|
-
|
|
4201
|
+
S(_(l.label), 1)
|
|
4196
4202
|
])
|
|
4197
4203
|
], 10, ai)) : l.label ? (s(), u("label", {
|
|
4198
4204
|
key: 1,
|
|
@@ -4214,7 +4220,7 @@ function di(e, t, l, o, n, i) {
|
|
|
4214
4220
|
for: `w-radio--${e._.uid}`
|
|
4215
4221
|
}, [
|
|
4216
4222
|
p(e.$slots, "default", {}, () => [
|
|
4217
|
-
|
|
4223
|
+
S(_(l.label), 1)
|
|
4218
4224
|
])
|
|
4219
4225
|
], 10, ni)) : l.label ? (s(), u("label", {
|
|
4220
4226
|
key: 1,
|
|
@@ -4229,7 +4235,7 @@ function di(e, t, l, o, n, i) {
|
|
|
4229
4235
|
}
|
|
4230
4236
|
const ui = {
|
|
4231
4237
|
name: "w-radio",
|
|
4232
|
-
mixins: [
|
|
4238
|
+
mixins: [M],
|
|
4233
4239
|
inject: { wRadios: { default: null } },
|
|
4234
4240
|
props: {
|
|
4235
4241
|
modelValue: { default: !1 },
|
|
@@ -4332,7 +4338,7 @@ function pi(e, t, l, o, n, i) {
|
|
|
4332
4338
|
}
|
|
4333
4339
|
const fi = {
|
|
4334
4340
|
name: "w-radios",
|
|
4335
|
-
mixins: [
|
|
4341
|
+
mixins: [M],
|
|
4336
4342
|
props: {
|
|
4337
4343
|
items: { type: Array, required: !0 },
|
|
4338
4344
|
modelValue: { type: [String, Number, Boolean] },
|
|
@@ -4415,7 +4421,7 @@ function yi(e, t, l, o, n, i) {
|
|
|
4415
4421
|
class: f(["w-icon", `${l.icon} ${l.color}`]),
|
|
4416
4422
|
role: "icon",
|
|
4417
4423
|
"aria-hidden": "true",
|
|
4418
|
-
style:
|
|
4424
|
+
style: R(i.halfStarStyle)
|
|
4419
4425
|
}, null, 6)) : c("", !0)
|
|
4420
4426
|
], 42, bi)
|
|
4421
4427
|
], 64))), 128))
|
|
@@ -4425,7 +4431,7 @@ function yi(e, t, l, o, n, i) {
|
|
|
4425
4431
|
}
|
|
4426
4432
|
const wi = {
|
|
4427
4433
|
name: "w-rating",
|
|
4428
|
-
mixins: [
|
|
4434
|
+
mixins: [M],
|
|
4429
4435
|
props: {
|
|
4430
4436
|
modelValue: {},
|
|
4431
4437
|
max: { type: [Number, String], default: 5 },
|
|
@@ -4533,7 +4539,7 @@ function ki(e, t, l, o, n, i) {
|
|
|
4533
4539
|
w("div", {
|
|
4534
4540
|
class: "w-scrollbar__thumb",
|
|
4535
4541
|
ref: "thumb",
|
|
4536
|
-
style:
|
|
4542
|
+
style: R(i.thumbStyles)
|
|
4537
4543
|
}, null, 4)
|
|
4538
4544
|
], 34)
|
|
4539
4545
|
], 64);
|
|
@@ -4653,15 +4659,15 @@ const _i = {
|
|
|
4653
4659
|
const { top: e, left: t } = this.$refs.scrollable.getBoundingClientRect();
|
|
4654
4660
|
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
4661
|
}
|
|
4656
|
-
},
|
|
4662
|
+
}, Si = /* @__PURE__ */ v(Ci, [["render", ki]]), Bi = ["for"], $i = ["aria-expanded", "aria-owns", "aria-activedescendant"], Vi = {
|
|
4657
4663
|
key: 1,
|
|
4658
4664
|
class: "w-select__selection-slot"
|
|
4659
|
-
}, Ii = ["contenteditable", "id", "disabled", "tabindex", "innerHTML"],
|
|
4665
|
+
}, Ii = ["contenteditable", "id", "disabled", "tabindex", "innerHTML"], Ti = ["value", "name"], Ri = ["for"], Li = ["for"];
|
|
4660
4666
|
function xi(e, t, l, o, n, i) {
|
|
4661
4667
|
const a = $("w-icon"), r = $("w-list"), d = $("w-menu");
|
|
4662
4668
|
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 }, {
|
|
4663
4669
|
valid: e.valid,
|
|
4664
|
-
"onUpdate:valid": t[
|
|
4670
|
+
"onUpdate:valid": t[10] || (t[10] = (h) => e.valid = h),
|
|
4665
4671
|
onReset: i.onReset,
|
|
4666
4672
|
wrap: i.hasLabel && l.labelPosition !== "inside",
|
|
4667
4673
|
class: i.classes
|
|
@@ -4674,14 +4680,14 @@ function xi(e, t, l, o, n, i) {
|
|
|
4674
4680
|
for: `w-select--${e._.uid}`
|
|
4675
4681
|
}, [
|
|
4676
4682
|
p(e.$slots, "default", {}, () => [
|
|
4677
|
-
|
|
4683
|
+
S(_(l.label), 1)
|
|
4678
4684
|
])
|
|
4679
|
-
], 10,
|
|
4685
|
+
], 10, Bi)) : c("", !0)
|
|
4680
4686
|
], 64)) : c("", !0),
|
|
4681
4687
|
I(d, C({
|
|
4682
4688
|
modelValue: e.showMenu,
|
|
4683
4689
|
"onUpdate:modelValue": t[9] || (t[9] = (h) => e.showMenu = h),
|
|
4684
|
-
onClose:
|
|
4690
|
+
onClose: i.closeMenu,
|
|
4685
4691
|
"menu-class": `w-select__menu ${l.menuClass || ""}`,
|
|
4686
4692
|
transition: "slide-fade-down",
|
|
4687
4693
|
"append-to": (l.menuProps || {}).appendTo !== void 0 ? (l.menuProps || {}).appendTo : void 0,
|
|
@@ -4690,15 +4696,15 @@ function xi(e, t, l, o, n, i) {
|
|
|
4690
4696
|
"min-width": "activator"
|
|
4691
4697
|
}, l.menuProps || {}), {
|
|
4692
4698
|
activator: g(({ on: h }) => [
|
|
4693
|
-
w("div", {
|
|
4694
|
-
class: f(["w-select__selection-wrap", i.inputWrapClasses]),
|
|
4699
|
+
w("div", C({ class: "w-select__selection-wrap" }, z(h, !0), {
|
|
4695
4700
|
onClick: t[5] || (t[5] = (y) => !e.isDisabled && !e.isReadonly && i.onInputFieldClick()),
|
|
4696
4701
|
role: "button",
|
|
4697
4702
|
"aria-haspopup": "listbox",
|
|
4698
4703
|
"aria-expanded": e.showMenu ? "true" : "false",
|
|
4699
4704
|
"aria-owns": `w-select-menu--${e._.uid}`,
|
|
4700
|
-
"aria-activedescendant": `w-select-menu--${e._.uid}_item-1
|
|
4701
|
-
|
|
4705
|
+
"aria-activedescendant": `w-select-menu--${e._.uid}_item-1`,
|
|
4706
|
+
class: i.inputWrapClasses
|
|
4707
|
+
}), [
|
|
4702
4708
|
l.innerIconLeft ? (s(), m(a, {
|
|
4703
4709
|
key: 0,
|
|
4704
4710
|
class: "w-select__icon w-select__icon--inner-left",
|
|
@@ -4706,7 +4712,7 @@ function xi(e, t, l, o, n, i) {
|
|
|
4706
4712
|
onClick: t[0] || (t[0] = (y) => e.$emit("click:inner-icon-left", y))
|
|
4707
4713
|
}, {
|
|
4708
4714
|
default: g(() => [
|
|
4709
|
-
|
|
4715
|
+
S(_(l.innerIconLeft), 1)
|
|
4710
4716
|
]),
|
|
4711
4717
|
_: 1
|
|
4712
4718
|
})) : c("", !0),
|
|
@@ -4729,12 +4735,12 @@ function xi(e, t, l, o, n, i) {
|
|
|
4729
4735
|
tabindex: e.tabindex || null,
|
|
4730
4736
|
innerHTML: e.$slots.selection ? "" : i.selectionString || l.placeholder
|
|
4731
4737
|
}, null, 42, Ii),
|
|
4732
|
-
(s(!0), u(k, null, L(e.inputValue.length ? e.inputValue : [{}], (y,
|
|
4733
|
-
key:
|
|
4738
|
+
(s(!0), u(k, null, L(e.inputValue.length ? e.inputValue : [{}], (y, B) => (s(), u("input", {
|
|
4739
|
+
key: B,
|
|
4734
4740
|
type: "hidden",
|
|
4735
4741
|
value: y.value === void 0 ? "" : y.value.toString(),
|
|
4736
4742
|
name: e.inputName + (l.multiple ? "[]" : "")
|
|
4737
|
-
}, null, 8,
|
|
4743
|
+
}, null, 8, Ti))), 128)),
|
|
4738
4744
|
l.labelPosition === "inside" && i.showLabelInside ? (s(), u(k, { key: 2 }, [
|
|
4739
4745
|
e.$slots.default || l.label ? (s(), u("label", {
|
|
4740
4746
|
key: 0,
|
|
@@ -4742,9 +4748,9 @@ function xi(e, t, l, o, n, i) {
|
|
|
4742
4748
|
for: `w-select--${e._.uid}`
|
|
4743
4749
|
}, [
|
|
4744
4750
|
p(e.$slots, "default", {}, () => [
|
|
4745
|
-
|
|
4751
|
+
S(_(l.label), 1)
|
|
4746
4752
|
])
|
|
4747
|
-
], 10,
|
|
4753
|
+
], 10, Ri)) : c("", !0)
|
|
4748
4754
|
], 64)) : c("", !0),
|
|
4749
4755
|
l.innerIconRight ? (s(), m(a, {
|
|
4750
4756
|
key: 3,
|
|
@@ -4753,11 +4759,11 @@ function xi(e, t, l, o, n, i) {
|
|
|
4753
4759
|
onClick: t[4] || (t[4] = (y) => e.$emit("click:inner-icon-right", y))
|
|
4754
4760
|
}, {
|
|
4755
4761
|
default: g(() => [
|
|
4756
|
-
|
|
4762
|
+
S(_(l.innerIconRight), 1)
|
|
4757
4763
|
]),
|
|
4758
4764
|
_: 1
|
|
4759
4765
|
})) : c("", !0)
|
|
4760
|
-
],
|
|
4766
|
+
], 16, $i)
|
|
4761
4767
|
]),
|
|
4762
4768
|
default: g(() => [
|
|
4763
4769
|
I(r, {
|
|
@@ -4781,28 +4787,28 @@ function xi(e, t, l, o, n, i) {
|
|
|
4781
4787
|
}, Z({ _: 2 }, [
|
|
4782
4788
|
L(l.items.length, (h) => ({
|
|
4783
4789
|
name: `item.${h}`,
|
|
4784
|
-
fn: g(({ item: y, selected:
|
|
4785
|
-
e.$slots[`item.${h}`] && e.$slots[`item.${h}`](y,
|
|
4790
|
+
fn: g(({ item: y, selected: B, index: b }) => [
|
|
4791
|
+
e.$slots[`item.${h}`] && e.$slots[`item.${h}`](y, B, b) ? p(e.$slots, `item.${h}`, {
|
|
4786
4792
|
key: 0,
|
|
4787
4793
|
item: y,
|
|
4788
|
-
selected:
|
|
4794
|
+
selected: B,
|
|
4789
4795
|
index: b
|
|
4790
4796
|
}, () => [
|
|
4791
|
-
|
|
4797
|
+
S(_(y[l.itemLabelKey]), 1)
|
|
4792
4798
|
]) : p(e.$slots, "item", {
|
|
4793
4799
|
key: 1,
|
|
4794
4800
|
item: y,
|
|
4795
|
-
selected:
|
|
4801
|
+
selected: B,
|
|
4796
4802
|
index: b
|
|
4797
4803
|
}, () => [
|
|
4798
|
-
|
|
4804
|
+
S(_(y[l.itemLabelKey]), 1)
|
|
4799
4805
|
])
|
|
4800
4806
|
])
|
|
4801
4807
|
}))
|
|
4802
4808
|
]), 1032, ["model-value", "onUpdate:modelValue", "onItemSelect", "items", "multiple", "add-ids", "no-unselect", "selection-color", "item-color-key"])
|
|
4803
4809
|
]),
|
|
4804
4810
|
_: 3
|
|
4805
|
-
}, 16, ["modelValue", "menu-class", "append-to"]),
|
|
4811
|
+
}, 16, ["modelValue", "onClose", "menu-class", "append-to"]),
|
|
4806
4812
|
l.labelPosition === "right" ? (s(), u(k, { key: 1 }, [
|
|
4807
4813
|
e.$slots.default || l.label ? (s(), u("label", {
|
|
4808
4814
|
key: 0,
|
|
@@ -4810,7 +4816,7 @@ function xi(e, t, l, o, n, i) {
|
|
|
4810
4816
|
for: `w-select--${e._.uid}`
|
|
4811
4817
|
}, [
|
|
4812
4818
|
p(e.$slots, "default", {}, () => [
|
|
4813
|
-
|
|
4819
|
+
S(_(l.label), 1)
|
|
4814
4820
|
])
|
|
4815
4821
|
], 10, Li)) : c("", !0)
|
|
4816
4822
|
], 64)) : c("", !0)
|
|
@@ -4820,7 +4826,7 @@ function xi(e, t, l, o, n, i) {
|
|
|
4820
4826
|
}
|
|
4821
4827
|
const Oi = {
|
|
4822
4828
|
name: "w-select",
|
|
4823
|
-
mixins: [
|
|
4829
|
+
mixins: [M],
|
|
4824
4830
|
props: {
|
|
4825
4831
|
items: { type: Array, required: !0 },
|
|
4826
4832
|
modelValue: {},
|
|
@@ -5032,11 +5038,11 @@ function Ui(e, t, l, o, n, i) {
|
|
|
5032
5038
|
}, [
|
|
5033
5039
|
w("div", {
|
|
5034
5040
|
class: f(["w-slider__range", i.rangeClasses]),
|
|
5035
|
-
style:
|
|
5041
|
+
style: R(i.rangeStyles)
|
|
5036
5042
|
}, null, 6),
|
|
5037
5043
|
w("div", {
|
|
5038
5044
|
class: "w-slider__thumb",
|
|
5039
|
-
style:
|
|
5045
|
+
style: R(i.thumbStyles)
|
|
5040
5046
|
}, [
|
|
5041
5047
|
w("button", {
|
|
5042
5048
|
class: f(["w-slider__thumb-button", [l.color]]),
|
|
@@ -5049,11 +5055,11 @@ function Ui(e, t, l, o, n, i) {
|
|
|
5049
5055
|
"aria-readonly": e.isReadonly ? "true" : "false",
|
|
5050
5056
|
tabindex: e.isDisabled || e.isReadonly ? -1 : null,
|
|
5051
5057
|
onKeydown: [
|
|
5052
|
-
t[0] || (t[0] =
|
|
5053
|
-
t[1] || (t[1] =
|
|
5058
|
+
t[0] || (t[0] = W((a) => i.onKeyDown(a, -1), ["left"])),
|
|
5059
|
+
t[1] || (t[1] = W((a) => i.onKeyDown(a, 1), ["right"]))
|
|
5054
5060
|
],
|
|
5055
5061
|
onFocus: t[2] || (t[2] = (a) => e.$emit("focus", a)),
|
|
5056
|
-
onClick: t[3] || (t[3] =
|
|
5062
|
+
onClick: t[3] || (t[3] = E(() => {
|
|
5057
5063
|
}, ["prevent"]))
|
|
5058
5064
|
}, null, 42, Ai),
|
|
5059
5065
|
l.thumbLabel ? (s(), u("label", {
|
|
@@ -5063,13 +5069,13 @@ function Ui(e, t, l, o, n, i) {
|
|
|
5063
5069
|
}, [
|
|
5064
5070
|
l.thumbLabel === "droplet" ? (s(), u("div", Ki, [
|
|
5065
5071
|
p(e.$slots, "label", { value: e.rangeValueScaled }, () => [
|
|
5066
|
-
|
|
5072
|
+
S(_(~~e.rangeValueScaled), 1)
|
|
5067
5073
|
])
|
|
5068
5074
|
])) : p(e.$slots, "label", {
|
|
5069
5075
|
key: 1,
|
|
5070
5076
|
value: e.rangeValueScaled
|
|
5071
5077
|
}, () => [
|
|
5072
|
-
|
|
5078
|
+
S(_(~~e.rangeValueScaled), 1)
|
|
5073
5079
|
])
|
|
5074
5080
|
], 10, Ni)) : c("", !0)
|
|
5075
5081
|
], 4)
|
|
@@ -5083,7 +5089,7 @@ function Ui(e, t, l, o, n, i) {
|
|
|
5083
5089
|
class: "w-slider__step-label",
|
|
5084
5090
|
key: a,
|
|
5085
5091
|
onClick: (r) => i.onStepLabelClick(a * (100 / i.numberOfSteps)),
|
|
5086
|
-
style:
|
|
5092
|
+
style: R(`left: ${a * (100 / i.numberOfSteps)}%`)
|
|
5087
5093
|
}, _(i.percentToScaled(a * (100 / i.numberOfSteps))), 13, Di))), 128)),
|
|
5088
5094
|
~~i.numberOfSteps !== i.numberOfSteps ? (s(), u("div", {
|
|
5089
5095
|
key: 0,
|
|
@@ -5111,7 +5117,7 @@ function Ui(e, t, l, o, n, i) {
|
|
|
5111
5117
|
}
|
|
5112
5118
|
const qi = {
|
|
5113
5119
|
name: "w-slider",
|
|
5114
|
-
mixins: [
|
|
5120
|
+
mixins: [M],
|
|
5115
5121
|
props: {
|
|
5116
5122
|
modelValue: { type: Number, default: 0 },
|
|
5117
5123
|
color: { type: String, default: "primary" },
|
|
@@ -5248,7 +5254,7 @@ function Gi(e, t, l, o, n, i) {
|
|
|
5248
5254
|
return l.modelValue || l.modelValue === void 0 ? (s(), u("div", {
|
|
5249
5255
|
key: 0,
|
|
5250
5256
|
class: f(["w-spinner", i.classes]),
|
|
5251
|
-
style:
|
|
5257
|
+
style: R(i.styles)
|
|
5252
5258
|
}, [
|
|
5253
5259
|
i.isThreeDots ? (s(), u("span", Yi)) : c("", !0)
|
|
5254
5260
|
], 6)) : c("", !0);
|
|
@@ -5354,7 +5360,7 @@ function ns(e, t, l, o, n, i) {
|
|
|
5354
5360
|
for: `w-switch--${e._.uid}`
|
|
5355
5361
|
}, [
|
|
5356
5362
|
p(e.$slots, "default", {}, () => [
|
|
5357
|
-
|
|
5363
|
+
S(_(l.label), 1)
|
|
5358
5364
|
])
|
|
5359
5365
|
], 10, is)) : c("", !0)
|
|
5360
5366
|
], 64)) : c("", !0),
|
|
@@ -5363,7 +5369,7 @@ function ns(e, t, l, o, n, i) {
|
|
|
5363
5369
|
onClick: t[2] || (t[2] = (r) => {
|
|
5364
5370
|
e.$refs.input.focus(), e.$refs.input.click();
|
|
5365
5371
|
})
|
|
5366
|
-
},
|
|
5372
|
+
}, z(e.$attrs, !0), { class: i.inputClasses }), [
|
|
5367
5373
|
e.$slots.track ? (s(), u("div", ss, [
|
|
5368
5374
|
p(e.$slots, "track")
|
|
5369
5375
|
])) : c("", !0),
|
|
@@ -5382,7 +5388,7 @@ function ns(e, t, l, o, n, i) {
|
|
|
5382
5388
|
for: `w-switch--${e._.uid}`
|
|
5383
5389
|
}, [
|
|
5384
5390
|
p(e.$slots, "default", {}, () => [
|
|
5385
|
-
|
|
5391
|
+
S(_(l.label), 1)
|
|
5386
5392
|
])
|
|
5387
5393
|
], 10, os)) : c("", !0)
|
|
5388
5394
|
], 64)) : c("", !0)
|
|
@@ -5392,7 +5398,7 @@ function ns(e, t, l, o, n, i) {
|
|
|
5392
5398
|
}
|
|
5393
5399
|
const rs = {
|
|
5394
5400
|
name: "w-switch",
|
|
5395
|
-
mixins: [
|
|
5401
|
+
mixins: [M],
|
|
5396
5402
|
props: {
|
|
5397
5403
|
modelValue: { default: !1 },
|
|
5398
5404
|
label: { type: String, default: "" },
|
|
@@ -5486,7 +5492,7 @@ function vs(e, t, l, o, n, i) {
|
|
|
5486
5492
|
onClick: (h) => !r._disabled && r._uid !== e.activeTabUid && i.openTab(r._uid),
|
|
5487
5493
|
onFocus: (h) => e.$emit("focus", i.getOriginalItem(r)),
|
|
5488
5494
|
tabindex: !r._disabled && 0,
|
|
5489
|
-
onKeypress:
|
|
5495
|
+
onKeypress: W((h) => !r._disabled && i.openTab(r._uid), ["enter"]),
|
|
5490
5496
|
"aria-selected": r._uid === e.activeTabUid ? "true" : "false",
|
|
5491
5497
|
role: "tab"
|
|
5492
5498
|
}, [
|
|
@@ -5512,7 +5518,7 @@ function vs(e, t, l, o, n, i) {
|
|
|
5512
5518
|
!l.noSlider && !l.card ? (s(), u("div", {
|
|
5513
5519
|
key: 1,
|
|
5514
5520
|
class: f(["w-tabs__slider", l.sliderColor]),
|
|
5515
|
-
style:
|
|
5521
|
+
style: R(i.sliderStyles)
|
|
5516
5522
|
}, null, 6)) : c("", !0)
|
|
5517
5523
|
], 2),
|
|
5518
5524
|
e.tabs.length ? (s(), u("div", bs, [
|
|
@@ -5769,10 +5775,10 @@ const ks = {
|
|
|
5769
5775
|
e ? window.removeEventListener("resize", this.onResize) : (this.updateSlider(), window.addEventListener("resize", this.onResize));
|
|
5770
5776
|
}
|
|
5771
5777
|
}
|
|
5772
|
-
}, _s = /* @__PURE__ */ v(ks, [["render", vs]]), Cs = { ref: "colgroup" },
|
|
5778
|
+
}, _s = /* @__PURE__ */ v(ks, [["render", vs]]), Cs = { ref: "colgroup" }, Ss = ["width"], Bs = { key: 0 }, $s = ["onClick"], Vs = ["innerHTML"], Is = {
|
|
5773
5779
|
key: 0,
|
|
5774
5780
|
class: "w-table__progress-bar"
|
|
5775
|
-
},
|
|
5781
|
+
}, Ts = ["colspan"], Rs = {
|
|
5776
5782
|
key: 0,
|
|
5777
5783
|
class: "w-table__progress-bar"
|
|
5778
5784
|
}, Ls = ["colspan"], xs = { class: "w-table__loading-text" }, Os = {
|
|
@@ -5795,7 +5801,7 @@ const ks = {
|
|
|
5795
5801
|
class: "w-table__row w-table__pagination-wrap"
|
|
5796
5802
|
}, qs = ["colspan"], Xs = { class: "w-table__pagination w-pagination" }, Ys = { class: "pages-wrap" }, Gs = { class: "w-pagination__results" };
|
|
5797
5803
|
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"),
|
|
5804
|
+
const a = $("w-icon"), r = $("w-progress"), d = $("w-transition-fade"), h = $("w-transition-expand"), y = $("w-select"), B = $("w-button");
|
|
5799
5805
|
return s(), u("div", {
|
|
5800
5806
|
class: f(["w-table-wrap", i.wrapClasses])
|
|
5801
5807
|
}, [
|
|
@@ -5806,17 +5812,17 @@ function Js(e, t, l, o, n, i) {
|
|
|
5806
5812
|
onMouseout: t[7] || (t[7] = (...b) => i.onMouseOut && i.onMouseOut(...b))
|
|
5807
5813
|
}, [
|
|
5808
5814
|
w("colgroup", Cs, [
|
|
5809
|
-
(s(!0), u(k, null, L(l.headers, (b,
|
|
5810
|
-
class: f(["w-table__col", i.colClasses[
|
|
5811
|
-
key:
|
|
5815
|
+
(s(!0), u(k, null, L(l.headers, (b, T) => (s(), u("col", {
|
|
5816
|
+
class: f(["w-table__col", i.colClasses[T]]),
|
|
5817
|
+
key: T,
|
|
5812
5818
|
width: b.width || null
|
|
5813
|
-
}, null, 10,
|
|
5819
|
+
}, null, 10, Ss))), 128))
|
|
5814
5820
|
], 512),
|
|
5815
|
-
l.noHeaders ? c("", !0) : (s(), u("thead",
|
|
5821
|
+
l.noHeaders ? c("", !0) : (s(), u("thead", Bs, [
|
|
5816
5822
|
w("tr", null, [
|
|
5817
|
-
(s(!0), u(k, null, L(l.headers, (b,
|
|
5823
|
+
(s(!0), u(k, null, L(l.headers, (b, T) => (s(), u("th", {
|
|
5818
5824
|
class: f(["w-table__header", i.headerClasses(b)]),
|
|
5819
|
-
key:
|
|
5825
|
+
key: T,
|
|
5820
5826
|
onClick: (x) => !e.colResizing.dragging && b.sortable !== !1 && i.sortTable(b)
|
|
5821
5827
|
}, [
|
|
5822
5828
|
b.sortable !== !1 && b.align === "right" ? (s(), m(a, {
|
|
@@ -5824,7 +5830,7 @@ function Js(e, t, l, o, n, i) {
|
|
|
5824
5830
|
class: f(["w-table__header-sort", i.headerSortClasses(b)])
|
|
5825
5831
|
}, {
|
|
5826
5832
|
default: g(() => [
|
|
5827
|
-
|
|
5833
|
+
S("wi-arrow-down")
|
|
5828
5834
|
]),
|
|
5829
5835
|
_: 2
|
|
5830
5836
|
}, 1032, ["class"])) : c("", !0),
|
|
@@ -5833,9 +5839,9 @@ function Js(e, t, l, o, n, i) {
|
|
|
5833
5839
|
key: 0,
|
|
5834
5840
|
header: b,
|
|
5835
5841
|
label: b.label,
|
|
5836
|
-
index:
|
|
5842
|
+
index: T + 1
|
|
5837
5843
|
}, () => [
|
|
5838
|
-
|
|
5844
|
+
S(_(b.label || ""), 1)
|
|
5839
5845
|
]) : (s(), u("span", {
|
|
5840
5846
|
key: 1,
|
|
5841
5847
|
innerHTML: b.label || ""
|
|
@@ -5846,14 +5852,14 @@ function Js(e, t, l, o, n, i) {
|
|
|
5846
5852
|
class: f(["w-table__header-sort", i.headerSortClasses(b)])
|
|
5847
5853
|
}, {
|
|
5848
5854
|
default: g(() => [
|
|
5849
|
-
|
|
5855
|
+
S("wi-arrow-down")
|
|
5850
5856
|
]),
|
|
5851
5857
|
_: 2
|
|
5852
5858
|
}, 1032, ["class"])) : c("", !0),
|
|
5853
|
-
|
|
5859
|
+
T < l.headers.length - 1 && l.resizableColumns ? (s(), u("span", {
|
|
5854
5860
|
key: 3,
|
|
5855
|
-
class: f(["w-table__col-resizer", { "w-table__col-resizer--hover": e.colResizing.hover ===
|
|
5856
|
-
onClick: t[0] || (t[0] =
|
|
5861
|
+
class: f(["w-table__col-resizer", { "w-table__col-resizer--hover": e.colResizing.hover === T, "w-table__col-resizer--active": e.colResizing.columnIndex === T }]),
|
|
5862
|
+
onClick: t[0] || (t[0] = E(() => {
|
|
5857
5863
|
}, ["stop"]))
|
|
5858
5864
|
}, null, 2)) : c("", !0)
|
|
5859
5865
|
], 10, $s))), 128))
|
|
@@ -5865,21 +5871,21 @@ function Js(e, t, l, o, n, i) {
|
|
|
5865
5871
|
colspan: l.headers.length
|
|
5866
5872
|
}, [
|
|
5867
5873
|
I(r, { tile: "" })
|
|
5868
|
-
], 8,
|
|
5874
|
+
], 8, Ts)
|
|
5869
5875
|
])) : c("", !0)
|
|
5870
5876
|
]),
|
|
5871
5877
|
_: 1
|
|
5872
5878
|
})
|
|
5873
5879
|
])),
|
|
5874
5880
|
w("tbody", null, [
|
|
5875
|
-
l.loading === !0 ? (s(), u("tr",
|
|
5881
|
+
l.loading === !0 ? (s(), u("tr", Rs, [
|
|
5876
5882
|
w("td", {
|
|
5877
5883
|
colspan: l.headers.length
|
|
5878
5884
|
}, [
|
|
5879
5885
|
I(r, { tile: "" }),
|
|
5880
5886
|
w("div", xs, [
|
|
5881
5887
|
p(e.$slots, "loading", {}, () => [
|
|
5882
|
-
|
|
5888
|
+
S("Loading...")
|
|
5883
5889
|
])
|
|
5884
5890
|
])
|
|
5885
5891
|
], 8, Ls)
|
|
@@ -5889,21 +5895,21 @@ function Js(e, t, l, o, n, i) {
|
|
|
5889
5895
|
colspan: l.headers.length
|
|
5890
5896
|
}, [
|
|
5891
5897
|
p(e.$slots, "no-data", {}, () => [
|
|
5892
|
-
|
|
5898
|
+
S("No data to show.")
|
|
5893
5899
|
])
|
|
5894
5900
|
], 8, Ps)
|
|
5895
5901
|
])),
|
|
5896
|
-
i.tableItems.length && l.loading !== !0 ? (s(!0), u(k, { key: 2 }, L(i.paginatedItems, (b,
|
|
5902
|
+
i.tableItems.length && l.loading !== !0 ? (s(!0), u(k, { key: 2 }, L(i.paginatedItems, (b, T) => (s(), u(k, { key: T }, [
|
|
5897
5903
|
e.$slots.item ? p(e.$slots, "item", {
|
|
5898
5904
|
key: 0,
|
|
5899
5905
|
item: b,
|
|
5900
|
-
index:
|
|
5901
|
-
select: () => i.doSelectRow(b,
|
|
5906
|
+
index: T + 1,
|
|
5907
|
+
select: () => i.doSelectRow(b, T),
|
|
5902
5908
|
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 }
|
|
5903
5909
|
}) : (s(), u("tr", {
|
|
5904
5910
|
key: 1,
|
|
5905
5911
|
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
|
-
onClick: (x) => i.doSelectRow(b,
|
|
5912
|
+
onClick: (x) => i.doSelectRow(b, T)
|
|
5907
5913
|
}, [
|
|
5908
5914
|
(s(!0), u(k, null, L(l.headers, (x, P) => (s(), u(k, null, [
|
|
5909
5915
|
e.$slots[`item-cell.${x.key}`] || e.$slots[`item-cell.${P + 1}`] || e.$slots["item-cell"] ? (s(), u("td", {
|
|
@@ -5916,19 +5922,19 @@ function Js(e, t, l, o, n, i) {
|
|
|
5916
5922
|
header: x,
|
|
5917
5923
|
item: b,
|
|
5918
5924
|
label: b[x.key] || "",
|
|
5919
|
-
index:
|
|
5925
|
+
index: T + 1
|
|
5920
5926
|
}) : e.$slots[`item-cell.${P + 1}`] ? p(e.$slots, `item-cell.${P + 1}`, {
|
|
5921
5927
|
key: 1,
|
|
5922
5928
|
header: x,
|
|
5923
5929
|
item: b,
|
|
5924
5930
|
label: b[x.key] || "",
|
|
5925
|
-
index:
|
|
5931
|
+
index: T + 1
|
|
5926
5932
|
}) : e.$slots["item-cell"] ? p(e.$slots, "item-cell", {
|
|
5927
5933
|
key: 2,
|
|
5928
5934
|
header: x,
|
|
5929
5935
|
item: b,
|
|
5930
5936
|
label: b[x.key] || "",
|
|
5931
|
-
index:
|
|
5937
|
+
index: T + 1
|
|
5932
5938
|
}) : c("", !0),
|
|
5933
5939
|
P < l.headers.length - 1 && l.resizableColumns ? (s(), u("span", {
|
|
5934
5940
|
key: 3,
|
|
@@ -5959,12 +5965,12 @@ function Js(e, t, l, o, n, i) {
|
|
|
5959
5965
|
i.expandedRowsByUid[b._uid] ? (s(), u("div", Ks, [
|
|
5960
5966
|
p(e.$slots, "row-expansion", {
|
|
5961
5967
|
item: b,
|
|
5962
|
-
index:
|
|
5968
|
+
index: T + 1
|
|
5963
5969
|
})
|
|
5964
5970
|
])) : c("", !0),
|
|
5965
|
-
|
|
5971
|
+
T < l.headers.length - 1 && l.resizableColumns ? (s(), u("span", {
|
|
5966
5972
|
key: 1,
|
|
5967
|
-
class: f(["w-table__col-resizer", { "w-table__col-resizer--hover": e.colResizing.hover ===
|
|
5973
|
+
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 }])
|
|
5968
5974
|
}, null, 2)) : c("", !0)
|
|
5969
5975
|
]),
|
|
5970
5976
|
_: 2
|
|
@@ -6007,7 +6013,7 @@ function Js(e, t, l, o, n, i) {
|
|
|
6007
6013
|
"label-color": "inherit"
|
|
6008
6014
|
}, null, 8, ["modelValue", "items"])) : c("", !0),
|
|
6009
6015
|
w("div", Ys, [
|
|
6010
|
-
I(
|
|
6016
|
+
I(B, {
|
|
6011
6017
|
class: "w-pagination__arrow w-pagination__arrow--prev",
|
|
6012
6018
|
onClick: t[3] || (t[3] = (b) => i.goToPage("-1")),
|
|
6013
6019
|
disabled: e.paginationConfig.page <= 1,
|
|
@@ -6015,19 +6021,19 @@ function Js(e, t, l, o, n, i) {
|
|
|
6015
6021
|
text: "",
|
|
6016
6022
|
lg: ""
|
|
6017
6023
|
}, null, 8, ["disabled"]),
|
|
6018
|
-
(s(!0), u(k, null, L(e.paginationConfig.pagesCount, (b) => (s(), m(
|
|
6024
|
+
(s(!0), u(k, null, L(e.paginationConfig.pagesCount, (b) => (s(), m(B, {
|
|
6019
6025
|
class: f(["w-pagination__page", { "w-pagination__page--active": b === e.paginationConfig.page }]),
|
|
6020
6026
|
key: b,
|
|
6021
|
-
onClick: (
|
|
6027
|
+
onClick: (T) => b !== e.paginationConfig.page && i.goToPage(b),
|
|
6022
6028
|
round: "",
|
|
6023
6029
|
lg: ""
|
|
6024
6030
|
}, {
|
|
6025
6031
|
default: g(() => [
|
|
6026
|
-
|
|
6032
|
+
S(_(b), 1)
|
|
6027
6033
|
]),
|
|
6028
6034
|
_: 2
|
|
6029
6035
|
}, 1032, ["onClick", "class"]))), 128)),
|
|
6030
|
-
I(
|
|
6036
|
+
I(B, {
|
|
6031
6037
|
class: "w-pagination__arrow w-pagination__arrow--next",
|
|
6032
6038
|
onClick: t[4] || (t[4] = (b) => i.goToPage("+1")),
|
|
6033
6039
|
disabled: e.paginationConfig.page >= e.paginationConfig.pagesCount,
|
|
@@ -6244,12 +6250,12 @@ const ge = 15, Qs = {
|
|
|
6244
6250
|
this.colResizing.dragging = !0;
|
|
6245
6251
|
const a = e.pageX - t, r = n + i, d = n + a, h = i - a;
|
|
6246
6252
|
l.style.width = n + a + "px", o.style.width = i - a + "px";
|
|
6247
|
-
const y = a < 0 && l.offsetWidth > d || l.offsetWidth <= ge,
|
|
6253
|
+
const y = a < 0 && l.offsetWidth > d || l.offsetWidth <= ge, B = a > 0 && o.offsetWidth > h;
|
|
6248
6254
|
if (y) {
|
|
6249
6255
|
const b = Math.max(l.offsetWidth, ge);
|
|
6250
6256
|
l.style.width = b + "px", o.style.width = r - b + "px";
|
|
6251
6257
|
} else
|
|
6252
|
-
|
|
6258
|
+
B && (l.style.width = r - o.offsetWidth + "px", o.style.width = o.offsetWidth + "px");
|
|
6253
6259
|
},
|
|
6254
6260
|
onResizerMouseUp() {
|
|
6255
6261
|
document.removeEventListener("mousemove", this.onResizerMouseMove), document.removeEventListener("mouseup", this.onResizerMouseUp), setTimeout(() => {
|
|
@@ -6331,11 +6337,11 @@ const ge = 15, Qs = {
|
|
|
6331
6337
|
}
|
|
6332
6338
|
}, Zs = /* @__PURE__ */ v(Qs, [["render", Js]]), ea = ["role", "aria-pressed", "tabindex"];
|
|
6333
6339
|
function ta(e, t, l, o, n, i) {
|
|
6334
|
-
return s(), u("span", C({ class: "w-tag" },
|
|
6340
|
+
return s(), u("span", C({ class: "w-tag" }, z(e.$attrs, !0), {
|
|
6335
6341
|
onClick: t[1] || (t[1] = (a) => {
|
|
6336
6342
|
e.$emit("update:modelValue", !l.modelValue), e.$emit("input", !l.modelValue);
|
|
6337
6343
|
}),
|
|
6338
|
-
onKeypress: t[2] || (t[2] =
|
|
6344
|
+
onKeypress: t[2] || (t[2] = W((a) => {
|
|
6339
6345
|
e.$emit("update:modelValue", !l.modelValue), e.$emit("input", !l.modelValue);
|
|
6340
6346
|
}, ["enter"])),
|
|
6341
6347
|
class: i.classes,
|
|
@@ -6348,7 +6354,7 @@ function ta(e, t, l, o, n, i) {
|
|
|
6348
6354
|
l.closable && l.modelValue ? (s(), u("i", {
|
|
6349
6355
|
key: 0,
|
|
6350
6356
|
class: "w-icon w-tag__closable wi-cross",
|
|
6351
|
-
onClick: t[0] || (t[0] =
|
|
6357
|
+
onClick: t[0] || (t[0] = E((a) => {
|
|
6352
6358
|
e.$emit("update:modelValue", !1), e.$emit("input", !1);
|
|
6353
6359
|
}, ["stop"])),
|
|
6354
6360
|
role: "icon",
|
|
@@ -6425,7 +6431,7 @@ function ra(e, t, l, o, n, i) {
|
|
|
6425
6431
|
for: `w-textarea--${e._.uid}`
|
|
6426
6432
|
}, [
|
|
6427
6433
|
p(e.$slots, "default", {}, () => [
|
|
6428
|
-
|
|
6434
|
+
S(_(l.label), 1)
|
|
6429
6435
|
])
|
|
6430
6436
|
], 10, sa)) : c("", !0)
|
|
6431
6437
|
], 64)) : c("", !0),
|
|
@@ -6440,7 +6446,7 @@ function ra(e, t, l, o, n, i) {
|
|
|
6440
6446
|
onClick: t[0] || (t[0] = (r) => e.$emit("click:inner-icon-left", r))
|
|
6441
6447
|
}, {
|
|
6442
6448
|
default: g(() => [
|
|
6443
|
-
|
|
6449
|
+
S(_(l.innerIconLeft), 1)
|
|
6444
6450
|
]),
|
|
6445
6451
|
_: 1
|
|
6446
6452
|
}, 8, ["for"])) : c("", !0),
|
|
@@ -6448,7 +6454,7 @@ function ra(e, t, l, o, n, i) {
|
|
|
6448
6454
|
class: "w-textarea__textarea",
|
|
6449
6455
|
ref: "textarea",
|
|
6450
6456
|
"onUpdate:modelValue": t[1] || (t[1] = (r) => n.inputValue = r)
|
|
6451
|
-
},
|
|
6457
|
+
}, z(i.listeners, !0), {
|
|
6452
6458
|
onInput: t[2] || (t[2] = (...r) => i.onInput && i.onInput(...r)),
|
|
6453
6459
|
onFocus: t[3] || (t[3] = (...r) => i.onFocus && i.onFocus(...r)),
|
|
6454
6460
|
onBlur: t[4] || (t[4] = (...r) => i.onBlur && i.onBlur(...r)),
|
|
@@ -6472,7 +6478,7 @@ function ra(e, t, l, o, n, i) {
|
|
|
6472
6478
|
for: `w-textarea--${e._.uid}`
|
|
6473
6479
|
}, [
|
|
6474
6480
|
p(e.$slots, "default", {}, () => [
|
|
6475
|
-
|
|
6481
|
+
S(_(l.label), 1)
|
|
6476
6482
|
])
|
|
6477
6483
|
], 10, oa)) : c("", !0)
|
|
6478
6484
|
], 64)) : c("", !0),
|
|
@@ -6484,7 +6490,7 @@ function ra(e, t, l, o, n, i) {
|
|
|
6484
6490
|
onClick: t[5] || (t[5] = (r) => e.$emit("click:inner-icon-right", r))
|
|
6485
6491
|
}, {
|
|
6486
6492
|
default: g(() => [
|
|
6487
|
-
|
|
6493
|
+
S(_(l.innerIconRight), 1)
|
|
6488
6494
|
]),
|
|
6489
6495
|
_: 1
|
|
6490
6496
|
}, 8, ["for"])) : c("", !0)
|
|
@@ -6496,7 +6502,7 @@ function ra(e, t, l, o, n, i) {
|
|
|
6496
6502
|
for: `w-textarea--${e._.uid}`
|
|
6497
6503
|
}, [
|
|
6498
6504
|
p(e.$slots, "default", {}, () => [
|
|
6499
|
-
|
|
6505
|
+
S(_(l.label), 1)
|
|
6500
6506
|
])
|
|
6501
6507
|
], 10, na)) : c("", !0)
|
|
6502
6508
|
], 64)) : c("", !0)
|
|
@@ -6506,7 +6512,7 @@ function ra(e, t, l, o, n, i) {
|
|
|
6506
6512
|
}
|
|
6507
6513
|
const da = {
|
|
6508
6514
|
name: "w-textarea",
|
|
6509
|
-
mixins: [
|
|
6515
|
+
mixins: [M],
|
|
6510
6516
|
props: {
|
|
6511
6517
|
modelValue: { default: "" },
|
|
6512
6518
|
label: { type: String },
|
|
@@ -6633,7 +6639,7 @@ function pa(e, t, l, o, n, i) {
|
|
|
6633
6639
|
class: f(["w-timeline-item__bullet", { [a[l.itemColorKey] || l.color]: a[l.itemColorKey] || l.color }])
|
|
6634
6640
|
}, {
|
|
6635
6641
|
default: g(() => [
|
|
6636
|
-
|
|
6642
|
+
S(_(a[l.itemIconKey] || l.icon), 1)
|
|
6637
6643
|
]),
|
|
6638
6644
|
_: 2
|
|
6639
6645
|
}, 1032, ["class"])),
|
|
@@ -6684,7 +6690,7 @@ const fa = {
|
|
|
6684
6690
|
function ma(e, t, l, o, n, i) {
|
|
6685
6691
|
return s(), u("div", {
|
|
6686
6692
|
class: f(["w-toolbar", i.classes]),
|
|
6687
|
-
style:
|
|
6693
|
+
style: R(i.styles)
|
|
6688
6694
|
}, [
|
|
6689
6695
|
p(e.$slots, "default")
|
|
6690
6696
|
], 6);
|
|
@@ -6751,7 +6757,7 @@ function wa(e, t, l, o, n, i) {
|
|
|
6751
6757
|
class: f(["w-tooltip", i.classes]),
|
|
6752
6758
|
ref: "detachable",
|
|
6753
6759
|
key: e._.uid,
|
|
6754
|
-
style:
|
|
6760
|
+
style: R(i.styles)
|
|
6755
6761
|
}, [
|
|
6756
6762
|
p(e.$slots, "default")
|
|
6757
6763
|
], 6)) : c("", !0)
|
|
@@ -6874,8 +6880,8 @@ const Ca = {
|
|
|
6874
6880
|
appear: { type: Boolean },
|
|
6875
6881
|
duration: { type: [Number, String] }
|
|
6876
6882
|
}
|
|
6877
|
-
},
|
|
6878
|
-
function
|
|
6883
|
+
}, Sa = /* @__PURE__ */ v(Ca, [["render", _a]]);
|
|
6884
|
+
function Ba(e, t, l, o, n, i) {
|
|
6879
6885
|
return s(), m(O, {
|
|
6880
6886
|
name: "expand",
|
|
6881
6887
|
mode: "out-in",
|
|
@@ -6986,7 +6992,7 @@ const $a = {
|
|
|
6986
6992
|
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;
|
|
6987
6993
|
}
|
|
6988
6994
|
}
|
|
6989
|
-
}, Va = /* @__PURE__ */ v($a, [["render",
|
|
6995
|
+
}, Va = /* @__PURE__ */ v($a, [["render", Ba]]);
|
|
6990
6996
|
function Ia(e, t, l, o, n, i) {
|
|
6991
6997
|
return s(), m(O, C({ name: "fade" }, e.$props), {
|
|
6992
6998
|
default: g(() => [
|
|
@@ -6995,13 +7001,13 @@ function Ia(e, t, l, o, n, i) {
|
|
|
6995
7001
|
_: 3
|
|
6996
7002
|
}, 16);
|
|
6997
7003
|
}
|
|
6998
|
-
const
|
|
7004
|
+
const Ta = {
|
|
6999
7005
|
name: "w-transition-fade",
|
|
7000
7006
|
props: {
|
|
7001
7007
|
appear: { type: Boolean },
|
|
7002
7008
|
duration: { type: [Number, String] }
|
|
7003
7009
|
}
|
|
7004
|
-
},
|
|
7010
|
+
}, Ra = /* @__PURE__ */ v(Ta, [["render", Ia]]);
|
|
7005
7011
|
function La(e, t, l, o, n, i) {
|
|
7006
7012
|
return s(), m(O, C({ name: "scale" }, e.$props), {
|
|
7007
7013
|
default: g(() => [
|
|
@@ -7114,15 +7120,15 @@ function Xa(e, t, l, o, n, i) {
|
|
|
7114
7120
|
key: y
|
|
7115
7121
|
}, [
|
|
7116
7122
|
(s(), m(V(i.getTreeItemComponent(h)), C({ class: "w-tree__item-label" }, h.route && { [!e.$router || i.hasExternalLink(h) ? "href" : "to"]: h.route }, {
|
|
7117
|
-
onClick: (
|
|
7118
|
-
onKeydown: (
|
|
7123
|
+
onClick: (B) => !l.disabled && !h.disabled && i.onLabelClick(h, B),
|
|
7124
|
+
onKeydown: (B) => !l.disabled && !h.disabled && i.onLabelKeydown(h, B),
|
|
7119
7125
|
tabindex: i.getTreeItemTabindex(h)
|
|
7120
7126
|
}), {
|
|
7121
7127
|
default: g(() => [
|
|
7122
7128
|
(h.children || h.branch) && (l.expandOpenIcon && h.open || l.expandIcon) && !(l.unexpandableEmpty && !h.children) ? (s(), m(a, {
|
|
7123
7129
|
key: 0,
|
|
7124
7130
|
class: "w-tree__item-expand",
|
|
7125
|
-
onClick:
|
|
7131
|
+
onClick: E((B) => !l.disabled && !h.disabled && i.onLabelClick(h, B), ["stop"]),
|
|
7126
7132
|
color: "inherit",
|
|
7127
7133
|
icon: h.open && l.expandOpenIcon || l.expandIcon,
|
|
7128
7134
|
"icon-props": { rotate90a: !h.open },
|
|
@@ -7137,7 +7143,7 @@ function Xa(e, t, l, o, n, i) {
|
|
|
7137
7143
|
path: h.path,
|
|
7138
7144
|
open: h.open
|
|
7139
7145
|
}, () => {
|
|
7140
|
-
var
|
|
7146
|
+
var B;
|
|
7141
7147
|
return [
|
|
7142
7148
|
i.itemIcon(h) ? (s(), m(r, {
|
|
7143
7149
|
key: 0,
|
|
@@ -7145,14 +7151,14 @@ function Xa(e, t, l, o, n, i) {
|
|
|
7145
7151
|
color: h.originalItem[l.itemIconColorKey] || l.iconColor
|
|
7146
7152
|
}, {
|
|
7147
7153
|
default: g(() => [
|
|
7148
|
-
|
|
7154
|
+
S(_(i.itemIcon(h)), 1)
|
|
7149
7155
|
]),
|
|
7150
7156
|
_: 2
|
|
7151
7157
|
}, 1032, ["color"])) : c("", !0),
|
|
7152
7158
|
w("span", {
|
|
7153
7159
|
innerHTML: h.label
|
|
7154
7160
|
}, null, 8, Ua),
|
|
7155
|
-
l.counts && (h.children || h.branch) ? (s(), u("span", qa, "(" + _(((
|
|
7161
|
+
l.counts && (h.children || h.branch) ? (s(), u("span", qa, "(" + _(((B = h.originalItem.children) == null ? void 0 : B.length) || 0) + ")", 1)) : c("", !0)
|
|
7156
7162
|
];
|
|
7157
7163
|
})
|
|
7158
7164
|
]),
|
|
@@ -7160,27 +7166,27 @@ function Xa(e, t, l, o, n, i) {
|
|
|
7160
7166
|
}, 1040, ["onClick", "onKeydown", "tabindex"])),
|
|
7161
7167
|
(s(), m(V(l.noTransition ? "div" : "w-transition-expand"), {
|
|
7162
7168
|
y: !l.noTransition || null,
|
|
7163
|
-
onAfterEnter: (
|
|
7164
|
-
onAfterLeave: (
|
|
7169
|
+
onAfterEnter: (B) => e.$emit("open", i.emitPayload(h)),
|
|
7170
|
+
onAfterLeave: (B) => e.$emit("close", i.emitPayload(h))
|
|
7165
7171
|
}, {
|
|
7166
7172
|
default: g(() => [
|
|
7167
7173
|
h.children && h.open ? (s(), m(d, C({ key: 0 }, e.$props, {
|
|
7168
7174
|
depth: l.depth + 1,
|
|
7169
7175
|
data: h.originalItem.children,
|
|
7170
7176
|
parent: h,
|
|
7171
|
-
onBeforeOpen: t[0] || (t[0] = (
|
|
7172
|
-
onOpen: t[1] || (t[1] = (
|
|
7173
|
-
onBeforeClose: t[2] || (t[2] = (
|
|
7174
|
-
onClose: t[3] || (t[3] = (
|
|
7175
|
-
onClick: t[4] || (t[4] = (
|
|
7176
|
-
onSelect: t[5] || (t[5] = (
|
|
7177
|
-
"onUpdate:modelValue": t[6] || (t[6] = (
|
|
7177
|
+
onBeforeOpen: t[0] || (t[0] = (B) => e.$emit("before-open", B)),
|
|
7178
|
+
onOpen: t[1] || (t[1] = (B) => e.$emit("open", B)),
|
|
7179
|
+
onBeforeClose: t[2] || (t[2] = (B) => e.$emit("before-close", B)),
|
|
7180
|
+
onClose: t[3] || (t[3] = (B) => e.$emit("close", B)),
|
|
7181
|
+
onClick: t[4] || (t[4] = (B) => e.$emit("click", B)),
|
|
7182
|
+
onSelect: t[5] || (t[5] = (B) => e.$emit("select", B)),
|
|
7183
|
+
"onUpdate:modelValue": t[6] || (t[6] = (B) => e.$emit("update:model-value", B))
|
|
7178
7184
|
}), {
|
|
7179
|
-
item: g(({ item:
|
|
7185
|
+
item: g(({ item: B, depth: b, path: T, open: x }) => [
|
|
7180
7186
|
p(e.$slots, "item", {
|
|
7181
|
-
item:
|
|
7187
|
+
item: B,
|
|
7182
7188
|
depth: b,
|
|
7183
|
-
path:
|
|
7189
|
+
path: T,
|
|
7184
7190
|
open: x
|
|
7185
7191
|
})
|
|
7186
7192
|
]),
|
|
@@ -7378,7 +7384,7 @@ const Ya = {
|
|
|
7378
7384
|
WRadio: hi,
|
|
7379
7385
|
WRadios: gi,
|
|
7380
7386
|
WRating: vi,
|
|
7381
|
-
WScrollable:
|
|
7387
|
+
WScrollable: Si,
|
|
7382
7388
|
WSelect: Pi,
|
|
7383
7389
|
WSlider: Xi,
|
|
7384
7390
|
WSpinner: Qi,
|
|
@@ -7391,9 +7397,9 @@ const Ya = {
|
|
|
7391
7397
|
WTimeline: ga,
|
|
7392
7398
|
WToolbar: ya,
|
|
7393
7399
|
WTooltip: ka,
|
|
7394
|
-
WTransitionBounce:
|
|
7400
|
+
WTransitionBounce: Sa,
|
|
7395
7401
|
WTransitionExpand: Va,
|
|
7396
|
-
WTransitionFade:
|
|
7402
|
+
WTransitionFade: Ra,
|
|
7397
7403
|
WTransitionScale: Oa,
|
|
7398
7404
|
WTransitionScaleFade: Ma,
|
|
7399
7405
|
WTransitionSlide: Aa,
|