wave-ui 3.13.6 → 3.14.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/types/$waveui.d.ts +29 -29
- package/dist/types/colors.d.ts +8 -0
- package/dist/wave-ui.cjs.js +1 -1
- package/dist/wave-ui.css +1 -1
- package/dist/wave-ui.es.js +1046 -1002
- package/dist/wave-ui.umd.js +1 -1
- package/package.json +13 -9
- package/src/wave-ui/components/w-button/button.vue +13 -11
- package/src/wave-ui/components/w-switch.vue +6 -5
- package/src/wave-ui/core.js +1 -0
- package/src/wave-ui/scss/_layout.scss +1 -1
- package/src/wave-ui/scss/_variables.scss +1 -1
- package/src/wave-ui/utils/colors.js +234 -15
- package/src/wave-ui/utils/config.js +1 -1
- package/src/wave-ui/utils/dynamic-css.js +3 -3
package/dist/wave-ui.es.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var _e = Object.defineProperty;
|
|
2
|
+
var de = (e) => {
|
|
3
3
|
throw TypeError(e);
|
|
4
4
|
};
|
|
5
|
-
var
|
|
6
|
-
var H = (e, t, i) =>
|
|
7
|
-
var
|
|
8
|
-
import { reactive as
|
|
9
|
-
const
|
|
5
|
+
var $e = (e, t, i) => t in e ? _e(e, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[t] = i;
|
|
6
|
+
var H = (e, t, i) => $e(e, typeof t != "symbol" ? t + "" : t, i), ue = (e, t, i) => t.has(e) || de("Cannot " + i);
|
|
7
|
+
var Y = (e, t, i) => (ue(e, t, "read from private field"), i ? i.call(e) : t.get(e)), te = (e, t, i) => t.has(e) ? de("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, i), ie = (e, t, i, s) => (ue(e, t, "write to private field"), s ? s.call(e, i) : t.set(e, i), i);
|
|
8
|
+
import { reactive as Z, resolveComponent as $, openBlock as o, createBlock as g, Teleport as Ve, createVNode as T, TransitionGroup as ae, normalizeClass as f, withCtx as m, createElementBlock as u, Fragment as k, renderList as x, mergeProps as _, createElementVNode as w, createCommentVNode as p, createApp as Ie, defineComponent as Te, inject as Le, withKeys as E, withModifiers as M, renderSlot as c, createTextVNode as S, toDisplayString as C, normalizeStyle as R, toHandlers as ne, Transition as P, resolveDynamicComponent as L, normalizeProps as le, resolveDirective as ke, withDirectives as W, createSlots as ee, vShow as re, vModelText as ve, vModelDynamic as Re, KeepAlive as xe } from "vue";
|
|
9
|
+
const Pe = Z({
|
|
10
10
|
on: "#app",
|
|
11
11
|
// Sets the Wave UI root node. If not found, will default to `body`.
|
|
12
12
|
breakpoints: {
|
|
@@ -66,39 +66,82 @@ const Te = G({
|
|
|
66
66
|
},
|
|
67
67
|
presets: {}
|
|
68
68
|
// User presets for each component.
|
|
69
|
-
}),
|
|
69
|
+
}), Ce = (e, t = Pe) => {
|
|
70
70
|
if (!Object.keys(t).length) t = Object.assign(t, e);
|
|
71
71
|
else
|
|
72
72
|
for (const i in e) {
|
|
73
|
-
const
|
|
74
|
-
typeof
|
|
73
|
+
const s = e[i];
|
|
74
|
+
typeof s == "object" && typeof t[i] == "object" ? Ce(e[i], t[i]) : t[i] = s;
|
|
75
75
|
}
|
|
76
76
|
return t;
|
|
77
|
-
},
|
|
77
|
+
}, j = (e) => console.warn(`Wave UI: ${e}`), F = (e) => console.error(`Wave UI: ${e}`), Oe = (e) => {
|
|
78
78
|
["light", "dark"].forEach((t) => {
|
|
79
|
+
var s;
|
|
79
80
|
const i = e.colors[t];
|
|
80
81
|
i.shades = {};
|
|
81
|
-
for (
|
|
82
|
-
if (
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
i.shades[`${o.label}-light${l}`] = a, i.shades[`${o.label}-dark${l}`] = r;
|
|
82
|
+
for (const n in i) {
|
|
83
|
+
if (n === "shades") continue;
|
|
84
|
+
const l = i[n], a = { label: n, color: (((s = i[n]) == null ? void 0 : s.color) ?? i[n]).replace("#", "") }, r = a.color;
|
|
85
|
+
r.length === 3 && (a.color = r[0] + "" + r[0] + r[1] + r[1] + r[2] + r[2]);
|
|
86
|
+
for (let d = 1; d <= 6; d++) {
|
|
87
|
+
const h = We(`#${a.color}`, d * ((l == null ? void 0 : l.lightIncrement) ?? 16) + ((l == null ? void 0 : l.lightOffset) ?? 0)), y = Ke(`#${a.color}`, d * ((l == null ? void 0 : l.darkIncrement) ?? 12.4) + ((l == null ? void 0 : l.darkOffset) ?? 0));
|
|
88
|
+
i.shades[`${a.label}-light${d}`] = h, i.shades[`${a.label}-dark${d}`] = y;
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
91
|
});
|
|
92
|
-
},
|
|
92
|
+
}, he = (e, t) => {
|
|
93
93
|
const i = {
|
|
94
|
-
...t.reduce((
|
|
95
|
-
|
|
94
|
+
...t.reduce((s, n) => {
|
|
95
|
+
s[n.label] = n.color;
|
|
96
96
|
const l = (n.shades || []).reduce((a, r) => (a[r.label] = r.color, a), {});
|
|
97
|
-
return { ...
|
|
97
|
+
return { ...s, ...l };
|
|
98
98
|
}, { ...e, ...e.shades })
|
|
99
99
|
};
|
|
100
100
|
return delete i.shades, i;
|
|
101
|
-
}
|
|
101
|
+
};
|
|
102
|
+
function G(e, t, i) {
|
|
103
|
+
return Math.min(Math.max(e, t), i);
|
|
104
|
+
}
|
|
105
|
+
function J(e) {
|
|
106
|
+
const t = e.toString(16);
|
|
107
|
+
return t.length === 1 && `0${t}` || t.length === 2 && t || F(`expected value from 0~255, got: ${e}`) || "";
|
|
108
|
+
}
|
|
109
|
+
function Me(e) {
|
|
110
|
+
return /^#[0-9a-f]{6}([0-9a-f]{2})?$/i.test(e);
|
|
111
|
+
}
|
|
112
|
+
function ze(e) {
|
|
113
|
+
return /^#[0-9a-f]{3}([0-9a-f])?$/i.test(e);
|
|
114
|
+
}
|
|
115
|
+
function Ee(e) {
|
|
116
|
+
return `#${e.substring(1).split("").map((t) => `${t}${t}`).join("")}`;
|
|
117
|
+
}
|
|
118
|
+
function Ae(e) {
|
|
119
|
+
return Me(e) && e || ze(e) && Ee(e) || F(`expected color hex string, got '${e}'`) || "";
|
|
120
|
+
}
|
|
121
|
+
function ce(e) {
|
|
122
|
+
const t = Ae(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;
|
|
123
|
+
return {
|
|
124
|
+
red: i,
|
|
125
|
+
green: s,
|
|
126
|
+
blue: n,
|
|
127
|
+
alpha: l,
|
|
128
|
+
hasAlpha: t.length === 9
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
function pe(e, t, i, s) {
|
|
132
|
+
return `#${J(e)}${J(t)}${J(i)}${s ? J(Math.floor(s * 255)) : ""}`;
|
|
133
|
+
}
|
|
134
|
+
function Se(e, t, i = 50) {
|
|
135
|
+
const s = ce(e), n = ce(t), l = G(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 = G(Math.round(s.red * d + n.red * h), 0, 255), B = G(Math.round(s.green * d + n.green * h), 0, 255), b = G(Math.round(s.blue * d + n.blue * h), 0, 255), I = s.alpha * l + n.alpha * (1 - l);
|
|
136
|
+
return s.hasAlpha || n.hasAlpha || I !== 1 ? pe(y, B, b, I) : pe(y, B, b);
|
|
137
|
+
}
|
|
138
|
+
function We(e, t = 15) {
|
|
139
|
+
return Se("#ffffff", e, t);
|
|
140
|
+
}
|
|
141
|
+
function Ke(e, t = 12.4) {
|
|
142
|
+
return Se("#000000", e, t);
|
|
143
|
+
}
|
|
144
|
+
const fe = [
|
|
102
145
|
{
|
|
103
146
|
label: "pink",
|
|
104
147
|
color: "#e91e63",
|
|
@@ -445,43 +488,44 @@ const Te = G({
|
|
|
445
488
|
{ label: "white", color: "#fff" },
|
|
446
489
|
{ label: "transparent", color: "transparent" },
|
|
447
490
|
{ label: "inherit", color: "inherit" }
|
|
448
|
-
],
|
|
491
|
+
], U = {
|
|
449
492
|
cssScope: ".w-app",
|
|
450
493
|
baseIncrement: 4
|
|
451
494
|
};
|
|
452
|
-
let
|
|
453
|
-
const
|
|
495
|
+
let se = { keys: [], values: [] }, me = null;
|
|
496
|
+
const Ne = (e, t) => {
|
|
497
|
+
var I;
|
|
454
498
|
let i = "";
|
|
455
|
-
const
|
|
499
|
+
const s = {}, { info: n, warning: l, success: a, error: r, shades: d, ...h } = e, { cssScope: y } = U;
|
|
456
500
|
for (const V in h)
|
|
457
|
-
i += `${
|
|
501
|
+
i += `${y} .${V}--bg{background-color:var(--w-${V}-color)}${y} .${V}{color:var(--w-${V}-color)}`;
|
|
458
502
|
for (const V in d)
|
|
459
|
-
i += `${
|
|
460
|
-
const
|
|
461
|
-
for (const V in
|
|
503
|
+
i += `${y} .${V}--bg{background-color:${d[V]}}${y} .${V}{color:${d[V]}}`;
|
|
504
|
+
const B = { ...h, info: n, warning: l, success: a, error: r };
|
|
505
|
+
for (const V in B) s[V] = ((I = B[V]) == null ? void 0 : I.color) ?? B[V];
|
|
462
506
|
if (t)
|
|
463
|
-
for (const V in d)
|
|
507
|
+
for (const V in d) s[V] = d[V];
|
|
464
508
|
let b = "";
|
|
465
|
-
return Object.entries(
|
|
466
|
-
b += `--w-${V}-color: ${
|
|
509
|
+
return Object.entries(s).forEach(([V, O]) => {
|
|
510
|
+
b += `--w-${V}-color: ${O};`;
|
|
467
511
|
}), `:root{${b}}${i}`;
|
|
468
|
-
},
|
|
512
|
+
}, De = (e, t) => {
|
|
469
513
|
let i = "";
|
|
470
|
-
const { cssScope:
|
|
514
|
+
const { cssScope: s } = U;
|
|
471
515
|
return e.forEach(({ min: n, label: l }) => {
|
|
472
516
|
if (l === "xs")
|
|
473
517
|
for (let a = 0; a < t; a++)
|
|
474
|
-
i += `${
|
|
518
|
+
i += `${s} .${l}${t - a}{width:${parseFloat(((t - a) * 100 / t).toFixed(4))}%;}`;
|
|
475
519
|
else {
|
|
476
520
|
i += `@media(min-width:${n}px){`;
|
|
477
521
|
for (let a = 0; a < t; a++)
|
|
478
|
-
i += `${
|
|
522
|
+
i += `${s} .${l}${t - a}{width:${parseFloat(((t - a) * 100 / t).toFixed(4))}%;}`;
|
|
479
523
|
i += "}";
|
|
480
524
|
}
|
|
481
525
|
}), i;
|
|
482
|
-
},
|
|
526
|
+
}, He = (e) => {
|
|
483
527
|
let t = "";
|
|
484
|
-
const { cssScope: i, baseIncrement:
|
|
528
|
+
const { cssScope: i, baseIncrement: s } = U, n = [
|
|
485
529
|
"show{display:block}",
|
|
486
530
|
"hide{display:none}",
|
|
487
531
|
"d-flex{display:flex}",
|
|
@@ -518,64 +562,64 @@ const Re = (e, t) => {
|
|
|
518
562
|
], l = Array(12).fill();
|
|
519
563
|
return e.forEach(({ label: a, min: r }) => {
|
|
520
564
|
a !== "xs" && (t += `@media(min-width:${r}px){` + n.map((d) => `${i} .${a}u-${d}`).join("") + // w-grid columns and gap.
|
|
521
|
-
l.map((d, h) => `.w-grid.${a}u-columns${h + 1}{grid-template-columns:repeat(${h + 1},1fr);}`).join("") + l.map((d, h) => `.w-flex.${a}u-gap${h + 1},.w-grid.${a}u-gap${h + 1}{gap:${(h + 1) *
|
|
565
|
+
l.map((d, h) => `.w-grid.${a}u-columns${h + 1}{grid-template-columns:repeat(${h + 1},1fr);}`).join("") + l.map((d, h) => `.w-flex.${a}u-gap${h + 1},.w-grid.${a}u-gap${h + 1}{gap:${(h + 1) * s}px;}`).join("") + `.w-flex.${a}u-gap0,.w-flex.${a}u-gap0{gap:0}}`);
|
|
522
566
|
}), e.forEach(({ label: a, min: r, max: d }) => {
|
|
523
567
|
t += `@media (min-width:${r}px) and (max-width:${d}px){` + n.map((h) => `${i} .${a}-${h}`).join("") + // w-grid columns and gap.
|
|
524
|
-
l.map((h,
|
|
568
|
+
l.map((h, y) => `.w-grid.${a}-columns${y + 1}{grid-template-columns:repeat(${y + 1},1fr);}`).join("") + l.map((h, y) => `.w-flex.${a}-gap${y + 1},.w-grid.${a}-gap${y + 1}{gap:${(y + 1) * s}px;}`).join("") + `.w-flex.${a}-gap0,.w-flex.${a}-gap0{gap:0}}`;
|
|
525
569
|
}), e.forEach(({ label: a, max: r }) => {
|
|
526
570
|
a !== "xl" && (t += `@media (max-width:${r}px){` + n.map((d) => `${i} .${a}d-${d}`).join("") + // w-grid columns and gap.
|
|
527
|
-
l.map((d, h) => `.w-grid.${a}d-columns${h + 1}{grid-template-columns:repeat(${h + 1},1fr);}`).join("") + l.map((d, h) => `.w-flex.${a}d-gap${h + 1},.w-grid.${a}d-gap${h + 1}{gap:${(h + 1) *
|
|
571
|
+
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}}`);
|
|
528
572
|
}), t;
|
|
529
|
-
},
|
|
530
|
-
const t = window.innerWidth, i =
|
|
573
|
+
}, ge = (e) => {
|
|
574
|
+
const t = window.innerWidth, i = se.values.slice(0);
|
|
531
575
|
i.push(t), i.sort((n, l) => n - l);
|
|
532
|
-
const
|
|
533
|
-
|
|
534
|
-
name:
|
|
535
|
-
xs:
|
|
536
|
-
sm:
|
|
537
|
-
md:
|
|
538
|
-
lg:
|
|
539
|
-
xl:
|
|
576
|
+
const s = se.keys[i.indexOf(t)] || "xl";
|
|
577
|
+
s !== me && (me = s, e.breakpoint = {
|
|
578
|
+
name: s,
|
|
579
|
+
xs: s === "xs",
|
|
580
|
+
sm: s === "sm",
|
|
581
|
+
md: s === "md",
|
|
582
|
+
lg: s === "lg",
|
|
583
|
+
xl: s === "xl",
|
|
540
584
|
width: t
|
|
541
585
|
}), e.breakpoint.width = window.innerWidth;
|
|
542
|
-
},
|
|
586
|
+
}, Fe = (e) => {
|
|
543
587
|
const { config: t } = e;
|
|
544
|
-
if (
|
|
588
|
+
if (se = { keys: Object.keys(t.breakpoints), values: Object.values(t.breakpoints) }, !document.getElementById("wave-ui-styles")) {
|
|
545
589
|
const i = document.createElement("style");
|
|
546
|
-
i.id = "wave-ui-styles", i.innerHTML =
|
|
547
|
-
const
|
|
548
|
-
|
|
590
|
+
i.id = "wave-ui-styles", i.innerHTML = Ue(t);
|
|
591
|
+
const s = document.head.querySelectorAll('style,link[rel="stylesheet"]')[0];
|
|
592
|
+
s ? s.before(i) : document.head.appendChild(i);
|
|
549
593
|
}
|
|
550
|
-
|
|
551
|
-
},
|
|
594
|
+
ge(e), window.addEventListener("resize", () => ge(e));
|
|
595
|
+
}, je = (e, t, i) => {
|
|
552
596
|
if (!document.getElementById("wave-ui-colors")) {
|
|
553
|
-
const
|
|
554
|
-
|
|
555
|
-
const
|
|
556
|
-
|
|
597
|
+
const s = document.createElement("style");
|
|
598
|
+
s.id = "wave-ui-colors", s.innerHTML = Ne(e, t);
|
|
599
|
+
const n = document.head.querySelectorAll('style,link[rel="stylesheet"]')[0];
|
|
600
|
+
n ? n.before(s) : document.head.appendChild(s);
|
|
557
601
|
}
|
|
558
|
-
},
|
|
602
|
+
}, Ue = (e) => {
|
|
559
603
|
const t = Object.entries(e.breakpoints), i = t.map(([l, a], r) => {
|
|
560
604
|
const [, d = 0] = t[r - 1] || [];
|
|
561
605
|
return { label: l, min: d ? d + 1 : 0, max: a };
|
|
562
|
-
}),
|
|
563
|
-
|
|
606
|
+
}), s = getComputedStyle(document.documentElement);
|
|
607
|
+
U.cssScope = s.getPropertyValue("--w-css-scope"), U.baseIncrement = parseInt(s.getPropertyValue("--w-base-increment"));
|
|
564
608
|
let n = "";
|
|
565
|
-
return n +=
|
|
566
|
-
},
|
|
567
|
-
function
|
|
609
|
+
return n += De(i, e.css.grid), e.css.breakpointLayoutClasses && (n += He(i)), n;
|
|
610
|
+
}, qe = ["innerHTML"];
|
|
611
|
+
function Xe(e, t, i, s, n, l) {
|
|
568
612
|
const a = $("w-alert");
|
|
569
|
-
return
|
|
570
|
-
|
|
613
|
+
return o(), g(Ve, { to: ".w-app" }, [
|
|
614
|
+
T(ae, {
|
|
571
615
|
class: f(["w-notification-manager", { "w-notification-manager--left": l.conf.align === "left" }]),
|
|
572
616
|
tag: "div",
|
|
573
617
|
name: l.transition,
|
|
574
618
|
appear: ""
|
|
575
619
|
}, {
|
|
576
620
|
default: m(() => [
|
|
577
|
-
(
|
|
578
|
-
r._value ? (
|
|
621
|
+
(o(!0), u(k, null, x(l.notifications, (r) => (o(), u(k, null, [
|
|
622
|
+
r._value ? (o(), g(a, _({
|
|
579
623
|
class: "white--bg",
|
|
580
624
|
key: r._uid,
|
|
581
625
|
modelValue: r._value,
|
|
@@ -584,9 +628,9 @@ function Ae(e, t, i, o, n, l) {
|
|
|
584
628
|
ref_for: !0
|
|
585
629
|
}, l.notifProps(r)), {
|
|
586
630
|
default: m(() => [
|
|
587
|
-
|
|
631
|
+
w("div", {
|
|
588
632
|
innerHTML: r.message
|
|
589
|
-
}, null, 8,
|
|
633
|
+
}, null, 8, qe)
|
|
590
634
|
]),
|
|
591
635
|
_: 2
|
|
592
636
|
}, 1040, ["modelValue", "onUpdate:modelValue", "onClose"])) : p("", !0)
|
|
@@ -598,10 +642,10 @@ function Ae(e, t, i, o, n, l) {
|
|
|
598
642
|
}
|
|
599
643
|
const v = (e, t) => {
|
|
600
644
|
const i = e.__vccOpts || e;
|
|
601
|
-
for (const [
|
|
602
|
-
i[
|
|
645
|
+
for (const [s, n] of t)
|
|
646
|
+
i[s] = n;
|
|
603
647
|
return i;
|
|
604
|
-
},
|
|
648
|
+
}, Ye = {
|
|
605
649
|
name: "w-notification-manager",
|
|
606
650
|
computed: {
|
|
607
651
|
conf() {
|
|
@@ -619,11 +663,11 @@ const v = (e, t) => {
|
|
|
619
663
|
},
|
|
620
664
|
methods: {
|
|
621
665
|
notifProps(e) {
|
|
622
|
-
const { _value: t, _uid: i, message:
|
|
666
|
+
const { _value: t, _uid: i, message: s, timeout: n, ...l } = e;
|
|
623
667
|
return l.dismiss && (l.dismiss = !0), l;
|
|
624
668
|
}
|
|
625
669
|
}
|
|
626
|
-
},
|
|
670
|
+
}, Ge = /* @__PURE__ */ v(Ye, [["render", Xe]]);
|
|
627
671
|
var D;
|
|
628
672
|
const K = class K {
|
|
629
673
|
constructor() {
|
|
@@ -632,14 +676,14 @@ const K = class K {
|
|
|
632
676
|
H(this, "_uid");
|
|
633
677
|
// A unique ID for each notification.
|
|
634
678
|
H(this, "_notificationDefaults");
|
|
635
|
-
if (
|
|
679
|
+
if (Y(K, D)) return Y(K, D);
|
|
636
680
|
this.notifications = [], this._uid = 0, this._notificationDefaults = {
|
|
637
681
|
_uid: 0,
|
|
638
682
|
_value: !0,
|
|
639
683
|
message: "",
|
|
640
684
|
timeout: 4e3,
|
|
641
685
|
dismiss: !0
|
|
642
|
-
},
|
|
686
|
+
}, ie(K, D, this);
|
|
643
687
|
}
|
|
644
688
|
notify(...t) {
|
|
645
689
|
let i = {
|
|
@@ -648,10 +692,10 @@ const K = class K {
|
|
|
648
692
|
};
|
|
649
693
|
if (typeof t[0] == "object") i = { ...i, ...t[0] };
|
|
650
694
|
else {
|
|
651
|
-
const [
|
|
695
|
+
const [s, n, l] = t;
|
|
652
696
|
i = {
|
|
653
697
|
...i,
|
|
654
|
-
message:
|
|
698
|
+
message: s || "",
|
|
655
699
|
[n === void 0 ? "info" : n]: !0,
|
|
656
700
|
timeout: l || l === 0 ? parseFloat(l) : 4e3
|
|
657
701
|
};
|
|
@@ -662,29 +706,29 @@ const K = class K {
|
|
|
662
706
|
this.notifications = this.notifications.filter((i) => i._uid !== t);
|
|
663
707
|
}
|
|
664
708
|
};
|
|
665
|
-
D = new WeakMap(),
|
|
666
|
-
let
|
|
667
|
-
const
|
|
668
|
-
const
|
|
669
|
-
e.appendChild(
|
|
670
|
-
const n =
|
|
671
|
-
...
|
|
709
|
+
D = new WeakMap(), te(K, D);
|
|
710
|
+
let oe = K;
|
|
711
|
+
const Je = (e, t, i) => {
|
|
712
|
+
const s = document.createElement("div");
|
|
713
|
+
e.appendChild(s);
|
|
714
|
+
const n = Ie(Te({
|
|
715
|
+
...Ge,
|
|
672
716
|
inject: ["$waveui"]
|
|
673
717
|
})).provide("$waveui", i);
|
|
674
718
|
for (const l in t) {
|
|
675
719
|
const a = t[l];
|
|
676
720
|
n.component(a.name, { ...a, inject: ["$waveui"] });
|
|
677
721
|
}
|
|
678
|
-
n.mount(
|
|
722
|
+
n.mount(s), s.remove();
|
|
679
723
|
};
|
|
680
|
-
let
|
|
681
|
-
const
|
|
724
|
+
let be = !1;
|
|
725
|
+
const Qe = (e) => {
|
|
682
726
|
const t = window.matchMedia("(prefers-color-scheme: dark)");
|
|
683
727
|
e.preferredTheme = t.matches ? "dark" : "light", e.switchTheme(e.preferredTheme), t.addEventListener("change", (i) => {
|
|
684
728
|
e.preferredTheme = i.matches ? "dark" : "light", e.switchTheme(e.preferredTheme);
|
|
685
729
|
});
|
|
686
|
-
},
|
|
687
|
-
var i,
|
|
730
|
+
}, Ze = (e, t) => {
|
|
731
|
+
var i, s;
|
|
688
732
|
for (const n in t)
|
|
689
733
|
if ((i = e.props) != null && i[n])
|
|
690
734
|
e.props[n].default = t[n];
|
|
@@ -692,16 +736,16 @@ const De = (e) => {
|
|
|
692
736
|
let l = !1;
|
|
693
737
|
if (Array.isArray(e.mixins) && e.mixins.length) {
|
|
694
738
|
for (const a of e.mixins)
|
|
695
|
-
if ((
|
|
739
|
+
if ((s = a == null ? void 0 : a.props) != null && s[n]) {
|
|
696
740
|
a.props[n].default = t[n], l = !0;
|
|
697
741
|
break;
|
|
698
742
|
}
|
|
699
|
-
l ||
|
|
743
|
+
l || j(`Attempting to set a preset on a prop that doesn't exist: \`${e.name}.${n}\`.`);
|
|
700
744
|
continue;
|
|
701
745
|
}
|
|
702
746
|
}
|
|
703
747
|
};
|
|
704
|
-
var
|
|
748
|
+
var X;
|
|
705
749
|
const N = class N {
|
|
706
750
|
constructor(t, i = {}) {
|
|
707
751
|
// Exposed as a global object and also `app.provide`d.
|
|
@@ -732,19 +776,19 @@ const N = class N {
|
|
|
732
776
|
switchTheme(t, i = !1) {
|
|
733
777
|
var n, l;
|
|
734
778
|
this.theme = t, document.documentElement.setAttribute("data-theme", t), (l = (n = document.head.querySelector("#wave-ui-colors")) == null ? void 0 : n.remove) == null || l.call(n);
|
|
735
|
-
const
|
|
736
|
-
|
|
779
|
+
const s = this.config.colors[this.theme];
|
|
780
|
+
je(s, this.config.css.colorShadeCssVariables), this.colors = he(s, fe);
|
|
737
781
|
}
|
|
738
782
|
});
|
|
739
|
-
if (
|
|
740
|
-
if (this.$waveui._notificationManager = new
|
|
783
|
+
if (Y(N, X)) return;
|
|
784
|
+
if (this.$waveui._notificationManager = new oe(), i.theme || (i.theme = "light"), i.colors) {
|
|
741
785
|
const a = { ...i.colors };
|
|
742
786
|
i.colors.light || (i.colors.light = a), i.colors.dark || (i.colors.dark = a), i.colors = { light: i.colors.light, dark: i.colors.dark };
|
|
743
787
|
}
|
|
744
|
-
let { components:
|
|
745
|
-
n = this.$waveui.config =
|
|
746
|
-
const l =
|
|
747
|
-
t.config.globalProperties.$waveui = l, t.provide("$waveui", l), n.theme !== "auto" && (this.$waveui.colors =
|
|
788
|
+
let { components: s, ...n } = i;
|
|
789
|
+
n = this.$waveui.config = Ce(n), n.css.colorShades && Oe(n);
|
|
790
|
+
const l = Z(this.$waveui);
|
|
791
|
+
t.config.globalProperties.$waveui = l, t.provide("$waveui", l), n.theme !== "auto" && (this.$waveui.colors = he(n.colors[n.theme], fe));
|
|
748
792
|
}
|
|
749
793
|
static install(t, i = {}) {
|
|
750
794
|
var n;
|
|
@@ -759,44 +803,44 @@ const N = class N {
|
|
|
759
803
|
window.addEventListener("scroll", r);
|
|
760
804
|
}
|
|
761
805
|
});
|
|
762
|
-
const { components:
|
|
763
|
-
for (const l in
|
|
764
|
-
const a =
|
|
765
|
-
(n = i.presets) != null && n[a.name] &&
|
|
806
|
+
const { components: s = {} } = i || {};
|
|
807
|
+
for (const l in s) {
|
|
808
|
+
const a = s[l];
|
|
809
|
+
(n = i.presets) != null && n[a.name] && Ze(a, i.presets[a.name]), t.component(a.name, a);
|
|
766
810
|
}
|
|
767
811
|
t.mixin({
|
|
768
812
|
// Add a mixin to capture the first mounted hook, trigger the Wave UI init then unregister the mixin straight away.
|
|
769
813
|
beforeMount() {
|
|
770
|
-
if (!
|
|
771
|
-
|
|
772
|
-
const l =
|
|
773
|
-
r.classList.add("w-app"), a.theme === "auto" ?
|
|
814
|
+
if (!be) {
|
|
815
|
+
be = !0;
|
|
816
|
+
const l = Le("$waveui"), { config: a } = l, r = document.querySelector(a.on) || document.body;
|
|
817
|
+
r.classList.add("w-app"), a.theme === "auto" ? Qe(l) : l.switchTheme(a.theme, !0), Fe(l), Je(r, s, l), t._context.mixins.find((d) => d.mounted && delete d.mounted);
|
|
774
818
|
}
|
|
775
819
|
}
|
|
776
|
-
}), new N(t, i),
|
|
820
|
+
}), new N(t, i), ie(N, X, !0);
|
|
777
821
|
}
|
|
778
822
|
};
|
|
779
|
-
|
|
780
|
-
let
|
|
781
|
-
const
|
|
782
|
-
function
|
|
823
|
+
X = new WeakMap(), te(N, X, !1);
|
|
824
|
+
let q = N;
|
|
825
|
+
const et = ["aria-expanded"], tt = ["onClick", "onFocus", "onKeypress", "tabindex"], it = ["innerHTML"], lt = ["innerHTML"];
|
|
826
|
+
function st(e, t, i, s, n, l) {
|
|
783
827
|
const a = $("w-button"), r = $("w-transition-expand");
|
|
784
|
-
return
|
|
828
|
+
return o(), u("div", {
|
|
785
829
|
class: f(["w-accordion", l.accordionClasses])
|
|
786
830
|
}, [
|
|
787
|
-
(
|
|
831
|
+
(o(!0), u(k, null, x(e.accordionItems, (d, h) => (o(), u("div", {
|
|
788
832
|
class: f(["w-accordion__item", l.itemClasses(d)]),
|
|
789
833
|
key: h,
|
|
790
834
|
"aria-expanded": d._expanded ? "true" : "false"
|
|
791
835
|
}, [
|
|
792
|
-
|
|
836
|
+
w("div", {
|
|
793
837
|
class: f(["w-accordion__item-title", i.titleClass]),
|
|
794
|
-
onClick: (
|
|
795
|
-
onFocus: (
|
|
796
|
-
onKeypress: E((
|
|
838
|
+
onClick: (y) => !d._disabled && l.toggleItem(d, y),
|
|
839
|
+
onFocus: (y) => e.$emit("focus", l.getOriginalItem(d)),
|
|
840
|
+
onKeypress: E((y) => !d._disabled && l.toggleItem(d, y), ["enter"]),
|
|
797
841
|
tabindex: !d._disabled && 0
|
|
798
842
|
}, [
|
|
799
|
-
i.expandIcon && !i.expandIconRight ? (
|
|
843
|
+
i.expandIcon && !i.expandIconRight ? (o(), g(a, {
|
|
800
844
|
key: 0,
|
|
801
845
|
class: f(["w-accordion__expand-icon", { "w-accordion__expand-icon--expanded": d._expanded, "w-accordion__expand-icon--rotate90": i.expandIconRotate90 }]),
|
|
802
846
|
icon: d._expanded && i.collapseIcon || i.expandIcon,
|
|
@@ -804,9 +848,9 @@ function Xe(e, t, i, o, n, l) {
|
|
|
804
848
|
disabled: d._disabled || null,
|
|
805
849
|
tabindex: -1,
|
|
806
850
|
text: "",
|
|
807
|
-
onKeypress: t[0] || (t[0] =
|
|
851
|
+
onKeypress: t[0] || (t[0] = M(() => {
|
|
808
852
|
}, ["stop"])),
|
|
809
|
-
onClick:
|
|
853
|
+
onClick: M((y) => !d._disabled && l.toggleItem(d, y), ["stop"])
|
|
810
854
|
}, null, 8, ["icon", "icon-props", "disabled", "onClick", "class"])) : p("", !0),
|
|
811
855
|
e.$slots[`item-title.${d.id || h + 1}`] ? c(e.$slots, `item-title.${d.id || h + 1}`, {
|
|
812
856
|
key: 1,
|
|
@@ -819,28 +863,28 @@ function Xe(e, t, i, o, n, l) {
|
|
|
819
863
|
expanded: d._expanded,
|
|
820
864
|
index: h + 1
|
|
821
865
|
}, () => [
|
|
822
|
-
|
|
866
|
+
w("div", {
|
|
823
867
|
class: "grow",
|
|
824
868
|
innerHTML: d[i.itemTitleKey]
|
|
825
|
-
}, null, 8,
|
|
869
|
+
}, null, 8, it)
|
|
826
870
|
]),
|
|
827
|
-
i.expandIcon && i.expandIconRight ? (
|
|
871
|
+
i.expandIcon && i.expandIconRight ? (o(), g(a, {
|
|
828
872
|
key: 3,
|
|
829
873
|
class: f(["w-accordion__expand-icon", { "w-accordion__expand-icon--expanded": d._expanded, "w-accordion__expand-icon--rotate90": i.expandIconRotate90 }]),
|
|
830
874
|
icon: d._expanded && i.collapseIcon || i.expandIcon,
|
|
831
875
|
text: "",
|
|
832
|
-
onKeypress: t[1] || (t[1] =
|
|
876
|
+
onKeypress: t[1] || (t[1] = M(() => {
|
|
833
877
|
}, ["stop"])),
|
|
834
|
-
onClick:
|
|
878
|
+
onClick: M((y) => !d._disabled && l.toggleItem(d, y), ["stop"])
|
|
835
879
|
}, null, 8, ["icon", "onClick", "class"])) : p("", !0)
|
|
836
|
-
], 42,
|
|
837
|
-
|
|
880
|
+
], 42, tt),
|
|
881
|
+
T(r, {
|
|
838
882
|
y: "",
|
|
839
|
-
onAfterLeave: (
|
|
883
|
+
onAfterLeave: (y) => l.onEndOfCollapse(d),
|
|
840
884
|
duration: i.duration
|
|
841
885
|
}, {
|
|
842
886
|
default: m(() => [
|
|
843
|
-
d._expanded ? (
|
|
887
|
+
d._expanded ? (o(), u("div", {
|
|
844
888
|
key: 0,
|
|
845
889
|
class: f(["w-accordion__item-content", i.contentClass])
|
|
846
890
|
}, [
|
|
@@ -855,18 +899,18 @@ function Xe(e, t, i, o, n, l) {
|
|
|
855
899
|
expanded: d._expanded,
|
|
856
900
|
index: h + 1
|
|
857
901
|
}, () => [
|
|
858
|
-
|
|
902
|
+
w("div", {
|
|
859
903
|
innerHTML: d[i.itemContentKey]
|
|
860
|
-
}, null, 8,
|
|
904
|
+
}, null, 8, lt)
|
|
861
905
|
])
|
|
862
906
|
], 2)) : p("", !0)
|
|
863
907
|
]),
|
|
864
908
|
_: 2
|
|
865
909
|
}, 1032, ["onAfterLeave", "duration"])
|
|
866
|
-
], 10,
|
|
910
|
+
], 10, et))), 128))
|
|
867
911
|
], 2);
|
|
868
912
|
}
|
|
869
|
-
const
|
|
913
|
+
const ot = {
|
|
870
914
|
name: "w-accordion",
|
|
871
915
|
props: {
|
|
872
916
|
modelValue: { type: Array },
|
|
@@ -911,8 +955,8 @@ const Ye = {
|
|
|
911
955
|
},
|
|
912
956
|
methods: {
|
|
913
957
|
toggleItem(e, t) {
|
|
914
|
-
e._expanded = !e._expanded, this.expandSingle && this.accordionItems.forEach((
|
|
915
|
-
const i = this.accordionItems.map((
|
|
958
|
+
e._expanded = !e._expanded, this.expandSingle && this.accordionItems.forEach((s) => s._index !== e._index && (s._expanded = !1));
|
|
959
|
+
const i = this.accordionItems.map((s) => s._expanded || !1);
|
|
916
960
|
this.$emit("update:modelValue", i), this.$emit("input", i), this.$emit("item-expand", { item: e, expanded: e._expanded }), t.target.blur(), setTimeout(() => t.target.focus(), 300);
|
|
917
961
|
},
|
|
918
962
|
onEndOfCollapse(e) {
|
|
@@ -954,15 +998,15 @@ const Ye = {
|
|
|
954
998
|
deep: !0
|
|
955
999
|
}
|
|
956
1000
|
}
|
|
957
|
-
},
|
|
958
|
-
function
|
|
1001
|
+
}, at = /* @__PURE__ */ v(ot, [["render", st]]), nt = { class: "w-alert__content" };
|
|
1002
|
+
function rt(e, t, i, s, n, l) {
|
|
959
1003
|
const a = $("w-icon"), r = $("w-button");
|
|
960
|
-
return n.show ? (
|
|
1004
|
+
return n.show ? (o(), u("div", {
|
|
961
1005
|
key: 0,
|
|
962
1006
|
class: f(["w-alert", l.classes])
|
|
963
1007
|
}, [
|
|
964
|
-
l.type || i.icon || i.dismiss ? (
|
|
965
|
-
l.type || i.icon ? (
|
|
1008
|
+
l.type || i.icon || i.dismiss ? (o(), u(k, { key: 0 }, [
|
|
1009
|
+
l.type || i.icon ? (o(), g(a, {
|
|
966
1010
|
key: 0,
|
|
967
1011
|
class: "w-alert__icon mr2"
|
|
968
1012
|
}, {
|
|
@@ -971,10 +1015,10 @@ function Qe(e, t, i, o, n, l) {
|
|
|
971
1015
|
]),
|
|
972
1016
|
_: 1
|
|
973
1017
|
})) : p("", !0),
|
|
974
|
-
|
|
1018
|
+
w("div", nt, [
|
|
975
1019
|
c(e.$slots, "default")
|
|
976
1020
|
]),
|
|
977
|
-
i.dismiss ? (
|
|
1021
|
+
i.dismiss ? (o(), g(r, {
|
|
978
1022
|
key: 1,
|
|
979
1023
|
class: "w-alert__dismiss",
|
|
980
1024
|
onClick: t[0] || (t[0] = (d) => {
|
|
@@ -988,7 +1032,7 @@ function Qe(e, t, i, o, n, l) {
|
|
|
988
1032
|
], 64)) : c(e.$slots, "default", { key: 1 })
|
|
989
1033
|
], 2)) : p("", !0);
|
|
990
1034
|
}
|
|
991
|
-
const
|
|
1035
|
+
const dt = {
|
|
992
1036
|
name: "w-alert",
|
|
993
1037
|
props: {
|
|
994
1038
|
modelValue: { default: !0 },
|
|
@@ -1071,24 +1115,24 @@ const Ze = {
|
|
|
1071
1115
|
this.show = e;
|
|
1072
1116
|
}
|
|
1073
1117
|
}
|
|
1074
|
-
},
|
|
1075
|
-
function
|
|
1118
|
+
}, ut = /* @__PURE__ */ v(dt, [["render", rt]]), ht = { class: "w-autocomplete__selection" }, ct = ["innerHTML"], pt = ["innerHTML"], ft = ["value"], mt = ["onClick"], gt = ["innerHTML"], bt = ["innerHTML"];
|
|
1119
|
+
function yt(e, t, i, s, n, l) {
|
|
1076
1120
|
const a = $("w-button"), r = $("w-transition-slide-fade");
|
|
1077
|
-
return
|
|
1121
|
+
return o(), u("div", {
|
|
1078
1122
|
class: f(["w-autocomplete", l.classes]),
|
|
1079
1123
|
onClick: t[5] || (t[5] = (...d) => l.onClick && l.onClick(...d)),
|
|
1080
|
-
style:
|
|
1124
|
+
style: R(e.$attrs.style)
|
|
1081
1125
|
}, [
|
|
1082
|
-
e.selection.length ? (
|
|
1126
|
+
e.selection.length ? (o(!0), u(k, { key: 0 }, x(e.selection, (d, h) => (o(), u("div", ht, [
|
|
1083
1127
|
c(e.$slots, "selection", {
|
|
1084
1128
|
item: d,
|
|
1085
|
-
unselect: (
|
|
1129
|
+
unselect: (y) => l.unselectItem(y)
|
|
1086
1130
|
}, () => [
|
|
1087
|
-
|
|
1131
|
+
w("span", {
|
|
1088
1132
|
innerHTML: d[i.itemLabelKey]
|
|
1089
|
-
}, null, 8,
|
|
1090
|
-
|
|
1091
|
-
onClick:
|
|
1133
|
+
}, null, 8, ct),
|
|
1134
|
+
T(a, {
|
|
1135
|
+
onClick: M((y) => l.unselectItem(h), ["stop"]),
|
|
1092
1136
|
icon: "wi-cross",
|
|
1093
1137
|
xs: "",
|
|
1094
1138
|
text: "",
|
|
@@ -1096,19 +1140,19 @@ function rt(e, t, i, o, n, l) {
|
|
|
1096
1140
|
}, null, 8, ["onClick"])
|
|
1097
1141
|
])
|
|
1098
1142
|
]))), 256)) : p("", !0),
|
|
1099
|
-
!e.selection.length && !e.keywords && i.placeholder ? (
|
|
1143
|
+
!e.selection.length && !e.keywords && i.placeholder ? (o(), u("div", {
|
|
1100
1144
|
key: 1,
|
|
1101
1145
|
class: "w-autocomplete__placeholder",
|
|
1102
1146
|
innerHTML: i.placeholder
|
|
1103
|
-
}, null, 8,
|
|
1104
|
-
|
|
1147
|
+
}, null, 8, pt)) : p("", !0),
|
|
1148
|
+
w("input", _({
|
|
1105
1149
|
class: "w-autocomplete__input",
|
|
1106
1150
|
ref: "input",
|
|
1107
1151
|
value: e.keywords
|
|
1108
|
-
},
|
|
1109
|
-
|
|
1152
|
+
}, ne(l.inputEventListeners, !0), l.inputAttrs), null, 16, ft),
|
|
1153
|
+
T(r, null, {
|
|
1110
1154
|
default: m(() => [
|
|
1111
|
-
e.menuOpen ? (
|
|
1155
|
+
e.menuOpen ? (o(), u("ul", {
|
|
1112
1156
|
key: 0,
|
|
1113
1157
|
class: "w-autocomplete__menu",
|
|
1114
1158
|
ref: "menu",
|
|
@@ -1117,32 +1161,32 @@ function rt(e, t, i, o, n, l) {
|
|
|
1117
1161
|
onTouchstart: t[3] || (t[3] = (d) => e.menuIsBeingClicked = !0),
|
|
1118
1162
|
onTouchend: t[4] || (t[4] = (...d) => l.setEndOfMenuClick && l.setEndOfMenuClick(...d))
|
|
1119
1163
|
}, [
|
|
1120
|
-
(
|
|
1164
|
+
(o(!0), u(k, null, x(l.filteredItems, (d, h) => (o(), u("li", {
|
|
1121
1165
|
key: h,
|
|
1122
|
-
onClick:
|
|
1166
|
+
onClick: M((y) => (l.selectItem(d), e.$emit("item-click", d)), ["stop"]),
|
|
1123
1167
|
class: f({ highlighted: e.highlightedItem === d.uid })
|
|
1124
1168
|
}, [
|
|
1125
1169
|
c(e.$slots, "item", {
|
|
1126
1170
|
item: d,
|
|
1127
1171
|
highlighted: e.highlightedItem === d.uid
|
|
1128
1172
|
}, () => [
|
|
1129
|
-
|
|
1173
|
+
w("span", {
|
|
1130
1174
|
innerHTML: d[i.itemLabelKey]
|
|
1131
|
-
}, null, 8,
|
|
1175
|
+
}, null, 8, gt)
|
|
1132
1176
|
])
|
|
1133
|
-
], 10,
|
|
1134
|
-
l.filteredItems.length ? p("", !0) : (
|
|
1177
|
+
], 10, mt))), 128)),
|
|
1178
|
+
l.filteredItems.length ? p("", !0) : (o(), u("li", {
|
|
1135
1179
|
key: 0,
|
|
1136
1180
|
class: f(["w-autocomplete__no-match", { "w-autocomplete__no-match--default": !e.$slots.noMatch }])
|
|
1137
1181
|
}, [
|
|
1138
1182
|
c(e.$slots, "no-match", {}, () => [
|
|
1139
|
-
|
|
1183
|
+
w("div", {
|
|
1140
1184
|
class: "caption",
|
|
1141
1185
|
innerHTML: i.noMatch ?? "No match."
|
|
1142
|
-
}, null, 8,
|
|
1186
|
+
}, null, 8, bt)
|
|
1143
1187
|
])
|
|
1144
1188
|
], 2)),
|
|
1145
|
-
e.$slots["extra-item"] ? (
|
|
1189
|
+
e.$slots["extra-item"] ? (o(), u("li", {
|
|
1146
1190
|
key: 1,
|
|
1147
1191
|
class: f(["w-autocomplete__extra-item", { highlighted: e.highlightedItem === "extra-item" }]),
|
|
1148
1192
|
onClick: t[0] || (t[0] = (...d) => l.selectExtraItem && l.selectExtraItem(...d))
|
|
@@ -1155,7 +1199,7 @@ function rt(e, t, i, o, n, l) {
|
|
|
1155
1199
|
})
|
|
1156
1200
|
], 6);
|
|
1157
1201
|
}
|
|
1158
|
-
const
|
|
1202
|
+
const wt = {
|
|
1159
1203
|
name: "w-autocomplete",
|
|
1160
1204
|
inheritAttrs: !1,
|
|
1161
1205
|
// The attrs should only be added to the input not the wrapper.
|
|
@@ -1205,7 +1249,7 @@ const dt = {
|
|
|
1205
1249
|
},
|
|
1206
1250
|
filteredItems() {
|
|
1207
1251
|
let e = this.optimizedItemsForSearch;
|
|
1208
|
-
const t = (i) => !this.selection.find((
|
|
1252
|
+
const t = (i) => !this.selection.find((s) => s.uid === i.uid);
|
|
1209
1253
|
return this.keywords ? e = e.filter((i) => i.searchable.includes(this.normalizedKeywords) ? this.multiple && !this.allowDuplicates ? t(i) : !0 : !1) : this.multiple && !this.allowDuplicates && (e = e.filter(t)), e;
|
|
1210
1254
|
},
|
|
1211
1255
|
highlightedItemIndex() {
|
|
@@ -1291,13 +1335,13 @@ const dt = {
|
|
|
1291
1335
|
e.preventDefault(), this.highlightedItem === "extra-item" ? this.selectExtraItem() : this.highlightedItemIndex >= 0 && this.selectItem(this.filteredItems[this.highlightedItemIndex]);
|
|
1292
1336
|
else if ([38, 40].includes(e.keyCode)) {
|
|
1293
1337
|
e.preventDefault();
|
|
1294
|
-
let
|
|
1295
|
-
|
|
1338
|
+
let s = this.highlightedItemIndex;
|
|
1339
|
+
s === -1 ? s = e.keyCode === 38 ? t - 1 : 0 : s = (s + (e.keyCode === 38 ? -1 : 1) + t) % t, this.$slots["extra-item"] && s === t - 1 ? this.highlightedItem = "extra-item" : this.highlightedItem = ((i = this.filteredItems[s]) == null ? void 0 : i.uid) || 0;
|
|
1296
1340
|
const n = this.$refs.menu;
|
|
1297
1341
|
if (n)
|
|
1298
|
-
if (this.$slots["extra-item"] &&
|
|
1342
|
+
if (this.$slots["extra-item"] && s === t - 1) n.scrollTop = n.scrollHeight;
|
|
1299
1343
|
else {
|
|
1300
|
-
const { offsetHeight: l, offsetTop: a } = n.childNodes[
|
|
1344
|
+
const { offsetHeight: l, offsetTop: a } = n.childNodes[s] || {};
|
|
1301
1345
|
n.scrollTop + n.offsetHeight - l < a ? n.scrollTop = a - n.offsetHeight + l : n.scrollTop > a && (n.scrollTop = a);
|
|
1302
1346
|
}
|
|
1303
1347
|
} else !this.multiple && this.selection.length && e.key.length === 1 && e.preventDefault();
|
|
@@ -1334,17 +1378,17 @@ const dt = {
|
|
|
1334
1378
|
watch: {
|
|
1335
1379
|
modelValue(e) {
|
|
1336
1380
|
this.selection = [], e && (Array.isArray(e) ? e : [e]).forEach((i) => {
|
|
1337
|
-
this.selection.push(this.optimizedItemsForSearch.find((
|
|
1381
|
+
this.selection.push(this.optimizedItemsForSearch.find((s) => s[this.itemValueKey] === +i));
|
|
1338
1382
|
});
|
|
1339
1383
|
}
|
|
1340
1384
|
}
|
|
1341
|
-
},
|
|
1342
|
-
function
|
|
1343
|
-
return
|
|
1385
|
+
}, kt = /* @__PURE__ */ v(wt, [["render", yt]]), vt = { class: "w-app" };
|
|
1386
|
+
function Ct(e, t, i, s, n, l) {
|
|
1387
|
+
return o(), u("div", vt, [
|
|
1344
1388
|
c(e.$slots, "default")
|
|
1345
1389
|
]);
|
|
1346
1390
|
}
|
|
1347
|
-
const
|
|
1391
|
+
const St = {
|
|
1348
1392
|
name: "w-app",
|
|
1349
1393
|
// Keep the props for the API documentation.
|
|
1350
1394
|
props: {
|
|
@@ -1360,18 +1404,18 @@ const pt = {
|
|
|
1360
1404
|
textCenter: { type: Boolean },
|
|
1361
1405
|
textRight: { type: Boolean }
|
|
1362
1406
|
}
|
|
1363
|
-
},
|
|
1364
|
-
function
|
|
1365
|
-
return
|
|
1407
|
+
}, Bt = /* @__PURE__ */ v(St, [["render", Ct]]), _t = { class: "w-badge-wrap" };
|
|
1408
|
+
function $t(e, t, i, s, n, l) {
|
|
1409
|
+
return o(), u("div", _t, [
|
|
1366
1410
|
c(e.$slots, "default"),
|
|
1367
|
-
|
|
1411
|
+
T(P, {
|
|
1368
1412
|
name: `${i.transition}`
|
|
1369
1413
|
}, {
|
|
1370
1414
|
default: m(() => [
|
|
1371
|
-
i.modelValue ? (
|
|
1415
|
+
i.modelValue ? (o(), u("div", {
|
|
1372
1416
|
key: 0,
|
|
1373
1417
|
class: f(["w-badge", l.classes]),
|
|
1374
|
-
style:
|
|
1418
|
+
style: R(l.styles),
|
|
1375
1419
|
"aria-atomic": "true",
|
|
1376
1420
|
"aria-label": "Badge",
|
|
1377
1421
|
"aria-live": "polite",
|
|
@@ -1386,7 +1430,7 @@ function gt(e, t, i, o, n, l) {
|
|
|
1386
1430
|
}, 8, ["name"])
|
|
1387
1431
|
]);
|
|
1388
1432
|
}
|
|
1389
|
-
const
|
|
1433
|
+
const Vt = {
|
|
1390
1434
|
name: "w-badge",
|
|
1391
1435
|
props: {
|
|
1392
1436
|
modelValue: { default: !0 },
|
|
@@ -1449,19 +1493,19 @@ const bt = {
|
|
|
1449
1493
|
return this.forcedSize && `font-size: ${this.forcedSize}`;
|
|
1450
1494
|
}
|
|
1451
1495
|
}
|
|
1452
|
-
},
|
|
1453
|
-
function
|
|
1496
|
+
}, It = /* @__PURE__ */ v(Vt, [["render", $t]]), Tt = ["innerHTML"];
|
|
1497
|
+
function Lt(e, t, i, s, n, l) {
|
|
1454
1498
|
const a = $("w-icon");
|
|
1455
|
-
return
|
|
1499
|
+
return o(), u("div", {
|
|
1456
1500
|
class: f(["w-breadcrumbs", l.classes])
|
|
1457
1501
|
}, [
|
|
1458
|
-
(
|
|
1459
|
-
d && e.$slots.separator ? (
|
|
1502
|
+
(o(!0), u(k, null, x(i.items, (r, d) => (o(), u(k, null, [
|
|
1503
|
+
d && e.$slots.separator ? (o(), u("span", {
|
|
1460
1504
|
class: f(["w-breadcrumbs__separator", i.separatorColor]),
|
|
1461
1505
|
key: `${d}a`
|
|
1462
1506
|
}, [
|
|
1463
1507
|
c(e.$slots, "separator", { index: d })
|
|
1464
|
-
], 2)) : d ? (
|
|
1508
|
+
], 2)) : d ? (o(), g(a, {
|
|
1465
1509
|
class: f(["w-breadcrumbs__separator", i.separatorColor]),
|
|
1466
1510
|
key: `${d}b`
|
|
1467
1511
|
}, {
|
|
@@ -1470,8 +1514,8 @@ function kt(e, t, i, o, n, l) {
|
|
|
1470
1514
|
]),
|
|
1471
1515
|
_: 2
|
|
1472
1516
|
}, 1032, ["class"])) : p("", !0),
|
|
1473
|
-
r[i.itemRouteKey] && (d < i.items.length - 1 || i.linkLastItem) ? (
|
|
1474
|
-
e.$slots.item ? (
|
|
1517
|
+
r[i.itemRouteKey] && (d < i.items.length - 1 || i.linkLastItem) ? (o(), u(k, { key: 2 }, [
|
|
1518
|
+
e.$slots.item ? (o(), g(L(l.hasRouter ? "router-link" : "a"), {
|
|
1475
1519
|
class: f(["w-breadcrumbs__item", i.color || null]),
|
|
1476
1520
|
key: `${d}c`,
|
|
1477
1521
|
to: l.hasRouter && r[i.itemRouteKey],
|
|
@@ -1485,7 +1529,7 @@ function kt(e, t, i, o, n, l) {
|
|
|
1485
1529
|
})
|
|
1486
1530
|
]),
|
|
1487
1531
|
_: 2
|
|
1488
|
-
}, 1032, ["to", "href", "class"])) : (
|
|
1532
|
+
}, 1032, ["to", "href", "class"])) : (o(), g(L(l.hasRouter ? "router-link" : "a"), {
|
|
1489
1533
|
class: f(["w-breadcrumbs__item", i.color || null]),
|
|
1490
1534
|
key: `${d}d`,
|
|
1491
1535
|
to: l.hasRouter && r[i.itemRouteKey],
|
|
@@ -1497,14 +1541,14 @@ function kt(e, t, i, o, n, l) {
|
|
|
1497
1541
|
item: r,
|
|
1498
1542
|
index: d + 1,
|
|
1499
1543
|
isLast: d === i.items.length - 1
|
|
1500
|
-
}) : (
|
|
1544
|
+
}) : (o(), u("span", {
|
|
1501
1545
|
key: `${d}f`,
|
|
1502
1546
|
innerHTML: r[i.itemLabelKey]
|
|
1503
|
-
}, null, 8,
|
|
1547
|
+
}, null, 8, Tt))
|
|
1504
1548
|
], 64))), 256))
|
|
1505
1549
|
], 2);
|
|
1506
1550
|
}
|
|
1507
|
-
const
|
|
1551
|
+
const Rt = {
|
|
1508
1552
|
name: "w-breadcrumbs",
|
|
1509
1553
|
props: {
|
|
1510
1554
|
items: { type: Array, required: !0 },
|
|
@@ -1535,11 +1579,11 @@ const vt = {
|
|
|
1535
1579
|
};
|
|
1536
1580
|
}
|
|
1537
1581
|
}
|
|
1538
|
-
},
|
|
1582
|
+
}, xt = /* @__PURE__ */ v(Rt, [["render", Lt]]), Pt = {
|
|
1539
1583
|
key: 0,
|
|
1540
1584
|
class: "w-button__loader"
|
|
1541
|
-
},
|
|
1542
|
-
/* @__PURE__ */
|
|
1585
|
+
}, Ot = /* @__PURE__ */ w("svg", { viewBox: "0 0 40 40" }, [
|
|
1586
|
+
/* @__PURE__ */ w("circle", {
|
|
1543
1587
|
cx: "20",
|
|
1544
1588
|
cy: "20",
|
|
1545
1589
|
r: "18",
|
|
@@ -1549,26 +1593,26 @@ const vt = {
|
|
|
1549
1593
|
"stroke-linecap": "round"
|
|
1550
1594
|
})
|
|
1551
1595
|
], -1);
|
|
1552
|
-
function
|
|
1596
|
+
function Mt(e, t, i, s, n, l) {
|
|
1553
1597
|
const a = $("w-icon");
|
|
1554
|
-
return
|
|
1598
|
+
return o(), g(L(!i.disabled && i.route ? "a" : "button"), _({
|
|
1555
1599
|
class: ["w-button", l.classes],
|
|
1556
1600
|
type: !i.route && i.type,
|
|
1557
|
-
href: i.route && (l.externalLink ? i.route : l.resolvedRoute) || null,
|
|
1601
|
+
href: !i.disabled && i.route && (l.externalLink ? i.route : l.resolvedRoute) || null,
|
|
1558
1602
|
disabled: !!i.disabled || null
|
|
1559
1603
|
}, l.attrs, { style: l.styles }), {
|
|
1560
1604
|
default: m(() => [
|
|
1561
|
-
i.icon ? (
|
|
1605
|
+
i.icon ? (o(), g(a, le(_({ key: 0 }, i.iconProps || {})), {
|
|
1562
1606
|
default: m(() => [
|
|
1563
1607
|
S(C(i.icon), 1)
|
|
1564
1608
|
]),
|
|
1565
1609
|
_: 1
|
|
1566
1610
|
}, 16)) : c(e.$slots, "default", { key: 1 }),
|
|
1567
|
-
|
|
1611
|
+
T(P, { name: "scale-fade" }, {
|
|
1568
1612
|
default: m(() => [
|
|
1569
|
-
i.loading ? (
|
|
1613
|
+
i.loading ? (o(), u("div", Pt, [
|
|
1570
1614
|
c(e.$slots, "loading", {}, () => [
|
|
1571
|
-
|
|
1615
|
+
Ot
|
|
1572
1616
|
])
|
|
1573
1617
|
])) : p("", !0)
|
|
1574
1618
|
]),
|
|
@@ -1578,7 +1622,7 @@ function _t(e, t, i, o, n, l) {
|
|
|
1578
1622
|
_: 3
|
|
1579
1623
|
}, 16, ["type", "href", "class", "disabled", "style"]);
|
|
1580
1624
|
}
|
|
1581
|
-
const
|
|
1625
|
+
const zt = {
|
|
1582
1626
|
// Fully handle the attrs and listeners manually for the case of a router link that has both a
|
|
1583
1627
|
// route and onClick.
|
|
1584
1628
|
inheritAttrs: !1,
|
|
@@ -1629,13 +1673,13 @@ const $t = {
|
|
|
1629
1673
|
return this.hasRouter ? this.$router.resolve(this.route).href : this.route;
|
|
1630
1674
|
},
|
|
1631
1675
|
attrs() {
|
|
1632
|
-
const e = {
|
|
1676
|
+
const e = this.route && this.hasRouter && !this.forceLink && !this.externalLink, t = (i) => {
|
|
1677
|
+
this.$attrs.onClick && this.$attrs.onClick(i), this.$router.push(this.route), i.stopPropagation(), i.preventDefault();
|
|
1678
|
+
};
|
|
1679
|
+
return {
|
|
1633
1680
|
...this.$attrs,
|
|
1634
|
-
onClick: (t
|
|
1635
|
-
this.$attrs.onClick && this.$attrs.onClick(t), this.$router.push(this.route), t.stopPropagation(), t.preventDefault();
|
|
1636
|
-
}
|
|
1681
|
+
onClick: !this.disabled && (e ? t : this.$attrs.onClick)
|
|
1637
1682
|
};
|
|
1638
|
-
return this.route && this.hasRouter && !this.forceLink && !this.externalLink ? e : this.$attrs;
|
|
1639
1683
|
},
|
|
1640
1684
|
size() {
|
|
1641
1685
|
return this.xs && "xs" || this.sm && "sm" || this.lg && "lg" || this.xl && "xl" || "md";
|
|
@@ -1679,12 +1723,12 @@ const $t = {
|
|
|
1679
1723
|
};
|
|
1680
1724
|
}
|
|
1681
1725
|
}
|
|
1682
|
-
},
|
|
1683
|
-
function
|
|
1726
|
+
}, Et = /* @__PURE__ */ v(zt, [["render", Mt]]), At = ["innerHTML"];
|
|
1727
|
+
function Wt(e, t, i, s, n, l) {
|
|
1684
1728
|
const a = $("button-partial");
|
|
1685
|
-
return i.tooltip ? (
|
|
1729
|
+
return i.tooltip ? (o(), g(L("w-tooltip"), le(_({ key: 0 }, i.tooltipProps)), {
|
|
1686
1730
|
activator: m(({ on: r }) => [
|
|
1687
|
-
|
|
1731
|
+
T(a, _(l.buttonProps, ne(r)), {
|
|
1688
1732
|
default: m(() => [
|
|
1689
1733
|
c(e.$slots, "default")
|
|
1690
1734
|
]),
|
|
@@ -1692,10 +1736,10 @@ function Tt(e, t, i, o, n, l) {
|
|
|
1692
1736
|
}, 1040)
|
|
1693
1737
|
]),
|
|
1694
1738
|
default: m(() => [
|
|
1695
|
-
|
|
1739
|
+
w("div", { innerHTML: i.tooltip }, null, 8, At)
|
|
1696
1740
|
]),
|
|
1697
1741
|
_: 3
|
|
1698
|
-
}, 16)) : (
|
|
1742
|
+
}, 16)) : (o(), g(a, le(_({ key: 1 }, l.buttonProps)), {
|
|
1699
1743
|
loading: m(() => [
|
|
1700
1744
|
c(e.$slots, "loading")
|
|
1701
1745
|
]),
|
|
@@ -1705,7 +1749,7 @@ function Tt(e, t, i, o, n, l) {
|
|
|
1705
1749
|
_: 3
|
|
1706
1750
|
}, 16));
|
|
1707
1751
|
}
|
|
1708
|
-
const
|
|
1752
|
+
const Kt = {
|
|
1709
1753
|
name: "w-button",
|
|
1710
1754
|
inheritAttrs: !1,
|
|
1711
1755
|
// The attrs are only bound to the button-partial, not the root.
|
|
@@ -1748,7 +1792,7 @@ const Lt = {
|
|
|
1748
1792
|
lg: { type: Boolean },
|
|
1749
1793
|
xl: { type: Boolean }
|
|
1750
1794
|
},
|
|
1751
|
-
components: { ButtonPartial:
|
|
1795
|
+
components: { ButtonPartial: Et },
|
|
1752
1796
|
emits: [],
|
|
1753
1797
|
computed: {
|
|
1754
1798
|
buttonProps() {
|
|
@@ -1756,23 +1800,23 @@ const Lt = {
|
|
|
1756
1800
|
return { ...i, ...this.$attrs };
|
|
1757
1801
|
}
|
|
1758
1802
|
}
|
|
1759
|
-
},
|
|
1760
|
-
function
|
|
1803
|
+
}, Nt = /* @__PURE__ */ v(Kt, [["render", Wt]]), A = (e = {}) => (typeof e == "string" ? e = { [e]: !0 } : Array.isArray(e) && (e = { [e.join(" ")]: !0 }), e), Dt = ["innerHTML"];
|
|
1804
|
+
function Ht(e, t, i, s, n, l) {
|
|
1761
1805
|
const a = $("w-image");
|
|
1762
|
-
return
|
|
1806
|
+
return o(), u("div", {
|
|
1763
1807
|
class: f(["w-card", l.classes])
|
|
1764
1808
|
}, [
|
|
1765
|
-
e.$slots.title ? (
|
|
1809
|
+
e.$slots.title ? (o(), u("div", {
|
|
1766
1810
|
key: 0,
|
|
1767
1811
|
class: f(["w-card__title", { "w-card__title--has-toolbar": e.$slots.title && l.titleHasToolbar, ...l.titleClasses }])
|
|
1768
1812
|
}, [
|
|
1769
1813
|
c(e.$slots, "title")
|
|
1770
|
-
], 2)) : i.title ? (
|
|
1814
|
+
], 2)) : i.title ? (o(), u("div", {
|
|
1771
1815
|
key: 1,
|
|
1772
1816
|
class: f(["w-card__title", { "w-card__title--has-toolbar": e.$slots.title && l.titleHasToolbar, ...l.titleClasses }]),
|
|
1773
1817
|
innerHTML: i.title
|
|
1774
|
-
}, null, 10,
|
|
1775
|
-
i.image ? (
|
|
1818
|
+
}, null, 10, Dt)) : p("", !0),
|
|
1819
|
+
i.image ? (o(), g(a, _({
|
|
1776
1820
|
key: 2,
|
|
1777
1821
|
class: "w-card__image",
|
|
1778
1822
|
src: i.image
|
|
@@ -1782,12 +1826,12 @@ function Ot(e, t, i, o, n, l) {
|
|
|
1782
1826
|
]),
|
|
1783
1827
|
_: 3
|
|
1784
1828
|
}, 16, ["src"])) : p("", !0),
|
|
1785
|
-
|
|
1829
|
+
w("div", {
|
|
1786
1830
|
class: f(["w-card__content", l.contentClasses])
|
|
1787
1831
|
}, [
|
|
1788
1832
|
c(e.$slots, "default")
|
|
1789
1833
|
], 2),
|
|
1790
|
-
e.$slots.actions ? (
|
|
1834
|
+
e.$slots.actions ? (o(), u("div", {
|
|
1791
1835
|
key: 3,
|
|
1792
1836
|
class: f(["w-card__actions", { "w-card__actions--has-toolbar": l.actionsHasToolbar }])
|
|
1793
1837
|
}, [
|
|
@@ -1795,7 +1839,7 @@ function Ot(e, t, i, o, n, l) {
|
|
|
1795
1839
|
], 2)) : p("", !0)
|
|
1796
1840
|
], 2);
|
|
1797
1841
|
}
|
|
1798
|
-
const
|
|
1842
|
+
const Ft = {
|
|
1799
1843
|
name: "w-card",
|
|
1800
1844
|
props: {
|
|
1801
1845
|
color: { type: String },
|
|
@@ -1846,7 +1890,7 @@ const xt = {
|
|
|
1846
1890
|
};
|
|
1847
1891
|
}
|
|
1848
1892
|
}
|
|
1849
|
-
},
|
|
1893
|
+
}, jt = /* @__PURE__ */ v(Ft, [["render", Ht]]), z = {
|
|
1850
1894
|
inject: {
|
|
1851
1895
|
// Used in each form component to determine whether to use the w-form-element wrap or not.
|
|
1852
1896
|
// So, if a form component is in a form, use the w-form-element wrap.
|
|
@@ -1893,13 +1937,13 @@ const xt = {
|
|
|
1893
1937
|
this.$refs.formEl.validate(this);
|
|
1894
1938
|
}
|
|
1895
1939
|
}
|
|
1896
|
-
},
|
|
1897
|
-
/* @__PURE__ */
|
|
1898
|
-
], -1),
|
|
1899
|
-
|
|
1900
|
-
],
|
|
1901
|
-
function
|
|
1902
|
-
return
|
|
1940
|
+
}, Ut = ["id", "name", "checked", "disabled", "required", "tabindex", "aria-checked"], qt = ["for"], Xt = ["for", "innerHTML"], Yt = /* @__PURE__ */ w("svg", { viewBox: "-0.5 0 12 10" }, [
|
|
1941
|
+
/* @__PURE__ */ w("polyline", { points: "1 5 4 8 10 2" })
|
|
1942
|
+
], -1), Gt = [
|
|
1943
|
+
Yt
|
|
1944
|
+
], Jt = ["for"], Qt = ["for", "innerHTML"];
|
|
1945
|
+
function Zt(e, t, i, s, n, l) {
|
|
1946
|
+
return o(), g(L(e.formRegister && !l.wCheckboxes ? "w-form-element" : "div"), _({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: n.isChecked, disabled: e.isDisabled, readonly: e.isReadonly }, {
|
|
1903
1947
|
valid: e.valid,
|
|
1904
1948
|
"onUpdate:valid": t[5] || (t[5] = (a) => e.valid = a),
|
|
1905
1949
|
onReset: t[6] || (t[6] = (a) => {
|
|
@@ -1908,7 +1952,7 @@ function Ht(e, t, i, o, n, l) {
|
|
|
1908
1952
|
class: l.classes
|
|
1909
1953
|
}), {
|
|
1910
1954
|
default: m(() => [
|
|
1911
|
-
|
|
1955
|
+
w("input", {
|
|
1912
1956
|
ref: "input",
|
|
1913
1957
|
id: `w-checkbox--${e._.uid}`,
|
|
1914
1958
|
type: "checkbox",
|
|
@@ -1923,9 +1967,9 @@ function Ht(e, t, i, o, n, l) {
|
|
|
1923
1967
|
onKeypress: t[3] || (t[3] = E((...a) => l.onInput && l.onInput(...a), ["enter"])),
|
|
1924
1968
|
"aria-checked": n.isChecked || "false",
|
|
1925
1969
|
role: "checkbox"
|
|
1926
|
-
}, null, 40,
|
|
1927
|
-
l.hasLabel && i.labelOnLeft ? (
|
|
1928
|
-
e.$slots.default ? (
|
|
1970
|
+
}, null, 40, Ut),
|
|
1971
|
+
l.hasLabel && i.labelOnLeft ? (o(), u(k, { key: 0 }, [
|
|
1972
|
+
e.$slots.default ? (o(), u("label", {
|
|
1929
1973
|
key: 0,
|
|
1930
1974
|
class: f(["w-checkbox__label w-form-el-shakable pr2", e.labelClasses]),
|
|
1931
1975
|
for: `w-checkbox--${e._.uid}`
|
|
@@ -1933,21 +1977,21 @@ function Ht(e, t, i, o, n, l) {
|
|
|
1933
1977
|
c(e.$slots, "default", {}, () => [
|
|
1934
1978
|
S(C(i.label), 1)
|
|
1935
1979
|
])
|
|
1936
|
-
], 10,
|
|
1980
|
+
], 10, qt)) : i.label ? (o(), u("label", {
|
|
1937
1981
|
key: 1,
|
|
1938
1982
|
class: f(["w-checkbox__label w-form-el-shakable pr2", e.labelClasses]),
|
|
1939
1983
|
for: `w-checkbox--${e._.uid}`,
|
|
1940
1984
|
innerHTML: i.label
|
|
1941
|
-
}, null, 10,
|
|
1985
|
+
}, null, 10, Xt)) : p("", !0)
|
|
1942
1986
|
], 64)) : p("", !0),
|
|
1943
|
-
|
|
1987
|
+
w("div", {
|
|
1944
1988
|
class: f(["w-checkbox__input", this.color]),
|
|
1945
1989
|
onClick: t[4] || (t[4] = (a) => {
|
|
1946
1990
|
e.$refs.input.focus(), e.$refs.input.click();
|
|
1947
1991
|
})
|
|
1948
|
-
},
|
|
1949
|
-
l.hasLabel && !i.labelOnLeft ? (
|
|
1950
|
-
e.$slots.default ? (
|
|
1992
|
+
}, Gt, 2),
|
|
1993
|
+
l.hasLabel && !i.labelOnLeft ? (o(), u(k, { key: 1 }, [
|
|
1994
|
+
e.$slots.default ? (o(), u("label", {
|
|
1951
1995
|
key: 0,
|
|
1952
1996
|
class: f(["w-checkbox__label w-form-el-shakable pl2", e.labelClasses]),
|
|
1953
1997
|
for: `w-checkbox--${e._.uid}`
|
|
@@ -1955,20 +1999,20 @@ function Ht(e, t, i, o, n, l) {
|
|
|
1955
1999
|
c(e.$slots, "default", {}, () => [
|
|
1956
2000
|
S(C(i.label), 1)
|
|
1957
2001
|
])
|
|
1958
|
-
], 10,
|
|
2002
|
+
], 10, Jt)) : i.label ? (o(), u("label", {
|
|
1959
2003
|
key: 1,
|
|
1960
2004
|
class: f(["w-checkbox__label w-form-el-shakable pl2", e.labelClasses]),
|
|
1961
2005
|
for: `w-checkbox--${e._.uid}`,
|
|
1962
2006
|
innerHTML: i.label
|
|
1963
|
-
}, null, 10,
|
|
2007
|
+
}, null, 10, Qt)) : p("", !0)
|
|
1964
2008
|
], 64)) : p("", !0)
|
|
1965
2009
|
]),
|
|
1966
2010
|
_: 3
|
|
1967
2011
|
}, 16, ["valid", "class"]);
|
|
1968
2012
|
}
|
|
1969
|
-
const
|
|
2013
|
+
const ei = {
|
|
1970
2014
|
name: "w-checkbox",
|
|
1971
|
-
mixins: [
|
|
2015
|
+
mixins: [z],
|
|
1972
2016
|
inject: {
|
|
1973
2017
|
wCheckboxes: { default: null }
|
|
1974
2018
|
},
|
|
@@ -2033,10 +2077,10 @@ const Ft = {
|
|
|
2033
2077
|
this.isChecked = e;
|
|
2034
2078
|
}
|
|
2035
2079
|
}
|
|
2036
|
-
},
|
|
2037
|
-
function
|
|
2080
|
+
}, ti = /* @__PURE__ */ v(ei, [["render", Zt]]), ii = ["innerHTML"];
|
|
2081
|
+
function li(e, t, i, s, n, l) {
|
|
2038
2082
|
const a = $("w-checkbox");
|
|
2039
|
-
return
|
|
2083
|
+
return o(), g(L(e.formRegister ? "w-form-element" : "div"), _({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: l.checkboxItems.some((r) => r._isChecked), disabled: e.isDisabled }, {
|
|
2040
2084
|
valid: e.valid,
|
|
2041
2085
|
"onUpdate:valid": t[1] || (t[1] = (r) => e.valid = r),
|
|
2042
2086
|
onReset: l.reset,
|
|
@@ -2045,7 +2089,7 @@ function qt(e, t, i, o, n, l) {
|
|
|
2045
2089
|
class: l.classes
|
|
2046
2090
|
}), {
|
|
2047
2091
|
default: m(() => [
|
|
2048
|
-
(
|
|
2092
|
+
(o(!0), u(k, null, x(l.checkboxItems, (r, d) => (o(), g(a, _({
|
|
2049
2093
|
key: d,
|
|
2050
2094
|
"model-value": r._isChecked,
|
|
2051
2095
|
"onUpdate:modelValue": (h) => l.toggleCheck(r, h),
|
|
@@ -2064,10 +2108,10 @@ function qt(e, t, i, o, n, l) {
|
|
|
2064
2108
|
checked: !!r._isChecked,
|
|
2065
2109
|
index: d + 1,
|
|
2066
2110
|
innerHTML: r.label
|
|
2067
|
-
}) : r.label ? (
|
|
2111
|
+
}) : r.label ? (o(), u("div", {
|
|
2068
2112
|
key: 1,
|
|
2069
2113
|
innerHTML: r.label
|
|
2070
|
-
}, null, 8,
|
|
2114
|
+
}, null, 8, ii)) : p("", !0)
|
|
2071
2115
|
]),
|
|
2072
2116
|
_: 2
|
|
2073
2117
|
}, 1040, ["model-value", "onUpdate:modelValue", "name", "disabled", "readonly", "class"]))), 128))
|
|
@@ -2075,9 +2119,9 @@ function qt(e, t, i, o, n, l) {
|
|
|
2075
2119
|
_: 3
|
|
2076
2120
|
}, 16, ["valid", "onReset", "column", "wrap", "class"]);
|
|
2077
2121
|
}
|
|
2078
|
-
const
|
|
2122
|
+
const si = {
|
|
2079
2123
|
name: "w-checkboxes",
|
|
2080
|
-
mixins: [
|
|
2124
|
+
mixins: [z],
|
|
2081
2125
|
props: {
|
|
2082
2126
|
items: { type: Array, required: !0 },
|
|
2083
2127
|
// All the possible options.
|
|
@@ -2106,7 +2150,7 @@ const Xt = {
|
|
|
2106
2150
|
checkboxItems() {
|
|
2107
2151
|
return (this.items || []).map((e, t) => {
|
|
2108
2152
|
const i = e[this.itemValueKey] === void 0 ? e[this.itemLabelKey] || t : e[this.itemValueKey];
|
|
2109
|
-
return
|
|
2153
|
+
return Z({
|
|
2110
2154
|
...e,
|
|
2111
2155
|
label: e[this.itemLabelKey],
|
|
2112
2156
|
_index: t,
|
|
@@ -2130,7 +2174,7 @@ const Xt = {
|
|
|
2130
2174
|
},
|
|
2131
2175
|
toggleCheck(e, t) {
|
|
2132
2176
|
e._isChecked = t;
|
|
2133
|
-
const i = this.checkboxItems.filter((
|
|
2177
|
+
const i = this.checkboxItems.filter((s) => s._isChecked).map((s) => this.returnValues ? s.returnValue : s.value);
|
|
2134
2178
|
this.$emit("update:modelValue", i), this.$emit("input", i);
|
|
2135
2179
|
},
|
|
2136
2180
|
// Return the original item (so there is no `_index`, etc.).
|
|
@@ -2138,15 +2182,15 @@ const Xt = {
|
|
|
2138
2182
|
return this.items[e._index];
|
|
2139
2183
|
}
|
|
2140
2184
|
}
|
|
2141
|
-
},
|
|
2142
|
-
function
|
|
2143
|
-
const a = $("w-button"), r = $("w-flex"), d = $("w-menu"), h =
|
|
2144
|
-
return
|
|
2185
|
+
}, oi = /* @__PURE__ */ v(si, [["render", li]]);
|
|
2186
|
+
function ai(e, t, i, s, n, l) {
|
|
2187
|
+
const a = $("w-button"), r = $("w-flex"), d = $("w-menu"), h = ke("focus");
|
|
2188
|
+
return o(), g(d, _({
|
|
2145
2189
|
modelValue: e.showPopup,
|
|
2146
|
-
"onUpdate:modelValue": t[2] || (t[2] = (
|
|
2190
|
+
"onUpdate:modelValue": t[2] || (t[2] = (y) => e.showPopup = y)
|
|
2147
2191
|
}, l.wMenuProps), {
|
|
2148
|
-
activator: m(({ on:
|
|
2149
|
-
|
|
2192
|
+
activator: m(({ on: y }) => [
|
|
2193
|
+
T(a, _({ class: "w-confirm" }, { ...e.$attrs, ...l.buttonProps }, ne(i.disablePrompt ? {} : { ...y })), {
|
|
2150
2194
|
default: m(() => [
|
|
2151
2195
|
c(e.$slots, "default")
|
|
2152
2196
|
]),
|
|
@@ -2154,25 +2198,25 @@ function Gt(e, t, i, o, n, l) {
|
|
|
2154
2198
|
}, 1040)
|
|
2155
2199
|
]),
|
|
2156
2200
|
default: m(() => [
|
|
2157
|
-
|
|
2201
|
+
T(r, {
|
|
2158
2202
|
column: !i.inline,
|
|
2159
2203
|
"align-center": ""
|
|
2160
2204
|
}, {
|
|
2161
2205
|
default: m(() => [
|
|
2162
|
-
|
|
2206
|
+
w("div", null, [
|
|
2163
2207
|
c(e.$slots, "question", {}, () => [
|
|
2164
2208
|
S(C(i.question), 1)
|
|
2165
2209
|
])
|
|
2166
2210
|
]),
|
|
2167
|
-
|
|
2211
|
+
w("div", {
|
|
2168
2212
|
class: f(["w-flex justify-end", i.inline ? "ml2" : "mt2"])
|
|
2169
2213
|
}, [
|
|
2170
|
-
i.cancel !== !1 ? (
|
|
2214
|
+
i.cancel !== !1 ? (o(), g(a, _({
|
|
2171
2215
|
key: 0,
|
|
2172
2216
|
class: "mr2"
|
|
2173
2217
|
}, l.cancelButtonProps, {
|
|
2174
2218
|
"bg-color": (l.cancelButton || {}).bgColor || "error",
|
|
2175
|
-
onKeyup: t[0] || (t[0] = E((
|
|
2219
|
+
onKeyup: t[0] || (t[0] = E((y) => !i.persistent && l.onCancel(), ["escape"])),
|
|
2176
2220
|
onClick: l.onCancel
|
|
2177
2221
|
}), {
|
|
2178
2222
|
default: m(() => [
|
|
@@ -2182,9 +2226,9 @@ function Gt(e, t, i, o, n, l) {
|
|
|
2182
2226
|
]),
|
|
2183
2227
|
_: 3
|
|
2184
2228
|
}, 16, ["bg-color", "onClick"])) : p("", !0),
|
|
2185
|
-
W((
|
|
2229
|
+
W((o(), g(a, _(l.confirmButtonProps, {
|
|
2186
2230
|
"bg-color": (l.confirmButton || {}).bgColor || "success",
|
|
2187
|
-
onKeyup: t[1] || (t[1] = E((
|
|
2231
|
+
onKeyup: t[1] || (t[1] = E((y) => !i.persistent && l.onCancel(), ["escape"])),
|
|
2188
2232
|
onClick: l.onConfirm
|
|
2189
2233
|
}), {
|
|
2190
2234
|
default: m(() => [
|
|
@@ -2204,7 +2248,7 @@ function Gt(e, t, i, o, n, l) {
|
|
|
2204
2248
|
_: 3
|
|
2205
2249
|
}, 16, ["modelValue"]);
|
|
2206
2250
|
}
|
|
2207
|
-
const
|
|
2251
|
+
const ni = {
|
|
2208
2252
|
name: "w-confirm",
|
|
2209
2253
|
inheritAttrs: !1,
|
|
2210
2254
|
// The attrs are only bound to the button, not the w-menu.
|
|
@@ -2317,16 +2361,16 @@ const Jt = {
|
|
|
2317
2361
|
this.$emit("confirm"), this.showPopup = !1;
|
|
2318
2362
|
}
|
|
2319
2363
|
}
|
|
2320
|
-
},
|
|
2321
|
-
function
|
|
2322
|
-
return
|
|
2364
|
+
}, ri = /* @__PURE__ */ v(ni, [["render", ai]]);
|
|
2365
|
+
function di(e, t, i, s, n, l) {
|
|
2366
|
+
return o(), u("div", {
|
|
2323
2367
|
class: f(["w-date-picker", l.classes]),
|
|
2324
|
-
style:
|
|
2368
|
+
style: R(l.styles)
|
|
2325
2369
|
}, [
|
|
2326
2370
|
c(e.$slots, "default")
|
|
2327
2371
|
], 6);
|
|
2328
2372
|
}
|
|
2329
|
-
const
|
|
2373
|
+
const ui = {
|
|
2330
2374
|
name: "w-date-picker",
|
|
2331
2375
|
props: {
|
|
2332
2376
|
dark: { type: Boolean },
|
|
@@ -2344,10 +2388,10 @@ const ei = {
|
|
|
2344
2388
|
return !1;
|
|
2345
2389
|
}
|
|
2346
2390
|
}
|
|
2347
|
-
},
|
|
2348
|
-
function
|
|
2391
|
+
}, hi = /* @__PURE__ */ v(ui, [["render", di]]);
|
|
2392
|
+
function ci(e, t, i, s, n, l) {
|
|
2349
2393
|
const a = $("w-card"), r = $("w-overlay");
|
|
2350
|
-
return
|
|
2394
|
+
return o(), g(r, {
|
|
2351
2395
|
class: f(["w-dialog", l.classes]),
|
|
2352
2396
|
"model-value": n.showWrapper,
|
|
2353
2397
|
persistent: i.persistent,
|
|
@@ -2358,13 +2402,13 @@ function ii(e, t, i, o, n, l) {
|
|
|
2358
2402
|
opacity: i.overlayOpacity
|
|
2359
2403
|
}, {
|
|
2360
2404
|
default: m(() => [
|
|
2361
|
-
|
|
2405
|
+
T(P, {
|
|
2362
2406
|
name: i.transition,
|
|
2363
2407
|
appear: "",
|
|
2364
2408
|
onAfterLeave: l.onBeforeClose
|
|
2365
2409
|
}, {
|
|
2366
2410
|
default: m(() => [
|
|
2367
|
-
W(
|
|
2411
|
+
W(T(a, {
|
|
2368
2412
|
class: f(["w-dialog__content", i.dialogClass]),
|
|
2369
2413
|
ref: "dialog",
|
|
2370
2414
|
"no-border": "",
|
|
@@ -2373,8 +2417,8 @@ function ii(e, t, i, o, n, l) {
|
|
|
2373
2417
|
"title-class": i.titleClass,
|
|
2374
2418
|
"content-class": i.contentClass,
|
|
2375
2419
|
title: i.title || void 0,
|
|
2376
|
-
style:
|
|
2377
|
-
},
|
|
2420
|
+
style: R(l.contentStyles)
|
|
2421
|
+
}, ee({
|
|
2378
2422
|
default: m(() => [
|
|
2379
2423
|
c(e.$slots, "default")
|
|
2380
2424
|
]),
|
|
@@ -2395,7 +2439,7 @@ function ii(e, t, i, o, n, l) {
|
|
|
2395
2439
|
key: "1"
|
|
2396
2440
|
} : void 0
|
|
2397
2441
|
]), 1032, ["color", "bg-color", "class", "title-class", "content-class", "title", "style"]), [
|
|
2398
|
-
[
|
|
2442
|
+
[re, n.showContent]
|
|
2399
2443
|
])
|
|
2400
2444
|
]),
|
|
2401
2445
|
_: 3
|
|
@@ -2404,7 +2448,7 @@ function ii(e, t, i, o, n, l) {
|
|
|
2404
2448
|
_: 3
|
|
2405
2449
|
}, 8, ["model-value", "persistent", "persistent-no-animation", "onClick", "onClose", "bg-color", "opacity", "class"]);
|
|
2406
2450
|
}
|
|
2407
|
-
const
|
|
2451
|
+
const pi = {
|
|
2408
2452
|
name: "w-dialog",
|
|
2409
2453
|
props: {
|
|
2410
2454
|
modelValue: { default: !0 },
|
|
@@ -2474,17 +2518,17 @@ const li = {
|
|
|
2474
2518
|
this.showWrapper = e, this.showContent = e;
|
|
2475
2519
|
}
|
|
2476
2520
|
}
|
|
2477
|
-
},
|
|
2478
|
-
function
|
|
2479
|
-
return
|
|
2521
|
+
}, fi = /* @__PURE__ */ v(pi, [["render", ci]]), mi = ["role", "aria-orientation"];
|
|
2522
|
+
function gi(e, t, i, s, n, l) {
|
|
2523
|
+
return o(), u("div", {
|
|
2480
2524
|
class: f(["w-divider", l.classes]),
|
|
2481
2525
|
role: e.$slots.default ? null : "presentation",
|
|
2482
2526
|
"aria-orientation": i.vertical ? "vertical" : "horizontal"
|
|
2483
2527
|
}, [
|
|
2484
2528
|
c(e.$slots, "default")
|
|
2485
|
-
], 10,
|
|
2529
|
+
], 10, mi);
|
|
2486
2530
|
}
|
|
2487
|
-
const
|
|
2531
|
+
const bi = {
|
|
2488
2532
|
name: "w-divider",
|
|
2489
2533
|
props: {
|
|
2490
2534
|
vertical: { type: Boolean },
|
|
@@ -2504,20 +2548,20 @@ const ni = {
|
|
|
2504
2548
|
};
|
|
2505
2549
|
}
|
|
2506
2550
|
}
|
|
2507
|
-
},
|
|
2508
|
-
function
|
|
2551
|
+
}, yi = /* @__PURE__ */ v(bi, [["render", gi]]), wi = { class: "w-drawer-wrap__pushable" };
|
|
2552
|
+
function ki(e, t, i, s, n, l) {
|
|
2509
2553
|
const a = $("w-overlay");
|
|
2510
|
-
return n.showWrapper || i.pushContent ? (
|
|
2554
|
+
return n.showWrapper || i.pushContent ? (o(), u("div", {
|
|
2511
2555
|
key: 0,
|
|
2512
2556
|
class: f(["w-drawer-wrap", l.wrapperClasses])
|
|
2513
2557
|
}, [
|
|
2514
|
-
i.pushContent ? (
|
|
2558
|
+
i.pushContent ? (o(), u("div", {
|
|
2515
2559
|
key: 0,
|
|
2516
2560
|
class: "w-drawer-wrap__track",
|
|
2517
|
-
style:
|
|
2561
|
+
style: R(l.trackStyles)
|
|
2518
2562
|
}, [
|
|
2519
|
-
|
|
2520
|
-
i.noOverlay ? p("", !0) : (
|
|
2563
|
+
w("div", wi, [
|
|
2564
|
+
i.noOverlay ? p("", !0) : (o(), g(a, {
|
|
2521
2565
|
key: 0,
|
|
2522
2566
|
modelValue: n.showDrawer,
|
|
2523
2567
|
"onUpdate:modelValue": t[0] || (t[0] = (r) => n.showDrawer = r),
|
|
@@ -2529,17 +2573,17 @@ function ui(e, t, i, o, n, l) {
|
|
|
2529
2573
|
}, null, 8, ["modelValue", "onClick", "persistent", "bg-color", "opacity"])),
|
|
2530
2574
|
c(e.$slots, "pushable")
|
|
2531
2575
|
]),
|
|
2532
|
-
|
|
2576
|
+
T(P, {
|
|
2533
2577
|
name: "fade",
|
|
2534
2578
|
onBeforeLeave: l.onBeforeClose,
|
|
2535
2579
|
onAfterLeave: l.onClose
|
|
2536
2580
|
}, {
|
|
2537
2581
|
default: m(() => [
|
|
2538
|
-
n.showDrawer ? (
|
|
2582
|
+
n.showDrawer ? (o(), g(L(i.tag || "aside"), {
|
|
2539
2583
|
key: 0,
|
|
2540
2584
|
class: f(["w-drawer", l.drawerClasses]),
|
|
2541
2585
|
ref: "drawer",
|
|
2542
|
-
style:
|
|
2586
|
+
style: R(l.styles)
|
|
2543
2587
|
}, {
|
|
2544
2588
|
default: m(() => [
|
|
2545
2589
|
c(e.$slots, "default")
|
|
@@ -2549,8 +2593,8 @@ function ui(e, t, i, o, n, l) {
|
|
|
2549
2593
|
]),
|
|
2550
2594
|
_: 3
|
|
2551
2595
|
}, 8, ["onBeforeLeave", "onAfterLeave"])
|
|
2552
|
-
], 4)) : (
|
|
2553
|
-
i.noOverlay ? p("", !0) : (
|
|
2596
|
+
], 4)) : (o(), u(k, { key: 1 }, [
|
|
2597
|
+
i.noOverlay ? p("", !0) : (o(), g(a, {
|
|
2554
2598
|
key: 0,
|
|
2555
2599
|
modelValue: n.showDrawer,
|
|
2556
2600
|
"onUpdate:modelValue": t[1] || (t[1] = (r) => n.showDrawer = r),
|
|
@@ -2560,18 +2604,18 @@ function ui(e, t, i, o, n, l) {
|
|
|
2560
2604
|
"bg-color": i.overlayColor,
|
|
2561
2605
|
opacity: i.overlayOpacity
|
|
2562
2606
|
}, null, 8, ["modelValue", "onClick", "persistent", "bg-color", "opacity"])),
|
|
2563
|
-
|
|
2607
|
+
T(P, {
|
|
2564
2608
|
name: l.transitionName,
|
|
2565
2609
|
appear: "",
|
|
2566
2610
|
onBeforeLeave: l.onBeforeClose,
|
|
2567
2611
|
onAfterLeave: l.onClose
|
|
2568
2612
|
}, {
|
|
2569
2613
|
default: m(() => [
|
|
2570
|
-
n.showDrawer ? (
|
|
2614
|
+
n.showDrawer ? (o(), g(L(i.tag || "aside"), {
|
|
2571
2615
|
key: 0,
|
|
2572
2616
|
class: f(["w-drawer", l.drawerClasses]),
|
|
2573
2617
|
ref: "drawer",
|
|
2574
|
-
style:
|
|
2618
|
+
style: R(l.styles)
|
|
2575
2619
|
}, {
|
|
2576
2620
|
default: m(() => [
|
|
2577
2621
|
c(e.$slots, "default")
|
|
@@ -2584,7 +2628,7 @@ function ui(e, t, i, o, n, l) {
|
|
|
2584
2628
|
], 64))
|
|
2585
2629
|
], 2)) : p("", !0);
|
|
2586
2630
|
}
|
|
2587
|
-
const
|
|
2631
|
+
const vi = { left: "right", right: "left", top: "down", bottom: "up" }, Ci = {
|
|
2588
2632
|
name: "w-drawer",
|
|
2589
2633
|
props: {
|
|
2590
2634
|
modelValue: { default: !0 },
|
|
@@ -2678,7 +2722,7 @@ const hi = { left: "right", right: "left", top: "down", bottom: "up" }, ci = {
|
|
|
2678
2722
|
return !this.showWrapper;
|
|
2679
2723
|
},
|
|
2680
2724
|
transitionName() {
|
|
2681
|
-
return `slide-${
|
|
2725
|
+
return `slide-${vi[this.position]}`;
|
|
2682
2726
|
}
|
|
2683
2727
|
},
|
|
2684
2728
|
methods: {
|
|
@@ -2697,9 +2741,9 @@ const hi = { left: "right", right: "left", top: "down", bottom: "up" }, ci = {
|
|
|
2697
2741
|
e && (this.showWrapper = !0), this.showDrawer = e;
|
|
2698
2742
|
}
|
|
2699
2743
|
}
|
|
2700
|
-
},
|
|
2701
|
-
function
|
|
2702
|
-
return
|
|
2744
|
+
}, Si = /* @__PURE__ */ v(Ci, [["render", ki]]);
|
|
2745
|
+
function Bi(e, t, i, s, n, l) {
|
|
2746
|
+
return o(), g(L(i.tag), {
|
|
2703
2747
|
class: f(["w-flex", l.classes])
|
|
2704
2748
|
}, {
|
|
2705
2749
|
default: m(() => [
|
|
@@ -2708,7 +2752,7 @@ function fi(e, t, i, o, n, l) {
|
|
|
2708
2752
|
_: 3
|
|
2709
2753
|
}, 8, ["class"]);
|
|
2710
2754
|
}
|
|
2711
|
-
const
|
|
2755
|
+
const _i = {
|
|
2712
2756
|
name: "w-flex",
|
|
2713
2757
|
props: {
|
|
2714
2758
|
tag: { type: String, default: "div" },
|
|
@@ -2755,9 +2799,9 @@ const mi = {
|
|
|
2755
2799
|
};
|
|
2756
2800
|
}
|
|
2757
2801
|
}
|
|
2758
|
-
},
|
|
2759
|
-
function
|
|
2760
|
-
return
|
|
2802
|
+
}, $i = /* @__PURE__ */ v(_i, [["render", Bi]]);
|
|
2803
|
+
function Vi(e, t, i, s, n, l) {
|
|
2804
|
+
return o(), u("form", {
|
|
2761
2805
|
class: f(["w-form", l.classes]),
|
|
2762
2806
|
onSubmit: t[0] || (t[0] = (...a) => l.onSubmit && l.onSubmit(...a)),
|
|
2763
2807
|
onReset: t[1] || (t[1] = (...a) => l.reset && l.reset(...a)),
|
|
@@ -2766,11 +2810,11 @@ function bi(e, t, i, o, n, l) {
|
|
|
2766
2810
|
c(e.$slots, "default")
|
|
2767
2811
|
], 34);
|
|
2768
2812
|
}
|
|
2769
|
-
const
|
|
2813
|
+
const Ii = async (e, t) => {
|
|
2770
2814
|
for (const i of e)
|
|
2771
2815
|
if (await t(i)) return !0;
|
|
2772
2816
|
return !1;
|
|
2773
|
-
},
|
|
2817
|
+
}, Ti = {
|
|
2774
2818
|
name: "w-form",
|
|
2775
2819
|
props: {
|
|
2776
2820
|
modelValue: {},
|
|
@@ -2839,8 +2883,8 @@ const yi = async (e, t) => {
|
|
|
2839
2883
|
let t = 0;
|
|
2840
2884
|
return await (async () => {
|
|
2841
2885
|
var i;
|
|
2842
|
-
for (const
|
|
2843
|
-
!((i =
|
|
2886
|
+
for (const s of this.formElements)
|
|
2887
|
+
!((i = s.validators) != null && i.length) || s.disabled || s.readonly || (await this.checkElementValidators(s), t += ~~!s.Validation.isValid, s.$emit("update:valid", s.Validation.isValid));
|
|
2844
2888
|
})(), this.updateErrorsCount(t), this.status = !t, this.$emit("validate", { e, errorsCount: t }), this.$emit(this.status ? "success" : "error", { e, errorsCount: t }), this.status;
|
|
2845
2889
|
},
|
|
2846
2890
|
async validateElement(e) {
|
|
@@ -2850,8 +2894,8 @@ const yi = async (e, t) => {
|
|
|
2850
2894
|
// message in the form element.
|
|
2851
2895
|
async checkElementValidators(e) {
|
|
2852
2896
|
let t = !1, i = "";
|
|
2853
|
-
await
|
|
2854
|
-
const n = await (typeof
|
|
2897
|
+
await Ii(e.validators, async (s) => {
|
|
2898
|
+
const n = await (typeof s == "function" && s(e.inputValue));
|
|
2855
2899
|
return t = typeof n != "string", i = t ? "" : n, !t;
|
|
2856
2900
|
}), e.hasJustReset = !1, e.Validation.isValid = t, e.Validation.message = i;
|
|
2857
2901
|
},
|
|
@@ -2862,7 +2906,7 @@ const yi = async (e, t) => {
|
|
|
2862
2906
|
this.status = null, this.formElements.forEach((t) => t.reset()), this.updateErrorsCount(0, !0), this.$emit("reset", e);
|
|
2863
2907
|
},
|
|
2864
2908
|
updateErrorsCount(e = null, t = !1) {
|
|
2865
|
-
this.errorsCount = e !== null ? e : this.formElements.reduce((i,
|
|
2909
|
+
this.errorsCount = e !== null ? e : this.formElements.reduce((i, s) => i + ~~(s.Validation.isValid === !1), 0), this.status = t ? null : !this.errorsCount, this.$emit("update:modelValue", this.status), this.$emit("input", this.status), this.$emit("update:errorsCount", this.errorsCount);
|
|
2866
2910
|
},
|
|
2867
2911
|
onSubmit(e) {
|
|
2868
2912
|
this.validate(e), this.$emit("submit", e), (!this.allowSubmit || !this.status) && e.preventDefault();
|
|
@@ -2876,20 +2920,20 @@ const yi = async (e, t) => {
|
|
|
2876
2920
|
(this.status === !1 && e || e === null && this.status !== null) && this.reset(), this.status = e;
|
|
2877
2921
|
}
|
|
2878
2922
|
}
|
|
2879
|
-
},
|
|
2880
|
-
function
|
|
2923
|
+
}, Li = /* @__PURE__ */ v(Ti, [["render", Vi]]);
|
|
2924
|
+
function Ri(e, t, i, s, n, l) {
|
|
2881
2925
|
const a = $("w-transition-expand");
|
|
2882
|
-
return
|
|
2926
|
+
return o(), u("div", {
|
|
2883
2927
|
class: f(l.classes)
|
|
2884
2928
|
}, [
|
|
2885
|
-
|
|
2929
|
+
w("div", {
|
|
2886
2930
|
class: f(["w-flex grow", [i.column ? "column" : "align-center", i.wrap ? "wrap" : ""]])
|
|
2887
2931
|
}, [
|
|
2888
2932
|
c(e.$slots, "default")
|
|
2889
2933
|
], 2),
|
|
2890
|
-
|
|
2934
|
+
T(a, { y: "" }, {
|
|
2891
2935
|
default: m(() => [
|
|
2892
|
-
e.Validation.message ? (
|
|
2936
|
+
e.Validation.message ? (o(), u("div", {
|
|
2893
2937
|
key: 0,
|
|
2894
2938
|
class: f(["w-form-el__error", l.formProps.validationColor])
|
|
2895
2939
|
}, [
|
|
@@ -2904,7 +2948,7 @@ function vi(e, t, i, o, n, l) {
|
|
|
2904
2948
|
})
|
|
2905
2949
|
], 2);
|
|
2906
2950
|
}
|
|
2907
|
-
const
|
|
2951
|
+
const xi = {
|
|
2908
2952
|
name: "w-form-element",
|
|
2909
2953
|
props: {
|
|
2910
2954
|
valid: { required: !0 },
|
|
@@ -2977,9 +3021,9 @@ const Ci = {
|
|
|
2977
3021
|
beforeUnmount() {
|
|
2978
3022
|
this.formUnregister && this.formUnregister(this);
|
|
2979
3023
|
}
|
|
2980
|
-
},
|
|
2981
|
-
function
|
|
2982
|
-
return
|
|
3024
|
+
}, Pi = /* @__PURE__ */ v(xi, [["render", Ri]]);
|
|
3025
|
+
function Oi(e, t, i, s, n, l) {
|
|
3026
|
+
return o(), g(L(i.tag), {
|
|
2983
3027
|
class: f(["w-grid", l.classes])
|
|
2984
3028
|
}, {
|
|
2985
3029
|
default: m(() => [
|
|
@@ -2988,7 +3032,7 @@ function Bi(e, t, i, o, n, l) {
|
|
|
2988
3032
|
_: 3
|
|
2989
3033
|
}, 8, ["class"]);
|
|
2990
3034
|
}
|
|
2991
|
-
const
|
|
3035
|
+
const Mi = {
|
|
2992
3036
|
name: "w-grid",
|
|
2993
3037
|
props: {
|
|
2994
3038
|
tag: { type: String, default: "div" },
|
|
@@ -3024,31 +3068,31 @@ const _i = {
|
|
|
3024
3068
|
},
|
|
3025
3069
|
classes() {
|
|
3026
3070
|
let e = null;
|
|
3027
|
-
typeof this.columns == "object" && (e = Object.entries(this.breakpointsColumns).reduce((i, [
|
|
3071
|
+
typeof this.columns == "object" && (e = Object.entries(this.breakpointsColumns).reduce((i, [s, n]) => (i[`${s}-columns${n}`] = !0, i), {}));
|
|
3028
3072
|
let t = null;
|
|
3029
|
-
return typeof this.gap == "object" && (t = Object.entries(this.breakpointsGap).reduce((i, [
|
|
3073
|
+
return typeof this.gap == "object" && (t = Object.entries(this.breakpointsGap).reduce((i, [s, n]) => (i[`${s}-gap${n}`] = !0, i), {})), {
|
|
3030
3074
|
...e || { [`columns${this.columns}`]: this.columns },
|
|
3031
3075
|
...t || { [`gap${this.gap}`]: this.gap }
|
|
3032
3076
|
};
|
|
3033
3077
|
}
|
|
3034
3078
|
}
|
|
3035
|
-
},
|
|
3036
|
-
function
|
|
3037
|
-
return
|
|
3079
|
+
}, zi = /* @__PURE__ */ v(Mi, [["render", Oi]]);
|
|
3080
|
+
function Ei(e, t, i, s, n, l) {
|
|
3081
|
+
return o(), g(L(i.tag || "i"), {
|
|
3038
3082
|
class: f(["w-icon", l.classes]),
|
|
3039
3083
|
role: "icon",
|
|
3040
3084
|
"aria-hidden": "true",
|
|
3041
|
-
style:
|
|
3085
|
+
style: R(l.readIcon() && l.styles)
|
|
3042
3086
|
}, {
|
|
3043
3087
|
default: m(() => [
|
|
3044
|
-
l.hasLigature ? (
|
|
3088
|
+
l.hasLigature ? (o(), u(k, { key: 0 }, [
|
|
3045
3089
|
S(C(e.icon), 1)
|
|
3046
3090
|
], 64)) : p("", !0)
|
|
3047
3091
|
]),
|
|
3048
3092
|
_: 1
|
|
3049
3093
|
}, 8, ["class", "style"]);
|
|
3050
3094
|
}
|
|
3051
|
-
const
|
|
3095
|
+
const Ai = {
|
|
3052
3096
|
name: "w-icon",
|
|
3053
3097
|
props: {
|
|
3054
3098
|
tag: { type: String, default: "i" },
|
|
@@ -3117,39 +3161,39 @@ const Ii = {
|
|
|
3117
3161
|
return this.fontName = t, this.icon = i, !0;
|
|
3118
3162
|
}
|
|
3119
3163
|
}
|
|
3120
|
-
},
|
|
3164
|
+
}, Wi = /* @__PURE__ */ v(Ai, [["render", Ei]]), Ki = {
|
|
3121
3165
|
key: 0,
|
|
3122
3166
|
class: "w-image__loader"
|
|
3123
3167
|
};
|
|
3124
|
-
function
|
|
3168
|
+
function Ni(e, t, i, s, n, l) {
|
|
3125
3169
|
const a = $("w-progress");
|
|
3126
|
-
return
|
|
3170
|
+
return o(), g(L(l.wrapperTag), {
|
|
3127
3171
|
class: f(["w-image-wrap", l.wrapperClasses]),
|
|
3128
|
-
style:
|
|
3172
|
+
style: R(l.wrapperStyles)
|
|
3129
3173
|
}, {
|
|
3130
3174
|
default: m(() => [
|
|
3131
|
-
|
|
3175
|
+
T(P, {
|
|
3132
3176
|
name: i.transition,
|
|
3133
3177
|
appear: ""
|
|
3134
3178
|
}, {
|
|
3135
3179
|
default: m(() => [
|
|
3136
|
-
n.loaded ? (
|
|
3180
|
+
n.loaded ? (o(), g(L(i.tag), {
|
|
3137
3181
|
key: 0,
|
|
3138
3182
|
class: f(["w-image", l.imageClasses]),
|
|
3139
|
-
style:
|
|
3183
|
+
style: R(l.imageStyles),
|
|
3140
3184
|
src: i.tag === "img" ? n.imgSrc : null
|
|
3141
3185
|
}, null, 8, ["class", "style", "src"])) : p("", !0)
|
|
3142
3186
|
]),
|
|
3143
3187
|
_: 1
|
|
3144
3188
|
}, 8, ["name"]),
|
|
3145
|
-
!i.noSpinner && n.loading ? (
|
|
3146
|
-
e.$slots.loading ? c(e.$slots, "loading", { key: 0 }) : (
|
|
3189
|
+
!i.noSpinner && n.loading ? (o(), u("div", Ki, [
|
|
3190
|
+
e.$slots.loading ? c(e.$slots, "loading", { key: 0 }) : (o(), g(a, _({
|
|
3147
3191
|
key: 1,
|
|
3148
3192
|
circle: "",
|
|
3149
3193
|
indeterminate: ""
|
|
3150
3194
|
}, i.spinnerColor ? { color: i.spinnerColor } : {}), null, 16))
|
|
3151
3195
|
])) : p("", !0),
|
|
3152
|
-
e.$slots.default ? (
|
|
3196
|
+
e.$slots.default ? (o(), g(L(l.wrapperTag), {
|
|
3153
3197
|
key: 1,
|
|
3154
3198
|
class: f(["w-image__content", i.contentClass])
|
|
3155
3199
|
}, {
|
|
@@ -3162,7 +3206,7 @@ function Ri(e, t, i, o, n, l) {
|
|
|
3162
3206
|
_: 3
|
|
3163
3207
|
}, 8, ["class", "style"]);
|
|
3164
3208
|
}
|
|
3165
|
-
const
|
|
3209
|
+
const Di = {
|
|
3166
3210
|
name: "w-image",
|
|
3167
3211
|
props: {
|
|
3168
3212
|
tag: { type: String, default: "span" },
|
|
@@ -3230,14 +3274,14 @@ const Pi = {
|
|
|
3230
3274
|
if (!this.loading)
|
|
3231
3275
|
return this.loading = !0, this.loaded = !1, this.$emit("loading", e ? this.fallback : this.src), new Promise((t) => {
|
|
3232
3276
|
const i = new Image();
|
|
3233
|
-
i.onload = (
|
|
3234
|
-
this.$emit("error",
|
|
3277
|
+
i.onload = (s) => (!this.width && !this.height && !this.imgGivenRatio && (this.imgWidth = s.target.width, this.imgHeight = s.target.height), this.imgComputedRatio = s.target.height / s.target.width, this.loading = !1, this.loaded = !0, this.imgSrc = e ? this.fallback : this.src, this.$emit("loaded", this.imgSrc), t(i)), i.onerror = (s) => {
|
|
3278
|
+
this.$emit("error", s), this.fallback && !e ? (this.loading = !1, this.loadImage(!0)) : (this.loading = !1, this.loaded = !1);
|
|
3235
3279
|
}, i.src = e ? this.fallback : this.src;
|
|
3236
3280
|
});
|
|
3237
3281
|
}
|
|
3238
3282
|
},
|
|
3239
3283
|
mounted() {
|
|
3240
|
-
if (!this.src) return
|
|
3284
|
+
if (!this.src) return j("The w-image component was used without src.");
|
|
3241
3285
|
if (this.lazy) {
|
|
3242
3286
|
const e = new IntersectionObserver((t) => {
|
|
3243
3287
|
t[0] && t[0].isIntersecting && (this.loadImage(), e.disconnect());
|
|
@@ -3256,13 +3300,13 @@ const Pi = {
|
|
|
3256
3300
|
this.imgHeight = e;
|
|
3257
3301
|
}
|
|
3258
3302
|
}
|
|
3259
|
-
},
|
|
3303
|
+
}, Hi = /* @__PURE__ */ v(Di, [["render", Ni]]), Fi = ["name"], ji = ["for"], Ui = ["id", "type", "name", "placeholder", "step", "min", "max", "minlength", "maxlength", "readonly", "aria-readonly", "disabled", "required", "tabindex"], qi = ["id", "name", "multiple", "disabled", "data-progress"], Xi = {
|
|
3260
3304
|
class: "w-input__no-file",
|
|
3261
3305
|
key: "no-file"
|
|
3262
|
-
},
|
|
3263
|
-
function
|
|
3306
|
+
}, Yi = ["for"], Gi = ["src"], Ji = ["for"];
|
|
3307
|
+
function Qi(e, t, i, s, n, l) {
|
|
3264
3308
|
const a = $("w-icon"), r = $("w-progress");
|
|
3265
|
-
return
|
|
3309
|
+
return o(), g(L(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 }, {
|
|
3266
3310
|
valid: e.valid,
|
|
3267
3311
|
"onUpdate:valid": t[10] || (t[10] = (d) => e.valid = d),
|
|
3268
3312
|
onReset: t[11] || (t[11] = (d) => {
|
|
@@ -3273,16 +3317,16 @@ function Di(e, t, i, o, n, l) {
|
|
|
3273
3317
|
style: e.$attrs.style
|
|
3274
3318
|
}), {
|
|
3275
3319
|
default: m(() => [
|
|
3276
|
-
i.type === "hidden" ? W((
|
|
3320
|
+
i.type === "hidden" ? W((o(), u("input", {
|
|
3277
3321
|
key: 0,
|
|
3278
3322
|
type: "hidden",
|
|
3279
3323
|
name: e.name || null,
|
|
3280
3324
|
"onUpdate:modelValue": t[0] || (t[0] = (d) => n.inputValue = d)
|
|
3281
|
-
}, null, 8,
|
|
3282
|
-
[
|
|
3283
|
-
]) : (
|
|
3284
|
-
i.labelPosition === "left" ? (
|
|
3285
|
-
e.$slots.default || i.label ? (
|
|
3325
|
+
}, null, 8, Fi)), [
|
|
3326
|
+
[ve, n.inputValue]
|
|
3327
|
+
]) : (o(), u(k, { key: 1 }, [
|
|
3328
|
+
i.labelPosition === "left" ? (o(), u(k, { key: 0 }, [
|
|
3329
|
+
e.$slots.default || i.label ? (o(), u("label", {
|
|
3286
3330
|
key: 0,
|
|
3287
3331
|
class: f(["w-input__label w-input__label--left w-form-el-shakable", e.labelClasses]),
|
|
3288
3332
|
for: `w-input--${e._.uid}`
|
|
@@ -3290,15 +3334,15 @@ function Di(e, t, i, o, n, l) {
|
|
|
3290
3334
|
c(e.$slots, "default", {}, () => [
|
|
3291
3335
|
S(C(i.label), 1)
|
|
3292
3336
|
])
|
|
3293
|
-
], 10,
|
|
3337
|
+
], 10, ji)) : p("", !0)
|
|
3294
3338
|
], 64)) : p("", !0),
|
|
3295
|
-
|
|
3339
|
+
w("div", {
|
|
3296
3340
|
class: f(["w-input__input-wrap", l.inputWrapClasses])
|
|
3297
3341
|
}, [
|
|
3298
3342
|
c(e.$slots, "icon-left", {
|
|
3299
3343
|
inputId: `w-input--${e._.uid}`
|
|
3300
3344
|
}, () => [
|
|
3301
|
-
i.innerIconLeft ? (
|
|
3345
|
+
i.innerIconLeft ? (o(), g(a, {
|
|
3302
3346
|
key: 0,
|
|
3303
3347
|
class: "w-input__icon w-input__icon--inner-left",
|
|
3304
3348
|
tag: "label",
|
|
@@ -3311,7 +3355,7 @@ function Di(e, t, i, o, n, l) {
|
|
|
3311
3355
|
_: 1
|
|
3312
3356
|
}, 8, ["for"])) : p("", !0)
|
|
3313
3357
|
]),
|
|
3314
|
-
i.type !== "file" ? W((
|
|
3358
|
+
i.type !== "file" ? W((o(), u("input", _({
|
|
3315
3359
|
key: 0,
|
|
3316
3360
|
class: "w-input__input",
|
|
3317
3361
|
ref: "input",
|
|
@@ -3333,10 +3377,10 @@ function Di(e, t, i, o, n, l) {
|
|
|
3333
3377
|
disabled: e.isDisabled || null,
|
|
3334
3378
|
required: e.required || null,
|
|
3335
3379
|
tabindex: e.tabindex || null
|
|
3336
|
-
}, l.attrs), null, 16,
|
|
3337
|
-
[
|
|
3338
|
-
]) : (
|
|
3339
|
-
|
|
3380
|
+
}, l.attrs), null, 16, Ui)), [
|
|
3381
|
+
[Re, n.inputValue]
|
|
3382
|
+
]) : (o(), u(k, { key: 1 }, [
|
|
3383
|
+
w("input", _({
|
|
3340
3384
|
ref: "input",
|
|
3341
3385
|
id: `w-input--${e._.uid}`,
|
|
3342
3386
|
type: "file",
|
|
@@ -3349,26 +3393,26 @@ function Di(e, t, i, o, n, l) {
|
|
|
3349
3393
|
disabled: e.isDisabled || null,
|
|
3350
3394
|
"data-progress": l.overallFilesProgress
|
|
3351
3395
|
/* Needed to emit the overallProgress. */
|
|
3352
|
-
}), null, 16,
|
|
3353
|
-
|
|
3396
|
+
}), null, 16, qi),
|
|
3397
|
+
T(ae, {
|
|
3354
3398
|
class: "w-input__input w-input__input--file",
|
|
3355
3399
|
tag: "label",
|
|
3356
3400
|
name: "fade",
|
|
3357
3401
|
for: `w-input--${e._.uid}`
|
|
3358
3402
|
}, {
|
|
3359
3403
|
default: m(() => [
|
|
3360
|
-
!n.inputFiles.length && n.isFocused ? (
|
|
3404
|
+
!n.inputFiles.length && n.isFocused ? (o(), u("span", Xi, [
|
|
3361
3405
|
c(e.$slots, "no-file", {}, () => [
|
|
3362
|
-
e.$slots["no-file"] === void 0 ? (
|
|
3406
|
+
e.$slots["no-file"] === void 0 ? (o(), u(k, { key: 0 }, [
|
|
3363
3407
|
S("No file")
|
|
3364
3408
|
], 64)) : p("", !0)
|
|
3365
3409
|
])
|
|
3366
3410
|
])) : p("", !0),
|
|
3367
|
-
(
|
|
3411
|
+
(o(!0), u(k, null, x(n.inputFiles, (d, h) => (o(), u("span", {
|
|
3368
3412
|
key: d.lastModified
|
|
3369
3413
|
}, [
|
|
3370
3414
|
S(C(h ? ", " : ""), 1),
|
|
3371
|
-
(
|
|
3415
|
+
(o(), u("span", {
|
|
3372
3416
|
class: "filename",
|
|
3373
3417
|
key: `${h}b`
|
|
3374
3418
|
}, C(d.base), 1)),
|
|
@@ -3378,8 +3422,8 @@ function Di(e, t, i, o, n, l) {
|
|
|
3378
3422
|
_: 3
|
|
3379
3423
|
}, 8, ["for"])
|
|
3380
3424
|
], 64)),
|
|
3381
|
-
i.labelPosition === "inside" && l.showLabelInside ? (
|
|
3382
|
-
e.$slots.default || i.label ? (
|
|
3425
|
+
i.labelPosition === "inside" && l.showLabelInside ? (o(), u(k, { key: 2 }, [
|
|
3426
|
+
e.$slots.default || i.label ? (o(), u("label", {
|
|
3383
3427
|
key: 0,
|
|
3384
3428
|
class: f(["w-input__label w-input__label--inside w-form-el-shakable", e.labelClasses])
|
|
3385
3429
|
}, [
|
|
@@ -3391,7 +3435,7 @@ function Di(e, t, i, o, n, l) {
|
|
|
3391
3435
|
c(e.$slots, "icon-right", {
|
|
3392
3436
|
inputId: `w-input--${e._.uid}`
|
|
3393
3437
|
}, () => [
|
|
3394
|
-
i.innerIconRight ? (
|
|
3438
|
+
i.innerIconRight ? (o(), g(a, {
|
|
3395
3439
|
key: 0,
|
|
3396
3440
|
class: "w-input__icon w-input__icon--inner-right",
|
|
3397
3441
|
tag: "label",
|
|
@@ -3404,7 +3448,7 @@ function Di(e, t, i, o, n, l) {
|
|
|
3404
3448
|
_: 1
|
|
3405
3449
|
}, 8, ["for"])) : p("", !0)
|
|
3406
3450
|
]),
|
|
3407
|
-
l.hasLoading || i.showProgress && (l.uploadInProgress || l.uploadComplete) ? (
|
|
3451
|
+
l.hasLoading || i.showProgress && (l.uploadInProgress || l.uploadComplete) ? (o(), g(r, {
|
|
3408
3452
|
key: 3,
|
|
3409
3453
|
class: "fill-width",
|
|
3410
3454
|
size: "2",
|
|
@@ -3412,28 +3456,28 @@ function Di(e, t, i, o, n, l) {
|
|
|
3412
3456
|
"model-value": i.showProgress ? (l.uploadInProgress || l.uploadComplete) && l.overallFilesProgress : l.loadingValue
|
|
3413
3457
|
}, null, 8, ["color", "model-value"])) : p("", !0)
|
|
3414
3458
|
], 2),
|
|
3415
|
-
i.type === "file" && i.preview && n.inputFiles.length ? (
|
|
3459
|
+
i.type === "file" && i.preview && n.inputFiles.length ? (o(), u("label", {
|
|
3416
3460
|
key: 1,
|
|
3417
3461
|
class: "d-flex",
|
|
3418
3462
|
for: `w-input--${e._.uid}`
|
|
3419
3463
|
}, [
|
|
3420
|
-
(
|
|
3421
|
-
d.progress < 100 ? (
|
|
3464
|
+
(o(!0), u(k, null, x(n.inputFiles, (d, h) => (o(), u(k, null, [
|
|
3465
|
+
d.progress < 100 ? (o(), u("i", {
|
|
3422
3466
|
class: "w-icon wi-spinner w-icon--spin size--sm w-input__file-preview primary",
|
|
3423
3467
|
key: `${h}a`
|
|
3424
|
-
})) : d.preview ? (
|
|
3468
|
+
})) : d.preview ? (o(), u("img", {
|
|
3425
3469
|
class: "w-input__file-preview",
|
|
3426
3470
|
key: `${h}b`,
|
|
3427
3471
|
src: d.preview,
|
|
3428
3472
|
alt: ""
|
|
3429
|
-
}, null, 8,
|
|
3473
|
+
}, null, 8, Gi)) : (o(), u("i", {
|
|
3430
3474
|
class: f(["w-icon w-input__file-preview primary size--md", i.preview && typeof i.preview == "string" ? i.preview : "wi-file"]),
|
|
3431
3475
|
key: `${h}c`
|
|
3432
3476
|
}, null, 2))
|
|
3433
3477
|
], 64))), 256))
|
|
3434
|
-
], 8,
|
|
3435
|
-
i.labelPosition === "right" ? (
|
|
3436
|
-
e.$slots.default || i.label ? (
|
|
3478
|
+
], 8, Yi)) : p("", !0),
|
|
3479
|
+
i.labelPosition === "right" ? (o(), u(k, { key: 2 }, [
|
|
3480
|
+
e.$slots.default || i.label ? (o(), u("label", {
|
|
3437
3481
|
key: 0,
|
|
3438
3482
|
class: f(["w-input__label w-input__label--right w-form-el-shakable", e.labelClasses]),
|
|
3439
3483
|
for: `w-input--${e._.uid}`
|
|
@@ -3441,16 +3485,16 @@ function Di(e, t, i, o, n, l) {
|
|
|
3441
3485
|
c(e.$slots, "default", {}, () => [
|
|
3442
3486
|
S(C(i.label), 1)
|
|
3443
3487
|
])
|
|
3444
|
-
], 10,
|
|
3488
|
+
], 10, Ji)) : p("", !0)
|
|
3445
3489
|
], 64)) : p("", !0)
|
|
3446
3490
|
], 64))
|
|
3447
3491
|
]),
|
|
3448
3492
|
_: 3
|
|
3449
3493
|
}, 16, ["valid", "wrap", "class", "style"]);
|
|
3450
3494
|
}
|
|
3451
|
-
const
|
|
3495
|
+
const Zi = {
|
|
3452
3496
|
name: "w-input",
|
|
3453
|
-
mixins: [
|
|
3497
|
+
mixins: [z],
|
|
3454
3498
|
inheritAttrs: !1,
|
|
3455
3499
|
// The attrs should only be added to the input not the wrapper.
|
|
3456
3500
|
props: {
|
|
@@ -3539,7 +3583,7 @@ const Hi = {
|
|
|
3539
3583
|
return !this.staticLabel || !this.hasValue && !this.placeholder;
|
|
3540
3584
|
},
|
|
3541
3585
|
overallFilesProgress() {
|
|
3542
|
-
const t = +this.inputFiles.reduce((i,
|
|
3586
|
+
const t = +this.inputFiles.reduce((i, s) => i + s.progress, 0) / this.inputFiles.length;
|
|
3543
3587
|
return this.$emit("update:overallProgress", this.inputFiles.length ? t : 0), t;
|
|
3544
3588
|
},
|
|
3545
3589
|
uploadInProgress() {
|
|
@@ -3597,9 +3641,9 @@ const Hi = {
|
|
|
3597
3641
|
// For file input.
|
|
3598
3642
|
onFileChange(e) {
|
|
3599
3643
|
this.inputFiles = [...e.target.files].map((i) => {
|
|
3600
|
-
const [,
|
|
3644
|
+
const [, s = "", n = "", l = ""] = i.name.match(/^(.*?)\.([^.]*)$|(.*)/), a = Z({
|
|
3601
3645
|
name: i.name,
|
|
3602
|
-
base:
|
|
3646
|
+
base: s || l,
|
|
3603
3647
|
extension: n,
|
|
3604
3648
|
type: i.type,
|
|
3605
3649
|
size: i.size,
|
|
@@ -3615,8 +3659,8 @@ const Hi = {
|
|
|
3615
3659
|
},
|
|
3616
3660
|
// For file input.
|
|
3617
3661
|
readFile(e, t) {
|
|
3618
|
-
const i = new FileReader(),
|
|
3619
|
-
this.preview && !
|
|
3662
|
+
const i = new FileReader(), s = typeof this.preview == "string", n = e.type && e.type.startsWith("image/");
|
|
3663
|
+
this.preview && !s && n ? i.addEventListener("load", (l) => {
|
|
3620
3664
|
t.preview = l.target.result;
|
|
3621
3665
|
}) : delete t.preview, i.addEventListener("progress", (l) => {
|
|
3622
3666
|
l.loaded && l.total && (t.progress = l.loaded * 100 / l.total);
|
|
@@ -3633,17 +3677,17 @@ const Hi = {
|
|
|
3633
3677
|
this.inputValue = e, !e && e !== 0 && (this.isAutofilled = !1, this.inputFiles = []);
|
|
3634
3678
|
}
|
|
3635
3679
|
}
|
|
3636
|
-
},
|
|
3637
|
-
function
|
|
3680
|
+
}, el = /* @__PURE__ */ v(Zi, [["render", Qi]]);
|
|
3681
|
+
function tl(e, t, i, s, n, l) {
|
|
3638
3682
|
const a = $("w-icon"), r = $("w-list", !0);
|
|
3639
|
-
return
|
|
3683
|
+
return o(), u("ul", {
|
|
3640
3684
|
class: f(["w-list", l.classes])
|
|
3641
3685
|
}, [
|
|
3642
|
-
(
|
|
3686
|
+
(o(!0), u(k, null, x(e.listItems, (d, h) => (o(), u("li", {
|
|
3643
3687
|
class: f(["w-list__item", { "w-list__item--parent": (d.children || []).length }]),
|
|
3644
3688
|
key: h
|
|
3645
3689
|
}, [
|
|
3646
|
-
i.icon ? (
|
|
3690
|
+
i.icon ? (o(), g(a, {
|
|
3647
3691
|
key: 0,
|
|
3648
3692
|
class: "w-list__item-bullet"
|
|
3649
3693
|
}, {
|
|
@@ -3652,7 +3696,7 @@ function ji(e, t, i, o, n, l) {
|
|
|
3652
3696
|
]),
|
|
3653
3697
|
_: 1
|
|
3654
3698
|
})) : p("", !0),
|
|
3655
|
-
e.$slots[`item.${h + 1}`] || e.$slots.item || e.$slots.default ? (
|
|
3699
|
+
e.$slots[`item.${h + 1}`] || e.$slots.item || e.$slots.default ? (o(), g(L(i.checklist ? "w-checkbox" : i.nav && !d.disabled && d.route ? l.hasRouter ? "router-link" : "a" : "div"), _({
|
|
3656
3700
|
key: 1,
|
|
3657
3701
|
class: "w-list__item-label",
|
|
3658
3702
|
ref_for: !0
|
|
@@ -3678,41 +3722,41 @@ function ji(e, t, i, o, n, l) {
|
|
|
3678
3722
|
])
|
|
3679
3723
|
]),
|
|
3680
3724
|
_: 2
|
|
3681
|
-
}, 1040)) : (
|
|
3725
|
+
}, 1040)) : (o(), g(L(i.checklist ? "w-checkbox" : i.nav && !d.disabled && d.route ? l.hasRouter ? "router-link" : "a" : "div"), _({
|
|
3682
3726
|
key: 2,
|
|
3683
3727
|
class: "w-list__item-label",
|
|
3684
3728
|
ref_for: !0
|
|
3685
3729
|
}, l.liLabelProps(d, h, d._selected)), null, 16)),
|
|
3686
|
-
(d.children || []).length ? (
|
|
3730
|
+
(d.children || []).length ? (o(), g(r, _({
|
|
3687
3731
|
key: 3,
|
|
3688
3732
|
ref_for: !0
|
|
3689
3733
|
}, e.$props, {
|
|
3690
3734
|
items: d.children,
|
|
3691
3735
|
depth: i.depth + 1,
|
|
3692
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
3693
|
-
onInput: t[1] || (t[1] = (
|
|
3694
|
-
onItemClick: t[2] || (t[2] = (
|
|
3695
|
-
onItemSelect: t[3] || (t[3] = (
|
|
3696
|
-
}),
|
|
3736
|
+
"onUpdate:modelValue": t[0] || (t[0] = (y) => e.$emit("update:modelValue", y)),
|
|
3737
|
+
onInput: t[1] || (t[1] = (y) => e.$emit("input", y)),
|
|
3738
|
+
onItemClick: t[2] || (t[2] = (y) => e.$emit("item-click", y)),
|
|
3739
|
+
onItemSelect: t[3] || (t[3] = (y) => e.$emit("item-select", y))
|
|
3740
|
+
}), ee({ _: 2 }, [
|
|
3697
3741
|
e.$slots.item ? {
|
|
3698
3742
|
name: "item",
|
|
3699
|
-
fn: m(({ item:
|
|
3743
|
+
fn: m(({ item: y, index: B, selected: b }) => [
|
|
3700
3744
|
c(e.$slots, "item", {
|
|
3701
|
-
item: l.cleanLi(
|
|
3702
|
-
index:
|
|
3745
|
+
item: l.cleanLi(y),
|
|
3746
|
+
index: B,
|
|
3703
3747
|
selected: b
|
|
3704
3748
|
})
|
|
3705
3749
|
]),
|
|
3706
3750
|
key: "0"
|
|
3707
3751
|
} : {
|
|
3708
3752
|
name: "default",
|
|
3709
|
-
fn: m(({ item:
|
|
3753
|
+
fn: m(({ item: y, index: B, selected: b }) => [
|
|
3710
3754
|
c(e.$slots, "default", {
|
|
3711
|
-
item: l.cleanLi(
|
|
3712
|
-
index:
|
|
3755
|
+
item: l.cleanLi(y),
|
|
3756
|
+
index: B,
|
|
3713
3757
|
selected: b
|
|
3714
3758
|
}, () => [
|
|
3715
|
-
S(C(
|
|
3759
|
+
S(C(y[i.itemLabelKey]), 1)
|
|
3716
3760
|
])
|
|
3717
3761
|
]),
|
|
3718
3762
|
key: "1"
|
|
@@ -3721,7 +3765,7 @@ function ji(e, t, i, o, n, l) {
|
|
|
3721
3765
|
], 2))), 128))
|
|
3722
3766
|
], 2);
|
|
3723
3767
|
}
|
|
3724
|
-
const
|
|
3768
|
+
const il = {
|
|
3725
3769
|
name: "w-list",
|
|
3726
3770
|
props: {
|
|
3727
3771
|
items: { type: [Array, Number], required: !0 },
|
|
@@ -3827,7 +3871,7 @@ const Ui = {
|
|
|
3827
3871
|
};
|
|
3828
3872
|
},
|
|
3829
3873
|
liLabelProps(e, t, i) {
|
|
3830
|
-
const
|
|
3874
|
+
const s = this.$slots[`item.${t + 1}`] || this.$slots.item, n = () => {
|
|
3831
3875
|
if (!e.disabled) {
|
|
3832
3876
|
const d = this.cleanLi(e);
|
|
3833
3877
|
this.$emit("item-click", d), this.$emit("item-select", d);
|
|
@@ -3843,12 +3887,12 @@ const Ui = {
|
|
|
3843
3887
|
id: this.listId ? `${this.listId}_item-${t + 1}` : null,
|
|
3844
3888
|
role: "option"
|
|
3845
3889
|
};
|
|
3846
|
-
return this.checklist ? (r.modelValue = e._selected, r.color = e[this.itemColorKey] || this.color, r.round = this.roundCheckboxes, r.disabled = e.disabled,
|
|
3890
|
+
return this.checklist ? (r.modelValue = e._selected, r.color = e[this.itemColorKey] || this.color, r.round = this.roundCheckboxes, r.disabled = e.disabled, s || (r.label = e._label || null), r.onFocus = () => e._focused = !0, r.onBlur = () => e._focused = !1, r.onInput = (d) => this.selectItem(e, d), r.onClick = (d) => {
|
|
3847
3891
|
const h = d.target.querySelector('input[type="checkbox"]');
|
|
3848
3892
|
h && (h.focus(), h.click()), n();
|
|
3849
3893
|
}) : this.nav ? (!e.disabled && e[this.itemRouteKey] && (r.onKeydown = a, r.onMousedown = l, this.$router ? (r.to = e[this.itemRouteKey], r.onClick = (d) => {
|
|
3850
3894
|
d.preventDefault(), this.$router.push(e[this.itemRouteKey]), n();
|
|
3851
|
-
}) : (r.href = e[this.itemRouteKey], r.onClick = n)),
|
|
3895
|
+
}) : (r.href = e[this.itemRouteKey], r.onClick = n)), s || (r.innerHTML = e._label)) : (this.isSelectable && (e.disabled || (r.tabindex = 0), r.onClick = n, r.onKeydown = a, r.onMousedown = l), s || (r.innerHTML = e._label)), r;
|
|
3852
3896
|
},
|
|
3853
3897
|
// Convert the received items selection to array if it is a unique value.
|
|
3854
3898
|
// Also accept objects if returnObject is true and convert to the object's value.
|
|
@@ -3861,7 +3905,7 @@ const Ui = {
|
|
|
3861
3905
|
emitSelection() {
|
|
3862
3906
|
const e = this.selectedItems.map((i) => {
|
|
3863
3907
|
if (!this.returnObject) return i._value;
|
|
3864
|
-
const { _value:
|
|
3908
|
+
const { _value: s, _selected: n, ...l } = i;
|
|
3865
3909
|
return l;
|
|
3866
3910
|
}), t = this.isMultipleSelect ? e : e[0] !== void 0 ? e[0] : null;
|
|
3867
3911
|
this.$emit("update:modelValue", t), this.$emit("input", t);
|
|
@@ -3872,7 +3916,7 @@ const Ui = {
|
|
|
3872
3916
|
e === void 0 && (e = this.enabledItemsIndexes[i]), this.$el.querySelector(`#${this.listId}_item-${e + 1}`).focus();
|
|
3873
3917
|
},
|
|
3874
3918
|
cleanLi(e) {
|
|
3875
|
-
const { _index: t, _value: i, _label:
|
|
3919
|
+
const { _index: t, _value: i, _label: s, _selected: n, _focused: l, ...a } = e;
|
|
3876
3920
|
return a;
|
|
3877
3921
|
},
|
|
3878
3922
|
refreshListItems() {
|
|
@@ -3892,7 +3936,7 @@ const Ui = {
|
|
|
3892
3936
|
this.isMultipleSelect || this.listItems.forEach((i) => i._selected = !1);
|
|
3893
3937
|
const t = this.checkSelection(e);
|
|
3894
3938
|
this.listItems.forEach((i) => {
|
|
3895
|
-
i._selected = t.find((
|
|
3939
|
+
i._selected = t.find((s) => i._value === s) !== void 0;
|
|
3896
3940
|
});
|
|
3897
3941
|
}
|
|
3898
3942
|
},
|
|
@@ -3915,7 +3959,7 @@ const Ui = {
|
|
|
3915
3959
|
}
|
|
3916
3960
|
}
|
|
3917
3961
|
}
|
|
3918
|
-
},
|
|
3962
|
+
}, ll = /* @__PURE__ */ v(il, [["render", tl]]), Be = {
|
|
3919
3963
|
props: {
|
|
3920
3964
|
// Position.
|
|
3921
3965
|
appendTo: { type: [String, Boolean, Object] },
|
|
@@ -3956,7 +4000,7 @@ const Ui = {
|
|
|
3956
4000
|
let e = ".w-app";
|
|
3957
4001
|
typeof this.detachableDefaultRoot == "function" && (e = this.detachableDefaultRoot() || e);
|
|
3958
4002
|
let t = this.appendTo || e;
|
|
3959
|
-
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,
|
|
4003
|
+
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;
|
|
3960
4004
|
},
|
|
3961
4005
|
// DOM element that will receive the tooltip/menu.
|
|
3962
4006
|
// ! \ This computed uses the DOM - NO SSR (only trigger from beforeMount and later).
|
|
@@ -4000,8 +4044,8 @@ const Ui = {
|
|
|
4000
4044
|
},
|
|
4001
4045
|
// ! \ This function uses the DOM - NO SSR (only trigger from beforeMount and later).
|
|
4002
4046
|
getActivatorCoordinates() {
|
|
4003
|
-
const { top: e, left: t, width: i, height:
|
|
4004
|
-
let n = { top: e, left: t, width: i, height:
|
|
4047
|
+
const { top: e, left: t, width: i, height: s } = this.activatorEl.getBoundingClientRect();
|
|
4048
|
+
let n = { top: e, left: t, width: i, height: s };
|
|
4005
4049
|
if (!this.fixed) {
|
|
4006
4050
|
const { top: l, left: a } = this.detachableParentEl.getBoundingClientRect(), r = window.getComputedStyle(this.detachableParentEl, null);
|
|
4007
4051
|
n = {
|
|
@@ -4014,7 +4058,7 @@ const Ui = {
|
|
|
4014
4058
|
},
|
|
4015
4059
|
// ! \ This function uses the DOM - NO SSR (only trigger from beforeMount and later).
|
|
4016
4060
|
computeDetachableCoords() {
|
|
4017
|
-
let { top: e, left: t, width: i, height:
|
|
4061
|
+
let { top: e, left: t, width: i, height: s } = this.getActivatorCoordinates();
|
|
4018
4062
|
if (!this.detachableEl) return;
|
|
4019
4063
|
this.detachableEl.style.visibility = "hidden", this.detachableEl.style.display = "flex";
|
|
4020
4064
|
const n = window.getComputedStyle(this.detachableEl, null);
|
|
@@ -4024,15 +4068,15 @@ const Ui = {
|
|
|
4024
4068
|
break;
|
|
4025
4069
|
}
|
|
4026
4070
|
case "bottom": {
|
|
4027
|
-
e +=
|
|
4071
|
+
e += s, this.alignRight ? t += i - this.detachableEl.offsetWidth + parseInt(n.getPropertyValue("border-right-width")) : this.alignLeft || (t += (i - this.detachableEl.offsetWidth) / 2);
|
|
4028
4072
|
break;
|
|
4029
4073
|
}
|
|
4030
4074
|
case "left": {
|
|
4031
|
-
t -= this.detachableEl.offsetWidth, this.alignBottom ? e +=
|
|
4075
|
+
t -= this.detachableEl.offsetWidth, this.alignBottom ? e += s - this.detachableEl.offsetHeight : this.alignTop || (e += (s - this.detachableEl.offsetHeight) / 2);
|
|
4032
4076
|
break;
|
|
4033
4077
|
}
|
|
4034
4078
|
case "right": {
|
|
4035
|
-
t += i, this.alignBottom ? e +=
|
|
4079
|
+
t += i, this.alignBottom ? e += s - this.detachableEl.offsetHeight + parseInt(n.getPropertyValue("margin-top")) : this.alignTop || (e += (s - this.detachableEl.offsetHeight) / 2 + // top: 50% of activator - half menu height.
|
|
4036
4080
|
parseInt(n.getPropertyValue("margin-top")));
|
|
4037
4081
|
break;
|
|
4038
4082
|
}
|
|
@@ -4064,11 +4108,11 @@ const Ui = {
|
|
|
4064
4108
|
const e = typeof this.activator == "string";
|
|
4065
4109
|
Object.entries(this.activatorEventHandlers).forEach(([t, i]) => {
|
|
4066
4110
|
t = t.replace("mouseenter", "mouseover").replace("mouseleave", "mouseout");
|
|
4067
|
-
const
|
|
4111
|
+
const s = (n) => {
|
|
4068
4112
|
var l;
|
|
4069
4113
|
(e && ((l = n.target) != null && l.matches) && n.target.matches(this.activator) || n.target === this.activatorEl || this.activatorEl.contains(n.target)) && i(n);
|
|
4070
4114
|
};
|
|
4071
|
-
document.addEventListener(t,
|
|
4115
|
+
document.addEventListener(t, s), this.docEventListenersHandlers.push({ eventName: t, handler: s });
|
|
4072
4116
|
});
|
|
4073
4117
|
}
|
|
4074
4118
|
},
|
|
@@ -4092,16 +4136,16 @@ const Ui = {
|
|
|
4092
4136
|
}
|
|
4093
4137
|
}
|
|
4094
4138
|
};
|
|
4095
|
-
function
|
|
4139
|
+
function sl(e, t, i, s, n, l) {
|
|
4096
4140
|
const a = $("w-card"), r = $("w-overlay");
|
|
4097
|
-
return
|
|
4141
|
+
return o(), u(k, null, [
|
|
4098
4142
|
c(e.$slots, "activator", { on: l.activatorEventHandlers }),
|
|
4099
|
-
|
|
4143
|
+
T(P, {
|
|
4100
4144
|
name: l.transitionName,
|
|
4101
4145
|
appear: ""
|
|
4102
4146
|
}, {
|
|
4103
4147
|
default: m(() => [
|
|
4104
|
-
i.custom && e.detachableVisible ? (
|
|
4148
|
+
i.custom && e.detachableVisible ? (o(), u("div", _({
|
|
4105
4149
|
key: 0,
|
|
4106
4150
|
class: "w-menu",
|
|
4107
4151
|
ref: "detachable"
|
|
@@ -4113,7 +4157,7 @@ function Xi(e, t, i, o, n, l) {
|
|
|
4113
4157
|
style: l.styles
|
|
4114
4158
|
}), [
|
|
4115
4159
|
c(e.$slots, "default")
|
|
4116
|
-
], 16)) : e.detachableVisible ? (
|
|
4160
|
+
], 16)) : e.detachableVisible ? (o(), g(a, _({
|
|
4117
4161
|
key: 1,
|
|
4118
4162
|
class: "w-menu",
|
|
4119
4163
|
ref: "detachable"
|
|
@@ -4128,7 +4172,7 @@ function Xi(e, t, i, o, n, l) {
|
|
|
4128
4172
|
"no-border": i.noBorder,
|
|
4129
4173
|
class: l.classes,
|
|
4130
4174
|
style: l.styles
|
|
4131
|
-
}),
|
|
4175
|
+
}), ee({
|
|
4132
4176
|
default: m(() => [
|
|
4133
4177
|
c(e.$slots, "default")
|
|
4134
4178
|
]),
|
|
@@ -4152,7 +4196,7 @@ function Xi(e, t, i, o, n, l) {
|
|
|
4152
4196
|
]),
|
|
4153
4197
|
_: 3
|
|
4154
4198
|
}, 8, ["name"]),
|
|
4155
|
-
i.overlay ? (
|
|
4199
|
+
i.overlay ? (o(), g(r, _({
|
|
4156
4200
|
key: 0,
|
|
4157
4201
|
ref: "overlay",
|
|
4158
4202
|
"model-value": e.detachableVisible,
|
|
@@ -4164,9 +4208,9 @@ function Xi(e, t, i, o, n, l) {
|
|
|
4164
4208
|
}), null, 16, ["model-value", "persistent", "class", "z-index"])) : p("", !0)
|
|
4165
4209
|
], 64);
|
|
4166
4210
|
}
|
|
4167
|
-
const
|
|
4211
|
+
const ol = {
|
|
4168
4212
|
name: "w-menu",
|
|
4169
|
-
mixins: [
|
|
4213
|
+
mixins: [Be],
|
|
4170
4214
|
inheritAttrs: !1,
|
|
4171
4215
|
// The attrs are only bound to the button-partial, not the root.
|
|
4172
4216
|
props: {
|
|
@@ -4337,20 +4381,20 @@ const Yi = {
|
|
|
4337
4381
|
}
|
|
4338
4382
|
}
|
|
4339
4383
|
// watch, mounted & beforeDestroy hooks are set in the detachable.js mixin.
|
|
4340
|
-
},
|
|
4341
|
-
function
|
|
4384
|
+
}, al = /* @__PURE__ */ v(ol, [["render", sl]]);
|
|
4385
|
+
function nl(e, t, i, s, n, l) {
|
|
4342
4386
|
const a = $("w-alert");
|
|
4343
|
-
return
|
|
4387
|
+
return o(), g(P, {
|
|
4344
4388
|
name: l.transitionName,
|
|
4345
4389
|
appear: ""
|
|
4346
4390
|
}, {
|
|
4347
4391
|
default: m(() => [
|
|
4348
|
-
n.show ? (
|
|
4392
|
+
n.show ? (o(), u("div", {
|
|
4349
4393
|
key: 0,
|
|
4350
4394
|
class: f(["w-notification", l.classes]),
|
|
4351
|
-
style:
|
|
4395
|
+
style: R(l.styles)
|
|
4352
4396
|
}, [
|
|
4353
|
-
|
|
4397
|
+
T(a, _(l.alertProps, {
|
|
4354
4398
|
class: l.alertClasses,
|
|
4355
4399
|
"onUpdate:modelValue": t[0] || (t[0] = (r) => {
|
|
4356
4400
|
e.$emit("update:modelValue", !1), e.$emit("input", !1);
|
|
@@ -4366,7 +4410,7 @@ function Ji(e, t, i, o, n, l) {
|
|
|
4366
4410
|
_: 3
|
|
4367
4411
|
}, 8, ["name"]);
|
|
4368
4412
|
}
|
|
4369
|
-
const
|
|
4413
|
+
const rl = {
|
|
4370
4414
|
name: "w-notification",
|
|
4371
4415
|
props: {
|
|
4372
4416
|
// Notification props.
|
|
@@ -4489,34 +4533,34 @@ const Qi = {
|
|
|
4489
4533
|
clearTimeout(this.timeoutId), this.show = e, e && this.timeoutVal && this.countdown();
|
|
4490
4534
|
}
|
|
4491
4535
|
}
|
|
4492
|
-
},
|
|
4493
|
-
function
|
|
4494
|
-
const a =
|
|
4495
|
-
return
|
|
4536
|
+
}, dl = /* @__PURE__ */ v(rl, [["render", nl]]);
|
|
4537
|
+
function ul(e, t, i, s, n, l) {
|
|
4538
|
+
const a = ke("focus");
|
|
4539
|
+
return o(), g(P, {
|
|
4496
4540
|
name: "fade",
|
|
4497
4541
|
appear: "",
|
|
4498
4542
|
onAfterLeave: l.onClose
|
|
4499
4543
|
}, {
|
|
4500
4544
|
default: m(() => [
|
|
4501
|
-
i.modelValue ? W((
|
|
4545
|
+
i.modelValue ? W((o(), u("div", {
|
|
4502
4546
|
key: 0,
|
|
4503
4547
|
class: f(["w-overlay", l.classes]),
|
|
4504
4548
|
ref: "overlay",
|
|
4505
|
-
style:
|
|
4506
|
-
onKeydown: t[0] || (t[0] = E(
|
|
4549
|
+
style: R(i.modelValue && l.styles || null),
|
|
4550
|
+
onKeydown: t[0] || (t[0] = E(M((...r) => l.onClick && l.onClick(...r), ["stop"]), ["escape"])),
|
|
4507
4551
|
onClick: t[1] || (t[1] = (...r) => l.onClick && l.onClick(...r)),
|
|
4508
4552
|
tabindex: "0"
|
|
4509
4553
|
}, [
|
|
4510
4554
|
c(e.$slots, "default")
|
|
4511
4555
|
], 38)), [
|
|
4512
|
-
[
|
|
4556
|
+
[re, e.showOverlay],
|
|
4513
4557
|
[a]
|
|
4514
4558
|
]) : p("", !0)
|
|
4515
4559
|
]),
|
|
4516
4560
|
_: 3
|
|
4517
4561
|
}, 8, ["onAfterLeave"]);
|
|
4518
4562
|
}
|
|
4519
|
-
const
|
|
4563
|
+
const hl = {
|
|
4520
4564
|
name: "w-overlay",
|
|
4521
4565
|
props: {
|
|
4522
4566
|
modelValue: {},
|
|
@@ -4574,26 +4618,26 @@ const tl = {
|
|
|
4574
4618
|
e && (this.showOverlay = !0);
|
|
4575
4619
|
}
|
|
4576
4620
|
}
|
|
4577
|
-
},
|
|
4578
|
-
function
|
|
4579
|
-
return
|
|
4621
|
+
}, cl = /* @__PURE__ */ v(hl, [["render", ul]]), pl = { class: "w-parallax" };
|
|
4622
|
+
function fl(e, t, i, s, n, l) {
|
|
4623
|
+
return o(), u("div", pl);
|
|
4580
4624
|
}
|
|
4581
|
-
const
|
|
4625
|
+
const ml = {
|
|
4582
4626
|
name: "w-parallax",
|
|
4583
4627
|
props: {},
|
|
4584
4628
|
emits: [],
|
|
4585
4629
|
data: () => ({})
|
|
4586
|
-
},
|
|
4587
|
-
function
|
|
4588
|
-
return
|
|
4630
|
+
}, gl = /* @__PURE__ */ v(ml, [["render", fl]]), bl = ["viewBox"], yl = ["cx", "cy", "r", "stroke-dasharray", "stroke-width"], wl = ["cx", "cy", "r", "stroke-width", "stroke-linecap", "stroke-dasharray"];
|
|
4631
|
+
function kl(e, t, i, s, n, l) {
|
|
4632
|
+
return o(), u("div", {
|
|
4589
4633
|
class: f(["w-progress", l.classes]),
|
|
4590
|
-
style:
|
|
4634
|
+
style: R(l.styles)
|
|
4591
4635
|
}, [
|
|
4592
|
-
i.circle ? (
|
|
4636
|
+
i.circle ? (o(), u("svg", {
|
|
4593
4637
|
key: 1,
|
|
4594
4638
|
viewBox: `${l.circleCenter / 2} ${l.circleCenter / 2} ${l.circleCenter} ${l.circleCenter}`
|
|
4595
4639
|
}, [
|
|
4596
|
-
i.bgColor || this.progressValue > -1 ? (
|
|
4640
|
+
i.bgColor || this.progressValue > -1 ? (o(), u("circle", {
|
|
4597
4641
|
key: 0,
|
|
4598
4642
|
class: f(["bg", i.bgColor || null]),
|
|
4599
4643
|
cx: l.circleCenter,
|
|
@@ -4602,8 +4646,8 @@ function ul(e, t, i, o, n, l) {
|
|
|
4602
4646
|
fill: "transparent",
|
|
4603
4647
|
"stroke-dasharray": e.circleCircumference,
|
|
4604
4648
|
"stroke-width": i.stroke
|
|
4605
|
-
}, null, 10,
|
|
4606
|
-
|
|
4649
|
+
}, null, 10, yl)) : p("", !0),
|
|
4650
|
+
w("circle", {
|
|
4607
4651
|
class: "w-progress__progress",
|
|
4608
4652
|
cx: l.circleCenter,
|
|
4609
4653
|
cy: l.circleCenter,
|
|
@@ -4612,14 +4656,14 @@ function ul(e, t, i, o, n, l) {
|
|
|
4612
4656
|
"stroke-width": i.stroke,
|
|
4613
4657
|
"stroke-linecap": i.roundCap && "round",
|
|
4614
4658
|
"stroke-dasharray": e.circleCircumference,
|
|
4615
|
-
style:
|
|
4616
|
-
}, null, 12,
|
|
4617
|
-
], 8,
|
|
4659
|
+
style: R(`stroke-dashoffset: ${(1 - l.progressValue / 100) * e.circleCircumference}`)
|
|
4660
|
+
}, null, 12, wl)
|
|
4661
|
+
], 8, bl)) : (o(), u("div", {
|
|
4618
4662
|
key: 0,
|
|
4619
4663
|
class: f(["w-progress__progress", { full: l.progressValue === 100 }]),
|
|
4620
|
-
style:
|
|
4664
|
+
style: R(`width: ${l.progressValue}%`)
|
|
4621
4665
|
}, null, 6)),
|
|
4622
|
-
i.label || e.$slots.default ? (
|
|
4666
|
+
i.label || e.$slots.default ? (o(), u("div", {
|
|
4623
4667
|
key: 2,
|
|
4624
4668
|
class: f(["w-progress__label", i.labelColor || !1])
|
|
4625
4669
|
}, [
|
|
@@ -4629,7 +4673,7 @@ function ul(e, t, i, o, n, l) {
|
|
|
4629
4673
|
], 2)) : p("", !0)
|
|
4630
4674
|
], 6);
|
|
4631
4675
|
}
|
|
4632
|
-
const
|
|
4676
|
+
const Q = 40, vl = Q / 2, Cl = Math.round(Q * 3.14 * 100) / 100, Sl = {
|
|
4633
4677
|
name: "w-progress",
|
|
4634
4678
|
props: {
|
|
4635
4679
|
modelValue: { type: [Number, String, Boolean], default: -1 },
|
|
@@ -4656,16 +4700,16 @@ const Y = 40, hl = Y / 2, cl = Math.round(Y * 3.14 * 100) / 100, pl = {
|
|
|
4656
4700
|
},
|
|
4657
4701
|
emits: [],
|
|
4658
4702
|
data: () => ({
|
|
4659
|
-
circleSize:
|
|
4660
|
-
circleRadius:
|
|
4661
|
-
circleCircumference:
|
|
4703
|
+
circleSize: Q,
|
|
4704
|
+
circleRadius: vl,
|
|
4705
|
+
circleCircumference: Cl
|
|
4662
4706
|
}),
|
|
4663
4707
|
computed: {
|
|
4664
4708
|
progressValue() {
|
|
4665
4709
|
return parseFloat(this.modelValue);
|
|
4666
4710
|
},
|
|
4667
4711
|
circleCenter() {
|
|
4668
|
-
return
|
|
4712
|
+
return Q + this.stroke;
|
|
4669
4713
|
},
|
|
4670
4714
|
forcedSize() {
|
|
4671
4715
|
return this.size && (isNaN(this.size) ? this.size : `${this.size}px`);
|
|
@@ -4698,9 +4742,9 @@ const Y = 40, hl = Y / 2, cl = Math.round(Y * 3.14 * 100) / 100, pl = {
|
|
|
4698
4742
|
};
|
|
4699
4743
|
}
|
|
4700
4744
|
}
|
|
4701
|
-
},
|
|
4702
|
-
function
|
|
4703
|
-
return
|
|
4745
|
+
}, Bl = /* @__PURE__ */ v(Sl, [["render", kl]]), _l = ["id", "name", "checked", "disabled", "required", "tabindex", "aria-checked"], $l = ["for"], Vl = ["for", "innerHTML"], Il = ["for"], Tl = ["for", "innerHTML"];
|
|
4746
|
+
function Ll(e, t, i, s, n, l) {
|
|
4747
|
+
return o(), g(L(e.formRegister && !l.wRadios ? "w-form-element" : "div"), _({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: e.inputValue, disabled: e.isDisabled, readonly: e.isReadonly }, {
|
|
4704
4748
|
valid: e.valid,
|
|
4705
4749
|
"onUpdate:valid": t[3] || (t[3] = (a) => e.valid = a),
|
|
4706
4750
|
onReset: t[4] || (t[4] = (a) => {
|
|
@@ -4709,7 +4753,7 @@ function kl(e, t, i, o, n, l) {
|
|
|
4709
4753
|
class: l.classes
|
|
4710
4754
|
}), {
|
|
4711
4755
|
default: m(() => [
|
|
4712
|
-
|
|
4756
|
+
w("input", {
|
|
4713
4757
|
ref: "input",
|
|
4714
4758
|
id: `w-radio--${e._.uid}`,
|
|
4715
4759
|
type: "radio",
|
|
@@ -4722,9 +4766,9 @@ function kl(e, t, i, o, n, l) {
|
|
|
4722
4766
|
onChange: t[1] || (t[1] = (a) => l.onInput(a)),
|
|
4723
4767
|
"aria-checked": e.inputValue || "false",
|
|
4724
4768
|
role: "radio"
|
|
4725
|
-
}, null, 40,
|
|
4726
|
-
l.hasLabel && i.labelOnLeft ? (
|
|
4727
|
-
e.$slots.default ? (
|
|
4769
|
+
}, null, 40, _l),
|
|
4770
|
+
l.hasLabel && i.labelOnLeft ? (o(), u(k, { key: 0 }, [
|
|
4771
|
+
e.$slots.default ? (o(), u("label", {
|
|
4728
4772
|
key: 0,
|
|
4729
4773
|
class: f(["w-radio__label w-form-el-shakable pr2", e.labelClasses]),
|
|
4730
4774
|
for: `w-radio--${e._.uid}`
|
|
@@ -4732,21 +4776,21 @@ function kl(e, t, i, o, n, l) {
|
|
|
4732
4776
|
c(e.$slots, "default", {}, () => [
|
|
4733
4777
|
S(C(i.label), 1)
|
|
4734
4778
|
])
|
|
4735
|
-
], 10,
|
|
4779
|
+
], 10, $l)) : i.label ? (o(), u("label", {
|
|
4736
4780
|
key: 1,
|
|
4737
4781
|
class: f(["w-radio__label w-form-el-shakable pr2", e.labelClasses]),
|
|
4738
4782
|
for: `w-radio--${e._.uid}`,
|
|
4739
4783
|
innerHTML: i.label
|
|
4740
|
-
}, null, 10,
|
|
4784
|
+
}, null, 10, Vl)) : p("", !0)
|
|
4741
4785
|
], 64)) : p("", !0),
|
|
4742
|
-
|
|
4786
|
+
w("div", {
|
|
4743
4787
|
class: f(["w-radio__input", this.color]),
|
|
4744
4788
|
onClick: t[2] || (t[2] = (a) => {
|
|
4745
4789
|
e.$refs.input.focus(), e.$refs.input.click();
|
|
4746
4790
|
})
|
|
4747
4791
|
}, null, 2),
|
|
4748
|
-
l.hasLabel && !i.labelOnLeft ? (
|
|
4749
|
-
e.$slots.default ? (
|
|
4792
|
+
l.hasLabel && !i.labelOnLeft ? (o(), u(k, { key: 1 }, [
|
|
4793
|
+
e.$slots.default ? (o(), u("label", {
|
|
4750
4794
|
key: 0,
|
|
4751
4795
|
class: f(["w-radio__label w-form-el-shakable pl2", e.labelClasses]),
|
|
4752
4796
|
for: `w-radio--${e._.uid}`
|
|
@@ -4754,20 +4798,20 @@ function kl(e, t, i, o, n, l) {
|
|
|
4754
4798
|
c(e.$slots, "default", {}, () => [
|
|
4755
4799
|
S(C(i.label), 1)
|
|
4756
4800
|
])
|
|
4757
|
-
], 10,
|
|
4801
|
+
], 10, Il)) : i.label ? (o(), u("label", {
|
|
4758
4802
|
key: 1,
|
|
4759
4803
|
class: f(["w-radio__label w-form-el-shakable pl2", e.labelClasses]),
|
|
4760
4804
|
for: `w-radio--${e._.uid}`,
|
|
4761
4805
|
innerHTML: i.label
|
|
4762
|
-
}, null, 10,
|
|
4806
|
+
}, null, 10, Tl)) : p("", !0)
|
|
4763
4807
|
], 64)) : p("", !0)
|
|
4764
4808
|
]),
|
|
4765
4809
|
_: 3
|
|
4766
4810
|
}, 16, ["valid", "class"]);
|
|
4767
4811
|
}
|
|
4768
|
-
const
|
|
4812
|
+
const Rl = {
|
|
4769
4813
|
name: "w-radio",
|
|
4770
|
-
mixins: [
|
|
4814
|
+
mixins: [z],
|
|
4771
4815
|
inject: { wRadios: { default: null } },
|
|
4772
4816
|
props: {
|
|
4773
4817
|
modelValue: { default: !1 },
|
|
@@ -4830,10 +4874,10 @@ const vl = {
|
|
|
4830
4874
|
this.toggleFromOutside();
|
|
4831
4875
|
}
|
|
4832
4876
|
}
|
|
4833
|
-
},
|
|
4834
|
-
function
|
|
4877
|
+
}, xl = /* @__PURE__ */ v(Rl, [["render", Ll]]), Pl = ["innerHTML"];
|
|
4878
|
+
function Ol(e, t, i, s, n, l) {
|
|
4835
4879
|
const a = $("w-radio");
|
|
4836
|
-
return
|
|
4880
|
+
return o(), g(L(e.formRegister ? "w-form-element" : "div"), _({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: e.inputValue, disabled: e.isDisabled }, {
|
|
4837
4881
|
valid: e.valid,
|
|
4838
4882
|
"onUpdate:valid": t[1] || (t[1] = (r) => e.valid = r),
|
|
4839
4883
|
onReset: t[2] || (t[2] = (r) => {
|
|
@@ -4844,7 +4888,7 @@ function Bl(e, t, i, o, n, l) {
|
|
|
4844
4888
|
class: l.classes
|
|
4845
4889
|
}), {
|
|
4846
4890
|
default: m(() => [
|
|
4847
|
-
(
|
|
4891
|
+
(o(!0), u(k, null, x(l.radioItems, (r, d) => (o(), g(a, _({
|
|
4848
4892
|
key: d,
|
|
4849
4893
|
"model-value": r.value === i.modelValue,
|
|
4850
4894
|
"onUpdate:modelValue": (h) => l.onInput(r),
|
|
@@ -4863,10 +4907,10 @@ function Bl(e, t, i, o, n, l) {
|
|
|
4863
4907
|
index: d + 1,
|
|
4864
4908
|
checked: r.value === i.modelValue,
|
|
4865
4909
|
innerHTML: r.label
|
|
4866
|
-
}) : r.label ? (
|
|
4910
|
+
}) : r.label ? (o(), u("div", {
|
|
4867
4911
|
key: 1,
|
|
4868
4912
|
innerHTML: r.label
|
|
4869
|
-
}, null, 8,
|
|
4913
|
+
}, null, 8, Pl)) : p("", !0)
|
|
4870
4914
|
]),
|
|
4871
4915
|
_: 2
|
|
4872
4916
|
}, 1040, ["model-value", "onUpdate:modelValue", "name", "disabled", "readonly", "class"]))), 128))
|
|
@@ -4874,9 +4918,9 @@ function Bl(e, t, i, o, n, l) {
|
|
|
4874
4918
|
_: 3
|
|
4875
4919
|
}, 16, ["valid", "column", "wrap", "class"]);
|
|
4876
4920
|
}
|
|
4877
|
-
const
|
|
4921
|
+
const Ml = {
|
|
4878
4922
|
name: "w-radios",
|
|
4879
|
-
mixins: [
|
|
4923
|
+
mixins: [z],
|
|
4880
4924
|
props: {
|
|
4881
4925
|
items: { type: Array, required: !0 },
|
|
4882
4926
|
// All the possible options.
|
|
@@ -4927,9 +4971,9 @@ const _l = {
|
|
|
4927
4971
|
return this.items[e._index];
|
|
4928
4972
|
}
|
|
4929
4973
|
}
|
|
4930
|
-
},
|
|
4931
|
-
function
|
|
4932
|
-
return
|
|
4974
|
+
}, zl = /* @__PURE__ */ v(Ml, [["render", Ol]]), El = ["id", "name", "value"], Al = ["disabled", "onMouseenter", "onClick", "tabindex"];
|
|
4975
|
+
function Wl(e, t, i, s, n, l) {
|
|
4976
|
+
return o(), g(L(e.formRegister ? "w-form-element" : "div"), _({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: n.rating, disabled: e.isDisabled, readonly: e.isReadonly }, {
|
|
4933
4977
|
valid: e.valid,
|
|
4934
4978
|
"onUpdate:valid": t[4] || (t[4] = (a) => e.valid = a),
|
|
4935
4979
|
onReset: t[5] || (t[5] = (a) => {
|
|
@@ -4938,18 +4982,18 @@ function Tl(e, t, i, o, n, l) {
|
|
|
4938
4982
|
class: l.classes
|
|
4939
4983
|
}), {
|
|
4940
4984
|
default: m(() => [
|
|
4941
|
-
|
|
4985
|
+
w("input", {
|
|
4942
4986
|
id: e.inputName,
|
|
4943
4987
|
name: e.inputName,
|
|
4944
4988
|
type: "hidden",
|
|
4945
4989
|
value: n.rating
|
|
4946
|
-
}, null, 8,
|
|
4947
|
-
(
|
|
4990
|
+
}, null, 8, El),
|
|
4991
|
+
(o(!0), u(k, null, x(i.max, (a) => (o(), u(k, { key: a }, [
|
|
4948
4992
|
e.$slots.item ? c(e.$slots, "item", {
|
|
4949
4993
|
key: 0,
|
|
4950
4994
|
index: a + 1
|
|
4951
4995
|
}) : p("", !0),
|
|
4952
|
-
|
|
4996
|
+
w("button", {
|
|
4953
4997
|
class: f(["w-rating__button", l.buttonClasses(a)]),
|
|
4954
4998
|
disabled: e.isDisabled || e.isReadonly,
|
|
4955
4999
|
onMouseenter: (r) => n.hover = a,
|
|
@@ -4961,22 +5005,22 @@ function Tl(e, t, i, o, n, l) {
|
|
|
4961
5005
|
type: "button",
|
|
4962
5006
|
tabindex: a === 1 ? 0 : -1
|
|
4963
5007
|
}, [
|
|
4964
|
-
a - 1 === ~~n.rating && n.rating - ~~n.rating ? (
|
|
5008
|
+
a - 1 === ~~n.rating && n.rating - ~~n.rating ? (o(), u("i", {
|
|
4965
5009
|
key: 0,
|
|
4966
5010
|
class: f(["w-icon", `${i.icon} ${i.color}`]),
|
|
4967
5011
|
role: "icon",
|
|
4968
5012
|
"aria-hidden": "true",
|
|
4969
|
-
style:
|
|
5013
|
+
style: R(l.halfStarStyle)
|
|
4970
5014
|
}, null, 6)) : p("", !0)
|
|
4971
|
-
], 42,
|
|
5015
|
+
], 42, Al)
|
|
4972
5016
|
], 64))), 128))
|
|
4973
5017
|
]),
|
|
4974
5018
|
_: 3
|
|
4975
5019
|
}, 16, ["valid", "class"]);
|
|
4976
5020
|
}
|
|
4977
|
-
const
|
|
5021
|
+
const Kl = {
|
|
4978
5022
|
name: "w-rating",
|
|
4979
|
-
mixins: [
|
|
5023
|
+
mixins: [z],
|
|
4980
5024
|
props: {
|
|
4981
5025
|
modelValue: {},
|
|
4982
5026
|
max: { type: [Number, String], default: 5 },
|
|
@@ -5068,10 +5112,10 @@ const Ll = {
|
|
|
5068
5112
|
this.rating = parseFloat(e);
|
|
5069
5113
|
}
|
|
5070
5114
|
}
|
|
5071
|
-
},
|
|
5072
|
-
function
|
|
5073
|
-
return
|
|
5074
|
-
|
|
5115
|
+
}, Nl = /* @__PURE__ */ v(Kl, [["render", Wl]]);
|
|
5116
|
+
function Dl(e, t, i, s, n, l) {
|
|
5117
|
+
return o(), u(k, null, [
|
|
5118
|
+
w("div", _({
|
|
5075
5119
|
class: ["w-scrollable", l.scrollableClasses],
|
|
5076
5120
|
ref: "scrollable",
|
|
5077
5121
|
onMouseenter: t[0] || (t[0] = (...a) => l.onMouseEnter && l.onMouseEnter(...a)),
|
|
@@ -5080,20 +5124,20 @@ function Pl(e, t, i, o, n, l) {
|
|
|
5080
5124
|
}, e.$attrs, { style: l.scrollableStyles }), [
|
|
5081
5125
|
c(e.$slots, "default")
|
|
5082
5126
|
], 16),
|
|
5083
|
-
|
|
5127
|
+
w("div", {
|
|
5084
5128
|
class: f(["w-scrollbar", l.scrollbarClasses]),
|
|
5085
5129
|
ref: "track",
|
|
5086
5130
|
onMousedown: t[3] || (t[3] = (...a) => l.onTrackMouseDown && l.onTrackMouseDown(...a))
|
|
5087
5131
|
}, [
|
|
5088
|
-
|
|
5132
|
+
w("div", {
|
|
5089
5133
|
class: "w-scrollbar__thumb",
|
|
5090
5134
|
ref: "thumb",
|
|
5091
|
-
style:
|
|
5135
|
+
style: R(l.thumbStyles)
|
|
5092
5136
|
}, null, 4)
|
|
5093
5137
|
], 34)
|
|
5094
5138
|
], 64);
|
|
5095
5139
|
}
|
|
5096
|
-
const
|
|
5140
|
+
const Hl = {
|
|
5097
5141
|
h: {
|
|
5098
5142
|
direction: "horizontal",
|
|
5099
5143
|
topOrLeft: "left",
|
|
@@ -5116,7 +5160,7 @@ const Ol = {
|
|
|
5116
5160
|
deltaXorY: "deltaY",
|
|
5117
5161
|
scrollTopOrLeft: "scrollTop"
|
|
5118
5162
|
}
|
|
5119
|
-
},
|
|
5163
|
+
}, Fl = {
|
|
5120
5164
|
name: "w-scrollable",
|
|
5121
5165
|
props: {
|
|
5122
5166
|
color: { type: String, default: "primary" },
|
|
@@ -5136,11 +5180,11 @@ const Ol = {
|
|
|
5136
5180
|
}),
|
|
5137
5181
|
computed: {
|
|
5138
5182
|
isHorizontal() {
|
|
5139
|
-
var e, t, i,
|
|
5140
|
-
return this.mounted ? (console.log("💂♂️", (e = this.$refs.scrollable) == null ? void 0 : e.scrollWidth, (t = this.$refs.scrollable) == null ? void 0 : t.offsetWidth), this.width && !this.height || ((i = this.$refs.scrollable) == null ? void 0 : i.scrollWidth) > ((
|
|
5183
|
+
var e, t, i, s;
|
|
5184
|
+
return this.mounted ? (console.log("💂♂️", (e = this.$refs.scrollable) == null ? void 0 : e.scrollWidth, (t = this.$refs.scrollable) == null ? void 0 : t.offsetWidth), this.width && !this.height || ((i = this.$refs.scrollable) == null ? void 0 : i.scrollWidth) > ((s = this.$refs.scrollable) == null ? void 0 : s.offsetWidth)) : !1;
|
|
5141
5185
|
},
|
|
5142
5186
|
m() {
|
|
5143
|
-
return
|
|
5187
|
+
return Hl[this.isHorizontal ? "h" : "v"];
|
|
5144
5188
|
},
|
|
5145
5189
|
scrollableClasses() {
|
|
5146
5190
|
return {
|
|
@@ -5172,8 +5216,8 @@ const Ol = {
|
|
|
5172
5216
|
methods: {
|
|
5173
5217
|
onTrackMouseDown(e) {
|
|
5174
5218
|
if (this.isDisabled || this.isReadonly || "ontouchstart" in window && e.type === "mousedown") return;
|
|
5175
|
-
const { top: t, left: i, width:
|
|
5176
|
-
this.isHorizontal ? (this.$refs.track.width =
|
|
5219
|
+
const { top: t, left: i, width: s, height: n } = this.$refs.track.getBoundingClientRect();
|
|
5220
|
+
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 });
|
|
5177
5221
|
},
|
|
5178
5222
|
onDrag(e) {
|
|
5179
5223
|
this.computeScroll(e.type === "touchmove" ? e.touches[0][this.m.clientXorY] : e[this.m.clientXorY]), this.scroll();
|
|
@@ -5193,7 +5237,7 @@ const Ol = {
|
|
|
5193
5237
|
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()));
|
|
5194
5238
|
},
|
|
5195
5239
|
computeScroll(e) {
|
|
5196
|
-
const { top: t, left: i, width:
|
|
5240
|
+
const { top: t, left: i, width: s, height: n } = this.$refs.scrollable.getBoundingClientRect(), l = this.isHorizontal ? i : t, a = this.isHorizontal ? s : n;
|
|
5197
5241
|
this.scrollValuePercent = Math.max(0, Math.min((e - l) / a * 100, 100));
|
|
5198
5242
|
},
|
|
5199
5243
|
scroll() {
|
|
@@ -5209,13 +5253,13 @@ const Ol = {
|
|
|
5209
5253
|
const { top: e, left: t } = this.$refs.scrollable.getBoundingClientRect();
|
|
5210
5254
|
this.scrollable.top = e, this.scrollable.left = t, this.$el.parentNode.style.position = "relative", this.$el.parentNode.style.padding = 0, window.addEventListener("resize", this.onResize);
|
|
5211
5255
|
}
|
|
5212
|
-
},
|
|
5256
|
+
}, jl = /* @__PURE__ */ v(Fl, [["render", Dl]]), Ul = ["aria-expanded", "aria-owns", "aria-activedescendant"], ql = {
|
|
5213
5257
|
key: 0,
|
|
5214
5258
|
class: "w-select__selection-slot"
|
|
5215
|
-
},
|
|
5216
|
-
function
|
|
5259
|
+
}, Xl = ["innerHTML"], Yl = ["value", "name"];
|
|
5260
|
+
function Gl(e, t, i, s, n, l) {
|
|
5217
5261
|
const a = $("w-icon"), r = $("w-list"), d = $("w-menu");
|
|
5218
|
-
return
|
|
5262
|
+
return o(), g(L(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 }, {
|
|
5219
5263
|
valid: e.valid,
|
|
5220
5264
|
"onUpdate:valid": t[12] || (t[12] = (h) => e.valid = h),
|
|
5221
5265
|
onReset: l.onReset,
|
|
@@ -5223,8 +5267,8 @@ function Kl(e, t, i, o, n, l) {
|
|
|
5223
5267
|
class: l.classes
|
|
5224
5268
|
}), {
|
|
5225
5269
|
default: m(() => [
|
|
5226
|
-
i.labelPosition === "left" ? (
|
|
5227
|
-
e.$slots.default || i.label ? (
|
|
5270
|
+
i.labelPosition === "left" ? (o(), u(k, { key: 0 }, [
|
|
5271
|
+
e.$slots.default || i.label ? (o(), u("label", {
|
|
5228
5272
|
key: 0,
|
|
5229
5273
|
class: f(["w-select__label w-select__label--left w-form-el-shakable", e.labelClasses]),
|
|
5230
5274
|
onClick: t[0] || (t[0] = (h) => e.$refs["selection-input"].click())
|
|
@@ -5234,7 +5278,7 @@ function Kl(e, t, i, o, n, l) {
|
|
|
5234
5278
|
])
|
|
5235
5279
|
], 2)) : p("", !0)
|
|
5236
5280
|
], 64)) : p("", !0),
|
|
5237
|
-
|
|
5281
|
+
T(d, _({
|
|
5238
5282
|
modelValue: e.showMenu,
|
|
5239
5283
|
"onUpdate:modelValue": t[10] || (t[10] = (h) => e.showMenu = h),
|
|
5240
5284
|
onClose: l.closeMenu,
|
|
@@ -5246,7 +5290,7 @@ function Kl(e, t, i, o, n, l) {
|
|
|
5246
5290
|
"min-width": "activator"
|
|
5247
5291
|
}, i.menuProps || {}), {
|
|
5248
5292
|
activator: m(() => [
|
|
5249
|
-
|
|
5293
|
+
w("div", {
|
|
5250
5294
|
class: f(["w-select__selection-wrap", l.inputWrapClasses]),
|
|
5251
5295
|
onClick: t[6] || (t[6] = (h) => !e.isDisabled && !e.isReadonly && l.onInputFieldClick()),
|
|
5252
5296
|
role: "button",
|
|
@@ -5256,7 +5300,7 @@ function Kl(e, t, i, o, n, l) {
|
|
|
5256
5300
|
"aria-activedescendant": `w-select-menu--${e._.uid}_item-1`
|
|
5257
5301
|
}, [
|
|
5258
5302
|
c(e.$slots, "icon-left", {}, () => [
|
|
5259
|
-
i.innerIconLeft ? (
|
|
5303
|
+
i.innerIconLeft ? (o(), g(a, {
|
|
5260
5304
|
key: 0,
|
|
5261
5305
|
class: "w-select__icon w-select__icon--inner-left",
|
|
5262
5306
|
tag: "label",
|
|
@@ -5268,26 +5312,26 @@ function Kl(e, t, i, o, n, l) {
|
|
|
5268
5312
|
_: 1
|
|
5269
5313
|
})) : p("", !0)
|
|
5270
5314
|
]),
|
|
5271
|
-
e.$slots.selection ? (
|
|
5315
|
+
e.$slots.selection ? (o(), u("div", ql, [
|
|
5272
5316
|
c(e.$slots, "selection", {
|
|
5273
5317
|
item: i.multiple ? e.inputValue : e.inputValue[0]
|
|
5274
5318
|
})
|
|
5275
5319
|
])) : p("", !0),
|
|
5276
|
-
|
|
5320
|
+
w("div", _({
|
|
5277
5321
|
class: "w-select__selection",
|
|
5278
5322
|
ref: "selection-input",
|
|
5279
5323
|
onFocus: t[2] || (t[2] = (h) => !e.isDisabled && !e.isReadonly && l.onFocus(h)),
|
|
5280
5324
|
onBlur: t[3] || (t[3] = (...h) => l.onBlur && l.onBlur(...h)),
|
|
5281
5325
|
onKeydown: t[4] || (t[4] = (h) => !e.isDisabled && !e.isReadonly && l.onKeydown(h))
|
|
5282
|
-
}, l.selectionAttributes, { innerHTML: l.selectionHtml }), null, 16,
|
|
5283
|
-
(
|
|
5284
|
-
key:
|
|
5326
|
+
}, l.selectionAttributes, { innerHTML: l.selectionHtml }), null, 16, Xl),
|
|
5327
|
+
(o(!0), u(k, null, x(e.inputValue.length ? e.inputValue : [{}], (h, y) => (o(), u("input", {
|
|
5328
|
+
key: y,
|
|
5285
5329
|
type: "hidden",
|
|
5286
5330
|
value: h.value === void 0 ? "" : h.value.toString(),
|
|
5287
5331
|
name: e.inputName + (i.multiple ? "[]" : "")
|
|
5288
|
-
}, null, 8,
|
|
5289
|
-
i.labelPosition === "inside" && l.showLabelInside ? (
|
|
5290
|
-
e.$slots.default || i.label ? (
|
|
5332
|
+
}, null, 8, Yl))), 128)),
|
|
5333
|
+
i.labelPosition === "inside" && l.showLabelInside ? (o(), u(k, { key: 1 }, [
|
|
5334
|
+
e.$slots.default || i.label ? (o(), u("label", {
|
|
5291
5335
|
key: 0,
|
|
5292
5336
|
class: f(["w-select__label w-select__label--inside w-form-el-shakable", e.labelClasses])
|
|
5293
5337
|
}, [
|
|
@@ -5297,7 +5341,7 @@ function Kl(e, t, i, o, n, l) {
|
|
|
5297
5341
|
], 2)) : p("", !0)
|
|
5298
5342
|
], 64)) : p("", !0),
|
|
5299
5343
|
c(e.$slots, "icon-right", {}, () => [
|
|
5300
|
-
i.innerIconRight ? (
|
|
5344
|
+
i.innerIconRight ? (o(), g(a, {
|
|
5301
5345
|
key: 0,
|
|
5302
5346
|
class: "w-select__icon w-select__icon--inner-right",
|
|
5303
5347
|
tag: "label",
|
|
@@ -5309,10 +5353,10 @@ function Kl(e, t, i, o, n, l) {
|
|
|
5309
5353
|
_: 1
|
|
5310
5354
|
})) : p("", !0)
|
|
5311
5355
|
])
|
|
5312
|
-
], 10,
|
|
5356
|
+
], 10, Ul)
|
|
5313
5357
|
]),
|
|
5314
5358
|
default: m(() => [
|
|
5315
|
-
|
|
5359
|
+
T(r, {
|
|
5316
5360
|
ref: "w-list",
|
|
5317
5361
|
"model-value": e.inputValue,
|
|
5318
5362
|
"onUpdate:modelValue": l.onInput,
|
|
@@ -5331,24 +5375,24 @@ function Kl(e, t, i, o, n, l) {
|
|
|
5331
5375
|
"item-color-key": i.itemColorKey,
|
|
5332
5376
|
role: "listbox",
|
|
5333
5377
|
tabindex: "-1"
|
|
5334
|
-
},
|
|
5335
|
-
|
|
5378
|
+
}, ee({ _: 2 }, [
|
|
5379
|
+
x(i.items.length, (h) => ({
|
|
5336
5380
|
name: `item.${h}`,
|
|
5337
|
-
fn: m(({ item:
|
|
5338
|
-
e.$slots[`item.${h}`] && e.$slots[`item.${h}`](
|
|
5381
|
+
fn: m(({ item: y, selected: B, index: b }) => [
|
|
5382
|
+
e.$slots[`item.${h}`] && e.$slots[`item.${h}`](y, B, b) ? c(e.$slots, `item.${h}`, {
|
|
5339
5383
|
key: 0,
|
|
5340
|
-
item:
|
|
5341
|
-
selected:
|
|
5384
|
+
item: y,
|
|
5385
|
+
selected: B,
|
|
5342
5386
|
index: b
|
|
5343
5387
|
}, () => [
|
|
5344
|
-
S(C(
|
|
5388
|
+
S(C(y[i.itemLabelKey]), 1)
|
|
5345
5389
|
]) : c(e.$slots, "item", {
|
|
5346
5390
|
key: 1,
|
|
5347
|
-
item:
|
|
5348
|
-
selected:
|
|
5391
|
+
item: y,
|
|
5392
|
+
selected: B,
|
|
5349
5393
|
index: b
|
|
5350
5394
|
}, () => [
|
|
5351
|
-
S(C(
|
|
5395
|
+
S(C(y[i.itemLabelKey]), 1)
|
|
5352
5396
|
])
|
|
5353
5397
|
])
|
|
5354
5398
|
}))
|
|
@@ -5356,8 +5400,8 @@ function Kl(e, t, i, o, n, l) {
|
|
|
5356
5400
|
]),
|
|
5357
5401
|
_: 3
|
|
5358
5402
|
}, 16, ["modelValue", "onClose", "menu-class", "append-to"]),
|
|
5359
|
-
i.labelPosition === "right" ? (
|
|
5360
|
-
e.$slots.default || i.label ? (
|
|
5403
|
+
i.labelPosition === "right" ? (o(), u(k, { key: 1 }, [
|
|
5404
|
+
e.$slots.default || i.label ? (o(), u("label", {
|
|
5361
5405
|
key: 0,
|
|
5362
5406
|
class: f(["w-select__label w-select__label--right w-form-el-shakable", e.labelClasses]),
|
|
5363
5407
|
onClick: t[11] || (t[11] = (h) => e.$refs["selection-input"].click())
|
|
@@ -5371,9 +5415,9 @@ function Kl(e, t, i, o, n, l) {
|
|
|
5371
5415
|
_: 3
|
|
5372
5416
|
}, 16, ["valid", "onReset", "wrap", "class"]);
|
|
5373
5417
|
}
|
|
5374
|
-
const
|
|
5418
|
+
const Jl = {
|
|
5375
5419
|
name: "w-select",
|
|
5376
|
-
mixins: [
|
|
5420
|
+
mixins: [z],
|
|
5377
5421
|
props: {
|
|
5378
5422
|
items: { type: Array, required: !0 },
|
|
5379
5423
|
modelValue: {},
|
|
@@ -5516,7 +5560,7 @@ const Nl = {
|
|
|
5516
5560
|
const n = e.keyCode === 38 ? -1 : 1;
|
|
5517
5561
|
t = (t + i.length + n) % i.length;
|
|
5518
5562
|
}
|
|
5519
|
-
let
|
|
5563
|
+
let s = !1;
|
|
5520
5564
|
if (i[t].disabled) {
|
|
5521
5565
|
const n = e.keyCode === 38 ? -1 : 1;
|
|
5522
5566
|
let l = (t + n + i.length) % i.length;
|
|
@@ -5524,9 +5568,9 @@ const Nl = {
|
|
|
5524
5568
|
let r = 0;
|
|
5525
5569
|
for (; r < a && i[l].disabled; )
|
|
5526
5570
|
l = (l + i.length + n) % i.length, r++;
|
|
5527
|
-
r >= a && (
|
|
5571
|
+
r >= a && (s = !0), t = l;
|
|
5528
5572
|
}
|
|
5529
|
-
|
|
5573
|
+
s || this.onInput(i[t]);
|
|
5530
5574
|
}
|
|
5531
5575
|
else e.key.length === 1 && this.focusItemOnQuickLookup(e);
|
|
5532
5576
|
},
|
|
@@ -5534,14 +5578,14 @@ const Nl = {
|
|
|
5534
5578
|
e.key.length === 1 && this.focusItemOnQuickLookup(e);
|
|
5535
5579
|
},
|
|
5536
5580
|
focusItemOnQuickLookup(e) {
|
|
5537
|
-
var
|
|
5581
|
+
var s, n, l;
|
|
5538
5582
|
this.quickLookup.timeout && clearTimeout(this.quickLookup.timeout), this.quickLookup.timeout = setTimeout(() => this.quickLookup.string = "", 1e3), this.quickLookup.string += e.key;
|
|
5539
5583
|
const t = new RegExp(`^${this.quickLookup.string}`, "i"), i = this.selectItems.findIndex(
|
|
5540
5584
|
(a) => !a.disabled && a[this.itemLabelKey].match(t)
|
|
5541
5585
|
) + 1;
|
|
5542
5586
|
if (i) {
|
|
5543
5587
|
const a = `.w-list__item:nth-child(${i}) .w-list__item-label`;
|
|
5544
|
-
(l = (n = (
|
|
5588
|
+
(l = (n = (s = this.$refs["w-list"]) == null ? void 0 : s.$el) == null ? void 0 : n.querySelector(a)) == null || l.focus();
|
|
5545
5589
|
}
|
|
5546
5590
|
},
|
|
5547
5591
|
// The items are given by the w-list component.
|
|
@@ -5569,8 +5613,8 @@ const Nl = {
|
|
|
5569
5613
|
e = Array.isArray(e) ? e : e !== void 0 ? [e] : [];
|
|
5570
5614
|
const t = this.selectItems.map((i) => i.value);
|
|
5571
5615
|
return e.map((i) => {
|
|
5572
|
-
let
|
|
5573
|
-
return i && typeof i == "object" && (
|
|
5616
|
+
let s = i;
|
|
5617
|
+
return i && typeof i == "object" && (s = i[this.itemValueKey] ?? i[this.itemLabelKey] ?? i), this.selectItems[t.indexOf(s)];
|
|
5574
5618
|
}).filter((i) => i !== void 0);
|
|
5575
5619
|
},
|
|
5576
5620
|
// Open the dropdown selection list.
|
|
@@ -5601,12 +5645,12 @@ const Nl = {
|
|
|
5601
5645
|
this.inputValue = this.checkSelection(this.modelValue);
|
|
5602
5646
|
}
|
|
5603
5647
|
}
|
|
5604
|
-
},
|
|
5648
|
+
}, Ql = /* @__PURE__ */ v(Jl, [["render", Gl]]), Zl = ["for"], es = ["for", "innerHTML"], ts = { class: "w-slider__track-wrap" }, is = ["aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-readonly"], ls = ["id", "name", "model-value", "disabled", "readonly", "aria-readonly", "tabindex"], ss = ["for"], os = { key: 0 }, as = {
|
|
5605
5649
|
key: 0,
|
|
5606
5650
|
class: "w-slider__step-labels"
|
|
5607
|
-
},
|
|
5608
|
-
function
|
|
5609
|
-
return
|
|
5651
|
+
}, ns = ["onClick"], rs = ["for"], ds = ["for", "innerHTML"];
|
|
5652
|
+
function us(e, t, i, s, n, l) {
|
|
5653
|
+
return o(), g(L(e.formRegister ? "w-form-element" : "div"), _({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: e.rangeValueScaled, disabled: e.isDisabled, readonly: e.isReadonly }, {
|
|
5610
5654
|
valid: e.valid,
|
|
5611
5655
|
"onUpdate:valid": t[8] || (t[8] = (a) => e.valid = a),
|
|
5612
5656
|
onReset: t[9] || (t[9] = (a) => {
|
|
@@ -5616,20 +5660,20 @@ function es(e, t, i, o, n, l) {
|
|
|
5616
5660
|
class: l.wrapperClasses
|
|
5617
5661
|
}), {
|
|
5618
5662
|
default: m(() => [
|
|
5619
|
-
e.$slots["label-left"] ? (
|
|
5663
|
+
e.$slots["label-left"] ? (o(), u("label", {
|
|
5620
5664
|
key: 0,
|
|
5621
5665
|
class: f(["w-slider__label w-slider__label--left w-form-el-shakable", e.labelClasses]),
|
|
5622
5666
|
for: `button--${e._.uid}`
|
|
5623
5667
|
}, [
|
|
5624
5668
|
c(e.$slots, "label-left")
|
|
5625
|
-
], 10,
|
|
5669
|
+
], 10, Zl)) : i.labelLeft ? (o(), u("label", {
|
|
5626
5670
|
key: 1,
|
|
5627
5671
|
class: f(["w-slider__label w-slider__label--left w-form-el-shakable", e.labelClasses]),
|
|
5628
5672
|
for: `button--${e._.uid}`,
|
|
5629
5673
|
innerHTML: i.labelLeft
|
|
5630
|
-
}, null, 10,
|
|
5631
|
-
|
|
5632
|
-
|
|
5674
|
+
}, null, 10, es)) : p("", !0),
|
|
5675
|
+
w("div", ts, [
|
|
5676
|
+
w("div", {
|
|
5633
5677
|
class: f(["w-slider__track", l.trackClasses]),
|
|
5634
5678
|
ref: "track",
|
|
5635
5679
|
onMousedown: t[4] || (t[4] = (...a) => l.onTrackMouseDown && l.onTrackMouseDown(...a)),
|
|
@@ -5642,15 +5686,15 @@ function es(e, t, i, o, n, l) {
|
|
|
5642
5686
|
"aria-readonly": e.isReadonly ? "true" : "false",
|
|
5643
5687
|
"aria-orientation": "horizontal"
|
|
5644
5688
|
}, [
|
|
5645
|
-
|
|
5689
|
+
w("div", {
|
|
5646
5690
|
class: f(["w-slider__range", l.rangeClasses]),
|
|
5647
|
-
style:
|
|
5691
|
+
style: R(l.rangeStyles)
|
|
5648
5692
|
}, null, 6),
|
|
5649
|
-
|
|
5693
|
+
w("div", {
|
|
5650
5694
|
class: "w-slider__thumb",
|
|
5651
|
-
style:
|
|
5695
|
+
style: R(l.thumbStyles)
|
|
5652
5696
|
}, [
|
|
5653
|
-
|
|
5697
|
+
w("button", {
|
|
5654
5698
|
class: f(["w-slider__thumb-button", [i.color]]),
|
|
5655
5699
|
ref: "thumb",
|
|
5656
5700
|
id: `button--${e._.uid}`,
|
|
@@ -5665,15 +5709,15 @@ function es(e, t, i, o, n, l) {
|
|
|
5665
5709
|
t[1] || (t[1] = E((a) => l.onKeyDown(a, 1), ["right"]))
|
|
5666
5710
|
],
|
|
5667
5711
|
onFocus: t[2] || (t[2] = (a) => e.$emit("focus", a)),
|
|
5668
|
-
onClick: t[3] || (t[3] =
|
|
5712
|
+
onClick: t[3] || (t[3] = M(() => {
|
|
5669
5713
|
}, ["prevent"]))
|
|
5670
|
-
}, null, 42,
|
|
5671
|
-
i.thumbLabel ? (
|
|
5714
|
+
}, null, 42, ls),
|
|
5715
|
+
i.thumbLabel ? (o(), u("label", {
|
|
5672
5716
|
key: 0,
|
|
5673
5717
|
class: f(["w-slider__thumb-label", l.thumbClasses]),
|
|
5674
5718
|
for: `button--${e._.uid}`
|
|
5675
5719
|
}, [
|
|
5676
|
-
i.thumbLabel === "droplet" ? (
|
|
5720
|
+
i.thumbLabel === "droplet" ? (o(), u("div", os, [
|
|
5677
5721
|
c(e.$slots, "label", { value: e.rangeValueScaled }, () => [
|
|
5678
5722
|
S(C(~~e.rangeValueScaled), 1)
|
|
5679
5723
|
])
|
|
@@ -5683,21 +5727,21 @@ function es(e, t, i, o, n, l) {
|
|
|
5683
5727
|
}, () => [
|
|
5684
5728
|
S(C(~~e.rangeValueScaled), 1)
|
|
5685
5729
|
])
|
|
5686
|
-
], 10,
|
|
5730
|
+
], 10, ss)) : p("", !0)
|
|
5687
5731
|
], 4)
|
|
5688
|
-
], 42,
|
|
5689
|
-
i.stepLabels && i.step ? (
|
|
5690
|
-
|
|
5732
|
+
], 42, is),
|
|
5733
|
+
i.stepLabels && i.step ? (o(), u("div", as, [
|
|
5734
|
+
w("div", {
|
|
5691
5735
|
class: "w-slider__step-label",
|
|
5692
5736
|
onClick: t[6] || (t[6] = (a) => l.onStepLabelClick(0))
|
|
5693
5737
|
}, C(this.minVal), 1),
|
|
5694
|
-
(
|
|
5738
|
+
(o(!0), u(k, null, x(~~l.numberOfSteps, (a) => (o(), u("div", {
|
|
5695
5739
|
class: "w-slider__step-label",
|
|
5696
5740
|
key: a,
|
|
5697
5741
|
onClick: (r) => l.onStepLabelClick(a * (100 / l.numberOfSteps)),
|
|
5698
|
-
style:
|
|
5699
|
-
}, C(l.percentToScaled(a * (100 / l.numberOfSteps))), 13,
|
|
5700
|
-
~~l.numberOfSteps !== l.numberOfSteps ? (
|
|
5742
|
+
style: R(`left: ${a * (100 / l.numberOfSteps)}%`)
|
|
5743
|
+
}, C(l.percentToScaled(a * (100 / l.numberOfSteps))), 13, ns))), 128)),
|
|
5744
|
+
~~l.numberOfSteps !== l.numberOfSteps ? (o(), u("div", {
|
|
5701
5745
|
key: 0,
|
|
5702
5746
|
class: "w-slider__step-label",
|
|
5703
5747
|
onClick: t[7] || (t[7] = (a) => l.onStepLabelClick(100)),
|
|
@@ -5705,25 +5749,25 @@ function es(e, t, i, o, n, l) {
|
|
|
5705
5749
|
}, C(this.maxVal), 1)) : p("", !0)
|
|
5706
5750
|
])) : p("", !0)
|
|
5707
5751
|
]),
|
|
5708
|
-
e.$slots["label-right"] ? (
|
|
5752
|
+
e.$slots["label-right"] ? (o(), u("label", {
|
|
5709
5753
|
key: 2,
|
|
5710
5754
|
class: f(["w-slider__label w-slider__label--right w-form-el-shakable", e.labelClasses]),
|
|
5711
5755
|
for: `button--${e._.uid}`
|
|
5712
5756
|
}, [
|
|
5713
5757
|
c(e.$slots, "label-right")
|
|
5714
|
-
], 10,
|
|
5758
|
+
], 10, rs)) : i.labelRight ? (o(), u("label", {
|
|
5715
5759
|
key: 3,
|
|
5716
5760
|
class: f(["w-slider__label w-slider__label--right w-form-el-shakable", e.labelClasses]),
|
|
5717
5761
|
for: `button--${e._.uid}`,
|
|
5718
5762
|
innerHTML: i.labelRight
|
|
5719
|
-
}, null, 10,
|
|
5763
|
+
}, null, 10, ds)) : p("", !0)
|
|
5720
5764
|
]),
|
|
5721
5765
|
_: 3
|
|
5722
5766
|
}, 16, ["valid", "wrap", "class"]);
|
|
5723
5767
|
}
|
|
5724
|
-
const
|
|
5768
|
+
const hs = {
|
|
5725
5769
|
name: "w-slider",
|
|
5726
|
-
mixins: [
|
|
5770
|
+
mixins: [z],
|
|
5727
5771
|
props: {
|
|
5728
5772
|
modelValue: { type: Number, default: 0 },
|
|
5729
5773
|
color: { type: String, default: "primary" },
|
|
@@ -5858,17 +5902,17 @@ const ts = {
|
|
|
5858
5902
|
this.rangeValueScaled !== e && (this.rangeValueScaled = e, this.rangeValuePercent = this.scaledToPercent(e));
|
|
5859
5903
|
}
|
|
5860
5904
|
}
|
|
5861
|
-
},
|
|
5862
|
-
function
|
|
5863
|
-
return i.modelValue || i.modelValue === void 0 ? (
|
|
5905
|
+
}, cs = /* @__PURE__ */ v(hs, [["render", us]]), ps = { key: 0 };
|
|
5906
|
+
function fs(e, t, i, s, n, l) {
|
|
5907
|
+
return i.modelValue || i.modelValue === void 0 ? (o(), u("div", {
|
|
5864
5908
|
key: 0,
|
|
5865
5909
|
class: f(["w-spinner", l.classes]),
|
|
5866
|
-
style:
|
|
5910
|
+
style: R(l.styles)
|
|
5867
5911
|
}, [
|
|
5868
|
-
l.isThreeDots ? (
|
|
5912
|
+
l.isThreeDots ? (o(), u("span", ps)) : p("", !0)
|
|
5869
5913
|
], 6)) : p("", !0);
|
|
5870
5914
|
}
|
|
5871
|
-
const
|
|
5915
|
+
const ms = {
|
|
5872
5916
|
name: "w-spinner",
|
|
5873
5917
|
props: {
|
|
5874
5918
|
modelValue: {},
|
|
@@ -5906,13 +5950,13 @@ const os = {
|
|
|
5906
5950
|
};
|
|
5907
5951
|
}
|
|
5908
5952
|
}
|
|
5909
|
-
},
|
|
5910
|
-
function
|
|
5911
|
-
return
|
|
5953
|
+
}, gs = /* @__PURE__ */ v(ms, [["render", fs]]);
|
|
5954
|
+
function bs(e, t, i, s, n, l) {
|
|
5955
|
+
return o(), u("div", {
|
|
5912
5956
|
class: f(["w-steps", l.classes])
|
|
5913
5957
|
}, null, 2);
|
|
5914
5958
|
}
|
|
5915
|
-
const
|
|
5959
|
+
const ys = {
|
|
5916
5960
|
name: "w-steps",
|
|
5917
5961
|
props: {
|
|
5918
5962
|
dark: { type: Boolean },
|
|
@@ -5928,16 +5972,16 @@ const rs = {
|
|
|
5928
5972
|
};
|
|
5929
5973
|
}
|
|
5930
5974
|
}
|
|
5931
|
-
},
|
|
5975
|
+
}, ws = /* @__PURE__ */ v(ys, [["render", bs]]), ks = ["id", "name", "checked", "disabled", "readonly", "aria-readonly", "required", "tabindex", "aria-checked"], vs = ["for"], Cs = {
|
|
5932
5976
|
key: 0,
|
|
5933
5977
|
class: "w-switch__track"
|
|
5934
|
-
},
|
|
5978
|
+
}, Ss = {
|
|
5935
5979
|
key: 1,
|
|
5936
5980
|
class: "w-switch__thumb"
|
|
5937
|
-
},
|
|
5938
|
-
function
|
|
5981
|
+
}, Bs = ["for"];
|
|
5982
|
+
function _s(e, t, i, s, n, l) {
|
|
5939
5983
|
const a = $("w-progress");
|
|
5940
|
-
return
|
|
5984
|
+
return o(), g(L(e.formRegister ? "w-form-element" : "div"), _({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: n.isOn, disabled: e.isDisabled, readonly: e.isReadonly }, {
|
|
5941
5985
|
valid: e.valid,
|
|
5942
5986
|
"onUpdate:valid": t[3] || (t[3] = (r) => e.valid = r),
|
|
5943
5987
|
onReset: t[4] || (t[4] = (r) => {
|
|
@@ -5947,7 +5991,7 @@ function ms(e, t, i, o, n, l) {
|
|
|
5947
5991
|
style: e.$attrs.style
|
|
5948
5992
|
}), {
|
|
5949
5993
|
default: m(() => [
|
|
5950
|
-
|
|
5994
|
+
w("input", _({
|
|
5951
5995
|
ref: "input",
|
|
5952
5996
|
id: `w-switch--${e._.uid}`,
|
|
5953
5997
|
type: "checkbox",
|
|
@@ -5963,9 +6007,9 @@ function ms(e, t, i, o, n, l) {
|
|
|
5963
6007
|
onFocus: t[1] || (t[1] = (r) => e.$emit("focus", r)),
|
|
5964
6008
|
"aria-checked": n.isOn || "false",
|
|
5965
6009
|
role: "switch"
|
|
5966
|
-
}), null, 16,
|
|
5967
|
-
l.hasLabel && i.labelOnLeft ? (
|
|
5968
|
-
e.$slots.default || i.label ? (
|
|
6010
|
+
}), null, 16, ks),
|
|
6011
|
+
l.hasLabel && i.labelOnLeft ? (o(), u(k, { key: 0 }, [
|
|
6012
|
+
e.$slots.default || i.label ? (o(), u("label", {
|
|
5969
6013
|
key: 0,
|
|
5970
6014
|
class: f(["w-switch__label w-switch__label--left w-form-el-shakable", e.labelClasses]),
|
|
5971
6015
|
for: `w-switch--${e._.uid}`
|
|
@@ -5973,27 +6017,27 @@ function ms(e, t, i, o, n, l) {
|
|
|
5973
6017
|
c(e.$slots, "default", {}, () => [
|
|
5974
6018
|
S(C(i.label), 1)
|
|
5975
6019
|
])
|
|
5976
|
-
], 10,
|
|
6020
|
+
], 10, vs)) : p("", !0)
|
|
5977
6021
|
], 64)) : p("", !0),
|
|
5978
|
-
|
|
6022
|
+
w("div", {
|
|
5979
6023
|
class: f(["w-switch__input", l.inputClasses]),
|
|
5980
6024
|
onClick: t[2] || (t[2] = (r) => {
|
|
5981
6025
|
e.$refs.input.focus(), e.$refs.input.click();
|
|
5982
6026
|
})
|
|
5983
6027
|
}, [
|
|
5984
|
-
e.$slots.track ? (
|
|
6028
|
+
e.$slots.track ? (o(), u("div", Cs, [
|
|
5985
6029
|
c(e.$slots, "track")
|
|
5986
6030
|
])) : p("", !0),
|
|
5987
|
-
e.$slots.thumb || i.loading ? (
|
|
5988
|
-
i.loading ? (
|
|
6031
|
+
e.$slots.thumb || i.loading ? (o(), u("div", Ss, [
|
|
6032
|
+
i.loading ? (o(), g(a, _({
|
|
5989
6033
|
key: 0,
|
|
5990
6034
|
circle: "",
|
|
5991
6035
|
color: "inherit"
|
|
5992
6036
|
}, typeof i.loading == "number" && { "model-value": i.loading }), null, 16)) : c(e.$slots, "thumb", { key: 1 })
|
|
5993
6037
|
])) : p("", !0)
|
|
5994
6038
|
], 2),
|
|
5995
|
-
l.hasLabel && !i.labelOnLeft ? (
|
|
5996
|
-
e.$slots.default || i.label ? (
|
|
6039
|
+
l.hasLabel && !i.labelOnLeft ? (o(), u(k, { key: 1 }, [
|
|
6040
|
+
e.$slots.default || i.label ? (o(), u("label", {
|
|
5997
6041
|
key: 0,
|
|
5998
6042
|
class: f(["w-switch__label w-switch__label--right w-form-el-shakable", e.labelClasses]),
|
|
5999
6043
|
for: `w-switch--${e._.uid}`
|
|
@@ -6001,15 +6045,15 @@ function ms(e, t, i, o, n, l) {
|
|
|
6001
6045
|
c(e.$slots, "default", {}, () => [
|
|
6002
6046
|
S(C(i.label), 1)
|
|
6003
6047
|
])
|
|
6004
|
-
], 10,
|
|
6048
|
+
], 10, Bs)) : p("", !0)
|
|
6005
6049
|
], 64)) : p("", !0)
|
|
6006
6050
|
]),
|
|
6007
6051
|
_: 3
|
|
6008
6052
|
}, 16, ["valid", "class", "style"]);
|
|
6009
6053
|
}
|
|
6010
|
-
const
|
|
6054
|
+
const $s = {
|
|
6011
6055
|
name: "w-switch",
|
|
6012
|
-
mixins: [
|
|
6056
|
+
mixins: [z],
|
|
6013
6057
|
inheritAttrs: !1,
|
|
6014
6058
|
// The attrs should only be added to the input not the wrapper.
|
|
6015
6059
|
props: {
|
|
@@ -6083,33 +6127,33 @@ const gs = {
|
|
|
6083
6127
|
this.isOn = e;
|
|
6084
6128
|
}
|
|
6085
6129
|
}
|
|
6086
|
-
},
|
|
6087
|
-
function
|
|
6088
|
-
return
|
|
6130
|
+
}, Vs = /* @__PURE__ */ v($s, [["render", _s]]), Is = { class: "w-tabs__content" };
|
|
6131
|
+
function Ts(e, t, i, s, n, l) {
|
|
6132
|
+
return o(), u("div", Is, [
|
|
6089
6133
|
c(e.$slots, "default", { item: i.item })
|
|
6090
6134
|
]);
|
|
6091
6135
|
}
|
|
6092
|
-
const
|
|
6136
|
+
const Ls = {
|
|
6093
6137
|
name: "tab-content",
|
|
6094
6138
|
// Keep-alive include/exclude mechanism is component-name-based.
|
|
6095
6139
|
props: { item: Object }
|
|
6096
|
-
},
|
|
6140
|
+
}, Rs = /* @__PURE__ */ v(Ls, [["render", Ts]]), xs = ["onClick", "onFocus", "tabindex", "onKeypress", "aria-selected"], Ps = ["innerHTML"], Os = {
|
|
6097
6141
|
key: 0,
|
|
6098
6142
|
class: "w-tabs__bar-extra"
|
|
6099
|
-
},
|
|
6143
|
+
}, Ms = {
|
|
6100
6144
|
key: 0,
|
|
6101
6145
|
class: "w-tabs__content-wrap"
|
|
6102
|
-
},
|
|
6103
|
-
function
|
|
6146
|
+
}, zs = ["innerHTML"], Es = ["innerHTML"];
|
|
6147
|
+
function As(e, t, i, s, n, l) {
|
|
6104
6148
|
const a = $("tab-content");
|
|
6105
|
-
return
|
|
6149
|
+
return o(), u("div", {
|
|
6106
6150
|
class: f(["w-tabs", l.tabsClasses])
|
|
6107
6151
|
}, [
|
|
6108
|
-
|
|
6152
|
+
w("div", {
|
|
6109
6153
|
class: f(["w-tabs__bar", l.tabsBarClasses]),
|
|
6110
6154
|
ref: "tabs-bar"
|
|
6111
6155
|
}, [
|
|
6112
|
-
(
|
|
6156
|
+
(o(!0), u(k, null, x(e.tabs, (r, d) => (o(), u("div", {
|
|
6113
6157
|
class: f(["w-tabs__bar-item", l.barItemClasses(r)]),
|
|
6114
6158
|
key: d,
|
|
6115
6159
|
onClick: (h) => !r._disabled && r._uid !== e.activeTabUid && l.openTab(r._uid),
|
|
@@ -6130,27 +6174,27 @@ function Is(e, t, i, o, n, l) {
|
|
|
6130
6174
|
index: d + 1,
|
|
6131
6175
|
active: r._uid === e.activeTabUid
|
|
6132
6176
|
}, () => [
|
|
6133
|
-
|
|
6177
|
+
w("div", {
|
|
6134
6178
|
innerHTML: r[i.itemTitleKey]
|
|
6135
|
-
}, null, 8,
|
|
6179
|
+
}, null, 8, Ps)
|
|
6136
6180
|
])
|
|
6137
|
-
], 42,
|
|
6138
|
-
e.$slots["tabs-bar-extra"] ? (
|
|
6181
|
+
], 42, xs))), 128)),
|
|
6182
|
+
e.$slots["tabs-bar-extra"] ? (o(), u("div", Os, [
|
|
6139
6183
|
c(e.$slots, "tabs-bar-extra")
|
|
6140
6184
|
])) : p("", !0),
|
|
6141
|
-
!i.noSlider && !i.card ? (
|
|
6185
|
+
!i.noSlider && !i.card ? (o(), u("div", {
|
|
6142
6186
|
key: 1,
|
|
6143
6187
|
class: f(["w-tabs__slider", i.sliderColor]),
|
|
6144
|
-
style:
|
|
6188
|
+
style: R(l.sliderStyles)
|
|
6145
6189
|
}, null, 6)) : p("", !0)
|
|
6146
6190
|
], 2),
|
|
6147
|
-
e.tabs.length ? (
|
|
6148
|
-
i.keepInDom ? (
|
|
6191
|
+
e.tabs.length ? (o(), u("div", Ms, [
|
|
6192
|
+
i.keepInDom ? (o(), g(ae, {
|
|
6149
6193
|
key: 0,
|
|
6150
6194
|
name: l.transitionName
|
|
6151
6195
|
}, {
|
|
6152
6196
|
default: m(() => [
|
|
6153
|
-
(
|
|
6197
|
+
(o(!0), u(k, null, x(e.tabs, (r, d) => W((o(), g(a, {
|
|
6154
6198
|
key: r._uid,
|
|
6155
6199
|
item: r,
|
|
6156
6200
|
class: f(i.contentClass)
|
|
@@ -6167,34 +6211,34 @@ function Is(e, t, i, o, n, l) {
|
|
|
6167
6211
|
index: r._index + 1,
|
|
6168
6212
|
active: r._index === l.activeTab._index
|
|
6169
6213
|
}, () => [
|
|
6170
|
-
r[i.itemContentKey] ? (
|
|
6214
|
+
r[i.itemContentKey] ? (o(), u("div", {
|
|
6171
6215
|
key: 0,
|
|
6172
6216
|
innerHTML: r[i.itemContentKey]
|
|
6173
|
-
}, null, 8,
|
|
6217
|
+
}, null, 8, zs)) : p("", !0)
|
|
6174
6218
|
])
|
|
6175
6219
|
]),
|
|
6176
6220
|
_: 2
|
|
6177
6221
|
}, 1032, ["item", "class"])), [
|
|
6178
|
-
[
|
|
6222
|
+
[re, r._uid === l.activeTab._uid]
|
|
6179
6223
|
])), 128))
|
|
6180
6224
|
]),
|
|
6181
6225
|
_: 3
|
|
6182
|
-
}, 8, ["name"])) : (
|
|
6226
|
+
}, 8, ["name"])) : (o(), g(P, {
|
|
6183
6227
|
key: 1,
|
|
6184
6228
|
name: l.transitionName,
|
|
6185
6229
|
mode: l.transitionMode
|
|
6186
6230
|
}, {
|
|
6187
6231
|
default: m(() => [
|
|
6188
|
-
(
|
|
6232
|
+
(o(), g(xe, {
|
|
6189
6233
|
exclude: i.keepAlive ? "" : "tab-content"
|
|
6190
6234
|
}, [
|
|
6191
|
-
(
|
|
6235
|
+
(o(), g(a, {
|
|
6192
6236
|
key: e.activeTabUid,
|
|
6193
6237
|
item: l.activeTab,
|
|
6194
6238
|
class: f(i.contentClass)
|
|
6195
6239
|
}, {
|
|
6196
6240
|
default: m(({ item: r }) => [
|
|
6197
|
-
r ? (
|
|
6241
|
+
r ? (o(), u(k, { key: 0 }, [
|
|
6198
6242
|
e.$slots[`item-content.${r._index + 1}`] ? c(e.$slots, `item-content.${r._index + 1}`, {
|
|
6199
6243
|
key: 0,
|
|
6200
6244
|
item: l.getOriginalItem(r),
|
|
@@ -6206,10 +6250,10 @@ function Is(e, t, i, o, n, l) {
|
|
|
6206
6250
|
index: r._index + 1,
|
|
6207
6251
|
active: r._uid === e.activeTabUid
|
|
6208
6252
|
}, () => [
|
|
6209
|
-
r[i.itemContentKey] ? (
|
|
6253
|
+
r[i.itemContentKey] ? (o(), u("div", {
|
|
6210
6254
|
key: 0,
|
|
6211
6255
|
innerHTML: r[i.itemContentKey]
|
|
6212
|
-
}, null, 8,
|
|
6256
|
+
}, null, 8, Es)) : p("", !0)
|
|
6213
6257
|
])
|
|
6214
6258
|
], 64)) : p("", !0)
|
|
6215
6259
|
]),
|
|
@@ -6222,8 +6266,8 @@ function Is(e, t, i, o, n, l) {
|
|
|
6222
6266
|
])) : p("", !0)
|
|
6223
6267
|
], 2);
|
|
6224
6268
|
}
|
|
6225
|
-
let
|
|
6226
|
-
const
|
|
6269
|
+
let ye = 0;
|
|
6270
|
+
const Ws = {
|
|
6227
6271
|
name: "w-tabs",
|
|
6228
6272
|
props: {
|
|
6229
6273
|
modelValue: { type: [Number, String] },
|
|
@@ -6249,7 +6293,7 @@ const Ts = {
|
|
|
6249
6293
|
keepAlive: { type: Boolean, default: !0 },
|
|
6250
6294
|
keepInDom: { type: Boolean, default: !1 }
|
|
6251
6295
|
},
|
|
6252
|
-
components: { TabContent:
|
|
6296
|
+
components: { TabContent: Rs },
|
|
6253
6297
|
emits: ["input", "update:modelValue", "focus"],
|
|
6254
6298
|
data: () => ({
|
|
6255
6299
|
tabs: [],
|
|
@@ -6308,7 +6352,7 @@ const Ts = {
|
|
|
6308
6352
|
methods: {
|
|
6309
6353
|
// Adding a tab in the list.
|
|
6310
6354
|
addTab(e) {
|
|
6311
|
-
(e[this.itemIdKey] ?? e._uid ?? !1) || (e._uid = +`${this._.uid}${++
|
|
6355
|
+
(e[this.itemIdKey] ?? e._uid ?? !1) || (e._uid = +`${this._.uid}${++ye}`), this.tabs.push({
|
|
6312
6356
|
_uid: e[this.itemIdKey] ?? e._uid,
|
|
6313
6357
|
_index: this.tabs.length,
|
|
6314
6358
|
...e,
|
|
@@ -6317,7 +6361,7 @@ const Ts = {
|
|
|
6317
6361
|
},
|
|
6318
6362
|
refreshTabs() {
|
|
6319
6363
|
let e = this.items;
|
|
6320
|
-
typeof e == "number" && (e = Array(e).fill().map((t, i) => this.tabs[i] || {})), this.tabs = e.map((t, i) => ((t[this.itemIdKey] ?? t._uid ?? !1) || (t._uid = +`${this._.uid}${++
|
|
6364
|
+
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}${++ye}`), {
|
|
6321
6365
|
...t,
|
|
6322
6366
|
_uid: t[this.itemIdKey] ?? t._uid,
|
|
6323
6367
|
_index: i,
|
|
@@ -6325,10 +6369,10 @@ const Ts = {
|
|
|
6325
6369
|
}));
|
|
6326
6370
|
},
|
|
6327
6371
|
reopenTheActiveTab() {
|
|
6328
|
-
var t, i,
|
|
6372
|
+
var t, i, s;
|
|
6329
6373
|
if (this.tabs.length === 1) return this.openTab(this.tabs[0]._uid);
|
|
6330
6374
|
let e = (t = this.tabsByUid[this.activeTabUid]) == null ? void 0 : t._uid;
|
|
6331
|
-
e || (e = (i = this.tabs[this.activeTabIndex]) == null ? void 0 : i._uid), e || (e = (
|
|
6375
|
+
e || (e = (i = this.tabs[this.activeTabIndex]) == null ? void 0 : i._uid), e || (e = (s = this.tabs[Math.max(this.activeTabIndex - 1, this.tabs.length - 1)]) == null ? void 0 : s._uid), e && this.openTab(e);
|
|
6332
6376
|
},
|
|
6333
6377
|
onResize() {
|
|
6334
6378
|
this.updateSlider(!1);
|
|
@@ -6356,16 +6400,16 @@ const Ts = {
|
|
|
6356
6400
|
this.activeTabEl = t && t.querySelector(".w-tabs__bar-item--active");
|
|
6357
6401
|
}
|
|
6358
6402
|
if (!this.fillBar && this.activeTabEl) {
|
|
6359
|
-
const { left: t, width: i } = this.activeTabEl.getBoundingClientRect(),
|
|
6360
|
-
this.slider.left = `${t - n - parseInt(l) +
|
|
6403
|
+
const { left: t, width: i } = this.activeTabEl.getBoundingClientRect(), s = this.activeTabEl.parentNode, { left: n } = s.getBoundingClientRect(), { borderLeftWidth: l } = getComputedStyle(s);
|
|
6404
|
+
this.slider.left = `${t - n - parseInt(l) + s.scrollLeft}px`, this.slider.width = `${i}px`;
|
|
6361
6405
|
} else
|
|
6362
6406
|
this.slider.left = `${this.activeTab._index * 100 / this.tabs.length}%`, this.slider.width = `${100 / this.tabs.length}%`;
|
|
6363
6407
|
},
|
|
6364
6408
|
updateActiveTab(e) {
|
|
6365
6409
|
var t, i;
|
|
6366
6410
|
typeof e == "string" ? e = ~~e : (isNaN(e) || e < 0) && (e = 0), (t = this.tabs[e]) != null && t._uid && (this.openTab((i = this.tabs[e]) == null ? void 0 : i._uid), this.$nextTick(() => {
|
|
6367
|
-
const
|
|
6368
|
-
this.activeTabEl =
|
|
6411
|
+
const s = this.$refs["tabs-bar"];
|
|
6412
|
+
this.activeTabEl = s && s.querySelector(`.w-tabs__bar-item:nth-child(${e + 1})`), this.activeTabEl && this.activeTabEl.scrollIntoView({ behavior: "smooth", block: "nearest", inline: "nearest" });
|
|
6369
6413
|
}));
|
|
6370
6414
|
},
|
|
6371
6415
|
// Return the original item (so there is no `_index`, etc.).
|
|
@@ -6398,58 +6442,58 @@ const Ts = {
|
|
|
6398
6442
|
e ? window.removeEventListener("resize", this.onResize) : (this.updateSlider(), window.addEventListener("resize", this.onResize));
|
|
6399
6443
|
}
|
|
6400
6444
|
}
|
|
6401
|
-
},
|
|
6445
|
+
}, Ks = /* @__PURE__ */ v(Ws, [["render", As]]), Ns = { class: "w-table__scroll-wrap" }, Ds = { ref: "colgroup" }, Hs = ["width"], Fs = { key: 0 }, js = ["onClick"], Us = ["innerHTML"], qs = {
|
|
6402
6446
|
key: 0,
|
|
6403
6447
|
class: "w-table__progress-bar"
|
|
6404
|
-
},
|
|
6448
|
+
}, Xs = ["colspan"], Ys = {
|
|
6405
6449
|
key: 0,
|
|
6406
6450
|
class: "w-table__progress-bar"
|
|
6407
|
-
},
|
|
6451
|
+
}, Gs = ["colspan"], Js = { class: "w-table__loading-text" }, Qs = {
|
|
6408
6452
|
key: 1,
|
|
6409
6453
|
class: "no-data"
|
|
6410
|
-
},
|
|
6454
|
+
}, Zs = ["colspan"], eo = ["onClick"], to = ["data-label"], io = ["data-label"], lo = ["innerHTML"], so = {
|
|
6411
6455
|
key: 2,
|
|
6412
6456
|
class: "w-table__row w-table__row--expansion"
|
|
6413
|
-
},
|
|
6457
|
+
}, oo = ["colspan"], ao = { key: 0 }, no = {
|
|
6414
6458
|
key: 3,
|
|
6415
6459
|
class: "w-table__extra-row"
|
|
6416
|
-
},
|
|
6460
|
+
}, ro = {
|
|
6417
6461
|
key: 1,
|
|
6418
6462
|
class: "w-table__footer"
|
|
6419
|
-
},
|
|
6463
|
+
}, uo = {
|
|
6420
6464
|
key: 1,
|
|
6421
6465
|
class: "w-table__row"
|
|
6422
|
-
},
|
|
6466
|
+
}, ho = ["colspan"], co = {
|
|
6423
6467
|
key: 0,
|
|
6424
6468
|
class: "w-table__pagination w-pagination"
|
|
6425
|
-
},
|
|
6426
|
-
function
|
|
6427
|
-
const a = $("w-icon"), r = $("w-progress"), d = $("w-transition-fade"), h = $("w-transition-expand"),
|
|
6428
|
-
return
|
|
6469
|
+
}, po = { class: "pages-wrap" }, fo = { class: "w-pagination__results" };
|
|
6470
|
+
function mo(e, t, i, s, n, l) {
|
|
6471
|
+
const a = $("w-icon"), r = $("w-progress"), d = $("w-transition-fade"), h = $("w-transition-expand"), y = $("w-select"), B = $("w-button");
|
|
6472
|
+
return o(), u("div", {
|
|
6429
6473
|
class: f(["w-table w-table--wrap", l.classes])
|
|
6430
6474
|
}, [
|
|
6431
|
-
|
|
6432
|
-
|
|
6475
|
+
w("div", Ns, [
|
|
6476
|
+
w("table", {
|
|
6433
6477
|
class: "w-table__table",
|
|
6434
6478
|
onMousedown: t[1] || (t[1] = (...b) => l.onMouseDown && l.onMouseDown(...b)),
|
|
6435
6479
|
onMouseover: t[2] || (t[2] = (...b) => l.onMouseOver && l.onMouseOver(...b)),
|
|
6436
6480
|
onMouseout: t[3] || (t[3] = (...b) => l.onMouseOut && l.onMouseOut(...b))
|
|
6437
6481
|
}, [
|
|
6438
|
-
|
|
6439
|
-
(
|
|
6440
|
-
class: f(["w-table__col", l.colClasses[
|
|
6441
|
-
key:
|
|
6482
|
+
w("colgroup", Ds, [
|
|
6483
|
+
(o(!0), u(k, null, x(i.headers, (b, I) => (o(), u("col", {
|
|
6484
|
+
class: f(["w-table__col", l.colClasses[I]]),
|
|
6485
|
+
key: I,
|
|
6442
6486
|
width: b.width || null
|
|
6443
|
-
}, null, 10,
|
|
6487
|
+
}, null, 10, Hs))), 128))
|
|
6444
6488
|
], 512),
|
|
6445
|
-
i.noHeaders ? p("", !0) : (
|
|
6446
|
-
|
|
6447
|
-
(
|
|
6489
|
+
i.noHeaders ? p("", !0) : (o(), u("thead", Fs, [
|
|
6490
|
+
w("tr", null, [
|
|
6491
|
+
(o(!0), u(k, null, x(i.headers, (b, I) => (o(), u("th", {
|
|
6448
6492
|
class: f(["w-table__header", l.headerClasses(b)]),
|
|
6449
|
-
key:
|
|
6450
|
-
onClick: (
|
|
6493
|
+
key: I,
|
|
6494
|
+
onClick: (V) => !e.colResizing.dragging && b.sortable !== !1 && l.sortTable(b)
|
|
6451
6495
|
}, [
|
|
6452
|
-
b.sortable !== !1 && b.align === "right" ? (
|
|
6496
|
+
b.sortable !== !1 && b.align === "right" ? (o(), g(a, {
|
|
6453
6497
|
key: 0,
|
|
6454
6498
|
class: f(["w-table__header-sort", l.headerSortClasses(b)])
|
|
6455
6499
|
}, {
|
|
@@ -6458,20 +6502,20 @@ function so(e, t, i, o, n, l) {
|
|
|
6458
6502
|
]),
|
|
6459
6503
|
_: 2
|
|
6460
6504
|
}, 1032, ["class"])) : p("", !0),
|
|
6461
|
-
b.label ? (
|
|
6505
|
+
b.label ? (o(), u(k, { key: 1 }, [
|
|
6462
6506
|
e.$slots["header-label"] ? c(e.$slots, "header-label", {
|
|
6463
6507
|
key: 0,
|
|
6464
6508
|
header: b,
|
|
6465
6509
|
label: b.label,
|
|
6466
|
-
index:
|
|
6510
|
+
index: I + 1
|
|
6467
6511
|
}, () => [
|
|
6468
6512
|
S(C(b.label || ""), 1)
|
|
6469
|
-
]) : (
|
|
6513
|
+
]) : (o(), u("span", {
|
|
6470
6514
|
key: 1,
|
|
6471
6515
|
innerHTML: b.label || ""
|
|
6472
|
-
}, null, 8,
|
|
6516
|
+
}, null, 8, Us))
|
|
6473
6517
|
], 64)) : p("", !0),
|
|
6474
|
-
b.sortable !== !1 && b.align !== "right" ? (
|
|
6518
|
+
b.sortable !== !1 && b.align !== "right" ? (o(), g(a, {
|
|
6475
6519
|
key: 2,
|
|
6476
6520
|
class: f(["w-table__header-sort", l.headerSortClasses(b)])
|
|
6477
6521
|
}, {
|
|
@@ -6480,145 +6524,145 @@ function so(e, t, i, o, n, l) {
|
|
|
6480
6524
|
]),
|
|
6481
6525
|
_: 2
|
|
6482
6526
|
}, 1032, ["class"])) : p("", !0),
|
|
6483
|
-
|
|
6527
|
+
I < i.headers.length - 1 && i.resizableColumns ? (o(), u("span", {
|
|
6484
6528
|
key: 3,
|
|
6485
|
-
class: f(["w-table__col-resizer", { "w-table__col-resizer--hover": e.colResizing.hover ===
|
|
6486
|
-
onClick: t[0] || (t[0] =
|
|
6529
|
+
class: f(["w-table__col-resizer", { "w-table__col-resizer--hover": e.colResizing.hover === I, "w-table__col-resizer--active": e.colResizing.columnIndex === I }]),
|
|
6530
|
+
onClick: t[0] || (t[0] = M(() => {
|
|
6487
6531
|
}, ["stop"]))
|
|
6488
6532
|
}, null, 2)) : p("", !0)
|
|
6489
|
-
], 10,
|
|
6533
|
+
], 10, js))), 128))
|
|
6490
6534
|
]),
|
|
6491
|
-
|
|
6535
|
+
T(d, null, {
|
|
6492
6536
|
default: m(() => [
|
|
6493
|
-
i.loading === "header" ? (
|
|
6494
|
-
|
|
6537
|
+
i.loading === "header" ? (o(), u("tr", qs, [
|
|
6538
|
+
w("td", {
|
|
6495
6539
|
colspan: i.headers.length
|
|
6496
6540
|
}, [
|
|
6497
|
-
|
|
6498
|
-
], 8,
|
|
6541
|
+
T(r, { tile: "" })
|
|
6542
|
+
], 8, Xs)
|
|
6499
6543
|
])) : p("", !0)
|
|
6500
6544
|
]),
|
|
6501
6545
|
_: 1
|
|
6502
6546
|
})
|
|
6503
6547
|
])),
|
|
6504
|
-
|
|
6505
|
-
i.loading === !0 ? (
|
|
6506
|
-
|
|
6548
|
+
w("tbody", null, [
|
|
6549
|
+
i.loading === !0 ? (o(), u("tr", Ys, [
|
|
6550
|
+
w("td", {
|
|
6507
6551
|
colspan: i.headers.length
|
|
6508
6552
|
}, [
|
|
6509
|
-
|
|
6510
|
-
|
|
6553
|
+
T(r, { tile: "" }),
|
|
6554
|
+
w("div", Js, [
|
|
6511
6555
|
c(e.$slots, "loading", {}, () => [
|
|
6512
6556
|
S("Loading...")
|
|
6513
6557
|
])
|
|
6514
6558
|
])
|
|
6515
|
-
], 8,
|
|
6516
|
-
])) : l.tableItems.length ? p("", !0) : (
|
|
6517
|
-
|
|
6559
|
+
], 8, Gs)
|
|
6560
|
+
])) : l.tableItems.length ? p("", !0) : (o(), u("tr", Qs, [
|
|
6561
|
+
w("td", {
|
|
6518
6562
|
class: "w-table__cell text-center",
|
|
6519
6563
|
colspan: i.headers.length
|
|
6520
6564
|
}, [
|
|
6521
6565
|
c(e.$slots, "no-data", {}, () => [
|
|
6522
6566
|
S("No data to show.")
|
|
6523
6567
|
])
|
|
6524
|
-
], 8,
|
|
6568
|
+
], 8, Zs)
|
|
6525
6569
|
])),
|
|
6526
|
-
l.tableItems.length && i.loading !== !0 ? (
|
|
6570
|
+
l.tableItems.length && i.loading !== !0 ? (o(!0), u(k, { key: 2 }, x(l.paginatedItems, (b, I) => (o(), u(k, { key: I }, [
|
|
6527
6571
|
e.$slots.item ? c(e.$slots, "item", {
|
|
6528
6572
|
key: 0,
|
|
6529
6573
|
item: b,
|
|
6530
|
-
index:
|
|
6531
|
-
select: () => l.doSelectRow(b,
|
|
6574
|
+
index: I + 1,
|
|
6575
|
+
select: () => l.doSelectRow(b, I),
|
|
6532
6576
|
classes: { "w-table__row": !0, "w-table__row--selected": l.selectedRowsByUid[b._uid] !== void 0, "w-table__row--expanded": l.expandedRowsByUid[b._uid] !== void 0 }
|
|
6533
|
-
}) : (
|
|
6577
|
+
}) : (o(), u("tr", {
|
|
6534
6578
|
key: 1,
|
|
6535
6579
|
class: f(["w-table__row", { "w-table__row--selected": l.selectedRowsByUid[b._uid] !== void 0, "w-table__row--expanded": l.expandedRowsByUid[b._uid] !== void 0 }]),
|
|
6536
|
-
onClick: (
|
|
6580
|
+
onClick: (V) => l.doSelectRow(b, I)
|
|
6537
6581
|
}, [
|
|
6538
|
-
(
|
|
6539
|
-
e.$slots[`item-cell.${
|
|
6540
|
-
class: f(["w-table__cell", { [`text-${
|
|
6541
|
-
key: `${
|
|
6542
|
-
"data-label":
|
|
6582
|
+
(o(!0), u(k, null, x(i.headers, (V, O) => (o(), u(k, null, [
|
|
6583
|
+
e.$slots[`item-cell.${V.key}`] || e.$slots[`item-cell.${O + 1}`] || e.$slots["item-cell"] ? (o(), u("td", {
|
|
6584
|
+
class: f(["w-table__cell", { [`text-${V.align || "left"}`]: !0, "w-table__cell--sticky": V.sticky }]),
|
|
6585
|
+
key: `${O}-a`,
|
|
6586
|
+
"data-label": V.label
|
|
6543
6587
|
}, [
|
|
6544
|
-
e.$slots[`item-cell.${
|
|
6588
|
+
e.$slots[`item-cell.${V.key}`] ? c(e.$slots, `item-cell.${V.key}`, {
|
|
6545
6589
|
key: 0,
|
|
6546
|
-
header:
|
|
6590
|
+
header: V,
|
|
6547
6591
|
item: b,
|
|
6548
|
-
label: b[
|
|
6549
|
-
index:
|
|
6550
|
-
}) : e.$slots[`item-cell.${
|
|
6592
|
+
label: b[V.key] || "",
|
|
6593
|
+
index: I + 1
|
|
6594
|
+
}) : e.$slots[`item-cell.${O + 1}`] ? c(e.$slots, `item-cell.${O + 1}`, {
|
|
6551
6595
|
key: 1,
|
|
6552
|
-
header:
|
|
6596
|
+
header: V,
|
|
6553
6597
|
item: b,
|
|
6554
|
-
label: b[
|
|
6555
|
-
index:
|
|
6598
|
+
label: b[V.key] || "",
|
|
6599
|
+
index: I + 1
|
|
6556
6600
|
}) : e.$slots["item-cell"] ? c(e.$slots, "item-cell", {
|
|
6557
6601
|
key: 2,
|
|
6558
|
-
header:
|
|
6602
|
+
header: V,
|
|
6559
6603
|
item: b,
|
|
6560
|
-
label: b[
|
|
6561
|
-
index:
|
|
6604
|
+
label: b[V.key] || "",
|
|
6605
|
+
index: I + 1
|
|
6562
6606
|
}) : p("", !0),
|
|
6563
|
-
|
|
6607
|
+
O < i.headers.length - 1 && i.resizableColumns ? (o(), u("span", {
|
|
6564
6608
|
key: 3,
|
|
6565
|
-
class: f(["w-table__col-resizer", { "w-table__col-resizer--hover": e.colResizing.hover ===
|
|
6609
|
+
class: f(["w-table__col-resizer", { "w-table__col-resizer--hover": e.colResizing.hover === O, "w-table__col-resizer--active": e.colResizing.columnIndex === O }])
|
|
6566
6610
|
}, null, 2)) : p("", !0)
|
|
6567
|
-
], 10,
|
|
6568
|
-
class: f(["w-table__cell", { [`text-${
|
|
6569
|
-
key: `${
|
|
6570
|
-
"data-label":
|
|
6611
|
+
], 10, to)) : (o(), u("td", {
|
|
6612
|
+
class: f(["w-table__cell", { [`text-${V.align || "left"}`]: !0, "w-table__cell--sticky": V.sticky }]),
|
|
6613
|
+
key: `${O}-b`,
|
|
6614
|
+
"data-label": V.label
|
|
6571
6615
|
}, [
|
|
6572
|
-
|
|
6573
|
-
innerHTML: b[
|
|
6574
|
-
}, null, 8,
|
|
6575
|
-
|
|
6616
|
+
w("div", {
|
|
6617
|
+
innerHTML: b[V.key] || ""
|
|
6618
|
+
}, null, 8, lo),
|
|
6619
|
+
O < i.headers.length - 1 && i.resizableColumns ? (o(), u("span", {
|
|
6576
6620
|
key: 0,
|
|
6577
|
-
class: f(["w-table__col-resizer", { "w-table__col-resizer--hover": e.colResizing.hover ===
|
|
6621
|
+
class: f(["w-table__col-resizer", { "w-table__col-resizer--hover": e.colResizing.hover === O, "w-table__col-resizer--active": e.colResizing.columnIndex === O }])
|
|
6578
6622
|
}, null, 2)) : p("", !0)
|
|
6579
|
-
], 10,
|
|
6623
|
+
], 10, io))
|
|
6580
6624
|
], 64))), 256))
|
|
6581
|
-
], 10,
|
|
6582
|
-
l.expandedRowsByUid[b._uid] ? (
|
|
6583
|
-
|
|
6625
|
+
], 10, eo)),
|
|
6626
|
+
l.expandedRowsByUid[b._uid] ? (o(), u("tr", so, [
|
|
6627
|
+
w("td", {
|
|
6584
6628
|
class: "w-table__cell",
|
|
6585
6629
|
colspan: i.headers.length
|
|
6586
6630
|
}, [
|
|
6587
|
-
|
|
6631
|
+
T(h, { y: "" }, {
|
|
6588
6632
|
default: m(() => [
|
|
6589
|
-
l.expandedRowsByUid[b._uid] ? (
|
|
6633
|
+
l.expandedRowsByUid[b._uid] ? (o(), u("div", ao, [
|
|
6590
6634
|
c(e.$slots, "row-expansion", {
|
|
6591
6635
|
item: b,
|
|
6592
|
-
index:
|
|
6636
|
+
index: I + 1
|
|
6593
6637
|
})
|
|
6594
6638
|
])) : p("", !0),
|
|
6595
|
-
|
|
6639
|
+
I < i.headers.length - 1 && i.resizableColumns ? (o(), u("span", {
|
|
6596
6640
|
key: 1,
|
|
6597
|
-
class: f(["w-table__col-resizer", { "w-table__col-resizer--hover": e.colResizing.hover ===
|
|
6641
|
+
class: f(["w-table__col-resizer", { "w-table__col-resizer--hover": e.colResizing.hover === I, "w-table__col-resizer--active": e.colResizing.columnIndex === e.j }])
|
|
6598
6642
|
}, null, 2)) : p("", !0)
|
|
6599
6643
|
]),
|
|
6600
6644
|
_: 2
|
|
6601
6645
|
}, 1024)
|
|
6602
|
-
], 8,
|
|
6646
|
+
], 8, oo)
|
|
6603
6647
|
])) : p("", !0)
|
|
6604
6648
|
], 64))), 128)) : p("", !0),
|
|
6605
|
-
e.$slots["extra-row"] ? (
|
|
6649
|
+
e.$slots["extra-row"] ? (o(), u("div", no, [
|
|
6606
6650
|
c(e.$slots, "extra-row")
|
|
6607
6651
|
])) : p("", !0)
|
|
6608
6652
|
]),
|
|
6609
|
-
e.$slots.footer || e.$slots["footer-row"] ? (
|
|
6610
|
-
e.$slots["footer-row"] ? c(e.$slots, "footer-row", { key: 0 }) : e.$slots.footer ? (
|
|
6611
|
-
|
|
6653
|
+
e.$slots.footer || e.$slots["footer-row"] ? (o(), u("tfoot", ro, [
|
|
6654
|
+
e.$slots["footer-row"] ? c(e.$slots, "footer-row", { key: 0 }) : e.$slots.footer ? (o(), u("tr", uo, [
|
|
6655
|
+
w("td", {
|
|
6612
6656
|
class: "w-table__cell",
|
|
6613
6657
|
colspan: i.headers.length
|
|
6614
6658
|
}, [
|
|
6615
6659
|
c(e.$slots, "footer")
|
|
6616
|
-
], 8,
|
|
6660
|
+
], 8, ho)
|
|
6617
6661
|
])) : p("", !0)
|
|
6618
6662
|
])) : p("", !0)
|
|
6619
6663
|
], 32)
|
|
6620
6664
|
]),
|
|
6621
|
-
i.pagination && e.paginationConfig ? (
|
|
6665
|
+
i.pagination && e.paginationConfig ? (o(), u("div", co, [
|
|
6622
6666
|
c(e.$slots, "pagination", {
|
|
6623
6667
|
range: `${e.paginationConfig.start}-${e.paginationConfig.end}`,
|
|
6624
6668
|
total: e.paginationConfig.total,
|
|
@@ -6626,7 +6670,7 @@ function so(e, t, i, o, n, l) {
|
|
|
6626
6670
|
page: e.paginationConfig.page,
|
|
6627
6671
|
goToPage: l.goToPage
|
|
6628
6672
|
}, () => [
|
|
6629
|
-
e.paginationConfig.itemsPerPageOptions ? (
|
|
6673
|
+
e.paginationConfig.itemsPerPageOptions ? (o(), g(y, {
|
|
6630
6674
|
key: 0,
|
|
6631
6675
|
class: "w-pagination__items-per-page",
|
|
6632
6676
|
modelValue: e.paginationConfig.itemsPerPage,
|
|
@@ -6637,8 +6681,8 @@ function so(e, t, i, o, n, l) {
|
|
|
6637
6681
|
label: "Items per page",
|
|
6638
6682
|
"label-color": "inherit"
|
|
6639
6683
|
}, null, 8, ["modelValue", "items"])) : p("", !0),
|
|
6640
|
-
|
|
6641
|
-
|
|
6684
|
+
w("div", po, [
|
|
6685
|
+
T(B, {
|
|
6642
6686
|
class: "w-pagination__arrow w-pagination__arrow--prev",
|
|
6643
6687
|
onClick: t[6] || (t[6] = (b) => l.goToPage("-1")),
|
|
6644
6688
|
disabled: e.paginationConfig.page <= 1,
|
|
@@ -6646,11 +6690,11 @@ function so(e, t, i, o, n, l) {
|
|
|
6646
6690
|
text: "",
|
|
6647
6691
|
lg: ""
|
|
6648
6692
|
}, null, 8, ["disabled"]),
|
|
6649
|
-
e.paginationConfig.pagesCount > 7 ? (
|
|
6650
|
-
[1, e.paginationConfig.pagesCount, e.paginationConfig.page - 1, e.paginationConfig.page, e.paginationConfig.page + 1].includes(b) ? (
|
|
6693
|
+
e.paginationConfig.pagesCount > 7 ? (o(!0), u(k, { key: 0 }, x(e.paginationConfig.pagesCount, (b) => (o(), u(k, { key: b }, [
|
|
6694
|
+
[1, e.paginationConfig.pagesCount, e.paginationConfig.page - 1, e.paginationConfig.page, e.paginationConfig.page + 1].includes(b) ? (o(), g(B, {
|
|
6651
6695
|
key: 0,
|
|
6652
6696
|
class: f(["w-pagination__page", { "w-pagination__page--active": b === e.paginationConfig.page }]),
|
|
6653
|
-
onClick: (
|
|
6697
|
+
onClick: (I) => b !== e.paginationConfig.page && l.goToPage(b),
|
|
6654
6698
|
round: "",
|
|
6655
6699
|
lg: ""
|
|
6656
6700
|
}, {
|
|
@@ -6658,10 +6702,10 @@ function so(e, t, i, o, n, l) {
|
|
|
6658
6702
|
S(C(b), 1)
|
|
6659
6703
|
]),
|
|
6660
6704
|
_: 2
|
|
6661
|
-
}, 1032, ["onClick", "class"])) : [1, e.paginationConfig.pagesCount, e.paginationConfig.page - 1, e.paginationConfig.page, e.paginationConfig.page + 1].includes(b - 1) ? (
|
|
6705
|
+
}, 1032, ["onClick", "class"])) : [1, e.paginationConfig.pagesCount, e.paginationConfig.page - 1, e.paginationConfig.page, e.paginationConfig.page + 1].includes(b - 1) ? (o(), g(B, {
|
|
6662
6706
|
key: 1,
|
|
6663
6707
|
class: f(["w-pagination__page", { "w-pagination__page--active": b === e.paginationConfig.page }]),
|
|
6664
|
-
onClick: (
|
|
6708
|
+
onClick: (I) => b !== e.paginationConfig.page && l.goToPage(b),
|
|
6665
6709
|
round: "",
|
|
6666
6710
|
lg: ""
|
|
6667
6711
|
}, {
|
|
@@ -6670,10 +6714,10 @@ function so(e, t, i, o, n, l) {
|
|
|
6670
6714
|
]),
|
|
6671
6715
|
_: 2
|
|
6672
6716
|
}, 1032, ["onClick", "class"])) : p("", !0)
|
|
6673
|
-
], 64))), 128)) : (
|
|
6717
|
+
], 64))), 128)) : (o(!0), u(k, { key: 1 }, x(e.paginationConfig.pagesCount, (b) => (o(), g(B, {
|
|
6674
6718
|
class: f(["w-pagination__page", { "w-pagination__page--active": b === e.paginationConfig.page }]),
|
|
6675
6719
|
key: b,
|
|
6676
|
-
onClick: (
|
|
6720
|
+
onClick: (I) => b !== e.paginationConfig.page && l.goToPage(b),
|
|
6677
6721
|
round: "",
|
|
6678
6722
|
lg: ""
|
|
6679
6723
|
}, {
|
|
@@ -6682,7 +6726,7 @@ function so(e, t, i, o, n, l) {
|
|
|
6682
6726
|
]),
|
|
6683
6727
|
_: 2
|
|
6684
6728
|
}, 1032, ["onClick", "class"]))), 128)),
|
|
6685
|
-
|
|
6729
|
+
T(B, {
|
|
6686
6730
|
class: "w-pagination__arrow w-pagination__arrow--next",
|
|
6687
6731
|
onClick: t[7] || (t[7] = (b) => l.goToPage("+1")),
|
|
6688
6732
|
disabled: e.paginationConfig.page >= e.paginationConfig.pagesCount,
|
|
@@ -6691,12 +6735,12 @@ function so(e, t, i, o, n, l) {
|
|
|
6691
6735
|
lg: ""
|
|
6692
6736
|
}, null, 8, ["disabled"])
|
|
6693
6737
|
]),
|
|
6694
|
-
|
|
6738
|
+
w("span", fo, C(e.paginationConfig.start) + "-" + C(e.paginationConfig.end || e.paginationConfig.total) + " of " + C(e.paginationConfig.total), 1)
|
|
6695
6739
|
])
|
|
6696
6740
|
])) : p("", !0)
|
|
6697
6741
|
], 2);
|
|
6698
6742
|
}
|
|
6699
|
-
const
|
|
6743
|
+
const we = 15, go = {
|
|
6700
6744
|
name: "w-table",
|
|
6701
6745
|
props: {
|
|
6702
6746
|
items: { type: Array, required: !0 },
|
|
@@ -6713,14 +6757,14 @@ const ge = 15, oo = {
|
|
|
6713
6757
|
filter: { type: Function },
|
|
6714
6758
|
fetch: { type: Function },
|
|
6715
6759
|
expandableRows: {
|
|
6716
|
-
validator: (e) => ([void 0, !0, !1, 1, "1", ""].includes(e) ||
|
|
6760
|
+
validator: (e) => ([void 0, !0, !1, 1, "1", ""].includes(e) || F(
|
|
6717
6761
|
`Wrong value for the w-table's \`expandableRows\` prop. Given: "${e}", expected one of: [undefined, true, false, 1, '1', ''].`
|
|
6718
6762
|
), !0)
|
|
6719
6763
|
},
|
|
6720
6764
|
// Allow providing the expanded rows and keeping it in sync via .sync in Vue 2 or v-model:expandedRows in Vue 3.
|
|
6721
6765
|
expandedRows: { type: Array },
|
|
6722
6766
|
selectableRows: {
|
|
6723
|
-
validator: (e) => ([void 0, !0, !1, 1, "1", ""].includes(e) ||
|
|
6767
|
+
validator: (e) => ([void 0, !0, !1, 1, "1", ""].includes(e) || F(
|
|
6724
6768
|
`Wrong value for the w-table's \`selectableRows\` prop. Given: "${e}", expected one of: [undefined, true, false, 1, '1', ''].`
|
|
6725
6769
|
), !0)
|
|
6726
6770
|
},
|
|
@@ -6743,7 +6787,7 @@ const ge = 15, oo = {
|
|
|
6743
6787
|
validator: (e) => {
|
|
6744
6788
|
if (e) {
|
|
6745
6789
|
if (typeof e == "object" && (!e.itemsPerPage || e.page && isNaN(e.page)))
|
|
6746
|
-
return
|
|
6790
|
+
return F(
|
|
6747
6791
|
"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 }."
|
|
6748
6792
|
), !1;
|
|
6749
6793
|
} else return !0;
|
|
@@ -6800,7 +6844,7 @@ const ge = 15, oo = {
|
|
|
6800
6844
|
sortedItems() {
|
|
6801
6845
|
if (!this.activeSorting.length || this.sortFunction || this.fetch) return this.filteredItems;
|
|
6802
6846
|
const e = this.activeSorting[0].replace(/^[+-]/, ""), t = this.activeSorting[0][0] === "-";
|
|
6803
|
-
return [...this.filteredItems].sort((i,
|
|
6847
|
+
return [...this.filteredItems].sort((i, s) => (i = i[e], s = s[e], !isNaN(i) && !isNaN(s) && (i = parseFloat(i), s = parseFloat(s)), (i > s ? 1 : -1) * (t ? -1 : 1)));
|
|
6804
6848
|
},
|
|
6805
6849
|
paginatedItems() {
|
|
6806
6850
|
return typeof this.fetch == "function" ? this.sortedItems : this.sortedItems.slice(this.paginationConfig.start - 1, this.paginationConfig.end);
|
|
@@ -6865,7 +6909,7 @@ const ge = 15, oo = {
|
|
|
6865
6909
|
t && this.activeSortingKeys[e.key] === "-" ? this.activeSorting = [] : this.activeSorting[0] = (t ? "-" : "+") + e.key, this.$emit("update:sort", this.activeSorting), typeof this.sortFunction == "function" ? await this.sortFunction(this.activeSorting) : typeof this.fetch == "function" && await this.callApiFetch();
|
|
6866
6910
|
},
|
|
6867
6911
|
doSelectRow(e, t) {
|
|
6868
|
-
const i = this.expandableRows === "" ? !0 : this.expandableRows,
|
|
6912
|
+
const i = this.expandableRows === "" ? !0 : this.expandableRows, s = this.selectableRows === "" ? !0 : this.selectableRows;
|
|
6869
6913
|
if (i) {
|
|
6870
6914
|
const n = this.expandedRowsByUid[e._uid] === void 0;
|
|
6871
6915
|
n ? this.expandableRows.toString() === "1" ? this.expandedRowsInternal = [e._uid] : this.expandedRowsInternal.push(e._uid) : this.expandedRowsInternal = this.expandedRowsInternal.filter((l) => l !== e._uid), this.$emit(
|
|
@@ -6877,7 +6921,7 @@ const ge = 15, oo = {
|
|
|
6877
6921
|
expandedRows: this.expandedRowsInternal.map((l) => this.filteredItems[l])
|
|
6878
6922
|
}
|
|
6879
6923
|
), this.$emit("update:expanded-rows", this.expandedRowsInternal);
|
|
6880
|
-
} else if (
|
|
6924
|
+
} else if (s) {
|
|
6881
6925
|
let n = !1;
|
|
6882
6926
|
const l = this.selectedRowsByUid[e._uid] === void 0;
|
|
6883
6927
|
l ? (this.selectableRows.toString() === "1" ? this.selectedRowsInternal = [e._uid] : this.selectedRowsInternal.push(e._uid), n = !0) : (!this.forceSelection || this.selectedRowsInternal.length > 1) && (this.selectedRowsInternal = this.selectedRowsInternal.filter((a) => a !== e._uid), n = !0), n && (this.$emit(
|
|
@@ -6915,15 +6959,15 @@ const ge = 15, oo = {
|
|
|
6915
6959
|
* (losing the 2 columns width). So do a direct DOM manipulation using `.style.width`.
|
|
6916
6960
|
*/
|
|
6917
6961
|
onResizerMouseMove(e) {
|
|
6918
|
-
const { startCursorX: t, columnEl: i, nextColumnEl:
|
|
6962
|
+
const { startCursorX: t, columnEl: i, nextColumnEl: s, colWidth: n, nextColWidth: l } = this.colResizing;
|
|
6919
6963
|
this.colResizing.dragging = !0;
|
|
6920
6964
|
const a = e.pageX - t, r = n + l, d = n + a, h = l - a;
|
|
6921
|
-
i.style.width = n + a + "px",
|
|
6922
|
-
const
|
|
6923
|
-
if (
|
|
6924
|
-
const b = Math.max(i.offsetWidth,
|
|
6925
|
-
i.style.width = b + "px",
|
|
6926
|
-
} else
|
|
6965
|
+
i.style.width = n + a + "px", s.style.width = l - a + "px";
|
|
6966
|
+
const y = a < 0 && i.offsetWidth > d || i.offsetWidth <= we, B = a > 0 && s.offsetWidth > h;
|
|
6967
|
+
if (y) {
|
|
6968
|
+
const b = Math.max(i.offsetWidth, we);
|
|
6969
|
+
i.style.width = b + "px", s.style.width = r - b + "px";
|
|
6970
|
+
} else B && (i.style.width = r - s.offsetWidth + "px", s.style.width = s.offsetWidth + "px");
|
|
6927
6971
|
},
|
|
6928
6972
|
onResizerMouseUp() {
|
|
6929
6973
|
document.removeEventListener("mousemove", this.onResizerMouseMove), document.removeEventListener("mouseup", this.onResizerMouseUp), setTimeout(() => {
|
|
@@ -6935,8 +6979,8 @@ const ge = 15, oo = {
|
|
|
6935
6979
|
}, 0);
|
|
6936
6980
|
},
|
|
6937
6981
|
initPagination() {
|
|
6938
|
-
var
|
|
6939
|
-
const e = ((
|
|
6982
|
+
var s, n;
|
|
6983
|
+
const e = ((s = this.pagination) == null ? void 0 : s.itemsPerPage) ?? 20, t = ((n = this.pagination) == null ? void 0 : n.itemsPerPageOptions) || [20, 100, { label: "All", value: 0 }];
|
|
6940
6984
|
t.find((l) => ((l == null ? void 0 : l.value) ?? l) === +e) || t.push(e), this.paginationConfig.itemsPerPageOptions = t.map((l) => ({
|
|
6941
6985
|
label: ["string", "number"].includes(typeof l) ? l.toString() : l.label || l.value,
|
|
6942
6986
|
value: ["string", "number"].includes(typeof l) ? ~~l : l.value ?? l.label
|
|
@@ -6965,8 +7009,8 @@ const ge = 15, oo = {
|
|
|
6965
7009
|
updatePaginationConfig({ itemsPerPage: e, page: t, total: i }) {
|
|
6966
7010
|
if (i && (this.paginationConfig.total = i), e !== void 0) {
|
|
6967
7011
|
this.paginationConfig.itemsPerPage = e, e = e || this.paginationConfig.total, this.paginationConfig.page = t || this.paginationConfig.page || 1, t = this.paginationConfig.page, i = this.paginationConfig.total;
|
|
6968
|
-
const
|
|
6969
|
-
this.paginationConfig.start = 1, this.paginationConfig.end = i >=
|
|
7012
|
+
const s = e * t;
|
|
7013
|
+
this.paginationConfig.start = 1, this.paginationConfig.end = i >= s ? s : i % s, this.paginationConfig.pagesCount = Math.ceil(i / e);
|
|
6970
7014
|
}
|
|
6971
7015
|
t && this.goToPage(t);
|
|
6972
7016
|
},
|
|
@@ -6985,13 +7029,13 @@ const ge = 15, oo = {
|
|
|
6985
7029
|
* While waiting for the call to resolve, nothing in the table will change.
|
|
6986
7030
|
*/
|
|
6987
7031
|
async callApiFetch() {
|
|
6988
|
-
const { page: e, start: t, end: i, total:
|
|
7032
|
+
const { page: e, start: t, end: i, total: s, itemsPerPage: n } = this.paginationConfig;
|
|
6989
7033
|
return await this.fetch({
|
|
6990
7034
|
page: e,
|
|
6991
7035
|
start: t,
|
|
6992
|
-
end: i ||
|
|
6993
|
-
total:
|
|
6994
|
-
itemsPerPage: n ||
|
|
7036
|
+
end: i || s,
|
|
7037
|
+
total: s,
|
|
7038
|
+
itemsPerPage: n || s,
|
|
6995
7039
|
sorting: this.activeSorting
|
|
6996
7040
|
});
|
|
6997
7041
|
}
|
|
@@ -7025,9 +7069,9 @@ const ge = 15, oo = {
|
|
|
7025
7069
|
this.updatePaginationConfig({ total: e });
|
|
7026
7070
|
}
|
|
7027
7071
|
}
|
|
7028
|
-
},
|
|
7029
|
-
function
|
|
7030
|
-
return
|
|
7072
|
+
}, bo = /* @__PURE__ */ v(go, [["render", mo]]), yo = ["role", "aria-pressed", "tabindex"];
|
|
7073
|
+
function wo(e, t, i, s, n, l) {
|
|
7074
|
+
return o(), u("span", {
|
|
7031
7075
|
class: f(["w-tag", l.classes]),
|
|
7032
7076
|
onClick: t[1] || (t[1] = (a) => {
|
|
7033
7077
|
e.$emit("update:modelValue", !i.modelValue), e.$emit("input", !i.modelValue);
|
|
@@ -7038,21 +7082,21 @@ function ro(e, t, i, o, n, l) {
|
|
|
7038
7082
|
role: i.modelValue !== -1 && "button",
|
|
7039
7083
|
"aria-pressed": i.modelValue !== -1 && (i.modelValue ? "true" : "false"),
|
|
7040
7084
|
tabindex: i.modelValue !== -1 && 0,
|
|
7041
|
-
style:
|
|
7085
|
+
style: R(l.styles)
|
|
7042
7086
|
}, [
|
|
7043
7087
|
c(e.$slots, "default"),
|
|
7044
|
-
i.closable && i.modelValue ? (
|
|
7088
|
+
i.closable && i.modelValue ? (o(), u("i", {
|
|
7045
7089
|
key: 0,
|
|
7046
7090
|
class: "w-icon w-tag__closable wi-cross",
|
|
7047
|
-
onClick: t[0] || (t[0] =
|
|
7091
|
+
onClick: t[0] || (t[0] = M((a) => {
|
|
7048
7092
|
e.$emit("update:modelValue", !1), e.$emit("input", !1);
|
|
7049
7093
|
}, ["stop"])),
|
|
7050
7094
|
role: "icon",
|
|
7051
7095
|
"aria-hidden": "true"
|
|
7052
7096
|
})) : p("", !0)
|
|
7053
|
-
], 46,
|
|
7097
|
+
], 46, yo);
|
|
7054
7098
|
}
|
|
7055
|
-
const
|
|
7099
|
+
const ko = {
|
|
7056
7100
|
name: "w-tag",
|
|
7057
7101
|
props: {
|
|
7058
7102
|
modelValue: { type: [Boolean, Number], default: -1 },
|
|
@@ -7101,10 +7145,10 @@ const uo = {
|
|
|
7101
7145
|
};
|
|
7102
7146
|
}
|
|
7103
7147
|
}
|
|
7104
|
-
},
|
|
7105
|
-
function
|
|
7148
|
+
}, vo = /* @__PURE__ */ v(ko, [["render", wo]]), Co = ["for"], So = ["id", "name", "placeholder", "rows", "cols", "readonly", "aria-readonly", "disabled", "required", "tabindex"], Bo = ["for"];
|
|
7149
|
+
function _o(e, t, i, s, n, l) {
|
|
7106
7150
|
const a = $("w-icon");
|
|
7107
|
-
return
|
|
7151
|
+
return o(), g(L(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 }, {
|
|
7108
7152
|
valid: e.valid,
|
|
7109
7153
|
"onUpdate:valid": t[6] || (t[6] = (r) => e.valid = r),
|
|
7110
7154
|
wrap: l.hasLabel && i.labelPosition !== "inside",
|
|
@@ -7115,8 +7159,8 @@ function mo(e, t, i, o, n, l) {
|
|
|
7115
7159
|
style: e.$attrs.style
|
|
7116
7160
|
}), {
|
|
7117
7161
|
default: m(() => [
|
|
7118
|
-
i.labelPosition === "left" ? (
|
|
7119
|
-
e.$slots.default || i.label ? (
|
|
7162
|
+
i.labelPosition === "left" ? (o(), u(k, { key: 0 }, [
|
|
7163
|
+
e.$slots.default || i.label ? (o(), u("label", {
|
|
7120
7164
|
key: 0,
|
|
7121
7165
|
class: f(["w-textarea__label w-textarea__label--left w-form-el-shakable", e.labelClasses]),
|
|
7122
7166
|
for: `w-textarea--${e._.uid}`
|
|
@@ -7124,15 +7168,15 @@ function mo(e, t, i, o, n, l) {
|
|
|
7124
7168
|
c(e.$slots, "default", {}, () => [
|
|
7125
7169
|
S(C(i.label), 1)
|
|
7126
7170
|
])
|
|
7127
|
-
], 10,
|
|
7171
|
+
], 10, Co)) : p("", !0)
|
|
7128
7172
|
], 64)) : p("", !0),
|
|
7129
|
-
|
|
7173
|
+
w("div", {
|
|
7130
7174
|
class: f(["w-textarea__textarea-wrap", l.inputWrapClasses])
|
|
7131
7175
|
}, [
|
|
7132
7176
|
c(e.$slots, "icon-left", {
|
|
7133
7177
|
inputId: `w-textarea--${e._.uid}`
|
|
7134
7178
|
}, () => [
|
|
7135
|
-
i.innerIconLeft ? (
|
|
7179
|
+
i.innerIconLeft ? (o(), g(a, {
|
|
7136
7180
|
key: 0,
|
|
7137
7181
|
class: "w-textarea__icon w-textarea__icon--inner-left",
|
|
7138
7182
|
tag: "label",
|
|
@@ -7145,7 +7189,7 @@ function mo(e, t, i, o, n, l) {
|
|
|
7145
7189
|
_: 1
|
|
7146
7190
|
}, 8, ["for"])) : p("", !0)
|
|
7147
7191
|
]),
|
|
7148
|
-
W(
|
|
7192
|
+
W(w("textarea", _({
|
|
7149
7193
|
class: "w-textarea__textarea",
|
|
7150
7194
|
ref: "textarea",
|
|
7151
7195
|
"onUpdate:modelValue": t[1] || (t[1] = (r) => n.inputValue = r)
|
|
@@ -7163,11 +7207,11 @@ function mo(e, t, i, o, n, l) {
|
|
|
7163
7207
|
disabled: e.isDisabled || null,
|
|
7164
7208
|
required: e.required || null,
|
|
7165
7209
|
tabindex: e.tabindex || null
|
|
7166
|
-
}), null, 16,
|
|
7167
|
-
[
|
|
7210
|
+
}), null, 16, So), [
|
|
7211
|
+
[ve, n.inputValue]
|
|
7168
7212
|
]),
|
|
7169
|
-
i.labelPosition === "inside" && l.showLabelInside ? (
|
|
7170
|
-
e.$slots.default || i.label ? (
|
|
7213
|
+
i.labelPosition === "inside" && l.showLabelInside ? (o(), u(k, { key: 0 }, [
|
|
7214
|
+
e.$slots.default || i.label ? (o(), u("label", {
|
|
7171
7215
|
key: 0,
|
|
7172
7216
|
class: f(["w-textarea__label w-textarea__label--inside w-form-el-shakable", e.labelClasses])
|
|
7173
7217
|
}, [
|
|
@@ -7179,7 +7223,7 @@ function mo(e, t, i, o, n, l) {
|
|
|
7179
7223
|
c(e.$slots, "icon-right", {
|
|
7180
7224
|
inputId: `w-textarea--${e._.uid}`
|
|
7181
7225
|
}, () => [
|
|
7182
|
-
i.innerIconRight ? (
|
|
7226
|
+
i.innerIconRight ? (o(), g(a, {
|
|
7183
7227
|
key: 0,
|
|
7184
7228
|
class: "w-textarea__icon w-textarea__icon--inner-right",
|
|
7185
7229
|
tag: "label",
|
|
@@ -7193,8 +7237,8 @@ function mo(e, t, i, o, n, l) {
|
|
|
7193
7237
|
}, 8, ["for"])) : p("", !0)
|
|
7194
7238
|
])
|
|
7195
7239
|
], 2),
|
|
7196
|
-
i.labelPosition === "right" ? (
|
|
7197
|
-
e.$slots.default || i.label ? (
|
|
7240
|
+
i.labelPosition === "right" ? (o(), u(k, { key: 1 }, [
|
|
7241
|
+
e.$slots.default || i.label ? (o(), u("label", {
|
|
7198
7242
|
key: 0,
|
|
7199
7243
|
class: f(["w-textarea__label w-textarea__label--right w-form-el-shakable", e.labelClasses]),
|
|
7200
7244
|
for: `w-textarea--${e._.uid}`
|
|
@@ -7202,15 +7246,15 @@ function mo(e, t, i, o, n, l) {
|
|
|
7202
7246
|
c(e.$slots, "default", {}, () => [
|
|
7203
7247
|
S(C(i.label), 1)
|
|
7204
7248
|
])
|
|
7205
|
-
], 10,
|
|
7249
|
+
], 10, Bo)) : p("", !0)
|
|
7206
7250
|
], 64)) : p("", !0)
|
|
7207
7251
|
]),
|
|
7208
7252
|
_: 3
|
|
7209
7253
|
}, 16, ["valid", "wrap", "class", "style"]);
|
|
7210
7254
|
}
|
|
7211
|
-
const
|
|
7255
|
+
const $o = {
|
|
7212
7256
|
name: "w-textarea",
|
|
7213
|
-
mixins: [
|
|
7257
|
+
mixins: [z],
|
|
7214
7258
|
inheritAttrs: !1,
|
|
7215
7259
|
// The attrs should only be added to the textarea not the wrapper.
|
|
7216
7260
|
props: {
|
|
@@ -7334,16 +7378,16 @@ const go = {
|
|
|
7334
7378
|
e ? this.getLineHeight() : this.height = null;
|
|
7335
7379
|
}
|
|
7336
7380
|
}
|
|
7337
|
-
},
|
|
7338
|
-
function
|
|
7339
|
-
return
|
|
7381
|
+
}, Vo = /* @__PURE__ */ v($o, [["render", _o]]), Io = ["innerHTML"], To = ["innerHTML"];
|
|
7382
|
+
function Lo(e, t, i, s, n, l) {
|
|
7383
|
+
return o(), u("ul", {
|
|
7340
7384
|
class: f(["w-timeline", l.classes])
|
|
7341
7385
|
}, [
|
|
7342
|
-
(
|
|
7386
|
+
(o(!0), u(k, null, x(i.items, (a, r) => (o(), u("li", {
|
|
7343
7387
|
class: "w-timeline-item",
|
|
7344
7388
|
key: r
|
|
7345
7389
|
}, [
|
|
7346
|
-
(
|
|
7390
|
+
(o(), g(L(a[i.itemIconKey] || i.icon ? "w-icon" : "div"), {
|
|
7347
7391
|
class: f(["w-timeline-item__bullet", { [a[i.itemColorKey] || i.color]: a[i.itemColorKey] || i.color }])
|
|
7348
7392
|
}, {
|
|
7349
7393
|
default: m(() => [
|
|
@@ -7360,19 +7404,19 @@ function ko(e, t, i, o, n, l) {
|
|
|
7360
7404
|
item: a,
|
|
7361
7405
|
index: r + 1
|
|
7362
7406
|
}, () => [
|
|
7363
|
-
|
|
7407
|
+
w("div", {
|
|
7364
7408
|
class: f(["w-timeline-item__title", { [a[i.itemColorKey] || i.color]: a[i.itemColorKey] || i.color }]),
|
|
7365
7409
|
innerHTML: a[i.itemTitleKey]
|
|
7366
|
-
}, null, 10,
|
|
7367
|
-
|
|
7410
|
+
}, null, 10, Io),
|
|
7411
|
+
w("div", {
|
|
7368
7412
|
class: "w-timeline-item__content",
|
|
7369
7413
|
innerHTML: a[i.itemContentKey]
|
|
7370
|
-
}, null, 8,
|
|
7414
|
+
}, null, 8, To)
|
|
7371
7415
|
])
|
|
7372
7416
|
]))), 128))
|
|
7373
7417
|
], 2);
|
|
7374
7418
|
}
|
|
7375
|
-
const
|
|
7419
|
+
const Ro = {
|
|
7376
7420
|
name: "w-timeline",
|
|
7377
7421
|
props: {
|
|
7378
7422
|
items: { type: [Array, Number], required: !0 },
|
|
@@ -7394,16 +7438,16 @@ const vo = {
|
|
|
7394
7438
|
};
|
|
7395
7439
|
}
|
|
7396
7440
|
}
|
|
7397
|
-
},
|
|
7398
|
-
function
|
|
7399
|
-
return
|
|
7441
|
+
}, xo = /* @__PURE__ */ v(Ro, [["render", Lo]]);
|
|
7442
|
+
function Po(e, t, i, s, n, l) {
|
|
7443
|
+
return o(), u("div", {
|
|
7400
7444
|
class: f(["w-toolbar", l.classes]),
|
|
7401
|
-
style:
|
|
7445
|
+
style: R(l.styles)
|
|
7402
7446
|
}, [
|
|
7403
7447
|
c(e.$slots, "default")
|
|
7404
7448
|
], 6);
|
|
7405
7449
|
}
|
|
7406
|
-
const
|
|
7450
|
+
const Oo = {
|
|
7407
7451
|
name: "w-toolbar",
|
|
7408
7452
|
props: {
|
|
7409
7453
|
color: { type: String },
|
|
@@ -7454,20 +7498,20 @@ const Bo = {
|
|
|
7454
7498
|
};
|
|
7455
7499
|
}
|
|
7456
7500
|
}
|
|
7457
|
-
},
|
|
7458
|
-
function
|
|
7459
|
-
return
|
|
7501
|
+
}, Mo = /* @__PURE__ */ v(Oo, [["render", Po]]);
|
|
7502
|
+
function zo(e, t, i, s, n, l) {
|
|
7503
|
+
return o(), u(k, null, [
|
|
7460
7504
|
c(e.$slots, "activator", { on: l.activatorEventHandlers }),
|
|
7461
|
-
|
|
7505
|
+
T(P, {
|
|
7462
7506
|
name: l.transitionName,
|
|
7463
7507
|
appear: ""
|
|
7464
7508
|
}, {
|
|
7465
7509
|
default: m(() => [
|
|
7466
|
-
e.detachableVisible ? (
|
|
7510
|
+
e.detachableVisible ? (o(), u("div", {
|
|
7467
7511
|
class: f(["w-tooltip", l.classes]),
|
|
7468
7512
|
ref: "detachable",
|
|
7469
7513
|
key: e._.uid,
|
|
7470
|
-
style:
|
|
7514
|
+
style: R(l.styles)
|
|
7471
7515
|
}, [
|
|
7472
7516
|
c(e.$slots, "default")
|
|
7473
7517
|
], 6)) : p("", !0)
|
|
@@ -7476,9 +7520,9 @@ function $o(e, t, i, o, n, l) {
|
|
|
7476
7520
|
}, 8, ["name"])
|
|
7477
7521
|
], 64);
|
|
7478
7522
|
}
|
|
7479
|
-
const
|
|
7523
|
+
const Eo = {
|
|
7480
7524
|
name: "w-tooltip",
|
|
7481
|
-
mixins: [
|
|
7525
|
+
mixins: [Be],
|
|
7482
7526
|
props: {
|
|
7483
7527
|
modelValue: {},
|
|
7484
7528
|
showOnClick: { type: Boolean },
|
|
@@ -7612,24 +7656,24 @@ const Vo = {
|
|
|
7612
7656
|
}
|
|
7613
7657
|
}
|
|
7614
7658
|
// watch, mounted & beforeDestroy hooks are set in the detachable.js mixin.
|
|
7615
|
-
},
|
|
7616
|
-
function
|
|
7617
|
-
return
|
|
7659
|
+
}, Ao = /* @__PURE__ */ v(Eo, [["render", zo]]);
|
|
7660
|
+
function Wo(e, t, i, s, n, l) {
|
|
7661
|
+
return o(), g(P, _({ name: "bounce" }, e.$props), {
|
|
7618
7662
|
default: m(() => [
|
|
7619
7663
|
c(e.$slots, "default")
|
|
7620
7664
|
]),
|
|
7621
7665
|
_: 3
|
|
7622
7666
|
}, 16);
|
|
7623
7667
|
}
|
|
7624
|
-
const
|
|
7668
|
+
const Ko = {
|
|
7625
7669
|
name: "w-transition-bounce",
|
|
7626
7670
|
props: {
|
|
7627
7671
|
appear: { type: Boolean },
|
|
7628
7672
|
duration: { type: [Number, String] }
|
|
7629
7673
|
}
|
|
7630
|
-
},
|
|
7631
|
-
function
|
|
7632
|
-
return
|
|
7674
|
+
}, No = /* @__PURE__ */ v(Ko, [["render", Wo]]);
|
|
7675
|
+
function Do(e, t, i, s, n, l) {
|
|
7676
|
+
return o(), g(P, {
|
|
7633
7677
|
name: "expand",
|
|
7634
7678
|
mode: "out-in",
|
|
7635
7679
|
css: !1,
|
|
@@ -7649,7 +7693,7 @@ function Po(e, t, i, o, n, l) {
|
|
|
7649
7693
|
_: 3
|
|
7650
7694
|
}, 8, ["onBeforeAppear", "onAppear", "onAfterAppear", "onBeforeEnter", "onEnter", "onAfterEnter", "onBeforeLeave", "onLeave", "onAfterLeave"]);
|
|
7651
7695
|
}
|
|
7652
|
-
const
|
|
7696
|
+
const Ho = {
|
|
7653
7697
|
name: "w-transition-expand",
|
|
7654
7698
|
props: {
|
|
7655
7699
|
x: { type: Boolean },
|
|
@@ -7739,61 +7783,61 @@ const Oo = {
|
|
|
7739
7783
|
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;
|
|
7740
7784
|
}
|
|
7741
7785
|
}
|
|
7742
|
-
},
|
|
7743
|
-
function
|
|
7744
|
-
return
|
|
7786
|
+
}, Fo = /* @__PURE__ */ v(Ho, [["render", Do]]);
|
|
7787
|
+
function jo(e, t, i, s, n, l) {
|
|
7788
|
+
return o(), g(P, _({ name: "fade" }, e.$props), {
|
|
7745
7789
|
default: m(() => [
|
|
7746
7790
|
c(e.$slots, "default")
|
|
7747
7791
|
]),
|
|
7748
7792
|
_: 3
|
|
7749
7793
|
}, 16);
|
|
7750
7794
|
}
|
|
7751
|
-
const
|
|
7795
|
+
const Uo = {
|
|
7752
7796
|
name: "w-transition-fade",
|
|
7753
7797
|
props: {
|
|
7754
7798
|
appear: { type: Boolean },
|
|
7755
7799
|
duration: { type: [Number, String] }
|
|
7756
7800
|
}
|
|
7757
|
-
},
|
|
7758
|
-
function
|
|
7759
|
-
return
|
|
7801
|
+
}, qo = /* @__PURE__ */ v(Uo, [["render", jo]]);
|
|
7802
|
+
function Xo(e, t, i, s, n, l) {
|
|
7803
|
+
return o(), g(P, _({ name: "scale" }, e.$props), {
|
|
7760
7804
|
default: m(() => [
|
|
7761
7805
|
c(e.$slots, "default")
|
|
7762
7806
|
]),
|
|
7763
7807
|
_: 3
|
|
7764
7808
|
}, 16);
|
|
7765
7809
|
}
|
|
7766
|
-
const
|
|
7810
|
+
const Yo = {
|
|
7767
7811
|
name: "w-transition-scale",
|
|
7768
7812
|
props: {
|
|
7769
7813
|
appear: { type: Boolean },
|
|
7770
7814
|
duration: { type: [Number, String] }
|
|
7771
7815
|
}
|
|
7772
|
-
},
|
|
7773
|
-
function
|
|
7774
|
-
return
|
|
7816
|
+
}, Go = /* @__PURE__ */ v(Yo, [["render", Xo]]);
|
|
7817
|
+
function Jo(e, t, i, s, n, l) {
|
|
7818
|
+
return o(), g(P, _({ name: "scale-fade" }, e.$props), {
|
|
7775
7819
|
default: m(() => [
|
|
7776
7820
|
c(e.$slots, "default")
|
|
7777
7821
|
]),
|
|
7778
7822
|
_: 3
|
|
7779
7823
|
}, 16);
|
|
7780
7824
|
}
|
|
7781
|
-
const
|
|
7825
|
+
const Qo = {
|
|
7782
7826
|
name: "w-transition-scale-fade",
|
|
7783
7827
|
props: {
|
|
7784
7828
|
appear: { type: Boolean },
|
|
7785
7829
|
duration: { type: [Number, String] }
|
|
7786
7830
|
}
|
|
7787
|
-
},
|
|
7788
|
-
function
|
|
7789
|
-
return
|
|
7831
|
+
}, Zo = /* @__PURE__ */ v(Qo, [["render", Jo]]);
|
|
7832
|
+
function ea(e, t, i, s, n, l) {
|
|
7833
|
+
return o(), g(P, _({ name: l.transitionName }, e.$props), {
|
|
7790
7834
|
default: m(() => [
|
|
7791
7835
|
c(e.$slots, "default")
|
|
7792
7836
|
]),
|
|
7793
7837
|
_: 3
|
|
7794
7838
|
}, 16, ["name"]);
|
|
7795
7839
|
}
|
|
7796
|
-
const
|
|
7840
|
+
const ta = {
|
|
7797
7841
|
name: "w-transition-slide",
|
|
7798
7842
|
props: {
|
|
7799
7843
|
appear: { type: Boolean },
|
|
@@ -7811,16 +7855,16 @@ const jo = {
|
|
|
7811
7855
|
return `slide-${this.direction}`;
|
|
7812
7856
|
}
|
|
7813
7857
|
}
|
|
7814
|
-
},
|
|
7815
|
-
function
|
|
7816
|
-
return
|
|
7858
|
+
}, ia = /* @__PURE__ */ v(ta, [["render", ea]]);
|
|
7859
|
+
function la(e, t, i, s, n, l) {
|
|
7860
|
+
return o(), g(P, _({ name: l.transitionName }, e.$props), {
|
|
7817
7861
|
default: m(() => [
|
|
7818
7862
|
c(e.$slots, "default")
|
|
7819
7863
|
]),
|
|
7820
7864
|
_: 3
|
|
7821
7865
|
}, 16, ["name"]);
|
|
7822
7866
|
}
|
|
7823
|
-
const
|
|
7867
|
+
const sa = {
|
|
7824
7868
|
name: "w-transition-slide-fade",
|
|
7825
7869
|
props: {
|
|
7826
7870
|
appear: { type: Boolean },
|
|
@@ -7838,47 +7882,47 @@ const Xo = {
|
|
|
7838
7882
|
return `slide-fade-${this.direction}`;
|
|
7839
7883
|
}
|
|
7840
7884
|
}
|
|
7841
|
-
},
|
|
7842
|
-
function
|
|
7843
|
-
return
|
|
7885
|
+
}, oa = /* @__PURE__ */ v(sa, [["render", la]]);
|
|
7886
|
+
function aa(e, t, i, s, n, l) {
|
|
7887
|
+
return o(), g(P, _({ name: "twist" }, e.$props), {
|
|
7844
7888
|
default: m(() => [
|
|
7845
7889
|
c(e.$slots, "default")
|
|
7846
7890
|
]),
|
|
7847
7891
|
_: 3
|
|
7848
7892
|
}, 16);
|
|
7849
7893
|
}
|
|
7850
|
-
const
|
|
7894
|
+
const na = {
|
|
7851
7895
|
name: "w-transition-twist",
|
|
7852
7896
|
props: {
|
|
7853
7897
|
appear: { type: Boolean },
|
|
7854
7898
|
duration: { type: [Number, String] }
|
|
7855
7899
|
}
|
|
7856
|
-
},
|
|
7900
|
+
}, ra = /* @__PURE__ */ v(na, [["render", aa]]), da = ["innerHTML"], ua = {
|
|
7857
7901
|
key: 1,
|
|
7858
7902
|
class: "ml1"
|
|
7859
7903
|
};
|
|
7860
|
-
function
|
|
7904
|
+
function ha(e, t, i, s, n, l) {
|
|
7861
7905
|
const a = $("w-button"), r = $("w-icon"), d = $("w-tree", !0);
|
|
7862
|
-
return
|
|
7906
|
+
return o(), u("ul", {
|
|
7863
7907
|
class: f(["w-tree", l.classes])
|
|
7864
7908
|
}, [
|
|
7865
|
-
(
|
|
7909
|
+
(o(!0), u(k, null, x(e.currentDepthItems, (h, y) => (o(), u("li", {
|
|
7866
7910
|
class: f(["w-tree__item", l.itemClasses(h)]),
|
|
7867
|
-
key:
|
|
7911
|
+
key: y
|
|
7868
7912
|
}, [
|
|
7869
|
-
(
|
|
7913
|
+
(o(), g(L(l.getTreeItemComponent(h)), _({
|
|
7870
7914
|
class: "w-tree__item-label",
|
|
7871
7915
|
ref_for: !0
|
|
7872
7916
|
}, h.route && { [!e.$router || l.hasExternalLink(h) ? "href" : "to"]: h.route }, {
|
|
7873
|
-
onClick: (
|
|
7874
|
-
onKeydown: (
|
|
7917
|
+
onClick: (B) => !i.disabled && !h.disabled && l.onLabelClick(h, B),
|
|
7918
|
+
onKeydown: (B) => !i.disabled && !h.disabled && l.onLabelKeydown(h, B),
|
|
7875
7919
|
tabindex: l.getTreeItemTabindex(h)
|
|
7876
7920
|
}), {
|
|
7877
7921
|
default: m(() => [
|
|
7878
|
-
(h.children || h.branch) && (i.expandOpenIcon && h.open || i.expandIcon) && !(i.unexpandableEmpty && !h.children) ? (
|
|
7922
|
+
(h.children || h.branch) && (i.expandOpenIcon && h.open || i.expandIcon) && !(i.unexpandableEmpty && !h.children) ? (o(), g(a, {
|
|
7879
7923
|
key: 0,
|
|
7880
7924
|
class: "w-tree__item-expand",
|
|
7881
|
-
onClick:
|
|
7925
|
+
onClick: M((B) => !i.disabled && !h.disabled && l.onLabelClick(h, B), ["stop"]),
|
|
7882
7926
|
color: "inherit",
|
|
7883
7927
|
icon: h.open && i.expandOpenIcon || i.expandIcon,
|
|
7884
7928
|
"icon-props": { rotate90a: !h.open },
|
|
@@ -7893,9 +7937,9 @@ function ta(e, t, i, o, n, l) {
|
|
|
7893
7937
|
path: h.path,
|
|
7894
7938
|
open: h.open
|
|
7895
7939
|
}, () => {
|
|
7896
|
-
var
|
|
7940
|
+
var B;
|
|
7897
7941
|
return [
|
|
7898
|
-
l.itemIcon(h) ? (
|
|
7942
|
+
l.itemIcon(h) ? (o(), g(r, {
|
|
7899
7943
|
key: 0,
|
|
7900
7944
|
class: "w-tree__item-icon",
|
|
7901
7945
|
color: h.originalItem[i.itemIconColorKey] || i.iconColor
|
|
@@ -7905,42 +7949,42 @@ function ta(e, t, i, o, n, l) {
|
|
|
7905
7949
|
]),
|
|
7906
7950
|
_: 2
|
|
7907
7951
|
}, 1032, ["color"])) : p("", !0),
|
|
7908
|
-
|
|
7952
|
+
w("span", {
|
|
7909
7953
|
innerHTML: h.label
|
|
7910
|
-
}, null, 8,
|
|
7911
|
-
i.counts && (h.children || h.branch) ? (
|
|
7954
|
+
}, null, 8, da),
|
|
7955
|
+
i.counts && (h.children || h.branch) ? (o(), u("span", ua, "(" + C(((B = h.originalItem.children) == null ? void 0 : B.length) || 0) + ")", 1)) : p("", !0)
|
|
7912
7956
|
];
|
|
7913
7957
|
})
|
|
7914
7958
|
]),
|
|
7915
7959
|
_: 2
|
|
7916
7960
|
}, 1040, ["onClick", "onKeydown", "tabindex"])),
|
|
7917
|
-
(
|
|
7961
|
+
(o(), g(L(i.noTransition ? "div" : "w-transition-expand"), {
|
|
7918
7962
|
y: !i.noTransition || null,
|
|
7919
|
-
onAfterEnter: (
|
|
7920
|
-
onAfterLeave: (
|
|
7963
|
+
onAfterEnter: (B) => e.$emit("open", l.emitPayload(h)),
|
|
7964
|
+
onAfterLeave: (B) => e.$emit("close", l.emitPayload(h))
|
|
7921
7965
|
}, {
|
|
7922
7966
|
default: m(() => [
|
|
7923
|
-
h.children && h.open ? (
|
|
7967
|
+
h.children && h.open ? (o(), g(d, _({
|
|
7924
7968
|
key: 0,
|
|
7925
7969
|
ref_for: !0
|
|
7926
7970
|
}, e.$props, {
|
|
7927
7971
|
depth: i.depth + 1,
|
|
7928
7972
|
data: h.originalItem.children,
|
|
7929
7973
|
parent: h,
|
|
7930
|
-
onBeforeOpen: t[0] || (t[0] = (
|
|
7931
|
-
onOpen: t[1] || (t[1] = (
|
|
7932
|
-
onBeforeClose: t[2] || (t[2] = (
|
|
7933
|
-
onClose: t[3] || (t[3] = (
|
|
7934
|
-
onClick: t[4] || (t[4] = (
|
|
7935
|
-
onSelect: t[5] || (t[5] = (
|
|
7936
|
-
"onUpdate:modelValue": t[6] || (t[6] = (
|
|
7974
|
+
onBeforeOpen: t[0] || (t[0] = (B) => e.$emit("before-open", B)),
|
|
7975
|
+
onOpen: t[1] || (t[1] = (B) => e.$emit("open", B)),
|
|
7976
|
+
onBeforeClose: t[2] || (t[2] = (B) => e.$emit("before-close", B)),
|
|
7977
|
+
onClose: t[3] || (t[3] = (B) => e.$emit("close", B)),
|
|
7978
|
+
onClick: t[4] || (t[4] = (B) => e.$emit("click", B)),
|
|
7979
|
+
onSelect: t[5] || (t[5] = (B) => e.$emit("select", B)),
|
|
7980
|
+
"onUpdate:modelValue": t[6] || (t[6] = (B) => e.$emit("update:model-value", B))
|
|
7937
7981
|
}), {
|
|
7938
|
-
item: m(({ item:
|
|
7982
|
+
item: m(({ item: B, depth: b, path: I, open: V }) => [
|
|
7939
7983
|
c(e.$slots, "item", {
|
|
7940
|
-
item:
|
|
7984
|
+
item: B,
|
|
7941
7985
|
depth: b,
|
|
7942
|
-
path:
|
|
7943
|
-
open:
|
|
7986
|
+
path: I,
|
|
7987
|
+
open: V
|
|
7944
7988
|
})
|
|
7945
7989
|
]),
|
|
7946
7990
|
_: 2
|
|
@@ -7951,7 +7995,7 @@ function ta(e, t, i, o, n, l) {
|
|
|
7951
7995
|
], 2))), 128))
|
|
7952
7996
|
], 2);
|
|
7953
7997
|
}
|
|
7954
|
-
const
|
|
7998
|
+
const ca = {
|
|
7955
7999
|
name: "w-tree",
|
|
7956
8000
|
props: {
|
|
7957
8001
|
modelValue: { type: [Object, Array] },
|
|
@@ -8012,22 +8056,22 @@ const ia = {
|
|
|
8012
8056
|
// From data watcher, retain the oldItems open state.
|
|
8013
8057
|
updateCurrentDepthTree(e, t = []) {
|
|
8014
8058
|
if (this.currentDepthItems = [], !Array.isArray(e) && typeof e != "object")
|
|
8015
|
-
return
|
|
8016
|
-
Array.isArray(e) || (e = [e]), e.forEach((i,
|
|
8059
|
+
return j(`[w-tree] the tree items must be of type array or object, ${typeof e} received.`);
|
|
8060
|
+
Array.isArray(e) || (e = [e]), e.forEach((i, s) => {
|
|
8017
8061
|
var l, a;
|
|
8018
8062
|
const n = {
|
|
8019
8063
|
originalItem: i,
|
|
8020
8064
|
// Store the original item to return it on event emits.
|
|
8021
|
-
_uid: this.depth.toString() + (
|
|
8065
|
+
_uid: this.depth.toString() + (s + 1),
|
|
8022
8066
|
label: i[this.itemLabelKey],
|
|
8023
8067
|
children: !!i.children,
|
|
8024
8068
|
// The children tree remains available in originalItem.
|
|
8025
8069
|
branch: i.branch,
|
|
8026
8070
|
route: i[this.itemRouteKey],
|
|
8027
8071
|
disabled: i[this.itemDisabledKey],
|
|
8028
|
-
selected: ((l = t[
|
|
8072
|
+
selected: ((l = t[s]) == null ? void 0 : l.selected) || !1,
|
|
8029
8073
|
depth: this.depth,
|
|
8030
|
-
open: !!((a = t[
|
|
8074
|
+
open: !!((a = t[s]) != null && a.open || this.expandAll || i[this.itemOpenKey]),
|
|
8031
8075
|
parent: this.parent || null,
|
|
8032
8076
|
path: []
|
|
8033
8077
|
// Ancestors path from root to leaf including self.
|
|
@@ -8073,13 +8117,13 @@ const ia = {
|
|
|
8073
8117
|
},
|
|
8074
8118
|
onLabelClick(e, t) {
|
|
8075
8119
|
e[this.itemRouteKey] && this.$router && !this.hasExternalLink(e) && t.preventDefault(), (e.children || e.branch && !this.unexpandableEmpty) && this.expandDepth(e), this.selectable && (e.selected = !e.selected);
|
|
8076
|
-
const
|
|
8077
|
-
this.$emit("click",
|
|
8120
|
+
const s = this.emitPayload(e, t);
|
|
8121
|
+
this.$emit("click", s), this.emitItemSelection(e, t);
|
|
8078
8122
|
},
|
|
8079
8123
|
onLabelKeydown(e, t) {
|
|
8080
8124
|
if (!(t.metaKey || t.ctrlKey || t.altKey || t.shiftKey) && [13, 32, 37, 38, 39, 40].includes(t.keyCode) && ((e.children || e.branch) && ([13, 32].includes(t.keyCode) ? this.expandDepth(e) && t.preventDefault() : t.keyCode === 37 ? this.expandDepth(e, !1) && t.preventDefault() : t.keyCode === 39 && this.expandDepth(e, !0) && t.preventDefault()), [38, 40].includes(t.keyCode))) {
|
|
8081
|
-
const
|
|
8082
|
-
[...
|
|
8125
|
+
const s = this.$el.closest(".w-tree--depth0").querySelectorAll('.w-tree__item-label[tabindex="0"]'), n = t.target.closest(".w-tree__item-label"), l = t.keyCode === 38 ? -1 : 1;
|
|
8126
|
+
[...s].some((a, r) => a.isSameNode(n) ? (s[r + l] && s[r + l].focus(), !0) : !1);
|
|
8083
8127
|
}
|
|
8084
8128
|
t.keyCode === 13 && (this.selectable && (e.selected = !e.selected), this.emitItemSelection(e, t));
|
|
8085
8129
|
},
|
|
@@ -8149,63 +8193,63 @@ const ia = {
|
|
|
8149
8193
|
unmounted() {
|
|
8150
8194
|
this.dataPropUnwatch();
|
|
8151
8195
|
}
|
|
8152
|
-
},
|
|
8196
|
+
}, pa = /* @__PURE__ */ v(ca, [["render", ha]]), fa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
8153
8197
|
__proto__: null,
|
|
8154
|
-
WAccordion:
|
|
8155
|
-
WAlert:
|
|
8156
|
-
WApp:
|
|
8157
|
-
WAutocomplete:
|
|
8158
|
-
WBadge:
|
|
8159
|
-
WBreadcrumbs:
|
|
8160
|
-
WButton:
|
|
8161
|
-
WCard:
|
|
8162
|
-
WCheckbox:
|
|
8163
|
-
WCheckboxes:
|
|
8164
|
-
WConfirm:
|
|
8165
|
-
WDatePicker:
|
|
8166
|
-
WDialog:
|
|
8167
|
-
WDivider:
|
|
8168
|
-
WDrawer:
|
|
8169
|
-
WFlex:
|
|
8170
|
-
WForm:
|
|
8171
|
-
WFormElement:
|
|
8172
|
-
WGrid:
|
|
8173
|
-
WIcon:
|
|
8174
|
-
WImage:
|
|
8175
|
-
WInput:
|
|
8176
|
-
WList:
|
|
8177
|
-
WMenu:
|
|
8178
|
-
WNotification:
|
|
8179
|
-
WOverlay:
|
|
8180
|
-
WParallax:
|
|
8181
|
-
WProgress:
|
|
8182
|
-
WRadio:
|
|
8183
|
-
WRadios:
|
|
8184
|
-
WRating:
|
|
8185
|
-
WScrollable:
|
|
8186
|
-
WSelect:
|
|
8187
|
-
WSlider:
|
|
8188
|
-
WSpinner:
|
|
8189
|
-
WSteps:
|
|
8190
|
-
WSwitch:
|
|
8191
|
-
WTable:
|
|
8192
|
-
WTabs:
|
|
8193
|
-
WTag:
|
|
8194
|
-
WTextarea:
|
|
8195
|
-
WTimeline:
|
|
8196
|
-
WToolbar:
|
|
8197
|
-
WTooltip:
|
|
8198
|
-
WTransitionBounce:
|
|
8199
|
-
WTransitionExpand:
|
|
8200
|
-
WTransitionFade:
|
|
8201
|
-
WTransitionScale:
|
|
8202
|
-
WTransitionScaleFade:
|
|
8203
|
-
WTransitionSlide:
|
|
8204
|
-
WTransitionSlideFade:
|
|
8205
|
-
WTransitionTwist:
|
|
8206
|
-
WTree:
|
|
8207
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
8208
|
-
|
|
8198
|
+
WAccordion: at,
|
|
8199
|
+
WAlert: ut,
|
|
8200
|
+
WApp: Bt,
|
|
8201
|
+
WAutocomplete: kt,
|
|
8202
|
+
WBadge: It,
|
|
8203
|
+
WBreadcrumbs: xt,
|
|
8204
|
+
WButton: Nt,
|
|
8205
|
+
WCard: jt,
|
|
8206
|
+
WCheckbox: ti,
|
|
8207
|
+
WCheckboxes: oi,
|
|
8208
|
+
WConfirm: ri,
|
|
8209
|
+
WDatePicker: hi,
|
|
8210
|
+
WDialog: fi,
|
|
8211
|
+
WDivider: yi,
|
|
8212
|
+
WDrawer: Si,
|
|
8213
|
+
WFlex: $i,
|
|
8214
|
+
WForm: Li,
|
|
8215
|
+
WFormElement: Pi,
|
|
8216
|
+
WGrid: zi,
|
|
8217
|
+
WIcon: Wi,
|
|
8218
|
+
WImage: Hi,
|
|
8219
|
+
WInput: el,
|
|
8220
|
+
WList: ll,
|
|
8221
|
+
WMenu: al,
|
|
8222
|
+
WNotification: dl,
|
|
8223
|
+
WOverlay: cl,
|
|
8224
|
+
WParallax: gl,
|
|
8225
|
+
WProgress: Bl,
|
|
8226
|
+
WRadio: xl,
|
|
8227
|
+
WRadios: zl,
|
|
8228
|
+
WRating: Nl,
|
|
8229
|
+
WScrollable: jl,
|
|
8230
|
+
WSelect: Ql,
|
|
8231
|
+
WSlider: cs,
|
|
8232
|
+
WSpinner: gs,
|
|
8233
|
+
WSteps: ws,
|
|
8234
|
+
WSwitch: Vs,
|
|
8235
|
+
WTable: bo,
|
|
8236
|
+
WTabs: Ks,
|
|
8237
|
+
WTag: vo,
|
|
8238
|
+
WTextarea: Vo,
|
|
8239
|
+
WTimeline: xo,
|
|
8240
|
+
WToolbar: Mo,
|
|
8241
|
+
WTooltip: Ao,
|
|
8242
|
+
WTransitionBounce: No,
|
|
8243
|
+
WTransitionExpand: Fo,
|
|
8244
|
+
WTransitionFade: qo,
|
|
8245
|
+
WTransitionScale: Go,
|
|
8246
|
+
WTransitionScaleFade: Zo,
|
|
8247
|
+
WTransitionSlide: ia,
|
|
8248
|
+
WTransitionSlideFade: oa,
|
|
8249
|
+
WTransitionTwist: ra,
|
|
8250
|
+
WTree: pa
|
|
8251
|
+
}, Symbol.toStringTag, { value: "Module" })), ma = q.install;
|
|
8252
|
+
q.install = (e, t = {}) => ma.call(q, e, { components: fa, ...t });
|
|
8209
8253
|
export {
|
|
8210
|
-
|
|
8254
|
+
q as default
|
|
8211
8255
|
};
|