wave-ui 2.47.0 → 2.48.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/wave-ui.cjs.js +1 -1
- package/dist/wave-ui.css +1 -1
- package/dist/wave-ui.es.js +1094 -1023
- package/dist/wave-ui.umd.js +1 -1
- package/package.json +1 -1
- package/src/wave-ui/components/transitions/w-transition-expand.vue +26 -15
- package/src/wave-ui/components/w-confirm.vue +2 -1
- package/src/wave-ui/components/w-list.vue +1 -1
- package/src/wave-ui/components/w-select.vue +9 -3
- package/src/wave-ui/components/w-table.vue +83 -6
- package/src/wave-ui/components/w-tree.vue +12 -6
package/dist/wave-ui.es.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import { reactive as
|
|
5
|
-
const
|
|
1
|
+
var ue = Object.defineProperty;
|
|
2
|
+
var he = (e, t, l) => t in e ? ue(e, t, { enumerable: !0, configurable: !0, writable: !0, value: l }) : e[t] = l;
|
|
3
|
+
var P = (e, t, l) => (he(e, typeof t != "symbol" ? t + "" : t, l), l);
|
|
4
|
+
import { reactive as j, resolveComponent as $, openBlock as s, createElementBlock as u, normalizeClass as f, Fragment as k, renderList as x, createElementVNode as w, withKeys as W, createBlock as g, withModifiers as K, createCommentVNode as h, renderSlot as c, createVNode as V, withCtx as m, mergeProps as S, toHandlers as A, createTextVNode as C, toDisplayString as v, TransitionGroup as se, Transition as T, normalizeStyle as R, resolveDynamicComponent as I, normalizeProps as ee, resolveDirective as ae, withDirectives as H, createSlots as Y, vShow as oe, vModelText as ne, vModelDynamic as ce, KeepAlive as pe } from "vue";
|
|
5
|
+
const M = j({
|
|
6
6
|
breakpoints: {
|
|
7
7
|
xs: 600,
|
|
8
8
|
sm: 900,
|
|
@@ -31,19 +31,19 @@ const O = D({
|
|
|
31
31
|
transition: "default"
|
|
32
32
|
},
|
|
33
33
|
presets: {}
|
|
34
|
-
}),
|
|
34
|
+
}), re = (e, t = M) => {
|
|
35
35
|
for (const l in e) {
|
|
36
36
|
const o = e[l];
|
|
37
|
-
typeof o == "object" ?
|
|
37
|
+
typeof o == "object" ? re(e[l], t[l]) : t[l] = o;
|
|
38
38
|
}
|
|
39
|
-
},
|
|
39
|
+
}, q = class {
|
|
40
40
|
constructor() {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
if (
|
|
45
|
-
return
|
|
46
|
-
|
|
41
|
+
P(this, "notifications");
|
|
42
|
+
P(this, "_uid");
|
|
43
|
+
P(this, "_notificationDefaults");
|
|
44
|
+
if (q.instance)
|
|
45
|
+
return q.instance;
|
|
46
|
+
q.instance = this, this.notifications = [], this._uid = 0, this._notificationDefaults = {
|
|
47
47
|
_uid: 0,
|
|
48
48
|
_value: !0,
|
|
49
49
|
message: "",
|
|
@@ -70,9 +70,9 @@ const O = D({
|
|
|
70
70
|
this.notifications = this.notifications.filter((l) => l._uid !== t);
|
|
71
71
|
}
|
|
72
72
|
};
|
|
73
|
-
let
|
|
74
|
-
|
|
75
|
-
const
|
|
73
|
+
let U = q;
|
|
74
|
+
P(U, "instance");
|
|
75
|
+
const fe = [
|
|
76
76
|
{
|
|
77
77
|
label: "pink",
|
|
78
78
|
color: "#e91e63",
|
|
@@ -415,11 +415,11 @@ const ce = [
|
|
|
415
415
|
{ label: "grey-dark6", color: "#252525" }
|
|
416
416
|
]
|
|
417
417
|
}
|
|
418
|
-
],
|
|
419
|
-
let
|
|
420
|
-
const
|
|
418
|
+
], le = (e, t) => "#" + e.slice(1).match(/../g).map((l) => (l = +`0x${l}` + t, l < 0 ? 0 : l > 255 ? 255 : l).toString(16).padStart(2, 0)).join("");
|
|
419
|
+
let J = null;
|
|
420
|
+
const N = class {
|
|
421
421
|
constructor(t, l = {}) {
|
|
422
|
-
|
|
422
|
+
P(this, "breakpoint", {
|
|
423
423
|
name: "",
|
|
424
424
|
xs: !1,
|
|
425
425
|
sm: !1,
|
|
@@ -427,23 +427,23 @@ const P = class {
|
|
|
427
427
|
lg: !1,
|
|
428
428
|
xl: !1
|
|
429
429
|
});
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
if (
|
|
433
|
-
return
|
|
434
|
-
if (
|
|
435
|
-
|
|
436
|
-
for (let o in
|
|
437
|
-
o = { label: o, color:
|
|
430
|
+
P(this, "colors", fe.reduce((t, l) => (t[l.label] = l.color, l.shades.forEach((o) => t[o.label] = o.color), t), { ...M.colors, black: "#000", white: "#fff", transparent: "transparent", inherit: "inherit" }));
|
|
431
|
+
P(this, "config", {});
|
|
432
|
+
if (N.instance)
|
|
433
|
+
return N.instance;
|
|
434
|
+
if (N.registered || t.use(N), J = j(new U()), re(l), M.css.colorShades) {
|
|
435
|
+
M.colorShades = {};
|
|
436
|
+
for (let o in M.colors) {
|
|
437
|
+
o = { label: o, color: M.colors[o].replace("#", "") };
|
|
438
438
|
const r = o.color;
|
|
439
439
|
r.length === 3 && (o.color = r[0] + "" + r[0] + r[1] + r[1] + r[2] + r[2]), this.colors[o.label] = `#${o.color}`;
|
|
440
440
|
for (let i = 1; i <= 3; i++) {
|
|
441
|
-
const a =
|
|
442
|
-
this.colors[`${o.label}-light${i}`] = a, this.colors[`${o.label}-dark${i}`] = n,
|
|
441
|
+
const a = le(`#${o.color}`, i * 40), n = le(`#${o.color}`, -i * 40);
|
|
442
|
+
this.colors[`${o.label}-light${i}`] = a, this.colors[`${o.label}-dark${i}`] = n, M.colorShades[`${o.label}-light${i}`] = a, M.colorShades[`${o.label}-dark${i}`] = n;
|
|
443
443
|
}
|
|
444
444
|
}
|
|
445
445
|
}
|
|
446
|
-
this.config =
|
|
446
|
+
this.config = M, this.notify = (...o) => J.notify(...o), N.instance = this, t.config.globalProperties.$waveui = j(this), t.provide("$waveui", N.instance);
|
|
447
447
|
}
|
|
448
448
|
static install(t, l = {}) {
|
|
449
449
|
t.directive("focus", {
|
|
@@ -461,108 +461,108 @@ const P = class {
|
|
|
461
461
|
const i = o[r];
|
|
462
462
|
t.component(i.name, i);
|
|
463
463
|
}
|
|
464
|
-
|
|
464
|
+
N.registered = !0;
|
|
465
465
|
}
|
|
466
466
|
notify(...t) {
|
|
467
|
-
|
|
467
|
+
J.notify(...t);
|
|
468
468
|
}
|
|
469
469
|
};
|
|
470
|
-
let
|
|
471
|
-
|
|
472
|
-
const
|
|
473
|
-
function
|
|
474
|
-
const a =
|
|
470
|
+
let D = N;
|
|
471
|
+
P(D, "instance", null), P(D, "vueInstance", null);
|
|
472
|
+
const me = ["aria-expanded"], be = ["onClick", "onFocus", "onKeypress", "tabindex"], ge = ["innerHTML"], ye = ["innerHTML"];
|
|
473
|
+
function we(e, t, l, o, r, i) {
|
|
474
|
+
const a = $("w-button"), n = $("w-transition-expand");
|
|
475
475
|
return s(), u("div", {
|
|
476
|
-
class:
|
|
476
|
+
class: f(["w-accordion", i.accordionClasses])
|
|
477
477
|
}, [
|
|
478
|
-
(s(!0), u(k, null, x(e.accordionItems, (d,
|
|
479
|
-
class:
|
|
480
|
-
key:
|
|
478
|
+
(s(!0), u(k, null, x(e.accordionItems, (d, p) => (s(), u("div", {
|
|
479
|
+
class: f(["w-accordion__item", i.itemClasses(d)]),
|
|
480
|
+
key: p,
|
|
481
481
|
"aria-expanded": d._expanded ? "true" : "false"
|
|
482
482
|
}, [
|
|
483
|
-
|
|
484
|
-
class:
|
|
485
|
-
onClick: (
|
|
486
|
-
onFocus: (
|
|
487
|
-
onKeypress:
|
|
483
|
+
w("div", {
|
|
484
|
+
class: f(["w-accordion__item-title", l.titleClass]),
|
|
485
|
+
onClick: (b) => !d._disabled && i.toggleItem(d, b),
|
|
486
|
+
onFocus: (b) => e.$emit("focus", i.getOriginalItem(d)),
|
|
487
|
+
onKeypress: W((b) => !d._disabled && i.toggleItem(d, b), ["enter"]),
|
|
488
488
|
tabindex: !d._disabled && 0
|
|
489
489
|
}, [
|
|
490
490
|
l.expandIcon && !l.expandIconRight ? (s(), g(a, {
|
|
491
491
|
key: 0,
|
|
492
|
-
class:
|
|
492
|
+
class: f(["w-accordion__expand-icon", { "w-accordion__expand-icon--expanded": d._expanded, "w-accordion__expand-icon--rotate90": l.expandIconRotate90 }]),
|
|
493
493
|
icon: d._expanded && l.collapseIcon || l.expandIcon,
|
|
494
494
|
"icon-props": l.expandIconProps,
|
|
495
495
|
disabled: d._disabled || null,
|
|
496
496
|
tabindex: -1,
|
|
497
497
|
text: "",
|
|
498
|
-
onKeypress: t[0] || (t[0] =
|
|
498
|
+
onKeypress: t[0] || (t[0] = K(() => {
|
|
499
499
|
}, ["stop"])),
|
|
500
|
-
onClick:
|
|
500
|
+
onClick: K((b) => !d._disabled && i.toggleItem(d, b), ["stop"])
|
|
501
501
|
}, null, 8, ["icon", "icon-props", "disabled", "onClick", "class"])) : h("", !0),
|
|
502
|
-
e.$slots[`item-title.${d.id ||
|
|
502
|
+
e.$slots[`item-title.${d.id || p + 1}`] ? c(e.$slots, `item-title.${d.id || p + 1}`, {
|
|
503
503
|
key: 1,
|
|
504
504
|
item: i.getOriginalItem(d),
|
|
505
505
|
expanded: d._expanded,
|
|
506
|
-
index:
|
|
506
|
+
index: p + 1
|
|
507
507
|
}) : c(e.$slots, "item-title", {
|
|
508
508
|
key: 2,
|
|
509
509
|
item: i.getOriginalItem(d),
|
|
510
510
|
expanded: d._expanded,
|
|
511
|
-
index:
|
|
511
|
+
index: p + 1
|
|
512
512
|
}, () => [
|
|
513
|
-
|
|
513
|
+
w("div", {
|
|
514
514
|
class: "grow",
|
|
515
515
|
innerHTML: d[l.itemTitleKey]
|
|
516
|
-
}, null, 8,
|
|
516
|
+
}, null, 8, ge)
|
|
517
517
|
]),
|
|
518
518
|
l.expandIcon && l.expandIconRight ? (s(), g(a, {
|
|
519
519
|
key: 3,
|
|
520
|
-
class:
|
|
520
|
+
class: f(["w-accordion__expand-icon", { "w-accordion__expand-icon--expanded": d._expanded, "w-accordion__expand-icon--rotate90": l.expandIconRotate90 }]),
|
|
521
521
|
icon: d._expanded && l.collapseIcon || l.expandIcon,
|
|
522
522
|
text: "",
|
|
523
|
-
onKeypress: t[1] || (t[1] =
|
|
523
|
+
onKeypress: t[1] || (t[1] = K(() => {
|
|
524
524
|
}, ["stop"])),
|
|
525
|
-
onClick:
|
|
525
|
+
onClick: K((b) => !d._disabled && i.toggleItem(d, b), ["stop"])
|
|
526
526
|
}, null, 8, ["icon", "onClick", "class"])) : h("", !0)
|
|
527
|
-
], 42,
|
|
528
|
-
|
|
527
|
+
], 42, be),
|
|
528
|
+
V(n, {
|
|
529
529
|
y: "",
|
|
530
|
-
onAfterLeave: (
|
|
530
|
+
onAfterLeave: (b) => i.onEndOfCollapse(d),
|
|
531
531
|
duration: l.duration
|
|
532
532
|
}, {
|
|
533
|
-
default:
|
|
533
|
+
default: m(() => [
|
|
534
534
|
d._expanded ? (s(), u("div", {
|
|
535
535
|
key: 0,
|
|
536
|
-
class:
|
|
536
|
+
class: f(["w-accordion__item-content", l.contentClass])
|
|
537
537
|
}, [
|
|
538
|
-
e.$slots[`item-content.${d.id ||
|
|
538
|
+
e.$slots[`item-content.${d.id || p + 1}`] ? c(e.$slots, `item-content.${d.id || p + 1}`, {
|
|
539
539
|
key: 0,
|
|
540
540
|
item: i.getOriginalItem(d),
|
|
541
541
|
expanded: d._expanded,
|
|
542
|
-
index:
|
|
542
|
+
index: p + 1
|
|
543
543
|
}) : c(e.$slots, "item-content", {
|
|
544
544
|
key: 1,
|
|
545
545
|
item: i.getOriginalItem(d),
|
|
546
546
|
expanded: d._expanded,
|
|
547
|
-
index:
|
|
547
|
+
index: p + 1
|
|
548
548
|
}, () => [
|
|
549
|
-
|
|
549
|
+
w("div", {
|
|
550
550
|
innerHTML: d[l.itemContentKey]
|
|
551
|
-
}, null, 8,
|
|
551
|
+
}, null, 8, ye)
|
|
552
552
|
])
|
|
553
553
|
], 2)) : h("", !0)
|
|
554
554
|
]),
|
|
555
555
|
_: 2
|
|
556
556
|
}, 1032, ["onAfterLeave", "duration"])
|
|
557
|
-
], 10,
|
|
557
|
+
], 10, me))), 128))
|
|
558
558
|
], 2);
|
|
559
559
|
}
|
|
560
|
-
const
|
|
560
|
+
const _ = (e, t) => {
|
|
561
561
|
const l = e.__vccOpts || e;
|
|
562
562
|
for (const [o, r] of t)
|
|
563
563
|
l[o] = r;
|
|
564
564
|
return l;
|
|
565
|
-
},
|
|
565
|
+
}, ve = {
|
|
566
566
|
name: "w-accordion",
|
|
567
567
|
props: {
|
|
568
568
|
modelValue: { type: Array },
|
|
@@ -644,24 +644,24 @@ const w = (e, t) => {
|
|
|
644
644
|
deep: !0
|
|
645
645
|
}
|
|
646
646
|
}
|
|
647
|
-
},
|
|
648
|
-
function
|
|
649
|
-
const a =
|
|
647
|
+
}, _e = /* @__PURE__ */ _(ve, [["render", we]]), ke = { class: "w-alert__content" };
|
|
648
|
+
function Ce(e, t, l, o, r, i) {
|
|
649
|
+
const a = $("w-icon"), n = $("w-button");
|
|
650
650
|
return r.show ? (s(), u("div", S({
|
|
651
651
|
key: 0,
|
|
652
652
|
class: "w-alert"
|
|
653
|
-
},
|
|
653
|
+
}, A(e.$attrs, !0), { class: i.classes }), [
|
|
654
654
|
i.type || l.icon || l.dismiss ? (s(), u(k, { key: 0 }, [
|
|
655
655
|
i.type || l.icon ? (s(), g(a, {
|
|
656
656
|
key: 0,
|
|
657
657
|
class: "w-alert__icon mr2"
|
|
658
658
|
}, {
|
|
659
|
-
default:
|
|
660
|
-
C(
|
|
659
|
+
default: m(() => [
|
|
660
|
+
C(v(i.type ? i.typeIcon : l.icon), 1)
|
|
661
661
|
]),
|
|
662
662
|
_: 1
|
|
663
663
|
})) : h("", !0),
|
|
664
|
-
|
|
664
|
+
w("div", ke, [
|
|
665
665
|
c(e.$slots, "default")
|
|
666
666
|
]),
|
|
667
667
|
l.dismiss ? (s(), g(n, {
|
|
@@ -678,7 +678,7 @@ function _e(e, t, l, o, r, i) {
|
|
|
678
678
|
], 64)) : c(e.$slots, "default", { key: 1 })
|
|
679
679
|
], 16)) : h("", !0);
|
|
680
680
|
}
|
|
681
|
-
const
|
|
681
|
+
const Se = {
|
|
682
682
|
name: "w-alert",
|
|
683
683
|
props: {
|
|
684
684
|
modelValue: { default: !0 },
|
|
@@ -753,16 +753,16 @@ const ke = {
|
|
|
753
753
|
this.show = e;
|
|
754
754
|
}
|
|
755
755
|
}
|
|
756
|
-
},
|
|
757
|
-
function
|
|
758
|
-
const a =
|
|
759
|
-
return s(), g(
|
|
760
|
-
class:
|
|
756
|
+
}, Be = /* @__PURE__ */ _(Se, [["render", Ce]]), $e = ["innerHTML"];
|
|
757
|
+
function Ve(e, t, l, o, r, i) {
|
|
758
|
+
const a = $("w-alert");
|
|
759
|
+
return s(), g(se, {
|
|
760
|
+
class: f(["w-notification-manager", { "w-notification-manager--left": i.conf.align === "left" }]),
|
|
761
761
|
tag: "div",
|
|
762
762
|
name: i.transition,
|
|
763
763
|
appear: ""
|
|
764
764
|
}, {
|
|
765
|
-
default:
|
|
765
|
+
default: m(() => [
|
|
766
766
|
(s(!0), u(k, null, x(i.notifications, (n) => (s(), u(k, null, [
|
|
767
767
|
n._value ? (s(), g(a, S({
|
|
768
768
|
class: "white--bg",
|
|
@@ -771,10 +771,10 @@ function Be(e, t, l, o, r, i) {
|
|
|
771
771
|
"onUpdate:modelValue": (d) => n._value = d,
|
|
772
772
|
onClose: (d) => e.notifManager.dismiss(n._uid)
|
|
773
773
|
}, i.notifProps(n)), {
|
|
774
|
-
default:
|
|
775
|
-
|
|
774
|
+
default: m(() => [
|
|
775
|
+
w("div", {
|
|
776
776
|
innerHTML: n.message
|
|
777
|
-
}, null, 8,
|
|
777
|
+
}, null, 8, $e)
|
|
778
778
|
]),
|
|
779
779
|
_: 2
|
|
780
780
|
}, 1040, ["modelValue", "onUpdate:modelValue", "onClose"])) : h("", !0)
|
|
@@ -783,7 +783,7 @@ function Be(e, t, l, o, r, i) {
|
|
|
783
783
|
_: 1
|
|
784
784
|
}, 8, ["class", "name"]);
|
|
785
785
|
}
|
|
786
|
-
const
|
|
786
|
+
const Ie = {
|
|
787
787
|
name: "w-notification-manager",
|
|
788
788
|
data: () => ({
|
|
789
789
|
notifManager: null
|
|
@@ -807,30 +807,30 @@ const $e = {
|
|
|
807
807
|
}
|
|
808
808
|
},
|
|
809
809
|
created() {
|
|
810
|
-
this.notifManager = new
|
|
810
|
+
this.notifManager = new U();
|
|
811
811
|
},
|
|
812
812
|
beforeUnmount() {
|
|
813
813
|
this.notifManager.notifications = [], delete this.notifManager;
|
|
814
814
|
}
|
|
815
|
-
},
|
|
815
|
+
}, Re = /* @__PURE__ */ _(Ie, [["render", Ve]]), G = {
|
|
816
816
|
cssScope: ".w-app",
|
|
817
817
|
baseIncrement: 4
|
|
818
|
-
},
|
|
818
|
+
}, Le = (e) => {
|
|
819
819
|
let t = "";
|
|
820
|
-
const { cssScope: l } =
|
|
821
|
-
for (const
|
|
822
|
-
t += `${l} .${
|
|
823
|
-
e.css.colorShades && e.colorShades && Object.entries(e.colorShades).forEach(([
|
|
824
|
-
t += `${l} .${
|
|
820
|
+
const { cssScope: l } = G, { info: o, warning: r, success: i, error: a, ...n } = e.colors;
|
|
821
|
+
for (const b in n)
|
|
822
|
+
t += `${l} .${b}--bg{background-color:${e.colors[b]}}${l} .${b}{color:${e.colors[b]}}`;
|
|
823
|
+
e.css.colorShades && e.colorShades && Object.entries(e.colorShades).forEach(([b, B]) => {
|
|
824
|
+
t += `${l} .${b}--bg{background-color:${B}}${l} .${b}{color:${B}}`;
|
|
825
825
|
});
|
|
826
826
|
const d = { info: o, warning: r, success: i, error: a };
|
|
827
|
-
for (const
|
|
828
|
-
t += `${l} .${
|
|
829
|
-
const
|
|
830
|
-
return
|
|
831
|
-
},
|
|
827
|
+
for (const b in d)
|
|
828
|
+
t += `${l} .${b}--bg{background-color:${e.colors[b]}}${l} .${b}{color:${e.colors[b]}}`;
|
|
829
|
+
const p = [];
|
|
830
|
+
return p.push(`--primary: ${e.colors.primary}`), t += `:root {${p.join(";")}}`, t;
|
|
831
|
+
}, xe = (e, t) => {
|
|
832
832
|
let l = "";
|
|
833
|
-
const { cssScope: o } =
|
|
833
|
+
const { cssScope: o } = G;
|
|
834
834
|
return e.forEach(({ min: r, label: i }) => {
|
|
835
835
|
if (i === "xs")
|
|
836
836
|
for (let a = 0; a < t; a++)
|
|
@@ -842,9 +842,9 @@ const $e = {
|
|
|
842
842
|
l += "}";
|
|
843
843
|
}
|
|
844
844
|
}), l;
|
|
845
|
-
},
|
|
845
|
+
}, Te = (e) => {
|
|
846
846
|
let t = "";
|
|
847
|
-
const { cssScope: l, baseIncrement: o } =
|
|
847
|
+
const { cssScope: l, baseIncrement: o } = G, r = [
|
|
848
848
|
"show{display:block}",
|
|
849
849
|
"hide{display:none}",
|
|
850
850
|
"d-flex{display:flex}",
|
|
@@ -879,32 +879,32 @@ const $e = {
|
|
|
879
879
|
"justify-space-evenly{justify-content:space-evenly}"
|
|
880
880
|
], i = Array(12).fill();
|
|
881
881
|
return e.forEach(({ label: a, min: n }) => {
|
|
882
|
-
a !== "xs" && (t += `@media(min-width:${n}px){` + r.map((d) => `${l} .${a}u-${d}`).join("") + i.map((d,
|
|
882
|
+
a !== "xs" && (t += `@media(min-width:${n}px){` + r.map((d) => `${l} .${a}u-${d}`).join("") + i.map((d, p) => `.w-grid.${a}u-columns${p + 1}{grid-template-columns:repeat(${p + 1},1fr);}`).join("") + i.map((d, p) => `.w-flex.${a}u-gap${p + 1},.w-grid.${a}u-gap${p + 1}{gap:${(p + 1) * o}px;}`).join("") + `.w-flex.${a}u-gap0,.w-flex.${a}u-gap0{gap:0}}`);
|
|
883
883
|
}), e.forEach(({ label: a, min: n, max: d }) => {
|
|
884
|
-
t += `@media (min-width:${n}px) and (max-width:${d}px){` + r.map((
|
|
884
|
+
t += `@media (min-width:${n}px) and (max-width:${d}px){` + r.map((p) => `${l} .${a}-${p}`).join("") + i.map((p, b) => `.w-grid.${a}-columns${b + 1}{grid-template-columns:repeat(${b + 1},1fr);}`).join("") + i.map((p, b) => `.w-flex.${a}-gap${b + 1},.w-grid.${a}-gap${b + 1}{gap:${(b + 1) * o}px;}`).join("") + `.w-flex.${a}-gap0,.w-flex.${a}-gap0{gap:0}}`;
|
|
885
885
|
}), e.forEach(({ label: a, max: n }) => {
|
|
886
|
-
a !== "xl" && (t += `@media (max-width:${n}px){` + r.map((d) => `${l} .${a}d-${d}`).join("") + i.map((d,
|
|
886
|
+
a !== "xl" && (t += `@media (max-width:${n}px){` + r.map((d) => `${l} .${a}d-${d}`).join("") + i.map((d, p) => `.w-grid.${a}d-columns${p + 1}{grid-template-columns:repeat(${p + 1},1fr);}`).join("") + i.map((d, p) => `.w-flex.${a}d-gap${p + 1},.w-grid.${a}d-gap${p + 1}{gap:${(p + 1) * o}px;}`).join("") + `.w-flex.${a}d-gap0,.w-flex.${a}d-gap0{gap:0}}`);
|
|
887
887
|
}), t;
|
|
888
|
-
},
|
|
888
|
+
}, ze = (e) => {
|
|
889
889
|
const t = Object.entries(e.breakpoints), l = t.map(([i, a], n) => {
|
|
890
890
|
const [, d = 0] = t[n - 1] || [];
|
|
891
891
|
return { label: i, min: d ? d + 1 : 0, max: a };
|
|
892
892
|
}), o = getComputedStyle(document.documentElement);
|
|
893
|
-
|
|
893
|
+
G.cssScope = o.getPropertyValue("--css-scope"), G.baseIncrement = parseInt(o.getPropertyValue("--base-increment"));
|
|
894
894
|
let r = "";
|
|
895
|
-
return r +=
|
|
895
|
+
return r += Le(e), r += xe(l, e.css.grid), e.css.breakpointLayoutClasses && (r += Te(l)), r;
|
|
896
896
|
};
|
|
897
|
-
function
|
|
898
|
-
const a =
|
|
897
|
+
function Ee(e, t, l, o, r, i) {
|
|
898
|
+
const a = $("notification-manager");
|
|
899
899
|
return s(), u("div", {
|
|
900
|
-
class:
|
|
900
|
+
class: f(["w-app", i.classes])
|
|
901
901
|
}, [
|
|
902
902
|
c(e.$slots, "default"),
|
|
903
|
-
|
|
903
|
+
V(a)
|
|
904
904
|
], 2);
|
|
905
905
|
}
|
|
906
|
-
let
|
|
907
|
-
const
|
|
906
|
+
let Q = { keys: [], values: [] };
|
|
907
|
+
const Pe = {
|
|
908
908
|
name: "w-app",
|
|
909
909
|
props: {
|
|
910
910
|
dark: { type: Boolean },
|
|
@@ -920,7 +920,7 @@ const ze = {
|
|
|
920
920
|
textCenter: { type: Boolean },
|
|
921
921
|
textRight: { type: Boolean }
|
|
922
922
|
},
|
|
923
|
-
components: { NotificationManager:
|
|
923
|
+
components: { NotificationManager: Re },
|
|
924
924
|
data: () => ({
|
|
925
925
|
currentBreakpoint: null,
|
|
926
926
|
notifManager: null
|
|
@@ -945,9 +945,9 @@ const ze = {
|
|
|
945
945
|
},
|
|
946
946
|
methods: {
|
|
947
947
|
getBreakpoint() {
|
|
948
|
-
const e = window.innerWidth, t =
|
|
948
|
+
const e = window.innerWidth, t = Q.values.slice(0);
|
|
949
949
|
t.push(e), t.sort((o, r) => o - r);
|
|
950
|
-
const l =
|
|
950
|
+
const l = Q.keys[t.indexOf(e)] || "xl";
|
|
951
951
|
l !== this.currentBreakpoint && (this.currentBreakpoint = l, this.$waveui.breakpoint = {
|
|
952
952
|
name: l,
|
|
953
953
|
xs: l === "xs",
|
|
@@ -961,9 +961,9 @@ const ze = {
|
|
|
961
961
|
},
|
|
962
962
|
mounted() {
|
|
963
963
|
const { config: e } = this.$waveui;
|
|
964
|
-
if (
|
|
964
|
+
if (Q = { keys: Object.keys(e.breakpoints), values: Object.values(e.breakpoints) }, !document.getElementById("wave-ui-styles")) {
|
|
965
965
|
const t = document.createElement("style");
|
|
966
|
-
t.id = "wave-ui-styles", t.innerHTML =
|
|
966
|
+
t.id = "wave-ui-styles", t.innerHTML = ze(e);
|
|
967
967
|
const l = document.head.querySelectorAll('style,link[rel="stylesheet"]')[0];
|
|
968
968
|
l ? l.before(t) : document.head.appendChild(t);
|
|
969
969
|
}
|
|
@@ -972,17 +972,17 @@ const ze = {
|
|
|
972
972
|
beforeUnmount() {
|
|
973
973
|
window.removeEventListener("resize", this.getBreakpoint);
|
|
974
974
|
}
|
|
975
|
-
},
|
|
976
|
-
function
|
|
977
|
-
return s(), u("div", S({ class: "w-badge-wrap" },
|
|
975
|
+
}, Oe = /* @__PURE__ */ _(Pe, [["render", Ee]]);
|
|
976
|
+
function Me(e, t, l, o, r, i) {
|
|
977
|
+
return s(), u("div", S({ class: "w-badge-wrap" }, A(e.$attrs, !0)), [
|
|
978
978
|
c(e.$slots, "default"),
|
|
979
|
-
|
|
979
|
+
V(T, {
|
|
980
980
|
name: `${l.transition}`
|
|
981
981
|
}, {
|
|
982
|
-
default:
|
|
982
|
+
default: m(() => [
|
|
983
983
|
l.modelValue ? (s(), u("div", {
|
|
984
984
|
key: 0,
|
|
985
|
-
class:
|
|
985
|
+
class: f(["w-badge", i.classes]),
|
|
986
986
|
style: R(i.styles),
|
|
987
987
|
"aria-atomic": "true",
|
|
988
988
|
"aria-label": "Badge",
|
|
@@ -990,7 +990,7 @@ function Oe(e, t, l, o, r, i) {
|
|
|
990
990
|
role: "status"
|
|
991
991
|
}, [
|
|
992
992
|
l.dot ? h("", !0) : c(e.$slots, "badge", { key: 0 }, () => [
|
|
993
|
-
C(
|
|
993
|
+
C(v(l.modelValue === !0 ? "" : l.modelValue || ""), 1)
|
|
994
994
|
])
|
|
995
995
|
], 6)) : h("", !0)
|
|
996
996
|
]),
|
|
@@ -998,7 +998,7 @@ function Oe(e, t, l, o, r, i) {
|
|
|
998
998
|
}, 8, ["name"])
|
|
999
999
|
], 16);
|
|
1000
1000
|
}
|
|
1001
|
-
const
|
|
1001
|
+
const Ne = {
|
|
1002
1002
|
name: "w-badge",
|
|
1003
1003
|
props: {
|
|
1004
1004
|
modelValue: { default: !0 },
|
|
@@ -1059,35 +1059,35 @@ const Pe = {
|
|
|
1059
1059
|
return this.forcedSize && `font-size: ${this.forcedSize}`;
|
|
1060
1060
|
}
|
|
1061
1061
|
}
|
|
1062
|
-
},
|
|
1063
|
-
function
|
|
1064
|
-
const a =
|
|
1062
|
+
}, We = /* @__PURE__ */ _(Ne, [["render", Me]]), Ae = ["innerHTML"];
|
|
1063
|
+
function Ke(e, t, l, o, r, i) {
|
|
1064
|
+
const a = $("w-icon");
|
|
1065
1065
|
return s(), u("div", {
|
|
1066
|
-
class:
|
|
1066
|
+
class: f(["w-breadcrumbs", i.classes])
|
|
1067
1067
|
}, [
|
|
1068
1068
|
(s(!0), u(k, null, x(l.items, (n, d) => (s(), u(k, null, [
|
|
1069
1069
|
d && e.$slots.separator ? (s(), u("span", {
|
|
1070
|
-
class:
|
|
1070
|
+
class: f(["w-breadcrumbs__separator", l.separatorColor]),
|
|
1071
1071
|
key: `${d}a`
|
|
1072
1072
|
}, [
|
|
1073
1073
|
c(e.$slots, "separator", { index: d })
|
|
1074
1074
|
], 2)) : d ? (s(), g(a, {
|
|
1075
|
-
class:
|
|
1075
|
+
class: f(["w-breadcrumbs__separator", l.separatorColor]),
|
|
1076
1076
|
key: `${d}b`
|
|
1077
1077
|
}, {
|
|
1078
|
-
default:
|
|
1079
|
-
C(
|
|
1078
|
+
default: m(() => [
|
|
1079
|
+
C(v(l.icon), 1)
|
|
1080
1080
|
]),
|
|
1081
1081
|
_: 2
|
|
1082
1082
|
}, 1032, ["class"])) : h("", !0),
|
|
1083
1083
|
n[l.itemRouteKey] && (d < l.items.length - 1 || l.linkLastItem) ? (s(), u(k, { key: 2 }, [
|
|
1084
|
-
e.$slots.item ? (s(), g(
|
|
1085
|
-
class:
|
|
1084
|
+
e.$slots.item ? (s(), g(I(i.hasRouter ? "router-link" : "a"), {
|
|
1085
|
+
class: f(["w-breadcrumbs__item", l.color || null]),
|
|
1086
1086
|
key: `${d}c`,
|
|
1087
1087
|
to: i.hasRouter && n[l.itemRouteKey],
|
|
1088
1088
|
href: n[l.itemRouteKey]
|
|
1089
1089
|
}, {
|
|
1090
|
-
default:
|
|
1090
|
+
default: m(() => [
|
|
1091
1091
|
c(e.$slots, "item", {
|
|
1092
1092
|
item: n,
|
|
1093
1093
|
index: d + 1,
|
|
@@ -1095,8 +1095,8 @@ function Ne(e, t, l, o, r, i) {
|
|
|
1095
1095
|
})
|
|
1096
1096
|
]),
|
|
1097
1097
|
_: 2
|
|
1098
|
-
}, 1032, ["to", "href", "class"])) : (s(), g(
|
|
1099
|
-
class:
|
|
1098
|
+
}, 1032, ["to", "href", "class"])) : (s(), g(I(i.hasRouter ? "router-link" : "a"), {
|
|
1099
|
+
class: f(["w-breadcrumbs__item", l.color || null]),
|
|
1100
1100
|
key: `${d}d`,
|
|
1101
1101
|
to: i.hasRouter && n[l.itemRouteKey],
|
|
1102
1102
|
href: n[l.itemRouteKey],
|
|
@@ -1110,11 +1110,11 @@ function Ne(e, t, l, o, r, i) {
|
|
|
1110
1110
|
}) : (s(), u("span", {
|
|
1111
1111
|
key: `${d}f`,
|
|
1112
1112
|
innerHTML: n[l.itemLabelKey]
|
|
1113
|
-
}, null, 8,
|
|
1113
|
+
}, null, 8, Ae))
|
|
1114
1114
|
], 64))), 256))
|
|
1115
1115
|
], 2);
|
|
1116
1116
|
}
|
|
1117
|
-
const
|
|
1117
|
+
const De = {
|
|
1118
1118
|
name: "w-breadcrumbs",
|
|
1119
1119
|
props: {
|
|
1120
1120
|
items: { type: Array, required: !0 },
|
|
@@ -1144,11 +1144,11 @@ const Ae = {
|
|
|
1144
1144
|
};
|
|
1145
1145
|
}
|
|
1146
1146
|
}
|
|
1147
|
-
},
|
|
1147
|
+
}, Fe = /* @__PURE__ */ _(De, [["render", Ke]]), je = {
|
|
1148
1148
|
key: 0,
|
|
1149
1149
|
class: "w-button__loader"
|
|
1150
|
-
},
|
|
1151
|
-
/* @__PURE__ */
|
|
1150
|
+
}, He = /* @__PURE__ */ w("svg", { viewBox: "0 0 40 40" }, [
|
|
1151
|
+
/* @__PURE__ */ w("circle", {
|
|
1152
1152
|
cx: "20",
|
|
1153
1153
|
cy: "20",
|
|
1154
1154
|
r: "18",
|
|
@@ -1158,26 +1158,26 @@ const Ae = {
|
|
|
1158
1158
|
"stroke-linecap": "round"
|
|
1159
1159
|
})
|
|
1160
1160
|
], -1);
|
|
1161
|
-
function
|
|
1162
|
-
const a =
|
|
1163
|
-
return s(), g(
|
|
1161
|
+
function Ue(e, t, l, o, r, i) {
|
|
1162
|
+
const a = $("w-icon");
|
|
1163
|
+
return s(), g(I(l.route ? "a" : "button"), S({
|
|
1164
1164
|
class: ["w-button", i.classes],
|
|
1165
1165
|
type: !l.route && l.type,
|
|
1166
1166
|
href: l.route && (i.externalLink ? l.route : i.resolvedRoute) || null,
|
|
1167
1167
|
disabled: !!l.disabled || null
|
|
1168
|
-
},
|
|
1169
|
-
default:
|
|
1170
|
-
l.icon ? (s(), g(a,
|
|
1171
|
-
default:
|
|
1172
|
-
C(
|
|
1168
|
+
}, A(i.listeners), { style: i.styles }), {
|
|
1169
|
+
default: m(() => [
|
|
1170
|
+
l.icon ? (s(), g(a, ee(S({ key: 0 }, l.iconProps || {})), {
|
|
1171
|
+
default: m(() => [
|
|
1172
|
+
C(v(l.icon), 1)
|
|
1173
1173
|
]),
|
|
1174
1174
|
_: 1
|
|
1175
1175
|
}, 16)) : c(e.$slots, "default", { key: 1 }),
|
|
1176
|
-
|
|
1177
|
-
default:
|
|
1178
|
-
l.loading ? (s(), u("div",
|
|
1176
|
+
V(T, { name: "scale-fade" }, {
|
|
1177
|
+
default: m(() => [
|
|
1178
|
+
l.loading ? (s(), u("div", je, [
|
|
1179
1179
|
c(e.$slots, "loading", {}, () => [
|
|
1180
|
-
|
|
1180
|
+
He
|
|
1181
1181
|
])
|
|
1182
1182
|
])) : h("", !0)
|
|
1183
1183
|
]),
|
|
@@ -1187,7 +1187,7 @@ function je(e, t, l, o, r, i) {
|
|
|
1187
1187
|
_: 3
|
|
1188
1188
|
}, 16, ["type", "href", "class", "disabled", "style"]);
|
|
1189
1189
|
}
|
|
1190
|
-
const
|
|
1190
|
+
const qe = {
|
|
1191
1191
|
props: {
|
|
1192
1192
|
color: { type: String },
|
|
1193
1193
|
bgColor: { type: String },
|
|
@@ -1275,30 +1275,30 @@ const He = {
|
|
|
1275
1275
|
};
|
|
1276
1276
|
}
|
|
1277
1277
|
}
|
|
1278
|
-
},
|
|
1279
|
-
function
|
|
1280
|
-
const a =
|
|
1281
|
-
return l.tooltip ? (s(), g(
|
|
1282
|
-
activator:
|
|
1283
|
-
|
|
1284
|
-
default:
|
|
1278
|
+
}, Ge = /* @__PURE__ */ _(qe, [["render", Ue]]), Xe = ["innerHTML"];
|
|
1279
|
+
function Ye(e, t, l, o, r, i) {
|
|
1280
|
+
const a = $("button-partial");
|
|
1281
|
+
return l.tooltip ? (s(), g(I("w-tooltip"), ee(S({ key: 0 }, l.tooltipProps || {})), {
|
|
1282
|
+
activator: m(({ on: n }) => [
|
|
1283
|
+
V(a, S(i.buttonProps, A(n)), {
|
|
1284
|
+
default: m(() => [
|
|
1285
1285
|
c(e.$slots, "default")
|
|
1286
1286
|
]),
|
|
1287
1287
|
_: 2
|
|
1288
1288
|
}, 1040)
|
|
1289
1289
|
]),
|
|
1290
|
-
default:
|
|
1291
|
-
|
|
1290
|
+
default: m(() => [
|
|
1291
|
+
w("div", { innerHTML: l.tooltip }, null, 8, Xe)
|
|
1292
1292
|
]),
|
|
1293
1293
|
_: 3
|
|
1294
|
-
}, 16)) : (s(), g(a,
|
|
1295
|
-
default:
|
|
1294
|
+
}, 16)) : (s(), g(a, ee(S({ key: 1 }, i.buttonProps)), {
|
|
1295
|
+
default: m(() => [
|
|
1296
1296
|
c(e.$slots, "default")
|
|
1297
1297
|
]),
|
|
1298
1298
|
_: 3
|
|
1299
1299
|
}, 16));
|
|
1300
1300
|
}
|
|
1301
|
-
const
|
|
1301
|
+
const Je = {
|
|
1302
1302
|
name: "w-button",
|
|
1303
1303
|
inheritAttrs: !1,
|
|
1304
1304
|
props: {
|
|
@@ -1334,7 +1334,7 @@ const Xe = {
|
|
|
1334
1334
|
lg: { type: Boolean },
|
|
1335
1335
|
xl: { type: Boolean }
|
|
1336
1336
|
},
|
|
1337
|
-
components: { ButtonPartial:
|
|
1337
|
+
components: { ButtonPartial: Ge },
|
|
1338
1338
|
emits: [],
|
|
1339
1339
|
computed: {
|
|
1340
1340
|
buttonProps() {
|
|
@@ -1342,18 +1342,18 @@ const Xe = {
|
|
|
1342
1342
|
return { ...l, ...this.$attrs };
|
|
1343
1343
|
}
|
|
1344
1344
|
}
|
|
1345
|
-
},
|
|
1346
|
-
function
|
|
1347
|
-
const a =
|
|
1345
|
+
}, Qe = /* @__PURE__ */ _(Je, [["render", Ye]]), F = (e = {}) => (typeof e == "string" ? e = { [e]: !0 } : Array.isArray(e) && (e = { [e.join(" ")]: !0 }), e);
|
|
1346
|
+
function Ze(e, t, l, o, r, i) {
|
|
1347
|
+
const a = $("w-image");
|
|
1348
1348
|
return s(), u("div", {
|
|
1349
|
-
class:
|
|
1349
|
+
class: f(["w-card", i.classes])
|
|
1350
1350
|
}, [
|
|
1351
1351
|
e.$slots.title || l.title ? (s(), u("div", {
|
|
1352
1352
|
key: 0,
|
|
1353
|
-
class:
|
|
1353
|
+
class: f(["w-card__title", { "w-card__title--has-toolbar": e.$slots.title && i.titleHasToolbar, ...i.titleClasses }])
|
|
1354
1354
|
}, [
|
|
1355
1355
|
c(e.$slots, "title", {}, () => [
|
|
1356
|
-
C(
|
|
1356
|
+
C(v(l.title), 1)
|
|
1357
1357
|
])
|
|
1358
1358
|
], 2)) : h("", !0),
|
|
1359
1359
|
l.image ? (s(), g(a, S({
|
|
@@ -1361,25 +1361,25 @@ function Je(e, t, l, o, r, i) {
|
|
|
1361
1361
|
class: "w-card__image",
|
|
1362
1362
|
src: l.image
|
|
1363
1363
|
}, i.imgProps), {
|
|
1364
|
-
default:
|
|
1364
|
+
default: m(() => [
|
|
1365
1365
|
c(e.$slots, "image-content")
|
|
1366
1366
|
]),
|
|
1367
1367
|
_: 3
|
|
1368
1368
|
}, 16, ["src"])) : h("", !0),
|
|
1369
|
-
|
|
1370
|
-
class:
|
|
1369
|
+
w("div", {
|
|
1370
|
+
class: f(["w-card__content", i.contentClasses])
|
|
1371
1371
|
}, [
|
|
1372
1372
|
c(e.$slots, "default")
|
|
1373
1373
|
], 2),
|
|
1374
1374
|
e.$slots.actions ? (s(), u("div", {
|
|
1375
1375
|
key: 2,
|
|
1376
|
-
class:
|
|
1376
|
+
class: f(["w-card__actions", { "w-card__actions--has-toolbar": i.actionsHasToolbar }])
|
|
1377
1377
|
}, [
|
|
1378
1378
|
c(e.$slots, "actions")
|
|
1379
1379
|
], 2)) : h("", !0)
|
|
1380
1380
|
], 2);
|
|
1381
1381
|
}
|
|
1382
|
-
const
|
|
1382
|
+
const et = {
|
|
1383
1383
|
name: "w-card",
|
|
1384
1384
|
props: {
|
|
1385
1385
|
color: { type: String },
|
|
@@ -1396,10 +1396,10 @@ const Qe = {
|
|
|
1396
1396
|
emits: [],
|
|
1397
1397
|
computed: {
|
|
1398
1398
|
titleClasses() {
|
|
1399
|
-
return
|
|
1399
|
+
return F(this.titleClass);
|
|
1400
1400
|
},
|
|
1401
1401
|
contentClasses() {
|
|
1402
|
-
return
|
|
1402
|
+
return F(this.contentClass);
|
|
1403
1403
|
},
|
|
1404
1404
|
titleHasToolbar() {
|
|
1405
1405
|
const { title: e } = this.$slots;
|
|
@@ -1426,7 +1426,7 @@ const Qe = {
|
|
|
1426
1426
|
};
|
|
1427
1427
|
}
|
|
1428
1428
|
}
|
|
1429
|
-
},
|
|
1429
|
+
}, tt = /* @__PURE__ */ _(et, [["render", Ze]]), O = {
|
|
1430
1430
|
inject: {
|
|
1431
1431
|
formRegister: { default: null },
|
|
1432
1432
|
formProps: { default: () => ({ disabled: !1, readonly: !1 }) }
|
|
@@ -1467,13 +1467,13 @@ const Qe = {
|
|
|
1467
1467
|
this.$refs.formEl.validate(this);
|
|
1468
1468
|
}
|
|
1469
1469
|
}
|
|
1470
|
-
},
|
|
1471
|
-
/* @__PURE__ */
|
|
1472
|
-
], -1),
|
|
1473
|
-
|
|
1474
|
-
],
|
|
1475
|
-
function
|
|
1476
|
-
return s(), g(
|
|
1470
|
+
}, lt = ["id", "name", "checked", "disabled", "required", "tabindex", "aria-checked"], it = ["for"], st = ["for", "innerHTML"], at = /* @__PURE__ */ w("svg", { viewBox: "-0.5 0 12 10" }, [
|
|
1471
|
+
/* @__PURE__ */ w("polyline", { points: "1 5 4 8 10 2" })
|
|
1472
|
+
], -1), ot = [
|
|
1473
|
+
at
|
|
1474
|
+
], nt = ["for"], rt = ["for", "innerHTML"];
|
|
1475
|
+
function dt(e, t, l, o, r, i) {
|
|
1476
|
+
return s(), g(I(e.formRegister && !i.wCheckboxes ? "w-form-element" : "div"), S({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: r.isChecked, disabled: e.isDisabled }, {
|
|
1477
1477
|
valid: e.valid,
|
|
1478
1478
|
"onUpdate:valid": t[5] || (t[5] = (a) => e.valid = a),
|
|
1479
1479
|
onReset: t[6] || (t[6] = (a) => {
|
|
@@ -1481,8 +1481,8 @@ function nt(e, t, l, o, r, i) {
|
|
|
1481
1481
|
}),
|
|
1482
1482
|
class: i.classes
|
|
1483
1483
|
}), {
|
|
1484
|
-
default:
|
|
1485
|
-
|
|
1484
|
+
default: m(() => [
|
|
1485
|
+
w("input", {
|
|
1486
1486
|
ref: "input",
|
|
1487
1487
|
id: `w-checkbox--${e._.uid}`,
|
|
1488
1488
|
type: "checkbox",
|
|
@@ -1494,55 +1494,55 @@ function nt(e, t, l, o, r, i) {
|
|
|
1494
1494
|
onFocus: t[0] || (t[0] = (a) => e.$emit("focus", a)),
|
|
1495
1495
|
onBlur: t[1] || (t[1] = (a) => e.$emit("blur", a)),
|
|
1496
1496
|
onChange: t[2] || (t[2] = (a) => i.onInput()),
|
|
1497
|
-
onKeypress: t[3] || (t[3] =
|
|
1497
|
+
onKeypress: t[3] || (t[3] = W((...a) => i.onInput && i.onInput(...a), ["enter"])),
|
|
1498
1498
|
"aria-checked": r.isChecked || "false",
|
|
1499
1499
|
role: "checkbox"
|
|
1500
|
-
}, null, 40,
|
|
1500
|
+
}, null, 40, lt),
|
|
1501
1501
|
i.hasLabel && l.labelOnLeft ? (s(), u(k, { key: 0 }, [
|
|
1502
1502
|
e.$slots.default ? (s(), u("label", {
|
|
1503
1503
|
key: 0,
|
|
1504
|
-
class:
|
|
1504
|
+
class: f(["w-checkbox__label w-form-el-shakable pr2", e.labelClasses]),
|
|
1505
1505
|
for: `w-checkbox--${e._.uid}`
|
|
1506
1506
|
}, [
|
|
1507
1507
|
c(e.$slots, "default", {}, () => [
|
|
1508
|
-
C(
|
|
1508
|
+
C(v(l.label), 1)
|
|
1509
1509
|
])
|
|
1510
|
-
], 10,
|
|
1510
|
+
], 10, it)) : l.label ? (s(), u("label", {
|
|
1511
1511
|
key: 1,
|
|
1512
|
-
class:
|
|
1512
|
+
class: f(["w-checkbox__label w-form-el-shakable pr2", e.labelClasses]),
|
|
1513
1513
|
for: `w-checkbox--${e._.uid}`,
|
|
1514
1514
|
innerHTML: l.label
|
|
1515
|
-
}, null, 10,
|
|
1515
|
+
}, null, 10, st)) : h("", !0)
|
|
1516
1516
|
], 64)) : h("", !0),
|
|
1517
|
-
|
|
1518
|
-
class:
|
|
1517
|
+
w("div", {
|
|
1518
|
+
class: f(["w-checkbox__input", this.color]),
|
|
1519
1519
|
onClick: t[4] || (t[4] = (a) => {
|
|
1520
1520
|
e.$refs.input.focus(), e.$refs.input.click();
|
|
1521
1521
|
})
|
|
1522
|
-
},
|
|
1522
|
+
}, ot, 2),
|
|
1523
1523
|
i.hasLabel && !l.labelOnLeft ? (s(), u(k, { key: 1 }, [
|
|
1524
1524
|
e.$slots.default ? (s(), u("label", {
|
|
1525
1525
|
key: 0,
|
|
1526
|
-
class:
|
|
1526
|
+
class: f(["w-checkbox__label w-form-el-shakable pl2", e.labelClasses]),
|
|
1527
1527
|
for: `w-checkbox--${e._.uid}`
|
|
1528
1528
|
}, [
|
|
1529
1529
|
c(e.$slots, "default", {}, () => [
|
|
1530
|
-
C(
|
|
1530
|
+
C(v(l.label), 1)
|
|
1531
1531
|
])
|
|
1532
|
-
], 10,
|
|
1532
|
+
], 10, nt)) : l.label ? (s(), u("label", {
|
|
1533
1533
|
key: 1,
|
|
1534
|
-
class:
|
|
1534
|
+
class: f(["w-checkbox__label w-form-el-shakable pl2", e.labelClasses]),
|
|
1535
1535
|
for: `w-checkbox--${e._.uid}`,
|
|
1536
1536
|
innerHTML: l.label
|
|
1537
|
-
}, null, 10,
|
|
1537
|
+
}, null, 10, rt)) : h("", !0)
|
|
1538
1538
|
], 64)) : h("", !0)
|
|
1539
1539
|
]),
|
|
1540
1540
|
_: 3
|
|
1541
1541
|
}, 16, ["valid", "class"]);
|
|
1542
1542
|
}
|
|
1543
|
-
const
|
|
1543
|
+
const ut = {
|
|
1544
1544
|
name: "w-checkbox",
|
|
1545
|
-
mixins: [
|
|
1545
|
+
mixins: [O],
|
|
1546
1546
|
inject: {
|
|
1547
1547
|
wCheckboxes: { default: null }
|
|
1548
1548
|
},
|
|
@@ -1595,10 +1595,10 @@ const rt = {
|
|
|
1595
1595
|
this.isChecked = e;
|
|
1596
1596
|
}
|
|
1597
1597
|
}
|
|
1598
|
-
},
|
|
1599
|
-
function
|
|
1600
|
-
const a =
|
|
1601
|
-
return s(), g(
|
|
1598
|
+
}, ht = /* @__PURE__ */ _(ut, [["render", dt]]), ct = ["innerHTML"];
|
|
1599
|
+
function pt(e, t, l, o, r, i) {
|
|
1600
|
+
const a = $("w-checkbox");
|
|
1601
|
+
return s(), g(I(e.formRegister ? "w-form-element" : "div"), S({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: i.checkboxItems.some((n) => n._isChecked), disabled: e.isDisabled }, {
|
|
1602
1602
|
valid: e.valid,
|
|
1603
1603
|
"onUpdate:valid": t[1] || (t[1] = (n) => e.valid = n),
|
|
1604
1604
|
onReset: i.reset,
|
|
@@ -1606,19 +1606,19 @@ function ht(e, t, l, o, r, i) {
|
|
|
1606
1606
|
wrap: l.inline,
|
|
1607
1607
|
class: i.classes
|
|
1608
1608
|
}), {
|
|
1609
|
-
default:
|
|
1609
|
+
default: m(() => [
|
|
1610
1610
|
(s(!0), u(k, null, x(i.checkboxItems, (n, d) => (s(), g(a, S({
|
|
1611
1611
|
key: d,
|
|
1612
1612
|
"model-value": n._isChecked,
|
|
1613
|
-
"onUpdate:modelValue": (
|
|
1614
|
-
onFocus: t[0] || (t[0] = (
|
|
1613
|
+
"onUpdate:modelValue": (p) => i.toggleCheck(n, p),
|
|
1614
|
+
onFocus: t[0] || (t[0] = (p) => e.$emit("focus", p)),
|
|
1615
1615
|
name: `${e.inputName}[]`
|
|
1616
1616
|
}, { label: n.label, color: n.color, labelOnLeft: l.labelOnLeft, labelColor: l.labelColor, round: l.round }, {
|
|
1617
1617
|
disabled: e.isDisabled || null,
|
|
1618
1618
|
readonly: e.isReadonly || null,
|
|
1619
1619
|
class: { mt1: !l.inline && d }
|
|
1620
1620
|
}), {
|
|
1621
|
-
default:
|
|
1621
|
+
default: m(() => [
|
|
1622
1622
|
e.$slots[`item.${d + 1}`] || e.$slots.item ? c(e.$slots, e.$slots[`item.${d + 1}`] ? `item.${d + 1}` : "item", {
|
|
1623
1623
|
key: 0,
|
|
1624
1624
|
item: i.getOriginalItem(n),
|
|
@@ -1628,7 +1628,7 @@ function ht(e, t, l, o, r, i) {
|
|
|
1628
1628
|
}) : n.label ? (s(), u("div", {
|
|
1629
1629
|
key: 1,
|
|
1630
1630
|
innerHTML: n.label
|
|
1631
|
-
}, null, 8,
|
|
1631
|
+
}, null, 8, ct)) : h("", !0)
|
|
1632
1632
|
]),
|
|
1633
1633
|
_: 2
|
|
1634
1634
|
}, 1040, ["model-value", "onUpdate:modelValue", "name", "disabled", "readonly", "class"]))), 128))
|
|
@@ -1636,9 +1636,9 @@ function ht(e, t, l, o, r, i) {
|
|
|
1636
1636
|
_: 3
|
|
1637
1637
|
}, 16, ["valid", "onReset", "column", "wrap", "class"]);
|
|
1638
1638
|
}
|
|
1639
|
-
const
|
|
1639
|
+
const ft = {
|
|
1640
1640
|
name: "w-checkboxes",
|
|
1641
|
-
mixins: [
|
|
1641
|
+
mixins: [O],
|
|
1642
1642
|
props: {
|
|
1643
1643
|
items: { type: Array, required: !0 },
|
|
1644
1644
|
modelValue: { type: Array },
|
|
@@ -1659,7 +1659,7 @@ const ct = {
|
|
|
1659
1659
|
checkboxItems() {
|
|
1660
1660
|
return (this.items || []).map((e, t) => {
|
|
1661
1661
|
const l = e[this.itemValueKey] === void 0 ? e[this.itemLabelKey] || t : e[this.itemValueKey];
|
|
1662
|
-
return
|
|
1662
|
+
return j({
|
|
1663
1663
|
...e,
|
|
1664
1664
|
label: e[this.itemLabelKey],
|
|
1665
1665
|
_index: t,
|
|
@@ -1689,64 +1689,64 @@ const ct = {
|
|
|
1689
1689
|
return this.items[e._index];
|
|
1690
1690
|
}
|
|
1691
1691
|
}
|
|
1692
|
-
},
|
|
1693
|
-
function
|
|
1694
|
-
const a =
|
|
1695
|
-
return s(), u("div",
|
|
1696
|
-
|
|
1692
|
+
}, mt = /* @__PURE__ */ _(ft, [["render", pt]]), bt = { class: "w-confirm" };
|
|
1693
|
+
function gt(e, t, l, o, r, i) {
|
|
1694
|
+
const a = $("w-button"), n = $("w-flex"), d = $("w-menu"), p = ae("focus");
|
|
1695
|
+
return s(), u("div", bt, [
|
|
1696
|
+
V(d, S({
|
|
1697
1697
|
modelValue: e.showPopup,
|
|
1698
|
-
"onUpdate:modelValue": t[2] || (t[2] = (
|
|
1698
|
+
"onUpdate:modelValue": t[2] || (t[2] = (b) => e.showPopup = b)
|
|
1699
1699
|
}, i.wMenuProps), {
|
|
1700
|
-
activator:
|
|
1701
|
-
|
|
1702
|
-
default:
|
|
1700
|
+
activator: m(({ on: b }) => [
|
|
1701
|
+
V(a, S({ class: "w-confirm__button" }, { ...e.$attrs, ...i.buttonProps, ...l.disablePrompt ? {} : b }), {
|
|
1702
|
+
default: m(() => [
|
|
1703
1703
|
c(e.$slots, "default")
|
|
1704
1704
|
]),
|
|
1705
1705
|
_: 2
|
|
1706
1706
|
}, 1040)
|
|
1707
1707
|
]),
|
|
1708
|
-
default:
|
|
1709
|
-
|
|
1708
|
+
default: m(() => [
|
|
1709
|
+
V(n, {
|
|
1710
1710
|
column: !l.inline,
|
|
1711
1711
|
"align-center": ""
|
|
1712
1712
|
}, {
|
|
1713
|
-
default:
|
|
1714
|
-
|
|
1713
|
+
default: m(() => [
|
|
1714
|
+
w("div", null, [
|
|
1715
1715
|
c(e.$slots, "question", {}, () => [
|
|
1716
|
-
C(
|
|
1716
|
+
C(v(l.question), 1)
|
|
1717
1717
|
])
|
|
1718
1718
|
]),
|
|
1719
|
-
|
|
1720
|
-
class:
|
|
1719
|
+
w("div", {
|
|
1720
|
+
class: f(["w-flex justify-end", l.inline ? "ml2" : "mt2"])
|
|
1721
1721
|
}, [
|
|
1722
1722
|
l.cancel !== !1 ? (s(), g(a, S({
|
|
1723
1723
|
key: 0,
|
|
1724
1724
|
class: "mr2"
|
|
1725
1725
|
}, i.cancelButtonProps, {
|
|
1726
1726
|
"bg-color": (i.cancelButton || {}).bgColor || "error",
|
|
1727
|
-
onKeyup: t[0] || (t[0] =
|
|
1727
|
+
onKeyup: t[0] || (t[0] = W((b) => !l.persistent && i.onCancel(), ["escape"])),
|
|
1728
1728
|
onClick: i.onCancel
|
|
1729
1729
|
}), {
|
|
1730
|
-
default:
|
|
1730
|
+
default: m(() => [
|
|
1731
1731
|
c(e.$slots, "cancel", {}, () => [
|
|
1732
|
-
C(
|
|
1732
|
+
C(v(i.cancelButton.label), 1)
|
|
1733
1733
|
])
|
|
1734
1734
|
]),
|
|
1735
1735
|
_: 3
|
|
1736
1736
|
}, 16, ["bg-color", "onClick"])) : h("", !0),
|
|
1737
|
-
|
|
1737
|
+
H((s(), g(a, S(i.confirmButtonProps, {
|
|
1738
1738
|
"bg-color": (i.confirmButton || {}).bgColor || "success",
|
|
1739
|
-
onKeyup: t[1] || (t[1] =
|
|
1739
|
+
onKeyup: t[1] || (t[1] = W((b) => !l.persistent && i.onCancel(), ["escape"])),
|
|
1740
1740
|
onClick: i.onConfirm
|
|
1741
1741
|
}), {
|
|
1742
|
-
default:
|
|
1742
|
+
default: m(() => [
|
|
1743
1743
|
c(e.$slots, "confirm", {}, () => [
|
|
1744
|
-
C(
|
|
1744
|
+
C(v(i.confirmButton.label), 1)
|
|
1745
1745
|
])
|
|
1746
1746
|
]),
|
|
1747
1747
|
_: 3
|
|
1748
1748
|
}, 16, ["bg-color", "onClick"])), [
|
|
1749
|
-
[
|
|
1749
|
+
[p]
|
|
1750
1750
|
])
|
|
1751
1751
|
], 2)
|
|
1752
1752
|
]),
|
|
@@ -1757,12 +1757,13 @@ function mt(e, t, l, o, r, i) {
|
|
|
1757
1757
|
}, 16, ["modelValue"])
|
|
1758
1758
|
]);
|
|
1759
1759
|
}
|
|
1760
|
-
const
|
|
1760
|
+
const yt = {
|
|
1761
1761
|
name: "w-confirm",
|
|
1762
1762
|
props: {
|
|
1763
1763
|
bgColor: { type: String },
|
|
1764
1764
|
color: { type: String },
|
|
1765
1765
|
icon: { type: String },
|
|
1766
|
+
disablePrompt: { type: Boolean },
|
|
1766
1767
|
mainButton: { type: Object },
|
|
1767
1768
|
question: { type: String, default: "Are you sure?" },
|
|
1768
1769
|
cancel: { type: [Boolean, Object, String], default: void 0 },
|
|
@@ -1844,16 +1845,16 @@ const bt = {
|
|
|
1844
1845
|
this.$emit("confirm"), this.showPopup = !1;
|
|
1845
1846
|
}
|
|
1846
1847
|
}
|
|
1847
|
-
},
|
|
1848
|
-
function
|
|
1848
|
+
}, wt = /* @__PURE__ */ _(yt, [["render", gt]]);
|
|
1849
|
+
function vt(e, t, l, o, r, i) {
|
|
1849
1850
|
return s(), u("div", {
|
|
1850
|
-
class:
|
|
1851
|
+
class: f(["w-date-picker", i.classes]),
|
|
1851
1852
|
style: R(i.styles)
|
|
1852
1853
|
}, [
|
|
1853
1854
|
c(e.$slots, "default")
|
|
1854
1855
|
], 6);
|
|
1855
1856
|
}
|
|
1856
|
-
const
|
|
1857
|
+
const _t = {
|
|
1857
1858
|
name: "w-date-picker",
|
|
1858
1859
|
props: {},
|
|
1859
1860
|
emits: [],
|
|
@@ -1865,11 +1866,11 @@ const wt = {
|
|
|
1865
1866
|
return !1;
|
|
1866
1867
|
}
|
|
1867
1868
|
}
|
|
1868
|
-
},
|
|
1869
|
-
function
|
|
1870
|
-
const a =
|
|
1869
|
+
}, kt = /* @__PURE__ */ _(_t, [["render", vt]]);
|
|
1870
|
+
function Ct(e, t, l, o, r, i) {
|
|
1871
|
+
const a = $("w-card"), n = $("w-overlay");
|
|
1871
1872
|
return s(), g(n, {
|
|
1872
|
-
class:
|
|
1873
|
+
class: f(["w-dialog", i.classes]),
|
|
1873
1874
|
"model-value": r.showWrapper,
|
|
1874
1875
|
persistent: l.persistent,
|
|
1875
1876
|
"persistent-no-animation": l.persistentNoAnimation,
|
|
@@ -1878,15 +1879,15 @@ function _t(e, t, l, o, r, i) {
|
|
|
1878
1879
|
"bg-color": l.overlayColor,
|
|
1879
1880
|
opacity: l.overlayOpacity
|
|
1880
1881
|
}, {
|
|
1881
|
-
default:
|
|
1882
|
-
|
|
1882
|
+
default: m(() => [
|
|
1883
|
+
V(T, {
|
|
1883
1884
|
name: l.transition,
|
|
1884
1885
|
appear: "",
|
|
1885
1886
|
onAfterLeave: i.onBeforeClose
|
|
1886
1887
|
}, {
|
|
1887
|
-
default:
|
|
1888
|
-
|
|
1889
|
-
class:
|
|
1888
|
+
default: m(() => [
|
|
1889
|
+
H(V(a, {
|
|
1890
|
+
class: f(["w-dialog__content", l.dialogClass]),
|
|
1890
1891
|
ref: "dialog",
|
|
1891
1892
|
"no-border": "",
|
|
1892
1893
|
color: l.color,
|
|
@@ -1895,28 +1896,28 @@ function _t(e, t, l, o, r, i) {
|
|
|
1895
1896
|
"content-class": l.contentClass,
|
|
1896
1897
|
title: l.title || void 0,
|
|
1897
1898
|
style: R(i.contentStyles)
|
|
1898
|
-
},
|
|
1899
|
-
default:
|
|
1899
|
+
}, Y({
|
|
1900
|
+
default: m(() => [
|
|
1900
1901
|
c(e.$slots, "default")
|
|
1901
1902
|
]),
|
|
1902
1903
|
_: 2
|
|
1903
1904
|
}, [
|
|
1904
1905
|
e.$slots.title ? {
|
|
1905
1906
|
name: "title",
|
|
1906
|
-
fn:
|
|
1907
|
+
fn: m(() => [
|
|
1907
1908
|
c(e.$slots, "title")
|
|
1908
1909
|
]),
|
|
1909
1910
|
key: "0"
|
|
1910
1911
|
} : void 0,
|
|
1911
1912
|
e.$slots.actions ? {
|
|
1912
1913
|
name: "actions",
|
|
1913
|
-
fn:
|
|
1914
|
+
fn: m(() => [
|
|
1914
1915
|
c(e.$slots, "actions")
|
|
1915
1916
|
]),
|
|
1916
1917
|
key: "1"
|
|
1917
1918
|
} : void 0
|
|
1918
1919
|
]), 1032, ["color", "bg-color", "class", "title-class", "content-class", "title", "style"]), [
|
|
1919
|
-
[
|
|
1920
|
+
[oe, r.showContent]
|
|
1920
1921
|
])
|
|
1921
1922
|
]),
|
|
1922
1923
|
_: 3
|
|
@@ -1925,7 +1926,7 @@ function _t(e, t, l, o, r, i) {
|
|
|
1925
1926
|
_: 3
|
|
1926
1927
|
}, 8, ["model-value", "persistent", "persistent-no-animation", "onClick", "onClose", "bg-color", "opacity", "class"]);
|
|
1927
1928
|
}
|
|
1928
|
-
const
|
|
1929
|
+
const St = {
|
|
1929
1930
|
name: "w-dialog",
|
|
1930
1931
|
props: {
|
|
1931
1932
|
modelValue: { default: !0 },
|
|
@@ -1988,17 +1989,17 @@ const kt = {
|
|
|
1988
1989
|
this.showWrapper = e, this.showContent = e;
|
|
1989
1990
|
}
|
|
1990
1991
|
}
|
|
1991
|
-
},
|
|
1992
|
-
function
|
|
1992
|
+
}, Bt = /* @__PURE__ */ _(St, [["render", Ct]]), $t = ["role", "aria-orientation"];
|
|
1993
|
+
function Vt(e, t, l, o, r, i) {
|
|
1993
1994
|
return s(), u("div", {
|
|
1994
|
-
class:
|
|
1995
|
+
class: f(["w-divider", i.classes]),
|
|
1995
1996
|
role: e.$slots.default ? null : "presentation",
|
|
1996
1997
|
"aria-orientation": l.vertical ? "vertical" : "horizontal"
|
|
1997
1998
|
}, [
|
|
1998
1999
|
c(e.$slots, "default")
|
|
1999
|
-
], 10,
|
|
2000
|
+
], 10, $t);
|
|
2000
2001
|
}
|
|
2001
|
-
const
|
|
2002
|
+
const It = {
|
|
2002
2003
|
name: "w-divider",
|
|
2003
2004
|
props: {
|
|
2004
2005
|
vertical: { type: Boolean },
|
|
@@ -2014,19 +2015,19 @@ const $t = {
|
|
|
2014
2015
|
};
|
|
2015
2016
|
}
|
|
2016
2017
|
}
|
|
2017
|
-
},
|
|
2018
|
-
function
|
|
2019
|
-
const a =
|
|
2018
|
+
}, Rt = /* @__PURE__ */ _(It, [["render", Vt]]), Lt = { class: "w-drawer-wrap__pushable" };
|
|
2019
|
+
function xt(e, t, l, o, r, i) {
|
|
2020
|
+
const a = $("w-overlay");
|
|
2020
2021
|
return r.showWrapper || l.pushContent ? (s(), u("div", {
|
|
2021
2022
|
key: 0,
|
|
2022
|
-
class:
|
|
2023
|
+
class: f(["w-drawer-wrap", i.wrapperClasses])
|
|
2023
2024
|
}, [
|
|
2024
2025
|
l.pushContent ? (s(), u("div", {
|
|
2025
2026
|
key: 0,
|
|
2026
2027
|
class: "w-drawer-wrap__track",
|
|
2027
2028
|
style: R(i.trackStyles)
|
|
2028
2029
|
}, [
|
|
2029
|
-
|
|
2030
|
+
w("div", Lt, [
|
|
2030
2031
|
l.noOverlay ? h("", !0) : (s(), g(a, {
|
|
2031
2032
|
key: 0,
|
|
2032
2033
|
modelValue: r.showDrawer,
|
|
@@ -2039,19 +2040,19 @@ function Rt(e, t, l, o, r, i) {
|
|
|
2039
2040
|
}, null, 8, ["modelValue", "onClick", "persistent", "bg-color", "opacity"])),
|
|
2040
2041
|
c(e.$slots, "pushable")
|
|
2041
2042
|
]),
|
|
2042
|
-
|
|
2043
|
+
V(T, {
|
|
2043
2044
|
name: "fade",
|
|
2044
2045
|
onBeforeLeave: i.onBeforeClose,
|
|
2045
2046
|
onAfterLeave: i.onClose
|
|
2046
2047
|
}, {
|
|
2047
|
-
default:
|
|
2048
|
-
r.showDrawer ? (s(), g(
|
|
2048
|
+
default: m(() => [
|
|
2049
|
+
r.showDrawer ? (s(), g(I(l.tag || "aside"), {
|
|
2049
2050
|
key: 0,
|
|
2050
|
-
class:
|
|
2051
|
+
class: f(["w-drawer", i.drawerClasses]),
|
|
2051
2052
|
ref: "drawer",
|
|
2052
2053
|
style: R(i.styles)
|
|
2053
2054
|
}, {
|
|
2054
|
-
default:
|
|
2055
|
+
default: m(() => [
|
|
2055
2056
|
c(e.$slots, "default")
|
|
2056
2057
|
]),
|
|
2057
2058
|
_: 3
|
|
@@ -2070,20 +2071,20 @@ function Rt(e, t, l, o, r, i) {
|
|
|
2070
2071
|
"bg-color": l.overlayColor,
|
|
2071
2072
|
opacity: l.overlayOpacity
|
|
2072
2073
|
}, null, 8, ["modelValue", "onClick", "persistent", "bg-color", "opacity"])),
|
|
2073
|
-
|
|
2074
|
+
V(T, {
|
|
2074
2075
|
name: i.transitionName,
|
|
2075
2076
|
appear: "",
|
|
2076
2077
|
onBeforeLeave: i.onBeforeClose,
|
|
2077
2078
|
onAfterLeave: i.onClose
|
|
2078
2079
|
}, {
|
|
2079
|
-
default:
|
|
2080
|
-
r.showDrawer ? (s(), g(
|
|
2080
|
+
default: m(() => [
|
|
2081
|
+
r.showDrawer ? (s(), g(I(l.tag || "aside"), {
|
|
2081
2082
|
key: 0,
|
|
2082
|
-
class:
|
|
2083
|
+
class: f(["w-drawer", i.drawerClasses]),
|
|
2083
2084
|
ref: "drawer",
|
|
2084
2085
|
style: R(i.styles)
|
|
2085
2086
|
}, {
|
|
2086
|
-
default:
|
|
2087
|
+
default: m(() => [
|
|
2087
2088
|
c(e.$slots, "default")
|
|
2088
2089
|
]),
|
|
2089
2090
|
_: 3
|
|
@@ -2094,7 +2095,7 @@ function Rt(e, t, l, o, r, i) {
|
|
|
2094
2095
|
], 64))
|
|
2095
2096
|
], 2)) : h("", !0);
|
|
2096
2097
|
}
|
|
2097
|
-
const
|
|
2098
|
+
const Tt = { left: "right", right: "left", top: "down", bottom: "up" }, zt = {
|
|
2098
2099
|
name: "w-drawer",
|
|
2099
2100
|
props: {
|
|
2100
2101
|
modelValue: { default: !0 },
|
|
@@ -2176,7 +2177,7 @@ const xt = { left: "right", right: "left", top: "down", bottom: "up" }, Lt = {
|
|
|
2176
2177
|
return !this.showWrapper;
|
|
2177
2178
|
},
|
|
2178
2179
|
transitionName() {
|
|
2179
|
-
return `slide-${
|
|
2180
|
+
return `slide-${Tt[this.position]}`;
|
|
2180
2181
|
}
|
|
2181
2182
|
},
|
|
2182
2183
|
methods: {
|
|
@@ -2195,18 +2196,18 @@ const xt = { left: "right", right: "left", top: "down", bottom: "up" }, Lt = {
|
|
|
2195
2196
|
e && (this.showWrapper = !0), this.showDrawer = e;
|
|
2196
2197
|
}
|
|
2197
2198
|
}
|
|
2198
|
-
},
|
|
2199
|
-
function
|
|
2200
|
-
return s(), g(
|
|
2201
|
-
class:
|
|
2199
|
+
}, Et = /* @__PURE__ */ _(zt, [["render", xt]]);
|
|
2200
|
+
function Pt(e, t, l, o, r, i) {
|
|
2201
|
+
return s(), g(I(l.tag), {
|
|
2202
|
+
class: f(["w-flex", i.classes])
|
|
2202
2203
|
}, {
|
|
2203
|
-
default:
|
|
2204
|
+
default: m(() => [
|
|
2204
2205
|
c(e.$slots, "default")
|
|
2205
2206
|
]),
|
|
2206
2207
|
_: 3
|
|
2207
2208
|
}, 8, ["class"]);
|
|
2208
2209
|
}
|
|
2209
|
-
const
|
|
2210
|
+
const Ot = {
|
|
2210
2211
|
name: "w-flex",
|
|
2211
2212
|
props: {
|
|
2212
2213
|
tag: { type: String, default: "div" },
|
|
@@ -2253,10 +2254,10 @@ const Et = {
|
|
|
2253
2254
|
};
|
|
2254
2255
|
}
|
|
2255
2256
|
}
|
|
2256
|
-
},
|
|
2257
|
-
function
|
|
2257
|
+
}, Mt = /* @__PURE__ */ _(Ot, [["render", Pt]]);
|
|
2258
|
+
function Nt(e, t, l, o, r, i) {
|
|
2258
2259
|
return s(), u("form", {
|
|
2259
|
-
class:
|
|
2260
|
+
class: f(["w-form", i.classes]),
|
|
2260
2261
|
onSubmit: t[0] || (t[0] = (...a) => i.onSubmit && i.onSubmit(...a)),
|
|
2261
2262
|
onReset: t[1] || (t[1] = (...a) => i.reset && i.reset(...a)),
|
|
2262
2263
|
novalidate: ""
|
|
@@ -2264,12 +2265,12 @@ function Pt(e, t, l, o, r, i) {
|
|
|
2264
2265
|
c(e.$slots, "default")
|
|
2265
2266
|
], 34);
|
|
2266
2267
|
}
|
|
2267
|
-
const
|
|
2268
|
+
const Wt = async (e, t) => {
|
|
2268
2269
|
for (const l of e)
|
|
2269
2270
|
if (await t(l))
|
|
2270
2271
|
return !0;
|
|
2271
2272
|
return !1;
|
|
2272
|
-
},
|
|
2273
|
+
}, At = {
|
|
2273
2274
|
name: "w-form",
|
|
2274
2275
|
props: {
|
|
2275
2276
|
modelValue: {},
|
|
@@ -2336,7 +2337,7 @@ const Mt = async (e, t) => {
|
|
|
2336
2337
|
},
|
|
2337
2338
|
async checkElementValidators(e) {
|
|
2338
2339
|
let t = !1, l = "";
|
|
2339
|
-
await
|
|
2340
|
+
await Wt(e.validators, async (o) => {
|
|
2340
2341
|
const r = await (typeof o == "function" && o(e.inputValue));
|
|
2341
2342
|
return t = typeof r != "string", l = t ? "" : r, !t;
|
|
2342
2343
|
}), e.hasJustReset = !1, e.Validation.isValid = t, e.Validation.message = l;
|
|
@@ -2359,27 +2360,27 @@ const Mt = async (e, t) => {
|
|
|
2359
2360
|
(this.status === !1 && e || e === null && this.status !== null) && this.reset(), this.status = e;
|
|
2360
2361
|
}
|
|
2361
2362
|
}
|
|
2362
|
-
},
|
|
2363
|
-
function
|
|
2364
|
-
const a =
|
|
2363
|
+
}, Kt = /* @__PURE__ */ _(At, [["render", Nt]]);
|
|
2364
|
+
function Dt(e, t, l, o, r, i) {
|
|
2365
|
+
const a = $("w-transition-expand");
|
|
2365
2366
|
return s(), u("div", {
|
|
2366
|
-
class:
|
|
2367
|
+
class: f(i.classes)
|
|
2367
2368
|
}, [
|
|
2368
|
-
|
|
2369
|
-
class:
|
|
2369
|
+
w("div", {
|
|
2370
|
+
class: f(["w-flex grow", [l.column ? "column" : "align-center", l.wrap ? "wrap" : ""]])
|
|
2370
2371
|
}, [
|
|
2371
2372
|
c(e.$slots, "default")
|
|
2372
2373
|
], 2),
|
|
2373
|
-
|
|
2374
|
-
default:
|
|
2374
|
+
V(a, { y: "" }, {
|
|
2375
|
+
default: m(() => [
|
|
2375
2376
|
e.Validation.message ? (s(), u("div", {
|
|
2376
2377
|
key: 0,
|
|
2377
|
-
class:
|
|
2378
|
+
class: f(["w-form-el__error", i.formProps.validationColor])
|
|
2378
2379
|
}, [
|
|
2379
2380
|
c(e.$slots, "error-message", {
|
|
2380
2381
|
message: e.Validation.message
|
|
2381
2382
|
}, () => [
|
|
2382
|
-
C(
|
|
2383
|
+
C(v(e.Validation.message), 1)
|
|
2383
2384
|
])
|
|
2384
2385
|
], 2)) : h("", !0)
|
|
2385
2386
|
]),
|
|
@@ -2387,7 +2388,7 @@ function At(e, t, l, o, r, i) {
|
|
|
2387
2388
|
})
|
|
2388
2389
|
], 2);
|
|
2389
2390
|
}
|
|
2390
|
-
const
|
|
2391
|
+
const Ft = {
|
|
2391
2392
|
name: "w-form-element",
|
|
2392
2393
|
props: {
|
|
2393
2394
|
valid: { required: !0 },
|
|
@@ -2453,18 +2454,18 @@ const Kt = {
|
|
|
2453
2454
|
beforeUnmount() {
|
|
2454
2455
|
this.formUnregister && this.formUnregister(this);
|
|
2455
2456
|
}
|
|
2456
|
-
},
|
|
2457
|
-
function
|
|
2458
|
-
return s(), g(
|
|
2459
|
-
class:
|
|
2457
|
+
}, jt = /* @__PURE__ */ _(Ft, [["render", Dt]]);
|
|
2458
|
+
function Ht(e, t, l, o, r, i) {
|
|
2459
|
+
return s(), g(I(l.tag), {
|
|
2460
|
+
class: f(["w-grid", i.classes])
|
|
2460
2461
|
}, {
|
|
2461
|
-
default:
|
|
2462
|
+
default: m(() => [
|
|
2462
2463
|
c(e.$slots, "default")
|
|
2463
2464
|
]),
|
|
2464
2465
|
_: 3
|
|
2465
2466
|
}, 8, ["class"]);
|
|
2466
2467
|
}
|
|
2467
|
-
const
|
|
2468
|
+
const Ut = {
|
|
2468
2469
|
name: "w-grid",
|
|
2469
2470
|
props: {
|
|
2470
2471
|
tag: { type: String, default: "div" },
|
|
@@ -2508,23 +2509,23 @@ const jt = {
|
|
|
2508
2509
|
};
|
|
2509
2510
|
}
|
|
2510
2511
|
}
|
|
2511
|
-
},
|
|
2512
|
-
function
|
|
2513
|
-
return s(), g(
|
|
2512
|
+
}, qt = /* @__PURE__ */ _(Ut, [["render", Ht]]);
|
|
2513
|
+
function Gt(e, t, l, o, r, i) {
|
|
2514
|
+
return s(), g(I(l.tag || "i"), S({ class: "w-icon" }, A(e.$attrs), {
|
|
2514
2515
|
class: i.classes,
|
|
2515
2516
|
role: "icon",
|
|
2516
2517
|
"aria-hidden": "true",
|
|
2517
2518
|
style: i.readIcon() && i.styles
|
|
2518
2519
|
}), {
|
|
2519
|
-
default:
|
|
2520
|
+
default: m(() => [
|
|
2520
2521
|
i.hasLigature ? (s(), u(k, { key: 0 }, [
|
|
2521
|
-
C(
|
|
2522
|
+
C(v(e.icon), 1)
|
|
2522
2523
|
], 64)) : h("", !0)
|
|
2523
2524
|
]),
|
|
2524
2525
|
_: 1
|
|
2525
2526
|
}, 16, ["class", "style"]);
|
|
2526
2527
|
}
|
|
2527
|
-
const
|
|
2528
|
+
const Xt = {
|
|
2528
2529
|
name: "w-icon",
|
|
2529
2530
|
props: {
|
|
2530
2531
|
tag: { type: String, default: "i" },
|
|
@@ -2593,43 +2594,43 @@ const qt = {
|
|
|
2593
2594
|
return this.fontName = t, this.icon = l, !0;
|
|
2594
2595
|
}
|
|
2595
2596
|
}
|
|
2596
|
-
},
|
|
2597
|
+
}, Yt = /* @__PURE__ */ _(Xt, [["render", Gt]]), te = (e) => console.warn(`Wave UI: ${e}`), Z = (e) => console.error(`Wave UI: ${e}`), Jt = {
|
|
2597
2598
|
key: 0,
|
|
2598
2599
|
class: "w-image__loader"
|
|
2599
2600
|
};
|
|
2600
|
-
function
|
|
2601
|
-
const a =
|
|
2602
|
-
return s(), g(
|
|
2603
|
-
class:
|
|
2601
|
+
function Qt(e, t, l, o, r, i) {
|
|
2602
|
+
const a = $("w-progress");
|
|
2603
|
+
return s(), g(I(i.wrapperTag), {
|
|
2604
|
+
class: f(["w-image-wrap", i.wrapperClasses]),
|
|
2604
2605
|
style: R(i.wrapperStyles)
|
|
2605
2606
|
}, {
|
|
2606
|
-
default:
|
|
2607
|
-
|
|
2607
|
+
default: m(() => [
|
|
2608
|
+
V(T, {
|
|
2608
2609
|
name: l.transition,
|
|
2609
2610
|
appear: ""
|
|
2610
2611
|
}, {
|
|
2611
|
-
default:
|
|
2612
|
-
r.loaded ? (s(), g(
|
|
2612
|
+
default: m(() => [
|
|
2613
|
+
r.loaded ? (s(), g(I(l.tag), {
|
|
2613
2614
|
key: 0,
|
|
2614
|
-
class:
|
|
2615
|
+
class: f(["w-image", i.imageClasses]),
|
|
2615
2616
|
style: R(i.imageStyles),
|
|
2616
2617
|
src: l.tag === "img" ? r.imgSrc : null
|
|
2617
2618
|
}, null, 8, ["class", "style", "src"])) : h("", !0)
|
|
2618
2619
|
]),
|
|
2619
2620
|
_: 1
|
|
2620
2621
|
}, 8, ["name"]),
|
|
2621
|
-
!l.noSpinner && r.loading ? (s(), u("div",
|
|
2622
|
+
!l.noSpinner && r.loading ? (s(), u("div", Jt, [
|
|
2622
2623
|
e.$slots.loading ? c(e.$slots, "loading", { key: 0 }) : (s(), g(a, S({
|
|
2623
2624
|
key: 1,
|
|
2624
2625
|
circle: "",
|
|
2625
2626
|
indeterminate: ""
|
|
2626
2627
|
}, l.spinnerColor ? { color: l.spinnerColor } : {}), null, 16))
|
|
2627
2628
|
])) : h("", !0),
|
|
2628
|
-
e.$slots.default ? (s(), g(
|
|
2629
|
+
e.$slots.default ? (s(), g(I(i.wrapperTag), {
|
|
2629
2630
|
key: 1,
|
|
2630
|
-
class:
|
|
2631
|
+
class: f(["w-image__content", l.contentClass])
|
|
2631
2632
|
}, {
|
|
2632
|
-
default:
|
|
2633
|
+
default: m(() => [
|
|
2633
2634
|
c(e.$slots, "default")
|
|
2634
2635
|
]),
|
|
2635
2636
|
_: 3
|
|
@@ -2638,7 +2639,7 @@ function Yt(e, t, l, o, r, i) {
|
|
|
2638
2639
|
_: 3
|
|
2639
2640
|
}, 8, ["class", "style"]);
|
|
2640
2641
|
}
|
|
2641
|
-
const
|
|
2642
|
+
const Zt = {
|
|
2642
2643
|
name: "w-image",
|
|
2643
2644
|
props: {
|
|
2644
2645
|
tag: { type: String, default: "span" },
|
|
@@ -2714,7 +2715,7 @@ const Jt = {
|
|
|
2714
2715
|
},
|
|
2715
2716
|
mounted() {
|
|
2716
2717
|
if (!this.src)
|
|
2717
|
-
return
|
|
2718
|
+
return te("The w-image component was used without src.");
|
|
2718
2719
|
if (this.lazy) {
|
|
2719
2720
|
const e = new IntersectionObserver((t) => {
|
|
2720
2721
|
t[0] && t[0].isIntersecting && (this.loadImage(), e.disconnect());
|
|
@@ -2734,13 +2735,13 @@ const Jt = {
|
|
|
2734
2735
|
this.imgHeight = e;
|
|
2735
2736
|
}
|
|
2736
2737
|
}
|
|
2737
|
-
},
|
|
2738
|
+
}, el = /* @__PURE__ */ _(Zt, [["render", Qt]]), tl = ["name"], ll = ["for"], il = ["id", "type", "name", "placeholder", "step", "min", "max", "minlength", "maxlength", "readonly", "aria-readonly", "disabled", "required", "tabindex"], sl = ["id", "name", "multiple", "data-progress"], al = {
|
|
2738
2739
|
class: "w-input__no-file",
|
|
2739
2740
|
key: "no-file"
|
|
2740
|
-
},
|
|
2741
|
-
function
|
|
2742
|
-
const a =
|
|
2743
|
-
return s(), g(
|
|
2741
|
+
}, ol = ["for"], nl = ["for"], rl = ["src"], dl = ["for"];
|
|
2742
|
+
function ul(e, t, l, o, r, i) {
|
|
2743
|
+
const a = $("w-icon"), n = $("w-progress");
|
|
2744
|
+
return s(), g(I(e.formRegister ? "w-form-element" : "div"), S({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: r.inputValue, disabled: e.isDisabled, readonly: e.isReadonly, isFocused: r.isFocused }, {
|
|
2744
2745
|
valid: e.valid,
|
|
2745
2746
|
"onUpdate:valid": t[10] || (t[10] = (d) => e.valid = d),
|
|
2746
2747
|
onReset: t[11] || (t[11] = (d) => {
|
|
@@ -2749,28 +2750,28 @@ function rl(e, t, l, o, r, i) {
|
|
|
2749
2750
|
wrap: i.hasLabel && l.labelPosition !== "inside",
|
|
2750
2751
|
class: i.classes
|
|
2751
2752
|
}), {
|
|
2752
|
-
default:
|
|
2753
|
-
l.type === "hidden" ?
|
|
2753
|
+
default: m(() => [
|
|
2754
|
+
l.type === "hidden" ? H((s(), u("input", {
|
|
2754
2755
|
key: 0,
|
|
2755
2756
|
type: "hidden",
|
|
2756
2757
|
name: e.name || null,
|
|
2757
2758
|
"onUpdate:modelValue": t[0] || (t[0] = (d) => r.inputValue = d)
|
|
2758
|
-
}, null, 8,
|
|
2759
|
-
[
|
|
2759
|
+
}, null, 8, tl)), [
|
|
2760
|
+
[ne, r.inputValue]
|
|
2760
2761
|
]) : (s(), u(k, { key: 1 }, [
|
|
2761
2762
|
l.labelPosition === "left" ? (s(), u(k, { key: 0 }, [
|
|
2762
2763
|
e.$slots.default || l.label ? (s(), u("label", {
|
|
2763
2764
|
key: 0,
|
|
2764
|
-
class:
|
|
2765
|
+
class: f(["w-input__label w-input__label--left w-form-el-shakable", e.labelClasses]),
|
|
2765
2766
|
for: `w-input--${e._.uid}`
|
|
2766
2767
|
}, [
|
|
2767
2768
|
c(e.$slots, "default", {}, () => [
|
|
2768
|
-
C(
|
|
2769
|
+
C(v(l.label), 1)
|
|
2769
2770
|
])
|
|
2770
|
-
], 10,
|
|
2771
|
+
], 10, ll)) : h("", !0)
|
|
2771
2772
|
], 64)) : h("", !0),
|
|
2772
|
-
|
|
2773
|
-
class:
|
|
2773
|
+
w("div", {
|
|
2774
|
+
class: f(["w-input__input-wrap", i.inputWrapClasses])
|
|
2774
2775
|
}, [
|
|
2775
2776
|
l.innerIconLeft ? (s(), g(a, {
|
|
2776
2777
|
key: 0,
|
|
@@ -2779,17 +2780,17 @@ function rl(e, t, l, o, r, i) {
|
|
|
2779
2780
|
for: `w-input--${e._.uid}`,
|
|
2780
2781
|
onClick: t[1] || (t[1] = (d) => e.$emit("click:inner-icon-left", d))
|
|
2781
2782
|
}, {
|
|
2782
|
-
default:
|
|
2783
|
-
C(
|
|
2783
|
+
default: m(() => [
|
|
2784
|
+
C(v(l.innerIconLeft), 1)
|
|
2784
2785
|
]),
|
|
2785
2786
|
_: 1
|
|
2786
2787
|
}, 8, ["for"])) : h("", !0),
|
|
2787
|
-
l.type !== "file" ?
|
|
2788
|
+
l.type !== "file" ? H((s(), u("input", S({
|
|
2788
2789
|
key: 1,
|
|
2789
2790
|
class: "w-input__input",
|
|
2790
2791
|
ref: "input",
|
|
2791
2792
|
"onUpdate:modelValue": t[2] || (t[2] = (d) => r.inputValue = d)
|
|
2792
|
-
},
|
|
2793
|
+
}, A(i.listeners, !0), {
|
|
2793
2794
|
onInput: t[3] || (t[3] = (...d) => i.onInput && i.onInput(...d)),
|
|
2794
2795
|
onFocus: t[4] || (t[4] = (...d) => i.onFocus && i.onFocus(...d)),
|
|
2795
2796
|
onBlur: t[5] || (t[5] = (...d) => i.onBlur && i.onBlur(...d)),
|
|
@@ -2807,10 +2808,10 @@ function rl(e, t, l, o, r, i) {
|
|
|
2807
2808
|
disabled: e.isDisabled || null,
|
|
2808
2809
|
required: e.required || null,
|
|
2809
2810
|
tabindex: e.tabindex || null
|
|
2810
|
-
}, i.attrs), null, 16,
|
|
2811
|
-
[
|
|
2811
|
+
}, i.attrs), null, 16, il)), [
|
|
2812
|
+
[ce, r.inputValue]
|
|
2812
2813
|
]) : (s(), u(k, { key: 2 }, [
|
|
2813
|
-
|
|
2814
|
+
w("input", S({
|
|
2814
2815
|
ref: "input",
|
|
2815
2816
|
id: `w-input--${e._.uid}`,
|
|
2816
2817
|
type: "file",
|
|
@@ -2821,30 +2822,30 @@ function rl(e, t, l, o, r, i) {
|
|
|
2821
2822
|
multiple: l.multiple || null
|
|
2822
2823
|
}, i.attrs, {
|
|
2823
2824
|
"data-progress": i.overallFilesProgress
|
|
2824
|
-
}), null, 16,
|
|
2825
|
-
|
|
2825
|
+
}), null, 16, sl),
|
|
2826
|
+
V(se, {
|
|
2826
2827
|
class: "w-input__input w-input__input--file",
|
|
2827
2828
|
tag: "label",
|
|
2828
2829
|
name: "fade",
|
|
2829
2830
|
for: `w-input--${e._.uid}`
|
|
2830
2831
|
}, {
|
|
2831
|
-
default:
|
|
2832
|
-
!r.inputFiles.length && r.isFocused ? (s(), u("span",
|
|
2832
|
+
default: m(() => [
|
|
2833
|
+
!r.inputFiles.length && r.isFocused ? (s(), u("span", al, [
|
|
2833
2834
|
c(e.$slots, "no-file", {}, () => [
|
|
2834
2835
|
e.$slots["no-file"] === void 0 ? (s(), u(k, { key: 0 }, [
|
|
2835
2836
|
C("No file")
|
|
2836
2837
|
], 64)) : h("", !0)
|
|
2837
2838
|
])
|
|
2838
2839
|
])) : h("", !0),
|
|
2839
|
-
(s(!0), u(k, null, x(r.inputFiles, (d,
|
|
2840
|
+
(s(!0), u(k, null, x(r.inputFiles, (d, p) => (s(), u("span", {
|
|
2840
2841
|
key: d.lastModified
|
|
2841
2842
|
}, [
|
|
2842
|
-
C(
|
|
2843
|
+
C(v(p ? ", " : ""), 1),
|
|
2843
2844
|
(s(), u("span", {
|
|
2844
2845
|
class: "filename",
|
|
2845
|
-
key: `${
|
|
2846
|
-
},
|
|
2847
|
-
C(
|
|
2846
|
+
key: `${p}b`
|
|
2847
|
+
}, v(d.base), 1)),
|
|
2848
|
+
C(v(d.extension ? `.${d.extension}` : ""), 1)
|
|
2848
2849
|
]))), 128))
|
|
2849
2850
|
]),
|
|
2850
2851
|
_: 3
|
|
@@ -2853,13 +2854,13 @@ function rl(e, t, l, o, r, i) {
|
|
|
2853
2854
|
l.labelPosition === "inside" && i.showLabelInside ? (s(), u(k, { key: 3 }, [
|
|
2854
2855
|
e.$slots.default || l.label ? (s(), u("label", {
|
|
2855
2856
|
key: 0,
|
|
2856
|
-
class:
|
|
2857
|
+
class: f(["w-input__label w-input__label--inside w-form-el-shakable", e.labelClasses]),
|
|
2857
2858
|
for: `w-input--${e._.uid}`
|
|
2858
2859
|
}, [
|
|
2859
2860
|
c(e.$slots, "default", {}, () => [
|
|
2860
|
-
C(
|
|
2861
|
+
C(v(l.label), 1)
|
|
2861
2862
|
])
|
|
2862
|
-
], 10,
|
|
2863
|
+
], 10, ol)) : h("", !0)
|
|
2863
2864
|
], 64)) : h("", !0),
|
|
2864
2865
|
l.innerIconRight ? (s(), g(a, {
|
|
2865
2866
|
key: 4,
|
|
@@ -2868,8 +2869,8 @@ function rl(e, t, l, o, r, i) {
|
|
|
2868
2869
|
for: `w-input--${e._.uid}`,
|
|
2869
2870
|
onClick: t[9] || (t[9] = (d) => e.$emit("click:inner-icon-right", d))
|
|
2870
2871
|
}, {
|
|
2871
|
-
default:
|
|
2872
|
-
C(
|
|
2872
|
+
default: m(() => [
|
|
2873
|
+
C(v(l.innerIconRight), 1)
|
|
2873
2874
|
]),
|
|
2874
2875
|
_: 1
|
|
2875
2876
|
}, 8, ["for"])) : h("", !0),
|
|
@@ -2886,40 +2887,40 @@ function rl(e, t, l, o, r, i) {
|
|
|
2886
2887
|
class: "d-flex",
|
|
2887
2888
|
for: `w-input--${e._.uid}`
|
|
2888
2889
|
}, [
|
|
2889
|
-
(s(!0), u(k, null, x(r.inputFiles, (d,
|
|
2890
|
+
(s(!0), u(k, null, x(r.inputFiles, (d, p) => (s(), u(k, null, [
|
|
2890
2891
|
d.progress < 100 ? (s(), u("i", {
|
|
2891
2892
|
class: "w-icon wi-spinner w-icon--spin size--sm w-input__file-preview primary",
|
|
2892
|
-
key: `${
|
|
2893
|
+
key: `${p}a`
|
|
2893
2894
|
})) : d.preview ? (s(), u("img", {
|
|
2894
2895
|
class: "w-input__file-preview",
|
|
2895
|
-
key: `${
|
|
2896
|
+
key: `${p}b`,
|
|
2896
2897
|
src: d.preview,
|
|
2897
2898
|
alt: ""
|
|
2898
|
-
}, null, 8,
|
|
2899
|
-
class:
|
|
2900
|
-
key: `${
|
|
2899
|
+
}, null, 8, rl)) : (s(), u("i", {
|
|
2900
|
+
class: f(["w-icon w-input__file-preview primary size--md", l.preview && typeof l.preview == "string" ? l.preview : "wi-file"]),
|
|
2901
|
+
key: `${p}c`
|
|
2901
2902
|
}, null, 2))
|
|
2902
2903
|
], 64))), 256))
|
|
2903
|
-
], 8,
|
|
2904
|
+
], 8, nl)) : h("", !0),
|
|
2904
2905
|
l.labelPosition === "right" ? (s(), u(k, { key: 2 }, [
|
|
2905
2906
|
e.$slots.default || l.label ? (s(), u("label", {
|
|
2906
2907
|
key: 0,
|
|
2907
|
-
class:
|
|
2908
|
+
class: f(["w-input__label w-input__label--right w-form-el-shakable", e.labelClasses]),
|
|
2908
2909
|
for: `w-input--${e._.uid}`
|
|
2909
2910
|
}, [
|
|
2910
2911
|
c(e.$slots, "default", {}, () => [
|
|
2911
|
-
C(
|
|
2912
|
+
C(v(l.label), 1)
|
|
2912
2913
|
])
|
|
2913
|
-
], 10,
|
|
2914
|
+
], 10, dl)) : h("", !0)
|
|
2914
2915
|
], 64)) : h("", !0)
|
|
2915
2916
|
], 64))
|
|
2916
2917
|
]),
|
|
2917
2918
|
_: 3
|
|
2918
2919
|
}, 16, ["valid", "wrap", "class"]);
|
|
2919
2920
|
}
|
|
2920
|
-
const
|
|
2921
|
+
const hl = {
|
|
2921
2922
|
name: "w-input",
|
|
2922
|
-
mixins: [
|
|
2923
|
+
mixins: [O],
|
|
2923
2924
|
props: {
|
|
2924
2925
|
modelValue: { default: "" },
|
|
2925
2926
|
type: { type: String, default: "text" },
|
|
@@ -3049,7 +3050,7 @@ const dl = {
|
|
|
3049
3050
|
},
|
|
3050
3051
|
onFileChange(e) {
|
|
3051
3052
|
this.inputFiles = [...e.target.files].map((t) => {
|
|
3052
|
-
const [, l = "", o = "", r = ""] = t.name.match(/^(.*?)\.([^.]*)$|(.*)/), i =
|
|
3053
|
+
const [, l = "", o = "", r = ""] = t.name.match(/^(.*?)\.([^.]*)$|(.*)/), i = j({
|
|
3053
3054
|
name: t.name,
|
|
3054
3055
|
base: l || r,
|
|
3055
3056
|
extension: o,
|
|
@@ -3082,81 +3083,81 @@ const dl = {
|
|
|
3082
3083
|
this.inputValue = e, !e && e !== 0 && (this.isAutofilled = !1);
|
|
3083
3084
|
}
|
|
3084
3085
|
}
|
|
3085
|
-
},
|
|
3086
|
-
function
|
|
3087
|
-
const a =
|
|
3086
|
+
}, cl = /* @__PURE__ */ _(hl, [["render", ul]]);
|
|
3087
|
+
function pl(e, t, l, o, r, i) {
|
|
3088
|
+
const a = $("w-icon"), n = $("w-list", !0);
|
|
3088
3089
|
return s(), u("ul", {
|
|
3089
|
-
class:
|
|
3090
|
+
class: f(["w-list", i.classes])
|
|
3090
3091
|
}, [
|
|
3091
|
-
(s(!0), u(k, null, x(e.listItems, (d,
|
|
3092
|
-
class:
|
|
3093
|
-
key:
|
|
3092
|
+
(s(!0), u(k, null, x(e.listItems, (d, p) => (s(), u("li", {
|
|
3093
|
+
class: f(["w-list__item", { "w-list__item--parent": (d.children || []).length }]),
|
|
3094
|
+
key: p
|
|
3094
3095
|
}, [
|
|
3095
3096
|
l.icon ? (s(), g(a, {
|
|
3096
3097
|
key: 0,
|
|
3097
3098
|
class: "w-list__item-bullet"
|
|
3098
3099
|
}, {
|
|
3099
|
-
default:
|
|
3100
|
-
C(
|
|
3100
|
+
default: m(() => [
|
|
3101
|
+
C(v(l.icon), 1)
|
|
3101
3102
|
]),
|
|
3102
3103
|
_: 1
|
|
3103
3104
|
})) : h("", !0),
|
|
3104
|
-
e.$slots[`item.${
|
|
3105
|
+
e.$slots[`item.${p + 1}`] || e.$slots.item || e.$slots.default ? (s(), g(I(l.checklist ? "w-checkbox" : l.nav && !d.disabled && d.route ? i.hasRouter ? "router-link" : "a" : "div"), S({
|
|
3105
3106
|
key: 1,
|
|
3106
3107
|
class: "w-list__item-label"
|
|
3107
|
-
}, i.liLabelProps(d,
|
|
3108
|
-
default:
|
|
3109
|
-
e.$slots[`item.${
|
|
3108
|
+
}, i.liLabelProps(d, p, d._selected)), {
|
|
3109
|
+
default: m(() => [
|
|
3110
|
+
e.$slots[`item.${p + 1}`] ? c(e.$slots, `item.${p + 1}`, {
|
|
3110
3111
|
key: 0,
|
|
3111
3112
|
item: i.cleanLi(d),
|
|
3112
|
-
index:
|
|
3113
|
+
index: p + 1,
|
|
3113
3114
|
selected: d._selected
|
|
3114
3115
|
}) : e.$slots.item ? c(e.$slots, "item", {
|
|
3115
3116
|
key: 1,
|
|
3116
3117
|
item: i.cleanLi(d),
|
|
3117
|
-
index:
|
|
3118
|
+
index: p + 1,
|
|
3118
3119
|
selected: d._selected
|
|
3119
3120
|
}) : c(e.$slots, "default", {
|
|
3120
3121
|
key: 2,
|
|
3121
3122
|
item: i.cleanLi(d),
|
|
3122
|
-
index:
|
|
3123
|
+
index: p + 1,
|
|
3123
3124
|
selected: d._selected
|
|
3124
3125
|
}, () => [
|
|
3125
|
-
C(
|
|
3126
|
+
C(v(d._label), 1)
|
|
3126
3127
|
])
|
|
3127
3128
|
]),
|
|
3128
3129
|
_: 2
|
|
3129
|
-
}, 1040)) : (s(), g(
|
|
3130
|
+
}, 1040)) : (s(), g(I(l.checklist ? "w-checkbox" : l.nav && !d.disabled && d.route ? i.hasRouter ? "router-link" : "a" : "div"), S({
|
|
3130
3131
|
key: 2,
|
|
3131
3132
|
class: "w-list__item-label"
|
|
3132
|
-
}, i.liLabelProps(d,
|
|
3133
|
+
}, i.liLabelProps(d, p, d._selected)), null, 16)),
|
|
3133
3134
|
(d.children || []).length ? (s(), g(n, S({ key: 3 }, e.$props, {
|
|
3134
3135
|
items: d.children,
|
|
3135
3136
|
depth: l.depth + 1,
|
|
3136
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
3137
|
-
onInput: t[1] || (t[1] = (
|
|
3138
|
-
onItemClick: t[2] || (t[2] = (
|
|
3139
|
-
onItemSelect: t[3] || (t[3] = (
|
|
3140
|
-
}),
|
|
3137
|
+
"onUpdate:modelValue": t[0] || (t[0] = (b) => e.$emit("update:modelValue", b)),
|
|
3138
|
+
onInput: t[1] || (t[1] = (b) => e.$emit("input", b)),
|
|
3139
|
+
onItemClick: t[2] || (t[2] = (b) => e.$emit("item-click", b)),
|
|
3140
|
+
onItemSelect: t[3] || (t[3] = (b) => e.$emit("item-select", b))
|
|
3141
|
+
}), Y({ _: 2 }, [
|
|
3141
3142
|
e.$slots.item ? {
|
|
3142
3143
|
name: "item",
|
|
3143
|
-
fn:
|
|
3144
|
+
fn: m(({ item: b, index: B, selected: y }) => [
|
|
3144
3145
|
c(e.$slots, "item", {
|
|
3145
|
-
item: i.cleanLi(
|
|
3146
|
-
index:
|
|
3147
|
-
selected:
|
|
3146
|
+
item: i.cleanLi(b),
|
|
3147
|
+
index: B,
|
|
3148
|
+
selected: y
|
|
3148
3149
|
})
|
|
3149
3150
|
]),
|
|
3150
3151
|
key: "0"
|
|
3151
3152
|
} : {
|
|
3152
3153
|
name: "default",
|
|
3153
|
-
fn:
|
|
3154
|
+
fn: m(({ item: b, index: B, selected: y }) => [
|
|
3154
3155
|
c(e.$slots, "default", {
|
|
3155
|
-
item: i.cleanLi(
|
|
3156
|
-
index:
|
|
3157
|
-
selected:
|
|
3156
|
+
item: i.cleanLi(b),
|
|
3157
|
+
index: B,
|
|
3158
|
+
selected: y
|
|
3158
3159
|
}, () => [
|
|
3159
|
-
C(
|
|
3160
|
+
C(v(b[l.itemLabelKey]), 1)
|
|
3160
3161
|
])
|
|
3161
3162
|
]),
|
|
3162
3163
|
key: "1"
|
|
@@ -3165,7 +3166,7 @@ function hl(e, t, l, o, r, i) {
|
|
|
3165
3166
|
], 2))), 128))
|
|
3166
3167
|
], 2);
|
|
3167
3168
|
}
|
|
3168
|
-
const
|
|
3169
|
+
const fl = {
|
|
3169
3170
|
name: "w-list",
|
|
3170
3171
|
props: {
|
|
3171
3172
|
items: { type: [Array, Number], required: !0 },
|
|
@@ -3257,7 +3258,7 @@ const cl = {
|
|
|
3257
3258
|
}, i = this.isSelectable && ((d) => {
|
|
3258
3259
|
d.stopPropagation(), !e.disabled && this.selectItem(e);
|
|
3259
3260
|
}), a = this.isSelectable && ((d) => {
|
|
3260
|
-
!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 && (d.preventDefault(), d.keyCode === 38 && this.focusPrevNextItem(e._index, !1), d.keyCode === 40 && this.focusPrevNextItem(e._index, !0));
|
|
3261
|
+
!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));
|
|
3261
3262
|
}), n = {
|
|
3262
3263
|
class: this.liLabelClasses(e),
|
|
3263
3264
|
tabindex: e.disabled || this.checklist ? null : "0",
|
|
@@ -3266,8 +3267,8 @@ const cl = {
|
|
|
3266
3267
|
role: "option"
|
|
3267
3268
|
};
|
|
3268
3269
|
return this.checklist ? (n.modelValue = e._selected, n.color = e[this.itemColorKey] || this.color, n.round = this.roundCheckboxes, n.disabled = e.disabled, o || (n.label = e._label || null), n.onFocus = () => e._focused = !0, n.onBlur = () => e._focused = !1, n.onInput = (d) => this.selectItem(e, d), n.onClick = (d) => {
|
|
3269
|
-
const
|
|
3270
|
-
|
|
3270
|
+
const p = d.target.querySelector('input[type="checkbox"]');
|
|
3271
|
+
p && (p.focus(), p.click()), r();
|
|
3271
3272
|
}) : this.nav ? (!e.disabled && e[this.itemRouteKey] && (n.onKeydown = a, n.onMousedown = i, this.$router ? (n.to = e[this.itemRouteKey], n.onClick = (d) => {
|
|
3272
3273
|
d.preventDefault(), this.$router.push(e[this.itemRouteKey]), r();
|
|
3273
3274
|
}) : (n.href = e[this.itemRouteKey], n.onClick = r)), o || (n.innerHTML = e._label)) : (this.isSelectable && (e.disabled || (n.tabindex = 0), n.onClick = r, n.onKeydown = a, n.onMousedown = i), o || (n.innerHTML = e._label)), n;
|
|
@@ -3327,7 +3328,7 @@ const cl = {
|
|
|
3327
3328
|
}
|
|
3328
3329
|
}
|
|
3329
3330
|
}
|
|
3330
|
-
},
|
|
3331
|
+
}, ml = /* @__PURE__ */ _(fl, [["render", pl]]), de = {
|
|
3331
3332
|
props: {
|
|
3332
3333
|
appendTo: { type: [String, Boolean, Object] },
|
|
3333
3334
|
fixed: { type: Boolean },
|
|
@@ -3354,7 +3355,7 @@ const cl = {
|
|
|
3354
3355
|
let e = ".w-app";
|
|
3355
3356
|
typeof this.detachableDefaultRoot == "function" && (e = this.detachableDefaultRoot() || e);
|
|
3356
3357
|
let t = this.appendTo || e;
|
|
3357
|
-
return t === !0 ? t = e : this.appendTo === "activator" ? t = this.$el.previousElementSibling : t && !["object", "string"].includes(typeof t) ? t = e : typeof t == "object" && !t.nodeType && (t = e,
|
|
3358
|
+
return t === !0 ? t = e : this.appendTo === "activator" ? t = this.$el.previousElementSibling : t && !["object", "string"].includes(typeof t) ? t = e : typeof t == "object" && !t.nodeType && (t = e, te(`Invalid node provided in ${this.$options.name} \`append-to\`. Falling back to .w-app.`)), typeof t == "string" && (t = document.querySelector(t)), t || (te(`Unable to locate ${this.appendTo ? `target ${this.appendTo}` : e}`), t = document.querySelector(e)), t;
|
|
3358
3359
|
},
|
|
3359
3360
|
detachableParentEl() {
|
|
3360
3361
|
return this.appendToTarget;
|
|
@@ -3479,15 +3480,15 @@ const cl = {
|
|
|
3479
3480
|
}
|
|
3480
3481
|
}
|
|
3481
3482
|
};
|
|
3482
|
-
function
|
|
3483
|
-
const a =
|
|
3483
|
+
function bl(e, t, l, o, r, i) {
|
|
3484
|
+
const a = $("w-card"), n = $("w-overlay");
|
|
3484
3485
|
return s(), u(k, null, [
|
|
3485
3486
|
c(e.$slots, "activator", { on: i.activatorEventHandlers }),
|
|
3486
|
-
|
|
3487
|
+
V(T, {
|
|
3487
3488
|
name: i.transitionName,
|
|
3488
3489
|
appear: ""
|
|
3489
3490
|
}, {
|
|
3490
|
-
default:
|
|
3491
|
+
default: m(() => [
|
|
3491
3492
|
l.custom && e.detachableVisible ? (s(), u("div", S({
|
|
3492
3493
|
key: 0,
|
|
3493
3494
|
class: "w-menu",
|
|
@@ -3515,22 +3516,22 @@ function fl(e, t, l, o, r, i) {
|
|
|
3515
3516
|
"no-border": l.noBorder,
|
|
3516
3517
|
class: i.classes,
|
|
3517
3518
|
style: i.styles
|
|
3518
|
-
}),
|
|
3519
|
-
default:
|
|
3519
|
+
}), Y({
|
|
3520
|
+
default: m(() => [
|
|
3520
3521
|
c(e.$slots, "default")
|
|
3521
3522
|
]),
|
|
3522
3523
|
_: 2
|
|
3523
3524
|
}, [
|
|
3524
3525
|
e.$slots.title ? {
|
|
3525
3526
|
name: "title",
|
|
3526
|
-
fn:
|
|
3527
|
+
fn: m(() => [
|
|
3527
3528
|
c(e.$slots, "title")
|
|
3528
3529
|
]),
|
|
3529
3530
|
key: "0"
|
|
3530
3531
|
} : void 0,
|
|
3531
3532
|
e.$slots.actions ? {
|
|
3532
3533
|
name: "actions",
|
|
3533
|
-
fn:
|
|
3534
|
+
fn: m(() => [
|
|
3534
3535
|
c(e.$slots, "actions")
|
|
3535
3536
|
]),
|
|
3536
3537
|
key: "1"
|
|
@@ -3551,9 +3552,9 @@ function fl(e, t, l, o, r, i) {
|
|
|
3551
3552
|
}), null, 16, ["model-value", "persistent", "class", "z-index"])) : h("", !0)
|
|
3552
3553
|
], 64);
|
|
3553
3554
|
}
|
|
3554
|
-
const
|
|
3555
|
+
const gl = {
|
|
3555
3556
|
name: "w-menu",
|
|
3556
|
-
mixins: [
|
|
3557
|
+
mixins: [de],
|
|
3557
3558
|
inheritAttrs: !1,
|
|
3558
3559
|
props: {
|
|
3559
3560
|
modelValue: {},
|
|
@@ -3607,17 +3608,17 @@ const ml = {
|
|
|
3607
3608
|
return this.minWidth === "activator" ? this.activatorWidth ? `${this.activatorWidth}px` : 0 : isNaN(this.minWidth) ? this.minWidth : this.minWidth ? `${this.minWidth}px` : 0;
|
|
3608
3609
|
},
|
|
3609
3610
|
menuClasses() {
|
|
3610
|
-
return
|
|
3611
|
+
return F(this.menuClass);
|
|
3611
3612
|
},
|
|
3612
3613
|
titleClasses() {
|
|
3613
|
-
return
|
|
3614
|
+
return F(this.titleClass);
|
|
3614
3615
|
},
|
|
3615
3616
|
contentClasses() {
|
|
3616
|
-
return
|
|
3617
|
+
return F(this.contentClass);
|
|
3617
3618
|
},
|
|
3618
3619
|
overlayClasses() {
|
|
3619
3620
|
return {
|
|
3620
|
-
...
|
|
3621
|
+
...F(this.overlayClass),
|
|
3621
3622
|
"w-overlay--no-pointer-event": this.showOnHover
|
|
3622
3623
|
};
|
|
3623
3624
|
},
|
|
@@ -3670,26 +3671,26 @@ const ml = {
|
|
|
3670
3671
|
!this.detachableVisible || this.showOnHover && !e && (await new Promise((t) => setTimeout(t, 10)), this.showOnHover && (this.hoveringMenu || this.hoveringActivator)) || (this.$emit("update:modelValue", this.detachableVisible = !1), this.$emit("input", !1), this.$emit("close"), document.removeEventListener("mousedown", this.onOutsideMousedown), window.removeEventListener("resize", this.onResize));
|
|
3671
3672
|
}
|
|
3672
3673
|
}
|
|
3673
|
-
},
|
|
3674
|
-
function
|
|
3675
|
-
const a =
|
|
3676
|
-
return s(), g(
|
|
3674
|
+
}, yl = /* @__PURE__ */ _(gl, [["render", bl]]);
|
|
3675
|
+
function wl(e, t, l, o, r, i) {
|
|
3676
|
+
const a = $("w-alert");
|
|
3677
|
+
return s(), g(T, {
|
|
3677
3678
|
name: i.transitionName,
|
|
3678
3679
|
appear: ""
|
|
3679
3680
|
}, {
|
|
3680
|
-
default:
|
|
3681
|
+
default: m(() => [
|
|
3681
3682
|
r.show ? (s(), u("div", {
|
|
3682
3683
|
key: 0,
|
|
3683
|
-
class:
|
|
3684
|
+
class: f(["w-notification", i.classes]),
|
|
3684
3685
|
style: R(i.styles)
|
|
3685
3686
|
}, [
|
|
3686
|
-
|
|
3687
|
+
V(a, S(i.alertProps, {
|
|
3687
3688
|
class: i.alertClasses,
|
|
3688
3689
|
"onUpdate:modelValue": t[0] || (t[0] = (n) => {
|
|
3689
3690
|
e.$emit("update:modelValue", !1), e.$emit("input", !1);
|
|
3690
3691
|
})
|
|
3691
3692
|
}), {
|
|
3692
|
-
default:
|
|
3693
|
+
default: m(() => [
|
|
3693
3694
|
c(e.$slots, "default")
|
|
3694
3695
|
]),
|
|
3695
3696
|
_: 3
|
|
@@ -3699,7 +3700,7 @@ function gl(e, t, l, o, r, i) {
|
|
|
3699
3700
|
_: 3
|
|
3700
3701
|
}, 8, ["name"]);
|
|
3701
3702
|
}
|
|
3702
|
-
const
|
|
3703
|
+
const vl = {
|
|
3703
3704
|
name: "w-notification",
|
|
3704
3705
|
props: {
|
|
3705
3706
|
modelValue: { default: !0 },
|
|
@@ -3815,34 +3816,34 @@ const yl = {
|
|
|
3815
3816
|
clearTimeout(this.timeoutId), this.show = e, e && this.timeoutVal && this.countdown();
|
|
3816
3817
|
}
|
|
3817
3818
|
}
|
|
3818
|
-
},
|
|
3819
|
-
function
|
|
3820
|
-
const a =
|
|
3821
|
-
return s(), g(
|
|
3819
|
+
}, _l = /* @__PURE__ */ _(vl, [["render", wl]]);
|
|
3820
|
+
function kl(e, t, l, o, r, i) {
|
|
3821
|
+
const a = ae("focus");
|
|
3822
|
+
return s(), g(T, {
|
|
3822
3823
|
name: "fade",
|
|
3823
3824
|
appear: "",
|
|
3824
3825
|
onAfterLeave: i.onClose
|
|
3825
3826
|
}, {
|
|
3826
|
-
default:
|
|
3827
|
-
l.modelValue ?
|
|
3827
|
+
default: m(() => [
|
|
3828
|
+
l.modelValue ? H((s(), u("div", {
|
|
3828
3829
|
key: 0,
|
|
3829
|
-
class:
|
|
3830
|
+
class: f(["w-overlay", i.classes]),
|
|
3830
3831
|
ref: "overlay",
|
|
3831
3832
|
style: R(l.modelValue && i.styles || null),
|
|
3832
|
-
onKeydown: t[0] || (t[0] =
|
|
3833
|
+
onKeydown: t[0] || (t[0] = W(K((...n) => i.onClick && i.onClick(...n), ["stop"]), ["escape"])),
|
|
3833
3834
|
onClick: t[1] || (t[1] = (...n) => i.onClick && i.onClick(...n)),
|
|
3834
3835
|
tabindex: "0"
|
|
3835
3836
|
}, [
|
|
3836
3837
|
c(e.$slots, "default")
|
|
3837
3838
|
], 38)), [
|
|
3838
|
-
[
|
|
3839
|
+
[oe, e.showOverlay],
|
|
3839
3840
|
[a]
|
|
3840
3841
|
]) : h("", !0)
|
|
3841
3842
|
]),
|
|
3842
3843
|
_: 3
|
|
3843
3844
|
}, 8, ["onAfterLeave"]);
|
|
3844
3845
|
}
|
|
3845
|
-
const
|
|
3846
|
+
const Cl = {
|
|
3846
3847
|
name: "w-overlay",
|
|
3847
3848
|
props: {
|
|
3848
3849
|
modelValue: {},
|
|
@@ -3896,19 +3897,19 @@ const _l = {
|
|
|
3896
3897
|
e && (this.showOverlay = !0);
|
|
3897
3898
|
}
|
|
3898
3899
|
}
|
|
3899
|
-
},
|
|
3900
|
-
function
|
|
3901
|
-
return s(), u("div",
|
|
3900
|
+
}, Sl = /* @__PURE__ */ _(Cl, [["render", kl]]), Bl = { class: "w-parallax" };
|
|
3901
|
+
function $l(e, t, l, o, r, i) {
|
|
3902
|
+
return s(), u("div", Bl);
|
|
3902
3903
|
}
|
|
3903
|
-
const
|
|
3904
|
+
const Vl = {
|
|
3904
3905
|
name: "w-parallax",
|
|
3905
3906
|
props: {},
|
|
3906
3907
|
emits: [],
|
|
3907
3908
|
data: () => ({})
|
|
3908
|
-
},
|
|
3909
|
-
function
|
|
3909
|
+
}, Il = /* @__PURE__ */ _(Vl, [["render", $l]]), Rl = ["viewBox"], Ll = ["cx", "cy", "r", "stroke-dasharray", "stroke-width"], xl = ["cx", "cy", "r", "stroke-width", "stroke-linecap", "stroke-dasharray"];
|
|
3910
|
+
function Tl(e, t, l, o, r, i) {
|
|
3910
3911
|
return s(), u("div", {
|
|
3911
|
-
class:
|
|
3912
|
+
class: f(["w-progress", i.classes]),
|
|
3912
3913
|
style: R(i.styles)
|
|
3913
3914
|
}, [
|
|
3914
3915
|
l.circle ? (s(), u("svg", {
|
|
@@ -3917,15 +3918,15 @@ function xl(e, t, l, o, r, i) {
|
|
|
3917
3918
|
}, [
|
|
3918
3919
|
l.bgColor || this.progressValue > -1 ? (s(), u("circle", {
|
|
3919
3920
|
key: 0,
|
|
3920
|
-
class:
|
|
3921
|
+
class: f(["bg", l.bgColor]),
|
|
3921
3922
|
cx: i.circleCenter,
|
|
3922
3923
|
cy: i.circleCenter,
|
|
3923
3924
|
r: e.circleRadius,
|
|
3924
3925
|
fill: "transparent",
|
|
3925
3926
|
"stroke-dasharray": e.circleCircumference,
|
|
3926
3927
|
"stroke-width": l.stroke
|
|
3927
|
-
}, null, 10,
|
|
3928
|
-
|
|
3928
|
+
}, null, 10, Ll)) : h("", !0),
|
|
3929
|
+
w("circle", {
|
|
3929
3930
|
class: "w-progress__progress",
|
|
3930
3931
|
cx: i.circleCenter,
|
|
3931
3932
|
cy: i.circleCenter,
|
|
@@ -3935,23 +3936,23 @@ function xl(e, t, l, o, r, i) {
|
|
|
3935
3936
|
"stroke-linecap": l.roundCap && "round",
|
|
3936
3937
|
"stroke-dasharray": e.circleCircumference,
|
|
3937
3938
|
style: R(`stroke-dashoffset: ${(1 - i.progressValue / 100) * e.circleCircumference}`)
|
|
3938
|
-
}, null, 12,
|
|
3939
|
-
], 8,
|
|
3939
|
+
}, null, 12, xl)
|
|
3940
|
+
], 8, Rl)) : (s(), u("div", {
|
|
3940
3941
|
key: 0,
|
|
3941
|
-
class:
|
|
3942
|
+
class: f(["w-progress__progress", { full: i.progressValue === 100 }]),
|
|
3942
3943
|
style: R(`width: ${i.progressValue}%`)
|
|
3943
3944
|
}, null, 6)),
|
|
3944
3945
|
l.label || e.$slots.default ? (s(), u("div", {
|
|
3945
3946
|
key: 2,
|
|
3946
|
-
class:
|
|
3947
|
+
class: f(["w-progress__label", l.labelColor || !1])
|
|
3947
3948
|
}, [
|
|
3948
3949
|
c(e.$slots, "default", {}, () => [
|
|
3949
|
-
C(
|
|
3950
|
+
C(v(Math.round(i.progressValue)) + v(l.circle ? "" : "%"), 1)
|
|
3950
3951
|
])
|
|
3951
3952
|
], 2)) : h("", !0)
|
|
3952
3953
|
], 6);
|
|
3953
3954
|
}
|
|
3954
|
-
const
|
|
3955
|
+
const X = 40, zl = X / 2, El = Math.round(X * 3.14 * 100) / 100, Pl = {
|
|
3955
3956
|
name: "w-progress",
|
|
3956
3957
|
props: {
|
|
3957
3958
|
modelValue: { type: [Number, String, Boolean], default: -1 },
|
|
@@ -3976,16 +3977,16 @@ const q = 40, Ll = q / 2, Tl = Math.round(q * 3.14 * 100) / 100, zl = {
|
|
|
3976
3977
|
},
|
|
3977
3978
|
emits: [],
|
|
3978
3979
|
data: () => ({
|
|
3979
|
-
circleSize:
|
|
3980
|
-
circleRadius:
|
|
3981
|
-
circleCircumference:
|
|
3980
|
+
circleSize: X,
|
|
3981
|
+
circleRadius: zl,
|
|
3982
|
+
circleCircumference: El
|
|
3982
3983
|
}),
|
|
3983
3984
|
computed: {
|
|
3984
3985
|
progressValue() {
|
|
3985
3986
|
return parseFloat(this.modelValue);
|
|
3986
3987
|
},
|
|
3987
3988
|
circleCenter() {
|
|
3988
|
-
return
|
|
3989
|
+
return X + this.stroke;
|
|
3989
3990
|
},
|
|
3990
3991
|
forcedSize() {
|
|
3991
3992
|
return this.size && (isNaN(this.size) ? this.size : `${this.size}px`);
|
|
@@ -4017,9 +4018,9 @@ const q = 40, Ll = q / 2, Tl = Math.round(q * 3.14 * 100) / 100, zl = {
|
|
|
4017
4018
|
};
|
|
4018
4019
|
}
|
|
4019
4020
|
}
|
|
4020
|
-
},
|
|
4021
|
-
function
|
|
4022
|
-
return s(), g(
|
|
4021
|
+
}, Ol = /* @__PURE__ */ _(Pl, [["render", Tl]]), Ml = ["id", "name", "checked", "disabled", "required", "tabindex", "aria-checked"], Nl = ["for"], Wl = ["for", "innerHTML"], Al = ["for"], Kl = ["for", "innerHTML"];
|
|
4022
|
+
function Dl(e, t, l, o, r, i) {
|
|
4023
|
+
return s(), g(I(e.formRegister && !i.wRadios ? "w-form-element" : "div"), S({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: e.inputValue, disabled: e.isDisabled }, {
|
|
4023
4024
|
valid: e.valid,
|
|
4024
4025
|
"onUpdate:valid": t[3] || (t[3] = (a) => e.valid = a),
|
|
4025
4026
|
onReset: t[4] || (t[4] = (a) => {
|
|
@@ -4027,8 +4028,8 @@ function Al(e, t, l, o, r, i) {
|
|
|
4027
4028
|
}),
|
|
4028
4029
|
class: i.classes
|
|
4029
4030
|
}), {
|
|
4030
|
-
default:
|
|
4031
|
-
|
|
4031
|
+
default: m(() => [
|
|
4032
|
+
w("input", {
|
|
4032
4033
|
ref: "input",
|
|
4033
4034
|
id: `w-radio--${e._.uid}`,
|
|
4034
4035
|
type: "radio",
|
|
@@ -4041,25 +4042,25 @@ function Al(e, t, l, o, r, i) {
|
|
|
4041
4042
|
onChange: t[1] || (t[1] = (a) => i.onInput(a)),
|
|
4042
4043
|
"aria-checked": e.inputValue || "false",
|
|
4043
4044
|
role: "radio"
|
|
4044
|
-
}, null, 40,
|
|
4045
|
+
}, null, 40, Ml),
|
|
4045
4046
|
i.hasLabel && l.labelOnLeft ? (s(), u(k, { key: 0 }, [
|
|
4046
4047
|
e.$slots.default ? (s(), u("label", {
|
|
4047
4048
|
key: 0,
|
|
4048
|
-
class:
|
|
4049
|
+
class: f(["w-radio__label w-form-el-shakable pr2", e.labelClasses]),
|
|
4049
4050
|
for: `w-radio--${e._.uid}`
|
|
4050
4051
|
}, [
|
|
4051
4052
|
c(e.$slots, "default", {}, () => [
|
|
4052
|
-
C(
|
|
4053
|
+
C(v(l.label), 1)
|
|
4053
4054
|
])
|
|
4054
|
-
], 10,
|
|
4055
|
+
], 10, Nl)) : l.label ? (s(), u("label", {
|
|
4055
4056
|
key: 1,
|
|
4056
|
-
class:
|
|
4057
|
+
class: f(["w-radio__label w-form-el-shakable pr2", e.labelClasses]),
|
|
4057
4058
|
for: `w-radio--${e._.uid}`,
|
|
4058
4059
|
innerHTML: l.label
|
|
4059
|
-
}, null, 10,
|
|
4060
|
+
}, null, 10, Wl)) : h("", !0)
|
|
4060
4061
|
], 64)) : h("", !0),
|
|
4061
|
-
|
|
4062
|
-
class:
|
|
4062
|
+
w("div", {
|
|
4063
|
+
class: f(["w-radio__input", this.color]),
|
|
4063
4064
|
onClick: t[2] || (t[2] = (a) => {
|
|
4064
4065
|
e.$refs.input.focus(), e.$refs.input.click();
|
|
4065
4066
|
})
|
|
@@ -4067,26 +4068,26 @@ function Al(e, t, l, o, r, i) {
|
|
|
4067
4068
|
i.hasLabel && !l.labelOnLeft ? (s(), u(k, { key: 1 }, [
|
|
4068
4069
|
e.$slots.default ? (s(), u("label", {
|
|
4069
4070
|
key: 0,
|
|
4070
|
-
class:
|
|
4071
|
+
class: f(["w-radio__label w-form-el-shakable pl2", e.labelClasses]),
|
|
4071
4072
|
for: `w-radio--${e._.uid}`
|
|
4072
4073
|
}, [
|
|
4073
4074
|
c(e.$slots, "default", {}, () => [
|
|
4074
|
-
C(
|
|
4075
|
+
C(v(l.label), 1)
|
|
4075
4076
|
])
|
|
4076
|
-
], 10,
|
|
4077
|
+
], 10, Al)) : l.label ? (s(), u("label", {
|
|
4077
4078
|
key: 1,
|
|
4078
|
-
class:
|
|
4079
|
+
class: f(["w-radio__label w-form-el-shakable pl2", e.labelClasses]),
|
|
4079
4080
|
for: `w-radio--${e._.uid}`,
|
|
4080
4081
|
innerHTML: l.label
|
|
4081
|
-
}, null, 10,
|
|
4082
|
+
}, null, 10, Kl)) : h("", !0)
|
|
4082
4083
|
], 64)) : h("", !0)
|
|
4083
4084
|
]),
|
|
4084
4085
|
_: 3
|
|
4085
4086
|
}, 16, ["valid", "class"]);
|
|
4086
4087
|
}
|
|
4087
|
-
const
|
|
4088
|
+
const Fl = {
|
|
4088
4089
|
name: "w-radio",
|
|
4089
|
-
mixins: [
|
|
4090
|
+
mixins: [O],
|
|
4090
4091
|
inject: { wRadios: { default: null } },
|
|
4091
4092
|
props: {
|
|
4092
4093
|
modelValue: { default: !1 },
|
|
@@ -4139,10 +4140,10 @@ const Kl = {
|
|
|
4139
4140
|
this.toggleFromOutside();
|
|
4140
4141
|
}
|
|
4141
4142
|
}
|
|
4142
|
-
},
|
|
4143
|
-
function
|
|
4144
|
-
const a =
|
|
4145
|
-
return s(), g(
|
|
4143
|
+
}, jl = /* @__PURE__ */ _(Fl, [["render", Dl]]), Hl = ["innerHTML"];
|
|
4144
|
+
function Ul(e, t, l, o, r, i) {
|
|
4145
|
+
const a = $("w-radio");
|
|
4146
|
+
return s(), g(I(e.formRegister ? "w-form-element" : "div"), S({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: e.inputValue, disabled: e.isDisabled }, {
|
|
4146
4147
|
valid: e.valid,
|
|
4147
4148
|
"onUpdate:valid": t[1] || (t[1] = (n) => e.valid = n),
|
|
4148
4149
|
onReset: t[2] || (t[2] = (n) => {
|
|
@@ -4152,19 +4153,19 @@ function jl(e, t, l, o, r, i) {
|
|
|
4152
4153
|
wrap: l.inline,
|
|
4153
4154
|
class: i.classes
|
|
4154
4155
|
}), {
|
|
4155
|
-
default:
|
|
4156
|
+
default: m(() => [
|
|
4156
4157
|
(s(!0), u(k, null, x(i.radioItems, (n, d) => (s(), g(a, S({
|
|
4157
4158
|
key: d,
|
|
4158
4159
|
"model-value": n.value === l.modelValue,
|
|
4159
|
-
"onUpdate:modelValue": (
|
|
4160
|
-
onFocus: t[0] || (t[0] = (
|
|
4160
|
+
"onUpdate:modelValue": (p) => i.onInput(n),
|
|
4161
|
+
onFocus: t[0] || (t[0] = (p) => e.$emit("focus", p)),
|
|
4161
4162
|
name: e.inputName
|
|
4162
4163
|
}, { label: n.label, color: n.color, labelOnLeft: l.labelOnLeft, labelColor: l.labelColor }, {
|
|
4163
4164
|
disabled: e.isDisabled || null,
|
|
4164
4165
|
readonly: e.isReadonly || null,
|
|
4165
4166
|
class: { mt1: !l.inline && d }
|
|
4166
4167
|
}), {
|
|
4167
|
-
default:
|
|
4168
|
+
default: m(() => [
|
|
4168
4169
|
e.$slots[`item.${d + 1}`] || e.$slots.item ? c(e.$slots, e.$slots[`item.${d + 1}`] ? `item.${d + 1}` : "item", {
|
|
4169
4170
|
key: 0,
|
|
4170
4171
|
item: i.getOriginalItem(n),
|
|
@@ -4174,7 +4175,7 @@ function jl(e, t, l, o, r, i) {
|
|
|
4174
4175
|
}) : n.label ? (s(), u("div", {
|
|
4175
4176
|
key: 1,
|
|
4176
4177
|
innerHTML: n.label
|
|
4177
|
-
}, null, 8,
|
|
4178
|
+
}, null, 8, Hl)) : h("", !0)
|
|
4178
4179
|
]),
|
|
4179
4180
|
_: 2
|
|
4180
4181
|
}, 1040, ["model-value", "onUpdate:modelValue", "name", "disabled", "readonly", "class"]))), 128))
|
|
@@ -4182,9 +4183,9 @@ function jl(e, t, l, o, r, i) {
|
|
|
4182
4183
|
_: 3
|
|
4183
4184
|
}, 16, ["valid", "column", "wrap", "class"]);
|
|
4184
4185
|
}
|
|
4185
|
-
const
|
|
4186
|
+
const ql = {
|
|
4186
4187
|
name: "w-radios",
|
|
4187
|
-
mixins: [
|
|
4188
|
+
mixins: [O],
|
|
4188
4189
|
props: {
|
|
4189
4190
|
items: { type: Array, required: !0 },
|
|
4190
4191
|
modelValue: { type: [String, Number, Boolean] },
|
|
@@ -4228,9 +4229,9 @@ const Hl = {
|
|
|
4228
4229
|
return this.items[e._index];
|
|
4229
4230
|
}
|
|
4230
4231
|
}
|
|
4231
|
-
},
|
|
4232
|
-
function
|
|
4233
|
-
return s(), g(
|
|
4232
|
+
}, Gl = /* @__PURE__ */ _(ql, [["render", Ul]]), Xl = ["id", "name", "value"], Yl = ["disabled", "onMouseenter", "onClick", "tabindex"];
|
|
4233
|
+
function Jl(e, t, l, o, r, i) {
|
|
4234
|
+
return s(), g(I(e.formRegister ? "w-form-element" : "div"), S({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: r.rating, disabled: e.isDisabled, readonly: e.isReadonly }, {
|
|
4234
4235
|
valid: e.valid,
|
|
4235
4236
|
"onUpdate:valid": t[4] || (t[4] = (a) => e.valid = a),
|
|
4236
4237
|
onReset: t[5] || (t[5] = (a) => {
|
|
@@ -4238,20 +4239,20 @@ function Xl(e, t, l, o, r, i) {
|
|
|
4238
4239
|
}),
|
|
4239
4240
|
class: i.classes
|
|
4240
4241
|
}), {
|
|
4241
|
-
default:
|
|
4242
|
-
|
|
4242
|
+
default: m(() => [
|
|
4243
|
+
w("input", {
|
|
4243
4244
|
id: e.inputName,
|
|
4244
4245
|
name: e.inputName,
|
|
4245
4246
|
type: "hidden",
|
|
4246
4247
|
value: r.rating
|
|
4247
|
-
}, null, 8,
|
|
4248
|
+
}, null, 8, Xl),
|
|
4248
4249
|
(s(!0), u(k, null, x(l.max, (a) => (s(), u(k, { key: a }, [
|
|
4249
4250
|
e.$slots.item ? c(e.$slots, "item", {
|
|
4250
4251
|
key: 0,
|
|
4251
4252
|
index: a + 1
|
|
4252
4253
|
}) : h("", !0),
|
|
4253
|
-
|
|
4254
|
-
class:
|
|
4254
|
+
w("button", {
|
|
4255
|
+
class: f(["w-rating__button", i.buttonClasses(a)]),
|
|
4255
4256
|
disabled: e.isDisabled || e.isReadonly,
|
|
4256
4257
|
onMouseenter: (n) => r.hover = a,
|
|
4257
4258
|
onMouseleave: t[0] || (t[0] = (n) => r.hover = 0),
|
|
@@ -4264,20 +4265,20 @@ function Xl(e, t, l, o, r, i) {
|
|
|
4264
4265
|
}, [
|
|
4265
4266
|
a - 1 === ~~r.rating && r.rating - ~~r.rating ? (s(), u("i", {
|
|
4266
4267
|
key: 0,
|
|
4267
|
-
class:
|
|
4268
|
+
class: f(["w-icon", `${l.icon} ${l.color}`]),
|
|
4268
4269
|
role: "icon",
|
|
4269
4270
|
"aria-hidden": "true",
|
|
4270
4271
|
style: R(i.halfStarStyle)
|
|
4271
4272
|
}, null, 6)) : h("", !0)
|
|
4272
|
-
], 42,
|
|
4273
|
+
], 42, Yl)
|
|
4273
4274
|
], 64))), 128))
|
|
4274
4275
|
]),
|
|
4275
4276
|
_: 3
|
|
4276
4277
|
}, 16, ["valid", "class"]);
|
|
4277
4278
|
}
|
|
4278
|
-
const
|
|
4279
|
+
const Ql = {
|
|
4279
4280
|
name: "w-rating",
|
|
4280
|
-
mixins: [
|
|
4281
|
+
mixins: [O],
|
|
4281
4282
|
props: {
|
|
4282
4283
|
modelValue: {},
|
|
4283
4284
|
max: { type: [Number, String], default: 5 },
|
|
@@ -4360,34 +4361,34 @@ const Yl = {
|
|
|
4360
4361
|
this.rating = parseFloat(e);
|
|
4361
4362
|
}
|
|
4362
4363
|
}
|
|
4363
|
-
},
|
|
4364
|
+
}, Zl = /* @__PURE__ */ _(Ql, [["render", Jl]]), ei = ["for"], ti = ["aria-expanded", "aria-owns", "aria-activedescendant"], li = {
|
|
4364
4365
|
key: 1,
|
|
4365
4366
|
class: "w-select__selection-slot"
|
|
4366
|
-
},
|
|
4367
|
-
function
|
|
4368
|
-
const a =
|
|
4369
|
-
return s(), g(
|
|
4367
|
+
}, ii = ["value", "id", "placeholder", "disabled", "required", "tabindex"], si = ["value", "name"], ai = ["for"], oi = ["for"];
|
|
4368
|
+
function ni(e, t, l, o, r, i) {
|
|
4369
|
+
const a = $("w-icon"), n = $("w-list"), d = $("w-menu");
|
|
4370
|
+
return s(), g(I(e.formRegister ? "w-form-element" : "div"), S({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: i.selectionString, disabled: e.isDisabled, readonly: e.isReadonly }, {
|
|
4370
4371
|
valid: e.valid,
|
|
4371
|
-
"onUpdate:valid": t[9] || (t[9] = (
|
|
4372
|
+
"onUpdate:valid": t[9] || (t[9] = (p) => e.valid = p),
|
|
4372
4373
|
onReset: i.onReset,
|
|
4373
4374
|
wrap: i.hasLabel && l.labelPosition !== "inside",
|
|
4374
4375
|
class: i.classes
|
|
4375
4376
|
}), {
|
|
4376
|
-
default:
|
|
4377
|
+
default: m(() => [
|
|
4377
4378
|
l.labelPosition === "left" ? (s(), u(k, { key: 0 }, [
|
|
4378
4379
|
e.$slots.default || l.label ? (s(), u("label", {
|
|
4379
4380
|
key: 0,
|
|
4380
|
-
class:
|
|
4381
|
+
class: f(["w-select__label w-select__label--left w-form-el-shakable", e.labelClasses]),
|
|
4381
4382
|
for: `w-select--${e._.uid}`
|
|
4382
4383
|
}, [
|
|
4383
4384
|
c(e.$slots, "default", {}, () => [
|
|
4384
|
-
C(
|
|
4385
|
+
C(v(l.label), 1)
|
|
4385
4386
|
])
|
|
4386
|
-
], 10,
|
|
4387
|
+
], 10, ei)) : h("", !0)
|
|
4387
4388
|
], 64)) : h("", !0),
|
|
4388
|
-
|
|
4389
|
+
V(d, S({
|
|
4389
4390
|
modelValue: e.showMenu,
|
|
4390
|
-
"onUpdate:modelValue": t[8] || (t[8] = (
|
|
4391
|
+
"onUpdate:modelValue": t[8] || (t[8] = (p) => e.showMenu = p),
|
|
4391
4392
|
"menu-class": `w-select__menu ${l.menuClass || ""}`,
|
|
4392
4393
|
transition: "slide-fade-down",
|
|
4393
4394
|
"append-to": (l.menuProps || {}).appendTo !== void 0 ? (l.menuProps || {}).appendTo : void 0,
|
|
@@ -4395,10 +4396,10 @@ function ai(e, t, l, o, r, i) {
|
|
|
4395
4396
|
custom: "",
|
|
4396
4397
|
"min-width": "activator"
|
|
4397
4398
|
}, l.menuProps || {}), {
|
|
4398
|
-
activator:
|
|
4399
|
-
|
|
4400
|
-
class:
|
|
4401
|
-
onClick: t[5] || (t[5] = (
|
|
4399
|
+
activator: m(({ on: p }) => [
|
|
4400
|
+
w("div", {
|
|
4401
|
+
class: f(["w-select__selection-wrap", i.inputWrapClasses]),
|
|
4402
|
+
onClick: t[5] || (t[5] = (b) => !e.isDisabled && !e.isReadonly && (e.showMenu ? i.closeMenu : i.openMenu)()),
|
|
4402
4403
|
role: "button",
|
|
4403
4404
|
"aria-haspopup": "listbox",
|
|
4404
4405
|
"aria-expanded": e.showMenu ? "true" : "false",
|
|
@@ -4409,26 +4410,26 @@ function ai(e, t, l, o, r, i) {
|
|
|
4409
4410
|
key: 0,
|
|
4410
4411
|
class: "w-select__icon w-select__icon--inner-left",
|
|
4411
4412
|
tag: "label",
|
|
4412
|
-
onClick: t[0] || (t[0] = (
|
|
4413
|
+
onClick: t[0] || (t[0] = (b) => e.$emit("click:inner-icon-left", b))
|
|
4413
4414
|
}, {
|
|
4414
|
-
default:
|
|
4415
|
-
C(
|
|
4415
|
+
default: m(() => [
|
|
4416
|
+
C(v(l.innerIconLeft), 1)
|
|
4416
4417
|
]),
|
|
4417
4418
|
_: 1
|
|
4418
4419
|
})) : h("", !0),
|
|
4419
|
-
e.$slots.selection ? (s(), u("div",
|
|
4420
|
+
e.$slots.selection ? (s(), u("div", li, [
|
|
4420
4421
|
c(e.$slots, "selection", {
|
|
4421
4422
|
item: l.multiple ? e.inputValue : e.inputValue[0]
|
|
4422
4423
|
})
|
|
4423
4424
|
])) : h("", !0),
|
|
4424
|
-
|
|
4425
|
+
w("input", {
|
|
4425
4426
|
class: "w-select__selection",
|
|
4426
4427
|
ref: "selection-input",
|
|
4427
4428
|
type: "text",
|
|
4428
4429
|
value: e.$slots.selection ? "" : i.selectionString,
|
|
4429
|
-
onFocus: t[1] || (t[1] = (
|
|
4430
|
-
onBlur: t[2] || (t[2] = (...
|
|
4431
|
-
onKeydown: t[3] || (t[3] = (
|
|
4430
|
+
onFocus: t[1] || (t[1] = (b) => !e.isDisabled && !e.isReadonly && i.onFocus(b)),
|
|
4431
|
+
onBlur: t[2] || (t[2] = (...b) => i.onBlur && i.onBlur(...b)),
|
|
4432
|
+
onKeydown: t[3] || (t[3] = (b) => !e.isDisabled && !e.isReadonly && i.onKeydown(b)),
|
|
4432
4433
|
id: `w-select--${e._.uid}`,
|
|
4433
4434
|
placeholder: !e.$slots.selection && l.placeholder || null,
|
|
4434
4435
|
disabled: e.isDisabled || null,
|
|
@@ -4437,45 +4438,45 @@ function ai(e, t, l, o, r, i) {
|
|
|
4437
4438
|
required: e.required || null,
|
|
4438
4439
|
tabindex: e.tabindex || null,
|
|
4439
4440
|
autocomplete: "off"
|
|
4440
|
-
}, null, 40,
|
|
4441
|
-
(s(!0), u(k, null, x(e.inputValue.length ? e.inputValue : [{}], (
|
|
4442
|
-
key:
|
|
4441
|
+
}, null, 40, ii),
|
|
4442
|
+
(s(!0), u(k, null, x(e.inputValue.length ? e.inputValue : [{}], (b, B) => (s(), u("input", {
|
|
4443
|
+
key: B,
|
|
4443
4444
|
type: "hidden",
|
|
4444
|
-
value:
|
|
4445
|
+
value: b.value === void 0 ? "" : b.value.toString(),
|
|
4445
4446
|
name: e.inputName + (l.multiple ? "[]" : "")
|
|
4446
|
-
}, null, 8,
|
|
4447
|
+
}, null, 8, si))), 128)),
|
|
4447
4448
|
l.labelPosition === "inside" && i.showLabelInside ? (s(), u(k, { key: 2 }, [
|
|
4448
4449
|
e.$slots.default || l.label ? (s(), u("label", {
|
|
4449
4450
|
key: 0,
|
|
4450
|
-
class:
|
|
4451
|
+
class: f(["w-select__label w-select__label--inside w-form-el-shakable", e.labelClasses]),
|
|
4451
4452
|
for: `w-select--${e._.uid}`
|
|
4452
4453
|
}, [
|
|
4453
4454
|
c(e.$slots, "default", {}, () => [
|
|
4454
|
-
C(
|
|
4455
|
+
C(v(l.label), 1)
|
|
4455
4456
|
])
|
|
4456
|
-
], 10,
|
|
4457
|
+
], 10, ai)) : h("", !0)
|
|
4457
4458
|
], 64)) : h("", !0),
|
|
4458
4459
|
l.innerIconRight ? (s(), g(a, {
|
|
4459
4460
|
key: 3,
|
|
4460
4461
|
class: "w-select__icon w-select__icon--inner-right",
|
|
4461
4462
|
tag: "label",
|
|
4462
|
-
onClick: t[4] || (t[4] = (
|
|
4463
|
+
onClick: t[4] || (t[4] = (b) => e.$emit("click:inner-icon-right", b))
|
|
4463
4464
|
}, {
|
|
4464
|
-
default:
|
|
4465
|
-
C(
|
|
4465
|
+
default: m(() => [
|
|
4466
|
+
C(v(l.innerIconRight), 1)
|
|
4466
4467
|
]),
|
|
4467
4468
|
_: 1
|
|
4468
4469
|
})) : h("", !0)
|
|
4469
|
-
], 10,
|
|
4470
|
+
], 10, ti)
|
|
4470
4471
|
]),
|
|
4471
|
-
default:
|
|
4472
|
-
|
|
4472
|
+
default: m(() => [
|
|
4473
|
+
V(n, {
|
|
4473
4474
|
ref: "w-list",
|
|
4474
4475
|
"model-value": e.inputValue,
|
|
4475
4476
|
"onUpdate:modelValue": i.onInput,
|
|
4476
|
-
onItemClick: t[6] || (t[6] = (
|
|
4477
|
+
onItemClick: t[6] || (t[6] = (p) => e.$emit("item-click", p)),
|
|
4477
4478
|
onItemSelect: i.onListItemSelect,
|
|
4478
|
-
"onKeydown:enter": t[7] || (t[7] = (
|
|
4479
|
+
"onKeydown:enter": t[7] || (t[7] = (p) => l.noUnselect && !l.multiple && i.closeMenu()),
|
|
4479
4480
|
"onKeydown:escape": i.closeMenu,
|
|
4480
4481
|
items: i.selectItems,
|
|
4481
4482
|
multiple: l.multiple,
|
|
@@ -4487,24 +4488,24 @@ function ai(e, t, l, o, r, i) {
|
|
|
4487
4488
|
"item-color-key": l.itemColorKey,
|
|
4488
4489
|
role: "listbox",
|
|
4489
4490
|
tabindex: "-1"
|
|
4490
|
-
},
|
|
4491
|
-
x(l.items.length, (
|
|
4492
|
-
name: `item.${
|
|
4493
|
-
fn:
|
|
4494
|
-
e.$slots[`item.${
|
|
4491
|
+
}, Y({ _: 2 }, [
|
|
4492
|
+
x(l.items.length, (p) => ({
|
|
4493
|
+
name: `item.${p}`,
|
|
4494
|
+
fn: m(({ item: b, selected: B, index: y }) => [
|
|
4495
|
+
e.$slots[`item.${p}`] && e.$slots[`item.${p}`](b, B, y) ? c(e.$slots, `item.${p}`, {
|
|
4495
4496
|
key: 0,
|
|
4496
|
-
item:
|
|
4497
|
-
selected:
|
|
4498
|
-
index:
|
|
4497
|
+
item: b,
|
|
4498
|
+
selected: B,
|
|
4499
|
+
index: y
|
|
4499
4500
|
}, () => [
|
|
4500
|
-
C(
|
|
4501
|
+
C(v(b[l.itemLabelKey]), 1)
|
|
4501
4502
|
]) : c(e.$slots, "item", {
|
|
4502
4503
|
key: 1,
|
|
4503
|
-
item:
|
|
4504
|
-
selected:
|
|
4505
|
-
index:
|
|
4504
|
+
item: b,
|
|
4505
|
+
selected: B,
|
|
4506
|
+
index: y
|
|
4506
4507
|
}, () => [
|
|
4507
|
-
C(
|
|
4508
|
+
C(v(b[l.itemLabelKey]), 1)
|
|
4508
4509
|
])
|
|
4509
4510
|
])
|
|
4510
4511
|
}))
|
|
@@ -4515,21 +4516,21 @@ function ai(e, t, l, o, r, i) {
|
|
|
4515
4516
|
l.labelPosition === "right" ? (s(), u(k, { key: 1 }, [
|
|
4516
4517
|
e.$slots.default || l.label ? (s(), u("label", {
|
|
4517
4518
|
key: 0,
|
|
4518
|
-
class:
|
|
4519
|
+
class: f(["w-select__label w-select__label--right w-form-el-shakable", e.labelClasses]),
|
|
4519
4520
|
for: `w-select--${e._.uid}`
|
|
4520
4521
|
}, [
|
|
4521
4522
|
c(e.$slots, "default", {}, () => [
|
|
4522
|
-
C(
|
|
4523
|
+
C(v(l.label), 1)
|
|
4523
4524
|
])
|
|
4524
|
-
], 10,
|
|
4525
|
+
], 10, oi)) : h("", !0)
|
|
4525
4526
|
], 64)) : h("", !0)
|
|
4526
4527
|
]),
|
|
4527
4528
|
_: 3
|
|
4528
4529
|
}, 16, ["valid", "onReset", "wrap", "class"]);
|
|
4529
4530
|
}
|
|
4530
|
-
const
|
|
4531
|
+
const ri = {
|
|
4531
4532
|
name: "w-select",
|
|
4532
|
-
mixins: [
|
|
4533
|
+
mixins: [O],
|
|
4533
4534
|
props: {
|
|
4534
4535
|
items: { type: Array, required: !0 },
|
|
4535
4536
|
modelValue: {},
|
|
@@ -4657,7 +4658,7 @@ const oi = {
|
|
|
4657
4658
|
this.$emit("update:modelValue", e), this.$emit("input", e);
|
|
4658
4659
|
},
|
|
4659
4660
|
checkSelection(e) {
|
|
4660
|
-
e = Array.isArray(e) ? e : e ? [e] : [];
|
|
4661
|
+
console.log(e), e = Array.isArray(e) ? e : e !== void 0 ? [e] : [];
|
|
4661
4662
|
const t = this.selectItems.map((l) => l.value);
|
|
4662
4663
|
return e.map((l) => {
|
|
4663
4664
|
let o = l;
|
|
@@ -4686,12 +4687,12 @@ const oi = {
|
|
|
4686
4687
|
this.inputValue = this.checkSelection(this.modelValue);
|
|
4687
4688
|
}
|
|
4688
4689
|
}
|
|
4689
|
-
},
|
|
4690
|
+
}, di = /* @__PURE__ */ _(ri, [["render", ni]]), ui = ["for"], hi = ["for", "innerHTML"], ci = { class: "w-slider__track-wrap" }, pi = ["aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-readonly"], fi = ["id", "name", "model-value", "disabled", "readonly", "aria-readonly", "tabindex"], mi = ["for"], bi = { key: 0 }, gi = {
|
|
4690
4691
|
key: 0,
|
|
4691
4692
|
class: "w-slider__step-labels"
|
|
4692
|
-
},
|
|
4693
|
-
function
|
|
4694
|
-
return s(), g(
|
|
4693
|
+
}, yi = ["onClick"], wi = ["for"], vi = ["for", "innerHTML"];
|
|
4694
|
+
function _i(e, t, l, o, r, i) {
|
|
4695
|
+
return s(), g(I(e.formRegister ? "w-form-element" : "div"), S({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: e.rangeValueScaled, disabled: e.isDisabled, readonly: e.isReadonly }, {
|
|
4695
4696
|
valid: e.valid,
|
|
4696
4697
|
"onUpdate:valid": t[8] || (t[8] = (a) => e.valid = a),
|
|
4697
4698
|
onReset: t[9] || (t[9] = (a) => {
|
|
@@ -4700,22 +4701,22 @@ function wi(e, t, l, o, r, i) {
|
|
|
4700
4701
|
wrap: e.formRegister || null,
|
|
4701
4702
|
class: i.wrapperClasses
|
|
4702
4703
|
}), {
|
|
4703
|
-
default:
|
|
4704
|
+
default: m(() => [
|
|
4704
4705
|
e.$slots["label-left"] ? (s(), u("label", {
|
|
4705
4706
|
key: 0,
|
|
4706
|
-
class:
|
|
4707
|
+
class: f(["w-slider__label w-slider__label--left w-form-el-shakable", e.labelClasses]),
|
|
4707
4708
|
for: `button--${e._.uid}`
|
|
4708
4709
|
}, [
|
|
4709
4710
|
c(e.$slots, "label-left")
|
|
4710
|
-
], 10,
|
|
4711
|
+
], 10, ui)) : l.labelLeft ? (s(), u("label", {
|
|
4711
4712
|
key: 1,
|
|
4712
|
-
class:
|
|
4713
|
+
class: f(["w-slider__label w-slider__label--left w-form-el-shakable", e.labelClasses]),
|
|
4713
4714
|
for: `button--${e._.uid}`,
|
|
4714
4715
|
innerHTML: l.labelLeft
|
|
4715
|
-
}, null, 10,
|
|
4716
|
-
|
|
4717
|
-
|
|
4718
|
-
class:
|
|
4716
|
+
}, null, 10, hi)) : h("", !0),
|
|
4717
|
+
w("div", ci, [
|
|
4718
|
+
w("div", {
|
|
4719
|
+
class: f(["w-slider__track", i.trackClasses]),
|
|
4719
4720
|
ref: "track",
|
|
4720
4721
|
onMousedown: t[4] || (t[4] = (...a) => i.onTrackMouseDown && i.onTrackMouseDown(...a)),
|
|
4721
4722
|
onTouchstart: t[5] || (t[5] = (...a) => i.onTrackMouseDown && i.onTrackMouseDown(...a)),
|
|
@@ -4727,16 +4728,16 @@ function wi(e, t, l, o, r, i) {
|
|
|
4727
4728
|
"aria-readonly": e.isReadonly ? "true" : "false",
|
|
4728
4729
|
"aria-orientation": "horizontal"
|
|
4729
4730
|
}, [
|
|
4730
|
-
|
|
4731
|
-
class:
|
|
4731
|
+
w("div", {
|
|
4732
|
+
class: f(["w-slider__range", i.rangeClasses]),
|
|
4732
4733
|
style: R(i.rangeStyles)
|
|
4733
4734
|
}, null, 6),
|
|
4734
|
-
|
|
4735
|
+
w("div", {
|
|
4735
4736
|
class: "w-slider__thumb",
|
|
4736
4737
|
style: R(i.thumbStyles)
|
|
4737
4738
|
}, [
|
|
4738
|
-
|
|
4739
|
-
class:
|
|
4739
|
+
w("button", {
|
|
4740
|
+
class: f(["w-slider__thumb-button", [l.color]]),
|
|
4740
4741
|
ref: "thumb",
|
|
4741
4742
|
id: `button--${e._.uid}`,
|
|
4742
4743
|
name: e.inputName,
|
|
@@ -4746,69 +4747,69 @@ function wi(e, t, l, o, r, i) {
|
|
|
4746
4747
|
"aria-readonly": e.isReadonly ? "true" : "false",
|
|
4747
4748
|
tabindex: e.isDisabled || e.isReadonly ? -1 : null,
|
|
4748
4749
|
onKeydown: [
|
|
4749
|
-
t[0] || (t[0] =
|
|
4750
|
-
t[1] || (t[1] =
|
|
4750
|
+
t[0] || (t[0] = W((a) => i.onKeyDown(a, -1), ["left"])),
|
|
4751
|
+
t[1] || (t[1] = W((a) => i.onKeyDown(a, 1), ["right"]))
|
|
4751
4752
|
],
|
|
4752
4753
|
onFocus: t[2] || (t[2] = (a) => e.$emit("focus", a)),
|
|
4753
|
-
onClick: t[3] || (t[3] =
|
|
4754
|
+
onClick: t[3] || (t[3] = K(() => {
|
|
4754
4755
|
}, ["prevent"]))
|
|
4755
|
-
}, null, 42,
|
|
4756
|
+
}, null, 42, fi),
|
|
4756
4757
|
l.thumbLabel ? (s(), u("label", {
|
|
4757
4758
|
key: 0,
|
|
4758
|
-
class:
|
|
4759
|
+
class: f(["w-slider__thumb-label", i.thumbClasses]),
|
|
4759
4760
|
for: `button--${e._.uid}`
|
|
4760
4761
|
}, [
|
|
4761
|
-
l.thumbLabel === "droplet" ? (s(), u("div",
|
|
4762
|
+
l.thumbLabel === "droplet" ? (s(), u("div", bi, [
|
|
4762
4763
|
c(e.$slots, "label", { value: e.rangeValueScaled }, () => [
|
|
4763
|
-
C(
|
|
4764
|
+
C(v(~~e.rangeValueScaled), 1)
|
|
4764
4765
|
])
|
|
4765
4766
|
])) : c(e.$slots, "label", {
|
|
4766
4767
|
key: 1,
|
|
4767
4768
|
value: e.rangeValueScaled
|
|
4768
4769
|
}, () => [
|
|
4769
|
-
C(
|
|
4770
|
+
C(v(~~e.rangeValueScaled), 1)
|
|
4770
4771
|
])
|
|
4771
|
-
], 10,
|
|
4772
|
+
], 10, mi)) : h("", !0)
|
|
4772
4773
|
], 4)
|
|
4773
|
-
], 42,
|
|
4774
|
-
l.stepLabels && l.step ? (s(), u("div",
|
|
4775
|
-
|
|
4774
|
+
], 42, pi),
|
|
4775
|
+
l.stepLabels && l.step ? (s(), u("div", gi, [
|
|
4776
|
+
w("div", {
|
|
4776
4777
|
class: "w-slider__step-label",
|
|
4777
4778
|
onClick: t[6] || (t[6] = (a) => i.onStepLabelClick(0))
|
|
4778
|
-
},
|
|
4779
|
+
}, v(this.minVal), 1),
|
|
4779
4780
|
(s(!0), u(k, null, x(~~i.numberOfSteps, (a) => (s(), u("div", {
|
|
4780
4781
|
class: "w-slider__step-label",
|
|
4781
4782
|
key: a,
|
|
4782
4783
|
onClick: (n) => i.onStepLabelClick(a * (100 / i.numberOfSteps)),
|
|
4783
4784
|
style: R(`left: ${a * (100 / i.numberOfSteps)}%`)
|
|
4784
|
-
},
|
|
4785
|
+
}, v(i.percentToScaled(a * (100 / i.numberOfSteps))), 13, yi))), 128)),
|
|
4785
4786
|
~~i.numberOfSteps !== i.numberOfSteps ? (s(), u("div", {
|
|
4786
4787
|
key: 0,
|
|
4787
4788
|
class: "w-slider__step-label",
|
|
4788
4789
|
onClick: t[7] || (t[7] = (a) => i.onStepLabelClick(100)),
|
|
4789
4790
|
style: { left: "100%" }
|
|
4790
|
-
},
|
|
4791
|
+
}, v(this.maxVal), 1)) : h("", !0)
|
|
4791
4792
|
])) : h("", !0)
|
|
4792
4793
|
]),
|
|
4793
4794
|
e.$slots["label-right"] ? (s(), u("label", {
|
|
4794
4795
|
key: 2,
|
|
4795
|
-
class:
|
|
4796
|
+
class: f(["w-slider__label w-slider__label--right w-form-el-shakable", e.labelClasses]),
|
|
4796
4797
|
for: `button--${e._.uid}`
|
|
4797
4798
|
}, [
|
|
4798
4799
|
c(e.$slots, "label-right")
|
|
4799
|
-
], 10,
|
|
4800
|
+
], 10, wi)) : l.labelRight ? (s(), u("label", {
|
|
4800
4801
|
key: 3,
|
|
4801
|
-
class:
|
|
4802
|
+
class: f(["w-slider__label w-slider__label--right w-form-el-shakable", e.labelClasses]),
|
|
4802
4803
|
for: `button--${e._.uid}`,
|
|
4803
4804
|
innerHTML: l.labelRight
|
|
4804
|
-
}, null, 10,
|
|
4805
|
+
}, null, 10, vi)) : h("", !0)
|
|
4805
4806
|
]),
|
|
4806
4807
|
_: 3
|
|
4807
4808
|
}, 16, ["valid", "wrap", "class"]);
|
|
4808
4809
|
}
|
|
4809
|
-
const
|
|
4810
|
+
const ki = {
|
|
4810
4811
|
name: "w-slider",
|
|
4811
|
-
mixins: [
|
|
4812
|
+
mixins: [O],
|
|
4812
4813
|
props: {
|
|
4813
4814
|
modelValue: { type: Number, default: 0 },
|
|
4814
4815
|
color: { type: String, default: "primary" },
|
|
@@ -4936,17 +4937,17 @@ const vi = {
|
|
|
4936
4937
|
this.rangeValueScaled !== e && (this.rangeValueScaled = e, this.rangeValuePercent = this.scaledToPercent(e));
|
|
4937
4938
|
}
|
|
4938
4939
|
}
|
|
4939
|
-
},
|
|
4940
|
-
function
|
|
4940
|
+
}, Ci = /* @__PURE__ */ _(ki, [["render", _i]]), Si = { key: 0 };
|
|
4941
|
+
function Bi(e, t, l, o, r, i) {
|
|
4941
4942
|
return l.modelValue || l.modelValue === void 0 ? (s(), u("div", {
|
|
4942
4943
|
key: 0,
|
|
4943
|
-
class:
|
|
4944
|
+
class: f(["w-spinner", i.classes]),
|
|
4944
4945
|
style: R(i.styles)
|
|
4945
4946
|
}, [
|
|
4946
|
-
i.isThreeDots ? (s(), u("span",
|
|
4947
|
+
i.isThreeDots ? (s(), u("span", Si)) : h("", !0)
|
|
4947
4948
|
], 6)) : h("", !0);
|
|
4948
4949
|
}
|
|
4949
|
-
const
|
|
4950
|
+
const $i = {
|
|
4950
4951
|
name: "w-spinner",
|
|
4951
4952
|
props: {
|
|
4952
4953
|
modelValue: {},
|
|
@@ -4984,25 +4985,25 @@ const Si = {
|
|
|
4984
4985
|
};
|
|
4985
4986
|
}
|
|
4986
4987
|
}
|
|
4987
|
-
},
|
|
4988
|
-
function
|
|
4989
|
-
return s(), u("div",
|
|
4988
|
+
}, Vi = /* @__PURE__ */ _($i, [["render", Bi]]), Ii = { class: "w-steps" };
|
|
4989
|
+
function Ri(e, t, l, o, r, i) {
|
|
4990
|
+
return s(), u("div", Ii);
|
|
4990
4991
|
}
|
|
4991
|
-
const
|
|
4992
|
+
const Li = {
|
|
4992
4993
|
name: "w-steps",
|
|
4993
4994
|
props: {},
|
|
4994
4995
|
emits: [],
|
|
4995
4996
|
data: () => ({})
|
|
4996
|
-
},
|
|
4997
|
+
}, xi = /* @__PURE__ */ _(Li, [["render", Ri]]), Ti = ["id", "name", "checked", "disabled", "readonly", "aria-readonly", "required", "tabindex", "aria-checked"], zi = ["for"], Ei = {
|
|
4997
4998
|
key: 0,
|
|
4998
4999
|
class: "w-switch__track"
|
|
4999
|
-
},
|
|
5000
|
+
}, Pi = {
|
|
5000
5001
|
key: 1,
|
|
5001
5002
|
class: "w-switch__thumb"
|
|
5002
|
-
},
|
|
5003
|
-
function
|
|
5004
|
-
const a =
|
|
5005
|
-
return s(), g(
|
|
5003
|
+
}, Oi = ["for"];
|
|
5004
|
+
function Mi(e, t, l, o, r, i) {
|
|
5005
|
+
const a = $("w-progress");
|
|
5006
|
+
return s(), g(I(e.formRegister ? "w-form-element" : "div"), S({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: r.isOn, disabled: e.isDisabled, readonly: e.isReadonly }, {
|
|
5006
5007
|
valid: e.valid,
|
|
5007
5008
|
"onUpdate:valid": t[3] || (t[3] = (n) => e.valid = n),
|
|
5008
5009
|
onReset: t[4] || (t[4] = (n) => {
|
|
@@ -5010,8 +5011,8 @@ function Oi(e, t, l, o, r, i) {
|
|
|
5010
5011
|
}),
|
|
5011
5012
|
class: i.classes
|
|
5012
5013
|
}), {
|
|
5013
|
-
default:
|
|
5014
|
-
|
|
5014
|
+
default: m(() => [
|
|
5015
|
+
w("input", {
|
|
5015
5016
|
ref: "input",
|
|
5016
5017
|
id: `w-switch--${e._.uid}`,
|
|
5017
5018
|
type: "checkbox",
|
|
@@ -5026,28 +5027,28 @@ function Oi(e, t, l, o, r, i) {
|
|
|
5026
5027
|
onFocus: t[1] || (t[1] = (n) => e.$emit("focus", n)),
|
|
5027
5028
|
"aria-checked": r.isOn || "false",
|
|
5028
5029
|
role: "switch"
|
|
5029
|
-
}, null, 40,
|
|
5030
|
+
}, null, 40, Ti),
|
|
5030
5031
|
i.hasLabel && l.labelOnLeft ? (s(), u(k, { key: 0 }, [
|
|
5031
5032
|
e.$slots.default || l.label ? (s(), u("label", {
|
|
5032
5033
|
key: 0,
|
|
5033
|
-
class:
|
|
5034
|
+
class: f(["w-switch__label w-switch__label--left w-form-el-shakable", e.labelClasses]),
|
|
5034
5035
|
for: `w-switch--${e._.uid}`
|
|
5035
5036
|
}, [
|
|
5036
5037
|
c(e.$slots, "default", {}, () => [
|
|
5037
|
-
C(
|
|
5038
|
+
C(v(l.label), 1)
|
|
5038
5039
|
])
|
|
5039
|
-
], 10,
|
|
5040
|
+
], 10, zi)) : h("", !0)
|
|
5040
5041
|
], 64)) : h("", !0),
|
|
5041
|
-
|
|
5042
|
+
w("div", S({
|
|
5042
5043
|
class: "w-switch__input",
|
|
5043
5044
|
onClick: t[2] || (t[2] = (n) => {
|
|
5044
5045
|
e.$refs.input.focus(), e.$refs.input.click();
|
|
5045
5046
|
})
|
|
5046
|
-
},
|
|
5047
|
-
e.$slots.track ? (s(), u("div",
|
|
5047
|
+
}, A(e.$attrs, !0), { class: i.inputClasses }), [
|
|
5048
|
+
e.$slots.track ? (s(), u("div", Ei, [
|
|
5048
5049
|
c(e.$slots, "track")
|
|
5049
5050
|
])) : h("", !0),
|
|
5050
|
-
e.$slots.thumb || l.loading ? (s(), u("div",
|
|
5051
|
+
e.$slots.thumb || l.loading ? (s(), u("div", Pi, [
|
|
5051
5052
|
l.loading ? (s(), g(a, S({
|
|
5052
5053
|
key: 0,
|
|
5053
5054
|
circle: "",
|
|
@@ -5058,21 +5059,21 @@ function Oi(e, t, l, o, r, i) {
|
|
|
5058
5059
|
i.hasLabel && !l.labelOnLeft ? (s(), u(k, { key: 1 }, [
|
|
5059
5060
|
e.$slots.default || l.label ? (s(), u("label", {
|
|
5060
5061
|
key: 0,
|
|
5061
|
-
class:
|
|
5062
|
+
class: f(["w-switch__label w-switch__label--right w-form-el-shakable", e.labelClasses]),
|
|
5062
5063
|
for: `w-switch--${e._.uid}`
|
|
5063
5064
|
}, [
|
|
5064
5065
|
c(e.$slots, "default", {}, () => [
|
|
5065
|
-
C(
|
|
5066
|
+
C(v(l.label), 1)
|
|
5066
5067
|
])
|
|
5067
|
-
], 10,
|
|
5068
|
+
], 10, Oi)) : h("", !0)
|
|
5068
5069
|
], 64)) : h("", !0)
|
|
5069
5070
|
]),
|
|
5070
5071
|
_: 3
|
|
5071
5072
|
}, 16, ["valid", "class"]);
|
|
5072
5073
|
}
|
|
5073
|
-
const
|
|
5074
|
+
const Ni = {
|
|
5074
5075
|
name: "w-switch",
|
|
5075
|
-
mixins: [
|
|
5076
|
+
mixins: [O],
|
|
5076
5077
|
props: {
|
|
5077
5078
|
modelValue: { default: !1 },
|
|
5078
5079
|
label: { type: String, default: "" },
|
|
@@ -5131,37 +5132,37 @@ const Pi = {
|
|
|
5131
5132
|
this.isOn = e;
|
|
5132
5133
|
}
|
|
5133
5134
|
}
|
|
5134
|
-
},
|
|
5135
|
-
function
|
|
5136
|
-
return s(), u("div",
|
|
5135
|
+
}, Wi = /* @__PURE__ */ _(Ni, [["render", Mi]]), Ai = { class: "w-tabs__content" };
|
|
5136
|
+
function Ki(e, t, l, o, r, i) {
|
|
5137
|
+
return s(), u("div", Ai, [
|
|
5137
5138
|
c(e.$slots, "default", { item: l.item })
|
|
5138
5139
|
]);
|
|
5139
5140
|
}
|
|
5140
|
-
const
|
|
5141
|
+
const Di = {
|
|
5141
5142
|
props: { item: Object }
|
|
5142
|
-
},
|
|
5143
|
+
}, Fi = /* @__PURE__ */ _(Di, [["render", Ki]]), ji = ["onClick", "onFocus", "tabindex", "onKeypress", "aria-selected"], Hi = ["innerHTML"], Ui = {
|
|
5143
5144
|
key: 0,
|
|
5144
5145
|
class: "w-tabs__bar-extra"
|
|
5145
|
-
},
|
|
5146
|
+
}, qi = {
|
|
5146
5147
|
key: 0,
|
|
5147
5148
|
class: "w-tabs__content-wrap"
|
|
5148
|
-
},
|
|
5149
|
-
function
|
|
5150
|
-
const a =
|
|
5149
|
+
}, Gi = ["innerHTML"];
|
|
5150
|
+
function Xi(e, t, l, o, r, i) {
|
|
5151
|
+
const a = $("tab-content");
|
|
5151
5152
|
return s(), u("div", {
|
|
5152
|
-
class:
|
|
5153
|
+
class: f(["w-tabs", i.tabsClasses])
|
|
5153
5154
|
}, [
|
|
5154
|
-
|
|
5155
|
-
class:
|
|
5155
|
+
w("div", {
|
|
5156
|
+
class: f(["w-tabs__bar", i.tabsBarClasses]),
|
|
5156
5157
|
ref: "tabs-bar"
|
|
5157
5158
|
}, [
|
|
5158
5159
|
(s(!0), u(k, null, x(i.tabsItems, (n, d) => (s(), u("div", {
|
|
5159
|
-
class:
|
|
5160
|
+
class: f(["w-tabs__bar-item", i.barItemClasses(n)]),
|
|
5160
5161
|
key: d,
|
|
5161
|
-
onClick: (
|
|
5162
|
-
onFocus: (
|
|
5162
|
+
onClick: (p) => !n._disabled && i.openTab(n),
|
|
5163
|
+
onFocus: (p) => e.$emit("focus", i.getOriginalItem(n)),
|
|
5163
5164
|
tabindex: !n._disabled && 0,
|
|
5164
|
-
onKeypress:
|
|
5165
|
+
onKeypress: W((p) => !n._disabled && i.openTab(n), ["enter"]),
|
|
5165
5166
|
"aria-selected": n._index === e.activeTabIndex ? "true" : "false",
|
|
5166
5167
|
role: "tab"
|
|
5167
5168
|
}, [
|
|
@@ -5176,33 +5177,33 @@ function qi(e, t, l, o, r, i) {
|
|
|
5176
5177
|
index: d + 1,
|
|
5177
5178
|
active: n._index === e.activeTabIndex
|
|
5178
5179
|
}, () => [
|
|
5179
|
-
|
|
5180
|
+
w("div", {
|
|
5180
5181
|
innerHTML: n[l.itemTitleKey]
|
|
5181
|
-
}, null, 8,
|
|
5182
|
+
}, null, 8, Hi)
|
|
5182
5183
|
])
|
|
5183
|
-
], 42,
|
|
5184
|
-
e.$slots["tabs-bar-extra"] ? (s(), u("div",
|
|
5184
|
+
], 42, ji))), 128)),
|
|
5185
|
+
e.$slots["tabs-bar-extra"] ? (s(), u("div", Ui, [
|
|
5185
5186
|
c(e.$slots, "tabs-bar-extra")
|
|
5186
5187
|
])) : h("", !0),
|
|
5187
5188
|
!l.noSlider && !l.card ? (s(), u("div", {
|
|
5188
5189
|
key: 1,
|
|
5189
|
-
class:
|
|
5190
|
+
class: f(["w-tabs__slider", l.sliderColor]),
|
|
5190
5191
|
style: R(i.sliderStyles)
|
|
5191
5192
|
}, null, 6)) : h("", !0)
|
|
5192
5193
|
], 2),
|
|
5193
|
-
i.tabsItems.length ? (s(), u("div",
|
|
5194
|
-
|
|
5194
|
+
i.tabsItems.length ? (s(), u("div", qi, [
|
|
5195
|
+
V(T, {
|
|
5195
5196
|
name: i.transitionName,
|
|
5196
5197
|
mode: i.transitionMode
|
|
5197
5198
|
}, {
|
|
5198
|
-
default:
|
|
5199
|
-
(s(), g(
|
|
5199
|
+
default: m(() => [
|
|
5200
|
+
(s(), g(pe, null, [
|
|
5200
5201
|
(s(), g(a, {
|
|
5201
5202
|
key: i.activeTab._index,
|
|
5202
5203
|
item: i.activeTab,
|
|
5203
|
-
class:
|
|
5204
|
+
class: f(l.contentClass)
|
|
5204
5205
|
}, {
|
|
5205
|
-
default:
|
|
5206
|
+
default: m(({ item: n }) => [
|
|
5206
5207
|
e.$slots[`item-content.${n._index + 1}`] ? c(e.$slots, `item-content.${n._index + 1}`, {
|
|
5207
5208
|
key: 0,
|
|
5208
5209
|
item: i.getOriginalItem(n),
|
|
@@ -5217,7 +5218,7 @@ function qi(e, t, l, o, r, i) {
|
|
|
5217
5218
|
n[l.itemContentKey] ? (s(), u("div", {
|
|
5218
5219
|
key: 0,
|
|
5219
5220
|
innerHTML: n[l.itemContentKey]
|
|
5220
|
-
}, null, 8,
|
|
5221
|
+
}, null, 8, Gi)) : h("", !0)
|
|
5221
5222
|
])
|
|
5222
5223
|
]),
|
|
5223
5224
|
_: 3
|
|
@@ -5229,7 +5230,7 @@ function qi(e, t, l, o, r, i) {
|
|
|
5229
5230
|
])) : h("", !0)
|
|
5230
5231
|
], 2);
|
|
5231
5232
|
}
|
|
5232
|
-
const
|
|
5233
|
+
const Yi = {
|
|
5233
5234
|
name: "w-tabs",
|
|
5234
5235
|
props: {
|
|
5235
5236
|
modelValue: { type: [Number, String] },
|
|
@@ -5250,7 +5251,7 @@ const Gi = {
|
|
|
5250
5251
|
right: { type: Boolean },
|
|
5251
5252
|
card: { type: Boolean }
|
|
5252
5253
|
},
|
|
5253
|
-
components: { TabContent:
|
|
5254
|
+
components: { TabContent: Fi },
|
|
5254
5255
|
emits: ["input", "update:modelValue", "focus"],
|
|
5255
5256
|
data: () => ({
|
|
5256
5257
|
activeTabEl: null,
|
|
@@ -5273,7 +5274,7 @@ const Gi = {
|
|
|
5273
5274
|
return this.activeTab._index < this.prevTabIndex ? "right" : "left";
|
|
5274
5275
|
},
|
|
5275
5276
|
tabsItems() {
|
|
5276
|
-
return (typeof this.items == "number" ? Array(this.items).fill({}) : this.items).map((t, l) =>
|
|
5277
|
+
return (typeof this.items == "number" ? Array(this.items).fill({}) : this.items).map((t, l) => j({
|
|
5277
5278
|
...t,
|
|
5278
5279
|
_index: l,
|
|
5279
5280
|
_disabled: !!t.disabled
|
|
@@ -5366,224 +5367,263 @@ const Gi = {
|
|
|
5366
5367
|
e ? window.removeEventListener("resize", this.onResize) : (this.updateSlider(), window.addEventListener("resize", this.onResize));
|
|
5367
5368
|
}
|
|
5368
5369
|
}
|
|
5369
|
-
},
|
|
5370
|
+
}, Ji = /* @__PURE__ */ _(Yi, [["render", Xi]]), Qi = { ref: "colgroup" }, Zi = ["width"], es = { key: 0 }, ts = ["onClick"], ls = ["innerHTML"], is = {
|
|
5370
5371
|
key: 0,
|
|
5371
5372
|
class: "w-table__progress-bar"
|
|
5372
|
-
},
|
|
5373
|
+
}, ss = ["colspan"], as = {
|
|
5373
5374
|
key: 0,
|
|
5374
5375
|
class: "w-table__progress-bar"
|
|
5375
|
-
},
|
|
5376
|
+
}, os = ["colspan"], ns = { class: "w-table__loading-text" }, rs = {
|
|
5376
5377
|
key: 1,
|
|
5377
5378
|
class: "no-data"
|
|
5378
|
-
},
|
|
5379
|
+
}, ds = ["colspan"], us = ["onClick"], hs = ["data-label"], cs = ["data-label"], ps = ["innerHTML"], fs = {
|
|
5379
5380
|
key: 2,
|
|
5380
5381
|
class: "w-table__row w-table__row--expansion"
|
|
5381
|
-
},
|
|
5382
|
+
}, ms = ["colspan"], bs = { key: 0 }, gs = {
|
|
5382
5383
|
key: 3,
|
|
5383
5384
|
class: "w-table__extra-row"
|
|
5384
|
-
},
|
|
5385
|
+
}, ys = {
|
|
5385
5386
|
key: 1,
|
|
5386
5387
|
class: "w-table__footer"
|
|
5387
|
-
},
|
|
5388
|
+
}, ws = {
|
|
5388
5389
|
key: 1,
|
|
5389
5390
|
class: "w-table__row"
|
|
5390
|
-
},
|
|
5391
|
-
|
|
5392
|
-
|
|
5391
|
+
}, vs = ["colspan"], _s = {
|
|
5392
|
+
key: 2,
|
|
5393
|
+
class: "w-table__row w-table__pagination-wrap"
|
|
5394
|
+
}, ks = ["colspan"], Cs = { class: "w-table__pagination" }, Ss = { class: "pagination-number pagination-number--results" }, Bs = { class: "pagination-arrows" };
|
|
5395
|
+
function $s(e, t, l, o, r, i) {
|
|
5396
|
+
const a = $("w-icon"), n = $("w-progress"), d = $("w-transition-fade"), p = $("w-transition-expand"), b = $("w-select"), B = $("w-button");
|
|
5393
5397
|
return s(), u("div", {
|
|
5394
|
-
class:
|
|
5398
|
+
class: f(["w-table-wrap", i.wrapClasses])
|
|
5395
5399
|
}, [
|
|
5396
|
-
|
|
5397
|
-
class:
|
|
5398
|
-
onMousedown: t[
|
|
5399
|
-
onMouseover: t[
|
|
5400
|
-
onMouseout: t[
|
|
5400
|
+
w("table", {
|
|
5401
|
+
class: f(["w-table", i.classes]),
|
|
5402
|
+
onMousedown: t[4] || (t[4] = (...y) => i.onMouseDown && i.onMouseDown(...y)),
|
|
5403
|
+
onMouseover: t[5] || (t[5] = (...y) => i.onMouseOver && i.onMouseOver(...y)),
|
|
5404
|
+
onMouseout: t[6] || (t[6] = (...y) => i.onMouseOut && i.onMouseOut(...y))
|
|
5401
5405
|
}, [
|
|
5402
|
-
|
|
5403
|
-
(s(!0), u(k, null, x(l.headers, (
|
|
5406
|
+
w("colgroup", Qi, [
|
|
5407
|
+
(s(!0), u(k, null, x(l.headers, (y, L) => (s(), u("col", {
|
|
5404
5408
|
class: "w-table__col",
|
|
5405
|
-
key:
|
|
5406
|
-
width:
|
|
5407
|
-
}, null, 8,
|
|
5409
|
+
key: L,
|
|
5410
|
+
width: y.width || null
|
|
5411
|
+
}, null, 8, Zi))), 128))
|
|
5408
5412
|
], 512),
|
|
5409
|
-
l.noHeaders ? h("", !0) : (s(), u("thead",
|
|
5410
|
-
|
|
5411
|
-
(s(!0), u(k, null, x(l.headers, (
|
|
5412
|
-
class:
|
|
5413
|
-
key:
|
|
5414
|
-
onClick: (
|
|
5413
|
+
l.noHeaders ? h("", !0) : (s(), u("thead", es, [
|
|
5414
|
+
w("tr", null, [
|
|
5415
|
+
(s(!0), u(k, null, x(l.headers, (y, L) => (s(), u("th", {
|
|
5416
|
+
class: f(["w-table__header", i.headerClasses(y)]),
|
|
5417
|
+
key: L,
|
|
5418
|
+
onClick: (z) => !e.colResizing.dragging && y.sortable !== !1 && i.sortTable(y)
|
|
5415
5419
|
}, [
|
|
5416
|
-
|
|
5420
|
+
y.sortable !== !1 && y.align === "right" ? (s(), g(a, {
|
|
5417
5421
|
key: 0,
|
|
5418
|
-
class:
|
|
5422
|
+
class: f(["w-table__header-sort", i.headerSortClasses(y)])
|
|
5419
5423
|
}, {
|
|
5420
|
-
default:
|
|
5424
|
+
default: m(() => [
|
|
5421
5425
|
C("wi-arrow-down")
|
|
5422
5426
|
]),
|
|
5423
5427
|
_: 2
|
|
5424
5428
|
}, 1032, ["class"])) : h("", !0),
|
|
5425
|
-
|
|
5429
|
+
y.label ? (s(), u(k, { key: 1 }, [
|
|
5426
5430
|
e.$slots["header-label"] ? c(e.$slots, "header-label", {
|
|
5427
5431
|
key: 0,
|
|
5428
|
-
header:
|
|
5429
|
-
label:
|
|
5430
|
-
index:
|
|
5432
|
+
header: y,
|
|
5433
|
+
label: y.label,
|
|
5434
|
+
index: L + 1
|
|
5431
5435
|
}, () => [
|
|
5432
|
-
C(
|
|
5436
|
+
C(v(y.label || ""), 1)
|
|
5433
5437
|
]) : (s(), u("span", {
|
|
5434
5438
|
key: 1,
|
|
5435
|
-
innerHTML:
|
|
5436
|
-
}, null, 8,
|
|
5439
|
+
innerHTML: y.label || ""
|
|
5440
|
+
}, null, 8, ls))
|
|
5437
5441
|
], 64)) : h("", !0),
|
|
5438
|
-
|
|
5442
|
+
y.sortable !== !1 && y.align !== "right" ? (s(), g(a, {
|
|
5439
5443
|
key: 2,
|
|
5440
|
-
class:
|
|
5444
|
+
class: f(["w-table__header-sort", i.headerSortClasses(y)])
|
|
5441
5445
|
}, {
|
|
5442
|
-
default:
|
|
5446
|
+
default: m(() => [
|
|
5443
5447
|
C("wi-arrow-down")
|
|
5444
5448
|
]),
|
|
5445
5449
|
_: 2
|
|
5446
5450
|
}, 1032, ["class"])) : h("", !0),
|
|
5447
|
-
|
|
5451
|
+
L < l.headers.length - 1 && l.resizableColumns ? (s(), u("span", {
|
|
5448
5452
|
key: 3,
|
|
5449
|
-
class:
|
|
5450
|
-
onClick: t[0] || (t[0] =
|
|
5453
|
+
class: f(["w-table__col-resizer", { "w-table__col-resizer--hover": e.colResizing.hover === L, "w-table__col-resizer--active": e.colResizing.columnIndex === L }]),
|
|
5454
|
+
onClick: t[0] || (t[0] = K(() => {
|
|
5451
5455
|
}, ["stop"]))
|
|
5452
5456
|
}, null, 2)) : h("", !0)
|
|
5453
|
-
], 10,
|
|
5457
|
+
], 10, ts))), 128))
|
|
5454
5458
|
]),
|
|
5455
|
-
|
|
5456
|
-
default:
|
|
5457
|
-
l.loading === "header" ? (s(), u("tr",
|
|
5458
|
-
|
|
5459
|
+
V(d, null, {
|
|
5460
|
+
default: m(() => [
|
|
5461
|
+
l.loading === "header" ? (s(), u("tr", is, [
|
|
5462
|
+
w("td", {
|
|
5459
5463
|
colspan: l.headers.length
|
|
5460
5464
|
}, [
|
|
5461
|
-
|
|
5462
|
-
], 8,
|
|
5465
|
+
V(n, { tile: "" })
|
|
5466
|
+
], 8, ss)
|
|
5463
5467
|
])) : h("", !0)
|
|
5464
5468
|
]),
|
|
5465
5469
|
_: 1
|
|
5466
5470
|
})
|
|
5467
5471
|
])),
|
|
5468
|
-
|
|
5469
|
-
l.loading === !0 ? (s(), u("tr",
|
|
5470
|
-
|
|
5472
|
+
w("tbody", null, [
|
|
5473
|
+
l.loading === !0 ? (s(), u("tr", as, [
|
|
5474
|
+
w("td", {
|
|
5471
5475
|
colspan: l.headers.length
|
|
5472
5476
|
}, [
|
|
5473
|
-
|
|
5474
|
-
|
|
5477
|
+
V(n, { tile: "" }),
|
|
5478
|
+
w("div", ns, [
|
|
5475
5479
|
c(e.$slots, "loading", {}, () => [
|
|
5476
5480
|
C("Loading...")
|
|
5477
5481
|
])
|
|
5478
5482
|
])
|
|
5479
|
-
], 8,
|
|
5480
|
-
])) : i.tableItems.length ? h("", !0) : (s(), u("tr",
|
|
5481
|
-
|
|
5483
|
+
], 8, os)
|
|
5484
|
+
])) : i.tableItems.length ? h("", !0) : (s(), u("tr", rs, [
|
|
5485
|
+
w("td", {
|
|
5482
5486
|
class: "w-table__cell text-center",
|
|
5483
5487
|
colspan: l.headers.length
|
|
5484
5488
|
}, [
|
|
5485
5489
|
c(e.$slots, "no-data", {}, () => [
|
|
5486
5490
|
C("No data to show.")
|
|
5487
5491
|
])
|
|
5488
|
-
], 8,
|
|
5492
|
+
], 8, ds)
|
|
5489
5493
|
])),
|
|
5490
|
-
i.tableItems.length && l.loading !== !0 ? (s(!0), u(k, { key: 2 }, x(i.sortedItems, (
|
|
5494
|
+
i.tableItems.length && l.loading !== !0 ? (s(!0), u(k, { key: 2 }, x(i.sortedItems, (y, L) => (s(), u(k, { key: L }, [
|
|
5491
5495
|
e.$slots.item ? c(e.$slots, "item", {
|
|
5492
5496
|
key: 0,
|
|
5493
|
-
item:
|
|
5494
|
-
index:
|
|
5495
|
-
select: () => i.doSelectRow(
|
|
5496
|
-
classes: { "w-table__row": !0, "w-table__row--selected": i.selectedRowsByUid[
|
|
5497
|
+
item: y,
|
|
5498
|
+
index: L + 1,
|
|
5499
|
+
select: () => i.doSelectRow(y, L),
|
|
5500
|
+
classes: { "w-table__row": !0, "w-table__row--selected": i.selectedRowsByUid[y._uid] !== void 0, "w-table__row--expanded": i.expandedRowsByUid[y._uid] !== void 0 }
|
|
5497
5501
|
}) : (s(), u("tr", {
|
|
5498
5502
|
key: 1,
|
|
5499
|
-
class:
|
|
5500
|
-
onClick: (
|
|
5503
|
+
class: f(["w-table__row", { "w-table__row--selected": i.selectedRowsByUid[y._uid] !== void 0, "w-table__row--expanded": i.expandedRowsByUid[y._uid] !== void 0 }]),
|
|
5504
|
+
onClick: (z) => i.doSelectRow(y, L)
|
|
5501
5505
|
}, [
|
|
5502
|
-
(s(!0), u(k, null, x(l.headers, (
|
|
5503
|
-
e.$slots[`item-cell.${
|
|
5504
|
-
class:
|
|
5505
|
-
key: `${
|
|
5506
|
-
"data-label":
|
|
5506
|
+
(s(!0), u(k, null, x(l.headers, (z, E) => (s(), u(k, null, [
|
|
5507
|
+
e.$slots[`item-cell.${z.key}`] || e.$slots[`item-cell.${E + 1}`] || e.$slots["item-cell"] ? (s(), u("td", {
|
|
5508
|
+
class: f(["w-table__cell", { [`text-${z.align || "left"}`]: !0, "w-table__cell--sticky": z.sticky }]),
|
|
5509
|
+
key: `${E}-a`,
|
|
5510
|
+
"data-label": z.label
|
|
5507
5511
|
}, [
|
|
5508
|
-
e.$slots[`item-cell.${
|
|
5512
|
+
e.$slots[`item-cell.${z.key}`] ? c(e.$slots, `item-cell.${z.key}`, {
|
|
5509
5513
|
key: 0,
|
|
5510
|
-
header:
|
|
5511
|
-
item:
|
|
5512
|
-
label:
|
|
5513
|
-
index:
|
|
5514
|
-
}) : e.$slots[`item-cell.${
|
|
5514
|
+
header: z,
|
|
5515
|
+
item: y,
|
|
5516
|
+
label: y[z.key] || "",
|
|
5517
|
+
index: L + 1
|
|
5518
|
+
}) : e.$slots[`item-cell.${E + 1}`] ? c(e.$slots, `item-cell.${E + 1}`, {
|
|
5515
5519
|
key: 1,
|
|
5516
|
-
header:
|
|
5517
|
-
item:
|
|
5518
|
-
label:
|
|
5519
|
-
index:
|
|
5520
|
+
header: z,
|
|
5521
|
+
item: y,
|
|
5522
|
+
label: y[z.key] || "",
|
|
5523
|
+
index: L + 1
|
|
5520
5524
|
}) : e.$slots["item-cell"] ? c(e.$slots, "item-cell", {
|
|
5521
5525
|
key: 2,
|
|
5522
|
-
header:
|
|
5523
|
-
item:
|
|
5524
|
-
label:
|
|
5525
|
-
index:
|
|
5526
|
+
header: z,
|
|
5527
|
+
item: y,
|
|
5528
|
+
label: y[z.key] || "",
|
|
5529
|
+
index: L + 1
|
|
5526
5530
|
}) : h("", !0),
|
|
5527
|
-
|
|
5531
|
+
E < l.headers.length - 1 && l.resizableColumns ? (s(), u("span", {
|
|
5528
5532
|
key: 3,
|
|
5529
|
-
class:
|
|
5533
|
+
class: f(["w-table__col-resizer", { "w-table__col-resizer--hover": e.colResizing.hover === E, "w-table__col-resizer--active": e.colResizing.columnIndex === E }])
|
|
5530
5534
|
}, null, 2)) : h("", !0)
|
|
5531
|
-
], 10,
|
|
5532
|
-
class:
|
|
5533
|
-
key: `${
|
|
5534
|
-
"data-label":
|
|
5535
|
+
], 10, hs)) : (s(), u("td", {
|
|
5536
|
+
class: f(["w-table__cell", { [`text-${z.align || "left"}`]: !0, "w-table__cell--sticky": z.sticky }]),
|
|
5537
|
+
key: `${E}-b`,
|
|
5538
|
+
"data-label": z.label
|
|
5535
5539
|
}, [
|
|
5536
|
-
|
|
5537
|
-
innerHTML:
|
|
5538
|
-
}, null, 8,
|
|
5539
|
-
|
|
5540
|
+
w("div", {
|
|
5541
|
+
innerHTML: y[z.key] || ""
|
|
5542
|
+
}, null, 8, ps),
|
|
5543
|
+
E < l.headers.length - 1 && l.resizableColumns ? (s(), u("span", {
|
|
5540
5544
|
key: 0,
|
|
5541
|
-
class:
|
|
5545
|
+
class: f(["w-table__col-resizer", { "w-table__col-resizer--hover": e.colResizing.hover === E, "w-table__col-resizer--active": e.colResizing.columnIndex === E }])
|
|
5542
5546
|
}, null, 2)) : h("", !0)
|
|
5543
|
-
], 10,
|
|
5547
|
+
], 10, cs))
|
|
5544
5548
|
], 64))), 256))
|
|
5545
|
-
], 10,
|
|
5546
|
-
i.expandedRowsByUid[
|
|
5547
|
-
|
|
5549
|
+
], 10, us)),
|
|
5550
|
+
i.expandedRowsByUid[y._uid] ? (s(), u("tr", fs, [
|
|
5551
|
+
w("td", {
|
|
5548
5552
|
class: "w-table__cell",
|
|
5549
5553
|
colspan: l.headers.length
|
|
5550
5554
|
}, [
|
|
5551
|
-
|
|
5552
|
-
default:
|
|
5553
|
-
i.expandedRowsByUid[
|
|
5555
|
+
V(p, { y: "" }, {
|
|
5556
|
+
default: m(() => [
|
|
5557
|
+
i.expandedRowsByUid[y._uid] ? (s(), u("div", bs, [
|
|
5554
5558
|
c(e.$slots, "row-expansion", {
|
|
5555
|
-
item:
|
|
5556
|
-
index:
|
|
5559
|
+
item: y,
|
|
5560
|
+
index: L + 1
|
|
5557
5561
|
})
|
|
5558
5562
|
])) : h("", !0),
|
|
5559
|
-
|
|
5563
|
+
L < l.headers.length - 1 && l.resizableColumns ? (s(), u("span", {
|
|
5560
5564
|
key: 1,
|
|
5561
|
-
class:
|
|
5565
|
+
class: f(["w-table__col-resizer", { "w-table__col-resizer--hover": e.colResizing.hover === L, "w-table__col-resizer--active": e.colResizing.columnIndex === e.j }])
|
|
5562
5566
|
}, null, 2)) : h("", !0)
|
|
5563
5567
|
]),
|
|
5564
5568
|
_: 2
|
|
5565
5569
|
}, 1024)
|
|
5566
|
-
], 8,
|
|
5570
|
+
], 8, ms)
|
|
5567
5571
|
])) : h("", !0)
|
|
5568
5572
|
], 64))), 128)) : h("", !0),
|
|
5569
|
-
e.$slots["extra-row"] ? (s(), u("div",
|
|
5573
|
+
e.$slots["extra-row"] ? (s(), u("div", gs, [
|
|
5570
5574
|
c(e.$slots, "extra-row")
|
|
5571
5575
|
])) : h("", !0)
|
|
5572
5576
|
]),
|
|
5573
|
-
e.$slots.footer || e.$slots["footer-row"] ? (s(), u("tfoot",
|
|
5574
|
-
e.$slots["footer-row"] ? c(e.$slots, "footer-row", { key: 0 }) : (s(), u("tr",
|
|
5575
|
-
|
|
5577
|
+
e.$slots.footer || e.$slots["footer-row"] || l.pagination ? (s(), u("tfoot", ys, [
|
|
5578
|
+
e.$slots["footer-row"] ? c(e.$slots, "footer-row", { key: 0 }) : e.$slots.footer ? (s(), u("tr", ws, [
|
|
5579
|
+
w("td", {
|
|
5576
5580
|
class: "w-table__cell",
|
|
5577
5581
|
colspan: l.headers.length
|
|
5578
5582
|
}, [
|
|
5579
5583
|
c(e.$slots, "footer")
|
|
5580
|
-
], 8,
|
|
5581
|
-
]))
|
|
5584
|
+
], 8, vs)
|
|
5585
|
+
])) : h("", !0),
|
|
5586
|
+
l.pagination && e.paginationConfig ? (s(), u("tr", _s, [
|
|
5587
|
+
w("td", {
|
|
5588
|
+
class: "w-table__cell",
|
|
5589
|
+
colspan: l.headers.length
|
|
5590
|
+
}, [
|
|
5591
|
+
w("div", Cs, [
|
|
5592
|
+
e.paginationConfig.itemsPerPageOptions ? (s(), g(b, {
|
|
5593
|
+
key: 0,
|
|
5594
|
+
class: "pagination-number pagination-number--items-per-page",
|
|
5595
|
+
modelValue: e.paginationConfig.itemsPerPage,
|
|
5596
|
+
"onUpdate:modelValue": t[1] || (t[1] = (y) => e.paginationConfig.itemsPerPage = y),
|
|
5597
|
+
items: e.paginationConfig.itemsPerPageOptions,
|
|
5598
|
+
"label-position": "left",
|
|
5599
|
+
label: "Items per page",
|
|
5600
|
+
"label-color": "inherit"
|
|
5601
|
+
}, null, 8, ["modelValue", "items"])) : h("", !0),
|
|
5602
|
+
w("span", Ss, v(e.paginationConfig.start) + "-" + v(e.paginationConfig.end) + " of " + v(e.paginationConfig.total), 1),
|
|
5603
|
+
w("div", Bs, [
|
|
5604
|
+
V(B, {
|
|
5605
|
+
class: "pagination-arrow pagination-arrow--prev",
|
|
5606
|
+
onClick: t[2] || (t[2] = (y) => e.paginationConfig.page--),
|
|
5607
|
+
icon: "wi-chevron-left",
|
|
5608
|
+
text: "",
|
|
5609
|
+
lg: ""
|
|
5610
|
+
}),
|
|
5611
|
+
V(B, {
|
|
5612
|
+
class: "pagination-arrow pagination-arrow--next",
|
|
5613
|
+
onClick: t[3] || (t[3] = (y) => e.paginationConfig.page++),
|
|
5614
|
+
icon: "wi-chevron-right",
|
|
5615
|
+
text: "",
|
|
5616
|
+
lg: ""
|
|
5617
|
+
})
|
|
5618
|
+
])
|
|
5619
|
+
])
|
|
5620
|
+
], 8, ks)
|
|
5621
|
+
])) : h("", !0)
|
|
5582
5622
|
])) : h("", !0)
|
|
5583
5623
|
], 34)
|
|
5584
5624
|
], 2);
|
|
5585
5625
|
}
|
|
5586
|
-
const
|
|
5626
|
+
const ie = 15, Vs = {
|
|
5587
5627
|
name: "w-table",
|
|
5588
5628
|
props: {
|
|
5589
5629
|
items: { type: Array, required: !0 },
|
|
@@ -5595,13 +5635,13 @@ const te = 15, vs = {
|
|
|
5595
5635
|
loading: { type: [Boolean, String] },
|
|
5596
5636
|
sort: { type: [String, Array] },
|
|
5597
5637
|
expandableRows: {
|
|
5598
|
-
validator: (e) => ([void 0, !0, !1, 1, "1", ""].includes(e) ||
|
|
5638
|
+
validator: (e) => ([void 0, !0, !1, 1, "1", ""].includes(e) || Z(
|
|
5599
5639
|
`Wrong value for the w-table's \`expandableRows\` prop. Given: "${e}", expected one of: [undefined, true, false, 1, '1', ''].`
|
|
5600
5640
|
), !0)
|
|
5601
5641
|
},
|
|
5602
5642
|
expandedRows: { type: Array },
|
|
5603
5643
|
selectableRows: {
|
|
5604
|
-
validator: (e) => ([void 0, !0, !1, 1, "1", ""].includes(e) ||
|
|
5644
|
+
validator: (e) => ([void 0, !0, !1, 1, "1", ""].includes(e) || Z(
|
|
5605
5645
|
`Wrong value for the w-table's \`selectableRows\` prop. Given: "${e}", expected one of: [undefined, true, false, 1, '1', ''].`
|
|
5606
5646
|
), !0)
|
|
5607
5647
|
},
|
|
@@ -5611,7 +5651,20 @@ const te = 15, vs = {
|
|
|
5611
5651
|
filter: { type: Function },
|
|
5612
5652
|
sortFunction: { type: Function },
|
|
5613
5653
|
mobileBreakpoint: { type: Number, default: 0 },
|
|
5614
|
-
resizableColumns: { type: Boolean }
|
|
5654
|
+
resizableColumns: { type: Boolean },
|
|
5655
|
+
pagination: {
|
|
5656
|
+
type: [Boolean, Object, String],
|
|
5657
|
+
validator: (e) => {
|
|
5658
|
+
if (e) {
|
|
5659
|
+
if (typeof e == "object" && (!e.itemsPerPage || e.page && isNaN(e.page)))
|
|
5660
|
+
return Z(
|
|
5661
|
+
"Wrong pagination config received in the w-table's `pagination` prop (received: `" + JSON.stringify(e) + "`). \nExpected object: { itemsPerPage: Integer, page: Integer } or { itemsPerPage: Integer, start: Integer }."
|
|
5662
|
+
), !1;
|
|
5663
|
+
} else
|
|
5664
|
+
return !0;
|
|
5665
|
+
return !0;
|
|
5666
|
+
}
|
|
5667
|
+
}
|
|
5615
5668
|
},
|
|
5616
5669
|
emits: [
|
|
5617
5670
|
"row-select",
|
|
@@ -5635,7 +5688,8 @@ const te = 15, vs = {
|
|
|
5635
5688
|
nextColWidth: null,
|
|
5636
5689
|
columnEl: null,
|
|
5637
5690
|
nextColumnEl: null
|
|
5638
|
-
}
|
|
5691
|
+
},
|
|
5692
|
+
paginationConfig: {}
|
|
5639
5693
|
}),
|
|
5640
5694
|
computed: {
|
|
5641
5695
|
tableItems() {
|
|
@@ -5743,14 +5797,14 @@ const te = 15, vs = {
|
|
|
5743
5797
|
onResizerMouseMove(e) {
|
|
5744
5798
|
const { startCursorX: t, columnEl: l, nextColumnEl: o, colWidth: r, nextColWidth: i } = this.colResizing;
|
|
5745
5799
|
this.colResizing.dragging = !0;
|
|
5746
|
-
const a = e.pageX - t, n = r + i, d = r + a,
|
|
5800
|
+
const a = e.pageX - t, n = r + i, d = r + a, p = i - a;
|
|
5747
5801
|
l.style.width = r + a + "px", o.style.width = i - a + "px";
|
|
5748
|
-
const
|
|
5749
|
-
if (
|
|
5750
|
-
const
|
|
5751
|
-
l.style.width =
|
|
5802
|
+
const b = a < 0 && l.offsetWidth > d || l.offsetWidth <= ie, B = a > 0 && o.offsetWidth > p;
|
|
5803
|
+
if (b) {
|
|
5804
|
+
const y = Math.max(l.offsetWidth, ie);
|
|
5805
|
+
l.style.width = y + "px", o.style.width = n - y + "px";
|
|
5752
5806
|
} else
|
|
5753
|
-
|
|
5807
|
+
B && (l.style.width = n - o.offsetWidth + "px", o.style.width = o.offsetWidth + "px");
|
|
5754
5808
|
},
|
|
5755
5809
|
onResizerMouseUp() {
|
|
5756
5810
|
document.removeEventListener("mousemove", this.onResizerMouseMove), document.removeEventListener("mouseup", this.onResizerMouseUp), setTimeout(() => {
|
|
@@ -5760,10 +5814,22 @@ const te = 15, vs = {
|
|
|
5760
5814
|
});
|
|
5761
5815
|
this.$emit("column-resize", { index: this.colResizing.columnIndex, widths: e }), this.colResizing.dragging = !1, this.colResizing.columnIndex = null, this.colResizing.startCursorX = null, this.colResizing.columnEl = null, this.colResizing.nextColumnEl = null, this.colResizing.colWidth = null, this.colResizing.nextColWidth = null;
|
|
5762
5816
|
}, 0);
|
|
5817
|
+
},
|
|
5818
|
+
updatePaginationConfig() {
|
|
5819
|
+
var o, r, i, a, n;
|
|
5820
|
+
const e = ((o = this.pagination) == null ? void 0 : o.itemsPerPage) || 10, t = ((r = this.pagination) == null ? void 0 : r.total) || this.items.length, l = ((i = this.pagination) == null ? void 0 : i.page) || 1;
|
|
5821
|
+
this.paginationConfig = {
|
|
5822
|
+
itemsPerPage: e,
|
|
5823
|
+
itemsPerPageOptions: ((a = this.pagination) == null ? void 0 : a.itemsPerPageOptions) || [{ label: "10", value: 10 }, { label: "100", value: 100 }, { label: "All", value: 0 }],
|
|
5824
|
+
page: l,
|
|
5825
|
+
start: ((n = this.pagination) == null ? void 0 : n.start) || 1,
|
|
5826
|
+
end: t >= e * l ? e * l : t % (e * l),
|
|
5827
|
+
total: t
|
|
5828
|
+
};
|
|
5763
5829
|
}
|
|
5764
5830
|
},
|
|
5765
5831
|
created() {
|
|
5766
|
-
this.sort ? this.activeSorting = Array.isArray(this.sort) ? this.sort : [this.sort] : this.activeSorting = [], (this.expandedRows || []).length && (this.expandedRowsInternal = this.expandedRows), (this.selectedRows || []).length && (this.selectedRowsInternal = this.selectedRows);
|
|
5832
|
+
this.sort ? this.activeSorting = Array.isArray(this.sort) ? this.sort : [this.sort] : this.activeSorting = [], (this.expandedRows || []).length && (this.expandedRowsInternal = this.expandedRows), (this.selectedRows || []).length && (this.selectedRowsInternal = this.selectedRows), this.pagination && this.updatePaginationConfig();
|
|
5767
5833
|
},
|
|
5768
5834
|
watch: {
|
|
5769
5835
|
sort(e) {
|
|
@@ -5782,13 +5848,13 @@ const te = 15, vs = {
|
|
|
5782
5848
|
this.selectedRowsInternal = Array.isArray(e) && e.length ? this.selectedRows : [];
|
|
5783
5849
|
}
|
|
5784
5850
|
}
|
|
5785
|
-
},
|
|
5786
|
-
function
|
|
5787
|
-
return s(), u("span", S({ class: "w-tag" },
|
|
5851
|
+
}, Is = /* @__PURE__ */ _(Vs, [["render", $s]]), Rs = ["role", "aria-pressed", "tabindex"];
|
|
5852
|
+
function Ls(e, t, l, o, r, i) {
|
|
5853
|
+
return s(), u("span", S({ class: "w-tag" }, A(e.$attrs, !0), {
|
|
5788
5854
|
onClick: t[1] || (t[1] = (a) => {
|
|
5789
5855
|
e.$emit("update:modelValue", !l.modelValue), e.$emit("input", !l.modelValue);
|
|
5790
5856
|
}),
|
|
5791
|
-
onKeypress: t[2] || (t[2] =
|
|
5857
|
+
onKeypress: t[2] || (t[2] = W((a) => {
|
|
5792
5858
|
e.$emit("update:modelValue", !l.modelValue), e.$emit("input", !l.modelValue);
|
|
5793
5859
|
}, ["enter"])),
|
|
5794
5860
|
class: i.classes,
|
|
@@ -5801,15 +5867,15 @@ function Cs(e, t, l, o, r, i) {
|
|
|
5801
5867
|
l.closable && l.modelValue ? (s(), u("i", {
|
|
5802
5868
|
key: 0,
|
|
5803
5869
|
class: "w-icon w-tag__closable wi-cross",
|
|
5804
|
-
onClick: t[0] || (t[0] =
|
|
5870
|
+
onClick: t[0] || (t[0] = K((a) => {
|
|
5805
5871
|
e.$emit("update:modelValue", !1), e.$emit("input", !1);
|
|
5806
5872
|
}, ["stop"])),
|
|
5807
5873
|
role: "icon",
|
|
5808
5874
|
"aria-hidden": "true"
|
|
5809
5875
|
})) : h("", !0)
|
|
5810
|
-
], 16,
|
|
5876
|
+
], 16, Rs);
|
|
5811
5877
|
}
|
|
5812
|
-
const
|
|
5878
|
+
const xs = {
|
|
5813
5879
|
name: "w-tag",
|
|
5814
5880
|
props: {
|
|
5815
5881
|
modelValue: { type: [Boolean, Number], default: -1 },
|
|
@@ -5856,10 +5922,10 @@ const Ss = {
|
|
|
5856
5922
|
};
|
|
5857
5923
|
}
|
|
5858
5924
|
}
|
|
5859
|
-
},
|
|
5860
|
-
function
|
|
5861
|
-
const a =
|
|
5862
|
-
return s(), g(
|
|
5925
|
+
}, Ts = /* @__PURE__ */ _(xs, [["render", Ls]]), zs = ["for"], Es = ["id", "name", "placeholder", "rows", "cols", "readonly", "aria-readonly", "disabled", "required", "tabindex"], Ps = ["for"], Os = ["for"];
|
|
5926
|
+
function Ms(e, t, l, o, r, i) {
|
|
5927
|
+
const a = $("w-icon");
|
|
5928
|
+
return s(), g(I(e.formRegister ? "w-form-element" : "div"), S({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: r.inputValue, disabled: e.isDisabled, readonly: e.isReadonly, isFocused: r.isFocused }, {
|
|
5863
5929
|
valid: e.valid,
|
|
5864
5930
|
"onUpdate:valid": t[6] || (t[6] = (n) => e.valid = n),
|
|
5865
5931
|
wrap: i.hasLabel && l.labelPosition !== "inside",
|
|
@@ -5868,20 +5934,20 @@ function xs(e, t, l, o, r, i) {
|
|
|
5868
5934
|
}),
|
|
5869
5935
|
class: i.classes
|
|
5870
5936
|
}), {
|
|
5871
|
-
default:
|
|
5937
|
+
default: m(() => [
|
|
5872
5938
|
l.labelPosition === "left" ? (s(), u(k, { key: 0 }, [
|
|
5873
5939
|
e.$slots.default || l.label ? (s(), u("label", {
|
|
5874
5940
|
key: 0,
|
|
5875
|
-
class:
|
|
5941
|
+
class: f(["w-textarea__label w-textarea__label--left w-form-el-shakable", e.labelClasses]),
|
|
5876
5942
|
for: `w-textarea--${e._.uid}`
|
|
5877
5943
|
}, [
|
|
5878
5944
|
c(e.$slots, "default", {}, () => [
|
|
5879
|
-
C(
|
|
5945
|
+
C(v(l.label), 1)
|
|
5880
5946
|
])
|
|
5881
|
-
], 10,
|
|
5947
|
+
], 10, zs)) : h("", !0)
|
|
5882
5948
|
], 64)) : h("", !0),
|
|
5883
|
-
|
|
5884
|
-
class:
|
|
5949
|
+
w("div", {
|
|
5950
|
+
class: f(["w-textarea__textarea-wrap", i.inputWrapClasses])
|
|
5885
5951
|
}, [
|
|
5886
5952
|
l.innerIconLeft ? (s(), g(a, {
|
|
5887
5953
|
key: 0,
|
|
@@ -5890,16 +5956,16 @@ function xs(e, t, l, o, r, i) {
|
|
|
5890
5956
|
for: `w-textarea--${e._.uid}`,
|
|
5891
5957
|
onClick: t[0] || (t[0] = (n) => e.$emit("click:inner-icon-left", n))
|
|
5892
5958
|
}, {
|
|
5893
|
-
default:
|
|
5894
|
-
C(
|
|
5959
|
+
default: m(() => [
|
|
5960
|
+
C(v(l.innerIconLeft), 1)
|
|
5895
5961
|
]),
|
|
5896
5962
|
_: 1
|
|
5897
5963
|
}, 8, ["for"])) : h("", !0),
|
|
5898
|
-
|
|
5964
|
+
H(w("textarea", S({
|
|
5899
5965
|
class: "w-textarea__textarea",
|
|
5900
5966
|
ref: "textarea",
|
|
5901
5967
|
"onUpdate:modelValue": t[1] || (t[1] = (n) => r.inputValue = n)
|
|
5902
|
-
},
|
|
5968
|
+
}, A(i.listeners, !0), {
|
|
5903
5969
|
onInput: t[2] || (t[2] = (...n) => i.onInput && i.onInput(...n)),
|
|
5904
5970
|
onFocus: t[3] || (t[3] = (...n) => i.onFocus && i.onFocus(...n)),
|
|
5905
5971
|
onBlur: t[4] || (t[4] = (...n) => i.onBlur && i.onBlur(...n)),
|
|
@@ -5913,19 +5979,19 @@ function xs(e, t, l, o, r, i) {
|
|
|
5913
5979
|
disabled: e.isDisabled || null,
|
|
5914
5980
|
required: e.required || null,
|
|
5915
5981
|
tabindex: e.tabindex || null
|
|
5916
|
-
}), null, 16,
|
|
5917
|
-
[
|
|
5982
|
+
}), null, 16, Es), [
|
|
5983
|
+
[ne, r.inputValue]
|
|
5918
5984
|
]),
|
|
5919
5985
|
l.labelPosition === "inside" && i.showLabelInside ? (s(), u(k, { key: 1 }, [
|
|
5920
5986
|
e.$slots.default || l.label ? (s(), u("label", {
|
|
5921
5987
|
key: 0,
|
|
5922
|
-
class:
|
|
5988
|
+
class: f(["w-textarea__label w-textarea__label--inside w-form-el-shakable", e.labelClasses]),
|
|
5923
5989
|
for: `w-textarea--${e._.uid}`
|
|
5924
5990
|
}, [
|
|
5925
5991
|
c(e.$slots, "default", {}, () => [
|
|
5926
|
-
C(
|
|
5992
|
+
C(v(l.label), 1)
|
|
5927
5993
|
])
|
|
5928
|
-
], 10,
|
|
5994
|
+
], 10, Ps)) : h("", !0)
|
|
5929
5995
|
], 64)) : h("", !0),
|
|
5930
5996
|
l.innerIconRight ? (s(), g(a, {
|
|
5931
5997
|
key: 2,
|
|
@@ -5934,8 +6000,8 @@ function xs(e, t, l, o, r, i) {
|
|
|
5934
6000
|
for: `w-textarea--${e._.uid}`,
|
|
5935
6001
|
onClick: t[5] || (t[5] = (n) => e.$emit("click:inner-icon-right", n))
|
|
5936
6002
|
}, {
|
|
5937
|
-
default:
|
|
5938
|
-
C(
|
|
6003
|
+
default: m(() => [
|
|
6004
|
+
C(v(l.innerIconRight), 1)
|
|
5939
6005
|
]),
|
|
5940
6006
|
_: 1
|
|
5941
6007
|
}, 8, ["for"])) : h("", !0)
|
|
@@ -5943,21 +6009,21 @@ function xs(e, t, l, o, r, i) {
|
|
|
5943
6009
|
l.labelPosition === "right" ? (s(), u(k, { key: 1 }, [
|
|
5944
6010
|
e.$slots.default || l.label ? (s(), u("label", {
|
|
5945
6011
|
key: 0,
|
|
5946
|
-
class:
|
|
6012
|
+
class: f(["w-textarea__label w-textarea__label--right w-form-el-shakable", e.labelClasses]),
|
|
5947
6013
|
for: `w-textarea--${e._.uid}`
|
|
5948
6014
|
}, [
|
|
5949
6015
|
c(e.$slots, "default", {}, () => [
|
|
5950
|
-
C(
|
|
6016
|
+
C(v(l.label), 1)
|
|
5951
6017
|
])
|
|
5952
|
-
], 10,
|
|
6018
|
+
], 10, Os)) : h("", !0)
|
|
5953
6019
|
], 64)) : h("", !0)
|
|
5954
6020
|
]),
|
|
5955
6021
|
_: 3
|
|
5956
6022
|
}, 16, ["valid", "wrap", "class"]);
|
|
5957
6023
|
}
|
|
5958
|
-
const
|
|
6024
|
+
const Ns = {
|
|
5959
6025
|
name: "w-textarea",
|
|
5960
|
-
mixins: [
|
|
6026
|
+
mixins: [O],
|
|
5961
6027
|
props: {
|
|
5962
6028
|
modelValue: { default: "" },
|
|
5963
6029
|
label: { type: String },
|
|
@@ -6069,18 +6135,18 @@ const Ls = {
|
|
|
6069
6135
|
e ? this.getLineHeight() : this.height = null;
|
|
6070
6136
|
}
|
|
6071
6137
|
}
|
|
6072
|
-
},
|
|
6073
|
-
function
|
|
6074
|
-
return s(), u("ul",
|
|
6138
|
+
}, Ws = /* @__PURE__ */ _(Ns, [["render", Ms]]), As = { class: "w-timeline" }, Ks = ["innerHTML"], Ds = ["innerHTML"];
|
|
6139
|
+
function Fs(e, t, l, o, r, i) {
|
|
6140
|
+
return s(), u("ul", As, [
|
|
6075
6141
|
(s(!0), u(k, null, x(l.items, (a, n) => (s(), u("li", {
|
|
6076
6142
|
class: "w-timeline-item",
|
|
6077
6143
|
key: n
|
|
6078
6144
|
}, [
|
|
6079
|
-
(s(), g(
|
|
6080
|
-
class:
|
|
6145
|
+
(s(), g(I(a[l.itemIconKey] || l.icon ? "w-icon" : "div"), {
|
|
6146
|
+
class: f(["w-timeline-item__bullet", { [a[l.itemColorKey] || l.color]: a[l.itemColorKey] || l.color }])
|
|
6081
6147
|
}, {
|
|
6082
|
-
default:
|
|
6083
|
-
C(
|
|
6148
|
+
default: m(() => [
|
|
6149
|
+
C(v(a[l.itemIconKey] || l.icon), 1)
|
|
6084
6150
|
]),
|
|
6085
6151
|
_: 2
|
|
6086
6152
|
}, 1032, ["class"])),
|
|
@@ -6093,19 +6159,19 @@ function Ps(e, t, l, o, r, i) {
|
|
|
6093
6159
|
item: a,
|
|
6094
6160
|
index: n + 1
|
|
6095
6161
|
}, () => [
|
|
6096
|
-
|
|
6097
|
-
class:
|
|
6162
|
+
w("div", {
|
|
6163
|
+
class: f(["w-timeline-item__title", { [a[l.itemColorKey] || l.color]: a[l.itemColorKey] || l.color }]),
|
|
6098
6164
|
innerHTML: a[l.itemTitleKey]
|
|
6099
|
-
}, null, 10,
|
|
6100
|
-
|
|
6165
|
+
}, null, 10, Ks),
|
|
6166
|
+
w("div", {
|
|
6101
6167
|
class: "w-timeline-item__content",
|
|
6102
6168
|
innerHTML: a[l.itemContentKey]
|
|
6103
|
-
}, null, 8,
|
|
6169
|
+
}, null, 8, Ds)
|
|
6104
6170
|
])
|
|
6105
6171
|
]))), 128))
|
|
6106
6172
|
]);
|
|
6107
6173
|
}
|
|
6108
|
-
const
|
|
6174
|
+
const js = {
|
|
6109
6175
|
name: "w-timeline",
|
|
6110
6176
|
props: {
|
|
6111
6177
|
items: { type: [Array, Number], required: !0 },
|
|
@@ -6117,16 +6183,16 @@ const Ms = {
|
|
|
6117
6183
|
itemColorKey: { type: String, default: "color" }
|
|
6118
6184
|
},
|
|
6119
6185
|
emits: []
|
|
6120
|
-
},
|
|
6121
|
-
function
|
|
6186
|
+
}, Hs = /* @__PURE__ */ _(js, [["render", Fs]]);
|
|
6187
|
+
function Us(e, t, l, o, r, i) {
|
|
6122
6188
|
return s(), u("div", {
|
|
6123
|
-
class:
|
|
6189
|
+
class: f(["w-toolbar", i.classes]),
|
|
6124
6190
|
style: R(i.styles)
|
|
6125
6191
|
}, [
|
|
6126
6192
|
c(e.$slots, "default")
|
|
6127
6193
|
], 6);
|
|
6128
6194
|
}
|
|
6129
|
-
const
|
|
6195
|
+
const qs = {
|
|
6130
6196
|
name: "w-toolbar",
|
|
6131
6197
|
props: {
|
|
6132
6198
|
color: { type: String },
|
|
@@ -6171,17 +6237,17 @@ const As = {
|
|
|
6171
6237
|
};
|
|
6172
6238
|
}
|
|
6173
6239
|
}
|
|
6174
|
-
},
|
|
6175
|
-
function
|
|
6240
|
+
}, Gs = /* @__PURE__ */ _(qs, [["render", Us]]);
|
|
6241
|
+
function Xs(e, t, l, o, r, i) {
|
|
6176
6242
|
return s(), u(k, null, [
|
|
6177
6243
|
c(e.$slots, "activator", { on: i.activatorEventHandlers }),
|
|
6178
|
-
|
|
6244
|
+
V(T, {
|
|
6179
6245
|
name: i.transitionName,
|
|
6180
6246
|
appear: ""
|
|
6181
6247
|
}, {
|
|
6182
|
-
default:
|
|
6248
|
+
default: m(() => [
|
|
6183
6249
|
e.detachableVisible ? (s(), u("div", {
|
|
6184
|
-
class:
|
|
6250
|
+
class: f(["w-tooltip", i.classes]),
|
|
6185
6251
|
ref: "detachable",
|
|
6186
6252
|
key: e._.uid,
|
|
6187
6253
|
style: R(i.styles)
|
|
@@ -6193,9 +6259,9 @@ function Ds(e, t, l, o, r, i) {
|
|
|
6193
6259
|
}, 8, ["name"])
|
|
6194
6260
|
], 64);
|
|
6195
6261
|
}
|
|
6196
|
-
const
|
|
6262
|
+
const Ys = {
|
|
6197
6263
|
name: "w-tooltip",
|
|
6198
|
-
mixins: [
|
|
6264
|
+
mixins: [de],
|
|
6199
6265
|
props: {
|
|
6200
6266
|
modelValue: {},
|
|
6201
6267
|
showOnClick: { type: Boolean },
|
|
@@ -6223,7 +6289,7 @@ const Fs = {
|
|
|
6223
6289
|
}),
|
|
6224
6290
|
computed: {
|
|
6225
6291
|
tooltipClasses() {
|
|
6226
|
-
return
|
|
6292
|
+
return F(this.tooltipClass);
|
|
6227
6293
|
},
|
|
6228
6294
|
transitionName() {
|
|
6229
6295
|
const e = this.position.replace(/top|bottom/, (t) => ({ top: "up", bottom: "down" })[t]);
|
|
@@ -6275,24 +6341,24 @@ const Fs = {
|
|
|
6275
6341
|
!this.detachableVisible || this.showOnHover && !e && (await new Promise((t) => setTimeout(t, 10)), this.showOnHover && this.hoveringActivator) || (this.$emit("update:modelValue", this.detachableVisible = !1), this.$emit("input", !1), this.$emit("close"), document.removeEventListener("mousedown", this.onOutsideMousedown), window.removeEventListener("resize", this.onResize));
|
|
6276
6342
|
}
|
|
6277
6343
|
}
|
|
6278
|
-
},
|
|
6279
|
-
function
|
|
6280
|
-
return s(), g(
|
|
6281
|
-
default:
|
|
6344
|
+
}, Js = /* @__PURE__ */ _(Ys, [["render", Xs]]);
|
|
6345
|
+
function Qs(e, t, l, o, r, i) {
|
|
6346
|
+
return s(), g(T, S({ name: "bounce" }, e.$props), {
|
|
6347
|
+
default: m(() => [
|
|
6282
6348
|
c(e.$slots, "default")
|
|
6283
6349
|
]),
|
|
6284
6350
|
_: 3
|
|
6285
6351
|
}, 16);
|
|
6286
6352
|
}
|
|
6287
|
-
const
|
|
6353
|
+
const Zs = {
|
|
6288
6354
|
name: "w-transition-bounce",
|
|
6289
6355
|
props: {
|
|
6290
6356
|
appear: { type: Boolean },
|
|
6291
6357
|
duration: { type: [Number, String] }
|
|
6292
6358
|
}
|
|
6293
|
-
},
|
|
6294
|
-
function
|
|
6295
|
-
return s(), g(
|
|
6359
|
+
}, ea = /* @__PURE__ */ _(Zs, [["render", Qs]]);
|
|
6360
|
+
function ta(e, t, l, o, r, i) {
|
|
6361
|
+
return s(), g(T, {
|
|
6296
6362
|
name: "expand",
|
|
6297
6363
|
mode: "out-in",
|
|
6298
6364
|
css: !1,
|
|
@@ -6306,13 +6372,13 @@ function Gs(e, t, l, o, r, i) {
|
|
|
6306
6372
|
onLeave: i.leave,
|
|
6307
6373
|
onAfterLeave: i.afterLeave
|
|
6308
6374
|
}, {
|
|
6309
|
-
default:
|
|
6375
|
+
default: m(() => [
|
|
6310
6376
|
c(e.$slots, "default")
|
|
6311
6377
|
]),
|
|
6312
6378
|
_: 3
|
|
6313
6379
|
}, 8, ["onBeforeAppear", "onAppear", "onAfterAppear", "onBeforeEnter", "onEnter", "onAfterEnter", "onBeforeLeave", "onLeave", "onAfterLeave"]);
|
|
6314
6380
|
}
|
|
6315
|
-
const
|
|
6381
|
+
const la = {
|
|
6316
6382
|
name: "w-transition-expand",
|
|
6317
6383
|
props: {
|
|
6318
6384
|
x: { type: Boolean },
|
|
@@ -6321,6 +6387,7 @@ const Xs = {
|
|
|
6321
6387
|
},
|
|
6322
6388
|
data: () => ({
|
|
6323
6389
|
el: {
|
|
6390
|
+
savedState: !1,
|
|
6324
6391
|
originalStyles: "",
|
|
6325
6392
|
width: 0,
|
|
6326
6393
|
height: 0,
|
|
@@ -6349,7 +6416,7 @@ const Xs = {
|
|
|
6349
6416
|
},
|
|
6350
6417
|
methods: {
|
|
6351
6418
|
beforeAppear(e) {
|
|
6352
|
-
this.cleanTransitionCycle && this.
|
|
6419
|
+
this.cleanTransitionCycle && this.saveOriginalInlineStyles(e), this.cleanTransitionCycle = !1;
|
|
6353
6420
|
},
|
|
6354
6421
|
appear(e, t) {
|
|
6355
6422
|
this.show(e), setTimeout(t, this.duration), this.cleanTransitionCycle = !1;
|
|
@@ -6358,7 +6425,7 @@ const Xs = {
|
|
|
6358
6425
|
this.applyOriginalStyles(e), e.style.cssText = e.style.cssText.replace("display: none;", ""), this.cleanTransitionCycle = !1;
|
|
6359
6426
|
},
|
|
6360
6427
|
beforeEnter(e) {
|
|
6361
|
-
this.cleanTransitionCycle && this.
|
|
6428
|
+
this.cleanTransitionCycle && this.saveOriginalInlineStyles(e), this.cleanTransitionCycle = !1;
|
|
6362
6429
|
},
|
|
6363
6430
|
enter(e, t) {
|
|
6364
6431
|
this.show(e), setTimeout(t, this.duration), this.cleanTransitionCycle = !1;
|
|
@@ -6367,13 +6434,13 @@ const Xs = {
|
|
|
6367
6434
|
this.applyOriginalStyles(e), e.style.cssText = e.style.cssText.replace("display: none;", ""), this.cleanTransitionCycle = !1;
|
|
6368
6435
|
},
|
|
6369
6436
|
beforeLeave(e) {
|
|
6370
|
-
this.beforeHide(e), this.cleanTransitionCycle = !1;
|
|
6437
|
+
this.el.savedState || this.saveComputedStyles(e), this.beforeHide(e), this.cleanTransitionCycle = !1;
|
|
6371
6438
|
},
|
|
6372
6439
|
leave(e, t) {
|
|
6373
6440
|
this.hide(e), setTimeout(t, this.duration), this.cleanTransitionCycle = !1;
|
|
6374
6441
|
},
|
|
6375
6442
|
afterLeave(e) {
|
|
6376
|
-
this.applyOriginalStyles(e), this.cleanTransitionCycle = !0;
|
|
6443
|
+
this.applyOriginalStyles(e), this.cleanTransitionCycle = !0, this.el.savedState = !1;
|
|
6377
6444
|
},
|
|
6378
6445
|
applyHideStyles(e) {
|
|
6379
6446
|
this.animX && (e.style.width = 0, e.style.marginLeft = 0, e.style.marginRight = 0, e.style.paddingLeft = 0, e.style.paddingRight = 0, e.style.borderLeftWidth = 0, e.style.borderRightWidth = 0), this.animY && (e.style.height = 0, e.style.marginTop = 0, e.style.marginBottom = 0, e.style.paddingTop = 0, e.style.paddingBottom = 0, e.style.borderTopWidth = 0, e.style.borderBottomWidth = 0), e.style.overflow = "hidden";
|
|
@@ -6384,75 +6451,78 @@ const Xs = {
|
|
|
6384
6451
|
applyOriginalStyles(e) {
|
|
6385
6452
|
e.style.cssText = this.el.originalStyles;
|
|
6386
6453
|
},
|
|
6387
|
-
|
|
6454
|
+
saveOriginalInlineStyles(e) {
|
|
6388
6455
|
this.el.originalStyles = e.style.cssText;
|
|
6389
6456
|
},
|
|
6390
6457
|
show(e, t) {
|
|
6391
|
-
|
|
6392
|
-
this.animX && (this.el.width = e.offsetWidth, this.el.marginLeft = l.getPropertyValue("marginLeft"), this.el.marginRight = l.getPropertyValue("marginRight"), this.el.paddingLeft = l.getPropertyValue("paddingLeft"), this.el.paddingRight = l.getPropertyValue("paddingRight"), this.el.borderLeftWidth = l.getPropertyValue("borderLeftWidth"), this.el.borderRightWidth = l.getPropertyValue("borderRightWidth")), this.animY && (this.el.height = e.offsetHeight, this.el.marginTop = l.getPropertyValue("marginTop"), this.el.marginBottom = l.getPropertyValue("marginBottom"), this.el.paddingTop = l.getPropertyValue("paddingTop"), this.el.paddingBottom = l.getPropertyValue("paddingBottom"), this.el.borderTopWidth = l.getPropertyValue("borderTopWidth"), this.el.borderBottomWidth = l.getPropertyValue("borderBottomWidth")), this.applyHideStyles(e), setTimeout(() => this.applyShowStyles(e), 20), setTimeout(t, this.duration);
|
|
6458
|
+
this.saveComputedStyles(e), this.applyHideStyles(e), setTimeout(() => this.applyShowStyles(e), 20), setTimeout(t, this.duration);
|
|
6393
6459
|
},
|
|
6394
6460
|
beforeHide(e) {
|
|
6395
6461
|
this.applyShowStyles(e);
|
|
6396
6462
|
},
|
|
6397
6463
|
hide(e, t) {
|
|
6398
6464
|
setTimeout(() => this.applyHideStyles(e), 20), setTimeout(t, this.duration);
|
|
6465
|
+
},
|
|
6466
|
+
saveComputedStyles(e) {
|
|
6467
|
+
const t = window.getComputedStyle(e, null);
|
|
6468
|
+
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;
|
|
6399
6469
|
}
|
|
6400
6470
|
}
|
|
6401
|
-
},
|
|
6402
|
-
function
|
|
6403
|
-
return s(), g(
|
|
6404
|
-
default:
|
|
6471
|
+
}, ia = /* @__PURE__ */ _(la, [["render", ta]]);
|
|
6472
|
+
function sa(e, t, l, o, r, i) {
|
|
6473
|
+
return s(), g(T, S({ name: "fade" }, e.$props), {
|
|
6474
|
+
default: m(() => [
|
|
6405
6475
|
c(e.$slots, "default")
|
|
6406
6476
|
]),
|
|
6407
6477
|
_: 3
|
|
6408
6478
|
}, 16);
|
|
6409
6479
|
}
|
|
6410
|
-
const
|
|
6480
|
+
const aa = {
|
|
6411
6481
|
name: "w-transition-fade",
|
|
6412
6482
|
props: {
|
|
6413
6483
|
appear: { type: Boolean },
|
|
6414
6484
|
duration: { type: [Number, String] }
|
|
6415
6485
|
}
|
|
6416
|
-
},
|
|
6417
|
-
function
|
|
6418
|
-
return s(), g(
|
|
6419
|
-
default:
|
|
6486
|
+
}, oa = /* @__PURE__ */ _(aa, [["render", sa]]);
|
|
6487
|
+
function na(e, t, l, o, r, i) {
|
|
6488
|
+
return s(), g(T, S({ name: "scale" }, e.$props), {
|
|
6489
|
+
default: m(() => [
|
|
6420
6490
|
c(e.$slots, "default")
|
|
6421
6491
|
]),
|
|
6422
6492
|
_: 3
|
|
6423
6493
|
}, 16);
|
|
6424
6494
|
}
|
|
6425
|
-
const
|
|
6495
|
+
const ra = {
|
|
6426
6496
|
name: "w-transition-scale",
|
|
6427
6497
|
props: {
|
|
6428
6498
|
appear: { type: Boolean },
|
|
6429
6499
|
duration: { type: [Number, String] }
|
|
6430
6500
|
}
|
|
6431
|
-
},
|
|
6432
|
-
function
|
|
6433
|
-
return s(), g(
|
|
6434
|
-
default:
|
|
6501
|
+
}, da = /* @__PURE__ */ _(ra, [["render", na]]);
|
|
6502
|
+
function ua(e, t, l, o, r, i) {
|
|
6503
|
+
return s(), g(T, S({ name: "scale-fade" }, e.$props), {
|
|
6504
|
+
default: m(() => [
|
|
6435
6505
|
c(e.$slots, "default")
|
|
6436
6506
|
]),
|
|
6437
6507
|
_: 3
|
|
6438
6508
|
}, 16);
|
|
6439
6509
|
}
|
|
6440
|
-
const
|
|
6510
|
+
const ha = {
|
|
6441
6511
|
name: "w-transition-scale-fade",
|
|
6442
6512
|
props: {
|
|
6443
6513
|
appear: { type: Boolean },
|
|
6444
6514
|
duration: { type: [Number, String] }
|
|
6445
6515
|
}
|
|
6446
|
-
},
|
|
6447
|
-
function
|
|
6448
|
-
return s(), g(
|
|
6449
|
-
default:
|
|
6516
|
+
}, ca = /* @__PURE__ */ _(ha, [["render", ua]]);
|
|
6517
|
+
function pa(e, t, l, o, r, i) {
|
|
6518
|
+
return s(), g(T, S({ name: i.transitionName }, e.$props), {
|
|
6519
|
+
default: m(() => [
|
|
6450
6520
|
c(e.$slots, "default")
|
|
6451
6521
|
]),
|
|
6452
6522
|
_: 3
|
|
6453
6523
|
}, 16, ["name"]);
|
|
6454
6524
|
}
|
|
6455
|
-
const
|
|
6525
|
+
const fa = {
|
|
6456
6526
|
name: "w-transition-slide",
|
|
6457
6527
|
props: {
|
|
6458
6528
|
appear: { type: Boolean },
|
|
@@ -6470,16 +6540,16 @@ const na = {
|
|
|
6470
6540
|
return `slide-${this.direction}`;
|
|
6471
6541
|
}
|
|
6472
6542
|
}
|
|
6473
|
-
},
|
|
6474
|
-
function
|
|
6475
|
-
return s(), g(
|
|
6476
|
-
default:
|
|
6543
|
+
}, ma = /* @__PURE__ */ _(fa, [["render", pa]]);
|
|
6544
|
+
function ba(e, t, l, o, r, i) {
|
|
6545
|
+
return s(), g(T, S({ name: i.transitionName }, e.$props), {
|
|
6546
|
+
default: m(() => [
|
|
6477
6547
|
c(e.$slots, "default")
|
|
6478
6548
|
]),
|
|
6479
6549
|
_: 3
|
|
6480
6550
|
}, 16, ["name"]);
|
|
6481
6551
|
}
|
|
6482
|
-
const
|
|
6552
|
+
const ga = {
|
|
6483
6553
|
name: "w-transition-slide-fade",
|
|
6484
6554
|
props: {
|
|
6485
6555
|
appear: { type: Boolean },
|
|
@@ -6497,94 +6567,95 @@ const ua = {
|
|
|
6497
6567
|
return `slide-fade-${this.direction}`;
|
|
6498
6568
|
}
|
|
6499
6569
|
}
|
|
6500
|
-
},
|
|
6501
|
-
function
|
|
6502
|
-
return s(), g(
|
|
6503
|
-
default:
|
|
6570
|
+
}, ya = /* @__PURE__ */ _(ga, [["render", ba]]);
|
|
6571
|
+
function wa(e, t, l, o, r, i) {
|
|
6572
|
+
return s(), g(T, S({ name: "twist" }, e.$props), {
|
|
6573
|
+
default: m(() => [
|
|
6504
6574
|
c(e.$slots, "default")
|
|
6505
6575
|
]),
|
|
6506
6576
|
_: 3
|
|
6507
6577
|
}, 16);
|
|
6508
6578
|
}
|
|
6509
|
-
const
|
|
6579
|
+
const va = {
|
|
6510
6580
|
name: "w-transition-twist",
|
|
6511
6581
|
props: {
|
|
6512
6582
|
appear: { type: Boolean },
|
|
6513
6583
|
duration: { type: [Number, String] }
|
|
6514
6584
|
}
|
|
6515
|
-
},
|
|
6585
|
+
}, _a = /* @__PURE__ */ _(va, [["render", wa]]), ka = ["onClick", "onKeydown", "tabindex"], Ca = {
|
|
6516
6586
|
key: 1,
|
|
6517
6587
|
class: "ml1"
|
|
6518
6588
|
};
|
|
6519
|
-
function
|
|
6520
|
-
const a =
|
|
6589
|
+
function Sa(e, t, l, o, r, i) {
|
|
6590
|
+
const a = $("w-button"), n = $("w-icon"), d = $("w-tree", !0);
|
|
6521
6591
|
return s(), u("ul", {
|
|
6522
|
-
class:
|
|
6592
|
+
class: f(["w-tree", i.classes])
|
|
6523
6593
|
}, [
|
|
6524
|
-
(s(!0), u(k, null, x(e.currentDepthItems, (
|
|
6525
|
-
class:
|
|
6526
|
-
key:
|
|
6594
|
+
(s(!0), u(k, null, x(e.currentDepthItems, (p, b) => (s(), u("li", {
|
|
6595
|
+
class: f(["w-tree__item", i.itemClasses(p)]),
|
|
6596
|
+
key: b
|
|
6527
6597
|
}, [
|
|
6528
|
-
|
|
6598
|
+
w("div", {
|
|
6529
6599
|
class: "w-tree__item-label",
|
|
6530
|
-
onClick: (
|
|
6531
|
-
onKeydown: (
|
|
6532
|
-
tabindex: !l.disabled && (
|
|
6600
|
+
onClick: (B) => !l.disabled && i.onLabelClick(p, B),
|
|
6601
|
+
onKeydown: (B) => !l.disabled && i.onLabelKeydown(p, B),
|
|
6602
|
+
tabindex: !l.disabled && (p.children || p.branch || l.selectable) && !(l.unexpandableEmpty && !p.children) ? 0 : null
|
|
6533
6603
|
}, [
|
|
6534
|
-
(
|
|
6604
|
+
(p.children || p.branch) && (l.expandOpenIcon && p.open || l.expandIcon) && !(l.unexpandableEmpty && !p.children) ? (s(), g(a, {
|
|
6535
6605
|
key: 0,
|
|
6536
6606
|
class: "w-tree__item-expand",
|
|
6537
6607
|
color: "inherit",
|
|
6538
|
-
icon:
|
|
6539
|
-
"icon-props": { rotate90a: !
|
|
6608
|
+
icon: p.open && l.expandOpenIcon || l.expandIcon,
|
|
6609
|
+
"icon-props": { rotate90a: !p.open },
|
|
6540
6610
|
tabindex: -1,
|
|
6541
6611
|
disabled: l.disabled,
|
|
6542
6612
|
text: "",
|
|
6543
6613
|
sm: ""
|
|
6544
6614
|
}, null, 8, ["icon", "icon-props", "disabled"])) : h("", !0),
|
|
6545
6615
|
c(e.$slots, "item-label", {
|
|
6546
|
-
item:
|
|
6616
|
+
item: p.originalItem,
|
|
6547
6617
|
depth: l.depth,
|
|
6548
|
-
open:
|
|
6618
|
+
open: p.open
|
|
6549
6619
|
}, () => {
|
|
6550
|
-
var
|
|
6620
|
+
var B;
|
|
6551
6621
|
return [
|
|
6552
|
-
i.itemIcon(
|
|
6622
|
+
i.itemIcon(p) ? (s(), g(n, {
|
|
6553
6623
|
key: 0,
|
|
6554
|
-
class: "w-tree__item-icon"
|
|
6624
|
+
class: "w-tree__item-icon",
|
|
6625
|
+
color: p.originalItem[l.itemIconColorKey] || l.iconColor
|
|
6555
6626
|
}, {
|
|
6556
|
-
default:
|
|
6557
|
-
C(
|
|
6627
|
+
default: m(() => [
|
|
6628
|
+
C(v(i.itemIcon(p)), 1)
|
|
6558
6629
|
]),
|
|
6559
6630
|
_: 2
|
|
6560
|
-
},
|
|
6561
|
-
|
|
6562
|
-
l.counts && (
|
|
6631
|
+
}, 1032, ["color"])) : h("", !0),
|
|
6632
|
+
w("span", null, v(p.label), 1),
|
|
6633
|
+
l.counts && (p.children || p.branch) ? (s(), u("span", Ca, "(" + v(((B = p.originalItem.children) == null ? void 0 : B.length) || 0) + ")", 1)) : h("", !0)
|
|
6563
6634
|
];
|
|
6564
6635
|
})
|
|
6565
|
-
], 40,
|
|
6566
|
-
(s(), g(
|
|
6636
|
+
], 40, ka),
|
|
6637
|
+
(s(), g(I(l.noTransition ? "div" : "w-transition-expand"), {
|
|
6567
6638
|
y: !l.noTransition || null,
|
|
6568
|
-
onAfterEnter: (
|
|
6569
|
-
onAfterLeave: (
|
|
6639
|
+
onAfterEnter: (B) => e.$emit("open", { item: p.originalItem, open: p.open, depth: l.depth }),
|
|
6640
|
+
onAfterLeave: (B) => e.$emit("close", { item: p.originalItem, open: p.open, depth: l.depth })
|
|
6570
6641
|
}, {
|
|
6571
|
-
default:
|
|
6572
|
-
|
|
6642
|
+
default: m(() => [
|
|
6643
|
+
p.children && p.open ? (s(), g(d, S({ key: 0 }, e.$props, {
|
|
6573
6644
|
depth: l.depth + 1,
|
|
6574
|
-
data:
|
|
6575
|
-
onBeforeOpen: t[0] || (t[0] = (
|
|
6576
|
-
onOpen: t[1] || (t[1] = (
|
|
6577
|
-
onBeforeClose: t[2] || (t[2] = (
|
|
6578
|
-
onClose: t[3] || (t[3] = (
|
|
6579
|
-
onClick: t[4] || (t[4] = (
|
|
6580
|
-
onSelect: t[5] || (t[5] = (
|
|
6581
|
-
"onUpdate:modelValue": t[6] || (t[6] = (
|
|
6645
|
+
data: p.originalItem.children,
|
|
6646
|
+
onBeforeOpen: t[0] || (t[0] = (B) => e.$emit("before-open", B)),
|
|
6647
|
+
onOpen: t[1] || (t[1] = (B) => e.$emit("open", B)),
|
|
6648
|
+
onBeforeClose: t[2] || (t[2] = (B) => e.$emit("before-close", B)),
|
|
6649
|
+
onClose: t[3] || (t[3] = (B) => e.$emit("close", B)),
|
|
6650
|
+
onClick: t[4] || (t[4] = (B) => e.$emit("click", B)),
|
|
6651
|
+
onSelect: t[5] || (t[5] = (B) => e.$emit("select", B)),
|
|
6652
|
+
"onUpdate:modelValue": t[6] || (t[6] = (B) => e.$emit("update:model-value", B))
|
|
6582
6653
|
}), {
|
|
6583
|
-
"item-label":
|
|
6654
|
+
"item-label": m(({ item: B, depth: y, open: L }) => [
|
|
6584
6655
|
c(e.$slots, "item-label", {
|
|
6585
|
-
item:
|
|
6586
|
-
depth:
|
|
6587
|
-
open:
|
|
6656
|
+
item: B,
|
|
6657
|
+
depth: y,
|
|
6658
|
+
open: L
|
|
6588
6659
|
})
|
|
6589
6660
|
]),
|
|
6590
6661
|
_: 2
|
|
@@ -6595,7 +6666,7 @@ function ga(e, t, l, o, r, i) {
|
|
|
6595
6666
|
], 2))), 128))
|
|
6596
6667
|
], 2);
|
|
6597
6668
|
}
|
|
6598
|
-
const
|
|
6669
|
+
const Ba = {
|
|
6599
6670
|
name: "w-tree",
|
|
6600
6671
|
props: {
|
|
6601
6672
|
modelValue: { type: [Object, Array] },
|
|
@@ -6613,8 +6684,11 @@ const ya = {
|
|
|
6613
6684
|
disabled: { type: Boolean },
|
|
6614
6685
|
noTransition: { type: Boolean },
|
|
6615
6686
|
selectable: { type: Boolean },
|
|
6616
|
-
|
|
6617
|
-
counts: { type: Boolean }
|
|
6687
|
+
deepReactivity: { type: Boolean },
|
|
6688
|
+
counts: { type: Boolean },
|
|
6689
|
+
itemIconKey: { type: String, default: "icon" },
|
|
6690
|
+
iconColor: { type: String },
|
|
6691
|
+
itemIconColorKey: { type: String, default: "iconColor" }
|
|
6618
6692
|
},
|
|
6619
6693
|
emits: ["update:model-value", "before-open", "open", "before-close", "close", "click", "select"],
|
|
6620
6694
|
data: () => ({
|
|
@@ -6642,7 +6716,7 @@ const ya = {
|
|
|
6642
6716
|
children: !!l.children,
|
|
6643
6717
|
branch: l.branch,
|
|
6644
6718
|
depth: this.depth,
|
|
6645
|
-
open: ((r = t[o]) == null ? void 0 : r.open) ||
|
|
6719
|
+
open: !!(((r = t[o]) == null ? void 0 : r.open) || this.expandAll)
|
|
6646
6720
|
});
|
|
6647
6721
|
});
|
|
6648
6722
|
},
|
|
@@ -6661,10 +6735,7 @@ const ya = {
|
|
|
6661
6735
|
onLabelKeydown(e, t) {
|
|
6662
6736
|
if (!(t.metaKey || t.ctrlKey || t.altKey || t.shiftKey) && [13, 32, 37, 38, 39, 40].includes(t.which) && ((e.children || e.branch) && ([13, 32].includes(t.which) ? this.expandDepth(e) && t.preventDefault() : t.which === 37 ? this.expandDepth(e, !1) && t.preventDefault() : t.which === 39 && this.expandDepth(e, !0) && t.preventDefault()), [38, 40].includes(t.which))) {
|
|
6663
6737
|
const o = this.$el.closest(".w-tree--depth0").querySelectorAll('.w-tree__item-label[tabindex="0"]'), r = t.target.closest(".w-tree__item-label"), i = t.which === 38 ? -1 : 1;
|
|
6664
|
-
[...o].some((a, n) =>
|
|
6665
|
-
if (a.isSameNode(r))
|
|
6666
|
-
return o[n + i] && o[n + i].focus(), !0;
|
|
6667
|
-
});
|
|
6738
|
+
[...o].some((a, n) => a.isSameNode(r) ? (o[n + i] && o[n + i].focus(), !0) : !1);
|
|
6668
6739
|
}
|
|
6669
6740
|
this.selectable && this.emitItemSelection(e, t);
|
|
6670
6741
|
},
|
|
@@ -6684,7 +6755,7 @@ const ya = {
|
|
|
6684
6755
|
e && e.querySelector(".w-tree__item-label").focus();
|
|
6685
6756
|
},
|
|
6686
6757
|
itemIcon(e) {
|
|
6687
|
-
return e.originalItem.
|
|
6758
|
+
return e.originalItem[this.itemIconKey] || !e.children && !e.branch && this.leafIcon || (e.children || e.branch) && (e.open && this.branchOpenIcon || this.branchIcon);
|
|
6688
6759
|
},
|
|
6689
6760
|
itemClasses(e) {
|
|
6690
6761
|
return {
|
|
@@ -6698,67 +6769,67 @@ const ya = {
|
|
|
6698
6769
|
this.updateCurrentDepthTree(this.data), this.dataPropUnwatch = this.$watch(
|
|
6699
6770
|
"data",
|
|
6700
6771
|
(e) => this.updateCurrentDepthTree(e, this.currentDepthItems),
|
|
6701
|
-
{ deep: !!this.
|
|
6772
|
+
{ deep: !!this.deepReactivity }
|
|
6702
6773
|
);
|
|
6703
6774
|
},
|
|
6704
6775
|
unmounted() {
|
|
6705
6776
|
this.dataPropUnwatch();
|
|
6706
6777
|
}
|
|
6707
|
-
},
|
|
6778
|
+
}, $a = /* @__PURE__ */ _(Ba, [["render", Sa]]), Va = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6708
6779
|
__proto__: null,
|
|
6709
|
-
WAccordion:
|
|
6710
|
-
WAlert:
|
|
6711
|
-
WApp:
|
|
6712
|
-
WBadge:
|
|
6713
|
-
WBreadcrumbs:
|
|
6714
|
-
WButton:
|
|
6715
|
-
WCard:
|
|
6716
|
-
WCheckbox:
|
|
6717
|
-
WCheckboxes:
|
|
6718
|
-
WConfirm:
|
|
6719
|
-
WDatePicker:
|
|
6720
|
-
WDialog:
|
|
6721
|
-
WDivider:
|
|
6722
|
-
WDrawer:
|
|
6723
|
-
WFlex:
|
|
6724
|
-
WForm:
|
|
6725
|
-
WFormElement:
|
|
6726
|
-
WGrid:
|
|
6727
|
-
WIcon:
|
|
6728
|
-
WImage:
|
|
6729
|
-
WInput:
|
|
6730
|
-
WList:
|
|
6731
|
-
WMenu:
|
|
6732
|
-
WNotification:
|
|
6733
|
-
WOverlay:
|
|
6734
|
-
WParallax:
|
|
6735
|
-
WProgress:
|
|
6736
|
-
WRadio:
|
|
6737
|
-
WRadios:
|
|
6738
|
-
WRating:
|
|
6739
|
-
WSelect:
|
|
6740
|
-
WSlider:
|
|
6741
|
-
WSpinner:
|
|
6742
|
-
WSteps:
|
|
6743
|
-
WSwitch:
|
|
6744
|
-
WTabs:
|
|
6745
|
-
WTable:
|
|
6746
|
-
WTag:
|
|
6747
|
-
WTextarea:
|
|
6748
|
-
WTimeline:
|
|
6749
|
-
WToolbar:
|
|
6750
|
-
WTooltip:
|
|
6751
|
-
WTransitionBounce:
|
|
6752
|
-
WTransitionExpand:
|
|
6753
|
-
WTransitionFade:
|
|
6754
|
-
WTransitionScale:
|
|
6755
|
-
WTransitionScaleFade:
|
|
6756
|
-
WTransitionSlide:
|
|
6757
|
-
WTransitionSlideFade:
|
|
6758
|
-
WTransitionTwist:
|
|
6759
|
-
WTree:
|
|
6760
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
6761
|
-
|
|
6780
|
+
WAccordion: _e,
|
|
6781
|
+
WAlert: Be,
|
|
6782
|
+
WApp: Oe,
|
|
6783
|
+
WBadge: We,
|
|
6784
|
+
WBreadcrumbs: Fe,
|
|
6785
|
+
WButton: Qe,
|
|
6786
|
+
WCard: tt,
|
|
6787
|
+
WCheckbox: ht,
|
|
6788
|
+
WCheckboxes: mt,
|
|
6789
|
+
WConfirm: wt,
|
|
6790
|
+
WDatePicker: kt,
|
|
6791
|
+
WDialog: Bt,
|
|
6792
|
+
WDivider: Rt,
|
|
6793
|
+
WDrawer: Et,
|
|
6794
|
+
WFlex: Mt,
|
|
6795
|
+
WForm: Kt,
|
|
6796
|
+
WFormElement: jt,
|
|
6797
|
+
WGrid: qt,
|
|
6798
|
+
WIcon: Yt,
|
|
6799
|
+
WImage: el,
|
|
6800
|
+
WInput: cl,
|
|
6801
|
+
WList: ml,
|
|
6802
|
+
WMenu: yl,
|
|
6803
|
+
WNotification: _l,
|
|
6804
|
+
WOverlay: Sl,
|
|
6805
|
+
WParallax: Il,
|
|
6806
|
+
WProgress: Ol,
|
|
6807
|
+
WRadio: jl,
|
|
6808
|
+
WRadios: Gl,
|
|
6809
|
+
WRating: Zl,
|
|
6810
|
+
WSelect: di,
|
|
6811
|
+
WSlider: Ci,
|
|
6812
|
+
WSpinner: Vi,
|
|
6813
|
+
WSteps: xi,
|
|
6814
|
+
WSwitch: Wi,
|
|
6815
|
+
WTabs: Ji,
|
|
6816
|
+
WTable: Is,
|
|
6817
|
+
WTag: Ts,
|
|
6818
|
+
WTextarea: Ws,
|
|
6819
|
+
WTimeline: Hs,
|
|
6820
|
+
WToolbar: Gs,
|
|
6821
|
+
WTooltip: Js,
|
|
6822
|
+
WTransitionBounce: ea,
|
|
6823
|
+
WTransitionExpand: ia,
|
|
6824
|
+
WTransitionFade: oa,
|
|
6825
|
+
WTransitionScale: da,
|
|
6826
|
+
WTransitionScaleFade: ca,
|
|
6827
|
+
WTransitionSlide: ma,
|
|
6828
|
+
WTransitionSlideFade: ya,
|
|
6829
|
+
WTransitionTwist: _a,
|
|
6830
|
+
WTree: $a
|
|
6831
|
+
}, Symbol.toStringTag, { value: "Module" })), Ia = D.install;
|
|
6832
|
+
D.install = (e, t = {}) => Ia.call(D, e, { components: Va, ...t });
|
|
6762
6833
|
export {
|
|
6763
|
-
|
|
6834
|
+
D as default
|
|
6764
6835
|
};
|