wave-ui 3.12.0 → 3.13.2
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 +6 -0
- package/dist/wave-ui.cjs.js +1 -1
- package/dist/wave-ui.es.js +1123 -1098
- package/dist/wave-ui.umd.js +1 -1
- package/package.json +17 -17
- package/src/wave-ui/components/w-alert.vue +1 -1
- package/src/wave-ui/components/w-badge.vue +1 -1
- package/src/wave-ui/components/w-button/button.vue +7 -3
- package/src/wave-ui/components/w-icon.vue +0 -1
- package/src/wave-ui/components/w-input.vue +2 -1
- package/src/wave-ui/components/w-switch.vue +8 -1
- package/src/wave-ui/components/w-tag.vue +0 -1
- package/src/wave-ui/components/w-textarea.vue +2 -1
- package/src/wave-ui/core.js +1 -1
- package/src/wave-ui/utils/config.js +4 -0
- package/src/wave-ui/utils/dynamic-css.js +6 -3
package/dist/wave-ui.es.js
CHANGED
|
@@ -8,8 +8,8 @@ var Y = (e, t, i) => (ne(e, t, "read from private field"), i ? i.call(e) : t.get
|
|
|
8
8
|
if (t.has(e))
|
|
9
9
|
throw TypeError("Cannot add the same private member more than once");
|
|
10
10
|
t instanceof WeakSet ? t.add(e) : t.set(e, i);
|
|
11
|
-
}, ee = (e, t, i,
|
|
12
|
-
import { reactive as J, resolveComponent as $, openBlock as
|
|
11
|
+
}, ee = (e, t, i, s) => (ne(e, t, "write to private field"), s ? s.call(e, i) : t.set(e, i), i);
|
|
12
|
+
import { reactive as J, resolveComponent as $, openBlock as o, createBlock as g, Teleport as Ce, createVNode as I, TransitionGroup as oe, normalizeClass as f, withCtx as m, createElementBlock as u, Fragment as k, renderList as L, mergeProps as B, createElementVNode as y, createCommentVNode as p, createApp as Se, defineComponent as Be, inject as _e, withKeys as E, withModifiers as z, renderSlot as c, createTextVNode as S, toDisplayString as C, toHandlers as H, Transition as x, normalizeStyle as R, resolveDynamicComponent as T, normalizeProps as ie, resolveDirective as ge, withDirectives as A, createSlots as Q, vShow as ae, vModelText as be, vModelDynamic as $e, KeepAlive as Ve } from "vue";
|
|
13
13
|
const Ie = J({
|
|
14
14
|
on: "#app",
|
|
15
15
|
// Sets the Wave UI root node. If not found, will default to `body`.
|
|
@@ -25,6 +25,9 @@ const Ie = J({
|
|
|
25
25
|
// Generate shades for custom colors and status colors.
|
|
26
26
|
// Note: the color palette shades are always generated separately from SCSS.
|
|
27
27
|
colorShades: !0,
|
|
28
|
+
// Generate CSS variables for color shades.
|
|
29
|
+
// Note: colorShades must be enabled for this to work.
|
|
30
|
+
colorShadeCssVariables: !1,
|
|
28
31
|
// Generate palette colors and palette color shades.
|
|
29
32
|
// Can't have this option: color palette is generated via SCSS in colors.scss.
|
|
30
33
|
// colorPalette: true,
|
|
@@ -72,32 +75,32 @@ const Ie = J({
|
|
|
72
75
|
t = Object.assign(t, e);
|
|
73
76
|
else
|
|
74
77
|
for (const i in e) {
|
|
75
|
-
const
|
|
76
|
-
typeof
|
|
78
|
+
const s = e[i];
|
|
79
|
+
typeof s == "object" ? ye(e[i], t[i]) : t[i] = s;
|
|
77
80
|
}
|
|
78
81
|
return t;
|
|
79
82
|
}, j = (e) => console.warn(`Wave UI: ${e}`), te = (e) => console.error(`Wave UI: ${e}`), re = (e, t) => "#" + e.slice(1).match(/../g).map((i) => (i = +`0x${i}` + t, (i < 0 ? 0 : i > 255 ? 255 : i).toString(16).padStart(2, 0))).join(""), Te = (e) => {
|
|
80
83
|
["light", "dark"].forEach((t) => {
|
|
81
84
|
const i = e.colors[t];
|
|
82
85
|
i.shades = {};
|
|
83
|
-
for (let
|
|
84
|
-
if (
|
|
86
|
+
for (let s in i) {
|
|
87
|
+
if (s === "shades")
|
|
85
88
|
continue;
|
|
86
|
-
|
|
87
|
-
const
|
|
88
|
-
|
|
89
|
+
s = { label: s, color: i[s].replace("#", "") };
|
|
90
|
+
const a = s.color;
|
|
91
|
+
a.length === 3 && (s.color = a[0] + "" + a[0] + a[1] + a[1] + a[2] + a[2]);
|
|
89
92
|
for (let l = 1; l <= 3; l++) {
|
|
90
|
-
const
|
|
91
|
-
i.shades[`${
|
|
93
|
+
const n = re(`#${s.color}`, l * 40), r = re(`#${s.color}`, -l * 40);
|
|
94
|
+
i.shades[`${s.label}-light${l}`] = n, i.shades[`${s.label}-dark${l}`] = r;
|
|
92
95
|
}
|
|
93
96
|
}
|
|
94
97
|
});
|
|
95
98
|
}, de = (e, t) => {
|
|
96
99
|
const i = {
|
|
97
|
-
...t.reduce((
|
|
98
|
-
|
|
99
|
-
const l = (
|
|
100
|
-
return { ...
|
|
100
|
+
...t.reduce((s, a) => {
|
|
101
|
+
s[a.label] = a.color;
|
|
102
|
+
const l = (a.shades || []).reduce((n, r) => (n[r.label] = r.color, n), {});
|
|
103
|
+
return { ...s, ...l };
|
|
101
104
|
}, { ...e, ...e.shades })
|
|
102
105
|
};
|
|
103
106
|
return delete i.shades, i;
|
|
@@ -453,37 +456,40 @@ const Ie = J({
|
|
|
453
456
|
baseIncrement: 4
|
|
454
457
|
};
|
|
455
458
|
let le = { keys: [], values: [] }, he = null;
|
|
456
|
-
const Le = (e) => {
|
|
457
|
-
let
|
|
458
|
-
const
|
|
459
|
-
for (const
|
|
460
|
-
|
|
461
|
-
for (const
|
|
462
|
-
|
|
463
|
-
const
|
|
464
|
-
for (const
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
459
|
+
const Le = (e, t) => {
|
|
460
|
+
let i = "";
|
|
461
|
+
const s = {}, { info: a, warning: l, success: n, error: r, shades: d, ...h } = e, { cssScope: w } = U;
|
|
462
|
+
for (const V in h)
|
|
463
|
+
i += `${w} .${V}--bg{background-color:var(--w-${V}-color)}${w} .${V}{color:var(--w-${V}-color)}`;
|
|
464
|
+
for (const V in d)
|
|
465
|
+
i += `${w} .${V}--bg{background-color:${d[V]}}${w} .${V}{color:${d[V]}}`;
|
|
466
|
+
const _ = { ...h, info: a, warning: l, success: n, error: r };
|
|
467
|
+
for (const V in _)
|
|
468
|
+
s[V] = _[V];
|
|
469
|
+
if (t)
|
|
470
|
+
for (const V in d)
|
|
471
|
+
s[V] = d[V];
|
|
472
|
+
let b = "";
|
|
473
|
+
return Object.entries(s).forEach(([V, P]) => {
|
|
474
|
+
b += `--w-${V}-color: ${P};`;
|
|
475
|
+
}), `:root{${b}}${i}`;
|
|
470
476
|
}, Re = (e, t) => {
|
|
471
477
|
let i = "";
|
|
472
|
-
const { cssScope:
|
|
473
|
-
return e.forEach(({ min:
|
|
478
|
+
const { cssScope: s } = U;
|
|
479
|
+
return e.forEach(({ min: a, label: l }) => {
|
|
474
480
|
if (l === "xs")
|
|
475
|
-
for (let
|
|
476
|
-
i += `${
|
|
481
|
+
for (let n = 0; n < t; n++)
|
|
482
|
+
i += `${s} .${l}${t - n}{width:${parseFloat(((t - n) * 100 / t).toFixed(4))}%;}`;
|
|
477
483
|
else {
|
|
478
|
-
i += `@media(min-width:${
|
|
479
|
-
for (let
|
|
480
|
-
i += `${
|
|
484
|
+
i += `@media(min-width:${a}px){`;
|
|
485
|
+
for (let n = 0; n < t; n++)
|
|
486
|
+
i += `${s} .${l}${t - n}{width:${parseFloat(((t - n) * 100 / t).toFixed(4))}%;}`;
|
|
481
487
|
i += "}";
|
|
482
488
|
}
|
|
483
489
|
}), i;
|
|
484
490
|
}, Pe = (e) => {
|
|
485
491
|
let t = "";
|
|
486
|
-
const { cssScope: i, baseIncrement:
|
|
492
|
+
const { cssScope: i, baseIncrement: s } = U, a = [
|
|
487
493
|
"show{display:block}",
|
|
488
494
|
"hide{display:none}",
|
|
489
495
|
"d-flex{display:flex}",
|
|
@@ -518,71 +524,72 @@ const Le = (e) => {
|
|
|
518
524
|
"justify-space-around{justify-content:space-around}",
|
|
519
525
|
"justify-space-evenly{justify-content:space-evenly}"
|
|
520
526
|
], l = Array(12).fill();
|
|
521
|
-
return e.forEach(({ label:
|
|
522
|
-
|
|
523
|
-
l.map((d, h) => `.w-grid.${
|
|
524
|
-
}), e.forEach(({ label:
|
|
525
|
-
t += `@media (min-width:${r}px) and (max-width:${d}px){` +
|
|
526
|
-
l.map((h,
|
|
527
|
-
}), e.forEach(({ label:
|
|
528
|
-
|
|
529
|
-
l.map((d, h) => `.w-grid.${
|
|
527
|
+
return e.forEach(({ label: n, min: r }) => {
|
|
528
|
+
n !== "xs" && (t += `@media(min-width:${r}px){` + a.map((d) => `${i} .${n}u-${d}`).join("") + // w-grid columns and gap.
|
|
529
|
+
l.map((d, h) => `.w-grid.${n}u-columns${h + 1}{grid-template-columns:repeat(${h + 1},1fr);}`).join("") + l.map((d, h) => `.w-flex.${n}u-gap${h + 1},.w-grid.${n}u-gap${h + 1}{gap:${(h + 1) * s}px;}`).join("") + `.w-flex.${n}u-gap0,.w-flex.${n}u-gap0{gap:0}}`);
|
|
530
|
+
}), e.forEach(({ label: n, min: r, max: d }) => {
|
|
531
|
+
t += `@media (min-width:${r}px) and (max-width:${d}px){` + a.map((h) => `${i} .${n}-${h}`).join("") + // w-grid columns and gap.
|
|
532
|
+
l.map((h, w) => `.w-grid.${n}-columns${w + 1}{grid-template-columns:repeat(${w + 1},1fr);}`).join("") + l.map((h, w) => `.w-flex.${n}-gap${w + 1},.w-grid.${n}-gap${w + 1}{gap:${(w + 1) * s}px;}`).join("") + `.w-flex.${n}-gap0,.w-flex.${n}-gap0{gap:0}}`;
|
|
533
|
+
}), e.forEach(({ label: n, max: r }) => {
|
|
534
|
+
n !== "xl" && (t += `@media (max-width:${r}px){` + a.map((d) => `${i} .${n}d-${d}`).join("") + // w-grid columns and gap.
|
|
535
|
+
l.map((d, h) => `.w-grid.${n}d-columns${h + 1}{grid-template-columns:repeat(${h + 1},1fr);}`).join("") + l.map((d, h) => `.w-flex.${n}d-gap${h + 1},.w-grid.${n}d-gap${h + 1}{gap:${(h + 1) * s}px;}`).join("") + `.w-flex.${n}d-gap0,.w-flex.${n}d-gap0{gap:0}}`);
|
|
530
536
|
}), t;
|
|
531
537
|
}, ce = (e) => {
|
|
532
538
|
const t = window.innerWidth, i = le.values.slice(0);
|
|
533
|
-
i.push(t), i.sort((
|
|
534
|
-
const
|
|
535
|
-
|
|
536
|
-
name:
|
|
537
|
-
xs:
|
|
538
|
-
sm:
|
|
539
|
-
md:
|
|
540
|
-
lg:
|
|
541
|
-
xl:
|
|
539
|
+
i.push(t), i.sort((a, l) => a - l);
|
|
540
|
+
const s = le.keys[i.indexOf(t)] || "xl";
|
|
541
|
+
s !== he && (he = s, e.breakpoint = {
|
|
542
|
+
name: s,
|
|
543
|
+
xs: s === "xs",
|
|
544
|
+
sm: s === "sm",
|
|
545
|
+
md: s === "md",
|
|
546
|
+
lg: s === "lg",
|
|
547
|
+
xl: s === "xl",
|
|
542
548
|
width: t
|
|
543
549
|
}), e.breakpoint.width = window.innerWidth;
|
|
544
|
-
},
|
|
550
|
+
}, xe = (e) => {
|
|
545
551
|
const { config: t } = e;
|
|
546
552
|
if (le = { keys: Object.keys(t.breakpoints), values: Object.values(t.breakpoints) }, !document.getElementById("wave-ui-styles")) {
|
|
547
553
|
const i = document.createElement("style");
|
|
548
554
|
i.id = "wave-ui-styles", i.innerHTML = ze(t);
|
|
549
|
-
const
|
|
550
|
-
|
|
555
|
+
const s = document.head.querySelectorAll('style,link[rel="stylesheet"]')[0];
|
|
556
|
+
s ? s.before(i) : document.head.appendChild(i);
|
|
551
557
|
}
|
|
552
558
|
ce(e), window.addEventListener("resize", () => ce(e));
|
|
553
|
-
},
|
|
559
|
+
}, Oe = (e, t) => {
|
|
554
560
|
if (!document.getElementById("wave-ui-colors")) {
|
|
555
|
-
const
|
|
556
|
-
|
|
557
|
-
const
|
|
558
|
-
|
|
561
|
+
const i = document.createElement("style");
|
|
562
|
+
i.id = "wave-ui-colors", i.innerHTML = Le(e, t);
|
|
563
|
+
const s = document.head.querySelectorAll('style,link[rel="stylesheet"]')[0];
|
|
564
|
+
s ? s.before(i) : document.head.appendChild(i);
|
|
559
565
|
}
|
|
560
566
|
}, ze = (e) => {
|
|
561
|
-
const t = Object.entries(e.breakpoints), i = t.map(([l,
|
|
567
|
+
const t = Object.entries(e.breakpoints), i = t.map(([l, n], r) => {
|
|
562
568
|
const [, d = 0] = t[r - 1] || [];
|
|
563
|
-
return { label: l, min: d ? d + 1 : 0, max:
|
|
564
|
-
}),
|
|
565
|
-
U.cssScope =
|
|
566
|
-
let
|
|
567
|
-
return
|
|
569
|
+
return { label: l, min: d ? d + 1 : 0, max: n };
|
|
570
|
+
}), s = getComputedStyle(document.documentElement);
|
|
571
|
+
U.cssScope = s.getPropertyValue("--w-css-scope"), U.baseIncrement = parseInt(s.getPropertyValue("--w-base-increment"));
|
|
572
|
+
let a = "";
|
|
573
|
+
return a += Re(i, e.css.grid), e.css.breakpointLayoutClasses && (a += Pe(i)), a;
|
|
568
574
|
}, Me = ["innerHTML"];
|
|
569
|
-
function Ee(e, t, i,
|
|
570
|
-
const
|
|
571
|
-
return
|
|
572
|
-
|
|
575
|
+
function Ee(e, t, i, s, a, l) {
|
|
576
|
+
const n = $("w-alert");
|
|
577
|
+
return o(), g(Ce, { to: ".w-app" }, [
|
|
578
|
+
I(oe, {
|
|
573
579
|
class: f(["w-notification-manager", { "w-notification-manager--left": l.conf.align === "left" }]),
|
|
574
580
|
tag: "div",
|
|
575
581
|
name: l.transition,
|
|
576
582
|
appear: ""
|
|
577
583
|
}, {
|
|
578
584
|
default: m(() => [
|
|
579
|
-
(
|
|
580
|
-
r._value ? (
|
|
585
|
+
(o(!0), u(k, null, L(l.notifications, (r) => (o(), u(k, null, [
|
|
586
|
+
r._value ? (o(), g(n, B({
|
|
581
587
|
class: "white--bg",
|
|
582
588
|
key: r._uid,
|
|
583
589
|
modelValue: r._value,
|
|
584
590
|
"onUpdate:modelValue": (d) => r._value = d,
|
|
585
|
-
onClose: r.dismiss
|
|
591
|
+
onClose: r.dismiss,
|
|
592
|
+
ref_for: !0
|
|
586
593
|
}, l.notifProps(r)), {
|
|
587
594
|
default: m(() => [
|
|
588
595
|
y("div", {
|
|
@@ -599,8 +606,8 @@ function Ee(e, t, i, o, n, l) {
|
|
|
599
606
|
}
|
|
600
607
|
const v = (e, t) => {
|
|
601
608
|
const i = e.__vccOpts || e;
|
|
602
|
-
for (const [
|
|
603
|
-
i[
|
|
609
|
+
for (const [s, a] of t)
|
|
610
|
+
i[s] = a;
|
|
604
611
|
return i;
|
|
605
612
|
}, We = {
|
|
606
613
|
name: "w-notification-manager",
|
|
@@ -620,28 +627,28 @@ const v = (e, t) => {
|
|
|
620
627
|
},
|
|
621
628
|
methods: {
|
|
622
629
|
notifProps(e) {
|
|
623
|
-
const { _value: t, _uid: i, message:
|
|
630
|
+
const { _value: t, _uid: i, message: s, timeout: a, ...l } = e;
|
|
624
631
|
return l.dismiss && (l.dismiss = !0), l;
|
|
625
632
|
}
|
|
626
633
|
}
|
|
627
634
|
}, Ae = /* @__PURE__ */ v(We, [["render", Ee]]);
|
|
628
|
-
var
|
|
629
|
-
const
|
|
635
|
+
var D;
|
|
636
|
+
const K = class K {
|
|
630
637
|
constructor() {
|
|
631
638
|
F(this, "notifications");
|
|
632
639
|
// Private fields.
|
|
633
640
|
F(this, "_uid");
|
|
634
641
|
// A unique ID for each notification.
|
|
635
642
|
F(this, "_notificationDefaults");
|
|
636
|
-
if (Y(
|
|
637
|
-
return Y(
|
|
643
|
+
if (Y(K, D))
|
|
644
|
+
return Y(K, D);
|
|
638
645
|
this.notifications = [], this._uid = 0, this._notificationDefaults = {
|
|
639
646
|
_uid: 0,
|
|
640
647
|
_value: !0,
|
|
641
648
|
message: "",
|
|
642
649
|
timeout: 4e3,
|
|
643
650
|
dismiss: !0
|
|
644
|
-
}, ee(
|
|
651
|
+
}, ee(K, D, this);
|
|
645
652
|
}
|
|
646
653
|
notify(...t) {
|
|
647
654
|
let i = {
|
|
@@ -651,11 +658,11 @@ const N = class N {
|
|
|
651
658
|
if (typeof t[0] == "object")
|
|
652
659
|
i = { ...i, ...t[0] };
|
|
653
660
|
else {
|
|
654
|
-
const [
|
|
661
|
+
const [s, a, l] = t;
|
|
655
662
|
i = {
|
|
656
663
|
...i,
|
|
657
|
-
message:
|
|
658
|
-
[
|
|
664
|
+
message: s || "",
|
|
665
|
+
[a === void 0 ? "info" : a]: !0,
|
|
659
666
|
timeout: l || l === 0 ? parseFloat(l) : 4e3
|
|
660
667
|
};
|
|
661
668
|
}
|
|
@@ -665,20 +672,20 @@ const N = class N {
|
|
|
665
672
|
this.notifications = this.notifications.filter((i) => i._uid !== t);
|
|
666
673
|
}
|
|
667
674
|
};
|
|
668
|
-
|
|
669
|
-
let se =
|
|
675
|
+
D = new WeakMap(), Z(K, D, void 0);
|
|
676
|
+
let se = K;
|
|
670
677
|
const Ke = (e, t, i) => {
|
|
671
|
-
const
|
|
672
|
-
e.appendChild(
|
|
673
|
-
const
|
|
678
|
+
const s = document.createElement("div");
|
|
679
|
+
e.appendChild(s);
|
|
680
|
+
const a = Se(Be({
|
|
674
681
|
...Ae,
|
|
675
682
|
inject: ["$waveui"]
|
|
676
683
|
})).provide("$waveui", i);
|
|
677
684
|
for (const l in t) {
|
|
678
|
-
const
|
|
679
|
-
|
|
685
|
+
const n = t[l];
|
|
686
|
+
a.component(n.name, { ...n, inject: ["$waveui"] });
|
|
680
687
|
}
|
|
681
|
-
|
|
688
|
+
a.mount(s), s.remove();
|
|
682
689
|
};
|
|
683
690
|
let pe = !1;
|
|
684
691
|
const Ne = (e) => {
|
|
@@ -687,25 +694,25 @@ const Ne = (e) => {
|
|
|
687
694
|
e.preferredTheme = i.matches ? "dark" : "light", e.switchTheme(e.preferredTheme);
|
|
688
695
|
});
|
|
689
696
|
}, De = (e, t) => {
|
|
690
|
-
var i,
|
|
691
|
-
for (const
|
|
692
|
-
if ((i = e.props) != null && i[
|
|
693
|
-
e.props[
|
|
697
|
+
var i, s;
|
|
698
|
+
for (const a in t)
|
|
699
|
+
if ((i = e.props) != null && i[a])
|
|
700
|
+
e.props[a].default = t[a];
|
|
694
701
|
else {
|
|
695
702
|
let l = !1;
|
|
696
703
|
if (Array.isArray(e.mixins) && e.mixins.length) {
|
|
697
|
-
for (const
|
|
698
|
-
if ((
|
|
699
|
-
|
|
704
|
+
for (const n of e.mixins)
|
|
705
|
+
if ((s = n == null ? void 0 : n.props) != null && s[a]) {
|
|
706
|
+
n.props[a].default = t[a], l = !0;
|
|
700
707
|
break;
|
|
701
708
|
}
|
|
702
|
-
l || j(`Attempting to set a preset on a prop that doesn't exist: \`${e.name}.${
|
|
709
|
+
l || j(`Attempting to set a preset on a prop that doesn't exist: \`${e.name}.${a}\`.`);
|
|
703
710
|
continue;
|
|
704
711
|
}
|
|
705
712
|
}
|
|
706
713
|
};
|
|
707
714
|
var X;
|
|
708
|
-
const
|
|
715
|
+
const N = class N {
|
|
709
716
|
constructor(t, i = {}) {
|
|
710
717
|
// Exposed as a global object and also `app.provide`d.
|
|
711
718
|
// Accessible from this.$waveui, or inject('$waveui').
|
|
@@ -733,76 +740,76 @@ const D = class D {
|
|
|
733
740
|
},
|
|
734
741
|
// Callable from this.$waveui.
|
|
735
742
|
switchTheme(t, i = !1) {
|
|
736
|
-
var
|
|
737
|
-
this.theme = t, document.documentElement.setAttribute("data-theme", t), (l = (
|
|
738
|
-
const
|
|
739
|
-
|
|
743
|
+
var a, l;
|
|
744
|
+
this.theme = t, document.documentElement.setAttribute("data-theme", t), (l = (a = document.head.querySelector("#wave-ui-colors")) == null ? void 0 : a.remove) == null || l.call(a);
|
|
745
|
+
const s = this.config.colors[this.theme];
|
|
746
|
+
Oe(s, this.config.css.colorShadeCssVariables), this.colors = de(s, ue);
|
|
740
747
|
}
|
|
741
748
|
});
|
|
742
|
-
if (Y(
|
|
749
|
+
if (Y(N, X)) {
|
|
743
750
|
console.warn("Wave UI is already instantiated.");
|
|
744
751
|
return;
|
|
745
752
|
}
|
|
746
753
|
if (this.$waveui._notificationManager = new se(), i.theme || (i.theme = "light"), i.colors) {
|
|
747
|
-
const
|
|
748
|
-
i.colors.light || (i.colors.light =
|
|
754
|
+
const n = { ...i.colors };
|
|
755
|
+
i.colors.light || (i.colors.light = n), i.colors.dark || (i.colors.dark = n), i.colors = { light: i.colors.light, dark: i.colors.dark };
|
|
749
756
|
}
|
|
750
|
-
let { components:
|
|
751
|
-
|
|
757
|
+
let { components: s, ...a } = i;
|
|
758
|
+
a = this.$waveui.config = ye(a), a.css.colorShades && Te(a);
|
|
752
759
|
const l = J(this.$waveui);
|
|
753
|
-
t.config.globalProperties.$waveui = l, t.provide("$waveui", l),
|
|
760
|
+
t.config.globalProperties.$waveui = l, t.provide("$waveui", l), a.theme !== "auto" && (this.$waveui.colors = de(a.colors[a.theme], ue));
|
|
754
761
|
}
|
|
755
762
|
static install(t, i = {}) {
|
|
756
|
-
var
|
|
763
|
+
var a;
|
|
757
764
|
t.directive("focus", {
|
|
758
765
|
// Wait for the next tick to focus the newly mounted element.
|
|
759
766
|
mounted: (l) => setTimeout(() => l.focus(), 0)
|
|
760
767
|
}), t.directive("scroll", {
|
|
761
|
-
mounted: (l,
|
|
768
|
+
mounted: (l, n) => {
|
|
762
769
|
const r = (d) => {
|
|
763
|
-
|
|
770
|
+
n.value(d, l) && window.removeEventListener("scroll", r);
|
|
764
771
|
};
|
|
765
772
|
window.addEventListener("scroll", r);
|
|
766
773
|
}
|
|
767
774
|
});
|
|
768
|
-
const { components:
|
|
769
|
-
for (const l in
|
|
770
|
-
const
|
|
771
|
-
(
|
|
775
|
+
const { components: s = {} } = i || {};
|
|
776
|
+
for (const l in s) {
|
|
777
|
+
const n = s[l];
|
|
778
|
+
(a = i.presets) != null && a[n.name] && De(n, i.presets[n.name]), t.component(n.name, n);
|
|
772
779
|
}
|
|
773
780
|
t.mixin({
|
|
774
781
|
// Add a mixin to capture the first mounted hook, trigger the Wave UI init then unregister the mixin straight away.
|
|
775
782
|
beforeMount() {
|
|
776
783
|
if (!pe) {
|
|
777
784
|
pe = !0;
|
|
778
|
-
const l = _e("$waveui"), { config:
|
|
779
|
-
r.classList.add("w-app"),
|
|
785
|
+
const l = _e("$waveui"), { config: n } = l, r = document.querySelector(n.on) || document.body;
|
|
786
|
+
r.classList.add("w-app"), n.theme === "auto" ? Ne(l) : l.switchTheme(n.theme, !0), xe(l), Ke(r, s, l), t._context.mixins.find((d) => d.mounted && delete d.mounted);
|
|
780
787
|
}
|
|
781
788
|
}
|
|
782
|
-
}), new
|
|
789
|
+
}), new N(t, i), ee(N, X, !0);
|
|
783
790
|
}
|
|
784
791
|
};
|
|
785
|
-
X = new WeakMap(), Z(
|
|
786
|
-
let q =
|
|
792
|
+
X = new WeakMap(), Z(N, X, !1);
|
|
793
|
+
let q = N;
|
|
787
794
|
const He = ["aria-expanded"], Fe = ["onClick", "onFocus", "onKeypress", "tabindex"], je = ["innerHTML"], Ue = ["innerHTML"];
|
|
788
|
-
function qe(e, t, i,
|
|
789
|
-
const
|
|
790
|
-
return
|
|
795
|
+
function qe(e, t, i, s, a, l) {
|
|
796
|
+
const n = $("w-button"), r = $("w-transition-expand");
|
|
797
|
+
return o(), u("div", {
|
|
791
798
|
class: f(["w-accordion", l.accordionClasses])
|
|
792
799
|
}, [
|
|
793
|
-
(
|
|
800
|
+
(o(!0), u(k, null, L(e.accordionItems, (d, h) => (o(), u("div", {
|
|
794
801
|
class: f(["w-accordion__item", l.itemClasses(d)]),
|
|
795
802
|
key: h,
|
|
796
803
|
"aria-expanded": d._expanded ? "true" : "false"
|
|
797
804
|
}, [
|
|
798
805
|
y("div", {
|
|
799
806
|
class: f(["w-accordion__item-title", i.titleClass]),
|
|
800
|
-
onClick: (
|
|
801
|
-
onFocus: (
|
|
802
|
-
onKeypress:
|
|
807
|
+
onClick: (w) => !d._disabled && l.toggleItem(d, w),
|
|
808
|
+
onFocus: (w) => e.$emit("focus", l.getOriginalItem(d)),
|
|
809
|
+
onKeypress: E((w) => !d._disabled && l.toggleItem(d, w), ["enter"]),
|
|
803
810
|
tabindex: !d._disabled && 0
|
|
804
811
|
}, [
|
|
805
|
-
i.expandIcon && !i.expandIconRight ? (
|
|
812
|
+
i.expandIcon && !i.expandIconRight ? (o(), g(n, {
|
|
806
813
|
key: 0,
|
|
807
814
|
class: f(["w-accordion__expand-icon", { "w-accordion__expand-icon--expanded": d._expanded, "w-accordion__expand-icon--rotate90": i.expandIconRotate90 }]),
|
|
808
815
|
icon: d._expanded && i.collapseIcon || i.expandIcon,
|
|
@@ -812,7 +819,7 @@ function qe(e, t, i, o, n, l) {
|
|
|
812
819
|
text: "",
|
|
813
820
|
onKeypress: t[0] || (t[0] = z(() => {
|
|
814
821
|
}, ["stop"])),
|
|
815
|
-
onClick: z((
|
|
822
|
+
onClick: z((w) => !d._disabled && l.toggleItem(d, w), ["stop"])
|
|
816
823
|
}, null, 8, ["icon", "icon-props", "disabled", "onClick", "class"])) : p("", !0),
|
|
817
824
|
e.$slots[`item-title.${d.id || h + 1}`] ? c(e.$slots, `item-title.${d.id || h + 1}`, {
|
|
818
825
|
key: 1,
|
|
@@ -830,23 +837,23 @@ function qe(e, t, i, o, n, l) {
|
|
|
830
837
|
innerHTML: d[i.itemTitleKey]
|
|
831
838
|
}, null, 8, je)
|
|
832
839
|
]),
|
|
833
|
-
i.expandIcon && i.expandIconRight ? (
|
|
840
|
+
i.expandIcon && i.expandIconRight ? (o(), g(n, {
|
|
834
841
|
key: 3,
|
|
835
842
|
class: f(["w-accordion__expand-icon", { "w-accordion__expand-icon--expanded": d._expanded, "w-accordion__expand-icon--rotate90": i.expandIconRotate90 }]),
|
|
836
843
|
icon: d._expanded && i.collapseIcon || i.expandIcon,
|
|
837
844
|
text: "",
|
|
838
845
|
onKeypress: t[1] || (t[1] = z(() => {
|
|
839
846
|
}, ["stop"])),
|
|
840
|
-
onClick: z((
|
|
847
|
+
onClick: z((w) => !d._disabled && l.toggleItem(d, w), ["stop"])
|
|
841
848
|
}, null, 8, ["icon", "onClick", "class"])) : p("", !0)
|
|
842
849
|
], 42, Fe),
|
|
843
|
-
|
|
850
|
+
I(r, {
|
|
844
851
|
y: "",
|
|
845
|
-
onAfterLeave: (
|
|
852
|
+
onAfterLeave: (w) => l.onEndOfCollapse(d),
|
|
846
853
|
duration: i.duration
|
|
847
854
|
}, {
|
|
848
855
|
default: m(() => [
|
|
849
|
-
d._expanded ? (
|
|
856
|
+
d._expanded ? (o(), u("div", {
|
|
850
857
|
key: 0,
|
|
851
858
|
class: f(["w-accordion__item-content", i.contentClass])
|
|
852
859
|
}, [
|
|
@@ -917,8 +924,8 @@ const Xe = {
|
|
|
917
924
|
},
|
|
918
925
|
methods: {
|
|
919
926
|
toggleItem(e, t) {
|
|
920
|
-
e._expanded = !e._expanded, this.expandSingle && this.accordionItems.forEach((
|
|
921
|
-
const i = this.accordionItems.map((
|
|
927
|
+
e._expanded = !e._expanded, this.expandSingle && this.accordionItems.forEach((s) => s._index !== e._index && (s._expanded = !1));
|
|
928
|
+
const i = this.accordionItems.map((s) => s._expanded || !1);
|
|
922
929
|
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);
|
|
923
930
|
},
|
|
924
931
|
onEndOfCollapse(e) {
|
|
@@ -961,30 +968,30 @@ const Xe = {
|
|
|
961
968
|
}
|
|
962
969
|
}
|
|
963
970
|
}, Ye = /* @__PURE__ */ v(Xe, [["render", qe]]), Ge = { class: "w-alert__content" };
|
|
964
|
-
function Je(e, t, i,
|
|
965
|
-
const
|
|
966
|
-
return
|
|
971
|
+
function Je(e, t, i, s, a, l) {
|
|
972
|
+
const n = $("w-icon"), r = $("w-button");
|
|
973
|
+
return a.show ? (o(), u("div", {
|
|
967
974
|
key: 0,
|
|
968
|
-
class: "w-alert"
|
|
969
|
-
},
|
|
970
|
-
l.type || i.icon || i.dismiss ? (
|
|
971
|
-
l.type || i.icon ? (
|
|
975
|
+
class: f(["w-alert", l.classes])
|
|
976
|
+
}, [
|
|
977
|
+
l.type || i.icon || i.dismiss ? (o(), u(k, { key: 0 }, [
|
|
978
|
+
l.type || i.icon ? (o(), g(n, {
|
|
972
979
|
key: 0,
|
|
973
980
|
class: "w-alert__icon mr2"
|
|
974
981
|
}, {
|
|
975
982
|
default: m(() => [
|
|
976
|
-
|
|
983
|
+
S(C(l.type ? l.typeIcon : i.icon), 1)
|
|
977
984
|
]),
|
|
978
985
|
_: 1
|
|
979
986
|
})) : p("", !0),
|
|
980
987
|
y("div", Ge, [
|
|
981
988
|
c(e.$slots, "default")
|
|
982
989
|
]),
|
|
983
|
-
i.dismiss ? (
|
|
990
|
+
i.dismiss ? (o(), g(r, {
|
|
984
991
|
key: 1,
|
|
985
992
|
class: "w-alert__dismiss",
|
|
986
993
|
onClick: t[0] || (t[0] = (d) => {
|
|
987
|
-
e.$emit("update:modelValue",
|
|
994
|
+
e.$emit("update:modelValue", a.show = !1), e.$emit("input", !1), e.$emit("close", !1);
|
|
988
995
|
}),
|
|
989
996
|
icon: "wi-cross",
|
|
990
997
|
color: "inherit",
|
|
@@ -992,7 +999,7 @@ function Je(e, t, i, o, n, l) {
|
|
|
992
999
|
text: ""
|
|
993
1000
|
})) : p("", !0)
|
|
994
1001
|
], 64)) : c(e.$slots, "default", { key: 1 })
|
|
995
|
-
],
|
|
1002
|
+
], 2)) : p("", !0);
|
|
996
1003
|
}
|
|
997
1004
|
const Qe = {
|
|
998
1005
|
name: "w-alert",
|
|
@@ -1078,22 +1085,22 @@ const Qe = {
|
|
|
1078
1085
|
}
|
|
1079
1086
|
}
|
|
1080
1087
|
}, Ze = /* @__PURE__ */ v(Qe, [["render", Je]]), et = { class: "w-autocomplete__selection" }, tt = ["innerHTML"], it = ["innerHTML"], lt = ["value"], st = ["onClick"], ot = ["innerHTML"], at = ["innerHTML"];
|
|
1081
|
-
function nt(e, t, i,
|
|
1082
|
-
const
|
|
1083
|
-
return
|
|
1088
|
+
function nt(e, t, i, s, a, l) {
|
|
1089
|
+
const n = $("w-button"), r = $("w-transition-slide-fade");
|
|
1090
|
+
return o(), u("div", {
|
|
1084
1091
|
class: f(["w-autocomplete", l.classes]),
|
|
1085
1092
|
onClick: t[5] || (t[5] = (...d) => l.onClick && l.onClick(...d))
|
|
1086
1093
|
}, [
|
|
1087
|
-
e.selection.length ? (
|
|
1094
|
+
e.selection.length ? (o(!0), u(k, { key: 0 }, L(e.selection, (d, h) => (o(), u("div", et, [
|
|
1088
1095
|
c(e.$slots, "selection", {
|
|
1089
1096
|
item: d,
|
|
1090
|
-
unselect: (
|
|
1097
|
+
unselect: (w) => l.unselectItem(w)
|
|
1091
1098
|
}, () => [
|
|
1092
1099
|
y("span", {
|
|
1093
1100
|
innerHTML: d[i.itemLabelKey]
|
|
1094
1101
|
}, null, 8, tt),
|
|
1095
|
-
|
|
1096
|
-
onClick: z((
|
|
1102
|
+
I(n, {
|
|
1103
|
+
onClick: z((w) => l.unselectItem(h), ["stop"]),
|
|
1097
1104
|
icon: "wi-cross",
|
|
1098
1105
|
xs: "",
|
|
1099
1106
|
text: "",
|
|
@@ -1101,19 +1108,19 @@ function nt(e, t, i, o, n, l) {
|
|
|
1101
1108
|
}, null, 8, ["onClick"])
|
|
1102
1109
|
])
|
|
1103
1110
|
]))), 256)) : p("", !0),
|
|
1104
|
-
!e.selection.length && !e.keywords && i.placeholder ? (
|
|
1111
|
+
!e.selection.length && !e.keywords && i.placeholder ? (o(), u("div", {
|
|
1105
1112
|
key: 1,
|
|
1106
1113
|
class: "w-autocomplete__placeholder",
|
|
1107
1114
|
innerHTML: i.placeholder
|
|
1108
1115
|
}, null, 8, it)) : p("", !0),
|
|
1109
|
-
y("input",
|
|
1116
|
+
y("input", B({
|
|
1110
1117
|
class: "w-autocomplete__input",
|
|
1111
1118
|
ref: "input",
|
|
1112
1119
|
value: e.keywords
|
|
1113
|
-
},
|
|
1114
|
-
|
|
1120
|
+
}, H(l.inputEventListeners, !0)), null, 16, lt),
|
|
1121
|
+
I(r, null, {
|
|
1115
1122
|
default: m(() => [
|
|
1116
|
-
e.menuOpen ? (
|
|
1123
|
+
e.menuOpen ? (o(), u("ul", {
|
|
1117
1124
|
key: 0,
|
|
1118
1125
|
class: "w-autocomplete__menu",
|
|
1119
1126
|
ref: "menu",
|
|
@@ -1122,9 +1129,9 @@ function nt(e, t, i, o, n, l) {
|
|
|
1122
1129
|
onTouchstart: t[3] || (t[3] = (d) => e.menuIsBeingClicked = !0),
|
|
1123
1130
|
onTouchend: t[4] || (t[4] = (...d) => l.setEndOfMenuClick && l.setEndOfMenuClick(...d))
|
|
1124
1131
|
}, [
|
|
1125
|
-
(
|
|
1132
|
+
(o(!0), u(k, null, L(l.filteredItems, (d, h) => (o(), u("li", {
|
|
1126
1133
|
key: h,
|
|
1127
|
-
onClick: z((
|
|
1134
|
+
onClick: z((w) => (l.selectItem(d), e.$emit("item-click", d)), ["stop"]),
|
|
1128
1135
|
class: f({ highlighted: e.highlightedItem === d.uid })
|
|
1129
1136
|
}, [
|
|
1130
1137
|
c(e.$slots, "item", {
|
|
@@ -1136,7 +1143,7 @@ function nt(e, t, i, o, n, l) {
|
|
|
1136
1143
|
}, null, 8, ot)
|
|
1137
1144
|
])
|
|
1138
1145
|
], 10, st))), 128)),
|
|
1139
|
-
l.filteredItems.length ? p("", !0) : (
|
|
1146
|
+
l.filteredItems.length ? p("", !0) : (o(), u("li", {
|
|
1140
1147
|
key: 0,
|
|
1141
1148
|
class: f(["w-autocomplete__no-match", { "w-autocomplete__no-match--default": !e.$slots.noMatch }])
|
|
1142
1149
|
}, [
|
|
@@ -1147,7 +1154,7 @@ function nt(e, t, i, o, n, l) {
|
|
|
1147
1154
|
}, null, 8, at)
|
|
1148
1155
|
])
|
|
1149
1156
|
], 2)),
|
|
1150
|
-
e.$slots["extra-item"] ? (
|
|
1157
|
+
e.$slots["extra-item"] ? (o(), u("li", {
|
|
1151
1158
|
key: 1,
|
|
1152
1159
|
class: f(["w-autocomplete__extra-item", { highlighted: e.highlightedItem === "extra-item" }]),
|
|
1153
1160
|
onClick: t[0] || (t[0] = (...d) => l.selectExtraItem && l.selectExtraItem(...d))
|
|
@@ -1208,7 +1215,7 @@ const rt = {
|
|
|
1208
1215
|
},
|
|
1209
1216
|
filteredItems() {
|
|
1210
1217
|
let e = this.optimizedItemsForSearch;
|
|
1211
|
-
const t = (i) => !this.selection.find((
|
|
1218
|
+
const t = (i) => !this.selection.find((s) => s.uid === i.uid);
|
|
1212
1219
|
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;
|
|
1213
1220
|
},
|
|
1214
1221
|
highlightedItemIndex() {
|
|
@@ -1286,15 +1293,15 @@ const rt = {
|
|
|
1286
1293
|
e.preventDefault(), this.highlightedItem === "extra-item" ? this.selectExtraItem() : this.highlightedItemIndex >= 0 && this.selectItem(this.filteredItems[this.highlightedItemIndex]);
|
|
1287
1294
|
else if ([38, 40].includes(e.keyCode)) {
|
|
1288
1295
|
e.preventDefault();
|
|
1289
|
-
let
|
|
1290
|
-
|
|
1291
|
-
const
|
|
1292
|
-
if (
|
|
1293
|
-
if (this.$slots["extra-item"] &&
|
|
1294
|
-
|
|
1296
|
+
let s = this.highlightedItemIndex;
|
|
1297
|
+
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;
|
|
1298
|
+
const a = this.$refs.menu;
|
|
1299
|
+
if (a)
|
|
1300
|
+
if (this.$slots["extra-item"] && s === t - 1)
|
|
1301
|
+
a.scrollTop = a.scrollHeight;
|
|
1295
1302
|
else {
|
|
1296
|
-
const { offsetHeight: l, offsetTop:
|
|
1297
|
-
|
|
1303
|
+
const { offsetHeight: l, offsetTop: n } = a.childNodes[s] || {};
|
|
1304
|
+
a.scrollTop + a.offsetHeight - l < n ? a.scrollTop = n - a.offsetHeight + l : a.scrollTop > n && (a.scrollTop = n);
|
|
1298
1305
|
}
|
|
1299
1306
|
} else
|
|
1300
1307
|
!this.multiple && this.selection.length && e.key.length === 1 && e.preventDefault();
|
|
@@ -1331,13 +1338,13 @@ const rt = {
|
|
|
1331
1338
|
watch: {
|
|
1332
1339
|
modelValue(e) {
|
|
1333
1340
|
this.selection = [], e && (Array.isArray(e) ? e : [e]).forEach((i) => {
|
|
1334
|
-
this.selection.push(this.optimizedItemsForSearch.find((
|
|
1341
|
+
this.selection.push(this.optimizedItemsForSearch.find((s) => s[this.itemValueKey] === +i));
|
|
1335
1342
|
});
|
|
1336
1343
|
}
|
|
1337
1344
|
}
|
|
1338
1345
|
}, dt = /* @__PURE__ */ v(rt, [["render", nt]]), ut = { class: "w-app" };
|
|
1339
|
-
function ht(e, t, i,
|
|
1340
|
-
return
|
|
1346
|
+
function ht(e, t, i, s, a, l) {
|
|
1347
|
+
return o(), u("div", ut, [
|
|
1341
1348
|
c(e.$slots, "default")
|
|
1342
1349
|
]);
|
|
1343
1350
|
}
|
|
@@ -1357,15 +1364,15 @@ const ct = {
|
|
|
1357
1364
|
textCenter: { type: Boolean },
|
|
1358
1365
|
textRight: { type: Boolean }
|
|
1359
1366
|
}
|
|
1360
|
-
}, pt = /* @__PURE__ */ v(ct, [["render", ht]]);
|
|
1361
|
-
function
|
|
1362
|
-
return
|
|
1367
|
+
}, pt = /* @__PURE__ */ v(ct, [["render", ht]]), ft = { class: "w-badge-wrap" };
|
|
1368
|
+
function mt(e, t, i, s, a, l) {
|
|
1369
|
+
return o(), u("div", ft, [
|
|
1363
1370
|
c(e.$slots, "default"),
|
|
1364
|
-
|
|
1371
|
+
I(x, {
|
|
1365
1372
|
name: `${i.transition}`
|
|
1366
1373
|
}, {
|
|
1367
1374
|
default: m(() => [
|
|
1368
|
-
i.modelValue ? (
|
|
1375
|
+
i.modelValue ? (o(), u("div", {
|
|
1369
1376
|
key: 0,
|
|
1370
1377
|
class: f(["w-badge", l.classes]),
|
|
1371
1378
|
style: R(l.styles),
|
|
@@ -1375,15 +1382,15 @@ function ft(e, t, i, o, n, l) {
|
|
|
1375
1382
|
role: "status"
|
|
1376
1383
|
}, [
|
|
1377
1384
|
i.dot ? p("", !0) : c(e.$slots, "badge", { key: 0 }, () => [
|
|
1378
|
-
|
|
1385
|
+
S(C(i.modelValue === !0 ? "" : i.modelValue || ""), 1)
|
|
1379
1386
|
])
|
|
1380
1387
|
], 6)) : p("", !0)
|
|
1381
1388
|
]),
|
|
1382
1389
|
_: 3
|
|
1383
1390
|
}, 8, ["name"])
|
|
1384
|
-
]
|
|
1391
|
+
]);
|
|
1385
1392
|
}
|
|
1386
|
-
const
|
|
1393
|
+
const gt = {
|
|
1387
1394
|
name: "w-badge",
|
|
1388
1395
|
props: {
|
|
1389
1396
|
modelValue: { default: !0 },
|
|
@@ -1446,29 +1453,29 @@ const mt = {
|
|
|
1446
1453
|
return this.forcedSize && `font-size: ${this.forcedSize}`;
|
|
1447
1454
|
}
|
|
1448
1455
|
}
|
|
1449
|
-
},
|
|
1450
|
-
function
|
|
1451
|
-
const
|
|
1452
|
-
return
|
|
1456
|
+
}, bt = /* @__PURE__ */ v(gt, [["render", mt]]), yt = ["innerHTML"];
|
|
1457
|
+
function wt(e, t, i, s, a, l) {
|
|
1458
|
+
const n = $("w-icon");
|
|
1459
|
+
return o(), u("div", {
|
|
1453
1460
|
class: f(["w-breadcrumbs", l.classes])
|
|
1454
1461
|
}, [
|
|
1455
|
-
(
|
|
1456
|
-
d && e.$slots.separator ? (
|
|
1462
|
+
(o(!0), u(k, null, L(i.items, (r, d) => (o(), u(k, null, [
|
|
1463
|
+
d && e.$slots.separator ? (o(), u("span", {
|
|
1457
1464
|
class: f(["w-breadcrumbs__separator", i.separatorColor]),
|
|
1458
1465
|
key: `${d}a`
|
|
1459
1466
|
}, [
|
|
1460
1467
|
c(e.$slots, "separator", { index: d })
|
|
1461
|
-
], 2)) : d ? (
|
|
1468
|
+
], 2)) : d ? (o(), g(n, {
|
|
1462
1469
|
class: f(["w-breadcrumbs__separator", i.separatorColor]),
|
|
1463
1470
|
key: `${d}b`
|
|
1464
1471
|
}, {
|
|
1465
1472
|
default: m(() => [
|
|
1466
|
-
|
|
1473
|
+
S(C(i.icon), 1)
|
|
1467
1474
|
]),
|
|
1468
1475
|
_: 2
|
|
1469
1476
|
}, 1032, ["class"])) : p("", !0),
|
|
1470
|
-
r[i.itemRouteKey] && (d < i.items.length - 1 || i.linkLastItem) ? (
|
|
1471
|
-
e.$slots.item ? (
|
|
1477
|
+
r[i.itemRouteKey] && (d < i.items.length - 1 || i.linkLastItem) ? (o(), u(k, { key: 2 }, [
|
|
1478
|
+
e.$slots.item ? (o(), g(T(l.hasRouter ? "router-link" : "a"), {
|
|
1472
1479
|
class: f(["w-breadcrumbs__item", i.color || null]),
|
|
1473
1480
|
key: `${d}c`,
|
|
1474
1481
|
to: l.hasRouter && r[i.itemRouteKey],
|
|
@@ -1482,7 +1489,7 @@ function yt(e, t, i, o, n, l) {
|
|
|
1482
1489
|
})
|
|
1483
1490
|
]),
|
|
1484
1491
|
_: 2
|
|
1485
|
-
}, 1032, ["to", "href", "class"])) : (
|
|
1492
|
+
}, 1032, ["to", "href", "class"])) : (o(), g(T(l.hasRouter ? "router-link" : "a"), {
|
|
1486
1493
|
class: f(["w-breadcrumbs__item", i.color || null]),
|
|
1487
1494
|
key: `${d}d`,
|
|
1488
1495
|
to: l.hasRouter && r[i.itemRouteKey],
|
|
@@ -1494,14 +1501,14 @@ function yt(e, t, i, o, n, l) {
|
|
|
1494
1501
|
item: r,
|
|
1495
1502
|
index: d + 1,
|
|
1496
1503
|
isLast: d === i.items.length - 1
|
|
1497
|
-
}) : (
|
|
1504
|
+
}) : (o(), u("span", {
|
|
1498
1505
|
key: `${d}f`,
|
|
1499
1506
|
innerHTML: r[i.itemLabelKey]
|
|
1500
|
-
}, null, 8,
|
|
1507
|
+
}, null, 8, yt))
|
|
1501
1508
|
], 64))), 256))
|
|
1502
1509
|
], 2);
|
|
1503
1510
|
}
|
|
1504
|
-
const
|
|
1511
|
+
const kt = {
|
|
1505
1512
|
name: "w-breadcrumbs",
|
|
1506
1513
|
props: {
|
|
1507
1514
|
items: { type: Array, required: !0 },
|
|
@@ -1532,10 +1539,10 @@ const wt = {
|
|
|
1532
1539
|
};
|
|
1533
1540
|
}
|
|
1534
1541
|
}
|
|
1535
|
-
},
|
|
1542
|
+
}, vt = /* @__PURE__ */ v(kt, [["render", wt]]), Ct = {
|
|
1536
1543
|
key: 0,
|
|
1537
1544
|
class: "w-button__loader"
|
|
1538
|
-
},
|
|
1545
|
+
}, St = /* @__PURE__ */ y("svg", { viewBox: "0 0 40 40" }, [
|
|
1539
1546
|
/* @__PURE__ */ y("circle", {
|
|
1540
1547
|
cx: "20",
|
|
1541
1548
|
cy: "20",
|
|
@@ -1546,26 +1553,26 @@ const wt = {
|
|
|
1546
1553
|
"stroke-linecap": "round"
|
|
1547
1554
|
})
|
|
1548
1555
|
], -1);
|
|
1549
|
-
function
|
|
1550
|
-
const
|
|
1551
|
-
return
|
|
1556
|
+
function Bt(e, t, i, s, a, l) {
|
|
1557
|
+
const n = $("w-icon");
|
|
1558
|
+
return o(), g(T(i.route ? "a" : "button"), B({
|
|
1552
1559
|
class: ["w-button", l.classes],
|
|
1553
1560
|
type: !i.route && i.type,
|
|
1554
1561
|
href: i.route && (l.externalLink ? i.route : l.resolvedRoute) || null,
|
|
1555
1562
|
disabled: !!i.disabled || null
|
|
1556
|
-
},
|
|
1563
|
+
}, H(l.listeners), { style: l.styles }), {
|
|
1557
1564
|
default: m(() => [
|
|
1558
|
-
i.icon ? (
|
|
1565
|
+
i.icon ? (o(), g(n, ie(B({ key: 0 }, i.iconProps || {})), {
|
|
1559
1566
|
default: m(() => [
|
|
1560
|
-
|
|
1567
|
+
S(C(i.icon), 1)
|
|
1561
1568
|
]),
|
|
1562
1569
|
_: 1
|
|
1563
1570
|
}, 16)) : c(e.$slots, "default", { key: 1 }),
|
|
1564
|
-
|
|
1571
|
+
I(x, { name: "scale-fade" }, {
|
|
1565
1572
|
default: m(() => [
|
|
1566
|
-
i.loading ? (
|
|
1573
|
+
i.loading ? (o(), u("div", Ct, [
|
|
1567
1574
|
c(e.$slots, "loading", {}, () => [
|
|
1568
|
-
|
|
1575
|
+
St
|
|
1569
1576
|
])
|
|
1570
1577
|
])) : p("", !0)
|
|
1571
1578
|
]),
|
|
@@ -1575,7 +1582,7 @@ function St(e, t, i, o, n, l) {
|
|
|
1575
1582
|
_: 3
|
|
1576
1583
|
}, 16, ["type", "href", "class", "disabled", "style"]);
|
|
1577
1584
|
}
|
|
1578
|
-
const
|
|
1585
|
+
const _t = {
|
|
1579
1586
|
props: {
|
|
1580
1587
|
color: { type: String },
|
|
1581
1588
|
bgColor: { type: String },
|
|
@@ -1623,12 +1630,13 @@ const Bt = {
|
|
|
1623
1630
|
return this.hasRouter ? this.$router.resolve(this.route).href : this.route;
|
|
1624
1631
|
},
|
|
1625
1632
|
listeners() {
|
|
1633
|
+
const { class: e, style: t, ...i } = this.$attrs;
|
|
1626
1634
|
return this.route && this.hasRouter && !this.forceLink && !this.externalLink ? {
|
|
1627
|
-
...
|
|
1628
|
-
click: (
|
|
1629
|
-
|
|
1635
|
+
...i,
|
|
1636
|
+
click: (s) => {
|
|
1637
|
+
i.click && i.click(s), this.$router.push(this.route), s.stopPropagation(), s.preventDefault();
|
|
1630
1638
|
}
|
|
1631
|
-
} :
|
|
1639
|
+
} : i;
|
|
1632
1640
|
},
|
|
1633
1641
|
size() {
|
|
1634
1642
|
return this.xs && "xs" || this.sm && "sm" || this.lg && "lg" || this.xl && "xl" || "md";
|
|
@@ -1672,12 +1680,12 @@ const Bt = {
|
|
|
1672
1680
|
};
|
|
1673
1681
|
}
|
|
1674
1682
|
}
|
|
1675
|
-
},
|
|
1676
|
-
function
|
|
1677
|
-
const
|
|
1678
|
-
return i.tooltip ? (
|
|
1683
|
+
}, $t = /* @__PURE__ */ v(_t, [["render", Bt]]), Vt = ["innerHTML"];
|
|
1684
|
+
function It(e, t, i, s, a, l) {
|
|
1685
|
+
const n = $("button-partial");
|
|
1686
|
+
return i.tooltip ? (o(), g(T("w-tooltip"), ie(B({ key: 0 }, i.tooltipProps || {})), {
|
|
1679
1687
|
activator: m(({ on: r }) => [
|
|
1680
|
-
|
|
1688
|
+
I(n, B(l.buttonProps, H(r)), {
|
|
1681
1689
|
default: m(() => [
|
|
1682
1690
|
c(e.$slots, "default")
|
|
1683
1691
|
]),
|
|
@@ -1685,10 +1693,10 @@ function Vt(e, t, i, o, n, l) {
|
|
|
1685
1693
|
}, 1040)
|
|
1686
1694
|
]),
|
|
1687
1695
|
default: m(() => [
|
|
1688
|
-
y("div", { innerHTML: i.tooltip }, null, 8,
|
|
1696
|
+
y("div", { innerHTML: i.tooltip }, null, 8, Vt)
|
|
1689
1697
|
]),
|
|
1690
1698
|
_: 3
|
|
1691
|
-
}, 16)) : (
|
|
1699
|
+
}, 16)) : (o(), g(n, ie(B({ key: 1 }, l.buttonProps)), {
|
|
1692
1700
|
loading: m(() => [
|
|
1693
1701
|
c(e.$slots, "loading")
|
|
1694
1702
|
]),
|
|
@@ -1698,7 +1706,7 @@ function Vt(e, t, i, o, n, l) {
|
|
|
1698
1706
|
_: 3
|
|
1699
1707
|
}, 16));
|
|
1700
1708
|
}
|
|
1701
|
-
const
|
|
1709
|
+
const Tt = {
|
|
1702
1710
|
name: "w-button",
|
|
1703
1711
|
inheritAttrs: !1,
|
|
1704
1712
|
// The attrs are only bound to the button-partial, not the root.
|
|
@@ -1741,7 +1749,7 @@ const It = {
|
|
|
1741
1749
|
lg: { type: Boolean },
|
|
1742
1750
|
xl: { type: Boolean }
|
|
1743
1751
|
},
|
|
1744
|
-
components: { ButtonPartial:
|
|
1752
|
+
components: { ButtonPartial: $t },
|
|
1745
1753
|
emits: [],
|
|
1746
1754
|
computed: {
|
|
1747
1755
|
buttonProps() {
|
|
@@ -1749,23 +1757,23 @@ const It = {
|
|
|
1749
1757
|
return { ...i, ...this.$attrs };
|
|
1750
1758
|
}
|
|
1751
1759
|
}
|
|
1752
|
-
},
|
|
1753
|
-
function
|
|
1754
|
-
const
|
|
1755
|
-
return
|
|
1760
|
+
}, Lt = /* @__PURE__ */ v(Tt, [["render", It]]), W = (e = {}) => (typeof e == "string" ? e = { [e]: !0 } : Array.isArray(e) && (e = { [e.join(" ")]: !0 }), e), Rt = ["innerHTML"];
|
|
1761
|
+
function Pt(e, t, i, s, a, l) {
|
|
1762
|
+
const n = $("w-image");
|
|
1763
|
+
return o(), u("div", {
|
|
1756
1764
|
class: f(["w-card", l.classes])
|
|
1757
1765
|
}, [
|
|
1758
|
-
e.$slots.title ? (
|
|
1766
|
+
e.$slots.title ? (o(), u("div", {
|
|
1759
1767
|
key: 0,
|
|
1760
1768
|
class: f(["w-card__title", { "w-card__title--has-toolbar": e.$slots.title && l.titleHasToolbar, ...l.titleClasses }])
|
|
1761
1769
|
}, [
|
|
1762
1770
|
c(e.$slots, "title")
|
|
1763
|
-
], 2)) : i.title ? (
|
|
1771
|
+
], 2)) : i.title ? (o(), u("div", {
|
|
1764
1772
|
key: 1,
|
|
1765
1773
|
class: f(["w-card__title", { "w-card__title--has-toolbar": e.$slots.title && l.titleHasToolbar, ...l.titleClasses }]),
|
|
1766
1774
|
innerHTML: i.title
|
|
1767
|
-
}, null, 10,
|
|
1768
|
-
i.image ? (
|
|
1775
|
+
}, null, 10, Rt)) : p("", !0),
|
|
1776
|
+
i.image ? (o(), g(n, B({
|
|
1769
1777
|
key: 2,
|
|
1770
1778
|
class: "w-card__image",
|
|
1771
1779
|
src: i.image
|
|
@@ -1780,7 +1788,7 @@ function Rt(e, t, i, o, n, l) {
|
|
|
1780
1788
|
}, [
|
|
1781
1789
|
c(e.$slots, "default")
|
|
1782
1790
|
], 2),
|
|
1783
|
-
e.$slots.actions ? (
|
|
1791
|
+
e.$slots.actions ? (o(), u("div", {
|
|
1784
1792
|
key: 3,
|
|
1785
1793
|
class: f(["w-card__actions", { "w-card__actions--has-toolbar": l.actionsHasToolbar }])
|
|
1786
1794
|
}, [
|
|
@@ -1788,7 +1796,7 @@ function Rt(e, t, i, o, n, l) {
|
|
|
1788
1796
|
], 2)) : p("", !0)
|
|
1789
1797
|
], 2);
|
|
1790
1798
|
}
|
|
1791
|
-
const
|
|
1799
|
+
const xt = {
|
|
1792
1800
|
name: "w-card",
|
|
1793
1801
|
props: {
|
|
1794
1802
|
color: { type: String },
|
|
@@ -1807,10 +1815,10 @@ const Pt = {
|
|
|
1807
1815
|
emits: [],
|
|
1808
1816
|
computed: {
|
|
1809
1817
|
titleClasses() {
|
|
1810
|
-
return
|
|
1818
|
+
return W(this.titleClass);
|
|
1811
1819
|
},
|
|
1812
1820
|
contentClasses() {
|
|
1813
|
-
return
|
|
1821
|
+
return W(this.contentClass);
|
|
1814
1822
|
},
|
|
1815
1823
|
titleHasToolbar() {
|
|
1816
1824
|
const { title: e } = this.$slots;
|
|
@@ -1839,7 +1847,7 @@ const Pt = {
|
|
|
1839
1847
|
};
|
|
1840
1848
|
}
|
|
1841
1849
|
}
|
|
1842
|
-
}, Ot = /* @__PURE__ */ v(
|
|
1850
|
+
}, Ot = /* @__PURE__ */ v(xt, [["render", Pt]]), M = {
|
|
1843
1851
|
inject: {
|
|
1844
1852
|
// Used in each form component to determine whether to use the w-form-element wrap or not.
|
|
1845
1853
|
// So, if a form component is in a form, use the w-form-element wrap.
|
|
@@ -1886,17 +1894,17 @@ const Pt = {
|
|
|
1886
1894
|
this.$refs.formEl.validate(this);
|
|
1887
1895
|
}
|
|
1888
1896
|
}
|
|
1889
|
-
},
|
|
1897
|
+
}, zt = ["id", "name", "checked", "disabled", "required", "tabindex", "aria-checked"], Mt = ["for"], Et = ["for", "innerHTML"], Wt = /* @__PURE__ */ y("svg", { viewBox: "-0.5 0 12 10" }, [
|
|
1890
1898
|
/* @__PURE__ */ y("polyline", { points: "1 5 4 8 10 2" })
|
|
1891
|
-
], -1),
|
|
1892
|
-
|
|
1893
|
-
],
|
|
1894
|
-
function
|
|
1895
|
-
return
|
|
1899
|
+
], -1), At = [
|
|
1900
|
+
Wt
|
|
1901
|
+
], Kt = ["for"], Nt = ["for", "innerHTML"];
|
|
1902
|
+
function Dt(e, t, i, s, a, l) {
|
|
1903
|
+
return o(), g(T(e.formRegister && !l.wCheckboxes ? "w-form-element" : "div"), B({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: a.isChecked, disabled: e.isDisabled, readonly: e.isReadonly }, {
|
|
1896
1904
|
valid: e.valid,
|
|
1897
|
-
"onUpdate:valid": t[5] || (t[5] = (
|
|
1898
|
-
onReset: t[6] || (t[6] = (
|
|
1899
|
-
e.$emit("update:modelValue",
|
|
1905
|
+
"onUpdate:valid": t[5] || (t[5] = (n) => e.valid = n),
|
|
1906
|
+
onReset: t[6] || (t[6] = (n) => {
|
|
1907
|
+
e.$emit("update:modelValue", a.isChecked = null), e.$emit("input", null);
|
|
1900
1908
|
}),
|
|
1901
1909
|
class: l.classes
|
|
1902
1910
|
}), {
|
|
@@ -1906,62 +1914,62 @@ function Nt(e, t, i, o, n, l) {
|
|
|
1906
1914
|
id: `w-checkbox--${e._.uid}`,
|
|
1907
1915
|
type: "checkbox",
|
|
1908
1916
|
name: e.inputName,
|
|
1909
|
-
checked:
|
|
1917
|
+
checked: a.isChecked || null,
|
|
1910
1918
|
disabled: e.isDisabled || e.isReadonly || null,
|
|
1911
1919
|
required: e.required || null,
|
|
1912
1920
|
tabindex: e.tabindex || null,
|
|
1913
|
-
onFocus: t[0] || (t[0] = (
|
|
1914
|
-
onBlur: t[1] || (t[1] = (
|
|
1915
|
-
onChange: t[2] || (t[2] = (
|
|
1916
|
-
onKeypress: t[3] || (t[3] =
|
|
1917
|
-
"aria-checked":
|
|
1921
|
+
onFocus: t[0] || (t[0] = (n) => e.$emit("focus", n)),
|
|
1922
|
+
onBlur: t[1] || (t[1] = (n) => e.$emit("blur", n)),
|
|
1923
|
+
onChange: t[2] || (t[2] = (n) => l.onInput()),
|
|
1924
|
+
onKeypress: t[3] || (t[3] = E((...n) => l.onInput && l.onInput(...n), ["enter"])),
|
|
1925
|
+
"aria-checked": a.isChecked || "false",
|
|
1918
1926
|
role: "checkbox"
|
|
1919
|
-
}, null, 40,
|
|
1920
|
-
l.hasLabel && i.labelOnLeft ? (
|
|
1921
|
-
e.$slots.default ? (
|
|
1927
|
+
}, null, 40, zt),
|
|
1928
|
+
l.hasLabel && i.labelOnLeft ? (o(), u(k, { key: 0 }, [
|
|
1929
|
+
e.$slots.default ? (o(), u("label", {
|
|
1922
1930
|
key: 0,
|
|
1923
1931
|
class: f(["w-checkbox__label w-form-el-shakable pr2", e.labelClasses]),
|
|
1924
1932
|
for: `w-checkbox--${e._.uid}`
|
|
1925
1933
|
}, [
|
|
1926
1934
|
c(e.$slots, "default", {}, () => [
|
|
1927
|
-
|
|
1935
|
+
S(C(i.label), 1)
|
|
1928
1936
|
])
|
|
1929
|
-
], 10,
|
|
1937
|
+
], 10, Mt)) : i.label ? (o(), u("label", {
|
|
1930
1938
|
key: 1,
|
|
1931
1939
|
class: f(["w-checkbox__label w-form-el-shakable pr2", e.labelClasses]),
|
|
1932
1940
|
for: `w-checkbox--${e._.uid}`,
|
|
1933
1941
|
innerHTML: i.label
|
|
1934
|
-
}, null, 10,
|
|
1942
|
+
}, null, 10, Et)) : p("", !0)
|
|
1935
1943
|
], 64)) : p("", !0),
|
|
1936
1944
|
y("div", {
|
|
1937
1945
|
class: f(["w-checkbox__input", this.color]),
|
|
1938
|
-
onClick: t[4] || (t[4] = (
|
|
1946
|
+
onClick: t[4] || (t[4] = (n) => {
|
|
1939
1947
|
e.$refs.input.focus(), e.$refs.input.click();
|
|
1940
1948
|
})
|
|
1941
|
-
},
|
|
1942
|
-
l.hasLabel && !i.labelOnLeft ? (
|
|
1943
|
-
e.$slots.default ? (
|
|
1949
|
+
}, At, 2),
|
|
1950
|
+
l.hasLabel && !i.labelOnLeft ? (o(), u(k, { key: 1 }, [
|
|
1951
|
+
e.$slots.default ? (o(), u("label", {
|
|
1944
1952
|
key: 0,
|
|
1945
1953
|
class: f(["w-checkbox__label w-form-el-shakable pl2", e.labelClasses]),
|
|
1946
1954
|
for: `w-checkbox--${e._.uid}`
|
|
1947
1955
|
}, [
|
|
1948
1956
|
c(e.$slots, "default", {}, () => [
|
|
1949
|
-
|
|
1957
|
+
S(C(i.label), 1)
|
|
1950
1958
|
])
|
|
1951
|
-
], 10,
|
|
1959
|
+
], 10, Kt)) : i.label ? (o(), u("label", {
|
|
1952
1960
|
key: 1,
|
|
1953
1961
|
class: f(["w-checkbox__label w-form-el-shakable pl2", e.labelClasses]),
|
|
1954
1962
|
for: `w-checkbox--${e._.uid}`,
|
|
1955
1963
|
innerHTML: i.label
|
|
1956
|
-
}, null, 10,
|
|
1964
|
+
}, null, 10, Nt)) : p("", !0)
|
|
1957
1965
|
], 64)) : p("", !0)
|
|
1958
1966
|
]),
|
|
1959
1967
|
_: 3
|
|
1960
1968
|
}, 16, ["valid", "class"]);
|
|
1961
1969
|
}
|
|
1962
|
-
const
|
|
1970
|
+
const Ht = {
|
|
1963
1971
|
name: "w-checkbox",
|
|
1964
|
-
mixins: [
|
|
1972
|
+
mixins: [M],
|
|
1965
1973
|
inject: {
|
|
1966
1974
|
wCheckboxes: { default: null }
|
|
1967
1975
|
},
|
|
@@ -2026,10 +2034,10 @@ const Dt = {
|
|
|
2026
2034
|
this.isChecked = e;
|
|
2027
2035
|
}
|
|
2028
2036
|
}
|
|
2029
|
-
},
|
|
2030
|
-
function
|
|
2031
|
-
const
|
|
2032
|
-
return
|
|
2037
|
+
}, Ft = /* @__PURE__ */ v(Ht, [["render", Dt]]), jt = ["innerHTML"];
|
|
2038
|
+
function Ut(e, t, i, s, a, l) {
|
|
2039
|
+
const n = $("w-checkbox");
|
|
2040
|
+
return o(), g(T(e.formRegister ? "w-form-element" : "div"), B({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: l.checkboxItems.some((r) => r._isChecked), disabled: e.isDisabled }, {
|
|
2033
2041
|
valid: e.valid,
|
|
2034
2042
|
"onUpdate:valid": t[1] || (t[1] = (r) => e.valid = r),
|
|
2035
2043
|
onReset: l.reset,
|
|
@@ -2038,12 +2046,13 @@ function jt(e, t, i, o, n, l) {
|
|
|
2038
2046
|
class: l.classes
|
|
2039
2047
|
}), {
|
|
2040
2048
|
default: m(() => [
|
|
2041
|
-
(
|
|
2049
|
+
(o(!0), u(k, null, L(l.checkboxItems, (r, d) => (o(), g(n, B({
|
|
2042
2050
|
key: d,
|
|
2043
2051
|
"model-value": r._isChecked,
|
|
2044
2052
|
"onUpdate:modelValue": (h) => l.toggleCheck(r, h),
|
|
2045
2053
|
onFocus: t[0] || (t[0] = (h) => e.$emit("focus", h)),
|
|
2046
|
-
name: `${e.inputName}[]
|
|
2054
|
+
name: `${e.inputName}[]`,
|
|
2055
|
+
ref_for: !0
|
|
2047
2056
|
}, { label: r.label, color: r.color, labelOnLeft: i.labelOnLeft, labelColor: i.labelColor, round: i.round }, {
|
|
2048
2057
|
disabled: e.isDisabled || null,
|
|
2049
2058
|
readonly: e.isReadonly || null,
|
|
@@ -2056,10 +2065,10 @@ function jt(e, t, i, o, n, l) {
|
|
|
2056
2065
|
checked: !!r._isChecked,
|
|
2057
2066
|
index: d + 1,
|
|
2058
2067
|
innerHTML: r.label
|
|
2059
|
-
}) : r.label ? (
|
|
2068
|
+
}) : r.label ? (o(), u("div", {
|
|
2060
2069
|
key: 1,
|
|
2061
2070
|
innerHTML: r.label
|
|
2062
|
-
}, null, 8,
|
|
2071
|
+
}, null, 8, jt)) : p("", !0)
|
|
2063
2072
|
]),
|
|
2064
2073
|
_: 2
|
|
2065
2074
|
}, 1040, ["model-value", "onUpdate:modelValue", "name", "disabled", "readonly", "class"]))), 128))
|
|
@@ -2067,9 +2076,9 @@ function jt(e, t, i, o, n, l) {
|
|
|
2067
2076
|
_: 3
|
|
2068
2077
|
}, 16, ["valid", "onReset", "column", "wrap", "class"]);
|
|
2069
2078
|
}
|
|
2070
|
-
const
|
|
2079
|
+
const qt = {
|
|
2071
2080
|
name: "w-checkboxes",
|
|
2072
|
-
mixins: [
|
|
2081
|
+
mixins: [M],
|
|
2073
2082
|
props: {
|
|
2074
2083
|
items: { type: Array, required: !0 },
|
|
2075
2084
|
// All the possible options.
|
|
@@ -2122,7 +2131,7 @@ const Ut = {
|
|
|
2122
2131
|
},
|
|
2123
2132
|
toggleCheck(e, t) {
|
|
2124
2133
|
e._isChecked = t;
|
|
2125
|
-
const i = this.checkboxItems.filter((
|
|
2134
|
+
const i = this.checkboxItems.filter((s) => s._isChecked).map((s) => this.returnValues ? s.returnValue : s.value);
|
|
2126
2135
|
this.$emit("update:modelValue", i), this.$emit("input", i);
|
|
2127
2136
|
},
|
|
2128
2137
|
// Return the original item (so there is no `_index`, etc.).
|
|
@@ -2130,15 +2139,15 @@ const Ut = {
|
|
|
2130
2139
|
return this.items[e._index];
|
|
2131
2140
|
}
|
|
2132
2141
|
}
|
|
2133
|
-
},
|
|
2134
|
-
function
|
|
2135
|
-
const
|
|
2136
|
-
return
|
|
2142
|
+
}, Xt = /* @__PURE__ */ v(qt, [["render", Ut]]);
|
|
2143
|
+
function Yt(e, t, i, s, a, l) {
|
|
2144
|
+
const n = $("w-button"), r = $("w-flex"), d = $("w-menu"), h = ge("focus");
|
|
2145
|
+
return o(), g(d, B({
|
|
2137
2146
|
modelValue: e.showPopup,
|
|
2138
|
-
"onUpdate:modelValue": t[2] || (t[2] = (
|
|
2147
|
+
"onUpdate:modelValue": t[2] || (t[2] = (w) => e.showPopup = w)
|
|
2139
2148
|
}, l.wMenuProps), {
|
|
2140
|
-
activator: m(({ on:
|
|
2141
|
-
|
|
2149
|
+
activator: m(({ on: w }) => [
|
|
2150
|
+
I(n, B({ class: "w-confirm" }, { ...e.$attrs, ...l.buttonProps, ...i.disablePrompt ? {} : w }), {
|
|
2142
2151
|
default: m(() => [
|
|
2143
2152
|
c(e.$slots, "default")
|
|
2144
2153
|
]),
|
|
@@ -2146,42 +2155,42 @@ function Xt(e, t, i, o, n, l) {
|
|
|
2146
2155
|
}, 1040)
|
|
2147
2156
|
]),
|
|
2148
2157
|
default: m(() => [
|
|
2149
|
-
|
|
2158
|
+
I(r, {
|
|
2150
2159
|
column: !i.inline,
|
|
2151
2160
|
"align-center": ""
|
|
2152
2161
|
}, {
|
|
2153
2162
|
default: m(() => [
|
|
2154
2163
|
y("div", null, [
|
|
2155
2164
|
c(e.$slots, "question", {}, () => [
|
|
2156
|
-
|
|
2165
|
+
S(C(i.question), 1)
|
|
2157
2166
|
])
|
|
2158
2167
|
]),
|
|
2159
2168
|
y("div", {
|
|
2160
2169
|
class: f(["w-flex justify-end", i.inline ? "ml2" : "mt2"])
|
|
2161
2170
|
}, [
|
|
2162
|
-
i.cancel !== !1 ? (
|
|
2171
|
+
i.cancel !== !1 ? (o(), g(n, B({
|
|
2163
2172
|
key: 0,
|
|
2164
2173
|
class: "mr2"
|
|
2165
2174
|
}, l.cancelButtonProps, {
|
|
2166
2175
|
"bg-color": (l.cancelButton || {}).bgColor || "error",
|
|
2167
|
-
onKeyup: t[0] || (t[0] =
|
|
2176
|
+
onKeyup: t[0] || (t[0] = E((w) => !i.persistent && l.onCancel(), ["escape"])),
|
|
2168
2177
|
onClick: l.onCancel
|
|
2169
2178
|
}), {
|
|
2170
2179
|
default: m(() => [
|
|
2171
2180
|
c(e.$slots, "cancel", {}, () => [
|
|
2172
|
-
|
|
2181
|
+
S(C(l.cancelButton.label), 1)
|
|
2173
2182
|
])
|
|
2174
2183
|
]),
|
|
2175
2184
|
_: 3
|
|
2176
2185
|
}, 16, ["bg-color", "onClick"])) : p("", !0),
|
|
2177
|
-
|
|
2186
|
+
A((o(), g(n, B(l.confirmButtonProps, {
|
|
2178
2187
|
"bg-color": (l.confirmButton || {}).bgColor || "success",
|
|
2179
|
-
onKeyup: t[1] || (t[1] =
|
|
2188
|
+
onKeyup: t[1] || (t[1] = E((w) => !i.persistent && l.onCancel(), ["escape"])),
|
|
2180
2189
|
onClick: l.onConfirm
|
|
2181
2190
|
}), {
|
|
2182
2191
|
default: m(() => [
|
|
2183
2192
|
c(e.$slots, "confirm", {}, () => [
|
|
2184
|
-
|
|
2193
|
+
S(C(l.confirmButton.label), 1)
|
|
2185
2194
|
])
|
|
2186
2195
|
]),
|
|
2187
2196
|
_: 3
|
|
@@ -2196,7 +2205,7 @@ function Xt(e, t, i, o, n, l) {
|
|
|
2196
2205
|
_: 3
|
|
2197
2206
|
}, 16, ["modelValue"]);
|
|
2198
2207
|
}
|
|
2199
|
-
const
|
|
2208
|
+
const Gt = {
|
|
2200
2209
|
name: "w-confirm",
|
|
2201
2210
|
inheritAttrs: !1,
|
|
2202
2211
|
// The attrs are only bound to the button, not the w-menu.
|
|
@@ -2309,16 +2318,16 @@ const Yt = {
|
|
|
2309
2318
|
this.$emit("confirm"), this.showPopup = !1;
|
|
2310
2319
|
}
|
|
2311
2320
|
}
|
|
2312
|
-
},
|
|
2313
|
-
function
|
|
2314
|
-
return
|
|
2321
|
+
}, Jt = /* @__PURE__ */ v(Gt, [["render", Yt]]);
|
|
2322
|
+
function Qt(e, t, i, s, a, l) {
|
|
2323
|
+
return o(), u("div", {
|
|
2315
2324
|
class: f(["w-date-picker", l.classes]),
|
|
2316
2325
|
style: R(l.styles)
|
|
2317
2326
|
}, [
|
|
2318
2327
|
c(e.$slots, "default")
|
|
2319
2328
|
], 6);
|
|
2320
2329
|
}
|
|
2321
|
-
const
|
|
2330
|
+
const Zt = {
|
|
2322
2331
|
name: "w-date-picker",
|
|
2323
2332
|
props: {
|
|
2324
2333
|
dark: { type: Boolean },
|
|
@@ -2336,12 +2345,12 @@ const Qt = {
|
|
|
2336
2345
|
return !1;
|
|
2337
2346
|
}
|
|
2338
2347
|
}
|
|
2339
|
-
},
|
|
2340
|
-
function
|
|
2341
|
-
const
|
|
2342
|
-
return
|
|
2348
|
+
}, ei = /* @__PURE__ */ v(Zt, [["render", Qt]]);
|
|
2349
|
+
function ti(e, t, i, s, a, l) {
|
|
2350
|
+
const n = $("w-card"), r = $("w-overlay");
|
|
2351
|
+
return o(), g(r, {
|
|
2343
2352
|
class: f(["w-dialog", l.classes]),
|
|
2344
|
-
"model-value":
|
|
2353
|
+
"model-value": a.showWrapper,
|
|
2345
2354
|
persistent: i.persistent,
|
|
2346
2355
|
"persistent-no-animation": i.persistentNoAnimation,
|
|
2347
2356
|
onClick: l.onOutsideClick,
|
|
@@ -2350,13 +2359,13 @@ function ei(e, t, i, o, n, l) {
|
|
|
2350
2359
|
opacity: i.overlayOpacity
|
|
2351
2360
|
}, {
|
|
2352
2361
|
default: m(() => [
|
|
2353
|
-
|
|
2362
|
+
I(x, {
|
|
2354
2363
|
name: i.transition,
|
|
2355
2364
|
appear: "",
|
|
2356
2365
|
onAfterLeave: l.onBeforeClose
|
|
2357
2366
|
}, {
|
|
2358
2367
|
default: m(() => [
|
|
2359
|
-
|
|
2368
|
+
A(I(n, {
|
|
2360
2369
|
class: f(["w-dialog__content", i.dialogClass]),
|
|
2361
2370
|
ref: "dialog",
|
|
2362
2371
|
"no-border": "",
|
|
@@ -2387,7 +2396,7 @@ function ei(e, t, i, o, n, l) {
|
|
|
2387
2396
|
key: "1"
|
|
2388
2397
|
} : void 0
|
|
2389
2398
|
]), 1032, ["color", "bg-color", "class", "title-class", "content-class", "title", "style"]), [
|
|
2390
|
-
[ae,
|
|
2399
|
+
[ae, a.showContent]
|
|
2391
2400
|
])
|
|
2392
2401
|
]),
|
|
2393
2402
|
_: 3
|
|
@@ -2396,7 +2405,7 @@ function ei(e, t, i, o, n, l) {
|
|
|
2396
2405
|
_: 3
|
|
2397
2406
|
}, 8, ["model-value", "persistent", "persistent-no-animation", "onClick", "onClose", "bg-color", "opacity", "class"]);
|
|
2398
2407
|
}
|
|
2399
|
-
const
|
|
2408
|
+
const ii = {
|
|
2400
2409
|
name: "w-dialog",
|
|
2401
2410
|
props: {
|
|
2402
2411
|
modelValue: { default: !0 },
|
|
@@ -2466,17 +2475,17 @@ const ti = {
|
|
|
2466
2475
|
this.showWrapper = e, this.showContent = e;
|
|
2467
2476
|
}
|
|
2468
2477
|
}
|
|
2469
|
-
},
|
|
2470
|
-
function
|
|
2471
|
-
return
|
|
2478
|
+
}, li = /* @__PURE__ */ v(ii, [["render", ti]]), si = ["role", "aria-orientation"];
|
|
2479
|
+
function oi(e, t, i, s, a, l) {
|
|
2480
|
+
return o(), u("div", {
|
|
2472
2481
|
class: f(["w-divider", l.classes]),
|
|
2473
2482
|
role: e.$slots.default ? null : "presentation",
|
|
2474
2483
|
"aria-orientation": i.vertical ? "vertical" : "horizontal"
|
|
2475
2484
|
}, [
|
|
2476
2485
|
c(e.$slots, "default")
|
|
2477
|
-
], 10,
|
|
2486
|
+
], 10, si);
|
|
2478
2487
|
}
|
|
2479
|
-
const
|
|
2488
|
+
const ai = {
|
|
2480
2489
|
name: "w-divider",
|
|
2481
2490
|
props: {
|
|
2482
2491
|
vertical: { type: Boolean },
|
|
@@ -2496,23 +2505,23 @@ const oi = {
|
|
|
2496
2505
|
};
|
|
2497
2506
|
}
|
|
2498
2507
|
}
|
|
2499
|
-
},
|
|
2500
|
-
function
|
|
2501
|
-
const
|
|
2502
|
-
return
|
|
2508
|
+
}, ni = /* @__PURE__ */ v(ai, [["render", oi]]), ri = { class: "w-drawer-wrap__pushable" };
|
|
2509
|
+
function di(e, t, i, s, a, l) {
|
|
2510
|
+
const n = $("w-overlay");
|
|
2511
|
+
return a.showWrapper || i.pushContent ? (o(), u("div", {
|
|
2503
2512
|
key: 0,
|
|
2504
2513
|
class: f(["w-drawer-wrap", l.wrapperClasses])
|
|
2505
2514
|
}, [
|
|
2506
|
-
i.pushContent ? (
|
|
2515
|
+
i.pushContent ? (o(), u("div", {
|
|
2507
2516
|
key: 0,
|
|
2508
2517
|
class: "w-drawer-wrap__track",
|
|
2509
2518
|
style: R(l.trackStyles)
|
|
2510
2519
|
}, [
|
|
2511
|
-
y("div",
|
|
2512
|
-
i.noOverlay ? p("", !0) : (
|
|
2520
|
+
y("div", ri, [
|
|
2521
|
+
i.noOverlay ? p("", !0) : (o(), g(n, {
|
|
2513
2522
|
key: 0,
|
|
2514
|
-
modelValue:
|
|
2515
|
-
"onUpdate:modelValue": t[0] || (t[0] = (r) =>
|
|
2523
|
+
modelValue: a.showDrawer,
|
|
2524
|
+
"onUpdate:modelValue": t[0] || (t[0] = (r) => a.showDrawer = r),
|
|
2516
2525
|
onClick: l.onOutsideClick,
|
|
2517
2526
|
persistent: i.persistent,
|
|
2518
2527
|
"persistent-no-animation": "",
|
|
@@ -2521,13 +2530,13 @@ function ri(e, t, i, o, n, l) {
|
|
|
2521
2530
|
}, null, 8, ["modelValue", "onClick", "persistent", "bg-color", "opacity"])),
|
|
2522
2531
|
c(e.$slots, "pushable")
|
|
2523
2532
|
]),
|
|
2524
|
-
|
|
2533
|
+
I(x, {
|
|
2525
2534
|
name: "fade",
|
|
2526
2535
|
onBeforeLeave: l.onBeforeClose,
|
|
2527
2536
|
onAfterLeave: l.onClose
|
|
2528
2537
|
}, {
|
|
2529
2538
|
default: m(() => [
|
|
2530
|
-
|
|
2539
|
+
a.showDrawer ? (o(), g(T(i.tag || "aside"), {
|
|
2531
2540
|
key: 0,
|
|
2532
2541
|
class: f(["w-drawer", l.drawerClasses]),
|
|
2533
2542
|
ref: "drawer",
|
|
@@ -2541,25 +2550,25 @@ function ri(e, t, i, o, n, l) {
|
|
|
2541
2550
|
]),
|
|
2542
2551
|
_: 3
|
|
2543
2552
|
}, 8, ["onBeforeLeave", "onAfterLeave"])
|
|
2544
|
-
], 4)) : (
|
|
2545
|
-
i.noOverlay ? p("", !0) : (
|
|
2553
|
+
], 4)) : (o(), u(k, { key: 1 }, [
|
|
2554
|
+
i.noOverlay ? p("", !0) : (o(), g(n, {
|
|
2546
2555
|
key: 0,
|
|
2547
|
-
modelValue:
|
|
2548
|
-
"onUpdate:modelValue": t[1] || (t[1] = (r) =>
|
|
2556
|
+
modelValue: a.showDrawer,
|
|
2557
|
+
"onUpdate:modelValue": t[1] || (t[1] = (r) => a.showDrawer = r),
|
|
2549
2558
|
onClick: l.onOutsideClick,
|
|
2550
2559
|
persistent: i.persistent,
|
|
2551
2560
|
"persistent-no-animation": "",
|
|
2552
2561
|
"bg-color": i.overlayColor,
|
|
2553
2562
|
opacity: i.overlayOpacity
|
|
2554
2563
|
}, null, 8, ["modelValue", "onClick", "persistent", "bg-color", "opacity"])),
|
|
2555
|
-
|
|
2564
|
+
I(x, {
|
|
2556
2565
|
name: l.transitionName,
|
|
2557
2566
|
appear: "",
|
|
2558
2567
|
onBeforeLeave: l.onBeforeClose,
|
|
2559
2568
|
onAfterLeave: l.onClose
|
|
2560
2569
|
}, {
|
|
2561
2570
|
default: m(() => [
|
|
2562
|
-
|
|
2571
|
+
a.showDrawer ? (o(), g(T(i.tag || "aside"), {
|
|
2563
2572
|
key: 0,
|
|
2564
2573
|
class: f(["w-drawer", l.drawerClasses]),
|
|
2565
2574
|
ref: "drawer",
|
|
@@ -2576,7 +2585,7 @@ function ri(e, t, i, o, n, l) {
|
|
|
2576
2585
|
], 64))
|
|
2577
2586
|
], 2)) : p("", !0);
|
|
2578
2587
|
}
|
|
2579
|
-
const
|
|
2588
|
+
const ui = { left: "right", right: "left", top: "down", bottom: "up" }, hi = {
|
|
2580
2589
|
name: "w-drawer",
|
|
2581
2590
|
props: {
|
|
2582
2591
|
modelValue: { default: !0 },
|
|
@@ -2670,7 +2679,7 @@ const di = { left: "right", right: "left", top: "down", bottom: "up" }, ui = {
|
|
|
2670
2679
|
return !this.showWrapper;
|
|
2671
2680
|
},
|
|
2672
2681
|
transitionName() {
|
|
2673
|
-
return `slide-${
|
|
2682
|
+
return `slide-${ui[this.position]}`;
|
|
2674
2683
|
}
|
|
2675
2684
|
},
|
|
2676
2685
|
methods: {
|
|
@@ -2689,9 +2698,9 @@ const di = { left: "right", right: "left", top: "down", bottom: "up" }, ui = {
|
|
|
2689
2698
|
e && (this.showWrapper = !0), this.showDrawer = e;
|
|
2690
2699
|
}
|
|
2691
2700
|
}
|
|
2692
|
-
},
|
|
2693
|
-
function
|
|
2694
|
-
return
|
|
2701
|
+
}, ci = /* @__PURE__ */ v(hi, [["render", di]]);
|
|
2702
|
+
function pi(e, t, i, s, a, l) {
|
|
2703
|
+
return o(), g(T(i.tag), {
|
|
2695
2704
|
class: f(["w-flex", l.classes])
|
|
2696
2705
|
}, {
|
|
2697
2706
|
default: m(() => [
|
|
@@ -2700,7 +2709,7 @@ function ci(e, t, i, o, n, l) {
|
|
|
2700
2709
|
_: 3
|
|
2701
2710
|
}, 8, ["class"]);
|
|
2702
2711
|
}
|
|
2703
|
-
const
|
|
2712
|
+
const fi = {
|
|
2704
2713
|
name: "w-flex",
|
|
2705
2714
|
props: {
|
|
2706
2715
|
tag: { type: String, default: "div" },
|
|
@@ -2747,23 +2756,23 @@ const pi = {
|
|
|
2747
2756
|
};
|
|
2748
2757
|
}
|
|
2749
2758
|
}
|
|
2750
|
-
},
|
|
2751
|
-
function
|
|
2752
|
-
return
|
|
2759
|
+
}, mi = /* @__PURE__ */ v(fi, [["render", pi]]);
|
|
2760
|
+
function gi(e, t, i, s, a, l) {
|
|
2761
|
+
return o(), u("form", {
|
|
2753
2762
|
class: f(["w-form", l.classes]),
|
|
2754
|
-
onSubmit: t[0] || (t[0] = (...
|
|
2755
|
-
onReset: t[1] || (t[1] = (...
|
|
2763
|
+
onSubmit: t[0] || (t[0] = (...n) => l.onSubmit && l.onSubmit(...n)),
|
|
2764
|
+
onReset: t[1] || (t[1] = (...n) => l.reset && l.reset(...n)),
|
|
2756
2765
|
novalidate: ""
|
|
2757
2766
|
}, [
|
|
2758
2767
|
c(e.$slots, "default")
|
|
2759
2768
|
], 34);
|
|
2760
2769
|
}
|
|
2761
|
-
const
|
|
2770
|
+
const bi = async (e, t) => {
|
|
2762
2771
|
for (const i of e)
|
|
2763
2772
|
if (await t(i))
|
|
2764
2773
|
return !0;
|
|
2765
2774
|
return !1;
|
|
2766
|
-
},
|
|
2775
|
+
}, yi = {
|
|
2767
2776
|
name: "w-form",
|
|
2768
2777
|
props: {
|
|
2769
2778
|
modelValue: {},
|
|
@@ -2832,8 +2841,8 @@ const gi = async (e, t) => {
|
|
|
2832
2841
|
let t = 0;
|
|
2833
2842
|
return await (async () => {
|
|
2834
2843
|
var i;
|
|
2835
|
-
for (const
|
|
2836
|
-
!((i =
|
|
2844
|
+
for (const s of this.formElements)
|
|
2845
|
+
!((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));
|
|
2837
2846
|
})(), this.updateErrorsCount(t), this.status = !t, this.$emit("validate", { e, errorsCount: t }), this.$emit(this.status ? "success" : "error", { e, errorsCount: t }), this.status;
|
|
2838
2847
|
},
|
|
2839
2848
|
async validateElement(e) {
|
|
@@ -2843,9 +2852,9 @@ const gi = async (e, t) => {
|
|
|
2843
2852
|
// message in the form element.
|
|
2844
2853
|
async checkElementValidators(e) {
|
|
2845
2854
|
let t = !1, i = "";
|
|
2846
|
-
await
|
|
2847
|
-
const
|
|
2848
|
-
return t = typeof
|
|
2855
|
+
await bi(e.validators, async (s) => {
|
|
2856
|
+
const a = await (typeof s == "function" && s(e.inputValue));
|
|
2857
|
+
return t = typeof a != "string", i = t ? "" : a, !t;
|
|
2849
2858
|
}), e.hasJustReset = !1, e.Validation.isValid = t, e.Validation.message = i;
|
|
2850
2859
|
},
|
|
2851
2860
|
// Reset is called from:
|
|
@@ -2855,7 +2864,7 @@ const gi = async (e, t) => {
|
|
|
2855
2864
|
this.status = null, this.formElements.forEach((t) => t.reset()), this.updateErrorsCount(0, !0), this.$emit("reset", e);
|
|
2856
2865
|
},
|
|
2857
2866
|
updateErrorsCount(e = null, t = !1) {
|
|
2858
|
-
this.errorsCount = e !== null ? e : this.formElements.reduce((i,
|
|
2867
|
+
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);
|
|
2859
2868
|
},
|
|
2860
2869
|
onSubmit(e) {
|
|
2861
2870
|
this.validate(e), this.$emit("submit", e), (!this.allowSubmit || !this.status) && e.preventDefault();
|
|
@@ -2869,10 +2878,10 @@ const gi = async (e, t) => {
|
|
|
2869
2878
|
(this.status === !1 && e || e === null && this.status !== null) && this.reset(), this.status = e;
|
|
2870
2879
|
}
|
|
2871
2880
|
}
|
|
2872
|
-
},
|
|
2873
|
-
function
|
|
2874
|
-
const
|
|
2875
|
-
return
|
|
2881
|
+
}, wi = /* @__PURE__ */ v(yi, [["render", gi]]);
|
|
2882
|
+
function ki(e, t, i, s, a, l) {
|
|
2883
|
+
const n = $("w-transition-expand");
|
|
2884
|
+
return o(), u("div", {
|
|
2876
2885
|
class: f(l.classes)
|
|
2877
2886
|
}, [
|
|
2878
2887
|
y("div", {
|
|
@@ -2880,16 +2889,16 @@ function wi(e, t, i, o, n, l) {
|
|
|
2880
2889
|
}, [
|
|
2881
2890
|
c(e.$slots, "default")
|
|
2882
2891
|
], 2),
|
|
2883
|
-
|
|
2892
|
+
I(n, { y: "" }, {
|
|
2884
2893
|
default: m(() => [
|
|
2885
|
-
e.Validation.message ? (
|
|
2894
|
+
e.Validation.message ? (o(), u("div", {
|
|
2886
2895
|
key: 0,
|
|
2887
2896
|
class: f(["w-form-el__error", l.formProps.validationColor])
|
|
2888
2897
|
}, [
|
|
2889
2898
|
c(e.$slots, "error-message", {
|
|
2890
2899
|
message: e.Validation.message
|
|
2891
2900
|
}, () => [
|
|
2892
|
-
|
|
2901
|
+
S(C(e.Validation.message), 1)
|
|
2893
2902
|
])
|
|
2894
2903
|
], 2)) : p("", !0)
|
|
2895
2904
|
]),
|
|
@@ -2897,7 +2906,7 @@ function wi(e, t, i, o, n, l) {
|
|
|
2897
2906
|
})
|
|
2898
2907
|
], 2);
|
|
2899
2908
|
}
|
|
2900
|
-
const
|
|
2909
|
+
const vi = {
|
|
2901
2910
|
name: "w-form-element",
|
|
2902
2911
|
props: {
|
|
2903
2912
|
valid: { required: !0 },
|
|
@@ -2971,9 +2980,9 @@ const ki = {
|
|
|
2971
2980
|
beforeUnmount() {
|
|
2972
2981
|
this.formUnregister && this.formUnregister(this);
|
|
2973
2982
|
}
|
|
2974
|
-
},
|
|
2975
|
-
function
|
|
2976
|
-
return
|
|
2983
|
+
}, Ci = /* @__PURE__ */ v(vi, [["render", ki]]);
|
|
2984
|
+
function Si(e, t, i, s, a, l) {
|
|
2985
|
+
return o(), g(T(i.tag), {
|
|
2977
2986
|
class: f(["w-grid", l.classes])
|
|
2978
2987
|
}, {
|
|
2979
2988
|
default: m(() => [
|
|
@@ -2982,7 +2991,7 @@ function Ci(e, t, i, o, n, l) {
|
|
|
2982
2991
|
_: 3
|
|
2983
2992
|
}, 8, ["class"]);
|
|
2984
2993
|
}
|
|
2985
|
-
const
|
|
2994
|
+
const Bi = {
|
|
2986
2995
|
name: "w-grid",
|
|
2987
2996
|
props: {
|
|
2988
2997
|
tag: { type: String, default: "div" },
|
|
@@ -3018,31 +3027,31 @@ const Si = {
|
|
|
3018
3027
|
},
|
|
3019
3028
|
classes() {
|
|
3020
3029
|
let e = null;
|
|
3021
|
-
typeof this.columns == "object" && (e = Object.entries(this.breakpointsColumns).reduce((i, [
|
|
3030
|
+
typeof this.columns == "object" && (e = Object.entries(this.breakpointsColumns).reduce((i, [s, a]) => (i[`${s}-columns${a}`] = !0, i), {}));
|
|
3022
3031
|
let t = null;
|
|
3023
|
-
return typeof this.gap == "object" && (t = Object.entries(this.breakpointsGap).reduce((i, [
|
|
3032
|
+
return typeof this.gap == "object" && (t = Object.entries(this.breakpointsGap).reduce((i, [s, a]) => (i[`${s}-gap${a}`] = !0, i), {})), {
|
|
3024
3033
|
...e || { [`columns${this.columns}`]: this.columns },
|
|
3025
3034
|
...t || { [`gap${this.gap}`]: this.gap }
|
|
3026
3035
|
};
|
|
3027
3036
|
}
|
|
3028
3037
|
}
|
|
3029
|
-
},
|
|
3030
|
-
function
|
|
3031
|
-
return
|
|
3032
|
-
class: l.classes,
|
|
3038
|
+
}, _i = /* @__PURE__ */ v(Bi, [["render", Si]]);
|
|
3039
|
+
function $i(e, t, i, s, a, l) {
|
|
3040
|
+
return o(), g(T(i.tag || "i"), {
|
|
3041
|
+
class: f(["w-icon", l.classes]),
|
|
3033
3042
|
role: "icon",
|
|
3034
3043
|
"aria-hidden": "true",
|
|
3035
|
-
style: l.readIcon() && l.styles
|
|
3036
|
-
}
|
|
3044
|
+
style: R(l.readIcon() && l.styles)
|
|
3045
|
+
}, {
|
|
3037
3046
|
default: m(() => [
|
|
3038
|
-
l.hasLigature ? (
|
|
3039
|
-
|
|
3047
|
+
l.hasLigature ? (o(), u(k, { key: 0 }, [
|
|
3048
|
+
S(C(e.icon), 1)
|
|
3040
3049
|
], 64)) : p("", !0)
|
|
3041
3050
|
]),
|
|
3042
3051
|
_: 1
|
|
3043
|
-
},
|
|
3052
|
+
}, 8, ["class", "style"]);
|
|
3044
3053
|
}
|
|
3045
|
-
const
|
|
3054
|
+
const Vi = {
|
|
3046
3055
|
name: "w-icon",
|
|
3047
3056
|
props: {
|
|
3048
3057
|
tag: { type: String, default: "i" },
|
|
@@ -3111,39 +3120,39 @@ const $i = {
|
|
|
3111
3120
|
return this.fontName = t, this.icon = i, !0;
|
|
3112
3121
|
}
|
|
3113
3122
|
}
|
|
3114
|
-
},
|
|
3123
|
+
}, Ii = /* @__PURE__ */ v(Vi, [["render", $i]]), Ti = {
|
|
3115
3124
|
key: 0,
|
|
3116
3125
|
class: "w-image__loader"
|
|
3117
3126
|
};
|
|
3118
|
-
function
|
|
3119
|
-
const
|
|
3120
|
-
return
|
|
3127
|
+
function Li(e, t, i, s, a, l) {
|
|
3128
|
+
const n = $("w-progress");
|
|
3129
|
+
return o(), g(T(l.wrapperTag), {
|
|
3121
3130
|
class: f(["w-image-wrap", l.wrapperClasses]),
|
|
3122
3131
|
style: R(l.wrapperStyles)
|
|
3123
3132
|
}, {
|
|
3124
3133
|
default: m(() => [
|
|
3125
|
-
|
|
3134
|
+
I(x, {
|
|
3126
3135
|
name: i.transition,
|
|
3127
3136
|
appear: ""
|
|
3128
3137
|
}, {
|
|
3129
3138
|
default: m(() => [
|
|
3130
|
-
|
|
3139
|
+
a.loaded ? (o(), g(T(i.tag), {
|
|
3131
3140
|
key: 0,
|
|
3132
3141
|
class: f(["w-image", l.imageClasses]),
|
|
3133
3142
|
style: R(l.imageStyles),
|
|
3134
|
-
src: i.tag === "img" ?
|
|
3143
|
+
src: i.tag === "img" ? a.imgSrc : null
|
|
3135
3144
|
}, null, 8, ["class", "style", "src"])) : p("", !0)
|
|
3136
3145
|
]),
|
|
3137
3146
|
_: 1
|
|
3138
3147
|
}, 8, ["name"]),
|
|
3139
|
-
!i.noSpinner &&
|
|
3140
|
-
e.$slots.loading ? c(e.$slots, "loading", { key: 0 }) : (
|
|
3148
|
+
!i.noSpinner && a.loading ? (o(), u("div", Ti, [
|
|
3149
|
+
e.$slots.loading ? c(e.$slots, "loading", { key: 0 }) : (o(), g(n, B({
|
|
3141
3150
|
key: 1,
|
|
3142
3151
|
circle: "",
|
|
3143
3152
|
indeterminate: ""
|
|
3144
3153
|
}, i.spinnerColor ? { color: i.spinnerColor } : {}), null, 16))
|
|
3145
3154
|
])) : p("", !0),
|
|
3146
|
-
e.$slots.default ? (
|
|
3155
|
+
e.$slots.default ? (o(), g(T(l.wrapperTag), {
|
|
3147
3156
|
key: 1,
|
|
3148
3157
|
class: f(["w-image__content", i.contentClass])
|
|
3149
3158
|
}, {
|
|
@@ -3156,7 +3165,7 @@ function Ti(e, t, i, o, n, l) {
|
|
|
3156
3165
|
_: 3
|
|
3157
3166
|
}, 8, ["class", "style"]);
|
|
3158
3167
|
}
|
|
3159
|
-
const
|
|
3168
|
+
const Ri = {
|
|
3160
3169
|
name: "w-image",
|
|
3161
3170
|
props: {
|
|
3162
3171
|
tag: { type: String, default: "span" },
|
|
@@ -3224,8 +3233,8 @@ const Li = {
|
|
|
3224
3233
|
if (!this.loading)
|
|
3225
3234
|
return this.loading = !0, this.loaded = !1, this.$emit("loading", e ? this.fallback : this.src), new Promise((t) => {
|
|
3226
3235
|
const i = new Image();
|
|
3227
|
-
i.onload = (
|
|
3228
|
-
this.$emit("error",
|
|
3236
|
+
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) => {
|
|
3237
|
+
this.$emit("error", s), this.fallback && !e ? (this.loading = !1, this.loadImage(!0)) : (this.loading = !1, this.loaded = !1);
|
|
3229
3238
|
}, i.src = e ? this.fallback : this.src;
|
|
3230
3239
|
});
|
|
3231
3240
|
}
|
|
@@ -3252,38 +3261,38 @@ const Li = {
|
|
|
3252
3261
|
this.imgHeight = e;
|
|
3253
3262
|
}
|
|
3254
3263
|
}
|
|
3255
|
-
},
|
|
3264
|
+
}, Pi = /* @__PURE__ */ v(Ri, [["render", Li]]), xi = ["name"], Oi = ["for"], zi = ["id", "type", "name", "placeholder", "step", "min", "max", "minlength", "maxlength", "readonly", "aria-readonly", "disabled", "required", "tabindex"], Mi = ["id", "name", "multiple", "disabled", "data-progress"], Ei = {
|
|
3256
3265
|
class: "w-input__no-file",
|
|
3257
3266
|
key: "no-file"
|
|
3258
|
-
},
|
|
3259
|
-
function
|
|
3260
|
-
const
|
|
3261
|
-
return
|
|
3267
|
+
}, Wi = ["for"], Ai = ["src"], Ki = ["for"];
|
|
3268
|
+
function Ni(e, t, i, s, a, l) {
|
|
3269
|
+
const n = $("w-icon"), r = $("w-progress");
|
|
3270
|
+
return o(), g(T(e.formRegister ? "w-form-element" : "div"), B({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: a.inputValue, disabled: e.isDisabled, readonly: e.isReadonly, isFocused: a.isFocused }, {
|
|
3262
3271
|
valid: e.valid,
|
|
3263
3272
|
"onUpdate:valid": t[10] || (t[10] = (d) => e.valid = d),
|
|
3264
3273
|
onReset: t[11] || (t[11] = (d) => {
|
|
3265
|
-
e.$emit("update:modelValue",
|
|
3274
|
+
e.$emit("update:modelValue", a.inputValue = ""), e.$emit("input", "");
|
|
3266
3275
|
}),
|
|
3267
3276
|
wrap: l.hasLabel && i.labelPosition !== "inside",
|
|
3268
3277
|
class: l.classes
|
|
3269
3278
|
}), {
|
|
3270
3279
|
default: m(() => [
|
|
3271
|
-
i.type === "hidden" ?
|
|
3280
|
+
i.type === "hidden" ? A((o(), u("input", {
|
|
3272
3281
|
key: 0,
|
|
3273
3282
|
type: "hidden",
|
|
3274
3283
|
name: e.name || null,
|
|
3275
|
-
"onUpdate:modelValue": t[0] || (t[0] = (d) =>
|
|
3276
|
-
}, null, 8,
|
|
3277
|
-
[be,
|
|
3278
|
-
]) : (
|
|
3279
|
-
i.labelPosition === "left" ? (
|
|
3280
|
-
e.$slots.default || i.label ? (
|
|
3284
|
+
"onUpdate:modelValue": t[0] || (t[0] = (d) => a.inputValue = d)
|
|
3285
|
+
}, null, 8, xi)), [
|
|
3286
|
+
[be, a.inputValue]
|
|
3287
|
+
]) : (o(), u(k, { key: 1 }, [
|
|
3288
|
+
i.labelPosition === "left" ? (o(), u(k, { key: 0 }, [
|
|
3289
|
+
e.$slots.default || i.label ? (o(), u("label", {
|
|
3281
3290
|
key: 0,
|
|
3282
3291
|
class: f(["w-input__label w-input__label--left w-form-el-shakable", e.labelClasses]),
|
|
3283
3292
|
for: `w-input--${e._.uid}`
|
|
3284
3293
|
}, [
|
|
3285
3294
|
c(e.$slots, "default", {}, () => [
|
|
3286
|
-
|
|
3295
|
+
S(C(i.label), 1)
|
|
3287
3296
|
])
|
|
3288
3297
|
], 10, Oi)) : p("", !0)
|
|
3289
3298
|
], 64)) : p("", !0),
|
|
@@ -3293,7 +3302,7 @@ function Ki(e, t, i, o, n, l) {
|
|
|
3293
3302
|
c(e.$slots, "icon-left", {
|
|
3294
3303
|
inputId: `w-input--${e._.uid}`
|
|
3295
3304
|
}, () => [
|
|
3296
|
-
i.innerIconLeft ? (
|
|
3305
|
+
i.innerIconLeft ? (o(), g(n, {
|
|
3297
3306
|
key: 0,
|
|
3298
3307
|
class: "w-input__icon w-input__icon--inner-left",
|
|
3299
3308
|
tag: "label",
|
|
@@ -3301,17 +3310,17 @@ function Ki(e, t, i, o, n, l) {
|
|
|
3301
3310
|
onClick: t[1] || (t[1] = (d) => e.$emit("click:inner-icon-left", d))
|
|
3302
3311
|
}, {
|
|
3303
3312
|
default: m(() => [
|
|
3304
|
-
|
|
3313
|
+
S(C(i.innerIconLeft), 1)
|
|
3305
3314
|
]),
|
|
3306
3315
|
_: 1
|
|
3307
3316
|
}, 8, ["for"])) : p("", !0)
|
|
3308
3317
|
]),
|
|
3309
|
-
i.type !== "file" ?
|
|
3318
|
+
i.type !== "file" ? A((o(), u("input", B({
|
|
3310
3319
|
key: 0,
|
|
3311
3320
|
class: "w-input__input",
|
|
3312
3321
|
ref: "input",
|
|
3313
|
-
"onUpdate:modelValue": t[2] || (t[2] = (d) =>
|
|
3314
|
-
},
|
|
3322
|
+
"onUpdate:modelValue": t[2] || (t[2] = (d) => a.inputValue = d)
|
|
3323
|
+
}, H(l.listeners, !0), {
|
|
3315
3324
|
onInput: t[3] || (t[3] = (...d) => l.onInput && l.onInput(...d)),
|
|
3316
3325
|
onFocus: t[4] || (t[4] = (...d) => l.onFocus && l.onFocus(...d)),
|
|
3317
3326
|
onBlur: t[5] || (t[5] = (...d) => l.onBlur && l.onBlur(...d)),
|
|
@@ -3329,10 +3338,10 @@ function Ki(e, t, i, o, n, l) {
|
|
|
3329
3338
|
disabled: e.isDisabled || null,
|
|
3330
3339
|
required: e.required || null,
|
|
3331
3340
|
tabindex: e.tabindex || null
|
|
3332
|
-
}, l.attrs), null, 16,
|
|
3333
|
-
[$e,
|
|
3334
|
-
]) : (
|
|
3335
|
-
y("input",
|
|
3341
|
+
}, l.attrs), null, 16, zi)), [
|
|
3342
|
+
[$e, a.inputValue]
|
|
3343
|
+
]) : (o(), u(k, { key: 1 }, [
|
|
3344
|
+
y("input", B({
|
|
3336
3345
|
ref: "input",
|
|
3337
3346
|
id: `w-input--${e._.uid}`,
|
|
3338
3347
|
type: "file",
|
|
@@ -3345,49 +3354,49 @@ function Ki(e, t, i, o, n, l) {
|
|
|
3345
3354
|
disabled: e.isDisabled || null,
|
|
3346
3355
|
"data-progress": l.overallFilesProgress
|
|
3347
3356
|
/* Needed to emit the overallProgress. */
|
|
3348
|
-
}), null, 16,
|
|
3349
|
-
|
|
3357
|
+
}), null, 16, Mi),
|
|
3358
|
+
I(oe, {
|
|
3350
3359
|
class: "w-input__input w-input__input--file",
|
|
3351
3360
|
tag: "label",
|
|
3352
3361
|
name: "fade",
|
|
3353
3362
|
for: `w-input--${e._.uid}`
|
|
3354
3363
|
}, {
|
|
3355
3364
|
default: m(() => [
|
|
3356
|
-
!
|
|
3365
|
+
!a.inputFiles.length && a.isFocused ? (o(), u("span", Ei, [
|
|
3357
3366
|
c(e.$slots, "no-file", {}, () => [
|
|
3358
|
-
e.$slots["no-file"] === void 0 ? (
|
|
3359
|
-
|
|
3367
|
+
e.$slots["no-file"] === void 0 ? (o(), u(k, { key: 0 }, [
|
|
3368
|
+
S("No file")
|
|
3360
3369
|
], 64)) : p("", !0)
|
|
3361
3370
|
])
|
|
3362
3371
|
])) : p("", !0),
|
|
3363
|
-
(
|
|
3372
|
+
(o(!0), u(k, null, L(a.inputFiles, (d, h) => (o(), u("span", {
|
|
3364
3373
|
key: d.lastModified
|
|
3365
3374
|
}, [
|
|
3366
|
-
|
|
3367
|
-
(
|
|
3375
|
+
S(C(h ? ", " : ""), 1),
|
|
3376
|
+
(o(), u("span", {
|
|
3368
3377
|
class: "filename",
|
|
3369
3378
|
key: `${h}b`
|
|
3370
3379
|
}, C(d.base), 1)),
|
|
3371
|
-
|
|
3380
|
+
S(C(d.extension ? `.${d.extension}` : ""), 1)
|
|
3372
3381
|
]))), 128))
|
|
3373
3382
|
]),
|
|
3374
3383
|
_: 3
|
|
3375
3384
|
}, 8, ["for"])
|
|
3376
3385
|
], 64)),
|
|
3377
|
-
i.labelPosition === "inside" && l.showLabelInside ? (
|
|
3378
|
-
e.$slots.default || i.label ? (
|
|
3386
|
+
i.labelPosition === "inside" && l.showLabelInside ? (o(), u(k, { key: 2 }, [
|
|
3387
|
+
e.$slots.default || i.label ? (o(), u("label", {
|
|
3379
3388
|
key: 0,
|
|
3380
3389
|
class: f(["w-input__label w-input__label--inside w-form-el-shakable", e.labelClasses])
|
|
3381
3390
|
}, [
|
|
3382
3391
|
c(e.$slots, "default", {}, () => [
|
|
3383
|
-
|
|
3392
|
+
S(C(i.label), 1)
|
|
3384
3393
|
])
|
|
3385
3394
|
], 2)) : p("", !0)
|
|
3386
3395
|
], 64)) : p("", !0),
|
|
3387
3396
|
c(e.$slots, "icon-right", {
|
|
3388
3397
|
inputId: `w-input--${e._.uid}`
|
|
3389
3398
|
}, () => [
|
|
3390
|
-
i.innerIconRight ? (
|
|
3399
|
+
i.innerIconRight ? (o(), g(n, {
|
|
3391
3400
|
key: 0,
|
|
3392
3401
|
class: "w-input__icon w-input__icon--inner-right",
|
|
3393
3402
|
tag: "label",
|
|
@@ -3395,12 +3404,12 @@ function Ki(e, t, i, o, n, l) {
|
|
|
3395
3404
|
onClick: t[9] || (t[9] = (d) => e.$emit("click:inner-icon-right", d))
|
|
3396
3405
|
}, {
|
|
3397
3406
|
default: m(() => [
|
|
3398
|
-
|
|
3407
|
+
S(C(i.innerIconRight), 1)
|
|
3399
3408
|
]),
|
|
3400
3409
|
_: 1
|
|
3401
3410
|
}, 8, ["for"])) : p("", !0)
|
|
3402
3411
|
]),
|
|
3403
|
-
l.hasLoading || i.showProgress && (l.uploadInProgress || l.uploadComplete) ? (
|
|
3412
|
+
l.hasLoading || i.showProgress && (l.uploadInProgress || l.uploadComplete) ? (o(), g(r, {
|
|
3404
3413
|
key: 3,
|
|
3405
3414
|
class: "fill-width",
|
|
3406
3415
|
size: "2",
|
|
@@ -3408,45 +3417,45 @@ function Ki(e, t, i, o, n, l) {
|
|
|
3408
3417
|
"model-value": i.showProgress ? (l.uploadInProgress || l.uploadComplete) && l.overallFilesProgress : l.loadingValue
|
|
3409
3418
|
}, null, 8, ["color", "model-value"])) : p("", !0)
|
|
3410
3419
|
], 2),
|
|
3411
|
-
i.type === "file" && i.preview &&
|
|
3420
|
+
i.type === "file" && i.preview && a.inputFiles.length ? (o(), u("label", {
|
|
3412
3421
|
key: 1,
|
|
3413
3422
|
class: "d-flex",
|
|
3414
3423
|
for: `w-input--${e._.uid}`
|
|
3415
3424
|
}, [
|
|
3416
|
-
(
|
|
3417
|
-
d.progress < 100 ? (
|
|
3425
|
+
(o(!0), u(k, null, L(a.inputFiles, (d, h) => (o(), u(k, null, [
|
|
3426
|
+
d.progress < 100 ? (o(), u("i", {
|
|
3418
3427
|
class: "w-icon wi-spinner w-icon--spin size--sm w-input__file-preview primary",
|
|
3419
3428
|
key: `${h}a`
|
|
3420
|
-
})) : d.preview ? (
|
|
3429
|
+
})) : d.preview ? (o(), u("img", {
|
|
3421
3430
|
class: "w-input__file-preview",
|
|
3422
3431
|
key: `${h}b`,
|
|
3423
3432
|
src: d.preview,
|
|
3424
3433
|
alt: ""
|
|
3425
|
-
}, null, 8,
|
|
3434
|
+
}, null, 8, Ai)) : (o(), u("i", {
|
|
3426
3435
|
class: f(["w-icon w-input__file-preview primary size--md", i.preview && typeof i.preview == "string" ? i.preview : "wi-file"]),
|
|
3427
3436
|
key: `${h}c`
|
|
3428
3437
|
}, null, 2))
|
|
3429
3438
|
], 64))), 256))
|
|
3430
|
-
], 8,
|
|
3431
|
-
i.labelPosition === "right" ? (
|
|
3432
|
-
e.$slots.default || i.label ? (
|
|
3439
|
+
], 8, Wi)) : p("", !0),
|
|
3440
|
+
i.labelPosition === "right" ? (o(), u(k, { key: 2 }, [
|
|
3441
|
+
e.$slots.default || i.label ? (o(), u("label", {
|
|
3433
3442
|
key: 0,
|
|
3434
3443
|
class: f(["w-input__label w-input__label--right w-form-el-shakable", e.labelClasses]),
|
|
3435
3444
|
for: `w-input--${e._.uid}`
|
|
3436
3445
|
}, [
|
|
3437
3446
|
c(e.$slots, "default", {}, () => [
|
|
3438
|
-
|
|
3447
|
+
S(C(i.label), 1)
|
|
3439
3448
|
])
|
|
3440
|
-
], 10,
|
|
3449
|
+
], 10, Ki)) : p("", !0)
|
|
3441
3450
|
], 64)) : p("", !0)
|
|
3442
3451
|
], 64))
|
|
3443
3452
|
]),
|
|
3444
3453
|
_: 3
|
|
3445
3454
|
}, 16, ["valid", "wrap", "class"]);
|
|
3446
3455
|
}
|
|
3447
|
-
const
|
|
3456
|
+
const Di = {
|
|
3448
3457
|
name: "w-input",
|
|
3449
|
-
mixins: [
|
|
3458
|
+
mixins: [M],
|
|
3450
3459
|
props: {
|
|
3451
3460
|
modelValue: { default: "" },
|
|
3452
3461
|
type: { type: String, default: "text" },
|
|
@@ -3507,8 +3516,8 @@ const Ni = {
|
|
|
3507
3516
|
return this.type === "file" && !this.inputFiles.length && (t.value = null), t;
|
|
3508
3517
|
},
|
|
3509
3518
|
listeners() {
|
|
3510
|
-
const { input: e, focus: t, blur: i, ...
|
|
3511
|
-
return
|
|
3519
|
+
const { input: e, focus: t, blur: i, class: s, style: a, ...l } = this.$attrs;
|
|
3520
|
+
return l;
|
|
3512
3521
|
},
|
|
3513
3522
|
hasValue() {
|
|
3514
3523
|
switch (this.type) {
|
|
@@ -3537,7 +3546,7 @@ const Ni = {
|
|
|
3537
3546
|
return !this.staticLabel || !this.hasValue && !this.placeholder;
|
|
3538
3547
|
},
|
|
3539
3548
|
overallFilesProgress() {
|
|
3540
|
-
const t = +this.inputFiles.reduce((i,
|
|
3549
|
+
const t = +this.inputFiles.reduce((i, s) => i + s.progress, 0) / this.inputFiles.length;
|
|
3541
3550
|
return this.$emit("update:overallProgress", this.inputFiles.length ? t : 0), t;
|
|
3542
3551
|
},
|
|
3543
3552
|
uploadInProgress() {
|
|
@@ -3593,10 +3602,10 @@ const Ni = {
|
|
|
3593
3602
|
// For file input.
|
|
3594
3603
|
onFileChange(e) {
|
|
3595
3604
|
this.inputFiles = [...e.target.files].map((i) => {
|
|
3596
|
-
const [,
|
|
3605
|
+
const [, s = "", a = "", l = ""] = i.name.match(/^(.*?)\.([^.]*)$|(.*)/), n = J({
|
|
3597
3606
|
name: i.name,
|
|
3598
|
-
base:
|
|
3599
|
-
extension:
|
|
3607
|
+
base: s || l,
|
|
3608
|
+
extension: a,
|
|
3600
3609
|
type: i.type,
|
|
3601
3610
|
size: i.size,
|
|
3602
3611
|
lastModified: i.lastModified,
|
|
@@ -3604,15 +3613,15 @@ const Ni = {
|
|
|
3604
3613
|
progress: 0,
|
|
3605
3614
|
file: i
|
|
3606
3615
|
});
|
|
3607
|
-
return this.readFile(i,
|
|
3616
|
+
return this.readFile(i, n), n;
|
|
3608
3617
|
});
|
|
3609
3618
|
const t = this.multiple ? this.inputFiles : this.inputFiles[0];
|
|
3610
3619
|
this.$emit("update:modelValue", t), this.$emit("input", t);
|
|
3611
3620
|
},
|
|
3612
3621
|
// For file input.
|
|
3613
3622
|
readFile(e, t) {
|
|
3614
|
-
const i = new FileReader(),
|
|
3615
|
-
this.preview && !
|
|
3623
|
+
const i = new FileReader(), s = typeof this.preview == "string", a = e.type && e.type.startsWith("image/");
|
|
3624
|
+
this.preview && !s && a ? i.addEventListener("load", (l) => {
|
|
3616
3625
|
t.preview = l.target.result;
|
|
3617
3626
|
}) : delete t.preview, i.addEventListener("progress", (l) => {
|
|
3618
3627
|
l.loaded && l.total && (t.progress = l.loaded * 100 / l.total);
|
|
@@ -3629,28 +3638,29 @@ const Ni = {
|
|
|
3629
3638
|
this.inputValue = e, !e && e !== 0 && (this.isAutofilled = !1, this.inputFiles = []);
|
|
3630
3639
|
}
|
|
3631
3640
|
}
|
|
3632
|
-
},
|
|
3633
|
-
function
|
|
3634
|
-
const
|
|
3635
|
-
return
|
|
3641
|
+
}, Hi = /* @__PURE__ */ v(Di, [["render", Ni]]);
|
|
3642
|
+
function Fi(e, t, i, s, a, l) {
|
|
3643
|
+
const n = $("w-icon"), r = $("w-list", !0);
|
|
3644
|
+
return o(), u("ul", {
|
|
3636
3645
|
class: f(["w-list", l.classes])
|
|
3637
3646
|
}, [
|
|
3638
|
-
(
|
|
3647
|
+
(o(!0), u(k, null, L(e.listItems, (d, h) => (o(), u("li", {
|
|
3639
3648
|
class: f(["w-list__item", { "w-list__item--parent": (d.children || []).length }]),
|
|
3640
3649
|
key: h
|
|
3641
3650
|
}, [
|
|
3642
|
-
i.icon ? (
|
|
3651
|
+
i.icon ? (o(), g(n, {
|
|
3643
3652
|
key: 0,
|
|
3644
3653
|
class: "w-list__item-bullet"
|
|
3645
3654
|
}, {
|
|
3646
3655
|
default: m(() => [
|
|
3647
|
-
|
|
3656
|
+
S(C(i.icon), 1)
|
|
3648
3657
|
]),
|
|
3649
3658
|
_: 1
|
|
3650
3659
|
})) : p("", !0),
|
|
3651
|
-
e.$slots[`item.${h + 1}`] || e.$slots.item || e.$slots.default ? (
|
|
3660
|
+
e.$slots[`item.${h + 1}`] || e.$slots.item || e.$slots.default ? (o(), g(T(i.checklist ? "w-checkbox" : i.nav && !d.disabled && d.route ? l.hasRouter ? "router-link" : "a" : "div"), B({
|
|
3652
3661
|
key: 1,
|
|
3653
|
-
class: "w-list__item-label"
|
|
3662
|
+
class: "w-list__item-label",
|
|
3663
|
+
ref_for: !0
|
|
3654
3664
|
}, l.liLabelProps(d, h, d._selected)), {
|
|
3655
3665
|
default: m(() => [
|
|
3656
3666
|
e.$slots[`item.${h + 1}`] ? c(e.$slots, `item.${h + 1}`, {
|
|
@@ -3669,41 +3679,45 @@ function Hi(e, t, i, o, n, l) {
|
|
|
3669
3679
|
index: h + 1,
|
|
3670
3680
|
selected: d._selected
|
|
3671
3681
|
}, () => [
|
|
3672
|
-
|
|
3682
|
+
S(C(d._label), 1)
|
|
3673
3683
|
])
|
|
3674
3684
|
]),
|
|
3675
3685
|
_: 2
|
|
3676
|
-
}, 1040)) : (
|
|
3686
|
+
}, 1040)) : (o(), g(T(i.checklist ? "w-checkbox" : i.nav && !d.disabled && d.route ? l.hasRouter ? "router-link" : "a" : "div"), B({
|
|
3677
3687
|
key: 2,
|
|
3678
|
-
class: "w-list__item-label"
|
|
3688
|
+
class: "w-list__item-label",
|
|
3689
|
+
ref_for: !0
|
|
3679
3690
|
}, l.liLabelProps(d, h, d._selected)), null, 16)),
|
|
3680
|
-
(d.children || []).length ? (
|
|
3691
|
+
(d.children || []).length ? (o(), g(r, B({
|
|
3692
|
+
key: 3,
|
|
3693
|
+
ref_for: !0
|
|
3694
|
+
}, e.$props, {
|
|
3681
3695
|
items: d.children,
|
|
3682
3696
|
depth: i.depth + 1,
|
|
3683
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
3684
|
-
onInput: t[1] || (t[1] = (
|
|
3685
|
-
onItemClick: t[2] || (t[2] = (
|
|
3686
|
-
onItemSelect: t[3] || (t[3] = (
|
|
3697
|
+
"onUpdate:modelValue": t[0] || (t[0] = (w) => e.$emit("update:modelValue", w)),
|
|
3698
|
+
onInput: t[1] || (t[1] = (w) => e.$emit("input", w)),
|
|
3699
|
+
onItemClick: t[2] || (t[2] = (w) => e.$emit("item-click", w)),
|
|
3700
|
+
onItemSelect: t[3] || (t[3] = (w) => e.$emit("item-select", w))
|
|
3687
3701
|
}), Q({ _: 2 }, [
|
|
3688
3702
|
e.$slots.item ? {
|
|
3689
3703
|
name: "item",
|
|
3690
|
-
fn: m(({ item:
|
|
3704
|
+
fn: m(({ item: w, index: _, selected: b }) => [
|
|
3691
3705
|
c(e.$slots, "item", {
|
|
3692
|
-
item: l.cleanLi(
|
|
3706
|
+
item: l.cleanLi(w),
|
|
3693
3707
|
index: _,
|
|
3694
|
-
selected:
|
|
3708
|
+
selected: b
|
|
3695
3709
|
})
|
|
3696
3710
|
]),
|
|
3697
3711
|
key: "0"
|
|
3698
3712
|
} : {
|
|
3699
3713
|
name: "default",
|
|
3700
|
-
fn: m(({ item:
|
|
3714
|
+
fn: m(({ item: w, index: _, selected: b }) => [
|
|
3701
3715
|
c(e.$slots, "default", {
|
|
3702
|
-
item: l.cleanLi(
|
|
3716
|
+
item: l.cleanLi(w),
|
|
3703
3717
|
index: _,
|
|
3704
|
-
selected:
|
|
3718
|
+
selected: b
|
|
3705
3719
|
}, () => [
|
|
3706
|
-
|
|
3720
|
+
S(C(w[i.itemLabelKey]), 1)
|
|
3707
3721
|
])
|
|
3708
3722
|
]),
|
|
3709
3723
|
key: "1"
|
|
@@ -3712,7 +3726,7 @@ function Hi(e, t, i, o, n, l) {
|
|
|
3712
3726
|
], 2))), 128))
|
|
3713
3727
|
], 2);
|
|
3714
3728
|
}
|
|
3715
|
-
const
|
|
3729
|
+
const ji = {
|
|
3716
3730
|
name: "w-list",
|
|
3717
3731
|
props: {
|
|
3718
3732
|
items: { type: [Array, Number], required: !0 },
|
|
@@ -3818,14 +3832,14 @@ const Fi = {
|
|
|
3818
3832
|
};
|
|
3819
3833
|
},
|
|
3820
3834
|
liLabelProps(e, t, i) {
|
|
3821
|
-
const
|
|
3835
|
+
const s = this.$slots[`item.${t + 1}`] || this.$slots.item, a = () => {
|
|
3822
3836
|
if (!e.disabled) {
|
|
3823
3837
|
const d = this.cleanLi(e);
|
|
3824
3838
|
this.$emit("item-click", d), this.$emit("item-select", d);
|
|
3825
3839
|
}
|
|
3826
3840
|
}, l = this.isSelectable && ((d) => {
|
|
3827
3841
|
d.stopPropagation(), !e.disabled && this.selectItem(e);
|
|
3828
|
-
}),
|
|
3842
|
+
}), n = this.isSelectable && ((d) => {
|
|
3829
3843
|
!e.disabled && d.keyCode === 13 ? (this.selectItem(e), this.$emit("keydown:enter"), this.$emit("item-select", this.cleanLi(e))) : d.keyCode === 27 ? this.$emit("keydown:escape") : this.arrowsNavigation && [38, 40].includes(d.keyCode) && (d.preventDefault(), d.keyCode === 38 && this.focusPrevNextItem(e._index, !1), d.keyCode === 40 && this.focusPrevNextItem(e._index, !0));
|
|
3830
3844
|
}), r = {
|
|
3831
3845
|
class: this.liLabelClasses(e),
|
|
@@ -3834,12 +3848,12 @@ const Fi = {
|
|
|
3834
3848
|
id: this.listId ? `${this.listId}_item-${t + 1}` : null,
|
|
3835
3849
|
role: "option"
|
|
3836
3850
|
};
|
|
3837
|
-
return this.checklist ? (r.modelValue = e._selected, r.color = e[this.itemColorKey] || this.color, r.round = this.roundCheckboxes, r.disabled = e.disabled,
|
|
3851
|
+
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) => {
|
|
3838
3852
|
const h = d.target.querySelector('input[type="checkbox"]');
|
|
3839
|
-
h && (h.focus(), h.click()),
|
|
3840
|
-
}) : this.nav ? (!e.disabled && e[this.itemRouteKey] && (r.onKeydown =
|
|
3841
|
-
d.preventDefault(), this.$router.push(e[this.itemRouteKey]),
|
|
3842
|
-
}) : (r.href = e[this.itemRouteKey], r.onClick =
|
|
3853
|
+
h && (h.focus(), h.click()), a();
|
|
3854
|
+
}) : this.nav ? (!e.disabled && e[this.itemRouteKey] && (r.onKeydown = n, r.onMousedown = l, this.$router ? (r.to = e[this.itemRouteKey], r.onClick = (d) => {
|
|
3855
|
+
d.preventDefault(), this.$router.push(e[this.itemRouteKey]), a();
|
|
3856
|
+
}) : (r.href = e[this.itemRouteKey], r.onClick = a)), s || (r.innerHTML = e._label)) : (this.isSelectable && (e.disabled || (r.tabindex = 0), r.onClick = a, r.onKeydown = n, r.onMousedown = l), s || (r.innerHTML = e._label)), r;
|
|
3843
3857
|
},
|
|
3844
3858
|
// Convert the received items selection to array if it is a unique value.
|
|
3845
3859
|
// Also accept objects if returnObject is true and convert to the object's value.
|
|
@@ -3853,7 +3867,7 @@ const Fi = {
|
|
|
3853
3867
|
const e = this.selectedItems.map((i) => {
|
|
3854
3868
|
if (!this.returnObject)
|
|
3855
3869
|
return i._value;
|
|
3856
|
-
const { _value:
|
|
3870
|
+
const { _value: s, _selected: a, ...l } = i;
|
|
3857
3871
|
return l;
|
|
3858
3872
|
}), t = this.isMultipleSelect ? e : e[0] !== void 0 ? e[0] : null;
|
|
3859
3873
|
this.$emit("update:modelValue", t), this.$emit("input", t);
|
|
@@ -3864,8 +3878,8 @@ const Fi = {
|
|
|
3864
3878
|
e === void 0 && (e = this.enabledItemsIndexes[i]), this.$el.querySelector(`#${this.listId}_item-${e + 1}`).focus();
|
|
3865
3879
|
},
|
|
3866
3880
|
cleanLi(e) {
|
|
3867
|
-
const { _index: t, _value: i, _label:
|
|
3868
|
-
return
|
|
3881
|
+
const { _index: t, _value: i, _label: s, _selected: a, _focused: l, ...n } = e;
|
|
3882
|
+
return n;
|
|
3869
3883
|
},
|
|
3870
3884
|
refreshListItems() {
|
|
3871
3885
|
const e = typeof this.items == "number" ? Array(this.items).fill({}) : this.items || [];
|
|
@@ -3884,7 +3898,7 @@ const Fi = {
|
|
|
3884
3898
|
this.isMultipleSelect || this.listItems.forEach((i) => i._selected = !1);
|
|
3885
3899
|
const t = this.checkSelection(e);
|
|
3886
3900
|
this.listItems.forEach((i) => {
|
|
3887
|
-
i._selected = t.find((
|
|
3901
|
+
i._selected = t.find((s) => i._value === s) !== void 0;
|
|
3888
3902
|
});
|
|
3889
3903
|
}
|
|
3890
3904
|
},
|
|
@@ -3907,7 +3921,7 @@ const Fi = {
|
|
|
3907
3921
|
}
|
|
3908
3922
|
}
|
|
3909
3923
|
}
|
|
3910
|
-
},
|
|
3924
|
+
}, Ui = /* @__PURE__ */ v(ji, [["render", Fi]]), we = {
|
|
3911
3925
|
props: {
|
|
3912
3926
|
// Position.
|
|
3913
3927
|
appendTo: { type: [String, Boolean, Object] },
|
|
@@ -3993,41 +4007,41 @@ const Fi = {
|
|
|
3993
4007
|
},
|
|
3994
4008
|
// ! \ This function uses the DOM - NO SSR (only trigger from beforeMount and later).
|
|
3995
4009
|
getActivatorCoordinates() {
|
|
3996
|
-
const { top: e, left: t, width: i, height:
|
|
3997
|
-
let
|
|
4010
|
+
const { top: e, left: t, width: i, height: s } = this.activatorEl.getBoundingClientRect();
|
|
4011
|
+
let a = { top: e, left: t, width: i, height: s };
|
|
3998
4012
|
if (!this.fixed) {
|
|
3999
|
-
const { top: l, left:
|
|
4000
|
-
|
|
4001
|
-
...
|
|
4013
|
+
const { top: l, left: n } = this.detachableParentEl.getBoundingClientRect(), r = window.getComputedStyle(this.detachableParentEl, null);
|
|
4014
|
+
a = {
|
|
4015
|
+
...a,
|
|
4002
4016
|
top: e - l + this.detachableParentEl.scrollTop - parseInt(r.getPropertyValue("border-top-width")),
|
|
4003
|
-
left: t -
|
|
4017
|
+
left: t - n + this.detachableParentEl.scrollLeft - parseInt(r.getPropertyValue("border-left-width"))
|
|
4004
4018
|
};
|
|
4005
4019
|
}
|
|
4006
|
-
return
|
|
4020
|
+
return a;
|
|
4007
4021
|
},
|
|
4008
4022
|
// ! \ This function uses the DOM - NO SSR (only trigger from beforeMount and later).
|
|
4009
4023
|
computeDetachableCoords() {
|
|
4010
|
-
let { top: e, left: t, width: i, height:
|
|
4024
|
+
let { top: e, left: t, width: i, height: s } = this.getActivatorCoordinates();
|
|
4011
4025
|
if (!this.detachableEl)
|
|
4012
4026
|
return;
|
|
4013
4027
|
this.detachableEl.style.visibility = "hidden", this.detachableEl.style.display = "flex";
|
|
4014
|
-
const
|
|
4028
|
+
const a = window.getComputedStyle(this.detachableEl, null);
|
|
4015
4029
|
switch (this.position) {
|
|
4016
4030
|
case "top": {
|
|
4017
|
-
e -= this.detachableEl.offsetHeight, this.alignRight ? t += i - this.detachableEl.offsetWidth + parseInt(
|
|
4031
|
+
e -= this.detachableEl.offsetHeight, this.alignRight ? t += i - this.detachableEl.offsetWidth + parseInt(a.getPropertyValue("border-right-width")) : this.alignLeft || (t += (i - this.detachableEl.offsetWidth) / 2);
|
|
4018
4032
|
break;
|
|
4019
4033
|
}
|
|
4020
4034
|
case "bottom": {
|
|
4021
|
-
e +=
|
|
4035
|
+
e += s, this.alignRight ? t += i - this.detachableEl.offsetWidth + parseInt(a.getPropertyValue("border-right-width")) : this.alignLeft || (t += (i - this.detachableEl.offsetWidth) / 2);
|
|
4022
4036
|
break;
|
|
4023
4037
|
}
|
|
4024
4038
|
case "left": {
|
|
4025
|
-
t -= this.detachableEl.offsetWidth, this.alignBottom ? e +=
|
|
4039
|
+
t -= this.detachableEl.offsetWidth, this.alignBottom ? e += s - this.detachableEl.offsetHeight : this.alignTop || (e += (s - this.detachableEl.offsetHeight) / 2);
|
|
4026
4040
|
break;
|
|
4027
4041
|
}
|
|
4028
4042
|
case "right": {
|
|
4029
|
-
t += i, this.alignBottom ? e +=
|
|
4030
|
-
parseInt(
|
|
4043
|
+
t += i, this.alignBottom ? e += s - this.detachableEl.offsetHeight + parseInt(a.getPropertyValue("margin-top")) : this.alignTop || (e += (s - this.detachableEl.offsetHeight) / 2 + // top: 50% of activator - half menu height.
|
|
4044
|
+
parseInt(a.getPropertyValue("margin-top")));
|
|
4031
4045
|
break;
|
|
4032
4046
|
}
|
|
4033
4047
|
}
|
|
@@ -4058,11 +4072,11 @@ const Fi = {
|
|
|
4058
4072
|
const e = typeof this.activator == "string";
|
|
4059
4073
|
Object.entries(this.activatorEventHandlers).forEach(([t, i]) => {
|
|
4060
4074
|
t = t.replace("mouseenter", "mouseover").replace("mouseleave", "mouseout");
|
|
4061
|
-
const
|
|
4075
|
+
const s = (a) => {
|
|
4062
4076
|
var l;
|
|
4063
|
-
(e && ((l =
|
|
4077
|
+
(e && ((l = a.target) != null && l.matches) && a.target.matches(this.activator) || a.target === this.activatorEl || this.activatorEl.contains(a.target)) && i(a);
|
|
4064
4078
|
};
|
|
4065
|
-
document.addEventListener(t,
|
|
4079
|
+
document.addEventListener(t, s), this.docEventListenersHandlers.push({ eventName: t, handler: s });
|
|
4066
4080
|
});
|
|
4067
4081
|
}
|
|
4068
4082
|
},
|
|
@@ -4086,16 +4100,16 @@ const Fi = {
|
|
|
4086
4100
|
}
|
|
4087
4101
|
}
|
|
4088
4102
|
};
|
|
4089
|
-
function
|
|
4090
|
-
const
|
|
4091
|
-
return
|
|
4103
|
+
function qi(e, t, i, s, a, l) {
|
|
4104
|
+
const n = $("w-card"), r = $("w-overlay");
|
|
4105
|
+
return o(), u(k, null, [
|
|
4092
4106
|
c(e.$slots, "activator", { on: l.activatorEventHandlers }),
|
|
4093
|
-
|
|
4107
|
+
I(x, {
|
|
4094
4108
|
name: l.transitionName,
|
|
4095
4109
|
appear: ""
|
|
4096
4110
|
}, {
|
|
4097
4111
|
default: m(() => [
|
|
4098
|
-
i.custom && e.detachableVisible ? (
|
|
4112
|
+
i.custom && e.detachableVisible ? (o(), u("div", B({
|
|
4099
4113
|
key: 0,
|
|
4100
4114
|
class: "w-menu",
|
|
4101
4115
|
ref: "detachable"
|
|
@@ -4107,7 +4121,7 @@ function Ui(e, t, i, o, n, l) {
|
|
|
4107
4121
|
style: l.styles
|
|
4108
4122
|
}), [
|
|
4109
4123
|
c(e.$slots, "default")
|
|
4110
|
-
], 16)) : e.detachableVisible ? (
|
|
4124
|
+
], 16)) : e.detachableVisible ? (o(), g(n, B({
|
|
4111
4125
|
key: 1,
|
|
4112
4126
|
class: "w-menu",
|
|
4113
4127
|
ref: "detachable"
|
|
@@ -4146,7 +4160,7 @@ function Ui(e, t, i, o, n, l) {
|
|
|
4146
4160
|
]),
|
|
4147
4161
|
_: 3
|
|
4148
4162
|
}, 8, ["name"]),
|
|
4149
|
-
i.overlay ? (
|
|
4163
|
+
i.overlay ? (o(), g(r, B({
|
|
4150
4164
|
key: 0,
|
|
4151
4165
|
ref: "overlay",
|
|
4152
4166
|
"model-value": e.detachableVisible,
|
|
@@ -4158,7 +4172,7 @@ function Ui(e, t, i, o, n, l) {
|
|
|
4158
4172
|
}), null, 16, ["model-value", "persistent", "class", "z-index"])) : p("", !0)
|
|
4159
4173
|
], 64);
|
|
4160
4174
|
}
|
|
4161
|
-
const
|
|
4175
|
+
const Xi = {
|
|
4162
4176
|
name: "w-menu",
|
|
4163
4177
|
mixins: [we],
|
|
4164
4178
|
inheritAttrs: !1,
|
|
@@ -4241,17 +4255,17 @@ const qi = {
|
|
|
4241
4255
|
return this.maxWidth === "activator" ? this.activatorWidth ? `${this.activatorWidth}px` : 0 : isNaN(this.maxWidth) ? this.maxWidth : this.maxWidth ? `${this.maxWidth}px` : 0;
|
|
4242
4256
|
},
|
|
4243
4257
|
menuClasses() {
|
|
4244
|
-
return
|
|
4258
|
+
return W(this.menuClass);
|
|
4245
4259
|
},
|
|
4246
4260
|
titleClasses() {
|
|
4247
|
-
return
|
|
4261
|
+
return W(this.titleClass);
|
|
4248
4262
|
},
|
|
4249
4263
|
contentClasses() {
|
|
4250
|
-
return
|
|
4264
|
+
return W(this.contentClass);
|
|
4251
4265
|
},
|
|
4252
4266
|
overlayClasses() {
|
|
4253
4267
|
return {
|
|
4254
|
-
...
|
|
4268
|
+
...W(this.overlayClass),
|
|
4255
4269
|
"w-overlay--no-pointer-event": this.showOnHover
|
|
4256
4270
|
};
|
|
4257
4271
|
},
|
|
@@ -4331,20 +4345,20 @@ const qi = {
|
|
|
4331
4345
|
}
|
|
4332
4346
|
}
|
|
4333
4347
|
// watch, mounted & beforeDestroy hooks are set in the detachable.js mixin.
|
|
4334
|
-
},
|
|
4335
|
-
function
|
|
4336
|
-
const
|
|
4337
|
-
return
|
|
4348
|
+
}, Yi = /* @__PURE__ */ v(Xi, [["render", qi]]);
|
|
4349
|
+
function Gi(e, t, i, s, a, l) {
|
|
4350
|
+
const n = $("w-alert");
|
|
4351
|
+
return o(), g(x, {
|
|
4338
4352
|
name: l.transitionName,
|
|
4339
4353
|
appear: ""
|
|
4340
4354
|
}, {
|
|
4341
4355
|
default: m(() => [
|
|
4342
|
-
|
|
4356
|
+
a.show ? (o(), u("div", {
|
|
4343
4357
|
key: 0,
|
|
4344
4358
|
class: f(["w-notification", l.classes]),
|
|
4345
4359
|
style: R(l.styles)
|
|
4346
4360
|
}, [
|
|
4347
|
-
|
|
4361
|
+
I(n, B(l.alertProps, {
|
|
4348
4362
|
class: l.alertClasses,
|
|
4349
4363
|
"onUpdate:modelValue": t[0] || (t[0] = (r) => {
|
|
4350
4364
|
e.$emit("update:modelValue", !1), e.$emit("input", !1);
|
|
@@ -4360,7 +4374,7 @@ function Yi(e, t, i, o, n, l) {
|
|
|
4360
4374
|
_: 3
|
|
4361
4375
|
}, 8, ["name"]);
|
|
4362
4376
|
}
|
|
4363
|
-
const
|
|
4377
|
+
const Ji = {
|
|
4364
4378
|
name: "w-notification",
|
|
4365
4379
|
props: {
|
|
4366
4380
|
// Notification props.
|
|
@@ -4483,34 +4497,34 @@ const Gi = {
|
|
|
4483
4497
|
clearTimeout(this.timeoutId), this.show = e, e && this.timeoutVal && this.countdown();
|
|
4484
4498
|
}
|
|
4485
4499
|
}
|
|
4486
|
-
},
|
|
4487
|
-
function
|
|
4488
|
-
const
|
|
4489
|
-
return
|
|
4500
|
+
}, Qi = /* @__PURE__ */ v(Ji, [["render", Gi]]);
|
|
4501
|
+
function Zi(e, t, i, s, a, l) {
|
|
4502
|
+
const n = ge("focus");
|
|
4503
|
+
return o(), g(x, {
|
|
4490
4504
|
name: "fade",
|
|
4491
4505
|
appear: "",
|
|
4492
4506
|
onAfterLeave: l.onClose
|
|
4493
4507
|
}, {
|
|
4494
4508
|
default: m(() => [
|
|
4495
|
-
i.modelValue ?
|
|
4509
|
+
i.modelValue ? A((o(), u("div", {
|
|
4496
4510
|
key: 0,
|
|
4497
4511
|
class: f(["w-overlay", l.classes]),
|
|
4498
4512
|
ref: "overlay",
|
|
4499
4513
|
style: R(i.modelValue && l.styles || null),
|
|
4500
|
-
onKeydown: t[0] || (t[0] =
|
|
4514
|
+
onKeydown: t[0] || (t[0] = E(z((...r) => l.onClick && l.onClick(...r), ["stop"]), ["escape"])),
|
|
4501
4515
|
onClick: t[1] || (t[1] = (...r) => l.onClick && l.onClick(...r)),
|
|
4502
4516
|
tabindex: "0"
|
|
4503
4517
|
}, [
|
|
4504
4518
|
c(e.$slots, "default")
|
|
4505
4519
|
], 38)), [
|
|
4506
4520
|
[ae, e.showOverlay],
|
|
4507
|
-
[
|
|
4521
|
+
[n]
|
|
4508
4522
|
]) : p("", !0)
|
|
4509
4523
|
]),
|
|
4510
4524
|
_: 3
|
|
4511
4525
|
}, 8, ["onAfterLeave"]);
|
|
4512
4526
|
}
|
|
4513
|
-
const
|
|
4527
|
+
const el = {
|
|
4514
4528
|
name: "w-overlay",
|
|
4515
4529
|
props: {
|
|
4516
4530
|
modelValue: {},
|
|
@@ -4568,26 +4582,26 @@ const Zi = {
|
|
|
4568
4582
|
e && (this.showOverlay = !0);
|
|
4569
4583
|
}
|
|
4570
4584
|
}
|
|
4571
|
-
},
|
|
4572
|
-
function
|
|
4573
|
-
return
|
|
4585
|
+
}, tl = /* @__PURE__ */ v(el, [["render", Zi]]), il = { class: "w-parallax" };
|
|
4586
|
+
function ll(e, t, i, s, a, l) {
|
|
4587
|
+
return o(), u("div", il);
|
|
4574
4588
|
}
|
|
4575
|
-
const
|
|
4589
|
+
const sl = {
|
|
4576
4590
|
name: "w-parallax",
|
|
4577
4591
|
props: {},
|
|
4578
4592
|
emits: [],
|
|
4579
4593
|
data: () => ({})
|
|
4580
|
-
},
|
|
4581
|
-
function
|
|
4582
|
-
return
|
|
4594
|
+
}, ol = /* @__PURE__ */ v(sl, [["render", ll]]), al = ["viewBox"], nl = ["cx", "cy", "r", "stroke-dasharray", "stroke-width"], rl = ["cx", "cy", "r", "stroke-width", "stroke-linecap", "stroke-dasharray"];
|
|
4595
|
+
function dl(e, t, i, s, a, l) {
|
|
4596
|
+
return o(), u("div", {
|
|
4583
4597
|
class: f(["w-progress", l.classes]),
|
|
4584
4598
|
style: R(l.styles)
|
|
4585
4599
|
}, [
|
|
4586
|
-
i.circle ? (
|
|
4600
|
+
i.circle ? (o(), u("svg", {
|
|
4587
4601
|
key: 1,
|
|
4588
4602
|
viewBox: `${l.circleCenter / 2} ${l.circleCenter / 2} ${l.circleCenter} ${l.circleCenter}`
|
|
4589
4603
|
}, [
|
|
4590
|
-
i.bgColor || this.progressValue > -1 ? (
|
|
4604
|
+
i.bgColor || this.progressValue > -1 ? (o(), u("circle", {
|
|
4591
4605
|
key: 0,
|
|
4592
4606
|
class: f(["bg", i.bgColor || null]),
|
|
4593
4607
|
cx: l.circleCenter,
|
|
@@ -4596,7 +4610,7 @@ function rl(e, t, i, o, n, l) {
|
|
|
4596
4610
|
fill: "transparent",
|
|
4597
4611
|
"stroke-dasharray": e.circleCircumference,
|
|
4598
4612
|
"stroke-width": i.stroke
|
|
4599
|
-
}, null, 10,
|
|
4613
|
+
}, null, 10, nl)) : p("", !0),
|
|
4600
4614
|
y("circle", {
|
|
4601
4615
|
class: "w-progress__progress",
|
|
4602
4616
|
cx: l.circleCenter,
|
|
@@ -4607,23 +4621,23 @@ function rl(e, t, i, o, n, l) {
|
|
|
4607
4621
|
"stroke-linecap": i.roundCap && "round",
|
|
4608
4622
|
"stroke-dasharray": e.circleCircumference,
|
|
4609
4623
|
style: R(`stroke-dashoffset: ${(1 - l.progressValue / 100) * e.circleCircumference}`)
|
|
4610
|
-
}, null, 12,
|
|
4611
|
-
], 8,
|
|
4624
|
+
}, null, 12, rl)
|
|
4625
|
+
], 8, al)) : (o(), u("div", {
|
|
4612
4626
|
key: 0,
|
|
4613
4627
|
class: f(["w-progress__progress", { full: l.progressValue === 100 }]),
|
|
4614
4628
|
style: R(`width: ${l.progressValue}%`)
|
|
4615
4629
|
}, null, 6)),
|
|
4616
|
-
i.label || e.$slots.default ? (
|
|
4630
|
+
i.label || e.$slots.default ? (o(), u("div", {
|
|
4617
4631
|
key: 2,
|
|
4618
4632
|
class: f(["w-progress__label", i.labelColor || !1])
|
|
4619
4633
|
}, [
|
|
4620
4634
|
c(e.$slots, "default", {}, () => [
|
|
4621
|
-
|
|
4635
|
+
S(C(Math.round(l.progressValue)) + C(i.circle ? "" : "%"), 1)
|
|
4622
4636
|
])
|
|
4623
4637
|
], 2)) : p("", !0)
|
|
4624
4638
|
], 6);
|
|
4625
4639
|
}
|
|
4626
|
-
const G = 40,
|
|
4640
|
+
const G = 40, ul = G / 2, hl = Math.round(G * 3.14 * 100) / 100, cl = {
|
|
4627
4641
|
name: "w-progress",
|
|
4628
4642
|
props: {
|
|
4629
4643
|
modelValue: { type: [Number, String, Boolean], default: -1 },
|
|
@@ -4651,8 +4665,8 @@ const G = 40, dl = G / 2, ul = Math.round(G * 3.14 * 100) / 100, hl = {
|
|
|
4651
4665
|
emits: [],
|
|
4652
4666
|
data: () => ({
|
|
4653
4667
|
circleSize: G,
|
|
4654
|
-
circleRadius:
|
|
4655
|
-
circleCircumference:
|
|
4668
|
+
circleRadius: ul,
|
|
4669
|
+
circleCircumference: hl
|
|
4656
4670
|
}),
|
|
4657
4671
|
computed: {
|
|
4658
4672
|
progressValue() {
|
|
@@ -4692,12 +4706,12 @@ const G = 40, dl = G / 2, ul = Math.round(G * 3.14 * 100) / 100, hl = {
|
|
|
4692
4706
|
};
|
|
4693
4707
|
}
|
|
4694
4708
|
}
|
|
4695
|
-
},
|
|
4696
|
-
function
|
|
4697
|
-
return
|
|
4709
|
+
}, pl = /* @__PURE__ */ v(cl, [["render", dl]]), fl = ["id", "name", "checked", "disabled", "required", "tabindex", "aria-checked"], ml = ["for"], gl = ["for", "innerHTML"], bl = ["for"], yl = ["for", "innerHTML"];
|
|
4710
|
+
function wl(e, t, i, s, a, l) {
|
|
4711
|
+
return o(), g(T(e.formRegister && !l.wRadios ? "w-form-element" : "div"), B({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: e.inputValue, disabled: e.isDisabled, readonly: e.isReadonly }, {
|
|
4698
4712
|
valid: e.valid,
|
|
4699
|
-
"onUpdate:valid": t[3] || (t[3] = (
|
|
4700
|
-
onReset: t[4] || (t[4] = (
|
|
4713
|
+
"onUpdate:valid": t[3] || (t[3] = (n) => e.valid = n),
|
|
4714
|
+
onReset: t[4] || (t[4] = (n) => {
|
|
4701
4715
|
e.$emit("update:modelValue", e.inputValue = null), e.$emit("input", null);
|
|
4702
4716
|
}),
|
|
4703
4717
|
class: l.classes
|
|
@@ -4712,56 +4726,56 @@ function yl(e, t, i, o, n, l) {
|
|
|
4712
4726
|
disabled: e.isDisabled || e.isReadonly || null,
|
|
4713
4727
|
required: e.required || null,
|
|
4714
4728
|
tabindex: e.tabindex || null,
|
|
4715
|
-
onFocus: t[0] || (t[0] = (
|
|
4716
|
-
onChange: t[1] || (t[1] = (
|
|
4729
|
+
onFocus: t[0] || (t[0] = (n) => e.$emit("focus", n)),
|
|
4730
|
+
onChange: t[1] || (t[1] = (n) => l.onInput(n)),
|
|
4717
4731
|
"aria-checked": e.inputValue || "false",
|
|
4718
4732
|
role: "radio"
|
|
4719
|
-
}, null, 40,
|
|
4720
|
-
l.hasLabel && i.labelOnLeft ? (
|
|
4721
|
-
e.$slots.default ? (
|
|
4733
|
+
}, null, 40, fl),
|
|
4734
|
+
l.hasLabel && i.labelOnLeft ? (o(), u(k, { key: 0 }, [
|
|
4735
|
+
e.$slots.default ? (o(), u("label", {
|
|
4722
4736
|
key: 0,
|
|
4723
4737
|
class: f(["w-radio__label w-form-el-shakable pr2", e.labelClasses]),
|
|
4724
4738
|
for: `w-radio--${e._.uid}`
|
|
4725
4739
|
}, [
|
|
4726
4740
|
c(e.$slots, "default", {}, () => [
|
|
4727
|
-
|
|
4741
|
+
S(C(i.label), 1)
|
|
4728
4742
|
])
|
|
4729
|
-
], 10,
|
|
4743
|
+
], 10, ml)) : i.label ? (o(), u("label", {
|
|
4730
4744
|
key: 1,
|
|
4731
4745
|
class: f(["w-radio__label w-form-el-shakable pr2", e.labelClasses]),
|
|
4732
4746
|
for: `w-radio--${e._.uid}`,
|
|
4733
4747
|
innerHTML: i.label
|
|
4734
|
-
}, null, 10,
|
|
4748
|
+
}, null, 10, gl)) : p("", !0)
|
|
4735
4749
|
], 64)) : p("", !0),
|
|
4736
4750
|
y("div", {
|
|
4737
4751
|
class: f(["w-radio__input", this.color]),
|
|
4738
|
-
onClick: t[2] || (t[2] = (
|
|
4752
|
+
onClick: t[2] || (t[2] = (n) => {
|
|
4739
4753
|
e.$refs.input.focus(), e.$refs.input.click();
|
|
4740
4754
|
})
|
|
4741
4755
|
}, null, 2),
|
|
4742
|
-
l.hasLabel && !i.labelOnLeft ? (
|
|
4743
|
-
e.$slots.default ? (
|
|
4756
|
+
l.hasLabel && !i.labelOnLeft ? (o(), u(k, { key: 1 }, [
|
|
4757
|
+
e.$slots.default ? (o(), u("label", {
|
|
4744
4758
|
key: 0,
|
|
4745
4759
|
class: f(["w-radio__label w-form-el-shakable pl2", e.labelClasses]),
|
|
4746
4760
|
for: `w-radio--${e._.uid}`
|
|
4747
4761
|
}, [
|
|
4748
4762
|
c(e.$slots, "default", {}, () => [
|
|
4749
|
-
|
|
4763
|
+
S(C(i.label), 1)
|
|
4750
4764
|
])
|
|
4751
|
-
], 10,
|
|
4765
|
+
], 10, bl)) : i.label ? (o(), u("label", {
|
|
4752
4766
|
key: 1,
|
|
4753
4767
|
class: f(["w-radio__label w-form-el-shakable pl2", e.labelClasses]),
|
|
4754
4768
|
for: `w-radio--${e._.uid}`,
|
|
4755
4769
|
innerHTML: i.label
|
|
4756
|
-
}, null, 10,
|
|
4770
|
+
}, null, 10, yl)) : p("", !0)
|
|
4757
4771
|
], 64)) : p("", !0)
|
|
4758
4772
|
]),
|
|
4759
4773
|
_: 3
|
|
4760
4774
|
}, 16, ["valid", "class"]);
|
|
4761
4775
|
}
|
|
4762
|
-
const
|
|
4776
|
+
const kl = {
|
|
4763
4777
|
name: "w-radio",
|
|
4764
|
-
mixins: [
|
|
4778
|
+
mixins: [M],
|
|
4765
4779
|
inject: { wRadios: { default: null } },
|
|
4766
4780
|
props: {
|
|
4767
4781
|
modelValue: { default: !1 },
|
|
@@ -4824,10 +4838,10 @@ const wl = {
|
|
|
4824
4838
|
this.toggleFromOutside();
|
|
4825
4839
|
}
|
|
4826
4840
|
}
|
|
4827
|
-
},
|
|
4828
|
-
function
|
|
4829
|
-
const
|
|
4830
|
-
return
|
|
4841
|
+
}, vl = /* @__PURE__ */ v(kl, [["render", wl]]), Cl = ["innerHTML"];
|
|
4842
|
+
function Sl(e, t, i, s, a, l) {
|
|
4843
|
+
const n = $("w-radio");
|
|
4844
|
+
return o(), g(T(e.formRegister ? "w-form-element" : "div"), B({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: e.inputValue, disabled: e.isDisabled }, {
|
|
4831
4845
|
valid: e.valid,
|
|
4832
4846
|
"onUpdate:valid": t[1] || (t[1] = (r) => e.valid = r),
|
|
4833
4847
|
onReset: t[2] || (t[2] = (r) => {
|
|
@@ -4838,12 +4852,13 @@ function Cl(e, t, i, o, n, l) {
|
|
|
4838
4852
|
class: l.classes
|
|
4839
4853
|
}), {
|
|
4840
4854
|
default: m(() => [
|
|
4841
|
-
(
|
|
4855
|
+
(o(!0), u(k, null, L(l.radioItems, (r, d) => (o(), g(n, B({
|
|
4842
4856
|
key: d,
|
|
4843
4857
|
"model-value": r.value === i.modelValue,
|
|
4844
4858
|
"onUpdate:modelValue": (h) => l.onInput(r),
|
|
4845
4859
|
onFocus: t[0] || (t[0] = (h) => e.$emit("focus", h)),
|
|
4846
|
-
name: e.inputName
|
|
4860
|
+
name: e.inputName,
|
|
4861
|
+
ref_for: !0
|
|
4847
4862
|
}, { label: r.label, color: r.color, labelOnLeft: i.labelOnLeft, labelColor: i.labelColor }, {
|
|
4848
4863
|
disabled: e.isDisabled || null,
|
|
4849
4864
|
readonly: e.isReadonly || null,
|
|
@@ -4856,10 +4871,10 @@ function Cl(e, t, i, o, n, l) {
|
|
|
4856
4871
|
index: d + 1,
|
|
4857
4872
|
checked: r.value === i.modelValue,
|
|
4858
4873
|
innerHTML: r.label
|
|
4859
|
-
}) : r.label ? (
|
|
4874
|
+
}) : r.label ? (o(), u("div", {
|
|
4860
4875
|
key: 1,
|
|
4861
4876
|
innerHTML: r.label
|
|
4862
|
-
}, null, 8,
|
|
4877
|
+
}, null, 8, Cl)) : p("", !0)
|
|
4863
4878
|
]),
|
|
4864
4879
|
_: 2
|
|
4865
4880
|
}, 1040, ["model-value", "onUpdate:modelValue", "name", "disabled", "readonly", "class"]))), 128))
|
|
@@ -4867,9 +4882,9 @@ function Cl(e, t, i, o, n, l) {
|
|
|
4867
4882
|
_: 3
|
|
4868
4883
|
}, 16, ["valid", "column", "wrap", "class"]);
|
|
4869
4884
|
}
|
|
4870
|
-
const
|
|
4885
|
+
const Bl = {
|
|
4871
4886
|
name: "w-radios",
|
|
4872
|
-
mixins: [
|
|
4887
|
+
mixins: [M],
|
|
4873
4888
|
props: {
|
|
4874
4889
|
items: { type: Array, required: !0 },
|
|
4875
4890
|
// All the possible options.
|
|
@@ -4920,13 +4935,13 @@ const Sl = {
|
|
|
4920
4935
|
return this.items[e._index];
|
|
4921
4936
|
}
|
|
4922
4937
|
}
|
|
4923
|
-
},
|
|
4924
|
-
function
|
|
4925
|
-
return
|
|
4938
|
+
}, _l = /* @__PURE__ */ v(Bl, [["render", Sl]]), $l = ["id", "name", "value"], Vl = ["disabled", "onMouseenter", "onClick", "tabindex"];
|
|
4939
|
+
function Il(e, t, i, s, a, l) {
|
|
4940
|
+
return o(), g(T(e.formRegister ? "w-form-element" : "div"), B({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: a.rating, disabled: e.isDisabled, readonly: e.isReadonly }, {
|
|
4926
4941
|
valid: e.valid,
|
|
4927
|
-
"onUpdate:valid": t[4] || (t[4] = (
|
|
4928
|
-
onReset: t[5] || (t[5] = (
|
|
4929
|
-
e.$emit("update:modelValue",
|
|
4942
|
+
"onUpdate:valid": t[4] || (t[4] = (n) => e.valid = n),
|
|
4943
|
+
onReset: t[5] || (t[5] = (n) => {
|
|
4944
|
+
e.$emit("update:modelValue", a.rating = null), e.$emit("input", null);
|
|
4930
4945
|
}),
|
|
4931
4946
|
class: l.classes
|
|
4932
4947
|
}), {
|
|
@@ -4935,41 +4950,41 @@ function Vl(e, t, i, o, n, l) {
|
|
|
4935
4950
|
id: e.inputName,
|
|
4936
4951
|
name: e.inputName,
|
|
4937
4952
|
type: "hidden",
|
|
4938
|
-
value:
|
|
4939
|
-
}, null, 8,
|
|
4940
|
-
(
|
|
4953
|
+
value: a.rating
|
|
4954
|
+
}, null, 8, $l),
|
|
4955
|
+
(o(!0), u(k, null, L(i.max, (n) => (o(), u(k, { key: n }, [
|
|
4941
4956
|
e.$slots.item ? c(e.$slots, "item", {
|
|
4942
4957
|
key: 0,
|
|
4943
|
-
index:
|
|
4958
|
+
index: n + 1
|
|
4944
4959
|
}) : p("", !0),
|
|
4945
4960
|
y("button", {
|
|
4946
|
-
class: f(["w-rating__button", l.buttonClasses(
|
|
4961
|
+
class: f(["w-rating__button", l.buttonClasses(n)]),
|
|
4947
4962
|
disabled: e.isDisabled || e.isReadonly,
|
|
4948
|
-
onMouseenter: (r) =>
|
|
4949
|
-
onMouseleave: t[0] || (t[0] = (r) =>
|
|
4950
|
-
onClick: (r) => l.onButtonClick(
|
|
4963
|
+
onMouseenter: (r) => a.hover = n,
|
|
4964
|
+
onMouseleave: t[0] || (t[0] = (r) => a.hover = 0),
|
|
4965
|
+
onClick: (r) => l.onButtonClick(n),
|
|
4951
4966
|
onFocus: t[1] || (t[1] = (...r) => l.onFocus && l.onFocus(...r)),
|
|
4952
4967
|
onBlur: t[2] || (t[2] = (...r) => l.onBlur && l.onBlur(...r)),
|
|
4953
4968
|
onKeydown: t[3] || (t[3] = (...r) => l.onKeydown && l.onKeydown(...r)),
|
|
4954
4969
|
type: "button",
|
|
4955
|
-
tabindex:
|
|
4970
|
+
tabindex: n === 1 ? 0 : -1
|
|
4956
4971
|
}, [
|
|
4957
|
-
|
|
4972
|
+
n - 1 === ~~a.rating && a.rating - ~~a.rating ? (o(), u("i", {
|
|
4958
4973
|
key: 0,
|
|
4959
4974
|
class: f(["w-icon", `${i.icon} ${i.color}`]),
|
|
4960
4975
|
role: "icon",
|
|
4961
4976
|
"aria-hidden": "true",
|
|
4962
4977
|
style: R(l.halfStarStyle)
|
|
4963
4978
|
}, null, 6)) : p("", !0)
|
|
4964
|
-
], 42,
|
|
4979
|
+
], 42, Vl)
|
|
4965
4980
|
], 64))), 128))
|
|
4966
4981
|
]),
|
|
4967
4982
|
_: 3
|
|
4968
4983
|
}, 16, ["valid", "class"]);
|
|
4969
4984
|
}
|
|
4970
|
-
const
|
|
4985
|
+
const Tl = {
|
|
4971
4986
|
name: "w-rating",
|
|
4972
|
-
mixins: [
|
|
4987
|
+
mixins: [M],
|
|
4973
4988
|
props: {
|
|
4974
4989
|
modelValue: {},
|
|
4975
4990
|
max: { type: [Number, String], default: 5 },
|
|
@@ -5061,22 +5076,22 @@ const Il = {
|
|
|
5061
5076
|
this.rating = parseFloat(e);
|
|
5062
5077
|
}
|
|
5063
5078
|
}
|
|
5064
|
-
},
|
|
5065
|
-
function
|
|
5066
|
-
return
|
|
5067
|
-
y("div",
|
|
5079
|
+
}, Ll = /* @__PURE__ */ v(Tl, [["render", Il]]);
|
|
5080
|
+
function Rl(e, t, i, s, a, l) {
|
|
5081
|
+
return o(), u(k, null, [
|
|
5082
|
+
y("div", B({
|
|
5068
5083
|
class: ["w-scrollable", l.scrollableClasses],
|
|
5069
5084
|
ref: "scrollable",
|
|
5070
|
-
onMouseenter: t[0] || (t[0] = (...
|
|
5071
|
-
onMouseleave: t[1] || (t[1] = (...
|
|
5072
|
-
onMousewheel: t[2] || (t[2] = (...
|
|
5085
|
+
onMouseenter: t[0] || (t[0] = (...n) => l.onMouseEnter && l.onMouseEnter(...n)),
|
|
5086
|
+
onMouseleave: t[1] || (t[1] = (...n) => l.onMouseLeave && l.onMouseLeave(...n)),
|
|
5087
|
+
onMousewheel: t[2] || (t[2] = (...n) => l.onMouseWheel && l.onMouseWheel(...n))
|
|
5073
5088
|
}, e.$attrs, { style: l.scrollableStyles }), [
|
|
5074
5089
|
c(e.$slots, "default")
|
|
5075
5090
|
], 16),
|
|
5076
5091
|
y("div", {
|
|
5077
5092
|
class: f(["w-scrollbar", l.scrollbarClasses]),
|
|
5078
5093
|
ref: "track",
|
|
5079
|
-
onMousedown: t[3] || (t[3] = (...
|
|
5094
|
+
onMousedown: t[3] || (t[3] = (...n) => l.onTrackMouseDown && l.onTrackMouseDown(...n))
|
|
5080
5095
|
}, [
|
|
5081
5096
|
y("div", {
|
|
5082
5097
|
class: "w-scrollbar__thumb",
|
|
@@ -5086,7 +5101,7 @@ function Ll(e, t, i, o, n, l) {
|
|
|
5086
5101
|
], 34)
|
|
5087
5102
|
], 64);
|
|
5088
5103
|
}
|
|
5089
|
-
const
|
|
5104
|
+
const Pl = {
|
|
5090
5105
|
h: {
|
|
5091
5106
|
direction: "horizontal",
|
|
5092
5107
|
topOrLeft: "left",
|
|
@@ -5109,7 +5124,7 @@ const Rl = {
|
|
|
5109
5124
|
deltaXorY: "deltaY",
|
|
5110
5125
|
scrollTopOrLeft: "scrollTop"
|
|
5111
5126
|
}
|
|
5112
|
-
},
|
|
5127
|
+
}, xl = {
|
|
5113
5128
|
name: "w-scrollable",
|
|
5114
5129
|
props: {
|
|
5115
5130
|
color: { type: String, default: "primary" },
|
|
@@ -5129,11 +5144,11 @@ const Rl = {
|
|
|
5129
5144
|
}),
|
|
5130
5145
|
computed: {
|
|
5131
5146
|
isHorizontal() {
|
|
5132
|
-
var e, t, i,
|
|
5133
|
-
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) > ((
|
|
5147
|
+
var e, t, i, s;
|
|
5148
|
+
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;
|
|
5134
5149
|
},
|
|
5135
5150
|
m() {
|
|
5136
|
-
return
|
|
5151
|
+
return Pl[this.isHorizontal ? "h" : "v"];
|
|
5137
5152
|
},
|
|
5138
5153
|
scrollableClasses() {
|
|
5139
5154
|
return {
|
|
@@ -5166,8 +5181,8 @@ const Rl = {
|
|
|
5166
5181
|
onTrackMouseDown(e) {
|
|
5167
5182
|
if (this.isDisabled || this.isReadonly || "ontouchstart" in window && e.type === "mousedown")
|
|
5168
5183
|
return;
|
|
5169
|
-
const { top: t, left: i, width:
|
|
5170
|
-
this.isHorizontal ? (this.$refs.track.width =
|
|
5184
|
+
const { top: t, left: i, width: s, height: a } = this.$refs.track.getBoundingClientRect();
|
|
5185
|
+
this.isHorizontal ? (this.$refs.track.width = s, this.$refs.track.left = i) : (this.$refs.track.height = a, 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 });
|
|
5171
5186
|
},
|
|
5172
5187
|
onDrag(e) {
|
|
5173
5188
|
this.computeScroll(e.type === "touchmove" ? e.touches[0][this.m.clientXorY] : e[this.m.clientXorY]), this.scroll();
|
|
@@ -5187,8 +5202,8 @@ const Rl = {
|
|
|
5187
5202
|
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()));
|
|
5188
5203
|
},
|
|
5189
5204
|
computeScroll(e) {
|
|
5190
|
-
const { top: t, left: i, width:
|
|
5191
|
-
this.scrollValuePercent = Math.max(0, Math.min((e - l) /
|
|
5205
|
+
const { top: t, left: i, width: s, height: a } = this.$refs.scrollable.getBoundingClientRect(), l = this.isHorizontal ? i : t, n = this.isHorizontal ? s : a;
|
|
5206
|
+
this.scrollValuePercent = Math.max(0, Math.min((e - l) / n * 100, 100));
|
|
5192
5207
|
},
|
|
5193
5208
|
scroll() {
|
|
5194
5209
|
var e;
|
|
@@ -5203,13 +5218,13 @@ const Rl = {
|
|
|
5203
5218
|
const { top: e, left: t } = this.$refs.scrollable.getBoundingClientRect();
|
|
5204
5219
|
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);
|
|
5205
5220
|
}
|
|
5206
|
-
}, Ol = /* @__PURE__ */ v(
|
|
5221
|
+
}, Ol = /* @__PURE__ */ v(xl, [["render", Rl]]), zl = ["aria-expanded", "aria-owns", "aria-activedescendant"], Ml = {
|
|
5207
5222
|
key: 0,
|
|
5208
5223
|
class: "w-select__selection-slot"
|
|
5209
|
-
},
|
|
5210
|
-
function
|
|
5211
|
-
const
|
|
5212
|
-
return
|
|
5224
|
+
}, El = ["innerHTML"], Wl = ["value", "name"];
|
|
5225
|
+
function Al(e, t, i, s, a, l) {
|
|
5226
|
+
const n = $("w-icon"), r = $("w-list"), d = $("w-menu");
|
|
5227
|
+
return o(), g(T(e.formRegister ? "w-form-element" : "div"), B({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: l.selectionString, disabled: e.isDisabled, readonly: e.isReadonly, isFocused: e.isFocused }, {
|
|
5213
5228
|
valid: e.valid,
|
|
5214
5229
|
"onUpdate:valid": t[12] || (t[12] = (h) => e.valid = h),
|
|
5215
5230
|
onReset: l.onReset,
|
|
@@ -5217,18 +5232,18 @@ function Wl(e, t, i, o, n, l) {
|
|
|
5217
5232
|
class: l.classes
|
|
5218
5233
|
}), {
|
|
5219
5234
|
default: m(() => [
|
|
5220
|
-
i.labelPosition === "left" ? (
|
|
5221
|
-
e.$slots.default || i.label ? (
|
|
5235
|
+
i.labelPosition === "left" ? (o(), u(k, { key: 0 }, [
|
|
5236
|
+
e.$slots.default || i.label ? (o(), u("label", {
|
|
5222
5237
|
key: 0,
|
|
5223
5238
|
class: f(["w-select__label w-select__label--left w-form-el-shakable", e.labelClasses]),
|
|
5224
5239
|
onClick: t[0] || (t[0] = (h) => e.$refs["selection-input"].click())
|
|
5225
5240
|
}, [
|
|
5226
5241
|
c(e.$slots, "default", {}, () => [
|
|
5227
|
-
|
|
5242
|
+
S(C(i.label), 1)
|
|
5228
5243
|
])
|
|
5229
5244
|
], 2)) : p("", !0)
|
|
5230
5245
|
], 64)) : p("", !0),
|
|
5231
|
-
|
|
5246
|
+
I(d, B({
|
|
5232
5247
|
modelValue: e.showMenu,
|
|
5233
5248
|
"onUpdate:modelValue": t[10] || (t[10] = (h) => e.showMenu = h),
|
|
5234
5249
|
onClose: l.closeMenu,
|
|
@@ -5250,63 +5265,63 @@ function Wl(e, t, i, o, n, l) {
|
|
|
5250
5265
|
"aria-activedescendant": `w-select-menu--${e._.uid}_item-1`
|
|
5251
5266
|
}, [
|
|
5252
5267
|
c(e.$slots, "icon-left", {}, () => [
|
|
5253
|
-
i.innerIconLeft ? (
|
|
5268
|
+
i.innerIconLeft ? (o(), g(n, {
|
|
5254
5269
|
key: 0,
|
|
5255
5270
|
class: "w-select__icon w-select__icon--inner-left",
|
|
5256
5271
|
tag: "label",
|
|
5257
5272
|
onClick: t[1] || (t[1] = (h) => e.$emit("click:inner-icon-left", h))
|
|
5258
5273
|
}, {
|
|
5259
5274
|
default: m(() => [
|
|
5260
|
-
|
|
5275
|
+
S(C(i.innerIconLeft), 1)
|
|
5261
5276
|
]),
|
|
5262
5277
|
_: 1
|
|
5263
5278
|
})) : p("", !0)
|
|
5264
5279
|
]),
|
|
5265
|
-
e.$slots.selection ? (
|
|
5280
|
+
e.$slots.selection ? (o(), u("div", Ml, [
|
|
5266
5281
|
c(e.$slots, "selection", {
|
|
5267
5282
|
item: i.multiple ? e.inputValue : e.inputValue[0]
|
|
5268
5283
|
})
|
|
5269
5284
|
])) : p("", !0),
|
|
5270
|
-
y("div",
|
|
5285
|
+
y("div", B({
|
|
5271
5286
|
class: "w-select__selection",
|
|
5272
5287
|
ref: "selection-input",
|
|
5273
5288
|
onFocus: t[2] || (t[2] = (h) => !e.isDisabled && !e.isReadonly && l.onFocus(h)),
|
|
5274
5289
|
onBlur: t[3] || (t[3] = (...h) => l.onBlur && l.onBlur(...h)),
|
|
5275
5290
|
onKeydown: t[4] || (t[4] = (h) => !e.isDisabled && !e.isReadonly && l.onKeydown(h))
|
|
5276
|
-
}, l.selectionAttributes, { innerHTML: l.selectionHtml }), null, 16,
|
|
5277
|
-
(
|
|
5278
|
-
key:
|
|
5291
|
+
}, l.selectionAttributes, { innerHTML: l.selectionHtml }), null, 16, El),
|
|
5292
|
+
(o(!0), u(k, null, L(e.inputValue.length ? e.inputValue : [{}], (h, w) => (o(), u("input", {
|
|
5293
|
+
key: w,
|
|
5279
5294
|
type: "hidden",
|
|
5280
5295
|
value: h.value === void 0 ? "" : h.value.toString(),
|
|
5281
5296
|
name: e.inputName + (i.multiple ? "[]" : "")
|
|
5282
|
-
}, null, 8,
|
|
5283
|
-
i.labelPosition === "inside" && l.showLabelInside ? (
|
|
5284
|
-
e.$slots.default || i.label ? (
|
|
5297
|
+
}, null, 8, Wl))), 128)),
|
|
5298
|
+
i.labelPosition === "inside" && l.showLabelInside ? (o(), u(k, { key: 1 }, [
|
|
5299
|
+
e.$slots.default || i.label ? (o(), u("label", {
|
|
5285
5300
|
key: 0,
|
|
5286
5301
|
class: f(["w-select__label w-select__label--inside w-form-el-shakable", e.labelClasses])
|
|
5287
5302
|
}, [
|
|
5288
5303
|
c(e.$slots, "default", {}, () => [
|
|
5289
|
-
|
|
5304
|
+
S(C(i.label), 1)
|
|
5290
5305
|
])
|
|
5291
5306
|
], 2)) : p("", !0)
|
|
5292
5307
|
], 64)) : p("", !0),
|
|
5293
5308
|
c(e.$slots, "icon-right", {}, () => [
|
|
5294
|
-
i.innerIconRight ? (
|
|
5309
|
+
i.innerIconRight ? (o(), g(n, {
|
|
5295
5310
|
key: 0,
|
|
5296
5311
|
class: "w-select__icon w-select__icon--inner-right",
|
|
5297
5312
|
tag: "label",
|
|
5298
5313
|
onClick: t[5] || (t[5] = (h) => e.$emit("click:inner-icon-right", h))
|
|
5299
5314
|
}, {
|
|
5300
5315
|
default: m(() => [
|
|
5301
|
-
|
|
5316
|
+
S(C(i.innerIconRight), 1)
|
|
5302
5317
|
]),
|
|
5303
5318
|
_: 1
|
|
5304
5319
|
})) : p("", !0)
|
|
5305
5320
|
])
|
|
5306
|
-
], 10,
|
|
5321
|
+
], 10, zl)
|
|
5307
5322
|
]),
|
|
5308
5323
|
default: m(() => [
|
|
5309
|
-
|
|
5324
|
+
I(r, {
|
|
5310
5325
|
ref: "w-list",
|
|
5311
5326
|
"model-value": e.inputValue,
|
|
5312
5327
|
"onUpdate:modelValue": l.onInput,
|
|
@@ -5328,21 +5343,21 @@ function Wl(e, t, i, o, n, l) {
|
|
|
5328
5343
|
}, Q({ _: 2 }, [
|
|
5329
5344
|
L(i.items.length, (h) => ({
|
|
5330
5345
|
name: `item.${h}`,
|
|
5331
|
-
fn: m(({ item:
|
|
5332
|
-
e.$slots[`item.${h}`] && e.$slots[`item.${h}`](
|
|
5346
|
+
fn: m(({ item: w, selected: _, index: b }) => [
|
|
5347
|
+
e.$slots[`item.${h}`] && e.$slots[`item.${h}`](w, _, b) ? c(e.$slots, `item.${h}`, {
|
|
5333
5348
|
key: 0,
|
|
5334
|
-
item:
|
|
5349
|
+
item: w,
|
|
5335
5350
|
selected: _,
|
|
5336
|
-
index:
|
|
5351
|
+
index: b
|
|
5337
5352
|
}, () => [
|
|
5338
|
-
|
|
5353
|
+
S(C(w[i.itemLabelKey]), 1)
|
|
5339
5354
|
]) : c(e.$slots, "item", {
|
|
5340
5355
|
key: 1,
|
|
5341
|
-
item:
|
|
5356
|
+
item: w,
|
|
5342
5357
|
selected: _,
|
|
5343
|
-
index:
|
|
5358
|
+
index: b
|
|
5344
5359
|
}, () => [
|
|
5345
|
-
|
|
5360
|
+
S(C(w[i.itemLabelKey]), 1)
|
|
5346
5361
|
])
|
|
5347
5362
|
])
|
|
5348
5363
|
}))
|
|
@@ -5350,14 +5365,14 @@ function Wl(e, t, i, o, n, l) {
|
|
|
5350
5365
|
]),
|
|
5351
5366
|
_: 3
|
|
5352
5367
|
}, 16, ["modelValue", "onClose", "menu-class", "append-to"]),
|
|
5353
|
-
i.labelPosition === "right" ? (
|
|
5354
|
-
e.$slots.default || i.label ? (
|
|
5368
|
+
i.labelPosition === "right" ? (o(), u(k, { key: 1 }, [
|
|
5369
|
+
e.$slots.default || i.label ? (o(), u("label", {
|
|
5355
5370
|
key: 0,
|
|
5356
5371
|
class: f(["w-select__label w-select__label--right w-form-el-shakable", e.labelClasses]),
|
|
5357
5372
|
onClick: t[11] || (t[11] = (h) => e.$refs["selection-input"].click())
|
|
5358
5373
|
}, [
|
|
5359
5374
|
c(e.$slots, "default", {}, () => [
|
|
5360
|
-
|
|
5375
|
+
S(C(i.label), 1)
|
|
5361
5376
|
])
|
|
5362
5377
|
], 2)) : p("", !0)
|
|
5363
5378
|
], 64)) : p("", !0)
|
|
@@ -5365,9 +5380,9 @@ function Wl(e, t, i, o, n, l) {
|
|
|
5365
5380
|
_: 3
|
|
5366
5381
|
}, 16, ["valid", "onReset", "wrap", "class"]);
|
|
5367
5382
|
}
|
|
5368
|
-
const
|
|
5383
|
+
const Kl = {
|
|
5369
5384
|
name: "w-select",
|
|
5370
|
-
mixins: [
|
|
5385
|
+
mixins: [M],
|
|
5371
5386
|
props: {
|
|
5372
5387
|
items: { type: Array, required: !0 },
|
|
5373
5388
|
modelValue: {},
|
|
@@ -5511,20 +5526,20 @@ const Al = {
|
|
|
5511
5526
|
if (t === void 0)
|
|
5512
5527
|
t = e.keyCode === 38 ? i.length - 1 : 0;
|
|
5513
5528
|
else {
|
|
5514
|
-
const
|
|
5515
|
-
t = (t + i.length +
|
|
5529
|
+
const a = e.keyCode === 38 ? -1 : 1;
|
|
5530
|
+
t = (t + i.length + a) % i.length;
|
|
5516
5531
|
}
|
|
5517
|
-
let
|
|
5532
|
+
let s = !1;
|
|
5518
5533
|
if (i[t].disabled) {
|
|
5519
|
-
const
|
|
5520
|
-
let l = (t +
|
|
5521
|
-
const
|
|
5534
|
+
const a = e.keyCode === 38 ? -1 : 1;
|
|
5535
|
+
let l = (t + a + i.length) % i.length;
|
|
5536
|
+
const n = i.length;
|
|
5522
5537
|
let r = 0;
|
|
5523
|
-
for (; r <
|
|
5524
|
-
l = (l + i.length +
|
|
5525
|
-
r >=
|
|
5538
|
+
for (; r < n && i[l].disabled; )
|
|
5539
|
+
l = (l + i.length + a) % i.length, r++;
|
|
5540
|
+
r >= n && (s = !0), t = l;
|
|
5526
5541
|
}
|
|
5527
|
-
|
|
5542
|
+
s || this.onInput(i[t]);
|
|
5528
5543
|
}
|
|
5529
5544
|
else
|
|
5530
5545
|
e.key.length === 1 && this.focusItemOnQuickLookup(e);
|
|
@@ -5533,14 +5548,14 @@ const Al = {
|
|
|
5533
5548
|
e.key.length === 1 && this.focusItemOnQuickLookup(e);
|
|
5534
5549
|
},
|
|
5535
5550
|
focusItemOnQuickLookup(e) {
|
|
5536
|
-
var
|
|
5551
|
+
var s, a, l;
|
|
5537
5552
|
this.quickLookup.timeout && clearTimeout(this.quickLookup.timeout), this.quickLookup.timeout = setTimeout(() => this.quickLookup.string = "", 1e3), this.quickLookup.string += e.key;
|
|
5538
5553
|
const t = new RegExp(`^${this.quickLookup.string}`, "i"), i = this.selectItems.findIndex(
|
|
5539
|
-
(
|
|
5554
|
+
(n) => !n.disabled && n[this.itemLabelKey].match(t)
|
|
5540
5555
|
) + 1;
|
|
5541
5556
|
if (i) {
|
|
5542
|
-
const
|
|
5543
|
-
(l = (
|
|
5557
|
+
const n = `.w-list__item:nth-child(${i}) .w-list__item-label`;
|
|
5558
|
+
(l = (a = (s = this.$refs["w-list"]) == null ? void 0 : s.$el) == null ? void 0 : a.querySelector(n)) == null || l.focus();
|
|
5544
5559
|
}
|
|
5545
5560
|
},
|
|
5546
5561
|
// The items are given by the w-list component.
|
|
@@ -5568,8 +5583,8 @@ const Al = {
|
|
|
5568
5583
|
e = Array.isArray(e) ? e : e !== void 0 ? [e] : [];
|
|
5569
5584
|
const t = this.selectItems.map((i) => i.value);
|
|
5570
5585
|
return e.map((i) => {
|
|
5571
|
-
let
|
|
5572
|
-
return i && typeof i == "object" && (
|
|
5586
|
+
let s = i;
|
|
5587
|
+
return i && typeof i == "object" && (s = i[this.itemValueKey] ?? i[this.itemLabelKey] ?? i), this.selectItems[t.indexOf(s)];
|
|
5573
5588
|
}).filter((i) => i !== void 0);
|
|
5574
5589
|
},
|
|
5575
5590
|
// Open the dropdown selection list.
|
|
@@ -5600,39 +5615,39 @@ const Al = {
|
|
|
5600
5615
|
this.inputValue = this.checkSelection(this.modelValue);
|
|
5601
5616
|
}
|
|
5602
5617
|
}
|
|
5603
|
-
},
|
|
5618
|
+
}, Nl = /* @__PURE__ */ v(Kl, [["render", Al]]), Dl = ["for"], Hl = ["for", "innerHTML"], Fl = { class: "w-slider__track-wrap" }, jl = ["aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-readonly"], Ul = ["id", "name", "model-value", "disabled", "readonly", "aria-readonly", "tabindex"], ql = ["for"], Xl = { key: 0 }, Yl = {
|
|
5604
5619
|
key: 0,
|
|
5605
5620
|
class: "w-slider__step-labels"
|
|
5606
|
-
},
|
|
5607
|
-
function
|
|
5608
|
-
return
|
|
5621
|
+
}, Gl = ["onClick"], Jl = ["for"], Ql = ["for", "innerHTML"];
|
|
5622
|
+
function Zl(e, t, i, s, a, l) {
|
|
5623
|
+
return o(), g(T(e.formRegister ? "w-form-element" : "div"), B({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: e.rangeValueScaled, disabled: e.isDisabled, readonly: e.isReadonly }, {
|
|
5609
5624
|
valid: e.valid,
|
|
5610
|
-
"onUpdate:valid": t[8] || (t[8] = (
|
|
5611
|
-
onReset: t[9] || (t[9] = (
|
|
5625
|
+
"onUpdate:valid": t[8] || (t[8] = (n) => e.valid = n),
|
|
5626
|
+
onReset: t[9] || (t[9] = (n) => {
|
|
5612
5627
|
e.rangeValuePercent = 0, l.updateRangeValueScaled();
|
|
5613
5628
|
}),
|
|
5614
5629
|
wrap: e.formRegister || null,
|
|
5615
5630
|
class: l.wrapperClasses
|
|
5616
5631
|
}), {
|
|
5617
5632
|
default: m(() => [
|
|
5618
|
-
e.$slots["label-left"] ? (
|
|
5633
|
+
e.$slots["label-left"] ? (o(), u("label", {
|
|
5619
5634
|
key: 0,
|
|
5620
5635
|
class: f(["w-slider__label w-slider__label--left w-form-el-shakable", e.labelClasses]),
|
|
5621
5636
|
for: `button--${e._.uid}`
|
|
5622
5637
|
}, [
|
|
5623
5638
|
c(e.$slots, "label-left")
|
|
5624
|
-
], 10,
|
|
5639
|
+
], 10, Dl)) : i.labelLeft ? (o(), u("label", {
|
|
5625
5640
|
key: 1,
|
|
5626
5641
|
class: f(["w-slider__label w-slider__label--left w-form-el-shakable", e.labelClasses]),
|
|
5627
5642
|
for: `button--${e._.uid}`,
|
|
5628
5643
|
innerHTML: i.labelLeft
|
|
5629
|
-
}, null, 10,
|
|
5630
|
-
y("div",
|
|
5644
|
+
}, null, 10, Hl)) : p("", !0),
|
|
5645
|
+
y("div", Fl, [
|
|
5631
5646
|
y("div", {
|
|
5632
5647
|
class: f(["w-slider__track", l.trackClasses]),
|
|
5633
5648
|
ref: "track",
|
|
5634
|
-
onMousedown: t[4] || (t[4] = (...
|
|
5635
|
-
onTouchstart: t[5] || (t[5] = (...
|
|
5649
|
+
onMousedown: t[4] || (t[4] = (...n) => l.onTrackMouseDown && l.onTrackMouseDown(...n)),
|
|
5650
|
+
onTouchstart: t[5] || (t[5] = (...n) => l.onTrackMouseDown && l.onTrackMouseDown(...n)),
|
|
5636
5651
|
role: "slider",
|
|
5637
5652
|
"aria-label": "Slider",
|
|
5638
5653
|
"aria-valuemin": l.minVal,
|
|
@@ -5660,69 +5675,69 @@ function Ql(e, t, i, o, n, l) {
|
|
|
5660
5675
|
"aria-readonly": e.isReadonly ? "true" : "false",
|
|
5661
5676
|
tabindex: e.isDisabled || e.isReadonly ? -1 : null,
|
|
5662
5677
|
onKeydown: [
|
|
5663
|
-
t[0] || (t[0] =
|
|
5664
|
-
t[1] || (t[1] =
|
|
5678
|
+
t[0] || (t[0] = E((n) => l.onKeyDown(n, -1), ["left"])),
|
|
5679
|
+
t[1] || (t[1] = E((n) => l.onKeyDown(n, 1), ["right"]))
|
|
5665
5680
|
],
|
|
5666
|
-
onFocus: t[2] || (t[2] = (
|
|
5681
|
+
onFocus: t[2] || (t[2] = (n) => e.$emit("focus", n)),
|
|
5667
5682
|
onClick: t[3] || (t[3] = z(() => {
|
|
5668
5683
|
}, ["prevent"]))
|
|
5669
|
-
}, null, 42,
|
|
5670
|
-
i.thumbLabel ? (
|
|
5684
|
+
}, null, 42, Ul),
|
|
5685
|
+
i.thumbLabel ? (o(), u("label", {
|
|
5671
5686
|
key: 0,
|
|
5672
5687
|
class: f(["w-slider__thumb-label", l.thumbClasses]),
|
|
5673
5688
|
for: `button--${e._.uid}`
|
|
5674
5689
|
}, [
|
|
5675
|
-
i.thumbLabel === "droplet" ? (
|
|
5690
|
+
i.thumbLabel === "droplet" ? (o(), u("div", Xl, [
|
|
5676
5691
|
c(e.$slots, "label", { value: e.rangeValueScaled }, () => [
|
|
5677
|
-
|
|
5692
|
+
S(C(~~e.rangeValueScaled), 1)
|
|
5678
5693
|
])
|
|
5679
5694
|
])) : c(e.$slots, "label", {
|
|
5680
5695
|
key: 1,
|
|
5681
5696
|
value: e.rangeValueScaled
|
|
5682
5697
|
}, () => [
|
|
5683
|
-
|
|
5698
|
+
S(C(~~e.rangeValueScaled), 1)
|
|
5684
5699
|
])
|
|
5685
|
-
], 10,
|
|
5700
|
+
], 10, ql)) : p("", !0)
|
|
5686
5701
|
], 4)
|
|
5687
|
-
], 42,
|
|
5688
|
-
i.stepLabels && i.step ? (
|
|
5702
|
+
], 42, jl),
|
|
5703
|
+
i.stepLabels && i.step ? (o(), u("div", Yl, [
|
|
5689
5704
|
y("div", {
|
|
5690
5705
|
class: "w-slider__step-label",
|
|
5691
|
-
onClick: t[6] || (t[6] = (
|
|
5706
|
+
onClick: t[6] || (t[6] = (n) => l.onStepLabelClick(0))
|
|
5692
5707
|
}, C(this.minVal), 1),
|
|
5693
|
-
(
|
|
5708
|
+
(o(!0), u(k, null, L(~~l.numberOfSteps, (n) => (o(), u("div", {
|
|
5694
5709
|
class: "w-slider__step-label",
|
|
5695
|
-
key:
|
|
5696
|
-
onClick: (r) => l.onStepLabelClick(
|
|
5697
|
-
style: R(`left: ${
|
|
5698
|
-
}, C(l.percentToScaled(
|
|
5699
|
-
~~l.numberOfSteps !== l.numberOfSteps ? (
|
|
5710
|
+
key: n,
|
|
5711
|
+
onClick: (r) => l.onStepLabelClick(n * (100 / l.numberOfSteps)),
|
|
5712
|
+
style: R(`left: ${n * (100 / l.numberOfSteps)}%`)
|
|
5713
|
+
}, C(l.percentToScaled(n * (100 / l.numberOfSteps))), 13, Gl))), 128)),
|
|
5714
|
+
~~l.numberOfSteps !== l.numberOfSteps ? (o(), u("div", {
|
|
5700
5715
|
key: 0,
|
|
5701
5716
|
class: "w-slider__step-label",
|
|
5702
|
-
onClick: t[7] || (t[7] = (
|
|
5717
|
+
onClick: t[7] || (t[7] = (n) => l.onStepLabelClick(100)),
|
|
5703
5718
|
style: { left: "100%" }
|
|
5704
5719
|
}, C(this.maxVal), 1)) : p("", !0)
|
|
5705
5720
|
])) : p("", !0)
|
|
5706
5721
|
]),
|
|
5707
|
-
e.$slots["label-right"] ? (
|
|
5722
|
+
e.$slots["label-right"] ? (o(), u("label", {
|
|
5708
5723
|
key: 2,
|
|
5709
5724
|
class: f(["w-slider__label w-slider__label--right w-form-el-shakable", e.labelClasses]),
|
|
5710
5725
|
for: `button--${e._.uid}`
|
|
5711
5726
|
}, [
|
|
5712
5727
|
c(e.$slots, "label-right")
|
|
5713
|
-
], 10,
|
|
5728
|
+
], 10, Jl)) : i.labelRight ? (o(), u("label", {
|
|
5714
5729
|
key: 3,
|
|
5715
5730
|
class: f(["w-slider__label w-slider__label--right w-form-el-shakable", e.labelClasses]),
|
|
5716
5731
|
for: `button--${e._.uid}`,
|
|
5717
5732
|
innerHTML: i.labelRight
|
|
5718
|
-
}, null, 10,
|
|
5733
|
+
}, null, 10, Ql)) : p("", !0)
|
|
5719
5734
|
]),
|
|
5720
5735
|
_: 3
|
|
5721
5736
|
}, 16, ["valid", "wrap", "class"]);
|
|
5722
5737
|
}
|
|
5723
|
-
const
|
|
5738
|
+
const es = {
|
|
5724
5739
|
name: "w-slider",
|
|
5725
|
-
mixins: [
|
|
5740
|
+
mixins: [M],
|
|
5726
5741
|
props: {
|
|
5727
5742
|
modelValue: { type: Number, default: 0 },
|
|
5728
5743
|
color: { type: String, default: "primary" },
|
|
@@ -5858,17 +5873,17 @@ const Zl = {
|
|
|
5858
5873
|
this.rangeValueScaled !== e && (this.rangeValueScaled = e, this.rangeValuePercent = this.scaledToPercent(e));
|
|
5859
5874
|
}
|
|
5860
5875
|
}
|
|
5861
|
-
},
|
|
5862
|
-
function
|
|
5863
|
-
return i.modelValue || i.modelValue === void 0 ? (
|
|
5876
|
+
}, ts = /* @__PURE__ */ v(es, [["render", Zl]]), is = { key: 0 };
|
|
5877
|
+
function ls(e, t, i, s, a, l) {
|
|
5878
|
+
return i.modelValue || i.modelValue === void 0 ? (o(), u("div", {
|
|
5864
5879
|
key: 0,
|
|
5865
5880
|
class: f(["w-spinner", l.classes]),
|
|
5866
5881
|
style: R(l.styles)
|
|
5867
5882
|
}, [
|
|
5868
|
-
l.isThreeDots ? (
|
|
5883
|
+
l.isThreeDots ? (o(), u("span", is)) : p("", !0)
|
|
5869
5884
|
], 6)) : p("", !0);
|
|
5870
5885
|
}
|
|
5871
|
-
const
|
|
5886
|
+
const ss = {
|
|
5872
5887
|
name: "w-spinner",
|
|
5873
5888
|
props: {
|
|
5874
5889
|
modelValue: {},
|
|
@@ -5906,13 +5921,13 @@ const ls = {
|
|
|
5906
5921
|
};
|
|
5907
5922
|
}
|
|
5908
5923
|
}
|
|
5909
|
-
},
|
|
5910
|
-
function
|
|
5911
|
-
return
|
|
5924
|
+
}, os = /* @__PURE__ */ v(ss, [["render", ls]]);
|
|
5925
|
+
function as(e, t, i, s, a, l) {
|
|
5926
|
+
return o(), u("div", {
|
|
5912
5927
|
class: f(["w-steps", l.classes])
|
|
5913
5928
|
}, null, 2);
|
|
5914
5929
|
}
|
|
5915
|
-
const
|
|
5930
|
+
const ns = {
|
|
5916
5931
|
name: "w-steps",
|
|
5917
5932
|
props: {
|
|
5918
5933
|
dark: { type: Boolean },
|
|
@@ -5928,20 +5943,20 @@ const as = {
|
|
|
5928
5943
|
};
|
|
5929
5944
|
}
|
|
5930
5945
|
}
|
|
5931
|
-
},
|
|
5946
|
+
}, rs = /* @__PURE__ */ v(ns, [["render", as]]), ds = ["id", "name", "checked", "disabled", "readonly", "aria-readonly", "required", "tabindex", "aria-checked"], us = ["for"], hs = {
|
|
5932
5947
|
key: 0,
|
|
5933
5948
|
class: "w-switch__track"
|
|
5934
|
-
},
|
|
5949
|
+
}, cs = {
|
|
5935
5950
|
key: 1,
|
|
5936
5951
|
class: "w-switch__thumb"
|
|
5937
|
-
},
|
|
5938
|
-
function
|
|
5939
|
-
const
|
|
5940
|
-
return
|
|
5952
|
+
}, ps = ["for"];
|
|
5953
|
+
function fs(e, t, i, s, a, l) {
|
|
5954
|
+
const n = $("w-progress");
|
|
5955
|
+
return o(), g(T(e.formRegister ? "w-form-element" : "div"), B({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: a.isOn, disabled: e.isDisabled, readonly: e.isReadonly }, {
|
|
5941
5956
|
valid: e.valid,
|
|
5942
5957
|
"onUpdate:valid": t[3] || (t[3] = (r) => e.valid = r),
|
|
5943
5958
|
onReset: t[4] || (t[4] = (r) => {
|
|
5944
|
-
e.$emit("update:modelValue",
|
|
5959
|
+
e.$emit("update:modelValue", a.isOn = null), e.$emit("input", null);
|
|
5945
5960
|
}),
|
|
5946
5961
|
class: l.classes
|
|
5947
5962
|
}), {
|
|
@@ -5951,7 +5966,7 @@ function ps(e, t, i, o, n, l) {
|
|
|
5951
5966
|
id: `w-switch--${e._.uid}`,
|
|
5952
5967
|
type: "checkbox",
|
|
5953
5968
|
name: e.inputName,
|
|
5954
|
-
checked:
|
|
5969
|
+
checked: a.isOn,
|
|
5955
5970
|
disabled: e.isDisabled || e.isReadonly || null,
|
|
5956
5971
|
readonly: e.isReadonly || null,
|
|
5957
5972
|
"aria-readonly": e.isReadonly ? "true" : "false",
|
|
@@ -5959,55 +5974,55 @@ function ps(e, t, i, o, n, l) {
|
|
|
5959
5974
|
tabindex: e.tabindex || null,
|
|
5960
5975
|
onChange: t[0] || (t[0] = (r) => l.onInput()),
|
|
5961
5976
|
onFocus: t[1] || (t[1] = (r) => e.$emit("focus", r)),
|
|
5962
|
-
"aria-checked":
|
|
5977
|
+
"aria-checked": a.isOn || "false",
|
|
5963
5978
|
role: "switch"
|
|
5964
|
-
}, null, 40,
|
|
5965
|
-
l.hasLabel && i.labelOnLeft ? (
|
|
5966
|
-
e.$slots.default || i.label ? (
|
|
5979
|
+
}, null, 40, ds),
|
|
5980
|
+
l.hasLabel && i.labelOnLeft ? (o(), u(k, { key: 0 }, [
|
|
5981
|
+
e.$slots.default || i.label ? (o(), u("label", {
|
|
5967
5982
|
key: 0,
|
|
5968
5983
|
class: f(["w-switch__label w-switch__label--left w-form-el-shakable", e.labelClasses]),
|
|
5969
5984
|
for: `w-switch--${e._.uid}`
|
|
5970
5985
|
}, [
|
|
5971
5986
|
c(e.$slots, "default", {}, () => [
|
|
5972
|
-
|
|
5987
|
+
S(C(i.label), 1)
|
|
5973
5988
|
])
|
|
5974
|
-
], 10,
|
|
5989
|
+
], 10, us)) : p("", !0)
|
|
5975
5990
|
], 64)) : p("", !0),
|
|
5976
|
-
y("div",
|
|
5991
|
+
y("div", B({
|
|
5977
5992
|
class: "w-switch__input",
|
|
5978
5993
|
onClick: t[2] || (t[2] = (r) => {
|
|
5979
5994
|
e.$refs.input.focus(), e.$refs.input.click();
|
|
5980
5995
|
})
|
|
5981
|
-
},
|
|
5982
|
-
e.$slots.track ? (
|
|
5996
|
+
}, H(l.listeners, !0), { class: l.inputClasses }), [
|
|
5997
|
+
e.$slots.track ? (o(), u("div", hs, [
|
|
5983
5998
|
c(e.$slots, "track")
|
|
5984
5999
|
])) : p("", !0),
|
|
5985
|
-
e.$slots.thumb || i.loading ? (
|
|
5986
|
-
i.loading ? (
|
|
6000
|
+
e.$slots.thumb || i.loading ? (o(), u("div", cs, [
|
|
6001
|
+
i.loading ? (o(), g(n, B({
|
|
5987
6002
|
key: 0,
|
|
5988
6003
|
circle: "",
|
|
5989
6004
|
color: "inherit"
|
|
5990
6005
|
}, typeof i.loading == "number" && { "model-value": i.loading }), null, 16)) : c(e.$slots, "thumb", { key: 1 })
|
|
5991
6006
|
])) : p("", !0)
|
|
5992
6007
|
], 16),
|
|
5993
|
-
l.hasLabel && !i.labelOnLeft ? (
|
|
5994
|
-
e.$slots.default || i.label ? (
|
|
6008
|
+
l.hasLabel && !i.labelOnLeft ? (o(), u(k, { key: 1 }, [
|
|
6009
|
+
e.$slots.default || i.label ? (o(), u("label", {
|
|
5995
6010
|
key: 0,
|
|
5996
6011
|
class: f(["w-switch__label w-switch__label--right w-form-el-shakable", e.labelClasses]),
|
|
5997
6012
|
for: `w-switch--${e._.uid}`
|
|
5998
6013
|
}, [
|
|
5999
6014
|
c(e.$slots, "default", {}, () => [
|
|
6000
|
-
|
|
6015
|
+
S(C(i.label), 1)
|
|
6001
6016
|
])
|
|
6002
|
-
], 10,
|
|
6017
|
+
], 10, ps)) : p("", !0)
|
|
6003
6018
|
], 64)) : p("", !0)
|
|
6004
6019
|
]),
|
|
6005
6020
|
_: 3
|
|
6006
6021
|
}, 16, ["valid", "class"]);
|
|
6007
6022
|
}
|
|
6008
|
-
const
|
|
6023
|
+
const ms = {
|
|
6009
6024
|
name: "w-switch",
|
|
6010
|
-
mixins: [
|
|
6025
|
+
mixins: [M],
|
|
6011
6026
|
props: {
|
|
6012
6027
|
modelValue: { default: !1 },
|
|
6013
6028
|
// v-model.
|
|
@@ -6035,6 +6050,10 @@ const fs = {
|
|
|
6035
6050
|
};
|
|
6036
6051
|
},
|
|
6037
6052
|
computed: {
|
|
6053
|
+
listeners() {
|
|
6054
|
+
const { click: e, class: t, style: i, ...s } = this.$attrs;
|
|
6055
|
+
return s;
|
|
6056
|
+
},
|
|
6038
6057
|
hasLabel() {
|
|
6039
6058
|
return this.label || this.$slots.default;
|
|
6040
6059
|
},
|
|
@@ -6073,39 +6092,39 @@ const fs = {
|
|
|
6073
6092
|
this.isOn = e;
|
|
6074
6093
|
}
|
|
6075
6094
|
}
|
|
6076
|
-
},
|
|
6077
|
-
function
|
|
6078
|
-
return
|
|
6095
|
+
}, gs = /* @__PURE__ */ v(ms, [["render", fs]]), bs = { class: "w-tabs__content" };
|
|
6096
|
+
function ys(e, t, i, s, a, l) {
|
|
6097
|
+
return o(), u("div", bs, [
|
|
6079
6098
|
c(e.$slots, "default", { item: i.item })
|
|
6080
6099
|
]);
|
|
6081
6100
|
}
|
|
6082
|
-
const
|
|
6101
|
+
const ws = {
|
|
6083
6102
|
name: "tab-content",
|
|
6084
6103
|
// Keep-alive include/exclude mechanism is component-name-based.
|
|
6085
6104
|
props: { item: Object }
|
|
6086
|
-
},
|
|
6105
|
+
}, ks = /* @__PURE__ */ v(ws, [["render", ys]]), vs = ["onClick", "onFocus", "tabindex", "onKeypress", "aria-selected"], Cs = ["innerHTML"], Ss = {
|
|
6087
6106
|
key: 0,
|
|
6088
6107
|
class: "w-tabs__bar-extra"
|
|
6089
|
-
},
|
|
6108
|
+
}, Bs = {
|
|
6090
6109
|
key: 0,
|
|
6091
6110
|
class: "w-tabs__content-wrap"
|
|
6092
|
-
},
|
|
6093
|
-
function
|
|
6094
|
-
const
|
|
6095
|
-
return
|
|
6111
|
+
}, _s = ["innerHTML"], $s = ["innerHTML"];
|
|
6112
|
+
function Vs(e, t, i, s, a, l) {
|
|
6113
|
+
const n = $("tab-content");
|
|
6114
|
+
return o(), u("div", {
|
|
6096
6115
|
class: f(["w-tabs", l.tabsClasses])
|
|
6097
6116
|
}, [
|
|
6098
6117
|
y("div", {
|
|
6099
6118
|
class: f(["w-tabs__bar", l.tabsBarClasses]),
|
|
6100
6119
|
ref: "tabs-bar"
|
|
6101
6120
|
}, [
|
|
6102
|
-
(
|
|
6121
|
+
(o(!0), u(k, null, L(e.tabs, (r, d) => (o(), u("div", {
|
|
6103
6122
|
class: f(["w-tabs__bar-item", l.barItemClasses(r)]),
|
|
6104
6123
|
key: d,
|
|
6105
6124
|
onClick: (h) => !r._disabled && r._uid !== e.activeTabUid && l.openTab(r._uid),
|
|
6106
6125
|
onFocus: (h) => e.$emit("focus", l.getOriginalItem(r)),
|
|
6107
6126
|
tabindex: !r._disabled && 0,
|
|
6108
|
-
onKeypress:
|
|
6127
|
+
onKeypress: E((h) => !r._disabled && l.openTab(r._uid), ["enter"]),
|
|
6109
6128
|
"aria-selected": r._uid === e.activeTabUid ? "true" : "false",
|
|
6110
6129
|
role: "tab"
|
|
6111
6130
|
}, [
|
|
@@ -6122,25 +6141,25 @@ function $s(e, t, i, o, n, l) {
|
|
|
6122
6141
|
}, () => [
|
|
6123
6142
|
y("div", {
|
|
6124
6143
|
innerHTML: r[i.itemTitleKey]
|
|
6125
|
-
}, null, 8,
|
|
6144
|
+
}, null, 8, Cs)
|
|
6126
6145
|
])
|
|
6127
|
-
], 42,
|
|
6128
|
-
e.$slots["tabs-bar-extra"] ? (
|
|
6146
|
+
], 42, vs))), 128)),
|
|
6147
|
+
e.$slots["tabs-bar-extra"] ? (o(), u("div", Ss, [
|
|
6129
6148
|
c(e.$slots, "tabs-bar-extra")
|
|
6130
6149
|
])) : p("", !0),
|
|
6131
|
-
!i.noSlider && !i.card ? (
|
|
6150
|
+
!i.noSlider && !i.card ? (o(), u("div", {
|
|
6132
6151
|
key: 1,
|
|
6133
6152
|
class: f(["w-tabs__slider", i.sliderColor]),
|
|
6134
6153
|
style: R(l.sliderStyles)
|
|
6135
6154
|
}, null, 6)) : p("", !0)
|
|
6136
6155
|
], 2),
|
|
6137
|
-
e.tabs.length ? (
|
|
6138
|
-
i.keepInDom ? (
|
|
6156
|
+
e.tabs.length ? (o(), u("div", Bs, [
|
|
6157
|
+
i.keepInDom ? (o(), g(oe, {
|
|
6139
6158
|
key: 0,
|
|
6140
6159
|
name: l.transitionName
|
|
6141
6160
|
}, {
|
|
6142
6161
|
default: m(() => [
|
|
6143
|
-
(
|
|
6162
|
+
(o(!0), u(k, null, L(e.tabs, (r, d) => A((o(), g(n, {
|
|
6144
6163
|
key: r._uid,
|
|
6145
6164
|
item: r,
|
|
6146
6165
|
class: f(i.contentClass)
|
|
@@ -6157,10 +6176,10 @@ function $s(e, t, i, o, n, l) {
|
|
|
6157
6176
|
index: r._index + 1,
|
|
6158
6177
|
active: r._index === l.activeTab._index
|
|
6159
6178
|
}, () => [
|
|
6160
|
-
r[i.itemContentKey] ? (
|
|
6179
|
+
r[i.itemContentKey] ? (o(), u("div", {
|
|
6161
6180
|
key: 0,
|
|
6162
6181
|
innerHTML: r[i.itemContentKey]
|
|
6163
|
-
}, null, 8,
|
|
6182
|
+
}, null, 8, _s)) : p("", !0)
|
|
6164
6183
|
])
|
|
6165
6184
|
]),
|
|
6166
6185
|
_: 2
|
|
@@ -6169,22 +6188,22 @@ function $s(e, t, i, o, n, l) {
|
|
|
6169
6188
|
])), 128))
|
|
6170
6189
|
]),
|
|
6171
6190
|
_: 3
|
|
6172
|
-
}, 8, ["name"])) : (
|
|
6191
|
+
}, 8, ["name"])) : (o(), g(x, {
|
|
6173
6192
|
key: 1,
|
|
6174
6193
|
name: l.transitionName,
|
|
6175
6194
|
mode: l.transitionMode
|
|
6176
6195
|
}, {
|
|
6177
6196
|
default: m(() => [
|
|
6178
|
-
(
|
|
6197
|
+
(o(), g(Ve, {
|
|
6179
6198
|
exclude: i.keepAlive ? "" : "tab-content"
|
|
6180
6199
|
}, [
|
|
6181
|
-
(
|
|
6200
|
+
(o(), g(n, {
|
|
6182
6201
|
key: e.activeTabUid,
|
|
6183
6202
|
item: l.activeTab,
|
|
6184
6203
|
class: f(i.contentClass)
|
|
6185
6204
|
}, {
|
|
6186
6205
|
default: m(({ item: r }) => [
|
|
6187
|
-
r ? (
|
|
6206
|
+
r ? (o(), u(k, { key: 0 }, [
|
|
6188
6207
|
e.$slots[`item-content.${r._index + 1}`] ? c(e.$slots, `item-content.${r._index + 1}`, {
|
|
6189
6208
|
key: 0,
|
|
6190
6209
|
item: l.getOriginalItem(r),
|
|
@@ -6196,10 +6215,10 @@ function $s(e, t, i, o, n, l) {
|
|
|
6196
6215
|
index: r._index + 1,
|
|
6197
6216
|
active: r._uid === e.activeTabUid
|
|
6198
6217
|
}, () => [
|
|
6199
|
-
r[i.itemContentKey] ? (
|
|
6218
|
+
r[i.itemContentKey] ? (o(), u("div", {
|
|
6200
6219
|
key: 0,
|
|
6201
6220
|
innerHTML: r[i.itemContentKey]
|
|
6202
|
-
}, null, 8,
|
|
6221
|
+
}, null, 8, $s)) : p("", !0)
|
|
6203
6222
|
])
|
|
6204
6223
|
], 64)) : p("", !0)
|
|
6205
6224
|
]),
|
|
@@ -6213,7 +6232,7 @@ function $s(e, t, i, o, n, l) {
|
|
|
6213
6232
|
], 2);
|
|
6214
6233
|
}
|
|
6215
6234
|
let fe = 0;
|
|
6216
|
-
const
|
|
6235
|
+
const Is = {
|
|
6217
6236
|
name: "w-tabs",
|
|
6218
6237
|
props: {
|
|
6219
6238
|
modelValue: { type: [Number, String] },
|
|
@@ -6239,7 +6258,7 @@ const Vs = {
|
|
|
6239
6258
|
keepAlive: { type: Boolean, default: !0 },
|
|
6240
6259
|
keepInDom: { type: Boolean, default: !1 }
|
|
6241
6260
|
},
|
|
6242
|
-
components: { TabContent:
|
|
6261
|
+
components: { TabContent: ks },
|
|
6243
6262
|
emits: ["input", "update:modelValue", "focus"],
|
|
6244
6263
|
data: () => ({
|
|
6245
6264
|
tabs: [],
|
|
@@ -6315,11 +6334,11 @@ const Vs = {
|
|
|
6315
6334
|
}));
|
|
6316
6335
|
},
|
|
6317
6336
|
reopenTheActiveTab() {
|
|
6318
|
-
var t, i,
|
|
6337
|
+
var t, i, s;
|
|
6319
6338
|
if (this.tabs.length === 1)
|
|
6320
6339
|
return this.openTab(this.tabs[0]._uid);
|
|
6321
6340
|
let e = (t = this.tabsByUid[this.activeTabUid]) == null ? void 0 : t._uid;
|
|
6322
|
-
e || (e = (i = this.tabs[this.activeTabIndex]) == null ? void 0 : i._uid), e || (e = (
|
|
6341
|
+
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);
|
|
6323
6342
|
},
|
|
6324
6343
|
onResize() {
|
|
6325
6344
|
this.updateSlider(!1);
|
|
@@ -6347,16 +6366,16 @@ const Vs = {
|
|
|
6347
6366
|
this.activeTabEl = t && t.querySelector(".w-tabs__bar-item--active");
|
|
6348
6367
|
}
|
|
6349
6368
|
if (!this.fillBar && this.activeTabEl) {
|
|
6350
|
-
const { left: t, width: i } = this.activeTabEl.getBoundingClientRect(),
|
|
6351
|
-
this.slider.left = `${t -
|
|
6369
|
+
const { left: t, width: i } = this.activeTabEl.getBoundingClientRect(), s = this.activeTabEl.parentNode, { left: a } = s.getBoundingClientRect(), { borderLeftWidth: l } = getComputedStyle(s);
|
|
6370
|
+
this.slider.left = `${t - a - parseInt(l) + s.scrollLeft}px`, this.slider.width = `${i}px`;
|
|
6352
6371
|
} else
|
|
6353
6372
|
this.slider.left = `${this.activeTab._index * 100 / this.tabs.length}%`, this.slider.width = `${100 / this.tabs.length}%`;
|
|
6354
6373
|
},
|
|
6355
6374
|
updateActiveTab(e) {
|
|
6356
6375
|
var t, i;
|
|
6357
6376
|
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(() => {
|
|
6358
|
-
const
|
|
6359
|
-
this.activeTabEl =
|
|
6377
|
+
const s = this.$refs["tabs-bar"];
|
|
6378
|
+
this.activeTabEl = s && s.querySelector(`.w-tabs__bar-item:nth-child(${e + 1})`), this.activeTabEl && this.activeTabEl.scrollIntoView({ behavior: "smooth", block: "nearest", inline: "nearest" });
|
|
6360
6379
|
}));
|
|
6361
6380
|
},
|
|
6362
6381
|
// Return the original item (so there is no `_index`, etc.).
|
|
@@ -6389,227 +6408,227 @@ const Vs = {
|
|
|
6389
6408
|
e ? window.removeEventListener("resize", this.onResize) : (this.updateSlider(), window.addEventListener("resize", this.onResize));
|
|
6390
6409
|
}
|
|
6391
6410
|
}
|
|
6392
|
-
},
|
|
6411
|
+
}, Ts = /* @__PURE__ */ v(Is, [["render", Vs]]), Ls = { class: "w-table__scroll-wrap" }, Rs = { ref: "colgroup" }, Ps = ["width"], xs = { key: 0 }, Os = ["onClick"], zs = ["innerHTML"], Ms = {
|
|
6393
6412
|
key: 0,
|
|
6394
6413
|
class: "w-table__progress-bar"
|
|
6395
|
-
},
|
|
6414
|
+
}, Es = ["colspan"], Ws = {
|
|
6396
6415
|
key: 0,
|
|
6397
6416
|
class: "w-table__progress-bar"
|
|
6398
|
-
},
|
|
6417
|
+
}, As = ["colspan"], Ks = { class: "w-table__loading-text" }, Ns = {
|
|
6399
6418
|
key: 1,
|
|
6400
6419
|
class: "no-data"
|
|
6401
|
-
},
|
|
6420
|
+
}, Ds = ["colspan"], Hs = ["onClick"], Fs = ["data-label"], js = ["data-label"], Us = ["innerHTML"], qs = {
|
|
6402
6421
|
key: 2,
|
|
6403
6422
|
class: "w-table__row w-table__row--expansion"
|
|
6404
|
-
},
|
|
6423
|
+
}, Xs = ["colspan"], Ys = { key: 0 }, Gs = {
|
|
6405
6424
|
key: 3,
|
|
6406
6425
|
class: "w-table__extra-row"
|
|
6407
|
-
},
|
|
6426
|
+
}, Js = {
|
|
6408
6427
|
key: 1,
|
|
6409
6428
|
class: "w-table__footer"
|
|
6410
|
-
},
|
|
6429
|
+
}, Qs = {
|
|
6411
6430
|
key: 1,
|
|
6412
6431
|
class: "w-table__row"
|
|
6413
|
-
},
|
|
6432
|
+
}, Zs = ["colspan"], eo = {
|
|
6414
6433
|
key: 0,
|
|
6415
6434
|
class: "w-table__pagination w-pagination"
|
|
6416
|
-
},
|
|
6417
|
-
function
|
|
6418
|
-
const
|
|
6419
|
-
return
|
|
6435
|
+
}, to = { class: "pages-wrap" }, io = { class: "w-pagination__results" };
|
|
6436
|
+
function lo(e, t, i, s, a, l) {
|
|
6437
|
+
const n = $("w-icon"), r = $("w-progress"), d = $("w-transition-fade"), h = $("w-transition-expand"), w = $("w-select"), _ = $("w-button");
|
|
6438
|
+
return o(), u("div", {
|
|
6420
6439
|
class: f(["w-table w-table--wrap", l.classes])
|
|
6421
6440
|
}, [
|
|
6422
|
-
y("div",
|
|
6441
|
+
y("div", Ls, [
|
|
6423
6442
|
y("table", {
|
|
6424
6443
|
class: "w-table__table",
|
|
6425
|
-
onMousedown: t[1] || (t[1] = (...
|
|
6426
|
-
onMouseover: t[2] || (t[2] = (...
|
|
6427
|
-
onMouseout: t[3] || (t[3] = (...
|
|
6444
|
+
onMousedown: t[1] || (t[1] = (...b) => l.onMouseDown && l.onMouseDown(...b)),
|
|
6445
|
+
onMouseover: t[2] || (t[2] = (...b) => l.onMouseOver && l.onMouseOver(...b)),
|
|
6446
|
+
onMouseout: t[3] || (t[3] = (...b) => l.onMouseOut && l.onMouseOut(...b))
|
|
6428
6447
|
}, [
|
|
6429
|
-
y("colgroup",
|
|
6430
|
-
(
|
|
6431
|
-
class: f(["w-table__col", l.colClasses[
|
|
6432
|
-
key:
|
|
6433
|
-
width:
|
|
6434
|
-
}, null, 10,
|
|
6448
|
+
y("colgroup", Rs, [
|
|
6449
|
+
(o(!0), u(k, null, L(i.headers, (b, V) => (o(), u("col", {
|
|
6450
|
+
class: f(["w-table__col", l.colClasses[V]]),
|
|
6451
|
+
key: V,
|
|
6452
|
+
width: b.width || null
|
|
6453
|
+
}, null, 10, Ps))), 128))
|
|
6435
6454
|
], 512),
|
|
6436
|
-
i.noHeaders ? p("", !0) : (
|
|
6455
|
+
i.noHeaders ? p("", !0) : (o(), u("thead", xs, [
|
|
6437
6456
|
y("tr", null, [
|
|
6438
|
-
(
|
|
6439
|
-
class: f(["w-table__header", l.headerClasses(
|
|
6440
|
-
key:
|
|
6441
|
-
onClick: (P) => !e.colResizing.dragging &&
|
|
6457
|
+
(o(!0), u(k, null, L(i.headers, (b, V) => (o(), u("th", {
|
|
6458
|
+
class: f(["w-table__header", l.headerClasses(b)]),
|
|
6459
|
+
key: V,
|
|
6460
|
+
onClick: (P) => !e.colResizing.dragging && b.sortable !== !1 && l.sortTable(b)
|
|
6442
6461
|
}, [
|
|
6443
|
-
|
|
6462
|
+
b.sortable !== !1 && b.align === "right" ? (o(), g(n, {
|
|
6444
6463
|
key: 0,
|
|
6445
|
-
class: f(["w-table__header-sort", l.headerSortClasses(
|
|
6464
|
+
class: f(["w-table__header-sort", l.headerSortClasses(b)])
|
|
6446
6465
|
}, {
|
|
6447
6466
|
default: m(() => [
|
|
6448
|
-
|
|
6467
|
+
S("wi-arrow-down")
|
|
6449
6468
|
]),
|
|
6450
6469
|
_: 2
|
|
6451
6470
|
}, 1032, ["class"])) : p("", !0),
|
|
6452
|
-
|
|
6471
|
+
b.label ? (o(), u(k, { key: 1 }, [
|
|
6453
6472
|
e.$slots["header-label"] ? c(e.$slots, "header-label", {
|
|
6454
6473
|
key: 0,
|
|
6455
|
-
header:
|
|
6456
|
-
label:
|
|
6457
|
-
index:
|
|
6474
|
+
header: b,
|
|
6475
|
+
label: b.label,
|
|
6476
|
+
index: V + 1
|
|
6458
6477
|
}, () => [
|
|
6459
|
-
|
|
6460
|
-
]) : (
|
|
6478
|
+
S(C(b.label || ""), 1)
|
|
6479
|
+
]) : (o(), u("span", {
|
|
6461
6480
|
key: 1,
|
|
6462
|
-
innerHTML:
|
|
6463
|
-
}, null, 8,
|
|
6481
|
+
innerHTML: b.label || ""
|
|
6482
|
+
}, null, 8, zs))
|
|
6464
6483
|
], 64)) : p("", !0),
|
|
6465
|
-
|
|
6484
|
+
b.sortable !== !1 && b.align !== "right" ? (o(), g(n, {
|
|
6466
6485
|
key: 2,
|
|
6467
|
-
class: f(["w-table__header-sort", l.headerSortClasses(
|
|
6486
|
+
class: f(["w-table__header-sort", l.headerSortClasses(b)])
|
|
6468
6487
|
}, {
|
|
6469
6488
|
default: m(() => [
|
|
6470
|
-
|
|
6489
|
+
S("wi-arrow-down")
|
|
6471
6490
|
]),
|
|
6472
6491
|
_: 2
|
|
6473
6492
|
}, 1032, ["class"])) : p("", !0),
|
|
6474
|
-
|
|
6493
|
+
V < i.headers.length - 1 && i.resizableColumns ? (o(), u("span", {
|
|
6475
6494
|
key: 3,
|
|
6476
|
-
class: f(["w-table__col-resizer", { "w-table__col-resizer--hover": e.colResizing.hover ===
|
|
6495
|
+
class: f(["w-table__col-resizer", { "w-table__col-resizer--hover": e.colResizing.hover === V, "w-table__col-resizer--active": e.colResizing.columnIndex === V }]),
|
|
6477
6496
|
onClick: t[0] || (t[0] = z(() => {
|
|
6478
6497
|
}, ["stop"]))
|
|
6479
6498
|
}, null, 2)) : p("", !0)
|
|
6480
6499
|
], 10, Os))), 128))
|
|
6481
6500
|
]),
|
|
6482
|
-
|
|
6501
|
+
I(d, null, {
|
|
6483
6502
|
default: m(() => [
|
|
6484
|
-
i.loading === "header" ? (
|
|
6503
|
+
i.loading === "header" ? (o(), u("tr", Ms, [
|
|
6485
6504
|
y("td", {
|
|
6486
6505
|
colspan: i.headers.length
|
|
6487
6506
|
}, [
|
|
6488
|
-
|
|
6489
|
-
], 8,
|
|
6507
|
+
I(r, { tile: "" })
|
|
6508
|
+
], 8, Es)
|
|
6490
6509
|
])) : p("", !0)
|
|
6491
6510
|
]),
|
|
6492
6511
|
_: 1
|
|
6493
6512
|
})
|
|
6494
6513
|
])),
|
|
6495
6514
|
y("tbody", null, [
|
|
6496
|
-
i.loading === !0 ? (
|
|
6515
|
+
i.loading === !0 ? (o(), u("tr", Ws, [
|
|
6497
6516
|
y("td", {
|
|
6498
6517
|
colspan: i.headers.length
|
|
6499
6518
|
}, [
|
|
6500
|
-
|
|
6501
|
-
y("div",
|
|
6519
|
+
I(r, { tile: "" }),
|
|
6520
|
+
y("div", Ks, [
|
|
6502
6521
|
c(e.$slots, "loading", {}, () => [
|
|
6503
|
-
|
|
6522
|
+
S("Loading...")
|
|
6504
6523
|
])
|
|
6505
6524
|
])
|
|
6506
|
-
], 8,
|
|
6507
|
-
])) : l.tableItems.length ? p("", !0) : (
|
|
6525
|
+
], 8, As)
|
|
6526
|
+
])) : l.tableItems.length ? p("", !0) : (o(), u("tr", Ns, [
|
|
6508
6527
|
y("td", {
|
|
6509
6528
|
class: "w-table__cell text-center",
|
|
6510
6529
|
colspan: i.headers.length
|
|
6511
6530
|
}, [
|
|
6512
6531
|
c(e.$slots, "no-data", {}, () => [
|
|
6513
|
-
|
|
6532
|
+
S("No data to show.")
|
|
6514
6533
|
])
|
|
6515
|
-
], 8,
|
|
6534
|
+
], 8, Ds)
|
|
6516
6535
|
])),
|
|
6517
|
-
l.tableItems.length && i.loading !== !0 ? (
|
|
6536
|
+
l.tableItems.length && i.loading !== !0 ? (o(!0), u(k, { key: 2 }, L(l.paginatedItems, (b, V) => (o(), u(k, { key: V }, [
|
|
6518
6537
|
e.$slots.item ? c(e.$slots, "item", {
|
|
6519
6538
|
key: 0,
|
|
6520
|
-
item:
|
|
6521
|
-
index:
|
|
6522
|
-
select: () => l.doSelectRow(
|
|
6523
|
-
classes: { "w-table__row": !0, "w-table__row--selected": l.selectedRowsByUid[
|
|
6524
|
-
}) : (
|
|
6539
|
+
item: b,
|
|
6540
|
+
index: V + 1,
|
|
6541
|
+
select: () => l.doSelectRow(b, V),
|
|
6542
|
+
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 }
|
|
6543
|
+
}) : (o(), u("tr", {
|
|
6525
6544
|
key: 1,
|
|
6526
|
-
class: f(["w-table__row", { "w-table__row--selected": l.selectedRowsByUid[
|
|
6527
|
-
onClick: (P) => l.doSelectRow(
|
|
6545
|
+
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 }]),
|
|
6546
|
+
onClick: (P) => l.doSelectRow(b, V)
|
|
6528
6547
|
}, [
|
|
6529
|
-
(
|
|
6530
|
-
e.$slots[`item-cell.${P.key}`] || e.$slots[`item-cell.${
|
|
6548
|
+
(o(!0), u(k, null, L(i.headers, (P, O) => (o(), u(k, null, [
|
|
6549
|
+
e.$slots[`item-cell.${P.key}`] || e.$slots[`item-cell.${O + 1}`] || e.$slots["item-cell"] ? (o(), u("td", {
|
|
6531
6550
|
class: f(["w-table__cell", { [`text-${P.align || "left"}`]: !0, "w-table__cell--sticky": P.sticky }]),
|
|
6532
|
-
key: `${
|
|
6551
|
+
key: `${O}-a`,
|
|
6533
6552
|
"data-label": P.label
|
|
6534
6553
|
}, [
|
|
6535
6554
|
e.$slots[`item-cell.${P.key}`] ? c(e.$slots, `item-cell.${P.key}`, {
|
|
6536
6555
|
key: 0,
|
|
6537
6556
|
header: P,
|
|
6538
|
-
item:
|
|
6539
|
-
label:
|
|
6540
|
-
index:
|
|
6541
|
-
}) : e.$slots[`item-cell.${
|
|
6557
|
+
item: b,
|
|
6558
|
+
label: b[P.key] || "",
|
|
6559
|
+
index: V + 1
|
|
6560
|
+
}) : e.$slots[`item-cell.${O + 1}`] ? c(e.$slots, `item-cell.${O + 1}`, {
|
|
6542
6561
|
key: 1,
|
|
6543
6562
|
header: P,
|
|
6544
|
-
item:
|
|
6545
|
-
label:
|
|
6546
|
-
index:
|
|
6563
|
+
item: b,
|
|
6564
|
+
label: b[P.key] || "",
|
|
6565
|
+
index: V + 1
|
|
6547
6566
|
}) : e.$slots["item-cell"] ? c(e.$slots, "item-cell", {
|
|
6548
6567
|
key: 2,
|
|
6549
6568
|
header: P,
|
|
6550
|
-
item:
|
|
6551
|
-
label:
|
|
6552
|
-
index:
|
|
6569
|
+
item: b,
|
|
6570
|
+
label: b[P.key] || "",
|
|
6571
|
+
index: V + 1
|
|
6553
6572
|
}) : p("", !0),
|
|
6554
|
-
|
|
6573
|
+
O < i.headers.length - 1 && i.resizableColumns ? (o(), u("span", {
|
|
6555
6574
|
key: 3,
|
|
6556
|
-
class: f(["w-table__col-resizer", { "w-table__col-resizer--hover": e.colResizing.hover ===
|
|
6575
|
+
class: f(["w-table__col-resizer", { "w-table__col-resizer--hover": e.colResizing.hover === O, "w-table__col-resizer--active": e.colResizing.columnIndex === O }])
|
|
6557
6576
|
}, null, 2)) : p("", !0)
|
|
6558
|
-
], 10,
|
|
6577
|
+
], 10, Fs)) : (o(), u("td", {
|
|
6559
6578
|
class: f(["w-table__cell", { [`text-${P.align || "left"}`]: !0, "w-table__cell--sticky": P.sticky }]),
|
|
6560
|
-
key: `${
|
|
6579
|
+
key: `${O}-b`,
|
|
6561
6580
|
"data-label": P.label
|
|
6562
6581
|
}, [
|
|
6563
6582
|
y("div", {
|
|
6564
|
-
innerHTML:
|
|
6565
|
-
}, null, 8,
|
|
6566
|
-
|
|
6583
|
+
innerHTML: b[P.key] || ""
|
|
6584
|
+
}, null, 8, Us),
|
|
6585
|
+
O < i.headers.length - 1 && i.resizableColumns ? (o(), u("span", {
|
|
6567
6586
|
key: 0,
|
|
6568
|
-
class: f(["w-table__col-resizer", { "w-table__col-resizer--hover": e.colResizing.hover ===
|
|
6587
|
+
class: f(["w-table__col-resizer", { "w-table__col-resizer--hover": e.colResizing.hover === O, "w-table__col-resizer--active": e.colResizing.columnIndex === O }])
|
|
6569
6588
|
}, null, 2)) : p("", !0)
|
|
6570
|
-
], 10,
|
|
6589
|
+
], 10, js))
|
|
6571
6590
|
], 64))), 256))
|
|
6572
|
-
], 10,
|
|
6573
|
-
l.expandedRowsByUid[
|
|
6591
|
+
], 10, Hs)),
|
|
6592
|
+
l.expandedRowsByUid[b._uid] ? (o(), u("tr", qs, [
|
|
6574
6593
|
y("td", {
|
|
6575
6594
|
class: "w-table__cell",
|
|
6576
6595
|
colspan: i.headers.length
|
|
6577
6596
|
}, [
|
|
6578
|
-
|
|
6597
|
+
I(h, { y: "" }, {
|
|
6579
6598
|
default: m(() => [
|
|
6580
|
-
l.expandedRowsByUid[
|
|
6599
|
+
l.expandedRowsByUid[b._uid] ? (o(), u("div", Ys, [
|
|
6581
6600
|
c(e.$slots, "row-expansion", {
|
|
6582
|
-
item:
|
|
6583
|
-
index:
|
|
6601
|
+
item: b,
|
|
6602
|
+
index: V + 1
|
|
6584
6603
|
})
|
|
6585
6604
|
])) : p("", !0),
|
|
6586
|
-
|
|
6605
|
+
V < i.headers.length - 1 && i.resizableColumns ? (o(), u("span", {
|
|
6587
6606
|
key: 1,
|
|
6588
|
-
class: f(["w-table__col-resizer", { "w-table__col-resizer--hover": e.colResizing.hover ===
|
|
6607
|
+
class: f(["w-table__col-resizer", { "w-table__col-resizer--hover": e.colResizing.hover === V, "w-table__col-resizer--active": e.colResizing.columnIndex === e.j }])
|
|
6589
6608
|
}, null, 2)) : p("", !0)
|
|
6590
6609
|
]),
|
|
6591
6610
|
_: 2
|
|
6592
6611
|
}, 1024)
|
|
6593
|
-
], 8,
|
|
6612
|
+
], 8, Xs)
|
|
6594
6613
|
])) : p("", !0)
|
|
6595
6614
|
], 64))), 128)) : p("", !0),
|
|
6596
|
-
e.$slots["extra-row"] ? (
|
|
6615
|
+
e.$slots["extra-row"] ? (o(), u("div", Gs, [
|
|
6597
6616
|
c(e.$slots, "extra-row")
|
|
6598
6617
|
])) : p("", !0)
|
|
6599
6618
|
]),
|
|
6600
|
-
e.$slots.footer || e.$slots["footer-row"] ? (
|
|
6601
|
-
e.$slots["footer-row"] ? c(e.$slots, "footer-row", { key: 0 }) : e.$slots.footer ? (
|
|
6619
|
+
e.$slots.footer || e.$slots["footer-row"] ? (o(), u("tfoot", Js, [
|
|
6620
|
+
e.$slots["footer-row"] ? c(e.$slots, "footer-row", { key: 0 }) : e.$slots.footer ? (o(), u("tr", Qs, [
|
|
6602
6621
|
y("td", {
|
|
6603
6622
|
class: "w-table__cell",
|
|
6604
6623
|
colspan: i.headers.length
|
|
6605
6624
|
}, [
|
|
6606
6625
|
c(e.$slots, "footer")
|
|
6607
|
-
], 8,
|
|
6626
|
+
], 8, Zs)
|
|
6608
6627
|
])) : p("", !0)
|
|
6609
6628
|
])) : p("", !0)
|
|
6610
6629
|
], 32)
|
|
6611
6630
|
]),
|
|
6612
|
-
i.pagination && e.paginationConfig ? (
|
|
6631
|
+
i.pagination && e.paginationConfig ? (o(), u("div", eo, [
|
|
6613
6632
|
c(e.$slots, "pagination", {
|
|
6614
6633
|
range: `${e.paginationConfig.start}-${e.paginationConfig.end}`,
|
|
6615
6634
|
total: e.paginationConfig.total,
|
|
@@ -6617,77 +6636,77 @@ function io(e, t, i, o, n, l) {
|
|
|
6617
6636
|
page: e.paginationConfig.page,
|
|
6618
6637
|
goToPage: l.goToPage
|
|
6619
6638
|
}, () => [
|
|
6620
|
-
e.paginationConfig.itemsPerPageOptions ? (
|
|
6639
|
+
e.paginationConfig.itemsPerPageOptions ? (o(), g(w, {
|
|
6621
6640
|
key: 0,
|
|
6622
6641
|
class: "w-pagination__items-per-page",
|
|
6623
6642
|
modelValue: e.paginationConfig.itemsPerPage,
|
|
6624
|
-
"onUpdate:modelValue": t[4] || (t[4] = (
|
|
6625
|
-
onInput: t[5] || (t[5] = (
|
|
6643
|
+
"onUpdate:modelValue": t[4] || (t[4] = (b) => e.paginationConfig.itemsPerPage = b),
|
|
6644
|
+
onInput: t[5] || (t[5] = (b) => l.updatePaginationConfig({ itemsPerPage: e.paginationConfig.itemsPerPage })),
|
|
6626
6645
|
items: e.paginationConfig.itemsPerPageOptions,
|
|
6627
6646
|
"label-position": "left",
|
|
6628
6647
|
label: "Items per page",
|
|
6629
6648
|
"label-color": "inherit"
|
|
6630
6649
|
}, null, 8, ["modelValue", "items"])) : p("", !0),
|
|
6631
|
-
y("div",
|
|
6632
|
-
|
|
6650
|
+
y("div", to, [
|
|
6651
|
+
I(_, {
|
|
6633
6652
|
class: "w-pagination__arrow w-pagination__arrow--prev",
|
|
6634
|
-
onClick: t[6] || (t[6] = (
|
|
6653
|
+
onClick: t[6] || (t[6] = (b) => l.goToPage("-1")),
|
|
6635
6654
|
disabled: e.paginationConfig.page <= 1,
|
|
6636
6655
|
icon: "wi-chevron-left",
|
|
6637
6656
|
text: "",
|
|
6638
6657
|
lg: ""
|
|
6639
6658
|
}, null, 8, ["disabled"]),
|
|
6640
|
-
e.paginationConfig.pagesCount > 7 ? (
|
|
6641
|
-
[1, e.paginationConfig.pagesCount, e.paginationConfig.page - 1, e.paginationConfig.page, e.paginationConfig.page + 1].includes(
|
|
6659
|
+
e.paginationConfig.pagesCount > 7 ? (o(!0), u(k, { key: 0 }, L(e.paginationConfig.pagesCount, (b) => (o(), u(k, { key: b }, [
|
|
6660
|
+
[1, e.paginationConfig.pagesCount, e.paginationConfig.page - 1, e.paginationConfig.page, e.paginationConfig.page + 1].includes(b) ? (o(), g(_, {
|
|
6642
6661
|
key: 0,
|
|
6643
|
-
class: f(["w-pagination__page", { "w-pagination__page--active":
|
|
6644
|
-
onClick: (
|
|
6662
|
+
class: f(["w-pagination__page", { "w-pagination__page--active": b === e.paginationConfig.page }]),
|
|
6663
|
+
onClick: (V) => b !== e.paginationConfig.page && l.goToPage(b),
|
|
6645
6664
|
round: "",
|
|
6646
6665
|
lg: ""
|
|
6647
6666
|
}, {
|
|
6648
6667
|
default: m(() => [
|
|
6649
|
-
|
|
6668
|
+
S(C(b), 1)
|
|
6650
6669
|
]),
|
|
6651
6670
|
_: 2
|
|
6652
|
-
}, 1032, ["onClick", "class"])) : [1, e.paginationConfig.pagesCount, e.paginationConfig.page - 1, e.paginationConfig.page, e.paginationConfig.page + 1].includes(
|
|
6671
|
+
}, 1032, ["onClick", "class"])) : [1, e.paginationConfig.pagesCount, e.paginationConfig.page - 1, e.paginationConfig.page, e.paginationConfig.page + 1].includes(b - 1) ? (o(), g(_, {
|
|
6653
6672
|
key: 1,
|
|
6654
|
-
class: f(["w-pagination__page", { "w-pagination__page--active":
|
|
6655
|
-
onClick: (
|
|
6673
|
+
class: f(["w-pagination__page", { "w-pagination__page--active": b === e.paginationConfig.page }]),
|
|
6674
|
+
onClick: (V) => b !== e.paginationConfig.page && l.goToPage(b),
|
|
6656
6675
|
round: "",
|
|
6657
6676
|
lg: ""
|
|
6658
6677
|
}, {
|
|
6659
6678
|
default: m(() => [
|
|
6660
|
-
|
|
6679
|
+
S("...")
|
|
6661
6680
|
]),
|
|
6662
6681
|
_: 2
|
|
6663
6682
|
}, 1032, ["onClick", "class"])) : p("", !0)
|
|
6664
|
-
], 64))), 128)) : (
|
|
6665
|
-
class: f(["w-pagination__page", { "w-pagination__page--active":
|
|
6666
|
-
key:
|
|
6667
|
-
onClick: (
|
|
6683
|
+
], 64))), 128)) : (o(!0), u(k, { key: 1 }, L(e.paginationConfig.pagesCount, (b) => (o(), g(_, {
|
|
6684
|
+
class: f(["w-pagination__page", { "w-pagination__page--active": b === e.paginationConfig.page }]),
|
|
6685
|
+
key: b,
|
|
6686
|
+
onClick: (V) => b !== e.paginationConfig.page && l.goToPage(b),
|
|
6668
6687
|
round: "",
|
|
6669
6688
|
lg: ""
|
|
6670
6689
|
}, {
|
|
6671
6690
|
default: m(() => [
|
|
6672
|
-
|
|
6691
|
+
S(C(b), 1)
|
|
6673
6692
|
]),
|
|
6674
6693
|
_: 2
|
|
6675
6694
|
}, 1032, ["onClick", "class"]))), 128)),
|
|
6676
|
-
|
|
6695
|
+
I(_, {
|
|
6677
6696
|
class: "w-pagination__arrow w-pagination__arrow--next",
|
|
6678
|
-
onClick: t[7] || (t[7] = (
|
|
6697
|
+
onClick: t[7] || (t[7] = (b) => l.goToPage("+1")),
|
|
6679
6698
|
disabled: e.paginationConfig.page >= e.paginationConfig.pagesCount,
|
|
6680
6699
|
icon: "wi-chevron-right",
|
|
6681
6700
|
text: "",
|
|
6682
6701
|
lg: ""
|
|
6683
6702
|
}, null, 8, ["disabled"])
|
|
6684
6703
|
]),
|
|
6685
|
-
y("span",
|
|
6704
|
+
y("span", io, C(e.paginationConfig.start) + "-" + C(e.paginationConfig.end || e.paginationConfig.total) + " of " + C(e.paginationConfig.total), 1)
|
|
6686
6705
|
])
|
|
6687
6706
|
])) : p("", !0)
|
|
6688
6707
|
], 2);
|
|
6689
6708
|
}
|
|
6690
|
-
const me = 15,
|
|
6709
|
+
const me = 15, so = {
|
|
6691
6710
|
name: "w-table",
|
|
6692
6711
|
props: {
|
|
6693
6712
|
items: { type: Array, required: !0 },
|
|
@@ -6793,7 +6812,7 @@ const me = 15, lo = {
|
|
|
6793
6812
|
if (!this.activeSorting.length || this.sortFunction || this.fetch)
|
|
6794
6813
|
return this.filteredItems;
|
|
6795
6814
|
const e = this.activeSorting[0].replace(/^[+-]/, ""), t = this.activeSorting[0][0] === "-";
|
|
6796
|
-
return [...this.filteredItems].sort((i,
|
|
6815
|
+
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)));
|
|
6797
6816
|
},
|
|
6798
6817
|
paginatedItems() {
|
|
6799
6818
|
return typeof this.fetch == "function" ? this.sortedItems : this.sortedItems.slice(this.paginationConfig.start - 1, this.paginationConfig.end);
|
|
@@ -6858,28 +6877,28 @@ const me = 15, lo = {
|
|
|
6858
6877
|
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();
|
|
6859
6878
|
},
|
|
6860
6879
|
doSelectRow(e, t) {
|
|
6861
|
-
const i = this.expandableRows === "" ? !0 : this.expandableRows,
|
|
6880
|
+
const i = this.expandableRows === "" ? !0 : this.expandableRows, s = this.selectableRows === "" ? !0 : this.selectableRows;
|
|
6862
6881
|
if (i) {
|
|
6863
|
-
const
|
|
6864
|
-
|
|
6882
|
+
const a = this.expandedRowsByUid[e._uid] === void 0;
|
|
6883
|
+
a ? this.expandableRows.toString() === "1" ? this.expandedRowsInternal = [e._uid] : this.expandedRowsInternal.push(e._uid) : this.expandedRowsInternal = this.expandedRowsInternal.filter((l) => l !== e._uid), this.$emit(
|
|
6865
6884
|
"row-expand",
|
|
6866
6885
|
{
|
|
6867
6886
|
item: e,
|
|
6868
6887
|
index: t,
|
|
6869
|
-
expanded:
|
|
6888
|
+
expanded: a,
|
|
6870
6889
|
expandedRows: this.expandedRowsInternal.map((l) => this.filteredItems[l])
|
|
6871
6890
|
}
|
|
6872
6891
|
), this.$emit("update:expanded-rows", this.expandedRowsInternal);
|
|
6873
|
-
} else if (
|
|
6874
|
-
let
|
|
6892
|
+
} else if (s) {
|
|
6893
|
+
let a = !1;
|
|
6875
6894
|
const l = this.selectedRowsByUid[e._uid] === void 0;
|
|
6876
|
-
l ? (this.selectableRows.toString() === "1" ? this.selectedRowsInternal = [e._uid] : this.selectedRowsInternal.push(e._uid),
|
|
6895
|
+
l ? (this.selectableRows.toString() === "1" ? this.selectedRowsInternal = [e._uid] : this.selectedRowsInternal.push(e._uid), a = !0) : (!this.forceSelection || this.selectedRowsInternal.length > 1) && (this.selectedRowsInternal = this.selectedRowsInternal.filter((n) => n !== e._uid), a = !0), a && (this.$emit(
|
|
6877
6896
|
"row-select",
|
|
6878
6897
|
{
|
|
6879
6898
|
item: e,
|
|
6880
6899
|
index: t,
|
|
6881
6900
|
selected: l,
|
|
6882
|
-
selectedRows: this.selectedRowsInternal.map((
|
|
6901
|
+
selectedRows: this.selectedRowsInternal.map((n) => this.filteredItems[n])
|
|
6883
6902
|
}
|
|
6884
6903
|
), this.$emit("update:selected-rows", this.selectedRowsInternal));
|
|
6885
6904
|
}
|
|
@@ -6908,16 +6927,16 @@ const me = 15, lo = {
|
|
|
6908
6927
|
* (losing the 2 columns width). So do a direct DOM manipulation using `.style.width`.
|
|
6909
6928
|
*/
|
|
6910
6929
|
onResizerMouseMove(e) {
|
|
6911
|
-
const { startCursorX: t, columnEl: i, nextColumnEl:
|
|
6930
|
+
const { startCursorX: t, columnEl: i, nextColumnEl: s, colWidth: a, nextColWidth: l } = this.colResizing;
|
|
6912
6931
|
this.colResizing.dragging = !0;
|
|
6913
|
-
const
|
|
6914
|
-
i.style.width =
|
|
6915
|
-
const
|
|
6916
|
-
if (
|
|
6917
|
-
const
|
|
6918
|
-
i.style.width =
|
|
6932
|
+
const n = e.pageX - t, r = a + l, d = a + n, h = l - n;
|
|
6933
|
+
i.style.width = a + n + "px", s.style.width = l - n + "px";
|
|
6934
|
+
const w = n < 0 && i.offsetWidth > d || i.offsetWidth <= me, _ = n > 0 && s.offsetWidth > h;
|
|
6935
|
+
if (w) {
|
|
6936
|
+
const b = Math.max(i.offsetWidth, me);
|
|
6937
|
+
i.style.width = b + "px", s.style.width = r - b + "px";
|
|
6919
6938
|
} else
|
|
6920
|
-
_ && (i.style.width = r -
|
|
6939
|
+
_ && (i.style.width = r - s.offsetWidth + "px", s.style.width = s.offsetWidth + "px");
|
|
6921
6940
|
},
|
|
6922
6941
|
onResizerMouseUp() {
|
|
6923
6942
|
document.removeEventListener("mousemove", this.onResizerMouseMove), document.removeEventListener("mouseup", this.onResizerMouseUp), setTimeout(() => {
|
|
@@ -6929,12 +6948,12 @@ const me = 15, lo = {
|
|
|
6929
6948
|
}, 0);
|
|
6930
6949
|
},
|
|
6931
6950
|
initPagination() {
|
|
6932
|
-
var
|
|
6933
|
-
const e = ((
|
|
6951
|
+
var s, a;
|
|
6952
|
+
const e = ((s = this.pagination) == null ? void 0 : s.itemsPerPage) ?? 20, t = ((a = this.pagination) == null ? void 0 : a.itemsPerPageOptions) || [20, 100, { label: "All", value: 0 }];
|
|
6934
6953
|
t.find((l) => ((l == null ? void 0 : l.value) ?? l) === +e) || t.push(e), this.paginationConfig.itemsPerPageOptions = t.map((l) => ({
|
|
6935
6954
|
label: ["string", "number"].includes(typeof l) ? l.toString() : l.label || l.value,
|
|
6936
6955
|
value: ["string", "number"].includes(typeof l) ? ~~l : l.value ?? l.label
|
|
6937
|
-
})), this.paginationConfig.itemsPerPageOptions.sort((l,
|
|
6956
|
+
})), this.paginationConfig.itemsPerPageOptions.sort((l, n) => l.value < n.value ? -1 : 1);
|
|
6938
6957
|
const i = this.paginationConfig.itemsPerPageOptions.shift();
|
|
6939
6958
|
this.paginationConfig.itemsPerPageOptions.push(i), this.updatePaginationConfig({
|
|
6940
6959
|
itemsPerPage: e,
|
|
@@ -6959,8 +6978,8 @@ const me = 15, lo = {
|
|
|
6959
6978
|
updatePaginationConfig({ itemsPerPage: e, page: t, total: i }) {
|
|
6960
6979
|
if (i && (this.paginationConfig.total = i), e !== void 0) {
|
|
6961
6980
|
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;
|
|
6962
|
-
const
|
|
6963
|
-
this.paginationConfig.start = 1, this.paginationConfig.end = i >=
|
|
6981
|
+
const s = e * t;
|
|
6982
|
+
this.paginationConfig.start = 1, this.paginationConfig.end = i >= s ? s : i % s, this.paginationConfig.pagesCount = Math.ceil(i / e);
|
|
6964
6983
|
}
|
|
6965
6984
|
t && this.goToPage(t);
|
|
6966
6985
|
},
|
|
@@ -6979,13 +6998,13 @@ const me = 15, lo = {
|
|
|
6979
6998
|
* While waiting for the call to resolve, nothing in the table will change.
|
|
6980
6999
|
*/
|
|
6981
7000
|
async callApiFetch() {
|
|
6982
|
-
const { page: e, start: t, end: i, total:
|
|
7001
|
+
const { page: e, start: t, end: i, total: s, itemsPerPage: a } = this.paginationConfig;
|
|
6983
7002
|
return await this.fetch({
|
|
6984
7003
|
page: e,
|
|
6985
7004
|
start: t,
|
|
6986
|
-
end: i ||
|
|
6987
|
-
total:
|
|
6988
|
-
itemsPerPage:
|
|
7005
|
+
end: i || s,
|
|
7006
|
+
total: s,
|
|
7007
|
+
itemsPerPage: a || s,
|
|
6989
7008
|
sorting: this.activeSorting
|
|
6990
7009
|
});
|
|
6991
7010
|
}
|
|
@@ -7019,34 +7038,34 @@ const me = 15, lo = {
|
|
|
7019
7038
|
this.updatePaginationConfig({ total: e });
|
|
7020
7039
|
}
|
|
7021
7040
|
}
|
|
7022
|
-
},
|
|
7023
|
-
function
|
|
7024
|
-
return
|
|
7025
|
-
|
|
7041
|
+
}, oo = /* @__PURE__ */ v(so, [["render", lo]]), ao = ["role", "aria-pressed", "tabindex"];
|
|
7042
|
+
function no(e, t, i, s, a, l) {
|
|
7043
|
+
return o(), u("span", {
|
|
7044
|
+
class: f(["w-tag", l.classes]),
|
|
7045
|
+
onClick: t[1] || (t[1] = (n) => {
|
|
7026
7046
|
e.$emit("update:modelValue", !i.modelValue), e.$emit("input", !i.modelValue);
|
|
7027
7047
|
}),
|
|
7028
|
-
onKeypress: t[2] || (t[2] =
|
|
7048
|
+
onKeypress: t[2] || (t[2] = E((n) => {
|
|
7029
7049
|
e.$emit("update:modelValue", !i.modelValue), e.$emit("input", !i.modelValue);
|
|
7030
7050
|
}, ["enter"])),
|
|
7031
|
-
class: l.classes,
|
|
7032
7051
|
role: i.modelValue !== -1 && "button",
|
|
7033
7052
|
"aria-pressed": i.modelValue !== -1 && (i.modelValue ? "true" : "false"),
|
|
7034
7053
|
tabindex: i.modelValue !== -1 && 0,
|
|
7035
|
-
style: l.styles
|
|
7036
|
-
}
|
|
7054
|
+
style: R(l.styles)
|
|
7055
|
+
}, [
|
|
7037
7056
|
c(e.$slots, "default"),
|
|
7038
|
-
i.closable && i.modelValue ? (
|
|
7057
|
+
i.closable && i.modelValue ? (o(), u("i", {
|
|
7039
7058
|
key: 0,
|
|
7040
7059
|
class: "w-icon w-tag__closable wi-cross",
|
|
7041
|
-
onClick: t[0] || (t[0] = z((
|
|
7060
|
+
onClick: t[0] || (t[0] = z((n) => {
|
|
7042
7061
|
e.$emit("update:modelValue", !1), e.$emit("input", !1);
|
|
7043
7062
|
}, ["stop"])),
|
|
7044
7063
|
role: "icon",
|
|
7045
7064
|
"aria-hidden": "true"
|
|
7046
7065
|
})) : p("", !0)
|
|
7047
|
-
],
|
|
7066
|
+
], 46, ao);
|
|
7048
7067
|
}
|
|
7049
|
-
const
|
|
7068
|
+
const ro = {
|
|
7050
7069
|
name: "w-tag",
|
|
7051
7070
|
props: {
|
|
7052
7071
|
modelValue: { type: [Boolean, Number], default: -1 },
|
|
@@ -7095,29 +7114,29 @@ const no = {
|
|
|
7095
7114
|
};
|
|
7096
7115
|
}
|
|
7097
7116
|
}
|
|
7098
|
-
},
|
|
7099
|
-
function
|
|
7100
|
-
const
|
|
7101
|
-
return
|
|
7117
|
+
}, uo = /* @__PURE__ */ v(ro, [["render", no]]), ho = ["for"], co = ["id", "name", "placeholder", "rows", "cols", "readonly", "aria-readonly", "disabled", "required", "tabindex"], po = ["for"];
|
|
7118
|
+
function fo(e, t, i, s, a, l) {
|
|
7119
|
+
const n = $("w-icon");
|
|
7120
|
+
return o(), g(T(e.formRegister ? "w-form-element" : "div"), B({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: a.inputValue, disabled: e.isDisabled, readonly: e.isReadonly, isFocused: a.isFocused }, {
|
|
7102
7121
|
valid: e.valid,
|
|
7103
7122
|
"onUpdate:valid": t[6] || (t[6] = (r) => e.valid = r),
|
|
7104
7123
|
wrap: l.hasLabel && i.labelPosition !== "inside",
|
|
7105
7124
|
onReset: t[7] || (t[7] = (r) => {
|
|
7106
|
-
e.$emit("update:modelValue",
|
|
7125
|
+
e.$emit("update:modelValue", a.inputValue = ""), e.$emit("input", "");
|
|
7107
7126
|
}),
|
|
7108
7127
|
class: l.classes
|
|
7109
7128
|
}), {
|
|
7110
7129
|
default: m(() => [
|
|
7111
|
-
i.labelPosition === "left" ? (
|
|
7112
|
-
e.$slots.default || i.label ? (
|
|
7130
|
+
i.labelPosition === "left" ? (o(), u(k, { key: 0 }, [
|
|
7131
|
+
e.$slots.default || i.label ? (o(), u("label", {
|
|
7113
7132
|
key: 0,
|
|
7114
7133
|
class: f(["w-textarea__label w-textarea__label--left w-form-el-shakable", e.labelClasses]),
|
|
7115
7134
|
for: `w-textarea--${e._.uid}`
|
|
7116
7135
|
}, [
|
|
7117
7136
|
c(e.$slots, "default", {}, () => [
|
|
7118
|
-
|
|
7137
|
+
S(C(i.label), 1)
|
|
7119
7138
|
])
|
|
7120
|
-
], 10,
|
|
7139
|
+
], 10, ho)) : p("", !0)
|
|
7121
7140
|
], 64)) : p("", !0),
|
|
7122
7141
|
y("div", {
|
|
7123
7142
|
class: f(["w-textarea__textarea-wrap", l.inputWrapClasses])
|
|
@@ -7125,7 +7144,7 @@ function po(e, t, i, o, n, l) {
|
|
|
7125
7144
|
c(e.$slots, "icon-left", {
|
|
7126
7145
|
inputId: `w-textarea--${e._.uid}`
|
|
7127
7146
|
}, () => [
|
|
7128
|
-
i.innerIconLeft ? (
|
|
7147
|
+
i.innerIconLeft ? (o(), g(n, {
|
|
7129
7148
|
key: 0,
|
|
7130
7149
|
class: "w-textarea__icon w-textarea__icon--inner-left",
|
|
7131
7150
|
tag: "label",
|
|
@@ -7133,16 +7152,16 @@ function po(e, t, i, o, n, l) {
|
|
|
7133
7152
|
onClick: t[0] || (t[0] = (r) => e.$emit("click:inner-icon-left", r))
|
|
7134
7153
|
}, {
|
|
7135
7154
|
default: m(() => [
|
|
7136
|
-
|
|
7155
|
+
S(C(i.innerIconLeft), 1)
|
|
7137
7156
|
]),
|
|
7138
7157
|
_: 1
|
|
7139
7158
|
}, 8, ["for"])) : p("", !0)
|
|
7140
7159
|
]),
|
|
7141
|
-
|
|
7160
|
+
A(y("textarea", B({
|
|
7142
7161
|
class: "w-textarea__textarea",
|
|
7143
7162
|
ref: "textarea",
|
|
7144
|
-
"onUpdate:modelValue": t[1] || (t[1] = (r) =>
|
|
7145
|
-
},
|
|
7163
|
+
"onUpdate:modelValue": t[1] || (t[1] = (r) => a.inputValue = r)
|
|
7164
|
+
}, H(l.listeners, !0), {
|
|
7146
7165
|
onInput: t[2] || (t[2] = (...r) => l.onInput && l.onInput(...r)),
|
|
7147
7166
|
onFocus: t[3] || (t[3] = (...r) => l.onFocus && l.onFocus(...r)),
|
|
7148
7167
|
onBlur: t[4] || (t[4] = (...r) => l.onBlur && l.onBlur(...r)),
|
|
@@ -7156,23 +7175,23 @@ function po(e, t, i, o, n, l) {
|
|
|
7156
7175
|
disabled: e.isDisabled || null,
|
|
7157
7176
|
required: e.required || null,
|
|
7158
7177
|
tabindex: e.tabindex || null
|
|
7159
|
-
}), null, 16,
|
|
7160
|
-
[be,
|
|
7178
|
+
}), null, 16, co), [
|
|
7179
|
+
[be, a.inputValue]
|
|
7161
7180
|
]),
|
|
7162
|
-
i.labelPosition === "inside" && l.showLabelInside ? (
|
|
7163
|
-
e.$slots.default || i.label ? (
|
|
7181
|
+
i.labelPosition === "inside" && l.showLabelInside ? (o(), u(k, { key: 0 }, [
|
|
7182
|
+
e.$slots.default || i.label ? (o(), u("label", {
|
|
7164
7183
|
key: 0,
|
|
7165
7184
|
class: f(["w-textarea__label w-textarea__label--inside w-form-el-shakable", e.labelClasses])
|
|
7166
7185
|
}, [
|
|
7167
7186
|
c(e.$slots, "default", {}, () => [
|
|
7168
|
-
|
|
7187
|
+
S(C(i.label), 1)
|
|
7169
7188
|
])
|
|
7170
7189
|
], 2)) : p("", !0)
|
|
7171
7190
|
], 64)) : p("", !0),
|
|
7172
7191
|
c(e.$slots, "icon-right", {
|
|
7173
7192
|
inputId: `w-textarea--${e._.uid}`
|
|
7174
7193
|
}, () => [
|
|
7175
|
-
i.innerIconRight ? (
|
|
7194
|
+
i.innerIconRight ? (o(), g(n, {
|
|
7176
7195
|
key: 0,
|
|
7177
7196
|
class: "w-textarea__icon w-textarea__icon--inner-right",
|
|
7178
7197
|
tag: "label",
|
|
@@ -7180,30 +7199,30 @@ function po(e, t, i, o, n, l) {
|
|
|
7180
7199
|
onClick: t[5] || (t[5] = (r) => e.$emit("click:inner-icon-right", r))
|
|
7181
7200
|
}, {
|
|
7182
7201
|
default: m(() => [
|
|
7183
|
-
|
|
7202
|
+
S(C(i.innerIconRight), 1)
|
|
7184
7203
|
]),
|
|
7185
7204
|
_: 1
|
|
7186
7205
|
}, 8, ["for"])) : p("", !0)
|
|
7187
7206
|
])
|
|
7188
7207
|
], 2),
|
|
7189
|
-
i.labelPosition === "right" ? (
|
|
7190
|
-
e.$slots.default || i.label ? (
|
|
7208
|
+
i.labelPosition === "right" ? (o(), u(k, { key: 1 }, [
|
|
7209
|
+
e.$slots.default || i.label ? (o(), u("label", {
|
|
7191
7210
|
key: 0,
|
|
7192
7211
|
class: f(["w-textarea__label w-textarea__label--right w-form-el-shakable", e.labelClasses]),
|
|
7193
7212
|
for: `w-textarea--${e._.uid}`
|
|
7194
7213
|
}, [
|
|
7195
7214
|
c(e.$slots, "default", {}, () => [
|
|
7196
|
-
|
|
7215
|
+
S(C(i.label), 1)
|
|
7197
7216
|
])
|
|
7198
|
-
], 10,
|
|
7217
|
+
], 10, po)) : p("", !0)
|
|
7199
7218
|
], 64)) : p("", !0)
|
|
7200
7219
|
]),
|
|
7201
7220
|
_: 3
|
|
7202
7221
|
}, 16, ["valid", "wrap", "class"]);
|
|
7203
7222
|
}
|
|
7204
|
-
const
|
|
7223
|
+
const mo = {
|
|
7205
7224
|
name: "w-textarea",
|
|
7206
|
-
mixins: [
|
|
7225
|
+
mixins: [M],
|
|
7207
7226
|
props: {
|
|
7208
7227
|
modelValue: { default: "" },
|
|
7209
7228
|
label: { type: String },
|
|
@@ -7242,8 +7261,8 @@ const fo = {
|
|
|
7242
7261
|
},
|
|
7243
7262
|
computed: {
|
|
7244
7263
|
listeners() {
|
|
7245
|
-
const { input: e, focus: t, blur: i, ...
|
|
7246
|
-
return
|
|
7264
|
+
const { input: e, focus: t, blur: i, class: s, style: a, ...l } = this.$attrs;
|
|
7265
|
+
return l;
|
|
7247
7266
|
},
|
|
7248
7267
|
hasValue() {
|
|
7249
7268
|
return this.inputValue || this.inputValue === 0;
|
|
@@ -7323,45 +7342,45 @@ const fo = {
|
|
|
7323
7342
|
e ? this.getLineHeight() : this.height = null;
|
|
7324
7343
|
}
|
|
7325
7344
|
}
|
|
7326
|
-
},
|
|
7327
|
-
function
|
|
7328
|
-
return
|
|
7345
|
+
}, go = /* @__PURE__ */ v(mo, [["render", fo]]), bo = ["innerHTML"], yo = ["innerHTML"];
|
|
7346
|
+
function wo(e, t, i, s, a, l) {
|
|
7347
|
+
return o(), u("ul", {
|
|
7329
7348
|
class: f(["w-timeline", l.classes])
|
|
7330
7349
|
}, [
|
|
7331
|
-
(
|
|
7350
|
+
(o(!0), u(k, null, L(i.items, (n, r) => (o(), u("li", {
|
|
7332
7351
|
class: "w-timeline-item",
|
|
7333
7352
|
key: r
|
|
7334
7353
|
}, [
|
|
7335
|
-
(
|
|
7336
|
-
class: f(["w-timeline-item__bullet", { [
|
|
7354
|
+
(o(), g(T(n[i.itemIconKey] || i.icon ? "w-icon" : "div"), {
|
|
7355
|
+
class: f(["w-timeline-item__bullet", { [n[i.itemColorKey] || i.color]: n[i.itemColorKey] || i.color }])
|
|
7337
7356
|
}, {
|
|
7338
7357
|
default: m(() => [
|
|
7339
|
-
|
|
7358
|
+
S(C(n[i.itemIconKey] || i.icon), 1)
|
|
7340
7359
|
]),
|
|
7341
7360
|
_: 2
|
|
7342
7361
|
}, 1032, ["class"])),
|
|
7343
7362
|
e.$slots[`item.${r + 1}`] ? c(e.$slots, `item.${r + 1}`, {
|
|
7344
7363
|
key: 1,
|
|
7345
|
-
item:
|
|
7364
|
+
item: n,
|
|
7346
7365
|
index: r + 1
|
|
7347
7366
|
}) : c(e.$slots, "item", {
|
|
7348
7367
|
key: 0,
|
|
7349
|
-
item:
|
|
7368
|
+
item: n,
|
|
7350
7369
|
index: r + 1
|
|
7351
7370
|
}, () => [
|
|
7352
7371
|
y("div", {
|
|
7353
|
-
class: f(["w-timeline-item__title", { [
|
|
7354
|
-
innerHTML:
|
|
7355
|
-
}, null, 10,
|
|
7372
|
+
class: f(["w-timeline-item__title", { [n[i.itemColorKey] || i.color]: n[i.itemColorKey] || i.color }]),
|
|
7373
|
+
innerHTML: n[i.itemTitleKey]
|
|
7374
|
+
}, null, 10, bo),
|
|
7356
7375
|
y("div", {
|
|
7357
7376
|
class: "w-timeline-item__content",
|
|
7358
|
-
innerHTML:
|
|
7359
|
-
}, null, 8,
|
|
7377
|
+
innerHTML: n[i.itemContentKey]
|
|
7378
|
+
}, null, 8, yo)
|
|
7360
7379
|
])
|
|
7361
7380
|
]))), 128))
|
|
7362
7381
|
], 2);
|
|
7363
7382
|
}
|
|
7364
|
-
const
|
|
7383
|
+
const ko = {
|
|
7365
7384
|
name: "w-timeline",
|
|
7366
7385
|
props: {
|
|
7367
7386
|
items: { type: [Array, Number], required: !0 },
|
|
@@ -7383,16 +7402,16 @@ const wo = {
|
|
|
7383
7402
|
};
|
|
7384
7403
|
}
|
|
7385
7404
|
}
|
|
7386
|
-
},
|
|
7387
|
-
function
|
|
7388
|
-
return
|
|
7405
|
+
}, vo = /* @__PURE__ */ v(ko, [["render", wo]]);
|
|
7406
|
+
function Co(e, t, i, s, a, l) {
|
|
7407
|
+
return o(), u("div", {
|
|
7389
7408
|
class: f(["w-toolbar", l.classes]),
|
|
7390
7409
|
style: R(l.styles)
|
|
7391
7410
|
}, [
|
|
7392
7411
|
c(e.$slots, "default")
|
|
7393
7412
|
], 6);
|
|
7394
7413
|
}
|
|
7395
|
-
const
|
|
7414
|
+
const So = {
|
|
7396
7415
|
name: "w-toolbar",
|
|
7397
7416
|
props: {
|
|
7398
7417
|
color: { type: String },
|
|
@@ -7443,16 +7462,16 @@ const Co = {
|
|
|
7443
7462
|
};
|
|
7444
7463
|
}
|
|
7445
7464
|
}
|
|
7446
|
-
},
|
|
7447
|
-
function
|
|
7448
|
-
return
|
|
7465
|
+
}, Bo = /* @__PURE__ */ v(So, [["render", Co]]);
|
|
7466
|
+
function _o(e, t, i, s, a, l) {
|
|
7467
|
+
return o(), u(k, null, [
|
|
7449
7468
|
c(e.$slots, "activator", { on: l.activatorEventHandlers }),
|
|
7450
|
-
|
|
7469
|
+
I(x, {
|
|
7451
7470
|
name: l.transitionName,
|
|
7452
7471
|
appear: ""
|
|
7453
7472
|
}, {
|
|
7454
7473
|
default: m(() => [
|
|
7455
|
-
e.detachableVisible ? (
|
|
7474
|
+
e.detachableVisible ? (o(), u("div", {
|
|
7456
7475
|
class: f(["w-tooltip", l.classes]),
|
|
7457
7476
|
ref: "detachable",
|
|
7458
7477
|
key: e._.uid,
|
|
@@ -7465,7 +7484,7 @@ function Bo(e, t, i, o, n, l) {
|
|
|
7465
7484
|
}, 8, ["name"])
|
|
7466
7485
|
], 64);
|
|
7467
7486
|
}
|
|
7468
|
-
const
|
|
7487
|
+
const $o = {
|
|
7469
7488
|
name: "w-tooltip",
|
|
7470
7489
|
mixins: [we],
|
|
7471
7490
|
props: {
|
|
@@ -7517,7 +7536,7 @@ const _o = {
|
|
|
7517
7536
|
* - `alignment`
|
|
7518
7537
|
**/
|
|
7519
7538
|
tooltipClasses() {
|
|
7520
|
-
return
|
|
7539
|
+
return W(this.tooltipClass);
|
|
7521
7540
|
},
|
|
7522
7541
|
transitionName() {
|
|
7523
7542
|
const e = this.position.replace(/top|bottom/, (t) => ({ top: "up", bottom: "down" })[t]);
|
|
@@ -7601,24 +7620,24 @@ const _o = {
|
|
|
7601
7620
|
}
|
|
7602
7621
|
}
|
|
7603
7622
|
// watch, mounted & beforeDestroy hooks are set in the detachable.js mixin.
|
|
7604
|
-
},
|
|
7605
|
-
function
|
|
7606
|
-
return
|
|
7623
|
+
}, Vo = /* @__PURE__ */ v($o, [["render", _o]]);
|
|
7624
|
+
function Io(e, t, i, s, a, l) {
|
|
7625
|
+
return o(), g(x, B({ name: "bounce" }, e.$props), {
|
|
7607
7626
|
default: m(() => [
|
|
7608
7627
|
c(e.$slots, "default")
|
|
7609
7628
|
]),
|
|
7610
7629
|
_: 3
|
|
7611
7630
|
}, 16);
|
|
7612
7631
|
}
|
|
7613
|
-
const
|
|
7632
|
+
const To = {
|
|
7614
7633
|
name: "w-transition-bounce",
|
|
7615
7634
|
props: {
|
|
7616
7635
|
appear: { type: Boolean },
|
|
7617
7636
|
duration: { type: [Number, String] }
|
|
7618
7637
|
}
|
|
7619
|
-
},
|
|
7620
|
-
function
|
|
7621
|
-
return
|
|
7638
|
+
}, Lo = /* @__PURE__ */ v(To, [["render", Io]]);
|
|
7639
|
+
function Ro(e, t, i, s, a, l) {
|
|
7640
|
+
return o(), g(x, {
|
|
7622
7641
|
name: "expand",
|
|
7623
7642
|
mode: "out-in",
|
|
7624
7643
|
css: !1,
|
|
@@ -7638,7 +7657,7 @@ function Lo(e, t, i, o, n, l) {
|
|
|
7638
7657
|
_: 3
|
|
7639
7658
|
}, 8, ["onBeforeAppear", "onAppear", "onAfterAppear", "onBeforeEnter", "onEnter", "onAfterEnter", "onBeforeLeave", "onLeave", "onAfterLeave"]);
|
|
7640
7659
|
}
|
|
7641
|
-
const
|
|
7660
|
+
const Po = {
|
|
7642
7661
|
name: "w-transition-expand",
|
|
7643
7662
|
props: {
|
|
7644
7663
|
x: { type: Boolean },
|
|
@@ -7728,61 +7747,61 @@ const Ro = {
|
|
|
7728
7747
|
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;
|
|
7729
7748
|
}
|
|
7730
7749
|
}
|
|
7731
|
-
},
|
|
7732
|
-
function Oo(e, t, i,
|
|
7733
|
-
return
|
|
7750
|
+
}, xo = /* @__PURE__ */ v(Po, [["render", Ro]]);
|
|
7751
|
+
function Oo(e, t, i, s, a, l) {
|
|
7752
|
+
return o(), g(x, B({ name: "fade" }, e.$props), {
|
|
7734
7753
|
default: m(() => [
|
|
7735
7754
|
c(e.$slots, "default")
|
|
7736
7755
|
]),
|
|
7737
7756
|
_: 3
|
|
7738
7757
|
}, 16);
|
|
7739
7758
|
}
|
|
7740
|
-
const
|
|
7759
|
+
const zo = {
|
|
7741
7760
|
name: "w-transition-fade",
|
|
7742
7761
|
props: {
|
|
7743
7762
|
appear: { type: Boolean },
|
|
7744
7763
|
duration: { type: [Number, String] }
|
|
7745
7764
|
}
|
|
7746
|
-
},
|
|
7747
|
-
function
|
|
7748
|
-
return
|
|
7765
|
+
}, Mo = /* @__PURE__ */ v(zo, [["render", Oo]]);
|
|
7766
|
+
function Eo(e, t, i, s, a, l) {
|
|
7767
|
+
return o(), g(x, B({ name: "scale" }, e.$props), {
|
|
7749
7768
|
default: m(() => [
|
|
7750
7769
|
c(e.$slots, "default")
|
|
7751
7770
|
]),
|
|
7752
7771
|
_: 3
|
|
7753
7772
|
}, 16);
|
|
7754
7773
|
}
|
|
7755
|
-
const
|
|
7774
|
+
const Wo = {
|
|
7756
7775
|
name: "w-transition-scale",
|
|
7757
7776
|
props: {
|
|
7758
7777
|
appear: { type: Boolean },
|
|
7759
7778
|
duration: { type: [Number, String] }
|
|
7760
7779
|
}
|
|
7761
|
-
},
|
|
7762
|
-
function
|
|
7763
|
-
return
|
|
7780
|
+
}, Ao = /* @__PURE__ */ v(Wo, [["render", Eo]]);
|
|
7781
|
+
function Ko(e, t, i, s, a, l) {
|
|
7782
|
+
return o(), g(x, B({ name: "scale-fade" }, e.$props), {
|
|
7764
7783
|
default: m(() => [
|
|
7765
7784
|
c(e.$slots, "default")
|
|
7766
7785
|
]),
|
|
7767
7786
|
_: 3
|
|
7768
7787
|
}, 16);
|
|
7769
7788
|
}
|
|
7770
|
-
const
|
|
7789
|
+
const No = {
|
|
7771
7790
|
name: "w-transition-scale-fade",
|
|
7772
7791
|
props: {
|
|
7773
7792
|
appear: { type: Boolean },
|
|
7774
7793
|
duration: { type: [Number, String] }
|
|
7775
7794
|
}
|
|
7776
|
-
},
|
|
7777
|
-
function
|
|
7778
|
-
return
|
|
7795
|
+
}, Do = /* @__PURE__ */ v(No, [["render", Ko]]);
|
|
7796
|
+
function Ho(e, t, i, s, a, l) {
|
|
7797
|
+
return o(), g(x, B({ name: l.transitionName }, e.$props), {
|
|
7779
7798
|
default: m(() => [
|
|
7780
7799
|
c(e.$slots, "default")
|
|
7781
7800
|
]),
|
|
7782
7801
|
_: 3
|
|
7783
7802
|
}, 16, ["name"]);
|
|
7784
7803
|
}
|
|
7785
|
-
const
|
|
7804
|
+
const Fo = {
|
|
7786
7805
|
name: "w-transition-slide",
|
|
7787
7806
|
props: {
|
|
7788
7807
|
appear: { type: Boolean },
|
|
@@ -7800,16 +7819,16 @@ const Ho = {
|
|
|
7800
7819
|
return `slide-${this.direction}`;
|
|
7801
7820
|
}
|
|
7802
7821
|
}
|
|
7803
|
-
},
|
|
7804
|
-
function
|
|
7805
|
-
return
|
|
7822
|
+
}, jo = /* @__PURE__ */ v(Fo, [["render", Ho]]);
|
|
7823
|
+
function Uo(e, t, i, s, a, l) {
|
|
7824
|
+
return o(), g(x, B({ name: l.transitionName }, e.$props), {
|
|
7806
7825
|
default: m(() => [
|
|
7807
7826
|
c(e.$slots, "default")
|
|
7808
7827
|
]),
|
|
7809
7828
|
_: 3
|
|
7810
7829
|
}, 16, ["name"]);
|
|
7811
7830
|
}
|
|
7812
|
-
const
|
|
7831
|
+
const qo = {
|
|
7813
7832
|
name: "w-transition-slide-fade",
|
|
7814
7833
|
props: {
|
|
7815
7834
|
appear: { type: Boolean },
|
|
@@ -7827,41 +7846,44 @@ const Uo = {
|
|
|
7827
7846
|
return `slide-fade-${this.direction}`;
|
|
7828
7847
|
}
|
|
7829
7848
|
}
|
|
7830
|
-
},
|
|
7831
|
-
function
|
|
7832
|
-
return
|
|
7849
|
+
}, Xo = /* @__PURE__ */ v(qo, [["render", Uo]]);
|
|
7850
|
+
function Yo(e, t, i, s, a, l) {
|
|
7851
|
+
return o(), g(x, B({ name: "twist" }, e.$props), {
|
|
7833
7852
|
default: m(() => [
|
|
7834
7853
|
c(e.$slots, "default")
|
|
7835
7854
|
]),
|
|
7836
7855
|
_: 3
|
|
7837
7856
|
}, 16);
|
|
7838
7857
|
}
|
|
7839
|
-
const
|
|
7858
|
+
const Go = {
|
|
7840
7859
|
name: "w-transition-twist",
|
|
7841
7860
|
props: {
|
|
7842
7861
|
appear: { type: Boolean },
|
|
7843
7862
|
duration: { type: [Number, String] }
|
|
7844
7863
|
}
|
|
7845
|
-
},
|
|
7864
|
+
}, Jo = /* @__PURE__ */ v(Go, [["render", Yo]]), Qo = ["innerHTML"], Zo = {
|
|
7846
7865
|
key: 1,
|
|
7847
7866
|
class: "ml1"
|
|
7848
7867
|
};
|
|
7849
|
-
function
|
|
7850
|
-
const
|
|
7851
|
-
return
|
|
7868
|
+
function ea(e, t, i, s, a, l) {
|
|
7869
|
+
const n = $("w-button"), r = $("w-icon"), d = $("w-tree", !0);
|
|
7870
|
+
return o(), u("ul", {
|
|
7852
7871
|
class: f(["w-tree", l.classes])
|
|
7853
7872
|
}, [
|
|
7854
|
-
(
|
|
7873
|
+
(o(!0), u(k, null, L(e.currentDepthItems, (h, w) => (o(), u("li", {
|
|
7855
7874
|
class: f(["w-tree__item", l.itemClasses(h)]),
|
|
7856
|
-
key:
|
|
7875
|
+
key: w
|
|
7857
7876
|
}, [
|
|
7858
|
-
(
|
|
7877
|
+
(o(), g(T(l.getTreeItemComponent(h)), B({
|
|
7878
|
+
class: "w-tree__item-label",
|
|
7879
|
+
ref_for: !0
|
|
7880
|
+
}, h.route && { [!e.$router || l.hasExternalLink(h) ? "href" : "to"]: h.route }, {
|
|
7859
7881
|
onClick: (_) => !i.disabled && !h.disabled && l.onLabelClick(h, _),
|
|
7860
7882
|
onKeydown: (_) => !i.disabled && !h.disabled && l.onLabelKeydown(h, _),
|
|
7861
7883
|
tabindex: l.getTreeItemTabindex(h)
|
|
7862
7884
|
}), {
|
|
7863
7885
|
default: m(() => [
|
|
7864
|
-
(h.children || h.branch) && (i.expandOpenIcon && h.open || i.expandIcon) && !(i.unexpandableEmpty && !h.children) ? (
|
|
7886
|
+
(h.children || h.branch) && (i.expandOpenIcon && h.open || i.expandIcon) && !(i.unexpandableEmpty && !h.children) ? (o(), g(n, {
|
|
7865
7887
|
key: 0,
|
|
7866
7888
|
class: "w-tree__item-expand",
|
|
7867
7889
|
onClick: z((_) => !i.disabled && !h.disabled && l.onLabelClick(h, _), ["stop"]),
|
|
@@ -7881,32 +7903,35 @@ function Zo(e, t, i, o, n, l) {
|
|
|
7881
7903
|
}, () => {
|
|
7882
7904
|
var _;
|
|
7883
7905
|
return [
|
|
7884
|
-
l.itemIcon(h) ? (
|
|
7906
|
+
l.itemIcon(h) ? (o(), g(r, {
|
|
7885
7907
|
key: 0,
|
|
7886
7908
|
class: "w-tree__item-icon",
|
|
7887
7909
|
color: h.originalItem[i.itemIconColorKey] || i.iconColor
|
|
7888
7910
|
}, {
|
|
7889
7911
|
default: m(() => [
|
|
7890
|
-
|
|
7912
|
+
S(C(l.itemIcon(h)), 1)
|
|
7891
7913
|
]),
|
|
7892
7914
|
_: 2
|
|
7893
7915
|
}, 1032, ["color"])) : p("", !0),
|
|
7894
7916
|
y("span", {
|
|
7895
7917
|
innerHTML: h.label
|
|
7896
|
-
}, null, 8,
|
|
7897
|
-
i.counts && (h.children || h.branch) ? (
|
|
7918
|
+
}, null, 8, Qo),
|
|
7919
|
+
i.counts && (h.children || h.branch) ? (o(), u("span", Zo, "(" + C(((_ = h.originalItem.children) == null ? void 0 : _.length) || 0) + ")", 1)) : p("", !0)
|
|
7898
7920
|
];
|
|
7899
7921
|
})
|
|
7900
7922
|
]),
|
|
7901
7923
|
_: 2
|
|
7902
7924
|
}, 1040, ["onClick", "onKeydown", "tabindex"])),
|
|
7903
|
-
(
|
|
7925
|
+
(o(), g(T(i.noTransition ? "div" : "w-transition-expand"), {
|
|
7904
7926
|
y: !i.noTransition || null,
|
|
7905
7927
|
onAfterEnter: (_) => e.$emit("open", l.emitPayload(h)),
|
|
7906
7928
|
onAfterLeave: (_) => e.$emit("close", l.emitPayload(h))
|
|
7907
7929
|
}, {
|
|
7908
7930
|
default: m(() => [
|
|
7909
|
-
h.children && h.open ? (
|
|
7931
|
+
h.children && h.open ? (o(), g(d, B({
|
|
7932
|
+
key: 0,
|
|
7933
|
+
ref_for: !0
|
|
7934
|
+
}, e.$props, {
|
|
7910
7935
|
depth: i.depth + 1,
|
|
7911
7936
|
data: h.originalItem.children,
|
|
7912
7937
|
parent: h,
|
|
@@ -7918,11 +7943,11 @@ function Zo(e, t, i, o, n, l) {
|
|
|
7918
7943
|
onSelect: t[5] || (t[5] = (_) => e.$emit("select", _)),
|
|
7919
7944
|
"onUpdate:modelValue": t[6] || (t[6] = (_) => e.$emit("update:model-value", _))
|
|
7920
7945
|
}), {
|
|
7921
|
-
item: m(({ item: _, depth:
|
|
7946
|
+
item: m(({ item: _, depth: b, path: V, open: P }) => [
|
|
7922
7947
|
c(e.$slots, "item", {
|
|
7923
7948
|
item: _,
|
|
7924
|
-
depth:
|
|
7925
|
-
path:
|
|
7949
|
+
depth: b,
|
|
7950
|
+
path: V,
|
|
7926
7951
|
open: P
|
|
7927
7952
|
})
|
|
7928
7953
|
]),
|
|
@@ -7934,7 +7959,7 @@ function Zo(e, t, i, o, n, l) {
|
|
|
7934
7959
|
], 2))), 128))
|
|
7935
7960
|
], 2);
|
|
7936
7961
|
}
|
|
7937
|
-
const
|
|
7962
|
+
const ta = {
|
|
7938
7963
|
name: "w-tree",
|
|
7939
7964
|
props: {
|
|
7940
7965
|
modelValue: { type: [Object, Array] },
|
|
@@ -7996,26 +8021,26 @@ const ea = {
|
|
|
7996
8021
|
updateCurrentDepthTree(e, t = []) {
|
|
7997
8022
|
if (this.currentDepthItems = [], !Array.isArray(e) && typeof e != "object")
|
|
7998
8023
|
return j(`[w-tree] the tree items must be of type array or object, ${typeof e} received.`);
|
|
7999
|
-
Array.isArray(e) || (e = [e]), e.forEach((i,
|
|
8000
|
-
var l,
|
|
8001
|
-
const
|
|
8024
|
+
Array.isArray(e) || (e = [e]), e.forEach((i, s) => {
|
|
8025
|
+
var l, n;
|
|
8026
|
+
const a = {
|
|
8002
8027
|
originalItem: i,
|
|
8003
8028
|
// Store the original item to return it on event emits.
|
|
8004
|
-
_uid: this.depth.toString() + (
|
|
8029
|
+
_uid: this.depth.toString() + (s + 1),
|
|
8005
8030
|
label: i[this.itemLabelKey],
|
|
8006
8031
|
children: !!i.children,
|
|
8007
8032
|
// The children tree remains available in originalItem.
|
|
8008
8033
|
branch: i.branch,
|
|
8009
8034
|
route: i[this.itemRouteKey],
|
|
8010
8035
|
disabled: i[this.itemDisabledKey],
|
|
8011
|
-
selected: ((l = t[
|
|
8036
|
+
selected: ((l = t[s]) == null ? void 0 : l.selected) || !1,
|
|
8012
8037
|
depth: this.depth,
|
|
8013
|
-
open: !!((
|
|
8038
|
+
open: !!((n = t[s]) != null && n.open || this.expandAll || i[this.itemOpenKey]),
|
|
8014
8039
|
parent: this.parent || null,
|
|
8015
8040
|
path: []
|
|
8016
8041
|
// Ancestors path from root to leaf including self.
|
|
8017
8042
|
};
|
|
8018
|
-
|
|
8043
|
+
a.path = this.getTreeItemPath(a), this.currentDepthItems.push(a);
|
|
8019
8044
|
});
|
|
8020
8045
|
},
|
|
8021
8046
|
getTreeItemComponent(e) {
|
|
@@ -8056,13 +8081,13 @@ const ea = {
|
|
|
8056
8081
|
},
|
|
8057
8082
|
onLabelClick(e, t) {
|
|
8058
8083
|
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);
|
|
8059
|
-
const
|
|
8060
|
-
this.$emit("click",
|
|
8084
|
+
const s = this.emitPayload(e, t);
|
|
8085
|
+
this.$emit("click", s), this.emitItemSelection(e, t);
|
|
8061
8086
|
},
|
|
8062
8087
|
onLabelKeydown(e, t) {
|
|
8063
8088
|
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))) {
|
|
8064
|
-
const
|
|
8065
|
-
[...
|
|
8089
|
+
const s = this.$el.closest(".w-tree--depth0").querySelectorAll('.w-tree__item-label[tabindex="0"]'), a = t.target.closest(".w-tree__item-label"), l = t.keyCode === 38 ? -1 : 1;
|
|
8090
|
+
[...s].some((n, r) => n.isSameNode(a) ? (s[r + l] && s[r + l].focus(), !0) : !1);
|
|
8066
8091
|
}
|
|
8067
8092
|
t.keyCode === 13 && (this.selectable && (e.selected = !e.selected), this.emitItemSelection(e, t));
|
|
8068
8093
|
},
|
|
@@ -8134,63 +8159,63 @@ const ea = {
|
|
|
8134
8159
|
unmounted() {
|
|
8135
8160
|
this.dataPropUnwatch();
|
|
8136
8161
|
}
|
|
8137
|
-
},
|
|
8162
|
+
}, ia = /* @__PURE__ */ v(ta, [["render", ea]]), la = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
8138
8163
|
__proto__: null,
|
|
8139
8164
|
WAccordion: Ye,
|
|
8140
8165
|
WAlert: Ze,
|
|
8141
8166
|
WApp: pt,
|
|
8142
8167
|
WAutocomplete: dt,
|
|
8143
|
-
WBadge:
|
|
8144
|
-
WBreadcrumbs:
|
|
8145
|
-
WButton:
|
|
8168
|
+
WBadge: bt,
|
|
8169
|
+
WBreadcrumbs: vt,
|
|
8170
|
+
WButton: Lt,
|
|
8146
8171
|
WCard: Ot,
|
|
8147
|
-
WCheckbox:
|
|
8148
|
-
WCheckboxes:
|
|
8149
|
-
WConfirm:
|
|
8150
|
-
WDatePicker:
|
|
8151
|
-
WDialog:
|
|
8152
|
-
WDivider:
|
|
8153
|
-
WDrawer:
|
|
8154
|
-
WFlex:
|
|
8155
|
-
WForm:
|
|
8156
|
-
WFormElement:
|
|
8157
|
-
WGrid:
|
|
8158
|
-
WIcon:
|
|
8159
|
-
WImage:
|
|
8160
|
-
WInput:
|
|
8161
|
-
WList:
|
|
8162
|
-
WMenu:
|
|
8163
|
-
WNotification:
|
|
8164
|
-
WOverlay:
|
|
8165
|
-
WParallax:
|
|
8166
|
-
WProgress:
|
|
8167
|
-
WRadio:
|
|
8168
|
-
WRadios:
|
|
8169
|
-
WRating:
|
|
8172
|
+
WCheckbox: Ft,
|
|
8173
|
+
WCheckboxes: Xt,
|
|
8174
|
+
WConfirm: Jt,
|
|
8175
|
+
WDatePicker: ei,
|
|
8176
|
+
WDialog: li,
|
|
8177
|
+
WDivider: ni,
|
|
8178
|
+
WDrawer: ci,
|
|
8179
|
+
WFlex: mi,
|
|
8180
|
+
WForm: wi,
|
|
8181
|
+
WFormElement: Ci,
|
|
8182
|
+
WGrid: _i,
|
|
8183
|
+
WIcon: Ii,
|
|
8184
|
+
WImage: Pi,
|
|
8185
|
+
WInput: Hi,
|
|
8186
|
+
WList: Ui,
|
|
8187
|
+
WMenu: Yi,
|
|
8188
|
+
WNotification: Qi,
|
|
8189
|
+
WOverlay: tl,
|
|
8190
|
+
WParallax: ol,
|
|
8191
|
+
WProgress: pl,
|
|
8192
|
+
WRadio: vl,
|
|
8193
|
+
WRadios: _l,
|
|
8194
|
+
WRating: Ll,
|
|
8170
8195
|
WScrollable: Ol,
|
|
8171
|
-
WSelect:
|
|
8172
|
-
WSlider:
|
|
8173
|
-
WSpinner:
|
|
8174
|
-
WSteps:
|
|
8175
|
-
WSwitch:
|
|
8176
|
-
WTable:
|
|
8177
|
-
WTabs:
|
|
8178
|
-
WTag:
|
|
8179
|
-
WTextarea:
|
|
8180
|
-
WTimeline:
|
|
8181
|
-
WToolbar:
|
|
8182
|
-
WTooltip:
|
|
8183
|
-
WTransitionBounce:
|
|
8184
|
-
WTransitionExpand:
|
|
8185
|
-
WTransitionFade:
|
|
8186
|
-
WTransitionScale:
|
|
8187
|
-
WTransitionScaleFade:
|
|
8188
|
-
WTransitionSlide:
|
|
8189
|
-
WTransitionSlideFade:
|
|
8190
|
-
WTransitionTwist:
|
|
8191
|
-
WTree:
|
|
8192
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
8193
|
-
q.install = (e, t = {}) =>
|
|
8196
|
+
WSelect: Nl,
|
|
8197
|
+
WSlider: ts,
|
|
8198
|
+
WSpinner: os,
|
|
8199
|
+
WSteps: rs,
|
|
8200
|
+
WSwitch: gs,
|
|
8201
|
+
WTable: oo,
|
|
8202
|
+
WTabs: Ts,
|
|
8203
|
+
WTag: uo,
|
|
8204
|
+
WTextarea: go,
|
|
8205
|
+
WTimeline: vo,
|
|
8206
|
+
WToolbar: Bo,
|
|
8207
|
+
WTooltip: Vo,
|
|
8208
|
+
WTransitionBounce: Lo,
|
|
8209
|
+
WTransitionExpand: xo,
|
|
8210
|
+
WTransitionFade: Mo,
|
|
8211
|
+
WTransitionScale: Ao,
|
|
8212
|
+
WTransitionScaleFade: Do,
|
|
8213
|
+
WTransitionSlide: jo,
|
|
8214
|
+
WTransitionSlideFade: Xo,
|
|
8215
|
+
WTransitionTwist: Jo,
|
|
8216
|
+
WTree: ia
|
|
8217
|
+
}, Symbol.toStringTag, { value: "Module" })), sa = q.install;
|
|
8218
|
+
q.install = (e, t = {}) => sa.call(q, e, { components: la, ...t });
|
|
8194
8219
|
export {
|
|
8195
8220
|
q as default
|
|
8196
8221
|
};
|