wave-ui 4.1.0 → 4.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/wave-ui.cjs.js +3 -3
- package/dist/wave-ui.esm.js +651 -579
- package/dist/wave-ui.umd.js +3 -3
- package/package.json +1 -1
- package/src/wave-ui/components/w-accordion/item.vue +1 -0
- package/src/wave-ui/components/w-button/index.vue +1 -0
- package/src/wave-ui/components/w-checkboxes.vue +1 -0
- package/src/wave-ui/components/w-list.vue +1 -0
- package/src/wave-ui/components/w-menu.vue +1 -1
- package/src/wave-ui/components/w-radios.vue +1 -0
- package/src/wave-ui/components/w-rating.vue +1 -0
- package/src/wave-ui/components/w-scrollable.vue +1 -1
- package/src/wave-ui/components/w-tabs/index.vue +1 -0
- package/src/wave-ui/components/w-tag.vue +1 -0
- package/src/wave-ui/components/w-tooltip.vue +1 -1
- package/src/wave-ui/components/w-tree.vue +1 -0
- package/src/wave-ui/core.js +5 -2
- package/src/wave-ui/mixins/detachable.js +41 -2
- package/src/wave-ui/mixins/focusable.js +12 -3
- package/src/wave-ui/utils/focus.js +52 -17
package/dist/wave-ui.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
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, nextTick as g, normalizeClass as _, normalizeProps as v, normalizeStyle as y, onBeforeUnmount as ee, onMounted as te, openBlock as b, reactive as x, ref as S, render as C, renderList as w, renderSlot as T, resolveComponent as E, resolveDirective as ne, resolveDynamicComponent as D, toDisplayString as O, toHandlers as k, unref as re, useAttrs as ie, useId 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, nextTick as g, normalizeClass as _, normalizeProps as v, normalizeStyle as y, onBeforeUnmount as ee, onMounted as te, openBlock as b, reactive as x, ref as S, render as C, renderList as w, renderSlot as T, resolveComponent as E, resolveDirective as ne, resolveDynamicComponent as D, toDisplayString as O, toHandlers as k, unref as re, useAttrs as ie, useId as A, vModelDynamic as ae, vModelText as j, vShow as oe, watch as se, withCtx as M, withDirectives as N, withKeys as P, withModifiers as F } from "vue";
|
|
2
2
|
//#region \0rolldown/runtime.js
|
|
3
3
|
var ce = Object.defineProperty, I = (e, t) => {
|
|
4
4
|
let n = {};
|
|
@@ -1176,21 +1176,21 @@ var xe = [
|
|
|
1176
1176
|
label: "inherit",
|
|
1177
1177
|
color: "inherit"
|
|
1178
1178
|
}
|
|
1179
|
-
],
|
|
1179
|
+
], H = {
|
|
1180
1180
|
cssScope: ".w-app",
|
|
1181
1181
|
baseIncrement: 4
|
|
1182
|
-
},
|
|
1182
|
+
}, U = {
|
|
1183
1183
|
keys: [],
|
|
1184
1184
|
values: []
|
|
1185
|
-
},
|
|
1185
|
+
}, Se = null, Ce = (e) => {
|
|
1186
1186
|
let t = "";
|
|
1187
1187
|
return e.forEach(({ label: e, color: n, shades: r = [] }) => {
|
|
1188
1188
|
t += `--w-${e}-color: ${n};`, r.forEach((e) => {
|
|
1189
1189
|
t += `--w-${e.label}-color: ${e.color};`;
|
|
1190
1190
|
});
|
|
1191
1191
|
}), `:root{${t}}`;
|
|
1192
|
-
},
|
|
1193
|
-
let n = "", r = "", { info: i, warning: a, success: o, error: s, shades: c, ...l } = e, { cssScope: u } =
|
|
1192
|
+
}, we = (e, t) => {
|
|
1193
|
+
let n = "", r = "", { info: i, warning: a, success: o, error: s, shades: c, ...l } = e, { cssScope: u } = H;
|
|
1194
1194
|
for (let e in l) n += `${u} .${e}--bg{background-color:var(--w-${e}-color)}${u} .${e}{color:var(--w-${e}-color)}`;
|
|
1195
1195
|
for (let e in c) {
|
|
1196
1196
|
let r = t ? `var(--w-${e}-color)` : c[e];
|
|
@@ -1206,8 +1206,8 @@ var xe = [
|
|
|
1206
1206
|
for (let e in d) r += `--w-${e}-color: ${d[e]?.color ?? d[e]};`;
|
|
1207
1207
|
if (t) for (let e in c) r += `--w-${e}-color: ${c[e]};`;
|
|
1208
1208
|
return `:root{${r}}${n}`;
|
|
1209
|
-
},
|
|
1210
|
-
let n = "", { cssScope: r } =
|
|
1209
|
+
}, Te = (e, t) => {
|
|
1210
|
+
let n = "", { cssScope: r } = H;
|
|
1211
1211
|
return e.forEach(({ min: e, label: i }) => {
|
|
1212
1212
|
if (i === "xs") for (let e = 0; e < t; e++) n += `${r} .${i}${t - e}{width:${parseFloat(((t - e) * 100 / t).toFixed(4))}%;}`;
|
|
1213
1213
|
else {
|
|
@@ -1216,8 +1216,8 @@ var xe = [
|
|
|
1216
1216
|
n += "}";
|
|
1217
1217
|
}
|
|
1218
1218
|
}), n;
|
|
1219
|
-
},
|
|
1220
|
-
let t = "", { cssScope: n } =
|
|
1219
|
+
}, Ee = (e) => {
|
|
1220
|
+
let t = "", { cssScope: n } = H, r = /* @__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("."), i = Array(12).fill();
|
|
1221
1221
|
return e.forEach(({ label: e, min: a }) => {
|
|
1222
1222
|
e !== "xs" && (t += `@media(min-width:${a}px){` + r.map((t) => `${n} .${e}u-${t}`).join("") + i.map((t, n) => `.w-grid.${e}u-columns${n + 1}{grid-template-columns:repeat(${n + 1},1fr);}`).join("") + i.map((t, n) => `.w-flex.${e}u-gap${n + 1},.w-grid.${e}u-gap${n + 1}{gap:calc(${n + 1} * var(--w-base-increment));}`).join("") + `.w-flex.${e}u-gap0,.w-flex.${e}u-gap0{gap:0}}`);
|
|
1223
1223
|
}), e.forEach(({ label: e, min: a, max: o }) => {
|
|
@@ -1225,11 +1225,11 @@ var xe = [
|
|
|
1225
1225
|
}), e.forEach(({ label: e, max: a }) => {
|
|
1226
1226
|
e !== "xl" && (t += `@media (max-width:${a}px){` + r.map((t) => `${n} .${e}d-${t}`).join("") + i.map((t, n) => `.w-grid.${e}d-columns${n + 1}{grid-template-columns:repeat(${n + 1},1fr);}`).join("") + i.map((t, n) => `.w-flex.${e}d-gap${n + 1},.w-grid.${e}d-gap${n + 1}{gap:calc(${n + 1} * var(--w-base-increment));}`).join("") + `.w-flex.${e}d-gap0,.w-flex.${e}d-gap0{gap:0}}`);
|
|
1227
1227
|
}), t;
|
|
1228
|
-
},
|
|
1229
|
-
let t = window.innerWidth, n =
|
|
1228
|
+
}, W = (e) => {
|
|
1229
|
+
let t = window.innerWidth, n = U.values.slice(0);
|
|
1230
1230
|
n.push(t), n.sort((e, t) => e - t);
|
|
1231
|
-
let r =
|
|
1232
|
-
r !==
|
|
1231
|
+
let r = U.keys[n.indexOf(t)] || "xl";
|
|
1232
|
+
r !== Se && (Se = r, e.breakpoint = {
|
|
1233
1233
|
name: r,
|
|
1234
1234
|
xs: r === "xs",
|
|
1235
1235
|
sm: r === "sm",
|
|
@@ -1238,14 +1238,14 @@ var xe = [
|
|
|
1238
1238
|
xl: r === "xl",
|
|
1239
1239
|
width: t
|
|
1240
1240
|
}), e.breakpoint.width = window.innerWidth;
|
|
1241
|
-
},
|
|
1241
|
+
}, G = (e) => {
|
|
1242
1242
|
let { config: t } = e;
|
|
1243
|
-
if (
|
|
1243
|
+
if (U = {
|
|
1244
1244
|
keys: Object.keys(t.breakpoints),
|
|
1245
1245
|
values: Object.values(t.breakpoints)
|
|
1246
1246
|
}, !document.getElementById("wave-ui-styles")) {
|
|
1247
1247
|
let e = document.createElement("style");
|
|
1248
|
-
e.id = "wave-ui-styles", e.innerHTML =
|
|
1248
|
+
e.id = "wave-ui-styles", e.innerHTML = K(t);
|
|
1249
1249
|
let n = document.head.querySelectorAll("style,link[rel=\"stylesheet\"]");
|
|
1250
1250
|
if (t.css.prependCss) {
|
|
1251
1251
|
let t = n[0];
|
|
@@ -1255,21 +1255,21 @@ var xe = [
|
|
|
1255
1255
|
t ? t.after(e) : document.head.appendChild(e);
|
|
1256
1256
|
}
|
|
1257
1257
|
}
|
|
1258
|
-
|
|
1259
|
-
},
|
|
1258
|
+
W(e), window.addEventListener("resize", () => W(e));
|
|
1259
|
+
}, De = (e, t, n) => {
|
|
1260
1260
|
if (!document.getElementById("wave-ui-palette")) {
|
|
1261
1261
|
let e = document.createElement("style");
|
|
1262
|
-
e.id = "wave-ui-palette", e.innerHTML =
|
|
1262
|
+
e.id = "wave-ui-palette", e.innerHTML = Ce(t);
|
|
1263
1263
|
let n = document.head.querySelectorAll("style,link[rel=\"stylesheet\"]")[0];
|
|
1264
1264
|
n ? n.before(e) : document.head.appendChild(e);
|
|
1265
1265
|
}
|
|
1266
1266
|
if (!document.getElementById("wave-ui-colors")) {
|
|
1267
1267
|
let t = document.createElement("style");
|
|
1268
|
-
t.id = "wave-ui-colors", t.innerHTML =
|
|
1268
|
+
t.id = "wave-ui-colors", t.innerHTML = we(e, n);
|
|
1269
1269
|
let r = document.head.querySelectorAll("style,link[rel=\"stylesheet\"]")[0];
|
|
1270
1270
|
r ? r.before(t) : document.head.appendChild(t);
|
|
1271
1271
|
}
|
|
1272
|
-
},
|
|
1272
|
+
}, K = (e) => {
|
|
1273
1273
|
let t = Object.entries(e.breakpoints), n = t.map(([e, n], r) => {
|
|
1274
1274
|
let [, i = 0] = t[r - 1] || [];
|
|
1275
1275
|
return {
|
|
@@ -1278,11 +1278,11 @@ var xe = [
|
|
|
1278
1278
|
max: n
|
|
1279
1279
|
};
|
|
1280
1280
|
}), r = getComputedStyle(document.documentElement);
|
|
1281
|
-
|
|
1281
|
+
H.cssScope = (r.getPropertyValue("--w-css-scope") || ".w-app").trim() || ".w-app", H.baseIncrement = parseInt(r.getPropertyValue("--w-base-increment"), 10);
|
|
1282
1282
|
let i = "";
|
|
1283
|
-
return i +=
|
|
1284
|
-
},
|
|
1285
|
-
function
|
|
1283
|
+
return i += Te(n, e.css.grid), e.css.breakpointLayoutClasses && (i += Ee(n)), i;
|
|
1284
|
+
}, Oe = ["innerHTML"];
|
|
1285
|
+
function ke(t, r, a, u, d, p) {
|
|
1286
1286
|
let m = E("w-alert");
|
|
1287
1287
|
return b(), o(n, { to: ".w-app" }, [f(i, {
|
|
1288
1288
|
class: _(["w-notification-manager", { "w-notification-manager--left": p.conf.align === "left" }]),
|
|
@@ -1297,7 +1297,7 @@ function Ae(t, r, a, u, d, p) {
|
|
|
1297
1297
|
"onUpdate:modelValue": (e) => t._value = e,
|
|
1298
1298
|
onClose: t.dismiss
|
|
1299
1299
|
}, { ref_for: !0 }, p.notifProps(t)), {
|
|
1300
|
-
default: M(() => [l("div", { innerHTML: t.message }, null, 8,
|
|
1300
|
+
default: M(() => [l("div", { innerHTML: t.message }, null, 8, Oe)]),
|
|
1301
1301
|
_: 2
|
|
1302
1302
|
}, 1040, [
|
|
1303
1303
|
"modelValue",
|
|
@@ -1309,11 +1309,11 @@ function Ae(t, r, a, u, d, p) {
|
|
|
1309
1309
|
}
|
|
1310
1310
|
//#endregion
|
|
1311
1311
|
//#region \0plugin-vue:export-helper
|
|
1312
|
-
var
|
|
1312
|
+
var q = (e, t) => {
|
|
1313
1313
|
let n = e.__vccOpts || e;
|
|
1314
1314
|
for (let [e, r] of t) n[e] = r;
|
|
1315
1315
|
return n;
|
|
1316
|
-
},
|
|
1316
|
+
}, Ae = /* @__PURE__ */ q({
|
|
1317
1317
|
name: "w-notification-manager",
|
|
1318
1318
|
computed: {
|
|
1319
1319
|
conf() {
|
|
@@ -1330,7 +1330,7 @@ var K = (e, t) => {
|
|
|
1330
1330
|
let { _value: t, _uid: n, message: r, timeout: i, ...a } = e;
|
|
1331
1331
|
return a.dismiss &&= !0, a;
|
|
1332
1332
|
} }
|
|
1333
|
-
}, [["render",
|
|
1333
|
+
}, [["render", ke]]), je = class e {
|
|
1334
1334
|
static #e;
|
|
1335
1335
|
notifications;
|
|
1336
1336
|
_uid;
|
|
@@ -1368,15 +1368,15 @@ var K = (e, t) => {
|
|
|
1368
1368
|
dismiss(e) {
|
|
1369
1369
|
this.notifications = this.notifications.filter((t) => t._uid !== e);
|
|
1370
1370
|
}
|
|
1371
|
-
},
|
|
1371
|
+
}, Me = (e) => {
|
|
1372
1372
|
let t = document.createElement("div");
|
|
1373
1373
|
document.body.appendChild(t);
|
|
1374
|
-
let n = p(
|
|
1374
|
+
let n = p(Ae);
|
|
1375
1375
|
n.appContext = e._context, C(n, t), t.remove();
|
|
1376
1376
|
};
|
|
1377
1377
|
//#endregion
|
|
1378
1378
|
//#region src/wave-ui/utils/ripple.js
|
|
1379
|
-
function
|
|
1379
|
+
function Ne(e, t, n = {}) {
|
|
1380
1380
|
if (typeof window > "u" || typeof document > "u" || !e?.ownerDocument || n.disabled || window.matchMedia?.("(prefers-reduced-motion: reduce)")?.matches) return;
|
|
1381
1381
|
let r = typeof t.clientX == "number" ? t.clientX : null, i = typeof t.clientY == "number" ? t.clientY : null;
|
|
1382
1382
|
if ((r == null || i == null) && t.touches?.length && (r = t.touches[0].clientX, i = t.touches[0].clientY), r == null || i == null) return;
|
|
@@ -1391,31 +1391,31 @@ function Pe(e, t, n = {}) {
|
|
|
1391
1391
|
d.parentNode === e && d.remove();
|
|
1392
1392
|
}, 600);
|
|
1393
1393
|
}
|
|
1394
|
-
function
|
|
1394
|
+
function Pe(e) {
|
|
1395
1395
|
let t = e?.$waveui;
|
|
1396
1396
|
return t && typeof t == "object" ? t : { config: { ripple: !0 } };
|
|
1397
1397
|
}
|
|
1398
|
-
function
|
|
1398
|
+
function Fe(e, t) {
|
|
1399
1399
|
return typeof e == "boolean" ? e : t?.config?.ripple !== !1;
|
|
1400
1400
|
}
|
|
1401
1401
|
//#endregion
|
|
1402
1402
|
//#region src/wave-ui/utils/wave-ripple-directive.js
|
|
1403
|
-
function
|
|
1403
|
+
function Ie(e) {
|
|
1404
1404
|
let t = e.value;
|
|
1405
1405
|
return !!(t === !1 || t && typeof t == "object" && t.disabled);
|
|
1406
1406
|
}
|
|
1407
|
-
function
|
|
1408
|
-
if (
|
|
1409
|
-
let n =
|
|
1410
|
-
return e.value === !0 ?
|
|
1407
|
+
function Le(e, t) {
|
|
1408
|
+
if (Ie(e)) return !1;
|
|
1409
|
+
let n = Pe(t);
|
|
1410
|
+
return e.value === !0 ? Fe(!0, n) : Fe(void 0, n);
|
|
1411
1411
|
}
|
|
1412
|
-
var
|
|
1412
|
+
var Re = {
|
|
1413
1413
|
mounted(e, t) {
|
|
1414
1414
|
e.classList.add("w-ripple"), e.__waveRippleLastBinding = t;
|
|
1415
1415
|
let n = (t) => {
|
|
1416
1416
|
if (typeof t.button == "number" && t.button !== 0) return;
|
|
1417
1417
|
let n = e.__waveRippleLastBinding;
|
|
1418
|
-
|
|
1418
|
+
Le(n, n?.instance) && Ne(e, t);
|
|
1419
1419
|
};
|
|
1420
1420
|
e.__waveRippleHandler = n, e.addEventListener("pointerdown", n);
|
|
1421
1421
|
},
|
|
@@ -1425,43 +1425,62 @@ var ze = {
|
|
|
1425
1425
|
unmounted(e) {
|
|
1426
1426
|
e.removeEventListener("pointerdown", e.__waveRippleHandler), delete e.__waveRippleHandler, delete e.__waveRippleLastBinding;
|
|
1427
1427
|
}
|
|
1428
|
-
};
|
|
1429
|
-
//#endregion
|
|
1430
|
-
//#region src/wave-ui/utils/focus.js
|
|
1431
|
-
function q(e) {
|
|
1432
|
-
e?.focus?.();
|
|
1433
|
-
}
|
|
1434
|
-
function J(e) {
|
|
1435
|
-
return !(e.isDisabled || e.isReadonly);
|
|
1436
|
-
}
|
|
1428
|
+
}, ze = new Set(["w-menu", "w-tooltip"]);
|
|
1437
1429
|
function Be(e, t) {
|
|
1438
|
-
let n = e?.
|
|
1430
|
+
let n = e?.__vueParentComponent;
|
|
1439
1431
|
for (; n;) {
|
|
1440
|
-
|
|
1441
|
-
if (typeof e == "function") return e;
|
|
1432
|
+
if (t(n)) return n;
|
|
1442
1433
|
n = n.parent;
|
|
1443
1434
|
}
|
|
1444
1435
|
return null;
|
|
1445
1436
|
}
|
|
1446
|
-
function Ve(e
|
|
1447
|
-
|
|
1437
|
+
function Ve(e) {
|
|
1438
|
+
return e?.type?.name ?? e?.proxy?.$options?.name;
|
|
1439
|
+
}
|
|
1440
|
+
function He(e) {
|
|
1441
|
+
return !!(e?.type?.focusable || e?.proxy?.$options?.focusable);
|
|
1442
|
+
}
|
|
1443
|
+
function Ue(e) {
|
|
1444
|
+
return ze.has(Ve(e));
|
|
1445
|
+
}
|
|
1446
|
+
function J(e) {
|
|
1447
|
+
e?.focus?.();
|
|
1448
|
+
}
|
|
1449
|
+
function We(e) {
|
|
1450
|
+
return !(e.isDisabled || e.isReadonly);
|
|
1451
|
+
}
|
|
1452
|
+
function Ge(e) {
|
|
1453
|
+
return Be(e, He);
|
|
1454
|
+
}
|
|
1455
|
+
function Ke(e) {
|
|
1456
|
+
return Be(e, Ue)?.proxy ?? null;
|
|
1457
|
+
}
|
|
1458
|
+
function qe(e) {
|
|
1459
|
+
let t = Ge(e), n = t?.exposed?.focus ?? t?.proxy?.focus;
|
|
1448
1460
|
if (typeof n == "function") {
|
|
1449
1461
|
n();
|
|
1450
1462
|
return;
|
|
1451
1463
|
}
|
|
1452
|
-
|
|
1464
|
+
J(e);
|
|
1465
|
+
}
|
|
1466
|
+
function Je(e) {
|
|
1467
|
+
g(() => qe(e));
|
|
1453
1468
|
}
|
|
1454
|
-
function
|
|
1455
|
-
|
|
1469
|
+
function Ye(e) {
|
|
1470
|
+
let t = Ke(e);
|
|
1471
|
+
return t ? (e.__waveUiDetachable = t, t.registerAutofocus({ el: e }), !0) : !1;
|
|
1472
|
+
}
|
|
1473
|
+
function Xe(e) {
|
|
1474
|
+
e.__waveUiDetachable?.unregisterAutofocus(e), delete e.__waveUiDetachable;
|
|
1456
1475
|
}
|
|
1457
1476
|
//#endregion
|
|
1458
1477
|
//#region src/wave-ui/core.js
|
|
1459
|
-
var
|
|
1478
|
+
var Ze = !1, Qe = (e) => {
|
|
1460
1479
|
let t = window.matchMedia("(prefers-color-scheme: dark)");
|
|
1461
1480
|
e.preferredTheme = t.matches ? "dark" : "light", e.switchTheme(e.preferredTheme), t.addEventListener("change", (t) => {
|
|
1462
1481
|
e.preferredTheme = t.matches ? "dark" : "light", e.switchTheme(e.preferredTheme);
|
|
1463
1482
|
});
|
|
1464
|
-
},
|
|
1483
|
+
}, $e = (e, t) => {
|
|
1465
1484
|
for (let n in t) if (e.props?.[n]) e.props[n].default = t[n];
|
|
1466
1485
|
else {
|
|
1467
1486
|
let r = !1;
|
|
@@ -1473,7 +1492,7 @@ var Ue = !1, We = (e) => {
|
|
|
1473
1492
|
r || R(`Attempting to set a preset on a prop that doesn't exist: \`${e.name}.${n}\`.`);
|
|
1474
1493
|
}
|
|
1475
1494
|
}
|
|
1476
|
-
},
|
|
1495
|
+
}, et = class e {
|
|
1477
1496
|
$waveui = {
|
|
1478
1497
|
breakpoint: {
|
|
1479
1498
|
name: "",
|
|
@@ -1495,7 +1514,7 @@ var Ue = !1, We = (e) => {
|
|
|
1495
1514
|
switchTheme(e) {
|
|
1496
1515
|
this.theme = e, document.documentElement.setAttribute("data-theme", e), document.head.querySelector("#wave-ui-colors")?.remove?.();
|
|
1497
1516
|
let t = this.config.colors[this.theme];
|
|
1498
|
-
|
|
1517
|
+
De(t, xe, this.config.css.colorShadeCssVariables), this.colors = de(t, xe);
|
|
1499
1518
|
},
|
|
1500
1519
|
setAppClasses(...e) {
|
|
1501
1520
|
let t = document.querySelector(".w-app");
|
|
@@ -1503,32 +1522,37 @@ var Ue = !1, We = (e) => {
|
|
|
1503
1522
|
}
|
|
1504
1523
|
};
|
|
1505
1524
|
static install(t, n = {}) {
|
|
1506
|
-
t.directive("focus", {
|
|
1525
|
+
t.directive("focus", {
|
|
1526
|
+
mounted: (e) => {
|
|
1527
|
+
Ye(e) || Je(e);
|
|
1528
|
+
},
|
|
1529
|
+
unmounted: (e) => Xe(e)
|
|
1530
|
+
}), t.directive("scroll", { mounted: (e, t) => {
|
|
1507
1531
|
let n = (r) => {
|
|
1508
1532
|
t.value(r, e) && window.removeEventListener("scroll", n);
|
|
1509
1533
|
};
|
|
1510
1534
|
window.addEventListener("scroll", n);
|
|
1511
|
-
} }), t.directive("waveRipple",
|
|
1535
|
+
} }), t.directive("waveRipple", Re);
|
|
1512
1536
|
let { components: r = {} } = n || {};
|
|
1513
1537
|
for (let e in r) {
|
|
1514
1538
|
let i = r[e];
|
|
1515
|
-
n.presets?.[i.name] &&
|
|
1539
|
+
n.presets?.[i.name] && $e(i, n.presets[i.name]), t.component(i.name, i);
|
|
1516
1540
|
}
|
|
1517
1541
|
t.mixin({ beforeMount() {
|
|
1518
|
-
if (!
|
|
1519
|
-
|
|
1542
|
+
if (!Ze) {
|
|
1543
|
+
Ze = !0;
|
|
1520
1544
|
let e = m("$waveui"), { config: n } = e, r = document.querySelector(n.on) || document.body;
|
|
1521
1545
|
if (r.classList.add("w-app"), n.css.appClasses) {
|
|
1522
1546
|
let e = typeof n.css.appClasses == "string" ? n.css.appClasses.split(" ").filter((e) => e) : n.css.appClasses;
|
|
1523
1547
|
e.length && r.classList.add(...e);
|
|
1524
1548
|
}
|
|
1525
|
-
n.theme === "auto" ?
|
|
1549
|
+
n.theme === "auto" ? Qe(e) : e.switchTheme(n.theme, !0), G(e), Me(t), t._context.mixins.find((e) => e.mounted &&= void 0);
|
|
1526
1550
|
}
|
|
1527
1551
|
} }), new e(t, n);
|
|
1528
1552
|
}
|
|
1529
1553
|
constructor(e, t = {}) {
|
|
1530
1554
|
if (e.config.globalProperties.$waveui) return;
|
|
1531
|
-
if (this.$waveui._notificationManager = new
|
|
1555
|
+
if (this.$waveui._notificationManager = new je(), t.theme ||= "light", t.colors) {
|
|
1532
1556
|
let e = { ...t.colors };
|
|
1533
1557
|
t.colors.light || (t.colors.light = e), t.colors.dark || (t.colors.dark = e), t.colors = {
|
|
1534
1558
|
light: t.colors.light,
|
|
@@ -1550,7 +1574,7 @@ var Ue = !1, We = (e) => {
|
|
|
1550
1574
|
default: void 0
|
|
1551
1575
|
} },
|
|
1552
1576
|
computed: { rippleActive() {
|
|
1553
|
-
return
|
|
1577
|
+
return Fe(this.noRipple ? !1 : void 0, this.$waveui);
|
|
1554
1578
|
} },
|
|
1555
1579
|
methods: { onRipple(e, t, n) {
|
|
1556
1580
|
if (!this.rippleActive || !e) return;
|
|
@@ -1559,20 +1583,20 @@ var Ue = !1, We = (e) => {
|
|
|
1559
1583
|
let t = e.target;
|
|
1560
1584
|
r = (t?.nodeType === 1 ? t : t?.parentElement)?.closest?.(".w-ripple") ?? null;
|
|
1561
1585
|
}
|
|
1562
|
-
!r?.getBoundingClientRect && this.$el instanceof Element && this.$el.classList?.contains("w-ripple") && (r = this.$el), r?.getBoundingClientRect &&
|
|
1586
|
+
!r?.getBoundingClientRect && this.$el instanceof Element && this.$el.classList?.contains("w-ripple") && (r = this.$el), r?.getBoundingClientRect && Ne(r, e, n);
|
|
1563
1587
|
} }
|
|
1564
|
-
},
|
|
1565
|
-
function
|
|
1566
|
-
return b(), c("div",
|
|
1588
|
+
}, tt = { class: "w-accordion__item-content" };
|
|
1589
|
+
function nt(e, t, n, r, i, a) {
|
|
1590
|
+
return b(), c("div", tt, [T(e.$slots, "default")]);
|
|
1567
1591
|
}
|
|
1568
|
-
var
|
|
1592
|
+
var rt = /* @__PURE__ */ q({
|
|
1569
1593
|
name: "accordion-content",
|
|
1570
1594
|
props: { item: {
|
|
1571
1595
|
type: Object,
|
|
1572
1596
|
default: () => ({})
|
|
1573
1597
|
} }
|
|
1574
|
-
}, [["render",
|
|
1575
|
-
function
|
|
1598
|
+
}, [["render", nt]]), it = ["aria-expanded"], at = ["tabindex"], ot = ["innerHTML"], st = ["innerHTML"], ct = ["innerHTML"], lt = ["innerHTML"], ut = ["innerHTML"];
|
|
1599
|
+
function dt(e, n, r, i, a, u) {
|
|
1576
1600
|
let d = E("w-button"), p = E("accordion-content"), m = E("w-transition-expand");
|
|
1577
1601
|
return b(), c("div", {
|
|
1578
1602
|
class: _(["w-accordion__item", u.itemClasses]),
|
|
@@ -1611,7 +1635,7 @@ function rt(e, n, r, i, a, u) {
|
|
|
1611
1635
|
}, () => [l("div", {
|
|
1612
1636
|
class: "grow",
|
|
1613
1637
|
innerHTML: u.accordionItem[u.options.itemTitleKey]
|
|
1614
|
-
}, null, 8,
|
|
1638
|
+
}, null, 8, ot)]),
|
|
1615
1639
|
u.options.expandIcon && u.options.expandIconRight ? (b(), o(d, {
|
|
1616
1640
|
key: 1,
|
|
1617
1641
|
class: _(["w-accordion__expand-icon", {
|
|
@@ -1623,7 +1647,7 @@ function rt(e, n, r, i, a, u) {
|
|
|
1623
1647
|
onKeypress: n[2] ||= F(() => {}, ["stop"]),
|
|
1624
1648
|
onClick: n[3] ||= F((e) => !u.accordionItem._disabled && u.toggleItem(u.accordionItem, e), ["stop"])
|
|
1625
1649
|
}, null, 8, ["icon", "class"])) : s("", !0)
|
|
1626
|
-
], 42,
|
|
1650
|
+
], 42, at), u.options.keepInDom ? (b(), o(m, {
|
|
1627
1651
|
key: 0,
|
|
1628
1652
|
y: "",
|
|
1629
1653
|
onAfterLeave: n[8] ||= (e) => u.onEndOfCollapse(u.accordionItem),
|
|
@@ -1638,12 +1662,12 @@ function rt(e, n, r, i, a, u) {
|
|
|
1638
1662
|
item: u.getOriginalItem(u.accordionItem),
|
|
1639
1663
|
expanded: u.accordionItem._expanded,
|
|
1640
1664
|
index: u.accordionItem._index + 1
|
|
1641
|
-
}, () => [l("div", { innerHTML: u.accordionItem[u.options.itemContentKey] }, null, 8,
|
|
1665
|
+
}, () => [l("div", { innerHTML: u.accordionItem[u.options.itemContentKey] }, null, 8, st)]) : T(e.$slots, "default", {
|
|
1642
1666
|
key: 1,
|
|
1643
1667
|
item: u.getOriginalItem(u.accordionItem),
|
|
1644
1668
|
expanded: u.accordionItem._expanded,
|
|
1645
1669
|
index: u.accordionItem._index + 1
|
|
1646
|
-
}, () => [l("div", { innerHTML: u.accordionItem[u.options.itemContentKey] }, null, 8,
|
|
1670
|
+
}, () => [l("div", { innerHTML: u.accordionItem[u.options.itemContentKey] }, null, 8, ct)])]),
|
|
1647
1671
|
_: 3
|
|
1648
1672
|
}, 8, ["item", "class"]), [[oe, u.accordionItem._expanded]])]),
|
|
1649
1673
|
_: 3
|
|
@@ -1663,25 +1687,26 @@ function rt(e, n, r, i, a, u) {
|
|
|
1663
1687
|
item: u.getOriginalItem(u.accordionItem),
|
|
1664
1688
|
expanded: u.accordionItem._expanded,
|
|
1665
1689
|
index: u.accordionItem._index + 1
|
|
1666
|
-
}, () => [l("div", { innerHTML: u.accordionItem[u.options.itemContentKey] }, null, 8,
|
|
1690
|
+
}, () => [l("div", { innerHTML: u.accordionItem[u.options.itemContentKey] }, null, 8, lt)]) : T(e.$slots, "default", {
|
|
1667
1691
|
key: 1,
|
|
1668
1692
|
item: u.getOriginalItem(u.accordionItem),
|
|
1669
1693
|
expanded: u.accordionItem._expanded,
|
|
1670
1694
|
index: u.accordionItem._index + 1
|
|
1671
|
-
}, () => [l("div", { innerHTML: u.accordionItem[u.options.itemContentKey] }, null, 8,
|
|
1695
|
+
}, () => [l("div", { innerHTML: u.accordionItem[u.options.itemContentKey] }, null, 8, ut)])]),
|
|
1672
1696
|
_: 3
|
|
1673
1697
|
}, 8, ["item", "class"])) : s("", !0)], 1032, ["exclude"]))]),
|
|
1674
1698
|
_: 3
|
|
1675
|
-
}, 8, ["duration"]))], 10,
|
|
1699
|
+
}, 8, ["duration"]))], 10, it);
|
|
1676
1700
|
}
|
|
1677
|
-
var
|
|
1701
|
+
var ft = /* @__PURE__ */ q({
|
|
1678
1702
|
name: "w-accordion-item",
|
|
1703
|
+
focusable: !0,
|
|
1679
1704
|
expose: ["focus"],
|
|
1680
1705
|
mixins: [X],
|
|
1681
1706
|
setup() {
|
|
1682
|
-
return { accordionItemUid:
|
|
1707
|
+
return { accordionItemUid: A() };
|
|
1683
1708
|
},
|
|
1684
|
-
components: { AccordionContent:
|
|
1709
|
+
components: { AccordionContent: rt },
|
|
1685
1710
|
props: {
|
|
1686
1711
|
title: { type: String },
|
|
1687
1712
|
content: { type: String },
|
|
@@ -1713,7 +1738,7 @@ var it = /* @__PURE__ */ K({
|
|
|
1713
1738
|
let t = this.getAccordionNoRipple?.();
|
|
1714
1739
|
e = typeof t == "boolean" ? t : void 0;
|
|
1715
1740
|
}
|
|
1716
|
-
return
|
|
1741
|
+
return Fe(e ? !1 : void 0, this.$waveui);
|
|
1717
1742
|
},
|
|
1718
1743
|
accordionTitleClasses() {
|
|
1719
1744
|
return {
|
|
@@ -1738,7 +1763,7 @@ var it = /* @__PURE__ */ K({
|
|
|
1738
1763
|
},
|
|
1739
1764
|
methods: {
|
|
1740
1765
|
focus() {
|
|
1741
|
-
this.accordionItem._disabled ||
|
|
1766
|
+
this.accordionItem._disabled || J(this.$el.querySelector(".w-accordion__item-title"));
|
|
1742
1767
|
},
|
|
1743
1768
|
onAccordionTitlePointerDown(e) {
|
|
1744
1769
|
this.accordionItem._disabled || e.target.closest?.(".w-accordion__expand-icon") || this.onRipple(e);
|
|
@@ -1760,10 +1785,10 @@ var it = /* @__PURE__ */ K({
|
|
|
1760
1785
|
beforeUnmount() {
|
|
1761
1786
|
this.unregisterItem(this.accordionItemUid);
|
|
1762
1787
|
}
|
|
1763
|
-
}, [["render",
|
|
1788
|
+
}, [["render", dt]]);
|
|
1764
1789
|
//#endregion
|
|
1765
1790
|
//#region src/wave-ui/components/w-accordion/index.vue?vue&type=template&lang.js
|
|
1766
|
-
function
|
|
1791
|
+
function pt(t, n, r, i, a, l) {
|
|
1767
1792
|
let u = E("w-accordion-item");
|
|
1768
1793
|
return b(), c("div", { class: _(["w-accordion", l.accordionClasses]) }, [l.accordionItemsProvided ? T(t.$slots, "default", { key: 0 }) : (r.items || []).length ? (b(!0), c(e, { key: 1 }, w(r.items.length ? r.items : t.accordionItems, (e, r) => (b(), o(u, {
|
|
1769
1794
|
key: r,
|
|
@@ -1805,7 +1830,7 @@ function at(t, n, r, i, a, l) {
|
|
|
1805
1830
|
"disabled"
|
|
1806
1831
|
]))), 128)) : s("", !0)], 2);
|
|
1807
1832
|
}
|
|
1808
|
-
var
|
|
1833
|
+
var mt = /* @__PURE__ */ q({
|
|
1809
1834
|
name: "w-accordion",
|
|
1810
1835
|
mixins: [X],
|
|
1811
1836
|
props: {
|
|
@@ -1873,7 +1898,7 @@ var ot = /* @__PURE__ */ K({
|
|
|
1873
1898
|
default: !1
|
|
1874
1899
|
}
|
|
1875
1900
|
},
|
|
1876
|
-
components: { WAccordionItem:
|
|
1901
|
+
components: { WAccordionItem: ft },
|
|
1877
1902
|
emits: [
|
|
1878
1903
|
"input",
|
|
1879
1904
|
"update:modelValue",
|
|
@@ -1930,7 +1955,7 @@ var ot = /* @__PURE__ */ K({
|
|
|
1930
1955
|
},
|
|
1931
1956
|
methods: {
|
|
1932
1957
|
hasAccordionItemVNodes(t = []) {
|
|
1933
|
-
return t.some((t) => t ? t.type ===
|
|
1958
|
+
return t.some((t) => t ? t.type === ft || t.type?.name === "w-accordion-item" ? !0 : t.type === e && Array.isArray(t.children) ? this.hasAccordionItemVNodes(t.children) : !1 : !1);
|
|
1934
1959
|
},
|
|
1935
1960
|
getAccordionItem(e) {
|
|
1936
1961
|
return this.accordionItemsById[e];
|
|
@@ -1973,8 +1998,8 @@ var ot = /* @__PURE__ */ K({
|
|
|
1973
1998
|
}
|
|
1974
1999
|
e.forEach((e, t) => (this.accordionItems[t] || {})._expanded = e);
|
|
1975
2000
|
} }
|
|
1976
|
-
}, [["render",
|
|
1977
|
-
function
|
|
2001
|
+
}, [["render", pt]]), ht = { class: "w-alert__content" };
|
|
2002
|
+
function gt(t, n, r, i, a, u) {
|
|
1978
2003
|
let f = E("w-icon"), p = E("w-button");
|
|
1979
2004
|
return a.show ? (b(), c("div", {
|
|
1980
2005
|
key: 0,
|
|
@@ -1987,7 +2012,7 @@ function ct(t, n, r, i, a, u) {
|
|
|
1987
2012
|
default: M(() => [d(O(u.type ? u.typeIcon : r.icon), 1)]),
|
|
1988
2013
|
_: 1
|
|
1989
2014
|
})) : s("", !0),
|
|
1990
|
-
l("div",
|
|
2015
|
+
l("div", ht, [T(t.$slots, "default")]),
|
|
1991
2016
|
r.dismiss ? (b(), o(p, {
|
|
1992
2017
|
key: 1,
|
|
1993
2018
|
class: "w-alert__dismiss",
|
|
@@ -2001,7 +2026,7 @@ function ct(t, n, r, i, a, u) {
|
|
|
2001
2026
|
})) : s("", !0)
|
|
2002
2027
|
], 64)) : T(t.$slots, "default", { key: 1 })], 2)) : s("", !0);
|
|
2003
2028
|
}
|
|
2004
|
-
var
|
|
2029
|
+
var _t = /* @__PURE__ */ q({
|
|
2005
2030
|
name: "w-alert",
|
|
2006
2031
|
props: {
|
|
2007
2032
|
modelValue: { default: !0 },
|
|
@@ -2079,11 +2104,11 @@ var lt = /* @__PURE__ */ K({
|
|
|
2079
2104
|
watch: { modelValue(e) {
|
|
2080
2105
|
this.show = e;
|
|
2081
2106
|
} }
|
|
2082
|
-
}, [["render",
|
|
2107
|
+
}, [["render", gt]]);
|
|
2083
2108
|
//#endregion
|
|
2084
2109
|
//#region src/wave-ui/mixins/form-elements.js
|
|
2085
2110
|
function Z() {
|
|
2086
|
-
return { waveUiUseId:
|
|
2111
|
+
return { waveUiUseId: A() };
|
|
2087
2112
|
}
|
|
2088
2113
|
var Q = {
|
|
2089
2114
|
inject: {
|
|
@@ -2131,19 +2156,27 @@ var Q = {
|
|
|
2131
2156
|
methods: { validate() {
|
|
2132
2157
|
this.$refs.formEl.validate(this);
|
|
2133
2158
|
} }
|
|
2134
|
-
}, $ = {
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2159
|
+
}, $ = {
|
|
2160
|
+
focusable: !0,
|
|
2161
|
+
methods: { focus() {
|
|
2162
|
+
if (!We(this)) return;
|
|
2163
|
+
let e = this.$options.focusTargetRef || "input", t = () => {
|
|
2164
|
+
let t = this.$refs[e];
|
|
2165
|
+
return t && J(t), !!t;
|
|
2166
|
+
};
|
|
2167
|
+
t() || this.$nextTick(() => {
|
|
2168
|
+
t() || this.$nextTick(() => t());
|
|
2169
|
+
});
|
|
2170
|
+
} }
|
|
2171
|
+
}, vt = ["for"], yt = ["innerHTML"], bt = ["innerHTML"], xt = [
|
|
2139
2172
|
"id",
|
|
2140
2173
|
"value",
|
|
2141
2174
|
"name",
|
|
2142
2175
|
"disabled",
|
|
2143
2176
|
"readonly",
|
|
2144
2177
|
"tabindex"
|
|
2145
|
-
],
|
|
2146
|
-
function
|
|
2178
|
+
], St = ["for"], Ct = ["innerHTML"], wt = ["innerHTML"], Tt = ["for"];
|
|
2179
|
+
function Et(t, n, r, i, a, u) {
|
|
2147
2180
|
let p = E("w-icon"), m = E("w-button"), g = E("w-list"), v = E("w-menu");
|
|
2148
2181
|
return b(), o(D(t.formRegister ? "w-form-element" : "div"), h({ ref: "formEl" }, t.formRegister && {
|
|
2149
2182
|
validators: t.validators,
|
|
@@ -2165,7 +2198,7 @@ function vt(t, n, r, i, a, u) {
|
|
|
2165
2198
|
key: 0,
|
|
2166
2199
|
class: _(["w-autocomplete__label w-autocomplete__label--left w-form-el-shakable", t.labelClasses]),
|
|
2167
2200
|
for: t.inputId
|
|
2168
|
-
}, [T(t.$slots, "default", {}, () => [d(O(r.label), 1)])], 10,
|
|
2201
|
+
}, [T(t.$slots, "default", {}, () => [d(O(r.label), 1)])], 10, vt)) : s("", !0)], 64)) : s("", !0),
|
|
2169
2202
|
f(v, h({
|
|
2170
2203
|
ref: "menu",
|
|
2171
2204
|
modelValue: t.menuOpen,
|
|
@@ -2201,7 +2234,7 @@ function vt(t, n, r, i, a, u) {
|
|
|
2201
2234
|
item: M(({ item: e }) => [T(t.$slots, "item", {
|
|
2202
2235
|
item: e,
|
|
2203
2236
|
highlighted: t.highlightedItem === e.uid
|
|
2204
|
-
}, () => [l("span", { innerHTML: e[r.itemLabelKey] }, null, 8,
|
|
2237
|
+
}, () => [l("span", { innerHTML: e[r.itemLabelKey] }, null, 8, Ct)])]),
|
|
2205
2238
|
_: 3
|
|
2206
2239
|
}, 8, [
|
|
2207
2240
|
"items",
|
|
@@ -2217,7 +2250,7 @@ function vt(t, n, r, i, a, u) {
|
|
|
2217
2250
|
}, [T(t.$slots, "no-match", {}, () => [l("div", {
|
|
2218
2251
|
class: "caption",
|
|
2219
2252
|
innerHTML: r.noMatch ?? "No match."
|
|
2220
|
-
}, null, 8,
|
|
2253
|
+
}, null, 8, wt)])], 2)),
|
|
2221
2254
|
t.$slots["extra-item"] ? (b(), c("div", {
|
|
2222
2255
|
key: 2,
|
|
2223
2256
|
class: _(["w-autocomplete__extra-item", { highlighted: t.highlightedItem === "extra-item" }]),
|
|
@@ -2244,7 +2277,7 @@ function vt(t, n, r, i, a, u) {
|
|
|
2244
2277
|
}, [T(t.$slots, "selection", {
|
|
2245
2278
|
item: e,
|
|
2246
2279
|
unselect: () => u.unselectItem(n)
|
|
2247
|
-
}, () => [l("span", { innerHTML: e[r.itemLabelKey] }, null, 8,
|
|
2280
|
+
}, () => [l("span", { innerHTML: e[r.itemLabelKey] }, null, 8, yt), f(m, {
|
|
2248
2281
|
onClick: F((e) => u.unselectItem(n), ["stop"]),
|
|
2249
2282
|
icon: "wi-cross",
|
|
2250
2283
|
xs: "",
|
|
@@ -2255,7 +2288,7 @@ function vt(t, n, r, i, a, u) {
|
|
|
2255
2288
|
key: 1,
|
|
2256
2289
|
class: "w-autocomplete__placeholder",
|
|
2257
2290
|
innerHTML: r.placeholder
|
|
2258
|
-
}, null, 8,
|
|
2291
|
+
}, null, 8, bt)) : s("", !0),
|
|
2259
2292
|
l("input", h({
|
|
2260
2293
|
class: "w-autocomplete__input",
|
|
2261
2294
|
ref: "input",
|
|
@@ -2265,12 +2298,12 @@ function vt(t, n, r, i, a, u) {
|
|
|
2265
2298
|
disabled: t.isDisabled || null,
|
|
2266
2299
|
readonly: t.isReadonly || null,
|
|
2267
2300
|
tabindex: t.tabindex || null
|
|
2268
|
-
}, k(u.inputEventListeners, !0), u.inputAttrs), null, 16,
|
|
2301
|
+
}, k(u.inputEventListeners, !0), u.inputAttrs), null, 16, xt),
|
|
2269
2302
|
r.labelPosition === "inside" && u.showLabelInside ? (b(), c(e, { key: 2 }, [t.$slots.default || r.label ? (b(), c("label", {
|
|
2270
2303
|
key: 0,
|
|
2271
2304
|
class: _(["w-autocomplete__label w-autocomplete__label--inside w-form-el-shakable", t.labelClasses]),
|
|
2272
2305
|
for: t.inputId
|
|
2273
|
-
}, [T(t.$slots, "default", {}, () => [d(O(r.label), 1)])], 10,
|
|
2306
|
+
}, [T(t.$slots, "default", {}, () => [d(O(r.label), 1)])], 10, St)) : s("", !0)], 64)) : s("", !0),
|
|
2274
2307
|
T(t.$slots, "icon-right", {}, () => [r.innerIconRight ? (b(), o(p, {
|
|
2275
2308
|
key: 0,
|
|
2276
2309
|
class: "w-autocomplete__icon w-autocomplete__icon--inner-right",
|
|
@@ -2293,7 +2326,7 @@ function vt(t, n, r, i, a, u) {
|
|
|
2293
2326
|
key: 0,
|
|
2294
2327
|
class: _(["w-autocomplete__label w-autocomplete__label--right w-form-el-shakable", t.labelClasses]),
|
|
2295
2328
|
for: t.inputId
|
|
2296
|
-
}, [T(t.$slots, "default", {}, () => [d(O(r.label), 1)])], 10,
|
|
2329
|
+
}, [T(t.$slots, "default", {}, () => [d(O(r.label), 1)])], 10, Tt)) : s("", !0)], 64)) : s("", !0)
|
|
2297
2330
|
]),
|
|
2298
2331
|
_: 3
|
|
2299
2332
|
}, 16, [
|
|
@@ -2304,7 +2337,7 @@ function vt(t, n, r, i, a, u) {
|
|
|
2304
2337
|
"style"
|
|
2305
2338
|
]);
|
|
2306
2339
|
}
|
|
2307
|
-
var
|
|
2340
|
+
var Dt = /* @__PURE__ */ q({
|
|
2308
2341
|
name: "w-autocomplete",
|
|
2309
2342
|
expose: ["focus"],
|
|
2310
2343
|
mixins: [Q, $],
|
|
@@ -2599,9 +2632,9 @@ var yt = /* @__PURE__ */ K({
|
|
|
2599
2632
|
this.menuOpen && e.length !== t.length && this.$nextTick(() => this.$refs.menu?.computeDetachableCoords());
|
|
2600
2633
|
}
|
|
2601
2634
|
}
|
|
2602
|
-
}, [["render",
|
|
2603
|
-
function
|
|
2604
|
-
return b(), c("div",
|
|
2635
|
+
}, [["render", Et]]), Ot = { class: "w-badge-wrap" };
|
|
2636
|
+
function kt(e, t, n, i, a, o) {
|
|
2637
|
+
return b(), c("div", Ot, [T(e.$slots, "default"), f(r, { name: `${n.transition}` }, {
|
|
2605
2638
|
default: M(() => [n.modelValue ? (b(), c("div", {
|
|
2606
2639
|
key: 0,
|
|
2607
2640
|
class: _(["w-badge", o.classes]),
|
|
@@ -2614,7 +2647,7 @@ function xt(e, t, n, i, a, o) {
|
|
|
2614
2647
|
_: 3
|
|
2615
2648
|
}, 8, ["name"])]);
|
|
2616
2649
|
}
|
|
2617
|
-
var
|
|
2650
|
+
var At = /* @__PURE__ */ q({
|
|
2618
2651
|
name: "w-badge",
|
|
2619
2652
|
props: {
|
|
2620
2653
|
modelValue: { default: !0 },
|
|
@@ -2680,8 +2713,8 @@ var St = /* @__PURE__ */ K({
|
|
|
2680
2713
|
return this.forcedSize && `font-size: ${this.forcedSize}`;
|
|
2681
2714
|
}
|
|
2682
2715
|
}
|
|
2683
|
-
}, [["render",
|
|
2684
|
-
function
|
|
2716
|
+
}, [["render", kt]]), jt = ["innerHTML"];
|
|
2717
|
+
function Mt(t, n, r, i, a, l) {
|
|
2685
2718
|
let u = E("w-icon");
|
|
2686
2719
|
return b(), c("div", { class: _(["w-breadcrumbs", l.classes]) }, [(b(!0), c(e, null, w(r.items, (n, i) => (b(), c(e, null, [i && t.$slots.separator ? (b(), c("span", {
|
|
2687
2720
|
class: _(["w-breadcrumbs__separator", r.separatorColor]),
|
|
@@ -2731,9 +2764,9 @@ function wt(t, n, r, i, a, l) {
|
|
|
2731
2764
|
}) : (b(), c("span", {
|
|
2732
2765
|
key: `${i}f`,
|
|
2733
2766
|
innerHTML: n[r.itemLabelKey]
|
|
2734
|
-
}, null, 8,
|
|
2767
|
+
}, null, 8, jt))], 64))), 256))], 2);
|
|
2735
2768
|
}
|
|
2736
|
-
var
|
|
2769
|
+
var Nt = /* @__PURE__ */ q({
|
|
2737
2770
|
name: "w-breadcrumbs",
|
|
2738
2771
|
mixins: [X],
|
|
2739
2772
|
props: {
|
|
@@ -2780,11 +2813,11 @@ var Tt = /* @__PURE__ */ K({
|
|
|
2780
2813
|
return { [`size--${this.size}`]: !0 };
|
|
2781
2814
|
}
|
|
2782
2815
|
}
|
|
2783
|
-
}, [["render",
|
|
2816
|
+
}, [["render", Mt]]), Pt = {
|
|
2784
2817
|
key: 0,
|
|
2785
2818
|
class: "w-button__loader"
|
|
2786
2819
|
};
|
|
2787
|
-
function
|
|
2820
|
+
function Ft(e, t, n, i, a, u) {
|
|
2788
2821
|
let p = E("w-icon");
|
|
2789
2822
|
return b(), o(D(!n.disabled && n.route ? "a" : "button"), h({
|
|
2790
2823
|
class: ["w-button", u.classes],
|
|
@@ -2799,7 +2832,7 @@ function Dt(e, t, n, i, a, u) {
|
|
|
2799
2832
|
default: M(() => [d(O(n.icon), 1)]),
|
|
2800
2833
|
_: 1
|
|
2801
2834
|
}, 16)) : T(e.$slots, "default", { key: 1 }), f(r, { name: "scale-fade" }, {
|
|
2802
|
-
default: M(() => [n.loading ? (b(), c("div",
|
|
2835
|
+
default: M(() => [n.loading ? (b(), c("div", Pt, [T(e.$slots, "loading", {}, () => [t[0] ||= l("svg", { viewBox: "0 0 40 40" }, [l("circle", {
|
|
2803
2836
|
cx: "20",
|
|
2804
2837
|
cy: "20",
|
|
2805
2838
|
r: "18",
|
|
@@ -2820,7 +2853,7 @@ function Dt(e, t, n, i, a, u) {
|
|
|
2820
2853
|
"onPointerdown"
|
|
2821
2854
|
]);
|
|
2822
2855
|
}
|
|
2823
|
-
var
|
|
2856
|
+
var It = /* @__PURE__ */ q({
|
|
2824
2857
|
inheritAttrs: !1,
|
|
2825
2858
|
mixins: [X],
|
|
2826
2859
|
props: {
|
|
@@ -2923,11 +2956,11 @@ var Ot = /* @__PURE__ */ K({
|
|
|
2923
2956
|
};
|
|
2924
2957
|
}
|
|
2925
2958
|
}
|
|
2926
|
-
}, [["render",
|
|
2927
|
-
function
|
|
2959
|
+
}, [["render", Ft]]), Lt = ["innerHTML"];
|
|
2960
|
+
function Rt(e, t, n, r, i, a) {
|
|
2928
2961
|
let s = E("button-partial");
|
|
2929
2962
|
return n.tooltip ? (b(), o(D("w-tooltip"), v(h({ key: 0 }, n.tooltipProps)), {
|
|
2930
|
-
tooltip: M(() => [l("div", { innerHTML: n.tooltip }, null, 8,
|
|
2963
|
+
tooltip: M(() => [l("div", { innerHTML: n.tooltip }, null, 8, Lt)]),
|
|
2931
2964
|
default: M(() => [f(s, h({ ref: "button" }, a.buttonProps), {
|
|
2932
2965
|
default: M(() => [T(e.$slots, "default")]),
|
|
2933
2966
|
_: 3
|
|
@@ -2942,8 +2975,9 @@ function At(e, t, n, r, i, a) {
|
|
|
2942
2975
|
_: 3
|
|
2943
2976
|
}, 16));
|
|
2944
2977
|
}
|
|
2945
|
-
var
|
|
2978
|
+
var zt = /* @__PURE__ */ q({
|
|
2946
2979
|
name: "w-button",
|
|
2980
|
+
focusable: !0,
|
|
2947
2981
|
expose: ["focus"],
|
|
2948
2982
|
inheritAttrs: !1,
|
|
2949
2983
|
props: {
|
|
@@ -2995,7 +3029,7 @@ var jt = /* @__PURE__ */ K({
|
|
|
2995
3029
|
default: void 0
|
|
2996
3030
|
}
|
|
2997
3031
|
},
|
|
2998
|
-
components: { ButtonPartial:
|
|
3032
|
+
components: { ButtonPartial: It },
|
|
2999
3033
|
emits: [],
|
|
3000
3034
|
computed: { buttonProps() {
|
|
3001
3035
|
let { tooltip: e, tooltipProps: t = {}, ...n } = this.$props;
|
|
@@ -3005,10 +3039,10 @@ var jt = /* @__PURE__ */ K({
|
|
|
3005
3039
|
};
|
|
3006
3040
|
} },
|
|
3007
3041
|
methods: { focus() {
|
|
3008
|
-
this.disabled ||
|
|
3042
|
+
this.disabled || J(this.$refs.button?.$el);
|
|
3009
3043
|
} }
|
|
3010
|
-
}, [["render",
|
|
3011
|
-
function
|
|
3044
|
+
}, [["render", Rt]]), Bt = ["innerHTML"];
|
|
3045
|
+
function Vt(e, t, n, r, i, a) {
|
|
3012
3046
|
let u = E("w-image");
|
|
3013
3047
|
return b(), c("div", { class: _(["w-card", a.classes]) }, [
|
|
3014
3048
|
e.$slots.title ? (b(), c("div", {
|
|
@@ -3024,7 +3058,7 @@ function Nt(e, t, n, r, i, a) {
|
|
|
3024
3058
|
...a.titleClasses
|
|
3025
3059
|
}]),
|
|
3026
3060
|
innerHTML: n.title
|
|
3027
|
-
}, null, 10,
|
|
3061
|
+
}, null, 10, Bt)) : s("", !0),
|
|
3028
3062
|
n.image ? (b(), o(u, h({
|
|
3029
3063
|
key: 2,
|
|
3030
3064
|
class: "w-card__image",
|
|
@@ -3040,7 +3074,7 @@ function Nt(e, t, n, r, i, a) {
|
|
|
3040
3074
|
}, [T(e.$slots, "actions")], 2)) : s("", !0)
|
|
3041
3075
|
], 2);
|
|
3042
3076
|
}
|
|
3043
|
-
var
|
|
3077
|
+
var Ht = /* @__PURE__ */ q({
|
|
3044
3078
|
name: "w-card",
|
|
3045
3079
|
props: {
|
|
3046
3080
|
color: { type: String },
|
|
@@ -3100,7 +3134,7 @@ var Pt = /* @__PURE__ */ K({
|
|
|
3100
3134
|
};
|
|
3101
3135
|
}
|
|
3102
3136
|
}
|
|
3103
|
-
}, [["render",
|
|
3137
|
+
}, [["render", Vt]]), Ut = [
|
|
3104
3138
|
"id",
|
|
3105
3139
|
"name",
|
|
3106
3140
|
"checked",
|
|
@@ -3108,8 +3142,8 @@ var Pt = /* @__PURE__ */ K({
|
|
|
3108
3142
|
"required",
|
|
3109
3143
|
"tabindex",
|
|
3110
3144
|
"aria-checked"
|
|
3111
|
-
],
|
|
3112
|
-
function
|
|
3145
|
+
], Wt = ["for"], Gt = ["for", "innerHTML"], Kt = ["for"], qt = ["for", "innerHTML"];
|
|
3146
|
+
function Jt(t, n, r, i, a, u) {
|
|
3113
3147
|
return b(), o(D(t.formRegister && !u.wCheckboxes ? "w-form-element" : "div"), h({ ref: "formEl" }, t.formRegister && {
|
|
3114
3148
|
validators: t.validators,
|
|
3115
3149
|
inputValue: a.isChecked,
|
|
@@ -3140,17 +3174,17 @@ function Bt(t, n, r, i, a, u) {
|
|
|
3140
3174
|
onKeypress: n[3] ||= P((...e) => u.onInput && u.onInput(...e), ["enter"]),
|
|
3141
3175
|
"aria-checked": a.isChecked || "false",
|
|
3142
3176
|
role: "checkbox"
|
|
3143
|
-
}, null, 40,
|
|
3177
|
+
}, null, 40, Ut),
|
|
3144
3178
|
u.hasLabel && r.labelOnLeft ? (b(), c(e, { key: 0 }, [t.$slots.default ? (b(), c("label", {
|
|
3145
3179
|
key: 0,
|
|
3146
3180
|
class: _(["w-checkbox__label w-form-el-shakable pr2", t.labelClasses]),
|
|
3147
3181
|
for: t.inputId
|
|
3148
|
-
}, [T(t.$slots, "default", {}, () => [d(O(r.label), 1)])], 10,
|
|
3182
|
+
}, [T(t.$slots, "default", {}, () => [d(O(r.label), 1)])], 10, Wt)) : r.label ? (b(), c("label", {
|
|
3149
3183
|
key: 1,
|
|
3150
3184
|
class: _(["w-checkbox__label w-form-el-shakable pr2", t.labelClasses]),
|
|
3151
3185
|
for: t.inputId,
|
|
3152
3186
|
innerHTML: r.label
|
|
3153
|
-
}, null, 10,
|
|
3187
|
+
}, null, 10, Gt)) : s("", !0)], 64)) : s("", !0),
|
|
3154
3188
|
l("div", {
|
|
3155
3189
|
class: _(["w-checkbox__input", this.color]),
|
|
3156
3190
|
onClick: n[4] ||= (e) => {
|
|
@@ -3161,17 +3195,17 @@ function Bt(t, n, r, i, a, u) {
|
|
|
3161
3195
|
key: 0,
|
|
3162
3196
|
class: _(["w-checkbox__label w-form-el-shakable pl2", t.labelClasses]),
|
|
3163
3197
|
for: t.inputId
|
|
3164
|
-
}, [T(t.$slots, "default", {}, () => [d(O(r.label), 1)])], 10,
|
|
3198
|
+
}, [T(t.$slots, "default", {}, () => [d(O(r.label), 1)])], 10, Kt)) : r.label ? (b(), c("label", {
|
|
3165
3199
|
key: 1,
|
|
3166
3200
|
class: _(["w-checkbox__label w-form-el-shakable pl2", t.labelClasses]),
|
|
3167
3201
|
for: t.inputId,
|
|
3168
3202
|
innerHTML: r.label
|
|
3169
|
-
}, null, 10,
|
|
3203
|
+
}, null, 10, qt)) : s("", !0)], 64)) : s("", !0)
|
|
3170
3204
|
]),
|
|
3171
3205
|
_: 3
|
|
3172
3206
|
}, 16, ["valid", "class"]);
|
|
3173
3207
|
}
|
|
3174
|
-
var
|
|
3208
|
+
var Yt = /* @__PURE__ */ q({
|
|
3175
3209
|
name: "w-checkbox",
|
|
3176
3210
|
expose: ["focus"],
|
|
3177
3211
|
mixins: [Q, $],
|
|
@@ -3251,8 +3285,8 @@ var Vt = /* @__PURE__ */ K({
|
|
|
3251
3285
|
watch: { modelValue(e) {
|
|
3252
3286
|
this.isChecked = e;
|
|
3253
3287
|
} }
|
|
3254
|
-
}, [["render",
|
|
3255
|
-
function
|
|
3288
|
+
}, [["render", Jt]]), Xt = ["innerHTML"];
|
|
3289
|
+
function Zt(t, n, r, i, a, l) {
|
|
3256
3290
|
let u = E("w-checkbox");
|
|
3257
3291
|
return b(), o(D(t.formRegister ? "w-form-element" : "div"), h({ ref: "formEl" }, t.formRegister && {
|
|
3258
3292
|
validators: t.validators,
|
|
@@ -3295,7 +3329,7 @@ function Ut(t, n, r, i, a, l) {
|
|
|
3295
3329
|
}) : e.label ? (b(), c("div", {
|
|
3296
3330
|
key: 1,
|
|
3297
3331
|
innerHTML: e.label
|
|
3298
|
-
}, null, 8,
|
|
3332
|
+
}, null, 8, Xt)) : s("", !0)]),
|
|
3299
3333
|
_: 2
|
|
3300
3334
|
}, 1040, [
|
|
3301
3335
|
"model-value",
|
|
@@ -3314,8 +3348,9 @@ function Ut(t, n, r, i, a, l) {
|
|
|
3314
3348
|
"class"
|
|
3315
3349
|
]);
|
|
3316
3350
|
}
|
|
3317
|
-
var
|
|
3351
|
+
var Qt = /* @__PURE__ */ q({
|
|
3318
3352
|
name: "w-checkboxes",
|
|
3353
|
+
focusable: !0,
|
|
3319
3354
|
expose: ["focus"],
|
|
3320
3355
|
mixins: [Q],
|
|
3321
3356
|
setup() {
|
|
@@ -3392,7 +3427,7 @@ var Wt = /* @__PURE__ */ K({
|
|
|
3392
3427
|
},
|
|
3393
3428
|
methods: {
|
|
3394
3429
|
focus() {
|
|
3395
|
-
|
|
3430
|
+
We(this) && [].concat(this.$refs.item || []).filter(Boolean).find((e) => !e.isDisabled && !e.isReadonly)?.focus?.();
|
|
3396
3431
|
},
|
|
3397
3432
|
reset() {
|
|
3398
3433
|
this.checkboxItems.forEach((e) => e._isChecked = null), this.$emit("update:modelValue", []), this.$emit("input", []);
|
|
@@ -3406,10 +3441,10 @@ var Wt = /* @__PURE__ */ K({
|
|
|
3406
3441
|
return this.items[e._index];
|
|
3407
3442
|
}
|
|
3408
3443
|
}
|
|
3409
|
-
}, [["render",
|
|
3444
|
+
}, [["render", Zt]]);
|
|
3410
3445
|
//#endregion
|
|
3411
3446
|
//#region src/wave-ui/components/w-confirm.vue?vue&type=template&lang.js
|
|
3412
|
-
function
|
|
3447
|
+
function $t(e, t, n, r, i, a) {
|
|
3413
3448
|
let c = E("w-button"), u = E("w-flex"), p = E("w-menu"), m = ne("focus");
|
|
3414
3449
|
return b(), o(p, h({
|
|
3415
3450
|
modelValue: e.showPopup,
|
|
@@ -3449,7 +3484,7 @@ function Gt(e, t, n, r, i, a) {
|
|
|
3449
3484
|
_: 3
|
|
3450
3485
|
}, 16, ["modelValue", "disable"]);
|
|
3451
3486
|
}
|
|
3452
|
-
var
|
|
3487
|
+
var en = /* @__PURE__ */ q({
|
|
3453
3488
|
name: "w-confirm",
|
|
3454
3489
|
inheritAttrs: !1,
|
|
3455
3490
|
props: {
|
|
@@ -3575,16 +3610,16 @@ var Kt = /* @__PURE__ */ K({
|
|
|
3575
3610
|
this.$emit("confirm"), this.showPopup = !1;
|
|
3576
3611
|
}
|
|
3577
3612
|
}
|
|
3578
|
-
}, [["render",
|
|
3613
|
+
}, [["render", $t]]);
|
|
3579
3614
|
//#endregion
|
|
3580
3615
|
//#region src/wave-ui/components/w-date-picker.vue?vue&type=template&lang.js
|
|
3581
|
-
function
|
|
3616
|
+
function tn(e, t, n, r, i, a) {
|
|
3582
3617
|
return b(), c("div", {
|
|
3583
3618
|
class: _(["w-date-picker", a.classes]),
|
|
3584
3619
|
style: y(a.styles)
|
|
3585
3620
|
}, [T(e.$slots, "default")], 6);
|
|
3586
3621
|
}
|
|
3587
|
-
var
|
|
3622
|
+
var nn = /* @__PURE__ */ q({
|
|
3588
3623
|
name: "w-date-picker",
|
|
3589
3624
|
props: {
|
|
3590
3625
|
dark: { type: Boolean },
|
|
@@ -3602,10 +3637,10 @@ var Jt = /* @__PURE__ */ K({
|
|
|
3602
3637
|
return !1;
|
|
3603
3638
|
}
|
|
3604
3639
|
}
|
|
3605
|
-
}, [["render",
|
|
3640
|
+
}, [["render", tn]]);
|
|
3606
3641
|
//#endregion
|
|
3607
3642
|
//#region src/wave-ui/components/w-dialog.vue?vue&type=template&lang.js
|
|
3608
|
-
function
|
|
3643
|
+
function rn(e, t, n, i, a, s) {
|
|
3609
3644
|
let c = E("w-card"), l = E("w-overlay");
|
|
3610
3645
|
return b(), o(l, {
|
|
3611
3646
|
class: _(["w-dialog", s.classes]),
|
|
@@ -3667,7 +3702,7 @@ function Yt(e, t, n, i, a, s) {
|
|
|
3667
3702
|
"class"
|
|
3668
3703
|
]);
|
|
3669
3704
|
}
|
|
3670
|
-
var
|
|
3705
|
+
var an = /* @__PURE__ */ q({
|
|
3671
3706
|
name: "w-dialog",
|
|
3672
3707
|
expose: ["focus"],
|
|
3673
3708
|
props: {
|
|
@@ -3768,15 +3803,15 @@ var Xt = /* @__PURE__ */ K({
|
|
|
3768
3803
|
watch: { modelValue(e) {
|
|
3769
3804
|
this.showWrapper = e, this.showContent = e;
|
|
3770
3805
|
} }
|
|
3771
|
-
}, [["render",
|
|
3772
|
-
function
|
|
3806
|
+
}, [["render", rn]]), on = ["role", "aria-orientation"];
|
|
3807
|
+
function sn(e, t, n, r, i, a) {
|
|
3773
3808
|
return b(), c("div", {
|
|
3774
3809
|
class: _(["w-divider", a.classes]),
|
|
3775
3810
|
role: e.$slots.default ? null : "presentation",
|
|
3776
3811
|
"aria-orientation": n.vertical ? "vertical" : "horizontal"
|
|
3777
|
-
}, [T(e.$slots, "default")], 10,
|
|
3812
|
+
}, [T(e.$slots, "default")], 10, on);
|
|
3778
3813
|
}
|
|
3779
|
-
var
|
|
3814
|
+
var cn = /* @__PURE__ */ q({
|
|
3780
3815
|
name: "w-divider",
|
|
3781
3816
|
props: {
|
|
3782
3817
|
vertical: { type: Boolean },
|
|
@@ -3794,8 +3829,8 @@ var $t = /* @__PURE__ */ K({
|
|
|
3794
3829
|
"w-divider--light": this.light
|
|
3795
3830
|
};
|
|
3796
3831
|
} }
|
|
3797
|
-
}, [["render",
|
|
3798
|
-
function
|
|
3832
|
+
}, [["render", sn]]), ln = { class: "w-drawer-wrap__pushable" };
|
|
3833
|
+
function un(t, n, i, a, u, d) {
|
|
3799
3834
|
let p = E("w-overlay");
|
|
3800
3835
|
return u.showWrapper || i.pushContent ? (b(), c("div", {
|
|
3801
3836
|
key: 0,
|
|
@@ -3804,7 +3839,7 @@ function tn(t, n, i, a, u, d) {
|
|
|
3804
3839
|
key: 0,
|
|
3805
3840
|
class: "w-drawer-wrap__track",
|
|
3806
3841
|
style: y(d.trackStyles)
|
|
3807
|
-
}, [l("div",
|
|
3842
|
+
}, [l("div", ln, [i.noOverlay ? s("", !0) : (b(), o(p, {
|
|
3808
3843
|
key: 0,
|
|
3809
3844
|
ref: "overlay",
|
|
3810
3845
|
modelValue: u.showDrawer,
|
|
@@ -3887,12 +3922,12 @@ function tn(t, n, i, a, u, d) {
|
|
|
3887
3922
|
}
|
|
3888
3923
|
//#endregion
|
|
3889
3924
|
//#region src/wave-ui/components/w-drawer.vue
|
|
3890
|
-
var
|
|
3925
|
+
var dn = {
|
|
3891
3926
|
left: "right",
|
|
3892
3927
|
right: "left",
|
|
3893
3928
|
top: "down",
|
|
3894
3929
|
bottom: "up"
|
|
3895
|
-
},
|
|
3930
|
+
}, fn = /* @__PURE__ */ q({
|
|
3896
3931
|
name: "w-drawer",
|
|
3897
3932
|
expose: ["focus"],
|
|
3898
3933
|
props: {
|
|
@@ -3999,12 +4034,12 @@ var nn = {
|
|
|
3999
4034
|
return !this.showWrapper;
|
|
4000
4035
|
},
|
|
4001
4036
|
transitionName() {
|
|
4002
|
-
return `slide-${
|
|
4037
|
+
return `slide-${dn[this.position]}`;
|
|
4003
4038
|
}
|
|
4004
4039
|
},
|
|
4005
4040
|
methods: {
|
|
4006
4041
|
focus() {
|
|
4007
|
-
this.$refs.overlay ? this.$refs.overlay.focus() :
|
|
4042
|
+
this.$refs.overlay ? this.$refs.overlay.focus() : J(this.$refs.drawer?.$el || this.$refs.drawer);
|
|
4008
4043
|
},
|
|
4009
4044
|
onBeforeClose() {
|
|
4010
4045
|
this.$emit("before-close");
|
|
@@ -4019,16 +4054,16 @@ var nn = {
|
|
|
4019
4054
|
watch: { modelValue(e) {
|
|
4020
4055
|
e && (this.showWrapper = !0), this.showDrawer = e;
|
|
4021
4056
|
} }
|
|
4022
|
-
}, [["render",
|
|
4057
|
+
}, [["render", un]]);
|
|
4023
4058
|
//#endregion
|
|
4024
4059
|
//#region src/wave-ui/components/w-flex.vue?vue&type=template&lang.js
|
|
4025
|
-
function
|
|
4060
|
+
function pn(e, t, n, r, i, a) {
|
|
4026
4061
|
return b(), o(D(n.tag), { class: _(["w-flex", a.classes]) }, {
|
|
4027
4062
|
default: M(() => [T(e.$slots, "default")]),
|
|
4028
4063
|
_: 3
|
|
4029
4064
|
}, 8, ["class"]);
|
|
4030
4065
|
}
|
|
4031
|
-
var
|
|
4066
|
+
var mn = /* @__PURE__ */ q({
|
|
4032
4067
|
name: "w-flex",
|
|
4033
4068
|
props: {
|
|
4034
4069
|
tag: {
|
|
@@ -4079,10 +4114,10 @@ var on = /* @__PURE__ */ K({
|
|
|
4079
4114
|
[`gap${this.gap}`]: ~~this.gap
|
|
4080
4115
|
};
|
|
4081
4116
|
} }
|
|
4082
|
-
}, [["render",
|
|
4117
|
+
}, [["render", pn]]);
|
|
4083
4118
|
//#endregion
|
|
4084
4119
|
//#region src/wave-ui/components/w-form.vue?vue&type=template&lang.js
|
|
4085
|
-
function
|
|
4120
|
+
function hn(e, t, n, r, i, a) {
|
|
4086
4121
|
return b(), c("form", {
|
|
4087
4122
|
class: _(["w-form", a.classes]),
|
|
4088
4123
|
onSubmit: t[0] ||= (...e) => a.onSubmit && a.onSubmit(...e),
|
|
@@ -4092,10 +4127,10 @@ function sn(e, t, n, r, i, a) {
|
|
|
4092
4127
|
}
|
|
4093
4128
|
//#endregion
|
|
4094
4129
|
//#region src/wave-ui/components/w-form.vue
|
|
4095
|
-
var
|
|
4130
|
+
var gn = async (e, t) => {
|
|
4096
4131
|
for (let n of e) if (await t(n)) return !0;
|
|
4097
4132
|
return !1;
|
|
4098
|
-
},
|
|
4133
|
+
}, _n = /* @__PURE__ */ q({
|
|
4099
4134
|
name: "w-form",
|
|
4100
4135
|
props: {
|
|
4101
4136
|
modelValue: {},
|
|
@@ -4170,7 +4205,7 @@ var cn = async (e, t) => {
|
|
|
4170
4205
|
},
|
|
4171
4206
|
async checkElementValidators(e) {
|
|
4172
4207
|
let t = !1, n = "";
|
|
4173
|
-
await
|
|
4208
|
+
await gn(e.validators, async (r) => {
|
|
4174
4209
|
let i = await (typeof r == "function" && r(e.inputValue));
|
|
4175
4210
|
return t = typeof i != "string", n = t ? "" : i, !t;
|
|
4176
4211
|
}), e.hasJustReset = !1, e.Validation.isValid = t, e.Validation.message = n;
|
|
@@ -4191,10 +4226,10 @@ var cn = async (e, t) => {
|
|
|
4191
4226
|
watch: { modelValue(e) {
|
|
4192
4227
|
(this.status === !1 && e || e === null && this.status !== null) && this.reset(), this.status = e;
|
|
4193
4228
|
} }
|
|
4194
|
-
}, [["render",
|
|
4229
|
+
}, [["render", hn]]);
|
|
4195
4230
|
//#endregion
|
|
4196
4231
|
//#region src/wave-ui/components/w-form-element.vue?vue&type=template&lang.js
|
|
4197
|
-
function
|
|
4232
|
+
function vn(e, t, n, r, i, a) {
|
|
4198
4233
|
let o = E("w-transition-expand");
|
|
4199
4234
|
return b(), c("div", { class: _(a.classes) }, [l("div", { class: _(["w-flex grow", [n.column ? "column" : "align-center", n.wrap ? "wrap" : ""]]) }, [T(e.$slots, "default")], 2), f(o, { y: "" }, {
|
|
4200
4235
|
default: M(() => [e.Validation.message ? (b(), c("div", {
|
|
@@ -4204,7 +4239,7 @@ function un(e, t, n, r, i, a) {
|
|
|
4204
4239
|
_: 3
|
|
4205
4240
|
})], 2);
|
|
4206
4241
|
}
|
|
4207
|
-
var
|
|
4242
|
+
var yn = /* @__PURE__ */ q({
|
|
4208
4243
|
name: "w-form-element",
|
|
4209
4244
|
props: {
|
|
4210
4245
|
valid: { required: !0 },
|
|
@@ -4272,16 +4307,16 @@ var dn = /* @__PURE__ */ K({
|
|
|
4272
4307
|
beforeUnmount() {
|
|
4273
4308
|
this.formUnregister && this.formUnregister(this);
|
|
4274
4309
|
}
|
|
4275
|
-
}, [["render",
|
|
4310
|
+
}, [["render", vn]]);
|
|
4276
4311
|
//#endregion
|
|
4277
4312
|
//#region src/wave-ui/components/w-grid.vue?vue&type=template&lang.js
|
|
4278
|
-
function
|
|
4313
|
+
function bn(e, t, n, r, i, a) {
|
|
4279
4314
|
return b(), o(D(n.tag), { class: _(["w-grid", a.classes]) }, {
|
|
4280
4315
|
default: M(() => [T(e.$slots, "default")]),
|
|
4281
4316
|
_: 3
|
|
4282
4317
|
}, 8, ["class"]);
|
|
4283
4318
|
}
|
|
4284
|
-
var
|
|
4319
|
+
var xn = /* @__PURE__ */ q({
|
|
4285
4320
|
name: "w-grid",
|
|
4286
4321
|
props: {
|
|
4287
4322
|
tag: {
|
|
@@ -4353,10 +4388,10 @@ var pn = /* @__PURE__ */ K({
|
|
|
4353
4388
|
};
|
|
4354
4389
|
}
|
|
4355
4390
|
}
|
|
4356
|
-
}, [["render",
|
|
4391
|
+
}, [["render", bn]]);
|
|
4357
4392
|
//#endregion
|
|
4358
4393
|
//#region src/wave-ui/components/w-icon.vue?vue&type=template&lang.js
|
|
4359
|
-
function
|
|
4394
|
+
function Sn(t, n, r, i, a, l) {
|
|
4360
4395
|
return b(), o(D(r.tag || "i"), {
|
|
4361
4396
|
class: _(["w-icon", l.classes]),
|
|
4362
4397
|
role: "icon",
|
|
@@ -4367,7 +4402,7 @@ function mn(t, n, r, i, a, l) {
|
|
|
4367
4402
|
_: 1
|
|
4368
4403
|
}, 8, ["class", "style"]);
|
|
4369
4404
|
}
|
|
4370
|
-
var
|
|
4405
|
+
var Cn = /* @__PURE__ */ q({
|
|
4371
4406
|
name: "w-icon",
|
|
4372
4407
|
props: {
|
|
4373
4408
|
tag: {
|
|
@@ -4437,11 +4472,11 @@ var hn = /* @__PURE__ */ K({
|
|
|
4437
4472
|
let { default: e } = this.$slots, [t = "", n = ""] = typeof e == "function" && e()?.[0]?.children?.trim()?.split(" ") || [];
|
|
4438
4473
|
return this.fontName = t, this.icon = n, !0;
|
|
4439
4474
|
} }
|
|
4440
|
-
}, [["render",
|
|
4475
|
+
}, [["render", Sn]]), wn = {
|
|
4441
4476
|
key: 0,
|
|
4442
4477
|
class: "w-image__loader"
|
|
4443
|
-
},
|
|
4444
|
-
function
|
|
4478
|
+
}, Tn = ["innerHTML"];
|
|
4479
|
+
function En(e, t, n, i, a, l) {
|
|
4445
4480
|
let u = E("w-progress");
|
|
4446
4481
|
return b(), o(D(l.wrapperTag), {
|
|
4447
4482
|
class: _(["w-image", l.wrapperClasses]),
|
|
@@ -4466,7 +4501,7 @@ function vn(e, t, n, i, a, l) {
|
|
|
4466
4501
|
])) : s("", !0)]),
|
|
4467
4502
|
_: 1
|
|
4468
4503
|
}, 8, ["name"]),
|
|
4469
|
-
!n.noSpinner && a.loading ? (b(), c("span",
|
|
4504
|
+
!n.noSpinner && a.loading ? (b(), c("span", wn, [e.$slots.loading ? T(e.$slots, "loading", { key: 0 }) : (b(), o(u, h({
|
|
4470
4505
|
key: 1,
|
|
4471
4506
|
circle: "",
|
|
4472
4507
|
indeterminate: ""
|
|
@@ -4485,12 +4520,12 @@ function vn(e, t, n, i, a, l) {
|
|
|
4485
4520
|
key: 3,
|
|
4486
4521
|
class: _(["w-image__caption caption", n.captionClass]),
|
|
4487
4522
|
innerHTML: n.caption
|
|
4488
|
-
}, null, 10,
|
|
4523
|
+
}, null, 10, Tn)) : s("", !0)
|
|
4489
4524
|
]),
|
|
4490
4525
|
_: 3
|
|
4491
4526
|
}, 40, ["class", "style"]);
|
|
4492
4527
|
}
|
|
4493
|
-
var
|
|
4528
|
+
var Dn = /* @__PURE__ */ q({
|
|
4494
4529
|
name: "w-image",
|
|
4495
4530
|
props: {
|
|
4496
4531
|
tag: {
|
|
@@ -4603,7 +4638,7 @@ var yn = /* @__PURE__ */ K({
|
|
|
4603
4638
|
watch: { src() {
|
|
4604
4639
|
this.loadImage();
|
|
4605
4640
|
} }
|
|
4606
|
-
}, [["render",
|
|
4641
|
+
}, [["render", En]]), On = ["name"], kn = ["for"], An = [
|
|
4607
4642
|
"id",
|
|
4608
4643
|
"type",
|
|
4609
4644
|
"name",
|
|
@@ -4618,17 +4653,17 @@ var yn = /* @__PURE__ */ K({
|
|
|
4618
4653
|
"disabled",
|
|
4619
4654
|
"required",
|
|
4620
4655
|
"tabindex"
|
|
4621
|
-
],
|
|
4656
|
+
], jn = [
|
|
4622
4657
|
"id",
|
|
4623
4658
|
"name",
|
|
4624
4659
|
"multiple",
|
|
4625
4660
|
"disabled",
|
|
4626
4661
|
"data-progress"
|
|
4627
|
-
],
|
|
4662
|
+
], Mn = {
|
|
4628
4663
|
class: "w-input__no-file",
|
|
4629
4664
|
key: "no-file"
|
|
4630
|
-
},
|
|
4631
|
-
function
|
|
4665
|
+
}, Nn = ["for"], Pn = ["src"], Fn = ["for"];
|
|
4666
|
+
function In(t, n, r, a, u, p) {
|
|
4632
4667
|
let m = E("w-icon"), g = E("w-progress");
|
|
4633
4668
|
return b(), o(D(t.formRegister ? "w-form-element" : "div"), h({ ref: "formEl" }, t.formRegister && {
|
|
4634
4669
|
validators: t.validators,
|
|
@@ -4652,12 +4687,12 @@ function On(t, n, r, a, u, p) {
|
|
|
4652
4687
|
type: "hidden",
|
|
4653
4688
|
name: t.name || null,
|
|
4654
4689
|
"onUpdate:modelValue": n[0] ||= (e) => u.inputValue = e
|
|
4655
|
-
}, null, 8,
|
|
4690
|
+
}, null, 8, On)), [[j, u.inputValue]]) : (b(), c(e, { key: 1 }, [
|
|
4656
4691
|
r.labelPosition === "left" ? (b(), c(e, { key: 0 }, [t.$slots.default || r.label ? (b(), c("label", {
|
|
4657
4692
|
key: 0,
|
|
4658
4693
|
class: _(["w-input__label w-input__label--left w-form-el-shakable", t.labelClasses]),
|
|
4659
4694
|
for: t.inputId
|
|
4660
|
-
}, [T(t.$slots, "default", {}, () => [d(O(r.label), 1)])], 10,
|
|
4695
|
+
}, [T(t.$slots, "default", {}, () => [d(O(r.label), 1)])], 10, kn)) : s("", !0)], 64)) : s("", !0),
|
|
4661
4696
|
l("div", { class: _(["w-input__input-wrap", p.inputWrapClasses]) }, [
|
|
4662
4697
|
T(t.$slots, "icon-left", { inputId: t.inputId }, () => [r.innerIconLeft ? (b(), o(m, {
|
|
4663
4698
|
key: 0,
|
|
@@ -4681,13 +4716,13 @@ function On(t, n, r, a, u, p) {
|
|
|
4681
4716
|
}, p.attrs, {
|
|
4682
4717
|
disabled: t.isDisabled || null,
|
|
4683
4718
|
"data-progress": p.overallFilesProgress
|
|
4684
|
-
}), null, 16,
|
|
4719
|
+
}), null, 16, jn), f(i, {
|
|
4685
4720
|
class: "w-input__input w-input__input--file",
|
|
4686
4721
|
tag: "label",
|
|
4687
4722
|
name: "fade",
|
|
4688
4723
|
for: t.inputId
|
|
4689
4724
|
}, {
|
|
4690
|
-
default: M(() => [!u.inputFiles.length && u.isFocused ? (b(), c("span",
|
|
4725
|
+
default: M(() => [!u.inputFiles.length && u.isFocused ? (b(), c("span", Mn, [T(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, w(u.inputFiles, (e, t) => (b(), c("span", { key: e.lastModified }, [
|
|
4691
4726
|
d(O(t ? ", " : ""), 1),
|
|
4692
4727
|
(b(), c("span", {
|
|
4693
4728
|
class: "filename",
|
|
@@ -4718,7 +4753,7 @@ function On(t, n, r, a, u, p) {
|
|
|
4718
4753
|
disabled: t.isDisabled || null,
|
|
4719
4754
|
required: t.required || null,
|
|
4720
4755
|
tabindex: t.tabindex || null
|
|
4721
|
-
}, p.attrs, { class: r.inputClass }), null, 16,
|
|
4756
|
+
}, p.attrs, { class: r.inputClass }), null, 16, An)), [[ae, u.inputValue]]),
|
|
4722
4757
|
r.labelPosition === "inside" && p.showLabelInside ? (b(), c(e, { key: 2 }, [t.$slots.default || r.label ? (b(), c("label", {
|
|
4723
4758
|
key: 0,
|
|
4724
4759
|
class: _(["w-input__label w-input__label--inside w-form-el-shakable", t.labelClasses])
|
|
@@ -4753,15 +4788,15 @@ function On(t, n, r, a, u, p) {
|
|
|
4753
4788
|
key: `${n}b`,
|
|
4754
4789
|
src: t.preview,
|
|
4755
4790
|
alt: ""
|
|
4756
|
-
}, null, 8,
|
|
4791
|
+
}, null, 8, Pn)) : (b(), c("i", {
|
|
4757
4792
|
class: _(["w-icon w-input__file-preview primary size--md", r.preview && typeof r.preview == "string" ? r.preview : "wi-file"]),
|
|
4758
4793
|
key: `${n}c`
|
|
4759
|
-
}, null, 2))], 64))), 256))], 8,
|
|
4794
|
+
}, null, 2))], 64))), 256))], 8, Nn)) : s("", !0),
|
|
4760
4795
|
r.labelPosition === "right" ? (b(), c(e, { key: 2 }, [t.$slots.default || r.label ? (b(), c("label", {
|
|
4761
4796
|
key: 0,
|
|
4762
4797
|
class: _(["w-input__label w-input__label--right w-form-el-shakable", t.labelClasses]),
|
|
4763
4798
|
for: t.inputId
|
|
4764
|
-
}, [T(t.$slots, "default", {}, () => [d(O(r.label), 1)])], 10,
|
|
4799
|
+
}, [T(t.$slots, "default", {}, () => [d(O(r.label), 1)])], 10, Fn)) : s("", !0)], 64)) : s("", !0)
|
|
4765
4800
|
], 64))]),
|
|
4766
4801
|
_: 3
|
|
4767
4802
|
}, 16, [
|
|
@@ -4771,7 +4806,7 @@ function On(t, n, r, a, u, p) {
|
|
|
4771
4806
|
"style"
|
|
4772
4807
|
]);
|
|
4773
4808
|
}
|
|
4774
|
-
var
|
|
4809
|
+
var Ln = /* @__PURE__ */ q({
|
|
4775
4810
|
name: "w-input",
|
|
4776
4811
|
expose: ["focus"],
|
|
4777
4812
|
mixins: [Q, $],
|
|
@@ -4972,10 +5007,10 @@ var kn = /* @__PURE__ */ K({
|
|
|
4972
5007
|
watch: { modelValue(e) {
|
|
4973
5008
|
this.inputValue = e, !e && e !== 0 && (this.isAutofilled = !1, this.inputFiles = []);
|
|
4974
5009
|
} }
|
|
4975
|
-
}, [["render",
|
|
5010
|
+
}, [["render", In]]);
|
|
4976
5011
|
//#endregion
|
|
4977
5012
|
//#region src/wave-ui/components/w-list.vue?vue&type=template&lang.js
|
|
4978
|
-
function
|
|
5013
|
+
function Rn(t, n, r, i, a, l) {
|
|
4979
5014
|
let f = E("w-icon"), p = E("w-list", !0);
|
|
4980
5015
|
return b(), c("ul", { class: _(["w-list", l.classes]) }, [(b(!0), c(e, null, w(t.listItems, (e, i) => (b(), c("li", {
|
|
4981
5016
|
class: _(["w-list__item", { "w-list__item--parent": (e.children || []).length }]),
|
|
@@ -5042,12 +5077,13 @@ function An(t, n, r, i, a, l) {
|
|
|
5042
5077
|
}]), 1040, ["items", "depth"])) : s("", !0)
|
|
5043
5078
|
], 2))), 128))], 2);
|
|
5044
5079
|
}
|
|
5045
|
-
var
|
|
5080
|
+
var zn = /* @__PURE__ */ q({
|
|
5046
5081
|
name: "w-list",
|
|
5082
|
+
focusable: !0,
|
|
5047
5083
|
expose: ["focus"],
|
|
5048
5084
|
mixins: [X],
|
|
5049
5085
|
setup() {
|
|
5050
|
-
return { waveUiUseId:
|
|
5086
|
+
return { waveUiUseId: A() };
|
|
5051
5087
|
},
|
|
5052
5088
|
props: {
|
|
5053
5089
|
items: {
|
|
@@ -5143,7 +5179,7 @@ var jn = /* @__PURE__ */ K({
|
|
|
5143
5179
|
methods: {
|
|
5144
5180
|
focus() {
|
|
5145
5181
|
let e = this.listItems.find((e) => e._selected && !e.disabled) || this.listItems.find((e) => !e.disabled);
|
|
5146
|
-
e && (this.listId ?
|
|
5182
|
+
e && (this.listId ? J(document.getElementById(`${this.listId}_item-${e._index + 1}`)) : J(this.$el.querySelector("[role=\"option\"][tabindex=\"0\"]")));
|
|
5147
5183
|
},
|
|
5148
5184
|
getItemValue(e) {
|
|
5149
5185
|
return e && typeof e == "object" ? e[this.itemValueKey] === void 0 ? e[this.itemLabelKey] === void 0 ? e.index : e[this.itemLabelKey] : e[this.itemValueKey] : e;
|
|
@@ -5246,8 +5282,8 @@ var jn = /* @__PURE__ */ K({
|
|
|
5246
5282
|
}
|
|
5247
5283
|
}
|
|
5248
5284
|
}
|
|
5249
|
-
}, [["render",
|
|
5250
|
-
function
|
|
5285
|
+
}, [["render", Rn]]), Bn = 4;
|
|
5286
|
+
function Vn(e) {
|
|
5251
5287
|
return {
|
|
5252
5288
|
top: "bottom",
|
|
5253
5289
|
bottom: "top",
|
|
@@ -5255,7 +5291,7 @@ function Nn(e) {
|
|
|
5255
5291
|
right: "left"
|
|
5256
5292
|
}[e] || "bottom";
|
|
5257
5293
|
}
|
|
5258
|
-
var
|
|
5294
|
+
var Hn = {
|
|
5259
5295
|
props: {
|
|
5260
5296
|
appendTo: { type: [
|
|
5261
5297
|
String,
|
|
@@ -5290,6 +5326,8 @@ var Pn = {
|
|
|
5290
5326
|
openTimeout: null,
|
|
5291
5327
|
viewportPlacementOverride: null,
|
|
5292
5328
|
detachableReady: !1,
|
|
5329
|
+
_contentEntered: !1,
|
|
5330
|
+
_autofocusTargets: [],
|
|
5293
5331
|
teleportTarget: null
|
|
5294
5332
|
}),
|
|
5295
5333
|
computed: {
|
|
@@ -5333,7 +5371,23 @@ var Pn = {
|
|
|
5333
5371
|
},
|
|
5334
5372
|
methods: {
|
|
5335
5373
|
onAfterLeave() {
|
|
5336
|
-
this.detachableReady = !1, this.detachableEl = null;
|
|
5374
|
+
this.detachableReady = !1, this.detachableEl = null, this._contentEntered = !1, this._autofocusTargets = [];
|
|
5375
|
+
},
|
|
5376
|
+
onDetachableAfterEnter() {
|
|
5377
|
+
this._contentEntered = !0, this._maybeFlushAutofocus();
|
|
5378
|
+
},
|
|
5379
|
+
registerAutofocus(e) {
|
|
5380
|
+
this._autofocusTargets ||= [], this._autofocusTargets.push(e), this._maybeFlushAutofocus();
|
|
5381
|
+
},
|
|
5382
|
+
unregisterAutofocus(e) {
|
|
5383
|
+
this._autofocusTargets?.length && (this._autofocusTargets = this._autofocusTargets.filter((t) => t.el !== e));
|
|
5384
|
+
},
|
|
5385
|
+
_maybeFlushAutofocus() {
|
|
5386
|
+
this.detachableReady && this._contentEntered && this.flushAutofocus();
|
|
5387
|
+
},
|
|
5388
|
+
flushAutofocus() {
|
|
5389
|
+
let e = this._autofocusTargets || [];
|
|
5390
|
+
this._autofocusTargets = [], e.length && this.$nextTick(() => e.forEach(({ el: e }) => qe(e)));
|
|
5337
5391
|
},
|
|
5338
5392
|
unbindActivatorDocEvents() {
|
|
5339
5393
|
typeof document > "u" || this.docEventListenersHandlers.length && (this.docEventListenersHandlers.forEach(({ eventName: e, handler: t }) => {
|
|
@@ -5366,7 +5420,7 @@ var Pn = {
|
|
|
5366
5420
|
}), this._activatorDomEl = null, this._activatorAttachedEvents = []);
|
|
5367
5421
|
},
|
|
5368
5422
|
async open(e) {
|
|
5369
|
-
this.disable || (this.delay && await new Promise((e) => this.openTimeout = setTimeout(e, this.delay)), !(this.delay && !this.openTimeout) && (this.disable || (this.detachableReady = !1, typeof document < "u" && (this.teleportTarget = this.appendToTarget), this.detachableVisible = !0, this.activator && (this.activatorEl = e.target), await this.$nextTick(), this.detachableEl = this.$refs.detachable?.$el || this.$refs.detachable, this.minWidth === "activator" && this.activatorEl && (this.activatorWidth = this.activatorEl.offsetWidth), this.noPosition ? this.detachableReady = !0 : this.computeDetachableCoords(), this.timeoutId = setTimeout(() => {
|
|
5423
|
+
this.disable || (this.delay && await new Promise((e) => this.openTimeout = setTimeout(e, this.delay)), !(this.delay && !this.openTimeout) && (this.disable || (this.detachableReady = !1, this._contentEntered = !1, typeof document < "u" && (this.teleportTarget = this.appendToTarget), this.detachableVisible = !0, this.activator && (this.activatorEl = e.target), await this.$nextTick(), this.detachableEl = this.$refs.detachable?.$el || this.$refs.detachable, this.minWidth === "activator" && this.activatorEl && (this.activatorWidth = this.activatorEl.offsetWidth), this.noPosition ? (this.detachableReady = !0, this._maybeFlushAutofocus()) : await this.computeDetachableCoords(), this.timeoutId = setTimeout(() => {
|
|
5370
5424
|
this.$emit("update:modelValue", !0), this.$emit("input", !0), this.$emit("open");
|
|
5371
5425
|
}, 0), typeof document < "u" && !this.persistent && document.addEventListener("mousedown", this.onOutsideMousedown), typeof window < "u" && !this.noPosition && window.addEventListener("resize", this.onResize))));
|
|
5372
5426
|
},
|
|
@@ -5419,14 +5473,14 @@ var Pn = {
|
|
|
5419
5473
|
this.viewportPlacementOverride = null, this.detachableEl.style.display = "flex";
|
|
5420
5474
|
let e = window.getComputedStyle(this.detachableEl, null), t = this.detachableEl.offsetWidth, n = this.detachableEl.offsetHeight, r = this.position;
|
|
5421
5475
|
if (!this.noPosition) {
|
|
5422
|
-
let e =
|
|
5423
|
-
(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 =
|
|
5476
|
+
let e = Bn, i = window.innerWidth, a = window.innerHeight, { top: o, left: s, width: c, height: l } = this.activatorEl.getBoundingClientRect();
|
|
5477
|
+
(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 = Vn(r), this.viewportPlacementOverride = r);
|
|
5424
5478
|
}
|
|
5425
5479
|
let i = this.getActivatorCoordinates(), { top: a, left: o } = this._applyDetachablePlacement(r, i, e);
|
|
5426
5480
|
this.detachableCoords = {
|
|
5427
5481
|
top: a,
|
|
5428
5482
|
left: o
|
|
5429
|
-
}, this.detachableReady = !0, await this.$nextTick(), this.detachableEl && (this.detachableVisible || (this.detachableEl.style.display = "none"));
|
|
5483
|
+
}, this.detachableReady = !0, await this.$nextTick(), this._maybeFlushAutofocus(), this.detachableEl && (this.detachableVisible || (this.detachableEl.style.display = "none"));
|
|
5430
5484
|
},
|
|
5431
5485
|
onResize() {
|
|
5432
5486
|
typeof window > "u" || (this.minWidth === "activator" && this.activatorEl && (this.activatorWidth = this.activatorEl.offsetWidth), this.computeDetachableCoords());
|
|
@@ -5476,7 +5530,7 @@ var Pn = {
|
|
|
5476
5530
|
};
|
|
5477
5531
|
//#endregion
|
|
5478
5532
|
//#region src/wave-ui/components/w-menu.vue?vue&type=template&lang.js
|
|
5479
|
-
function
|
|
5533
|
+
function Un(t, i, a, l, d, p) {
|
|
5480
5534
|
let m = E("w-card"), g = E("w-overlay");
|
|
5481
5535
|
return b(), c(e, null, [
|
|
5482
5536
|
T(t.$slots, "activator"),
|
|
@@ -5488,6 +5542,7 @@ function Fn(t, i, a, l, d, p) {
|
|
|
5488
5542
|
}, [f(r, {
|
|
5489
5543
|
name: p.transitionName,
|
|
5490
5544
|
appear: "",
|
|
5545
|
+
onAfterEnter: t.onDetachableAfterEnter,
|
|
5491
5546
|
onAfterLeave: t.onAfterLeave
|
|
5492
5547
|
}, {
|
|
5493
5548
|
default: M(() => [a.custom && t.detachableVisible ? (b(), c("div", h({
|
|
@@ -5536,7 +5591,11 @@ function Fn(t, i, a, l, d, p) {
|
|
|
5536
5591
|
"style"
|
|
5537
5592
|
])) : s("", !0)]),
|
|
5538
5593
|
_: 3
|
|
5539
|
-
}, 8, [
|
|
5594
|
+
}, 8, [
|
|
5595
|
+
"name",
|
|
5596
|
+
"onAfterEnter",
|
|
5597
|
+
"onAfterLeave"
|
|
5598
|
+
]), a.overlay ? (b(), o(g, h({
|
|
5540
5599
|
key: 0,
|
|
5541
5600
|
ref: "overlay",
|
|
5542
5601
|
"model-value": t.detachableVisible,
|
|
@@ -5553,10 +5612,10 @@ function Fn(t, i, a, l, d, p) {
|
|
|
5553
5612
|
])) : s("", !0)], 8, ["to", "disabled"])) : s("", !0)
|
|
5554
5613
|
], 64);
|
|
5555
5614
|
}
|
|
5556
|
-
var
|
|
5615
|
+
var Wn = /* @__PURE__ */ q({
|
|
5557
5616
|
name: "w-menu",
|
|
5558
5617
|
expose: ["focus"],
|
|
5559
|
-
mixins: [
|
|
5618
|
+
mixins: [Hn],
|
|
5560
5619
|
inheritAttrs: !1,
|
|
5561
5620
|
props: {
|
|
5562
5621
|
modelValue: {},
|
|
@@ -5693,7 +5752,7 @@ var In = /* @__PURE__ */ K({
|
|
|
5693
5752
|
},
|
|
5694
5753
|
methods: {
|
|
5695
5754
|
focus() {
|
|
5696
|
-
this.overlay && this.$refs.overlay ? this.$refs.overlay.focus() :
|
|
5755
|
+
this.overlay && this.$refs.overlay ? this.$refs.overlay.focus() : J(this.activatorEl);
|
|
5697
5756
|
},
|
|
5698
5757
|
toggle(e) {
|
|
5699
5758
|
if (this.disable) return;
|
|
@@ -5704,10 +5763,10 @@ var In = /* @__PURE__ */ K({
|
|
|
5704
5763
|
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)));
|
|
5705
5764
|
}
|
|
5706
5765
|
}
|
|
5707
|
-
}, [["render",
|
|
5766
|
+
}, [["render", Un]]);
|
|
5708
5767
|
//#endregion
|
|
5709
5768
|
//#region src/wave-ui/components/w-notification.vue?vue&type=template&lang.js
|
|
5710
|
-
function
|
|
5769
|
+
function Gn(e, t, n, i, a, l) {
|
|
5711
5770
|
let u = E("w-alert");
|
|
5712
5771
|
return b(), o(r, {
|
|
5713
5772
|
name: l.transitionName,
|
|
@@ -5729,7 +5788,7 @@ function Ln(e, t, n, i, a, l) {
|
|
|
5729
5788
|
_: 3
|
|
5730
5789
|
}, 8, ["name"]);
|
|
5731
5790
|
}
|
|
5732
|
-
var
|
|
5791
|
+
var Kn = /* @__PURE__ */ q({
|
|
5733
5792
|
name: "w-notification",
|
|
5734
5793
|
props: {
|
|
5735
5794
|
modelValue: { default: !0 },
|
|
@@ -5859,10 +5918,10 @@ var Rn = /* @__PURE__ */ K({
|
|
|
5859
5918
|
watch: { modelValue(e) {
|
|
5860
5919
|
clearTimeout(this.timeoutId), this.show = e, e && this.timeoutVal && this.countdown();
|
|
5861
5920
|
} }
|
|
5862
|
-
}, [["render",
|
|
5921
|
+
}, [["render", Gn]]);
|
|
5863
5922
|
//#endregion
|
|
5864
5923
|
//#region src/wave-ui/components/w-overlay.vue?vue&type=template&lang.js
|
|
5865
|
-
function
|
|
5924
|
+
function qn(e, t, n, i, a, l) {
|
|
5866
5925
|
return b(), o(r, {
|
|
5867
5926
|
name: "fade",
|
|
5868
5927
|
appear: "",
|
|
@@ -5879,7 +5938,7 @@ function zn(e, t, n, i, a, l) {
|
|
|
5879
5938
|
_: 3
|
|
5880
5939
|
}, 8, ["onAfterLeave"]);
|
|
5881
5940
|
}
|
|
5882
|
-
var
|
|
5941
|
+
var Jn = /* @__PURE__ */ q({
|
|
5883
5942
|
name: "w-overlay",
|
|
5884
5943
|
expose: ["focus"],
|
|
5885
5944
|
props: {
|
|
@@ -5933,7 +5992,7 @@ var Bn = /* @__PURE__ */ K({
|
|
|
5933
5992
|
},
|
|
5934
5993
|
methods: {
|
|
5935
5994
|
focus() {
|
|
5936
|
-
|
|
5995
|
+
J(this.$refs.overlay);
|
|
5937
5996
|
},
|
|
5938
5997
|
bindDocumentEscape() {
|
|
5939
5998
|
this.documentEscapeBound ||= (document.addEventListener("keydown", this.onDocumentEscape), !0);
|
|
@@ -5963,22 +6022,22 @@ var Bn = /* @__PURE__ */ K({
|
|
|
5963
6022
|
watch: { modelValue(e) {
|
|
5964
6023
|
e ? (this.showOverlay = !0, this.bindDocumentEscape()) : this.unbindDocumentEscape();
|
|
5965
6024
|
} }
|
|
5966
|
-
}, [["render",
|
|
5967
|
-
function
|
|
5968
|
-
return b(), c("div",
|
|
6025
|
+
}, [["render", qn]]), Yn = { class: "w-parallax" };
|
|
6026
|
+
function Xn(e, t, n, r, i, a) {
|
|
6027
|
+
return b(), c("div", Yn);
|
|
5969
6028
|
}
|
|
5970
|
-
var
|
|
6029
|
+
var Zn = /* @__PURE__ */ q({
|
|
5971
6030
|
name: "w-parallax",
|
|
5972
6031
|
props: {},
|
|
5973
6032
|
emits: [],
|
|
5974
6033
|
data: () => ({})
|
|
5975
|
-
}, [["render",
|
|
6034
|
+
}, [["render", Xn]]), Qn = ["viewBox"], $n = [
|
|
5976
6035
|
"cx",
|
|
5977
6036
|
"cy",
|
|
5978
6037
|
"r",
|
|
5979
6038
|
"stroke-dasharray",
|
|
5980
6039
|
"stroke-width"
|
|
5981
|
-
],
|
|
6040
|
+
], er = [
|
|
5982
6041
|
"cx",
|
|
5983
6042
|
"cy",
|
|
5984
6043
|
"r",
|
|
@@ -5986,7 +6045,7 @@ var Un = /* @__PURE__ */ K({
|
|
|
5986
6045
|
"stroke-linecap",
|
|
5987
6046
|
"stroke-dasharray"
|
|
5988
6047
|
];
|
|
5989
|
-
function
|
|
6048
|
+
function tr(e, t, n, r, i, a) {
|
|
5990
6049
|
return b(), c("div", {
|
|
5991
6050
|
class: _(["w-progress", a.classes]),
|
|
5992
6051
|
style: y(a.styles)
|
|
@@ -6002,7 +6061,7 @@ function qn(e, t, n, r, i, a) {
|
|
|
6002
6061
|
fill: "transparent",
|
|
6003
6062
|
"stroke-dasharray": e.circleCircumference,
|
|
6004
6063
|
"stroke-width": n.stroke
|
|
6005
|
-
}, null, 10,
|
|
6064
|
+
}, null, 10, $n)) : s("", !0), l("circle", {
|
|
6006
6065
|
class: "w-progress__progress",
|
|
6007
6066
|
cx: a.circleCenter,
|
|
6008
6067
|
cy: a.circleCenter,
|
|
@@ -6012,7 +6071,7 @@ function qn(e, t, n, r, i, a) {
|
|
|
6012
6071
|
"stroke-linecap": n.roundCap && "round",
|
|
6013
6072
|
"stroke-dasharray": e.circleCircumference,
|
|
6014
6073
|
style: y(`stroke-dashoffset: ${(1 - a.progressValue / 100) * e.circleCircumference}`)
|
|
6015
|
-
}, null, 12,
|
|
6074
|
+
}, null, 12, er)], 8, Qn)) : (b(), c("div", {
|
|
6016
6075
|
key: 0,
|
|
6017
6076
|
class: _(["w-progress__progress", { full: a.progressValue === 100 }]),
|
|
6018
6077
|
style: y(`width: ${a.progressValue}%`)
|
|
@@ -6023,7 +6082,7 @@ function qn(e, t, n, r, i, a) {
|
|
|
6023
6082
|
}
|
|
6024
6083
|
//#endregion
|
|
6025
6084
|
//#region src/wave-ui/components/w-progress.vue
|
|
6026
|
-
var
|
|
6085
|
+
var nr = 40, rr = nr / 2, ir = Math.round(nr * 3.14 * 100) / 100, ar = /* @__PURE__ */ q({
|
|
6027
6086
|
name: "w-progress",
|
|
6028
6087
|
props: {
|
|
6029
6088
|
modelValue: {
|
|
@@ -6065,16 +6124,16 @@ var Jn = 40, Yn = Jn / 2, Xn = Math.round(Jn * 3.14 * 100) / 100, Zn = /* @__PUR
|
|
|
6065
6124
|
},
|
|
6066
6125
|
emits: [],
|
|
6067
6126
|
data: () => ({
|
|
6068
|
-
circleSize:
|
|
6069
|
-
circleRadius:
|
|
6070
|
-
circleCircumference:
|
|
6127
|
+
circleSize: nr,
|
|
6128
|
+
circleRadius: rr,
|
|
6129
|
+
circleCircumference: ir
|
|
6071
6130
|
}),
|
|
6072
6131
|
computed: {
|
|
6073
6132
|
progressValue() {
|
|
6074
6133
|
return parseFloat(this.modelValue);
|
|
6075
6134
|
},
|
|
6076
6135
|
circleCenter() {
|
|
6077
|
-
return
|
|
6136
|
+
return nr + this.stroke;
|
|
6078
6137
|
},
|
|
6079
6138
|
forcedSize() {
|
|
6080
6139
|
return this.size && (isNaN(this.size) ? this.size : `${this.size}px`);
|
|
@@ -6104,7 +6163,7 @@ var Jn = 40, Yn = Jn / 2, Xn = Math.round(Jn * 3.14 * 100) / 100, Zn = /* @__PUR
|
|
|
6104
6163
|
return { [this.circle ? "width" : "height"]: this.forcedSize || null };
|
|
6105
6164
|
}
|
|
6106
6165
|
}
|
|
6107
|
-
}, [["render",
|
|
6166
|
+
}, [["render", tr]]), or = [
|
|
6108
6167
|
"id",
|
|
6109
6168
|
"name",
|
|
6110
6169
|
"checked",
|
|
@@ -6112,8 +6171,8 @@ var Jn = 40, Yn = Jn / 2, Xn = Math.round(Jn * 3.14 * 100) / 100, Zn = /* @__PUR
|
|
|
6112
6171
|
"required",
|
|
6113
6172
|
"tabindex",
|
|
6114
6173
|
"aria-checked"
|
|
6115
|
-
],
|
|
6116
|
-
function
|
|
6174
|
+
], sr = ["for"], cr = ["for", "innerHTML"], lr = ["for"], ur = ["for", "innerHTML"];
|
|
6175
|
+
function dr(t, n, r, i, a, u) {
|
|
6117
6176
|
return b(), o(D(t.formRegister && !u.wRadios ? "w-form-element" : "div"), h({ ref: "formEl" }, t.formRegister && {
|
|
6118
6177
|
validators: t.validators,
|
|
6119
6178
|
inputValue: t.inputValue,
|
|
@@ -6142,17 +6201,17 @@ function rr(t, n, r, i, a, u) {
|
|
|
6142
6201
|
onChange: n[1] ||= (e) => u.onInput(e),
|
|
6143
6202
|
"aria-checked": t.inputValue || "false",
|
|
6144
6203
|
role: "radio"
|
|
6145
|
-
}, null, 40,
|
|
6204
|
+
}, null, 40, or),
|
|
6146
6205
|
u.hasLabel && r.labelOnLeft ? (b(), c(e, { key: 0 }, [t.$slots.default ? (b(), c("label", {
|
|
6147
6206
|
key: 0,
|
|
6148
6207
|
class: _(["w-radio__label w-form-el-shakable pr2", t.labelClasses]),
|
|
6149
6208
|
for: t.inputId
|
|
6150
|
-
}, [T(t.$slots, "default", {}, () => [d(O(r.label), 1)])], 10,
|
|
6209
|
+
}, [T(t.$slots, "default", {}, () => [d(O(r.label), 1)])], 10, sr)) : r.label ? (b(), c("label", {
|
|
6151
6210
|
key: 1,
|
|
6152
6211
|
class: _(["w-radio__label w-form-el-shakable pr2", t.labelClasses]),
|
|
6153
6212
|
for: t.inputId,
|
|
6154
6213
|
innerHTML: r.label
|
|
6155
|
-
}, null, 10,
|
|
6214
|
+
}, null, 10, cr)) : s("", !0)], 64)) : s("", !0),
|
|
6156
6215
|
l("div", {
|
|
6157
6216
|
class: _(["w-radio__input", this.color]),
|
|
6158
6217
|
onClick: n[2] ||= (e) => {
|
|
@@ -6163,17 +6222,17 @@ function rr(t, n, r, i, a, u) {
|
|
|
6163
6222
|
key: 0,
|
|
6164
6223
|
class: _(["w-radio__label w-form-el-shakable pl2", t.labelClasses]),
|
|
6165
6224
|
for: t.inputId
|
|
6166
|
-
}, [T(t.$slots, "default", {}, () => [d(O(r.label), 1)])], 10,
|
|
6225
|
+
}, [T(t.$slots, "default", {}, () => [d(O(r.label), 1)])], 10, lr)) : r.label ? (b(), c("label", {
|
|
6167
6226
|
key: 1,
|
|
6168
6227
|
class: _(["w-radio__label w-form-el-shakable pl2", t.labelClasses]),
|
|
6169
6228
|
for: t.inputId,
|
|
6170
6229
|
innerHTML: r.label
|
|
6171
|
-
}, null, 10,
|
|
6230
|
+
}, null, 10, ur)) : s("", !0)], 64)) : s("", !0)
|
|
6172
6231
|
]),
|
|
6173
6232
|
_: 3
|
|
6174
6233
|
}, 16, ["valid", "class"]);
|
|
6175
6234
|
}
|
|
6176
|
-
var
|
|
6235
|
+
var fr = /* @__PURE__ */ q({
|
|
6177
6236
|
name: "w-radio",
|
|
6178
6237
|
expose: ["focus"],
|
|
6179
6238
|
mixins: [Q, $],
|
|
@@ -6254,8 +6313,8 @@ var ir = /* @__PURE__ */ K({
|
|
|
6254
6313
|
watch: { modelValue() {
|
|
6255
6314
|
this.toggleFromOutside();
|
|
6256
6315
|
} }
|
|
6257
|
-
}, [["render",
|
|
6258
|
-
function
|
|
6316
|
+
}, [["render", dr]]), pr = ["innerHTML"];
|
|
6317
|
+
function mr(t, n, r, i, a, l) {
|
|
6259
6318
|
let u = E("w-radio");
|
|
6260
6319
|
return b(), o(D(t.formRegister ? "w-form-element" : "div"), h({ ref: "formEl" }, t.formRegister && {
|
|
6261
6320
|
validators: t.validators,
|
|
@@ -6299,7 +6358,7 @@ function or(t, n, r, i, a, l) {
|
|
|
6299
6358
|
}) : e.label ? (b(), c("div", {
|
|
6300
6359
|
key: 1,
|
|
6301
6360
|
innerHTML: e.label
|
|
6302
|
-
}, null, 8,
|
|
6361
|
+
}, null, 8, pr)) : s("", !0)]),
|
|
6303
6362
|
_: 2
|
|
6304
6363
|
}, 1040, [
|
|
6305
6364
|
"model-value",
|
|
@@ -6317,8 +6376,9 @@ function or(t, n, r, i, a, l) {
|
|
|
6317
6376
|
"class"
|
|
6318
6377
|
]);
|
|
6319
6378
|
}
|
|
6320
|
-
var
|
|
6379
|
+
var hr = /* @__PURE__ */ q({
|
|
6321
6380
|
name: "w-radios",
|
|
6381
|
+
focusable: !0,
|
|
6322
6382
|
expose: ["focus"],
|
|
6323
6383
|
mixins: [Q],
|
|
6324
6384
|
setup() {
|
|
@@ -6394,7 +6454,7 @@ var sr = /* @__PURE__ */ K({
|
|
|
6394
6454
|
},
|
|
6395
6455
|
methods: {
|
|
6396
6456
|
focus() {
|
|
6397
|
-
|
|
6457
|
+
We(this) && [].concat(this.$refs.item || []).filter(Boolean).find((e) => !e.isDisabled && !e.isReadonly)?.focus?.();
|
|
6398
6458
|
},
|
|
6399
6459
|
onInput(e) {
|
|
6400
6460
|
this.inputValue = !0, this.$emit("update:modelValue", e.value), this.$emit("input", e.value);
|
|
@@ -6403,17 +6463,17 @@ var sr = /* @__PURE__ */ K({
|
|
|
6403
6463
|
return this.items[e._index];
|
|
6404
6464
|
}
|
|
6405
6465
|
}
|
|
6406
|
-
}, [["render",
|
|
6466
|
+
}, [["render", mr]]), gr = [
|
|
6407
6467
|
"id",
|
|
6408
6468
|
"name",
|
|
6409
6469
|
"value"
|
|
6410
|
-
],
|
|
6470
|
+
], _r = [
|
|
6411
6471
|
"disabled",
|
|
6412
6472
|
"onMouseenter",
|
|
6413
6473
|
"onClick",
|
|
6414
6474
|
"tabindex"
|
|
6415
6475
|
];
|
|
6416
|
-
function
|
|
6476
|
+
function vr(t, n, r, i, a, u) {
|
|
6417
6477
|
return b(), o(D(t.formRegister ? "w-form-element" : "div"), h({ ref: "formEl" }, t.formRegister && {
|
|
6418
6478
|
validators: t.validators,
|
|
6419
6479
|
inputValue: a.rating,
|
|
@@ -6433,7 +6493,7 @@ function ur(t, n, r, i, a, u) {
|
|
|
6433
6493
|
name: t.inputName,
|
|
6434
6494
|
type: "hidden",
|
|
6435
6495
|
value: a.rating
|
|
6436
|
-
}, null, 8,
|
|
6496
|
+
}, null, 8, gr), (b(!0), c(e, null, w(r.max, (i) => (b(), c(e, { key: i }, [t.$slots.item ? T(t.$slots, "item", {
|
|
6437
6497
|
key: 0,
|
|
6438
6498
|
index: i + 1
|
|
6439
6499
|
}) : s("", !0), l("button", {
|
|
@@ -6453,12 +6513,13 @@ function ur(t, n, r, i, a, u) {
|
|
|
6453
6513
|
role: "icon",
|
|
6454
6514
|
"aria-hidden": "true",
|
|
6455
6515
|
style: y(u.halfStarStyle)
|
|
6456
|
-
}, null, 6)) : s("", !0)], 42,
|
|
6516
|
+
}, null, 6)) : s("", !0)], 42, _r)], 64))), 128))]),
|
|
6457
6517
|
_: 3
|
|
6458
6518
|
}, 16, ["valid", "class"]);
|
|
6459
6519
|
}
|
|
6460
|
-
var
|
|
6520
|
+
var yr = /* @__PURE__ */ q({
|
|
6461
6521
|
name: "w-rating",
|
|
6522
|
+
focusable: !0,
|
|
6462
6523
|
expose: ["focus"],
|
|
6463
6524
|
mixins: [Q],
|
|
6464
6525
|
setup() {
|
|
@@ -6529,7 +6590,7 @@ var dr = /* @__PURE__ */ K({
|
|
|
6529
6590
|
},
|
|
6530
6591
|
methods: {
|
|
6531
6592
|
focus() {
|
|
6532
|
-
|
|
6593
|
+
We(this) && J(this.$el.querySelector(".w-rating__button:not([disabled])"));
|
|
6533
6594
|
},
|
|
6534
6595
|
onButtonClick(e) {
|
|
6535
6596
|
this.rating = e, this.$emit("update:modelValue", this.rating), this.$emit("input", this.rating), this.noRipple || (this.ripple.start = !0, this.ripple.timeout = setTimeout(() => {
|
|
@@ -6569,14 +6630,17 @@ var dr = /* @__PURE__ */ K({
|
|
|
6569
6630
|
watch: { value(e) {
|
|
6570
6631
|
this.rating = parseFloat(e);
|
|
6571
6632
|
} }
|
|
6572
|
-
}, [["render",
|
|
6633
|
+
}, [["render", vr]]), br = ["tabindex", "aria-disabled"], xr = ["id"], Sr = [
|
|
6573
6634
|
"aria-controls",
|
|
6574
6635
|
"aria-orientation",
|
|
6575
6636
|
"aria-valuemax",
|
|
6576
6637
|
"aria-valuenow",
|
|
6577
6638
|
"aria-disabled",
|
|
6578
6639
|
"aria-label"
|
|
6579
|
-
],
|
|
6640
|
+
], Cr = 120, wr = 450, Tr = /* @__PURE__ */ Object.assign({
|
|
6641
|
+
name: "WScrollable",
|
|
6642
|
+
focusable: !0
|
|
6643
|
+
}, {
|
|
6580
6644
|
__name: "w-scrollable",
|
|
6581
6645
|
props: {
|
|
6582
6646
|
color: {
|
|
@@ -6650,11 +6714,11 @@ var dr = /* @__PURE__ */ K({
|
|
|
6650
6714
|
deltaXorY: "deltaY",
|
|
6651
6715
|
scrollTopOrLeft: "scrollTop"
|
|
6652
6716
|
}
|
|
6653
|
-
}, s =
|
|
6717
|
+
}, s = A(), u = ie(), d = S(null), f = S(null), p = S(null), m = S(null), v = S(!1), x = S(!1), C = S(!1), w = S(0), E = S(0), ne = S("native"), D = S(!1), O = S(!1), k = S({
|
|
6654
6718
|
offset: 0,
|
|
6655
6719
|
trackStart: 0,
|
|
6656
6720
|
trackSize: 0
|
|
6657
|
-
}),
|
|
6721
|
+
}), ae = S(null), j = null, M = null, P = null, ce = "", I = a(() => r.horizontal), L = a(() => o[I.value ? "h" : "v"]), le = a(() => r.disabled ? -1 : r.tabindex), R = a(() => {
|
|
6658
6722
|
let e = r.scrollbar;
|
|
6659
6723
|
return e === 0 || e === "0" ? "off" : e === 1 || e === "1" ? "always" : e === "hover" ? "hover" : e === "interaction" ? "interaction" : "always";
|
|
6660
6724
|
}), z = a(() => R.value !== "off"), ue = a(() => ({
|
|
@@ -6687,17 +6751,17 @@ var dr = /* @__PURE__ */ K({
|
|
|
6687
6751
|
let xe = a(() => ({
|
|
6688
6752
|
"max-width": be(r.width),
|
|
6689
6753
|
"max-height": be(r.height)
|
|
6690
|
-
})),
|
|
6691
|
-
let e = Math.max(0, 100 - ve.value), t =
|
|
6754
|
+
})), H = a(() => {
|
|
6755
|
+
let e = Math.max(0, 100 - ve.value), t = U(w.value / 100 * e, 0, e);
|
|
6692
6756
|
return {
|
|
6693
6757
|
[L.value.size]: `${ve.value}%`,
|
|
6694
6758
|
[L.value.topOrLeft]: `${t}%`
|
|
6695
6759
|
};
|
|
6696
6760
|
});
|
|
6697
|
-
function
|
|
6761
|
+
function U(e, t, n) {
|
|
6698
6762
|
return Math.max(t, Math.min(e, n));
|
|
6699
6763
|
}
|
|
6700
|
-
function
|
|
6764
|
+
function Se(e) {
|
|
6701
6765
|
if (!e || e === d.value) return !1;
|
|
6702
6766
|
let t = e.tagName;
|
|
6703
6767
|
return t ? e.isContentEditable ? !0 : [
|
|
@@ -6707,7 +6771,7 @@ var dr = /* @__PURE__ */ K({
|
|
|
6707
6771
|
"BUTTON"
|
|
6708
6772
|
].includes(t) : !1;
|
|
6709
6773
|
}
|
|
6710
|
-
function
|
|
6774
|
+
function Ce(e = "native") {
|
|
6711
6775
|
if (!f.value) return {
|
|
6712
6776
|
top: 0,
|
|
6713
6777
|
left: 0,
|
|
@@ -6728,113 +6792,113 @@ var dr = /* @__PURE__ */ K({
|
|
|
6728
6792
|
source: e
|
|
6729
6793
|
};
|
|
6730
6794
|
}
|
|
6731
|
-
function
|
|
6732
|
-
let t =
|
|
6795
|
+
function we(e = "native") {
|
|
6796
|
+
let t = Ce(e);
|
|
6733
6797
|
i("scroll", t), O.value || (O.value = !0, i("scroll-start", t)), j && window.clearTimeout(j), j = window.setTimeout(() => {
|
|
6734
|
-
O.value = !1, i("scroll-end",
|
|
6735
|
-
},
|
|
6798
|
+
O.value = !1, i("scroll-end", Ce("native"));
|
|
6799
|
+
}, Cr);
|
|
6736
6800
|
}
|
|
6737
|
-
function
|
|
6801
|
+
function Te() {
|
|
6738
6802
|
v.value = !0;
|
|
6739
6803
|
}
|
|
6740
|
-
function
|
|
6804
|
+
function Ee() {
|
|
6741
6805
|
v.value = !1;
|
|
6742
6806
|
}
|
|
6743
|
-
function
|
|
6807
|
+
function W() {
|
|
6744
6808
|
f.value && (w.value = V.value ? f.value[L.value.scrollTopOrLeft] * 100 / V.value : 0);
|
|
6745
6809
|
}
|
|
6746
|
-
function
|
|
6810
|
+
function G(e, t = "api") {
|
|
6747
6811
|
if (!f.value) return;
|
|
6748
|
-
let n =
|
|
6812
|
+
let n = U(e, 0, V.value), r = f.value[L.value.scrollTopOrLeft];
|
|
6749
6813
|
if (ne.value = t, Math.abs(r - n) < 1) {
|
|
6750
|
-
|
|
6814
|
+
W(), we(t);
|
|
6751
6815
|
return;
|
|
6752
6816
|
}
|
|
6753
|
-
(t === "wheel" || t === "keyboard") &&
|
|
6817
|
+
(t === "wheel" || t === "keyboard") && q(), D.value = !0, f.value[L.value.scrollTopOrLeft] = n, W(), we(t);
|
|
6754
6818
|
}
|
|
6755
|
-
function
|
|
6756
|
-
|
|
6819
|
+
function De(e, t = "api") {
|
|
6820
|
+
G(U(e, 0, 100) / 100 * V.value, t);
|
|
6757
6821
|
}
|
|
6758
|
-
function
|
|
6822
|
+
function K() {
|
|
6759
6823
|
g(() => {
|
|
6760
|
-
E.value++,
|
|
6761
|
-
E.value++,
|
|
6824
|
+
E.value++, W(), requestAnimationFrame(() => {
|
|
6825
|
+
E.value++, W();
|
|
6762
6826
|
});
|
|
6763
6827
|
});
|
|
6764
6828
|
}
|
|
6765
|
-
function
|
|
6829
|
+
function Oe() {
|
|
6766
6830
|
if (D.value) {
|
|
6767
6831
|
D.value = !1;
|
|
6768
6832
|
return;
|
|
6769
6833
|
}
|
|
6770
|
-
|
|
6834
|
+
W(), we(ne.value), ne.value = "native";
|
|
6771
6835
|
}
|
|
6772
|
-
function
|
|
6836
|
+
function ke(e) {
|
|
6773
6837
|
let t = e.deltaX || 0, n = e.deltaY || 0, i = 0;
|
|
6774
6838
|
return I.value ? (i = Math.abs(t) >= Math.abs(n) ? t : n, !i && e.shiftKey && (i = n)) : i = Math.abs(n) >= Math.abs(t) ? n : t, f.value ? e.deltaMode === 1 ? i * r.wheelStep : e.deltaMode === 2 ? i * f.value[L.value.clientSize] : i : i;
|
|
6775
6839
|
}
|
|
6776
|
-
function
|
|
6840
|
+
function q() {
|
|
6777
6841
|
x.value = !0, M && window.clearTimeout(M), M = window.setTimeout(() => {
|
|
6778
6842
|
x.value = !1, M = null;
|
|
6779
|
-
},
|
|
6843
|
+
}, wr);
|
|
6780
6844
|
}
|
|
6781
|
-
function
|
|
6845
|
+
function Ae() {
|
|
6782
6846
|
let e = r.scrollPosition;
|
|
6783
6847
|
if (e == null || !f.value) return;
|
|
6784
6848
|
if (typeof e == "number") {
|
|
6785
6849
|
if (Number.isNaN(e)) return;
|
|
6786
|
-
|
|
6850
|
+
G(e, "api");
|
|
6787
6851
|
return;
|
|
6788
6852
|
}
|
|
6789
6853
|
if (typeof e != "object" || !e) return;
|
|
6790
6854
|
let t = f.value, n = Math.max(0, t.scrollHeight - t.clientHeight), i = Math.max(0, t.scrollWidth - t.clientWidth), a = "top" in e && e.top != null && typeof e.top == "number" && !Number.isNaN(e.top), o = "left" in e && e.left != null && typeof e.left == "number" && !Number.isNaN(e.left);
|
|
6791
6855
|
if (a || o) {
|
|
6792
|
-
D.value = !0, a && (t.scrollTop =
|
|
6856
|
+
D.value = !0, a && (t.scrollTop = U(e.top, 0, n)), o && (t.scrollLeft = U(e.left, 0, i)), W(), we("api");
|
|
6793
6857
|
return;
|
|
6794
6858
|
}
|
|
6795
6859
|
let s = I.value ? e.left ?? e.top : e.top ?? e.left;
|
|
6796
|
-
typeof s == "number" && !Number.isNaN(s) &&
|
|
6860
|
+
typeof s == "number" && !Number.isNaN(s) && G(s, "api");
|
|
6797
6861
|
}
|
|
6798
|
-
function
|
|
6862
|
+
function je(e) {
|
|
6799
6863
|
e ? (ce = document.documentElement.style.cursor, document.documentElement.style.cursor = "grabbing") : (document.documentElement.style.cursor = ce, ce = "");
|
|
6800
6864
|
}
|
|
6801
|
-
function
|
|
6802
|
-
document.addEventListener("pointermove",
|
|
6865
|
+
function Me() {
|
|
6866
|
+
document.addEventListener("pointermove", Ve, !0), document.addEventListener("pointerup", He, !0), document.addEventListener("pointercancel", He, !0);
|
|
6803
6867
|
}
|
|
6804
|
-
function
|
|
6805
|
-
document.removeEventListener("pointermove",
|
|
6868
|
+
function Ne() {
|
|
6869
|
+
document.removeEventListener("pointermove", Ve, !0), document.removeEventListener("pointerup", He, !0), document.removeEventListener("pointercancel", He, !0);
|
|
6806
6870
|
}
|
|
6807
|
-
function
|
|
6871
|
+
function Pe(e) {
|
|
6808
6872
|
if (r.disabled || !B.value) return;
|
|
6809
6873
|
if (e.metaKey) {
|
|
6810
|
-
let t =
|
|
6874
|
+
let t = ke(e);
|
|
6811
6875
|
if (!t) return;
|
|
6812
|
-
e.preventDefault(),
|
|
6876
|
+
e.preventDefault(), G(t < 0 ? 0 : V.value, "wheel");
|
|
6813
6877
|
return;
|
|
6814
6878
|
}
|
|
6815
|
-
let t =
|
|
6879
|
+
let t = ke(e);
|
|
6816
6880
|
if (!t) return;
|
|
6817
|
-
let n = f.value[L.value.scrollTopOrLeft], i =
|
|
6818
|
-
a || o || (e.preventDefault(),
|
|
6881
|
+
let n = f.value[L.value.scrollTopOrLeft], i = U(n + t, 0, V.value), a = n <= 0 && t < 0, o = n >= V.value && t > 0;
|
|
6882
|
+
a || o || (e.preventDefault(), G(i, "wheel"));
|
|
6819
6883
|
}
|
|
6820
|
-
function
|
|
6821
|
-
if (r.disabled || !B.value ||
|
|
6884
|
+
function Fe(e) {
|
|
6885
|
+
if (r.disabled || !B.value || Se(e.target)) return;
|
|
6822
6886
|
let t = f.value[L.value.scrollTopOrLeft], n = r.wheelStep, i = f.value[L.value.clientSize], a = null;
|
|
6823
6887
|
if (e.metaKey) {
|
|
6824
6888
|
if (e.key === "ArrowUp" && !I.value) {
|
|
6825
|
-
e.preventDefault(),
|
|
6889
|
+
e.preventDefault(), G(0, "keyboard");
|
|
6826
6890
|
return;
|
|
6827
6891
|
}
|
|
6828
6892
|
if (e.key === "ArrowDown" && !I.value) {
|
|
6829
|
-
e.preventDefault(),
|
|
6893
|
+
e.preventDefault(), G(V.value, "keyboard");
|
|
6830
6894
|
return;
|
|
6831
6895
|
}
|
|
6832
6896
|
if (e.key === "ArrowLeft" && I.value) {
|
|
6833
|
-
e.preventDefault(),
|
|
6897
|
+
e.preventDefault(), G(0, "keyboard");
|
|
6834
6898
|
return;
|
|
6835
6899
|
}
|
|
6836
6900
|
if (e.key === "ArrowRight" && I.value) {
|
|
6837
|
-
e.preventDefault(),
|
|
6901
|
+
e.preventDefault(), G(V.value, "keyboard");
|
|
6838
6902
|
return;
|
|
6839
6903
|
}
|
|
6840
6904
|
}
|
|
@@ -6864,105 +6928,105 @@ var dr = /* @__PURE__ */ K({
|
|
|
6864
6928
|
a = V.value;
|
|
6865
6929
|
break;
|
|
6866
6930
|
}
|
|
6867
|
-
a !== null && (e.preventDefault(),
|
|
6931
|
+
a !== null && (e.preventDefault(), G(a, "keyboard"));
|
|
6868
6932
|
}
|
|
6869
|
-
function
|
|
6933
|
+
function Ie(e, t, n) {
|
|
6870
6934
|
if (!p.value) return;
|
|
6871
6935
|
let r = p.value.getBoundingClientRect();
|
|
6872
6936
|
k.value.trackStart = r[L.value.topOrLeft], k.value.trackSize = r[L.value.size], k.value.offset = Number.isFinite(t) ? t : 0, C.value = !0;
|
|
6873
6937
|
let i = n?.pointerId;
|
|
6874
6938
|
if (i != null && d.value?.setPointerCapture) try {
|
|
6875
|
-
d.value.setPointerCapture(i),
|
|
6939
|
+
d.value.setPointerCapture(i), ae.value = i;
|
|
6876
6940
|
} catch {
|
|
6877
|
-
|
|
6941
|
+
ae.value = null;
|
|
6878
6942
|
}
|
|
6879
|
-
|
|
6943
|
+
je(!0), Le(e), Me();
|
|
6880
6944
|
}
|
|
6881
|
-
function
|
|
6945
|
+
function Le(e) {
|
|
6882
6946
|
if (!C.value || !k.value.trackSize) return;
|
|
6883
6947
|
let t = k.value.trackSize * (ve.value / 100), n = Math.max(1, k.value.trackSize - t);
|
|
6884
|
-
|
|
6948
|
+
De(U(e - k.value.trackStart - k.value.offset, 0, n) / n * 100, "drag");
|
|
6885
6949
|
}
|
|
6886
|
-
function
|
|
6887
|
-
if (
|
|
6950
|
+
function Re() {
|
|
6951
|
+
if (ae.value != null && d.value?.releasePointerCapture) {
|
|
6888
6952
|
try {
|
|
6889
|
-
d.value.releasePointerCapture(
|
|
6953
|
+
d.value.releasePointerCapture(ae.value);
|
|
6890
6954
|
} catch {}
|
|
6891
|
-
|
|
6955
|
+
ae.value = null;
|
|
6892
6956
|
}
|
|
6893
|
-
|
|
6957
|
+
je(!1), C.value = !1, Ne();
|
|
6894
6958
|
}
|
|
6895
|
-
function
|
|
6959
|
+
function ze(e) {
|
|
6896
6960
|
if (r.disabled || e.button !== 0 && e.pointerType !== "touch") return;
|
|
6897
|
-
|
|
6961
|
+
Re();
|
|
6898
6962
|
let t = m.value?.getBoundingClientRect(), n = t ? t[L.value.size] / 2 : 0;
|
|
6899
|
-
|
|
6963
|
+
Ie(e[L.value.clientXorY], n, e);
|
|
6900
6964
|
}
|
|
6901
|
-
function
|
|
6965
|
+
function Be(e) {
|
|
6902
6966
|
if (r.disabled || e.button !== 0 && e.pointerType !== "touch") return;
|
|
6903
|
-
|
|
6967
|
+
Re();
|
|
6904
6968
|
let t = m.value?.getBoundingClientRect(), n = t ? e[L.value.clientXorY] - t[L.value.topOrLeft] : 0;
|
|
6905
|
-
|
|
6969
|
+
Ie(e[L.value.clientXorY], n, e);
|
|
6906
6970
|
}
|
|
6907
|
-
function
|
|
6908
|
-
C.value && (e.cancelable && e.preventDefault(),
|
|
6971
|
+
function Ve(e) {
|
|
6972
|
+
C.value && (e.cancelable && e.preventDefault(), Le(e[L.value.clientXorY]));
|
|
6909
6973
|
}
|
|
6910
|
-
function
|
|
6911
|
-
C.value &&
|
|
6974
|
+
function He() {
|
|
6975
|
+
C.value && Re();
|
|
6912
6976
|
}
|
|
6913
|
-
function
|
|
6977
|
+
function Ue(e = w.value) {
|
|
6914
6978
|
if (typeof e == "number") {
|
|
6915
|
-
|
|
6979
|
+
De(e, "api");
|
|
6916
6980
|
return;
|
|
6917
6981
|
}
|
|
6918
|
-
e && typeof e == "object" &&
|
|
6982
|
+
e && typeof e == "object" && J(e);
|
|
6919
6983
|
}
|
|
6920
|
-
function
|
|
6984
|
+
function J({ top: e, left: t, behavior: n = "auto" } = {}) {
|
|
6921
6985
|
let r = I.value ? t ?? e : e ?? t;
|
|
6922
|
-
typeof r == "number" &&
|
|
6986
|
+
typeof r == "number" && G(r, "api");
|
|
6923
6987
|
}
|
|
6924
6988
|
function We({ top: e = 0, left: t = 0, behavior: n = "auto" } = {}) {
|
|
6925
6989
|
if (!f.value) return;
|
|
6926
6990
|
let r = I.value ? t : e;
|
|
6927
|
-
|
|
6991
|
+
G(f.value[L.value.scrollTopOrLeft] + r, "api");
|
|
6928
6992
|
}
|
|
6929
6993
|
function Ge() {
|
|
6930
|
-
|
|
6994
|
+
G(0, "api");
|
|
6931
6995
|
}
|
|
6932
6996
|
function Ke() {
|
|
6933
|
-
|
|
6997
|
+
G(V.value, "api");
|
|
6934
6998
|
}
|
|
6935
|
-
function
|
|
6999
|
+
function qe() {
|
|
6936
7000
|
d.value?.focus();
|
|
6937
7001
|
}
|
|
6938
7002
|
return te(() => {
|
|
6939
|
-
|
|
7003
|
+
K(), window.addEventListener("resize", K), typeof ResizeObserver < "u" && f.value && (P = new ResizeObserver(() => K()), P.observe(f.value)), g(() => {
|
|
6940
7004
|
requestAnimationFrame(() => {
|
|
6941
|
-
|
|
7005
|
+
Ae(), W();
|
|
6942
7006
|
});
|
|
6943
7007
|
});
|
|
6944
7008
|
}), se(() => [
|
|
6945
7009
|
r.horizontal,
|
|
6946
7010
|
r.width,
|
|
6947
7011
|
r.height
|
|
6948
|
-
], () =>
|
|
7012
|
+
], () => K()), se(() => r.scrollPosition, () => {
|
|
6949
7013
|
r.scrollPosition != null && g(() => {
|
|
6950
|
-
|
|
7014
|
+
Ae(), W();
|
|
6951
7015
|
});
|
|
6952
7016
|
}, { deep: !0 }), se(I, () => {
|
|
6953
7017
|
r.scrollPosition != null && g(() => {
|
|
6954
|
-
|
|
7018
|
+
Ae(), W();
|
|
6955
7019
|
});
|
|
6956
7020
|
}), ee(() => {
|
|
6957
|
-
window.removeEventListener("resize",
|
|
7021
|
+
window.removeEventListener("resize", K), Re(), j && window.clearTimeout(j), M && window.clearTimeout(M), P && f.value && P.unobserve(f.value), P = null;
|
|
6958
7022
|
}), t({
|
|
6959
|
-
scroll:
|
|
6960
|
-
scrollTo:
|
|
7023
|
+
scroll: Ue,
|
|
7024
|
+
scrollTo: J,
|
|
6961
7025
|
scrollBy: We,
|
|
6962
7026
|
scrollToStart: Ge,
|
|
6963
7027
|
scrollToEnd: Ke,
|
|
6964
|
-
focus:
|
|
6965
|
-
refresh:
|
|
7028
|
+
focus: qe,
|
|
7029
|
+
refresh: K
|
|
6966
7030
|
}), (e, t) => (b(), c("div", h({
|
|
6967
7031
|
class: "w-scrollable",
|
|
6968
7032
|
ref_key: "rootEl",
|
|
@@ -6971,10 +7035,10 @@ var dr = /* @__PURE__ */ K({
|
|
|
6971
7035
|
tabindex: le.value,
|
|
6972
7036
|
role: "region",
|
|
6973
7037
|
"aria-disabled": r.disabled ? "true" : void 0,
|
|
6974
|
-
onMouseenter:
|
|
6975
|
-
onMouseleave:
|
|
6976
|
-
onWheel:
|
|
6977
|
-
onKeydown:
|
|
7038
|
+
onMouseenter: Te,
|
|
7039
|
+
onMouseleave: Ee,
|
|
7040
|
+
onWheel: Pe,
|
|
7041
|
+
onKeydown: Fe,
|
|
6978
7042
|
class: ue.value,
|
|
6979
7043
|
style: xe.value
|
|
6980
7044
|
}), [l("div", {
|
|
@@ -6982,18 +7046,18 @@ var dr = /* @__PURE__ */ K({
|
|
|
6982
7046
|
id: re(s),
|
|
6983
7047
|
ref_key: "scrollableEl",
|
|
6984
7048
|
ref: f,
|
|
6985
|
-
onScroll:
|
|
6986
|
-
}, [T(e.$slots, "default")], 42,
|
|
7049
|
+
onScroll: Oe
|
|
7050
|
+
}, [T(e.$slots, "default")], 42, xr), N(l("div", {
|
|
6987
7051
|
class: _(["w-scrollable__scrollbar", de.value]),
|
|
6988
7052
|
ref_key: "trackEl",
|
|
6989
7053
|
ref: p,
|
|
6990
7054
|
role: "presentation",
|
|
6991
|
-
onPointerdown: F(
|
|
7055
|
+
onPointerdown: F(ze, ["prevent"])
|
|
6992
7056
|
}, [l("div", {
|
|
6993
7057
|
class: _(["w-scrollable__scrollbar-thumb", { [r.color]: !!r.color }]),
|
|
6994
7058
|
ref_key: "thumbEl",
|
|
6995
7059
|
ref: m,
|
|
6996
|
-
style: y(
|
|
7060
|
+
style: y(H.value),
|
|
6997
7061
|
role: "scrollbar",
|
|
6998
7062
|
"aria-controls": re(s),
|
|
6999
7063
|
"aria-orientation": pe.value,
|
|
@@ -7003,18 +7067,18 @@ var dr = /* @__PURE__ */ K({
|
|
|
7003
7067
|
"aria-disabled": r.disabled ? "true" : void 0,
|
|
7004
7068
|
"aria-label": _e.value,
|
|
7005
7069
|
tabindex: "-1",
|
|
7006
|
-
onPointerdown: F(
|
|
7007
|
-
}, null, 46,
|
|
7070
|
+
onPointerdown: F(Be, ["stop", "prevent"])
|
|
7071
|
+
}, null, 46, Sr)], 34), [[oe, B.value && z.value]])], 16, br));
|
|
7008
7072
|
}
|
|
7009
|
-
}),
|
|
7073
|
+
}), Er = [
|
|
7010
7074
|
"aria-expanded",
|
|
7011
7075
|
"aria-owns",
|
|
7012
7076
|
"aria-activedescendant"
|
|
7013
|
-
],
|
|
7077
|
+
], Dr = {
|
|
7014
7078
|
key: 0,
|
|
7015
7079
|
class: "w-select__selection-slot"
|
|
7016
|
-
},
|
|
7017
|
-
function
|
|
7080
|
+
}, Or = ["innerHTML"], kr = ["value", "name"];
|
|
7081
|
+
function Ar(t, n, r, i, a, p) {
|
|
7018
7082
|
let m = E("w-icon"), g = E("w-list"), v = E("w-menu");
|
|
7019
7083
|
return b(), o(D(t.formRegister ? "w-form-element" : "div"), h({ ref: "formEl" }, t.formRegister && {
|
|
7020
7084
|
validators: t.validators,
|
|
@@ -7109,20 +7173,20 @@ function Sr(t, n, r, i, a, p) {
|
|
|
7109
7173
|
default: M(() => [d(O(r.innerIconLeft), 1)]),
|
|
7110
7174
|
_: 1
|
|
7111
7175
|
})) : s("", !0)]),
|
|
7112
|
-
t.$slots.selection ? (b(), c("div",
|
|
7176
|
+
t.$slots.selection ? (b(), c("div", Dr, [T(t.$slots, "selection", { item: r.multiple ? t.inputValue : t.inputValue[0] })])) : s("", !0),
|
|
7113
7177
|
l("div", h({
|
|
7114
7178
|
class: "w-select__selection",
|
|
7115
7179
|
ref: "selection-input",
|
|
7116
7180
|
onFocus: n[2] ||= (e) => !t.isDisabled && !t.isReadonly && p.onFocus(e),
|
|
7117
7181
|
onBlur: n[3] ||= (...e) => p.onBlur && p.onBlur(...e),
|
|
7118
7182
|
onKeydown: n[4] ||= (e) => !t.isDisabled && !t.isReadonly && p.onKeydown(e)
|
|
7119
|
-
}, p.selectionAttributes, { innerHTML: p.selectionHtml }), null, 16,
|
|
7183
|
+
}, p.selectionAttributes, { innerHTML: p.selectionHtml }), null, 16, Or),
|
|
7120
7184
|
(b(!0), c(e, null, w(t.inputValue.length ? t.inputValue : [{}], (e, n) => (b(), c("input", {
|
|
7121
7185
|
key: n,
|
|
7122
7186
|
type: "hidden",
|
|
7123
7187
|
value: e.value === void 0 ? "" : e.value.toString(),
|
|
7124
7188
|
name: t.inputName + (r.multiple ? "[]" : "")
|
|
7125
|
-
}, null, 8,
|
|
7189
|
+
}, null, 8, kr))), 128)),
|
|
7126
7190
|
r.labelPosition === "inside" && p.showLabelInside ? (b(), c(e, { key: 1 }, [t.$slots.default || r.label ? (b(), c("label", {
|
|
7127
7191
|
key: 0,
|
|
7128
7192
|
class: _(["w-select__label w-select__label--inside w-form-el-shakable", t.labelClasses])
|
|
@@ -7136,7 +7200,7 @@ function Sr(t, n, r, i, a, p) {
|
|
|
7136
7200
|
default: M(() => [d(O(r.innerIconRight), 1)]),
|
|
7137
7201
|
_: 1
|
|
7138
7202
|
})) : s("", !0)])
|
|
7139
|
-
], 10,
|
|
7203
|
+
], 10, Er)]),
|
|
7140
7204
|
_: 3
|
|
7141
7205
|
}, 16, [
|
|
7142
7206
|
"modelValue",
|
|
@@ -7158,7 +7222,7 @@ function Sr(t, n, r, i, a, p) {
|
|
|
7158
7222
|
"class"
|
|
7159
7223
|
]);
|
|
7160
7224
|
}
|
|
7161
|
-
var
|
|
7225
|
+
var jr = /* @__PURE__ */ q({
|
|
7162
7226
|
name: "w-select",
|
|
7163
7227
|
expose: ["focus"],
|
|
7164
7228
|
mixins: [Q, $],
|
|
@@ -7318,7 +7382,7 @@ var Cr = /* @__PURE__ */ K({
|
|
|
7318
7382
|
},
|
|
7319
7383
|
methods: {
|
|
7320
7384
|
focus() {
|
|
7321
|
-
|
|
7385
|
+
We(this) && (J(this.$refs["selection-input"]), this.showMenu || this.openMenu());
|
|
7322
7386
|
},
|
|
7323
7387
|
onFocus(e) {
|
|
7324
7388
|
if (!this.isFocused) return this.isFocused = !0, this.$emit("focus", e), !1;
|
|
@@ -7403,12 +7467,12 @@ var Cr = /* @__PURE__ */ K({
|
|
|
7403
7467
|
this.inputValue = this.checkSelection(this.modelValue);
|
|
7404
7468
|
}
|
|
7405
7469
|
}
|
|
7406
|
-
}, [["render",
|
|
7470
|
+
}, [["render", Ar]]), Mr = ["for"], Nr = ["for", "innerHTML"], Pr = { class: "w-slider__track-wrap" }, Fr = [
|
|
7407
7471
|
"aria-valuemin",
|
|
7408
7472
|
"aria-valuemax",
|
|
7409
7473
|
"aria-valuenow",
|
|
7410
7474
|
"aria-readonly"
|
|
7411
|
-
],
|
|
7475
|
+
], Ir = [
|
|
7412
7476
|
"id",
|
|
7413
7477
|
"name",
|
|
7414
7478
|
"model-value",
|
|
@@ -7416,11 +7480,11 @@ var Cr = /* @__PURE__ */ K({
|
|
|
7416
7480
|
"readonly",
|
|
7417
7481
|
"aria-readonly",
|
|
7418
7482
|
"tabindex"
|
|
7419
|
-
],
|
|
7483
|
+
], Lr = ["for"], Rr = { key: 0 }, zr = {
|
|
7420
7484
|
key: 0,
|
|
7421
7485
|
class: "w-slider__step-labels"
|
|
7422
|
-
},
|
|
7423
|
-
function
|
|
7486
|
+
}, Br = ["onClick"], Vr = ["for"], Hr = ["for", "innerHTML"];
|
|
7487
|
+
function Ur(t, n, r, i, a, u) {
|
|
7424
7488
|
return b(), o(D(t.formRegister ? "w-form-element" : "div"), h({ ref: "formEl" }, t.formRegister && {
|
|
7425
7489
|
validators: t.validators,
|
|
7426
7490
|
inputValue: t.rangeValueScaled,
|
|
@@ -7441,13 +7505,13 @@ function Fr(t, n, r, i, a, u) {
|
|
|
7441
7505
|
key: 0,
|
|
7442
7506
|
class: _(["w-slider__label w-slider__label--left w-form-el-shakable", t.labelClasses]),
|
|
7443
7507
|
for: u.thumbId
|
|
7444
|
-
}, [T(t.$slots, "label-left")], 10,
|
|
7508
|
+
}, [T(t.$slots, "label-left")], 10, Mr)) : r.labelLeft ? (b(), c("label", {
|
|
7445
7509
|
key: 1,
|
|
7446
7510
|
class: _(["w-slider__label w-slider__label--left w-form-el-shakable", t.labelClasses]),
|
|
7447
7511
|
for: u.thumbId,
|
|
7448
7512
|
innerHTML: r.labelLeft
|
|
7449
|
-
}, null, 10,
|
|
7450
|
-
l("div",
|
|
7513
|
+
}, null, 10, Nr)) : s("", !0),
|
|
7514
|
+
l("div", Pr, [l("div", {
|
|
7451
7515
|
class: _(["w-slider__track", u.trackClasses]),
|
|
7452
7516
|
ref: "track",
|
|
7453
7517
|
onMousedown: n[4] ||= (...e) => u.onTrackMouseDown && u.onTrackMouseDown(...e),
|
|
@@ -7478,14 +7542,14 @@ function Fr(t, n, r, i, a, u) {
|
|
|
7478
7542
|
onKeydown: [n[0] ||= P((e) => u.onKeyDown(e, -1), ["left"]), n[1] ||= P((e) => u.onKeyDown(e, 1), ["right"])],
|
|
7479
7543
|
onFocus: n[2] ||= (e) => t.$emit("focus", e),
|
|
7480
7544
|
onClick: n[3] ||= F(() => {}, ["prevent"])
|
|
7481
|
-
}, null, 42,
|
|
7545
|
+
}, null, 42, Ir), r.thumbLabel ? (b(), c("label", {
|
|
7482
7546
|
key: 0,
|
|
7483
7547
|
class: _(["w-slider__thumb-label", u.thumbClasses]),
|
|
7484
7548
|
for: u.thumbId
|
|
7485
|
-
}, [r.thumbLabel === "droplet" ? (b(), c("div",
|
|
7549
|
+
}, [r.thumbLabel === "droplet" ? (b(), c("div", Rr, [T(t.$slots, "label", { value: t.rangeValueScaled }, () => [d(O(~~t.rangeValueScaled), 1)])])) : T(t.$slots, "label", {
|
|
7486
7550
|
key: 1,
|
|
7487
7551
|
value: t.rangeValueScaled
|
|
7488
|
-
}, () => [d(O(~~t.rangeValueScaled), 1)])], 10,
|
|
7552
|
+
}, () => [d(O(~~t.rangeValueScaled), 1)])], 10, Lr)) : s("", !0)], 4)], 42, Fr), r.stepLabels && r.step ? (b(), c("div", zr, [
|
|
7489
7553
|
l("div", {
|
|
7490
7554
|
class: "w-slider__step-label",
|
|
7491
7555
|
onClick: n[6] ||= (e) => u.onStepLabelClick(0)
|
|
@@ -7495,7 +7559,7 @@ function Fr(t, n, r, i, a, u) {
|
|
|
7495
7559
|
key: e,
|
|
7496
7560
|
onClick: (t) => u.onStepLabelClick(e * (100 / u.numberOfSteps)),
|
|
7497
7561
|
style: y(`left: ${e * (100 / u.numberOfSteps)}%`)
|
|
7498
|
-
}, O(u.percentToScaled(e * (100 / u.numberOfSteps))), 13,
|
|
7562
|
+
}, O(u.percentToScaled(e * (100 / u.numberOfSteps))), 13, Br))), 128)),
|
|
7499
7563
|
~~u.numberOfSteps === u.numberOfSteps ? s("", !0) : (b(), c("div", {
|
|
7500
7564
|
key: 0,
|
|
7501
7565
|
class: "w-slider__step-label",
|
|
@@ -7507,12 +7571,12 @@ function Fr(t, n, r, i, a, u) {
|
|
|
7507
7571
|
key: 2,
|
|
7508
7572
|
class: _(["w-slider__label w-slider__label--right w-form-el-shakable", t.labelClasses]),
|
|
7509
7573
|
for: u.thumbId
|
|
7510
|
-
}, [T(t.$slots, "label-right")], 10,
|
|
7574
|
+
}, [T(t.$slots, "label-right")], 10, Vr)) : r.labelRight ? (b(), c("label", {
|
|
7511
7575
|
key: 3,
|
|
7512
7576
|
class: _(["w-slider__label w-slider__label--right w-form-el-shakable", t.labelClasses]),
|
|
7513
7577
|
for: u.thumbId,
|
|
7514
7578
|
innerHTML: r.labelRight
|
|
7515
|
-
}, null, 10,
|
|
7579
|
+
}, null, 10, Hr)) : s("", !0)
|
|
7516
7580
|
]),
|
|
7517
7581
|
_: 3
|
|
7518
7582
|
}, 16, [
|
|
@@ -7521,7 +7585,7 @@ function Fr(t, n, r, i, a, u) {
|
|
|
7521
7585
|
"class"
|
|
7522
7586
|
]);
|
|
7523
7587
|
}
|
|
7524
|
-
var
|
|
7588
|
+
var Wr = /* @__PURE__ */ q({
|
|
7525
7589
|
name: "w-slider",
|
|
7526
7590
|
expose: ["focus"],
|
|
7527
7591
|
focusTargetRef: "thumb",
|
|
@@ -7675,15 +7739,15 @@ var Ir = /* @__PURE__ */ K({
|
|
|
7675
7739
|
watch: { modelValue(e) {
|
|
7676
7740
|
this.rangeValueScaled !== e && (this.rangeValueScaled = e, this.rangeValuePercent = this.scaledToPercent(e));
|
|
7677
7741
|
} }
|
|
7678
|
-
}, [["render",
|
|
7679
|
-
function
|
|
7742
|
+
}, [["render", Ur]]), Gr = { key: 0 };
|
|
7743
|
+
function Kr(e, t, n, r, i, a) {
|
|
7680
7744
|
return n.modelValue || n.modelValue === void 0 ? (b(), c("div", {
|
|
7681
7745
|
key: 0,
|
|
7682
7746
|
class: _(["w-spinner", a.classes]),
|
|
7683
7747
|
style: y(a.styles)
|
|
7684
|
-
}, [a.isThreeDots ? (b(), c("span",
|
|
7748
|
+
}, [a.isThreeDots ? (b(), c("span", Gr)) : s("", !0)], 6)) : s("", !0);
|
|
7685
7749
|
}
|
|
7686
|
-
var
|
|
7750
|
+
var qr = /* @__PURE__ */ q({
|
|
7687
7751
|
name: "w-spinner",
|
|
7688
7752
|
props: {
|
|
7689
7753
|
modelValue: {},
|
|
@@ -7724,13 +7788,13 @@ var zr = /* @__PURE__ */ K({
|
|
|
7724
7788
|
};
|
|
7725
7789
|
}
|
|
7726
7790
|
}
|
|
7727
|
-
}, [["render",
|
|
7791
|
+
}, [["render", Kr]]);
|
|
7728
7792
|
//#endregion
|
|
7729
7793
|
//#region src/wave-ui/components/w-steps.vue?vue&type=template&lang.js
|
|
7730
|
-
function
|
|
7794
|
+
function Jr(e, t, n, r, i, a) {
|
|
7731
7795
|
return b(), c("div", { class: _(["w-steps", a.classes]) }, null, 2);
|
|
7732
7796
|
}
|
|
7733
|
-
var
|
|
7797
|
+
var Yr = /* @__PURE__ */ q({
|
|
7734
7798
|
name: "w-steps",
|
|
7735
7799
|
props: {
|
|
7736
7800
|
dark: { type: Boolean },
|
|
@@ -7744,7 +7808,7 @@ var Vr = /* @__PURE__ */ K({
|
|
|
7744
7808
|
"w-steps--light": this.light
|
|
7745
7809
|
};
|
|
7746
7810
|
} }
|
|
7747
|
-
}, [["render",
|
|
7811
|
+
}, [["render", Jr]]), Xr = [
|
|
7748
7812
|
"id",
|
|
7749
7813
|
"name",
|
|
7750
7814
|
"checked",
|
|
@@ -7754,11 +7818,11 @@ var Vr = /* @__PURE__ */ K({
|
|
|
7754
7818
|
"required",
|
|
7755
7819
|
"tabindex",
|
|
7756
7820
|
"aria-checked"
|
|
7757
|
-
],
|
|
7821
|
+
], Zr = ["for"], Qr = {
|
|
7758
7822
|
key: 0,
|
|
7759
7823
|
class: "w-switch__track"
|
|
7760
|
-
},
|
|
7761
|
-
function
|
|
7824
|
+
}, $r = { class: "w-switch__thumb" }, ei = { class: "w-switch__thumb-content" }, ti = ["for"];
|
|
7825
|
+
function ni(t, n, r, i, a, u) {
|
|
7762
7826
|
let f = E("w-progress");
|
|
7763
7827
|
return b(), o(D(t.formRegister ? "w-form-element" : "div"), h({ ref: "formEl" }, t.formRegister && {
|
|
7764
7828
|
validators: t.validators,
|
|
@@ -7795,18 +7859,18 @@ function Jr(t, n, r, i, a, u) {
|
|
|
7795
7859
|
onBlur: n[2] ||= (e) => t.$emit("blur", e),
|
|
7796
7860
|
"aria-checked": a.isOn || "false",
|
|
7797
7861
|
role: "switch"
|
|
7798
|
-
}), null, 16,
|
|
7862
|
+
}), null, 16, Xr),
|
|
7799
7863
|
u.hasLabel && r.labelOnLeft ? (b(), c(e, { key: 0 }, [t.$slots.default || r.label ? (b(), c("label", {
|
|
7800
7864
|
key: 0,
|
|
7801
7865
|
class: _(["w-switch__label w-switch__label--left w-form-el-shakable", t.labelClasses]),
|
|
7802
7866
|
for: t.inputId
|
|
7803
|
-
}, [T(t.$slots, "default", {}, () => [d(O(r.label), 1)])], 10,
|
|
7867
|
+
}, [T(t.$slots, "default", {}, () => [d(O(r.label), 1)])], 10, Zr)) : s("", !0)], 64)) : s("", !0),
|
|
7804
7868
|
l("div", {
|
|
7805
7869
|
class: _(["w-switch__input", u.inputClasses]),
|
|
7806
7870
|
onClick: n[3] ||= (e) => {
|
|
7807
7871
|
t.$refs.input.focus(), t.$refs.input.click();
|
|
7808
7872
|
}
|
|
7809
|
-
}, [t.$slots.track ? (b(), c("div",
|
|
7873
|
+
}, [t.$slots.track ? (b(), c("div", Qr, [T(t.$slots, "track")])) : s("", !0), l("div", $r, [l("div", ei, [r.loading ? (b(), o(f, h({
|
|
7810
7874
|
key: 0,
|
|
7811
7875
|
circle: "",
|
|
7812
7876
|
color: "inherit"
|
|
@@ -7815,7 +7879,7 @@ function Jr(t, n, r, i, a, u) {
|
|
|
7815
7879
|
key: 0,
|
|
7816
7880
|
class: _(["w-switch__label w-switch__label--right w-form-el-shakable", t.labelClasses]),
|
|
7817
7881
|
for: t.inputId
|
|
7818
|
-
}, [T(t.$slots, "default", {}, () => [d(O(r.label), 1)])], 10,
|
|
7882
|
+
}, [T(t.$slots, "default", {}, () => [d(O(r.label), 1)])], 10, ti)) : s("", !0)], 64)) : s("", !0)
|
|
7819
7883
|
]),
|
|
7820
7884
|
_: 3
|
|
7821
7885
|
}, 16, [
|
|
@@ -7824,7 +7888,7 @@ function Jr(t, n, r, i, a, u) {
|
|
|
7824
7888
|
"style"
|
|
7825
7889
|
]);
|
|
7826
7890
|
}
|
|
7827
|
-
var
|
|
7891
|
+
var ri = /* @__PURE__ */ q({
|
|
7828
7892
|
name: "w-switch",
|
|
7829
7893
|
expose: ["focus"],
|
|
7830
7894
|
mixins: [Q, $],
|
|
@@ -7920,28 +7984,28 @@ var Yr = /* @__PURE__ */ K({
|
|
|
7920
7984
|
watch: { modelValue(e) {
|
|
7921
7985
|
this.isOn = e;
|
|
7922
7986
|
} }
|
|
7923
|
-
}, [["render",
|
|
7924
|
-
function
|
|
7925
|
-
return b(), c("div",
|
|
7987
|
+
}, [["render", ni]]), ii = { class: "w-tabs__content" };
|
|
7988
|
+
function ai(e, t, n, r, i, a) {
|
|
7989
|
+
return b(), c("div", ii, [T(e.$slots, "default", { item: n.item })]);
|
|
7926
7990
|
}
|
|
7927
|
-
var
|
|
7991
|
+
var oi = /* @__PURE__ */ q({
|
|
7928
7992
|
name: "tab-content",
|
|
7929
7993
|
props: { item: Object }
|
|
7930
|
-
}, [["render",
|
|
7994
|
+
}, [["render", ai]]), si = [
|
|
7931
7995
|
"onPointerdown",
|
|
7932
7996
|
"onClick",
|
|
7933
7997
|
"onFocus",
|
|
7934
7998
|
"tabindex",
|
|
7935
7999
|
"onKeypress",
|
|
7936
8000
|
"aria-selected"
|
|
7937
|
-
],
|
|
8001
|
+
], ci = ["innerHTML"], li = {
|
|
7938
8002
|
key: 0,
|
|
7939
8003
|
class: "w-tabs__bar-extra"
|
|
7940
|
-
},
|
|
8004
|
+
}, ui = {
|
|
7941
8005
|
key: 0,
|
|
7942
8006
|
class: "w-tabs__content-wrap"
|
|
7943
|
-
},
|
|
7944
|
-
function
|
|
8007
|
+
}, di = ["innerHTML"], fi = ["innerHTML"];
|
|
8008
|
+
function pi(n, a, u, d, f, p) {
|
|
7945
8009
|
let m = E("tab-content");
|
|
7946
8010
|
return b(), c("div", { class: _(["w-tabs", p.tabsClasses]) }, [l("div", {
|
|
7947
8011
|
class: _(["w-tabs__bar", p.tabsBarClasses]),
|
|
@@ -7967,14 +8031,14 @@ function ai(n, a, u, d, f, p) {
|
|
|
7967
8031
|
item: p.getOriginalItem(e),
|
|
7968
8032
|
index: t + 1,
|
|
7969
8033
|
active: e._uid === n.activeTabUid
|
|
7970
|
-
}, () => [l("div", { innerHTML: e[u.itemTitleKey] }, null, 8,
|
|
7971
|
-
n.$slots["tabs-bar-extra"] ? (b(), c("div",
|
|
8034
|
+
}, () => [l("div", { innerHTML: e[u.itemTitleKey] }, null, 8, ci)])], 42, si))), 128)),
|
|
8035
|
+
n.$slots["tabs-bar-extra"] ? (b(), c("div", li, [T(n.$slots, "tabs-bar-extra")])) : s("", !0),
|
|
7972
8036
|
!u.noSlider && !u.card ? (b(), c("div", {
|
|
7973
8037
|
key: 1,
|
|
7974
8038
|
class: _(["w-tabs__slider", u.sliderColor]),
|
|
7975
8039
|
style: y(p.sliderStyles)
|
|
7976
8040
|
}, null, 6)) : s("", !0)
|
|
7977
|
-
], 2), n.tabs.length ? (b(), c("div",
|
|
8041
|
+
], 2), n.tabs.length ? (b(), c("div", ui, [u.keepInDom ? (b(), o(i, {
|
|
7978
8042
|
key: 0,
|
|
7979
8043
|
name: p.transitionName
|
|
7980
8044
|
}, {
|
|
@@ -7996,7 +8060,7 @@ function ai(n, a, u, d, f, p) {
|
|
|
7996
8060
|
}, () => [e[u.itemContentKey] ? (b(), c("div", {
|
|
7997
8061
|
key: 0,
|
|
7998
8062
|
innerHTML: e[u.itemContentKey]
|
|
7999
|
-
}, null, 8,
|
|
8063
|
+
}, null, 8, di)) : s("", !0)])]),
|
|
8000
8064
|
_: 2
|
|
8001
8065
|
}, 1032, ["item", "class"])), [[oe, e._uid === p.activeTab._uid]])), 128))]),
|
|
8002
8066
|
_: 3
|
|
@@ -8023,18 +8087,19 @@ function ai(n, a, u, d, f, p) {
|
|
|
8023
8087
|
}, () => [t[u.itemContentKey] ? (b(), c("div", {
|
|
8024
8088
|
key: 0,
|
|
8025
8089
|
innerHTML: t[u.itemContentKey]
|
|
8026
|
-
}, null, 8,
|
|
8090
|
+
}, null, 8, fi)) : s("", !0)])], 64)) : s("", !0)]),
|
|
8027
8091
|
_: 3
|
|
8028
8092
|
}, 8, ["item", "class"]))], 1032, ["exclude"]))]),
|
|
8029
8093
|
_: 3
|
|
8030
8094
|
}, 8, ["name", "mode"]))])) : s("", !0)], 2);
|
|
8031
8095
|
}
|
|
8032
|
-
var
|
|
8096
|
+
var mi = /* @__PURE__ */ q({
|
|
8033
8097
|
name: "w-tabs",
|
|
8098
|
+
focusable: !0,
|
|
8034
8099
|
expose: ["focus"],
|
|
8035
8100
|
mixins: [X],
|
|
8036
8101
|
setup() {
|
|
8037
|
-
return { tabsStableId:
|
|
8102
|
+
return { tabsStableId: A() };
|
|
8038
8103
|
},
|
|
8039
8104
|
props: {
|
|
8040
8105
|
modelValue: { type: [Number, String] },
|
|
@@ -8096,7 +8161,7 @@ var oi = /* @__PURE__ */ K({
|
|
|
8096
8161
|
default: !1
|
|
8097
8162
|
}
|
|
8098
8163
|
},
|
|
8099
|
-
components: { TabContent:
|
|
8164
|
+
components: { TabContent: oi },
|
|
8100
8165
|
emits: [
|
|
8101
8166
|
"input",
|
|
8102
8167
|
"update:modelValue",
|
|
@@ -8160,7 +8225,7 @@ var oi = /* @__PURE__ */ K({
|
|
|
8160
8225
|
methods: {
|
|
8161
8226
|
focus() {
|
|
8162
8227
|
let e = this.$refs["tabs-bar"];
|
|
8163
|
-
e &&
|
|
8228
|
+
e && J(e.querySelector("[role=\"tab\"][aria-selected=\"true\"]:not([tabindex=\"-1\"])") || e.querySelector("[role=\"tab\"][tabindex=\"0\"]"));
|
|
8164
8229
|
},
|
|
8165
8230
|
resolveTabUid(e) {
|
|
8166
8231
|
if (!this.tabs.length) return null;
|
|
@@ -8281,45 +8346,45 @@ var oi = /* @__PURE__ */ K({
|
|
|
8281
8346
|
e ? window.removeEventListener("resize", this.onResize) : (this.updateSlider(), window.addEventListener("resize", this.onResize));
|
|
8282
8347
|
}
|
|
8283
8348
|
}
|
|
8284
|
-
}, [["render",
|
|
8349
|
+
}, [["render", pi]]), hi = { class: "w-table__scroll-wrap" }, gi = { ref: "colgroup" }, _i = ["width"], vi = { key: 0 }, yi = ["onClick", "onPointerdown"], bi = ["innerHTML"], xi = {
|
|
8285
8350
|
key: 0,
|
|
8286
8351
|
class: "w-table__progress-bar"
|
|
8287
|
-
},
|
|
8352
|
+
}, Si = ["colspan"], Ci = {
|
|
8288
8353
|
key: 0,
|
|
8289
8354
|
class: "w-table__progress-bar"
|
|
8290
|
-
},
|
|
8355
|
+
}, wi = ["colspan"], Ti = { class: "w-table__loading-text" }, Ei = {
|
|
8291
8356
|
key: 1,
|
|
8292
8357
|
class: "no-data"
|
|
8293
|
-
},
|
|
8358
|
+
}, Di = ["colspan"], Oi = ["onClick"], ki = ["data-label"], Ai = ["data-label"], ji = ["innerHTML"], Mi = {
|
|
8294
8359
|
key: 2,
|
|
8295
8360
|
class: "w-table__row w-table__row--expansion"
|
|
8296
|
-
},
|
|
8361
|
+
}, Ni = ["colspan"], Pi = { key: 0 }, Fi = {
|
|
8297
8362
|
key: 3,
|
|
8298
8363
|
class: "w-table__extra-row"
|
|
8299
|
-
},
|
|
8364
|
+
}, Ii = {
|
|
8300
8365
|
key: 1,
|
|
8301
8366
|
class: "w-table__footer"
|
|
8302
|
-
},
|
|
8367
|
+
}, Li = {
|
|
8303
8368
|
key: 1,
|
|
8304
8369
|
class: "w-table__row"
|
|
8305
|
-
},
|
|
8370
|
+
}, Ri = ["colspan"], zi = {
|
|
8306
8371
|
key: 0,
|
|
8307
8372
|
class: "w-table__pagination w-pagination"
|
|
8308
|
-
},
|
|
8309
|
-
function
|
|
8373
|
+
}, Bi = { class: "pages-wrap" }, Vi = { class: "w-pagination__results" };
|
|
8374
|
+
function Hi(t, n, r, i, a, u) {
|
|
8310
8375
|
let p = E("w-icon"), m = E("w-progress"), h = E("w-transition-fade"), g = E("w-transition-expand"), v = E("w-select"), y = E("w-button");
|
|
8311
|
-
return b(), c("div", { class: _(["w-table w-table--wrap", u.classes]) }, [l("div",
|
|
8376
|
+
return b(), c("div", { class: _(["w-table w-table--wrap", u.classes]) }, [l("div", hi, [l("table", {
|
|
8312
8377
|
class: "w-table__table",
|
|
8313
8378
|
onMousedown: n[2] ||= (...e) => u.onMouseDown && u.onMouseDown(...e),
|
|
8314
8379
|
onMouseover: n[3] ||= (...e) => u.onMouseOver && u.onMouseOver(...e),
|
|
8315
8380
|
onMouseout: n[4] ||= (...e) => u.onMouseOut && u.onMouseOut(...e)
|
|
8316
8381
|
}, [
|
|
8317
|
-
l("colgroup",
|
|
8382
|
+
l("colgroup", gi, [(b(!0), c(e, null, w(r.headers, (e, t) => (b(), c("col", {
|
|
8318
8383
|
class: _(["w-table__col", u.colClasses[t]]),
|
|
8319
8384
|
key: t,
|
|
8320
8385
|
width: e.width || null
|
|
8321
|
-
}, null, 10,
|
|
8322
|
-
r.noHeaders ? s("", !0) : (b(), c("thead",
|
|
8386
|
+
}, null, 10, _i))), 128))], 512),
|
|
8387
|
+
r.noHeaders ? s("", !0) : (b(), c("thead", vi, [l("tr", null, [(b(!0), c(e, null, w(r.headers, (i, a) => (b(), c("th", {
|
|
8323
8388
|
class: _(["w-table__header", u.headerClasses(i)]),
|
|
8324
8389
|
key: a,
|
|
8325
8390
|
onClick: (e) => !t.colResizing.dragging && i.sortable !== !1 && u.sortTable(i),
|
|
@@ -8340,7 +8405,7 @@ function Pi(t, n, r, i, a, u) {
|
|
|
8340
8405
|
}, () => [d(O(i.label || ""), 1)]) : (b(), c("span", {
|
|
8341
8406
|
key: 1,
|
|
8342
8407
|
innerHTML: i.label || ""
|
|
8343
|
-
}, null, 8,
|
|
8408
|
+
}, null, 8, bi))], 64)) : s("", !0),
|
|
8344
8409
|
i.sortable !== !1 && i.align !== "right" ? (b(), o(p, {
|
|
8345
8410
|
key: 2,
|
|
8346
8411
|
class: _(["w-table__header-sort", u.headerSortClasses(i)])
|
|
@@ -8356,15 +8421,15 @@ function Pi(t, n, r, i, a, u) {
|
|
|
8356
8421
|
}]),
|
|
8357
8422
|
onClick: n[0] ||= F(() => {}, ["stop"])
|
|
8358
8423
|
}, null, 2)) : s("", !0)
|
|
8359
|
-
], 42,
|
|
8360
|
-
default: M(() => [r.loading === "header" ? (b(), c("tr",
|
|
8424
|
+
], 42, yi))), 128))]), f(h, null, {
|
|
8425
|
+
default: M(() => [r.loading === "header" ? (b(), c("tr", xi, [l("td", { colspan: r.headers.length }, [f(m, { tile: "" })], 8, Si)])) : s("", !0)]),
|
|
8361
8426
|
_: 1
|
|
8362
8427
|
})])),
|
|
8363
8428
|
l("tbody", null, [
|
|
8364
|
-
r.loading === !0 ? (b(), c("tr",
|
|
8429
|
+
r.loading === !0 ? (b(), c("tr", Ci, [l("td", { colspan: r.headers.length }, [f(m, { tile: "" }), l("div", Ti, [T(t.$slots, "loading", {}, () => [n[11] ||= d("Loading...", -1)])])], 8, wi)])) : u.tableItems.length ? s("", !0) : (b(), c("tr", Ei, [l("td", {
|
|
8365
8430
|
class: "w-table__cell text-center",
|
|
8366
8431
|
colspan: r.headers.length
|
|
8367
|
-
}, [T(t.$slots, "no-data", {}, () => [n[12] ||= d("No data to show.", -1)])], 8,
|
|
8432
|
+
}, [T(t.$slots, "no-data", {}, () => [n[12] ||= d("No data to show.", -1)])], 8, Di)])),
|
|
8368
8433
|
u.tableItems.length && r.loading !== !0 ? (b(!0), c(e, { key: 2 }, w(u.paginatedItems, (i, a) => (b(), c(e, { key: a }, [t.$slots.item ? T(t.$slots, "item", {
|
|
8369
8434
|
key: 0,
|
|
8370
8435
|
item: i,
|
|
@@ -8412,21 +8477,21 @@ function Pi(t, n, r, i, a, u) {
|
|
|
8412
8477
|
"w-table__col-resizer--hover": t.colResizing.hover === o,
|
|
8413
8478
|
"w-table__col-resizer--active": t.colResizing.columnIndex === o
|
|
8414
8479
|
}])
|
|
8415
|
-
}, null, 2)) : s("", !0)], 10,
|
|
8480
|
+
}, null, 2)) : s("", !0)], 10, ki)) : (b(), c("td", {
|
|
8416
8481
|
class: _(["w-table__cell", u.cellClasses(n)]),
|
|
8417
8482
|
key: `${o}-b`,
|
|
8418
8483
|
"data-label": n.label
|
|
8419
|
-
}, [l("div", { innerHTML: i[n.key] || "" }, null, 8,
|
|
8484
|
+
}, [l("div", { innerHTML: i[n.key] || "" }, null, 8, ji), o < r.headers.length - 1 && r.resizableColumns ? (b(), c("span", {
|
|
8420
8485
|
key: 0,
|
|
8421
8486
|
class: _(["w-table__col-resizer", {
|
|
8422
8487
|
"w-table__col-resizer--hover": t.colResizing.hover === o,
|
|
8423
8488
|
"w-table__col-resizer--active": t.colResizing.columnIndex === o
|
|
8424
8489
|
}])
|
|
8425
|
-
}, null, 2)) : s("", !0)], 10,
|
|
8490
|
+
}, null, 2)) : s("", !0)], 10, Ai))], 64))), 256))], 42, Oi)), u.expandedRowsByUid[i._uid] ? (b(), c("tr", Mi, [l("td", {
|
|
8426
8491
|
class: "w-table__cell",
|
|
8427
8492
|
colspan: r.headers.length
|
|
8428
8493
|
}, [f(g, { y: "" }, {
|
|
8429
|
-
default: M(() => [u.expandedRowsByUid[i._uid] ? (b(), c("div",
|
|
8494
|
+
default: M(() => [u.expandedRowsByUid[i._uid] ? (b(), c("div", Pi, [T(t.$slots, "row-expansion", {
|
|
8430
8495
|
item: i,
|
|
8431
8496
|
index: a + 1
|
|
8432
8497
|
})])) : s("", !0), a < r.headers.length - 1 && r.resizableColumns ? (b(), c("span", {
|
|
@@ -8437,14 +8502,14 @@ function Pi(t, n, r, i, a, u) {
|
|
|
8437
8502
|
}])
|
|
8438
8503
|
}, null, 2)) : s("", !0)]),
|
|
8439
8504
|
_: 2
|
|
8440
|
-
}, 1024)], 8,
|
|
8441
|
-
t.$slots["extra-row"] ? (b(), c("div",
|
|
8505
|
+
}, 1024)], 8, Ni)])) : s("", !0)], 64))), 128)) : s("", !0),
|
|
8506
|
+
t.$slots["extra-row"] ? (b(), c("div", Fi, [T(t.$slots, "extra-row")])) : s("", !0)
|
|
8442
8507
|
]),
|
|
8443
|
-
t.$slots.footer || t.$slots["footer-row"] ? (b(), c("tfoot",
|
|
8508
|
+
t.$slots.footer || t.$slots["footer-row"] ? (b(), c("tfoot", Ii, [t.$slots["footer-row"] ? T(t.$slots, "footer-row", { key: 0 }) : t.$slots.footer ? (b(), c("tr", Li, [l("td", {
|
|
8444
8509
|
class: "w-table__cell",
|
|
8445
8510
|
colspan: r.headers.length
|
|
8446
|
-
}, [T(t.$slots, "footer")], 8,
|
|
8447
|
-
], 32)]), r.pagination && t.paginationConfig ? (b(), c("div",
|
|
8511
|
+
}, [T(t.$slots, "footer")], 8, Ri)])) : s("", !0)])) : s("", !0)
|
|
8512
|
+
], 32)]), r.pagination && t.paginationConfig ? (b(), c("div", zi, [T(t.$slots, "pagination", {
|
|
8448
8513
|
range: `${t.paginationConfig.start}-${t.paginationConfig.end}`,
|
|
8449
8514
|
total: t.paginationConfig.total,
|
|
8450
8515
|
pagesCount: t.paginationConfig.pagesCount,
|
|
@@ -8462,7 +8527,7 @@ function Pi(t, n, r, i, a, u) {
|
|
|
8462
8527
|
label: "Items per page",
|
|
8463
8528
|
"label-color": "inherit"
|
|
8464
8529
|
}, null, 8, ["modelValue", "items"])) : s("", !0),
|
|
8465
|
-
l("div",
|
|
8530
|
+
l("div", Bi, [
|
|
8466
8531
|
f(y, {
|
|
8467
8532
|
class: "w-pagination__arrow w-pagination__arrow--prev",
|
|
8468
8533
|
onClick: n[7] ||= (e) => u.goToPage("-1"),
|
|
@@ -8520,12 +8585,12 @@ function Pi(t, n, r, i, a, u) {
|
|
|
8520
8585
|
lg: ""
|
|
8521
8586
|
}, null, 8, ["disabled"])
|
|
8522
8587
|
]),
|
|
8523
|
-
l("span",
|
|
8588
|
+
l("span", Vi, O(t.paginationConfig.start) + "-" + O(t.paginationConfig.end || t.paginationConfig.total) + " of " + O(t.paginationConfig.total), 1)
|
|
8524
8589
|
])])) : s("", !0)], 2);
|
|
8525
8590
|
}
|
|
8526
8591
|
//#endregion
|
|
8527
8592
|
//#region src/wave-ui/components/w-table.vue
|
|
8528
|
-
var
|
|
8593
|
+
var Ui = 15, Wi = /* @__PURE__ */ q({
|
|
8529
8594
|
name: "w-table",
|
|
8530
8595
|
mixins: [X],
|
|
8531
8596
|
props: {
|
|
@@ -8746,9 +8811,9 @@ var Fi = 15, Ii = /* @__PURE__ */ K({
|
|
|
8746
8811
|
this.colResizing.dragging = !0;
|
|
8747
8812
|
let o = e.pageX - t, s = i + a, c = i + o, l = a - o;
|
|
8748
8813
|
n.style.width = `${i + o}px`, r.style.width = `${a - o}px`;
|
|
8749
|
-
let u = o < 0 && n.offsetWidth > c || n.offsetWidth <=
|
|
8814
|
+
let u = o < 0 && n.offsetWidth > c || n.offsetWidth <= Ui, d = o > 0 && r.offsetWidth > l;
|
|
8750
8815
|
if (u) {
|
|
8751
|
-
let e = Math.max(n.offsetWidth,
|
|
8816
|
+
let e = Math.max(n.offsetWidth, Ui);
|
|
8752
8817
|
n.style.width = `${e}px`, r.style.width = `${s - e}px`;
|
|
8753
8818
|
} else d && (n.style.width = `${s - r.offsetWidth}px`, r.style.width = `${r.offsetWidth}px`);
|
|
8754
8819
|
},
|
|
@@ -8835,12 +8900,12 @@ var Fi = 15, Ii = /* @__PURE__ */ K({
|
|
|
8835
8900
|
this.updatePaginationConfig({ total: e });
|
|
8836
8901
|
}
|
|
8837
8902
|
}
|
|
8838
|
-
}, [["render",
|
|
8903
|
+
}, [["render", Hi]]), Gi = [
|
|
8839
8904
|
"role",
|
|
8840
8905
|
"aria-pressed",
|
|
8841
8906
|
"tabindex"
|
|
8842
8907
|
];
|
|
8843
|
-
function
|
|
8908
|
+
function Ki(e, t, n, r, i, a) {
|
|
8844
8909
|
return b(), c("span", {
|
|
8845
8910
|
class: _(["w-tag", a.classes]),
|
|
8846
8911
|
onClick: t[1] ||= (t) => {
|
|
@@ -8862,10 +8927,11 @@ function Ri(e, t, n, r, i, a) {
|
|
|
8862
8927
|
}, ["stop"]),
|
|
8863
8928
|
role: "icon",
|
|
8864
8929
|
"aria-hidden": "true"
|
|
8865
|
-
})) : s("", !0)], 46,
|
|
8930
|
+
})) : s("", !0)], 46, Gi);
|
|
8866
8931
|
}
|
|
8867
|
-
var
|
|
8932
|
+
var qi = /* @__PURE__ */ q({
|
|
8868
8933
|
name: "w-tag",
|
|
8934
|
+
focusable: !0,
|
|
8869
8935
|
expose: ["focus"],
|
|
8870
8936
|
mixins: [X],
|
|
8871
8937
|
props: {
|
|
@@ -8893,7 +8959,7 @@ var zi = /* @__PURE__ */ K({
|
|
|
8893
8959
|
},
|
|
8894
8960
|
emits: ["input", "update:modelValue"],
|
|
8895
8961
|
methods: { focus() {
|
|
8896
|
-
this.modelValue !== -1 &&
|
|
8962
|
+
this.modelValue !== -1 && J(this.$el);
|
|
8897
8963
|
} },
|
|
8898
8964
|
computed: {
|
|
8899
8965
|
presetSize() {
|
|
@@ -8925,7 +8991,7 @@ var zi = /* @__PURE__ */ K({
|
|
|
8925
8991
|
methods: { onTagPointerDown(e) {
|
|
8926
8992
|
this.modelValue !== -1 && (e.target.closest?.(".w-tag__closable") || this.onRipple(e));
|
|
8927
8993
|
} }
|
|
8928
|
-
}, [["render",
|
|
8994
|
+
}, [["render", Ki]]), Ji = ["for"], Yi = [
|
|
8929
8995
|
"id",
|
|
8930
8996
|
"name",
|
|
8931
8997
|
"placeholder",
|
|
@@ -8936,8 +9002,8 @@ var zi = /* @__PURE__ */ K({
|
|
|
8936
9002
|
"disabled",
|
|
8937
9003
|
"required",
|
|
8938
9004
|
"tabindex"
|
|
8939
|
-
],
|
|
8940
|
-
function
|
|
9005
|
+
], Xi = ["for"];
|
|
9006
|
+
function Zi(t, n, r, i, a, u) {
|
|
8941
9007
|
let f = E("w-icon");
|
|
8942
9008
|
return b(), o(D(t.formRegister ? "w-form-element" : "div"), h({ ref: "formEl" }, t.formRegister && {
|
|
8943
9009
|
validators: t.validators,
|
|
@@ -8961,7 +9027,7 @@ function Ui(t, n, r, i, a, u) {
|
|
|
8961
9027
|
key: 0,
|
|
8962
9028
|
class: _(["w-textarea__label w-textarea__label--left w-form-el-shakable", t.labelClasses]),
|
|
8963
9029
|
for: t.inputId
|
|
8964
|
-
}, [T(t.$slots, "default", {}, () => [d(O(r.label), 1)])], 10,
|
|
9030
|
+
}, [T(t.$slots, "default", {}, () => [d(O(r.label), 1)])], 10, Ji)) : s("", !0)], 64)) : s("", !0),
|
|
8965
9031
|
l("div", { class: _(["w-textarea__textarea-wrap", u.inputWrapClasses]) }, [
|
|
8966
9032
|
T(t.$slots, "icon-left", { inputId: t.inputId }, () => [r.innerIconLeft ? (b(), o(f, {
|
|
8967
9033
|
key: 0,
|
|
@@ -8991,7 +9057,7 @@ function Ui(t, n, r, i, a, u) {
|
|
|
8991
9057
|
disabled: t.isDisabled || null,
|
|
8992
9058
|
required: t.required || null,
|
|
8993
9059
|
tabindex: t.tabindex || null
|
|
8994
|
-
}), null, 16,
|
|
9060
|
+
}), null, 16, Yi), [[j, a.inputValue]]),
|
|
8995
9061
|
r.labelPosition === "inside" && u.showLabelInside ? (b(), c(e, { key: 0 }, [t.$slots.default || r.label ? (b(), c("label", {
|
|
8996
9062
|
key: 0,
|
|
8997
9063
|
class: _(["w-textarea__label w-textarea__label--inside w-form-el-shakable", t.labelClasses])
|
|
@@ -9011,7 +9077,7 @@ function Ui(t, n, r, i, a, u) {
|
|
|
9011
9077
|
key: 0,
|
|
9012
9078
|
class: _(["w-textarea__label w-textarea__label--right w-form-el-shakable", t.labelClasses]),
|
|
9013
9079
|
for: t.inputId
|
|
9014
|
-
}, [T(t.$slots, "default", {}, () => [d(O(r.label), 1)])], 10,
|
|
9080
|
+
}, [T(t.$slots, "default", {}, () => [d(O(r.label), 1)])], 10, Xi)) : s("", !0)], 64)) : s("", !0)
|
|
9015
9081
|
]),
|
|
9016
9082
|
_: 3
|
|
9017
9083
|
}, 16, [
|
|
@@ -9021,7 +9087,7 @@ function Ui(t, n, r, i, a, u) {
|
|
|
9021
9087
|
"style"
|
|
9022
9088
|
]);
|
|
9023
9089
|
}
|
|
9024
|
-
var
|
|
9090
|
+
var Qi = /* @__PURE__ */ q({
|
|
9025
9091
|
name: "w-textarea",
|
|
9026
9092
|
expose: ["focus"],
|
|
9027
9093
|
focusTargetRef: "textarea",
|
|
@@ -9161,8 +9227,8 @@ var Wi = /* @__PURE__ */ K({
|
|
|
9161
9227
|
e ? this.getLineHeight() : this.height = null;
|
|
9162
9228
|
}
|
|
9163
9229
|
}
|
|
9164
|
-
}, [["render",
|
|
9165
|
-
function
|
|
9230
|
+
}, [["render", Zi]]), $i = ["innerHTML"], ea = ["innerHTML"];
|
|
9231
|
+
function ta(t, n, r, i, a, s) {
|
|
9166
9232
|
return b(), c("ul", { class: _(["w-timeline", s.classes]) }, [(b(!0), c(e, null, w(r.items, (e, n) => (b(), c("li", {
|
|
9167
9233
|
class: "w-timeline-item",
|
|
9168
9234
|
key: n
|
|
@@ -9180,12 +9246,12 @@ function qi(t, n, r, i, a, s) {
|
|
|
9180
9246
|
}, () => [l("div", {
|
|
9181
9247
|
class: _(["w-timeline-item__title", { [e[r.itemColorKey] || r.color]: e[r.itemColorKey] || r.color }]),
|
|
9182
9248
|
innerHTML: e[r.itemTitleKey]
|
|
9183
|
-
}, null, 10,
|
|
9249
|
+
}, null, 10, $i), l("div", {
|
|
9184
9250
|
class: "w-timeline-item__content",
|
|
9185
9251
|
innerHTML: e[r.itemContentKey]
|
|
9186
|
-
}, null, 8,
|
|
9252
|
+
}, null, 8, ea)])]))), 128))], 2);
|
|
9187
9253
|
}
|
|
9188
|
-
var
|
|
9254
|
+
var na = /* @__PURE__ */ q({
|
|
9189
9255
|
name: "w-timeline",
|
|
9190
9256
|
props: {
|
|
9191
9257
|
items: {
|
|
@@ -9220,16 +9286,16 @@ var Ji = /* @__PURE__ */ K({
|
|
|
9220
9286
|
"w-timeline--light": this.light
|
|
9221
9287
|
};
|
|
9222
9288
|
} }
|
|
9223
|
-
}, [["render",
|
|
9289
|
+
}, [["render", ta]]);
|
|
9224
9290
|
//#endregion
|
|
9225
9291
|
//#region src/wave-ui/components/w-toolbar.vue?vue&type=template&lang.js
|
|
9226
|
-
function
|
|
9292
|
+
function ra(e, t, n, r, i, a) {
|
|
9227
9293
|
return b(), c("div", {
|
|
9228
9294
|
class: _(["w-toolbar", a.classes]),
|
|
9229
9295
|
style: y(a.styles)
|
|
9230
9296
|
}, [T(e.$slots, "default")], 6);
|
|
9231
9297
|
}
|
|
9232
|
-
var
|
|
9298
|
+
var ia = /* @__PURE__ */ q({
|
|
9233
9299
|
name: "w-toolbar",
|
|
9234
9300
|
props: {
|
|
9235
9301
|
color: { type: String },
|
|
@@ -9284,10 +9350,10 @@ var Xi = /* @__PURE__ */ K({
|
|
|
9284
9350
|
};
|
|
9285
9351
|
}
|
|
9286
9352
|
}
|
|
9287
|
-
}, [["render",
|
|
9353
|
+
}, [["render", ra]]);
|
|
9288
9354
|
//#endregion
|
|
9289
9355
|
//#region src/wave-ui/components/w-tooltip.vue?vue&type=template&lang.js
|
|
9290
|
-
function
|
|
9356
|
+
function aa(t, i, a, l, u, p) {
|
|
9291
9357
|
return b(), c(e, null, [
|
|
9292
9358
|
T(t.$slots, "activator"),
|
|
9293
9359
|
t.$slots.activator ? s("", !0) : T(t.$slots, "default", { key: 0 }),
|
|
@@ -9298,6 +9364,7 @@ function Zi(t, i, a, l, u, p) {
|
|
|
9298
9364
|
}, [f(r, {
|
|
9299
9365
|
name: p.transitionName,
|
|
9300
9366
|
appear: "",
|
|
9367
|
+
onAfterEnter: t.onDetachableAfterEnter,
|
|
9301
9368
|
onAfterLeave: t.onAfterLeave
|
|
9302
9369
|
}, {
|
|
9303
9370
|
default: M(() => [t.detachableVisible ? (b(), c("div", {
|
|
@@ -9307,14 +9374,18 @@ function Zi(t, i, a, l, u, p) {
|
|
|
9307
9374
|
style: y(p.styles)
|
|
9308
9375
|
}, [a.tooltip ? (b(), c(e, { key: 0 }, [d(O(a.tooltip), 1)], 64)) : t.$slots.tooltip ? T(t.$slots, "tooltip", { key: 1 }) : t.$slots.activator ? T(t.$slots, "default", { key: 2 }) : s("", !0)], 6)) : s("", !0)]),
|
|
9309
9376
|
_: 3
|
|
9310
|
-
}, 8, [
|
|
9377
|
+
}, 8, [
|
|
9378
|
+
"name",
|
|
9379
|
+
"onAfterEnter",
|
|
9380
|
+
"onAfterLeave"
|
|
9381
|
+
])], 8, ["to", "disabled"])) : s("", !0)
|
|
9311
9382
|
], 64);
|
|
9312
9383
|
}
|
|
9313
|
-
var
|
|
9384
|
+
var oa = /* @__PURE__ */ q({
|
|
9314
9385
|
name: "w-tooltip",
|
|
9315
|
-
mixins: [
|
|
9386
|
+
mixins: [Hn],
|
|
9316
9387
|
setup() {
|
|
9317
|
-
return { tooltipInstanceId:
|
|
9388
|
+
return { tooltipInstanceId: A() };
|
|
9318
9389
|
},
|
|
9319
9390
|
props: {
|
|
9320
9391
|
modelValue: {},
|
|
@@ -9427,26 +9498,26 @@ var Qi = /* @__PURE__ */ K({
|
|
|
9427
9498
|
this.detachableVisible && (this.showOnHover && !e && (await new Promise((e) => setTimeout(e, 10)), this.showOnHover && 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)));
|
|
9428
9499
|
}
|
|
9429
9500
|
}
|
|
9430
|
-
}, [["render",
|
|
9501
|
+
}, [["render", aa]]);
|
|
9431
9502
|
//#endregion
|
|
9432
9503
|
//#region src/wave-ui/components/transitions/w-transition-bounce.vue?vue&type=template&lang.js
|
|
9433
|
-
function
|
|
9504
|
+
function sa(e, t, n, i, a, s) {
|
|
9434
9505
|
return b(), o(r, h({ name: "bounce" }, e.$props), {
|
|
9435
9506
|
default: M(() => [T(e.$slots, "default")]),
|
|
9436
9507
|
_: 3
|
|
9437
9508
|
}, 16);
|
|
9438
9509
|
}
|
|
9439
|
-
var
|
|
9510
|
+
var ca = /* @__PURE__ */ q({
|
|
9440
9511
|
name: "w-transition-bounce",
|
|
9441
9512
|
props: {
|
|
9442
9513
|
appear: { type: Boolean },
|
|
9443
9514
|
duration: { type: [Number, String] },
|
|
9444
9515
|
mode: { type: String }
|
|
9445
9516
|
}
|
|
9446
|
-
}, [["render",
|
|
9517
|
+
}, [["render", sa]]);
|
|
9447
9518
|
//#endregion
|
|
9448
9519
|
//#region src/wave-ui/components/transitions/w-transition-expand.vue?vue&type=template&lang.js
|
|
9449
|
-
function
|
|
9520
|
+
function la(e, t, n, i, a, s) {
|
|
9450
9521
|
return b(), o(r, {
|
|
9451
9522
|
name: "expand",
|
|
9452
9523
|
mode: n.mode,
|
|
@@ -9476,7 +9547,7 @@ function ta(e, t, n, i, a, s) {
|
|
|
9476
9547
|
"onAfterLeave"
|
|
9477
9548
|
]);
|
|
9478
9549
|
}
|
|
9479
|
-
var
|
|
9550
|
+
var ua = /* @__PURE__ */ q({
|
|
9480
9551
|
name: "w-transition-expand",
|
|
9481
9552
|
props: {
|
|
9482
9553
|
x: { type: Boolean },
|
|
@@ -9573,64 +9644,64 @@ var na = /* @__PURE__ */ K({
|
|
|
9573
9644
|
this.animX && (this.el.width = e.offsetWidth, this.el.marginLeft = t.getPropertyValue("marginLeft"), this.el.marginRight = t.getPropertyValue("marginRight"), this.el.paddingLeft = t.getPropertyValue("paddingLeft"), this.el.paddingRight = t.getPropertyValue("paddingRight"), this.el.borderLeftWidth = t.getPropertyValue("borderLeftWidth"), this.el.borderRightWidth = t.getPropertyValue("borderRightWidth")), this.animY && (this.el.height = e.offsetHeight, this.el.marginTop = t.getPropertyValue("marginTop"), this.el.marginBottom = t.getPropertyValue("marginBottom"), this.el.paddingTop = t.getPropertyValue("paddingTop"), this.el.paddingBottom = t.getPropertyValue("paddingBottom"), this.el.borderTopWidth = t.getPropertyValue("borderTopWidth"), this.el.borderBottomWidth = t.getPropertyValue("borderBottomWidth")), this.el.savedState = !0;
|
|
9574
9645
|
}
|
|
9575
9646
|
}
|
|
9576
|
-
}, [["render",
|
|
9647
|
+
}, [["render", la]]);
|
|
9577
9648
|
//#endregion
|
|
9578
9649
|
//#region src/wave-ui/components/transitions/w-transition-fade.vue?vue&type=template&lang.js
|
|
9579
|
-
function
|
|
9650
|
+
function da(e, t, n, i, a, s) {
|
|
9580
9651
|
return b(), o(r, h({ name: "fade" }, e.$props), {
|
|
9581
9652
|
default: M(() => [T(e.$slots, "default")]),
|
|
9582
9653
|
_: 3
|
|
9583
9654
|
}, 16);
|
|
9584
9655
|
}
|
|
9585
|
-
var
|
|
9656
|
+
var fa = /* @__PURE__ */ q({
|
|
9586
9657
|
name: "w-transition-fade",
|
|
9587
9658
|
props: {
|
|
9588
9659
|
appear: { type: Boolean },
|
|
9589
9660
|
duration: { type: [Number, String] },
|
|
9590
9661
|
mode: { type: String }
|
|
9591
9662
|
}
|
|
9592
|
-
}, [["render",
|
|
9663
|
+
}, [["render", da]]);
|
|
9593
9664
|
//#endregion
|
|
9594
9665
|
//#region src/wave-ui/components/transitions/w-transition-scale.vue?vue&type=template&lang.js
|
|
9595
|
-
function
|
|
9666
|
+
function pa(e, t, n, i, a, s) {
|
|
9596
9667
|
return b(), o(r, h({ name: "scale" }, e.$props), {
|
|
9597
9668
|
default: M(() => [T(e.$slots, "default")]),
|
|
9598
9669
|
_: 3
|
|
9599
9670
|
}, 16);
|
|
9600
9671
|
}
|
|
9601
|
-
var
|
|
9672
|
+
var ma = /* @__PURE__ */ q({
|
|
9602
9673
|
name: "w-transition-scale",
|
|
9603
9674
|
props: {
|
|
9604
9675
|
appear: { type: Boolean },
|
|
9605
9676
|
duration: { type: [Number, String] },
|
|
9606
9677
|
mode: { type: String }
|
|
9607
9678
|
}
|
|
9608
|
-
}, [["render",
|
|
9679
|
+
}, [["render", pa]]);
|
|
9609
9680
|
//#endregion
|
|
9610
9681
|
//#region src/wave-ui/components/transitions/w-transition-scale-fade.vue?vue&type=template&lang.js
|
|
9611
|
-
function
|
|
9682
|
+
function ha(e, t, n, i, a, s) {
|
|
9612
9683
|
return b(), o(r, h({ name: "scale-fade" }, e.$props), {
|
|
9613
9684
|
default: M(() => [T(e.$slots, "default")]),
|
|
9614
9685
|
_: 3
|
|
9615
9686
|
}, 16);
|
|
9616
9687
|
}
|
|
9617
|
-
var
|
|
9688
|
+
var ga = /* @__PURE__ */ q({
|
|
9618
9689
|
name: "w-transition-scale-fade",
|
|
9619
9690
|
props: {
|
|
9620
9691
|
appear: { type: Boolean },
|
|
9621
9692
|
duration: { type: [Number, String] },
|
|
9622
9693
|
mode: { type: String }
|
|
9623
9694
|
}
|
|
9624
|
-
}, [["render",
|
|
9695
|
+
}, [["render", ha]]);
|
|
9625
9696
|
//#endregion
|
|
9626
9697
|
//#region src/wave-ui/components/transitions/w-transition-slide.vue?vue&type=template&lang.js
|
|
9627
|
-
function
|
|
9698
|
+
function _a(e, t, n, i, a, s) {
|
|
9628
9699
|
return b(), o(r, h({ name: s.transitionName }, e.$props), {
|
|
9629
9700
|
default: M(() => [T(e.$slots, "default")]),
|
|
9630
9701
|
_: 3
|
|
9631
9702
|
}, 16, ["name"]);
|
|
9632
9703
|
}
|
|
9633
|
-
var
|
|
9704
|
+
var va = /* @__PURE__ */ q({
|
|
9634
9705
|
name: "w-transition-slide",
|
|
9635
9706
|
props: {
|
|
9636
9707
|
appear: { type: Boolean },
|
|
@@ -9649,16 +9720,16 @@ var ua = /* @__PURE__ */ K({
|
|
|
9649
9720
|
return `slide-${this.direction}`;
|
|
9650
9721
|
}
|
|
9651
9722
|
}
|
|
9652
|
-
}, [["render",
|
|
9723
|
+
}, [["render", _a]]);
|
|
9653
9724
|
//#endregion
|
|
9654
9725
|
//#region src/wave-ui/components/transitions/w-transition-slide-fade.vue?vue&type=template&lang.js
|
|
9655
|
-
function
|
|
9726
|
+
function ya(e, t, n, i, a, s) {
|
|
9656
9727
|
return b(), o(r, h({ name: s.transitionName }, e.$props), {
|
|
9657
9728
|
default: M(() => [T(e.$slots, "default")]),
|
|
9658
9729
|
_: 3
|
|
9659
9730
|
}, 16, ["name"]);
|
|
9660
9731
|
}
|
|
9661
|
-
var
|
|
9732
|
+
var ba = /* @__PURE__ */ q({
|
|
9662
9733
|
name: "w-transition-slide-fade",
|
|
9663
9734
|
props: {
|
|
9664
9735
|
appear: { type: Boolean },
|
|
@@ -9677,27 +9748,27 @@ var fa = /* @__PURE__ */ K({
|
|
|
9677
9748
|
return `slide-fade-${this.direction}`;
|
|
9678
9749
|
}
|
|
9679
9750
|
}
|
|
9680
|
-
}, [["render",
|
|
9751
|
+
}, [["render", ya]]);
|
|
9681
9752
|
//#endregion
|
|
9682
9753
|
//#region src/wave-ui/components/transitions/w-transition-twist.vue?vue&type=template&lang.js
|
|
9683
|
-
function
|
|
9754
|
+
function xa(e, t, n, i, a, s) {
|
|
9684
9755
|
return b(), o(r, h({ name: "twist" }, e.$props), {
|
|
9685
9756
|
default: M(() => [T(e.$slots, "default")]),
|
|
9686
9757
|
_: 3
|
|
9687
9758
|
}, 16);
|
|
9688
9759
|
}
|
|
9689
|
-
var
|
|
9760
|
+
var Sa = /* @__PURE__ */ q({
|
|
9690
9761
|
name: "w-transition-twist",
|
|
9691
9762
|
props: {
|
|
9692
9763
|
appear: { type: Boolean },
|
|
9693
9764
|
duration: { type: [Number, String] },
|
|
9694
9765
|
mode: { type: String }
|
|
9695
9766
|
}
|
|
9696
|
-
}, [["render",
|
|
9767
|
+
}, [["render", xa]]), Ca = ["innerHTML"], wa = {
|
|
9697
9768
|
key: 1,
|
|
9698
9769
|
class: "ml1"
|
|
9699
9770
|
};
|
|
9700
|
-
function
|
|
9771
|
+
function Ta(t, n, r, i, a, u) {
|
|
9701
9772
|
let f = E("w-button"), p = E("w-icon"), m = E("w-tree", !0);
|
|
9702
9773
|
return b(), c("ul", { class: _(["w-tree", u.classes]) }, [(b(!0), c(e, null, w(t.currentDepthItems, (e, i) => (b(), c("li", {
|
|
9703
9774
|
class: _(["w-tree__item", u.itemClasses(e)]),
|
|
@@ -9739,8 +9810,8 @@ function _a(t, n, r, i, a, u) {
|
|
|
9739
9810
|
default: M(() => [d(O(u.itemIcon(e)), 1)]),
|
|
9740
9811
|
_: 2
|
|
9741
9812
|
}, 1032, ["color"])) : s("", !0),
|
|
9742
|
-
l("span", { innerHTML: e.label }, null, 8,
|
|
9743
|
-
r.counts && (e.children || e.branch) ? (b(), c("span",
|
|
9813
|
+
l("span", { innerHTML: e.label }, null, 8, Ca),
|
|
9814
|
+
r.counts && (e.children || e.branch) ? (b(), c("span", wa, "(" + O(e.originalItem.children?.length || 0) + ")", 1)) : s("", !0)
|
|
9744
9815
|
])]),
|
|
9745
9816
|
_: 2
|
|
9746
9817
|
}, 1040, [
|
|
@@ -9788,8 +9859,9 @@ function _a(t, n, r, i, a, u) {
|
|
|
9788
9859
|
"onAfterLeave"
|
|
9789
9860
|
]))], 2))), 128))], 2);
|
|
9790
9861
|
}
|
|
9791
|
-
var
|
|
9862
|
+
var Ea = /* @__PURE__ */ q({
|
|
9792
9863
|
name: "w-tree",
|
|
9864
|
+
focusable: !0,
|
|
9793
9865
|
expose: ["focus"],
|
|
9794
9866
|
mixins: [X],
|
|
9795
9867
|
props: {
|
|
@@ -9873,7 +9945,7 @@ var va = /* @__PURE__ */ K({
|
|
|
9873
9945
|
} },
|
|
9874
9946
|
methods: {
|
|
9875
9947
|
focus() {
|
|
9876
|
-
this.disabled ||
|
|
9948
|
+
this.disabled || J(this.$el.querySelector(".w-tree__item-label[tabindex=\"0\"]"));
|
|
9877
9949
|
},
|
|
9878
9950
|
updateCurrentDepthTree(e, t = []) {
|
|
9879
9951
|
if (this.currentDepthItems = [], !Array.isArray(e) && typeof e != "object") return R(`[w-tree] the tree items must be of type array or object, ${typeof e} received.`, e);
|
|
@@ -9987,65 +10059,65 @@ var va = /* @__PURE__ */ K({
|
|
|
9987
10059
|
unmounted() {
|
|
9988
10060
|
this.dataPropUnwatch();
|
|
9989
10061
|
}
|
|
9990
|
-
}, [["render",
|
|
9991
|
-
WAccordion: () =>
|
|
9992
|
-
WAccordionItem: () =>
|
|
9993
|
-
WAlert: () =>
|
|
9994
|
-
WAutocomplete: () =>
|
|
9995
|
-
WBadge: () =>
|
|
9996
|
-
WBreadcrumbs: () =>
|
|
9997
|
-
WButton: () =>
|
|
9998
|
-
WCard: () =>
|
|
9999
|
-
WCheckbox: () =>
|
|
10000
|
-
WCheckboxes: () =>
|
|
10001
|
-
WConfirm: () =>
|
|
10002
|
-
WDatePicker: () =>
|
|
10003
|
-
WDialog: () =>
|
|
10004
|
-
WDivider: () =>
|
|
10005
|
-
WDrawer: () =>
|
|
10006
|
-
WFlex: () =>
|
|
10007
|
-
WForm: () =>
|
|
10008
|
-
WFormElement: () =>
|
|
10009
|
-
WGrid: () =>
|
|
10010
|
-
WIcon: () =>
|
|
10011
|
-
WImage: () =>
|
|
10012
|
-
WInput: () =>
|
|
10013
|
-
WList: () =>
|
|
10014
|
-
WMenu: () =>
|
|
10015
|
-
WNotification: () =>
|
|
10016
|
-
WOverlay: () =>
|
|
10017
|
-
WParallax: () =>
|
|
10018
|
-
WProgress: () =>
|
|
10019
|
-
WRadio: () =>
|
|
10020
|
-
WRadios: () =>
|
|
10021
|
-
WRating: () =>
|
|
10022
|
-
WScrollable: () =>
|
|
10023
|
-
WSelect: () =>
|
|
10024
|
-
WSlider: () =>
|
|
10025
|
-
WSpinner: () =>
|
|
10026
|
-
WSteps: () =>
|
|
10027
|
-
WSwitch: () =>
|
|
10028
|
-
WTable: () =>
|
|
10029
|
-
WTabs: () =>
|
|
10030
|
-
WTag: () =>
|
|
10031
|
-
WTextarea: () =>
|
|
10032
|
-
WTimeline: () =>
|
|
10033
|
-
WToolbar: () =>
|
|
10034
|
-
WTooltip: () =>
|
|
10035
|
-
WTransitionBounce: () =>
|
|
10036
|
-
WTransitionExpand: () =>
|
|
10037
|
-
WTransitionFade: () =>
|
|
10038
|
-
WTransitionScale: () =>
|
|
10039
|
-
WTransitionScaleFade: () =>
|
|
10040
|
-
WTransitionSlide: () =>
|
|
10041
|
-
WTransitionSlideFade: () =>
|
|
10042
|
-
WTransitionTwist: () =>
|
|
10043
|
-
WTree: () =>
|
|
10044
|
-
}),
|
|
10045
|
-
|
|
10046
|
-
components:
|
|
10062
|
+
}, [["render", Ta]]), Da = /* @__PURE__ */ I({
|
|
10063
|
+
WAccordion: () => mt,
|
|
10064
|
+
WAccordionItem: () => ft,
|
|
10065
|
+
WAlert: () => _t,
|
|
10066
|
+
WAutocomplete: () => Dt,
|
|
10067
|
+
WBadge: () => At,
|
|
10068
|
+
WBreadcrumbs: () => Nt,
|
|
10069
|
+
WButton: () => zt,
|
|
10070
|
+
WCard: () => Ht,
|
|
10071
|
+
WCheckbox: () => Yt,
|
|
10072
|
+
WCheckboxes: () => Qt,
|
|
10073
|
+
WConfirm: () => en,
|
|
10074
|
+
WDatePicker: () => nn,
|
|
10075
|
+
WDialog: () => an,
|
|
10076
|
+
WDivider: () => cn,
|
|
10077
|
+
WDrawer: () => fn,
|
|
10078
|
+
WFlex: () => mn,
|
|
10079
|
+
WForm: () => _n,
|
|
10080
|
+
WFormElement: () => yn,
|
|
10081
|
+
WGrid: () => xn,
|
|
10082
|
+
WIcon: () => Cn,
|
|
10083
|
+
WImage: () => Dn,
|
|
10084
|
+
WInput: () => Ln,
|
|
10085
|
+
WList: () => zn,
|
|
10086
|
+
WMenu: () => Wn,
|
|
10087
|
+
WNotification: () => Kn,
|
|
10088
|
+
WOverlay: () => Jn,
|
|
10089
|
+
WParallax: () => Zn,
|
|
10090
|
+
WProgress: () => ar,
|
|
10091
|
+
WRadio: () => fr,
|
|
10092
|
+
WRadios: () => hr,
|
|
10093
|
+
WRating: () => yr,
|
|
10094
|
+
WScrollable: () => Tr,
|
|
10095
|
+
WSelect: () => jr,
|
|
10096
|
+
WSlider: () => Wr,
|
|
10097
|
+
WSpinner: () => qr,
|
|
10098
|
+
WSteps: () => Yr,
|
|
10099
|
+
WSwitch: () => ri,
|
|
10100
|
+
WTable: () => Wi,
|
|
10101
|
+
WTabs: () => mi,
|
|
10102
|
+
WTag: () => qi,
|
|
10103
|
+
WTextarea: () => Qi,
|
|
10104
|
+
WTimeline: () => na,
|
|
10105
|
+
WToolbar: () => ia,
|
|
10106
|
+
WTooltip: () => oa,
|
|
10107
|
+
WTransitionBounce: () => ca,
|
|
10108
|
+
WTransitionExpand: () => ua,
|
|
10109
|
+
WTransitionFade: () => fa,
|
|
10110
|
+
WTransitionScale: () => ma,
|
|
10111
|
+
WTransitionScaleFade: () => ga,
|
|
10112
|
+
WTransitionSlide: () => va,
|
|
10113
|
+
WTransitionSlideFade: () => ba,
|
|
10114
|
+
WTransitionTwist: () => Sa,
|
|
10115
|
+
WTree: () => Ea
|
|
10116
|
+
}), Oa = et.install;
|
|
10117
|
+
et.install = (e, t = {}) => Oa.call(et, e, {
|
|
10118
|
+
components: Da,
|
|
10047
10119
|
...t
|
|
10048
10120
|
});
|
|
10049
|
-
var
|
|
10121
|
+
var ka = et;
|
|
10050
10122
|
//#endregion
|
|
10051
|
-
export {
|
|
10123
|
+
export { ka as default };
|