wave-ui 3.20.0 → 3.21.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/wave-ui.cjs.js +1 -1
- package/dist/wave-ui.css +1 -1
- package/dist/wave-ui.es.js +960 -976
- package/dist/wave-ui.umd.js +1 -1
- package/package.json +18 -18
- package/src/wave-ui/components/w-scrollable.vue +184 -174
- package/src/wave-ui/scss/_base.scss +11 -0
- package/src/wave-ui/scss/_colors.scss +9 -0
- package/src/wave-ui/scss/_layout.scss +9 -0
- package/src/wave-ui/scss/variables/_variables.scss +7 -0
- package/src/wave-ui/utils/colors.js +4 -4
- package/src/wave-ui/utils/dynamic-css.js +2 -2
package/dist/wave-ui.es.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var Xe = Object.defineProperty;
|
|
2
|
+
var Ce = (e) => {
|
|
3
3
|
throw TypeError(e);
|
|
4
4
|
};
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
import { reactive as
|
|
9
|
-
const
|
|
5
|
+
var Ye = (e, t, i) => t in e ? Xe(e, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[t] = i;
|
|
6
|
+
var G = (e, t, i) => Ye(e, typeof t != "symbol" ? t + "" : t, i), Se = (e, t, i) => t.has(e) || Ce("Cannot " + i);
|
|
7
|
+
var ie = (e, t, i) => (Se(e, t, "read from private field"), i ? i.call(e) : t.get(e)), ue = (e, t, i) => t.has(e) ? Ce("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, i), he = (e, t, i, s) => (Se(e, t, "write to private field"), s ? s.call(e, i) : t.set(e, i), i);
|
|
8
|
+
import { reactive as ae, resolveComponent as V, createBlock as b, openBlock as o, Teleport as Ge, createVNode as L, TransitionGroup as fe, normalizeClass as m, withCtx as f, createElementBlock as u, Fragment as v, renderList as O, createCommentVNode as p, mergeProps as $, createElementVNode as k, h as Je, render as Qe, inject as Ze, withKeys as N, renderSlot as c, withModifiers as A, createTextVNode as _, toDisplayString as S, normalizeStyle as x, toHandlers as ge, Transition as P, resolveDynamicComponent as R, normalizeProps as ce, resolveDirective as xe, withDirectives as F, createSlots as ne, vShow as be, vModelText as Oe, vModelDynamic as et, ref as D, computed as H, onMounted as tt, onBeforeUnmount as it, KeepAlive as lt } from "vue";
|
|
9
|
+
const st = ae({
|
|
10
10
|
on: "#app",
|
|
11
11
|
// Sets the Wave UI root node. If not found, will default to `body`.
|
|
12
12
|
breakpoints: {
|
|
@@ -66,15 +66,15 @@ const Pe = Z({
|
|
|
66
66
|
},
|
|
67
67
|
presets: {}
|
|
68
68
|
// User presets for each component.
|
|
69
|
-
}),
|
|
69
|
+
}), Pe = (e, t = st) => {
|
|
70
70
|
if (!Object.keys(t).length) t = Object.assign(t, e);
|
|
71
71
|
else
|
|
72
72
|
for (const i in e) {
|
|
73
73
|
const s = e[i];
|
|
74
|
-
typeof s == "object" && typeof t[i] == "object" ?
|
|
74
|
+
typeof s == "object" && typeof t[i] == "object" ? Pe(e[i], t[i]) : t[i] = s;
|
|
75
75
|
}
|
|
76
76
|
return t;
|
|
77
|
-
},
|
|
77
|
+
}, J = (e) => console.warn(`Wave UI: ${e}`), X = (e) => console.error(`Wave UI: ${e}`), ot = (e) => {
|
|
78
78
|
["light", "dark"].forEach((t) => {
|
|
79
79
|
var s, n, l;
|
|
80
80
|
const i = e.colors[t];
|
|
@@ -85,13 +85,13 @@ const Pe = Z({
|
|
|
85
85
|
if (h) {
|
|
86
86
|
h.length === 3 && (d.color = `${h[0]}${h[0]}${h[1]}${h[1]}${h[2]}${h[2]}`);
|
|
87
87
|
for (let y = 1; y <= 6; y++) {
|
|
88
|
-
const
|
|
89
|
-
i.shades[`${d.label}-light${y}`] =
|
|
88
|
+
const w = ht(`#${d.color}`, y * ((r == null ? void 0 : r.lightIncrement) ?? 16) + ((r == null ? void 0 : r.lightOffset) ?? 0)), g = ct(`#${d.color}`, y * ((r == null ? void 0 : r.darkIncrement) ?? 12.4) + ((r == null ? void 0 : r.darkOffset) ?? 0));
|
|
89
|
+
i.shades[`${d.label}-light${y}`] = w, i.shades[`${d.label}-dark${y}`] = g;
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
93
|
});
|
|
94
|
-
},
|
|
94
|
+
}, Be = (e, t) => {
|
|
95
95
|
const i = {
|
|
96
96
|
...t.reduce((s, n) => {
|
|
97
97
|
s[n.label] = n.color;
|
|
@@ -101,27 +101,27 @@ const Pe = Z({
|
|
|
101
101
|
};
|
|
102
102
|
return delete i.shades, i;
|
|
103
103
|
};
|
|
104
|
-
function
|
|
104
|
+
function le(e, t, i) {
|
|
105
105
|
return Math.min(Math.max(e, t), i);
|
|
106
106
|
}
|
|
107
|
-
function
|
|
107
|
+
function se(e) {
|
|
108
108
|
const t = e.toString(16);
|
|
109
|
-
return t.length === 1 && `0${t}` || t.length === 2 && t ||
|
|
109
|
+
return t.length === 1 && `0${t}` || t.length === 2 && t || X(`expected value from 0~255, got: ${e}`) || "";
|
|
110
110
|
}
|
|
111
|
-
function
|
|
111
|
+
function at(e) {
|
|
112
112
|
return /^#[0-9a-f]{6}([0-9a-f]{2})?$/i.test(e);
|
|
113
113
|
}
|
|
114
|
-
function
|
|
114
|
+
function nt(e) {
|
|
115
115
|
return /^#[0-9a-f]{3}([0-9a-f])?$/i.test(e);
|
|
116
116
|
}
|
|
117
|
-
function
|
|
117
|
+
function rt(e) {
|
|
118
118
|
return `#${e.substring(1).split("").map((t) => `${t}${t}`).join("")}`;
|
|
119
119
|
}
|
|
120
|
-
function
|
|
121
|
-
return
|
|
120
|
+
function dt(e) {
|
|
121
|
+
return at(e) && e || nt(e) && rt(e) || X(`expected color hex string, got '${e}'`) || "";
|
|
122
122
|
}
|
|
123
|
-
function
|
|
124
|
-
const t =
|
|
123
|
+
function _e(e) {
|
|
124
|
+
const t = dt(e), i = parseInt(t.substring(1, 3), 16), s = parseInt(t.substring(3, 5), 16), n = parseInt(t.substring(5, 7), 16), l = t.length === 9 ? parseInt(t.substring(7, 9), 16) / 255 : 1;
|
|
125
125
|
return {
|
|
126
126
|
red: i,
|
|
127
127
|
green: s,
|
|
@@ -130,20 +130,20 @@ function ce(e) {
|
|
|
130
130
|
hasAlpha: t.length === 9
|
|
131
131
|
};
|
|
132
132
|
}
|
|
133
|
-
function
|
|
134
|
-
return `#${
|
|
133
|
+
function ut(e, t, i, s) {
|
|
134
|
+
return `#${se(e)}${se(t)}${se(i)}${s ? se(Math.floor(s * 255)) : ""}`;
|
|
135
135
|
}
|
|
136
|
-
function
|
|
137
|
-
const s =
|
|
138
|
-
return s.hasAlpha || n.hasAlpha ||
|
|
136
|
+
function ze(e, t, i = 50) {
|
|
137
|
+
const s = _e(e), n = _e(t), l = le(i, 0, 100) / 100, a = 2 * l - 1, r = s.alpha - n.alpha, d = ((a * r === -1 ? a : (a + r) / (1 + a * r)) + 1) / 2, h = 1 - d, y = le(Math.round(s.red * d + n.red * h), 0, 255), w = le(Math.round(s.green * d + n.green * h), 0, 255), g = le(Math.round(s.blue * d + n.blue * h), 0, 255), B = s.alpha * l + n.alpha * (1 - l), I = [y, w, g];
|
|
138
|
+
return (s.hasAlpha || n.hasAlpha || B !== 1) && I.push(B), ut(...I);
|
|
139
139
|
}
|
|
140
|
-
function
|
|
141
|
-
return
|
|
140
|
+
function ht(e, t = 15) {
|
|
141
|
+
return ze("#ffffff", e, t);
|
|
142
142
|
}
|
|
143
|
-
function
|
|
144
|
-
return
|
|
143
|
+
function ct(e, t = 12.4) {
|
|
144
|
+
return ze("#000000", e, t);
|
|
145
145
|
}
|
|
146
|
-
const
|
|
146
|
+
const $e = [
|
|
147
147
|
{
|
|
148
148
|
label: "pink",
|
|
149
149
|
color: "#e91e63",
|
|
@@ -490,30 +490,30 @@ const me = [
|
|
|
490
490
|
{ label: "white", color: "#fff" },
|
|
491
491
|
{ label: "transparent", color: "transparent" },
|
|
492
492
|
{ label: "inherit", color: "inherit" }
|
|
493
|
-
],
|
|
493
|
+
], Q = {
|
|
494
494
|
cssScope: ".w-app",
|
|
495
495
|
baseIncrement: 4
|
|
496
496
|
};
|
|
497
|
-
let
|
|
498
|
-
const
|
|
499
|
-
var
|
|
497
|
+
let pe = { keys: [], values: [] }, Ie = null;
|
|
498
|
+
const pt = (e, t) => {
|
|
499
|
+
var B;
|
|
500
500
|
let i = "";
|
|
501
|
-
const s = {}, { info: n, warning: l, success: a, error: r, shades: d, ...h } = e, { cssScope: y } =
|
|
501
|
+
const s = {}, { info: n, warning: l, success: a, error: r, shades: d, ...h } = e, { cssScope: y } = Q;
|
|
502
502
|
for (const I in h)
|
|
503
503
|
i += `${y} .${I}--bg{background-color:var(--w-${I}-color)}${y} .${I}{color:var(--w-${I}-color)}`;
|
|
504
504
|
for (const I in d)
|
|
505
505
|
i += `${y} .${I}--bg{background-color:${d[I]}}${y} .${I}{color:${d[I]}}`;
|
|
506
|
-
const
|
|
507
|
-
for (const I in
|
|
506
|
+
const w = { ...h, info: n, warning: l, success: a, error: r };
|
|
507
|
+
for (const I in w) s[I] = ((B = w[I]) == null ? void 0 : B.color) ?? w[I];
|
|
508
508
|
if (t)
|
|
509
509
|
for (const I in d) s[I] = d[I];
|
|
510
510
|
let g = "";
|
|
511
|
-
return Object.entries(s).forEach(([I,
|
|
512
|
-
g += `--w-${I}-color: ${
|
|
511
|
+
return Object.entries(s).forEach(([I, E]) => {
|
|
512
|
+
g += `--w-${I}-color: ${E};`;
|
|
513
513
|
}), `:root{${g}}${i}`;
|
|
514
|
-
},
|
|
514
|
+
}, mt = (e, t) => {
|
|
515
515
|
let i = "";
|
|
516
|
-
const { cssScope: s } =
|
|
516
|
+
const { cssScope: s } = Q;
|
|
517
517
|
return e.forEach(({ min: n, label: l }) => {
|
|
518
518
|
if (l === "xs")
|
|
519
519
|
for (let a = 0; a < t; a++)
|
|
@@ -525,9 +525,9 @@ const De = (e, t) => {
|
|
|
525
525
|
i += "}";
|
|
526
526
|
}
|
|
527
527
|
}), i;
|
|
528
|
-
},
|
|
528
|
+
}, ft = (e) => {
|
|
529
529
|
let t = "";
|
|
530
|
-
const { cssScope: i, baseIncrement: s } =
|
|
530
|
+
const { cssScope: i, baseIncrement: s } = Q, n = [
|
|
531
531
|
"show{display:block}",
|
|
532
532
|
"hide{display:none}",
|
|
533
533
|
"d-flex{display:flex}",
|
|
@@ -574,11 +574,11 @@ const De = (e, t) => {
|
|
|
574
574
|
a !== "xl" && (t += `@media (max-width:${r}px){` + n.map((d) => `${i} .${a}d-${d}`).join("") + // w-grid columns and gap.
|
|
575
575
|
l.map((d, h) => `.w-grid.${a}d-columns${h + 1}{grid-template-columns:repeat(${h + 1},1fr);}`).join("") + l.map((d, h) => `.w-flex.${a}d-gap${h + 1},.w-grid.${a}d-gap${h + 1}{gap:${(h + 1) * s}px;}`).join("") + `.w-flex.${a}d-gap0,.w-flex.${a}d-gap0{gap:0}}`);
|
|
576
576
|
}), t;
|
|
577
|
-
},
|
|
578
|
-
const t = window.innerWidth, i =
|
|
577
|
+
}, Ve = (e) => {
|
|
578
|
+
const t = window.innerWidth, i = pe.values.slice(0);
|
|
579
579
|
i.push(t), i.sort((n, l) => n - l);
|
|
580
|
-
const s =
|
|
581
|
-
s !==
|
|
580
|
+
const s = pe.keys[i.indexOf(t)] || "xl";
|
|
581
|
+
s !== Ie && (Ie = s, e.breakpoint = {
|
|
582
582
|
name: s,
|
|
583
583
|
xs: s === "xs",
|
|
584
584
|
sm: s === "sm",
|
|
@@ -587,43 +587,43 @@ const De = (e, t) => {
|
|
|
587
587
|
xl: s === "xl",
|
|
588
588
|
width: t
|
|
589
589
|
}), e.breakpoint.width = window.innerWidth;
|
|
590
|
-
},
|
|
590
|
+
}, gt = (e) => {
|
|
591
591
|
const { config: t } = e;
|
|
592
|
-
if (
|
|
592
|
+
if (pe = { keys: Object.keys(t.breakpoints), values: Object.values(t.breakpoints) }, !document.getElementById("wave-ui-styles")) {
|
|
593
593
|
const i = document.createElement("style");
|
|
594
|
-
i.id = "wave-ui-styles", i.innerHTML =
|
|
594
|
+
i.id = "wave-ui-styles", i.innerHTML = yt(t);
|
|
595
595
|
const s = document.head.querySelectorAll('style,link[rel="stylesheet"]')[0];
|
|
596
596
|
s ? s.before(i) : document.head.appendChild(i);
|
|
597
597
|
}
|
|
598
|
-
|
|
599
|
-
},
|
|
598
|
+
Ve(e), window.addEventListener("resize", () => Ve(e));
|
|
599
|
+
}, bt = (e, t, i) => {
|
|
600
600
|
if (!document.getElementById("wave-ui-colors")) {
|
|
601
601
|
const s = document.createElement("style");
|
|
602
|
-
s.id = "wave-ui-colors", s.innerHTML =
|
|
602
|
+
s.id = "wave-ui-colors", s.innerHTML = pt(e, t);
|
|
603
603
|
const n = document.head.querySelectorAll('style,link[rel="stylesheet"]')[0];
|
|
604
604
|
n ? n.before(s) : document.head.appendChild(s);
|
|
605
605
|
}
|
|
606
|
-
},
|
|
606
|
+
}, yt = (e) => {
|
|
607
607
|
const t = Object.entries(e.breakpoints), i = t.map(([l, a], r) => {
|
|
608
608
|
const [, d = 0] = t[r - 1] || [];
|
|
609
609
|
return { label: l, min: d ? d + 1 : 0, max: a };
|
|
610
610
|
}), s = getComputedStyle(document.documentElement);
|
|
611
|
-
|
|
611
|
+
Q.cssScope = s.getPropertyValue("--w-css-scope"), Q.baseIncrement = parseInt(s.getPropertyValue("--w-base-increment"));
|
|
612
612
|
let n = "";
|
|
613
|
-
return n +=
|
|
614
|
-
},
|
|
615
|
-
function
|
|
616
|
-
const a =
|
|
617
|
-
return o(), b(
|
|
618
|
-
|
|
613
|
+
return n += mt(i, e.css.grid), e.css.breakpointLayoutClasses && (n += ft(i)), n;
|
|
614
|
+
}, wt = ["innerHTML"];
|
|
615
|
+
function kt(e, t, i, s, n, l) {
|
|
616
|
+
const a = V("w-alert");
|
|
617
|
+
return o(), b(Ge, { to: ".w-app" }, [
|
|
618
|
+
L(fe, {
|
|
619
619
|
class: m(["w-notification-manager", { "w-notification-manager--left": l.conf.align === "left" }]),
|
|
620
620
|
tag: "div",
|
|
621
621
|
name: l.transition,
|
|
622
622
|
appear: ""
|
|
623
623
|
}, {
|
|
624
624
|
default: f(() => [
|
|
625
|
-
(o(!0), u(v, null,
|
|
626
|
-
r._value ? (o(), b(a,
|
|
625
|
+
(o(!0), u(v, null, O(l.notifications, (r) => (o(), u(v, null, [
|
|
626
|
+
r._value ? (o(), b(a, $({
|
|
627
627
|
class: "white--bg",
|
|
628
628
|
key: r._uid,
|
|
629
629
|
modelValue: r._value,
|
|
@@ -632,9 +632,9 @@ function Ye(e, t, i, s, n, l) {
|
|
|
632
632
|
ref_for: !0
|
|
633
633
|
}, l.notifProps(r)), {
|
|
634
634
|
default: f(() => [
|
|
635
|
-
|
|
635
|
+
k("div", {
|
|
636
636
|
innerHTML: r.message
|
|
637
|
-
}, null, 8,
|
|
637
|
+
}, null, 8, wt)
|
|
638
638
|
]),
|
|
639
639
|
_: 2
|
|
640
640
|
}, 1040, ["modelValue", "onUpdate:modelValue", "onClose"])) : p("", !0)
|
|
@@ -649,7 +649,7 @@ const C = (e, t) => {
|
|
|
649
649
|
for (const [s, n] of t)
|
|
650
650
|
i[s] = n;
|
|
651
651
|
return i;
|
|
652
|
-
},
|
|
652
|
+
}, vt = {
|
|
653
653
|
name: "w-notification-manager",
|
|
654
654
|
computed: {
|
|
655
655
|
conf() {
|
|
@@ -671,23 +671,23 @@ const C = (e, t) => {
|
|
|
671
671
|
return l.dismiss && (l.dismiss = !0), l;
|
|
672
672
|
}
|
|
673
673
|
}
|
|
674
|
-
},
|
|
675
|
-
var
|
|
676
|
-
const
|
|
674
|
+
}, Ct = /* @__PURE__ */ C(vt, [["render", kt]]);
|
|
675
|
+
var Y;
|
|
676
|
+
const U = class U {
|
|
677
677
|
constructor() {
|
|
678
|
-
|
|
678
|
+
G(this, "notifications");
|
|
679
679
|
// Private fields.
|
|
680
|
-
|
|
680
|
+
G(this, "_uid");
|
|
681
681
|
// A unique ID for each notification.
|
|
682
|
-
|
|
683
|
-
if (
|
|
682
|
+
G(this, "_notificationDefaults");
|
|
683
|
+
if (ie(U, Y)) return ie(U, Y);
|
|
684
684
|
this.notifications = [], this._uid = 0, this._notificationDefaults = {
|
|
685
685
|
_uid: 0,
|
|
686
686
|
_value: !0,
|
|
687
687
|
message: "",
|
|
688
688
|
timeout: 4e3,
|
|
689
689
|
dismiss: !0
|
|
690
|
-
},
|
|
690
|
+
}, he(U, Y, this);
|
|
691
691
|
}
|
|
692
692
|
notify(...t) {
|
|
693
693
|
let i = {
|
|
@@ -710,21 +710,21 @@ const K = class K {
|
|
|
710
710
|
this.notifications = this.notifications.filter((i) => i._uid !== t);
|
|
711
711
|
}
|
|
712
712
|
};
|
|
713
|
-
|
|
714
|
-
let
|
|
715
|
-
const
|
|
713
|
+
Y = new WeakMap(), ue(U, Y);
|
|
714
|
+
let me = U;
|
|
715
|
+
const St = (e) => {
|
|
716
716
|
const t = document.createElement("div");
|
|
717
717
|
document.body.appendChild(t);
|
|
718
|
-
const i =
|
|
719
|
-
i.appContext = e._context,
|
|
718
|
+
const i = Je(Ct);
|
|
719
|
+
i.appContext = e._context, Qe(i, t), t.remove();
|
|
720
720
|
};
|
|
721
|
-
let
|
|
722
|
-
const
|
|
721
|
+
let Te = !1;
|
|
722
|
+
const Bt = (e) => {
|
|
723
723
|
const t = window.matchMedia("(prefers-color-scheme: dark)");
|
|
724
724
|
e.preferredTheme = t.matches ? "dark" : "light", e.switchTheme(e.preferredTheme), t.addEventListener("change", (i) => {
|
|
725
725
|
e.preferredTheme = i.matches ? "dark" : "light", e.switchTheme(e.preferredTheme);
|
|
726
726
|
});
|
|
727
|
-
},
|
|
727
|
+
}, _t = (e, t) => {
|
|
728
728
|
var i, s;
|
|
729
729
|
for (const n in t)
|
|
730
730
|
if ((i = e.props) != null && i[n])
|
|
@@ -737,16 +737,16 @@ const Ze = (e) => {
|
|
|
737
737
|
a.props[n].default = t[n], l = !0;
|
|
738
738
|
break;
|
|
739
739
|
}
|
|
740
|
-
l ||
|
|
740
|
+
l || J(`Attempting to set a preset on a prop that doesn't exist: \`${e.name}.${n}\`.`);
|
|
741
741
|
}
|
|
742
742
|
}
|
|
743
743
|
};
|
|
744
|
-
var
|
|
745
|
-
const
|
|
744
|
+
var ee;
|
|
745
|
+
const q = class q {
|
|
746
746
|
constructor(t, i = {}) {
|
|
747
747
|
// Exposed as a global object and also `app.provide`d.
|
|
748
748
|
// Accessible from this.$waveui, or inject('$waveui').
|
|
749
|
-
|
|
749
|
+
G(this, "$waveui", {
|
|
750
750
|
breakpoint: {
|
|
751
751
|
name: "",
|
|
752
752
|
xs: !1,
|
|
@@ -781,7 +781,7 @@ const N = class N {
|
|
|
781
781
|
var s, n;
|
|
782
782
|
this.theme = t, document.documentElement.setAttribute("data-theme", t), (n = (s = document.head.querySelector("#wave-ui-colors")) == null ? void 0 : s.remove) == null || n.call(s);
|
|
783
783
|
const i = this.config.colors[this.theme];
|
|
784
|
-
|
|
784
|
+
bt(i, this.config.css.colorShadeCssVariables), this.colors = Be(i, $e);
|
|
785
785
|
},
|
|
786
786
|
/**
|
|
787
787
|
* Set the classes of the app element. (Callable from this.$waveui)
|
|
@@ -793,15 +793,15 @@ const N = class N {
|
|
|
793
793
|
i && (i.className = "w-app", i.classList.add(...t));
|
|
794
794
|
}
|
|
795
795
|
});
|
|
796
|
-
if (
|
|
797
|
-
if (this.$waveui._notificationManager = new
|
|
796
|
+
if (ie(q, ee)) return;
|
|
797
|
+
if (this.$waveui._notificationManager = new me(), i.theme || (i.theme = "light"), i.colors) {
|
|
798
798
|
const a = { ...i.colors };
|
|
799
799
|
i.colors.light || (i.colors.light = a), i.colors.dark || (i.colors.dark = a), i.colors = { light: i.colors.light, dark: i.colors.dark };
|
|
800
800
|
}
|
|
801
801
|
let { components: s, ...n } = i;
|
|
802
|
-
n = this.$waveui.config =
|
|
803
|
-
const l =
|
|
804
|
-
t.config.globalProperties.$waveui = l, t.provide("$waveui", l), n.theme !== "auto" && (this.$waveui.colors =
|
|
802
|
+
n = this.$waveui.config = Pe(n), n.css.colorShades && ot(n);
|
|
803
|
+
const l = ae(this.$waveui);
|
|
804
|
+
t.config.globalProperties.$waveui = l, t.provide("$waveui", l), n.theme !== "auto" && (this.$waveui.colors = Be(n.colors[n.theme], $e));
|
|
805
805
|
}
|
|
806
806
|
static install(t, i = {}) {
|
|
807
807
|
var n;
|
|
@@ -819,34 +819,34 @@ const N = class N {
|
|
|
819
819
|
const { components: s = {} } = i || {};
|
|
820
820
|
for (const l in s) {
|
|
821
821
|
const a = s[l];
|
|
822
|
-
(n = i.presets) != null && n[a.name] &&
|
|
822
|
+
(n = i.presets) != null && n[a.name] && _t(a, i.presets[a.name]), t.component(a.name, a);
|
|
823
823
|
}
|
|
824
824
|
t.mixin({
|
|
825
825
|
// Add a mixin to capture the first mounted hook, trigger the Wave UI init then unregister the mixin straight away.
|
|
826
826
|
beforeMount() {
|
|
827
|
-
if (!
|
|
828
|
-
|
|
829
|
-
const l =
|
|
830
|
-
(document.querySelector(a.on) || document.body).classList.add("w-app"), a.theme === "auto" ?
|
|
827
|
+
if (!Te) {
|
|
828
|
+
Te = !0;
|
|
829
|
+
const l = Ze("$waveui"), { config: a } = l;
|
|
830
|
+
(document.querySelector(a.on) || document.body).classList.add("w-app"), a.theme === "auto" ? Bt(l) : l.switchTheme(a.theme, !0), gt(l), St(t), t._context.mixins.find((d) => d.mounted && (d.mounted = void 0));
|
|
831
831
|
}
|
|
832
832
|
}
|
|
833
|
-
}), new
|
|
833
|
+
}), new q(t, i), he(q, ee, !0);
|
|
834
834
|
}
|
|
835
835
|
};
|
|
836
|
-
|
|
837
|
-
let
|
|
838
|
-
const
|
|
839
|
-
function
|
|
840
|
-
const a =
|
|
836
|
+
ee = new WeakMap(), ue(q, ee, !1);
|
|
837
|
+
let Z = q;
|
|
838
|
+
const z = (e = {}) => (typeof e == "string" ? e = { [e]: !0 } : Array.isArray(e) && (e = { [e.join(" ")]: !0 }), e), $t = ["aria-expanded"], It = ["tabindex"], Vt = ["innerHTML"], Tt = ["innerHTML"];
|
|
839
|
+
function Lt(e, t, i, s, n, l) {
|
|
840
|
+
const a = V("w-button"), r = V("w-transition-expand");
|
|
841
841
|
return o(), u("div", {
|
|
842
842
|
class: m(["w-accordion__item", l.itemClasses]),
|
|
843
843
|
"aria-expanded": l.accordionItem._expanded ? "true" : "false"
|
|
844
844
|
}, [
|
|
845
|
-
|
|
845
|
+
k("div", {
|
|
846
846
|
class: m(["w-accordion__item-title", l.titleClasses]),
|
|
847
847
|
onClick: t[4] || (t[4] = (d) => !l.accordionItem._disabled && l.toggleItem(l.accordionItem, d)),
|
|
848
848
|
onFocus: t[5] || (t[5] = (d) => e.$emit("focus", l.accordionItem)),
|
|
849
|
-
onKeypress: t[6] || (t[6] =
|
|
849
|
+
onKeypress: t[6] || (t[6] = N((d) => !l.accordionItem._disabled && l.toggleItem(l.accordionItem, d), ["enter"])),
|
|
850
850
|
tabindex: !l.accordionItem._disabled && 0
|
|
851
851
|
}, [
|
|
852
852
|
l.options.expandIcon && !l.options.expandIconRight ? (o(), b(a, {
|
|
@@ -857,31 +857,31 @@ function ot(e, t, i, s, n, l) {
|
|
|
857
857
|
disabled: l.accordionItem._disabled || null,
|
|
858
858
|
tabindex: -1,
|
|
859
859
|
text: "",
|
|
860
|
-
onKeypress: t[0] || (t[0] =
|
|
860
|
+
onKeypress: t[0] || (t[0] = A(() => {
|
|
861
861
|
}, ["stop"])),
|
|
862
|
-
onClick: t[1] || (t[1] =
|
|
862
|
+
onClick: t[1] || (t[1] = A((d) => !l.accordionItem._disabled && l.toggleItem(l.accordionItem, d), ["stop"]))
|
|
863
863
|
}, null, 8, ["icon", "icon-props", "disabled", "class"])) : p("", !0),
|
|
864
864
|
c(e.$slots, "title", {
|
|
865
865
|
item: l.getOriginalItem(l.accordionItem),
|
|
866
866
|
expanded: l.accordionItem._expanded,
|
|
867
867
|
index: l.accordionItem._index + 1
|
|
868
868
|
}, () => [
|
|
869
|
-
|
|
869
|
+
k("div", {
|
|
870
870
|
class: "grow",
|
|
871
871
|
innerHTML: l.accordionItem[l.options.itemTitleKey]
|
|
872
|
-
}, null, 8,
|
|
872
|
+
}, null, 8, Vt)
|
|
873
873
|
]),
|
|
874
874
|
l.options.expandIcon && l.options.expandIconRight ? (o(), b(a, {
|
|
875
875
|
key: 1,
|
|
876
876
|
class: m(["w-accordion__expand-icon", { "w-accordion__expand-icon--expanded": l.accordionItem._expanded, "w-accordion__expand-icon--rotate90": l.options.expandIconRotate90 }]),
|
|
877
877
|
icon: l.accordionItem._expanded && l.options.collapseIcon || l.options.expandIcon,
|
|
878
878
|
text: "",
|
|
879
|
-
onKeypress: t[2] || (t[2] =
|
|
879
|
+
onKeypress: t[2] || (t[2] = A(() => {
|
|
880
880
|
}, ["stop"])),
|
|
881
|
-
onClick: t[3] || (t[3] =
|
|
881
|
+
onClick: t[3] || (t[3] = A((d) => !l.accordionItem._disabled && l.toggleItem(l.accordionItem, d), ["stop"]))
|
|
882
882
|
}, null, 8, ["icon", "class"])) : p("", !0)
|
|
883
|
-
], 42,
|
|
884
|
-
|
|
883
|
+
], 42, It),
|
|
884
|
+
L(r, {
|
|
885
885
|
y: "",
|
|
886
886
|
onAfterLeave: t[7] || (t[7] = (d) => l.onEndOfCollapse(l.accordionItem)),
|
|
887
887
|
duration: l.options.duration
|
|
@@ -896,17 +896,17 @@ function ot(e, t, i, s, n, l) {
|
|
|
896
896
|
expanded: l.accordionItem._expanded,
|
|
897
897
|
index: l.accordionItem._index + 1
|
|
898
898
|
}, () => [
|
|
899
|
-
|
|
899
|
+
k("div", {
|
|
900
900
|
innerHTML: l.accordionItem[l.options.itemContentKey]
|
|
901
|
-
}, null, 8,
|
|
901
|
+
}, null, 8, Tt)
|
|
902
902
|
])
|
|
903
903
|
], 2)) : p("", !0)
|
|
904
904
|
]),
|
|
905
905
|
_: 3
|
|
906
906
|
}, 8, ["duration"])
|
|
907
|
-
], 10,
|
|
907
|
+
], 10, $t);
|
|
908
908
|
}
|
|
909
|
-
const
|
|
909
|
+
const Rt = {
|
|
910
910
|
name: "w-accordion-item",
|
|
911
911
|
props: {
|
|
912
912
|
title: { type: String },
|
|
@@ -960,13 +960,13 @@ const at = {
|
|
|
960
960
|
beforeUnmount() {
|
|
961
961
|
this.unregisterItem(this._.uid);
|
|
962
962
|
}
|
|
963
|
-
},
|
|
964
|
-
function
|
|
965
|
-
const a =
|
|
963
|
+
}, Ee = /* @__PURE__ */ C(Rt, [["render", Lt]]);
|
|
964
|
+
function xt(e, t, i, s, n, l) {
|
|
965
|
+
const a = V("w-accordion-item");
|
|
966
966
|
return o(), u("div", {
|
|
967
967
|
class: m(["w-accordion", l.accordionClasses])
|
|
968
968
|
}, [
|
|
969
|
-
l.accordionItemsProvided ? c(e.$slots, "default", { key: 0 }) : (i.items || []).length ? (o(!0), u(v, { key: 1 },
|
|
969
|
+
l.accordionItemsProvided ? c(e.$slots, "default", { key: 0 }) : (i.items || []).length ? (o(!0), u(v, { key: 1 }, O(i.items.length ? i.items : e.accordionItems, (r, d) => (o(), b(a, {
|
|
970
970
|
key: d,
|
|
971
971
|
class: m(l.itemClasses),
|
|
972
972
|
title: r.title,
|
|
@@ -975,37 +975,37 @@ function nt(e, t, i, s, n, l) {
|
|
|
975
975
|
disabled: r.disabled || r._disabled,
|
|
976
976
|
onFocus: t[0] || (t[0] = (h) => e.$emit("focus", h))
|
|
977
977
|
}, {
|
|
978
|
-
title: f(({ item: h, expanded: y, index:
|
|
979
|
-
e.$slots[`item-title.${h.id ||
|
|
978
|
+
title: f(({ item: h, expanded: y, index: w }) => [
|
|
979
|
+
e.$slots[`item-title.${h.id || w}`] ? c(e.$slots, `item-title.${h.id || w}`, {
|
|
980
980
|
key: 0,
|
|
981
981
|
item: h,
|
|
982
982
|
expanded: y,
|
|
983
|
-
index:
|
|
983
|
+
index: w
|
|
984
984
|
}) : c(e.$slots, "item-title", {
|
|
985
985
|
key: 1,
|
|
986
986
|
item: h,
|
|
987
987
|
expanded: y,
|
|
988
|
-
index:
|
|
988
|
+
index: w
|
|
989
989
|
})
|
|
990
990
|
]),
|
|
991
|
-
content: f(({ item: h, expanded: y, index:
|
|
992
|
-
e.$slots[`item-content.${h.id ||
|
|
991
|
+
content: f(({ item: h, expanded: y, index: w }) => [
|
|
992
|
+
e.$slots[`item-content.${h.id || w}`] ? c(e.$slots, `item-content.${h.id || w}`, {
|
|
993
993
|
key: 0,
|
|
994
994
|
item: h,
|
|
995
995
|
expanded: y,
|
|
996
|
-
index:
|
|
996
|
+
index: w
|
|
997
997
|
}) : c(e.$slots, "item-content", {
|
|
998
998
|
key: 1,
|
|
999
999
|
item: h,
|
|
1000
1000
|
expanded: y,
|
|
1001
|
-
index:
|
|
1001
|
+
index: w
|
|
1002
1002
|
})
|
|
1003
1003
|
]),
|
|
1004
1004
|
_: 2
|
|
1005
1005
|
}, 1032, ["class", "title", "content", "expanded", "disabled"]))), 128)) : p("", !0)
|
|
1006
1006
|
], 2);
|
|
1007
1007
|
}
|
|
1008
|
-
const
|
|
1008
|
+
const Ot = {
|
|
1009
1009
|
name: "w-accordion",
|
|
1010
1010
|
props: {
|
|
1011
1011
|
modelValue: { type: Array },
|
|
@@ -1032,7 +1032,7 @@ const rt = {
|
|
|
1032
1032
|
dark: { type: Boolean },
|
|
1033
1033
|
light: { type: Boolean }
|
|
1034
1034
|
},
|
|
1035
|
-
components: { WAccordionItem:
|
|
1035
|
+
components: { WAccordionItem: Ee },
|
|
1036
1036
|
emits: ["input", "update:modelValue", "focus", "item-expand", "item-collapsed"],
|
|
1037
1037
|
// All provided to the WAccordionItem, not passed as prop since it could be used externally.
|
|
1038
1038
|
provide() {
|
|
@@ -1076,13 +1076,13 @@ const rt = {
|
|
|
1076
1076
|
};
|
|
1077
1077
|
},
|
|
1078
1078
|
itemClasses() {
|
|
1079
|
-
return
|
|
1079
|
+
return z(this.itemClass);
|
|
1080
1080
|
},
|
|
1081
1081
|
titleClasses() {
|
|
1082
|
-
return
|
|
1082
|
+
return z(this.titleClass);
|
|
1083
1083
|
},
|
|
1084
1084
|
contentClasses() {
|
|
1085
|
-
return
|
|
1085
|
+
return z(this.contentClass);
|
|
1086
1086
|
}
|
|
1087
1087
|
},
|
|
1088
1088
|
methods: {
|
|
@@ -1116,7 +1116,7 @@ const rt = {
|
|
|
1116
1116
|
}
|
|
1117
1117
|
},
|
|
1118
1118
|
created() {
|
|
1119
|
-
isNaN(this.items) ||
|
|
1119
|
+
isNaN(this.items) || X(
|
|
1120
1120
|
"Since version 3.17.3, the w-accordion `items` prop can no longer be a Number.\n Please use the w-accordion-item component instead for advanced custom rendering.\n https://antoniandre.github.io/wave-ui/w-accordion#w-accordion-item"
|
|
1121
1121
|
);
|
|
1122
1122
|
},
|
|
@@ -1132,9 +1132,9 @@ const rt = {
|
|
|
1132
1132
|
e.forEach((t, i) => (this.accordionItems[i] || {})._expanded = t);
|
|
1133
1133
|
}
|
|
1134
1134
|
}
|
|
1135
|
-
},
|
|
1136
|
-
function
|
|
1137
|
-
const a =
|
|
1135
|
+
}, Pt = /* @__PURE__ */ C(Ot, [["render", xt]]), zt = { class: "w-alert__content" };
|
|
1136
|
+
function Et(e, t, i, s, n, l) {
|
|
1137
|
+
const a = V("w-icon"), r = V("w-button");
|
|
1138
1138
|
return n.show ? (o(), u("div", {
|
|
1139
1139
|
key: 0,
|
|
1140
1140
|
class: m(["w-alert", l.classes])
|
|
@@ -1145,11 +1145,11 @@ function ht(e, t, i, s, n, l) {
|
|
|
1145
1145
|
class: "w-alert__icon"
|
|
1146
1146
|
}, {
|
|
1147
1147
|
default: f(() => [
|
|
1148
|
-
|
|
1148
|
+
_(S(l.type ? l.typeIcon : i.icon), 1)
|
|
1149
1149
|
]),
|
|
1150
1150
|
_: 1
|
|
1151
1151
|
})) : p("", !0),
|
|
1152
|
-
|
|
1152
|
+
k("div", zt, [
|
|
1153
1153
|
c(e.$slots, "default")
|
|
1154
1154
|
]),
|
|
1155
1155
|
i.dismiss ? (o(), b(r, {
|
|
@@ -1166,7 +1166,7 @@ function ht(e, t, i, s, n, l) {
|
|
|
1166
1166
|
], 64)) : c(e.$slots, "default", { key: 1 })
|
|
1167
1167
|
], 2)) : p("", !0);
|
|
1168
1168
|
}
|
|
1169
|
-
const
|
|
1169
|
+
const Mt = {
|
|
1170
1170
|
name: "w-alert",
|
|
1171
1171
|
props: {
|
|
1172
1172
|
modelValue: { default: !0 },
|
|
@@ -1248,24 +1248,24 @@ const ct = {
|
|
|
1248
1248
|
this.show = e;
|
|
1249
1249
|
}
|
|
1250
1250
|
}
|
|
1251
|
-
},
|
|
1252
|
-
function
|
|
1253
|
-
const a =
|
|
1251
|
+
}, At = /* @__PURE__ */ C(Mt, [["render", Et]]), Wt = { class: "w-autocomplete__selection" }, Kt = ["innerHTML"], Nt = ["innerHTML"], Dt = ["value"], Ht = ["onClick"], Ft = ["innerHTML"], jt = ["innerHTML"];
|
|
1252
|
+
function Ut(e, t, i, s, n, l) {
|
|
1253
|
+
const a = V("w-button"), r = V("w-transition-slide-fade");
|
|
1254
1254
|
return o(), u("div", {
|
|
1255
1255
|
class: m(["w-autocomplete", l.classes]),
|
|
1256
1256
|
onClick: t[5] || (t[5] = (...d) => l.onClick && l.onClick(...d)),
|
|
1257
|
-
style:
|
|
1257
|
+
style: x(e.$attrs.style)
|
|
1258
1258
|
}, [
|
|
1259
|
-
e.selection.length ? (o(!0), u(v, { key: 0 },
|
|
1259
|
+
e.selection.length ? (o(!0), u(v, { key: 0 }, O(e.selection, (d, h) => (o(), u("div", Wt, [
|
|
1260
1260
|
c(e.$slots, "selection", {
|
|
1261
1261
|
item: d,
|
|
1262
1262
|
unselect: (y) => l.unselectItem(y)
|
|
1263
1263
|
}, () => [
|
|
1264
|
-
|
|
1264
|
+
k("span", {
|
|
1265
1265
|
innerHTML: d[i.itemLabelKey]
|
|
1266
|
-
}, null, 8,
|
|
1267
|
-
|
|
1268
|
-
onClick:
|
|
1266
|
+
}, null, 8, Kt),
|
|
1267
|
+
L(a, {
|
|
1268
|
+
onClick: A((y) => l.unselectItem(h), ["stop"]),
|
|
1269
1269
|
icon: "wi-cross",
|
|
1270
1270
|
xs: "",
|
|
1271
1271
|
text: "",
|
|
@@ -1277,13 +1277,13 @@ function vt(e, t, i, s, n, l) {
|
|
|
1277
1277
|
key: 1,
|
|
1278
1278
|
class: "w-autocomplete__placeholder",
|
|
1279
1279
|
innerHTML: i.placeholder
|
|
1280
|
-
}, null, 8,
|
|
1281
|
-
|
|
1280
|
+
}, null, 8, Nt)) : p("", !0),
|
|
1281
|
+
k("input", $({
|
|
1282
1282
|
class: "w-autocomplete__input",
|
|
1283
1283
|
ref: "input",
|
|
1284
1284
|
value: e.keywords
|
|
1285
|
-
},
|
|
1286
|
-
|
|
1285
|
+
}, ge(l.inputEventListeners, !0), l.inputAttrs), null, 16, Dt),
|
|
1286
|
+
L(r, null, {
|
|
1287
1287
|
default: f(() => [
|
|
1288
1288
|
e.menuOpen ? (o(), u("ul", {
|
|
1289
1289
|
key: 0,
|
|
@@ -1294,29 +1294,29 @@ function vt(e, t, i, s, n, l) {
|
|
|
1294
1294
|
onTouchstart: t[3] || (t[3] = (d) => e.menuIsBeingClicked = !0),
|
|
1295
1295
|
onTouchend: t[4] || (t[4] = (...d) => l.setEndOfMenuClick && l.setEndOfMenuClick(...d))
|
|
1296
1296
|
}, [
|
|
1297
|
-
(o(!0), u(v, null,
|
|
1297
|
+
(o(!0), u(v, null, O(l.filteredItems, (d, h) => (o(), u("li", {
|
|
1298
1298
|
key: h,
|
|
1299
|
-
onClick:
|
|
1299
|
+
onClick: A((y) => (l.selectItem(d), e.$emit("item-click", d)), ["stop"]),
|
|
1300
1300
|
class: m({ highlighted: e.highlightedItem === d.uid })
|
|
1301
1301
|
}, [
|
|
1302
1302
|
c(e.$slots, "item", {
|
|
1303
1303
|
item: d,
|
|
1304
1304
|
highlighted: e.highlightedItem === d.uid
|
|
1305
1305
|
}, () => [
|
|
1306
|
-
|
|
1306
|
+
k("span", {
|
|
1307
1307
|
innerHTML: d[i.itemLabelKey]
|
|
1308
|
-
}, null, 8,
|
|
1308
|
+
}, null, 8, Ft)
|
|
1309
1309
|
])
|
|
1310
|
-
], 10,
|
|
1310
|
+
], 10, Ht))), 128)),
|
|
1311
1311
|
l.filteredItems.length ? p("", !0) : (o(), u("li", {
|
|
1312
1312
|
key: 0,
|
|
1313
1313
|
class: m(["w-autocomplete__no-match", { "w-autocomplete__no-match--default": !e.$slots.noMatch }])
|
|
1314
1314
|
}, [
|
|
1315
1315
|
c(e.$slots, "no-match", {}, () => [
|
|
1316
|
-
|
|
1316
|
+
k("div", {
|
|
1317
1317
|
class: "caption",
|
|
1318
1318
|
innerHTML: i.noMatch ?? "No match."
|
|
1319
|
-
}, null, 8,
|
|
1319
|
+
}, null, 8, jt)
|
|
1320
1320
|
])
|
|
1321
1321
|
], 2)),
|
|
1322
1322
|
e.$slots["extra-item"] ? (o(), u("li", {
|
|
@@ -1332,7 +1332,7 @@ function vt(e, t, i, s, n, l) {
|
|
|
1332
1332
|
})
|
|
1333
1333
|
], 6);
|
|
1334
1334
|
}
|
|
1335
|
-
const
|
|
1335
|
+
const qt = {
|
|
1336
1336
|
name: "w-autocomplete",
|
|
1337
1337
|
inheritAttrs: !1,
|
|
1338
1338
|
// The attrs should only be added to the input not the wrapper.
|
|
@@ -1515,13 +1515,13 @@ const Ct = {
|
|
|
1515
1515
|
});
|
|
1516
1516
|
}
|
|
1517
1517
|
}
|
|
1518
|
-
},
|
|
1519
|
-
function
|
|
1520
|
-
return o(), u("div",
|
|
1518
|
+
}, Xt = /* @__PURE__ */ C(qt, [["render", Ut]]), Yt = { class: "w-app" };
|
|
1519
|
+
function Gt(e, t, i, s, n, l) {
|
|
1520
|
+
return o(), u("div", Yt, [
|
|
1521
1521
|
c(e.$slots, "default")
|
|
1522
1522
|
]);
|
|
1523
1523
|
}
|
|
1524
|
-
const
|
|
1524
|
+
const Jt = {
|
|
1525
1525
|
name: "w-app",
|
|
1526
1526
|
// Keep the props for the API documentation.
|
|
1527
1527
|
props: {
|
|
@@ -1537,25 +1537,25 @@ const $t = {
|
|
|
1537
1537
|
textCenter: { type: Boolean },
|
|
1538
1538
|
textRight: { type: Boolean }
|
|
1539
1539
|
}
|
|
1540
|
-
},
|
|
1541
|
-
function
|
|
1542
|
-
return o(), u("div",
|
|
1540
|
+
}, Qt = /* @__PURE__ */ C(Jt, [["render", Gt]]), Zt = { class: "w-badge-wrap" };
|
|
1541
|
+
function ei(e, t, i, s, n, l) {
|
|
1542
|
+
return o(), u("div", Zt, [
|
|
1543
1543
|
c(e.$slots, "default"),
|
|
1544
|
-
|
|
1544
|
+
L(P, {
|
|
1545
1545
|
name: `${i.transition}`
|
|
1546
1546
|
}, {
|
|
1547
1547
|
default: f(() => [
|
|
1548
1548
|
i.modelValue ? (o(), u("div", {
|
|
1549
1549
|
key: 0,
|
|
1550
1550
|
class: m(["w-badge", l.classes]),
|
|
1551
|
-
style:
|
|
1551
|
+
style: x(l.styles),
|
|
1552
1552
|
"aria-atomic": "true",
|
|
1553
1553
|
"aria-label": "Badge",
|
|
1554
1554
|
"aria-live": "polite",
|
|
1555
1555
|
role: "status"
|
|
1556
1556
|
}, [
|
|
1557
1557
|
i.dot ? p("", !0) : c(e.$slots, "badge", { key: 0 }, () => [
|
|
1558
|
-
|
|
1558
|
+
_(S(i.modelValue === !0 ? "" : i.modelValue || ""), 1)
|
|
1559
1559
|
])
|
|
1560
1560
|
], 6)) : p("", !0)
|
|
1561
1561
|
]),
|
|
@@ -1563,7 +1563,7 @@ function Tt(e, t, i, s, n, l) {
|
|
|
1563
1563
|
}, 8, ["name"])
|
|
1564
1564
|
]);
|
|
1565
1565
|
}
|
|
1566
|
-
const
|
|
1566
|
+
const ti = {
|
|
1567
1567
|
name: "w-badge",
|
|
1568
1568
|
props: {
|
|
1569
1569
|
modelValue: { default: !0 },
|
|
@@ -1627,13 +1627,13 @@ const Lt = {
|
|
|
1627
1627
|
return this.forcedSize && `font-size: ${this.forcedSize}`;
|
|
1628
1628
|
}
|
|
1629
1629
|
}
|
|
1630
|
-
},
|
|
1631
|
-
function
|
|
1632
|
-
const a =
|
|
1630
|
+
}, ii = /* @__PURE__ */ C(ti, [["render", ei]]), li = ["innerHTML"];
|
|
1631
|
+
function si(e, t, i, s, n, l) {
|
|
1632
|
+
const a = V("w-icon");
|
|
1633
1633
|
return o(), u("div", {
|
|
1634
1634
|
class: m(["w-breadcrumbs", l.classes])
|
|
1635
1635
|
}, [
|
|
1636
|
-
(o(!0), u(v, null,
|
|
1636
|
+
(o(!0), u(v, null, O(i.items, (r, d) => (o(), u(v, null, [
|
|
1637
1637
|
d && e.$slots.separator ? (o(), u("span", {
|
|
1638
1638
|
class: m(["w-breadcrumbs__separator", i.separatorColor]),
|
|
1639
1639
|
key: `${d}a`
|
|
@@ -1644,12 +1644,12 @@ function Ot(e, t, i, s, n, l) {
|
|
|
1644
1644
|
key: `${d}b`
|
|
1645
1645
|
}, {
|
|
1646
1646
|
default: f(() => [
|
|
1647
|
-
|
|
1647
|
+
_(S(i.icon), 1)
|
|
1648
1648
|
]),
|
|
1649
1649
|
_: 2
|
|
1650
1650
|
}, 1032, ["class"])) : p("", !0),
|
|
1651
1651
|
r[i.itemRouteKey] && (d < i.items.length - 1 || i.linkLastItem) ? (o(), u(v, { key: 2 }, [
|
|
1652
|
-
e.$slots.item ? (o(), b(
|
|
1652
|
+
e.$slots.item ? (o(), b(R(l.hasRouter ? "router-link" : "a"), {
|
|
1653
1653
|
class: m(["w-breadcrumbs__item", i.color || null]),
|
|
1654
1654
|
key: `${d}c`,
|
|
1655
1655
|
to: l.hasRouter && r[i.itemRouteKey],
|
|
@@ -1663,7 +1663,7 @@ function Ot(e, t, i, s, n, l) {
|
|
|
1663
1663
|
})
|
|
1664
1664
|
]),
|
|
1665
1665
|
_: 2
|
|
1666
|
-
}, 1032, ["to", "href", "class"])) : (o(), b(
|
|
1666
|
+
}, 1032, ["to", "href", "class"])) : (o(), b(R(l.hasRouter ? "router-link" : "a"), {
|
|
1667
1667
|
class: m(["w-breadcrumbs__item", i.color || null]),
|
|
1668
1668
|
key: `${d}d`,
|
|
1669
1669
|
to: l.hasRouter && r[i.itemRouteKey],
|
|
@@ -1678,11 +1678,11 @@ function Ot(e, t, i, s, n, l) {
|
|
|
1678
1678
|
}) : (o(), u("span", {
|
|
1679
1679
|
key: `${d}f`,
|
|
1680
1680
|
innerHTML: r[i.itemLabelKey]
|
|
1681
|
-
}, null, 8,
|
|
1681
|
+
}, null, 8, li))
|
|
1682
1682
|
], 64))), 256))
|
|
1683
1683
|
], 2);
|
|
1684
1684
|
}
|
|
1685
|
-
const
|
|
1685
|
+
const oi = {
|
|
1686
1686
|
name: "w-breadcrumbs",
|
|
1687
1687
|
props: {
|
|
1688
1688
|
items: { type: Array, required: !0 },
|
|
@@ -1713,31 +1713,31 @@ const Pt = {
|
|
|
1713
1713
|
};
|
|
1714
1714
|
}
|
|
1715
1715
|
}
|
|
1716
|
-
},
|
|
1716
|
+
}, ai = /* @__PURE__ */ C(oi, [["render", si]]), ni = {
|
|
1717
1717
|
key: 0,
|
|
1718
1718
|
class: "w-button__loader"
|
|
1719
1719
|
};
|
|
1720
|
-
function
|
|
1721
|
-
const a =
|
|
1722
|
-
return o(), b(
|
|
1720
|
+
function ri(e, t, i, s, n, l) {
|
|
1721
|
+
const a = V("w-icon");
|
|
1722
|
+
return o(), b(R(!i.disabled && i.route ? "a" : "button"), $({
|
|
1723
1723
|
class: ["w-button", l.classes],
|
|
1724
1724
|
type: !i.route && i.type,
|
|
1725
1725
|
href: !i.disabled && i.route && (l.externalLink ? i.route : l.resolvedRoute) || null,
|
|
1726
1726
|
disabled: !!i.disabled || null
|
|
1727
1727
|
}, l.attrs, { style: l.styles }), {
|
|
1728
1728
|
default: f(() => [
|
|
1729
|
-
i.icon ? (o(), b(a,
|
|
1729
|
+
i.icon ? (o(), b(a, ce($({ key: 0 }, i.iconProps || {})), {
|
|
1730
1730
|
default: f(() => [
|
|
1731
|
-
|
|
1731
|
+
_(S(i.icon), 1)
|
|
1732
1732
|
]),
|
|
1733
1733
|
_: 1
|
|
1734
1734
|
}, 16)) : c(e.$slots, "default", { key: 1 }),
|
|
1735
|
-
|
|
1735
|
+
L(P, { name: "scale-fade" }, {
|
|
1736
1736
|
default: f(() => [
|
|
1737
|
-
i.loading ? (o(), u("div",
|
|
1737
|
+
i.loading ? (o(), u("div", ni, [
|
|
1738
1738
|
c(e.$slots, "loading", {}, () => [
|
|
1739
|
-
t[0] || (t[0] =
|
|
1740
|
-
|
|
1739
|
+
t[0] || (t[0] = k("svg", { viewBox: "0 0 40 40" }, [
|
|
1740
|
+
k("circle", {
|
|
1741
1741
|
cx: "20",
|
|
1742
1742
|
cy: "20",
|
|
1743
1743
|
r: "18",
|
|
@@ -1756,7 +1756,7 @@ function Et(e, t, i, s, n, l) {
|
|
|
1756
1756
|
_: 3
|
|
1757
1757
|
}, 16, ["type", "href", "class", "disabled", "style"]);
|
|
1758
1758
|
}
|
|
1759
|
-
const
|
|
1759
|
+
const di = {
|
|
1760
1760
|
// Fully handle the attrs and listeners manually for the case of a router link that has both a
|
|
1761
1761
|
// route and onClick.
|
|
1762
1762
|
inheritAttrs: !1,
|
|
@@ -1857,12 +1857,12 @@ const At = {
|
|
|
1857
1857
|
};
|
|
1858
1858
|
}
|
|
1859
1859
|
}
|
|
1860
|
-
},
|
|
1861
|
-
function
|
|
1862
|
-
const a =
|
|
1863
|
-
return i.tooltip ? (o(), b(
|
|
1860
|
+
}, ui = /* @__PURE__ */ C(di, [["render", ri]]), hi = ["innerHTML"];
|
|
1861
|
+
function ci(e, t, i, s, n, l) {
|
|
1862
|
+
const a = V("button-partial");
|
|
1863
|
+
return i.tooltip ? (o(), b(R("w-tooltip"), ce($({ key: 0 }, i.tooltipProps)), {
|
|
1864
1864
|
activator: f(({ on: r }) => [
|
|
1865
|
-
|
|
1865
|
+
L(a, $(l.buttonProps, ge(r)), {
|
|
1866
1866
|
default: f(() => [
|
|
1867
1867
|
c(e.$slots, "default")
|
|
1868
1868
|
]),
|
|
@@ -1870,10 +1870,10 @@ function Nt(e, t, i, s, n, l) {
|
|
|
1870
1870
|
}, 1040)
|
|
1871
1871
|
]),
|
|
1872
1872
|
default: f(() => [
|
|
1873
|
-
|
|
1873
|
+
k("div", { innerHTML: i.tooltip }, null, 8, hi)
|
|
1874
1874
|
]),
|
|
1875
1875
|
_: 3
|
|
1876
|
-
}, 16)) : (o(), b(a,
|
|
1876
|
+
}, 16)) : (o(), b(a, ce($({ key: 1 }, l.buttonProps)), {
|
|
1877
1877
|
loading: f(() => [
|
|
1878
1878
|
c(e.$slots, "loading")
|
|
1879
1879
|
]),
|
|
@@ -1883,7 +1883,7 @@ function Nt(e, t, i, s, n, l) {
|
|
|
1883
1883
|
_: 3
|
|
1884
1884
|
}, 16));
|
|
1885
1885
|
}
|
|
1886
|
-
const
|
|
1886
|
+
const pi = {
|
|
1887
1887
|
name: "w-button",
|
|
1888
1888
|
inheritAttrs: !1,
|
|
1889
1889
|
// The attrs are only bound to the button-partial, not the root.
|
|
@@ -1926,7 +1926,7 @@ const Dt = {
|
|
|
1926
1926
|
lg: { type: Boolean },
|
|
1927
1927
|
xl: { type: Boolean }
|
|
1928
1928
|
},
|
|
1929
|
-
components: { ButtonPartial:
|
|
1929
|
+
components: { ButtonPartial: ui },
|
|
1930
1930
|
emits: [],
|
|
1931
1931
|
computed: {
|
|
1932
1932
|
buttonProps() {
|
|
@@ -1934,9 +1934,9 @@ const Dt = {
|
|
|
1934
1934
|
return { ...i, ...this.$attrs };
|
|
1935
1935
|
}
|
|
1936
1936
|
}
|
|
1937
|
-
},
|
|
1938
|
-
function
|
|
1939
|
-
const a =
|
|
1937
|
+
}, mi = /* @__PURE__ */ C(pi, [["render", ci]]), fi = ["innerHTML"];
|
|
1938
|
+
function gi(e, t, i, s, n, l) {
|
|
1939
|
+
const a = V("w-image");
|
|
1940
1940
|
return o(), u("div", {
|
|
1941
1941
|
class: m(["w-card", l.classes])
|
|
1942
1942
|
}, [
|
|
@@ -1949,8 +1949,8 @@ function jt(e, t, i, s, n, l) {
|
|
|
1949
1949
|
key: 1,
|
|
1950
1950
|
class: m(["w-card__title", { "w-card__title--has-toolbar": e.$slots.title && l.titleHasToolbar, ...l.titleClasses }]),
|
|
1951
1951
|
innerHTML: i.title
|
|
1952
|
-
}, null, 10,
|
|
1953
|
-
i.image ? (o(), b(a,
|
|
1952
|
+
}, null, 10, fi)) : p("", !0),
|
|
1953
|
+
i.image ? (o(), b(a, $({
|
|
1954
1954
|
key: 2,
|
|
1955
1955
|
class: "w-card__image",
|
|
1956
1956
|
src: i.image
|
|
@@ -1960,7 +1960,7 @@ function jt(e, t, i, s, n, l) {
|
|
|
1960
1960
|
]),
|
|
1961
1961
|
_: 3
|
|
1962
1962
|
}, 16, ["src"])) : p("", !0),
|
|
1963
|
-
|
|
1963
|
+
k("div", {
|
|
1964
1964
|
class: m(["w-card__content", l.contentClasses])
|
|
1965
1965
|
}, [
|
|
1966
1966
|
c(e.$slots, "default")
|
|
@@ -1973,7 +1973,7 @@ function jt(e, t, i, s, n, l) {
|
|
|
1973
1973
|
], 2)) : p("", !0)
|
|
1974
1974
|
], 2);
|
|
1975
1975
|
}
|
|
1976
|
-
const
|
|
1976
|
+
const bi = {
|
|
1977
1977
|
name: "w-card",
|
|
1978
1978
|
props: {
|
|
1979
1979
|
color: { type: String },
|
|
@@ -1992,10 +1992,10 @@ const Ut = {
|
|
|
1992
1992
|
emits: [],
|
|
1993
1993
|
computed: {
|
|
1994
1994
|
titleClasses() {
|
|
1995
|
-
return
|
|
1995
|
+
return z(this.titleClass);
|
|
1996
1996
|
},
|
|
1997
1997
|
contentClasses() {
|
|
1998
|
-
return
|
|
1998
|
+
return z(this.contentClass);
|
|
1999
1999
|
},
|
|
2000
2000
|
titleHasToolbar() {
|
|
2001
2001
|
var t;
|
|
@@ -2026,7 +2026,7 @@ const Ut = {
|
|
|
2026
2026
|
};
|
|
2027
2027
|
}
|
|
2028
2028
|
}
|
|
2029
|
-
},
|
|
2029
|
+
}, yi = /* @__PURE__ */ C(bi, [["render", gi]]), W = {
|
|
2030
2030
|
inject: {
|
|
2031
2031
|
// Used in each form component to determine whether to use the w-form-element wrap or not.
|
|
2032
2032
|
// So, if a form component is in a form, use the w-form-element wrap.
|
|
@@ -2073,9 +2073,9 @@ const Ut = {
|
|
|
2073
2073
|
this.$refs.formEl.validate(this);
|
|
2074
2074
|
}
|
|
2075
2075
|
}
|
|
2076
|
-
},
|
|
2077
|
-
function
|
|
2078
|
-
return o(), b(
|
|
2076
|
+
}, wi = ["id", "name", "checked", "disabled", "required", "tabindex", "aria-checked"], ki = ["for"], vi = ["for", "innerHTML"], Ci = ["for"], Si = ["for", "innerHTML"];
|
|
2077
|
+
function Bi(e, t, i, s, n, l) {
|
|
2078
|
+
return o(), b(R(e.formRegister && !l.wCheckboxes ? "w-form-element" : "div"), $({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: n.isChecked, disabled: e.isDisabled, readonly: e.isReadonly }, {
|
|
2079
2079
|
valid: e.valid,
|
|
2080
2080
|
"onUpdate:valid": t[5] || (t[5] = (a) => e.valid = a),
|
|
2081
2081
|
onReset: t[6] || (t[6] = (a) => {
|
|
@@ -2084,7 +2084,7 @@ function Zt(e, t, i, s, n, l) {
|
|
|
2084
2084
|
class: l.classes
|
|
2085
2085
|
}), {
|
|
2086
2086
|
default: f(() => [
|
|
2087
|
-
|
|
2087
|
+
k("input", {
|
|
2088
2088
|
ref: "input",
|
|
2089
2089
|
id: `w-checkbox--${e._.uid}`,
|
|
2090
2090
|
type: "checkbox",
|
|
@@ -2096,10 +2096,10 @@ function Zt(e, t, i, s, n, l) {
|
|
|
2096
2096
|
onFocus: t[0] || (t[0] = (a) => e.$emit("focus", a)),
|
|
2097
2097
|
onBlur: t[1] || (t[1] = (a) => e.$emit("blur", a)),
|
|
2098
2098
|
onChange: t[2] || (t[2] = (a) => l.onInput()),
|
|
2099
|
-
onKeypress: t[3] || (t[3] =
|
|
2099
|
+
onKeypress: t[3] || (t[3] = N((...a) => l.onInput && l.onInput(...a), ["enter"])),
|
|
2100
2100
|
"aria-checked": n.isChecked || "false",
|
|
2101
2101
|
role: "checkbox"
|
|
2102
|
-
}, null, 40,
|
|
2102
|
+
}, null, 40, wi),
|
|
2103
2103
|
l.hasLabel && i.labelOnLeft ? (o(), u(v, { key: 0 }, [
|
|
2104
2104
|
e.$slots.default ? (o(), u("label", {
|
|
2105
2105
|
key: 0,
|
|
@@ -2107,23 +2107,23 @@ function Zt(e, t, i, s, n, l) {
|
|
|
2107
2107
|
for: `w-checkbox--${e._.uid}`
|
|
2108
2108
|
}, [
|
|
2109
2109
|
c(e.$slots, "default", {}, () => [
|
|
2110
|
-
|
|
2110
|
+
_(S(i.label), 1)
|
|
2111
2111
|
])
|
|
2112
|
-
], 10,
|
|
2112
|
+
], 10, ki)) : i.label ? (o(), u("label", {
|
|
2113
2113
|
key: 1,
|
|
2114
2114
|
class: m(["w-checkbox__label w-form-el-shakable pr2", e.labelClasses]),
|
|
2115
2115
|
for: `w-checkbox--${e._.uid}`,
|
|
2116
2116
|
innerHTML: i.label
|
|
2117
|
-
}, null, 10,
|
|
2117
|
+
}, null, 10, vi)) : p("", !0)
|
|
2118
2118
|
], 64)) : p("", !0),
|
|
2119
|
-
|
|
2119
|
+
k("div", {
|
|
2120
2120
|
class: m(["w-checkbox__input", this.color]),
|
|
2121
2121
|
onClick: t[4] || (t[4] = (a) => {
|
|
2122
2122
|
e.$refs.input.focus(), e.$refs.input.click();
|
|
2123
2123
|
})
|
|
2124
2124
|
}, t[7] || (t[7] = [
|
|
2125
|
-
|
|
2126
|
-
|
|
2125
|
+
k("svg", { viewBox: "-0.5 0 12 10" }, [
|
|
2126
|
+
k("polyline", { points: "1 5 4 8 10 2" })
|
|
2127
2127
|
], -1)
|
|
2128
2128
|
]), 2),
|
|
2129
2129
|
l.hasLabel && !i.labelOnLeft ? (o(), u(v, { key: 1 }, [
|
|
@@ -2133,22 +2133,22 @@ function Zt(e, t, i, s, n, l) {
|
|
|
2133
2133
|
for: `w-checkbox--${e._.uid}`
|
|
2134
2134
|
}, [
|
|
2135
2135
|
c(e.$slots, "default", {}, () => [
|
|
2136
|
-
|
|
2136
|
+
_(S(i.label), 1)
|
|
2137
2137
|
])
|
|
2138
|
-
], 10,
|
|
2138
|
+
], 10, Ci)) : i.label ? (o(), u("label", {
|
|
2139
2139
|
key: 1,
|
|
2140
2140
|
class: m(["w-checkbox__label w-form-el-shakable pl2", e.labelClasses]),
|
|
2141
2141
|
for: `w-checkbox--${e._.uid}`,
|
|
2142
2142
|
innerHTML: i.label
|
|
2143
|
-
}, null, 10,
|
|
2143
|
+
}, null, 10, Si)) : p("", !0)
|
|
2144
2144
|
], 64)) : p("", !0)
|
|
2145
2145
|
]),
|
|
2146
2146
|
_: 3
|
|
2147
2147
|
}, 16, ["valid", "class"]);
|
|
2148
2148
|
}
|
|
2149
|
-
const
|
|
2149
|
+
const _i = {
|
|
2150
2150
|
name: "w-checkbox",
|
|
2151
|
-
mixins: [
|
|
2151
|
+
mixins: [W],
|
|
2152
2152
|
inject: {
|
|
2153
2153
|
wCheckboxes: { default: null }
|
|
2154
2154
|
},
|
|
@@ -2213,10 +2213,10 @@ const ei = {
|
|
|
2213
2213
|
this.isChecked = e;
|
|
2214
2214
|
}
|
|
2215
2215
|
}
|
|
2216
|
-
},
|
|
2217
|
-
function
|
|
2218
|
-
const a =
|
|
2219
|
-
return o(), b(
|
|
2216
|
+
}, $i = /* @__PURE__ */ C(_i, [["render", Bi]]), Ii = ["innerHTML"];
|
|
2217
|
+
function Vi(e, t, i, s, n, l) {
|
|
2218
|
+
const a = V("w-checkbox");
|
|
2219
|
+
return o(), b(R(e.formRegister ? "w-form-element" : "div"), $({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: l.checkboxItems.some((r) => r._isChecked), disabled: e.isDisabled }, {
|
|
2220
2220
|
valid: e.valid,
|
|
2221
2221
|
"onUpdate:valid": t[1] || (t[1] = (r) => e.valid = r),
|
|
2222
2222
|
onReset: l.reset,
|
|
@@ -2225,7 +2225,7 @@ function li(e, t, i, s, n, l) {
|
|
|
2225
2225
|
class: l.classes
|
|
2226
2226
|
}), {
|
|
2227
2227
|
default: f(() => [
|
|
2228
|
-
(o(!0), u(v, null,
|
|
2228
|
+
(o(!0), u(v, null, O(l.checkboxItems, (r, d) => (o(), b(a, $({
|
|
2229
2229
|
key: d,
|
|
2230
2230
|
"model-value": r._isChecked,
|
|
2231
2231
|
"onUpdate:modelValue": (h) => l.toggleCheck(r, h),
|
|
@@ -2247,7 +2247,7 @@ function li(e, t, i, s, n, l) {
|
|
|
2247
2247
|
}) : r.label ? (o(), u("div", {
|
|
2248
2248
|
key: 1,
|
|
2249
2249
|
innerHTML: r.label
|
|
2250
|
-
}, null, 8,
|
|
2250
|
+
}, null, 8, Ii)) : p("", !0)
|
|
2251
2251
|
]),
|
|
2252
2252
|
_: 2
|
|
2253
2253
|
}, 1040, ["model-value", "onUpdate:modelValue", "name", "disabled", "readonly", "class"]))), 128))
|
|
@@ -2255,9 +2255,9 @@ function li(e, t, i, s, n, l) {
|
|
|
2255
2255
|
_: 3
|
|
2256
2256
|
}, 16, ["valid", "onReset", "column", "wrap", "class"]);
|
|
2257
2257
|
}
|
|
2258
|
-
const
|
|
2258
|
+
const Ti = {
|
|
2259
2259
|
name: "w-checkboxes",
|
|
2260
|
-
mixins: [
|
|
2260
|
+
mixins: [W],
|
|
2261
2261
|
props: {
|
|
2262
2262
|
items: { type: Array, required: !0 },
|
|
2263
2263
|
// All the possible options.
|
|
@@ -2287,7 +2287,7 @@ const si = {
|
|
|
2287
2287
|
return (this.items || []).map((e, t) => {
|
|
2288
2288
|
var s;
|
|
2289
2289
|
const i = e[this.itemValueKey] === void 0 ? e[this.itemLabelKey] || t : e[this.itemValueKey];
|
|
2290
|
-
return
|
|
2290
|
+
return ae({
|
|
2291
2291
|
...e,
|
|
2292
2292
|
label: e[this.itemLabelKey],
|
|
2293
2293
|
_index: t,
|
|
@@ -2319,15 +2319,15 @@ const si = {
|
|
|
2319
2319
|
return this.items[e._index];
|
|
2320
2320
|
}
|
|
2321
2321
|
}
|
|
2322
|
-
},
|
|
2323
|
-
function
|
|
2324
|
-
const a =
|
|
2325
|
-
return o(), b(d,
|
|
2322
|
+
}, Li = /* @__PURE__ */ C(Ti, [["render", Vi]]);
|
|
2323
|
+
function Ri(e, t, i, s, n, l) {
|
|
2324
|
+
const a = V("w-button"), r = V("w-flex"), d = V("w-menu"), h = xe("focus");
|
|
2325
|
+
return o(), b(d, $({
|
|
2326
2326
|
modelValue: e.showPopup,
|
|
2327
2327
|
"onUpdate:modelValue": t[2] || (t[2] = (y) => e.showPopup = y)
|
|
2328
2328
|
}, l.wMenuProps), {
|
|
2329
2329
|
activator: f(({ on: y }) => [
|
|
2330
|
-
|
|
2330
|
+
L(a, $({ class: "w-confirm" }, { ...e.$attrs, ...l.buttonProps }, ge(i.disablePrompt ? {} : { ...y })), {
|
|
2331
2331
|
default: f(() => [
|
|
2332
2332
|
c(e.$slots, "default")
|
|
2333
2333
|
]),
|
|
@@ -2335,42 +2335,42 @@ function ai(e, t, i, s, n, l) {
|
|
|
2335
2335
|
}, 1040)
|
|
2336
2336
|
]),
|
|
2337
2337
|
default: f(() => [
|
|
2338
|
-
|
|
2338
|
+
L(r, {
|
|
2339
2339
|
column: !i.inline,
|
|
2340
2340
|
"align-center": ""
|
|
2341
2341
|
}, {
|
|
2342
2342
|
default: f(() => [
|
|
2343
|
-
|
|
2343
|
+
k("div", null, [
|
|
2344
2344
|
c(e.$slots, "question", {}, () => [
|
|
2345
|
-
|
|
2345
|
+
_(S(i.question), 1)
|
|
2346
2346
|
])
|
|
2347
2347
|
]),
|
|
2348
|
-
|
|
2348
|
+
k("div", {
|
|
2349
2349
|
class: m(["w-flex justify-end", i.inline ? "ml2" : "mt2"])
|
|
2350
2350
|
}, [
|
|
2351
|
-
i.cancel !== !1 ? (o(), b(a,
|
|
2351
|
+
i.cancel !== !1 ? (o(), b(a, $({
|
|
2352
2352
|
key: 0,
|
|
2353
2353
|
class: "mr2"
|
|
2354
2354
|
}, l.cancelButtonProps, {
|
|
2355
2355
|
"bg-color": (l.cancelButton || {}).bgColor || "error",
|
|
2356
|
-
onKeyup: t[0] || (t[0] =
|
|
2356
|
+
onKeyup: t[0] || (t[0] = N((y) => !i.persistent && l.onCancel(), ["escape"])),
|
|
2357
2357
|
onClick: l.onCancel
|
|
2358
2358
|
}), {
|
|
2359
2359
|
default: f(() => [
|
|
2360
2360
|
c(e.$slots, "cancel", {}, () => [
|
|
2361
|
-
|
|
2361
|
+
_(S(l.cancelButton.label), 1)
|
|
2362
2362
|
])
|
|
2363
2363
|
]),
|
|
2364
2364
|
_: 3
|
|
2365
2365
|
}, 16, ["bg-color", "onClick"])) : p("", !0),
|
|
2366
|
-
|
|
2366
|
+
F((o(), b(a, $(l.confirmButtonProps, {
|
|
2367
2367
|
"bg-color": (l.confirmButton || {}).bgColor || "success",
|
|
2368
|
-
onKeyup: t[1] || (t[1] =
|
|
2368
|
+
onKeyup: t[1] || (t[1] = N((y) => !i.persistent && l.onCancel(), ["escape"])),
|
|
2369
2369
|
onClick: l.onConfirm
|
|
2370
2370
|
}), {
|
|
2371
2371
|
default: f(() => [
|
|
2372
2372
|
c(e.$slots, "confirm", {}, () => [
|
|
2373
|
-
|
|
2373
|
+
_(S(l.confirmButton.label), 1)
|
|
2374
2374
|
])
|
|
2375
2375
|
]),
|
|
2376
2376
|
_: 3
|
|
@@ -2385,7 +2385,7 @@ function ai(e, t, i, s, n, l) {
|
|
|
2385
2385
|
_: 3
|
|
2386
2386
|
}, 16, ["modelValue"]);
|
|
2387
2387
|
}
|
|
2388
|
-
const
|
|
2388
|
+
const xi = {
|
|
2389
2389
|
name: "w-confirm",
|
|
2390
2390
|
inheritAttrs: !1,
|
|
2391
2391
|
// The attrs are only bound to the button, not the w-menu.
|
|
@@ -2498,16 +2498,16 @@ const ni = {
|
|
|
2498
2498
|
this.$emit("confirm"), this.showPopup = !1;
|
|
2499
2499
|
}
|
|
2500
2500
|
}
|
|
2501
|
-
},
|
|
2502
|
-
function
|
|
2501
|
+
}, Oi = /* @__PURE__ */ C(xi, [["render", Ri]]);
|
|
2502
|
+
function Pi(e, t, i, s, n, l) {
|
|
2503
2503
|
return o(), u("div", {
|
|
2504
2504
|
class: m(["w-date-picker", l.classes]),
|
|
2505
|
-
style:
|
|
2505
|
+
style: x(l.styles)
|
|
2506
2506
|
}, [
|
|
2507
2507
|
c(e.$slots, "default")
|
|
2508
2508
|
], 6);
|
|
2509
2509
|
}
|
|
2510
|
-
const
|
|
2510
|
+
const zi = {
|
|
2511
2511
|
name: "w-date-picker",
|
|
2512
2512
|
props: {
|
|
2513
2513
|
dark: { type: Boolean },
|
|
@@ -2525,9 +2525,9 @@ const ui = {
|
|
|
2525
2525
|
return !1;
|
|
2526
2526
|
}
|
|
2527
2527
|
}
|
|
2528
|
-
},
|
|
2529
|
-
function
|
|
2530
|
-
const a =
|
|
2528
|
+
}, Ei = /* @__PURE__ */ C(zi, [["render", Pi]]);
|
|
2529
|
+
function Mi(e, t, i, s, n, l) {
|
|
2530
|
+
const a = V("w-card"), r = V("w-overlay");
|
|
2531
2531
|
return o(), b(r, {
|
|
2532
2532
|
class: m(["w-dialog", l.classes]),
|
|
2533
2533
|
"model-value": n.showWrapper,
|
|
@@ -2539,13 +2539,13 @@ function ci(e, t, i, s, n, l) {
|
|
|
2539
2539
|
opacity: i.overlayOpacity
|
|
2540
2540
|
}, {
|
|
2541
2541
|
default: f(() => [
|
|
2542
|
-
|
|
2542
|
+
L(P, {
|
|
2543
2543
|
name: i.transition,
|
|
2544
2544
|
appear: "",
|
|
2545
2545
|
onAfterLeave: l.onBeforeClose
|
|
2546
2546
|
}, {
|
|
2547
2547
|
default: f(() => [
|
|
2548
|
-
|
|
2548
|
+
F(L(a, {
|
|
2549
2549
|
class: m(["w-dialog__content", i.dialogClass]),
|
|
2550
2550
|
ref: "dialog",
|
|
2551
2551
|
"no-border": "",
|
|
@@ -2554,8 +2554,8 @@ function ci(e, t, i, s, n, l) {
|
|
|
2554
2554
|
"title-class": i.titleClass,
|
|
2555
2555
|
"content-class": i.contentClass,
|
|
2556
2556
|
title: i.title || void 0,
|
|
2557
|
-
style:
|
|
2558
|
-
},
|
|
2557
|
+
style: x(l.contentStyles)
|
|
2558
|
+
}, ne({
|
|
2559
2559
|
default: f(() => [
|
|
2560
2560
|
c(e.$slots, "default")
|
|
2561
2561
|
]),
|
|
@@ -2576,7 +2576,7 @@ function ci(e, t, i, s, n, l) {
|
|
|
2576
2576
|
key: "1"
|
|
2577
2577
|
} : void 0
|
|
2578
2578
|
]), 1032, ["color", "bg-color", "class", "title-class", "content-class", "title", "style"]), [
|
|
2579
|
-
[
|
|
2579
|
+
[be, n.showContent]
|
|
2580
2580
|
])
|
|
2581
2581
|
]),
|
|
2582
2582
|
_: 3
|
|
@@ -2585,7 +2585,7 @@ function ci(e, t, i, s, n, l) {
|
|
|
2585
2585
|
_: 3
|
|
2586
2586
|
}, 8, ["model-value", "persistent", "persistent-no-animation", "onClick", "onClose", "bg-color", "opacity", "class"]);
|
|
2587
2587
|
}
|
|
2588
|
-
const
|
|
2588
|
+
const Ai = {
|
|
2589
2589
|
name: "w-dialog",
|
|
2590
2590
|
props: {
|
|
2591
2591
|
modelValue: { default: !0 },
|
|
@@ -2623,13 +2623,13 @@ const pi = {
|
|
|
2623
2623
|
},
|
|
2624
2624
|
computed: {
|
|
2625
2625
|
titleClasses() {
|
|
2626
|
-
return
|
|
2626
|
+
return z(this.titleClass);
|
|
2627
2627
|
},
|
|
2628
2628
|
contentClasses() {
|
|
2629
|
-
return
|
|
2629
|
+
return z(this.contentClass);
|
|
2630
2630
|
},
|
|
2631
2631
|
dialogClasses() {
|
|
2632
|
-
return
|
|
2632
|
+
return z(this.dialogClass);
|
|
2633
2633
|
},
|
|
2634
2634
|
maxWidth() {
|
|
2635
2635
|
let e = this.width;
|
|
@@ -2664,17 +2664,17 @@ const pi = {
|
|
|
2664
2664
|
this.showWrapper = e, this.showContent = e;
|
|
2665
2665
|
}
|
|
2666
2666
|
}
|
|
2667
|
-
},
|
|
2668
|
-
function
|
|
2667
|
+
}, Wi = /* @__PURE__ */ C(Ai, [["render", Mi]]), Ki = ["role", "aria-orientation"];
|
|
2668
|
+
function Ni(e, t, i, s, n, l) {
|
|
2669
2669
|
return o(), u("div", {
|
|
2670
2670
|
class: m(["w-divider", l.classes]),
|
|
2671
2671
|
role: e.$slots.default ? null : "presentation",
|
|
2672
2672
|
"aria-orientation": i.vertical ? "vertical" : "horizontal"
|
|
2673
2673
|
}, [
|
|
2674
2674
|
c(e.$slots, "default")
|
|
2675
|
-
], 10,
|
|
2675
|
+
], 10, Ki);
|
|
2676
2676
|
}
|
|
2677
|
-
const
|
|
2677
|
+
const Di = {
|
|
2678
2678
|
name: "w-divider",
|
|
2679
2679
|
props: {
|
|
2680
2680
|
vertical: { type: Boolean },
|
|
@@ -2694,9 +2694,9 @@ const bi = {
|
|
|
2694
2694
|
};
|
|
2695
2695
|
}
|
|
2696
2696
|
}
|
|
2697
|
-
},
|
|
2698
|
-
function
|
|
2699
|
-
const a =
|
|
2697
|
+
}, Hi = /* @__PURE__ */ C(Di, [["render", Ni]]), Fi = { class: "w-drawer-wrap__pushable" };
|
|
2698
|
+
function ji(e, t, i, s, n, l) {
|
|
2699
|
+
const a = V("w-overlay");
|
|
2700
2700
|
return n.showWrapper || i.pushContent ? (o(), u("div", {
|
|
2701
2701
|
key: 0,
|
|
2702
2702
|
class: m(["w-drawer-wrap", l.wrapperClasses])
|
|
@@ -2704,9 +2704,9 @@ function ki(e, t, i, s, n, l) {
|
|
|
2704
2704
|
i.pushContent ? (o(), u("div", {
|
|
2705
2705
|
key: 0,
|
|
2706
2706
|
class: "w-drawer-wrap__track",
|
|
2707
|
-
style:
|
|
2707
|
+
style: x(l.trackStyles)
|
|
2708
2708
|
}, [
|
|
2709
|
-
|
|
2709
|
+
k("div", Fi, [
|
|
2710
2710
|
i.noOverlay ? p("", !0) : (o(), b(a, {
|
|
2711
2711
|
key: 0,
|
|
2712
2712
|
modelValue: n.showDrawer,
|
|
@@ -2719,17 +2719,17 @@ function ki(e, t, i, s, n, l) {
|
|
|
2719
2719
|
}, null, 8, ["modelValue", "onClick", "persistent", "bg-color", "opacity"])),
|
|
2720
2720
|
c(e.$slots, "pushable")
|
|
2721
2721
|
]),
|
|
2722
|
-
|
|
2722
|
+
L(P, {
|
|
2723
2723
|
name: "fade",
|
|
2724
2724
|
onBeforeLeave: l.onBeforeClose,
|
|
2725
2725
|
onAfterLeave: l.onClose
|
|
2726
2726
|
}, {
|
|
2727
2727
|
default: f(() => [
|
|
2728
|
-
n.showDrawer ? (o(), b(
|
|
2728
|
+
n.showDrawer ? (o(), b(R(i.tag || "aside"), {
|
|
2729
2729
|
key: 0,
|
|
2730
2730
|
class: m(["w-drawer", l.drawerClasses]),
|
|
2731
2731
|
ref: "drawer",
|
|
2732
|
-
style:
|
|
2732
|
+
style: x(l.styles)
|
|
2733
2733
|
}, {
|
|
2734
2734
|
default: f(() => [
|
|
2735
2735
|
c(e.$slots, "default")
|
|
@@ -2750,18 +2750,18 @@ function ki(e, t, i, s, n, l) {
|
|
|
2750
2750
|
"bg-color": i.overlayColor,
|
|
2751
2751
|
opacity: i.overlayOpacity
|
|
2752
2752
|
}, null, 8, ["modelValue", "onClick", "persistent", "bg-color", "opacity"])),
|
|
2753
|
-
|
|
2753
|
+
L(P, {
|
|
2754
2754
|
name: l.transitionName,
|
|
2755
2755
|
appear: "",
|
|
2756
2756
|
onBeforeLeave: l.onBeforeClose,
|
|
2757
2757
|
onAfterLeave: l.onClose
|
|
2758
2758
|
}, {
|
|
2759
2759
|
default: f(() => [
|
|
2760
|
-
n.showDrawer ? (o(), b(
|
|
2760
|
+
n.showDrawer ? (o(), b(R(i.tag || "aside"), {
|
|
2761
2761
|
key: 0,
|
|
2762
2762
|
class: m(["w-drawer", l.drawerClasses]),
|
|
2763
2763
|
ref: "drawer",
|
|
2764
|
-
style:
|
|
2764
|
+
style: x(l.styles)
|
|
2765
2765
|
}, {
|
|
2766
2766
|
default: f(() => [
|
|
2767
2767
|
c(e.$slots, "default")
|
|
@@ -2774,7 +2774,7 @@ function ki(e, t, i, s, n, l) {
|
|
|
2774
2774
|
], 64))
|
|
2775
2775
|
], 2)) : p("", !0);
|
|
2776
2776
|
}
|
|
2777
|
-
const
|
|
2777
|
+
const Ui = { left: "right", right: "left", top: "down", bottom: "up" }, qi = {
|
|
2778
2778
|
name: "w-drawer",
|
|
2779
2779
|
props: {
|
|
2780
2780
|
modelValue: { default: !0 },
|
|
@@ -2868,7 +2868,7 @@ const vi = { left: "right", right: "left", top: "down", bottom: "up" }, Ci = {
|
|
|
2868
2868
|
return !this.showWrapper;
|
|
2869
2869
|
},
|
|
2870
2870
|
transitionName() {
|
|
2871
|
-
return `slide-${
|
|
2871
|
+
return `slide-${Ui[this.position]}`;
|
|
2872
2872
|
}
|
|
2873
2873
|
},
|
|
2874
2874
|
methods: {
|
|
@@ -2887,9 +2887,9 @@ const vi = { left: "right", right: "left", top: "down", bottom: "up" }, Ci = {
|
|
|
2887
2887
|
e && (this.showWrapper = !0), this.showDrawer = e;
|
|
2888
2888
|
}
|
|
2889
2889
|
}
|
|
2890
|
-
},
|
|
2891
|
-
function
|
|
2892
|
-
return o(), b(
|
|
2890
|
+
}, Xi = /* @__PURE__ */ C(qi, [["render", ji]]);
|
|
2891
|
+
function Yi(e, t, i, s, n, l) {
|
|
2892
|
+
return o(), b(R(i.tag), {
|
|
2893
2893
|
class: m(["w-flex", l.classes])
|
|
2894
2894
|
}, {
|
|
2895
2895
|
default: f(() => [
|
|
@@ -2898,7 +2898,7 @@ function Bi(e, t, i, s, n, l) {
|
|
|
2898
2898
|
_: 3
|
|
2899
2899
|
}, 8, ["class"]);
|
|
2900
2900
|
}
|
|
2901
|
-
const
|
|
2901
|
+
const Gi = {
|
|
2902
2902
|
name: "w-flex",
|
|
2903
2903
|
props: {
|
|
2904
2904
|
tag: { type: String, default: "div" },
|
|
@@ -2945,8 +2945,8 @@ const _i = {
|
|
|
2945
2945
|
};
|
|
2946
2946
|
}
|
|
2947
2947
|
}
|
|
2948
|
-
},
|
|
2949
|
-
function
|
|
2948
|
+
}, Ji = /* @__PURE__ */ C(Gi, [["render", Yi]]);
|
|
2949
|
+
function Qi(e, t, i, s, n, l) {
|
|
2950
2950
|
return o(), u("form", {
|
|
2951
2951
|
class: m(["w-form", l.classes]),
|
|
2952
2952
|
onSubmit: t[0] || (t[0] = (...a) => l.onSubmit && l.onSubmit(...a)),
|
|
@@ -2956,11 +2956,11 @@ function Ii(e, t, i, s, n, l) {
|
|
|
2956
2956
|
c(e.$slots, "default")
|
|
2957
2957
|
], 34);
|
|
2958
2958
|
}
|
|
2959
|
-
const
|
|
2959
|
+
const Zi = async (e, t) => {
|
|
2960
2960
|
for (const i of e)
|
|
2961
2961
|
if (await t(i)) return !0;
|
|
2962
2962
|
return !1;
|
|
2963
|
-
},
|
|
2963
|
+
}, el = {
|
|
2964
2964
|
name: "w-form",
|
|
2965
2965
|
props: {
|
|
2966
2966
|
modelValue: {},
|
|
@@ -3040,7 +3040,7 @@ const Vi = async (e, t) => {
|
|
|
3040
3040
|
// message in the form element.
|
|
3041
3041
|
async checkElementValidators(e) {
|
|
3042
3042
|
let t = !1, i = "";
|
|
3043
|
-
await
|
|
3043
|
+
await Zi(e.validators, async (s) => {
|
|
3044
3044
|
const n = await (typeof s == "function" && s(e.inputValue));
|
|
3045
3045
|
return t = typeof n != "string", i = t ? "" : n, !t;
|
|
3046
3046
|
}), e.hasJustReset = !1, e.Validation.isValid = t, e.Validation.message = i;
|
|
@@ -3066,18 +3066,18 @@ const Vi = async (e, t) => {
|
|
|
3066
3066
|
(this.status === !1 && e || e === null && this.status !== null) && this.reset(), this.status = e;
|
|
3067
3067
|
}
|
|
3068
3068
|
}
|
|
3069
|
-
},
|
|
3070
|
-
function
|
|
3071
|
-
const a =
|
|
3069
|
+
}, tl = /* @__PURE__ */ C(el, [["render", Qi]]);
|
|
3070
|
+
function il(e, t, i, s, n, l) {
|
|
3071
|
+
const a = V("w-transition-expand");
|
|
3072
3072
|
return o(), u("div", {
|
|
3073
3073
|
class: m(l.classes)
|
|
3074
3074
|
}, [
|
|
3075
|
-
|
|
3075
|
+
k("div", {
|
|
3076
3076
|
class: m(["w-flex grow", [i.column ? "column" : "align-center", i.wrap ? "wrap" : ""]])
|
|
3077
3077
|
}, [
|
|
3078
3078
|
c(e.$slots, "default")
|
|
3079
3079
|
], 2),
|
|
3080
|
-
|
|
3080
|
+
L(a, { y: "" }, {
|
|
3081
3081
|
default: f(() => [
|
|
3082
3082
|
e.Validation.message ? (o(), u("div", {
|
|
3083
3083
|
key: 0,
|
|
@@ -3086,7 +3086,7 @@ function Ri(e, t, i, s, n, l) {
|
|
|
3086
3086
|
c(e.$slots, "error-message", {
|
|
3087
3087
|
message: e.Validation.message
|
|
3088
3088
|
}, () => [
|
|
3089
|
-
|
|
3089
|
+
_(S(e.Validation.message), 1)
|
|
3090
3090
|
])
|
|
3091
3091
|
], 2)) : p("", !0)
|
|
3092
3092
|
]),
|
|
@@ -3094,7 +3094,7 @@ function Ri(e, t, i, s, n, l) {
|
|
|
3094
3094
|
})
|
|
3095
3095
|
], 2);
|
|
3096
3096
|
}
|
|
3097
|
-
const
|
|
3097
|
+
const ll = {
|
|
3098
3098
|
name: "w-form-element",
|
|
3099
3099
|
props: {
|
|
3100
3100
|
valid: { required: !0 },
|
|
@@ -3167,9 +3167,9 @@ const xi = {
|
|
|
3167
3167
|
beforeUnmount() {
|
|
3168
3168
|
this.formUnregister && this.formUnregister(this);
|
|
3169
3169
|
}
|
|
3170
|
-
},
|
|
3171
|
-
function
|
|
3172
|
-
return o(), b(
|
|
3170
|
+
}, sl = /* @__PURE__ */ C(ll, [["render", il]]);
|
|
3171
|
+
function ol(e, t, i, s, n, l) {
|
|
3172
|
+
return o(), b(R(i.tag), {
|
|
3173
3173
|
class: m(["w-grid", l.classes])
|
|
3174
3174
|
}, {
|
|
3175
3175
|
default: f(() => [
|
|
@@ -3178,7 +3178,7 @@ function Pi(e, t, i, s, n, l) {
|
|
|
3178
3178
|
_: 3
|
|
3179
3179
|
}, 8, ["class"]);
|
|
3180
3180
|
}
|
|
3181
|
-
const
|
|
3181
|
+
const al = {
|
|
3182
3182
|
name: "w-grid",
|
|
3183
3183
|
props: {
|
|
3184
3184
|
tag: { type: String, default: "div" },
|
|
@@ -3222,23 +3222,23 @@ const zi = {
|
|
|
3222
3222
|
};
|
|
3223
3223
|
}
|
|
3224
3224
|
}
|
|
3225
|
-
},
|
|
3226
|
-
function
|
|
3227
|
-
return o(), b(
|
|
3225
|
+
}, nl = /* @__PURE__ */ C(al, [["render", ol]]);
|
|
3226
|
+
function rl(e, t, i, s, n, l) {
|
|
3227
|
+
return o(), b(R(i.tag || "i"), {
|
|
3228
3228
|
class: m(["w-icon", l.classes]),
|
|
3229
3229
|
role: "icon",
|
|
3230
3230
|
"aria-hidden": "true",
|
|
3231
|
-
style:
|
|
3231
|
+
style: x(l.readIcon() && l.styles)
|
|
3232
3232
|
}, {
|
|
3233
3233
|
default: f(() => [
|
|
3234
3234
|
l.hasLigature ? (o(), u(v, { key: 0 }, [
|
|
3235
|
-
|
|
3235
|
+
_(S(e.icon), 1)
|
|
3236
3236
|
], 64)) : p("", !0)
|
|
3237
3237
|
]),
|
|
3238
3238
|
_: 1
|
|
3239
3239
|
}, 8, ["class", "style"]);
|
|
3240
3240
|
}
|
|
3241
|
-
const
|
|
3241
|
+
const dl = {
|
|
3242
3242
|
name: "w-icon",
|
|
3243
3243
|
props: {
|
|
3244
3244
|
tag: { type: String, default: "i" },
|
|
@@ -3308,39 +3308,39 @@ const Ai = {
|
|
|
3308
3308
|
return this.fontName = t, this.icon = i, !0;
|
|
3309
3309
|
}
|
|
3310
3310
|
}
|
|
3311
|
-
},
|
|
3311
|
+
}, ul = /* @__PURE__ */ C(dl, [["render", rl]]), hl = {
|
|
3312
3312
|
key: 0,
|
|
3313
3313
|
class: "w-image__loader"
|
|
3314
|
-
},
|
|
3315
|
-
function
|
|
3316
|
-
const a =
|
|
3317
|
-
return o(), b(
|
|
3314
|
+
}, cl = ["innerHTML"];
|
|
3315
|
+
function pl(e, t, i, s, n, l) {
|
|
3316
|
+
const a = V("w-progress");
|
|
3317
|
+
return o(), b(R(l.wrapperTag), {
|
|
3318
3318
|
class: m(["w-image", l.wrapperClasses]),
|
|
3319
|
-
style:
|
|
3319
|
+
style: x(l.wrapperStyles)
|
|
3320
3320
|
}, {
|
|
3321
3321
|
default: f(() => [
|
|
3322
|
-
|
|
3322
|
+
L(P, {
|
|
3323
3323
|
name: i.transition,
|
|
3324
3324
|
appear: ""
|
|
3325
3325
|
}, {
|
|
3326
3326
|
default: f(() => [
|
|
3327
|
-
n.loaded ? (o(), b(
|
|
3327
|
+
n.loaded ? (o(), b(R(l.normalized.tag), {
|
|
3328
3328
|
key: 0,
|
|
3329
3329
|
class: m(["w-image__image", l.imageClasses]),
|
|
3330
|
-
style:
|
|
3330
|
+
style: x(l.imageStyles),
|
|
3331
3331
|
src: l.normalized.tag === "img" ? n.computedImg.src : null
|
|
3332
3332
|
}, null, 8, ["class", "style", "src"])) : p("", !0)
|
|
3333
3333
|
]),
|
|
3334
3334
|
_: 1
|
|
3335
3335
|
}, 8, ["name"]),
|
|
3336
|
-
!i.noSpinner && n.loading ? (o(), u("span",
|
|
3337
|
-
e.$slots.loading ? c(e.$slots, "loading", { key: 0 }) : (o(), b(a,
|
|
3336
|
+
!i.noSpinner && n.loading ? (o(), u("span", hl, [
|
|
3337
|
+
e.$slots.loading ? c(e.$slots, "loading", { key: 0 }) : (o(), b(a, $({
|
|
3338
3338
|
key: 1,
|
|
3339
3339
|
circle: "",
|
|
3340
3340
|
indeterminate: ""
|
|
3341
3341
|
}, i.spinnerColor ? { color: i.spinnerColor } : {}), null, 16))
|
|
3342
3342
|
])) : p("", !0),
|
|
3343
|
-
e.$slots.default ? (o(), b(
|
|
3343
|
+
e.$slots.default ? (o(), b(R(l.wrapperTag), {
|
|
3344
3344
|
key: 1,
|
|
3345
3345
|
class: m(["w-image__content", i.contentClass])
|
|
3346
3346
|
}, {
|
|
@@ -3358,12 +3358,12 @@ function Di(e, t, i, s, n, l) {
|
|
|
3358
3358
|
key: 3,
|
|
3359
3359
|
class: m(["w-image__caption caption", i.captionClass]),
|
|
3360
3360
|
innerHTML: i.caption
|
|
3361
|
-
}, null, 10,
|
|
3361
|
+
}, null, 10, cl)) : p("", !0)
|
|
3362
3362
|
]),
|
|
3363
3363
|
_: 3
|
|
3364
3364
|
}, 8, ["class", "style"]);
|
|
3365
3365
|
}
|
|
3366
|
-
const
|
|
3366
|
+
const ml = {
|
|
3367
3367
|
name: "w-image",
|
|
3368
3368
|
props: {
|
|
3369
3369
|
tag: { type: String, default: "span" },
|
|
@@ -3459,7 +3459,7 @@ const Hi = {
|
|
|
3459
3459
|
}
|
|
3460
3460
|
},
|
|
3461
3461
|
mounted() {
|
|
3462
|
-
if (!this.src) return
|
|
3462
|
+
if (!this.src) return J("The w-image component was used without src.");
|
|
3463
3463
|
if (this.lazy) {
|
|
3464
3464
|
const e = new IntersectionObserver((t) => {
|
|
3465
3465
|
var i;
|
|
@@ -3473,13 +3473,13 @@ const Hi = {
|
|
|
3473
3473
|
this.loadImage();
|
|
3474
3474
|
}
|
|
3475
3475
|
}
|
|
3476
|
-
},
|
|
3476
|
+
}, fl = /* @__PURE__ */ C(ml, [["render", pl]]), gl = ["name"], bl = ["for"], yl = ["id", "type", "name", "placeholder", "step", "min", "max", "minlength", "maxlength", "readonly", "aria-readonly", "disabled", "required", "tabindex"], wl = ["id", "name", "multiple", "disabled", "data-progress"], kl = {
|
|
3477
3477
|
class: "w-input__no-file",
|
|
3478
3478
|
key: "no-file"
|
|
3479
|
-
},
|
|
3480
|
-
function
|
|
3481
|
-
const a =
|
|
3482
|
-
return o(), b(
|
|
3479
|
+
}, vl = ["for"], Cl = ["src"], Sl = ["for"];
|
|
3480
|
+
function Bl(e, t, i, s, n, l) {
|
|
3481
|
+
const a = V("w-icon"), r = V("w-progress");
|
|
3482
|
+
return o(), b(R(e.formRegister ? "w-form-element" : "div"), $({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: n.inputValue, disabled: e.isDisabled, readonly: e.isReadonly, isFocused: n.isFocused }, {
|
|
3483
3483
|
valid: e.valid,
|
|
3484
3484
|
"onUpdate:valid": t[10] || (t[10] = (d) => e.valid = d),
|
|
3485
3485
|
onReset: t[11] || (t[11] = (d) => {
|
|
@@ -3490,13 +3490,13 @@ function Zi(e, t, i, s, n, l) {
|
|
|
3490
3490
|
style: e.$attrs.style
|
|
3491
3491
|
}), {
|
|
3492
3492
|
default: f(() => [
|
|
3493
|
-
i.type === "hidden" ?
|
|
3493
|
+
i.type === "hidden" ? F((o(), u("input", {
|
|
3494
3494
|
key: 0,
|
|
3495
3495
|
type: "hidden",
|
|
3496
3496
|
name: e.name || null,
|
|
3497
3497
|
"onUpdate:modelValue": t[0] || (t[0] = (d) => n.inputValue = d)
|
|
3498
|
-
}, null, 8,
|
|
3499
|
-
[
|
|
3498
|
+
}, null, 8, gl)), [
|
|
3499
|
+
[Oe, n.inputValue]
|
|
3500
3500
|
]) : (o(), u(v, { key: 1 }, [
|
|
3501
3501
|
i.labelPosition === "left" ? (o(), u(v, { key: 0 }, [
|
|
3502
3502
|
e.$slots.default || i.label ? (o(), u("label", {
|
|
@@ -3505,11 +3505,11 @@ function Zi(e, t, i, s, n, l) {
|
|
|
3505
3505
|
for: `w-input--${e._.uid}`
|
|
3506
3506
|
}, [
|
|
3507
3507
|
c(e.$slots, "default", {}, () => [
|
|
3508
|
-
|
|
3508
|
+
_(S(i.label), 1)
|
|
3509
3509
|
])
|
|
3510
|
-
], 10,
|
|
3510
|
+
], 10, bl)) : p("", !0)
|
|
3511
3511
|
], 64)) : p("", !0),
|
|
3512
|
-
|
|
3512
|
+
k("div", {
|
|
3513
3513
|
class: m(["w-input__input-wrap", l.inputWrapClasses])
|
|
3514
3514
|
}, [
|
|
3515
3515
|
c(e.$slots, "icon-left", {
|
|
@@ -3523,12 +3523,12 @@ function Zi(e, t, i, s, n, l) {
|
|
|
3523
3523
|
onClick: t[1] || (t[1] = (d) => e.$emit("click:inner-icon-left", d))
|
|
3524
3524
|
}, {
|
|
3525
3525
|
default: f(() => [
|
|
3526
|
-
|
|
3526
|
+
_(S(i.innerIconLeft), 1)
|
|
3527
3527
|
]),
|
|
3528
3528
|
_: 1
|
|
3529
3529
|
}, 8, ["for"])) : p("", !0)
|
|
3530
3530
|
]),
|
|
3531
|
-
i.type !== "file" ?
|
|
3531
|
+
i.type !== "file" ? F((o(), u("input", $({
|
|
3532
3532
|
key: 0,
|
|
3533
3533
|
class: "w-input__input",
|
|
3534
3534
|
ref: "input",
|
|
@@ -3550,10 +3550,10 @@ function Zi(e, t, i, s, n, l) {
|
|
|
3550
3550
|
disabled: e.isDisabled || null,
|
|
3551
3551
|
required: e.required || null,
|
|
3552
3552
|
tabindex: e.tabindex || null
|
|
3553
|
-
}, l.attrs), null, 16,
|
|
3554
|
-
[
|
|
3553
|
+
}, l.attrs), null, 16, yl)), [
|
|
3554
|
+
[et, n.inputValue]
|
|
3555
3555
|
]) : (o(), u(v, { key: 1 }, [
|
|
3556
|
-
|
|
3556
|
+
k("input", $({
|
|
3557
3557
|
ref: "input",
|
|
3558
3558
|
id: `w-input--${e._.uid}`,
|
|
3559
3559
|
type: "file",
|
|
@@ -3566,30 +3566,30 @@ function Zi(e, t, i, s, n, l) {
|
|
|
3566
3566
|
disabled: e.isDisabled || null,
|
|
3567
3567
|
"data-progress": l.overallFilesProgress
|
|
3568
3568
|
/* Needed to emit the overallProgress. */
|
|
3569
|
-
}), null, 16,
|
|
3570
|
-
|
|
3569
|
+
}), null, 16, wl),
|
|
3570
|
+
L(fe, {
|
|
3571
3571
|
class: "w-input__input w-input__input--file",
|
|
3572
3572
|
tag: "label",
|
|
3573
3573
|
name: "fade",
|
|
3574
3574
|
for: `w-input--${e._.uid}`
|
|
3575
3575
|
}, {
|
|
3576
3576
|
default: f(() => [
|
|
3577
|
-
!n.inputFiles.length && n.isFocused ? (o(), u("span",
|
|
3577
|
+
!n.inputFiles.length && n.isFocused ? (o(), u("span", kl, [
|
|
3578
3578
|
c(e.$slots, "no-file", {}, () => [
|
|
3579
3579
|
e.$slots["no-file"] === void 0 ? (o(), u(v, { key: 0 }, [
|
|
3580
|
-
|
|
3580
|
+
_("No file")
|
|
3581
3581
|
], 64)) : p("", !0)
|
|
3582
3582
|
])
|
|
3583
3583
|
])) : p("", !0),
|
|
3584
|
-
(o(!0), u(v, null,
|
|
3584
|
+
(o(!0), u(v, null, O(n.inputFiles, (d, h) => (o(), u("span", {
|
|
3585
3585
|
key: d.lastModified
|
|
3586
3586
|
}, [
|
|
3587
|
-
|
|
3587
|
+
_(S(h ? ", " : ""), 1),
|
|
3588
3588
|
(o(), u("span", {
|
|
3589
3589
|
class: "filename",
|
|
3590
3590
|
key: `${h}b`
|
|
3591
3591
|
}, S(d.base), 1)),
|
|
3592
|
-
|
|
3592
|
+
_(S(d.extension ? `.${d.extension}` : ""), 1)
|
|
3593
3593
|
]))), 128))
|
|
3594
3594
|
]),
|
|
3595
3595
|
_: 3
|
|
@@ -3601,7 +3601,7 @@ function Zi(e, t, i, s, n, l) {
|
|
|
3601
3601
|
class: m(["w-input__label w-input__label--inside w-form-el-shakable", e.labelClasses])
|
|
3602
3602
|
}, [
|
|
3603
3603
|
c(e.$slots, "default", {}, () => [
|
|
3604
|
-
|
|
3604
|
+
_(S(i.label), 1)
|
|
3605
3605
|
])
|
|
3606
3606
|
], 2)) : p("", !0)
|
|
3607
3607
|
], 64)) : p("", !0),
|
|
@@ -3616,7 +3616,7 @@ function Zi(e, t, i, s, n, l) {
|
|
|
3616
3616
|
onClick: t[9] || (t[9] = (d) => e.$emit("click:inner-icon-right", d))
|
|
3617
3617
|
}, {
|
|
3618
3618
|
default: f(() => [
|
|
3619
|
-
|
|
3619
|
+
_(S(i.innerIconRight), 1)
|
|
3620
3620
|
]),
|
|
3621
3621
|
_: 1
|
|
3622
3622
|
}, 8, ["for"])) : p("", !0)
|
|
@@ -3634,7 +3634,7 @@ function Zi(e, t, i, s, n, l) {
|
|
|
3634
3634
|
class: "d-flex",
|
|
3635
3635
|
for: `w-input--${e._.uid}`
|
|
3636
3636
|
}, [
|
|
3637
|
-
(o(!0), u(v, null,
|
|
3637
|
+
(o(!0), u(v, null, O(n.inputFiles, (d, h) => (o(), u(v, null, [
|
|
3638
3638
|
d.progress < 100 ? (o(), u("i", {
|
|
3639
3639
|
class: "w-icon wi-spinner w-icon--spin size--sm w-input__file-preview primary",
|
|
3640
3640
|
key: `${h}a`
|
|
@@ -3643,12 +3643,12 @@ function Zi(e, t, i, s, n, l) {
|
|
|
3643
3643
|
key: `${h}b`,
|
|
3644
3644
|
src: d.preview,
|
|
3645
3645
|
alt: ""
|
|
3646
|
-
}, null, 8,
|
|
3646
|
+
}, null, 8, Cl)) : (o(), u("i", {
|
|
3647
3647
|
class: m(["w-icon w-input__file-preview primary size--md", i.preview && typeof i.preview == "string" ? i.preview : "wi-file"]),
|
|
3648
3648
|
key: `${h}c`
|
|
3649
3649
|
}, null, 2))
|
|
3650
3650
|
], 64))), 256))
|
|
3651
|
-
], 8,
|
|
3651
|
+
], 8, vl)) : p("", !0),
|
|
3652
3652
|
i.labelPosition === "right" ? (o(), u(v, { key: 2 }, [
|
|
3653
3653
|
e.$slots.default || i.label ? (o(), u("label", {
|
|
3654
3654
|
key: 0,
|
|
@@ -3656,18 +3656,18 @@ function Zi(e, t, i, s, n, l) {
|
|
|
3656
3656
|
for: `w-input--${e._.uid}`
|
|
3657
3657
|
}, [
|
|
3658
3658
|
c(e.$slots, "default", {}, () => [
|
|
3659
|
-
|
|
3659
|
+
_(S(i.label), 1)
|
|
3660
3660
|
])
|
|
3661
|
-
], 10,
|
|
3661
|
+
], 10, Sl)) : p("", !0)
|
|
3662
3662
|
], 64)) : p("", !0)
|
|
3663
3663
|
], 64))
|
|
3664
3664
|
]),
|
|
3665
3665
|
_: 3
|
|
3666
3666
|
}, 16, ["valid", "wrap", "class", "style"]);
|
|
3667
3667
|
}
|
|
3668
|
-
const
|
|
3668
|
+
const _l = {
|
|
3669
3669
|
name: "w-input",
|
|
3670
|
-
mixins: [
|
|
3670
|
+
mixins: [W],
|
|
3671
3671
|
inheritAttrs: !1,
|
|
3672
3672
|
// The attrs should only be added to the input not the wrapper.
|
|
3673
3673
|
props: {
|
|
@@ -3814,7 +3814,7 @@ const el = {
|
|
|
3814
3814
|
// For file input.
|
|
3815
3815
|
onFileChange(e) {
|
|
3816
3816
|
this.inputFiles = [...e.target.files].map((i) => {
|
|
3817
|
-
const [, s = "", n = "", l = ""] = i.name.match(/^(.*?)\.([^.]*)$|(.*)/), a =
|
|
3817
|
+
const [, s = "", n = "", l = ""] = i.name.match(/^(.*?)\.([^.]*)$|(.*)/), a = ae({
|
|
3818
3818
|
name: i.name,
|
|
3819
3819
|
base: s || l,
|
|
3820
3820
|
extension: n,
|
|
@@ -3852,13 +3852,13 @@ const el = {
|
|
|
3852
3852
|
this.inputValue = e, !e && e !== 0 && (this.isAutofilled = !1, this.inputFiles = []);
|
|
3853
3853
|
}
|
|
3854
3854
|
}
|
|
3855
|
-
},
|
|
3856
|
-
function
|
|
3857
|
-
const a =
|
|
3855
|
+
}, $l = /* @__PURE__ */ C(_l, [["render", Bl]]);
|
|
3856
|
+
function Il(e, t, i, s, n, l) {
|
|
3857
|
+
const a = V("w-icon"), r = V("w-list", !0);
|
|
3858
3858
|
return o(), u("ul", {
|
|
3859
3859
|
class: m(["w-list", l.classes])
|
|
3860
3860
|
}, [
|
|
3861
|
-
(o(!0), u(v, null,
|
|
3861
|
+
(o(!0), u(v, null, O(e.listItems, (d, h) => (o(), u("li", {
|
|
3862
3862
|
class: m(["w-list__item", { "w-list__item--parent": (d.children || []).length }]),
|
|
3863
3863
|
key: h
|
|
3864
3864
|
}, [
|
|
@@ -3867,11 +3867,11 @@ function il(e, t, i, s, n, l) {
|
|
|
3867
3867
|
class: "w-list__item-bullet"
|
|
3868
3868
|
}, {
|
|
3869
3869
|
default: f(() => [
|
|
3870
|
-
|
|
3870
|
+
_(S(i.icon), 1)
|
|
3871
3871
|
]),
|
|
3872
3872
|
_: 1
|
|
3873
3873
|
})) : p("", !0),
|
|
3874
|
-
e.$slots[`item.${h + 1}`] || e.$slots.item || e.$slots.default ? (o(), b(
|
|
3874
|
+
e.$slots[`item.${h + 1}`] || e.$slots.item || e.$slots.default ? (o(), b(R(i.checklist ? "w-checkbox" : i.nav && !d.disabled && d.route ? l.hasRouter ? "router-link" : "a" : "div"), $({
|
|
3875
3875
|
key: 1,
|
|
3876
3876
|
class: "w-list__item-label",
|
|
3877
3877
|
ref_for: !0
|
|
@@ -3893,16 +3893,16 @@ function il(e, t, i, s, n, l) {
|
|
|
3893
3893
|
index: h + 1,
|
|
3894
3894
|
selected: d._selected
|
|
3895
3895
|
}, () => [
|
|
3896
|
-
|
|
3896
|
+
_(S(d._label), 1)
|
|
3897
3897
|
])
|
|
3898
3898
|
]),
|
|
3899
3899
|
_: 2
|
|
3900
|
-
}, 1040)) : (o(), b(
|
|
3900
|
+
}, 1040)) : (o(), b(R(i.checklist ? "w-checkbox" : i.nav && !d.disabled && d.route ? l.hasRouter ? "router-link" : "a" : "div"), $({
|
|
3901
3901
|
key: 2,
|
|
3902
3902
|
class: "w-list__item-label",
|
|
3903
3903
|
ref_for: !0
|
|
3904
3904
|
}, l.liLabelProps(d, h, d._selected)), null, 16)),
|
|
3905
|
-
(d.children || []).length ? (o(), b(r,
|
|
3905
|
+
(d.children || []).length ? (o(), b(r, $({
|
|
3906
3906
|
key: 3,
|
|
3907
3907
|
ref_for: !0
|
|
3908
3908
|
}, e.$props, {
|
|
@@ -3912,26 +3912,26 @@ function il(e, t, i, s, n, l) {
|
|
|
3912
3912
|
onInput: t[1] || (t[1] = (y) => e.$emit("input", y)),
|
|
3913
3913
|
onItemClick: t[2] || (t[2] = (y) => e.$emit("item-click", y)),
|
|
3914
3914
|
onItemSelect: t[3] || (t[3] = (y) => e.$emit("item-select", y))
|
|
3915
|
-
}),
|
|
3915
|
+
}), ne({ _: 2 }, [
|
|
3916
3916
|
e.$slots.item ? {
|
|
3917
3917
|
name: "item",
|
|
3918
|
-
fn: f(({ item: y, index:
|
|
3918
|
+
fn: f(({ item: y, index: w, selected: g }) => [
|
|
3919
3919
|
c(e.$slots, "item", {
|
|
3920
3920
|
item: l.cleanLi(y),
|
|
3921
|
-
index:
|
|
3921
|
+
index: w,
|
|
3922
3922
|
selected: g
|
|
3923
3923
|
})
|
|
3924
3924
|
]),
|
|
3925
3925
|
key: "0"
|
|
3926
3926
|
} : {
|
|
3927
3927
|
name: "default",
|
|
3928
|
-
fn: f(({ item: y, index:
|
|
3928
|
+
fn: f(({ item: y, index: w, selected: g }) => [
|
|
3929
3929
|
c(e.$slots, "default", {
|
|
3930
3930
|
item: l.cleanLi(y),
|
|
3931
|
-
index:
|
|
3931
|
+
index: w,
|
|
3932
3932
|
selected: g
|
|
3933
3933
|
}, () => [
|
|
3934
|
-
|
|
3934
|
+
_(S(y[i.itemLabelKey]), 1)
|
|
3935
3935
|
])
|
|
3936
3936
|
]),
|
|
3937
3937
|
key: "1"
|
|
@@ -3940,7 +3940,7 @@ function il(e, t, i, s, n, l) {
|
|
|
3940
3940
|
], 2))), 128))
|
|
3941
3941
|
], 2);
|
|
3942
3942
|
}
|
|
3943
|
-
const
|
|
3943
|
+
const Vl = {
|
|
3944
3944
|
name: "w-list",
|
|
3945
3945
|
props: {
|
|
3946
3946
|
items: { type: [Array, Number], required: !0 },
|
|
@@ -4134,7 +4134,7 @@ const ll = {
|
|
|
4134
4134
|
}
|
|
4135
4135
|
}
|
|
4136
4136
|
}
|
|
4137
|
-
},
|
|
4137
|
+
}, Tl = /* @__PURE__ */ C(Vl, [["render", Il]]), Me = {
|
|
4138
4138
|
props: {
|
|
4139
4139
|
// Position.
|
|
4140
4140
|
appendTo: { type: [String, Boolean, Object] },
|
|
@@ -4175,7 +4175,7 @@ const ll = {
|
|
|
4175
4175
|
let e = ".w-app";
|
|
4176
4176
|
typeof this.detachableDefaultRoot == "function" && (e = this.detachableDefaultRoot() || e);
|
|
4177
4177
|
let t = this.appendTo || e;
|
|
4178
|
-
return t === !0 ? t = e : this.appendTo === "activator" ? t = this.$el.previousElementSibling : t && !["object", "string"].includes(typeof t) ? t = e : typeof t == "object" && !t.nodeType && (t = e,
|
|
4178
|
+
return t === !0 ? t = e : this.appendTo === "activator" ? t = this.$el.previousElementSibling : t && !["object", "string"].includes(typeof t) ? t = e : typeof t == "object" && !t.nodeType && (t = e, J(`Invalid node provided in ${this.$options.name} \`append-to\`. Falling back to .w-app.`)), typeof t == "string" && (t = document.querySelector(t)), t || (J(`Unable to locate ${this.appendTo ? `target ${this.appendTo}` : e}`), t = document.querySelector(e)), t;
|
|
4179
4179
|
},
|
|
4180
4180
|
// DOM element that will receive the tooltip/menu.
|
|
4181
4181
|
// ! \ This computed uses the DOM - NO SSR (only trigger from beforeMount and later).
|
|
@@ -4312,16 +4312,16 @@ const ll = {
|
|
|
4312
4312
|
}
|
|
4313
4313
|
}
|
|
4314
4314
|
};
|
|
4315
|
-
function
|
|
4316
|
-
const a =
|
|
4315
|
+
function Ll(e, t, i, s, n, l) {
|
|
4316
|
+
const a = V("w-card"), r = V("w-overlay");
|
|
4317
4317
|
return o(), u(v, null, [
|
|
4318
4318
|
c(e.$slots, "activator", { on: l.activatorEventHandlers }),
|
|
4319
|
-
|
|
4319
|
+
L(P, {
|
|
4320
4320
|
name: l.transitionName,
|
|
4321
4321
|
appear: ""
|
|
4322
4322
|
}, {
|
|
4323
4323
|
default: f(() => [
|
|
4324
|
-
i.custom && e.detachableVisible ? (o(), u("div",
|
|
4324
|
+
i.custom && e.detachableVisible ? (o(), u("div", $({
|
|
4325
4325
|
key: 0,
|
|
4326
4326
|
class: "w-menu",
|
|
4327
4327
|
ref: "detachable"
|
|
@@ -4333,7 +4333,7 @@ function ol(e, t, i, s, n, l) {
|
|
|
4333
4333
|
style: l.styles
|
|
4334
4334
|
}), [
|
|
4335
4335
|
c(e.$slots, "default")
|
|
4336
|
-
], 16)) : e.detachableVisible ? (o(), b(a,
|
|
4336
|
+
], 16)) : e.detachableVisible ? (o(), b(a, $({
|
|
4337
4337
|
key: 1,
|
|
4338
4338
|
class: "w-menu",
|
|
4339
4339
|
ref: "detachable"
|
|
@@ -4348,7 +4348,7 @@ function ol(e, t, i, s, n, l) {
|
|
|
4348
4348
|
"no-border": i.noBorder,
|
|
4349
4349
|
class: l.classes,
|
|
4350
4350
|
style: l.styles
|
|
4351
|
-
}),
|
|
4351
|
+
}), ne({
|
|
4352
4352
|
default: f(() => [
|
|
4353
4353
|
c(e.$slots, "default")
|
|
4354
4354
|
]),
|
|
@@ -4372,7 +4372,7 @@ function ol(e, t, i, s, n, l) {
|
|
|
4372
4372
|
]),
|
|
4373
4373
|
_: 3
|
|
4374
4374
|
}, 8, ["name"]),
|
|
4375
|
-
i.overlay ? (o(), b(r,
|
|
4375
|
+
i.overlay ? (o(), b(r, $({
|
|
4376
4376
|
key: 0,
|
|
4377
4377
|
ref: "overlay",
|
|
4378
4378
|
"model-value": e.detachableVisible,
|
|
@@ -4384,9 +4384,9 @@ function ol(e, t, i, s, n, l) {
|
|
|
4384
4384
|
}), null, 16, ["model-value", "persistent", "class", "z-index"])) : p("", !0)
|
|
4385
4385
|
], 64);
|
|
4386
4386
|
}
|
|
4387
|
-
const
|
|
4387
|
+
const Rl = {
|
|
4388
4388
|
name: "w-menu",
|
|
4389
|
-
mixins: [
|
|
4389
|
+
mixins: [Me],
|
|
4390
4390
|
inheritAttrs: !1,
|
|
4391
4391
|
// The attrs are only bound to the button-partial, not the root.
|
|
4392
4392
|
props: {
|
|
@@ -4467,17 +4467,17 @@ const al = {
|
|
|
4467
4467
|
return this.maxWidth === "activator" ? this.activatorWidth ? `${this.activatorWidth}px` : 0 : isNaN(this.maxWidth) ? this.maxWidth : this.maxWidth ? `${this.maxWidth}px` : 0;
|
|
4468
4468
|
},
|
|
4469
4469
|
menuClasses() {
|
|
4470
|
-
return
|
|
4470
|
+
return z(this.menuClass);
|
|
4471
4471
|
},
|
|
4472
4472
|
titleClasses() {
|
|
4473
|
-
return
|
|
4473
|
+
return z(this.titleClass);
|
|
4474
4474
|
},
|
|
4475
4475
|
contentClasses() {
|
|
4476
|
-
return
|
|
4476
|
+
return z(this.contentClass);
|
|
4477
4477
|
},
|
|
4478
4478
|
overlayClasses() {
|
|
4479
4479
|
return {
|
|
4480
|
-
...
|
|
4480
|
+
...z(this.overlayClass),
|
|
4481
4481
|
"w-overlay--no-pointer-event": this.showOnHover
|
|
4482
4482
|
};
|
|
4483
4483
|
},
|
|
@@ -4557,10 +4557,10 @@ const al = {
|
|
|
4557
4557
|
}
|
|
4558
4558
|
}
|
|
4559
4559
|
// watch, mounted & beforeDestroy hooks are set in the detachable.js mixin.
|
|
4560
|
-
},
|
|
4561
|
-
function
|
|
4562
|
-
const a =
|
|
4563
|
-
return o(), b(
|
|
4560
|
+
}, xl = /* @__PURE__ */ C(Rl, [["render", Ll]]);
|
|
4561
|
+
function Ol(e, t, i, s, n, l) {
|
|
4562
|
+
const a = V("w-alert");
|
|
4563
|
+
return o(), b(P, {
|
|
4564
4564
|
name: l.transitionName,
|
|
4565
4565
|
appear: ""
|
|
4566
4566
|
}, {
|
|
@@ -4568,9 +4568,9 @@ function rl(e, t, i, s, n, l) {
|
|
|
4568
4568
|
n.show ? (o(), u("div", {
|
|
4569
4569
|
key: 0,
|
|
4570
4570
|
class: m(["w-notification", l.classes]),
|
|
4571
|
-
style:
|
|
4571
|
+
style: x(l.styles)
|
|
4572
4572
|
}, [
|
|
4573
|
-
|
|
4573
|
+
L(a, $(l.alertProps, {
|
|
4574
4574
|
class: l.alertClasses,
|
|
4575
4575
|
"onUpdate:modelValue": t[0] || (t[0] = (r) => {
|
|
4576
4576
|
e.$emit("update:modelValue", !1), e.$emit("input", !1);
|
|
@@ -4586,7 +4586,7 @@ function rl(e, t, i, s, n, l) {
|
|
|
4586
4586
|
_: 3
|
|
4587
4587
|
}, 8, ["name"]);
|
|
4588
4588
|
}
|
|
4589
|
-
const
|
|
4589
|
+
const Pl = {
|
|
4590
4590
|
name: "w-notification",
|
|
4591
4591
|
props: {
|
|
4592
4592
|
// Notification props.
|
|
@@ -4709,34 +4709,34 @@ const dl = {
|
|
|
4709
4709
|
clearTimeout(this.timeoutId), this.show = e, e && this.timeoutVal && this.countdown();
|
|
4710
4710
|
}
|
|
4711
4711
|
}
|
|
4712
|
-
},
|
|
4713
|
-
function
|
|
4714
|
-
const a =
|
|
4715
|
-
return o(), b(
|
|
4712
|
+
}, zl = /* @__PURE__ */ C(Pl, [["render", Ol]]);
|
|
4713
|
+
function El(e, t, i, s, n, l) {
|
|
4714
|
+
const a = xe("focus");
|
|
4715
|
+
return o(), b(P, {
|
|
4716
4716
|
name: "fade",
|
|
4717
4717
|
appear: "",
|
|
4718
4718
|
onAfterLeave: l.onClose
|
|
4719
4719
|
}, {
|
|
4720
4720
|
default: f(() => [
|
|
4721
|
-
i.modelValue ?
|
|
4721
|
+
i.modelValue ? F((o(), u("div", {
|
|
4722
4722
|
key: 0,
|
|
4723
4723
|
class: m(["w-overlay", l.classes]),
|
|
4724
4724
|
ref: "overlay",
|
|
4725
|
-
style:
|
|
4726
|
-
onKeydown: t[0] || (t[0] = A(
|
|
4725
|
+
style: x(i.modelValue && l.styles || null),
|
|
4726
|
+
onKeydown: t[0] || (t[0] = N(A((...r) => l.onClick && l.onClick(...r), ["stop"]), ["escape"])),
|
|
4727
4727
|
onClick: t[1] || (t[1] = (...r) => l.onClick && l.onClick(...r)),
|
|
4728
4728
|
tabindex: "0"
|
|
4729
4729
|
}, [
|
|
4730
4730
|
c(e.$slots, "default")
|
|
4731
4731
|
], 38)), [
|
|
4732
|
-
[
|
|
4732
|
+
[be, e.showOverlay],
|
|
4733
4733
|
[a]
|
|
4734
4734
|
]) : p("", !0)
|
|
4735
4735
|
]),
|
|
4736
4736
|
_: 3
|
|
4737
4737
|
}, 8, ["onAfterLeave"]);
|
|
4738
4738
|
}
|
|
4739
|
-
const
|
|
4739
|
+
const Ml = {
|
|
4740
4740
|
name: "w-overlay",
|
|
4741
4741
|
props: {
|
|
4742
4742
|
modelValue: {},
|
|
@@ -4794,20 +4794,20 @@ const cl = {
|
|
|
4794
4794
|
e && (this.showOverlay = !0);
|
|
4795
4795
|
}
|
|
4796
4796
|
}
|
|
4797
|
-
},
|
|
4798
|
-
function
|
|
4799
|
-
return o(), u("div",
|
|
4797
|
+
}, Al = /* @__PURE__ */ C(Ml, [["render", El]]), Wl = { class: "w-parallax" };
|
|
4798
|
+
function Kl(e, t, i, s, n, l) {
|
|
4799
|
+
return o(), u("div", Wl);
|
|
4800
4800
|
}
|
|
4801
|
-
const
|
|
4801
|
+
const Nl = {
|
|
4802
4802
|
name: "w-parallax",
|
|
4803
4803
|
props: {},
|
|
4804
4804
|
emits: [],
|
|
4805
4805
|
data: () => ({})
|
|
4806
|
-
},
|
|
4807
|
-
function
|
|
4806
|
+
}, Dl = /* @__PURE__ */ C(Nl, [["render", Kl]]), Hl = ["viewBox"], Fl = ["cx", "cy", "r", "stroke-dasharray", "stroke-width"], jl = ["cx", "cy", "r", "stroke-width", "stroke-linecap", "stroke-dasharray"];
|
|
4807
|
+
function Ul(e, t, i, s, n, l) {
|
|
4808
4808
|
return o(), u("div", {
|
|
4809
4809
|
class: m(["w-progress", l.classes]),
|
|
4810
|
-
style:
|
|
4810
|
+
style: x(l.styles)
|
|
4811
4811
|
}, [
|
|
4812
4812
|
i.circle ? (o(), u("svg", {
|
|
4813
4813
|
key: 1,
|
|
@@ -4822,8 +4822,8 @@ function vl(e, t, i, s, n, l) {
|
|
|
4822
4822
|
fill: "transparent",
|
|
4823
4823
|
"stroke-dasharray": e.circleCircumference,
|
|
4824
4824
|
"stroke-width": i.stroke
|
|
4825
|
-
}, null, 10,
|
|
4826
|
-
|
|
4825
|
+
}, null, 10, Fl)) : p("", !0),
|
|
4826
|
+
k("circle", {
|
|
4827
4827
|
class: "w-progress__progress",
|
|
4828
4828
|
cx: l.circleCenter,
|
|
4829
4829
|
cy: l.circleCenter,
|
|
@@ -4832,24 +4832,24 @@ function vl(e, t, i, s, n, l) {
|
|
|
4832
4832
|
"stroke-width": i.stroke,
|
|
4833
4833
|
"stroke-linecap": i.roundCap && "round",
|
|
4834
4834
|
"stroke-dasharray": e.circleCircumference,
|
|
4835
|
-
style:
|
|
4836
|
-
}, null, 12,
|
|
4837
|
-
], 8,
|
|
4835
|
+
style: x(`stroke-dashoffset: ${(1 - l.progressValue / 100) * e.circleCircumference}`)
|
|
4836
|
+
}, null, 12, jl)
|
|
4837
|
+
], 8, Hl)) : (o(), u("div", {
|
|
4838
4838
|
key: 0,
|
|
4839
4839
|
class: m(["w-progress__progress", { full: l.progressValue === 100 }]),
|
|
4840
|
-
style:
|
|
4840
|
+
style: x(`width: ${l.progressValue}%`)
|
|
4841
4841
|
}, null, 6)),
|
|
4842
4842
|
i.label || e.$slots.default ? (o(), u("div", {
|
|
4843
4843
|
key: 2,
|
|
4844
4844
|
class: m(["w-progress__label", i.labelColor || !1])
|
|
4845
4845
|
}, [
|
|
4846
4846
|
c(e.$slots, "default", {}, () => [
|
|
4847
|
-
|
|
4847
|
+
_(S(Math.round(l.progressValue)) + S(i.circle ? "" : "%"), 1)
|
|
4848
4848
|
])
|
|
4849
4849
|
], 2)) : p("", !0)
|
|
4850
4850
|
], 6);
|
|
4851
4851
|
}
|
|
4852
|
-
const
|
|
4852
|
+
const oe = 40, ql = oe / 2, Xl = Math.round(oe * 3.14 * 100) / 100, Yl = {
|
|
4853
4853
|
name: "w-progress",
|
|
4854
4854
|
props: {
|
|
4855
4855
|
modelValue: { type: [Number, String, Boolean], default: -1 },
|
|
@@ -4876,16 +4876,16 @@ const Q = 40, Cl = Q / 2, Sl = Math.round(Q * 3.14 * 100) / 100, Bl = {
|
|
|
4876
4876
|
},
|
|
4877
4877
|
emits: [],
|
|
4878
4878
|
data: () => ({
|
|
4879
|
-
circleSize:
|
|
4880
|
-
circleRadius:
|
|
4881
|
-
circleCircumference:
|
|
4879
|
+
circleSize: oe,
|
|
4880
|
+
circleRadius: ql,
|
|
4881
|
+
circleCircumference: Xl
|
|
4882
4882
|
}),
|
|
4883
4883
|
computed: {
|
|
4884
4884
|
progressValue() {
|
|
4885
4885
|
return parseFloat(this.modelValue);
|
|
4886
4886
|
},
|
|
4887
4887
|
circleCenter() {
|
|
4888
|
-
return
|
|
4888
|
+
return oe + this.stroke;
|
|
4889
4889
|
},
|
|
4890
4890
|
forcedSize() {
|
|
4891
4891
|
return this.size && (isNaN(this.size) ? this.size : `${this.size}px`);
|
|
@@ -4918,9 +4918,9 @@ const Q = 40, Cl = Q / 2, Sl = Math.round(Q * 3.14 * 100) / 100, Bl = {
|
|
|
4918
4918
|
};
|
|
4919
4919
|
}
|
|
4920
4920
|
}
|
|
4921
|
-
},
|
|
4922
|
-
function
|
|
4923
|
-
return o(), b(
|
|
4921
|
+
}, Gl = /* @__PURE__ */ C(Yl, [["render", Ul]]), Jl = ["id", "name", "checked", "disabled", "required", "tabindex", "aria-checked"], Ql = ["for"], Zl = ["for", "innerHTML"], es = ["for"], ts = ["for", "innerHTML"];
|
|
4922
|
+
function is(e, t, i, s, n, l) {
|
|
4923
|
+
return o(), b(R(e.formRegister && !l.wRadios ? "w-form-element" : "div"), $({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: e.inputValue, disabled: e.isDisabled, readonly: e.isReadonly }, {
|
|
4924
4924
|
valid: e.valid,
|
|
4925
4925
|
"onUpdate:valid": t[3] || (t[3] = (a) => e.valid = a),
|
|
4926
4926
|
onReset: t[4] || (t[4] = (a) => {
|
|
@@ -4929,7 +4929,7 @@ function Rl(e, t, i, s, n, l) {
|
|
|
4929
4929
|
class: l.classes
|
|
4930
4930
|
}), {
|
|
4931
4931
|
default: f(() => [
|
|
4932
|
-
|
|
4932
|
+
k("input", {
|
|
4933
4933
|
ref: "input",
|
|
4934
4934
|
id: `w-radio--${e._.uid}`,
|
|
4935
4935
|
type: "radio",
|
|
@@ -4942,7 +4942,7 @@ function Rl(e, t, i, s, n, l) {
|
|
|
4942
4942
|
onChange: t[1] || (t[1] = (a) => l.onInput(a)),
|
|
4943
4943
|
"aria-checked": e.inputValue || "false",
|
|
4944
4944
|
role: "radio"
|
|
4945
|
-
}, null, 40,
|
|
4945
|
+
}, null, 40, Jl),
|
|
4946
4946
|
l.hasLabel && i.labelOnLeft ? (o(), u(v, { key: 0 }, [
|
|
4947
4947
|
e.$slots.default ? (o(), u("label", {
|
|
4948
4948
|
key: 0,
|
|
@@ -4950,16 +4950,16 @@ function Rl(e, t, i, s, n, l) {
|
|
|
4950
4950
|
for: `w-radio--${e._.uid}`
|
|
4951
4951
|
}, [
|
|
4952
4952
|
c(e.$slots, "default", {}, () => [
|
|
4953
|
-
|
|
4953
|
+
_(S(i.label), 1)
|
|
4954
4954
|
])
|
|
4955
|
-
], 10,
|
|
4955
|
+
], 10, Ql)) : i.label ? (o(), u("label", {
|
|
4956
4956
|
key: 1,
|
|
4957
4957
|
class: m(["w-radio__label w-form-el-shakable pr2", e.labelClasses]),
|
|
4958
4958
|
for: `w-radio--${e._.uid}`,
|
|
4959
4959
|
innerHTML: i.label
|
|
4960
|
-
}, null, 10,
|
|
4960
|
+
}, null, 10, Zl)) : p("", !0)
|
|
4961
4961
|
], 64)) : p("", !0),
|
|
4962
|
-
|
|
4962
|
+
k("div", {
|
|
4963
4963
|
class: m(["w-radio__input", this.color]),
|
|
4964
4964
|
onClick: t[2] || (t[2] = (a) => {
|
|
4965
4965
|
e.$refs.input.focus(), e.$refs.input.click();
|
|
@@ -4972,22 +4972,22 @@ function Rl(e, t, i, s, n, l) {
|
|
|
4972
4972
|
for: `w-radio--${e._.uid}`
|
|
4973
4973
|
}, [
|
|
4974
4974
|
c(e.$slots, "default", {}, () => [
|
|
4975
|
-
|
|
4975
|
+
_(S(i.label), 1)
|
|
4976
4976
|
])
|
|
4977
|
-
], 10,
|
|
4977
|
+
], 10, es)) : i.label ? (o(), u("label", {
|
|
4978
4978
|
key: 1,
|
|
4979
4979
|
class: m(["w-radio__label w-form-el-shakable pl2", e.labelClasses]),
|
|
4980
4980
|
for: `w-radio--${e._.uid}`,
|
|
4981
4981
|
innerHTML: i.label
|
|
4982
|
-
}, null, 10,
|
|
4982
|
+
}, null, 10, ts)) : p("", !0)
|
|
4983
4983
|
], 64)) : p("", !0)
|
|
4984
4984
|
]),
|
|
4985
4985
|
_: 3
|
|
4986
4986
|
}, 16, ["valid", "class"]);
|
|
4987
4987
|
}
|
|
4988
|
-
const
|
|
4988
|
+
const ls = {
|
|
4989
4989
|
name: "w-radio",
|
|
4990
|
-
mixins: [
|
|
4990
|
+
mixins: [W],
|
|
4991
4991
|
inject: { wRadios: { default: null } },
|
|
4992
4992
|
props: {
|
|
4993
4993
|
modelValue: { default: !1 },
|
|
@@ -5050,10 +5050,10 @@ const xl = {
|
|
|
5050
5050
|
this.toggleFromOutside();
|
|
5051
5051
|
}
|
|
5052
5052
|
}
|
|
5053
|
-
},
|
|
5054
|
-
function
|
|
5055
|
-
const a =
|
|
5056
|
-
return o(), b(
|
|
5053
|
+
}, ss = /* @__PURE__ */ C(ls, [["render", is]]), os = ["innerHTML"];
|
|
5054
|
+
function as(e, t, i, s, n, l) {
|
|
5055
|
+
const a = V("w-radio");
|
|
5056
|
+
return o(), b(R(e.formRegister ? "w-form-element" : "div"), $({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: e.inputValue, disabled: e.isDisabled }, {
|
|
5057
5057
|
valid: e.valid,
|
|
5058
5058
|
"onUpdate:valid": t[1] || (t[1] = (r) => e.valid = r),
|
|
5059
5059
|
onReset: t[2] || (t[2] = (r) => {
|
|
@@ -5064,7 +5064,7 @@ function zl(e, t, i, s, n, l) {
|
|
|
5064
5064
|
class: l.classes
|
|
5065
5065
|
}), {
|
|
5066
5066
|
default: f(() => [
|
|
5067
|
-
(o(!0), u(v, null,
|
|
5067
|
+
(o(!0), u(v, null, O(l.radioItems, (r, d) => (o(), b(a, $({
|
|
5068
5068
|
key: d,
|
|
5069
5069
|
"model-value": r.value === i.modelValue,
|
|
5070
5070
|
"onUpdate:modelValue": (h) => l.onInput(r),
|
|
@@ -5086,7 +5086,7 @@ function zl(e, t, i, s, n, l) {
|
|
|
5086
5086
|
}) : r.label ? (o(), u("div", {
|
|
5087
5087
|
key: 1,
|
|
5088
5088
|
innerHTML: r.label
|
|
5089
|
-
}, null, 8,
|
|
5089
|
+
}, null, 8, os)) : p("", !0)
|
|
5090
5090
|
]),
|
|
5091
5091
|
_: 2
|
|
5092
5092
|
}, 1040, ["model-value", "onUpdate:modelValue", "name", "disabled", "readonly", "class"]))), 128))
|
|
@@ -5094,9 +5094,9 @@ function zl(e, t, i, s, n, l) {
|
|
|
5094
5094
|
_: 3
|
|
5095
5095
|
}, 16, ["valid", "column", "wrap", "class"]);
|
|
5096
5096
|
}
|
|
5097
|
-
const
|
|
5097
|
+
const ns = {
|
|
5098
5098
|
name: "w-radios",
|
|
5099
|
-
mixins: [
|
|
5099
|
+
mixins: [W],
|
|
5100
5100
|
props: {
|
|
5101
5101
|
items: { type: Array, required: !0 },
|
|
5102
5102
|
// All the possible options.
|
|
@@ -5147,9 +5147,9 @@ const Ml = {
|
|
|
5147
5147
|
return this.items[e._index];
|
|
5148
5148
|
}
|
|
5149
5149
|
}
|
|
5150
|
-
},
|
|
5151
|
-
function
|
|
5152
|
-
return o(), b(
|
|
5150
|
+
}, rs = /* @__PURE__ */ C(ns, [["render", as]]), ds = ["id", "name", "value"], us = ["disabled", "onMouseenter", "onClick", "tabindex"];
|
|
5151
|
+
function hs(e, t, i, s, n, l) {
|
|
5152
|
+
return o(), b(R(e.formRegister ? "w-form-element" : "div"), $({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: n.rating, disabled: e.isDisabled, readonly: e.isReadonly }, {
|
|
5153
5153
|
valid: e.valid,
|
|
5154
5154
|
"onUpdate:valid": t[4] || (t[4] = (a) => e.valid = a),
|
|
5155
5155
|
onReset: t[5] || (t[5] = (a) => {
|
|
@@ -5158,18 +5158,18 @@ function Kl(e, t, i, s, n, l) {
|
|
|
5158
5158
|
class: l.classes
|
|
5159
5159
|
}), {
|
|
5160
5160
|
default: f(() => [
|
|
5161
|
-
|
|
5161
|
+
k("input", {
|
|
5162
5162
|
id: e.inputName,
|
|
5163
5163
|
name: e.inputName,
|
|
5164
5164
|
type: "hidden",
|
|
5165
5165
|
value: n.rating
|
|
5166
|
-
}, null, 8,
|
|
5167
|
-
(o(!0), u(v, null,
|
|
5166
|
+
}, null, 8, ds),
|
|
5167
|
+
(o(!0), u(v, null, O(i.max, (a) => (o(), u(v, { key: a }, [
|
|
5168
5168
|
e.$slots.item ? c(e.$slots, "item", {
|
|
5169
5169
|
key: 0,
|
|
5170
5170
|
index: a + 1
|
|
5171
5171
|
}) : p("", !0),
|
|
5172
|
-
|
|
5172
|
+
k("button", {
|
|
5173
5173
|
class: m(["w-rating__button", l.buttonClasses(a)]),
|
|
5174
5174
|
disabled: e.isDisabled || e.isReadonly,
|
|
5175
5175
|
onMouseenter: (r) => n.hover = a,
|
|
@@ -5186,17 +5186,17 @@ function Kl(e, t, i, s, n, l) {
|
|
|
5186
5186
|
class: m(["w-icon", `${i.icon} ${i.color}`]),
|
|
5187
5187
|
role: "icon",
|
|
5188
5188
|
"aria-hidden": "true",
|
|
5189
|
-
style:
|
|
5189
|
+
style: x(l.halfStarStyle)
|
|
5190
5190
|
}, null, 6)) : p("", !0)
|
|
5191
|
-
], 42,
|
|
5191
|
+
], 42, us)
|
|
5192
5192
|
], 64))), 128))
|
|
5193
5193
|
]),
|
|
5194
5194
|
_: 3
|
|
5195
5195
|
}, 16, ["valid", "class"]);
|
|
5196
5196
|
}
|
|
5197
|
-
const
|
|
5197
|
+
const cs = {
|
|
5198
5198
|
name: "w-rating",
|
|
5199
|
-
mixins: [
|
|
5199
|
+
mixins: [W],
|
|
5200
5200
|
props: {
|
|
5201
5201
|
modelValue: {},
|
|
5202
5202
|
max: { type: [Number, String], default: 5 },
|
|
@@ -5288,56 +5288,8 @@ const Nl = {
|
|
|
5288
5288
|
this.rating = parseFloat(e);
|
|
5289
5289
|
}
|
|
5290
5290
|
}
|
|
5291
|
-
},
|
|
5292
|
-
|
|
5293
|
-
return o(), u(v, null, [
|
|
5294
|
-
w("div", _({
|
|
5295
|
-
class: ["w-scrollable", l.scrollableClasses],
|
|
5296
|
-
ref: "scrollable",
|
|
5297
|
-
onMouseenter: t[0] || (t[0] = (...a) => l.onMouseEnter && l.onMouseEnter(...a)),
|
|
5298
|
-
onMouseleave: t[1] || (t[1] = (...a) => l.onMouseLeave && l.onMouseLeave(...a)),
|
|
5299
|
-
onMousewheel: t[2] || (t[2] = (...a) => l.onMouseWheel && l.onMouseWheel(...a))
|
|
5300
|
-
}, e.$attrs, { style: l.scrollableStyles }), [
|
|
5301
|
-
c(e.$slots, "default")
|
|
5302
|
-
], 16),
|
|
5303
|
-
w("div", {
|
|
5304
|
-
class: m(["w-scrollbar", l.scrollbarClasses]),
|
|
5305
|
-
ref: "track",
|
|
5306
|
-
onMousedown: t[3] || (t[3] = (...a) => l.onTrackMouseDown && l.onTrackMouseDown(...a))
|
|
5307
|
-
}, [
|
|
5308
|
-
w("div", {
|
|
5309
|
-
class: "w-scrollbar__thumb",
|
|
5310
|
-
ref: "thumb",
|
|
5311
|
-
style: R(l.thumbStyles)
|
|
5312
|
-
}, null, 4)
|
|
5313
|
-
], 34)
|
|
5314
|
-
], 64);
|
|
5315
|
-
}
|
|
5316
|
-
const Fl = {
|
|
5317
|
-
h: {
|
|
5318
|
-
direction: "horizontal",
|
|
5319
|
-
topOrLeft: "left",
|
|
5320
|
-
size: "width",
|
|
5321
|
-
offsetSize: "offsetWidth",
|
|
5322
|
-
maxSize: "max-width",
|
|
5323
|
-
scrollSize: "scrollWidth",
|
|
5324
|
-
clientXorY: "clientX",
|
|
5325
|
-
deltaXorY: "deltaX",
|
|
5326
|
-
scrollTopOrLeft: "scrollLeft"
|
|
5327
|
-
},
|
|
5328
|
-
v: {
|
|
5329
|
-
direction: "vertical",
|
|
5330
|
-
topOrLeft: "top",
|
|
5331
|
-
size: "height",
|
|
5332
|
-
offsetSize: "offsetHeight",
|
|
5333
|
-
maxSize: "max-height",
|
|
5334
|
-
scrollSize: "scrollHeight",
|
|
5335
|
-
clientXorY: "clientY",
|
|
5336
|
-
deltaXorY: "deltaY",
|
|
5337
|
-
scrollTopOrLeft: "scrollTop"
|
|
5338
|
-
}
|
|
5339
|
-
}, jl = {
|
|
5340
|
-
name: "w-scrollable",
|
|
5291
|
+
}, ps = /* @__PURE__ */ C(cs, [["render", hs]]), ms = /* @__PURE__ */ Object.assign({ name: "WScrollable" }, {
|
|
5292
|
+
__name: "w-scrollable",
|
|
5341
5293
|
props: {
|
|
5342
5294
|
color: { type: String, default: "primary" },
|
|
5343
5295
|
bgColor: { type: String },
|
|
@@ -5345,97 +5297,129 @@ const Fl = {
|
|
|
5345
5297
|
height: { type: [Number, String] }
|
|
5346
5298
|
},
|
|
5347
5299
|
emits: [],
|
|
5348
|
-
|
|
5349
|
-
|
|
5350
|
-
|
|
5300
|
+
setup(e, { expose: t, emit: i }) {
|
|
5301
|
+
const s = e, n = {
|
|
5302
|
+
h: {
|
|
5303
|
+
direction: "horizontal",
|
|
5304
|
+
topOrLeft: "left",
|
|
5305
|
+
size: "width",
|
|
5306
|
+
offsetSize: "offsetWidth",
|
|
5307
|
+
maxSize: "max-width",
|
|
5308
|
+
scrollSize: "scrollWidth",
|
|
5309
|
+
clientXorY: "clientX",
|
|
5310
|
+
deltaXorY: "deltaX",
|
|
5311
|
+
scrollTopOrLeft: "scrollLeft"
|
|
5312
|
+
},
|
|
5313
|
+
v: {
|
|
5314
|
+
direction: "vertical",
|
|
5315
|
+
topOrLeft: "top",
|
|
5316
|
+
size: "height",
|
|
5317
|
+
offsetSize: "offsetHeight",
|
|
5318
|
+
maxSize: "max-height",
|
|
5319
|
+
scrollSize: "scrollHeight",
|
|
5320
|
+
clientXorY: "clientY",
|
|
5321
|
+
deltaXorY: "deltaY",
|
|
5322
|
+
scrollTopOrLeft: "scrollTop"
|
|
5323
|
+
}
|
|
5324
|
+
}, l = D(!1), a = D(null), r = D(null), d = D(null), h = D({
|
|
5351
5325
|
top: null,
|
|
5352
5326
|
left: null,
|
|
5353
5327
|
hovered: !1
|
|
5354
|
-
},
|
|
5355
|
-
|
|
5356
|
-
|
|
5357
|
-
|
|
5358
|
-
|
|
5359
|
-
|
|
5360
|
-
|
|
5361
|
-
},
|
|
5362
|
-
|
|
5363
|
-
return
|
|
5364
|
-
}
|
|
5365
|
-
|
|
5366
|
-
|
|
5367
|
-
|
|
5368
|
-
|
|
5369
|
-
|
|
5370
|
-
|
|
5371
|
-
|
|
5372
|
-
|
|
5373
|
-
|
|
5374
|
-
|
|
5375
|
-
thumbSizePercent() {
|
|
5376
|
-
var t;
|
|
5377
|
-
return this.mounted && (this[this.m.size] ?? this.$refs.scrollable[[this.m.offsetSize]]) * 100 / ((t = this.$refs.scrollable) == null ? void 0 : t[this.m.scrollSize]) || 0;
|
|
5378
|
-
},
|
|
5379
|
-
scrollableStyles() {
|
|
5380
|
-
return {
|
|
5381
|
-
[this.m.maxSize]: `${this[this.m.size]}px`
|
|
5382
|
-
};
|
|
5383
|
-
},
|
|
5384
|
-
thumbStyles() {
|
|
5385
|
-
let e = this.scrollValuePercent;
|
|
5386
|
-
return e = Math.max(0, Math.min(e, 100 - this.thumbSizePercent)), {
|
|
5387
|
-
[this.m.size]: `${this.thumbSizePercent}%`,
|
|
5388
|
-
[this.m.topOrLeft]: `${e}%`
|
|
5328
|
+
}), y = D(0), w = D(!1), g = H(() => {
|
|
5329
|
+
var T, M, K, j;
|
|
5330
|
+
return l.value ? (console.log("💂♂️", (T = a.value) == null ? void 0 : T.scrollWidth, (M = a.value) == null ? void 0 : M.offsetWidth), s.width && !s.height || ((K = a.value) == null ? void 0 : K.scrollWidth) > ((j = a.value) == null ? void 0 : j.offsetWidth)) : !1;
|
|
5331
|
+
}), B = H(() => n[g.value ? "h" : "v"]), I = H(() => ({
|
|
5332
|
+
[`w-scrollable--${B.value.direction}`]: !0
|
|
5333
|
+
})), E = H(() => ({
|
|
5334
|
+
[`w-scrollable__scrollbar--${B.value.direction}`]: !0
|
|
5335
|
+
})), ye = D(0), re = H(() => {
|
|
5336
|
+
var M, K;
|
|
5337
|
+
return ye.value, l.value && (s[B.value.size] ?? ((M = a.value) == null ? void 0 : M[B.value.offsetSize])) * 100 / ((K = a.value) == null ? void 0 : K[B.value.scrollSize]) || 0;
|
|
5338
|
+
});
|
|
5339
|
+
function we() {
|
|
5340
|
+
ye.value++;
|
|
5341
|
+
}
|
|
5342
|
+
const Ae = H(() => ({
|
|
5343
|
+
[B.value.maxSize]: s[B.value.size] ? `${s[B.value.size]}px` : void 0
|
|
5344
|
+
})), We = H(() => {
|
|
5345
|
+
let T = y.value;
|
|
5346
|
+
return T = Math.max(0, Math.min(T, 100 - re.value)), {
|
|
5347
|
+
[B.value.size]: `${re.value}%`,
|
|
5348
|
+
[B.value.topOrLeft]: `${T}%`
|
|
5389
5349
|
};
|
|
5350
|
+
});
|
|
5351
|
+
function Ke(T) {
|
|
5352
|
+
if (s.isDisabled || s.isReadonly || "ontouchstart" in window && T.type === "mousedown") return;
|
|
5353
|
+
const { top: M, left: K, width: j, height: de } = r.value.getBoundingClientRect();
|
|
5354
|
+
g.value ? (r.value.width = j, r.value.left = K) : (r.value.height = de, r.value.top = M), w.value = !0, ve(T.type === "touchstart" ? T.touches[0][B.value.clientXorY] : T[B.value.clientXorY]), te(), document.addEventListener(T.type === "touchstart" ? "touchmove" : "mousemove", ke), document.addEventListener(T.type === "touchstart" ? "touchend" : "mouseup", Ne, { once: !0 });
|
|
5390
5355
|
}
|
|
5391
|
-
|
|
5392
|
-
|
|
5393
|
-
onTrackMouseDown(e) {
|
|
5394
|
-
if (this.isDisabled || this.isReadonly || "ontouchstart" in window && e.type === "mousedown") return;
|
|
5395
|
-
const { top: t, left: i, width: s, height: n } = this.$refs.track.getBoundingClientRect();
|
|
5396
|
-
this.isHorizontal ? (this.$refs.track.width = s, this.$refs.track.left = i) : (this.$refs.track.height = n, this.$refs.track.top = t), this.dragging = !0, this.computeScroll(e.type === "touchstart" ? e.touches[0][this.m.clientXorY] : e[this.m.clientXorY]), this.scroll(), document.addEventListener(e.type === "touchstart" ? "touchmove" : "mousemove", this.onDrag), document.addEventListener(e.type === "touchstart" ? "touchend" : "mouseup", this.onMouseUp, { once: !0 });
|
|
5397
|
-
},
|
|
5398
|
-
onDrag(e) {
|
|
5399
|
-
this.computeScroll(e.type === "touchmove" ? e.touches[0][this.m.clientXorY] : e[this.m.clientXorY]), this.scroll();
|
|
5400
|
-
},
|
|
5401
|
-
onMouseUp(e) {
|
|
5402
|
-
this.dragging = !1, document.removeEventListener(e.type === "touchend" ? "touchmove" : "mousemove", this.onDrag), this.$refs.thumb && this.$refs.thumb.focus();
|
|
5403
|
-
},
|
|
5404
|
-
onMouseEnter() {
|
|
5405
|
-
this.scrollable.hovered = !0;
|
|
5406
|
-
},
|
|
5407
|
-
onMouseLeave() {
|
|
5408
|
-
this.scrollable.hovered = !1;
|
|
5409
|
-
},
|
|
5410
|
-
onResize() {
|
|
5411
|
-
},
|
|
5412
|
-
onMouseWheel(e) {
|
|
5413
|
-
this.scrollable.hovered && (this.scrollValuePercent <= 0 && e[this.m.deltaXorY] < 0 || this.scrollValuePercent >= 100 - this.thumbSizePercent && e[this.m.deltaXorY] > 0 || (e.preventDefault(), this.scrollValuePercent += e[this.m.deltaXorY] * 0.05, this.scrollValuePercent = Math.max(0, Math.min(this.scrollValuePercent, 100)), this.scroll()));
|
|
5414
|
-
},
|
|
5415
|
-
computeScroll(e) {
|
|
5416
|
-
const { top: t, left: i, width: s, height: n } = this.$refs.scrollable.getBoundingClientRect(), l = this.isHorizontal ? i : t, a = this.isHorizontal ? s : n;
|
|
5417
|
-
this.scrollValuePercent = Math.max(0, Math.min((e - l) / a * 100, 100));
|
|
5418
|
-
},
|
|
5419
|
-
scroll() {
|
|
5420
|
-
var e;
|
|
5421
|
-
this.$refs.scrollable[this.m.scrollTopOrLeft] = this.scrollValuePercent * ((e = this.$refs.scrollable) == null ? void 0 : e[this.m.scrollSize]) / 100, this.updateThumbPosition();
|
|
5422
|
-
},
|
|
5423
|
-
updateThumbPosition() {
|
|
5424
|
-
this.$refs.thumb.style[this.m.topOrLeft] = this.scrollValuePercent;
|
|
5356
|
+
function ke(T) {
|
|
5357
|
+
ve(T.type === "touchmove" ? T.touches[0][B.value.clientXorY] : T[B.value.clientXorY]), te();
|
|
5425
5358
|
}
|
|
5426
|
-
|
|
5427
|
-
|
|
5428
|
-
|
|
5429
|
-
|
|
5430
|
-
|
|
5359
|
+
function Ne(T) {
|
|
5360
|
+
w.value = !1, document.removeEventListener(T.type === "touchend" ? "touchmove" : "mousemove", ke), d.value && d.value.focus();
|
|
5361
|
+
}
|
|
5362
|
+
function De() {
|
|
5363
|
+
h.value.hovered = !0;
|
|
5364
|
+
}
|
|
5365
|
+
function He() {
|
|
5366
|
+
h.value.hovered = !1;
|
|
5367
|
+
}
|
|
5368
|
+
function Fe(T) {
|
|
5369
|
+
h.value.hovered && (y.value <= 0 && T[B.value.deltaXorY] < 0 || y.value >= 100 - re.value && T[B.value.deltaXorY] > 0 || (T.preventDefault(), y.value += T[B.value.deltaXorY] * 0.05, y.value = Math.max(0, Math.min(y.value, 100)), te()));
|
|
5370
|
+
}
|
|
5371
|
+
function ve(T) {
|
|
5372
|
+
const { top: M, left: K, width: j, height: de } = a.value.getBoundingClientRect(), Ue = g.value ? K : M, qe = g.value ? j : de;
|
|
5373
|
+
y.value = Math.max(0, Math.min((T - Ue) / qe * 100, 100));
|
|
5374
|
+
}
|
|
5375
|
+
function te() {
|
|
5376
|
+
var T;
|
|
5377
|
+
a.value[B.value.scrollTopOrLeft] = y.value * ((T = a.value) == null ? void 0 : T[B.value.scrollSize]) / 100, je();
|
|
5378
|
+
}
|
|
5379
|
+
function je() {
|
|
5380
|
+
d.value.style[B.value.topOrLeft] = y.value;
|
|
5381
|
+
}
|
|
5382
|
+
return tt(() => {
|
|
5383
|
+
l.value = !0;
|
|
5384
|
+
const { top: T, left: M } = a.value.getBoundingClientRect();
|
|
5385
|
+
h.value.top = T, h.value.left = M, window.addEventListener("resize", we);
|
|
5386
|
+
}), it(() => {
|
|
5387
|
+
window.removeEventListener("resize", we);
|
|
5388
|
+
}), t({ scroll: te }), (T, M) => (o(), u("div", $({
|
|
5389
|
+
class: ["w-scrollable", I.value],
|
|
5390
|
+
onMouseenter: De,
|
|
5391
|
+
onMouseleave: He,
|
|
5392
|
+
onMousewheel: Fe
|
|
5393
|
+
}, T.$attrs, { style: Ae.value }), [
|
|
5394
|
+
k("div", {
|
|
5395
|
+
class: "w-scrollable__content",
|
|
5396
|
+
ref_key: "scrollableEl",
|
|
5397
|
+
ref: a
|
|
5398
|
+
}, [
|
|
5399
|
+
c(T.$slots, "default")
|
|
5400
|
+
], 512),
|
|
5401
|
+
k("div", {
|
|
5402
|
+
class: m(["w-scrollable__scrollbar", E.value]),
|
|
5403
|
+
ref_key: "trackEl",
|
|
5404
|
+
ref: r,
|
|
5405
|
+
onMousedown: Ke
|
|
5406
|
+
}, [
|
|
5407
|
+
k("div", {
|
|
5408
|
+
class: "w-scrollable__scrollbar-thumb",
|
|
5409
|
+
ref_key: "thumbEl",
|
|
5410
|
+
ref: d,
|
|
5411
|
+
style: x(We.value)
|
|
5412
|
+
}, null, 4)
|
|
5413
|
+
], 34)
|
|
5414
|
+
], 16));
|
|
5431
5415
|
}
|
|
5432
|
-
}
|
|
5416
|
+
}), fs = ["aria-expanded", "aria-owns", "aria-activedescendant"], gs = {
|
|
5433
5417
|
key: 0,
|
|
5434
5418
|
class: "w-select__selection-slot"
|
|
5435
|
-
},
|
|
5436
|
-
function
|
|
5437
|
-
const a =
|
|
5438
|
-
return o(), b(
|
|
5419
|
+
}, bs = ["innerHTML"], ys = ["value", "name"];
|
|
5420
|
+
function ws(e, t, i, s, n, l) {
|
|
5421
|
+
const a = V("w-icon"), r = V("w-list"), d = V("w-menu");
|
|
5422
|
+
return o(), b(R(e.formRegister ? "w-form-element" : "div"), $({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: l.selectionString, disabled: e.isDisabled, readonly: e.isReadonly, isFocused: e.isFocused }, {
|
|
5439
5423
|
valid: e.valid,
|
|
5440
5424
|
"onUpdate:valid": t[12] || (t[12] = (h) => e.valid = h),
|
|
5441
5425
|
onReset: l.onReset,
|
|
@@ -5450,11 +5434,11 @@ function Jl(e, t, i, s, n, l) {
|
|
|
5450
5434
|
onClick: t[0] || (t[0] = (h) => e.$refs["selection-input"].click())
|
|
5451
5435
|
}, [
|
|
5452
5436
|
c(e.$slots, "default", {}, () => [
|
|
5453
|
-
|
|
5437
|
+
_(S(i.label), 1)
|
|
5454
5438
|
])
|
|
5455
5439
|
], 2)) : p("", !0)
|
|
5456
5440
|
], 64)) : p("", !0),
|
|
5457
|
-
|
|
5441
|
+
L(d, $({
|
|
5458
5442
|
modelValue: e.showMenu,
|
|
5459
5443
|
"onUpdate:modelValue": t[10] || (t[10] = (h) => e.showMenu = h),
|
|
5460
5444
|
onClose: l.closeMenu,
|
|
@@ -5466,7 +5450,7 @@ function Jl(e, t, i, s, n, l) {
|
|
|
5466
5450
|
"min-width": "activator"
|
|
5467
5451
|
}, i.menuProps || {}), {
|
|
5468
5452
|
activator: f(() => [
|
|
5469
|
-
|
|
5453
|
+
k("div", {
|
|
5470
5454
|
class: m(["w-select__selection-wrap", l.inputWrapClasses]),
|
|
5471
5455
|
onClick: t[6] || (t[6] = (h) => !e.isDisabled && !e.isReadonly && l.onInputFieldClick()),
|
|
5472
5456
|
role: "button",
|
|
@@ -5483,36 +5467,36 @@ function Jl(e, t, i, s, n, l) {
|
|
|
5483
5467
|
onClick: t[1] || (t[1] = (h) => e.$emit("click:inner-icon-left", h))
|
|
5484
5468
|
}, {
|
|
5485
5469
|
default: f(() => [
|
|
5486
|
-
|
|
5470
|
+
_(S(i.innerIconLeft), 1)
|
|
5487
5471
|
]),
|
|
5488
5472
|
_: 1
|
|
5489
5473
|
})) : p("", !0)
|
|
5490
5474
|
]),
|
|
5491
|
-
e.$slots.selection ? (o(), u("div",
|
|
5475
|
+
e.$slots.selection ? (o(), u("div", gs, [
|
|
5492
5476
|
c(e.$slots, "selection", {
|
|
5493
5477
|
item: i.multiple ? e.inputValue : e.inputValue[0]
|
|
5494
5478
|
})
|
|
5495
5479
|
])) : p("", !0),
|
|
5496
|
-
|
|
5480
|
+
k("div", $({
|
|
5497
5481
|
class: "w-select__selection",
|
|
5498
5482
|
ref: "selection-input",
|
|
5499
5483
|
onFocus: t[2] || (t[2] = (h) => !e.isDisabled && !e.isReadonly && l.onFocus(h)),
|
|
5500
5484
|
onBlur: t[3] || (t[3] = (...h) => l.onBlur && l.onBlur(...h)),
|
|
5501
5485
|
onKeydown: t[4] || (t[4] = (h) => !e.isDisabled && !e.isReadonly && l.onKeydown(h))
|
|
5502
|
-
}, l.selectionAttributes, { innerHTML: l.selectionHtml }), null, 16,
|
|
5503
|
-
(o(!0), u(v, null,
|
|
5486
|
+
}, l.selectionAttributes, { innerHTML: l.selectionHtml }), null, 16, bs),
|
|
5487
|
+
(o(!0), u(v, null, O(e.inputValue.length ? e.inputValue : [{}], (h, y) => (o(), u("input", {
|
|
5504
5488
|
key: y,
|
|
5505
5489
|
type: "hidden",
|
|
5506
5490
|
value: h.value === void 0 ? "" : h.value.toString(),
|
|
5507
5491
|
name: e.inputName + (i.multiple ? "[]" : "")
|
|
5508
|
-
}, null, 8,
|
|
5492
|
+
}, null, 8, ys))), 128)),
|
|
5509
5493
|
i.labelPosition === "inside" && l.showLabelInside ? (o(), u(v, { key: 1 }, [
|
|
5510
5494
|
e.$slots.default || i.label ? (o(), u("label", {
|
|
5511
5495
|
key: 0,
|
|
5512
5496
|
class: m(["w-select__label w-select__label--inside w-form-el-shakable", e.labelClasses])
|
|
5513
5497
|
}, [
|
|
5514
5498
|
c(e.$slots, "default", {}, () => [
|
|
5515
|
-
|
|
5499
|
+
_(S(i.label), 1)
|
|
5516
5500
|
])
|
|
5517
5501
|
], 2)) : p("", !0)
|
|
5518
5502
|
], 64)) : p("", !0),
|
|
@@ -5524,15 +5508,15 @@ function Jl(e, t, i, s, n, l) {
|
|
|
5524
5508
|
onClick: t[5] || (t[5] = (h) => e.$emit("click:inner-icon-right", h))
|
|
5525
5509
|
}, {
|
|
5526
5510
|
default: f(() => [
|
|
5527
|
-
|
|
5511
|
+
_(S(i.innerIconRight), 1)
|
|
5528
5512
|
]),
|
|
5529
5513
|
_: 1
|
|
5530
5514
|
})) : p("", !0)
|
|
5531
5515
|
])
|
|
5532
|
-
], 10,
|
|
5516
|
+
], 10, fs)
|
|
5533
5517
|
]),
|
|
5534
5518
|
default: f(() => [
|
|
5535
|
-
|
|
5519
|
+
L(r, {
|
|
5536
5520
|
ref: "w-list",
|
|
5537
5521
|
"model-value": e.inputValue,
|
|
5538
5522
|
"onUpdate:modelValue": l.onInput,
|
|
@@ -5551,24 +5535,24 @@ function Jl(e, t, i, s, n, l) {
|
|
|
5551
5535
|
"item-color-key": i.itemColorKey,
|
|
5552
5536
|
role: "listbox",
|
|
5553
5537
|
tabindex: "-1"
|
|
5554
|
-
},
|
|
5555
|
-
|
|
5538
|
+
}, ne({ _: 2 }, [
|
|
5539
|
+
O(i.items.length, (h) => ({
|
|
5556
5540
|
name: `item.${h}`,
|
|
5557
|
-
fn: f(({ item: y, selected:
|
|
5558
|
-
e.$slots[`item.${h}`] && e.$slots[`item.${h}`](y,
|
|
5541
|
+
fn: f(({ item: y, selected: w, index: g }) => [
|
|
5542
|
+
e.$slots[`item.${h}`] && e.$slots[`item.${h}`](y, w, g) ? c(e.$slots, `item.${h}`, {
|
|
5559
5543
|
key: 0,
|
|
5560
5544
|
item: y,
|
|
5561
|
-
selected:
|
|
5545
|
+
selected: w,
|
|
5562
5546
|
index: g
|
|
5563
5547
|
}, () => [
|
|
5564
|
-
|
|
5548
|
+
_(S(y[i.itemLabelKey]), 1)
|
|
5565
5549
|
]) : c(e.$slots, "item", {
|
|
5566
5550
|
key: 1,
|
|
5567
5551
|
item: y,
|
|
5568
|
-
selected:
|
|
5552
|
+
selected: w,
|
|
5569
5553
|
index: g
|
|
5570
5554
|
}, () => [
|
|
5571
|
-
|
|
5555
|
+
_(S(y[i.itemLabelKey]), 1)
|
|
5572
5556
|
])
|
|
5573
5557
|
])
|
|
5574
5558
|
}))
|
|
@@ -5583,7 +5567,7 @@ function Jl(e, t, i, s, n, l) {
|
|
|
5583
5567
|
onClick: t[11] || (t[11] = (h) => e.$refs["selection-input"].click())
|
|
5584
5568
|
}, [
|
|
5585
5569
|
c(e.$slots, "default", {}, () => [
|
|
5586
|
-
|
|
5570
|
+
_(S(i.label), 1)
|
|
5587
5571
|
])
|
|
5588
5572
|
], 2)) : p("", !0)
|
|
5589
5573
|
], 64)) : p("", !0)
|
|
@@ -5591,9 +5575,9 @@ function Jl(e, t, i, s, n, l) {
|
|
|
5591
5575
|
_: 3
|
|
5592
5576
|
}, 16, ["valid", "onReset", "wrap", "class"]);
|
|
5593
5577
|
}
|
|
5594
|
-
const
|
|
5578
|
+
const ks = {
|
|
5595
5579
|
name: "w-select",
|
|
5596
|
-
mixins: [
|
|
5580
|
+
mixins: [W],
|
|
5597
5581
|
props: {
|
|
5598
5582
|
items: { type: Array, required: !0 },
|
|
5599
5583
|
modelValue: {},
|
|
@@ -5821,12 +5805,12 @@ const Ql = {
|
|
|
5821
5805
|
this.inputValue = this.checkSelection(this.modelValue);
|
|
5822
5806
|
}
|
|
5823
5807
|
}
|
|
5824
|
-
},
|
|
5808
|
+
}, vs = /* @__PURE__ */ C(ks, [["render", ws]]), Cs = ["for"], Ss = ["for", "innerHTML"], Bs = { class: "w-slider__track-wrap" }, _s = ["aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-readonly"], $s = ["id", "name", "model-value", "disabled", "readonly", "aria-readonly", "tabindex"], Is = ["for"], Vs = { key: 0 }, Ts = {
|
|
5825
5809
|
key: 0,
|
|
5826
5810
|
class: "w-slider__step-labels"
|
|
5827
|
-
},
|
|
5828
|
-
function
|
|
5829
|
-
return o(), b(
|
|
5811
|
+
}, Ls = ["onClick"], Rs = ["for"], xs = ["for", "innerHTML"];
|
|
5812
|
+
function Os(e, t, i, s, n, l) {
|
|
5813
|
+
return o(), b(R(e.formRegister ? "w-form-element" : "div"), $({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: e.rangeValueScaled, disabled: e.isDisabled, readonly: e.isReadonly }, {
|
|
5830
5814
|
valid: e.valid,
|
|
5831
5815
|
"onUpdate:valid": t[8] || (t[8] = (a) => e.valid = a),
|
|
5832
5816
|
onReset: t[9] || (t[9] = (a) => {
|
|
@@ -5842,14 +5826,14 @@ function hs(e, t, i, s, n, l) {
|
|
|
5842
5826
|
for: `button--${e._.uid}`
|
|
5843
5827
|
}, [
|
|
5844
5828
|
c(e.$slots, "label-left")
|
|
5845
|
-
], 10,
|
|
5829
|
+
], 10, Cs)) : i.labelLeft ? (o(), u("label", {
|
|
5846
5830
|
key: 1,
|
|
5847
5831
|
class: m(["w-slider__label w-slider__label--left w-form-el-shakable", e.labelClasses]),
|
|
5848
5832
|
for: `button--${e._.uid}`,
|
|
5849
5833
|
innerHTML: i.labelLeft
|
|
5850
|
-
}, null, 10,
|
|
5851
|
-
|
|
5852
|
-
|
|
5834
|
+
}, null, 10, Ss)) : p("", !0),
|
|
5835
|
+
k("div", Bs, [
|
|
5836
|
+
k("div", {
|
|
5853
5837
|
class: m(["w-slider__track", l.trackClasses]),
|
|
5854
5838
|
ref: "track",
|
|
5855
5839
|
onMousedown: t[4] || (t[4] = (...a) => l.onTrackMouseDown && l.onTrackMouseDown(...a)),
|
|
@@ -5862,15 +5846,15 @@ function hs(e, t, i, s, n, l) {
|
|
|
5862
5846
|
"aria-readonly": e.isReadonly ? "true" : "false",
|
|
5863
5847
|
"aria-orientation": "horizontal"
|
|
5864
5848
|
}, [
|
|
5865
|
-
|
|
5849
|
+
k("div", {
|
|
5866
5850
|
class: m(["w-slider__range", l.rangeClasses]),
|
|
5867
|
-
style:
|
|
5851
|
+
style: x(l.rangeStyles)
|
|
5868
5852
|
}, null, 6),
|
|
5869
|
-
|
|
5853
|
+
k("div", {
|
|
5870
5854
|
class: "w-slider__thumb",
|
|
5871
|
-
style:
|
|
5855
|
+
style: x(l.thumbStyles)
|
|
5872
5856
|
}, [
|
|
5873
|
-
|
|
5857
|
+
k("button", {
|
|
5874
5858
|
class: m(["w-slider__thumb-button", [i.color]]),
|
|
5875
5859
|
ref: "thumb",
|
|
5876
5860
|
id: `button--${e._.uid}`,
|
|
@@ -5881,42 +5865,42 @@ function hs(e, t, i, s, n, l) {
|
|
|
5881
5865
|
"aria-readonly": e.isReadonly ? "true" : "false",
|
|
5882
5866
|
tabindex: e.isDisabled || e.isReadonly ? -1 : null,
|
|
5883
5867
|
onKeydown: [
|
|
5884
|
-
t[0] || (t[0] =
|
|
5885
|
-
t[1] || (t[1] =
|
|
5868
|
+
t[0] || (t[0] = N((a) => l.onKeyDown(a, -1), ["left"])),
|
|
5869
|
+
t[1] || (t[1] = N((a) => l.onKeyDown(a, 1), ["right"]))
|
|
5886
5870
|
],
|
|
5887
5871
|
onFocus: t[2] || (t[2] = (a) => e.$emit("focus", a)),
|
|
5888
|
-
onClick: t[3] || (t[3] =
|
|
5872
|
+
onClick: t[3] || (t[3] = A(() => {
|
|
5889
5873
|
}, ["prevent"]))
|
|
5890
|
-
}, null, 42,
|
|
5874
|
+
}, null, 42, $s),
|
|
5891
5875
|
i.thumbLabel ? (o(), u("label", {
|
|
5892
5876
|
key: 0,
|
|
5893
5877
|
class: m(["w-slider__thumb-label", l.thumbClasses]),
|
|
5894
5878
|
for: `button--${e._.uid}`
|
|
5895
5879
|
}, [
|
|
5896
|
-
i.thumbLabel === "droplet" ? (o(), u("div",
|
|
5880
|
+
i.thumbLabel === "droplet" ? (o(), u("div", Vs, [
|
|
5897
5881
|
c(e.$slots, "label", { value: e.rangeValueScaled }, () => [
|
|
5898
|
-
|
|
5882
|
+
_(S(~~e.rangeValueScaled), 1)
|
|
5899
5883
|
])
|
|
5900
5884
|
])) : c(e.$slots, "label", {
|
|
5901
5885
|
key: 1,
|
|
5902
5886
|
value: e.rangeValueScaled
|
|
5903
5887
|
}, () => [
|
|
5904
|
-
|
|
5888
|
+
_(S(~~e.rangeValueScaled), 1)
|
|
5905
5889
|
])
|
|
5906
|
-
], 10,
|
|
5890
|
+
], 10, Is)) : p("", !0)
|
|
5907
5891
|
], 4)
|
|
5908
|
-
], 42,
|
|
5909
|
-
i.stepLabels && i.step ? (o(), u("div",
|
|
5910
|
-
|
|
5892
|
+
], 42, _s),
|
|
5893
|
+
i.stepLabels && i.step ? (o(), u("div", Ts, [
|
|
5894
|
+
k("div", {
|
|
5911
5895
|
class: "w-slider__step-label",
|
|
5912
5896
|
onClick: t[6] || (t[6] = (a) => l.onStepLabelClick(0))
|
|
5913
5897
|
}, S(this.minVal), 1),
|
|
5914
|
-
(o(!0), u(v, null,
|
|
5898
|
+
(o(!0), u(v, null, O(~~l.numberOfSteps, (a) => (o(), u("div", {
|
|
5915
5899
|
class: "w-slider__step-label",
|
|
5916
5900
|
key: a,
|
|
5917
5901
|
onClick: (r) => l.onStepLabelClick(a * (100 / l.numberOfSteps)),
|
|
5918
|
-
style:
|
|
5919
|
-
}, S(l.percentToScaled(a * (100 / l.numberOfSteps))), 13,
|
|
5902
|
+
style: x(`left: ${a * (100 / l.numberOfSteps)}%`)
|
|
5903
|
+
}, S(l.percentToScaled(a * (100 / l.numberOfSteps))), 13, Ls))), 128)),
|
|
5920
5904
|
~~l.numberOfSteps !== l.numberOfSteps ? (o(), u("div", {
|
|
5921
5905
|
key: 0,
|
|
5922
5906
|
class: "w-slider__step-label",
|
|
@@ -5931,19 +5915,19 @@ function hs(e, t, i, s, n, l) {
|
|
|
5931
5915
|
for: `button--${e._.uid}`
|
|
5932
5916
|
}, [
|
|
5933
5917
|
c(e.$slots, "label-right")
|
|
5934
|
-
], 10,
|
|
5918
|
+
], 10, Rs)) : i.labelRight ? (o(), u("label", {
|
|
5935
5919
|
key: 3,
|
|
5936
5920
|
class: m(["w-slider__label w-slider__label--right w-form-el-shakable", e.labelClasses]),
|
|
5937
5921
|
for: `button--${e._.uid}`,
|
|
5938
5922
|
innerHTML: i.labelRight
|
|
5939
|
-
}, null, 10,
|
|
5923
|
+
}, null, 10, xs)) : p("", !0)
|
|
5940
5924
|
]),
|
|
5941
5925
|
_: 3
|
|
5942
5926
|
}, 16, ["valid", "wrap", "class"]);
|
|
5943
5927
|
}
|
|
5944
|
-
const
|
|
5928
|
+
const Ps = {
|
|
5945
5929
|
name: "w-slider",
|
|
5946
|
-
mixins: [
|
|
5930
|
+
mixins: [W],
|
|
5947
5931
|
props: {
|
|
5948
5932
|
modelValue: { type: Number, default: 0 },
|
|
5949
5933
|
color: { type: String, default: "primary" },
|
|
@@ -6078,17 +6062,17 @@ const cs = {
|
|
|
6078
6062
|
this.rangeValueScaled !== e && (this.rangeValueScaled = e, this.rangeValuePercent = this.scaledToPercent(e));
|
|
6079
6063
|
}
|
|
6080
6064
|
}
|
|
6081
|
-
},
|
|
6082
|
-
function
|
|
6065
|
+
}, zs = /* @__PURE__ */ C(Ps, [["render", Os]]), Es = { key: 0 };
|
|
6066
|
+
function Ms(e, t, i, s, n, l) {
|
|
6083
6067
|
return i.modelValue || i.modelValue === void 0 ? (o(), u("div", {
|
|
6084
6068
|
key: 0,
|
|
6085
6069
|
class: m(["w-spinner", l.classes]),
|
|
6086
|
-
style:
|
|
6070
|
+
style: x(l.styles)
|
|
6087
6071
|
}, [
|
|
6088
|
-
l.isThreeDots ? (o(), u("span",
|
|
6072
|
+
l.isThreeDots ? (o(), u("span", Es)) : p("", !0)
|
|
6089
6073
|
], 6)) : p("", !0);
|
|
6090
6074
|
}
|
|
6091
|
-
const
|
|
6075
|
+
const As = {
|
|
6092
6076
|
name: "w-spinner",
|
|
6093
6077
|
props: {
|
|
6094
6078
|
modelValue: {},
|
|
@@ -6126,13 +6110,13 @@ const gs = {
|
|
|
6126
6110
|
};
|
|
6127
6111
|
}
|
|
6128
6112
|
}
|
|
6129
|
-
},
|
|
6130
|
-
function
|
|
6113
|
+
}, Ws = /* @__PURE__ */ C(As, [["render", Ms]]);
|
|
6114
|
+
function Ks(e, t, i, s, n, l) {
|
|
6131
6115
|
return o(), u("div", {
|
|
6132
6116
|
class: m(["w-steps", l.classes])
|
|
6133
6117
|
}, null, 2);
|
|
6134
6118
|
}
|
|
6135
|
-
const
|
|
6119
|
+
const Ns = {
|
|
6136
6120
|
name: "w-steps",
|
|
6137
6121
|
props: {
|
|
6138
6122
|
dark: { type: Boolean },
|
|
@@ -6148,16 +6132,16 @@ const ws = {
|
|
|
6148
6132
|
};
|
|
6149
6133
|
}
|
|
6150
6134
|
}
|
|
6151
|
-
},
|
|
6135
|
+
}, Ds = /* @__PURE__ */ C(Ns, [["render", Ks]]), Hs = ["id", "name", "checked", "disabled", "readonly", "aria-readonly", "required", "tabindex", "aria-checked"], Fs = ["for"], js = {
|
|
6152
6136
|
key: 0,
|
|
6153
6137
|
class: "w-switch__track"
|
|
6154
|
-
},
|
|
6138
|
+
}, Us = {
|
|
6155
6139
|
key: 1,
|
|
6156
6140
|
class: "w-switch__thumb"
|
|
6157
|
-
},
|
|
6158
|
-
function
|
|
6159
|
-
const a =
|
|
6160
|
-
return o(), b(
|
|
6141
|
+
}, qs = ["for"];
|
|
6142
|
+
function Xs(e, t, i, s, n, l) {
|
|
6143
|
+
const a = V("w-progress");
|
|
6144
|
+
return o(), b(R(e.formRegister ? "w-form-element" : "div"), $({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: n.isOn, disabled: e.isDisabled, readonly: e.isReadonly }, {
|
|
6161
6145
|
valid: e.valid,
|
|
6162
6146
|
"onUpdate:valid": t[3] || (t[3] = (r) => e.valid = r),
|
|
6163
6147
|
onReset: t[4] || (t[4] = (r) => {
|
|
@@ -6167,7 +6151,7 @@ function $s(e, t, i, s, n, l) {
|
|
|
6167
6151
|
style: e.$attrs.style
|
|
6168
6152
|
}), {
|
|
6169
6153
|
default: f(() => [
|
|
6170
|
-
|
|
6154
|
+
k("input", $({
|
|
6171
6155
|
ref: "input",
|
|
6172
6156
|
id: `w-switch--${e._.uid}`,
|
|
6173
6157
|
type: "checkbox",
|
|
@@ -6183,7 +6167,7 @@ function $s(e, t, i, s, n, l) {
|
|
|
6183
6167
|
onFocus: t[1] || (t[1] = (r) => e.$emit("focus", r)),
|
|
6184
6168
|
"aria-checked": n.isOn || "false",
|
|
6185
6169
|
role: "switch"
|
|
6186
|
-
}), null, 16,
|
|
6170
|
+
}), null, 16, Hs),
|
|
6187
6171
|
l.hasLabel && i.labelOnLeft ? (o(), u(v, { key: 0 }, [
|
|
6188
6172
|
e.$slots.default || i.label ? (o(), u("label", {
|
|
6189
6173
|
key: 0,
|
|
@@ -6191,21 +6175,21 @@ function $s(e, t, i, s, n, l) {
|
|
|
6191
6175
|
for: `w-switch--${e._.uid}`
|
|
6192
6176
|
}, [
|
|
6193
6177
|
c(e.$slots, "default", {}, () => [
|
|
6194
|
-
|
|
6178
|
+
_(S(i.label), 1)
|
|
6195
6179
|
])
|
|
6196
|
-
], 10,
|
|
6180
|
+
], 10, Fs)) : p("", !0)
|
|
6197
6181
|
], 64)) : p("", !0),
|
|
6198
|
-
|
|
6182
|
+
k("div", {
|
|
6199
6183
|
class: m(["w-switch__input", l.inputClasses]),
|
|
6200
6184
|
onClick: t[2] || (t[2] = (r) => {
|
|
6201
6185
|
e.$refs.input.focus(), e.$refs.input.click();
|
|
6202
6186
|
})
|
|
6203
6187
|
}, [
|
|
6204
|
-
e.$slots.track ? (o(), u("div",
|
|
6188
|
+
e.$slots.track ? (o(), u("div", js, [
|
|
6205
6189
|
c(e.$slots, "track")
|
|
6206
6190
|
])) : p("", !0),
|
|
6207
|
-
e.$slots.thumb || i.loading ? (o(), u("div",
|
|
6208
|
-
i.loading ? (o(), b(a,
|
|
6191
|
+
e.$slots.thumb || i.loading ? (o(), u("div", Us, [
|
|
6192
|
+
i.loading ? (o(), b(a, $({
|
|
6209
6193
|
key: 0,
|
|
6210
6194
|
circle: "",
|
|
6211
6195
|
color: "inherit"
|
|
@@ -6219,17 +6203,17 @@ function $s(e, t, i, s, n, l) {
|
|
|
6219
6203
|
for: `w-switch--${e._.uid}`
|
|
6220
6204
|
}, [
|
|
6221
6205
|
c(e.$slots, "default", {}, () => [
|
|
6222
|
-
|
|
6206
|
+
_(S(i.label), 1)
|
|
6223
6207
|
])
|
|
6224
|
-
], 10,
|
|
6208
|
+
], 10, qs)) : p("", !0)
|
|
6225
6209
|
], 64)) : p("", !0)
|
|
6226
6210
|
]),
|
|
6227
6211
|
_: 3
|
|
6228
6212
|
}, 16, ["valid", "class", "style"]);
|
|
6229
6213
|
}
|
|
6230
|
-
const
|
|
6214
|
+
const Ys = {
|
|
6231
6215
|
name: "w-switch",
|
|
6232
|
-
mixins: [
|
|
6216
|
+
mixins: [W],
|
|
6233
6217
|
inheritAttrs: !1,
|
|
6234
6218
|
// The attrs should only be added to the input not the wrapper.
|
|
6235
6219
|
props: {
|
|
@@ -6303,39 +6287,39 @@ const Is = {
|
|
|
6303
6287
|
this.isOn = e;
|
|
6304
6288
|
}
|
|
6305
6289
|
}
|
|
6306
|
-
},
|
|
6307
|
-
function
|
|
6308
|
-
return o(), u("div",
|
|
6290
|
+
}, Gs = /* @__PURE__ */ C(Ys, [["render", Xs]]), Js = { class: "w-tabs__content" };
|
|
6291
|
+
function Qs(e, t, i, s, n, l) {
|
|
6292
|
+
return o(), u("div", Js, [
|
|
6309
6293
|
c(e.$slots, "default", { item: i.item })
|
|
6310
6294
|
]);
|
|
6311
6295
|
}
|
|
6312
|
-
const
|
|
6296
|
+
const Zs = {
|
|
6313
6297
|
name: "tab-content",
|
|
6314
6298
|
// Keep-alive include/exclude mechanism is component-name-based.
|
|
6315
6299
|
props: { item: Object }
|
|
6316
|
-
},
|
|
6300
|
+
}, eo = /* @__PURE__ */ C(Zs, [["render", Qs]]), to = ["onClick", "onFocus", "tabindex", "onKeypress", "aria-selected"], io = ["innerHTML"], lo = {
|
|
6317
6301
|
key: 0,
|
|
6318
6302
|
class: "w-tabs__bar-extra"
|
|
6319
|
-
},
|
|
6303
|
+
}, so = {
|
|
6320
6304
|
key: 0,
|
|
6321
6305
|
class: "w-tabs__content-wrap"
|
|
6322
|
-
},
|
|
6323
|
-
function
|
|
6324
|
-
const a =
|
|
6306
|
+
}, oo = ["innerHTML"], ao = ["innerHTML"];
|
|
6307
|
+
function no(e, t, i, s, n, l) {
|
|
6308
|
+
const a = V("tab-content");
|
|
6325
6309
|
return o(), u("div", {
|
|
6326
6310
|
class: m(["w-tabs", l.tabsClasses])
|
|
6327
6311
|
}, [
|
|
6328
|
-
|
|
6312
|
+
k("div", {
|
|
6329
6313
|
class: m(["w-tabs__bar", l.tabsBarClasses]),
|
|
6330
6314
|
ref: "tabs-bar"
|
|
6331
6315
|
}, [
|
|
6332
|
-
(o(!0), u(v, null,
|
|
6316
|
+
(o(!0), u(v, null, O(e.tabs, (r, d) => (o(), u("div", {
|
|
6333
6317
|
class: m(["w-tabs__bar-item", l.barItemClasses(r)]),
|
|
6334
6318
|
key: d,
|
|
6335
6319
|
onClick: (h) => !r._disabled && r._uid !== e.activeTabUid && l.openTab(r._uid),
|
|
6336
6320
|
onFocus: (h) => e.$emit("focus", l.getOriginalItem(r)),
|
|
6337
6321
|
tabindex: !r._disabled && 0,
|
|
6338
|
-
onKeypress:
|
|
6322
|
+
onKeypress: N((h) => !r._disabled && l.openTab(r._uid), ["enter"]),
|
|
6339
6323
|
"aria-selected": r._uid === e.activeTabUid ? "true" : "false",
|
|
6340
6324
|
role: "tab"
|
|
6341
6325
|
}, [
|
|
@@ -6350,27 +6334,27 @@ function Ws(e, t, i, s, n, l) {
|
|
|
6350
6334
|
index: d + 1,
|
|
6351
6335
|
active: r._uid === e.activeTabUid
|
|
6352
6336
|
}, () => [
|
|
6353
|
-
|
|
6337
|
+
k("div", {
|
|
6354
6338
|
innerHTML: r[i.itemTitleKey]
|
|
6355
|
-
}, null, 8,
|
|
6339
|
+
}, null, 8, io)
|
|
6356
6340
|
])
|
|
6357
|
-
], 42,
|
|
6358
|
-
e.$slots["tabs-bar-extra"] ? (o(), u("div",
|
|
6341
|
+
], 42, to))), 128)),
|
|
6342
|
+
e.$slots["tabs-bar-extra"] ? (o(), u("div", lo, [
|
|
6359
6343
|
c(e.$slots, "tabs-bar-extra")
|
|
6360
6344
|
])) : p("", !0),
|
|
6361
6345
|
!i.noSlider && !i.card ? (o(), u("div", {
|
|
6362
6346
|
key: 1,
|
|
6363
6347
|
class: m(["w-tabs__slider", i.sliderColor]),
|
|
6364
|
-
style:
|
|
6348
|
+
style: x(l.sliderStyles)
|
|
6365
6349
|
}, null, 6)) : p("", !0)
|
|
6366
6350
|
], 2),
|
|
6367
|
-
e.tabs.length ? (o(), u("div",
|
|
6368
|
-
i.keepInDom ? (o(), b(
|
|
6351
|
+
e.tabs.length ? (o(), u("div", so, [
|
|
6352
|
+
i.keepInDom ? (o(), b(fe, {
|
|
6369
6353
|
key: 0,
|
|
6370
6354
|
name: l.transitionName
|
|
6371
6355
|
}, {
|
|
6372
6356
|
default: f(() => [
|
|
6373
|
-
(o(!0), u(v, null,
|
|
6357
|
+
(o(!0), u(v, null, O(e.tabs, (r, d) => F((o(), b(a, {
|
|
6374
6358
|
key: r._uid,
|
|
6375
6359
|
item: r,
|
|
6376
6360
|
class: m(l.contentClasses)
|
|
@@ -6390,22 +6374,22 @@ function Ws(e, t, i, s, n, l) {
|
|
|
6390
6374
|
r[i.itemContentKey] ? (o(), u("div", {
|
|
6391
6375
|
key: 0,
|
|
6392
6376
|
innerHTML: r[i.itemContentKey]
|
|
6393
|
-
}, null, 8,
|
|
6377
|
+
}, null, 8, oo)) : p("", !0)
|
|
6394
6378
|
])
|
|
6395
6379
|
]),
|
|
6396
6380
|
_: 2
|
|
6397
6381
|
}, 1032, ["item", "class"])), [
|
|
6398
|
-
[
|
|
6382
|
+
[be, r._uid === l.activeTab._uid]
|
|
6399
6383
|
])), 128))
|
|
6400
6384
|
]),
|
|
6401
6385
|
_: 3
|
|
6402
|
-
}, 8, ["name"])) : (o(), b(
|
|
6386
|
+
}, 8, ["name"])) : (o(), b(P, {
|
|
6403
6387
|
key: 1,
|
|
6404
6388
|
name: l.transitionName,
|
|
6405
6389
|
mode: l.transitionMode
|
|
6406
6390
|
}, {
|
|
6407
6391
|
default: f(() => [
|
|
6408
|
-
(o(), b(
|
|
6392
|
+
(o(), b(lt, {
|
|
6409
6393
|
exclude: i.keepAlive ? "" : "tab-content"
|
|
6410
6394
|
}, [
|
|
6411
6395
|
(o(), b(a, {
|
|
@@ -6429,7 +6413,7 @@ function Ws(e, t, i, s, n, l) {
|
|
|
6429
6413
|
r[i.itemContentKey] ? (o(), u("div", {
|
|
6430
6414
|
key: 0,
|
|
6431
6415
|
innerHTML: r[i.itemContentKey]
|
|
6432
|
-
}, null, 8,
|
|
6416
|
+
}, null, 8, ao)) : p("", !0)
|
|
6433
6417
|
])
|
|
6434
6418
|
], 64)) : p("", !0)
|
|
6435
6419
|
]),
|
|
@@ -6442,8 +6426,8 @@ function Ws(e, t, i, s, n, l) {
|
|
|
6442
6426
|
])) : p("", !0)
|
|
6443
6427
|
], 2);
|
|
6444
6428
|
}
|
|
6445
|
-
let
|
|
6446
|
-
const
|
|
6429
|
+
let Le = 0;
|
|
6430
|
+
const ro = {
|
|
6447
6431
|
name: "w-tabs",
|
|
6448
6432
|
props: {
|
|
6449
6433
|
modelValue: { type: [Number, String] },
|
|
@@ -6469,7 +6453,7 @@ const Ks = {
|
|
|
6469
6453
|
keepAlive: { type: Boolean, default: !0 },
|
|
6470
6454
|
keepInDom: { type: Boolean, default: !1 }
|
|
6471
6455
|
},
|
|
6472
|
-
components: { TabContent:
|
|
6456
|
+
components: { TabContent: eo },
|
|
6473
6457
|
emits: ["input", "update:modelValue", "focus"],
|
|
6474
6458
|
data: () => ({
|
|
6475
6459
|
tabs: [],
|
|
@@ -6486,7 +6470,7 @@ const Ks = {
|
|
|
6486
6470
|
}),
|
|
6487
6471
|
computed: {
|
|
6488
6472
|
contentClasses() {
|
|
6489
|
-
return
|
|
6473
|
+
return z(this.contentClass);
|
|
6490
6474
|
},
|
|
6491
6475
|
transitionName() {
|
|
6492
6476
|
return this.transition === !1 ? "" : this.transition || `w-tabs-slide-${this.direction}`;
|
|
@@ -6531,7 +6515,7 @@ const Ks = {
|
|
|
6531
6515
|
methods: {
|
|
6532
6516
|
// Adding a tab in the list.
|
|
6533
6517
|
addTab(e) {
|
|
6534
|
-
(e[this.itemIdKey] ?? e._uid ?? !1) || (e._uid = +`${this._.uid}${++
|
|
6518
|
+
(e[this.itemIdKey] ?? e._uid ?? !1) || (e._uid = +`${this._.uid}${++Le}`), this.tabs.push({
|
|
6535
6519
|
_uid: e[this.itemIdKey] ?? e._uid,
|
|
6536
6520
|
_index: this.tabs.length,
|
|
6537
6521
|
...e,
|
|
@@ -6540,7 +6524,7 @@ const Ks = {
|
|
|
6540
6524
|
},
|
|
6541
6525
|
refreshTabs() {
|
|
6542
6526
|
let e = this.items;
|
|
6543
|
-
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}${++
|
|
6527
|
+
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}${++Le}`), {
|
|
6544
6528
|
...t,
|
|
6545
6529
|
_uid: t[this.itemIdKey] ?? t._uid,
|
|
6546
6530
|
_index: i,
|
|
@@ -6563,8 +6547,8 @@ const Ks = {
|
|
|
6563
6547
|
[this.color]: this.color && !e._disabled && !(this.activeClass && t),
|
|
6564
6548
|
"w-tabs__bar-item--active": t,
|
|
6565
6549
|
"w-tabs__bar-item--disabled": e._disabled,
|
|
6566
|
-
...
|
|
6567
|
-
...t ?
|
|
6550
|
+
...z(this.titleClass),
|
|
6551
|
+
...t ? z(this.activeClass) : {}
|
|
6568
6552
|
};
|
|
6569
6553
|
},
|
|
6570
6554
|
// Switching tabs.
|
|
@@ -6622,55 +6606,55 @@ const Ks = {
|
|
|
6622
6606
|
e ? window.removeEventListener("resize", this.onResize) : (this.updateSlider(), window.addEventListener("resize", this.onResize));
|
|
6623
6607
|
}
|
|
6624
6608
|
}
|
|
6625
|
-
},
|
|
6609
|
+
}, uo = /* @__PURE__ */ C(ro, [["render", no]]), ho = { class: "w-table__scroll-wrap" }, co = { ref: "colgroup" }, po = ["width"], mo = { key: 0 }, fo = ["onClick"], go = ["innerHTML"], bo = {
|
|
6626
6610
|
key: 0,
|
|
6627
6611
|
class: "w-table__progress-bar"
|
|
6628
|
-
},
|
|
6612
|
+
}, yo = ["colspan"], wo = {
|
|
6629
6613
|
key: 0,
|
|
6630
6614
|
class: "w-table__progress-bar"
|
|
6631
|
-
},
|
|
6615
|
+
}, ko = ["colspan"], vo = { class: "w-table__loading-text" }, Co = {
|
|
6632
6616
|
key: 1,
|
|
6633
6617
|
class: "no-data"
|
|
6634
|
-
},
|
|
6618
|
+
}, So = ["colspan"], Bo = ["onClick"], _o = ["data-label"], $o = ["data-label"], Io = ["innerHTML"], Vo = {
|
|
6635
6619
|
key: 2,
|
|
6636
6620
|
class: "w-table__row w-table__row--expansion"
|
|
6637
|
-
},
|
|
6621
|
+
}, To = ["colspan"], Lo = { key: 0 }, Ro = {
|
|
6638
6622
|
key: 3,
|
|
6639
6623
|
class: "w-table__extra-row"
|
|
6640
|
-
},
|
|
6624
|
+
}, xo = {
|
|
6641
6625
|
key: 1,
|
|
6642
6626
|
class: "w-table__footer"
|
|
6643
|
-
},
|
|
6627
|
+
}, Oo = {
|
|
6644
6628
|
key: 1,
|
|
6645
6629
|
class: "w-table__row"
|
|
6646
|
-
},
|
|
6630
|
+
}, Po = ["colspan"], zo = {
|
|
6647
6631
|
key: 0,
|
|
6648
6632
|
class: "w-table__pagination w-pagination"
|
|
6649
|
-
},
|
|
6650
|
-
function
|
|
6651
|
-
const a =
|
|
6633
|
+
}, Eo = { class: "pages-wrap" }, Mo = { class: "w-pagination__results" };
|
|
6634
|
+
function Ao(e, t, i, s, n, l) {
|
|
6635
|
+
const a = V("w-icon"), r = V("w-progress"), d = V("w-transition-fade"), h = V("w-transition-expand"), y = V("w-select"), w = V("w-button");
|
|
6652
6636
|
return o(), u("div", {
|
|
6653
6637
|
class: m(["w-table w-table--wrap", l.classes])
|
|
6654
6638
|
}, [
|
|
6655
|
-
|
|
6656
|
-
|
|
6639
|
+
k("div", ho, [
|
|
6640
|
+
k("table", {
|
|
6657
6641
|
class: "w-table__table",
|
|
6658
6642
|
onMousedown: t[1] || (t[1] = (...g) => l.onMouseDown && l.onMouseDown(...g)),
|
|
6659
6643
|
onMouseover: t[2] || (t[2] = (...g) => l.onMouseOver && l.onMouseOver(...g)),
|
|
6660
6644
|
onMouseout: t[3] || (t[3] = (...g) => l.onMouseOut && l.onMouseOut(...g))
|
|
6661
6645
|
}, [
|
|
6662
|
-
|
|
6663
|
-
(o(!0), u(v, null,
|
|
6664
|
-
class: m(["w-table__col", l.colClasses[
|
|
6665
|
-
key:
|
|
6646
|
+
k("colgroup", co, [
|
|
6647
|
+
(o(!0), u(v, null, O(i.headers, (g, B) => (o(), u("col", {
|
|
6648
|
+
class: m(["w-table__col", l.colClasses[B]]),
|
|
6649
|
+
key: B,
|
|
6666
6650
|
width: g.width || null
|
|
6667
|
-
}, null, 10,
|
|
6651
|
+
}, null, 10, po))), 128))
|
|
6668
6652
|
], 512),
|
|
6669
|
-
i.noHeaders ? p("", !0) : (o(), u("thead",
|
|
6670
|
-
|
|
6671
|
-
(o(!0), u(v, null,
|
|
6653
|
+
i.noHeaders ? p("", !0) : (o(), u("thead", mo, [
|
|
6654
|
+
k("tr", null, [
|
|
6655
|
+
(o(!0), u(v, null, O(i.headers, (g, B) => (o(), u("th", {
|
|
6672
6656
|
class: m(["w-table__header", l.headerClasses(g)]),
|
|
6673
|
-
key:
|
|
6657
|
+
key: B,
|
|
6674
6658
|
onClick: (I) => !e.colResizing.dragging && g.sortable !== !1 && l.sortTable(g)
|
|
6675
6659
|
}, [
|
|
6676
6660
|
g.sortable !== !1 && g.align === "right" ? (o(), b(a, {
|
|
@@ -6678,7 +6662,7 @@ function go(e, t, i, s, n, l) {
|
|
|
6678
6662
|
class: m(["w-table__header-sort", l.headerSortClasses(g)])
|
|
6679
6663
|
}, {
|
|
6680
6664
|
default: f(() => t[8] || (t[8] = [
|
|
6681
|
-
|
|
6665
|
+
_("wi-arrow-down")
|
|
6682
6666
|
])),
|
|
6683
6667
|
_: 2
|
|
6684
6668
|
}, 1032, ["class"])) : p("", !0),
|
|
@@ -6687,82 +6671,82 @@ function go(e, t, i, s, n, l) {
|
|
|
6687
6671
|
key: 0,
|
|
6688
6672
|
header: g,
|
|
6689
6673
|
label: g.label,
|
|
6690
|
-
index:
|
|
6674
|
+
index: B + 1
|
|
6691
6675
|
}, () => [
|
|
6692
|
-
|
|
6676
|
+
_(S(g.label || ""), 1)
|
|
6693
6677
|
]) : (o(), u("span", {
|
|
6694
6678
|
key: 1,
|
|
6695
6679
|
innerHTML: g.label || ""
|
|
6696
|
-
}, null, 8,
|
|
6680
|
+
}, null, 8, go))
|
|
6697
6681
|
], 64)) : p("", !0),
|
|
6698
6682
|
g.sortable !== !1 && g.align !== "right" ? (o(), b(a, {
|
|
6699
6683
|
key: 2,
|
|
6700
6684
|
class: m(["w-table__header-sort", l.headerSortClasses(g)])
|
|
6701
6685
|
}, {
|
|
6702
6686
|
default: f(() => t[9] || (t[9] = [
|
|
6703
|
-
|
|
6687
|
+
_("wi-arrow-down")
|
|
6704
6688
|
])),
|
|
6705
6689
|
_: 2
|
|
6706
6690
|
}, 1032, ["class"])) : p("", !0),
|
|
6707
|
-
|
|
6691
|
+
B < i.headers.length - 1 && i.resizableColumns ? (o(), u("span", {
|
|
6708
6692
|
key: 3,
|
|
6709
|
-
class: m(["w-table__col-resizer", { "w-table__col-resizer--hover": e.colResizing.hover ===
|
|
6710
|
-
onClick: t[0] || (t[0] =
|
|
6693
|
+
class: m(["w-table__col-resizer", { "w-table__col-resizer--hover": e.colResizing.hover === B, "w-table__col-resizer--active": e.colResizing.columnIndex === B }]),
|
|
6694
|
+
onClick: t[0] || (t[0] = A(() => {
|
|
6711
6695
|
}, ["stop"]))
|
|
6712
6696
|
}, null, 2)) : p("", !0)
|
|
6713
|
-
], 10,
|
|
6697
|
+
], 10, fo))), 128))
|
|
6714
6698
|
]),
|
|
6715
|
-
|
|
6699
|
+
L(d, null, {
|
|
6716
6700
|
default: f(() => [
|
|
6717
|
-
i.loading === "header" ? (o(), u("tr",
|
|
6718
|
-
|
|
6701
|
+
i.loading === "header" ? (o(), u("tr", bo, [
|
|
6702
|
+
k("td", {
|
|
6719
6703
|
colspan: i.headers.length
|
|
6720
6704
|
}, [
|
|
6721
|
-
|
|
6722
|
-
], 8,
|
|
6705
|
+
L(r, { tile: "" })
|
|
6706
|
+
], 8, yo)
|
|
6723
6707
|
])) : p("", !0)
|
|
6724
6708
|
]),
|
|
6725
6709
|
_: 1
|
|
6726
6710
|
})
|
|
6727
6711
|
])),
|
|
6728
|
-
|
|
6729
|
-
i.loading === !0 ? (o(), u("tr",
|
|
6730
|
-
|
|
6712
|
+
k("tbody", null, [
|
|
6713
|
+
i.loading === !0 ? (o(), u("tr", wo, [
|
|
6714
|
+
k("td", {
|
|
6731
6715
|
colspan: i.headers.length
|
|
6732
6716
|
}, [
|
|
6733
|
-
|
|
6734
|
-
|
|
6717
|
+
L(r, { tile: "" }),
|
|
6718
|
+
k("div", vo, [
|
|
6735
6719
|
c(e.$slots, "loading", {}, () => [
|
|
6736
|
-
t[10] || (t[10] =
|
|
6720
|
+
t[10] || (t[10] = _("Loading..."))
|
|
6737
6721
|
])
|
|
6738
6722
|
])
|
|
6739
|
-
], 8,
|
|
6740
|
-
])) : l.tableItems.length ? p("", !0) : (o(), u("tr",
|
|
6741
|
-
|
|
6723
|
+
], 8, ko)
|
|
6724
|
+
])) : l.tableItems.length ? p("", !0) : (o(), u("tr", Co, [
|
|
6725
|
+
k("td", {
|
|
6742
6726
|
class: "w-table__cell text-center",
|
|
6743
6727
|
colspan: i.headers.length
|
|
6744
6728
|
}, [
|
|
6745
6729
|
c(e.$slots, "no-data", {}, () => [
|
|
6746
|
-
t[11] || (t[11] =
|
|
6730
|
+
t[11] || (t[11] = _("No data to show."))
|
|
6747
6731
|
])
|
|
6748
|
-
], 8,
|
|
6732
|
+
], 8, So)
|
|
6749
6733
|
])),
|
|
6750
|
-
l.tableItems.length && i.loading !== !0 ? (o(!0), u(v, { key: 2 },
|
|
6734
|
+
l.tableItems.length && i.loading !== !0 ? (o(!0), u(v, { key: 2 }, O(l.paginatedItems, (g, B) => (o(), u(v, { key: B }, [
|
|
6751
6735
|
e.$slots.item ? c(e.$slots, "item", {
|
|
6752
6736
|
key: 0,
|
|
6753
6737
|
item: g,
|
|
6754
|
-
index:
|
|
6755
|
-
select: () => l.doSelectRow(g,
|
|
6738
|
+
index: B + 1,
|
|
6739
|
+
select: () => l.doSelectRow(g, B),
|
|
6756
6740
|
classes: { "w-table__row": !0, "w-table__row--selected": l.selectedRowsByUid[g._uid] !== void 0, "w-table__row--expanded": l.expandedRowsByUid[g._uid] !== void 0 }
|
|
6757
6741
|
}) : (o(), u("tr", {
|
|
6758
6742
|
key: 1,
|
|
6759
6743
|
class: m(["w-table__row", { "w-table__row--selected": l.selectedRowsByUid[g._uid] !== void 0, "w-table__row--expanded": l.expandedRowsByUid[g._uid] !== void 0 }]),
|
|
6760
|
-
onClick: (I) => l.doSelectRow(g,
|
|
6744
|
+
onClick: (I) => l.doSelectRow(g, B)
|
|
6761
6745
|
}, [
|
|
6762
|
-
(o(!0), u(v, null,
|
|
6763
|
-
e.$slots[`item-cell.${I.key}`] || e.$slots[`item-cell.${
|
|
6746
|
+
(o(!0), u(v, null, O(i.headers, (I, E) => (o(), u(v, null, [
|
|
6747
|
+
e.$slots[`item-cell.${I.key}`] || e.$slots[`item-cell.${E + 1}`] || e.$slots["item-cell"] ? (o(), u("td", {
|
|
6764
6748
|
class: m(["w-table__cell", { [`text-${I.align || "left"}`]: !0, "w-table__cell--sticky": I.sticky }]),
|
|
6765
|
-
key: `${
|
|
6749
|
+
key: `${E}-a`,
|
|
6766
6750
|
"data-label": I.label
|
|
6767
6751
|
}, [
|
|
6768
6752
|
e.$slots[`item-cell.${I.key}`] ? c(e.$slots, `item-cell.${I.key}`, {
|
|
@@ -6770,79 +6754,79 @@ function go(e, t, i, s, n, l) {
|
|
|
6770
6754
|
header: I,
|
|
6771
6755
|
item: g,
|
|
6772
6756
|
label: g[I.key] || "",
|
|
6773
|
-
index:
|
|
6774
|
-
}) : e.$slots[`item-cell.${
|
|
6757
|
+
index: B + 1
|
|
6758
|
+
}) : e.$slots[`item-cell.${E + 1}`] ? c(e.$slots, `item-cell.${E + 1}`, {
|
|
6775
6759
|
key: 1,
|
|
6776
6760
|
header: I,
|
|
6777
6761
|
item: g,
|
|
6778
6762
|
label: g[I.key] || "",
|
|
6779
|
-
index:
|
|
6763
|
+
index: B + 1
|
|
6780
6764
|
}) : e.$slots["item-cell"] ? c(e.$slots, "item-cell", {
|
|
6781
6765
|
key: 2,
|
|
6782
6766
|
header: I,
|
|
6783
6767
|
item: g,
|
|
6784
6768
|
label: g[I.key] || "",
|
|
6785
|
-
index:
|
|
6769
|
+
index: B + 1
|
|
6786
6770
|
}) : p("", !0),
|
|
6787
|
-
|
|
6771
|
+
E < i.headers.length - 1 && i.resizableColumns ? (o(), u("span", {
|
|
6788
6772
|
key: 3,
|
|
6789
|
-
class: m(["w-table__col-resizer", { "w-table__col-resizer--hover": e.colResizing.hover ===
|
|
6773
|
+
class: m(["w-table__col-resizer", { "w-table__col-resizer--hover": e.colResizing.hover === E, "w-table__col-resizer--active": e.colResizing.columnIndex === E }])
|
|
6790
6774
|
}, null, 2)) : p("", !0)
|
|
6791
|
-
], 10,
|
|
6775
|
+
], 10, _o)) : (o(), u("td", {
|
|
6792
6776
|
class: m(["w-table__cell", { [`text-${I.align || "left"}`]: !0, "w-table__cell--sticky": I.sticky }]),
|
|
6793
|
-
key: `${
|
|
6777
|
+
key: `${E}-b`,
|
|
6794
6778
|
"data-label": I.label
|
|
6795
6779
|
}, [
|
|
6796
|
-
|
|
6780
|
+
k("div", {
|
|
6797
6781
|
innerHTML: g[I.key] || ""
|
|
6798
|
-
}, null, 8,
|
|
6799
|
-
|
|
6782
|
+
}, null, 8, Io),
|
|
6783
|
+
E < i.headers.length - 1 && i.resizableColumns ? (o(), u("span", {
|
|
6800
6784
|
key: 0,
|
|
6801
|
-
class: m(["w-table__col-resizer", { "w-table__col-resizer--hover": e.colResizing.hover ===
|
|
6785
|
+
class: m(["w-table__col-resizer", { "w-table__col-resizer--hover": e.colResizing.hover === E, "w-table__col-resizer--active": e.colResizing.columnIndex === E }])
|
|
6802
6786
|
}, null, 2)) : p("", !0)
|
|
6803
|
-
], 10,
|
|
6787
|
+
], 10, $o))
|
|
6804
6788
|
], 64))), 256))
|
|
6805
|
-
], 10,
|
|
6806
|
-
l.expandedRowsByUid[g._uid] ? (o(), u("tr",
|
|
6807
|
-
|
|
6789
|
+
], 10, Bo)),
|
|
6790
|
+
l.expandedRowsByUid[g._uid] ? (o(), u("tr", Vo, [
|
|
6791
|
+
k("td", {
|
|
6808
6792
|
class: "w-table__cell",
|
|
6809
6793
|
colspan: i.headers.length
|
|
6810
6794
|
}, [
|
|
6811
|
-
|
|
6795
|
+
L(h, { y: "" }, {
|
|
6812
6796
|
default: f(() => [
|
|
6813
|
-
l.expandedRowsByUid[g._uid] ? (o(), u("div",
|
|
6797
|
+
l.expandedRowsByUid[g._uid] ? (o(), u("div", Lo, [
|
|
6814
6798
|
c(e.$slots, "row-expansion", {
|
|
6815
6799
|
item: g,
|
|
6816
|
-
index:
|
|
6800
|
+
index: B + 1
|
|
6817
6801
|
})
|
|
6818
6802
|
])) : p("", !0),
|
|
6819
|
-
|
|
6803
|
+
B < i.headers.length - 1 && i.resizableColumns ? (o(), u("span", {
|
|
6820
6804
|
key: 1,
|
|
6821
|
-
class: m(["w-table__col-resizer", { "w-table__col-resizer--hover": e.colResizing.hover ===
|
|
6805
|
+
class: m(["w-table__col-resizer", { "w-table__col-resizer--hover": e.colResizing.hover === B, "w-table__col-resizer--active": e.colResizing.columnIndex === e.j }])
|
|
6822
6806
|
}, null, 2)) : p("", !0)
|
|
6823
6807
|
]),
|
|
6824
6808
|
_: 2
|
|
6825
6809
|
}, 1024)
|
|
6826
|
-
], 8,
|
|
6810
|
+
], 8, To)
|
|
6827
6811
|
])) : p("", !0)
|
|
6828
6812
|
], 64))), 128)) : p("", !0),
|
|
6829
|
-
e.$slots["extra-row"] ? (o(), u("div",
|
|
6813
|
+
e.$slots["extra-row"] ? (o(), u("div", Ro, [
|
|
6830
6814
|
c(e.$slots, "extra-row")
|
|
6831
6815
|
])) : p("", !0)
|
|
6832
6816
|
]),
|
|
6833
|
-
e.$slots.footer || e.$slots["footer-row"] ? (o(), u("tfoot",
|
|
6834
|
-
e.$slots["footer-row"] ? c(e.$slots, "footer-row", { key: 0 }) : e.$slots.footer ? (o(), u("tr",
|
|
6835
|
-
|
|
6817
|
+
e.$slots.footer || e.$slots["footer-row"] ? (o(), u("tfoot", xo, [
|
|
6818
|
+
e.$slots["footer-row"] ? c(e.$slots, "footer-row", { key: 0 }) : e.$slots.footer ? (o(), u("tr", Oo, [
|
|
6819
|
+
k("td", {
|
|
6836
6820
|
class: "w-table__cell",
|
|
6837
6821
|
colspan: i.headers.length
|
|
6838
6822
|
}, [
|
|
6839
6823
|
c(e.$slots, "footer")
|
|
6840
|
-
], 8,
|
|
6824
|
+
], 8, Po)
|
|
6841
6825
|
])) : p("", !0)
|
|
6842
6826
|
])) : p("", !0)
|
|
6843
6827
|
], 32)
|
|
6844
6828
|
]),
|
|
6845
|
-
i.pagination && e.paginationConfig ? (o(), u("div",
|
|
6829
|
+
i.pagination && e.paginationConfig ? (o(), u("div", zo, [
|
|
6846
6830
|
c(e.$slots, "pagination", {
|
|
6847
6831
|
range: `${e.paginationConfig.start}-${e.paginationConfig.end}`,
|
|
6848
6832
|
total: e.paginationConfig.total,
|
|
@@ -6861,8 +6845,8 @@ function go(e, t, i, s, n, l) {
|
|
|
6861
6845
|
label: "Items per page",
|
|
6862
6846
|
"label-color": "inherit"
|
|
6863
6847
|
}, null, 8, ["modelValue", "items"])) : p("", !0),
|
|
6864
|
-
|
|
6865
|
-
|
|
6848
|
+
k("div", Eo, [
|
|
6849
|
+
L(w, {
|
|
6866
6850
|
class: "w-pagination__arrow w-pagination__arrow--prev",
|
|
6867
6851
|
onClick: t[6] || (t[6] = (g) => l.goToPage("-1")),
|
|
6868
6852
|
disabled: e.paginationConfig.page <= 1,
|
|
@@ -6870,43 +6854,43 @@ function go(e, t, i, s, n, l) {
|
|
|
6870
6854
|
text: "",
|
|
6871
6855
|
lg: ""
|
|
6872
6856
|
}, null, 8, ["disabled"]),
|
|
6873
|
-
e.paginationConfig.pagesCount > 7 ? (o(!0), u(v, { key: 0 },
|
|
6874
|
-
[1, e.paginationConfig.pagesCount, e.paginationConfig.page - 1, e.paginationConfig.page, e.paginationConfig.page + 1].includes(g) ? (o(), b(
|
|
6857
|
+
e.paginationConfig.pagesCount > 7 ? (o(!0), u(v, { key: 0 }, O(e.paginationConfig.pagesCount, (g) => (o(), u(v, { key: g }, [
|
|
6858
|
+
[1, e.paginationConfig.pagesCount, e.paginationConfig.page - 1, e.paginationConfig.page, e.paginationConfig.page + 1].includes(g) ? (o(), b(w, {
|
|
6875
6859
|
key: 0,
|
|
6876
6860
|
class: m(["w-pagination__page", { "w-pagination__page--active": g === e.paginationConfig.page }]),
|
|
6877
|
-
onClick: (
|
|
6861
|
+
onClick: (B) => g !== e.paginationConfig.page && l.goToPage(g),
|
|
6878
6862
|
round: "",
|
|
6879
6863
|
lg: ""
|
|
6880
6864
|
}, {
|
|
6881
6865
|
default: f(() => [
|
|
6882
|
-
|
|
6866
|
+
_(S(g), 1)
|
|
6883
6867
|
]),
|
|
6884
6868
|
_: 2
|
|
6885
|
-
}, 1032, ["onClick", "class"])) : [1, e.paginationConfig.pagesCount, e.paginationConfig.page - 1, e.paginationConfig.page, e.paginationConfig.page + 1].includes(g - 1) ? (o(), b(
|
|
6869
|
+
}, 1032, ["onClick", "class"])) : [1, e.paginationConfig.pagesCount, e.paginationConfig.page - 1, e.paginationConfig.page, e.paginationConfig.page + 1].includes(g - 1) ? (o(), b(w, {
|
|
6886
6870
|
key: 1,
|
|
6887
6871
|
class: m(["w-pagination__page", { "w-pagination__page--active": g === e.paginationConfig.page }]),
|
|
6888
|
-
onClick: (
|
|
6872
|
+
onClick: (B) => g !== e.paginationConfig.page && l.goToPage(g),
|
|
6889
6873
|
round: "",
|
|
6890
6874
|
lg: ""
|
|
6891
6875
|
}, {
|
|
6892
6876
|
default: f(() => t[12] || (t[12] = [
|
|
6893
|
-
|
|
6877
|
+
_("...")
|
|
6894
6878
|
])),
|
|
6895
6879
|
_: 2
|
|
6896
6880
|
}, 1032, ["onClick", "class"])) : p("", !0)
|
|
6897
|
-
], 64))), 128)) : (o(!0), u(v, { key: 1 },
|
|
6881
|
+
], 64))), 128)) : (o(!0), u(v, { key: 1 }, O(e.paginationConfig.pagesCount, (g) => (o(), b(w, {
|
|
6898
6882
|
class: m(["w-pagination__page", { "w-pagination__page--active": g === e.paginationConfig.page }]),
|
|
6899
6883
|
key: g,
|
|
6900
|
-
onClick: (
|
|
6884
|
+
onClick: (B) => g !== e.paginationConfig.page && l.goToPage(g),
|
|
6901
6885
|
round: "",
|
|
6902
6886
|
lg: ""
|
|
6903
6887
|
}, {
|
|
6904
6888
|
default: f(() => [
|
|
6905
|
-
|
|
6889
|
+
_(S(g), 1)
|
|
6906
6890
|
]),
|
|
6907
6891
|
_: 2
|
|
6908
6892
|
}, 1032, ["onClick", "class"]))), 128)),
|
|
6909
|
-
|
|
6893
|
+
L(w, {
|
|
6910
6894
|
class: "w-pagination__arrow w-pagination__arrow--next",
|
|
6911
6895
|
onClick: t[7] || (t[7] = (g) => l.goToPage("+1")),
|
|
6912
6896
|
disabled: e.paginationConfig.page >= e.paginationConfig.pagesCount,
|
|
@@ -6915,12 +6899,12 @@ function go(e, t, i, s, n, l) {
|
|
|
6915
6899
|
lg: ""
|
|
6916
6900
|
}, null, 8, ["disabled"])
|
|
6917
6901
|
]),
|
|
6918
|
-
|
|
6902
|
+
k("span", Mo, S(e.paginationConfig.start) + "-" + S(e.paginationConfig.end || e.paginationConfig.total) + " of " + S(e.paginationConfig.total), 1)
|
|
6919
6903
|
])
|
|
6920
6904
|
])) : p("", !0)
|
|
6921
6905
|
], 2);
|
|
6922
6906
|
}
|
|
6923
|
-
const
|
|
6907
|
+
const Re = 15, Wo = {
|
|
6924
6908
|
name: "w-table",
|
|
6925
6909
|
props: {
|
|
6926
6910
|
items: { type: Array, required: !0 },
|
|
@@ -6937,14 +6921,14 @@ const we = 15, bo = {
|
|
|
6937
6921
|
filter: { type: Function },
|
|
6938
6922
|
fetch: { type: Function },
|
|
6939
6923
|
expandableRows: {
|
|
6940
|
-
validator: (e) => ([void 0, !0, !1, 1, "1", ""].includes(e) ||
|
|
6924
|
+
validator: (e) => ([void 0, !0, !1, 1, "1", ""].includes(e) || X(
|
|
6941
6925
|
`Wrong value for the w-table's \`expandableRows\` prop. Given: "${e}", expected one of: [undefined, true, false, 1, '1', ''].`
|
|
6942
6926
|
), !0)
|
|
6943
6927
|
},
|
|
6944
6928
|
// Allow providing the expanded rows and keeping it in sync via .sync in Vue 2 or v-model:expandedRows in Vue 3.
|
|
6945
6929
|
expandedRows: { type: Array },
|
|
6946
6930
|
selectableRows: {
|
|
6947
|
-
validator: (e) => ([void 0, !0, !1, 1, "1", ""].includes(e) ||
|
|
6931
|
+
validator: (e) => ([void 0, !0, !1, 1, "1", ""].includes(e) || X(
|
|
6948
6932
|
`Wrong value for the w-table's \`selectableRows\` prop. Given: "${e}", expected one of: [undefined, true, false, 1, '1', ''].`
|
|
6949
6933
|
), !0)
|
|
6950
6934
|
},
|
|
@@ -6964,7 +6948,7 @@ const we = 15, bo = {
|
|
|
6964
6948
|
// - total
|
|
6965
6949
|
pagination: {
|
|
6966
6950
|
type: [Boolean, Object, String],
|
|
6967
|
-
validator: (e) => e && typeof e == "object" && (!e.itemsPerPage || e.page && isNaN(e.page)) ? (
|
|
6951
|
+
validator: (e) => e && typeof e == "object" && (!e.itemsPerPage || e.page && isNaN(e.page)) ? (X(
|
|
6968
6952
|
"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 }."
|
|
6969
6953
|
), !1) : !0
|
|
6970
6954
|
},
|
|
@@ -7137,11 +7121,11 @@ const we = 15, bo = {
|
|
|
7137
7121
|
this.colResizing.dragging = !0;
|
|
7138
7122
|
const a = e.pageX - t, r = n + l, d = n + a, h = l - a;
|
|
7139
7123
|
i.style.width = `${n + a}px`, s.style.width = `${l - a}px`;
|
|
7140
|
-
const y = a < 0 && i.offsetWidth > d || i.offsetWidth <=
|
|
7124
|
+
const y = a < 0 && i.offsetWidth > d || i.offsetWidth <= Re, w = a > 0 && s.offsetWidth > h;
|
|
7141
7125
|
if (y) {
|
|
7142
|
-
const g = Math.max(i.offsetWidth,
|
|
7126
|
+
const g = Math.max(i.offsetWidth, Re);
|
|
7143
7127
|
i.style.width = `${g}px`, s.style.width = `${r - g}px`;
|
|
7144
|
-
} else
|
|
7128
|
+
} else w && (i.style.width = `${r - s.offsetWidth}px`, s.style.width = `${s.offsetWidth}px`);
|
|
7145
7129
|
},
|
|
7146
7130
|
onResizerMouseUp() {
|
|
7147
7131
|
document.removeEventListener("mousemove", this.onResizerMouseMove), document.removeEventListener("mouseup", this.onResizerMouseUp), setTimeout(() => {
|
|
@@ -7243,34 +7227,34 @@ const we = 15, bo = {
|
|
|
7243
7227
|
this.updatePaginationConfig({ total: e });
|
|
7244
7228
|
}
|
|
7245
7229
|
}
|
|
7246
|
-
},
|
|
7247
|
-
function
|
|
7230
|
+
}, Ko = /* @__PURE__ */ C(Wo, [["render", Ao]]), No = ["role", "aria-pressed", "tabindex"];
|
|
7231
|
+
function Do(e, t, i, s, n, l) {
|
|
7248
7232
|
return o(), u("span", {
|
|
7249
7233
|
class: m(["w-tag", l.classes]),
|
|
7250
7234
|
onClick: t[1] || (t[1] = (a) => {
|
|
7251
7235
|
e.$emit("update:modelValue", !i.modelValue), e.$emit("input", !i.modelValue);
|
|
7252
7236
|
}),
|
|
7253
|
-
onKeypress: t[2] || (t[2] =
|
|
7237
|
+
onKeypress: t[2] || (t[2] = N((a) => {
|
|
7254
7238
|
e.$emit("update:modelValue", !i.modelValue), e.$emit("input", !i.modelValue);
|
|
7255
7239
|
}, ["enter"])),
|
|
7256
7240
|
role: i.modelValue !== -1 && "button",
|
|
7257
7241
|
"aria-pressed": i.modelValue !== -1 && (i.modelValue ? "true" : "false"),
|
|
7258
7242
|
tabindex: i.modelValue !== -1 && 0,
|
|
7259
|
-
style:
|
|
7243
|
+
style: x(l.styles)
|
|
7260
7244
|
}, [
|
|
7261
7245
|
c(e.$slots, "default"),
|
|
7262
7246
|
i.closable && i.modelValue ? (o(), u("i", {
|
|
7263
7247
|
key: 0,
|
|
7264
7248
|
class: "w-icon w-tag__closable wi-cross",
|
|
7265
|
-
onClick: t[0] || (t[0] =
|
|
7249
|
+
onClick: t[0] || (t[0] = A((a) => {
|
|
7266
7250
|
e.$emit("update:modelValue", !1), e.$emit("input", !1);
|
|
7267
7251
|
}, ["stop"])),
|
|
7268
7252
|
role: "icon",
|
|
7269
7253
|
"aria-hidden": "true"
|
|
7270
7254
|
})) : p("", !0)
|
|
7271
|
-
], 46,
|
|
7255
|
+
], 46, No);
|
|
7272
7256
|
}
|
|
7273
|
-
const
|
|
7257
|
+
const Ho = {
|
|
7274
7258
|
name: "w-tag",
|
|
7275
7259
|
props: {
|
|
7276
7260
|
modelValue: { type: [Boolean, Number], default: -1 },
|
|
@@ -7319,10 +7303,10 @@ const vo = {
|
|
|
7319
7303
|
};
|
|
7320
7304
|
}
|
|
7321
7305
|
}
|
|
7322
|
-
},
|
|
7323
|
-
function
|
|
7324
|
-
const a =
|
|
7325
|
-
return o(), b(
|
|
7306
|
+
}, Fo = /* @__PURE__ */ C(Ho, [["render", Do]]), jo = ["for"], Uo = ["id", "name", "placeholder", "rows", "cols", "readonly", "aria-readonly", "disabled", "required", "tabindex"], qo = ["for"];
|
|
7307
|
+
function Xo(e, t, i, s, n, l) {
|
|
7308
|
+
const a = V("w-icon");
|
|
7309
|
+
return o(), b(R(e.formRegister ? "w-form-element" : "div"), $({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: n.inputValue, disabled: e.isDisabled, readonly: e.isReadonly, isFocused: n.isFocused }, {
|
|
7326
7310
|
valid: e.valid,
|
|
7327
7311
|
"onUpdate:valid": t[6] || (t[6] = (r) => e.valid = r),
|
|
7328
7312
|
wrap: l.hasLabel && i.labelPosition !== "inside",
|
|
@@ -7340,11 +7324,11 @@ function $o(e, t, i, s, n, l) {
|
|
|
7340
7324
|
for: `w-textarea--${e._.uid}`
|
|
7341
7325
|
}, [
|
|
7342
7326
|
c(e.$slots, "default", {}, () => [
|
|
7343
|
-
|
|
7327
|
+
_(S(i.label), 1)
|
|
7344
7328
|
])
|
|
7345
|
-
], 10,
|
|
7329
|
+
], 10, jo)) : p("", !0)
|
|
7346
7330
|
], 64)) : p("", !0),
|
|
7347
|
-
|
|
7331
|
+
k("div", {
|
|
7348
7332
|
class: m(["w-textarea__textarea-wrap", l.inputWrapClasses])
|
|
7349
7333
|
}, [
|
|
7350
7334
|
c(e.$slots, "icon-left", {
|
|
@@ -7358,12 +7342,12 @@ function $o(e, t, i, s, n, l) {
|
|
|
7358
7342
|
onClick: t[0] || (t[0] = (r) => e.$emit("click:inner-icon-left", r))
|
|
7359
7343
|
}, {
|
|
7360
7344
|
default: f(() => [
|
|
7361
|
-
|
|
7345
|
+
_(S(i.innerIconLeft), 1)
|
|
7362
7346
|
]),
|
|
7363
7347
|
_: 1
|
|
7364
7348
|
}, 8, ["for"])) : p("", !0)
|
|
7365
7349
|
]),
|
|
7366
|
-
|
|
7350
|
+
F(k("textarea", $({
|
|
7367
7351
|
class: "w-textarea__textarea",
|
|
7368
7352
|
ref: "textarea",
|
|
7369
7353
|
"onUpdate:modelValue": t[1] || (t[1] = (r) => n.inputValue = r)
|
|
@@ -7381,8 +7365,8 @@ function $o(e, t, i, s, n, l) {
|
|
|
7381
7365
|
disabled: e.isDisabled || null,
|
|
7382
7366
|
required: e.required || null,
|
|
7383
7367
|
tabindex: e.tabindex || null
|
|
7384
|
-
}), null, 16,
|
|
7385
|
-
[
|
|
7368
|
+
}), null, 16, Uo), [
|
|
7369
|
+
[Oe, n.inputValue]
|
|
7386
7370
|
]),
|
|
7387
7371
|
i.labelPosition === "inside" && l.showLabelInside ? (o(), u(v, { key: 0 }, [
|
|
7388
7372
|
e.$slots.default || i.label ? (o(), u("label", {
|
|
@@ -7390,7 +7374,7 @@ function $o(e, t, i, s, n, l) {
|
|
|
7390
7374
|
class: m(["w-textarea__label w-textarea__label--inside w-form-el-shakable", e.labelClasses])
|
|
7391
7375
|
}, [
|
|
7392
7376
|
c(e.$slots, "default", {}, () => [
|
|
7393
|
-
|
|
7377
|
+
_(S(i.label), 1)
|
|
7394
7378
|
])
|
|
7395
7379
|
], 2)) : p("", !0)
|
|
7396
7380
|
], 64)) : p("", !0),
|
|
@@ -7405,7 +7389,7 @@ function $o(e, t, i, s, n, l) {
|
|
|
7405
7389
|
onClick: t[5] || (t[5] = (r) => e.$emit("click:inner-icon-right", r))
|
|
7406
7390
|
}, {
|
|
7407
7391
|
default: f(() => [
|
|
7408
|
-
|
|
7392
|
+
_(S(i.innerIconRight), 1)
|
|
7409
7393
|
]),
|
|
7410
7394
|
_: 1
|
|
7411
7395
|
}, 8, ["for"])) : p("", !0)
|
|
@@ -7418,17 +7402,17 @@ function $o(e, t, i, s, n, l) {
|
|
|
7418
7402
|
for: `w-textarea--${e._.uid}`
|
|
7419
7403
|
}, [
|
|
7420
7404
|
c(e.$slots, "default", {}, () => [
|
|
7421
|
-
|
|
7405
|
+
_(S(i.label), 1)
|
|
7422
7406
|
])
|
|
7423
|
-
], 10,
|
|
7407
|
+
], 10, qo)) : p("", !0)
|
|
7424
7408
|
], 64)) : p("", !0)
|
|
7425
7409
|
]),
|
|
7426
7410
|
_: 3
|
|
7427
7411
|
}, 16, ["valid", "wrap", "class", "style"]);
|
|
7428
7412
|
}
|
|
7429
|
-
const
|
|
7413
|
+
const Yo = {
|
|
7430
7414
|
name: "w-textarea",
|
|
7431
|
-
mixins: [
|
|
7415
|
+
mixins: [W],
|
|
7432
7416
|
inheritAttrs: !1,
|
|
7433
7417
|
// The attrs should only be added to the textarea not the wrapper.
|
|
7434
7418
|
props: {
|
|
@@ -7552,20 +7536,20 @@ const Io = {
|
|
|
7552
7536
|
e ? this.getLineHeight() : this.height = null;
|
|
7553
7537
|
}
|
|
7554
7538
|
}
|
|
7555
|
-
},
|
|
7556
|
-
function
|
|
7539
|
+
}, Go = /* @__PURE__ */ C(Yo, [["render", Xo]]), Jo = ["innerHTML"], Qo = ["innerHTML"];
|
|
7540
|
+
function Zo(e, t, i, s, n, l) {
|
|
7557
7541
|
return o(), u("ul", {
|
|
7558
7542
|
class: m(["w-timeline", l.classes])
|
|
7559
7543
|
}, [
|
|
7560
|
-
(o(!0), u(v, null,
|
|
7544
|
+
(o(!0), u(v, null, O(i.items, (a, r) => (o(), u("li", {
|
|
7561
7545
|
class: "w-timeline-item",
|
|
7562
7546
|
key: r
|
|
7563
7547
|
}, [
|
|
7564
|
-
(o(), b(
|
|
7548
|
+
(o(), b(R(a[i.itemIconKey] || i.icon ? "w-icon" : "div"), {
|
|
7565
7549
|
class: m(["w-timeline-item__bullet", { [a[i.itemColorKey] || i.color]: a[i.itemColorKey] || i.color }])
|
|
7566
7550
|
}, {
|
|
7567
7551
|
default: f(() => [
|
|
7568
|
-
|
|
7552
|
+
_(S(a[i.itemIconKey] || i.icon), 1)
|
|
7569
7553
|
]),
|
|
7570
7554
|
_: 2
|
|
7571
7555
|
}, 1032, ["class"])),
|
|
@@ -7578,19 +7562,19 @@ function Ro(e, t, i, s, n, l) {
|
|
|
7578
7562
|
item: a,
|
|
7579
7563
|
index: r + 1
|
|
7580
7564
|
}, () => [
|
|
7581
|
-
|
|
7565
|
+
k("div", {
|
|
7582
7566
|
class: m(["w-timeline-item__title", { [a[i.itemColorKey] || i.color]: a[i.itemColorKey] || i.color }]),
|
|
7583
7567
|
innerHTML: a[i.itemTitleKey]
|
|
7584
|
-
}, null, 10,
|
|
7585
|
-
|
|
7568
|
+
}, null, 10, Jo),
|
|
7569
|
+
k("div", {
|
|
7586
7570
|
class: "w-timeline-item__content",
|
|
7587
7571
|
innerHTML: a[i.itemContentKey]
|
|
7588
|
-
}, null, 8,
|
|
7572
|
+
}, null, 8, Qo)
|
|
7589
7573
|
])
|
|
7590
7574
|
]))), 128))
|
|
7591
7575
|
], 2);
|
|
7592
7576
|
}
|
|
7593
|
-
const
|
|
7577
|
+
const ea = {
|
|
7594
7578
|
name: "w-timeline",
|
|
7595
7579
|
props: {
|
|
7596
7580
|
items: { type: [Array, Number], required: !0 },
|
|
@@ -7612,16 +7596,16 @@ const xo = {
|
|
|
7612
7596
|
};
|
|
7613
7597
|
}
|
|
7614
7598
|
}
|
|
7615
|
-
},
|
|
7616
|
-
function
|
|
7599
|
+
}, ta = /* @__PURE__ */ C(ea, [["render", Zo]]);
|
|
7600
|
+
function ia(e, t, i, s, n, l) {
|
|
7617
7601
|
return o(), u("div", {
|
|
7618
7602
|
class: m(["w-toolbar", l.classes]),
|
|
7619
|
-
style:
|
|
7603
|
+
style: x(l.styles)
|
|
7620
7604
|
}, [
|
|
7621
7605
|
c(e.$slots, "default")
|
|
7622
7606
|
], 6);
|
|
7623
7607
|
}
|
|
7624
|
-
const
|
|
7608
|
+
const la = {
|
|
7625
7609
|
name: "w-toolbar",
|
|
7626
7610
|
props: {
|
|
7627
7611
|
color: { type: String },
|
|
@@ -7672,11 +7656,11 @@ const zo = {
|
|
|
7672
7656
|
};
|
|
7673
7657
|
}
|
|
7674
7658
|
}
|
|
7675
|
-
},
|
|
7676
|
-
function
|
|
7659
|
+
}, sa = /* @__PURE__ */ C(la, [["render", ia]]);
|
|
7660
|
+
function oa(e, t, i, s, n, l) {
|
|
7677
7661
|
return o(), u(v, null, [
|
|
7678
7662
|
c(e.$slots, "activator", { on: l.activatorEventHandlers }),
|
|
7679
|
-
|
|
7663
|
+
L(P, {
|
|
7680
7664
|
name: l.transitionName,
|
|
7681
7665
|
appear: ""
|
|
7682
7666
|
}, {
|
|
@@ -7685,7 +7669,7 @@ function Eo(e, t, i, s, n, l) {
|
|
|
7685
7669
|
class: m(["w-tooltip", l.classes]),
|
|
7686
7670
|
ref: "detachable",
|
|
7687
7671
|
key: e._.uid,
|
|
7688
|
-
style:
|
|
7672
|
+
style: x(l.styles)
|
|
7689
7673
|
}, [
|
|
7690
7674
|
c(e.$slots, "default")
|
|
7691
7675
|
], 6)) : p("", !0)
|
|
@@ -7694,9 +7678,9 @@ function Eo(e, t, i, s, n, l) {
|
|
|
7694
7678
|
}, 8, ["name"])
|
|
7695
7679
|
], 64);
|
|
7696
7680
|
}
|
|
7697
|
-
const
|
|
7681
|
+
const aa = {
|
|
7698
7682
|
name: "w-tooltip",
|
|
7699
|
-
mixins: [
|
|
7683
|
+
mixins: [Me],
|
|
7700
7684
|
props: {
|
|
7701
7685
|
modelValue: {},
|
|
7702
7686
|
showOnClick: { type: Boolean },
|
|
@@ -7746,7 +7730,7 @@ const Ao = {
|
|
|
7746
7730
|
* - `alignment`
|
|
7747
7731
|
**/
|
|
7748
7732
|
tooltipClasses() {
|
|
7749
|
-
return
|
|
7733
|
+
return z(this.tooltipClass);
|
|
7750
7734
|
},
|
|
7751
7735
|
transitionName() {
|
|
7752
7736
|
const e = this.position.replace(/top|bottom/, (t) => ({ top: "up", bottom: "down" })[t]);
|
|
@@ -7830,24 +7814,24 @@ const Ao = {
|
|
|
7830
7814
|
}
|
|
7831
7815
|
}
|
|
7832
7816
|
// watch, mounted & beforeDestroy hooks are set in the detachable.js mixin.
|
|
7833
|
-
},
|
|
7834
|
-
function
|
|
7835
|
-
return o(), b(
|
|
7817
|
+
}, na = /* @__PURE__ */ C(aa, [["render", oa]]);
|
|
7818
|
+
function ra(e, t, i, s, n, l) {
|
|
7819
|
+
return o(), b(P, $({ name: "bounce" }, e.$props), {
|
|
7836
7820
|
default: f(() => [
|
|
7837
7821
|
c(e.$slots, "default")
|
|
7838
7822
|
]),
|
|
7839
7823
|
_: 3
|
|
7840
7824
|
}, 16);
|
|
7841
7825
|
}
|
|
7842
|
-
const
|
|
7826
|
+
const da = {
|
|
7843
7827
|
name: "w-transition-bounce",
|
|
7844
7828
|
props: {
|
|
7845
7829
|
appear: { type: Boolean },
|
|
7846
7830
|
duration: { type: [Number, String] }
|
|
7847
7831
|
}
|
|
7848
|
-
},
|
|
7849
|
-
function
|
|
7850
|
-
return o(), b(
|
|
7832
|
+
}, ua = /* @__PURE__ */ C(da, [["render", ra]]);
|
|
7833
|
+
function ha(e, t, i, s, n, l) {
|
|
7834
|
+
return o(), b(P, {
|
|
7851
7835
|
name: "expand",
|
|
7852
7836
|
mode: "out-in",
|
|
7853
7837
|
css: !1,
|
|
@@ -7867,7 +7851,7 @@ function Ho(e, t, i, s, n, l) {
|
|
|
7867
7851
|
_: 3
|
|
7868
7852
|
}, 8, ["onBeforeAppear", "onAppear", "onAfterAppear", "onBeforeEnter", "onEnter", "onAfterEnter", "onBeforeLeave", "onLeave", "onAfterLeave"]);
|
|
7869
7853
|
}
|
|
7870
|
-
const
|
|
7854
|
+
const ca = {
|
|
7871
7855
|
name: "w-transition-expand",
|
|
7872
7856
|
props: {
|
|
7873
7857
|
x: { type: Boolean },
|
|
@@ -7957,61 +7941,61 @@ const Fo = {
|
|
|
7957
7941
|
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;
|
|
7958
7942
|
}
|
|
7959
7943
|
}
|
|
7960
|
-
},
|
|
7961
|
-
function
|
|
7962
|
-
return o(), b(
|
|
7944
|
+
}, pa = /* @__PURE__ */ C(ca, [["render", ha]]);
|
|
7945
|
+
function ma(e, t, i, s, n, l) {
|
|
7946
|
+
return o(), b(P, $({ name: "fade" }, e.$props), {
|
|
7963
7947
|
default: f(() => [
|
|
7964
7948
|
c(e.$slots, "default")
|
|
7965
7949
|
]),
|
|
7966
7950
|
_: 3
|
|
7967
7951
|
}, 16);
|
|
7968
7952
|
}
|
|
7969
|
-
const
|
|
7953
|
+
const fa = {
|
|
7970
7954
|
name: "w-transition-fade",
|
|
7971
7955
|
props: {
|
|
7972
7956
|
appear: { type: Boolean },
|
|
7973
7957
|
duration: { type: [Number, String] }
|
|
7974
7958
|
}
|
|
7975
|
-
},
|
|
7976
|
-
function
|
|
7977
|
-
return o(), b(
|
|
7959
|
+
}, ga = /* @__PURE__ */ C(fa, [["render", ma]]);
|
|
7960
|
+
function ba(e, t, i, s, n, l) {
|
|
7961
|
+
return o(), b(P, $({ name: "scale" }, e.$props), {
|
|
7978
7962
|
default: f(() => [
|
|
7979
7963
|
c(e.$slots, "default")
|
|
7980
7964
|
]),
|
|
7981
7965
|
_: 3
|
|
7982
7966
|
}, 16);
|
|
7983
7967
|
}
|
|
7984
|
-
const
|
|
7968
|
+
const ya = {
|
|
7985
7969
|
name: "w-transition-scale",
|
|
7986
7970
|
props: {
|
|
7987
7971
|
appear: { type: Boolean },
|
|
7988
7972
|
duration: { type: [Number, String] }
|
|
7989
7973
|
}
|
|
7990
|
-
},
|
|
7991
|
-
function
|
|
7992
|
-
return o(), b(
|
|
7974
|
+
}, wa = /* @__PURE__ */ C(ya, [["render", ba]]);
|
|
7975
|
+
function ka(e, t, i, s, n, l) {
|
|
7976
|
+
return o(), b(P, $({ name: "scale-fade" }, e.$props), {
|
|
7993
7977
|
default: f(() => [
|
|
7994
7978
|
c(e.$slots, "default")
|
|
7995
7979
|
]),
|
|
7996
7980
|
_: 3
|
|
7997
7981
|
}, 16);
|
|
7998
7982
|
}
|
|
7999
|
-
const
|
|
7983
|
+
const va = {
|
|
8000
7984
|
name: "w-transition-scale-fade",
|
|
8001
7985
|
props: {
|
|
8002
7986
|
appear: { type: Boolean },
|
|
8003
7987
|
duration: { type: [Number, String] }
|
|
8004
7988
|
}
|
|
8005
|
-
},
|
|
8006
|
-
function
|
|
8007
|
-
return o(), b(
|
|
7989
|
+
}, Ca = /* @__PURE__ */ C(va, [["render", ka]]);
|
|
7990
|
+
function Sa(e, t, i, s, n, l) {
|
|
7991
|
+
return o(), b(P, $({ name: l.transitionName }, e.$props), {
|
|
8008
7992
|
default: f(() => [
|
|
8009
7993
|
c(e.$slots, "default")
|
|
8010
7994
|
]),
|
|
8011
7995
|
_: 3
|
|
8012
7996
|
}, 16, ["name"]);
|
|
8013
7997
|
}
|
|
8014
|
-
const
|
|
7998
|
+
const Ba = {
|
|
8015
7999
|
name: "w-transition-slide",
|
|
8016
8000
|
props: {
|
|
8017
8001
|
appear: { type: Boolean },
|
|
@@ -8029,16 +8013,16 @@ const ia = {
|
|
|
8029
8013
|
return `slide-${this.direction}`;
|
|
8030
8014
|
}
|
|
8031
8015
|
}
|
|
8032
|
-
},
|
|
8033
|
-
function
|
|
8034
|
-
return o(), b(
|
|
8016
|
+
}, _a = /* @__PURE__ */ C(Ba, [["render", Sa]]);
|
|
8017
|
+
function $a(e, t, i, s, n, l) {
|
|
8018
|
+
return o(), b(P, $({ name: l.transitionName }, e.$props), {
|
|
8035
8019
|
default: f(() => [
|
|
8036
8020
|
c(e.$slots, "default")
|
|
8037
8021
|
]),
|
|
8038
8022
|
_: 3
|
|
8039
8023
|
}, 16, ["name"]);
|
|
8040
8024
|
}
|
|
8041
|
-
const
|
|
8025
|
+
const Ia = {
|
|
8042
8026
|
name: "w-transition-slide-fade",
|
|
8043
8027
|
props: {
|
|
8044
8028
|
appear: { type: Boolean },
|
|
@@ -8056,47 +8040,47 @@ const oa = {
|
|
|
8056
8040
|
return `slide-fade-${this.direction}`;
|
|
8057
8041
|
}
|
|
8058
8042
|
}
|
|
8059
|
-
},
|
|
8060
|
-
function
|
|
8061
|
-
return o(), b(
|
|
8043
|
+
}, Va = /* @__PURE__ */ C(Ia, [["render", $a]]);
|
|
8044
|
+
function Ta(e, t, i, s, n, l) {
|
|
8045
|
+
return o(), b(P, $({ name: "twist" }, e.$props), {
|
|
8062
8046
|
default: f(() => [
|
|
8063
8047
|
c(e.$slots, "default")
|
|
8064
8048
|
]),
|
|
8065
8049
|
_: 3
|
|
8066
8050
|
}, 16);
|
|
8067
8051
|
}
|
|
8068
|
-
const
|
|
8052
|
+
const La = {
|
|
8069
8053
|
name: "w-transition-twist",
|
|
8070
8054
|
props: {
|
|
8071
8055
|
appear: { type: Boolean },
|
|
8072
8056
|
duration: { type: [Number, String] }
|
|
8073
8057
|
}
|
|
8074
|
-
},
|
|
8058
|
+
}, Ra = /* @__PURE__ */ C(La, [["render", Ta]]), xa = ["innerHTML"], Oa = {
|
|
8075
8059
|
key: 1,
|
|
8076
8060
|
class: "ml1"
|
|
8077
8061
|
};
|
|
8078
|
-
function
|
|
8079
|
-
const a =
|
|
8062
|
+
function Pa(e, t, i, s, n, l) {
|
|
8063
|
+
const a = V("w-button"), r = V("w-icon"), d = V("w-tree", !0);
|
|
8080
8064
|
return o(), u("ul", {
|
|
8081
8065
|
class: m(["w-tree", l.classes])
|
|
8082
8066
|
}, [
|
|
8083
|
-
(o(!0), u(v, null,
|
|
8067
|
+
(o(!0), u(v, null, O(e.currentDepthItems, (h, y) => (o(), u("li", {
|
|
8084
8068
|
class: m(["w-tree__item", l.itemClasses(h)]),
|
|
8085
8069
|
key: y
|
|
8086
8070
|
}, [
|
|
8087
|
-
(o(), b(
|
|
8071
|
+
(o(), b(R(l.getTreeItemComponent(h)), $({
|
|
8088
8072
|
class: "w-tree__item-label",
|
|
8089
8073
|
ref_for: !0
|
|
8090
8074
|
}, h.route && { [!e.$router || l.hasExternalLink(h) ? "href" : "to"]: h.route }, {
|
|
8091
|
-
onClick: (
|
|
8092
|
-
onKeydown: (
|
|
8075
|
+
onClick: (w) => !i.disabled && !h.disabled && l.onLabelClick(h, w),
|
|
8076
|
+
onKeydown: (w) => !i.disabled && !h.disabled && l.onLabelKeydown(h, w),
|
|
8093
8077
|
tabindex: l.getTreeItemTabindex(h)
|
|
8094
8078
|
}), {
|
|
8095
8079
|
default: f(() => [
|
|
8096
8080
|
(h.children || h.branch) && (i.expandOpenIcon && h.open || i.expandIcon) && !(i.unexpandableEmpty && !h.children) ? (o(), b(a, {
|
|
8097
8081
|
key: 0,
|
|
8098
8082
|
class: "w-tree__item-expand",
|
|
8099
|
-
onClick:
|
|
8083
|
+
onClick: A((w) => !i.disabled && !h.disabled && l.onLabelClick(h, w), ["stop"]),
|
|
8100
8084
|
color: "inherit",
|
|
8101
8085
|
icon: h.open && i.expandOpenIcon || i.expandIcon,
|
|
8102
8086
|
"icon-props": { rotate90a: !h.open },
|
|
@@ -8111,7 +8095,7 @@ function ca(e, t, i, s, n, l) {
|
|
|
8111
8095
|
path: h.path,
|
|
8112
8096
|
open: h.open
|
|
8113
8097
|
}, () => {
|
|
8114
|
-
var
|
|
8098
|
+
var w;
|
|
8115
8099
|
return [
|
|
8116
8100
|
l.itemIcon(h) ? (o(), b(r, {
|
|
8117
8101
|
key: 0,
|
|
@@ -8119,45 +8103,45 @@ function ca(e, t, i, s, n, l) {
|
|
|
8119
8103
|
color: h.originalItem[i.itemIconColorKey] || i.iconColor
|
|
8120
8104
|
}, {
|
|
8121
8105
|
default: f(() => [
|
|
8122
|
-
|
|
8106
|
+
_(S(l.itemIcon(h)), 1)
|
|
8123
8107
|
]),
|
|
8124
8108
|
_: 2
|
|
8125
8109
|
}, 1032, ["color"])) : p("", !0),
|
|
8126
|
-
|
|
8110
|
+
k("span", {
|
|
8127
8111
|
innerHTML: h.label
|
|
8128
|
-
}, null, 8,
|
|
8129
|
-
i.counts && (h.children || h.branch) ? (o(), u("span",
|
|
8112
|
+
}, null, 8, xa),
|
|
8113
|
+
i.counts && (h.children || h.branch) ? (o(), u("span", Oa, "(" + S(((w = h.originalItem.children) == null ? void 0 : w.length) || 0) + ")", 1)) : p("", !0)
|
|
8130
8114
|
];
|
|
8131
8115
|
})
|
|
8132
8116
|
]),
|
|
8133
8117
|
_: 2
|
|
8134
8118
|
}, 1040, ["onClick", "onKeydown", "tabindex"])),
|
|
8135
|
-
(o(), b(
|
|
8119
|
+
(o(), b(R(i.noTransition ? "div" : "w-transition-expand"), {
|
|
8136
8120
|
y: !i.noTransition || null,
|
|
8137
|
-
onAfterEnter: (
|
|
8138
|
-
onAfterLeave: (
|
|
8121
|
+
onAfterEnter: (w) => e.$emit("open", l.emitPayload(h)),
|
|
8122
|
+
onAfterLeave: (w) => e.$emit("close", l.emitPayload(h))
|
|
8139
8123
|
}, {
|
|
8140
8124
|
default: f(() => [
|
|
8141
|
-
h.children && h.open ? (o(), b(d,
|
|
8125
|
+
h.children && h.open ? (o(), b(d, $({
|
|
8142
8126
|
key: 0,
|
|
8143
8127
|
ref_for: !0
|
|
8144
8128
|
}, e.$props, {
|
|
8145
8129
|
depth: i.depth + 1,
|
|
8146
8130
|
data: h.originalItem.children,
|
|
8147
8131
|
parent: h,
|
|
8148
|
-
onBeforeOpen: t[0] || (t[0] = (
|
|
8149
|
-
onOpen: t[1] || (t[1] = (
|
|
8150
|
-
onBeforeClose: t[2] || (t[2] = (
|
|
8151
|
-
onClose: t[3] || (t[3] = (
|
|
8152
|
-
onClick: t[4] || (t[4] = (
|
|
8153
|
-
onSelect: t[5] || (t[5] = (
|
|
8154
|
-
"onUpdate:modelValue": t[6] || (t[6] = (
|
|
8132
|
+
onBeforeOpen: t[0] || (t[0] = (w) => e.$emit("before-open", w)),
|
|
8133
|
+
onOpen: t[1] || (t[1] = (w) => e.$emit("open", w)),
|
|
8134
|
+
onBeforeClose: t[2] || (t[2] = (w) => e.$emit("before-close", w)),
|
|
8135
|
+
onClose: t[3] || (t[3] = (w) => e.$emit("close", w)),
|
|
8136
|
+
onClick: t[4] || (t[4] = (w) => e.$emit("click", w)),
|
|
8137
|
+
onSelect: t[5] || (t[5] = (w) => e.$emit("select", w)),
|
|
8138
|
+
"onUpdate:modelValue": t[6] || (t[6] = (w) => e.$emit("update:model-value", w))
|
|
8155
8139
|
}), {
|
|
8156
|
-
item: f(({ item:
|
|
8140
|
+
item: f(({ item: w, depth: g, path: B, open: I }) => [
|
|
8157
8141
|
c(e.$slots, "item", {
|
|
8158
|
-
item:
|
|
8142
|
+
item: w,
|
|
8159
8143
|
depth: g,
|
|
8160
|
-
path:
|
|
8144
|
+
path: B,
|
|
8161
8145
|
open: I
|
|
8162
8146
|
})
|
|
8163
8147
|
]),
|
|
@@ -8169,7 +8153,7 @@ function ca(e, t, i, s, n, l) {
|
|
|
8169
8153
|
], 2))), 128))
|
|
8170
8154
|
], 2);
|
|
8171
8155
|
}
|
|
8172
|
-
const
|
|
8156
|
+
const za = {
|
|
8173
8157
|
name: "w-tree",
|
|
8174
8158
|
props: {
|
|
8175
8159
|
modelValue: { type: [Object, Array] },
|
|
@@ -8230,7 +8214,7 @@ const pa = {
|
|
|
8230
8214
|
// From data watcher, retain the oldItems open state.
|
|
8231
8215
|
updateCurrentDepthTree(e, t = []) {
|
|
8232
8216
|
if (this.currentDepthItems = [], !Array.isArray(e) && typeof e != "object")
|
|
8233
|
-
return
|
|
8217
|
+
return J(`[w-tree] the tree items must be of type array or object, ${typeof e} received.`);
|
|
8234
8218
|
Array.isArray(e) || (e = [e]), e.forEach((i, s) => {
|
|
8235
8219
|
var l, a;
|
|
8236
8220
|
const n = {
|
|
@@ -8367,64 +8351,64 @@ const pa = {
|
|
|
8367
8351
|
unmounted() {
|
|
8368
8352
|
this.dataPropUnwatch();
|
|
8369
8353
|
}
|
|
8370
|
-
},
|
|
8354
|
+
}, Ea = /* @__PURE__ */ C(za, [["render", Pa]]), Ma = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
8371
8355
|
__proto__: null,
|
|
8372
|
-
WAccordion:
|
|
8373
|
-
WAccordionItem:
|
|
8374
|
-
WAlert:
|
|
8375
|
-
WApp:
|
|
8376
|
-
WAutocomplete:
|
|
8377
|
-
WBadge:
|
|
8378
|
-
WBreadcrumbs:
|
|
8379
|
-
WButton:
|
|
8380
|
-
WCard:
|
|
8381
|
-
WCheckbox:
|
|
8382
|
-
WCheckboxes:
|
|
8383
|
-
WConfirm:
|
|
8384
|
-
WDatePicker:
|
|
8385
|
-
WDialog:
|
|
8386
|
-
WDivider:
|
|
8387
|
-
WDrawer:
|
|
8388
|
-
WFlex:
|
|
8389
|
-
WForm:
|
|
8390
|
-
WFormElement:
|
|
8391
|
-
WGrid:
|
|
8392
|
-
WIcon:
|
|
8393
|
-
WImage:
|
|
8394
|
-
WInput:
|
|
8395
|
-
WList:
|
|
8396
|
-
WMenu:
|
|
8397
|
-
WNotification:
|
|
8398
|
-
WOverlay:
|
|
8399
|
-
WParallax:
|
|
8400
|
-
WProgress:
|
|
8401
|
-
WRadio:
|
|
8402
|
-
WRadios:
|
|
8403
|
-
WRating:
|
|
8404
|
-
WScrollable:
|
|
8405
|
-
WSelect:
|
|
8406
|
-
WSlider:
|
|
8407
|
-
WSpinner:
|
|
8408
|
-
WSteps:
|
|
8409
|
-
WSwitch:
|
|
8410
|
-
WTable:
|
|
8411
|
-
WTabs:
|
|
8412
|
-
WTag:
|
|
8413
|
-
WTextarea:
|
|
8414
|
-
WTimeline:
|
|
8415
|
-
WToolbar:
|
|
8416
|
-
WTooltip:
|
|
8417
|
-
WTransitionBounce:
|
|
8418
|
-
WTransitionExpand:
|
|
8419
|
-
WTransitionFade:
|
|
8420
|
-
WTransitionScale:
|
|
8421
|
-
WTransitionScaleFade:
|
|
8422
|
-
WTransitionSlide:
|
|
8423
|
-
WTransitionSlideFade:
|
|
8424
|
-
WTransitionTwist:
|
|
8425
|
-
WTree:
|
|
8426
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
8427
|
-
|
|
8356
|
+
WAccordion: Pt,
|
|
8357
|
+
WAccordionItem: Ee,
|
|
8358
|
+
WAlert: At,
|
|
8359
|
+
WApp: Qt,
|
|
8360
|
+
WAutocomplete: Xt,
|
|
8361
|
+
WBadge: ii,
|
|
8362
|
+
WBreadcrumbs: ai,
|
|
8363
|
+
WButton: mi,
|
|
8364
|
+
WCard: yi,
|
|
8365
|
+
WCheckbox: $i,
|
|
8366
|
+
WCheckboxes: Li,
|
|
8367
|
+
WConfirm: Oi,
|
|
8368
|
+
WDatePicker: Ei,
|
|
8369
|
+
WDialog: Wi,
|
|
8370
|
+
WDivider: Hi,
|
|
8371
|
+
WDrawer: Xi,
|
|
8372
|
+
WFlex: Ji,
|
|
8373
|
+
WForm: tl,
|
|
8374
|
+
WFormElement: sl,
|
|
8375
|
+
WGrid: nl,
|
|
8376
|
+
WIcon: ul,
|
|
8377
|
+
WImage: fl,
|
|
8378
|
+
WInput: $l,
|
|
8379
|
+
WList: Tl,
|
|
8380
|
+
WMenu: xl,
|
|
8381
|
+
WNotification: zl,
|
|
8382
|
+
WOverlay: Al,
|
|
8383
|
+
WParallax: Dl,
|
|
8384
|
+
WProgress: Gl,
|
|
8385
|
+
WRadio: ss,
|
|
8386
|
+
WRadios: rs,
|
|
8387
|
+
WRating: ps,
|
|
8388
|
+
WScrollable: ms,
|
|
8389
|
+
WSelect: vs,
|
|
8390
|
+
WSlider: zs,
|
|
8391
|
+
WSpinner: Ws,
|
|
8392
|
+
WSteps: Ds,
|
|
8393
|
+
WSwitch: Gs,
|
|
8394
|
+
WTable: Ko,
|
|
8395
|
+
WTabs: uo,
|
|
8396
|
+
WTag: Fo,
|
|
8397
|
+
WTextarea: Go,
|
|
8398
|
+
WTimeline: ta,
|
|
8399
|
+
WToolbar: sa,
|
|
8400
|
+
WTooltip: na,
|
|
8401
|
+
WTransitionBounce: ua,
|
|
8402
|
+
WTransitionExpand: pa,
|
|
8403
|
+
WTransitionFade: ga,
|
|
8404
|
+
WTransitionScale: wa,
|
|
8405
|
+
WTransitionScaleFade: Ca,
|
|
8406
|
+
WTransitionSlide: _a,
|
|
8407
|
+
WTransitionSlideFade: Va,
|
|
8408
|
+
WTransitionTwist: Ra,
|
|
8409
|
+
WTree: Ea
|
|
8410
|
+
}, Symbol.toStringTag, { value: "Module" })), Aa = Z.install;
|
|
8411
|
+
Z.install = (e, t = {}) => Aa.call(Z, e, { components: Ma, ...t });
|
|
8428
8412
|
export {
|
|
8429
|
-
|
|
8413
|
+
Z as default
|
|
8430
8414
|
};
|