wave-ui 3.26.1 → 3.27.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/types/types/components/WForm.d.ts +2 -1
- package/dist/types/types/components/WFormElement.d.ts +6 -0
- package/dist/wave-ui.cjs.js +3 -3
- package/dist/wave-ui.esm.js +725 -684
- package/dist/wave-ui.umd.js +3 -3
- package/package.json +2 -2
- package/src/wave-ui/components/w-accordion/item.vue +8 -3
- package/src/wave-ui/components/w-checkbox.vue +8 -8
- package/src/wave-ui/components/w-checkboxes.vue +2 -2
- package/src/wave-ui/components/w-form-element.vue +10 -1
- package/src/wave-ui/components/w-form.vue +3 -2
- package/src/wave-ui/components/w-input.vue +13 -13
- package/src/wave-ui/components/w-list.vue +8 -1
- package/src/wave-ui/components/w-radio.vue +8 -8
- package/src/wave-ui/components/w-radios.vue +2 -2
- package/src/wave-ui/components/w-rating.vue +4 -4
- package/src/wave-ui/components/w-select.vue +12 -7
- package/src/wave-ui/components/w-slider.vue +14 -9
- package/src/wave-ui/components/w-switch.vue +6 -6
- package/src/wave-ui/components/w-tabs/index.vue +7 -4
- package/src/wave-ui/components/w-textarea.vue +10 -10
- package/src/wave-ui/components/w-tooltip.vue +6 -1
- package/src/wave-ui/mixins/form-elements.js +21 -2
package/dist/wave-ui.esm.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { Fragment as e, KeepAlive as t, Teleport as n, Transition as r, TransitionGroup as i, computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createSlots as u, createTextVNode as d, createVNode as f, h as p, inject as m, mergeProps as h, normalizeClass as g, normalizeProps as _, normalizeStyle as v, onBeforeUnmount as y, onMounted as ee, openBlock as b, reactive as x, ref as S, render as
|
|
1
|
+
import { Fragment as e, KeepAlive as t, Teleport as n, Transition as r, TransitionGroup as i, computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createSlots as u, createTextVNode as d, createVNode as f, h as p, inject as m, mergeProps as h, normalizeClass as g, normalizeProps as _, normalizeStyle as v, onBeforeUnmount as y, onMounted as ee, openBlock as b, reactive as x, ref as S, render as te, renderList as C, renderSlot as w, resolveComponent as T, resolveDirective as E, resolveDynamicComponent as D, toDisplayString as O, toHandlers as k, useId as A, vModelDynamic as j, vModelText as M, vShow as N, withCtx as P, withDirectives as F, withKeys as I, withModifiers as L } from "vue";
|
|
2
2
|
//#region \0rolldown/runtime.js
|
|
3
|
-
var
|
|
3
|
+
var R = Object.defineProperty, ne = (e, t) => {
|
|
4
4
|
let n = {};
|
|
5
|
-
for (var r in e)
|
|
5
|
+
for (var r in e) R(n, r, {
|
|
6
6
|
get: e[r],
|
|
7
7
|
enumerable: !0
|
|
8
8
|
});
|
|
9
|
-
return t ||
|
|
9
|
+
return t || R(n, Symbol.toStringTag, { value: "Module" }), n;
|
|
10
10
|
}, re = x({
|
|
11
11
|
on: "#app",
|
|
12
12
|
breakpoints: {
|
|
@@ -57,7 +57,7 @@ var L = Object.defineProperty, ne = (e, t) => {
|
|
|
57
57
|
typeof r == "object" && typeof t[n] == "object" ? ie(e[n], t[n]) : t[n] = r;
|
|
58
58
|
}
|
|
59
59
|
return t;
|
|
60
|
-
},
|
|
60
|
+
}, z = (e) => console.warn(`Wave UI: ${e}`), B = (e) => console.error(`Wave UI: ${e}`), ae = (e) => {
|
|
61
61
|
["light", "dark"].forEach((t) => {
|
|
62
62
|
let n = e.colors[t];
|
|
63
63
|
n.shades = {};
|
|
@@ -76,7 +76,7 @@ var L = Object.defineProperty, ne = (e, t) => {
|
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
78
|
});
|
|
79
|
-
},
|
|
79
|
+
}, V = (e, t) => {
|
|
80
80
|
let n = { ...t.reduce((e, t) => {
|
|
81
81
|
e[t.label] = t.color;
|
|
82
82
|
let n = (t.shades || []).reduce((e, t) => (e[t.label] = t.color, e), {});
|
|
@@ -90,12 +90,12 @@ var L = Object.defineProperty, ne = (e, t) => {
|
|
|
90
90
|
}) };
|
|
91
91
|
return delete n.shades, n;
|
|
92
92
|
};
|
|
93
|
-
function
|
|
93
|
+
function H(e, t, n) {
|
|
94
94
|
return Math.min(Math.max(e, t), n);
|
|
95
95
|
}
|
|
96
|
-
function
|
|
96
|
+
function U(e) {
|
|
97
97
|
let t = e.toString(16);
|
|
98
|
-
return t.length === 1 && `0${t}` || t.length === 2 && t ||
|
|
98
|
+
return t.length === 1 && `0${t}` || t.length === 2 && t || B(`expected value from 0~255, got: ${e}`) || "";
|
|
99
99
|
}
|
|
100
100
|
function oe(e) {
|
|
101
101
|
return /^#[0-9a-f]{6}([0-9a-f]{2})?$/i.test(e);
|
|
@@ -107,9 +107,9 @@ function ce(e) {
|
|
|
107
107
|
return `#${e.substring(1).split("").map((e) => `${e}${e}`).join("")}`;
|
|
108
108
|
}
|
|
109
109
|
function le(e) {
|
|
110
|
-
return oe(e) && e || se(e) && ce(e) ||
|
|
110
|
+
return oe(e) && e || se(e) && ce(e) || B(`expected color hex string, got '${e}'`) || "";
|
|
111
111
|
}
|
|
112
|
-
function
|
|
112
|
+
function W(e) {
|
|
113
113
|
let t = le(e);
|
|
114
114
|
return {
|
|
115
115
|
red: parseInt(t.substring(1, 3), 16),
|
|
@@ -120,10 +120,10 @@ function U(e) {
|
|
|
120
120
|
};
|
|
121
121
|
}
|
|
122
122
|
function ue(e, t, n, r) {
|
|
123
|
-
return `#${
|
|
123
|
+
return `#${U(e)}${U(t)}${U(n)}${r ? U(Math.floor(r * 255)) : ""}`;
|
|
124
124
|
}
|
|
125
|
-
function
|
|
126
|
-
let r =
|
|
125
|
+
function G(e, t, n = 50) {
|
|
126
|
+
let r = W(e), i = W(t), a = H(n, 0, 100) / 100, o = 2 * a - 1, s = r.alpha - i.alpha, c = ((o * s === -1 ? o : (o + s) / (1 + o * s)) + 1) / 2, l = 1 - c, u = H(Math.round(r.red * c + i.red * l), 0, 255), d = H(Math.round(r.green * c + i.green * l), 0, 255), f = H(Math.round(r.blue * c + i.blue * l), 0, 255), p = r.alpha * a + i.alpha * (1 - a), m = [
|
|
127
127
|
u,
|
|
128
128
|
d,
|
|
129
129
|
f
|
|
@@ -131,12 +131,12 @@ function W(e, t, n = 50) {
|
|
|
131
131
|
return (r.hasAlpha || i.hasAlpha || p !== 1) && m.push(p), ue(...m);
|
|
132
132
|
}
|
|
133
133
|
function de(e, t = 15) {
|
|
134
|
-
return
|
|
134
|
+
return G("#ffffff", e, t);
|
|
135
135
|
}
|
|
136
136
|
function fe(e, t = 12.4) {
|
|
137
|
-
return
|
|
137
|
+
return G("#000000", e, t);
|
|
138
138
|
}
|
|
139
|
-
var
|
|
139
|
+
var K = [
|
|
140
140
|
{
|
|
141
141
|
label: "pink",
|
|
142
142
|
color: "#e91e63",
|
|
@@ -1179,14 +1179,14 @@ var G = [
|
|
|
1179
1179
|
label: "inherit",
|
|
1180
1180
|
color: "inherit"
|
|
1181
1181
|
}
|
|
1182
|
-
],
|
|
1182
|
+
], q = {
|
|
1183
1183
|
cssScope: ".w-app",
|
|
1184
1184
|
baseIncrement: 4
|
|
1185
|
-
},
|
|
1185
|
+
}, J = {
|
|
1186
1186
|
keys: [],
|
|
1187
1187
|
values: []
|
|
1188
|
-
},
|
|
1189
|
-
let n = "", r = {}, { info: i, warning: a, success: o, error: s, shades: c, ...l } = e, { cssScope: u } =
|
|
1188
|
+
}, pe = null, me = (e, t) => {
|
|
1189
|
+
let n = "", r = {}, { info: i, warning: a, success: o, error: s, shades: c, ...l } = e, { cssScope: u } = q;
|
|
1190
1190
|
for (let e in l) n += `${u} .${e}--bg{background-color:var(--w-${e}-color)}${u} .${e}{color:var(--w-${e}-color)}`;
|
|
1191
1191
|
for (let e in c) n += `${u} .${e}--bg{background-color:${c[e]}}${u} .${e}{color:${c[e]}}`;
|
|
1192
1192
|
let d = {
|
|
@@ -1202,8 +1202,8 @@ var G = [
|
|
|
1202
1202
|
return Object.entries(r).forEach(([e, t]) => {
|
|
1203
1203
|
f += `--w-${e}-color: ${t};`;
|
|
1204
1204
|
}), `:root{${f}}${n}`;
|
|
1205
|
-
},
|
|
1206
|
-
let n = "", { cssScope: r } =
|
|
1205
|
+
}, he = (e, t) => {
|
|
1206
|
+
let n = "", { cssScope: r } = q;
|
|
1207
1207
|
return e.forEach(({ min: e, label: i }) => {
|
|
1208
1208
|
if (i === "xs") for (let e = 0; e < t; e++) n += `${r} .${i}${t - e}{width:${parseFloat(((t - e) * 100 / t).toFixed(4))}%;}`;
|
|
1209
1209
|
else {
|
|
@@ -1212,8 +1212,8 @@ var G = [
|
|
|
1212
1212
|
n += "}";
|
|
1213
1213
|
}
|
|
1214
1214
|
}), n;
|
|
1215
|
-
},
|
|
1216
|
-
let t = "", { cssScope: n, baseIncrement: r } =
|
|
1215
|
+
}, ge = (e) => {
|
|
1216
|
+
let t = "", { cssScope: n, baseIncrement: r } = q, i = /* @__PURE__ */ "show{display:block}.hide{display:none}.d-flex{display:flex}.d-iflex{display:inline-flex}.d-block{display:block}.d-iblock{display:inline-block}.relative{position:relative}.absolute{position:absolute}.fixed{position:fixed}.sticky{position:sticky}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.text-nowrap{white-space:nowrap}.row{flex-direction:row}.column{flex-direction:column}.column-reverse{flex-direction:column-reverse}.grow{flex-grow:1;flex-basis:auto}.no-grow{flex-grow:0}.shrink{flex-shrink:1;margin-left:auto;margin-right:auto}.no-shrink{flex-shrink:0}.wrap{flex-wrap: wrap}.no-wrap{flex-wrap: nowrap}.fill-width{width:100%}.fill-height{height:100%}.h-auto{height:auto}.h-screen{height:100vh}.basis-zero{flex-basis:0}.align-start{align-items:flex-start}.align-center{align-items:center}.align-end{align-items:flex-end}.align-self-start{align-self:flex-start}.align-self-center{align-self:center}.align-self-end{align-self:flex-end}.align-self-stretch{align-self:stretch}.justify-start{justify-content:flex-start}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-space-between{justify-content:space-between}.justify-space-around{justify-content:space-around}.justify-space-evenly{justify-content:space-evenly}".split("."), a = Array(12).fill();
|
|
1217
1217
|
return e.forEach(({ label: e, min: o }) => {
|
|
1218
1218
|
e !== "xs" && (t += `@media(min-width:${o}px){` + i.map((t) => `${n} .${e}u-${t}`).join("") + a.map((t, n) => `.w-grid.${e}u-columns${n + 1}{grid-template-columns:repeat(${n + 1},1fr);}`).join("") + a.map((t, n) => `.w-flex.${e}u-gap${n + 1},.w-grid.${e}u-gap${n + 1}{gap:${(n + 1) * r}px;}`).join("") + `.w-flex.${e}u-gap0,.w-flex.${e}u-gap0{gap:0}}`);
|
|
1219
1219
|
}), e.forEach(({ label: e, min: o, max: s }) => {
|
|
@@ -1221,11 +1221,11 @@ var G = [
|
|
|
1221
1221
|
}), e.forEach(({ label: e, max: o }) => {
|
|
1222
1222
|
e !== "xl" && (t += `@media (max-width:${o}px){` + i.map((t) => `${n} .${e}d-${t}`).join("") + a.map((t, n) => `.w-grid.${e}d-columns${n + 1}{grid-template-columns:repeat(${n + 1},1fr);}`).join("") + a.map((t, n) => `.w-flex.${e}d-gap${n + 1},.w-grid.${e}d-gap${n + 1}{gap:${(n + 1) * r}px;}`).join("") + `.w-flex.${e}d-gap0,.w-flex.${e}d-gap0{gap:0}}`);
|
|
1223
1223
|
}), t;
|
|
1224
|
-
},
|
|
1225
|
-
let t = window.innerWidth, n =
|
|
1224
|
+
}, _e = (e) => {
|
|
1225
|
+
let t = window.innerWidth, n = J.values.slice(0);
|
|
1226
1226
|
n.push(t), n.sort((e, t) => e - t);
|
|
1227
|
-
let r =
|
|
1228
|
-
r !==
|
|
1227
|
+
let r = J.keys[n.indexOf(t)] || "xl";
|
|
1228
|
+
r !== pe && (pe = r, e.breakpoint = {
|
|
1229
1229
|
name: r,
|
|
1230
1230
|
xs: r === "xs",
|
|
1231
1231
|
sm: r === "sm",
|
|
@@ -1234,14 +1234,14 @@ var G = [
|
|
|
1234
1234
|
xl: r === "xl",
|
|
1235
1235
|
width: t
|
|
1236
1236
|
}), e.breakpoint.width = window.innerWidth;
|
|
1237
|
-
},
|
|
1237
|
+
}, ve = (e) => {
|
|
1238
1238
|
let { config: t } = e;
|
|
1239
|
-
if (
|
|
1239
|
+
if (J = {
|
|
1240
1240
|
keys: Object.keys(t.breakpoints),
|
|
1241
1241
|
values: Object.values(t.breakpoints)
|
|
1242
1242
|
}, !document.getElementById("wave-ui-styles")) {
|
|
1243
1243
|
let e = document.createElement("style");
|
|
1244
|
-
e.id = "wave-ui-styles", e.innerHTML =
|
|
1244
|
+
e.id = "wave-ui-styles", e.innerHTML = be(t);
|
|
1245
1245
|
let n = document.head.querySelectorAll("style,link[rel=\"stylesheet\"]");
|
|
1246
1246
|
if (t.css.prependCss) {
|
|
1247
1247
|
let t = n[0];
|
|
@@ -1251,15 +1251,15 @@ var G = [
|
|
|
1251
1251
|
t ? t.after(e) : document.head.appendChild(e);
|
|
1252
1252
|
}
|
|
1253
1253
|
}
|
|
1254
|
-
|
|
1255
|
-
},
|
|
1254
|
+
_e(e), window.addEventListener("resize", () => _e(e));
|
|
1255
|
+
}, ye = (e, t, n) => {
|
|
1256
1256
|
if (!document.getElementById("wave-ui-colors")) {
|
|
1257
1257
|
let r = document.createElement("style");
|
|
1258
|
-
r.id = "wave-ui-colors", r.innerHTML =
|
|
1258
|
+
r.id = "wave-ui-colors", r.innerHTML = me(e, t, n);
|
|
1259
1259
|
let i = document.head.querySelectorAll("style,link[rel=\"stylesheet\"]")[0];
|
|
1260
1260
|
i ? i.before(r) : document.head.appendChild(r);
|
|
1261
1261
|
}
|
|
1262
|
-
},
|
|
1262
|
+
}, be = (e) => {
|
|
1263
1263
|
let t = Object.entries(e.breakpoints), n = t.map(([e, n], r) => {
|
|
1264
1264
|
let [, i = 0] = t[r - 1] || [];
|
|
1265
1265
|
return {
|
|
@@ -1268,26 +1268,26 @@ var G = [
|
|
|
1268
1268
|
max: n
|
|
1269
1269
|
};
|
|
1270
1270
|
}), r = getComputedStyle(document.documentElement);
|
|
1271
|
-
|
|
1271
|
+
q.cssScope = r.getPropertyValue("--w-css-scope"), q.baseIncrement = parseInt(r.getPropertyValue("--w-base-increment"));
|
|
1272
1272
|
let i = "";
|
|
1273
|
-
return i +=
|
|
1274
|
-
},
|
|
1275
|
-
function
|
|
1276
|
-
let m =
|
|
1273
|
+
return i += he(n, e.css.grid), e.css.breakpointLayoutClasses && (i += ge(n)), i;
|
|
1274
|
+
}, xe = ["innerHTML"];
|
|
1275
|
+
function Se(t, r, a, u, d, p) {
|
|
1276
|
+
let m = T("w-alert");
|
|
1277
1277
|
return b(), o(n, { to: ".w-app" }, [f(i, {
|
|
1278
1278
|
class: g(["w-notification-manager", { "w-notification-manager--left": p.conf.align === "left" }]),
|
|
1279
1279
|
tag: "div",
|
|
1280
1280
|
name: p.transition,
|
|
1281
1281
|
appear: ""
|
|
1282
1282
|
}, {
|
|
1283
|
-
default:
|
|
1283
|
+
default: P(() => [(b(!0), c(e, null, C(p.notifications, (t) => (b(), c(e, null, [t._value ? (b(), o(m, h({
|
|
1284
1284
|
class: "white--bg",
|
|
1285
1285
|
key: t._uid,
|
|
1286
1286
|
modelValue: t._value,
|
|
1287
1287
|
"onUpdate:modelValue": (e) => t._value = e,
|
|
1288
1288
|
onClose: t.dismiss
|
|
1289
1289
|
}, { ref_for: !0 }, p.notifProps(t)), {
|
|
1290
|
-
default:
|
|
1290
|
+
default: P(() => [l("div", { innerHTML: t.message }, null, 8, xe)]),
|
|
1291
1291
|
_: 2
|
|
1292
1292
|
}, 1040, [
|
|
1293
1293
|
"modelValue",
|
|
@@ -1303,7 +1303,7 @@ var Y = (e, t) => {
|
|
|
1303
1303
|
let n = e.__vccOpts || e;
|
|
1304
1304
|
for (let [e, r] of t) n[e] = r;
|
|
1305
1305
|
return n;
|
|
1306
|
-
},
|
|
1306
|
+
}, Ce = /* @__PURE__ */ Y({
|
|
1307
1307
|
name: "w-notification-manager",
|
|
1308
1308
|
computed: {
|
|
1309
1309
|
conf() {
|
|
@@ -1320,7 +1320,7 @@ var Y = (e, t) => {
|
|
|
1320
1320
|
let { _value: t, _uid: n, message: r, timeout: i, ...a } = e;
|
|
1321
1321
|
return a.dismiss &&= !0, a;
|
|
1322
1322
|
} }
|
|
1323
|
-
}, [["render",
|
|
1323
|
+
}, [["render", Se]]), we = class e {
|
|
1324
1324
|
static #e;
|
|
1325
1325
|
notifications;
|
|
1326
1326
|
_uid;
|
|
@@ -1358,17 +1358,17 @@ var Y = (e, t) => {
|
|
|
1358
1358
|
dismiss(e) {
|
|
1359
1359
|
this.notifications = this.notifications.filter((t) => t._uid !== e);
|
|
1360
1360
|
}
|
|
1361
|
-
},
|
|
1361
|
+
}, Te = (e) => {
|
|
1362
1362
|
let t = document.createElement("div");
|
|
1363
1363
|
document.body.appendChild(t);
|
|
1364
|
-
let n = p(
|
|
1365
|
-
n.appContext = e._context,
|
|
1366
|
-
},
|
|
1364
|
+
let n = p(Ce);
|
|
1365
|
+
n.appContext = e._context, te(n, t), t.remove();
|
|
1366
|
+
}, Ee = !1, De = (e) => {
|
|
1367
1367
|
let t = window.matchMedia("(prefers-color-scheme: dark)");
|
|
1368
1368
|
e.preferredTheme = t.matches ? "dark" : "light", e.switchTheme(e.preferredTheme), t.addEventListener("change", (t) => {
|
|
1369
1369
|
e.preferredTheme = t.matches ? "dark" : "light", e.switchTheme(e.preferredTheme);
|
|
1370
1370
|
});
|
|
1371
|
-
},
|
|
1371
|
+
}, Oe = (e, t) => {
|
|
1372
1372
|
for (let n in t) if (e.props?.[n]) e.props[n].default = t[n];
|
|
1373
1373
|
else {
|
|
1374
1374
|
let r = !1;
|
|
@@ -1377,7 +1377,7 @@ var Y = (e, t) => {
|
|
|
1377
1377
|
i.props[n].default = t[n], r = !0;
|
|
1378
1378
|
break;
|
|
1379
1379
|
}
|
|
1380
|
-
r ||
|
|
1380
|
+
r || z(`Attempting to set a preset on a prop that doesn't exist: \`${e.name}.${n}\`.`);
|
|
1381
1381
|
}
|
|
1382
1382
|
}
|
|
1383
1383
|
}, X = class e {
|
|
@@ -1402,7 +1402,7 @@ var Y = (e, t) => {
|
|
|
1402
1402
|
switchTheme(e) {
|
|
1403
1403
|
this.theme = e, document.documentElement.setAttribute("data-theme", e), document.head.querySelector("#wave-ui-colors")?.remove?.();
|
|
1404
1404
|
let t = this.config.colors[this.theme];
|
|
1405
|
-
|
|
1405
|
+
ye(t, this.config.css.colorShadeCssVariables), this.colors = V(t, K);
|
|
1406
1406
|
},
|
|
1407
1407
|
setAppClasses(...e) {
|
|
1408
1408
|
let t = document.querySelector(".w-app");
|
|
@@ -1419,19 +1419,19 @@ var Y = (e, t) => {
|
|
|
1419
1419
|
let { components: r = {} } = n || {};
|
|
1420
1420
|
for (let e in r) {
|
|
1421
1421
|
let i = r[e];
|
|
1422
|
-
n.presets?.[i.name] &&
|
|
1422
|
+
n.presets?.[i.name] && Oe(i, n.presets[i.name]), t.component(i.name, i);
|
|
1423
1423
|
}
|
|
1424
1424
|
t.mixin({ beforeMount() {
|
|
1425
|
-
if (!
|
|
1426
|
-
|
|
1425
|
+
if (!Ee) {
|
|
1426
|
+
Ee = !0;
|
|
1427
1427
|
let e = m("$waveui"), { config: n } = e;
|
|
1428
|
-
(document.querySelector(n.on) || document.body).classList.add("w-app"), n.theme === "auto" ?
|
|
1428
|
+
(document.querySelector(n.on) || document.body).classList.add("w-app"), n.theme === "auto" ? De(e) : e.switchTheme(n.theme, !0), ve(e), Te(t), t._context.mixins.find((e) => e.mounted &&= void 0);
|
|
1429
1429
|
}
|
|
1430
1430
|
} }), new e(t, n);
|
|
1431
1431
|
}
|
|
1432
1432
|
constructor(e, t = {}) {
|
|
1433
1433
|
if (e.config.globalProperties.$waveui) return;
|
|
1434
|
-
if (this.$waveui._notificationManager = new
|
|
1434
|
+
if (this.$waveui._notificationManager = new we(), t.theme ||= "light", t.colors) {
|
|
1435
1435
|
let e = { ...t.colors };
|
|
1436
1436
|
t.colors.light || (t.colors.light = e), t.colors.dark || (t.colors.dark = e), t.colors = {
|
|
1437
1437
|
light: t.colors.light,
|
|
@@ -1441,21 +1441,21 @@ var Y = (e, t) => {
|
|
|
1441
1441
|
let { components: n, ...r } = t;
|
|
1442
1442
|
r = this.$waveui.config = ie(r), r.css.colorShades && ae(r);
|
|
1443
1443
|
let i = x(this.$waveui);
|
|
1444
|
-
e.config.globalProperties.$waveui = i, e.provide("$waveui", i), r.theme !== "auto" && (this.$waveui.colors =
|
|
1444
|
+
e.config.globalProperties.$waveui = i, e.provide("$waveui", i), r.theme !== "auto" && (this.$waveui.colors = V(r.colors[r.theme], K));
|
|
1445
1445
|
}
|
|
1446
|
-
}, Z = (e = {}) => (typeof e == "string" ? e = { [e]: !0 } : Array.isArray(e) && (e = { [e.join(" ")]: !0 }), e),
|
|
1447
|
-
function
|
|
1448
|
-
return b(), c("div",
|
|
1446
|
+
}, Z = (e = {}) => (typeof e == "string" ? e = { [e]: !0 } : Array.isArray(e) && (e = { [e.join(" ")]: !0 }), e), ke = { class: "w-accordion__item-content" };
|
|
1447
|
+
function Ae(e, t, n, r, i, a) {
|
|
1448
|
+
return b(), c("div", ke, [w(e.$slots, "default")]);
|
|
1449
1449
|
}
|
|
1450
|
-
var
|
|
1450
|
+
var je = /* @__PURE__ */ Y({
|
|
1451
1451
|
name: "accordion-content",
|
|
1452
1452
|
props: { item: {
|
|
1453
1453
|
type: Object,
|
|
1454
1454
|
default: () => ({})
|
|
1455
1455
|
} }
|
|
1456
|
-
}, [["render",
|
|
1457
|
-
function
|
|
1458
|
-
let d =
|
|
1456
|
+
}, [["render", Ae]]), Me = ["aria-expanded"], Ne = ["tabindex"], Pe = ["innerHTML"], Fe = ["innerHTML"], Ie = ["innerHTML"];
|
|
1457
|
+
function Le(e, n, r, i, a, u) {
|
|
1458
|
+
let d = T("w-button"), p = T("accordion-content"), m = T("w-transition-expand");
|
|
1459
1459
|
return b(), c("div", {
|
|
1460
1460
|
class: g(["w-accordion__item", u.itemClasses]),
|
|
1461
1461
|
"aria-expanded": u.accordionItem._expanded ? "true" : "false"
|
|
@@ -1463,7 +1463,7 @@ function Ie(e, n, r, i, a, u) {
|
|
|
1463
1463
|
class: g(["w-accordion__item-title", u.titleClasses]),
|
|
1464
1464
|
onClick: n[4] ||= (e) => !u.accordionItem._disabled && u.toggleItem(u.accordionItem, e),
|
|
1465
1465
|
onFocus: n[5] ||= (t) => e.$emit("focus", u.accordionItem),
|
|
1466
|
-
onKeypress: n[6] ||=
|
|
1466
|
+
onKeypress: n[6] ||= I((e) => !u.accordionItem._disabled && u.toggleItem(u.accordionItem, e), ["enter"]),
|
|
1467
1467
|
tabindex: !u.accordionItem._disabled && 0
|
|
1468
1468
|
}, [
|
|
1469
1469
|
u.options.expandIcon && !u.options.expandIconRight ? (b(), o(d, {
|
|
@@ -1477,22 +1477,22 @@ function Ie(e, n, r, i, a, u) {
|
|
|
1477
1477
|
disabled: u.accordionItem._disabled || null,
|
|
1478
1478
|
tabindex: -1,
|
|
1479
1479
|
text: "",
|
|
1480
|
-
onKeypress: n[0] ||=
|
|
1481
|
-
onClick: n[1] ||=
|
|
1480
|
+
onKeypress: n[0] ||= L(() => {}, ["stop"]),
|
|
1481
|
+
onClick: n[1] ||= L((e) => !u.accordionItem._disabled && u.toggleItem(u.accordionItem, e), ["stop"])
|
|
1482
1482
|
}, null, 8, [
|
|
1483
1483
|
"icon",
|
|
1484
1484
|
"icon-props",
|
|
1485
1485
|
"disabled",
|
|
1486
1486
|
"class"
|
|
1487
1487
|
])) : s("", !0),
|
|
1488
|
-
|
|
1488
|
+
w(e.$slots, "title", {
|
|
1489
1489
|
item: u.getOriginalItem(u.accordionItem),
|
|
1490
1490
|
expanded: u.accordionItem._expanded,
|
|
1491
1491
|
index: u.accordionItem._index + 1
|
|
1492
1492
|
}, () => [l("div", {
|
|
1493
1493
|
class: "grow",
|
|
1494
1494
|
innerHTML: u.accordionItem[u.options.itemTitleKey]
|
|
1495
|
-
}, null, 8,
|
|
1495
|
+
}, null, 8, Pe)]),
|
|
1496
1496
|
u.options.expandIcon && u.options.expandIconRight ? (b(), o(d, {
|
|
1497
1497
|
key: 1,
|
|
1498
1498
|
class: g(["w-accordion__expand-icon", {
|
|
@@ -1501,26 +1501,26 @@ function Ie(e, n, r, i, a, u) {
|
|
|
1501
1501
|
}]),
|
|
1502
1502
|
icon: u.accordionItem._expanded && u.options.collapseIcon || u.options.expandIcon,
|
|
1503
1503
|
text: "",
|
|
1504
|
-
onKeypress: n[2] ||=
|
|
1505
|
-
onClick: n[3] ||=
|
|
1504
|
+
onKeypress: n[2] ||= L(() => {}, ["stop"]),
|
|
1505
|
+
onClick: n[3] ||= L((e) => !u.accordionItem._disabled && u.toggleItem(u.accordionItem, e), ["stop"])
|
|
1506
1506
|
}, null, 8, ["icon", "class"])) : s("", !0)
|
|
1507
|
-
], 42,
|
|
1507
|
+
], 42, Ne), u.options.keepInDom ? (b(), o(m, {
|
|
1508
1508
|
key: 0,
|
|
1509
1509
|
y: "",
|
|
1510
1510
|
onAfterLeave: n[7] ||= (e) => u.onEndOfCollapse(u.accordionItem),
|
|
1511
1511
|
duration: u.options.duration
|
|
1512
1512
|
}, {
|
|
1513
|
-
default:
|
|
1513
|
+
default: P(() => [F(f(p, {
|
|
1514
1514
|
item: u.accordionItem,
|
|
1515
1515
|
class: g(u.contentClasses)
|
|
1516
1516
|
}, {
|
|
1517
|
-
default:
|
|
1517
|
+
default: P(() => [w(e.$slots, "content", {
|
|
1518
1518
|
item: u.getOriginalItem(u.accordionItem),
|
|
1519
1519
|
expanded: u.accordionItem._expanded,
|
|
1520
1520
|
index: u.accordionItem._index + 1
|
|
1521
|
-
}, () => [l("div", { innerHTML: u.accordionItem[u.options.itemContentKey] }, null, 8,
|
|
1521
|
+
}, () => [l("div", { innerHTML: u.accordionItem[u.options.itemContentKey] }, null, 8, Fe)])]),
|
|
1522
1522
|
_: 3
|
|
1523
|
-
}, 8, ["item", "class"]), [[
|
|
1523
|
+
}, 8, ["item", "class"]), [[N, u.accordionItem._expanded]])]),
|
|
1524
1524
|
_: 3
|
|
1525
1525
|
}, 8, ["duration"])) : (b(), o(m, {
|
|
1526
1526
|
key: 1,
|
|
@@ -1528,24 +1528,27 @@ function Ie(e, n, r, i, a, u) {
|
|
|
1528
1528
|
onAfterLeave: n[8] ||= (e) => u.onEndOfCollapse(u.accordionItem),
|
|
1529
1529
|
duration: u.options.duration
|
|
1530
1530
|
}, {
|
|
1531
|
-
default:
|
|
1531
|
+
default: P(() => [(b(), o(t, { exclude: u.options.keepAlive ? "" : "accordion-content" }, [u.accordionItem._expanded ? (b(), o(p, {
|
|
1532
1532
|
key: u.accordionItem._cuid,
|
|
1533
1533
|
item: u.accordionItem,
|
|
1534
1534
|
class: g(u.contentClasses)
|
|
1535
1535
|
}, {
|
|
1536
|
-
default:
|
|
1536
|
+
default: P(() => [w(e.$slots, "content", {
|
|
1537
1537
|
item: u.getOriginalItem(u.accordionItem),
|
|
1538
1538
|
expanded: u.accordionItem._expanded,
|
|
1539
1539
|
index: u.accordionItem._index + 1
|
|
1540
|
-
}, () => [l("div", { innerHTML: u.accordionItem[u.options.itemContentKey] }, null, 8,
|
|
1540
|
+
}, () => [l("div", { innerHTML: u.accordionItem[u.options.itemContentKey] }, null, 8, Ie)])]),
|
|
1541
1541
|
_: 3
|
|
1542
1542
|
}, 8, ["item", "class"])) : s("", !0)], 1032, ["exclude"]))]),
|
|
1543
1543
|
_: 3
|
|
1544
|
-
}, 8, ["duration"]))], 10,
|
|
1544
|
+
}, 8, ["duration"]))], 10, Me);
|
|
1545
1545
|
}
|
|
1546
|
-
var
|
|
1546
|
+
var Re = /* @__PURE__ */ Y({
|
|
1547
1547
|
name: "w-accordion-item",
|
|
1548
|
-
|
|
1548
|
+
setup() {
|
|
1549
|
+
return { accordionItemUid: A() };
|
|
1550
|
+
},
|
|
1551
|
+
components: { AccordionContent: je },
|
|
1549
1552
|
props: {
|
|
1550
1553
|
title: { type: String },
|
|
1551
1554
|
content: { type: String },
|
|
@@ -1567,7 +1570,7 @@ var Le = /* @__PURE__ */ Y({
|
|
|
1567
1570
|
computed: {
|
|
1568
1571
|
accordionItem: {
|
|
1569
1572
|
get() {
|
|
1570
|
-
return this.getAccordionItem(this.
|
|
1573
|
+
return this.getAccordionItem(this.accordionItemUid);
|
|
1571
1574
|
},
|
|
1572
1575
|
set() {}
|
|
1573
1576
|
},
|
|
@@ -1584,7 +1587,7 @@ var Le = /* @__PURE__ */ Y({
|
|
|
1584
1587
|
} },
|
|
1585
1588
|
created() {
|
|
1586
1589
|
this.registerItem({
|
|
1587
|
-
_cuid: this.
|
|
1590
|
+
_cuid: this.accordionItemUid,
|
|
1588
1591
|
_index: 0,
|
|
1589
1592
|
_expanded: this.expanded,
|
|
1590
1593
|
_disabled: this.disabled,
|
|
@@ -1593,14 +1596,14 @@ var Le = /* @__PURE__ */ Y({
|
|
|
1593
1596
|
});
|
|
1594
1597
|
},
|
|
1595
1598
|
beforeUnmount() {
|
|
1596
|
-
this.unregisterItem(this.
|
|
1599
|
+
this.unregisterItem(this.accordionItemUid);
|
|
1597
1600
|
}
|
|
1598
|
-
}, [["render",
|
|
1601
|
+
}, [["render", Le]]);
|
|
1599
1602
|
//#endregion
|
|
1600
1603
|
//#region src/wave-ui/components/w-accordion/index.vue?vue&type=template&lang.js
|
|
1601
|
-
function
|
|
1602
|
-
let u =
|
|
1603
|
-
return b(), c("div", { class: g(["w-accordion", l.accordionClasses]) }, [l.accordionItemsProvided ?
|
|
1604
|
+
function ze(t, n, r, i, a, l) {
|
|
1605
|
+
let u = T("w-accordion-item");
|
|
1606
|
+
return b(), c("div", { class: g(["w-accordion", l.accordionClasses]) }, [l.accordionItemsProvided ? w(t.$slots, "default", { key: 0 }) : (r.items || []).length ? (b(!0), c(e, { key: 1 }, C(r.items.length ? r.items : t.accordionItems, (e, r) => (b(), o(u, {
|
|
1604
1607
|
key: r,
|
|
1605
1608
|
class: g(l.itemClasses),
|
|
1606
1609
|
title: e.title,
|
|
@@ -1609,23 +1612,23 @@ function Re(t, n, r, i, a, l) {
|
|
|
1609
1612
|
disabled: e.disabled || e._disabled,
|
|
1610
1613
|
onFocus: n[0] ||= (e) => t.$emit("focus", e)
|
|
1611
1614
|
}, {
|
|
1612
|
-
title:
|
|
1615
|
+
title: P(({ item: e, expanded: n, index: r }) => [t.$slots[`item-title.${e.id || r}`] ? w(t.$slots, `item-title.${e.id || r}`, {
|
|
1613
1616
|
key: 0,
|
|
1614
1617
|
item: e,
|
|
1615
1618
|
expanded: n,
|
|
1616
1619
|
index: r
|
|
1617
|
-
}) :
|
|
1620
|
+
}) : w(t.$slots, "item-title", {
|
|
1618
1621
|
key: 1,
|
|
1619
1622
|
item: e,
|
|
1620
1623
|
expanded: n,
|
|
1621
1624
|
index: r
|
|
1622
1625
|
})]),
|
|
1623
|
-
content:
|
|
1626
|
+
content: P(({ item: e, expanded: n, index: r }) => [t.$slots[`item-content.${e.id || r}`] ? w(t.$slots, `item-content.${e.id || r}`, {
|
|
1624
1627
|
key: 0,
|
|
1625
1628
|
item: e,
|
|
1626
1629
|
expanded: n,
|
|
1627
1630
|
index: r
|
|
1628
|
-
}) :
|
|
1631
|
+
}) : w(t.$slots, "item-content", {
|
|
1629
1632
|
key: 1,
|
|
1630
1633
|
item: e,
|
|
1631
1634
|
expanded: n,
|
|
@@ -1640,7 +1643,7 @@ function Re(t, n, r, i, a, l) {
|
|
|
1640
1643
|
"disabled"
|
|
1641
1644
|
]))), 128)) : s("", !0)], 2);
|
|
1642
1645
|
}
|
|
1643
|
-
var
|
|
1646
|
+
var Be = /* @__PURE__ */ Y({
|
|
1644
1647
|
name: "w-accordion",
|
|
1645
1648
|
props: {
|
|
1646
1649
|
modelValue: { type: Array },
|
|
@@ -1702,7 +1705,7 @@ var ze = /* @__PURE__ */ Y({
|
|
|
1702
1705
|
default: !1
|
|
1703
1706
|
}
|
|
1704
1707
|
},
|
|
1705
|
-
components: { WAccordionItem:
|
|
1708
|
+
components: { WAccordionItem: Re },
|
|
1706
1709
|
emits: [
|
|
1707
1710
|
"input",
|
|
1708
1711
|
"update:modelValue",
|
|
@@ -1783,7 +1786,7 @@ var ze = /* @__PURE__ */ Y({
|
|
|
1783
1786
|
}
|
|
1784
1787
|
},
|
|
1785
1788
|
created() {
|
|
1786
|
-
isNaN(this.items) ||
|
|
1789
|
+
isNaN(this.items) || B("Since version 3.17.3, the w-accordion `items` prop can no longer be a Number.\n Please use the w-accordion-item component instead for advanced custom rendering.\n https://antoniandre.github.io/wave-ui/w-accordion#w-accordion-item");
|
|
1787
1790
|
},
|
|
1788
1791
|
unmounted() {
|
|
1789
1792
|
this.accordionItems = [];
|
|
@@ -1795,9 +1798,9 @@ var ze = /* @__PURE__ */ Y({
|
|
|
1795
1798
|
}
|
|
1796
1799
|
e.forEach((e, t) => (this.accordionItems[t] || {})._expanded = e);
|
|
1797
1800
|
} }
|
|
1798
|
-
}, [["render",
|
|
1799
|
-
function
|
|
1800
|
-
let f =
|
|
1801
|
+
}, [["render", ze]]), Ve = { class: "w-alert__content" };
|
|
1802
|
+
function He(t, n, r, i, a, u) {
|
|
1803
|
+
let f = T("w-icon"), p = T("w-button");
|
|
1801
1804
|
return a.show ? (b(), c("div", {
|
|
1802
1805
|
key: 0,
|
|
1803
1806
|
class: g(["w-alert", u.classes])
|
|
@@ -1806,10 +1809,10 @@ function Ve(t, n, r, i, a, u) {
|
|
|
1806
1809
|
key: 0,
|
|
1807
1810
|
class: "w-alert__icon"
|
|
1808
1811
|
}, {
|
|
1809
|
-
default:
|
|
1812
|
+
default: P(() => [d(O(u.type ? u.typeIcon : r.icon), 1)]),
|
|
1810
1813
|
_: 1
|
|
1811
1814
|
})) : s("", !0),
|
|
1812
|
-
l("div",
|
|
1815
|
+
l("div", Ve, [w(t.$slots, "default")]),
|
|
1813
1816
|
r.dismiss ? (b(), o(p, {
|
|
1814
1817
|
key: 1,
|
|
1815
1818
|
class: "w-alert__dismiss",
|
|
@@ -1821,9 +1824,9 @@ function Ve(t, n, r, i, a, u) {
|
|
|
1821
1824
|
sm: "",
|
|
1822
1825
|
text: ""
|
|
1823
1826
|
})) : s("", !0)
|
|
1824
|
-
], 64)) :
|
|
1827
|
+
], 64)) : w(t.$slots, "default", { key: 1 })], 2)) : s("", !0);
|
|
1825
1828
|
}
|
|
1826
|
-
var
|
|
1829
|
+
var Ue = /* @__PURE__ */ Y({
|
|
1827
1830
|
name: "w-alert",
|
|
1828
1831
|
props: {
|
|
1829
1832
|
modelValue: { default: !0 },
|
|
@@ -1901,19 +1904,19 @@ var He = /* @__PURE__ */ Y({
|
|
|
1901
1904
|
watch: { modelValue(e) {
|
|
1902
1905
|
this.show = e;
|
|
1903
1906
|
} }
|
|
1904
|
-
}, [["render",
|
|
1905
|
-
function
|
|
1906
|
-
let u =
|
|
1907
|
+
}, [["render", He]]), We = { class: "w-autocomplete__selection" }, Ge = ["innerHTML"], Ke = ["innerHTML"], qe = ["value"], Je = ["onClick"], Ye = ["innerHTML"], Xe = ["innerHTML"];
|
|
1908
|
+
function Ze(t, n, r, i, a, o) {
|
|
1909
|
+
let u = T("w-button"), d = T("w-transition-slide-fade");
|
|
1907
1910
|
return b(), c("div", {
|
|
1908
1911
|
class: g(["w-autocomplete", o.classes]),
|
|
1909
1912
|
onClick: n[5] ||= (...e) => o.onClick && o.onClick(...e),
|
|
1910
1913
|
style: v(t.$attrs.style)
|
|
1911
1914
|
}, [
|
|
1912
|
-
t.selection.length ? (b(!0), c(e, { key: 0 },
|
|
1915
|
+
t.selection.length ? (b(!0), c(e, { key: 0 }, C(t.selection, (e, n) => (b(), c("div", We, [w(t.$slots, "selection", {
|
|
1913
1916
|
item: e,
|
|
1914
1917
|
unselect: (e) => o.unselectItem(e)
|
|
1915
|
-
}, () => [l("span", { innerHTML: e[r.itemLabelKey] }, null, 8,
|
|
1916
|
-
onClick:
|
|
1918
|
+
}, () => [l("span", { innerHTML: e[r.itemLabelKey] }, null, 8, Ge), f(u, {
|
|
1919
|
+
onClick: L((e) => o.unselectItem(n), ["stop"]),
|
|
1917
1920
|
icon: "wi-cross",
|
|
1918
1921
|
xs: "",
|
|
1919
1922
|
text: "",
|
|
@@ -1923,14 +1926,14 @@ function Xe(t, n, r, i, a, o) {
|
|
|
1923
1926
|
key: 1,
|
|
1924
1927
|
class: "w-autocomplete__placeholder",
|
|
1925
1928
|
innerHTML: r.placeholder
|
|
1926
|
-
}, null, 8,
|
|
1929
|
+
}, null, 8, Ke)) : s("", !0),
|
|
1927
1930
|
l("input", h({
|
|
1928
1931
|
class: "w-autocomplete__input",
|
|
1929
1932
|
ref: "input",
|
|
1930
1933
|
value: t.keywords
|
|
1931
|
-
},
|
|
1934
|
+
}, k(o.inputEventListeners, !0), o.inputAttrs), null, 16, qe),
|
|
1932
1935
|
f(d, null, {
|
|
1933
|
-
default:
|
|
1936
|
+
default: P(() => [t.menuOpen ? (b(), c("ul", {
|
|
1934
1937
|
key: 0,
|
|
1935
1938
|
class: "w-autocomplete__menu",
|
|
1936
1939
|
ref: "menu",
|
|
@@ -1939,32 +1942,32 @@ function Xe(t, n, r, i, a, o) {
|
|
|
1939
1942
|
onTouchstart: n[3] ||= (e) => t.menuIsBeingClicked = !0,
|
|
1940
1943
|
onTouchend: n[4] ||= (...e) => o.setEndOfMenuClick && o.setEndOfMenuClick(...e)
|
|
1941
1944
|
}, [
|
|
1942
|
-
(b(!0), c(e, null,
|
|
1945
|
+
(b(!0), c(e, null, C(o.filteredItems, (e, n) => (b(), c("li", {
|
|
1943
1946
|
key: n,
|
|
1944
|
-
onClick:
|
|
1947
|
+
onClick: L((n) => (o.selectItem(e), t.$emit("item-click", e)), ["stop"]),
|
|
1945
1948
|
class: g({ highlighted: t.highlightedItem === e.uid })
|
|
1946
|
-
}, [
|
|
1949
|
+
}, [w(t.$slots, "item", {
|
|
1947
1950
|
item: e,
|
|
1948
1951
|
highlighted: t.highlightedItem === e.uid
|
|
1949
|
-
}, () => [l("span", { innerHTML: e[r.itemLabelKey] }, null, 8,
|
|
1952
|
+
}, () => [l("span", { innerHTML: e[r.itemLabelKey] }, null, 8, Ye)])], 10, Je))), 128)),
|
|
1950
1953
|
o.filteredItems.length ? s("", !0) : (b(), c("li", {
|
|
1951
1954
|
key: 0,
|
|
1952
1955
|
class: g(["w-autocomplete__no-match", { "w-autocomplete__no-match--default": !t.$slots.noMatch }])
|
|
1953
|
-
}, [
|
|
1956
|
+
}, [w(t.$slots, "no-match", {}, () => [l("div", {
|
|
1954
1957
|
class: "caption",
|
|
1955
1958
|
innerHTML: r.noMatch ?? "No match."
|
|
1956
|
-
}, null, 8,
|
|
1959
|
+
}, null, 8, Xe)])], 2)),
|
|
1957
1960
|
t.$slots["extra-item"] ? (b(), c("li", {
|
|
1958
1961
|
key: 1,
|
|
1959
1962
|
class: g(["w-autocomplete__extra-item", { highlighted: t.highlightedItem === "extra-item" }]),
|
|
1960
1963
|
onClick: n[0] ||= (...e) => o.selectExtraItem && o.selectExtraItem(...e)
|
|
1961
|
-
}, [
|
|
1964
|
+
}, [w(t.$slots, "extra-item")], 2)) : s("", !0)
|
|
1962
1965
|
], 544)) : s("", !0)]),
|
|
1963
1966
|
_: 3
|
|
1964
1967
|
})
|
|
1965
1968
|
], 6);
|
|
1966
1969
|
}
|
|
1967
|
-
var
|
|
1970
|
+
var Qe = /* @__PURE__ */ Y({
|
|
1968
1971
|
name: "w-autocomplete",
|
|
1969
1972
|
inheritAttrs: !1,
|
|
1970
1973
|
props: {
|
|
@@ -2143,11 +2146,11 @@ var Ze = /* @__PURE__ */ Y({
|
|
|
2143
2146
|
this.selection.push(this.optimizedItemsForSearch.find((t) => t[this.itemValueKey] === +e));
|
|
2144
2147
|
});
|
|
2145
2148
|
} }
|
|
2146
|
-
}, [["render",
|
|
2147
|
-
function
|
|
2148
|
-
return b(), c("div",
|
|
2149
|
+
}, [["render", Ze]]), $e = { class: "w-app" };
|
|
2150
|
+
function et(e, t, n, r, i, a) {
|
|
2151
|
+
return b(), c("div", $e, [w(e.$slots, "default")]);
|
|
2149
2152
|
}
|
|
2150
|
-
var
|
|
2153
|
+
var tt = /* @__PURE__ */ Y({
|
|
2151
2154
|
name: "w-app",
|
|
2152
2155
|
props: {
|
|
2153
2156
|
block: { type: Boolean },
|
|
@@ -2162,10 +2165,10 @@ var et = /* @__PURE__ */ Y({
|
|
|
2162
2165
|
textCenter: { type: Boolean },
|
|
2163
2166
|
textRight: { type: Boolean }
|
|
2164
2167
|
}
|
|
2165
|
-
}, [["render",
|
|
2166
|
-
function
|
|
2167
|
-
return b(), c("div",
|
|
2168
|
-
default:
|
|
2168
|
+
}, [["render", et]]), nt = { class: "w-badge-wrap" };
|
|
2169
|
+
function rt(e, t, n, i, a, o) {
|
|
2170
|
+
return b(), c("div", nt, [w(e.$slots, "default"), f(r, { name: `${n.transition}` }, {
|
|
2171
|
+
default: P(() => [n.modelValue ? (b(), c("div", {
|
|
2169
2172
|
key: 0,
|
|
2170
2173
|
class: g(["w-badge", o.classes]),
|
|
2171
2174
|
style: v(o.styles),
|
|
@@ -2173,11 +2176,11 @@ function nt(e, t, n, i, a, o) {
|
|
|
2173
2176
|
"aria-label": "Badge",
|
|
2174
2177
|
"aria-live": "polite",
|
|
2175
2178
|
role: "status"
|
|
2176
|
-
}, [n.dot ? s("", !0) :
|
|
2179
|
+
}, [n.dot ? s("", !0) : w(e.$slots, "badge", { key: 0 }, () => [d(O(n.modelValue === !0 ? "" : n.modelValue || ""), 1)])], 6)) : s("", !0)]),
|
|
2177
2180
|
_: 3
|
|
2178
2181
|
}, 8, ["name"])]);
|
|
2179
2182
|
}
|
|
2180
|
-
var
|
|
2183
|
+
var it = /* @__PURE__ */ Y({
|
|
2181
2184
|
name: "w-badge",
|
|
2182
2185
|
props: {
|
|
2183
2186
|
modelValue: { default: !0 },
|
|
@@ -2243,25 +2246,25 @@ var rt = /* @__PURE__ */ Y({
|
|
|
2243
2246
|
return this.forcedSize && `font-size: ${this.forcedSize}`;
|
|
2244
2247
|
}
|
|
2245
2248
|
}
|
|
2246
|
-
}, [["render",
|
|
2247
|
-
function
|
|
2248
|
-
let u =
|
|
2249
|
-
return b(), c("div", { class: g(["w-breadcrumbs", l.classes]) }, [(b(!0), c(e, null,
|
|
2249
|
+
}, [["render", rt]]), at = ["innerHTML"];
|
|
2250
|
+
function ot(t, n, r, i, a, l) {
|
|
2251
|
+
let u = T("w-icon");
|
|
2252
|
+
return b(), c("div", { class: g(["w-breadcrumbs", l.classes]) }, [(b(!0), c(e, null, C(r.items, (n, i) => (b(), c(e, null, [i && t.$slots.separator ? (b(), c("span", {
|
|
2250
2253
|
class: g(["w-breadcrumbs__separator", r.separatorColor]),
|
|
2251
2254
|
key: `${i}a`
|
|
2252
|
-
}, [
|
|
2255
|
+
}, [w(t.$slots, "separator", { index: i })], 2)) : i ? (b(), o(u, {
|
|
2253
2256
|
class: g(["w-breadcrumbs__separator", r.separatorColor]),
|
|
2254
2257
|
key: `${i}b`
|
|
2255
2258
|
}, {
|
|
2256
|
-
default:
|
|
2259
|
+
default: P(() => [d(O(r.icon), 1)]),
|
|
2257
2260
|
_: 1
|
|
2258
|
-
}, 8, ["class"])) : s("", !0), n[r.itemRouteKey] && (i < r.items.length - 1 || r.linkLastItem) ? (b(), c(e, { key: 2 }, [t.$slots.item ? (b(), o(
|
|
2261
|
+
}, 8, ["class"])) : s("", !0), n[r.itemRouteKey] && (i < r.items.length - 1 || r.linkLastItem) ? (b(), c(e, { key: 2 }, [t.$slots.item ? (b(), o(D(l.hasRouter ? "router-link" : "a"), {
|
|
2259
2262
|
class: g(["w-breadcrumbs__item", r.color || null]),
|
|
2260
2263
|
key: `${i}c`,
|
|
2261
2264
|
to: l.hasRouter && n[r.itemRouteKey],
|
|
2262
2265
|
href: n[r.itemRouteKey]
|
|
2263
2266
|
}, {
|
|
2264
|
-
default:
|
|
2267
|
+
default: P(() => [w(t.$slots, "item", {
|
|
2265
2268
|
item: n,
|
|
2266
2269
|
index: i + 1,
|
|
2267
2270
|
isLast: i === r.items.length - 1
|
|
@@ -2271,7 +2274,7 @@ function at(t, n, r, i, a, l) {
|
|
|
2271
2274
|
"to",
|
|
2272
2275
|
"href",
|
|
2273
2276
|
"class"
|
|
2274
|
-
])) : (b(), o(
|
|
2277
|
+
])) : (b(), o(D(l.hasRouter ? "router-link" : "a"), {
|
|
2275
2278
|
class: g(["w-breadcrumbs__item", r.color || null]),
|
|
2276
2279
|
key: `${i}d`,
|
|
2277
2280
|
to: l.hasRouter && n[r.itemRouteKey],
|
|
@@ -2282,7 +2285,7 @@ function at(t, n, r, i, a, l) {
|
|
|
2282
2285
|
"href",
|
|
2283
2286
|
"innerHTML",
|
|
2284
2287
|
"class"
|
|
2285
|
-
]))], 64)) : t.$slots.item ?
|
|
2288
|
+
]))], 64)) : t.$slots.item ? w(t.$slots, "item", {
|
|
2286
2289
|
key: `${i}e`,
|
|
2287
2290
|
item: n,
|
|
2288
2291
|
index: i + 1,
|
|
@@ -2290,9 +2293,9 @@ function at(t, n, r, i, a, l) {
|
|
|
2290
2293
|
}) : (b(), c("span", {
|
|
2291
2294
|
key: `${i}f`,
|
|
2292
2295
|
innerHTML: n[r.itemLabelKey]
|
|
2293
|
-
}, null, 8,
|
|
2296
|
+
}, null, 8, at))], 64))), 256))], 2);
|
|
2294
2297
|
}
|
|
2295
|
-
var
|
|
2298
|
+
var st = /* @__PURE__ */ Y({
|
|
2296
2299
|
name: "w-breadcrumbs",
|
|
2297
2300
|
props: {
|
|
2298
2301
|
items: {
|
|
@@ -2335,23 +2338,23 @@ var ot = /* @__PURE__ */ Y({
|
|
|
2335
2338
|
return { [`size--${this.size}`]: !0 };
|
|
2336
2339
|
}
|
|
2337
2340
|
}
|
|
2338
|
-
}, [["render",
|
|
2341
|
+
}, [["render", ot]]), ct = {
|
|
2339
2342
|
key: 0,
|
|
2340
2343
|
class: "w-button__loader"
|
|
2341
2344
|
};
|
|
2342
|
-
function
|
|
2343
|
-
let p =
|
|
2344
|
-
return b(), o(
|
|
2345
|
+
function lt(e, t, n, i, a, u) {
|
|
2346
|
+
let p = T("w-icon");
|
|
2347
|
+
return b(), o(D(!n.disabled && n.route ? "a" : "button"), h({
|
|
2345
2348
|
class: ["w-button", u.classes],
|
|
2346
2349
|
type: !n.route && n.type,
|
|
2347
2350
|
href: !n.disabled && n.route && (u.externalLink ? n.route : u.resolvedRoute) || null,
|
|
2348
2351
|
disabled: !!n.disabled || null
|
|
2349
2352
|
}, u.attrs, { style: u.styles }), {
|
|
2350
|
-
default:
|
|
2351
|
-
default:
|
|
2353
|
+
default: P(() => [n.icon ? (b(), o(p, _(h({ key: 0 }, n.iconProps || {})), {
|
|
2354
|
+
default: P(() => [d(O(n.icon), 1)]),
|
|
2352
2355
|
_: 1
|
|
2353
|
-
}, 16)) :
|
|
2354
|
-
default:
|
|
2356
|
+
}, 16)) : w(e.$slots, "default", { key: 1 }), f(r, { name: "scale-fade" }, {
|
|
2357
|
+
default: P(() => [n.loading ? (b(), c("div", ct, [w(e.$slots, "loading", {}, () => [t[0] ||= l("svg", { viewBox: "0 0 40 40" }, [l("circle", {
|
|
2355
2358
|
cx: "20",
|
|
2356
2359
|
cy: "20",
|
|
2357
2360
|
r: "18",
|
|
@@ -2371,7 +2374,7 @@ function ct(e, t, n, i, a, u) {
|
|
|
2371
2374
|
"style"
|
|
2372
2375
|
]);
|
|
2373
2376
|
}
|
|
2374
|
-
var
|
|
2377
|
+
var ut = /* @__PURE__ */ Y({
|
|
2375
2378
|
inheritAttrs: !1,
|
|
2376
2379
|
props: {
|
|
2377
2380
|
color: { type: String },
|
|
@@ -2469,23 +2472,23 @@ var lt = /* @__PURE__ */ Y({
|
|
|
2469
2472
|
};
|
|
2470
2473
|
}
|
|
2471
2474
|
}
|
|
2472
|
-
}, [["render",
|
|
2473
|
-
function
|
|
2474
|
-
let s =
|
|
2475
|
-
return n.tooltip ? (b(), o(
|
|
2476
|
-
activator:
|
|
2477
|
-
default:
|
|
2475
|
+
}, [["render", lt]]), dt = ["innerHTML"];
|
|
2476
|
+
function ft(e, t, n, r, i, a) {
|
|
2477
|
+
let s = T("button-partial");
|
|
2478
|
+
return n.tooltip ? (b(), o(D("w-tooltip"), _(h({ key: 0 }, n.tooltipProps)), {
|
|
2479
|
+
activator: P(({ on: t }) => [f(s, h(a.buttonProps, k(t)), {
|
|
2480
|
+
default: P(() => [w(e.$slots, "default")]),
|
|
2478
2481
|
_: 3
|
|
2479
2482
|
}, 16)]),
|
|
2480
|
-
default:
|
|
2483
|
+
default: P(() => [l("div", { innerHTML: n.tooltip }, null, 8, dt)]),
|
|
2481
2484
|
_: 3
|
|
2482
2485
|
}, 16)) : (b(), o(s, _(h({ key: 1 }, a.buttonProps)), {
|
|
2483
|
-
loading:
|
|
2484
|
-
default:
|
|
2486
|
+
loading: P(() => [w(e.$slots, "loading")]),
|
|
2487
|
+
default: P(() => [w(e.$slots, "default")]),
|
|
2485
2488
|
_: 3
|
|
2486
2489
|
}, 16));
|
|
2487
2490
|
}
|
|
2488
|
-
var
|
|
2491
|
+
var pt = /* @__PURE__ */ Y({
|
|
2489
2492
|
name: "w-button",
|
|
2490
2493
|
inheritAttrs: !1,
|
|
2491
2494
|
props: {
|
|
@@ -2533,7 +2536,7 @@ var ft = /* @__PURE__ */ Y({
|
|
|
2533
2536
|
lg: { type: Boolean },
|
|
2534
2537
|
xl: { type: Boolean }
|
|
2535
2538
|
},
|
|
2536
|
-
components: { ButtonPartial:
|
|
2539
|
+
components: { ButtonPartial: ut },
|
|
2537
2540
|
emits: [],
|
|
2538
2541
|
computed: { buttonProps() {
|
|
2539
2542
|
let { tooltip: e, tooltipProps: t = {}, ...n } = this.$props;
|
|
@@ -2542,9 +2545,9 @@ var ft = /* @__PURE__ */ Y({
|
|
|
2542
2545
|
...this.$attrs
|
|
2543
2546
|
};
|
|
2544
2547
|
} }
|
|
2545
|
-
}, [["render",
|
|
2546
|
-
function
|
|
2547
|
-
let u =
|
|
2548
|
+
}, [["render", ft]]), mt = ["innerHTML"];
|
|
2549
|
+
function ht(e, t, n, r, i, a) {
|
|
2550
|
+
let u = T("w-image");
|
|
2548
2551
|
return b(), c("div", { class: g(["w-card", a.classes]) }, [
|
|
2549
2552
|
e.$slots.title ? (b(), c("div", {
|
|
2550
2553
|
key: 0,
|
|
@@ -2552,30 +2555,30 @@ function mt(e, t, n, r, i, a) {
|
|
|
2552
2555
|
"w-card__title--has-toolbar": e.$slots.title && a.titleHasToolbar,
|
|
2553
2556
|
...a.titleClasses
|
|
2554
2557
|
}])
|
|
2555
|
-
}, [
|
|
2558
|
+
}, [w(e.$slots, "title")], 2)) : n.title ? (b(), c("div", {
|
|
2556
2559
|
key: 1,
|
|
2557
2560
|
class: g(["w-card__title", {
|
|
2558
2561
|
"w-card__title--has-toolbar": e.$slots.title && a.titleHasToolbar,
|
|
2559
2562
|
...a.titleClasses
|
|
2560
2563
|
}]),
|
|
2561
2564
|
innerHTML: n.title
|
|
2562
|
-
}, null, 10,
|
|
2565
|
+
}, null, 10, mt)) : s("", !0),
|
|
2563
2566
|
n.image ? (b(), o(u, h({
|
|
2564
2567
|
key: 2,
|
|
2565
2568
|
class: "w-card__image",
|
|
2566
2569
|
src: n.image
|
|
2567
2570
|
}, a.imgProps), {
|
|
2568
|
-
default:
|
|
2571
|
+
default: P(() => [w(e.$slots, "image-content")]),
|
|
2569
2572
|
_: 3
|
|
2570
2573
|
}, 16, ["src"])) : s("", !0),
|
|
2571
|
-
l("div", { class: g(["w-card__content", a.contentClasses]) }, [
|
|
2574
|
+
l("div", { class: g(["w-card__content", a.contentClasses]) }, [w(e.$slots, "default")], 2),
|
|
2572
2575
|
e.$slots.actions ? (b(), c("div", {
|
|
2573
2576
|
key: 3,
|
|
2574
2577
|
class: g(["w-card__actions", { "w-card__actions--has-toolbar": a.actionsHasToolbar }])
|
|
2575
|
-
}, [
|
|
2578
|
+
}, [w(e.$slots, "actions")], 2)) : s("", !0)
|
|
2576
2579
|
], 2);
|
|
2577
2580
|
}
|
|
2578
|
-
var
|
|
2581
|
+
var gt = /* @__PURE__ */ Y({
|
|
2579
2582
|
name: "w-card",
|
|
2580
2583
|
props: {
|
|
2581
2584
|
color: { type: String },
|
|
@@ -2634,7 +2637,7 @@ var ht = /* @__PURE__ */ Y({
|
|
|
2634
2637
|
};
|
|
2635
2638
|
}
|
|
2636
2639
|
}
|
|
2637
|
-
}, [["render",
|
|
2640
|
+
}, [["render", ht]]), Q = {
|
|
2638
2641
|
inject: {
|
|
2639
2642
|
formRegister: { default: null },
|
|
2640
2643
|
formProps: { default: () => ({
|
|
@@ -2642,18 +2645,27 @@ var ht = /* @__PURE__ */ Y({
|
|
|
2642
2645
|
readonly: !1
|
|
2643
2646
|
}) }
|
|
2644
2647
|
},
|
|
2648
|
+
setup() {
|
|
2649
|
+
return { _waveUiUseId: A() };
|
|
2650
|
+
},
|
|
2645
2651
|
props: {
|
|
2652
|
+
id: { type: String },
|
|
2646
2653
|
name: { type: String },
|
|
2647
2654
|
disabled: { type: Boolean },
|
|
2648
2655
|
readonly: { type: Boolean },
|
|
2649
2656
|
required: { type: Boolean },
|
|
2650
2657
|
tabindex: { type: String },
|
|
2651
|
-
validators: { type: Array }
|
|
2658
|
+
validators: { type: Array },
|
|
2659
|
+
noBlurValidation: { type: Boolean }
|
|
2652
2660
|
},
|
|
2653
2661
|
data: () => ({ valid: null }),
|
|
2654
2662
|
computed: {
|
|
2663
|
+
inputId() {
|
|
2664
|
+
let e = this.$options.name || "w-field";
|
|
2665
|
+
return this.id || `${e}--${this._waveUiUseId}`;
|
|
2666
|
+
},
|
|
2655
2667
|
inputName() {
|
|
2656
|
-
return this.name || `${this.$options.name}--${this.
|
|
2668
|
+
return this.name || `${this.$options.name}--${this._waveUiUseId}`;
|
|
2657
2669
|
},
|
|
2658
2670
|
isDisabled() {
|
|
2659
2671
|
return this.disabled || this.formProps.disabled;
|
|
@@ -2674,7 +2686,7 @@ var ht = /* @__PURE__ */ Y({
|
|
|
2674
2686
|
methods: { validate() {
|
|
2675
2687
|
this.$refs.formEl.validate(this);
|
|
2676
2688
|
} }
|
|
2677
|
-
},
|
|
2689
|
+
}, _t = [
|
|
2678
2690
|
"id",
|
|
2679
2691
|
"name",
|
|
2680
2692
|
"checked",
|
|
@@ -2682,13 +2694,14 @@ var ht = /* @__PURE__ */ Y({
|
|
|
2682
2694
|
"required",
|
|
2683
2695
|
"tabindex",
|
|
2684
2696
|
"aria-checked"
|
|
2685
|
-
],
|
|
2686
|
-
function
|
|
2687
|
-
return b(), o(
|
|
2697
|
+
], vt = ["for"], yt = ["for", "innerHTML"], bt = ["for"], xt = ["for", "innerHTML"];
|
|
2698
|
+
function St(t, n, r, i, a, u) {
|
|
2699
|
+
return b(), o(D(t.formRegister && !u.wCheckboxes ? "w-form-element" : "div"), h({ ref: "formEl" }, t.formRegister && {
|
|
2688
2700
|
validators: t.validators,
|
|
2689
2701
|
inputValue: a.isChecked,
|
|
2690
2702
|
disabled: t.isDisabled,
|
|
2691
|
-
readonly: t.isReadonly
|
|
2703
|
+
readonly: t.isReadonly,
|
|
2704
|
+
noBlurValidation: t.noBlurValidation
|
|
2692
2705
|
}, {
|
|
2693
2706
|
valid: t.valid,
|
|
2694
2707
|
"onUpdate:valid": n[5] ||= (e) => t.valid = e,
|
|
@@ -2697,10 +2710,10 @@ function xt(t, n, r, i, a, u) {
|
|
|
2697
2710
|
},
|
|
2698
2711
|
class: u.classes
|
|
2699
2712
|
}), {
|
|
2700
|
-
default:
|
|
2713
|
+
default: P(() => [
|
|
2701
2714
|
l("input", {
|
|
2702
2715
|
ref: "input",
|
|
2703
|
-
id:
|
|
2716
|
+
id: t.inputId,
|
|
2704
2717
|
type: "checkbox",
|
|
2705
2718
|
name: t.inputName,
|
|
2706
2719
|
checked: a.isChecked || null,
|
|
@@ -2710,20 +2723,20 @@ function xt(t, n, r, i, a, u) {
|
|
|
2710
2723
|
onFocus: n[0] ||= (e) => t.$emit("focus", e),
|
|
2711
2724
|
onBlur: n[1] ||= (e) => t.$emit("blur", e),
|
|
2712
2725
|
onChange: n[2] ||= (e) => u.onInput(),
|
|
2713
|
-
onKeypress: n[3] ||=
|
|
2726
|
+
onKeypress: n[3] ||= I((...e) => u.onInput && u.onInput(...e), ["enter"]),
|
|
2714
2727
|
"aria-checked": a.isChecked || "false",
|
|
2715
2728
|
role: "checkbox"
|
|
2716
|
-
}, null, 40,
|
|
2729
|
+
}, null, 40, _t),
|
|
2717
2730
|
u.hasLabel && r.labelOnLeft ? (b(), c(e, { key: 0 }, [t.$slots.default ? (b(), c("label", {
|
|
2718
2731
|
key: 0,
|
|
2719
2732
|
class: g(["w-checkbox__label w-form-el-shakable pr2", t.labelClasses]),
|
|
2720
|
-
for:
|
|
2721
|
-
}, [
|
|
2733
|
+
for: t.inputId
|
|
2734
|
+
}, [w(t.$slots, "default", {}, () => [d(O(r.label), 1)])], 10, vt)) : r.label ? (b(), c("label", {
|
|
2722
2735
|
key: 1,
|
|
2723
2736
|
class: g(["w-checkbox__label w-form-el-shakable pr2", t.labelClasses]),
|
|
2724
|
-
for:
|
|
2737
|
+
for: t.inputId,
|
|
2725
2738
|
innerHTML: r.label
|
|
2726
|
-
}, null, 10,
|
|
2739
|
+
}, null, 10, yt)) : s("", !0)], 64)) : s("", !0),
|
|
2727
2740
|
l("div", {
|
|
2728
2741
|
class: g(["w-checkbox__input", this.color]),
|
|
2729
2742
|
onClick: n[4] ||= (e) => {
|
|
@@ -2733,18 +2746,18 @@ function xt(t, n, r, i, a, u) {
|
|
|
2733
2746
|
u.hasLabel && !r.labelOnLeft ? (b(), c(e, { key: 1 }, [t.$slots.default ? (b(), c("label", {
|
|
2734
2747
|
key: 0,
|
|
2735
2748
|
class: g(["w-checkbox__label w-form-el-shakable pl2", t.labelClasses]),
|
|
2736
|
-
for:
|
|
2737
|
-
}, [
|
|
2749
|
+
for: t.inputId
|
|
2750
|
+
}, [w(t.$slots, "default", {}, () => [d(O(r.label), 1)])], 10, bt)) : r.label ? (b(), c("label", {
|
|
2738
2751
|
key: 1,
|
|
2739
2752
|
class: g(["w-checkbox__label w-form-el-shakable pl2", t.labelClasses]),
|
|
2740
|
-
for:
|
|
2753
|
+
for: t.inputId,
|
|
2741
2754
|
innerHTML: r.label
|
|
2742
|
-
}, null, 10,
|
|
2755
|
+
}, null, 10, xt)) : s("", !0)], 64)) : s("", !0)
|
|
2743
2756
|
]),
|
|
2744
2757
|
_: 3
|
|
2745
2758
|
}, 16, ["valid", "class"]);
|
|
2746
2759
|
}
|
|
2747
|
-
var
|
|
2760
|
+
var Ct = /* @__PURE__ */ Y({
|
|
2748
2761
|
name: "w-checkbox",
|
|
2749
2762
|
mixins: [Q],
|
|
2750
2763
|
inject: { wCheckboxes: { default: null } },
|
|
@@ -2811,13 +2824,14 @@ var St = /* @__PURE__ */ Y({
|
|
|
2811
2824
|
watch: { modelValue(e) {
|
|
2812
2825
|
this.isChecked = e;
|
|
2813
2826
|
} }
|
|
2814
|
-
}, [["render",
|
|
2815
|
-
function
|
|
2816
|
-
let u =
|
|
2817
|
-
return b(), o(
|
|
2827
|
+
}, [["render", St]]), wt = ["innerHTML"];
|
|
2828
|
+
function Tt(t, n, r, i, a, l) {
|
|
2829
|
+
let u = T("w-checkbox");
|
|
2830
|
+
return b(), o(D(t.formRegister ? "w-form-element" : "div"), h({ ref: "formEl" }, t.formRegister && {
|
|
2818
2831
|
validators: t.validators,
|
|
2819
2832
|
inputValue: l.checkboxItems.some((e) => e._isChecked),
|
|
2820
|
-
disabled: t.isDisabled
|
|
2833
|
+
disabled: t.isDisabled,
|
|
2834
|
+
noBlurValidation: t.noBlurValidation
|
|
2821
2835
|
}, {
|
|
2822
2836
|
valid: t.valid,
|
|
2823
2837
|
"onUpdate:valid": n[1] ||= (e) => t.valid = e,
|
|
@@ -2826,7 +2840,7 @@ function wt(t, n, r, i, a, l) {
|
|
|
2826
2840
|
wrap: r.inline,
|
|
2827
2841
|
class: l.classes
|
|
2828
2842
|
}), {
|
|
2829
|
-
default:
|
|
2843
|
+
default: P(() => [(b(!0), c(e, null, C(l.checkboxItems, (e, i) => (b(), o(u, h({
|
|
2830
2844
|
key: i,
|
|
2831
2845
|
"model-value": e._isChecked,
|
|
2832
2846
|
"onUpdate:modelValue": (t) => l.toggleCheck(e, t),
|
|
@@ -2843,7 +2857,7 @@ function wt(t, n, r, i, a, l) {
|
|
|
2843
2857
|
readonly: t.isReadonly || null,
|
|
2844
2858
|
class: { mt1: !r.inline && i }
|
|
2845
2859
|
}), {
|
|
2846
|
-
default:
|
|
2860
|
+
default: P(() => [t.$slots[`item.${i + 1}`] || t.$slots.item ? w(t.$slots, t.$slots[`item.${i + 1}`] ? `item.${i + 1}` : "item", {
|
|
2847
2861
|
key: 0,
|
|
2848
2862
|
item: l.getOriginalItem(e),
|
|
2849
2863
|
checked: !!e._isChecked,
|
|
@@ -2852,7 +2866,7 @@ function wt(t, n, r, i, a, l) {
|
|
|
2852
2866
|
}) : e.label ? (b(), c("div", {
|
|
2853
2867
|
key: 1,
|
|
2854
2868
|
innerHTML: e.label
|
|
2855
|
-
}, null, 8,
|
|
2869
|
+
}, null, 8, wt)) : s("", !0)]),
|
|
2856
2870
|
_: 2
|
|
2857
2871
|
}, 1040, [
|
|
2858
2872
|
"model-value",
|
|
@@ -2871,7 +2885,7 @@ function wt(t, n, r, i, a, l) {
|
|
|
2871
2885
|
"class"
|
|
2872
2886
|
]);
|
|
2873
2887
|
}
|
|
2874
|
-
var
|
|
2888
|
+
var Et = /* @__PURE__ */ Y({
|
|
2875
2889
|
name: "w-checkboxes",
|
|
2876
2890
|
mixins: [Q],
|
|
2877
2891
|
props: {
|
|
@@ -2944,42 +2958,42 @@ var Tt = /* @__PURE__ */ Y({
|
|
|
2944
2958
|
return this.items[e._index];
|
|
2945
2959
|
}
|
|
2946
2960
|
}
|
|
2947
|
-
}, [["render",
|
|
2961
|
+
}, [["render", Tt]]);
|
|
2948
2962
|
//#endregion
|
|
2949
2963
|
//#region src/wave-ui/components/w-confirm.vue?vue&type=template&lang.js
|
|
2950
|
-
function
|
|
2951
|
-
let c =
|
|
2964
|
+
function Dt(e, t, n, r, i, a) {
|
|
2965
|
+
let c = T("w-button"), u = T("w-flex"), p = T("w-menu"), m = E("focus");
|
|
2952
2966
|
return b(), o(p, h({
|
|
2953
2967
|
modelValue: e.showPopup,
|
|
2954
2968
|
"onUpdate:modelValue": t[2] ||= (t) => e.showPopup = t
|
|
2955
2969
|
}, a.wMenuProps), {
|
|
2956
|
-
activator:
|
|
2970
|
+
activator: P(({ on: t }) => [f(c, h({ class: "w-confirm" }, {
|
|
2957
2971
|
...e.$attrs,
|
|
2958
2972
|
...a.buttonProps
|
|
2959
|
-
},
|
|
2960
|
-
default:
|
|
2973
|
+
}, k(n.disablePrompt ? {} : { ...t })), {
|
|
2974
|
+
default: P(() => [w(e.$slots, "default")]),
|
|
2961
2975
|
_: 3
|
|
2962
2976
|
}, 16)]),
|
|
2963
|
-
default:
|
|
2977
|
+
default: P(() => [f(u, {
|
|
2964
2978
|
column: !n.inline,
|
|
2965
2979
|
"align-center": ""
|
|
2966
2980
|
}, {
|
|
2967
|
-
default:
|
|
2981
|
+
default: P(() => [l("div", null, [w(e.$slots, "question", {}, () => [d(O(n.question), 1)])]), l("div", { class: g(["w-flex justify-end", n.inline ? "ml2" : "mt2"]) }, [n.cancel === !1 ? s("", !0) : (b(), o(c, h({
|
|
2968
2982
|
key: 0,
|
|
2969
2983
|
class: "mr2"
|
|
2970
2984
|
}, a.cancelButtonProps, {
|
|
2971
2985
|
"bg-color": (a.cancelButton || {}).bgColor || "error",
|
|
2972
|
-
onKeyup: t[0] ||=
|
|
2986
|
+
onKeyup: t[0] ||= I((e) => !n.persistent && a.onCancel(), ["escape"]),
|
|
2973
2987
|
onClick: a.onCancel
|
|
2974
2988
|
}), {
|
|
2975
|
-
default:
|
|
2989
|
+
default: P(() => [w(e.$slots, "cancel", {}, () => [d(O(a.cancelButton.label), 1)])]),
|
|
2976
2990
|
_: 3
|
|
2977
|
-
}, 16, ["bg-color", "onClick"])),
|
|
2991
|
+
}, 16, ["bg-color", "onClick"])), F((b(), o(c, h(a.confirmButtonProps, {
|
|
2978
2992
|
"bg-color": (a.confirmButton || {}).bgColor || "success",
|
|
2979
|
-
onKeyup: t[1] ||=
|
|
2993
|
+
onKeyup: t[1] ||= I((e) => !n.persistent && a.onCancel(), ["escape"]),
|
|
2980
2994
|
onClick: a.onConfirm
|
|
2981
2995
|
}), {
|
|
2982
|
-
default:
|
|
2996
|
+
default: P(() => [w(e.$slots, "confirm", {}, () => [d(O(a.confirmButton.label), 1)])]),
|
|
2983
2997
|
_: 3
|
|
2984
2998
|
}, 16, ["bg-color", "onClick"])), [[m]])], 2)]),
|
|
2985
2999
|
_: 3
|
|
@@ -2987,7 +3001,7 @@ function Et(e, t, n, r, i, a) {
|
|
|
2987
3001
|
_: 3
|
|
2988
3002
|
}, 16, ["modelValue"]);
|
|
2989
3003
|
}
|
|
2990
|
-
var
|
|
3004
|
+
var Ot = /* @__PURE__ */ Y({
|
|
2991
3005
|
name: "w-confirm",
|
|
2992
3006
|
inheritAttrs: !1,
|
|
2993
3007
|
props: {
|
|
@@ -3113,16 +3127,16 @@ var Dt = /* @__PURE__ */ Y({
|
|
|
3113
3127
|
this.$emit("confirm"), this.showPopup = !1;
|
|
3114
3128
|
}
|
|
3115
3129
|
}
|
|
3116
|
-
}, [["render",
|
|
3130
|
+
}, [["render", Dt]]);
|
|
3117
3131
|
//#endregion
|
|
3118
3132
|
//#region src/wave-ui/components/w-date-picker.vue?vue&type=template&lang.js
|
|
3119
|
-
function
|
|
3133
|
+
function kt(e, t, n, r, i, a) {
|
|
3120
3134
|
return b(), c("div", {
|
|
3121
3135
|
class: g(["w-date-picker", a.classes]),
|
|
3122
3136
|
style: v(a.styles)
|
|
3123
|
-
}, [
|
|
3137
|
+
}, [w(e.$slots, "default")], 6);
|
|
3124
3138
|
}
|
|
3125
|
-
var
|
|
3139
|
+
var At = /* @__PURE__ */ Y({
|
|
3126
3140
|
name: "w-date-picker",
|
|
3127
3141
|
props: {
|
|
3128
3142
|
dark: { type: Boolean },
|
|
@@ -3140,11 +3154,11 @@ var kt = /* @__PURE__ */ Y({
|
|
|
3140
3154
|
return !1;
|
|
3141
3155
|
}
|
|
3142
3156
|
}
|
|
3143
|
-
}, [["render",
|
|
3157
|
+
}, [["render", kt]]);
|
|
3144
3158
|
//#endregion
|
|
3145
3159
|
//#region src/wave-ui/components/w-dialog.vue?vue&type=template&lang.js
|
|
3146
|
-
function
|
|
3147
|
-
let c =
|
|
3160
|
+
function jt(e, t, n, i, a, s) {
|
|
3161
|
+
let c = T("w-card"), l = T("w-overlay");
|
|
3148
3162
|
return b(), o(l, {
|
|
3149
3163
|
class: g(["w-dialog", s.classes]),
|
|
3150
3164
|
"model-value": a.showWrapper,
|
|
@@ -3155,12 +3169,12 @@ function At(e, t, n, i, a, s) {
|
|
|
3155
3169
|
"bg-color": n.overlayColor,
|
|
3156
3170
|
opacity: n.overlayOpacity
|
|
3157
3171
|
}, {
|
|
3158
|
-
default:
|
|
3172
|
+
default: P(() => [f(r, {
|
|
3159
3173
|
name: n.transition,
|
|
3160
3174
|
appear: "",
|
|
3161
3175
|
onAfterLeave: s.onBeforeClose
|
|
3162
3176
|
}, {
|
|
3163
|
-
default:
|
|
3177
|
+
default: P(() => [F(f(c, {
|
|
3164
3178
|
class: g(["w-dialog__content", n.dialogClass]),
|
|
3165
3179
|
ref: "dialog",
|
|
3166
3180
|
"no-border": "",
|
|
@@ -3171,15 +3185,15 @@ function At(e, t, n, i, a, s) {
|
|
|
3171
3185
|
title: n.title || void 0,
|
|
3172
3186
|
style: v(s.contentStyles)
|
|
3173
3187
|
}, u({
|
|
3174
|
-
default:
|
|
3188
|
+
default: P(() => [w(e.$slots, "default")]),
|
|
3175
3189
|
_: 2
|
|
3176
3190
|
}, [e.$slots.title ? {
|
|
3177
3191
|
name: "title",
|
|
3178
|
-
fn:
|
|
3192
|
+
fn: P(() => [w(e.$slots, "title")]),
|
|
3179
3193
|
key: "0"
|
|
3180
3194
|
} : void 0, e.$slots.actions ? {
|
|
3181
3195
|
name: "actions",
|
|
3182
|
-
fn:
|
|
3196
|
+
fn: P(() => [w(e.$slots, "actions")]),
|
|
3183
3197
|
key: "1"
|
|
3184
3198
|
} : void 0]), 1032, [
|
|
3185
3199
|
"color",
|
|
@@ -3189,7 +3203,7 @@ function At(e, t, n, i, a, s) {
|
|
|
3189
3203
|
"content-class",
|
|
3190
3204
|
"title",
|
|
3191
3205
|
"style"
|
|
3192
|
-
]), [[
|
|
3206
|
+
]), [[N, a.showContent]])]),
|
|
3193
3207
|
_: 3
|
|
3194
3208
|
}, 8, ["name", "onAfterLeave"])]),
|
|
3195
3209
|
_: 3
|
|
@@ -3204,7 +3218,7 @@ function At(e, t, n, i, a, s) {
|
|
|
3204
3218
|
"class"
|
|
3205
3219
|
]);
|
|
3206
3220
|
}
|
|
3207
|
-
var
|
|
3221
|
+
var Mt = /* @__PURE__ */ Y({
|
|
3208
3222
|
name: "w-dialog",
|
|
3209
3223
|
props: {
|
|
3210
3224
|
modelValue: { default: !0 },
|
|
@@ -3301,15 +3315,15 @@ var jt = /* @__PURE__ */ Y({
|
|
|
3301
3315
|
watch: { modelValue(e) {
|
|
3302
3316
|
this.showWrapper = e, this.showContent = e;
|
|
3303
3317
|
} }
|
|
3304
|
-
}, [["render",
|
|
3305
|
-
function
|
|
3318
|
+
}, [["render", jt]]), Nt = ["role", "aria-orientation"];
|
|
3319
|
+
function Pt(e, t, n, r, i, a) {
|
|
3306
3320
|
return b(), c("div", {
|
|
3307
3321
|
class: g(["w-divider", a.classes]),
|
|
3308
3322
|
role: e.$slots.default ? null : "presentation",
|
|
3309
3323
|
"aria-orientation": n.vertical ? "vertical" : "horizontal"
|
|
3310
|
-
}, [
|
|
3324
|
+
}, [w(e.$slots, "default")], 10, Nt);
|
|
3311
3325
|
}
|
|
3312
|
-
var
|
|
3326
|
+
var Ft = /* @__PURE__ */ Y({
|
|
3313
3327
|
name: "w-divider",
|
|
3314
3328
|
props: {
|
|
3315
3329
|
vertical: { type: Boolean },
|
|
@@ -3327,9 +3341,9 @@ var Pt = /* @__PURE__ */ Y({
|
|
|
3327
3341
|
"w-divider--light": this.light
|
|
3328
3342
|
};
|
|
3329
3343
|
} }
|
|
3330
|
-
}, [["render",
|
|
3331
|
-
function
|
|
3332
|
-
let p =
|
|
3344
|
+
}, [["render", Pt]]), It = { class: "w-drawer-wrap__pushable" };
|
|
3345
|
+
function Lt(t, n, i, a, u, d) {
|
|
3346
|
+
let p = T("w-overlay");
|
|
3333
3347
|
return u.showWrapper || i.pushContent ? (b(), c("div", {
|
|
3334
3348
|
key: 0,
|
|
3335
3349
|
class: g(["w-drawer-wrap", d.wrapperClasses])
|
|
@@ -3337,7 +3351,7 @@ function It(t, n, i, a, u, d) {
|
|
|
3337
3351
|
key: 0,
|
|
3338
3352
|
class: "w-drawer-wrap__track",
|
|
3339
3353
|
style: v(d.trackStyles)
|
|
3340
|
-
}, [l("div",
|
|
3354
|
+
}, [l("div", It, [i.noOverlay ? s("", !0) : (b(), o(p, {
|
|
3341
3355
|
key: 0,
|
|
3342
3356
|
modelValue: u.showDrawer,
|
|
3343
3357
|
"onUpdate:modelValue": n[0] ||= (e) => u.showDrawer = e,
|
|
@@ -3352,18 +3366,18 @@ function It(t, n, i, a, u, d) {
|
|
|
3352
3366
|
"persistent",
|
|
3353
3367
|
"bg-color",
|
|
3354
3368
|
"opacity"
|
|
3355
|
-
])),
|
|
3369
|
+
])), w(t.$slots, "pushable")]), f(r, {
|
|
3356
3370
|
name: "fade",
|
|
3357
3371
|
onBeforeLeave: d.onBeforeClose,
|
|
3358
3372
|
onAfterLeave: d.onClose
|
|
3359
3373
|
}, {
|
|
3360
|
-
default:
|
|
3374
|
+
default: P(() => [u.showDrawer ? (b(), o(D(i.tag || "aside"), {
|
|
3361
3375
|
key: 0,
|
|
3362
3376
|
class: g(["w-drawer", d.drawerClasses]),
|
|
3363
3377
|
ref: "drawer",
|
|
3364
3378
|
style: v(d.styles)
|
|
3365
3379
|
}, {
|
|
3366
|
-
default:
|
|
3380
|
+
default: P(() => [w(t.$slots, "default")]),
|
|
3367
3381
|
_: 3
|
|
3368
3382
|
}, 8, ["class", "style"])) : s("", !0)]),
|
|
3369
3383
|
_: 3
|
|
@@ -3388,13 +3402,13 @@ function It(t, n, i, a, u, d) {
|
|
|
3388
3402
|
onBeforeLeave: d.onBeforeClose,
|
|
3389
3403
|
onAfterLeave: d.onClose
|
|
3390
3404
|
}, {
|
|
3391
|
-
default:
|
|
3405
|
+
default: P(() => [u.showDrawer ? (b(), o(D(i.tag || "aside"), {
|
|
3392
3406
|
key: 0,
|
|
3393
3407
|
class: g(["w-drawer", d.drawerClasses]),
|
|
3394
3408
|
ref: "drawer",
|
|
3395
3409
|
style: v(d.styles)
|
|
3396
3410
|
}, {
|
|
3397
|
-
default:
|
|
3411
|
+
default: P(() => [w(t.$slots, "default")]),
|
|
3398
3412
|
_: 3
|
|
3399
3413
|
}, 8, ["class", "style"])) : s("", !0)]),
|
|
3400
3414
|
_: 3
|
|
@@ -3406,12 +3420,12 @@ function It(t, n, i, a, u, d) {
|
|
|
3406
3420
|
}
|
|
3407
3421
|
//#endregion
|
|
3408
3422
|
//#region src/wave-ui/components/w-drawer.vue
|
|
3409
|
-
var
|
|
3423
|
+
var Rt = {
|
|
3410
3424
|
left: "right",
|
|
3411
3425
|
right: "left",
|
|
3412
3426
|
top: "down",
|
|
3413
3427
|
bottom: "up"
|
|
3414
|
-
},
|
|
3428
|
+
}, zt = /* @__PURE__ */ Y({
|
|
3415
3429
|
name: "w-drawer",
|
|
3416
3430
|
props: {
|
|
3417
3431
|
modelValue: { default: !0 },
|
|
@@ -3517,7 +3531,7 @@ var Lt = {
|
|
|
3517
3531
|
return !this.showWrapper;
|
|
3518
3532
|
},
|
|
3519
3533
|
transitionName() {
|
|
3520
|
-
return `slide-${
|
|
3534
|
+
return `slide-${Rt[this.position]}`;
|
|
3521
3535
|
}
|
|
3522
3536
|
},
|
|
3523
3537
|
methods: {
|
|
@@ -3534,16 +3548,16 @@ var Lt = {
|
|
|
3534
3548
|
watch: { modelValue(e) {
|
|
3535
3549
|
e && (this.showWrapper = !0), this.showDrawer = e;
|
|
3536
3550
|
} }
|
|
3537
|
-
}, [["render",
|
|
3551
|
+
}, [["render", Lt]]);
|
|
3538
3552
|
//#endregion
|
|
3539
3553
|
//#region src/wave-ui/components/w-flex.vue?vue&type=template&lang.js
|
|
3540
|
-
function
|
|
3541
|
-
return b(), o(
|
|
3542
|
-
default:
|
|
3554
|
+
function Bt(e, t, n, r, i, a) {
|
|
3555
|
+
return b(), o(D(n.tag), { class: g(["w-flex", a.classes]) }, {
|
|
3556
|
+
default: P(() => [w(e.$slots, "default")]),
|
|
3543
3557
|
_: 3
|
|
3544
3558
|
}, 8, ["class"]);
|
|
3545
3559
|
}
|
|
3546
|
-
var
|
|
3560
|
+
var Vt = /* @__PURE__ */ Y({
|
|
3547
3561
|
name: "w-flex",
|
|
3548
3562
|
props: {
|
|
3549
3563
|
tag: {
|
|
@@ -3594,23 +3608,23 @@ var Bt = /* @__PURE__ */ Y({
|
|
|
3594
3608
|
[`gap${this.gap}`]: ~~this.gap
|
|
3595
3609
|
};
|
|
3596
3610
|
} }
|
|
3597
|
-
}, [["render",
|
|
3611
|
+
}, [["render", Bt]]);
|
|
3598
3612
|
//#endregion
|
|
3599
3613
|
//#region src/wave-ui/components/w-form.vue?vue&type=template&lang.js
|
|
3600
|
-
function
|
|
3614
|
+
function Ht(e, t, n, r, i, a) {
|
|
3601
3615
|
return b(), c("form", {
|
|
3602
3616
|
class: g(["w-form", a.classes]),
|
|
3603
3617
|
onSubmit: t[0] ||= (...e) => a.onSubmit && a.onSubmit(...e),
|
|
3604
3618
|
onReset: t[1] ||= (...e) => a.reset && a.reset(...e),
|
|
3605
3619
|
novalidate: ""
|
|
3606
|
-
}, [
|
|
3620
|
+
}, [w(e.$slots, "default")], 34);
|
|
3607
3621
|
}
|
|
3608
3622
|
//#endregion
|
|
3609
3623
|
//#region src/wave-ui/components/w-form.vue
|
|
3610
|
-
var
|
|
3624
|
+
var Ut = async (e, t) => {
|
|
3611
3625
|
for (let n of e) if (await t(n)) return !0;
|
|
3612
3626
|
return !1;
|
|
3613
|
-
},
|
|
3627
|
+
}, Wt = /* @__PURE__ */ Y({
|
|
3614
3628
|
name: "w-form",
|
|
3615
3629
|
props: {
|
|
3616
3630
|
modelValue: {},
|
|
@@ -3662,7 +3676,7 @@ var Ht = async (e, t) => {
|
|
|
3662
3676
|
this.formElements.push(e);
|
|
3663
3677
|
},
|
|
3664
3678
|
unregister(e) {
|
|
3665
|
-
this.formElements = this.formElements.filter((t) => t
|
|
3679
|
+
this.formElements = this.formElements.filter((t) => t !== e);
|
|
3666
3680
|
},
|
|
3667
3681
|
async validate(e) {
|
|
3668
3682
|
this.$emit("before-validate", {
|
|
@@ -3685,7 +3699,7 @@ var Ht = async (e, t) => {
|
|
|
3685
3699
|
},
|
|
3686
3700
|
async checkElementValidators(e) {
|
|
3687
3701
|
let t = !1, n = "";
|
|
3688
|
-
await
|
|
3702
|
+
await Ut(e.validators, async (r) => {
|
|
3689
3703
|
let i = await (typeof r == "function" && r(e.inputValue));
|
|
3690
3704
|
return t = typeof i != "string", n = t ? "" : i, !t;
|
|
3691
3705
|
}), e.hasJustReset = !1, e.Validation.isValid = t, e.Validation.message = n;
|
|
@@ -3706,20 +3720,20 @@ var Ht = async (e, t) => {
|
|
|
3706
3720
|
watch: { modelValue(e) {
|
|
3707
3721
|
(this.status === !1 && e || e === null && this.status !== null) && this.reset(), this.status = e;
|
|
3708
3722
|
} }
|
|
3709
|
-
}, [["render",
|
|
3723
|
+
}, [["render", Ht]]);
|
|
3710
3724
|
//#endregion
|
|
3711
3725
|
//#region src/wave-ui/components/w-form-element.vue?vue&type=template&lang.js
|
|
3712
|
-
function
|
|
3713
|
-
let o =
|
|
3714
|
-
return b(), c("div", { class: g(a.classes) }, [l("div", { class: g(["w-flex grow", [n.column ? "column" : "align-center", n.wrap ? "wrap" : ""]]) }, [
|
|
3715
|
-
default:
|
|
3726
|
+
function Gt(e, t, n, r, i, a) {
|
|
3727
|
+
let o = T("w-transition-expand");
|
|
3728
|
+
return b(), c("div", { class: g(a.classes) }, [l("div", { class: g(["w-flex grow", [n.column ? "column" : "align-center", n.wrap ? "wrap" : ""]]) }, [w(e.$slots, "default")], 2), f(o, { y: "" }, {
|
|
3729
|
+
default: P(() => [e.Validation.message ? (b(), c("div", {
|
|
3716
3730
|
key: 0,
|
|
3717
3731
|
class: g(["w-form-el__error", a.formProps.validationColor])
|
|
3718
|
-
}, [
|
|
3732
|
+
}, [w(e.$slots, "error-message", { message: e.Validation.message }, () => [d(O(e.Validation.message), 1)])], 2)) : s("", !0)]),
|
|
3719
3733
|
_: 3
|
|
3720
3734
|
})], 2);
|
|
3721
3735
|
}
|
|
3722
|
-
var
|
|
3736
|
+
var Kt = /* @__PURE__ */ Y({
|
|
3723
3737
|
name: "w-form-element",
|
|
3724
3738
|
props: {
|
|
3725
3739
|
valid: { required: !0 },
|
|
@@ -3727,6 +3741,7 @@ var Gt = /* @__PURE__ */ Y({
|
|
|
3727
3741
|
readonly: { type: Boolean },
|
|
3728
3742
|
inputValue: { required: !0 },
|
|
3729
3743
|
validators: { type: Array },
|
|
3744
|
+
noBlurValidation: { type: Boolean },
|
|
3730
3745
|
isFocused: { default: !1 },
|
|
3731
3746
|
column: { default: !1 },
|
|
3732
3747
|
wrap: { default: !1 }
|
|
@@ -3751,13 +3766,18 @@ var Gt = /* @__PURE__ */ Y({
|
|
|
3751
3766
|
},
|
|
3752
3767
|
hasJustReset: !1
|
|
3753
3768
|
}),
|
|
3754
|
-
computed: {
|
|
3755
|
-
|
|
3756
|
-
"w-form-el
|
|
3757
|
-
|
|
3758
|
-
|
|
3759
|
-
|
|
3760
|
-
|
|
3769
|
+
computed: {
|
|
3770
|
+
classes() {
|
|
3771
|
+
return ["w-form-el", [
|
|
3772
|
+
"w-form-el--error error",
|
|
3773
|
+
"w-form-el--success",
|
|
3774
|
+
"w-form-el--pristine"
|
|
3775
|
+
][this.Validation.isValid === null ? 2 : ~~this.Validation.isValid]];
|
|
3776
|
+
},
|
|
3777
|
+
shouldSkipBlurValidation() {
|
|
3778
|
+
return this.noBlurValidation === !0 ? !0 : this.noBlurValidation === !1 ? !1 : !!this.formProps.noBlurValidation;
|
|
3779
|
+
}
|
|
3780
|
+
},
|
|
3761
3781
|
methods: {
|
|
3762
3782
|
reset() {
|
|
3763
3783
|
this.$emit("reset"), this.$emit("update:valid", null), this.Validation.message = "", this.Validation.isValid = null, this.hasJustReset = !0;
|
|
@@ -3772,7 +3792,7 @@ var Gt = /* @__PURE__ */ Y({
|
|
|
3772
3792
|
!this.formProps.noKeyupValidation && this.validators && this.$emit("update:valid", await this.validateElement(this));
|
|
3773
3793
|
},
|
|
3774
3794
|
async isFocused(e) {
|
|
3775
|
-
e ? this.hasJustReset = !1 : !this.
|
|
3795
|
+
e ? this.hasJustReset = !1 : !this.shouldSkipBlurValidation && this.validators && !this.readonly && this.$emit("update:valid", await this.validateElement(this));
|
|
3776
3796
|
}
|
|
3777
3797
|
},
|
|
3778
3798
|
created() {
|
|
@@ -3781,16 +3801,16 @@ var Gt = /* @__PURE__ */ Y({
|
|
|
3781
3801
|
beforeUnmount() {
|
|
3782
3802
|
this.formUnregister && this.formUnregister(this);
|
|
3783
3803
|
}
|
|
3784
|
-
}, [["render",
|
|
3804
|
+
}, [["render", Gt]]);
|
|
3785
3805
|
//#endregion
|
|
3786
3806
|
//#region src/wave-ui/components/w-grid.vue?vue&type=template&lang.js
|
|
3787
|
-
function
|
|
3788
|
-
return b(), o(
|
|
3789
|
-
default:
|
|
3807
|
+
function qt(e, t, n, r, i, a) {
|
|
3808
|
+
return b(), o(D(n.tag), { class: g(["w-grid", a.classes]) }, {
|
|
3809
|
+
default: P(() => [w(e.$slots, "default")]),
|
|
3790
3810
|
_: 3
|
|
3791
3811
|
}, 8, ["class"]);
|
|
3792
3812
|
}
|
|
3793
|
-
var
|
|
3813
|
+
var Jt = /* @__PURE__ */ Y({
|
|
3794
3814
|
name: "w-grid",
|
|
3795
3815
|
props: {
|
|
3796
3816
|
tag: {
|
|
@@ -3862,21 +3882,21 @@ var qt = /* @__PURE__ */ Y({
|
|
|
3862
3882
|
};
|
|
3863
3883
|
}
|
|
3864
3884
|
}
|
|
3865
|
-
}, [["render",
|
|
3885
|
+
}, [["render", qt]]);
|
|
3866
3886
|
//#endregion
|
|
3867
3887
|
//#region src/wave-ui/components/w-icon.vue?vue&type=template&lang.js
|
|
3868
|
-
function
|
|
3869
|
-
return b(), o(
|
|
3888
|
+
function Yt(t, n, r, i, a, l) {
|
|
3889
|
+
return b(), o(D(r.tag || "i"), {
|
|
3870
3890
|
class: g(["w-icon", l.classes]),
|
|
3871
3891
|
role: "icon",
|
|
3872
3892
|
"aria-hidden": "true",
|
|
3873
3893
|
style: v(l.readIcon() && l.styles)
|
|
3874
3894
|
}, {
|
|
3875
|
-
default:
|
|
3895
|
+
default: P(() => [l.hasLigature ? (b(), c(e, { key: 0 }, [d(O(t.icon), 1)], 64)) : s("", !0)]),
|
|
3876
3896
|
_: 1
|
|
3877
3897
|
}, 8, ["class", "style"]);
|
|
3878
3898
|
}
|
|
3879
|
-
var
|
|
3899
|
+
var Xt = /* @__PURE__ */ Y({
|
|
3880
3900
|
name: "w-icon",
|
|
3881
3901
|
props: {
|
|
3882
3902
|
tag: {
|
|
@@ -3946,24 +3966,24 @@ var Yt = /* @__PURE__ */ Y({
|
|
|
3946
3966
|
let { default: e } = this.$slots, [t = "", n = ""] = typeof e == "function" && e()?.[0]?.children?.trim()?.split(" ") || [];
|
|
3947
3967
|
return this.fontName = t, this.icon = n, !0;
|
|
3948
3968
|
} }
|
|
3949
|
-
}, [["render",
|
|
3969
|
+
}, [["render", Yt]]), Zt = {
|
|
3950
3970
|
key: 0,
|
|
3951
3971
|
class: "w-image__loader"
|
|
3952
|
-
},
|
|
3953
|
-
function
|
|
3954
|
-
let u =
|
|
3955
|
-
return b(), o(
|
|
3972
|
+
}, Qt = ["innerHTML"];
|
|
3973
|
+
function $t(e, t, n, i, a, l) {
|
|
3974
|
+
let u = T("w-progress");
|
|
3975
|
+
return b(), o(D(l.wrapperTag), {
|
|
3956
3976
|
class: g(["w-image", l.wrapperClasses]),
|
|
3957
3977
|
ref: "imageWrap",
|
|
3958
3978
|
style: v(l.wrapperStyles),
|
|
3959
3979
|
onError: t[0] ||= (e) => a.error = !0
|
|
3960
3980
|
}, {
|
|
3961
|
-
default:
|
|
3981
|
+
default: P(() => [
|
|
3962
3982
|
f(r, {
|
|
3963
3983
|
name: n.transition,
|
|
3964
3984
|
appear: ""
|
|
3965
3985
|
}, {
|
|
3966
|
-
default:
|
|
3986
|
+
default: P(() => [a.loaded ? (b(), o(D(l.normalized.tag), {
|
|
3967
3987
|
key: 0,
|
|
3968
3988
|
class: g(["w-image__image", l.imageClasses]),
|
|
3969
3989
|
style: v(l.imageStyles),
|
|
@@ -3975,31 +3995,31 @@ function Qt(e, t, n, i, a, l) {
|
|
|
3975
3995
|
])) : s("", !0)]),
|
|
3976
3996
|
_: 1
|
|
3977
3997
|
}, 8, ["name"]),
|
|
3978
|
-
!n.noSpinner && a.loading ? (b(), c("span",
|
|
3998
|
+
!n.noSpinner && a.loading ? (b(), c("span", Zt, [e.$slots.loading ? w(e.$slots, "loading", { key: 0 }) : (b(), o(u, h({
|
|
3979
3999
|
key: 1,
|
|
3980
4000
|
circle: "",
|
|
3981
4001
|
indeterminate: ""
|
|
3982
4002
|
}, n.spinnerColor ? { color: n.spinnerColor } : {}), null, 16))])) : s("", !0),
|
|
3983
|
-
e.$slots.default ? (b(), o(
|
|
4003
|
+
e.$slots.default ? (b(), o(D(l.wrapperTag), {
|
|
3984
4004
|
key: 1,
|
|
3985
4005
|
class: g(["w-image__content", n.contentClass])
|
|
3986
4006
|
}, {
|
|
3987
|
-
default:
|
|
4007
|
+
default: P(() => [w(e.$slots, "default")]),
|
|
3988
4008
|
_: 3
|
|
3989
4009
|
}, 8, ["class"])) : s("", !0),
|
|
3990
4010
|
e.$slots.caption ? (b(), c("figcaption", {
|
|
3991
4011
|
key: 2,
|
|
3992
4012
|
class: g(["w-image__caption caption", n.captionClass])
|
|
3993
|
-
}, [
|
|
4013
|
+
}, [w(e.$slots, "caption")], 2)) : n.caption ? (b(), c("figcaption", {
|
|
3994
4014
|
key: 3,
|
|
3995
4015
|
class: g(["w-image__caption caption", n.captionClass]),
|
|
3996
4016
|
innerHTML: n.caption
|
|
3997
|
-
}, null, 10,
|
|
4017
|
+
}, null, 10, Qt)) : s("", !0)
|
|
3998
4018
|
]),
|
|
3999
4019
|
_: 3
|
|
4000
4020
|
}, 40, ["class", "style"]);
|
|
4001
4021
|
}
|
|
4002
|
-
var
|
|
4022
|
+
var en = /* @__PURE__ */ Y({
|
|
4003
4023
|
name: "w-image",
|
|
4004
4024
|
props: {
|
|
4005
4025
|
tag: {
|
|
@@ -4101,7 +4121,7 @@ var $t = /* @__PURE__ */ Y({
|
|
|
4101
4121
|
});
|
|
4102
4122
|
} },
|
|
4103
4123
|
mounted() {
|
|
4104
|
-
if (!this.src) return
|
|
4124
|
+
if (!this.src) return z("The w-image component was used without src.");
|
|
4105
4125
|
if (this.lazy) {
|
|
4106
4126
|
let e = new IntersectionObserver((t) => {
|
|
4107
4127
|
t[0]?.isIntersecting && (this.loadImage(), e.disconnect());
|
|
@@ -4112,7 +4132,7 @@ var $t = /* @__PURE__ */ Y({
|
|
|
4112
4132
|
watch: { src() {
|
|
4113
4133
|
this.loadImage();
|
|
4114
4134
|
} }
|
|
4115
|
-
}, [["render",
|
|
4135
|
+
}, [["render", $t]]), tn = ["name"], nn = ["for"], rn = [
|
|
4116
4136
|
"id",
|
|
4117
4137
|
"type",
|
|
4118
4138
|
"name",
|
|
@@ -4127,24 +4147,25 @@ var $t = /* @__PURE__ */ Y({
|
|
|
4127
4147
|
"disabled",
|
|
4128
4148
|
"required",
|
|
4129
4149
|
"tabindex"
|
|
4130
|
-
],
|
|
4150
|
+
], an = [
|
|
4131
4151
|
"id",
|
|
4132
4152
|
"name",
|
|
4133
4153
|
"multiple",
|
|
4134
4154
|
"disabled",
|
|
4135
4155
|
"data-progress"
|
|
4136
|
-
],
|
|
4156
|
+
], on = {
|
|
4137
4157
|
class: "w-input__no-file",
|
|
4138
4158
|
key: "no-file"
|
|
4139
|
-
},
|
|
4140
|
-
function
|
|
4141
|
-
let m =
|
|
4142
|
-
return b(), o(
|
|
4159
|
+
}, sn = ["for"], cn = ["src"], ln = ["for"];
|
|
4160
|
+
function un(t, n, r, a, u, p) {
|
|
4161
|
+
let m = T("w-icon"), _ = T("w-progress");
|
|
4162
|
+
return b(), o(D(t.formRegister ? "w-form-element" : "div"), h({ ref: "formEl" }, t.formRegister && {
|
|
4143
4163
|
validators: t.validators,
|
|
4144
4164
|
inputValue: u.inputValue,
|
|
4145
4165
|
disabled: t.isDisabled,
|
|
4146
4166
|
readonly: t.isReadonly,
|
|
4147
|
-
isFocused: u.isFocused
|
|
4167
|
+
isFocused: u.isFocused,
|
|
4168
|
+
noBlurValidation: t.noBlurValidation
|
|
4148
4169
|
}, {
|
|
4149
4170
|
valid: t.valid,
|
|
4150
4171
|
"onUpdate:valid": n[10] ||= (e) => t.valid = e,
|
|
@@ -4155,31 +4176,31 @@ function ln(t, n, r, a, u, p) {
|
|
|
4155
4176
|
class: p.classes,
|
|
4156
4177
|
style: t.$attrs.style
|
|
4157
4178
|
}), {
|
|
4158
|
-
default:
|
|
4179
|
+
default: P(() => [r.type === "hidden" ? F((b(), c("input", {
|
|
4159
4180
|
key: 0,
|
|
4160
4181
|
type: "hidden",
|
|
4161
4182
|
name: t.name || null,
|
|
4162
4183
|
"onUpdate:modelValue": n[0] ||= (e) => u.inputValue = e
|
|
4163
|
-
}, null, 8,
|
|
4184
|
+
}, null, 8, tn)), [[M, u.inputValue]]) : (b(), c(e, { key: 1 }, [
|
|
4164
4185
|
r.labelPosition === "left" ? (b(), c(e, { key: 0 }, [t.$slots.default || r.label ? (b(), c("label", {
|
|
4165
4186
|
key: 0,
|
|
4166
4187
|
class: g(["w-input__label w-input__label--left w-form-el-shakable", t.labelClasses]),
|
|
4167
|
-
for:
|
|
4168
|
-
}, [
|
|
4188
|
+
for: t.inputId
|
|
4189
|
+
}, [w(t.$slots, "default", {}, () => [d(O(r.label), 1)])], 10, nn)) : s("", !0)], 64)) : s("", !0),
|
|
4169
4190
|
l("div", { class: g(["w-input__input-wrap", p.inputWrapClasses]) }, [
|
|
4170
|
-
|
|
4191
|
+
w(t.$slots, "icon-left", { inputId: t.inputId }, () => [r.innerIconLeft ? (b(), o(m, {
|
|
4171
4192
|
key: 0,
|
|
4172
4193
|
class: "w-input__icon w-input__icon--inner-left",
|
|
4173
4194
|
tag: "label",
|
|
4174
|
-
for:
|
|
4195
|
+
for: t.inputId,
|
|
4175
4196
|
onClick: n[1] ||= (e) => t.$emit("click:inner-icon-left", e)
|
|
4176
4197
|
}, {
|
|
4177
|
-
default:
|
|
4198
|
+
default: P(() => [d(O(r.innerIconLeft), 1)]),
|
|
4178
4199
|
_: 1
|
|
4179
4200
|
}, 8, ["for"])) : s("", !0)]),
|
|
4180
4201
|
r.type === "file" ? (b(), c(e, { key: 1 }, [l("input", h({
|
|
4181
4202
|
ref: "input",
|
|
4182
|
-
id:
|
|
4203
|
+
id: t.inputId,
|
|
4183
4204
|
type: "file",
|
|
4184
4205
|
name: t.name || null,
|
|
4185
4206
|
onFocus: n[6] ||= (...e) => p.onFocus && p.onFocus(...e),
|
|
@@ -4189,22 +4210,22 @@ function ln(t, n, r, a, u, p) {
|
|
|
4189
4210
|
}, p.attrs, {
|
|
4190
4211
|
disabled: t.isDisabled || null,
|
|
4191
4212
|
"data-progress": p.overallFilesProgress
|
|
4192
|
-
}), null, 16,
|
|
4213
|
+
}), null, 16, an), f(i, {
|
|
4193
4214
|
class: "w-input__input w-input__input--file",
|
|
4194
4215
|
tag: "label",
|
|
4195
4216
|
name: "fade",
|
|
4196
|
-
for:
|
|
4217
|
+
for: t.inputId
|
|
4197
4218
|
}, {
|
|
4198
|
-
default:
|
|
4199
|
-
d(
|
|
4219
|
+
default: P(() => [!u.inputFiles.length && u.isFocused ? (b(), c("span", on, [w(t.$slots, "no-file", {}, () => [t.$slots["no-file"] === void 0 ? (b(), c(e, { key: 0 }, [d("No file")], 64)) : s("", !0)])])) : s("", !0), (b(!0), c(e, null, C(u.inputFiles, (e, t) => (b(), c("span", { key: e.lastModified }, [
|
|
4220
|
+
d(O(t ? ", " : ""), 1),
|
|
4200
4221
|
(b(), c("span", {
|
|
4201
4222
|
class: "filename",
|
|
4202
4223
|
key: `${t}b`
|
|
4203
|
-
},
|
|
4204
|
-
d(
|
|
4224
|
+
}, O(e.base), 1)),
|
|
4225
|
+
d(O(e.extension ? `.${e.extension}` : ""), 1)
|
|
4205
4226
|
]))), 128))]),
|
|
4206
4227
|
_: 3
|
|
4207
|
-
}, 8, ["for"])], 64)) :
|
|
4228
|
+
}, 8, ["for"])], 64)) : F((b(), c("input", h({
|
|
4208
4229
|
key: 0,
|
|
4209
4230
|
class: "w-input__input",
|
|
4210
4231
|
ref: "input",
|
|
@@ -4212,7 +4233,7 @@ function ln(t, n, r, a, u, p) {
|
|
|
4212
4233
|
onInput: n[3] ||= (...e) => p.onInput && p.onInput(...e),
|
|
4213
4234
|
onFocus: n[4] ||= (...e) => p.onFocus && p.onFocus(...e),
|
|
4214
4235
|
onBlur: n[5] ||= (...e) => p.onBlur && p.onBlur(...e),
|
|
4215
|
-
id:
|
|
4236
|
+
id: t.inputId,
|
|
4216
4237
|
type: r.type,
|
|
4217
4238
|
name: t.inputName,
|
|
4218
4239
|
placeholder: r.placeholder || null,
|
|
@@ -4226,19 +4247,19 @@ function ln(t, n, r, a, u, p) {
|
|
|
4226
4247
|
disabled: t.isDisabled || null,
|
|
4227
4248
|
required: t.required || null,
|
|
4228
4249
|
tabindex: t.tabindex || null
|
|
4229
|
-
}, p.attrs, { class: r.inputClass }), null, 16,
|
|
4250
|
+
}, p.attrs, { class: r.inputClass }), null, 16, rn)), [[j, u.inputValue]]),
|
|
4230
4251
|
r.labelPosition === "inside" && p.showLabelInside ? (b(), c(e, { key: 2 }, [t.$slots.default || r.label ? (b(), c("label", {
|
|
4231
4252
|
key: 0,
|
|
4232
4253
|
class: g(["w-input__label w-input__label--inside w-form-el-shakable", t.labelClasses])
|
|
4233
|
-
}, [
|
|
4234
|
-
|
|
4254
|
+
}, [w(t.$slots, "default", {}, () => [d(O(r.label), 1)])], 2)) : s("", !0)], 64)) : s("", !0),
|
|
4255
|
+
w(t.$slots, "icon-right", { inputId: t.inputId }, () => [r.innerIconRight ? (b(), o(m, {
|
|
4235
4256
|
key: 0,
|
|
4236
4257
|
class: "w-input__icon w-input__icon--inner-right",
|
|
4237
4258
|
tag: "label",
|
|
4238
|
-
for:
|
|
4259
|
+
for: t.inputId,
|
|
4239
4260
|
onClick: n[9] ||= (e) => t.$emit("click:inner-icon-right", e)
|
|
4240
4261
|
}, {
|
|
4241
|
-
default:
|
|
4262
|
+
default: P(() => [d(O(r.innerIconRight), 1)]),
|
|
4242
4263
|
_: 1
|
|
4243
4264
|
}, 8, ["for"])) : s("", !0)]),
|
|
4244
4265
|
p.hasLoading || r.showProgress && (p.uploadInProgress || p.uploadComplete) ? (b(), o(_, {
|
|
@@ -4252,8 +4273,8 @@ function ln(t, n, r, a, u, p) {
|
|
|
4252
4273
|
r.type === "file" && r.preview && u.inputFiles.length ? (b(), c("label", {
|
|
4253
4274
|
key: 1,
|
|
4254
4275
|
class: "d-flex",
|
|
4255
|
-
for:
|
|
4256
|
-
}, [(b(!0), c(e, null,
|
|
4276
|
+
for: t.inputId
|
|
4277
|
+
}, [(b(!0), c(e, null, C(u.inputFiles, (t, n) => (b(), c(e, null, [t.progress < 100 ? (b(), c("i", {
|
|
4257
4278
|
class: "w-icon wi-spinner w-icon--spin size--sm w-input__file-preview primary",
|
|
4258
4279
|
key: `${n}a`
|
|
4259
4280
|
})) : t.preview ? (b(), c("img", {
|
|
@@ -4261,15 +4282,15 @@ function ln(t, n, r, a, u, p) {
|
|
|
4261
4282
|
key: `${n}b`,
|
|
4262
4283
|
src: t.preview,
|
|
4263
4284
|
alt: ""
|
|
4264
|
-
}, null, 8,
|
|
4285
|
+
}, null, 8, cn)) : (b(), c("i", {
|
|
4265
4286
|
class: g(["w-icon w-input__file-preview primary size--md", r.preview && typeof r.preview == "string" ? r.preview : "wi-file"]),
|
|
4266
4287
|
key: `${n}c`
|
|
4267
|
-
}, null, 2))], 64))), 256))], 8,
|
|
4288
|
+
}, null, 2))], 64))), 256))], 8, sn)) : s("", !0),
|
|
4268
4289
|
r.labelPosition === "right" ? (b(), c(e, { key: 2 }, [t.$slots.default || r.label ? (b(), c("label", {
|
|
4269
4290
|
key: 0,
|
|
4270
4291
|
class: g(["w-input__label w-input__label--right w-form-el-shakable", t.labelClasses]),
|
|
4271
|
-
for:
|
|
4272
|
-
}, [
|
|
4292
|
+
for: t.inputId
|
|
4293
|
+
}, [w(t.$slots, "default", {}, () => [d(O(r.label), 1)])], 10, ln)) : s("", !0)], 64)) : s("", !0)
|
|
4273
4294
|
], 64))]),
|
|
4274
4295
|
_: 3
|
|
4275
4296
|
}, 16, [
|
|
@@ -4279,7 +4300,7 @@ function ln(t, n, r, a, u, p) {
|
|
|
4279
4300
|
"style"
|
|
4280
4301
|
]);
|
|
4281
4302
|
}
|
|
4282
|
-
var
|
|
4303
|
+
var dn = /* @__PURE__ */ Y({
|
|
4283
4304
|
name: "w-input",
|
|
4284
4305
|
mixins: [Q],
|
|
4285
4306
|
inheritAttrs: !1,
|
|
@@ -4467,12 +4488,12 @@ var un = /* @__PURE__ */ Y({
|
|
|
4467
4488
|
watch: { modelValue(e) {
|
|
4468
4489
|
this.inputValue = e, !e && e !== 0 && (this.isAutofilled = !1, this.inputFiles = []);
|
|
4469
4490
|
} }
|
|
4470
|
-
}, [["render",
|
|
4491
|
+
}, [["render", un]]);
|
|
4471
4492
|
//#endregion
|
|
4472
4493
|
//#region src/wave-ui/components/w-list.vue?vue&type=template&lang.js
|
|
4473
|
-
function
|
|
4474
|
-
let f =
|
|
4475
|
-
return b(), c("ul", { class: g(["w-list", l.classes]) }, [(b(!0), c(e, null,
|
|
4494
|
+
function fn(t, n, r, i, a, l) {
|
|
4495
|
+
let f = T("w-icon"), p = T("w-list", !0);
|
|
4496
|
+
return b(), c("ul", { class: g(["w-list", l.classes]) }, [(b(!0), c(e, null, C(t.listItems, (e, i) => (b(), c("li", {
|
|
4476
4497
|
class: g(["w-list__item", { "w-list__item--parent": (e.children || []).length }]),
|
|
4477
4498
|
key: i
|
|
4478
4499
|
}, [
|
|
@@ -4480,31 +4501,31 @@ function dn(t, n, r, i, a, l) {
|
|
|
4480
4501
|
key: 0,
|
|
4481
4502
|
class: "w-list__item-bullet"
|
|
4482
4503
|
}, {
|
|
4483
|
-
default:
|
|
4504
|
+
default: P(() => [d(O(r.icon), 1)]),
|
|
4484
4505
|
_: 1
|
|
4485
4506
|
})) : s("", !0),
|
|
4486
|
-
t.$slots[`item.${i + 1}`] || t.$slots.item || t.$slots.default ? (b(), o(
|
|
4507
|
+
t.$slots[`item.${i + 1}`] || t.$slots.item || t.$slots.default ? (b(), o(D(r.checklist ? "w-checkbox" : r.nav && !e.disabled && e.route ? l.hasRouter ? "router-link" : "a" : "div"), h({
|
|
4487
4508
|
key: 1,
|
|
4488
4509
|
class: "w-list__item-label"
|
|
4489
4510
|
}, { ref_for: !0 }, l.liLabelProps(e, i, e._selected)), {
|
|
4490
|
-
default:
|
|
4511
|
+
default: P(() => [t.$slots[`item.${i + 1}`] ? w(t.$slots, `item.${i + 1}`, {
|
|
4491
4512
|
key: 0,
|
|
4492
4513
|
item: l.cleanLi(e),
|
|
4493
4514
|
index: i + 1,
|
|
4494
4515
|
selected: e._selected
|
|
4495
|
-
}) : t.$slots.item ?
|
|
4516
|
+
}) : t.$slots.item ? w(t.$slots, "item", {
|
|
4496
4517
|
key: 1,
|
|
4497
4518
|
item: l.cleanLi(e),
|
|
4498
4519
|
index: i + 1,
|
|
4499
4520
|
selected: e._selected
|
|
4500
|
-
}) :
|
|
4521
|
+
}) : w(t.$slots, "default", {
|
|
4501
4522
|
key: 2,
|
|
4502
4523
|
item: l.cleanLi(e),
|
|
4503
4524
|
index: i + 1,
|
|
4504
4525
|
selected: e._selected
|
|
4505
|
-
}, () => [d(
|
|
4526
|
+
}, () => [d(O(e._label), 1)])]),
|
|
4506
4527
|
_: 2
|
|
4507
|
-
}, 1040)) : (b(), o(
|
|
4528
|
+
}, 1040)) : (b(), o(D(r.checklist ? "w-checkbox" : r.nav && !e.disabled && e.route ? l.hasRouter ? "router-link" : "a" : "div"), h({
|
|
4508
4529
|
key: 2,
|
|
4509
4530
|
class: "w-list__item-label"
|
|
4510
4531
|
}, { ref_for: !0 }, l.liLabelProps(e, i, e._selected)), null, 16)),
|
|
@@ -4520,7 +4541,7 @@ function dn(t, n, r, i, a, l) {
|
|
|
4520
4541
|
onItemSelect: n[3] ||= (e) => t.$emit("item-select", e)
|
|
4521
4542
|
}), u({ _: 2 }, [t.$slots.item ? {
|
|
4522
4543
|
name: "item",
|
|
4523
|
-
fn:
|
|
4544
|
+
fn: P(({ item: e, index: n, selected: r }) => [w(t.$slots, "item", {
|
|
4524
4545
|
item: l.cleanLi(e),
|
|
4525
4546
|
index: n,
|
|
4526
4547
|
selected: r
|
|
@@ -4528,17 +4549,20 @@ function dn(t, n, r, i, a, l) {
|
|
|
4528
4549
|
key: "0"
|
|
4529
4550
|
} : {
|
|
4530
4551
|
name: "default",
|
|
4531
|
-
fn:
|
|
4552
|
+
fn: P(({ item: e, index: n, selected: i }) => [w(t.$slots, "default", {
|
|
4532
4553
|
item: l.cleanLi(e),
|
|
4533
4554
|
index: n,
|
|
4534
4555
|
selected: i
|
|
4535
|
-
}, () => [d(
|
|
4556
|
+
}, () => [d(O(e[r.itemLabelKey]), 1)])]),
|
|
4536
4557
|
key: "1"
|
|
4537
4558
|
}]), 1040, ["items", "depth"])) : s("", !0)
|
|
4538
4559
|
], 2))), 128))], 2);
|
|
4539
4560
|
}
|
|
4540
|
-
var
|
|
4561
|
+
var pn = /* @__PURE__ */ Y({
|
|
4541
4562
|
name: "w-list",
|
|
4563
|
+
setup() {
|
|
4564
|
+
return { _waveUiUseId: A() };
|
|
4565
|
+
},
|
|
4542
4566
|
props: {
|
|
4543
4567
|
items: {
|
|
4544
4568
|
type: [Array, Number],
|
|
@@ -4601,7 +4625,7 @@ var fn = /* @__PURE__ */ Y({
|
|
|
4601
4625
|
return "$router" in this;
|
|
4602
4626
|
},
|
|
4603
4627
|
listId() {
|
|
4604
|
-
return this.addIds ? typeof this.addIds == "string" ? this.addIds : `w-list--${this.
|
|
4628
|
+
return this.addIds ? typeof this.addIds == "string" ? this.addIds : `w-list--${this._waveUiUseId}` : null;
|
|
4605
4629
|
},
|
|
4606
4630
|
selectedItems() {
|
|
4607
4631
|
return this.listItems.filter((e) => e._selected);
|
|
@@ -4731,8 +4755,8 @@ var fn = /* @__PURE__ */ Y({
|
|
|
4731
4755
|
}
|
|
4732
4756
|
}
|
|
4733
4757
|
}
|
|
4734
|
-
}, [["render",
|
|
4735
|
-
function
|
|
4758
|
+
}, [["render", fn]]), mn = 4;
|
|
4759
|
+
function hn(e) {
|
|
4736
4760
|
return {
|
|
4737
4761
|
top: "bottom",
|
|
4738
4762
|
bottom: "top",
|
|
@@ -4740,7 +4764,7 @@ function mn(e) {
|
|
|
4740
4764
|
right: "left"
|
|
4741
4765
|
}[e] || "bottom";
|
|
4742
4766
|
}
|
|
4743
|
-
var
|
|
4767
|
+
var gn = {
|
|
4744
4768
|
props: {
|
|
4745
4769
|
appendTo: { type: [
|
|
4746
4770
|
String,
|
|
@@ -4781,7 +4805,7 @@ var hn = {
|
|
|
4781
4805
|
let e = ".w-app";
|
|
4782
4806
|
typeof this.detachableDefaultRoot == "function" && (e = this.detachableDefaultRoot() || e);
|
|
4783
4807
|
let t = this.appendTo || e;
|
|
4784
|
-
return t === !0 ? t = e : this.appendTo === "activator" ? t = this.$el.previousElementSibling || this.$el.nextElementSibling : t && !["object", "string"].includes(typeof t) ? t = e : typeof t == "object" && !t.nodeType && (t = e,
|
|
4808
|
+
return t === !0 ? t = e : this.appendTo === "activator" ? t = this.$el.previousElementSibling || this.$el.nextElementSibling : t && !["object", "string"].includes(typeof t) ? t = e : typeof t == "object" && !t.nodeType && (t = e, z(`Invalid node provided in ${this.$options.name} \`append-to\`. Falling back to .w-app.`, this)), typeof t == "string" && (t = document.querySelector(t)), t ||= (z(`Unable to locate ${this.appendTo ? `target ${this.appendTo}` : e}`, this), document.querySelector(e)), t;
|
|
4785
4809
|
},
|
|
4786
4810
|
detachableParentEl() {
|
|
4787
4811
|
return this.appendToTarget;
|
|
@@ -4877,8 +4901,8 @@ var hn = {
|
|
|
4877
4901
|
this.viewportPlacementOverride = null, this.detachableEl.style.display = "flex";
|
|
4878
4902
|
let e = window.getComputedStyle(this.detachableEl, null), t = this.detachableEl.offsetWidth, n = this.detachableEl.offsetHeight, r = this.position;
|
|
4879
4903
|
if (!this.noPosition) {
|
|
4880
|
-
let e =
|
|
4881
|
-
(r === "bottom" && o + l + n > a - e && o - n >= e || r === "top" && o - n < e && o + l + n <= a - e || r === "right" && s + c + t > i - e && s - t >= e || r === "left" && s - t < e && s + c + t <= i - e) && (r =
|
|
4904
|
+
let e = mn, i = window.innerWidth, a = window.innerHeight, { top: o, left: s, width: c, height: l } = this.activatorEl.getBoundingClientRect();
|
|
4905
|
+
(r === "bottom" && o + l + n > a - e && o - n >= e || r === "top" && o - n < e && o + l + n <= a - e || r === "right" && s + c + t > i - e && s - t >= e || r === "left" && s - t < e && s + c + t <= i - e) && (r = hn(r), this.viewportPlacementOverride = r);
|
|
4882
4906
|
}
|
|
4883
4907
|
let i = this.getActivatorCoordinates(), { top: a, left: o } = this._applyDetachablePlacement(r, i, e);
|
|
4884
4908
|
this.detachableCoords = {
|
|
@@ -4942,16 +4966,16 @@ var hn = {
|
|
|
4942
4966
|
};
|
|
4943
4967
|
//#endregion
|
|
4944
4968
|
//#region src/wave-ui/components/w-menu.vue?vue&type=template&lang.js
|
|
4945
|
-
function
|
|
4946
|
-
let p =
|
|
4969
|
+
function _n(t, n, i, a, l, d) {
|
|
4970
|
+
let p = T("w-card"), m = T("w-overlay");
|
|
4947
4971
|
return b(), c(e, null, [
|
|
4948
|
-
|
|
4972
|
+
w(t.$slots, "activator", { on: d.activatorEventHandlers }),
|
|
4949
4973
|
f(r, {
|
|
4950
4974
|
name: d.transitionName,
|
|
4951
4975
|
appear: "",
|
|
4952
4976
|
onAfterLeave: t.onAfterLeave
|
|
4953
4977
|
}, {
|
|
4954
|
-
default:
|
|
4978
|
+
default: P(() => [i.custom && t.detachableVisible ? (b(), c("div", h({
|
|
4955
4979
|
key: 0,
|
|
4956
4980
|
class: "w-menu",
|
|
4957
4981
|
ref: "detachable"
|
|
@@ -4961,7 +4985,7 @@ function gn(t, n, i, a, l, d) {
|
|
|
4961
4985
|
onMouseleave: n[2] ||= (e) => i.showOnHover && (t.hoveringMenu = !1, d.close()),
|
|
4962
4986
|
class: d.classes,
|
|
4963
4987
|
style: d.styles
|
|
4964
|
-
}), [
|
|
4988
|
+
}), [w(t.$slots, "default")], 16)) : t.detachableVisible ? (b(), o(p, h({
|
|
4965
4989
|
key: 1,
|
|
4966
4990
|
class: "w-menu",
|
|
4967
4991
|
ref: "detachable"
|
|
@@ -4977,15 +5001,15 @@ function gn(t, n, i, a, l, d) {
|
|
|
4977
5001
|
class: d.classes,
|
|
4978
5002
|
style: d.styles
|
|
4979
5003
|
}), u({
|
|
4980
|
-
default:
|
|
5004
|
+
default: P(() => [w(t.$slots, "default")]),
|
|
4981
5005
|
_: 2
|
|
4982
5006
|
}, [t.$slots.title ? {
|
|
4983
5007
|
name: "title",
|
|
4984
|
-
fn:
|
|
5008
|
+
fn: P(() => [w(t.$slots, "title")]),
|
|
4985
5009
|
key: "0"
|
|
4986
5010
|
} : void 0, t.$slots.actions ? {
|
|
4987
5011
|
name: "actions",
|
|
4988
|
-
fn:
|
|
5012
|
+
fn: P(() => [w(t.$slots, "actions")]),
|
|
4989
5013
|
key: "1"
|
|
4990
5014
|
} : void 0]), 1040, [
|
|
4991
5015
|
"tile",
|
|
@@ -5015,9 +5039,9 @@ function gn(t, n, i, a, l, d) {
|
|
|
5015
5039
|
])) : s("", !0)
|
|
5016
5040
|
], 64);
|
|
5017
5041
|
}
|
|
5018
|
-
var
|
|
5042
|
+
var vn = /* @__PURE__ */ Y({
|
|
5019
5043
|
name: "w-menu",
|
|
5020
|
-
mixins: [
|
|
5044
|
+
mixins: [gn],
|
|
5021
5045
|
inheritAttrs: !1,
|
|
5022
5046
|
props: {
|
|
5023
5047
|
modelValue: {},
|
|
@@ -5162,16 +5186,16 @@ var _n = /* @__PURE__ */ Y({
|
|
|
5162
5186
|
this.openTimeout = clearTimeout(this.openTimeout), this.detachableVisible && (this.showOnHover && !e && (await new Promise((e) => setTimeout(e, 10)), this.showOnHover && (this.hoveringMenu || this.hoveringActivator)) || (this.$emit("update:modelValue", this.detachableVisible = !1), this.$emit("input", !1), this.$emit("close"), this.viewportPlacementOverride = null, typeof document < "u" && document.removeEventListener("mousedown", this.onOutsideMousedown), typeof window < "u" && window.removeEventListener("resize", this.onResize)));
|
|
5163
5187
|
}
|
|
5164
5188
|
}
|
|
5165
|
-
}, [["render",
|
|
5189
|
+
}, [["render", _n]]);
|
|
5166
5190
|
//#endregion
|
|
5167
5191
|
//#region src/wave-ui/components/w-notification.vue?vue&type=template&lang.js
|
|
5168
|
-
function
|
|
5169
|
-
let u =
|
|
5192
|
+
function yn(e, t, n, i, a, l) {
|
|
5193
|
+
let u = T("w-alert");
|
|
5170
5194
|
return b(), o(r, {
|
|
5171
5195
|
name: l.transitionName,
|
|
5172
5196
|
appear: ""
|
|
5173
5197
|
}, {
|
|
5174
|
-
default:
|
|
5198
|
+
default: P(() => [a.show ? (b(), c("div", {
|
|
5175
5199
|
key: 0,
|
|
5176
5200
|
class: g(["w-notification", l.classes]),
|
|
5177
5201
|
style: v(l.styles)
|
|
@@ -5181,13 +5205,13 @@ function vn(e, t, n, i, a, l) {
|
|
|
5181
5205
|
e.$emit("update:modelValue", !1), e.$emit("input", !1);
|
|
5182
5206
|
}
|
|
5183
5207
|
}), {
|
|
5184
|
-
default:
|
|
5208
|
+
default: P(() => [w(e.$slots, "default")]),
|
|
5185
5209
|
_: 3
|
|
5186
5210
|
}, 16, ["class"])], 6)) : s("", !0)]),
|
|
5187
5211
|
_: 3
|
|
5188
5212
|
}, 8, ["name"]);
|
|
5189
5213
|
}
|
|
5190
|
-
var
|
|
5214
|
+
var bn = /* @__PURE__ */ Y({
|
|
5191
5215
|
name: "w-notification",
|
|
5192
5216
|
props: {
|
|
5193
5217
|
modelValue: { default: !0 },
|
|
@@ -5317,29 +5341,29 @@ var yn = /* @__PURE__ */ Y({
|
|
|
5317
5341
|
watch: { modelValue(e) {
|
|
5318
5342
|
clearTimeout(this.timeoutId), this.show = e, e && this.timeoutVal && this.countdown();
|
|
5319
5343
|
} }
|
|
5320
|
-
}, [["render",
|
|
5344
|
+
}, [["render", yn]]);
|
|
5321
5345
|
//#endregion
|
|
5322
5346
|
//#region src/wave-ui/components/w-overlay.vue?vue&type=template&lang.js
|
|
5323
|
-
function
|
|
5324
|
-
let u =
|
|
5347
|
+
function xn(e, t, n, i, a, l) {
|
|
5348
|
+
let u = E("focus");
|
|
5325
5349
|
return b(), o(r, {
|
|
5326
5350
|
name: "fade",
|
|
5327
5351
|
appear: "",
|
|
5328
5352
|
onAfterLeave: l.onClose
|
|
5329
5353
|
}, {
|
|
5330
|
-
default:
|
|
5354
|
+
default: P(() => [n.modelValue ? F((b(), c("div", {
|
|
5331
5355
|
key: 0,
|
|
5332
5356
|
class: g(["w-overlay", l.classes]),
|
|
5333
5357
|
ref: "overlay",
|
|
5334
5358
|
style: v(n.modelValue && l.styles || null),
|
|
5335
|
-
onKeydown: t[0] ||=
|
|
5359
|
+
onKeydown: t[0] ||= I(L((...e) => l.onClick && l.onClick(...e), ["stop"]), ["escape"]),
|
|
5336
5360
|
onClick: t[1] ||= (...e) => l.onClick && l.onClick(...e),
|
|
5337
5361
|
tabindex: "0"
|
|
5338
|
-
}, [
|
|
5362
|
+
}, [w(e.$slots, "default")], 38)), [[N, e.showOverlay], [u]]) : s("", !0)]),
|
|
5339
5363
|
_: 3
|
|
5340
5364
|
}, 8, ["onAfterLeave"]);
|
|
5341
5365
|
}
|
|
5342
|
-
var
|
|
5366
|
+
var Sn = /* @__PURE__ */ Y({
|
|
5343
5367
|
name: "w-overlay",
|
|
5344
5368
|
props: {
|
|
5345
5369
|
modelValue: {},
|
|
@@ -5403,22 +5427,22 @@ var xn = /* @__PURE__ */ Y({
|
|
|
5403
5427
|
watch: { modelValue(e) {
|
|
5404
5428
|
e && (this.showOverlay = !0);
|
|
5405
5429
|
} }
|
|
5406
|
-
}, [["render",
|
|
5407
|
-
function
|
|
5408
|
-
return b(), c("div",
|
|
5430
|
+
}, [["render", xn]]), Cn = { class: "w-parallax" };
|
|
5431
|
+
function wn(e, t, n, r, i, a) {
|
|
5432
|
+
return b(), c("div", Cn);
|
|
5409
5433
|
}
|
|
5410
|
-
var
|
|
5434
|
+
var Tn = /* @__PURE__ */ Y({
|
|
5411
5435
|
name: "w-parallax",
|
|
5412
5436
|
props: {},
|
|
5413
5437
|
emits: [],
|
|
5414
5438
|
data: () => ({})
|
|
5415
|
-
}, [["render",
|
|
5439
|
+
}, [["render", wn]]), En = ["viewBox"], Dn = [
|
|
5416
5440
|
"cx",
|
|
5417
5441
|
"cy",
|
|
5418
5442
|
"r",
|
|
5419
5443
|
"stroke-dasharray",
|
|
5420
5444
|
"stroke-width"
|
|
5421
|
-
],
|
|
5445
|
+
], On = [
|
|
5422
5446
|
"cx",
|
|
5423
5447
|
"cy",
|
|
5424
5448
|
"r",
|
|
@@ -5426,7 +5450,7 @@ var wn = /* @__PURE__ */ Y({
|
|
|
5426
5450
|
"stroke-linecap",
|
|
5427
5451
|
"stroke-dasharray"
|
|
5428
5452
|
];
|
|
5429
|
-
function
|
|
5453
|
+
function kn(e, t, n, r, i, a) {
|
|
5430
5454
|
return b(), c("div", {
|
|
5431
5455
|
class: g(["w-progress", a.classes]),
|
|
5432
5456
|
style: v(a.styles)
|
|
@@ -5442,7 +5466,7 @@ function On(e, t, n, r, i, a) {
|
|
|
5442
5466
|
fill: "transparent",
|
|
5443
5467
|
"stroke-dasharray": e.circleCircumference,
|
|
5444
5468
|
"stroke-width": n.stroke
|
|
5445
|
-
}, null, 10,
|
|
5469
|
+
}, null, 10, Dn)) : s("", !0), l("circle", {
|
|
5446
5470
|
class: "w-progress__progress",
|
|
5447
5471
|
cx: a.circleCenter,
|
|
5448
5472
|
cy: a.circleCenter,
|
|
@@ -5452,18 +5476,18 @@ function On(e, t, n, r, i, a) {
|
|
|
5452
5476
|
"stroke-linecap": n.roundCap && "round",
|
|
5453
5477
|
"stroke-dasharray": e.circleCircumference,
|
|
5454
5478
|
style: v(`stroke-dashoffset: ${(1 - a.progressValue / 100) * e.circleCircumference}`)
|
|
5455
|
-
}, null, 12,
|
|
5479
|
+
}, null, 12, On)], 8, En)) : (b(), c("div", {
|
|
5456
5480
|
key: 0,
|
|
5457
5481
|
class: g(["w-progress__progress", { full: a.progressValue === 100 }]),
|
|
5458
5482
|
style: v(`width: ${a.progressValue}%`)
|
|
5459
5483
|
}, null, 6)), n.label || e.$slots.default ? (b(), c("div", {
|
|
5460
5484
|
key: 2,
|
|
5461
5485
|
class: g(["w-progress__label", n.labelColor || !1])
|
|
5462
|
-
}, [
|
|
5486
|
+
}, [w(e.$slots, "default", {}, () => [d(O(Math.round(a.progressValue)) + O(n.circle ? "" : "%"), 1)])], 2)) : s("", !0)], 6);
|
|
5463
5487
|
}
|
|
5464
5488
|
//#endregion
|
|
5465
5489
|
//#region src/wave-ui/components/w-progress.vue
|
|
5466
|
-
var $ = 40,
|
|
5490
|
+
var $ = 40, An = $ / 2, jn = Math.round($ * 3.14 * 100) / 100, Mn = /* @__PURE__ */ Y({
|
|
5467
5491
|
name: "w-progress",
|
|
5468
5492
|
props: {
|
|
5469
5493
|
modelValue: {
|
|
@@ -5506,8 +5530,8 @@ var $ = 40, kn = $ / 2, An = Math.round($ * 3.14 * 100) / 100, jn = /* @__PURE__
|
|
|
5506
5530
|
emits: [],
|
|
5507
5531
|
data: () => ({
|
|
5508
5532
|
circleSize: $,
|
|
5509
|
-
circleRadius:
|
|
5510
|
-
circleCircumference:
|
|
5533
|
+
circleRadius: An,
|
|
5534
|
+
circleCircumference: jn
|
|
5511
5535
|
}),
|
|
5512
5536
|
computed: {
|
|
5513
5537
|
progressValue() {
|
|
@@ -5544,7 +5568,7 @@ var $ = 40, kn = $ / 2, An = Math.round($ * 3.14 * 100) / 100, jn = /* @__PURE__
|
|
|
5544
5568
|
return { [this.circle ? "width" : "height"]: this.forcedSize || null };
|
|
5545
5569
|
}
|
|
5546
5570
|
}
|
|
5547
|
-
}, [["render",
|
|
5571
|
+
}, [["render", kn]]), Nn = [
|
|
5548
5572
|
"id",
|
|
5549
5573
|
"name",
|
|
5550
5574
|
"checked",
|
|
@@ -5552,13 +5576,14 @@ var $ = 40, kn = $ / 2, An = Math.round($ * 3.14 * 100) / 100, jn = /* @__PURE__
|
|
|
5552
5576
|
"required",
|
|
5553
5577
|
"tabindex",
|
|
5554
5578
|
"aria-checked"
|
|
5555
|
-
],
|
|
5556
|
-
function
|
|
5557
|
-
return b(), o(
|
|
5579
|
+
], Pn = ["for"], Fn = ["for", "innerHTML"], In = ["for"], Ln = ["for", "innerHTML"];
|
|
5580
|
+
function Rn(t, n, r, i, a, u) {
|
|
5581
|
+
return b(), o(D(t.formRegister && !u.wRadios ? "w-form-element" : "div"), h({ ref: "formEl" }, t.formRegister && {
|
|
5558
5582
|
validators: t.validators,
|
|
5559
5583
|
inputValue: t.inputValue,
|
|
5560
5584
|
disabled: t.isDisabled,
|
|
5561
|
-
readonly: t.isReadonly
|
|
5585
|
+
readonly: t.isReadonly,
|
|
5586
|
+
noBlurValidation: t.noBlurValidation
|
|
5562
5587
|
}, {
|
|
5563
5588
|
valid: t.valid,
|
|
5564
5589
|
"onUpdate:valid": n[3] ||= (e) => t.valid = e,
|
|
@@ -5567,10 +5592,10 @@ function Ln(t, n, r, i, a, u) {
|
|
|
5567
5592
|
},
|
|
5568
5593
|
class: u.classes
|
|
5569
5594
|
}), {
|
|
5570
|
-
default:
|
|
5595
|
+
default: P(() => [
|
|
5571
5596
|
l("input", {
|
|
5572
5597
|
ref: "input",
|
|
5573
|
-
id:
|
|
5598
|
+
id: t.inputId,
|
|
5574
5599
|
type: "radio",
|
|
5575
5600
|
name: t.inputName,
|
|
5576
5601
|
checked: t.inputValue || null,
|
|
@@ -5581,17 +5606,17 @@ function Ln(t, n, r, i, a, u) {
|
|
|
5581
5606
|
onChange: n[1] ||= (e) => u.onInput(e),
|
|
5582
5607
|
"aria-checked": t.inputValue || "false",
|
|
5583
5608
|
role: "radio"
|
|
5584
|
-
}, null, 40,
|
|
5609
|
+
}, null, 40, Nn),
|
|
5585
5610
|
u.hasLabel && r.labelOnLeft ? (b(), c(e, { key: 0 }, [t.$slots.default ? (b(), c("label", {
|
|
5586
5611
|
key: 0,
|
|
5587
5612
|
class: g(["w-radio__label w-form-el-shakable pr2", t.labelClasses]),
|
|
5588
|
-
for:
|
|
5589
|
-
}, [
|
|
5613
|
+
for: t.inputId
|
|
5614
|
+
}, [w(t.$slots, "default", {}, () => [d(O(r.label), 1)])], 10, Pn)) : r.label ? (b(), c("label", {
|
|
5590
5615
|
key: 1,
|
|
5591
5616
|
class: g(["w-radio__label w-form-el-shakable pr2", t.labelClasses]),
|
|
5592
|
-
for:
|
|
5617
|
+
for: t.inputId,
|
|
5593
5618
|
innerHTML: r.label
|
|
5594
|
-
}, null, 10,
|
|
5619
|
+
}, null, 10, Fn)) : s("", !0)], 64)) : s("", !0),
|
|
5595
5620
|
l("div", {
|
|
5596
5621
|
class: g(["w-radio__input", this.color]),
|
|
5597
5622
|
onClick: n[2] ||= (e) => {
|
|
@@ -5601,18 +5626,18 @@ function Ln(t, n, r, i, a, u) {
|
|
|
5601
5626
|
u.hasLabel && !r.labelOnLeft ? (b(), c(e, { key: 1 }, [t.$slots.default ? (b(), c("label", {
|
|
5602
5627
|
key: 0,
|
|
5603
5628
|
class: g(["w-radio__label w-form-el-shakable pl2", t.labelClasses]),
|
|
5604
|
-
for:
|
|
5605
|
-
}, [
|
|
5629
|
+
for: t.inputId
|
|
5630
|
+
}, [w(t.$slots, "default", {}, () => [d(O(r.label), 1)])], 10, In)) : r.label ? (b(), c("label", {
|
|
5606
5631
|
key: 1,
|
|
5607
5632
|
class: g(["w-radio__label w-form-el-shakable pl2", t.labelClasses]),
|
|
5608
|
-
for:
|
|
5633
|
+
for: t.inputId,
|
|
5609
5634
|
innerHTML: r.label
|
|
5610
|
-
}, null, 10,
|
|
5635
|
+
}, null, 10, Ln)) : s("", !0)], 64)) : s("", !0)
|
|
5611
5636
|
]),
|
|
5612
5637
|
_: 3
|
|
5613
5638
|
}, 16, ["valid", "class"]);
|
|
5614
5639
|
}
|
|
5615
|
-
var
|
|
5640
|
+
var zn = /* @__PURE__ */ Y({
|
|
5616
5641
|
name: "w-radio",
|
|
5617
5642
|
mixins: [Q],
|
|
5618
5643
|
inject: { wRadios: { default: null } },
|
|
@@ -5680,13 +5705,14 @@ var Rn = /* @__PURE__ */ Y({
|
|
|
5680
5705
|
watch: { modelValue() {
|
|
5681
5706
|
this.toggleFromOutside();
|
|
5682
5707
|
} }
|
|
5683
|
-
}, [["render",
|
|
5684
|
-
function
|
|
5685
|
-
let u =
|
|
5686
|
-
return b(), o(
|
|
5708
|
+
}, [["render", Rn]]), Bn = ["innerHTML"];
|
|
5709
|
+
function Vn(t, n, r, i, a, l) {
|
|
5710
|
+
let u = T("w-radio");
|
|
5711
|
+
return b(), o(D(t.formRegister ? "w-form-element" : "div"), h({ ref: "formEl" }, t.formRegister && {
|
|
5687
5712
|
validators: t.validators,
|
|
5688
5713
|
inputValue: t.inputValue,
|
|
5689
|
-
disabled: t.isDisabled
|
|
5714
|
+
disabled: t.isDisabled,
|
|
5715
|
+
noBlurValidation: t.noBlurValidation
|
|
5690
5716
|
}, {
|
|
5691
5717
|
valid: t.valid,
|
|
5692
5718
|
"onUpdate:valid": n[1] ||= (e) => t.valid = e,
|
|
@@ -5697,7 +5723,7 @@ function Bn(t, n, r, i, a, l) {
|
|
|
5697
5723
|
wrap: r.inline,
|
|
5698
5724
|
class: l.classes
|
|
5699
5725
|
}), {
|
|
5700
|
-
default:
|
|
5726
|
+
default: P(() => [(b(!0), c(e, null, C(l.radioItems, (e, i) => (b(), o(u, h({
|
|
5701
5727
|
key: i,
|
|
5702
5728
|
"model-value": e.value === r.modelValue,
|
|
5703
5729
|
"onUpdate:modelValue": (t) => l.onInput(e),
|
|
@@ -5713,7 +5739,7 @@ function Bn(t, n, r, i, a, l) {
|
|
|
5713
5739
|
readonly: t.isReadonly || null,
|
|
5714
5740
|
class: { mt1: !r.inline && i }
|
|
5715
5741
|
}), {
|
|
5716
|
-
default:
|
|
5742
|
+
default: P(() => [t.$slots[`item.${i + 1}`] || t.$slots.item ? w(t.$slots, t.$slots[`item.${i + 1}`] ? `item.${i + 1}` : "item", {
|
|
5717
5743
|
key: 0,
|
|
5718
5744
|
item: l.getOriginalItem(e),
|
|
5719
5745
|
index: i + 1,
|
|
@@ -5722,7 +5748,7 @@ function Bn(t, n, r, i, a, l) {
|
|
|
5722
5748
|
}) : e.label ? (b(), c("div", {
|
|
5723
5749
|
key: 1,
|
|
5724
5750
|
innerHTML: e.label
|
|
5725
|
-
}, null, 8,
|
|
5751
|
+
}, null, 8, Bn)) : s("", !0)]),
|
|
5726
5752
|
_: 2
|
|
5727
5753
|
}, 1040, [
|
|
5728
5754
|
"model-value",
|
|
@@ -5740,7 +5766,7 @@ function Bn(t, n, r, i, a, l) {
|
|
|
5740
5766
|
"class"
|
|
5741
5767
|
]);
|
|
5742
5768
|
}
|
|
5743
|
-
var
|
|
5769
|
+
var Hn = /* @__PURE__ */ Y({
|
|
5744
5770
|
name: "w-radios",
|
|
5745
5771
|
mixins: [Q],
|
|
5746
5772
|
props: {
|
|
@@ -5807,22 +5833,23 @@ var Vn = /* @__PURE__ */ Y({
|
|
|
5807
5833
|
return this.items[e._index];
|
|
5808
5834
|
}
|
|
5809
5835
|
}
|
|
5810
|
-
}, [["render",
|
|
5836
|
+
}, [["render", Vn]]), Un = [
|
|
5811
5837
|
"id",
|
|
5812
5838
|
"name",
|
|
5813
5839
|
"value"
|
|
5814
|
-
],
|
|
5840
|
+
], Wn = [
|
|
5815
5841
|
"disabled",
|
|
5816
5842
|
"onMouseenter",
|
|
5817
5843
|
"onClick",
|
|
5818
5844
|
"tabindex"
|
|
5819
5845
|
];
|
|
5820
|
-
function
|
|
5821
|
-
return b(), o(
|
|
5846
|
+
function Gn(t, n, r, i, a, u) {
|
|
5847
|
+
return b(), o(D(t.formRegister ? "w-form-element" : "div"), h({ ref: "formEl" }, t.formRegister && {
|
|
5822
5848
|
validators: t.validators,
|
|
5823
5849
|
inputValue: a.rating,
|
|
5824
5850
|
disabled: t.isDisabled,
|
|
5825
|
-
readonly: t.isReadonly
|
|
5851
|
+
readonly: t.isReadonly,
|
|
5852
|
+
noBlurValidation: t.noBlurValidation
|
|
5826
5853
|
}, {
|
|
5827
5854
|
valid: t.valid,
|
|
5828
5855
|
"onUpdate:valid": n[4] ||= (e) => t.valid = e,
|
|
@@ -5831,12 +5858,12 @@ function Wn(t, n, r, i, a, u) {
|
|
|
5831
5858
|
},
|
|
5832
5859
|
class: u.classes
|
|
5833
5860
|
}), {
|
|
5834
|
-
default:
|
|
5835
|
-
id: t.
|
|
5861
|
+
default: P(() => [l("input", {
|
|
5862
|
+
id: t.inputId,
|
|
5836
5863
|
name: t.inputName,
|
|
5837
5864
|
type: "hidden",
|
|
5838
5865
|
value: a.rating
|
|
5839
|
-
}, null, 8,
|
|
5866
|
+
}, null, 8, Un), (b(!0), c(e, null, C(r.max, (i) => (b(), c(e, { key: i }, [t.$slots.item ? w(t.$slots, "item", {
|
|
5840
5867
|
key: 0,
|
|
5841
5868
|
index: i + 1
|
|
5842
5869
|
}) : s("", !0), l("button", {
|
|
@@ -5856,11 +5883,11 @@ function Wn(t, n, r, i, a, u) {
|
|
|
5856
5883
|
role: "icon",
|
|
5857
5884
|
"aria-hidden": "true",
|
|
5858
5885
|
style: v(u.halfStarStyle)
|
|
5859
|
-
}, null, 6)) : s("", !0)], 42,
|
|
5886
|
+
}, null, 6)) : s("", !0)], 42, Wn)], 64))), 128))]),
|
|
5860
5887
|
_: 3
|
|
5861
5888
|
}, 16, ["valid", "class"]);
|
|
5862
5889
|
}
|
|
5863
|
-
var
|
|
5890
|
+
var Kn = /* @__PURE__ */ Y({
|
|
5864
5891
|
name: "w-rating",
|
|
5865
5892
|
mixins: [Q],
|
|
5866
5893
|
props: {
|
|
@@ -5965,7 +5992,7 @@ var Gn = /* @__PURE__ */ Y({
|
|
|
5965
5992
|
watch: { value(e) {
|
|
5966
5993
|
this.rating = parseFloat(e);
|
|
5967
5994
|
} }
|
|
5968
|
-
}, [["render",
|
|
5995
|
+
}, [["render", Gn]]), qn = /* @__PURE__ */ Object.assign({ name: "WScrollable" }, {
|
|
5969
5996
|
__name: "w-scrollable",
|
|
5970
5997
|
props: {
|
|
5971
5998
|
color: {
|
|
@@ -6005,18 +6032,18 @@ var Gn = /* @__PURE__ */ Y({
|
|
|
6005
6032
|
top: null,
|
|
6006
6033
|
left: null,
|
|
6007
6034
|
hovered: !1
|
|
6008
|
-
}), p = S(0), m = S(!1), _ = a(() => o.value ? (console.log("💂♂️", s.value?.scrollWidth, s.value?.offsetWidth), r.width && !r.height || s.value?.scrollWidth > s.value?.offsetWidth) : !1), x = a(() => i[_.value ? "h" : "v"]),
|
|
6009
|
-
function
|
|
6010
|
-
|
|
6035
|
+
}), p = S(0), m = S(!1), _ = a(() => o.value ? (console.log("💂♂️", s.value?.scrollWidth, s.value?.offsetWidth), r.width && !r.height || s.value?.scrollWidth > s.value?.offsetWidth) : !1), x = a(() => i[_.value ? "h" : "v"]), te = a(() => ({ [`w-scrollable--${x.value.direction}`]: !0 })), C = a(() => ({ [`w-scrollable__scrollbar--${x.value.direction}`]: !0 })), T = S(0), E = a(() => (T.value, o.value && (r[x.value.size] ?? s.value?.[x.value.offsetSize]) * 100 / s.value?.[x.value.scrollSize] || 0));
|
|
6036
|
+
function D() {
|
|
6037
|
+
T.value++;
|
|
6011
6038
|
}
|
|
6012
|
-
let
|
|
6039
|
+
let O = a(() => ({ [x.value.maxSize]: r[x.value.size] ? `${r[x.value.size]}px` : void 0 })), k = a(() => {
|
|
6013
6040
|
let e = p.value;
|
|
6014
|
-
return e = Math.max(0, Math.min(e, 100 -
|
|
6015
|
-
[x.value.size]: `${
|
|
6041
|
+
return e = Math.max(0, Math.min(e, 100 - E.value)), {
|
|
6042
|
+
[x.value.size]: `${E.value}%`,
|
|
6016
6043
|
[x.value.topOrLeft]: `${e}%`
|
|
6017
6044
|
};
|
|
6018
6045
|
});
|
|
6019
|
-
function
|
|
6046
|
+
function A(e) {
|
|
6020
6047
|
if (r.isDisabled || r.isReadonly || "ontouchstart" in window && e.type === "mousedown") return;
|
|
6021
6048
|
let { top: t, left: n, width: i, height: a } = u.value.getBoundingClientRect();
|
|
6022
6049
|
_.value ? (u.value.width = i, u.value.left = n) : (u.value.height = a, u.value.top = t), m.value = !0, I(e.type === "touchstart" ? e.touches[0][x.value.clientXorY] : e[x.value.clientXorY]), L(), document.addEventListener(e.type === "touchstart" ? "touchmove" : "mousemove", j), document.addEventListener(e.type === "touchstart" ? "touchend" : "mouseup", M, { once: !0 });
|
|
@@ -6034,61 +6061,62 @@ var Gn = /* @__PURE__ */ Y({
|
|
|
6034
6061
|
f.value.hovered = !1;
|
|
6035
6062
|
}
|
|
6036
6063
|
function F(e) {
|
|
6037
|
-
f.value.hovered && (p.value <= 0 && e[x.value.deltaXorY] < 0 || p.value >= 100 -
|
|
6064
|
+
f.value.hovered && (p.value <= 0 && e[x.value.deltaXorY] < 0 || p.value >= 100 - E.value && e[x.value.deltaXorY] > 0 || (e.preventDefault(), p.value += e[x.value.deltaXorY] * .05, p.value = Math.max(0, Math.min(p.value, 100)), L()));
|
|
6038
6065
|
}
|
|
6039
6066
|
function I(e) {
|
|
6040
6067
|
let { top: t, left: n, width: r, height: i } = s.value.getBoundingClientRect(), a = _.value ? n : t, o = _.value ? r : i;
|
|
6041
6068
|
p.value = Math.max(0, Math.min((e - a) / o * 100, 100));
|
|
6042
6069
|
}
|
|
6043
6070
|
function L() {
|
|
6044
|
-
s.value[x.value.scrollTopOrLeft] = p.value * s.value?.[x.value.scrollSize] / 100,
|
|
6071
|
+
s.value[x.value.scrollTopOrLeft] = p.value * s.value?.[x.value.scrollSize] / 100, R();
|
|
6045
6072
|
}
|
|
6046
|
-
function
|
|
6073
|
+
function R() {
|
|
6047
6074
|
d.value.style[x.value.topOrLeft] = p.value;
|
|
6048
6075
|
}
|
|
6049
6076
|
return ee(() => {
|
|
6050
6077
|
o.value = !0;
|
|
6051
6078
|
let { top: e, left: t } = s.value.getBoundingClientRect();
|
|
6052
|
-
f.value.top = e, f.value.left = t, window.addEventListener("resize",
|
|
6079
|
+
f.value.top = e, f.value.left = t, window.addEventListener("resize", D);
|
|
6053
6080
|
}), y(() => {
|
|
6054
|
-
window.removeEventListener("resize",
|
|
6081
|
+
window.removeEventListener("resize", D);
|
|
6055
6082
|
}), t({ scroll: L }), (e, t) => (b(), c("div", h({
|
|
6056
|
-
class: ["w-scrollable",
|
|
6083
|
+
class: ["w-scrollable", te.value],
|
|
6057
6084
|
onMouseenter: N,
|
|
6058
6085
|
onMouseleave: P,
|
|
6059
6086
|
onMousewheel: F
|
|
6060
|
-
}, e.$attrs, { style:
|
|
6087
|
+
}, e.$attrs, { style: O.value }), [l("div", {
|
|
6061
6088
|
class: "w-scrollable__content",
|
|
6062
6089
|
ref_key: "scrollableEl",
|
|
6063
6090
|
ref: s
|
|
6064
|
-
}, [
|
|
6065
|
-
class: g(["w-scrollable__scrollbar",
|
|
6091
|
+
}, [w(e.$slots, "default")], 512), l("div", {
|
|
6092
|
+
class: g(["w-scrollable__scrollbar", C.value]),
|
|
6066
6093
|
ref_key: "trackEl",
|
|
6067
6094
|
ref: u,
|
|
6068
|
-
onMousedown:
|
|
6095
|
+
onMousedown: A
|
|
6069
6096
|
}, [l("div", {
|
|
6070
6097
|
class: "w-scrollable__scrollbar-thumb",
|
|
6071
6098
|
ref_key: "thumbEl",
|
|
6072
6099
|
ref: d,
|
|
6073
|
-
style: v(
|
|
6100
|
+
style: v(k.value)
|
|
6074
6101
|
}, null, 4)], 34)], 16));
|
|
6075
6102
|
}
|
|
6076
|
-
}),
|
|
6103
|
+
}), Jn = [
|
|
6077
6104
|
"aria-expanded",
|
|
6078
6105
|
"aria-owns",
|
|
6079
6106
|
"aria-activedescendant"
|
|
6080
|
-
],
|
|
6107
|
+
], Yn = {
|
|
6081
6108
|
key: 0,
|
|
6082
6109
|
class: "w-select__selection-slot"
|
|
6083
|
-
},
|
|
6084
|
-
function
|
|
6085
|
-
let m =
|
|
6086
|
-
return b(), o(
|
|
6110
|
+
}, Xn = ["innerHTML"], Zn = ["value", "name"];
|
|
6111
|
+
function Qn(t, n, r, i, a, p) {
|
|
6112
|
+
let m = T("w-icon"), _ = T("w-list"), v = T("w-menu");
|
|
6113
|
+
return b(), o(D(t.formRegister ? "w-form-element" : "div"), h({ ref: "formEl" }, t.formRegister && {
|
|
6087
6114
|
validators: t.validators,
|
|
6088
6115
|
inputValue: p.selectionString,
|
|
6089
6116
|
disabled: t.isDisabled,
|
|
6090
6117
|
readonly: t.isReadonly,
|
|
6091
|
-
isFocused: t.isFocused
|
|
6118
|
+
isFocused: t.isFocused,
|
|
6119
|
+
noBlurValidation: t.noBlurValidation
|
|
6092
6120
|
}, {
|
|
6093
6121
|
valid: t.valid,
|
|
6094
6122
|
"onUpdate:valid": n[12] ||= (e) => t.valid = e,
|
|
@@ -6096,12 +6124,12 @@ function Zn(t, n, r, i, a, p) {
|
|
|
6096
6124
|
wrap: p.hasLabel && r.labelPosition !== "inside",
|
|
6097
6125
|
class: p.classes
|
|
6098
6126
|
}), {
|
|
6099
|
-
default:
|
|
6127
|
+
default: P(() => [
|
|
6100
6128
|
r.labelPosition === "left" ? (b(), c(e, { key: 0 }, [t.$slots.default || r.label ? (b(), c("label", {
|
|
6101
6129
|
key: 0,
|
|
6102
6130
|
class: g(["w-select__label w-select__label--left w-form-el-shakable", t.labelClasses]),
|
|
6103
6131
|
onClick: n[0] ||= (e) => t.$refs["selection-input"].click()
|
|
6104
|
-
}, [
|
|
6132
|
+
}, [w(t.$slots, "default", {}, () => [d(O(r.label), 1)])], 2)) : s("", !0)], 64)) : s("", !0),
|
|
6105
6133
|
f(v, h({
|
|
6106
6134
|
modelValue: t.showMenu,
|
|
6107
6135
|
"onUpdate:modelValue": n[10] ||= (e) => t.showMenu = e,
|
|
@@ -6113,53 +6141,53 @@ function Zn(t, n, r, i, a, p) {
|
|
|
6113
6141
|
custom: "",
|
|
6114
6142
|
"min-width": "activator"
|
|
6115
6143
|
}, r.menuProps || {}), {
|
|
6116
|
-
activator:
|
|
6144
|
+
activator: P(() => [l("div", {
|
|
6117
6145
|
class: g(["w-select__selection-wrap", p.inputWrapClasses]),
|
|
6118
6146
|
onClick: n[6] ||= (e) => !t.isDisabled && !t.isReadonly && p.onInputFieldClick(),
|
|
6119
6147
|
role: "button",
|
|
6120
6148
|
"aria-haspopup": "listbox",
|
|
6121
6149
|
"aria-expanded": t.showMenu ? "true" : "false",
|
|
6122
|
-
"aria-owns":
|
|
6123
|
-
"aria-activedescendant":
|
|
6150
|
+
"aria-owns": p.selectListId,
|
|
6151
|
+
"aria-activedescendant": `${p.selectListId}_item-1`
|
|
6124
6152
|
}, [
|
|
6125
|
-
|
|
6153
|
+
w(t.$slots, "icon-left", {}, () => [r.innerIconLeft ? (b(), o(m, {
|
|
6126
6154
|
key: 0,
|
|
6127
6155
|
class: "w-select__icon w-select__icon--inner-left",
|
|
6128
6156
|
tag: "label",
|
|
6129
6157
|
onClick: n[1] ||= (e) => t.$emit("click:inner-icon-left", e)
|
|
6130
6158
|
}, {
|
|
6131
|
-
default:
|
|
6159
|
+
default: P(() => [d(O(r.innerIconLeft), 1)]),
|
|
6132
6160
|
_: 1
|
|
6133
6161
|
})) : s("", !0)]),
|
|
6134
|
-
t.$slots.selection ? (b(), c("div",
|
|
6162
|
+
t.$slots.selection ? (b(), c("div", Yn, [w(t.$slots, "selection", { item: r.multiple ? t.inputValue : t.inputValue[0] })])) : s("", !0),
|
|
6135
6163
|
l("div", h({
|
|
6136
6164
|
class: "w-select__selection",
|
|
6137
6165
|
ref: "selection-input",
|
|
6138
6166
|
onFocus: n[2] ||= (e) => !t.isDisabled && !t.isReadonly && p.onFocus(e),
|
|
6139
6167
|
onBlur: n[3] ||= (...e) => p.onBlur && p.onBlur(...e),
|
|
6140
6168
|
onKeydown: n[4] ||= (e) => !t.isDisabled && !t.isReadonly && p.onKeydown(e)
|
|
6141
|
-
}, p.selectionAttributes, { innerHTML: p.selectionHtml }), null, 16,
|
|
6142
|
-
(b(!0), c(e, null,
|
|
6169
|
+
}, p.selectionAttributes, { innerHTML: p.selectionHtml }), null, 16, Xn),
|
|
6170
|
+
(b(!0), c(e, null, C(t.inputValue.length ? t.inputValue : [{}], (e, n) => (b(), c("input", {
|
|
6143
6171
|
key: n,
|
|
6144
6172
|
type: "hidden",
|
|
6145
6173
|
value: e.value === void 0 ? "" : e.value.toString(),
|
|
6146
6174
|
name: t.inputName + (r.multiple ? "[]" : "")
|
|
6147
|
-
}, null, 8,
|
|
6175
|
+
}, null, 8, Zn))), 128)),
|
|
6148
6176
|
r.labelPosition === "inside" && p.showLabelInside ? (b(), c(e, { key: 1 }, [t.$slots.default || r.label ? (b(), c("label", {
|
|
6149
6177
|
key: 0,
|
|
6150
6178
|
class: g(["w-select__label w-select__label--inside w-form-el-shakable", t.labelClasses])
|
|
6151
|
-
}, [
|
|
6152
|
-
|
|
6179
|
+
}, [w(t.$slots, "default", {}, () => [d(O(r.label), 1)])], 2)) : s("", !0)], 64)) : s("", !0),
|
|
6180
|
+
w(t.$slots, "icon-right", {}, () => [r.innerIconRight ? (b(), o(m, {
|
|
6153
6181
|
key: 0,
|
|
6154
6182
|
class: "w-select__icon w-select__icon--inner-right",
|
|
6155
6183
|
tag: "label",
|
|
6156
6184
|
onClick: n[5] ||= (e) => t.$emit("click:inner-icon-right", e)
|
|
6157
6185
|
}, {
|
|
6158
|
-
default:
|
|
6186
|
+
default: P(() => [d(O(r.innerIconRight), 1)]),
|
|
6159
6187
|
_: 1
|
|
6160
6188
|
})) : s("", !0)])
|
|
6161
|
-
], 10,
|
|
6162
|
-
default:
|
|
6189
|
+
], 10, Jn)]),
|
|
6190
|
+
default: P(() => [f(_, {
|
|
6163
6191
|
ref: "w-list",
|
|
6164
6192
|
"model-value": t.inputValue,
|
|
6165
6193
|
"onUpdate:modelValue": p.onInput,
|
|
@@ -6172,25 +6200,25 @@ function Zn(t, n, r, i, a, p) {
|
|
|
6172
6200
|
multiple: r.multiple,
|
|
6173
6201
|
"arrows-navigation": "",
|
|
6174
6202
|
"return-object": "",
|
|
6175
|
-
"add-ids":
|
|
6203
|
+
"add-ids": p.selectListId,
|
|
6176
6204
|
"no-unselect": r.noUnselect,
|
|
6177
6205
|
"selection-color": r.selectionColor,
|
|
6178
6206
|
"item-color-key": r.itemColorKey,
|
|
6179
6207
|
role: "listbox",
|
|
6180
6208
|
tabindex: "-1"
|
|
6181
|
-
}, u({ _: 2 }, [
|
|
6209
|
+
}, u({ _: 2 }, [C(r.items.length, (e) => ({
|
|
6182
6210
|
name: `item.${e}`,
|
|
6183
|
-
fn:
|
|
6211
|
+
fn: P(({ item: n, selected: i, index: a }) => [t.$slots[`item.${e}`] && t.$slots[`item.${e}`](n, i, a) ? w(t.$slots, `item.${e}`, {
|
|
6184
6212
|
key: 0,
|
|
6185
6213
|
item: n,
|
|
6186
6214
|
selected: i,
|
|
6187
6215
|
index: a
|
|
6188
|
-
}, () => [d(
|
|
6216
|
+
}, () => [d(O(n[r.itemLabelKey]), 1)]) : w(t.$slots, "item", {
|
|
6189
6217
|
key: 1,
|
|
6190
6218
|
item: n,
|
|
6191
6219
|
selected: i,
|
|
6192
6220
|
index: a
|
|
6193
|
-
}, () => [d(
|
|
6221
|
+
}, () => [d(O(n[r.itemLabelKey]), 1)])])
|
|
6194
6222
|
}))]), 1032, [
|
|
6195
6223
|
"model-value",
|
|
6196
6224
|
"onUpdate:modelValue",
|
|
@@ -6214,7 +6242,7 @@ function Zn(t, n, r, i, a, p) {
|
|
|
6214
6242
|
key: 0,
|
|
6215
6243
|
class: g(["w-select__label w-select__label--right w-form-el-shakable", t.labelClasses]),
|
|
6216
6244
|
onClick: n[11] ||= (e) => t.$refs["selection-input"].click()
|
|
6217
|
-
}, [
|
|
6245
|
+
}, [w(t.$slots, "default", {}, () => [d(O(r.label), 1)])], 2)) : s("", !0)], 64)) : s("", !0)
|
|
6218
6246
|
]),
|
|
6219
6247
|
_: 3
|
|
6220
6248
|
}, 16, [
|
|
@@ -6224,7 +6252,7 @@ function Zn(t, n, r, i, a, p) {
|
|
|
6224
6252
|
"class"
|
|
6225
6253
|
]);
|
|
6226
6254
|
}
|
|
6227
|
-
var
|
|
6255
|
+
var $n = /* @__PURE__ */ Y({
|
|
6228
6256
|
name: "w-select",
|
|
6229
6257
|
mixins: [Q],
|
|
6230
6258
|
props: {
|
|
@@ -6306,6 +6334,9 @@ var Qn = /* @__PURE__ */ Y({
|
|
|
6306
6334
|
}
|
|
6307
6335
|
}),
|
|
6308
6336
|
computed: {
|
|
6337
|
+
selectListId() {
|
|
6338
|
+
return this.id ? `${this.id}__listbox` : `w-select-menu--${this._waveUiUseId}`;
|
|
6339
|
+
},
|
|
6309
6340
|
selectItems() {
|
|
6310
6341
|
return this.items.map((e, t) => {
|
|
6311
6342
|
let n = { ...e };
|
|
@@ -6431,7 +6462,7 @@ var Qn = /* @__PURE__ */ Y({
|
|
|
6431
6462
|
openMenu() {
|
|
6432
6463
|
this.showMenu = !0, setTimeout(() => {
|
|
6433
6464
|
let e = this.inputValue.length ? this.inputValue[0].index : 0;
|
|
6434
|
-
|
|
6465
|
+
document.getElementById(`${this.selectListId}_item-${e + 1}`)?.focus();
|
|
6435
6466
|
}, 100);
|
|
6436
6467
|
},
|
|
6437
6468
|
closeMenu() {
|
|
@@ -6449,12 +6480,12 @@ var Qn = /* @__PURE__ */ Y({
|
|
|
6449
6480
|
this.inputValue = this.checkSelection(this.modelValue);
|
|
6450
6481
|
}
|
|
6451
6482
|
}
|
|
6452
|
-
}, [["render",
|
|
6483
|
+
}, [["render", Qn]]), er = ["for"], tr = ["for", "innerHTML"], nr = { class: "w-slider__track-wrap" }, rr = [
|
|
6453
6484
|
"aria-valuemin",
|
|
6454
6485
|
"aria-valuemax",
|
|
6455
6486
|
"aria-valuenow",
|
|
6456
6487
|
"aria-readonly"
|
|
6457
|
-
],
|
|
6488
|
+
], ir = [
|
|
6458
6489
|
"id",
|
|
6459
6490
|
"name",
|
|
6460
6491
|
"model-value",
|
|
@@ -6462,16 +6493,17 @@ var Qn = /* @__PURE__ */ Y({
|
|
|
6462
6493
|
"readonly",
|
|
6463
6494
|
"aria-readonly",
|
|
6464
6495
|
"tabindex"
|
|
6465
|
-
],
|
|
6496
|
+
], ar = ["for"], or = { key: 0 }, sr = {
|
|
6466
6497
|
key: 0,
|
|
6467
6498
|
class: "w-slider__step-labels"
|
|
6468
|
-
},
|
|
6469
|
-
function
|
|
6470
|
-
return b(), o(
|
|
6499
|
+
}, cr = ["onClick"], lr = ["for"], ur = ["for", "innerHTML"];
|
|
6500
|
+
function dr(t, n, r, i, a, u) {
|
|
6501
|
+
return b(), o(D(t.formRegister ? "w-form-element" : "div"), h({ ref: "formEl" }, t.formRegister && {
|
|
6471
6502
|
validators: t.validators,
|
|
6472
6503
|
inputValue: t.rangeValueScaled,
|
|
6473
6504
|
disabled: t.isDisabled,
|
|
6474
|
-
readonly: t.isReadonly
|
|
6505
|
+
readonly: t.isReadonly,
|
|
6506
|
+
noBlurValidation: t.noBlurValidation
|
|
6475
6507
|
}, {
|
|
6476
6508
|
valid: t.valid,
|
|
6477
6509
|
"onUpdate:valid": n[8] ||= (e) => t.valid = e,
|
|
@@ -6481,18 +6513,18 @@ function ur(t, n, r, i, a, u) {
|
|
|
6481
6513
|
wrap: t.formRegister || null,
|
|
6482
6514
|
class: u.wrapperClasses
|
|
6483
6515
|
}), {
|
|
6484
|
-
default:
|
|
6516
|
+
default: P(() => [
|
|
6485
6517
|
t.$slots["label-left"] ? (b(), c("label", {
|
|
6486
6518
|
key: 0,
|
|
6487
6519
|
class: g(["w-slider__label w-slider__label--left w-form-el-shakable", t.labelClasses]),
|
|
6488
|
-
for:
|
|
6489
|
-
}, [
|
|
6520
|
+
for: u.thumbId
|
|
6521
|
+
}, [w(t.$slots, "label-left")], 10, er)) : r.labelLeft ? (b(), c("label", {
|
|
6490
6522
|
key: 1,
|
|
6491
6523
|
class: g(["w-slider__label w-slider__label--left w-form-el-shakable", t.labelClasses]),
|
|
6492
|
-
for:
|
|
6524
|
+
for: u.thumbId,
|
|
6493
6525
|
innerHTML: r.labelLeft
|
|
6494
|
-
}, null, 10,
|
|
6495
|
-
l("div",
|
|
6526
|
+
}, null, 10, tr)) : s("", !0),
|
|
6527
|
+
l("div", nr, [l("div", {
|
|
6496
6528
|
class: g(["w-slider__track", u.trackClasses]),
|
|
6497
6529
|
ref: "track",
|
|
6498
6530
|
onMousedown: n[4] ||= (...e) => u.onTrackMouseDown && u.onTrackMouseDown(...e),
|
|
@@ -6513,51 +6545,51 @@ function ur(t, n, r, i, a, u) {
|
|
|
6513
6545
|
}, [l("button", {
|
|
6514
6546
|
class: g(["w-slider__thumb-button", [r.color]]),
|
|
6515
6547
|
ref: "thumb",
|
|
6516
|
-
id:
|
|
6548
|
+
id: u.thumbId,
|
|
6517
6549
|
name: t.inputName,
|
|
6518
6550
|
"model-value": t.rangeValueScaled,
|
|
6519
6551
|
disabled: t.isDisabled || null,
|
|
6520
6552
|
readonly: t.isReadonly || null,
|
|
6521
6553
|
"aria-readonly": t.isReadonly ? "true" : "false",
|
|
6522
6554
|
tabindex: t.isDisabled || t.isReadonly ? -1 : null,
|
|
6523
|
-
onKeydown: [n[0] ||=
|
|
6555
|
+
onKeydown: [n[0] ||= I((e) => u.onKeyDown(e, -1), ["left"]), n[1] ||= I((e) => u.onKeyDown(e, 1), ["right"])],
|
|
6524
6556
|
onFocus: n[2] ||= (e) => t.$emit("focus", e),
|
|
6525
|
-
onClick: n[3] ||=
|
|
6526
|
-
}, null, 42,
|
|
6557
|
+
onClick: n[3] ||= L(() => {}, ["prevent"])
|
|
6558
|
+
}, null, 42, ir), r.thumbLabel ? (b(), c("label", {
|
|
6527
6559
|
key: 0,
|
|
6528
6560
|
class: g(["w-slider__thumb-label", u.thumbClasses]),
|
|
6529
|
-
for:
|
|
6530
|
-
}, [r.thumbLabel === "droplet" ? (b(), c("div",
|
|
6561
|
+
for: u.thumbId
|
|
6562
|
+
}, [r.thumbLabel === "droplet" ? (b(), c("div", or, [w(t.$slots, "label", { value: t.rangeValueScaled }, () => [d(O(~~t.rangeValueScaled), 1)])])) : w(t.$slots, "label", {
|
|
6531
6563
|
key: 1,
|
|
6532
6564
|
value: t.rangeValueScaled
|
|
6533
|
-
}, () => [d(
|
|
6565
|
+
}, () => [d(O(~~t.rangeValueScaled), 1)])], 10, ar)) : s("", !0)], 4)], 42, rr), r.stepLabels && r.step ? (b(), c("div", sr, [
|
|
6534
6566
|
l("div", {
|
|
6535
6567
|
class: "w-slider__step-label",
|
|
6536
6568
|
onClick: n[6] ||= (e) => u.onStepLabelClick(0)
|
|
6537
|
-
},
|
|
6538
|
-
(b(!0), c(e, null,
|
|
6569
|
+
}, O(this.minVal), 1),
|
|
6570
|
+
(b(!0), c(e, null, C(~~u.numberOfSteps, (e) => (b(), c("div", {
|
|
6539
6571
|
class: "w-slider__step-label",
|
|
6540
6572
|
key: e,
|
|
6541
6573
|
onClick: (t) => u.onStepLabelClick(e * (100 / u.numberOfSteps)),
|
|
6542
6574
|
style: v(`left: ${e * (100 / u.numberOfSteps)}%`)
|
|
6543
|
-
},
|
|
6575
|
+
}, O(u.percentToScaled(e * (100 / u.numberOfSteps))), 13, cr))), 128)),
|
|
6544
6576
|
~~u.numberOfSteps === u.numberOfSteps ? s("", !0) : (b(), c("div", {
|
|
6545
6577
|
key: 0,
|
|
6546
6578
|
class: "w-slider__step-label",
|
|
6547
6579
|
onClick: n[7] ||= (e) => u.onStepLabelClick(100),
|
|
6548
6580
|
style: { left: "100%" }
|
|
6549
|
-
},
|
|
6581
|
+
}, O(this.maxVal), 1))
|
|
6550
6582
|
])) : s("", !0)]),
|
|
6551
6583
|
t.$slots["label-right"] ? (b(), c("label", {
|
|
6552
6584
|
key: 2,
|
|
6553
6585
|
class: g(["w-slider__label w-slider__label--right w-form-el-shakable", t.labelClasses]),
|
|
6554
|
-
for:
|
|
6555
|
-
}, [
|
|
6586
|
+
for: u.thumbId
|
|
6587
|
+
}, [w(t.$slots, "label-right")], 10, lr)) : r.labelRight ? (b(), c("label", {
|
|
6556
6588
|
key: 3,
|
|
6557
6589
|
class: g(["w-slider__label w-slider__label--right w-form-el-shakable", t.labelClasses]),
|
|
6558
|
-
for:
|
|
6590
|
+
for: u.thumbId,
|
|
6559
6591
|
innerHTML: r.labelRight
|
|
6560
|
-
}, null, 10,
|
|
6592
|
+
}, null, 10, ur)) : s("", !0)
|
|
6561
6593
|
]),
|
|
6562
6594
|
_: 3
|
|
6563
6595
|
}, 16, [
|
|
@@ -6566,7 +6598,7 @@ function ur(t, n, r, i, a, u) {
|
|
|
6566
6598
|
"class"
|
|
6567
6599
|
]);
|
|
6568
6600
|
}
|
|
6569
|
-
var
|
|
6601
|
+
var fr = /* @__PURE__ */ Y({
|
|
6570
6602
|
name: "w-slider",
|
|
6571
6603
|
mixins: [Q],
|
|
6572
6604
|
props: {
|
|
@@ -6618,6 +6650,9 @@ var dr = /* @__PURE__ */ Y({
|
|
|
6618
6650
|
rangeValueScaled: 0
|
|
6619
6651
|
}),
|
|
6620
6652
|
computed: {
|
|
6653
|
+
thumbId() {
|
|
6654
|
+
return this.id ? `${this.id}__thumb` : `button--${this._waveUiUseId}`;
|
|
6655
|
+
},
|
|
6621
6656
|
minVal() {
|
|
6622
6657
|
return parseFloat(this.min);
|
|
6623
6658
|
},
|
|
@@ -6712,15 +6747,15 @@ var dr = /* @__PURE__ */ Y({
|
|
|
6712
6747
|
watch: { modelValue(e) {
|
|
6713
6748
|
this.rangeValueScaled !== e && (this.rangeValueScaled = e, this.rangeValuePercent = this.scaledToPercent(e));
|
|
6714
6749
|
} }
|
|
6715
|
-
}, [["render",
|
|
6716
|
-
function
|
|
6750
|
+
}, [["render", dr]]), pr = { key: 0 };
|
|
6751
|
+
function mr(e, t, n, r, i, a) {
|
|
6717
6752
|
return n.modelValue || n.modelValue === void 0 ? (b(), c("div", {
|
|
6718
6753
|
key: 0,
|
|
6719
6754
|
class: g(["w-spinner", a.classes]),
|
|
6720
6755
|
style: v(a.styles)
|
|
6721
|
-
}, [a.isThreeDots ? (b(), c("span",
|
|
6756
|
+
}, [a.isThreeDots ? (b(), c("span", pr)) : s("", !0)], 6)) : s("", !0);
|
|
6722
6757
|
}
|
|
6723
|
-
var
|
|
6758
|
+
var hr = /* @__PURE__ */ Y({
|
|
6724
6759
|
name: "w-spinner",
|
|
6725
6760
|
props: {
|
|
6726
6761
|
modelValue: {},
|
|
@@ -6761,13 +6796,13 @@ var mr = /* @__PURE__ */ Y({
|
|
|
6761
6796
|
};
|
|
6762
6797
|
}
|
|
6763
6798
|
}
|
|
6764
|
-
}, [["render",
|
|
6799
|
+
}, [["render", mr]]);
|
|
6765
6800
|
//#endregion
|
|
6766
6801
|
//#region src/wave-ui/components/w-steps.vue?vue&type=template&lang.js
|
|
6767
|
-
function
|
|
6802
|
+
function gr(e, t, n, r, i, a) {
|
|
6768
6803
|
return b(), c("div", { class: g(["w-steps", a.classes]) }, null, 2);
|
|
6769
6804
|
}
|
|
6770
|
-
var
|
|
6805
|
+
var _r = /* @__PURE__ */ Y({
|
|
6771
6806
|
name: "w-steps",
|
|
6772
6807
|
props: {
|
|
6773
6808
|
dark: { type: Boolean },
|
|
@@ -6781,7 +6816,7 @@ var gr = /* @__PURE__ */ Y({
|
|
|
6781
6816
|
"w-steps--light": this.light
|
|
6782
6817
|
};
|
|
6783
6818
|
} }
|
|
6784
|
-
}, [["render",
|
|
6819
|
+
}, [["render", gr]]), vr = [
|
|
6785
6820
|
"id",
|
|
6786
6821
|
"name",
|
|
6787
6822
|
"checked",
|
|
@@ -6791,20 +6826,21 @@ var gr = /* @__PURE__ */ Y({
|
|
|
6791
6826
|
"required",
|
|
6792
6827
|
"tabindex",
|
|
6793
6828
|
"aria-checked"
|
|
6794
|
-
],
|
|
6829
|
+
], yr = ["for"], br = {
|
|
6795
6830
|
key: 0,
|
|
6796
6831
|
class: "w-switch__track"
|
|
6797
|
-
},
|
|
6832
|
+
}, xr = {
|
|
6798
6833
|
key: 1,
|
|
6799
6834
|
class: "w-switch__thumb"
|
|
6800
|
-
},
|
|
6801
|
-
function
|
|
6802
|
-
let f =
|
|
6803
|
-
return b(), o(
|
|
6835
|
+
}, Sr = ["for"];
|
|
6836
|
+
function Cr(t, n, r, i, a, u) {
|
|
6837
|
+
let f = T("w-progress");
|
|
6838
|
+
return b(), o(D(t.formRegister ? "w-form-element" : "div"), h({ ref: "formEl" }, t.formRegister && {
|
|
6804
6839
|
validators: t.validators,
|
|
6805
6840
|
inputValue: a.isOn,
|
|
6806
6841
|
disabled: t.isDisabled,
|
|
6807
|
-
readonly: t.isReadonly
|
|
6842
|
+
readonly: t.isReadonly,
|
|
6843
|
+
noBlurValidation: t.noBlurValidation
|
|
6808
6844
|
}, {
|
|
6809
6845
|
valid: t.valid,
|
|
6810
6846
|
"onUpdate:valid": n[4] ||= (e) => t.valid = e,
|
|
@@ -6816,10 +6852,10 @@ function Sr(t, n, r, i, a, u) {
|
|
|
6816
6852
|
class: u.classes,
|
|
6817
6853
|
style: t.$attrs.style
|
|
6818
6854
|
}), {
|
|
6819
|
-
default:
|
|
6855
|
+
default: P(() => [
|
|
6820
6856
|
l("input", h({
|
|
6821
6857
|
ref: "input",
|
|
6822
|
-
id:
|
|
6858
|
+
id: t.inputId,
|
|
6823
6859
|
type: "checkbox",
|
|
6824
6860
|
name: t.inputName,
|
|
6825
6861
|
checked: a.isOn,
|
|
@@ -6834,27 +6870,27 @@ function Sr(t, n, r, i, a, u) {
|
|
|
6834
6870
|
onBlur: n[2] ||= (e) => t.$emit("blur", e),
|
|
6835
6871
|
"aria-checked": a.isOn || "false",
|
|
6836
6872
|
role: "switch"
|
|
6837
|
-
}), null, 16,
|
|
6873
|
+
}), null, 16, vr),
|
|
6838
6874
|
u.hasLabel && r.labelOnLeft ? (b(), c(e, { key: 0 }, [t.$slots.default || r.label ? (b(), c("label", {
|
|
6839
6875
|
key: 0,
|
|
6840
6876
|
class: g(["w-switch__label w-switch__label--left w-form-el-shakable", t.labelClasses]),
|
|
6841
|
-
for:
|
|
6842
|
-
}, [
|
|
6877
|
+
for: t.inputId
|
|
6878
|
+
}, [w(t.$slots, "default", {}, () => [d(O(r.label), 1)])], 10, yr)) : s("", !0)], 64)) : s("", !0),
|
|
6843
6879
|
l("div", {
|
|
6844
6880
|
class: g(["w-switch__input", u.inputClasses]),
|
|
6845
6881
|
onClick: n[3] ||= (e) => {
|
|
6846
6882
|
t.$refs.input.focus(), t.$refs.input.click();
|
|
6847
6883
|
}
|
|
6848
|
-
}, [t.$slots.track ? (b(), c("div",
|
|
6884
|
+
}, [t.$slots.track ? (b(), c("div", br, [w(t.$slots, "track")])) : s("", !0), t.$slots.thumb || r.loading ? (b(), c("div", xr, [r.loading ? (b(), o(f, h({
|
|
6849
6885
|
key: 0,
|
|
6850
6886
|
circle: "",
|
|
6851
6887
|
color: "inherit"
|
|
6852
|
-
}, typeof r.loading == "number" && { "model-value": r.loading }), null, 16)) :
|
|
6888
|
+
}, typeof r.loading == "number" && { "model-value": r.loading }), null, 16)) : w(t.$slots, "thumb", { key: 1 })])) : s("", !0)], 2),
|
|
6853
6889
|
u.hasLabel && !r.labelOnLeft ? (b(), c(e, { key: 1 }, [t.$slots.default || r.label ? (b(), c("label", {
|
|
6854
6890
|
key: 0,
|
|
6855
6891
|
class: g(["w-switch__label w-switch__label--right w-form-el-shakable", t.labelClasses]),
|
|
6856
|
-
for:
|
|
6857
|
-
}, [
|
|
6892
|
+
for: t.inputId
|
|
6893
|
+
}, [w(t.$slots, "default", {}, () => [d(O(r.label), 1)])], 10, Sr)) : s("", !0)], 64)) : s("", !0)
|
|
6858
6894
|
]),
|
|
6859
6895
|
_: 3
|
|
6860
6896
|
}, 16, [
|
|
@@ -6863,7 +6899,7 @@ function Sr(t, n, r, i, a, u) {
|
|
|
6863
6899
|
"style"
|
|
6864
6900
|
]);
|
|
6865
6901
|
}
|
|
6866
|
-
var
|
|
6902
|
+
var wr = /* @__PURE__ */ Y({
|
|
6867
6903
|
name: "w-switch",
|
|
6868
6904
|
mixins: [Q],
|
|
6869
6905
|
inheritAttrs: !1,
|
|
@@ -6946,73 +6982,73 @@ var Cr = /* @__PURE__ */ Y({
|
|
|
6946
6982
|
watch: { modelValue(e) {
|
|
6947
6983
|
this.isOn = e;
|
|
6948
6984
|
} }
|
|
6949
|
-
}, [["render",
|
|
6950
|
-
function
|
|
6951
|
-
return b(), c("div",
|
|
6985
|
+
}, [["render", Cr]]), Tr = { class: "w-tabs__content" };
|
|
6986
|
+
function Er(e, t, n, r, i, a) {
|
|
6987
|
+
return b(), c("div", Tr, [w(e.$slots, "default", { item: n.item })]);
|
|
6952
6988
|
}
|
|
6953
|
-
var
|
|
6989
|
+
var Dr = /* @__PURE__ */ Y({
|
|
6954
6990
|
name: "tab-content",
|
|
6955
6991
|
props: { item: Object }
|
|
6956
|
-
}, [["render",
|
|
6992
|
+
}, [["render", Er]]), Or = [
|
|
6957
6993
|
"onClick",
|
|
6958
6994
|
"onFocus",
|
|
6959
6995
|
"tabindex",
|
|
6960
6996
|
"onKeypress",
|
|
6961
6997
|
"aria-selected"
|
|
6962
|
-
],
|
|
6998
|
+
], kr = ["innerHTML"], Ar = {
|
|
6963
6999
|
key: 0,
|
|
6964
7000
|
class: "w-tabs__bar-extra"
|
|
6965
|
-
},
|
|
7001
|
+
}, jr = {
|
|
6966
7002
|
key: 0,
|
|
6967
7003
|
class: "w-tabs__content-wrap"
|
|
6968
|
-
},
|
|
6969
|
-
function
|
|
6970
|
-
let m =
|
|
7004
|
+
}, Mr = ["innerHTML"], Nr = ["innerHTML"];
|
|
7005
|
+
function Pr(n, a, u, d, f, p) {
|
|
7006
|
+
let m = T("tab-content");
|
|
6971
7007
|
return b(), c("div", { class: g(["w-tabs", p.tabsClasses]) }, [l("div", {
|
|
6972
7008
|
class: g(["w-tabs__bar", p.tabsBarClasses]),
|
|
6973
7009
|
ref: "tabs-bar"
|
|
6974
7010
|
}, [
|
|
6975
|
-
(b(!0), c(e, null,
|
|
7011
|
+
(b(!0), c(e, null, C(n.tabs, (e, t) => (b(), c("div", {
|
|
6976
7012
|
class: g(["w-tabs__bar-item", p.barItemClasses(e)]),
|
|
6977
7013
|
key: t,
|
|
6978
7014
|
onClick: (t) => !e._disabled && e._uid !== n.activeTabUid && p.openTab(e._uid),
|
|
6979
7015
|
onFocus: (t) => n.$emit("focus", p.getOriginalItem(e)),
|
|
6980
7016
|
tabindex: !e._disabled && 0,
|
|
6981
|
-
onKeypress:
|
|
7017
|
+
onKeypress: I((t) => !e._disabled && p.openTab(e._uid), ["enter"]),
|
|
6982
7018
|
"aria-selected": e._uid === n.activeTabUid ? "true" : "false",
|
|
6983
7019
|
role: "tab"
|
|
6984
|
-
}, [n.$slots[`item-title.${e.id || t + 1}`] ?
|
|
7020
|
+
}, [n.$slots[`item-title.${e.id || t + 1}`] ? w(n.$slots, `item-title.${e.id || t + 1}`, {
|
|
6985
7021
|
key: 0,
|
|
6986
7022
|
item: p.getOriginalItem(e),
|
|
6987
7023
|
index: t + 1,
|
|
6988
7024
|
active: e._uid === n.activeTabUid
|
|
6989
|
-
}) :
|
|
7025
|
+
}) : w(n.$slots, "item-title", {
|
|
6990
7026
|
key: 1,
|
|
6991
7027
|
item: p.getOriginalItem(e),
|
|
6992
7028
|
index: t + 1,
|
|
6993
7029
|
active: e._uid === n.activeTabUid
|
|
6994
|
-
}, () => [l("div", { innerHTML: e[u.itemTitleKey] }, null, 8,
|
|
6995
|
-
n.$slots["tabs-bar-extra"] ? (b(), c("div",
|
|
7030
|
+
}, () => [l("div", { innerHTML: e[u.itemTitleKey] }, null, 8, kr)])], 42, Or))), 128)),
|
|
7031
|
+
n.$slots["tabs-bar-extra"] ? (b(), c("div", Ar, [w(n.$slots, "tabs-bar-extra")])) : s("", !0),
|
|
6996
7032
|
!u.noSlider && !u.card ? (b(), c("div", {
|
|
6997
7033
|
key: 1,
|
|
6998
7034
|
class: g(["w-tabs__slider", u.sliderColor]),
|
|
6999
7035
|
style: v(p.sliderStyles)
|
|
7000
7036
|
}, null, 6)) : s("", !0)
|
|
7001
|
-
], 2), n.tabs.length ? (b(), c("div",
|
|
7037
|
+
], 2), n.tabs.length ? (b(), c("div", jr, [u.keepInDom ? (b(), o(i, {
|
|
7002
7038
|
key: 0,
|
|
7003
7039
|
name: p.transitionName
|
|
7004
7040
|
}, {
|
|
7005
|
-
default:
|
|
7041
|
+
default: P(() => [(b(!0), c(e, null, C(n.tabs, (e, t) => F((b(), o(m, {
|
|
7006
7042
|
key: e._uid,
|
|
7007
7043
|
item: e,
|
|
7008
7044
|
class: g(p.contentClasses)
|
|
7009
7045
|
}, {
|
|
7010
|
-
default:
|
|
7046
|
+
default: P(() => [n.$slots[`item-content.${e._index + 1}`] ? w(n.$slots, `item-content.${e._index + 1}`, {
|
|
7011
7047
|
key: 0,
|
|
7012
7048
|
item: p.getOriginalItem(e),
|
|
7013
7049
|
index: e._index + 1,
|
|
7014
7050
|
active: e._index === p.activeTab._index
|
|
7015
|
-
}) :
|
|
7051
|
+
}) : w(n.$slots, "item-content", {
|
|
7016
7052
|
key: 1,
|
|
7017
7053
|
item: p.getOriginalItem(e),
|
|
7018
7054
|
index: e._index + 1,
|
|
@@ -7020,26 +7056,26 @@ function Nr(n, a, u, d, f, p) {
|
|
|
7020
7056
|
}, () => [e[u.itemContentKey] ? (b(), c("div", {
|
|
7021
7057
|
key: 0,
|
|
7022
7058
|
innerHTML: e[u.itemContentKey]
|
|
7023
|
-
}, null, 8,
|
|
7059
|
+
}, null, 8, Mr)) : s("", !0)])]),
|
|
7024
7060
|
_: 2
|
|
7025
|
-
}, 1032, ["item", "class"])), [[
|
|
7061
|
+
}, 1032, ["item", "class"])), [[N, e._uid === p.activeTab._uid]])), 128))]),
|
|
7026
7062
|
_: 3
|
|
7027
7063
|
}, 8, ["name"])) : (b(), o(r, {
|
|
7028
7064
|
key: 1,
|
|
7029
7065
|
name: p.transitionName,
|
|
7030
7066
|
mode: p.transitionMode
|
|
7031
7067
|
}, {
|
|
7032
|
-
default:
|
|
7068
|
+
default: P(() => [(b(), o(t, { exclude: u.keepAlive ? "" : "tab-content" }, [(b(), o(m, {
|
|
7033
7069
|
key: n.activeTabUid,
|
|
7034
7070
|
item: p.activeTab,
|
|
7035
7071
|
class: g(u.contentClass)
|
|
7036
7072
|
}, {
|
|
7037
|
-
default:
|
|
7073
|
+
default: P(({ item: t }) => [t ? (b(), c(e, { key: 0 }, [n.$slots[`item-content.${t._index + 1}`] ? w(n.$slots, `item-content.${t._index + 1}`, {
|
|
7038
7074
|
key: 0,
|
|
7039
7075
|
item: p.getOriginalItem(t),
|
|
7040
7076
|
index: t._index + 1,
|
|
7041
7077
|
active: t._uid === n.activeTabUid
|
|
7042
|
-
}) :
|
|
7078
|
+
}) : w(n.$slots, "item-content", {
|
|
7043
7079
|
key: 1,
|
|
7044
7080
|
item: p.getOriginalItem(t),
|
|
7045
7081
|
index: t._index + 1,
|
|
@@ -7047,16 +7083,17 @@ function Nr(n, a, u, d, f, p) {
|
|
|
7047
7083
|
}, () => [t[u.itemContentKey] ? (b(), c("div", {
|
|
7048
7084
|
key: 0,
|
|
7049
7085
|
innerHTML: t[u.itemContentKey]
|
|
7050
|
-
}, null, 8,
|
|
7086
|
+
}, null, 8, Nr)) : s("", !0)])], 64)) : s("", !0)]),
|
|
7051
7087
|
_: 3
|
|
7052
7088
|
}, 8, ["item", "class"]))], 1032, ["exclude"]))]),
|
|
7053
7089
|
_: 3
|
|
7054
7090
|
}, 8, ["name", "mode"]))])) : s("", !0)], 2);
|
|
7055
7091
|
}
|
|
7056
|
-
|
|
7057
|
-
//#region src/wave-ui/components/w-tabs/index.vue
|
|
7058
|
-
var Pr = 0, Fr = /* @__PURE__ */ Y({
|
|
7092
|
+
var Fr = /* @__PURE__ */ Y({
|
|
7059
7093
|
name: "w-tabs",
|
|
7094
|
+
setup() {
|
|
7095
|
+
return { _tabsStableId: A() };
|
|
7096
|
+
},
|
|
7060
7097
|
props: {
|
|
7061
7098
|
modelValue: { type: [Number, String] },
|
|
7062
7099
|
color: { type: String },
|
|
@@ -7117,7 +7154,7 @@ var Pr = 0, Fr = /* @__PURE__ */ Y({
|
|
|
7117
7154
|
default: !1
|
|
7118
7155
|
}
|
|
7119
7156
|
},
|
|
7120
|
-
components: { TabContent:
|
|
7157
|
+
components: { TabContent: Dr },
|
|
7121
7158
|
emits: [
|
|
7122
7159
|
"input",
|
|
7123
7160
|
"update:modelValue",
|
|
@@ -7180,7 +7217,7 @@ var Pr = 0, Fr = /* @__PURE__ */ Y({
|
|
|
7180
7217
|
},
|
|
7181
7218
|
methods: {
|
|
7182
7219
|
addTab(e) {
|
|
7183
|
-
(e[this.itemIdKey] ?? e._uid ?? !1) || (e._uid =
|
|
7220
|
+
(e[this.itemIdKey] ?? e._uid ?? !1) || (e._uid = `${this._tabsStableId}-${this.tabs.length}`), this.tabs.push({
|
|
7184
7221
|
_uid: e[this.itemIdKey] ?? e._uid,
|
|
7185
7222
|
_index: this.tabs.length,
|
|
7186
7223
|
...e,
|
|
@@ -7189,7 +7226,7 @@ var Pr = 0, Fr = /* @__PURE__ */ Y({
|
|
|
7189
7226
|
},
|
|
7190
7227
|
refreshTabs() {
|
|
7191
7228
|
let e = this.items;
|
|
7192
|
-
typeof e == "number" && (e = Array(e).fill().map((e, t) => this.tabs[t] || {})), this.tabs = e.map((e, t) => ((e[this.itemIdKey] ?? e._uid ?? !1) || (e._uid =
|
|
7229
|
+
typeof e == "number" && (e = Array(e).fill().map((e, t) => this.tabs[t] || {})), this.tabs = e.map((e, t) => ((e[this.itemIdKey] ?? e._uid ?? !1) || (e._uid = `${this._tabsStableId}-${t}`), {
|
|
7193
7230
|
...e,
|
|
7194
7231
|
_uid: e[this.itemIdKey] ?? e._uid,
|
|
7195
7232
|
_index: t,
|
|
@@ -7269,7 +7306,7 @@ var Pr = 0, Fr = /* @__PURE__ */ Y({
|
|
|
7269
7306
|
e ? window.removeEventListener("resize", this.onResize) : (this.updateSlider(), window.addEventListener("resize", this.onResize));
|
|
7270
7307
|
}
|
|
7271
7308
|
}
|
|
7272
|
-
}, [["render",
|
|
7309
|
+
}, [["render", Pr]]), Ir = { class: "w-table__scroll-wrap" }, Lr = { ref: "colgroup" }, Rr = ["width"], zr = { key: 0 }, Br = ["onClick"], Vr = ["innerHTML"], Hr = {
|
|
7273
7310
|
key: 0,
|
|
7274
7311
|
class: "w-table__progress-bar"
|
|
7275
7312
|
}, Ur = ["colspan"], Wr = {
|
|
@@ -7295,19 +7332,19 @@ var Pr = 0, Fr = /* @__PURE__ */ Y({
|
|
|
7295
7332
|
class: "w-table__pagination w-pagination"
|
|
7296
7333
|
}, si = { class: "pages-wrap" }, ci = { class: "w-pagination__results" };
|
|
7297
7334
|
function li(t, n, r, i, a, u) {
|
|
7298
|
-
let p =
|
|
7335
|
+
let p = T("w-icon"), m = T("w-progress"), h = T("w-transition-fade"), _ = T("w-transition-expand"), v = T("w-select"), y = T("w-button");
|
|
7299
7336
|
return b(), c("div", { class: g(["w-table w-table--wrap", u.classes]) }, [l("div", Ir, [l("table", {
|
|
7300
7337
|
class: "w-table__table",
|
|
7301
7338
|
onMousedown: n[1] ||= (...e) => u.onMouseDown && u.onMouseDown(...e),
|
|
7302
7339
|
onMouseover: n[2] ||= (...e) => u.onMouseOver && u.onMouseOver(...e),
|
|
7303
7340
|
onMouseout: n[3] ||= (...e) => u.onMouseOut && u.onMouseOut(...e)
|
|
7304
7341
|
}, [
|
|
7305
|
-
l("colgroup", Lr, [(b(!0), c(e, null,
|
|
7342
|
+
l("colgroup", Lr, [(b(!0), c(e, null, C(r.headers, (e, t) => (b(), c("col", {
|
|
7306
7343
|
class: g(["w-table__col", u.colClasses[t]]),
|
|
7307
7344
|
key: t,
|
|
7308
7345
|
width: e.width || null
|
|
7309
7346
|
}, null, 10, Rr))), 128))], 512),
|
|
7310
|
-
r.noHeaders ? s("", !0) : (b(), c("thead", zr, [l("tr", null, [(b(!0), c(e, null,
|
|
7347
|
+
r.noHeaders ? s("", !0) : (b(), c("thead", zr, [l("tr", null, [(b(!0), c(e, null, C(r.headers, (i, a) => (b(), c("th", {
|
|
7311
7348
|
class: g(["w-table__header", u.headerClasses(i)]),
|
|
7312
7349
|
key: a,
|
|
7313
7350
|
onClick: (e) => !t.colResizing.dragging && i.sortable !== !1 && u.sortTable(i)
|
|
@@ -7316,15 +7353,15 @@ function li(t, n, r, i, a, u) {
|
|
|
7316
7353
|
key: 0,
|
|
7317
7354
|
class: g(["w-table__header-sort", u.headerSortClasses(i)])
|
|
7318
7355
|
}, {
|
|
7319
|
-
default:
|
|
7356
|
+
default: P(() => [...n[8] ||= [d("wi-arrow-down", -1)]]),
|
|
7320
7357
|
_: 1
|
|
7321
7358
|
}, 8, ["class"])) : s("", !0),
|
|
7322
|
-
i.label ? (b(), c(e, { key: 1 }, [t.$slots["header-label"] ?
|
|
7359
|
+
i.label ? (b(), c(e, { key: 1 }, [t.$slots["header-label"] ? w(t.$slots, "header-label", {
|
|
7323
7360
|
key: 0,
|
|
7324
7361
|
header: i,
|
|
7325
7362
|
label: i.label,
|
|
7326
7363
|
index: a + 1
|
|
7327
|
-
}, () => [d(
|
|
7364
|
+
}, () => [d(O(i.label || ""), 1)]) : (b(), c("span", {
|
|
7328
7365
|
key: 1,
|
|
7329
7366
|
innerHTML: i.label || ""
|
|
7330
7367
|
}, null, 8, Vr))], 64)) : s("", !0),
|
|
@@ -7332,7 +7369,7 @@ function li(t, n, r, i, a, u) {
|
|
|
7332
7369
|
key: 2,
|
|
7333
7370
|
class: g(["w-table__header-sort", u.headerSortClasses(i)])
|
|
7334
7371
|
}, {
|
|
7335
|
-
default:
|
|
7372
|
+
default: P(() => [...n[9] ||= [d("wi-arrow-down", -1)]]),
|
|
7336
7373
|
_: 1
|
|
7337
7374
|
}, 8, ["class"])) : s("", !0),
|
|
7338
7375
|
a < r.headers.length - 1 && r.resizableColumns ? (b(), c("span", {
|
|
@@ -7341,18 +7378,18 @@ function li(t, n, r, i, a, u) {
|
|
|
7341
7378
|
"w-table__col-resizer--hover": t.colResizing.hover === a,
|
|
7342
7379
|
"w-table__col-resizer--active": t.colResizing.columnIndex === a
|
|
7343
7380
|
}]),
|
|
7344
|
-
onClick: n[0] ||=
|
|
7381
|
+
onClick: n[0] ||= L(() => {}, ["stop"])
|
|
7345
7382
|
}, null, 2)) : s("", !0)
|
|
7346
7383
|
], 10, Br))), 128))]), f(h, null, {
|
|
7347
|
-
default:
|
|
7384
|
+
default: P(() => [r.loading === "header" ? (b(), c("tr", Hr, [l("td", { colspan: r.headers.length }, [f(m, { tile: "" })], 8, Ur)])) : s("", !0)]),
|
|
7348
7385
|
_: 1
|
|
7349
7386
|
})])),
|
|
7350
7387
|
l("tbody", null, [
|
|
7351
|
-
r.loading === !0 ? (b(), c("tr", Wr, [l("td", { colspan: r.headers.length }, [f(m, { tile: "" }), l("div", Kr, [
|
|
7388
|
+
r.loading === !0 ? (b(), c("tr", Wr, [l("td", { colspan: r.headers.length }, [f(m, { tile: "" }), l("div", Kr, [w(t.$slots, "loading", {}, () => [n[10] ||= d("Loading...", -1)])])], 8, Gr)])) : u.tableItems.length ? s("", !0) : (b(), c("tr", qr, [l("td", {
|
|
7352
7389
|
class: "w-table__cell text-center",
|
|
7353
7390
|
colspan: r.headers.length
|
|
7354
|
-
}, [
|
|
7355
|
-
u.tableItems.length && r.loading !== !0 ? (b(!0), c(e, { key: 2 },
|
|
7391
|
+
}, [w(t.$slots, "no-data", {}, () => [n[11] ||= d("No data to show.", -1)])], 8, Jr)])),
|
|
7392
|
+
u.tableItems.length && r.loading !== !0 ? (b(!0), c(e, { key: 2 }, C(u.paginatedItems, (n, i) => (b(), c(e, { key: i }, [t.$slots.item ? w(t.$slots, "item", {
|
|
7356
7393
|
key: 0,
|
|
7357
7394
|
item: n,
|
|
7358
7395
|
index: i + 1,
|
|
@@ -7370,26 +7407,26 @@ function li(t, n, r, i, a, u) {
|
|
|
7370
7407
|
[n.class]: n.class
|
|
7371
7408
|
}]),
|
|
7372
7409
|
onClick: (e) => u.doSelectRow(n, i)
|
|
7373
|
-
}, [(b(!0), c(e, null,
|
|
7410
|
+
}, [(b(!0), c(e, null, C(r.headers, (a, o) => (b(), c(e, null, [t.$slots[`item-cell.${a.key}`] || t.$slots[`item-cell.${o + 1}`] || t.$slots["item-cell"] ? (b(), c("td", {
|
|
7374
7411
|
class: g(["w-table__cell", {
|
|
7375
7412
|
[`text-${a.align || "left"}`]: !0,
|
|
7376
7413
|
"w-table__cell--sticky": a.sticky
|
|
7377
7414
|
}]),
|
|
7378
7415
|
key: `${o}-a`,
|
|
7379
7416
|
"data-label": a.label
|
|
7380
|
-
}, [t.$slots[`item-cell.${a.key}`] ?
|
|
7417
|
+
}, [t.$slots[`item-cell.${a.key}`] ? w(t.$slots, `item-cell.${a.key}`, {
|
|
7381
7418
|
key: 0,
|
|
7382
7419
|
header: a,
|
|
7383
7420
|
item: n,
|
|
7384
7421
|
label: n[a.key] || "",
|
|
7385
7422
|
index: i + 1
|
|
7386
|
-
}) : t.$slots[`item-cell.${o + 1}`] ?
|
|
7423
|
+
}) : t.$slots[`item-cell.${o + 1}`] ? w(t.$slots, `item-cell.${o + 1}`, {
|
|
7387
7424
|
key: 1,
|
|
7388
7425
|
header: a,
|
|
7389
7426
|
item: n,
|
|
7390
7427
|
label: n[a.key] || "",
|
|
7391
7428
|
index: i + 1
|
|
7392
|
-
}) : t.$slots["item-cell"] ?
|
|
7429
|
+
}) : t.$slots["item-cell"] ? w(t.$slots, "item-cell", {
|
|
7393
7430
|
key: 2,
|
|
7394
7431
|
header: a,
|
|
7395
7432
|
item: n,
|
|
@@ -7418,7 +7455,7 @@ function li(t, n, r, i, a, u) {
|
|
|
7418
7455
|
class: "w-table__cell",
|
|
7419
7456
|
colspan: r.headers.length
|
|
7420
7457
|
}, [f(_, { y: "" }, {
|
|
7421
|
-
default:
|
|
7458
|
+
default: P(() => [u.expandedRowsByUid[n._uid] ? (b(), c("div", ti, [w(t.$slots, "row-expansion", {
|
|
7422
7459
|
item: n,
|
|
7423
7460
|
index: i + 1
|
|
7424
7461
|
})])) : s("", !0), i < r.headers.length - 1 && r.resizableColumns ? (b(), c("span", {
|
|
@@ -7430,13 +7467,13 @@ function li(t, n, r, i, a, u) {
|
|
|
7430
7467
|
}, null, 2)) : s("", !0)]),
|
|
7431
7468
|
_: 2
|
|
7432
7469
|
}, 1024)], 8, ei)])) : s("", !0)], 64))), 128)) : s("", !0),
|
|
7433
|
-
t.$slots["extra-row"] ? (b(), c("div", ni, [
|
|
7470
|
+
t.$slots["extra-row"] ? (b(), c("div", ni, [w(t.$slots, "extra-row")])) : s("", !0)
|
|
7434
7471
|
]),
|
|
7435
|
-
t.$slots.footer || t.$slots["footer-row"] ? (b(), c("tfoot", ri, [t.$slots["footer-row"] ?
|
|
7472
|
+
t.$slots.footer || t.$slots["footer-row"] ? (b(), c("tfoot", ri, [t.$slots["footer-row"] ? w(t.$slots, "footer-row", { key: 0 }) : t.$slots.footer ? (b(), c("tr", ii, [l("td", {
|
|
7436
7473
|
class: "w-table__cell",
|
|
7437
7474
|
colspan: r.headers.length
|
|
7438
|
-
}, [
|
|
7439
|
-
], 32)]), r.pagination && t.paginationConfig ? (b(), c("div", oi, [
|
|
7475
|
+
}, [w(t.$slots, "footer")], 8, ai)])) : s("", !0)])) : s("", !0)
|
|
7476
|
+
], 32)]), r.pagination && t.paginationConfig ? (b(), c("div", oi, [w(t.$slots, "pagination", {
|
|
7440
7477
|
range: `${t.paginationConfig.start}-${t.paginationConfig.end}`,
|
|
7441
7478
|
total: t.paginationConfig.total,
|
|
7442
7479
|
pagesCount: t.paginationConfig.pagesCount,
|
|
@@ -7463,7 +7500,7 @@ function li(t, n, r, i, a, u) {
|
|
|
7463
7500
|
text: "",
|
|
7464
7501
|
lg: ""
|
|
7465
7502
|
}, null, 8, ["disabled"]),
|
|
7466
|
-
t.paginationConfig.pagesCount > 7 ? (b(!0), c(e, { key: 0 },
|
|
7503
|
+
t.paginationConfig.pagesCount > 7 ? (b(!0), c(e, { key: 0 }, C(t.paginationConfig.pagesCount, (r) => (b(), c(e, { key: r }, [[
|
|
7467
7504
|
1,
|
|
7468
7505
|
t.paginationConfig.pagesCount,
|
|
7469
7506
|
t.paginationConfig.page - 1,
|
|
@@ -7476,7 +7513,7 @@ function li(t, n, r, i, a, u) {
|
|
|
7476
7513
|
round: "",
|
|
7477
7514
|
lg: ""
|
|
7478
7515
|
}, {
|
|
7479
|
-
default:
|
|
7516
|
+
default: P(() => [d(O(r), 1)]),
|
|
7480
7517
|
_: 2
|
|
7481
7518
|
}, 1032, ["onClick", "class"])) : [
|
|
7482
7519
|
1,
|
|
@@ -7491,16 +7528,16 @@ function li(t, n, r, i, a, u) {
|
|
|
7491
7528
|
round: "",
|
|
7492
7529
|
lg: ""
|
|
7493
7530
|
}, {
|
|
7494
|
-
default:
|
|
7531
|
+
default: P(() => [...n[12] ||= [d("...", -1)]]),
|
|
7495
7532
|
_: 1
|
|
7496
|
-
}, 8, ["onClick", "class"])) : s("", !0)], 64))), 128)) : (b(!0), c(e, { key: 1 },
|
|
7533
|
+
}, 8, ["onClick", "class"])) : s("", !0)], 64))), 128)) : (b(!0), c(e, { key: 1 }, C(t.paginationConfig.pagesCount, (e) => (b(), o(y, {
|
|
7497
7534
|
class: g(["w-pagination__page", { "w-pagination__page--active": e === t.paginationConfig.page }]),
|
|
7498
7535
|
key: e,
|
|
7499
7536
|
onClick: (n) => e !== t.paginationConfig.page && u.goToPage(e),
|
|
7500
7537
|
round: "",
|
|
7501
7538
|
lg: ""
|
|
7502
7539
|
}, {
|
|
7503
|
-
default:
|
|
7540
|
+
default: P(() => [d(O(e), 1)]),
|
|
7504
7541
|
_: 2
|
|
7505
7542
|
}, 1032, ["onClick", "class"]))), 128)),
|
|
7506
7543
|
f(y, {
|
|
@@ -7512,7 +7549,7 @@ function li(t, n, r, i, a, u) {
|
|
|
7512
7549
|
lg: ""
|
|
7513
7550
|
}, null, 8, ["disabled"])
|
|
7514
7551
|
]),
|
|
7515
|
-
l("span", ci,
|
|
7552
|
+
l("span", ci, O(t.paginationConfig.start) + "-" + O(t.paginationConfig.end || t.paginationConfig.total) + " of " + O(t.paginationConfig.total), 1)
|
|
7516
7553
|
])])) : s("", !0)], 2);
|
|
7517
7554
|
}
|
|
7518
7555
|
//#endregion
|
|
@@ -7544,7 +7581,7 @@ var ui = 15, di = /* @__PURE__ */ Y({
|
|
|
7544
7581
|
1,
|
|
7545
7582
|
"1",
|
|
7546
7583
|
""
|
|
7547
|
-
].includes(e) ||
|
|
7584
|
+
].includes(e) || B(`Wrong value for the w-table's \`expandableRows\` prop. Given: "${e}", expected one of: [undefined, true, false, 1, '1', ''].`), !0) },
|
|
7548
7585
|
expandedRows: { type: Array },
|
|
7549
7586
|
selectableRows: { validator: (e) => ([
|
|
7550
7587
|
void 0,
|
|
@@ -7553,7 +7590,7 @@ var ui = 15, di = /* @__PURE__ */ Y({
|
|
|
7553
7590
|
1,
|
|
7554
7591
|
"1",
|
|
7555
7592
|
""
|
|
7556
|
-
].includes(e) ||
|
|
7593
|
+
].includes(e) || B(`Wrong value for the w-table's \`selectableRows\` prop. Given: "${e}", expected one of: [undefined, true, false, 1, '1', ''].`), !0) },
|
|
7557
7594
|
selectedRows: { type: Array },
|
|
7558
7595
|
forceSelection: { type: Boolean },
|
|
7559
7596
|
uidKey: {
|
|
@@ -7571,7 +7608,7 @@ var ui = 15, di = /* @__PURE__ */ Y({
|
|
|
7571
7608
|
Object,
|
|
7572
7609
|
String
|
|
7573
7610
|
],
|
|
7574
|
-
validator: (e) => e && typeof e == "object" && (!e.itemsPerPage || e.page && isNaN(e.page)) ? (
|
|
7611
|
+
validator: (e) => e && typeof e == "object" && (!e.itemsPerPage || e.page && isNaN(e.page)) ? (B("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 }."), !1) : !0
|
|
7575
7612
|
},
|
|
7576
7613
|
dark: { type: Boolean },
|
|
7577
7614
|
light: { type: Boolean }
|
|
@@ -7816,17 +7853,17 @@ function pi(e, t, n, r, i, a) {
|
|
|
7816
7853
|
onClick: t[1] ||= (t) => {
|
|
7817
7854
|
e.$emit("update:modelValue", !n.modelValue), e.$emit("input", !n.modelValue);
|
|
7818
7855
|
},
|
|
7819
|
-
onKeypress: t[2] ||=
|
|
7856
|
+
onKeypress: t[2] ||= I((t) => {
|
|
7820
7857
|
e.$emit("update:modelValue", !n.modelValue), e.$emit("input", !n.modelValue);
|
|
7821
7858
|
}, ["enter"]),
|
|
7822
7859
|
role: n.modelValue !== -1 && "button",
|
|
7823
7860
|
"aria-pressed": n.modelValue !== -1 && (n.modelValue ? "true" : "false"),
|
|
7824
7861
|
tabindex: n.modelValue !== -1 && 0,
|
|
7825
7862
|
style: v(a.styles)
|
|
7826
|
-
}, [
|
|
7863
|
+
}, [w(e.$slots, "default"), n.closable && n.modelValue ? (b(), c("i", {
|
|
7827
7864
|
key: 0,
|
|
7828
7865
|
class: "w-icon w-tag__closable wi-cross",
|
|
7829
|
-
onClick: t[0] ||=
|
|
7866
|
+
onClick: t[0] ||= L((t) => {
|
|
7830
7867
|
e.$emit("update:modelValue", !1), e.$emit("input", !1);
|
|
7831
7868
|
}, ["stop"]),
|
|
7832
7869
|
role: "icon",
|
|
@@ -7898,13 +7935,14 @@ var mi = /* @__PURE__ */ Y({
|
|
|
7898
7935
|
"tabindex"
|
|
7899
7936
|
], _i = ["for"];
|
|
7900
7937
|
function vi(t, n, r, i, a, u) {
|
|
7901
|
-
let f =
|
|
7902
|
-
return b(), o(
|
|
7938
|
+
let f = T("w-icon");
|
|
7939
|
+
return b(), o(D(t.formRegister ? "w-form-element" : "div"), h({ ref: "formEl" }, t.formRegister && {
|
|
7903
7940
|
validators: t.validators,
|
|
7904
7941
|
inputValue: a.inputValue,
|
|
7905
7942
|
disabled: t.isDisabled,
|
|
7906
7943
|
readonly: t.isReadonly,
|
|
7907
|
-
isFocused: a.isFocused
|
|
7944
|
+
isFocused: a.isFocused,
|
|
7945
|
+
noBlurValidation: t.noBlurValidation
|
|
7908
7946
|
}, {
|
|
7909
7947
|
valid: t.valid,
|
|
7910
7948
|
"onUpdate:valid": n[6] ||= (e) => t.valid = e,
|
|
@@ -7915,24 +7953,24 @@ function vi(t, n, r, i, a, u) {
|
|
|
7915
7953
|
class: u.classes,
|
|
7916
7954
|
style: t.$attrs.style
|
|
7917
7955
|
}), {
|
|
7918
|
-
default:
|
|
7956
|
+
default: P(() => [
|
|
7919
7957
|
r.labelPosition === "left" ? (b(), c(e, { key: 0 }, [t.$slots.default || r.label ? (b(), c("label", {
|
|
7920
7958
|
key: 0,
|
|
7921
7959
|
class: g(["w-textarea__label w-textarea__label--left w-form-el-shakable", t.labelClasses]),
|
|
7922
|
-
for:
|
|
7923
|
-
}, [
|
|
7960
|
+
for: t.inputId
|
|
7961
|
+
}, [w(t.$slots, "default", {}, () => [d(O(r.label), 1)])], 10, hi)) : s("", !0)], 64)) : s("", !0),
|
|
7924
7962
|
l("div", { class: g(["w-textarea__textarea-wrap", u.inputWrapClasses]) }, [
|
|
7925
|
-
|
|
7963
|
+
w(t.$slots, "icon-left", { inputId: t.inputId }, () => [r.innerIconLeft ? (b(), o(f, {
|
|
7926
7964
|
key: 0,
|
|
7927
7965
|
class: "w-textarea__icon w-textarea__icon--inner-left",
|
|
7928
7966
|
tag: "label",
|
|
7929
|
-
for:
|
|
7967
|
+
for: t.inputId,
|
|
7930
7968
|
onClick: n[0] ||= (e) => t.$emit("click:inner-icon-left", e)
|
|
7931
7969
|
}, {
|
|
7932
|
-
default:
|
|
7970
|
+
default: P(() => [d(O(r.innerIconLeft), 1)]),
|
|
7933
7971
|
_: 1
|
|
7934
7972
|
}, 8, ["for"])) : s("", !0)]),
|
|
7935
|
-
|
|
7973
|
+
F(l("textarea", h({
|
|
7936
7974
|
class: "w-textarea__textarea",
|
|
7937
7975
|
ref: "textarea",
|
|
7938
7976
|
"onUpdate:modelValue": n[1] ||= (e) => a.inputValue = e
|
|
@@ -7940,7 +7978,7 @@ function vi(t, n, r, i, a, u) {
|
|
|
7940
7978
|
onInput: n[2] ||= (...e) => u.onInput && u.onInput(...e),
|
|
7941
7979
|
onFocus: n[3] ||= (...e) => u.onFocus && u.onFocus(...e),
|
|
7942
7980
|
onBlur: n[4] ||= (...e) => u.onBlur && u.onBlur(...e),
|
|
7943
|
-
id:
|
|
7981
|
+
id: t.inputId,
|
|
7944
7982
|
name: t.inputName,
|
|
7945
7983
|
placeholder: r.placeholder || null,
|
|
7946
7984
|
rows: r.rows || null,
|
|
@@ -7950,27 +7988,27 @@ function vi(t, n, r, i, a, u) {
|
|
|
7950
7988
|
disabled: t.isDisabled || null,
|
|
7951
7989
|
required: t.required || null,
|
|
7952
7990
|
tabindex: t.tabindex || null
|
|
7953
|
-
}), null, 16, gi), [[
|
|
7991
|
+
}), null, 16, gi), [[M, a.inputValue]]),
|
|
7954
7992
|
r.labelPosition === "inside" && u.showLabelInside ? (b(), c(e, { key: 0 }, [t.$slots.default || r.label ? (b(), c("label", {
|
|
7955
7993
|
key: 0,
|
|
7956
7994
|
class: g(["w-textarea__label w-textarea__label--inside w-form-el-shakable", t.labelClasses])
|
|
7957
|
-
}, [
|
|
7958
|
-
|
|
7995
|
+
}, [w(t.$slots, "default", {}, () => [d(O(r.label), 1)])], 2)) : s("", !0)], 64)) : s("", !0),
|
|
7996
|
+
w(t.$slots, "icon-right", { inputId: t.inputId }, () => [r.innerIconRight ? (b(), o(f, {
|
|
7959
7997
|
key: 0,
|
|
7960
7998
|
class: "w-textarea__icon w-textarea__icon--inner-right",
|
|
7961
7999
|
tag: "label",
|
|
7962
|
-
for:
|
|
8000
|
+
for: t.inputId,
|
|
7963
8001
|
onClick: n[5] ||= (e) => t.$emit("click:inner-icon-right", e)
|
|
7964
8002
|
}, {
|
|
7965
|
-
default:
|
|
8003
|
+
default: P(() => [d(O(r.innerIconRight), 1)]),
|
|
7966
8004
|
_: 1
|
|
7967
8005
|
}, 8, ["for"])) : s("", !0)])
|
|
7968
8006
|
], 2),
|
|
7969
8007
|
r.labelPosition === "right" ? (b(), c(e, { key: 1 }, [t.$slots.default || r.label ? (b(), c("label", {
|
|
7970
8008
|
key: 0,
|
|
7971
8009
|
class: g(["w-textarea__label w-textarea__label--right w-form-el-shakable", t.labelClasses]),
|
|
7972
|
-
for:
|
|
7973
|
-
}, [
|
|
8010
|
+
for: t.inputId
|
|
8011
|
+
}, [w(t.$slots, "default", {}, () => [d(O(r.label), 1)])], 10, _i)) : s("", !0)], 64)) : s("", !0)
|
|
7974
8012
|
]),
|
|
7975
8013
|
_: 3
|
|
7976
8014
|
}, 16, [
|
|
@@ -8117,17 +8155,17 @@ var yi = /* @__PURE__ */ Y({
|
|
|
8117
8155
|
}
|
|
8118
8156
|
}, [["render", vi]]), bi = ["innerHTML"], xi = ["innerHTML"];
|
|
8119
8157
|
function Si(t, n, r, i, a, s) {
|
|
8120
|
-
return b(), c("ul", { class: g(["w-timeline", s.classes]) }, [(b(!0), c(e, null,
|
|
8158
|
+
return b(), c("ul", { class: g(["w-timeline", s.classes]) }, [(b(!0), c(e, null, C(r.items, (e, n) => (b(), c("li", {
|
|
8121
8159
|
class: "w-timeline-item",
|
|
8122
8160
|
key: n
|
|
8123
|
-
}, [(b(), o(
|
|
8124
|
-
default:
|
|
8161
|
+
}, [(b(), o(D(e[r.itemIconKey] || r.icon ? "w-icon" : "div"), { class: g(["w-timeline-item__bullet", { [e[r.itemColorKey] || r.color]: e[r.itemColorKey] || r.color }]) }, {
|
|
8162
|
+
default: P(() => [d(O(e[r.itemIconKey] || r.icon), 1)]),
|
|
8125
8163
|
_: 2
|
|
8126
|
-
}, 1032, ["class"])), t.$slots[`item.${n + 1}`] ?
|
|
8164
|
+
}, 1032, ["class"])), t.$slots[`item.${n + 1}`] ? w(t.$slots, `item.${n + 1}`, {
|
|
8127
8165
|
key: 1,
|
|
8128
8166
|
item: e,
|
|
8129
8167
|
index: n + 1
|
|
8130
|
-
}) :
|
|
8168
|
+
}) : w(t.$slots, "item", {
|
|
8131
8169
|
key: 0,
|
|
8132
8170
|
item: e,
|
|
8133
8171
|
index: n + 1
|
|
@@ -8181,7 +8219,7 @@ function wi(e, t, n, r, i, a) {
|
|
|
8181
8219
|
return b(), c("div", {
|
|
8182
8220
|
class: g(["w-toolbar", a.classes]),
|
|
8183
8221
|
style: v(a.styles)
|
|
8184
|
-
}, [
|
|
8222
|
+
}, [w(e.$slots, "default")], 6);
|
|
8185
8223
|
}
|
|
8186
8224
|
var Ti = /* @__PURE__ */ Y({
|
|
8187
8225
|
name: "w-toolbar",
|
|
@@ -8242,23 +8280,26 @@ var Ti = /* @__PURE__ */ Y({
|
|
|
8242
8280
|
//#endregion
|
|
8243
8281
|
//#region src/wave-ui/components/w-tooltip.vue?vue&type=template&lang.js
|
|
8244
8282
|
function Ei(t, n, i, a, o, l) {
|
|
8245
|
-
return b(), c(e, null, [
|
|
8283
|
+
return b(), c(e, null, [w(t.$slots, "activator", { on: l.activatorEventHandlers }), f(r, {
|
|
8246
8284
|
name: l.transitionName,
|
|
8247
8285
|
appear: "",
|
|
8248
8286
|
onAfterLeave: t.onAfterLeave
|
|
8249
8287
|
}, {
|
|
8250
|
-
default:
|
|
8288
|
+
default: P(() => [t.detachableVisible ? (b(), c("div", {
|
|
8251
8289
|
class: g(["w-tooltip", l.classes]),
|
|
8252
8290
|
ref: "detachable",
|
|
8253
|
-
key:
|
|
8291
|
+
key: a._tooltipInstanceId,
|
|
8254
8292
|
style: v(l.styles)
|
|
8255
|
-
}, [
|
|
8293
|
+
}, [w(t.$slots, "default")], 6)) : s("", !0)]),
|
|
8256
8294
|
_: 3
|
|
8257
8295
|
}, 8, ["name", "onAfterLeave"])], 64);
|
|
8258
8296
|
}
|
|
8259
8297
|
var Di = /* @__PURE__ */ Y({
|
|
8260
8298
|
name: "w-tooltip",
|
|
8261
|
-
mixins: [
|
|
8299
|
+
mixins: [gn],
|
|
8300
|
+
setup() {
|
|
8301
|
+
return { _tooltipInstanceId: A() };
|
|
8302
|
+
},
|
|
8262
8303
|
props: {
|
|
8263
8304
|
modelValue: {},
|
|
8264
8305
|
showOnClick: { type: Boolean },
|
|
@@ -8374,7 +8415,7 @@ var Di = /* @__PURE__ */ Y({
|
|
|
8374
8415
|
//#region src/wave-ui/components/transitions/w-transition-bounce.vue?vue&type=template&lang.js
|
|
8375
8416
|
function Oi(e, t, n, i, a, s) {
|
|
8376
8417
|
return b(), o(r, h({ name: "bounce" }, e.$props), {
|
|
8377
|
-
default:
|
|
8418
|
+
default: P(() => [w(e.$slots, "default")]),
|
|
8378
8419
|
_: 3
|
|
8379
8420
|
}, 16);
|
|
8380
8421
|
}
|
|
@@ -8402,7 +8443,7 @@ function Ai(e, t, n, i, a, s) {
|
|
|
8402
8443
|
onLeave: s.leave,
|
|
8403
8444
|
onAfterLeave: s.afterLeave
|
|
8404
8445
|
}, {
|
|
8405
|
-
default:
|
|
8446
|
+
default: P(() => [w(e.$slots, "default")]),
|
|
8406
8447
|
_: 3
|
|
8407
8448
|
}, 8, [
|
|
8408
8449
|
"onBeforeAppear",
|
|
@@ -8514,7 +8555,7 @@ var ji = /* @__PURE__ */ Y({
|
|
|
8514
8555
|
//#region src/wave-ui/components/transitions/w-transition-fade.vue?vue&type=template&lang.js
|
|
8515
8556
|
function Mi(e, t, n, i, a, s) {
|
|
8516
8557
|
return b(), o(r, h({ name: "fade" }, e.$props), {
|
|
8517
|
-
default:
|
|
8558
|
+
default: P(() => [w(e.$slots, "default")]),
|
|
8518
8559
|
_: 3
|
|
8519
8560
|
}, 16);
|
|
8520
8561
|
}
|
|
@@ -8529,7 +8570,7 @@ var Ni = /* @__PURE__ */ Y({
|
|
|
8529
8570
|
//#region src/wave-ui/components/transitions/w-transition-scale.vue?vue&type=template&lang.js
|
|
8530
8571
|
function Pi(e, t, n, i, a, s) {
|
|
8531
8572
|
return b(), o(r, h({ name: "scale" }, e.$props), {
|
|
8532
|
-
default:
|
|
8573
|
+
default: P(() => [w(e.$slots, "default")]),
|
|
8533
8574
|
_: 3
|
|
8534
8575
|
}, 16);
|
|
8535
8576
|
}
|
|
@@ -8544,7 +8585,7 @@ var Fi = /* @__PURE__ */ Y({
|
|
|
8544
8585
|
//#region src/wave-ui/components/transitions/w-transition-scale-fade.vue?vue&type=template&lang.js
|
|
8545
8586
|
function Ii(e, t, n, i, a, s) {
|
|
8546
8587
|
return b(), o(r, h({ name: "scale-fade" }, e.$props), {
|
|
8547
|
-
default:
|
|
8588
|
+
default: P(() => [w(e.$slots, "default")]),
|
|
8548
8589
|
_: 3
|
|
8549
8590
|
}, 16);
|
|
8550
8591
|
}
|
|
@@ -8559,7 +8600,7 @@ var Li = /* @__PURE__ */ Y({
|
|
|
8559
8600
|
//#region src/wave-ui/components/transitions/w-transition-slide.vue?vue&type=template&lang.js
|
|
8560
8601
|
function Ri(e, t, n, i, a, s) {
|
|
8561
8602
|
return b(), o(r, h({ name: s.transitionName }, e.$props), {
|
|
8562
|
-
default:
|
|
8603
|
+
default: P(() => [w(e.$slots, "default")]),
|
|
8563
8604
|
_: 3
|
|
8564
8605
|
}, 16, ["name"]);
|
|
8565
8606
|
}
|
|
@@ -8586,7 +8627,7 @@ var zi = /* @__PURE__ */ Y({
|
|
|
8586
8627
|
//#region src/wave-ui/components/transitions/w-transition-slide-fade.vue?vue&type=template&lang.js
|
|
8587
8628
|
function Bi(e, t, n, i, a, s) {
|
|
8588
8629
|
return b(), o(r, h({ name: s.transitionName }, e.$props), {
|
|
8589
|
-
default:
|
|
8630
|
+
default: P(() => [w(e.$slots, "default")]),
|
|
8590
8631
|
_: 3
|
|
8591
8632
|
}, 16, ["name"]);
|
|
8592
8633
|
}
|
|
@@ -8613,7 +8654,7 @@ var Vi = /* @__PURE__ */ Y({
|
|
|
8613
8654
|
//#region src/wave-ui/components/transitions/w-transition-twist.vue?vue&type=template&lang.js
|
|
8614
8655
|
function Hi(e, t, n, i, a, s) {
|
|
8615
8656
|
return b(), o(r, h({ name: "twist" }, e.$props), {
|
|
8616
|
-
default:
|
|
8657
|
+
default: P(() => [w(e.$slots, "default")]),
|
|
8617
8658
|
_: 3
|
|
8618
8659
|
}, 16);
|
|
8619
8660
|
}
|
|
@@ -8628,19 +8669,19 @@ var Ui = /* @__PURE__ */ Y({
|
|
|
8628
8669
|
class: "ml1"
|
|
8629
8670
|
};
|
|
8630
8671
|
function Ki(t, n, r, i, a, u) {
|
|
8631
|
-
let f =
|
|
8632
|
-
return b(), c("ul", { class: g(["w-tree", u.classes]) }, [(b(!0), c(e, null,
|
|
8672
|
+
let f = T("w-button"), p = T("w-icon"), m = T("w-tree", !0);
|
|
8673
|
+
return b(), c("ul", { class: g(["w-tree", u.classes]) }, [(b(!0), c(e, null, C(t.currentDepthItems, (e, i) => (b(), c("li", {
|
|
8633
8674
|
class: g(["w-tree__item", u.itemClasses(e)]),
|
|
8634
8675
|
key: i
|
|
8635
|
-
}, [(b(), o(
|
|
8676
|
+
}, [(b(), o(D(u.getTreeItemComponent(e)), h({ class: "w-tree__item-label" }, { ref_for: !0 }, e.route && { [!t.$router || u.hasExternalLink(e) ? "href" : "to"]: e.route }, {
|
|
8636
8677
|
onClick: (t) => !r.disabled && !e.disabled && u.onLabelClick(e, t),
|
|
8637
8678
|
onKeydown: (t) => !r.disabled && !e.disabled && u.onLabelKeydown(e, t),
|
|
8638
8679
|
tabindex: u.getTreeItemTabindex(e)
|
|
8639
8680
|
}), {
|
|
8640
|
-
default:
|
|
8681
|
+
default: P(() => [(e.children || e.branch) && (r.expandOpenIcon && e.open || r.expandIcon) && !(r.unexpandableEmpty && !e.children) ? (b(), o(f, {
|
|
8641
8682
|
key: 0,
|
|
8642
8683
|
class: "w-tree__item-expand",
|
|
8643
|
-
onClick:
|
|
8684
|
+
onClick: L((t) => !r.disabled && !e.disabled && u.onLabelClick(e, t), ["stop"]),
|
|
8644
8685
|
color: "inherit",
|
|
8645
8686
|
icon: e.open && r.expandOpenIcon || r.expandIcon,
|
|
8646
8687
|
"icon-props": { rotate90a: !e.open },
|
|
@@ -8653,7 +8694,7 @@ function Ki(t, n, r, i, a, u) {
|
|
|
8653
8694
|
"icon",
|
|
8654
8695
|
"icon-props",
|
|
8655
8696
|
"disabled"
|
|
8656
|
-
])) : s("", !0),
|
|
8697
|
+
])) : s("", !0), w(t.$slots, "item", {
|
|
8657
8698
|
item: e.originalItem,
|
|
8658
8699
|
depth: r.depth,
|
|
8659
8700
|
path: e.path,
|
|
@@ -8664,23 +8705,23 @@ function Ki(t, n, r, i, a, u) {
|
|
|
8664
8705
|
class: "w-tree__item-icon",
|
|
8665
8706
|
color: e.originalItem[r.itemIconColorKey] || r.iconColor
|
|
8666
8707
|
}, {
|
|
8667
|
-
default:
|
|
8708
|
+
default: P(() => [d(O(u.itemIcon(e)), 1)]),
|
|
8668
8709
|
_: 2
|
|
8669
8710
|
}, 1032, ["color"])) : s("", !0),
|
|
8670
8711
|
l("span", { innerHTML: e.label }, null, 8, Wi),
|
|
8671
|
-
r.counts && (e.children || e.branch) ? (b(), c("span", Gi, "(" +
|
|
8712
|
+
r.counts && (e.children || e.branch) ? (b(), c("span", Gi, "(" + O(e.originalItem.children?.length || 0) + ")", 1)) : s("", !0)
|
|
8672
8713
|
])]),
|
|
8673
8714
|
_: 2
|
|
8674
8715
|
}, 1040, [
|
|
8675
8716
|
"onClick",
|
|
8676
8717
|
"onKeydown",
|
|
8677
8718
|
"tabindex"
|
|
8678
|
-
])), (b(), o(
|
|
8719
|
+
])), (b(), o(D(r.noTransition ? "div" : "w-transition-expand"), {
|
|
8679
8720
|
y: !r.noTransition || null,
|
|
8680
8721
|
onAfterEnter: (n) => t.$emit("open", u.emitPayload(e)),
|
|
8681
8722
|
onAfterLeave: (n) => t.$emit("close", u.emitPayload(e))
|
|
8682
8723
|
}, {
|
|
8683
|
-
default:
|
|
8724
|
+
default: P(() => [e.children && e.open ? (b(), o(m, h({
|
|
8684
8725
|
key: 0,
|
|
8685
8726
|
ref_for: !0
|
|
8686
8727
|
}, t.$props, {
|
|
@@ -8695,7 +8736,7 @@ function Ki(t, n, r, i, a, u) {
|
|
|
8695
8736
|
onSelect: n[5] ||= (e) => t.$emit("select", e),
|
|
8696
8737
|
"onUpdate:modelValue": n[6] ||= (e) => t.$emit("update:model-value", e)
|
|
8697
8738
|
}), {
|
|
8698
|
-
item:
|
|
8739
|
+
item: P(({ item: e, depth: n, path: r, open: i }) => [w(t.$slots, "item", {
|
|
8699
8740
|
item: e,
|
|
8700
8741
|
depth: n,
|
|
8701
8742
|
path: r,
|
|
@@ -8797,7 +8838,7 @@ var qi = /* @__PURE__ */ Y({
|
|
|
8797
8838
|
} },
|
|
8798
8839
|
methods: {
|
|
8799
8840
|
updateCurrentDepthTree(e, t = []) {
|
|
8800
|
-
if (this.currentDepthItems = [], !Array.isArray(e) && typeof e != "object") return
|
|
8841
|
+
if (this.currentDepthItems = [], !Array.isArray(e) && typeof e != "object") return z(`[w-tree] the tree items must be of type array or object, ${typeof e} received.`, e);
|
|
8801
8842
|
Array.isArray(e) || (e = [e]), e.forEach((e, n) => {
|
|
8802
8843
|
let r = {
|
|
8803
8844
|
originalItem: e,
|
|
@@ -8900,44 +8941,44 @@ var qi = /* @__PURE__ */ Y({
|
|
|
8900
8941
|
this.dataPropUnwatch();
|
|
8901
8942
|
}
|
|
8902
8943
|
}, [["render", Ki]]), Ji = /* @__PURE__ */ ne({
|
|
8903
|
-
WAccordion: () =>
|
|
8904
|
-
WAccordionItem: () =>
|
|
8905
|
-
WAlert: () =>
|
|
8906
|
-
WApp: () =>
|
|
8907
|
-
WAutocomplete: () =>
|
|
8908
|
-
WBadge: () =>
|
|
8909
|
-
WBreadcrumbs: () =>
|
|
8910
|
-
WButton: () =>
|
|
8911
|
-
WCard: () =>
|
|
8912
|
-
WCheckbox: () =>
|
|
8913
|
-
WCheckboxes: () =>
|
|
8914
|
-
WConfirm: () =>
|
|
8915
|
-
WDatePicker: () =>
|
|
8916
|
-
WDialog: () =>
|
|
8917
|
-
WDivider: () =>
|
|
8918
|
-
WDrawer: () =>
|
|
8919
|
-
WFlex: () =>
|
|
8920
|
-
WForm: () =>
|
|
8921
|
-
WFormElement: () =>
|
|
8922
|
-
WGrid: () =>
|
|
8923
|
-
WIcon: () =>
|
|
8924
|
-
WImage: () =>
|
|
8925
|
-
WInput: () =>
|
|
8926
|
-
WList: () =>
|
|
8927
|
-
WMenu: () =>
|
|
8928
|
-
WNotification: () =>
|
|
8929
|
-
WOverlay: () =>
|
|
8930
|
-
WParallax: () =>
|
|
8931
|
-
WProgress: () =>
|
|
8932
|
-
WRadio: () =>
|
|
8933
|
-
WRadios: () =>
|
|
8934
|
-
WRating: () =>
|
|
8935
|
-
WScrollable: () =>
|
|
8936
|
-
WSelect: () =>
|
|
8937
|
-
WSlider: () =>
|
|
8938
|
-
WSpinner: () =>
|
|
8939
|
-
WSteps: () =>
|
|
8940
|
-
WSwitch: () =>
|
|
8944
|
+
WAccordion: () => Be,
|
|
8945
|
+
WAccordionItem: () => Re,
|
|
8946
|
+
WAlert: () => Ue,
|
|
8947
|
+
WApp: () => tt,
|
|
8948
|
+
WAutocomplete: () => Qe,
|
|
8949
|
+
WBadge: () => it,
|
|
8950
|
+
WBreadcrumbs: () => st,
|
|
8951
|
+
WButton: () => pt,
|
|
8952
|
+
WCard: () => gt,
|
|
8953
|
+
WCheckbox: () => Ct,
|
|
8954
|
+
WCheckboxes: () => Et,
|
|
8955
|
+
WConfirm: () => Ot,
|
|
8956
|
+
WDatePicker: () => At,
|
|
8957
|
+
WDialog: () => Mt,
|
|
8958
|
+
WDivider: () => Ft,
|
|
8959
|
+
WDrawer: () => zt,
|
|
8960
|
+
WFlex: () => Vt,
|
|
8961
|
+
WForm: () => Wt,
|
|
8962
|
+
WFormElement: () => Kt,
|
|
8963
|
+
WGrid: () => Jt,
|
|
8964
|
+
WIcon: () => Xt,
|
|
8965
|
+
WImage: () => en,
|
|
8966
|
+
WInput: () => dn,
|
|
8967
|
+
WList: () => pn,
|
|
8968
|
+
WMenu: () => vn,
|
|
8969
|
+
WNotification: () => bn,
|
|
8970
|
+
WOverlay: () => Sn,
|
|
8971
|
+
WParallax: () => Tn,
|
|
8972
|
+
WProgress: () => Mn,
|
|
8973
|
+
WRadio: () => zn,
|
|
8974
|
+
WRadios: () => Hn,
|
|
8975
|
+
WRating: () => Kn,
|
|
8976
|
+
WScrollable: () => qn,
|
|
8977
|
+
WSelect: () => $n,
|
|
8978
|
+
WSlider: () => fr,
|
|
8979
|
+
WSpinner: () => hr,
|
|
8980
|
+
WSteps: () => _r,
|
|
8981
|
+
WSwitch: () => wr,
|
|
8941
8982
|
WTable: () => di,
|
|
8942
8983
|
WTabs: () => Fr,
|
|
8943
8984
|
WTag: () => mi,
|