wave-ui 3.13.5 → 3.13.6
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 +453 -487
- package/dist/wave-ui.umd.js +1 -1
- package/package.json +12 -12
- package/src/wave-ui/components/w-switch.vue +0 -1
package/dist/wave-ui.es.js
CHANGED
|
@@ -1,16 +1,12 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
if (!t.has(e))
|
|
5
|
-
throw TypeError("Cannot " + i);
|
|
1
|
+
var ve = Object.defineProperty;
|
|
2
|
+
var ne = (e) => {
|
|
3
|
+
throw TypeError(e);
|
|
6
4
|
};
|
|
7
|
-
var
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
import { reactive as G, resolveComponent as $, openBlock as s, createBlock as g, Teleport as Ce, createVNode as I, TransitionGroup as se, normalizeClass as f, withCtx as m, createElementBlock as u, Fragment as k, renderList as R, mergeProps as B, createElementVNode as y, createCommentVNode as p, createApp as Se, defineComponent as Be, inject as _e, withKeys as E, withModifiers as z, renderSlot as c, createTextVNode as S, toDisplayString as C, normalizeStyle as L, toHandlers as oe, Transition as O, resolveDynamicComponent as T, normalizeProps as te, resolveDirective as ge, withDirectives as W, createSlots as J, vShow as ae, vModelText as be, vModelDynamic as $e, KeepAlive as Ve } from "vue";
|
|
13
|
-
const Ie = G({
|
|
5
|
+
var Ce = (e, t, i) => t in e ? ve(e, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[t] = i;
|
|
6
|
+
var H = (e, t, i) => Ce(e, typeof t != "symbol" ? t + "" : t, i), re = (e, t, i) => t.has(e) || ne("Cannot " + i);
|
|
7
|
+
var X = (e, t, i) => (re(e, t, "read from private field"), i ? i.call(e) : t.get(e)), Q = (e, t, i) => t.has(e) ? ne("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, i), Z = (e, t, i, o) => (re(e, t, "write to private field"), o ? o.call(e, i) : t.set(e, i), i);
|
|
8
|
+
import { reactive as G, resolveComponent as $, openBlock as s, createBlock as g, Teleport as Se, createVNode as I, TransitionGroup as se, normalizeClass as f, withCtx as m, createElementBlock as u, Fragment as k, renderList as R, mergeProps as B, createElementVNode as y, createCommentVNode as p, createApp as Be, defineComponent as _e, inject as $e, withKeys as E, withModifiers as z, renderSlot as c, createTextVNode as S, toDisplayString as C, normalizeStyle as L, toHandlers as oe, Transition as O, resolveDynamicComponent as T, normalizeProps as te, resolveDirective as be, withDirectives as W, createSlots as J, vShow as ae, vModelText as ye, vModelDynamic as Ve, KeepAlive as Ie } from "vue";
|
|
9
|
+
const Te = G({
|
|
14
10
|
on: "#app",
|
|
15
11
|
// Sets the Wave UI root node. If not found, will default to `body`.
|
|
16
12
|
breakpoints: {
|
|
@@ -70,32 +66,30 @@ const Ie = G({
|
|
|
70
66
|
},
|
|
71
67
|
presets: {}
|
|
72
68
|
// User presets for each component.
|
|
73
|
-
}),
|
|
74
|
-
if (!Object.keys(t).length)
|
|
75
|
-
t = Object.assign(t, e);
|
|
69
|
+
}), we = (e, t = Te) => {
|
|
70
|
+
if (!Object.keys(t).length) t = Object.assign(t, e);
|
|
76
71
|
else
|
|
77
72
|
for (const i in e) {
|
|
78
73
|
const o = e[i];
|
|
79
|
-
typeof o == "object" ?
|
|
74
|
+
typeof o == "object" ? we(e[i], t[i]) : t[i] = o;
|
|
80
75
|
}
|
|
81
76
|
return t;
|
|
82
|
-
}, F = (e) => console.warn(`Wave UI: ${e}`), ee = (e) => console.error(`Wave UI: ${e}`),
|
|
77
|
+
}, F = (e) => console.warn(`Wave UI: ${e}`), ee = (e) => console.error(`Wave UI: ${e}`), de = (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(""), Le = (e) => {
|
|
83
78
|
["light", "dark"].forEach((t) => {
|
|
84
79
|
const i = e.colors[t];
|
|
85
80
|
i.shades = {};
|
|
86
81
|
for (let o in i) {
|
|
87
|
-
if (o === "shades")
|
|
88
|
-
continue;
|
|
82
|
+
if (o === "shades") continue;
|
|
89
83
|
o = { label: o, color: i[o].replace("#", "") };
|
|
90
84
|
const n = o.color;
|
|
91
85
|
n.length === 3 && (o.color = n[0] + "" + n[0] + n[1] + n[1] + n[2] + n[2]);
|
|
92
86
|
for (let l = 1; l <= 3; l++) {
|
|
93
|
-
const a =
|
|
87
|
+
const a = de(`#${o.color}`, l * 40), r = de(`#${o.color}`, -l * 40);
|
|
94
88
|
i.shades[`${o.label}-light${l}`] = a, i.shades[`${o.label}-dark${l}`] = r;
|
|
95
89
|
}
|
|
96
90
|
}
|
|
97
91
|
});
|
|
98
|
-
},
|
|
92
|
+
}, ue = (e, t) => {
|
|
99
93
|
const i = {
|
|
100
94
|
...t.reduce((o, n) => {
|
|
101
95
|
o[n.label] = n.color;
|
|
@@ -104,7 +98,7 @@ const Ie = G({
|
|
|
104
98
|
}, { ...e, ...e.shades })
|
|
105
99
|
};
|
|
106
100
|
return delete i.shades, i;
|
|
107
|
-
},
|
|
101
|
+
}, he = [
|
|
108
102
|
{
|
|
109
103
|
label: "pink",
|
|
110
104
|
color: "#e91e63",
|
|
@@ -455,8 +449,8 @@ const Ie = G({
|
|
|
455
449
|
cssScope: ".w-app",
|
|
456
450
|
baseIncrement: 4
|
|
457
451
|
};
|
|
458
|
-
let ie = { keys: [], values: [] },
|
|
459
|
-
const
|
|
452
|
+
let ie = { keys: [], values: [] }, ce = null;
|
|
453
|
+
const Re = (e, t) => {
|
|
460
454
|
let i = "";
|
|
461
455
|
const o = {}, { info: n, warning: l, success: a, error: r, shades: d, ...h } = e, { cssScope: w } = j;
|
|
462
456
|
for (const V in h)
|
|
@@ -464,16 +458,14 @@ const Le = (e, t) => {
|
|
|
464
458
|
for (const V in d)
|
|
465
459
|
i += `${w} .${V}--bg{background-color:${d[V]}}${w} .${V}{color:${d[V]}}`;
|
|
466
460
|
const _ = { ...h, info: n, warning: l, success: a, error: r };
|
|
467
|
-
for (const V in _)
|
|
468
|
-
o[V] = _[V];
|
|
461
|
+
for (const V in _) o[V] = _[V];
|
|
469
462
|
if (t)
|
|
470
|
-
for (const V in d)
|
|
471
|
-
o[V] = d[V];
|
|
463
|
+
for (const V in d) o[V] = d[V];
|
|
472
464
|
let b = "";
|
|
473
465
|
return Object.entries(o).forEach(([V, P]) => {
|
|
474
466
|
b += `--w-${V}-color: ${P};`;
|
|
475
467
|
}), `:root{${b}}${i}`;
|
|
476
|
-
},
|
|
468
|
+
}, Pe = (e, t) => {
|
|
477
469
|
let i = "";
|
|
478
470
|
const { cssScope: o } = j;
|
|
479
471
|
return e.forEach(({ min: n, label: l }) => {
|
|
@@ -487,7 +479,7 @@ const Le = (e, t) => {
|
|
|
487
479
|
i += "}";
|
|
488
480
|
}
|
|
489
481
|
}), i;
|
|
490
|
-
},
|
|
482
|
+
}, Oe = (e) => {
|
|
491
483
|
let t = "";
|
|
492
484
|
const { cssScope: i, baseIncrement: o } = j, n = [
|
|
493
485
|
"show{display:block}",
|
|
@@ -534,11 +526,11 @@ const Le = (e, t) => {
|
|
|
534
526
|
a !== "xl" && (t += `@media (max-width:${r}px){` + n.map((d) => `${i} .${a}d-${d}`).join("") + // w-grid columns and gap.
|
|
535
527
|
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) * o}px;}`).join("") + `.w-flex.${a}d-gap0,.w-flex.${a}d-gap0{gap:0}}`);
|
|
536
528
|
}), t;
|
|
537
|
-
},
|
|
529
|
+
}, pe = (e) => {
|
|
538
530
|
const t = window.innerWidth, i = ie.values.slice(0);
|
|
539
531
|
i.push(t), i.sort((n, l) => n - l);
|
|
540
532
|
const o = ie.keys[i.indexOf(t)] || "xl";
|
|
541
|
-
o !==
|
|
533
|
+
o !== ce && (ce = o, e.breakpoint = {
|
|
542
534
|
name: o,
|
|
543
535
|
xs: o === "xs",
|
|
544
536
|
sm: o === "sm",
|
|
@@ -547,34 +539,34 @@ const Le = (e, t) => {
|
|
|
547
539
|
xl: o === "xl",
|
|
548
540
|
width: t
|
|
549
541
|
}), e.breakpoint.width = window.innerWidth;
|
|
550
|
-
},
|
|
542
|
+
}, xe = (e) => {
|
|
551
543
|
const { config: t } = e;
|
|
552
544
|
if (ie = { keys: Object.keys(t.breakpoints), values: Object.values(t.breakpoints) }, !document.getElementById("wave-ui-styles")) {
|
|
553
545
|
const i = document.createElement("style");
|
|
554
|
-
i.id = "wave-ui-styles", i.innerHTML =
|
|
546
|
+
i.id = "wave-ui-styles", i.innerHTML = Me(t);
|
|
555
547
|
const o = document.head.querySelectorAll('style,link[rel="stylesheet"]')[0];
|
|
556
548
|
o ? o.before(i) : document.head.appendChild(i);
|
|
557
549
|
}
|
|
558
|
-
|
|
559
|
-
},
|
|
550
|
+
pe(e), window.addEventListener("resize", () => pe(e));
|
|
551
|
+
}, ze = (e, t) => {
|
|
560
552
|
if (!document.getElementById("wave-ui-colors")) {
|
|
561
553
|
const i = document.createElement("style");
|
|
562
|
-
i.id = "wave-ui-colors", i.innerHTML =
|
|
554
|
+
i.id = "wave-ui-colors", i.innerHTML = Re(e, t);
|
|
563
555
|
const o = document.head.querySelectorAll('style,link[rel="stylesheet"]')[0];
|
|
564
556
|
o ? o.before(i) : document.head.appendChild(i);
|
|
565
557
|
}
|
|
566
|
-
},
|
|
558
|
+
}, Me = (e) => {
|
|
567
559
|
const t = Object.entries(e.breakpoints), i = t.map(([l, a], r) => {
|
|
568
560
|
const [, d = 0] = t[r - 1] || [];
|
|
569
561
|
return { label: l, min: d ? d + 1 : 0, max: a };
|
|
570
562
|
}), o = getComputedStyle(document.documentElement);
|
|
571
563
|
j.cssScope = o.getPropertyValue("--w-css-scope"), j.baseIncrement = parseInt(o.getPropertyValue("--w-base-increment"));
|
|
572
564
|
let n = "";
|
|
573
|
-
return n +=
|
|
574
|
-
},
|
|
575
|
-
function
|
|
565
|
+
return n += Pe(i, e.css.grid), e.css.breakpointLayoutClasses && (n += Oe(i)), n;
|
|
566
|
+
}, Ee = ["innerHTML"];
|
|
567
|
+
function Ae(e, t, i, o, n, l) {
|
|
576
568
|
const a = $("w-alert");
|
|
577
|
-
return s(), g(
|
|
569
|
+
return s(), g(Se, { to: ".w-app" }, [
|
|
578
570
|
I(se, {
|
|
579
571
|
class: f(["w-notification-manager", { "w-notification-manager--left": l.conf.align === "left" }]),
|
|
580
572
|
tag: "div",
|
|
@@ -594,7 +586,7 @@ function Ee(e, t, i, o, n, l) {
|
|
|
594
586
|
default: m(() => [
|
|
595
587
|
y("div", {
|
|
596
588
|
innerHTML: r.message
|
|
597
|
-
}, null, 8,
|
|
589
|
+
}, null, 8, Ee)
|
|
598
590
|
]),
|
|
599
591
|
_: 2
|
|
600
592
|
}, 1040, ["modelValue", "onUpdate:modelValue", "onClose"])) : p("", !0)
|
|
@@ -609,7 +601,7 @@ const v = (e, t) => {
|
|
|
609
601
|
for (const [o, n] of t)
|
|
610
602
|
i[o] = n;
|
|
611
603
|
return i;
|
|
612
|
-
},
|
|
604
|
+
}, We = {
|
|
613
605
|
name: "w-notification-manager",
|
|
614
606
|
computed: {
|
|
615
607
|
conf() {
|
|
@@ -631,7 +623,7 @@ const v = (e, t) => {
|
|
|
631
623
|
return l.dismiss && (l.dismiss = !0), l;
|
|
632
624
|
}
|
|
633
625
|
}
|
|
634
|
-
},
|
|
626
|
+
}, Ke = /* @__PURE__ */ v(We, [["render", Ae]]);
|
|
635
627
|
var D;
|
|
636
628
|
const K = class K {
|
|
637
629
|
constructor() {
|
|
@@ -640,8 +632,7 @@ const K = class K {
|
|
|
640
632
|
H(this, "_uid");
|
|
641
633
|
// A unique ID for each notification.
|
|
642
634
|
H(this, "_notificationDefaults");
|
|
643
|
-
if (X(K, D))
|
|
644
|
-
return X(K, D);
|
|
635
|
+
if (X(K, D)) return X(K, D);
|
|
645
636
|
this.notifications = [], this._uid = 0, this._notificationDefaults = {
|
|
646
637
|
_uid: 0,
|
|
647
638
|
_value: !0,
|
|
@@ -655,8 +646,7 @@ const K = class K {
|
|
|
655
646
|
...this._notificationDefaults,
|
|
656
647
|
_uid: this._uid++
|
|
657
648
|
};
|
|
658
|
-
if (typeof t[0] == "object")
|
|
659
|
-
i = { ...i, ...t[0] };
|
|
649
|
+
if (typeof t[0] == "object") i = { ...i, ...t[0] };
|
|
660
650
|
else {
|
|
661
651
|
const [o, n, l] = t;
|
|
662
652
|
i = {
|
|
@@ -672,13 +662,13 @@ const K = class K {
|
|
|
672
662
|
this.notifications = this.notifications.filter((i) => i._uid !== t);
|
|
673
663
|
}
|
|
674
664
|
};
|
|
675
|
-
D = new WeakMap(), Q(K, D
|
|
665
|
+
D = new WeakMap(), Q(K, D);
|
|
676
666
|
let le = K;
|
|
677
|
-
const
|
|
667
|
+
const Ne = (e, t, i) => {
|
|
678
668
|
const o = document.createElement("div");
|
|
679
669
|
e.appendChild(o);
|
|
680
|
-
const n =
|
|
681
|
-
...
|
|
670
|
+
const n = Be(_e({
|
|
671
|
+
...Ke,
|
|
682
672
|
inject: ["$waveui"]
|
|
683
673
|
})).provide("$waveui", i);
|
|
684
674
|
for (const l in t) {
|
|
@@ -687,13 +677,13 @@ const Ke = (e, t, i) => {
|
|
|
687
677
|
}
|
|
688
678
|
n.mount(o), o.remove();
|
|
689
679
|
};
|
|
690
|
-
let
|
|
691
|
-
const
|
|
680
|
+
let fe = !1;
|
|
681
|
+
const De = (e) => {
|
|
692
682
|
const t = window.matchMedia("(prefers-color-scheme: dark)");
|
|
693
683
|
e.preferredTheme = t.matches ? "dark" : "light", e.switchTheme(e.preferredTheme), t.addEventListener("change", (i) => {
|
|
694
684
|
e.preferredTheme = i.matches ? "dark" : "light", e.switchTheme(e.preferredTheme);
|
|
695
685
|
});
|
|
696
|
-
},
|
|
686
|
+
}, He = (e, t) => {
|
|
697
687
|
var i, o;
|
|
698
688
|
for (const n in t)
|
|
699
689
|
if ((i = e.props) != null && i[n])
|
|
@@ -743,19 +733,18 @@ const N = class N {
|
|
|
743
733
|
var n, l;
|
|
744
734
|
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);
|
|
745
735
|
const o = this.config.colors[this.theme];
|
|
746
|
-
|
|
736
|
+
ze(o, this.config.css.colorShadeCssVariables), this.colors = ue(o, he);
|
|
747
737
|
}
|
|
748
738
|
});
|
|
749
|
-
if (X(N, q))
|
|
750
|
-
return;
|
|
739
|
+
if (X(N, q)) return;
|
|
751
740
|
if (this.$waveui._notificationManager = new le(), i.theme || (i.theme = "light"), i.colors) {
|
|
752
741
|
const a = { ...i.colors };
|
|
753
742
|
i.colors.light || (i.colors.light = a), i.colors.dark || (i.colors.dark = a), i.colors = { light: i.colors.light, dark: i.colors.dark };
|
|
754
743
|
}
|
|
755
744
|
let { components: o, ...n } = i;
|
|
756
|
-
n = this.$waveui.config =
|
|
745
|
+
n = this.$waveui.config = we(n), n.css.colorShades && Le(n);
|
|
757
746
|
const l = G(this.$waveui);
|
|
758
|
-
t.config.globalProperties.$waveui = l, t.provide("$waveui", l), n.theme !== "auto" && (this.$waveui.colors =
|
|
747
|
+
t.config.globalProperties.$waveui = l, t.provide("$waveui", l), n.theme !== "auto" && (this.$waveui.colors = ue(n.colors[n.theme], he));
|
|
759
748
|
}
|
|
760
749
|
static install(t, i = {}) {
|
|
761
750
|
var n;
|
|
@@ -773,15 +762,15 @@ const N = class N {
|
|
|
773
762
|
const { components: o = {} } = i || {};
|
|
774
763
|
for (const l in o) {
|
|
775
764
|
const a = o[l];
|
|
776
|
-
(n = i.presets) != null && n[a.name] &&
|
|
765
|
+
(n = i.presets) != null && n[a.name] && He(a, i.presets[a.name]), t.component(a.name, a);
|
|
777
766
|
}
|
|
778
767
|
t.mixin({
|
|
779
768
|
// Add a mixin to capture the first mounted hook, trigger the Wave UI init then unregister the mixin straight away.
|
|
780
769
|
beforeMount() {
|
|
781
|
-
if (!
|
|
782
|
-
|
|
783
|
-
const l =
|
|
784
|
-
r.classList.add("w-app"), a.theme === "auto" ?
|
|
770
|
+
if (!fe) {
|
|
771
|
+
fe = !0;
|
|
772
|
+
const l = $e("$waveui"), { config: a } = l, r = document.querySelector(a.on) || document.body;
|
|
773
|
+
r.classList.add("w-app"), a.theme === "auto" ? De(l) : l.switchTheme(a.theme, !0), xe(l), Ne(r, o, l), t._context.mixins.find((d) => d.mounted && delete d.mounted);
|
|
785
774
|
}
|
|
786
775
|
}
|
|
787
776
|
}), new N(t, i), Z(N, q, !0);
|
|
@@ -789,8 +778,8 @@ const N = class N {
|
|
|
789
778
|
};
|
|
790
779
|
q = new WeakMap(), Q(N, q, !1);
|
|
791
780
|
let U = N;
|
|
792
|
-
const
|
|
793
|
-
function
|
|
781
|
+
const Fe = ["aria-expanded"], je = ["onClick", "onFocus", "onKeypress", "tabindex"], Ue = ["innerHTML"], qe = ["innerHTML"];
|
|
782
|
+
function Xe(e, t, i, o, n, l) {
|
|
794
783
|
const a = $("w-button"), r = $("w-transition-expand");
|
|
795
784
|
return s(), u("div", {
|
|
796
785
|
class: f(["w-accordion", l.accordionClasses])
|
|
@@ -833,7 +822,7 @@ function qe(e, t, i, o, n, l) {
|
|
|
833
822
|
y("div", {
|
|
834
823
|
class: "grow",
|
|
835
824
|
innerHTML: d[i.itemTitleKey]
|
|
836
|
-
}, null, 8,
|
|
825
|
+
}, null, 8, Ue)
|
|
837
826
|
]),
|
|
838
827
|
i.expandIcon && i.expandIconRight ? (s(), g(a, {
|
|
839
828
|
key: 3,
|
|
@@ -844,7 +833,7 @@ function qe(e, t, i, o, n, l) {
|
|
|
844
833
|
}, ["stop"])),
|
|
845
834
|
onClick: z((w) => !d._disabled && l.toggleItem(d, w), ["stop"])
|
|
846
835
|
}, null, 8, ["icon", "onClick", "class"])) : p("", !0)
|
|
847
|
-
], 42,
|
|
836
|
+
], 42, je),
|
|
848
837
|
I(r, {
|
|
849
838
|
y: "",
|
|
850
839
|
onAfterLeave: (w) => l.onEndOfCollapse(d),
|
|
@@ -868,16 +857,16 @@ function qe(e, t, i, o, n, l) {
|
|
|
868
857
|
}, () => [
|
|
869
858
|
y("div", {
|
|
870
859
|
innerHTML: d[i.itemContentKey]
|
|
871
|
-
}, null, 8,
|
|
860
|
+
}, null, 8, qe)
|
|
872
861
|
])
|
|
873
862
|
], 2)) : p("", !0)
|
|
874
863
|
]),
|
|
875
864
|
_: 2
|
|
876
865
|
}, 1032, ["onAfterLeave", "duration"])
|
|
877
|
-
], 10,
|
|
866
|
+
], 10, Fe))), 128))
|
|
878
867
|
], 2);
|
|
879
868
|
}
|
|
880
|
-
const
|
|
869
|
+
const Ye = {
|
|
881
870
|
name: "w-accordion",
|
|
882
871
|
props: {
|
|
883
872
|
modelValue: { type: Array },
|
|
@@ -965,8 +954,8 @@ const Xe = {
|
|
|
965
954
|
deep: !0
|
|
966
955
|
}
|
|
967
956
|
}
|
|
968
|
-
},
|
|
969
|
-
function
|
|
957
|
+
}, Ge = /* @__PURE__ */ v(Ye, [["render", Xe]]), Je = { class: "w-alert__content" };
|
|
958
|
+
function Qe(e, t, i, o, n, l) {
|
|
970
959
|
const a = $("w-icon"), r = $("w-button");
|
|
971
960
|
return n.show ? (s(), u("div", {
|
|
972
961
|
key: 0,
|
|
@@ -982,7 +971,7 @@ function Je(e, t, i, o, n, l) {
|
|
|
982
971
|
]),
|
|
983
972
|
_: 1
|
|
984
973
|
})) : p("", !0),
|
|
985
|
-
y("div",
|
|
974
|
+
y("div", Je, [
|
|
986
975
|
c(e.$slots, "default")
|
|
987
976
|
]),
|
|
988
977
|
i.dismiss ? (s(), g(r, {
|
|
@@ -999,7 +988,7 @@ function Je(e, t, i, o, n, l) {
|
|
|
999
988
|
], 64)) : c(e.$slots, "default", { key: 1 })
|
|
1000
989
|
], 2)) : p("", !0);
|
|
1001
990
|
}
|
|
1002
|
-
const
|
|
991
|
+
const Ze = {
|
|
1003
992
|
name: "w-alert",
|
|
1004
993
|
props: {
|
|
1005
994
|
modelValue: { default: !0 },
|
|
@@ -1082,22 +1071,22 @@ const Qe = {
|
|
|
1082
1071
|
this.show = e;
|
|
1083
1072
|
}
|
|
1084
1073
|
}
|
|
1085
|
-
},
|
|
1086
|
-
function
|
|
1074
|
+
}, et = /* @__PURE__ */ v(Ze, [["render", Qe]]), tt = { class: "w-autocomplete__selection" }, it = ["innerHTML"], lt = ["innerHTML"], st = ["value"], ot = ["onClick"], at = ["innerHTML"], nt = ["innerHTML"];
|
|
1075
|
+
function rt(e, t, i, o, n, l) {
|
|
1087
1076
|
const a = $("w-button"), r = $("w-transition-slide-fade");
|
|
1088
1077
|
return s(), u("div", {
|
|
1089
1078
|
class: f(["w-autocomplete", l.classes]),
|
|
1090
1079
|
onClick: t[5] || (t[5] = (...d) => l.onClick && l.onClick(...d)),
|
|
1091
1080
|
style: L(e.$attrs.style)
|
|
1092
1081
|
}, [
|
|
1093
|
-
e.selection.length ? (s(!0), u(k, { key: 0 }, R(e.selection, (d, h) => (s(), u("div",
|
|
1082
|
+
e.selection.length ? (s(!0), u(k, { key: 0 }, R(e.selection, (d, h) => (s(), u("div", tt, [
|
|
1094
1083
|
c(e.$slots, "selection", {
|
|
1095
1084
|
item: d,
|
|
1096
1085
|
unselect: (w) => l.unselectItem(w)
|
|
1097
1086
|
}, () => [
|
|
1098
1087
|
y("span", {
|
|
1099
1088
|
innerHTML: d[i.itemLabelKey]
|
|
1100
|
-
}, null, 8,
|
|
1089
|
+
}, null, 8, it),
|
|
1101
1090
|
I(a, {
|
|
1102
1091
|
onClick: z((w) => l.unselectItem(h), ["stop"]),
|
|
1103
1092
|
icon: "wi-cross",
|
|
@@ -1111,12 +1100,12 @@ function nt(e, t, i, o, n, l) {
|
|
|
1111
1100
|
key: 1,
|
|
1112
1101
|
class: "w-autocomplete__placeholder",
|
|
1113
1102
|
innerHTML: i.placeholder
|
|
1114
|
-
}, null, 8,
|
|
1103
|
+
}, null, 8, lt)) : p("", !0),
|
|
1115
1104
|
y("input", B({
|
|
1116
1105
|
class: "w-autocomplete__input",
|
|
1117
1106
|
ref: "input",
|
|
1118
1107
|
value: e.keywords
|
|
1119
|
-
}, oe(l.inputEventListeners, !0), l.inputAttrs), null, 16,
|
|
1108
|
+
}, oe(l.inputEventListeners, !0), l.inputAttrs), null, 16, st),
|
|
1120
1109
|
I(r, null, {
|
|
1121
1110
|
default: m(() => [
|
|
1122
1111
|
e.menuOpen ? (s(), u("ul", {
|
|
@@ -1139,9 +1128,9 @@ function nt(e, t, i, o, n, l) {
|
|
|
1139
1128
|
}, () => [
|
|
1140
1129
|
y("span", {
|
|
1141
1130
|
innerHTML: d[i.itemLabelKey]
|
|
1142
|
-
}, null, 8,
|
|
1131
|
+
}, null, 8, at)
|
|
1143
1132
|
])
|
|
1144
|
-
], 10,
|
|
1133
|
+
], 10, ot))), 128)),
|
|
1145
1134
|
l.filteredItems.length ? p("", !0) : (s(), u("li", {
|
|
1146
1135
|
key: 0,
|
|
1147
1136
|
class: f(["w-autocomplete__no-match", { "w-autocomplete__no-match--default": !e.$slots.noMatch }])
|
|
@@ -1150,7 +1139,7 @@ function nt(e, t, i, o, n, l) {
|
|
|
1150
1139
|
y("div", {
|
|
1151
1140
|
class: "caption",
|
|
1152
1141
|
innerHTML: i.noMatch ?? "No match."
|
|
1153
|
-
}, null, 8,
|
|
1142
|
+
}, null, 8, nt)
|
|
1154
1143
|
])
|
|
1155
1144
|
], 2)),
|
|
1156
1145
|
e.$slots["extra-item"] ? (s(), u("li", {
|
|
@@ -1166,7 +1155,7 @@ function nt(e, t, i, o, n, l) {
|
|
|
1166
1155
|
})
|
|
1167
1156
|
], 6);
|
|
1168
1157
|
}
|
|
1169
|
-
const
|
|
1158
|
+
const dt = {
|
|
1170
1159
|
name: "w-autocomplete",
|
|
1171
1160
|
inheritAttrs: !1,
|
|
1172
1161
|
// The attrs should only be added to the input not the wrapper.
|
|
@@ -1295,8 +1284,7 @@ const rt = {
|
|
|
1295
1284
|
onKeydown(e) {
|
|
1296
1285
|
var i;
|
|
1297
1286
|
const t = this.filteredItems.length + (this.$slots["extra-item"] ? 1 : 0);
|
|
1298
|
-
if ((!this.openOnKeydown || (this.keywords || e.key.length === 1) && !this.menuOpen) && this.openMenu(), e.keyCode === 9)
|
|
1299
|
-
this.closeMenu();
|
|
1287
|
+
if ((!this.openOnKeydown || (this.keywords || e.key.length === 1) && !this.menuOpen) && this.openMenu(), e.keyCode === 9) this.closeMenu();
|
|
1300
1288
|
else if (e.keyCode === 8 && (!this.keywords || !e.target.selectionStart && !e.target.selectionEnd))
|
|
1301
1289
|
this.unselectItem();
|
|
1302
1290
|
else if (e.keyCode === 13)
|
|
@@ -1307,14 +1295,12 @@ const rt = {
|
|
|
1307
1295
|
o === -1 ? o = e.keyCode === 38 ? t - 1 : 0 : o = (o + (e.keyCode === 38 ? -1 : 1) + t) % t, this.$slots["extra-item"] && o === t - 1 ? this.highlightedItem = "extra-item" : this.highlightedItem = ((i = this.filteredItems[o]) == null ? void 0 : i.uid) || 0;
|
|
1308
1296
|
const n = this.$refs.menu;
|
|
1309
1297
|
if (n)
|
|
1310
|
-
if (this.$slots["extra-item"] && o === t - 1)
|
|
1311
|
-
n.scrollTop = n.scrollHeight;
|
|
1298
|
+
if (this.$slots["extra-item"] && o === t - 1) n.scrollTop = n.scrollHeight;
|
|
1312
1299
|
else {
|
|
1313
1300
|
const { offsetHeight: l, offsetTop: a } = n.childNodes[o] || {};
|
|
1314
1301
|
n.scrollTop + n.offsetHeight - l < a ? n.scrollTop = a - n.offsetHeight + l : n.scrollTop > a && (n.scrollTop = a);
|
|
1315
1302
|
}
|
|
1316
|
-
} else
|
|
1317
|
-
!this.multiple && this.selection.length && e.key.length === 1 && e.preventDefault();
|
|
1303
|
+
} else !this.multiple && this.selection.length && e.key.length === 1 && e.preventDefault();
|
|
1318
1304
|
},
|
|
1319
1305
|
// On drag & drop of a text in the input field, don't paste if single selection and already selected.
|
|
1320
1306
|
onDrop(e) {
|
|
@@ -1352,13 +1338,13 @@ const rt = {
|
|
|
1352
1338
|
});
|
|
1353
1339
|
}
|
|
1354
1340
|
}
|
|
1355
|
-
},
|
|
1356
|
-
function
|
|
1357
|
-
return s(), u("div",
|
|
1341
|
+
}, ut = /* @__PURE__ */ v(dt, [["render", rt]]), ht = { class: "w-app" };
|
|
1342
|
+
function ct(e, t, i, o, n, l) {
|
|
1343
|
+
return s(), u("div", ht, [
|
|
1358
1344
|
c(e.$slots, "default")
|
|
1359
1345
|
]);
|
|
1360
1346
|
}
|
|
1361
|
-
const
|
|
1347
|
+
const pt = {
|
|
1362
1348
|
name: "w-app",
|
|
1363
1349
|
// Keep the props for the API documentation.
|
|
1364
1350
|
props: {
|
|
@@ -1374,9 +1360,9 @@ const ct = {
|
|
|
1374
1360
|
textCenter: { type: Boolean },
|
|
1375
1361
|
textRight: { type: Boolean }
|
|
1376
1362
|
}
|
|
1377
|
-
},
|
|
1378
|
-
function
|
|
1379
|
-
return s(), u("div",
|
|
1363
|
+
}, ft = /* @__PURE__ */ v(pt, [["render", ct]]), mt = { class: "w-badge-wrap" };
|
|
1364
|
+
function gt(e, t, i, o, n, l) {
|
|
1365
|
+
return s(), u("div", mt, [
|
|
1380
1366
|
c(e.$slots, "default"),
|
|
1381
1367
|
I(O, {
|
|
1382
1368
|
name: `${i.transition}`
|
|
@@ -1400,7 +1386,7 @@ function mt(e, t, i, o, n, l) {
|
|
|
1400
1386
|
}, 8, ["name"])
|
|
1401
1387
|
]);
|
|
1402
1388
|
}
|
|
1403
|
-
const
|
|
1389
|
+
const bt = {
|
|
1404
1390
|
name: "w-badge",
|
|
1405
1391
|
props: {
|
|
1406
1392
|
modelValue: { default: !0 },
|
|
@@ -1463,8 +1449,8 @@ const gt = {
|
|
|
1463
1449
|
return this.forcedSize && `font-size: ${this.forcedSize}`;
|
|
1464
1450
|
}
|
|
1465
1451
|
}
|
|
1466
|
-
},
|
|
1467
|
-
function
|
|
1452
|
+
}, yt = /* @__PURE__ */ v(bt, [["render", gt]]), wt = ["innerHTML"];
|
|
1453
|
+
function kt(e, t, i, o, n, l) {
|
|
1468
1454
|
const a = $("w-icon");
|
|
1469
1455
|
return s(), u("div", {
|
|
1470
1456
|
class: f(["w-breadcrumbs", l.classes])
|
|
@@ -1514,11 +1500,11 @@ function wt(e, t, i, o, n, l) {
|
|
|
1514
1500
|
}) : (s(), u("span", {
|
|
1515
1501
|
key: `${d}f`,
|
|
1516
1502
|
innerHTML: r[i.itemLabelKey]
|
|
1517
|
-
}, null, 8,
|
|
1503
|
+
}, null, 8, wt))
|
|
1518
1504
|
], 64))), 256))
|
|
1519
1505
|
], 2);
|
|
1520
1506
|
}
|
|
1521
|
-
const
|
|
1507
|
+
const vt = {
|
|
1522
1508
|
name: "w-breadcrumbs",
|
|
1523
1509
|
props: {
|
|
1524
1510
|
items: { type: Array, required: !0 },
|
|
@@ -1549,10 +1535,10 @@ const kt = {
|
|
|
1549
1535
|
};
|
|
1550
1536
|
}
|
|
1551
1537
|
}
|
|
1552
|
-
},
|
|
1538
|
+
}, Ct = /* @__PURE__ */ v(vt, [["render", kt]]), St = {
|
|
1553
1539
|
key: 0,
|
|
1554
1540
|
class: "w-button__loader"
|
|
1555
|
-
},
|
|
1541
|
+
}, Bt = /* @__PURE__ */ y("svg", { viewBox: "0 0 40 40" }, [
|
|
1556
1542
|
/* @__PURE__ */ y("circle", {
|
|
1557
1543
|
cx: "20",
|
|
1558
1544
|
cy: "20",
|
|
@@ -1563,7 +1549,7 @@ const kt = {
|
|
|
1563
1549
|
"stroke-linecap": "round"
|
|
1564
1550
|
})
|
|
1565
1551
|
], -1);
|
|
1566
|
-
function
|
|
1552
|
+
function _t(e, t, i, o, n, l) {
|
|
1567
1553
|
const a = $("w-icon");
|
|
1568
1554
|
return s(), g(T(i.route ? "a" : "button"), B({
|
|
1569
1555
|
class: ["w-button", l.classes],
|
|
@@ -1580,9 +1566,9 @@ function Bt(e, t, i, o, n, l) {
|
|
|
1580
1566
|
}, 16)) : c(e.$slots, "default", { key: 1 }),
|
|
1581
1567
|
I(O, { name: "scale-fade" }, {
|
|
1582
1568
|
default: m(() => [
|
|
1583
|
-
i.loading ? (s(), u("div",
|
|
1569
|
+
i.loading ? (s(), u("div", St, [
|
|
1584
1570
|
c(e.$slots, "loading", {}, () => [
|
|
1585
|
-
|
|
1571
|
+
Bt
|
|
1586
1572
|
])
|
|
1587
1573
|
])) : p("", !0)
|
|
1588
1574
|
]),
|
|
@@ -1592,7 +1578,7 @@ function Bt(e, t, i, o, n, l) {
|
|
|
1592
1578
|
_: 3
|
|
1593
1579
|
}, 16, ["type", "href", "class", "disabled", "style"]);
|
|
1594
1580
|
}
|
|
1595
|
-
const
|
|
1581
|
+
const $t = {
|
|
1596
1582
|
// Fully handle the attrs and listeners manually for the case of a router link that has both a
|
|
1597
1583
|
// route and onClick.
|
|
1598
1584
|
inheritAttrs: !1,
|
|
@@ -1693,8 +1679,8 @@ const _t = {
|
|
|
1693
1679
|
};
|
|
1694
1680
|
}
|
|
1695
1681
|
}
|
|
1696
|
-
},
|
|
1697
|
-
function
|
|
1682
|
+
}, Vt = /* @__PURE__ */ v($t, [["render", _t]]), It = ["innerHTML"];
|
|
1683
|
+
function Tt(e, t, i, o, n, l) {
|
|
1698
1684
|
const a = $("button-partial");
|
|
1699
1685
|
return i.tooltip ? (s(), g(T("w-tooltip"), te(B({ key: 0 }, i.tooltipProps)), {
|
|
1700
1686
|
activator: m(({ on: r }) => [
|
|
@@ -1706,7 +1692,7 @@ function It(e, t, i, o, n, l) {
|
|
|
1706
1692
|
}, 1040)
|
|
1707
1693
|
]),
|
|
1708
1694
|
default: m(() => [
|
|
1709
|
-
y("div", { innerHTML: i.tooltip }, null, 8,
|
|
1695
|
+
y("div", { innerHTML: i.tooltip }, null, 8, It)
|
|
1710
1696
|
]),
|
|
1711
1697
|
_: 3
|
|
1712
1698
|
}, 16)) : (s(), g(a, te(B({ key: 1 }, l.buttonProps)), {
|
|
@@ -1719,7 +1705,7 @@ function It(e, t, i, o, n, l) {
|
|
|
1719
1705
|
_: 3
|
|
1720
1706
|
}, 16));
|
|
1721
1707
|
}
|
|
1722
|
-
const
|
|
1708
|
+
const Lt = {
|
|
1723
1709
|
name: "w-button",
|
|
1724
1710
|
inheritAttrs: !1,
|
|
1725
1711
|
// The attrs are only bound to the button-partial, not the root.
|
|
@@ -1762,7 +1748,7 @@ const Tt = {
|
|
|
1762
1748
|
lg: { type: Boolean },
|
|
1763
1749
|
xl: { type: Boolean }
|
|
1764
1750
|
},
|
|
1765
|
-
components: { ButtonPartial:
|
|
1751
|
+
components: { ButtonPartial: Vt },
|
|
1766
1752
|
emits: [],
|
|
1767
1753
|
computed: {
|
|
1768
1754
|
buttonProps() {
|
|
@@ -1770,8 +1756,8 @@ const Tt = {
|
|
|
1770
1756
|
return { ...i, ...this.$attrs };
|
|
1771
1757
|
}
|
|
1772
1758
|
}
|
|
1773
|
-
},
|
|
1774
|
-
function
|
|
1759
|
+
}, Rt = /* @__PURE__ */ v(Lt, [["render", Tt]]), A = (e = {}) => (typeof e == "string" ? e = { [e]: !0 } : Array.isArray(e) && (e = { [e.join(" ")]: !0 }), e), Pt = ["innerHTML"];
|
|
1760
|
+
function Ot(e, t, i, o, n, l) {
|
|
1775
1761
|
const a = $("w-image");
|
|
1776
1762
|
return s(), u("div", {
|
|
1777
1763
|
class: f(["w-card", l.classes])
|
|
@@ -1785,7 +1771,7 @@ function Pt(e, t, i, o, n, l) {
|
|
|
1785
1771
|
key: 1,
|
|
1786
1772
|
class: f(["w-card__title", { "w-card__title--has-toolbar": e.$slots.title && l.titleHasToolbar, ...l.titleClasses }]),
|
|
1787
1773
|
innerHTML: i.title
|
|
1788
|
-
}, null, 10,
|
|
1774
|
+
}, null, 10, Pt)) : p("", !0),
|
|
1789
1775
|
i.image ? (s(), g(a, B({
|
|
1790
1776
|
key: 2,
|
|
1791
1777
|
class: "w-card__image",
|
|
@@ -1809,7 +1795,7 @@ function Pt(e, t, i, o, n, l) {
|
|
|
1809
1795
|
], 2)) : p("", !0)
|
|
1810
1796
|
], 2);
|
|
1811
1797
|
}
|
|
1812
|
-
const
|
|
1798
|
+
const xt = {
|
|
1813
1799
|
name: "w-card",
|
|
1814
1800
|
props: {
|
|
1815
1801
|
color: { type: String },
|
|
@@ -1860,7 +1846,7 @@ const Ot = {
|
|
|
1860
1846
|
};
|
|
1861
1847
|
}
|
|
1862
1848
|
}
|
|
1863
|
-
},
|
|
1849
|
+
}, zt = /* @__PURE__ */ v(xt, [["render", Ot]]), M = {
|
|
1864
1850
|
inject: {
|
|
1865
1851
|
// Used in each form component to determine whether to use the w-form-element wrap or not.
|
|
1866
1852
|
// So, if a form component is in a form, use the w-form-element wrap.
|
|
@@ -1907,12 +1893,12 @@ const Ot = {
|
|
|
1907
1893
|
this.$refs.formEl.validate(this);
|
|
1908
1894
|
}
|
|
1909
1895
|
}
|
|
1910
|
-
},
|
|
1896
|
+
}, Mt = ["id", "name", "checked", "disabled", "required", "tabindex", "aria-checked"], Et = ["for"], At = ["for", "innerHTML"], Wt = /* @__PURE__ */ y("svg", { viewBox: "-0.5 0 12 10" }, [
|
|
1911
1897
|
/* @__PURE__ */ y("polyline", { points: "1 5 4 8 10 2" })
|
|
1912
|
-
], -1),
|
|
1913
|
-
|
|
1914
|
-
],
|
|
1915
|
-
function
|
|
1898
|
+
], -1), Kt = [
|
|
1899
|
+
Wt
|
|
1900
|
+
], Nt = ["for"], Dt = ["for", "innerHTML"];
|
|
1901
|
+
function Ht(e, t, i, o, n, l) {
|
|
1916
1902
|
return s(), g(T(e.formRegister && !l.wCheckboxes ? "w-form-element" : "div"), B({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: n.isChecked, disabled: e.isDisabled, readonly: e.isReadonly }, {
|
|
1917
1903
|
valid: e.valid,
|
|
1918
1904
|
"onUpdate:valid": t[5] || (t[5] = (a) => e.valid = a),
|
|
@@ -1937,7 +1923,7 @@ function Dt(e, t, i, o, n, l) {
|
|
|
1937
1923
|
onKeypress: t[3] || (t[3] = E((...a) => l.onInput && l.onInput(...a), ["enter"])),
|
|
1938
1924
|
"aria-checked": n.isChecked || "false",
|
|
1939
1925
|
role: "checkbox"
|
|
1940
|
-
}, null, 40,
|
|
1926
|
+
}, null, 40, Mt),
|
|
1941
1927
|
l.hasLabel && i.labelOnLeft ? (s(), u(k, { key: 0 }, [
|
|
1942
1928
|
e.$slots.default ? (s(), u("label", {
|
|
1943
1929
|
key: 0,
|
|
@@ -1947,19 +1933,19 @@ function Dt(e, t, i, o, n, l) {
|
|
|
1947
1933
|
c(e.$slots, "default", {}, () => [
|
|
1948
1934
|
S(C(i.label), 1)
|
|
1949
1935
|
])
|
|
1950
|
-
], 10,
|
|
1936
|
+
], 10, Et)) : i.label ? (s(), u("label", {
|
|
1951
1937
|
key: 1,
|
|
1952
1938
|
class: f(["w-checkbox__label w-form-el-shakable pr2", e.labelClasses]),
|
|
1953
1939
|
for: `w-checkbox--${e._.uid}`,
|
|
1954
1940
|
innerHTML: i.label
|
|
1955
|
-
}, null, 10,
|
|
1941
|
+
}, null, 10, At)) : p("", !0)
|
|
1956
1942
|
], 64)) : p("", !0),
|
|
1957
1943
|
y("div", {
|
|
1958
1944
|
class: f(["w-checkbox__input", this.color]),
|
|
1959
1945
|
onClick: t[4] || (t[4] = (a) => {
|
|
1960
1946
|
e.$refs.input.focus(), e.$refs.input.click();
|
|
1961
1947
|
})
|
|
1962
|
-
},
|
|
1948
|
+
}, Kt, 2),
|
|
1963
1949
|
l.hasLabel && !i.labelOnLeft ? (s(), u(k, { key: 1 }, [
|
|
1964
1950
|
e.$slots.default ? (s(), u("label", {
|
|
1965
1951
|
key: 0,
|
|
@@ -1969,18 +1955,18 @@ function Dt(e, t, i, o, n, l) {
|
|
|
1969
1955
|
c(e.$slots, "default", {}, () => [
|
|
1970
1956
|
S(C(i.label), 1)
|
|
1971
1957
|
])
|
|
1972
|
-
], 10,
|
|
1958
|
+
], 10, Nt)) : i.label ? (s(), u("label", {
|
|
1973
1959
|
key: 1,
|
|
1974
1960
|
class: f(["w-checkbox__label w-form-el-shakable pl2", e.labelClasses]),
|
|
1975
1961
|
for: `w-checkbox--${e._.uid}`,
|
|
1976
1962
|
innerHTML: i.label
|
|
1977
|
-
}, null, 10,
|
|
1963
|
+
}, null, 10, Dt)) : p("", !0)
|
|
1978
1964
|
], 64)) : p("", !0)
|
|
1979
1965
|
]),
|
|
1980
1966
|
_: 3
|
|
1981
1967
|
}, 16, ["valid", "class"]);
|
|
1982
1968
|
}
|
|
1983
|
-
const
|
|
1969
|
+
const Ft = {
|
|
1984
1970
|
name: "w-checkbox",
|
|
1985
1971
|
mixins: [M],
|
|
1986
1972
|
inject: {
|
|
@@ -2047,8 +2033,8 @@ const Ht = {
|
|
|
2047
2033
|
this.isChecked = e;
|
|
2048
2034
|
}
|
|
2049
2035
|
}
|
|
2050
|
-
},
|
|
2051
|
-
function
|
|
2036
|
+
}, jt = /* @__PURE__ */ v(Ft, [["render", Ht]]), Ut = ["innerHTML"];
|
|
2037
|
+
function qt(e, t, i, o, n, l) {
|
|
2052
2038
|
const a = $("w-checkbox");
|
|
2053
2039
|
return s(), g(T(e.formRegister ? "w-form-element" : "div"), B({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: l.checkboxItems.some((r) => r._isChecked), disabled: e.isDisabled }, {
|
|
2054
2040
|
valid: e.valid,
|
|
@@ -2081,7 +2067,7 @@ function Ut(e, t, i, o, n, l) {
|
|
|
2081
2067
|
}) : r.label ? (s(), u("div", {
|
|
2082
2068
|
key: 1,
|
|
2083
2069
|
innerHTML: r.label
|
|
2084
|
-
}, null, 8,
|
|
2070
|
+
}, null, 8, Ut)) : p("", !0)
|
|
2085
2071
|
]),
|
|
2086
2072
|
_: 2
|
|
2087
2073
|
}, 1040, ["model-value", "onUpdate:modelValue", "name", "disabled", "readonly", "class"]))), 128))
|
|
@@ -2089,7 +2075,7 @@ function Ut(e, t, i, o, n, l) {
|
|
|
2089
2075
|
_: 3
|
|
2090
2076
|
}, 16, ["valid", "onReset", "column", "wrap", "class"]);
|
|
2091
2077
|
}
|
|
2092
|
-
const
|
|
2078
|
+
const Xt = {
|
|
2093
2079
|
name: "w-checkboxes",
|
|
2094
2080
|
mixins: [M],
|
|
2095
2081
|
props: {
|
|
@@ -2152,9 +2138,9 @@ const qt = {
|
|
|
2152
2138
|
return this.items[e._index];
|
|
2153
2139
|
}
|
|
2154
2140
|
}
|
|
2155
|
-
},
|
|
2156
|
-
function
|
|
2157
|
-
const a = $("w-button"), r = $("w-flex"), d = $("w-menu"), h =
|
|
2141
|
+
}, Yt = /* @__PURE__ */ v(Xt, [["render", qt]]);
|
|
2142
|
+
function Gt(e, t, i, o, n, l) {
|
|
2143
|
+
const a = $("w-button"), r = $("w-flex"), d = $("w-menu"), h = be("focus");
|
|
2158
2144
|
return s(), g(d, B({
|
|
2159
2145
|
modelValue: e.showPopup,
|
|
2160
2146
|
"onUpdate:modelValue": t[2] || (t[2] = (w) => e.showPopup = w)
|
|
@@ -2218,7 +2204,7 @@ function Yt(e, t, i, o, n, l) {
|
|
|
2218
2204
|
_: 3
|
|
2219
2205
|
}, 16, ["modelValue"]);
|
|
2220
2206
|
}
|
|
2221
|
-
const
|
|
2207
|
+
const Jt = {
|
|
2222
2208
|
name: "w-confirm",
|
|
2223
2209
|
inheritAttrs: !1,
|
|
2224
2210
|
// The attrs are only bound to the button, not the w-menu.
|
|
@@ -2331,8 +2317,8 @@ const Gt = {
|
|
|
2331
2317
|
this.$emit("confirm"), this.showPopup = !1;
|
|
2332
2318
|
}
|
|
2333
2319
|
}
|
|
2334
|
-
},
|
|
2335
|
-
function
|
|
2320
|
+
}, Qt = /* @__PURE__ */ v(Jt, [["render", Gt]]);
|
|
2321
|
+
function Zt(e, t, i, o, n, l) {
|
|
2336
2322
|
return s(), u("div", {
|
|
2337
2323
|
class: f(["w-date-picker", l.classes]),
|
|
2338
2324
|
style: L(l.styles)
|
|
@@ -2340,7 +2326,7 @@ function Qt(e, t, i, o, n, l) {
|
|
|
2340
2326
|
c(e.$slots, "default")
|
|
2341
2327
|
], 6);
|
|
2342
2328
|
}
|
|
2343
|
-
const
|
|
2329
|
+
const ei = {
|
|
2344
2330
|
name: "w-date-picker",
|
|
2345
2331
|
props: {
|
|
2346
2332
|
dark: { type: Boolean },
|
|
@@ -2358,8 +2344,8 @@ const Zt = {
|
|
|
2358
2344
|
return !1;
|
|
2359
2345
|
}
|
|
2360
2346
|
}
|
|
2361
|
-
},
|
|
2362
|
-
function
|
|
2347
|
+
}, ti = /* @__PURE__ */ v(ei, [["render", Zt]]);
|
|
2348
|
+
function ii(e, t, i, o, n, l) {
|
|
2363
2349
|
const a = $("w-card"), r = $("w-overlay");
|
|
2364
2350
|
return s(), g(r, {
|
|
2365
2351
|
class: f(["w-dialog", l.classes]),
|
|
@@ -2418,7 +2404,7 @@ function ti(e, t, i, o, n, l) {
|
|
|
2418
2404
|
_: 3
|
|
2419
2405
|
}, 8, ["model-value", "persistent", "persistent-no-animation", "onClick", "onClose", "bg-color", "opacity", "class"]);
|
|
2420
2406
|
}
|
|
2421
|
-
const
|
|
2407
|
+
const li = {
|
|
2422
2408
|
name: "w-dialog",
|
|
2423
2409
|
props: {
|
|
2424
2410
|
modelValue: { default: !0 },
|
|
@@ -2488,17 +2474,17 @@ const ii = {
|
|
|
2488
2474
|
this.showWrapper = e, this.showContent = e;
|
|
2489
2475
|
}
|
|
2490
2476
|
}
|
|
2491
|
-
},
|
|
2492
|
-
function
|
|
2477
|
+
}, si = /* @__PURE__ */ v(li, [["render", ii]]), oi = ["role", "aria-orientation"];
|
|
2478
|
+
function ai(e, t, i, o, n, l) {
|
|
2493
2479
|
return s(), u("div", {
|
|
2494
2480
|
class: f(["w-divider", l.classes]),
|
|
2495
2481
|
role: e.$slots.default ? null : "presentation",
|
|
2496
2482
|
"aria-orientation": i.vertical ? "vertical" : "horizontal"
|
|
2497
2483
|
}, [
|
|
2498
2484
|
c(e.$slots, "default")
|
|
2499
|
-
], 10,
|
|
2485
|
+
], 10, oi);
|
|
2500
2486
|
}
|
|
2501
|
-
const
|
|
2487
|
+
const ni = {
|
|
2502
2488
|
name: "w-divider",
|
|
2503
2489
|
props: {
|
|
2504
2490
|
vertical: { type: Boolean },
|
|
@@ -2518,8 +2504,8 @@ const ai = {
|
|
|
2518
2504
|
};
|
|
2519
2505
|
}
|
|
2520
2506
|
}
|
|
2521
|
-
},
|
|
2522
|
-
function
|
|
2507
|
+
}, ri = /* @__PURE__ */ v(ni, [["render", ai]]), di = { class: "w-drawer-wrap__pushable" };
|
|
2508
|
+
function ui(e, t, i, o, n, l) {
|
|
2523
2509
|
const a = $("w-overlay");
|
|
2524
2510
|
return n.showWrapper || i.pushContent ? (s(), u("div", {
|
|
2525
2511
|
key: 0,
|
|
@@ -2530,7 +2516,7 @@ function di(e, t, i, o, n, l) {
|
|
|
2530
2516
|
class: "w-drawer-wrap__track",
|
|
2531
2517
|
style: L(l.trackStyles)
|
|
2532
2518
|
}, [
|
|
2533
|
-
y("div",
|
|
2519
|
+
y("div", di, [
|
|
2534
2520
|
i.noOverlay ? p("", !0) : (s(), g(a, {
|
|
2535
2521
|
key: 0,
|
|
2536
2522
|
modelValue: n.showDrawer,
|
|
@@ -2598,7 +2584,7 @@ function di(e, t, i, o, n, l) {
|
|
|
2598
2584
|
], 64))
|
|
2599
2585
|
], 2)) : p("", !0);
|
|
2600
2586
|
}
|
|
2601
|
-
const
|
|
2587
|
+
const hi = { left: "right", right: "left", top: "down", bottom: "up" }, ci = {
|
|
2602
2588
|
name: "w-drawer",
|
|
2603
2589
|
props: {
|
|
2604
2590
|
modelValue: { default: !0 },
|
|
@@ -2692,7 +2678,7 @@ const ui = { left: "right", right: "left", top: "down", bottom: "up" }, hi = {
|
|
|
2692
2678
|
return !this.showWrapper;
|
|
2693
2679
|
},
|
|
2694
2680
|
transitionName() {
|
|
2695
|
-
return `slide-${
|
|
2681
|
+
return `slide-${hi[this.position]}`;
|
|
2696
2682
|
}
|
|
2697
2683
|
},
|
|
2698
2684
|
methods: {
|
|
@@ -2711,8 +2697,8 @@ const ui = { left: "right", right: "left", top: "down", bottom: "up" }, hi = {
|
|
|
2711
2697
|
e && (this.showWrapper = !0), this.showDrawer = e;
|
|
2712
2698
|
}
|
|
2713
2699
|
}
|
|
2714
|
-
},
|
|
2715
|
-
function
|
|
2700
|
+
}, pi = /* @__PURE__ */ v(ci, [["render", ui]]);
|
|
2701
|
+
function fi(e, t, i, o, n, l) {
|
|
2716
2702
|
return s(), g(T(i.tag), {
|
|
2717
2703
|
class: f(["w-flex", l.classes])
|
|
2718
2704
|
}, {
|
|
@@ -2722,7 +2708,7 @@ function pi(e, t, i, o, n, l) {
|
|
|
2722
2708
|
_: 3
|
|
2723
2709
|
}, 8, ["class"]);
|
|
2724
2710
|
}
|
|
2725
|
-
const
|
|
2711
|
+
const mi = {
|
|
2726
2712
|
name: "w-flex",
|
|
2727
2713
|
props: {
|
|
2728
2714
|
tag: { type: String, default: "div" },
|
|
@@ -2769,8 +2755,8 @@ const fi = {
|
|
|
2769
2755
|
};
|
|
2770
2756
|
}
|
|
2771
2757
|
}
|
|
2772
|
-
},
|
|
2773
|
-
function
|
|
2758
|
+
}, gi = /* @__PURE__ */ v(mi, [["render", fi]]);
|
|
2759
|
+
function bi(e, t, i, o, n, l) {
|
|
2774
2760
|
return s(), u("form", {
|
|
2775
2761
|
class: f(["w-form", l.classes]),
|
|
2776
2762
|
onSubmit: t[0] || (t[0] = (...a) => l.onSubmit && l.onSubmit(...a)),
|
|
@@ -2780,12 +2766,11 @@ function gi(e, t, i, o, n, l) {
|
|
|
2780
2766
|
c(e.$slots, "default")
|
|
2781
2767
|
], 34);
|
|
2782
2768
|
}
|
|
2783
|
-
const
|
|
2769
|
+
const yi = async (e, t) => {
|
|
2784
2770
|
for (const i of e)
|
|
2785
|
-
if (await t(i))
|
|
2786
|
-
return !0;
|
|
2771
|
+
if (await t(i)) return !0;
|
|
2787
2772
|
return !1;
|
|
2788
|
-
},
|
|
2773
|
+
}, wi = {
|
|
2789
2774
|
name: "w-form",
|
|
2790
2775
|
props: {
|
|
2791
2776
|
modelValue: {},
|
|
@@ -2865,7 +2850,7 @@ const bi = async (e, t) => {
|
|
|
2865
2850
|
// message in the form element.
|
|
2866
2851
|
async checkElementValidators(e) {
|
|
2867
2852
|
let t = !1, i = "";
|
|
2868
|
-
await
|
|
2853
|
+
await yi(e.validators, async (o) => {
|
|
2869
2854
|
const n = await (typeof o == "function" && o(e.inputValue));
|
|
2870
2855
|
return t = typeof n != "string", i = t ? "" : n, !t;
|
|
2871
2856
|
}), e.hasJustReset = !1, e.Validation.isValid = t, e.Validation.message = i;
|
|
@@ -2891,8 +2876,8 @@ const bi = async (e, t) => {
|
|
|
2891
2876
|
(this.status === !1 && e || e === null && this.status !== null) && this.reset(), this.status = e;
|
|
2892
2877
|
}
|
|
2893
2878
|
}
|
|
2894
|
-
},
|
|
2895
|
-
function
|
|
2879
|
+
}, ki = /* @__PURE__ */ v(wi, [["render", bi]]);
|
|
2880
|
+
function vi(e, t, i, o, n, l) {
|
|
2896
2881
|
const a = $("w-transition-expand");
|
|
2897
2882
|
return s(), u("div", {
|
|
2898
2883
|
class: f(l.classes)
|
|
@@ -2919,7 +2904,7 @@ function ki(e, t, i, o, n, l) {
|
|
|
2919
2904
|
})
|
|
2920
2905
|
], 2);
|
|
2921
2906
|
}
|
|
2922
|
-
const
|
|
2907
|
+
const Ci = {
|
|
2923
2908
|
name: "w-form-element",
|
|
2924
2909
|
props: {
|
|
2925
2910
|
valid: { required: !0 },
|
|
@@ -2979,8 +2964,7 @@ const vi = {
|
|
|
2979
2964
|
},
|
|
2980
2965
|
watch: {
|
|
2981
2966
|
async inputValue() {
|
|
2982
|
-
if (this.hasJustReset)
|
|
2983
|
-
return this.hasJustReset = !1;
|
|
2967
|
+
if (this.hasJustReset) return this.hasJustReset = !1;
|
|
2984
2968
|
!this.formProps.noKeyupValidation && this.validators && this.$emit("update:valid", await this.validateElement(this));
|
|
2985
2969
|
},
|
|
2986
2970
|
async isFocused(e) {
|
|
@@ -2993,8 +2977,8 @@ const vi = {
|
|
|
2993
2977
|
beforeUnmount() {
|
|
2994
2978
|
this.formUnregister && this.formUnregister(this);
|
|
2995
2979
|
}
|
|
2996
|
-
},
|
|
2997
|
-
function
|
|
2980
|
+
}, Si = /* @__PURE__ */ v(Ci, [["render", vi]]);
|
|
2981
|
+
function Bi(e, t, i, o, n, l) {
|
|
2998
2982
|
return s(), g(T(i.tag), {
|
|
2999
2983
|
class: f(["w-grid", l.classes])
|
|
3000
2984
|
}, {
|
|
@@ -3004,7 +2988,7 @@ function Si(e, t, i, o, n, l) {
|
|
|
3004
2988
|
_: 3
|
|
3005
2989
|
}, 8, ["class"]);
|
|
3006
2990
|
}
|
|
3007
|
-
const
|
|
2991
|
+
const _i = {
|
|
3008
2992
|
name: "w-grid",
|
|
3009
2993
|
props: {
|
|
3010
2994
|
tag: { type: String, default: "div" },
|
|
@@ -3048,8 +3032,8 @@ const Bi = {
|
|
|
3048
3032
|
};
|
|
3049
3033
|
}
|
|
3050
3034
|
}
|
|
3051
|
-
},
|
|
3052
|
-
function
|
|
3035
|
+
}, $i = /* @__PURE__ */ v(_i, [["render", Bi]]);
|
|
3036
|
+
function Vi(e, t, i, o, n, l) {
|
|
3053
3037
|
return s(), g(T(i.tag || "i"), {
|
|
3054
3038
|
class: f(["w-icon", l.classes]),
|
|
3055
3039
|
role: "icon",
|
|
@@ -3064,7 +3048,7 @@ function $i(e, t, i, o, n, l) {
|
|
|
3064
3048
|
_: 1
|
|
3065
3049
|
}, 8, ["class", "style"]);
|
|
3066
3050
|
}
|
|
3067
|
-
const
|
|
3051
|
+
const Ii = {
|
|
3068
3052
|
name: "w-icon",
|
|
3069
3053
|
props: {
|
|
3070
3054
|
tag: { type: String, default: "i" },
|
|
@@ -3133,11 +3117,11 @@ const Vi = {
|
|
|
3133
3117
|
return this.fontName = t, this.icon = i, !0;
|
|
3134
3118
|
}
|
|
3135
3119
|
}
|
|
3136
|
-
},
|
|
3120
|
+
}, Ti = /* @__PURE__ */ v(Ii, [["render", Vi]]), Li = {
|
|
3137
3121
|
key: 0,
|
|
3138
3122
|
class: "w-image__loader"
|
|
3139
3123
|
};
|
|
3140
|
-
function
|
|
3124
|
+
function Ri(e, t, i, o, n, l) {
|
|
3141
3125
|
const a = $("w-progress");
|
|
3142
3126
|
return s(), g(T(l.wrapperTag), {
|
|
3143
3127
|
class: f(["w-image-wrap", l.wrapperClasses]),
|
|
@@ -3158,7 +3142,7 @@ function Li(e, t, i, o, n, l) {
|
|
|
3158
3142
|
]),
|
|
3159
3143
|
_: 1
|
|
3160
3144
|
}, 8, ["name"]),
|
|
3161
|
-
!i.noSpinner && n.loading ? (s(), u("div",
|
|
3145
|
+
!i.noSpinner && n.loading ? (s(), u("div", Li, [
|
|
3162
3146
|
e.$slots.loading ? c(e.$slots, "loading", { key: 0 }) : (s(), g(a, B({
|
|
3163
3147
|
key: 1,
|
|
3164
3148
|
circle: "",
|
|
@@ -3178,7 +3162,7 @@ function Li(e, t, i, o, n, l) {
|
|
|
3178
3162
|
_: 3
|
|
3179
3163
|
}, 8, ["class", "style"]);
|
|
3180
3164
|
}
|
|
3181
|
-
const
|
|
3165
|
+
const Pi = {
|
|
3182
3166
|
name: "w-image",
|
|
3183
3167
|
props: {
|
|
3184
3168
|
tag: { type: String, default: "span" },
|
|
@@ -3253,15 +3237,13 @@ const Ri = {
|
|
|
3253
3237
|
}
|
|
3254
3238
|
},
|
|
3255
3239
|
mounted() {
|
|
3256
|
-
if (!this.src)
|
|
3257
|
-
return F("The w-image component was used without src.");
|
|
3240
|
+
if (!this.src) return F("The w-image component was used without src.");
|
|
3258
3241
|
if (this.lazy) {
|
|
3259
3242
|
const e = new IntersectionObserver((t) => {
|
|
3260
3243
|
t[0] && t[0].isIntersecting && (this.loadImage(), e.disconnect());
|
|
3261
3244
|
}, this.intersectionConfig);
|
|
3262
3245
|
e.observe(this.$el);
|
|
3263
|
-
} else
|
|
3264
|
-
this.loadImage();
|
|
3246
|
+
} else this.loadImage();
|
|
3265
3247
|
},
|
|
3266
3248
|
watch: {
|
|
3267
3249
|
src() {
|
|
@@ -3274,11 +3256,11 @@ const Ri = {
|
|
|
3274
3256
|
this.imgHeight = e;
|
|
3275
3257
|
}
|
|
3276
3258
|
}
|
|
3277
|
-
},
|
|
3259
|
+
}, Oi = /* @__PURE__ */ v(Pi, [["render", Ri]]), xi = ["name"], zi = ["for"], Mi = ["id", "type", "name", "placeholder", "step", "min", "max", "minlength", "maxlength", "readonly", "aria-readonly", "disabled", "required", "tabindex"], Ei = ["id", "name", "multiple", "disabled", "data-progress"], Ai = {
|
|
3278
3260
|
class: "w-input__no-file",
|
|
3279
3261
|
key: "no-file"
|
|
3280
|
-
},
|
|
3281
|
-
function
|
|
3262
|
+
}, Wi = ["for"], Ki = ["src"], Ni = ["for"];
|
|
3263
|
+
function Di(e, t, i, o, n, l) {
|
|
3282
3264
|
const a = $("w-icon"), r = $("w-progress");
|
|
3283
3265
|
return s(), g(T(e.formRegister ? "w-form-element" : "div"), B({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: n.inputValue, disabled: e.isDisabled, readonly: e.isReadonly, isFocused: n.isFocused }, {
|
|
3284
3266
|
valid: e.valid,
|
|
@@ -3296,8 +3278,8 @@ function Ni(e, t, i, o, n, l) {
|
|
|
3296
3278
|
type: "hidden",
|
|
3297
3279
|
name: e.name || null,
|
|
3298
3280
|
"onUpdate:modelValue": t[0] || (t[0] = (d) => n.inputValue = d)
|
|
3299
|
-
}, null, 8,
|
|
3300
|
-
[
|
|
3281
|
+
}, null, 8, xi)), [
|
|
3282
|
+
[ye, n.inputValue]
|
|
3301
3283
|
]) : (s(), u(k, { key: 1 }, [
|
|
3302
3284
|
i.labelPosition === "left" ? (s(), u(k, { key: 0 }, [
|
|
3303
3285
|
e.$slots.default || i.label ? (s(), u("label", {
|
|
@@ -3308,7 +3290,7 @@ function Ni(e, t, i, o, n, l) {
|
|
|
3308
3290
|
c(e.$slots, "default", {}, () => [
|
|
3309
3291
|
S(C(i.label), 1)
|
|
3310
3292
|
])
|
|
3311
|
-
], 10,
|
|
3293
|
+
], 10, zi)) : p("", !0)
|
|
3312
3294
|
], 64)) : p("", !0),
|
|
3313
3295
|
y("div", {
|
|
3314
3296
|
class: f(["w-input__input-wrap", l.inputWrapClasses])
|
|
@@ -3351,8 +3333,8 @@ function Ni(e, t, i, o, n, l) {
|
|
|
3351
3333
|
disabled: e.isDisabled || null,
|
|
3352
3334
|
required: e.required || null,
|
|
3353
3335
|
tabindex: e.tabindex || null
|
|
3354
|
-
}, l.attrs), null, 16,
|
|
3355
|
-
[
|
|
3336
|
+
}, l.attrs), null, 16, Mi)), [
|
|
3337
|
+
[Ve, n.inputValue]
|
|
3356
3338
|
]) : (s(), u(k, { key: 1 }, [
|
|
3357
3339
|
y("input", B({
|
|
3358
3340
|
ref: "input",
|
|
@@ -3367,7 +3349,7 @@ function Ni(e, t, i, o, n, l) {
|
|
|
3367
3349
|
disabled: e.isDisabled || null,
|
|
3368
3350
|
"data-progress": l.overallFilesProgress
|
|
3369
3351
|
/* Needed to emit the overallProgress. */
|
|
3370
|
-
}), null, 16,
|
|
3352
|
+
}), null, 16, Ei),
|
|
3371
3353
|
I(se, {
|
|
3372
3354
|
class: "w-input__input w-input__input--file",
|
|
3373
3355
|
tag: "label",
|
|
@@ -3375,7 +3357,7 @@ function Ni(e, t, i, o, n, l) {
|
|
|
3375
3357
|
for: `w-input--${e._.uid}`
|
|
3376
3358
|
}, {
|
|
3377
3359
|
default: m(() => [
|
|
3378
|
-
!n.inputFiles.length && n.isFocused ? (s(), u("span",
|
|
3360
|
+
!n.inputFiles.length && n.isFocused ? (s(), u("span", Ai, [
|
|
3379
3361
|
c(e.$slots, "no-file", {}, () => [
|
|
3380
3362
|
e.$slots["no-file"] === void 0 ? (s(), u(k, { key: 0 }, [
|
|
3381
3363
|
S("No file")
|
|
@@ -3444,12 +3426,12 @@ function Ni(e, t, i, o, n, l) {
|
|
|
3444
3426
|
key: `${h}b`,
|
|
3445
3427
|
src: d.preview,
|
|
3446
3428
|
alt: ""
|
|
3447
|
-
}, null, 8,
|
|
3429
|
+
}, null, 8, Ki)) : (s(), u("i", {
|
|
3448
3430
|
class: f(["w-icon w-input__file-preview primary size--md", i.preview && typeof i.preview == "string" ? i.preview : "wi-file"]),
|
|
3449
3431
|
key: `${h}c`
|
|
3450
3432
|
}, null, 2))
|
|
3451
3433
|
], 64))), 256))
|
|
3452
|
-
], 8,
|
|
3434
|
+
], 8, Wi)) : p("", !0),
|
|
3453
3435
|
i.labelPosition === "right" ? (s(), u(k, { key: 2 }, [
|
|
3454
3436
|
e.$slots.default || i.label ? (s(), u("label", {
|
|
3455
3437
|
key: 0,
|
|
@@ -3459,14 +3441,14 @@ function Ni(e, t, i, o, n, l) {
|
|
|
3459
3441
|
c(e.$slots, "default", {}, () => [
|
|
3460
3442
|
S(C(i.label), 1)
|
|
3461
3443
|
])
|
|
3462
|
-
], 10,
|
|
3444
|
+
], 10, Ni)) : p("", !0)
|
|
3463
3445
|
], 64)) : p("", !0)
|
|
3464
3446
|
], 64))
|
|
3465
3447
|
]),
|
|
3466
3448
|
_: 3
|
|
3467
3449
|
}, 16, ["valid", "wrap", "class", "style"]);
|
|
3468
3450
|
}
|
|
3469
|
-
const
|
|
3451
|
+
const Hi = {
|
|
3470
3452
|
name: "w-input",
|
|
3471
3453
|
mixins: [M],
|
|
3472
3454
|
inheritAttrs: !1,
|
|
@@ -3651,8 +3633,8 @@ const Di = {
|
|
|
3651
3633
|
this.inputValue = e, !e && e !== 0 && (this.isAutofilled = !1, this.inputFiles = []);
|
|
3652
3634
|
}
|
|
3653
3635
|
}
|
|
3654
|
-
},
|
|
3655
|
-
function
|
|
3636
|
+
}, Fi = /* @__PURE__ */ v(Hi, [["render", Di]]);
|
|
3637
|
+
function ji(e, t, i, o, n, l) {
|
|
3656
3638
|
const a = $("w-icon"), r = $("w-list", !0);
|
|
3657
3639
|
return s(), u("ul", {
|
|
3658
3640
|
class: f(["w-list", l.classes])
|
|
@@ -3739,7 +3721,7 @@ function Fi(e, t, i, o, n, l) {
|
|
|
3739
3721
|
], 2))), 128))
|
|
3740
3722
|
], 2);
|
|
3741
3723
|
}
|
|
3742
|
-
const
|
|
3724
|
+
const Ui = {
|
|
3743
3725
|
name: "w-list",
|
|
3744
3726
|
props: {
|
|
3745
3727
|
items: { type: [Array, Number], required: !0 },
|
|
@@ -3878,8 +3860,7 @@ const ji = {
|
|
|
3878
3860
|
// Emit the cleaned-up selection to the v-model.
|
|
3879
3861
|
emitSelection() {
|
|
3880
3862
|
const e = this.selectedItems.map((i) => {
|
|
3881
|
-
if (!this.returnObject)
|
|
3882
|
-
return i._value;
|
|
3863
|
+
if (!this.returnObject) return i._value;
|
|
3883
3864
|
const { _value: o, _selected: n, ...l } = i;
|
|
3884
3865
|
return l;
|
|
3885
3866
|
}), t = this.isMultipleSelect ? e : e[0] !== void 0 ? e[0] : null;
|
|
@@ -3934,7 +3915,7 @@ const ji = {
|
|
|
3934
3915
|
}
|
|
3935
3916
|
}
|
|
3936
3917
|
}
|
|
3937
|
-
},
|
|
3918
|
+
}, qi = /* @__PURE__ */ v(Ui, [["render", ji]]), ke = {
|
|
3938
3919
|
props: {
|
|
3939
3920
|
// Position.
|
|
3940
3921
|
appendTo: { type: [String, Boolean, Object] },
|
|
@@ -3984,8 +3965,7 @@ const ji = {
|
|
|
3984
3965
|
},
|
|
3985
3966
|
hasSeparateActivator() {
|
|
3986
3967
|
var i;
|
|
3987
|
-
if (this.$slots.activator)
|
|
3988
|
-
return !1;
|
|
3968
|
+
if (this.$slots.activator) return !1;
|
|
3989
3969
|
const e = typeof this.activator == "string", t = (((i = this.activator) == null ? void 0 : i.$el) || this.activator) instanceof HTMLElement;
|
|
3990
3970
|
return e || t;
|
|
3991
3971
|
},
|
|
@@ -4035,8 +4015,7 @@ const ji = {
|
|
|
4035
4015
|
// ! \ This function uses the DOM - NO SSR (only trigger from beforeMount and later).
|
|
4036
4016
|
computeDetachableCoords() {
|
|
4037
4017
|
let { top: e, left: t, width: i, height: o } = this.getActivatorCoordinates();
|
|
4038
|
-
if (!this.detachableEl)
|
|
4039
|
-
return;
|
|
4018
|
+
if (!this.detachableEl) return;
|
|
4040
4019
|
this.detachableEl.style.visibility = "hidden", this.detachableEl.style.display = "flex";
|
|
4041
4020
|
const n = window.getComputedStyle(this.detachableEl, null);
|
|
4042
4021
|
switch (this.position) {
|
|
@@ -4113,7 +4092,7 @@ const ji = {
|
|
|
4113
4092
|
}
|
|
4114
4093
|
}
|
|
4115
4094
|
};
|
|
4116
|
-
function
|
|
4095
|
+
function Xi(e, t, i, o, n, l) {
|
|
4117
4096
|
const a = $("w-card"), r = $("w-overlay");
|
|
4118
4097
|
return s(), u(k, null, [
|
|
4119
4098
|
c(e.$slots, "activator", { on: l.activatorEventHandlers }),
|
|
@@ -4185,9 +4164,9 @@ function qi(e, t, i, o, n, l) {
|
|
|
4185
4164
|
}), null, 16, ["model-value", "persistent", "class", "z-index"])) : p("", !0)
|
|
4186
4165
|
], 64);
|
|
4187
4166
|
}
|
|
4188
|
-
const
|
|
4167
|
+
const Yi = {
|
|
4189
4168
|
name: "w-menu",
|
|
4190
|
-
mixins: [
|
|
4169
|
+
mixins: [ke],
|
|
4191
4170
|
inheritAttrs: !1,
|
|
4192
4171
|
// The attrs are only bound to the button-partial, not the root.
|
|
4193
4172
|
props: {
|
|
@@ -4358,8 +4337,8 @@ const Xi = {
|
|
|
4358
4337
|
}
|
|
4359
4338
|
}
|
|
4360
4339
|
// watch, mounted & beforeDestroy hooks are set in the detachable.js mixin.
|
|
4361
|
-
},
|
|
4362
|
-
function
|
|
4340
|
+
}, Gi = /* @__PURE__ */ v(Yi, [["render", Xi]]);
|
|
4341
|
+
function Ji(e, t, i, o, n, l) {
|
|
4363
4342
|
const a = $("w-alert");
|
|
4364
4343
|
return s(), g(O, {
|
|
4365
4344
|
name: l.transitionName,
|
|
@@ -4387,7 +4366,7 @@ function Gi(e, t, i, o, n, l) {
|
|
|
4387
4366
|
_: 3
|
|
4388
4367
|
}, 8, ["name"]);
|
|
4389
4368
|
}
|
|
4390
|
-
const
|
|
4369
|
+
const Qi = {
|
|
4391
4370
|
name: "w-notification",
|
|
4392
4371
|
props: {
|
|
4393
4372
|
// Notification props.
|
|
@@ -4510,9 +4489,9 @@ const Ji = {
|
|
|
4510
4489
|
clearTimeout(this.timeoutId), this.show = e, e && this.timeoutVal && this.countdown();
|
|
4511
4490
|
}
|
|
4512
4491
|
}
|
|
4513
|
-
},
|
|
4514
|
-
function
|
|
4515
|
-
const a =
|
|
4492
|
+
}, Zi = /* @__PURE__ */ v(Qi, [["render", Ji]]);
|
|
4493
|
+
function el(e, t, i, o, n, l) {
|
|
4494
|
+
const a = be("focus");
|
|
4516
4495
|
return s(), g(O, {
|
|
4517
4496
|
name: "fade",
|
|
4518
4497
|
appear: "",
|
|
@@ -4537,7 +4516,7 @@ function Zi(e, t, i, o, n, l) {
|
|
|
4537
4516
|
_: 3
|
|
4538
4517
|
}, 8, ["onAfterLeave"]);
|
|
4539
4518
|
}
|
|
4540
|
-
const
|
|
4519
|
+
const tl = {
|
|
4541
4520
|
name: "w-overlay",
|
|
4542
4521
|
props: {
|
|
4543
4522
|
modelValue: {},
|
|
@@ -4595,17 +4574,17 @@ const el = {
|
|
|
4595
4574
|
e && (this.showOverlay = !0);
|
|
4596
4575
|
}
|
|
4597
4576
|
}
|
|
4598
|
-
},
|
|
4599
|
-
function
|
|
4600
|
-
return s(), u("div",
|
|
4577
|
+
}, il = /* @__PURE__ */ v(tl, [["render", el]]), ll = { class: "w-parallax" };
|
|
4578
|
+
function sl(e, t, i, o, n, l) {
|
|
4579
|
+
return s(), u("div", ll);
|
|
4601
4580
|
}
|
|
4602
|
-
const
|
|
4581
|
+
const ol = {
|
|
4603
4582
|
name: "w-parallax",
|
|
4604
4583
|
props: {},
|
|
4605
4584
|
emits: [],
|
|
4606
4585
|
data: () => ({})
|
|
4607
|
-
},
|
|
4608
|
-
function
|
|
4586
|
+
}, al = /* @__PURE__ */ v(ol, [["render", sl]]), nl = ["viewBox"], rl = ["cx", "cy", "r", "stroke-dasharray", "stroke-width"], dl = ["cx", "cy", "r", "stroke-width", "stroke-linecap", "stroke-dasharray"];
|
|
4587
|
+
function ul(e, t, i, o, n, l) {
|
|
4609
4588
|
return s(), u("div", {
|
|
4610
4589
|
class: f(["w-progress", l.classes]),
|
|
4611
4590
|
style: L(l.styles)
|
|
@@ -4623,7 +4602,7 @@ function dl(e, t, i, o, n, l) {
|
|
|
4623
4602
|
fill: "transparent",
|
|
4624
4603
|
"stroke-dasharray": e.circleCircumference,
|
|
4625
4604
|
"stroke-width": i.stroke
|
|
4626
|
-
}, null, 10,
|
|
4605
|
+
}, null, 10, rl)) : p("", !0),
|
|
4627
4606
|
y("circle", {
|
|
4628
4607
|
class: "w-progress__progress",
|
|
4629
4608
|
cx: l.circleCenter,
|
|
@@ -4634,8 +4613,8 @@ function dl(e, t, i, o, n, l) {
|
|
|
4634
4613
|
"stroke-linecap": i.roundCap && "round",
|
|
4635
4614
|
"stroke-dasharray": e.circleCircumference,
|
|
4636
4615
|
style: L(`stroke-dashoffset: ${(1 - l.progressValue / 100) * e.circleCircumference}`)
|
|
4637
|
-
}, null, 12,
|
|
4638
|
-
], 8,
|
|
4616
|
+
}, null, 12, dl)
|
|
4617
|
+
], 8, nl)) : (s(), u("div", {
|
|
4639
4618
|
key: 0,
|
|
4640
4619
|
class: f(["w-progress__progress", { full: l.progressValue === 100 }]),
|
|
4641
4620
|
style: L(`width: ${l.progressValue}%`)
|
|
@@ -4650,7 +4629,7 @@ function dl(e, t, i, o, n, l) {
|
|
|
4650
4629
|
], 2)) : p("", !0)
|
|
4651
4630
|
], 6);
|
|
4652
4631
|
}
|
|
4653
|
-
const Y = 40,
|
|
4632
|
+
const Y = 40, hl = Y / 2, cl = Math.round(Y * 3.14 * 100) / 100, pl = {
|
|
4654
4633
|
name: "w-progress",
|
|
4655
4634
|
props: {
|
|
4656
4635
|
modelValue: { type: [Number, String, Boolean], default: -1 },
|
|
@@ -4678,8 +4657,8 @@ const Y = 40, ul = Y / 2, hl = Math.round(Y * 3.14 * 100) / 100, cl = {
|
|
|
4678
4657
|
emits: [],
|
|
4679
4658
|
data: () => ({
|
|
4680
4659
|
circleSize: Y,
|
|
4681
|
-
circleRadius:
|
|
4682
|
-
circleCircumference:
|
|
4660
|
+
circleRadius: hl,
|
|
4661
|
+
circleCircumference: cl
|
|
4683
4662
|
}),
|
|
4684
4663
|
computed: {
|
|
4685
4664
|
progressValue() {
|
|
@@ -4719,8 +4698,8 @@ const Y = 40, ul = Y / 2, hl = Math.round(Y * 3.14 * 100) / 100, cl = {
|
|
|
4719
4698
|
};
|
|
4720
4699
|
}
|
|
4721
4700
|
}
|
|
4722
|
-
},
|
|
4723
|
-
function
|
|
4701
|
+
}, fl = /* @__PURE__ */ v(pl, [["render", ul]]), ml = ["id", "name", "checked", "disabled", "required", "tabindex", "aria-checked"], gl = ["for"], bl = ["for", "innerHTML"], yl = ["for"], wl = ["for", "innerHTML"];
|
|
4702
|
+
function kl(e, t, i, o, n, l) {
|
|
4724
4703
|
return s(), g(T(e.formRegister && !l.wRadios ? "w-form-element" : "div"), B({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: e.inputValue, disabled: e.isDisabled, readonly: e.isReadonly }, {
|
|
4725
4704
|
valid: e.valid,
|
|
4726
4705
|
"onUpdate:valid": t[3] || (t[3] = (a) => e.valid = a),
|
|
@@ -4743,7 +4722,7 @@ function wl(e, t, i, o, n, l) {
|
|
|
4743
4722
|
onChange: t[1] || (t[1] = (a) => l.onInput(a)),
|
|
4744
4723
|
"aria-checked": e.inputValue || "false",
|
|
4745
4724
|
role: "radio"
|
|
4746
|
-
}, null, 40,
|
|
4725
|
+
}, null, 40, ml),
|
|
4747
4726
|
l.hasLabel && i.labelOnLeft ? (s(), u(k, { key: 0 }, [
|
|
4748
4727
|
e.$slots.default ? (s(), u("label", {
|
|
4749
4728
|
key: 0,
|
|
@@ -4753,12 +4732,12 @@ function wl(e, t, i, o, n, l) {
|
|
|
4753
4732
|
c(e.$slots, "default", {}, () => [
|
|
4754
4733
|
S(C(i.label), 1)
|
|
4755
4734
|
])
|
|
4756
|
-
], 10,
|
|
4735
|
+
], 10, gl)) : i.label ? (s(), u("label", {
|
|
4757
4736
|
key: 1,
|
|
4758
4737
|
class: f(["w-radio__label w-form-el-shakable pr2", e.labelClasses]),
|
|
4759
4738
|
for: `w-radio--${e._.uid}`,
|
|
4760
4739
|
innerHTML: i.label
|
|
4761
|
-
}, null, 10,
|
|
4740
|
+
}, null, 10, bl)) : p("", !0)
|
|
4762
4741
|
], 64)) : p("", !0),
|
|
4763
4742
|
y("div", {
|
|
4764
4743
|
class: f(["w-radio__input", this.color]),
|
|
@@ -4775,18 +4754,18 @@ function wl(e, t, i, o, n, l) {
|
|
|
4775
4754
|
c(e.$slots, "default", {}, () => [
|
|
4776
4755
|
S(C(i.label), 1)
|
|
4777
4756
|
])
|
|
4778
|
-
], 10,
|
|
4757
|
+
], 10, yl)) : i.label ? (s(), u("label", {
|
|
4779
4758
|
key: 1,
|
|
4780
4759
|
class: f(["w-radio__label w-form-el-shakable pl2", e.labelClasses]),
|
|
4781
4760
|
for: `w-radio--${e._.uid}`,
|
|
4782
4761
|
innerHTML: i.label
|
|
4783
|
-
}, null, 10,
|
|
4762
|
+
}, null, 10, wl)) : p("", !0)
|
|
4784
4763
|
], 64)) : p("", !0)
|
|
4785
4764
|
]),
|
|
4786
4765
|
_: 3
|
|
4787
4766
|
}, 16, ["valid", "class"]);
|
|
4788
4767
|
}
|
|
4789
|
-
const
|
|
4768
|
+
const vl = {
|
|
4790
4769
|
name: "w-radio",
|
|
4791
4770
|
mixins: [M],
|
|
4792
4771
|
inject: { wRadios: { default: null } },
|
|
@@ -4851,8 +4830,8 @@ const kl = {
|
|
|
4851
4830
|
this.toggleFromOutside();
|
|
4852
4831
|
}
|
|
4853
4832
|
}
|
|
4854
|
-
},
|
|
4855
|
-
function
|
|
4833
|
+
}, Cl = /* @__PURE__ */ v(vl, [["render", kl]]), Sl = ["innerHTML"];
|
|
4834
|
+
function Bl(e, t, i, o, n, l) {
|
|
4856
4835
|
const a = $("w-radio");
|
|
4857
4836
|
return s(), g(T(e.formRegister ? "w-form-element" : "div"), B({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: e.inputValue, disabled: e.isDisabled }, {
|
|
4858
4837
|
valid: e.valid,
|
|
@@ -4887,7 +4866,7 @@ function Sl(e, t, i, o, n, l) {
|
|
|
4887
4866
|
}) : r.label ? (s(), u("div", {
|
|
4888
4867
|
key: 1,
|
|
4889
4868
|
innerHTML: r.label
|
|
4890
|
-
}, null, 8,
|
|
4869
|
+
}, null, 8, Sl)) : p("", !0)
|
|
4891
4870
|
]),
|
|
4892
4871
|
_: 2
|
|
4893
4872
|
}, 1040, ["model-value", "onUpdate:modelValue", "name", "disabled", "readonly", "class"]))), 128))
|
|
@@ -4895,7 +4874,7 @@ function Sl(e, t, i, o, n, l) {
|
|
|
4895
4874
|
_: 3
|
|
4896
4875
|
}, 16, ["valid", "column", "wrap", "class"]);
|
|
4897
4876
|
}
|
|
4898
|
-
const
|
|
4877
|
+
const _l = {
|
|
4899
4878
|
name: "w-radios",
|
|
4900
4879
|
mixins: [M],
|
|
4901
4880
|
props: {
|
|
@@ -4948,8 +4927,8 @@ const Bl = {
|
|
|
4948
4927
|
return this.items[e._index];
|
|
4949
4928
|
}
|
|
4950
4929
|
}
|
|
4951
|
-
},
|
|
4952
|
-
function
|
|
4930
|
+
}, $l = /* @__PURE__ */ v(_l, [["render", Bl]]), Vl = ["id", "name", "value"], Il = ["disabled", "onMouseenter", "onClick", "tabindex"];
|
|
4931
|
+
function Tl(e, t, i, o, n, l) {
|
|
4953
4932
|
return s(), g(T(e.formRegister ? "w-form-element" : "div"), B({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: n.rating, disabled: e.isDisabled, readonly: e.isReadonly }, {
|
|
4954
4933
|
valid: e.valid,
|
|
4955
4934
|
"onUpdate:valid": t[4] || (t[4] = (a) => e.valid = a),
|
|
@@ -4964,7 +4943,7 @@ function Il(e, t, i, o, n, l) {
|
|
|
4964
4943
|
name: e.inputName,
|
|
4965
4944
|
type: "hidden",
|
|
4966
4945
|
value: n.rating
|
|
4967
|
-
}, null, 8,
|
|
4946
|
+
}, null, 8, Vl),
|
|
4968
4947
|
(s(!0), u(k, null, R(i.max, (a) => (s(), u(k, { key: a }, [
|
|
4969
4948
|
e.$slots.item ? c(e.$slots, "item", {
|
|
4970
4949
|
key: 0,
|
|
@@ -4989,13 +4968,13 @@ function Il(e, t, i, o, n, l) {
|
|
|
4989
4968
|
"aria-hidden": "true",
|
|
4990
4969
|
style: L(l.halfStarStyle)
|
|
4991
4970
|
}, null, 6)) : p("", !0)
|
|
4992
|
-
], 42,
|
|
4971
|
+
], 42, Il)
|
|
4993
4972
|
], 64))), 128))
|
|
4994
4973
|
]),
|
|
4995
4974
|
_: 3
|
|
4996
4975
|
}, 16, ["valid", "class"]);
|
|
4997
4976
|
}
|
|
4998
|
-
const
|
|
4977
|
+
const Ll = {
|
|
4999
4978
|
name: "w-rating",
|
|
5000
4979
|
mixins: [M],
|
|
5001
4980
|
props: {
|
|
@@ -5089,8 +5068,8 @@ const Tl = {
|
|
|
5089
5068
|
this.rating = parseFloat(e);
|
|
5090
5069
|
}
|
|
5091
5070
|
}
|
|
5092
|
-
},
|
|
5093
|
-
function
|
|
5071
|
+
}, Rl = /* @__PURE__ */ v(Ll, [["render", Tl]]);
|
|
5072
|
+
function Pl(e, t, i, o, n, l) {
|
|
5094
5073
|
return s(), u(k, null, [
|
|
5095
5074
|
y("div", B({
|
|
5096
5075
|
class: ["w-scrollable", l.scrollableClasses],
|
|
@@ -5114,7 +5093,7 @@ function Rl(e, t, i, o, n, l) {
|
|
|
5114
5093
|
], 34)
|
|
5115
5094
|
], 64);
|
|
5116
5095
|
}
|
|
5117
|
-
const
|
|
5096
|
+
const Ol = {
|
|
5118
5097
|
h: {
|
|
5119
5098
|
direction: "horizontal",
|
|
5120
5099
|
topOrLeft: "left",
|
|
@@ -5137,7 +5116,7 @@ const Pl = {
|
|
|
5137
5116
|
deltaXorY: "deltaY",
|
|
5138
5117
|
scrollTopOrLeft: "scrollTop"
|
|
5139
5118
|
}
|
|
5140
|
-
},
|
|
5119
|
+
}, xl = {
|
|
5141
5120
|
name: "w-scrollable",
|
|
5142
5121
|
props: {
|
|
5143
5122
|
color: { type: String, default: "primary" },
|
|
@@ -5161,7 +5140,7 @@ const Pl = {
|
|
|
5161
5140
|
return this.mounted ? (console.log("💂♂️", (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) > ((o = this.$refs.scrollable) == null ? void 0 : o.offsetWidth)) : !1;
|
|
5162
5141
|
},
|
|
5163
5142
|
m() {
|
|
5164
|
-
return
|
|
5143
|
+
return Ol[this.isHorizontal ? "h" : "v"];
|
|
5165
5144
|
},
|
|
5166
5145
|
scrollableClasses() {
|
|
5167
5146
|
return {
|
|
@@ -5192,8 +5171,7 @@ const Pl = {
|
|
|
5192
5171
|
},
|
|
5193
5172
|
methods: {
|
|
5194
5173
|
onTrackMouseDown(e) {
|
|
5195
|
-
if (this.isDisabled || this.isReadonly || "ontouchstart" in window && e.type === "mousedown")
|
|
5196
|
-
return;
|
|
5174
|
+
if (this.isDisabled || this.isReadonly || "ontouchstart" in window && e.type === "mousedown") return;
|
|
5197
5175
|
const { top: t, left: i, width: o, height: n } = this.$refs.track.getBoundingClientRect();
|
|
5198
5176
|
this.isHorizontal ? (this.$refs.track.width = o, 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 });
|
|
5199
5177
|
},
|
|
@@ -5231,11 +5209,11 @@ const Pl = {
|
|
|
5231
5209
|
const { top: e, left: t } = this.$refs.scrollable.getBoundingClientRect();
|
|
5232
5210
|
this.scrollable.top = e, this.scrollable.left = t, this.$el.parentNode.style.position = "relative", this.$el.parentNode.style.padding = 0, window.addEventListener("resize", this.onResize);
|
|
5233
5211
|
}
|
|
5234
|
-
},
|
|
5212
|
+
}, zl = /* @__PURE__ */ v(xl, [["render", Pl]]), Ml = ["aria-expanded", "aria-owns", "aria-activedescendant"], El = {
|
|
5235
5213
|
key: 0,
|
|
5236
5214
|
class: "w-select__selection-slot"
|
|
5237
|
-
},
|
|
5238
|
-
function
|
|
5215
|
+
}, Al = ["innerHTML"], Wl = ["value", "name"];
|
|
5216
|
+
function Kl(e, t, i, o, n, l) {
|
|
5239
5217
|
const a = $("w-icon"), r = $("w-list"), d = $("w-menu");
|
|
5240
5218
|
return s(), g(T(e.formRegister ? "w-form-element" : "div"), B({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: l.selectionString, disabled: e.isDisabled, readonly: e.isReadonly, isFocused: e.isFocused }, {
|
|
5241
5219
|
valid: e.valid,
|
|
@@ -5290,7 +5268,7 @@ function Wl(e, t, i, o, n, l) {
|
|
|
5290
5268
|
_: 1
|
|
5291
5269
|
})) : p("", !0)
|
|
5292
5270
|
]),
|
|
5293
|
-
e.$slots.selection ? (s(), u("div",
|
|
5271
|
+
e.$slots.selection ? (s(), u("div", El, [
|
|
5294
5272
|
c(e.$slots, "selection", {
|
|
5295
5273
|
item: i.multiple ? e.inputValue : e.inputValue[0]
|
|
5296
5274
|
})
|
|
@@ -5301,13 +5279,13 @@ function Wl(e, t, i, o, n, l) {
|
|
|
5301
5279
|
onFocus: t[2] || (t[2] = (h) => !e.isDisabled && !e.isReadonly && l.onFocus(h)),
|
|
5302
5280
|
onBlur: t[3] || (t[3] = (...h) => l.onBlur && l.onBlur(...h)),
|
|
5303
5281
|
onKeydown: t[4] || (t[4] = (h) => !e.isDisabled && !e.isReadonly && l.onKeydown(h))
|
|
5304
|
-
}, l.selectionAttributes, { innerHTML: l.selectionHtml }), null, 16,
|
|
5282
|
+
}, l.selectionAttributes, { innerHTML: l.selectionHtml }), null, 16, Al),
|
|
5305
5283
|
(s(!0), u(k, null, R(e.inputValue.length ? e.inputValue : [{}], (h, w) => (s(), u("input", {
|
|
5306
5284
|
key: w,
|
|
5307
5285
|
type: "hidden",
|
|
5308
5286
|
value: h.value === void 0 ? "" : h.value.toString(),
|
|
5309
5287
|
name: e.inputName + (i.multiple ? "[]" : "")
|
|
5310
|
-
}, null, 8,
|
|
5288
|
+
}, null, 8, Wl))), 128)),
|
|
5311
5289
|
i.labelPosition === "inside" && l.showLabelInside ? (s(), u(k, { key: 1 }, [
|
|
5312
5290
|
e.$slots.default || i.label ? (s(), u("label", {
|
|
5313
5291
|
key: 0,
|
|
@@ -5331,7 +5309,7 @@ function Wl(e, t, i, o, n, l) {
|
|
|
5331
5309
|
_: 1
|
|
5332
5310
|
})) : p("", !0)
|
|
5333
5311
|
])
|
|
5334
|
-
], 10,
|
|
5312
|
+
], 10, Ml)
|
|
5335
5313
|
]),
|
|
5336
5314
|
default: m(() => [
|
|
5337
5315
|
I(r, {
|
|
@@ -5393,7 +5371,7 @@ function Wl(e, t, i, o, n, l) {
|
|
|
5393
5371
|
_: 3
|
|
5394
5372
|
}, 16, ["valid", "onReset", "wrap", "class"]);
|
|
5395
5373
|
}
|
|
5396
|
-
const
|
|
5374
|
+
const Nl = {
|
|
5397
5375
|
name: "w-select",
|
|
5398
5376
|
mixins: [M],
|
|
5399
5377
|
props: {
|
|
@@ -5526,18 +5504,14 @@ const Kl = {
|
|
|
5526
5504
|
this.showMenu || (this.isFocused = !1, this.$emit("blur", e));
|
|
5527
5505
|
},
|
|
5528
5506
|
onKeydown(e) {
|
|
5529
|
-
if (!e.metaKey && !e.ctrlKey && e.keyCode !== 9 && e.preventDefault(), e.keyCode === 27 && this.showMenu)
|
|
5530
|
-
|
|
5531
|
-
else if ([13, 32].includes(e.keyCode))
|
|
5532
|
-
this.openMenu();
|
|
5507
|
+
if (!e.metaKey && !e.ctrlKey && e.keyCode !== 9 && e.preventDefault(), e.keyCode === 27 && this.showMenu) this.closeMenu();
|
|
5508
|
+
else if ([13, 32].includes(e.keyCode)) this.openMenu();
|
|
5533
5509
|
else if ([38, 40].includes(e.keyCode))
|
|
5534
|
-
if (this.multiple)
|
|
5535
|
-
this.openMenu();
|
|
5510
|
+
if (this.multiple) this.openMenu();
|
|
5536
5511
|
else {
|
|
5537
5512
|
let { index: t } = this.inputValue[0] || {};
|
|
5538
5513
|
const i = this.selectItems;
|
|
5539
|
-
if (t === void 0)
|
|
5540
|
-
t = e.keyCode === 38 ? i.length - 1 : 0;
|
|
5514
|
+
if (t === void 0) t = e.keyCode === 38 ? i.length - 1 : 0;
|
|
5541
5515
|
else {
|
|
5542
5516
|
const n = e.keyCode === 38 ? -1 : 1;
|
|
5543
5517
|
t = (t + i.length + n) % i.length;
|
|
@@ -5554,8 +5528,7 @@ const Kl = {
|
|
|
5554
5528
|
}
|
|
5555
5529
|
o || this.onInput(i[t]);
|
|
5556
5530
|
}
|
|
5557
|
-
else
|
|
5558
|
-
e.key.length === 1 && this.focusItemOnQuickLookup(e);
|
|
5531
|
+
else e.key.length === 1 && this.focusItemOnQuickLookup(e);
|
|
5559
5532
|
},
|
|
5560
5533
|
onWListKeydown(e) {
|
|
5561
5534
|
e.key.length === 1 && this.focusItemOnQuickLookup(e);
|
|
@@ -5628,11 +5601,11 @@ const Kl = {
|
|
|
5628
5601
|
this.inputValue = this.checkSelection(this.modelValue);
|
|
5629
5602
|
}
|
|
5630
5603
|
}
|
|
5631
|
-
},
|
|
5604
|
+
}, Dl = /* @__PURE__ */ v(Nl, [["render", Kl]]), Hl = ["for"], Fl = ["for", "innerHTML"], jl = { class: "w-slider__track-wrap" }, Ul = ["aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-readonly"], ql = ["id", "name", "model-value", "disabled", "readonly", "aria-readonly", "tabindex"], Xl = ["for"], Yl = { key: 0 }, Gl = {
|
|
5632
5605
|
key: 0,
|
|
5633
5606
|
class: "w-slider__step-labels"
|
|
5634
|
-
},
|
|
5635
|
-
function
|
|
5607
|
+
}, Jl = ["onClick"], Ql = ["for"], Zl = ["for", "innerHTML"];
|
|
5608
|
+
function es(e, t, i, o, n, l) {
|
|
5636
5609
|
return s(), g(T(e.formRegister ? "w-form-element" : "div"), B({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: e.rangeValueScaled, disabled: e.isDisabled, readonly: e.isReadonly }, {
|
|
5637
5610
|
valid: e.valid,
|
|
5638
5611
|
"onUpdate:valid": t[8] || (t[8] = (a) => e.valid = a),
|
|
@@ -5649,13 +5622,13 @@ function Zl(e, t, i, o, n, l) {
|
|
|
5649
5622
|
for: `button--${e._.uid}`
|
|
5650
5623
|
}, [
|
|
5651
5624
|
c(e.$slots, "label-left")
|
|
5652
|
-
], 10,
|
|
5625
|
+
], 10, Hl)) : i.labelLeft ? (s(), u("label", {
|
|
5653
5626
|
key: 1,
|
|
5654
5627
|
class: f(["w-slider__label w-slider__label--left w-form-el-shakable", e.labelClasses]),
|
|
5655
5628
|
for: `button--${e._.uid}`,
|
|
5656
5629
|
innerHTML: i.labelLeft
|
|
5657
|
-
}, null, 10,
|
|
5658
|
-
y("div",
|
|
5630
|
+
}, null, 10, Fl)) : p("", !0),
|
|
5631
|
+
y("div", jl, [
|
|
5659
5632
|
y("div", {
|
|
5660
5633
|
class: f(["w-slider__track", l.trackClasses]),
|
|
5661
5634
|
ref: "track",
|
|
@@ -5694,13 +5667,13 @@ function Zl(e, t, i, o, n, l) {
|
|
|
5694
5667
|
onFocus: t[2] || (t[2] = (a) => e.$emit("focus", a)),
|
|
5695
5668
|
onClick: t[3] || (t[3] = z(() => {
|
|
5696
5669
|
}, ["prevent"]))
|
|
5697
|
-
}, null, 42,
|
|
5670
|
+
}, null, 42, ql),
|
|
5698
5671
|
i.thumbLabel ? (s(), u("label", {
|
|
5699
5672
|
key: 0,
|
|
5700
5673
|
class: f(["w-slider__thumb-label", l.thumbClasses]),
|
|
5701
5674
|
for: `button--${e._.uid}`
|
|
5702
5675
|
}, [
|
|
5703
|
-
i.thumbLabel === "droplet" ? (s(), u("div",
|
|
5676
|
+
i.thumbLabel === "droplet" ? (s(), u("div", Yl, [
|
|
5704
5677
|
c(e.$slots, "label", { value: e.rangeValueScaled }, () => [
|
|
5705
5678
|
S(C(~~e.rangeValueScaled), 1)
|
|
5706
5679
|
])
|
|
@@ -5710,10 +5683,10 @@ function Zl(e, t, i, o, n, l) {
|
|
|
5710
5683
|
}, () => [
|
|
5711
5684
|
S(C(~~e.rangeValueScaled), 1)
|
|
5712
5685
|
])
|
|
5713
|
-
], 10,
|
|
5686
|
+
], 10, Xl)) : p("", !0)
|
|
5714
5687
|
], 4)
|
|
5715
|
-
], 42,
|
|
5716
|
-
i.stepLabels && i.step ? (s(), u("div",
|
|
5688
|
+
], 42, Ul),
|
|
5689
|
+
i.stepLabels && i.step ? (s(), u("div", Gl, [
|
|
5717
5690
|
y("div", {
|
|
5718
5691
|
class: "w-slider__step-label",
|
|
5719
5692
|
onClick: t[6] || (t[6] = (a) => l.onStepLabelClick(0))
|
|
@@ -5723,7 +5696,7 @@ function Zl(e, t, i, o, n, l) {
|
|
|
5723
5696
|
key: a,
|
|
5724
5697
|
onClick: (r) => l.onStepLabelClick(a * (100 / l.numberOfSteps)),
|
|
5725
5698
|
style: L(`left: ${a * (100 / l.numberOfSteps)}%`)
|
|
5726
|
-
}, C(l.percentToScaled(a * (100 / l.numberOfSteps))), 13,
|
|
5699
|
+
}, C(l.percentToScaled(a * (100 / l.numberOfSteps))), 13, Jl))), 128)),
|
|
5727
5700
|
~~l.numberOfSteps !== l.numberOfSteps ? (s(), u("div", {
|
|
5728
5701
|
key: 0,
|
|
5729
5702
|
class: "w-slider__step-label",
|
|
@@ -5738,17 +5711,17 @@ function Zl(e, t, i, o, n, l) {
|
|
|
5738
5711
|
for: `button--${e._.uid}`
|
|
5739
5712
|
}, [
|
|
5740
5713
|
c(e.$slots, "label-right")
|
|
5741
|
-
], 10,
|
|
5714
|
+
], 10, Ql)) : i.labelRight ? (s(), u("label", {
|
|
5742
5715
|
key: 3,
|
|
5743
5716
|
class: f(["w-slider__label w-slider__label--right w-form-el-shakable", e.labelClasses]),
|
|
5744
5717
|
for: `button--${e._.uid}`,
|
|
5745
5718
|
innerHTML: i.labelRight
|
|
5746
|
-
}, null, 10,
|
|
5719
|
+
}, null, 10, Zl)) : p("", !0)
|
|
5747
5720
|
]),
|
|
5748
5721
|
_: 3
|
|
5749
5722
|
}, 16, ["valid", "wrap", "class"]);
|
|
5750
5723
|
}
|
|
5751
|
-
const
|
|
5724
|
+
const ts = {
|
|
5752
5725
|
name: "w-slider",
|
|
5753
5726
|
mixins: [M],
|
|
5754
5727
|
props: {
|
|
@@ -5848,8 +5821,7 @@ const es = {
|
|
|
5848
5821
|
return Math.round((e / 100 * this.scaledRange + this.minVal) * 100) / 100;
|
|
5849
5822
|
},
|
|
5850
5823
|
onTrackMouseDown(e) {
|
|
5851
|
-
if (this.isDisabled || this.isReadonly || "ontouchstart" in window && e.type === "mousedown")
|
|
5852
|
-
return;
|
|
5824
|
+
if (this.isDisabled || this.isReadonly || "ontouchstart" in window && e.type === "mousedown") return;
|
|
5853
5825
|
const { left: t, width: i } = this.track.el.getBoundingClientRect();
|
|
5854
5826
|
this.track.width = i, this.track.left = t, this.dragging = !0, this.updateRange(e.type === "touchstart" ? e.touches[0].clientX : e.clientX), document.addEventListener(e.type === "touchstart" ? "touchmove" : "mousemove", this.onDrag), document.addEventListener(e.type === "touchstart" ? "touchend" : "mouseup", this.onMouseUp, { once: !0 });
|
|
5855
5827
|
},
|
|
@@ -5886,17 +5858,17 @@ const es = {
|
|
|
5886
5858
|
this.rangeValueScaled !== e && (this.rangeValueScaled = e, this.rangeValuePercent = this.scaledToPercent(e));
|
|
5887
5859
|
}
|
|
5888
5860
|
}
|
|
5889
|
-
},
|
|
5890
|
-
function
|
|
5861
|
+
}, is = /* @__PURE__ */ v(ts, [["render", es]]), ls = { key: 0 };
|
|
5862
|
+
function ss(e, t, i, o, n, l) {
|
|
5891
5863
|
return i.modelValue || i.modelValue === void 0 ? (s(), u("div", {
|
|
5892
5864
|
key: 0,
|
|
5893
5865
|
class: f(["w-spinner", l.classes]),
|
|
5894
5866
|
style: L(l.styles)
|
|
5895
5867
|
}, [
|
|
5896
|
-
l.isThreeDots ? (s(), u("span",
|
|
5868
|
+
l.isThreeDots ? (s(), u("span", ls)) : p("", !0)
|
|
5897
5869
|
], 6)) : p("", !0);
|
|
5898
5870
|
}
|
|
5899
|
-
const
|
|
5871
|
+
const os = {
|
|
5900
5872
|
name: "w-spinner",
|
|
5901
5873
|
props: {
|
|
5902
5874
|
modelValue: {},
|
|
@@ -5934,13 +5906,13 @@ const ss = {
|
|
|
5934
5906
|
};
|
|
5935
5907
|
}
|
|
5936
5908
|
}
|
|
5937
|
-
},
|
|
5938
|
-
function
|
|
5909
|
+
}, as = /* @__PURE__ */ v(os, [["render", ss]]);
|
|
5910
|
+
function ns(e, t, i, o, n, l) {
|
|
5939
5911
|
return s(), u("div", {
|
|
5940
5912
|
class: f(["w-steps", l.classes])
|
|
5941
5913
|
}, null, 2);
|
|
5942
5914
|
}
|
|
5943
|
-
const
|
|
5915
|
+
const rs = {
|
|
5944
5916
|
name: "w-steps",
|
|
5945
5917
|
props: {
|
|
5946
5918
|
dark: { type: Boolean },
|
|
@@ -5956,14 +5928,14 @@ const ns = {
|
|
|
5956
5928
|
};
|
|
5957
5929
|
}
|
|
5958
5930
|
}
|
|
5959
|
-
},
|
|
5931
|
+
}, ds = /* @__PURE__ */ v(rs, [["render", ns]]), us = ["id", "name", "checked", "disabled", "readonly", "aria-readonly", "required", "tabindex", "aria-checked"], hs = ["for"], cs = {
|
|
5960
5932
|
key: 0,
|
|
5961
5933
|
class: "w-switch__track"
|
|
5962
|
-
},
|
|
5934
|
+
}, ps = {
|
|
5963
5935
|
key: 1,
|
|
5964
5936
|
class: "w-switch__thumb"
|
|
5965
|
-
},
|
|
5966
|
-
function
|
|
5937
|
+
}, fs = ["for"];
|
|
5938
|
+
function ms(e, t, i, o, n, l) {
|
|
5967
5939
|
const a = $("w-progress");
|
|
5968
5940
|
return s(), g(T(e.formRegister ? "w-form-element" : "div"), B({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: n.isOn, disabled: e.isDisabled, readonly: e.isReadonly }, {
|
|
5969
5941
|
valid: e.valid,
|
|
@@ -5991,7 +5963,7 @@ function fs(e, t, i, o, n, l) {
|
|
|
5991
5963
|
onFocus: t[1] || (t[1] = (r) => e.$emit("focus", r)),
|
|
5992
5964
|
"aria-checked": n.isOn || "false",
|
|
5993
5965
|
role: "switch"
|
|
5994
|
-
}), null, 16,
|
|
5966
|
+
}), null, 16, us),
|
|
5995
5967
|
l.hasLabel && i.labelOnLeft ? (s(), u(k, { key: 0 }, [
|
|
5996
5968
|
e.$slots.default || i.label ? (s(), u("label", {
|
|
5997
5969
|
key: 0,
|
|
@@ -6001,7 +5973,7 @@ function fs(e, t, i, o, n, l) {
|
|
|
6001
5973
|
c(e.$slots, "default", {}, () => [
|
|
6002
5974
|
S(C(i.label), 1)
|
|
6003
5975
|
])
|
|
6004
|
-
], 10,
|
|
5976
|
+
], 10, hs)) : p("", !0)
|
|
6005
5977
|
], 64)) : p("", !0),
|
|
6006
5978
|
y("div", {
|
|
6007
5979
|
class: f(["w-switch__input", l.inputClasses]),
|
|
@@ -6009,10 +5981,10 @@ function fs(e, t, i, o, n, l) {
|
|
|
6009
5981
|
e.$refs.input.focus(), e.$refs.input.click();
|
|
6010
5982
|
})
|
|
6011
5983
|
}, [
|
|
6012
|
-
e.$slots.track ? (s(), u("div",
|
|
5984
|
+
e.$slots.track ? (s(), u("div", cs, [
|
|
6013
5985
|
c(e.$slots, "track")
|
|
6014
5986
|
])) : p("", !0),
|
|
6015
|
-
e.$slots.thumb || i.loading ? (s(), u("div",
|
|
5987
|
+
e.$slots.thumb || i.loading ? (s(), u("div", ps, [
|
|
6016
5988
|
i.loading ? (s(), g(a, B({
|
|
6017
5989
|
key: 0,
|
|
6018
5990
|
circle: "",
|
|
@@ -6029,13 +6001,13 @@ function fs(e, t, i, o, n, l) {
|
|
|
6029
6001
|
c(e.$slots, "default", {}, () => [
|
|
6030
6002
|
S(C(i.label), 1)
|
|
6031
6003
|
])
|
|
6032
|
-
], 10,
|
|
6004
|
+
], 10, fs)) : p("", !0)
|
|
6033
6005
|
], 64)) : p("", !0)
|
|
6034
6006
|
]),
|
|
6035
6007
|
_: 3
|
|
6036
6008
|
}, 16, ["valid", "class", "style"]);
|
|
6037
6009
|
}
|
|
6038
|
-
const
|
|
6010
|
+
const gs = {
|
|
6039
6011
|
name: "w-switch",
|
|
6040
6012
|
mixins: [M],
|
|
6041
6013
|
inheritAttrs: !1,
|
|
@@ -6111,24 +6083,24 @@ const ms = {
|
|
|
6111
6083
|
this.isOn = e;
|
|
6112
6084
|
}
|
|
6113
6085
|
}
|
|
6114
|
-
},
|
|
6115
|
-
function
|
|
6116
|
-
return s(), u("div",
|
|
6086
|
+
}, bs = /* @__PURE__ */ v(gs, [["render", ms]]), ys = { class: "w-tabs__content" };
|
|
6087
|
+
function ws(e, t, i, o, n, l) {
|
|
6088
|
+
return s(), u("div", ys, [
|
|
6117
6089
|
c(e.$slots, "default", { item: i.item })
|
|
6118
6090
|
]);
|
|
6119
6091
|
}
|
|
6120
|
-
const
|
|
6092
|
+
const ks = {
|
|
6121
6093
|
name: "tab-content",
|
|
6122
6094
|
// Keep-alive include/exclude mechanism is component-name-based.
|
|
6123
6095
|
props: { item: Object }
|
|
6124
|
-
},
|
|
6096
|
+
}, vs = /* @__PURE__ */ v(ks, [["render", ws]]), Cs = ["onClick", "onFocus", "tabindex", "onKeypress", "aria-selected"], Ss = ["innerHTML"], Bs = {
|
|
6125
6097
|
key: 0,
|
|
6126
6098
|
class: "w-tabs__bar-extra"
|
|
6127
|
-
},
|
|
6099
|
+
}, _s = {
|
|
6128
6100
|
key: 0,
|
|
6129
6101
|
class: "w-tabs__content-wrap"
|
|
6130
|
-
},
|
|
6131
|
-
function
|
|
6102
|
+
}, $s = ["innerHTML"], Vs = ["innerHTML"];
|
|
6103
|
+
function Is(e, t, i, o, n, l) {
|
|
6132
6104
|
const a = $("tab-content");
|
|
6133
6105
|
return s(), u("div", {
|
|
6134
6106
|
class: f(["w-tabs", l.tabsClasses])
|
|
@@ -6160,10 +6132,10 @@ function Vs(e, t, i, o, n, l) {
|
|
|
6160
6132
|
}, () => [
|
|
6161
6133
|
y("div", {
|
|
6162
6134
|
innerHTML: r[i.itemTitleKey]
|
|
6163
|
-
}, null, 8,
|
|
6135
|
+
}, null, 8, Ss)
|
|
6164
6136
|
])
|
|
6165
|
-
], 42,
|
|
6166
|
-
e.$slots["tabs-bar-extra"] ? (s(), u("div",
|
|
6137
|
+
], 42, Cs))), 128)),
|
|
6138
|
+
e.$slots["tabs-bar-extra"] ? (s(), u("div", Bs, [
|
|
6167
6139
|
c(e.$slots, "tabs-bar-extra")
|
|
6168
6140
|
])) : p("", !0),
|
|
6169
6141
|
!i.noSlider && !i.card ? (s(), u("div", {
|
|
@@ -6172,7 +6144,7 @@ function Vs(e, t, i, o, n, l) {
|
|
|
6172
6144
|
style: L(l.sliderStyles)
|
|
6173
6145
|
}, null, 6)) : p("", !0)
|
|
6174
6146
|
], 2),
|
|
6175
|
-
e.tabs.length ? (s(), u("div",
|
|
6147
|
+
e.tabs.length ? (s(), u("div", _s, [
|
|
6176
6148
|
i.keepInDom ? (s(), g(se, {
|
|
6177
6149
|
key: 0,
|
|
6178
6150
|
name: l.transitionName
|
|
@@ -6198,7 +6170,7 @@ function Vs(e, t, i, o, n, l) {
|
|
|
6198
6170
|
r[i.itemContentKey] ? (s(), u("div", {
|
|
6199
6171
|
key: 0,
|
|
6200
6172
|
innerHTML: r[i.itemContentKey]
|
|
6201
|
-
}, null, 8,
|
|
6173
|
+
}, null, 8, $s)) : p("", !0)
|
|
6202
6174
|
])
|
|
6203
6175
|
]),
|
|
6204
6176
|
_: 2
|
|
@@ -6213,7 +6185,7 @@ function Vs(e, t, i, o, n, l) {
|
|
|
6213
6185
|
mode: l.transitionMode
|
|
6214
6186
|
}, {
|
|
6215
6187
|
default: m(() => [
|
|
6216
|
-
(s(), g(
|
|
6188
|
+
(s(), g(Ie, {
|
|
6217
6189
|
exclude: i.keepAlive ? "" : "tab-content"
|
|
6218
6190
|
}, [
|
|
6219
6191
|
(s(), g(a, {
|
|
@@ -6237,7 +6209,7 @@ function Vs(e, t, i, o, n, l) {
|
|
|
6237
6209
|
r[i.itemContentKey] ? (s(), u("div", {
|
|
6238
6210
|
key: 0,
|
|
6239
6211
|
innerHTML: r[i.itemContentKey]
|
|
6240
|
-
}, null, 8,
|
|
6212
|
+
}, null, 8, Vs)) : p("", !0)
|
|
6241
6213
|
])
|
|
6242
6214
|
], 64)) : p("", !0)
|
|
6243
6215
|
]),
|
|
@@ -6250,8 +6222,8 @@ function Vs(e, t, i, o, n, l) {
|
|
|
6250
6222
|
])) : p("", !0)
|
|
6251
6223
|
], 2);
|
|
6252
6224
|
}
|
|
6253
|
-
let
|
|
6254
|
-
const
|
|
6225
|
+
let me = 0;
|
|
6226
|
+
const Ts = {
|
|
6255
6227
|
name: "w-tabs",
|
|
6256
6228
|
props: {
|
|
6257
6229
|
modelValue: { type: [Number, String] },
|
|
@@ -6277,7 +6249,7 @@ const Is = {
|
|
|
6277
6249
|
keepAlive: { type: Boolean, default: !0 },
|
|
6278
6250
|
keepInDom: { type: Boolean, default: !1 }
|
|
6279
6251
|
},
|
|
6280
|
-
components: { TabContent:
|
|
6252
|
+
components: { TabContent: vs },
|
|
6281
6253
|
emits: ["input", "update:modelValue", "focus"],
|
|
6282
6254
|
data: () => ({
|
|
6283
6255
|
tabs: [],
|
|
@@ -6336,7 +6308,7 @@ const Is = {
|
|
|
6336
6308
|
methods: {
|
|
6337
6309
|
// Adding a tab in the list.
|
|
6338
6310
|
addTab(e) {
|
|
6339
|
-
(e[this.itemIdKey] ?? e._uid ?? !1) || (e._uid = +`${this._.uid}${++
|
|
6311
|
+
(e[this.itemIdKey] ?? e._uid ?? !1) || (e._uid = +`${this._.uid}${++me}`), this.tabs.push({
|
|
6340
6312
|
_uid: e[this.itemIdKey] ?? e._uid,
|
|
6341
6313
|
_index: this.tabs.length,
|
|
6342
6314
|
...e,
|
|
@@ -6345,7 +6317,7 @@ const Is = {
|
|
|
6345
6317
|
},
|
|
6346
6318
|
refreshTabs() {
|
|
6347
6319
|
let e = this.items;
|
|
6348
|
-
typeof e == "number" && (e = Array(e).fill().map((t, i) => this.tabs[i] || {})), this.tabs = e.map((t, i) => ((t[this.itemIdKey] ?? t._uid ?? !1) || (t._uid = +`${this._.uid}${++
|
|
6320
|
+
typeof e == "number" && (e = Array(e).fill().map((t, i) => this.tabs[i] || {})), this.tabs = e.map((t, i) => ((t[this.itemIdKey] ?? t._uid ?? !1) || (t._uid = +`${this._.uid}${++me}`), {
|
|
6349
6321
|
...t,
|
|
6350
6322
|
_uid: t[this.itemIdKey] ?? t._uid,
|
|
6351
6323
|
_index: i,
|
|
@@ -6354,8 +6326,7 @@ const Is = {
|
|
|
6354
6326
|
},
|
|
6355
6327
|
reopenTheActiveTab() {
|
|
6356
6328
|
var t, i, o;
|
|
6357
|
-
if (this.tabs.length === 1)
|
|
6358
|
-
return this.openTab(this.tabs[0]._uid);
|
|
6329
|
+
if (this.tabs.length === 1) return this.openTab(this.tabs[0]._uid);
|
|
6359
6330
|
let e = (t = this.tabsByUid[this.activeTabUid]) == null ? void 0 : t._uid;
|
|
6360
6331
|
e || (e = (i = this.tabs[this.activeTabIndex]) == null ? void 0 : i._uid), e || (e = (o = this.tabs[Math.max(this.activeTabIndex - 1, this.tabs.length - 1)]) == null ? void 0 : o._uid), e && this.openTab(e);
|
|
6361
6332
|
},
|
|
@@ -6427,51 +6398,51 @@ const Is = {
|
|
|
6427
6398
|
e ? window.removeEventListener("resize", this.onResize) : (this.updateSlider(), window.addEventListener("resize", this.onResize));
|
|
6428
6399
|
}
|
|
6429
6400
|
}
|
|
6430
|
-
},
|
|
6401
|
+
}, Ls = /* @__PURE__ */ v(Ts, [["render", Is]]), Rs = { class: "w-table__scroll-wrap" }, Ps = { ref: "colgroup" }, Os = ["width"], xs = { key: 0 }, zs = ["onClick"], Ms = ["innerHTML"], Es = {
|
|
6431
6402
|
key: 0,
|
|
6432
6403
|
class: "w-table__progress-bar"
|
|
6433
|
-
},
|
|
6404
|
+
}, As = ["colspan"], Ws = {
|
|
6434
6405
|
key: 0,
|
|
6435
6406
|
class: "w-table__progress-bar"
|
|
6436
|
-
},
|
|
6407
|
+
}, Ks = ["colspan"], Ns = { class: "w-table__loading-text" }, Ds = {
|
|
6437
6408
|
key: 1,
|
|
6438
6409
|
class: "no-data"
|
|
6439
|
-
},
|
|
6410
|
+
}, Hs = ["colspan"], Fs = ["onClick"], js = ["data-label"], Us = ["data-label"], qs = ["innerHTML"], Xs = {
|
|
6440
6411
|
key: 2,
|
|
6441
6412
|
class: "w-table__row w-table__row--expansion"
|
|
6442
|
-
},
|
|
6413
|
+
}, Ys = ["colspan"], Gs = { key: 0 }, Js = {
|
|
6443
6414
|
key: 3,
|
|
6444
6415
|
class: "w-table__extra-row"
|
|
6445
|
-
},
|
|
6416
|
+
}, Qs = {
|
|
6446
6417
|
key: 1,
|
|
6447
6418
|
class: "w-table__footer"
|
|
6448
|
-
},
|
|
6419
|
+
}, Zs = {
|
|
6449
6420
|
key: 1,
|
|
6450
6421
|
class: "w-table__row"
|
|
6451
|
-
},
|
|
6422
|
+
}, eo = ["colspan"], to = {
|
|
6452
6423
|
key: 0,
|
|
6453
6424
|
class: "w-table__pagination w-pagination"
|
|
6454
|
-
},
|
|
6455
|
-
function
|
|
6425
|
+
}, io = { class: "pages-wrap" }, lo = { class: "w-pagination__results" };
|
|
6426
|
+
function so(e, t, i, o, n, l) {
|
|
6456
6427
|
const a = $("w-icon"), r = $("w-progress"), d = $("w-transition-fade"), h = $("w-transition-expand"), w = $("w-select"), _ = $("w-button");
|
|
6457
6428
|
return s(), u("div", {
|
|
6458
6429
|
class: f(["w-table w-table--wrap", l.classes])
|
|
6459
6430
|
}, [
|
|
6460
|
-
y("div",
|
|
6431
|
+
y("div", Rs, [
|
|
6461
6432
|
y("table", {
|
|
6462
6433
|
class: "w-table__table",
|
|
6463
6434
|
onMousedown: t[1] || (t[1] = (...b) => l.onMouseDown && l.onMouseDown(...b)),
|
|
6464
6435
|
onMouseover: t[2] || (t[2] = (...b) => l.onMouseOver && l.onMouseOver(...b)),
|
|
6465
6436
|
onMouseout: t[3] || (t[3] = (...b) => l.onMouseOut && l.onMouseOut(...b))
|
|
6466
6437
|
}, [
|
|
6467
|
-
y("colgroup",
|
|
6438
|
+
y("colgroup", Ps, [
|
|
6468
6439
|
(s(!0), u(k, null, R(i.headers, (b, V) => (s(), u("col", {
|
|
6469
6440
|
class: f(["w-table__col", l.colClasses[V]]),
|
|
6470
6441
|
key: V,
|
|
6471
6442
|
width: b.width || null
|
|
6472
|
-
}, null, 10,
|
|
6443
|
+
}, null, 10, Os))), 128))
|
|
6473
6444
|
], 512),
|
|
6474
|
-
i.noHeaders ? p("", !0) : (s(), u("thead",
|
|
6445
|
+
i.noHeaders ? p("", !0) : (s(), u("thead", xs, [
|
|
6475
6446
|
y("tr", null, [
|
|
6476
6447
|
(s(!0), u(k, null, R(i.headers, (b, V) => (s(), u("th", {
|
|
6477
6448
|
class: f(["w-table__header", l.headerClasses(b)]),
|
|
@@ -6498,7 +6469,7 @@ function lo(e, t, i, o, n, l) {
|
|
|
6498
6469
|
]) : (s(), u("span", {
|
|
6499
6470
|
key: 1,
|
|
6500
6471
|
innerHTML: b.label || ""
|
|
6501
|
-
}, null, 8,
|
|
6472
|
+
}, null, 8, Ms))
|
|
6502
6473
|
], 64)) : p("", !0),
|
|
6503
6474
|
b.sortable !== !1 && b.align !== "right" ? (s(), g(a, {
|
|
6504
6475
|
key: 2,
|
|
@@ -6515,34 +6486,34 @@ function lo(e, t, i, o, n, l) {
|
|
|
6515
6486
|
onClick: t[0] || (t[0] = z(() => {
|
|
6516
6487
|
}, ["stop"]))
|
|
6517
6488
|
}, null, 2)) : p("", !0)
|
|
6518
|
-
], 10,
|
|
6489
|
+
], 10, zs))), 128))
|
|
6519
6490
|
]),
|
|
6520
6491
|
I(d, null, {
|
|
6521
6492
|
default: m(() => [
|
|
6522
|
-
i.loading === "header" ? (s(), u("tr",
|
|
6493
|
+
i.loading === "header" ? (s(), u("tr", Es, [
|
|
6523
6494
|
y("td", {
|
|
6524
6495
|
colspan: i.headers.length
|
|
6525
6496
|
}, [
|
|
6526
6497
|
I(r, { tile: "" })
|
|
6527
|
-
], 8,
|
|
6498
|
+
], 8, As)
|
|
6528
6499
|
])) : p("", !0)
|
|
6529
6500
|
]),
|
|
6530
6501
|
_: 1
|
|
6531
6502
|
})
|
|
6532
6503
|
])),
|
|
6533
6504
|
y("tbody", null, [
|
|
6534
|
-
i.loading === !0 ? (s(), u("tr",
|
|
6505
|
+
i.loading === !0 ? (s(), u("tr", Ws, [
|
|
6535
6506
|
y("td", {
|
|
6536
6507
|
colspan: i.headers.length
|
|
6537
6508
|
}, [
|
|
6538
6509
|
I(r, { tile: "" }),
|
|
6539
|
-
y("div",
|
|
6510
|
+
y("div", Ns, [
|
|
6540
6511
|
c(e.$slots, "loading", {}, () => [
|
|
6541
6512
|
S("Loading...")
|
|
6542
6513
|
])
|
|
6543
6514
|
])
|
|
6544
|
-
], 8,
|
|
6545
|
-
])) : l.tableItems.length ? p("", !0) : (s(), u("tr",
|
|
6515
|
+
], 8, Ks)
|
|
6516
|
+
])) : l.tableItems.length ? p("", !0) : (s(), u("tr", Ds, [
|
|
6546
6517
|
y("td", {
|
|
6547
6518
|
class: "w-table__cell text-center",
|
|
6548
6519
|
colspan: i.headers.length
|
|
@@ -6550,7 +6521,7 @@ function lo(e, t, i, o, n, l) {
|
|
|
6550
6521
|
c(e.$slots, "no-data", {}, () => [
|
|
6551
6522
|
S("No data to show.")
|
|
6552
6523
|
])
|
|
6553
|
-
], 8,
|
|
6524
|
+
], 8, Hs)
|
|
6554
6525
|
])),
|
|
6555
6526
|
l.tableItems.length && i.loading !== !0 ? (s(!0), u(k, { key: 2 }, R(l.paginatedItems, (b, V) => (s(), u(k, { key: V }, [
|
|
6556
6527
|
e.$slots.item ? c(e.$slots, "item", {
|
|
@@ -6593,29 +6564,29 @@ function lo(e, t, i, o, n, l) {
|
|
|
6593
6564
|
key: 3,
|
|
6594
6565
|
class: f(["w-table__col-resizer", { "w-table__col-resizer--hover": e.colResizing.hover === x, "w-table__col-resizer--active": e.colResizing.columnIndex === x }])
|
|
6595
6566
|
}, null, 2)) : p("", !0)
|
|
6596
|
-
], 10,
|
|
6567
|
+
], 10, js)) : (s(), u("td", {
|
|
6597
6568
|
class: f(["w-table__cell", { [`text-${P.align || "left"}`]: !0, "w-table__cell--sticky": P.sticky }]),
|
|
6598
6569
|
key: `${x}-b`,
|
|
6599
6570
|
"data-label": P.label
|
|
6600
6571
|
}, [
|
|
6601
6572
|
y("div", {
|
|
6602
6573
|
innerHTML: b[P.key] || ""
|
|
6603
|
-
}, null, 8,
|
|
6574
|
+
}, null, 8, qs),
|
|
6604
6575
|
x < i.headers.length - 1 && i.resizableColumns ? (s(), u("span", {
|
|
6605
6576
|
key: 0,
|
|
6606
6577
|
class: f(["w-table__col-resizer", { "w-table__col-resizer--hover": e.colResizing.hover === x, "w-table__col-resizer--active": e.colResizing.columnIndex === x }])
|
|
6607
6578
|
}, null, 2)) : p("", !0)
|
|
6608
|
-
], 10,
|
|
6579
|
+
], 10, Us))
|
|
6609
6580
|
], 64))), 256))
|
|
6610
|
-
], 10,
|
|
6611
|
-
l.expandedRowsByUid[b._uid] ? (s(), u("tr",
|
|
6581
|
+
], 10, Fs)),
|
|
6582
|
+
l.expandedRowsByUid[b._uid] ? (s(), u("tr", Xs, [
|
|
6612
6583
|
y("td", {
|
|
6613
6584
|
class: "w-table__cell",
|
|
6614
6585
|
colspan: i.headers.length
|
|
6615
6586
|
}, [
|
|
6616
6587
|
I(h, { y: "" }, {
|
|
6617
6588
|
default: m(() => [
|
|
6618
|
-
l.expandedRowsByUid[b._uid] ? (s(), u("div",
|
|
6589
|
+
l.expandedRowsByUid[b._uid] ? (s(), u("div", Gs, [
|
|
6619
6590
|
c(e.$slots, "row-expansion", {
|
|
6620
6591
|
item: b,
|
|
6621
6592
|
index: V + 1
|
|
@@ -6628,26 +6599,26 @@ function lo(e, t, i, o, n, l) {
|
|
|
6628
6599
|
]),
|
|
6629
6600
|
_: 2
|
|
6630
6601
|
}, 1024)
|
|
6631
|
-
], 8,
|
|
6602
|
+
], 8, Ys)
|
|
6632
6603
|
])) : p("", !0)
|
|
6633
6604
|
], 64))), 128)) : p("", !0),
|
|
6634
|
-
e.$slots["extra-row"] ? (s(), u("div",
|
|
6605
|
+
e.$slots["extra-row"] ? (s(), u("div", Js, [
|
|
6635
6606
|
c(e.$slots, "extra-row")
|
|
6636
6607
|
])) : p("", !0)
|
|
6637
6608
|
]),
|
|
6638
|
-
e.$slots.footer || e.$slots["footer-row"] ? (s(), u("tfoot",
|
|
6639
|
-
e.$slots["footer-row"] ? c(e.$slots, "footer-row", { key: 0 }) : e.$slots.footer ? (s(), u("tr",
|
|
6609
|
+
e.$slots.footer || e.$slots["footer-row"] ? (s(), u("tfoot", Qs, [
|
|
6610
|
+
e.$slots["footer-row"] ? c(e.$slots, "footer-row", { key: 0 }) : e.$slots.footer ? (s(), u("tr", Zs, [
|
|
6640
6611
|
y("td", {
|
|
6641
6612
|
class: "w-table__cell",
|
|
6642
6613
|
colspan: i.headers.length
|
|
6643
6614
|
}, [
|
|
6644
6615
|
c(e.$slots, "footer")
|
|
6645
|
-
], 8,
|
|
6616
|
+
], 8, eo)
|
|
6646
6617
|
])) : p("", !0)
|
|
6647
6618
|
])) : p("", !0)
|
|
6648
6619
|
], 32)
|
|
6649
6620
|
]),
|
|
6650
|
-
i.pagination && e.paginationConfig ? (s(), u("div",
|
|
6621
|
+
i.pagination && e.paginationConfig ? (s(), u("div", to, [
|
|
6651
6622
|
c(e.$slots, "pagination", {
|
|
6652
6623
|
range: `${e.paginationConfig.start}-${e.paginationConfig.end}`,
|
|
6653
6624
|
total: e.paginationConfig.total,
|
|
@@ -6666,7 +6637,7 @@ function lo(e, t, i, o, n, l) {
|
|
|
6666
6637
|
label: "Items per page",
|
|
6667
6638
|
"label-color": "inherit"
|
|
6668
6639
|
}, null, 8, ["modelValue", "items"])) : p("", !0),
|
|
6669
|
-
y("div",
|
|
6640
|
+
y("div", io, [
|
|
6670
6641
|
I(_, {
|
|
6671
6642
|
class: "w-pagination__arrow w-pagination__arrow--prev",
|
|
6672
6643
|
onClick: t[6] || (t[6] = (b) => l.goToPage("-1")),
|
|
@@ -6720,12 +6691,12 @@ function lo(e, t, i, o, n, l) {
|
|
|
6720
6691
|
lg: ""
|
|
6721
6692
|
}, null, 8, ["disabled"])
|
|
6722
6693
|
]),
|
|
6723
|
-
y("span",
|
|
6694
|
+
y("span", lo, C(e.paginationConfig.start) + "-" + C(e.paginationConfig.end || e.paginationConfig.total) + " of " + C(e.paginationConfig.total), 1)
|
|
6724
6695
|
])
|
|
6725
6696
|
])) : p("", !0)
|
|
6726
6697
|
], 2);
|
|
6727
6698
|
}
|
|
6728
|
-
const
|
|
6699
|
+
const ge = 15, oo = {
|
|
6729
6700
|
name: "w-table",
|
|
6730
6701
|
props: {
|
|
6731
6702
|
items: { type: Array, required: !0 },
|
|
@@ -6775,8 +6746,7 @@ const me = 15, so = {
|
|
|
6775
6746
|
return ee(
|
|
6776
6747
|
"Wrong pagination config received in the w-table's `pagination` prop (received: `" + JSON.stringify(e) + "`). \nExpected object: { itemsPerPage: Integer, page: Integer } or { itemsPerPage: Integer, start: Integer }."
|
|
6777
6748
|
), !1;
|
|
6778
|
-
} else
|
|
6779
|
-
return !0;
|
|
6749
|
+
} else return !0;
|
|
6780
6750
|
return !0;
|
|
6781
6751
|
}
|
|
6782
6752
|
},
|
|
@@ -6828,8 +6798,7 @@ const me = 15, so = {
|
|
|
6828
6798
|
return typeof this.filter == "function" ? this.tableItems.filter(this.filter) : this.tableItems;
|
|
6829
6799
|
},
|
|
6830
6800
|
sortedItems() {
|
|
6831
|
-
if (!this.activeSorting.length || this.sortFunction || this.fetch)
|
|
6832
|
-
return this.filteredItems;
|
|
6801
|
+
if (!this.activeSorting.length || this.sortFunction || this.fetch) return this.filteredItems;
|
|
6833
6802
|
const e = this.activeSorting[0].replace(/^[+-]/, ""), t = this.activeSorting[0][0] === "-";
|
|
6834
6803
|
return [...this.filteredItems].sort((i, o) => (i = i[e], o = o[e], !isNaN(i) && !isNaN(o) && (i = parseFloat(i), o = parseFloat(o)), (i > o ? 1 : -1) * (t ? -1 : 1)));
|
|
6835
6804
|
},
|
|
@@ -6950,12 +6919,11 @@ const me = 15, so = {
|
|
|
6950
6919
|
this.colResizing.dragging = !0;
|
|
6951
6920
|
const a = e.pageX - t, r = n + l, d = n + a, h = l - a;
|
|
6952
6921
|
i.style.width = n + a + "px", o.style.width = l - a + "px";
|
|
6953
|
-
const w = a < 0 && i.offsetWidth > d || i.offsetWidth <=
|
|
6922
|
+
const w = a < 0 && i.offsetWidth > d || i.offsetWidth <= ge, _ = a > 0 && o.offsetWidth > h;
|
|
6954
6923
|
if (w) {
|
|
6955
|
-
const b = Math.max(i.offsetWidth,
|
|
6924
|
+
const b = Math.max(i.offsetWidth, ge);
|
|
6956
6925
|
i.style.width = b + "px", o.style.width = r - b + "px";
|
|
6957
|
-
} else
|
|
6958
|
-
_ && (i.style.width = r - o.offsetWidth + "px", o.style.width = o.offsetWidth + "px");
|
|
6926
|
+
} else _ && (i.style.width = r - o.offsetWidth + "px", o.style.width = o.offsetWidth + "px");
|
|
6959
6927
|
},
|
|
6960
6928
|
onResizerMouseUp() {
|
|
6961
6929
|
document.removeEventListener("mousemove", this.onResizerMouseMove), document.removeEventListener("mouseup", this.onResizerMouseUp), setTimeout(() => {
|
|
@@ -7057,8 +7025,8 @@ const me = 15, so = {
|
|
|
7057
7025
|
this.updatePaginationConfig({ total: e });
|
|
7058
7026
|
}
|
|
7059
7027
|
}
|
|
7060
|
-
},
|
|
7061
|
-
function
|
|
7028
|
+
}, ao = /* @__PURE__ */ v(oo, [["render", so]]), no = ["role", "aria-pressed", "tabindex"];
|
|
7029
|
+
function ro(e, t, i, o, n, l) {
|
|
7062
7030
|
return s(), u("span", {
|
|
7063
7031
|
class: f(["w-tag", l.classes]),
|
|
7064
7032
|
onClick: t[1] || (t[1] = (a) => {
|
|
@@ -7082,9 +7050,9 @@ function no(e, t, i, o, n, l) {
|
|
|
7082
7050
|
role: "icon",
|
|
7083
7051
|
"aria-hidden": "true"
|
|
7084
7052
|
})) : p("", !0)
|
|
7085
|
-
], 46,
|
|
7053
|
+
], 46, no);
|
|
7086
7054
|
}
|
|
7087
|
-
const
|
|
7055
|
+
const uo = {
|
|
7088
7056
|
name: "w-tag",
|
|
7089
7057
|
props: {
|
|
7090
7058
|
modelValue: { type: [Boolean, Number], default: -1 },
|
|
@@ -7133,8 +7101,8 @@ const ro = {
|
|
|
7133
7101
|
};
|
|
7134
7102
|
}
|
|
7135
7103
|
}
|
|
7136
|
-
},
|
|
7137
|
-
function
|
|
7104
|
+
}, ho = /* @__PURE__ */ v(uo, [["render", ro]]), co = ["for"], po = ["id", "name", "placeholder", "rows", "cols", "readonly", "aria-readonly", "disabled", "required", "tabindex"], fo = ["for"];
|
|
7105
|
+
function mo(e, t, i, o, n, l) {
|
|
7138
7106
|
const a = $("w-icon");
|
|
7139
7107
|
return s(), g(T(e.formRegister ? "w-form-element" : "div"), B({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: n.inputValue, disabled: e.isDisabled, readonly: e.isReadonly, isFocused: n.isFocused }, {
|
|
7140
7108
|
valid: e.valid,
|
|
@@ -7156,7 +7124,7 @@ function fo(e, t, i, o, n, l) {
|
|
|
7156
7124
|
c(e.$slots, "default", {}, () => [
|
|
7157
7125
|
S(C(i.label), 1)
|
|
7158
7126
|
])
|
|
7159
|
-
], 10,
|
|
7127
|
+
], 10, co)) : p("", !0)
|
|
7160
7128
|
], 64)) : p("", !0),
|
|
7161
7129
|
y("div", {
|
|
7162
7130
|
class: f(["w-textarea__textarea-wrap", l.inputWrapClasses])
|
|
@@ -7195,8 +7163,8 @@ function fo(e, t, i, o, n, l) {
|
|
|
7195
7163
|
disabled: e.isDisabled || null,
|
|
7196
7164
|
required: e.required || null,
|
|
7197
7165
|
tabindex: e.tabindex || null
|
|
7198
|
-
}), null, 16,
|
|
7199
|
-
[
|
|
7166
|
+
}), null, 16, po), [
|
|
7167
|
+
[ye, n.inputValue]
|
|
7200
7168
|
]),
|
|
7201
7169
|
i.labelPosition === "inside" && l.showLabelInside ? (s(), u(k, { key: 0 }, [
|
|
7202
7170
|
e.$slots.default || i.label ? (s(), u("label", {
|
|
@@ -7234,13 +7202,13 @@ function fo(e, t, i, o, n, l) {
|
|
|
7234
7202
|
c(e.$slots, "default", {}, () => [
|
|
7235
7203
|
S(C(i.label), 1)
|
|
7236
7204
|
])
|
|
7237
|
-
], 10,
|
|
7205
|
+
], 10, fo)) : p("", !0)
|
|
7238
7206
|
], 64)) : p("", !0)
|
|
7239
7207
|
]),
|
|
7240
7208
|
_: 3
|
|
7241
7209
|
}, 16, ["valid", "wrap", "class", "style"]);
|
|
7242
7210
|
}
|
|
7243
|
-
const
|
|
7211
|
+
const go = {
|
|
7244
7212
|
name: "w-textarea",
|
|
7245
7213
|
mixins: [M],
|
|
7246
7214
|
inheritAttrs: !1,
|
|
@@ -7366,8 +7334,8 @@ const mo = {
|
|
|
7366
7334
|
e ? this.getLineHeight() : this.height = null;
|
|
7367
7335
|
}
|
|
7368
7336
|
}
|
|
7369
|
-
},
|
|
7370
|
-
function
|
|
7337
|
+
}, bo = /* @__PURE__ */ v(go, [["render", mo]]), yo = ["innerHTML"], wo = ["innerHTML"];
|
|
7338
|
+
function ko(e, t, i, o, n, l) {
|
|
7371
7339
|
return s(), u("ul", {
|
|
7372
7340
|
class: f(["w-timeline", l.classes])
|
|
7373
7341
|
}, [
|
|
@@ -7395,16 +7363,16 @@ function wo(e, t, i, o, n, l) {
|
|
|
7395
7363
|
y("div", {
|
|
7396
7364
|
class: f(["w-timeline-item__title", { [a[i.itemColorKey] || i.color]: a[i.itemColorKey] || i.color }]),
|
|
7397
7365
|
innerHTML: a[i.itemTitleKey]
|
|
7398
|
-
}, null, 10,
|
|
7366
|
+
}, null, 10, yo),
|
|
7399
7367
|
y("div", {
|
|
7400
7368
|
class: "w-timeline-item__content",
|
|
7401
7369
|
innerHTML: a[i.itemContentKey]
|
|
7402
|
-
}, null, 8,
|
|
7370
|
+
}, null, 8, wo)
|
|
7403
7371
|
])
|
|
7404
7372
|
]))), 128))
|
|
7405
7373
|
], 2);
|
|
7406
7374
|
}
|
|
7407
|
-
const
|
|
7375
|
+
const vo = {
|
|
7408
7376
|
name: "w-timeline",
|
|
7409
7377
|
props: {
|
|
7410
7378
|
items: { type: [Array, Number], required: !0 },
|
|
@@ -7426,8 +7394,8 @@ const ko = {
|
|
|
7426
7394
|
};
|
|
7427
7395
|
}
|
|
7428
7396
|
}
|
|
7429
|
-
},
|
|
7430
|
-
function
|
|
7397
|
+
}, Co = /* @__PURE__ */ v(vo, [["render", ko]]);
|
|
7398
|
+
function So(e, t, i, o, n, l) {
|
|
7431
7399
|
return s(), u("div", {
|
|
7432
7400
|
class: f(["w-toolbar", l.classes]),
|
|
7433
7401
|
style: L(l.styles)
|
|
@@ -7435,7 +7403,7 @@ function Co(e, t, i, o, n, l) {
|
|
|
7435
7403
|
c(e.$slots, "default")
|
|
7436
7404
|
], 6);
|
|
7437
7405
|
}
|
|
7438
|
-
const
|
|
7406
|
+
const Bo = {
|
|
7439
7407
|
name: "w-toolbar",
|
|
7440
7408
|
props: {
|
|
7441
7409
|
color: { type: String },
|
|
@@ -7486,8 +7454,8 @@ const So = {
|
|
|
7486
7454
|
};
|
|
7487
7455
|
}
|
|
7488
7456
|
}
|
|
7489
|
-
},
|
|
7490
|
-
function
|
|
7457
|
+
}, _o = /* @__PURE__ */ v(Bo, [["render", So]]);
|
|
7458
|
+
function $o(e, t, i, o, n, l) {
|
|
7491
7459
|
return s(), u(k, null, [
|
|
7492
7460
|
c(e.$slots, "activator", { on: l.activatorEventHandlers }),
|
|
7493
7461
|
I(O, {
|
|
@@ -7508,9 +7476,9 @@ function _o(e, t, i, o, n, l) {
|
|
|
7508
7476
|
}, 8, ["name"])
|
|
7509
7477
|
], 64);
|
|
7510
7478
|
}
|
|
7511
|
-
const
|
|
7479
|
+
const Vo = {
|
|
7512
7480
|
name: "w-tooltip",
|
|
7513
|
-
mixins: [
|
|
7481
|
+
mixins: [ke],
|
|
7514
7482
|
props: {
|
|
7515
7483
|
modelValue: {},
|
|
7516
7484
|
showOnClick: { type: Boolean },
|
|
@@ -7644,8 +7612,8 @@ const $o = {
|
|
|
7644
7612
|
}
|
|
7645
7613
|
}
|
|
7646
7614
|
// watch, mounted & beforeDestroy hooks are set in the detachable.js mixin.
|
|
7647
|
-
},
|
|
7648
|
-
function
|
|
7615
|
+
}, Io = /* @__PURE__ */ v(Vo, [["render", $o]]);
|
|
7616
|
+
function To(e, t, i, o, n, l) {
|
|
7649
7617
|
return s(), g(O, B({ name: "bounce" }, e.$props), {
|
|
7650
7618
|
default: m(() => [
|
|
7651
7619
|
c(e.$slots, "default")
|
|
@@ -7653,14 +7621,14 @@ function Io(e, t, i, o, n, l) {
|
|
|
7653
7621
|
_: 3
|
|
7654
7622
|
}, 16);
|
|
7655
7623
|
}
|
|
7656
|
-
const
|
|
7624
|
+
const Lo = {
|
|
7657
7625
|
name: "w-transition-bounce",
|
|
7658
7626
|
props: {
|
|
7659
7627
|
appear: { type: Boolean },
|
|
7660
7628
|
duration: { type: [Number, String] }
|
|
7661
7629
|
}
|
|
7662
|
-
},
|
|
7663
|
-
function
|
|
7630
|
+
}, Ro = /* @__PURE__ */ v(Lo, [["render", To]]);
|
|
7631
|
+
function Po(e, t, i, o, n, l) {
|
|
7664
7632
|
return s(), g(O, {
|
|
7665
7633
|
name: "expand",
|
|
7666
7634
|
mode: "out-in",
|
|
@@ -7681,7 +7649,7 @@ function Ro(e, t, i, o, n, l) {
|
|
|
7681
7649
|
_: 3
|
|
7682
7650
|
}, 8, ["onBeforeAppear", "onAppear", "onAfterAppear", "onBeforeEnter", "onEnter", "onAfterEnter", "onBeforeLeave", "onLeave", "onAfterLeave"]);
|
|
7683
7651
|
}
|
|
7684
|
-
const
|
|
7652
|
+
const Oo = {
|
|
7685
7653
|
name: "w-transition-expand",
|
|
7686
7654
|
props: {
|
|
7687
7655
|
x: { type: Boolean },
|
|
@@ -7771,8 +7739,8 @@ const Po = {
|
|
|
7771
7739
|
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;
|
|
7772
7740
|
}
|
|
7773
7741
|
}
|
|
7774
|
-
},
|
|
7775
|
-
function
|
|
7742
|
+
}, xo = /* @__PURE__ */ v(Oo, [["render", Po]]);
|
|
7743
|
+
function zo(e, t, i, o, n, l) {
|
|
7776
7744
|
return s(), g(O, B({ name: "fade" }, e.$props), {
|
|
7777
7745
|
default: m(() => [
|
|
7778
7746
|
c(e.$slots, "default")
|
|
@@ -7780,14 +7748,14 @@ function xo(e, t, i, o, n, l) {
|
|
|
7780
7748
|
_: 3
|
|
7781
7749
|
}, 16);
|
|
7782
7750
|
}
|
|
7783
|
-
const
|
|
7751
|
+
const Mo = {
|
|
7784
7752
|
name: "w-transition-fade",
|
|
7785
7753
|
props: {
|
|
7786
7754
|
appear: { type: Boolean },
|
|
7787
7755
|
duration: { type: [Number, String] }
|
|
7788
7756
|
}
|
|
7789
|
-
},
|
|
7790
|
-
function
|
|
7757
|
+
}, Eo = /* @__PURE__ */ v(Mo, [["render", zo]]);
|
|
7758
|
+
function Ao(e, t, i, o, n, l) {
|
|
7791
7759
|
return s(), g(O, B({ name: "scale" }, e.$props), {
|
|
7792
7760
|
default: m(() => [
|
|
7793
7761
|
c(e.$slots, "default")
|
|
@@ -7795,14 +7763,14 @@ function Eo(e, t, i, o, n, l) {
|
|
|
7795
7763
|
_: 3
|
|
7796
7764
|
}, 16);
|
|
7797
7765
|
}
|
|
7798
|
-
const
|
|
7766
|
+
const Wo = {
|
|
7799
7767
|
name: "w-transition-scale",
|
|
7800
7768
|
props: {
|
|
7801
7769
|
appear: { type: Boolean },
|
|
7802
7770
|
duration: { type: [Number, String] }
|
|
7803
7771
|
}
|
|
7804
|
-
},
|
|
7805
|
-
function
|
|
7772
|
+
}, Ko = /* @__PURE__ */ v(Wo, [["render", Ao]]);
|
|
7773
|
+
function No(e, t, i, o, n, l) {
|
|
7806
7774
|
return s(), g(O, B({ name: "scale-fade" }, e.$props), {
|
|
7807
7775
|
default: m(() => [
|
|
7808
7776
|
c(e.$slots, "default")
|
|
@@ -7810,14 +7778,14 @@ function Ko(e, t, i, o, n, l) {
|
|
|
7810
7778
|
_: 3
|
|
7811
7779
|
}, 16);
|
|
7812
7780
|
}
|
|
7813
|
-
const
|
|
7781
|
+
const Do = {
|
|
7814
7782
|
name: "w-transition-scale-fade",
|
|
7815
7783
|
props: {
|
|
7816
7784
|
appear: { type: Boolean },
|
|
7817
7785
|
duration: { type: [Number, String] }
|
|
7818
7786
|
}
|
|
7819
|
-
},
|
|
7820
|
-
function
|
|
7787
|
+
}, Ho = /* @__PURE__ */ v(Do, [["render", No]]);
|
|
7788
|
+
function Fo(e, t, i, o, n, l) {
|
|
7821
7789
|
return s(), g(O, B({ name: l.transitionName }, e.$props), {
|
|
7822
7790
|
default: m(() => [
|
|
7823
7791
|
c(e.$slots, "default")
|
|
@@ -7825,7 +7793,7 @@ function Ho(e, t, i, o, n, l) {
|
|
|
7825
7793
|
_: 3
|
|
7826
7794
|
}, 16, ["name"]);
|
|
7827
7795
|
}
|
|
7828
|
-
const
|
|
7796
|
+
const jo = {
|
|
7829
7797
|
name: "w-transition-slide",
|
|
7830
7798
|
props: {
|
|
7831
7799
|
appear: { type: Boolean },
|
|
@@ -7843,8 +7811,8 @@ const Fo = {
|
|
|
7843
7811
|
return `slide-${this.direction}`;
|
|
7844
7812
|
}
|
|
7845
7813
|
}
|
|
7846
|
-
},
|
|
7847
|
-
function
|
|
7814
|
+
}, Uo = /* @__PURE__ */ v(jo, [["render", Fo]]);
|
|
7815
|
+
function qo(e, t, i, o, n, l) {
|
|
7848
7816
|
return s(), g(O, B({ name: l.transitionName }, e.$props), {
|
|
7849
7817
|
default: m(() => [
|
|
7850
7818
|
c(e.$slots, "default")
|
|
@@ -7852,7 +7820,7 @@ function Uo(e, t, i, o, n, l) {
|
|
|
7852
7820
|
_: 3
|
|
7853
7821
|
}, 16, ["name"]);
|
|
7854
7822
|
}
|
|
7855
|
-
const
|
|
7823
|
+
const Xo = {
|
|
7856
7824
|
name: "w-transition-slide-fade",
|
|
7857
7825
|
props: {
|
|
7858
7826
|
appear: { type: Boolean },
|
|
@@ -7870,8 +7838,8 @@ const qo = {
|
|
|
7870
7838
|
return `slide-fade-${this.direction}`;
|
|
7871
7839
|
}
|
|
7872
7840
|
}
|
|
7873
|
-
},
|
|
7874
|
-
function
|
|
7841
|
+
}, Yo = /* @__PURE__ */ v(Xo, [["render", qo]]);
|
|
7842
|
+
function Go(e, t, i, o, n, l) {
|
|
7875
7843
|
return s(), g(O, B({ name: "twist" }, e.$props), {
|
|
7876
7844
|
default: m(() => [
|
|
7877
7845
|
c(e.$slots, "default")
|
|
@@ -7879,17 +7847,17 @@ function Yo(e, t, i, o, n, l) {
|
|
|
7879
7847
|
_: 3
|
|
7880
7848
|
}, 16);
|
|
7881
7849
|
}
|
|
7882
|
-
const
|
|
7850
|
+
const Jo = {
|
|
7883
7851
|
name: "w-transition-twist",
|
|
7884
7852
|
props: {
|
|
7885
7853
|
appear: { type: Boolean },
|
|
7886
7854
|
duration: { type: [Number, String] }
|
|
7887
7855
|
}
|
|
7888
|
-
},
|
|
7856
|
+
}, Qo = /* @__PURE__ */ v(Jo, [["render", Go]]), Zo = ["innerHTML"], ea = {
|
|
7889
7857
|
key: 1,
|
|
7890
7858
|
class: "ml1"
|
|
7891
7859
|
};
|
|
7892
|
-
function
|
|
7860
|
+
function ta(e, t, i, o, n, l) {
|
|
7893
7861
|
const a = $("w-button"), r = $("w-icon"), d = $("w-tree", !0);
|
|
7894
7862
|
return s(), u("ul", {
|
|
7895
7863
|
class: f(["w-tree", l.classes])
|
|
@@ -7939,8 +7907,8 @@ function ea(e, t, i, o, n, l) {
|
|
|
7939
7907
|
}, 1032, ["color"])) : p("", !0),
|
|
7940
7908
|
y("span", {
|
|
7941
7909
|
innerHTML: h.label
|
|
7942
|
-
}, null, 8,
|
|
7943
|
-
i.counts && (h.children || h.branch) ? (s(), u("span",
|
|
7910
|
+
}, null, 8, Zo),
|
|
7911
|
+
i.counts && (h.children || h.branch) ? (s(), u("span", ea, "(" + C(((_ = h.originalItem.children) == null ? void 0 : _.length) || 0) + ")", 1)) : p("", !0)
|
|
7944
7912
|
];
|
|
7945
7913
|
})
|
|
7946
7914
|
]),
|
|
@@ -7983,7 +7951,7 @@ function ea(e, t, i, o, n, l) {
|
|
|
7983
7951
|
], 2))), 128))
|
|
7984
7952
|
], 2);
|
|
7985
7953
|
}
|
|
7986
|
-
const
|
|
7954
|
+
const ia = {
|
|
7987
7955
|
name: "w-tree",
|
|
7988
7956
|
props: {
|
|
7989
7957
|
modelValue: { type: [Object, Array] },
|
|
@@ -8135,8 +8103,7 @@ const ta = {
|
|
|
8135
8103
|
*/
|
|
8136
8104
|
getPreviousSibling(e, t) {
|
|
8137
8105
|
for (; t && (e = e.previousElementSibling); )
|
|
8138
|
-
if (e.matches(t))
|
|
8139
|
-
return e;
|
|
8106
|
+
if (e.matches(t)) return e;
|
|
8140
8107
|
return !1;
|
|
8141
8108
|
},
|
|
8142
8109
|
/**
|
|
@@ -8147,8 +8114,7 @@ const ta = {
|
|
|
8147
8114
|
*/
|
|
8148
8115
|
getNextSibling(e, t) {
|
|
8149
8116
|
for (; t && (e = e.nextElementSibling); )
|
|
8150
|
-
if (e.matches(t))
|
|
8151
|
-
return e;
|
|
8117
|
+
if (e.matches(t)) return e;
|
|
8152
8118
|
return !1;
|
|
8153
8119
|
},
|
|
8154
8120
|
focusTreeItem(e) {
|
|
@@ -8183,63 +8149,63 @@ const ta = {
|
|
|
8183
8149
|
unmounted() {
|
|
8184
8150
|
this.dataPropUnwatch();
|
|
8185
8151
|
}
|
|
8186
|
-
},
|
|
8152
|
+
}, la = /* @__PURE__ */ v(ia, [["render", ta]]), sa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
8187
8153
|
__proto__: null,
|
|
8188
|
-
WAccordion:
|
|
8189
|
-
WAlert:
|
|
8190
|
-
WApp:
|
|
8191
|
-
WAutocomplete:
|
|
8192
|
-
WBadge:
|
|
8193
|
-
WBreadcrumbs:
|
|
8194
|
-
WButton:
|
|
8195
|
-
WCard:
|
|
8196
|
-
WCheckbox:
|
|
8197
|
-
WCheckboxes:
|
|
8198
|
-
WConfirm:
|
|
8199
|
-
WDatePicker:
|
|
8200
|
-
WDialog:
|
|
8201
|
-
WDivider:
|
|
8202
|
-
WDrawer:
|
|
8203
|
-
WFlex:
|
|
8204
|
-
WForm:
|
|
8205
|
-
WFormElement:
|
|
8206
|
-
WGrid:
|
|
8207
|
-
WIcon:
|
|
8208
|
-
WImage:
|
|
8209
|
-
WInput:
|
|
8210
|
-
WList:
|
|
8211
|
-
WMenu:
|
|
8212
|
-
WNotification:
|
|
8213
|
-
WOverlay:
|
|
8214
|
-
WParallax:
|
|
8215
|
-
WProgress:
|
|
8216
|
-
WRadio:
|
|
8217
|
-
WRadios:
|
|
8218
|
-
WRating:
|
|
8219
|
-
WScrollable:
|
|
8220
|
-
WSelect:
|
|
8221
|
-
WSlider:
|
|
8222
|
-
WSpinner:
|
|
8223
|
-
WSteps:
|
|
8224
|
-
WSwitch:
|
|
8225
|
-
WTable:
|
|
8226
|
-
WTabs:
|
|
8227
|
-
WTag:
|
|
8228
|
-
WTextarea:
|
|
8229
|
-
WTimeline:
|
|
8230
|
-
WToolbar:
|
|
8231
|
-
WTooltip:
|
|
8232
|
-
WTransitionBounce:
|
|
8233
|
-
WTransitionExpand:
|
|
8234
|
-
WTransitionFade:
|
|
8235
|
-
WTransitionScale:
|
|
8236
|
-
WTransitionScaleFade:
|
|
8237
|
-
WTransitionSlide:
|
|
8238
|
-
WTransitionSlideFade:
|
|
8239
|
-
WTransitionTwist:
|
|
8240
|
-
WTree:
|
|
8241
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
8242
|
-
U.install = (e, t = {}) =>
|
|
8154
|
+
WAccordion: Ge,
|
|
8155
|
+
WAlert: et,
|
|
8156
|
+
WApp: ft,
|
|
8157
|
+
WAutocomplete: ut,
|
|
8158
|
+
WBadge: yt,
|
|
8159
|
+
WBreadcrumbs: Ct,
|
|
8160
|
+
WButton: Rt,
|
|
8161
|
+
WCard: zt,
|
|
8162
|
+
WCheckbox: jt,
|
|
8163
|
+
WCheckboxes: Yt,
|
|
8164
|
+
WConfirm: Qt,
|
|
8165
|
+
WDatePicker: ti,
|
|
8166
|
+
WDialog: si,
|
|
8167
|
+
WDivider: ri,
|
|
8168
|
+
WDrawer: pi,
|
|
8169
|
+
WFlex: gi,
|
|
8170
|
+
WForm: ki,
|
|
8171
|
+
WFormElement: Si,
|
|
8172
|
+
WGrid: $i,
|
|
8173
|
+
WIcon: Ti,
|
|
8174
|
+
WImage: Oi,
|
|
8175
|
+
WInput: Fi,
|
|
8176
|
+
WList: qi,
|
|
8177
|
+
WMenu: Gi,
|
|
8178
|
+
WNotification: Zi,
|
|
8179
|
+
WOverlay: il,
|
|
8180
|
+
WParallax: al,
|
|
8181
|
+
WProgress: fl,
|
|
8182
|
+
WRadio: Cl,
|
|
8183
|
+
WRadios: $l,
|
|
8184
|
+
WRating: Rl,
|
|
8185
|
+
WScrollable: zl,
|
|
8186
|
+
WSelect: Dl,
|
|
8187
|
+
WSlider: is,
|
|
8188
|
+
WSpinner: as,
|
|
8189
|
+
WSteps: ds,
|
|
8190
|
+
WSwitch: bs,
|
|
8191
|
+
WTable: ao,
|
|
8192
|
+
WTabs: Ls,
|
|
8193
|
+
WTag: ho,
|
|
8194
|
+
WTextarea: bo,
|
|
8195
|
+
WTimeline: Co,
|
|
8196
|
+
WToolbar: _o,
|
|
8197
|
+
WTooltip: Io,
|
|
8198
|
+
WTransitionBounce: Ro,
|
|
8199
|
+
WTransitionExpand: xo,
|
|
8200
|
+
WTransitionFade: Eo,
|
|
8201
|
+
WTransitionScale: Ko,
|
|
8202
|
+
WTransitionScaleFade: Ho,
|
|
8203
|
+
WTransitionSlide: Uo,
|
|
8204
|
+
WTransitionSlideFade: Yo,
|
|
8205
|
+
WTransitionTwist: Qo,
|
|
8206
|
+
WTree: la
|
|
8207
|
+
}, Symbol.toStringTag, { value: "Module" })), oa = U.install;
|
|
8208
|
+
U.install = (e, t = {}) => oa.call(U, e, { components: sa, ...t });
|
|
8243
8209
|
export {
|
|
8244
8210
|
U as default
|
|
8245
8211
|
};
|