wave-ui 3.8.1 → 3.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/wave-ui.cjs.js +1 -1
- package/dist/wave-ui.css +1 -1
- package/dist/wave-ui.es.js +1018 -970
- package/dist/wave-ui.umd.js +1 -1
- package/package.json +1 -1
- package/src/wave-ui/components/w-accordion.vue +1 -4
- package/src/wave-ui/components/w-alert.vue +1 -4
- package/src/wave-ui/components/w-autocomplete.vue +86 -25
- package/src/wave-ui/components/w-button/button.vue +2 -8
- package/src/wave-ui/components/w-drawer.vue +2 -8
- package/src/wave-ui/components/w-image.vue +2 -8
- package/src/wave-ui/components/w-list.vue +1 -4
- package/src/wave-ui/components/w-notification-manager.vue +1 -3
- package/src/wave-ui/components/w-progress.vue +2 -8
- package/src/wave-ui/components/w-rating.vue +1 -4
- package/src/wave-ui/components/w-slider.vue +1 -4
- package/src/wave-ui/components/w-table.vue +2 -8
- package/src/wave-ui/components/w-tabs/index.vue +1 -4
- package/src/wave-ui/components/w-tag.vue +1 -4
- package/src/wave-ui/scss/_base.scss +1 -1
- package/src/wave-ui/scss/_variables.scss +1 -1
package/dist/wave-ui.es.js
CHANGED
|
@@ -8,8 +8,8 @@ var Y = (e, t, i) => (ne(e, t, "read from private field"), i ? i.call(e) : t.get
|
|
|
8
8
|
if (t.has(e))
|
|
9
9
|
throw TypeError("Cannot add the same private member more than once");
|
|
10
10
|
t instanceof WeakSet ? t.add(e) : t.set(e, i);
|
|
11
|
-
}, te = (e, t, i,
|
|
12
|
-
import { reactive as Q, resolveComponent as $, openBlock as
|
|
11
|
+
}, te = (e, t, i, s) => (ne(e, t, "write to private field"), s ? s.call(e, i) : t.set(e, i), i);
|
|
12
|
+
import { reactive as Q, resolveComponent as $, openBlock as o, createBlock as g, Teleport as _e, createVNode as V, TransitionGroup as oe, normalizeClass as f, withCtx as m, createElementBlock as u, Fragment as k, renderList as L, mergeProps as C, createElementVNode as y, createCommentVNode as p, createApp as Ce, defineComponent as Se, inject as Be, withKeys as W, withModifiers as M, renderSlot as c, toHandlers as z, createTextVNode as S, toDisplayString as _, Transition as O, normalizeStyle as R, resolveDynamicComponent as I, normalizeProps as le, resolveDirective as ge, withDirectives as K, createSlots as Z, vShow as ae, vModelText as be, vModelDynamic as $e, KeepAlive as Ve } from "vue";
|
|
13
13
|
const Ie = Q({
|
|
14
14
|
on: "#app",
|
|
15
15
|
breakpoints: {
|
|
@@ -56,32 +56,32 @@ const Ie = Q({
|
|
|
56
56
|
t = Object.assign(t, e);
|
|
57
57
|
else
|
|
58
58
|
for (const i in e) {
|
|
59
|
-
const
|
|
60
|
-
typeof
|
|
59
|
+
const s = e[i];
|
|
60
|
+
typeof s == "object" ? ye(e[i], t[i]) : t[i] = s;
|
|
61
61
|
}
|
|
62
62
|
return t;
|
|
63
63
|
}, U = (e) => console.warn(`Wave UI: ${e}`), ie = (e) => console.error(`Wave UI: ${e}`), re = (e, t) => "#" + e.slice(1).match(/../g).map((i) => (i = +`0x${i}` + t, (i < 0 ? 0 : i > 255 ? 255 : i).toString(16).padStart(2, 0))).join(""), Te = (e) => {
|
|
64
64
|
["light", "dark"].forEach((t) => {
|
|
65
65
|
const i = e.colors[t];
|
|
66
66
|
i.shades = {};
|
|
67
|
-
for (let
|
|
68
|
-
if (
|
|
67
|
+
for (let s in i) {
|
|
68
|
+
if (s === "shades")
|
|
69
69
|
continue;
|
|
70
|
-
|
|
71
|
-
const n =
|
|
72
|
-
n.length === 3 && (
|
|
70
|
+
s = { label: s, color: i[s].replace("#", "") };
|
|
71
|
+
const n = s.color;
|
|
72
|
+
n.length === 3 && (s.color = n[0] + "" + n[0] + n[1] + n[1] + n[2] + n[2]);
|
|
73
73
|
for (let l = 1; l <= 3; l++) {
|
|
74
|
-
const a = re(`#${
|
|
75
|
-
i.shades[`${
|
|
74
|
+
const a = re(`#${s.color}`, l * 40), r = re(`#${s.color}`, -l * 40);
|
|
75
|
+
i.shades[`${s.label}-light${l}`] = a, i.shades[`${s.label}-dark${l}`] = r;
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
78
|
});
|
|
79
79
|
}, de = (e, t) => {
|
|
80
80
|
const i = {
|
|
81
|
-
...t.reduce((
|
|
82
|
-
|
|
81
|
+
...t.reduce((s, n) => {
|
|
82
|
+
s[n.label] = n.color;
|
|
83
83
|
const l = (n.shades || []).reduce((a, r) => (a[r.label] = r.color, a), {});
|
|
84
|
-
return { ...
|
|
84
|
+
return { ...s, ...l };
|
|
85
85
|
}, { ...e, ...e.shades })
|
|
86
86
|
};
|
|
87
87
|
return delete i.shades, i;
|
|
@@ -439,35 +439,35 @@ const Ie = Q({
|
|
|
439
439
|
let se = { keys: [], values: [] }, he = null;
|
|
440
440
|
const Le = (e) => {
|
|
441
441
|
let t = "";
|
|
442
|
-
const i = {}, { info:
|
|
442
|
+
const i = {}, { info: s, warning: n, success: l, error: a, shades: r, ...d } = e, { cssScope: h } = q;
|
|
443
443
|
for (const b in d)
|
|
444
444
|
t += `${h} .${b}--bg{background-color:var(--w-${b}-color)}${h} .${b}{color:var(--w-${b}-color)}`;
|
|
445
445
|
for (const b in r)
|
|
446
446
|
t += `${h} .${b}--bg{background-color:${r[b]}}${h} .${b}{color:${r[b]}}`;
|
|
447
|
-
const
|
|
448
|
-
for (const b in
|
|
449
|
-
i[b] =
|
|
447
|
+
const w = { ...d, info: s, warning: n, success: l, error: a };
|
|
448
|
+
for (const b in w)
|
|
449
|
+
i[b] = w[b];
|
|
450
450
|
let B = "";
|
|
451
451
|
return Object.entries(i).forEach(([b, T]) => {
|
|
452
452
|
B += `--w-${b}-color: ${T};`;
|
|
453
453
|
}), `:root{${B}}${t}`;
|
|
454
454
|
}, Re = (e, t) => {
|
|
455
455
|
let i = "";
|
|
456
|
-
const { cssScope:
|
|
456
|
+
const { cssScope: s } = q;
|
|
457
457
|
return e.forEach(({ min: n, label: l }) => {
|
|
458
458
|
if (l === "xs")
|
|
459
459
|
for (let a = 0; a < t; a++)
|
|
460
|
-
i += `${
|
|
460
|
+
i += `${s} .${l}${t - a}{width:${parseFloat(((t - a) * 100 / t).toFixed(4))}%;}`;
|
|
461
461
|
else {
|
|
462
462
|
i += `@media(min-width:${n}px){`;
|
|
463
463
|
for (let a = 0; a < t; a++)
|
|
464
|
-
i += `${
|
|
464
|
+
i += `${s} .${l}${t - a}{width:${parseFloat(((t - a) * 100 / t).toFixed(4))}%;}`;
|
|
465
465
|
i += "}";
|
|
466
466
|
}
|
|
467
467
|
}), i;
|
|
468
468
|
}, xe = (e) => {
|
|
469
469
|
let t = "";
|
|
470
|
-
const { cssScope: i, baseIncrement:
|
|
470
|
+
const { cssScope: i, baseIncrement: s } = q, n = [
|
|
471
471
|
"show{display:block}",
|
|
472
472
|
"hide{display:none}",
|
|
473
473
|
"d-flex{display:flex}",
|
|
@@ -503,23 +503,23 @@ const Le = (e) => {
|
|
|
503
503
|
"justify-space-evenly{justify-content:space-evenly}"
|
|
504
504
|
], l = Array(12).fill();
|
|
505
505
|
return e.forEach(({ label: a, min: r }) => {
|
|
506
|
-
a !== "xs" && (t += `@media(min-width:${r}px){` + n.map((d) => `${i} .${a}u-${d}`).join("") + l.map((d, h) => `.w-grid.${a}u-columns${h + 1}{grid-template-columns:repeat(${h + 1},1fr);}`).join("") + l.map((d, h) => `.w-flex.${a}u-gap${h + 1},.w-grid.${a}u-gap${h + 1}{gap:${(h + 1) *
|
|
506
|
+
a !== "xs" && (t += `@media(min-width:${r}px){` + n.map((d) => `${i} .${a}u-${d}`).join("") + l.map((d, h) => `.w-grid.${a}u-columns${h + 1}{grid-template-columns:repeat(${h + 1},1fr);}`).join("") + l.map((d, h) => `.w-flex.${a}u-gap${h + 1},.w-grid.${a}u-gap${h + 1}{gap:${(h + 1) * s}px;}`).join("") + `.w-flex.${a}u-gap0,.w-flex.${a}u-gap0{gap:0}}`);
|
|
507
507
|
}), e.forEach(({ label: a, min: r, max: d }) => {
|
|
508
|
-
t += `@media (min-width:${r}px) and (max-width:${d}px){` + n.map((h) => `${i} .${a}-${h}`).join("") + l.map((h,
|
|
508
|
+
t += `@media (min-width:${r}px) and (max-width:${d}px){` + n.map((h) => `${i} .${a}-${h}`).join("") + l.map((h, w) => `.w-grid.${a}-columns${w + 1}{grid-template-columns:repeat(${w + 1},1fr);}`).join("") + l.map((h, w) => `.w-flex.${a}-gap${w + 1},.w-grid.${a}-gap${w + 1}{gap:${(w + 1) * s}px;}`).join("") + `.w-flex.${a}-gap0,.w-flex.${a}-gap0{gap:0}}`;
|
|
509
509
|
}), e.forEach(({ label: a, max: r }) => {
|
|
510
|
-
a !== "xl" && (t += `@media (max-width:${r}px){` + n.map((d) => `${i} .${a}d-${d}`).join("") + l.map((d, h) => `.w-grid.${a}d-columns${h + 1}{grid-template-columns:repeat(${h + 1},1fr);}`).join("") + l.map((d, h) => `.w-flex.${a}d-gap${h + 1},.w-grid.${a}d-gap${h + 1}{gap:${(h + 1) *
|
|
510
|
+
a !== "xl" && (t += `@media (max-width:${r}px){` + n.map((d) => `${i} .${a}d-${d}`).join("") + l.map((d, h) => `.w-grid.${a}d-columns${h + 1}{grid-template-columns:repeat(${h + 1},1fr);}`).join("") + l.map((d, h) => `.w-flex.${a}d-gap${h + 1},.w-grid.${a}d-gap${h + 1}{gap:${(h + 1) * s}px;}`).join("") + `.w-flex.${a}d-gap0,.w-flex.${a}d-gap0{gap:0}}`);
|
|
511
511
|
}), t;
|
|
512
512
|
}, ce = (e) => {
|
|
513
513
|
const t = window.innerWidth, i = se.values.slice(0);
|
|
514
514
|
i.push(t), i.sort((n, l) => n - l);
|
|
515
|
-
const
|
|
516
|
-
|
|
517
|
-
name:
|
|
518
|
-
xs:
|
|
519
|
-
sm:
|
|
520
|
-
md:
|
|
521
|
-
lg:
|
|
522
|
-
xl:
|
|
515
|
+
const s = se.keys[i.indexOf(t)] || "xl";
|
|
516
|
+
s !== he && (he = s, e.breakpoint = {
|
|
517
|
+
name: s,
|
|
518
|
+
xs: s === "xs",
|
|
519
|
+
sm: s === "sm",
|
|
520
|
+
md: s === "md",
|
|
521
|
+
lg: s === "lg",
|
|
522
|
+
xl: s === "xl",
|
|
523
523
|
width: t
|
|
524
524
|
}), e.breakpoint.width = window.innerWidth;
|
|
525
525
|
}, Oe = (e) => {
|
|
@@ -527,8 +527,8 @@ const Le = (e) => {
|
|
|
527
527
|
if (se = { keys: Object.keys(t.breakpoints), values: Object.values(t.breakpoints) }, !document.getElementById("wave-ui-styles")) {
|
|
528
528
|
const i = document.createElement("style");
|
|
529
529
|
i.id = "wave-ui-styles", i.innerHTML = Me(t);
|
|
530
|
-
const
|
|
531
|
-
|
|
530
|
+
const s = document.head.querySelectorAll('style,link[rel="stylesheet"]')[0];
|
|
531
|
+
s ? s.before(i) : document.head.appendChild(i);
|
|
532
532
|
}
|
|
533
533
|
ce(e), window.addEventListener("resize", () => ce(e));
|
|
534
534
|
}, Pe = (e) => {
|
|
@@ -542,14 +542,14 @@ const Le = (e) => {
|
|
|
542
542
|
const t = Object.entries(e.breakpoints), i = t.map(([l, a], r) => {
|
|
543
543
|
const [, d = 0] = t[r - 1] || [];
|
|
544
544
|
return { label: l, min: d ? d + 1 : 0, max: a };
|
|
545
|
-
}),
|
|
546
|
-
q.cssScope =
|
|
545
|
+
}), s = getComputedStyle(document.documentElement);
|
|
546
|
+
q.cssScope = s.getPropertyValue("--w-css-scope"), q.baseIncrement = parseInt(s.getPropertyValue("--w-base-increment"));
|
|
547
547
|
let n = "";
|
|
548
548
|
return n += Re(i, e.css.grid), e.css.breakpointLayoutClasses && (n += xe(i)), n;
|
|
549
549
|
}, ze = ["innerHTML"];
|
|
550
|
-
function Ee(e, t, i,
|
|
550
|
+
function Ee(e, t, i, s, n, l) {
|
|
551
551
|
const a = $("w-alert");
|
|
552
|
-
return
|
|
552
|
+
return o(), g(_e, { to: ".w-app" }, [
|
|
553
553
|
V(oe, {
|
|
554
554
|
class: f(["w-notification-manager", { "w-notification-manager--left": l.conf.align === "left" }]),
|
|
555
555
|
tag: "div",
|
|
@@ -557,8 +557,8 @@ function Ee(e, t, i, o, n, l) {
|
|
|
557
557
|
appear: ""
|
|
558
558
|
}, {
|
|
559
559
|
default: m(() => [
|
|
560
|
-
(
|
|
561
|
-
r._value ? (
|
|
560
|
+
(o(!0), u(k, null, L(l.notifications, (r) => (o(), u(k, null, [
|
|
561
|
+
r._value ? (o(), g(a, C({
|
|
562
562
|
class: "white--bg",
|
|
563
563
|
key: r._uid,
|
|
564
564
|
modelValue: r._value,
|
|
@@ -571,17 +571,17 @@ function Ee(e, t, i, o, n, l) {
|
|
|
571
571
|
}, null, 8, ze)
|
|
572
572
|
]),
|
|
573
573
|
_: 2
|
|
574
|
-
}, 1040, ["modelValue", "onUpdate:modelValue", "onClose"])) :
|
|
574
|
+
}, 1040, ["modelValue", "onUpdate:modelValue", "onClose"])) : p("", !0)
|
|
575
575
|
], 64))), 256))
|
|
576
576
|
]),
|
|
577
577
|
_: 1
|
|
578
578
|
}, 8, ["class", "name"])
|
|
579
579
|
]);
|
|
580
580
|
}
|
|
581
|
-
const
|
|
581
|
+
const v = (e, t) => {
|
|
582
582
|
const i = e.__vccOpts || e;
|
|
583
|
-
for (const [
|
|
584
|
-
i[
|
|
583
|
+
for (const [s, n] of t)
|
|
584
|
+
i[s] = n;
|
|
585
585
|
return i;
|
|
586
586
|
}, We = {
|
|
587
587
|
name: "w-notification-manager",
|
|
@@ -599,11 +599,11 @@ const w = (e, t) => {
|
|
|
599
599
|
},
|
|
600
600
|
methods: {
|
|
601
601
|
notifProps(e) {
|
|
602
|
-
const { _value: t, _uid: i, message:
|
|
602
|
+
const { _value: t, _uid: i, message: s, timeout: n, ...l } = e;
|
|
603
603
|
return l.dismiss && (l.dismiss = !0), l;
|
|
604
604
|
}
|
|
605
605
|
}
|
|
606
|
-
}, Ae = /* @__PURE__ */
|
|
606
|
+
}, Ae = /* @__PURE__ */ v(We, [["render", Ee]]);
|
|
607
607
|
var H;
|
|
608
608
|
const F = class {
|
|
609
609
|
constructor() {
|
|
@@ -628,10 +628,10 @@ const F = class {
|
|
|
628
628
|
if (typeof t[0] == "object")
|
|
629
629
|
i = { ...i, ...t[0] };
|
|
630
630
|
else {
|
|
631
|
-
const [
|
|
631
|
+
const [s, n, l] = t;
|
|
632
632
|
i = {
|
|
633
633
|
...i,
|
|
634
|
-
message:
|
|
634
|
+
message: s || "",
|
|
635
635
|
[n === void 0 ? "info" : n]: !0,
|
|
636
636
|
timeout: l || l === 0 ? parseFloat(l) : 4e3
|
|
637
637
|
};
|
|
@@ -644,9 +644,9 @@ const F = class {
|
|
|
644
644
|
};
|
|
645
645
|
let G = F;
|
|
646
646
|
H = new WeakMap(), ee(G, H, void 0);
|
|
647
|
-
const
|
|
648
|
-
const
|
|
649
|
-
e.appendChild(
|
|
647
|
+
const Ke = (e, t, i) => {
|
|
648
|
+
const s = document.createElement("div");
|
|
649
|
+
e.appendChild(s);
|
|
650
650
|
const n = Ce(Se({
|
|
651
651
|
...Ae,
|
|
652
652
|
inject: ["$waveui"]
|
|
@@ -655,16 +655,16 @@ const Ne = (e, t, i) => {
|
|
|
655
655
|
const a = t[l];
|
|
656
656
|
n.component(a.name, { ...a, inject: ["$waveui"] });
|
|
657
657
|
}
|
|
658
|
-
n.mount(
|
|
658
|
+
n.mount(s), s.remove();
|
|
659
659
|
};
|
|
660
660
|
let pe = !1;
|
|
661
|
-
const
|
|
661
|
+
const Ne = (e) => {
|
|
662
662
|
const t = window.matchMedia("(prefers-color-scheme: dark)");
|
|
663
663
|
e.preferredTheme = t.matches ? "dark" : "light", e.switchTheme(e.preferredTheme), t.addEventListener("change", (i) => {
|
|
664
664
|
e.preferredTheme = i.matches ? "dark" : "light", e.switchTheme(e.preferredTheme);
|
|
665
665
|
});
|
|
666
666
|
}, He = (e, t) => {
|
|
667
|
-
var i,
|
|
667
|
+
var i, s;
|
|
668
668
|
for (const n in t)
|
|
669
669
|
if ((i = e.props) != null && i[n])
|
|
670
670
|
e.props[n].default = t[n];
|
|
@@ -672,7 +672,7 @@ const Ke = (e) => {
|
|
|
672
672
|
let l = !1;
|
|
673
673
|
if (Array.isArray(e.mixins) && e.mixins.length) {
|
|
674
674
|
for (const a of e.mixins)
|
|
675
|
-
if ((
|
|
675
|
+
if ((s = a == null ? void 0 : a.props) != null && s[n]) {
|
|
676
676
|
a.props[n].default = t[n], l = !0;
|
|
677
677
|
break;
|
|
678
678
|
}
|
|
@@ -705,8 +705,8 @@ const j = class {
|
|
|
705
705
|
switchTheme(t, i = !1) {
|
|
706
706
|
var n, l;
|
|
707
707
|
this.theme = t, document.documentElement.setAttribute("data-theme", t), (l = (n = document.head.querySelector("#wave-ui-colors")) == null ? void 0 : n.remove) == null || l.call(n);
|
|
708
|
-
const
|
|
709
|
-
Pe(
|
|
708
|
+
const s = this.config.colors[this.theme];
|
|
709
|
+
Pe(s), this.colors = de(s, ue);
|
|
710
710
|
}
|
|
711
711
|
});
|
|
712
712
|
if (Y(j, X)) {
|
|
@@ -717,7 +717,7 @@ const j = class {
|
|
|
717
717
|
const a = { ...i.colors };
|
|
718
718
|
i.colors.light || (i.colors.light = a), i.colors.dark || (i.colors.dark = a), i.colors = { light: i.colors.light, dark: i.colors.dark };
|
|
719
719
|
}
|
|
720
|
-
let { components:
|
|
720
|
+
let { components: s, ...n } = i;
|
|
721
721
|
n = this.$waveui.config = ye(n), n.css.colorShades && Te(n);
|
|
722
722
|
const l = Q(this.$waveui);
|
|
723
723
|
t.config.globalProperties.$waveui = l, t.provide("$waveui", l), n.theme !== "auto" && (this.$waveui.colors = de(n.colors[n.theme], ue));
|
|
@@ -734,9 +734,9 @@ const j = class {
|
|
|
734
734
|
window.addEventListener("scroll", r);
|
|
735
735
|
}
|
|
736
736
|
});
|
|
737
|
-
const { components:
|
|
738
|
-
for (const l in
|
|
739
|
-
const a =
|
|
737
|
+
const { components: s = {} } = i || {};
|
|
738
|
+
for (const l in s) {
|
|
739
|
+
const a = s[l];
|
|
740
740
|
(n = i.presets) != null && n[a.name] && He(a, i.presets[a.name]), t.component(a.name, a);
|
|
741
741
|
}
|
|
742
742
|
t.mixin({
|
|
@@ -744,33 +744,33 @@ const j = class {
|
|
|
744
744
|
if (!pe) {
|
|
745
745
|
pe = !0;
|
|
746
746
|
const l = Be("$waveui"), { config: a } = l, r = document.querySelector(a.on) || document.body;
|
|
747
|
-
r.classList.add("w-app"), a.theme === "auto" ?
|
|
747
|
+
r.classList.add("w-app"), a.theme === "auto" ? Ne(l) : l.switchTheme(a.theme, !0), Oe(l), Ke(r, s, l), t._context.mixins.find((d) => d.mounted && delete d.mounted);
|
|
748
748
|
}
|
|
749
749
|
}
|
|
750
750
|
}), new j(t, i), te(j, X, !0);
|
|
751
751
|
}
|
|
752
752
|
};
|
|
753
|
-
let
|
|
754
|
-
X = new WeakMap(), ee(
|
|
753
|
+
let N = j;
|
|
754
|
+
X = new WeakMap(), ee(N, X, !1);
|
|
755
755
|
const De = ["aria-expanded"], Fe = ["onClick", "onFocus", "onKeypress", "tabindex"], je = ["innerHTML"], Ue = ["innerHTML"];
|
|
756
|
-
function qe(e, t, i,
|
|
756
|
+
function qe(e, t, i, s, n, l) {
|
|
757
757
|
const a = $("w-button"), r = $("w-transition-expand");
|
|
758
|
-
return
|
|
758
|
+
return o(), u("div", {
|
|
759
759
|
class: f(["w-accordion", l.accordionClasses])
|
|
760
760
|
}, [
|
|
761
|
-
(
|
|
761
|
+
(o(!0), u(k, null, L(e.accordionItems, (d, h) => (o(), u("div", {
|
|
762
762
|
class: f(["w-accordion__item", l.itemClasses(d)]),
|
|
763
763
|
key: h,
|
|
764
764
|
"aria-expanded": d._expanded ? "true" : "false"
|
|
765
765
|
}, [
|
|
766
766
|
y("div", {
|
|
767
767
|
class: f(["w-accordion__item-title", i.titleClass]),
|
|
768
|
-
onClick: (
|
|
769
|
-
onFocus: (
|
|
770
|
-
onKeypress: W((
|
|
768
|
+
onClick: (w) => !d._disabled && l.toggleItem(d, w),
|
|
769
|
+
onFocus: (w) => e.$emit("focus", l.getOriginalItem(d)),
|
|
770
|
+
onKeypress: W((w) => !d._disabled && l.toggleItem(d, w), ["enter"]),
|
|
771
771
|
tabindex: !d._disabled && 0
|
|
772
772
|
}, [
|
|
773
|
-
i.expandIcon && !i.expandIconRight ? (
|
|
773
|
+
i.expandIcon && !i.expandIconRight ? (o(), g(a, {
|
|
774
774
|
key: 0,
|
|
775
775
|
class: f(["w-accordion__expand-icon", { "w-accordion__expand-icon--expanded": d._expanded, "w-accordion__expand-icon--rotate90": i.expandIconRotate90 }]),
|
|
776
776
|
icon: d._expanded && i.collapseIcon || i.expandIcon,
|
|
@@ -780,14 +780,14 @@ function qe(e, t, i, o, n, l) {
|
|
|
780
780
|
text: "",
|
|
781
781
|
onKeypress: t[0] || (t[0] = M(() => {
|
|
782
782
|
}, ["stop"])),
|
|
783
|
-
onClick: M((
|
|
784
|
-
}, null, 8, ["icon", "icon-props", "disabled", "onClick", "class"])) :
|
|
785
|
-
e.$slots[`item-title.${d.id || h + 1}`] ?
|
|
783
|
+
onClick: M((w) => !d._disabled && l.toggleItem(d, w), ["stop"])
|
|
784
|
+
}, null, 8, ["icon", "icon-props", "disabled", "onClick", "class"])) : p("", !0),
|
|
785
|
+
e.$slots[`item-title.${d.id || h + 1}`] ? c(e.$slots, `item-title.${d.id || h + 1}`, {
|
|
786
786
|
key: 1,
|
|
787
787
|
item: l.getOriginalItem(d),
|
|
788
788
|
expanded: d._expanded,
|
|
789
789
|
index: h + 1
|
|
790
|
-
}) :
|
|
790
|
+
}) : c(e.$slots, "item-title", {
|
|
791
791
|
key: 2,
|
|
792
792
|
item: l.getOriginalItem(d),
|
|
793
793
|
expanded: d._expanded,
|
|
@@ -798,32 +798,32 @@ function qe(e, t, i, o, n, l) {
|
|
|
798
798
|
innerHTML: d[i.itemTitleKey]
|
|
799
799
|
}, null, 8, je)
|
|
800
800
|
]),
|
|
801
|
-
i.expandIcon && i.expandIconRight ? (
|
|
801
|
+
i.expandIcon && i.expandIconRight ? (o(), g(a, {
|
|
802
802
|
key: 3,
|
|
803
803
|
class: f(["w-accordion__expand-icon", { "w-accordion__expand-icon--expanded": d._expanded, "w-accordion__expand-icon--rotate90": i.expandIconRotate90 }]),
|
|
804
804
|
icon: d._expanded && i.collapseIcon || i.expandIcon,
|
|
805
805
|
text: "",
|
|
806
806
|
onKeypress: t[1] || (t[1] = M(() => {
|
|
807
807
|
}, ["stop"])),
|
|
808
|
-
onClick: M((
|
|
809
|
-
}, null, 8, ["icon", "onClick", "class"])) :
|
|
808
|
+
onClick: M((w) => !d._disabled && l.toggleItem(d, w), ["stop"])
|
|
809
|
+
}, null, 8, ["icon", "onClick", "class"])) : p("", !0)
|
|
810
810
|
], 42, Fe),
|
|
811
811
|
V(r, {
|
|
812
812
|
y: "",
|
|
813
|
-
onAfterLeave: (
|
|
813
|
+
onAfterLeave: (w) => l.onEndOfCollapse(d),
|
|
814
814
|
duration: i.duration
|
|
815
815
|
}, {
|
|
816
816
|
default: m(() => [
|
|
817
|
-
d._expanded ? (
|
|
817
|
+
d._expanded ? (o(), u("div", {
|
|
818
818
|
key: 0,
|
|
819
819
|
class: f(["w-accordion__item-content", i.contentClass])
|
|
820
820
|
}, [
|
|
821
|
-
e.$slots[`item-content.${d.id || h + 1}`] ?
|
|
821
|
+
e.$slots[`item-content.${d.id || h + 1}`] ? c(e.$slots, `item-content.${d.id || h + 1}`, {
|
|
822
822
|
key: 0,
|
|
823
823
|
item: l.getOriginalItem(d),
|
|
824
824
|
expanded: d._expanded,
|
|
825
825
|
index: h + 1
|
|
826
|
-
}) :
|
|
826
|
+
}) : c(e.$slots, "item-content", {
|
|
827
827
|
key: 1,
|
|
828
828
|
item: l.getOriginalItem(d),
|
|
829
829
|
expanded: d._expanded,
|
|
@@ -833,7 +833,7 @@ function qe(e, t, i, o, n, l) {
|
|
|
833
833
|
innerHTML: d[i.itemContentKey]
|
|
834
834
|
}, null, 8, Ue)
|
|
835
835
|
])
|
|
836
|
-
], 2)) :
|
|
836
|
+
], 2)) : p("", !0)
|
|
837
837
|
]),
|
|
838
838
|
_: 2
|
|
839
839
|
}, 1032, ["onAfterLeave", "duration"])
|
|
@@ -884,8 +884,8 @@ const Xe = {
|
|
|
884
884
|
},
|
|
885
885
|
methods: {
|
|
886
886
|
toggleItem(e, t) {
|
|
887
|
-
e._expanded = !e._expanded, this.expandSingle && this.accordionItems.forEach((
|
|
888
|
-
const i = this.accordionItems.map((
|
|
887
|
+
e._expanded = !e._expanded, this.expandSingle && this.accordionItems.forEach((s) => s._index !== e._index && (s._expanded = !1));
|
|
888
|
+
const i = this.accordionItems.map((s) => s._expanded || !1);
|
|
889
889
|
this.$emit("update:modelValue", i), this.$emit("input", i), this.$emit("item-expand", { item: e, expanded: e._expanded }), t.target.blur(), setTimeout(() => t.target.focus(), 300);
|
|
890
890
|
},
|
|
891
891
|
onEndOfCollapse(e) {
|
|
@@ -926,15 +926,15 @@ const Xe = {
|
|
|
926
926
|
deep: !0
|
|
927
927
|
}
|
|
928
928
|
}
|
|
929
|
-
}, Ye = /* @__PURE__ */
|
|
930
|
-
function Je(e, t, i,
|
|
929
|
+
}, Ye = /* @__PURE__ */ v(Xe, [["render", qe]]), Ge = { class: "w-alert__content" };
|
|
930
|
+
function Je(e, t, i, s, n, l) {
|
|
931
931
|
const a = $("w-icon"), r = $("w-button");
|
|
932
|
-
return n.show ? (
|
|
932
|
+
return n.show ? (o(), u("div", C({
|
|
933
933
|
key: 0,
|
|
934
934
|
class: "w-alert"
|
|
935
935
|
}, z(e.$attrs, !0), { class: l.classes }), [
|
|
936
|
-
l.type || i.icon || i.dismiss ? (
|
|
937
|
-
l.type || i.icon ? (
|
|
936
|
+
l.type || i.icon || i.dismiss ? (o(), u(k, { key: 0 }, [
|
|
937
|
+
l.type || i.icon ? (o(), g(a, {
|
|
938
938
|
key: 0,
|
|
939
939
|
class: "w-alert__icon mr2"
|
|
940
940
|
}, {
|
|
@@ -942,11 +942,11 @@ function Je(e, t, i, o, n, l) {
|
|
|
942
942
|
S(_(l.type ? l.typeIcon : i.icon), 1)
|
|
943
943
|
]),
|
|
944
944
|
_: 1
|
|
945
|
-
})) :
|
|
945
|
+
})) : p("", !0),
|
|
946
946
|
y("div", Ge, [
|
|
947
|
-
|
|
947
|
+
c(e.$slots, "default")
|
|
948
948
|
]),
|
|
949
|
-
i.dismiss ? (
|
|
949
|
+
i.dismiss ? (o(), g(r, {
|
|
950
950
|
key: 1,
|
|
951
951
|
class: "w-alert__dismiss",
|
|
952
952
|
onClick: t[0] || (t[0] = (d) => {
|
|
@@ -956,9 +956,9 @@ function Je(e, t, i, o, n, l) {
|
|
|
956
956
|
color: "inherit",
|
|
957
957
|
sm: "",
|
|
958
958
|
text: ""
|
|
959
|
-
})) :
|
|
960
|
-
], 64)) :
|
|
961
|
-
], 16)) :
|
|
959
|
+
})) : p("", !0)
|
|
960
|
+
], 64)) : c(e.$slots, "default", { key: 1 })
|
|
961
|
+
], 16)) : p("", !0);
|
|
962
962
|
}
|
|
963
963
|
const Qe = {
|
|
964
964
|
name: "w-alert",
|
|
@@ -1039,71 +1039,93 @@ const Qe = {
|
|
|
1039
1039
|
this.show = e;
|
|
1040
1040
|
}
|
|
1041
1041
|
}
|
|
1042
|
-
}, Ze = /* @__PURE__ */
|
|
1043
|
-
|
|
1044
|
-
class: "w-autocomplete__menu",
|
|
1045
|
-
ref: "menu"
|
|
1046
|
-
}, ot = ["onClick"], at = ["innerHTML"], nt = ["innerHTML"];
|
|
1047
|
-
function rt(e, t, i, o, n, l) {
|
|
1042
|
+
}, Ze = /* @__PURE__ */ v(Qe, [["render", Je]]), et = { class: "w-autocomplete__selection" }, tt = ["innerHTML"], it = ["innerHTML"], lt = ["value"], st = ["onClick"], ot = ["innerHTML"], at = ["innerHTML"];
|
|
1043
|
+
function nt(e, t, i, s, n, l) {
|
|
1048
1044
|
const a = $("w-button"), r = $("w-transition-slide-fade");
|
|
1049
|
-
return
|
|
1045
|
+
return o(), u("div", {
|
|
1050
1046
|
class: f(["w-autocomplete", l.classes]),
|
|
1051
|
-
onClick: t[
|
|
1047
|
+
onClick: t[5] || (t[5] = (...d) => l.onClick && l.onClick(...d))
|
|
1052
1048
|
}, [
|
|
1053
|
-
e.selection.length ? (
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1049
|
+
e.selection.length ? (o(!0), u(k, { key: 0 }, L(e.selection, (d, h) => (o(), u("div", et, [
|
|
1050
|
+
c(e.$slots, "selection", {
|
|
1051
|
+
item: d,
|
|
1052
|
+
unselect: (w) => l.unselectItem(w)
|
|
1053
|
+
}, () => [
|
|
1054
|
+
y("span", {
|
|
1055
|
+
innerHTML: d[i.itemLabelKey]
|
|
1056
|
+
}, null, 8, tt),
|
|
1057
|
+
V(a, {
|
|
1058
|
+
onClick: M((w) => l.unselectItem(h), ["stop"]),
|
|
1059
|
+
icon: "wi-cross",
|
|
1060
|
+
xs: "",
|
|
1061
|
+
text: "",
|
|
1062
|
+
color: "currentColor"
|
|
1063
|
+
}, null, 8, ["onClick"])
|
|
1064
|
+
])
|
|
1065
|
+
]))), 256)) : p("", !0),
|
|
1066
|
+
!e.selection.length && !e.keywords && i.placeholder ? (o(), u("div", {
|
|
1065
1067
|
key: 1,
|
|
1066
1068
|
class: "w-autocomplete__placeholder",
|
|
1067
1069
|
innerHTML: i.placeholder
|
|
1068
|
-
}, null, 8, it)) :
|
|
1070
|
+
}, null, 8, it)) : p("", !0),
|
|
1069
1071
|
y("input", C({
|
|
1070
1072
|
class: "w-autocomplete__input",
|
|
1071
1073
|
ref: "input",
|
|
1072
|
-
|
|
1074
|
+
value: e.keywords
|
|
1073
1075
|
}, z(l.inputEventListeners, !0)), null, 16, lt),
|
|
1074
|
-
V(r,
|
|
1076
|
+
V(r, null, {
|
|
1075
1077
|
default: m(() => [
|
|
1076
|
-
e.menuOpen ? (
|
|
1077
|
-
|
|
1078
|
+
e.menuOpen ? (o(), u("ul", {
|
|
1079
|
+
key: 0,
|
|
1080
|
+
class: "w-autocomplete__menu",
|
|
1081
|
+
ref: "menu",
|
|
1082
|
+
onMousedown: t[1] || (t[1] = (d) => e.menuIsBeingClicked = !0),
|
|
1083
|
+
onMouseup: t[2] || (t[2] = (...d) => l.setEndOfMenuClick && l.setEndOfMenuClick(...d)),
|
|
1084
|
+
onTouchstart: t[3] || (t[3] = (d) => e.menuIsBeingClicked = !0),
|
|
1085
|
+
onTouchend: t[4] || (t[4] = (...d) => l.setEndOfMenuClick && l.setEndOfMenuClick(...d))
|
|
1086
|
+
}, [
|
|
1087
|
+
(o(!0), u(k, null, L(l.filteredItems, (d, h) => (o(), u("li", {
|
|
1078
1088
|
key: h,
|
|
1079
|
-
onClick: M((
|
|
1089
|
+
onClick: M((w) => (l.selectItem(d), e.$emit("item-click", d)), ["stop"]),
|
|
1080
1090
|
class: f({ highlighted: e.highlightedItem === d.uid })
|
|
1081
1091
|
}, [
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1092
|
+
c(e.$slots, "item", {
|
|
1093
|
+
item: d,
|
|
1094
|
+
highlighted: e.highlightedItem === d.uid
|
|
1095
|
+
}, () => [
|
|
1096
|
+
y("span", {
|
|
1097
|
+
innerHTML: d[i.itemLabelKey]
|
|
1098
|
+
}, null, 8, ot)
|
|
1099
|
+
])
|
|
1100
|
+
], 10, st))), 128)),
|
|
1101
|
+
l.filteredItems.length ? p("", !0) : (o(), u("li", {
|
|
1087
1102
|
key: 0,
|
|
1088
1103
|
class: f(["w-autocomplete__no-match", { "w-autocomplete__no-match--default": !e.$slots.noMatch }])
|
|
1089
1104
|
}, [
|
|
1090
|
-
|
|
1105
|
+
c(e.$slots, "no-match", {}, () => {
|
|
1091
1106
|
var d;
|
|
1092
1107
|
return [
|
|
1093
1108
|
y("div", {
|
|
1094
1109
|
class: "caption",
|
|
1095
1110
|
innerHTML: (d = i.noMatch) != null ? d : "No match."
|
|
1096
|
-
}, null, 8,
|
|
1111
|
+
}, null, 8, at)
|
|
1097
1112
|
];
|
|
1098
1113
|
})
|
|
1099
|
-
], 2))
|
|
1100
|
-
|
|
1114
|
+
], 2)),
|
|
1115
|
+
e.$slots["extra-item"] ? (o(), u("li", {
|
|
1116
|
+
key: 1,
|
|
1117
|
+
class: f(["w-autocomplete__extra-item", { highlighted: e.highlightedItem === "extra-item" }]),
|
|
1118
|
+
onClick: t[0] || (t[0] = (...d) => l.selectExtraItem && l.selectExtraItem(...d))
|
|
1119
|
+
}, [
|
|
1120
|
+
c(e.$slots, "extra-item")
|
|
1121
|
+
], 2)) : p("", !0)
|
|
1122
|
+
], 544)) : p("", !0)
|
|
1101
1123
|
]),
|
|
1102
1124
|
_: 3
|
|
1103
1125
|
})
|
|
1104
1126
|
], 2);
|
|
1105
1127
|
}
|
|
1106
|
-
const
|
|
1128
|
+
const rt = {
|
|
1107
1129
|
name: "w-autocomplete",
|
|
1108
1130
|
props: {
|
|
1109
1131
|
items: { type: Array, required: !0 },
|
|
@@ -1117,12 +1139,13 @@ const dt = {
|
|
|
1117
1139
|
itemLabelKey: { type: String, default: "label" },
|
|
1118
1140
|
itemSearchableKey: { type: String, default: "searchable" }
|
|
1119
1141
|
},
|
|
1120
|
-
emits: ["input"],
|
|
1142
|
+
emits: ["update:modelValue", "input", "focus", "blur", "keydown", "item-click", "item-select", "extra-item-select"],
|
|
1121
1143
|
data: () => ({
|
|
1122
1144
|
keywords: "",
|
|
1123
1145
|
selection: [],
|
|
1124
1146
|
menuOpen: !1,
|
|
1125
|
-
highlightedItem: null
|
|
1147
|
+
highlightedItem: null,
|
|
1148
|
+
menuIsBeingClicked: !1
|
|
1126
1149
|
}),
|
|
1127
1150
|
computed: {
|
|
1128
1151
|
normalizedKeywords() {
|
|
@@ -1140,20 +1163,27 @@ const dt = {
|
|
|
1140
1163
|
},
|
|
1141
1164
|
filteredItems() {
|
|
1142
1165
|
let e = this.optimizedItemsForSearch;
|
|
1143
|
-
const t = this.normalizedSelection.join(","), i = (
|
|
1144
|
-
return this.keywords ? e = e.filter((
|
|
1166
|
+
const t = this.normalizedSelection.join(","), i = (s) => !t.includes(s.searchable);
|
|
1167
|
+
return this.keywords ? e = e.filter((s) => s.searchable.includes(this.normalizedKeywords) ? this.multiple && !this.allowDuplicates ? i(s) : !0 : !1) : this.multiple && !this.allowDuplicates && (e = e.filter(i)), e;
|
|
1145
1168
|
},
|
|
1146
1169
|
highlightedItemIndex() {
|
|
1147
|
-
return this.highlightedItem === null ? -1 : this.filteredItems.findIndex((e) => e.uid === this.highlightedItem);
|
|
1170
|
+
return this.highlightedItem === null ? -1 : this.highlightedItem === "extra-item" ? this.filteredItems.length : this.filteredItems.findIndex((e) => e.uid === this.highlightedItem);
|
|
1148
1171
|
},
|
|
1149
1172
|
inputEventListeners() {
|
|
1150
1173
|
return {
|
|
1151
1174
|
...this.$attrs,
|
|
1152
1175
|
input: (e) => {
|
|
1153
|
-
this.keywords = e.target.value
|
|
1176
|
+
this.keywords = e.target.value;
|
|
1177
|
+
},
|
|
1178
|
+
focus: (e) => {
|
|
1179
|
+
this.menuIsBeingClicked || (this.onFocus(e), this.$emit("focus", e));
|
|
1180
|
+
},
|
|
1181
|
+
blur: (e) => {
|
|
1182
|
+
this.menuIsBeingClicked || this.$emit("blur", e);
|
|
1183
|
+
},
|
|
1184
|
+
keydown: (e) => {
|
|
1185
|
+
this.onKeydown(e), this.$emit("keydown", e);
|
|
1154
1186
|
},
|
|
1155
|
-
focus: this.onFocus,
|
|
1156
|
-
keydown: this.onKeydown,
|
|
1157
1187
|
drop: this.onDrop,
|
|
1158
1188
|
compositionstart: this.onCompositionStart,
|
|
1159
1189
|
compositionupdate: this.onCompositionUpdate
|
|
@@ -1173,10 +1203,18 @@ const dt = {
|
|
|
1173
1203
|
return e.toLowerCase().normalize("NFKD").replace(/\p{Diacritic}/gu, "").replace(/œ/g, "oe");
|
|
1174
1204
|
},
|
|
1175
1205
|
selectItem(e) {
|
|
1176
|
-
this.multiple || (this.selection = []), this.selection.push(e), this.highlightedItem = e.uid, this.keywords = ""
|
|
1206
|
+
this.multiple || (this.selection = []), this.selection.push(e), this.highlightedItem = e.uid, this.keywords = "";
|
|
1207
|
+
const t = this.multiple ? this.selection.map((i) => i[this.itemValueKey]) : e[this.itemValueKey];
|
|
1208
|
+
this.$emit("item-select", e), this.$emit("update:modelValue", t), this.$emit("input", t), this.$refs.input.focus(), this.multiple || this.closeMenu();
|
|
1177
1209
|
},
|
|
1178
1210
|
unselectItem(e) {
|
|
1179
|
-
this.selection.splice(e != null ? e : this.selection.length - 1, 1), this.highlightedItem = null, this.$emit("input", null), this.$refs.input.focus();
|
|
1211
|
+
this.selection.splice(e != null ? e : this.selection.length - 1, 1), this.highlightedItem = null, this.$emit("update:modelValue", null), this.$emit("input", null), this.$refs.input.focus();
|
|
1212
|
+
},
|
|
1213
|
+
selectExtraItem() {
|
|
1214
|
+
this.keywords = "", this.$emit("extra-item-select"), this.closeMenu();
|
|
1215
|
+
},
|
|
1216
|
+
setEndOfMenuClick() {
|
|
1217
|
+
setTimeout(() => this.menuIsBeingClicked = !1, 100);
|
|
1180
1218
|
},
|
|
1181
1219
|
onClick() {
|
|
1182
1220
|
this.openOnKeydown || this.openMenu(), this.$refs.input.focus();
|
|
@@ -1186,22 +1224,25 @@ const dt = {
|
|
|
1186
1224
|
},
|
|
1187
1225
|
onKeydown(e) {
|
|
1188
1226
|
var i;
|
|
1189
|
-
const t = this.filteredItems.length;
|
|
1227
|
+
const t = this.filteredItems.length + (this.$slots["extra-item"] ? 1 : 0);
|
|
1190
1228
|
if ((!this.openOnKeydown || (this.keywords || e.key.length === 1) && !this.menuOpen) && this.openMenu(), e.keyCode === 9)
|
|
1191
1229
|
this.closeMenu();
|
|
1192
1230
|
else if (e.keyCode === 8 && (!this.keywords || !e.target.selectionStart && !e.target.selectionEnd))
|
|
1193
1231
|
this.unselectItem();
|
|
1194
1232
|
else if (e.keyCode === 13)
|
|
1195
|
-
e.preventDefault(), this.highlightedItemIndex >= 0 && this.selectItem(this.filteredItems[this.highlightedItemIndex]);
|
|
1233
|
+
e.preventDefault(), this.highlightedItem === "extra-item" ? this.selectExtraItem() : this.highlightedItemIndex >= 0 && this.selectItem(this.filteredItems[this.highlightedItemIndex]);
|
|
1196
1234
|
else if ([38, 40].includes(e.keyCode)) {
|
|
1197
1235
|
e.preventDefault();
|
|
1198
|
-
let
|
|
1199
|
-
|
|
1236
|
+
let s = this.highlightedItemIndex;
|
|
1237
|
+
s === -1 ? s = e.keyCode === 38 ? t - 1 : 0 : s = (s + (e.keyCode === 38 ? -1 : 1) + t) % t, this.$slots["extra-item"] && s === t - 1 ? this.highlightedItem = "extra-item" : this.highlightedItem = ((i = this.filteredItems[s]) == null ? void 0 : i.uid) || 0;
|
|
1200
1238
|
const n = this.$refs.menu;
|
|
1201
|
-
if (n)
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1239
|
+
if (n)
|
|
1240
|
+
if (this.$slots["extra-item"] && s === t - 1)
|
|
1241
|
+
n.scrollTop = n.scrollHeight;
|
|
1242
|
+
else {
|
|
1243
|
+
const { offsetHeight: l, offsetTop: a } = n.childNodes[s] || {};
|
|
1244
|
+
n.scrollTop + n.offsetHeight - l < a ? n.scrollTop = a - n.offsetHeight + l : n.scrollTop > a && (n.scrollTop = a);
|
|
1245
|
+
}
|
|
1205
1246
|
} else
|
|
1206
1247
|
!this.multiple && this.selection.length && e.key.length === 1 && e.preventDefault();
|
|
1207
1248
|
},
|
|
@@ -1231,14 +1272,21 @@ const dt = {
|
|
|
1231
1272
|
},
|
|
1232
1273
|
beforeUnmount() {
|
|
1233
1274
|
document.removeEventListener("click", this.onDocumentClick);
|
|
1275
|
+
},
|
|
1276
|
+
watch: {
|
|
1277
|
+
modelValue(e) {
|
|
1278
|
+
this.selection = [], e && (Array.isArray(e) ? e : [e]).forEach((i) => {
|
|
1279
|
+
this.selection.push(this.optimizedItemsForSearch.find((s) => s[this.itemValueKey] === +i));
|
|
1280
|
+
});
|
|
1281
|
+
}
|
|
1234
1282
|
}
|
|
1235
|
-
},
|
|
1236
|
-
function
|
|
1237
|
-
return
|
|
1238
|
-
|
|
1283
|
+
}, dt = /* @__PURE__ */ v(rt, [["render", nt]]), ut = { class: "w-app" };
|
|
1284
|
+
function ht(e, t, i, s, n, l) {
|
|
1285
|
+
return o(), u("div", ut, [
|
|
1286
|
+
c(e.$slots, "default")
|
|
1239
1287
|
]);
|
|
1240
1288
|
}
|
|
1241
|
-
const
|
|
1289
|
+
const ct = {
|
|
1242
1290
|
name: "w-app",
|
|
1243
1291
|
props: {
|
|
1244
1292
|
block: { type: Boolean },
|
|
@@ -1253,15 +1301,15 @@ const pt = {
|
|
|
1253
1301
|
textCenter: { type: Boolean },
|
|
1254
1302
|
textRight: { type: Boolean }
|
|
1255
1303
|
}
|
|
1256
|
-
},
|
|
1257
|
-
function
|
|
1258
|
-
return
|
|
1259
|
-
|
|
1304
|
+
}, pt = /* @__PURE__ */ v(ct, [["render", ht]]);
|
|
1305
|
+
function ft(e, t, i, s, n, l) {
|
|
1306
|
+
return o(), u("div", C({ class: "w-badge-wrap" }, z(e.$attrs, !0)), [
|
|
1307
|
+
c(e.$slots, "default"),
|
|
1260
1308
|
V(O, {
|
|
1261
1309
|
name: `${i.transition}`
|
|
1262
1310
|
}, {
|
|
1263
1311
|
default: m(() => [
|
|
1264
|
-
i.modelValue ? (
|
|
1312
|
+
i.modelValue ? (o(), u("div", {
|
|
1265
1313
|
key: 0,
|
|
1266
1314
|
class: f(["w-badge", l.classes]),
|
|
1267
1315
|
style: R(l.styles),
|
|
@@ -1270,16 +1318,16 @@ function mt(e, t, i, o, n, l) {
|
|
|
1270
1318
|
"aria-live": "polite",
|
|
1271
1319
|
role: "status"
|
|
1272
1320
|
}, [
|
|
1273
|
-
i.dot ?
|
|
1321
|
+
i.dot ? p("", !0) : c(e.$slots, "badge", { key: 0 }, () => [
|
|
1274
1322
|
S(_(i.modelValue === !0 ? "" : i.modelValue || ""), 1)
|
|
1275
1323
|
])
|
|
1276
|
-
], 6)) :
|
|
1324
|
+
], 6)) : p("", !0)
|
|
1277
1325
|
]),
|
|
1278
1326
|
_: 3
|
|
1279
1327
|
}, 8, ["name"])
|
|
1280
1328
|
], 16);
|
|
1281
1329
|
}
|
|
1282
|
-
const
|
|
1330
|
+
const mt = {
|
|
1283
1331
|
name: "w-badge",
|
|
1284
1332
|
props: {
|
|
1285
1333
|
modelValue: { default: !0 },
|
|
@@ -1342,19 +1390,19 @@ const gt = {
|
|
|
1342
1390
|
return this.forcedSize && `font-size: ${this.forcedSize}`;
|
|
1343
1391
|
}
|
|
1344
1392
|
}
|
|
1345
|
-
},
|
|
1346
|
-
function
|
|
1393
|
+
}, gt = /* @__PURE__ */ v(mt, [["render", ft]]), bt = ["innerHTML"];
|
|
1394
|
+
function yt(e, t, i, s, n, l) {
|
|
1347
1395
|
const a = $("w-icon");
|
|
1348
|
-
return
|
|
1396
|
+
return o(), u("div", {
|
|
1349
1397
|
class: f(["w-breadcrumbs", l.classes])
|
|
1350
1398
|
}, [
|
|
1351
|
-
(
|
|
1352
|
-
d && e.$slots.separator ? (
|
|
1399
|
+
(o(!0), u(k, null, L(i.items, (r, d) => (o(), u(k, null, [
|
|
1400
|
+
d && e.$slots.separator ? (o(), u("span", {
|
|
1353
1401
|
class: f(["w-breadcrumbs__separator", i.separatorColor]),
|
|
1354
1402
|
key: `${d}a`
|
|
1355
1403
|
}, [
|
|
1356
|
-
|
|
1357
|
-
], 2)) : d ? (
|
|
1404
|
+
c(e.$slots, "separator", { index: d })
|
|
1405
|
+
], 2)) : d ? (o(), g(a, {
|
|
1358
1406
|
class: f(["w-breadcrumbs__separator", i.separatorColor]),
|
|
1359
1407
|
key: `${d}b`
|
|
1360
1408
|
}, {
|
|
@@ -1362,42 +1410,42 @@ function wt(e, t, i, o, n, l) {
|
|
|
1362
1410
|
S(_(i.icon), 1)
|
|
1363
1411
|
]),
|
|
1364
1412
|
_: 2
|
|
1365
|
-
}, 1032, ["class"])) :
|
|
1366
|
-
r[i.itemRouteKey] && (d < i.items.length - 1 || i.linkLastItem) ? (
|
|
1367
|
-
e.$slots.item ? (
|
|
1413
|
+
}, 1032, ["class"])) : p("", !0),
|
|
1414
|
+
r[i.itemRouteKey] && (d < i.items.length - 1 || i.linkLastItem) ? (o(), u(k, { key: 2 }, [
|
|
1415
|
+
e.$slots.item ? (o(), g(I(l.hasRouter ? "router-link" : "a"), {
|
|
1368
1416
|
class: f(["w-breadcrumbs__item", i.color || null]),
|
|
1369
1417
|
key: `${d}c`,
|
|
1370
1418
|
to: l.hasRouter && r[i.itemRouteKey],
|
|
1371
1419
|
href: r[i.itemRouteKey]
|
|
1372
1420
|
}, {
|
|
1373
1421
|
default: m(() => [
|
|
1374
|
-
|
|
1422
|
+
c(e.$slots, "item", {
|
|
1375
1423
|
item: r,
|
|
1376
1424
|
index: d + 1,
|
|
1377
1425
|
isLast: d === i.items.length - 1
|
|
1378
1426
|
})
|
|
1379
1427
|
]),
|
|
1380
1428
|
_: 2
|
|
1381
|
-
}, 1032, ["to", "href", "class"])) : (
|
|
1429
|
+
}, 1032, ["to", "href", "class"])) : (o(), g(I(l.hasRouter ? "router-link" : "a"), {
|
|
1382
1430
|
class: f(["w-breadcrumbs__item", i.color || null]),
|
|
1383
1431
|
key: `${d}d`,
|
|
1384
1432
|
to: l.hasRouter && r[i.itemRouteKey],
|
|
1385
1433
|
href: r[i.itemRouteKey],
|
|
1386
1434
|
innerHTML: r[i.itemLabelKey]
|
|
1387
1435
|
}, null, 8, ["to", "href", "innerHTML", "class"]))
|
|
1388
|
-
], 64)) : e.$slots.item ?
|
|
1436
|
+
], 64)) : e.$slots.item ? c(e.$slots, "item", {
|
|
1389
1437
|
key: `${d}e`,
|
|
1390
1438
|
item: r,
|
|
1391
1439
|
index: d + 1,
|
|
1392
1440
|
isLast: d === i.items.length - 1
|
|
1393
|
-
}) : (
|
|
1441
|
+
}) : (o(), u("span", {
|
|
1394
1442
|
key: `${d}f`,
|
|
1395
1443
|
innerHTML: r[i.itemLabelKey]
|
|
1396
|
-
}, null, 8,
|
|
1444
|
+
}, null, 8, bt))
|
|
1397
1445
|
], 64))), 256))
|
|
1398
1446
|
], 2);
|
|
1399
1447
|
}
|
|
1400
|
-
const
|
|
1448
|
+
const wt = {
|
|
1401
1449
|
name: "w-breadcrumbs",
|
|
1402
1450
|
props: {
|
|
1403
1451
|
items: { type: Array, required: !0 },
|
|
@@ -1427,10 +1475,10 @@ const vt = {
|
|
|
1427
1475
|
};
|
|
1428
1476
|
}
|
|
1429
1477
|
}
|
|
1430
|
-
},
|
|
1478
|
+
}, vt = /* @__PURE__ */ v(wt, [["render", yt]]), kt = {
|
|
1431
1479
|
key: 0,
|
|
1432
1480
|
class: "w-button__loader"
|
|
1433
|
-
},
|
|
1481
|
+
}, _t = /* @__PURE__ */ y("svg", { viewBox: "0 0 40 40" }, [
|
|
1434
1482
|
/* @__PURE__ */ y("circle", {
|
|
1435
1483
|
cx: "20",
|
|
1436
1484
|
cy: "20",
|
|
@@ -1441,28 +1489,28 @@ const vt = {
|
|
|
1441
1489
|
"stroke-linecap": "round"
|
|
1442
1490
|
})
|
|
1443
1491
|
], -1);
|
|
1444
|
-
function
|
|
1492
|
+
function Ct(e, t, i, s, n, l) {
|
|
1445
1493
|
const a = $("w-icon");
|
|
1446
|
-
return
|
|
1494
|
+
return o(), g(I(i.route ? "a" : "button"), C({
|
|
1447
1495
|
class: ["w-button", l.classes],
|
|
1448
1496
|
type: !i.route && i.type,
|
|
1449
1497
|
href: i.route && (l.externalLink ? i.route : l.resolvedRoute) || null,
|
|
1450
1498
|
disabled: !!i.disabled || null
|
|
1451
1499
|
}, z(l.listeners), { style: l.styles }), {
|
|
1452
1500
|
default: m(() => [
|
|
1453
|
-
i.icon ? (
|
|
1501
|
+
i.icon ? (o(), g(a, le(C({ key: 0 }, i.iconProps || {})), {
|
|
1454
1502
|
default: m(() => [
|
|
1455
1503
|
S(_(i.icon), 1)
|
|
1456
1504
|
]),
|
|
1457
1505
|
_: 1
|
|
1458
|
-
}, 16)) :
|
|
1506
|
+
}, 16)) : c(e.$slots, "default", { key: 1 }),
|
|
1459
1507
|
V(O, { name: "scale-fade" }, {
|
|
1460
1508
|
default: m(() => [
|
|
1461
|
-
i.loading ? (
|
|
1462
|
-
|
|
1463
|
-
|
|
1509
|
+
i.loading ? (o(), u("div", kt, [
|
|
1510
|
+
c(e.$slots, "loading", {}, () => [
|
|
1511
|
+
_t
|
|
1464
1512
|
])
|
|
1465
|
-
])) :
|
|
1513
|
+
])) : p("", !0)
|
|
1466
1514
|
]),
|
|
1467
1515
|
_: 3
|
|
1468
1516
|
})
|
|
@@ -1470,7 +1518,7 @@ function St(e, t, i, o, n, l) {
|
|
|
1470
1518
|
_: 3
|
|
1471
1519
|
}, 16, ["type", "href", "class", "disabled", "style"]);
|
|
1472
1520
|
}
|
|
1473
|
-
const
|
|
1521
|
+
const St = {
|
|
1474
1522
|
props: {
|
|
1475
1523
|
color: { type: String },
|
|
1476
1524
|
bgColor: { type: String },
|
|
@@ -1560,33 +1608,33 @@ const Bt = {
|
|
|
1560
1608
|
};
|
|
1561
1609
|
}
|
|
1562
1610
|
}
|
|
1563
|
-
},
|
|
1564
|
-
function
|
|
1611
|
+
}, Bt = /* @__PURE__ */ v(St, [["render", Ct]]), $t = ["innerHTML"];
|
|
1612
|
+
function Vt(e, t, i, s, n, l) {
|
|
1565
1613
|
const a = $("button-partial");
|
|
1566
|
-
return i.tooltip ? (
|
|
1614
|
+
return i.tooltip ? (o(), g(I("w-tooltip"), le(C({ key: 0 }, i.tooltipProps || {})), {
|
|
1567
1615
|
activator: m(({ on: r }) => [
|
|
1568
1616
|
V(a, C(l.buttonProps, z(r)), {
|
|
1569
1617
|
default: m(() => [
|
|
1570
|
-
|
|
1618
|
+
c(e.$slots, "default")
|
|
1571
1619
|
]),
|
|
1572
1620
|
_: 2
|
|
1573
1621
|
}, 1040)
|
|
1574
1622
|
]),
|
|
1575
1623
|
default: m(() => [
|
|
1576
|
-
y("div", { innerHTML: i.tooltip }, null, 8,
|
|
1624
|
+
y("div", { innerHTML: i.tooltip }, null, 8, $t)
|
|
1577
1625
|
]),
|
|
1578
1626
|
_: 3
|
|
1579
|
-
}, 16)) : (
|
|
1627
|
+
}, 16)) : (o(), g(a, le(C({ key: 1 }, l.buttonProps)), {
|
|
1580
1628
|
loading: m(() => [
|
|
1581
|
-
|
|
1629
|
+
c(e.$slots, "loading")
|
|
1582
1630
|
]),
|
|
1583
1631
|
default: m(() => [
|
|
1584
|
-
|
|
1632
|
+
c(e.$slots, "default")
|
|
1585
1633
|
]),
|
|
1586
1634
|
_: 3
|
|
1587
1635
|
}, 16));
|
|
1588
1636
|
}
|
|
1589
|
-
const
|
|
1637
|
+
const It = {
|
|
1590
1638
|
name: "w-button",
|
|
1591
1639
|
inheritAttrs: !1,
|
|
1592
1640
|
props: {
|
|
@@ -1622,7 +1670,7 @@ const Tt = {
|
|
|
1622
1670
|
lg: { type: Boolean },
|
|
1623
1671
|
xl: { type: Boolean }
|
|
1624
1672
|
},
|
|
1625
|
-
components: { ButtonPartial:
|
|
1673
|
+
components: { ButtonPartial: Bt },
|
|
1626
1674
|
emits: [],
|
|
1627
1675
|
computed: {
|
|
1628
1676
|
buttonProps() {
|
|
@@ -1630,46 +1678,46 @@ const Tt = {
|
|
|
1630
1678
|
return { ...i, ...this.$attrs };
|
|
1631
1679
|
}
|
|
1632
1680
|
}
|
|
1633
|
-
},
|
|
1634
|
-
function
|
|
1681
|
+
}, Tt = /* @__PURE__ */ v(It, [["render", Vt]]), A = (e = {}) => (typeof e == "string" ? e = { [e]: !0 } : Array.isArray(e) && (e = { [e.join(" ")]: !0 }), e), Lt = ["innerHTML"];
|
|
1682
|
+
function Rt(e, t, i, s, n, l) {
|
|
1635
1683
|
const a = $("w-image");
|
|
1636
|
-
return
|
|
1684
|
+
return o(), u("div", {
|
|
1637
1685
|
class: f(["w-card", l.classes])
|
|
1638
1686
|
}, [
|
|
1639
|
-
e.$slots.title ? (
|
|
1687
|
+
e.$slots.title ? (o(), u("div", {
|
|
1640
1688
|
key: 0,
|
|
1641
1689
|
class: f(["w-card__title", { "w-card__title--has-toolbar": e.$slots.title && l.titleHasToolbar, ...l.titleClasses }])
|
|
1642
1690
|
}, [
|
|
1643
|
-
|
|
1644
|
-
], 2)) : i.title ? (
|
|
1691
|
+
c(e.$slots, "title")
|
|
1692
|
+
], 2)) : i.title ? (o(), u("div", {
|
|
1645
1693
|
key: 1,
|
|
1646
1694
|
class: f(["w-card__title", { "w-card__title--has-toolbar": e.$slots.title && l.titleHasToolbar, ...l.titleClasses }]),
|
|
1647
1695
|
innerHTML: i.title
|
|
1648
|
-
}, null, 10,
|
|
1649
|
-
i.image ? (
|
|
1696
|
+
}, null, 10, Lt)) : p("", !0),
|
|
1697
|
+
i.image ? (o(), g(a, C({
|
|
1650
1698
|
key: 2,
|
|
1651
1699
|
class: "w-card__image",
|
|
1652
1700
|
src: i.image
|
|
1653
1701
|
}, l.imgProps), {
|
|
1654
1702
|
default: m(() => [
|
|
1655
|
-
|
|
1703
|
+
c(e.$slots, "image-content")
|
|
1656
1704
|
]),
|
|
1657
1705
|
_: 3
|
|
1658
|
-
}, 16, ["src"])) :
|
|
1706
|
+
}, 16, ["src"])) : p("", !0),
|
|
1659
1707
|
y("div", {
|
|
1660
1708
|
class: f(["w-card__content", l.contentClasses])
|
|
1661
1709
|
}, [
|
|
1662
|
-
|
|
1710
|
+
c(e.$slots, "default")
|
|
1663
1711
|
], 2),
|
|
1664
|
-
e.$slots.actions ? (
|
|
1712
|
+
e.$slots.actions ? (o(), u("div", {
|
|
1665
1713
|
key: 3,
|
|
1666
1714
|
class: f(["w-card__actions", { "w-card__actions--has-toolbar": l.actionsHasToolbar }])
|
|
1667
1715
|
}, [
|
|
1668
|
-
|
|
1669
|
-
], 2)) :
|
|
1716
|
+
c(e.$slots, "actions")
|
|
1717
|
+
], 2)) : p("", !0)
|
|
1670
1718
|
], 2);
|
|
1671
1719
|
}
|
|
1672
|
-
const
|
|
1720
|
+
const xt = {
|
|
1673
1721
|
name: "w-card",
|
|
1674
1722
|
props: {
|
|
1675
1723
|
color: { type: String },
|
|
@@ -1720,7 +1768,7 @@ const Ot = {
|
|
|
1720
1768
|
};
|
|
1721
1769
|
}
|
|
1722
1770
|
}
|
|
1723
|
-
},
|
|
1771
|
+
}, Ot = /* @__PURE__ */ v(xt, [["render", Rt]]), E = {
|
|
1724
1772
|
inject: {
|
|
1725
1773
|
formRegister: { default: null },
|
|
1726
1774
|
formProps: { default: () => ({ disabled: !1, readonly: !1 }) }
|
|
@@ -1761,13 +1809,13 @@ const Ot = {
|
|
|
1761
1809
|
this.$refs.formEl.validate(this);
|
|
1762
1810
|
}
|
|
1763
1811
|
}
|
|
1764
|
-
},
|
|
1812
|
+
}, Pt = ["id", "name", "checked", "disabled", "required", "tabindex", "aria-checked"], Mt = ["for"], zt = ["for", "innerHTML"], Et = /* @__PURE__ */ y("svg", { viewBox: "-0.5 0 12 10" }, [
|
|
1765
1813
|
/* @__PURE__ */ y("polyline", { points: "1 5 4 8 10 2" })
|
|
1766
|
-
], -1),
|
|
1767
|
-
|
|
1768
|
-
],
|
|
1769
|
-
function
|
|
1770
|
-
return
|
|
1814
|
+
], -1), Wt = [
|
|
1815
|
+
Et
|
|
1816
|
+
], At = ["for"], Kt = ["for", "innerHTML"];
|
|
1817
|
+
function Nt(e, t, i, s, n, l) {
|
|
1818
|
+
return o(), g(I(e.formRegister && !l.wCheckboxes ? "w-form-element" : "div"), C({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: n.isChecked, disabled: e.isDisabled, readonly: e.isReadonly }, {
|
|
1771
1819
|
valid: e.valid,
|
|
1772
1820
|
"onUpdate:valid": t[5] || (t[5] = (a) => e.valid = a),
|
|
1773
1821
|
onReset: t[6] || (t[6] = (a) => {
|
|
@@ -1791,50 +1839,50 @@ function Ht(e, t, i, o, n, l) {
|
|
|
1791
1839
|
onKeypress: t[3] || (t[3] = W((...a) => l.onInput && l.onInput(...a), ["enter"])),
|
|
1792
1840
|
"aria-checked": n.isChecked || "false",
|
|
1793
1841
|
role: "checkbox"
|
|
1794
|
-
}, null, 40,
|
|
1795
|
-
l.hasLabel && i.labelOnLeft ? (
|
|
1796
|
-
e.$slots.default ? (
|
|
1842
|
+
}, null, 40, Pt),
|
|
1843
|
+
l.hasLabel && i.labelOnLeft ? (o(), u(k, { key: 0 }, [
|
|
1844
|
+
e.$slots.default ? (o(), u("label", {
|
|
1797
1845
|
key: 0,
|
|
1798
1846
|
class: f(["w-checkbox__label w-form-el-shakable pr2", e.labelClasses]),
|
|
1799
1847
|
for: `w-checkbox--${e._.uid}`
|
|
1800
1848
|
}, [
|
|
1801
|
-
|
|
1849
|
+
c(e.$slots, "default", {}, () => [
|
|
1802
1850
|
S(_(i.label), 1)
|
|
1803
1851
|
])
|
|
1804
|
-
], 10,
|
|
1852
|
+
], 10, Mt)) : i.label ? (o(), u("label", {
|
|
1805
1853
|
key: 1,
|
|
1806
1854
|
class: f(["w-checkbox__label w-form-el-shakable pr2", e.labelClasses]),
|
|
1807
1855
|
for: `w-checkbox--${e._.uid}`,
|
|
1808
1856
|
innerHTML: i.label
|
|
1809
|
-
}, null, 10,
|
|
1810
|
-
], 64)) :
|
|
1857
|
+
}, null, 10, zt)) : p("", !0)
|
|
1858
|
+
], 64)) : p("", !0),
|
|
1811
1859
|
y("div", {
|
|
1812
1860
|
class: f(["w-checkbox__input", this.color]),
|
|
1813
1861
|
onClick: t[4] || (t[4] = (a) => {
|
|
1814
1862
|
e.$refs.input.focus(), e.$refs.input.click();
|
|
1815
1863
|
})
|
|
1816
|
-
},
|
|
1817
|
-
l.hasLabel && !i.labelOnLeft ? (
|
|
1818
|
-
e.$slots.default ? (
|
|
1864
|
+
}, Wt, 2),
|
|
1865
|
+
l.hasLabel && !i.labelOnLeft ? (o(), u(k, { key: 1 }, [
|
|
1866
|
+
e.$slots.default ? (o(), u("label", {
|
|
1819
1867
|
key: 0,
|
|
1820
1868
|
class: f(["w-checkbox__label w-form-el-shakable pl2", e.labelClasses]),
|
|
1821
1869
|
for: `w-checkbox--${e._.uid}`
|
|
1822
1870
|
}, [
|
|
1823
|
-
|
|
1871
|
+
c(e.$slots, "default", {}, () => [
|
|
1824
1872
|
S(_(i.label), 1)
|
|
1825
1873
|
])
|
|
1826
|
-
], 10,
|
|
1874
|
+
], 10, At)) : i.label ? (o(), u("label", {
|
|
1827
1875
|
key: 1,
|
|
1828
1876
|
class: f(["w-checkbox__label w-form-el-shakable pl2", e.labelClasses]),
|
|
1829
1877
|
for: `w-checkbox--${e._.uid}`,
|
|
1830
1878
|
innerHTML: i.label
|
|
1831
|
-
}, null, 10, Kt)) :
|
|
1832
|
-
], 64)) :
|
|
1879
|
+
}, null, 10, Kt)) : p("", !0)
|
|
1880
|
+
], 64)) : p("", !0)
|
|
1833
1881
|
]),
|
|
1834
1882
|
_: 3
|
|
1835
1883
|
}, 16, ["valid", "class"]);
|
|
1836
1884
|
}
|
|
1837
|
-
const
|
|
1885
|
+
const Ht = {
|
|
1838
1886
|
name: "w-checkbox",
|
|
1839
1887
|
mixins: [E],
|
|
1840
1888
|
inject: {
|
|
@@ -1896,10 +1944,10 @@ const Dt = {
|
|
|
1896
1944
|
this.isChecked = e;
|
|
1897
1945
|
}
|
|
1898
1946
|
}
|
|
1899
|
-
},
|
|
1900
|
-
function
|
|
1947
|
+
}, Dt = /* @__PURE__ */ v(Ht, [["render", Nt]]), Ft = ["innerHTML"];
|
|
1948
|
+
function jt(e, t, i, s, n, l) {
|
|
1901
1949
|
const a = $("w-checkbox");
|
|
1902
|
-
return
|
|
1950
|
+
return o(), g(I(e.formRegister ? "w-form-element" : "div"), C({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: l.checkboxItems.some((r) => r._isChecked), disabled: e.isDisabled }, {
|
|
1903
1951
|
valid: e.valid,
|
|
1904
1952
|
"onUpdate:valid": t[1] || (t[1] = (r) => e.valid = r),
|
|
1905
1953
|
onReset: l.reset,
|
|
@@ -1908,7 +1956,7 @@ function Ut(e, t, i, o, n, l) {
|
|
|
1908
1956
|
class: l.classes
|
|
1909
1957
|
}), {
|
|
1910
1958
|
default: m(() => [
|
|
1911
|
-
(
|
|
1959
|
+
(o(!0), u(k, null, L(l.checkboxItems, (r, d) => (o(), g(a, C({
|
|
1912
1960
|
key: d,
|
|
1913
1961
|
"model-value": r._isChecked,
|
|
1914
1962
|
"onUpdate:modelValue": (h) => l.toggleCheck(r, h),
|
|
@@ -1920,16 +1968,16 @@ function Ut(e, t, i, o, n, l) {
|
|
|
1920
1968
|
class: { mt1: !i.inline && d }
|
|
1921
1969
|
}), {
|
|
1922
1970
|
default: m(() => [
|
|
1923
|
-
e.$slots[`item.${d + 1}`] || e.$slots.item ?
|
|
1971
|
+
e.$slots[`item.${d + 1}`] || e.$slots.item ? c(e.$slots, e.$slots[`item.${d + 1}`] ? `item.${d + 1}` : "item", {
|
|
1924
1972
|
key: 0,
|
|
1925
1973
|
item: l.getOriginalItem(r),
|
|
1926
1974
|
checked: !!r._isChecked,
|
|
1927
1975
|
index: d + 1,
|
|
1928
1976
|
innerHTML: r.label
|
|
1929
|
-
}) : r.label ? (
|
|
1977
|
+
}) : r.label ? (o(), u("div", {
|
|
1930
1978
|
key: 1,
|
|
1931
1979
|
innerHTML: r.label
|
|
1932
|
-
}, null, 8,
|
|
1980
|
+
}, null, 8, Ft)) : p("", !0)
|
|
1933
1981
|
]),
|
|
1934
1982
|
_: 2
|
|
1935
1983
|
}, 1040, ["model-value", "onUpdate:modelValue", "name", "disabled", "readonly", "class"]))), 128))
|
|
@@ -1937,7 +1985,7 @@ function Ut(e, t, i, o, n, l) {
|
|
|
1937
1985
|
_: 3
|
|
1938
1986
|
}, 16, ["valid", "onReset", "column", "wrap", "class"]);
|
|
1939
1987
|
}
|
|
1940
|
-
const
|
|
1988
|
+
const Ut = {
|
|
1941
1989
|
name: "w-checkboxes",
|
|
1942
1990
|
mixins: [E],
|
|
1943
1991
|
props: {
|
|
@@ -1984,24 +2032,24 @@ const qt = {
|
|
|
1984
2032
|
},
|
|
1985
2033
|
toggleCheck(e, t) {
|
|
1986
2034
|
e._isChecked = t;
|
|
1987
|
-
const i = this.checkboxItems.filter((
|
|
2035
|
+
const i = this.checkboxItems.filter((s) => s._isChecked).map((s) => this.returnValues ? s.returnValue : s.value);
|
|
1988
2036
|
this.$emit("update:modelValue", i), this.$emit("input", i);
|
|
1989
2037
|
},
|
|
1990
2038
|
getOriginalItem(e) {
|
|
1991
2039
|
return this.items[e._index];
|
|
1992
2040
|
}
|
|
1993
2041
|
}
|
|
1994
|
-
},
|
|
1995
|
-
function
|
|
2042
|
+
}, qt = /* @__PURE__ */ v(Ut, [["render", jt]]);
|
|
2043
|
+
function Xt(e, t, i, s, n, l) {
|
|
1996
2044
|
const a = $("w-button"), r = $("w-flex"), d = $("w-menu"), h = ge("focus");
|
|
1997
|
-
return
|
|
2045
|
+
return o(), g(d, C({
|
|
1998
2046
|
modelValue: e.showPopup,
|
|
1999
|
-
"onUpdate:modelValue": t[2] || (t[2] = (
|
|
2047
|
+
"onUpdate:modelValue": t[2] || (t[2] = (w) => e.showPopup = w)
|
|
2000
2048
|
}, l.wMenuProps), {
|
|
2001
|
-
activator: m(({ on:
|
|
2002
|
-
V(a, C({ class: "w-confirm" }, { ...e.$attrs, ...l.buttonProps, ...i.disablePrompt ? {} :
|
|
2049
|
+
activator: m(({ on: w }) => [
|
|
2050
|
+
V(a, C({ class: "w-confirm" }, { ...e.$attrs, ...l.buttonProps, ...i.disablePrompt ? {} : w }), {
|
|
2003
2051
|
default: m(() => [
|
|
2004
|
-
|
|
2052
|
+
c(e.$slots, "default")
|
|
2005
2053
|
]),
|
|
2006
2054
|
_: 2
|
|
2007
2055
|
}, 1040)
|
|
@@ -2013,35 +2061,35 @@ function Yt(e, t, i, o, n, l) {
|
|
|
2013
2061
|
}, {
|
|
2014
2062
|
default: m(() => [
|
|
2015
2063
|
y("div", null, [
|
|
2016
|
-
|
|
2064
|
+
c(e.$slots, "question", {}, () => [
|
|
2017
2065
|
S(_(i.question), 1)
|
|
2018
2066
|
])
|
|
2019
2067
|
]),
|
|
2020
2068
|
y("div", {
|
|
2021
2069
|
class: f(["w-flex justify-end", i.inline ? "ml2" : "mt2"])
|
|
2022
2070
|
}, [
|
|
2023
|
-
i.cancel !== !1 ? (
|
|
2071
|
+
i.cancel !== !1 ? (o(), g(a, C({
|
|
2024
2072
|
key: 0,
|
|
2025
2073
|
class: "mr2"
|
|
2026
2074
|
}, l.cancelButtonProps, {
|
|
2027
2075
|
"bg-color": (l.cancelButton || {}).bgColor || "error",
|
|
2028
|
-
onKeyup: t[0] || (t[0] = W((
|
|
2076
|
+
onKeyup: t[0] || (t[0] = W((w) => !i.persistent && l.onCancel(), ["escape"])),
|
|
2029
2077
|
onClick: l.onCancel
|
|
2030
2078
|
}), {
|
|
2031
2079
|
default: m(() => [
|
|
2032
|
-
|
|
2080
|
+
c(e.$slots, "cancel", {}, () => [
|
|
2033
2081
|
S(_(l.cancelButton.label), 1)
|
|
2034
2082
|
])
|
|
2035
2083
|
]),
|
|
2036
2084
|
_: 3
|
|
2037
|
-
}, 16, ["bg-color", "onClick"])) :
|
|
2038
|
-
|
|
2085
|
+
}, 16, ["bg-color", "onClick"])) : p("", !0),
|
|
2086
|
+
K((o(), g(a, C(l.confirmButtonProps, {
|
|
2039
2087
|
"bg-color": (l.confirmButton || {}).bgColor || "success",
|
|
2040
|
-
onKeyup: t[1] || (t[1] = W((
|
|
2088
|
+
onKeyup: t[1] || (t[1] = W((w) => !i.persistent && l.onCancel(), ["escape"])),
|
|
2041
2089
|
onClick: l.onConfirm
|
|
2042
2090
|
}), {
|
|
2043
2091
|
default: m(() => [
|
|
2044
|
-
|
|
2092
|
+
c(e.$slots, "confirm", {}, () => [
|
|
2045
2093
|
S(_(l.confirmButton.label), 1)
|
|
2046
2094
|
])
|
|
2047
2095
|
]),
|
|
@@ -2057,7 +2105,7 @@ function Yt(e, t, i, o, n, l) {
|
|
|
2057
2105
|
_: 3
|
|
2058
2106
|
}, 16, ["modelValue"]);
|
|
2059
2107
|
}
|
|
2060
|
-
const
|
|
2108
|
+
const Yt = {
|
|
2061
2109
|
name: "w-confirm",
|
|
2062
2110
|
inheritAttrs: !1,
|
|
2063
2111
|
props: {
|
|
@@ -2150,16 +2198,16 @@ const Gt = {
|
|
|
2150
2198
|
this.$emit("confirm"), this.showPopup = !1;
|
|
2151
2199
|
}
|
|
2152
2200
|
}
|
|
2153
|
-
},
|
|
2154
|
-
function
|
|
2155
|
-
return
|
|
2201
|
+
}, Gt = /* @__PURE__ */ v(Yt, [["render", Xt]]);
|
|
2202
|
+
function Jt(e, t, i, s, n, l) {
|
|
2203
|
+
return o(), u("div", {
|
|
2156
2204
|
class: f(["w-date-picker", l.classes]),
|
|
2157
2205
|
style: R(l.styles)
|
|
2158
2206
|
}, [
|
|
2159
|
-
|
|
2207
|
+
c(e.$slots, "default")
|
|
2160
2208
|
], 6);
|
|
2161
2209
|
}
|
|
2162
|
-
const
|
|
2210
|
+
const Qt = {
|
|
2163
2211
|
name: "w-date-picker",
|
|
2164
2212
|
props: {
|
|
2165
2213
|
dark: { type: Boolean },
|
|
@@ -2177,10 +2225,10 @@ const Zt = {
|
|
|
2177
2225
|
return !1;
|
|
2178
2226
|
}
|
|
2179
2227
|
}
|
|
2180
|
-
},
|
|
2181
|
-
function
|
|
2228
|
+
}, Zt = /* @__PURE__ */ v(Qt, [["render", Jt]]);
|
|
2229
|
+
function ei(e, t, i, s, n, l) {
|
|
2182
2230
|
const a = $("w-card"), r = $("w-overlay");
|
|
2183
|
-
return
|
|
2231
|
+
return o(), g(r, {
|
|
2184
2232
|
class: f(["w-dialog", l.classes]),
|
|
2185
2233
|
"model-value": n.showWrapper,
|
|
2186
2234
|
persistent: i.persistent,
|
|
@@ -2197,7 +2245,7 @@ function ti(e, t, i, o, n, l) {
|
|
|
2197
2245
|
onAfterLeave: l.onBeforeClose
|
|
2198
2246
|
}, {
|
|
2199
2247
|
default: m(() => [
|
|
2200
|
-
|
|
2248
|
+
K(V(a, {
|
|
2201
2249
|
class: f(["w-dialog__content", i.dialogClass]),
|
|
2202
2250
|
ref: "dialog",
|
|
2203
2251
|
"no-border": "",
|
|
@@ -2209,21 +2257,21 @@ function ti(e, t, i, o, n, l) {
|
|
|
2209
2257
|
style: R(l.contentStyles)
|
|
2210
2258
|
}, Z({
|
|
2211
2259
|
default: m(() => [
|
|
2212
|
-
|
|
2260
|
+
c(e.$slots, "default")
|
|
2213
2261
|
]),
|
|
2214
2262
|
_: 2
|
|
2215
2263
|
}, [
|
|
2216
2264
|
e.$slots.title ? {
|
|
2217
2265
|
name: "title",
|
|
2218
2266
|
fn: m(() => [
|
|
2219
|
-
|
|
2267
|
+
c(e.$slots, "title")
|
|
2220
2268
|
]),
|
|
2221
2269
|
key: "0"
|
|
2222
2270
|
} : void 0,
|
|
2223
2271
|
e.$slots.actions ? {
|
|
2224
2272
|
name: "actions",
|
|
2225
2273
|
fn: m(() => [
|
|
2226
|
-
|
|
2274
|
+
c(e.$slots, "actions")
|
|
2227
2275
|
]),
|
|
2228
2276
|
key: "1"
|
|
2229
2277
|
} : void 0
|
|
@@ -2237,7 +2285,7 @@ function ti(e, t, i, o, n, l) {
|
|
|
2237
2285
|
_: 3
|
|
2238
2286
|
}, 8, ["model-value", "persistent", "persistent-no-animation", "onClick", "onClose", "bg-color", "opacity", "class"]);
|
|
2239
2287
|
}
|
|
2240
|
-
const
|
|
2288
|
+
const ti = {
|
|
2241
2289
|
name: "w-dialog",
|
|
2242
2290
|
props: {
|
|
2243
2291
|
modelValue: { default: !0 },
|
|
@@ -2304,17 +2352,17 @@ const ii = {
|
|
|
2304
2352
|
this.showWrapper = e, this.showContent = e;
|
|
2305
2353
|
}
|
|
2306
2354
|
}
|
|
2307
|
-
},
|
|
2308
|
-
function
|
|
2309
|
-
return
|
|
2355
|
+
}, ii = /* @__PURE__ */ v(ti, [["render", ei]]), li = ["role", "aria-orientation"];
|
|
2356
|
+
function si(e, t, i, s, n, l) {
|
|
2357
|
+
return o(), u("div", {
|
|
2310
2358
|
class: f(["w-divider", l.classes]),
|
|
2311
2359
|
role: e.$slots.default ? null : "presentation",
|
|
2312
2360
|
"aria-orientation": i.vertical ? "vertical" : "horizontal"
|
|
2313
2361
|
}, [
|
|
2314
|
-
|
|
2315
|
-
], 10,
|
|
2362
|
+
c(e.$slots, "default")
|
|
2363
|
+
], 10, li);
|
|
2316
2364
|
}
|
|
2317
|
-
const
|
|
2365
|
+
const oi = {
|
|
2318
2366
|
name: "w-divider",
|
|
2319
2367
|
props: {
|
|
2320
2368
|
vertical: { type: Boolean },
|
|
@@ -2334,20 +2382,20 @@ const ai = {
|
|
|
2334
2382
|
};
|
|
2335
2383
|
}
|
|
2336
2384
|
}
|
|
2337
|
-
},
|
|
2338
|
-
function
|
|
2385
|
+
}, ai = /* @__PURE__ */ v(oi, [["render", si]]), ni = { class: "w-drawer-wrap__pushable" };
|
|
2386
|
+
function ri(e, t, i, s, n, l) {
|
|
2339
2387
|
const a = $("w-overlay");
|
|
2340
|
-
return n.showWrapper || i.pushContent ? (
|
|
2388
|
+
return n.showWrapper || i.pushContent ? (o(), u("div", {
|
|
2341
2389
|
key: 0,
|
|
2342
2390
|
class: f(["w-drawer-wrap", l.wrapperClasses])
|
|
2343
2391
|
}, [
|
|
2344
|
-
i.pushContent ? (
|
|
2392
|
+
i.pushContent ? (o(), u("div", {
|
|
2345
2393
|
key: 0,
|
|
2346
2394
|
class: "w-drawer-wrap__track",
|
|
2347
2395
|
style: R(l.trackStyles)
|
|
2348
2396
|
}, [
|
|
2349
|
-
y("div",
|
|
2350
|
-
i.noOverlay ?
|
|
2397
|
+
y("div", ni, [
|
|
2398
|
+
i.noOverlay ? p("", !0) : (o(), g(a, {
|
|
2351
2399
|
key: 0,
|
|
2352
2400
|
modelValue: n.showDrawer,
|
|
2353
2401
|
"onUpdate:modelValue": t[0] || (t[0] = (r) => n.showDrawer = r),
|
|
@@ -2357,7 +2405,7 @@ function di(e, t, i, o, n, l) {
|
|
|
2357
2405
|
"bg-color": i.overlayColor || "transparent",
|
|
2358
2406
|
opacity: i.overlayOpacity
|
|
2359
2407
|
}, null, 8, ["modelValue", "onClick", "persistent", "bg-color", "opacity"])),
|
|
2360
|
-
|
|
2408
|
+
c(e.$slots, "pushable")
|
|
2361
2409
|
]),
|
|
2362
2410
|
V(O, {
|
|
2363
2411
|
name: "fade",
|
|
@@ -2365,22 +2413,22 @@ function di(e, t, i, o, n, l) {
|
|
|
2365
2413
|
onAfterLeave: l.onClose
|
|
2366
2414
|
}, {
|
|
2367
2415
|
default: m(() => [
|
|
2368
|
-
n.showDrawer ? (
|
|
2416
|
+
n.showDrawer ? (o(), g(I(i.tag || "aside"), {
|
|
2369
2417
|
key: 0,
|
|
2370
2418
|
class: f(["w-drawer", l.drawerClasses]),
|
|
2371
2419
|
ref: "drawer",
|
|
2372
2420
|
style: R(l.styles)
|
|
2373
2421
|
}, {
|
|
2374
2422
|
default: m(() => [
|
|
2375
|
-
|
|
2423
|
+
c(e.$slots, "default")
|
|
2376
2424
|
]),
|
|
2377
2425
|
_: 3
|
|
2378
|
-
}, 8, ["class", "style"])) :
|
|
2426
|
+
}, 8, ["class", "style"])) : p("", !0)
|
|
2379
2427
|
]),
|
|
2380
2428
|
_: 3
|
|
2381
2429
|
}, 8, ["onBeforeLeave", "onAfterLeave"])
|
|
2382
|
-
], 4)) : (
|
|
2383
|
-
i.noOverlay ?
|
|
2430
|
+
], 4)) : (o(), u(k, { key: 1 }, [
|
|
2431
|
+
i.noOverlay ? p("", !0) : (o(), g(a, {
|
|
2384
2432
|
key: 0,
|
|
2385
2433
|
modelValue: n.showDrawer,
|
|
2386
2434
|
"onUpdate:modelValue": t[1] || (t[1] = (r) => n.showDrawer = r),
|
|
@@ -2397,24 +2445,24 @@ function di(e, t, i, o, n, l) {
|
|
|
2397
2445
|
onAfterLeave: l.onClose
|
|
2398
2446
|
}, {
|
|
2399
2447
|
default: m(() => [
|
|
2400
|
-
n.showDrawer ? (
|
|
2448
|
+
n.showDrawer ? (o(), g(I(i.tag || "aside"), {
|
|
2401
2449
|
key: 0,
|
|
2402
2450
|
class: f(["w-drawer", l.drawerClasses]),
|
|
2403
2451
|
ref: "drawer",
|
|
2404
2452
|
style: R(l.styles)
|
|
2405
2453
|
}, {
|
|
2406
2454
|
default: m(() => [
|
|
2407
|
-
|
|
2455
|
+
c(e.$slots, "default")
|
|
2408
2456
|
]),
|
|
2409
2457
|
_: 3
|
|
2410
|
-
}, 8, ["class", "style"])) :
|
|
2458
|
+
}, 8, ["class", "style"])) : p("", !0)
|
|
2411
2459
|
]),
|
|
2412
2460
|
_: 3
|
|
2413
2461
|
}, 8, ["name", "onBeforeLeave", "onAfterLeave"])
|
|
2414
2462
|
], 64))
|
|
2415
|
-
], 2)) :
|
|
2463
|
+
], 2)) : p("", !0);
|
|
2416
2464
|
}
|
|
2417
|
-
const
|
|
2465
|
+
const di = { left: "right", right: "left", top: "down", bottom: "up" }, ui = {
|
|
2418
2466
|
name: "w-drawer",
|
|
2419
2467
|
props: {
|
|
2420
2468
|
modelValue: { default: !0 },
|
|
@@ -2500,7 +2548,7 @@ const ui = { left: "right", right: "left", top: "down", bottom: "up" }, hi = {
|
|
|
2500
2548
|
return !this.showWrapper;
|
|
2501
2549
|
},
|
|
2502
2550
|
transitionName() {
|
|
2503
|
-
return `slide-${
|
|
2551
|
+
return `slide-${di[this.position]}`;
|
|
2504
2552
|
}
|
|
2505
2553
|
},
|
|
2506
2554
|
methods: {
|
|
@@ -2519,18 +2567,18 @@ const ui = { left: "right", right: "left", top: "down", bottom: "up" }, hi = {
|
|
|
2519
2567
|
e && (this.showWrapper = !0), this.showDrawer = e;
|
|
2520
2568
|
}
|
|
2521
2569
|
}
|
|
2522
|
-
},
|
|
2523
|
-
function
|
|
2524
|
-
return
|
|
2570
|
+
}, hi = /* @__PURE__ */ v(ui, [["render", ri]]);
|
|
2571
|
+
function ci(e, t, i, s, n, l) {
|
|
2572
|
+
return o(), g(I(i.tag), {
|
|
2525
2573
|
class: f(["w-flex", l.classes])
|
|
2526
2574
|
}, {
|
|
2527
2575
|
default: m(() => [
|
|
2528
|
-
|
|
2576
|
+
c(e.$slots, "default")
|
|
2529
2577
|
]),
|
|
2530
2578
|
_: 3
|
|
2531
2579
|
}, 8, ["class"]);
|
|
2532
2580
|
}
|
|
2533
|
-
const
|
|
2581
|
+
const pi = {
|
|
2534
2582
|
name: "w-flex",
|
|
2535
2583
|
props: {
|
|
2536
2584
|
tag: { type: String, default: "div" },
|
|
@@ -2577,23 +2625,23 @@ const fi = {
|
|
|
2577
2625
|
};
|
|
2578
2626
|
}
|
|
2579
2627
|
}
|
|
2580
|
-
},
|
|
2581
|
-
function
|
|
2582
|
-
return
|
|
2628
|
+
}, fi = /* @__PURE__ */ v(pi, [["render", ci]]);
|
|
2629
|
+
function mi(e, t, i, s, n, l) {
|
|
2630
|
+
return o(), u("form", {
|
|
2583
2631
|
class: f(["w-form", l.classes]),
|
|
2584
2632
|
onSubmit: t[0] || (t[0] = (...a) => l.onSubmit && l.onSubmit(...a)),
|
|
2585
2633
|
onReset: t[1] || (t[1] = (...a) => l.reset && l.reset(...a)),
|
|
2586
2634
|
novalidate: ""
|
|
2587
2635
|
}, [
|
|
2588
|
-
|
|
2636
|
+
c(e.$slots, "default")
|
|
2589
2637
|
], 34);
|
|
2590
2638
|
}
|
|
2591
|
-
const
|
|
2639
|
+
const gi = async (e, t) => {
|
|
2592
2640
|
for (const i of e)
|
|
2593
2641
|
if (await t(i))
|
|
2594
2642
|
return !0;
|
|
2595
2643
|
return !1;
|
|
2596
|
-
},
|
|
2644
|
+
}, bi = {
|
|
2597
2645
|
name: "w-form",
|
|
2598
2646
|
props: {
|
|
2599
2647
|
modelValue: {},
|
|
@@ -2651,8 +2699,8 @@ const bi = async (e, t) => {
|
|
|
2651
2699
|
let t = 0;
|
|
2652
2700
|
return await (async () => {
|
|
2653
2701
|
var i;
|
|
2654
|
-
for (const
|
|
2655
|
-
!((i =
|
|
2702
|
+
for (const s of this.formElements)
|
|
2703
|
+
!((i = s.validators) != null && i.length) || s.disabled || s.readonly || (await this.checkElementValidators(s), t += ~~!s.Validation.isValid, s.$emit("update:valid", s.Validation.isValid));
|
|
2656
2704
|
})(), this.updateErrorsCount(t), this.status = !t, this.$emit("validate", { e, errorsCount: t }), this.$emit(this.status ? "success" : "error", { e, errorsCount: t }), this.status;
|
|
2657
2705
|
},
|
|
2658
2706
|
async validateElement(e) {
|
|
@@ -2660,8 +2708,8 @@ const bi = async (e, t) => {
|
|
|
2660
2708
|
},
|
|
2661
2709
|
async checkElementValidators(e) {
|
|
2662
2710
|
let t = !1, i = "";
|
|
2663
|
-
await
|
|
2664
|
-
const n = await (typeof
|
|
2711
|
+
await gi(e.validators, async (s) => {
|
|
2712
|
+
const n = await (typeof s == "function" && s(e.inputValue));
|
|
2665
2713
|
return t = typeof n != "string", i = t ? "" : n, !t;
|
|
2666
2714
|
}), e.hasJustReset = !1, e.Validation.isValid = t, e.Validation.message = i;
|
|
2667
2715
|
},
|
|
@@ -2669,7 +2717,7 @@ const bi = async (e, t) => {
|
|
|
2669
2717
|
this.status = null, this.formElements.forEach((t) => t.reset()), this.updateErrorsCount(0, !0), this.$emit("reset", e);
|
|
2670
2718
|
},
|
|
2671
2719
|
updateErrorsCount(e = null, t = !1) {
|
|
2672
|
-
this.errorsCount = e !== null ? e : this.formElements.reduce((i,
|
|
2720
|
+
this.errorsCount = e !== null ? e : this.formElements.reduce((i, s) => i + ~~(s.Validation.isValid === !1), 0), this.status = t ? null : !this.errorsCount, this.$emit("update:modelValue", this.status), this.$emit("input", this.status), this.$emit("update:errorsCount", this.errorsCount);
|
|
2673
2721
|
},
|
|
2674
2722
|
onSubmit(e) {
|
|
2675
2723
|
this.validate(e), this.$emit("submit", e), (!this.allowSubmit || !this.status) && e.preventDefault();
|
|
@@ -2683,35 +2731,35 @@ const bi = async (e, t) => {
|
|
|
2683
2731
|
(this.status === !1 && e || e === null && this.status !== null) && this.reset(), this.status = e;
|
|
2684
2732
|
}
|
|
2685
2733
|
}
|
|
2686
|
-
},
|
|
2687
|
-
function
|
|
2734
|
+
}, yi = /* @__PURE__ */ v(bi, [["render", mi]]);
|
|
2735
|
+
function wi(e, t, i, s, n, l) {
|
|
2688
2736
|
const a = $("w-transition-expand");
|
|
2689
|
-
return
|
|
2737
|
+
return o(), u("div", {
|
|
2690
2738
|
class: f(l.classes)
|
|
2691
2739
|
}, [
|
|
2692
2740
|
y("div", {
|
|
2693
2741
|
class: f(["w-flex grow", [i.column ? "column" : "align-center", i.wrap ? "wrap" : ""]])
|
|
2694
2742
|
}, [
|
|
2695
|
-
|
|
2743
|
+
c(e.$slots, "default")
|
|
2696
2744
|
], 2),
|
|
2697
2745
|
V(a, { y: "" }, {
|
|
2698
2746
|
default: m(() => [
|
|
2699
|
-
e.Validation.message ? (
|
|
2747
|
+
e.Validation.message ? (o(), u("div", {
|
|
2700
2748
|
key: 0,
|
|
2701
2749
|
class: f(["w-form-el__error", l.formProps.validationColor])
|
|
2702
2750
|
}, [
|
|
2703
|
-
|
|
2751
|
+
c(e.$slots, "error-message", {
|
|
2704
2752
|
message: e.Validation.message
|
|
2705
2753
|
}, () => [
|
|
2706
2754
|
S(_(e.Validation.message), 1)
|
|
2707
2755
|
])
|
|
2708
|
-
], 2)) :
|
|
2756
|
+
], 2)) : p("", !0)
|
|
2709
2757
|
]),
|
|
2710
2758
|
_: 3
|
|
2711
2759
|
})
|
|
2712
2760
|
], 2);
|
|
2713
2761
|
}
|
|
2714
|
-
const
|
|
2762
|
+
const vi = {
|
|
2715
2763
|
name: "w-form-element",
|
|
2716
2764
|
props: {
|
|
2717
2765
|
valid: { required: !0 },
|
|
@@ -2777,18 +2825,18 @@ const ki = {
|
|
|
2777
2825
|
beforeUnmount() {
|
|
2778
2826
|
this.formUnregister && this.formUnregister(this);
|
|
2779
2827
|
}
|
|
2780
|
-
},
|
|
2781
|
-
function
|
|
2782
|
-
return
|
|
2828
|
+
}, ki = /* @__PURE__ */ v(vi, [["render", wi]]);
|
|
2829
|
+
function _i(e, t, i, s, n, l) {
|
|
2830
|
+
return o(), g(I(i.tag), {
|
|
2783
2831
|
class: f(["w-grid", l.classes])
|
|
2784
2832
|
}, {
|
|
2785
2833
|
default: m(() => [
|
|
2786
|
-
|
|
2834
|
+
c(e.$slots, "default")
|
|
2787
2835
|
]),
|
|
2788
2836
|
_: 3
|
|
2789
2837
|
}, 8, ["class"]);
|
|
2790
2838
|
}
|
|
2791
|
-
const
|
|
2839
|
+
const Ci = {
|
|
2792
2840
|
name: "w-grid",
|
|
2793
2841
|
props: {
|
|
2794
2842
|
tag: { type: String, default: "div" },
|
|
@@ -2824,31 +2872,31 @@ const Si = {
|
|
|
2824
2872
|
},
|
|
2825
2873
|
classes() {
|
|
2826
2874
|
let e = null;
|
|
2827
|
-
typeof this.columns == "object" && (e = Object.entries(this.breakpointsColumns).reduce((i, [
|
|
2875
|
+
typeof this.columns == "object" && (e = Object.entries(this.breakpointsColumns).reduce((i, [s, n]) => (i[`${s}-columns${n}`] = !0, i), {}));
|
|
2828
2876
|
let t = null;
|
|
2829
|
-
return typeof this.gap == "object" && (t = Object.entries(this.breakpointsGap).reduce((i, [
|
|
2877
|
+
return typeof this.gap == "object" && (t = Object.entries(this.breakpointsGap).reduce((i, [s, n]) => (i[`${s}-gap${n}`] = !0, i), {})), {
|
|
2830
2878
|
...e || { [`columns${this.columns}`]: this.columns },
|
|
2831
2879
|
...t || { [`gap${this.gap}`]: this.gap }
|
|
2832
2880
|
};
|
|
2833
2881
|
}
|
|
2834
2882
|
}
|
|
2835
|
-
},
|
|
2836
|
-
function
|
|
2837
|
-
return
|
|
2883
|
+
}, Si = /* @__PURE__ */ v(Ci, [["render", _i]]);
|
|
2884
|
+
function Bi(e, t, i, s, n, l) {
|
|
2885
|
+
return o(), g(I(i.tag || "i"), C({ class: "w-icon" }, z(e.$attrs), {
|
|
2838
2886
|
class: l.classes,
|
|
2839
2887
|
role: "icon",
|
|
2840
2888
|
"aria-hidden": "true",
|
|
2841
2889
|
style: l.readIcon() && l.styles
|
|
2842
2890
|
}), {
|
|
2843
2891
|
default: m(() => [
|
|
2844
|
-
l.hasLigature ? (
|
|
2892
|
+
l.hasLigature ? (o(), u(k, { key: 0 }, [
|
|
2845
2893
|
S(_(e.icon), 1)
|
|
2846
|
-
], 64)) :
|
|
2894
|
+
], 64)) : p("", !0)
|
|
2847
2895
|
]),
|
|
2848
2896
|
_: 1
|
|
2849
2897
|
}, 16, ["class", "style"]);
|
|
2850
2898
|
}
|
|
2851
|
-
const
|
|
2899
|
+
const $i = {
|
|
2852
2900
|
name: "w-icon",
|
|
2853
2901
|
props: {
|
|
2854
2902
|
tag: { type: String, default: "i" },
|
|
@@ -2917,13 +2965,13 @@ const Vi = {
|
|
|
2917
2965
|
return this.fontName = t, this.icon = i, !0;
|
|
2918
2966
|
}
|
|
2919
2967
|
}
|
|
2920
|
-
},
|
|
2968
|
+
}, Vi = /* @__PURE__ */ v($i, [["render", Bi]]), Ii = {
|
|
2921
2969
|
key: 0,
|
|
2922
2970
|
class: "w-image__loader"
|
|
2923
2971
|
};
|
|
2924
|
-
function
|
|
2972
|
+
function Ti(e, t, i, s, n, l) {
|
|
2925
2973
|
const a = $("w-progress");
|
|
2926
|
-
return
|
|
2974
|
+
return o(), g(I(l.wrapperTag), {
|
|
2927
2975
|
class: f(["w-image-wrap", l.wrapperClasses]),
|
|
2928
2976
|
style: R(l.wrapperStyles)
|
|
2929
2977
|
}, {
|
|
@@ -2933,36 +2981,36 @@ function Li(e, t, i, o, n, l) {
|
|
|
2933
2981
|
appear: ""
|
|
2934
2982
|
}, {
|
|
2935
2983
|
default: m(() => [
|
|
2936
|
-
n.loaded ? (
|
|
2984
|
+
n.loaded ? (o(), g(I(i.tag), {
|
|
2937
2985
|
key: 0,
|
|
2938
2986
|
class: f(["w-image", l.imageClasses]),
|
|
2939
2987
|
style: R(l.imageStyles),
|
|
2940
2988
|
src: i.tag === "img" ? n.imgSrc : null
|
|
2941
|
-
}, null, 8, ["class", "style", "src"])) :
|
|
2989
|
+
}, null, 8, ["class", "style", "src"])) : p("", !0)
|
|
2942
2990
|
]),
|
|
2943
2991
|
_: 1
|
|
2944
2992
|
}, 8, ["name"]),
|
|
2945
|
-
!i.noSpinner && n.loading ? (
|
|
2946
|
-
e.$slots.loading ?
|
|
2993
|
+
!i.noSpinner && n.loading ? (o(), u("div", Ii, [
|
|
2994
|
+
e.$slots.loading ? c(e.$slots, "loading", { key: 0 }) : (o(), g(a, C({
|
|
2947
2995
|
key: 1,
|
|
2948
2996
|
circle: "",
|
|
2949
2997
|
indeterminate: ""
|
|
2950
2998
|
}, i.spinnerColor ? { color: i.spinnerColor } : {}), null, 16))
|
|
2951
|
-
])) :
|
|
2952
|
-
e.$slots.default ? (
|
|
2999
|
+
])) : p("", !0),
|
|
3000
|
+
e.$slots.default ? (o(), g(I(l.wrapperTag), {
|
|
2953
3001
|
key: 1,
|
|
2954
3002
|
class: f(["w-image__content", i.contentClass])
|
|
2955
3003
|
}, {
|
|
2956
3004
|
default: m(() => [
|
|
2957
|
-
|
|
3005
|
+
c(e.$slots, "default")
|
|
2958
3006
|
]),
|
|
2959
3007
|
_: 3
|
|
2960
|
-
}, 8, ["class"])) :
|
|
3008
|
+
}, 8, ["class"])) : p("", !0)
|
|
2961
3009
|
]),
|
|
2962
3010
|
_: 3
|
|
2963
3011
|
}, 8, ["class", "style"]);
|
|
2964
3012
|
}
|
|
2965
|
-
const
|
|
3013
|
+
const Li = {
|
|
2966
3014
|
name: "w-image",
|
|
2967
3015
|
props: {
|
|
2968
3016
|
tag: { type: String, default: "span" },
|
|
@@ -3030,8 +3078,8 @@ const Ri = {
|
|
|
3030
3078
|
if (!this.loading)
|
|
3031
3079
|
return this.loading = !0, this.loaded = !1, this.$emit("loading", e ? this.fallback : this.src), new Promise((t) => {
|
|
3032
3080
|
const i = new Image();
|
|
3033
|
-
i.onload = (
|
|
3034
|
-
this.$emit("error",
|
|
3081
|
+
i.onload = (s) => (!this.width && !this.height && !this.imgGivenRatio && (this.imgWidth = s.target.width, this.imgHeight = s.target.height), this.imgComputedRatio = s.target.height / s.target.width, this.loading = !1, this.loaded = !0, this.imgSrc = e ? this.fallback : this.src, this.$emit("loaded", this.imgSrc), t(i)), i.onerror = (s) => {
|
|
3082
|
+
this.$emit("error", s), this.fallback && !e ? (this.loading = !1, this.loadImage(!0)) : (this.loading = !1, this.loaded = !1);
|
|
3035
3083
|
}, i.src = e ? this.fallback : this.src;
|
|
3036
3084
|
});
|
|
3037
3085
|
}
|
|
@@ -3058,13 +3106,13 @@ const Ri = {
|
|
|
3058
3106
|
this.imgHeight = e;
|
|
3059
3107
|
}
|
|
3060
3108
|
}
|
|
3061
|
-
},
|
|
3109
|
+
}, Ri = /* @__PURE__ */ v(Li, [["render", Ti]]), xi = ["name"], Oi = ["for"], Pi = ["id", "type", "name", "placeholder", "step", "min", "max", "minlength", "maxlength", "readonly", "aria-readonly", "disabled", "required", "tabindex"], Mi = ["id", "name", "multiple", "disabled", "data-progress"], zi = {
|
|
3062
3110
|
class: "w-input__no-file",
|
|
3063
3111
|
key: "no-file"
|
|
3064
|
-
},
|
|
3065
|
-
function Ki(e, t, i,
|
|
3112
|
+
}, Ei = ["for"], Wi = ["src"], Ai = ["for"];
|
|
3113
|
+
function Ki(e, t, i, s, n, l) {
|
|
3066
3114
|
const a = $("w-icon"), r = $("w-progress");
|
|
3067
|
-
return
|
|
3115
|
+
return o(), g(I(e.formRegister ? "w-form-element" : "div"), C({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: n.inputValue, disabled: e.isDisabled, readonly: e.isReadonly, isFocused: n.isFocused }, {
|
|
3068
3116
|
valid: e.valid,
|
|
3069
3117
|
"onUpdate:valid": t[10] || (t[10] = (d) => e.valid = d),
|
|
3070
3118
|
onReset: t[11] || (t[11] = (d) => {
|
|
@@ -3074,32 +3122,32 @@ function Ki(e, t, i, o, n, l) {
|
|
|
3074
3122
|
class: l.classes
|
|
3075
3123
|
}), {
|
|
3076
3124
|
default: m(() => [
|
|
3077
|
-
i.type === "hidden" ?
|
|
3125
|
+
i.type === "hidden" ? K((o(), u("input", {
|
|
3078
3126
|
key: 0,
|
|
3079
3127
|
type: "hidden",
|
|
3080
3128
|
name: e.name || null,
|
|
3081
3129
|
"onUpdate:modelValue": t[0] || (t[0] = (d) => n.inputValue = d)
|
|
3082
|
-
}, null, 8,
|
|
3130
|
+
}, null, 8, xi)), [
|
|
3083
3131
|
[be, n.inputValue]
|
|
3084
|
-
]) : (
|
|
3085
|
-
i.labelPosition === "left" ? (
|
|
3086
|
-
e.$slots.default || i.label ? (
|
|
3132
|
+
]) : (o(), u(k, { key: 1 }, [
|
|
3133
|
+
i.labelPosition === "left" ? (o(), u(k, { key: 0 }, [
|
|
3134
|
+
e.$slots.default || i.label ? (o(), u("label", {
|
|
3087
3135
|
key: 0,
|
|
3088
3136
|
class: f(["w-input__label w-input__label--left w-form-el-shakable", e.labelClasses]),
|
|
3089
3137
|
for: `w-input--${e._.uid}`
|
|
3090
3138
|
}, [
|
|
3091
|
-
|
|
3139
|
+
c(e.$slots, "default", {}, () => [
|
|
3092
3140
|
S(_(i.label), 1)
|
|
3093
3141
|
])
|
|
3094
|
-
], 10,
|
|
3095
|
-
], 64)) :
|
|
3142
|
+
], 10, Oi)) : p("", !0)
|
|
3143
|
+
], 64)) : p("", !0),
|
|
3096
3144
|
y("div", {
|
|
3097
3145
|
class: f(["w-input__input-wrap", l.inputWrapClasses])
|
|
3098
3146
|
}, [
|
|
3099
|
-
|
|
3147
|
+
c(e.$slots, "icon-left", {
|
|
3100
3148
|
inputId: `w-input--${e._.uid}`
|
|
3101
3149
|
}, () => [
|
|
3102
|
-
i.innerIconLeft ? (
|
|
3150
|
+
i.innerIconLeft ? (o(), g(a, {
|
|
3103
3151
|
key: 0,
|
|
3104
3152
|
class: "w-input__icon w-input__icon--inner-left",
|
|
3105
3153
|
tag: "label",
|
|
@@ -3110,9 +3158,9 @@ function Ki(e, t, i, o, n, l) {
|
|
|
3110
3158
|
S(_(i.innerIconLeft), 1)
|
|
3111
3159
|
]),
|
|
3112
3160
|
_: 1
|
|
3113
|
-
}, 8, ["for"])) :
|
|
3161
|
+
}, 8, ["for"])) : p("", !0)
|
|
3114
3162
|
]),
|
|
3115
|
-
i.type !== "file" ?
|
|
3163
|
+
i.type !== "file" ? K((o(), u("input", C({
|
|
3116
3164
|
key: 0,
|
|
3117
3165
|
class: "w-input__input",
|
|
3118
3166
|
ref: "input",
|
|
@@ -3135,9 +3183,9 @@ function Ki(e, t, i, o, n, l) {
|
|
|
3135
3183
|
disabled: e.isDisabled || null,
|
|
3136
3184
|
required: e.required || null,
|
|
3137
3185
|
tabindex: e.tabindex || null
|
|
3138
|
-
}, l.attrs), null, 16,
|
|
3186
|
+
}, l.attrs), null, 16, Pi)), [
|
|
3139
3187
|
[$e, n.inputValue]
|
|
3140
|
-
]) : (
|
|
3188
|
+
]) : (o(), u(k, { key: 1 }, [
|
|
3141
3189
|
y("input", C({
|
|
3142
3190
|
ref: "input",
|
|
3143
3191
|
id: `w-input--${e._.uid}`,
|
|
@@ -3150,7 +3198,7 @@ function Ki(e, t, i, o, n, l) {
|
|
|
3150
3198
|
}, l.attrs, {
|
|
3151
3199
|
disabled: e.isDisabled || null,
|
|
3152
3200
|
"data-progress": l.overallFilesProgress
|
|
3153
|
-
}), null, 16,
|
|
3201
|
+
}), null, 16, Mi),
|
|
3154
3202
|
V(oe, {
|
|
3155
3203
|
class: "w-input__input w-input__input--file",
|
|
3156
3204
|
tag: "label",
|
|
@@ -3158,18 +3206,18 @@ function Ki(e, t, i, o, n, l) {
|
|
|
3158
3206
|
for: `w-input--${e._.uid}`
|
|
3159
3207
|
}, {
|
|
3160
3208
|
default: m(() => [
|
|
3161
|
-
!n.inputFiles.length && n.isFocused ? (
|
|
3162
|
-
|
|
3163
|
-
e.$slots["no-file"] === void 0 ? (
|
|
3209
|
+
!n.inputFiles.length && n.isFocused ? (o(), u("span", zi, [
|
|
3210
|
+
c(e.$slots, "no-file", {}, () => [
|
|
3211
|
+
e.$slots["no-file"] === void 0 ? (o(), u(k, { key: 0 }, [
|
|
3164
3212
|
S("No file")
|
|
3165
|
-
], 64)) :
|
|
3213
|
+
], 64)) : p("", !0)
|
|
3166
3214
|
])
|
|
3167
|
-
])) :
|
|
3168
|
-
(
|
|
3215
|
+
])) : p("", !0),
|
|
3216
|
+
(o(!0), u(k, null, L(n.inputFiles, (d, h) => (o(), u("span", {
|
|
3169
3217
|
key: d.lastModified
|
|
3170
3218
|
}, [
|
|
3171
3219
|
S(_(h ? ", " : ""), 1),
|
|
3172
|
-
(
|
|
3220
|
+
(o(), u("span", {
|
|
3173
3221
|
class: "filename",
|
|
3174
3222
|
key: `${h}b`
|
|
3175
3223
|
}, _(d.base), 1)),
|
|
@@ -3179,20 +3227,20 @@ function Ki(e, t, i, o, n, l) {
|
|
|
3179
3227
|
_: 3
|
|
3180
3228
|
}, 8, ["for"])
|
|
3181
3229
|
], 64)),
|
|
3182
|
-
i.labelPosition === "inside" && l.showLabelInside ? (
|
|
3183
|
-
e.$slots.default || i.label ? (
|
|
3230
|
+
i.labelPosition === "inside" && l.showLabelInside ? (o(), u(k, { key: 2 }, [
|
|
3231
|
+
e.$slots.default || i.label ? (o(), u("label", {
|
|
3184
3232
|
key: 0,
|
|
3185
3233
|
class: f(["w-input__label w-input__label--inside w-form-el-shakable", e.labelClasses])
|
|
3186
3234
|
}, [
|
|
3187
|
-
|
|
3235
|
+
c(e.$slots, "default", {}, () => [
|
|
3188
3236
|
S(_(i.label), 1)
|
|
3189
3237
|
])
|
|
3190
|
-
], 2)) :
|
|
3191
|
-
], 64)) :
|
|
3192
|
-
|
|
3238
|
+
], 2)) : p("", !0)
|
|
3239
|
+
], 64)) : p("", !0),
|
|
3240
|
+
c(e.$slots, "icon-right", {
|
|
3193
3241
|
inputId: `w-input--${e._.uid}`
|
|
3194
3242
|
}, () => [
|
|
3195
|
-
i.innerIconRight ? (
|
|
3243
|
+
i.innerIconRight ? (o(), g(a, {
|
|
3196
3244
|
key: 0,
|
|
3197
3245
|
class: "w-input__icon w-input__icon--inner-right",
|
|
3198
3246
|
tag: "label",
|
|
@@ -3203,53 +3251,53 @@ function Ki(e, t, i, o, n, l) {
|
|
|
3203
3251
|
S(_(i.innerIconRight), 1)
|
|
3204
3252
|
]),
|
|
3205
3253
|
_: 1
|
|
3206
|
-
}, 8, ["for"])) :
|
|
3254
|
+
}, 8, ["for"])) : p("", !0)
|
|
3207
3255
|
]),
|
|
3208
|
-
l.hasLoading || i.showProgress && (l.uploadInProgress || l.uploadComplete) ? (
|
|
3256
|
+
l.hasLoading || i.showProgress && (l.uploadInProgress || l.uploadComplete) ? (o(), g(r, {
|
|
3209
3257
|
key: 3,
|
|
3210
3258
|
class: "fill-width",
|
|
3211
3259
|
size: "2",
|
|
3212
3260
|
color: i.progressColor || i.color,
|
|
3213
3261
|
"model-value": i.showProgress ? (l.uploadInProgress || l.uploadComplete) && l.overallFilesProgress : l.loadingValue
|
|
3214
|
-
}, null, 8, ["color", "model-value"])) :
|
|
3262
|
+
}, null, 8, ["color", "model-value"])) : p("", !0)
|
|
3215
3263
|
], 2),
|
|
3216
|
-
i.type === "file" && i.preview && n.inputFiles.length ? (
|
|
3264
|
+
i.type === "file" && i.preview && n.inputFiles.length ? (o(), u("label", {
|
|
3217
3265
|
key: 1,
|
|
3218
3266
|
class: "d-flex",
|
|
3219
3267
|
for: `w-input--${e._.uid}`
|
|
3220
3268
|
}, [
|
|
3221
|
-
(
|
|
3222
|
-
d.progress < 100 ? (
|
|
3269
|
+
(o(!0), u(k, null, L(n.inputFiles, (d, h) => (o(), u(k, null, [
|
|
3270
|
+
d.progress < 100 ? (o(), u("i", {
|
|
3223
3271
|
class: "w-icon wi-spinner w-icon--spin size--sm w-input__file-preview primary",
|
|
3224
3272
|
key: `${h}a`
|
|
3225
|
-
})) : d.preview ? (
|
|
3273
|
+
})) : d.preview ? (o(), u("img", {
|
|
3226
3274
|
class: "w-input__file-preview",
|
|
3227
3275
|
key: `${h}b`,
|
|
3228
3276
|
src: d.preview,
|
|
3229
3277
|
alt: ""
|
|
3230
|
-
}, null, 8,
|
|
3278
|
+
}, null, 8, Wi)) : (o(), u("i", {
|
|
3231
3279
|
class: f(["w-icon w-input__file-preview primary size--md", i.preview && typeof i.preview == "string" ? i.preview : "wi-file"]),
|
|
3232
3280
|
key: `${h}c`
|
|
3233
3281
|
}, null, 2))
|
|
3234
3282
|
], 64))), 256))
|
|
3235
|
-
], 8,
|
|
3236
|
-
i.labelPosition === "right" ? (
|
|
3237
|
-
e.$slots.default || i.label ? (
|
|
3283
|
+
], 8, Ei)) : p("", !0),
|
|
3284
|
+
i.labelPosition === "right" ? (o(), u(k, { key: 2 }, [
|
|
3285
|
+
e.$slots.default || i.label ? (o(), u("label", {
|
|
3238
3286
|
key: 0,
|
|
3239
3287
|
class: f(["w-input__label w-input__label--right w-form-el-shakable", e.labelClasses]),
|
|
3240
3288
|
for: `w-input--${e._.uid}`
|
|
3241
3289
|
}, [
|
|
3242
|
-
|
|
3290
|
+
c(e.$slots, "default", {}, () => [
|
|
3243
3291
|
S(_(i.label), 1)
|
|
3244
3292
|
])
|
|
3245
|
-
], 10,
|
|
3246
|
-
], 64)) :
|
|
3293
|
+
], 10, Ai)) : p("", !0)
|
|
3294
|
+
], 64)) : p("", !0)
|
|
3247
3295
|
], 64))
|
|
3248
3296
|
]),
|
|
3249
3297
|
_: 3
|
|
3250
3298
|
}, 16, ["valid", "wrap", "class"]);
|
|
3251
3299
|
}
|
|
3252
|
-
const
|
|
3300
|
+
const Ni = {
|
|
3253
3301
|
name: "w-input",
|
|
3254
3302
|
mixins: [E],
|
|
3255
3303
|
props: {
|
|
@@ -3299,8 +3347,8 @@ const Hi = {
|
|
|
3299
3347
|
return this.type === "file" && !this.inputFiles.length && (t.value = null), t;
|
|
3300
3348
|
},
|
|
3301
3349
|
listeners() {
|
|
3302
|
-
const { input: e, focus: t, blur: i, ...
|
|
3303
|
-
return
|
|
3350
|
+
const { input: e, focus: t, blur: i, ...s } = this.$attrs;
|
|
3351
|
+
return s;
|
|
3304
3352
|
},
|
|
3305
3353
|
hasValue() {
|
|
3306
3354
|
switch (this.type) {
|
|
@@ -3329,7 +3377,7 @@ const Hi = {
|
|
|
3329
3377
|
return !this.staticLabel || !this.hasValue && !this.placeholder;
|
|
3330
3378
|
},
|
|
3331
3379
|
overallFilesProgress() {
|
|
3332
|
-
const t = +this.inputFiles.reduce((i,
|
|
3380
|
+
const t = +this.inputFiles.reduce((i, s) => i + s.progress, 0) / this.inputFiles.length;
|
|
3333
3381
|
return this.$emit("update:overallProgress", this.inputFiles.length ? t : void 0), t;
|
|
3334
3382
|
},
|
|
3335
3383
|
uploadInProgress() {
|
|
@@ -3383,9 +3431,9 @@ const Hi = {
|
|
|
3383
3431
|
},
|
|
3384
3432
|
onFileChange(e) {
|
|
3385
3433
|
this.inputFiles = [...e.target.files].map((i) => {
|
|
3386
|
-
const [,
|
|
3434
|
+
const [, s = "", n = "", l = ""] = i.name.match(/^(.*?)\.([^.]*)$|(.*)/), a = Q({
|
|
3387
3435
|
name: i.name,
|
|
3388
|
-
base:
|
|
3436
|
+
base: s || l,
|
|
3389
3437
|
extension: n,
|
|
3390
3438
|
type: i.type,
|
|
3391
3439
|
size: i.size,
|
|
@@ -3400,8 +3448,8 @@ const Hi = {
|
|
|
3400
3448
|
this.$emit("update:modelValue", t), this.$emit("input", t);
|
|
3401
3449
|
},
|
|
3402
3450
|
readFile(e, t) {
|
|
3403
|
-
const i = new FileReader(),
|
|
3404
|
-
this.preview && !
|
|
3451
|
+
const i = new FileReader(), s = typeof this.preview == "string", n = e.type && e.type.startsWith("image/");
|
|
3452
|
+
this.preview && !s && n ? i.addEventListener("load", (l) => {
|
|
3405
3453
|
t.preview = l.target.result;
|
|
3406
3454
|
}) : delete t.preview, i.addEventListener("progress", (l) => {
|
|
3407
3455
|
l.loaded && l.total && (t.progress = l.loaded * 100 / l.total);
|
|
@@ -3418,17 +3466,17 @@ const Hi = {
|
|
|
3418
3466
|
this.inputValue = e, !e && e !== 0 && (this.isAutofilled = !1, this.inputFiles = []);
|
|
3419
3467
|
}
|
|
3420
3468
|
}
|
|
3421
|
-
},
|
|
3422
|
-
function
|
|
3469
|
+
}, Hi = /* @__PURE__ */ v(Ni, [["render", Ki]]);
|
|
3470
|
+
function Di(e, t, i, s, n, l) {
|
|
3423
3471
|
const a = $("w-icon"), r = $("w-list", !0);
|
|
3424
|
-
return
|
|
3472
|
+
return o(), u("ul", {
|
|
3425
3473
|
class: f(["w-list", l.classes])
|
|
3426
3474
|
}, [
|
|
3427
|
-
(
|
|
3475
|
+
(o(!0), u(k, null, L(e.listItems, (d, h) => (o(), u("li", {
|
|
3428
3476
|
class: f(["w-list__item", { "w-list__item--parent": (d.children || []).length }]),
|
|
3429
3477
|
key: h
|
|
3430
3478
|
}, [
|
|
3431
|
-
i.icon ? (
|
|
3479
|
+
i.icon ? (o(), g(a, {
|
|
3432
3480
|
key: 0,
|
|
3433
3481
|
class: "w-list__item-bullet"
|
|
3434
3482
|
}, {
|
|
@@ -3436,23 +3484,23 @@ function Fi(e, t, i, o, n, l) {
|
|
|
3436
3484
|
S(_(i.icon), 1)
|
|
3437
3485
|
]),
|
|
3438
3486
|
_: 1
|
|
3439
|
-
})) :
|
|
3440
|
-
e.$slots[`item.${h + 1}`] || e.$slots.item || e.$slots.default ? (
|
|
3487
|
+
})) : p("", !0),
|
|
3488
|
+
e.$slots[`item.${h + 1}`] || e.$slots.item || e.$slots.default ? (o(), g(I(i.checklist ? "w-checkbox" : i.nav && !d.disabled && d.route ? l.hasRouter ? "router-link" : "a" : "div"), C({
|
|
3441
3489
|
key: 1,
|
|
3442
3490
|
class: "w-list__item-label"
|
|
3443
3491
|
}, l.liLabelProps(d, h, d._selected)), {
|
|
3444
3492
|
default: m(() => [
|
|
3445
|
-
e.$slots[`item.${h + 1}`] ?
|
|
3493
|
+
e.$slots[`item.${h + 1}`] ? c(e.$slots, `item.${h + 1}`, {
|
|
3446
3494
|
key: 0,
|
|
3447
3495
|
item: l.cleanLi(d),
|
|
3448
3496
|
index: h + 1,
|
|
3449
3497
|
selected: d._selected
|
|
3450
|
-
}) : e.$slots.item ?
|
|
3498
|
+
}) : e.$slots.item ? c(e.$slots, "item", {
|
|
3451
3499
|
key: 1,
|
|
3452
3500
|
item: l.cleanLi(d),
|
|
3453
3501
|
index: h + 1,
|
|
3454
3502
|
selected: d._selected
|
|
3455
|
-
}) :
|
|
3503
|
+
}) : c(e.$slots, "default", {
|
|
3456
3504
|
key: 2,
|
|
3457
3505
|
item: l.cleanLi(d),
|
|
3458
3506
|
index: h + 1,
|
|
@@ -3462,23 +3510,23 @@ function Fi(e, t, i, o, n, l) {
|
|
|
3462
3510
|
])
|
|
3463
3511
|
]),
|
|
3464
3512
|
_: 2
|
|
3465
|
-
}, 1040)) : (
|
|
3513
|
+
}, 1040)) : (o(), g(I(i.checklist ? "w-checkbox" : i.nav && !d.disabled && d.route ? l.hasRouter ? "router-link" : "a" : "div"), C({
|
|
3466
3514
|
key: 2,
|
|
3467
3515
|
class: "w-list__item-label"
|
|
3468
3516
|
}, l.liLabelProps(d, h, d._selected)), null, 16)),
|
|
3469
|
-
(d.children || []).length ? (
|
|
3517
|
+
(d.children || []).length ? (o(), g(r, C({ key: 3 }, e.$props, {
|
|
3470
3518
|
items: d.children,
|
|
3471
3519
|
depth: i.depth + 1,
|
|
3472
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
3473
|
-
onInput: t[1] || (t[1] = (
|
|
3474
|
-
onItemClick: t[2] || (t[2] = (
|
|
3475
|
-
onItemSelect: t[3] || (t[3] = (
|
|
3520
|
+
"onUpdate:modelValue": t[0] || (t[0] = (w) => e.$emit("update:modelValue", w)),
|
|
3521
|
+
onInput: t[1] || (t[1] = (w) => e.$emit("input", w)),
|
|
3522
|
+
onItemClick: t[2] || (t[2] = (w) => e.$emit("item-click", w)),
|
|
3523
|
+
onItemSelect: t[3] || (t[3] = (w) => e.$emit("item-select", w))
|
|
3476
3524
|
}), Z({ _: 2 }, [
|
|
3477
3525
|
e.$slots.item ? {
|
|
3478
3526
|
name: "item",
|
|
3479
|
-
fn: m(({ item:
|
|
3480
|
-
|
|
3481
|
-
item: l.cleanLi(
|
|
3527
|
+
fn: m(({ item: w, index: B, selected: b }) => [
|
|
3528
|
+
c(e.$slots, "item", {
|
|
3529
|
+
item: l.cleanLi(w),
|
|
3482
3530
|
index: B,
|
|
3483
3531
|
selected: b
|
|
3484
3532
|
})
|
|
@@ -3486,22 +3534,22 @@ function Fi(e, t, i, o, n, l) {
|
|
|
3486
3534
|
key: "0"
|
|
3487
3535
|
} : {
|
|
3488
3536
|
name: "default",
|
|
3489
|
-
fn: m(({ item:
|
|
3490
|
-
|
|
3491
|
-
item: l.cleanLi(
|
|
3537
|
+
fn: m(({ item: w, index: B, selected: b }) => [
|
|
3538
|
+
c(e.$slots, "default", {
|
|
3539
|
+
item: l.cleanLi(w),
|
|
3492
3540
|
index: B,
|
|
3493
3541
|
selected: b
|
|
3494
3542
|
}, () => [
|
|
3495
|
-
S(_(
|
|
3543
|
+
S(_(w[i.itemLabelKey]), 1)
|
|
3496
3544
|
])
|
|
3497
3545
|
]),
|
|
3498
3546
|
key: "1"
|
|
3499
3547
|
}
|
|
3500
|
-
]), 1040, ["items", "depth"])) :
|
|
3548
|
+
]), 1040, ["items", "depth"])) : p("", !0)
|
|
3501
3549
|
], 2))), 128))
|
|
3502
3550
|
], 2);
|
|
3503
3551
|
}
|
|
3504
|
-
const
|
|
3552
|
+
const Fi = {
|
|
3505
3553
|
name: "w-list",
|
|
3506
3554
|
props: {
|
|
3507
3555
|
items: { type: [Array, Number], required: !0 },
|
|
@@ -3585,7 +3633,7 @@ const ji = {
|
|
|
3585
3633
|
};
|
|
3586
3634
|
},
|
|
3587
3635
|
liLabelProps(e, t, i) {
|
|
3588
|
-
const
|
|
3636
|
+
const s = this.$slots[`item.${t + 1}`] || this.$slots.item, n = () => {
|
|
3589
3637
|
if (!e.disabled) {
|
|
3590
3638
|
const d = this.cleanLi(e);
|
|
3591
3639
|
this.$emit("item-click", d), this.$emit("item-select", d);
|
|
@@ -3601,12 +3649,12 @@ const ji = {
|
|
|
3601
3649
|
id: this.listId ? `${this.listId}_item-${t + 1}` : null,
|
|
3602
3650
|
role: "option"
|
|
3603
3651
|
};
|
|
3604
|
-
return this.checklist ? (r.modelValue = e._selected, r.color = e[this.itemColorKey] || this.color, r.round = this.roundCheckboxes, r.disabled = e.disabled,
|
|
3652
|
+
return this.checklist ? (r.modelValue = e._selected, r.color = e[this.itemColorKey] || this.color, r.round = this.roundCheckboxes, r.disabled = e.disabled, s || (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) => {
|
|
3605
3653
|
const h = d.target.querySelector('input[type="checkbox"]');
|
|
3606
3654
|
h && (h.focus(), h.click()), n();
|
|
3607
3655
|
}) : this.nav ? (!e.disabled && e[this.itemRouteKey] && (r.onKeydown = a, r.onMousedown = l, this.$router ? (r.to = e[this.itemRouteKey], r.onClick = (d) => {
|
|
3608
3656
|
d.preventDefault(), this.$router.push(e[this.itemRouteKey]), n();
|
|
3609
|
-
}) : (r.href = e[this.itemRouteKey], r.onClick = n)),
|
|
3657
|
+
}) : (r.href = e[this.itemRouteKey], r.onClick = n)), s || (r.innerHTML = e._label)) : (this.isSelectable && (e.disabled || (r.tabindex = 0), r.onClick = n, r.onKeydown = a, r.onMousedown = l), s || (r.innerHTML = e._label)), r;
|
|
3610
3658
|
},
|
|
3611
3659
|
checkSelection(e) {
|
|
3612
3660
|
return e = Array.isArray(e) ? e : e ? [e] : [], this.returnObject && (e = e.map(this.getItemValue)), e;
|
|
@@ -3615,7 +3663,7 @@ const ji = {
|
|
|
3615
3663
|
const e = this.selectedItems.map((i) => {
|
|
3616
3664
|
if (!this.returnObject)
|
|
3617
3665
|
return i._value;
|
|
3618
|
-
const { _value:
|
|
3666
|
+
const { _value: s, _selected: n, ...l } = i;
|
|
3619
3667
|
return l;
|
|
3620
3668
|
}), t = this.isMultipleSelect ? e : e[0] !== void 0 ? e[0] : null;
|
|
3621
3669
|
this.$emit("update:modelValue", t), this.$emit("input", t);
|
|
@@ -3626,7 +3674,7 @@ const ji = {
|
|
|
3626
3674
|
e === void 0 && (e = this.enabledItemsIndexes[i]), this.$el.querySelector(`#${this.listId}_item-${e + 1}`).focus();
|
|
3627
3675
|
},
|
|
3628
3676
|
cleanLi(e) {
|
|
3629
|
-
const { _index: t, _value: i, _label:
|
|
3677
|
+
const { _index: t, _value: i, _label: s, _selected: n, _focused: l, ...a } = e;
|
|
3630
3678
|
return a;
|
|
3631
3679
|
},
|
|
3632
3680
|
refreshListItems() {
|
|
@@ -3644,7 +3692,7 @@ const ji = {
|
|
|
3644
3692
|
this.isMultipleSelect || this.listItems.forEach((i) => i._selected = !1);
|
|
3645
3693
|
const t = this.checkSelection(e);
|
|
3646
3694
|
this.listItems.forEach((i) => {
|
|
3647
|
-
i._selected = t.find((
|
|
3695
|
+
i._selected = t.find((s) => i._value === s) !== void 0;
|
|
3648
3696
|
});
|
|
3649
3697
|
}
|
|
3650
3698
|
},
|
|
@@ -3667,7 +3715,7 @@ const ji = {
|
|
|
3667
3715
|
}
|
|
3668
3716
|
}
|
|
3669
3717
|
}
|
|
3670
|
-
},
|
|
3718
|
+
}, ji = /* @__PURE__ */ v(Fi, [["render", Di]]), we = {
|
|
3671
3719
|
props: {
|
|
3672
3720
|
appendTo: { type: [String, Boolean, Object] },
|
|
3673
3721
|
fixed: { type: Boolean },
|
|
@@ -3736,8 +3784,8 @@ const ji = {
|
|
|
3736
3784
|
}, 0), this.persistent || document.addEventListener("mousedown", this.onOutsideMousedown), this.noPosition || window.addEventListener("resize", this.onResize));
|
|
3737
3785
|
},
|
|
3738
3786
|
getActivatorCoordinates() {
|
|
3739
|
-
const { top: e, left: t, width: i, height:
|
|
3740
|
-
let n = { top: e, left: t, width: i, height:
|
|
3787
|
+
const { top: e, left: t, width: i, height: s } = this.activatorEl.getBoundingClientRect();
|
|
3788
|
+
let n = { top: e, left: t, width: i, height: s };
|
|
3741
3789
|
if (!this.fixed) {
|
|
3742
3790
|
const { top: l, left: a } = this.detachableParentEl.getBoundingClientRect(), r = window.getComputedStyle(this.detachableParentEl, null);
|
|
3743
3791
|
n = {
|
|
@@ -3749,7 +3797,7 @@ const ji = {
|
|
|
3749
3797
|
return n;
|
|
3750
3798
|
},
|
|
3751
3799
|
computeDetachableCoords() {
|
|
3752
|
-
let { top: e, left: t, width: i, height:
|
|
3800
|
+
let { top: e, left: t, width: i, height: s } = this.getActivatorCoordinates();
|
|
3753
3801
|
if (!this.detachableEl)
|
|
3754
3802
|
return;
|
|
3755
3803
|
this.detachableEl.style.visibility = "hidden", this.detachableEl.style.display = "flex";
|
|
@@ -3760,15 +3808,15 @@ const ji = {
|
|
|
3760
3808
|
break;
|
|
3761
3809
|
}
|
|
3762
3810
|
case "bottom": {
|
|
3763
|
-
e +=
|
|
3811
|
+
e += s, this.alignRight ? t += i - this.detachableEl.offsetWidth + parseInt(n.getPropertyValue("border-right-width")) : this.alignLeft || (t += (i - this.detachableEl.offsetWidth) / 2);
|
|
3764
3812
|
break;
|
|
3765
3813
|
}
|
|
3766
3814
|
case "left": {
|
|
3767
|
-
t -= this.detachableEl.offsetWidth, this.alignBottom ? e +=
|
|
3815
|
+
t -= this.detachableEl.offsetWidth, this.alignBottom ? e += s - this.detachableEl.offsetHeight : this.alignTop || (e += (s - this.detachableEl.offsetHeight) / 2);
|
|
3768
3816
|
break;
|
|
3769
3817
|
}
|
|
3770
3818
|
case "right": {
|
|
3771
|
-
t += i, this.alignBottom ? e +=
|
|
3819
|
+
t += i, this.alignBottom ? e += s - this.detachableEl.offsetHeight + parseInt(n.getPropertyValue("margin-top")) : this.alignTop || (e += (s - this.detachableEl.offsetHeight) / 2 + parseInt(n.getPropertyValue("margin-top")));
|
|
3772
3820
|
break;
|
|
3773
3821
|
}
|
|
3774
3822
|
}
|
|
@@ -3795,11 +3843,11 @@ const ji = {
|
|
|
3795
3843
|
const e = typeof this.activator == "string";
|
|
3796
3844
|
Object.entries(this.activatorEventHandlers).forEach(([t, i]) => {
|
|
3797
3845
|
t = t.replace("mouseenter", "mouseover").replace("mouseleave", "mouseout");
|
|
3798
|
-
const
|
|
3846
|
+
const s = (n) => {
|
|
3799
3847
|
var l;
|
|
3800
3848
|
(e && ((l = n.target) == null ? void 0 : l.matches) && n.target.matches(this.activator) || n.target === this.activatorEl || this.activatorEl.contains(n.target)) && i(n);
|
|
3801
3849
|
};
|
|
3802
|
-
document.addEventListener(t,
|
|
3850
|
+
document.addEventListener(t, s), this.docEventListenersHandlers.push({ eventName: t, handler: s });
|
|
3803
3851
|
});
|
|
3804
3852
|
}
|
|
3805
3853
|
},
|
|
@@ -3823,16 +3871,16 @@ const ji = {
|
|
|
3823
3871
|
}
|
|
3824
3872
|
}
|
|
3825
3873
|
};
|
|
3826
|
-
function
|
|
3874
|
+
function Ui(e, t, i, s, n, l) {
|
|
3827
3875
|
const a = $("w-card"), r = $("w-overlay");
|
|
3828
|
-
return
|
|
3829
|
-
|
|
3876
|
+
return o(), u(k, null, [
|
|
3877
|
+
c(e.$slots, "activator", { on: l.activatorEventHandlers }),
|
|
3830
3878
|
V(O, {
|
|
3831
3879
|
name: l.transitionName,
|
|
3832
3880
|
appear: ""
|
|
3833
3881
|
}, {
|
|
3834
3882
|
default: m(() => [
|
|
3835
|
-
i.custom && e.detachableVisible ? (
|
|
3883
|
+
i.custom && e.detachableVisible ? (o(), u("div", C({
|
|
3836
3884
|
key: 0,
|
|
3837
3885
|
class: "w-menu",
|
|
3838
3886
|
ref: "detachable"
|
|
@@ -3843,8 +3891,8 @@ function qi(e, t, i, o, n, l) {
|
|
|
3843
3891
|
class: l.classes,
|
|
3844
3892
|
style: l.styles
|
|
3845
3893
|
}), [
|
|
3846
|
-
|
|
3847
|
-
], 16)) : e.detachableVisible ? (
|
|
3894
|
+
c(e.$slots, "default")
|
|
3895
|
+
], 16)) : e.detachableVisible ? (o(), g(a, C({
|
|
3848
3896
|
key: 1,
|
|
3849
3897
|
class: "w-menu",
|
|
3850
3898
|
ref: "detachable"
|
|
@@ -3861,29 +3909,29 @@ function qi(e, t, i, o, n, l) {
|
|
|
3861
3909
|
style: l.styles
|
|
3862
3910
|
}), Z({
|
|
3863
3911
|
default: m(() => [
|
|
3864
|
-
|
|
3912
|
+
c(e.$slots, "default")
|
|
3865
3913
|
]),
|
|
3866
3914
|
_: 2
|
|
3867
3915
|
}, [
|
|
3868
3916
|
e.$slots.title ? {
|
|
3869
3917
|
name: "title",
|
|
3870
3918
|
fn: m(() => [
|
|
3871
|
-
|
|
3919
|
+
c(e.$slots, "title")
|
|
3872
3920
|
]),
|
|
3873
3921
|
key: "0"
|
|
3874
3922
|
} : void 0,
|
|
3875
3923
|
e.$slots.actions ? {
|
|
3876
3924
|
name: "actions",
|
|
3877
3925
|
fn: m(() => [
|
|
3878
|
-
|
|
3926
|
+
c(e.$slots, "actions")
|
|
3879
3927
|
]),
|
|
3880
3928
|
key: "1"
|
|
3881
3929
|
} : void 0
|
|
3882
|
-
]), 1040, ["tile", "title-class", "content-class", "shadow", "no-border", "class", "style"])) :
|
|
3930
|
+
]), 1040, ["tile", "title-class", "content-class", "shadow", "no-border", "class", "style"])) : p("", !0)
|
|
3883
3931
|
]),
|
|
3884
3932
|
_: 3
|
|
3885
3933
|
}, 8, ["name"]),
|
|
3886
|
-
i.overlay ? (
|
|
3934
|
+
i.overlay ? (o(), g(r, C({
|
|
3887
3935
|
key: 0,
|
|
3888
3936
|
ref: "overlay",
|
|
3889
3937
|
"model-value": e.detachableVisible,
|
|
@@ -3892,10 +3940,10 @@ function qi(e, t, i, o, n, l) {
|
|
|
3892
3940
|
}, i.overlayProps, {
|
|
3893
3941
|
"z-index": (e.zIndex || 200) - 1,
|
|
3894
3942
|
"onUpdate:modelValue": t[6] || (t[6] = (d) => e.detachableVisible = !1)
|
|
3895
|
-
}), null, 16, ["model-value", "persistent", "class", "z-index"])) :
|
|
3943
|
+
}), null, 16, ["model-value", "persistent", "class", "z-index"])) : p("", !0)
|
|
3896
3944
|
], 64);
|
|
3897
3945
|
}
|
|
3898
|
-
const
|
|
3946
|
+
const qi = {
|
|
3899
3947
|
name: "w-menu",
|
|
3900
3948
|
mixins: [we],
|
|
3901
3949
|
inheritAttrs: !1,
|
|
@@ -4023,15 +4071,15 @@ const Xi = {
|
|
|
4023
4071
|
this.openTimeout = clearTimeout(this.openTimeout), this.detachableVisible && (this.showOnHover && !e && (await new Promise((t) => setTimeout(t, 10)), this.showOnHover && (this.hoveringMenu || this.hoveringActivator)) || (this.$emit("update:modelValue", this.detachableVisible = !1), this.$emit("input", !1), this.$emit("close"), document.removeEventListener("mousedown", this.onOutsideMousedown), window.removeEventListener("resize", this.onResize)));
|
|
4024
4072
|
}
|
|
4025
4073
|
}
|
|
4026
|
-
},
|
|
4027
|
-
function
|
|
4074
|
+
}, Xi = /* @__PURE__ */ v(qi, [["render", Ui]]);
|
|
4075
|
+
function Yi(e, t, i, s, n, l) {
|
|
4028
4076
|
const a = $("w-alert");
|
|
4029
|
-
return
|
|
4077
|
+
return o(), g(O, {
|
|
4030
4078
|
name: l.transitionName,
|
|
4031
4079
|
appear: ""
|
|
4032
4080
|
}, {
|
|
4033
4081
|
default: m(() => [
|
|
4034
|
-
n.show ? (
|
|
4082
|
+
n.show ? (o(), u("div", {
|
|
4035
4083
|
key: 0,
|
|
4036
4084
|
class: f(["w-notification", l.classes]),
|
|
4037
4085
|
style: R(l.styles)
|
|
@@ -4043,16 +4091,16 @@ function Gi(e, t, i, o, n, l) {
|
|
|
4043
4091
|
})
|
|
4044
4092
|
}), {
|
|
4045
4093
|
default: m(() => [
|
|
4046
|
-
|
|
4094
|
+
c(e.$slots, "default")
|
|
4047
4095
|
]),
|
|
4048
4096
|
_: 3
|
|
4049
4097
|
}, 16, ["class"])
|
|
4050
|
-
], 6)) :
|
|
4098
|
+
], 6)) : p("", !0)
|
|
4051
4099
|
]),
|
|
4052
4100
|
_: 3
|
|
4053
4101
|
}, 8, ["name"]);
|
|
4054
4102
|
}
|
|
4055
|
-
const
|
|
4103
|
+
const Gi = {
|
|
4056
4104
|
name: "w-notification",
|
|
4057
4105
|
props: {
|
|
4058
4106
|
modelValue: { default: !0 },
|
|
@@ -4172,16 +4220,16 @@ const Ji = {
|
|
|
4172
4220
|
clearTimeout(this.timeoutId), this.show = e, e && this.timeoutVal && this.countdown();
|
|
4173
4221
|
}
|
|
4174
4222
|
}
|
|
4175
|
-
},
|
|
4176
|
-
function
|
|
4223
|
+
}, Ji = /* @__PURE__ */ v(Gi, [["render", Yi]]);
|
|
4224
|
+
function Qi(e, t, i, s, n, l) {
|
|
4177
4225
|
const a = ge("focus");
|
|
4178
|
-
return
|
|
4226
|
+
return o(), g(O, {
|
|
4179
4227
|
name: "fade",
|
|
4180
4228
|
appear: "",
|
|
4181
4229
|
onAfterLeave: l.onClose
|
|
4182
4230
|
}, {
|
|
4183
4231
|
default: m(() => [
|
|
4184
|
-
i.modelValue ?
|
|
4232
|
+
i.modelValue ? K((o(), u("div", {
|
|
4185
4233
|
key: 0,
|
|
4186
4234
|
class: f(["w-overlay", l.classes]),
|
|
4187
4235
|
ref: "overlay",
|
|
@@ -4190,16 +4238,16 @@ function Zi(e, t, i, o, n, l) {
|
|
|
4190
4238
|
onClick: t[1] || (t[1] = (...r) => l.onClick && l.onClick(...r)),
|
|
4191
4239
|
tabindex: "0"
|
|
4192
4240
|
}, [
|
|
4193
|
-
|
|
4241
|
+
c(e.$slots, "default")
|
|
4194
4242
|
], 38)), [
|
|
4195
4243
|
[ae, e.showOverlay],
|
|
4196
4244
|
[a]
|
|
4197
|
-
]) :
|
|
4245
|
+
]) : p("", !0)
|
|
4198
4246
|
]),
|
|
4199
4247
|
_: 3
|
|
4200
4248
|
}, 8, ["onAfterLeave"]);
|
|
4201
4249
|
}
|
|
4202
|
-
const
|
|
4250
|
+
const Zi = {
|
|
4203
4251
|
name: "w-overlay",
|
|
4204
4252
|
props: {
|
|
4205
4253
|
modelValue: {},
|
|
@@ -4253,26 +4301,26 @@ const el = {
|
|
|
4253
4301
|
e && (this.showOverlay = !0);
|
|
4254
4302
|
}
|
|
4255
4303
|
}
|
|
4256
|
-
},
|
|
4257
|
-
function
|
|
4258
|
-
return
|
|
4304
|
+
}, el = /* @__PURE__ */ v(Zi, [["render", Qi]]), tl = { class: "w-parallax" };
|
|
4305
|
+
function il(e, t, i, s, n, l) {
|
|
4306
|
+
return o(), u("div", tl);
|
|
4259
4307
|
}
|
|
4260
|
-
const
|
|
4308
|
+
const ll = {
|
|
4261
4309
|
name: "w-parallax",
|
|
4262
4310
|
props: {},
|
|
4263
4311
|
emits: [],
|
|
4264
4312
|
data: () => ({})
|
|
4265
|
-
},
|
|
4266
|
-
function
|
|
4267
|
-
return
|
|
4313
|
+
}, sl = /* @__PURE__ */ v(ll, [["render", il]]), ol = ["viewBox"], al = ["cx", "cy", "r", "stroke-dasharray", "stroke-width"], nl = ["cx", "cy", "r", "stroke-width", "stroke-linecap", "stroke-dasharray"];
|
|
4314
|
+
function rl(e, t, i, s, n, l) {
|
|
4315
|
+
return o(), u("div", {
|
|
4268
4316
|
class: f(["w-progress", l.classes]),
|
|
4269
4317
|
style: R(l.styles)
|
|
4270
4318
|
}, [
|
|
4271
|
-
i.circle ? (
|
|
4319
|
+
i.circle ? (o(), u("svg", {
|
|
4272
4320
|
key: 1,
|
|
4273
4321
|
viewBox: `${l.circleCenter / 2} ${l.circleCenter / 2} ${l.circleCenter} ${l.circleCenter}`
|
|
4274
4322
|
}, [
|
|
4275
|
-
i.bgColor || this.progressValue > -1 ? (
|
|
4323
|
+
i.bgColor || this.progressValue > -1 ? (o(), u("circle", {
|
|
4276
4324
|
key: 0,
|
|
4277
4325
|
class: f(["bg", i.bgColor || null]),
|
|
4278
4326
|
cx: l.circleCenter,
|
|
@@ -4281,7 +4329,7 @@ function dl(e, t, i, o, n, l) {
|
|
|
4281
4329
|
fill: "transparent",
|
|
4282
4330
|
"stroke-dasharray": e.circleCircumference,
|
|
4283
4331
|
"stroke-width": i.stroke
|
|
4284
|
-
}, null, 10,
|
|
4332
|
+
}, null, 10, al)) : p("", !0),
|
|
4285
4333
|
y("circle", {
|
|
4286
4334
|
class: "w-progress__progress",
|
|
4287
4335
|
cx: l.circleCenter,
|
|
@@ -4292,23 +4340,23 @@ function dl(e, t, i, o, n, l) {
|
|
|
4292
4340
|
"stroke-linecap": i.roundCap && "round",
|
|
4293
4341
|
"stroke-dasharray": e.circleCircumference,
|
|
4294
4342
|
style: R(`stroke-dashoffset: ${(1 - l.progressValue / 100) * e.circleCircumference}`)
|
|
4295
|
-
}, null, 12,
|
|
4296
|
-
], 8,
|
|
4343
|
+
}, null, 12, nl)
|
|
4344
|
+
], 8, ol)) : (o(), u("div", {
|
|
4297
4345
|
key: 0,
|
|
4298
4346
|
class: f(["w-progress__progress", { full: l.progressValue === 100 }]),
|
|
4299
4347
|
style: R(`width: ${l.progressValue}%`)
|
|
4300
4348
|
}, null, 6)),
|
|
4301
|
-
i.label || e.$slots.default ? (
|
|
4349
|
+
i.label || e.$slots.default ? (o(), u("div", {
|
|
4302
4350
|
key: 2,
|
|
4303
4351
|
class: f(["w-progress__label", i.labelColor || !1])
|
|
4304
4352
|
}, [
|
|
4305
|
-
|
|
4353
|
+
c(e.$slots, "default", {}, () => [
|
|
4306
4354
|
S(_(Math.round(l.progressValue)) + _(i.circle ? "" : "%"), 1)
|
|
4307
4355
|
])
|
|
4308
|
-
], 2)) :
|
|
4356
|
+
], 2)) : p("", !0)
|
|
4309
4357
|
], 6);
|
|
4310
4358
|
}
|
|
4311
|
-
const J = 40,
|
|
4359
|
+
const J = 40, dl = J / 2, ul = Math.round(J * 3.14 * 100) / 100, hl = {
|
|
4312
4360
|
name: "w-progress",
|
|
4313
4361
|
props: {
|
|
4314
4362
|
modelValue: { type: [Number, String, Boolean], default: -1 },
|
|
@@ -4334,8 +4382,8 @@ const J = 40, ul = J / 2, hl = Math.round(J * 3.14 * 100) / 100, cl = {
|
|
|
4334
4382
|
emits: [],
|
|
4335
4383
|
data: () => ({
|
|
4336
4384
|
circleSize: J,
|
|
4337
|
-
circleRadius:
|
|
4338
|
-
circleCircumference:
|
|
4385
|
+
circleRadius: dl,
|
|
4386
|
+
circleCircumference: ul
|
|
4339
4387
|
}),
|
|
4340
4388
|
computed: {
|
|
4341
4389
|
progressValue() {
|
|
@@ -4374,9 +4422,9 @@ const J = 40, ul = J / 2, hl = Math.round(J * 3.14 * 100) / 100, cl = {
|
|
|
4374
4422
|
};
|
|
4375
4423
|
}
|
|
4376
4424
|
}
|
|
4377
|
-
},
|
|
4378
|
-
function
|
|
4379
|
-
return
|
|
4425
|
+
}, cl = /* @__PURE__ */ v(hl, [["render", rl]]), pl = ["id", "name", "checked", "disabled", "required", "tabindex", "aria-checked"], fl = ["for"], ml = ["for", "innerHTML"], gl = ["for"], bl = ["for", "innerHTML"];
|
|
4426
|
+
function yl(e, t, i, s, n, l) {
|
|
4427
|
+
return o(), g(I(e.formRegister && !l.wRadios ? "w-form-element" : "div"), C({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: e.inputValue, disabled: e.isDisabled, readonly: e.isReadonly }, {
|
|
4380
4428
|
valid: e.valid,
|
|
4381
4429
|
"onUpdate:valid": t[3] || (t[3] = (a) => e.valid = a),
|
|
4382
4430
|
onReset: t[4] || (t[4] = (a) => {
|
|
@@ -4398,50 +4446,50 @@ function wl(e, t, i, o, n, l) {
|
|
|
4398
4446
|
onChange: t[1] || (t[1] = (a) => l.onInput(a)),
|
|
4399
4447
|
"aria-checked": e.inputValue || "false",
|
|
4400
4448
|
role: "radio"
|
|
4401
|
-
}, null, 40,
|
|
4402
|
-
l.hasLabel && i.labelOnLeft ? (
|
|
4403
|
-
e.$slots.default ? (
|
|
4449
|
+
}, null, 40, pl),
|
|
4450
|
+
l.hasLabel && i.labelOnLeft ? (o(), u(k, { key: 0 }, [
|
|
4451
|
+
e.$slots.default ? (o(), u("label", {
|
|
4404
4452
|
key: 0,
|
|
4405
4453
|
class: f(["w-radio__label w-form-el-shakable pr2", e.labelClasses]),
|
|
4406
4454
|
for: `w-radio--${e._.uid}`
|
|
4407
4455
|
}, [
|
|
4408
|
-
|
|
4456
|
+
c(e.$slots, "default", {}, () => [
|
|
4409
4457
|
S(_(i.label), 1)
|
|
4410
4458
|
])
|
|
4411
|
-
], 10,
|
|
4459
|
+
], 10, fl)) : i.label ? (o(), u("label", {
|
|
4412
4460
|
key: 1,
|
|
4413
4461
|
class: f(["w-radio__label w-form-el-shakable pr2", e.labelClasses]),
|
|
4414
4462
|
for: `w-radio--${e._.uid}`,
|
|
4415
4463
|
innerHTML: i.label
|
|
4416
|
-
}, null, 10,
|
|
4417
|
-
], 64)) :
|
|
4464
|
+
}, null, 10, ml)) : p("", !0)
|
|
4465
|
+
], 64)) : p("", !0),
|
|
4418
4466
|
y("div", {
|
|
4419
4467
|
class: f(["w-radio__input", this.color]),
|
|
4420
4468
|
onClick: t[2] || (t[2] = (a) => {
|
|
4421
4469
|
e.$refs.input.focus(), e.$refs.input.click();
|
|
4422
4470
|
})
|
|
4423
4471
|
}, null, 2),
|
|
4424
|
-
l.hasLabel && !i.labelOnLeft ? (
|
|
4425
|
-
e.$slots.default ? (
|
|
4472
|
+
l.hasLabel && !i.labelOnLeft ? (o(), u(k, { key: 1 }, [
|
|
4473
|
+
e.$slots.default ? (o(), u("label", {
|
|
4426
4474
|
key: 0,
|
|
4427
4475
|
class: f(["w-radio__label w-form-el-shakable pl2", e.labelClasses]),
|
|
4428
4476
|
for: `w-radio--${e._.uid}`
|
|
4429
4477
|
}, [
|
|
4430
|
-
|
|
4478
|
+
c(e.$slots, "default", {}, () => [
|
|
4431
4479
|
S(_(i.label), 1)
|
|
4432
4480
|
])
|
|
4433
|
-
], 10,
|
|
4481
|
+
], 10, gl)) : i.label ? (o(), u("label", {
|
|
4434
4482
|
key: 1,
|
|
4435
4483
|
class: f(["w-radio__label w-form-el-shakable pl2", e.labelClasses]),
|
|
4436
4484
|
for: `w-radio--${e._.uid}`,
|
|
4437
4485
|
innerHTML: i.label
|
|
4438
|
-
}, null, 10,
|
|
4439
|
-
], 64)) :
|
|
4486
|
+
}, null, 10, bl)) : p("", !0)
|
|
4487
|
+
], 64)) : p("", !0)
|
|
4440
4488
|
]),
|
|
4441
4489
|
_: 3
|
|
4442
4490
|
}, 16, ["valid", "class"]);
|
|
4443
4491
|
}
|
|
4444
|
-
const
|
|
4492
|
+
const wl = {
|
|
4445
4493
|
name: "w-radio",
|
|
4446
4494
|
mixins: [E],
|
|
4447
4495
|
inject: { wRadios: { default: null } },
|
|
@@ -4501,10 +4549,10 @@ const vl = {
|
|
|
4501
4549
|
this.toggleFromOutside();
|
|
4502
4550
|
}
|
|
4503
4551
|
}
|
|
4504
|
-
},
|
|
4505
|
-
function
|
|
4552
|
+
}, vl = /* @__PURE__ */ v(wl, [["render", yl]]), kl = ["innerHTML"];
|
|
4553
|
+
function _l(e, t, i, s, n, l) {
|
|
4506
4554
|
const a = $("w-radio");
|
|
4507
|
-
return
|
|
4555
|
+
return o(), g(I(e.formRegister ? "w-form-element" : "div"), C({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: e.inputValue, disabled: e.isDisabled }, {
|
|
4508
4556
|
valid: e.valid,
|
|
4509
4557
|
"onUpdate:valid": t[1] || (t[1] = (r) => e.valid = r),
|
|
4510
4558
|
onReset: t[2] || (t[2] = (r) => {
|
|
@@ -4515,7 +4563,7 @@ function Cl(e, t, i, o, n, l) {
|
|
|
4515
4563
|
class: l.classes
|
|
4516
4564
|
}), {
|
|
4517
4565
|
default: m(() => [
|
|
4518
|
-
(
|
|
4566
|
+
(o(!0), u(k, null, L(l.radioItems, (r, d) => (o(), g(a, C({
|
|
4519
4567
|
key: d,
|
|
4520
4568
|
"model-value": r.value === i.modelValue,
|
|
4521
4569
|
"onUpdate:modelValue": (h) => l.onInput(r),
|
|
@@ -4527,16 +4575,16 @@ function Cl(e, t, i, o, n, l) {
|
|
|
4527
4575
|
class: { mt1: !i.inline && d }
|
|
4528
4576
|
}), {
|
|
4529
4577
|
default: m(() => [
|
|
4530
|
-
e.$slots[`item.${d + 1}`] || e.$slots.item ?
|
|
4578
|
+
e.$slots[`item.${d + 1}`] || e.$slots.item ? c(e.$slots, e.$slots[`item.${d + 1}`] ? `item.${d + 1}` : "item", {
|
|
4531
4579
|
key: 0,
|
|
4532
4580
|
item: l.getOriginalItem(r),
|
|
4533
4581
|
index: d + 1,
|
|
4534
4582
|
checked: r.value === i.modelValue,
|
|
4535
4583
|
innerHTML: r.label
|
|
4536
|
-
}) : r.label ? (
|
|
4584
|
+
}) : r.label ? (o(), u("div", {
|
|
4537
4585
|
key: 1,
|
|
4538
4586
|
innerHTML: r.label
|
|
4539
|
-
}, null, 8,
|
|
4587
|
+
}, null, 8, kl)) : p("", !0)
|
|
4540
4588
|
]),
|
|
4541
4589
|
_: 2
|
|
4542
4590
|
}, 1040, ["model-value", "onUpdate:modelValue", "name", "disabled", "readonly", "class"]))), 128))
|
|
@@ -4544,7 +4592,7 @@ function Cl(e, t, i, o, n, l) {
|
|
|
4544
4592
|
_: 3
|
|
4545
4593
|
}, 16, ["valid", "column", "wrap", "class"]);
|
|
4546
4594
|
}
|
|
4547
|
-
const
|
|
4595
|
+
const Cl = {
|
|
4548
4596
|
name: "w-radios",
|
|
4549
4597
|
mixins: [E],
|
|
4550
4598
|
props: {
|
|
@@ -4590,9 +4638,9 @@ const Sl = {
|
|
|
4590
4638
|
return this.items[e._index];
|
|
4591
4639
|
}
|
|
4592
4640
|
}
|
|
4593
|
-
},
|
|
4594
|
-
function
|
|
4595
|
-
return
|
|
4641
|
+
}, Sl = /* @__PURE__ */ v(Cl, [["render", _l]]), Bl = ["id", "name", "value"], $l = ["disabled", "onMouseenter", "onClick", "tabindex"];
|
|
4642
|
+
function Vl(e, t, i, s, n, l) {
|
|
4643
|
+
return o(), g(I(e.formRegister ? "w-form-element" : "div"), C({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: n.rating, disabled: e.isDisabled, readonly: e.isReadonly }, {
|
|
4596
4644
|
valid: e.valid,
|
|
4597
4645
|
"onUpdate:valid": t[4] || (t[4] = (a) => e.valid = a),
|
|
4598
4646
|
onReset: t[5] || (t[5] = (a) => {
|
|
@@ -4606,12 +4654,12 @@ function Il(e, t, i, o, n, l) {
|
|
|
4606
4654
|
name: e.inputName,
|
|
4607
4655
|
type: "hidden",
|
|
4608
4656
|
value: n.rating
|
|
4609
|
-
}, null, 8,
|
|
4610
|
-
(
|
|
4611
|
-
e.$slots.item ?
|
|
4657
|
+
}, null, 8, Bl),
|
|
4658
|
+
(o(!0), u(k, null, L(i.max, (a) => (o(), u(k, { key: a }, [
|
|
4659
|
+
e.$slots.item ? c(e.$slots, "item", {
|
|
4612
4660
|
key: 0,
|
|
4613
4661
|
index: a + 1
|
|
4614
|
-
}) :
|
|
4662
|
+
}) : p("", !0),
|
|
4615
4663
|
y("button", {
|
|
4616
4664
|
class: f(["w-rating__button", l.buttonClasses(a)]),
|
|
4617
4665
|
disabled: e.isDisabled || e.isReadonly,
|
|
@@ -4624,20 +4672,20 @@ function Il(e, t, i, o, n, l) {
|
|
|
4624
4672
|
type: "button",
|
|
4625
4673
|
tabindex: a === 1 ? 0 : -1
|
|
4626
4674
|
}, [
|
|
4627
|
-
a - 1 === ~~n.rating && n.rating - ~~n.rating ? (
|
|
4675
|
+
a - 1 === ~~n.rating && n.rating - ~~n.rating ? (o(), u("i", {
|
|
4628
4676
|
key: 0,
|
|
4629
4677
|
class: f(["w-icon", `${i.icon} ${i.color}`]),
|
|
4630
4678
|
role: "icon",
|
|
4631
4679
|
"aria-hidden": "true",
|
|
4632
4680
|
style: R(l.halfStarStyle)
|
|
4633
|
-
}, null, 6)) :
|
|
4634
|
-
], 42,
|
|
4681
|
+
}, null, 6)) : p("", !0)
|
|
4682
|
+
], 42, $l)
|
|
4635
4683
|
], 64))), 128))
|
|
4636
4684
|
]),
|
|
4637
4685
|
_: 3
|
|
4638
4686
|
}, 16, ["valid", "class"]);
|
|
4639
4687
|
}
|
|
4640
|
-
const
|
|
4688
|
+
const Il = {
|
|
4641
4689
|
name: "w-rating",
|
|
4642
4690
|
mixins: [E],
|
|
4643
4691
|
props: {
|
|
@@ -4727,9 +4775,9 @@ const Tl = {
|
|
|
4727
4775
|
this.rating = parseFloat(e);
|
|
4728
4776
|
}
|
|
4729
4777
|
}
|
|
4730
|
-
},
|
|
4731
|
-
function
|
|
4732
|
-
return
|
|
4778
|
+
}, Tl = /* @__PURE__ */ v(Il, [["render", Vl]]);
|
|
4779
|
+
function Ll(e, t, i, s, n, l) {
|
|
4780
|
+
return o(), u(k, null, [
|
|
4733
4781
|
y("div", C({
|
|
4734
4782
|
class: ["w-scrollable", l.scrollableClasses],
|
|
4735
4783
|
ref: "scrollable",
|
|
@@ -4737,7 +4785,7 @@ function Rl(e, t, i, o, n, l) {
|
|
|
4737
4785
|
onMouseleave: t[1] || (t[1] = (...a) => l.onMouseLeave && l.onMouseLeave(...a)),
|
|
4738
4786
|
onMousewheel: t[2] || (t[2] = (...a) => l.onMouseWheel && l.onMouseWheel(...a))
|
|
4739
4787
|
}, e.$attrs, { style: l.scrollableStyles }), [
|
|
4740
|
-
|
|
4788
|
+
c(e.$slots, "default")
|
|
4741
4789
|
], 16),
|
|
4742
4790
|
y("div", {
|
|
4743
4791
|
class: f(["w-scrollbar", l.scrollbarClasses]),
|
|
@@ -4752,7 +4800,7 @@ function Rl(e, t, i, o, n, l) {
|
|
|
4752
4800
|
], 34)
|
|
4753
4801
|
], 64);
|
|
4754
4802
|
}
|
|
4755
|
-
const
|
|
4803
|
+
const Rl = {
|
|
4756
4804
|
h: {
|
|
4757
4805
|
horizOrVert: "horizontal",
|
|
4758
4806
|
topOrLeft: "left",
|
|
@@ -4775,7 +4823,7 @@ const xl = {
|
|
|
4775
4823
|
deltaXorY: "deltaY",
|
|
4776
4824
|
scrollTopOrLeft: "scrollTop"
|
|
4777
4825
|
}
|
|
4778
|
-
},
|
|
4826
|
+
}, xl = {
|
|
4779
4827
|
name: "w-scrollable",
|
|
4780
4828
|
props: {
|
|
4781
4829
|
color: { type: String, default: "primary" },
|
|
@@ -4795,11 +4843,11 @@ const xl = {
|
|
|
4795
4843
|
}),
|
|
4796
4844
|
computed: {
|
|
4797
4845
|
isHorizontal() {
|
|
4798
|
-
var e, t, i,
|
|
4799
|
-
return this.mounted ? (console.log("\u{1F482}\u200D\u2642\uFE0F", (e = this.$refs.scrollable) == null ? void 0 : e.scrollWidth, (t = this.$refs.scrollable) == null ? void 0 : t.offsetWidth), this.width && !this.height || ((i = this.$refs.scrollable) == null ? void 0 : i.scrollWidth) > ((
|
|
4846
|
+
var e, t, i, s;
|
|
4847
|
+
return this.mounted ? (console.log("\u{1F482}\u200D\u2642\uFE0F", (e = this.$refs.scrollable) == null ? void 0 : e.scrollWidth, (t = this.$refs.scrollable) == null ? void 0 : t.offsetWidth), this.width && !this.height || ((i = this.$refs.scrollable) == null ? void 0 : i.scrollWidth) > ((s = this.$refs.scrollable) == null ? void 0 : s.offsetWidth)) : !1;
|
|
4800
4848
|
},
|
|
4801
4849
|
m() {
|
|
4802
|
-
return
|
|
4850
|
+
return Rl[this.isHorizontal ? "h" : "v"];
|
|
4803
4851
|
},
|
|
4804
4852
|
scrollableClasses() {
|
|
4805
4853
|
return {
|
|
@@ -4832,8 +4880,8 @@ const xl = {
|
|
|
4832
4880
|
onTrackMouseDown(e) {
|
|
4833
4881
|
if (this.isDisabled || this.isReadonly || "ontouchstart" in window && e.type === "mousedown")
|
|
4834
4882
|
return;
|
|
4835
|
-
const { top: t, left: i, width:
|
|
4836
|
-
this.isHorizontal ? (this.$refs.track.width =
|
|
4883
|
+
const { top: t, left: i, width: s, height: n } = this.$refs.track.getBoundingClientRect();
|
|
4884
|
+
this.isHorizontal ? (this.$refs.track.width = s, this.$refs.track.left = i) : (this.$refs.track.height = n, this.$refs.track.top = t), this.dragging = !0, this.computeScroll(e.type === "touchstart" ? e.touches[0][this.m.clientXorY] : e[this.m.clientXorY]), this.scroll(), document.addEventListener(e.type === "touchstart" ? "touchmove" : "mousemove", this.onDrag), document.addEventListener(e.type === "touchstart" ? "touchend" : "mouseup", this.onMouseUp, { once: !0 });
|
|
4837
4885
|
},
|
|
4838
4886
|
onDrag(e) {
|
|
4839
4887
|
this.computeScroll(e.type === "touchmove" ? e.touches[0][this.m.clientXorY] : e[this.m.clientXorY]), this.scroll();
|
|
@@ -4851,7 +4899,7 @@ const xl = {
|
|
|
4851
4899
|
!this.scrollable.hovered || this.scrollValuePercent <= 0 && e[this.m.deltaXorY] < 0 || this.scrollValuePercent >= 100 - this.thumbSizePercent && e[this.m.deltaXorY] > 0 || (e.preventDefault(), this.scrollValuePercent += e[this.m.deltaXorY] * 0.05, this.scrollValuePercent = Math.max(0, Math.min(this.scrollValuePercent, 100)), this.scroll());
|
|
4852
4900
|
},
|
|
4853
4901
|
computeScroll(e) {
|
|
4854
|
-
const { top: t, left: i, width:
|
|
4902
|
+
const { top: t, left: i, width: s, height: n } = this.$refs.scrollable.getBoundingClientRect(), l = this.isHorizontal ? i : t, a = this.isHorizontal ? s : n;
|
|
4855
4903
|
this.scrollValuePercent = Math.max(0, Math.min((e - l) / a * 100, 100));
|
|
4856
4904
|
},
|
|
4857
4905
|
scroll() {
|
|
@@ -4867,13 +4915,13 @@ const xl = {
|
|
|
4867
4915
|
const { top: e, left: t } = this.$refs.scrollable.getBoundingClientRect();
|
|
4868
4916
|
this.scrollable.top = e, this.scrollable.left = t, this.$el.parentNode.style.position = "relative", this.$el.parentNode.style[this.m.maxWidthOrHeight] = `${this[this.m.widthOrHeight]}px`;
|
|
4869
4917
|
}
|
|
4870
|
-
},
|
|
4918
|
+
}, Ol = /* @__PURE__ */ v(xl, [["render", Ll]]), Pl = ["aria-expanded", "aria-owns", "aria-activedescendant"], Ml = {
|
|
4871
4919
|
key: 1,
|
|
4872
4920
|
class: "w-select__selection-slot"
|
|
4873
|
-
},
|
|
4874
|
-
function
|
|
4921
|
+
}, zl = ["innerHTML"], El = ["value", "name"];
|
|
4922
|
+
function Wl(e, t, i, s, n, l) {
|
|
4875
4923
|
const a = $("w-icon"), r = $("w-list"), d = $("w-menu");
|
|
4876
|
-
return
|
|
4924
|
+
return o(), g(I(e.formRegister ? "w-form-element" : "div"), C({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: l.selectionString, disabled: e.isDisabled, readonly: e.isReadonly, isFocused: e.isFocused }, {
|
|
4877
4925
|
valid: e.valid,
|
|
4878
4926
|
"onUpdate:valid": t[12] || (t[12] = (h) => e.valid = h),
|
|
4879
4927
|
onReset: l.onReset,
|
|
@@ -4881,17 +4929,17 @@ function Al(e, t, i, o, n, l) {
|
|
|
4881
4929
|
class: l.classes
|
|
4882
4930
|
}), {
|
|
4883
4931
|
default: m(() => [
|
|
4884
|
-
i.labelPosition === "left" ? (
|
|
4885
|
-
e.$slots.default || i.label ? (
|
|
4932
|
+
i.labelPosition === "left" ? (o(), u(k, { key: 0 }, [
|
|
4933
|
+
e.$slots.default || i.label ? (o(), u("label", {
|
|
4886
4934
|
key: 0,
|
|
4887
4935
|
class: f(["w-select__label w-select__label--left w-form-el-shakable", e.labelClasses]),
|
|
4888
4936
|
onClick: t[0] || (t[0] = (h) => e.$refs["selection-input"].click())
|
|
4889
4937
|
}, [
|
|
4890
|
-
|
|
4938
|
+
c(e.$slots, "default", {}, () => [
|
|
4891
4939
|
S(_(i.label), 1)
|
|
4892
4940
|
])
|
|
4893
|
-
], 2)) :
|
|
4894
|
-
], 64)) :
|
|
4941
|
+
], 2)) : p("", !0)
|
|
4942
|
+
], 64)) : p("", !0),
|
|
4895
4943
|
V(d, C({
|
|
4896
4944
|
modelValue: e.showMenu,
|
|
4897
4945
|
"onUpdate:modelValue": t[10] || (t[10] = (h) => e.showMenu = h),
|
|
@@ -4913,7 +4961,7 @@ function Al(e, t, i, o, n, l) {
|
|
|
4913
4961
|
"aria-owns": `w-select-menu--${e._.uid}`,
|
|
4914
4962
|
"aria-activedescendant": `w-select-menu--${e._.uid}_item-1`
|
|
4915
4963
|
}, [
|
|
4916
|
-
i.innerIconLeft ? (
|
|
4964
|
+
i.innerIconLeft ? (o(), g(a, {
|
|
4917
4965
|
key: 0,
|
|
4918
4966
|
class: "w-select__icon w-select__icon--inner-left",
|
|
4919
4967
|
tag: "label",
|
|
@@ -4923,36 +4971,36 @@ function Al(e, t, i, o, n, l) {
|
|
|
4923
4971
|
S(_(i.innerIconLeft), 1)
|
|
4924
4972
|
]),
|
|
4925
4973
|
_: 1
|
|
4926
|
-
})) :
|
|
4927
|
-
e.$slots.selection ? (
|
|
4928
|
-
|
|
4974
|
+
})) : p("", !0),
|
|
4975
|
+
e.$slots.selection ? (o(), u("div", Ml, [
|
|
4976
|
+
c(e.$slots, "selection", {
|
|
4929
4977
|
item: i.multiple ? e.inputValue : e.inputValue[0]
|
|
4930
4978
|
})
|
|
4931
|
-
])) :
|
|
4979
|
+
])) : p("", !0),
|
|
4932
4980
|
y("div", C({
|
|
4933
4981
|
class: "w-select__selection",
|
|
4934
4982
|
ref: "selection-input",
|
|
4935
4983
|
onFocus: t[2] || (t[2] = (h) => !e.isDisabled && !e.isReadonly && l.onFocus(h)),
|
|
4936
4984
|
onBlur: t[3] || (t[3] = (...h) => l.onBlur && l.onBlur(...h)),
|
|
4937
4985
|
onKeydown: t[4] || (t[4] = (h) => !e.isDisabled && !e.isReadonly && l.onKeydown(h))
|
|
4938
|
-
}, l.selectionAttributes, { innerHTML: l.selectionHtml }), null, 16,
|
|
4939
|
-
(
|
|
4940
|
-
key:
|
|
4986
|
+
}, l.selectionAttributes, { innerHTML: l.selectionHtml }), null, 16, zl),
|
|
4987
|
+
(o(!0), u(k, null, L(e.inputValue.length ? e.inputValue : [{}], (h, w) => (o(), u("input", {
|
|
4988
|
+
key: w,
|
|
4941
4989
|
type: "hidden",
|
|
4942
4990
|
value: h.value === void 0 ? "" : h.value.toString(),
|
|
4943
4991
|
name: e.inputName + (i.multiple ? "[]" : "")
|
|
4944
|
-
}, null, 8,
|
|
4945
|
-
i.labelPosition === "inside" && l.showLabelInside ? (
|
|
4946
|
-
e.$slots.default || i.label ? (
|
|
4992
|
+
}, null, 8, El))), 128)),
|
|
4993
|
+
i.labelPosition === "inside" && l.showLabelInside ? (o(), u(k, { key: 2 }, [
|
|
4994
|
+
e.$slots.default || i.label ? (o(), u("label", {
|
|
4947
4995
|
key: 0,
|
|
4948
4996
|
class: f(["w-select__label w-select__label--inside w-form-el-shakable", e.labelClasses])
|
|
4949
4997
|
}, [
|
|
4950
|
-
|
|
4998
|
+
c(e.$slots, "default", {}, () => [
|
|
4951
4999
|
S(_(i.label), 1)
|
|
4952
5000
|
])
|
|
4953
|
-
], 2)) :
|
|
4954
|
-
], 64)) :
|
|
4955
|
-
i.innerIconRight ? (
|
|
5001
|
+
], 2)) : p("", !0)
|
|
5002
|
+
], 64)) : p("", !0),
|
|
5003
|
+
i.innerIconRight ? (o(), g(a, {
|
|
4956
5004
|
key: 3,
|
|
4957
5005
|
class: "w-select__icon w-select__icon--inner-right",
|
|
4958
5006
|
tag: "label",
|
|
@@ -4962,8 +5010,8 @@ function Al(e, t, i, o, n, l) {
|
|
|
4962
5010
|
S(_(i.innerIconRight), 1)
|
|
4963
5011
|
]),
|
|
4964
5012
|
_: 1
|
|
4965
|
-
})) :
|
|
4966
|
-
], 10,
|
|
5013
|
+
})) : p("", !0)
|
|
5014
|
+
], 10, Pl)
|
|
4967
5015
|
]),
|
|
4968
5016
|
default: m(() => [
|
|
4969
5017
|
V(r, {
|
|
@@ -4987,21 +5035,21 @@ function Al(e, t, i, o, n, l) {
|
|
|
4987
5035
|
}, Z({ _: 2 }, [
|
|
4988
5036
|
L(i.items.length, (h) => ({
|
|
4989
5037
|
name: `item.${h}`,
|
|
4990
|
-
fn: m(({ item:
|
|
4991
|
-
e.$slots[`item.${h}`] && e.$slots[`item.${h}`](
|
|
5038
|
+
fn: m(({ item: w, selected: B, index: b }) => [
|
|
5039
|
+
e.$slots[`item.${h}`] && e.$slots[`item.${h}`](w, B, b) ? c(e.$slots, `item.${h}`, {
|
|
4992
5040
|
key: 0,
|
|
4993
|
-
item:
|
|
5041
|
+
item: w,
|
|
4994
5042
|
selected: B,
|
|
4995
5043
|
index: b
|
|
4996
5044
|
}, () => [
|
|
4997
|
-
S(_(
|
|
4998
|
-
]) :
|
|
5045
|
+
S(_(w[i.itemLabelKey]), 1)
|
|
5046
|
+
]) : c(e.$slots, "item", {
|
|
4999
5047
|
key: 1,
|
|
5000
|
-
item:
|
|
5048
|
+
item: w,
|
|
5001
5049
|
selected: B,
|
|
5002
5050
|
index: b
|
|
5003
5051
|
}, () => [
|
|
5004
|
-
S(_(
|
|
5052
|
+
S(_(w[i.itemLabelKey]), 1)
|
|
5005
5053
|
])
|
|
5006
5054
|
])
|
|
5007
5055
|
}))
|
|
@@ -5009,22 +5057,22 @@ function Al(e, t, i, o, n, l) {
|
|
|
5009
5057
|
]),
|
|
5010
5058
|
_: 3
|
|
5011
5059
|
}, 16, ["modelValue", "onClose", "menu-class", "append-to"]),
|
|
5012
|
-
i.labelPosition === "right" ? (
|
|
5013
|
-
e.$slots.default || i.label ? (
|
|
5060
|
+
i.labelPosition === "right" ? (o(), u(k, { key: 1 }, [
|
|
5061
|
+
e.$slots.default || i.label ? (o(), u("label", {
|
|
5014
5062
|
key: 0,
|
|
5015
5063
|
class: f(["w-select__label w-select__label--right w-form-el-shakable", e.labelClasses]),
|
|
5016
5064
|
onClick: t[11] || (t[11] = (h) => e.$refs["selection-input"].click())
|
|
5017
5065
|
}, [
|
|
5018
|
-
|
|
5066
|
+
c(e.$slots, "default", {}, () => [
|
|
5019
5067
|
S(_(i.label), 1)
|
|
5020
5068
|
])
|
|
5021
|
-
], 2)) :
|
|
5022
|
-
], 64)) :
|
|
5069
|
+
], 2)) : p("", !0)
|
|
5070
|
+
], 64)) : p("", !0)
|
|
5023
5071
|
]),
|
|
5024
5072
|
_: 3
|
|
5025
5073
|
}, 16, ["valid", "onReset", "wrap", "class"]);
|
|
5026
5074
|
}
|
|
5027
|
-
const
|
|
5075
|
+
const Al = {
|
|
5028
5076
|
name: "w-select",
|
|
5029
5077
|
mixins: [E],
|
|
5030
5078
|
props: {
|
|
@@ -5156,7 +5204,7 @@ const Nl = {
|
|
|
5156
5204
|
const n = e.keyCode === 38 ? -1 : 1;
|
|
5157
5205
|
t = (t + i.length + n) % i.length;
|
|
5158
5206
|
}
|
|
5159
|
-
let
|
|
5207
|
+
let s = !1;
|
|
5160
5208
|
if (i[t].disabled) {
|
|
5161
5209
|
const n = e.keyCode === 38 ? -1 : 1;
|
|
5162
5210
|
let l = (t + n + i.length) % i.length;
|
|
@@ -5164,9 +5212,9 @@ const Nl = {
|
|
|
5164
5212
|
let r = 0;
|
|
5165
5213
|
for (; r < a && i[l].disabled; )
|
|
5166
5214
|
l = (l + i.length + n) % i.length, r++;
|
|
5167
|
-
r >= a && (
|
|
5215
|
+
r >= a && (s = !0), t = l;
|
|
5168
5216
|
}
|
|
5169
|
-
|
|
5217
|
+
s || this.onInput(i[t]);
|
|
5170
5218
|
}
|
|
5171
5219
|
},
|
|
5172
5220
|
onInput(e) {
|
|
@@ -5190,8 +5238,8 @@ const Nl = {
|
|
|
5190
5238
|
const t = this.selectItems.map((i) => i.value);
|
|
5191
5239
|
return e.map((i) => {
|
|
5192
5240
|
var n, l;
|
|
5193
|
-
let
|
|
5194
|
-
return i && typeof i == "object" && (
|
|
5241
|
+
let s = i;
|
|
5242
|
+
return i && typeof i == "object" && (s = (l = (n = i[this.itemValueKey]) != null ? n : i[this.itemLabelKey]) != null ? l : i), this.selectItems[t.indexOf(s)];
|
|
5195
5243
|
}).filter((i) => i !== void 0);
|
|
5196
5244
|
},
|
|
5197
5245
|
openMenu() {
|
|
@@ -5217,12 +5265,12 @@ const Nl = {
|
|
|
5217
5265
|
this.inputValue = this.checkSelection(this.modelValue);
|
|
5218
5266
|
}
|
|
5219
5267
|
}
|
|
5220
|
-
}, Kl = /* @__PURE__ */
|
|
5268
|
+
}, Kl = /* @__PURE__ */ v(Al, [["render", Wl]]), Nl = ["for"], Hl = ["for", "innerHTML"], Dl = { class: "w-slider__track-wrap" }, Fl = ["aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-readonly"], jl = ["id", "name", "model-value", "disabled", "readonly", "aria-readonly", "tabindex"], Ul = ["for"], ql = { key: 0 }, Xl = {
|
|
5221
5269
|
key: 0,
|
|
5222
5270
|
class: "w-slider__step-labels"
|
|
5223
|
-
},
|
|
5224
|
-
function
|
|
5225
|
-
return
|
|
5271
|
+
}, Yl = ["onClick"], Gl = ["for"], Jl = ["for", "innerHTML"];
|
|
5272
|
+
function Ql(e, t, i, s, n, l) {
|
|
5273
|
+
return o(), g(I(e.formRegister ? "w-form-element" : "div"), C({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: e.rangeValueScaled, disabled: e.isDisabled, readonly: e.isReadonly }, {
|
|
5226
5274
|
valid: e.valid,
|
|
5227
5275
|
"onUpdate:valid": t[8] || (t[8] = (a) => e.valid = a),
|
|
5228
5276
|
onReset: t[9] || (t[9] = (a) => {
|
|
@@ -5232,19 +5280,19 @@ function Zl(e, t, i, o, n, l) {
|
|
|
5232
5280
|
class: l.wrapperClasses
|
|
5233
5281
|
}), {
|
|
5234
5282
|
default: m(() => [
|
|
5235
|
-
e.$slots["label-left"] ? (
|
|
5283
|
+
e.$slots["label-left"] ? (o(), u("label", {
|
|
5236
5284
|
key: 0,
|
|
5237
5285
|
class: f(["w-slider__label w-slider__label--left w-form-el-shakable", e.labelClasses]),
|
|
5238
5286
|
for: `button--${e._.uid}`
|
|
5239
5287
|
}, [
|
|
5240
|
-
|
|
5241
|
-
], 10,
|
|
5288
|
+
c(e.$slots, "label-left")
|
|
5289
|
+
], 10, Nl)) : i.labelLeft ? (o(), u("label", {
|
|
5242
5290
|
key: 1,
|
|
5243
5291
|
class: f(["w-slider__label w-slider__label--left w-form-el-shakable", e.labelClasses]),
|
|
5244
5292
|
for: `button--${e._.uid}`,
|
|
5245
5293
|
innerHTML: i.labelLeft
|
|
5246
|
-
}, null, 10,
|
|
5247
|
-
y("div",
|
|
5294
|
+
}, null, 10, Hl)) : p("", !0),
|
|
5295
|
+
y("div", Dl, [
|
|
5248
5296
|
y("div", {
|
|
5249
5297
|
class: f(["w-slider__track", l.trackClasses]),
|
|
5250
5298
|
ref: "track",
|
|
@@ -5283,61 +5331,61 @@ function Zl(e, t, i, o, n, l) {
|
|
|
5283
5331
|
onFocus: t[2] || (t[2] = (a) => e.$emit("focus", a)),
|
|
5284
5332
|
onClick: t[3] || (t[3] = M(() => {
|
|
5285
5333
|
}, ["prevent"]))
|
|
5286
|
-
}, null, 42,
|
|
5287
|
-
i.thumbLabel ? (
|
|
5334
|
+
}, null, 42, jl),
|
|
5335
|
+
i.thumbLabel ? (o(), u("label", {
|
|
5288
5336
|
key: 0,
|
|
5289
5337
|
class: f(["w-slider__thumb-label", l.thumbClasses]),
|
|
5290
5338
|
for: `button--${e._.uid}`
|
|
5291
5339
|
}, [
|
|
5292
|
-
i.thumbLabel === "droplet" ? (
|
|
5293
|
-
|
|
5340
|
+
i.thumbLabel === "droplet" ? (o(), u("div", ql, [
|
|
5341
|
+
c(e.$slots, "label", { value: e.rangeValueScaled }, () => [
|
|
5294
5342
|
S(_(~~e.rangeValueScaled), 1)
|
|
5295
5343
|
])
|
|
5296
|
-
])) :
|
|
5344
|
+
])) : c(e.$slots, "label", {
|
|
5297
5345
|
key: 1,
|
|
5298
5346
|
value: e.rangeValueScaled
|
|
5299
5347
|
}, () => [
|
|
5300
5348
|
S(_(~~e.rangeValueScaled), 1)
|
|
5301
5349
|
])
|
|
5302
|
-
], 10,
|
|
5350
|
+
], 10, Ul)) : p("", !0)
|
|
5303
5351
|
], 4)
|
|
5304
|
-
], 42,
|
|
5305
|
-
i.stepLabels && i.step ? (
|
|
5352
|
+
], 42, Fl),
|
|
5353
|
+
i.stepLabels && i.step ? (o(), u("div", Xl, [
|
|
5306
5354
|
y("div", {
|
|
5307
5355
|
class: "w-slider__step-label",
|
|
5308
5356
|
onClick: t[6] || (t[6] = (a) => l.onStepLabelClick(0))
|
|
5309
5357
|
}, _(this.minVal), 1),
|
|
5310
|
-
(
|
|
5358
|
+
(o(!0), u(k, null, L(~~l.numberOfSteps, (a) => (o(), u("div", {
|
|
5311
5359
|
class: "w-slider__step-label",
|
|
5312
5360
|
key: a,
|
|
5313
5361
|
onClick: (r) => l.onStepLabelClick(a * (100 / l.numberOfSteps)),
|
|
5314
5362
|
style: R(`left: ${a * (100 / l.numberOfSteps)}%`)
|
|
5315
|
-
}, _(l.percentToScaled(a * (100 / l.numberOfSteps))), 13,
|
|
5316
|
-
~~l.numberOfSteps !== l.numberOfSteps ? (
|
|
5363
|
+
}, _(l.percentToScaled(a * (100 / l.numberOfSteps))), 13, Yl))), 128)),
|
|
5364
|
+
~~l.numberOfSteps !== l.numberOfSteps ? (o(), u("div", {
|
|
5317
5365
|
key: 0,
|
|
5318
5366
|
class: "w-slider__step-label",
|
|
5319
5367
|
onClick: t[7] || (t[7] = (a) => l.onStepLabelClick(100)),
|
|
5320
5368
|
style: { left: "100%" }
|
|
5321
|
-
}, _(this.maxVal), 1)) :
|
|
5322
|
-
])) :
|
|
5369
|
+
}, _(this.maxVal), 1)) : p("", !0)
|
|
5370
|
+
])) : p("", !0)
|
|
5323
5371
|
]),
|
|
5324
|
-
e.$slots["label-right"] ? (
|
|
5372
|
+
e.$slots["label-right"] ? (o(), u("label", {
|
|
5325
5373
|
key: 2,
|
|
5326
5374
|
class: f(["w-slider__label w-slider__label--right w-form-el-shakable", e.labelClasses]),
|
|
5327
5375
|
for: `button--${e._.uid}`
|
|
5328
5376
|
}, [
|
|
5329
|
-
|
|
5330
|
-
], 10,
|
|
5377
|
+
c(e.$slots, "label-right")
|
|
5378
|
+
], 10, Gl)) : i.labelRight ? (o(), u("label", {
|
|
5331
5379
|
key: 3,
|
|
5332
5380
|
class: f(["w-slider__label w-slider__label--right w-form-el-shakable", e.labelClasses]),
|
|
5333
5381
|
for: `button--${e._.uid}`,
|
|
5334
5382
|
innerHTML: i.labelRight
|
|
5335
|
-
}, null, 10,
|
|
5383
|
+
}, null, 10, Jl)) : p("", !0)
|
|
5336
5384
|
]),
|
|
5337
5385
|
_: 3
|
|
5338
5386
|
}, 16, ["valid", "wrap", "class"]);
|
|
5339
5387
|
}
|
|
5340
|
-
const
|
|
5388
|
+
const Zl = {
|
|
5341
5389
|
name: "w-slider",
|
|
5342
5390
|
mixins: [E],
|
|
5343
5391
|
props: {
|
|
@@ -5471,17 +5519,17 @@ const es = {
|
|
|
5471
5519
|
this.rangeValueScaled !== e && (this.rangeValueScaled = e, this.rangeValuePercent = this.scaledToPercent(e));
|
|
5472
5520
|
}
|
|
5473
5521
|
}
|
|
5474
|
-
},
|
|
5475
|
-
function
|
|
5476
|
-
return i.modelValue || i.modelValue === void 0 ? (
|
|
5522
|
+
}, es = /* @__PURE__ */ v(Zl, [["render", Ql]]), ts = { key: 0 };
|
|
5523
|
+
function is(e, t, i, s, n, l) {
|
|
5524
|
+
return i.modelValue || i.modelValue === void 0 ? (o(), u("div", {
|
|
5477
5525
|
key: 0,
|
|
5478
5526
|
class: f(["w-spinner", l.classes]),
|
|
5479
5527
|
style: R(l.styles)
|
|
5480
5528
|
}, [
|
|
5481
|
-
l.isThreeDots ? (
|
|
5482
|
-
], 6)) :
|
|
5529
|
+
l.isThreeDots ? (o(), u("span", ts)) : p("", !0)
|
|
5530
|
+
], 6)) : p("", !0);
|
|
5483
5531
|
}
|
|
5484
|
-
const
|
|
5532
|
+
const ls = {
|
|
5485
5533
|
name: "w-spinner",
|
|
5486
5534
|
props: {
|
|
5487
5535
|
modelValue: {},
|
|
@@ -5519,13 +5567,13 @@ const ss = {
|
|
|
5519
5567
|
};
|
|
5520
5568
|
}
|
|
5521
5569
|
}
|
|
5522
|
-
},
|
|
5523
|
-
function
|
|
5524
|
-
return
|
|
5570
|
+
}, ss = /* @__PURE__ */ v(ls, [["render", is]]);
|
|
5571
|
+
function os(e, t, i, s, n, l) {
|
|
5572
|
+
return o(), u("div", {
|
|
5525
5573
|
class: f(["w-steps", l.classes])
|
|
5526
5574
|
}, null, 2);
|
|
5527
5575
|
}
|
|
5528
|
-
const
|
|
5576
|
+
const as = {
|
|
5529
5577
|
name: "w-steps",
|
|
5530
5578
|
props: {
|
|
5531
5579
|
dark: { type: Boolean },
|
|
@@ -5541,16 +5589,16 @@ const ns = {
|
|
|
5541
5589
|
};
|
|
5542
5590
|
}
|
|
5543
5591
|
}
|
|
5544
|
-
},
|
|
5592
|
+
}, ns = /* @__PURE__ */ v(as, [["render", os]]), rs = ["id", "name", "checked", "disabled", "readonly", "aria-readonly", "required", "tabindex", "aria-checked"], ds = ["for"], us = {
|
|
5545
5593
|
key: 0,
|
|
5546
5594
|
class: "w-switch__track"
|
|
5547
|
-
},
|
|
5595
|
+
}, hs = {
|
|
5548
5596
|
key: 1,
|
|
5549
5597
|
class: "w-switch__thumb"
|
|
5550
|
-
},
|
|
5551
|
-
function
|
|
5598
|
+
}, cs = ["for"];
|
|
5599
|
+
function ps(e, t, i, s, n, l) {
|
|
5552
5600
|
const a = $("w-progress");
|
|
5553
|
-
return
|
|
5601
|
+
return o(), g(I(e.formRegister ? "w-form-element" : "div"), C({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: n.isOn, disabled: e.isDisabled, readonly: e.isReadonly }, {
|
|
5554
5602
|
valid: e.valid,
|
|
5555
5603
|
"onUpdate:valid": t[3] || (t[3] = (r) => e.valid = r),
|
|
5556
5604
|
onReset: t[4] || (t[4] = (r) => {
|
|
@@ -5574,51 +5622,51 @@ function fs(e, t, i, o, n, l) {
|
|
|
5574
5622
|
onFocus: t[1] || (t[1] = (r) => e.$emit("focus", r)),
|
|
5575
5623
|
"aria-checked": n.isOn || "false",
|
|
5576
5624
|
role: "switch"
|
|
5577
|
-
}, null, 40,
|
|
5578
|
-
l.hasLabel && i.labelOnLeft ? (
|
|
5579
|
-
e.$slots.default || i.label ? (
|
|
5625
|
+
}, null, 40, rs),
|
|
5626
|
+
l.hasLabel && i.labelOnLeft ? (o(), u(k, { key: 0 }, [
|
|
5627
|
+
e.$slots.default || i.label ? (o(), u("label", {
|
|
5580
5628
|
key: 0,
|
|
5581
5629
|
class: f(["w-switch__label w-switch__label--left w-form-el-shakable", e.labelClasses]),
|
|
5582
5630
|
for: `w-switch--${e._.uid}`
|
|
5583
5631
|
}, [
|
|
5584
|
-
|
|
5632
|
+
c(e.$slots, "default", {}, () => [
|
|
5585
5633
|
S(_(i.label), 1)
|
|
5586
5634
|
])
|
|
5587
|
-
], 10,
|
|
5588
|
-
], 64)) :
|
|
5635
|
+
], 10, ds)) : p("", !0)
|
|
5636
|
+
], 64)) : p("", !0),
|
|
5589
5637
|
y("div", C({
|
|
5590
5638
|
class: "w-switch__input",
|
|
5591
5639
|
onClick: t[2] || (t[2] = (r) => {
|
|
5592
5640
|
e.$refs.input.focus(), e.$refs.input.click();
|
|
5593
5641
|
})
|
|
5594
5642
|
}, z(e.$attrs, !0), { class: l.inputClasses }), [
|
|
5595
|
-
e.$slots.track ? (
|
|
5596
|
-
|
|
5597
|
-
])) :
|
|
5598
|
-
e.$slots.thumb || i.loading ? (
|
|
5599
|
-
i.loading ? (
|
|
5643
|
+
e.$slots.track ? (o(), u("div", us, [
|
|
5644
|
+
c(e.$slots, "track")
|
|
5645
|
+
])) : p("", !0),
|
|
5646
|
+
e.$slots.thumb || i.loading ? (o(), u("div", hs, [
|
|
5647
|
+
i.loading ? (o(), g(a, C({
|
|
5600
5648
|
key: 0,
|
|
5601
5649
|
circle: "",
|
|
5602
5650
|
color: "inherit"
|
|
5603
|
-
}, typeof i.loading == "number" && { "model-value": i.loading }), null, 16)) :
|
|
5604
|
-
])) :
|
|
5651
|
+
}, typeof i.loading == "number" && { "model-value": i.loading }), null, 16)) : c(e.$slots, "thumb", { key: 1 })
|
|
5652
|
+
])) : p("", !0)
|
|
5605
5653
|
], 16),
|
|
5606
|
-
l.hasLabel && !i.labelOnLeft ? (
|
|
5607
|
-
e.$slots.default || i.label ? (
|
|
5654
|
+
l.hasLabel && !i.labelOnLeft ? (o(), u(k, { key: 1 }, [
|
|
5655
|
+
e.$slots.default || i.label ? (o(), u("label", {
|
|
5608
5656
|
key: 0,
|
|
5609
5657
|
class: f(["w-switch__label w-switch__label--right w-form-el-shakable", e.labelClasses]),
|
|
5610
5658
|
for: `w-switch--${e._.uid}`
|
|
5611
5659
|
}, [
|
|
5612
|
-
|
|
5660
|
+
c(e.$slots, "default", {}, () => [
|
|
5613
5661
|
S(_(i.label), 1)
|
|
5614
5662
|
])
|
|
5615
|
-
], 10,
|
|
5616
|
-
], 64)) :
|
|
5663
|
+
], 10, cs)) : p("", !0)
|
|
5664
|
+
], 64)) : p("", !0)
|
|
5617
5665
|
]),
|
|
5618
5666
|
_: 3
|
|
5619
5667
|
}, 16, ["valid", "class"]);
|
|
5620
5668
|
}
|
|
5621
|
-
const
|
|
5669
|
+
const fs = {
|
|
5622
5670
|
name: "w-switch",
|
|
5623
5671
|
mixins: [E],
|
|
5624
5672
|
props: {
|
|
@@ -5683,32 +5731,32 @@ const ms = {
|
|
|
5683
5731
|
this.isOn = e;
|
|
5684
5732
|
}
|
|
5685
5733
|
}
|
|
5686
|
-
},
|
|
5687
|
-
function
|
|
5688
|
-
return
|
|
5689
|
-
|
|
5734
|
+
}, ms = /* @__PURE__ */ v(fs, [["render", ps]]), gs = { class: "w-tabs__content" };
|
|
5735
|
+
function bs(e, t, i, s, n, l) {
|
|
5736
|
+
return o(), u("div", gs, [
|
|
5737
|
+
c(e.$slots, "default", { item: i.item })
|
|
5690
5738
|
]);
|
|
5691
5739
|
}
|
|
5692
|
-
const
|
|
5740
|
+
const ys = {
|
|
5693
5741
|
name: "tab-content",
|
|
5694
5742
|
props: { item: Object }
|
|
5695
|
-
},
|
|
5743
|
+
}, ws = /* @__PURE__ */ v(ys, [["render", bs]]), vs = ["onClick", "onFocus", "tabindex", "onKeypress", "aria-selected"], ks = ["innerHTML"], _s = {
|
|
5696
5744
|
key: 0,
|
|
5697
5745
|
class: "w-tabs__bar-extra"
|
|
5698
|
-
},
|
|
5746
|
+
}, Cs = {
|
|
5699
5747
|
key: 0,
|
|
5700
5748
|
class: "w-tabs__content-wrap"
|
|
5701
|
-
},
|
|
5702
|
-
function
|
|
5749
|
+
}, Ss = ["innerHTML"], Bs = ["innerHTML"];
|
|
5750
|
+
function $s(e, t, i, s, n, l) {
|
|
5703
5751
|
const a = $("tab-content");
|
|
5704
|
-
return
|
|
5752
|
+
return o(), u("div", {
|
|
5705
5753
|
class: f(["w-tabs", l.tabsClasses])
|
|
5706
5754
|
}, [
|
|
5707
5755
|
y("div", {
|
|
5708
5756
|
class: f(["w-tabs__bar", l.tabsBarClasses]),
|
|
5709
5757
|
ref: "tabs-bar"
|
|
5710
5758
|
}, [
|
|
5711
|
-
(
|
|
5759
|
+
(o(!0), u(k, null, L(e.tabs, (r, d) => (o(), u("div", {
|
|
5712
5760
|
class: f(["w-tabs__bar-item", l.barItemClasses(r)]),
|
|
5713
5761
|
key: d,
|
|
5714
5762
|
onClick: (h) => !r._disabled && r._uid !== e.activeTabUid && l.openTab(r._uid),
|
|
@@ -5718,12 +5766,12 @@ function Vs(e, t, i, o, n, l) {
|
|
|
5718
5766
|
"aria-selected": r._uid === e.activeTabUid ? "true" : "false",
|
|
5719
5767
|
role: "tab"
|
|
5720
5768
|
}, [
|
|
5721
|
-
e.$slots[`item-title.${r.id || d + 1}`] ?
|
|
5769
|
+
e.$slots[`item-title.${r.id || d + 1}`] ? c(e.$slots, `item-title.${r.id || d + 1}`, {
|
|
5722
5770
|
key: 0,
|
|
5723
5771
|
item: l.getOriginalItem(r),
|
|
5724
5772
|
index: d + 1,
|
|
5725
5773
|
active: r._uid === e.activeTabUid
|
|
5726
|
-
}) :
|
|
5774
|
+
}) : c(e.$slots, "item-title", {
|
|
5727
5775
|
key: 1,
|
|
5728
5776
|
item: l.getOriginalItem(r),
|
|
5729
5777
|
index: d + 1,
|
|
@@ -5731,45 +5779,45 @@ function Vs(e, t, i, o, n, l) {
|
|
|
5731
5779
|
}, () => [
|
|
5732
5780
|
y("div", {
|
|
5733
5781
|
innerHTML: r[i.itemTitleKey]
|
|
5734
|
-
}, null, 8,
|
|
5782
|
+
}, null, 8, ks)
|
|
5735
5783
|
])
|
|
5736
|
-
], 42,
|
|
5737
|
-
e.$slots["tabs-bar-extra"] ? (
|
|
5738
|
-
|
|
5739
|
-
])) :
|
|
5740
|
-
!i.noSlider && !i.card ? (
|
|
5784
|
+
], 42, vs))), 128)),
|
|
5785
|
+
e.$slots["tabs-bar-extra"] ? (o(), u("div", _s, [
|
|
5786
|
+
c(e.$slots, "tabs-bar-extra")
|
|
5787
|
+
])) : p("", !0),
|
|
5788
|
+
!i.noSlider && !i.card ? (o(), u("div", {
|
|
5741
5789
|
key: 1,
|
|
5742
5790
|
class: f(["w-tabs__slider", i.sliderColor]),
|
|
5743
5791
|
style: R(l.sliderStyles)
|
|
5744
|
-
}, null, 6)) :
|
|
5792
|
+
}, null, 6)) : p("", !0)
|
|
5745
5793
|
], 2),
|
|
5746
|
-
e.tabs.length ? (
|
|
5747
|
-
i.keepInDom ? (
|
|
5794
|
+
e.tabs.length ? (o(), u("div", Cs, [
|
|
5795
|
+
i.keepInDom ? (o(), g(oe, {
|
|
5748
5796
|
key: 0,
|
|
5749
5797
|
name: l.transitionName
|
|
5750
5798
|
}, {
|
|
5751
5799
|
default: m(() => [
|
|
5752
|
-
(
|
|
5800
|
+
(o(!0), u(k, null, L(e.tabs, (r, d) => K((o(), g(a, {
|
|
5753
5801
|
key: r._uid,
|
|
5754
5802
|
item: r,
|
|
5755
5803
|
class: f(i.contentClass)
|
|
5756
5804
|
}, {
|
|
5757
5805
|
default: m(() => [
|
|
5758
|
-
e.$slots[`item-content.${r._index + 1}`] ?
|
|
5806
|
+
e.$slots[`item-content.${r._index + 1}`] ? c(e.$slots, `item-content.${r._index + 1}`, {
|
|
5759
5807
|
key: 0,
|
|
5760
5808
|
item: l.getOriginalItem(r),
|
|
5761
5809
|
index: r._index + 1,
|
|
5762
5810
|
active: r._index === l.activeTab._index
|
|
5763
|
-
}) :
|
|
5811
|
+
}) : c(e.$slots, "item-content", {
|
|
5764
5812
|
key: 1,
|
|
5765
5813
|
item: l.getOriginalItem(r),
|
|
5766
5814
|
index: r._index + 1,
|
|
5767
5815
|
active: r._index === l.activeTab._index
|
|
5768
5816
|
}, () => [
|
|
5769
|
-
r[i.itemContentKey] ? (
|
|
5817
|
+
r[i.itemContentKey] ? (o(), u("div", {
|
|
5770
5818
|
key: 0,
|
|
5771
5819
|
innerHTML: r[i.itemContentKey]
|
|
5772
|
-
}, null, 8,
|
|
5820
|
+
}, null, 8, Ss)) : p("", !0)
|
|
5773
5821
|
])
|
|
5774
5822
|
]),
|
|
5775
5823
|
_: 2
|
|
@@ -5778,39 +5826,39 @@ function Vs(e, t, i, o, n, l) {
|
|
|
5778
5826
|
])), 128))
|
|
5779
5827
|
]),
|
|
5780
5828
|
_: 3
|
|
5781
|
-
}, 8, ["name"])) : (
|
|
5829
|
+
}, 8, ["name"])) : (o(), g(O, {
|
|
5782
5830
|
key: 1,
|
|
5783
5831
|
name: l.transitionName,
|
|
5784
5832
|
mode: l.transitionMode
|
|
5785
5833
|
}, {
|
|
5786
5834
|
default: m(() => [
|
|
5787
|
-
(
|
|
5835
|
+
(o(), g(Ve, {
|
|
5788
5836
|
exclude: i.keepAlive ? "" : "tab-content"
|
|
5789
5837
|
}, [
|
|
5790
|
-
(
|
|
5838
|
+
(o(), g(a, {
|
|
5791
5839
|
key: e.activeTabUid,
|
|
5792
5840
|
item: l.activeTab,
|
|
5793
5841
|
class: f(i.contentClass)
|
|
5794
5842
|
}, {
|
|
5795
5843
|
default: m(({ item: r }) => [
|
|
5796
|
-
r ? (
|
|
5797
|
-
e.$slots[`item-content.${r._index + 1}`] ?
|
|
5844
|
+
r ? (o(), u(k, { key: 0 }, [
|
|
5845
|
+
e.$slots[`item-content.${r._index + 1}`] ? c(e.$slots, `item-content.${r._index + 1}`, {
|
|
5798
5846
|
key: 0,
|
|
5799
5847
|
item: l.getOriginalItem(r),
|
|
5800
5848
|
index: r._index + 1,
|
|
5801
5849
|
active: r._uid === e.activeTabUid
|
|
5802
|
-
}) :
|
|
5850
|
+
}) : c(e.$slots, "item-content", {
|
|
5803
5851
|
key: 1,
|
|
5804
5852
|
item: l.getOriginalItem(r),
|
|
5805
5853
|
index: r._index + 1,
|
|
5806
5854
|
active: r._uid === e.activeTabUid
|
|
5807
5855
|
}, () => [
|
|
5808
|
-
r[i.itemContentKey] ? (
|
|
5856
|
+
r[i.itemContentKey] ? (o(), u("div", {
|
|
5809
5857
|
key: 0,
|
|
5810
5858
|
innerHTML: r[i.itemContentKey]
|
|
5811
|
-
}, null, 8,
|
|
5859
|
+
}, null, 8, Bs)) : p("", !0)
|
|
5812
5860
|
])
|
|
5813
|
-
], 64)) :
|
|
5861
|
+
], 64)) : p("", !0)
|
|
5814
5862
|
]),
|
|
5815
5863
|
_: 3
|
|
5816
5864
|
}, 8, ["item", "class"]))
|
|
@@ -5818,11 +5866,11 @@ function Vs(e, t, i, o, n, l) {
|
|
|
5818
5866
|
]),
|
|
5819
5867
|
_: 3
|
|
5820
5868
|
}, 8, ["name", "mode"]))
|
|
5821
|
-
])) :
|
|
5869
|
+
])) : p("", !0)
|
|
5822
5870
|
], 2);
|
|
5823
5871
|
}
|
|
5824
5872
|
let fe = 0;
|
|
5825
|
-
const
|
|
5873
|
+
const Vs = {
|
|
5826
5874
|
name: "w-tabs",
|
|
5827
5875
|
props: {
|
|
5828
5876
|
modelValue: { type: [Number, String] },
|
|
@@ -5848,7 +5896,7 @@ const Is = {
|
|
|
5848
5896
|
keepAlive: { type: Boolean, default: !0 },
|
|
5849
5897
|
keepInDom: { type: Boolean, default: !1 }
|
|
5850
5898
|
},
|
|
5851
|
-
components: { TabContent:
|
|
5899
|
+
components: { TabContent: ws },
|
|
5852
5900
|
emits: ["input", "update:modelValue", "focus"],
|
|
5853
5901
|
data: () => ({
|
|
5854
5902
|
tabs: [],
|
|
@@ -5904,9 +5952,9 @@ const Is = {
|
|
|
5904
5952
|
},
|
|
5905
5953
|
methods: {
|
|
5906
5954
|
addTab(e) {
|
|
5907
|
-
var t, i,
|
|
5955
|
+
var t, i, s;
|
|
5908
5956
|
(i = (t = e[this.itemIdKey]) != null ? t : e._uid) != null && i || (e._uid = +`${this._.uid}${++fe}`), this.tabs.push({
|
|
5909
|
-
_uid: (
|
|
5957
|
+
_uid: (s = e[this.itemIdKey]) != null ? s : e._uid,
|
|
5910
5958
|
_index: this.tabs.length,
|
|
5911
5959
|
...e,
|
|
5912
5960
|
_disabled: !!e.disabled
|
|
@@ -5915,8 +5963,8 @@ const Is = {
|
|
|
5915
5963
|
refreshTabs() {
|
|
5916
5964
|
let e = this.items;
|
|
5917
5965
|
typeof e == "number" && (e = Array(e).fill().map((t, i) => this.tabs[i] || {})), this.tabs = e.map((t, i) => {
|
|
5918
|
-
var
|
|
5919
|
-
return (n = (
|
|
5966
|
+
var s, n, l;
|
|
5967
|
+
return (n = (s = t[this.itemIdKey]) != null ? s : t._uid) != null && n || (t._uid = +`${this._.uid}${++fe}`), {
|
|
5920
5968
|
...t,
|
|
5921
5969
|
_uid: (l = t[this.itemIdKey]) != null ? l : t._uid,
|
|
5922
5970
|
_index: i,
|
|
@@ -5925,11 +5973,11 @@ const Is = {
|
|
|
5925
5973
|
});
|
|
5926
5974
|
},
|
|
5927
5975
|
reopenTheActiveTab() {
|
|
5928
|
-
var t, i,
|
|
5976
|
+
var t, i, s;
|
|
5929
5977
|
if (this.tabs.length === 1)
|
|
5930
5978
|
return this.openTab(this.tabs[0]._uid);
|
|
5931
5979
|
let e = (t = this.tabsByUid[this.activeTabUid]) == null ? void 0 : t._uid;
|
|
5932
|
-
e || (e = (i = this.tabs[this.activeTabIndex]) == null ? void 0 : i._uid), e || (e = (
|
|
5980
|
+
e || (e = (i = this.tabs[this.activeTabIndex]) == null ? void 0 : i._uid), e || (e = (s = this.tabs[Math.max(this.activeTabIndex - 1, this.tabs.length - 1)]) == null ? void 0 : s._uid), e && this.openTab(e);
|
|
5933
5981
|
},
|
|
5934
5982
|
onResize() {
|
|
5935
5983
|
this.updateSlider(!1);
|
|
@@ -5955,16 +6003,16 @@ const Is = {
|
|
|
5955
6003
|
this.activeTabEl = t && t.querySelector(".w-tabs__bar-item--active");
|
|
5956
6004
|
}
|
|
5957
6005
|
if (!this.fillBar && this.activeTabEl) {
|
|
5958
|
-
const { left: t, width: i } = this.activeTabEl.getBoundingClientRect(),
|
|
5959
|
-
this.slider.left = `${t - n - parseInt(l) +
|
|
6006
|
+
const { left: t, width: i } = this.activeTabEl.getBoundingClientRect(), s = this.activeTabEl.parentNode, { left: n } = s.getBoundingClientRect(), { borderLeftWidth: l } = getComputedStyle(s);
|
|
6007
|
+
this.slider.left = `${t - n - parseInt(l) + s.scrollLeft}px`, this.slider.width = `${i}px`;
|
|
5960
6008
|
} else
|
|
5961
6009
|
this.slider.left = `${this.activeTab._index * 100 / this.tabs.length}%`, this.slider.width = `${100 / this.tabs.length}%`;
|
|
5962
6010
|
},
|
|
5963
6011
|
updateActiveTab(e) {
|
|
5964
6012
|
var t, i;
|
|
5965
6013
|
typeof e == "string" ? e = ~~e : (isNaN(e) || e < 0) && (e = 0), (t = this.tabs[e]) != null && t._uid && (this.openTab((i = this.tabs[e]) == null ? void 0 : i._uid), this.$nextTick(() => {
|
|
5966
|
-
const
|
|
5967
|
-
this.activeTabEl =
|
|
6014
|
+
const s = this.$refs["tabs-bar"];
|
|
6015
|
+
this.activeTabEl = s && s.querySelector(`.w-tabs__bar-item:nth-child(${e + 1})`), this.activeTabEl && this.activeTabEl.scrollIntoView({ behavior: "smooth", block: "nearest", inline: "nearest" });
|
|
5968
6016
|
}));
|
|
5969
6017
|
},
|
|
5970
6018
|
getOriginalItem(e) {
|
|
@@ -5997,34 +6045,34 @@ const Is = {
|
|
|
5997
6045
|
e ? window.removeEventListener("resize", this.onResize) : (this.updateSlider(), window.addEventListener("resize", this.onResize));
|
|
5998
6046
|
}
|
|
5999
6047
|
}
|
|
6000
|
-
},
|
|
6048
|
+
}, Is = /* @__PURE__ */ v(Vs, [["render", $s]]), Ts = { ref: "colgroup" }, Ls = ["width"], Rs = { key: 0 }, xs = ["onClick"], Os = ["innerHTML"], Ps = {
|
|
6001
6049
|
key: 0,
|
|
6002
6050
|
class: "w-table__progress-bar"
|
|
6003
|
-
},
|
|
6051
|
+
}, Ms = ["colspan"], zs = {
|
|
6004
6052
|
key: 0,
|
|
6005
6053
|
class: "w-table__progress-bar"
|
|
6006
|
-
},
|
|
6054
|
+
}, Es = ["colspan"], Ws = { class: "w-table__loading-text" }, As = {
|
|
6007
6055
|
key: 1,
|
|
6008
6056
|
class: "no-data"
|
|
6009
|
-
}, Ks = ["colspan"],
|
|
6057
|
+
}, Ks = ["colspan"], Ns = ["onClick"], Hs = ["data-label"], Ds = ["data-label"], Fs = ["innerHTML"], js = {
|
|
6010
6058
|
key: 2,
|
|
6011
6059
|
class: "w-table__row w-table__row--expansion"
|
|
6012
|
-
},
|
|
6060
|
+
}, Us = ["colspan"], qs = { key: 0 }, Xs = {
|
|
6013
6061
|
key: 3,
|
|
6014
6062
|
class: "w-table__extra-row"
|
|
6015
|
-
},
|
|
6063
|
+
}, Ys = {
|
|
6016
6064
|
key: 1,
|
|
6017
6065
|
class: "w-table__footer"
|
|
6018
|
-
},
|
|
6066
|
+
}, Gs = {
|
|
6019
6067
|
key: 1,
|
|
6020
6068
|
class: "w-table__row"
|
|
6021
|
-
},
|
|
6069
|
+
}, Js = ["colspan"], Qs = {
|
|
6022
6070
|
key: 2,
|
|
6023
6071
|
class: "w-table__row w-table__pagination-wrap"
|
|
6024
|
-
},
|
|
6025
|
-
function
|
|
6026
|
-
const a = $("w-icon"), r = $("w-progress"), d = $("w-transition-fade"), h = $("w-transition-expand"),
|
|
6027
|
-
return
|
|
6072
|
+
}, Zs = ["colspan"], eo = { class: "w-table__pagination w-pagination" }, to = { class: "pages-wrap" }, io = { class: "w-pagination__results" };
|
|
6073
|
+
function lo(e, t, i, s, n, l) {
|
|
6074
|
+
const a = $("w-icon"), r = $("w-progress"), d = $("w-transition-fade"), h = $("w-transition-expand"), w = $("w-select"), B = $("w-button");
|
|
6075
|
+
return o(), u("div", {
|
|
6028
6076
|
class: f(["w-table-wrap", l.wrapClasses])
|
|
6029
6077
|
}, [
|
|
6030
6078
|
y("table", {
|
|
@@ -6033,21 +6081,21 @@ function so(e, t, i, o, n, l) {
|
|
|
6033
6081
|
onMouseover: t[6] || (t[6] = (...b) => l.onMouseOver && l.onMouseOver(...b)),
|
|
6034
6082
|
onMouseout: t[7] || (t[7] = (...b) => l.onMouseOut && l.onMouseOut(...b))
|
|
6035
6083
|
}, [
|
|
6036
|
-
y("colgroup",
|
|
6037
|
-
(
|
|
6084
|
+
y("colgroup", Ts, [
|
|
6085
|
+
(o(!0), u(k, null, L(i.headers, (b, T) => (o(), u("col", {
|
|
6038
6086
|
class: f(["w-table__col", l.colClasses[T]]),
|
|
6039
6087
|
key: T,
|
|
6040
6088
|
width: b.width || null
|
|
6041
|
-
}, null, 10,
|
|
6089
|
+
}, null, 10, Ls))), 128))
|
|
6042
6090
|
], 512),
|
|
6043
|
-
i.noHeaders ?
|
|
6091
|
+
i.noHeaders ? p("", !0) : (o(), u("thead", Rs, [
|
|
6044
6092
|
y("tr", null, [
|
|
6045
|
-
(
|
|
6093
|
+
(o(!0), u(k, null, L(i.headers, (b, T) => (o(), u("th", {
|
|
6046
6094
|
class: f(["w-table__header", l.headerClasses(b)]),
|
|
6047
6095
|
key: T,
|
|
6048
6096
|
onClick: (x) => !e.colResizing.dragging && b.sortable !== !1 && l.sortTable(b)
|
|
6049
6097
|
}, [
|
|
6050
|
-
b.sortable !== !1 && b.align === "right" ? (
|
|
6098
|
+
b.sortable !== !1 && b.align === "right" ? (o(), g(a, {
|
|
6051
6099
|
key: 0,
|
|
6052
6100
|
class: f(["w-table__header-sort", l.headerSortClasses(b)])
|
|
6053
6101
|
}, {
|
|
@@ -6055,21 +6103,21 @@ function so(e, t, i, o, n, l) {
|
|
|
6055
6103
|
S("wi-arrow-down")
|
|
6056
6104
|
]),
|
|
6057
6105
|
_: 2
|
|
6058
|
-
}, 1032, ["class"])) :
|
|
6059
|
-
b.label ? (
|
|
6060
|
-
e.$slots["header-label"] ?
|
|
6106
|
+
}, 1032, ["class"])) : p("", !0),
|
|
6107
|
+
b.label ? (o(), u(k, { key: 1 }, [
|
|
6108
|
+
e.$slots["header-label"] ? c(e.$slots, "header-label", {
|
|
6061
6109
|
key: 0,
|
|
6062
6110
|
header: b,
|
|
6063
6111
|
label: b.label,
|
|
6064
6112
|
index: T + 1
|
|
6065
6113
|
}, () => [
|
|
6066
6114
|
S(_(b.label || ""), 1)
|
|
6067
|
-
]) : (
|
|
6115
|
+
]) : (o(), u("span", {
|
|
6068
6116
|
key: 1,
|
|
6069
6117
|
innerHTML: b.label || ""
|
|
6070
|
-
}, null, 8,
|
|
6071
|
-
], 64)) :
|
|
6072
|
-
b.sortable !== !1 && b.align !== "right" ? (
|
|
6118
|
+
}, null, 8, Os))
|
|
6119
|
+
], 64)) : p("", !0),
|
|
6120
|
+
b.sortable !== !1 && b.align !== "right" ? (o(), g(a, {
|
|
6073
6121
|
key: 2,
|
|
6074
6122
|
class: f(["w-table__header-sort", l.headerSortClasses(b)])
|
|
6075
6123
|
}, {
|
|
@@ -6077,153 +6125,153 @@ function so(e, t, i, o, n, l) {
|
|
|
6077
6125
|
S("wi-arrow-down")
|
|
6078
6126
|
]),
|
|
6079
6127
|
_: 2
|
|
6080
|
-
}, 1032, ["class"])) :
|
|
6081
|
-
T < i.headers.length - 1 && i.resizableColumns ? (
|
|
6128
|
+
}, 1032, ["class"])) : p("", !0),
|
|
6129
|
+
T < i.headers.length - 1 && i.resizableColumns ? (o(), u("span", {
|
|
6082
6130
|
key: 3,
|
|
6083
6131
|
class: f(["w-table__col-resizer", { "w-table__col-resizer--hover": e.colResizing.hover === T, "w-table__col-resizer--active": e.colResizing.columnIndex === T }]),
|
|
6084
6132
|
onClick: t[0] || (t[0] = M(() => {
|
|
6085
6133
|
}, ["stop"]))
|
|
6086
|
-
}, null, 2)) :
|
|
6087
|
-
], 10,
|
|
6134
|
+
}, null, 2)) : p("", !0)
|
|
6135
|
+
], 10, xs))), 128))
|
|
6088
6136
|
]),
|
|
6089
6137
|
V(d, null, {
|
|
6090
6138
|
default: m(() => [
|
|
6091
|
-
i.loading === "header" ? (
|
|
6139
|
+
i.loading === "header" ? (o(), u("tr", Ps, [
|
|
6092
6140
|
y("td", {
|
|
6093
6141
|
colspan: i.headers.length
|
|
6094
6142
|
}, [
|
|
6095
6143
|
V(r, { tile: "" })
|
|
6096
|
-
], 8,
|
|
6097
|
-
])) :
|
|
6144
|
+
], 8, Ms)
|
|
6145
|
+
])) : p("", !0)
|
|
6098
6146
|
]),
|
|
6099
6147
|
_: 1
|
|
6100
6148
|
})
|
|
6101
6149
|
])),
|
|
6102
6150
|
y("tbody", null, [
|
|
6103
|
-
i.loading === !0 ? (
|
|
6151
|
+
i.loading === !0 ? (o(), u("tr", zs, [
|
|
6104
6152
|
y("td", {
|
|
6105
6153
|
colspan: i.headers.length
|
|
6106
6154
|
}, [
|
|
6107
6155
|
V(r, { tile: "" }),
|
|
6108
|
-
y("div",
|
|
6109
|
-
|
|
6156
|
+
y("div", Ws, [
|
|
6157
|
+
c(e.$slots, "loading", {}, () => [
|
|
6110
6158
|
S("Loading...")
|
|
6111
6159
|
])
|
|
6112
6160
|
])
|
|
6113
|
-
], 8,
|
|
6114
|
-
])) : l.tableItems.length ?
|
|
6161
|
+
], 8, Es)
|
|
6162
|
+
])) : l.tableItems.length ? p("", !0) : (o(), u("tr", As, [
|
|
6115
6163
|
y("td", {
|
|
6116
6164
|
class: "w-table__cell text-center",
|
|
6117
6165
|
colspan: i.headers.length
|
|
6118
6166
|
}, [
|
|
6119
|
-
|
|
6167
|
+
c(e.$slots, "no-data", {}, () => [
|
|
6120
6168
|
S("No data to show.")
|
|
6121
6169
|
])
|
|
6122
6170
|
], 8, Ks)
|
|
6123
6171
|
])),
|
|
6124
|
-
l.tableItems.length && i.loading !== !0 ? (
|
|
6125
|
-
e.$slots.item ?
|
|
6172
|
+
l.tableItems.length && i.loading !== !0 ? (o(!0), u(k, { key: 2 }, L(l.paginatedItems, (b, T) => (o(), u(k, { key: T }, [
|
|
6173
|
+
e.$slots.item ? c(e.$slots, "item", {
|
|
6126
6174
|
key: 0,
|
|
6127
6175
|
item: b,
|
|
6128
6176
|
index: T + 1,
|
|
6129
6177
|
select: () => l.doSelectRow(b, T),
|
|
6130
6178
|
classes: { "w-table__row": !0, "w-table__row--selected": l.selectedRowsByUid[b._uid] !== void 0, "w-table__row--expanded": l.expandedRowsByUid[b._uid] !== void 0 }
|
|
6131
|
-
}) : (
|
|
6179
|
+
}) : (o(), u("tr", {
|
|
6132
6180
|
key: 1,
|
|
6133
6181
|
class: f(["w-table__row", { "w-table__row--selected": l.selectedRowsByUid[b._uid] !== void 0, "w-table__row--expanded": l.expandedRowsByUid[b._uid] !== void 0 }]),
|
|
6134
6182
|
onClick: (x) => l.doSelectRow(b, T)
|
|
6135
6183
|
}, [
|
|
6136
|
-
(
|
|
6137
|
-
e.$slots[`item-cell.${x.key}`] || e.$slots[`item-cell.${P + 1}`] || e.$slots["item-cell"] ? (
|
|
6184
|
+
(o(!0), u(k, null, L(i.headers, (x, P) => (o(), u(k, null, [
|
|
6185
|
+
e.$slots[`item-cell.${x.key}`] || e.$slots[`item-cell.${P + 1}`] || e.$slots["item-cell"] ? (o(), u("td", {
|
|
6138
6186
|
class: f(["w-table__cell", { [`text-${x.align || "left"}`]: !0, "w-table__cell--sticky": x.sticky }]),
|
|
6139
6187
|
key: `${P}-a`,
|
|
6140
6188
|
"data-label": x.label
|
|
6141
6189
|
}, [
|
|
6142
|
-
e.$slots[`item-cell.${x.key}`] ?
|
|
6190
|
+
e.$slots[`item-cell.${x.key}`] ? c(e.$slots, `item-cell.${x.key}`, {
|
|
6143
6191
|
key: 0,
|
|
6144
6192
|
header: x,
|
|
6145
6193
|
item: b,
|
|
6146
6194
|
label: b[x.key] || "",
|
|
6147
6195
|
index: T + 1
|
|
6148
|
-
}) : e.$slots[`item-cell.${P + 1}`] ?
|
|
6196
|
+
}) : e.$slots[`item-cell.${P + 1}`] ? c(e.$slots, `item-cell.${P + 1}`, {
|
|
6149
6197
|
key: 1,
|
|
6150
6198
|
header: x,
|
|
6151
6199
|
item: b,
|
|
6152
6200
|
label: b[x.key] || "",
|
|
6153
6201
|
index: T + 1
|
|
6154
|
-
}) : e.$slots["item-cell"] ?
|
|
6202
|
+
}) : e.$slots["item-cell"] ? c(e.$slots, "item-cell", {
|
|
6155
6203
|
key: 2,
|
|
6156
6204
|
header: x,
|
|
6157
6205
|
item: b,
|
|
6158
6206
|
label: b[x.key] || "",
|
|
6159
6207
|
index: T + 1
|
|
6160
|
-
}) :
|
|
6161
|
-
P < i.headers.length - 1 && i.resizableColumns ? (
|
|
6208
|
+
}) : p("", !0),
|
|
6209
|
+
P < i.headers.length - 1 && i.resizableColumns ? (o(), u("span", {
|
|
6162
6210
|
key: 3,
|
|
6163
6211
|
class: f(["w-table__col-resizer", { "w-table__col-resizer--hover": e.colResizing.hover === P, "w-table__col-resizer--active": e.colResizing.columnIndex === P }])
|
|
6164
|
-
}, null, 2)) :
|
|
6165
|
-
], 10,
|
|
6212
|
+
}, null, 2)) : p("", !0)
|
|
6213
|
+
], 10, Hs)) : (o(), u("td", {
|
|
6166
6214
|
class: f(["w-table__cell", { [`text-${x.align || "left"}`]: !0, "w-table__cell--sticky": x.sticky }]),
|
|
6167
6215
|
key: `${P}-b`,
|
|
6168
6216
|
"data-label": x.label
|
|
6169
6217
|
}, [
|
|
6170
6218
|
y("div", {
|
|
6171
6219
|
innerHTML: b[x.key] || ""
|
|
6172
|
-
}, null, 8,
|
|
6173
|
-
P < i.headers.length - 1 && i.resizableColumns ? (
|
|
6220
|
+
}, null, 8, Fs),
|
|
6221
|
+
P < i.headers.length - 1 && i.resizableColumns ? (o(), u("span", {
|
|
6174
6222
|
key: 0,
|
|
6175
6223
|
class: f(["w-table__col-resizer", { "w-table__col-resizer--hover": e.colResizing.hover === P, "w-table__col-resizer--active": e.colResizing.columnIndex === P }])
|
|
6176
|
-
}, null, 2)) :
|
|
6177
|
-
], 10,
|
|
6224
|
+
}, null, 2)) : p("", !0)
|
|
6225
|
+
], 10, Ds))
|
|
6178
6226
|
], 64))), 256))
|
|
6179
|
-
], 10,
|
|
6180
|
-
l.expandedRowsByUid[b._uid] ? (
|
|
6227
|
+
], 10, Ns)),
|
|
6228
|
+
l.expandedRowsByUid[b._uid] ? (o(), u("tr", js, [
|
|
6181
6229
|
y("td", {
|
|
6182
6230
|
class: "w-table__cell",
|
|
6183
6231
|
colspan: i.headers.length
|
|
6184
6232
|
}, [
|
|
6185
6233
|
V(h, { y: "" }, {
|
|
6186
6234
|
default: m(() => [
|
|
6187
|
-
l.expandedRowsByUid[b._uid] ? (
|
|
6188
|
-
|
|
6235
|
+
l.expandedRowsByUid[b._uid] ? (o(), u("div", qs, [
|
|
6236
|
+
c(e.$slots, "row-expansion", {
|
|
6189
6237
|
item: b,
|
|
6190
6238
|
index: T + 1
|
|
6191
6239
|
})
|
|
6192
|
-
])) :
|
|
6193
|
-
T < i.headers.length - 1 && i.resizableColumns ? (
|
|
6240
|
+
])) : p("", !0),
|
|
6241
|
+
T < i.headers.length - 1 && i.resizableColumns ? (o(), u("span", {
|
|
6194
6242
|
key: 1,
|
|
6195
6243
|
class: f(["w-table__col-resizer", { "w-table__col-resizer--hover": e.colResizing.hover === T, "w-table__col-resizer--active": e.colResizing.columnIndex === e.j }])
|
|
6196
|
-
}, null, 2)) :
|
|
6244
|
+
}, null, 2)) : p("", !0)
|
|
6197
6245
|
]),
|
|
6198
6246
|
_: 2
|
|
6199
6247
|
}, 1024)
|
|
6200
|
-
], 8,
|
|
6201
|
-
])) :
|
|
6202
|
-
], 64))), 128)) :
|
|
6203
|
-
e.$slots["extra-row"] ? (
|
|
6204
|
-
|
|
6205
|
-
])) :
|
|
6248
|
+
], 8, Us)
|
|
6249
|
+
])) : p("", !0)
|
|
6250
|
+
], 64))), 128)) : p("", !0),
|
|
6251
|
+
e.$slots["extra-row"] ? (o(), u("div", Xs, [
|
|
6252
|
+
c(e.$slots, "extra-row")
|
|
6253
|
+
])) : p("", !0)
|
|
6206
6254
|
]),
|
|
6207
|
-
e.$slots.footer || e.$slots["footer-row"] || i.pagination ? (
|
|
6208
|
-
e.$slots["footer-row"] ?
|
|
6255
|
+
e.$slots.footer || e.$slots["footer-row"] || i.pagination ? (o(), u("tfoot", Ys, [
|
|
6256
|
+
e.$slots["footer-row"] ? c(e.$slots, "footer-row", { key: 0 }) : e.$slots.footer ? (o(), u("tr", Gs, [
|
|
6209
6257
|
y("td", {
|
|
6210
6258
|
class: "w-table__cell",
|
|
6211
6259
|
colspan: i.headers.length
|
|
6212
6260
|
}, [
|
|
6213
|
-
|
|
6214
|
-
], 8,
|
|
6215
|
-
])) :
|
|
6216
|
-
i.pagination && e.paginationConfig ? (
|
|
6261
|
+
c(e.$slots, "footer")
|
|
6262
|
+
], 8, Js)
|
|
6263
|
+
])) : p("", !0),
|
|
6264
|
+
i.pagination && e.paginationConfig ? (o(), u("tr", Qs, [
|
|
6217
6265
|
y("td", {
|
|
6218
6266
|
class: "w-table__cell",
|
|
6219
6267
|
colspan: i.headers.length
|
|
6220
6268
|
}, [
|
|
6221
|
-
y("div",
|
|
6222
|
-
|
|
6269
|
+
y("div", eo, [
|
|
6270
|
+
c(e.$slots, "pagination", {
|
|
6223
6271
|
range: `${e.paginationConfig.start}-${e.paginationConfig.end}`,
|
|
6224
6272
|
total: e.paginationConfig.total
|
|
6225
6273
|
}, () => [
|
|
6226
|
-
e.paginationConfig.itemsPerPageOptions ? (
|
|
6274
|
+
e.paginationConfig.itemsPerPageOptions ? (o(), g(w, {
|
|
6227
6275
|
key: 0,
|
|
6228
6276
|
class: "w-pagination__items-per-page",
|
|
6229
6277
|
modelValue: e.paginationConfig.itemsPerPage,
|
|
@@ -6233,8 +6281,8 @@ function so(e, t, i, o, n, l) {
|
|
|
6233
6281
|
"label-position": "left",
|
|
6234
6282
|
label: "Items per page",
|
|
6235
6283
|
"label-color": "inherit"
|
|
6236
|
-
}, null, 8, ["modelValue", "items"])) :
|
|
6237
|
-
y("div",
|
|
6284
|
+
}, null, 8, ["modelValue", "items"])) : p("", !0),
|
|
6285
|
+
y("div", to, [
|
|
6238
6286
|
V(B, {
|
|
6239
6287
|
class: "w-pagination__arrow w-pagination__arrow--prev",
|
|
6240
6288
|
onClick: t[3] || (t[3] = (b) => l.goToPage("-1")),
|
|
@@ -6243,7 +6291,7 @@ function so(e, t, i, o, n, l) {
|
|
|
6243
6291
|
text: "",
|
|
6244
6292
|
lg: ""
|
|
6245
6293
|
}, null, 8, ["disabled"]),
|
|
6246
|
-
(
|
|
6294
|
+
(o(!0), u(k, null, L(e.paginationConfig.pagesCount, (b) => (o(), g(B, {
|
|
6247
6295
|
class: f(["w-pagination__page", { "w-pagination__page--active": b === e.paginationConfig.page }]),
|
|
6248
6296
|
key: b,
|
|
6249
6297
|
onClick: (T) => b !== e.paginationConfig.page && l.goToPage(b),
|
|
@@ -6264,16 +6312,16 @@ function so(e, t, i, o, n, l) {
|
|
|
6264
6312
|
lg: ""
|
|
6265
6313
|
}, null, 8, ["disabled"])
|
|
6266
6314
|
]),
|
|
6267
|
-
y("span",
|
|
6315
|
+
y("span", io, _(e.paginationConfig.start) + "-" + _(e.paginationConfig.end || e.paginationConfig.total) + " of " + _(e.paginationConfig.total), 1)
|
|
6268
6316
|
])
|
|
6269
6317
|
])
|
|
6270
|
-
], 8,
|
|
6271
|
-
])) :
|
|
6272
|
-
])) :
|
|
6318
|
+
], 8, Zs)
|
|
6319
|
+
])) : p("", !0)
|
|
6320
|
+
])) : p("", !0)
|
|
6273
6321
|
], 34)
|
|
6274
6322
|
], 2);
|
|
6275
6323
|
}
|
|
6276
|
-
const me = 15,
|
|
6324
|
+
const me = 15, so = {
|
|
6277
6325
|
name: "w-table",
|
|
6278
6326
|
props: {
|
|
6279
6327
|
items: { type: Array, required: !0 },
|
|
@@ -6365,7 +6413,7 @@ const me = 15, oo = {
|
|
|
6365
6413
|
if (!this.activeSorting.length || this.sortFunction || this.fetch)
|
|
6366
6414
|
return this.filteredItems;
|
|
6367
6415
|
const e = this.activeSorting[0].replace(/^[+-]/, ""), t = this.activeSorting[0][0] === "-";
|
|
6368
|
-
return [...this.filteredItems].sort((i,
|
|
6416
|
+
return [...this.filteredItems].sort((i, s) => (i = i[e], s = s[e], !isNaN(i) && !isNaN(s) && (i = parseFloat(i), s = parseFloat(s)), (i > s ? 1 : -1) * (t ? -1 : 1)));
|
|
6369
6417
|
},
|
|
6370
6418
|
paginatedItems() {
|
|
6371
6419
|
return typeof this.fetch == "function" ? this.sortedItems : this.sortedItems.slice(this.paginationConfig.start - 1, this.paginationConfig.end);
|
|
@@ -6431,7 +6479,7 @@ const me = 15, oo = {
|
|
|
6431
6479
|
t && this.activeSortingKeys[e.key] === "-" ? this.activeSorting = [] : this.activeSorting[0] = (t ? "-" : "+") + e.key, this.$emit("update:sort", this.activeSorting), typeof this.sortFunction == "function" ? await this.sortFunction(this.activeSorting) : typeof this.fetch == "function" && await this.callApiFetch();
|
|
6432
6480
|
},
|
|
6433
6481
|
doSelectRow(e, t) {
|
|
6434
|
-
const i = this.expandableRows === "" ? !0 : this.expandableRows,
|
|
6482
|
+
const i = this.expandableRows === "" ? !0 : this.expandableRows, s = this.selectableRows === "" ? !0 : this.selectableRows;
|
|
6435
6483
|
if (i) {
|
|
6436
6484
|
const n = this.expandedRowsByUid[e._uid] === void 0;
|
|
6437
6485
|
n ? this.expandableRows.toString() === "1" ? this.expandedRowsInternal = [e._uid] : this.expandedRowsInternal.push(e._uid) : this.expandedRowsInternal = this.expandedRowsInternal.filter((l) => l !== e._uid), this.$emit(
|
|
@@ -6443,7 +6491,7 @@ const me = 15, oo = {
|
|
|
6443
6491
|
expandedRows: this.expandedRowsInternal.map((l) => this.filteredItems[l])
|
|
6444
6492
|
}
|
|
6445
6493
|
), this.$emit("update:expanded-rows", this.expandedRowsInternal);
|
|
6446
|
-
} else if (
|
|
6494
|
+
} else if (s) {
|
|
6447
6495
|
let n = !1;
|
|
6448
6496
|
const l = this.selectedRowsByUid[e._uid] === void 0;
|
|
6449
6497
|
l ? (this.selectableRows.toString() === "1" ? this.selectedRowsInternal = [e._uid] : this.selectedRowsInternal.push(e._uid), n = !0) : (!this.forceSelection || this.selectedRowsInternal.length > 1) && (this.selectedRowsInternal = this.selectedRowsInternal.filter((a) => a !== e._uid), n = !0), n && (this.$emit(
|
|
@@ -6468,16 +6516,16 @@ const me = 15, oo = {
|
|
|
6468
6516
|
e.classList.contains("w-table__col-resizer") && (this.colResizing.hover = !1);
|
|
6469
6517
|
},
|
|
6470
6518
|
onResizerMouseMove(e) {
|
|
6471
|
-
const { startCursorX: t, columnEl: i, nextColumnEl:
|
|
6519
|
+
const { startCursorX: t, columnEl: i, nextColumnEl: s, colWidth: n, nextColWidth: l } = this.colResizing;
|
|
6472
6520
|
this.colResizing.dragging = !0;
|
|
6473
6521
|
const a = e.pageX - t, r = n + l, d = n + a, h = l - a;
|
|
6474
|
-
i.style.width = n + a + "px",
|
|
6475
|
-
const
|
|
6476
|
-
if (
|
|
6522
|
+
i.style.width = n + a + "px", s.style.width = l - a + "px";
|
|
6523
|
+
const w = a < 0 && i.offsetWidth > d || i.offsetWidth <= me, B = a > 0 && s.offsetWidth > h;
|
|
6524
|
+
if (w) {
|
|
6477
6525
|
const b = Math.max(i.offsetWidth, me);
|
|
6478
|
-
i.style.width = b + "px",
|
|
6526
|
+
i.style.width = b + "px", s.style.width = r - b + "px";
|
|
6479
6527
|
} else
|
|
6480
|
-
B && (i.style.width = r -
|
|
6528
|
+
B && (i.style.width = r - s.offsetWidth + "px", s.style.width = s.offsetWidth + "px");
|
|
6481
6529
|
},
|
|
6482
6530
|
onResizerMouseUp() {
|
|
6483
6531
|
document.removeEventListener("mousemove", this.onResizerMouseMove), document.removeEventListener("mouseup", this.onResizerMouseUp), setTimeout(() => {
|
|
@@ -6489,8 +6537,8 @@ const me = 15, oo = {
|
|
|
6489
6537
|
}, 0);
|
|
6490
6538
|
},
|
|
6491
6539
|
initPagination() {
|
|
6492
|
-
var
|
|
6493
|
-
const e = (n = (
|
|
6540
|
+
var s, n, l;
|
|
6541
|
+
const e = (n = (s = this.pagination) == null ? void 0 : s.itemsPerPage) != null ? n : 20, t = ((l = this.pagination) == null ? void 0 : l.itemsPerPageOptions) || [20, 100, { label: "All", value: 0 }];
|
|
6494
6542
|
t.find((a) => {
|
|
6495
6543
|
var r;
|
|
6496
6544
|
return ((r = a == null ? void 0 : a.value) != null ? r : a) === +e;
|
|
@@ -6517,13 +6565,13 @@ const me = 15, oo = {
|
|
|
6517
6565
|
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 || i), typeof this.fetch == "function" && await this.callApiFetch();
|
|
6518
6566
|
},
|
|
6519
6567
|
async callApiFetch() {
|
|
6520
|
-
const { page: e, start: t, end: i, total:
|
|
6568
|
+
const { page: e, start: t, end: i, total: s, itemsPerPage: n } = this.paginationConfig;
|
|
6521
6569
|
return await this.fetch({
|
|
6522
6570
|
page: e,
|
|
6523
6571
|
start: t,
|
|
6524
|
-
end: i ||
|
|
6525
|
-
total:
|
|
6526
|
-
itemsPerPage: n ||
|
|
6572
|
+
end: i || s,
|
|
6573
|
+
total: s,
|
|
6574
|
+
itemsPerPage: n || s,
|
|
6527
6575
|
sorting: this.activeSorting
|
|
6528
6576
|
});
|
|
6529
6577
|
}
|
|
@@ -6557,9 +6605,9 @@ const me = 15, oo = {
|
|
|
6557
6605
|
this.updatePaginationConfig({ total: e });
|
|
6558
6606
|
}
|
|
6559
6607
|
}
|
|
6560
|
-
},
|
|
6561
|
-
function
|
|
6562
|
-
return
|
|
6608
|
+
}, oo = /* @__PURE__ */ v(so, [["render", lo]]), ao = ["role", "aria-pressed", "tabindex"];
|
|
6609
|
+
function no(e, t, i, s, n, l) {
|
|
6610
|
+
return o(), u("span", C({ class: "w-tag" }, z(e.$attrs, !0), {
|
|
6563
6611
|
onClick: t[1] || (t[1] = (a) => {
|
|
6564
6612
|
e.$emit("update:modelValue", !i.modelValue), e.$emit("input", !i.modelValue);
|
|
6565
6613
|
}),
|
|
@@ -6572,8 +6620,8 @@ function ro(e, t, i, o, n, l) {
|
|
|
6572
6620
|
tabindex: i.modelValue !== -1 && 0,
|
|
6573
6621
|
style: l.styles
|
|
6574
6622
|
}), [
|
|
6575
|
-
|
|
6576
|
-
i.closable && i.modelValue ? (
|
|
6623
|
+
c(e.$slots, "default"),
|
|
6624
|
+
i.closable && i.modelValue ? (o(), u("i", {
|
|
6577
6625
|
key: 0,
|
|
6578
6626
|
class: "w-icon w-tag__closable wi-cross",
|
|
6579
6627
|
onClick: t[0] || (t[0] = M((a) => {
|
|
@@ -6581,10 +6629,10 @@ function ro(e, t, i, o, n, l) {
|
|
|
6581
6629
|
}, ["stop"])),
|
|
6582
6630
|
role: "icon",
|
|
6583
6631
|
"aria-hidden": "true"
|
|
6584
|
-
})) :
|
|
6585
|
-
], 16,
|
|
6632
|
+
})) : p("", !0)
|
|
6633
|
+
], 16, ao);
|
|
6586
6634
|
}
|
|
6587
|
-
const
|
|
6635
|
+
const ro = {
|
|
6588
6636
|
name: "w-tag",
|
|
6589
6637
|
props: {
|
|
6590
6638
|
modelValue: { type: [Boolean, Number], default: -1 },
|
|
@@ -6633,10 +6681,10 @@ const uo = {
|
|
|
6633
6681
|
};
|
|
6634
6682
|
}
|
|
6635
6683
|
}
|
|
6636
|
-
},
|
|
6637
|
-
function
|
|
6684
|
+
}, uo = /* @__PURE__ */ v(ro, [["render", no]]), ho = ["for"], co = ["id", "name", "placeholder", "rows", "cols", "readonly", "aria-readonly", "disabled", "required", "tabindex"], po = ["for"];
|
|
6685
|
+
function fo(e, t, i, s, n, l) {
|
|
6638
6686
|
const a = $("w-icon");
|
|
6639
|
-
return
|
|
6687
|
+
return o(), g(I(e.formRegister ? "w-form-element" : "div"), C({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: n.inputValue, disabled: e.isDisabled, readonly: e.isReadonly, isFocused: n.isFocused }, {
|
|
6640
6688
|
valid: e.valid,
|
|
6641
6689
|
"onUpdate:valid": t[6] || (t[6] = (r) => e.valid = r),
|
|
6642
6690
|
wrap: l.hasLabel && i.labelPosition !== "inside",
|
|
@@ -6646,21 +6694,21 @@ function mo(e, t, i, o, n, l) {
|
|
|
6646
6694
|
class: l.classes
|
|
6647
6695
|
}), {
|
|
6648
6696
|
default: m(() => [
|
|
6649
|
-
i.labelPosition === "left" ? (
|
|
6650
|
-
e.$slots.default || i.label ? (
|
|
6697
|
+
i.labelPosition === "left" ? (o(), u(k, { key: 0 }, [
|
|
6698
|
+
e.$slots.default || i.label ? (o(), u("label", {
|
|
6651
6699
|
key: 0,
|
|
6652
6700
|
class: f(["w-textarea__label w-textarea__label--left w-form-el-shakable", e.labelClasses]),
|
|
6653
6701
|
for: `w-textarea--${e._.uid}`
|
|
6654
6702
|
}, [
|
|
6655
|
-
|
|
6703
|
+
c(e.$slots, "default", {}, () => [
|
|
6656
6704
|
S(_(i.label), 1)
|
|
6657
6705
|
])
|
|
6658
|
-
], 10,
|
|
6659
|
-
], 64)) :
|
|
6706
|
+
], 10, ho)) : p("", !0)
|
|
6707
|
+
], 64)) : p("", !0),
|
|
6660
6708
|
y("div", {
|
|
6661
6709
|
class: f(["w-textarea__textarea-wrap", l.inputWrapClasses])
|
|
6662
6710
|
}, [
|
|
6663
|
-
i.innerIconLeft ? (
|
|
6711
|
+
i.innerIconLeft ? (o(), g(a, {
|
|
6664
6712
|
key: 0,
|
|
6665
6713
|
class: "w-textarea__icon w-textarea__icon--inner-left",
|
|
6666
6714
|
tag: "label",
|
|
@@ -6671,8 +6719,8 @@ function mo(e, t, i, o, n, l) {
|
|
|
6671
6719
|
S(_(i.innerIconLeft), 1)
|
|
6672
6720
|
]),
|
|
6673
6721
|
_: 1
|
|
6674
|
-
}, 8, ["for"])) :
|
|
6675
|
-
|
|
6722
|
+
}, 8, ["for"])) : p("", !0),
|
|
6723
|
+
K(y("textarea", C({
|
|
6676
6724
|
class: "w-textarea__textarea",
|
|
6677
6725
|
ref: "textarea",
|
|
6678
6726
|
"onUpdate:modelValue": t[1] || (t[1] = (r) => n.inputValue = r)
|
|
@@ -6690,20 +6738,20 @@ function mo(e, t, i, o, n, l) {
|
|
|
6690
6738
|
disabled: e.isDisabled || null,
|
|
6691
6739
|
required: e.required || null,
|
|
6692
6740
|
tabindex: e.tabindex || null
|
|
6693
|
-
}), null, 16,
|
|
6741
|
+
}), null, 16, co), [
|
|
6694
6742
|
[be, n.inputValue]
|
|
6695
6743
|
]),
|
|
6696
|
-
i.labelPosition === "inside" && l.showLabelInside ? (
|
|
6697
|
-
e.$slots.default || i.label ? (
|
|
6744
|
+
i.labelPosition === "inside" && l.showLabelInside ? (o(), u(k, { key: 1 }, [
|
|
6745
|
+
e.$slots.default || i.label ? (o(), u("label", {
|
|
6698
6746
|
key: 0,
|
|
6699
6747
|
class: f(["w-textarea__label w-textarea__label--inside w-form-el-shakable", e.labelClasses])
|
|
6700
6748
|
}, [
|
|
6701
|
-
|
|
6749
|
+
c(e.$slots, "default", {}, () => [
|
|
6702
6750
|
S(_(i.label), 1)
|
|
6703
6751
|
])
|
|
6704
|
-
], 2)) :
|
|
6705
|
-
], 64)) :
|
|
6706
|
-
i.innerIconRight ? (
|
|
6752
|
+
], 2)) : p("", !0)
|
|
6753
|
+
], 64)) : p("", !0),
|
|
6754
|
+
i.innerIconRight ? (o(), g(a, {
|
|
6707
6755
|
key: 2,
|
|
6708
6756
|
class: "w-textarea__icon w-textarea__icon--inner-right",
|
|
6709
6757
|
tag: "label",
|
|
@@ -6714,24 +6762,24 @@ function mo(e, t, i, o, n, l) {
|
|
|
6714
6762
|
S(_(i.innerIconRight), 1)
|
|
6715
6763
|
]),
|
|
6716
6764
|
_: 1
|
|
6717
|
-
}, 8, ["for"])) :
|
|
6765
|
+
}, 8, ["for"])) : p("", !0)
|
|
6718
6766
|
], 2),
|
|
6719
|
-
i.labelPosition === "right" ? (
|
|
6720
|
-
e.$slots.default || i.label ? (
|
|
6767
|
+
i.labelPosition === "right" ? (o(), u(k, { key: 1 }, [
|
|
6768
|
+
e.$slots.default || i.label ? (o(), u("label", {
|
|
6721
6769
|
key: 0,
|
|
6722
6770
|
class: f(["w-textarea__label w-textarea__label--right w-form-el-shakable", e.labelClasses]),
|
|
6723
6771
|
for: `w-textarea--${e._.uid}`
|
|
6724
6772
|
}, [
|
|
6725
|
-
|
|
6773
|
+
c(e.$slots, "default", {}, () => [
|
|
6726
6774
|
S(_(i.label), 1)
|
|
6727
6775
|
])
|
|
6728
|
-
], 10,
|
|
6729
|
-
], 64)) :
|
|
6776
|
+
], 10, po)) : p("", !0)
|
|
6777
|
+
], 64)) : p("", !0)
|
|
6730
6778
|
]),
|
|
6731
6779
|
_: 3
|
|
6732
6780
|
}, 16, ["valid", "wrap", "class"]);
|
|
6733
6781
|
}
|
|
6734
|
-
const
|
|
6782
|
+
const mo = {
|
|
6735
6783
|
name: "w-textarea",
|
|
6736
6784
|
mixins: [E],
|
|
6737
6785
|
props: {
|
|
@@ -6767,8 +6815,8 @@ const go = {
|
|
|
6767
6815
|
},
|
|
6768
6816
|
computed: {
|
|
6769
6817
|
listeners() {
|
|
6770
|
-
const { input: e, focus: t, blur: i, ...
|
|
6771
|
-
return
|
|
6818
|
+
const { input: e, focus: t, blur: i, ...s } = this.$attrs;
|
|
6819
|
+
return s;
|
|
6772
6820
|
},
|
|
6773
6821
|
hasValue() {
|
|
6774
6822
|
return this.inputValue || this.inputValue === 0;
|
|
@@ -6847,16 +6895,16 @@ const go = {
|
|
|
6847
6895
|
e ? this.getLineHeight() : this.height = null;
|
|
6848
6896
|
}
|
|
6849
6897
|
}
|
|
6850
|
-
},
|
|
6851
|
-
function
|
|
6852
|
-
return
|
|
6898
|
+
}, go = /* @__PURE__ */ v(mo, [["render", fo]]), bo = ["innerHTML"], yo = ["innerHTML"];
|
|
6899
|
+
function wo(e, t, i, s, n, l) {
|
|
6900
|
+
return o(), u("ul", {
|
|
6853
6901
|
class: f(["w-timeline", l.classes])
|
|
6854
6902
|
}, [
|
|
6855
|
-
(
|
|
6903
|
+
(o(!0), u(k, null, L(i.items, (a, r) => (o(), u("li", {
|
|
6856
6904
|
class: "w-timeline-item",
|
|
6857
6905
|
key: r
|
|
6858
6906
|
}, [
|
|
6859
|
-
(
|
|
6907
|
+
(o(), g(I(a[i.itemIconKey] || i.icon ? "w-icon" : "div"), {
|
|
6860
6908
|
class: f(["w-timeline-item__bullet", { [a[i.itemColorKey] || i.color]: a[i.itemColorKey] || i.color }])
|
|
6861
6909
|
}, {
|
|
6862
6910
|
default: m(() => [
|
|
@@ -6864,11 +6912,11 @@ function vo(e, t, i, o, n, l) {
|
|
|
6864
6912
|
]),
|
|
6865
6913
|
_: 2
|
|
6866
6914
|
}, 1032, ["class"])),
|
|
6867
|
-
e.$slots[`item.${r + 1}`] ?
|
|
6915
|
+
e.$slots[`item.${r + 1}`] ? c(e.$slots, `item.${r + 1}`, {
|
|
6868
6916
|
key: 1,
|
|
6869
6917
|
item: a,
|
|
6870
6918
|
index: r + 1
|
|
6871
|
-
}) :
|
|
6919
|
+
}) : c(e.$slots, "item", {
|
|
6872
6920
|
key: 0,
|
|
6873
6921
|
item: a,
|
|
6874
6922
|
index: r + 1
|
|
@@ -6876,16 +6924,16 @@ function vo(e, t, i, o, n, l) {
|
|
|
6876
6924
|
y("div", {
|
|
6877
6925
|
class: f(["w-timeline-item__title", { [a[i.itemColorKey] || i.color]: a[i.itemColorKey] || i.color }]),
|
|
6878
6926
|
innerHTML: a[i.itemTitleKey]
|
|
6879
|
-
}, null, 10,
|
|
6927
|
+
}, null, 10, bo),
|
|
6880
6928
|
y("div", {
|
|
6881
6929
|
class: "w-timeline-item__content",
|
|
6882
6930
|
innerHTML: a[i.itemContentKey]
|
|
6883
|
-
}, null, 8,
|
|
6931
|
+
}, null, 8, yo)
|
|
6884
6932
|
])
|
|
6885
6933
|
]))), 128))
|
|
6886
6934
|
], 2);
|
|
6887
6935
|
}
|
|
6888
|
-
const
|
|
6936
|
+
const vo = {
|
|
6889
6937
|
name: "w-timeline",
|
|
6890
6938
|
props: {
|
|
6891
6939
|
items: { type: [Array, Number], required: !0 },
|
|
@@ -6907,16 +6955,16 @@ const ko = {
|
|
|
6907
6955
|
};
|
|
6908
6956
|
}
|
|
6909
6957
|
}
|
|
6910
|
-
},
|
|
6911
|
-
function
|
|
6912
|
-
return
|
|
6958
|
+
}, ko = /* @__PURE__ */ v(vo, [["render", wo]]);
|
|
6959
|
+
function _o(e, t, i, s, n, l) {
|
|
6960
|
+
return o(), u("div", {
|
|
6913
6961
|
class: f(["w-toolbar", l.classes]),
|
|
6914
6962
|
style: R(l.styles)
|
|
6915
6963
|
}, [
|
|
6916
|
-
|
|
6964
|
+
c(e.$slots, "default")
|
|
6917
6965
|
], 6);
|
|
6918
6966
|
}
|
|
6919
|
-
const
|
|
6967
|
+
const Co = {
|
|
6920
6968
|
name: "w-toolbar",
|
|
6921
6969
|
props: {
|
|
6922
6970
|
color: { type: String },
|
|
@@ -6965,29 +7013,29 @@ const So = {
|
|
|
6965
7013
|
};
|
|
6966
7014
|
}
|
|
6967
7015
|
}
|
|
6968
|
-
},
|
|
6969
|
-
function
|
|
6970
|
-
return
|
|
6971
|
-
|
|
7016
|
+
}, So = /* @__PURE__ */ v(Co, [["render", _o]]);
|
|
7017
|
+
function Bo(e, t, i, s, n, l) {
|
|
7018
|
+
return o(), u(k, null, [
|
|
7019
|
+
c(e.$slots, "activator", { on: l.activatorEventHandlers }),
|
|
6972
7020
|
V(O, {
|
|
6973
7021
|
name: l.transitionName,
|
|
6974
7022
|
appear: ""
|
|
6975
7023
|
}, {
|
|
6976
7024
|
default: m(() => [
|
|
6977
|
-
e.detachableVisible ? (
|
|
7025
|
+
e.detachableVisible ? (o(), u("div", {
|
|
6978
7026
|
class: f(["w-tooltip", l.classes]),
|
|
6979
7027
|
ref: "detachable",
|
|
6980
7028
|
key: e._.uid,
|
|
6981
7029
|
style: R(l.styles)
|
|
6982
7030
|
}, [
|
|
6983
|
-
|
|
6984
|
-
], 6)) :
|
|
7031
|
+
c(e.$slots, "default")
|
|
7032
|
+
], 6)) : p("", !0)
|
|
6985
7033
|
]),
|
|
6986
7034
|
_: 3
|
|
6987
7035
|
}, 8, ["name"])
|
|
6988
7036
|
], 64);
|
|
6989
7037
|
}
|
|
6990
|
-
const
|
|
7038
|
+
const $o = {
|
|
6991
7039
|
name: "w-tooltip",
|
|
6992
7040
|
mixins: [we],
|
|
6993
7041
|
props: {
|
|
@@ -7086,24 +7134,24 @@ const Vo = {
|
|
|
7086
7134
|
!this.detachableVisible || this.showOnHover && !e && (await new Promise((t) => setTimeout(t, 10)), this.showOnHover && this.hoveringActivator) || (this.$emit("update:modelValue", this.detachableVisible = !1), this.$emit("input", !1), this.$emit("close"), document.removeEventListener("mousedown", this.onOutsideMousedown), window.removeEventListener("resize", this.onResize));
|
|
7087
7135
|
}
|
|
7088
7136
|
}
|
|
7089
|
-
},
|
|
7090
|
-
function
|
|
7091
|
-
return
|
|
7137
|
+
}, Vo = /* @__PURE__ */ v($o, [["render", Bo]]);
|
|
7138
|
+
function Io(e, t, i, s, n, l) {
|
|
7139
|
+
return o(), g(O, C({ name: "bounce" }, e.$props), {
|
|
7092
7140
|
default: m(() => [
|
|
7093
|
-
|
|
7141
|
+
c(e.$slots, "default")
|
|
7094
7142
|
]),
|
|
7095
7143
|
_: 3
|
|
7096
7144
|
}, 16);
|
|
7097
7145
|
}
|
|
7098
|
-
const
|
|
7146
|
+
const To = {
|
|
7099
7147
|
name: "w-transition-bounce",
|
|
7100
7148
|
props: {
|
|
7101
7149
|
appear: { type: Boolean },
|
|
7102
7150
|
duration: { type: [Number, String] }
|
|
7103
7151
|
}
|
|
7104
|
-
},
|
|
7105
|
-
function
|
|
7106
|
-
return
|
|
7152
|
+
}, Lo = /* @__PURE__ */ v(To, [["render", Io]]);
|
|
7153
|
+
function Ro(e, t, i, s, n, l) {
|
|
7154
|
+
return o(), g(O, {
|
|
7107
7155
|
name: "expand",
|
|
7108
7156
|
mode: "out-in",
|
|
7109
7157
|
css: !1,
|
|
@@ -7118,12 +7166,12 @@ function xo(e, t, i, o, n, l) {
|
|
|
7118
7166
|
onAfterLeave: l.afterLeave
|
|
7119
7167
|
}, {
|
|
7120
7168
|
default: m(() => [
|
|
7121
|
-
|
|
7169
|
+
c(e.$slots, "default")
|
|
7122
7170
|
]),
|
|
7123
7171
|
_: 3
|
|
7124
7172
|
}, 8, ["onBeforeAppear", "onAppear", "onAfterAppear", "onBeforeEnter", "onEnter", "onAfterEnter", "onBeforeLeave", "onLeave", "onAfterLeave"]);
|
|
7125
7173
|
}
|
|
7126
|
-
const
|
|
7174
|
+
const xo = {
|
|
7127
7175
|
name: "w-transition-expand",
|
|
7128
7176
|
props: {
|
|
7129
7177
|
x: { type: Boolean },
|
|
@@ -7213,61 +7261,61 @@ const Oo = {
|
|
|
7213
7261
|
this.animX && (this.el.width = e.offsetWidth, this.el.marginLeft = t.getPropertyValue("marginLeft"), this.el.marginRight = t.getPropertyValue("marginRight"), this.el.paddingLeft = t.getPropertyValue("paddingLeft"), this.el.paddingRight = t.getPropertyValue("paddingRight"), this.el.borderLeftWidth = t.getPropertyValue("borderLeftWidth"), this.el.borderRightWidth = t.getPropertyValue("borderRightWidth")), this.animY && (this.el.height = e.offsetHeight, this.el.marginTop = t.getPropertyValue("marginTop"), this.el.marginBottom = t.getPropertyValue("marginBottom"), this.el.paddingTop = t.getPropertyValue("paddingTop"), this.el.paddingBottom = t.getPropertyValue("paddingBottom"), this.el.borderTopWidth = t.getPropertyValue("borderTopWidth"), this.el.borderBottomWidth = t.getPropertyValue("borderBottomWidth")), this.el.savedState = !0;
|
|
7214
7262
|
}
|
|
7215
7263
|
}
|
|
7216
|
-
},
|
|
7217
|
-
function
|
|
7218
|
-
return
|
|
7264
|
+
}, Oo = /* @__PURE__ */ v(xo, [["render", Ro]]);
|
|
7265
|
+
function Po(e, t, i, s, n, l) {
|
|
7266
|
+
return o(), g(O, C({ name: "fade" }, e.$props), {
|
|
7219
7267
|
default: m(() => [
|
|
7220
|
-
|
|
7268
|
+
c(e.$slots, "default")
|
|
7221
7269
|
]),
|
|
7222
7270
|
_: 3
|
|
7223
7271
|
}, 16);
|
|
7224
7272
|
}
|
|
7225
|
-
const
|
|
7273
|
+
const Mo = {
|
|
7226
7274
|
name: "w-transition-fade",
|
|
7227
7275
|
props: {
|
|
7228
7276
|
appear: { type: Boolean },
|
|
7229
7277
|
duration: { type: [Number, String] }
|
|
7230
7278
|
}
|
|
7231
|
-
},
|
|
7232
|
-
function
|
|
7233
|
-
return
|
|
7279
|
+
}, zo = /* @__PURE__ */ v(Mo, [["render", Po]]);
|
|
7280
|
+
function Eo(e, t, i, s, n, l) {
|
|
7281
|
+
return o(), g(O, C({ name: "scale" }, e.$props), {
|
|
7234
7282
|
default: m(() => [
|
|
7235
|
-
|
|
7283
|
+
c(e.$slots, "default")
|
|
7236
7284
|
]),
|
|
7237
7285
|
_: 3
|
|
7238
7286
|
}, 16);
|
|
7239
7287
|
}
|
|
7240
|
-
const
|
|
7288
|
+
const Wo = {
|
|
7241
7289
|
name: "w-transition-scale",
|
|
7242
7290
|
props: {
|
|
7243
7291
|
appear: { type: Boolean },
|
|
7244
7292
|
duration: { type: [Number, String] }
|
|
7245
7293
|
}
|
|
7246
|
-
},
|
|
7247
|
-
function Ko(e, t, i,
|
|
7248
|
-
return
|
|
7294
|
+
}, Ao = /* @__PURE__ */ v(Wo, [["render", Eo]]);
|
|
7295
|
+
function Ko(e, t, i, s, n, l) {
|
|
7296
|
+
return o(), g(O, C({ name: "scale-fade" }, e.$props), {
|
|
7249
7297
|
default: m(() => [
|
|
7250
|
-
|
|
7298
|
+
c(e.$slots, "default")
|
|
7251
7299
|
]),
|
|
7252
7300
|
_: 3
|
|
7253
7301
|
}, 16);
|
|
7254
7302
|
}
|
|
7255
|
-
const
|
|
7303
|
+
const No = {
|
|
7256
7304
|
name: "w-transition-scale-fade",
|
|
7257
7305
|
props: {
|
|
7258
7306
|
appear: { type: Boolean },
|
|
7259
7307
|
duration: { type: [Number, String] }
|
|
7260
7308
|
}
|
|
7261
|
-
},
|
|
7262
|
-
function
|
|
7263
|
-
return
|
|
7309
|
+
}, Ho = /* @__PURE__ */ v(No, [["render", Ko]]);
|
|
7310
|
+
function Do(e, t, i, s, n, l) {
|
|
7311
|
+
return o(), g(O, C({ name: l.transitionName }, e.$props), {
|
|
7264
7312
|
default: m(() => [
|
|
7265
|
-
|
|
7313
|
+
c(e.$slots, "default")
|
|
7266
7314
|
]),
|
|
7267
7315
|
_: 3
|
|
7268
7316
|
}, 16, ["name"]);
|
|
7269
7317
|
}
|
|
7270
|
-
const
|
|
7318
|
+
const Fo = {
|
|
7271
7319
|
name: "w-transition-slide",
|
|
7272
7320
|
props: {
|
|
7273
7321
|
appear: { type: Boolean },
|
|
@@ -7285,16 +7333,16 @@ const jo = {
|
|
|
7285
7333
|
return `slide-${this.direction}`;
|
|
7286
7334
|
}
|
|
7287
7335
|
}
|
|
7288
|
-
},
|
|
7289
|
-
function
|
|
7290
|
-
return
|
|
7336
|
+
}, jo = /* @__PURE__ */ v(Fo, [["render", Do]]);
|
|
7337
|
+
function Uo(e, t, i, s, n, l) {
|
|
7338
|
+
return o(), g(O, C({ name: l.transitionName }, e.$props), {
|
|
7291
7339
|
default: m(() => [
|
|
7292
|
-
|
|
7340
|
+
c(e.$slots, "default")
|
|
7293
7341
|
]),
|
|
7294
7342
|
_: 3
|
|
7295
7343
|
}, 16, ["name"]);
|
|
7296
7344
|
}
|
|
7297
|
-
const
|
|
7345
|
+
const qo = {
|
|
7298
7346
|
name: "w-transition-slide-fade",
|
|
7299
7347
|
props: {
|
|
7300
7348
|
appear: { type: Boolean },
|
|
@@ -7312,41 +7360,41 @@ const Xo = {
|
|
|
7312
7360
|
return `slide-fade-${this.direction}`;
|
|
7313
7361
|
}
|
|
7314
7362
|
}
|
|
7315
|
-
},
|
|
7316
|
-
function
|
|
7317
|
-
return
|
|
7363
|
+
}, Xo = /* @__PURE__ */ v(qo, [["render", Uo]]);
|
|
7364
|
+
function Yo(e, t, i, s, n, l) {
|
|
7365
|
+
return o(), g(O, C({ name: "twist" }, e.$props), {
|
|
7318
7366
|
default: m(() => [
|
|
7319
|
-
|
|
7367
|
+
c(e.$slots, "default")
|
|
7320
7368
|
]),
|
|
7321
7369
|
_: 3
|
|
7322
7370
|
}, 16);
|
|
7323
7371
|
}
|
|
7324
|
-
const
|
|
7372
|
+
const Go = {
|
|
7325
7373
|
name: "w-transition-twist",
|
|
7326
7374
|
props: {
|
|
7327
7375
|
appear: { type: Boolean },
|
|
7328
7376
|
duration: { type: [Number, String] }
|
|
7329
7377
|
}
|
|
7330
|
-
},
|
|
7378
|
+
}, Jo = /* @__PURE__ */ v(Go, [["render", Yo]]), Qo = ["innerHTML"], Zo = {
|
|
7331
7379
|
key: 1,
|
|
7332
7380
|
class: "ml1"
|
|
7333
7381
|
};
|
|
7334
|
-
function
|
|
7382
|
+
function ea(e, t, i, s, n, l) {
|
|
7335
7383
|
const a = $("w-button"), r = $("w-icon"), d = $("w-tree", !0);
|
|
7336
|
-
return
|
|
7384
|
+
return o(), u("ul", {
|
|
7337
7385
|
class: f(["w-tree", l.classes])
|
|
7338
7386
|
}, [
|
|
7339
|
-
(
|
|
7387
|
+
(o(!0), u(k, null, L(e.currentDepthItems, (h, w) => (o(), u("li", {
|
|
7340
7388
|
class: f(["w-tree__item", l.itemClasses(h)]),
|
|
7341
|
-
key:
|
|
7389
|
+
key: w
|
|
7342
7390
|
}, [
|
|
7343
|
-
(
|
|
7391
|
+
(o(), g(I(l.getTreeItemComponent(h)), C({ class: "w-tree__item-label" }, h.route && { [!e.$router || l.hasExternalLink(h) ? "href" : "to"]: h.route }, {
|
|
7344
7392
|
onClick: (B) => !i.disabled && !h.disabled && l.onLabelClick(h, B),
|
|
7345
7393
|
onKeydown: (B) => !i.disabled && !h.disabled && l.onLabelKeydown(h, B),
|
|
7346
7394
|
tabindex: l.getTreeItemTabindex(h)
|
|
7347
7395
|
}), {
|
|
7348
7396
|
default: m(() => [
|
|
7349
|
-
(h.children || h.branch) && (i.expandOpenIcon && h.open || i.expandIcon) && !(i.unexpandableEmpty && !h.children) ? (
|
|
7397
|
+
(h.children || h.branch) && (i.expandOpenIcon && h.open || i.expandIcon) && !(i.unexpandableEmpty && !h.children) ? (o(), g(a, {
|
|
7350
7398
|
key: 0,
|
|
7351
7399
|
class: "w-tree__item-expand",
|
|
7352
7400
|
onClick: M((B) => !i.disabled && !h.disabled && l.onLabelClick(h, B), ["stop"]),
|
|
@@ -7357,8 +7405,8 @@ function ta(e, t, i, o, n, l) {
|
|
|
7357
7405
|
disabled: i.disabled || h.disabled,
|
|
7358
7406
|
text: "",
|
|
7359
7407
|
sm: ""
|
|
7360
|
-
}, null, 8, ["onClick", "icon", "icon-props", "disabled"])) :
|
|
7361
|
-
|
|
7408
|
+
}, null, 8, ["onClick", "icon", "icon-props", "disabled"])) : p("", !0),
|
|
7409
|
+
c(e.$slots, "item", {
|
|
7362
7410
|
item: h.originalItem,
|
|
7363
7411
|
depth: i.depth,
|
|
7364
7412
|
path: h.path,
|
|
@@ -7366,7 +7414,7 @@ function ta(e, t, i, o, n, l) {
|
|
|
7366
7414
|
}, () => {
|
|
7367
7415
|
var B;
|
|
7368
7416
|
return [
|
|
7369
|
-
l.itemIcon(h) ? (
|
|
7417
|
+
l.itemIcon(h) ? (o(), g(r, {
|
|
7370
7418
|
key: 0,
|
|
7371
7419
|
class: "w-tree__item-icon",
|
|
7372
7420
|
color: h.originalItem[i.itemIconColorKey] || i.iconColor
|
|
@@ -7375,23 +7423,23 @@ function ta(e, t, i, o, n, l) {
|
|
|
7375
7423
|
S(_(l.itemIcon(h)), 1)
|
|
7376
7424
|
]),
|
|
7377
7425
|
_: 2
|
|
7378
|
-
}, 1032, ["color"])) :
|
|
7426
|
+
}, 1032, ["color"])) : p("", !0),
|
|
7379
7427
|
y("span", {
|
|
7380
7428
|
innerHTML: h.label
|
|
7381
|
-
}, null, 8,
|
|
7382
|
-
i.counts && (h.children || h.branch) ? (
|
|
7429
|
+
}, null, 8, Qo),
|
|
7430
|
+
i.counts && (h.children || h.branch) ? (o(), u("span", Zo, "(" + _(((B = h.originalItem.children) == null ? void 0 : B.length) || 0) + ")", 1)) : p("", !0)
|
|
7383
7431
|
];
|
|
7384
7432
|
})
|
|
7385
7433
|
]),
|
|
7386
7434
|
_: 2
|
|
7387
7435
|
}, 1040, ["onClick", "onKeydown", "tabindex"])),
|
|
7388
|
-
(
|
|
7436
|
+
(o(), g(I(i.noTransition ? "div" : "w-transition-expand"), {
|
|
7389
7437
|
y: !i.noTransition || null,
|
|
7390
7438
|
onAfterEnter: (B) => e.$emit("open", l.emitPayload(h)),
|
|
7391
7439
|
onAfterLeave: (B) => e.$emit("close", l.emitPayload(h))
|
|
7392
7440
|
}, {
|
|
7393
7441
|
default: m(() => [
|
|
7394
|
-
h.children && h.open ? (
|
|
7442
|
+
h.children && h.open ? (o(), g(d, C({ key: 0 }, e.$props, {
|
|
7395
7443
|
depth: i.depth + 1,
|
|
7396
7444
|
data: h.originalItem.children,
|
|
7397
7445
|
parent: h,
|
|
@@ -7404,7 +7452,7 @@ function ta(e, t, i, o, n, l) {
|
|
|
7404
7452
|
"onUpdate:modelValue": t[6] || (t[6] = (B) => e.$emit("update:model-value", B))
|
|
7405
7453
|
}), {
|
|
7406
7454
|
item: m(({ item: B, depth: b, path: T, open: x }) => [
|
|
7407
|
-
|
|
7455
|
+
c(e.$slots, "item", {
|
|
7408
7456
|
item: B,
|
|
7409
7457
|
depth: b,
|
|
7410
7458
|
path: T,
|
|
@@ -7412,14 +7460,14 @@ function ta(e, t, i, o, n, l) {
|
|
|
7412
7460
|
})
|
|
7413
7461
|
]),
|
|
7414
7462
|
_: 2
|
|
7415
|
-
}, 1040, ["depth", "data", "parent"])) :
|
|
7463
|
+
}, 1040, ["depth", "data", "parent"])) : p("", !0)
|
|
7416
7464
|
]),
|
|
7417
7465
|
_: 2
|
|
7418
7466
|
}, 1064, ["y", "onAfterEnter", "onAfterLeave"]))
|
|
7419
7467
|
], 2))), 128))
|
|
7420
7468
|
], 2);
|
|
7421
7469
|
}
|
|
7422
|
-
const
|
|
7470
|
+
const ta = {
|
|
7423
7471
|
name: "w-tree",
|
|
7424
7472
|
props: {
|
|
7425
7473
|
modelValue: { type: [Object, Array] },
|
|
@@ -7468,19 +7516,19 @@ const ia = {
|
|
|
7468
7516
|
updateCurrentDepthTree(e, t = []) {
|
|
7469
7517
|
if (this.currentDepthItems = [], !Array.isArray(e) && typeof e != "object")
|
|
7470
7518
|
return U(`[w-tree] the tree items must be of type array or object, ${typeof e} received.`);
|
|
7471
|
-
Array.isArray(e) || (e = [e]), e.forEach((i,
|
|
7519
|
+
Array.isArray(e) || (e = [e]), e.forEach((i, s) => {
|
|
7472
7520
|
var l, a;
|
|
7473
7521
|
const n = {
|
|
7474
7522
|
originalItem: i,
|
|
7475
|
-
_uid: this.depth.toString() + (
|
|
7523
|
+
_uid: this.depth.toString() + (s + 1),
|
|
7476
7524
|
label: i[this.itemLabelKey],
|
|
7477
7525
|
children: !!i.children,
|
|
7478
7526
|
branch: i.branch,
|
|
7479
7527
|
route: i[this.itemRouteKey],
|
|
7480
7528
|
disabled: i[this.itemDisabledKey],
|
|
7481
|
-
selected: ((l = t[
|
|
7529
|
+
selected: ((l = t[s]) == null ? void 0 : l.selected) || !1,
|
|
7482
7530
|
depth: this.depth,
|
|
7483
|
-
open: !!(((a = t[
|
|
7531
|
+
open: !!(((a = t[s]) == null ? void 0 : a.open) || this.expandAll || i[this.itemOpenKey]),
|
|
7484
7532
|
parent: this.parent || null,
|
|
7485
7533
|
path: []
|
|
7486
7534
|
};
|
|
@@ -7510,13 +7558,13 @@ const ia = {
|
|
|
7510
7558
|
},
|
|
7511
7559
|
onLabelClick(e, t) {
|
|
7512
7560
|
e[this.itemRouteKey] && this.$router && !this.hasExternalLink(e) && t.preventDefault(), (e.children || e.branch && !this.unexpandableEmpty) && this.expandDepth(e), this.selectable && (e.selected = !e.selected);
|
|
7513
|
-
const
|
|
7514
|
-
this.$emit("click",
|
|
7561
|
+
const s = this.emitPayload(e, t);
|
|
7562
|
+
this.$emit("click", s), this.emitItemSelection(e, t);
|
|
7515
7563
|
},
|
|
7516
7564
|
onLabelKeydown(e, t) {
|
|
7517
7565
|
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))) {
|
|
7518
|
-
const
|
|
7519
|
-
[...
|
|
7566
|
+
const s = this.$el.closest(".w-tree--depth0").querySelectorAll('.w-tree__item-label[tabindex="0"]'), n = t.target.closest(".w-tree__item-label"), l = t.which === 38 ? -1 : 1;
|
|
7567
|
+
[...s].some((a, r) => a.isSameNode(n) ? (s[r + l] && s[r + l].focus(), !0) : !1);
|
|
7520
7568
|
}
|
|
7521
7569
|
t.which === 13 && (this.selectable && (e.selected = !e.selected), this.emitItemSelection(e, t));
|
|
7522
7570
|
},
|
|
@@ -7573,63 +7621,63 @@ const ia = {
|
|
|
7573
7621
|
unmounted() {
|
|
7574
7622
|
this.dataPropUnwatch();
|
|
7575
7623
|
}
|
|
7576
|
-
},
|
|
7624
|
+
}, ia = /* @__PURE__ */ v(ta, [["render", ea]]), la = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
7577
7625
|
__proto__: null,
|
|
7578
7626
|
WAccordion: Ye,
|
|
7579
7627
|
WAlert: Ze,
|
|
7580
|
-
WAutocomplete:
|
|
7581
|
-
WApp:
|
|
7582
|
-
WBadge:
|
|
7583
|
-
WBreadcrumbs:
|
|
7584
|
-
WButton:
|
|
7585
|
-
WCard:
|
|
7586
|
-
WCheckbox:
|
|
7587
|
-
WCheckboxes:
|
|
7588
|
-
WConfirm:
|
|
7589
|
-
WDatePicker:
|
|
7590
|
-
WDialog:
|
|
7591
|
-
WDivider:
|
|
7592
|
-
WDrawer:
|
|
7593
|
-
WFlex:
|
|
7594
|
-
WForm:
|
|
7595
|
-
WFormElement:
|
|
7596
|
-
WGrid:
|
|
7597
|
-
WIcon:
|
|
7598
|
-
WImage:
|
|
7599
|
-
WInput:
|
|
7600
|
-
WList:
|
|
7601
|
-
WMenu:
|
|
7602
|
-
WNotification:
|
|
7603
|
-
WOverlay:
|
|
7604
|
-
WParallax:
|
|
7605
|
-
WProgress:
|
|
7606
|
-
WRadio:
|
|
7607
|
-
WRadios:
|
|
7608
|
-
WRating:
|
|
7609
|
-
WScrollable:
|
|
7628
|
+
WAutocomplete: dt,
|
|
7629
|
+
WApp: pt,
|
|
7630
|
+
WBadge: gt,
|
|
7631
|
+
WBreadcrumbs: vt,
|
|
7632
|
+
WButton: Tt,
|
|
7633
|
+
WCard: Ot,
|
|
7634
|
+
WCheckbox: Dt,
|
|
7635
|
+
WCheckboxes: qt,
|
|
7636
|
+
WConfirm: Gt,
|
|
7637
|
+
WDatePicker: Zt,
|
|
7638
|
+
WDialog: ii,
|
|
7639
|
+
WDivider: ai,
|
|
7640
|
+
WDrawer: hi,
|
|
7641
|
+
WFlex: fi,
|
|
7642
|
+
WForm: yi,
|
|
7643
|
+
WFormElement: ki,
|
|
7644
|
+
WGrid: Si,
|
|
7645
|
+
WIcon: Vi,
|
|
7646
|
+
WImage: Ri,
|
|
7647
|
+
WInput: Hi,
|
|
7648
|
+
WList: ji,
|
|
7649
|
+
WMenu: Xi,
|
|
7650
|
+
WNotification: Ji,
|
|
7651
|
+
WOverlay: el,
|
|
7652
|
+
WParallax: sl,
|
|
7653
|
+
WProgress: cl,
|
|
7654
|
+
WRadio: vl,
|
|
7655
|
+
WRadios: Sl,
|
|
7656
|
+
WRating: Tl,
|
|
7657
|
+
WScrollable: Ol,
|
|
7610
7658
|
WSelect: Kl,
|
|
7611
|
-
WSlider:
|
|
7612
|
-
WSpinner:
|
|
7613
|
-
WSteps:
|
|
7614
|
-
WSwitch:
|
|
7615
|
-
WTabs:
|
|
7616
|
-
WTable:
|
|
7617
|
-
WTag:
|
|
7618
|
-
WTextarea:
|
|
7619
|
-
WTimeline:
|
|
7620
|
-
WToolbar:
|
|
7621
|
-
WTooltip:
|
|
7622
|
-
WTransitionBounce:
|
|
7623
|
-
WTransitionExpand:
|
|
7624
|
-
WTransitionFade:
|
|
7625
|
-
WTransitionScale:
|
|
7626
|
-
WTransitionScaleFade:
|
|
7627
|
-
WTransitionSlide:
|
|
7628
|
-
WTransitionSlideFade:
|
|
7629
|
-
WTransitionTwist:
|
|
7630
|
-
WTree:
|
|
7631
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
7632
|
-
|
|
7659
|
+
WSlider: es,
|
|
7660
|
+
WSpinner: ss,
|
|
7661
|
+
WSteps: ns,
|
|
7662
|
+
WSwitch: ms,
|
|
7663
|
+
WTabs: Is,
|
|
7664
|
+
WTable: oo,
|
|
7665
|
+
WTag: uo,
|
|
7666
|
+
WTextarea: go,
|
|
7667
|
+
WTimeline: ko,
|
|
7668
|
+
WToolbar: So,
|
|
7669
|
+
WTooltip: Vo,
|
|
7670
|
+
WTransitionBounce: Lo,
|
|
7671
|
+
WTransitionExpand: Oo,
|
|
7672
|
+
WTransitionFade: zo,
|
|
7673
|
+
WTransitionScale: Ao,
|
|
7674
|
+
WTransitionScaleFade: Ho,
|
|
7675
|
+
WTransitionSlide: jo,
|
|
7676
|
+
WTransitionSlideFade: Xo,
|
|
7677
|
+
WTransitionTwist: Jo,
|
|
7678
|
+
WTree: ia
|
|
7679
|
+
}, Symbol.toStringTag, { value: "Module" })), sa = N.install;
|
|
7680
|
+
N.install = (e, t = {}) => sa.call(N, e, { components: la, ...t });
|
|
7633
7681
|
export {
|
|
7634
|
-
|
|
7682
|
+
N as default
|
|
7635
7683
|
};
|