wave-ui 3.1.0 → 3.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/wave-ui.cjs.js +1 -1
- package/dist/wave-ui.css +1 -1
- package/dist/wave-ui.es.js +640 -597
- package/dist/wave-ui.umd.js +1 -1
- package/package.json +10 -9
- package/src/wave-ui/components/w-table.vue +75 -32
- package/src/wave-ui/scss/_variables.scss +1 -1
package/dist/wave-ui.es.js
CHANGED
|
@@ -9,7 +9,7 @@ var X = (e, t, l) => (ae(e, t, "read from private field"), l ? l.call(e) : t.get
|
|
|
9
9
|
throw TypeError("Cannot add the same private member more than once");
|
|
10
10
|
t instanceof WeakSet ? t.add(e) : t.set(e, l);
|
|
11
11
|
}, te = (e, t, l, a) => (ae(e, t, "write to private field"), a ? a.call(e, l) : t.set(e, l), l);
|
|
12
|
-
import { reactive as G, resolveComponent as $, openBlock as s, createBlock as
|
|
12
|
+
import { reactive as G, resolveComponent as $, openBlock as s, createBlock as b, Teleport as ke, createVNode as V, TransitionGroup as pe, normalizeClass as f, withCtx as m, createElementBlock as u, Fragment as _, renderList as T, mergeProps as B, createElementVNode as w, createCommentVNode as c, createApp as _e, defineComponent as Ce, inject as Be, withKeys as M, withModifiers as E, renderSlot as p, toHandlers as N, createTextVNode as C, toDisplayString as k, Transition as x, normalizeStyle as L, resolveDynamicComponent as I, normalizeProps as ie, resolveDirective as fe, withDirectives as D, createSlots as Z, vShow as me, vModelText as ge, vModelDynamic as Se, KeepAlive as $e } from "vue";
|
|
13
13
|
const Ve = G({
|
|
14
14
|
on: "#app",
|
|
15
15
|
breakpoints: {
|
|
@@ -61,9 +61,9 @@ const Ve = G({
|
|
|
61
61
|
}
|
|
62
62
|
return t;
|
|
63
63
|
}, Ie = ["innerHTML"];
|
|
64
|
-
function Re(e, t, l, a,
|
|
65
|
-
const
|
|
66
|
-
return s(),
|
|
64
|
+
function Re(e, t, l, a, o, i) {
|
|
65
|
+
const n = $("w-alert");
|
|
66
|
+
return s(), b(ke, { to: ".w-app" }, [
|
|
67
67
|
V(pe, {
|
|
68
68
|
class: f(["w-notification-manager", { "w-notification-manager--left": i.conf.align === "left" }]),
|
|
69
69
|
tag: "div",
|
|
@@ -71,8 +71,8 @@ function Re(e, t, l, a, n, i) {
|
|
|
71
71
|
appear: ""
|
|
72
72
|
}, {
|
|
73
73
|
default: m(() => [
|
|
74
|
-
(s(!0), u(
|
|
75
|
-
r._value ? (s(),
|
|
74
|
+
(s(!0), u(_, null, T(i.notifications, (r) => (s(), u(_, null, [
|
|
75
|
+
r._value ? (s(), b(n, B({
|
|
76
76
|
class: "white--bg",
|
|
77
77
|
key: r._uid,
|
|
78
78
|
modelValue: r._value,
|
|
@@ -94,8 +94,8 @@ function Re(e, t, l, a, n, i) {
|
|
|
94
94
|
}
|
|
95
95
|
const v = (e, t) => {
|
|
96
96
|
const l = e.__vccOpts || e;
|
|
97
|
-
for (const [a,
|
|
98
|
-
l[a] =
|
|
97
|
+
for (const [a, o] of t)
|
|
98
|
+
l[a] = o;
|
|
99
99
|
return l;
|
|
100
100
|
}, Le = {
|
|
101
101
|
name: "w-notification-manager",
|
|
@@ -113,11 +113,11 @@ const v = (e, t) => {
|
|
|
113
113
|
},
|
|
114
114
|
methods: {
|
|
115
115
|
notifProps(e) {
|
|
116
|
-
const { _value: t, _uid: l, message: a, timeout:
|
|
116
|
+
const { _value: t, _uid: l, message: a, timeout: o, ...i } = e;
|
|
117
117
|
return i.dismiss && (i.dismiss = !0), i;
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
|
-
},
|
|
120
|
+
}, Te = /* @__PURE__ */ v(Le, [["render", Re]]);
|
|
121
121
|
var K;
|
|
122
122
|
const H = class {
|
|
123
123
|
constructor() {
|
|
@@ -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 [a,
|
|
145
|
+
const [a, o, i] = t;
|
|
146
146
|
l = {
|
|
147
147
|
...l,
|
|
148
148
|
message: a || "",
|
|
149
|
-
[
|
|
149
|
+
[o === void 0 ? "info" : o]: !0,
|
|
150
150
|
timeout: i || i === 0 ? parseFloat(i) : 4e3
|
|
151
151
|
};
|
|
152
152
|
}
|
|
@@ -158,19 +158,19 @@ const H = class {
|
|
|
158
158
|
};
|
|
159
159
|
let Y = H;
|
|
160
160
|
K = new WeakMap(), ee(Y, K, void 0);
|
|
161
|
-
const
|
|
161
|
+
const xe = (e, t, l) => {
|
|
162
162
|
const a = document.createElement("div");
|
|
163
163
|
e.appendChild(a);
|
|
164
|
-
const
|
|
165
|
-
...
|
|
164
|
+
const o = _e(Ce({
|
|
165
|
+
...Te,
|
|
166
166
|
inject: ["$waveui"]
|
|
167
167
|
})).provide("$waveui", l);
|
|
168
168
|
for (const i in t) {
|
|
169
|
-
const
|
|
170
|
-
|
|
169
|
+
const n = t[i];
|
|
170
|
+
o.component(n.name, { ...n, inject: ["$waveui"] });
|
|
171
171
|
}
|
|
172
|
-
|
|
173
|
-
}, oe = (e, t) => "#" + e.slice(1).match(/../g).map((l) => (l = +`0x${l}` + t, (l < 0 ? 0 : l > 255 ? 255 : l).toString(16).padStart(2, 0))).join(""),
|
|
172
|
+
o.mount(a), a.remove();
|
|
173
|
+
}, oe = (e, t) => "#" + e.slice(1).match(/../g).map((l) => (l = +`0x${l}` + t, (l < 0 ? 0 : l > 255 ? 255 : l).toString(16).padStart(2, 0))).join(""), Pe = (e) => {
|
|
174
174
|
["light", "dark"].forEach((t) => {
|
|
175
175
|
const l = e.colors[t];
|
|
176
176
|
l.shades = {};
|
|
@@ -178,19 +178,19 @@ const Te = (e, t, l) => {
|
|
|
178
178
|
if (a === "shades")
|
|
179
179
|
continue;
|
|
180
180
|
a = { label: a, color: l[a].replace("#", "") };
|
|
181
|
-
const
|
|
182
|
-
|
|
181
|
+
const o = a.color;
|
|
182
|
+
o.length === 3 && (a.color = o[0] + "" + o[0] + o[1] + o[1] + o[2] + o[2]);
|
|
183
183
|
for (let i = 1; i <= 3; i++) {
|
|
184
|
-
const
|
|
185
|
-
l.shades[`${a.label}-light${i}`] =
|
|
184
|
+
const n = oe(`#${a.color}`, i * 40), r = oe(`#${a.color}`, -i * 40);
|
|
185
|
+
l.shades[`${a.label}-light${i}`] = n, l.shades[`${a.label}-dark${i}`] = r;
|
|
186
186
|
}
|
|
187
187
|
}
|
|
188
188
|
});
|
|
189
189
|
}, ne = (e, t) => {
|
|
190
190
|
const l = {
|
|
191
|
-
...t.reduce((a,
|
|
192
|
-
a[
|
|
193
|
-
const i = (
|
|
191
|
+
...t.reduce((a, o) => {
|
|
192
|
+
a[o.label] = o.color;
|
|
193
|
+
const i = (o.shades || []).reduce((n, r) => (n[r.label] = r.color, n), {});
|
|
194
194
|
return { ...a, ...i };
|
|
195
195
|
}, { ...e, ...e.shades })
|
|
196
196
|
};
|
|
@@ -547,37 +547,37 @@ const Te = (e, t, l) => {
|
|
|
547
547
|
baseIncrement: 4
|
|
548
548
|
};
|
|
549
549
|
let se = { keys: [], values: [] }, de = null;
|
|
550
|
-
const
|
|
550
|
+
const Oe = (e) => {
|
|
551
551
|
let t = "";
|
|
552
|
-
const l = {}, { info: a, warning:
|
|
553
|
-
for (const
|
|
554
|
-
t += `${h} .${
|
|
555
|
-
for (const
|
|
556
|
-
t += `${h} .${
|
|
557
|
-
const y = { ...d, info: a, warning:
|
|
558
|
-
for (const
|
|
559
|
-
l[
|
|
552
|
+
const l = {}, { info: a, warning: o, success: i, error: n, shades: r, ...d } = e, { cssScope: h } = U;
|
|
553
|
+
for (const g in d)
|
|
554
|
+
t += `${h} .${g}--bg{background-color:var(--w-${g}-color)}${h} .${g}{color:var(--w-${g}-color)}`;
|
|
555
|
+
for (const g in r)
|
|
556
|
+
t += `${h} .${g}--bg{background-color:${r[g]}}${h} .${g}{color:${r[g]}}`;
|
|
557
|
+
const y = { ...d, info: a, warning: o, success: i, error: n };
|
|
558
|
+
for (const g in y)
|
|
559
|
+
l[g] = y[g];
|
|
560
560
|
let S = "";
|
|
561
|
-
return Object.entries(l).forEach(([
|
|
562
|
-
S += `--w-${
|
|
561
|
+
return Object.entries(l).forEach(([g, R]) => {
|
|
562
|
+
S += `--w-${g}-color: ${R};`;
|
|
563
563
|
}), `:root{${S}}${t}`;
|
|
564
|
-
},
|
|
564
|
+
}, ze = (e, t) => {
|
|
565
565
|
let l = "";
|
|
566
566
|
const { cssScope: a } = U;
|
|
567
|
-
return e.forEach(({ min:
|
|
567
|
+
return e.forEach(({ min: o, label: i }) => {
|
|
568
568
|
if (i === "xs")
|
|
569
|
-
for (let
|
|
570
|
-
l += `${a} .${i}${t -
|
|
569
|
+
for (let n = 0; n < t; n++)
|
|
570
|
+
l += `${a} .${i}${t - n}{width:${parseFloat(((t - n) * 100 / t).toFixed(4))}%;}`;
|
|
571
571
|
else {
|
|
572
|
-
l += `@media(min-width:${
|
|
573
|
-
for (let
|
|
574
|
-
l += `${a} .${i}${t -
|
|
572
|
+
l += `@media(min-width:${o}px){`;
|
|
573
|
+
for (let n = 0; n < t; n++)
|
|
574
|
+
l += `${a} .${i}${t - n}{width:${parseFloat(((t - n) * 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: a } = U,
|
|
580
|
+
const { cssScope: l, baseIncrement: a } = U, o = [
|
|
581
581
|
"show{display:block}",
|
|
582
582
|
"hide{display:none}",
|
|
583
583
|
"d-flex{display:flex}",
|
|
@@ -611,16 +611,16 @@ const ze = (e) => {
|
|
|
611
611
|
"justify-space-around{justify-content:space-around}",
|
|
612
612
|
"justify-space-evenly{justify-content:space-evenly}"
|
|
613
613
|
], i = Array(12).fill();
|
|
614
|
-
return e.forEach(({ label:
|
|
615
|
-
|
|
616
|
-
}), e.forEach(({ label:
|
|
617
|
-
t += `@media (min-width:${r}px) and (max-width:${d}px){` +
|
|
618
|
-
}), e.forEach(({ label:
|
|
619
|
-
|
|
614
|
+
return e.forEach(({ label: n, min: r }) => {
|
|
615
|
+
n !== "xs" && (t += `@media(min-width:${r}px){` + o.map((d) => `${l} .${n}u-${d}`).join("") + i.map((d, h) => `.w-grid.${n}u-columns${h + 1}{grid-template-columns:repeat(${h + 1},1fr);}`).join("") + i.map((d, h) => `.w-flex.${n}u-gap${h + 1},.w-grid.${n}u-gap${h + 1}{gap:${(h + 1) * a}px;}`).join("") + `.w-flex.${n}u-gap0,.w-flex.${n}u-gap0{gap:0}}`);
|
|
616
|
+
}), e.forEach(({ label: n, min: r, max: d }) => {
|
|
617
|
+
t += `@media (min-width:${r}px) and (max-width:${d}px){` + o.map((h) => `${l} .${n}-${h}`).join("") + i.map((h, y) => `.w-grid.${n}-columns${y + 1}{grid-template-columns:repeat(${y + 1},1fr);}`).join("") + i.map((h, y) => `.w-flex.${n}-gap${y + 1},.w-grid.${n}-gap${y + 1}{gap:${(y + 1) * a}px;}`).join("") + `.w-flex.${n}-gap0,.w-flex.${n}-gap0{gap:0}}`;
|
|
618
|
+
}), e.forEach(({ label: n, max: r }) => {
|
|
619
|
+
n !== "xl" && (t += `@media (max-width:${r}px){` + o.map((d) => `${l} .${n}d-${d}`).join("") + i.map((d, h) => `.w-grid.${n}d-columns${h + 1}{grid-template-columns:repeat(${h + 1},1fr);}`).join("") + i.map((d, h) => `.w-flex.${n}d-gap${h + 1},.w-grid.${n}d-gap${h + 1}{gap:${(h + 1) * a}px;}`).join("") + `.w-flex.${n}d-gap0,.w-flex.${n}d-gap0{gap:0}}`);
|
|
620
620
|
}), t;
|
|
621
621
|
}, ue = (e) => {
|
|
622
622
|
const t = window.innerWidth, l = se.values.slice(0);
|
|
623
|
-
l.push(t), l.sort((
|
|
623
|
+
l.push(t), l.sort((o, i) => o - i);
|
|
624
624
|
const a = se.keys[l.indexOf(t)] || "xl";
|
|
625
625
|
a !== de && (de = a, e.breakpoint = {
|
|
626
626
|
name: a,
|
|
@@ -643,18 +643,18 @@ const ze = (e) => {
|
|
|
643
643
|
}, Ne = (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 = Oe(e);
|
|
647
647
|
const l = document.head.querySelectorAll('style,link[rel="stylesheet"]')[0];
|
|
648
648
|
l ? l.before(t) : document.head.appendChild(t);
|
|
649
649
|
}
|
|
650
650
|
}, We = (e) => {
|
|
651
|
-
const t = Object.entries(e.breakpoints), l = t.map(([i,
|
|
651
|
+
const t = Object.entries(e.breakpoints), l = t.map(([i, n], r) => {
|
|
652
652
|
const [, d = 0] = t[r - 1] || [];
|
|
653
|
-
return { label: i, min: d ? d + 1 : 0, max:
|
|
653
|
+
return { label: i, min: d ? d + 1 : 0, max: n };
|
|
654
654
|
}), a = getComputedStyle(document.documentElement);
|
|
655
655
|
U.cssScope = a.getPropertyValue("--w-css-scope"), U.baseIncrement = parseInt(a.getPropertyValue("--w-base-increment"));
|
|
656
|
-
let
|
|
657
|
-
return
|
|
656
|
+
let o = "";
|
|
657
|
+
return o += ze(l, e.css.grid), e.css.breakpointLayoutClasses && (o += Ee(l)), o;
|
|
658
658
|
};
|
|
659
659
|
let he = !1;
|
|
660
660
|
const Ae = (e) => {
|
|
@@ -688,8 +688,8 @@ 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 = (
|
|
691
|
+
var o, i;
|
|
692
|
+
this.theme = t, document.documentElement.setAttribute("data-theme", t), (i = (o = document.head.querySelector("#wave-ui-colors")) == null ? void 0 : o.remove) == null || i.call(o);
|
|
693
693
|
const a = this.config.colors[this.theme];
|
|
694
694
|
Ne(a), this.colors = ne(a, re);
|
|
695
695
|
}
|
|
@@ -699,37 +699,37 @@ 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 n = { ...l.colors };
|
|
703
|
+
l.colors.light || (l.colors.light = n), l.colors.dark || (l.colors.dark = n), l.colors = { light: l.colors.light, dark: l.colors.dark };
|
|
704
704
|
}
|
|
705
|
-
let { components: a, ...
|
|
706
|
-
|
|
705
|
+
let { components: a, ...o } = l;
|
|
706
|
+
o = this.$waveui.config = be(o), o.css.colorShades && Pe(o);
|
|
707
707
|
const i = G(this.$waveui);
|
|
708
|
-
t.config.globalProperties.$waveui = i, t.provide("$waveui", i),
|
|
708
|
+
t.config.globalProperties.$waveui = i, t.provide("$waveui", i), o.theme !== "auto" && (this.$waveui.colors = ne(o.colors[o.theme], re));
|
|
709
709
|
}
|
|
710
710
|
static install(t, l = {}) {
|
|
711
|
-
var
|
|
711
|
+
var o;
|
|
712
712
|
t.directive("focus", {
|
|
713
713
|
mounted: (i) => setTimeout(() => i.focus(), 0)
|
|
714
714
|
}), t.directive("scroll", {
|
|
715
|
-
mounted: (i,
|
|
715
|
+
mounted: (i, n) => {
|
|
716
716
|
const r = (d) => {
|
|
717
|
-
|
|
717
|
+
n.value(d, i) && window.removeEventListener("scroll", r);
|
|
718
718
|
};
|
|
719
719
|
window.addEventListener("scroll", r);
|
|
720
720
|
}
|
|
721
721
|
});
|
|
722
722
|
const { components: a = {} } = l || {};
|
|
723
723
|
for (const i in a) {
|
|
724
|
-
const
|
|
725
|
-
(
|
|
724
|
+
const n = a[i];
|
|
725
|
+
(o = l.presets) != null && o[n.name] && Ke(n, l.presets[n.name]), t.component(n.name, n);
|
|
726
726
|
}
|
|
727
727
|
t.mixin({
|
|
728
728
|
beforeMount() {
|
|
729
729
|
if (!he) {
|
|
730
730
|
he = !0;
|
|
731
|
-
const i = Be("$waveui"), { config:
|
|
732
|
-
r.classList.add("w-app"),
|
|
731
|
+
const i = Be("$waveui"), { config: n } = i, r = document.querySelector(n.on) || document.body;
|
|
732
|
+
r.classList.add("w-app"), n.theme === "auto" ? Ae(i) : i.switchTheme(n.theme, !0), Me(i), xe(r, 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);
|
|
@@ -738,12 +738,12 @@ const j = class {
|
|
|
738
738
|
let A = j;
|
|
739
739
|
q = new WeakMap(), ee(A, q, !1);
|
|
740
740
|
const De = ["aria-expanded"], Fe = ["onClick", "onFocus", "onKeypress", "tabindex"], He = ["innerHTML"], je = ["innerHTML"];
|
|
741
|
-
function Ue(e, t, l, a,
|
|
742
|
-
const
|
|
741
|
+
function Ue(e, t, l, a, o, i) {
|
|
742
|
+
const n = $("w-button"), r = $("w-transition-expand");
|
|
743
743
|
return s(), u("div", {
|
|
744
744
|
class: f(["w-accordion", i.accordionClasses])
|
|
745
745
|
}, [
|
|
746
|
-
(s(!0), u(
|
|
746
|
+
(s(!0), u(_, null, T(e.accordionItems, (d, h) => (s(), u("div", {
|
|
747
747
|
class: f(["w-accordion__item", i.itemClasses(d)]),
|
|
748
748
|
key: h,
|
|
749
749
|
"aria-expanded": d._expanded ? "true" : "false"
|
|
@@ -755,7 +755,7 @@ function Ue(e, t, l, a, n, i) {
|
|
|
755
755
|
onKeypress: M((y) => !d._disabled && i.toggleItem(d, y), ["enter"]),
|
|
756
756
|
tabindex: !d._disabled && 0
|
|
757
757
|
}, [
|
|
758
|
-
l.expandIcon && !l.expandIconRight ? (s(),
|
|
758
|
+
l.expandIcon && !l.expandIconRight ? (s(), b(n, {
|
|
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, a, 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] = E(() => {
|
|
767
767
|
}, ["stop"])),
|
|
768
|
-
onClick:
|
|
768
|
+
onClick: E((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,
|
|
@@ -783,14 +783,14 @@ function Ue(e, t, l, a, n, i) {
|
|
|
783
783
|
innerHTML: d[l.itemTitleKey]
|
|
784
784
|
}, null, 8, He)
|
|
785
785
|
]),
|
|
786
|
-
l.expandIcon && l.expandIconRight ? (s(),
|
|
786
|
+
l.expandIcon && l.expandIconRight ? (s(), b(n, {
|
|
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] = E(() => {
|
|
792
792
|
}, ["stop"])),
|
|
793
|
-
onClick:
|
|
793
|
+
onClick: E((y) => !d._disabled && i.toggleItem(d, y), ["stop"])
|
|
794
794
|
}, null, 8, ["icon", "onClick", "class"])) : c("", !0)
|
|
795
795
|
], 42, Fe),
|
|
796
796
|
V(r, {
|
|
@@ -912,30 +912,30 @@ const qe = {
|
|
|
912
912
|
}
|
|
913
913
|
}
|
|
914
914
|
}, Ge = /* @__PURE__ */ v(qe, [["render", Ue]]), Xe = { class: "w-alert__content" };
|
|
915
|
-
function Ye(e, t, l, a,
|
|
916
|
-
const
|
|
917
|
-
return
|
|
915
|
+
function Ye(e, t, l, a, o, i) {
|
|
916
|
+
const n = $("w-icon"), r = $("w-button");
|
|
917
|
+
return o.show ? (s(), u("div", B({
|
|
918
918
|
key: 0,
|
|
919
919
|
class: "w-alert"
|
|
920
920
|
}, N(e.$attrs, !0), { class: i.classes }), [
|
|
921
|
-
i.type || l.icon || l.dismiss ? (s(), u(
|
|
922
|
-
i.type || l.icon ? (s(),
|
|
921
|
+
i.type || l.icon || l.dismiss ? (s(), u(_, { key: 0 }, [
|
|
922
|
+
i.type || l.icon ? (s(), b(n, {
|
|
923
923
|
key: 0,
|
|
924
924
|
class: "w-alert__icon mr2"
|
|
925
925
|
}, {
|
|
926
926
|
default: m(() => [
|
|
927
|
-
|
|
927
|
+
C(k(i.type ? i.typeIcon : l.icon), 1)
|
|
928
928
|
]),
|
|
929
929
|
_: 1
|
|
930
930
|
})) : c("", !0),
|
|
931
931
|
w("div", Xe, [
|
|
932
932
|
p(e.$slots, "default")
|
|
933
933
|
]),
|
|
934
|
-
l.dismiss ? (s(),
|
|
934
|
+
l.dismiss ? (s(), b(r, {
|
|
935
935
|
key: 1,
|
|
936
936
|
class: "w-alert__dismiss",
|
|
937
937
|
onClick: t[0] || (t[0] = (d) => {
|
|
938
|
-
e.$emit("update:modelValue",
|
|
938
|
+
e.$emit("update:modelValue", o.show = !1), e.$emit("input", !1), e.$emit("close", !1);
|
|
939
939
|
}),
|
|
940
940
|
icon: "wi-cross",
|
|
941
941
|
color: "inherit",
|
|
@@ -1025,7 +1025,7 @@ const Je = {
|
|
|
1025
1025
|
}
|
|
1026
1026
|
}
|
|
1027
1027
|
}, Qe = /* @__PURE__ */ v(Je, [["render", Ye]]), Ze = { class: "w-app" };
|
|
1028
|
-
function et(e, t, l, a,
|
|
1028
|
+
function et(e, t, l, a, o, i) {
|
|
1029
1029
|
return s(), u("div", Ze, [
|
|
1030
1030
|
p(e.$slots, "default")
|
|
1031
1031
|
]);
|
|
@@ -1046,10 +1046,10 @@ const tt = {
|
|
|
1046
1046
|
textRight: { type: Boolean }
|
|
1047
1047
|
}
|
|
1048
1048
|
}, lt = /* @__PURE__ */ v(tt, [["render", et]]);
|
|
1049
|
-
function it(e, t, l, a,
|
|
1050
|
-
return s(), u("div",
|
|
1049
|
+
function it(e, t, l, a, o, i) {
|
|
1050
|
+
return s(), u("div", B({ class: "w-badge-wrap" }, N(e.$attrs, !0)), [
|
|
1051
1051
|
p(e.$slots, "default"),
|
|
1052
|
-
V(
|
|
1052
|
+
V(x, {
|
|
1053
1053
|
name: `${l.transition}`
|
|
1054
1054
|
}, {
|
|
1055
1055
|
default: m(() => [
|
|
@@ -1063,7 +1063,7 @@ function it(e, t, l, a, n, i) {
|
|
|
1063
1063
|
role: "status"
|
|
1064
1064
|
}, [
|
|
1065
1065
|
l.dot ? c("", !0) : p(e.$slots, "badge", { key: 0 }, () => [
|
|
1066
|
-
|
|
1066
|
+
C(k(l.modelValue === !0 ? "" : l.modelValue || ""), 1)
|
|
1067
1067
|
])
|
|
1068
1068
|
], 6)) : c("", !0)
|
|
1069
1069
|
]),
|
|
@@ -1135,28 +1135,28 @@ const st = {
|
|
|
1135
1135
|
}
|
|
1136
1136
|
}
|
|
1137
1137
|
}, at = /* @__PURE__ */ v(st, [["render", it]]), ot = ["innerHTML"];
|
|
1138
|
-
function nt(e, t, l, a,
|
|
1139
|
-
const
|
|
1138
|
+
function nt(e, t, l, a, o, i) {
|
|
1139
|
+
const n = $("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(_, null, T(l.items, (r, d) => (s(), u(_, null, [
|
|
1144
1144
|
d && e.$slots.separator ? (s(), u("span", {
|
|
1145
1145
|
class: f(["w-breadcrumbs__separator", l.separatorColor]),
|
|
1146
1146
|
key: `${d}a`
|
|
1147
1147
|
}, [
|
|
1148
1148
|
p(e.$slots, "separator", { index: d })
|
|
1149
|
-
], 2)) : d ? (s(),
|
|
1149
|
+
], 2)) : d ? (s(), b(n, {
|
|
1150
1150
|
class: f(["w-breadcrumbs__separator", l.separatorColor]),
|
|
1151
1151
|
key: `${d}b`
|
|
1152
1152
|
}, {
|
|
1153
1153
|
default: m(() => [
|
|
1154
|
-
|
|
1154
|
+
C(k(l.icon), 1)
|
|
1155
1155
|
]),
|
|
1156
1156
|
_: 2
|
|
1157
1157
|
}, 1032, ["class"])) : c("", !0),
|
|
1158
|
-
r[l.itemRouteKey] && (d < l.items.length - 1 || l.linkLastItem) ? (s(), u(
|
|
1159
|
-
e.$slots.item ? (s(),
|
|
1158
|
+
r[l.itemRouteKey] && (d < l.items.length - 1 || l.linkLastItem) ? (s(), u(_, { key: 2 }, [
|
|
1159
|
+
e.$slots.item ? (s(), b(I(i.hasRouter ? "router-link" : "a"), {
|
|
1160
1160
|
class: f(["w-breadcrumbs__item", l.color || null]),
|
|
1161
1161
|
key: `${d}c`,
|
|
1162
1162
|
to: i.hasRouter && r[l.itemRouteKey],
|
|
@@ -1170,7 +1170,7 @@ function nt(e, t, l, a, n, i) {
|
|
|
1170
1170
|
})
|
|
1171
1171
|
]),
|
|
1172
1172
|
_: 2
|
|
1173
|
-
}, 1032, ["to", "href", "class"])) : (s(),
|
|
1173
|
+
}, 1032, ["to", "href", "class"])) : (s(), b(I(i.hasRouter ? "router-link" : "a"), {
|
|
1174
1174
|
class: f(["w-breadcrumbs__item", l.color || null]),
|
|
1175
1175
|
key: `${d}d`,
|
|
1176
1176
|
to: i.hasRouter && r[l.itemRouteKey],
|
|
@@ -1233,22 +1233,22 @@ const rt = {
|
|
|
1233
1233
|
"stroke-linecap": "round"
|
|
1234
1234
|
})
|
|
1235
1235
|
], -1);
|
|
1236
|
-
function ct(e, t, l, a,
|
|
1237
|
-
const
|
|
1238
|
-
return s(),
|
|
1236
|
+
function ct(e, t, l, a, o, i) {
|
|
1237
|
+
const n = $("w-icon");
|
|
1238
|
+
return s(), b(I(l.route ? "a" : "button"), B({
|
|
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
|
}, N(i.listeners), { style: i.styles }), {
|
|
1244
1244
|
default: m(() => [
|
|
1245
|
-
l.icon ? (s(),
|
|
1245
|
+
l.icon ? (s(), b(n, ie(B({ key: 0 }, l.iconProps || {})), {
|
|
1246
1246
|
default: m(() => [
|
|
1247
|
-
|
|
1247
|
+
C(k(l.icon), 1)
|
|
1248
1248
|
]),
|
|
1249
1249
|
_: 1
|
|
1250
1250
|
}, 16)) : p(e.$slots, "default", { key: 1 }),
|
|
1251
|
-
V(
|
|
1251
|
+
V(x, { name: "scale-fade" }, {
|
|
1252
1252
|
default: m(() => [
|
|
1253
1253
|
l.loading ? (s(), u("div", ut, [
|
|
1254
1254
|
p(e.$slots, "loading", {}, () => [
|
|
@@ -1353,11 +1353,11 @@ const pt = {
|
|
|
1353
1353
|
}
|
|
1354
1354
|
}
|
|
1355
1355
|
}, ft = /* @__PURE__ */ v(pt, [["render", ct]]), mt = ["innerHTML"];
|
|
1356
|
-
function gt(e, t, l, a,
|
|
1357
|
-
const
|
|
1358
|
-
return l.tooltip ? (s(),
|
|
1356
|
+
function gt(e, t, l, a, o, i) {
|
|
1357
|
+
const n = $("button-partial");
|
|
1358
|
+
return l.tooltip ? (s(), b(I("w-tooltip"), ie(B({ key: 0 }, l.tooltipProps || {})), {
|
|
1359
1359
|
activator: m(({ on: r }) => [
|
|
1360
|
-
V(
|
|
1360
|
+
V(n, B(i.buttonProps, N(r)), {
|
|
1361
1361
|
default: m(() => [
|
|
1362
1362
|
p(e.$slots, "default")
|
|
1363
1363
|
]),
|
|
@@ -1368,7 +1368,7 @@ function gt(e, t, l, a, n, i) {
|
|
|
1368
1368
|
w("div", { innerHTML: l.tooltip }, null, 8, mt)
|
|
1369
1369
|
]),
|
|
1370
1370
|
_: 3
|
|
1371
|
-
}, 16)) : (s(),
|
|
1371
|
+
}, 16)) : (s(), b(n, ie(B({ key: 1 }, i.buttonProps)), {
|
|
1372
1372
|
default: m(() => [
|
|
1373
1373
|
p(e.$slots, "default")
|
|
1374
1374
|
]),
|
|
@@ -1420,8 +1420,8 @@ const bt = {
|
|
|
1420
1420
|
}
|
|
1421
1421
|
}
|
|
1422
1422
|
}, yt = /* @__PURE__ */ v(bt, [["render", gt]]), W = (e = {}) => (typeof e == "string" ? e = { [e]: !0 } : Array.isArray(e) && (e = { [e.join(" ")]: !0 }), e), wt = ["innerHTML"];
|
|
1423
|
-
function vt(e, t, l, a,
|
|
1424
|
-
const
|
|
1423
|
+
function vt(e, t, l, a, o, i) {
|
|
1424
|
+
const n = $("w-image");
|
|
1425
1425
|
return s(), u("div", {
|
|
1426
1426
|
class: f(["w-card", i.classes])
|
|
1427
1427
|
}, [
|
|
@@ -1435,7 +1435,7 @@ function vt(e, t, l, a, n, i) {
|
|
|
1435
1435
|
class: f(["w-card__title", { "w-card__title--has-toolbar": e.$slots.title && i.titleHasToolbar, ...i.titleClasses }]),
|
|
1436
1436
|
innerHTML: l.title
|
|
1437
1437
|
}, null, 10, wt)) : c("", !0),
|
|
1438
|
-
l.image ? (s(),
|
|
1438
|
+
l.image ? (s(), b(n, B({
|
|
1439
1439
|
key: 2,
|
|
1440
1440
|
class: "w-card__image",
|
|
1441
1441
|
src: l.image
|
|
@@ -1509,7 +1509,7 @@ const kt = {
|
|
|
1509
1509
|
};
|
|
1510
1510
|
}
|
|
1511
1511
|
}
|
|
1512
|
-
}, _t = /* @__PURE__ */ v(kt, [["render", vt]]),
|
|
1512
|
+
}, _t = /* @__PURE__ */ v(kt, [["render", vt]]), z = {
|
|
1513
1513
|
inject: {
|
|
1514
1514
|
formRegister: { default: null },
|
|
1515
1515
|
formProps: { default: () => ({ disabled: !1, readonly: !1 }) }
|
|
@@ -1555,12 +1555,12 @@ const kt = {
|
|
|
1555
1555
|
], -1), Vt = [
|
|
1556
1556
|
$t
|
|
1557
1557
|
], It = ["for"], Rt = ["for", "innerHTML"];
|
|
1558
|
-
function Lt(e, t, l, a,
|
|
1559
|
-
return s(),
|
|
1558
|
+
function Lt(e, t, l, a, o, i) {
|
|
1559
|
+
return s(), b(I(e.formRegister && !i.wCheckboxes ? "w-form-element" : "div"), B({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: o.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] = (n) => e.valid = n),
|
|
1562
|
+
onReset: t[6] || (t[6] = (n) => {
|
|
1563
|
+
e.$emit("update:modelValue", o.isChecked = null), e.$emit("input", null);
|
|
1564
1564
|
}),
|
|
1565
1565
|
class: i.classes
|
|
1566
1566
|
}), {
|
|
@@ -1570,25 +1570,25 @@ function Lt(e, t, l, a, n, i) {
|
|
|
1570
1570
|
id: `w-checkbox--${e._.uid}`,
|
|
1571
1571
|
type: "checkbox",
|
|
1572
1572
|
name: e.inputName,
|
|
1573
|
-
checked:
|
|
1573
|
+
checked: o.isChecked || null,
|
|
1574
1574
|
disabled: e.isDisabled || null,
|
|
1575
1575
|
required: e.required || null,
|
|
1576
1576
|
tabindex: e.tabindex || null,
|
|
1577
|
-
onFocus: t[0] || (t[0] = (
|
|
1578
|
-
onBlur: t[1] || (t[1] = (
|
|
1579
|
-
onChange: t[2] || (t[2] = (
|
|
1580
|
-
onKeypress: t[3] || (t[3] = M((...
|
|
1581
|
-
"aria-checked":
|
|
1577
|
+
onFocus: t[0] || (t[0] = (n) => e.$emit("focus", n)),
|
|
1578
|
+
onBlur: t[1] || (t[1] = (n) => e.$emit("blur", n)),
|
|
1579
|
+
onChange: t[2] || (t[2] = (n) => i.onInput()),
|
|
1580
|
+
onKeypress: t[3] || (t[3] = M((...n) => i.onInput && i.onInput(...n), ["enter"])),
|
|
1581
|
+
"aria-checked": o.isChecked || "false",
|
|
1582
1582
|
role: "checkbox"
|
|
1583
1583
|
}, null, 40, Ct),
|
|
1584
|
-
i.hasLabel && l.labelOnLeft ? (s(), u(
|
|
1584
|
+
i.hasLabel && l.labelOnLeft ? (s(), u(_, { 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
|
+
C(k(l.label), 1)
|
|
1592
1592
|
])
|
|
1593
1593
|
], 10, Bt)) : l.label ? (s(), u("label", {
|
|
1594
1594
|
key: 1,
|
|
@@ -1599,18 +1599,18 @@ function Lt(e, t, l, a, n, i) {
|
|
|
1599
1599
|
], 64)) : c("", !0),
|
|
1600
1600
|
w("div", {
|
|
1601
1601
|
class: f(["w-checkbox__input", this.color]),
|
|
1602
|
-
onClick: t[4] || (t[4] = (
|
|
1602
|
+
onClick: t[4] || (t[4] = (n) => {
|
|
1603
1603
|
e.$refs.input.focus(), e.$refs.input.click();
|
|
1604
1604
|
})
|
|
1605
1605
|
}, Vt, 2),
|
|
1606
|
-
i.hasLabel && !l.labelOnLeft ? (s(), u(
|
|
1606
|
+
i.hasLabel && !l.labelOnLeft ? (s(), u(_, { 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
|
+
C(k(l.label), 1)
|
|
1614
1614
|
])
|
|
1615
1615
|
], 10, It)) : l.label ? (s(), u("label", {
|
|
1616
1616
|
key: 1,
|
|
@@ -1623,9 +1623,9 @@ function Lt(e, t, l, a, n, i) {
|
|
|
1623
1623
|
_: 3
|
|
1624
1624
|
}, 16, ["valid", "class"]);
|
|
1625
1625
|
}
|
|
1626
|
-
const
|
|
1626
|
+
const Tt = {
|
|
1627
1627
|
name: "w-checkbox",
|
|
1628
|
-
mixins: [
|
|
1628
|
+
mixins: [z],
|
|
1629
1629
|
inject: {
|
|
1630
1630
|
wCheckboxes: { default: null }
|
|
1631
1631
|
},
|
|
@@ -1682,10 +1682,10 @@ const xt = {
|
|
|
1682
1682
|
this.isChecked = e;
|
|
1683
1683
|
}
|
|
1684
1684
|
}
|
|
1685
|
-
},
|
|
1686
|
-
function
|
|
1687
|
-
const
|
|
1688
|
-
return s(),
|
|
1685
|
+
}, xt = /* @__PURE__ */ v(Tt, [["render", Lt]]), Pt = ["innerHTML"];
|
|
1686
|
+
function Ot(e, t, l, a, o, i) {
|
|
1687
|
+
const n = $("w-checkbox");
|
|
1688
|
+
return s(), b(I(e.formRegister ? "w-form-element" : "div"), B({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: i.checkboxItems.some((r) => r._isChecked), disabled: e.isDisabled }, {
|
|
1689
1689
|
valid: e.valid,
|
|
1690
1690
|
"onUpdate:valid": t[1] || (t[1] = (r) => e.valid = r),
|
|
1691
1691
|
onReset: i.reset,
|
|
@@ -1694,7 +1694,7 @@ function zt(e, t, l, a, n, i) {
|
|
|
1694
1694
|
class: i.classes
|
|
1695
1695
|
}), {
|
|
1696
1696
|
default: m(() => [
|
|
1697
|
-
(s(!0), u(
|
|
1697
|
+
(s(!0), u(_, null, T(i.checkboxItems, (r, d) => (s(), b(n, B({
|
|
1698
1698
|
key: d,
|
|
1699
1699
|
"model-value": r._isChecked,
|
|
1700
1700
|
"onUpdate:modelValue": (h) => i.toggleCheck(r, h),
|
|
@@ -1715,7 +1715,7 @@ function zt(e, t, l, a, n, i) {
|
|
|
1715
1715
|
}) : r.label ? (s(), u("div", {
|
|
1716
1716
|
key: 1,
|
|
1717
1717
|
innerHTML: r.label
|
|
1718
|
-
}, null, 8,
|
|
1718
|
+
}, null, 8, Pt)) : c("", !0)
|
|
1719
1719
|
]),
|
|
1720
1720
|
_: 2
|
|
1721
1721
|
}, 1040, ["model-value", "onUpdate:modelValue", "name", "disabled", "readonly", "class"]))), 128))
|
|
@@ -1723,9 +1723,9 @@ function zt(e, t, l, a, n, i) {
|
|
|
1723
1723
|
_: 3
|
|
1724
1724
|
}, 16, ["valid", "onReset", "column", "wrap", "class"]);
|
|
1725
1725
|
}
|
|
1726
|
-
const
|
|
1726
|
+
const zt = {
|
|
1727
1727
|
name: "w-checkboxes",
|
|
1728
|
-
mixins: [
|
|
1728
|
+
mixins: [z],
|
|
1729
1729
|
props: {
|
|
1730
1730
|
items: { type: Array, required: !0 },
|
|
1731
1731
|
modelValue: { type: Array },
|
|
@@ -1776,16 +1776,16 @@ const Et = {
|
|
|
1776
1776
|
return this.items[e._index];
|
|
1777
1777
|
}
|
|
1778
1778
|
}
|
|
1779
|
-
},
|
|
1780
|
-
function Nt(e, t, l, a,
|
|
1781
|
-
const
|
|
1779
|
+
}, Et = /* @__PURE__ */ v(zt, [["render", Ot]]), Mt = { class: "w-confirm" };
|
|
1780
|
+
function Nt(e, t, l, a, o, i) {
|
|
1781
|
+
const n = $("w-button"), r = $("w-flex"), d = $("w-menu"), h = fe("focus");
|
|
1782
1782
|
return s(), u("div", Mt, [
|
|
1783
|
-
V(d,
|
|
1783
|
+
V(d, B({
|
|
1784
1784
|
modelValue: e.showPopup,
|
|
1785
1785
|
"onUpdate:modelValue": t[2] || (t[2] = (y) => e.showPopup = y)
|
|
1786
1786
|
}, i.wMenuProps), {
|
|
1787
1787
|
activator: m(({ on: y }) => [
|
|
1788
|
-
V(
|
|
1788
|
+
V(n, B({ class: "w-confirm__button" }, { ...e.$attrs, ...i.buttonProps, ...l.disablePrompt ? {} : y }), {
|
|
1789
1789
|
default: m(() => [
|
|
1790
1790
|
p(e.$slots, "default")
|
|
1791
1791
|
]),
|
|
@@ -1800,13 +1800,13 @@ function Nt(e, t, l, a, n, i) {
|
|
|
1800
1800
|
default: m(() => [
|
|
1801
1801
|
w("div", null, [
|
|
1802
1802
|
p(e.$slots, "question", {}, () => [
|
|
1803
|
-
|
|
1803
|
+
C(k(l.question), 1)
|
|
1804
1804
|
])
|
|
1805
1805
|
]),
|
|
1806
1806
|
w("div", {
|
|
1807
1807
|
class: f(["w-flex justify-end", l.inline ? "ml2" : "mt2"])
|
|
1808
1808
|
}, [
|
|
1809
|
-
l.cancel !== !1 ? (s(),
|
|
1809
|
+
l.cancel !== !1 ? (s(), b(n, B({
|
|
1810
1810
|
key: 0,
|
|
1811
1811
|
class: "mr2"
|
|
1812
1812
|
}, i.cancelButtonProps, {
|
|
@@ -1816,19 +1816,19 @@ function Nt(e, t, l, a, n, i) {
|
|
|
1816
1816
|
}), {
|
|
1817
1817
|
default: m(() => [
|
|
1818
1818
|
p(e.$slots, "cancel", {}, () => [
|
|
1819
|
-
|
|
1819
|
+
C(k(i.cancelButton.label), 1)
|
|
1820
1820
|
])
|
|
1821
1821
|
]),
|
|
1822
1822
|
_: 3
|
|
1823
1823
|
}, 16, ["bg-color", "onClick"])) : c("", !0),
|
|
1824
|
-
D((s(),
|
|
1824
|
+
D((s(), b(n, B(i.confirmButtonProps, {
|
|
1825
1825
|
"bg-color": (i.confirmButton || {}).bgColor || "success",
|
|
1826
1826
|
onKeyup: t[1] || (t[1] = M((y) => !l.persistent && i.onCancel(), ["escape"])),
|
|
1827
1827
|
onClick: i.onConfirm
|
|
1828
1828
|
}), {
|
|
1829
1829
|
default: m(() => [
|
|
1830
1830
|
p(e.$slots, "confirm", {}, () => [
|
|
1831
|
-
|
|
1831
|
+
C(k(i.confirmButton.label), 1)
|
|
1832
1832
|
])
|
|
1833
1833
|
]),
|
|
1834
1834
|
_: 3
|
|
@@ -1937,7 +1937,7 @@ const Wt = {
|
|
|
1937
1937
|
}
|
|
1938
1938
|
}
|
|
1939
1939
|
}, At = /* @__PURE__ */ v(Wt, [["render", Nt]]);
|
|
1940
|
-
function Kt(e, t, l, a,
|
|
1940
|
+
function Kt(e, t, l, a, o, i) {
|
|
1941
1941
|
return s(), u("div", {
|
|
1942
1942
|
class: f(["w-date-picker", i.classes]),
|
|
1943
1943
|
style: L(i.styles)
|
|
@@ -1964,11 +1964,11 @@ const Dt = {
|
|
|
1964
1964
|
}
|
|
1965
1965
|
}
|
|
1966
1966
|
}, Ft = /* @__PURE__ */ v(Dt, [["render", Kt]]);
|
|
1967
|
-
function Ht(e, t, l, a,
|
|
1968
|
-
const
|
|
1969
|
-
return s(),
|
|
1967
|
+
function Ht(e, t, l, a, o, i) {
|
|
1968
|
+
const n = $("w-card"), r = $("w-overlay");
|
|
1969
|
+
return s(), b(r, {
|
|
1970
1970
|
class: f(["w-dialog", i.classes]),
|
|
1971
|
-
"model-value":
|
|
1971
|
+
"model-value": o.showWrapper,
|
|
1972
1972
|
persistent: l.persistent,
|
|
1973
1973
|
"persistent-no-animation": l.persistentNoAnimation,
|
|
1974
1974
|
onClick: i.onOutsideClick,
|
|
@@ -1977,13 +1977,13 @@ function Ht(e, t, l, a, n, i) {
|
|
|
1977
1977
|
opacity: l.overlayOpacity
|
|
1978
1978
|
}, {
|
|
1979
1979
|
default: m(() => [
|
|
1980
|
-
V(
|
|
1980
|
+
V(x, {
|
|
1981
1981
|
name: l.transition,
|
|
1982
1982
|
appear: "",
|
|
1983
1983
|
onAfterLeave: i.onBeforeClose
|
|
1984
1984
|
}, {
|
|
1985
1985
|
default: m(() => [
|
|
1986
|
-
D(V(
|
|
1986
|
+
D(V(n, {
|
|
1987
1987
|
class: f(["w-dialog__content", l.dialogClass]),
|
|
1988
1988
|
ref: "dialog",
|
|
1989
1989
|
"no-border": "",
|
|
@@ -2014,7 +2014,7 @@ function Ht(e, t, l, a, n, i) {
|
|
|
2014
2014
|
key: "1"
|
|
2015
2015
|
} : void 0
|
|
2016
2016
|
]), 1032, ["color", "bg-color", "class", "title-class", "content-class", "title", "style"]), [
|
|
2017
|
-
[me,
|
|
2017
|
+
[me, o.showContent]
|
|
2018
2018
|
])
|
|
2019
2019
|
]),
|
|
2020
2020
|
_: 3
|
|
@@ -2091,7 +2091,7 @@ const jt = {
|
|
|
2091
2091
|
}
|
|
2092
2092
|
}
|
|
2093
2093
|
}, Ut = /* @__PURE__ */ v(jt, [["render", Ht]]), qt = ["role", "aria-orientation"];
|
|
2094
|
-
function Gt(e, t, l, a,
|
|
2094
|
+
function Gt(e, t, l, a, o, i) {
|
|
2095
2095
|
return s(), u("div", {
|
|
2096
2096
|
class: f(["w-divider", i.classes]),
|
|
2097
2097
|
role: e.$slots.default ? null : "presentation",
|
|
@@ -2121,9 +2121,9 @@ const Xt = {
|
|
|
2121
2121
|
}
|
|
2122
2122
|
}
|
|
2123
2123
|
}, Yt = /* @__PURE__ */ v(Xt, [["render", Gt]]), Jt = { class: "w-drawer-wrap__pushable" };
|
|
2124
|
-
function Qt(e, t, l, a,
|
|
2125
|
-
const
|
|
2126
|
-
return
|
|
2124
|
+
function Qt(e, t, l, a, o, i) {
|
|
2125
|
+
const n = $("w-overlay");
|
|
2126
|
+
return o.showWrapper || l.pushContent ? (s(), u("div", {
|
|
2127
2127
|
key: 0,
|
|
2128
2128
|
class: f(["w-drawer-wrap", i.wrapperClasses])
|
|
2129
2129
|
}, [
|
|
@@ -2133,10 +2133,10 @@ function Qt(e, t, l, a, n, i) {
|
|
|
2133
2133
|
style: L(i.trackStyles)
|
|
2134
2134
|
}, [
|
|
2135
2135
|
w("div", Jt, [
|
|
2136
|
-
l.noOverlay ? c("", !0) : (s(),
|
|
2136
|
+
l.noOverlay ? c("", !0) : (s(), b(n, {
|
|
2137
2137
|
key: 0,
|
|
2138
|
-
modelValue:
|
|
2139
|
-
"onUpdate:modelValue": t[0] || (t[0] = (r) =>
|
|
2138
|
+
modelValue: o.showDrawer,
|
|
2139
|
+
"onUpdate:modelValue": t[0] || (t[0] = (r) => o.showDrawer = r),
|
|
2140
2140
|
onClick: i.onOutsideClick,
|
|
2141
2141
|
persistent: l.persistent,
|
|
2142
2142
|
"persistent-no-animation": "",
|
|
@@ -2145,13 +2145,13 @@ function Qt(e, t, l, a, n, i) {
|
|
|
2145
2145
|
}, null, 8, ["modelValue", "onClick", "persistent", "bg-color", "opacity"])),
|
|
2146
2146
|
p(e.$slots, "pushable")
|
|
2147
2147
|
]),
|
|
2148
|
-
V(
|
|
2148
|
+
V(x, {
|
|
2149
2149
|
name: "fade",
|
|
2150
2150
|
onBeforeLeave: i.onBeforeClose,
|
|
2151
2151
|
onAfterLeave: i.onClose
|
|
2152
2152
|
}, {
|
|
2153
2153
|
default: m(() => [
|
|
2154
|
-
|
|
2154
|
+
o.showDrawer ? (s(), b(I(l.tag || "aside"), {
|
|
2155
2155
|
key: 0,
|
|
2156
2156
|
class: f(["w-drawer", i.drawerClasses]),
|
|
2157
2157
|
ref: "drawer",
|
|
@@ -2165,25 +2165,25 @@ function Qt(e, t, l, a, n, i) {
|
|
|
2165
2165
|
]),
|
|
2166
2166
|
_: 3
|
|
2167
2167
|
}, 8, ["onBeforeLeave", "onAfterLeave"])
|
|
2168
|
-
], 4)) : (s(), u(
|
|
2169
|
-
l.noOverlay ? c("", !0) : (s(),
|
|
2168
|
+
], 4)) : (s(), u(_, { key: 1 }, [
|
|
2169
|
+
l.noOverlay ? c("", !0) : (s(), b(n, {
|
|
2170
2170
|
key: 0,
|
|
2171
|
-
modelValue:
|
|
2172
|
-
"onUpdate:modelValue": t[1] || (t[1] = (r) =>
|
|
2171
|
+
modelValue: o.showDrawer,
|
|
2172
|
+
"onUpdate:modelValue": t[1] || (t[1] = (r) => o.showDrawer = r),
|
|
2173
2173
|
onClick: i.onOutsideClick,
|
|
2174
2174
|
persistent: l.persistent,
|
|
2175
2175
|
"persistent-no-animation": "",
|
|
2176
2176
|
"bg-color": l.overlayColor,
|
|
2177
2177
|
opacity: l.overlayOpacity
|
|
2178
2178
|
}, null, 8, ["modelValue", "onClick", "persistent", "bg-color", "opacity"])),
|
|
2179
|
-
V(
|
|
2179
|
+
V(x, {
|
|
2180
2180
|
name: i.transitionName,
|
|
2181
2181
|
appear: "",
|
|
2182
2182
|
onBeforeLeave: i.onBeforeClose,
|
|
2183
2183
|
onAfterLeave: i.onClose
|
|
2184
2184
|
}, {
|
|
2185
2185
|
default: m(() => [
|
|
2186
|
-
|
|
2186
|
+
o.showDrawer ? (s(), b(I(l.tag || "aside"), {
|
|
2187
2187
|
key: 0,
|
|
2188
2188
|
class: f(["w-drawer", i.drawerClasses]),
|
|
2189
2189
|
ref: "drawer",
|
|
@@ -2306,8 +2306,8 @@ const Zt = { left: "right", right: "left", top: "down", bottom: "up" }, el = {
|
|
|
2306
2306
|
}
|
|
2307
2307
|
}
|
|
2308
2308
|
}, tl = /* @__PURE__ */ v(el, [["render", Qt]]);
|
|
2309
|
-
function ll(e, t, l, a,
|
|
2310
|
-
return s(),
|
|
2309
|
+
function ll(e, t, l, a, o, i) {
|
|
2310
|
+
return s(), b(I(l.tag), {
|
|
2311
2311
|
class: f(["w-flex", i.classes])
|
|
2312
2312
|
}, {
|
|
2313
2313
|
default: m(() => [
|
|
@@ -2364,11 +2364,11 @@ const il = {
|
|
|
2364
2364
|
}
|
|
2365
2365
|
}
|
|
2366
2366
|
}, sl = /* @__PURE__ */ v(il, [["render", ll]]);
|
|
2367
|
-
function al(e, t, l, a,
|
|
2367
|
+
function al(e, t, l, a, o, i) {
|
|
2368
2368
|
return s(), u("form", {
|
|
2369
2369
|
class: f(["w-form", i.classes]),
|
|
2370
|
-
onSubmit: t[0] || (t[0] = (...
|
|
2371
|
-
onReset: t[1] || (t[1] = (...
|
|
2370
|
+
onSubmit: t[0] || (t[0] = (...n) => i.onSubmit && i.onSubmit(...n)),
|
|
2371
|
+
onReset: t[1] || (t[1] = (...n) => i.reset && i.reset(...n)),
|
|
2372
2372
|
novalidate: ""
|
|
2373
2373
|
}, [
|
|
2374
2374
|
p(e.$slots, "default")
|
|
@@ -2447,8 +2447,8 @@ const ol = async (e, t) => {
|
|
|
2447
2447
|
async checkElementValidators(e) {
|
|
2448
2448
|
let t = !1, l = "";
|
|
2449
2449
|
await ol(e.validators, async (a) => {
|
|
2450
|
-
const
|
|
2451
|
-
return t = typeof
|
|
2450
|
+
const o = await (typeof a == "function" && a(e.inputValue));
|
|
2451
|
+
return t = typeof o != "string", l = t ? "" : o, !t;
|
|
2452
2452
|
}), e.hasJustReset = !1, e.Validation.isValid = t, e.Validation.message = l;
|
|
2453
2453
|
},
|
|
2454
2454
|
reset(e) {
|
|
@@ -2470,8 +2470,8 @@ const ol = async (e, t) => {
|
|
|
2470
2470
|
}
|
|
2471
2471
|
}
|
|
2472
2472
|
}, rl = /* @__PURE__ */ v(nl, [["render", al]]);
|
|
2473
|
-
function dl(e, t, l, a,
|
|
2474
|
-
const
|
|
2473
|
+
function dl(e, t, l, a, o, i) {
|
|
2474
|
+
const n = $("w-transition-expand");
|
|
2475
2475
|
return s(), u("div", {
|
|
2476
2476
|
class: f(i.classes)
|
|
2477
2477
|
}, [
|
|
@@ -2480,7 +2480,7 @@ function dl(e, t, l, a, n, i) {
|
|
|
2480
2480
|
}, [
|
|
2481
2481
|
p(e.$slots, "default")
|
|
2482
2482
|
], 2),
|
|
2483
|
-
V(
|
|
2483
|
+
V(n, { y: "" }, {
|
|
2484
2484
|
default: m(() => [
|
|
2485
2485
|
e.Validation.message ? (s(), u("div", {
|
|
2486
2486
|
key: 0,
|
|
@@ -2489,7 +2489,7 @@ function dl(e, t, l, a, n, i) {
|
|
|
2489
2489
|
p(e.$slots, "error-message", {
|
|
2490
2490
|
message: e.Validation.message
|
|
2491
2491
|
}, () => [
|
|
2492
|
-
|
|
2492
|
+
C(k(e.Validation.message), 1)
|
|
2493
2493
|
])
|
|
2494
2494
|
], 2)) : c("", !0)
|
|
2495
2495
|
]),
|
|
@@ -2564,8 +2564,8 @@ const ul = {
|
|
|
2564
2564
|
this.formUnregister && this.formUnregister(this);
|
|
2565
2565
|
}
|
|
2566
2566
|
}, hl = /* @__PURE__ */ v(ul, [["render", dl]]);
|
|
2567
|
-
function cl(e, t, l, a,
|
|
2568
|
-
return s(),
|
|
2567
|
+
function cl(e, t, l, a, o, i) {
|
|
2568
|
+
return s(), b(I(l.tag), {
|
|
2569
2569
|
class: f(["w-grid", i.classes])
|
|
2570
2570
|
}, {
|
|
2571
2571
|
default: m(() => [
|
|
@@ -2610,25 +2610,25 @@ const pl = {
|
|
|
2610
2610
|
},
|
|
2611
2611
|
classes() {
|
|
2612
2612
|
let e = null;
|
|
2613
|
-
typeof this.columns == "object" && (e = Object.entries(this.breakpointsColumns).reduce((l, [a,
|
|
2613
|
+
typeof this.columns == "object" && (e = Object.entries(this.breakpointsColumns).reduce((l, [a, o]) => (l[`${a}-columns${o}`] = !0, l), {}));
|
|
2614
2614
|
let t = null;
|
|
2615
|
-
return typeof this.gap == "object" && (t = Object.entries(this.breakpointsGap).reduce((l, [a,
|
|
2615
|
+
return typeof this.gap == "object" && (t = Object.entries(this.breakpointsGap).reduce((l, [a, o]) => (l[`${a}-gap${o}`] = !0, l), {})), {
|
|
2616
2616
|
...e || { [`columns${this.columns}`]: this.columns },
|
|
2617
2617
|
...t || { [`gap${this.gap}`]: this.gap }
|
|
2618
2618
|
};
|
|
2619
2619
|
}
|
|
2620
2620
|
}
|
|
2621
2621
|
}, fl = /* @__PURE__ */ v(pl, [["render", cl]]);
|
|
2622
|
-
function ml(e, t, l, a,
|
|
2623
|
-
return s(),
|
|
2622
|
+
function ml(e, t, l, a, o, i) {
|
|
2623
|
+
return s(), b(I(l.tag || "i"), B({ class: "w-icon" }, N(e.$attrs), {
|
|
2624
2624
|
class: i.classes,
|
|
2625
2625
|
role: "icon",
|
|
2626
2626
|
"aria-hidden": "true",
|
|
2627
2627
|
style: i.readIcon() && i.styles
|
|
2628
2628
|
}), {
|
|
2629
2629
|
default: m(() => [
|
|
2630
|
-
i.hasLigature ? (s(), u(
|
|
2631
|
-
|
|
2630
|
+
i.hasLigature ? (s(), u(_, { key: 0 }, [
|
|
2631
|
+
C(k(e.icon), 1)
|
|
2632
2632
|
], 64)) : c("", !0)
|
|
2633
2633
|
]),
|
|
2634
2634
|
_: 1
|
|
@@ -2707,35 +2707,35 @@ const gl = {
|
|
|
2707
2707
|
key: 0,
|
|
2708
2708
|
class: "w-image__loader"
|
|
2709
2709
|
};
|
|
2710
|
-
function wl(e, t, l, a,
|
|
2711
|
-
const
|
|
2712
|
-
return s(),
|
|
2710
|
+
function wl(e, t, l, a, o, i) {
|
|
2711
|
+
const n = $("w-progress");
|
|
2712
|
+
return s(), b(I(i.wrapperTag), {
|
|
2713
2713
|
class: f(["w-image-wrap", i.wrapperClasses]),
|
|
2714
2714
|
style: L(i.wrapperStyles)
|
|
2715
2715
|
}, {
|
|
2716
2716
|
default: m(() => [
|
|
2717
|
-
V(
|
|
2717
|
+
V(x, {
|
|
2718
2718
|
name: l.transition,
|
|
2719
2719
|
appear: ""
|
|
2720
2720
|
}, {
|
|
2721
2721
|
default: m(() => [
|
|
2722
|
-
|
|
2722
|
+
o.loaded ? (s(), b(I(l.tag), {
|
|
2723
2723
|
key: 0,
|
|
2724
2724
|
class: f(["w-image", i.imageClasses]),
|
|
2725
2725
|
style: L(i.imageStyles),
|
|
2726
|
-
src: l.tag === "img" ?
|
|
2726
|
+
src: l.tag === "img" ? o.imgSrc : null
|
|
2727
2727
|
}, null, 8, ["class", "style", "src"])) : c("", !0)
|
|
2728
2728
|
]),
|
|
2729
2729
|
_: 1
|
|
2730
2730
|
}, 8, ["name"]),
|
|
2731
|
-
!l.noSpinner &&
|
|
2732
|
-
e.$slots.loading ? p(e.$slots, "loading", { key: 0 }) : (s(),
|
|
2731
|
+
!l.noSpinner && o.loading ? (s(), u("div", yl, [
|
|
2732
|
+
e.$slots.loading ? p(e.$slots, "loading", { key: 0 }) : (s(), b(n, B({
|
|
2733
2733
|
key: 1,
|
|
2734
2734
|
circle: "",
|
|
2735
2735
|
indeterminate: ""
|
|
2736
2736
|
}, l.spinnerColor ? { color: l.spinnerColor } : {}), null, 16))
|
|
2737
2737
|
])) : c("", !0),
|
|
2738
|
-
e.$slots.default ? (s(),
|
|
2738
|
+
e.$slots.default ? (s(), b(I(i.wrapperTag), {
|
|
2739
2739
|
key: 1,
|
|
2740
2740
|
class: f(["w-image__content", l.contentClass])
|
|
2741
2741
|
}, {
|
|
@@ -2848,13 +2848,13 @@ const vl = {
|
|
|
2848
2848
|
class: "w-input__no-file",
|
|
2849
2849
|
key: "no-file"
|
|
2850
2850
|
}, Vl = ["for"], Il = ["for"], Rl = ["src"], Ll = ["for"];
|
|
2851
|
-
function
|
|
2852
|
-
const
|
|
2853
|
-
return s(),
|
|
2851
|
+
function Tl(e, t, l, a, o, i) {
|
|
2852
|
+
const n = $("w-icon"), r = $("w-progress");
|
|
2853
|
+
return s(), b(I(e.formRegister ? "w-form-element" : "div"), B({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: o.inputValue, disabled: e.isDisabled, readonly: e.isReadonly, isFocused: o.isFocused }, {
|
|
2854
2854
|
valid: e.valid,
|
|
2855
2855
|
"onUpdate:valid": t[10] || (t[10] = (d) => e.valid = d),
|
|
2856
2856
|
onReset: t[11] || (t[11] = (d) => {
|
|
2857
|
-
e.$emit("update:modelValue",
|
|
2857
|
+
e.$emit("update:modelValue", o.inputValue = ""), e.$emit("input", "");
|
|
2858
2858
|
}),
|
|
2859
2859
|
wrap: i.hasLabel && l.labelPosition !== "inside",
|
|
2860
2860
|
class: i.classes
|
|
@@ -2864,25 +2864,25 @@ function xl(e, t, l, a, n, i) {
|
|
|
2864
2864
|
key: 0,
|
|
2865
2865
|
type: "hidden",
|
|
2866
2866
|
name: e.name || null,
|
|
2867
|
-
"onUpdate:modelValue": t[0] || (t[0] = (d) =>
|
|
2867
|
+
"onUpdate:modelValue": t[0] || (t[0] = (d) => o.inputValue = d)
|
|
2868
2868
|
}, null, 8, _l)), [
|
|
2869
|
-
[ge,
|
|
2870
|
-
]) : (s(), u(
|
|
2871
|
-
l.labelPosition === "left" ? (s(), u(
|
|
2869
|
+
[ge, o.inputValue]
|
|
2870
|
+
]) : (s(), u(_, { key: 1 }, [
|
|
2871
|
+
l.labelPosition === "left" ? (s(), u(_, { key: 0 }, [
|
|
2872
2872
|
e.$slots.default || l.label ? (s(), u("label", {
|
|
2873
2873
|
key: 0,
|
|
2874
2874
|
class: f(["w-input__label w-input__label--left w-form-el-shakable", e.labelClasses]),
|
|
2875
2875
|
for: `w-input--${e._.uid}`
|
|
2876
2876
|
}, [
|
|
2877
2877
|
p(e.$slots, "default", {}, () => [
|
|
2878
|
-
|
|
2878
|
+
C(k(l.label), 1)
|
|
2879
2879
|
])
|
|
2880
2880
|
], 10, Cl)) : c("", !0)
|
|
2881
2881
|
], 64)) : c("", !0),
|
|
2882
2882
|
w("div", {
|
|
2883
2883
|
class: f(["w-input__input-wrap", i.inputWrapClasses])
|
|
2884
2884
|
}, [
|
|
2885
|
-
l.innerIconLeft ? (s(),
|
|
2885
|
+
l.innerIconLeft ? (s(), b(n, {
|
|
2886
2886
|
key: 0,
|
|
2887
2887
|
class: "w-input__icon w-input__icon--inner-left",
|
|
2888
2888
|
tag: "label",
|
|
@@ -2890,15 +2890,15 @@ function xl(e, t, l, a, n, i) {
|
|
|
2890
2890
|
onClick: t[1] || (t[1] = (d) => e.$emit("click:inner-icon-left", d))
|
|
2891
2891
|
}, {
|
|
2892
2892
|
default: m(() => [
|
|
2893
|
-
|
|
2893
|
+
C(k(l.innerIconLeft), 1)
|
|
2894
2894
|
]),
|
|
2895
2895
|
_: 1
|
|
2896
2896
|
}, 8, ["for"])) : c("", !0),
|
|
2897
|
-
l.type !== "file" ? D((s(), u("input",
|
|
2897
|
+
l.type !== "file" ? D((s(), u("input", B({
|
|
2898
2898
|
key: 1,
|
|
2899
2899
|
class: "w-input__input",
|
|
2900
2900
|
ref: "input",
|
|
2901
|
-
"onUpdate:modelValue": t[2] || (t[2] = (d) =>
|
|
2901
|
+
"onUpdate:modelValue": t[2] || (t[2] = (d) => o.inputValue = d)
|
|
2902
2902
|
}, N(i.listeners, !0), {
|
|
2903
2903
|
onInput: t[3] || (t[3] = (...d) => i.onInput && i.onInput(...d)),
|
|
2904
2904
|
onFocus: t[4] || (t[4] = (...d) => i.onFocus && i.onFocus(...d)),
|
|
@@ -2918,9 +2918,9 @@ function xl(e, t, l, a, n, i) {
|
|
|
2918
2918
|
required: e.required || null,
|
|
2919
2919
|
tabindex: e.tabindex || null
|
|
2920
2920
|
}, i.attrs), null, 16, Bl)), [
|
|
2921
|
-
[Se,
|
|
2922
|
-
]) : (s(), u(
|
|
2923
|
-
w("input",
|
|
2921
|
+
[Se, o.inputValue]
|
|
2922
|
+
]) : (s(), u(_, { key: 2 }, [
|
|
2923
|
+
w("input", B({
|
|
2924
2924
|
ref: "input",
|
|
2925
2925
|
id: `w-input--${e._.uid}`,
|
|
2926
2926
|
type: "file",
|
|
@@ -2939,39 +2939,39 @@ function xl(e, t, l, a, n, i) {
|
|
|
2939
2939
|
for: `w-input--${e._.uid}`
|
|
2940
2940
|
}, {
|
|
2941
2941
|
default: m(() => [
|
|
2942
|
-
!
|
|
2942
|
+
!o.inputFiles.length && o.isFocused ? (s(), u("span", $l, [
|
|
2943
2943
|
p(e.$slots, "no-file", {}, () => [
|
|
2944
|
-
e.$slots["no-file"] === void 0 ? (s(), u(
|
|
2945
|
-
|
|
2944
|
+
e.$slots["no-file"] === void 0 ? (s(), u(_, { key: 0 }, [
|
|
2945
|
+
C("No file")
|
|
2946
2946
|
], 64)) : c("", !0)
|
|
2947
2947
|
])
|
|
2948
2948
|
])) : c("", !0),
|
|
2949
|
-
(s(!0), u(
|
|
2949
|
+
(s(!0), u(_, null, T(o.inputFiles, (d, h) => (s(), u("span", {
|
|
2950
2950
|
key: d.lastModified
|
|
2951
2951
|
}, [
|
|
2952
|
-
|
|
2952
|
+
C(k(h ? ", " : ""), 1),
|
|
2953
2953
|
(s(), u("span", {
|
|
2954
2954
|
class: "filename",
|
|
2955
2955
|
key: `${h}b`
|
|
2956
2956
|
}, k(d.base), 1)),
|
|
2957
|
-
|
|
2957
|
+
C(k(d.extension ? `.${d.extension}` : ""), 1)
|
|
2958
2958
|
]))), 128))
|
|
2959
2959
|
]),
|
|
2960
2960
|
_: 3
|
|
2961
2961
|
}, 8, ["for"])
|
|
2962
2962
|
], 64)),
|
|
2963
|
-
l.labelPosition === "inside" && i.showLabelInside ? (s(), u(
|
|
2963
|
+
l.labelPosition === "inside" && i.showLabelInside ? (s(), u(_, { key: 3 }, [
|
|
2964
2964
|
e.$slots.default || l.label ? (s(), u("label", {
|
|
2965
2965
|
key: 0,
|
|
2966
2966
|
class: f(["w-input__label w-input__label--inside w-form-el-shakable", e.labelClasses]),
|
|
2967
2967
|
for: `w-input--${e._.uid}`
|
|
2968
2968
|
}, [
|
|
2969
2969
|
p(e.$slots, "default", {}, () => [
|
|
2970
|
-
|
|
2970
|
+
C(k(l.label), 1)
|
|
2971
2971
|
])
|
|
2972
2972
|
], 10, Vl)) : c("", !0)
|
|
2973
2973
|
], 64)) : c("", !0),
|
|
2974
|
-
l.innerIconRight ? (s(),
|
|
2974
|
+
l.innerIconRight ? (s(), b(n, {
|
|
2975
2975
|
key: 4,
|
|
2976
2976
|
class: "w-input__icon w-input__icon--inner-right",
|
|
2977
2977
|
tag: "label",
|
|
@@ -2979,11 +2979,11 @@ function xl(e, t, l, a, n, i) {
|
|
|
2979
2979
|
onClick: t[9] || (t[9] = (d) => e.$emit("click:inner-icon-right", d))
|
|
2980
2980
|
}, {
|
|
2981
2981
|
default: m(() => [
|
|
2982
|
-
|
|
2982
|
+
C(k(l.innerIconRight), 1)
|
|
2983
2983
|
]),
|
|
2984
2984
|
_: 1
|
|
2985
2985
|
}, 8, ["for"])) : c("", !0),
|
|
2986
|
-
i.hasLoading || l.showProgress && (i.uploadInProgress || i.uploadComplete) ? (s(),
|
|
2986
|
+
i.hasLoading || l.showProgress && (i.uploadInProgress || i.uploadComplete) ? (s(), b(r, {
|
|
2987
2987
|
key: 5,
|
|
2988
2988
|
class: "fill-width",
|
|
2989
2989
|
size: "2",
|
|
@@ -2991,12 +2991,12 @@ function xl(e, t, l, a, n, i) {
|
|
|
2991
2991
|
"model-value": l.showProgress ? (i.uploadInProgress || i.uploadComplete) && i.overallFilesProgress : i.loadingValue
|
|
2992
2992
|
}, null, 8, ["color", "model-value"])) : c("", !0)
|
|
2993
2993
|
], 2),
|
|
2994
|
-
l.type === "file" && l.preview &&
|
|
2994
|
+
l.type === "file" && l.preview && o.inputFiles.length ? (s(), u("label", {
|
|
2995
2995
|
key: 1,
|
|
2996
2996
|
class: "d-flex",
|
|
2997
2997
|
for: `w-input--${e._.uid}`
|
|
2998
2998
|
}, [
|
|
2999
|
-
(s(!0), u(
|
|
2999
|
+
(s(!0), u(_, null, T(o.inputFiles, (d, h) => (s(), u(_, null, [
|
|
3000
3000
|
d.progress < 100 ? (s(), u("i", {
|
|
3001
3001
|
class: "w-icon wi-spinner w-icon--spin size--sm w-input__file-preview primary",
|
|
3002
3002
|
key: `${h}a`
|
|
@@ -3011,14 +3011,14 @@ function xl(e, t, l, a, n, i) {
|
|
|
3011
3011
|
}, null, 2))
|
|
3012
3012
|
], 64))), 256))
|
|
3013
3013
|
], 8, Il)) : c("", !0),
|
|
3014
|
-
l.labelPosition === "right" ? (s(), u(
|
|
3014
|
+
l.labelPosition === "right" ? (s(), u(_, { key: 2 }, [
|
|
3015
3015
|
e.$slots.default || l.label ? (s(), u("label", {
|
|
3016
3016
|
key: 0,
|
|
3017
3017
|
class: f(["w-input__label w-input__label--right w-form-el-shakable", e.labelClasses]),
|
|
3018
3018
|
for: `w-input--${e._.uid}`
|
|
3019
3019
|
}, [
|
|
3020
3020
|
p(e.$slots, "default", {}, () => [
|
|
3021
|
-
|
|
3021
|
+
C(k(l.label), 1)
|
|
3022
3022
|
])
|
|
3023
3023
|
], 10, Ll)) : c("", !0)
|
|
3024
3024
|
], 64)) : c("", !0)
|
|
@@ -3027,9 +3027,9 @@ function xl(e, t, l, a, n, i) {
|
|
|
3027
3027
|
_: 3
|
|
3028
3028
|
}, 16, ["valid", "wrap", "class"]);
|
|
3029
3029
|
}
|
|
3030
|
-
const
|
|
3030
|
+
const xl = {
|
|
3031
3031
|
name: "w-input",
|
|
3032
|
-
mixins: [
|
|
3032
|
+
mixins: [z],
|
|
3033
3033
|
props: {
|
|
3034
3034
|
modelValue: { default: "" },
|
|
3035
3035
|
type: { type: String, default: "text" },
|
|
@@ -3161,9 +3161,9 @@ const Tl = {
|
|
|
3161
3161
|
},
|
|
3162
3162
|
onFileChange(e) {
|
|
3163
3163
|
this.inputFiles = [...e.target.files].map((t) => {
|
|
3164
|
-
const [, l = "", a = "",
|
|
3164
|
+
const [, l = "", a = "", o = ""] = t.name.match(/^(.*?)\.([^.]*)$|(.*)/), i = G({
|
|
3165
3165
|
name: t.name,
|
|
3166
|
-
base: l ||
|
|
3166
|
+
base: l || o,
|
|
3167
3167
|
extension: a,
|
|
3168
3168
|
type: t.type,
|
|
3169
3169
|
size: t.size,
|
|
@@ -3176,8 +3176,8 @@ const Tl = {
|
|
|
3176
3176
|
}), this.$emit("update:modelValue", this.inputFiles), this.$emit("input", this.inputFiles);
|
|
3177
3177
|
},
|
|
3178
3178
|
readFile(e, t) {
|
|
3179
|
-
const l = new FileReader(), a = typeof this.preview == "string",
|
|
3180
|
-
this.preview && !a &&
|
|
3179
|
+
const l = new FileReader(), a = typeof this.preview == "string", o = e.type && e.type.startsWith("image/");
|
|
3180
|
+
this.preview && !a && o ? l.addEventListener("load", (i) => {
|
|
3181
3181
|
t.preview = i.target.result;
|
|
3182
3182
|
}) : delete t.preview, l.addEventListener("progress", (i) => {
|
|
3183
3183
|
i.loaded && i.total && (t.progress = i.loaded * 100 / i.total);
|
|
@@ -3194,26 +3194,26 @@ const Tl = {
|
|
|
3194
3194
|
this.inputValue = e, !e && e !== 0 && (this.isAutofilled = !1);
|
|
3195
3195
|
}
|
|
3196
3196
|
}
|
|
3197
|
-
},
|
|
3198
|
-
function
|
|
3199
|
-
const
|
|
3197
|
+
}, Pl = /* @__PURE__ */ v(xl, [["render", Tl]]);
|
|
3198
|
+
function Ol(e, t, l, a, o, i) {
|
|
3199
|
+
const n = $("w-icon"), r = $("w-list", !0);
|
|
3200
3200
|
return s(), u("ul", {
|
|
3201
3201
|
class: f(["w-list", i.classes])
|
|
3202
3202
|
}, [
|
|
3203
|
-
(s(!0), u(
|
|
3203
|
+
(s(!0), u(_, null, T(e.listItems, (d, h) => (s(), u("li", {
|
|
3204
3204
|
class: f(["w-list__item", { "w-list__item--parent": (d.children || []).length }]),
|
|
3205
3205
|
key: h
|
|
3206
3206
|
}, [
|
|
3207
|
-
l.icon ? (s(),
|
|
3207
|
+
l.icon ? (s(), b(n, {
|
|
3208
3208
|
key: 0,
|
|
3209
3209
|
class: "w-list__item-bullet"
|
|
3210
3210
|
}, {
|
|
3211
3211
|
default: m(() => [
|
|
3212
|
-
|
|
3212
|
+
C(k(l.icon), 1)
|
|
3213
3213
|
]),
|
|
3214
3214
|
_: 1
|
|
3215
3215
|
})) : c("", !0),
|
|
3216
|
-
e.$slots[`item.${h + 1}`] || e.$slots.item || e.$slots.default ? (s(),
|
|
3216
|
+
e.$slots[`item.${h + 1}`] || e.$slots.item || e.$slots.default ? (s(), b(I(l.checklist ? "w-checkbox" : l.nav && !d.disabled && d.route ? i.hasRouter ? "router-link" : "a" : "div"), B({
|
|
3217
3217
|
key: 1,
|
|
3218
3218
|
class: "w-list__item-label"
|
|
3219
3219
|
}, i.liLabelProps(d, h, d._selected)), {
|
|
@@ -3234,15 +3234,15 @@ function zl(e, t, l, a, n, i) {
|
|
|
3234
3234
|
index: h + 1,
|
|
3235
3235
|
selected: d._selected
|
|
3236
3236
|
}, () => [
|
|
3237
|
-
|
|
3237
|
+
C(k(d._label), 1)
|
|
3238
3238
|
])
|
|
3239
3239
|
]),
|
|
3240
3240
|
_: 2
|
|
3241
|
-
}, 1040)) : (s(),
|
|
3241
|
+
}, 1040)) : (s(), b(I(l.checklist ? "w-checkbox" : l.nav && !d.disabled && d.route ? i.hasRouter ? "router-link" : "a" : "div"), B({
|
|
3242
3242
|
key: 2,
|
|
3243
3243
|
class: "w-list__item-label"
|
|
3244
3244
|
}, i.liLabelProps(d, h, d._selected)), null, 16)),
|
|
3245
|
-
(d.children || []).length ? (s(),
|
|
3245
|
+
(d.children || []).length ? (s(), b(r, B({ key: 3 }, e.$props, {
|
|
3246
3246
|
items: d.children,
|
|
3247
3247
|
depth: l.depth + 1,
|
|
3248
3248
|
"onUpdate:modelValue": t[0] || (t[0] = (y) => e.$emit("update:modelValue", y)),
|
|
@@ -3252,23 +3252,23 @@ function zl(e, t, l, a, n, i) {
|
|
|
3252
3252
|
}), Z({ _: 2 }, [
|
|
3253
3253
|
e.$slots.item ? {
|
|
3254
3254
|
name: "item",
|
|
3255
|
-
fn: m(({ item: y, index: S, selected:
|
|
3255
|
+
fn: m(({ item: y, index: S, selected: g }) => [
|
|
3256
3256
|
p(e.$slots, "item", {
|
|
3257
3257
|
item: i.cleanLi(y),
|
|
3258
3258
|
index: S,
|
|
3259
|
-
selected:
|
|
3259
|
+
selected: g
|
|
3260
3260
|
})
|
|
3261
3261
|
]),
|
|
3262
3262
|
key: "0"
|
|
3263
3263
|
} : {
|
|
3264
3264
|
name: "default",
|
|
3265
|
-
fn: m(({ item: y, index: S, selected:
|
|
3265
|
+
fn: m(({ item: y, index: S, selected: g }) => [
|
|
3266
3266
|
p(e.$slots, "default", {
|
|
3267
3267
|
item: i.cleanLi(y),
|
|
3268
3268
|
index: S,
|
|
3269
|
-
selected:
|
|
3269
|
+
selected: g
|
|
3270
3270
|
}, () => [
|
|
3271
|
-
|
|
3271
|
+
C(k(y[l.itemLabelKey]), 1)
|
|
3272
3272
|
])
|
|
3273
3273
|
]),
|
|
3274
3274
|
key: "1"
|
|
@@ -3277,7 +3277,7 @@ function zl(e, t, l, a, n, i) {
|
|
|
3277
3277
|
], 2))), 128))
|
|
3278
3278
|
], 2);
|
|
3279
3279
|
}
|
|
3280
|
-
const
|
|
3280
|
+
const zl = {
|
|
3281
3281
|
name: "w-list",
|
|
3282
3282
|
props: {
|
|
3283
3283
|
items: { type: [Array, Number], required: !0 },
|
|
@@ -3361,14 +3361,14 @@ const El = {
|
|
|
3361
3361
|
};
|
|
3362
3362
|
},
|
|
3363
3363
|
liLabelProps(e, t, l) {
|
|
3364
|
-
const a = this.$slots[`item.${t + 1}`] || this.$slots.item,
|
|
3364
|
+
const a = this.$slots[`item.${t + 1}`] || this.$slots.item, o = () => {
|
|
3365
3365
|
if (!e.disabled) {
|
|
3366
3366
|
const d = this.cleanLi(e);
|
|
3367
3367
|
this.$emit("item-click", d), this.$emit("item-select", d);
|
|
3368
3368
|
}
|
|
3369
3369
|
}, i = this.isSelectable && ((d) => {
|
|
3370
3370
|
d.stopPropagation(), !e.disabled && this.selectItem(e);
|
|
3371
|
-
}),
|
|
3371
|
+
}), n = this.isSelectable && ((d) => {
|
|
3372
3372
|
!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));
|
|
3373
3373
|
}), r = {
|
|
3374
3374
|
class: this.liLabelClasses(e),
|
|
@@ -3379,10 +3379,10 @@ const El = {
|
|
|
3379
3379
|
};
|
|
3380
3380
|
return this.checklist ? (r.modelValue = e._selected, r.color = e[this.itemColorKey] || this.color, r.round = this.roundCheckboxes, r.disabled = e.disabled, a || (r.label = e._label || null), r.onFocus = () => e._focused = !0, r.onBlur = () => e._focused = !1, r.onInput = (d) => this.selectItem(e, d), r.onClick = (d) => {
|
|
3381
3381
|
const h = d.target.querySelector('input[type="checkbox"]');
|
|
3382
|
-
h && (h.focus(), h.click()),
|
|
3383
|
-
}) : this.nav ? (!e.disabled && e[this.itemRouteKey] && (r.onKeydown =
|
|
3384
|
-
d.preventDefault(), this.$router.push(e[this.itemRouteKey]),
|
|
3385
|
-
}) : (r.href = e[this.itemRouteKey], r.onClick =
|
|
3382
|
+
h && (h.focus(), h.click()), o();
|
|
3383
|
+
}) : this.nav ? (!e.disabled && e[this.itemRouteKey] && (r.onKeydown = n, r.onMousedown = i, this.$router ? (r.to = e[this.itemRouteKey], r.onClick = (d) => {
|
|
3384
|
+
d.preventDefault(), this.$router.push(e[this.itemRouteKey]), o();
|
|
3385
|
+
}) : (r.href = e[this.itemRouteKey], r.onClick = o)), a || (r.innerHTML = e._label)) : (this.isSelectable && (e.disabled || (r.tabindex = 0), r.onClick = o, r.onKeydown = n, r.onMousedown = i), a || (r.innerHTML = e._label)), r;
|
|
3386
3386
|
},
|
|
3387
3387
|
checkSelection(e) {
|
|
3388
3388
|
return e = Array.isArray(e) ? e : e ? [e] : [], this.returnObject && (e = e.map(this.getItemValue)), e;
|
|
@@ -3391,7 +3391,7 @@ const El = {
|
|
|
3391
3391
|
const e = this.selectedItems.map((l) => {
|
|
3392
3392
|
if (!this.returnObject)
|
|
3393
3393
|
return l._value;
|
|
3394
|
-
const { _value: a, _selected:
|
|
3394
|
+
const { _value: a, _selected: o, ...i } = l;
|
|
3395
3395
|
return i;
|
|
3396
3396
|
}), t = this.isMultipleSelect ? e : e[0] !== void 0 ? e[0] : null;
|
|
3397
3397
|
this.$emit("update:modelValue", t), this.$emit("input", t);
|
|
@@ -3402,8 +3402,8 @@ const El = {
|
|
|
3402
3402
|
e === void 0 && (e = this.enabledItemsIndexes[l]), this.$el.querySelector(`#${this.listId}_item-${e + 1}`).focus();
|
|
3403
3403
|
},
|
|
3404
3404
|
cleanLi(e) {
|
|
3405
|
-
const { _index: t, _value: l, _label: a, _selected:
|
|
3406
|
-
return
|
|
3405
|
+
const { _index: t, _value: l, _label: a, _selected: o, _focused: i, ...n } = e;
|
|
3406
|
+
return n;
|
|
3407
3407
|
},
|
|
3408
3408
|
refreshListItems() {
|
|
3409
3409
|
const e = typeof this.items == "number" ? Array(this.items).fill({}) : this.items || [];
|
|
@@ -3442,7 +3442,7 @@ const El = {
|
|
|
3442
3442
|
}
|
|
3443
3443
|
}
|
|
3444
3444
|
}
|
|
3445
|
-
},
|
|
3445
|
+
}, El = /* @__PURE__ */ v(zl, [["render", Ol]]), ye = {
|
|
3446
3446
|
props: {
|
|
3447
3447
|
appendTo: { type: [String, Boolean, Object] },
|
|
3448
3448
|
fixed: { type: Boolean },
|
|
@@ -3508,30 +3508,30 @@ const El = {
|
|
|
3508
3508
|
},
|
|
3509
3509
|
getActivatorCoordinates() {
|
|
3510
3510
|
const { top: e, left: t, width: l, height: a } = this.activatorEl.getBoundingClientRect();
|
|
3511
|
-
let
|
|
3511
|
+
let o = { top: e, left: t, width: l, height: a };
|
|
3512
3512
|
if (!this.fixed) {
|
|
3513
|
-
const { top: i, left:
|
|
3514
|
-
|
|
3515
|
-
...
|
|
3513
|
+
const { top: i, left: n } = this.detachableParentEl.getBoundingClientRect(), r = window.getComputedStyle(this.detachableParentEl, null);
|
|
3514
|
+
o = {
|
|
3515
|
+
...o,
|
|
3516
3516
|
top: e - i + this.detachableParentEl.scrollTop - parseInt(r.getPropertyValue("border-top-width")),
|
|
3517
|
-
left: t -
|
|
3517
|
+
left: t - n + this.detachableParentEl.scrollLeft - parseInt(r.getPropertyValue("border-left-width"))
|
|
3518
3518
|
};
|
|
3519
3519
|
}
|
|
3520
|
-
return
|
|
3520
|
+
return o;
|
|
3521
3521
|
},
|
|
3522
3522
|
computeDetachableCoords() {
|
|
3523
3523
|
let { top: e, left: t, width: l, height: a } = this.getActivatorCoordinates();
|
|
3524
3524
|
if (!this.detachableEl)
|
|
3525
3525
|
return;
|
|
3526
3526
|
this.detachableEl.style.visibility = "hidden", this.detachableEl.style.display = "flex";
|
|
3527
|
-
const
|
|
3527
|
+
const o = window.getComputedStyle(this.detachableEl, null);
|
|
3528
3528
|
switch (this.position) {
|
|
3529
3529
|
case "top": {
|
|
3530
|
-
e -= this.detachableEl.offsetHeight, this.alignRight ? t += l - this.detachableEl.offsetWidth + parseInt(
|
|
3530
|
+
e -= this.detachableEl.offsetHeight, this.alignRight ? t += l - this.detachableEl.offsetWidth + parseInt(o.getPropertyValue("border-right-width")) : this.alignLeft || (t += (l - this.detachableEl.offsetWidth) / 2);
|
|
3531
3531
|
break;
|
|
3532
3532
|
}
|
|
3533
3533
|
case "bottom": {
|
|
3534
|
-
e += a, this.alignRight ? t += l - this.detachableEl.offsetWidth + parseInt(
|
|
3534
|
+
e += a, this.alignRight ? t += l - this.detachableEl.offsetWidth + parseInt(o.getPropertyValue("border-right-width")) : this.alignLeft || (t += (l - this.detachableEl.offsetWidth) / 2);
|
|
3535
3535
|
break;
|
|
3536
3536
|
}
|
|
3537
3537
|
case "left": {
|
|
@@ -3539,7 +3539,7 @@ const El = {
|
|
|
3539
3539
|
break;
|
|
3540
3540
|
}
|
|
3541
3541
|
case "right": {
|
|
3542
|
-
t += l, this.alignBottom ? e += a - this.detachableEl.offsetHeight + parseInt(
|
|
3542
|
+
t += l, this.alignBottom ? e += a - this.detachableEl.offsetHeight + parseInt(o.getPropertyValue("margin-top")) : this.alignTop || (e += (a - this.detachableEl.offsetHeight) / 2 + parseInt(o.getPropertyValue("margin-top")));
|
|
3543
3543
|
break;
|
|
3544
3544
|
}
|
|
3545
3545
|
}
|
|
@@ -3566,9 +3566,9 @@ const El = {
|
|
|
3566
3566
|
const e = typeof this.activator == "string";
|
|
3567
3567
|
Object.entries(this.activatorEventHandlers).forEach(([t, l]) => {
|
|
3568
3568
|
t = t.replace("mouseenter", "mouseover").replace("mouseleave", "mouseout");
|
|
3569
|
-
const a = (
|
|
3569
|
+
const a = (o) => {
|
|
3570
3570
|
var i;
|
|
3571
|
-
(e && ((i =
|
|
3571
|
+
(e && ((i = o.target) == null ? void 0 : i.matches) && o.target.matches(this.activator) || o.target === this.activatorEl || this.activatorEl.contains(o.target)) && l(o);
|
|
3572
3572
|
};
|
|
3573
3573
|
document.addEventListener(t, a), this.docEventListenersHandlers.push({ eventName: t, handler: a });
|
|
3574
3574
|
});
|
|
@@ -3594,16 +3594,16 @@ const El = {
|
|
|
3594
3594
|
}
|
|
3595
3595
|
}
|
|
3596
3596
|
};
|
|
3597
|
-
function Ml(e, t, l, a,
|
|
3598
|
-
const
|
|
3599
|
-
return s(), u(
|
|
3597
|
+
function Ml(e, t, l, a, o, i) {
|
|
3598
|
+
const n = $("w-card"), r = $("w-overlay");
|
|
3599
|
+
return s(), u(_, null, [
|
|
3600
3600
|
p(e.$slots, "activator", { on: i.activatorEventHandlers }),
|
|
3601
|
-
V(
|
|
3601
|
+
V(x, {
|
|
3602
3602
|
name: i.transitionName,
|
|
3603
3603
|
appear: ""
|
|
3604
3604
|
}, {
|
|
3605
3605
|
default: m(() => [
|
|
3606
|
-
l.custom && e.detachableVisible ? (s(), u("div",
|
|
3606
|
+
l.custom && e.detachableVisible ? (s(), u("div", B({
|
|
3607
3607
|
key: 0,
|
|
3608
3608
|
class: "w-menu",
|
|
3609
3609
|
ref: "detachable"
|
|
@@ -3615,7 +3615,7 @@ function Ml(e, t, l, a, n, i) {
|
|
|
3615
3615
|
style: i.styles
|
|
3616
3616
|
}), [
|
|
3617
3617
|
p(e.$slots, "default")
|
|
3618
|
-
], 16)) : e.detachableVisible ? (s(),
|
|
3618
|
+
], 16)) : e.detachableVisible ? (s(), b(n, B({
|
|
3619
3619
|
key: 1,
|
|
3620
3620
|
class: "w-menu",
|
|
3621
3621
|
ref: "detachable"
|
|
@@ -3654,7 +3654,7 @@ function Ml(e, t, l, a, n, i) {
|
|
|
3654
3654
|
]),
|
|
3655
3655
|
_: 3
|
|
3656
3656
|
}, 8, ["name"]),
|
|
3657
|
-
l.overlay ? (s(),
|
|
3657
|
+
l.overlay ? (s(), b(r, B({
|
|
3658
3658
|
key: 0,
|
|
3659
3659
|
ref: "overlay",
|
|
3660
3660
|
"model-value": e.detachableVisible,
|
|
@@ -3790,19 +3790,19 @@ const Nl = {
|
|
|
3790
3790
|
}
|
|
3791
3791
|
}
|
|
3792
3792
|
}, Wl = /* @__PURE__ */ v(Nl, [["render", Ml]]);
|
|
3793
|
-
function Al(e, t, l, a,
|
|
3794
|
-
const
|
|
3795
|
-
return s(),
|
|
3793
|
+
function Al(e, t, l, a, o, i) {
|
|
3794
|
+
const n = $("w-alert");
|
|
3795
|
+
return s(), b(x, {
|
|
3796
3796
|
name: i.transitionName,
|
|
3797
3797
|
appear: ""
|
|
3798
3798
|
}, {
|
|
3799
3799
|
default: m(() => [
|
|
3800
|
-
|
|
3800
|
+
o.show ? (s(), u("div", {
|
|
3801
3801
|
key: 0,
|
|
3802
3802
|
class: f(["w-notification", i.classes]),
|
|
3803
3803
|
style: L(i.styles)
|
|
3804
3804
|
}, [
|
|
3805
|
-
V(
|
|
3805
|
+
V(n, B(i.alertProps, {
|
|
3806
3806
|
class: i.alertClasses,
|
|
3807
3807
|
"onUpdate:modelValue": t[0] || (t[0] = (r) => {
|
|
3808
3808
|
e.$emit("update:modelValue", !1), e.$emit("input", !1);
|
|
@@ -3939,9 +3939,9 @@ const Kl = {
|
|
|
3939
3939
|
}
|
|
3940
3940
|
}
|
|
3941
3941
|
}, Dl = /* @__PURE__ */ v(Kl, [["render", Al]]);
|
|
3942
|
-
function Fl(e, t, l, a,
|
|
3943
|
-
const
|
|
3944
|
-
return s(),
|
|
3942
|
+
function Fl(e, t, l, a, o, i) {
|
|
3943
|
+
const n = fe("focus");
|
|
3944
|
+
return s(), b(x, {
|
|
3945
3945
|
name: "fade",
|
|
3946
3946
|
appear: "",
|
|
3947
3947
|
onAfterLeave: i.onClose
|
|
@@ -3952,14 +3952,14 @@ function Fl(e, t, l, a, n, i) {
|
|
|
3952
3952
|
class: f(["w-overlay", i.classes]),
|
|
3953
3953
|
ref: "overlay",
|
|
3954
3954
|
style: L(l.modelValue && i.styles || null),
|
|
3955
|
-
onKeydown: t[0] || (t[0] = M(
|
|
3955
|
+
onKeydown: t[0] || (t[0] = M(E((...r) => i.onClick && i.onClick(...r), ["stop"]), ["escape"])),
|
|
3956
3956
|
onClick: t[1] || (t[1] = (...r) => i.onClick && i.onClick(...r)),
|
|
3957
3957
|
tabindex: "0"
|
|
3958
3958
|
}, [
|
|
3959
3959
|
p(e.$slots, "default")
|
|
3960
3960
|
], 38)), [
|
|
3961
3961
|
[me, e.showOverlay],
|
|
3962
|
-
[
|
|
3962
|
+
[n]
|
|
3963
3963
|
]) : c("", !0)
|
|
3964
3964
|
]),
|
|
3965
3965
|
_: 3
|
|
@@ -4020,7 +4020,7 @@ const Hl = {
|
|
|
4020
4020
|
}
|
|
4021
4021
|
}
|
|
4022
4022
|
}, jl = /* @__PURE__ */ v(Hl, [["render", Fl]]), Ul = { class: "w-parallax" };
|
|
4023
|
-
function ql(e, t, l, a,
|
|
4023
|
+
function ql(e, t, l, a, o, i) {
|
|
4024
4024
|
return s(), u("div", Ul);
|
|
4025
4025
|
}
|
|
4026
4026
|
const Gl = {
|
|
@@ -4029,7 +4029,7 @@ const Gl = {
|
|
|
4029
4029
|
emits: [],
|
|
4030
4030
|
data: () => ({})
|
|
4031
4031
|
}, Xl = /* @__PURE__ */ v(Gl, [["render", ql]]), Yl = ["viewBox"], Jl = ["cx", "cy", "r", "stroke-dasharray", "stroke-width"], Ql = ["cx", "cy", "r", "stroke-width", "stroke-linecap", "stroke-dasharray"];
|
|
4032
|
-
function Zl(e, t, l, a,
|
|
4032
|
+
function Zl(e, t, l, a, o, i) {
|
|
4033
4033
|
return s(), u("div", {
|
|
4034
4034
|
class: f(["w-progress", i.classes]),
|
|
4035
4035
|
style: L(i.styles)
|
|
@@ -4069,7 +4069,7 @@ function Zl(e, t, l, a, n, i) {
|
|
|
4069
4069
|
class: f(["w-progress__label", l.labelColor || !1])
|
|
4070
4070
|
}, [
|
|
4071
4071
|
p(e.$slots, "default", {}, () => [
|
|
4072
|
-
|
|
4072
|
+
C(k(Math.round(i.progressValue)) + k(l.circle ? "" : "%"), 1)
|
|
4073
4073
|
])
|
|
4074
4074
|
], 2)) : c("", !0)
|
|
4075
4075
|
], 6);
|
|
@@ -4141,11 +4141,11 @@ const Q = 40, ei = Q / 2, ti = Math.round(Q * 3.14 * 100) / 100, li = {
|
|
|
4141
4141
|
}
|
|
4142
4142
|
}
|
|
4143
4143
|
}, 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"];
|
|
4144
|
-
function di(e, t, l, a,
|
|
4145
|
-
return s(),
|
|
4144
|
+
function di(e, t, l, a, o, i) {
|
|
4145
|
+
return s(), b(I(e.formRegister && !i.wRadios ? "w-form-element" : "div"), B({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: e.inputValue, disabled: e.isDisabled }, {
|
|
4146
4146
|
valid: e.valid,
|
|
4147
|
-
"onUpdate:valid": t[3] || (t[3] = (
|
|
4148
|
-
onReset: t[4] || (t[4] = (
|
|
4147
|
+
"onUpdate:valid": t[3] || (t[3] = (n) => e.valid = n),
|
|
4148
|
+
onReset: t[4] || (t[4] = (n) => {
|
|
4149
4149
|
e.$emit("update:modelValue", e.inputValue = null), e.$emit("input", null);
|
|
4150
4150
|
}),
|
|
4151
4151
|
class: i.classes
|
|
@@ -4160,19 +4160,19 @@ function di(e, t, l, a, n, i) {
|
|
|
4160
4160
|
disabled: e.isDisabled || null,
|
|
4161
4161
|
required: e.required || null,
|
|
4162
4162
|
tabindex: e.tabindex || null,
|
|
4163
|
-
onFocus: t[0] || (t[0] = (
|
|
4164
|
-
onChange: t[1] || (t[1] = (
|
|
4163
|
+
onFocus: t[0] || (t[0] = (n) => e.$emit("focus", n)),
|
|
4164
|
+
onChange: t[1] || (t[1] = (n) => i.onInput(n)),
|
|
4165
4165
|
"aria-checked": e.inputValue || "false",
|
|
4166
4166
|
role: "radio"
|
|
4167
4167
|
}, null, 40, si),
|
|
4168
|
-
i.hasLabel && l.labelOnLeft ? (s(), u(
|
|
4168
|
+
i.hasLabel && l.labelOnLeft ? (s(), u(_, { key: 0 }, [
|
|
4169
4169
|
e.$slots.default ? (s(), u("label", {
|
|
4170
4170
|
key: 0,
|
|
4171
4171
|
class: f(["w-radio__label w-form-el-shakable pr2", e.labelClasses]),
|
|
4172
4172
|
for: `w-radio--${e._.uid}`
|
|
4173
4173
|
}, [
|
|
4174
4174
|
p(e.$slots, "default", {}, () => [
|
|
4175
|
-
|
|
4175
|
+
C(k(l.label), 1)
|
|
4176
4176
|
])
|
|
4177
4177
|
], 10, ai)) : l.label ? (s(), u("label", {
|
|
4178
4178
|
key: 1,
|
|
@@ -4183,18 +4183,18 @@ function di(e, t, l, a, n, i) {
|
|
|
4183
4183
|
], 64)) : c("", !0),
|
|
4184
4184
|
w("div", {
|
|
4185
4185
|
class: f(["w-radio__input", this.color]),
|
|
4186
|
-
onClick: t[2] || (t[2] = (
|
|
4186
|
+
onClick: t[2] || (t[2] = (n) => {
|
|
4187
4187
|
e.$refs.input.focus(), e.$refs.input.click();
|
|
4188
4188
|
})
|
|
4189
4189
|
}, null, 2),
|
|
4190
|
-
i.hasLabel && !l.labelOnLeft ? (s(), u(
|
|
4190
|
+
i.hasLabel && !l.labelOnLeft ? (s(), u(_, { key: 1 }, [
|
|
4191
4191
|
e.$slots.default ? (s(), u("label", {
|
|
4192
4192
|
key: 0,
|
|
4193
4193
|
class: f(["w-radio__label w-form-el-shakable pl2", e.labelClasses]),
|
|
4194
4194
|
for: `w-radio--${e._.uid}`
|
|
4195
4195
|
}, [
|
|
4196
4196
|
p(e.$slots, "default", {}, () => [
|
|
4197
|
-
|
|
4197
|
+
C(k(l.label), 1)
|
|
4198
4198
|
])
|
|
4199
4199
|
], 10, ni)) : l.label ? (s(), u("label", {
|
|
4200
4200
|
key: 1,
|
|
@@ -4209,7 +4209,7 @@ function di(e, t, l, a, n, i) {
|
|
|
4209
4209
|
}
|
|
4210
4210
|
const ui = {
|
|
4211
4211
|
name: "w-radio",
|
|
4212
|
-
mixins: [
|
|
4212
|
+
mixins: [z],
|
|
4213
4213
|
inject: { wRadios: { default: null } },
|
|
4214
4214
|
props: {
|
|
4215
4215
|
modelValue: { default: !1 },
|
|
@@ -4267,9 +4267,9 @@ const ui = {
|
|
|
4267
4267
|
}
|
|
4268
4268
|
}
|
|
4269
4269
|
}, hi = /* @__PURE__ */ v(ui, [["render", di]]), ci = ["innerHTML"];
|
|
4270
|
-
function pi(e, t, l, a,
|
|
4271
|
-
const
|
|
4272
|
-
return s(),
|
|
4270
|
+
function pi(e, t, l, a, o, i) {
|
|
4271
|
+
const n = $("w-radio");
|
|
4272
|
+
return s(), b(I(e.formRegister ? "w-form-element" : "div"), B({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: e.inputValue, disabled: e.isDisabled }, {
|
|
4273
4273
|
valid: e.valid,
|
|
4274
4274
|
"onUpdate:valid": t[1] || (t[1] = (r) => e.valid = r),
|
|
4275
4275
|
onReset: t[2] || (t[2] = (r) => {
|
|
@@ -4280,7 +4280,7 @@ function pi(e, t, l, a, n, i) {
|
|
|
4280
4280
|
class: i.classes
|
|
4281
4281
|
}), {
|
|
4282
4282
|
default: m(() => [
|
|
4283
|
-
(s(!0), u(
|
|
4283
|
+
(s(!0), u(_, null, T(i.radioItems, (r, d) => (s(), b(n, B({
|
|
4284
4284
|
key: d,
|
|
4285
4285
|
"model-value": r.value === l.modelValue,
|
|
4286
4286
|
"onUpdate:modelValue": (h) => i.onInput(r),
|
|
@@ -4311,7 +4311,7 @@ function pi(e, t, l, a, n, i) {
|
|
|
4311
4311
|
}
|
|
4312
4312
|
const fi = {
|
|
4313
4313
|
name: "w-radios",
|
|
4314
|
-
mixins: [
|
|
4314
|
+
mixins: [z],
|
|
4315
4315
|
props: {
|
|
4316
4316
|
items: { type: Array, required: !0 },
|
|
4317
4317
|
modelValue: { type: [String, Number, Boolean] },
|
|
@@ -4356,12 +4356,12 @@ const fi = {
|
|
|
4356
4356
|
}
|
|
4357
4357
|
}
|
|
4358
4358
|
}, mi = /* @__PURE__ */ v(fi, [["render", pi]]), gi = ["id", "name", "value"], bi = ["disabled", "onMouseenter", "onClick", "tabindex"];
|
|
4359
|
-
function yi(e, t, l, a,
|
|
4360
|
-
return s(),
|
|
4359
|
+
function yi(e, t, l, a, o, i) {
|
|
4360
|
+
return s(), b(I(e.formRegister ? "w-form-element" : "div"), B({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: o.rating, disabled: e.isDisabled, readonly: e.isReadonly }, {
|
|
4361
4361
|
valid: e.valid,
|
|
4362
|
-
"onUpdate:valid": t[4] || (t[4] = (
|
|
4363
|
-
onReset: t[5] || (t[5] = (
|
|
4364
|
-
e.$emit("update:modelValue",
|
|
4362
|
+
"onUpdate:valid": t[4] || (t[4] = (n) => e.valid = n),
|
|
4363
|
+
onReset: t[5] || (t[5] = (n) => {
|
|
4364
|
+
e.$emit("update:modelValue", o.rating = null), e.$emit("input", null);
|
|
4365
4365
|
}),
|
|
4366
4366
|
class: i.classes
|
|
4367
4367
|
}), {
|
|
@@ -4370,26 +4370,26 @@ function yi(e, t, l, a, n, i) {
|
|
|
4370
4370
|
id: e.inputName,
|
|
4371
4371
|
name: e.inputName,
|
|
4372
4372
|
type: "hidden",
|
|
4373
|
-
value:
|
|
4373
|
+
value: o.rating
|
|
4374
4374
|
}, null, 8, gi),
|
|
4375
|
-
(s(!0), u(
|
|
4375
|
+
(s(!0), u(_, null, T(l.max, (n) => (s(), u(_, { key: n }, [
|
|
4376
4376
|
e.$slots.item ? p(e.$slots, "item", {
|
|
4377
4377
|
key: 0,
|
|
4378
|
-
index:
|
|
4378
|
+
index: n + 1
|
|
4379
4379
|
}) : c("", !0),
|
|
4380
4380
|
w("button", {
|
|
4381
|
-
class: f(["w-rating__button", i.buttonClasses(
|
|
4381
|
+
class: f(["w-rating__button", i.buttonClasses(n)]),
|
|
4382
4382
|
disabled: e.isDisabled || e.isReadonly,
|
|
4383
|
-
onMouseenter: (r) =>
|
|
4384
|
-
onMouseleave: t[0] || (t[0] = (r) =>
|
|
4385
|
-
onClick: (r) => i.onButtonClick(
|
|
4383
|
+
onMouseenter: (r) => o.hover = n,
|
|
4384
|
+
onMouseleave: t[0] || (t[0] = (r) => o.hover = 0),
|
|
4385
|
+
onClick: (r) => i.onButtonClick(n),
|
|
4386
4386
|
onFocus: t[1] || (t[1] = (...r) => i.onFocus && i.onFocus(...r)),
|
|
4387
4387
|
onBlur: t[2] || (t[2] = (...r) => i.onBlur && i.onBlur(...r)),
|
|
4388
4388
|
onKeydown: t[3] || (t[3] = (...r) => i.onKeydown && i.onKeydown(...r)),
|
|
4389
4389
|
type: "button",
|
|
4390
|
-
tabindex:
|
|
4390
|
+
tabindex: n === 1 ? 0 : -1
|
|
4391
4391
|
}, [
|
|
4392
|
-
|
|
4392
|
+
n - 1 === ~~o.rating && o.rating - ~~o.rating ? (s(), u("i", {
|
|
4393
4393
|
key: 0,
|
|
4394
4394
|
class: f(["w-icon", `${l.icon} ${l.color}`]),
|
|
4395
4395
|
role: "icon",
|
|
@@ -4404,7 +4404,7 @@ function yi(e, t, l, a, n, i) {
|
|
|
4404
4404
|
}
|
|
4405
4405
|
const wi = {
|
|
4406
4406
|
name: "w-rating",
|
|
4407
|
-
mixins: [
|
|
4407
|
+
mixins: [z],
|
|
4408
4408
|
props: {
|
|
4409
4409
|
modelValue: {},
|
|
4410
4410
|
max: { type: [Number, String], default: 5 },
|
|
@@ -4493,7 +4493,7 @@ const wi = {
|
|
|
4493
4493
|
}
|
|
4494
4494
|
}
|
|
4495
4495
|
}, vi = /* @__PURE__ */ v(wi, [["render", yi]]), ki = { class: "w-scrollbar" };
|
|
4496
|
-
function _i(e, t, l, a,
|
|
4496
|
+
function _i(e, t, l, a, o, i) {
|
|
4497
4497
|
return s(), u("div", ki);
|
|
4498
4498
|
}
|
|
4499
4499
|
const Ci = {
|
|
@@ -4504,10 +4504,10 @@ const Ci = {
|
|
|
4504
4504
|
}, Bi = /* @__PURE__ */ v(Ci, [["render", _i]]), Si = ["for"], $i = ["aria-expanded", "aria-owns", "aria-activedescendant"], Vi = {
|
|
4505
4505
|
key: 1,
|
|
4506
4506
|
class: "w-select__selection-slot"
|
|
4507
|
-
}, Ii = ["contenteditable", "id", "disabled", "tabindex", "innerHTML"], Ri = ["value", "name"], Li = ["for"],
|
|
4508
|
-
function
|
|
4509
|
-
const
|
|
4510
|
-
return s(),
|
|
4507
|
+
}, Ii = ["contenteditable", "id", "disabled", "tabindex", "innerHTML"], Ri = ["value", "name"], Li = ["for"], Ti = ["for"];
|
|
4508
|
+
function xi(e, t, l, a, o, i) {
|
|
4509
|
+
const n = $("w-icon"), r = $("w-list"), d = $("w-menu");
|
|
4510
|
+
return s(), b(I(e.formRegister ? "w-form-element" : "div"), B({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: i.selectionString, disabled: e.isDisabled, readonly: e.isReadonly }, {
|
|
4511
4511
|
valid: e.valid,
|
|
4512
4512
|
"onUpdate:valid": t[9] || (t[9] = (h) => e.valid = h),
|
|
4513
4513
|
onReset: i.onReset,
|
|
@@ -4515,18 +4515,18 @@ function Ti(e, t, l, a, n, i) {
|
|
|
4515
4515
|
class: i.classes
|
|
4516
4516
|
}), {
|
|
4517
4517
|
default: m(() => [
|
|
4518
|
-
l.labelPosition === "left" ? (s(), u(
|
|
4518
|
+
l.labelPosition === "left" ? (s(), u(_, { key: 0 }, [
|
|
4519
4519
|
e.$slots.default || l.label ? (s(), u("label", {
|
|
4520
4520
|
key: 0,
|
|
4521
4521
|
class: f(["w-select__label w-select__label--left w-form-el-shakable", e.labelClasses]),
|
|
4522
4522
|
for: `w-select--${e._.uid}`
|
|
4523
4523
|
}, [
|
|
4524
4524
|
p(e.$slots, "default", {}, () => [
|
|
4525
|
-
|
|
4525
|
+
C(k(l.label), 1)
|
|
4526
4526
|
])
|
|
4527
4527
|
], 10, Si)) : c("", !0)
|
|
4528
4528
|
], 64)) : c("", !0),
|
|
4529
|
-
V(d,
|
|
4529
|
+
V(d, B({
|
|
4530
4530
|
modelValue: e.showMenu,
|
|
4531
4531
|
"onUpdate:modelValue": t[8] || (t[8] = (h) => e.showMenu = h),
|
|
4532
4532
|
"menu-class": `w-select__menu ${l.menuClass || ""}`,
|
|
@@ -4546,14 +4546,14 @@ function Ti(e, t, l, a, n, i) {
|
|
|
4546
4546
|
"aria-owns": `w-select-menu--${e._.uid}`,
|
|
4547
4547
|
"aria-activedescendant": `w-select-menu--${e._.uid}_item-1`
|
|
4548
4548
|
}, [
|
|
4549
|
-
l.innerIconLeft ? (s(),
|
|
4549
|
+
l.innerIconLeft ? (s(), b(n, {
|
|
4550
4550
|
key: 0,
|
|
4551
4551
|
class: "w-select__icon w-select__icon--inner-left",
|
|
4552
4552
|
tag: "label",
|
|
4553
4553
|
onClick: t[0] || (t[0] = (y) => e.$emit("click:inner-icon-left", y))
|
|
4554
4554
|
}, {
|
|
4555
4555
|
default: m(() => [
|
|
4556
|
-
|
|
4556
|
+
C(k(l.innerIconLeft), 1)
|
|
4557
4557
|
]),
|
|
4558
4558
|
_: 1
|
|
4559
4559
|
})) : c("", !0),
|
|
@@ -4576,31 +4576,31 @@ function Ti(e, t, l, a, n, i) {
|
|
|
4576
4576
|
tabindex: e.tabindex || null,
|
|
4577
4577
|
innerHTML: e.$slots.selection ? "" : i.selectionString || l.placeholder
|
|
4578
4578
|
}, null, 42, Ii),
|
|
4579
|
-
(s(!0), u(
|
|
4579
|
+
(s(!0), u(_, null, T(e.inputValue.length ? e.inputValue : [{}], (y, S) => (s(), u("input", {
|
|
4580
4580
|
key: S,
|
|
4581
4581
|
type: "hidden",
|
|
4582
4582
|
value: y.value === void 0 ? "" : y.value.toString(),
|
|
4583
4583
|
name: e.inputName + (l.multiple ? "[]" : "")
|
|
4584
4584
|
}, null, 8, Ri))), 128)),
|
|
4585
|
-
l.labelPosition === "inside" && i.showLabelInside ? (s(), u(
|
|
4585
|
+
l.labelPosition === "inside" && i.showLabelInside ? (s(), u(_, { key: 2 }, [
|
|
4586
4586
|
e.$slots.default || l.label ? (s(), u("label", {
|
|
4587
4587
|
key: 0,
|
|
4588
4588
|
class: f(["w-select__label w-select__label--inside w-form-el-shakable", e.labelClasses]),
|
|
4589
4589
|
for: `w-select--${e._.uid}`
|
|
4590
4590
|
}, [
|
|
4591
4591
|
p(e.$slots, "default", {}, () => [
|
|
4592
|
-
|
|
4592
|
+
C(k(l.label), 1)
|
|
4593
4593
|
])
|
|
4594
4594
|
], 10, Li)) : c("", !0)
|
|
4595
4595
|
], 64)) : c("", !0),
|
|
4596
|
-
l.innerIconRight ? (s(),
|
|
4596
|
+
l.innerIconRight ? (s(), b(n, {
|
|
4597
4597
|
key: 3,
|
|
4598
4598
|
class: "w-select__icon w-select__icon--inner-right",
|
|
4599
4599
|
tag: "label",
|
|
4600
4600
|
onClick: t[4] || (t[4] = (y) => e.$emit("click:inner-icon-right", y))
|
|
4601
4601
|
}, {
|
|
4602
4602
|
default: m(() => [
|
|
4603
|
-
|
|
4603
|
+
C(k(l.innerIconRight), 1)
|
|
4604
4604
|
]),
|
|
4605
4605
|
_: 1
|
|
4606
4606
|
})) : c("", !0)
|
|
@@ -4626,23 +4626,23 @@ function Ti(e, t, l, a, n, i) {
|
|
|
4626
4626
|
role: "listbox",
|
|
4627
4627
|
tabindex: "-1"
|
|
4628
4628
|
}, Z({ _: 2 }, [
|
|
4629
|
-
|
|
4629
|
+
T(l.items.length, (h) => ({
|
|
4630
4630
|
name: `item.${h}`,
|
|
4631
|
-
fn: m(({ item: y, selected: S, index:
|
|
4632
|
-
e.$slots[`item.${h}`] && e.$slots[`item.${h}`](y, S,
|
|
4631
|
+
fn: m(({ item: y, selected: S, index: g }) => [
|
|
4632
|
+
e.$slots[`item.${h}`] && e.$slots[`item.${h}`](y, S, g) ? p(e.$slots, `item.${h}`, {
|
|
4633
4633
|
key: 0,
|
|
4634
4634
|
item: y,
|
|
4635
4635
|
selected: S,
|
|
4636
|
-
index:
|
|
4636
|
+
index: g
|
|
4637
4637
|
}, () => [
|
|
4638
|
-
|
|
4638
|
+
C(k(y[l.itemLabelKey]), 1)
|
|
4639
4639
|
]) : p(e.$slots, "item", {
|
|
4640
4640
|
key: 1,
|
|
4641
4641
|
item: y,
|
|
4642
4642
|
selected: S,
|
|
4643
|
-
index:
|
|
4643
|
+
index: g
|
|
4644
4644
|
}, () => [
|
|
4645
|
-
|
|
4645
|
+
C(k(y[l.itemLabelKey]), 1)
|
|
4646
4646
|
])
|
|
4647
4647
|
])
|
|
4648
4648
|
}))
|
|
@@ -4650,24 +4650,24 @@ function Ti(e, t, l, a, n, i) {
|
|
|
4650
4650
|
]),
|
|
4651
4651
|
_: 3
|
|
4652
4652
|
}, 16, ["modelValue", "menu-class", "append-to"]),
|
|
4653
|
-
l.labelPosition === "right" ? (s(), u(
|
|
4653
|
+
l.labelPosition === "right" ? (s(), u(_, { key: 1 }, [
|
|
4654
4654
|
e.$slots.default || l.label ? (s(), u("label", {
|
|
4655
4655
|
key: 0,
|
|
4656
4656
|
class: f(["w-select__label w-select__label--right w-form-el-shakable", e.labelClasses]),
|
|
4657
4657
|
for: `w-select--${e._.uid}`
|
|
4658
4658
|
}, [
|
|
4659
4659
|
p(e.$slots, "default", {}, () => [
|
|
4660
|
-
|
|
4660
|
+
C(k(l.label), 1)
|
|
4661
4661
|
])
|
|
4662
|
-
], 10,
|
|
4662
|
+
], 10, Ti)) : c("", !0)
|
|
4663
4663
|
], 64)) : c("", !0)
|
|
4664
4664
|
]),
|
|
4665
4665
|
_: 3
|
|
4666
4666
|
}, 16, ["valid", "onReset", "wrap", "class"]);
|
|
4667
4667
|
}
|
|
4668
|
-
const
|
|
4668
|
+
const Pi = {
|
|
4669
4669
|
name: "w-select",
|
|
4670
|
-
mixins: [
|
|
4670
|
+
mixins: [z],
|
|
4671
4671
|
props: {
|
|
4672
4672
|
items: { type: Array, required: !0 },
|
|
4673
4673
|
modelValue: {},
|
|
@@ -4828,15 +4828,15 @@ const Oi = {
|
|
|
4828
4828
|
this.inputValue = this.checkSelection(this.modelValue);
|
|
4829
4829
|
}
|
|
4830
4830
|
}
|
|
4831
|
-
},
|
|
4831
|
+
}, Oi = /* @__PURE__ */ v(Pi, [["render", xi]]), zi = ["for"], Ei = ["for", "innerHTML"], Mi = { class: "w-slider__track-wrap" }, Ni = ["aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-readonly"], Wi = ["id", "name", "model-value", "disabled", "readonly", "aria-readonly", "tabindex"], Ai = ["for"], Ki = { key: 0 }, Di = {
|
|
4832
4832
|
key: 0,
|
|
4833
4833
|
class: "w-slider__step-labels"
|
|
4834
4834
|
}, Fi = ["onClick"], Hi = ["for"], ji = ["for", "innerHTML"];
|
|
4835
|
-
function Ui(e, t, l, a,
|
|
4836
|
-
return s(),
|
|
4835
|
+
function Ui(e, t, l, a, o, i) {
|
|
4836
|
+
return s(), b(I(e.formRegister ? "w-form-element" : "div"), B({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: e.rangeValueScaled, disabled: e.isDisabled, readonly: e.isReadonly }, {
|
|
4837
4837
|
valid: e.valid,
|
|
4838
|
-
"onUpdate:valid": t[8] || (t[8] = (
|
|
4839
|
-
onReset: t[9] || (t[9] = (
|
|
4838
|
+
"onUpdate:valid": t[8] || (t[8] = (n) => e.valid = n),
|
|
4839
|
+
onReset: t[9] || (t[9] = (n) => {
|
|
4840
4840
|
e.rangeValuePercent = 0, i.updateRangeValueScaled();
|
|
4841
4841
|
}),
|
|
4842
4842
|
wrap: e.formRegister || null,
|
|
@@ -4849,18 +4849,18 @@ function Ui(e, t, l, a, n, i) {
|
|
|
4849
4849
|
for: `button--${e._.uid}`
|
|
4850
4850
|
}, [
|
|
4851
4851
|
p(e.$slots, "label-left")
|
|
4852
|
-
], 10,
|
|
4852
|
+
], 10, zi)) : l.labelLeft ? (s(), u("label", {
|
|
4853
4853
|
key: 1,
|
|
4854
4854
|
class: f(["w-slider__label w-slider__label--left w-form-el-shakable", e.labelClasses]),
|
|
4855
4855
|
for: `button--${e._.uid}`,
|
|
4856
4856
|
innerHTML: l.labelLeft
|
|
4857
|
-
}, null, 10,
|
|
4857
|
+
}, null, 10, Ei)) : c("", !0),
|
|
4858
4858
|
w("div", Mi, [
|
|
4859
4859
|
w("div", {
|
|
4860
4860
|
class: f(["w-slider__track", i.trackClasses]),
|
|
4861
4861
|
ref: "track",
|
|
4862
|
-
onMousedown: t[4] || (t[4] = (...
|
|
4863
|
-
onTouchstart: t[5] || (t[5] = (...
|
|
4862
|
+
onMousedown: t[4] || (t[4] = (...n) => i.onTrackMouseDown && i.onTrackMouseDown(...n)),
|
|
4863
|
+
onTouchstart: t[5] || (t[5] = (...n) => i.onTrackMouseDown && i.onTrackMouseDown(...n)),
|
|
4864
4864
|
role: "slider",
|
|
4865
4865
|
"aria-label": "Slider",
|
|
4866
4866
|
"aria-valuemin": i.minVal,
|
|
@@ -4888,11 +4888,11 @@ function Ui(e, t, l, a, n, i) {
|
|
|
4888
4888
|
"aria-readonly": e.isReadonly ? "true" : "false",
|
|
4889
4889
|
tabindex: e.isDisabled || e.isReadonly ? -1 : null,
|
|
4890
4890
|
onKeydown: [
|
|
4891
|
-
t[0] || (t[0] = M((
|
|
4892
|
-
t[1] || (t[1] = M((
|
|
4891
|
+
t[0] || (t[0] = M((n) => i.onKeyDown(n, -1), ["left"])),
|
|
4892
|
+
t[1] || (t[1] = M((n) => i.onKeyDown(n, 1), ["right"]))
|
|
4893
4893
|
],
|
|
4894
|
-
onFocus: t[2] || (t[2] = (
|
|
4895
|
-
onClick: t[3] || (t[3] =
|
|
4894
|
+
onFocus: t[2] || (t[2] = (n) => e.$emit("focus", n)),
|
|
4895
|
+
onClick: t[3] || (t[3] = E(() => {
|
|
4896
4896
|
}, ["prevent"]))
|
|
4897
4897
|
}, null, 42, Wi),
|
|
4898
4898
|
l.thumbLabel ? (s(), u("label", {
|
|
@@ -4902,13 +4902,13 @@ function Ui(e, t, l, a, n, i) {
|
|
|
4902
4902
|
}, [
|
|
4903
4903
|
l.thumbLabel === "droplet" ? (s(), u("div", Ki, [
|
|
4904
4904
|
p(e.$slots, "label", { value: e.rangeValueScaled }, () => [
|
|
4905
|
-
|
|
4905
|
+
C(k(~~e.rangeValueScaled), 1)
|
|
4906
4906
|
])
|
|
4907
4907
|
])) : p(e.$slots, "label", {
|
|
4908
4908
|
key: 1,
|
|
4909
4909
|
value: e.rangeValueScaled
|
|
4910
4910
|
}, () => [
|
|
4911
|
-
|
|
4911
|
+
C(k(~~e.rangeValueScaled), 1)
|
|
4912
4912
|
])
|
|
4913
4913
|
], 10, Ai)) : c("", !0)
|
|
4914
4914
|
], 4)
|
|
@@ -4916,18 +4916,18 @@ function Ui(e, t, l, a, n, i) {
|
|
|
4916
4916
|
l.stepLabels && l.step ? (s(), u("div", Di, [
|
|
4917
4917
|
w("div", {
|
|
4918
4918
|
class: "w-slider__step-label",
|
|
4919
|
-
onClick: t[6] || (t[6] = (
|
|
4919
|
+
onClick: t[6] || (t[6] = (n) => i.onStepLabelClick(0))
|
|
4920
4920
|
}, k(this.minVal), 1),
|
|
4921
|
-
(s(!0), u(
|
|
4921
|
+
(s(!0), u(_, null, T(~~i.numberOfSteps, (n) => (s(), u("div", {
|
|
4922
4922
|
class: "w-slider__step-label",
|
|
4923
|
-
key:
|
|
4924
|
-
onClick: (r) => i.onStepLabelClick(
|
|
4925
|
-
style: L(`left: ${
|
|
4926
|
-
}, k(i.percentToScaled(
|
|
4923
|
+
key: n,
|
|
4924
|
+
onClick: (r) => i.onStepLabelClick(n * (100 / i.numberOfSteps)),
|
|
4925
|
+
style: L(`left: ${n * (100 / i.numberOfSteps)}%`)
|
|
4926
|
+
}, k(i.percentToScaled(n * (100 / i.numberOfSteps))), 13, Fi))), 128)),
|
|
4927
4927
|
~~i.numberOfSteps !== i.numberOfSteps ? (s(), u("div", {
|
|
4928
4928
|
key: 0,
|
|
4929
4929
|
class: "w-slider__step-label",
|
|
4930
|
-
onClick: t[7] || (t[7] = (
|
|
4930
|
+
onClick: t[7] || (t[7] = (n) => i.onStepLabelClick(100)),
|
|
4931
4931
|
style: { left: "100%" }
|
|
4932
4932
|
}, k(this.maxVal), 1)) : c("", !0)
|
|
4933
4933
|
])) : c("", !0)
|
|
@@ -4950,7 +4950,7 @@ function Ui(e, t, l, a, n, i) {
|
|
|
4950
4950
|
}
|
|
4951
4951
|
const qi = {
|
|
4952
4952
|
name: "w-slider",
|
|
4953
|
-
mixins: [
|
|
4953
|
+
mixins: [z],
|
|
4954
4954
|
props: {
|
|
4955
4955
|
modelValue: { type: Number, default: 0 },
|
|
4956
4956
|
color: { type: String, default: "primary" },
|
|
@@ -5083,7 +5083,7 @@ const qi = {
|
|
|
5083
5083
|
}
|
|
5084
5084
|
}
|
|
5085
5085
|
}, Gi = /* @__PURE__ */ v(qi, [["render", Ui]]), Xi = { key: 0 };
|
|
5086
|
-
function Yi(e, t, l, a,
|
|
5086
|
+
function Yi(e, t, l, a, o, i) {
|
|
5087
5087
|
return l.modelValue || l.modelValue === void 0 ? (s(), u("div", {
|
|
5088
5088
|
key: 0,
|
|
5089
5089
|
class: f(["w-spinner", i.classes]),
|
|
@@ -5131,7 +5131,7 @@ const Ji = {
|
|
|
5131
5131
|
}
|
|
5132
5132
|
}
|
|
5133
5133
|
}, Qi = /* @__PURE__ */ v(Ji, [["render", Yi]]);
|
|
5134
|
-
function Zi(e, t, l, a,
|
|
5134
|
+
function Zi(e, t, l, a, o, i) {
|
|
5135
5135
|
return s(), u("div", {
|
|
5136
5136
|
class: f(["w-steps", i.classes])
|
|
5137
5137
|
}, null, 2);
|
|
@@ -5159,13 +5159,13 @@ const es = {
|
|
|
5159
5159
|
key: 1,
|
|
5160
5160
|
class: "w-switch__thumb"
|
|
5161
5161
|
}, os = ["for"];
|
|
5162
|
-
function ns(e, t, l, a,
|
|
5163
|
-
const
|
|
5164
|
-
return s(),
|
|
5162
|
+
function ns(e, t, l, a, o, i) {
|
|
5163
|
+
const n = $("w-progress");
|
|
5164
|
+
return s(), b(I(e.formRegister ? "w-form-element" : "div"), B({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: o.isOn, disabled: e.isDisabled, readonly: e.isReadonly }, {
|
|
5165
5165
|
valid: e.valid,
|
|
5166
5166
|
"onUpdate:valid": t[3] || (t[3] = (r) => e.valid = r),
|
|
5167
5167
|
onReset: t[4] || (t[4] = (r) => {
|
|
5168
|
-
e.$emit("update:modelValue",
|
|
5168
|
+
e.$emit("update:modelValue", o.isOn = null), e.$emit("input", null);
|
|
5169
5169
|
}),
|
|
5170
5170
|
class: i.classes
|
|
5171
5171
|
}), {
|
|
@@ -5175,7 +5175,7 @@ function ns(e, t, l, a, n, i) {
|
|
|
5175
5175
|
id: `w-switch--${e._.uid}`,
|
|
5176
5176
|
type: "checkbox",
|
|
5177
5177
|
name: e.inputName,
|
|
5178
|
-
checked:
|
|
5178
|
+
checked: o.isOn,
|
|
5179
5179
|
disabled: e.isDisabled || e.isReadonly || null,
|
|
5180
5180
|
readonly: e.isReadonly || null,
|
|
5181
5181
|
"aria-readonly": e.isReadonly ? "true" : "false",
|
|
@@ -5183,21 +5183,21 @@ function ns(e, t, l, a, n, i) {
|
|
|
5183
5183
|
tabindex: e.tabindex || null,
|
|
5184
5184
|
onChange: t[0] || (t[0] = (r) => i.onInput()),
|
|
5185
5185
|
onFocus: t[1] || (t[1] = (r) => e.$emit("focus", r)),
|
|
5186
|
-
"aria-checked":
|
|
5186
|
+
"aria-checked": o.isOn || "false",
|
|
5187
5187
|
role: "switch"
|
|
5188
5188
|
}, null, 40, ls),
|
|
5189
|
-
i.hasLabel && l.labelOnLeft ? (s(), u(
|
|
5189
|
+
i.hasLabel && l.labelOnLeft ? (s(), u(_, { key: 0 }, [
|
|
5190
5190
|
e.$slots.default || l.label ? (s(), u("label", {
|
|
5191
5191
|
key: 0,
|
|
5192
5192
|
class: f(["w-switch__label w-switch__label--left w-form-el-shakable", e.labelClasses]),
|
|
5193
5193
|
for: `w-switch--${e._.uid}`
|
|
5194
5194
|
}, [
|
|
5195
5195
|
p(e.$slots, "default", {}, () => [
|
|
5196
|
-
|
|
5196
|
+
C(k(l.label), 1)
|
|
5197
5197
|
])
|
|
5198
5198
|
], 10, is)) : c("", !0)
|
|
5199
5199
|
], 64)) : c("", !0),
|
|
5200
|
-
w("div",
|
|
5200
|
+
w("div", B({
|
|
5201
5201
|
class: "w-switch__input",
|
|
5202
5202
|
onClick: t[2] || (t[2] = (r) => {
|
|
5203
5203
|
e.$refs.input.focus(), e.$refs.input.click();
|
|
@@ -5207,21 +5207,21 @@ function ns(e, t, l, a, n, i) {
|
|
|
5207
5207
|
p(e.$slots, "track")
|
|
5208
5208
|
])) : c("", !0),
|
|
5209
5209
|
e.$slots.thumb || l.loading ? (s(), u("div", as, [
|
|
5210
|
-
l.loading ? (s(),
|
|
5210
|
+
l.loading ? (s(), b(n, B({
|
|
5211
5211
|
key: 0,
|
|
5212
5212
|
circle: "",
|
|
5213
5213
|
color: "inherit"
|
|
5214
5214
|
}, typeof l.loading == "number" && { "model-value": l.loading }), null, 16)) : p(e.$slots, "thumb", { key: 1 })
|
|
5215
5215
|
])) : c("", !0)
|
|
5216
5216
|
], 16),
|
|
5217
|
-
i.hasLabel && !l.labelOnLeft ? (s(), u(
|
|
5217
|
+
i.hasLabel && !l.labelOnLeft ? (s(), u(_, { key: 1 }, [
|
|
5218
5218
|
e.$slots.default || l.label ? (s(), u("label", {
|
|
5219
5219
|
key: 0,
|
|
5220
5220
|
class: f(["w-switch__label w-switch__label--right w-form-el-shakable", e.labelClasses]),
|
|
5221
5221
|
for: `w-switch--${e._.uid}`
|
|
5222
5222
|
}, [
|
|
5223
5223
|
p(e.$slots, "default", {}, () => [
|
|
5224
|
-
|
|
5224
|
+
C(k(l.label), 1)
|
|
5225
5225
|
])
|
|
5226
5226
|
], 10, os)) : c("", !0)
|
|
5227
5227
|
], 64)) : c("", !0)
|
|
@@ -5231,7 +5231,7 @@ function ns(e, t, l, a, n, i) {
|
|
|
5231
5231
|
}
|
|
5232
5232
|
const rs = {
|
|
5233
5233
|
name: "w-switch",
|
|
5234
|
-
mixins: [
|
|
5234
|
+
mixins: [z],
|
|
5235
5235
|
props: {
|
|
5236
5236
|
modelValue: { default: !1 },
|
|
5237
5237
|
label: { type: String, default: "" },
|
|
@@ -5295,7 +5295,7 @@ const rs = {
|
|
|
5295
5295
|
}
|
|
5296
5296
|
}
|
|
5297
5297
|
}, ds = /* @__PURE__ */ v(rs, [["render", ns]]), us = { class: "w-tabs__content" };
|
|
5298
|
-
function hs(e, t, l, a,
|
|
5298
|
+
function hs(e, t, l, a, o, i) {
|
|
5299
5299
|
return s(), u("div", us, [
|
|
5300
5300
|
p(e.$slots, "default", { item: l.item })
|
|
5301
5301
|
]);
|
|
@@ -5309,8 +5309,8 @@ const cs = {
|
|
|
5309
5309
|
key: 0,
|
|
5310
5310
|
class: "w-tabs__content-wrap"
|
|
5311
5311
|
}, ys = ["innerHTML"];
|
|
5312
|
-
function ws(e, t, l, a,
|
|
5313
|
-
const
|
|
5312
|
+
function ws(e, t, l, a, o, i) {
|
|
5313
|
+
const n = $("tab-content");
|
|
5314
5314
|
return s(), u("div", {
|
|
5315
5315
|
class: f(["w-tabs", i.tabsClasses])
|
|
5316
5316
|
}, [
|
|
@@ -5318,7 +5318,7 @@ function ws(e, t, l, a, n, i) {
|
|
|
5318
5318
|
class: f(["w-tabs__bar", i.tabsBarClasses]),
|
|
5319
5319
|
ref: "tabs-bar"
|
|
5320
5320
|
}, [
|
|
5321
|
-
(s(!0), u(
|
|
5321
|
+
(s(!0), u(_, null, T(i.tabsItems, (r, d) => (s(), u("div", {
|
|
5322
5322
|
class: f(["w-tabs__bar-item", i.barItemClasses(r)]),
|
|
5323
5323
|
key: d,
|
|
5324
5324
|
onClick: (h) => !r._disabled && i.openTab(r),
|
|
@@ -5354,13 +5354,13 @@ function ws(e, t, l, a, n, i) {
|
|
|
5354
5354
|
}, null, 6)) : c("", !0)
|
|
5355
5355
|
], 2),
|
|
5356
5356
|
i.tabsItems.length ? (s(), u("div", bs, [
|
|
5357
|
-
V(
|
|
5357
|
+
V(x, {
|
|
5358
5358
|
name: i.transitionName,
|
|
5359
5359
|
mode: i.transitionMode
|
|
5360
5360
|
}, {
|
|
5361
5361
|
default: m(() => [
|
|
5362
|
-
(s(),
|
|
5363
|
-
(s(),
|
|
5362
|
+
(s(), b($e, null, [
|
|
5363
|
+
(s(), b(n, {
|
|
5364
5364
|
key: i.activeTab._index,
|
|
5365
5365
|
item: i.activeTab,
|
|
5366
5366
|
class: f(l.contentClass)
|
|
@@ -5494,8 +5494,8 @@ const vs = {
|
|
|
5494
5494
|
this.activeTabEl = t && t.querySelector(".w-tabs__bar-item--active");
|
|
5495
5495
|
}
|
|
5496
5496
|
if (!this.fillBar && this.activeTabEl) {
|
|
5497
|
-
const { left: t, width: l } = this.activeTabEl.getBoundingClientRect(), a = this.activeTabEl.parentNode, { left:
|
|
5498
|
-
this.slider.left = `${t -
|
|
5497
|
+
const { left: t, width: l } = this.activeTabEl.getBoundingClientRect(), a = this.activeTabEl.parentNode, { left: o } = a.getBoundingClientRect(), { borderLeftWidth: i } = getComputedStyle(a);
|
|
5498
|
+
this.slider.left = `${t - o - parseInt(i) + a.scrollLeft}px`, this.slider.width = `${l}px`;
|
|
5499
5499
|
} else
|
|
5500
5500
|
this.slider.left = `${this.activeTab._index * 100 / this.tabsItems.length}%`, this.slider.width = `${100 / this.tabsItems.length}%`;
|
|
5501
5501
|
},
|
|
@@ -5539,10 +5539,10 @@ const vs = {
|
|
|
5539
5539
|
}, Is = ["colspan"], Rs = {
|
|
5540
5540
|
key: 0,
|
|
5541
5541
|
class: "w-table__progress-bar"
|
|
5542
|
-
}, Ls = ["colspan"],
|
|
5542
|
+
}, Ls = ["colspan"], Ts = { class: "w-table__loading-text" }, xs = {
|
|
5543
5543
|
key: 1,
|
|
5544
5544
|
class: "no-data"
|
|
5545
|
-
},
|
|
5545
|
+
}, Ps = ["colspan"], Os = ["onClick"], zs = ["data-label"], Es = ["data-label"], Ms = ["innerHTML"], Ns = {
|
|
5546
5546
|
key: 2,
|
|
5547
5547
|
class: "w-table__row w-table__row--expansion"
|
|
5548
5548
|
}, Ws = ["colspan"], As = { key: 0 }, Ks = {
|
|
@@ -5557,67 +5557,67 @@ const vs = {
|
|
|
5557
5557
|
}, Hs = ["colspan"], js = {
|
|
5558
5558
|
key: 2,
|
|
5559
5559
|
class: "w-table__row w-table__pagination-wrap"
|
|
5560
|
-
}, Us = ["colspan"], qs = { class: "w-table__pagination" }, Gs = { class: "pagination-
|
|
5561
|
-
function Ys(e, t, l, a,
|
|
5562
|
-
const
|
|
5560
|
+
}, Us = ["colspan"], qs = { class: "w-table__pagination" }, Gs = { class: "pagination-arrows" }, Xs = { class: "pagination-number pagination-number--results" };
|
|
5561
|
+
function Ys(e, t, l, a, o, i) {
|
|
5562
|
+
const n = $("w-icon"), r = $("w-progress"), d = $("w-transition-fade"), h = $("w-transition-expand"), y = $("w-select"), S = $("w-button");
|
|
5563
5563
|
return s(), u("div", {
|
|
5564
5564
|
class: f(["w-table-wrap", i.wrapClasses])
|
|
5565
5565
|
}, [
|
|
5566
5566
|
w("table", {
|
|
5567
5567
|
class: f(["w-table", i.classes]),
|
|
5568
|
-
onMousedown: t[4] || (t[4] = (...
|
|
5569
|
-
onMouseover: t[5] || (t[5] = (...
|
|
5570
|
-
onMouseout: t[6] || (t[6] = (...
|
|
5568
|
+
onMousedown: t[4] || (t[4] = (...g) => i.onMouseDown && i.onMouseDown(...g)),
|
|
5569
|
+
onMouseover: t[5] || (t[5] = (...g) => i.onMouseOver && i.onMouseOver(...g)),
|
|
5570
|
+
onMouseout: t[6] || (t[6] = (...g) => i.onMouseOut && i.onMouseOut(...g))
|
|
5571
5571
|
}, [
|
|
5572
5572
|
w("colgroup", _s, [
|
|
5573
|
-
(s(!0), u(
|
|
5573
|
+
(s(!0), u(_, null, T(l.headers, (g, R) => (s(), u("col", {
|
|
5574
5574
|
class: "w-table__col",
|
|
5575
5575
|
key: R,
|
|
5576
|
-
width:
|
|
5576
|
+
width: g.width || null
|
|
5577
5577
|
}, null, 8, Cs))), 128))
|
|
5578
5578
|
], 512),
|
|
5579
5579
|
l.noHeaders ? c("", !0) : (s(), u("thead", Bs, [
|
|
5580
5580
|
w("tr", null, [
|
|
5581
|
-
(s(!0), u(
|
|
5582
|
-
class: f(["w-table__header", i.headerClasses(
|
|
5581
|
+
(s(!0), u(_, null, T(l.headers, (g, R) => (s(), u("th", {
|
|
5582
|
+
class: f(["w-table__header", i.headerClasses(g)]),
|
|
5583
5583
|
key: R,
|
|
5584
|
-
onClick: (
|
|
5584
|
+
onClick: (P) => !e.colResizing.dragging && g.sortable !== !1 && i.sortTable(g)
|
|
5585
5585
|
}, [
|
|
5586
|
-
|
|
5586
|
+
g.sortable !== !1 && g.align === "right" ? (s(), b(n, {
|
|
5587
5587
|
key: 0,
|
|
5588
|
-
class: f(["w-table__header-sort", i.headerSortClasses(
|
|
5588
|
+
class: f(["w-table__header-sort", i.headerSortClasses(g)])
|
|
5589
5589
|
}, {
|
|
5590
5590
|
default: m(() => [
|
|
5591
|
-
|
|
5591
|
+
C("wi-arrow-down")
|
|
5592
5592
|
]),
|
|
5593
5593
|
_: 2
|
|
5594
5594
|
}, 1032, ["class"])) : c("", !0),
|
|
5595
|
-
|
|
5595
|
+
g.label ? (s(), u(_, { key: 1 }, [
|
|
5596
5596
|
e.$slots["header-label"] ? p(e.$slots, "header-label", {
|
|
5597
5597
|
key: 0,
|
|
5598
|
-
header:
|
|
5599
|
-
label:
|
|
5598
|
+
header: g,
|
|
5599
|
+
label: g.label,
|
|
5600
5600
|
index: R + 1
|
|
5601
5601
|
}, () => [
|
|
5602
|
-
|
|
5602
|
+
C(k(g.label || ""), 1)
|
|
5603
5603
|
]) : (s(), u("span", {
|
|
5604
5604
|
key: 1,
|
|
5605
|
-
innerHTML:
|
|
5605
|
+
innerHTML: g.label || ""
|
|
5606
5606
|
}, null, 8, $s))
|
|
5607
5607
|
], 64)) : c("", !0),
|
|
5608
|
-
|
|
5608
|
+
g.sortable !== !1 && g.align !== "right" ? (s(), b(n, {
|
|
5609
5609
|
key: 2,
|
|
5610
|
-
class: f(["w-table__header-sort", i.headerSortClasses(
|
|
5610
|
+
class: f(["w-table__header-sort", i.headerSortClasses(g)])
|
|
5611
5611
|
}, {
|
|
5612
5612
|
default: m(() => [
|
|
5613
|
-
|
|
5613
|
+
C("wi-arrow-down")
|
|
5614
5614
|
]),
|
|
5615
5615
|
_: 2
|
|
5616
5616
|
}, 1032, ["class"])) : c("", !0),
|
|
5617
5617
|
R < l.headers.length - 1 && l.resizableColumns ? (s(), u("span", {
|
|
5618
5618
|
key: 3,
|
|
5619
5619
|
class: f(["w-table__col-resizer", { "w-table__col-resizer--hover": e.colResizing.hover === R, "w-table__col-resizer--active": e.colResizing.columnIndex === R }]),
|
|
5620
|
-
onClick: t[0] || (t[0] =
|
|
5620
|
+
onClick: t[0] || (t[0] = E(() => {
|
|
5621
5621
|
}, ["stop"]))
|
|
5622
5622
|
}, null, 2)) : c("", !0)
|
|
5623
5623
|
], 10, Ss))), 128))
|
|
@@ -5641,88 +5641,88 @@ function Ys(e, t, l, a, n, i) {
|
|
|
5641
5641
|
colspan: l.headers.length
|
|
5642
5642
|
}, [
|
|
5643
5643
|
V(r, { tile: "" }),
|
|
5644
|
-
w("div",
|
|
5644
|
+
w("div", Ts, [
|
|
5645
5645
|
p(e.$slots, "loading", {}, () => [
|
|
5646
|
-
|
|
5646
|
+
C("Loading...")
|
|
5647
5647
|
])
|
|
5648
5648
|
])
|
|
5649
5649
|
], 8, Ls)
|
|
5650
|
-
])) : i.tableItems.length ? c("", !0) : (s(), u("tr",
|
|
5650
|
+
])) : i.tableItems.length ? c("", !0) : (s(), u("tr", xs, [
|
|
5651
5651
|
w("td", {
|
|
5652
5652
|
class: "w-table__cell text-center",
|
|
5653
5653
|
colspan: l.headers.length
|
|
5654
5654
|
}, [
|
|
5655
5655
|
p(e.$slots, "no-data", {}, () => [
|
|
5656
|
-
|
|
5656
|
+
C("No data to show.")
|
|
5657
5657
|
])
|
|
5658
|
-
], 8,
|
|
5658
|
+
], 8, Ps)
|
|
5659
5659
|
])),
|
|
5660
|
-
i.tableItems.length && l.loading !== !0 ? (s(!0), u(
|
|
5660
|
+
i.tableItems.length && l.loading !== !0 ? (s(!0), u(_, { key: 2 }, T(i.paginatedItems, (g, R) => (s(), u(_, { key: R }, [
|
|
5661
5661
|
e.$slots.item ? p(e.$slots, "item", {
|
|
5662
5662
|
key: 0,
|
|
5663
|
-
item:
|
|
5663
|
+
item: g,
|
|
5664
5664
|
index: R + 1,
|
|
5665
|
-
select: () => i.doSelectRow(
|
|
5666
|
-
classes: { "w-table__row": !0, "w-table__row--selected": i.selectedRowsByUid[
|
|
5665
|
+
select: () => i.doSelectRow(g, R),
|
|
5666
|
+
classes: { "w-table__row": !0, "w-table__row--selected": i.selectedRowsByUid[g._uid] !== void 0, "w-table__row--expanded": i.expandedRowsByUid[g._uid] !== void 0 }
|
|
5667
5667
|
}) : (s(), u("tr", {
|
|
5668
5668
|
key: 1,
|
|
5669
|
-
class: f(["w-table__row", { "w-table__row--selected": i.selectedRowsByUid[
|
|
5670
|
-
onClick: (
|
|
5669
|
+
class: f(["w-table__row", { "w-table__row--selected": i.selectedRowsByUid[g._uid] !== void 0, "w-table__row--expanded": i.expandedRowsByUid[g._uid] !== void 0 }]),
|
|
5670
|
+
onClick: (P) => i.doSelectRow(g, R)
|
|
5671
5671
|
}, [
|
|
5672
|
-
(s(!0), u(
|
|
5673
|
-
e.$slots[`item-cell.${
|
|
5674
|
-
class: f(["w-table__cell", { [`text-${
|
|
5675
|
-
key: `${
|
|
5676
|
-
"data-label":
|
|
5672
|
+
(s(!0), u(_, null, T(l.headers, (P, O) => (s(), u(_, null, [
|
|
5673
|
+
e.$slots[`item-cell.${P.key}`] || e.$slots[`item-cell.${O + 1}`] || e.$slots["item-cell"] ? (s(), u("td", {
|
|
5674
|
+
class: f(["w-table__cell", { [`text-${P.align || "left"}`]: !0, "w-table__cell--sticky": P.sticky }]),
|
|
5675
|
+
key: `${O}-a`,
|
|
5676
|
+
"data-label": P.label
|
|
5677
5677
|
}, [
|
|
5678
|
-
e.$slots[`item-cell.${
|
|
5678
|
+
e.$slots[`item-cell.${P.key}`] ? p(e.$slots, `item-cell.${P.key}`, {
|
|
5679
5679
|
key: 0,
|
|
5680
|
-
header:
|
|
5681
|
-
item:
|
|
5682
|
-
label:
|
|
5680
|
+
header: P,
|
|
5681
|
+
item: g,
|
|
5682
|
+
label: g[P.key] || "",
|
|
5683
5683
|
index: R + 1
|
|
5684
|
-
}) : e.$slots[`item-cell.${
|
|
5684
|
+
}) : e.$slots[`item-cell.${O + 1}`] ? p(e.$slots, `item-cell.${O + 1}`, {
|
|
5685
5685
|
key: 1,
|
|
5686
|
-
header:
|
|
5687
|
-
item:
|
|
5688
|
-
label:
|
|
5686
|
+
header: P,
|
|
5687
|
+
item: g,
|
|
5688
|
+
label: g[P.key] || "",
|
|
5689
5689
|
index: R + 1
|
|
5690
5690
|
}) : e.$slots["item-cell"] ? p(e.$slots, "item-cell", {
|
|
5691
5691
|
key: 2,
|
|
5692
|
-
header:
|
|
5693
|
-
item:
|
|
5694
|
-
label:
|
|
5692
|
+
header: P,
|
|
5693
|
+
item: g,
|
|
5694
|
+
label: g[P.key] || "",
|
|
5695
5695
|
index: R + 1
|
|
5696
5696
|
}) : c("", !0),
|
|
5697
|
-
|
|
5697
|
+
O < l.headers.length - 1 && l.resizableColumns ? (s(), u("span", {
|
|
5698
5698
|
key: 3,
|
|
5699
|
-
class: f(["w-table__col-resizer", { "w-table__col-resizer--hover": e.colResizing.hover ===
|
|
5699
|
+
class: f(["w-table__col-resizer", { "w-table__col-resizer--hover": e.colResizing.hover === O, "w-table__col-resizer--active": e.colResizing.columnIndex === O }])
|
|
5700
5700
|
}, null, 2)) : c("", !0)
|
|
5701
|
-
], 10,
|
|
5702
|
-
class: f(["w-table__cell", { [`text-${
|
|
5703
|
-
key: `${
|
|
5704
|
-
"data-label":
|
|
5701
|
+
], 10, zs)) : (s(), u("td", {
|
|
5702
|
+
class: f(["w-table__cell", { [`text-${P.align || "left"}`]: !0, "w-table__cell--sticky": P.sticky }]),
|
|
5703
|
+
key: `${O}-b`,
|
|
5704
|
+
"data-label": P.label
|
|
5705
5705
|
}, [
|
|
5706
5706
|
w("div", {
|
|
5707
|
-
innerHTML:
|
|
5707
|
+
innerHTML: g[P.key] || ""
|
|
5708
5708
|
}, null, 8, Ms),
|
|
5709
|
-
|
|
5709
|
+
O < l.headers.length - 1 && l.resizableColumns ? (s(), u("span", {
|
|
5710
5710
|
key: 0,
|
|
5711
|
-
class: f(["w-table__col-resizer", { "w-table__col-resizer--hover": e.colResizing.hover ===
|
|
5711
|
+
class: f(["w-table__col-resizer", { "w-table__col-resizer--hover": e.colResizing.hover === O, "w-table__col-resizer--active": e.colResizing.columnIndex === O }])
|
|
5712
5712
|
}, null, 2)) : c("", !0)
|
|
5713
|
-
], 10,
|
|
5713
|
+
], 10, Es))
|
|
5714
5714
|
], 64))), 256))
|
|
5715
|
-
], 10,
|
|
5716
|
-
i.expandedRowsByUid[
|
|
5715
|
+
], 10, Os)),
|
|
5716
|
+
i.expandedRowsByUid[g._uid] ? (s(), u("tr", Ns, [
|
|
5717
5717
|
w("td", {
|
|
5718
5718
|
class: "w-table__cell",
|
|
5719
5719
|
colspan: l.headers.length
|
|
5720
5720
|
}, [
|
|
5721
5721
|
V(h, { y: "" }, {
|
|
5722
5722
|
default: m(() => [
|
|
5723
|
-
i.expandedRowsByUid[
|
|
5723
|
+
i.expandedRowsByUid[g._uid] ? (s(), u("div", As, [
|
|
5724
5724
|
p(e.$slots, "row-expansion", {
|
|
5725
|
-
item:
|
|
5725
|
+
item: g,
|
|
5726
5726
|
index: R + 1
|
|
5727
5727
|
})
|
|
5728
5728
|
])) : c("", !0),
|
|
@@ -5755,32 +5755,54 @@ function Ys(e, t, l, a, n, i) {
|
|
|
5755
5755
|
colspan: l.headers.length
|
|
5756
5756
|
}, [
|
|
5757
5757
|
w("div", qs, [
|
|
5758
|
-
e.paginationConfig
|
|
5759
|
-
|
|
5760
|
-
|
|
5761
|
-
|
|
5762
|
-
|
|
5763
|
-
|
|
5764
|
-
|
|
5765
|
-
|
|
5766
|
-
|
|
5767
|
-
|
|
5768
|
-
|
|
5769
|
-
|
|
5770
|
-
|
|
5771
|
-
|
|
5772
|
-
|
|
5773
|
-
|
|
5774
|
-
|
|
5775
|
-
|
|
5776
|
-
|
|
5777
|
-
|
|
5778
|
-
|
|
5779
|
-
|
|
5780
|
-
|
|
5781
|
-
|
|
5782
|
-
|
|
5783
|
-
|
|
5758
|
+
C(k(e.paginationConfig), 1),
|
|
5759
|
+
p(e.$slots, "pagination", {
|
|
5760
|
+
range: `${e.paginationConfig.start}-${e.paginationConfig.end} of ${e.paginationConfig.total}`,
|
|
5761
|
+
total: e.paginationConfig.total
|
|
5762
|
+
}, () => [
|
|
5763
|
+
e.paginationConfig.itemsPerPageOptions ? (s(), b(y, {
|
|
5764
|
+
key: 0,
|
|
5765
|
+
class: "pagination-number pagination-number--items-per-page",
|
|
5766
|
+
modelValue: e.paginationConfig.itemsPerPage,
|
|
5767
|
+
"onUpdate:modelValue": t[1] || (t[1] = (g) => e.paginationConfig.itemsPerPage = g),
|
|
5768
|
+
onInput: i.updatePaginationConfig,
|
|
5769
|
+
items: e.paginationConfig.itemsPerPageOptions,
|
|
5770
|
+
"label-position": "left",
|
|
5771
|
+
label: "Items per page",
|
|
5772
|
+
"label-color": "inherit"
|
|
5773
|
+
}, null, 8, ["modelValue", "onInput", "items"])) : c("", !0),
|
|
5774
|
+
w("div", Gs, [
|
|
5775
|
+
V(S, {
|
|
5776
|
+
class: "pagination-arrow pagination-arrow--prev",
|
|
5777
|
+
onClick: t[2] || (t[2] = (g) => i.goToPage("-1")),
|
|
5778
|
+
disabled: e.paginationConfig.page <= 1,
|
|
5779
|
+
icon: "wi-chevron-left",
|
|
5780
|
+
text: "",
|
|
5781
|
+
lg: ""
|
|
5782
|
+
}, null, 8, ["disabled"]),
|
|
5783
|
+
(s(!0), u(_, null, T(e.paginationConfig.pagesCount, (g) => (s(), b(S, {
|
|
5784
|
+
class: "pagination-arrow pagination-arrow--prev",
|
|
5785
|
+
key: g,
|
|
5786
|
+
onClick: (R) => i.goToPage(g),
|
|
5787
|
+
round: "",
|
|
5788
|
+
text: "",
|
|
5789
|
+
lg: ""
|
|
5790
|
+
}, {
|
|
5791
|
+
default: m(() => [
|
|
5792
|
+
C(k(g), 1)
|
|
5793
|
+
]),
|
|
5794
|
+
_: 2
|
|
5795
|
+
}, 1032, ["onClick"]))), 128)),
|
|
5796
|
+
V(S, {
|
|
5797
|
+
class: "pagination-arrow pagination-arrow--next",
|
|
5798
|
+
onClick: t[3] || (t[3] = (g) => i.goToPage("+1")),
|
|
5799
|
+
disabled: e.paginationConfig.page >= e.paginationConfig.pagesCount,
|
|
5800
|
+
icon: "wi-chevron-right",
|
|
5801
|
+
text: "",
|
|
5802
|
+
lg: ""
|
|
5803
|
+
}, null, 8, ["disabled"])
|
|
5804
|
+
]),
|
|
5805
|
+
w("span", Xs, k(e.paginationConfig.start) + "-" + k(e.paginationConfig.end) + " of " + k(e.paginationConfig.total), 1)
|
|
5784
5806
|
])
|
|
5785
5807
|
])
|
|
5786
5808
|
], 8, Us)
|
|
@@ -5904,6 +5926,9 @@ const ce = 15, Js = {
|
|
|
5904
5926
|
},
|
|
5905
5927
|
expandedRowsByUid() {
|
|
5906
5928
|
return this.expandedRowsInternal.reduce((e, t) => (e[t] = !0) && e, {});
|
|
5929
|
+
},
|
|
5930
|
+
paginatedItems() {
|
|
5931
|
+
return this.sortedItems.slice(this.paginationConfig.start, this.paginationConfig.end);
|
|
5907
5932
|
}
|
|
5908
5933
|
},
|
|
5909
5934
|
methods: {
|
|
@@ -5930,26 +5955,26 @@ const ce = 15, Js = {
|
|
|
5930
5955
|
doSelectRow(e, t) {
|
|
5931
5956
|
const l = this.expandableRows === "" ? !0 : this.expandableRows, a = this.selectableRows === "" ? !0 : this.selectableRows;
|
|
5932
5957
|
if (l) {
|
|
5933
|
-
const
|
|
5934
|
-
|
|
5958
|
+
const o = this.expandedRowsByUid[e._uid] === void 0;
|
|
5959
|
+
o ? this.expandableRows.toString() === "1" ? this.expandedRowsInternal = [e._uid] : this.expandedRowsInternal.push(e._uid) : this.expandedRowsInternal = this.expandedRowsInternal.filter((i) => i !== e._uid), this.$emit(
|
|
5935
5960
|
"row-expand",
|
|
5936
5961
|
{
|
|
5937
5962
|
item: e,
|
|
5938
5963
|
index: t,
|
|
5939
|
-
expanded:
|
|
5964
|
+
expanded: o,
|
|
5940
5965
|
expandedRows: this.expandedRowsInternal.map((i) => this.filteredItems[i])
|
|
5941
5966
|
}
|
|
5942
5967
|
), this.$emit("update:expanded-rows", this.expandedRowsInternal);
|
|
5943
5968
|
} else if (a) {
|
|
5944
|
-
let
|
|
5969
|
+
let o = !1;
|
|
5945
5970
|
const i = this.selectedRowsByUid[e._uid] === void 0;
|
|
5946
|
-
i ? (this.selectableRows.toString() === "1" ? this.selectedRowsInternal = [e._uid] : this.selectedRowsInternal.push(e._uid),
|
|
5971
|
+
i ? (this.selectableRows.toString() === "1" ? this.selectedRowsInternal = [e._uid] : this.selectedRowsInternal.push(e._uid), o = !0) : (!this.forceSelection || this.selectedRowsInternal.length > 1) && (this.selectedRowsInternal = this.selectedRowsInternal.filter((n) => n !== e._uid), o = !0), o && (this.$emit(
|
|
5947
5972
|
"row-select",
|
|
5948
5973
|
{
|
|
5949
5974
|
item: e,
|
|
5950
5975
|
index: t,
|
|
5951
5976
|
selected: i,
|
|
5952
|
-
selectedRows: this.selectedRowsInternal.map((
|
|
5977
|
+
selectedRows: this.selectedRowsInternal.map((n) => this.filteredItems[n])
|
|
5953
5978
|
}
|
|
5954
5979
|
), this.$emit("update:selected-rows", this.selectedRowsInternal));
|
|
5955
5980
|
}
|
|
@@ -5965,14 +5990,14 @@ const ce = 15, Js = {
|
|
|
5965
5990
|
e.classList.contains("w-table__col-resizer") && (this.colResizing.hover = !1);
|
|
5966
5991
|
},
|
|
5967
5992
|
onResizerMouseMove(e) {
|
|
5968
|
-
const { startCursorX: t, columnEl: l, nextColumnEl: a, colWidth:
|
|
5993
|
+
const { startCursorX: t, columnEl: l, nextColumnEl: a, colWidth: o, nextColWidth: i } = this.colResizing;
|
|
5969
5994
|
this.colResizing.dragging = !0;
|
|
5970
|
-
const
|
|
5971
|
-
l.style.width =
|
|
5972
|
-
const y =
|
|
5995
|
+
const n = e.pageX - t, r = o + i, d = o + n, h = i - n;
|
|
5996
|
+
l.style.width = o + n + "px", a.style.width = i - n + "px";
|
|
5997
|
+
const y = n < 0 && l.offsetWidth > d || l.offsetWidth <= ce, S = n > 0 && a.offsetWidth > h;
|
|
5973
5998
|
if (y) {
|
|
5974
|
-
const
|
|
5975
|
-
l.style.width =
|
|
5999
|
+
const g = Math.max(l.offsetWidth, ce);
|
|
6000
|
+
l.style.width = g + "px", a.style.width = r - g + "px";
|
|
5976
6001
|
} else
|
|
5977
6002
|
S && (l.style.width = r - a.offsetWidth + "px", a.style.width = a.offsetWidth + "px");
|
|
5978
6003
|
},
|
|
@@ -5986,16 +6011,28 @@ const ce = 15, Js = {
|
|
|
5986
6011
|
}, 0);
|
|
5987
6012
|
},
|
|
5988
6013
|
updatePaginationConfig() {
|
|
5989
|
-
var
|
|
5990
|
-
const e = ((
|
|
6014
|
+
var i, n, r, d, h;
|
|
6015
|
+
const e = ((i = this.pagination) == null ? void 0 : i.itemsPerPage) || 20, t = ((n = this.pagination) == null ? void 0 : n.itemsPerPageOptions) || [20, 100, { label: "All", value: 0 }], l = ((r = this.pagination) == null ? void 0 : r.total) || this.items.length, a = e || l, o = ((d = this.pagination) == null ? void 0 : d.page) || 1;
|
|
5991
6016
|
this.paginationConfig = {
|
|
5992
6017
|
itemsPerPage: e,
|
|
5993
|
-
itemsPerPageOptions: ((
|
|
5994
|
-
|
|
5995
|
-
|
|
5996
|
-
|
|
5997
|
-
|
|
6018
|
+
itemsPerPageOptions: t.map((y) => {
|
|
6019
|
+
var S;
|
|
6020
|
+
return {
|
|
6021
|
+
label: ["string", "number"].includes(typeof y) ? y.toString() : y.label || y.value,
|
|
6022
|
+
value: ["string", "number"].includes(typeof y) ? ~~y : (S = y.value) != null ? S : y.label
|
|
6023
|
+
};
|
|
6024
|
+
}),
|
|
6025
|
+
page: o,
|
|
6026
|
+
start: ((h = this.pagination) == null ? void 0 : h.start) || 1,
|
|
6027
|
+
end: l >= a * o ? a * o : l % (a * o),
|
|
6028
|
+
total: l,
|
|
6029
|
+
pagesCount: Math.ceil(l / a)
|
|
5998
6030
|
};
|
|
6031
|
+
},
|
|
6032
|
+
goToPage(e) {
|
|
6033
|
+
["-1", "+1"].includes(e) ? this.paginationConfig.page += +e : this.paginationConfig.page = e;
|
|
6034
|
+
const { itemsPerPage: t } = this.paginationConfig;
|
|
6035
|
+
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;
|
|
5999
6036
|
}
|
|
6000
6037
|
},
|
|
6001
6038
|
created() {
|
|
@@ -6016,15 +6053,21 @@ const ce = 15, Js = {
|
|
|
6016
6053
|
},
|
|
6017
6054
|
selectedRows(e) {
|
|
6018
6055
|
this.selectedRowsInternal = Array.isArray(e) && e.length ? this.selectedRows : [];
|
|
6056
|
+
},
|
|
6057
|
+
pagination: {
|
|
6058
|
+
handler() {
|
|
6059
|
+
this.updatePaginationConfig();
|
|
6060
|
+
},
|
|
6061
|
+
deep: !0
|
|
6019
6062
|
}
|
|
6020
6063
|
}
|
|
6021
6064
|
}, Qs = /* @__PURE__ */ v(Js, [["render", Ys]]), Zs = ["role", "aria-pressed", "tabindex"];
|
|
6022
|
-
function ea(e, t, l, a,
|
|
6023
|
-
return s(), u("span",
|
|
6024
|
-
onClick: t[1] || (t[1] = (
|
|
6065
|
+
function ea(e, t, l, a, o, i) {
|
|
6066
|
+
return s(), u("span", B({ class: "w-tag" }, N(e.$attrs, !0), {
|
|
6067
|
+
onClick: t[1] || (t[1] = (n) => {
|
|
6025
6068
|
e.$emit("update:modelValue", !l.modelValue), e.$emit("input", !l.modelValue);
|
|
6026
6069
|
}),
|
|
6027
|
-
onKeypress: t[2] || (t[2] = M((
|
|
6070
|
+
onKeypress: t[2] || (t[2] = M((n) => {
|
|
6028
6071
|
e.$emit("update:modelValue", !l.modelValue), e.$emit("input", !l.modelValue);
|
|
6029
6072
|
}, ["enter"])),
|
|
6030
6073
|
class: i.classes,
|
|
@@ -6037,7 +6080,7 @@ function ea(e, t, l, a, n, i) {
|
|
|
6037
6080
|
l.closable && l.modelValue ? (s(), u("i", {
|
|
6038
6081
|
key: 0,
|
|
6039
6082
|
class: "w-icon w-tag__closable wi-cross",
|
|
6040
|
-
onClick: t[0] || (t[0] =
|
|
6083
|
+
onClick: t[0] || (t[0] = E((n) => {
|
|
6041
6084
|
e.$emit("update:modelValue", !1), e.$emit("input", !1);
|
|
6042
6085
|
}, ["stop"])),
|
|
6043
6086
|
role: "icon",
|
|
@@ -6095,33 +6138,33 @@ const ta = {
|
|
|
6095
6138
|
}
|
|
6096
6139
|
}
|
|
6097
6140
|
}, la = /* @__PURE__ */ v(ta, [["render", ea]]), ia = ["for"], sa = ["id", "name", "placeholder", "rows", "cols", "readonly", "aria-readonly", "disabled", "required", "tabindex"], aa = ["for"], oa = ["for"];
|
|
6098
|
-
function na(e, t, l, a,
|
|
6099
|
-
const
|
|
6100
|
-
return s(),
|
|
6141
|
+
function na(e, t, l, a, o, i) {
|
|
6142
|
+
const n = $("w-icon");
|
|
6143
|
+
return s(), b(I(e.formRegister ? "w-form-element" : "div"), B({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: o.inputValue, disabled: e.isDisabled, readonly: e.isReadonly, isFocused: o.isFocused }, {
|
|
6101
6144
|
valid: e.valid,
|
|
6102
6145
|
"onUpdate:valid": t[6] || (t[6] = (r) => e.valid = r),
|
|
6103
6146
|
wrap: i.hasLabel && l.labelPosition !== "inside",
|
|
6104
6147
|
onReset: t[7] || (t[7] = (r) => {
|
|
6105
|
-
e.$emit("update:modelValue",
|
|
6148
|
+
e.$emit("update:modelValue", o.inputValue = ""), e.$emit("input", "");
|
|
6106
6149
|
}),
|
|
6107
6150
|
class: i.classes
|
|
6108
6151
|
}), {
|
|
6109
6152
|
default: m(() => [
|
|
6110
|
-
l.labelPosition === "left" ? (s(), u(
|
|
6153
|
+
l.labelPosition === "left" ? (s(), u(_, { key: 0 }, [
|
|
6111
6154
|
e.$slots.default || l.label ? (s(), u("label", {
|
|
6112
6155
|
key: 0,
|
|
6113
6156
|
class: f(["w-textarea__label w-textarea__label--left w-form-el-shakable", e.labelClasses]),
|
|
6114
6157
|
for: `w-textarea--${e._.uid}`
|
|
6115
6158
|
}, [
|
|
6116
6159
|
p(e.$slots, "default", {}, () => [
|
|
6117
|
-
|
|
6160
|
+
C(k(l.label), 1)
|
|
6118
6161
|
])
|
|
6119
6162
|
], 10, ia)) : c("", !0)
|
|
6120
6163
|
], 64)) : c("", !0),
|
|
6121
6164
|
w("div", {
|
|
6122
6165
|
class: f(["w-textarea__textarea-wrap", i.inputWrapClasses])
|
|
6123
6166
|
}, [
|
|
6124
|
-
l.innerIconLeft ? (s(),
|
|
6167
|
+
l.innerIconLeft ? (s(), b(n, {
|
|
6125
6168
|
key: 0,
|
|
6126
6169
|
class: "w-textarea__icon w-textarea__icon--inner-left",
|
|
6127
6170
|
tag: "label",
|
|
@@ -6129,14 +6172,14 @@ function na(e, t, l, a, n, i) {
|
|
|
6129
6172
|
onClick: t[0] || (t[0] = (r) => e.$emit("click:inner-icon-left", r))
|
|
6130
6173
|
}, {
|
|
6131
6174
|
default: m(() => [
|
|
6132
|
-
|
|
6175
|
+
C(k(l.innerIconLeft), 1)
|
|
6133
6176
|
]),
|
|
6134
6177
|
_: 1
|
|
6135
6178
|
}, 8, ["for"])) : c("", !0),
|
|
6136
|
-
D(w("textarea",
|
|
6179
|
+
D(w("textarea", B({
|
|
6137
6180
|
class: "w-textarea__textarea",
|
|
6138
6181
|
ref: "textarea",
|
|
6139
|
-
"onUpdate:modelValue": t[1] || (t[1] = (r) =>
|
|
6182
|
+
"onUpdate:modelValue": t[1] || (t[1] = (r) => o.inputValue = r)
|
|
6140
6183
|
}, N(i.listeners, !0), {
|
|
6141
6184
|
onInput: t[2] || (t[2] = (...r) => i.onInput && i.onInput(...r)),
|
|
6142
6185
|
onFocus: t[3] || (t[3] = (...r) => i.onFocus && i.onFocus(...r)),
|
|
@@ -6152,20 +6195,20 @@ function na(e, t, l, a, n, i) {
|
|
|
6152
6195
|
required: e.required || null,
|
|
6153
6196
|
tabindex: e.tabindex || null
|
|
6154
6197
|
}), null, 16, sa), [
|
|
6155
|
-
[ge,
|
|
6198
|
+
[ge, o.inputValue]
|
|
6156
6199
|
]),
|
|
6157
|
-
l.labelPosition === "inside" && i.showLabelInside ? (s(), u(
|
|
6200
|
+
l.labelPosition === "inside" && i.showLabelInside ? (s(), u(_, { key: 1 }, [
|
|
6158
6201
|
e.$slots.default || l.label ? (s(), u("label", {
|
|
6159
6202
|
key: 0,
|
|
6160
6203
|
class: f(["w-textarea__label w-textarea__label--inside w-form-el-shakable", e.labelClasses]),
|
|
6161
6204
|
for: `w-textarea--${e._.uid}`
|
|
6162
6205
|
}, [
|
|
6163
6206
|
p(e.$slots, "default", {}, () => [
|
|
6164
|
-
|
|
6207
|
+
C(k(l.label), 1)
|
|
6165
6208
|
])
|
|
6166
6209
|
], 10, aa)) : c("", !0)
|
|
6167
6210
|
], 64)) : c("", !0),
|
|
6168
|
-
l.innerIconRight ? (s(),
|
|
6211
|
+
l.innerIconRight ? (s(), b(n, {
|
|
6169
6212
|
key: 2,
|
|
6170
6213
|
class: "w-textarea__icon w-textarea__icon--inner-right",
|
|
6171
6214
|
tag: "label",
|
|
@@ -6173,19 +6216,19 @@ function na(e, t, l, a, n, i) {
|
|
|
6173
6216
|
onClick: t[5] || (t[5] = (r) => e.$emit("click:inner-icon-right", r))
|
|
6174
6217
|
}, {
|
|
6175
6218
|
default: m(() => [
|
|
6176
|
-
|
|
6219
|
+
C(k(l.innerIconRight), 1)
|
|
6177
6220
|
]),
|
|
6178
6221
|
_: 1
|
|
6179
6222
|
}, 8, ["for"])) : c("", !0)
|
|
6180
6223
|
], 2),
|
|
6181
|
-
l.labelPosition === "right" ? (s(), u(
|
|
6224
|
+
l.labelPosition === "right" ? (s(), u(_, { key: 1 }, [
|
|
6182
6225
|
e.$slots.default || l.label ? (s(), u("label", {
|
|
6183
6226
|
key: 0,
|
|
6184
6227
|
class: f(["w-textarea__label w-textarea__label--right w-form-el-shakable", e.labelClasses]),
|
|
6185
6228
|
for: `w-textarea--${e._.uid}`
|
|
6186
6229
|
}, [
|
|
6187
6230
|
p(e.$slots, "default", {}, () => [
|
|
6188
|
-
|
|
6231
|
+
C(k(l.label), 1)
|
|
6189
6232
|
])
|
|
6190
6233
|
], 10, oa)) : c("", !0)
|
|
6191
6234
|
], 64)) : c("", !0)
|
|
@@ -6195,7 +6238,7 @@ function na(e, t, l, a, n, i) {
|
|
|
6195
6238
|
}
|
|
6196
6239
|
const ra = {
|
|
6197
6240
|
name: "w-textarea",
|
|
6198
|
-
mixins: [
|
|
6241
|
+
mixins: [z],
|
|
6199
6242
|
props: {
|
|
6200
6243
|
modelValue: { default: "" },
|
|
6201
6244
|
label: { type: String },
|
|
@@ -6310,38 +6353,38 @@ const ra = {
|
|
|
6310
6353
|
}
|
|
6311
6354
|
}
|
|
6312
6355
|
}, da = /* @__PURE__ */ v(ra, [["render", na]]), ua = ["innerHTML"], ha = ["innerHTML"];
|
|
6313
|
-
function ca(e, t, l, a,
|
|
6356
|
+
function ca(e, t, l, a, o, i) {
|
|
6314
6357
|
return s(), u("ul", {
|
|
6315
6358
|
class: f(["w-timeline", i.classes])
|
|
6316
6359
|
}, [
|
|
6317
|
-
(s(!0), u(
|
|
6360
|
+
(s(!0), u(_, null, T(l.items, (n, r) => (s(), u("li", {
|
|
6318
6361
|
class: "w-timeline-item",
|
|
6319
6362
|
key: r
|
|
6320
6363
|
}, [
|
|
6321
|
-
(s(),
|
|
6322
|
-
class: f(["w-timeline-item__bullet", { [
|
|
6364
|
+
(s(), b(I(n[l.itemIconKey] || l.icon ? "w-icon" : "div"), {
|
|
6365
|
+
class: f(["w-timeline-item__bullet", { [n[l.itemColorKey] || l.color]: n[l.itemColorKey] || l.color }])
|
|
6323
6366
|
}, {
|
|
6324
6367
|
default: m(() => [
|
|
6325
|
-
|
|
6368
|
+
C(k(n[l.itemIconKey] || l.icon), 1)
|
|
6326
6369
|
]),
|
|
6327
6370
|
_: 2
|
|
6328
6371
|
}, 1032, ["class"])),
|
|
6329
6372
|
e.$slots[`item.${r + 1}`] ? p(e.$slots, `item.${r + 1}`, {
|
|
6330
6373
|
key: 1,
|
|
6331
|
-
item:
|
|
6374
|
+
item: n,
|
|
6332
6375
|
index: r + 1
|
|
6333
6376
|
}) : p(e.$slots, "item", {
|
|
6334
6377
|
key: 0,
|
|
6335
|
-
item:
|
|
6378
|
+
item: n,
|
|
6336
6379
|
index: r + 1
|
|
6337
6380
|
}, () => [
|
|
6338
6381
|
w("div", {
|
|
6339
|
-
class: f(["w-timeline-item__title", { [
|
|
6340
|
-
innerHTML:
|
|
6382
|
+
class: f(["w-timeline-item__title", { [n[l.itemColorKey] || l.color]: n[l.itemColorKey] || l.color }]),
|
|
6383
|
+
innerHTML: n[l.itemTitleKey]
|
|
6341
6384
|
}, null, 10, ua),
|
|
6342
6385
|
w("div", {
|
|
6343
6386
|
class: "w-timeline-item__content",
|
|
6344
|
-
innerHTML:
|
|
6387
|
+
innerHTML: n[l.itemContentKey]
|
|
6345
6388
|
}, null, 8, ha)
|
|
6346
6389
|
])
|
|
6347
6390
|
]))), 128))
|
|
@@ -6370,7 +6413,7 @@ const pa = {
|
|
|
6370
6413
|
}
|
|
6371
6414
|
}
|
|
6372
6415
|
}, fa = /* @__PURE__ */ v(pa, [["render", ca]]);
|
|
6373
|
-
function ma(e, t, l, a,
|
|
6416
|
+
function ma(e, t, l, a, o, i) {
|
|
6374
6417
|
return s(), u("div", {
|
|
6375
6418
|
class: f(["w-toolbar", i.classes]),
|
|
6376
6419
|
style: L(i.styles)
|
|
@@ -6428,10 +6471,10 @@ const ga = {
|
|
|
6428
6471
|
}
|
|
6429
6472
|
}
|
|
6430
6473
|
}, ba = /* @__PURE__ */ v(ga, [["render", ma]]);
|
|
6431
|
-
function ya(e, t, l, a,
|
|
6432
|
-
return s(), u(
|
|
6474
|
+
function ya(e, t, l, a, o, i) {
|
|
6475
|
+
return s(), u(_, null, [
|
|
6433
6476
|
p(e.$slots, "activator", { on: i.activatorEventHandlers }),
|
|
6434
|
-
V(
|
|
6477
|
+
V(x, {
|
|
6435
6478
|
name: i.transitionName,
|
|
6436
6479
|
appear: ""
|
|
6437
6480
|
}, {
|
|
@@ -6536,8 +6579,8 @@ const wa = {
|
|
|
6536
6579
|
}
|
|
6537
6580
|
}
|
|
6538
6581
|
}, va = /* @__PURE__ */ v(wa, [["render", ya]]);
|
|
6539
|
-
function ka(e, t, l, a,
|
|
6540
|
-
return s(),
|
|
6582
|
+
function ka(e, t, l, a, o, i) {
|
|
6583
|
+
return s(), b(x, B({ name: "bounce" }, e.$props), {
|
|
6541
6584
|
default: m(() => [
|
|
6542
6585
|
p(e.$slots, "default")
|
|
6543
6586
|
]),
|
|
@@ -6551,8 +6594,8 @@ const _a = {
|
|
|
6551
6594
|
duration: { type: [Number, String] }
|
|
6552
6595
|
}
|
|
6553
6596
|
}, Ca = /* @__PURE__ */ v(_a, [["render", ka]]);
|
|
6554
|
-
function Ba(e, t, l, a,
|
|
6555
|
-
return s(),
|
|
6597
|
+
function Ba(e, t, l, a, o, i) {
|
|
6598
|
+
return s(), b(x, {
|
|
6556
6599
|
name: "expand",
|
|
6557
6600
|
mode: "out-in",
|
|
6558
6601
|
css: !1,
|
|
@@ -6663,8 +6706,8 @@ const Sa = {
|
|
|
6663
6706
|
}
|
|
6664
6707
|
}
|
|
6665
6708
|
}, $a = /* @__PURE__ */ v(Sa, [["render", Ba]]);
|
|
6666
|
-
function Va(e, t, l, a,
|
|
6667
|
-
return s(),
|
|
6709
|
+
function Va(e, t, l, a, o, i) {
|
|
6710
|
+
return s(), b(x, B({ name: "fade" }, e.$props), {
|
|
6668
6711
|
default: m(() => [
|
|
6669
6712
|
p(e.$slots, "default")
|
|
6670
6713
|
]),
|
|
@@ -6678,38 +6721,38 @@ const Ia = {
|
|
|
6678
6721
|
duration: { type: [Number, String] }
|
|
6679
6722
|
}
|
|
6680
6723
|
}, Ra = /* @__PURE__ */ v(Ia, [["render", Va]]);
|
|
6681
|
-
function La(e, t, l, a,
|
|
6682
|
-
return s(),
|
|
6724
|
+
function La(e, t, l, a, o, i) {
|
|
6725
|
+
return s(), b(x, B({ name: "scale" }, e.$props), {
|
|
6683
6726
|
default: m(() => [
|
|
6684
6727
|
p(e.$slots, "default")
|
|
6685
6728
|
]),
|
|
6686
6729
|
_: 3
|
|
6687
6730
|
}, 16);
|
|
6688
6731
|
}
|
|
6689
|
-
const
|
|
6732
|
+
const Ta = {
|
|
6690
6733
|
name: "w-transition-scale",
|
|
6691
6734
|
props: {
|
|
6692
6735
|
appear: { type: Boolean },
|
|
6693
6736
|
duration: { type: [Number, String] }
|
|
6694
6737
|
}
|
|
6695
|
-
},
|
|
6696
|
-
function
|
|
6697
|
-
return s(),
|
|
6738
|
+
}, xa = /* @__PURE__ */ v(Ta, [["render", La]]);
|
|
6739
|
+
function Pa(e, t, l, a, o, i) {
|
|
6740
|
+
return s(), b(x, B({ name: "scale-fade" }, e.$props), {
|
|
6698
6741
|
default: m(() => [
|
|
6699
6742
|
p(e.$slots, "default")
|
|
6700
6743
|
]),
|
|
6701
6744
|
_: 3
|
|
6702
6745
|
}, 16);
|
|
6703
6746
|
}
|
|
6704
|
-
const
|
|
6747
|
+
const Oa = {
|
|
6705
6748
|
name: "w-transition-scale-fade",
|
|
6706
6749
|
props: {
|
|
6707
6750
|
appear: { type: Boolean },
|
|
6708
6751
|
duration: { type: [Number, String] }
|
|
6709
6752
|
}
|
|
6710
|
-
},
|
|
6711
|
-
function
|
|
6712
|
-
return s(),
|
|
6753
|
+
}, za = /* @__PURE__ */ v(Oa, [["render", Pa]]);
|
|
6754
|
+
function Ea(e, t, l, a, o, i) {
|
|
6755
|
+
return s(), b(x, B({ name: i.transitionName }, e.$props), {
|
|
6713
6756
|
default: m(() => [
|
|
6714
6757
|
p(e.$slots, "default")
|
|
6715
6758
|
]),
|
|
@@ -6734,9 +6777,9 @@ const Ma = {
|
|
|
6734
6777
|
return `slide-${this.direction}`;
|
|
6735
6778
|
}
|
|
6736
6779
|
}
|
|
6737
|
-
}, Na = /* @__PURE__ */ v(Ma, [["render",
|
|
6738
|
-
function Wa(e, t, l, a,
|
|
6739
|
-
return s(),
|
|
6780
|
+
}, Na = /* @__PURE__ */ v(Ma, [["render", Ea]]);
|
|
6781
|
+
function Wa(e, t, l, a, o, i) {
|
|
6782
|
+
return s(), b(x, B({ name: i.transitionName }, e.$props), {
|
|
6740
6783
|
default: m(() => [
|
|
6741
6784
|
p(e.$slots, "default")
|
|
6742
6785
|
]),
|
|
@@ -6762,8 +6805,8 @@ const Aa = {
|
|
|
6762
6805
|
}
|
|
6763
6806
|
}
|
|
6764
6807
|
}, Ka = /* @__PURE__ */ v(Aa, [["render", Wa]]);
|
|
6765
|
-
function Da(e, t, l, a,
|
|
6766
|
-
return s(),
|
|
6808
|
+
function Da(e, t, l, a, o, i) {
|
|
6809
|
+
return s(), b(x, B({ name: "twist" }, e.$props), {
|
|
6767
6810
|
default: m(() => [
|
|
6768
6811
|
p(e.$slots, "default")
|
|
6769
6812
|
]),
|
|
@@ -6780,25 +6823,25 @@ const Fa = {
|
|
|
6780
6823
|
key: 1,
|
|
6781
6824
|
class: "ml1"
|
|
6782
6825
|
};
|
|
6783
|
-
function qa(e, t, l, a,
|
|
6784
|
-
const
|
|
6826
|
+
function qa(e, t, l, a, o, i) {
|
|
6827
|
+
const n = $("w-button"), r = $("w-icon"), d = $("w-tree", !0);
|
|
6785
6828
|
return s(), u("ul", {
|
|
6786
6829
|
class: f(["w-tree", i.classes])
|
|
6787
6830
|
}, [
|
|
6788
|
-
(s(!0), u(
|
|
6831
|
+
(s(!0), u(_, null, T(e.currentDepthItems, (h, y) => (s(), u("li", {
|
|
6789
6832
|
class: f(["w-tree__item", i.itemClasses(h)]),
|
|
6790
6833
|
key: y
|
|
6791
6834
|
}, [
|
|
6792
|
-
(s(),
|
|
6835
|
+
(s(), b(I(!l.disabled && !h.disabled && h.route ? !e.$router || i.hasExternalLink(h) ? "a" : "router-link" : "div"), B({ class: "w-tree__item-label" }, h.route && { [!e.$router || i.hasExternalLink(h) ? "href" : "to"]: h.route }, {
|
|
6793
6836
|
onClick: (S) => !l.disabled && !h.disabled && i.onLabelClick(h, S),
|
|
6794
6837
|
onKeydown: (S) => !l.disabled && !h.disabled && i.onLabelKeydown(h, S),
|
|
6795
6838
|
tabindex: !l.disabled && !h.disabled && (h.children || h.branch || l.selectable) && !(l.unexpandableEmpty && !h.children) ? 0 : null
|
|
6796
6839
|
}), {
|
|
6797
6840
|
default: m(() => [
|
|
6798
|
-
(h.children || h.branch) && (l.expandOpenIcon && h.open || l.expandIcon) && !(l.unexpandableEmpty && !h.children) ? (s(),
|
|
6841
|
+
(h.children || h.branch) && (l.expandOpenIcon && h.open || l.expandIcon) && !(l.unexpandableEmpty && !h.children) ? (s(), b(n, {
|
|
6799
6842
|
key: 0,
|
|
6800
6843
|
class: "w-tree__item-expand",
|
|
6801
|
-
onClick:
|
|
6844
|
+
onClick: E((S) => !l.disabled && !h.disabled && i.onLabelClick(h, S), ["stop"]),
|
|
6802
6845
|
color: "inherit",
|
|
6803
6846
|
icon: h.open && l.expandOpenIcon || l.expandIcon,
|
|
6804
6847
|
"icon-props": { rotate90a: !h.open },
|
|
@@ -6814,13 +6857,13 @@ function qa(e, t, l, a, n, i) {
|
|
|
6814
6857
|
}, () => {
|
|
6815
6858
|
var S;
|
|
6816
6859
|
return [
|
|
6817
|
-
i.itemIcon(h) ? (s(),
|
|
6860
|
+
i.itemIcon(h) ? (s(), b(r, {
|
|
6818
6861
|
key: 0,
|
|
6819
6862
|
class: "w-tree__item-icon",
|
|
6820
6863
|
color: h.originalItem[l.itemIconColorKey] || l.iconColor
|
|
6821
6864
|
}, {
|
|
6822
6865
|
default: m(() => [
|
|
6823
|
-
|
|
6866
|
+
C(k(i.itemIcon(h)), 1)
|
|
6824
6867
|
]),
|
|
6825
6868
|
_: 2
|
|
6826
6869
|
}, 1032, ["color"])) : c("", !0),
|
|
@@ -6833,13 +6876,13 @@ function qa(e, t, l, a, n, i) {
|
|
|
6833
6876
|
]),
|
|
6834
6877
|
_: 2
|
|
6835
6878
|
}, 1040, ["onClick", "onKeydown", "tabindex"])),
|
|
6836
|
-
(s(),
|
|
6879
|
+
(s(), b(I(l.noTransition ? "div" : "w-transition-expand"), {
|
|
6837
6880
|
y: !l.noTransition || null,
|
|
6838
6881
|
onAfterEnter: (S) => e.$emit("open", { item: h.originalItem, open: h.open, depth: l.depth }),
|
|
6839
6882
|
onAfterLeave: (S) => e.$emit("close", { item: h.originalItem, open: h.open, depth: l.depth })
|
|
6840
6883
|
}, {
|
|
6841
6884
|
default: m(() => [
|
|
6842
|
-
h.children && h.open ? (s(),
|
|
6885
|
+
h.children && h.open ? (s(), b(d, B({ key: 0 }, e.$props, {
|
|
6843
6886
|
depth: l.depth + 1,
|
|
6844
6887
|
data: h.originalItem.children,
|
|
6845
6888
|
onBeforeOpen: t[0] || (t[0] = (S) => e.$emit("before-open", S)),
|
|
@@ -6850,10 +6893,10 @@ function qa(e, t, l, a, n, i) {
|
|
|
6850
6893
|
onSelect: t[5] || (t[5] = (S) => e.$emit("select", S)),
|
|
6851
6894
|
"onUpdate:modelValue": t[6] || (t[6] = (S) => e.$emit("update:model-value", S))
|
|
6852
6895
|
}), {
|
|
6853
|
-
item: m(({ item: S, depth:
|
|
6896
|
+
item: m(({ item: S, depth: g, open: R }) => [
|
|
6854
6897
|
p(e.$slots, "item", {
|
|
6855
6898
|
item: S,
|
|
6856
|
-
depth:
|
|
6899
|
+
depth: g,
|
|
6857
6900
|
open: R
|
|
6858
6901
|
})
|
|
6859
6902
|
]),
|
|
@@ -6913,7 +6956,7 @@ const Ga = {
|
|
|
6913
6956
|
if (this.currentDepthItems = [], !Array.isArray(e) && typeof e != "object")
|
|
6914
6957
|
return J(`[w-tree] the tree items must be of type array or object, ${typeof e} received.`);
|
|
6915
6958
|
Array.isArray(e) || (e = [e]), e.forEach((l, a) => {
|
|
6916
|
-
var
|
|
6959
|
+
var o;
|
|
6917
6960
|
this.currentDepthItems.push({
|
|
6918
6961
|
originalItem: l,
|
|
6919
6962
|
_uid: this.depth.toString() + (a + 1),
|
|
@@ -6923,7 +6966,7 @@ const Ga = {
|
|
|
6923
6966
|
route: l[this.itemRouteKey],
|
|
6924
6967
|
disabled: l[this.itemDisabledKey],
|
|
6925
6968
|
depth: this.depth,
|
|
6926
|
-
open: !!(((
|
|
6969
|
+
open: !!(((o = t[a]) == null ? void 0 : o.open) || this.expandAll || l[this.itemOpenKey])
|
|
6927
6970
|
});
|
|
6928
6971
|
});
|
|
6929
6972
|
},
|
|
@@ -6941,8 +6984,8 @@ const Ga = {
|
|
|
6941
6984
|
},
|
|
6942
6985
|
onLabelKeydown(e, t) {
|
|
6943
6986
|
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))) {
|
|
6944
|
-
const a = this.$el.closest(".w-tree--depth0").querySelectorAll('.w-tree__item-label[tabindex="0"]'),
|
|
6945
|
-
[...a].some((
|
|
6987
|
+
const a = this.$el.closest(".w-tree--depth0").querySelectorAll('.w-tree__item-label[tabindex="0"]'), o = t.target.closest(".w-tree__item-label"), i = t.which === 38 ? -1 : 1;
|
|
6988
|
+
[...a].some((n, r) => n.isSameNode(o) ? (a[r + i] && a[r + i].focus(), !0) : !1);
|
|
6946
6989
|
}
|
|
6947
6990
|
this.selectable && this.emitItemSelection(e, t);
|
|
6948
6991
|
},
|
|
@@ -6995,8 +7038,8 @@ const Ga = {
|
|
|
6995
7038
|
WBreadcrumbs: dt,
|
|
6996
7039
|
WButton: yt,
|
|
6997
7040
|
WCard: _t,
|
|
6998
|
-
WCheckbox:
|
|
6999
|
-
WCheckboxes:
|
|
7041
|
+
WCheckbox: xt,
|
|
7042
|
+
WCheckboxes: Et,
|
|
7000
7043
|
WConfirm: At,
|
|
7001
7044
|
WDatePicker: Ft,
|
|
7002
7045
|
WDialog: Ut,
|
|
@@ -7008,8 +7051,8 @@ const Ga = {
|
|
|
7008
7051
|
WGrid: fl,
|
|
7009
7052
|
WIcon: bl,
|
|
7010
7053
|
WImage: kl,
|
|
7011
|
-
WInput:
|
|
7012
|
-
WList:
|
|
7054
|
+
WInput: Pl,
|
|
7055
|
+
WList: El,
|
|
7013
7056
|
WMenu: Wl,
|
|
7014
7057
|
WNotification: Dl,
|
|
7015
7058
|
WOverlay: jl,
|
|
@@ -7019,7 +7062,7 @@ const Ga = {
|
|
|
7019
7062
|
WRadios: mi,
|
|
7020
7063
|
WRating: vi,
|
|
7021
7064
|
WScrollbar: Bi,
|
|
7022
|
-
WSelect:
|
|
7065
|
+
WSelect: Oi,
|
|
7023
7066
|
WSlider: Gi,
|
|
7024
7067
|
WSpinner: Qi,
|
|
7025
7068
|
WSteps: ts,
|
|
@@ -7034,8 +7077,8 @@ const Ga = {
|
|
|
7034
7077
|
WTransitionBounce: Ca,
|
|
7035
7078
|
WTransitionExpand: $a,
|
|
7036
7079
|
WTransitionFade: Ra,
|
|
7037
|
-
WTransitionScale:
|
|
7038
|
-
WTransitionScaleFade:
|
|
7080
|
+
WTransitionScale: xa,
|
|
7081
|
+
WTransitionScaleFade: za,
|
|
7039
7082
|
WTransitionSlide: Na,
|
|
7040
7083
|
WTransitionSlideFade: Ka,
|
|
7041
7084
|
WTransitionTwist: Ha,
|