wave-ui 3.1.3 → 3.3.0
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 +804 -738
- package/dist/wave-ui.umd.js +1 -1
- package/package.json +1 -1
- package/src/wave-ui/components/w-button/button.vue +14 -10
- package/src/wave-ui/components/w-select.vue +1 -1
- package/src/wave-ui/components/w-table.vue +163 -65
- package/src/wave-ui/components/w-tree.vue +75 -16
package/dist/wave-ui.es.js
CHANGED
|
@@ -8,8 +8,8 @@ var X = (e, t, l) => (ae(e, t, "read from private field"), l ? l.call(e) : t.get
|
|
|
8
8
|
if (t.has(e))
|
|
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
|
-
}, te = (e, t, l,
|
|
12
|
-
import { reactive as G, resolveComponent as $, openBlock as s, createBlock as
|
|
11
|
+
}, te = (e, t, l, o) => (ae(e, t, "write to private field"), o ? o.call(e, l) : t.set(e, l), l);
|
|
12
|
+
import { reactive as G, resolveComponent as $, openBlock as s, createBlock as b, Teleport as ke, createVNode as I, TransitionGroup as pe, normalizeClass as f, withCtx as g, createElementBlock as u, Fragment as _, renderList as x, mergeProps as C, createElementVNode as w, createCommentVNode as c, createApp as _e, defineComponent as Ce, inject as Be, withKeys as M, withModifiers as E, renderSlot as p, toHandlers as A, createTextVNode as B, toDisplayString as k, Transition as P, normalizeStyle as L, resolveDynamicComponent as V, normalizeProps as ie, resolveDirective as fe, withDirectives as D, createSlots as Z, vShow as ge, vModelText as me, vModelDynamic as Se, KeepAlive as $e } from "vue";
|
|
13
13
|
const Ve = G({
|
|
14
14
|
on: "#app",
|
|
15
15
|
breakpoints: {
|
|
@@ -56,30 +56,30 @@ const Ve = G({
|
|
|
56
56
|
t = Object.assign(t, e);
|
|
57
57
|
else
|
|
58
58
|
for (const l in e) {
|
|
59
|
-
const
|
|
60
|
-
typeof
|
|
59
|
+
const o = e[l];
|
|
60
|
+
typeof o == "object" ? be(e[l], t[l]) : t[l] = o;
|
|
61
61
|
}
|
|
62
62
|
return t;
|
|
63
63
|
}, Ie = ["innerHTML"];
|
|
64
|
-
function Re(e, t, l,
|
|
65
|
-
const
|
|
66
|
-
return s(),
|
|
64
|
+
function Re(e, t, l, o, n, i) {
|
|
65
|
+
const a = $("w-alert");
|
|
66
|
+
return s(), b(ke, { to: ".w-app" }, [
|
|
67
67
|
I(pe, {
|
|
68
68
|
class: f(["w-notification-manager", { "w-notification-manager--left": i.conf.align === "left" }]),
|
|
69
69
|
tag: "div",
|
|
70
70
|
name: i.transition,
|
|
71
71
|
appear: ""
|
|
72
72
|
}, {
|
|
73
|
-
default:
|
|
74
|
-
(s(!0), u(_, null,
|
|
75
|
-
r._value ? (s(),
|
|
73
|
+
default: g(() => [
|
|
74
|
+
(s(!0), u(_, null, x(i.notifications, (r) => (s(), u(_, null, [
|
|
75
|
+
r._value ? (s(), b(a, C({
|
|
76
76
|
class: "white--bg",
|
|
77
77
|
key: r._uid,
|
|
78
78
|
modelValue: r._value,
|
|
79
79
|
"onUpdate:modelValue": (d) => r._value = d,
|
|
80
80
|
onClose: r.dismiss
|
|
81
81
|
}, i.notifProps(r)), {
|
|
82
|
-
default:
|
|
82
|
+
default: g(() => [
|
|
83
83
|
w("div", {
|
|
84
84
|
innerHTML: r.message
|
|
85
85
|
}, null, 8, Ie)
|
|
@@ -94,8 +94,8 @@ function Re(e, t, l, a, o, i) {
|
|
|
94
94
|
}
|
|
95
95
|
const v = (e, t) => {
|
|
96
96
|
const l = e.__vccOpts || e;
|
|
97
|
-
for (const [
|
|
98
|
-
l[
|
|
97
|
+
for (const [o, n] of t)
|
|
98
|
+
l[o] = n;
|
|
99
99
|
return l;
|
|
100
100
|
}, Le = {
|
|
101
101
|
name: "w-notification-manager",
|
|
@@ -113,7 +113,7 @@ const v = (e, t) => {
|
|
|
113
113
|
},
|
|
114
114
|
methods: {
|
|
115
115
|
notifProps(e) {
|
|
116
|
-
const { _value: t, _uid: l, message:
|
|
116
|
+
const { _value: t, _uid: l, message: o, timeout: n, ...i } = e;
|
|
117
117
|
return i.dismiss && (i.dismiss = !0), i;
|
|
118
118
|
}
|
|
119
119
|
}
|
|
@@ -142,11 +142,11 @@ const H = class {
|
|
|
142
142
|
if (typeof t[0] == "object")
|
|
143
143
|
l = { ...l, ...t[0] };
|
|
144
144
|
else {
|
|
145
|
-
const [
|
|
145
|
+
const [o, n, i] = t;
|
|
146
146
|
l = {
|
|
147
147
|
...l,
|
|
148
|
-
message:
|
|
149
|
-
[
|
|
148
|
+
message: o || "",
|
|
149
|
+
[n === void 0 ? "info" : n]: !0,
|
|
150
150
|
timeout: i || i === 0 ? parseFloat(i) : 4e3
|
|
151
151
|
};
|
|
152
152
|
}
|
|
@@ -159,39 +159,39 @@ const H = class {
|
|
|
159
159
|
let Y = H;
|
|
160
160
|
K = new WeakMap(), ee(Y, K, void 0);
|
|
161
161
|
const xe = (e, t, l) => {
|
|
162
|
-
const
|
|
163
|
-
e.appendChild(
|
|
164
|
-
const
|
|
162
|
+
const o = document.createElement("div");
|
|
163
|
+
e.appendChild(o);
|
|
164
|
+
const n = _e(Ce({
|
|
165
165
|
...Te,
|
|
166
166
|
inject: ["$waveui"]
|
|
167
167
|
})).provide("$waveui", l);
|
|
168
168
|
for (const i in t) {
|
|
169
|
-
const
|
|
170
|
-
|
|
169
|
+
const a = t[i];
|
|
170
|
+
n.component(a.name, { ...a, inject: ["$waveui"] });
|
|
171
171
|
}
|
|
172
|
-
|
|
172
|
+
n.mount(o), o.remove();
|
|
173
173
|
}, oe = (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(""), Pe = (e) => {
|
|
174
174
|
["light", "dark"].forEach((t) => {
|
|
175
175
|
const l = e.colors[t];
|
|
176
176
|
l.shades = {};
|
|
177
|
-
for (let
|
|
178
|
-
if (
|
|
177
|
+
for (let o in l) {
|
|
178
|
+
if (o === "shades")
|
|
179
179
|
continue;
|
|
180
|
-
|
|
181
|
-
const
|
|
182
|
-
|
|
180
|
+
o = { label: o, color: l[o].replace("#", "") };
|
|
181
|
+
const n = o.color;
|
|
182
|
+
n.length === 3 && (o.color = n[0] + "" + n[0] + n[1] + n[1] + n[2] + n[2]);
|
|
183
183
|
for (let i = 1; i <= 3; i++) {
|
|
184
|
-
const
|
|
185
|
-
l.shades[`${
|
|
184
|
+
const a = oe(`#${o.color}`, i * 40), r = oe(`#${o.color}`, -i * 40);
|
|
185
|
+
l.shades[`${o.label}-light${i}`] = a, l.shades[`${o.label}-dark${i}`] = r;
|
|
186
186
|
}
|
|
187
187
|
}
|
|
188
188
|
});
|
|
189
189
|
}, ne = (e, t) => {
|
|
190
190
|
const l = {
|
|
191
|
-
...t.reduce((
|
|
192
|
-
|
|
193
|
-
const i = (
|
|
194
|
-
return { ...
|
|
191
|
+
...t.reduce((o, n) => {
|
|
192
|
+
o[n.label] = n.color;
|
|
193
|
+
const i = (n.shades || []).reduce((a, r) => (a[r.label] = r.color, a), {});
|
|
194
|
+
return { ...o, ...i };
|
|
195
195
|
}, { ...e, ...e.shades })
|
|
196
196
|
};
|
|
197
197
|
return delete l.shades, l;
|
|
@@ -549,35 +549,35 @@ const xe = (e, t, l) => {
|
|
|
549
549
|
let se = { keys: [], values: [] }, de = null;
|
|
550
550
|
const Oe = (e) => {
|
|
551
551
|
let t = "";
|
|
552
|
-
const l = {}, { info:
|
|
553
|
-
for (const
|
|
554
|
-
t += `${h} .${
|
|
555
|
-
for (const
|
|
556
|
-
t += `${h} .${
|
|
557
|
-
const y = { ...d, info:
|
|
558
|
-
for (const
|
|
559
|
-
l[
|
|
552
|
+
const l = {}, { info: o, warning: n, success: i, error: a, shades: r, ...d } = e, { cssScope: h } = U;
|
|
553
|
+
for (const m in d)
|
|
554
|
+
t += `${h} .${m}--bg{background-color:var(--w-${m}-color)}${h} .${m}{color:var(--w-${m}-color)}`;
|
|
555
|
+
for (const m in r)
|
|
556
|
+
t += `${h} .${m}--bg{background-color:${r[m]}}${h} .${m}{color:${r[m]}}`;
|
|
557
|
+
const y = { ...d, info: o, warning: n, success: i, error: a };
|
|
558
|
+
for (const m in y)
|
|
559
|
+
l[m] = y[m];
|
|
560
560
|
let S = "";
|
|
561
|
-
return Object.entries(l).forEach(([
|
|
562
|
-
S += `--w-${
|
|
561
|
+
return Object.entries(l).forEach(([m, R]) => {
|
|
562
|
+
S += `--w-${m}-color: ${R};`;
|
|
563
563
|
}), `:root{${S}}${t}`;
|
|
564
564
|
}, ze = (e, t) => {
|
|
565
565
|
let l = "";
|
|
566
|
-
const { cssScope:
|
|
567
|
-
return e.forEach(({ min:
|
|
566
|
+
const { cssScope: o } = U;
|
|
567
|
+
return e.forEach(({ min: n, label: i }) => {
|
|
568
568
|
if (i === "xs")
|
|
569
|
-
for (let
|
|
570
|
-
l += `${
|
|
569
|
+
for (let a = 0; a < t; a++)
|
|
570
|
+
l += `${o} .${i}${t - a}{width:${parseFloat(((t - a) * 100 / t).toFixed(4))}%;}`;
|
|
571
571
|
else {
|
|
572
|
-
l += `@media(min-width:${
|
|
573
|
-
for (let
|
|
574
|
-
l += `${
|
|
572
|
+
l += `@media(min-width:${n}px){`;
|
|
573
|
+
for (let a = 0; a < t; a++)
|
|
574
|
+
l += `${o} .${i}${t - a}{width:${parseFloat(((t - a) * 100 / t).toFixed(4))}%;}`;
|
|
575
575
|
l += "}";
|
|
576
576
|
}
|
|
577
577
|
}), l;
|
|
578
578
|
}, Ee = (e) => {
|
|
579
579
|
let t = "";
|
|
580
|
-
const { cssScope: l, baseIncrement:
|
|
580
|
+
const { cssScope: l, baseIncrement: o } = U, n = [
|
|
581
581
|
"show{display:block}",
|
|
582
582
|
"hide{display:none}",
|
|
583
583
|
"d-flex{display:flex}",
|
|
@@ -611,53 +611,53 @@ const Oe = (e) => {
|
|
|
611
611
|
"justify-space-around{justify-content:space-around}",
|
|
612
612
|
"justify-space-evenly{justify-content:space-evenly}"
|
|
613
613
|
], i = Array(12).fill();
|
|
614
|
-
return e.forEach(({ label:
|
|
615
|
-
|
|
616
|
-
}), e.forEach(({ label:
|
|
617
|
-
t += `@media (min-width:${r}px) and (max-width:${d}px){` +
|
|
618
|
-
}), e.forEach(({ label:
|
|
619
|
-
|
|
614
|
+
return e.forEach(({ label: a, min: r }) => {
|
|
615
|
+
a !== "xs" && (t += `@media(min-width:${r}px){` + n.map((d) => `${l} .${a}u-${d}`).join("") + i.map((d, h) => `.w-grid.${a}u-columns${h + 1}{grid-template-columns:repeat(${h + 1},1fr);}`).join("") + i.map((d, h) => `.w-flex.${a}u-gap${h + 1},.w-grid.${a}u-gap${h + 1}{gap:${(h + 1) * o}px;}`).join("") + `.w-flex.${a}u-gap0,.w-flex.${a}u-gap0{gap:0}}`);
|
|
616
|
+
}), e.forEach(({ label: a, min: r, max: d }) => {
|
|
617
|
+
t += `@media (min-width:${r}px) and (max-width:${d}px){` + n.map((h) => `${l} .${a}-${h}`).join("") + i.map((h, y) => `.w-grid.${a}-columns${y + 1}{grid-template-columns:repeat(${y + 1},1fr);}`).join("") + i.map((h, y) => `.w-flex.${a}-gap${y + 1},.w-grid.${a}-gap${y + 1}{gap:${(y + 1) * o}px;}`).join("") + `.w-flex.${a}-gap0,.w-flex.${a}-gap0{gap:0}}`;
|
|
618
|
+
}), e.forEach(({ label: a, max: r }) => {
|
|
619
|
+
a !== "xl" && (t += `@media (max-width:${r}px){` + n.map((d) => `${l} .${a}d-${d}`).join("") + i.map((d, h) => `.w-grid.${a}d-columns${h + 1}{grid-template-columns:repeat(${h + 1},1fr);}`).join("") + i.map((d, h) => `.w-flex.${a}d-gap${h + 1},.w-grid.${a}d-gap${h + 1}{gap:${(h + 1) * o}px;}`).join("") + `.w-flex.${a}d-gap0,.w-flex.${a}d-gap0{gap:0}}`);
|
|
620
620
|
}), t;
|
|
621
621
|
}, ue = (e) => {
|
|
622
622
|
const t = window.innerWidth, l = se.values.slice(0);
|
|
623
|
-
l.push(t), l.sort((
|
|
624
|
-
const
|
|
625
|
-
|
|
626
|
-
name:
|
|
627
|
-
xs:
|
|
628
|
-
sm:
|
|
629
|
-
md:
|
|
630
|
-
lg:
|
|
631
|
-
xl:
|
|
623
|
+
l.push(t), l.sort((n, i) => n - i);
|
|
624
|
+
const o = se.keys[l.indexOf(t)] || "xl";
|
|
625
|
+
o !== de && (de = o, e.breakpoint = {
|
|
626
|
+
name: o,
|
|
627
|
+
xs: o === "xs",
|
|
628
|
+
sm: o === "sm",
|
|
629
|
+
md: o === "md",
|
|
630
|
+
lg: o === "lg",
|
|
631
|
+
xl: o === "xl",
|
|
632
632
|
width: t
|
|
633
633
|
}), e.breakpoint.width = window.innerWidth;
|
|
634
634
|
}, Me = (e) => {
|
|
635
635
|
const { config: t } = e;
|
|
636
636
|
if (se = { keys: Object.keys(t.breakpoints), values: Object.values(t.breakpoints) }, !document.getElementById("wave-ui-styles")) {
|
|
637
637
|
const l = document.createElement("style");
|
|
638
|
-
l.id = "wave-ui-styles", l.innerHTML =
|
|
639
|
-
const
|
|
640
|
-
|
|
638
|
+
l.id = "wave-ui-styles", l.innerHTML = Ne(t);
|
|
639
|
+
const o = document.head.querySelectorAll('style,link[rel="stylesheet"]')[0];
|
|
640
|
+
o ? o.before(l) : document.head.appendChild(l);
|
|
641
641
|
}
|
|
642
642
|
ue(e), window.addEventListener("resize", () => ue(e));
|
|
643
|
-
},
|
|
643
|
+
}, Ae = (e) => {
|
|
644
644
|
if (!document.getElementById("wave-ui-colors")) {
|
|
645
645
|
const t = document.createElement("style");
|
|
646
646
|
t.id = "wave-ui-colors", t.innerHTML = Oe(e);
|
|
647
647
|
const l = document.head.querySelectorAll('style,link[rel="stylesheet"]')[0];
|
|
648
648
|
l ? l.before(t) : document.head.appendChild(t);
|
|
649
649
|
}
|
|
650
|
-
},
|
|
651
|
-
const t = Object.entries(e.breakpoints), l = t.map(([i,
|
|
650
|
+
}, Ne = (e) => {
|
|
651
|
+
const t = Object.entries(e.breakpoints), l = t.map(([i, a], r) => {
|
|
652
652
|
const [, d = 0] = t[r - 1] || [];
|
|
653
|
-
return { label: i, min: d ? d + 1 : 0, max:
|
|
654
|
-
}),
|
|
655
|
-
U.cssScope =
|
|
656
|
-
let
|
|
657
|
-
return
|
|
653
|
+
return { label: i, min: d ? d + 1 : 0, max: a };
|
|
654
|
+
}), o = getComputedStyle(document.documentElement);
|
|
655
|
+
U.cssScope = o.getPropertyValue("--w-css-scope"), U.baseIncrement = parseInt(o.getPropertyValue("--w-base-increment"));
|
|
656
|
+
let n = "";
|
|
657
|
+
return n += ze(l, e.css.grid), e.css.breakpointLayoutClasses && (n += Ee(l)), n;
|
|
658
658
|
};
|
|
659
659
|
let he = !1;
|
|
660
|
-
const
|
|
660
|
+
const We = (e) => {
|
|
661
661
|
const t = window.matchMedia("(prefers-color-scheme: dark)");
|
|
662
662
|
e.preferredTheme = t.matches ? "dark" : "light", e.switchTheme(e.preferredTheme), t.addEventListener("change", (l) => {
|
|
663
663
|
e.preferredTheme = l.matches ? "dark" : "light", e.switchTheme(e.preferredTheme);
|
|
@@ -688,10 +688,10 @@ const j = class {
|
|
|
688
688
|
this._notificationManager.notify(...t);
|
|
689
689
|
},
|
|
690
690
|
switchTheme(t, l = !1) {
|
|
691
|
-
var
|
|
692
|
-
this.theme = t, document.documentElement.setAttribute("data-theme", t), (i = (
|
|
693
|
-
const
|
|
694
|
-
|
|
691
|
+
var n, i;
|
|
692
|
+
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);
|
|
693
|
+
const o = this.config.colors[this.theme];
|
|
694
|
+
Ae(o), this.colors = ne(o, re);
|
|
695
695
|
}
|
|
696
696
|
});
|
|
697
697
|
if (X(j, q)) {
|
|
@@ -699,51 +699,51 @@ const j = class {
|
|
|
699
699
|
return;
|
|
700
700
|
}
|
|
701
701
|
if (this.$waveui._notificationManager = new Y(), l.theme || (l.theme = "light"), l.colors) {
|
|
702
|
-
const
|
|
703
|
-
l.colors.light || (l.colors.light =
|
|
702
|
+
const a = { ...l.colors };
|
|
703
|
+
l.colors.light || (l.colors.light = a), l.colors.dark || (l.colors.dark = a), l.colors = { light: l.colors.light, dark: l.colors.dark };
|
|
704
704
|
}
|
|
705
|
-
let { components:
|
|
706
|
-
|
|
705
|
+
let { components: o, ...n } = l;
|
|
706
|
+
n = this.$waveui.config = be(n), n.css.colorShades && Pe(n);
|
|
707
707
|
const i = G(this.$waveui);
|
|
708
|
-
t.config.globalProperties.$waveui = i, t.provide("$waveui", i),
|
|
708
|
+
t.config.globalProperties.$waveui = i, t.provide("$waveui", i), n.theme !== "auto" && (this.$waveui.colors = ne(n.colors[n.theme], re));
|
|
709
709
|
}
|
|
710
710
|
static install(t, l = {}) {
|
|
711
|
-
var
|
|
711
|
+
var n;
|
|
712
712
|
t.directive("focus", {
|
|
713
713
|
mounted: (i) => setTimeout(() => i.focus(), 0)
|
|
714
714
|
}), t.directive("scroll", {
|
|
715
|
-
mounted: (i,
|
|
715
|
+
mounted: (i, a) => {
|
|
716
716
|
const r = (d) => {
|
|
717
|
-
|
|
717
|
+
a.value(d, i) && window.removeEventListener("scroll", r);
|
|
718
718
|
};
|
|
719
719
|
window.addEventListener("scroll", r);
|
|
720
720
|
}
|
|
721
721
|
});
|
|
722
|
-
const { components:
|
|
723
|
-
for (const i in
|
|
724
|
-
const
|
|
725
|
-
(
|
|
722
|
+
const { components: o = {} } = l || {};
|
|
723
|
+
for (const i in o) {
|
|
724
|
+
const a = o[i];
|
|
725
|
+
(n = l.presets) != null && n[a.name] && Ke(a, l.presets[a.name]), t.component(a.name, a);
|
|
726
726
|
}
|
|
727
727
|
t.mixin({
|
|
728
728
|
beforeMount() {
|
|
729
729
|
if (!he) {
|
|
730
730
|
he = !0;
|
|
731
|
-
const i = Be("$waveui"), { config:
|
|
732
|
-
r.classList.add("w-app"),
|
|
731
|
+
const i = Be("$waveui"), { config: a } = i, r = document.querySelector(a.on) || document.body;
|
|
732
|
+
r.classList.add("w-app"), a.theme === "auto" ? We(i) : i.switchTheme(a.theme, !0), Me(i), xe(r, o, i), t._context.mixins.find((d) => d.mounted && delete d.mounted);
|
|
733
733
|
}
|
|
734
734
|
}
|
|
735
735
|
}), new j(t, l), te(j, q, !0);
|
|
736
736
|
}
|
|
737
737
|
};
|
|
738
|
-
let
|
|
739
|
-
q = new WeakMap(), ee(
|
|
738
|
+
let W = j;
|
|
739
|
+
q = new WeakMap(), ee(W, q, !1);
|
|
740
740
|
const De = ["aria-expanded"], Fe = ["onClick", "onFocus", "onKeypress", "tabindex"], He = ["innerHTML"], je = ["innerHTML"];
|
|
741
|
-
function Ue(e, t, l,
|
|
742
|
-
const
|
|
741
|
+
function Ue(e, t, l, o, n, i) {
|
|
742
|
+
const a = $("w-button"), r = $("w-transition-expand");
|
|
743
743
|
return s(), u("div", {
|
|
744
744
|
class: f(["w-accordion", i.accordionClasses])
|
|
745
745
|
}, [
|
|
746
|
-
(s(!0), u(_, null,
|
|
746
|
+
(s(!0), u(_, null, x(e.accordionItems, (d, h) => (s(), u("div", {
|
|
747
747
|
class: f(["w-accordion__item", i.itemClasses(d)]),
|
|
748
748
|
key: h,
|
|
749
749
|
"aria-expanded": d._expanded ? "true" : "false"
|
|
@@ -755,7 +755,7 @@ function Ue(e, t, l, a, o, i) {
|
|
|
755
755
|
onKeypress: M((y) => !d._disabled && i.toggleItem(d, y), ["enter"]),
|
|
756
756
|
tabindex: !d._disabled && 0
|
|
757
757
|
}, [
|
|
758
|
-
l.expandIcon && !l.expandIconRight ? (s(),
|
|
758
|
+
l.expandIcon && !l.expandIconRight ? (s(), b(a, {
|
|
759
759
|
key: 0,
|
|
760
760
|
class: f(["w-accordion__expand-icon", { "w-accordion__expand-icon--expanded": d._expanded, "w-accordion__expand-icon--rotate90": l.expandIconRotate90 }]),
|
|
761
761
|
icon: d._expanded && l.collapseIcon || l.expandIcon,
|
|
@@ -783,7 +783,7 @@ function Ue(e, t, l, a, o, i) {
|
|
|
783
783
|
innerHTML: d[l.itemTitleKey]
|
|
784
784
|
}, null, 8, He)
|
|
785
785
|
]),
|
|
786
|
-
l.expandIcon && l.expandIconRight ? (s(),
|
|
786
|
+
l.expandIcon && l.expandIconRight ? (s(), b(a, {
|
|
787
787
|
key: 3,
|
|
788
788
|
class: f(["w-accordion__expand-icon", { "w-accordion__expand-icon--expanded": d._expanded, "w-accordion__expand-icon--rotate90": l.expandIconRotate90 }]),
|
|
789
789
|
icon: d._expanded && l.collapseIcon || l.expandIcon,
|
|
@@ -798,7 +798,7 @@ function Ue(e, t, l, a, o, i) {
|
|
|
798
798
|
onAfterLeave: (y) => i.onEndOfCollapse(d),
|
|
799
799
|
duration: l.duration
|
|
800
800
|
}, {
|
|
801
|
-
default:
|
|
801
|
+
default: g(() => [
|
|
802
802
|
d._expanded ? (s(), u("div", {
|
|
803
803
|
key: 0,
|
|
804
804
|
class: f(["w-accordion__item-content", l.contentClass])
|
|
@@ -869,8 +869,8 @@ const qe = {
|
|
|
869
869
|
},
|
|
870
870
|
methods: {
|
|
871
871
|
toggleItem(e, t) {
|
|
872
|
-
e._expanded = !e._expanded, this.expandSingle && this.accordionItems.forEach((
|
|
873
|
-
const l = this.accordionItems.map((
|
|
872
|
+
e._expanded = !e._expanded, this.expandSingle && this.accordionItems.forEach((o) => o._index !== e._index && (o._expanded = !1));
|
|
873
|
+
const l = this.accordionItems.map((o) => o._expanded || !1);
|
|
874
874
|
this.$emit("update:modelValue", l), this.$emit("input", l), this.$emit("item-expand", { item: e, expanded: e._expanded }), t.target.blur(), setTimeout(() => t.target.focus(), 300);
|
|
875
875
|
},
|
|
876
876
|
onEndOfCollapse(e) {
|
|
@@ -912,30 +912,30 @@ const qe = {
|
|
|
912
912
|
}
|
|
913
913
|
}
|
|
914
914
|
}, Ge = /* @__PURE__ */ v(qe, [["render", Ue]]), Xe = { class: "w-alert__content" };
|
|
915
|
-
function Ye(e, t, l,
|
|
916
|
-
const
|
|
917
|
-
return
|
|
915
|
+
function Ye(e, t, l, o, n, i) {
|
|
916
|
+
const a = $("w-icon"), r = $("w-button");
|
|
917
|
+
return n.show ? (s(), u("div", C({
|
|
918
918
|
key: 0,
|
|
919
919
|
class: "w-alert"
|
|
920
|
-
},
|
|
920
|
+
}, A(e.$attrs, !0), { class: i.classes }), [
|
|
921
921
|
i.type || l.icon || l.dismiss ? (s(), u(_, { key: 0 }, [
|
|
922
|
-
i.type || l.icon ? (s(),
|
|
922
|
+
i.type || l.icon ? (s(), b(a, {
|
|
923
923
|
key: 0,
|
|
924
924
|
class: "w-alert__icon mr2"
|
|
925
925
|
}, {
|
|
926
|
-
default:
|
|
927
|
-
|
|
926
|
+
default: g(() => [
|
|
927
|
+
B(k(i.type ? i.typeIcon : l.icon), 1)
|
|
928
928
|
]),
|
|
929
929
|
_: 1
|
|
930
930
|
})) : c("", !0),
|
|
931
931
|
w("div", Xe, [
|
|
932
932
|
p(e.$slots, "default")
|
|
933
933
|
]),
|
|
934
|
-
l.dismiss ? (s(),
|
|
934
|
+
l.dismiss ? (s(), b(r, {
|
|
935
935
|
key: 1,
|
|
936
936
|
class: "w-alert__dismiss",
|
|
937
937
|
onClick: t[0] || (t[0] = (d) => {
|
|
938
|
-
e.$emit("update:modelValue",
|
|
938
|
+
e.$emit("update:modelValue", n.show = !1), e.$emit("input", !1), e.$emit("close", !1);
|
|
939
939
|
}),
|
|
940
940
|
icon: "wi-cross",
|
|
941
941
|
color: "inherit",
|
|
@@ -1025,7 +1025,7 @@ const Je = {
|
|
|
1025
1025
|
}
|
|
1026
1026
|
}
|
|
1027
1027
|
}, Qe = /* @__PURE__ */ v(Je, [["render", Ye]]), Ze = { class: "w-app" };
|
|
1028
|
-
function et(e, t, l,
|
|
1028
|
+
function et(e, t, l, o, n, i) {
|
|
1029
1029
|
return s(), u("div", Ze, [
|
|
1030
1030
|
p(e.$slots, "default")
|
|
1031
1031
|
]);
|
|
@@ -1046,13 +1046,13 @@ const tt = {
|
|
|
1046
1046
|
textRight: { type: Boolean }
|
|
1047
1047
|
}
|
|
1048
1048
|
}, lt = /* @__PURE__ */ v(tt, [["render", et]]);
|
|
1049
|
-
function it(e, t, l,
|
|
1050
|
-
return s(), u("div",
|
|
1049
|
+
function it(e, t, l, o, n, i) {
|
|
1050
|
+
return s(), u("div", C({ class: "w-badge-wrap" }, A(e.$attrs, !0)), [
|
|
1051
1051
|
p(e.$slots, "default"),
|
|
1052
|
-
I(
|
|
1052
|
+
I(P, {
|
|
1053
1053
|
name: `${l.transition}`
|
|
1054
1054
|
}, {
|
|
1055
|
-
default:
|
|
1055
|
+
default: g(() => [
|
|
1056
1056
|
l.modelValue ? (s(), u("div", {
|
|
1057
1057
|
key: 0,
|
|
1058
1058
|
class: f(["w-badge", i.classes]),
|
|
@@ -1063,7 +1063,7 @@ function it(e, t, l, a, o, i) {
|
|
|
1063
1063
|
role: "status"
|
|
1064
1064
|
}, [
|
|
1065
1065
|
l.dot ? c("", !0) : p(e.$slots, "badge", { key: 0 }, () => [
|
|
1066
|
-
|
|
1066
|
+
B(k(l.modelValue === !0 ? "" : l.modelValue || ""), 1)
|
|
1067
1067
|
])
|
|
1068
1068
|
], 6)) : c("", !0)
|
|
1069
1069
|
]),
|
|
@@ -1135,34 +1135,34 @@ const st = {
|
|
|
1135
1135
|
}
|
|
1136
1136
|
}
|
|
1137
1137
|
}, at = /* @__PURE__ */ v(st, [["render", it]]), ot = ["innerHTML"];
|
|
1138
|
-
function nt(e, t, l,
|
|
1139
|
-
const
|
|
1138
|
+
function nt(e, t, l, o, n, i) {
|
|
1139
|
+
const a = $("w-icon");
|
|
1140
1140
|
return s(), u("div", {
|
|
1141
1141
|
class: f(["w-breadcrumbs", i.classes])
|
|
1142
1142
|
}, [
|
|
1143
|
-
(s(!0), u(_, null,
|
|
1143
|
+
(s(!0), u(_, null, x(l.items, (r, d) => (s(), u(_, null, [
|
|
1144
1144
|
d && e.$slots.separator ? (s(), u("span", {
|
|
1145
1145
|
class: f(["w-breadcrumbs__separator", l.separatorColor]),
|
|
1146
1146
|
key: `${d}a`
|
|
1147
1147
|
}, [
|
|
1148
1148
|
p(e.$slots, "separator", { index: d })
|
|
1149
|
-
], 2)) : d ? (s(),
|
|
1149
|
+
], 2)) : d ? (s(), b(a, {
|
|
1150
1150
|
class: f(["w-breadcrumbs__separator", l.separatorColor]),
|
|
1151
1151
|
key: `${d}b`
|
|
1152
1152
|
}, {
|
|
1153
|
-
default:
|
|
1154
|
-
|
|
1153
|
+
default: g(() => [
|
|
1154
|
+
B(k(l.icon), 1)
|
|
1155
1155
|
]),
|
|
1156
1156
|
_: 2
|
|
1157
1157
|
}, 1032, ["class"])) : c("", !0),
|
|
1158
1158
|
r[l.itemRouteKey] && (d < l.items.length - 1 || l.linkLastItem) ? (s(), u(_, { key: 2 }, [
|
|
1159
|
-
e.$slots.item ? (s(),
|
|
1159
|
+
e.$slots.item ? (s(), b(V(i.hasRouter ? "router-link" : "a"), {
|
|
1160
1160
|
class: f(["w-breadcrumbs__item", l.color || null]),
|
|
1161
1161
|
key: `${d}c`,
|
|
1162
1162
|
to: i.hasRouter && r[l.itemRouteKey],
|
|
1163
1163
|
href: r[l.itemRouteKey]
|
|
1164
1164
|
}, {
|
|
1165
|
-
default:
|
|
1165
|
+
default: g(() => [
|
|
1166
1166
|
p(e.$slots, "item", {
|
|
1167
1167
|
item: r,
|
|
1168
1168
|
index: d + 1,
|
|
@@ -1170,7 +1170,7 @@ function nt(e, t, l, a, o, i) {
|
|
|
1170
1170
|
})
|
|
1171
1171
|
]),
|
|
1172
1172
|
_: 2
|
|
1173
|
-
}, 1032, ["to", "href", "class"])) : (s(),
|
|
1173
|
+
}, 1032, ["to", "href", "class"])) : (s(), b(V(i.hasRouter ? "router-link" : "a"), {
|
|
1174
1174
|
class: f(["w-breadcrumbs__item", l.color || null]),
|
|
1175
1175
|
key: `${d}d`,
|
|
1176
1176
|
to: i.hasRouter && r[l.itemRouteKey],
|
|
@@ -1233,23 +1233,23 @@ const rt = {
|
|
|
1233
1233
|
"stroke-linecap": "round"
|
|
1234
1234
|
})
|
|
1235
1235
|
], -1);
|
|
1236
|
-
function ct(e, t, l,
|
|
1237
|
-
const
|
|
1238
|
-
return s(),
|
|
1236
|
+
function ct(e, t, l, o, n, i) {
|
|
1237
|
+
const a = $("w-icon");
|
|
1238
|
+
return s(), b(V(l.route ? "a" : "button"), C({
|
|
1239
1239
|
class: ["w-button", i.classes],
|
|
1240
1240
|
type: !l.route && l.type,
|
|
1241
1241
|
href: l.route && (i.externalLink ? l.route : i.resolvedRoute) || null,
|
|
1242
1242
|
disabled: !!l.disabled || null
|
|
1243
|
-
},
|
|
1244
|
-
default:
|
|
1245
|
-
l.icon ? (s(),
|
|
1246
|
-
default:
|
|
1247
|
-
|
|
1243
|
+
}, A(i.listeners), { style: i.styles }), {
|
|
1244
|
+
default: g(() => [
|
|
1245
|
+
l.icon ? (s(), b(a, ie(C({ key: 0 }, l.iconProps || {})), {
|
|
1246
|
+
default: g(() => [
|
|
1247
|
+
B(k(l.icon), 1)
|
|
1248
1248
|
]),
|
|
1249
1249
|
_: 1
|
|
1250
1250
|
}, 16)) : p(e.$slots, "default", { key: 1 }),
|
|
1251
|
-
I(
|
|
1252
|
-
default:
|
|
1251
|
+
I(P, { name: "scale-fade" }, {
|
|
1252
|
+
default: g(() => [
|
|
1253
1253
|
l.loading ? (s(), u("div", ut, [
|
|
1254
1254
|
p(e.$slots, "loading", {}, () => [
|
|
1255
1255
|
ht
|
|
@@ -1352,24 +1352,24 @@ const pt = {
|
|
|
1352
1352
|
};
|
|
1353
1353
|
}
|
|
1354
1354
|
}
|
|
1355
|
-
}, ft = /* @__PURE__ */ v(pt, [["render", ct]]),
|
|
1356
|
-
function
|
|
1357
|
-
const
|
|
1358
|
-
return l.tooltip ? (s(),
|
|
1359
|
-
activator:
|
|
1360
|
-
I(
|
|
1361
|
-
default:
|
|
1355
|
+
}, ft = /* @__PURE__ */ v(pt, [["render", ct]]), gt = ["innerHTML"];
|
|
1356
|
+
function mt(e, t, l, o, n, i) {
|
|
1357
|
+
const a = $("button-partial");
|
|
1358
|
+
return l.tooltip ? (s(), b(V("w-tooltip"), ie(C({ key: 0 }, l.tooltipProps || {})), {
|
|
1359
|
+
activator: g(({ on: r }) => [
|
|
1360
|
+
I(a, C(i.buttonProps, A(r)), {
|
|
1361
|
+
default: g(() => [
|
|
1362
1362
|
p(e.$slots, "default")
|
|
1363
1363
|
]),
|
|
1364
1364
|
_: 2
|
|
1365
1365
|
}, 1040)
|
|
1366
1366
|
]),
|
|
1367
|
-
default:
|
|
1368
|
-
w("div", { innerHTML: l.tooltip }, null, 8,
|
|
1367
|
+
default: g(() => [
|
|
1368
|
+
w("div", { innerHTML: l.tooltip }, null, 8, gt)
|
|
1369
1369
|
]),
|
|
1370
1370
|
_: 3
|
|
1371
|
-
}, 16)) : (s(),
|
|
1372
|
-
default:
|
|
1371
|
+
}, 16)) : (s(), b(a, ie(C({ key: 1 }, i.buttonProps)), {
|
|
1372
|
+
default: g(() => [
|
|
1373
1373
|
p(e.$slots, "default")
|
|
1374
1374
|
]),
|
|
1375
1375
|
_: 3
|
|
@@ -1419,9 +1419,9 @@ const bt = {
|
|
|
1419
1419
|
return { ...l, ...this.$attrs };
|
|
1420
1420
|
}
|
|
1421
1421
|
}
|
|
1422
|
-
}, yt = /* @__PURE__ */ v(bt, [["render",
|
|
1423
|
-
function vt(e, t, l,
|
|
1424
|
-
const
|
|
1422
|
+
}, yt = /* @__PURE__ */ v(bt, [["render", mt]]), N = (e = {}) => (typeof e == "string" ? e = { [e]: !0 } : Array.isArray(e) && (e = { [e.join(" ")]: !0 }), e), wt = ["innerHTML"];
|
|
1423
|
+
function vt(e, t, l, o, n, i) {
|
|
1424
|
+
const a = $("w-image");
|
|
1425
1425
|
return s(), u("div", {
|
|
1426
1426
|
class: f(["w-card", i.classes])
|
|
1427
1427
|
}, [
|
|
@@ -1435,12 +1435,12 @@ function vt(e, t, l, a, o, i) {
|
|
|
1435
1435
|
class: f(["w-card__title", { "w-card__title--has-toolbar": e.$slots.title && i.titleHasToolbar, ...i.titleClasses }]),
|
|
1436
1436
|
innerHTML: l.title
|
|
1437
1437
|
}, null, 10, wt)) : c("", !0),
|
|
1438
|
-
l.image ? (s(),
|
|
1438
|
+
l.image ? (s(), b(a, C({
|
|
1439
1439
|
key: 2,
|
|
1440
1440
|
class: "w-card__image",
|
|
1441
1441
|
src: l.image
|
|
1442
1442
|
}, i.imgProps), {
|
|
1443
|
-
default:
|
|
1443
|
+
default: g(() => [
|
|
1444
1444
|
p(e.$slots, "image-content")
|
|
1445
1445
|
]),
|
|
1446
1446
|
_: 3
|
|
@@ -1477,10 +1477,10 @@ const kt = {
|
|
|
1477
1477
|
emits: [],
|
|
1478
1478
|
computed: {
|
|
1479
1479
|
titleClasses() {
|
|
1480
|
-
return
|
|
1480
|
+
return N(this.titleClass);
|
|
1481
1481
|
},
|
|
1482
1482
|
contentClasses() {
|
|
1483
|
-
return
|
|
1483
|
+
return N(this.contentClass);
|
|
1484
1484
|
},
|
|
1485
1485
|
titleHasToolbar() {
|
|
1486
1486
|
const { title: e } = this.$slots;
|
|
@@ -1555,30 +1555,30 @@ const kt = {
|
|
|
1555
1555
|
], -1), Vt = [
|
|
1556
1556
|
$t
|
|
1557
1557
|
], It = ["for"], Rt = ["for", "innerHTML"];
|
|
1558
|
-
function Lt(e, t, l,
|
|
1559
|
-
return s(),
|
|
1558
|
+
function Lt(e, t, l, o, n, i) {
|
|
1559
|
+
return s(), b(V(e.formRegister && !i.wCheckboxes ? "w-form-element" : "div"), C({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: n.isChecked, disabled: e.isDisabled }, {
|
|
1560
1560
|
valid: e.valid,
|
|
1561
|
-
"onUpdate:valid": t[5] || (t[5] = (
|
|
1562
|
-
onReset: t[6] || (t[6] = (
|
|
1563
|
-
e.$emit("update:modelValue",
|
|
1561
|
+
"onUpdate:valid": t[5] || (t[5] = (a) => e.valid = a),
|
|
1562
|
+
onReset: t[6] || (t[6] = (a) => {
|
|
1563
|
+
e.$emit("update:modelValue", n.isChecked = null), e.$emit("input", null);
|
|
1564
1564
|
}),
|
|
1565
1565
|
class: i.classes
|
|
1566
1566
|
}), {
|
|
1567
|
-
default:
|
|
1567
|
+
default: g(() => [
|
|
1568
1568
|
w("input", {
|
|
1569
1569
|
ref: "input",
|
|
1570
1570
|
id: `w-checkbox--${e._.uid}`,
|
|
1571
1571
|
type: "checkbox",
|
|
1572
1572
|
name: e.inputName,
|
|
1573
|
-
checked:
|
|
1573
|
+
checked: n.isChecked || null,
|
|
1574
1574
|
disabled: e.isDisabled || null,
|
|
1575
1575
|
required: e.required || null,
|
|
1576
1576
|
tabindex: e.tabindex || null,
|
|
1577
|
-
onFocus: t[0] || (t[0] = (
|
|
1578
|
-
onBlur: t[1] || (t[1] = (
|
|
1579
|
-
onChange: t[2] || (t[2] = (
|
|
1580
|
-
onKeypress: t[3] || (t[3] = M((...
|
|
1581
|
-
"aria-checked":
|
|
1577
|
+
onFocus: t[0] || (t[0] = (a) => e.$emit("focus", a)),
|
|
1578
|
+
onBlur: t[1] || (t[1] = (a) => e.$emit("blur", a)),
|
|
1579
|
+
onChange: t[2] || (t[2] = (a) => i.onInput()),
|
|
1580
|
+
onKeypress: t[3] || (t[3] = M((...a) => i.onInput && i.onInput(...a), ["enter"])),
|
|
1581
|
+
"aria-checked": n.isChecked || "false",
|
|
1582
1582
|
role: "checkbox"
|
|
1583
1583
|
}, null, 40, Ct),
|
|
1584
1584
|
i.hasLabel && l.labelOnLeft ? (s(), u(_, { key: 0 }, [
|
|
@@ -1588,7 +1588,7 @@ function Lt(e, t, l, a, o, i) {
|
|
|
1588
1588
|
for: `w-checkbox--${e._.uid}`
|
|
1589
1589
|
}, [
|
|
1590
1590
|
p(e.$slots, "default", {}, () => [
|
|
1591
|
-
|
|
1591
|
+
B(k(l.label), 1)
|
|
1592
1592
|
])
|
|
1593
1593
|
], 10, Bt)) : l.label ? (s(), u("label", {
|
|
1594
1594
|
key: 1,
|
|
@@ -1599,7 +1599,7 @@ function Lt(e, t, l, a, o, i) {
|
|
|
1599
1599
|
], 64)) : c("", !0),
|
|
1600
1600
|
w("div", {
|
|
1601
1601
|
class: f(["w-checkbox__input", this.color]),
|
|
1602
|
-
onClick: t[4] || (t[4] = (
|
|
1602
|
+
onClick: t[4] || (t[4] = (a) => {
|
|
1603
1603
|
e.$refs.input.focus(), e.$refs.input.click();
|
|
1604
1604
|
})
|
|
1605
1605
|
}, Vt, 2),
|
|
@@ -1610,7 +1610,7 @@ function Lt(e, t, l, a, o, i) {
|
|
|
1610
1610
|
for: `w-checkbox--${e._.uid}`
|
|
1611
1611
|
}, [
|
|
1612
1612
|
p(e.$slots, "default", {}, () => [
|
|
1613
|
-
|
|
1613
|
+
B(k(l.label), 1)
|
|
1614
1614
|
])
|
|
1615
1615
|
], 10, It)) : l.label ? (s(), u("label", {
|
|
1616
1616
|
key: 1,
|
|
@@ -1683,9 +1683,9 @@ const Tt = {
|
|
|
1683
1683
|
}
|
|
1684
1684
|
}
|
|
1685
1685
|
}, xt = /* @__PURE__ */ v(Tt, [["render", Lt]]), Pt = ["innerHTML"];
|
|
1686
|
-
function Ot(e, t, l,
|
|
1687
|
-
const
|
|
1688
|
-
return s(),
|
|
1686
|
+
function Ot(e, t, l, o, n, i) {
|
|
1687
|
+
const a = $("w-checkbox");
|
|
1688
|
+
return s(), b(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 }, {
|
|
1689
1689
|
valid: e.valid,
|
|
1690
1690
|
"onUpdate:valid": t[1] || (t[1] = (r) => e.valid = r),
|
|
1691
1691
|
onReset: i.reset,
|
|
@@ -1693,8 +1693,8 @@ function Ot(e, t, l, a, o, i) {
|
|
|
1693
1693
|
wrap: l.inline,
|
|
1694
1694
|
class: i.classes
|
|
1695
1695
|
}), {
|
|
1696
|
-
default:
|
|
1697
|
-
(s(!0), u(_, null,
|
|
1696
|
+
default: g(() => [
|
|
1697
|
+
(s(!0), u(_, null, x(i.checkboxItems, (r, d) => (s(), b(a, C({
|
|
1698
1698
|
key: d,
|
|
1699
1699
|
"model-value": r._isChecked,
|
|
1700
1700
|
"onUpdate:modelValue": (h) => i.toggleCheck(r, h),
|
|
@@ -1705,7 +1705,7 @@ function Ot(e, t, l, a, o, i) {
|
|
|
1705
1705
|
readonly: e.isReadonly || null,
|
|
1706
1706
|
class: { mt1: !l.inline && d }
|
|
1707
1707
|
}), {
|
|
1708
|
-
default:
|
|
1708
|
+
default: g(() => [
|
|
1709
1709
|
e.$slots[`item.${d + 1}`] || e.$slots.item ? p(e.$slots, e.$slots[`item.${d + 1}`] ? `item.${d + 1}` : "item", {
|
|
1710
1710
|
key: 0,
|
|
1711
1711
|
item: i.getOriginalItem(r),
|
|
@@ -1769,7 +1769,7 @@ const zt = {
|
|
|
1769
1769
|
},
|
|
1770
1770
|
toggleCheck(e, t) {
|
|
1771
1771
|
e._isChecked = t;
|
|
1772
|
-
const l = this.checkboxItems.filter((
|
|
1772
|
+
const l = this.checkboxItems.filter((o) => o._isChecked).map((o) => o.value);
|
|
1773
1773
|
this.$emit("update:modelValue", l), this.$emit("input", l);
|
|
1774
1774
|
},
|
|
1775
1775
|
getOriginalItem(e) {
|
|
@@ -1777,35 +1777,35 @@ const zt = {
|
|
|
1777
1777
|
}
|
|
1778
1778
|
}
|
|
1779
1779
|
}, Et = /* @__PURE__ */ v(zt, [["render", Ot]]);
|
|
1780
|
-
function Mt(e, t, l,
|
|
1781
|
-
const
|
|
1782
|
-
return s(),
|
|
1780
|
+
function Mt(e, t, l, o, n, i) {
|
|
1781
|
+
const a = $("w-button"), r = $("w-flex"), d = $("w-menu"), h = fe("focus");
|
|
1782
|
+
return s(), b(d, C({
|
|
1783
1783
|
modelValue: e.showPopup,
|
|
1784
1784
|
"onUpdate:modelValue": t[2] || (t[2] = (y) => e.showPopup = y)
|
|
1785
1785
|
}, i.wMenuProps), {
|
|
1786
|
-
activator:
|
|
1787
|
-
I(
|
|
1788
|
-
default:
|
|
1786
|
+
activator: g(({ on: y }) => [
|
|
1787
|
+
I(a, C({ class: "w-confirm" }, { ...e.$attrs, ...i.buttonProps, ...l.disablePrompt ? {} : y }), {
|
|
1788
|
+
default: g(() => [
|
|
1789
1789
|
p(e.$slots, "default")
|
|
1790
1790
|
]),
|
|
1791
1791
|
_: 2
|
|
1792
1792
|
}, 1040)
|
|
1793
1793
|
]),
|
|
1794
|
-
default:
|
|
1794
|
+
default: g(() => [
|
|
1795
1795
|
I(r, {
|
|
1796
1796
|
column: !l.inline,
|
|
1797
1797
|
"align-center": ""
|
|
1798
1798
|
}, {
|
|
1799
|
-
default:
|
|
1799
|
+
default: g(() => [
|
|
1800
1800
|
w("div", null, [
|
|
1801
1801
|
p(e.$slots, "question", {}, () => [
|
|
1802
|
-
|
|
1802
|
+
B(k(l.question), 1)
|
|
1803
1803
|
])
|
|
1804
1804
|
]),
|
|
1805
1805
|
w("div", {
|
|
1806
1806
|
class: f(["w-flex justify-end", l.inline ? "ml2" : "mt2"])
|
|
1807
1807
|
}, [
|
|
1808
|
-
l.cancel !== !1 ? (s(),
|
|
1808
|
+
l.cancel !== !1 ? (s(), b(a, C({
|
|
1809
1809
|
key: 0,
|
|
1810
1810
|
class: "mr2"
|
|
1811
1811
|
}, i.cancelButtonProps, {
|
|
@@ -1813,21 +1813,21 @@ function Mt(e, t, l, a, o, i) {
|
|
|
1813
1813
|
onKeyup: t[0] || (t[0] = M((y) => !l.persistent && i.onCancel(), ["escape"])),
|
|
1814
1814
|
onClick: i.onCancel
|
|
1815
1815
|
}), {
|
|
1816
|
-
default:
|
|
1816
|
+
default: g(() => [
|
|
1817
1817
|
p(e.$slots, "cancel", {}, () => [
|
|
1818
|
-
|
|
1818
|
+
B(k(i.cancelButton.label), 1)
|
|
1819
1819
|
])
|
|
1820
1820
|
]),
|
|
1821
1821
|
_: 3
|
|
1822
1822
|
}, 16, ["bg-color", "onClick"])) : c("", !0),
|
|
1823
|
-
D((s(),
|
|
1823
|
+
D((s(), b(a, C(i.confirmButtonProps, {
|
|
1824
1824
|
"bg-color": (i.confirmButton || {}).bgColor || "success",
|
|
1825
1825
|
onKeyup: t[1] || (t[1] = M((y) => !l.persistent && i.onCancel(), ["escape"])),
|
|
1826
1826
|
onClick: i.onConfirm
|
|
1827
1827
|
}), {
|
|
1828
|
-
default:
|
|
1828
|
+
default: g(() => [
|
|
1829
1829
|
p(e.$slots, "confirm", {}, () => [
|
|
1830
|
-
|
|
1830
|
+
B(k(i.confirmButton.label), 1)
|
|
1831
1831
|
])
|
|
1832
1832
|
]),
|
|
1833
1833
|
_: 3
|
|
@@ -1842,7 +1842,7 @@ function Mt(e, t, l, a, o, i) {
|
|
|
1842
1842
|
_: 3
|
|
1843
1843
|
}, 16, ["modelValue"]);
|
|
1844
1844
|
}
|
|
1845
|
-
const
|
|
1845
|
+
const At = {
|
|
1846
1846
|
name: "w-confirm",
|
|
1847
1847
|
inheritAttrs: !1,
|
|
1848
1848
|
props: {
|
|
@@ -1935,8 +1935,8 @@ const Nt = {
|
|
|
1935
1935
|
this.$emit("confirm"), this.showPopup = !1;
|
|
1936
1936
|
}
|
|
1937
1937
|
}
|
|
1938
|
-
},
|
|
1939
|
-
function
|
|
1938
|
+
}, Nt = /* @__PURE__ */ v(At, [["render", Mt]]);
|
|
1939
|
+
function Wt(e, t, l, o, n, i) {
|
|
1940
1940
|
return s(), u("div", {
|
|
1941
1941
|
class: f(["w-date-picker", i.classes]),
|
|
1942
1942
|
style: L(i.styles)
|
|
@@ -1962,12 +1962,12 @@ const Kt = {
|
|
|
1962
1962
|
return !1;
|
|
1963
1963
|
}
|
|
1964
1964
|
}
|
|
1965
|
-
}, Dt = /* @__PURE__ */ v(Kt, [["render",
|
|
1966
|
-
function Ft(e, t, l,
|
|
1967
|
-
const
|
|
1968
|
-
return s(),
|
|
1965
|
+
}, Dt = /* @__PURE__ */ v(Kt, [["render", Wt]]);
|
|
1966
|
+
function Ft(e, t, l, o, n, i) {
|
|
1967
|
+
const a = $("w-card"), r = $("w-overlay");
|
|
1968
|
+
return s(), b(r, {
|
|
1969
1969
|
class: f(["w-dialog", i.classes]),
|
|
1970
|
-
"model-value":
|
|
1970
|
+
"model-value": n.showWrapper,
|
|
1971
1971
|
persistent: l.persistent,
|
|
1972
1972
|
"persistent-no-animation": l.persistentNoAnimation,
|
|
1973
1973
|
onClick: i.onOutsideClick,
|
|
@@ -1975,14 +1975,14 @@ function Ft(e, t, l, a, o, i) {
|
|
|
1975
1975
|
"bg-color": l.overlayColor,
|
|
1976
1976
|
opacity: l.overlayOpacity
|
|
1977
1977
|
}, {
|
|
1978
|
-
default:
|
|
1979
|
-
I(
|
|
1978
|
+
default: g(() => [
|
|
1979
|
+
I(P, {
|
|
1980
1980
|
name: l.transition,
|
|
1981
1981
|
appear: "",
|
|
1982
1982
|
onAfterLeave: i.onBeforeClose
|
|
1983
1983
|
}, {
|
|
1984
|
-
default:
|
|
1985
|
-
D(I(
|
|
1984
|
+
default: g(() => [
|
|
1985
|
+
D(I(a, {
|
|
1986
1986
|
class: f(["w-dialog__content", l.dialogClass]),
|
|
1987
1987
|
ref: "dialog",
|
|
1988
1988
|
"no-border": "",
|
|
@@ -1993,27 +1993,27 @@ function Ft(e, t, l, a, o, i) {
|
|
|
1993
1993
|
title: l.title || void 0,
|
|
1994
1994
|
style: L(i.contentStyles)
|
|
1995
1995
|
}, Z({
|
|
1996
|
-
default:
|
|
1996
|
+
default: g(() => [
|
|
1997
1997
|
p(e.$slots, "default")
|
|
1998
1998
|
]),
|
|
1999
1999
|
_: 2
|
|
2000
2000
|
}, [
|
|
2001
2001
|
e.$slots.title ? {
|
|
2002
2002
|
name: "title",
|
|
2003
|
-
fn:
|
|
2003
|
+
fn: g(() => [
|
|
2004
2004
|
p(e.$slots, "title")
|
|
2005
2005
|
]),
|
|
2006
2006
|
key: "0"
|
|
2007
2007
|
} : void 0,
|
|
2008
2008
|
e.$slots.actions ? {
|
|
2009
2009
|
name: "actions",
|
|
2010
|
-
fn:
|
|
2010
|
+
fn: g(() => [
|
|
2011
2011
|
p(e.$slots, "actions")
|
|
2012
2012
|
]),
|
|
2013
2013
|
key: "1"
|
|
2014
2014
|
} : void 0
|
|
2015
2015
|
]), 1032, ["color", "bg-color", "class", "title-class", "content-class", "title", "style"]), [
|
|
2016
|
-
[
|
|
2016
|
+
[ge, n.showContent]
|
|
2017
2017
|
])
|
|
2018
2018
|
]),
|
|
2019
2019
|
_: 3
|
|
@@ -2090,7 +2090,7 @@ const Ht = {
|
|
|
2090
2090
|
}
|
|
2091
2091
|
}
|
|
2092
2092
|
}, jt = /* @__PURE__ */ v(Ht, [["render", Ft]]), Ut = ["role", "aria-orientation"];
|
|
2093
|
-
function qt(e, t, l,
|
|
2093
|
+
function qt(e, t, l, o, n, i) {
|
|
2094
2094
|
return s(), u("div", {
|
|
2095
2095
|
class: f(["w-divider", i.classes]),
|
|
2096
2096
|
role: e.$slots.default ? null : "presentation",
|
|
@@ -2120,9 +2120,9 @@ const Gt = {
|
|
|
2120
2120
|
}
|
|
2121
2121
|
}
|
|
2122
2122
|
}, Xt = /* @__PURE__ */ v(Gt, [["render", qt]]), Yt = { class: "w-drawer-wrap__pushable" };
|
|
2123
|
-
function Jt(e, t, l,
|
|
2124
|
-
const
|
|
2125
|
-
return
|
|
2123
|
+
function Jt(e, t, l, o, n, i) {
|
|
2124
|
+
const a = $("w-overlay");
|
|
2125
|
+
return n.showWrapper || l.pushContent ? (s(), u("div", {
|
|
2126
2126
|
key: 0,
|
|
2127
2127
|
class: f(["w-drawer-wrap", i.wrapperClasses])
|
|
2128
2128
|
}, [
|
|
@@ -2132,10 +2132,10 @@ function Jt(e, t, l, a, o, i) {
|
|
|
2132
2132
|
style: L(i.trackStyles)
|
|
2133
2133
|
}, [
|
|
2134
2134
|
w("div", Yt, [
|
|
2135
|
-
l.noOverlay ? c("", !0) : (s(),
|
|
2135
|
+
l.noOverlay ? c("", !0) : (s(), b(a, {
|
|
2136
2136
|
key: 0,
|
|
2137
|
-
modelValue:
|
|
2138
|
-
"onUpdate:modelValue": t[0] || (t[0] = (r) =>
|
|
2137
|
+
modelValue: n.showDrawer,
|
|
2138
|
+
"onUpdate:modelValue": t[0] || (t[0] = (r) => n.showDrawer = r),
|
|
2139
2139
|
onClick: i.onOutsideClick,
|
|
2140
2140
|
persistent: l.persistent,
|
|
2141
2141
|
"persistent-no-animation": "",
|
|
@@ -2144,19 +2144,19 @@ function Jt(e, t, l, a, o, i) {
|
|
|
2144
2144
|
}, null, 8, ["modelValue", "onClick", "persistent", "bg-color", "opacity"])),
|
|
2145
2145
|
p(e.$slots, "pushable")
|
|
2146
2146
|
]),
|
|
2147
|
-
I(
|
|
2147
|
+
I(P, {
|
|
2148
2148
|
name: "fade",
|
|
2149
2149
|
onBeforeLeave: i.onBeforeClose,
|
|
2150
2150
|
onAfterLeave: i.onClose
|
|
2151
2151
|
}, {
|
|
2152
|
-
default:
|
|
2153
|
-
|
|
2152
|
+
default: g(() => [
|
|
2153
|
+
n.showDrawer ? (s(), b(V(l.tag || "aside"), {
|
|
2154
2154
|
key: 0,
|
|
2155
2155
|
class: f(["w-drawer", i.drawerClasses]),
|
|
2156
2156
|
ref: "drawer",
|
|
2157
2157
|
style: L(i.styles)
|
|
2158
2158
|
}, {
|
|
2159
|
-
default:
|
|
2159
|
+
default: g(() => [
|
|
2160
2160
|
p(e.$slots, "default")
|
|
2161
2161
|
]),
|
|
2162
2162
|
_: 3
|
|
@@ -2165,30 +2165,30 @@ function Jt(e, t, l, a, o, i) {
|
|
|
2165
2165
|
_: 3
|
|
2166
2166
|
}, 8, ["onBeforeLeave", "onAfterLeave"])
|
|
2167
2167
|
], 4)) : (s(), u(_, { key: 1 }, [
|
|
2168
|
-
l.noOverlay ? c("", !0) : (s(),
|
|
2168
|
+
l.noOverlay ? c("", !0) : (s(), b(a, {
|
|
2169
2169
|
key: 0,
|
|
2170
|
-
modelValue:
|
|
2171
|
-
"onUpdate:modelValue": t[1] || (t[1] = (r) =>
|
|
2170
|
+
modelValue: n.showDrawer,
|
|
2171
|
+
"onUpdate:modelValue": t[1] || (t[1] = (r) => n.showDrawer = r),
|
|
2172
2172
|
onClick: i.onOutsideClick,
|
|
2173
2173
|
persistent: l.persistent,
|
|
2174
2174
|
"persistent-no-animation": "",
|
|
2175
2175
|
"bg-color": l.overlayColor,
|
|
2176
2176
|
opacity: l.overlayOpacity
|
|
2177
2177
|
}, null, 8, ["modelValue", "onClick", "persistent", "bg-color", "opacity"])),
|
|
2178
|
-
I(
|
|
2178
|
+
I(P, {
|
|
2179
2179
|
name: i.transitionName,
|
|
2180
2180
|
appear: "",
|
|
2181
2181
|
onBeforeLeave: i.onBeforeClose,
|
|
2182
2182
|
onAfterLeave: i.onClose
|
|
2183
2183
|
}, {
|
|
2184
|
-
default:
|
|
2185
|
-
|
|
2184
|
+
default: g(() => [
|
|
2185
|
+
n.showDrawer ? (s(), b(V(l.tag || "aside"), {
|
|
2186
2186
|
key: 0,
|
|
2187
2187
|
class: f(["w-drawer", i.drawerClasses]),
|
|
2188
2188
|
ref: "drawer",
|
|
2189
2189
|
style: L(i.styles)
|
|
2190
2190
|
}, {
|
|
2191
|
-
default:
|
|
2191
|
+
default: g(() => [
|
|
2192
2192
|
p(e.$slots, "default")
|
|
2193
2193
|
]),
|
|
2194
2194
|
_: 3
|
|
@@ -2305,11 +2305,11 @@ const Qt = { left: "right", right: "left", top: "down", bottom: "up" }, Zt = {
|
|
|
2305
2305
|
}
|
|
2306
2306
|
}
|
|
2307
2307
|
}, el = /* @__PURE__ */ v(Zt, [["render", Jt]]);
|
|
2308
|
-
function tl(e, t, l,
|
|
2309
|
-
return s(),
|
|
2308
|
+
function tl(e, t, l, o, n, i) {
|
|
2309
|
+
return s(), b(V(l.tag), {
|
|
2310
2310
|
class: f(["w-flex", i.classes])
|
|
2311
2311
|
}, {
|
|
2312
|
-
default:
|
|
2312
|
+
default: g(() => [
|
|
2313
2313
|
p(e.$slots, "default")
|
|
2314
2314
|
]),
|
|
2315
2315
|
_: 3
|
|
@@ -2363,11 +2363,11 @@ const ll = {
|
|
|
2363
2363
|
}
|
|
2364
2364
|
}
|
|
2365
2365
|
}, il = /* @__PURE__ */ v(ll, [["render", tl]]);
|
|
2366
|
-
function sl(e, t, l,
|
|
2366
|
+
function sl(e, t, l, o, n, i) {
|
|
2367
2367
|
return s(), u("form", {
|
|
2368
2368
|
class: f(["w-form", i.classes]),
|
|
2369
|
-
onSubmit: t[0] || (t[0] = (...
|
|
2370
|
-
onReset: t[1] || (t[1] = (...
|
|
2369
|
+
onSubmit: t[0] || (t[0] = (...a) => i.onSubmit && i.onSubmit(...a)),
|
|
2370
|
+
onReset: t[1] || (t[1] = (...a) => i.reset && i.reset(...a)),
|
|
2371
2371
|
novalidate: ""
|
|
2372
2372
|
}, [
|
|
2373
2373
|
p(e.$slots, "default")
|
|
@@ -2436,8 +2436,8 @@ const al = async (e, t) => {
|
|
|
2436
2436
|
let t = 0;
|
|
2437
2437
|
return await (async () => {
|
|
2438
2438
|
var l;
|
|
2439
|
-
for (const
|
|
2440
|
-
!((l =
|
|
2439
|
+
for (const o of this.formElements)
|
|
2440
|
+
!((l = o.validators) != null && l.length) || o.disabled || o.readonly || (await this.checkElementValidators(o), t += ~~!o.Validation.isValid, o.$emit("update:valid", o.Validation.isValid));
|
|
2441
2441
|
})(), this.updateErrorsCount(t), this.status = !t, this.$emit("validate", { e, errorsCount: t }), this.$emit(this.status ? "success" : "error", { e, errorsCount: t }), this.status;
|
|
2442
2442
|
},
|
|
2443
2443
|
async validateElement(e) {
|
|
@@ -2445,16 +2445,16 @@ const al = async (e, t) => {
|
|
|
2445
2445
|
},
|
|
2446
2446
|
async checkElementValidators(e) {
|
|
2447
2447
|
let t = !1, l = "";
|
|
2448
|
-
await al(e.validators, async (
|
|
2449
|
-
const
|
|
2450
|
-
return t = typeof
|
|
2448
|
+
await al(e.validators, async (o) => {
|
|
2449
|
+
const n = await (typeof o == "function" && o(e.inputValue));
|
|
2450
|
+
return t = typeof n != "string", l = t ? "" : n, !t;
|
|
2451
2451
|
}), e.hasJustReset = !1, e.Validation.isValid = t, e.Validation.message = l;
|
|
2452
2452
|
},
|
|
2453
2453
|
reset(e) {
|
|
2454
2454
|
this.status = null, this.formElements.forEach((t) => t.reset()), this.updateErrorsCount(0, !0), this.$emit("reset", e);
|
|
2455
2455
|
},
|
|
2456
2456
|
updateErrorsCount(e = null, t = !1) {
|
|
2457
|
-
this.errorsCount = e !== null ? e : this.formElements.reduce((l,
|
|
2457
|
+
this.errorsCount = e !== null ? e : this.formElements.reduce((l, o) => l + ~~(o.Validation.isValid === !1), 0), this.status = t ? null : !this.errorsCount, this.$emit("update:modelValue", this.status), this.$emit("input", this.status), this.$emit("update:errorsCount", this.errorsCount);
|
|
2458
2458
|
},
|
|
2459
2459
|
onSubmit(e) {
|
|
2460
2460
|
this.validate(e), this.$emit("submit", e), (!this.allowSubmit || !this.status) && e.preventDefault();
|
|
@@ -2469,8 +2469,8 @@ const al = async (e, t) => {
|
|
|
2469
2469
|
}
|
|
2470
2470
|
}
|
|
2471
2471
|
}, nl = /* @__PURE__ */ v(ol, [["render", sl]]);
|
|
2472
|
-
function rl(e, t, l,
|
|
2473
|
-
const
|
|
2472
|
+
function rl(e, t, l, o, n, i) {
|
|
2473
|
+
const a = $("w-transition-expand");
|
|
2474
2474
|
return s(), u("div", {
|
|
2475
2475
|
class: f(i.classes)
|
|
2476
2476
|
}, [
|
|
@@ -2479,8 +2479,8 @@ function rl(e, t, l, a, o, i) {
|
|
|
2479
2479
|
}, [
|
|
2480
2480
|
p(e.$slots, "default")
|
|
2481
2481
|
], 2),
|
|
2482
|
-
I(
|
|
2483
|
-
default:
|
|
2482
|
+
I(a, { y: "" }, {
|
|
2483
|
+
default: g(() => [
|
|
2484
2484
|
e.Validation.message ? (s(), u("div", {
|
|
2485
2485
|
key: 0,
|
|
2486
2486
|
class: f(["w-form-el__error", i.formProps.validationColor])
|
|
@@ -2488,7 +2488,7 @@ function rl(e, t, l, a, o, i) {
|
|
|
2488
2488
|
p(e.$slots, "error-message", {
|
|
2489
2489
|
message: e.Validation.message
|
|
2490
2490
|
}, () => [
|
|
2491
|
-
|
|
2491
|
+
B(k(e.Validation.message), 1)
|
|
2492
2492
|
])
|
|
2493
2493
|
], 2)) : c("", !0)
|
|
2494
2494
|
]),
|
|
@@ -2563,11 +2563,11 @@ const dl = {
|
|
|
2563
2563
|
this.formUnregister && this.formUnregister(this);
|
|
2564
2564
|
}
|
|
2565
2565
|
}, ul = /* @__PURE__ */ v(dl, [["render", rl]]);
|
|
2566
|
-
function hl(e, t, l,
|
|
2567
|
-
return s(),
|
|
2566
|
+
function hl(e, t, l, o, n, i) {
|
|
2567
|
+
return s(), b(V(l.tag), {
|
|
2568
2568
|
class: f(["w-grid", i.classes])
|
|
2569
2569
|
}, {
|
|
2570
|
-
default:
|
|
2570
|
+
default: g(() => [
|
|
2571
2571
|
p(e.$slots, "default")
|
|
2572
2572
|
]),
|
|
2573
2573
|
_: 3
|
|
@@ -2609,31 +2609,31 @@ const cl = {
|
|
|
2609
2609
|
},
|
|
2610
2610
|
classes() {
|
|
2611
2611
|
let e = null;
|
|
2612
|
-
typeof this.columns == "object" && (e = Object.entries(this.breakpointsColumns).reduce((l, [
|
|
2612
|
+
typeof this.columns == "object" && (e = Object.entries(this.breakpointsColumns).reduce((l, [o, n]) => (l[`${o}-columns${n}`] = !0, l), {}));
|
|
2613
2613
|
let t = null;
|
|
2614
|
-
return typeof this.gap == "object" && (t = Object.entries(this.breakpointsGap).reduce((l, [
|
|
2614
|
+
return typeof this.gap == "object" && (t = Object.entries(this.breakpointsGap).reduce((l, [o, n]) => (l[`${o}-gap${n}`] = !0, l), {})), {
|
|
2615
2615
|
...e || { [`columns${this.columns}`]: this.columns },
|
|
2616
2616
|
...t || { [`gap${this.gap}`]: this.gap }
|
|
2617
2617
|
};
|
|
2618
2618
|
}
|
|
2619
2619
|
}
|
|
2620
2620
|
}, pl = /* @__PURE__ */ v(cl, [["render", hl]]);
|
|
2621
|
-
function fl(e, t, l,
|
|
2622
|
-
return s(),
|
|
2621
|
+
function fl(e, t, l, o, n, i) {
|
|
2622
|
+
return s(), b(V(l.tag || "i"), C({ class: "w-icon" }, A(e.$attrs), {
|
|
2623
2623
|
class: i.classes,
|
|
2624
2624
|
role: "icon",
|
|
2625
2625
|
"aria-hidden": "true",
|
|
2626
2626
|
style: i.readIcon() && i.styles
|
|
2627
2627
|
}), {
|
|
2628
|
-
default:
|
|
2628
|
+
default: g(() => [
|
|
2629
2629
|
i.hasLigature ? (s(), u(_, { key: 0 }, [
|
|
2630
|
-
|
|
2630
|
+
B(k(e.icon), 1)
|
|
2631
2631
|
], 64)) : c("", !0)
|
|
2632
2632
|
]),
|
|
2633
2633
|
_: 1
|
|
2634
2634
|
}, 16, ["class", "style"]);
|
|
2635
2635
|
}
|
|
2636
|
-
const
|
|
2636
|
+
const gl = {
|
|
2637
2637
|
name: "w-icon",
|
|
2638
2638
|
props: {
|
|
2639
2639
|
tag: { type: String, default: "i" },
|
|
@@ -2702,43 +2702,43 @@ const ml = {
|
|
|
2702
2702
|
return this.fontName = t, this.icon = l, !0;
|
|
2703
2703
|
}
|
|
2704
2704
|
}
|
|
2705
|
-
},
|
|
2705
|
+
}, ml = /* @__PURE__ */ v(gl, [["render", fl]]), J = (e) => console.warn(`Wave UI: ${e}`), le = (e) => console.error(`Wave UI: ${e}`), bl = {
|
|
2706
2706
|
key: 0,
|
|
2707
2707
|
class: "w-image__loader"
|
|
2708
2708
|
};
|
|
2709
|
-
function yl(e, t, l,
|
|
2710
|
-
const
|
|
2711
|
-
return s(),
|
|
2709
|
+
function yl(e, t, l, o, n, i) {
|
|
2710
|
+
const a = $("w-progress");
|
|
2711
|
+
return s(), b(V(i.wrapperTag), {
|
|
2712
2712
|
class: f(["w-image-wrap", i.wrapperClasses]),
|
|
2713
2713
|
style: L(i.wrapperStyles)
|
|
2714
2714
|
}, {
|
|
2715
|
-
default:
|
|
2716
|
-
I(
|
|
2715
|
+
default: g(() => [
|
|
2716
|
+
I(P, {
|
|
2717
2717
|
name: l.transition,
|
|
2718
2718
|
appear: ""
|
|
2719
2719
|
}, {
|
|
2720
|
-
default:
|
|
2721
|
-
|
|
2720
|
+
default: g(() => [
|
|
2721
|
+
n.loaded ? (s(), b(V(l.tag), {
|
|
2722
2722
|
key: 0,
|
|
2723
2723
|
class: f(["w-image", i.imageClasses]),
|
|
2724
2724
|
style: L(i.imageStyles),
|
|
2725
|
-
src: l.tag === "img" ?
|
|
2725
|
+
src: l.tag === "img" ? n.imgSrc : null
|
|
2726
2726
|
}, null, 8, ["class", "style", "src"])) : c("", !0)
|
|
2727
2727
|
]),
|
|
2728
2728
|
_: 1
|
|
2729
2729
|
}, 8, ["name"]),
|
|
2730
|
-
!l.noSpinner &&
|
|
2731
|
-
e.$slots.loading ? p(e.$slots, "loading", { key: 0 }) : (s(),
|
|
2730
|
+
!l.noSpinner && n.loading ? (s(), u("div", bl, [
|
|
2731
|
+
e.$slots.loading ? p(e.$slots, "loading", { key: 0 }) : (s(), b(a, C({
|
|
2732
2732
|
key: 1,
|
|
2733
2733
|
circle: "",
|
|
2734
2734
|
indeterminate: ""
|
|
2735
2735
|
}, l.spinnerColor ? { color: l.spinnerColor } : {}), null, 16))
|
|
2736
2736
|
])) : c("", !0),
|
|
2737
|
-
e.$slots.default ? (s(),
|
|
2737
|
+
e.$slots.default ? (s(), b(V(i.wrapperTag), {
|
|
2738
2738
|
key: 1,
|
|
2739
2739
|
class: f(["w-image__content", l.contentClass])
|
|
2740
2740
|
}, {
|
|
2741
|
-
default:
|
|
2741
|
+
default: g(() => [
|
|
2742
2742
|
p(e.$slots, "default")
|
|
2743
2743
|
]),
|
|
2744
2744
|
_: 3
|
|
@@ -2815,8 +2815,8 @@ const wl = {
|
|
|
2815
2815
|
if (!this.loading)
|
|
2816
2816
|
return this.loading = !0, this.loaded = !1, this.$emit("loading", e ? this.fallback : this.src), new Promise((t) => {
|
|
2817
2817
|
const l = new Image();
|
|
2818
|
-
l.onload = (
|
|
2819
|
-
this.$emit("error",
|
|
2818
|
+
l.onload = (o) => (!this.width && !this.height && !this.imgGivenRatio && (this.imgWidth = o.target.width, this.imgHeight = o.target.height), this.imgComputedRatio = o.target.height / o.target.width, this.loading = !1, this.loaded = !0, this.imgSrc = e ? this.fallback : this.src, this.$emit("loaded", this.imgSrc), t(l)), l.onerror = (o) => {
|
|
2819
|
+
this.$emit("error", o), this.fallback && !e ? (this.loading = !1, this.loadImage(!0)) : (this.loading = !1, this.loaded = !1);
|
|
2820
2820
|
}, l.src = e ? this.fallback : this.src;
|
|
2821
2821
|
});
|
|
2822
2822
|
}
|
|
@@ -2847,25 +2847,25 @@ const wl = {
|
|
|
2847
2847
|
class: "w-input__no-file",
|
|
2848
2848
|
key: "no-file"
|
|
2849
2849
|
}, $l = ["for"], Vl = ["for"], Il = ["src"], Rl = ["for"];
|
|
2850
|
-
function Ll(e, t, l,
|
|
2851
|
-
const
|
|
2852
|
-
return s(),
|
|
2850
|
+
function Ll(e, t, l, o, n, i) {
|
|
2851
|
+
const a = $("w-icon"), r = $("w-progress");
|
|
2852
|
+
return s(), b(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 }, {
|
|
2853
2853
|
valid: e.valid,
|
|
2854
2854
|
"onUpdate:valid": t[10] || (t[10] = (d) => e.valid = d),
|
|
2855
2855
|
onReset: t[11] || (t[11] = (d) => {
|
|
2856
|
-
e.$emit("update:modelValue",
|
|
2856
|
+
e.$emit("update:modelValue", n.inputValue = ""), e.$emit("input", "");
|
|
2857
2857
|
}),
|
|
2858
2858
|
wrap: i.hasLabel && l.labelPosition !== "inside",
|
|
2859
2859
|
class: i.classes
|
|
2860
2860
|
}), {
|
|
2861
|
-
default:
|
|
2861
|
+
default: g(() => [
|
|
2862
2862
|
l.type === "hidden" ? D((s(), u("input", {
|
|
2863
2863
|
key: 0,
|
|
2864
2864
|
type: "hidden",
|
|
2865
2865
|
name: e.name || null,
|
|
2866
|
-
"onUpdate:modelValue": t[0] || (t[0] = (d) =>
|
|
2866
|
+
"onUpdate:modelValue": t[0] || (t[0] = (d) => n.inputValue = d)
|
|
2867
2867
|
}, null, 8, kl)), [
|
|
2868
|
-
[
|
|
2868
|
+
[me, n.inputValue]
|
|
2869
2869
|
]) : (s(), u(_, { key: 1 }, [
|
|
2870
2870
|
l.labelPosition === "left" ? (s(), u(_, { key: 0 }, [
|
|
2871
2871
|
e.$slots.default || l.label ? (s(), u("label", {
|
|
@@ -2874,31 +2874,31 @@ function Ll(e, t, l, a, o, i) {
|
|
|
2874
2874
|
for: `w-input--${e._.uid}`
|
|
2875
2875
|
}, [
|
|
2876
2876
|
p(e.$slots, "default", {}, () => [
|
|
2877
|
-
|
|
2877
|
+
B(k(l.label), 1)
|
|
2878
2878
|
])
|
|
2879
2879
|
], 10, _l)) : c("", !0)
|
|
2880
2880
|
], 64)) : c("", !0),
|
|
2881
2881
|
w("div", {
|
|
2882
2882
|
class: f(["w-input__input-wrap", i.inputWrapClasses])
|
|
2883
2883
|
}, [
|
|
2884
|
-
l.innerIconLeft ? (s(),
|
|
2884
|
+
l.innerIconLeft ? (s(), b(a, {
|
|
2885
2885
|
key: 0,
|
|
2886
2886
|
class: "w-input__icon w-input__icon--inner-left",
|
|
2887
2887
|
tag: "label",
|
|
2888
2888
|
for: `w-input--${e._.uid}`,
|
|
2889
2889
|
onClick: t[1] || (t[1] = (d) => e.$emit("click:inner-icon-left", d))
|
|
2890
2890
|
}, {
|
|
2891
|
-
default:
|
|
2892
|
-
|
|
2891
|
+
default: g(() => [
|
|
2892
|
+
B(k(l.innerIconLeft), 1)
|
|
2893
2893
|
]),
|
|
2894
2894
|
_: 1
|
|
2895
2895
|
}, 8, ["for"])) : c("", !0),
|
|
2896
|
-
l.type !== "file" ? D((s(), u("input",
|
|
2896
|
+
l.type !== "file" ? D((s(), u("input", C({
|
|
2897
2897
|
key: 1,
|
|
2898
2898
|
class: "w-input__input",
|
|
2899
2899
|
ref: "input",
|
|
2900
|
-
"onUpdate:modelValue": t[2] || (t[2] = (d) =>
|
|
2901
|
-
},
|
|
2900
|
+
"onUpdate:modelValue": t[2] || (t[2] = (d) => n.inputValue = d)
|
|
2901
|
+
}, A(i.listeners, !0), {
|
|
2902
2902
|
onInput: t[3] || (t[3] = (...d) => i.onInput && i.onInput(...d)),
|
|
2903
2903
|
onFocus: t[4] || (t[4] = (...d) => i.onFocus && i.onFocus(...d)),
|
|
2904
2904
|
onBlur: t[5] || (t[5] = (...d) => i.onBlur && i.onBlur(...d)),
|
|
@@ -2917,9 +2917,9 @@ function Ll(e, t, l, a, o, i) {
|
|
|
2917
2917
|
required: e.required || null,
|
|
2918
2918
|
tabindex: e.tabindex || null
|
|
2919
2919
|
}, i.attrs), null, 16, Cl)), [
|
|
2920
|
-
[Se,
|
|
2920
|
+
[Se, n.inputValue]
|
|
2921
2921
|
]) : (s(), u(_, { key: 2 }, [
|
|
2922
|
-
w("input",
|
|
2922
|
+
w("input", C({
|
|
2923
2923
|
ref: "input",
|
|
2924
2924
|
id: `w-input--${e._.uid}`,
|
|
2925
2925
|
type: "file",
|
|
@@ -2937,23 +2937,23 @@ function Ll(e, t, l, a, o, i) {
|
|
|
2937
2937
|
name: "fade",
|
|
2938
2938
|
for: `w-input--${e._.uid}`
|
|
2939
2939
|
}, {
|
|
2940
|
-
default:
|
|
2941
|
-
!
|
|
2940
|
+
default: g(() => [
|
|
2941
|
+
!n.inputFiles.length && n.isFocused ? (s(), u("span", Sl, [
|
|
2942
2942
|
p(e.$slots, "no-file", {}, () => [
|
|
2943
2943
|
e.$slots["no-file"] === void 0 ? (s(), u(_, { key: 0 }, [
|
|
2944
|
-
|
|
2944
|
+
B("No file")
|
|
2945
2945
|
], 64)) : c("", !0)
|
|
2946
2946
|
])
|
|
2947
2947
|
])) : c("", !0),
|
|
2948
|
-
(s(!0), u(_, null,
|
|
2948
|
+
(s(!0), u(_, null, x(n.inputFiles, (d, h) => (s(), u("span", {
|
|
2949
2949
|
key: d.lastModified
|
|
2950
2950
|
}, [
|
|
2951
|
-
|
|
2951
|
+
B(k(h ? ", " : ""), 1),
|
|
2952
2952
|
(s(), u("span", {
|
|
2953
2953
|
class: "filename",
|
|
2954
2954
|
key: `${h}b`
|
|
2955
2955
|
}, k(d.base), 1)),
|
|
2956
|
-
|
|
2956
|
+
B(k(d.extension ? `.${d.extension}` : ""), 1)
|
|
2957
2957
|
]))), 128))
|
|
2958
2958
|
]),
|
|
2959
2959
|
_: 3
|
|
@@ -2966,23 +2966,23 @@ function Ll(e, t, l, a, o, i) {
|
|
|
2966
2966
|
for: `w-input--${e._.uid}`
|
|
2967
2967
|
}, [
|
|
2968
2968
|
p(e.$slots, "default", {}, () => [
|
|
2969
|
-
|
|
2969
|
+
B(k(l.label), 1)
|
|
2970
2970
|
])
|
|
2971
2971
|
], 10, $l)) : c("", !0)
|
|
2972
2972
|
], 64)) : c("", !0),
|
|
2973
|
-
l.innerIconRight ? (s(),
|
|
2973
|
+
l.innerIconRight ? (s(), b(a, {
|
|
2974
2974
|
key: 4,
|
|
2975
2975
|
class: "w-input__icon w-input__icon--inner-right",
|
|
2976
2976
|
tag: "label",
|
|
2977
2977
|
for: `w-input--${e._.uid}`,
|
|
2978
2978
|
onClick: t[9] || (t[9] = (d) => e.$emit("click:inner-icon-right", d))
|
|
2979
2979
|
}, {
|
|
2980
|
-
default:
|
|
2981
|
-
|
|
2980
|
+
default: g(() => [
|
|
2981
|
+
B(k(l.innerIconRight), 1)
|
|
2982
2982
|
]),
|
|
2983
2983
|
_: 1
|
|
2984
2984
|
}, 8, ["for"])) : c("", !0),
|
|
2985
|
-
i.hasLoading || l.showProgress && (i.uploadInProgress || i.uploadComplete) ? (s(),
|
|
2985
|
+
i.hasLoading || l.showProgress && (i.uploadInProgress || i.uploadComplete) ? (s(), b(r, {
|
|
2986
2986
|
key: 5,
|
|
2987
2987
|
class: "fill-width",
|
|
2988
2988
|
size: "2",
|
|
@@ -2990,12 +2990,12 @@ function Ll(e, t, l, a, o, i) {
|
|
|
2990
2990
|
"model-value": l.showProgress ? (i.uploadInProgress || i.uploadComplete) && i.overallFilesProgress : i.loadingValue
|
|
2991
2991
|
}, null, 8, ["color", "model-value"])) : c("", !0)
|
|
2992
2992
|
], 2),
|
|
2993
|
-
l.type === "file" && l.preview &&
|
|
2993
|
+
l.type === "file" && l.preview && n.inputFiles.length ? (s(), u("label", {
|
|
2994
2994
|
key: 1,
|
|
2995
2995
|
class: "d-flex",
|
|
2996
2996
|
for: `w-input--${e._.uid}`
|
|
2997
2997
|
}, [
|
|
2998
|
-
(s(!0), u(_, null,
|
|
2998
|
+
(s(!0), u(_, null, x(n.inputFiles, (d, h) => (s(), u(_, null, [
|
|
2999
2999
|
d.progress < 100 ? (s(), u("i", {
|
|
3000
3000
|
class: "w-icon wi-spinner w-icon--spin size--sm w-input__file-preview primary",
|
|
3001
3001
|
key: `${h}a`
|
|
@@ -3017,7 +3017,7 @@ function Ll(e, t, l, a, o, i) {
|
|
|
3017
3017
|
for: `w-input--${e._.uid}`
|
|
3018
3018
|
}, [
|
|
3019
3019
|
p(e.$slots, "default", {}, () => [
|
|
3020
|
-
|
|
3020
|
+
B(k(l.label), 1)
|
|
3021
3021
|
])
|
|
3022
3022
|
], 10, Rl)) : c("", !0)
|
|
3023
3023
|
], 64)) : c("", !0)
|
|
@@ -3076,8 +3076,8 @@ const Tl = {
|
|
|
3076
3076
|
return t;
|
|
3077
3077
|
},
|
|
3078
3078
|
listeners() {
|
|
3079
|
-
const { input: e, focus: t, blur: l, ...
|
|
3080
|
-
return
|
|
3079
|
+
const { input: e, focus: t, blur: l, ...o } = this.$attrs;
|
|
3080
|
+
return o;
|
|
3081
3081
|
},
|
|
3082
3082
|
hasValue() {
|
|
3083
3083
|
switch (this.type) {
|
|
@@ -3106,7 +3106,7 @@ const Tl = {
|
|
|
3106
3106
|
return !this.staticLabel || !this.hasValue && !this.placeholder;
|
|
3107
3107
|
},
|
|
3108
3108
|
overallFilesProgress() {
|
|
3109
|
-
const t = +this.inputFiles.reduce((l,
|
|
3109
|
+
const t = +this.inputFiles.reduce((l, o) => l + o.progress, 0) / this.inputFiles.length;
|
|
3110
3110
|
return this.$emit("update:overallProgress", this.inputFiles.length ? t : void 0), t;
|
|
3111
3111
|
},
|
|
3112
3112
|
uploadInProgress() {
|
|
@@ -3160,10 +3160,10 @@ const Tl = {
|
|
|
3160
3160
|
},
|
|
3161
3161
|
onFileChange(e) {
|
|
3162
3162
|
this.inputFiles = [...e.target.files].map((t) => {
|
|
3163
|
-
const [, l = "",
|
|
3163
|
+
const [, l = "", o = "", n = ""] = t.name.match(/^(.*?)\.([^.]*)$|(.*)/), i = G({
|
|
3164
3164
|
name: t.name,
|
|
3165
|
-
base: l ||
|
|
3166
|
-
extension:
|
|
3165
|
+
base: l || n,
|
|
3166
|
+
extension: o,
|
|
3167
3167
|
type: t.type,
|
|
3168
3168
|
size: t.size,
|
|
3169
3169
|
lastModified: t.lastModified,
|
|
@@ -3175,8 +3175,8 @@ const Tl = {
|
|
|
3175
3175
|
}), this.$emit("update:modelValue", this.inputFiles), this.$emit("input", this.inputFiles);
|
|
3176
3176
|
},
|
|
3177
3177
|
readFile(e, t) {
|
|
3178
|
-
const l = new FileReader(),
|
|
3179
|
-
this.preview && !
|
|
3178
|
+
const l = new FileReader(), o = typeof this.preview == "string", n = e.type && e.type.startsWith("image/");
|
|
3179
|
+
this.preview && !o && n ? l.addEventListener("load", (i) => {
|
|
3180
3180
|
t.preview = i.target.result;
|
|
3181
3181
|
}) : delete t.preview, l.addEventListener("progress", (i) => {
|
|
3182
3182
|
i.loaded && i.total && (t.progress = i.loaded * 100 / i.total);
|
|
@@ -3194,29 +3194,29 @@ const Tl = {
|
|
|
3194
3194
|
}
|
|
3195
3195
|
}
|
|
3196
3196
|
}, xl = /* @__PURE__ */ v(Tl, [["render", Ll]]);
|
|
3197
|
-
function Pl(e, t, l,
|
|
3198
|
-
const
|
|
3197
|
+
function Pl(e, t, l, o, n, i) {
|
|
3198
|
+
const a = $("w-icon"), r = $("w-list", !0);
|
|
3199
3199
|
return s(), u("ul", {
|
|
3200
3200
|
class: f(["w-list", i.classes])
|
|
3201
3201
|
}, [
|
|
3202
|
-
(s(!0), u(_, null,
|
|
3202
|
+
(s(!0), u(_, null, x(e.listItems, (d, h) => (s(), u("li", {
|
|
3203
3203
|
class: f(["w-list__item", { "w-list__item--parent": (d.children || []).length }]),
|
|
3204
3204
|
key: h
|
|
3205
3205
|
}, [
|
|
3206
|
-
l.icon ? (s(),
|
|
3206
|
+
l.icon ? (s(), b(a, {
|
|
3207
3207
|
key: 0,
|
|
3208
3208
|
class: "w-list__item-bullet"
|
|
3209
3209
|
}, {
|
|
3210
|
-
default:
|
|
3211
|
-
|
|
3210
|
+
default: g(() => [
|
|
3211
|
+
B(k(l.icon), 1)
|
|
3212
3212
|
]),
|
|
3213
3213
|
_: 1
|
|
3214
3214
|
})) : c("", !0),
|
|
3215
|
-
e.$slots[`item.${h + 1}`] || e.$slots.item || e.$slots.default ? (s(),
|
|
3215
|
+
e.$slots[`item.${h + 1}`] || e.$slots.item || e.$slots.default ? (s(), b(V(l.checklist ? "w-checkbox" : l.nav && !d.disabled && d.route ? i.hasRouter ? "router-link" : "a" : "div"), C({
|
|
3216
3216
|
key: 1,
|
|
3217
3217
|
class: "w-list__item-label"
|
|
3218
3218
|
}, i.liLabelProps(d, h, d._selected)), {
|
|
3219
|
-
default:
|
|
3219
|
+
default: g(() => [
|
|
3220
3220
|
e.$slots[`item.${h + 1}`] ? p(e.$slots, `item.${h + 1}`, {
|
|
3221
3221
|
key: 0,
|
|
3222
3222
|
item: i.cleanLi(d),
|
|
@@ -3233,15 +3233,15 @@ function Pl(e, t, l, a, o, i) {
|
|
|
3233
3233
|
index: h + 1,
|
|
3234
3234
|
selected: d._selected
|
|
3235
3235
|
}, () => [
|
|
3236
|
-
|
|
3236
|
+
B(k(d._label), 1)
|
|
3237
3237
|
])
|
|
3238
3238
|
]),
|
|
3239
3239
|
_: 2
|
|
3240
|
-
}, 1040)) : (s(),
|
|
3240
|
+
}, 1040)) : (s(), b(V(l.checklist ? "w-checkbox" : l.nav && !d.disabled && d.route ? i.hasRouter ? "router-link" : "a" : "div"), C({
|
|
3241
3241
|
key: 2,
|
|
3242
3242
|
class: "w-list__item-label"
|
|
3243
3243
|
}, i.liLabelProps(d, h, d._selected)), null, 16)),
|
|
3244
|
-
(d.children || []).length ? (s(),
|
|
3244
|
+
(d.children || []).length ? (s(), b(r, C({ key: 3 }, e.$props, {
|
|
3245
3245
|
items: d.children,
|
|
3246
3246
|
depth: l.depth + 1,
|
|
3247
3247
|
"onUpdate:modelValue": t[0] || (t[0] = (y) => e.$emit("update:modelValue", y)),
|
|
@@ -3251,23 +3251,23 @@ function Pl(e, t, l, a, o, i) {
|
|
|
3251
3251
|
}), Z({ _: 2 }, [
|
|
3252
3252
|
e.$slots.item ? {
|
|
3253
3253
|
name: "item",
|
|
3254
|
-
fn:
|
|
3254
|
+
fn: g(({ item: y, index: S, selected: m }) => [
|
|
3255
3255
|
p(e.$slots, "item", {
|
|
3256
3256
|
item: i.cleanLi(y),
|
|
3257
3257
|
index: S,
|
|
3258
|
-
selected:
|
|
3258
|
+
selected: m
|
|
3259
3259
|
})
|
|
3260
3260
|
]),
|
|
3261
3261
|
key: "0"
|
|
3262
3262
|
} : {
|
|
3263
3263
|
name: "default",
|
|
3264
|
-
fn:
|
|
3264
|
+
fn: g(({ item: y, index: S, selected: m }) => [
|
|
3265
3265
|
p(e.$slots, "default", {
|
|
3266
3266
|
item: i.cleanLi(y),
|
|
3267
3267
|
index: S,
|
|
3268
|
-
selected:
|
|
3268
|
+
selected: m
|
|
3269
3269
|
}, () => [
|
|
3270
|
-
|
|
3270
|
+
B(k(y[l.itemLabelKey]), 1)
|
|
3271
3271
|
])
|
|
3272
3272
|
]),
|
|
3273
3273
|
key: "1"
|
|
@@ -3360,14 +3360,14 @@ const Ol = {
|
|
|
3360
3360
|
};
|
|
3361
3361
|
},
|
|
3362
3362
|
liLabelProps(e, t, l) {
|
|
3363
|
-
const
|
|
3363
|
+
const o = this.$slots[`item.${t + 1}`] || this.$slots.item, n = () => {
|
|
3364
3364
|
if (!e.disabled) {
|
|
3365
3365
|
const d = this.cleanLi(e);
|
|
3366
3366
|
this.$emit("item-click", d), this.$emit("item-select", d);
|
|
3367
3367
|
}
|
|
3368
3368
|
}, i = this.isSelectable && ((d) => {
|
|
3369
3369
|
d.stopPropagation(), !e.disabled && this.selectItem(e);
|
|
3370
|
-
}),
|
|
3370
|
+
}), a = this.isSelectable && ((d) => {
|
|
3371
3371
|
!e.disabled && d.keyCode === 13 ? (this.selectItem(e), this.$emit("keydown:enter"), this.$emit("item-select", this.cleanLi(e))) : d.keyCode === 27 ? this.$emit("keydown:escape") : this.arrowsNavigation && [38, 40].includes(d.keyCode) && (d.preventDefault(), d.keyCode === 38 && this.focusPrevNextItem(e._index, !1), d.keyCode === 40 && this.focusPrevNextItem(e._index, !0));
|
|
3372
3372
|
}), r = {
|
|
3373
3373
|
class: this.liLabelClasses(e),
|
|
@@ -3376,12 +3376,12 @@ const Ol = {
|
|
|
3376
3376
|
id: this.listId ? `${this.listId}_item-${t + 1}` : null,
|
|
3377
3377
|
role: "option"
|
|
3378
3378
|
};
|
|
3379
|
-
return this.checklist ? (r.modelValue = e._selected, r.color = e[this.itemColorKey] || this.color, r.round = this.roundCheckboxes, r.disabled = e.disabled,
|
|
3379
|
+
return this.checklist ? (r.modelValue = e._selected, r.color = e[this.itemColorKey] || this.color, r.round = this.roundCheckboxes, r.disabled = e.disabled, o || (r.label = e._label || null), r.onFocus = () => e._focused = !0, r.onBlur = () => e._focused = !1, r.onInput = (d) => this.selectItem(e, d), r.onClick = (d) => {
|
|
3380
3380
|
const h = d.target.querySelector('input[type="checkbox"]');
|
|
3381
|
-
h && (h.focus(), h.click()),
|
|
3382
|
-
}) : this.nav ? (!e.disabled && e[this.itemRouteKey] && (r.onKeydown =
|
|
3383
|
-
d.preventDefault(), this.$router.push(e[this.itemRouteKey]),
|
|
3384
|
-
}) : (r.href = e[this.itemRouteKey], r.onClick =
|
|
3381
|
+
h && (h.focus(), h.click()), n();
|
|
3382
|
+
}) : this.nav ? (!e.disabled && e[this.itemRouteKey] && (r.onKeydown = a, r.onMousedown = i, this.$router ? (r.to = e[this.itemRouteKey], r.onClick = (d) => {
|
|
3383
|
+
d.preventDefault(), this.$router.push(e[this.itemRouteKey]), n();
|
|
3384
|
+
}) : (r.href = e[this.itemRouteKey], r.onClick = n)), o || (r.innerHTML = e._label)) : (this.isSelectable && (e.disabled || (r.tabindex = 0), r.onClick = n, r.onKeydown = a, r.onMousedown = i), o || (r.innerHTML = e._label)), r;
|
|
3385
3385
|
},
|
|
3386
3386
|
checkSelection(e) {
|
|
3387
3387
|
return e = Array.isArray(e) ? e : e ? [e] : [], this.returnObject && (e = e.map(this.getItemValue)), e;
|
|
@@ -3390,7 +3390,7 @@ const Ol = {
|
|
|
3390
3390
|
const e = this.selectedItems.map((l) => {
|
|
3391
3391
|
if (!this.returnObject)
|
|
3392
3392
|
return l._value;
|
|
3393
|
-
const { _value:
|
|
3393
|
+
const { _value: o, _selected: n, ...i } = l;
|
|
3394
3394
|
return i;
|
|
3395
3395
|
}), t = this.isMultipleSelect ? e : e[0] !== void 0 ? e[0] : null;
|
|
3396
3396
|
this.$emit("update:modelValue", t), this.$emit("input", t);
|
|
@@ -3401,8 +3401,8 @@ const Ol = {
|
|
|
3401
3401
|
e === void 0 && (e = this.enabledItemsIndexes[l]), this.$el.querySelector(`#${this.listId}_item-${e + 1}`).focus();
|
|
3402
3402
|
},
|
|
3403
3403
|
cleanLi(e) {
|
|
3404
|
-
const { _index: t, _value: l, _label:
|
|
3405
|
-
return
|
|
3404
|
+
const { _index: t, _value: l, _label: o, _selected: n, _focused: i, ...a } = e;
|
|
3405
|
+
return a;
|
|
3406
3406
|
},
|
|
3407
3407
|
refreshListItems() {
|
|
3408
3408
|
const e = typeof this.items == "number" ? Array(this.items).fill({}) : this.items || [];
|
|
@@ -3417,7 +3417,7 @@ const Ol = {
|
|
|
3417
3417
|
},
|
|
3418
3418
|
applySelectionOnItems(e) {
|
|
3419
3419
|
this.isMultipleSelect || this.listItems.forEach((t) => t._selected = !1), this.checkSelection(e).forEach((t) => {
|
|
3420
|
-
const l = this.listItems.find((
|
|
3420
|
+
const l = this.listItems.find((o) => o._value === t);
|
|
3421
3421
|
l && (l._selected = !0);
|
|
3422
3422
|
});
|
|
3423
3423
|
}
|
|
@@ -3506,39 +3506,39 @@ const Ol = {
|
|
|
3506
3506
|
}, 0), this.persistent || document.addEventListener("mousedown", this.onOutsideMousedown), this.noPosition || window.addEventListener("resize", this.onResize);
|
|
3507
3507
|
},
|
|
3508
3508
|
getActivatorCoordinates() {
|
|
3509
|
-
const { top: e, left: t, width: l, height:
|
|
3510
|
-
let
|
|
3509
|
+
const { top: e, left: t, width: l, height: o } = this.activatorEl.getBoundingClientRect();
|
|
3510
|
+
let n = { top: e, left: t, width: l, height: o };
|
|
3511
3511
|
if (!this.fixed) {
|
|
3512
|
-
const { top: i, left:
|
|
3513
|
-
|
|
3514
|
-
...
|
|
3512
|
+
const { top: i, left: a } = this.detachableParentEl.getBoundingClientRect(), r = window.getComputedStyle(this.detachableParentEl, null);
|
|
3513
|
+
n = {
|
|
3514
|
+
...n,
|
|
3515
3515
|
top: e - i + this.detachableParentEl.scrollTop - parseInt(r.getPropertyValue("border-top-width")),
|
|
3516
|
-
left: t -
|
|
3516
|
+
left: t - a + this.detachableParentEl.scrollLeft - parseInt(r.getPropertyValue("border-left-width"))
|
|
3517
3517
|
};
|
|
3518
3518
|
}
|
|
3519
|
-
return
|
|
3519
|
+
return n;
|
|
3520
3520
|
},
|
|
3521
3521
|
computeDetachableCoords() {
|
|
3522
|
-
let { top: e, left: t, width: l, height:
|
|
3522
|
+
let { top: e, left: t, width: l, height: o } = this.getActivatorCoordinates();
|
|
3523
3523
|
if (!this.detachableEl)
|
|
3524
3524
|
return;
|
|
3525
3525
|
this.detachableEl.style.visibility = "hidden", this.detachableEl.style.display = "flex";
|
|
3526
|
-
const
|
|
3526
|
+
const n = window.getComputedStyle(this.detachableEl, null);
|
|
3527
3527
|
switch (this.position) {
|
|
3528
3528
|
case "top": {
|
|
3529
|
-
e -= this.detachableEl.offsetHeight, this.alignRight ? t += l - this.detachableEl.offsetWidth + parseInt(
|
|
3529
|
+
e -= this.detachableEl.offsetHeight, this.alignRight ? t += l - this.detachableEl.offsetWidth + parseInt(n.getPropertyValue("border-right-width")) : this.alignLeft || (t += (l - this.detachableEl.offsetWidth) / 2);
|
|
3530
3530
|
break;
|
|
3531
3531
|
}
|
|
3532
3532
|
case "bottom": {
|
|
3533
|
-
e +=
|
|
3533
|
+
e += o, this.alignRight ? t += l - this.detachableEl.offsetWidth + parseInt(n.getPropertyValue("border-right-width")) : this.alignLeft || (t += (l - this.detachableEl.offsetWidth) / 2);
|
|
3534
3534
|
break;
|
|
3535
3535
|
}
|
|
3536
3536
|
case "left": {
|
|
3537
|
-
t -= this.detachableEl.offsetWidth, this.alignBottom ? e +=
|
|
3537
|
+
t -= this.detachableEl.offsetWidth, this.alignBottom ? e += o - this.detachableEl.offsetHeight : this.alignTop || (e += (o - this.detachableEl.offsetHeight) / 2);
|
|
3538
3538
|
break;
|
|
3539
3539
|
}
|
|
3540
3540
|
case "right": {
|
|
3541
|
-
t += l, this.alignBottom ? e +=
|
|
3541
|
+
t += l, this.alignBottom ? e += o - this.detachableEl.offsetHeight + parseInt(n.getPropertyValue("margin-top")) : this.alignTop || (e += (o - this.detachableEl.offsetHeight) / 2 + parseInt(n.getPropertyValue("margin-top")));
|
|
3542
3542
|
break;
|
|
3543
3543
|
}
|
|
3544
3544
|
}
|
|
@@ -3565,11 +3565,11 @@ const Ol = {
|
|
|
3565
3565
|
const e = typeof this.activator == "string";
|
|
3566
3566
|
Object.entries(this.activatorEventHandlers).forEach(([t, l]) => {
|
|
3567
3567
|
t = t.replace("mouseenter", "mouseover").replace("mouseleave", "mouseout");
|
|
3568
|
-
const
|
|
3568
|
+
const o = (n) => {
|
|
3569
3569
|
var i;
|
|
3570
|
-
(e && ((i =
|
|
3570
|
+
(e && ((i = n.target) == null ? void 0 : i.matches) && n.target.matches(this.activator) || n.target === this.activatorEl || this.activatorEl.contains(n.target)) && l(n);
|
|
3571
3571
|
};
|
|
3572
|
-
document.addEventListener(t,
|
|
3572
|
+
document.addEventListener(t, o), this.docEventListenersHandlers.push({ eventName: t, handler: o });
|
|
3573
3573
|
});
|
|
3574
3574
|
}
|
|
3575
3575
|
},
|
|
@@ -3593,16 +3593,16 @@ const Ol = {
|
|
|
3593
3593
|
}
|
|
3594
3594
|
}
|
|
3595
3595
|
};
|
|
3596
|
-
function El(e, t, l,
|
|
3597
|
-
const
|
|
3596
|
+
function El(e, t, l, o, n, i) {
|
|
3597
|
+
const a = $("w-card"), r = $("w-overlay");
|
|
3598
3598
|
return s(), u(_, null, [
|
|
3599
3599
|
p(e.$slots, "activator", { on: i.activatorEventHandlers }),
|
|
3600
|
-
I(
|
|
3600
|
+
I(P, {
|
|
3601
3601
|
name: i.transitionName,
|
|
3602
3602
|
appear: ""
|
|
3603
3603
|
}, {
|
|
3604
|
-
default:
|
|
3605
|
-
l.custom && e.detachableVisible ? (s(), u("div",
|
|
3604
|
+
default: g(() => [
|
|
3605
|
+
l.custom && e.detachableVisible ? (s(), u("div", C({
|
|
3606
3606
|
key: 0,
|
|
3607
3607
|
class: "w-menu",
|
|
3608
3608
|
ref: "detachable"
|
|
@@ -3614,7 +3614,7 @@ function El(e, t, l, a, o, i) {
|
|
|
3614
3614
|
style: i.styles
|
|
3615
3615
|
}), [
|
|
3616
3616
|
p(e.$slots, "default")
|
|
3617
|
-
], 16)) : e.detachableVisible ? (s(),
|
|
3617
|
+
], 16)) : e.detachableVisible ? (s(), b(a, C({
|
|
3618
3618
|
key: 1,
|
|
3619
3619
|
class: "w-menu",
|
|
3620
3620
|
ref: "detachable"
|
|
@@ -3630,21 +3630,21 @@ function El(e, t, l, a, o, i) {
|
|
|
3630
3630
|
class: i.classes,
|
|
3631
3631
|
style: i.styles
|
|
3632
3632
|
}), Z({
|
|
3633
|
-
default:
|
|
3633
|
+
default: g(() => [
|
|
3634
3634
|
p(e.$slots, "default")
|
|
3635
3635
|
]),
|
|
3636
3636
|
_: 2
|
|
3637
3637
|
}, [
|
|
3638
3638
|
e.$slots.title ? {
|
|
3639
3639
|
name: "title",
|
|
3640
|
-
fn:
|
|
3640
|
+
fn: g(() => [
|
|
3641
3641
|
p(e.$slots, "title")
|
|
3642
3642
|
]),
|
|
3643
3643
|
key: "0"
|
|
3644
3644
|
} : void 0,
|
|
3645
3645
|
e.$slots.actions ? {
|
|
3646
3646
|
name: "actions",
|
|
3647
|
-
fn:
|
|
3647
|
+
fn: g(() => [
|
|
3648
3648
|
p(e.$slots, "actions")
|
|
3649
3649
|
]),
|
|
3650
3650
|
key: "1"
|
|
@@ -3653,7 +3653,7 @@ function El(e, t, l, a, o, i) {
|
|
|
3653
3653
|
]),
|
|
3654
3654
|
_: 3
|
|
3655
3655
|
}, 8, ["name"]),
|
|
3656
|
-
l.overlay ? (s(),
|
|
3656
|
+
l.overlay ? (s(), b(r, C({
|
|
3657
3657
|
key: 0,
|
|
3658
3658
|
ref: "overlay",
|
|
3659
3659
|
"model-value": e.detachableVisible,
|
|
@@ -3723,17 +3723,17 @@ const Ml = {
|
|
|
3723
3723
|
return this.minWidth === "activator" ? this.activatorWidth ? `${this.activatorWidth}px` : 0 : isNaN(this.minWidth) ? this.minWidth : this.minWidth ? `${this.minWidth}px` : 0;
|
|
3724
3724
|
},
|
|
3725
3725
|
menuClasses() {
|
|
3726
|
-
return
|
|
3726
|
+
return N(this.menuClass);
|
|
3727
3727
|
},
|
|
3728
3728
|
titleClasses() {
|
|
3729
|
-
return
|
|
3729
|
+
return N(this.titleClass);
|
|
3730
3730
|
},
|
|
3731
3731
|
contentClasses() {
|
|
3732
|
-
return
|
|
3732
|
+
return N(this.contentClass);
|
|
3733
3733
|
},
|
|
3734
3734
|
overlayClasses() {
|
|
3735
3735
|
return {
|
|
3736
|
-
...
|
|
3736
|
+
...N(this.overlayClass),
|
|
3737
3737
|
"w-overlay--no-pointer-event": this.showOnHover
|
|
3738
3738
|
};
|
|
3739
3739
|
},
|
|
@@ -3788,26 +3788,26 @@ const Ml = {
|
|
|
3788
3788
|
!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));
|
|
3789
3789
|
}
|
|
3790
3790
|
}
|
|
3791
|
-
},
|
|
3792
|
-
function
|
|
3793
|
-
const
|
|
3794
|
-
return s(),
|
|
3791
|
+
}, Al = /* @__PURE__ */ v(Ml, [["render", El]]);
|
|
3792
|
+
function Nl(e, t, l, o, n, i) {
|
|
3793
|
+
const a = $("w-alert");
|
|
3794
|
+
return s(), b(P, {
|
|
3795
3795
|
name: i.transitionName,
|
|
3796
3796
|
appear: ""
|
|
3797
3797
|
}, {
|
|
3798
|
-
default:
|
|
3799
|
-
|
|
3798
|
+
default: g(() => [
|
|
3799
|
+
n.show ? (s(), u("div", {
|
|
3800
3800
|
key: 0,
|
|
3801
3801
|
class: f(["w-notification", i.classes]),
|
|
3802
3802
|
style: L(i.styles)
|
|
3803
3803
|
}, [
|
|
3804
|
-
I(
|
|
3804
|
+
I(a, C(i.alertProps, {
|
|
3805
3805
|
class: i.alertClasses,
|
|
3806
3806
|
"onUpdate:modelValue": t[0] || (t[0] = (r) => {
|
|
3807
3807
|
e.$emit("update:modelValue", !1), e.$emit("input", !1);
|
|
3808
3808
|
})
|
|
3809
3809
|
}), {
|
|
3810
|
-
default:
|
|
3810
|
+
default: g(() => [
|
|
3811
3811
|
p(e.$slots, "default")
|
|
3812
3812
|
]),
|
|
3813
3813
|
_: 3
|
|
@@ -3817,7 +3817,7 @@ function Wl(e, t, l, a, o, i) {
|
|
|
3817
3817
|
_: 3
|
|
3818
3818
|
}, 8, ["name"]);
|
|
3819
3819
|
}
|
|
3820
|
-
const
|
|
3820
|
+
const Wl = {
|
|
3821
3821
|
name: "w-notification",
|
|
3822
3822
|
props: {
|
|
3823
3823
|
modelValue: { default: !0 },
|
|
@@ -3937,15 +3937,15 @@ const Al = {
|
|
|
3937
3937
|
clearTimeout(this.timeoutId), this.show = e, e && this.timeoutVal && this.countdown();
|
|
3938
3938
|
}
|
|
3939
3939
|
}
|
|
3940
|
-
}, Kl = /* @__PURE__ */ v(
|
|
3941
|
-
function Dl(e, t, l,
|
|
3942
|
-
const
|
|
3943
|
-
return s(),
|
|
3940
|
+
}, Kl = /* @__PURE__ */ v(Wl, [["render", Nl]]);
|
|
3941
|
+
function Dl(e, t, l, o, n, i) {
|
|
3942
|
+
const a = fe("focus");
|
|
3943
|
+
return s(), b(P, {
|
|
3944
3944
|
name: "fade",
|
|
3945
3945
|
appear: "",
|
|
3946
3946
|
onAfterLeave: i.onClose
|
|
3947
3947
|
}, {
|
|
3948
|
-
default:
|
|
3948
|
+
default: g(() => [
|
|
3949
3949
|
l.modelValue ? D((s(), u("div", {
|
|
3950
3950
|
key: 0,
|
|
3951
3951
|
class: f(["w-overlay", i.classes]),
|
|
@@ -3957,8 +3957,8 @@ function Dl(e, t, l, a, o, i) {
|
|
|
3957
3957
|
}, [
|
|
3958
3958
|
p(e.$slots, "default")
|
|
3959
3959
|
], 38)), [
|
|
3960
|
-
[
|
|
3961
|
-
[
|
|
3960
|
+
[ge, e.showOverlay],
|
|
3961
|
+
[a]
|
|
3962
3962
|
]) : c("", !0)
|
|
3963
3963
|
]),
|
|
3964
3964
|
_: 3
|
|
@@ -4019,7 +4019,7 @@ const Fl = {
|
|
|
4019
4019
|
}
|
|
4020
4020
|
}
|
|
4021
4021
|
}, Hl = /* @__PURE__ */ v(Fl, [["render", Dl]]), jl = { class: "w-parallax" };
|
|
4022
|
-
function Ul(e, t, l,
|
|
4022
|
+
function Ul(e, t, l, o, n, i) {
|
|
4023
4023
|
return s(), u("div", jl);
|
|
4024
4024
|
}
|
|
4025
4025
|
const ql = {
|
|
@@ -4028,7 +4028,7 @@ const ql = {
|
|
|
4028
4028
|
emits: [],
|
|
4029
4029
|
data: () => ({})
|
|
4030
4030
|
}, Gl = /* @__PURE__ */ v(ql, [["render", Ul]]), Xl = ["viewBox"], Yl = ["cx", "cy", "r", "stroke-dasharray", "stroke-width"], Jl = ["cx", "cy", "r", "stroke-width", "stroke-linecap", "stroke-dasharray"];
|
|
4031
|
-
function Ql(e, t, l,
|
|
4031
|
+
function Ql(e, t, l, o, n, i) {
|
|
4032
4032
|
return s(), u("div", {
|
|
4033
4033
|
class: f(["w-progress", i.classes]),
|
|
4034
4034
|
style: L(i.styles)
|
|
@@ -4068,7 +4068,7 @@ function Ql(e, t, l, a, o, i) {
|
|
|
4068
4068
|
class: f(["w-progress__label", l.labelColor || !1])
|
|
4069
4069
|
}, [
|
|
4070
4070
|
p(e.$slots, "default", {}, () => [
|
|
4071
|
-
|
|
4071
|
+
B(k(Math.round(i.progressValue)) + k(l.circle ? "" : "%"), 1)
|
|
4072
4072
|
])
|
|
4073
4073
|
], 2)) : c("", !0)
|
|
4074
4074
|
], 6);
|
|
@@ -4140,16 +4140,16 @@ const Q = 40, Zl = Q / 2, ei = Math.round(Q * 3.14 * 100) / 100, ti = {
|
|
|
4140
4140
|
}
|
|
4141
4141
|
}
|
|
4142
4142
|
}, li = /* @__PURE__ */ v(ti, [["render", Ql]]), ii = ["id", "name", "checked", "disabled", "required", "tabindex", "aria-checked"], si = ["for"], ai = ["for", "innerHTML"], oi = ["for"], ni = ["for", "innerHTML"];
|
|
4143
|
-
function ri(e, t, l,
|
|
4144
|
-
return s(),
|
|
4143
|
+
function ri(e, t, l, o, n, i) {
|
|
4144
|
+
return s(), b(V(e.formRegister && !i.wRadios ? "w-form-element" : "div"), C({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: e.inputValue, disabled: e.isDisabled }, {
|
|
4145
4145
|
valid: e.valid,
|
|
4146
|
-
"onUpdate:valid": t[3] || (t[3] = (
|
|
4147
|
-
onReset: t[4] || (t[4] = (
|
|
4146
|
+
"onUpdate:valid": t[3] || (t[3] = (a) => e.valid = a),
|
|
4147
|
+
onReset: t[4] || (t[4] = (a) => {
|
|
4148
4148
|
e.$emit("update:modelValue", e.inputValue = null), e.$emit("input", null);
|
|
4149
4149
|
}),
|
|
4150
4150
|
class: i.classes
|
|
4151
4151
|
}), {
|
|
4152
|
-
default:
|
|
4152
|
+
default: g(() => [
|
|
4153
4153
|
w("input", {
|
|
4154
4154
|
ref: "input",
|
|
4155
4155
|
id: `w-radio--${e._.uid}`,
|
|
@@ -4159,8 +4159,8 @@ function ri(e, t, l, a, o, i) {
|
|
|
4159
4159
|
disabled: e.isDisabled || null,
|
|
4160
4160
|
required: e.required || null,
|
|
4161
4161
|
tabindex: e.tabindex || null,
|
|
4162
|
-
onFocus: t[0] || (t[0] = (
|
|
4163
|
-
onChange: t[1] || (t[1] = (
|
|
4162
|
+
onFocus: t[0] || (t[0] = (a) => e.$emit("focus", a)),
|
|
4163
|
+
onChange: t[1] || (t[1] = (a) => i.onInput(a)),
|
|
4164
4164
|
"aria-checked": e.inputValue || "false",
|
|
4165
4165
|
role: "radio"
|
|
4166
4166
|
}, null, 40, ii),
|
|
@@ -4171,7 +4171,7 @@ function ri(e, t, l, a, o, i) {
|
|
|
4171
4171
|
for: `w-radio--${e._.uid}`
|
|
4172
4172
|
}, [
|
|
4173
4173
|
p(e.$slots, "default", {}, () => [
|
|
4174
|
-
|
|
4174
|
+
B(k(l.label), 1)
|
|
4175
4175
|
])
|
|
4176
4176
|
], 10, si)) : l.label ? (s(), u("label", {
|
|
4177
4177
|
key: 1,
|
|
@@ -4182,7 +4182,7 @@ function ri(e, t, l, a, o, i) {
|
|
|
4182
4182
|
], 64)) : c("", !0),
|
|
4183
4183
|
w("div", {
|
|
4184
4184
|
class: f(["w-radio__input", this.color]),
|
|
4185
|
-
onClick: t[2] || (t[2] = (
|
|
4185
|
+
onClick: t[2] || (t[2] = (a) => {
|
|
4186
4186
|
e.$refs.input.focus(), e.$refs.input.click();
|
|
4187
4187
|
})
|
|
4188
4188
|
}, null, 2),
|
|
@@ -4193,7 +4193,7 @@ function ri(e, t, l, a, o, i) {
|
|
|
4193
4193
|
for: `w-radio--${e._.uid}`
|
|
4194
4194
|
}, [
|
|
4195
4195
|
p(e.$slots, "default", {}, () => [
|
|
4196
|
-
|
|
4196
|
+
B(k(l.label), 1)
|
|
4197
4197
|
])
|
|
4198
4198
|
], 10, oi)) : l.label ? (s(), u("label", {
|
|
4199
4199
|
key: 1,
|
|
@@ -4266,9 +4266,9 @@ const di = {
|
|
|
4266
4266
|
}
|
|
4267
4267
|
}
|
|
4268
4268
|
}, ui = /* @__PURE__ */ v(di, [["render", ri]]), hi = ["innerHTML"];
|
|
4269
|
-
function ci(e, t, l,
|
|
4270
|
-
const
|
|
4271
|
-
return s(),
|
|
4269
|
+
function ci(e, t, l, o, n, i) {
|
|
4270
|
+
const a = $("w-radio");
|
|
4271
|
+
return s(), b(V(e.formRegister ? "w-form-element" : "div"), C({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: e.inputValue, disabled: e.isDisabled }, {
|
|
4272
4272
|
valid: e.valid,
|
|
4273
4273
|
"onUpdate:valid": t[1] || (t[1] = (r) => e.valid = r),
|
|
4274
4274
|
onReset: t[2] || (t[2] = (r) => {
|
|
@@ -4278,8 +4278,8 @@ function ci(e, t, l, a, o, i) {
|
|
|
4278
4278
|
wrap: l.inline,
|
|
4279
4279
|
class: i.classes
|
|
4280
4280
|
}), {
|
|
4281
|
-
default:
|
|
4282
|
-
(s(!0), u(_, null,
|
|
4281
|
+
default: g(() => [
|
|
4282
|
+
(s(!0), u(_, null, x(i.radioItems, (r, d) => (s(), b(a, C({
|
|
4283
4283
|
key: d,
|
|
4284
4284
|
"model-value": r.value === l.modelValue,
|
|
4285
4285
|
"onUpdate:modelValue": (h) => i.onInput(r),
|
|
@@ -4290,7 +4290,7 @@ function ci(e, t, l, a, o, i) {
|
|
|
4290
4290
|
readonly: e.isReadonly || null,
|
|
4291
4291
|
class: { mt1: !l.inline && d }
|
|
4292
4292
|
}), {
|
|
4293
|
-
default:
|
|
4293
|
+
default: g(() => [
|
|
4294
4294
|
e.$slots[`item.${d + 1}`] || e.$slots.item ? p(e.$slots, e.$slots[`item.${d + 1}`] ? `item.${d + 1}` : "item", {
|
|
4295
4295
|
key: 0,
|
|
4296
4296
|
item: i.getOriginalItem(r),
|
|
@@ -4354,48 +4354,48 @@ const pi = {
|
|
|
4354
4354
|
return this.items[e._index];
|
|
4355
4355
|
}
|
|
4356
4356
|
}
|
|
4357
|
-
}, fi = /* @__PURE__ */ v(pi, [["render", ci]]),
|
|
4358
|
-
function bi(e, t, l,
|
|
4359
|
-
return s(),
|
|
4357
|
+
}, fi = /* @__PURE__ */ v(pi, [["render", ci]]), gi = ["id", "name", "value"], mi = ["disabled", "onMouseenter", "onClick", "tabindex"];
|
|
4358
|
+
function bi(e, t, l, o, n, i) {
|
|
4359
|
+
return s(), b(V(e.formRegister ? "w-form-element" : "div"), C({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: n.rating, disabled: e.isDisabled, readonly: e.isReadonly }, {
|
|
4360
4360
|
valid: e.valid,
|
|
4361
|
-
"onUpdate:valid": t[4] || (t[4] = (
|
|
4362
|
-
onReset: t[5] || (t[5] = (
|
|
4363
|
-
e.$emit("update:modelValue",
|
|
4361
|
+
"onUpdate:valid": t[4] || (t[4] = (a) => e.valid = a),
|
|
4362
|
+
onReset: t[5] || (t[5] = (a) => {
|
|
4363
|
+
e.$emit("update:modelValue", n.rating = null), e.$emit("input", null);
|
|
4364
4364
|
}),
|
|
4365
4365
|
class: i.classes
|
|
4366
4366
|
}), {
|
|
4367
|
-
default:
|
|
4367
|
+
default: g(() => [
|
|
4368
4368
|
w("input", {
|
|
4369
4369
|
id: e.inputName,
|
|
4370
4370
|
name: e.inputName,
|
|
4371
4371
|
type: "hidden",
|
|
4372
|
-
value:
|
|
4373
|
-
}, null, 8,
|
|
4374
|
-
(s(!0), u(_, null,
|
|
4372
|
+
value: n.rating
|
|
4373
|
+
}, null, 8, gi),
|
|
4374
|
+
(s(!0), u(_, null, x(l.max, (a) => (s(), u(_, { key: a }, [
|
|
4375
4375
|
e.$slots.item ? p(e.$slots, "item", {
|
|
4376
4376
|
key: 0,
|
|
4377
|
-
index:
|
|
4377
|
+
index: a + 1
|
|
4378
4378
|
}) : c("", !0),
|
|
4379
4379
|
w("button", {
|
|
4380
|
-
class: f(["w-rating__button", i.buttonClasses(
|
|
4380
|
+
class: f(["w-rating__button", i.buttonClasses(a)]),
|
|
4381
4381
|
disabled: e.isDisabled || e.isReadonly,
|
|
4382
|
-
onMouseenter: (r) =>
|
|
4383
|
-
onMouseleave: t[0] || (t[0] = (r) =>
|
|
4384
|
-
onClick: (r) => i.onButtonClick(
|
|
4382
|
+
onMouseenter: (r) => n.hover = a,
|
|
4383
|
+
onMouseleave: t[0] || (t[0] = (r) => n.hover = 0),
|
|
4384
|
+
onClick: (r) => i.onButtonClick(a),
|
|
4385
4385
|
onFocus: t[1] || (t[1] = (...r) => i.onFocus && i.onFocus(...r)),
|
|
4386
4386
|
onBlur: t[2] || (t[2] = (...r) => i.onBlur && i.onBlur(...r)),
|
|
4387
4387
|
onKeydown: t[3] || (t[3] = (...r) => i.onKeydown && i.onKeydown(...r)),
|
|
4388
4388
|
type: "button",
|
|
4389
|
-
tabindex:
|
|
4389
|
+
tabindex: a === 1 ? 0 : -1
|
|
4390
4390
|
}, [
|
|
4391
|
-
|
|
4391
|
+
a - 1 === ~~n.rating && n.rating - ~~n.rating ? (s(), u("i", {
|
|
4392
4392
|
key: 0,
|
|
4393
4393
|
class: f(["w-icon", `${l.icon} ${l.color}`]),
|
|
4394
4394
|
role: "icon",
|
|
4395
4395
|
"aria-hidden": "true",
|
|
4396
4396
|
style: L(i.halfStarStyle)
|
|
4397
4397
|
}, null, 6)) : c("", !0)
|
|
4398
|
-
], 42,
|
|
4398
|
+
], 42, mi)
|
|
4399
4399
|
], 64))), 128))
|
|
4400
4400
|
]),
|
|
4401
4401
|
_: 3
|
|
@@ -4492,7 +4492,7 @@ const yi = {
|
|
|
4492
4492
|
}
|
|
4493
4493
|
}
|
|
4494
4494
|
}, wi = /* @__PURE__ */ v(yi, [["render", bi]]), vi = { class: "w-scrollbar" };
|
|
4495
|
-
function ki(e, t, l,
|
|
4495
|
+
function ki(e, t, l, o, n, i) {
|
|
4496
4496
|
return s(), u("div", vi);
|
|
4497
4497
|
}
|
|
4498
4498
|
const _i = {
|
|
@@ -4504,16 +4504,16 @@ const _i = {
|
|
|
4504
4504
|
key: 1,
|
|
4505
4505
|
class: "w-select__selection-slot"
|
|
4506
4506
|
}, Vi = ["contenteditable", "id", "disabled", "tabindex", "innerHTML"], Ii = ["value", "name"], Ri = ["for"], Li = ["for"];
|
|
4507
|
-
function Ti(e, t, l,
|
|
4508
|
-
const
|
|
4509
|
-
return s(),
|
|
4507
|
+
function Ti(e, t, l, o, n, i) {
|
|
4508
|
+
const a = $("w-icon"), r = $("w-list"), d = $("w-menu");
|
|
4509
|
+
return s(), b(V(e.formRegister ? "w-form-element" : "div"), C({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: i.selectionString, disabled: e.isDisabled, readonly: e.isReadonly }, {
|
|
4510
4510
|
valid: e.valid,
|
|
4511
4511
|
"onUpdate:valid": t[9] || (t[9] = (h) => e.valid = h),
|
|
4512
4512
|
onReset: i.onReset,
|
|
4513
4513
|
wrap: i.hasLabel && l.labelPosition !== "inside",
|
|
4514
4514
|
class: i.classes
|
|
4515
4515
|
}), {
|
|
4516
|
-
default:
|
|
4516
|
+
default: g(() => [
|
|
4517
4517
|
l.labelPosition === "left" ? (s(), u(_, { key: 0 }, [
|
|
4518
4518
|
e.$slots.default || l.label ? (s(), u("label", {
|
|
4519
4519
|
key: 0,
|
|
@@ -4521,11 +4521,11 @@ function Ti(e, t, l, a, o, i) {
|
|
|
4521
4521
|
for: `w-select--${e._.uid}`
|
|
4522
4522
|
}, [
|
|
4523
4523
|
p(e.$slots, "default", {}, () => [
|
|
4524
|
-
|
|
4524
|
+
B(k(l.label), 1)
|
|
4525
4525
|
])
|
|
4526
4526
|
], 10, Bi)) : c("", !0)
|
|
4527
4527
|
], 64)) : c("", !0),
|
|
4528
|
-
I(d,
|
|
4528
|
+
I(d, C({
|
|
4529
4529
|
modelValue: e.showMenu,
|
|
4530
4530
|
"onUpdate:modelValue": t[8] || (t[8] = (h) => e.showMenu = h),
|
|
4531
4531
|
"menu-class": `w-select__menu ${l.menuClass || ""}`,
|
|
@@ -4535,7 +4535,7 @@ function Ti(e, t, l, a, o, i) {
|
|
|
4535
4535
|
custom: "",
|
|
4536
4536
|
"min-width": "activator"
|
|
4537
4537
|
}, l.menuProps || {}), {
|
|
4538
|
-
activator:
|
|
4538
|
+
activator: g(({ on: h }) => [
|
|
4539
4539
|
w("div", {
|
|
4540
4540
|
class: f(["w-select__selection-wrap", i.inputWrapClasses]),
|
|
4541
4541
|
onClick: t[5] || (t[5] = (y) => !e.isDisabled && !e.isReadonly && (e.showMenu ? i.closeMenu : i.openMenu)()),
|
|
@@ -4545,14 +4545,14 @@ function Ti(e, t, l, a, o, i) {
|
|
|
4545
4545
|
"aria-owns": `w-select-menu--${e._.uid}`,
|
|
4546
4546
|
"aria-activedescendant": `w-select-menu--${e._.uid}_item-1`
|
|
4547
4547
|
}, [
|
|
4548
|
-
l.innerIconLeft ? (s(),
|
|
4548
|
+
l.innerIconLeft ? (s(), b(a, {
|
|
4549
4549
|
key: 0,
|
|
4550
4550
|
class: "w-select__icon w-select__icon--inner-left",
|
|
4551
4551
|
tag: "label",
|
|
4552
4552
|
onClick: t[0] || (t[0] = (y) => e.$emit("click:inner-icon-left", y))
|
|
4553
4553
|
}, {
|
|
4554
|
-
default:
|
|
4555
|
-
|
|
4554
|
+
default: g(() => [
|
|
4555
|
+
B(k(l.innerIconLeft), 1)
|
|
4556
4556
|
]),
|
|
4557
4557
|
_: 1
|
|
4558
4558
|
})) : c("", !0),
|
|
@@ -4575,7 +4575,7 @@ function Ti(e, t, l, a, o, i) {
|
|
|
4575
4575
|
tabindex: e.tabindex || null,
|
|
4576
4576
|
innerHTML: e.$slots.selection ? "" : i.selectionString || l.placeholder
|
|
4577
4577
|
}, null, 42, Vi),
|
|
4578
|
-
(s(!0), u(_, null,
|
|
4578
|
+
(s(!0), u(_, null, x(e.inputValue.length ? e.inputValue : [{}], (y, S) => (s(), u("input", {
|
|
4579
4579
|
key: S,
|
|
4580
4580
|
type: "hidden",
|
|
4581
4581
|
value: y.value === void 0 ? "" : y.value.toString(),
|
|
@@ -4588,24 +4588,24 @@ function Ti(e, t, l, a, o, i) {
|
|
|
4588
4588
|
for: `w-select--${e._.uid}`
|
|
4589
4589
|
}, [
|
|
4590
4590
|
p(e.$slots, "default", {}, () => [
|
|
4591
|
-
|
|
4591
|
+
B(k(l.label), 1)
|
|
4592
4592
|
])
|
|
4593
4593
|
], 10, Ri)) : c("", !0)
|
|
4594
4594
|
], 64)) : c("", !0),
|
|
4595
|
-
l.innerIconRight ? (s(),
|
|
4595
|
+
l.innerIconRight ? (s(), b(a, {
|
|
4596
4596
|
key: 3,
|
|
4597
4597
|
class: "w-select__icon w-select__icon--inner-right",
|
|
4598
4598
|
tag: "label",
|
|
4599
4599
|
onClick: t[4] || (t[4] = (y) => e.$emit("click:inner-icon-right", y))
|
|
4600
4600
|
}, {
|
|
4601
|
-
default:
|
|
4602
|
-
|
|
4601
|
+
default: g(() => [
|
|
4602
|
+
B(k(l.innerIconRight), 1)
|
|
4603
4603
|
]),
|
|
4604
4604
|
_: 1
|
|
4605
4605
|
})) : c("", !0)
|
|
4606
4606
|
], 10, Si)
|
|
4607
4607
|
]),
|
|
4608
|
-
default:
|
|
4608
|
+
default: g(() => [
|
|
4609
4609
|
I(r, {
|
|
4610
4610
|
ref: "w-list",
|
|
4611
4611
|
"model-value": e.inputValue,
|
|
@@ -4625,23 +4625,23 @@ function Ti(e, t, l, a, o, i) {
|
|
|
4625
4625
|
role: "listbox",
|
|
4626
4626
|
tabindex: "-1"
|
|
4627
4627
|
}, Z({ _: 2 }, [
|
|
4628
|
-
|
|
4628
|
+
x(l.items.length, (h) => ({
|
|
4629
4629
|
name: `item.${h}`,
|
|
4630
|
-
fn:
|
|
4631
|
-
e.$slots[`item.${h}`] && e.$slots[`item.${h}`](y, S,
|
|
4630
|
+
fn: g(({ item: y, selected: S, index: m }) => [
|
|
4631
|
+
e.$slots[`item.${h}`] && e.$slots[`item.${h}`](y, S, m) ? p(e.$slots, `item.${h}`, {
|
|
4632
4632
|
key: 0,
|
|
4633
4633
|
item: y,
|
|
4634
4634
|
selected: S,
|
|
4635
|
-
index:
|
|
4635
|
+
index: m
|
|
4636
4636
|
}, () => [
|
|
4637
|
-
|
|
4637
|
+
B(k(y[l.itemLabelKey]), 1)
|
|
4638
4638
|
]) : p(e.$slots, "item", {
|
|
4639
4639
|
key: 1,
|
|
4640
4640
|
item: y,
|
|
4641
4641
|
selected: S,
|
|
4642
|
-
index:
|
|
4642
|
+
index: m
|
|
4643
4643
|
}, () => [
|
|
4644
|
-
|
|
4644
|
+
B(k(y[l.itemLabelKey]), 1)
|
|
4645
4645
|
])
|
|
4646
4646
|
])
|
|
4647
4647
|
}))
|
|
@@ -4656,7 +4656,7 @@ function Ti(e, t, l, a, o, i) {
|
|
|
4656
4656
|
for: `w-select--${e._.uid}`
|
|
4657
4657
|
}, [
|
|
4658
4658
|
p(e.$slots, "default", {}, () => [
|
|
4659
|
-
|
|
4659
|
+
B(k(l.label), 1)
|
|
4660
4660
|
])
|
|
4661
4661
|
], 10, Li)) : c("", !0)
|
|
4662
4662
|
], 64)) : c("", !0)
|
|
@@ -4723,7 +4723,10 @@ const xi = {
|
|
|
4723
4723
|
},
|
|
4724
4724
|
selectionString() {
|
|
4725
4725
|
return this.inputValue && this.inputValue.map(
|
|
4726
|
-
(e) =>
|
|
4726
|
+
(e) => {
|
|
4727
|
+
var t;
|
|
4728
|
+
return e[this.itemValueKey] !== void 0 ? e[this.itemLabelKey] : (t = e[this.itemLabelKey]) != null ? t : e;
|
|
4729
|
+
}
|
|
4727
4730
|
).join(", ");
|
|
4728
4731
|
},
|
|
4729
4732
|
classes() {
|
|
@@ -4778,8 +4781,8 @@ const xi = {
|
|
|
4778
4781
|
if (t === void 0)
|
|
4779
4782
|
t = e.keyCode === 38 ? l.length - 1 : 0;
|
|
4780
4783
|
else {
|
|
4781
|
-
const
|
|
4782
|
-
t = (t + l.length +
|
|
4784
|
+
const o = e.keyCode === 38 ? -1 : 1;
|
|
4785
|
+
t = (t + l.length + o) % l.length;
|
|
4783
4786
|
}
|
|
4784
4787
|
this.onInput(l[t]);
|
|
4785
4788
|
}
|
|
@@ -4801,8 +4804,8 @@ const xi = {
|
|
|
4801
4804
|
e = Array.isArray(e) ? e : e !== void 0 ? [e] : [];
|
|
4802
4805
|
const t = this.selectItems.map((l) => l.value);
|
|
4803
4806
|
return e.map((l) => {
|
|
4804
|
-
let
|
|
4805
|
-
return typeof l == "object" && (
|
|
4807
|
+
let o = l;
|
|
4808
|
+
return typeof l == "object" && (o = l[this.itemValueKey] !== void 0 ? l[this.itemValueKey] : l[this.itemLabelKey] !== void 0 ? l[this.itemLabelKey] : l), this.selectItems[t.indexOf(o)];
|
|
4806
4809
|
}).filter((l) => l !== void 0);
|
|
4807
4810
|
},
|
|
4808
4811
|
openMenu() {
|
|
@@ -4827,21 +4830,21 @@ const xi = {
|
|
|
4827
4830
|
this.inputValue = this.checkSelection(this.modelValue);
|
|
4828
4831
|
}
|
|
4829
4832
|
}
|
|
4830
|
-
}, Pi = /* @__PURE__ */ v(xi, [["render", Ti]]), Oi = ["for"], zi = ["for", "innerHTML"], Ei = { class: "w-slider__track-wrap" }, Mi = ["aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-readonly"],
|
|
4833
|
+
}, Pi = /* @__PURE__ */ v(xi, [["render", Ti]]), Oi = ["for"], zi = ["for", "innerHTML"], Ei = { class: "w-slider__track-wrap" }, Mi = ["aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-readonly"], Ai = ["id", "name", "model-value", "disabled", "readonly", "aria-readonly", "tabindex"], Ni = ["for"], Wi = { key: 0 }, Ki = {
|
|
4831
4834
|
key: 0,
|
|
4832
4835
|
class: "w-slider__step-labels"
|
|
4833
4836
|
}, Di = ["onClick"], Fi = ["for"], Hi = ["for", "innerHTML"];
|
|
4834
|
-
function ji(e, t, l,
|
|
4835
|
-
return s(),
|
|
4837
|
+
function ji(e, t, l, o, n, i) {
|
|
4838
|
+
return s(), b(V(e.formRegister ? "w-form-element" : "div"), C({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: e.rangeValueScaled, disabled: e.isDisabled, readonly: e.isReadonly }, {
|
|
4836
4839
|
valid: e.valid,
|
|
4837
|
-
"onUpdate:valid": t[8] || (t[8] = (
|
|
4838
|
-
onReset: t[9] || (t[9] = (
|
|
4840
|
+
"onUpdate:valid": t[8] || (t[8] = (a) => e.valid = a),
|
|
4841
|
+
onReset: t[9] || (t[9] = (a) => {
|
|
4839
4842
|
e.rangeValuePercent = 0, i.updateRangeValueScaled();
|
|
4840
4843
|
}),
|
|
4841
4844
|
wrap: e.formRegister || null,
|
|
4842
4845
|
class: i.wrapperClasses
|
|
4843
4846
|
}), {
|
|
4844
|
-
default:
|
|
4847
|
+
default: g(() => [
|
|
4845
4848
|
e.$slots["label-left"] ? (s(), u("label", {
|
|
4846
4849
|
key: 0,
|
|
4847
4850
|
class: f(["w-slider__label w-slider__label--left w-form-el-shakable", e.labelClasses]),
|
|
@@ -4858,8 +4861,8 @@ function ji(e, t, l, a, o, i) {
|
|
|
4858
4861
|
w("div", {
|
|
4859
4862
|
class: f(["w-slider__track", i.trackClasses]),
|
|
4860
4863
|
ref: "track",
|
|
4861
|
-
onMousedown: t[4] || (t[4] = (...
|
|
4862
|
-
onTouchstart: t[5] || (t[5] = (...
|
|
4864
|
+
onMousedown: t[4] || (t[4] = (...a) => i.onTrackMouseDown && i.onTrackMouseDown(...a)),
|
|
4865
|
+
onTouchstart: t[5] || (t[5] = (...a) => i.onTrackMouseDown && i.onTrackMouseDown(...a)),
|
|
4863
4866
|
role: "slider",
|
|
4864
4867
|
"aria-label": "Slider",
|
|
4865
4868
|
"aria-valuemin": i.minVal,
|
|
@@ -4887,46 +4890,46 @@ function ji(e, t, l, a, o, i) {
|
|
|
4887
4890
|
"aria-readonly": e.isReadonly ? "true" : "false",
|
|
4888
4891
|
tabindex: e.isDisabled || e.isReadonly ? -1 : null,
|
|
4889
4892
|
onKeydown: [
|
|
4890
|
-
t[0] || (t[0] = M((
|
|
4891
|
-
t[1] || (t[1] = M((
|
|
4893
|
+
t[0] || (t[0] = M((a) => i.onKeyDown(a, -1), ["left"])),
|
|
4894
|
+
t[1] || (t[1] = M((a) => i.onKeyDown(a, 1), ["right"]))
|
|
4892
4895
|
],
|
|
4893
|
-
onFocus: t[2] || (t[2] = (
|
|
4896
|
+
onFocus: t[2] || (t[2] = (a) => e.$emit("focus", a)),
|
|
4894
4897
|
onClick: t[3] || (t[3] = E(() => {
|
|
4895
4898
|
}, ["prevent"]))
|
|
4896
|
-
}, null, 42,
|
|
4899
|
+
}, null, 42, Ai),
|
|
4897
4900
|
l.thumbLabel ? (s(), u("label", {
|
|
4898
4901
|
key: 0,
|
|
4899
4902
|
class: f(["w-slider__thumb-label", i.thumbClasses]),
|
|
4900
4903
|
for: `button--${e._.uid}`
|
|
4901
4904
|
}, [
|
|
4902
|
-
l.thumbLabel === "droplet" ? (s(), u("div",
|
|
4905
|
+
l.thumbLabel === "droplet" ? (s(), u("div", Wi, [
|
|
4903
4906
|
p(e.$slots, "label", { value: e.rangeValueScaled }, () => [
|
|
4904
|
-
|
|
4907
|
+
B(k(~~e.rangeValueScaled), 1)
|
|
4905
4908
|
])
|
|
4906
4909
|
])) : p(e.$slots, "label", {
|
|
4907
4910
|
key: 1,
|
|
4908
4911
|
value: e.rangeValueScaled
|
|
4909
4912
|
}, () => [
|
|
4910
|
-
|
|
4913
|
+
B(k(~~e.rangeValueScaled), 1)
|
|
4911
4914
|
])
|
|
4912
|
-
], 10,
|
|
4915
|
+
], 10, Ni)) : c("", !0)
|
|
4913
4916
|
], 4)
|
|
4914
4917
|
], 42, Mi),
|
|
4915
4918
|
l.stepLabels && l.step ? (s(), u("div", Ki, [
|
|
4916
4919
|
w("div", {
|
|
4917
4920
|
class: "w-slider__step-label",
|
|
4918
|
-
onClick: t[6] || (t[6] = (
|
|
4921
|
+
onClick: t[6] || (t[6] = (a) => i.onStepLabelClick(0))
|
|
4919
4922
|
}, k(this.minVal), 1),
|
|
4920
|
-
(s(!0), u(_, null,
|
|
4923
|
+
(s(!0), u(_, null, x(~~i.numberOfSteps, (a) => (s(), u("div", {
|
|
4921
4924
|
class: "w-slider__step-label",
|
|
4922
|
-
key:
|
|
4923
|
-
onClick: (r) => i.onStepLabelClick(
|
|
4924
|
-
style: L(`left: ${
|
|
4925
|
-
}, k(i.percentToScaled(
|
|
4925
|
+
key: a,
|
|
4926
|
+
onClick: (r) => i.onStepLabelClick(a * (100 / i.numberOfSteps)),
|
|
4927
|
+
style: L(`left: ${a * (100 / i.numberOfSteps)}%`)
|
|
4928
|
+
}, k(i.percentToScaled(a * (100 / i.numberOfSteps))), 13, Di))), 128)),
|
|
4926
4929
|
~~i.numberOfSteps !== i.numberOfSteps ? (s(), u("div", {
|
|
4927
4930
|
key: 0,
|
|
4928
4931
|
class: "w-slider__step-label",
|
|
4929
|
-
onClick: t[7] || (t[7] = (
|
|
4932
|
+
onClick: t[7] || (t[7] = (a) => i.onStepLabelClick(100)),
|
|
4930
4933
|
style: { left: "100%" }
|
|
4931
4934
|
}, k(this.maxVal), 1)) : c("", !0)
|
|
4932
4935
|
])) : c("", !0)
|
|
@@ -5082,7 +5085,7 @@ const Ui = {
|
|
|
5082
5085
|
}
|
|
5083
5086
|
}
|
|
5084
5087
|
}, qi = /* @__PURE__ */ v(Ui, [["render", ji]]), Gi = { key: 0 };
|
|
5085
|
-
function Xi(e, t, l,
|
|
5088
|
+
function Xi(e, t, l, o, n, i) {
|
|
5086
5089
|
return l.modelValue || l.modelValue === void 0 ? (s(), u("div", {
|
|
5087
5090
|
key: 0,
|
|
5088
5091
|
class: f(["w-spinner", i.classes]),
|
|
@@ -5130,7 +5133,7 @@ const Yi = {
|
|
|
5130
5133
|
}
|
|
5131
5134
|
}
|
|
5132
5135
|
}, Ji = /* @__PURE__ */ v(Yi, [["render", Xi]]);
|
|
5133
|
-
function Qi(e, t, l,
|
|
5136
|
+
function Qi(e, t, l, o, n, i) {
|
|
5134
5137
|
return s(), u("div", {
|
|
5135
5138
|
class: f(["w-steps", i.classes])
|
|
5136
5139
|
}, null, 2);
|
|
@@ -5158,23 +5161,23 @@ const Zi = {
|
|
|
5158
5161
|
key: 1,
|
|
5159
5162
|
class: "w-switch__thumb"
|
|
5160
5163
|
}, as = ["for"];
|
|
5161
|
-
function os(e, t, l,
|
|
5162
|
-
const
|
|
5163
|
-
return s(),
|
|
5164
|
+
function os(e, t, l, o, n, i) {
|
|
5165
|
+
const a = $("w-progress");
|
|
5166
|
+
return s(), b(V(e.formRegister ? "w-form-element" : "div"), C({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: n.isOn, disabled: e.isDisabled, readonly: e.isReadonly }, {
|
|
5164
5167
|
valid: e.valid,
|
|
5165
5168
|
"onUpdate:valid": t[3] || (t[3] = (r) => e.valid = r),
|
|
5166
5169
|
onReset: t[4] || (t[4] = (r) => {
|
|
5167
|
-
e.$emit("update:modelValue",
|
|
5170
|
+
e.$emit("update:modelValue", n.isOn = null), e.$emit("input", null);
|
|
5168
5171
|
}),
|
|
5169
5172
|
class: i.classes
|
|
5170
5173
|
}), {
|
|
5171
|
-
default:
|
|
5174
|
+
default: g(() => [
|
|
5172
5175
|
w("input", {
|
|
5173
5176
|
ref: "input",
|
|
5174
5177
|
id: `w-switch--${e._.uid}`,
|
|
5175
5178
|
type: "checkbox",
|
|
5176
5179
|
name: e.inputName,
|
|
5177
|
-
checked:
|
|
5180
|
+
checked: n.isOn,
|
|
5178
5181
|
disabled: e.isDisabled || e.isReadonly || null,
|
|
5179
5182
|
readonly: e.isReadonly || null,
|
|
5180
5183
|
"aria-readonly": e.isReadonly ? "true" : "false",
|
|
@@ -5182,7 +5185,7 @@ function os(e, t, l, a, o, i) {
|
|
|
5182
5185
|
tabindex: e.tabindex || null,
|
|
5183
5186
|
onChange: t[0] || (t[0] = (r) => i.onInput()),
|
|
5184
5187
|
onFocus: t[1] || (t[1] = (r) => e.$emit("focus", r)),
|
|
5185
|
-
"aria-checked":
|
|
5188
|
+
"aria-checked": n.isOn || "false",
|
|
5186
5189
|
role: "switch"
|
|
5187
5190
|
}, null, 40, ts),
|
|
5188
5191
|
i.hasLabel && l.labelOnLeft ? (s(), u(_, { key: 0 }, [
|
|
@@ -5192,21 +5195,21 @@ function os(e, t, l, a, o, i) {
|
|
|
5192
5195
|
for: `w-switch--${e._.uid}`
|
|
5193
5196
|
}, [
|
|
5194
5197
|
p(e.$slots, "default", {}, () => [
|
|
5195
|
-
|
|
5198
|
+
B(k(l.label), 1)
|
|
5196
5199
|
])
|
|
5197
5200
|
], 10, ls)) : c("", !0)
|
|
5198
5201
|
], 64)) : c("", !0),
|
|
5199
|
-
w("div",
|
|
5202
|
+
w("div", C({
|
|
5200
5203
|
class: "w-switch__input",
|
|
5201
5204
|
onClick: t[2] || (t[2] = (r) => {
|
|
5202
5205
|
e.$refs.input.focus(), e.$refs.input.click();
|
|
5203
5206
|
})
|
|
5204
|
-
},
|
|
5207
|
+
}, A(e.$attrs, !0), { class: i.inputClasses }), [
|
|
5205
5208
|
e.$slots.track ? (s(), u("div", is, [
|
|
5206
5209
|
p(e.$slots, "track")
|
|
5207
5210
|
])) : c("", !0),
|
|
5208
5211
|
e.$slots.thumb || l.loading ? (s(), u("div", ss, [
|
|
5209
|
-
l.loading ? (s(),
|
|
5212
|
+
l.loading ? (s(), b(a, C({
|
|
5210
5213
|
key: 0,
|
|
5211
5214
|
circle: "",
|
|
5212
5215
|
color: "inherit"
|
|
@@ -5220,7 +5223,7 @@ function os(e, t, l, a, o, i) {
|
|
|
5220
5223
|
for: `w-switch--${e._.uid}`
|
|
5221
5224
|
}, [
|
|
5222
5225
|
p(e.$slots, "default", {}, () => [
|
|
5223
|
-
|
|
5226
|
+
B(k(l.label), 1)
|
|
5224
5227
|
])
|
|
5225
5228
|
], 10, as)) : c("", !0)
|
|
5226
5229
|
], 64)) : c("", !0)
|
|
@@ -5294,22 +5297,22 @@ const ns = {
|
|
|
5294
5297
|
}
|
|
5295
5298
|
}
|
|
5296
5299
|
}, rs = /* @__PURE__ */ v(ns, [["render", os]]), ds = { class: "w-tabs__content" };
|
|
5297
|
-
function us(e, t, l,
|
|
5300
|
+
function us(e, t, l, o, n, i) {
|
|
5298
5301
|
return s(), u("div", ds, [
|
|
5299
5302
|
p(e.$slots, "default", { item: l.item })
|
|
5300
5303
|
]);
|
|
5301
5304
|
}
|
|
5302
5305
|
const hs = {
|
|
5303
5306
|
props: { item: Object }
|
|
5304
|
-
}, cs = /* @__PURE__ */ v(hs, [["render", us]]), ps = ["onClick", "onFocus", "tabindex", "onKeypress", "aria-selected"], fs = ["innerHTML"],
|
|
5307
|
+
}, cs = /* @__PURE__ */ v(hs, [["render", us]]), ps = ["onClick", "onFocus", "tabindex", "onKeypress", "aria-selected"], fs = ["innerHTML"], gs = {
|
|
5305
5308
|
key: 0,
|
|
5306
5309
|
class: "w-tabs__bar-extra"
|
|
5307
|
-
},
|
|
5310
|
+
}, ms = {
|
|
5308
5311
|
key: 0,
|
|
5309
5312
|
class: "w-tabs__content-wrap"
|
|
5310
5313
|
}, bs = ["innerHTML"];
|
|
5311
|
-
function ys(e, t, l,
|
|
5312
|
-
const
|
|
5314
|
+
function ys(e, t, l, o, n, i) {
|
|
5315
|
+
const a = $("tab-content");
|
|
5313
5316
|
return s(), u("div", {
|
|
5314
5317
|
class: f(["w-tabs", i.tabsClasses])
|
|
5315
5318
|
}, [
|
|
@@ -5317,7 +5320,7 @@ function ys(e, t, l, a, o, i) {
|
|
|
5317
5320
|
class: f(["w-tabs__bar", i.tabsBarClasses]),
|
|
5318
5321
|
ref: "tabs-bar"
|
|
5319
5322
|
}, [
|
|
5320
|
-
(s(!0), u(_, null,
|
|
5323
|
+
(s(!0), u(_, null, x(i.tabsItems, (r, d) => (s(), u("div", {
|
|
5321
5324
|
class: f(["w-tabs__bar-item", i.barItemClasses(r)]),
|
|
5322
5325
|
key: d,
|
|
5323
5326
|
onClick: (h) => !r._disabled && i.openTab(r),
|
|
@@ -5343,7 +5346,7 @@ function ys(e, t, l, a, o, i) {
|
|
|
5343
5346
|
}, null, 8, fs)
|
|
5344
5347
|
])
|
|
5345
5348
|
], 42, ps))), 128)),
|
|
5346
|
-
e.$slots["tabs-bar-extra"] ? (s(), u("div",
|
|
5349
|
+
e.$slots["tabs-bar-extra"] ? (s(), u("div", gs, [
|
|
5347
5350
|
p(e.$slots, "tabs-bar-extra")
|
|
5348
5351
|
])) : c("", !0),
|
|
5349
5352
|
!l.noSlider && !l.card ? (s(), u("div", {
|
|
@@ -5352,19 +5355,19 @@ function ys(e, t, l, a, o, i) {
|
|
|
5352
5355
|
style: L(i.sliderStyles)
|
|
5353
5356
|
}, null, 6)) : c("", !0)
|
|
5354
5357
|
], 2),
|
|
5355
|
-
i.tabsItems.length ? (s(), u("div",
|
|
5356
|
-
I(
|
|
5358
|
+
i.tabsItems.length ? (s(), u("div", ms, [
|
|
5359
|
+
I(P, {
|
|
5357
5360
|
name: i.transitionName,
|
|
5358
5361
|
mode: i.transitionMode
|
|
5359
5362
|
}, {
|
|
5360
|
-
default:
|
|
5361
|
-
(s(),
|
|
5362
|
-
(s(),
|
|
5363
|
+
default: g(() => [
|
|
5364
|
+
(s(), b($e, null, [
|
|
5365
|
+
(s(), b(a, {
|
|
5363
5366
|
key: i.activeTab._index,
|
|
5364
5367
|
item: i.activeTab,
|
|
5365
5368
|
class: f(l.contentClass)
|
|
5366
5369
|
}, {
|
|
5367
|
-
default:
|
|
5370
|
+
default: g(({ item: r }) => [
|
|
5368
5371
|
e.$slots[`item-content.${r._index + 1}`] ? p(e.$slots, `item-content.${r._index + 1}`, {
|
|
5369
5372
|
key: 0,
|
|
5370
5373
|
item: i.getOriginalItem(r),
|
|
@@ -5493,8 +5496,8 @@ const ws = {
|
|
|
5493
5496
|
this.activeTabEl = t && t.querySelector(".w-tabs__bar-item--active");
|
|
5494
5497
|
}
|
|
5495
5498
|
if (!this.fillBar && this.activeTabEl) {
|
|
5496
|
-
const { left: t, width: l } = this.activeTabEl.getBoundingClientRect(),
|
|
5497
|
-
this.slider.left = `${t -
|
|
5499
|
+
const { left: t, width: l } = this.activeTabEl.getBoundingClientRect(), o = this.activeTabEl.parentNode, { left: n } = o.getBoundingClientRect(), { borderLeftWidth: i } = getComputedStyle(o);
|
|
5500
|
+
this.slider.left = `${t - n - parseInt(i) + o.scrollLeft}px`, this.slider.width = `${l}px`;
|
|
5498
5501
|
} else
|
|
5499
5502
|
this.slider.left = `${this.activeTab._index * 100 / this.tabsItems.length}%`, this.slider.width = `${100 / this.tabsItems.length}%`;
|
|
5500
5503
|
},
|
|
@@ -5544,7 +5547,7 @@ const ws = {
|
|
|
5544
5547
|
}, xs = ["colspan"], Ps = ["onClick"], Os = ["data-label"], zs = ["data-label"], Es = ["innerHTML"], Ms = {
|
|
5545
5548
|
key: 2,
|
|
5546
5549
|
class: "w-table__row w-table__row--expansion"
|
|
5547
|
-
},
|
|
5550
|
+
}, As = ["colspan"], Ns = { key: 0 }, Ws = {
|
|
5548
5551
|
key: 3,
|
|
5549
5552
|
class: "w-table__extra-row"
|
|
5550
5553
|
}, Ks = {
|
|
@@ -5556,60 +5559,60 @@ const ws = {
|
|
|
5556
5559
|
}, Fs = ["colspan"], Hs = {
|
|
5557
5560
|
key: 2,
|
|
5558
5561
|
class: "w-table__row w-table__pagination-wrap"
|
|
5559
|
-
}, js = ["colspan"], Us = { class: "w-table__pagination" }, qs = { class: "
|
|
5560
|
-
function Xs(e, t, l,
|
|
5561
|
-
const
|
|
5562
|
+
}, js = ["colspan"], Us = { class: "w-table__pagination w-pagination" }, qs = { class: "pages-wrap" }, Gs = { class: "w-pagination__results" };
|
|
5563
|
+
function Xs(e, t, l, o, n, i) {
|
|
5564
|
+
const a = $("w-icon"), r = $("w-progress"), d = $("w-transition-fade"), h = $("w-transition-expand"), y = $("w-select"), S = $("w-button");
|
|
5562
5565
|
return s(), u("div", {
|
|
5563
5566
|
class: f(["w-table-wrap", i.wrapClasses])
|
|
5564
5567
|
}, [
|
|
5565
5568
|
w("table", {
|
|
5566
5569
|
class: f(["w-table", i.classes]),
|
|
5567
|
-
onMousedown: t[
|
|
5568
|
-
onMouseover: t[
|
|
5569
|
-
onMouseout: t[
|
|
5570
|
+
onMousedown: t[5] || (t[5] = (...m) => i.onMouseDown && i.onMouseDown(...m)),
|
|
5571
|
+
onMouseover: t[6] || (t[6] = (...m) => i.onMouseOver && i.onMouseOver(...m)),
|
|
5572
|
+
onMouseout: t[7] || (t[7] = (...m) => i.onMouseOut && i.onMouseOut(...m))
|
|
5570
5573
|
}, [
|
|
5571
5574
|
w("colgroup", ks, [
|
|
5572
|
-
(s(!0), u(_, null,
|
|
5573
|
-
class: "w-table__col",
|
|
5575
|
+
(s(!0), u(_, null, x(l.headers, (m, R) => (s(), u("col", {
|
|
5576
|
+
class: f(["w-table__col", i.colClasses[R]]),
|
|
5574
5577
|
key: R,
|
|
5575
|
-
width:
|
|
5576
|
-
}, null,
|
|
5578
|
+
width: m.width || null
|
|
5579
|
+
}, null, 10, _s))), 128))
|
|
5577
5580
|
], 512),
|
|
5578
5581
|
l.noHeaders ? c("", !0) : (s(), u("thead", Cs, [
|
|
5579
5582
|
w("tr", null, [
|
|
5580
|
-
(s(!0), u(_, null,
|
|
5581
|
-
class: f(["w-table__header", i.headerClasses(
|
|
5583
|
+
(s(!0), u(_, null, x(l.headers, (m, R) => (s(), u("th", {
|
|
5584
|
+
class: f(["w-table__header", i.headerClasses(m)]),
|
|
5582
5585
|
key: R,
|
|
5583
|
-
onClick: (
|
|
5586
|
+
onClick: (T) => !e.colResizing.dragging && m.sortable !== !1 && i.sortTable(m)
|
|
5584
5587
|
}, [
|
|
5585
|
-
|
|
5588
|
+
m.sortable !== !1 && m.align === "right" ? (s(), b(a, {
|
|
5586
5589
|
key: 0,
|
|
5587
|
-
class: f(["w-table__header-sort", i.headerSortClasses(
|
|
5590
|
+
class: f(["w-table__header-sort", i.headerSortClasses(m)])
|
|
5588
5591
|
}, {
|
|
5589
|
-
default:
|
|
5590
|
-
|
|
5592
|
+
default: g(() => [
|
|
5593
|
+
B("wi-arrow-down")
|
|
5591
5594
|
]),
|
|
5592
5595
|
_: 2
|
|
5593
5596
|
}, 1032, ["class"])) : c("", !0),
|
|
5594
|
-
|
|
5597
|
+
m.label ? (s(), u(_, { key: 1 }, [
|
|
5595
5598
|
e.$slots["header-label"] ? p(e.$slots, "header-label", {
|
|
5596
5599
|
key: 0,
|
|
5597
|
-
header:
|
|
5598
|
-
label:
|
|
5600
|
+
header: m,
|
|
5601
|
+
label: m.label,
|
|
5599
5602
|
index: R + 1
|
|
5600
5603
|
}, () => [
|
|
5601
|
-
|
|
5604
|
+
B(k(m.label || ""), 1)
|
|
5602
5605
|
]) : (s(), u("span", {
|
|
5603
5606
|
key: 1,
|
|
5604
|
-
innerHTML:
|
|
5607
|
+
innerHTML: m.label || ""
|
|
5605
5608
|
}, null, 8, Ss))
|
|
5606
5609
|
], 64)) : c("", !0),
|
|
5607
|
-
|
|
5610
|
+
m.sortable !== !1 && m.align !== "right" ? (s(), b(a, {
|
|
5608
5611
|
key: 2,
|
|
5609
|
-
class: f(["w-table__header-sort", i.headerSortClasses(
|
|
5612
|
+
class: f(["w-table__header-sort", i.headerSortClasses(m)])
|
|
5610
5613
|
}, {
|
|
5611
|
-
default:
|
|
5612
|
-
|
|
5614
|
+
default: g(() => [
|
|
5615
|
+
B("wi-arrow-down")
|
|
5613
5616
|
]),
|
|
5614
5617
|
_: 2
|
|
5615
5618
|
}, 1032, ["class"])) : c("", !0),
|
|
@@ -5622,7 +5625,7 @@ function Xs(e, t, l, a, o, i) {
|
|
|
5622
5625
|
], 10, Bs))), 128))
|
|
5623
5626
|
]),
|
|
5624
5627
|
I(d, null, {
|
|
5625
|
-
default:
|
|
5628
|
+
default: g(() => [
|
|
5626
5629
|
l.loading === "header" ? (s(), u("tr", $s, [
|
|
5627
5630
|
w("td", {
|
|
5628
5631
|
colspan: l.headers.length
|
|
@@ -5642,7 +5645,7 @@ function Xs(e, t, l, a, o, i) {
|
|
|
5642
5645
|
I(r, { tile: "" }),
|
|
5643
5646
|
w("div", Ls, [
|
|
5644
5647
|
p(e.$slots, "loading", {}, () => [
|
|
5645
|
-
|
|
5648
|
+
B("Loading...")
|
|
5646
5649
|
])
|
|
5647
5650
|
])
|
|
5648
5651
|
], 8, Rs)
|
|
@@ -5652,45 +5655,45 @@ function Xs(e, t, l, a, o, i) {
|
|
|
5652
5655
|
colspan: l.headers.length
|
|
5653
5656
|
}, [
|
|
5654
5657
|
p(e.$slots, "no-data", {}, () => [
|
|
5655
|
-
|
|
5658
|
+
B("No data to show.")
|
|
5656
5659
|
])
|
|
5657
5660
|
], 8, xs)
|
|
5658
5661
|
])),
|
|
5659
|
-
i.tableItems.length && l.loading !== !0 ? (s(!0), u(_, { key: 2 },
|
|
5662
|
+
i.tableItems.length && l.loading !== !0 ? (s(!0), u(_, { key: 2 }, x(i.paginatedItems, (m, R) => (s(), u(_, { key: R }, [
|
|
5660
5663
|
e.$slots.item ? p(e.$slots, "item", {
|
|
5661
5664
|
key: 0,
|
|
5662
|
-
item:
|
|
5665
|
+
item: m,
|
|
5663
5666
|
index: R + 1,
|
|
5664
|
-
select: () => i.doSelectRow(
|
|
5665
|
-
classes: { "w-table__row": !0, "w-table__row--selected": i.selectedRowsByUid[
|
|
5667
|
+
select: () => i.doSelectRow(m, R),
|
|
5668
|
+
classes: { "w-table__row": !0, "w-table__row--selected": i.selectedRowsByUid[m._uid] !== void 0, "w-table__row--expanded": i.expandedRowsByUid[m._uid] !== void 0 }
|
|
5666
5669
|
}) : (s(), u("tr", {
|
|
5667
5670
|
key: 1,
|
|
5668
|
-
class: f(["w-table__row", { "w-table__row--selected": i.selectedRowsByUid[
|
|
5669
|
-
onClick: (
|
|
5671
|
+
class: f(["w-table__row", { "w-table__row--selected": i.selectedRowsByUid[m._uid] !== void 0, "w-table__row--expanded": i.expandedRowsByUid[m._uid] !== void 0 }]),
|
|
5672
|
+
onClick: (T) => i.doSelectRow(m, R)
|
|
5670
5673
|
}, [
|
|
5671
|
-
(s(!0), u(_, null,
|
|
5672
|
-
e.$slots[`item-cell.${
|
|
5673
|
-
class: f(["w-table__cell", { [`text-${
|
|
5674
|
+
(s(!0), u(_, null, x(l.headers, (T, O) => (s(), u(_, null, [
|
|
5675
|
+
e.$slots[`item-cell.${T.key}`] || e.$slots[`item-cell.${O + 1}`] || e.$slots["item-cell"] ? (s(), u("td", {
|
|
5676
|
+
class: f(["w-table__cell", { [`text-${T.align || "left"}`]: !0, "w-table__cell--sticky": T.sticky }]),
|
|
5674
5677
|
key: `${O}-a`,
|
|
5675
|
-
"data-label":
|
|
5678
|
+
"data-label": T.label
|
|
5676
5679
|
}, [
|
|
5677
|
-
e.$slots[`item-cell.${
|
|
5680
|
+
e.$slots[`item-cell.${T.key}`] ? p(e.$slots, `item-cell.${T.key}`, {
|
|
5678
5681
|
key: 0,
|
|
5679
|
-
header:
|
|
5680
|
-
item:
|
|
5681
|
-
label:
|
|
5682
|
+
header: T,
|
|
5683
|
+
item: m,
|
|
5684
|
+
label: m[T.key] || "",
|
|
5682
5685
|
index: R + 1
|
|
5683
5686
|
}) : e.$slots[`item-cell.${O + 1}`] ? p(e.$slots, `item-cell.${O + 1}`, {
|
|
5684
5687
|
key: 1,
|
|
5685
|
-
header:
|
|
5686
|
-
item:
|
|
5687
|
-
label:
|
|
5688
|
+
header: T,
|
|
5689
|
+
item: m,
|
|
5690
|
+
label: m[T.key] || "",
|
|
5688
5691
|
index: R + 1
|
|
5689
5692
|
}) : e.$slots["item-cell"] ? p(e.$slots, "item-cell", {
|
|
5690
5693
|
key: 2,
|
|
5691
|
-
header:
|
|
5692
|
-
item:
|
|
5693
|
-
label:
|
|
5694
|
+
header: T,
|
|
5695
|
+
item: m,
|
|
5696
|
+
label: m[T.key] || "",
|
|
5694
5697
|
index: R + 1
|
|
5695
5698
|
}) : c("", !0),
|
|
5696
5699
|
O < l.headers.length - 1 && l.resizableColumns ? (s(), u("span", {
|
|
@@ -5698,12 +5701,12 @@ function Xs(e, t, l, a, o, i) {
|
|
|
5698
5701
|
class: f(["w-table__col-resizer", { "w-table__col-resizer--hover": e.colResizing.hover === O, "w-table__col-resizer--active": e.colResizing.columnIndex === O }])
|
|
5699
5702
|
}, null, 2)) : c("", !0)
|
|
5700
5703
|
], 10, Os)) : (s(), u("td", {
|
|
5701
|
-
class: f(["w-table__cell", { [`text-${
|
|
5704
|
+
class: f(["w-table__cell", { [`text-${T.align || "left"}`]: !0, "w-table__cell--sticky": T.sticky }]),
|
|
5702
5705
|
key: `${O}-b`,
|
|
5703
|
-
"data-label":
|
|
5706
|
+
"data-label": T.label
|
|
5704
5707
|
}, [
|
|
5705
5708
|
w("div", {
|
|
5706
|
-
innerHTML:
|
|
5709
|
+
innerHTML: m[T.key] || ""
|
|
5707
5710
|
}, null, 8, Es),
|
|
5708
5711
|
O < l.headers.length - 1 && l.resizableColumns ? (s(), u("span", {
|
|
5709
5712
|
key: 0,
|
|
@@ -5712,16 +5715,16 @@ function Xs(e, t, l, a, o, i) {
|
|
|
5712
5715
|
], 10, zs))
|
|
5713
5716
|
], 64))), 256))
|
|
5714
5717
|
], 10, Ps)),
|
|
5715
|
-
i.expandedRowsByUid[
|
|
5718
|
+
i.expandedRowsByUid[m._uid] ? (s(), u("tr", Ms, [
|
|
5716
5719
|
w("td", {
|
|
5717
5720
|
class: "w-table__cell",
|
|
5718
5721
|
colspan: l.headers.length
|
|
5719
5722
|
}, [
|
|
5720
5723
|
I(h, { y: "" }, {
|
|
5721
|
-
default:
|
|
5722
|
-
i.expandedRowsByUid[
|
|
5724
|
+
default: g(() => [
|
|
5725
|
+
i.expandedRowsByUid[m._uid] ? (s(), u("div", Ns, [
|
|
5723
5726
|
p(e.$slots, "row-expansion", {
|
|
5724
|
-
item:
|
|
5727
|
+
item: m,
|
|
5725
5728
|
index: R + 1
|
|
5726
5729
|
})
|
|
5727
5730
|
])) : c("", !0),
|
|
@@ -5732,10 +5735,10 @@ function Xs(e, t, l, a, o, i) {
|
|
|
5732
5735
|
]),
|
|
5733
5736
|
_: 2
|
|
5734
5737
|
}, 1024)
|
|
5735
|
-
], 8,
|
|
5738
|
+
], 8, As)
|
|
5736
5739
|
])) : c("", !0)
|
|
5737
5740
|
], 64))), 128)) : c("", !0),
|
|
5738
|
-
e.$slots["extra-row"] ? (s(), u("div",
|
|
5741
|
+
e.$slots["extra-row"] ? (s(), u("div", Ws, [
|
|
5739
5742
|
p(e.$slots, "extra-row")
|
|
5740
5743
|
])) : c("", !0)
|
|
5741
5744
|
]),
|
|
@@ -5754,54 +5757,52 @@ function Xs(e, t, l, a, o, i) {
|
|
|
5754
5757
|
colspan: l.headers.length
|
|
5755
5758
|
}, [
|
|
5756
5759
|
w("div", Us, [
|
|
5757
|
-
C(k(e.paginationConfig), 1),
|
|
5758
5760
|
p(e.$slots, "pagination", {
|
|
5759
|
-
range: `${e.paginationConfig.start}-${e.paginationConfig.end}
|
|
5761
|
+
range: `${e.paginationConfig.start}-${e.paginationConfig.end}`,
|
|
5760
5762
|
total: e.paginationConfig.total
|
|
5761
5763
|
}, () => [
|
|
5762
|
-
e.paginationConfig.itemsPerPageOptions ? (s(),
|
|
5764
|
+
e.paginationConfig.itemsPerPageOptions ? (s(), b(y, {
|
|
5763
5765
|
key: 0,
|
|
5764
|
-
class: "
|
|
5766
|
+
class: "w-pagination__items-per-page",
|
|
5765
5767
|
modelValue: e.paginationConfig.itemsPerPage,
|
|
5766
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
5767
|
-
onInput: i.updatePaginationConfig,
|
|
5768
|
+
"onUpdate:modelValue": t[1] || (t[1] = (m) => e.paginationConfig.itemsPerPage = m),
|
|
5769
|
+
onInput: t[2] || (t[2] = (m) => i.updatePaginationConfig({ itemsPerPage: e.paginationConfig.itemsPerPage })),
|
|
5768
5770
|
items: e.paginationConfig.itemsPerPageOptions,
|
|
5769
5771
|
"label-position": "left",
|
|
5770
5772
|
label: "Items per page",
|
|
5771
5773
|
"label-color": "inherit"
|
|
5772
|
-
}, null, 8, ["modelValue", "
|
|
5774
|
+
}, null, 8, ["modelValue", "items"])) : c("", !0),
|
|
5773
5775
|
w("div", qs, [
|
|
5774
5776
|
I(S, {
|
|
5775
|
-
class: "
|
|
5776
|
-
onClick: t[
|
|
5777
|
+
class: "w-pagination__arrow w-pagination__arrow--prev",
|
|
5778
|
+
onClick: t[3] || (t[3] = (m) => i.goToPage("-1")),
|
|
5777
5779
|
disabled: e.paginationConfig.page <= 1,
|
|
5778
5780
|
icon: "wi-chevron-left",
|
|
5779
5781
|
text: "",
|
|
5780
5782
|
lg: ""
|
|
5781
5783
|
}, null, 8, ["disabled"]),
|
|
5782
|
-
(s(!0), u(_, null,
|
|
5783
|
-
class: "
|
|
5784
|
-
key:
|
|
5785
|
-
onClick: (R) => i.goToPage(
|
|
5784
|
+
(s(!0), u(_, null, x(e.paginationConfig.pagesCount, (m) => (s(), b(S, {
|
|
5785
|
+
class: f(["w-pagination__page", { "w-pagination__page--active": m === e.paginationConfig.page }]),
|
|
5786
|
+
key: m,
|
|
5787
|
+
onClick: (R) => m !== e.paginationConfig.page && i.goToPage(m),
|
|
5786
5788
|
round: "",
|
|
5787
|
-
text: "",
|
|
5788
5789
|
lg: ""
|
|
5789
5790
|
}, {
|
|
5790
|
-
default:
|
|
5791
|
-
|
|
5791
|
+
default: g(() => [
|
|
5792
|
+
B(k(m), 1)
|
|
5792
5793
|
]),
|
|
5793
5794
|
_: 2
|
|
5794
|
-
}, 1032, ["onClick"]))), 128)),
|
|
5795
|
+
}, 1032, ["onClick", "class"]))), 128)),
|
|
5795
5796
|
I(S, {
|
|
5796
|
-
class: "
|
|
5797
|
-
onClick: t[
|
|
5797
|
+
class: "w-pagination__arrow w-pagination__arrow--next",
|
|
5798
|
+
onClick: t[4] || (t[4] = (m) => i.goToPage("+1")),
|
|
5798
5799
|
disabled: e.paginationConfig.page >= e.paginationConfig.pagesCount,
|
|
5799
5800
|
icon: "wi-chevron-right",
|
|
5800
5801
|
text: "",
|
|
5801
5802
|
lg: ""
|
|
5802
5803
|
}, null, 8, ["disabled"])
|
|
5803
5804
|
]),
|
|
5804
|
-
w("span", Gs, k(e.paginationConfig.start) + "-" + k(e.paginationConfig.end) + " of " + k(e.paginationConfig.total), 1)
|
|
5805
|
+
w("span", Gs, k(e.paginationConfig.start) + "-" + k(e.paginationConfig.end || e.paginationConfig.total) + " of " + k(e.paginationConfig.total), 1)
|
|
5805
5806
|
])
|
|
5806
5807
|
])
|
|
5807
5808
|
], 8, js)
|
|
@@ -5821,6 +5822,9 @@ const ce = 15, Ys = {
|
|
|
5821
5822
|
fixedFooter: { type: Boolean },
|
|
5822
5823
|
loading: { type: [Boolean, String] },
|
|
5823
5824
|
sort: { type: [String, Array] },
|
|
5825
|
+
sortFunction: { type: Function },
|
|
5826
|
+
filter: { type: Function },
|
|
5827
|
+
fetch: { type: Function },
|
|
5824
5828
|
expandableRows: {
|
|
5825
5829
|
validator: (e) => ([void 0, !0, !1, 1, "1", ""].includes(e) || le(
|
|
5826
5830
|
`Wrong value for the w-table's \`expandableRows\` prop. Given: "${e}", expected one of: [undefined, true, false, 1, '1', ''].`
|
|
@@ -5835,8 +5839,6 @@ const ce = 15, Ys = {
|
|
|
5835
5839
|
selectedRows: { type: Array },
|
|
5836
5840
|
forceSelection: { type: Boolean },
|
|
5837
5841
|
uidKey: { type: String, default: "id" },
|
|
5838
|
-
filter: { type: Function },
|
|
5839
|
-
sortFunction: { type: Function },
|
|
5840
5842
|
mobileBreakpoint: { type: Number, default: 0 },
|
|
5841
5843
|
resizableColumns: { type: Boolean },
|
|
5842
5844
|
pagination: {
|
|
@@ -5882,16 +5884,22 @@ const ce = 15, Ys = {
|
|
|
5882
5884
|
}),
|
|
5883
5885
|
computed: {
|
|
5884
5886
|
tableItems() {
|
|
5885
|
-
return this.items.map((e, t) =>
|
|
5887
|
+
return this.items.map((e, t) => {
|
|
5888
|
+
var l;
|
|
5889
|
+
return e._uid = (l = e[this.uidKey]) != null ? l : t, e;
|
|
5890
|
+
});
|
|
5886
5891
|
},
|
|
5887
5892
|
filteredItems() {
|
|
5888
5893
|
return typeof this.filter == "function" ? this.tableItems.filter(this.filter) : this.tableItems;
|
|
5889
5894
|
},
|
|
5890
5895
|
sortedItems() {
|
|
5891
|
-
if (!this.activeSorting.length || this.sortFunction)
|
|
5896
|
+
if (!this.activeSorting.length || this.sortFunction || this.fetch)
|
|
5892
5897
|
return this.filteredItems;
|
|
5893
5898
|
const e = this.activeSorting[0].replace(/^[+-]/, ""), t = this.activeSorting[0][0] === "-";
|
|
5894
|
-
return [...this.filteredItems].sort((l,
|
|
5899
|
+
return [...this.filteredItems].sort((l, o) => (l = l[e], o = o[e], !isNaN(l) && !isNaN(o) && (l = parseFloat(l), o = parseFloat(o)), (l > o ? 1 : -1) * (t ? -1 : 1)));
|
|
5900
|
+
},
|
|
5901
|
+
paginatedItems() {
|
|
5902
|
+
return typeof this.fetch == "function" ? this.sortedItems : this.sortedItems.slice(this.paginationConfig.start - 1, this.paginationConfig.end);
|
|
5895
5903
|
},
|
|
5896
5904
|
activeSortingKeys() {
|
|
5897
5905
|
return this.activeSorting.reduce((e, t) => (e[t.replace(/^[+-]/, "")] = t[0], e), {});
|
|
@@ -5901,8 +5909,13 @@ const ce = 15, Ys = {
|
|
|
5901
5909
|
"w-table-wrap--loading": this.loading
|
|
5902
5910
|
};
|
|
5903
5911
|
},
|
|
5912
|
+
colClasses() {
|
|
5913
|
+
return this.headers.map((e) => ({ "w-table__col--highlighted": this.activeSortingKeys[e.key] })) || [];
|
|
5914
|
+
},
|
|
5904
5915
|
classes() {
|
|
5905
5916
|
return {
|
|
5917
|
+
"w-table--loading": this.loading,
|
|
5918
|
+
"w-table--loading-in-header": this.loading === "header",
|
|
5906
5919
|
"w-table--fixed-layout": this.fixedLayout || this.resizableColumns || this.hasStickyColumn,
|
|
5907
5920
|
"w-table--mobile": this.isMobile || null,
|
|
5908
5921
|
"w-table--resizable-cols": this.resizableColumns || null,
|
|
@@ -5925,9 +5938,6 @@ const ce = 15, Ys = {
|
|
|
5925
5938
|
},
|
|
5926
5939
|
expandedRowsByUid() {
|
|
5927
5940
|
return this.expandedRowsInternal.reduce((e, t) => (e[t] = !0) && e, {});
|
|
5928
|
-
},
|
|
5929
|
-
paginatedItems() {
|
|
5930
|
-
return this.sortedItems.slice(this.paginationConfig.start, this.paginationConfig.end);
|
|
5931
5941
|
}
|
|
5932
5942
|
},
|
|
5933
5943
|
methods: {
|
|
@@ -5949,31 +5959,31 @@ const ce = 15, Ys = {
|
|
|
5949
5959
|
},
|
|
5950
5960
|
async sortTable(e) {
|
|
5951
5961
|
const t = this.activeSortingKeys[e.key];
|
|
5952
|
-
t && this.activeSortingKeys[e.key] === "-" ? this.activeSorting = [] : this.activeSorting[0] = (t ? "-" : "+") + e.key, this.$emit("update:sort", this.activeSorting), typeof this.sortFunction == "function"
|
|
5962
|
+
t && this.activeSortingKeys[e.key] === "-" ? this.activeSorting = [] : this.activeSorting[0] = (t ? "-" : "+") + e.key, this.$emit("update:sort", this.activeSorting), typeof this.sortFunction == "function" ? await this.sortFunction(this.activeSorting) : typeof this.fetch == "function" && await this.callApiFetch();
|
|
5953
5963
|
},
|
|
5954
5964
|
doSelectRow(e, t) {
|
|
5955
|
-
const l = this.expandableRows === "" ? !0 : this.expandableRows,
|
|
5965
|
+
const l = this.expandableRows === "" ? !0 : this.expandableRows, o = this.selectableRows === "" ? !0 : this.selectableRows;
|
|
5956
5966
|
if (l) {
|
|
5957
|
-
const
|
|
5958
|
-
|
|
5967
|
+
const n = this.expandedRowsByUid[e._uid] === void 0;
|
|
5968
|
+
n ? this.expandableRows.toString() === "1" ? this.expandedRowsInternal = [e._uid] : this.expandedRowsInternal.push(e._uid) : this.expandedRowsInternal = this.expandedRowsInternal.filter((i) => i !== e._uid), this.$emit(
|
|
5959
5969
|
"row-expand",
|
|
5960
5970
|
{
|
|
5961
5971
|
item: e,
|
|
5962
5972
|
index: t,
|
|
5963
|
-
expanded:
|
|
5973
|
+
expanded: n,
|
|
5964
5974
|
expandedRows: this.expandedRowsInternal.map((i) => this.filteredItems[i])
|
|
5965
5975
|
}
|
|
5966
5976
|
), this.$emit("update:expanded-rows", this.expandedRowsInternal);
|
|
5967
|
-
} else if (
|
|
5968
|
-
let
|
|
5977
|
+
} else if (o) {
|
|
5978
|
+
let n = !1;
|
|
5969
5979
|
const i = this.selectedRowsByUid[e._uid] === void 0;
|
|
5970
|
-
i ? (this.selectableRows.toString() === "1" ? this.selectedRowsInternal = [e._uid] : this.selectedRowsInternal.push(e._uid),
|
|
5980
|
+
i ? (this.selectableRows.toString() === "1" ? this.selectedRowsInternal = [e._uid] : this.selectedRowsInternal.push(e._uid), n = !0) : (!this.forceSelection || this.selectedRowsInternal.length > 1) && (this.selectedRowsInternal = this.selectedRowsInternal.filter((a) => a !== e._uid), n = !0), n && (this.$emit(
|
|
5971
5981
|
"row-select",
|
|
5972
5982
|
{
|
|
5973
5983
|
item: e,
|
|
5974
5984
|
index: t,
|
|
5975
5985
|
selected: i,
|
|
5976
|
-
selectedRows: this.selectedRowsInternal.map((
|
|
5986
|
+
selectedRows: this.selectedRowsInternal.map((a) => this.filteredItems[a])
|
|
5977
5987
|
}
|
|
5978
5988
|
), this.$emit("update:selected-rows", this.selectedRowsInternal));
|
|
5979
5989
|
}
|
|
@@ -5989,16 +5999,16 @@ const ce = 15, Ys = {
|
|
|
5989
5999
|
e.classList.contains("w-table__col-resizer") && (this.colResizing.hover = !1);
|
|
5990
6000
|
},
|
|
5991
6001
|
onResizerMouseMove(e) {
|
|
5992
|
-
const { startCursorX: t, columnEl: l, nextColumnEl:
|
|
6002
|
+
const { startCursorX: t, columnEl: l, nextColumnEl: o, colWidth: n, nextColWidth: i } = this.colResizing;
|
|
5993
6003
|
this.colResizing.dragging = !0;
|
|
5994
|
-
const
|
|
5995
|
-
l.style.width =
|
|
5996
|
-
const y =
|
|
6004
|
+
const a = e.pageX - t, r = n + i, d = n + a, h = i - a;
|
|
6005
|
+
l.style.width = n + a + "px", o.style.width = i - a + "px";
|
|
6006
|
+
const y = a < 0 && l.offsetWidth > d || l.offsetWidth <= ce, S = a > 0 && o.offsetWidth > h;
|
|
5997
6007
|
if (y) {
|
|
5998
|
-
const
|
|
5999
|
-
l.style.width =
|
|
6008
|
+
const m = Math.max(l.offsetWidth, ce);
|
|
6009
|
+
l.style.width = m + "px", o.style.width = r - m + "px";
|
|
6000
6010
|
} else
|
|
6001
|
-
S && (l.style.width = r -
|
|
6011
|
+
S && (l.style.width = r - o.offsetWidth + "px", o.style.width = o.offsetWidth + "px");
|
|
6002
6012
|
},
|
|
6003
6013
|
onResizerMouseUp() {
|
|
6004
6014
|
document.removeEventListener("mousemove", this.onResizerMouseMove), document.removeEventListener("mouseup", this.onResizerMouseUp), setTimeout(() => {
|
|
@@ -6009,33 +6019,48 @@ const ce = 15, Ys = {
|
|
|
6009
6019
|
this.$emit("column-resize", { index: this.colResizing.columnIndex, widths: e }), this.colResizing.dragging = !1, this.colResizing.columnIndex = null, this.colResizing.startCursorX = null, this.colResizing.columnEl = null, this.colResizing.nextColumnEl = null, this.colResizing.colWidth = null, this.colResizing.nextColWidth = null;
|
|
6010
6020
|
}, 0);
|
|
6011
6021
|
},
|
|
6012
|
-
|
|
6013
|
-
var
|
|
6014
|
-
const e = ((
|
|
6015
|
-
|
|
6022
|
+
initPagination() {
|
|
6023
|
+
var o, n, i;
|
|
6024
|
+
const e = (n = (o = this.pagination) == null ? void 0 : o.itemsPerPage) != null ? n : 20, t = ((i = this.pagination) == null ? void 0 : i.itemsPerPageOptions) || [20, 100, { label: "All", value: 0 }];
|
|
6025
|
+
t.find((a) => {
|
|
6026
|
+
var r;
|
|
6027
|
+
return ((r = a == null ? void 0 : a.value) != null ? r : a) === +e;
|
|
6028
|
+
}) || t.push(e), this.paginationConfig.itemsPerPageOptions = t.map((a) => {
|
|
6029
|
+
var r;
|
|
6030
|
+
return {
|
|
6031
|
+
label: ["string", "number"].includes(typeof a) ? a.toString() : a.label || a.value,
|
|
6032
|
+
value: ["string", "number"].includes(typeof a) ? ~~a : (r = a.value) != null ? r : a.label
|
|
6033
|
+
};
|
|
6034
|
+
}), this.paginationConfig.itemsPerPageOptions.sort((a, r) => a.value < r.value ? -1 : 1);
|
|
6035
|
+
const l = this.paginationConfig.itemsPerPageOptions.shift();
|
|
6036
|
+
this.paginationConfig.itemsPerPageOptions.push(l), this.updatePaginationConfig({
|
|
6016
6037
|
itemsPerPage: e,
|
|
6017
|
-
|
|
6018
|
-
|
|
6019
|
-
|
|
6020
|
-
|
|
6021
|
-
|
|
6022
|
-
|
|
6023
|
-
}),
|
|
6024
|
-
page: o,
|
|
6025
|
-
start: ((h = this.pagination) == null ? void 0 : h.start) || 1,
|
|
6026
|
-
end: l >= a * o ? a * o : l % (a * o),
|
|
6027
|
-
total: l,
|
|
6028
|
-
pagesCount: Math.ceil(l / a)
|
|
6029
|
-
};
|
|
6038
|
+
page: this.pagination.page || 1,
|
|
6039
|
+
total: this.pagination.total || this.items.length
|
|
6040
|
+
});
|
|
6041
|
+
},
|
|
6042
|
+
updatePaginationConfig({ itemsPerPage: e, page: t, total: l }) {
|
|
6043
|
+
l && (this.paginationConfig.total = l), e !== void 0 && (this.paginationConfig.itemsPerPage = e, e = e || this.paginationConfig.total, this.paginationConfig.page = 1, { page: t } = this.paginationConfig, l = this.paginationConfig.total, this.paginationConfig.start = 1, this.paginationConfig.end = l >= e * t ? e * t : l % (e * t), this.paginationConfig.pagesCount = Math.ceil(l / e)), t && this.goToPage(t);
|
|
6030
6044
|
},
|
|
6031
|
-
goToPage(e) {
|
|
6045
|
+
async goToPage(e) {
|
|
6032
6046
|
["-1", "+1"].includes(e) ? this.paginationConfig.page += +e : this.paginationConfig.page = e;
|
|
6033
|
-
const { itemsPerPage: t } = this.paginationConfig;
|
|
6034
|
-
this.paginationConfig.page = Math.max(1, this.paginationConfig.page), this.paginationConfig.start = t * (this.paginationConfig.page - 1) + 1, this.paginationConfig.end = this.paginationConfig.start - 1 + t;
|
|
6047
|
+
const { itemsPerPage: t, total: l } = this.paginationConfig;
|
|
6048
|
+
this.paginationConfig.page = Math.max(1, this.paginationConfig.page), this.paginationConfig.start = t * (this.paginationConfig.page - 1) + 1, this.paginationConfig.end = this.paginationConfig.start - 1 + (t || l), typeof this.fetch == "function" && await this.callApiFetch();
|
|
6049
|
+
},
|
|
6050
|
+
async callApiFetch() {
|
|
6051
|
+
const { page: e, start: t, end: l, total: o, itemsPerPage: n } = this.paginationConfig;
|
|
6052
|
+
return await this.fetch({
|
|
6053
|
+
page: e,
|
|
6054
|
+
start: t,
|
|
6055
|
+
end: l || o,
|
|
6056
|
+
total: o,
|
|
6057
|
+
itemsPerPage: n || o,
|
|
6058
|
+
sorting: this.activeSorting
|
|
6059
|
+
});
|
|
6035
6060
|
}
|
|
6036
6061
|
},
|
|
6037
6062
|
created() {
|
|
6038
|
-
this.sort ? this.activeSorting = Array.isArray(this.sort) ? this.sort : [this.sort] : this.activeSorting = [], (this.expandedRows || []).length && (this.expandedRowsInternal = this.expandedRows), (this.selectedRows || []).length && (this.selectedRowsInternal = this.selectedRows), this.pagination && this.
|
|
6063
|
+
this.sort ? this.activeSorting = Array.isArray(this.sort) ? this.sort : [this.sort] : this.activeSorting = [], (this.expandedRows || []).length && (this.expandedRowsInternal = this.expandedRows), (this.selectedRows || []).length && (this.selectedRowsInternal = this.selectedRows), this.pagination && this.initPagination();
|
|
6039
6064
|
},
|
|
6040
6065
|
watch: {
|
|
6041
6066
|
sort(e) {
|
|
@@ -6053,20 +6078,23 @@ const ce = 15, Ys = {
|
|
|
6053
6078
|
selectedRows(e) {
|
|
6054
6079
|
this.selectedRowsInternal = Array.isArray(e) && e.length ? this.selectedRows : [];
|
|
6055
6080
|
},
|
|
6056
|
-
pagination
|
|
6057
|
-
|
|
6058
|
-
|
|
6059
|
-
|
|
6060
|
-
|
|
6081
|
+
"pagination.page"(e) {
|
|
6082
|
+
this.updatePaginationConfig({ page: e });
|
|
6083
|
+
},
|
|
6084
|
+
"pagination.itemsPerPage"(e) {
|
|
6085
|
+
this.updatePaginationConfig({ itemsPerPage: e });
|
|
6086
|
+
},
|
|
6087
|
+
"pagination.total"(e) {
|
|
6088
|
+
this.updatePaginationConfig({ total: e });
|
|
6061
6089
|
}
|
|
6062
6090
|
}
|
|
6063
6091
|
}, Js = /* @__PURE__ */ v(Ys, [["render", Xs]]), Qs = ["role", "aria-pressed", "tabindex"];
|
|
6064
|
-
function Zs(e, t, l,
|
|
6065
|
-
return s(), u("span",
|
|
6066
|
-
onClick: t[1] || (t[1] = (
|
|
6092
|
+
function Zs(e, t, l, o, n, i) {
|
|
6093
|
+
return s(), u("span", C({ class: "w-tag" }, A(e.$attrs, !0), {
|
|
6094
|
+
onClick: t[1] || (t[1] = (a) => {
|
|
6067
6095
|
e.$emit("update:modelValue", !l.modelValue), e.$emit("input", !l.modelValue);
|
|
6068
6096
|
}),
|
|
6069
|
-
onKeypress: t[2] || (t[2] = M((
|
|
6097
|
+
onKeypress: t[2] || (t[2] = M((a) => {
|
|
6070
6098
|
e.$emit("update:modelValue", !l.modelValue), e.$emit("input", !l.modelValue);
|
|
6071
6099
|
}, ["enter"])),
|
|
6072
6100
|
class: i.classes,
|
|
@@ -6079,7 +6107,7 @@ function Zs(e, t, l, a, o, i) {
|
|
|
6079
6107
|
l.closable && l.modelValue ? (s(), u("i", {
|
|
6080
6108
|
key: 0,
|
|
6081
6109
|
class: "w-icon w-tag__closable wi-cross",
|
|
6082
|
-
onClick: t[0] || (t[0] = E((
|
|
6110
|
+
onClick: t[0] || (t[0] = E((a) => {
|
|
6083
6111
|
e.$emit("update:modelValue", !1), e.$emit("input", !1);
|
|
6084
6112
|
}, ["stop"])),
|
|
6085
6113
|
role: "icon",
|
|
@@ -6137,18 +6165,18 @@ const ea = {
|
|
|
6137
6165
|
}
|
|
6138
6166
|
}
|
|
6139
6167
|
}, ta = /* @__PURE__ */ v(ea, [["render", Zs]]), la = ["for"], ia = ["id", "name", "placeholder", "rows", "cols", "readonly", "aria-readonly", "disabled", "required", "tabindex"], sa = ["for"], aa = ["for"];
|
|
6140
|
-
function oa(e, t, l,
|
|
6141
|
-
const
|
|
6142
|
-
return s(),
|
|
6168
|
+
function oa(e, t, l, o, n, i) {
|
|
6169
|
+
const a = $("w-icon");
|
|
6170
|
+
return s(), b(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 }, {
|
|
6143
6171
|
valid: e.valid,
|
|
6144
6172
|
"onUpdate:valid": t[6] || (t[6] = (r) => e.valid = r),
|
|
6145
6173
|
wrap: i.hasLabel && l.labelPosition !== "inside",
|
|
6146
6174
|
onReset: t[7] || (t[7] = (r) => {
|
|
6147
|
-
e.$emit("update:modelValue",
|
|
6175
|
+
e.$emit("update:modelValue", n.inputValue = ""), e.$emit("input", "");
|
|
6148
6176
|
}),
|
|
6149
6177
|
class: i.classes
|
|
6150
6178
|
}), {
|
|
6151
|
-
default:
|
|
6179
|
+
default: g(() => [
|
|
6152
6180
|
l.labelPosition === "left" ? (s(), u(_, { key: 0 }, [
|
|
6153
6181
|
e.$slots.default || l.label ? (s(), u("label", {
|
|
6154
6182
|
key: 0,
|
|
@@ -6156,30 +6184,30 @@ function oa(e, t, l, a, o, i) {
|
|
|
6156
6184
|
for: `w-textarea--${e._.uid}`
|
|
6157
6185
|
}, [
|
|
6158
6186
|
p(e.$slots, "default", {}, () => [
|
|
6159
|
-
|
|
6187
|
+
B(k(l.label), 1)
|
|
6160
6188
|
])
|
|
6161
6189
|
], 10, la)) : c("", !0)
|
|
6162
6190
|
], 64)) : c("", !0),
|
|
6163
6191
|
w("div", {
|
|
6164
6192
|
class: f(["w-textarea__textarea-wrap", i.inputWrapClasses])
|
|
6165
6193
|
}, [
|
|
6166
|
-
l.innerIconLeft ? (s(),
|
|
6194
|
+
l.innerIconLeft ? (s(), b(a, {
|
|
6167
6195
|
key: 0,
|
|
6168
6196
|
class: "w-textarea__icon w-textarea__icon--inner-left",
|
|
6169
6197
|
tag: "label",
|
|
6170
6198
|
for: `w-textarea--${e._.uid}`,
|
|
6171
6199
|
onClick: t[0] || (t[0] = (r) => e.$emit("click:inner-icon-left", r))
|
|
6172
6200
|
}, {
|
|
6173
|
-
default:
|
|
6174
|
-
|
|
6201
|
+
default: g(() => [
|
|
6202
|
+
B(k(l.innerIconLeft), 1)
|
|
6175
6203
|
]),
|
|
6176
6204
|
_: 1
|
|
6177
6205
|
}, 8, ["for"])) : c("", !0),
|
|
6178
|
-
D(w("textarea",
|
|
6206
|
+
D(w("textarea", C({
|
|
6179
6207
|
class: "w-textarea__textarea",
|
|
6180
6208
|
ref: "textarea",
|
|
6181
|
-
"onUpdate:modelValue": t[1] || (t[1] = (r) =>
|
|
6182
|
-
},
|
|
6209
|
+
"onUpdate:modelValue": t[1] || (t[1] = (r) => n.inputValue = r)
|
|
6210
|
+
}, A(i.listeners, !0), {
|
|
6183
6211
|
onInput: t[2] || (t[2] = (...r) => i.onInput && i.onInput(...r)),
|
|
6184
6212
|
onFocus: t[3] || (t[3] = (...r) => i.onFocus && i.onFocus(...r)),
|
|
6185
6213
|
onBlur: t[4] || (t[4] = (...r) => i.onBlur && i.onBlur(...r)),
|
|
@@ -6194,7 +6222,7 @@ function oa(e, t, l, a, o, i) {
|
|
|
6194
6222
|
required: e.required || null,
|
|
6195
6223
|
tabindex: e.tabindex || null
|
|
6196
6224
|
}), null, 16, ia), [
|
|
6197
|
-
[
|
|
6225
|
+
[me, n.inputValue]
|
|
6198
6226
|
]),
|
|
6199
6227
|
l.labelPosition === "inside" && i.showLabelInside ? (s(), u(_, { key: 1 }, [
|
|
6200
6228
|
e.$slots.default || l.label ? (s(), u("label", {
|
|
@@ -6203,19 +6231,19 @@ function oa(e, t, l, a, o, i) {
|
|
|
6203
6231
|
for: `w-textarea--${e._.uid}`
|
|
6204
6232
|
}, [
|
|
6205
6233
|
p(e.$slots, "default", {}, () => [
|
|
6206
|
-
|
|
6234
|
+
B(k(l.label), 1)
|
|
6207
6235
|
])
|
|
6208
6236
|
], 10, sa)) : c("", !0)
|
|
6209
6237
|
], 64)) : c("", !0),
|
|
6210
|
-
l.innerIconRight ? (s(),
|
|
6238
|
+
l.innerIconRight ? (s(), b(a, {
|
|
6211
6239
|
key: 2,
|
|
6212
6240
|
class: "w-textarea__icon w-textarea__icon--inner-right",
|
|
6213
6241
|
tag: "label",
|
|
6214
6242
|
for: `w-textarea--${e._.uid}`,
|
|
6215
6243
|
onClick: t[5] || (t[5] = (r) => e.$emit("click:inner-icon-right", r))
|
|
6216
6244
|
}, {
|
|
6217
|
-
default:
|
|
6218
|
-
|
|
6245
|
+
default: g(() => [
|
|
6246
|
+
B(k(l.innerIconRight), 1)
|
|
6219
6247
|
]),
|
|
6220
6248
|
_: 1
|
|
6221
6249
|
}, 8, ["for"])) : c("", !0)
|
|
@@ -6227,7 +6255,7 @@ function oa(e, t, l, a, o, i) {
|
|
|
6227
6255
|
for: `w-textarea--${e._.uid}`
|
|
6228
6256
|
}, [
|
|
6229
6257
|
p(e.$slots, "default", {}, () => [
|
|
6230
|
-
|
|
6258
|
+
B(k(l.label), 1)
|
|
6231
6259
|
])
|
|
6232
6260
|
], 10, aa)) : c("", !0)
|
|
6233
6261
|
], 64)) : c("", !0)
|
|
@@ -6271,8 +6299,8 @@ const na = {
|
|
|
6271
6299
|
},
|
|
6272
6300
|
computed: {
|
|
6273
6301
|
listeners() {
|
|
6274
|
-
const { input: e, focus: t, blur: l, ...
|
|
6275
|
-
return
|
|
6302
|
+
const { input: e, focus: t, blur: l, ...o } = this.$attrs;
|
|
6303
|
+
return o;
|
|
6276
6304
|
},
|
|
6277
6305
|
hasValue() {
|
|
6278
6306
|
return this.inputValue || this.inputValue === 0;
|
|
@@ -6352,38 +6380,38 @@ const na = {
|
|
|
6352
6380
|
}
|
|
6353
6381
|
}
|
|
6354
6382
|
}, ra = /* @__PURE__ */ v(na, [["render", oa]]), da = ["innerHTML"], ua = ["innerHTML"];
|
|
6355
|
-
function ha(e, t, l,
|
|
6383
|
+
function ha(e, t, l, o, n, i) {
|
|
6356
6384
|
return s(), u("ul", {
|
|
6357
6385
|
class: f(["w-timeline", i.classes])
|
|
6358
6386
|
}, [
|
|
6359
|
-
(s(!0), u(_, null,
|
|
6387
|
+
(s(!0), u(_, null, x(l.items, (a, r) => (s(), u("li", {
|
|
6360
6388
|
class: "w-timeline-item",
|
|
6361
6389
|
key: r
|
|
6362
6390
|
}, [
|
|
6363
|
-
(s(),
|
|
6364
|
-
class: f(["w-timeline-item__bullet", { [
|
|
6391
|
+
(s(), b(V(a[l.itemIconKey] || l.icon ? "w-icon" : "div"), {
|
|
6392
|
+
class: f(["w-timeline-item__bullet", { [a[l.itemColorKey] || l.color]: a[l.itemColorKey] || l.color }])
|
|
6365
6393
|
}, {
|
|
6366
|
-
default:
|
|
6367
|
-
|
|
6394
|
+
default: g(() => [
|
|
6395
|
+
B(k(a[l.itemIconKey] || l.icon), 1)
|
|
6368
6396
|
]),
|
|
6369
6397
|
_: 2
|
|
6370
6398
|
}, 1032, ["class"])),
|
|
6371
6399
|
e.$slots[`item.${r + 1}`] ? p(e.$slots, `item.${r + 1}`, {
|
|
6372
6400
|
key: 1,
|
|
6373
|
-
item:
|
|
6401
|
+
item: a,
|
|
6374
6402
|
index: r + 1
|
|
6375
6403
|
}) : p(e.$slots, "item", {
|
|
6376
6404
|
key: 0,
|
|
6377
|
-
item:
|
|
6405
|
+
item: a,
|
|
6378
6406
|
index: r + 1
|
|
6379
6407
|
}, () => [
|
|
6380
6408
|
w("div", {
|
|
6381
|
-
class: f(["w-timeline-item__title", { [
|
|
6382
|
-
innerHTML:
|
|
6409
|
+
class: f(["w-timeline-item__title", { [a[l.itemColorKey] || l.color]: a[l.itemColorKey] || l.color }]),
|
|
6410
|
+
innerHTML: a[l.itemTitleKey]
|
|
6383
6411
|
}, null, 10, da),
|
|
6384
6412
|
w("div", {
|
|
6385
6413
|
class: "w-timeline-item__content",
|
|
6386
|
-
innerHTML:
|
|
6414
|
+
innerHTML: a[l.itemContentKey]
|
|
6387
6415
|
}, null, 8, ua)
|
|
6388
6416
|
])
|
|
6389
6417
|
]))), 128))
|
|
@@ -6412,7 +6440,7 @@ const ca = {
|
|
|
6412
6440
|
}
|
|
6413
6441
|
}
|
|
6414
6442
|
}, pa = /* @__PURE__ */ v(ca, [["render", ha]]);
|
|
6415
|
-
function fa(e, t, l,
|
|
6443
|
+
function fa(e, t, l, o, n, i) {
|
|
6416
6444
|
return s(), u("div", {
|
|
6417
6445
|
class: f(["w-toolbar", i.classes]),
|
|
6418
6446
|
style: L(i.styles)
|
|
@@ -6420,7 +6448,7 @@ function fa(e, t, l, a, o, i) {
|
|
|
6420
6448
|
p(e.$slots, "default")
|
|
6421
6449
|
], 6);
|
|
6422
6450
|
}
|
|
6423
|
-
const
|
|
6451
|
+
const ga = {
|
|
6424
6452
|
name: "w-toolbar",
|
|
6425
6453
|
props: {
|
|
6426
6454
|
color: { type: String },
|
|
@@ -6469,15 +6497,15 @@ const ma = {
|
|
|
6469
6497
|
};
|
|
6470
6498
|
}
|
|
6471
6499
|
}
|
|
6472
|
-
},
|
|
6473
|
-
function ba(e, t, l,
|
|
6500
|
+
}, ma = /* @__PURE__ */ v(ga, [["render", fa]]);
|
|
6501
|
+
function ba(e, t, l, o, n, i) {
|
|
6474
6502
|
return s(), u(_, null, [
|
|
6475
6503
|
p(e.$slots, "activator", { on: i.activatorEventHandlers }),
|
|
6476
|
-
I(
|
|
6504
|
+
I(P, {
|
|
6477
6505
|
name: i.transitionName,
|
|
6478
6506
|
appear: ""
|
|
6479
6507
|
}, {
|
|
6480
|
-
default:
|
|
6508
|
+
default: g(() => [
|
|
6481
6509
|
e.detachableVisible ? (s(), u("div", {
|
|
6482
6510
|
class: f(["w-tooltip", i.classes]),
|
|
6483
6511
|
ref: "detachable",
|
|
@@ -6523,7 +6551,7 @@ const ya = {
|
|
|
6523
6551
|
}),
|
|
6524
6552
|
computed: {
|
|
6525
6553
|
tooltipClasses() {
|
|
6526
|
-
return
|
|
6554
|
+
return N(this.tooltipClass);
|
|
6527
6555
|
},
|
|
6528
6556
|
transitionName() {
|
|
6529
6557
|
const e = this.position.replace(/top|bottom/, (t) => ({ top: "up", bottom: "down" })[t]);
|
|
@@ -6578,9 +6606,9 @@ const ya = {
|
|
|
6578
6606
|
}
|
|
6579
6607
|
}
|
|
6580
6608
|
}, wa = /* @__PURE__ */ v(ya, [["render", ba]]);
|
|
6581
|
-
function va(e, t, l,
|
|
6582
|
-
return s(),
|
|
6583
|
-
default:
|
|
6609
|
+
function va(e, t, l, o, n, i) {
|
|
6610
|
+
return s(), b(P, C({ name: "bounce" }, e.$props), {
|
|
6611
|
+
default: g(() => [
|
|
6584
6612
|
p(e.$slots, "default")
|
|
6585
6613
|
]),
|
|
6586
6614
|
_: 3
|
|
@@ -6593,8 +6621,8 @@ const ka = {
|
|
|
6593
6621
|
duration: { type: [Number, String] }
|
|
6594
6622
|
}
|
|
6595
6623
|
}, _a = /* @__PURE__ */ v(ka, [["render", va]]);
|
|
6596
|
-
function Ca(e, t, l,
|
|
6597
|
-
return s(),
|
|
6624
|
+
function Ca(e, t, l, o, n, i) {
|
|
6625
|
+
return s(), b(P, {
|
|
6598
6626
|
name: "expand",
|
|
6599
6627
|
mode: "out-in",
|
|
6600
6628
|
css: !1,
|
|
@@ -6608,7 +6636,7 @@ function Ca(e, t, l, a, o, i) {
|
|
|
6608
6636
|
onLeave: i.leave,
|
|
6609
6637
|
onAfterLeave: i.afterLeave
|
|
6610
6638
|
}, {
|
|
6611
|
-
default:
|
|
6639
|
+
default: g(() => [
|
|
6612
6640
|
p(e.$slots, "default")
|
|
6613
6641
|
]),
|
|
6614
6642
|
_: 3
|
|
@@ -6705,9 +6733,9 @@ const Ba = {
|
|
|
6705
6733
|
}
|
|
6706
6734
|
}
|
|
6707
6735
|
}, Sa = /* @__PURE__ */ v(Ba, [["render", Ca]]);
|
|
6708
|
-
function $a(e, t, l,
|
|
6709
|
-
return s(),
|
|
6710
|
-
default:
|
|
6736
|
+
function $a(e, t, l, o, n, i) {
|
|
6737
|
+
return s(), b(P, C({ name: "fade" }, e.$props), {
|
|
6738
|
+
default: g(() => [
|
|
6711
6739
|
p(e.$slots, "default")
|
|
6712
6740
|
]),
|
|
6713
6741
|
_: 3
|
|
@@ -6720,9 +6748,9 @@ const Va = {
|
|
|
6720
6748
|
duration: { type: [Number, String] }
|
|
6721
6749
|
}
|
|
6722
6750
|
}, Ia = /* @__PURE__ */ v(Va, [["render", $a]]);
|
|
6723
|
-
function Ra(e, t, l,
|
|
6724
|
-
return s(),
|
|
6725
|
-
default:
|
|
6751
|
+
function Ra(e, t, l, o, n, i) {
|
|
6752
|
+
return s(), b(P, C({ name: "scale" }, e.$props), {
|
|
6753
|
+
default: g(() => [
|
|
6726
6754
|
p(e.$slots, "default")
|
|
6727
6755
|
]),
|
|
6728
6756
|
_: 3
|
|
@@ -6735,9 +6763,9 @@ const La = {
|
|
|
6735
6763
|
duration: { type: [Number, String] }
|
|
6736
6764
|
}
|
|
6737
6765
|
}, Ta = /* @__PURE__ */ v(La, [["render", Ra]]);
|
|
6738
|
-
function xa(e, t, l,
|
|
6739
|
-
return s(),
|
|
6740
|
-
default:
|
|
6766
|
+
function xa(e, t, l, o, n, i) {
|
|
6767
|
+
return s(), b(P, C({ name: "scale-fade" }, e.$props), {
|
|
6768
|
+
default: g(() => [
|
|
6741
6769
|
p(e.$slots, "default")
|
|
6742
6770
|
]),
|
|
6743
6771
|
_: 3
|
|
@@ -6750,9 +6778,9 @@ const Pa = {
|
|
|
6750
6778
|
duration: { type: [Number, String] }
|
|
6751
6779
|
}
|
|
6752
6780
|
}, Oa = /* @__PURE__ */ v(Pa, [["render", xa]]);
|
|
6753
|
-
function za(e, t, l,
|
|
6754
|
-
return s(),
|
|
6755
|
-
default:
|
|
6781
|
+
function za(e, t, l, o, n, i) {
|
|
6782
|
+
return s(), b(P, C({ name: i.transitionName }, e.$props), {
|
|
6783
|
+
default: g(() => [
|
|
6756
6784
|
p(e.$slots, "default")
|
|
6757
6785
|
]),
|
|
6758
6786
|
_: 3
|
|
@@ -6777,15 +6805,15 @@ const Ea = {
|
|
|
6777
6805
|
}
|
|
6778
6806
|
}
|
|
6779
6807
|
}, Ma = /* @__PURE__ */ v(Ea, [["render", za]]);
|
|
6780
|
-
function
|
|
6781
|
-
return s(),
|
|
6782
|
-
default:
|
|
6808
|
+
function Aa(e, t, l, o, n, i) {
|
|
6809
|
+
return s(), b(P, C({ name: i.transitionName }, e.$props), {
|
|
6810
|
+
default: g(() => [
|
|
6783
6811
|
p(e.$slots, "default")
|
|
6784
6812
|
]),
|
|
6785
6813
|
_: 3
|
|
6786
6814
|
}, 16, ["name"]);
|
|
6787
6815
|
}
|
|
6788
|
-
const
|
|
6816
|
+
const Na = {
|
|
6789
6817
|
name: "w-transition-slide-fade",
|
|
6790
6818
|
props: {
|
|
6791
6819
|
appear: { type: Boolean },
|
|
@@ -6803,10 +6831,10 @@ const Wa = {
|
|
|
6803
6831
|
return `slide-fade-${this.direction}`;
|
|
6804
6832
|
}
|
|
6805
6833
|
}
|
|
6806
|
-
},
|
|
6807
|
-
function Ka(e, t, l,
|
|
6808
|
-
return s(),
|
|
6809
|
-
default:
|
|
6834
|
+
}, Wa = /* @__PURE__ */ v(Na, [["render", Aa]]);
|
|
6835
|
+
function Ka(e, t, l, o, n, i) {
|
|
6836
|
+
return s(), b(P, C({ name: "twist" }, e.$props), {
|
|
6837
|
+
default: g(() => [
|
|
6810
6838
|
p(e.$slots, "default")
|
|
6811
6839
|
]),
|
|
6812
6840
|
_: 3
|
|
@@ -6822,22 +6850,22 @@ const Da = {
|
|
|
6822
6850
|
key: 1,
|
|
6823
6851
|
class: "ml1"
|
|
6824
6852
|
};
|
|
6825
|
-
function Ua(e, t, l,
|
|
6826
|
-
const
|
|
6853
|
+
function Ua(e, t, l, o, n, i) {
|
|
6854
|
+
const a = $("w-button"), r = $("w-icon"), d = $("w-tree", !0);
|
|
6827
6855
|
return s(), u("ul", {
|
|
6828
6856
|
class: f(["w-tree", i.classes])
|
|
6829
6857
|
}, [
|
|
6830
|
-
(s(!0), u(_, null,
|
|
6858
|
+
(s(!0), u(_, null, x(e.currentDepthItems, (h, y) => (s(), u("li", {
|
|
6831
6859
|
class: f(["w-tree__item", i.itemClasses(h)]),
|
|
6832
6860
|
key: y
|
|
6833
6861
|
}, [
|
|
6834
|
-
(s(),
|
|
6862
|
+
(s(), b(V(i.getTreeItemComponent(h)), C({ class: "w-tree__item-label" }, h.route && { [!e.$router || i.hasExternalLink(h) ? "href" : "to"]: h.route }, {
|
|
6835
6863
|
onClick: (S) => !l.disabled && !h.disabled && i.onLabelClick(h, S),
|
|
6836
6864
|
onKeydown: (S) => !l.disabled && !h.disabled && i.onLabelKeydown(h, S),
|
|
6837
|
-
tabindex:
|
|
6865
|
+
tabindex: i.getTreeItemTabindex(h)
|
|
6838
6866
|
}), {
|
|
6839
|
-
default:
|
|
6840
|
-
(h.children || h.branch) && (l.expandOpenIcon && h.open || l.expandIcon) && !(l.unexpandableEmpty && !h.children) ? (s(),
|
|
6867
|
+
default: g(() => [
|
|
6868
|
+
(h.children || h.branch) && (l.expandOpenIcon && h.open || l.expandIcon) && !(l.unexpandableEmpty && !h.children) ? (s(), b(a, {
|
|
6841
6869
|
key: 0,
|
|
6842
6870
|
class: "w-tree__item-expand",
|
|
6843
6871
|
onClick: E((S) => !l.disabled && !h.disabled && i.onLabelClick(h, S), ["stop"]),
|
|
@@ -6852,17 +6880,18 @@ function Ua(e, t, l, a, o, i) {
|
|
|
6852
6880
|
p(e.$slots, "item", {
|
|
6853
6881
|
item: h.originalItem,
|
|
6854
6882
|
depth: l.depth,
|
|
6883
|
+
path: h.path,
|
|
6855
6884
|
open: h.open
|
|
6856
6885
|
}, () => {
|
|
6857
6886
|
var S;
|
|
6858
6887
|
return [
|
|
6859
|
-
i.itemIcon(h) ? (s(),
|
|
6888
|
+
i.itemIcon(h) ? (s(), b(r, {
|
|
6860
6889
|
key: 0,
|
|
6861
6890
|
class: "w-tree__item-icon",
|
|
6862
6891
|
color: h.originalItem[l.itemIconColorKey] || l.iconColor
|
|
6863
6892
|
}, {
|
|
6864
|
-
default:
|
|
6865
|
-
|
|
6893
|
+
default: g(() => [
|
|
6894
|
+
B(k(i.itemIcon(h)), 1)
|
|
6866
6895
|
]),
|
|
6867
6896
|
_: 2
|
|
6868
6897
|
}, 1032, ["color"])) : c("", !0),
|
|
@@ -6875,15 +6904,16 @@ function Ua(e, t, l, a, o, i) {
|
|
|
6875
6904
|
]),
|
|
6876
6905
|
_: 2
|
|
6877
6906
|
}, 1040, ["onClick", "onKeydown", "tabindex"])),
|
|
6878
|
-
(s(),
|
|
6907
|
+
(s(), b(V(l.noTransition ? "div" : "w-transition-expand"), {
|
|
6879
6908
|
y: !l.noTransition || null,
|
|
6880
|
-
onAfterEnter: (S) => e.$emit("open", { item: h.originalItem, open: h.open, depth: l.depth }),
|
|
6881
|
-
onAfterLeave: (S) => e.$emit("close", { item: h.originalItem, open: h.open, depth: l.depth })
|
|
6909
|
+
onAfterEnter: (S) => e.$emit("open", { item: h.originalItem, open: h.open, depth: l.depth, path: i.getTreeItemPathForOutput(h) }),
|
|
6910
|
+
onAfterLeave: (S) => e.$emit("close", { item: h.originalItem, open: h.open, depth: l.depth, path: i.getTreeItemPathForOutput(h) })
|
|
6882
6911
|
}, {
|
|
6883
|
-
default:
|
|
6884
|
-
h.children && h.open ? (s(),
|
|
6912
|
+
default: g(() => [
|
|
6913
|
+
h.children && h.open ? (s(), b(d, C({ key: 0 }, e.$props, {
|
|
6885
6914
|
depth: l.depth + 1,
|
|
6886
6915
|
data: h.originalItem.children,
|
|
6916
|
+
parent: h,
|
|
6887
6917
|
onBeforeOpen: t[0] || (t[0] = (S) => e.$emit("before-open", S)),
|
|
6888
6918
|
onOpen: t[1] || (t[1] = (S) => e.$emit("open", S)),
|
|
6889
6919
|
onBeforeClose: t[2] || (t[2] = (S) => e.$emit("before-close", S)),
|
|
@@ -6892,15 +6922,16 @@ function Ua(e, t, l, a, o, i) {
|
|
|
6892
6922
|
onSelect: t[5] || (t[5] = (S) => e.$emit("select", S)),
|
|
6893
6923
|
"onUpdate:modelValue": t[6] || (t[6] = (S) => e.$emit("update:model-value", S))
|
|
6894
6924
|
}), {
|
|
6895
|
-
item:
|
|
6925
|
+
item: g(({ item: S, depth: m, path: R, open: T }) => [
|
|
6896
6926
|
p(e.$slots, "item", {
|
|
6897
6927
|
item: S,
|
|
6898
|
-
depth:
|
|
6899
|
-
|
|
6928
|
+
depth: m,
|
|
6929
|
+
path: R,
|
|
6930
|
+
open: T
|
|
6900
6931
|
})
|
|
6901
6932
|
]),
|
|
6902
6933
|
_: 2
|
|
6903
|
-
}, 1040, ["depth", "data"])) : c("", !0)
|
|
6934
|
+
}, 1040, ["depth", "data", "parent"])) : c("", !0)
|
|
6904
6935
|
]),
|
|
6905
6936
|
_: 2
|
|
6906
6937
|
}, 1064, ["y", "onAfterEnter", "onAfterLeave"]))
|
|
@@ -6913,6 +6944,7 @@ const qa = {
|
|
|
6913
6944
|
modelValue: { type: [Object, Array] },
|
|
6914
6945
|
data: { type: [Object, Array], required: !0 },
|
|
6915
6946
|
depth: { type: Number, default: 0 },
|
|
6947
|
+
parent: { type: Object, default: null },
|
|
6916
6948
|
branchClass: { type: String },
|
|
6917
6949
|
leafClass: { type: String },
|
|
6918
6950
|
branchIcon: { type: String },
|
|
@@ -6954,37 +6986,71 @@ const qa = {
|
|
|
6954
6986
|
updateCurrentDepthTree(e, t = []) {
|
|
6955
6987
|
if (this.currentDepthItems = [], !Array.isArray(e) && typeof e != "object")
|
|
6956
6988
|
return J(`[w-tree] the tree items must be of type array or object, ${typeof e} received.`);
|
|
6957
|
-
Array.isArray(e) || (e = [e]), e.forEach((l,
|
|
6958
|
-
var
|
|
6959
|
-
|
|
6989
|
+
Array.isArray(e) || (e = [e]), e.forEach((l, o) => {
|
|
6990
|
+
var i;
|
|
6991
|
+
const n = {
|
|
6960
6992
|
originalItem: l,
|
|
6961
|
-
_uid: this.depth.toString() + (
|
|
6993
|
+
_uid: this.depth.toString() + (o + 1),
|
|
6962
6994
|
label: l[this.itemLabelKey],
|
|
6963
6995
|
children: !!l.children,
|
|
6964
6996
|
branch: l.branch,
|
|
6965
6997
|
route: l[this.itemRouteKey],
|
|
6966
6998
|
disabled: l[this.itemDisabledKey],
|
|
6967
6999
|
depth: this.depth,
|
|
6968
|
-
open: !!(((
|
|
6969
|
-
|
|
7000
|
+
open: !!(((i = t[o]) == null ? void 0 : i.open) || this.expandAll || l[this.itemOpenKey]),
|
|
7001
|
+
parent: this.parent || null,
|
|
7002
|
+
path: []
|
|
7003
|
+
};
|
|
7004
|
+
n.path = this.getTreeItemPath(n), this.currentDepthItems.push(n);
|
|
6970
7005
|
});
|
|
6971
7006
|
},
|
|
7007
|
+
getTreeItemComponent(e) {
|
|
7008
|
+
return !this.disabled && !e.disabled && e.route ? !this.$router || this.hasExternalLink(e) ? "a" : "router-link" : "div";
|
|
7009
|
+
},
|
|
7010
|
+
getTreeItemTabindex(e) {
|
|
7011
|
+
return !this.disabled && !e.disabled && (e.children || e.branch || this.selectable) && !(this.unexpandableEmpty && !e.children) ? 0 : null;
|
|
7012
|
+
},
|
|
7013
|
+
getTreeItemPath(e) {
|
|
7014
|
+
const t = [e];
|
|
7015
|
+
let l = e.parent;
|
|
7016
|
+
for (; l; )
|
|
7017
|
+
t.push(l), l = l.parent;
|
|
7018
|
+
return t.reverse(), t;
|
|
7019
|
+
},
|
|
7020
|
+
getTreeItemPathForOutput(e) {
|
|
7021
|
+
return e.path.map((t) => t.originalItem);
|
|
7022
|
+
},
|
|
6972
7023
|
expandDepth(e, t) {
|
|
6973
7024
|
typeof t == "boolean" ? e.open = t : e.open = !e.open;
|
|
6974
|
-
const l = {
|
|
7025
|
+
const l = {
|
|
7026
|
+
item: e.originalItem,
|
|
7027
|
+
open: e.open,
|
|
7028
|
+
depth: this.depth,
|
|
7029
|
+
path: this.getTreeItemPathForOutput(e)
|
|
7030
|
+
};
|
|
6975
7031
|
return this.$emit(e.open ? "before-open" : "before-close", l), !this.unexpandableEmpty && !e.children && this.$emit(e.open ? "open" : "close", l), !0;
|
|
6976
7032
|
},
|
|
6977
7033
|
onLabelClick(e, t) {
|
|
6978
|
-
e[this.itemRouteKey] && this.$router && !this.hasExternalLink(e) && t.preventDefault(), this.$emit("click", {
|
|
7034
|
+
e[this.itemRouteKey] && this.$router && !this.hasExternalLink(e) && t.preventDefault(), this.$emit("click", {
|
|
7035
|
+
item: e.originalItem,
|
|
7036
|
+
depth: this.depth,
|
|
7037
|
+
path: this.getTreeItemPathForOutput(e),
|
|
7038
|
+
e: t
|
|
7039
|
+
}), (e.children || e.branch && !this.unexpandableEmpty) && this.expandDepth(e), this.selectable && this.emitItemSelection(e, t);
|
|
6979
7040
|
},
|
|
6980
7041
|
emitItemSelection(e, t) {
|
|
6981
|
-
const l = {
|
|
7042
|
+
const l = {
|
|
7043
|
+
item: e.originalItem,
|
|
7044
|
+
depth: this.depth,
|
|
7045
|
+
path: this.getTreeItemPathForOutput(e),
|
|
7046
|
+
e: t
|
|
7047
|
+
};
|
|
6982
7048
|
(e.children || e.branch && !this.unexpandableEmpty) && (l.open = e.open), this.$emit("update:model-value", l), this.$emit("select", l);
|
|
6983
7049
|
},
|
|
6984
7050
|
onLabelKeydown(e, t) {
|
|
6985
7051
|
if (!(t.metaKey || t.ctrlKey || t.altKey || t.shiftKey) && [13, 32, 37, 38, 39, 40].includes(t.which) && ((e.children || e.branch) && ([13, 32].includes(t.which) ? this.expandDepth(e) && t.preventDefault() : t.which === 37 ? this.expandDepth(e, !1) && t.preventDefault() : t.which === 39 && this.expandDepth(e, !0) && t.preventDefault()), [38, 40].includes(t.which))) {
|
|
6986
|
-
const
|
|
6987
|
-
[...
|
|
7052
|
+
const o = this.$el.closest(".w-tree--depth0").querySelectorAll('.w-tree__item-label[tabindex="0"]'), n = t.target.closest(".w-tree__item-label"), i = t.which === 38 ? -1 : 1;
|
|
7053
|
+
[...o].some((a, r) => a.isSameNode(n) ? (o[r + i] && o[r + i].focus(), !0) : !1);
|
|
6988
7054
|
}
|
|
6989
7055
|
this.selectable && this.emitItemSelection(e, t);
|
|
6990
7056
|
},
|
|
@@ -7039,7 +7105,7 @@ const qa = {
|
|
|
7039
7105
|
WCard: _t,
|
|
7040
7106
|
WCheckbox: xt,
|
|
7041
7107
|
WCheckboxes: Et,
|
|
7042
|
-
WConfirm:
|
|
7108
|
+
WConfirm: Nt,
|
|
7043
7109
|
WDatePicker: Dt,
|
|
7044
7110
|
WDialog: jt,
|
|
7045
7111
|
WDivider: Xt,
|
|
@@ -7048,11 +7114,11 @@ const qa = {
|
|
|
7048
7114
|
WForm: nl,
|
|
7049
7115
|
WFormElement: ul,
|
|
7050
7116
|
WGrid: pl,
|
|
7051
|
-
WIcon:
|
|
7117
|
+
WIcon: ml,
|
|
7052
7118
|
WImage: vl,
|
|
7053
7119
|
WInput: xl,
|
|
7054
7120
|
WList: zl,
|
|
7055
|
-
WMenu:
|
|
7121
|
+
WMenu: Al,
|
|
7056
7122
|
WNotification: Kl,
|
|
7057
7123
|
WOverlay: Hl,
|
|
7058
7124
|
WParallax: Gl,
|
|
@@ -7071,7 +7137,7 @@ const qa = {
|
|
|
7071
7137
|
WTag: ta,
|
|
7072
7138
|
WTextarea: ra,
|
|
7073
7139
|
WTimeline: pa,
|
|
7074
|
-
WToolbar:
|
|
7140
|
+
WToolbar: ma,
|
|
7075
7141
|
WTooltip: wa,
|
|
7076
7142
|
WTransitionBounce: _a,
|
|
7077
7143
|
WTransitionExpand: Sa,
|
|
@@ -7079,11 +7145,11 @@ const qa = {
|
|
|
7079
7145
|
WTransitionScale: Ta,
|
|
7080
7146
|
WTransitionScaleFade: Oa,
|
|
7081
7147
|
WTransitionSlide: Ma,
|
|
7082
|
-
WTransitionSlideFade:
|
|
7148
|
+
WTransitionSlideFade: Wa,
|
|
7083
7149
|
WTransitionTwist: Fa,
|
|
7084
7150
|
WTree: Ga
|
|
7085
|
-
}, Symbol.toStringTag, { value: "Module" })), Ya =
|
|
7086
|
-
|
|
7151
|
+
}, Symbol.toStringTag, { value: "Module" })), Ya = W.install;
|
|
7152
|
+
W.install = (e, t = {}) => Ya.call(W, e, { components: Xa, ...t });
|
|
7087
7153
|
export {
|
|
7088
|
-
|
|
7154
|
+
W as default
|
|
7089
7155
|
};
|