wave-ui 3.3.0 → 3.4.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 +1313 -1106
- package/dist/wave-ui.umd.js +1 -1
- package/package.json +1 -1
- package/src/wave-ui/components/index.js +1 -1
- package/src/wave-ui/components/w-scrollable.vue +243 -0
- package/src/wave-ui/components/w-tabs/index.vue +132 -48
- package/src/wave-ui/components/w-tabs/tab-content.vue +8 -1
- package/src/wave-ui/components/w-scrollbar.vue +0 -24
package/dist/wave-ui.es.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
1
|
+
var ve = Object.defineProperty;
|
|
2
|
+
var ke = (e, t, l) => t in e ? ve(e, t, { enumerable: !0, configurable: !0, writable: !0, value: l }) : e[t] = l;
|
|
3
|
+
var D = (e, t, l) => (ke(e, typeof t != "symbol" ? t + "" : t, l), l), ne = (e, t, l) => {
|
|
4
4
|
if (!t.has(e))
|
|
5
5
|
throw TypeError("Cannot " + l);
|
|
6
6
|
};
|
|
7
|
-
var X = (e, t, l) => (
|
|
7
|
+
var X = (e, t, l) => (ne(e, t, "read from private field"), l ? l.call(e) : t.get(e)), ee = (e, t, l) => {
|
|
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
|
|
13
|
-
const
|
|
11
|
+
}, te = (e, t, l, a) => (ne(e, t, "write to private field"), a ? a.call(e, l) : t.set(e, l), l);
|
|
12
|
+
import { reactive as Q, resolveComponent as $, openBlock as s, createBlock as m, Teleport as _e, createVNode as I, TransitionGroup as ae, normalizeClass as f, withCtx as g, createElementBlock as u, Fragment as k, renderList as L, mergeProps as C, createElementVNode as w, createCommentVNode as c, createApp as Ce, defineComponent as Se, inject as Be, withKeys as E, withModifiers as M, renderSlot as p, toHandlers as W, createTextVNode as S, toDisplayString as _, Transition as O, normalizeStyle as R, resolveDynamicComponent as V, normalizeProps as ie, resolveDirective as me, withDirectives as N, createSlots as Z, vShow as oe, vModelText as be, vModelDynamic as $e, KeepAlive as Ve } from "vue";
|
|
13
|
+
const Ie = Q({
|
|
14
14
|
on: "#app",
|
|
15
15
|
breakpoints: {
|
|
16
16
|
xs: 600,
|
|
@@ -51,38 +51,38 @@ const Ve = G({
|
|
|
51
51
|
transition: "default"
|
|
52
52
|
},
|
|
53
53
|
presets: {}
|
|
54
|
-
}),
|
|
54
|
+
}), ye = (e, t = Ie) => {
|
|
55
55
|
if (!Object.keys(t).length)
|
|
56
56
|
t = Object.assign(t, e);
|
|
57
57
|
else
|
|
58
58
|
for (const l in e) {
|
|
59
|
-
const
|
|
60
|
-
typeof
|
|
59
|
+
const a = e[l];
|
|
60
|
+
typeof a == "object" ? ye(e[l], t[l]) : t[l] = a;
|
|
61
61
|
}
|
|
62
62
|
return t;
|
|
63
|
-
},
|
|
64
|
-
function Re(e, t, l,
|
|
65
|
-
const
|
|
66
|
-
return s(),
|
|
67
|
-
I(
|
|
63
|
+
}, Te = ["innerHTML"];
|
|
64
|
+
function Re(e, t, l, a, r, i) {
|
|
65
|
+
const o = $("w-alert");
|
|
66
|
+
return s(), m(_e, { to: ".w-app" }, [
|
|
67
|
+
I(ae, {
|
|
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
73
|
default: g(() => [
|
|
74
|
-
(s(!0), u(
|
|
75
|
-
|
|
74
|
+
(s(!0), u(k, null, L(i.notifications, (n) => (s(), u(k, null, [
|
|
75
|
+
n._value ? (s(), m(o, C({
|
|
76
76
|
class: "white--bg",
|
|
77
|
-
key:
|
|
78
|
-
modelValue:
|
|
79
|
-
"onUpdate:modelValue": (d) =>
|
|
80
|
-
onClose:
|
|
81
|
-
}, i.notifProps(
|
|
77
|
+
key: n._uid,
|
|
78
|
+
modelValue: n._value,
|
|
79
|
+
"onUpdate:modelValue": (d) => n._value = d,
|
|
80
|
+
onClose: n.dismiss
|
|
81
|
+
}, i.notifProps(n)), {
|
|
82
82
|
default: g(() => [
|
|
83
83
|
w("div", {
|
|
84
|
-
innerHTML:
|
|
85
|
-
}, null, 8,
|
|
84
|
+
innerHTML: n.message
|
|
85
|
+
}, null, 8, Te)
|
|
86
86
|
]),
|
|
87
87
|
_: 2
|
|
88
88
|
}, 1040, ["modelValue", "onUpdate:modelValue", "onClose"])) : c("", !0)
|
|
@@ -94,8 +94,8 @@ function Re(e, t, l, o, n, i) {
|
|
|
94
94
|
}
|
|
95
95
|
const v = (e, t) => {
|
|
96
96
|
const l = e.__vccOpts || e;
|
|
97
|
-
for (const [
|
|
98
|
-
l[
|
|
97
|
+
for (const [a, r] of t)
|
|
98
|
+
l[a] = r;
|
|
99
99
|
return l;
|
|
100
100
|
}, Le = {
|
|
101
101
|
name: "w-notification-manager",
|
|
@@ -113,26 +113,26 @@ 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: a, timeout: r, ...i } = e;
|
|
117
117
|
return i.dismiss && (i.dismiss = !0), i;
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
|
-
},
|
|
121
|
-
var
|
|
122
|
-
const
|
|
120
|
+
}, xe = /* @__PURE__ */ v(Le, [["render", Re]]);
|
|
121
|
+
var H;
|
|
122
|
+
const F = class {
|
|
123
123
|
constructor() {
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
if (X(
|
|
128
|
-
return X(
|
|
124
|
+
D(this, "notifications");
|
|
125
|
+
D(this, "_uid");
|
|
126
|
+
D(this, "_notificationDefaults");
|
|
127
|
+
if (X(F, H))
|
|
128
|
+
return X(F, H);
|
|
129
129
|
this.notifications = [], this._uid = 0, this._notificationDefaults = {
|
|
130
130
|
_uid: 0,
|
|
131
131
|
_value: !0,
|
|
132
132
|
message: "",
|
|
133
133
|
timeout: 4e3,
|
|
134
134
|
dismiss: !0
|
|
135
|
-
}, te(
|
|
135
|
+
}, te(F, H, this);
|
|
136
136
|
}
|
|
137
137
|
notify(...t) {
|
|
138
138
|
let l = {
|
|
@@ -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 [a, r, i] = t;
|
|
146
146
|
l = {
|
|
147
147
|
...l,
|
|
148
|
-
message:
|
|
149
|
-
[
|
|
148
|
+
message: a || "",
|
|
149
|
+
[r === void 0 ? "info" : r]: !0,
|
|
150
150
|
timeout: i || i === 0 ? parseFloat(i) : 4e3
|
|
151
151
|
};
|
|
152
152
|
}
|
|
@@ -156,46 +156,46 @@ const H = class {
|
|
|
156
156
|
this.notifications = this.notifications.filter((l) => l._uid !== t);
|
|
157
157
|
}
|
|
158
158
|
};
|
|
159
|
-
let Y =
|
|
160
|
-
|
|
161
|
-
const
|
|
162
|
-
const
|
|
163
|
-
e.appendChild(
|
|
164
|
-
const
|
|
165
|
-
...
|
|
159
|
+
let Y = F;
|
|
160
|
+
H = new WeakMap(), ee(Y, H, void 0);
|
|
161
|
+
const Oe = (e, t, l) => {
|
|
162
|
+
const a = document.createElement("div");
|
|
163
|
+
e.appendChild(a);
|
|
164
|
+
const r = Ce(Se({
|
|
165
|
+
...xe,
|
|
166
166
|
inject: ["$waveui"]
|
|
167
167
|
})).provide("$waveui", l);
|
|
168
168
|
for (const i in t) {
|
|
169
|
-
const
|
|
170
|
-
|
|
169
|
+
const o = t[i];
|
|
170
|
+
r.component(o.name, { ...o, inject: ["$waveui"] });
|
|
171
171
|
}
|
|
172
|
-
|
|
173
|
-
},
|
|
172
|
+
r.mount(a), a.remove();
|
|
173
|
+
}, re = (e, t) => "#" + e.slice(1).match(/../g).map((l) => (l = +`0x${l}` + t, (l < 0 ? 0 : l > 255 ? 255 : l).toString(16).padStart(2, 0))).join(""), 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 a in l) {
|
|
178
|
+
if (a === "shades")
|
|
179
179
|
continue;
|
|
180
|
-
|
|
181
|
-
const
|
|
182
|
-
|
|
180
|
+
a = { label: a, color: l[a].replace("#", "") };
|
|
181
|
+
const r = a.color;
|
|
182
|
+
r.length === 3 && (a.color = r[0] + "" + r[0] + r[1] + r[1] + r[2] + r[2]);
|
|
183
183
|
for (let i = 1; i <= 3; i++) {
|
|
184
|
-
const
|
|
185
|
-
l.shades[`${
|
|
184
|
+
const o = re(`#${a.color}`, i * 40), n = re(`#${a.color}`, -i * 40);
|
|
185
|
+
l.shades[`${a.label}-light${i}`] = o, l.shades[`${a.label}-dark${i}`] = n;
|
|
186
186
|
}
|
|
187
187
|
}
|
|
188
188
|
});
|
|
189
|
-
},
|
|
189
|
+
}, de = (e, t) => {
|
|
190
190
|
const l = {
|
|
191
|
-
...t.reduce((
|
|
192
|
-
|
|
193
|
-
const i = (
|
|
194
|
-
return { ...
|
|
191
|
+
...t.reduce((a, r) => {
|
|
192
|
+
a[r.label] = r.color;
|
|
193
|
+
const i = (r.shades || []).reduce((o, n) => (o[n.label] = n.color, o), {});
|
|
194
|
+
return { ...a, ...i };
|
|
195
195
|
}, { ...e, ...e.shades })
|
|
196
196
|
};
|
|
197
197
|
return delete l.shades, l;
|
|
198
|
-
},
|
|
198
|
+
}, ue = [
|
|
199
199
|
{
|
|
200
200
|
label: "pink",
|
|
201
201
|
color: "#e91e63",
|
|
@@ -546,38 +546,38 @@ const xe = (e, t, l) => {
|
|
|
546
546
|
cssScope: ".w-app",
|
|
547
547
|
baseIncrement: 4
|
|
548
548
|
};
|
|
549
|
-
let se = { keys: [], values: [] },
|
|
550
|
-
const
|
|
549
|
+
let se = { keys: [], values: [] }, he = null;
|
|
550
|
+
const ze = (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[
|
|
560
|
-
let
|
|
561
|
-
return Object.entries(l).forEach(([
|
|
562
|
-
|
|
563
|
-
}), `:root{${
|
|
564
|
-
},
|
|
552
|
+
const l = {}, { info: a, warning: r, success: i, error: o, shades: n, ...d } = e, { cssScope: h } = U;
|
|
553
|
+
for (const b in d)
|
|
554
|
+
t += `${h} .${b}--bg{background-color:var(--w-${b}-color)}${h} .${b}{color:var(--w-${b}-color)}`;
|
|
555
|
+
for (const b in n)
|
|
556
|
+
t += `${h} .${b}--bg{background-color:${n[b]}}${h} .${b}{color:${n[b]}}`;
|
|
557
|
+
const y = { ...d, info: a, warning: r, success: i, error: o };
|
|
558
|
+
for (const b in y)
|
|
559
|
+
l[b] = y[b];
|
|
560
|
+
let B = "";
|
|
561
|
+
return Object.entries(l).forEach(([b, T]) => {
|
|
562
|
+
B += `--w-${b}-color: ${T};`;
|
|
563
|
+
}), `:root{${B}}${t}`;
|
|
564
|
+
}, Me = (e, t) => {
|
|
565
565
|
let l = "";
|
|
566
|
-
const { cssScope:
|
|
567
|
-
return e.forEach(({ min:
|
|
566
|
+
const { cssScope: a } = U;
|
|
567
|
+
return e.forEach(({ min: r, label: i }) => {
|
|
568
568
|
if (i === "xs")
|
|
569
|
-
for (let
|
|
570
|
-
l += `${
|
|
569
|
+
for (let o = 0; o < t; o++)
|
|
570
|
+
l += `${a} .${i}${t - o}{width:${parseFloat(((t - o) * 100 / t).toFixed(4))}%;}`;
|
|
571
571
|
else {
|
|
572
|
-
l += `@media(min-width:${
|
|
573
|
-
for (let
|
|
574
|
-
l += `${
|
|
572
|
+
l += `@media(min-width:${r}px){`;
|
|
573
|
+
for (let o = 0; o < t; o++)
|
|
574
|
+
l += `${a} .${i}${t - o}{width:${parseFloat(((t - o) * 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: a } = U, r = [
|
|
581
581
|
"show{display:block}",
|
|
582
582
|
"hide{display:none}",
|
|
583
583
|
"d-flex{display:flex}",
|
|
@@ -611,65 +611,65 @@ 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:${
|
|
618
|
-
}), e.forEach(({ label:
|
|
619
|
-
|
|
614
|
+
return e.forEach(({ label: o, min: n }) => {
|
|
615
|
+
o !== "xs" && (t += `@media(min-width:${n}px){` + r.map((d) => `${l} .${o}u-${d}`).join("") + i.map((d, h) => `.w-grid.${o}u-columns${h + 1}{grid-template-columns:repeat(${h + 1},1fr);}`).join("") + i.map((d, h) => `.w-flex.${o}u-gap${h + 1},.w-grid.${o}u-gap${h + 1}{gap:${(h + 1) * a}px;}`).join("") + `.w-flex.${o}u-gap0,.w-flex.${o}u-gap0{gap:0}}`);
|
|
616
|
+
}), e.forEach(({ label: o, min: n, max: d }) => {
|
|
617
|
+
t += `@media (min-width:${n}px) and (max-width:${d}px){` + r.map((h) => `${l} .${o}-${h}`).join("") + i.map((h, y) => `.w-grid.${o}-columns${y + 1}{grid-template-columns:repeat(${y + 1},1fr);}`).join("") + i.map((h, y) => `.w-flex.${o}-gap${y + 1},.w-grid.${o}-gap${y + 1}{gap:${(y + 1) * a}px;}`).join("") + `.w-flex.${o}-gap0,.w-flex.${o}-gap0{gap:0}}`;
|
|
618
|
+
}), e.forEach(({ label: o, max: n }) => {
|
|
619
|
+
o !== "xl" && (t += `@media (max-width:${n}px){` + r.map((d) => `${l} .${o}d-${d}`).join("") + i.map((d, h) => `.w-grid.${o}d-columns${h + 1}{grid-template-columns:repeat(${h + 1},1fr);}`).join("") + i.map((d, h) => `.w-flex.${o}d-gap${h + 1},.w-grid.${o}d-gap${h + 1}{gap:${(h + 1) * a}px;}`).join("") + `.w-flex.${o}d-gap0,.w-flex.${o}d-gap0{gap:0}}`);
|
|
620
620
|
}), t;
|
|
621
|
-
},
|
|
621
|
+
}, ce = (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((r, i) => r - i);
|
|
624
|
+
const a = se.keys[l.indexOf(t)] || "xl";
|
|
625
|
+
a !== he && (he = a, e.breakpoint = {
|
|
626
|
+
name: a,
|
|
627
|
+
xs: a === "xs",
|
|
628
|
+
sm: a === "sm",
|
|
629
|
+
md: a === "md",
|
|
630
|
+
lg: a === "lg",
|
|
631
|
+
xl: a === "xl",
|
|
632
632
|
width: t
|
|
633
633
|
}), e.breakpoint.width = window.innerWidth;
|
|
634
|
-
},
|
|
634
|
+
}, We = (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
638
|
l.id = "wave-ui-styles", l.innerHTML = Ne(t);
|
|
639
|
-
const
|
|
640
|
-
|
|
639
|
+
const a = document.head.querySelectorAll('style,link[rel="stylesheet"]')[0];
|
|
640
|
+
a ? a.before(l) : document.head.appendChild(l);
|
|
641
641
|
}
|
|
642
|
-
|
|
642
|
+
ce(e), window.addEventListener("resize", () => ce(e));
|
|
643
643
|
}, Ae = (e) => {
|
|
644
644
|
if (!document.getElementById("wave-ui-colors")) {
|
|
645
645
|
const t = document.createElement("style");
|
|
646
|
-
t.id = "wave-ui-colors", t.innerHTML =
|
|
646
|
+
t.id = "wave-ui-colors", t.innerHTML = ze(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
650
|
}, Ne = (e) => {
|
|
651
|
-
const t = Object.entries(e.breakpoints), l = t.map(([i,
|
|
652
|
-
const [, d = 0] = t[
|
|
653
|
-
return { label: i, min: d ? d + 1 : 0, max:
|
|
654
|
-
}),
|
|
655
|
-
U.cssScope =
|
|
656
|
-
let
|
|
657
|
-
return
|
|
651
|
+
const t = Object.entries(e.breakpoints), l = t.map(([i, o], n) => {
|
|
652
|
+
const [, d = 0] = t[n - 1] || [];
|
|
653
|
+
return { label: i, min: d ? d + 1 : 0, max: o };
|
|
654
|
+
}), a = getComputedStyle(document.documentElement);
|
|
655
|
+
U.cssScope = a.getPropertyValue("--w-css-scope"), U.baseIncrement = parseInt(a.getPropertyValue("--w-base-increment"));
|
|
656
|
+
let r = "";
|
|
657
|
+
return r += Me(l, e.css.grid), e.css.breakpointLayoutClasses && (r += Ee(l)), r;
|
|
658
658
|
};
|
|
659
|
-
let
|
|
660
|
-
const
|
|
659
|
+
let pe = !1;
|
|
660
|
+
const Ke = (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);
|
|
664
664
|
});
|
|
665
|
-
},
|
|
665
|
+
}, He = (e, t) => {
|
|
666
666
|
for (const l in t)
|
|
667
667
|
e.props[l].default = t[l];
|
|
668
668
|
};
|
|
669
669
|
var q;
|
|
670
670
|
const j = class {
|
|
671
671
|
constructor(t, l = {}) {
|
|
672
|
-
|
|
672
|
+
D(this, "$waveui", {
|
|
673
673
|
breakpoint: {
|
|
674
674
|
name: "",
|
|
675
675
|
xs: !1,
|
|
@@ -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
|
-
Ae(
|
|
691
|
+
var r, i;
|
|
692
|
+
this.theme = t, document.documentElement.setAttribute("data-theme", t), (i = (r = document.head.querySelector("#wave-ui-colors")) == null ? void 0 : r.remove) == null || i.call(r);
|
|
693
|
+
const a = this.config.colors[this.theme];
|
|
694
|
+
Ae(a), this.colors = de(a, ue);
|
|
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 o = { ...l.colors };
|
|
703
|
+
l.colors.light || (l.colors.light = o), l.colors.dark || (l.colors.dark = o), l.colors = { light: l.colors.light, dark: l.colors.dark };
|
|
704
704
|
}
|
|
705
|
-
let { components:
|
|
706
|
-
|
|
707
|
-
const i =
|
|
708
|
-
t.config.globalProperties.$waveui = i, t.provide("$waveui", i),
|
|
705
|
+
let { components: a, ...r } = l;
|
|
706
|
+
r = this.$waveui.config = ye(r), r.css.colorShades && Pe(r);
|
|
707
|
+
const i = Q(this.$waveui);
|
|
708
|
+
t.config.globalProperties.$waveui = i, t.provide("$waveui", i), r.theme !== "auto" && (this.$waveui.colors = de(r.colors[r.theme], ue));
|
|
709
709
|
}
|
|
710
710
|
static install(t, l = {}) {
|
|
711
|
-
var
|
|
711
|
+
var r;
|
|
712
712
|
t.directive("focus", {
|
|
713
713
|
mounted: (i) => setTimeout(() => i.focus(), 0)
|
|
714
714
|
}), t.directive("scroll", {
|
|
715
|
-
mounted: (i,
|
|
716
|
-
const
|
|
717
|
-
|
|
715
|
+
mounted: (i, o) => {
|
|
716
|
+
const n = (d) => {
|
|
717
|
+
o.value(d, i) && window.removeEventListener("scroll", n);
|
|
718
718
|
};
|
|
719
|
-
window.addEventListener("scroll",
|
|
719
|
+
window.addEventListener("scroll", n);
|
|
720
720
|
}
|
|
721
721
|
});
|
|
722
|
-
const { components:
|
|
723
|
-
for (const i in
|
|
724
|
-
const
|
|
725
|
-
(
|
|
722
|
+
const { components: a = {} } = l || {};
|
|
723
|
+
for (const i in a) {
|
|
724
|
+
const o = a[i];
|
|
725
|
+
(r = l.presets) != null && r[o.name] && He(o, l.presets[o.name]), t.component(o.name, o);
|
|
726
726
|
}
|
|
727
727
|
t.mixin({
|
|
728
728
|
beforeMount() {
|
|
729
|
-
if (!
|
|
730
|
-
|
|
731
|
-
const i = Be("$waveui"), { config:
|
|
732
|
-
|
|
729
|
+
if (!pe) {
|
|
730
|
+
pe = !0;
|
|
731
|
+
const i = Be("$waveui"), { config: o } = i, n = document.querySelector(o.on) || document.body;
|
|
732
|
+
n.classList.add("w-app"), o.theme === "auto" ? Ke(i) : i.switchTheme(o.theme, !0), We(i), Oe(n, a, 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(
|
|
740
|
-
const De = ["aria-expanded"], Fe = ["onClick", "onFocus", "onKeypress", "tabindex"],
|
|
741
|
-
function
|
|
742
|
-
const
|
|
738
|
+
let K = j;
|
|
739
|
+
q = new WeakMap(), ee(K, q, !1);
|
|
740
|
+
const De = ["aria-expanded"], Fe = ["onClick", "onFocus", "onKeypress", "tabindex"], je = ["innerHTML"], Ue = ["innerHTML"];
|
|
741
|
+
function qe(e, t, l, a, r, i) {
|
|
742
|
+
const o = $("w-button"), n = $("w-transition-expand");
|
|
743
743
|
return s(), u("div", {
|
|
744
744
|
class: f(["w-accordion", i.accordionClasses])
|
|
745
745
|
}, [
|
|
746
|
-
(s(!0), u(
|
|
746
|
+
(s(!0), u(k, null, L(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"
|
|
@@ -752,10 +752,10 @@ function Ue(e, t, l, o, n, i) {
|
|
|
752
752
|
class: f(["w-accordion__item-title", l.titleClass]),
|
|
753
753
|
onClick: (y) => !d._disabled && i.toggleItem(d, y),
|
|
754
754
|
onFocus: (y) => e.$emit("focus", i.getOriginalItem(d)),
|
|
755
|
-
onKeypress:
|
|
755
|
+
onKeypress: E((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(), m(o, {
|
|
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,
|
|
@@ -763,9 +763,9 @@ function Ue(e, t, l, o, n, i) {
|
|
|
763
763
|
disabled: d._disabled || null,
|
|
764
764
|
tabindex: -1,
|
|
765
765
|
text: "",
|
|
766
|
-
onKeypress: t[0] || (t[0] =
|
|
766
|
+
onKeypress: t[0] || (t[0] = M(() => {
|
|
767
767
|
}, ["stop"])),
|
|
768
|
-
onClick:
|
|
768
|
+
onClick: M((y) => !d._disabled && i.toggleItem(d, y), ["stop"])
|
|
769
769
|
}, null, 8, ["icon", "icon-props", "disabled", "onClick", "class"])) : c("", !0),
|
|
770
770
|
e.$slots[`item-title.${d.id || h + 1}`] ? p(e.$slots, `item-title.${d.id || h + 1}`, {
|
|
771
771
|
key: 1,
|
|
@@ -781,19 +781,19 @@ function Ue(e, t, l, o, n, i) {
|
|
|
781
781
|
w("div", {
|
|
782
782
|
class: "grow",
|
|
783
783
|
innerHTML: d[l.itemTitleKey]
|
|
784
|
-
}, null, 8,
|
|
784
|
+
}, null, 8, je)
|
|
785
785
|
]),
|
|
786
|
-
l.expandIcon && l.expandIconRight ? (s(),
|
|
786
|
+
l.expandIcon && l.expandIconRight ? (s(), m(o, {
|
|
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,
|
|
790
790
|
text: "",
|
|
791
|
-
onKeypress: t[1] || (t[1] =
|
|
791
|
+
onKeypress: t[1] || (t[1] = M(() => {
|
|
792
792
|
}, ["stop"])),
|
|
793
|
-
onClick:
|
|
793
|
+
onClick: M((y) => !d._disabled && i.toggleItem(d, y), ["stop"])
|
|
794
794
|
}, null, 8, ["icon", "onClick", "class"])) : c("", !0)
|
|
795
795
|
], 42, Fe),
|
|
796
|
-
I(
|
|
796
|
+
I(n, {
|
|
797
797
|
y: "",
|
|
798
798
|
onAfterLeave: (y) => i.onEndOfCollapse(d),
|
|
799
799
|
duration: l.duration
|
|
@@ -816,7 +816,7 @@ function Ue(e, t, l, o, n, i) {
|
|
|
816
816
|
}, () => [
|
|
817
817
|
w("div", {
|
|
818
818
|
innerHTML: d[l.itemContentKey]
|
|
819
|
-
}, null, 8,
|
|
819
|
+
}, null, 8, Ue)
|
|
820
820
|
])
|
|
821
821
|
], 2)) : c("", !0)
|
|
822
822
|
]),
|
|
@@ -825,7 +825,7 @@ function Ue(e, t, l, o, n, i) {
|
|
|
825
825
|
], 10, De))), 128))
|
|
826
826
|
], 2);
|
|
827
827
|
}
|
|
828
|
-
const
|
|
828
|
+
const Xe = {
|
|
829
829
|
name: "w-accordion",
|
|
830
830
|
props: {
|
|
831
831
|
modelValue: { type: Array },
|
|
@@ -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((a) => a._index !== e._index && (a._expanded = !1));
|
|
873
|
+
const l = this.accordionItems.map((a) => a._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) {
|
|
@@ -911,31 +911,31 @@ const qe = {
|
|
|
911
911
|
deep: !0
|
|
912
912
|
}
|
|
913
913
|
}
|
|
914
|
-
},
|
|
915
|
-
function
|
|
916
|
-
const
|
|
917
|
-
return
|
|
914
|
+
}, Ye = /* @__PURE__ */ v(Xe, [["render", qe]]), Ge = { class: "w-alert__content" };
|
|
915
|
+
function Je(e, t, l, a, r, i) {
|
|
916
|
+
const o = $("w-icon"), n = $("w-button");
|
|
917
|
+
return r.show ? (s(), u("div", C({
|
|
918
918
|
key: 0,
|
|
919
919
|
class: "w-alert"
|
|
920
|
-
},
|
|
921
|
-
i.type || l.icon || l.dismiss ? (s(), u(
|
|
922
|
-
i.type || l.icon ? (s(),
|
|
920
|
+
}, W(e.$attrs, !0), { class: i.classes }), [
|
|
921
|
+
i.type || l.icon || l.dismiss ? (s(), u(k, { key: 0 }, [
|
|
922
|
+
i.type || l.icon ? (s(), m(o, {
|
|
923
923
|
key: 0,
|
|
924
924
|
class: "w-alert__icon mr2"
|
|
925
925
|
}, {
|
|
926
926
|
default: g(() => [
|
|
927
|
-
|
|
927
|
+
S(_(i.type ? i.typeIcon : l.icon), 1)
|
|
928
928
|
]),
|
|
929
929
|
_: 1
|
|
930
930
|
})) : c("", !0),
|
|
931
|
-
w("div",
|
|
931
|
+
w("div", Ge, [
|
|
932
932
|
p(e.$slots, "default")
|
|
933
933
|
]),
|
|
934
|
-
l.dismiss ? (s(),
|
|
934
|
+
l.dismiss ? (s(), m(n, {
|
|
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", r.show = !1), e.$emit("input", !1), e.$emit("close", !1);
|
|
939
939
|
}),
|
|
940
940
|
icon: "wi-cross",
|
|
941
941
|
color: "inherit",
|
|
@@ -945,7 +945,7 @@ function Ye(e, t, l, o, n, i) {
|
|
|
945
945
|
], 64)) : p(e.$slots, "default", { key: 1 })
|
|
946
946
|
], 16)) : c("", !0);
|
|
947
947
|
}
|
|
948
|
-
const
|
|
948
|
+
const Qe = {
|
|
949
949
|
name: "w-alert",
|
|
950
950
|
props: {
|
|
951
951
|
modelValue: { default: !0 },
|
|
@@ -1024,13 +1024,13 @@ const Je = {
|
|
|
1024
1024
|
this.show = e;
|
|
1025
1025
|
}
|
|
1026
1026
|
}
|
|
1027
|
-
},
|
|
1028
|
-
function
|
|
1029
|
-
return s(), u("div",
|
|
1027
|
+
}, Ze = /* @__PURE__ */ v(Qe, [["render", Je]]), et = { class: "w-app" };
|
|
1028
|
+
function tt(e, t, l, a, r, i) {
|
|
1029
|
+
return s(), u("div", et, [
|
|
1030
1030
|
p(e.$slots, "default")
|
|
1031
1031
|
]);
|
|
1032
1032
|
}
|
|
1033
|
-
const
|
|
1033
|
+
const lt = {
|
|
1034
1034
|
name: "w-app",
|
|
1035
1035
|
props: {
|
|
1036
1036
|
block: { type: Boolean },
|
|
@@ -1045,25 +1045,25 @@ const tt = {
|
|
|
1045
1045
|
textCenter: { type: Boolean },
|
|
1046
1046
|
textRight: { type: Boolean }
|
|
1047
1047
|
}
|
|
1048
|
-
},
|
|
1049
|
-
function
|
|
1050
|
-
return s(), u("div", C({ class: "w-badge-wrap" },
|
|
1048
|
+
}, it = /* @__PURE__ */ v(lt, [["render", tt]]);
|
|
1049
|
+
function st(e, t, l, a, r, i) {
|
|
1050
|
+
return s(), u("div", C({ class: "w-badge-wrap" }, W(e.$attrs, !0)), [
|
|
1051
1051
|
p(e.$slots, "default"),
|
|
1052
|
-
I(
|
|
1052
|
+
I(O, {
|
|
1053
1053
|
name: `${l.transition}`
|
|
1054
1054
|
}, {
|
|
1055
1055
|
default: g(() => [
|
|
1056
1056
|
l.modelValue ? (s(), u("div", {
|
|
1057
1057
|
key: 0,
|
|
1058
1058
|
class: f(["w-badge", i.classes]),
|
|
1059
|
-
style:
|
|
1059
|
+
style: R(i.styles),
|
|
1060
1060
|
"aria-atomic": "true",
|
|
1061
1061
|
"aria-label": "Badge",
|
|
1062
1062
|
"aria-live": "polite",
|
|
1063
1063
|
role: "status"
|
|
1064
1064
|
}, [
|
|
1065
1065
|
l.dot ? c("", !0) : p(e.$slots, "badge", { key: 0 }, () => [
|
|
1066
|
-
|
|
1066
|
+
S(_(l.modelValue === !0 ? "" : l.modelValue || ""), 1)
|
|
1067
1067
|
])
|
|
1068
1068
|
], 6)) : c("", !0)
|
|
1069
1069
|
]),
|
|
@@ -1071,7 +1071,7 @@ function it(e, t, l, o, n, i) {
|
|
|
1071
1071
|
}, 8, ["name"])
|
|
1072
1072
|
], 16);
|
|
1073
1073
|
}
|
|
1074
|
-
const
|
|
1074
|
+
const at = {
|
|
1075
1075
|
name: "w-badge",
|
|
1076
1076
|
props: {
|
|
1077
1077
|
modelValue: { default: !0 },
|
|
@@ -1134,62 +1134,62 @@ const st = {
|
|
|
1134
1134
|
return this.forcedSize && `font-size: ${this.forcedSize}`;
|
|
1135
1135
|
}
|
|
1136
1136
|
}
|
|
1137
|
-
},
|
|
1138
|
-
function
|
|
1139
|
-
const
|
|
1137
|
+
}, ot = /* @__PURE__ */ v(at, [["render", st]]), nt = ["innerHTML"];
|
|
1138
|
+
function rt(e, t, l, a, r, i) {
|
|
1139
|
+
const o = $("w-icon");
|
|
1140
1140
|
return s(), u("div", {
|
|
1141
1141
|
class: f(["w-breadcrumbs", i.classes])
|
|
1142
1142
|
}, [
|
|
1143
|
-
(s(!0), u(
|
|
1143
|
+
(s(!0), u(k, null, L(l.items, (n, d) => (s(), u(k, 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(), m(o, {
|
|
1150
1150
|
class: f(["w-breadcrumbs__separator", l.separatorColor]),
|
|
1151
1151
|
key: `${d}b`
|
|
1152
1152
|
}, {
|
|
1153
1153
|
default: g(() => [
|
|
1154
|
-
|
|
1154
|
+
S(_(l.icon), 1)
|
|
1155
1155
|
]),
|
|
1156
1156
|
_: 2
|
|
1157
1157
|
}, 1032, ["class"])) : c("", !0),
|
|
1158
|
-
|
|
1159
|
-
e.$slots.item ? (s(),
|
|
1158
|
+
n[l.itemRouteKey] && (d < l.items.length - 1 || l.linkLastItem) ? (s(), u(k, { key: 2 }, [
|
|
1159
|
+
e.$slots.item ? (s(), m(V(i.hasRouter ? "router-link" : "a"), {
|
|
1160
1160
|
class: f(["w-breadcrumbs__item", l.color || null]),
|
|
1161
1161
|
key: `${d}c`,
|
|
1162
|
-
to: i.hasRouter &&
|
|
1163
|
-
href:
|
|
1162
|
+
to: i.hasRouter && n[l.itemRouteKey],
|
|
1163
|
+
href: n[l.itemRouteKey]
|
|
1164
1164
|
}, {
|
|
1165
1165
|
default: g(() => [
|
|
1166
1166
|
p(e.$slots, "item", {
|
|
1167
|
-
item:
|
|
1167
|
+
item: n,
|
|
1168
1168
|
index: d + 1,
|
|
1169
1169
|
isLast: d === l.items.length - 1
|
|
1170
1170
|
})
|
|
1171
1171
|
]),
|
|
1172
1172
|
_: 2
|
|
1173
|
-
}, 1032, ["to", "href", "class"])) : (s(),
|
|
1173
|
+
}, 1032, ["to", "href", "class"])) : (s(), m(V(i.hasRouter ? "router-link" : "a"), {
|
|
1174
1174
|
class: f(["w-breadcrumbs__item", l.color || null]),
|
|
1175
1175
|
key: `${d}d`,
|
|
1176
|
-
to: i.hasRouter &&
|
|
1177
|
-
href:
|
|
1178
|
-
innerHTML:
|
|
1176
|
+
to: i.hasRouter && n[l.itemRouteKey],
|
|
1177
|
+
href: n[l.itemRouteKey],
|
|
1178
|
+
innerHTML: n[l.itemLabelKey]
|
|
1179
1179
|
}, null, 8, ["to", "href", "innerHTML", "class"]))
|
|
1180
1180
|
], 64)) : e.$slots.item ? p(e.$slots, "item", {
|
|
1181
1181
|
key: `${d}e`,
|
|
1182
|
-
item:
|
|
1182
|
+
item: n,
|
|
1183
1183
|
index: d + 1,
|
|
1184
1184
|
isLast: d === l.items.length - 1
|
|
1185
1185
|
}) : (s(), u("span", {
|
|
1186
1186
|
key: `${d}f`,
|
|
1187
|
-
innerHTML:
|
|
1188
|
-
}, null, 8,
|
|
1187
|
+
innerHTML: n[l.itemLabelKey]
|
|
1188
|
+
}, null, 8, nt))
|
|
1189
1189
|
], 64))), 256))
|
|
1190
1190
|
], 2);
|
|
1191
1191
|
}
|
|
1192
|
-
const
|
|
1192
|
+
const dt = {
|
|
1193
1193
|
name: "w-breadcrumbs",
|
|
1194
1194
|
props: {
|
|
1195
1195
|
items: { type: Array, required: !0 },
|
|
@@ -1219,10 +1219,10 @@ const rt = {
|
|
|
1219
1219
|
};
|
|
1220
1220
|
}
|
|
1221
1221
|
}
|
|
1222
|
-
},
|
|
1222
|
+
}, ut = /* @__PURE__ */ v(dt, [["render", rt]]), ht = {
|
|
1223
1223
|
key: 0,
|
|
1224
1224
|
class: "w-button__loader"
|
|
1225
|
-
},
|
|
1225
|
+
}, ct = /* @__PURE__ */ w("svg", { viewBox: "0 0 40 40" }, [
|
|
1226
1226
|
/* @__PURE__ */ w("circle", {
|
|
1227
1227
|
cx: "20",
|
|
1228
1228
|
cy: "20",
|
|
@@ -1233,26 +1233,26 @@ const rt = {
|
|
|
1233
1233
|
"stroke-linecap": "round"
|
|
1234
1234
|
})
|
|
1235
1235
|
], -1);
|
|
1236
|
-
function
|
|
1237
|
-
const
|
|
1238
|
-
return s(),
|
|
1236
|
+
function pt(e, t, l, a, r, i) {
|
|
1237
|
+
const o = $("w-icon");
|
|
1238
|
+
return s(), m(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
|
-
},
|
|
1243
|
+
}, W(i.listeners), { style: i.styles }), {
|
|
1244
1244
|
default: g(() => [
|
|
1245
|
-
l.icon ? (s(),
|
|
1245
|
+
l.icon ? (s(), m(o, ie(C({ key: 0 }, l.iconProps || {})), {
|
|
1246
1246
|
default: g(() => [
|
|
1247
|
-
|
|
1247
|
+
S(_(l.icon), 1)
|
|
1248
1248
|
]),
|
|
1249
1249
|
_: 1
|
|
1250
1250
|
}, 16)) : p(e.$slots, "default", { key: 1 }),
|
|
1251
|
-
I(
|
|
1251
|
+
I(O, { name: "scale-fade" }, {
|
|
1252
1252
|
default: g(() => [
|
|
1253
|
-
l.loading ? (s(), u("div",
|
|
1253
|
+
l.loading ? (s(), u("div", ht, [
|
|
1254
1254
|
p(e.$slots, "loading", {}, () => [
|
|
1255
|
-
|
|
1255
|
+
ct
|
|
1256
1256
|
])
|
|
1257
1257
|
])) : c("", !0)
|
|
1258
1258
|
]),
|
|
@@ -1262,7 +1262,7 @@ function ct(e, t, l, o, n, i) {
|
|
|
1262
1262
|
_: 3
|
|
1263
1263
|
}, 16, ["type", "href", "class", "disabled", "style"]);
|
|
1264
1264
|
}
|
|
1265
|
-
const
|
|
1265
|
+
const ft = {
|
|
1266
1266
|
props: {
|
|
1267
1267
|
color: { type: String },
|
|
1268
1268
|
bgColor: { type: String },
|
|
@@ -1352,12 +1352,12 @@ const pt = {
|
|
|
1352
1352
|
};
|
|
1353
1353
|
}
|
|
1354
1354
|
}
|
|
1355
|
-
},
|
|
1356
|
-
function
|
|
1357
|
-
const
|
|
1358
|
-
return l.tooltip ? (s(),
|
|
1359
|
-
activator: g(({ on:
|
|
1360
|
-
I(
|
|
1355
|
+
}, gt = /* @__PURE__ */ v(ft, [["render", pt]]), mt = ["innerHTML"];
|
|
1356
|
+
function bt(e, t, l, a, r, i) {
|
|
1357
|
+
const o = $("button-partial");
|
|
1358
|
+
return l.tooltip ? (s(), m(V("w-tooltip"), ie(C({ key: 0 }, l.tooltipProps || {})), {
|
|
1359
|
+
activator: g(({ on: n }) => [
|
|
1360
|
+
I(o, C(i.buttonProps, W(n)), {
|
|
1361
1361
|
default: g(() => [
|
|
1362
1362
|
p(e.$slots, "default")
|
|
1363
1363
|
]),
|
|
@@ -1365,17 +1365,17 @@ function mt(e, t, l, o, n, i) {
|
|
|
1365
1365
|
}, 1040)
|
|
1366
1366
|
]),
|
|
1367
1367
|
default: g(() => [
|
|
1368
|
-
w("div", { innerHTML: l.tooltip }, null, 8,
|
|
1368
|
+
w("div", { innerHTML: l.tooltip }, null, 8, mt)
|
|
1369
1369
|
]),
|
|
1370
1370
|
_: 3
|
|
1371
|
-
}, 16)) : (s(),
|
|
1371
|
+
}, 16)) : (s(), m(o, ie(C({ key: 1 }, i.buttonProps)), {
|
|
1372
1372
|
default: g(() => [
|
|
1373
1373
|
p(e.$slots, "default")
|
|
1374
1374
|
]),
|
|
1375
1375
|
_: 3
|
|
1376
1376
|
}, 16));
|
|
1377
1377
|
}
|
|
1378
|
-
const
|
|
1378
|
+
const yt = {
|
|
1379
1379
|
name: "w-button",
|
|
1380
1380
|
inheritAttrs: !1,
|
|
1381
1381
|
props: {
|
|
@@ -1411,7 +1411,7 @@ const bt = {
|
|
|
1411
1411
|
lg: { type: Boolean },
|
|
1412
1412
|
xl: { type: Boolean }
|
|
1413
1413
|
},
|
|
1414
|
-
components: { ButtonPartial:
|
|
1414
|
+
components: { ButtonPartial: gt },
|
|
1415
1415
|
emits: [],
|
|
1416
1416
|
computed: {
|
|
1417
1417
|
buttonProps() {
|
|
@@ -1419,9 +1419,9 @@ const bt = {
|
|
|
1419
1419
|
return { ...l, ...this.$attrs };
|
|
1420
1420
|
}
|
|
1421
1421
|
}
|
|
1422
|
-
},
|
|
1423
|
-
function
|
|
1424
|
-
const
|
|
1422
|
+
}, wt = /* @__PURE__ */ v(yt, [["render", bt]]), A = (e = {}) => (typeof e == "string" ? e = { [e]: !0 } : Array.isArray(e) && (e = { [e.join(" ")]: !0 }), e), vt = ["innerHTML"];
|
|
1423
|
+
function kt(e, t, l, a, r, i) {
|
|
1424
|
+
const o = $("w-image");
|
|
1425
1425
|
return s(), u("div", {
|
|
1426
1426
|
class: f(["w-card", i.classes])
|
|
1427
1427
|
}, [
|
|
@@ -1434,8 +1434,8 @@ function vt(e, t, l, o, n, i) {
|
|
|
1434
1434
|
key: 1,
|
|
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
|
-
}, null, 10,
|
|
1438
|
-
l.image ? (s(),
|
|
1437
|
+
}, null, 10, vt)) : c("", !0),
|
|
1438
|
+
l.image ? (s(), m(o, C({
|
|
1439
1439
|
key: 2,
|
|
1440
1440
|
class: "w-card__image",
|
|
1441
1441
|
src: l.image
|
|
@@ -1458,7 +1458,7 @@ function vt(e, t, l, o, n, i) {
|
|
|
1458
1458
|
], 2)) : c("", !0)
|
|
1459
1459
|
], 2);
|
|
1460
1460
|
}
|
|
1461
|
-
const
|
|
1461
|
+
const _t = {
|
|
1462
1462
|
name: "w-card",
|
|
1463
1463
|
props: {
|
|
1464
1464
|
color: { type: String },
|
|
@@ -1477,10 +1477,10 @@ const kt = {
|
|
|
1477
1477
|
emits: [],
|
|
1478
1478
|
computed: {
|
|
1479
1479
|
titleClasses() {
|
|
1480
|
-
return
|
|
1480
|
+
return A(this.titleClass);
|
|
1481
1481
|
},
|
|
1482
1482
|
contentClasses() {
|
|
1483
|
-
return
|
|
1483
|
+
return A(this.contentClass);
|
|
1484
1484
|
},
|
|
1485
1485
|
titleHasToolbar() {
|
|
1486
1486
|
const { title: e } = this.$slots;
|
|
@@ -1509,7 +1509,7 @@ const kt = {
|
|
|
1509
1509
|
};
|
|
1510
1510
|
}
|
|
1511
1511
|
}
|
|
1512
|
-
},
|
|
1512
|
+
}, Ct = /* @__PURE__ */ v(_t, [["render", kt]]), z = {
|
|
1513
1513
|
inject: {
|
|
1514
1514
|
formRegister: { default: null },
|
|
1515
1515
|
formProps: { default: () => ({ disabled: !1, readonly: !1 }) }
|
|
@@ -1550,17 +1550,17 @@ const kt = {
|
|
|
1550
1550
|
this.$refs.formEl.validate(this);
|
|
1551
1551
|
}
|
|
1552
1552
|
}
|
|
1553
|
-
},
|
|
1553
|
+
}, St = ["id", "name", "checked", "disabled", "required", "tabindex", "aria-checked"], Bt = ["for"], $t = ["for", "innerHTML"], Vt = /* @__PURE__ */ w("svg", { viewBox: "-0.5 0 12 10" }, [
|
|
1554
1554
|
/* @__PURE__ */ w("polyline", { points: "1 5 4 8 10 2" })
|
|
1555
|
-
], -1),
|
|
1556
|
-
|
|
1557
|
-
],
|
|
1558
|
-
function Lt(e, t, l,
|
|
1559
|
-
return s(),
|
|
1555
|
+
], -1), It = [
|
|
1556
|
+
Vt
|
|
1557
|
+
], Tt = ["for"], Rt = ["for", "innerHTML"];
|
|
1558
|
+
function Lt(e, t, l, a, r, i) {
|
|
1559
|
+
return s(), m(V(e.formRegister && !i.wCheckboxes ? "w-form-element" : "div"), C({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: r.isChecked, disabled: e.isDisabled }, {
|
|
1560
1560
|
valid: e.valid,
|
|
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] = (o) => e.valid = o),
|
|
1562
|
+
onReset: t[6] || (t[6] = (o) => {
|
|
1563
|
+
e.$emit("update:modelValue", r.isChecked = null), e.$emit("input", null);
|
|
1564
1564
|
}),
|
|
1565
1565
|
class: i.classes
|
|
1566
1566
|
}), {
|
|
@@ -1570,49 +1570,49 @@ function Lt(e, t, l, o, n, i) {
|
|
|
1570
1570
|
id: `w-checkbox--${e._.uid}`,
|
|
1571
1571
|
type: "checkbox",
|
|
1572
1572
|
name: e.inputName,
|
|
1573
|
-
checked:
|
|
1573
|
+
checked: r.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] =
|
|
1581
|
-
"aria-checked":
|
|
1577
|
+
onFocus: t[0] || (t[0] = (o) => e.$emit("focus", o)),
|
|
1578
|
+
onBlur: t[1] || (t[1] = (o) => e.$emit("blur", o)),
|
|
1579
|
+
onChange: t[2] || (t[2] = (o) => i.onInput()),
|
|
1580
|
+
onKeypress: t[3] || (t[3] = E((...o) => i.onInput && i.onInput(...o), ["enter"])),
|
|
1581
|
+
"aria-checked": r.isChecked || "false",
|
|
1582
1582
|
role: "checkbox"
|
|
1583
|
-
}, null, 40,
|
|
1584
|
-
i.hasLabel && l.labelOnLeft ? (s(), u(
|
|
1583
|
+
}, null, 40, St),
|
|
1584
|
+
i.hasLabel && l.labelOnLeft ? (s(), u(k, { key: 0 }, [
|
|
1585
1585
|
e.$slots.default ? (s(), u("label", {
|
|
1586
1586
|
key: 0,
|
|
1587
1587
|
class: f(["w-checkbox__label w-form-el-shakable pr2", e.labelClasses]),
|
|
1588
1588
|
for: `w-checkbox--${e._.uid}`
|
|
1589
1589
|
}, [
|
|
1590
1590
|
p(e.$slots, "default", {}, () => [
|
|
1591
|
-
|
|
1591
|
+
S(_(l.label), 1)
|
|
1592
1592
|
])
|
|
1593
1593
|
], 10, Bt)) : l.label ? (s(), u("label", {
|
|
1594
1594
|
key: 1,
|
|
1595
1595
|
class: f(["w-checkbox__label w-form-el-shakable pr2", e.labelClasses]),
|
|
1596
1596
|
for: `w-checkbox--${e._.uid}`,
|
|
1597
1597
|
innerHTML: l.label
|
|
1598
|
-
}, null, 10,
|
|
1598
|
+
}, null, 10, $t)) : c("", !0)
|
|
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] = (o) => {
|
|
1603
1603
|
e.$refs.input.focus(), e.$refs.input.click();
|
|
1604
1604
|
})
|
|
1605
|
-
},
|
|
1606
|
-
i.hasLabel && !l.labelOnLeft ? (s(), u(
|
|
1605
|
+
}, It, 2),
|
|
1606
|
+
i.hasLabel && !l.labelOnLeft ? (s(), u(k, { key: 1 }, [
|
|
1607
1607
|
e.$slots.default ? (s(), u("label", {
|
|
1608
1608
|
key: 0,
|
|
1609
1609
|
class: f(["w-checkbox__label w-form-el-shakable pl2", e.labelClasses]),
|
|
1610
1610
|
for: `w-checkbox--${e._.uid}`
|
|
1611
1611
|
}, [
|
|
1612
1612
|
p(e.$slots, "default", {}, () => [
|
|
1613
|
-
|
|
1613
|
+
S(_(l.label), 1)
|
|
1614
1614
|
])
|
|
1615
|
-
], 10,
|
|
1615
|
+
], 10, Tt)) : l.label ? (s(), u("label", {
|
|
1616
1616
|
key: 1,
|
|
1617
1617
|
class: f(["w-checkbox__label w-form-el-shakable pl2", e.labelClasses]),
|
|
1618
1618
|
for: `w-checkbox--${e._.uid}`,
|
|
@@ -1623,7 +1623,7 @@ function Lt(e, t, l, o, n, i) {
|
|
|
1623
1623
|
_: 3
|
|
1624
1624
|
}, 16, ["valid", "class"]);
|
|
1625
1625
|
}
|
|
1626
|
-
const
|
|
1626
|
+
const xt = {
|
|
1627
1627
|
name: "w-checkbox",
|
|
1628
1628
|
mixins: [z],
|
|
1629
1629
|
inject: {
|
|
@@ -1682,25 +1682,25 @@ const Tt = {
|
|
|
1682
1682
|
this.isChecked = e;
|
|
1683
1683
|
}
|
|
1684
1684
|
}
|
|
1685
|
-
},
|
|
1686
|
-
function
|
|
1687
|
-
const
|
|
1688
|
-
return s(),
|
|
1685
|
+
}, Ot = /* @__PURE__ */ v(xt, [["render", Lt]]), Pt = ["innerHTML"];
|
|
1686
|
+
function zt(e, t, l, a, r, i) {
|
|
1687
|
+
const o = $("w-checkbox");
|
|
1688
|
+
return s(), m(V(e.formRegister ? "w-form-element" : "div"), C({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: i.checkboxItems.some((n) => n._isChecked), disabled: e.isDisabled }, {
|
|
1689
1689
|
valid: e.valid,
|
|
1690
|
-
"onUpdate:valid": t[1] || (t[1] = (
|
|
1690
|
+
"onUpdate:valid": t[1] || (t[1] = (n) => e.valid = n),
|
|
1691
1691
|
onReset: i.reset,
|
|
1692
1692
|
column: !l.inline,
|
|
1693
1693
|
wrap: l.inline,
|
|
1694
1694
|
class: i.classes
|
|
1695
1695
|
}), {
|
|
1696
1696
|
default: g(() => [
|
|
1697
|
-
(s(!0), u(
|
|
1697
|
+
(s(!0), u(k, null, L(i.checkboxItems, (n, d) => (s(), m(o, C({
|
|
1698
1698
|
key: d,
|
|
1699
|
-
"model-value":
|
|
1700
|
-
"onUpdate:modelValue": (h) => i.toggleCheck(
|
|
1699
|
+
"model-value": n._isChecked,
|
|
1700
|
+
"onUpdate:modelValue": (h) => i.toggleCheck(n, h),
|
|
1701
1701
|
onFocus: t[0] || (t[0] = (h) => e.$emit("focus", h)),
|
|
1702
1702
|
name: `${e.inputName}[]`
|
|
1703
|
-
}, { label:
|
|
1703
|
+
}, { label: n.label, color: n.color, labelOnLeft: l.labelOnLeft, labelColor: l.labelColor, round: l.round }, {
|
|
1704
1704
|
disabled: e.isDisabled || null,
|
|
1705
1705
|
readonly: e.isReadonly || null,
|
|
1706
1706
|
class: { mt1: !l.inline && d }
|
|
@@ -1708,13 +1708,13 @@ function Ot(e, t, l, o, n, i) {
|
|
|
1708
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
|
-
item: i.getOriginalItem(
|
|
1712
|
-
checked: !!
|
|
1711
|
+
item: i.getOriginalItem(n),
|
|
1712
|
+
checked: !!n._isChecked,
|
|
1713
1713
|
index: d + 1,
|
|
1714
|
-
innerHTML:
|
|
1715
|
-
}) :
|
|
1714
|
+
innerHTML: n.label
|
|
1715
|
+
}) : n.label ? (s(), u("div", {
|
|
1716
1716
|
key: 1,
|
|
1717
|
-
innerHTML:
|
|
1717
|
+
innerHTML: n.label
|
|
1718
1718
|
}, null, 8, Pt)) : c("", !0)
|
|
1719
1719
|
]),
|
|
1720
1720
|
_: 2
|
|
@@ -1723,7 +1723,7 @@ function Ot(e, t, l, o, n, i) {
|
|
|
1723
1723
|
_: 3
|
|
1724
1724
|
}, 16, ["valid", "onReset", "column", "wrap", "class"]);
|
|
1725
1725
|
}
|
|
1726
|
-
const
|
|
1726
|
+
const Mt = {
|
|
1727
1727
|
name: "w-checkboxes",
|
|
1728
1728
|
mixins: [z],
|
|
1729
1729
|
props: {
|
|
@@ -1746,7 +1746,7 @@ const zt = {
|
|
|
1746
1746
|
checkboxItems() {
|
|
1747
1747
|
return (this.items || []).map((e, t) => {
|
|
1748
1748
|
const l = e[this.itemValueKey] === void 0 ? e[this.itemLabelKey] || t : e[this.itemValueKey];
|
|
1749
|
-
return
|
|
1749
|
+
return Q({
|
|
1750
1750
|
...e,
|
|
1751
1751
|
label: e[this.itemLabelKey],
|
|
1752
1752
|
_index: t,
|
|
@@ -1769,22 +1769,22 @@ 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((a) => a._isChecked).map((a) => a.value);
|
|
1773
1773
|
this.$emit("update:modelValue", l), this.$emit("input", l);
|
|
1774
1774
|
},
|
|
1775
1775
|
getOriginalItem(e) {
|
|
1776
1776
|
return this.items[e._index];
|
|
1777
1777
|
}
|
|
1778
1778
|
}
|
|
1779
|
-
}, Et = /* @__PURE__ */ v(
|
|
1780
|
-
function
|
|
1781
|
-
const
|
|
1782
|
-
return s(),
|
|
1779
|
+
}, Et = /* @__PURE__ */ v(Mt, [["render", zt]]);
|
|
1780
|
+
function Wt(e, t, l, a, r, i) {
|
|
1781
|
+
const o = $("w-button"), n = $("w-flex"), d = $("w-menu"), h = me("focus");
|
|
1782
|
+
return s(), m(d, C({
|
|
1783
1783
|
modelValue: e.showPopup,
|
|
1784
1784
|
"onUpdate:modelValue": t[2] || (t[2] = (y) => e.showPopup = y)
|
|
1785
1785
|
}, i.wMenuProps), {
|
|
1786
1786
|
activator: g(({ on: y }) => [
|
|
1787
|
-
I(
|
|
1787
|
+
I(o, C({ class: "w-confirm" }, { ...e.$attrs, ...i.buttonProps, ...l.disablePrompt ? {} : y }), {
|
|
1788
1788
|
default: g(() => [
|
|
1789
1789
|
p(e.$slots, "default")
|
|
1790
1790
|
]),
|
|
@@ -1792,42 +1792,42 @@ function Mt(e, t, l, o, n, i) {
|
|
|
1792
1792
|
}, 1040)
|
|
1793
1793
|
]),
|
|
1794
1794
|
default: g(() => [
|
|
1795
|
-
I(
|
|
1795
|
+
I(n, {
|
|
1796
1796
|
column: !l.inline,
|
|
1797
1797
|
"align-center": ""
|
|
1798
1798
|
}, {
|
|
1799
1799
|
default: g(() => [
|
|
1800
1800
|
w("div", null, [
|
|
1801
1801
|
p(e.$slots, "question", {}, () => [
|
|
1802
|
-
|
|
1802
|
+
S(_(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(), m(o, C({
|
|
1809
1809
|
key: 0,
|
|
1810
1810
|
class: "mr2"
|
|
1811
1811
|
}, i.cancelButtonProps, {
|
|
1812
1812
|
"bg-color": (i.cancelButton || {}).bgColor || "error",
|
|
1813
|
-
onKeyup: t[0] || (t[0] =
|
|
1813
|
+
onKeyup: t[0] || (t[0] = E((y) => !l.persistent && i.onCancel(), ["escape"])),
|
|
1814
1814
|
onClick: i.onCancel
|
|
1815
1815
|
}), {
|
|
1816
1816
|
default: g(() => [
|
|
1817
1817
|
p(e.$slots, "cancel", {}, () => [
|
|
1818
|
-
|
|
1818
|
+
S(_(i.cancelButton.label), 1)
|
|
1819
1819
|
])
|
|
1820
1820
|
]),
|
|
1821
1821
|
_: 3
|
|
1822
1822
|
}, 16, ["bg-color", "onClick"])) : c("", !0),
|
|
1823
|
-
|
|
1823
|
+
N((s(), m(o, C(i.confirmButtonProps, {
|
|
1824
1824
|
"bg-color": (i.confirmButton || {}).bgColor || "success",
|
|
1825
|
-
onKeyup: t[1] || (t[1] =
|
|
1825
|
+
onKeyup: t[1] || (t[1] = E((y) => !l.persistent && i.onCancel(), ["escape"])),
|
|
1826
1826
|
onClick: i.onConfirm
|
|
1827
1827
|
}), {
|
|
1828
1828
|
default: g(() => [
|
|
1829
1829
|
p(e.$slots, "confirm", {}, () => [
|
|
1830
|
-
|
|
1830
|
+
S(_(i.confirmButton.label), 1)
|
|
1831
1831
|
])
|
|
1832
1832
|
]),
|
|
1833
1833
|
_: 3
|
|
@@ -1935,16 +1935,16 @@ const At = {
|
|
|
1935
1935
|
this.$emit("confirm"), this.showPopup = !1;
|
|
1936
1936
|
}
|
|
1937
1937
|
}
|
|
1938
|
-
}, Nt = /* @__PURE__ */ v(At, [["render",
|
|
1939
|
-
function
|
|
1938
|
+
}, Nt = /* @__PURE__ */ v(At, [["render", Wt]]);
|
|
1939
|
+
function Kt(e, t, l, a, r, i) {
|
|
1940
1940
|
return s(), u("div", {
|
|
1941
1941
|
class: f(["w-date-picker", i.classes]),
|
|
1942
|
-
style:
|
|
1942
|
+
style: R(i.styles)
|
|
1943
1943
|
}, [
|
|
1944
1944
|
p(e.$slots, "default")
|
|
1945
1945
|
], 6);
|
|
1946
1946
|
}
|
|
1947
|
-
const
|
|
1947
|
+
const Ht = {
|
|
1948
1948
|
name: "w-date-picker",
|
|
1949
1949
|
props: {
|
|
1950
1950
|
dark: { type: Boolean },
|
|
@@ -1962,12 +1962,12 @@ const Kt = {
|
|
|
1962
1962
|
return !1;
|
|
1963
1963
|
}
|
|
1964
1964
|
}
|
|
1965
|
-
}, Dt = /* @__PURE__ */ v(
|
|
1966
|
-
function Ft(e, t, l,
|
|
1967
|
-
const
|
|
1968
|
-
return s(),
|
|
1965
|
+
}, Dt = /* @__PURE__ */ v(Ht, [["render", Kt]]);
|
|
1966
|
+
function Ft(e, t, l, a, r, i) {
|
|
1967
|
+
const o = $("w-card"), n = $("w-overlay");
|
|
1968
|
+
return s(), m(n, {
|
|
1969
1969
|
class: f(["w-dialog", i.classes]),
|
|
1970
|
-
"model-value":
|
|
1970
|
+
"model-value": r.showWrapper,
|
|
1971
1971
|
persistent: l.persistent,
|
|
1972
1972
|
"persistent-no-animation": l.persistentNoAnimation,
|
|
1973
1973
|
onClick: i.onOutsideClick,
|
|
@@ -1976,13 +1976,13 @@ function Ft(e, t, l, o, n, i) {
|
|
|
1976
1976
|
opacity: l.overlayOpacity
|
|
1977
1977
|
}, {
|
|
1978
1978
|
default: g(() => [
|
|
1979
|
-
I(
|
|
1979
|
+
I(O, {
|
|
1980
1980
|
name: l.transition,
|
|
1981
1981
|
appear: "",
|
|
1982
1982
|
onAfterLeave: i.onBeforeClose
|
|
1983
1983
|
}, {
|
|
1984
1984
|
default: g(() => [
|
|
1985
|
-
|
|
1985
|
+
N(I(o, {
|
|
1986
1986
|
class: f(["w-dialog__content", l.dialogClass]),
|
|
1987
1987
|
ref: "dialog",
|
|
1988
1988
|
"no-border": "",
|
|
@@ -1991,7 +1991,7 @@ function Ft(e, t, l, o, n, i) {
|
|
|
1991
1991
|
"title-class": l.titleClass,
|
|
1992
1992
|
"content-class": l.contentClass,
|
|
1993
1993
|
title: l.title || void 0,
|
|
1994
|
-
style:
|
|
1994
|
+
style: R(i.contentStyles)
|
|
1995
1995
|
}, Z({
|
|
1996
1996
|
default: g(() => [
|
|
1997
1997
|
p(e.$slots, "default")
|
|
@@ -2013,7 +2013,7 @@ function Ft(e, t, l, o, n, i) {
|
|
|
2013
2013
|
key: "1"
|
|
2014
2014
|
} : void 0
|
|
2015
2015
|
]), 1032, ["color", "bg-color", "class", "title-class", "content-class", "title", "style"]), [
|
|
2016
|
-
[
|
|
2016
|
+
[oe, r.showContent]
|
|
2017
2017
|
])
|
|
2018
2018
|
]),
|
|
2019
2019
|
_: 3
|
|
@@ -2022,7 +2022,7 @@ function Ft(e, t, l, o, n, i) {
|
|
|
2022
2022
|
_: 3
|
|
2023
2023
|
}, 8, ["model-value", "persistent", "persistent-no-animation", "onClick", "onClose", "bg-color", "opacity", "class"]);
|
|
2024
2024
|
}
|
|
2025
|
-
const
|
|
2025
|
+
const jt = {
|
|
2026
2026
|
name: "w-dialog",
|
|
2027
2027
|
props: {
|
|
2028
2028
|
modelValue: { default: !0 },
|
|
@@ -2089,17 +2089,17 @@ const Ht = {
|
|
|
2089
2089
|
this.showWrapper = e, this.showContent = e;
|
|
2090
2090
|
}
|
|
2091
2091
|
}
|
|
2092
|
-
},
|
|
2093
|
-
function
|
|
2092
|
+
}, Ut = /* @__PURE__ */ v(jt, [["render", Ft]]), qt = ["role", "aria-orientation"];
|
|
2093
|
+
function Xt(e, t, l, a, r, i) {
|
|
2094
2094
|
return s(), u("div", {
|
|
2095
2095
|
class: f(["w-divider", i.classes]),
|
|
2096
2096
|
role: e.$slots.default ? null : "presentation",
|
|
2097
2097
|
"aria-orientation": l.vertical ? "vertical" : "horizontal"
|
|
2098
2098
|
}, [
|
|
2099
2099
|
p(e.$slots, "default")
|
|
2100
|
-
], 10,
|
|
2100
|
+
], 10, qt);
|
|
2101
2101
|
}
|
|
2102
|
-
const
|
|
2102
|
+
const Yt = {
|
|
2103
2103
|
name: "w-divider",
|
|
2104
2104
|
props: {
|
|
2105
2105
|
vertical: { type: Boolean },
|
|
@@ -2119,23 +2119,23 @@ const Gt = {
|
|
|
2119
2119
|
};
|
|
2120
2120
|
}
|
|
2121
2121
|
}
|
|
2122
|
-
},
|
|
2123
|
-
function
|
|
2124
|
-
const
|
|
2125
|
-
return
|
|
2122
|
+
}, Gt = /* @__PURE__ */ v(Yt, [["render", Xt]]), Jt = { class: "w-drawer-wrap__pushable" };
|
|
2123
|
+
function Qt(e, t, l, a, r, i) {
|
|
2124
|
+
const o = $("w-overlay");
|
|
2125
|
+
return r.showWrapper || l.pushContent ? (s(), u("div", {
|
|
2126
2126
|
key: 0,
|
|
2127
2127
|
class: f(["w-drawer-wrap", i.wrapperClasses])
|
|
2128
2128
|
}, [
|
|
2129
2129
|
l.pushContent ? (s(), u("div", {
|
|
2130
2130
|
key: 0,
|
|
2131
2131
|
class: "w-drawer-wrap__track",
|
|
2132
|
-
style:
|
|
2132
|
+
style: R(i.trackStyles)
|
|
2133
2133
|
}, [
|
|
2134
|
-
w("div",
|
|
2135
|
-
l.noOverlay ? c("", !0) : (s(),
|
|
2134
|
+
w("div", Jt, [
|
|
2135
|
+
l.noOverlay ? c("", !0) : (s(), m(o, {
|
|
2136
2136
|
key: 0,
|
|
2137
|
-
modelValue:
|
|
2138
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
2137
|
+
modelValue: r.showDrawer,
|
|
2138
|
+
"onUpdate:modelValue": t[0] || (t[0] = (n) => r.showDrawer = n),
|
|
2139
2139
|
onClick: i.onOutsideClick,
|
|
2140
2140
|
persistent: l.persistent,
|
|
2141
2141
|
"persistent-no-animation": "",
|
|
@@ -2144,17 +2144,17 @@ function Jt(e, t, l, o, n, i) {
|
|
|
2144
2144
|
}, null, 8, ["modelValue", "onClick", "persistent", "bg-color", "opacity"])),
|
|
2145
2145
|
p(e.$slots, "pushable")
|
|
2146
2146
|
]),
|
|
2147
|
-
I(
|
|
2147
|
+
I(O, {
|
|
2148
2148
|
name: "fade",
|
|
2149
2149
|
onBeforeLeave: i.onBeforeClose,
|
|
2150
2150
|
onAfterLeave: i.onClose
|
|
2151
2151
|
}, {
|
|
2152
2152
|
default: g(() => [
|
|
2153
|
-
|
|
2153
|
+
r.showDrawer ? (s(), m(V(l.tag || "aside"), {
|
|
2154
2154
|
key: 0,
|
|
2155
2155
|
class: f(["w-drawer", i.drawerClasses]),
|
|
2156
2156
|
ref: "drawer",
|
|
2157
|
-
style:
|
|
2157
|
+
style: R(i.styles)
|
|
2158
2158
|
}, {
|
|
2159
2159
|
default: g(() => [
|
|
2160
2160
|
p(e.$slots, "default")
|
|
@@ -2164,29 +2164,29 @@ function Jt(e, t, l, o, n, i) {
|
|
|
2164
2164
|
]),
|
|
2165
2165
|
_: 3
|
|
2166
2166
|
}, 8, ["onBeforeLeave", "onAfterLeave"])
|
|
2167
|
-
], 4)) : (s(), u(
|
|
2168
|
-
l.noOverlay ? c("", !0) : (s(),
|
|
2167
|
+
], 4)) : (s(), u(k, { key: 1 }, [
|
|
2168
|
+
l.noOverlay ? c("", !0) : (s(), m(o, {
|
|
2169
2169
|
key: 0,
|
|
2170
|
-
modelValue:
|
|
2171
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
2170
|
+
modelValue: r.showDrawer,
|
|
2171
|
+
"onUpdate:modelValue": t[1] || (t[1] = (n) => r.showDrawer = n),
|
|
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(O, {
|
|
2179
2179
|
name: i.transitionName,
|
|
2180
2180
|
appear: "",
|
|
2181
2181
|
onBeforeLeave: i.onBeforeClose,
|
|
2182
2182
|
onAfterLeave: i.onClose
|
|
2183
2183
|
}, {
|
|
2184
2184
|
default: g(() => [
|
|
2185
|
-
|
|
2185
|
+
r.showDrawer ? (s(), m(V(l.tag || "aside"), {
|
|
2186
2186
|
key: 0,
|
|
2187
2187
|
class: f(["w-drawer", i.drawerClasses]),
|
|
2188
2188
|
ref: "drawer",
|
|
2189
|
-
style:
|
|
2189
|
+
style: R(i.styles)
|
|
2190
2190
|
}, {
|
|
2191
2191
|
default: g(() => [
|
|
2192
2192
|
p(e.$slots, "default")
|
|
@@ -2199,7 +2199,7 @@ function Jt(e, t, l, o, n, i) {
|
|
|
2199
2199
|
], 64))
|
|
2200
2200
|
], 2)) : c("", !0);
|
|
2201
2201
|
}
|
|
2202
|
-
const
|
|
2202
|
+
const Zt = { left: "right", right: "left", top: "down", bottom: "up" }, el = {
|
|
2203
2203
|
name: "w-drawer",
|
|
2204
2204
|
props: {
|
|
2205
2205
|
modelValue: { default: !0 },
|
|
@@ -2285,7 +2285,7 @@ const Qt = { left: "right", right: "left", top: "down", bottom: "up" }, Zt = {
|
|
|
2285
2285
|
return !this.showWrapper;
|
|
2286
2286
|
},
|
|
2287
2287
|
transitionName() {
|
|
2288
|
-
return `slide-${
|
|
2288
|
+
return `slide-${Zt[this.position]}`;
|
|
2289
2289
|
}
|
|
2290
2290
|
},
|
|
2291
2291
|
methods: {
|
|
@@ -2304,9 +2304,9 @@ const Qt = { left: "right", right: "left", top: "down", bottom: "up" }, Zt = {
|
|
|
2304
2304
|
e && (this.showWrapper = !0), this.showDrawer = e;
|
|
2305
2305
|
}
|
|
2306
2306
|
}
|
|
2307
|
-
},
|
|
2308
|
-
function
|
|
2309
|
-
return s(),
|
|
2307
|
+
}, tl = /* @__PURE__ */ v(el, [["render", Qt]]);
|
|
2308
|
+
function ll(e, t, l, a, r, i) {
|
|
2309
|
+
return s(), m(V(l.tag), {
|
|
2310
2310
|
class: f(["w-flex", i.classes])
|
|
2311
2311
|
}, {
|
|
2312
2312
|
default: g(() => [
|
|
@@ -2315,7 +2315,7 @@ function tl(e, t, l, o, n, i) {
|
|
|
2315
2315
|
_: 3
|
|
2316
2316
|
}, 8, ["class"]);
|
|
2317
2317
|
}
|
|
2318
|
-
const
|
|
2318
|
+
const il = {
|
|
2319
2319
|
name: "w-flex",
|
|
2320
2320
|
props: {
|
|
2321
2321
|
tag: { type: String, default: "div" },
|
|
@@ -2362,23 +2362,23 @@ const ll = {
|
|
|
2362
2362
|
};
|
|
2363
2363
|
}
|
|
2364
2364
|
}
|
|
2365
|
-
},
|
|
2366
|
-
function
|
|
2365
|
+
}, sl = /* @__PURE__ */ v(il, [["render", ll]]);
|
|
2366
|
+
function al(e, t, l, a, r, 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] = (...o) => i.onSubmit && i.onSubmit(...o)),
|
|
2370
|
+
onReset: t[1] || (t[1] = (...o) => i.reset && i.reset(...o)),
|
|
2371
2371
|
novalidate: ""
|
|
2372
2372
|
}, [
|
|
2373
2373
|
p(e.$slots, "default")
|
|
2374
2374
|
], 34);
|
|
2375
2375
|
}
|
|
2376
|
-
const
|
|
2376
|
+
const ol = async (e, t) => {
|
|
2377
2377
|
for (const l of e)
|
|
2378
2378
|
if (await t(l))
|
|
2379
2379
|
return !0;
|
|
2380
2380
|
return !1;
|
|
2381
|
-
},
|
|
2381
|
+
}, nl = {
|
|
2382
2382
|
name: "w-form",
|
|
2383
2383
|
props: {
|
|
2384
2384
|
modelValue: {},
|
|
@@ -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 a of this.formElements)
|
|
2440
|
+
!((l = a.validators) != null && l.length) || a.disabled || a.readonly || (await this.checkElementValidators(a), t += ~~!a.Validation.isValid, a.$emit("update:valid", a.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
|
|
2449
|
-
const
|
|
2450
|
-
return t = typeof
|
|
2448
|
+
await ol(e.validators, async (a) => {
|
|
2449
|
+
const r = await (typeof a == "function" && a(e.inputValue));
|
|
2450
|
+
return t = typeof r != "string", l = t ? "" : r, !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, a) => l + ~~(a.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();
|
|
@@ -2468,9 +2468,9 @@ const al = async (e, t) => {
|
|
|
2468
2468
|
(this.status === !1 && e || e === null && this.status !== null) && this.reset(), this.status = e;
|
|
2469
2469
|
}
|
|
2470
2470
|
}
|
|
2471
|
-
},
|
|
2472
|
-
function
|
|
2473
|
-
const
|
|
2471
|
+
}, rl = /* @__PURE__ */ v(nl, [["render", al]]);
|
|
2472
|
+
function dl(e, t, l, a, r, i) {
|
|
2473
|
+
const o = $("w-transition-expand");
|
|
2474
2474
|
return s(), u("div", {
|
|
2475
2475
|
class: f(i.classes)
|
|
2476
2476
|
}, [
|
|
@@ -2479,7 +2479,7 @@ function rl(e, t, l, o, n, i) {
|
|
|
2479
2479
|
}, [
|
|
2480
2480
|
p(e.$slots, "default")
|
|
2481
2481
|
], 2),
|
|
2482
|
-
I(
|
|
2482
|
+
I(o, { y: "" }, {
|
|
2483
2483
|
default: g(() => [
|
|
2484
2484
|
e.Validation.message ? (s(), u("div", {
|
|
2485
2485
|
key: 0,
|
|
@@ -2488,7 +2488,7 @@ function rl(e, t, l, o, n, i) {
|
|
|
2488
2488
|
p(e.$slots, "error-message", {
|
|
2489
2489
|
message: e.Validation.message
|
|
2490
2490
|
}, () => [
|
|
2491
|
-
|
|
2491
|
+
S(_(e.Validation.message), 1)
|
|
2492
2492
|
])
|
|
2493
2493
|
], 2)) : c("", !0)
|
|
2494
2494
|
]),
|
|
@@ -2496,7 +2496,7 @@ function rl(e, t, l, o, n, i) {
|
|
|
2496
2496
|
})
|
|
2497
2497
|
], 2);
|
|
2498
2498
|
}
|
|
2499
|
-
const
|
|
2499
|
+
const ul = {
|
|
2500
2500
|
name: "w-form-element",
|
|
2501
2501
|
props: {
|
|
2502
2502
|
valid: { required: !0 },
|
|
@@ -2562,9 +2562,9 @@ const dl = {
|
|
|
2562
2562
|
beforeUnmount() {
|
|
2563
2563
|
this.formUnregister && this.formUnregister(this);
|
|
2564
2564
|
}
|
|
2565
|
-
},
|
|
2566
|
-
function
|
|
2567
|
-
return s(),
|
|
2565
|
+
}, hl = /* @__PURE__ */ v(ul, [["render", dl]]);
|
|
2566
|
+
function cl(e, t, l, a, r, i) {
|
|
2567
|
+
return s(), m(V(l.tag), {
|
|
2568
2568
|
class: f(["w-grid", i.classes])
|
|
2569
2569
|
}, {
|
|
2570
2570
|
default: g(() => [
|
|
@@ -2573,7 +2573,7 @@ function hl(e, t, l, o, n, i) {
|
|
|
2573
2573
|
_: 3
|
|
2574
2574
|
}, 8, ["class"]);
|
|
2575
2575
|
}
|
|
2576
|
-
const
|
|
2576
|
+
const pl = {
|
|
2577
2577
|
name: "w-grid",
|
|
2578
2578
|
props: {
|
|
2579
2579
|
tag: { type: String, default: "div" },
|
|
@@ -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, [a, r]) => (l[`${a}-columns${r}`] = !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, [a, r]) => (l[`${a}-gap${r}`] = !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
|
-
},
|
|
2621
|
-
function
|
|
2622
|
-
return s(),
|
|
2620
|
+
}, fl = /* @__PURE__ */ v(pl, [["render", cl]]);
|
|
2621
|
+
function gl(e, t, l, a, r, i) {
|
|
2622
|
+
return s(), m(V(l.tag || "i"), C({ class: "w-icon" }, W(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
2628
|
default: g(() => [
|
|
2629
|
-
i.hasLigature ? (s(), u(
|
|
2630
|
-
|
|
2629
|
+
i.hasLigature ? (s(), u(k, { key: 0 }, [
|
|
2630
|
+
S(_(e.icon), 1)
|
|
2631
2631
|
], 64)) : c("", !0)
|
|
2632
2632
|
]),
|
|
2633
2633
|
_: 1
|
|
2634
2634
|
}, 16, ["class", "style"]);
|
|
2635
2635
|
}
|
|
2636
|
-
const
|
|
2636
|
+
const ml = {
|
|
2637
2637
|
name: "w-icon",
|
|
2638
2638
|
props: {
|
|
2639
2639
|
tag: { type: String, default: "i" },
|
|
@@ -2702,39 +2702,39 @@ const gl = {
|
|
|
2702
2702
|
return this.fontName = t, this.icon = l, !0;
|
|
2703
2703
|
}
|
|
2704
2704
|
}
|
|
2705
|
-
},
|
|
2705
|
+
}, bl = /* @__PURE__ */ v(ml, [["render", gl]]), G = (e) => console.warn(`Wave UI: ${e}`), le = (e) => console.error(`Wave UI: ${e}`), yl = {
|
|
2706
2706
|
key: 0,
|
|
2707
2707
|
class: "w-image__loader"
|
|
2708
2708
|
};
|
|
2709
|
-
function
|
|
2710
|
-
const
|
|
2711
|
-
return s(),
|
|
2709
|
+
function wl(e, t, l, a, r, i) {
|
|
2710
|
+
const o = $("w-progress");
|
|
2711
|
+
return s(), m(V(i.wrapperTag), {
|
|
2712
2712
|
class: f(["w-image-wrap", i.wrapperClasses]),
|
|
2713
|
-
style:
|
|
2713
|
+
style: R(i.wrapperStyles)
|
|
2714
2714
|
}, {
|
|
2715
2715
|
default: g(() => [
|
|
2716
|
-
I(
|
|
2716
|
+
I(O, {
|
|
2717
2717
|
name: l.transition,
|
|
2718
2718
|
appear: ""
|
|
2719
2719
|
}, {
|
|
2720
2720
|
default: g(() => [
|
|
2721
|
-
|
|
2721
|
+
r.loaded ? (s(), m(V(l.tag), {
|
|
2722
2722
|
key: 0,
|
|
2723
2723
|
class: f(["w-image", i.imageClasses]),
|
|
2724
|
-
style:
|
|
2725
|
-
src: l.tag === "img" ?
|
|
2724
|
+
style: R(i.imageStyles),
|
|
2725
|
+
src: l.tag === "img" ? r.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 && r.loading ? (s(), u("div", yl, [
|
|
2731
|
+
e.$slots.loading ? p(e.$slots, "loading", { key: 0 }) : (s(), m(o, 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(), m(V(i.wrapperTag), {
|
|
2738
2738
|
key: 1,
|
|
2739
2739
|
class: f(["w-image__content", l.contentClass])
|
|
2740
2740
|
}, {
|
|
@@ -2747,7 +2747,7 @@ function yl(e, t, l, o, n, i) {
|
|
|
2747
2747
|
_: 3
|
|
2748
2748
|
}, 8, ["class", "style"]);
|
|
2749
2749
|
}
|
|
2750
|
-
const
|
|
2750
|
+
const vl = {
|
|
2751
2751
|
name: "w-image",
|
|
2752
2752
|
props: {
|
|
2753
2753
|
tag: { type: String, default: "span" },
|
|
@@ -2815,15 +2815,15 @@ 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 = (a) => (!this.width && !this.height && !this.imgGivenRatio && (this.imgWidth = a.target.width, this.imgHeight = a.target.height), this.imgComputedRatio = a.target.height / a.target.width, this.loading = !1, this.loaded = !0, this.imgSrc = e ? this.fallback : this.src, this.$emit("loaded", this.imgSrc), t(l)), l.onerror = (a) => {
|
|
2819
|
+
this.$emit("error", a), 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
|
}
|
|
2823
2823
|
},
|
|
2824
2824
|
mounted() {
|
|
2825
2825
|
if (!this.src)
|
|
2826
|
-
return
|
|
2826
|
+
return G("The w-image component was used without src.");
|
|
2827
2827
|
if (this.lazy) {
|
|
2828
2828
|
const e = new IntersectionObserver((t) => {
|
|
2829
2829
|
t[0] && t[0].isIntersecting && (this.loadImage(), e.disconnect());
|
|
@@ -2843,45 +2843,45 @@ const wl = {
|
|
|
2843
2843
|
this.imgHeight = e;
|
|
2844
2844
|
}
|
|
2845
2845
|
}
|
|
2846
|
-
},
|
|
2846
|
+
}, kl = /* @__PURE__ */ v(vl, [["render", wl]]), _l = ["name"], Cl = ["for"], Sl = ["id", "type", "name", "placeholder", "step", "min", "max", "minlength", "maxlength", "readonly", "aria-readonly", "disabled", "required", "tabindex"], Bl = ["id", "name", "multiple", "data-progress"], $l = {
|
|
2847
2847
|
class: "w-input__no-file",
|
|
2848
2848
|
key: "no-file"
|
|
2849
|
-
},
|
|
2850
|
-
function Ll(e, t, l,
|
|
2851
|
-
const
|
|
2852
|
-
return s(),
|
|
2849
|
+
}, Vl = ["for"], Il = ["for"], Tl = ["src"], Rl = ["for"];
|
|
2850
|
+
function Ll(e, t, l, a, r, i) {
|
|
2851
|
+
const o = $("w-icon"), n = $("w-progress");
|
|
2852
|
+
return s(), m(V(e.formRegister ? "w-form-element" : "div"), C({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: r.inputValue, disabled: e.isDisabled, readonly: e.isReadonly, isFocused: r.isFocused }, {
|
|
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", r.inputValue = ""), e.$emit("input", "");
|
|
2857
2857
|
}),
|
|
2858
2858
|
wrap: i.hasLabel && l.labelPosition !== "inside",
|
|
2859
2859
|
class: i.classes
|
|
2860
2860
|
}), {
|
|
2861
2861
|
default: g(() => [
|
|
2862
|
-
l.type === "hidden" ?
|
|
2862
|
+
l.type === "hidden" ? N((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) =>
|
|
2867
|
-
}, null, 8,
|
|
2868
|
-
[
|
|
2869
|
-
]) : (s(), u(
|
|
2870
|
-
l.labelPosition === "left" ? (s(), u(
|
|
2866
|
+
"onUpdate:modelValue": t[0] || (t[0] = (d) => r.inputValue = d)
|
|
2867
|
+
}, null, 8, _l)), [
|
|
2868
|
+
[be, r.inputValue]
|
|
2869
|
+
]) : (s(), u(k, { key: 1 }, [
|
|
2870
|
+
l.labelPosition === "left" ? (s(), u(k, { key: 0 }, [
|
|
2871
2871
|
e.$slots.default || l.label ? (s(), u("label", {
|
|
2872
2872
|
key: 0,
|
|
2873
2873
|
class: f(["w-input__label w-input__label--left w-form-el-shakable", e.labelClasses]),
|
|
2874
2874
|
for: `w-input--${e._.uid}`
|
|
2875
2875
|
}, [
|
|
2876
2876
|
p(e.$slots, "default", {}, () => [
|
|
2877
|
-
|
|
2877
|
+
S(_(l.label), 1)
|
|
2878
2878
|
])
|
|
2879
|
-
], 10,
|
|
2879
|
+
], 10, Cl)) : 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(), m(o, {
|
|
2885
2885
|
key: 0,
|
|
2886
2886
|
class: "w-input__icon w-input__icon--inner-left",
|
|
2887
2887
|
tag: "label",
|
|
@@ -2889,16 +2889,16 @@ function Ll(e, t, l, o, n, i) {
|
|
|
2889
2889
|
onClick: t[1] || (t[1] = (d) => e.$emit("click:inner-icon-left", d))
|
|
2890
2890
|
}, {
|
|
2891
2891
|
default: g(() => [
|
|
2892
|
-
|
|
2892
|
+
S(_(l.innerIconLeft), 1)
|
|
2893
2893
|
]),
|
|
2894
2894
|
_: 1
|
|
2895
2895
|
}, 8, ["for"])) : c("", !0),
|
|
2896
|
-
l.type !== "file" ?
|
|
2896
|
+
l.type !== "file" ? N((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) => r.inputValue = d)
|
|
2901
|
+
}, W(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)),
|
|
@@ -2916,9 +2916,9 @@ function Ll(e, t, l, o, n, i) {
|
|
|
2916
2916
|
disabled: e.isDisabled || null,
|
|
2917
2917
|
required: e.required || null,
|
|
2918
2918
|
tabindex: e.tabindex || null
|
|
2919
|
-
}, i.attrs), null, 16,
|
|
2920
|
-
[
|
|
2921
|
-
]) : (s(), u(
|
|
2919
|
+
}, i.attrs), null, 16, Sl)), [
|
|
2920
|
+
[$e, r.inputValue]
|
|
2921
|
+
]) : (s(), u(k, { key: 2 }, [
|
|
2922
2922
|
w("input", C({
|
|
2923
2923
|
ref: "input",
|
|
2924
2924
|
id: `w-input--${e._.uid}`,
|
|
@@ -2931,46 +2931,46 @@ function Ll(e, t, l, o, n, i) {
|
|
|
2931
2931
|
}, i.attrs, {
|
|
2932
2932
|
"data-progress": i.overallFilesProgress
|
|
2933
2933
|
}), null, 16, Bl),
|
|
2934
|
-
I(
|
|
2934
|
+
I(ae, {
|
|
2935
2935
|
class: "w-input__input w-input__input--file",
|
|
2936
2936
|
tag: "label",
|
|
2937
2937
|
name: "fade",
|
|
2938
2938
|
for: `w-input--${e._.uid}`
|
|
2939
2939
|
}, {
|
|
2940
2940
|
default: g(() => [
|
|
2941
|
-
!
|
|
2941
|
+
!r.inputFiles.length && r.isFocused ? (s(), u("span", $l, [
|
|
2942
2942
|
p(e.$slots, "no-file", {}, () => [
|
|
2943
|
-
e.$slots["no-file"] === void 0 ? (s(), u(
|
|
2944
|
-
|
|
2943
|
+
e.$slots["no-file"] === void 0 ? (s(), u(k, { key: 0 }, [
|
|
2944
|
+
S("No file")
|
|
2945
2945
|
], 64)) : c("", !0)
|
|
2946
2946
|
])
|
|
2947
2947
|
])) : c("", !0),
|
|
2948
|
-
(s(!0), u(
|
|
2948
|
+
(s(!0), u(k, null, L(r.inputFiles, (d, h) => (s(), u("span", {
|
|
2949
2949
|
key: d.lastModified
|
|
2950
2950
|
}, [
|
|
2951
|
-
|
|
2951
|
+
S(_(h ? ", " : ""), 1),
|
|
2952
2952
|
(s(), u("span", {
|
|
2953
2953
|
class: "filename",
|
|
2954
2954
|
key: `${h}b`
|
|
2955
|
-
},
|
|
2956
|
-
|
|
2955
|
+
}, _(d.base), 1)),
|
|
2956
|
+
S(_(d.extension ? `.${d.extension}` : ""), 1)
|
|
2957
2957
|
]))), 128))
|
|
2958
2958
|
]),
|
|
2959
2959
|
_: 3
|
|
2960
2960
|
}, 8, ["for"])
|
|
2961
2961
|
], 64)),
|
|
2962
|
-
l.labelPosition === "inside" && i.showLabelInside ? (s(), u(
|
|
2962
|
+
l.labelPosition === "inside" && i.showLabelInside ? (s(), u(k, { key: 3 }, [
|
|
2963
2963
|
e.$slots.default || l.label ? (s(), u("label", {
|
|
2964
2964
|
key: 0,
|
|
2965
2965
|
class: f(["w-input__label w-input__label--inside w-form-el-shakable", e.labelClasses]),
|
|
2966
2966
|
for: `w-input--${e._.uid}`
|
|
2967
2967
|
}, [
|
|
2968
2968
|
p(e.$slots, "default", {}, () => [
|
|
2969
|
-
|
|
2969
|
+
S(_(l.label), 1)
|
|
2970
2970
|
])
|
|
2971
|
-
], 10,
|
|
2971
|
+
], 10, Vl)) : c("", !0)
|
|
2972
2972
|
], 64)) : c("", !0),
|
|
2973
|
-
l.innerIconRight ? (s(),
|
|
2973
|
+
l.innerIconRight ? (s(), m(o, {
|
|
2974
2974
|
key: 4,
|
|
2975
2975
|
class: "w-input__icon w-input__icon--inner-right",
|
|
2976
2976
|
tag: "label",
|
|
@@ -2978,11 +2978,11 @@ function Ll(e, t, l, o, n, i) {
|
|
|
2978
2978
|
onClick: t[9] || (t[9] = (d) => e.$emit("click:inner-icon-right", d))
|
|
2979
2979
|
}, {
|
|
2980
2980
|
default: g(() => [
|
|
2981
|
-
|
|
2981
|
+
S(_(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(), m(n, {
|
|
2986
2986
|
key: 5,
|
|
2987
2987
|
class: "fill-width",
|
|
2988
2988
|
size: "2",
|
|
@@ -2990,12 +2990,12 @@ function Ll(e, t, l, o, n, 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 && r.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(
|
|
2998
|
+
(s(!0), u(k, null, L(r.inputFiles, (d, h) => (s(), u(k, 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`
|
|
@@ -3004,20 +3004,20 @@ function Ll(e, t, l, o, n, i) {
|
|
|
3004
3004
|
key: `${h}b`,
|
|
3005
3005
|
src: d.preview,
|
|
3006
3006
|
alt: ""
|
|
3007
|
-
}, null, 8,
|
|
3007
|
+
}, null, 8, Tl)) : (s(), u("i", {
|
|
3008
3008
|
class: f(["w-icon w-input__file-preview primary size--md", l.preview && typeof l.preview == "string" ? l.preview : "wi-file"]),
|
|
3009
3009
|
key: `${h}c`
|
|
3010
3010
|
}, null, 2))
|
|
3011
3011
|
], 64))), 256))
|
|
3012
|
-
], 8,
|
|
3013
|
-
l.labelPosition === "right" ? (s(), u(
|
|
3012
|
+
], 8, Il)) : c("", !0),
|
|
3013
|
+
l.labelPosition === "right" ? (s(), u(k, { key: 2 }, [
|
|
3014
3014
|
e.$slots.default || l.label ? (s(), u("label", {
|
|
3015
3015
|
key: 0,
|
|
3016
3016
|
class: f(["w-input__label w-input__label--right w-form-el-shakable", e.labelClasses]),
|
|
3017
3017
|
for: `w-input--${e._.uid}`
|
|
3018
3018
|
}, [
|
|
3019
3019
|
p(e.$slots, "default", {}, () => [
|
|
3020
|
-
|
|
3020
|
+
S(_(l.label), 1)
|
|
3021
3021
|
])
|
|
3022
3022
|
], 10, Rl)) : c("", !0)
|
|
3023
3023
|
], 64)) : c("", !0)
|
|
@@ -3026,7 +3026,7 @@ function Ll(e, t, l, o, n, i) {
|
|
|
3026
3026
|
_: 3
|
|
3027
3027
|
}, 16, ["valid", "wrap", "class"]);
|
|
3028
3028
|
}
|
|
3029
|
-
const
|
|
3029
|
+
const xl = {
|
|
3030
3030
|
name: "w-input",
|
|
3031
3031
|
mixins: [z],
|
|
3032
3032
|
props: {
|
|
@@ -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, ...a } = this.$attrs;
|
|
3080
|
+
return a;
|
|
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, a) => l + a.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 = "", a = "", r = ""] = t.name.match(/^(.*?)\.([^.]*)$|(.*)/), i = Q({
|
|
3164
3164
|
name: t.name,
|
|
3165
|
-
base: l ||
|
|
3166
|
-
extension:
|
|
3165
|
+
base: l || r,
|
|
3166
|
+
extension: a,
|
|
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(), a = typeof this.preview == "string", r = e.type && e.type.startsWith("image/");
|
|
3179
|
+
this.preview && !a && r ? 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);
|
|
@@ -3193,26 +3193,26 @@ const Tl = {
|
|
|
3193
3193
|
this.inputValue = e, !e && e !== 0 && (this.isAutofilled = !1);
|
|
3194
3194
|
}
|
|
3195
3195
|
}
|
|
3196
|
-
},
|
|
3197
|
-
function Pl(e, t, l,
|
|
3198
|
-
const
|
|
3196
|
+
}, Ol = /* @__PURE__ */ v(xl, [["render", Ll]]);
|
|
3197
|
+
function Pl(e, t, l, a, r, i) {
|
|
3198
|
+
const o = $("w-icon"), n = $("w-list", !0);
|
|
3199
3199
|
return s(), u("ul", {
|
|
3200
3200
|
class: f(["w-list", i.classes])
|
|
3201
3201
|
}, [
|
|
3202
|
-
(s(!0), u(
|
|
3202
|
+
(s(!0), u(k, null, L(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(), m(o, {
|
|
3207
3207
|
key: 0,
|
|
3208
3208
|
class: "w-list__item-bullet"
|
|
3209
3209
|
}, {
|
|
3210
3210
|
default: g(() => [
|
|
3211
|
-
|
|
3211
|
+
S(_(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(), m(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)), {
|
|
@@ -3233,15 +3233,15 @@ function Pl(e, t, l, o, n, i) {
|
|
|
3233
3233
|
index: h + 1,
|
|
3234
3234
|
selected: d._selected
|
|
3235
3235
|
}, () => [
|
|
3236
|
-
|
|
3236
|
+
S(_(d._label), 1)
|
|
3237
3237
|
])
|
|
3238
3238
|
]),
|
|
3239
3239
|
_: 2
|
|
3240
|
-
}, 1040)) : (s(),
|
|
3240
|
+
}, 1040)) : (s(), m(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(), m(n, 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, o, n, i) {
|
|
|
3251
3251
|
}), Z({ _: 2 }, [
|
|
3252
3252
|
e.$slots.item ? {
|
|
3253
3253
|
name: "item",
|
|
3254
|
-
fn: g(({ item: y, index:
|
|
3254
|
+
fn: g(({ item: y, index: B, selected: b }) => [
|
|
3255
3255
|
p(e.$slots, "item", {
|
|
3256
3256
|
item: i.cleanLi(y),
|
|
3257
|
-
index:
|
|
3258
|
-
selected:
|
|
3257
|
+
index: B,
|
|
3258
|
+
selected: b
|
|
3259
3259
|
})
|
|
3260
3260
|
]),
|
|
3261
3261
|
key: "0"
|
|
3262
3262
|
} : {
|
|
3263
3263
|
name: "default",
|
|
3264
|
-
fn: g(({ item: y, index:
|
|
3264
|
+
fn: g(({ item: y, index: B, selected: b }) => [
|
|
3265
3265
|
p(e.$slots, "default", {
|
|
3266
3266
|
item: i.cleanLi(y),
|
|
3267
|
-
index:
|
|
3268
|
-
selected:
|
|
3267
|
+
index: B,
|
|
3268
|
+
selected: b
|
|
3269
3269
|
}, () => [
|
|
3270
|
-
|
|
3270
|
+
S(_(y[l.itemLabelKey]), 1)
|
|
3271
3271
|
])
|
|
3272
3272
|
]),
|
|
3273
3273
|
key: "1"
|
|
@@ -3276,7 +3276,7 @@ function Pl(e, t, l, o, n, i) {
|
|
|
3276
3276
|
], 2))), 128))
|
|
3277
3277
|
], 2);
|
|
3278
3278
|
}
|
|
3279
|
-
const
|
|
3279
|
+
const zl = {
|
|
3280
3280
|
name: "w-list",
|
|
3281
3281
|
props: {
|
|
3282
3282
|
items: { type: [Array, Number], required: !0 },
|
|
@@ -3360,28 +3360,28 @@ const Ol = {
|
|
|
3360
3360
|
};
|
|
3361
3361
|
},
|
|
3362
3362
|
liLabelProps(e, t, l) {
|
|
3363
|
-
const
|
|
3363
|
+
const a = this.$slots[`item.${t + 1}`] || this.$slots.item, r = () => {
|
|
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
|
+
}), o = 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
|
+
}), n = {
|
|
3373
3373
|
class: this.liLabelClasses(e),
|
|
3374
3374
|
tabindex: e.disabled || this.checklist ? null : "0",
|
|
3375
3375
|
"aria-selected": l ? "true" : "false",
|
|
3376
3376
|
id: this.listId ? `${this.listId}_item-${t + 1}` : null,
|
|
3377
3377
|
role: "option"
|
|
3378
3378
|
};
|
|
3379
|
-
return this.checklist ? (
|
|
3379
|
+
return this.checklist ? (n.modelValue = e._selected, n.color = e[this.itemColorKey] || this.color, n.round = this.roundCheckboxes, n.disabled = e.disabled, a || (n.label = e._label || null), n.onFocus = () => e._focused = !0, n.onBlur = () => e._focused = !1, n.onInput = (d) => this.selectItem(e, d), n.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] && (
|
|
3383
|
-
d.preventDefault(), this.$router.push(e[this.itemRouteKey]),
|
|
3384
|
-
}) : (
|
|
3381
|
+
h && (h.focus(), h.click()), r();
|
|
3382
|
+
}) : this.nav ? (!e.disabled && e[this.itemRouteKey] && (n.onKeydown = o, n.onMousedown = i, this.$router ? (n.to = e[this.itemRouteKey], n.onClick = (d) => {
|
|
3383
|
+
d.preventDefault(), this.$router.push(e[this.itemRouteKey]), r();
|
|
3384
|
+
}) : (n.href = e[this.itemRouteKey], n.onClick = r)), a || (n.innerHTML = e._label)) : (this.isSelectable && (e.disabled || (n.tabindex = 0), n.onClick = r, n.onKeydown = o, n.onMousedown = i), a || (n.innerHTML = e._label)), n;
|
|
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: a, _selected: r, ...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: a, _selected: r, _focused: i, ...o } = e;
|
|
3405
|
+
return o;
|
|
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((a) => a._value === t);
|
|
3421
3421
|
l && (l._selected = !0);
|
|
3422
3422
|
});
|
|
3423
3423
|
}
|
|
@@ -3441,7 +3441,7 @@ const Ol = {
|
|
|
3441
3441
|
}
|
|
3442
3442
|
}
|
|
3443
3443
|
}
|
|
3444
|
-
},
|
|
3444
|
+
}, Ml = /* @__PURE__ */ v(zl, [["render", Pl]]), we = {
|
|
3445
3445
|
props: {
|
|
3446
3446
|
appendTo: { type: [String, Boolean, Object] },
|
|
3447
3447
|
fixed: { type: Boolean },
|
|
@@ -3468,7 +3468,7 @@ const Ol = {
|
|
|
3468
3468
|
let e = ".w-app";
|
|
3469
3469
|
typeof this.detachableDefaultRoot == "function" && (e = this.detachableDefaultRoot() || e);
|
|
3470
3470
|
let t = this.appendTo || e;
|
|
3471
|
-
return t === !0 ? t = e : this.appendTo === "activator" ? t = this.$el.previousElementSibling : t && !["object", "string"].includes(typeof t) ? t = e : typeof t == "object" && !t.nodeType && (t = e,
|
|
3471
|
+
return t === !0 ? t = e : this.appendTo === "activator" ? t = this.$el.previousElementSibling : t && !["object", "string"].includes(typeof t) ? t = e : typeof t == "object" && !t.nodeType && (t = e, G(`Invalid node provided in ${this.$options.name} \`append-to\`. Falling back to .w-app.`)), typeof t == "string" && (t = document.querySelector(t)), t || (G(`Unable to locate ${this.appendTo ? `target ${this.appendTo}` : e}`), t = document.querySelector(e)), t;
|
|
3472
3472
|
},
|
|
3473
3473
|
detachableParentEl() {
|
|
3474
3474
|
return this.appendToTarget;
|
|
@@ -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: a } = this.activatorEl.getBoundingClientRect();
|
|
3510
|
+
let r = { top: e, left: t, width: l, height: a };
|
|
3511
3511
|
if (!this.fixed) {
|
|
3512
|
-
const { top: i, left:
|
|
3513
|
-
|
|
3514
|
-
...
|
|
3515
|
-
top: e - i + this.detachableParentEl.scrollTop - parseInt(
|
|
3516
|
-
left: t -
|
|
3512
|
+
const { top: i, left: o } = this.detachableParentEl.getBoundingClientRect(), n = window.getComputedStyle(this.detachableParentEl, null);
|
|
3513
|
+
r = {
|
|
3514
|
+
...r,
|
|
3515
|
+
top: e - i + this.detachableParentEl.scrollTop - parseInt(n.getPropertyValue("border-top-width")),
|
|
3516
|
+
left: t - o + this.detachableParentEl.scrollLeft - parseInt(n.getPropertyValue("border-left-width"))
|
|
3517
3517
|
};
|
|
3518
3518
|
}
|
|
3519
|
-
return
|
|
3519
|
+
return r;
|
|
3520
3520
|
},
|
|
3521
3521
|
computeDetachableCoords() {
|
|
3522
|
-
let { top: e, left: t, width: l, height:
|
|
3522
|
+
let { top: e, left: t, width: l, height: a } = 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 r = 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(r.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 += a, this.alignRight ? t += l - this.detachableEl.offsetWidth + parseInt(r.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 += a - this.detachableEl.offsetHeight : this.alignTop || (e += (a - 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 += a - this.detachableEl.offsetHeight + parseInt(r.getPropertyValue("margin-top")) : this.alignTop || (e += (a - this.detachableEl.offsetHeight) / 2 + parseInt(r.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 a = (r) => {
|
|
3569
3569
|
var i;
|
|
3570
|
-
(e && ((i =
|
|
3570
|
+
(e && ((i = r.target) == null ? void 0 : i.matches) && r.target.matches(this.activator) || r.target === this.activatorEl || this.activatorEl.contains(r.target)) && l(r);
|
|
3571
3571
|
};
|
|
3572
|
-
document.addEventListener(t,
|
|
3572
|
+
document.addEventListener(t, a), this.docEventListenersHandlers.push({ eventName: t, handler: a });
|
|
3573
3573
|
});
|
|
3574
3574
|
}
|
|
3575
3575
|
},
|
|
@@ -3593,11 +3593,11 @@ const Ol = {
|
|
|
3593
3593
|
}
|
|
3594
3594
|
}
|
|
3595
3595
|
};
|
|
3596
|
-
function El(e, t, l,
|
|
3597
|
-
const
|
|
3598
|
-
return s(), u(
|
|
3596
|
+
function El(e, t, l, a, r, i) {
|
|
3597
|
+
const o = $("w-card"), n = $("w-overlay");
|
|
3598
|
+
return s(), u(k, null, [
|
|
3599
3599
|
p(e.$slots, "activator", { on: i.activatorEventHandlers }),
|
|
3600
|
-
I(
|
|
3600
|
+
I(O, {
|
|
3601
3601
|
name: i.transitionName,
|
|
3602
3602
|
appear: ""
|
|
3603
3603
|
}, {
|
|
@@ -3614,7 +3614,7 @@ function El(e, t, l, o, n, i) {
|
|
|
3614
3614
|
style: i.styles
|
|
3615
3615
|
}), [
|
|
3616
3616
|
p(e.$slots, "default")
|
|
3617
|
-
], 16)) : e.detachableVisible ? (s(),
|
|
3617
|
+
], 16)) : e.detachableVisible ? (s(), m(o, C({
|
|
3618
3618
|
key: 1,
|
|
3619
3619
|
class: "w-menu",
|
|
3620
3620
|
ref: "detachable"
|
|
@@ -3653,7 +3653,7 @@ function El(e, t, l, o, n, i) {
|
|
|
3653
3653
|
]),
|
|
3654
3654
|
_: 3
|
|
3655
3655
|
}, 8, ["name"]),
|
|
3656
|
-
l.overlay ? (s(),
|
|
3656
|
+
l.overlay ? (s(), m(n, C({
|
|
3657
3657
|
key: 0,
|
|
3658
3658
|
ref: "overlay",
|
|
3659
3659
|
"model-value": e.detachableVisible,
|
|
@@ -3665,9 +3665,9 @@ function El(e, t, l, o, n, i) {
|
|
|
3665
3665
|
}), null, 16, ["model-value", "persistent", "class", "z-index"])) : c("", !0)
|
|
3666
3666
|
], 64);
|
|
3667
3667
|
}
|
|
3668
|
-
const
|
|
3668
|
+
const Wl = {
|
|
3669
3669
|
name: "w-menu",
|
|
3670
|
-
mixins: [
|
|
3670
|
+
mixins: [we],
|
|
3671
3671
|
inheritAttrs: !1,
|
|
3672
3672
|
props: {
|
|
3673
3673
|
modelValue: {},
|
|
@@ -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 A(this.menuClass);
|
|
3727
3727
|
},
|
|
3728
3728
|
titleClasses() {
|
|
3729
|
-
return
|
|
3729
|
+
return A(this.titleClass);
|
|
3730
3730
|
},
|
|
3731
3731
|
contentClasses() {
|
|
3732
|
-
return
|
|
3732
|
+
return A(this.contentClass);
|
|
3733
3733
|
},
|
|
3734
3734
|
overlayClasses() {
|
|
3735
3735
|
return {
|
|
3736
|
-
...
|
|
3736
|
+
...A(this.overlayClass),
|
|
3737
3737
|
"w-overlay--no-pointer-event": this.showOnHover
|
|
3738
3738
|
};
|
|
3739
3739
|
},
|
|
@@ -3788,22 +3788,22 @@ 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
|
-
}, Al = /* @__PURE__ */ v(
|
|
3792
|
-
function Nl(e, t, l,
|
|
3793
|
-
const
|
|
3794
|
-
return s(),
|
|
3791
|
+
}, Al = /* @__PURE__ */ v(Wl, [["render", El]]);
|
|
3792
|
+
function Nl(e, t, l, a, r, i) {
|
|
3793
|
+
const o = $("w-alert");
|
|
3794
|
+
return s(), m(O, {
|
|
3795
3795
|
name: i.transitionName,
|
|
3796
3796
|
appear: ""
|
|
3797
3797
|
}, {
|
|
3798
3798
|
default: g(() => [
|
|
3799
|
-
|
|
3799
|
+
r.show ? (s(), u("div", {
|
|
3800
3800
|
key: 0,
|
|
3801
3801
|
class: f(["w-notification", i.classes]),
|
|
3802
|
-
style:
|
|
3802
|
+
style: R(i.styles)
|
|
3803
3803
|
}, [
|
|
3804
|
-
I(
|
|
3804
|
+
I(o, C(i.alertProps, {
|
|
3805
3805
|
class: i.alertClasses,
|
|
3806
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
3806
|
+
"onUpdate:modelValue": t[0] || (t[0] = (n) => {
|
|
3807
3807
|
e.$emit("update:modelValue", !1), e.$emit("input", !1);
|
|
3808
3808
|
})
|
|
3809
3809
|
}), {
|
|
@@ -3817,7 +3817,7 @@ function Nl(e, t, l, o, n, i) {
|
|
|
3817
3817
|
_: 3
|
|
3818
3818
|
}, 8, ["name"]);
|
|
3819
3819
|
}
|
|
3820
|
-
const
|
|
3820
|
+
const Kl = {
|
|
3821
3821
|
name: "w-notification",
|
|
3822
3822
|
props: {
|
|
3823
3823
|
modelValue: { default: !0 },
|
|
@@ -3937,28 +3937,28 @@ const Wl = {
|
|
|
3937
3937
|
clearTimeout(this.timeoutId), this.show = e, e && this.timeoutVal && this.countdown();
|
|
3938
3938
|
}
|
|
3939
3939
|
}
|
|
3940
|
-
},
|
|
3941
|
-
function Dl(e, t, l,
|
|
3942
|
-
const
|
|
3943
|
-
return s(),
|
|
3940
|
+
}, Hl = /* @__PURE__ */ v(Kl, [["render", Nl]]);
|
|
3941
|
+
function Dl(e, t, l, a, r, i) {
|
|
3942
|
+
const o = me("focus");
|
|
3943
|
+
return s(), m(O, {
|
|
3944
3944
|
name: "fade",
|
|
3945
3945
|
appear: "",
|
|
3946
3946
|
onAfterLeave: i.onClose
|
|
3947
3947
|
}, {
|
|
3948
3948
|
default: g(() => [
|
|
3949
|
-
l.modelValue ?
|
|
3949
|
+
l.modelValue ? N((s(), u("div", {
|
|
3950
3950
|
key: 0,
|
|
3951
3951
|
class: f(["w-overlay", i.classes]),
|
|
3952
3952
|
ref: "overlay",
|
|
3953
|
-
style:
|
|
3954
|
-
onKeydown: t[0] || (t[0] = M(
|
|
3955
|
-
onClick: t[1] || (t[1] = (...
|
|
3953
|
+
style: R(l.modelValue && i.styles || null),
|
|
3954
|
+
onKeydown: t[0] || (t[0] = E(M((...n) => i.onClick && i.onClick(...n), ["stop"]), ["escape"])),
|
|
3955
|
+
onClick: t[1] || (t[1] = (...n) => i.onClick && i.onClick(...n)),
|
|
3956
3956
|
tabindex: "0"
|
|
3957
3957
|
}, [
|
|
3958
3958
|
p(e.$slots, "default")
|
|
3959
3959
|
], 38)), [
|
|
3960
|
-
[
|
|
3961
|
-
[
|
|
3960
|
+
[oe, e.showOverlay],
|
|
3961
|
+
[o]
|
|
3962
3962
|
]) : c("", !0)
|
|
3963
3963
|
]),
|
|
3964
3964
|
_: 3
|
|
@@ -4018,20 +4018,20 @@ const Fl = {
|
|
|
4018
4018
|
e && (this.showOverlay = !0);
|
|
4019
4019
|
}
|
|
4020
4020
|
}
|
|
4021
|
-
},
|
|
4022
|
-
function
|
|
4023
|
-
return s(), u("div",
|
|
4021
|
+
}, jl = /* @__PURE__ */ v(Fl, [["render", Dl]]), Ul = { class: "w-parallax" };
|
|
4022
|
+
function ql(e, t, l, a, r, i) {
|
|
4023
|
+
return s(), u("div", Ul);
|
|
4024
4024
|
}
|
|
4025
|
-
const
|
|
4025
|
+
const Xl = {
|
|
4026
4026
|
name: "w-parallax",
|
|
4027
4027
|
props: {},
|
|
4028
4028
|
emits: [],
|
|
4029
4029
|
data: () => ({})
|
|
4030
|
-
},
|
|
4031
|
-
function
|
|
4030
|
+
}, Yl = /* @__PURE__ */ v(Xl, [["render", ql]]), Gl = ["viewBox"], Jl = ["cx", "cy", "r", "stroke-dasharray", "stroke-width"], Ql = ["cx", "cy", "r", "stroke-width", "stroke-linecap", "stroke-dasharray"];
|
|
4031
|
+
function Zl(e, t, l, a, r, i) {
|
|
4032
4032
|
return s(), u("div", {
|
|
4033
4033
|
class: f(["w-progress", i.classes]),
|
|
4034
|
-
style:
|
|
4034
|
+
style: R(i.styles)
|
|
4035
4035
|
}, [
|
|
4036
4036
|
l.circle ? (s(), u("svg", {
|
|
4037
4037
|
key: 1,
|
|
@@ -4046,7 +4046,7 @@ function Ql(e, t, l, o, n, i) {
|
|
|
4046
4046
|
fill: "transparent",
|
|
4047
4047
|
"stroke-dasharray": e.circleCircumference,
|
|
4048
4048
|
"stroke-width": l.stroke
|
|
4049
|
-
}, null, 10,
|
|
4049
|
+
}, null, 10, Jl)) : c("", !0),
|
|
4050
4050
|
w("circle", {
|
|
4051
4051
|
class: "w-progress__progress",
|
|
4052
4052
|
cx: i.circleCenter,
|
|
@@ -4056,24 +4056,24 @@ function Ql(e, t, l, o, n, i) {
|
|
|
4056
4056
|
"stroke-width": l.stroke,
|
|
4057
4057
|
"stroke-linecap": l.roundCap && "round",
|
|
4058
4058
|
"stroke-dasharray": e.circleCircumference,
|
|
4059
|
-
style:
|
|
4060
|
-
}, null, 12,
|
|
4061
|
-
], 8,
|
|
4059
|
+
style: R(`stroke-dashoffset: ${(1 - i.progressValue / 100) * e.circleCircumference}`)
|
|
4060
|
+
}, null, 12, Ql)
|
|
4061
|
+
], 8, Gl)) : (s(), u("div", {
|
|
4062
4062
|
key: 0,
|
|
4063
4063
|
class: f(["w-progress__progress", { full: i.progressValue === 100 }]),
|
|
4064
|
-
style:
|
|
4064
|
+
style: R(`width: ${i.progressValue}%`)
|
|
4065
4065
|
}, null, 6)),
|
|
4066
4066
|
l.label || e.$slots.default ? (s(), u("div", {
|
|
4067
4067
|
key: 2,
|
|
4068
4068
|
class: f(["w-progress__label", l.labelColor || !1])
|
|
4069
4069
|
}, [
|
|
4070
4070
|
p(e.$slots, "default", {}, () => [
|
|
4071
|
-
|
|
4071
|
+
S(_(Math.round(i.progressValue)) + _(l.circle ? "" : "%"), 1)
|
|
4072
4072
|
])
|
|
4073
4073
|
], 2)) : c("", !0)
|
|
4074
4074
|
], 6);
|
|
4075
4075
|
}
|
|
4076
|
-
const
|
|
4076
|
+
const J = 40, ei = J / 2, ti = Math.round(J * 3.14 * 100) / 100, li = {
|
|
4077
4077
|
name: "w-progress",
|
|
4078
4078
|
props: {
|
|
4079
4079
|
modelValue: { type: [Number, String, Boolean], default: -1 },
|
|
@@ -4098,16 +4098,16 @@ const Q = 40, Zl = Q / 2, ei = Math.round(Q * 3.14 * 100) / 100, ti = {
|
|
|
4098
4098
|
},
|
|
4099
4099
|
emits: [],
|
|
4100
4100
|
data: () => ({
|
|
4101
|
-
circleSize:
|
|
4102
|
-
circleRadius:
|
|
4103
|
-
circleCircumference:
|
|
4101
|
+
circleSize: J,
|
|
4102
|
+
circleRadius: ei,
|
|
4103
|
+
circleCircumference: ti
|
|
4104
4104
|
}),
|
|
4105
4105
|
computed: {
|
|
4106
4106
|
progressValue() {
|
|
4107
4107
|
return parseFloat(this.modelValue);
|
|
4108
4108
|
},
|
|
4109
4109
|
circleCenter() {
|
|
4110
|
-
return
|
|
4110
|
+
return J + this.stroke;
|
|
4111
4111
|
},
|
|
4112
4112
|
forcedSize() {
|
|
4113
4113
|
return this.size && (isNaN(this.size) ? this.size : `${this.size}px`);
|
|
@@ -4139,12 +4139,12 @@ const Q = 40, Zl = Q / 2, ei = Math.round(Q * 3.14 * 100) / 100, ti = {
|
|
|
4139
4139
|
};
|
|
4140
4140
|
}
|
|
4141
4141
|
}
|
|
4142
|
-
},
|
|
4143
|
-
function
|
|
4144
|
-
return s(),
|
|
4142
|
+
}, ii = /* @__PURE__ */ v(li, [["render", Zl]]), si = ["id", "name", "checked", "disabled", "required", "tabindex", "aria-checked"], ai = ["for"], oi = ["for", "innerHTML"], ni = ["for"], ri = ["for", "innerHTML"];
|
|
4143
|
+
function di(e, t, l, a, r, i) {
|
|
4144
|
+
return s(), m(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] = (o) => e.valid = o),
|
|
4147
|
+
onReset: t[4] || (t[4] = (o) => {
|
|
4148
4148
|
e.$emit("update:modelValue", e.inputValue = null), e.$emit("input", null);
|
|
4149
4149
|
}),
|
|
4150
4150
|
class: i.classes
|
|
@@ -4159,54 +4159,54 @@ function ri(e, t, l, o, n, 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] = (o) => e.$emit("focus", o)),
|
|
4163
|
+
onChange: t[1] || (t[1] = (o) => i.onInput(o)),
|
|
4164
4164
|
"aria-checked": e.inputValue || "false",
|
|
4165
4165
|
role: "radio"
|
|
4166
|
-
}, null, 40,
|
|
4167
|
-
i.hasLabel && l.labelOnLeft ? (s(), u(
|
|
4166
|
+
}, null, 40, si),
|
|
4167
|
+
i.hasLabel && l.labelOnLeft ? (s(), u(k, { key: 0 }, [
|
|
4168
4168
|
e.$slots.default ? (s(), u("label", {
|
|
4169
4169
|
key: 0,
|
|
4170
4170
|
class: f(["w-radio__label w-form-el-shakable pr2", e.labelClasses]),
|
|
4171
4171
|
for: `w-radio--${e._.uid}`
|
|
4172
4172
|
}, [
|
|
4173
4173
|
p(e.$slots, "default", {}, () => [
|
|
4174
|
-
|
|
4174
|
+
S(_(l.label), 1)
|
|
4175
4175
|
])
|
|
4176
|
-
], 10,
|
|
4176
|
+
], 10, ai)) : l.label ? (s(), u("label", {
|
|
4177
4177
|
key: 1,
|
|
4178
4178
|
class: f(["w-radio__label w-form-el-shakable pr2", e.labelClasses]),
|
|
4179
4179
|
for: `w-radio--${e._.uid}`,
|
|
4180
4180
|
innerHTML: l.label
|
|
4181
|
-
}, null, 10,
|
|
4181
|
+
}, null, 10, oi)) : c("", !0)
|
|
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] = (o) => {
|
|
4186
4186
|
e.$refs.input.focus(), e.$refs.input.click();
|
|
4187
4187
|
})
|
|
4188
4188
|
}, null, 2),
|
|
4189
|
-
i.hasLabel && !l.labelOnLeft ? (s(), u(
|
|
4189
|
+
i.hasLabel && !l.labelOnLeft ? (s(), u(k, { key: 1 }, [
|
|
4190
4190
|
e.$slots.default ? (s(), u("label", {
|
|
4191
4191
|
key: 0,
|
|
4192
4192
|
class: f(["w-radio__label w-form-el-shakable pl2", e.labelClasses]),
|
|
4193
4193
|
for: `w-radio--${e._.uid}`
|
|
4194
4194
|
}, [
|
|
4195
4195
|
p(e.$slots, "default", {}, () => [
|
|
4196
|
-
|
|
4196
|
+
S(_(l.label), 1)
|
|
4197
4197
|
])
|
|
4198
|
-
], 10,
|
|
4198
|
+
], 10, ni)) : l.label ? (s(), u("label", {
|
|
4199
4199
|
key: 1,
|
|
4200
4200
|
class: f(["w-radio__label w-form-el-shakable pl2", e.labelClasses]),
|
|
4201
4201
|
for: `w-radio--${e._.uid}`,
|
|
4202
4202
|
innerHTML: l.label
|
|
4203
|
-
}, null, 10,
|
|
4203
|
+
}, null, 10, ri)) : c("", !0)
|
|
4204
4204
|
], 64)) : c("", !0)
|
|
4205
4205
|
]),
|
|
4206
4206
|
_: 3
|
|
4207
4207
|
}, 16, ["valid", "class"]);
|
|
4208
4208
|
}
|
|
4209
|
-
const
|
|
4209
|
+
const ui = {
|
|
4210
4210
|
name: "w-radio",
|
|
4211
4211
|
mixins: [z],
|
|
4212
4212
|
inject: { wRadios: { default: null } },
|
|
@@ -4265,13 +4265,13 @@ const di = {
|
|
|
4265
4265
|
this.toggleFromOutside();
|
|
4266
4266
|
}
|
|
4267
4267
|
}
|
|
4268
|
-
},
|
|
4269
|
-
function
|
|
4270
|
-
const
|
|
4271
|
-
return s(),
|
|
4268
|
+
}, hi = /* @__PURE__ */ v(ui, [["render", di]]), ci = ["innerHTML"];
|
|
4269
|
+
function pi(e, t, l, a, r, i) {
|
|
4270
|
+
const o = $("w-radio");
|
|
4271
|
+
return s(), m(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
|
-
"onUpdate:valid": t[1] || (t[1] = (
|
|
4274
|
-
onReset: t[2] || (t[2] = (
|
|
4273
|
+
"onUpdate:valid": t[1] || (t[1] = (n) => e.valid = n),
|
|
4274
|
+
onReset: t[2] || (t[2] = (n) => {
|
|
4275
4275
|
e.$emit("update:modelValue", e.inputValue = null), e.$emit("input", null);
|
|
4276
4276
|
}),
|
|
4277
4277
|
column: !l.inline,
|
|
@@ -4279,13 +4279,13 @@ function ci(e, t, l, o, n, i) {
|
|
|
4279
4279
|
class: i.classes
|
|
4280
4280
|
}), {
|
|
4281
4281
|
default: g(() => [
|
|
4282
|
-
(s(!0), u(
|
|
4282
|
+
(s(!0), u(k, null, L(i.radioItems, (n, d) => (s(), m(o, C({
|
|
4283
4283
|
key: d,
|
|
4284
|
-
"model-value":
|
|
4285
|
-
"onUpdate:modelValue": (h) => i.onInput(
|
|
4284
|
+
"model-value": n.value === l.modelValue,
|
|
4285
|
+
"onUpdate:modelValue": (h) => i.onInput(n),
|
|
4286
4286
|
onFocus: t[0] || (t[0] = (h) => e.$emit("focus", h)),
|
|
4287
4287
|
name: e.inputName
|
|
4288
|
-
}, { label:
|
|
4288
|
+
}, { label: n.label, color: n.color, labelOnLeft: l.labelOnLeft, labelColor: l.labelColor }, {
|
|
4289
4289
|
disabled: e.isDisabled || null,
|
|
4290
4290
|
readonly: e.isReadonly || null,
|
|
4291
4291
|
class: { mt1: !l.inline && d }
|
|
@@ -4293,14 +4293,14 @@ function ci(e, t, l, o, n, i) {
|
|
|
4293
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
|
-
item: i.getOriginalItem(
|
|
4296
|
+
item: i.getOriginalItem(n),
|
|
4297
4297
|
index: d + 1,
|
|
4298
|
-
checked:
|
|
4299
|
-
innerHTML:
|
|
4300
|
-
}) :
|
|
4298
|
+
checked: n.value === l.modelValue,
|
|
4299
|
+
innerHTML: n.label
|
|
4300
|
+
}) : n.label ? (s(), u("div", {
|
|
4301
4301
|
key: 1,
|
|
4302
|
-
innerHTML:
|
|
4303
|
-
}, null, 8,
|
|
4302
|
+
innerHTML: n.label
|
|
4303
|
+
}, null, 8, ci)) : c("", !0)
|
|
4304
4304
|
]),
|
|
4305
4305
|
_: 2
|
|
4306
4306
|
}, 1040, ["model-value", "onUpdate:modelValue", "name", "disabled", "readonly", "class"]))), 128))
|
|
@@ -4308,7 +4308,7 @@ function ci(e, t, l, o, n, i) {
|
|
|
4308
4308
|
_: 3
|
|
4309
4309
|
}, 16, ["valid", "column", "wrap", "class"]);
|
|
4310
4310
|
}
|
|
4311
|
-
const
|
|
4311
|
+
const fi = {
|
|
4312
4312
|
name: "w-radios",
|
|
4313
4313
|
mixins: [z],
|
|
4314
4314
|
props: {
|
|
@@ -4354,13 +4354,13 @@ const pi = {
|
|
|
4354
4354
|
return this.items[e._index];
|
|
4355
4355
|
}
|
|
4356
4356
|
}
|
|
4357
|
-
},
|
|
4358
|
-
function
|
|
4359
|
-
return s(),
|
|
4357
|
+
}, gi = /* @__PURE__ */ v(fi, [["render", pi]]), mi = ["id", "name", "value"], bi = ["disabled", "onMouseenter", "onClick", "tabindex"];
|
|
4358
|
+
function yi(e, t, l, a, r, i) {
|
|
4359
|
+
return s(), m(V(e.formRegister ? "w-form-element" : "div"), C({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: r.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] = (o) => e.valid = o),
|
|
4362
|
+
onReset: t[5] || (t[5] = (o) => {
|
|
4363
|
+
e.$emit("update:modelValue", r.rating = null), e.$emit("input", null);
|
|
4364
4364
|
}),
|
|
4365
4365
|
class: i.classes
|
|
4366
4366
|
}), {
|
|
@@ -4369,39 +4369,39 @@ function bi(e, t, l, o, n, i) {
|
|
|
4369
4369
|
id: e.inputName,
|
|
4370
4370
|
name: e.inputName,
|
|
4371
4371
|
type: "hidden",
|
|
4372
|
-
value:
|
|
4373
|
-
}, null, 8,
|
|
4374
|
-
(s(!0), u(
|
|
4372
|
+
value: r.rating
|
|
4373
|
+
}, null, 8, mi),
|
|
4374
|
+
(s(!0), u(k, null, L(l.max, (o) => (s(), u(k, { key: o }, [
|
|
4375
4375
|
e.$slots.item ? p(e.$slots, "item", {
|
|
4376
4376
|
key: 0,
|
|
4377
|
-
index:
|
|
4377
|
+
index: o + 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(o)]),
|
|
4381
4381
|
disabled: e.isDisabled || e.isReadonly,
|
|
4382
|
-
onMouseenter: (
|
|
4383
|
-
onMouseleave: t[0] || (t[0] = (
|
|
4384
|
-
onClick: (
|
|
4385
|
-
onFocus: t[1] || (t[1] = (...
|
|
4386
|
-
onBlur: t[2] || (t[2] = (...
|
|
4387
|
-
onKeydown: t[3] || (t[3] = (...
|
|
4382
|
+
onMouseenter: (n) => r.hover = o,
|
|
4383
|
+
onMouseleave: t[0] || (t[0] = (n) => r.hover = 0),
|
|
4384
|
+
onClick: (n) => i.onButtonClick(o),
|
|
4385
|
+
onFocus: t[1] || (t[1] = (...n) => i.onFocus && i.onFocus(...n)),
|
|
4386
|
+
onBlur: t[2] || (t[2] = (...n) => i.onBlur && i.onBlur(...n)),
|
|
4387
|
+
onKeydown: t[3] || (t[3] = (...n) => i.onKeydown && i.onKeydown(...n)),
|
|
4388
4388
|
type: "button",
|
|
4389
|
-
tabindex:
|
|
4389
|
+
tabindex: o === 1 ? 0 : -1
|
|
4390
4390
|
}, [
|
|
4391
|
-
|
|
4391
|
+
o - 1 === ~~r.rating && r.rating - ~~r.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
|
-
style:
|
|
4396
|
+
style: R(i.halfStarStyle)
|
|
4397
4397
|
}, null, 6)) : c("", !0)
|
|
4398
|
-
], 42,
|
|
4398
|
+
], 42, bi)
|
|
4399
4399
|
], 64))), 128))
|
|
4400
4400
|
]),
|
|
4401
4401
|
_: 3
|
|
4402
4402
|
}, 16, ["valid", "class"]);
|
|
4403
4403
|
}
|
|
4404
|
-
const
|
|
4404
|
+
const wi = {
|
|
4405
4405
|
name: "w-rating",
|
|
4406
4406
|
mixins: [z],
|
|
4407
4407
|
props: {
|
|
@@ -4491,22 +4491,153 @@ const yi = {
|
|
|
4491
4491
|
this.rating = parseFloat(e);
|
|
4492
4492
|
}
|
|
4493
4493
|
}
|
|
4494
|
-
},
|
|
4495
|
-
function ki(e, t, l,
|
|
4496
|
-
return s(), u(
|
|
4494
|
+
}, vi = /* @__PURE__ */ v(wi, [["render", yi]]);
|
|
4495
|
+
function ki(e, t, l, a, r, i) {
|
|
4496
|
+
return s(), u(k, null, [
|
|
4497
|
+
w("div", C({
|
|
4498
|
+
class: ["w-scrollable", i.scrollableClasses],
|
|
4499
|
+
ref: "scrollable",
|
|
4500
|
+
onMouseenter: t[0] || (t[0] = (...o) => i.onMouseEnter && i.onMouseEnter(...o)),
|
|
4501
|
+
onMouseleave: t[1] || (t[1] = (...o) => i.onMouseLeave && i.onMouseLeave(...o)),
|
|
4502
|
+
onMousewheel: t[2] || (t[2] = (...o) => i.onMouseWheel && i.onMouseWheel(...o))
|
|
4503
|
+
}, e.$attrs, { style: i.scrollableStyles }), [
|
|
4504
|
+
p(e.$slots, "default")
|
|
4505
|
+
], 16),
|
|
4506
|
+
w("div", {
|
|
4507
|
+
class: f(["w-scrollbar", i.scrollbarClasses]),
|
|
4508
|
+
ref: "track",
|
|
4509
|
+
onMousedown: t[3] || (t[3] = (...o) => i.onTrackMouseDown && i.onTrackMouseDown(...o))
|
|
4510
|
+
}, [
|
|
4511
|
+
w("div", {
|
|
4512
|
+
class: "w-scrollbar__thumb",
|
|
4513
|
+
ref: "thumb",
|
|
4514
|
+
style: R(i.thumbStyles)
|
|
4515
|
+
}, null, 4)
|
|
4516
|
+
], 34)
|
|
4517
|
+
], 64);
|
|
4497
4518
|
}
|
|
4498
4519
|
const _i = {
|
|
4499
|
-
|
|
4500
|
-
|
|
4520
|
+
h: {
|
|
4521
|
+
horizOrVert: "horizontal",
|
|
4522
|
+
topOrLeft: "left",
|
|
4523
|
+
widthOrHeight: "width",
|
|
4524
|
+
offsetWidthOrHeight: "offsetWidth",
|
|
4525
|
+
maxWidthOrHeight: "max-width",
|
|
4526
|
+
scrollWidthOrHeight: "scrollWidth",
|
|
4527
|
+
clientXorY: "clientX",
|
|
4528
|
+
deltaXorY: "deltaX",
|
|
4529
|
+
scrollTopOrLeft: "scrollLeft"
|
|
4530
|
+
},
|
|
4531
|
+
v: {
|
|
4532
|
+
horizOrVert: "vertical",
|
|
4533
|
+
topOrLeft: "top",
|
|
4534
|
+
widthOrHeight: "height",
|
|
4535
|
+
offsetWidthOrHeight: "offsetHeight",
|
|
4536
|
+
maxWidthOrHeight: "max-height",
|
|
4537
|
+
scrollWidthOrHeight: "scrollHeight",
|
|
4538
|
+
clientXorY: "clientY",
|
|
4539
|
+
deltaXorY: "deltaY",
|
|
4540
|
+
scrollTopOrLeft: "scrollTop"
|
|
4541
|
+
}
|
|
4542
|
+
}, Ci = {
|
|
4543
|
+
name: "w-scrollable",
|
|
4544
|
+
props: {
|
|
4545
|
+
color: { type: String, default: "primary" },
|
|
4546
|
+
bgColor: { type: String },
|
|
4547
|
+
width: { type: [Number, String] },
|
|
4548
|
+
height: { type: [Number, String] }
|
|
4549
|
+
},
|
|
4501
4550
|
emits: [],
|
|
4502
|
-
data: () => ({
|
|
4503
|
-
|
|
4551
|
+
data: () => ({
|
|
4552
|
+
mounted: !1,
|
|
4553
|
+
scrollable: {
|
|
4554
|
+
top: null,
|
|
4555
|
+
left: null,
|
|
4556
|
+
hovered: !1
|
|
4557
|
+
},
|
|
4558
|
+
scrollValuePercent: 0
|
|
4559
|
+
}),
|
|
4560
|
+
computed: {
|
|
4561
|
+
isHorizontal() {
|
|
4562
|
+
var e, t, l, a;
|
|
4563
|
+
return this.mounted ? (console.log("\u{1F482}\u200D\u2642\uFE0F", (e = this.$refs.scrollable) == null ? void 0 : e.scrollWidth, (t = this.$refs.scrollable) == null ? void 0 : t.offsetWidth), this.width && !this.height || ((l = this.$refs.scrollable) == null ? void 0 : l.scrollWidth) > ((a = this.$refs.scrollable) == null ? void 0 : a.offsetWidth)) : !1;
|
|
4564
|
+
},
|
|
4565
|
+
m() {
|
|
4566
|
+
return _i[this.isHorizontal ? "h" : "v"];
|
|
4567
|
+
},
|
|
4568
|
+
scrollableClasses() {
|
|
4569
|
+
return {
|
|
4570
|
+
[`w-scrollable--${this.m.horizOrVert}`]: !0
|
|
4571
|
+
};
|
|
4572
|
+
},
|
|
4573
|
+
scrollbarClasses() {
|
|
4574
|
+
return {
|
|
4575
|
+
[`w-scrollbar--${this.m.horizOrVert}`]: !0
|
|
4576
|
+
};
|
|
4577
|
+
},
|
|
4578
|
+
thumbSizePercent() {
|
|
4579
|
+
var t, l;
|
|
4580
|
+
return this.mounted ? (console.log("\u{1F612}", this[this.m.widthOrHeight], this.$refs.scrollable[[this.m.offsetWidthOrHeight]]), ((t = this[this.m.widthOrHeight]) != null ? t : this.$refs.scrollable[[this.m.offsetWidthOrHeight]]) * 100 / ((l = this.$refs.scrollable) == null ? void 0 : l[this.m.scrollWidthOrHeight]) || 0) : 0;
|
|
4581
|
+
},
|
|
4582
|
+
scrollableStyles() {
|
|
4583
|
+
return {
|
|
4584
|
+
[this.m.maxWidthOrHeight]: `${this[this.m.widthOrHeight]}px`
|
|
4585
|
+
};
|
|
4586
|
+
},
|
|
4587
|
+
thumbStyles() {
|
|
4588
|
+
let e = this.scrollValuePercent;
|
|
4589
|
+
return e = Math.max(0, Math.min(e, 100 - this.thumbSizePercent)), {
|
|
4590
|
+
[this.m.widthOrHeight]: `${this.thumbSizePercent}%`,
|
|
4591
|
+
[this.m.topOrLeft]: `${e}%`
|
|
4592
|
+
};
|
|
4593
|
+
}
|
|
4594
|
+
},
|
|
4595
|
+
methods: {
|
|
4596
|
+
onTrackMouseDown(e) {
|
|
4597
|
+
if (this.isDisabled || this.isReadonly || "ontouchstart" in window && e.type === "mousedown")
|
|
4598
|
+
return;
|
|
4599
|
+
const { top: t, left: l, width: a, height: r } = this.$refs.track.getBoundingClientRect();
|
|
4600
|
+
this.isHorizontal ? (this.$refs.track.width = a, this.$refs.track.left = l) : (this.$refs.track.height = r, this.$refs.track.top = t), this.dragging = !0, this.computeScroll(e.type === "touchstart" ? e.touches[0][this.m.clientXorY] : e[this.m.clientXorY]), this.scroll(), document.addEventListener(e.type === "touchstart" ? "touchmove" : "mousemove", this.onDrag), document.addEventListener(e.type === "touchstart" ? "touchend" : "mouseup", this.onMouseUp, { once: !0 });
|
|
4601
|
+
},
|
|
4602
|
+
onDrag(e) {
|
|
4603
|
+
this.computeScroll(e.type === "touchmove" ? e.touches[0][this.m.clientXorY] : e[this.m.clientXorY]), this.scroll();
|
|
4604
|
+
},
|
|
4605
|
+
onMouseUp(e) {
|
|
4606
|
+
this.dragging = !1, document.removeEventListener(e.type === "touchend" ? "touchmove" : "mousemove", this.onDrag), this.$refs.thumb && this.$refs.thumb.focus();
|
|
4607
|
+
},
|
|
4608
|
+
onMouseEnter() {
|
|
4609
|
+
this.scrollable.hovered = !0;
|
|
4610
|
+
},
|
|
4611
|
+
onMouseLeave() {
|
|
4612
|
+
this.scrollable.hovered = !1;
|
|
4613
|
+
},
|
|
4614
|
+
onMouseWheel(e) {
|
|
4615
|
+
!this.scrollable.hovered || this.scrollValuePercent <= 0 && e[this.m.deltaXorY] < 0 || this.scrollValuePercent >= 100 - this.thumbSizePercent && e[this.m.deltaXorY] > 0 || (e.preventDefault(), this.scrollValuePercent += e[this.m.deltaXorY] * 0.05, this.scrollValuePercent = Math.max(0, Math.min(this.scrollValuePercent, 100)), this.scroll());
|
|
4616
|
+
},
|
|
4617
|
+
computeScroll(e) {
|
|
4618
|
+
const { top: t, left: l, width: a, height: r } = this.$refs.scrollable.getBoundingClientRect(), i = this.isHorizontal ? l : t, o = this.isHorizontal ? a : r;
|
|
4619
|
+
this.scrollValuePercent = Math.max(0, Math.min((e - i) / o * 100, 100));
|
|
4620
|
+
},
|
|
4621
|
+
scroll() {
|
|
4622
|
+
var e;
|
|
4623
|
+
this.$refs.scrollable[this.m.scrollTopOrLeft] = this.scrollValuePercent * ((e = this.$refs.scrollable) == null ? void 0 : e[this.m.scrollWidthOrHeight]) / 100, this.updateThumbPosition();
|
|
4624
|
+
},
|
|
4625
|
+
updateThumbPosition() {
|
|
4626
|
+
this.$refs.thumb.style[this.m.topOrLeft] = this.scrollValuePercent;
|
|
4627
|
+
}
|
|
4628
|
+
},
|
|
4629
|
+
mounted() {
|
|
4630
|
+
this.mounted = !0;
|
|
4631
|
+
const { top: e, left: t } = this.$refs.scrollable.getBoundingClientRect();
|
|
4632
|
+
this.scrollable.top = e, this.scrollable.left = t, this.$el.parentNode.style.position = "relative", this.$el.parentNode.style[this.m.maxWidthOrHeight] = `${this[this.m.widthOrHeight]}px`;
|
|
4633
|
+
}
|
|
4634
|
+
}, Si = /* @__PURE__ */ v(Ci, [["render", ki]]), Bi = ["for"], $i = ["aria-expanded", "aria-owns", "aria-activedescendant"], Vi = {
|
|
4504
4635
|
key: 1,
|
|
4505
4636
|
class: "w-select__selection-slot"
|
|
4506
|
-
},
|
|
4507
|
-
function
|
|
4508
|
-
const
|
|
4509
|
-
return s(),
|
|
4637
|
+
}, Ii = ["contenteditable", "id", "disabled", "tabindex", "innerHTML"], Ti = ["value", "name"], Ri = ["for"], Li = ["for"];
|
|
4638
|
+
function xi(e, t, l, a, r, i) {
|
|
4639
|
+
const o = $("w-icon"), n = $("w-list"), d = $("w-menu");
|
|
4640
|
+
return s(), m(V(e.formRegister ? "w-form-element" : "div"), C({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: i.selectionString, disabled: e.isDisabled, readonly: e.isReadonly }, {
|
|
4510
4641
|
valid: e.valid,
|
|
4511
4642
|
"onUpdate:valid": t[9] || (t[9] = (h) => e.valid = h),
|
|
4512
4643
|
onReset: i.onReset,
|
|
@@ -4514,14 +4645,14 @@ function Ti(e, t, l, o, n, i) {
|
|
|
4514
4645
|
class: i.classes
|
|
4515
4646
|
}), {
|
|
4516
4647
|
default: g(() => [
|
|
4517
|
-
l.labelPosition === "left" ? (s(), u(
|
|
4648
|
+
l.labelPosition === "left" ? (s(), u(k, { key: 0 }, [
|
|
4518
4649
|
e.$slots.default || l.label ? (s(), u("label", {
|
|
4519
4650
|
key: 0,
|
|
4520
4651
|
class: f(["w-select__label w-select__label--left w-form-el-shakable", e.labelClasses]),
|
|
4521
4652
|
for: `w-select--${e._.uid}`
|
|
4522
4653
|
}, [
|
|
4523
4654
|
p(e.$slots, "default", {}, () => [
|
|
4524
|
-
|
|
4655
|
+
S(_(l.label), 1)
|
|
4525
4656
|
])
|
|
4526
4657
|
], 10, Bi)) : c("", !0)
|
|
4527
4658
|
], 64)) : c("", !0),
|
|
@@ -4545,18 +4676,18 @@ function Ti(e, t, l, o, n, i) {
|
|
|
4545
4676
|
"aria-owns": `w-select-menu--${e._.uid}`,
|
|
4546
4677
|
"aria-activedescendant": `w-select-menu--${e._.uid}_item-1`
|
|
4547
4678
|
}, [
|
|
4548
|
-
l.innerIconLeft ? (s(),
|
|
4679
|
+
l.innerIconLeft ? (s(), m(o, {
|
|
4549
4680
|
key: 0,
|
|
4550
4681
|
class: "w-select__icon w-select__icon--inner-left",
|
|
4551
4682
|
tag: "label",
|
|
4552
4683
|
onClick: t[0] || (t[0] = (y) => e.$emit("click:inner-icon-left", y))
|
|
4553
4684
|
}, {
|
|
4554
4685
|
default: g(() => [
|
|
4555
|
-
|
|
4686
|
+
S(_(l.innerIconLeft), 1)
|
|
4556
4687
|
]),
|
|
4557
4688
|
_: 1
|
|
4558
4689
|
})) : c("", !0),
|
|
4559
|
-
e.$slots.selection ? (s(), u("div",
|
|
4690
|
+
e.$slots.selection ? (s(), u("div", Vi, [
|
|
4560
4691
|
p(e.$slots, "selection", {
|
|
4561
4692
|
item: l.multiple ? e.inputValue : e.inputValue[0]
|
|
4562
4693
|
})
|
|
@@ -4574,39 +4705,39 @@ function Ti(e, t, l, o, n, i) {
|
|
|
4574
4705
|
"aria-readonly": "true",
|
|
4575
4706
|
tabindex: e.tabindex || null,
|
|
4576
4707
|
innerHTML: e.$slots.selection ? "" : i.selectionString || l.placeholder
|
|
4577
|
-
}, null, 42,
|
|
4578
|
-
(s(!0), u(
|
|
4579
|
-
key:
|
|
4708
|
+
}, null, 42, Ii),
|
|
4709
|
+
(s(!0), u(k, null, L(e.inputValue.length ? e.inputValue : [{}], (y, B) => (s(), u("input", {
|
|
4710
|
+
key: B,
|
|
4580
4711
|
type: "hidden",
|
|
4581
4712
|
value: y.value === void 0 ? "" : y.value.toString(),
|
|
4582
4713
|
name: e.inputName + (l.multiple ? "[]" : "")
|
|
4583
|
-
}, null, 8,
|
|
4584
|
-
l.labelPosition === "inside" && i.showLabelInside ? (s(), u(
|
|
4714
|
+
}, null, 8, Ti))), 128)),
|
|
4715
|
+
l.labelPosition === "inside" && i.showLabelInside ? (s(), u(k, { key: 2 }, [
|
|
4585
4716
|
e.$slots.default || l.label ? (s(), u("label", {
|
|
4586
4717
|
key: 0,
|
|
4587
4718
|
class: f(["w-select__label w-select__label--inside w-form-el-shakable", e.labelClasses]),
|
|
4588
4719
|
for: `w-select--${e._.uid}`
|
|
4589
4720
|
}, [
|
|
4590
4721
|
p(e.$slots, "default", {}, () => [
|
|
4591
|
-
|
|
4722
|
+
S(_(l.label), 1)
|
|
4592
4723
|
])
|
|
4593
4724
|
], 10, Ri)) : c("", !0)
|
|
4594
4725
|
], 64)) : c("", !0),
|
|
4595
|
-
l.innerIconRight ? (s(),
|
|
4726
|
+
l.innerIconRight ? (s(), m(o, {
|
|
4596
4727
|
key: 3,
|
|
4597
4728
|
class: "w-select__icon w-select__icon--inner-right",
|
|
4598
4729
|
tag: "label",
|
|
4599
4730
|
onClick: t[4] || (t[4] = (y) => e.$emit("click:inner-icon-right", y))
|
|
4600
4731
|
}, {
|
|
4601
4732
|
default: g(() => [
|
|
4602
|
-
|
|
4733
|
+
S(_(l.innerIconRight), 1)
|
|
4603
4734
|
]),
|
|
4604
4735
|
_: 1
|
|
4605
4736
|
})) : c("", !0)
|
|
4606
|
-
], 10,
|
|
4737
|
+
], 10, $i)
|
|
4607
4738
|
]),
|
|
4608
4739
|
default: g(() => [
|
|
4609
|
-
I(
|
|
4740
|
+
I(n, {
|
|
4610
4741
|
ref: "w-list",
|
|
4611
4742
|
"model-value": e.inputValue,
|
|
4612
4743
|
"onUpdate:modelValue": i.onInput,
|
|
@@ -4625,23 +4756,23 @@ function Ti(e, t, l, o, n, i) {
|
|
|
4625
4756
|
role: "listbox",
|
|
4626
4757
|
tabindex: "-1"
|
|
4627
4758
|
}, Z({ _: 2 }, [
|
|
4628
|
-
|
|
4759
|
+
L(l.items.length, (h) => ({
|
|
4629
4760
|
name: `item.${h}`,
|
|
4630
|
-
fn: g(({ item: y, selected:
|
|
4631
|
-
e.$slots[`item.${h}`] && e.$slots[`item.${h}`](y,
|
|
4761
|
+
fn: g(({ item: y, selected: B, index: b }) => [
|
|
4762
|
+
e.$slots[`item.${h}`] && e.$slots[`item.${h}`](y, B, b) ? p(e.$slots, `item.${h}`, {
|
|
4632
4763
|
key: 0,
|
|
4633
4764
|
item: y,
|
|
4634
|
-
selected:
|
|
4635
|
-
index:
|
|
4765
|
+
selected: B,
|
|
4766
|
+
index: b
|
|
4636
4767
|
}, () => [
|
|
4637
|
-
|
|
4768
|
+
S(_(y[l.itemLabelKey]), 1)
|
|
4638
4769
|
]) : p(e.$slots, "item", {
|
|
4639
4770
|
key: 1,
|
|
4640
4771
|
item: y,
|
|
4641
|
-
selected:
|
|
4642
|
-
index:
|
|
4772
|
+
selected: B,
|
|
4773
|
+
index: b
|
|
4643
4774
|
}, () => [
|
|
4644
|
-
|
|
4775
|
+
S(_(y[l.itemLabelKey]), 1)
|
|
4645
4776
|
])
|
|
4646
4777
|
])
|
|
4647
4778
|
}))
|
|
@@ -4649,14 +4780,14 @@ function Ti(e, t, l, o, n, i) {
|
|
|
4649
4780
|
]),
|
|
4650
4781
|
_: 3
|
|
4651
4782
|
}, 16, ["modelValue", "menu-class", "append-to"]),
|
|
4652
|
-
l.labelPosition === "right" ? (s(), u(
|
|
4783
|
+
l.labelPosition === "right" ? (s(), u(k, { key: 1 }, [
|
|
4653
4784
|
e.$slots.default || l.label ? (s(), u("label", {
|
|
4654
4785
|
key: 0,
|
|
4655
4786
|
class: f(["w-select__label w-select__label--right w-form-el-shakable", e.labelClasses]),
|
|
4656
4787
|
for: `w-select--${e._.uid}`
|
|
4657
4788
|
}, [
|
|
4658
4789
|
p(e.$slots, "default", {}, () => [
|
|
4659
|
-
|
|
4790
|
+
S(_(l.label), 1)
|
|
4660
4791
|
])
|
|
4661
4792
|
], 10, Li)) : c("", !0)
|
|
4662
4793
|
], 64)) : c("", !0)
|
|
@@ -4664,7 +4795,7 @@ function Ti(e, t, l, o, n, i) {
|
|
|
4664
4795
|
_: 3
|
|
4665
4796
|
}, 16, ["valid", "onReset", "wrap", "class"]);
|
|
4666
4797
|
}
|
|
4667
|
-
const
|
|
4798
|
+
const Oi = {
|
|
4668
4799
|
name: "w-select",
|
|
4669
4800
|
mixins: [z],
|
|
4670
4801
|
props: {
|
|
@@ -4781,8 +4912,8 @@ const xi = {
|
|
|
4781
4912
|
if (t === void 0)
|
|
4782
4913
|
t = e.keyCode === 38 ? l.length - 1 : 0;
|
|
4783
4914
|
else {
|
|
4784
|
-
const
|
|
4785
|
-
t = (t + l.length +
|
|
4915
|
+
const a = e.keyCode === 38 ? -1 : 1;
|
|
4916
|
+
t = (t + l.length + a) % l.length;
|
|
4786
4917
|
}
|
|
4787
4918
|
this.onInput(l[t]);
|
|
4788
4919
|
}
|
|
@@ -4804,8 +4935,8 @@ const xi = {
|
|
|
4804
4935
|
e = Array.isArray(e) ? e : e !== void 0 ? [e] : [];
|
|
4805
4936
|
const t = this.selectItems.map((l) => l.value);
|
|
4806
4937
|
return e.map((l) => {
|
|
4807
|
-
let
|
|
4808
|
-
return typeof l == "object" && (
|
|
4938
|
+
let a = l;
|
|
4939
|
+
return typeof l == "object" && (a = l[this.itemValueKey] !== void 0 ? l[this.itemValueKey] : l[this.itemLabelKey] !== void 0 ? l[this.itemLabelKey] : l), this.selectItems[t.indexOf(a)];
|
|
4809
4940
|
}).filter((l) => l !== void 0);
|
|
4810
4941
|
},
|
|
4811
4942
|
openMenu() {
|
|
@@ -4830,15 +4961,15 @@ const xi = {
|
|
|
4830
4961
|
this.inputValue = this.checkSelection(this.modelValue);
|
|
4831
4962
|
}
|
|
4832
4963
|
}
|
|
4833
|
-
}, Pi = /* @__PURE__ */ v(
|
|
4964
|
+
}, Pi = /* @__PURE__ */ v(Oi, [["render", xi]]), zi = ["for"], Mi = ["for", "innerHTML"], Ei = { class: "w-slider__track-wrap" }, Wi = ["aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-readonly"], Ai = ["id", "name", "model-value", "disabled", "readonly", "aria-readonly", "tabindex"], Ni = ["for"], Ki = { key: 0 }, Hi = {
|
|
4834
4965
|
key: 0,
|
|
4835
4966
|
class: "w-slider__step-labels"
|
|
4836
|
-
}, Di = ["onClick"], Fi = ["for"],
|
|
4837
|
-
function
|
|
4838
|
-
return s(),
|
|
4967
|
+
}, Di = ["onClick"], Fi = ["for"], ji = ["for", "innerHTML"];
|
|
4968
|
+
function Ui(e, t, l, a, r, i) {
|
|
4969
|
+
return s(), m(V(e.formRegister ? "w-form-element" : "div"), C({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: e.rangeValueScaled, disabled: e.isDisabled, readonly: e.isReadonly }, {
|
|
4839
4970
|
valid: e.valid,
|
|
4840
|
-
"onUpdate:valid": t[8] || (t[8] = (
|
|
4841
|
-
onReset: t[9] || (t[9] = (
|
|
4971
|
+
"onUpdate:valid": t[8] || (t[8] = (o) => e.valid = o),
|
|
4972
|
+
onReset: t[9] || (t[9] = (o) => {
|
|
4842
4973
|
e.rangeValuePercent = 0, i.updateRangeValueScaled();
|
|
4843
4974
|
}),
|
|
4844
4975
|
wrap: e.formRegister || null,
|
|
@@ -4851,18 +4982,18 @@ function ji(e, t, l, o, n, i) {
|
|
|
4851
4982
|
for: `button--${e._.uid}`
|
|
4852
4983
|
}, [
|
|
4853
4984
|
p(e.$slots, "label-left")
|
|
4854
|
-
], 10,
|
|
4985
|
+
], 10, zi)) : l.labelLeft ? (s(), u("label", {
|
|
4855
4986
|
key: 1,
|
|
4856
4987
|
class: f(["w-slider__label w-slider__label--left w-form-el-shakable", e.labelClasses]),
|
|
4857
4988
|
for: `button--${e._.uid}`,
|
|
4858
4989
|
innerHTML: l.labelLeft
|
|
4859
|
-
}, null, 10,
|
|
4990
|
+
}, null, 10, Mi)) : c("", !0),
|
|
4860
4991
|
w("div", Ei, [
|
|
4861
4992
|
w("div", {
|
|
4862
4993
|
class: f(["w-slider__track", i.trackClasses]),
|
|
4863
4994
|
ref: "track",
|
|
4864
|
-
onMousedown: t[4] || (t[4] = (...
|
|
4865
|
-
onTouchstart: t[5] || (t[5] = (...
|
|
4995
|
+
onMousedown: t[4] || (t[4] = (...o) => i.onTrackMouseDown && i.onTrackMouseDown(...o)),
|
|
4996
|
+
onTouchstart: t[5] || (t[5] = (...o) => i.onTrackMouseDown && i.onTrackMouseDown(...o)),
|
|
4866
4997
|
role: "slider",
|
|
4867
4998
|
"aria-label": "Slider",
|
|
4868
4999
|
"aria-valuemin": i.minVal,
|
|
@@ -4873,11 +5004,11 @@ function ji(e, t, l, o, n, i) {
|
|
|
4873
5004
|
}, [
|
|
4874
5005
|
w("div", {
|
|
4875
5006
|
class: f(["w-slider__range", i.rangeClasses]),
|
|
4876
|
-
style:
|
|
5007
|
+
style: R(i.rangeStyles)
|
|
4877
5008
|
}, null, 6),
|
|
4878
5009
|
w("div", {
|
|
4879
5010
|
class: "w-slider__thumb",
|
|
4880
|
-
style:
|
|
5011
|
+
style: R(i.thumbStyles)
|
|
4881
5012
|
}, [
|
|
4882
5013
|
w("button", {
|
|
4883
5014
|
class: f(["w-slider__thumb-button", [l.color]]),
|
|
@@ -4890,11 +5021,11 @@ function ji(e, t, l, o, n, i) {
|
|
|
4890
5021
|
"aria-readonly": e.isReadonly ? "true" : "false",
|
|
4891
5022
|
tabindex: e.isDisabled || e.isReadonly ? -1 : null,
|
|
4892
5023
|
onKeydown: [
|
|
4893
|
-
t[0] || (t[0] =
|
|
4894
|
-
t[1] || (t[1] =
|
|
5024
|
+
t[0] || (t[0] = E((o) => i.onKeyDown(o, -1), ["left"])),
|
|
5025
|
+
t[1] || (t[1] = E((o) => i.onKeyDown(o, 1), ["right"]))
|
|
4895
5026
|
],
|
|
4896
|
-
onFocus: t[2] || (t[2] = (
|
|
4897
|
-
onClick: t[3] || (t[3] =
|
|
5027
|
+
onFocus: t[2] || (t[2] = (o) => e.$emit("focus", o)),
|
|
5028
|
+
onClick: t[3] || (t[3] = M(() => {
|
|
4898
5029
|
}, ["prevent"]))
|
|
4899
5030
|
}, null, 42, Ai),
|
|
4900
5031
|
l.thumbLabel ? (s(), u("label", {
|
|
@@ -4902,36 +5033,36 @@ function ji(e, t, l, o, n, i) {
|
|
|
4902
5033
|
class: f(["w-slider__thumb-label", i.thumbClasses]),
|
|
4903
5034
|
for: `button--${e._.uid}`
|
|
4904
5035
|
}, [
|
|
4905
|
-
l.thumbLabel === "droplet" ? (s(), u("div",
|
|
5036
|
+
l.thumbLabel === "droplet" ? (s(), u("div", Ki, [
|
|
4906
5037
|
p(e.$slots, "label", { value: e.rangeValueScaled }, () => [
|
|
4907
|
-
|
|
5038
|
+
S(_(~~e.rangeValueScaled), 1)
|
|
4908
5039
|
])
|
|
4909
5040
|
])) : p(e.$slots, "label", {
|
|
4910
5041
|
key: 1,
|
|
4911
5042
|
value: e.rangeValueScaled
|
|
4912
5043
|
}, () => [
|
|
4913
|
-
|
|
5044
|
+
S(_(~~e.rangeValueScaled), 1)
|
|
4914
5045
|
])
|
|
4915
5046
|
], 10, Ni)) : c("", !0)
|
|
4916
5047
|
], 4)
|
|
4917
|
-
], 42,
|
|
4918
|
-
l.stepLabels && l.step ? (s(), u("div",
|
|
5048
|
+
], 42, Wi),
|
|
5049
|
+
l.stepLabels && l.step ? (s(), u("div", Hi, [
|
|
4919
5050
|
w("div", {
|
|
4920
5051
|
class: "w-slider__step-label",
|
|
4921
|
-
onClick: t[6] || (t[6] = (
|
|
4922
|
-
},
|
|
4923
|
-
(s(!0), u(
|
|
5052
|
+
onClick: t[6] || (t[6] = (o) => i.onStepLabelClick(0))
|
|
5053
|
+
}, _(this.minVal), 1),
|
|
5054
|
+
(s(!0), u(k, null, L(~~i.numberOfSteps, (o) => (s(), u("div", {
|
|
4924
5055
|
class: "w-slider__step-label",
|
|
4925
|
-
key:
|
|
4926
|
-
onClick: (
|
|
4927
|
-
style:
|
|
4928
|
-
},
|
|
5056
|
+
key: o,
|
|
5057
|
+
onClick: (n) => i.onStepLabelClick(o * (100 / i.numberOfSteps)),
|
|
5058
|
+
style: R(`left: ${o * (100 / i.numberOfSteps)}%`)
|
|
5059
|
+
}, _(i.percentToScaled(o * (100 / i.numberOfSteps))), 13, Di))), 128)),
|
|
4929
5060
|
~~i.numberOfSteps !== i.numberOfSteps ? (s(), u("div", {
|
|
4930
5061
|
key: 0,
|
|
4931
5062
|
class: "w-slider__step-label",
|
|
4932
|
-
onClick: t[7] || (t[7] = (
|
|
5063
|
+
onClick: t[7] || (t[7] = (o) => i.onStepLabelClick(100)),
|
|
4933
5064
|
style: { left: "100%" }
|
|
4934
|
-
},
|
|
5065
|
+
}, _(this.maxVal), 1)) : c("", !0)
|
|
4935
5066
|
])) : c("", !0)
|
|
4936
5067
|
]),
|
|
4937
5068
|
e.$slots["label-right"] ? (s(), u("label", {
|
|
@@ -4945,12 +5076,12 @@ function ji(e, t, l, o, n, i) {
|
|
|
4945
5076
|
class: f(["w-slider__label w-slider__label--right w-form-el-shakable", e.labelClasses]),
|
|
4946
5077
|
for: `button--${e._.uid}`,
|
|
4947
5078
|
innerHTML: l.labelRight
|
|
4948
|
-
}, null, 10,
|
|
5079
|
+
}, null, 10, ji)) : c("", !0)
|
|
4949
5080
|
]),
|
|
4950
5081
|
_: 3
|
|
4951
5082
|
}, 16, ["valid", "wrap", "class"]);
|
|
4952
5083
|
}
|
|
4953
|
-
const
|
|
5084
|
+
const qi = {
|
|
4954
5085
|
name: "w-slider",
|
|
4955
5086
|
mixins: [z],
|
|
4956
5087
|
props: {
|
|
@@ -5084,17 +5215,17 @@ const Ui = {
|
|
|
5084
5215
|
this.rangeValueScaled !== e && (this.rangeValueScaled = e, this.rangeValuePercent = this.scaledToPercent(e));
|
|
5085
5216
|
}
|
|
5086
5217
|
}
|
|
5087
|
-
},
|
|
5088
|
-
function
|
|
5218
|
+
}, Xi = /* @__PURE__ */ v(qi, [["render", Ui]]), Yi = { key: 0 };
|
|
5219
|
+
function Gi(e, t, l, a, r, i) {
|
|
5089
5220
|
return l.modelValue || l.modelValue === void 0 ? (s(), u("div", {
|
|
5090
5221
|
key: 0,
|
|
5091
5222
|
class: f(["w-spinner", i.classes]),
|
|
5092
|
-
style:
|
|
5223
|
+
style: R(i.styles)
|
|
5093
5224
|
}, [
|
|
5094
|
-
i.isThreeDots ? (s(), u("span",
|
|
5225
|
+
i.isThreeDots ? (s(), u("span", Yi)) : c("", !0)
|
|
5095
5226
|
], 6)) : c("", !0);
|
|
5096
5227
|
}
|
|
5097
|
-
const
|
|
5228
|
+
const Ji = {
|
|
5098
5229
|
name: "w-spinner",
|
|
5099
5230
|
props: {
|
|
5100
5231
|
modelValue: {},
|
|
@@ -5132,13 +5263,13 @@ const Yi = {
|
|
|
5132
5263
|
};
|
|
5133
5264
|
}
|
|
5134
5265
|
}
|
|
5135
|
-
},
|
|
5136
|
-
function
|
|
5266
|
+
}, Qi = /* @__PURE__ */ v(Ji, [["render", Gi]]);
|
|
5267
|
+
function Zi(e, t, l, a, r, i) {
|
|
5137
5268
|
return s(), u("div", {
|
|
5138
5269
|
class: f(["w-steps", i.classes])
|
|
5139
5270
|
}, null, 2);
|
|
5140
5271
|
}
|
|
5141
|
-
const
|
|
5272
|
+
const es = {
|
|
5142
5273
|
name: "w-steps",
|
|
5143
5274
|
props: {
|
|
5144
5275
|
dark: { type: Boolean },
|
|
@@ -5154,20 +5285,20 @@ const Zi = {
|
|
|
5154
5285
|
};
|
|
5155
5286
|
}
|
|
5156
5287
|
}
|
|
5157
|
-
},
|
|
5288
|
+
}, ts = /* @__PURE__ */ v(es, [["render", Zi]]), ls = ["id", "name", "checked", "disabled", "readonly", "aria-readonly", "required", "tabindex", "aria-checked"], is = ["for"], ss = {
|
|
5158
5289
|
key: 0,
|
|
5159
5290
|
class: "w-switch__track"
|
|
5160
|
-
},
|
|
5291
|
+
}, as = {
|
|
5161
5292
|
key: 1,
|
|
5162
5293
|
class: "w-switch__thumb"
|
|
5163
|
-
},
|
|
5164
|
-
function
|
|
5165
|
-
const
|
|
5166
|
-
return s(),
|
|
5294
|
+
}, os = ["for"];
|
|
5295
|
+
function ns(e, t, l, a, r, i) {
|
|
5296
|
+
const o = $("w-progress");
|
|
5297
|
+
return s(), m(V(e.formRegister ? "w-form-element" : "div"), C({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: r.isOn, disabled: e.isDisabled, readonly: e.isReadonly }, {
|
|
5167
5298
|
valid: e.valid,
|
|
5168
|
-
"onUpdate:valid": t[3] || (t[3] = (
|
|
5169
|
-
onReset: t[4] || (t[4] = (
|
|
5170
|
-
e.$emit("update:modelValue",
|
|
5299
|
+
"onUpdate:valid": t[3] || (t[3] = (n) => e.valid = n),
|
|
5300
|
+
onReset: t[4] || (t[4] = (n) => {
|
|
5301
|
+
e.$emit("update:modelValue", r.isOn = null), e.$emit("input", null);
|
|
5171
5302
|
}),
|
|
5172
5303
|
class: i.classes
|
|
5173
5304
|
}), {
|
|
@@ -5177,61 +5308,61 @@ function os(e, t, l, o, n, i) {
|
|
|
5177
5308
|
id: `w-switch--${e._.uid}`,
|
|
5178
5309
|
type: "checkbox",
|
|
5179
5310
|
name: e.inputName,
|
|
5180
|
-
checked:
|
|
5311
|
+
checked: r.isOn,
|
|
5181
5312
|
disabled: e.isDisabled || e.isReadonly || null,
|
|
5182
5313
|
readonly: e.isReadonly || null,
|
|
5183
5314
|
"aria-readonly": e.isReadonly ? "true" : "false",
|
|
5184
5315
|
required: e.required || null,
|
|
5185
5316
|
tabindex: e.tabindex || null,
|
|
5186
|
-
onChange: t[0] || (t[0] = (
|
|
5187
|
-
onFocus: t[1] || (t[1] = (
|
|
5188
|
-
"aria-checked":
|
|
5317
|
+
onChange: t[0] || (t[0] = (n) => i.onInput()),
|
|
5318
|
+
onFocus: t[1] || (t[1] = (n) => e.$emit("focus", n)),
|
|
5319
|
+
"aria-checked": r.isOn || "false",
|
|
5189
5320
|
role: "switch"
|
|
5190
|
-
}, null, 40,
|
|
5191
|
-
i.hasLabel && l.labelOnLeft ? (s(), u(
|
|
5321
|
+
}, null, 40, ls),
|
|
5322
|
+
i.hasLabel && l.labelOnLeft ? (s(), u(k, { key: 0 }, [
|
|
5192
5323
|
e.$slots.default || l.label ? (s(), u("label", {
|
|
5193
5324
|
key: 0,
|
|
5194
5325
|
class: f(["w-switch__label w-switch__label--left w-form-el-shakable", e.labelClasses]),
|
|
5195
5326
|
for: `w-switch--${e._.uid}`
|
|
5196
5327
|
}, [
|
|
5197
5328
|
p(e.$slots, "default", {}, () => [
|
|
5198
|
-
|
|
5329
|
+
S(_(l.label), 1)
|
|
5199
5330
|
])
|
|
5200
|
-
], 10,
|
|
5331
|
+
], 10, is)) : c("", !0)
|
|
5201
5332
|
], 64)) : c("", !0),
|
|
5202
5333
|
w("div", C({
|
|
5203
5334
|
class: "w-switch__input",
|
|
5204
|
-
onClick: t[2] || (t[2] = (
|
|
5335
|
+
onClick: t[2] || (t[2] = (n) => {
|
|
5205
5336
|
e.$refs.input.focus(), e.$refs.input.click();
|
|
5206
5337
|
})
|
|
5207
|
-
},
|
|
5208
|
-
e.$slots.track ? (s(), u("div",
|
|
5338
|
+
}, W(e.$attrs, !0), { class: i.inputClasses }), [
|
|
5339
|
+
e.$slots.track ? (s(), u("div", ss, [
|
|
5209
5340
|
p(e.$slots, "track")
|
|
5210
5341
|
])) : c("", !0),
|
|
5211
|
-
e.$slots.thumb || l.loading ? (s(), u("div",
|
|
5212
|
-
l.loading ? (s(),
|
|
5342
|
+
e.$slots.thumb || l.loading ? (s(), u("div", as, [
|
|
5343
|
+
l.loading ? (s(), m(o, C({
|
|
5213
5344
|
key: 0,
|
|
5214
5345
|
circle: "",
|
|
5215
5346
|
color: "inherit"
|
|
5216
5347
|
}, typeof l.loading == "number" && { "model-value": l.loading }), null, 16)) : p(e.$slots, "thumb", { key: 1 })
|
|
5217
5348
|
])) : c("", !0)
|
|
5218
5349
|
], 16),
|
|
5219
|
-
i.hasLabel && !l.labelOnLeft ? (s(), u(
|
|
5350
|
+
i.hasLabel && !l.labelOnLeft ? (s(), u(k, { key: 1 }, [
|
|
5220
5351
|
e.$slots.default || l.label ? (s(), u("label", {
|
|
5221
5352
|
key: 0,
|
|
5222
5353
|
class: f(["w-switch__label w-switch__label--right w-form-el-shakable", e.labelClasses]),
|
|
5223
5354
|
for: `w-switch--${e._.uid}`
|
|
5224
5355
|
}, [
|
|
5225
5356
|
p(e.$slots, "default", {}, () => [
|
|
5226
|
-
|
|
5357
|
+
S(_(l.label), 1)
|
|
5227
5358
|
])
|
|
5228
|
-
], 10,
|
|
5359
|
+
], 10, os)) : c("", !0)
|
|
5229
5360
|
], 64)) : c("", !0)
|
|
5230
5361
|
]),
|
|
5231
5362
|
_: 3
|
|
5232
5363
|
}, 16, ["valid", "class"]);
|
|
5233
5364
|
}
|
|
5234
|
-
const
|
|
5365
|
+
const rs = {
|
|
5235
5366
|
name: "w-switch",
|
|
5236
5367
|
mixins: [z],
|
|
5237
5368
|
props: {
|
|
@@ -5296,23 +5427,27 @@ const ns = {
|
|
|
5296
5427
|
this.isOn = e;
|
|
5297
5428
|
}
|
|
5298
5429
|
}
|
|
5299
|
-
},
|
|
5300
|
-
function
|
|
5301
|
-
return s(), u("div",
|
|
5430
|
+
}, ds = /* @__PURE__ */ v(rs, [["render", ns]]), us = { class: "w-tabs__content" };
|
|
5431
|
+
function hs(e, t, l, a, r, i) {
|
|
5432
|
+
return s(), u("div", us, [
|
|
5302
5433
|
p(e.$slots, "default", { item: l.item })
|
|
5303
5434
|
]);
|
|
5304
5435
|
}
|
|
5305
|
-
const
|
|
5306
|
-
|
|
5307
|
-
|
|
5436
|
+
const cs = {
|
|
5437
|
+
name: "tab-content",
|
|
5438
|
+
props: { item: Object },
|
|
5439
|
+
mounted() {
|
|
5440
|
+
console.log("mounted!", this.item._uid);
|
|
5441
|
+
}
|
|
5442
|
+
}, ps = /* @__PURE__ */ v(cs, [["render", hs]]), fs = ["onClick", "onFocus", "tabindex", "onKeypress", "aria-selected"], gs = ["innerHTML"], ms = {
|
|
5308
5443
|
key: 0,
|
|
5309
5444
|
class: "w-tabs__bar-extra"
|
|
5310
|
-
},
|
|
5445
|
+
}, bs = {
|
|
5311
5446
|
key: 0,
|
|
5312
5447
|
class: "w-tabs__content-wrap"
|
|
5313
|
-
},
|
|
5314
|
-
function
|
|
5315
|
-
const
|
|
5448
|
+
}, ys = ["innerHTML"], ws = ["innerHTML"];
|
|
5449
|
+
function vs(e, t, l, a, r, i) {
|
|
5450
|
+
const o = $("tab-content");
|
|
5316
5451
|
return s(), u("div", {
|
|
5317
5452
|
class: f(["w-tabs", i.tabsClasses])
|
|
5318
5453
|
}, [
|
|
@@ -5320,87 +5455,128 @@ function ys(e, t, l, o, n, i) {
|
|
|
5320
5455
|
class: f(["w-tabs__bar", i.tabsBarClasses]),
|
|
5321
5456
|
ref: "tabs-bar"
|
|
5322
5457
|
}, [
|
|
5323
|
-
(s(!0), u(
|
|
5324
|
-
class: f(["w-tabs__bar-item", i.barItemClasses(
|
|
5458
|
+
(s(!0), u(k, null, L(e.tabs, (n, d) => (s(), u("div", {
|
|
5459
|
+
class: f(["w-tabs__bar-item", i.barItemClasses(n)]),
|
|
5325
5460
|
key: d,
|
|
5326
|
-
onClick: (h) => !
|
|
5327
|
-
onFocus: (h) => e.$emit("focus", i.getOriginalItem(
|
|
5328
|
-
tabindex: !
|
|
5329
|
-
onKeypress:
|
|
5330
|
-
"aria-selected":
|
|
5461
|
+
onClick: (h) => !n._disabled && n._uid !== e.activeTabUid && i.openTab(n._uid),
|
|
5462
|
+
onFocus: (h) => e.$emit("focus", i.getOriginalItem(n)),
|
|
5463
|
+
tabindex: !n._disabled && 0,
|
|
5464
|
+
onKeypress: E((h) => !n._disabled && i.openTab(n._uid), ["enter"]),
|
|
5465
|
+
"aria-selected": n._uid === e.activeTabUid ? "true" : "false",
|
|
5331
5466
|
role: "tab"
|
|
5332
5467
|
}, [
|
|
5333
|
-
e.$slots[`item-title.${
|
|
5468
|
+
e.$slots[`item-title.${n.id || d + 1}`] ? p(e.$slots, `item-title.${n.id || d + 1}`, {
|
|
5334
5469
|
key: 0,
|
|
5335
|
-
item: i.getOriginalItem(
|
|
5470
|
+
item: i.getOriginalItem(n),
|
|
5336
5471
|
index: d + 1,
|
|
5337
|
-
active:
|
|
5472
|
+
active: n._uid === e.activeTabUid
|
|
5338
5473
|
}) : p(e.$slots, "item-title", {
|
|
5339
5474
|
key: 1,
|
|
5340
|
-
item: i.getOriginalItem(
|
|
5475
|
+
item: i.getOriginalItem(n),
|
|
5341
5476
|
index: d + 1,
|
|
5342
|
-
active:
|
|
5477
|
+
active: n._uid === e.activeTabUid
|
|
5343
5478
|
}, () => [
|
|
5344
5479
|
w("div", {
|
|
5345
|
-
innerHTML:
|
|
5346
|
-
}, null, 8,
|
|
5480
|
+
innerHTML: n[l.itemTitleKey]
|
|
5481
|
+
}, null, 8, gs)
|
|
5347
5482
|
])
|
|
5348
|
-
], 42,
|
|
5349
|
-
e.$slots["tabs-bar-extra"] ? (s(), u("div",
|
|
5483
|
+
], 42, fs))), 128)),
|
|
5484
|
+
e.$slots["tabs-bar-extra"] ? (s(), u("div", ms, [
|
|
5350
5485
|
p(e.$slots, "tabs-bar-extra")
|
|
5351
5486
|
])) : c("", !0),
|
|
5352
5487
|
!l.noSlider && !l.card ? (s(), u("div", {
|
|
5353
5488
|
key: 1,
|
|
5354
5489
|
class: f(["w-tabs__slider", l.sliderColor]),
|
|
5355
|
-
style:
|
|
5490
|
+
style: R(i.sliderStyles)
|
|
5356
5491
|
}, null, 6)) : c("", !0)
|
|
5357
5492
|
], 2),
|
|
5358
|
-
|
|
5359
|
-
|
|
5493
|
+
e.tabs.length ? (s(), u("div", bs, [
|
|
5494
|
+
l.keepInDom ? (s(), m(ae, {
|
|
5495
|
+
key: 0,
|
|
5496
|
+
name: i.transitionName
|
|
5497
|
+
}, {
|
|
5498
|
+
default: g(() => [
|
|
5499
|
+
(s(!0), u(k, null, L(e.tabs, (n, d) => N((s(), m(o, {
|
|
5500
|
+
key: n._uid,
|
|
5501
|
+
item: n,
|
|
5502
|
+
class: f(l.contentClass)
|
|
5503
|
+
}, {
|
|
5504
|
+
default: g(() => [
|
|
5505
|
+
e.$slots[`item-content.${n._index + 1}`] ? p(e.$slots, `item-content.${n._index + 1}`, {
|
|
5506
|
+
key: 0,
|
|
5507
|
+
item: i.getOriginalItem(n),
|
|
5508
|
+
index: n._index + 1,
|
|
5509
|
+
active: n._index === i.activeTab._index
|
|
5510
|
+
}) : p(e.$slots, "item-content", {
|
|
5511
|
+
key: 1,
|
|
5512
|
+
item: i.getOriginalItem(n),
|
|
5513
|
+
index: n._index + 1,
|
|
5514
|
+
active: n._index === i.activeTab._index
|
|
5515
|
+
}, () => [
|
|
5516
|
+
n[l.itemContentKey] ? (s(), u("div", {
|
|
5517
|
+
key: 0,
|
|
5518
|
+
innerHTML: n[l.itemContentKey]
|
|
5519
|
+
}, null, 8, ys)) : c("", !0)
|
|
5520
|
+
])
|
|
5521
|
+
]),
|
|
5522
|
+
_: 2
|
|
5523
|
+
}, 1032, ["item", "class"])), [
|
|
5524
|
+
[oe, n._uid === i.activeTab._uid]
|
|
5525
|
+
])), 128))
|
|
5526
|
+
]),
|
|
5527
|
+
_: 3
|
|
5528
|
+
}, 8, ["name"])) : (s(), m(O, {
|
|
5529
|
+
key: 1,
|
|
5360
5530
|
name: i.transitionName,
|
|
5361
5531
|
mode: i.transitionMode
|
|
5362
5532
|
}, {
|
|
5363
5533
|
default: g(() => [
|
|
5364
|
-
(s(),
|
|
5365
|
-
|
|
5366
|
-
|
|
5534
|
+
(s(), m(Ve, {
|
|
5535
|
+
exclude: l.keepAlive ? "" : "tab-content"
|
|
5536
|
+
}, [
|
|
5537
|
+
(s(), m(o, {
|
|
5538
|
+
key: e.activeTabUid,
|
|
5367
5539
|
item: i.activeTab,
|
|
5368
5540
|
class: f(l.contentClass)
|
|
5369
5541
|
}, {
|
|
5370
|
-
default: g(({ item:
|
|
5371
|
-
|
|
5372
|
-
|
|
5373
|
-
item: i.getOriginalItem(r),
|
|
5374
|
-
index: r._index + 1,
|
|
5375
|
-
active: r._index === i.activeTab._index
|
|
5376
|
-
}) : p(e.$slots, "item-content", {
|
|
5377
|
-
key: 1,
|
|
5378
|
-
item: i.getOriginalItem(r),
|
|
5379
|
-
index: r._index + 1,
|
|
5380
|
-
active: r._index === i.activeTab._index
|
|
5381
|
-
}, () => [
|
|
5382
|
-
r[l.itemContentKey] ? (s(), u("div", {
|
|
5542
|
+
default: g(({ item: n }) => [
|
|
5543
|
+
n ? (s(), u(k, { key: 0 }, [
|
|
5544
|
+
e.$slots[`item-content.${n._index + 1}`] ? p(e.$slots, `item-content.${n._index + 1}`, {
|
|
5383
5545
|
key: 0,
|
|
5384
|
-
|
|
5385
|
-
|
|
5386
|
-
|
|
5546
|
+
item: i.getOriginalItem(n),
|
|
5547
|
+
index: n._index + 1,
|
|
5548
|
+
active: n._uid === e.activeTabUid
|
|
5549
|
+
}) : p(e.$slots, "item-content", {
|
|
5550
|
+
key: 1,
|
|
5551
|
+
item: i.getOriginalItem(n),
|
|
5552
|
+
index: n._index + 1,
|
|
5553
|
+
active: n._uid === e.activeTabUid
|
|
5554
|
+
}, () => [
|
|
5555
|
+
n[l.itemContentKey] ? (s(), u("div", {
|
|
5556
|
+
key: 0,
|
|
5557
|
+
innerHTML: n[l.itemContentKey]
|
|
5558
|
+
}, null, 8, ws)) : c("", !0)
|
|
5559
|
+
])
|
|
5560
|
+
], 64)) : c("", !0)
|
|
5387
5561
|
]),
|
|
5388
5562
|
_: 3
|
|
5389
5563
|
}, 8, ["item", "class"]))
|
|
5390
|
-
],
|
|
5564
|
+
], 1032, ["exclude"]))
|
|
5391
5565
|
]),
|
|
5392
5566
|
_: 3
|
|
5393
|
-
}, 8, ["name", "mode"])
|
|
5567
|
+
}, 8, ["name", "mode"]))
|
|
5394
5568
|
])) : c("", !0)
|
|
5395
5569
|
], 2);
|
|
5396
5570
|
}
|
|
5397
|
-
|
|
5571
|
+
let fe = 0;
|
|
5572
|
+
const ks = {
|
|
5398
5573
|
name: "w-tabs",
|
|
5399
5574
|
props: {
|
|
5400
5575
|
modelValue: { type: [Number, String] },
|
|
5401
5576
|
color: { type: String },
|
|
5402
5577
|
bgColor: { type: String },
|
|
5403
5578
|
items: { type: [Array, Number] },
|
|
5579
|
+
itemIdKey: { type: String, default: "id" },
|
|
5404
5580
|
itemTitleKey: { type: String, default: "title" },
|
|
5405
5581
|
itemContentKey: { type: String, default: "content" },
|
|
5406
5582
|
titleClass: { type: String },
|
|
@@ -5415,12 +5591,16 @@ const ws = {
|
|
|
5415
5591
|
right: { type: Boolean },
|
|
5416
5592
|
card: { type: Boolean },
|
|
5417
5593
|
dark: { type: Boolean },
|
|
5418
|
-
light: { type: Boolean }
|
|
5594
|
+
light: { type: Boolean },
|
|
5595
|
+
keepAlive: { type: Boolean, default: !0 },
|
|
5596
|
+
keepInDom: { type: Boolean, default: !1 }
|
|
5419
5597
|
},
|
|
5420
|
-
components: { TabContent:
|
|
5598
|
+
components: { TabContent: ps },
|
|
5421
5599
|
emits: ["input", "update:modelValue", "focus"],
|
|
5422
5600
|
data: () => ({
|
|
5601
|
+
tabs: [],
|
|
5423
5602
|
activeTabEl: null,
|
|
5603
|
+
activeTabUid: null,
|
|
5424
5604
|
activeTabIndex: 0,
|
|
5425
5605
|
prevTabIndex: -1,
|
|
5426
5606
|
slider: {
|
|
@@ -5439,15 +5619,11 @@ const ws = {
|
|
|
5439
5619
|
direction() {
|
|
5440
5620
|
return this.activeTab._index < this.prevTabIndex ? "right" : "left";
|
|
5441
5621
|
},
|
|
5442
|
-
tabsItems() {
|
|
5443
|
-
return (typeof this.items == "number" ? Array(this.items).fill({}) : this.items).map((t, l) => G({
|
|
5444
|
-
...t,
|
|
5445
|
-
_index: l,
|
|
5446
|
-
_disabled: !!t.disabled
|
|
5447
|
-
}));
|
|
5448
|
-
},
|
|
5449
5622
|
activeTab() {
|
|
5450
|
-
return this.
|
|
5623
|
+
return this.tabsByUid[this.activeTabUid] || this.tabs[0] || {};
|
|
5624
|
+
},
|
|
5625
|
+
tabsByUid() {
|
|
5626
|
+
return this.tabs.reduce((e, t) => (e[t._uid] = t) && e, {});
|
|
5451
5627
|
},
|
|
5452
5628
|
tabsClasses() {
|
|
5453
5629
|
return {
|
|
@@ -5474,6 +5650,34 @@ const ws = {
|
|
|
5474
5650
|
}
|
|
5475
5651
|
},
|
|
5476
5652
|
methods: {
|
|
5653
|
+
addTab(e) {
|
|
5654
|
+
var t, l, a;
|
|
5655
|
+
(l = (t = e[this.itemIdKey]) != null ? t : e._uid) != null && l || (e._uid = +`${this._.uid}${++fe}`), this.tabs.push({
|
|
5656
|
+
_uid: (a = e[this.itemIdKey]) != null ? a : e._uid,
|
|
5657
|
+
_index: this.tabs.length,
|
|
5658
|
+
...e,
|
|
5659
|
+
_disabled: !!e.disabled
|
|
5660
|
+
});
|
|
5661
|
+
},
|
|
5662
|
+
refreshTabs() {
|
|
5663
|
+
let e = this.items;
|
|
5664
|
+
typeof e == "number" && (e = Array(e).fill().map((t, l) => this.tabs[l] || {})), this.tabs = e.map((t, l) => {
|
|
5665
|
+
var a, r, i;
|
|
5666
|
+
return (r = (a = t[this.itemIdKey]) != null ? a : t._uid) != null && r || (t._uid = +`${this._.uid}${++fe}`), {
|
|
5667
|
+
...t,
|
|
5668
|
+
_uid: (i = t[this.itemIdKey]) != null ? i : t._uid,
|
|
5669
|
+
_index: l,
|
|
5670
|
+
_disabled: !!t.disabled
|
|
5671
|
+
};
|
|
5672
|
+
});
|
|
5673
|
+
},
|
|
5674
|
+
reopenTheActiveTab() {
|
|
5675
|
+
var t, l, a;
|
|
5676
|
+
if (this.tabs.length === 1)
|
|
5677
|
+
return this.openTab(this.tabs[0]._uid);
|
|
5678
|
+
let e = (t = this.tabsByUid[this.activeTabUid]) == null ? void 0 : t._uid;
|
|
5679
|
+
e || (e = (l = this.tabs[this.activeTabIndex]) == null ? void 0 : l._uid), e || (e = (a = this.tabs[Math.max(this.activeTabIndex - 1, this.tabs.length - 1)]) == null ? void 0 : a._uid), e && this.openTab(e);
|
|
5680
|
+
},
|
|
5477
5681
|
onResize() {
|
|
5478
5682
|
this.updateSlider(!1);
|
|
5479
5683
|
},
|
|
@@ -5488,7 +5692,9 @@ const ws = {
|
|
|
5488
5692
|
};
|
|
5489
5693
|
},
|
|
5490
5694
|
openTab(e) {
|
|
5491
|
-
this.prevTabIndex = this.activeTabIndex
|
|
5695
|
+
this.prevTabIndex = this.activeTabIndex;
|
|
5696
|
+
const t = this.tabsByUid[e];
|
|
5697
|
+
this.activeTabIndex = t._index, this.activeTabUid = t._uid, this.$emit("update:modelValue", t._index), this.$emit("input", t._index), this.noSlider || this.$nextTick(this.updateSlider);
|
|
5492
5698
|
},
|
|
5493
5699
|
updateSlider(e = !0) {
|
|
5494
5700
|
if (e) {
|
|
@@ -5496,23 +5702,23 @@ const ws = {
|
|
|
5496
5702
|
this.activeTabEl = t && t.querySelector(".w-tabs__bar-item--active");
|
|
5497
5703
|
}
|
|
5498
5704
|
if (!this.fillBar && this.activeTabEl) {
|
|
5499
|
-
const { left: t, width: l } = this.activeTabEl.getBoundingClientRect(),
|
|
5500
|
-
this.slider.left = `${t -
|
|
5705
|
+
const { left: t, width: l } = this.activeTabEl.getBoundingClientRect(), a = this.activeTabEl.parentNode, { left: r } = a.getBoundingClientRect(), { borderLeftWidth: i } = getComputedStyle(a);
|
|
5706
|
+
this.slider.left = `${t - r - parseInt(i) + a.scrollLeft}px`, this.slider.width = `${l}px`;
|
|
5501
5707
|
} else
|
|
5502
|
-
this.slider.left = `${this.activeTab._index * 100 / this.
|
|
5708
|
+
this.slider.left = `${this.activeTab._index * 100 / this.tabs.length}%`, this.slider.width = `${100 / this.tabs.length}%`;
|
|
5503
5709
|
},
|
|
5504
5710
|
updateActiveTab(e) {
|
|
5505
|
-
typeof e == "string" ? e = ~~e : (isNaN(e) || e < 0) && (e = 0), this.
|
|
5711
|
+
typeof e == "string" ? e = ~~e : (isNaN(e) || e < 0) && (e = 0), this.openTab(this.tabs[e]._uid), this.$nextTick(() => {
|
|
5506
5712
|
const t = this.$refs["tabs-bar"];
|
|
5507
5713
|
this.activeTabEl = t && t.querySelector(`.w-tabs__bar-item:nth-child(${e + 1})`), this.activeTabEl && this.activeTabEl.scrollIntoView({ behavior: "smooth", block: "nearest", inline: "nearest" });
|
|
5508
5714
|
});
|
|
5509
5715
|
},
|
|
5510
5716
|
getOriginalItem(e) {
|
|
5511
|
-
return this.items[e._index];
|
|
5717
|
+
return this.items[e._index] || {};
|
|
5512
5718
|
}
|
|
5513
5719
|
},
|
|
5514
5720
|
beforeMount() {
|
|
5515
|
-
this.updateActiveTab(this.modelValue), this.$nextTick(() => {
|
|
5721
|
+
this.tabs = [], (typeof this.items == "number" ? Array(this.items).fill().map(Object) : this.items).forEach(this.addTab), this.updateActiveTab(this.modelValue), this.$nextTick(() => {
|
|
5516
5722
|
this.updateSlider(), setTimeout(() => this.init = !1, 0);
|
|
5517
5723
|
}), this.noSlider || window.addEventListener("resize", this.onResize);
|
|
5518
5724
|
},
|
|
@@ -5521,12 +5727,13 @@ const ws = {
|
|
|
5521
5727
|
},
|
|
5522
5728
|
watch: {
|
|
5523
5729
|
modelValue(e) {
|
|
5524
|
-
this.updateActiveTab(e);
|
|
5730
|
+
e !== this.activeTabIndex && this.updateActiveTab(e);
|
|
5525
5731
|
},
|
|
5526
|
-
items
|
|
5527
|
-
|
|
5528
|
-
this.
|
|
5529
|
-
|
|
5732
|
+
items: {
|
|
5733
|
+
handler() {
|
|
5734
|
+
this.refreshTabs(), this.tabs.length && this.reopenTheActiveTab(), this.noSlider || this.$nextTick(this.updateSlider);
|
|
5735
|
+
},
|
|
5736
|
+
deep: !0
|
|
5530
5737
|
},
|
|
5531
5738
|
fillBar() {
|
|
5532
5739
|
this.noSlider || this.$nextTick(this.updateSlider);
|
|
@@ -5535,283 +5742,283 @@ const ws = {
|
|
|
5535
5742
|
e ? window.removeEventListener("resize", this.onResize) : (this.updateSlider(), window.addEventListener("resize", this.onResize));
|
|
5536
5743
|
}
|
|
5537
5744
|
}
|
|
5538
|
-
},
|
|
5745
|
+
}, _s = /* @__PURE__ */ v(ks, [["render", vs]]), Cs = { ref: "colgroup" }, Ss = ["width"], Bs = { key: 0 }, $s = ["onClick"], Vs = ["innerHTML"], Is = {
|
|
5539
5746
|
key: 0,
|
|
5540
5747
|
class: "w-table__progress-bar"
|
|
5541
|
-
},
|
|
5748
|
+
}, Ts = ["colspan"], Rs = {
|
|
5542
5749
|
key: 0,
|
|
5543
5750
|
class: "w-table__progress-bar"
|
|
5544
|
-
},
|
|
5751
|
+
}, Ls = ["colspan"], xs = { class: "w-table__loading-text" }, Os = {
|
|
5545
5752
|
key: 1,
|
|
5546
5753
|
class: "no-data"
|
|
5547
|
-
},
|
|
5754
|
+
}, Ps = ["colspan"], zs = ["onClick"], Ms = ["data-label"], Es = ["data-label"], Ws = ["innerHTML"], As = {
|
|
5548
5755
|
key: 2,
|
|
5549
5756
|
class: "w-table__row w-table__row--expansion"
|
|
5550
|
-
},
|
|
5757
|
+
}, Ns = ["colspan"], Ks = { key: 0 }, Hs = {
|
|
5551
5758
|
key: 3,
|
|
5552
5759
|
class: "w-table__extra-row"
|
|
5553
|
-
},
|
|
5760
|
+
}, Ds = {
|
|
5554
5761
|
key: 1,
|
|
5555
5762
|
class: "w-table__footer"
|
|
5556
|
-
},
|
|
5763
|
+
}, Fs = {
|
|
5557
5764
|
key: 1,
|
|
5558
5765
|
class: "w-table__row"
|
|
5559
|
-
},
|
|
5766
|
+
}, js = ["colspan"], Us = {
|
|
5560
5767
|
key: 2,
|
|
5561
5768
|
class: "w-table__row w-table__pagination-wrap"
|
|
5562
|
-
},
|
|
5563
|
-
function
|
|
5564
|
-
const
|
|
5769
|
+
}, qs = ["colspan"], Xs = { class: "w-table__pagination w-pagination" }, Ys = { class: "pages-wrap" }, Gs = { class: "w-pagination__results" };
|
|
5770
|
+
function Js(e, t, l, a, r, i) {
|
|
5771
|
+
const o = $("w-icon"), n = $("w-progress"), d = $("w-transition-fade"), h = $("w-transition-expand"), y = $("w-select"), B = $("w-button");
|
|
5565
5772
|
return s(), u("div", {
|
|
5566
5773
|
class: f(["w-table-wrap", i.wrapClasses])
|
|
5567
5774
|
}, [
|
|
5568
5775
|
w("table", {
|
|
5569
5776
|
class: f(["w-table", i.classes]),
|
|
5570
|
-
onMousedown: t[5] || (t[5] = (...
|
|
5571
|
-
onMouseover: t[6] || (t[6] = (...
|
|
5572
|
-
onMouseout: t[7] || (t[7] = (...
|
|
5777
|
+
onMousedown: t[5] || (t[5] = (...b) => i.onMouseDown && i.onMouseDown(...b)),
|
|
5778
|
+
onMouseover: t[6] || (t[6] = (...b) => i.onMouseOver && i.onMouseOver(...b)),
|
|
5779
|
+
onMouseout: t[7] || (t[7] = (...b) => i.onMouseOut && i.onMouseOut(...b))
|
|
5573
5780
|
}, [
|
|
5574
|
-
w("colgroup",
|
|
5575
|
-
(s(!0), u(
|
|
5576
|
-
class: f(["w-table__col", i.colClasses[
|
|
5577
|
-
key:
|
|
5578
|
-
width:
|
|
5579
|
-
}, null, 10,
|
|
5781
|
+
w("colgroup", Cs, [
|
|
5782
|
+
(s(!0), u(k, null, L(l.headers, (b, T) => (s(), u("col", {
|
|
5783
|
+
class: f(["w-table__col", i.colClasses[T]]),
|
|
5784
|
+
key: T,
|
|
5785
|
+
width: b.width || null
|
|
5786
|
+
}, null, 10, Ss))), 128))
|
|
5580
5787
|
], 512),
|
|
5581
|
-
l.noHeaders ? c("", !0) : (s(), u("thead",
|
|
5788
|
+
l.noHeaders ? c("", !0) : (s(), u("thead", Bs, [
|
|
5582
5789
|
w("tr", null, [
|
|
5583
|
-
(s(!0), u(
|
|
5584
|
-
class: f(["w-table__header", i.headerClasses(
|
|
5585
|
-
key:
|
|
5586
|
-
onClick: (
|
|
5790
|
+
(s(!0), u(k, null, L(l.headers, (b, T) => (s(), u("th", {
|
|
5791
|
+
class: f(["w-table__header", i.headerClasses(b)]),
|
|
5792
|
+
key: T,
|
|
5793
|
+
onClick: (x) => !e.colResizing.dragging && b.sortable !== !1 && i.sortTable(b)
|
|
5587
5794
|
}, [
|
|
5588
|
-
|
|
5795
|
+
b.sortable !== !1 && b.align === "right" ? (s(), m(o, {
|
|
5589
5796
|
key: 0,
|
|
5590
|
-
class: f(["w-table__header-sort", i.headerSortClasses(
|
|
5797
|
+
class: f(["w-table__header-sort", i.headerSortClasses(b)])
|
|
5591
5798
|
}, {
|
|
5592
5799
|
default: g(() => [
|
|
5593
|
-
|
|
5800
|
+
S("wi-arrow-down")
|
|
5594
5801
|
]),
|
|
5595
5802
|
_: 2
|
|
5596
5803
|
}, 1032, ["class"])) : c("", !0),
|
|
5597
|
-
|
|
5804
|
+
b.label ? (s(), u(k, { key: 1 }, [
|
|
5598
5805
|
e.$slots["header-label"] ? p(e.$slots, "header-label", {
|
|
5599
5806
|
key: 0,
|
|
5600
|
-
header:
|
|
5601
|
-
label:
|
|
5602
|
-
index:
|
|
5807
|
+
header: b,
|
|
5808
|
+
label: b.label,
|
|
5809
|
+
index: T + 1
|
|
5603
5810
|
}, () => [
|
|
5604
|
-
|
|
5811
|
+
S(_(b.label || ""), 1)
|
|
5605
5812
|
]) : (s(), u("span", {
|
|
5606
5813
|
key: 1,
|
|
5607
|
-
innerHTML:
|
|
5608
|
-
}, null, 8,
|
|
5814
|
+
innerHTML: b.label || ""
|
|
5815
|
+
}, null, 8, Vs))
|
|
5609
5816
|
], 64)) : c("", !0),
|
|
5610
|
-
|
|
5817
|
+
b.sortable !== !1 && b.align !== "right" ? (s(), m(o, {
|
|
5611
5818
|
key: 2,
|
|
5612
|
-
class: f(["w-table__header-sort", i.headerSortClasses(
|
|
5819
|
+
class: f(["w-table__header-sort", i.headerSortClasses(b)])
|
|
5613
5820
|
}, {
|
|
5614
5821
|
default: g(() => [
|
|
5615
|
-
|
|
5822
|
+
S("wi-arrow-down")
|
|
5616
5823
|
]),
|
|
5617
5824
|
_: 2
|
|
5618
5825
|
}, 1032, ["class"])) : c("", !0),
|
|
5619
|
-
|
|
5826
|
+
T < l.headers.length - 1 && l.resizableColumns ? (s(), u("span", {
|
|
5620
5827
|
key: 3,
|
|
5621
|
-
class: f(["w-table__col-resizer", { "w-table__col-resizer--hover": e.colResizing.hover ===
|
|
5622
|
-
onClick: t[0] || (t[0] =
|
|
5828
|
+
class: f(["w-table__col-resizer", { "w-table__col-resizer--hover": e.colResizing.hover === T, "w-table__col-resizer--active": e.colResizing.columnIndex === T }]),
|
|
5829
|
+
onClick: t[0] || (t[0] = M(() => {
|
|
5623
5830
|
}, ["stop"]))
|
|
5624
5831
|
}, null, 2)) : c("", !0)
|
|
5625
|
-
], 10,
|
|
5832
|
+
], 10, $s))), 128))
|
|
5626
5833
|
]),
|
|
5627
5834
|
I(d, null, {
|
|
5628
5835
|
default: g(() => [
|
|
5629
|
-
l.loading === "header" ? (s(), u("tr",
|
|
5836
|
+
l.loading === "header" ? (s(), u("tr", Is, [
|
|
5630
5837
|
w("td", {
|
|
5631
5838
|
colspan: l.headers.length
|
|
5632
5839
|
}, [
|
|
5633
|
-
I(
|
|
5634
|
-
], 8,
|
|
5840
|
+
I(n, { tile: "" })
|
|
5841
|
+
], 8, Ts)
|
|
5635
5842
|
])) : c("", !0)
|
|
5636
5843
|
]),
|
|
5637
5844
|
_: 1
|
|
5638
5845
|
})
|
|
5639
5846
|
])),
|
|
5640
5847
|
w("tbody", null, [
|
|
5641
|
-
l.loading === !0 ? (s(), u("tr",
|
|
5848
|
+
l.loading === !0 ? (s(), u("tr", Rs, [
|
|
5642
5849
|
w("td", {
|
|
5643
5850
|
colspan: l.headers.length
|
|
5644
5851
|
}, [
|
|
5645
|
-
I(
|
|
5646
|
-
w("div",
|
|
5852
|
+
I(n, { tile: "" }),
|
|
5853
|
+
w("div", xs, [
|
|
5647
5854
|
p(e.$slots, "loading", {}, () => [
|
|
5648
|
-
|
|
5855
|
+
S("Loading...")
|
|
5649
5856
|
])
|
|
5650
5857
|
])
|
|
5651
|
-
], 8,
|
|
5652
|
-
])) : i.tableItems.length ? c("", !0) : (s(), u("tr",
|
|
5858
|
+
], 8, Ls)
|
|
5859
|
+
])) : i.tableItems.length ? c("", !0) : (s(), u("tr", Os, [
|
|
5653
5860
|
w("td", {
|
|
5654
5861
|
class: "w-table__cell text-center",
|
|
5655
5862
|
colspan: l.headers.length
|
|
5656
5863
|
}, [
|
|
5657
5864
|
p(e.$slots, "no-data", {}, () => [
|
|
5658
|
-
|
|
5865
|
+
S("No data to show.")
|
|
5659
5866
|
])
|
|
5660
|
-
], 8,
|
|
5867
|
+
], 8, Ps)
|
|
5661
5868
|
])),
|
|
5662
|
-
i.tableItems.length && l.loading !== !0 ? (s(!0), u(
|
|
5869
|
+
i.tableItems.length && l.loading !== !0 ? (s(!0), u(k, { key: 2 }, L(i.paginatedItems, (b, T) => (s(), u(k, { key: T }, [
|
|
5663
5870
|
e.$slots.item ? p(e.$slots, "item", {
|
|
5664
5871
|
key: 0,
|
|
5665
|
-
item:
|
|
5666
|
-
index:
|
|
5667
|
-
select: () => i.doSelectRow(
|
|
5668
|
-
classes: { "w-table__row": !0, "w-table__row--selected": i.selectedRowsByUid[
|
|
5872
|
+
item: b,
|
|
5873
|
+
index: T + 1,
|
|
5874
|
+
select: () => i.doSelectRow(b, T),
|
|
5875
|
+
classes: { "w-table__row": !0, "w-table__row--selected": i.selectedRowsByUid[b._uid] !== void 0, "w-table__row--expanded": i.expandedRowsByUid[b._uid] !== void 0 }
|
|
5669
5876
|
}) : (s(), u("tr", {
|
|
5670
5877
|
key: 1,
|
|
5671
|
-
class: f(["w-table__row", { "w-table__row--selected": i.selectedRowsByUid[
|
|
5672
|
-
onClick: (
|
|
5878
|
+
class: f(["w-table__row", { "w-table__row--selected": i.selectedRowsByUid[b._uid] !== void 0, "w-table__row--expanded": i.expandedRowsByUid[b._uid] !== void 0 }]),
|
|
5879
|
+
onClick: (x) => i.doSelectRow(b, T)
|
|
5673
5880
|
}, [
|
|
5674
|
-
(s(!0), u(
|
|
5675
|
-
e.$slots[`item-cell.${
|
|
5676
|
-
class: f(["w-table__cell", { [`text-${
|
|
5677
|
-
key: `${
|
|
5678
|
-
"data-label":
|
|
5881
|
+
(s(!0), u(k, null, L(l.headers, (x, P) => (s(), u(k, null, [
|
|
5882
|
+
e.$slots[`item-cell.${x.key}`] || e.$slots[`item-cell.${P + 1}`] || e.$slots["item-cell"] ? (s(), u("td", {
|
|
5883
|
+
class: f(["w-table__cell", { [`text-${x.align || "left"}`]: !0, "w-table__cell--sticky": x.sticky }]),
|
|
5884
|
+
key: `${P}-a`,
|
|
5885
|
+
"data-label": x.label
|
|
5679
5886
|
}, [
|
|
5680
|
-
e.$slots[`item-cell.${
|
|
5887
|
+
e.$slots[`item-cell.${x.key}`] ? p(e.$slots, `item-cell.${x.key}`, {
|
|
5681
5888
|
key: 0,
|
|
5682
|
-
header:
|
|
5683
|
-
item:
|
|
5684
|
-
label:
|
|
5685
|
-
index:
|
|
5686
|
-
}) : e.$slots[`item-cell.${
|
|
5889
|
+
header: x,
|
|
5890
|
+
item: b,
|
|
5891
|
+
label: b[x.key] || "",
|
|
5892
|
+
index: T + 1
|
|
5893
|
+
}) : e.$slots[`item-cell.${P + 1}`] ? p(e.$slots, `item-cell.${P + 1}`, {
|
|
5687
5894
|
key: 1,
|
|
5688
|
-
header:
|
|
5689
|
-
item:
|
|
5690
|
-
label:
|
|
5691
|
-
index:
|
|
5895
|
+
header: x,
|
|
5896
|
+
item: b,
|
|
5897
|
+
label: b[x.key] || "",
|
|
5898
|
+
index: T + 1
|
|
5692
5899
|
}) : e.$slots["item-cell"] ? p(e.$slots, "item-cell", {
|
|
5693
5900
|
key: 2,
|
|
5694
|
-
header:
|
|
5695
|
-
item:
|
|
5696
|
-
label:
|
|
5697
|
-
index:
|
|
5901
|
+
header: x,
|
|
5902
|
+
item: b,
|
|
5903
|
+
label: b[x.key] || "",
|
|
5904
|
+
index: T + 1
|
|
5698
5905
|
}) : c("", !0),
|
|
5699
|
-
|
|
5906
|
+
P < l.headers.length - 1 && l.resizableColumns ? (s(), u("span", {
|
|
5700
5907
|
key: 3,
|
|
5701
|
-
class: f(["w-table__col-resizer", { "w-table__col-resizer--hover": e.colResizing.hover ===
|
|
5908
|
+
class: f(["w-table__col-resizer", { "w-table__col-resizer--hover": e.colResizing.hover === P, "w-table__col-resizer--active": e.colResizing.columnIndex === P }])
|
|
5702
5909
|
}, null, 2)) : c("", !0)
|
|
5703
|
-
], 10,
|
|
5704
|
-
class: f(["w-table__cell", { [`text-${
|
|
5705
|
-
key: `${
|
|
5706
|
-
"data-label":
|
|
5910
|
+
], 10, Ms)) : (s(), u("td", {
|
|
5911
|
+
class: f(["w-table__cell", { [`text-${x.align || "left"}`]: !0, "w-table__cell--sticky": x.sticky }]),
|
|
5912
|
+
key: `${P}-b`,
|
|
5913
|
+
"data-label": x.label
|
|
5707
5914
|
}, [
|
|
5708
5915
|
w("div", {
|
|
5709
|
-
innerHTML:
|
|
5710
|
-
}, null, 8,
|
|
5711
|
-
|
|
5916
|
+
innerHTML: b[x.key] || ""
|
|
5917
|
+
}, null, 8, Ws),
|
|
5918
|
+
P < l.headers.length - 1 && l.resizableColumns ? (s(), u("span", {
|
|
5712
5919
|
key: 0,
|
|
5713
|
-
class: f(["w-table__col-resizer", { "w-table__col-resizer--hover": e.colResizing.hover ===
|
|
5920
|
+
class: f(["w-table__col-resizer", { "w-table__col-resizer--hover": e.colResizing.hover === P, "w-table__col-resizer--active": e.colResizing.columnIndex === P }])
|
|
5714
5921
|
}, null, 2)) : c("", !0)
|
|
5715
|
-
], 10,
|
|
5922
|
+
], 10, Es))
|
|
5716
5923
|
], 64))), 256))
|
|
5717
|
-
], 10,
|
|
5718
|
-
i.expandedRowsByUid[
|
|
5924
|
+
], 10, zs)),
|
|
5925
|
+
i.expandedRowsByUid[b._uid] ? (s(), u("tr", As, [
|
|
5719
5926
|
w("td", {
|
|
5720
5927
|
class: "w-table__cell",
|
|
5721
5928
|
colspan: l.headers.length
|
|
5722
5929
|
}, [
|
|
5723
5930
|
I(h, { y: "" }, {
|
|
5724
5931
|
default: g(() => [
|
|
5725
|
-
i.expandedRowsByUid[
|
|
5932
|
+
i.expandedRowsByUid[b._uid] ? (s(), u("div", Ks, [
|
|
5726
5933
|
p(e.$slots, "row-expansion", {
|
|
5727
|
-
item:
|
|
5728
|
-
index:
|
|
5934
|
+
item: b,
|
|
5935
|
+
index: T + 1
|
|
5729
5936
|
})
|
|
5730
5937
|
])) : c("", !0),
|
|
5731
|
-
|
|
5938
|
+
T < l.headers.length - 1 && l.resizableColumns ? (s(), u("span", {
|
|
5732
5939
|
key: 1,
|
|
5733
|
-
class: f(["w-table__col-resizer", { "w-table__col-resizer--hover": e.colResizing.hover ===
|
|
5940
|
+
class: f(["w-table__col-resizer", { "w-table__col-resizer--hover": e.colResizing.hover === T, "w-table__col-resizer--active": e.colResizing.columnIndex === e.j }])
|
|
5734
5941
|
}, null, 2)) : c("", !0)
|
|
5735
5942
|
]),
|
|
5736
5943
|
_: 2
|
|
5737
5944
|
}, 1024)
|
|
5738
|
-
], 8,
|
|
5945
|
+
], 8, Ns)
|
|
5739
5946
|
])) : c("", !0)
|
|
5740
5947
|
], 64))), 128)) : c("", !0),
|
|
5741
|
-
e.$slots["extra-row"] ? (s(), u("div",
|
|
5948
|
+
e.$slots["extra-row"] ? (s(), u("div", Hs, [
|
|
5742
5949
|
p(e.$slots, "extra-row")
|
|
5743
5950
|
])) : c("", !0)
|
|
5744
5951
|
]),
|
|
5745
|
-
e.$slots.footer || e.$slots["footer-row"] || l.pagination ? (s(), u("tfoot",
|
|
5746
|
-
e.$slots["footer-row"] ? p(e.$slots, "footer-row", { key: 0 }) : e.$slots.footer ? (s(), u("tr",
|
|
5952
|
+
e.$slots.footer || e.$slots["footer-row"] || l.pagination ? (s(), u("tfoot", Ds, [
|
|
5953
|
+
e.$slots["footer-row"] ? p(e.$slots, "footer-row", { key: 0 }) : e.$slots.footer ? (s(), u("tr", Fs, [
|
|
5747
5954
|
w("td", {
|
|
5748
5955
|
class: "w-table__cell",
|
|
5749
5956
|
colspan: l.headers.length
|
|
5750
5957
|
}, [
|
|
5751
5958
|
p(e.$slots, "footer")
|
|
5752
|
-
], 8,
|
|
5959
|
+
], 8, js)
|
|
5753
5960
|
])) : c("", !0),
|
|
5754
|
-
l.pagination && e.paginationConfig ? (s(), u("tr",
|
|
5961
|
+
l.pagination && e.paginationConfig ? (s(), u("tr", Us, [
|
|
5755
5962
|
w("td", {
|
|
5756
5963
|
class: "w-table__cell",
|
|
5757
5964
|
colspan: l.headers.length
|
|
5758
5965
|
}, [
|
|
5759
|
-
w("div",
|
|
5966
|
+
w("div", Xs, [
|
|
5760
5967
|
p(e.$slots, "pagination", {
|
|
5761
5968
|
range: `${e.paginationConfig.start}-${e.paginationConfig.end}`,
|
|
5762
5969
|
total: e.paginationConfig.total
|
|
5763
5970
|
}, () => [
|
|
5764
|
-
e.paginationConfig.itemsPerPageOptions ? (s(),
|
|
5971
|
+
e.paginationConfig.itemsPerPageOptions ? (s(), m(y, {
|
|
5765
5972
|
key: 0,
|
|
5766
5973
|
class: "w-pagination__items-per-page",
|
|
5767
5974
|
modelValue: e.paginationConfig.itemsPerPage,
|
|
5768
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
5769
|
-
onInput: t[2] || (t[2] = (
|
|
5975
|
+
"onUpdate:modelValue": t[1] || (t[1] = (b) => e.paginationConfig.itemsPerPage = b),
|
|
5976
|
+
onInput: t[2] || (t[2] = (b) => i.updatePaginationConfig({ itemsPerPage: e.paginationConfig.itemsPerPage })),
|
|
5770
5977
|
items: e.paginationConfig.itemsPerPageOptions,
|
|
5771
5978
|
"label-position": "left",
|
|
5772
5979
|
label: "Items per page",
|
|
5773
5980
|
"label-color": "inherit"
|
|
5774
5981
|
}, null, 8, ["modelValue", "items"])) : c("", !0),
|
|
5775
|
-
w("div",
|
|
5776
|
-
I(
|
|
5982
|
+
w("div", Ys, [
|
|
5983
|
+
I(B, {
|
|
5777
5984
|
class: "w-pagination__arrow w-pagination__arrow--prev",
|
|
5778
|
-
onClick: t[3] || (t[3] = (
|
|
5985
|
+
onClick: t[3] || (t[3] = (b) => i.goToPage("-1")),
|
|
5779
5986
|
disabled: e.paginationConfig.page <= 1,
|
|
5780
5987
|
icon: "wi-chevron-left",
|
|
5781
5988
|
text: "",
|
|
5782
5989
|
lg: ""
|
|
5783
5990
|
}, null, 8, ["disabled"]),
|
|
5784
|
-
(s(!0), u(
|
|
5785
|
-
class: f(["w-pagination__page", { "w-pagination__page--active":
|
|
5786
|
-
key:
|
|
5787
|
-
onClick: (
|
|
5991
|
+
(s(!0), u(k, null, L(e.paginationConfig.pagesCount, (b) => (s(), m(B, {
|
|
5992
|
+
class: f(["w-pagination__page", { "w-pagination__page--active": b === e.paginationConfig.page }]),
|
|
5993
|
+
key: b,
|
|
5994
|
+
onClick: (T) => b !== e.paginationConfig.page && i.goToPage(b),
|
|
5788
5995
|
round: "",
|
|
5789
5996
|
lg: ""
|
|
5790
5997
|
}, {
|
|
5791
5998
|
default: g(() => [
|
|
5792
|
-
|
|
5999
|
+
S(_(b), 1)
|
|
5793
6000
|
]),
|
|
5794
6001
|
_: 2
|
|
5795
6002
|
}, 1032, ["onClick", "class"]))), 128)),
|
|
5796
|
-
I(
|
|
6003
|
+
I(B, {
|
|
5797
6004
|
class: "w-pagination__arrow w-pagination__arrow--next",
|
|
5798
|
-
onClick: t[4] || (t[4] = (
|
|
6005
|
+
onClick: t[4] || (t[4] = (b) => i.goToPage("+1")),
|
|
5799
6006
|
disabled: e.paginationConfig.page >= e.paginationConfig.pagesCount,
|
|
5800
6007
|
icon: "wi-chevron-right",
|
|
5801
6008
|
text: "",
|
|
5802
6009
|
lg: ""
|
|
5803
6010
|
}, null, 8, ["disabled"])
|
|
5804
6011
|
]),
|
|
5805
|
-
w("span", Gs,
|
|
6012
|
+
w("span", Gs, _(e.paginationConfig.start) + "-" + _(e.paginationConfig.end || e.paginationConfig.total) + " of " + _(e.paginationConfig.total), 1)
|
|
5806
6013
|
])
|
|
5807
6014
|
])
|
|
5808
|
-
], 8,
|
|
6015
|
+
], 8, qs)
|
|
5809
6016
|
])) : c("", !0)
|
|
5810
6017
|
])) : c("", !0)
|
|
5811
6018
|
], 34)
|
|
5812
6019
|
], 2);
|
|
5813
6020
|
}
|
|
5814
|
-
const
|
|
6021
|
+
const ge = 15, Qs = {
|
|
5815
6022
|
name: "w-table",
|
|
5816
6023
|
props: {
|
|
5817
6024
|
items: { type: Array, required: !0 },
|
|
@@ -5896,7 +6103,7 @@ const ce = 15, Ys = {
|
|
|
5896
6103
|
if (!this.activeSorting.length || this.sortFunction || this.fetch)
|
|
5897
6104
|
return this.filteredItems;
|
|
5898
6105
|
const e = this.activeSorting[0].replace(/^[+-]/, ""), t = this.activeSorting[0][0] === "-";
|
|
5899
|
-
return [...this.filteredItems].sort((l,
|
|
6106
|
+
return [...this.filteredItems].sort((l, a) => (l = l[e], a = a[e], !isNaN(l) && !isNaN(a) && (l = parseFloat(l), a = parseFloat(a)), (l > a ? 1 : -1) * (t ? -1 : 1)));
|
|
5900
6107
|
},
|
|
5901
6108
|
paginatedItems() {
|
|
5902
6109
|
return typeof this.fetch == "function" ? this.sortedItems : this.sortedItems.slice(this.paginationConfig.start - 1, this.paginationConfig.end);
|
|
@@ -5962,28 +6169,28 @@ const ce = 15, Ys = {
|
|
|
5962
6169
|
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();
|
|
5963
6170
|
},
|
|
5964
6171
|
doSelectRow(e, t) {
|
|
5965
|
-
const l = this.expandableRows === "" ? !0 : this.expandableRows,
|
|
6172
|
+
const l = this.expandableRows === "" ? !0 : this.expandableRows, a = this.selectableRows === "" ? !0 : this.selectableRows;
|
|
5966
6173
|
if (l) {
|
|
5967
|
-
const
|
|
5968
|
-
|
|
6174
|
+
const r = this.expandedRowsByUid[e._uid] === void 0;
|
|
6175
|
+
r ? this.expandableRows.toString() === "1" ? this.expandedRowsInternal = [e._uid] : this.expandedRowsInternal.push(e._uid) : this.expandedRowsInternal = this.expandedRowsInternal.filter((i) => i !== e._uid), this.$emit(
|
|
5969
6176
|
"row-expand",
|
|
5970
6177
|
{
|
|
5971
6178
|
item: e,
|
|
5972
6179
|
index: t,
|
|
5973
|
-
expanded:
|
|
6180
|
+
expanded: r,
|
|
5974
6181
|
expandedRows: this.expandedRowsInternal.map((i) => this.filteredItems[i])
|
|
5975
6182
|
}
|
|
5976
6183
|
), this.$emit("update:expanded-rows", this.expandedRowsInternal);
|
|
5977
|
-
} else if (
|
|
5978
|
-
let
|
|
6184
|
+
} else if (a) {
|
|
6185
|
+
let r = !1;
|
|
5979
6186
|
const i = this.selectedRowsByUid[e._uid] === void 0;
|
|
5980
|
-
i ? (this.selectableRows.toString() === "1" ? this.selectedRowsInternal = [e._uid] : this.selectedRowsInternal.push(e._uid),
|
|
6187
|
+
i ? (this.selectableRows.toString() === "1" ? this.selectedRowsInternal = [e._uid] : this.selectedRowsInternal.push(e._uid), r = !0) : (!this.forceSelection || this.selectedRowsInternal.length > 1) && (this.selectedRowsInternal = this.selectedRowsInternal.filter((o) => o !== e._uid), r = !0), r && (this.$emit(
|
|
5981
6188
|
"row-select",
|
|
5982
6189
|
{
|
|
5983
6190
|
item: e,
|
|
5984
6191
|
index: t,
|
|
5985
6192
|
selected: i,
|
|
5986
|
-
selectedRows: this.selectedRowsInternal.map((
|
|
6193
|
+
selectedRows: this.selectedRowsInternal.map((o) => this.filteredItems[o])
|
|
5987
6194
|
}
|
|
5988
6195
|
), this.$emit("update:selected-rows", this.selectedRowsInternal));
|
|
5989
6196
|
}
|
|
@@ -5999,16 +6206,16 @@ const ce = 15, Ys = {
|
|
|
5999
6206
|
e.classList.contains("w-table__col-resizer") && (this.colResizing.hover = !1);
|
|
6000
6207
|
},
|
|
6001
6208
|
onResizerMouseMove(e) {
|
|
6002
|
-
const { startCursorX: t, columnEl: l, nextColumnEl:
|
|
6209
|
+
const { startCursorX: t, columnEl: l, nextColumnEl: a, colWidth: r, nextColWidth: i } = this.colResizing;
|
|
6003
6210
|
this.colResizing.dragging = !0;
|
|
6004
|
-
const
|
|
6005
|
-
l.style.width =
|
|
6006
|
-
const y =
|
|
6211
|
+
const o = e.pageX - t, n = r + i, d = r + o, h = i - o;
|
|
6212
|
+
l.style.width = r + o + "px", a.style.width = i - o + "px";
|
|
6213
|
+
const y = o < 0 && l.offsetWidth > d || l.offsetWidth <= ge, B = o > 0 && a.offsetWidth > h;
|
|
6007
6214
|
if (y) {
|
|
6008
|
-
const
|
|
6009
|
-
l.style.width =
|
|
6215
|
+
const b = Math.max(l.offsetWidth, ge);
|
|
6216
|
+
l.style.width = b + "px", a.style.width = n - b + "px";
|
|
6010
6217
|
} else
|
|
6011
|
-
|
|
6218
|
+
B && (l.style.width = n - a.offsetWidth + "px", a.style.width = a.offsetWidth + "px");
|
|
6012
6219
|
},
|
|
6013
6220
|
onResizerMouseUp() {
|
|
6014
6221
|
document.removeEventListener("mousemove", this.onResizerMouseMove), document.removeEventListener("mouseup", this.onResizerMouseUp), setTimeout(() => {
|
|
@@ -6020,18 +6227,18 @@ const ce = 15, Ys = {
|
|
|
6020
6227
|
}, 0);
|
|
6021
6228
|
},
|
|
6022
6229
|
initPagination() {
|
|
6023
|
-
var
|
|
6024
|
-
const e = (
|
|
6025
|
-
t.find((
|
|
6026
|
-
var
|
|
6027
|
-
return ((
|
|
6028
|
-
}) || t.push(e), this.paginationConfig.itemsPerPageOptions = t.map((
|
|
6029
|
-
var
|
|
6230
|
+
var a, r, i;
|
|
6231
|
+
const e = (r = (a = this.pagination) == null ? void 0 : a.itemsPerPage) != null ? r : 20, t = ((i = this.pagination) == null ? void 0 : i.itemsPerPageOptions) || [20, 100, { label: "All", value: 0 }];
|
|
6232
|
+
t.find((o) => {
|
|
6233
|
+
var n;
|
|
6234
|
+
return ((n = o == null ? void 0 : o.value) != null ? n : o) === +e;
|
|
6235
|
+
}) || t.push(e), this.paginationConfig.itemsPerPageOptions = t.map((o) => {
|
|
6236
|
+
var n;
|
|
6030
6237
|
return {
|
|
6031
|
-
label: ["string", "number"].includes(typeof
|
|
6032
|
-
value: ["string", "number"].includes(typeof
|
|
6238
|
+
label: ["string", "number"].includes(typeof o) ? o.toString() : o.label || o.value,
|
|
6239
|
+
value: ["string", "number"].includes(typeof o) ? ~~o : (n = o.value) != null ? n : o.label
|
|
6033
6240
|
};
|
|
6034
|
-
}), this.paginationConfig.itemsPerPageOptions.sort((
|
|
6241
|
+
}), this.paginationConfig.itemsPerPageOptions.sort((o, n) => o.value < n.value ? -1 : 1);
|
|
6035
6242
|
const l = this.paginationConfig.itemsPerPageOptions.shift();
|
|
6036
6243
|
this.paginationConfig.itemsPerPageOptions.push(l), this.updatePaginationConfig({
|
|
6037
6244
|
itemsPerPage: e,
|
|
@@ -6048,13 +6255,13 @@ const ce = 15, Ys = {
|
|
|
6048
6255
|
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
6256
|
},
|
|
6050
6257
|
async callApiFetch() {
|
|
6051
|
-
const { page: e, start: t, end: l, total:
|
|
6258
|
+
const { page: e, start: t, end: l, total: a, itemsPerPage: r } = this.paginationConfig;
|
|
6052
6259
|
return await this.fetch({
|
|
6053
6260
|
page: e,
|
|
6054
6261
|
start: t,
|
|
6055
|
-
end: l ||
|
|
6056
|
-
total:
|
|
6057
|
-
itemsPerPage:
|
|
6262
|
+
end: l || a,
|
|
6263
|
+
total: a,
|
|
6264
|
+
itemsPerPage: r || a,
|
|
6058
6265
|
sorting: this.activeSorting
|
|
6059
6266
|
});
|
|
6060
6267
|
}
|
|
@@ -6088,13 +6295,13 @@ const ce = 15, Ys = {
|
|
|
6088
6295
|
this.updatePaginationConfig({ total: e });
|
|
6089
6296
|
}
|
|
6090
6297
|
}
|
|
6091
|
-
},
|
|
6092
|
-
function
|
|
6093
|
-
return s(), u("span", C({ class: "w-tag" },
|
|
6094
|
-
onClick: t[1] || (t[1] = (
|
|
6298
|
+
}, Zs = /* @__PURE__ */ v(Qs, [["render", Js]]), ea = ["role", "aria-pressed", "tabindex"];
|
|
6299
|
+
function ta(e, t, l, a, r, i) {
|
|
6300
|
+
return s(), u("span", C({ class: "w-tag" }, W(e.$attrs, !0), {
|
|
6301
|
+
onClick: t[1] || (t[1] = (o) => {
|
|
6095
6302
|
e.$emit("update:modelValue", !l.modelValue), e.$emit("input", !l.modelValue);
|
|
6096
6303
|
}),
|
|
6097
|
-
onKeypress: t[2] || (t[2] =
|
|
6304
|
+
onKeypress: t[2] || (t[2] = E((o) => {
|
|
6098
6305
|
e.$emit("update:modelValue", !l.modelValue), e.$emit("input", !l.modelValue);
|
|
6099
6306
|
}, ["enter"])),
|
|
6100
6307
|
class: i.classes,
|
|
@@ -6107,15 +6314,15 @@ function Zs(e, t, l, o, n, i) {
|
|
|
6107
6314
|
l.closable && l.modelValue ? (s(), u("i", {
|
|
6108
6315
|
key: 0,
|
|
6109
6316
|
class: "w-icon w-tag__closable wi-cross",
|
|
6110
|
-
onClick: t[0] || (t[0] =
|
|
6317
|
+
onClick: t[0] || (t[0] = M((o) => {
|
|
6111
6318
|
e.$emit("update:modelValue", !1), e.$emit("input", !1);
|
|
6112
6319
|
}, ["stop"])),
|
|
6113
6320
|
role: "icon",
|
|
6114
6321
|
"aria-hidden": "true"
|
|
6115
6322
|
})) : c("", !0)
|
|
6116
|
-
], 16,
|
|
6323
|
+
], 16, ea);
|
|
6117
6324
|
}
|
|
6118
|
-
const
|
|
6325
|
+
const la = {
|
|
6119
6326
|
name: "w-tag",
|
|
6120
6327
|
props: {
|
|
6121
6328
|
modelValue: { type: [Boolean, Number], default: -1 },
|
|
@@ -6164,53 +6371,53 @@ const ea = {
|
|
|
6164
6371
|
};
|
|
6165
6372
|
}
|
|
6166
6373
|
}
|
|
6167
|
-
},
|
|
6168
|
-
function
|
|
6169
|
-
const
|
|
6170
|
-
return s(),
|
|
6374
|
+
}, ia = /* @__PURE__ */ v(la, [["render", ta]]), sa = ["for"], aa = ["id", "name", "placeholder", "rows", "cols", "readonly", "aria-readonly", "disabled", "required", "tabindex"], oa = ["for"], na = ["for"];
|
|
6375
|
+
function ra(e, t, l, a, r, i) {
|
|
6376
|
+
const o = $("w-icon");
|
|
6377
|
+
return s(), m(V(e.formRegister ? "w-form-element" : "div"), C({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: r.inputValue, disabled: e.isDisabled, readonly: e.isReadonly, isFocused: r.isFocused }, {
|
|
6171
6378
|
valid: e.valid,
|
|
6172
|
-
"onUpdate:valid": t[6] || (t[6] = (
|
|
6379
|
+
"onUpdate:valid": t[6] || (t[6] = (n) => e.valid = n),
|
|
6173
6380
|
wrap: i.hasLabel && l.labelPosition !== "inside",
|
|
6174
|
-
onReset: t[7] || (t[7] = (
|
|
6175
|
-
e.$emit("update:modelValue",
|
|
6381
|
+
onReset: t[7] || (t[7] = (n) => {
|
|
6382
|
+
e.$emit("update:modelValue", r.inputValue = ""), e.$emit("input", "");
|
|
6176
6383
|
}),
|
|
6177
6384
|
class: i.classes
|
|
6178
6385
|
}), {
|
|
6179
6386
|
default: g(() => [
|
|
6180
|
-
l.labelPosition === "left" ? (s(), u(
|
|
6387
|
+
l.labelPosition === "left" ? (s(), u(k, { key: 0 }, [
|
|
6181
6388
|
e.$slots.default || l.label ? (s(), u("label", {
|
|
6182
6389
|
key: 0,
|
|
6183
6390
|
class: f(["w-textarea__label w-textarea__label--left w-form-el-shakable", e.labelClasses]),
|
|
6184
6391
|
for: `w-textarea--${e._.uid}`
|
|
6185
6392
|
}, [
|
|
6186
6393
|
p(e.$slots, "default", {}, () => [
|
|
6187
|
-
|
|
6394
|
+
S(_(l.label), 1)
|
|
6188
6395
|
])
|
|
6189
|
-
], 10,
|
|
6396
|
+
], 10, sa)) : c("", !0)
|
|
6190
6397
|
], 64)) : c("", !0),
|
|
6191
6398
|
w("div", {
|
|
6192
6399
|
class: f(["w-textarea__textarea-wrap", i.inputWrapClasses])
|
|
6193
6400
|
}, [
|
|
6194
|
-
l.innerIconLeft ? (s(),
|
|
6401
|
+
l.innerIconLeft ? (s(), m(o, {
|
|
6195
6402
|
key: 0,
|
|
6196
6403
|
class: "w-textarea__icon w-textarea__icon--inner-left",
|
|
6197
6404
|
tag: "label",
|
|
6198
6405
|
for: `w-textarea--${e._.uid}`,
|
|
6199
|
-
onClick: t[0] || (t[0] = (
|
|
6406
|
+
onClick: t[0] || (t[0] = (n) => e.$emit("click:inner-icon-left", n))
|
|
6200
6407
|
}, {
|
|
6201
6408
|
default: g(() => [
|
|
6202
|
-
|
|
6409
|
+
S(_(l.innerIconLeft), 1)
|
|
6203
6410
|
]),
|
|
6204
6411
|
_: 1
|
|
6205
6412
|
}, 8, ["for"])) : c("", !0),
|
|
6206
|
-
|
|
6413
|
+
N(w("textarea", C({
|
|
6207
6414
|
class: "w-textarea__textarea",
|
|
6208
6415
|
ref: "textarea",
|
|
6209
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
6210
|
-
},
|
|
6211
|
-
onInput: t[2] || (t[2] = (...
|
|
6212
|
-
onFocus: t[3] || (t[3] = (...
|
|
6213
|
-
onBlur: t[4] || (t[4] = (...
|
|
6416
|
+
"onUpdate:modelValue": t[1] || (t[1] = (n) => r.inputValue = n)
|
|
6417
|
+
}, W(i.listeners, !0), {
|
|
6418
|
+
onInput: t[2] || (t[2] = (...n) => i.onInput && i.onInput(...n)),
|
|
6419
|
+
onFocus: t[3] || (t[3] = (...n) => i.onFocus && i.onFocus(...n)),
|
|
6420
|
+
onBlur: t[4] || (t[4] = (...n) => i.onBlur && i.onBlur(...n)),
|
|
6214
6421
|
id: `w-textarea--${e._.uid}`,
|
|
6215
6422
|
name: e.inputName,
|
|
6216
6423
|
placeholder: l.placeholder || null,
|
|
@@ -6221,49 +6428,49 @@ function oa(e, t, l, o, n, i) {
|
|
|
6221
6428
|
disabled: e.isDisabled || null,
|
|
6222
6429
|
required: e.required || null,
|
|
6223
6430
|
tabindex: e.tabindex || null
|
|
6224
|
-
}), null, 16,
|
|
6225
|
-
[
|
|
6431
|
+
}), null, 16, aa), [
|
|
6432
|
+
[be, r.inputValue]
|
|
6226
6433
|
]),
|
|
6227
|
-
l.labelPosition === "inside" && i.showLabelInside ? (s(), u(
|
|
6434
|
+
l.labelPosition === "inside" && i.showLabelInside ? (s(), u(k, { key: 1 }, [
|
|
6228
6435
|
e.$slots.default || l.label ? (s(), u("label", {
|
|
6229
6436
|
key: 0,
|
|
6230
6437
|
class: f(["w-textarea__label w-textarea__label--inside w-form-el-shakable", e.labelClasses]),
|
|
6231
6438
|
for: `w-textarea--${e._.uid}`
|
|
6232
6439
|
}, [
|
|
6233
6440
|
p(e.$slots, "default", {}, () => [
|
|
6234
|
-
|
|
6441
|
+
S(_(l.label), 1)
|
|
6235
6442
|
])
|
|
6236
|
-
], 10,
|
|
6443
|
+
], 10, oa)) : c("", !0)
|
|
6237
6444
|
], 64)) : c("", !0),
|
|
6238
|
-
l.innerIconRight ? (s(),
|
|
6445
|
+
l.innerIconRight ? (s(), m(o, {
|
|
6239
6446
|
key: 2,
|
|
6240
6447
|
class: "w-textarea__icon w-textarea__icon--inner-right",
|
|
6241
6448
|
tag: "label",
|
|
6242
6449
|
for: `w-textarea--${e._.uid}`,
|
|
6243
|
-
onClick: t[5] || (t[5] = (
|
|
6450
|
+
onClick: t[5] || (t[5] = (n) => e.$emit("click:inner-icon-right", n))
|
|
6244
6451
|
}, {
|
|
6245
6452
|
default: g(() => [
|
|
6246
|
-
|
|
6453
|
+
S(_(l.innerIconRight), 1)
|
|
6247
6454
|
]),
|
|
6248
6455
|
_: 1
|
|
6249
6456
|
}, 8, ["for"])) : c("", !0)
|
|
6250
6457
|
], 2),
|
|
6251
|
-
l.labelPosition === "right" ? (s(), u(
|
|
6458
|
+
l.labelPosition === "right" ? (s(), u(k, { key: 1 }, [
|
|
6252
6459
|
e.$slots.default || l.label ? (s(), u("label", {
|
|
6253
6460
|
key: 0,
|
|
6254
6461
|
class: f(["w-textarea__label w-textarea__label--right w-form-el-shakable", e.labelClasses]),
|
|
6255
6462
|
for: `w-textarea--${e._.uid}`
|
|
6256
6463
|
}, [
|
|
6257
6464
|
p(e.$slots, "default", {}, () => [
|
|
6258
|
-
|
|
6465
|
+
S(_(l.label), 1)
|
|
6259
6466
|
])
|
|
6260
|
-
], 10,
|
|
6467
|
+
], 10, na)) : c("", !0)
|
|
6261
6468
|
], 64)) : c("", !0)
|
|
6262
6469
|
]),
|
|
6263
6470
|
_: 3
|
|
6264
6471
|
}, 16, ["valid", "wrap", "class"]);
|
|
6265
6472
|
}
|
|
6266
|
-
const
|
|
6473
|
+
const da = {
|
|
6267
6474
|
name: "w-textarea",
|
|
6268
6475
|
mixins: [z],
|
|
6269
6476
|
props: {
|
|
@@ -6299,8 +6506,8 @@ const na = {
|
|
|
6299
6506
|
},
|
|
6300
6507
|
computed: {
|
|
6301
6508
|
listeners() {
|
|
6302
|
-
const { input: e, focus: t, blur: l, ...
|
|
6303
|
-
return
|
|
6509
|
+
const { input: e, focus: t, blur: l, ...a } = this.$attrs;
|
|
6510
|
+
return a;
|
|
6304
6511
|
},
|
|
6305
6512
|
hasValue() {
|
|
6306
6513
|
return this.inputValue || this.inputValue === 0;
|
|
@@ -6379,45 +6586,45 @@ const na = {
|
|
|
6379
6586
|
e ? this.getLineHeight() : this.height = null;
|
|
6380
6587
|
}
|
|
6381
6588
|
}
|
|
6382
|
-
},
|
|
6383
|
-
function
|
|
6589
|
+
}, ua = /* @__PURE__ */ v(da, [["render", ra]]), ha = ["innerHTML"], ca = ["innerHTML"];
|
|
6590
|
+
function pa(e, t, l, a, r, i) {
|
|
6384
6591
|
return s(), u("ul", {
|
|
6385
6592
|
class: f(["w-timeline", i.classes])
|
|
6386
6593
|
}, [
|
|
6387
|
-
(s(!0), u(
|
|
6594
|
+
(s(!0), u(k, null, L(l.items, (o, n) => (s(), u("li", {
|
|
6388
6595
|
class: "w-timeline-item",
|
|
6389
|
-
key:
|
|
6596
|
+
key: n
|
|
6390
6597
|
}, [
|
|
6391
|
-
(s(),
|
|
6392
|
-
class: f(["w-timeline-item__bullet", { [
|
|
6598
|
+
(s(), m(V(o[l.itemIconKey] || l.icon ? "w-icon" : "div"), {
|
|
6599
|
+
class: f(["w-timeline-item__bullet", { [o[l.itemColorKey] || l.color]: o[l.itemColorKey] || l.color }])
|
|
6393
6600
|
}, {
|
|
6394
6601
|
default: g(() => [
|
|
6395
|
-
|
|
6602
|
+
S(_(o[l.itemIconKey] || l.icon), 1)
|
|
6396
6603
|
]),
|
|
6397
6604
|
_: 2
|
|
6398
6605
|
}, 1032, ["class"])),
|
|
6399
|
-
e.$slots[`item.${
|
|
6606
|
+
e.$slots[`item.${n + 1}`] ? p(e.$slots, `item.${n + 1}`, {
|
|
6400
6607
|
key: 1,
|
|
6401
|
-
item:
|
|
6402
|
-
index:
|
|
6608
|
+
item: o,
|
|
6609
|
+
index: n + 1
|
|
6403
6610
|
}) : p(e.$slots, "item", {
|
|
6404
6611
|
key: 0,
|
|
6405
|
-
item:
|
|
6406
|
-
index:
|
|
6612
|
+
item: o,
|
|
6613
|
+
index: n + 1
|
|
6407
6614
|
}, () => [
|
|
6408
6615
|
w("div", {
|
|
6409
|
-
class: f(["w-timeline-item__title", { [
|
|
6410
|
-
innerHTML:
|
|
6411
|
-
}, null, 10,
|
|
6616
|
+
class: f(["w-timeline-item__title", { [o[l.itemColorKey] || l.color]: o[l.itemColorKey] || l.color }]),
|
|
6617
|
+
innerHTML: o[l.itemTitleKey]
|
|
6618
|
+
}, null, 10, ha),
|
|
6412
6619
|
w("div", {
|
|
6413
6620
|
class: "w-timeline-item__content",
|
|
6414
|
-
innerHTML:
|
|
6415
|
-
}, null, 8,
|
|
6621
|
+
innerHTML: o[l.itemContentKey]
|
|
6622
|
+
}, null, 8, ca)
|
|
6416
6623
|
])
|
|
6417
6624
|
]))), 128))
|
|
6418
6625
|
], 2);
|
|
6419
6626
|
}
|
|
6420
|
-
const
|
|
6627
|
+
const fa = {
|
|
6421
6628
|
name: "w-timeline",
|
|
6422
6629
|
props: {
|
|
6423
6630
|
items: { type: [Array, Number], required: !0 },
|
|
@@ -6439,16 +6646,16 @@ const ca = {
|
|
|
6439
6646
|
};
|
|
6440
6647
|
}
|
|
6441
6648
|
}
|
|
6442
|
-
},
|
|
6443
|
-
function
|
|
6649
|
+
}, ga = /* @__PURE__ */ v(fa, [["render", pa]]);
|
|
6650
|
+
function ma(e, t, l, a, r, i) {
|
|
6444
6651
|
return s(), u("div", {
|
|
6445
6652
|
class: f(["w-toolbar", i.classes]),
|
|
6446
|
-
style:
|
|
6653
|
+
style: R(i.styles)
|
|
6447
6654
|
}, [
|
|
6448
6655
|
p(e.$slots, "default")
|
|
6449
6656
|
], 6);
|
|
6450
6657
|
}
|
|
6451
|
-
const
|
|
6658
|
+
const ba = {
|
|
6452
6659
|
name: "w-toolbar",
|
|
6453
6660
|
props: {
|
|
6454
6661
|
color: { type: String },
|
|
@@ -6497,11 +6704,11 @@ const ga = {
|
|
|
6497
6704
|
};
|
|
6498
6705
|
}
|
|
6499
6706
|
}
|
|
6500
|
-
},
|
|
6501
|
-
function
|
|
6502
|
-
return s(), u(
|
|
6707
|
+
}, ya = /* @__PURE__ */ v(ba, [["render", ma]]);
|
|
6708
|
+
function wa(e, t, l, a, r, i) {
|
|
6709
|
+
return s(), u(k, null, [
|
|
6503
6710
|
p(e.$slots, "activator", { on: i.activatorEventHandlers }),
|
|
6504
|
-
I(
|
|
6711
|
+
I(O, {
|
|
6505
6712
|
name: i.transitionName,
|
|
6506
6713
|
appear: ""
|
|
6507
6714
|
}, {
|
|
@@ -6510,7 +6717,7 @@ function ba(e, t, l, o, n, i) {
|
|
|
6510
6717
|
class: f(["w-tooltip", i.classes]),
|
|
6511
6718
|
ref: "detachable",
|
|
6512
6719
|
key: e._.uid,
|
|
6513
|
-
style:
|
|
6720
|
+
style: R(i.styles)
|
|
6514
6721
|
}, [
|
|
6515
6722
|
p(e.$slots, "default")
|
|
6516
6723
|
], 6)) : c("", !0)
|
|
@@ -6519,9 +6726,9 @@ function ba(e, t, l, o, n, i) {
|
|
|
6519
6726
|
}, 8, ["name"])
|
|
6520
6727
|
], 64);
|
|
6521
6728
|
}
|
|
6522
|
-
const
|
|
6729
|
+
const va = {
|
|
6523
6730
|
name: "w-tooltip",
|
|
6524
|
-
mixins: [
|
|
6731
|
+
mixins: [we],
|
|
6525
6732
|
props: {
|
|
6526
6733
|
modelValue: {},
|
|
6527
6734
|
showOnClick: { type: Boolean },
|
|
@@ -6551,7 +6758,7 @@ const ya = {
|
|
|
6551
6758
|
}),
|
|
6552
6759
|
computed: {
|
|
6553
6760
|
tooltipClasses() {
|
|
6554
|
-
return
|
|
6761
|
+
return A(this.tooltipClass);
|
|
6555
6762
|
},
|
|
6556
6763
|
transitionName() {
|
|
6557
6764
|
const e = this.position.replace(/top|bottom/, (t) => ({ top: "up", bottom: "down" })[t]);
|
|
@@ -6605,24 +6812,24 @@ const ya = {
|
|
|
6605
6812
|
!this.detachableVisible || this.showOnHover && !e && (await new Promise((t) => setTimeout(t, 10)), this.showOnHover && this.hoveringActivator) || (this.$emit("update:modelValue", this.detachableVisible = !1), this.$emit("input", !1), this.$emit("close"), document.removeEventListener("mousedown", this.onOutsideMousedown), window.removeEventListener("resize", this.onResize));
|
|
6606
6813
|
}
|
|
6607
6814
|
}
|
|
6608
|
-
},
|
|
6609
|
-
function
|
|
6610
|
-
return s(),
|
|
6815
|
+
}, ka = /* @__PURE__ */ v(va, [["render", wa]]);
|
|
6816
|
+
function _a(e, t, l, a, r, i) {
|
|
6817
|
+
return s(), m(O, C({ name: "bounce" }, e.$props), {
|
|
6611
6818
|
default: g(() => [
|
|
6612
6819
|
p(e.$slots, "default")
|
|
6613
6820
|
]),
|
|
6614
6821
|
_: 3
|
|
6615
6822
|
}, 16);
|
|
6616
6823
|
}
|
|
6617
|
-
const
|
|
6824
|
+
const Ca = {
|
|
6618
6825
|
name: "w-transition-bounce",
|
|
6619
6826
|
props: {
|
|
6620
6827
|
appear: { type: Boolean },
|
|
6621
6828
|
duration: { type: [Number, String] }
|
|
6622
6829
|
}
|
|
6623
|
-
},
|
|
6624
|
-
function
|
|
6625
|
-
return s(),
|
|
6830
|
+
}, Sa = /* @__PURE__ */ v(Ca, [["render", _a]]);
|
|
6831
|
+
function Ba(e, t, l, a, r, i) {
|
|
6832
|
+
return s(), m(O, {
|
|
6626
6833
|
name: "expand",
|
|
6627
6834
|
mode: "out-in",
|
|
6628
6835
|
css: !1,
|
|
@@ -6642,7 +6849,7 @@ function Ca(e, t, l, o, n, i) {
|
|
|
6642
6849
|
_: 3
|
|
6643
6850
|
}, 8, ["onBeforeAppear", "onAppear", "onAfterAppear", "onBeforeEnter", "onEnter", "onAfterEnter", "onBeforeLeave", "onLeave", "onAfterLeave"]);
|
|
6644
6851
|
}
|
|
6645
|
-
const
|
|
6852
|
+
const $a = {
|
|
6646
6853
|
name: "w-transition-expand",
|
|
6647
6854
|
props: {
|
|
6648
6855
|
x: { type: Boolean },
|
|
@@ -6732,61 +6939,61 @@ const Ba = {
|
|
|
6732
6939
|
this.animX && (this.el.width = e.offsetWidth, this.el.marginLeft = t.getPropertyValue("marginLeft"), this.el.marginRight = t.getPropertyValue("marginRight"), this.el.paddingLeft = t.getPropertyValue("paddingLeft"), this.el.paddingRight = t.getPropertyValue("paddingRight"), this.el.borderLeftWidth = t.getPropertyValue("borderLeftWidth"), this.el.borderRightWidth = t.getPropertyValue("borderRightWidth")), this.animY && (this.el.height = e.offsetHeight, this.el.marginTop = t.getPropertyValue("marginTop"), this.el.marginBottom = t.getPropertyValue("marginBottom"), this.el.paddingTop = t.getPropertyValue("paddingTop"), this.el.paddingBottom = t.getPropertyValue("paddingBottom"), this.el.borderTopWidth = t.getPropertyValue("borderTopWidth"), this.el.borderBottomWidth = t.getPropertyValue("borderBottomWidth")), this.el.savedState = !0;
|
|
6733
6940
|
}
|
|
6734
6941
|
}
|
|
6735
|
-
},
|
|
6736
|
-
function
|
|
6737
|
-
return s(),
|
|
6942
|
+
}, Va = /* @__PURE__ */ v($a, [["render", Ba]]);
|
|
6943
|
+
function Ia(e, t, l, a, r, i) {
|
|
6944
|
+
return s(), m(O, C({ name: "fade" }, e.$props), {
|
|
6738
6945
|
default: g(() => [
|
|
6739
6946
|
p(e.$slots, "default")
|
|
6740
6947
|
]),
|
|
6741
6948
|
_: 3
|
|
6742
6949
|
}, 16);
|
|
6743
6950
|
}
|
|
6744
|
-
const
|
|
6951
|
+
const Ta = {
|
|
6745
6952
|
name: "w-transition-fade",
|
|
6746
6953
|
props: {
|
|
6747
6954
|
appear: { type: Boolean },
|
|
6748
6955
|
duration: { type: [Number, String] }
|
|
6749
6956
|
}
|
|
6750
|
-
},
|
|
6751
|
-
function
|
|
6752
|
-
return s(),
|
|
6957
|
+
}, Ra = /* @__PURE__ */ v(Ta, [["render", Ia]]);
|
|
6958
|
+
function La(e, t, l, a, r, i) {
|
|
6959
|
+
return s(), m(O, C({ name: "scale" }, e.$props), {
|
|
6753
6960
|
default: g(() => [
|
|
6754
6961
|
p(e.$slots, "default")
|
|
6755
6962
|
]),
|
|
6756
6963
|
_: 3
|
|
6757
6964
|
}, 16);
|
|
6758
6965
|
}
|
|
6759
|
-
const
|
|
6966
|
+
const xa = {
|
|
6760
6967
|
name: "w-transition-scale",
|
|
6761
6968
|
props: {
|
|
6762
6969
|
appear: { type: Boolean },
|
|
6763
6970
|
duration: { type: [Number, String] }
|
|
6764
6971
|
}
|
|
6765
|
-
},
|
|
6766
|
-
function
|
|
6767
|
-
return s(),
|
|
6972
|
+
}, Oa = /* @__PURE__ */ v(xa, [["render", La]]);
|
|
6973
|
+
function Pa(e, t, l, a, r, i) {
|
|
6974
|
+
return s(), m(O, C({ name: "scale-fade" }, e.$props), {
|
|
6768
6975
|
default: g(() => [
|
|
6769
6976
|
p(e.$slots, "default")
|
|
6770
6977
|
]),
|
|
6771
6978
|
_: 3
|
|
6772
6979
|
}, 16);
|
|
6773
6980
|
}
|
|
6774
|
-
const
|
|
6981
|
+
const za = {
|
|
6775
6982
|
name: "w-transition-scale-fade",
|
|
6776
6983
|
props: {
|
|
6777
6984
|
appear: { type: Boolean },
|
|
6778
6985
|
duration: { type: [Number, String] }
|
|
6779
6986
|
}
|
|
6780
|
-
},
|
|
6781
|
-
function
|
|
6782
|
-
return s(),
|
|
6987
|
+
}, Ma = /* @__PURE__ */ v(za, [["render", Pa]]);
|
|
6988
|
+
function Ea(e, t, l, a, r, i) {
|
|
6989
|
+
return s(), m(O, C({ name: i.transitionName }, e.$props), {
|
|
6783
6990
|
default: g(() => [
|
|
6784
6991
|
p(e.$slots, "default")
|
|
6785
6992
|
]),
|
|
6786
6993
|
_: 3
|
|
6787
6994
|
}, 16, ["name"]);
|
|
6788
6995
|
}
|
|
6789
|
-
const
|
|
6996
|
+
const Wa = {
|
|
6790
6997
|
name: "w-transition-slide",
|
|
6791
6998
|
props: {
|
|
6792
6999
|
appear: { type: Boolean },
|
|
@@ -6804,16 +7011,16 @@ const Ea = {
|
|
|
6804
7011
|
return `slide-${this.direction}`;
|
|
6805
7012
|
}
|
|
6806
7013
|
}
|
|
6807
|
-
},
|
|
6808
|
-
function
|
|
6809
|
-
return s(),
|
|
7014
|
+
}, Aa = /* @__PURE__ */ v(Wa, [["render", Ea]]);
|
|
7015
|
+
function Na(e, t, l, a, r, i) {
|
|
7016
|
+
return s(), m(O, C({ name: i.transitionName }, e.$props), {
|
|
6810
7017
|
default: g(() => [
|
|
6811
7018
|
p(e.$slots, "default")
|
|
6812
7019
|
]),
|
|
6813
7020
|
_: 3
|
|
6814
7021
|
}, 16, ["name"]);
|
|
6815
7022
|
}
|
|
6816
|
-
const
|
|
7023
|
+
const Ka = {
|
|
6817
7024
|
name: "w-transition-slide-fade",
|
|
6818
7025
|
props: {
|
|
6819
7026
|
appear: { type: Boolean },
|
|
@@ -6831,44 +7038,44 @@ const Na = {
|
|
|
6831
7038
|
return `slide-fade-${this.direction}`;
|
|
6832
7039
|
}
|
|
6833
7040
|
}
|
|
6834
|
-
},
|
|
6835
|
-
function
|
|
6836
|
-
return s(),
|
|
7041
|
+
}, Ha = /* @__PURE__ */ v(Ka, [["render", Na]]);
|
|
7042
|
+
function Da(e, t, l, a, r, i) {
|
|
7043
|
+
return s(), m(O, C({ name: "twist" }, e.$props), {
|
|
6837
7044
|
default: g(() => [
|
|
6838
7045
|
p(e.$slots, "default")
|
|
6839
7046
|
]),
|
|
6840
7047
|
_: 3
|
|
6841
7048
|
}, 16);
|
|
6842
7049
|
}
|
|
6843
|
-
const
|
|
7050
|
+
const Fa = {
|
|
6844
7051
|
name: "w-transition-twist",
|
|
6845
7052
|
props: {
|
|
6846
7053
|
appear: { type: Boolean },
|
|
6847
7054
|
duration: { type: [Number, String] }
|
|
6848
7055
|
}
|
|
6849
|
-
},
|
|
7056
|
+
}, ja = /* @__PURE__ */ v(Fa, [["render", Da]]), Ua = ["innerHTML"], qa = {
|
|
6850
7057
|
key: 1,
|
|
6851
7058
|
class: "ml1"
|
|
6852
7059
|
};
|
|
6853
|
-
function
|
|
6854
|
-
const
|
|
7060
|
+
function Xa(e, t, l, a, r, i) {
|
|
7061
|
+
const o = $("w-button"), n = $("w-icon"), d = $("w-tree", !0);
|
|
6855
7062
|
return s(), u("ul", {
|
|
6856
7063
|
class: f(["w-tree", i.classes])
|
|
6857
7064
|
}, [
|
|
6858
|
-
(s(!0), u(
|
|
7065
|
+
(s(!0), u(k, null, L(e.currentDepthItems, (h, y) => (s(), u("li", {
|
|
6859
7066
|
class: f(["w-tree__item", i.itemClasses(h)]),
|
|
6860
7067
|
key: y
|
|
6861
7068
|
}, [
|
|
6862
|
-
(s(),
|
|
6863
|
-
onClick: (
|
|
6864
|
-
onKeydown: (
|
|
7069
|
+
(s(), m(V(i.getTreeItemComponent(h)), C({ class: "w-tree__item-label" }, h.route && { [!e.$router || i.hasExternalLink(h) ? "href" : "to"]: h.route }, {
|
|
7070
|
+
onClick: (B) => !l.disabled && !h.disabled && i.onLabelClick(h, B),
|
|
7071
|
+
onKeydown: (B) => !l.disabled && !h.disabled && i.onLabelKeydown(h, B),
|
|
6865
7072
|
tabindex: i.getTreeItemTabindex(h)
|
|
6866
7073
|
}), {
|
|
6867
7074
|
default: g(() => [
|
|
6868
|
-
(h.children || h.branch) && (l.expandOpenIcon && h.open || l.expandIcon) && !(l.unexpandableEmpty && !h.children) ? (s(),
|
|
7075
|
+
(h.children || h.branch) && (l.expandOpenIcon && h.open || l.expandIcon) && !(l.unexpandableEmpty && !h.children) ? (s(), m(o, {
|
|
6869
7076
|
key: 0,
|
|
6870
7077
|
class: "w-tree__item-expand",
|
|
6871
|
-
onClick:
|
|
7078
|
+
onClick: M((B) => !l.disabled && !h.disabled && i.onLabelClick(h, B), ["stop"]),
|
|
6872
7079
|
color: "inherit",
|
|
6873
7080
|
icon: h.open && l.expandOpenIcon || l.expandIcon,
|
|
6874
7081
|
"icon-props": { rotate90a: !h.open },
|
|
@@ -6883,51 +7090,51 @@ function Ua(e, t, l, o, n, i) {
|
|
|
6883
7090
|
path: h.path,
|
|
6884
7091
|
open: h.open
|
|
6885
7092
|
}, () => {
|
|
6886
|
-
var
|
|
7093
|
+
var B;
|
|
6887
7094
|
return [
|
|
6888
|
-
i.itemIcon(h) ? (s(),
|
|
7095
|
+
i.itemIcon(h) ? (s(), m(n, {
|
|
6889
7096
|
key: 0,
|
|
6890
7097
|
class: "w-tree__item-icon",
|
|
6891
7098
|
color: h.originalItem[l.itemIconColorKey] || l.iconColor
|
|
6892
7099
|
}, {
|
|
6893
7100
|
default: g(() => [
|
|
6894
|
-
|
|
7101
|
+
S(_(i.itemIcon(h)), 1)
|
|
6895
7102
|
]),
|
|
6896
7103
|
_: 2
|
|
6897
7104
|
}, 1032, ["color"])) : c("", !0),
|
|
6898
7105
|
w("span", {
|
|
6899
7106
|
innerHTML: h.label
|
|
6900
|
-
}, null, 8,
|
|
6901
|
-
l.counts && (h.children || h.branch) ? (s(), u("span",
|
|
7107
|
+
}, null, 8, Ua),
|
|
7108
|
+
l.counts && (h.children || h.branch) ? (s(), u("span", qa, "(" + _(((B = h.originalItem.children) == null ? void 0 : B.length) || 0) + ")", 1)) : c("", !0)
|
|
6902
7109
|
];
|
|
6903
7110
|
})
|
|
6904
7111
|
]),
|
|
6905
7112
|
_: 2
|
|
6906
7113
|
}, 1040, ["onClick", "onKeydown", "tabindex"])),
|
|
6907
|
-
(s(),
|
|
7114
|
+
(s(), m(V(l.noTransition ? "div" : "w-transition-expand"), {
|
|
6908
7115
|
y: !l.noTransition || null,
|
|
6909
|
-
onAfterEnter: (
|
|
6910
|
-
onAfterLeave: (
|
|
7116
|
+
onAfterEnter: (B) => e.$emit("open", { item: h.originalItem, open: h.open, depth: l.depth, path: i.getTreeItemPathForOutput(h) }),
|
|
7117
|
+
onAfterLeave: (B) => e.$emit("close", { item: h.originalItem, open: h.open, depth: l.depth, path: i.getTreeItemPathForOutput(h) })
|
|
6911
7118
|
}, {
|
|
6912
7119
|
default: g(() => [
|
|
6913
|
-
h.children && h.open ? (s(),
|
|
7120
|
+
h.children && h.open ? (s(), m(d, C({ key: 0 }, e.$props, {
|
|
6914
7121
|
depth: l.depth + 1,
|
|
6915
7122
|
data: h.originalItem.children,
|
|
6916
7123
|
parent: h,
|
|
6917
|
-
onBeforeOpen: t[0] || (t[0] = (
|
|
6918
|
-
onOpen: t[1] || (t[1] = (
|
|
6919
|
-
onBeforeClose: t[2] || (t[2] = (
|
|
6920
|
-
onClose: t[3] || (t[3] = (
|
|
6921
|
-
onClick: t[4] || (t[4] = (
|
|
6922
|
-
onSelect: t[5] || (t[5] = (
|
|
6923
|
-
"onUpdate:modelValue": t[6] || (t[6] = (
|
|
7124
|
+
onBeforeOpen: t[0] || (t[0] = (B) => e.$emit("before-open", B)),
|
|
7125
|
+
onOpen: t[1] || (t[1] = (B) => e.$emit("open", B)),
|
|
7126
|
+
onBeforeClose: t[2] || (t[2] = (B) => e.$emit("before-close", B)),
|
|
7127
|
+
onClose: t[3] || (t[3] = (B) => e.$emit("close", B)),
|
|
7128
|
+
onClick: t[4] || (t[4] = (B) => e.$emit("click", B)),
|
|
7129
|
+
onSelect: t[5] || (t[5] = (B) => e.$emit("select", B)),
|
|
7130
|
+
"onUpdate:modelValue": t[6] || (t[6] = (B) => e.$emit("update:model-value", B))
|
|
6924
7131
|
}), {
|
|
6925
|
-
item: g(({ item:
|
|
7132
|
+
item: g(({ item: B, depth: b, path: T, open: x }) => [
|
|
6926
7133
|
p(e.$slots, "item", {
|
|
6927
|
-
item:
|
|
6928
|
-
depth:
|
|
6929
|
-
path:
|
|
6930
|
-
open:
|
|
7134
|
+
item: B,
|
|
7135
|
+
depth: b,
|
|
7136
|
+
path: T,
|
|
7137
|
+
open: x
|
|
6931
7138
|
})
|
|
6932
7139
|
]),
|
|
6933
7140
|
_: 2
|
|
@@ -6938,7 +7145,7 @@ function Ua(e, t, l, o, n, i) {
|
|
|
6938
7145
|
], 2))), 128))
|
|
6939
7146
|
], 2);
|
|
6940
7147
|
}
|
|
6941
|
-
const
|
|
7148
|
+
const Ya = {
|
|
6942
7149
|
name: "w-tree",
|
|
6943
7150
|
props: {
|
|
6944
7151
|
modelValue: { type: [Object, Array] },
|
|
@@ -6985,23 +7192,23 @@ const qa = {
|
|
|
6985
7192
|
methods: {
|
|
6986
7193
|
updateCurrentDepthTree(e, t = []) {
|
|
6987
7194
|
if (this.currentDepthItems = [], !Array.isArray(e) && typeof e != "object")
|
|
6988
|
-
return
|
|
6989
|
-
Array.isArray(e) || (e = [e]), e.forEach((l,
|
|
7195
|
+
return G(`[w-tree] the tree items must be of type array or object, ${typeof e} received.`);
|
|
7196
|
+
Array.isArray(e) || (e = [e]), e.forEach((l, a) => {
|
|
6990
7197
|
var i;
|
|
6991
|
-
const
|
|
7198
|
+
const r = {
|
|
6992
7199
|
originalItem: l,
|
|
6993
|
-
_uid: this.depth.toString() + (
|
|
7200
|
+
_uid: this.depth.toString() + (a + 1),
|
|
6994
7201
|
label: l[this.itemLabelKey],
|
|
6995
7202
|
children: !!l.children,
|
|
6996
7203
|
branch: l.branch,
|
|
6997
7204
|
route: l[this.itemRouteKey],
|
|
6998
7205
|
disabled: l[this.itemDisabledKey],
|
|
6999
7206
|
depth: this.depth,
|
|
7000
|
-
open: !!(((i = t[
|
|
7207
|
+
open: !!(((i = t[a]) == null ? void 0 : i.open) || this.expandAll || l[this.itemOpenKey]),
|
|
7001
7208
|
parent: this.parent || null,
|
|
7002
7209
|
path: []
|
|
7003
7210
|
};
|
|
7004
|
-
|
|
7211
|
+
r.path = this.getTreeItemPath(r), this.currentDepthItems.push(r);
|
|
7005
7212
|
});
|
|
7006
7213
|
},
|
|
7007
7214
|
getTreeItemComponent(e) {
|
|
@@ -7049,8 +7256,8 @@ const qa = {
|
|
|
7049
7256
|
},
|
|
7050
7257
|
onLabelKeydown(e, t) {
|
|
7051
7258
|
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))) {
|
|
7052
|
-
const
|
|
7053
|
-
[...
|
|
7259
|
+
const a = this.$el.closest(".w-tree--depth0").querySelectorAll('.w-tree__item-label[tabindex="0"]'), r = t.target.closest(".w-tree__item-label"), i = t.which === 38 ? -1 : 1;
|
|
7260
|
+
[...a].some((o, n) => o.isSameNode(r) ? (a[n + i] && a[n + i].focus(), !0) : !1);
|
|
7054
7261
|
}
|
|
7055
7262
|
this.selectable && this.emitItemSelection(e, t);
|
|
7056
7263
|
},
|
|
@@ -7094,62 +7301,62 @@ const qa = {
|
|
|
7094
7301
|
unmounted() {
|
|
7095
7302
|
this.dataPropUnwatch();
|
|
7096
7303
|
}
|
|
7097
|
-
}, Ga = /* @__PURE__ */ v(
|
|
7304
|
+
}, Ga = /* @__PURE__ */ v(Ya, [["render", Xa]]), Ja = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
7098
7305
|
__proto__: null,
|
|
7099
|
-
WAccordion:
|
|
7100
|
-
WAlert:
|
|
7101
|
-
WApp:
|
|
7102
|
-
WBadge:
|
|
7103
|
-
WBreadcrumbs:
|
|
7104
|
-
WButton:
|
|
7105
|
-
WCard:
|
|
7106
|
-
WCheckbox:
|
|
7306
|
+
WAccordion: Ye,
|
|
7307
|
+
WAlert: Ze,
|
|
7308
|
+
WApp: it,
|
|
7309
|
+
WBadge: ot,
|
|
7310
|
+
WBreadcrumbs: ut,
|
|
7311
|
+
WButton: wt,
|
|
7312
|
+
WCard: Ct,
|
|
7313
|
+
WCheckbox: Ot,
|
|
7107
7314
|
WCheckboxes: Et,
|
|
7108
7315
|
WConfirm: Nt,
|
|
7109
7316
|
WDatePicker: Dt,
|
|
7110
|
-
WDialog:
|
|
7111
|
-
WDivider:
|
|
7112
|
-
WDrawer:
|
|
7113
|
-
WFlex:
|
|
7114
|
-
WForm:
|
|
7115
|
-
WFormElement:
|
|
7116
|
-
WGrid:
|
|
7117
|
-
WIcon:
|
|
7118
|
-
WImage:
|
|
7119
|
-
WInput:
|
|
7120
|
-
WList:
|
|
7317
|
+
WDialog: Ut,
|
|
7318
|
+
WDivider: Gt,
|
|
7319
|
+
WDrawer: tl,
|
|
7320
|
+
WFlex: sl,
|
|
7321
|
+
WForm: rl,
|
|
7322
|
+
WFormElement: hl,
|
|
7323
|
+
WGrid: fl,
|
|
7324
|
+
WIcon: bl,
|
|
7325
|
+
WImage: kl,
|
|
7326
|
+
WInput: Ol,
|
|
7327
|
+
WList: Ml,
|
|
7121
7328
|
WMenu: Al,
|
|
7122
|
-
WNotification:
|
|
7123
|
-
WOverlay:
|
|
7124
|
-
WParallax:
|
|
7125
|
-
WProgress:
|
|
7126
|
-
WRadio:
|
|
7127
|
-
WRadios:
|
|
7128
|
-
WRating:
|
|
7129
|
-
|
|
7329
|
+
WNotification: Hl,
|
|
7330
|
+
WOverlay: jl,
|
|
7331
|
+
WParallax: Yl,
|
|
7332
|
+
WProgress: ii,
|
|
7333
|
+
WRadio: hi,
|
|
7334
|
+
WRadios: gi,
|
|
7335
|
+
WRating: vi,
|
|
7336
|
+
WScrollable: Si,
|
|
7130
7337
|
WSelect: Pi,
|
|
7131
|
-
WSlider:
|
|
7132
|
-
WSpinner:
|
|
7133
|
-
WSteps:
|
|
7134
|
-
WSwitch:
|
|
7135
|
-
WTabs:
|
|
7136
|
-
WTable:
|
|
7137
|
-
WTag:
|
|
7138
|
-
WTextarea:
|
|
7139
|
-
WTimeline:
|
|
7140
|
-
WToolbar:
|
|
7141
|
-
WTooltip:
|
|
7142
|
-
WTransitionBounce:
|
|
7143
|
-
WTransitionExpand:
|
|
7144
|
-
WTransitionFade:
|
|
7145
|
-
WTransitionScale:
|
|
7146
|
-
WTransitionScaleFade:
|
|
7147
|
-
WTransitionSlide:
|
|
7148
|
-
WTransitionSlideFade:
|
|
7149
|
-
WTransitionTwist:
|
|
7338
|
+
WSlider: Xi,
|
|
7339
|
+
WSpinner: Qi,
|
|
7340
|
+
WSteps: ts,
|
|
7341
|
+
WSwitch: ds,
|
|
7342
|
+
WTabs: _s,
|
|
7343
|
+
WTable: Zs,
|
|
7344
|
+
WTag: ia,
|
|
7345
|
+
WTextarea: ua,
|
|
7346
|
+
WTimeline: ga,
|
|
7347
|
+
WToolbar: ya,
|
|
7348
|
+
WTooltip: ka,
|
|
7349
|
+
WTransitionBounce: Sa,
|
|
7350
|
+
WTransitionExpand: Va,
|
|
7351
|
+
WTransitionFade: Ra,
|
|
7352
|
+
WTransitionScale: Oa,
|
|
7353
|
+
WTransitionScaleFade: Ma,
|
|
7354
|
+
WTransitionSlide: Aa,
|
|
7355
|
+
WTransitionSlideFade: Ha,
|
|
7356
|
+
WTransitionTwist: ja,
|
|
7150
7357
|
WTree: Ga
|
|
7151
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
7152
|
-
|
|
7358
|
+
}, Symbol.toStringTag, { value: "Module" })), Qa = K.install;
|
|
7359
|
+
K.install = (e, t = {}) => Qa.call(K, e, { components: Ja, ...t });
|
|
7153
7360
|
export {
|
|
7154
|
-
|
|
7361
|
+
K as default
|
|
7155
7362
|
};
|