wave-ui 3.14.3 → 3.15.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 +391 -366
- package/dist/wave-ui.umd.js +1 -1
- package/package.json +33 -33
- package/src/wave-ui/components/w-image.vue +85 -51
package/dist/wave-ui.es.js
CHANGED
|
@@ -5,7 +5,7 @@ var de = (e) => {
|
|
|
5
5
|
var $e = (e, t, i) => t in e ? _e(e, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[t] = i;
|
|
6
6
|
var H = (e, t, i) => $e(e, typeof t != "symbol" ? t + "" : t, i), ue = (e, t, i) => t.has(e) || de("Cannot " + i);
|
|
7
7
|
var Y = (e, t, i) => (ue(e, t, "read from private field"), i ? i.call(e) : t.get(e)), te = (e, t, i) => t.has(e) ? de("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, i), ie = (e, t, i, s) => (ue(e, t, "write to private field"), s ? s.call(e, i) : t.set(e, i), i);
|
|
8
|
-
import { reactive as Z, resolveComponent as $, openBlock as o, createBlock as b, Teleport as
|
|
8
|
+
import { reactive as Z, resolveComponent as $, openBlock as o, createBlock as b, Teleport as Ie, createVNode as T, TransitionGroup as ae, normalizeClass as f, withCtx as m, createElementBlock as u, Fragment as k, renderList as x, mergeProps as _, createElementVNode as w, createCommentVNode as p, createApp as Ve, defineComponent as Te, inject as Le, withKeys as E, withModifiers as O, renderSlot as c, createTextVNode as B, toDisplayString as C, normalizeStyle as R, toHandlers as ne, Transition as P, resolveDynamicComponent as L, normalizeProps as le, resolveDirective as ke, withDirectives as W, createSlots as ee, vShow as re, vModelText as ve, vModelDynamic as Re, KeepAlive as xe } from "vue";
|
|
9
9
|
const Pe = Z({
|
|
10
10
|
on: "#app",
|
|
11
11
|
// Sets the Wave UI root node. If not found, will default to `body`.
|
|
@@ -74,7 +74,7 @@ const Pe = Z({
|
|
|
74
74
|
typeof s == "object" && typeof t[i] == "object" ? Ce(e[i], t[i]) : t[i] = s;
|
|
75
75
|
}
|
|
76
76
|
return t;
|
|
77
|
-
}, j = (e) => console.warn(`Wave UI: ${e}`), F = (e) => console.error(`Wave UI: ${e}`),
|
|
77
|
+
}, j = (e) => console.warn(`Wave UI: ${e}`), F = (e) => console.error(`Wave UI: ${e}`), ze = (e) => {
|
|
78
78
|
["light", "dark"].forEach((t) => {
|
|
79
79
|
var s, n, l;
|
|
80
80
|
const i = e.colors[t];
|
|
@@ -108,17 +108,17 @@ function J(e) {
|
|
|
108
108
|
const t = e.toString(16);
|
|
109
109
|
return t.length === 1 && `0${t}` || t.length === 2 && t || F(`expected value from 0~255, got: ${e}`) || "";
|
|
110
110
|
}
|
|
111
|
-
function
|
|
111
|
+
function Oe(e) {
|
|
112
112
|
return /^#[0-9a-f]{6}([0-9a-f]{2})?$/i.test(e);
|
|
113
113
|
}
|
|
114
|
-
function
|
|
114
|
+
function Me(e) {
|
|
115
115
|
return /^#[0-9a-f]{3}([0-9a-f])?$/i.test(e);
|
|
116
116
|
}
|
|
117
117
|
function Ee(e) {
|
|
118
118
|
return `#${e.substring(1).split("").map((t) => `${t}${t}`).join("")}`;
|
|
119
119
|
}
|
|
120
120
|
function Ae(e) {
|
|
121
|
-
return
|
|
121
|
+
return Oe(e) && e || Me(e) && Ee(e) || F(`expected color hex string, got '${e}'`) || "";
|
|
122
122
|
}
|
|
123
123
|
function ce(e) {
|
|
124
124
|
const t = Ae(e), i = parseInt(t.substring(1, 3), 16), s = parseInt(t.substring(3, 5), 16), n = parseInt(t.substring(5, 7), 16), l = t.length === 9 ? parseInt(t.substring(7, 9), 16) / 255 : 1;
|
|
@@ -134,8 +134,8 @@ function pe(e, t, i, s) {
|
|
|
134
134
|
return `#${J(e)}${J(t)}${J(i)}${s ? J(Math.floor(s * 255)) : ""}`;
|
|
135
135
|
}
|
|
136
136
|
function Se(e, t, i = 50) {
|
|
137
|
-
const s = ce(e), n = ce(t), l = G(i, 0, 100) / 100, a = 2 * l - 1, r = s.alpha - n.alpha, d = ((a * r === -1 ? a : (a + r) / (1 + a * r)) + 1) / 2, h = 1 - d, y = G(Math.round(s.red * d + n.red * h), 0, 255), S = G(Math.round(s.green * d + n.green * h), 0, 255), g = G(Math.round(s.blue * d + n.blue * h), 0, 255),
|
|
138
|
-
return s.hasAlpha || n.hasAlpha ||
|
|
137
|
+
const s = ce(e), n = ce(t), l = G(i, 0, 100) / 100, a = 2 * l - 1, r = s.alpha - n.alpha, d = ((a * r === -1 ? a : (a + r) / (1 + a * r)) + 1) / 2, h = 1 - d, y = G(Math.round(s.red * d + n.red * h), 0, 255), S = G(Math.round(s.green * d + n.green * h), 0, 255), g = G(Math.round(s.blue * d + n.blue * h), 0, 255), V = s.alpha * l + n.alpha * (1 - l);
|
|
138
|
+
return s.hasAlpha || n.hasAlpha || V !== 1 ? pe(y, S, g, V) : pe(y, S, g);
|
|
139
139
|
}
|
|
140
140
|
function We(e, t = 15) {
|
|
141
141
|
return Se("#ffffff", e, t);
|
|
@@ -496,20 +496,20 @@ const fe = [
|
|
|
496
496
|
};
|
|
497
497
|
let se = { keys: [], values: [] }, me = null;
|
|
498
498
|
const Ne = (e, t) => {
|
|
499
|
-
var
|
|
499
|
+
var V;
|
|
500
500
|
let i = "";
|
|
501
501
|
const s = {}, { info: n, warning: l, success: a, error: r, shades: d, ...h } = e, { cssScope: y } = U;
|
|
502
|
-
for (const
|
|
503
|
-
i += `${y} .${
|
|
504
|
-
for (const
|
|
505
|
-
i += `${y} .${
|
|
502
|
+
for (const I in h)
|
|
503
|
+
i += `${y} .${I}--bg{background-color:var(--w-${I}-color)}${y} .${I}{color:var(--w-${I}-color)}`;
|
|
504
|
+
for (const I in d)
|
|
505
|
+
i += `${y} .${I}--bg{background-color:${d[I]}}${y} .${I}{color:${d[I]}}`;
|
|
506
506
|
const S = { ...h, info: n, warning: l, success: a, error: r };
|
|
507
|
-
for (const
|
|
507
|
+
for (const I in S) s[I] = ((V = S[I]) == null ? void 0 : V.color) ?? S[I];
|
|
508
508
|
if (t)
|
|
509
|
-
for (const
|
|
509
|
+
for (const I in d) s[I] = d[I];
|
|
510
510
|
let g = "";
|
|
511
|
-
return Object.entries(s).forEach(([
|
|
512
|
-
g += `--w-${
|
|
511
|
+
return Object.entries(s).forEach(([I, z]) => {
|
|
512
|
+
g += `--w-${I}-color: ${z};`;
|
|
513
513
|
}), `:root{${g}}${i}`;
|
|
514
514
|
}, De = (e, t) => {
|
|
515
515
|
let i = "";
|
|
@@ -614,7 +614,7 @@ const Ne = (e, t) => {
|
|
|
614
614
|
}, qe = ["innerHTML"];
|
|
615
615
|
function Xe(e, t, i, s, n, l) {
|
|
616
616
|
const a = $("w-alert");
|
|
617
|
-
return o(), b(
|
|
617
|
+
return o(), b(Ie, { to: ".w-app" }, [
|
|
618
618
|
T(ae, {
|
|
619
619
|
class: f(["w-notification-manager", { "w-notification-manager--left": l.conf.align === "left" }]),
|
|
620
620
|
tag: "div",
|
|
@@ -715,7 +715,7 @@ let oe = K;
|
|
|
715
715
|
const Je = (e, t, i) => {
|
|
716
716
|
const s = document.createElement("div");
|
|
717
717
|
e.appendChild(s);
|
|
718
|
-
const n =
|
|
718
|
+
const n = Ve(Te({
|
|
719
719
|
...Ge,
|
|
720
720
|
inject: ["$waveui"]
|
|
721
721
|
})).provide("$waveui", i);
|
|
@@ -790,7 +790,7 @@ const N = class N {
|
|
|
790
790
|
i.colors.light || (i.colors.light = a), i.colors.dark || (i.colors.dark = a), i.colors = { light: i.colors.light, dark: i.colors.dark };
|
|
791
791
|
}
|
|
792
792
|
let { components: s, ...n } = i;
|
|
793
|
-
n = this.$waveui.config = Ce(n), n.css.colorShades &&
|
|
793
|
+
n = this.$waveui.config = Ce(n), n.css.colorShades && ze(n);
|
|
794
794
|
const l = Z(this.$waveui);
|
|
795
795
|
t.config.globalProperties.$waveui = l, t.provide("$waveui", l), n.theme !== "auto" && (this.$waveui.colors = he(n.colors[n.theme], fe));
|
|
796
796
|
}
|
|
@@ -852,9 +852,9 @@ function st(e, t, i, s, n, l) {
|
|
|
852
852
|
disabled: d._disabled || null,
|
|
853
853
|
tabindex: -1,
|
|
854
854
|
text: "",
|
|
855
|
-
onKeypress: t[0] || (t[0] =
|
|
855
|
+
onKeypress: t[0] || (t[0] = O(() => {
|
|
856
856
|
}, ["stop"])),
|
|
857
|
-
onClick:
|
|
857
|
+
onClick: O((y) => !d._disabled && l.toggleItem(d, y), ["stop"])
|
|
858
858
|
}, null, 8, ["icon", "icon-props", "disabled", "onClick", "class"])) : p("", !0),
|
|
859
859
|
e.$slots[`item-title.${d.id || h + 1}`] ? c(e.$slots, `item-title.${d.id || h + 1}`, {
|
|
860
860
|
key: 1,
|
|
@@ -877,9 +877,9 @@ function st(e, t, i, s, n, l) {
|
|
|
877
877
|
class: f(["w-accordion__expand-icon", { "w-accordion__expand-icon--expanded": d._expanded, "w-accordion__expand-icon--rotate90": i.expandIconRotate90 }]),
|
|
878
878
|
icon: d._expanded && i.collapseIcon || i.expandIcon,
|
|
879
879
|
text: "",
|
|
880
|
-
onKeypress: t[1] || (t[1] =
|
|
880
|
+
onKeypress: t[1] || (t[1] = O(() => {
|
|
881
881
|
}, ["stop"])),
|
|
882
|
-
onClick:
|
|
882
|
+
onClick: O((y) => !d._disabled && l.toggleItem(d, y), ["stop"])
|
|
883
883
|
}, null, 8, ["icon", "onClick", "class"])) : p("", !0)
|
|
884
884
|
], 42, tt),
|
|
885
885
|
T(r, {
|
|
@@ -1136,7 +1136,7 @@ function yt(e, t, i, s, n, l) {
|
|
|
1136
1136
|
innerHTML: d[i.itemLabelKey]
|
|
1137
1137
|
}, null, 8, ct),
|
|
1138
1138
|
T(a, {
|
|
1139
|
-
onClick:
|
|
1139
|
+
onClick: O((y) => l.unselectItem(h), ["stop"]),
|
|
1140
1140
|
icon: "wi-cross",
|
|
1141
1141
|
xs: "",
|
|
1142
1142
|
text: "",
|
|
@@ -1167,7 +1167,7 @@ function yt(e, t, i, s, n, l) {
|
|
|
1167
1167
|
}, [
|
|
1168
1168
|
(o(!0), u(k, null, x(l.filteredItems, (d, h) => (o(), u("li", {
|
|
1169
1169
|
key: h,
|
|
1170
|
-
onClick:
|
|
1170
|
+
onClick: O((y) => (l.selectItem(d), e.$emit("item-click", d)), ["stop"]),
|
|
1171
1171
|
class: f({ highlighted: e.highlightedItem === d.uid })
|
|
1172
1172
|
}, [
|
|
1173
1173
|
c(e.$slots, "item", {
|
|
@@ -1434,7 +1434,7 @@ function $t(e, t, i, s, n, l) {
|
|
|
1434
1434
|
}, 8, ["name"])
|
|
1435
1435
|
]);
|
|
1436
1436
|
}
|
|
1437
|
-
const
|
|
1437
|
+
const It = {
|
|
1438
1438
|
name: "w-badge",
|
|
1439
1439
|
props: {
|
|
1440
1440
|
modelValue: { default: !0 },
|
|
@@ -1497,7 +1497,7 @@ const Vt = {
|
|
|
1497
1497
|
return this.forcedSize && `font-size: ${this.forcedSize}`;
|
|
1498
1498
|
}
|
|
1499
1499
|
}
|
|
1500
|
-
},
|
|
1500
|
+
}, Vt = /* @__PURE__ */ v(It, [["render", $t]]), Tt = ["innerHTML"];
|
|
1501
1501
|
function Lt(e, t, i, s, n, l) {
|
|
1502
1502
|
const a = $("w-icon");
|
|
1503
1503
|
return o(), u("div", {
|
|
@@ -1586,7 +1586,7 @@ const Rt = {
|
|
|
1586
1586
|
}, xt = /* @__PURE__ */ v(Rt, [["render", Lt]]), Pt = {
|
|
1587
1587
|
key: 0,
|
|
1588
1588
|
class: "w-button__loader"
|
|
1589
|
-
},
|
|
1589
|
+
}, zt = /* @__PURE__ */ w("svg", { viewBox: "0 0 40 40" }, [
|
|
1590
1590
|
/* @__PURE__ */ w("circle", {
|
|
1591
1591
|
cx: "20",
|
|
1592
1592
|
cy: "20",
|
|
@@ -1597,7 +1597,7 @@ const Rt = {
|
|
|
1597
1597
|
"stroke-linecap": "round"
|
|
1598
1598
|
})
|
|
1599
1599
|
], -1);
|
|
1600
|
-
function
|
|
1600
|
+
function Ot(e, t, i, s, n, l) {
|
|
1601
1601
|
const a = $("w-icon");
|
|
1602
1602
|
return o(), b(L(!i.disabled && i.route ? "a" : "button"), _({
|
|
1603
1603
|
class: ["w-button", l.classes],
|
|
@@ -1616,7 +1616,7 @@ function Mt(e, t, i, s, n, l) {
|
|
|
1616
1616
|
default: m(() => [
|
|
1617
1617
|
i.loading ? (o(), u("div", Pt, [
|
|
1618
1618
|
c(e.$slots, "loading", {}, () => [
|
|
1619
|
-
|
|
1619
|
+
zt
|
|
1620
1620
|
])
|
|
1621
1621
|
])) : p("", !0)
|
|
1622
1622
|
]),
|
|
@@ -1626,7 +1626,7 @@ function Mt(e, t, i, s, n, l) {
|
|
|
1626
1626
|
_: 3
|
|
1627
1627
|
}, 16, ["type", "href", "class", "disabled", "style"]);
|
|
1628
1628
|
}
|
|
1629
|
-
const
|
|
1629
|
+
const Mt = {
|
|
1630
1630
|
// Fully handle the attrs and listeners manually for the case of a router link that has both a
|
|
1631
1631
|
// route and onClick.
|
|
1632
1632
|
inheritAttrs: !1,
|
|
@@ -1727,7 +1727,7 @@ const zt = {
|
|
|
1727
1727
|
};
|
|
1728
1728
|
}
|
|
1729
1729
|
}
|
|
1730
|
-
}, Et = /* @__PURE__ */ v(
|
|
1730
|
+
}, Et = /* @__PURE__ */ v(Mt, [["render", Ot]]), At = ["innerHTML"];
|
|
1731
1731
|
function Wt(e, t, i, s, n, l) {
|
|
1732
1732
|
const a = $("button-partial");
|
|
1733
1733
|
return i.tooltip ? (o(), b(L("w-tooltip"), le(_({ key: 0 }, i.tooltipProps)), {
|
|
@@ -1894,7 +1894,7 @@ const Ft = {
|
|
|
1894
1894
|
};
|
|
1895
1895
|
}
|
|
1896
1896
|
}
|
|
1897
|
-
}, jt = /* @__PURE__ */ v(Ft, [["render", Ht]]),
|
|
1897
|
+
}, jt = /* @__PURE__ */ v(Ft, [["render", Ht]]), M = {
|
|
1898
1898
|
inject: {
|
|
1899
1899
|
// Used in each form component to determine whether to use the w-form-element wrap or not.
|
|
1900
1900
|
// So, if a form component is in a form, use the w-form-element wrap.
|
|
@@ -2016,7 +2016,7 @@ function Zt(e, t, i, s, n, l) {
|
|
|
2016
2016
|
}
|
|
2017
2017
|
const ei = {
|
|
2018
2018
|
name: "w-checkbox",
|
|
2019
|
-
mixins: [
|
|
2019
|
+
mixins: [M],
|
|
2020
2020
|
inject: {
|
|
2021
2021
|
wCheckboxes: { default: null }
|
|
2022
2022
|
},
|
|
@@ -2125,7 +2125,7 @@ function li(e, t, i, s, n, l) {
|
|
|
2125
2125
|
}
|
|
2126
2126
|
const si = {
|
|
2127
2127
|
name: "w-checkboxes",
|
|
2128
|
-
mixins: [
|
|
2128
|
+
mixins: [M],
|
|
2129
2129
|
props: {
|
|
2130
2130
|
items: { type: Array, required: !0 },
|
|
2131
2131
|
// All the possible options.
|
|
@@ -2804,7 +2804,7 @@ const _i = {
|
|
|
2804
2804
|
}
|
|
2805
2805
|
}
|
|
2806
2806
|
}, $i = /* @__PURE__ */ v(_i, [["render", Bi]]);
|
|
2807
|
-
function
|
|
2807
|
+
function Ii(e, t, i, s, n, l) {
|
|
2808
2808
|
return o(), u("form", {
|
|
2809
2809
|
class: f(["w-form", l.classes]),
|
|
2810
2810
|
onSubmit: t[0] || (t[0] = (...a) => l.onSubmit && l.onSubmit(...a)),
|
|
@@ -2814,7 +2814,7 @@ function Vi(e, t, i, s, n, l) {
|
|
|
2814
2814
|
c(e.$slots, "default")
|
|
2815
2815
|
], 34);
|
|
2816
2816
|
}
|
|
2817
|
-
const
|
|
2817
|
+
const Vi = async (e, t) => {
|
|
2818
2818
|
for (const i of e)
|
|
2819
2819
|
if (await t(i)) return !0;
|
|
2820
2820
|
return !1;
|
|
@@ -2898,7 +2898,7 @@ const Ii = async (e, t) => {
|
|
|
2898
2898
|
// message in the form element.
|
|
2899
2899
|
async checkElementValidators(e) {
|
|
2900
2900
|
let t = !1, i = "";
|
|
2901
|
-
await
|
|
2901
|
+
await Vi(e.validators, async (s) => {
|
|
2902
2902
|
const n = await (typeof s == "function" && s(e.inputValue));
|
|
2903
2903
|
return t = typeof n != "string", i = t ? "" : n, !t;
|
|
2904
2904
|
}), e.hasJustReset = !1, e.Validation.isValid = t, e.Validation.message = i;
|
|
@@ -2924,7 +2924,7 @@ const Ii = async (e, t) => {
|
|
|
2924
2924
|
(this.status === !1 && e || e === null && this.status !== null) && this.reset(), this.status = e;
|
|
2925
2925
|
}
|
|
2926
2926
|
}
|
|
2927
|
-
}, Li = /* @__PURE__ */ v(Ti, [["render",
|
|
2927
|
+
}, Li = /* @__PURE__ */ v(Ti, [["render", Ii]]);
|
|
2928
2928
|
function Ri(e, t, i, s, n, l) {
|
|
2929
2929
|
const a = $("w-transition-expand");
|
|
2930
2930
|
return o(), u("div", {
|
|
@@ -3026,7 +3026,7 @@ const xi = {
|
|
|
3026
3026
|
this.formUnregister && this.formUnregister(this);
|
|
3027
3027
|
}
|
|
3028
3028
|
}, Pi = /* @__PURE__ */ v(xi, [["render", Ri]]);
|
|
3029
|
-
function
|
|
3029
|
+
function zi(e, t, i, s, n, l) {
|
|
3030
3030
|
return o(), b(L(i.tag), {
|
|
3031
3031
|
class: f(["w-grid", l.classes])
|
|
3032
3032
|
}, {
|
|
@@ -3036,7 +3036,7 @@ function Oi(e, t, i, s, n, l) {
|
|
|
3036
3036
|
_: 3
|
|
3037
3037
|
}, 8, ["class"]);
|
|
3038
3038
|
}
|
|
3039
|
-
const
|
|
3039
|
+
const Oi = {
|
|
3040
3040
|
name: "w-grid",
|
|
3041
3041
|
props: {
|
|
3042
3042
|
tag: { type: String, default: "div" },
|
|
@@ -3080,7 +3080,7 @@ const Mi = {
|
|
|
3080
3080
|
};
|
|
3081
3081
|
}
|
|
3082
3082
|
}
|
|
3083
|
-
},
|
|
3083
|
+
}, Mi = /* @__PURE__ */ v(Oi, [["render", zi]]);
|
|
3084
3084
|
function Ei(e, t, i, s, n, l) {
|
|
3085
3085
|
return o(), b(L(i.tag || "i"), {
|
|
3086
3086
|
class: f(["w-icon", l.classes]),
|
|
@@ -3168,11 +3168,11 @@ const Ai = {
|
|
|
3168
3168
|
}, Wi = /* @__PURE__ */ v(Ai, [["render", Ei]]), Ki = {
|
|
3169
3169
|
key: 0,
|
|
3170
3170
|
class: "w-image__loader"
|
|
3171
|
-
};
|
|
3172
|
-
function
|
|
3171
|
+
}, Ni = ["innerHTML"];
|
|
3172
|
+
function Di(e, t, i, s, n, l) {
|
|
3173
3173
|
const a = $("w-progress");
|
|
3174
3174
|
return o(), b(L(l.wrapperTag), {
|
|
3175
|
-
class: f(["w-image
|
|
3175
|
+
class: f(["w-image", l.wrapperClasses]),
|
|
3176
3176
|
style: R(l.wrapperStyles)
|
|
3177
3177
|
}, {
|
|
3178
3178
|
default: m(() => [
|
|
@@ -3181,16 +3181,16 @@ function Ni(e, t, i, s, n, l) {
|
|
|
3181
3181
|
appear: ""
|
|
3182
3182
|
}, {
|
|
3183
3183
|
default: m(() => [
|
|
3184
|
-
n.loaded ? (o(), b(L(
|
|
3184
|
+
n.loaded ? (o(), b(L(l.normalized.tag), {
|
|
3185
3185
|
key: 0,
|
|
3186
|
-
class: f(["w-
|
|
3186
|
+
class: f(["w-image__image", l.imageClasses]),
|
|
3187
3187
|
style: R(l.imageStyles),
|
|
3188
|
-
src:
|
|
3188
|
+
src: l.normalized.tag === "img" ? n.computedImg.src : null
|
|
3189
3189
|
}, null, 8, ["class", "style", "src"])) : p("", !0)
|
|
3190
3190
|
]),
|
|
3191
3191
|
_: 1
|
|
3192
3192
|
}, 8, ["name"]),
|
|
3193
|
-
!i.noSpinner && n.loading ? (o(), u("
|
|
3193
|
+
!i.noSpinner && n.loading ? (o(), u("span", Ki, [
|
|
3194
3194
|
e.$slots.loading ? c(e.$slots, "loading", { key: 0 }) : (o(), b(a, _({
|
|
3195
3195
|
key: 1,
|
|
3196
3196
|
circle: "",
|
|
@@ -3205,18 +3205,31 @@ function Ni(e, t, i, s, n, l) {
|
|
|
3205
3205
|
c(e.$slots, "default")
|
|
3206
3206
|
]),
|
|
3207
3207
|
_: 3
|
|
3208
|
-
}, 8, ["class"])) : p("", !0)
|
|
3208
|
+
}, 8, ["class"])) : p("", !0),
|
|
3209
|
+
e.$slots.caption ? (o(), u("figcaption", {
|
|
3210
|
+
key: 2,
|
|
3211
|
+
class: f(["w-image__caption caption", i.captionClass])
|
|
3212
|
+
}, [
|
|
3213
|
+
c(e.$slots, "caption")
|
|
3214
|
+
], 2)) : i.caption ? (o(), u("figcaption", {
|
|
3215
|
+
key: 3,
|
|
3216
|
+
class: f(["w-image__caption caption", i.captionClass]),
|
|
3217
|
+
innerHTML: i.caption
|
|
3218
|
+
}, null, 10, Ni)) : p("", !0)
|
|
3209
3219
|
]),
|
|
3210
3220
|
_: 3
|
|
3211
3221
|
}, 8, ["class", "style"]);
|
|
3212
3222
|
}
|
|
3213
|
-
const
|
|
3223
|
+
const Hi = {
|
|
3214
3224
|
name: "w-image",
|
|
3215
3225
|
props: {
|
|
3216
3226
|
tag: { type: String, default: "span" },
|
|
3227
|
+
// span, div, figure, img.
|
|
3217
3228
|
src: { type: String },
|
|
3218
3229
|
width: { type: [Number, String] },
|
|
3219
3230
|
height: { type: [Number, String] },
|
|
3231
|
+
maxWidth: { type: [Number, String] },
|
|
3232
|
+
maxHeight: { type: [Number, String] },
|
|
3220
3233
|
ratio: { type: [Number, String] },
|
|
3221
3234
|
lazy: { type: Boolean },
|
|
3222
3235
|
absolute: { type: Boolean },
|
|
@@ -3226,50 +3239,68 @@ const Di = {
|
|
|
3226
3239
|
spinnerColor: { type: String },
|
|
3227
3240
|
fallback: { type: String },
|
|
3228
3241
|
transition: { type: String, default: "fade" },
|
|
3229
|
-
contentClass: { type: [String, Array, Object] }
|
|
3242
|
+
contentClass: { type: [String, Array, Object] },
|
|
3243
|
+
caption: { type: String },
|
|
3244
|
+
captionClass: { type: String }
|
|
3230
3245
|
},
|
|
3231
3246
|
emits: ["loading", "loaded", "error"],
|
|
3232
3247
|
data() {
|
|
3233
3248
|
return {
|
|
3234
3249
|
loading: !1,
|
|
3235
3250
|
loaded: !1,
|
|
3236
|
-
|
|
3237
|
-
|
|
3238
|
-
|
|
3239
|
-
|
|
3251
|
+
// The computed image source, and real image dimensions.
|
|
3252
|
+
computedImg: {
|
|
3253
|
+
src: "",
|
|
3254
|
+
width: 0,
|
|
3255
|
+
height: 0,
|
|
3256
|
+
ratio: 0
|
|
3257
|
+
}
|
|
3240
3258
|
};
|
|
3241
3259
|
},
|
|
3242
3260
|
computed: {
|
|
3243
|
-
|
|
3244
|
-
|
|
3261
|
+
// Normalized props.
|
|
3262
|
+
normalized() {
|
|
3263
|
+
return {
|
|
3264
|
+
width: (isNaN(this.width) ? this.width : `${this.width}px`) || null,
|
|
3265
|
+
height: (isNaN(this.height) ? this.height : `${this.height}px`) || null,
|
|
3266
|
+
maxWidth: (isNaN(this.maxWidth) ? this.maxWidth : `${this.maxWidth}px`) || null,
|
|
3267
|
+
maxHeight: (isNaN(this.maxHeight) ? this.maxHeight : `${this.maxHeight}px`) || null,
|
|
3268
|
+
ratio: parseFloat(this.ratio) || void 0,
|
|
3269
|
+
tag: this.tag === "img" || this.tag === "figure" || this.caption ? "img" : "span"
|
|
3270
|
+
};
|
|
3245
3271
|
},
|
|
3246
3272
|
wrapperTag() {
|
|
3247
|
-
return ["span", "div"].includes(this.tag) ? this.tag : "span";
|
|
3273
|
+
return this.caption || this.tag === "figure" ? "figure" : ["span", "div"].includes(this.tag) ? this.tag : "span";
|
|
3248
3274
|
},
|
|
3249
3275
|
wrapperClasses() {
|
|
3250
3276
|
return {
|
|
3251
|
-
"w-image
|
|
3252
|
-
"w-image
|
|
3253
|
-
"w-image
|
|
3277
|
+
"w-image--absolute": this.absolute,
|
|
3278
|
+
"w-image--fixed": this.fixed,
|
|
3279
|
+
"w-image--has-ratio": this.normalized.ratio
|
|
3254
3280
|
};
|
|
3255
3281
|
},
|
|
3256
3282
|
wrapperStyles() {
|
|
3257
|
-
|
|
3258
|
-
|
|
3259
|
-
|
|
3260
|
-
|
|
3283
|
+
let e = this.normalized.width;
|
|
3284
|
+
const t = this.normalized.height;
|
|
3285
|
+
let i = this.normalized.maxWidth, s = this.normalized.ratio;
|
|
3286
|
+
return s && !e && !t ? e = "100%" : !e && !t ? (e = "100%", i = this.normalized.maxWidth || `${this.computedImg.width}px`, s = s || this.computedImg.width / this.computedImg.height) : (e && !t || t && !e) && (s = s || this.computedImg.width / this.computedImg.height), {
|
|
3287
|
+
width: e,
|
|
3288
|
+
height: t,
|
|
3289
|
+
maxWidth: i,
|
|
3290
|
+
maxHeight: this.normalized.maxHeight,
|
|
3291
|
+
aspectRatio: s
|
|
3261
3292
|
};
|
|
3262
3293
|
},
|
|
3263
3294
|
imageClasses() {
|
|
3264
3295
|
return {
|
|
3265
|
-
"w-
|
|
3266
|
-
"w-
|
|
3267
|
-
"w-
|
|
3296
|
+
"w-image__image--loading": this.loading,
|
|
3297
|
+
"w-image__image--loaded": this.loaded,
|
|
3298
|
+
"w-image__image--contain": this.contain
|
|
3268
3299
|
};
|
|
3269
3300
|
},
|
|
3270
3301
|
imageStyles() {
|
|
3271
3302
|
return {
|
|
3272
|
-
"background-image": this.tag !== "img" && this.loaded ? `url('${this.
|
|
3303
|
+
"background-image": this.normalized.tag !== "img" && this.loaded ? `url('${this.computedImg.src}')` : null
|
|
3273
3304
|
};
|
|
3274
3305
|
}
|
|
3275
3306
|
},
|
|
@@ -3278,7 +3309,7 @@ const Di = {
|
|
|
3278
3309
|
if (!this.loading)
|
|
3279
3310
|
return this.loading = !0, this.loaded = !1, this.$emit("loading", e ? this.fallback : this.src), new Promise((t) => {
|
|
3280
3311
|
const i = new Image();
|
|
3281
|
-
i.onload = (s) => (
|
|
3312
|
+
i.onload = (s) => (this.computedImg.width = s.target.width, this.computedImg.height = s.target.height, this.computedImg.ratio = s.target.height / s.target.width, this.loading = !1, this.loaded = !0, this.computedImg.src = e ? this.fallback : this.src, this.$emit("loaded", this.computedImg.src), t(i)), i.onerror = (s) => {
|
|
3282
3313
|
this.$emit("error", s), this.fallback && !e ? (this.loading = !1, this.loadImage(!0)) : (this.loading = !1, this.loaded = !1);
|
|
3283
3314
|
}, i.src = e ? this.fallback : this.src;
|
|
3284
3315
|
});
|
|
@@ -3296,19 +3327,13 @@ const Di = {
|
|
|
3296
3327
|
watch: {
|
|
3297
3328
|
src() {
|
|
3298
3329
|
this.loadImage();
|
|
3299
|
-
},
|
|
3300
|
-
width(e) {
|
|
3301
|
-
this.imgWidth = e;
|
|
3302
|
-
},
|
|
3303
|
-
height(e) {
|
|
3304
|
-
this.imgHeight = e;
|
|
3305
3330
|
}
|
|
3306
3331
|
}
|
|
3307
|
-
},
|
|
3332
|
+
}, Fi = /* @__PURE__ */ v(Hi, [["render", Di]]), ji = ["name"], Ui = ["for"], qi = ["id", "type", "name", "placeholder", "step", "min", "max", "minlength", "maxlength", "readonly", "aria-readonly", "disabled", "required", "tabindex"], Xi = ["id", "name", "multiple", "disabled", "data-progress"], Yi = {
|
|
3308
3333
|
class: "w-input__no-file",
|
|
3309
3334
|
key: "no-file"
|
|
3310
|
-
},
|
|
3311
|
-
function
|
|
3335
|
+
}, Gi = ["for"], Ji = ["src"], Qi = ["for"];
|
|
3336
|
+
function Zi(e, t, i, s, n, l) {
|
|
3312
3337
|
const a = $("w-icon"), r = $("w-progress");
|
|
3313
3338
|
return o(), b(L(e.formRegister ? "w-form-element" : "div"), _({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: n.inputValue, disabled: e.isDisabled, readonly: e.isReadonly, isFocused: n.isFocused }, {
|
|
3314
3339
|
valid: e.valid,
|
|
@@ -3326,7 +3351,7 @@ function Qi(e, t, i, s, n, l) {
|
|
|
3326
3351
|
type: "hidden",
|
|
3327
3352
|
name: e.name || null,
|
|
3328
3353
|
"onUpdate:modelValue": t[0] || (t[0] = (d) => n.inputValue = d)
|
|
3329
|
-
}, null, 8,
|
|
3354
|
+
}, null, 8, ji)), [
|
|
3330
3355
|
[ve, n.inputValue]
|
|
3331
3356
|
]) : (o(), u(k, { key: 1 }, [
|
|
3332
3357
|
i.labelPosition === "left" ? (o(), u(k, { key: 0 }, [
|
|
@@ -3338,7 +3363,7 @@ function Qi(e, t, i, s, n, l) {
|
|
|
3338
3363
|
c(e.$slots, "default", {}, () => [
|
|
3339
3364
|
B(C(i.label), 1)
|
|
3340
3365
|
])
|
|
3341
|
-
], 10,
|
|
3366
|
+
], 10, Ui)) : p("", !0)
|
|
3342
3367
|
], 64)) : p("", !0),
|
|
3343
3368
|
w("div", {
|
|
3344
3369
|
class: f(["w-input__input-wrap", l.inputWrapClasses])
|
|
@@ -3381,7 +3406,7 @@ function Qi(e, t, i, s, n, l) {
|
|
|
3381
3406
|
disabled: e.isDisabled || null,
|
|
3382
3407
|
required: e.required || null,
|
|
3383
3408
|
tabindex: e.tabindex || null
|
|
3384
|
-
}, l.attrs), null, 16,
|
|
3409
|
+
}, l.attrs), null, 16, qi)), [
|
|
3385
3410
|
[Re, n.inputValue]
|
|
3386
3411
|
]) : (o(), u(k, { key: 1 }, [
|
|
3387
3412
|
w("input", _({
|
|
@@ -3397,7 +3422,7 @@ function Qi(e, t, i, s, n, l) {
|
|
|
3397
3422
|
disabled: e.isDisabled || null,
|
|
3398
3423
|
"data-progress": l.overallFilesProgress
|
|
3399
3424
|
/* Needed to emit the overallProgress. */
|
|
3400
|
-
}), null, 16,
|
|
3425
|
+
}), null, 16, Xi),
|
|
3401
3426
|
T(ae, {
|
|
3402
3427
|
class: "w-input__input w-input__input--file",
|
|
3403
3428
|
tag: "label",
|
|
@@ -3405,7 +3430,7 @@ function Qi(e, t, i, s, n, l) {
|
|
|
3405
3430
|
for: `w-input--${e._.uid}`
|
|
3406
3431
|
}, {
|
|
3407
3432
|
default: m(() => [
|
|
3408
|
-
!n.inputFiles.length && n.isFocused ? (o(), u("span",
|
|
3433
|
+
!n.inputFiles.length && n.isFocused ? (o(), u("span", Yi, [
|
|
3409
3434
|
c(e.$slots, "no-file", {}, () => [
|
|
3410
3435
|
e.$slots["no-file"] === void 0 ? (o(), u(k, { key: 0 }, [
|
|
3411
3436
|
B("No file")
|
|
@@ -3474,12 +3499,12 @@ function Qi(e, t, i, s, n, l) {
|
|
|
3474
3499
|
key: `${h}b`,
|
|
3475
3500
|
src: d.preview,
|
|
3476
3501
|
alt: ""
|
|
3477
|
-
}, null, 8,
|
|
3502
|
+
}, null, 8, Ji)) : (o(), u("i", {
|
|
3478
3503
|
class: f(["w-icon w-input__file-preview primary size--md", i.preview && typeof i.preview == "string" ? i.preview : "wi-file"]),
|
|
3479
3504
|
key: `${h}c`
|
|
3480
3505
|
}, null, 2))
|
|
3481
3506
|
], 64))), 256))
|
|
3482
|
-
], 8,
|
|
3507
|
+
], 8, Gi)) : p("", !0),
|
|
3483
3508
|
i.labelPosition === "right" ? (o(), u(k, { key: 2 }, [
|
|
3484
3509
|
e.$slots.default || i.label ? (o(), u("label", {
|
|
3485
3510
|
key: 0,
|
|
@@ -3489,16 +3514,16 @@ function Qi(e, t, i, s, n, l) {
|
|
|
3489
3514
|
c(e.$slots, "default", {}, () => [
|
|
3490
3515
|
B(C(i.label), 1)
|
|
3491
3516
|
])
|
|
3492
|
-
], 10,
|
|
3517
|
+
], 10, Qi)) : p("", !0)
|
|
3493
3518
|
], 64)) : p("", !0)
|
|
3494
3519
|
], 64))
|
|
3495
3520
|
]),
|
|
3496
3521
|
_: 3
|
|
3497
3522
|
}, 16, ["valid", "wrap", "class", "style"]);
|
|
3498
3523
|
}
|
|
3499
|
-
const
|
|
3524
|
+
const el = {
|
|
3500
3525
|
name: "w-input",
|
|
3501
|
-
mixins: [
|
|
3526
|
+
mixins: [M],
|
|
3502
3527
|
inheritAttrs: !1,
|
|
3503
3528
|
// The attrs should only be added to the input not the wrapper.
|
|
3504
3529
|
props: {
|
|
@@ -3681,8 +3706,8 @@ const Zi = {
|
|
|
3681
3706
|
this.inputValue = e, !e && e !== 0 && (this.isAutofilled = !1, this.inputFiles = []);
|
|
3682
3707
|
}
|
|
3683
3708
|
}
|
|
3684
|
-
},
|
|
3685
|
-
function
|
|
3709
|
+
}, tl = /* @__PURE__ */ v(el, [["render", Zi]]);
|
|
3710
|
+
function il(e, t, i, s, n, l) {
|
|
3686
3711
|
const a = $("w-icon"), r = $("w-list", !0);
|
|
3687
3712
|
return o(), u("ul", {
|
|
3688
3713
|
class: f(["w-list", l.classes])
|
|
@@ -3769,7 +3794,7 @@ function tl(e, t, i, s, n, l) {
|
|
|
3769
3794
|
], 2))), 128))
|
|
3770
3795
|
], 2);
|
|
3771
3796
|
}
|
|
3772
|
-
const
|
|
3797
|
+
const ll = {
|
|
3773
3798
|
name: "w-list",
|
|
3774
3799
|
props: {
|
|
3775
3800
|
items: { type: [Array, Number], required: !0 },
|
|
@@ -3963,7 +3988,7 @@ const il = {
|
|
|
3963
3988
|
}
|
|
3964
3989
|
}
|
|
3965
3990
|
}
|
|
3966
|
-
},
|
|
3991
|
+
}, sl = /* @__PURE__ */ v(ll, [["render", il]]), Be = {
|
|
3967
3992
|
props: {
|
|
3968
3993
|
// Position.
|
|
3969
3994
|
appendTo: { type: [String, Boolean, Object] },
|
|
@@ -4140,7 +4165,7 @@ const il = {
|
|
|
4140
4165
|
}
|
|
4141
4166
|
}
|
|
4142
4167
|
};
|
|
4143
|
-
function
|
|
4168
|
+
function ol(e, t, i, s, n, l) {
|
|
4144
4169
|
const a = $("w-card"), r = $("w-overlay");
|
|
4145
4170
|
return o(), u(k, null, [
|
|
4146
4171
|
c(e.$slots, "activator", { on: l.activatorEventHandlers }),
|
|
@@ -4212,7 +4237,7 @@ function sl(e, t, i, s, n, l) {
|
|
|
4212
4237
|
}), null, 16, ["model-value", "persistent", "class", "z-index"])) : p("", !0)
|
|
4213
4238
|
], 64);
|
|
4214
4239
|
}
|
|
4215
|
-
const
|
|
4240
|
+
const al = {
|
|
4216
4241
|
name: "w-menu",
|
|
4217
4242
|
mixins: [Be],
|
|
4218
4243
|
inheritAttrs: !1,
|
|
@@ -4385,8 +4410,8 @@ const ol = {
|
|
|
4385
4410
|
}
|
|
4386
4411
|
}
|
|
4387
4412
|
// watch, mounted & beforeDestroy hooks are set in the detachable.js mixin.
|
|
4388
|
-
},
|
|
4389
|
-
function
|
|
4413
|
+
}, nl = /* @__PURE__ */ v(al, [["render", ol]]);
|
|
4414
|
+
function rl(e, t, i, s, n, l) {
|
|
4390
4415
|
const a = $("w-alert");
|
|
4391
4416
|
return o(), b(P, {
|
|
4392
4417
|
name: l.transitionName,
|
|
@@ -4414,7 +4439,7 @@ function nl(e, t, i, s, n, l) {
|
|
|
4414
4439
|
_: 3
|
|
4415
4440
|
}, 8, ["name"]);
|
|
4416
4441
|
}
|
|
4417
|
-
const
|
|
4442
|
+
const dl = {
|
|
4418
4443
|
name: "w-notification",
|
|
4419
4444
|
props: {
|
|
4420
4445
|
// Notification props.
|
|
@@ -4537,8 +4562,8 @@ const rl = {
|
|
|
4537
4562
|
clearTimeout(this.timeoutId), this.show = e, e && this.timeoutVal && this.countdown();
|
|
4538
4563
|
}
|
|
4539
4564
|
}
|
|
4540
|
-
},
|
|
4541
|
-
function
|
|
4565
|
+
}, ul = /* @__PURE__ */ v(dl, [["render", rl]]);
|
|
4566
|
+
function hl(e, t, i, s, n, l) {
|
|
4542
4567
|
const a = ke("focus");
|
|
4543
4568
|
return o(), b(P, {
|
|
4544
4569
|
name: "fade",
|
|
@@ -4551,7 +4576,7 @@ function ul(e, t, i, s, n, l) {
|
|
|
4551
4576
|
class: f(["w-overlay", l.classes]),
|
|
4552
4577
|
ref: "overlay",
|
|
4553
4578
|
style: R(i.modelValue && l.styles || null),
|
|
4554
|
-
onKeydown: t[0] || (t[0] = E(
|
|
4579
|
+
onKeydown: t[0] || (t[0] = E(O((...r) => l.onClick && l.onClick(...r), ["stop"]), ["escape"])),
|
|
4555
4580
|
onClick: t[1] || (t[1] = (...r) => l.onClick && l.onClick(...r)),
|
|
4556
4581
|
tabindex: "0"
|
|
4557
4582
|
}, [
|
|
@@ -4564,7 +4589,7 @@ function ul(e, t, i, s, n, l) {
|
|
|
4564
4589
|
_: 3
|
|
4565
4590
|
}, 8, ["onAfterLeave"]);
|
|
4566
4591
|
}
|
|
4567
|
-
const
|
|
4592
|
+
const cl = {
|
|
4568
4593
|
name: "w-overlay",
|
|
4569
4594
|
props: {
|
|
4570
4595
|
modelValue: {},
|
|
@@ -4622,17 +4647,17 @@ const hl = {
|
|
|
4622
4647
|
e && (this.showOverlay = !0);
|
|
4623
4648
|
}
|
|
4624
4649
|
}
|
|
4625
|
-
},
|
|
4626
|
-
function
|
|
4627
|
-
return o(), u("div",
|
|
4650
|
+
}, pl = /* @__PURE__ */ v(cl, [["render", hl]]), fl = { class: "w-parallax" };
|
|
4651
|
+
function ml(e, t, i, s, n, l) {
|
|
4652
|
+
return o(), u("div", fl);
|
|
4628
4653
|
}
|
|
4629
|
-
const
|
|
4654
|
+
const gl = {
|
|
4630
4655
|
name: "w-parallax",
|
|
4631
4656
|
props: {},
|
|
4632
4657
|
emits: [],
|
|
4633
4658
|
data: () => ({})
|
|
4634
|
-
},
|
|
4635
|
-
function
|
|
4659
|
+
}, bl = /* @__PURE__ */ v(gl, [["render", ml]]), yl = ["viewBox"], wl = ["cx", "cy", "r", "stroke-dasharray", "stroke-width"], kl = ["cx", "cy", "r", "stroke-width", "stroke-linecap", "stroke-dasharray"];
|
|
4660
|
+
function vl(e, t, i, s, n, l) {
|
|
4636
4661
|
return o(), u("div", {
|
|
4637
4662
|
class: f(["w-progress", l.classes]),
|
|
4638
4663
|
style: R(l.styles)
|
|
@@ -4650,7 +4675,7 @@ function kl(e, t, i, s, n, l) {
|
|
|
4650
4675
|
fill: "transparent",
|
|
4651
4676
|
"stroke-dasharray": e.circleCircumference,
|
|
4652
4677
|
"stroke-width": i.stroke
|
|
4653
|
-
}, null, 10,
|
|
4678
|
+
}, null, 10, wl)) : p("", !0),
|
|
4654
4679
|
w("circle", {
|
|
4655
4680
|
class: "w-progress__progress",
|
|
4656
4681
|
cx: l.circleCenter,
|
|
@@ -4661,8 +4686,8 @@ function kl(e, t, i, s, n, l) {
|
|
|
4661
4686
|
"stroke-linecap": i.roundCap && "round",
|
|
4662
4687
|
"stroke-dasharray": e.circleCircumference,
|
|
4663
4688
|
style: R(`stroke-dashoffset: ${(1 - l.progressValue / 100) * e.circleCircumference}`)
|
|
4664
|
-
}, null, 12,
|
|
4665
|
-
], 8,
|
|
4689
|
+
}, null, 12, kl)
|
|
4690
|
+
], 8, yl)) : (o(), u("div", {
|
|
4666
4691
|
key: 0,
|
|
4667
4692
|
class: f(["w-progress__progress", { full: l.progressValue === 100 }]),
|
|
4668
4693
|
style: R(`width: ${l.progressValue}%`)
|
|
@@ -4677,7 +4702,7 @@ function kl(e, t, i, s, n, l) {
|
|
|
4677
4702
|
], 2)) : p("", !0)
|
|
4678
4703
|
], 6);
|
|
4679
4704
|
}
|
|
4680
|
-
const Q = 40,
|
|
4705
|
+
const Q = 40, Cl = Q / 2, Sl = Math.round(Q * 3.14 * 100) / 100, Bl = {
|
|
4681
4706
|
name: "w-progress",
|
|
4682
4707
|
props: {
|
|
4683
4708
|
modelValue: { type: [Number, String, Boolean], default: -1 },
|
|
@@ -4705,8 +4730,8 @@ const Q = 40, vl = Q / 2, Cl = Math.round(Q * 3.14 * 100) / 100, Sl = {
|
|
|
4705
4730
|
emits: [],
|
|
4706
4731
|
data: () => ({
|
|
4707
4732
|
circleSize: Q,
|
|
4708
|
-
circleRadius:
|
|
4709
|
-
circleCircumference:
|
|
4733
|
+
circleRadius: Cl,
|
|
4734
|
+
circleCircumference: Sl
|
|
4710
4735
|
}),
|
|
4711
4736
|
computed: {
|
|
4712
4737
|
progressValue() {
|
|
@@ -4746,8 +4771,8 @@ const Q = 40, vl = Q / 2, Cl = Math.round(Q * 3.14 * 100) / 100, Sl = {
|
|
|
4746
4771
|
};
|
|
4747
4772
|
}
|
|
4748
4773
|
}
|
|
4749
|
-
},
|
|
4750
|
-
function
|
|
4774
|
+
}, _l = /* @__PURE__ */ v(Bl, [["render", vl]]), $l = ["id", "name", "checked", "disabled", "required", "tabindex", "aria-checked"], Il = ["for"], Vl = ["for", "innerHTML"], Tl = ["for"], Ll = ["for", "innerHTML"];
|
|
4775
|
+
function Rl(e, t, i, s, n, l) {
|
|
4751
4776
|
return o(), b(L(e.formRegister && !l.wRadios ? "w-form-element" : "div"), _({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: e.inputValue, disabled: e.isDisabled, readonly: e.isReadonly }, {
|
|
4752
4777
|
valid: e.valid,
|
|
4753
4778
|
"onUpdate:valid": t[3] || (t[3] = (a) => e.valid = a),
|
|
@@ -4770,7 +4795,7 @@ function Ll(e, t, i, s, n, l) {
|
|
|
4770
4795
|
onChange: t[1] || (t[1] = (a) => l.onInput(a)),
|
|
4771
4796
|
"aria-checked": e.inputValue || "false",
|
|
4772
4797
|
role: "radio"
|
|
4773
|
-
}, null, 40,
|
|
4798
|
+
}, null, 40, $l),
|
|
4774
4799
|
l.hasLabel && i.labelOnLeft ? (o(), u(k, { key: 0 }, [
|
|
4775
4800
|
e.$slots.default ? (o(), u("label", {
|
|
4776
4801
|
key: 0,
|
|
@@ -4780,7 +4805,7 @@ function Ll(e, t, i, s, n, l) {
|
|
|
4780
4805
|
c(e.$slots, "default", {}, () => [
|
|
4781
4806
|
B(C(i.label), 1)
|
|
4782
4807
|
])
|
|
4783
|
-
], 10,
|
|
4808
|
+
], 10, Il)) : i.label ? (o(), u("label", {
|
|
4784
4809
|
key: 1,
|
|
4785
4810
|
class: f(["w-radio__label w-form-el-shakable pr2", e.labelClasses]),
|
|
4786
4811
|
for: `w-radio--${e._.uid}`,
|
|
@@ -4802,20 +4827,20 @@ function Ll(e, t, i, s, n, l) {
|
|
|
4802
4827
|
c(e.$slots, "default", {}, () => [
|
|
4803
4828
|
B(C(i.label), 1)
|
|
4804
4829
|
])
|
|
4805
|
-
], 10,
|
|
4830
|
+
], 10, Tl)) : i.label ? (o(), u("label", {
|
|
4806
4831
|
key: 1,
|
|
4807
4832
|
class: f(["w-radio__label w-form-el-shakable pl2", e.labelClasses]),
|
|
4808
4833
|
for: `w-radio--${e._.uid}`,
|
|
4809
4834
|
innerHTML: i.label
|
|
4810
|
-
}, null, 10,
|
|
4835
|
+
}, null, 10, Ll)) : p("", !0)
|
|
4811
4836
|
], 64)) : p("", !0)
|
|
4812
4837
|
]),
|
|
4813
4838
|
_: 3
|
|
4814
4839
|
}, 16, ["valid", "class"]);
|
|
4815
4840
|
}
|
|
4816
|
-
const
|
|
4841
|
+
const xl = {
|
|
4817
4842
|
name: "w-radio",
|
|
4818
|
-
mixins: [
|
|
4843
|
+
mixins: [M],
|
|
4819
4844
|
inject: { wRadios: { default: null } },
|
|
4820
4845
|
props: {
|
|
4821
4846
|
modelValue: { default: !1 },
|
|
@@ -4878,7 +4903,7 @@ const Rl = {
|
|
|
4878
4903
|
this.toggleFromOutside();
|
|
4879
4904
|
}
|
|
4880
4905
|
}
|
|
4881
|
-
},
|
|
4906
|
+
}, Pl = /* @__PURE__ */ v(xl, [["render", Rl]]), zl = ["innerHTML"];
|
|
4882
4907
|
function Ol(e, t, i, s, n, l) {
|
|
4883
4908
|
const a = $("w-radio");
|
|
4884
4909
|
return o(), b(L(e.formRegister ? "w-form-element" : "div"), _({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: e.inputValue, disabled: e.isDisabled }, {
|
|
@@ -4914,7 +4939,7 @@ function Ol(e, t, i, s, n, l) {
|
|
|
4914
4939
|
}) : r.label ? (o(), u("div", {
|
|
4915
4940
|
key: 1,
|
|
4916
4941
|
innerHTML: r.label
|
|
4917
|
-
}, null, 8,
|
|
4942
|
+
}, null, 8, zl)) : p("", !0)
|
|
4918
4943
|
]),
|
|
4919
4944
|
_: 2
|
|
4920
4945
|
}, 1040, ["model-value", "onUpdate:modelValue", "name", "disabled", "readonly", "class"]))), 128))
|
|
@@ -4924,7 +4949,7 @@ function Ol(e, t, i, s, n, l) {
|
|
|
4924
4949
|
}
|
|
4925
4950
|
const Ml = {
|
|
4926
4951
|
name: "w-radios",
|
|
4927
|
-
mixins: [
|
|
4952
|
+
mixins: [M],
|
|
4928
4953
|
props: {
|
|
4929
4954
|
items: { type: Array, required: !0 },
|
|
4930
4955
|
// All the possible options.
|
|
@@ -4975,8 +5000,8 @@ const Ml = {
|
|
|
4975
5000
|
return this.items[e._index];
|
|
4976
5001
|
}
|
|
4977
5002
|
}
|
|
4978
|
-
},
|
|
4979
|
-
function
|
|
5003
|
+
}, El = /* @__PURE__ */ v(Ml, [["render", Ol]]), Al = ["id", "name", "value"], Wl = ["disabled", "onMouseenter", "onClick", "tabindex"];
|
|
5004
|
+
function Kl(e, t, i, s, n, l) {
|
|
4980
5005
|
return o(), b(L(e.formRegister ? "w-form-element" : "div"), _({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: n.rating, disabled: e.isDisabled, readonly: e.isReadonly }, {
|
|
4981
5006
|
valid: e.valid,
|
|
4982
5007
|
"onUpdate:valid": t[4] || (t[4] = (a) => e.valid = a),
|
|
@@ -4991,7 +5016,7 @@ function Wl(e, t, i, s, n, l) {
|
|
|
4991
5016
|
name: e.inputName,
|
|
4992
5017
|
type: "hidden",
|
|
4993
5018
|
value: n.rating
|
|
4994
|
-
}, null, 8,
|
|
5019
|
+
}, null, 8, Al),
|
|
4995
5020
|
(o(!0), u(k, null, x(i.max, (a) => (o(), u(k, { key: a }, [
|
|
4996
5021
|
e.$slots.item ? c(e.$slots, "item", {
|
|
4997
5022
|
key: 0,
|
|
@@ -5016,15 +5041,15 @@ function Wl(e, t, i, s, n, l) {
|
|
|
5016
5041
|
"aria-hidden": "true",
|
|
5017
5042
|
style: R(l.halfStarStyle)
|
|
5018
5043
|
}, null, 6)) : p("", !0)
|
|
5019
|
-
], 42,
|
|
5044
|
+
], 42, Wl)
|
|
5020
5045
|
], 64))), 128))
|
|
5021
5046
|
]),
|
|
5022
5047
|
_: 3
|
|
5023
5048
|
}, 16, ["valid", "class"]);
|
|
5024
5049
|
}
|
|
5025
|
-
const
|
|
5050
|
+
const Nl = {
|
|
5026
5051
|
name: "w-rating",
|
|
5027
|
-
mixins: [
|
|
5052
|
+
mixins: [M],
|
|
5028
5053
|
props: {
|
|
5029
5054
|
modelValue: {},
|
|
5030
5055
|
max: { type: [Number, String], default: 5 },
|
|
@@ -5116,8 +5141,8 @@ const Kl = {
|
|
|
5116
5141
|
this.rating = parseFloat(e);
|
|
5117
5142
|
}
|
|
5118
5143
|
}
|
|
5119
|
-
},
|
|
5120
|
-
function
|
|
5144
|
+
}, Dl = /* @__PURE__ */ v(Nl, [["render", Kl]]);
|
|
5145
|
+
function Hl(e, t, i, s, n, l) {
|
|
5121
5146
|
return o(), u(k, null, [
|
|
5122
5147
|
w("div", _({
|
|
5123
5148
|
class: ["w-scrollable", l.scrollableClasses],
|
|
@@ -5141,7 +5166,7 @@ function Dl(e, t, i, s, n, l) {
|
|
|
5141
5166
|
], 34)
|
|
5142
5167
|
], 64);
|
|
5143
5168
|
}
|
|
5144
|
-
const
|
|
5169
|
+
const Fl = {
|
|
5145
5170
|
h: {
|
|
5146
5171
|
direction: "horizontal",
|
|
5147
5172
|
topOrLeft: "left",
|
|
@@ -5164,7 +5189,7 @@ const Hl = {
|
|
|
5164
5189
|
deltaXorY: "deltaY",
|
|
5165
5190
|
scrollTopOrLeft: "scrollTop"
|
|
5166
5191
|
}
|
|
5167
|
-
},
|
|
5192
|
+
}, jl = {
|
|
5168
5193
|
name: "w-scrollable",
|
|
5169
5194
|
props: {
|
|
5170
5195
|
color: { type: String, default: "primary" },
|
|
@@ -5188,7 +5213,7 @@ const Hl = {
|
|
|
5188
5213
|
return this.mounted ? (console.log("💂♂️", (e = this.$refs.scrollable) == null ? void 0 : e.scrollWidth, (t = this.$refs.scrollable) == null ? void 0 : t.offsetWidth), this.width && !this.height || ((i = this.$refs.scrollable) == null ? void 0 : i.scrollWidth) > ((s = this.$refs.scrollable) == null ? void 0 : s.offsetWidth)) : !1;
|
|
5189
5214
|
},
|
|
5190
5215
|
m() {
|
|
5191
|
-
return
|
|
5216
|
+
return Fl[this.isHorizontal ? "h" : "v"];
|
|
5192
5217
|
},
|
|
5193
5218
|
scrollableClasses() {
|
|
5194
5219
|
return {
|
|
@@ -5257,11 +5282,11 @@ const Hl = {
|
|
|
5257
5282
|
const { top: e, left: t } = this.$refs.scrollable.getBoundingClientRect();
|
|
5258
5283
|
this.scrollable.top = e, this.scrollable.left = t, this.$el.parentNode.style.position = "relative", this.$el.parentNode.style.padding = 0, window.addEventListener("resize", this.onResize);
|
|
5259
5284
|
}
|
|
5260
|
-
},
|
|
5285
|
+
}, Ul = /* @__PURE__ */ v(jl, [["render", Hl]]), ql = ["aria-expanded", "aria-owns", "aria-activedescendant"], Xl = {
|
|
5261
5286
|
key: 0,
|
|
5262
5287
|
class: "w-select__selection-slot"
|
|
5263
|
-
},
|
|
5264
|
-
function
|
|
5288
|
+
}, Yl = ["innerHTML"], Gl = ["value", "name"];
|
|
5289
|
+
function Jl(e, t, i, s, n, l) {
|
|
5265
5290
|
const a = $("w-icon"), r = $("w-list"), d = $("w-menu");
|
|
5266
5291
|
return o(), b(L(e.formRegister ? "w-form-element" : "div"), _({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: l.selectionString, disabled: e.isDisabled, readonly: e.isReadonly, isFocused: e.isFocused }, {
|
|
5267
5292
|
valid: e.valid,
|
|
@@ -5316,7 +5341,7 @@ function Gl(e, t, i, s, n, l) {
|
|
|
5316
5341
|
_: 1
|
|
5317
5342
|
})) : p("", !0)
|
|
5318
5343
|
]),
|
|
5319
|
-
e.$slots.selection ? (o(), u("div",
|
|
5344
|
+
e.$slots.selection ? (o(), u("div", Xl, [
|
|
5320
5345
|
c(e.$slots, "selection", {
|
|
5321
5346
|
item: i.multiple ? e.inputValue : e.inputValue[0]
|
|
5322
5347
|
})
|
|
@@ -5327,13 +5352,13 @@ function Gl(e, t, i, s, n, l) {
|
|
|
5327
5352
|
onFocus: t[2] || (t[2] = (h) => !e.isDisabled && !e.isReadonly && l.onFocus(h)),
|
|
5328
5353
|
onBlur: t[3] || (t[3] = (...h) => l.onBlur && l.onBlur(...h)),
|
|
5329
5354
|
onKeydown: t[4] || (t[4] = (h) => !e.isDisabled && !e.isReadonly && l.onKeydown(h))
|
|
5330
|
-
}, l.selectionAttributes, { innerHTML: l.selectionHtml }), null, 16,
|
|
5355
|
+
}, l.selectionAttributes, { innerHTML: l.selectionHtml }), null, 16, Yl),
|
|
5331
5356
|
(o(!0), u(k, null, x(e.inputValue.length ? e.inputValue : [{}], (h, y) => (o(), u("input", {
|
|
5332
5357
|
key: y,
|
|
5333
5358
|
type: "hidden",
|
|
5334
5359
|
value: h.value === void 0 ? "" : h.value.toString(),
|
|
5335
5360
|
name: e.inputName + (i.multiple ? "[]" : "")
|
|
5336
|
-
}, null, 8,
|
|
5361
|
+
}, null, 8, Gl))), 128)),
|
|
5337
5362
|
i.labelPosition === "inside" && l.showLabelInside ? (o(), u(k, { key: 1 }, [
|
|
5338
5363
|
e.$slots.default || i.label ? (o(), u("label", {
|
|
5339
5364
|
key: 0,
|
|
@@ -5357,7 +5382,7 @@ function Gl(e, t, i, s, n, l) {
|
|
|
5357
5382
|
_: 1
|
|
5358
5383
|
})) : p("", !0)
|
|
5359
5384
|
])
|
|
5360
|
-
], 10,
|
|
5385
|
+
], 10, ql)
|
|
5361
5386
|
]),
|
|
5362
5387
|
default: m(() => [
|
|
5363
5388
|
T(r, {
|
|
@@ -5419,9 +5444,9 @@ function Gl(e, t, i, s, n, l) {
|
|
|
5419
5444
|
_: 3
|
|
5420
5445
|
}, 16, ["valid", "onReset", "wrap", "class"]);
|
|
5421
5446
|
}
|
|
5422
|
-
const
|
|
5447
|
+
const Ql = {
|
|
5423
5448
|
name: "w-select",
|
|
5424
|
-
mixins: [
|
|
5449
|
+
mixins: [M],
|
|
5425
5450
|
props: {
|
|
5426
5451
|
items: { type: Array, required: !0 },
|
|
5427
5452
|
modelValue: {},
|
|
@@ -5649,11 +5674,11 @@ const Jl = {
|
|
|
5649
5674
|
this.inputValue = this.checkSelection(this.modelValue);
|
|
5650
5675
|
}
|
|
5651
5676
|
}
|
|
5652
|
-
},
|
|
5677
|
+
}, Zl = /* @__PURE__ */ v(Ql, [["render", Jl]]), es = ["for"], ts = ["for", "innerHTML"], is = { class: "w-slider__track-wrap" }, ls = ["aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-readonly"], ss = ["id", "name", "model-value", "disabled", "readonly", "aria-readonly", "tabindex"], os = ["for"], as = { key: 0 }, ns = {
|
|
5653
5678
|
key: 0,
|
|
5654
5679
|
class: "w-slider__step-labels"
|
|
5655
|
-
},
|
|
5656
|
-
function
|
|
5680
|
+
}, rs = ["onClick"], ds = ["for"], us = ["for", "innerHTML"];
|
|
5681
|
+
function hs(e, t, i, s, n, l) {
|
|
5657
5682
|
return o(), b(L(e.formRegister ? "w-form-element" : "div"), _({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: e.rangeValueScaled, disabled: e.isDisabled, readonly: e.isReadonly }, {
|
|
5658
5683
|
valid: e.valid,
|
|
5659
5684
|
"onUpdate:valid": t[8] || (t[8] = (a) => e.valid = a),
|
|
@@ -5670,13 +5695,13 @@ function us(e, t, i, s, n, l) {
|
|
|
5670
5695
|
for: `button--${e._.uid}`
|
|
5671
5696
|
}, [
|
|
5672
5697
|
c(e.$slots, "label-left")
|
|
5673
|
-
], 10,
|
|
5698
|
+
], 10, es)) : i.labelLeft ? (o(), u("label", {
|
|
5674
5699
|
key: 1,
|
|
5675
5700
|
class: f(["w-slider__label w-slider__label--left w-form-el-shakable", e.labelClasses]),
|
|
5676
5701
|
for: `button--${e._.uid}`,
|
|
5677
5702
|
innerHTML: i.labelLeft
|
|
5678
|
-
}, null, 10,
|
|
5679
|
-
w("div",
|
|
5703
|
+
}, null, 10, ts)) : p("", !0),
|
|
5704
|
+
w("div", is, [
|
|
5680
5705
|
w("div", {
|
|
5681
5706
|
class: f(["w-slider__track", l.trackClasses]),
|
|
5682
5707
|
ref: "track",
|
|
@@ -5713,15 +5738,15 @@ function us(e, t, i, s, n, l) {
|
|
|
5713
5738
|
t[1] || (t[1] = E((a) => l.onKeyDown(a, 1), ["right"]))
|
|
5714
5739
|
],
|
|
5715
5740
|
onFocus: t[2] || (t[2] = (a) => e.$emit("focus", a)),
|
|
5716
|
-
onClick: t[3] || (t[3] =
|
|
5741
|
+
onClick: t[3] || (t[3] = O(() => {
|
|
5717
5742
|
}, ["prevent"]))
|
|
5718
|
-
}, null, 42,
|
|
5743
|
+
}, null, 42, ss),
|
|
5719
5744
|
i.thumbLabel ? (o(), u("label", {
|
|
5720
5745
|
key: 0,
|
|
5721
5746
|
class: f(["w-slider__thumb-label", l.thumbClasses]),
|
|
5722
5747
|
for: `button--${e._.uid}`
|
|
5723
5748
|
}, [
|
|
5724
|
-
i.thumbLabel === "droplet" ? (o(), u("div",
|
|
5749
|
+
i.thumbLabel === "droplet" ? (o(), u("div", as, [
|
|
5725
5750
|
c(e.$slots, "label", { value: e.rangeValueScaled }, () => [
|
|
5726
5751
|
B(C(~~e.rangeValueScaled), 1)
|
|
5727
5752
|
])
|
|
@@ -5731,10 +5756,10 @@ function us(e, t, i, s, n, l) {
|
|
|
5731
5756
|
}, () => [
|
|
5732
5757
|
B(C(~~e.rangeValueScaled), 1)
|
|
5733
5758
|
])
|
|
5734
|
-
], 10,
|
|
5759
|
+
], 10, os)) : p("", !0)
|
|
5735
5760
|
], 4)
|
|
5736
|
-
], 42,
|
|
5737
|
-
i.stepLabels && i.step ? (o(), u("div",
|
|
5761
|
+
], 42, ls),
|
|
5762
|
+
i.stepLabels && i.step ? (o(), u("div", ns, [
|
|
5738
5763
|
w("div", {
|
|
5739
5764
|
class: "w-slider__step-label",
|
|
5740
5765
|
onClick: t[6] || (t[6] = (a) => l.onStepLabelClick(0))
|
|
@@ -5744,7 +5769,7 @@ function us(e, t, i, s, n, l) {
|
|
|
5744
5769
|
key: a,
|
|
5745
5770
|
onClick: (r) => l.onStepLabelClick(a * (100 / l.numberOfSteps)),
|
|
5746
5771
|
style: R(`left: ${a * (100 / l.numberOfSteps)}%`)
|
|
5747
|
-
}, C(l.percentToScaled(a * (100 / l.numberOfSteps))), 13,
|
|
5772
|
+
}, C(l.percentToScaled(a * (100 / l.numberOfSteps))), 13, rs))), 128)),
|
|
5748
5773
|
~~l.numberOfSteps !== l.numberOfSteps ? (o(), u("div", {
|
|
5749
5774
|
key: 0,
|
|
5750
5775
|
class: "w-slider__step-label",
|
|
@@ -5759,19 +5784,19 @@ function us(e, t, i, s, n, l) {
|
|
|
5759
5784
|
for: `button--${e._.uid}`
|
|
5760
5785
|
}, [
|
|
5761
5786
|
c(e.$slots, "label-right")
|
|
5762
|
-
], 10,
|
|
5787
|
+
], 10, ds)) : i.labelRight ? (o(), u("label", {
|
|
5763
5788
|
key: 3,
|
|
5764
5789
|
class: f(["w-slider__label w-slider__label--right w-form-el-shakable", e.labelClasses]),
|
|
5765
5790
|
for: `button--${e._.uid}`,
|
|
5766
5791
|
innerHTML: i.labelRight
|
|
5767
|
-
}, null, 10,
|
|
5792
|
+
}, null, 10, us)) : p("", !0)
|
|
5768
5793
|
]),
|
|
5769
5794
|
_: 3
|
|
5770
5795
|
}, 16, ["valid", "wrap", "class"]);
|
|
5771
5796
|
}
|
|
5772
|
-
const
|
|
5797
|
+
const cs = {
|
|
5773
5798
|
name: "w-slider",
|
|
5774
|
-
mixins: [
|
|
5799
|
+
mixins: [M],
|
|
5775
5800
|
props: {
|
|
5776
5801
|
modelValue: { type: Number, default: 0 },
|
|
5777
5802
|
color: { type: String, default: "primary" },
|
|
@@ -5906,17 +5931,17 @@ const hs = {
|
|
|
5906
5931
|
this.rangeValueScaled !== e && (this.rangeValueScaled = e, this.rangeValuePercent = this.scaledToPercent(e));
|
|
5907
5932
|
}
|
|
5908
5933
|
}
|
|
5909
|
-
},
|
|
5910
|
-
function
|
|
5934
|
+
}, ps = /* @__PURE__ */ v(cs, [["render", hs]]), fs = { key: 0 };
|
|
5935
|
+
function ms(e, t, i, s, n, l) {
|
|
5911
5936
|
return i.modelValue || i.modelValue === void 0 ? (o(), u("div", {
|
|
5912
5937
|
key: 0,
|
|
5913
5938
|
class: f(["w-spinner", l.classes]),
|
|
5914
5939
|
style: R(l.styles)
|
|
5915
5940
|
}, [
|
|
5916
|
-
l.isThreeDots ? (o(), u("span",
|
|
5941
|
+
l.isThreeDots ? (o(), u("span", fs)) : p("", !0)
|
|
5917
5942
|
], 6)) : p("", !0);
|
|
5918
5943
|
}
|
|
5919
|
-
const
|
|
5944
|
+
const gs = {
|
|
5920
5945
|
name: "w-spinner",
|
|
5921
5946
|
props: {
|
|
5922
5947
|
modelValue: {},
|
|
@@ -5954,13 +5979,13 @@ const ms = {
|
|
|
5954
5979
|
};
|
|
5955
5980
|
}
|
|
5956
5981
|
}
|
|
5957
|
-
},
|
|
5958
|
-
function
|
|
5982
|
+
}, bs = /* @__PURE__ */ v(gs, [["render", ms]]);
|
|
5983
|
+
function ys(e, t, i, s, n, l) {
|
|
5959
5984
|
return o(), u("div", {
|
|
5960
5985
|
class: f(["w-steps", l.classes])
|
|
5961
5986
|
}, null, 2);
|
|
5962
5987
|
}
|
|
5963
|
-
const
|
|
5988
|
+
const ws = {
|
|
5964
5989
|
name: "w-steps",
|
|
5965
5990
|
props: {
|
|
5966
5991
|
dark: { type: Boolean },
|
|
@@ -5976,14 +6001,14 @@ const ys = {
|
|
|
5976
6001
|
};
|
|
5977
6002
|
}
|
|
5978
6003
|
}
|
|
5979
|
-
},
|
|
6004
|
+
}, ks = /* @__PURE__ */ v(ws, [["render", ys]]), vs = ["id", "name", "checked", "disabled", "readonly", "aria-readonly", "required", "tabindex", "aria-checked"], Cs = ["for"], Ss = {
|
|
5980
6005
|
key: 0,
|
|
5981
6006
|
class: "w-switch__track"
|
|
5982
|
-
},
|
|
6007
|
+
}, Bs = {
|
|
5983
6008
|
key: 1,
|
|
5984
6009
|
class: "w-switch__thumb"
|
|
5985
|
-
},
|
|
5986
|
-
function
|
|
6010
|
+
}, _s = ["for"];
|
|
6011
|
+
function $s(e, t, i, s, n, l) {
|
|
5987
6012
|
const a = $("w-progress");
|
|
5988
6013
|
return o(), b(L(e.formRegister ? "w-form-element" : "div"), _({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: n.isOn, disabled: e.isDisabled, readonly: e.isReadonly }, {
|
|
5989
6014
|
valid: e.valid,
|
|
@@ -6011,7 +6036,7 @@ function _s(e, t, i, s, n, l) {
|
|
|
6011
6036
|
onFocus: t[1] || (t[1] = (r) => e.$emit("focus", r)),
|
|
6012
6037
|
"aria-checked": n.isOn || "false",
|
|
6013
6038
|
role: "switch"
|
|
6014
|
-
}), null, 16,
|
|
6039
|
+
}), null, 16, vs),
|
|
6015
6040
|
l.hasLabel && i.labelOnLeft ? (o(), u(k, { key: 0 }, [
|
|
6016
6041
|
e.$slots.default || i.label ? (o(), u("label", {
|
|
6017
6042
|
key: 0,
|
|
@@ -6021,7 +6046,7 @@ function _s(e, t, i, s, n, l) {
|
|
|
6021
6046
|
c(e.$slots, "default", {}, () => [
|
|
6022
6047
|
B(C(i.label), 1)
|
|
6023
6048
|
])
|
|
6024
|
-
], 10,
|
|
6049
|
+
], 10, Cs)) : p("", !0)
|
|
6025
6050
|
], 64)) : p("", !0),
|
|
6026
6051
|
w("div", {
|
|
6027
6052
|
class: f(["w-switch__input", l.inputClasses]),
|
|
@@ -6029,10 +6054,10 @@ function _s(e, t, i, s, n, l) {
|
|
|
6029
6054
|
e.$refs.input.focus(), e.$refs.input.click();
|
|
6030
6055
|
})
|
|
6031
6056
|
}, [
|
|
6032
|
-
e.$slots.track ? (o(), u("div",
|
|
6057
|
+
e.$slots.track ? (o(), u("div", Ss, [
|
|
6033
6058
|
c(e.$slots, "track")
|
|
6034
6059
|
])) : p("", !0),
|
|
6035
|
-
e.$slots.thumb || i.loading ? (o(), u("div",
|
|
6060
|
+
e.$slots.thumb || i.loading ? (o(), u("div", Bs, [
|
|
6036
6061
|
i.loading ? (o(), b(a, _({
|
|
6037
6062
|
key: 0,
|
|
6038
6063
|
circle: "",
|
|
@@ -6049,15 +6074,15 @@ function _s(e, t, i, s, n, l) {
|
|
|
6049
6074
|
c(e.$slots, "default", {}, () => [
|
|
6050
6075
|
B(C(i.label), 1)
|
|
6051
6076
|
])
|
|
6052
|
-
], 10,
|
|
6077
|
+
], 10, _s)) : p("", !0)
|
|
6053
6078
|
], 64)) : p("", !0)
|
|
6054
6079
|
]),
|
|
6055
6080
|
_: 3
|
|
6056
6081
|
}, 16, ["valid", "class", "style"]);
|
|
6057
6082
|
}
|
|
6058
|
-
const
|
|
6083
|
+
const Is = {
|
|
6059
6084
|
name: "w-switch",
|
|
6060
|
-
mixins: [
|
|
6085
|
+
mixins: [M],
|
|
6061
6086
|
inheritAttrs: !1,
|
|
6062
6087
|
// The attrs should only be added to the input not the wrapper.
|
|
6063
6088
|
props: {
|
|
@@ -6131,24 +6156,24 @@ const $s = {
|
|
|
6131
6156
|
this.isOn = e;
|
|
6132
6157
|
}
|
|
6133
6158
|
}
|
|
6134
|
-
}, Vs = /* @__PURE__ */ v(
|
|
6135
|
-
function
|
|
6136
|
-
return o(), u("div",
|
|
6159
|
+
}, Vs = /* @__PURE__ */ v(Is, [["render", $s]]), Ts = { class: "w-tabs__content" };
|
|
6160
|
+
function Ls(e, t, i, s, n, l) {
|
|
6161
|
+
return o(), u("div", Ts, [
|
|
6137
6162
|
c(e.$slots, "default", { item: i.item })
|
|
6138
6163
|
]);
|
|
6139
6164
|
}
|
|
6140
|
-
const
|
|
6165
|
+
const Rs = {
|
|
6141
6166
|
name: "tab-content",
|
|
6142
6167
|
// Keep-alive include/exclude mechanism is component-name-based.
|
|
6143
6168
|
props: { item: Object }
|
|
6144
|
-
},
|
|
6169
|
+
}, xs = /* @__PURE__ */ v(Rs, [["render", Ls]]), Ps = ["onClick", "onFocus", "tabindex", "onKeypress", "aria-selected"], zs = ["innerHTML"], Os = {
|
|
6145
6170
|
key: 0,
|
|
6146
6171
|
class: "w-tabs__bar-extra"
|
|
6147
6172
|
}, Ms = {
|
|
6148
6173
|
key: 0,
|
|
6149
6174
|
class: "w-tabs__content-wrap"
|
|
6150
|
-
},
|
|
6151
|
-
function
|
|
6175
|
+
}, Es = ["innerHTML"], As = ["innerHTML"];
|
|
6176
|
+
function Ws(e, t, i, s, n, l) {
|
|
6152
6177
|
const a = $("tab-content");
|
|
6153
6178
|
return o(), u("div", {
|
|
6154
6179
|
class: f(["w-tabs", l.tabsClasses])
|
|
@@ -6180,9 +6205,9 @@ function As(e, t, i, s, n, l) {
|
|
|
6180
6205
|
}, () => [
|
|
6181
6206
|
w("div", {
|
|
6182
6207
|
innerHTML: r[i.itemTitleKey]
|
|
6183
|
-
}, null, 8,
|
|
6208
|
+
}, null, 8, zs)
|
|
6184
6209
|
])
|
|
6185
|
-
], 42,
|
|
6210
|
+
], 42, Ps))), 128)),
|
|
6186
6211
|
e.$slots["tabs-bar-extra"] ? (o(), u("div", Os, [
|
|
6187
6212
|
c(e.$slots, "tabs-bar-extra")
|
|
6188
6213
|
])) : p("", !0),
|
|
@@ -6218,7 +6243,7 @@ function As(e, t, i, s, n, l) {
|
|
|
6218
6243
|
r[i.itemContentKey] ? (o(), u("div", {
|
|
6219
6244
|
key: 0,
|
|
6220
6245
|
innerHTML: r[i.itemContentKey]
|
|
6221
|
-
}, null, 8,
|
|
6246
|
+
}, null, 8, Es)) : p("", !0)
|
|
6222
6247
|
])
|
|
6223
6248
|
]),
|
|
6224
6249
|
_: 2
|
|
@@ -6257,7 +6282,7 @@ function As(e, t, i, s, n, l) {
|
|
|
6257
6282
|
r[i.itemContentKey] ? (o(), u("div", {
|
|
6258
6283
|
key: 0,
|
|
6259
6284
|
innerHTML: r[i.itemContentKey]
|
|
6260
|
-
}, null, 8,
|
|
6285
|
+
}, null, 8, As)) : p("", !0)
|
|
6261
6286
|
])
|
|
6262
6287
|
], 64)) : p("", !0)
|
|
6263
6288
|
]),
|
|
@@ -6271,7 +6296,7 @@ function As(e, t, i, s, n, l) {
|
|
|
6271
6296
|
], 2);
|
|
6272
6297
|
}
|
|
6273
6298
|
let ye = 0;
|
|
6274
|
-
const
|
|
6299
|
+
const Ks = {
|
|
6275
6300
|
name: "w-tabs",
|
|
6276
6301
|
props: {
|
|
6277
6302
|
modelValue: { type: [Number, String] },
|
|
@@ -6297,7 +6322,7 @@ const Ws = {
|
|
|
6297
6322
|
keepAlive: { type: Boolean, default: !0 },
|
|
6298
6323
|
keepInDom: { type: Boolean, default: !1 }
|
|
6299
6324
|
},
|
|
6300
|
-
components: { TabContent:
|
|
6325
|
+
components: { TabContent: xs },
|
|
6301
6326
|
emits: ["input", "update:modelValue", "focus"],
|
|
6302
6327
|
data: () => ({
|
|
6303
6328
|
tabs: [],
|
|
@@ -6446,56 +6471,56 @@ const Ws = {
|
|
|
6446
6471
|
e ? window.removeEventListener("resize", this.onResize) : (this.updateSlider(), window.addEventListener("resize", this.onResize));
|
|
6447
6472
|
}
|
|
6448
6473
|
}
|
|
6449
|
-
},
|
|
6474
|
+
}, Ns = /* @__PURE__ */ v(Ks, [["render", Ws]]), Ds = { class: "w-table__scroll-wrap" }, Hs = { ref: "colgroup" }, Fs = ["width"], js = { key: 0 }, Us = ["onClick"], qs = ["innerHTML"], Xs = {
|
|
6450
6475
|
key: 0,
|
|
6451
6476
|
class: "w-table__progress-bar"
|
|
6452
|
-
},
|
|
6477
|
+
}, Ys = ["colspan"], Gs = {
|
|
6453
6478
|
key: 0,
|
|
6454
6479
|
class: "w-table__progress-bar"
|
|
6455
|
-
},
|
|
6480
|
+
}, Js = ["colspan"], Qs = { class: "w-table__loading-text" }, Zs = {
|
|
6456
6481
|
key: 1,
|
|
6457
6482
|
class: "no-data"
|
|
6458
|
-
},
|
|
6483
|
+
}, eo = ["colspan"], to = ["onClick"], io = ["data-label"], lo = ["data-label"], so = ["innerHTML"], oo = {
|
|
6459
6484
|
key: 2,
|
|
6460
6485
|
class: "w-table__row w-table__row--expansion"
|
|
6461
|
-
},
|
|
6486
|
+
}, ao = ["colspan"], no = { key: 0 }, ro = {
|
|
6462
6487
|
key: 3,
|
|
6463
6488
|
class: "w-table__extra-row"
|
|
6464
|
-
},
|
|
6489
|
+
}, uo = {
|
|
6465
6490
|
key: 1,
|
|
6466
6491
|
class: "w-table__footer"
|
|
6467
|
-
},
|
|
6492
|
+
}, ho = {
|
|
6468
6493
|
key: 1,
|
|
6469
6494
|
class: "w-table__row"
|
|
6470
|
-
},
|
|
6495
|
+
}, co = ["colspan"], po = {
|
|
6471
6496
|
key: 0,
|
|
6472
6497
|
class: "w-table__pagination w-pagination"
|
|
6473
|
-
},
|
|
6474
|
-
function
|
|
6498
|
+
}, fo = { class: "pages-wrap" }, mo = { class: "w-pagination__results" };
|
|
6499
|
+
function go(e, t, i, s, n, l) {
|
|
6475
6500
|
const a = $("w-icon"), r = $("w-progress"), d = $("w-transition-fade"), h = $("w-transition-expand"), y = $("w-select"), S = $("w-button");
|
|
6476
6501
|
return o(), u("div", {
|
|
6477
6502
|
class: f(["w-table w-table--wrap", l.classes])
|
|
6478
6503
|
}, [
|
|
6479
|
-
w("div",
|
|
6504
|
+
w("div", Ds, [
|
|
6480
6505
|
w("table", {
|
|
6481
6506
|
class: "w-table__table",
|
|
6482
6507
|
onMousedown: t[1] || (t[1] = (...g) => l.onMouseDown && l.onMouseDown(...g)),
|
|
6483
6508
|
onMouseover: t[2] || (t[2] = (...g) => l.onMouseOver && l.onMouseOver(...g)),
|
|
6484
6509
|
onMouseout: t[3] || (t[3] = (...g) => l.onMouseOut && l.onMouseOut(...g))
|
|
6485
6510
|
}, [
|
|
6486
|
-
w("colgroup",
|
|
6487
|
-
(o(!0), u(k, null, x(i.headers, (g,
|
|
6488
|
-
class: f(["w-table__col", l.colClasses[
|
|
6489
|
-
key:
|
|
6511
|
+
w("colgroup", Hs, [
|
|
6512
|
+
(o(!0), u(k, null, x(i.headers, (g, V) => (o(), u("col", {
|
|
6513
|
+
class: f(["w-table__col", l.colClasses[V]]),
|
|
6514
|
+
key: V,
|
|
6490
6515
|
width: g.width || null
|
|
6491
|
-
}, null, 10,
|
|
6516
|
+
}, null, 10, Fs))), 128))
|
|
6492
6517
|
], 512),
|
|
6493
|
-
i.noHeaders ? p("", !0) : (o(), u("thead",
|
|
6518
|
+
i.noHeaders ? p("", !0) : (o(), u("thead", js, [
|
|
6494
6519
|
w("tr", null, [
|
|
6495
|
-
(o(!0), u(k, null, x(i.headers, (g,
|
|
6520
|
+
(o(!0), u(k, null, x(i.headers, (g, V) => (o(), u("th", {
|
|
6496
6521
|
class: f(["w-table__header", l.headerClasses(g)]),
|
|
6497
|
-
key:
|
|
6498
|
-
onClick: (
|
|
6522
|
+
key: V,
|
|
6523
|
+
onClick: (I) => !e.colResizing.dragging && g.sortable !== !1 && l.sortTable(g)
|
|
6499
6524
|
}, [
|
|
6500
6525
|
g.sortable !== !1 && g.align === "right" ? (o(), b(a, {
|
|
6501
6526
|
key: 0,
|
|
@@ -6511,13 +6536,13 @@ function mo(e, t, i, s, n, l) {
|
|
|
6511
6536
|
key: 0,
|
|
6512
6537
|
header: g,
|
|
6513
6538
|
label: g.label,
|
|
6514
|
-
index:
|
|
6539
|
+
index: V + 1
|
|
6515
6540
|
}, () => [
|
|
6516
6541
|
B(C(g.label || ""), 1)
|
|
6517
6542
|
]) : (o(), u("span", {
|
|
6518
6543
|
key: 1,
|
|
6519
6544
|
innerHTML: g.label || ""
|
|
6520
|
-
}, null, 8,
|
|
6545
|
+
}, null, 8, qs))
|
|
6521
6546
|
], 64)) : p("", !0),
|
|
6522
6547
|
g.sortable !== !1 && g.align !== "right" ? (o(), b(a, {
|
|
6523
6548
|
key: 2,
|
|
@@ -6528,40 +6553,40 @@ function mo(e, t, i, s, n, l) {
|
|
|
6528
6553
|
]),
|
|
6529
6554
|
_: 2
|
|
6530
6555
|
}, 1032, ["class"])) : p("", !0),
|
|
6531
|
-
|
|
6556
|
+
V < i.headers.length - 1 && i.resizableColumns ? (o(), u("span", {
|
|
6532
6557
|
key: 3,
|
|
6533
|
-
class: f(["w-table__col-resizer", { "w-table__col-resizer--hover": e.colResizing.hover ===
|
|
6534
|
-
onClick: t[0] || (t[0] =
|
|
6558
|
+
class: f(["w-table__col-resizer", { "w-table__col-resizer--hover": e.colResizing.hover === V, "w-table__col-resizer--active": e.colResizing.columnIndex === V }]),
|
|
6559
|
+
onClick: t[0] || (t[0] = O(() => {
|
|
6535
6560
|
}, ["stop"]))
|
|
6536
6561
|
}, null, 2)) : p("", !0)
|
|
6537
|
-
], 10,
|
|
6562
|
+
], 10, Us))), 128))
|
|
6538
6563
|
]),
|
|
6539
6564
|
T(d, null, {
|
|
6540
6565
|
default: m(() => [
|
|
6541
|
-
i.loading === "header" ? (o(), u("tr",
|
|
6566
|
+
i.loading === "header" ? (o(), u("tr", Xs, [
|
|
6542
6567
|
w("td", {
|
|
6543
6568
|
colspan: i.headers.length
|
|
6544
6569
|
}, [
|
|
6545
6570
|
T(r, { tile: "" })
|
|
6546
|
-
], 8,
|
|
6571
|
+
], 8, Ys)
|
|
6547
6572
|
])) : p("", !0)
|
|
6548
6573
|
]),
|
|
6549
6574
|
_: 1
|
|
6550
6575
|
})
|
|
6551
6576
|
])),
|
|
6552
6577
|
w("tbody", null, [
|
|
6553
|
-
i.loading === !0 ? (o(), u("tr",
|
|
6578
|
+
i.loading === !0 ? (o(), u("tr", Gs, [
|
|
6554
6579
|
w("td", {
|
|
6555
6580
|
colspan: i.headers.length
|
|
6556
6581
|
}, [
|
|
6557
6582
|
T(r, { tile: "" }),
|
|
6558
|
-
w("div",
|
|
6583
|
+
w("div", Qs, [
|
|
6559
6584
|
c(e.$slots, "loading", {}, () => [
|
|
6560
6585
|
B("Loading...")
|
|
6561
6586
|
])
|
|
6562
6587
|
])
|
|
6563
|
-
], 8,
|
|
6564
|
-
])) : l.tableItems.length ? p("", !0) : (o(), u("tr",
|
|
6588
|
+
], 8, Js)
|
|
6589
|
+
])) : l.tableItems.length ? p("", !0) : (o(), u("tr", Zs, [
|
|
6565
6590
|
w("td", {
|
|
6566
6591
|
class: "w-table__cell text-center",
|
|
6567
6592
|
colspan: i.headers.length
|
|
@@ -6569,104 +6594,104 @@ function mo(e, t, i, s, n, l) {
|
|
|
6569
6594
|
c(e.$slots, "no-data", {}, () => [
|
|
6570
6595
|
B("No data to show.")
|
|
6571
6596
|
])
|
|
6572
|
-
], 8,
|
|
6597
|
+
], 8, eo)
|
|
6573
6598
|
])),
|
|
6574
|
-
l.tableItems.length && i.loading !== !0 ? (o(!0), u(k, { key: 2 }, x(l.paginatedItems, (g,
|
|
6599
|
+
l.tableItems.length && i.loading !== !0 ? (o(!0), u(k, { key: 2 }, x(l.paginatedItems, (g, V) => (o(), u(k, { key: V }, [
|
|
6575
6600
|
e.$slots.item ? c(e.$slots, "item", {
|
|
6576
6601
|
key: 0,
|
|
6577
6602
|
item: g,
|
|
6578
|
-
index:
|
|
6579
|
-
select: () => l.doSelectRow(g,
|
|
6603
|
+
index: V + 1,
|
|
6604
|
+
select: () => l.doSelectRow(g, V),
|
|
6580
6605
|
classes: { "w-table__row": !0, "w-table__row--selected": l.selectedRowsByUid[g._uid] !== void 0, "w-table__row--expanded": l.expandedRowsByUid[g._uid] !== void 0 }
|
|
6581
6606
|
}) : (o(), u("tr", {
|
|
6582
6607
|
key: 1,
|
|
6583
6608
|
class: f(["w-table__row", { "w-table__row--selected": l.selectedRowsByUid[g._uid] !== void 0, "w-table__row--expanded": l.expandedRowsByUid[g._uid] !== void 0 }]),
|
|
6584
|
-
onClick: (
|
|
6609
|
+
onClick: (I) => l.doSelectRow(g, V)
|
|
6585
6610
|
}, [
|
|
6586
|
-
(o(!0), u(k, null, x(i.headers, (
|
|
6587
|
-
e.$slots[`item-cell.${
|
|
6588
|
-
class: f(["w-table__cell", { [`text-${
|
|
6589
|
-
key: `${
|
|
6590
|
-
"data-label":
|
|
6611
|
+
(o(!0), u(k, null, x(i.headers, (I, z) => (o(), u(k, null, [
|
|
6612
|
+
e.$slots[`item-cell.${I.key}`] || e.$slots[`item-cell.${z + 1}`] || e.$slots["item-cell"] ? (o(), u("td", {
|
|
6613
|
+
class: f(["w-table__cell", { [`text-${I.align || "left"}`]: !0, "w-table__cell--sticky": I.sticky }]),
|
|
6614
|
+
key: `${z}-a`,
|
|
6615
|
+
"data-label": I.label
|
|
6591
6616
|
}, [
|
|
6592
|
-
e.$slots[`item-cell.${
|
|
6617
|
+
e.$slots[`item-cell.${I.key}`] ? c(e.$slots, `item-cell.${I.key}`, {
|
|
6593
6618
|
key: 0,
|
|
6594
|
-
header:
|
|
6619
|
+
header: I,
|
|
6595
6620
|
item: g,
|
|
6596
|
-
label: g[
|
|
6597
|
-
index:
|
|
6598
|
-
}) : e.$slots[`item-cell.${
|
|
6621
|
+
label: g[I.key] || "",
|
|
6622
|
+
index: V + 1
|
|
6623
|
+
}) : e.$slots[`item-cell.${z + 1}`] ? c(e.$slots, `item-cell.${z + 1}`, {
|
|
6599
6624
|
key: 1,
|
|
6600
|
-
header:
|
|
6625
|
+
header: I,
|
|
6601
6626
|
item: g,
|
|
6602
|
-
label: g[
|
|
6603
|
-
index:
|
|
6627
|
+
label: g[I.key] || "",
|
|
6628
|
+
index: V + 1
|
|
6604
6629
|
}) : e.$slots["item-cell"] ? c(e.$slots, "item-cell", {
|
|
6605
6630
|
key: 2,
|
|
6606
|
-
header:
|
|
6631
|
+
header: I,
|
|
6607
6632
|
item: g,
|
|
6608
|
-
label: g[
|
|
6609
|
-
index:
|
|
6633
|
+
label: g[I.key] || "",
|
|
6634
|
+
index: V + 1
|
|
6610
6635
|
}) : p("", !0),
|
|
6611
|
-
|
|
6636
|
+
z < i.headers.length - 1 && i.resizableColumns ? (o(), u("span", {
|
|
6612
6637
|
key: 3,
|
|
6613
|
-
class: f(["w-table__col-resizer", { "w-table__col-resizer--hover": e.colResizing.hover ===
|
|
6638
|
+
class: f(["w-table__col-resizer", { "w-table__col-resizer--hover": e.colResizing.hover === z, "w-table__col-resizer--active": e.colResizing.columnIndex === z }])
|
|
6614
6639
|
}, null, 2)) : p("", !0)
|
|
6615
|
-
], 10,
|
|
6616
|
-
class: f(["w-table__cell", { [`text-${
|
|
6617
|
-
key: `${
|
|
6618
|
-
"data-label":
|
|
6640
|
+
], 10, io)) : (o(), u("td", {
|
|
6641
|
+
class: f(["w-table__cell", { [`text-${I.align || "left"}`]: !0, "w-table__cell--sticky": I.sticky }]),
|
|
6642
|
+
key: `${z}-b`,
|
|
6643
|
+
"data-label": I.label
|
|
6619
6644
|
}, [
|
|
6620
6645
|
w("div", {
|
|
6621
|
-
innerHTML: g[
|
|
6622
|
-
}, null, 8,
|
|
6623
|
-
|
|
6646
|
+
innerHTML: g[I.key] || ""
|
|
6647
|
+
}, null, 8, so),
|
|
6648
|
+
z < i.headers.length - 1 && i.resizableColumns ? (o(), u("span", {
|
|
6624
6649
|
key: 0,
|
|
6625
|
-
class: f(["w-table__col-resizer", { "w-table__col-resizer--hover": e.colResizing.hover ===
|
|
6650
|
+
class: f(["w-table__col-resizer", { "w-table__col-resizer--hover": e.colResizing.hover === z, "w-table__col-resizer--active": e.colResizing.columnIndex === z }])
|
|
6626
6651
|
}, null, 2)) : p("", !0)
|
|
6627
|
-
], 10,
|
|
6652
|
+
], 10, lo))
|
|
6628
6653
|
], 64))), 256))
|
|
6629
|
-
], 10,
|
|
6630
|
-
l.expandedRowsByUid[g._uid] ? (o(), u("tr",
|
|
6654
|
+
], 10, to)),
|
|
6655
|
+
l.expandedRowsByUid[g._uid] ? (o(), u("tr", oo, [
|
|
6631
6656
|
w("td", {
|
|
6632
6657
|
class: "w-table__cell",
|
|
6633
6658
|
colspan: i.headers.length
|
|
6634
6659
|
}, [
|
|
6635
6660
|
T(h, { y: "" }, {
|
|
6636
6661
|
default: m(() => [
|
|
6637
|
-
l.expandedRowsByUid[g._uid] ? (o(), u("div",
|
|
6662
|
+
l.expandedRowsByUid[g._uid] ? (o(), u("div", no, [
|
|
6638
6663
|
c(e.$slots, "row-expansion", {
|
|
6639
6664
|
item: g,
|
|
6640
|
-
index:
|
|
6665
|
+
index: V + 1
|
|
6641
6666
|
})
|
|
6642
6667
|
])) : p("", !0),
|
|
6643
|
-
|
|
6668
|
+
V < i.headers.length - 1 && i.resizableColumns ? (o(), u("span", {
|
|
6644
6669
|
key: 1,
|
|
6645
|
-
class: f(["w-table__col-resizer", { "w-table__col-resizer--hover": e.colResizing.hover ===
|
|
6670
|
+
class: f(["w-table__col-resizer", { "w-table__col-resizer--hover": e.colResizing.hover === V, "w-table__col-resizer--active": e.colResizing.columnIndex === e.j }])
|
|
6646
6671
|
}, null, 2)) : p("", !0)
|
|
6647
6672
|
]),
|
|
6648
6673
|
_: 2
|
|
6649
6674
|
}, 1024)
|
|
6650
|
-
], 8,
|
|
6675
|
+
], 8, ao)
|
|
6651
6676
|
])) : p("", !0)
|
|
6652
6677
|
], 64))), 128)) : p("", !0),
|
|
6653
|
-
e.$slots["extra-row"] ? (o(), u("div",
|
|
6678
|
+
e.$slots["extra-row"] ? (o(), u("div", ro, [
|
|
6654
6679
|
c(e.$slots, "extra-row")
|
|
6655
6680
|
])) : p("", !0)
|
|
6656
6681
|
]),
|
|
6657
|
-
e.$slots.footer || e.$slots["footer-row"] ? (o(), u("tfoot",
|
|
6658
|
-
e.$slots["footer-row"] ? c(e.$slots, "footer-row", { key: 0 }) : e.$slots.footer ? (o(), u("tr",
|
|
6682
|
+
e.$slots.footer || e.$slots["footer-row"] ? (o(), u("tfoot", uo, [
|
|
6683
|
+
e.$slots["footer-row"] ? c(e.$slots, "footer-row", { key: 0 }) : e.$slots.footer ? (o(), u("tr", ho, [
|
|
6659
6684
|
w("td", {
|
|
6660
6685
|
class: "w-table__cell",
|
|
6661
6686
|
colspan: i.headers.length
|
|
6662
6687
|
}, [
|
|
6663
6688
|
c(e.$slots, "footer")
|
|
6664
|
-
], 8,
|
|
6689
|
+
], 8, co)
|
|
6665
6690
|
])) : p("", !0)
|
|
6666
6691
|
])) : p("", !0)
|
|
6667
6692
|
], 32)
|
|
6668
6693
|
]),
|
|
6669
|
-
i.pagination && e.paginationConfig ? (o(), u("div",
|
|
6694
|
+
i.pagination && e.paginationConfig ? (o(), u("div", po, [
|
|
6670
6695
|
c(e.$slots, "pagination", {
|
|
6671
6696
|
range: `${e.paginationConfig.start}-${e.paginationConfig.end}`,
|
|
6672
6697
|
total: e.paginationConfig.total,
|
|
@@ -6685,7 +6710,7 @@ function mo(e, t, i, s, n, l) {
|
|
|
6685
6710
|
label: "Items per page",
|
|
6686
6711
|
"label-color": "inherit"
|
|
6687
6712
|
}, null, 8, ["modelValue", "items"])) : p("", !0),
|
|
6688
|
-
w("div",
|
|
6713
|
+
w("div", fo, [
|
|
6689
6714
|
T(S, {
|
|
6690
6715
|
class: "w-pagination__arrow w-pagination__arrow--prev",
|
|
6691
6716
|
onClick: t[6] || (t[6] = (g) => l.goToPage("-1")),
|
|
@@ -6698,7 +6723,7 @@ function mo(e, t, i, s, n, l) {
|
|
|
6698
6723
|
[1, e.paginationConfig.pagesCount, e.paginationConfig.page - 1, e.paginationConfig.page, e.paginationConfig.page + 1].includes(g) ? (o(), b(S, {
|
|
6699
6724
|
key: 0,
|
|
6700
6725
|
class: f(["w-pagination__page", { "w-pagination__page--active": g === e.paginationConfig.page }]),
|
|
6701
|
-
onClick: (
|
|
6726
|
+
onClick: (V) => g !== e.paginationConfig.page && l.goToPage(g),
|
|
6702
6727
|
round: "",
|
|
6703
6728
|
lg: ""
|
|
6704
6729
|
}, {
|
|
@@ -6709,7 +6734,7 @@ function mo(e, t, i, s, n, l) {
|
|
|
6709
6734
|
}, 1032, ["onClick", "class"])) : [1, e.paginationConfig.pagesCount, e.paginationConfig.page - 1, e.paginationConfig.page, e.paginationConfig.page + 1].includes(g - 1) ? (o(), b(S, {
|
|
6710
6735
|
key: 1,
|
|
6711
6736
|
class: f(["w-pagination__page", { "w-pagination__page--active": g === e.paginationConfig.page }]),
|
|
6712
|
-
onClick: (
|
|
6737
|
+
onClick: (V) => g !== e.paginationConfig.page && l.goToPage(g),
|
|
6713
6738
|
round: "",
|
|
6714
6739
|
lg: ""
|
|
6715
6740
|
}, {
|
|
@@ -6721,7 +6746,7 @@ function mo(e, t, i, s, n, l) {
|
|
|
6721
6746
|
], 64))), 128)) : (o(!0), u(k, { key: 1 }, x(e.paginationConfig.pagesCount, (g) => (o(), b(S, {
|
|
6722
6747
|
class: f(["w-pagination__page", { "w-pagination__page--active": g === e.paginationConfig.page }]),
|
|
6723
6748
|
key: g,
|
|
6724
|
-
onClick: (
|
|
6749
|
+
onClick: (V) => g !== e.paginationConfig.page && l.goToPage(g),
|
|
6725
6750
|
round: "",
|
|
6726
6751
|
lg: ""
|
|
6727
6752
|
}, {
|
|
@@ -6739,12 +6764,12 @@ function mo(e, t, i, s, n, l) {
|
|
|
6739
6764
|
lg: ""
|
|
6740
6765
|
}, null, 8, ["disabled"])
|
|
6741
6766
|
]),
|
|
6742
|
-
w("span",
|
|
6767
|
+
w("span", mo, C(e.paginationConfig.start) + "-" + C(e.paginationConfig.end || e.paginationConfig.total) + " of " + C(e.paginationConfig.total), 1)
|
|
6743
6768
|
])
|
|
6744
6769
|
])) : p("", !0)
|
|
6745
6770
|
], 2);
|
|
6746
6771
|
}
|
|
6747
|
-
const we = 15,
|
|
6772
|
+
const we = 15, bo = {
|
|
6748
6773
|
name: "w-table",
|
|
6749
6774
|
props: {
|
|
6750
6775
|
items: { type: Array, required: !0 },
|
|
@@ -7073,8 +7098,8 @@ const we = 15, go = {
|
|
|
7073
7098
|
this.updatePaginationConfig({ total: e });
|
|
7074
7099
|
}
|
|
7075
7100
|
}
|
|
7076
|
-
},
|
|
7077
|
-
function
|
|
7101
|
+
}, yo = /* @__PURE__ */ v(bo, [["render", go]]), wo = ["role", "aria-pressed", "tabindex"];
|
|
7102
|
+
function ko(e, t, i, s, n, l) {
|
|
7078
7103
|
return o(), u("span", {
|
|
7079
7104
|
class: f(["w-tag", l.classes]),
|
|
7080
7105
|
onClick: t[1] || (t[1] = (a) => {
|
|
@@ -7092,15 +7117,15 @@ function wo(e, t, i, s, n, l) {
|
|
|
7092
7117
|
i.closable && i.modelValue ? (o(), u("i", {
|
|
7093
7118
|
key: 0,
|
|
7094
7119
|
class: "w-icon w-tag__closable wi-cross",
|
|
7095
|
-
onClick: t[0] || (t[0] =
|
|
7120
|
+
onClick: t[0] || (t[0] = O((a) => {
|
|
7096
7121
|
e.$emit("update:modelValue", !1), e.$emit("input", !1);
|
|
7097
7122
|
}, ["stop"])),
|
|
7098
7123
|
role: "icon",
|
|
7099
7124
|
"aria-hidden": "true"
|
|
7100
7125
|
})) : p("", !0)
|
|
7101
|
-
], 46,
|
|
7126
|
+
], 46, wo);
|
|
7102
7127
|
}
|
|
7103
|
-
const
|
|
7128
|
+
const vo = {
|
|
7104
7129
|
name: "w-tag",
|
|
7105
7130
|
props: {
|
|
7106
7131
|
modelValue: { type: [Boolean, Number], default: -1 },
|
|
@@ -7149,8 +7174,8 @@ const ko = {
|
|
|
7149
7174
|
};
|
|
7150
7175
|
}
|
|
7151
7176
|
}
|
|
7152
|
-
},
|
|
7153
|
-
function
|
|
7177
|
+
}, Co = /* @__PURE__ */ v(vo, [["render", ko]]), So = ["for"], Bo = ["id", "name", "placeholder", "rows", "cols", "readonly", "aria-readonly", "disabled", "required", "tabindex"], _o = ["for"];
|
|
7178
|
+
function $o(e, t, i, s, n, l) {
|
|
7154
7179
|
const a = $("w-icon");
|
|
7155
7180
|
return o(), b(L(e.formRegister ? "w-form-element" : "div"), _({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: n.inputValue, disabled: e.isDisabled, readonly: e.isReadonly, isFocused: n.isFocused }, {
|
|
7156
7181
|
valid: e.valid,
|
|
@@ -7172,7 +7197,7 @@ function _o(e, t, i, s, n, l) {
|
|
|
7172
7197
|
c(e.$slots, "default", {}, () => [
|
|
7173
7198
|
B(C(i.label), 1)
|
|
7174
7199
|
])
|
|
7175
|
-
], 10,
|
|
7200
|
+
], 10, So)) : p("", !0)
|
|
7176
7201
|
], 64)) : p("", !0),
|
|
7177
7202
|
w("div", {
|
|
7178
7203
|
class: f(["w-textarea__textarea-wrap", l.inputWrapClasses])
|
|
@@ -7211,7 +7236,7 @@ function _o(e, t, i, s, n, l) {
|
|
|
7211
7236
|
disabled: e.isDisabled || null,
|
|
7212
7237
|
required: e.required || null,
|
|
7213
7238
|
tabindex: e.tabindex || null
|
|
7214
|
-
}), null, 16,
|
|
7239
|
+
}), null, 16, Bo), [
|
|
7215
7240
|
[ve, n.inputValue]
|
|
7216
7241
|
]),
|
|
7217
7242
|
i.labelPosition === "inside" && l.showLabelInside ? (o(), u(k, { key: 0 }, [
|
|
@@ -7250,15 +7275,15 @@ function _o(e, t, i, s, n, l) {
|
|
|
7250
7275
|
c(e.$slots, "default", {}, () => [
|
|
7251
7276
|
B(C(i.label), 1)
|
|
7252
7277
|
])
|
|
7253
|
-
], 10,
|
|
7278
|
+
], 10, _o)) : p("", !0)
|
|
7254
7279
|
], 64)) : p("", !0)
|
|
7255
7280
|
]),
|
|
7256
7281
|
_: 3
|
|
7257
7282
|
}, 16, ["valid", "wrap", "class", "style"]);
|
|
7258
7283
|
}
|
|
7259
|
-
const
|
|
7284
|
+
const Io = {
|
|
7260
7285
|
name: "w-textarea",
|
|
7261
|
-
mixins: [
|
|
7286
|
+
mixins: [M],
|
|
7262
7287
|
inheritAttrs: !1,
|
|
7263
7288
|
// The attrs should only be added to the textarea not the wrapper.
|
|
7264
7289
|
props: {
|
|
@@ -7382,8 +7407,8 @@ const $o = {
|
|
|
7382
7407
|
e ? this.getLineHeight() : this.height = null;
|
|
7383
7408
|
}
|
|
7384
7409
|
}
|
|
7385
|
-
}, Vo = /* @__PURE__ */ v(
|
|
7386
|
-
function
|
|
7410
|
+
}, Vo = /* @__PURE__ */ v(Io, [["render", $o]]), To = ["innerHTML"], Lo = ["innerHTML"];
|
|
7411
|
+
function Ro(e, t, i, s, n, l) {
|
|
7387
7412
|
return o(), u("ul", {
|
|
7388
7413
|
class: f(["w-timeline", l.classes])
|
|
7389
7414
|
}, [
|
|
@@ -7411,16 +7436,16 @@ function Lo(e, t, i, s, n, l) {
|
|
|
7411
7436
|
w("div", {
|
|
7412
7437
|
class: f(["w-timeline-item__title", { [a[i.itemColorKey] || i.color]: a[i.itemColorKey] || i.color }]),
|
|
7413
7438
|
innerHTML: a[i.itemTitleKey]
|
|
7414
|
-
}, null, 10,
|
|
7439
|
+
}, null, 10, To),
|
|
7415
7440
|
w("div", {
|
|
7416
7441
|
class: "w-timeline-item__content",
|
|
7417
7442
|
innerHTML: a[i.itemContentKey]
|
|
7418
|
-
}, null, 8,
|
|
7443
|
+
}, null, 8, Lo)
|
|
7419
7444
|
])
|
|
7420
7445
|
]))), 128))
|
|
7421
7446
|
], 2);
|
|
7422
7447
|
}
|
|
7423
|
-
const
|
|
7448
|
+
const xo = {
|
|
7424
7449
|
name: "w-timeline",
|
|
7425
7450
|
props: {
|
|
7426
7451
|
items: { type: [Array, Number], required: !0 },
|
|
@@ -7442,8 +7467,8 @@ const Ro = {
|
|
|
7442
7467
|
};
|
|
7443
7468
|
}
|
|
7444
7469
|
}
|
|
7445
|
-
},
|
|
7446
|
-
function
|
|
7470
|
+
}, Po = /* @__PURE__ */ v(xo, [["render", Ro]]);
|
|
7471
|
+
function zo(e, t, i, s, n, l) {
|
|
7447
7472
|
return o(), u("div", {
|
|
7448
7473
|
class: f(["w-toolbar", l.classes]),
|
|
7449
7474
|
style: R(l.styles)
|
|
@@ -7502,8 +7527,8 @@ const Oo = {
|
|
|
7502
7527
|
};
|
|
7503
7528
|
}
|
|
7504
7529
|
}
|
|
7505
|
-
}, Mo = /* @__PURE__ */ v(Oo, [["render",
|
|
7506
|
-
function
|
|
7530
|
+
}, Mo = /* @__PURE__ */ v(Oo, [["render", zo]]);
|
|
7531
|
+
function Eo(e, t, i, s, n, l) {
|
|
7507
7532
|
return o(), u(k, null, [
|
|
7508
7533
|
c(e.$slots, "activator", { on: l.activatorEventHandlers }),
|
|
7509
7534
|
T(P, {
|
|
@@ -7524,7 +7549,7 @@ function zo(e, t, i, s, n, l) {
|
|
|
7524
7549
|
}, 8, ["name"])
|
|
7525
7550
|
], 64);
|
|
7526
7551
|
}
|
|
7527
|
-
const
|
|
7552
|
+
const Ao = {
|
|
7528
7553
|
name: "w-tooltip",
|
|
7529
7554
|
mixins: [Be],
|
|
7530
7555
|
props: {
|
|
@@ -7660,8 +7685,8 @@ const Eo = {
|
|
|
7660
7685
|
}
|
|
7661
7686
|
}
|
|
7662
7687
|
// watch, mounted & beforeDestroy hooks are set in the detachable.js mixin.
|
|
7663
|
-
},
|
|
7664
|
-
function
|
|
7688
|
+
}, Wo = /* @__PURE__ */ v(Ao, [["render", Eo]]);
|
|
7689
|
+
function Ko(e, t, i, s, n, l) {
|
|
7665
7690
|
return o(), b(P, _({ name: "bounce" }, e.$props), {
|
|
7666
7691
|
default: m(() => [
|
|
7667
7692
|
c(e.$slots, "default")
|
|
@@ -7669,14 +7694,14 @@ function Wo(e, t, i, s, n, l) {
|
|
|
7669
7694
|
_: 3
|
|
7670
7695
|
}, 16);
|
|
7671
7696
|
}
|
|
7672
|
-
const
|
|
7697
|
+
const No = {
|
|
7673
7698
|
name: "w-transition-bounce",
|
|
7674
7699
|
props: {
|
|
7675
7700
|
appear: { type: Boolean },
|
|
7676
7701
|
duration: { type: [Number, String] }
|
|
7677
7702
|
}
|
|
7678
|
-
},
|
|
7679
|
-
function
|
|
7703
|
+
}, Do = /* @__PURE__ */ v(No, [["render", Ko]]);
|
|
7704
|
+
function Ho(e, t, i, s, n, l) {
|
|
7680
7705
|
return o(), b(P, {
|
|
7681
7706
|
name: "expand",
|
|
7682
7707
|
mode: "out-in",
|
|
@@ -7697,7 +7722,7 @@ function Do(e, t, i, s, n, l) {
|
|
|
7697
7722
|
_: 3
|
|
7698
7723
|
}, 8, ["onBeforeAppear", "onAppear", "onAfterAppear", "onBeforeEnter", "onEnter", "onAfterEnter", "onBeforeLeave", "onLeave", "onAfterLeave"]);
|
|
7699
7724
|
}
|
|
7700
|
-
const
|
|
7725
|
+
const Fo = {
|
|
7701
7726
|
name: "w-transition-expand",
|
|
7702
7727
|
props: {
|
|
7703
7728
|
x: { type: Boolean },
|
|
@@ -7787,8 +7812,8 @@ const Ho = {
|
|
|
7787
7812
|
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;
|
|
7788
7813
|
}
|
|
7789
7814
|
}
|
|
7790
|
-
},
|
|
7791
|
-
function
|
|
7815
|
+
}, jo = /* @__PURE__ */ v(Fo, [["render", Ho]]);
|
|
7816
|
+
function Uo(e, t, i, s, n, l) {
|
|
7792
7817
|
return o(), b(P, _({ name: "fade" }, e.$props), {
|
|
7793
7818
|
default: m(() => [
|
|
7794
7819
|
c(e.$slots, "default")
|
|
@@ -7796,14 +7821,14 @@ function jo(e, t, i, s, n, l) {
|
|
|
7796
7821
|
_: 3
|
|
7797
7822
|
}, 16);
|
|
7798
7823
|
}
|
|
7799
|
-
const
|
|
7824
|
+
const qo = {
|
|
7800
7825
|
name: "w-transition-fade",
|
|
7801
7826
|
props: {
|
|
7802
7827
|
appear: { type: Boolean },
|
|
7803
7828
|
duration: { type: [Number, String] }
|
|
7804
7829
|
}
|
|
7805
|
-
},
|
|
7806
|
-
function
|
|
7830
|
+
}, Xo = /* @__PURE__ */ v(qo, [["render", Uo]]);
|
|
7831
|
+
function Yo(e, t, i, s, n, l) {
|
|
7807
7832
|
return o(), b(P, _({ name: "scale" }, e.$props), {
|
|
7808
7833
|
default: m(() => [
|
|
7809
7834
|
c(e.$slots, "default")
|
|
@@ -7811,14 +7836,14 @@ function Xo(e, t, i, s, n, l) {
|
|
|
7811
7836
|
_: 3
|
|
7812
7837
|
}, 16);
|
|
7813
7838
|
}
|
|
7814
|
-
const
|
|
7839
|
+
const Go = {
|
|
7815
7840
|
name: "w-transition-scale",
|
|
7816
7841
|
props: {
|
|
7817
7842
|
appear: { type: Boolean },
|
|
7818
7843
|
duration: { type: [Number, String] }
|
|
7819
7844
|
}
|
|
7820
|
-
},
|
|
7821
|
-
function
|
|
7845
|
+
}, Jo = /* @__PURE__ */ v(Go, [["render", Yo]]);
|
|
7846
|
+
function Qo(e, t, i, s, n, l) {
|
|
7822
7847
|
return o(), b(P, _({ name: "scale-fade" }, e.$props), {
|
|
7823
7848
|
default: m(() => [
|
|
7824
7849
|
c(e.$slots, "default")
|
|
@@ -7826,14 +7851,14 @@ function Jo(e, t, i, s, n, l) {
|
|
|
7826
7851
|
_: 3
|
|
7827
7852
|
}, 16);
|
|
7828
7853
|
}
|
|
7829
|
-
const
|
|
7854
|
+
const Zo = {
|
|
7830
7855
|
name: "w-transition-scale-fade",
|
|
7831
7856
|
props: {
|
|
7832
7857
|
appear: { type: Boolean },
|
|
7833
7858
|
duration: { type: [Number, String] }
|
|
7834
7859
|
}
|
|
7835
|
-
},
|
|
7836
|
-
function
|
|
7860
|
+
}, ea = /* @__PURE__ */ v(Zo, [["render", Qo]]);
|
|
7861
|
+
function ta(e, t, i, s, n, l) {
|
|
7837
7862
|
return o(), b(P, _({ name: l.transitionName }, e.$props), {
|
|
7838
7863
|
default: m(() => [
|
|
7839
7864
|
c(e.$slots, "default")
|
|
@@ -7841,7 +7866,7 @@ function ea(e, t, i, s, n, l) {
|
|
|
7841
7866
|
_: 3
|
|
7842
7867
|
}, 16, ["name"]);
|
|
7843
7868
|
}
|
|
7844
|
-
const
|
|
7869
|
+
const ia = {
|
|
7845
7870
|
name: "w-transition-slide",
|
|
7846
7871
|
props: {
|
|
7847
7872
|
appear: { type: Boolean },
|
|
@@ -7859,8 +7884,8 @@ const ta = {
|
|
|
7859
7884
|
return `slide-${this.direction}`;
|
|
7860
7885
|
}
|
|
7861
7886
|
}
|
|
7862
|
-
},
|
|
7863
|
-
function
|
|
7887
|
+
}, la = /* @__PURE__ */ v(ia, [["render", ta]]);
|
|
7888
|
+
function sa(e, t, i, s, n, l) {
|
|
7864
7889
|
return o(), b(P, _({ name: l.transitionName }, e.$props), {
|
|
7865
7890
|
default: m(() => [
|
|
7866
7891
|
c(e.$slots, "default")
|
|
@@ -7868,7 +7893,7 @@ function la(e, t, i, s, n, l) {
|
|
|
7868
7893
|
_: 3
|
|
7869
7894
|
}, 16, ["name"]);
|
|
7870
7895
|
}
|
|
7871
|
-
const
|
|
7896
|
+
const oa = {
|
|
7872
7897
|
name: "w-transition-slide-fade",
|
|
7873
7898
|
props: {
|
|
7874
7899
|
appear: { type: Boolean },
|
|
@@ -7886,8 +7911,8 @@ const sa = {
|
|
|
7886
7911
|
return `slide-fade-${this.direction}`;
|
|
7887
7912
|
}
|
|
7888
7913
|
}
|
|
7889
|
-
},
|
|
7890
|
-
function
|
|
7914
|
+
}, aa = /* @__PURE__ */ v(oa, [["render", sa]]);
|
|
7915
|
+
function na(e, t, i, s, n, l) {
|
|
7891
7916
|
return o(), b(P, _({ name: "twist" }, e.$props), {
|
|
7892
7917
|
default: m(() => [
|
|
7893
7918
|
c(e.$slots, "default")
|
|
@@ -7895,17 +7920,17 @@ function aa(e, t, i, s, n, l) {
|
|
|
7895
7920
|
_: 3
|
|
7896
7921
|
}, 16);
|
|
7897
7922
|
}
|
|
7898
|
-
const
|
|
7923
|
+
const ra = {
|
|
7899
7924
|
name: "w-transition-twist",
|
|
7900
7925
|
props: {
|
|
7901
7926
|
appear: { type: Boolean },
|
|
7902
7927
|
duration: { type: [Number, String] }
|
|
7903
7928
|
}
|
|
7904
|
-
},
|
|
7929
|
+
}, da = /* @__PURE__ */ v(ra, [["render", na]]), ua = ["innerHTML"], ha = {
|
|
7905
7930
|
key: 1,
|
|
7906
7931
|
class: "ml1"
|
|
7907
7932
|
};
|
|
7908
|
-
function
|
|
7933
|
+
function ca(e, t, i, s, n, l) {
|
|
7909
7934
|
const a = $("w-button"), r = $("w-icon"), d = $("w-tree", !0);
|
|
7910
7935
|
return o(), u("ul", {
|
|
7911
7936
|
class: f(["w-tree", l.classes])
|
|
@@ -7926,7 +7951,7 @@ function ha(e, t, i, s, n, l) {
|
|
|
7926
7951
|
(h.children || h.branch) && (i.expandOpenIcon && h.open || i.expandIcon) && !(i.unexpandableEmpty && !h.children) ? (o(), b(a, {
|
|
7927
7952
|
key: 0,
|
|
7928
7953
|
class: "w-tree__item-expand",
|
|
7929
|
-
onClick:
|
|
7954
|
+
onClick: O((S) => !i.disabled && !h.disabled && l.onLabelClick(h, S), ["stop"]),
|
|
7930
7955
|
color: "inherit",
|
|
7931
7956
|
icon: h.open && i.expandOpenIcon || i.expandIcon,
|
|
7932
7957
|
"icon-props": { rotate90a: !h.open },
|
|
@@ -7955,8 +7980,8 @@ function ha(e, t, i, s, n, l) {
|
|
|
7955
7980
|
}, 1032, ["color"])) : p("", !0),
|
|
7956
7981
|
w("span", {
|
|
7957
7982
|
innerHTML: h.label
|
|
7958
|
-
}, null, 8,
|
|
7959
|
-
i.counts && (h.children || h.branch) ? (o(), u("span",
|
|
7983
|
+
}, null, 8, ua),
|
|
7984
|
+
i.counts && (h.children || h.branch) ? (o(), u("span", ha, "(" + C(((S = h.originalItem.children) == null ? void 0 : S.length) || 0) + ")", 1)) : p("", !0)
|
|
7960
7985
|
];
|
|
7961
7986
|
})
|
|
7962
7987
|
]),
|
|
@@ -7983,12 +8008,12 @@ function ha(e, t, i, s, n, l) {
|
|
|
7983
8008
|
onSelect: t[5] || (t[5] = (S) => e.$emit("select", S)),
|
|
7984
8009
|
"onUpdate:modelValue": t[6] || (t[6] = (S) => e.$emit("update:model-value", S))
|
|
7985
8010
|
}), {
|
|
7986
|
-
item: m(({ item: S, depth: g, path:
|
|
8011
|
+
item: m(({ item: S, depth: g, path: V, open: I }) => [
|
|
7987
8012
|
c(e.$slots, "item", {
|
|
7988
8013
|
item: S,
|
|
7989
8014
|
depth: g,
|
|
7990
|
-
path:
|
|
7991
|
-
open:
|
|
8015
|
+
path: V,
|
|
8016
|
+
open: I
|
|
7992
8017
|
})
|
|
7993
8018
|
]),
|
|
7994
8019
|
_: 2
|
|
@@ -7999,7 +8024,7 @@ function ha(e, t, i, s, n, l) {
|
|
|
7999
8024
|
], 2))), 128))
|
|
8000
8025
|
], 2);
|
|
8001
8026
|
}
|
|
8002
|
-
const
|
|
8027
|
+
const pa = {
|
|
8003
8028
|
name: "w-tree",
|
|
8004
8029
|
props: {
|
|
8005
8030
|
modelValue: { type: [Object, Array] },
|
|
@@ -8197,13 +8222,13 @@ const ca = {
|
|
|
8197
8222
|
unmounted() {
|
|
8198
8223
|
this.dataPropUnwatch();
|
|
8199
8224
|
}
|
|
8200
|
-
},
|
|
8225
|
+
}, fa = /* @__PURE__ */ v(pa, [["render", ca]]), ma = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
8201
8226
|
__proto__: null,
|
|
8202
8227
|
WAccordion: at,
|
|
8203
8228
|
WAlert: ut,
|
|
8204
8229
|
WApp: Bt,
|
|
8205
8230
|
WAutocomplete: kt,
|
|
8206
|
-
WBadge:
|
|
8231
|
+
WBadge: Vt,
|
|
8207
8232
|
WBreadcrumbs: xt,
|
|
8208
8233
|
WButton: Nt,
|
|
8209
8234
|
WCard: jt,
|
|
@@ -8217,43 +8242,43 @@ const ca = {
|
|
|
8217
8242
|
WFlex: $i,
|
|
8218
8243
|
WForm: Li,
|
|
8219
8244
|
WFormElement: Pi,
|
|
8220
|
-
WGrid:
|
|
8245
|
+
WGrid: Mi,
|
|
8221
8246
|
WIcon: Wi,
|
|
8222
|
-
WImage:
|
|
8223
|
-
WInput:
|
|
8224
|
-
WList:
|
|
8225
|
-
WMenu:
|
|
8226
|
-
WNotification:
|
|
8227
|
-
WOverlay:
|
|
8228
|
-
WParallax:
|
|
8229
|
-
WProgress:
|
|
8230
|
-
WRadio:
|
|
8231
|
-
WRadios:
|
|
8232
|
-
WRating:
|
|
8233
|
-
WScrollable:
|
|
8234
|
-
WSelect:
|
|
8235
|
-
WSlider:
|
|
8236
|
-
WSpinner:
|
|
8237
|
-
WSteps:
|
|
8247
|
+
WImage: Fi,
|
|
8248
|
+
WInput: tl,
|
|
8249
|
+
WList: sl,
|
|
8250
|
+
WMenu: nl,
|
|
8251
|
+
WNotification: ul,
|
|
8252
|
+
WOverlay: pl,
|
|
8253
|
+
WParallax: bl,
|
|
8254
|
+
WProgress: _l,
|
|
8255
|
+
WRadio: Pl,
|
|
8256
|
+
WRadios: El,
|
|
8257
|
+
WRating: Dl,
|
|
8258
|
+
WScrollable: Ul,
|
|
8259
|
+
WSelect: Zl,
|
|
8260
|
+
WSlider: ps,
|
|
8261
|
+
WSpinner: bs,
|
|
8262
|
+
WSteps: ks,
|
|
8238
8263
|
WSwitch: Vs,
|
|
8239
|
-
WTable:
|
|
8240
|
-
WTabs:
|
|
8241
|
-
WTag:
|
|
8264
|
+
WTable: yo,
|
|
8265
|
+
WTabs: Ns,
|
|
8266
|
+
WTag: Co,
|
|
8242
8267
|
WTextarea: Vo,
|
|
8243
|
-
WTimeline:
|
|
8268
|
+
WTimeline: Po,
|
|
8244
8269
|
WToolbar: Mo,
|
|
8245
|
-
WTooltip:
|
|
8246
|
-
WTransitionBounce:
|
|
8247
|
-
WTransitionExpand:
|
|
8248
|
-
WTransitionFade:
|
|
8249
|
-
WTransitionScale:
|
|
8250
|
-
WTransitionScaleFade:
|
|
8251
|
-
WTransitionSlide:
|
|
8252
|
-
WTransitionSlideFade:
|
|
8253
|
-
WTransitionTwist:
|
|
8254
|
-
WTree:
|
|
8255
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
8256
|
-
q.install = (e, t = {}) =>
|
|
8270
|
+
WTooltip: Wo,
|
|
8271
|
+
WTransitionBounce: Do,
|
|
8272
|
+
WTransitionExpand: jo,
|
|
8273
|
+
WTransitionFade: Xo,
|
|
8274
|
+
WTransitionScale: Jo,
|
|
8275
|
+
WTransitionScaleFade: ea,
|
|
8276
|
+
WTransitionSlide: la,
|
|
8277
|
+
WTransitionSlideFade: aa,
|
|
8278
|
+
WTransitionTwist: da,
|
|
8279
|
+
WTree: fa
|
|
8280
|
+
}, Symbol.toStringTag, { value: "Module" })), ga = q.install;
|
|
8281
|
+
q.install = (e, t = {}) => ga.call(q, e, { components: ma, ...t });
|
|
8257
8282
|
export {
|
|
8258
8283
|
q as default
|
|
8259
8284
|
};
|