wave-ui 3.0.5 → 3.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/wave-ui.cjs.js +1 -1
- package/dist/wave-ui.css +1 -1
- package/dist/wave-ui.es.js +653 -611
- package/dist/wave-ui.umd.js +1 -1
- package/package.json +10 -9
- package/src/wave-ui/components/w-input.vue +4 -1
- package/src/wave-ui/components/w-select.vue +27 -16
- package/src/wave-ui/components/w-table.vue +75 -32
- package/src/wave-ui/components/w-textarea.vue +1 -0
- package/src/wave-ui/scss/_variables.scss +1 -1
- package/src/wave-ui/utils/dynamic-css.js +4 -2
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 =
|
|
647
|
-
const l = document.head.querySelectorAll('style,link[rel="stylesheet"]')
|
|
648
|
-
l ? l.
|
|
646
|
+
t.id = "wave-ui-colors", t.innerHTML = Oe(e);
|
|
647
|
+
const l = document.head.querySelectorAll('style,link[rel="stylesheet"]');
|
|
648
|
+
l.length ? l[l.length - 1].after(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 = ["
|
|
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),
|
|
@@ -4562,48 +4562,45 @@ function Ti(e, t, l, a, n, i) {
|
|
|
4562
4562
|
item: l.multiple ? e.inputValue : e.inputValue[0]
|
|
4563
4563
|
})
|
|
4564
4564
|
])) : c("", !0),
|
|
4565
|
-
w("
|
|
4566
|
-
class: "w-select__selection",
|
|
4565
|
+
w("div", {
|
|
4566
|
+
class: f(["w-select__selection", { "w-select__selection--placeholder": !e.$slots.selection && !i.selectionString && l.placeholder }]),
|
|
4567
4567
|
ref: "selection-input",
|
|
4568
|
-
|
|
4569
|
-
value: e.$slots.selection ? "" : i.selectionString,
|
|
4568
|
+
contenteditable: e.isDisabled || e.isReadonly ? "false" : "true",
|
|
4570
4569
|
onFocus: t[1] || (t[1] = (y) => !e.isDisabled && !e.isReadonly && i.onFocus(y)),
|
|
4571
4570
|
onBlur: t[2] || (t[2] = (...y) => i.onBlur && i.onBlur(...y)),
|
|
4572
4571
|
onKeydown: t[3] || (t[3] = (y) => !e.isDisabled && !e.isReadonly && i.onKeydown(y)),
|
|
4573
4572
|
id: `w-select--${e._.uid}`,
|
|
4574
|
-
placeholder: !e.$slots.selection && l.placeholder || null,
|
|
4575
4573
|
disabled: e.isDisabled || null,
|
|
4576
4574
|
readonly: "",
|
|
4577
4575
|
"aria-readonly": "true",
|
|
4578
|
-
required: e.required || null,
|
|
4579
4576
|
tabindex: e.tabindex || null,
|
|
4580
|
-
|
|
4581
|
-
}, null,
|
|
4582
|
-
(s(!0), u(
|
|
4577
|
+
innerHTML: e.$slots.selection ? "" : i.selectionString || l.placeholder
|
|
4578
|
+
}, null, 42, Ii),
|
|
4579
|
+
(s(!0), u(_, null, T(e.inputValue.length ? e.inputValue : [{}], (y, S) => (s(), u("input", {
|
|
4583
4580
|
key: S,
|
|
4584
4581
|
type: "hidden",
|
|
4585
4582
|
value: y.value === void 0 ? "" : y.value.toString(),
|
|
4586
4583
|
name: e.inputName + (l.multiple ? "[]" : "")
|
|
4587
4584
|
}, null, 8, Ri))), 128)),
|
|
4588
|
-
l.labelPosition === "inside" && i.showLabelInside ? (s(), u(
|
|
4585
|
+
l.labelPosition === "inside" && i.showLabelInside ? (s(), u(_, { key: 2 }, [
|
|
4589
4586
|
e.$slots.default || l.label ? (s(), u("label", {
|
|
4590
4587
|
key: 0,
|
|
4591
4588
|
class: f(["w-select__label w-select__label--inside w-form-el-shakable", e.labelClasses]),
|
|
4592
4589
|
for: `w-select--${e._.uid}`
|
|
4593
4590
|
}, [
|
|
4594
4591
|
p(e.$slots, "default", {}, () => [
|
|
4595
|
-
|
|
4592
|
+
C(k(l.label), 1)
|
|
4596
4593
|
])
|
|
4597
4594
|
], 10, Li)) : c("", !0)
|
|
4598
4595
|
], 64)) : c("", !0),
|
|
4599
|
-
l.innerIconRight ? (s(),
|
|
4596
|
+
l.innerIconRight ? (s(), b(n, {
|
|
4600
4597
|
key: 3,
|
|
4601
4598
|
class: "w-select__icon w-select__icon--inner-right",
|
|
4602
4599
|
tag: "label",
|
|
4603
4600
|
onClick: t[4] || (t[4] = (y) => e.$emit("click:inner-icon-right", y))
|
|
4604
4601
|
}, {
|
|
4605
4602
|
default: m(() => [
|
|
4606
|
-
|
|
4603
|
+
C(k(l.innerIconRight), 1)
|
|
4607
4604
|
]),
|
|
4608
4605
|
_: 1
|
|
4609
4606
|
})) : c("", !0)
|
|
@@ -4629,23 +4626,23 @@ function Ti(e, t, l, a, n, i) {
|
|
|
4629
4626
|
role: "listbox",
|
|
4630
4627
|
tabindex: "-1"
|
|
4631
4628
|
}, Z({ _: 2 }, [
|
|
4632
|
-
|
|
4629
|
+
T(l.items.length, (h) => ({
|
|
4633
4630
|
name: `item.${h}`,
|
|
4634
|
-
fn: m(({ item: y, selected: S, index:
|
|
4635
|
-
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}`, {
|
|
4636
4633
|
key: 0,
|
|
4637
4634
|
item: y,
|
|
4638
4635
|
selected: S,
|
|
4639
|
-
index:
|
|
4636
|
+
index: g
|
|
4640
4637
|
}, () => [
|
|
4641
|
-
|
|
4638
|
+
C(k(y[l.itemLabelKey]), 1)
|
|
4642
4639
|
]) : p(e.$slots, "item", {
|
|
4643
4640
|
key: 1,
|
|
4644
4641
|
item: y,
|
|
4645
4642
|
selected: S,
|
|
4646
|
-
index:
|
|
4643
|
+
index: g
|
|
4647
4644
|
}, () => [
|
|
4648
|
-
|
|
4645
|
+
C(k(y[l.itemLabelKey]), 1)
|
|
4649
4646
|
])
|
|
4650
4647
|
])
|
|
4651
4648
|
}))
|
|
@@ -4653,24 +4650,24 @@ function Ti(e, t, l, a, n, i) {
|
|
|
4653
4650
|
]),
|
|
4654
4651
|
_: 3
|
|
4655
4652
|
}, 16, ["modelValue", "menu-class", "append-to"]),
|
|
4656
|
-
l.labelPosition === "right" ? (s(), u(
|
|
4653
|
+
l.labelPosition === "right" ? (s(), u(_, { key: 1 }, [
|
|
4657
4654
|
e.$slots.default || l.label ? (s(), u("label", {
|
|
4658
4655
|
key: 0,
|
|
4659
4656
|
class: f(["w-select__label w-select__label--right w-form-el-shakable", e.labelClasses]),
|
|
4660
4657
|
for: `w-select--${e._.uid}`
|
|
4661
4658
|
}, [
|
|
4662
4659
|
p(e.$slots, "default", {}, () => [
|
|
4663
|
-
|
|
4660
|
+
C(k(l.label), 1)
|
|
4664
4661
|
])
|
|
4665
|
-
], 10,
|
|
4662
|
+
], 10, Ti)) : c("", !0)
|
|
4666
4663
|
], 64)) : c("", !0)
|
|
4667
4664
|
]),
|
|
4668
4665
|
_: 3
|
|
4669
4666
|
}, 16, ["valid", "onReset", "wrap", "class"]);
|
|
4670
4667
|
}
|
|
4671
|
-
const
|
|
4668
|
+
const Pi = {
|
|
4672
4669
|
name: "w-select",
|
|
4673
|
-
mixins: [
|
|
4670
|
+
mixins: [z],
|
|
4674
4671
|
props: {
|
|
4675
4672
|
items: { type: Array, required: !0 },
|
|
4676
4673
|
modelValue: {},
|
|
@@ -4698,7 +4695,8 @@ const Oi = {
|
|
|
4698
4695
|
noUnselect: { type: Boolean },
|
|
4699
4696
|
menuProps: { type: Object },
|
|
4700
4697
|
dark: { type: Boolean },
|
|
4701
|
-
light: { type: Boolean }
|
|
4698
|
+
light: { type: Boolean },
|
|
4699
|
+
fitToContent: { type: Boolean }
|
|
4702
4700
|
},
|
|
4703
4701
|
emits: ["input", "update:modelValue", "focus", "blur", "item-click", "item-select", "click:inner-icon-left", "click:inner-icon-right"],
|
|
4704
4702
|
data: () => ({
|
|
@@ -4735,6 +4733,7 @@ const Oi = {
|
|
|
4735
4733
|
"w-select--dark": this.dark,
|
|
4736
4734
|
"w-select--light": this.light,
|
|
4737
4735
|
"w-select--disabled": this.isDisabled,
|
|
4736
|
+
"w-select--fit-to-content": this.fitToContent,
|
|
4738
4737
|
"w-select--readonly": this.isReadonly,
|
|
4739
4738
|
[`w-select--${this.hasValue ? "filled" : "empty"}`]: !0,
|
|
4740
4739
|
"w-select--focused": (this.isFocused || this.showMenu) && !this.isReadonly,
|
|
@@ -4761,13 +4760,13 @@ const Oi = {
|
|
|
4761
4760
|
},
|
|
4762
4761
|
methods: {
|
|
4763
4762
|
onFocus(e) {
|
|
4764
|
-
this.isFocused = !0, this.$emit("focus", e);
|
|
4763
|
+
return this.isFocused = !0, this.$emit("focus", e), !1;
|
|
4765
4764
|
},
|
|
4766
4765
|
onBlur(e) {
|
|
4767
4766
|
this.isFocused = !1, this.$emit("blur", e);
|
|
4768
4767
|
},
|
|
4769
4768
|
onKeydown(e) {
|
|
4770
|
-
if ([13, 27, 38, 40].includes(e.keyCode) && e.preventDefault(), e.keyCode === 27)
|
|
4769
|
+
if (e.preventDefault(), [13, 27, 38, 40].includes(e.keyCode) && e.preventDefault(), e.keyCode === 27)
|
|
4771
4770
|
this.closeMenu();
|
|
4772
4771
|
else if (e.keyCode === 13)
|
|
4773
4772
|
this.openMenu();
|
|
@@ -4800,7 +4799,7 @@ const Oi = {
|
|
|
4800
4799
|
this.$emit("update:modelValue", e), this.$emit("input", e);
|
|
4801
4800
|
},
|
|
4802
4801
|
checkSelection(e) {
|
|
4803
|
-
|
|
4802
|
+
e = Array.isArray(e) ? e : e !== void 0 ? [e] : [];
|
|
4804
4803
|
const t = this.selectItems.map((l) => l.value);
|
|
4805
4804
|
return e.map((l) => {
|
|
4806
4805
|
let a = l;
|
|
@@ -4829,15 +4828,15 @@ const Oi = {
|
|
|
4829
4828
|
this.inputValue = this.checkSelection(this.modelValue);
|
|
4830
4829
|
}
|
|
4831
4830
|
}
|
|
4832
|
-
},
|
|
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 = {
|
|
4833
4832
|
key: 0,
|
|
4834
4833
|
class: "w-slider__step-labels"
|
|
4835
4834
|
}, Fi = ["onClick"], Hi = ["for"], ji = ["for", "innerHTML"];
|
|
4836
|
-
function Ui(e, t, l, a,
|
|
4837
|
-
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 }, {
|
|
4838
4837
|
valid: e.valid,
|
|
4839
|
-
"onUpdate:valid": t[8] || (t[8] = (
|
|
4840
|
-
onReset: t[9] || (t[9] = (
|
|
4838
|
+
"onUpdate:valid": t[8] || (t[8] = (n) => e.valid = n),
|
|
4839
|
+
onReset: t[9] || (t[9] = (n) => {
|
|
4841
4840
|
e.rangeValuePercent = 0, i.updateRangeValueScaled();
|
|
4842
4841
|
}),
|
|
4843
4842
|
wrap: e.formRegister || null,
|
|
@@ -4850,18 +4849,18 @@ function Ui(e, t, l, a, n, i) {
|
|
|
4850
4849
|
for: `button--${e._.uid}`
|
|
4851
4850
|
}, [
|
|
4852
4851
|
p(e.$slots, "label-left")
|
|
4853
|
-
], 10,
|
|
4852
|
+
], 10, zi)) : l.labelLeft ? (s(), u("label", {
|
|
4854
4853
|
key: 1,
|
|
4855
4854
|
class: f(["w-slider__label w-slider__label--left w-form-el-shakable", e.labelClasses]),
|
|
4856
4855
|
for: `button--${e._.uid}`,
|
|
4857
4856
|
innerHTML: l.labelLeft
|
|
4858
|
-
}, null, 10,
|
|
4857
|
+
}, null, 10, Ei)) : c("", !0),
|
|
4859
4858
|
w("div", Mi, [
|
|
4860
4859
|
w("div", {
|
|
4861
4860
|
class: f(["w-slider__track", i.trackClasses]),
|
|
4862
4861
|
ref: "track",
|
|
4863
|
-
onMousedown: t[4] || (t[4] = (...
|
|
4864
|
-
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)),
|
|
4865
4864
|
role: "slider",
|
|
4866
4865
|
"aria-label": "Slider",
|
|
4867
4866
|
"aria-valuemin": i.minVal,
|
|
@@ -4889,11 +4888,11 @@ function Ui(e, t, l, a, n, i) {
|
|
|
4889
4888
|
"aria-readonly": e.isReadonly ? "true" : "false",
|
|
4890
4889
|
tabindex: e.isDisabled || e.isReadonly ? -1 : null,
|
|
4891
4890
|
onKeydown: [
|
|
4892
|
-
t[0] || (t[0] = M((
|
|
4893
|
-
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"]))
|
|
4894
4893
|
],
|
|
4895
|
-
onFocus: t[2] || (t[2] = (
|
|
4896
|
-
onClick: t[3] || (t[3] =
|
|
4894
|
+
onFocus: t[2] || (t[2] = (n) => e.$emit("focus", n)),
|
|
4895
|
+
onClick: t[3] || (t[3] = E(() => {
|
|
4897
4896
|
}, ["prevent"]))
|
|
4898
4897
|
}, null, 42, Wi),
|
|
4899
4898
|
l.thumbLabel ? (s(), u("label", {
|
|
@@ -4903,13 +4902,13 @@ function Ui(e, t, l, a, n, i) {
|
|
|
4903
4902
|
}, [
|
|
4904
4903
|
l.thumbLabel === "droplet" ? (s(), u("div", Ki, [
|
|
4905
4904
|
p(e.$slots, "label", { value: e.rangeValueScaled }, () => [
|
|
4906
|
-
|
|
4905
|
+
C(k(~~e.rangeValueScaled), 1)
|
|
4907
4906
|
])
|
|
4908
4907
|
])) : p(e.$slots, "label", {
|
|
4909
4908
|
key: 1,
|
|
4910
4909
|
value: e.rangeValueScaled
|
|
4911
4910
|
}, () => [
|
|
4912
|
-
|
|
4911
|
+
C(k(~~e.rangeValueScaled), 1)
|
|
4913
4912
|
])
|
|
4914
4913
|
], 10, Ai)) : c("", !0)
|
|
4915
4914
|
], 4)
|
|
@@ -4917,18 +4916,18 @@ function Ui(e, t, l, a, n, i) {
|
|
|
4917
4916
|
l.stepLabels && l.step ? (s(), u("div", Di, [
|
|
4918
4917
|
w("div", {
|
|
4919
4918
|
class: "w-slider__step-label",
|
|
4920
|
-
onClick: t[6] || (t[6] = (
|
|
4919
|
+
onClick: t[6] || (t[6] = (n) => i.onStepLabelClick(0))
|
|
4921
4920
|
}, k(this.minVal), 1),
|
|
4922
|
-
(s(!0), u(
|
|
4921
|
+
(s(!0), u(_, null, T(~~i.numberOfSteps, (n) => (s(), u("div", {
|
|
4923
4922
|
class: "w-slider__step-label",
|
|
4924
|
-
key:
|
|
4925
|
-
onClick: (r) => i.onStepLabelClick(
|
|
4926
|
-
style: L(`left: ${
|
|
4927
|
-
}, 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)),
|
|
4928
4927
|
~~i.numberOfSteps !== i.numberOfSteps ? (s(), u("div", {
|
|
4929
4928
|
key: 0,
|
|
4930
4929
|
class: "w-slider__step-label",
|
|
4931
|
-
onClick: t[7] || (t[7] = (
|
|
4930
|
+
onClick: t[7] || (t[7] = (n) => i.onStepLabelClick(100)),
|
|
4932
4931
|
style: { left: "100%" }
|
|
4933
4932
|
}, k(this.maxVal), 1)) : c("", !0)
|
|
4934
4933
|
])) : c("", !0)
|
|
@@ -4951,7 +4950,7 @@ function Ui(e, t, l, a, n, i) {
|
|
|
4951
4950
|
}
|
|
4952
4951
|
const qi = {
|
|
4953
4952
|
name: "w-slider",
|
|
4954
|
-
mixins: [
|
|
4953
|
+
mixins: [z],
|
|
4955
4954
|
props: {
|
|
4956
4955
|
modelValue: { type: Number, default: 0 },
|
|
4957
4956
|
color: { type: String, default: "primary" },
|
|
@@ -5084,7 +5083,7 @@ const qi = {
|
|
|
5084
5083
|
}
|
|
5085
5084
|
}
|
|
5086
5085
|
}, Gi = /* @__PURE__ */ v(qi, [["render", Ui]]), Xi = { key: 0 };
|
|
5087
|
-
function Yi(e, t, l, a,
|
|
5086
|
+
function Yi(e, t, l, a, o, i) {
|
|
5088
5087
|
return l.modelValue || l.modelValue === void 0 ? (s(), u("div", {
|
|
5089
5088
|
key: 0,
|
|
5090
5089
|
class: f(["w-spinner", i.classes]),
|
|
@@ -5132,7 +5131,7 @@ const Ji = {
|
|
|
5132
5131
|
}
|
|
5133
5132
|
}
|
|
5134
5133
|
}, Qi = /* @__PURE__ */ v(Ji, [["render", Yi]]);
|
|
5135
|
-
function Zi(e, t, l, a,
|
|
5134
|
+
function Zi(e, t, l, a, o, i) {
|
|
5136
5135
|
return s(), u("div", {
|
|
5137
5136
|
class: f(["w-steps", i.classes])
|
|
5138
5137
|
}, null, 2);
|
|
@@ -5160,13 +5159,13 @@ const es = {
|
|
|
5160
5159
|
key: 1,
|
|
5161
5160
|
class: "w-switch__thumb"
|
|
5162
5161
|
}, os = ["for"];
|
|
5163
|
-
function ns(e, t, l, a,
|
|
5164
|
-
const
|
|
5165
|
-
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 }, {
|
|
5166
5165
|
valid: e.valid,
|
|
5167
5166
|
"onUpdate:valid": t[3] || (t[3] = (r) => e.valid = r),
|
|
5168
5167
|
onReset: t[4] || (t[4] = (r) => {
|
|
5169
|
-
e.$emit("update:modelValue",
|
|
5168
|
+
e.$emit("update:modelValue", o.isOn = null), e.$emit("input", null);
|
|
5170
5169
|
}),
|
|
5171
5170
|
class: i.classes
|
|
5172
5171
|
}), {
|
|
@@ -5176,7 +5175,7 @@ function ns(e, t, l, a, n, i) {
|
|
|
5176
5175
|
id: `w-switch--${e._.uid}`,
|
|
5177
5176
|
type: "checkbox",
|
|
5178
5177
|
name: e.inputName,
|
|
5179
|
-
checked:
|
|
5178
|
+
checked: o.isOn,
|
|
5180
5179
|
disabled: e.isDisabled || e.isReadonly || null,
|
|
5181
5180
|
readonly: e.isReadonly || null,
|
|
5182
5181
|
"aria-readonly": e.isReadonly ? "true" : "false",
|
|
@@ -5184,21 +5183,21 @@ function ns(e, t, l, a, n, i) {
|
|
|
5184
5183
|
tabindex: e.tabindex || null,
|
|
5185
5184
|
onChange: t[0] || (t[0] = (r) => i.onInput()),
|
|
5186
5185
|
onFocus: t[1] || (t[1] = (r) => e.$emit("focus", r)),
|
|
5187
|
-
"aria-checked":
|
|
5186
|
+
"aria-checked": o.isOn || "false",
|
|
5188
5187
|
role: "switch"
|
|
5189
5188
|
}, null, 40, ls),
|
|
5190
|
-
i.hasLabel && l.labelOnLeft ? (s(), u(
|
|
5189
|
+
i.hasLabel && l.labelOnLeft ? (s(), u(_, { key: 0 }, [
|
|
5191
5190
|
e.$slots.default || l.label ? (s(), u("label", {
|
|
5192
5191
|
key: 0,
|
|
5193
5192
|
class: f(["w-switch__label w-switch__label--left w-form-el-shakable", e.labelClasses]),
|
|
5194
5193
|
for: `w-switch--${e._.uid}`
|
|
5195
5194
|
}, [
|
|
5196
5195
|
p(e.$slots, "default", {}, () => [
|
|
5197
|
-
|
|
5196
|
+
C(k(l.label), 1)
|
|
5198
5197
|
])
|
|
5199
5198
|
], 10, is)) : c("", !0)
|
|
5200
5199
|
], 64)) : c("", !0),
|
|
5201
|
-
w("div",
|
|
5200
|
+
w("div", B({
|
|
5202
5201
|
class: "w-switch__input",
|
|
5203
5202
|
onClick: t[2] || (t[2] = (r) => {
|
|
5204
5203
|
e.$refs.input.focus(), e.$refs.input.click();
|
|
@@ -5208,21 +5207,21 @@ function ns(e, t, l, a, n, i) {
|
|
|
5208
5207
|
p(e.$slots, "track")
|
|
5209
5208
|
])) : c("", !0),
|
|
5210
5209
|
e.$slots.thumb || l.loading ? (s(), u("div", as, [
|
|
5211
|
-
l.loading ? (s(),
|
|
5210
|
+
l.loading ? (s(), b(n, B({
|
|
5212
5211
|
key: 0,
|
|
5213
5212
|
circle: "",
|
|
5214
5213
|
color: "inherit"
|
|
5215
5214
|
}, typeof l.loading == "number" && { "model-value": l.loading }), null, 16)) : p(e.$slots, "thumb", { key: 1 })
|
|
5216
5215
|
])) : c("", !0)
|
|
5217
5216
|
], 16),
|
|
5218
|
-
i.hasLabel && !l.labelOnLeft ? (s(), u(
|
|
5217
|
+
i.hasLabel && !l.labelOnLeft ? (s(), u(_, { key: 1 }, [
|
|
5219
5218
|
e.$slots.default || l.label ? (s(), u("label", {
|
|
5220
5219
|
key: 0,
|
|
5221
5220
|
class: f(["w-switch__label w-switch__label--right w-form-el-shakable", e.labelClasses]),
|
|
5222
5221
|
for: `w-switch--${e._.uid}`
|
|
5223
5222
|
}, [
|
|
5224
5223
|
p(e.$slots, "default", {}, () => [
|
|
5225
|
-
|
|
5224
|
+
C(k(l.label), 1)
|
|
5226
5225
|
])
|
|
5227
5226
|
], 10, os)) : c("", !0)
|
|
5228
5227
|
], 64)) : c("", !0)
|
|
@@ -5232,7 +5231,7 @@ function ns(e, t, l, a, n, i) {
|
|
|
5232
5231
|
}
|
|
5233
5232
|
const rs = {
|
|
5234
5233
|
name: "w-switch",
|
|
5235
|
-
mixins: [
|
|
5234
|
+
mixins: [z],
|
|
5236
5235
|
props: {
|
|
5237
5236
|
modelValue: { default: !1 },
|
|
5238
5237
|
label: { type: String, default: "" },
|
|
@@ -5296,7 +5295,7 @@ const rs = {
|
|
|
5296
5295
|
}
|
|
5297
5296
|
}
|
|
5298
5297
|
}, ds = /* @__PURE__ */ v(rs, [["render", ns]]), us = { class: "w-tabs__content" };
|
|
5299
|
-
function hs(e, t, l, a,
|
|
5298
|
+
function hs(e, t, l, a, o, i) {
|
|
5300
5299
|
return s(), u("div", us, [
|
|
5301
5300
|
p(e.$slots, "default", { item: l.item })
|
|
5302
5301
|
]);
|
|
@@ -5310,8 +5309,8 @@ const cs = {
|
|
|
5310
5309
|
key: 0,
|
|
5311
5310
|
class: "w-tabs__content-wrap"
|
|
5312
5311
|
}, ys = ["innerHTML"];
|
|
5313
|
-
function ws(e, t, l, a,
|
|
5314
|
-
const
|
|
5312
|
+
function ws(e, t, l, a, o, i) {
|
|
5313
|
+
const n = $("tab-content");
|
|
5315
5314
|
return s(), u("div", {
|
|
5316
5315
|
class: f(["w-tabs", i.tabsClasses])
|
|
5317
5316
|
}, [
|
|
@@ -5319,7 +5318,7 @@ function ws(e, t, l, a, n, i) {
|
|
|
5319
5318
|
class: f(["w-tabs__bar", i.tabsBarClasses]),
|
|
5320
5319
|
ref: "tabs-bar"
|
|
5321
5320
|
}, [
|
|
5322
|
-
(s(!0), u(
|
|
5321
|
+
(s(!0), u(_, null, T(i.tabsItems, (r, d) => (s(), u("div", {
|
|
5323
5322
|
class: f(["w-tabs__bar-item", i.barItemClasses(r)]),
|
|
5324
5323
|
key: d,
|
|
5325
5324
|
onClick: (h) => !r._disabled && i.openTab(r),
|
|
@@ -5355,13 +5354,13 @@ function ws(e, t, l, a, n, i) {
|
|
|
5355
5354
|
}, null, 6)) : c("", !0)
|
|
5356
5355
|
], 2),
|
|
5357
5356
|
i.tabsItems.length ? (s(), u("div", bs, [
|
|
5358
|
-
V(
|
|
5357
|
+
V(x, {
|
|
5359
5358
|
name: i.transitionName,
|
|
5360
5359
|
mode: i.transitionMode
|
|
5361
5360
|
}, {
|
|
5362
5361
|
default: m(() => [
|
|
5363
|
-
(s(),
|
|
5364
|
-
(s(),
|
|
5362
|
+
(s(), b($e, null, [
|
|
5363
|
+
(s(), b(n, {
|
|
5365
5364
|
key: i.activeTab._index,
|
|
5366
5365
|
item: i.activeTab,
|
|
5367
5366
|
class: f(l.contentClass)
|
|
@@ -5495,8 +5494,8 @@ const vs = {
|
|
|
5495
5494
|
this.activeTabEl = t && t.querySelector(".w-tabs__bar-item--active");
|
|
5496
5495
|
}
|
|
5497
5496
|
if (!this.fillBar && this.activeTabEl) {
|
|
5498
|
-
const { left: t, width: l } = this.activeTabEl.getBoundingClientRect(), a = this.activeTabEl.parentNode, { left:
|
|
5499
|
-
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`;
|
|
5500
5499
|
} else
|
|
5501
5500
|
this.slider.left = `${this.activeTab._index * 100 / this.tabsItems.length}%`, this.slider.width = `${100 / this.tabsItems.length}%`;
|
|
5502
5501
|
},
|
|
@@ -5540,10 +5539,10 @@ const vs = {
|
|
|
5540
5539
|
}, Is = ["colspan"], Rs = {
|
|
5541
5540
|
key: 0,
|
|
5542
5541
|
class: "w-table__progress-bar"
|
|
5543
|
-
}, Ls = ["colspan"],
|
|
5542
|
+
}, Ls = ["colspan"], Ts = { class: "w-table__loading-text" }, xs = {
|
|
5544
5543
|
key: 1,
|
|
5545
5544
|
class: "no-data"
|
|
5546
|
-
},
|
|
5545
|
+
}, Ps = ["colspan"], Os = ["onClick"], zs = ["data-label"], Es = ["data-label"], Ms = ["innerHTML"], Ns = {
|
|
5547
5546
|
key: 2,
|
|
5548
5547
|
class: "w-table__row w-table__row--expansion"
|
|
5549
5548
|
}, Ws = ["colspan"], As = { key: 0 }, Ks = {
|
|
@@ -5558,67 +5557,67 @@ const vs = {
|
|
|
5558
5557
|
}, Hs = ["colspan"], js = {
|
|
5559
5558
|
key: 2,
|
|
5560
5559
|
class: "w-table__row w-table__pagination-wrap"
|
|
5561
|
-
}, Us = ["colspan"], qs = { class: "w-table__pagination" }, Gs = { class: "pagination-
|
|
5562
|
-
function Ys(e, t, l, a,
|
|
5563
|
-
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");
|
|
5564
5563
|
return s(), u("div", {
|
|
5565
5564
|
class: f(["w-table-wrap", i.wrapClasses])
|
|
5566
5565
|
}, [
|
|
5567
5566
|
w("table", {
|
|
5568
5567
|
class: f(["w-table", i.classes]),
|
|
5569
|
-
onMousedown: t[4] || (t[4] = (...
|
|
5570
|
-
onMouseover: t[5] || (t[5] = (...
|
|
5571
|
-
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))
|
|
5572
5571
|
}, [
|
|
5573
5572
|
w("colgroup", _s, [
|
|
5574
|
-
(s(!0), u(
|
|
5573
|
+
(s(!0), u(_, null, T(l.headers, (g, R) => (s(), u("col", {
|
|
5575
5574
|
class: "w-table__col",
|
|
5576
5575
|
key: R,
|
|
5577
|
-
width:
|
|
5576
|
+
width: g.width || null
|
|
5578
5577
|
}, null, 8, Cs))), 128))
|
|
5579
5578
|
], 512),
|
|
5580
5579
|
l.noHeaders ? c("", !0) : (s(), u("thead", Bs, [
|
|
5581
5580
|
w("tr", null, [
|
|
5582
|
-
(s(!0), u(
|
|
5583
|
-
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)]),
|
|
5584
5583
|
key: R,
|
|
5585
|
-
onClick: (
|
|
5584
|
+
onClick: (P) => !e.colResizing.dragging && g.sortable !== !1 && i.sortTable(g)
|
|
5586
5585
|
}, [
|
|
5587
|
-
|
|
5586
|
+
g.sortable !== !1 && g.align === "right" ? (s(), b(n, {
|
|
5588
5587
|
key: 0,
|
|
5589
|
-
class: f(["w-table__header-sort", i.headerSortClasses(
|
|
5588
|
+
class: f(["w-table__header-sort", i.headerSortClasses(g)])
|
|
5590
5589
|
}, {
|
|
5591
5590
|
default: m(() => [
|
|
5592
|
-
|
|
5591
|
+
C("wi-arrow-down")
|
|
5593
5592
|
]),
|
|
5594
5593
|
_: 2
|
|
5595
5594
|
}, 1032, ["class"])) : c("", !0),
|
|
5596
|
-
|
|
5595
|
+
g.label ? (s(), u(_, { key: 1 }, [
|
|
5597
5596
|
e.$slots["header-label"] ? p(e.$slots, "header-label", {
|
|
5598
5597
|
key: 0,
|
|
5599
|
-
header:
|
|
5600
|
-
label:
|
|
5598
|
+
header: g,
|
|
5599
|
+
label: g.label,
|
|
5601
5600
|
index: R + 1
|
|
5602
5601
|
}, () => [
|
|
5603
|
-
|
|
5602
|
+
C(k(g.label || ""), 1)
|
|
5604
5603
|
]) : (s(), u("span", {
|
|
5605
5604
|
key: 1,
|
|
5606
|
-
innerHTML:
|
|
5605
|
+
innerHTML: g.label || ""
|
|
5607
5606
|
}, null, 8, $s))
|
|
5608
5607
|
], 64)) : c("", !0),
|
|
5609
|
-
|
|
5608
|
+
g.sortable !== !1 && g.align !== "right" ? (s(), b(n, {
|
|
5610
5609
|
key: 2,
|
|
5611
|
-
class: f(["w-table__header-sort", i.headerSortClasses(
|
|
5610
|
+
class: f(["w-table__header-sort", i.headerSortClasses(g)])
|
|
5612
5611
|
}, {
|
|
5613
5612
|
default: m(() => [
|
|
5614
|
-
|
|
5613
|
+
C("wi-arrow-down")
|
|
5615
5614
|
]),
|
|
5616
5615
|
_: 2
|
|
5617
5616
|
}, 1032, ["class"])) : c("", !0),
|
|
5618
5617
|
R < l.headers.length - 1 && l.resizableColumns ? (s(), u("span", {
|
|
5619
5618
|
key: 3,
|
|
5620
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 }]),
|
|
5621
|
-
onClick: t[0] || (t[0] =
|
|
5620
|
+
onClick: t[0] || (t[0] = E(() => {
|
|
5622
5621
|
}, ["stop"]))
|
|
5623
5622
|
}, null, 2)) : c("", !0)
|
|
5624
5623
|
], 10, Ss))), 128))
|
|
@@ -5642,88 +5641,88 @@ function Ys(e, t, l, a, n, i) {
|
|
|
5642
5641
|
colspan: l.headers.length
|
|
5643
5642
|
}, [
|
|
5644
5643
|
V(r, { tile: "" }),
|
|
5645
|
-
w("div",
|
|
5644
|
+
w("div", Ts, [
|
|
5646
5645
|
p(e.$slots, "loading", {}, () => [
|
|
5647
|
-
|
|
5646
|
+
C("Loading...")
|
|
5648
5647
|
])
|
|
5649
5648
|
])
|
|
5650
5649
|
], 8, Ls)
|
|
5651
|
-
])) : i.tableItems.length ? c("", !0) : (s(), u("tr",
|
|
5650
|
+
])) : i.tableItems.length ? c("", !0) : (s(), u("tr", xs, [
|
|
5652
5651
|
w("td", {
|
|
5653
5652
|
class: "w-table__cell text-center",
|
|
5654
5653
|
colspan: l.headers.length
|
|
5655
5654
|
}, [
|
|
5656
5655
|
p(e.$slots, "no-data", {}, () => [
|
|
5657
|
-
|
|
5656
|
+
C("No data to show.")
|
|
5658
5657
|
])
|
|
5659
|
-
], 8,
|
|
5658
|
+
], 8, Ps)
|
|
5660
5659
|
])),
|
|
5661
|
-
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 }, [
|
|
5662
5661
|
e.$slots.item ? p(e.$slots, "item", {
|
|
5663
5662
|
key: 0,
|
|
5664
|
-
item:
|
|
5663
|
+
item: g,
|
|
5665
5664
|
index: R + 1,
|
|
5666
|
-
select: () => i.doSelectRow(
|
|
5667
|
-
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 }
|
|
5668
5667
|
}) : (s(), u("tr", {
|
|
5669
5668
|
key: 1,
|
|
5670
|
-
class: f(["w-table__row", { "w-table__row--selected": i.selectedRowsByUid[
|
|
5671
|
-
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)
|
|
5672
5671
|
}, [
|
|
5673
|
-
(s(!0), u(
|
|
5674
|
-
e.$slots[`item-cell.${
|
|
5675
|
-
class: f(["w-table__cell", { [`text-${
|
|
5676
|
-
key: `${
|
|
5677
|
-
"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
|
|
5678
5677
|
}, [
|
|
5679
|
-
e.$slots[`item-cell.${
|
|
5678
|
+
e.$slots[`item-cell.${P.key}`] ? p(e.$slots, `item-cell.${P.key}`, {
|
|
5680
5679
|
key: 0,
|
|
5681
|
-
header:
|
|
5682
|
-
item:
|
|
5683
|
-
label:
|
|
5680
|
+
header: P,
|
|
5681
|
+
item: g,
|
|
5682
|
+
label: g[P.key] || "",
|
|
5684
5683
|
index: R + 1
|
|
5685
|
-
}) : e.$slots[`item-cell.${
|
|
5684
|
+
}) : e.$slots[`item-cell.${O + 1}`] ? p(e.$slots, `item-cell.${O + 1}`, {
|
|
5686
5685
|
key: 1,
|
|
5687
|
-
header:
|
|
5688
|
-
item:
|
|
5689
|
-
label:
|
|
5686
|
+
header: P,
|
|
5687
|
+
item: g,
|
|
5688
|
+
label: g[P.key] || "",
|
|
5690
5689
|
index: R + 1
|
|
5691
5690
|
}) : e.$slots["item-cell"] ? p(e.$slots, "item-cell", {
|
|
5692
5691
|
key: 2,
|
|
5693
|
-
header:
|
|
5694
|
-
item:
|
|
5695
|
-
label:
|
|
5692
|
+
header: P,
|
|
5693
|
+
item: g,
|
|
5694
|
+
label: g[P.key] || "",
|
|
5696
5695
|
index: R + 1
|
|
5697
5696
|
}) : c("", !0),
|
|
5698
|
-
|
|
5697
|
+
O < l.headers.length - 1 && l.resizableColumns ? (s(), u("span", {
|
|
5699
5698
|
key: 3,
|
|
5700
|
-
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 }])
|
|
5701
5700
|
}, null, 2)) : c("", !0)
|
|
5702
|
-
], 10,
|
|
5703
|
-
class: f(["w-table__cell", { [`text-${
|
|
5704
|
-
key: `${
|
|
5705
|
-
"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
|
|
5706
5705
|
}, [
|
|
5707
5706
|
w("div", {
|
|
5708
|
-
innerHTML:
|
|
5707
|
+
innerHTML: g[P.key] || ""
|
|
5709
5708
|
}, null, 8, Ms),
|
|
5710
|
-
|
|
5709
|
+
O < l.headers.length - 1 && l.resizableColumns ? (s(), u("span", {
|
|
5711
5710
|
key: 0,
|
|
5712
|
-
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 }])
|
|
5713
5712
|
}, null, 2)) : c("", !0)
|
|
5714
|
-
], 10,
|
|
5713
|
+
], 10, Es))
|
|
5715
5714
|
], 64))), 256))
|
|
5716
|
-
], 10,
|
|
5717
|
-
i.expandedRowsByUid[
|
|
5715
|
+
], 10, Os)),
|
|
5716
|
+
i.expandedRowsByUid[g._uid] ? (s(), u("tr", Ns, [
|
|
5718
5717
|
w("td", {
|
|
5719
5718
|
class: "w-table__cell",
|
|
5720
5719
|
colspan: l.headers.length
|
|
5721
5720
|
}, [
|
|
5722
5721
|
V(h, { y: "" }, {
|
|
5723
5722
|
default: m(() => [
|
|
5724
|
-
i.expandedRowsByUid[
|
|
5723
|
+
i.expandedRowsByUid[g._uid] ? (s(), u("div", As, [
|
|
5725
5724
|
p(e.$slots, "row-expansion", {
|
|
5726
|
-
item:
|
|
5725
|
+
item: g,
|
|
5727
5726
|
index: R + 1
|
|
5728
5727
|
})
|
|
5729
5728
|
])) : c("", !0),
|
|
@@ -5756,32 +5755,54 @@ function Ys(e, t, l, a, n, i) {
|
|
|
5756
5755
|
colspan: l.headers.length
|
|
5757
5756
|
}, [
|
|
5758
5757
|
w("div", qs, [
|
|
5759
|
-
e.paginationConfig
|
|
5760
|
-
|
|
5761
|
-
|
|
5762
|
-
|
|
5763
|
-
|
|
5764
|
-
|
|
5765
|
-
|
|
5766
|
-
|
|
5767
|
-
|
|
5768
|
-
|
|
5769
|
-
|
|
5770
|
-
|
|
5771
|
-
|
|
5772
|
-
|
|
5773
|
-
|
|
5774
|
-
|
|
5775
|
-
|
|
5776
|
-
|
|
5777
|
-
|
|
5778
|
-
|
|
5779
|
-
|
|
5780
|
-
|
|
5781
|
-
|
|
5782
|
-
|
|
5783
|
-
|
|
5784
|
-
|
|
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)
|
|
5785
5806
|
])
|
|
5786
5807
|
])
|
|
5787
5808
|
], 8, Us)
|
|
@@ -5905,6 +5926,9 @@ const ce = 15, Js = {
|
|
|
5905
5926
|
},
|
|
5906
5927
|
expandedRowsByUid() {
|
|
5907
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);
|
|
5908
5932
|
}
|
|
5909
5933
|
},
|
|
5910
5934
|
methods: {
|
|
@@ -5931,26 +5955,26 @@ const ce = 15, Js = {
|
|
|
5931
5955
|
doSelectRow(e, t) {
|
|
5932
5956
|
const l = this.expandableRows === "" ? !0 : this.expandableRows, a = this.selectableRows === "" ? !0 : this.selectableRows;
|
|
5933
5957
|
if (l) {
|
|
5934
|
-
const
|
|
5935
|
-
|
|
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(
|
|
5936
5960
|
"row-expand",
|
|
5937
5961
|
{
|
|
5938
5962
|
item: e,
|
|
5939
5963
|
index: t,
|
|
5940
|
-
expanded:
|
|
5964
|
+
expanded: o,
|
|
5941
5965
|
expandedRows: this.expandedRowsInternal.map((i) => this.filteredItems[i])
|
|
5942
5966
|
}
|
|
5943
5967
|
), this.$emit("update:expanded-rows", this.expandedRowsInternal);
|
|
5944
5968
|
} else if (a) {
|
|
5945
|
-
let
|
|
5969
|
+
let o = !1;
|
|
5946
5970
|
const i = this.selectedRowsByUid[e._uid] === void 0;
|
|
5947
|
-
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(
|
|
5948
5972
|
"row-select",
|
|
5949
5973
|
{
|
|
5950
5974
|
item: e,
|
|
5951
5975
|
index: t,
|
|
5952
5976
|
selected: i,
|
|
5953
|
-
selectedRows: this.selectedRowsInternal.map((
|
|
5977
|
+
selectedRows: this.selectedRowsInternal.map((n) => this.filteredItems[n])
|
|
5954
5978
|
}
|
|
5955
5979
|
), this.$emit("update:selected-rows", this.selectedRowsInternal));
|
|
5956
5980
|
}
|
|
@@ -5966,14 +5990,14 @@ const ce = 15, Js = {
|
|
|
5966
5990
|
e.classList.contains("w-table__col-resizer") && (this.colResizing.hover = !1);
|
|
5967
5991
|
},
|
|
5968
5992
|
onResizerMouseMove(e) {
|
|
5969
|
-
const { startCursorX: t, columnEl: l, nextColumnEl: a, colWidth:
|
|
5993
|
+
const { startCursorX: t, columnEl: l, nextColumnEl: a, colWidth: o, nextColWidth: i } = this.colResizing;
|
|
5970
5994
|
this.colResizing.dragging = !0;
|
|
5971
|
-
const
|
|
5972
|
-
l.style.width =
|
|
5973
|
-
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;
|
|
5974
5998
|
if (y) {
|
|
5975
|
-
const
|
|
5976
|
-
l.style.width =
|
|
5999
|
+
const g = Math.max(l.offsetWidth, ce);
|
|
6000
|
+
l.style.width = g + "px", a.style.width = r - g + "px";
|
|
5977
6001
|
} else
|
|
5978
6002
|
S && (l.style.width = r - a.offsetWidth + "px", a.style.width = a.offsetWidth + "px");
|
|
5979
6003
|
},
|
|
@@ -5987,16 +6011,28 @@ const ce = 15, Js = {
|
|
|
5987
6011
|
}, 0);
|
|
5988
6012
|
},
|
|
5989
6013
|
updatePaginationConfig() {
|
|
5990
|
-
var
|
|
5991
|
-
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;
|
|
5992
6016
|
this.paginationConfig = {
|
|
5993
6017
|
itemsPerPage: e,
|
|
5994
|
-
itemsPerPageOptions: ((
|
|
5995
|
-
|
|
5996
|
-
|
|
5997
|
-
|
|
5998
|
-
|
|
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)
|
|
5999
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;
|
|
6000
6036
|
}
|
|
6001
6037
|
},
|
|
6002
6038
|
created() {
|
|
@@ -6017,15 +6053,21 @@ const ce = 15, Js = {
|
|
|
6017
6053
|
},
|
|
6018
6054
|
selectedRows(e) {
|
|
6019
6055
|
this.selectedRowsInternal = Array.isArray(e) && e.length ? this.selectedRows : [];
|
|
6056
|
+
},
|
|
6057
|
+
pagination: {
|
|
6058
|
+
handler() {
|
|
6059
|
+
this.updatePaginationConfig();
|
|
6060
|
+
},
|
|
6061
|
+
deep: !0
|
|
6020
6062
|
}
|
|
6021
6063
|
}
|
|
6022
6064
|
}, Qs = /* @__PURE__ */ v(Js, [["render", Ys]]), Zs = ["role", "aria-pressed", "tabindex"];
|
|
6023
|
-
function ea(e, t, l, a,
|
|
6024
|
-
return s(), u("span",
|
|
6025
|
-
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) => {
|
|
6026
6068
|
e.$emit("update:modelValue", !l.modelValue), e.$emit("input", !l.modelValue);
|
|
6027
6069
|
}),
|
|
6028
|
-
onKeypress: t[2] || (t[2] = M((
|
|
6070
|
+
onKeypress: t[2] || (t[2] = M((n) => {
|
|
6029
6071
|
e.$emit("update:modelValue", !l.modelValue), e.$emit("input", !l.modelValue);
|
|
6030
6072
|
}, ["enter"])),
|
|
6031
6073
|
class: i.classes,
|
|
@@ -6038,7 +6080,7 @@ function ea(e, t, l, a, n, i) {
|
|
|
6038
6080
|
l.closable && l.modelValue ? (s(), u("i", {
|
|
6039
6081
|
key: 0,
|
|
6040
6082
|
class: "w-icon w-tag__closable wi-cross",
|
|
6041
|
-
onClick: t[0] || (t[0] =
|
|
6083
|
+
onClick: t[0] || (t[0] = E((n) => {
|
|
6042
6084
|
e.$emit("update:modelValue", !1), e.$emit("input", !1);
|
|
6043
6085
|
}, ["stop"])),
|
|
6044
6086
|
role: "icon",
|
|
@@ -6096,33 +6138,33 @@ const ta = {
|
|
|
6096
6138
|
}
|
|
6097
6139
|
}
|
|
6098
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"];
|
|
6099
|
-
function na(e, t, l, a,
|
|
6100
|
-
const
|
|
6101
|
-
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 }, {
|
|
6102
6144
|
valid: e.valid,
|
|
6103
6145
|
"onUpdate:valid": t[6] || (t[6] = (r) => e.valid = r),
|
|
6104
6146
|
wrap: i.hasLabel && l.labelPosition !== "inside",
|
|
6105
6147
|
onReset: t[7] || (t[7] = (r) => {
|
|
6106
|
-
e.$emit("update:modelValue",
|
|
6148
|
+
e.$emit("update:modelValue", o.inputValue = ""), e.$emit("input", "");
|
|
6107
6149
|
}),
|
|
6108
6150
|
class: i.classes
|
|
6109
6151
|
}), {
|
|
6110
6152
|
default: m(() => [
|
|
6111
|
-
l.labelPosition === "left" ? (s(), u(
|
|
6153
|
+
l.labelPosition === "left" ? (s(), u(_, { key: 0 }, [
|
|
6112
6154
|
e.$slots.default || l.label ? (s(), u("label", {
|
|
6113
6155
|
key: 0,
|
|
6114
6156
|
class: f(["w-textarea__label w-textarea__label--left w-form-el-shakable", e.labelClasses]),
|
|
6115
6157
|
for: `w-textarea--${e._.uid}`
|
|
6116
6158
|
}, [
|
|
6117
6159
|
p(e.$slots, "default", {}, () => [
|
|
6118
|
-
|
|
6160
|
+
C(k(l.label), 1)
|
|
6119
6161
|
])
|
|
6120
6162
|
], 10, ia)) : c("", !0)
|
|
6121
6163
|
], 64)) : c("", !0),
|
|
6122
6164
|
w("div", {
|
|
6123
6165
|
class: f(["w-textarea__textarea-wrap", i.inputWrapClasses])
|
|
6124
6166
|
}, [
|
|
6125
|
-
l.innerIconLeft ? (s(),
|
|
6167
|
+
l.innerIconLeft ? (s(), b(n, {
|
|
6126
6168
|
key: 0,
|
|
6127
6169
|
class: "w-textarea__icon w-textarea__icon--inner-left",
|
|
6128
6170
|
tag: "label",
|
|
@@ -6130,14 +6172,14 @@ function na(e, t, l, a, n, i) {
|
|
|
6130
6172
|
onClick: t[0] || (t[0] = (r) => e.$emit("click:inner-icon-left", r))
|
|
6131
6173
|
}, {
|
|
6132
6174
|
default: m(() => [
|
|
6133
|
-
|
|
6175
|
+
C(k(l.innerIconLeft), 1)
|
|
6134
6176
|
]),
|
|
6135
6177
|
_: 1
|
|
6136
6178
|
}, 8, ["for"])) : c("", !0),
|
|
6137
|
-
D(w("textarea",
|
|
6179
|
+
D(w("textarea", B({
|
|
6138
6180
|
class: "w-textarea__textarea",
|
|
6139
6181
|
ref: "textarea",
|
|
6140
|
-
"onUpdate:modelValue": t[1] || (t[1] = (r) =>
|
|
6182
|
+
"onUpdate:modelValue": t[1] || (t[1] = (r) => o.inputValue = r)
|
|
6141
6183
|
}, N(i.listeners, !0), {
|
|
6142
6184
|
onInput: t[2] || (t[2] = (...r) => i.onInput && i.onInput(...r)),
|
|
6143
6185
|
onFocus: t[3] || (t[3] = (...r) => i.onFocus && i.onFocus(...r)),
|
|
@@ -6153,20 +6195,20 @@ function na(e, t, l, a, n, i) {
|
|
|
6153
6195
|
required: e.required || null,
|
|
6154
6196
|
tabindex: e.tabindex || null
|
|
6155
6197
|
}), null, 16, sa), [
|
|
6156
|
-
[ge,
|
|
6198
|
+
[ge, o.inputValue]
|
|
6157
6199
|
]),
|
|
6158
|
-
l.labelPosition === "inside" && i.showLabelInside ? (s(), u(
|
|
6200
|
+
l.labelPosition === "inside" && i.showLabelInside ? (s(), u(_, { key: 1 }, [
|
|
6159
6201
|
e.$slots.default || l.label ? (s(), u("label", {
|
|
6160
6202
|
key: 0,
|
|
6161
6203
|
class: f(["w-textarea__label w-textarea__label--inside w-form-el-shakable", e.labelClasses]),
|
|
6162
6204
|
for: `w-textarea--${e._.uid}`
|
|
6163
6205
|
}, [
|
|
6164
6206
|
p(e.$slots, "default", {}, () => [
|
|
6165
|
-
|
|
6207
|
+
C(k(l.label), 1)
|
|
6166
6208
|
])
|
|
6167
6209
|
], 10, aa)) : c("", !0)
|
|
6168
6210
|
], 64)) : c("", !0),
|
|
6169
|
-
l.innerIconRight ? (s(),
|
|
6211
|
+
l.innerIconRight ? (s(), b(n, {
|
|
6170
6212
|
key: 2,
|
|
6171
6213
|
class: "w-textarea__icon w-textarea__icon--inner-right",
|
|
6172
6214
|
tag: "label",
|
|
@@ -6174,19 +6216,19 @@ function na(e, t, l, a, n, i) {
|
|
|
6174
6216
|
onClick: t[5] || (t[5] = (r) => e.$emit("click:inner-icon-right", r))
|
|
6175
6217
|
}, {
|
|
6176
6218
|
default: m(() => [
|
|
6177
|
-
|
|
6219
|
+
C(k(l.innerIconRight), 1)
|
|
6178
6220
|
]),
|
|
6179
6221
|
_: 1
|
|
6180
6222
|
}, 8, ["for"])) : c("", !0)
|
|
6181
6223
|
], 2),
|
|
6182
|
-
l.labelPosition === "right" ? (s(), u(
|
|
6224
|
+
l.labelPosition === "right" ? (s(), u(_, { key: 1 }, [
|
|
6183
6225
|
e.$slots.default || l.label ? (s(), u("label", {
|
|
6184
6226
|
key: 0,
|
|
6185
6227
|
class: f(["w-textarea__label w-textarea__label--right w-form-el-shakable", e.labelClasses]),
|
|
6186
6228
|
for: `w-textarea--${e._.uid}`
|
|
6187
6229
|
}, [
|
|
6188
6230
|
p(e.$slots, "default", {}, () => [
|
|
6189
|
-
|
|
6231
|
+
C(k(l.label), 1)
|
|
6190
6232
|
])
|
|
6191
6233
|
], 10, oa)) : c("", !0)
|
|
6192
6234
|
], 64)) : c("", !0)
|
|
@@ -6196,7 +6238,7 @@ function na(e, t, l, a, n, i) {
|
|
|
6196
6238
|
}
|
|
6197
6239
|
const ra = {
|
|
6198
6240
|
name: "w-textarea",
|
|
6199
|
-
mixins: [
|
|
6241
|
+
mixins: [z],
|
|
6200
6242
|
props: {
|
|
6201
6243
|
modelValue: { default: "" },
|
|
6202
6244
|
label: { type: String },
|
|
@@ -6311,38 +6353,38 @@ const ra = {
|
|
|
6311
6353
|
}
|
|
6312
6354
|
}
|
|
6313
6355
|
}, da = /* @__PURE__ */ v(ra, [["render", na]]), ua = ["innerHTML"], ha = ["innerHTML"];
|
|
6314
|
-
function ca(e, t, l, a,
|
|
6356
|
+
function ca(e, t, l, a, o, i) {
|
|
6315
6357
|
return s(), u("ul", {
|
|
6316
6358
|
class: f(["w-timeline", i.classes])
|
|
6317
6359
|
}, [
|
|
6318
|
-
(s(!0), u(
|
|
6360
|
+
(s(!0), u(_, null, T(l.items, (n, r) => (s(), u("li", {
|
|
6319
6361
|
class: "w-timeline-item",
|
|
6320
6362
|
key: r
|
|
6321
6363
|
}, [
|
|
6322
|
-
(s(),
|
|
6323
|
-
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 }])
|
|
6324
6366
|
}, {
|
|
6325
6367
|
default: m(() => [
|
|
6326
|
-
|
|
6368
|
+
C(k(n[l.itemIconKey] || l.icon), 1)
|
|
6327
6369
|
]),
|
|
6328
6370
|
_: 2
|
|
6329
6371
|
}, 1032, ["class"])),
|
|
6330
6372
|
e.$slots[`item.${r + 1}`] ? p(e.$slots, `item.${r + 1}`, {
|
|
6331
6373
|
key: 1,
|
|
6332
|
-
item:
|
|
6374
|
+
item: n,
|
|
6333
6375
|
index: r + 1
|
|
6334
6376
|
}) : p(e.$slots, "item", {
|
|
6335
6377
|
key: 0,
|
|
6336
|
-
item:
|
|
6378
|
+
item: n,
|
|
6337
6379
|
index: r + 1
|
|
6338
6380
|
}, () => [
|
|
6339
6381
|
w("div", {
|
|
6340
|
-
class: f(["w-timeline-item__title", { [
|
|
6341
|
-
innerHTML:
|
|
6382
|
+
class: f(["w-timeline-item__title", { [n[l.itemColorKey] || l.color]: n[l.itemColorKey] || l.color }]),
|
|
6383
|
+
innerHTML: n[l.itemTitleKey]
|
|
6342
6384
|
}, null, 10, ua),
|
|
6343
6385
|
w("div", {
|
|
6344
6386
|
class: "w-timeline-item__content",
|
|
6345
|
-
innerHTML:
|
|
6387
|
+
innerHTML: n[l.itemContentKey]
|
|
6346
6388
|
}, null, 8, ha)
|
|
6347
6389
|
])
|
|
6348
6390
|
]))), 128))
|
|
@@ -6371,7 +6413,7 @@ const pa = {
|
|
|
6371
6413
|
}
|
|
6372
6414
|
}
|
|
6373
6415
|
}, fa = /* @__PURE__ */ v(pa, [["render", ca]]);
|
|
6374
|
-
function ma(e, t, l, a,
|
|
6416
|
+
function ma(e, t, l, a, o, i) {
|
|
6375
6417
|
return s(), u("div", {
|
|
6376
6418
|
class: f(["w-toolbar", i.classes]),
|
|
6377
6419
|
style: L(i.styles)
|
|
@@ -6429,10 +6471,10 @@ const ga = {
|
|
|
6429
6471
|
}
|
|
6430
6472
|
}
|
|
6431
6473
|
}, ba = /* @__PURE__ */ v(ga, [["render", ma]]);
|
|
6432
|
-
function ya(e, t, l, a,
|
|
6433
|
-
return s(), u(
|
|
6474
|
+
function ya(e, t, l, a, o, i) {
|
|
6475
|
+
return s(), u(_, null, [
|
|
6434
6476
|
p(e.$slots, "activator", { on: i.activatorEventHandlers }),
|
|
6435
|
-
V(
|
|
6477
|
+
V(x, {
|
|
6436
6478
|
name: i.transitionName,
|
|
6437
6479
|
appear: ""
|
|
6438
6480
|
}, {
|
|
@@ -6537,8 +6579,8 @@ const wa = {
|
|
|
6537
6579
|
}
|
|
6538
6580
|
}
|
|
6539
6581
|
}, va = /* @__PURE__ */ v(wa, [["render", ya]]);
|
|
6540
|
-
function ka(e, t, l, a,
|
|
6541
|
-
return s(),
|
|
6582
|
+
function ka(e, t, l, a, o, i) {
|
|
6583
|
+
return s(), b(x, B({ name: "bounce" }, e.$props), {
|
|
6542
6584
|
default: m(() => [
|
|
6543
6585
|
p(e.$slots, "default")
|
|
6544
6586
|
]),
|
|
@@ -6552,8 +6594,8 @@ const _a = {
|
|
|
6552
6594
|
duration: { type: [Number, String] }
|
|
6553
6595
|
}
|
|
6554
6596
|
}, Ca = /* @__PURE__ */ v(_a, [["render", ka]]);
|
|
6555
|
-
function Ba(e, t, l, a,
|
|
6556
|
-
return s(),
|
|
6597
|
+
function Ba(e, t, l, a, o, i) {
|
|
6598
|
+
return s(), b(x, {
|
|
6557
6599
|
name: "expand",
|
|
6558
6600
|
mode: "out-in",
|
|
6559
6601
|
css: !1,
|
|
@@ -6664,8 +6706,8 @@ const Sa = {
|
|
|
6664
6706
|
}
|
|
6665
6707
|
}
|
|
6666
6708
|
}, $a = /* @__PURE__ */ v(Sa, [["render", Ba]]);
|
|
6667
|
-
function Va(e, t, l, a,
|
|
6668
|
-
return s(),
|
|
6709
|
+
function Va(e, t, l, a, o, i) {
|
|
6710
|
+
return s(), b(x, B({ name: "fade" }, e.$props), {
|
|
6669
6711
|
default: m(() => [
|
|
6670
6712
|
p(e.$slots, "default")
|
|
6671
6713
|
]),
|
|
@@ -6679,38 +6721,38 @@ const Ia = {
|
|
|
6679
6721
|
duration: { type: [Number, String] }
|
|
6680
6722
|
}
|
|
6681
6723
|
}, Ra = /* @__PURE__ */ v(Ia, [["render", Va]]);
|
|
6682
|
-
function La(e, t, l, a,
|
|
6683
|
-
return s(),
|
|
6724
|
+
function La(e, t, l, a, o, i) {
|
|
6725
|
+
return s(), b(x, B({ name: "scale" }, e.$props), {
|
|
6684
6726
|
default: m(() => [
|
|
6685
6727
|
p(e.$slots, "default")
|
|
6686
6728
|
]),
|
|
6687
6729
|
_: 3
|
|
6688
6730
|
}, 16);
|
|
6689
6731
|
}
|
|
6690
|
-
const
|
|
6732
|
+
const Ta = {
|
|
6691
6733
|
name: "w-transition-scale",
|
|
6692
6734
|
props: {
|
|
6693
6735
|
appear: { type: Boolean },
|
|
6694
6736
|
duration: { type: [Number, String] }
|
|
6695
6737
|
}
|
|
6696
|
-
},
|
|
6697
|
-
function
|
|
6698
|
-
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), {
|
|
6699
6741
|
default: m(() => [
|
|
6700
6742
|
p(e.$slots, "default")
|
|
6701
6743
|
]),
|
|
6702
6744
|
_: 3
|
|
6703
6745
|
}, 16);
|
|
6704
6746
|
}
|
|
6705
|
-
const
|
|
6747
|
+
const Oa = {
|
|
6706
6748
|
name: "w-transition-scale-fade",
|
|
6707
6749
|
props: {
|
|
6708
6750
|
appear: { type: Boolean },
|
|
6709
6751
|
duration: { type: [Number, String] }
|
|
6710
6752
|
}
|
|
6711
|
-
},
|
|
6712
|
-
function
|
|
6713
|
-
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), {
|
|
6714
6756
|
default: m(() => [
|
|
6715
6757
|
p(e.$slots, "default")
|
|
6716
6758
|
]),
|
|
@@ -6735,9 +6777,9 @@ const Ma = {
|
|
|
6735
6777
|
return `slide-${this.direction}`;
|
|
6736
6778
|
}
|
|
6737
6779
|
}
|
|
6738
|
-
}, Na = /* @__PURE__ */ v(Ma, [["render",
|
|
6739
|
-
function Wa(e, t, l, a,
|
|
6740
|
-
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), {
|
|
6741
6783
|
default: m(() => [
|
|
6742
6784
|
p(e.$slots, "default")
|
|
6743
6785
|
]),
|
|
@@ -6763,8 +6805,8 @@ const Aa = {
|
|
|
6763
6805
|
}
|
|
6764
6806
|
}
|
|
6765
6807
|
}, Ka = /* @__PURE__ */ v(Aa, [["render", Wa]]);
|
|
6766
|
-
function Da(e, t, l, a,
|
|
6767
|
-
return s(),
|
|
6808
|
+
function Da(e, t, l, a, o, i) {
|
|
6809
|
+
return s(), b(x, B({ name: "twist" }, e.$props), {
|
|
6768
6810
|
default: m(() => [
|
|
6769
6811
|
p(e.$slots, "default")
|
|
6770
6812
|
]),
|
|
@@ -6781,25 +6823,25 @@ const Fa = {
|
|
|
6781
6823
|
key: 1,
|
|
6782
6824
|
class: "ml1"
|
|
6783
6825
|
};
|
|
6784
|
-
function qa(e, t, l, a,
|
|
6785
|
-
const
|
|
6826
|
+
function qa(e, t, l, a, o, i) {
|
|
6827
|
+
const n = $("w-button"), r = $("w-icon"), d = $("w-tree", !0);
|
|
6786
6828
|
return s(), u("ul", {
|
|
6787
6829
|
class: f(["w-tree", i.classes])
|
|
6788
6830
|
}, [
|
|
6789
|
-
(s(!0), u(
|
|
6831
|
+
(s(!0), u(_, null, T(e.currentDepthItems, (h, y) => (s(), u("li", {
|
|
6790
6832
|
class: f(["w-tree__item", i.itemClasses(h)]),
|
|
6791
6833
|
key: y
|
|
6792
6834
|
}, [
|
|
6793
|
-
(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 }, {
|
|
6794
6836
|
onClick: (S) => !l.disabled && !h.disabled && i.onLabelClick(h, S),
|
|
6795
6837
|
onKeydown: (S) => !l.disabled && !h.disabled && i.onLabelKeydown(h, S),
|
|
6796
6838
|
tabindex: !l.disabled && !h.disabled && (h.children || h.branch || l.selectable) && !(l.unexpandableEmpty && !h.children) ? 0 : null
|
|
6797
6839
|
}), {
|
|
6798
6840
|
default: m(() => [
|
|
6799
|
-
(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, {
|
|
6800
6842
|
key: 0,
|
|
6801
6843
|
class: "w-tree__item-expand",
|
|
6802
|
-
onClick:
|
|
6844
|
+
onClick: E((S) => !l.disabled && !h.disabled && i.onLabelClick(h, S), ["stop"]),
|
|
6803
6845
|
color: "inherit",
|
|
6804
6846
|
icon: h.open && l.expandOpenIcon || l.expandIcon,
|
|
6805
6847
|
"icon-props": { rotate90a: !h.open },
|
|
@@ -6815,13 +6857,13 @@ function qa(e, t, l, a, n, i) {
|
|
|
6815
6857
|
}, () => {
|
|
6816
6858
|
var S;
|
|
6817
6859
|
return [
|
|
6818
|
-
i.itemIcon(h) ? (s(),
|
|
6860
|
+
i.itemIcon(h) ? (s(), b(r, {
|
|
6819
6861
|
key: 0,
|
|
6820
6862
|
class: "w-tree__item-icon",
|
|
6821
6863
|
color: h.originalItem[l.itemIconColorKey] || l.iconColor
|
|
6822
6864
|
}, {
|
|
6823
6865
|
default: m(() => [
|
|
6824
|
-
|
|
6866
|
+
C(k(i.itemIcon(h)), 1)
|
|
6825
6867
|
]),
|
|
6826
6868
|
_: 2
|
|
6827
6869
|
}, 1032, ["color"])) : c("", !0),
|
|
@@ -6834,13 +6876,13 @@ function qa(e, t, l, a, n, i) {
|
|
|
6834
6876
|
]),
|
|
6835
6877
|
_: 2
|
|
6836
6878
|
}, 1040, ["onClick", "onKeydown", "tabindex"])),
|
|
6837
|
-
(s(),
|
|
6879
|
+
(s(), b(I(l.noTransition ? "div" : "w-transition-expand"), {
|
|
6838
6880
|
y: !l.noTransition || null,
|
|
6839
6881
|
onAfterEnter: (S) => e.$emit("open", { item: h.originalItem, open: h.open, depth: l.depth }),
|
|
6840
6882
|
onAfterLeave: (S) => e.$emit("close", { item: h.originalItem, open: h.open, depth: l.depth })
|
|
6841
6883
|
}, {
|
|
6842
6884
|
default: m(() => [
|
|
6843
|
-
h.children && h.open ? (s(),
|
|
6885
|
+
h.children && h.open ? (s(), b(d, B({ key: 0 }, e.$props, {
|
|
6844
6886
|
depth: l.depth + 1,
|
|
6845
6887
|
data: h.originalItem.children,
|
|
6846
6888
|
onBeforeOpen: t[0] || (t[0] = (S) => e.$emit("before-open", S)),
|
|
@@ -6851,10 +6893,10 @@ function qa(e, t, l, a, n, i) {
|
|
|
6851
6893
|
onSelect: t[5] || (t[5] = (S) => e.$emit("select", S)),
|
|
6852
6894
|
"onUpdate:modelValue": t[6] || (t[6] = (S) => e.$emit("update:model-value", S))
|
|
6853
6895
|
}), {
|
|
6854
|
-
item: m(({ item: S, depth:
|
|
6896
|
+
item: m(({ item: S, depth: g, open: R }) => [
|
|
6855
6897
|
p(e.$slots, "item", {
|
|
6856
6898
|
item: S,
|
|
6857
|
-
depth:
|
|
6899
|
+
depth: g,
|
|
6858
6900
|
open: R
|
|
6859
6901
|
})
|
|
6860
6902
|
]),
|
|
@@ -6914,7 +6956,7 @@ const Ga = {
|
|
|
6914
6956
|
if (this.currentDepthItems = [], !Array.isArray(e) && typeof e != "object")
|
|
6915
6957
|
return J(`[w-tree] the tree items must be of type array or object, ${typeof e} received.`);
|
|
6916
6958
|
Array.isArray(e) || (e = [e]), e.forEach((l, a) => {
|
|
6917
|
-
var
|
|
6959
|
+
var o;
|
|
6918
6960
|
this.currentDepthItems.push({
|
|
6919
6961
|
originalItem: l,
|
|
6920
6962
|
_uid: this.depth.toString() + (a + 1),
|
|
@@ -6924,7 +6966,7 @@ const Ga = {
|
|
|
6924
6966
|
route: l[this.itemRouteKey],
|
|
6925
6967
|
disabled: l[this.itemDisabledKey],
|
|
6926
6968
|
depth: this.depth,
|
|
6927
|
-
open: !!(((
|
|
6969
|
+
open: !!(((o = t[a]) == null ? void 0 : o.open) || this.expandAll || l[this.itemOpenKey])
|
|
6928
6970
|
});
|
|
6929
6971
|
});
|
|
6930
6972
|
},
|
|
@@ -6942,8 +6984,8 @@ const Ga = {
|
|
|
6942
6984
|
},
|
|
6943
6985
|
onLabelKeydown(e, t) {
|
|
6944
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))) {
|
|
6945
|
-
const a = this.$el.closest(".w-tree--depth0").querySelectorAll('.w-tree__item-label[tabindex="0"]'),
|
|
6946
|
-
[...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);
|
|
6947
6989
|
}
|
|
6948
6990
|
this.selectable && this.emitItemSelection(e, t);
|
|
6949
6991
|
},
|
|
@@ -6996,8 +7038,8 @@ const Ga = {
|
|
|
6996
7038
|
WBreadcrumbs: dt,
|
|
6997
7039
|
WButton: yt,
|
|
6998
7040
|
WCard: _t,
|
|
6999
|
-
WCheckbox:
|
|
7000
|
-
WCheckboxes:
|
|
7041
|
+
WCheckbox: xt,
|
|
7042
|
+
WCheckboxes: Et,
|
|
7001
7043
|
WConfirm: At,
|
|
7002
7044
|
WDatePicker: Ft,
|
|
7003
7045
|
WDialog: Ut,
|
|
@@ -7009,8 +7051,8 @@ const Ga = {
|
|
|
7009
7051
|
WGrid: fl,
|
|
7010
7052
|
WIcon: bl,
|
|
7011
7053
|
WImage: kl,
|
|
7012
|
-
WInput:
|
|
7013
|
-
WList:
|
|
7054
|
+
WInput: Pl,
|
|
7055
|
+
WList: El,
|
|
7014
7056
|
WMenu: Wl,
|
|
7015
7057
|
WNotification: Dl,
|
|
7016
7058
|
WOverlay: jl,
|
|
@@ -7020,7 +7062,7 @@ const Ga = {
|
|
|
7020
7062
|
WRadios: mi,
|
|
7021
7063
|
WRating: vi,
|
|
7022
7064
|
WScrollbar: Bi,
|
|
7023
|
-
WSelect:
|
|
7065
|
+
WSelect: Oi,
|
|
7024
7066
|
WSlider: Gi,
|
|
7025
7067
|
WSpinner: Qi,
|
|
7026
7068
|
WSteps: ts,
|
|
@@ -7035,8 +7077,8 @@ const Ga = {
|
|
|
7035
7077
|
WTransitionBounce: Ca,
|
|
7036
7078
|
WTransitionExpand: $a,
|
|
7037
7079
|
WTransitionFade: Ra,
|
|
7038
|
-
WTransitionScale:
|
|
7039
|
-
WTransitionScaleFade:
|
|
7080
|
+
WTransitionScale: xa,
|
|
7081
|
+
WTransitionScaleFade: za,
|
|
7040
7082
|
WTransitionSlide: Na,
|
|
7041
7083
|
WTransitionSlideFade: Ka,
|
|
7042
7084
|
WTransitionTwist: Ha,
|