wave-ui 4.1.1 → 4.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/types/types/$waveui.d.ts +2 -2
- package/dist/wave-ui.cjs.js +1 -1
- package/dist/wave-ui.esm.js +337 -309
- package/dist/wave-ui.umd.js +1 -1
- package/package.json +1 -1
- package/src/wave-ui/core.js +95 -3
- package/src/wave-ui/utils/dynamic-css.js +3 -3
package/dist/wave-ui.esm.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
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 ae, vModelDynamic as oe, vModelText as A, vShow as se, watch as ce, withCtx as j, withDirectives as M, withKeys as N, withModifiers as P } from "vue";
|
|
2
2
|
//#region \0rolldown/runtime.js
|
|
3
|
-
var
|
|
3
|
+
var le = Object.defineProperty, F = (e, t) => {
|
|
4
4
|
let n = {};
|
|
5
|
-
for (var r in e)
|
|
5
|
+
for (var r in e) le(n, r, {
|
|
6
6
|
get: e[r],
|
|
7
7
|
enumerable: !0
|
|
8
8
|
});
|
|
9
|
-
return t ||
|
|
10
|
-
},
|
|
9
|
+
return t || le(n, Symbol.toStringTag, { value: "Module" }), n;
|
|
10
|
+
}, I = x({
|
|
11
11
|
on: "#app",
|
|
12
12
|
breakpoints: {
|
|
13
13
|
xs: 600,
|
|
@@ -52,14 +52,14 @@ var ce = Object.defineProperty, I = (e, t) => {
|
|
|
52
52
|
},
|
|
53
53
|
ripple: !0,
|
|
54
54
|
presets: {}
|
|
55
|
-
}),
|
|
55
|
+
}), ue = (e, t = I) => {
|
|
56
56
|
if (!Object.keys(t).length) t = Object.assign(t, e);
|
|
57
57
|
else for (let n in e) {
|
|
58
58
|
let r = e[n];
|
|
59
|
-
typeof r == "object" && typeof t[n] == "object" ?
|
|
59
|
+
typeof r == "object" && typeof t[n] == "object" ? ue(e[n], t[n]) : t[n] = r;
|
|
60
60
|
}
|
|
61
61
|
return t;
|
|
62
|
-
},
|
|
62
|
+
}, L = (e) => console.warn(`Wave UI: ${e}`), R = (e) => console.error(`Wave UI: ${e}`), de = (e) => {
|
|
63
63
|
["light", "dark"].forEach((t) => {
|
|
64
64
|
let n = e.colors[t];
|
|
65
65
|
n.shades = {};
|
|
@@ -72,13 +72,13 @@ var ce = Object.defineProperty, I = (e, t) => {
|
|
|
72
72
|
if (i) {
|
|
73
73
|
i.length === 3 && (r.color = `${i[0]}${i[0]}${i[1]}${i[1]}${i[2]}${i[2]}`);
|
|
74
74
|
for (let e = 1; e <= 6; e++) {
|
|
75
|
-
let i =
|
|
75
|
+
let i = be(`#${r.color}`, e * (t?.lightIncrement ?? 16) + (t?.lightOffset ?? 0)), a = xe(`#${r.color}`, e * (t?.darkIncrement ?? 12.4) + (t?.darkOffset ?? 0));
|
|
76
76
|
n.shades[`${r.label}-light${e}`] = i, n.shades[`${r.label}-dark${e}`] = a;
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
80
|
});
|
|
81
|
-
},
|
|
81
|
+
}, fe = (e, t) => {
|
|
82
82
|
let n = { ...t.reduce((e, t) => (e[t.label] = t.color, (t.shades || []).forEach((t) => {
|
|
83
83
|
e[t.label] = t.color;
|
|
84
84
|
}), e), {
|
|
@@ -87,27 +87,27 @@ var ce = Object.defineProperty, I = (e, t) => {
|
|
|
87
87
|
}) };
|
|
88
88
|
return delete n.shades, n;
|
|
89
89
|
};
|
|
90
|
-
function
|
|
90
|
+
function pe(e, t, n) {
|
|
91
91
|
return Math.min(Math.max(e, t), n);
|
|
92
92
|
}
|
|
93
|
-
function
|
|
93
|
+
function z(e) {
|
|
94
94
|
let t = e.toString(16);
|
|
95
|
-
return t.length === 1 && `0${t}` || t.length === 2 && t ||
|
|
95
|
+
return t.length === 1 && `0${t}` || t.length === 2 && t || R(`expected value from 0~255, got: ${e}`) || "";
|
|
96
96
|
}
|
|
97
|
-
function
|
|
97
|
+
function B(e) {
|
|
98
98
|
return /^#[0-9a-f]{6}([0-9a-f]{2})?$/i.test(e);
|
|
99
99
|
}
|
|
100
|
-
function pe(e) {
|
|
101
|
-
return /^#[0-9a-f]{3}([0-9a-f])?$/i.test(e);
|
|
102
|
-
}
|
|
103
100
|
function me(e) {
|
|
104
|
-
return
|
|
101
|
+
return /^#[0-9a-f]{3}([0-9a-f])?$/i.test(e);
|
|
105
102
|
}
|
|
106
103
|
function he(e) {
|
|
107
|
-
return
|
|
104
|
+
return `#${e.substring(1).split("").map((e) => `${e}${e}`).join("")}`;
|
|
108
105
|
}
|
|
109
106
|
function ge(e) {
|
|
110
|
-
|
|
107
|
+
return B(e) && e || me(e) && he(e) || R(`expected color hex string, got '${e}'`) || "";
|
|
108
|
+
}
|
|
109
|
+
function _e(e) {
|
|
110
|
+
let t = ge(e);
|
|
111
111
|
return {
|
|
112
112
|
red: parseInt(t.substring(1, 3), 16),
|
|
113
113
|
green: parseInt(t.substring(3, 5), 16),
|
|
@@ -116,24 +116,24 @@ function ge(e) {
|
|
|
116
116
|
hasAlpha: t.length === 9
|
|
117
117
|
};
|
|
118
118
|
}
|
|
119
|
-
function
|
|
120
|
-
return `#${
|
|
119
|
+
function ve(e, t, n, r) {
|
|
120
|
+
return `#${z(e)}${z(t)}${z(n)}${r ? z(Math.floor(r * 255)) : ""}`;
|
|
121
121
|
}
|
|
122
|
-
function
|
|
123
|
-
let r =
|
|
122
|
+
function ye(e, t, n = 50) {
|
|
123
|
+
let r = _e(e), i = _e(t), a = pe(n, 0, 100) / 100, o = 2 * a - 1, s = r.alpha - i.alpha, c = ((o * s === -1 ? o : (o + s) / (1 + o * s)) + 1) / 2, l = 1 - c, u = pe(Math.round(r.red * c + i.red * l), 0, 255), d = pe(Math.round(r.green * c + i.green * l), 0, 255), f = pe(Math.round(r.blue * c + i.blue * l), 0, 255), p = r.alpha * a + i.alpha * (1 - a), m = [
|
|
124
124
|
u,
|
|
125
125
|
d,
|
|
126
126
|
f
|
|
127
127
|
];
|
|
128
|
-
return (r.hasAlpha || i.hasAlpha || p !== 1) && m.push(p),
|
|
128
|
+
return (r.hasAlpha || i.hasAlpha || p !== 1) && m.push(p), ve(...m);
|
|
129
129
|
}
|
|
130
|
-
function
|
|
131
|
-
return
|
|
130
|
+
function be(e, t = 15) {
|
|
131
|
+
return ye("#ffffff", e, t);
|
|
132
132
|
}
|
|
133
|
-
function
|
|
134
|
-
return
|
|
133
|
+
function xe(e, t = 12.4) {
|
|
134
|
+
return ye("#000000", e, t);
|
|
135
135
|
}
|
|
136
|
-
var
|
|
136
|
+
var Se = [
|
|
137
137
|
{
|
|
138
138
|
label: "pink",
|
|
139
139
|
color: "#e91e63",
|
|
@@ -1176,38 +1176,38 @@ var xe = [
|
|
|
1176
1176
|
label: "inherit",
|
|
1177
1177
|
color: "inherit"
|
|
1178
1178
|
}
|
|
1179
|
-
],
|
|
1179
|
+
], V = {
|
|
1180
1180
|
cssScope: ".w-app",
|
|
1181
1181
|
baseIncrement: 4
|
|
1182
|
-
},
|
|
1182
|
+
}, H = {
|
|
1183
1183
|
keys: [],
|
|
1184
1184
|
values: []
|
|
1185
|
-
},
|
|
1185
|
+
}, Ce = null, we = (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
|
|
1194
|
-
for (let e in
|
|
1195
|
-
for (let e in
|
|
1196
|
-
let
|
|
1197
|
-
|
|
1192
|
+
}, U = (e, t, n = ":root") => {
|
|
1193
|
+
let r = "", i = "", { info: a, warning: o, success: s, error: c, shades: l, ...u } = e, { cssScope: d } = V;
|
|
1194
|
+
for (let e in u) r += `${d} .${e}--bg{background-color:var(--w-${e}-color)}${d} .${e}{color:var(--w-${e}-color)}`;
|
|
1195
|
+
for (let e in l) {
|
|
1196
|
+
let n = t ? `var(--w-${e}-color)` : l[e];
|
|
1197
|
+
r += `${d} .${e}--bg{background-color:${n}}${d} .${e}{color:${n}}`;
|
|
1198
1198
|
}
|
|
1199
|
-
let
|
|
1200
|
-
...
|
|
1201
|
-
info:
|
|
1202
|
-
warning:
|
|
1203
|
-
success:
|
|
1204
|
-
error:
|
|
1199
|
+
let f = {
|
|
1200
|
+
...u,
|
|
1201
|
+
info: a,
|
|
1202
|
+
warning: o,
|
|
1203
|
+
success: s,
|
|
1204
|
+
error: c
|
|
1205
1205
|
};
|
|
1206
|
-
for (let e in
|
|
1207
|
-
if (t) for (let e in
|
|
1208
|
-
return
|
|
1206
|
+
for (let e in f) i += `--w-${e}-color: ${f[e]?.color ?? f[e]};`;
|
|
1207
|
+
if (t) for (let e in l) i += `--w-${e}-color: ${l[e]};`;
|
|
1208
|
+
return `${n}{${i}}${r}`;
|
|
1209
1209
|
}, Te = (e, t) => {
|
|
1210
|
-
let n = "", { cssScope: r } =
|
|
1210
|
+
let n = "", { cssScope: r } = V;
|
|
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 {
|
|
@@ -1217,7 +1217,7 @@ var xe = [
|
|
|
1217
1217
|
}
|
|
1218
1218
|
}), n;
|
|
1219
1219
|
}, Ee = (e) => {
|
|
1220
|
-
let t = "", { cssScope: n } =
|
|
1220
|
+
let t = "", { cssScope: n } = V, 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 }) => {
|
|
@@ -1226,10 +1226,10 @@ var xe = [
|
|
|
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
1228
|
}, W = (e) => {
|
|
1229
|
-
let t = window.innerWidth, n =
|
|
1229
|
+
let t = window.innerWidth, n = H.values.slice(0);
|
|
1230
1230
|
n.push(t), n.sort((e, t) => e - t);
|
|
1231
|
-
let r =
|
|
1232
|
-
r !==
|
|
1231
|
+
let r = H.keys[n.indexOf(t)] || "xl";
|
|
1232
|
+
r !== Ce && (Ce = r, e.breakpoint = {
|
|
1233
1233
|
name: r,
|
|
1234
1234
|
xs: r === "xs",
|
|
1235
1235
|
sm: r === "sm",
|
|
@@ -1240,7 +1240,7 @@ var xe = [
|
|
|
1240
1240
|
}), e.breakpoint.width = window.innerWidth;
|
|
1241
1241
|
}, G = (e) => {
|
|
1242
1242
|
let { config: t } = e;
|
|
1243
|
-
if (
|
|
1243
|
+
if (H = {
|
|
1244
1244
|
keys: Object.keys(t.breakpoints),
|
|
1245
1245
|
values: Object.values(t.breakpoints)
|
|
1246
1246
|
}, !document.getElementById("wave-ui-styles")) {
|
|
@@ -1259,13 +1259,13 @@ var xe = [
|
|
|
1259
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 = we(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 = U(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
|
}
|
|
@@ -1278,7 +1278,7 @@ var xe = [
|
|
|
1278
1278
|
max: n
|
|
1279
1279
|
};
|
|
1280
1280
|
}), r = getComputedStyle(document.documentElement);
|
|
1281
|
-
|
|
1281
|
+
V.cssScope = (r.getPropertyValue("--w-css-scope") || ".w-app").trim() || ".w-app", V.baseIncrement = parseInt(r.getPropertyValue("--w-base-increment"), 10);
|
|
1282
1282
|
let i = "";
|
|
1283
1283
|
return i += Te(n, e.css.grid), e.css.breakpointLayoutClasses && (i += Ee(n)), i;
|
|
1284
1284
|
}, Oe = ["innerHTML"];
|
|
@@ -1290,14 +1290,14 @@ function ke(t, r, a, u, d, p) {
|
|
|
1290
1290
|
name: p.transition,
|
|
1291
1291
|
appear: ""
|
|
1292
1292
|
}, {
|
|
1293
|
-
default:
|
|
1293
|
+
default: j(() => [(b(!0), c(e, null, w(p.notifications, (t) => (b(), c(e, null, [t._value ? (b(), o(m, h({
|
|
1294
1294
|
class: "white--bg",
|
|
1295
1295
|
key: t._uid,
|
|
1296
1296
|
modelValue: t._value,
|
|
1297
1297
|
"onUpdate:modelValue": (e) => t._value = e,
|
|
1298
1298
|
onClose: t.dismiss
|
|
1299
1299
|
}, { ref_for: !0 }, p.notifProps(t)), {
|
|
1300
|
-
default:
|
|
1300
|
+
default: j(() => [l("div", { innerHTML: t.message }, null, 8, Oe)]),
|
|
1301
1301
|
_: 2
|
|
1302
1302
|
}, 1040, [
|
|
1303
1303
|
"modelValue",
|
|
@@ -1489,7 +1489,7 @@ var Ze = !1, Qe = (e) => {
|
|
|
1489
1489
|
i.props[n].default = t[n], r = !0;
|
|
1490
1490
|
break;
|
|
1491
1491
|
}
|
|
1492
|
-
r ||
|
|
1492
|
+
r || L(`Attempting to set a preset on a prop that doesn't exist: \`${e.name}.${n}\`.`);
|
|
1493
1493
|
}
|
|
1494
1494
|
}
|
|
1495
1495
|
}, et = class e {
|
|
@@ -1512,15 +1512,38 @@ var Ze = !1, Qe = (e) => {
|
|
|
1512
1512
|
this._notificationManager.notify(...e);
|
|
1513
1513
|
},
|
|
1514
1514
|
switchTheme(e) {
|
|
1515
|
-
this.theme
|
|
1515
|
+
this.theme !== e && document.head.querySelector("#wave-ui-colors")?.remove?.(), this.theme = e, document.documentElement.setAttribute("data-theme", e);
|
|
1516
1516
|
let t = this.config.colors[this.theme];
|
|
1517
|
-
De(t,
|
|
1517
|
+
De(t, Se, this.config.css.colorShadeCssVariables), this.colors = fe(t, Se);
|
|
1518
1518
|
},
|
|
1519
1519
|
setAppClasses(...e) {
|
|
1520
1520
|
let t = document.querySelector(".w-app");
|
|
1521
1521
|
t && (t.className = "w-app", e.length && e[0] && t.classList.add(...e));
|
|
1522
|
+
},
|
|
1523
|
+
getSSRStyles(e) {
|
|
1524
|
+
let t = we(Se), { colorShadeCssVariables: n } = this.config.css;
|
|
1525
|
+
return e ? {
|
|
1526
|
+
theme: e,
|
|
1527
|
+
palette: t,
|
|
1528
|
+
colors: U(this.config.colors[e], n)
|
|
1529
|
+
} : {
|
|
1530
|
+
theme: this.theme || this.config?.theme || "light",
|
|
1531
|
+
palette: t,
|
|
1532
|
+
colors: U(this.config.colors.light, n, "[data-theme=\"light\"]") + U(this.config.colors.dark, n, "[data-theme=\"dark\"]")
|
|
1533
|
+
};
|
|
1522
1534
|
}
|
|
1523
1535
|
};
|
|
1536
|
+
static resolveInitialTheme(e = "waveui-theme") {
|
|
1537
|
+
if (typeof window > "u") return "light";
|
|
1538
|
+
try {
|
|
1539
|
+
let t = localStorage.getItem(e);
|
|
1540
|
+
if (t === "light" || t === "dark") return t;
|
|
1541
|
+
} catch {}
|
|
1542
|
+
return window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
|
|
1543
|
+
}
|
|
1544
|
+
static getThemeInitScript(e = "waveui-theme") {
|
|
1545
|
+
return `(function(){try{var t=localStorage.getItem(${JSON.stringify(e)});if(t==='dark'||t==='light'){document.documentElement.setAttribute('data-theme',t);return}}catch(e){}if(window.matchMedia('(prefers-color-scheme:dark)').matches)document.documentElement.setAttribute('data-theme','dark')})()`;
|
|
1546
|
+
}
|
|
1524
1547
|
static install(t, n = {}) {
|
|
1525
1548
|
t.directive("focus", {
|
|
1526
1549
|
mounted: (e) => {
|
|
@@ -1546,7 +1569,12 @@ var Ze = !1, Qe = (e) => {
|
|
|
1546
1569
|
let e = typeof n.css.appClasses == "string" ? n.css.appClasses.split(" ").filter((e) => e) : n.css.appClasses;
|
|
1547
1570
|
e.length && r.classList.add(...e);
|
|
1548
1571
|
}
|
|
1549
|
-
n.theme === "auto"
|
|
1572
|
+
if (n.theme === "auto") Qe(e);
|
|
1573
|
+
else {
|
|
1574
|
+
let t = document.documentElement.getAttribute("data-theme");
|
|
1575
|
+
e.switchTheme(t === "light" || t === "dark" ? t : n.theme);
|
|
1576
|
+
}
|
|
1577
|
+
G(e), Me(t), t._context.mixins.find((e) => e.mounted &&= void 0);
|
|
1550
1578
|
}
|
|
1551
1579
|
} }), new e(t, n);
|
|
1552
1580
|
}
|
|
@@ -1560,9 +1588,9 @@ var Ze = !1, Qe = (e) => {
|
|
|
1560
1588
|
};
|
|
1561
1589
|
}
|
|
1562
1590
|
let { components: n, ...r } = t;
|
|
1563
|
-
r = this.$waveui.config =
|
|
1591
|
+
r = this.$waveui.config = ue(r), r.css.colorShades && de(r);
|
|
1564
1592
|
let i = x(this.$waveui);
|
|
1565
|
-
e.config.globalProperties.$waveui = i, e.provide("$waveui", i), r.theme !== "auto" && (this.$waveui.colors =
|
|
1593
|
+
e.config.globalProperties.$waveui = i, e.provide("$waveui", i), r.theme !== "auto" && (this.$waveui.theme = r.theme, this.$waveui.colors = fe(r.colors[r.theme], Se));
|
|
1566
1594
|
}
|
|
1567
1595
|
}, Y = (e = {}) => (typeof e == "string" ? e = { [e]: !0 } : Array.isArray(e) && (e = { [e.join(" ")]: !0 }), e), X = {
|
|
1568
1596
|
inject: { $waveui: {
|
|
@@ -1606,7 +1634,7 @@ function dt(e, n, r, i, a, u) {
|
|
|
1606
1634
|
onClick: n[4] ||= (e) => !u.accordionItem._disabled && u.toggleItem(u.accordionItem, e),
|
|
1607
1635
|
onPointerdown: n[5] ||= (...e) => u.onAccordionTitlePointerDown && u.onAccordionTitlePointerDown(...e),
|
|
1608
1636
|
onFocus: n[6] ||= (t) => e.$emit("focus", u.accordionItem),
|
|
1609
|
-
onKeypress: n[7] ||=
|
|
1637
|
+
onKeypress: n[7] ||= N((e) => !u.accordionItem._disabled && u.toggleItem(u.accordionItem, e), ["enter"]),
|
|
1610
1638
|
tabindex: !u.accordionItem._disabled && 0
|
|
1611
1639
|
}, [
|
|
1612
1640
|
u.options.expandIcon && !u.options.expandIconRight ? (b(), o(d, {
|
|
@@ -1620,8 +1648,8 @@ function dt(e, n, r, i, a, u) {
|
|
|
1620
1648
|
disabled: u.accordionItem._disabled || null,
|
|
1621
1649
|
tabindex: -1,
|
|
1622
1650
|
text: "",
|
|
1623
|
-
onKeypress: n[0] ||=
|
|
1624
|
-
onClick: n[1] ||=
|
|
1651
|
+
onKeypress: n[0] ||= P(() => {}, ["stop"]),
|
|
1652
|
+
onClick: n[1] ||= P((e) => !u.accordionItem._disabled && u.toggleItem(u.accordionItem, e), ["stop"])
|
|
1625
1653
|
}, null, 8, [
|
|
1626
1654
|
"icon",
|
|
1627
1655
|
"icon-props",
|
|
@@ -1644,8 +1672,8 @@ function dt(e, n, r, i, a, u) {
|
|
|
1644
1672
|
}]),
|
|
1645
1673
|
icon: u.accordionItem._expanded && u.options.collapseIcon || u.options.expandIcon,
|
|
1646
1674
|
text: "",
|
|
1647
|
-
onKeypress: n[2] ||=
|
|
1648
|
-
onClick: n[3] ||=
|
|
1675
|
+
onKeypress: n[2] ||= P(() => {}, ["stop"]),
|
|
1676
|
+
onClick: n[3] ||= P((e) => !u.accordionItem._disabled && u.toggleItem(u.accordionItem, e), ["stop"])
|
|
1649
1677
|
}, null, 8, ["icon", "class"])) : s("", !0)
|
|
1650
1678
|
], 42, at), u.options.keepInDom ? (b(), o(m, {
|
|
1651
1679
|
key: 0,
|
|
@@ -1653,11 +1681,11 @@ function dt(e, n, r, i, a, u) {
|
|
|
1653
1681
|
onAfterLeave: n[8] ||= (e) => u.onEndOfCollapse(u.accordionItem),
|
|
1654
1682
|
duration: u.options.duration
|
|
1655
1683
|
}, {
|
|
1656
|
-
default:
|
|
1684
|
+
default: j(() => [M(f(p, {
|
|
1657
1685
|
item: u.accordionItem,
|
|
1658
1686
|
class: _(u.contentClasses)
|
|
1659
1687
|
}, {
|
|
1660
|
-
default:
|
|
1688
|
+
default: j(() => [e.$slots.content ? T(e.$slots, "content", {
|
|
1661
1689
|
key: 0,
|
|
1662
1690
|
item: u.getOriginalItem(u.accordionItem),
|
|
1663
1691
|
expanded: u.accordionItem._expanded,
|
|
@@ -1669,7 +1697,7 @@ function dt(e, n, r, i, a, u) {
|
|
|
1669
1697
|
index: u.accordionItem._index + 1
|
|
1670
1698
|
}, () => [l("div", { innerHTML: u.accordionItem[u.options.itemContentKey] }, null, 8, ct)])]),
|
|
1671
1699
|
_: 3
|
|
1672
|
-
}, 8, ["item", "class"]), [[
|
|
1700
|
+
}, 8, ["item", "class"]), [[se, u.accordionItem._expanded]])]),
|
|
1673
1701
|
_: 3
|
|
1674
1702
|
}, 8, ["duration"])) : (b(), o(m, {
|
|
1675
1703
|
key: 1,
|
|
@@ -1677,12 +1705,12 @@ function dt(e, n, r, i, a, u) {
|
|
|
1677
1705
|
onAfterLeave: n[9] ||= (e) => u.onEndOfCollapse(u.accordionItem),
|
|
1678
1706
|
duration: u.options.duration
|
|
1679
1707
|
}, {
|
|
1680
|
-
default:
|
|
1708
|
+
default: j(() => [(b(), o(t, { exclude: u.options.keepAlive ? "" : "accordion-content" }, [u.accordionItem._expanded ? (b(), o(p, {
|
|
1681
1709
|
key: u.accordionItem._cuid,
|
|
1682
1710
|
item: u.accordionItem,
|
|
1683
1711
|
class: _(u.contentClasses)
|
|
1684
1712
|
}, {
|
|
1685
|
-
default:
|
|
1713
|
+
default: j(() => [e.$slots.content ? T(e.$slots, "content", {
|
|
1686
1714
|
key: 0,
|
|
1687
1715
|
item: u.getOriginalItem(u.accordionItem),
|
|
1688
1716
|
expanded: u.accordionItem._expanded,
|
|
@@ -1704,7 +1732,7 @@ var ft = /* @__PURE__ */ q({
|
|
|
1704
1732
|
expose: ["focus"],
|
|
1705
1733
|
mixins: [X],
|
|
1706
1734
|
setup() {
|
|
1707
|
-
return { accordionItemUid:
|
|
1735
|
+
return { accordionItemUid: ae() };
|
|
1708
1736
|
},
|
|
1709
1737
|
components: { AccordionContent: rt },
|
|
1710
1738
|
props: {
|
|
@@ -1799,7 +1827,7 @@ function pt(t, n, r, i, a, l) {
|
|
|
1799
1827
|
disabled: e.disabled || e._disabled,
|
|
1800
1828
|
onFocus: n[0] ||= (e) => t.$emit("focus", e)
|
|
1801
1829
|
}, {
|
|
1802
|
-
title:
|
|
1830
|
+
title: j(({ item: e, expanded: n, index: r }) => [t.$slots[`item-title.${e.id || r}`] ? T(t.$slots, `item-title.${e.id || r}`, {
|
|
1803
1831
|
key: 0,
|
|
1804
1832
|
item: e,
|
|
1805
1833
|
expanded: n,
|
|
@@ -1810,7 +1838,7 @@ function pt(t, n, r, i, a, l) {
|
|
|
1810
1838
|
expanded: n,
|
|
1811
1839
|
index: r
|
|
1812
1840
|
})]),
|
|
1813
|
-
content:
|
|
1841
|
+
content: j(({ item: e, expanded: n, index: r }) => [t.$slots[`item-content.${e.id || r}`] ? T(t.$slots, `item-content.${e.id || r}`, {
|
|
1814
1842
|
key: 0,
|
|
1815
1843
|
item: e,
|
|
1816
1844
|
expanded: n,
|
|
@@ -1986,7 +2014,7 @@ var mt = /* @__PURE__ */ q({
|
|
|
1986
2014
|
}
|
|
1987
2015
|
},
|
|
1988
2016
|
created() {
|
|
1989
|
-
isNaN(this.items) ||
|
|
2017
|
+
isNaN(this.items) || R("Since version 3.17.3, the w-accordion `items` prop can no longer be a Number.\n Please use the w-accordion-item component instead for advanced custom rendering.\n https://antoniandre.github.io/wave-ui/w-accordion#w-accordion-item");
|
|
1990
2018
|
},
|
|
1991
2019
|
unmounted() {
|
|
1992
2020
|
this.accordionItems = [];
|
|
@@ -2009,7 +2037,7 @@ function gt(t, n, r, i, a, u) {
|
|
|
2009
2037
|
key: 0,
|
|
2010
2038
|
class: "w-alert__icon"
|
|
2011
2039
|
}, {
|
|
2012
|
-
default:
|
|
2040
|
+
default: j(() => [d(O(u.type ? u.typeIcon : r.icon), 1)]),
|
|
2013
2041
|
_: 1
|
|
2014
2042
|
})) : s("", !0),
|
|
2015
2043
|
l("div", ht, [T(t.$slots, "default")]),
|
|
@@ -2108,7 +2136,7 @@ var _t = /* @__PURE__ */ q({
|
|
|
2108
2136
|
//#endregion
|
|
2109
2137
|
//#region src/wave-ui/mixins/form-elements.js
|
|
2110
2138
|
function Z() {
|
|
2111
|
-
return { waveUiUseId:
|
|
2139
|
+
return { waveUiUseId: ae() };
|
|
2112
2140
|
}
|
|
2113
2141
|
var Q = {
|
|
2114
2142
|
inject: {
|
|
@@ -2193,7 +2221,7 @@ function Et(t, n, r, i, a, u) {
|
|
|
2193
2221
|
class: u.classes,
|
|
2194
2222
|
style: t.$attrs.style
|
|
2195
2223
|
}), {
|
|
2196
|
-
default:
|
|
2224
|
+
default: j(() => [
|
|
2197
2225
|
r.labelPosition === "left" ? (b(), c(e, { key: 0 }, [t.$slots.default || r.label ? (b(), c("label", {
|
|
2198
2226
|
key: 0,
|
|
2199
2227
|
class: _(["w-autocomplete__label w-autocomplete__label--left w-form-el-shakable", t.labelClasses]),
|
|
@@ -2211,7 +2239,7 @@ function Et(t, n, r, i, a, u) {
|
|
|
2211
2239
|
custom: "",
|
|
2212
2240
|
"min-width": "activator"
|
|
2213
2241
|
}, u.menuPropsComputed), {
|
|
2214
|
-
content:
|
|
2242
|
+
content: j(() => [l("div", {
|
|
2215
2243
|
class: "w-autocomplete__list-wrap",
|
|
2216
2244
|
ref: "listWrap",
|
|
2217
2245
|
onMousedownCapture: n[4] ||= (e) => t.menuIsBeingClicked = !0,
|
|
@@ -2231,7 +2259,7 @@ function Et(t, n, r, i, a, u) {
|
|
|
2231
2259
|
"selection-color": r.color,
|
|
2232
2260
|
onItemSelect: u.onListItemSelect
|
|
2233
2261
|
}, {
|
|
2234
|
-
item:
|
|
2262
|
+
item: j(({ item: e }) => [T(t.$slots, "item", {
|
|
2235
2263
|
item: e,
|
|
2236
2264
|
highlighted: t.highlightedItem === e.uid
|
|
2237
2265
|
}, () => [l("span", { innerHTML: e[r.itemLabelKey] }, null, 8, Ct)])]),
|
|
@@ -2254,10 +2282,10 @@ function Et(t, n, r, i, a, u) {
|
|
|
2254
2282
|
t.$slots["extra-item"] ? (b(), c("div", {
|
|
2255
2283
|
key: 2,
|
|
2256
2284
|
class: _(["w-autocomplete__extra-item", { highlighted: t.highlightedItem === "extra-item" }]),
|
|
2257
|
-
onClick: n[3] ||=
|
|
2285
|
+
onClick: n[3] ||= P((...e) => u.selectExtraItem && u.selectExtraItem(...e), ["stop"])
|
|
2258
2286
|
}, [T(t.$slots, "extra-item")], 2)) : s("", !0)
|
|
2259
2287
|
], 544)]),
|
|
2260
|
-
default:
|
|
2288
|
+
default: j(() => [l("div", {
|
|
2261
2289
|
class: _(["w-autocomplete__input-wrap", u.inputWrapClasses]),
|
|
2262
2290
|
onClick: n[2] ||= (e) => !t.isDisabled && !t.isReadonly && u.onWrapClick()
|
|
2263
2291
|
}, [
|
|
@@ -2266,9 +2294,9 @@ function Et(t, n, r, i, a, u) {
|
|
|
2266
2294
|
class: "w-autocomplete__icon w-autocomplete__icon--inner-left",
|
|
2267
2295
|
tag: "label",
|
|
2268
2296
|
for: t.inputId,
|
|
2269
|
-
onClick: n[0] ||=
|
|
2297
|
+
onClick: n[0] ||= P((e) => t.$emit("click:inner-icon-left", e), ["stop"])
|
|
2270
2298
|
}, {
|
|
2271
|
-
default:
|
|
2299
|
+
default: j(() => [d(O(r.innerIconLeft), 1)]),
|
|
2272
2300
|
_: 1
|
|
2273
2301
|
}, 8, ["for"])) : s("", !0)]),
|
|
2274
2302
|
t.selection.length ? (b(!0), c(e, { key: 0 }, w(t.selection, (e, n) => (b(), c("div", {
|
|
@@ -2278,7 +2306,7 @@ function Et(t, n, r, i, a, u) {
|
|
|
2278
2306
|
item: e,
|
|
2279
2307
|
unselect: () => u.unselectItem(n)
|
|
2280
2308
|
}, () => [l("span", { innerHTML: e[r.itemLabelKey] }, null, 8, yt), f(m, {
|
|
2281
|
-
onClick:
|
|
2309
|
+
onClick: P((e) => u.unselectItem(n), ["stop"]),
|
|
2282
2310
|
icon: "wi-cross",
|
|
2283
2311
|
xs: "",
|
|
2284
2312
|
text: "",
|
|
@@ -2309,9 +2337,9 @@ function Et(t, n, r, i, a, u) {
|
|
|
2309
2337
|
class: "w-autocomplete__icon w-autocomplete__icon--inner-right",
|
|
2310
2338
|
tag: "label",
|
|
2311
2339
|
for: t.inputId,
|
|
2312
|
-
onClick: n[1] ||=
|
|
2340
|
+
onClick: n[1] ||= P((e) => t.$emit("click:inner-icon-right", e), ["stop"])
|
|
2313
2341
|
}, {
|
|
2314
|
-
default:
|
|
2342
|
+
default: j(() => [d(O(r.innerIconRight), 1)]),
|
|
2315
2343
|
_: 1
|
|
2316
2344
|
}, 8, ["for"])) : s("", !0)])
|
|
2317
2345
|
], 2)]),
|
|
@@ -2635,7 +2663,7 @@ var Dt = /* @__PURE__ */ q({
|
|
|
2635
2663
|
}, [["render", Et]]), Ot = { class: "w-badge-wrap" };
|
|
2636
2664
|
function kt(e, t, n, i, a, o) {
|
|
2637
2665
|
return b(), c("div", Ot, [T(e.$slots, "default"), f(r, { name: `${n.transition}` }, {
|
|
2638
|
-
default:
|
|
2666
|
+
default: j(() => [n.modelValue ? (b(), c("div", {
|
|
2639
2667
|
key: 0,
|
|
2640
2668
|
class: _(["w-badge", o.classes]),
|
|
2641
2669
|
style: y(o.styles),
|
|
@@ -2723,7 +2751,7 @@ function Mt(t, n, r, i, a, l) {
|
|
|
2723
2751
|
class: _(["w-breadcrumbs__separator", r.separatorColor]),
|
|
2724
2752
|
key: `${i}b`
|
|
2725
2753
|
}, {
|
|
2726
|
-
default:
|
|
2754
|
+
default: j(() => [d(O(r.icon), 1)]),
|
|
2727
2755
|
_: 1
|
|
2728
2756
|
}, 8, ["class"])) : s("", !0), n[r.itemRouteKey] && (i < r.items.length - 1 || r.linkLastItem) ? (b(), c(e, { key: 2 }, [t.$slots.item ? (b(), o(D(l.hasRouter ? "router-link" : "a"), {
|
|
2729
2757
|
class: _(["w-breadcrumbs__item", l.breadcrumbLinkClasses]),
|
|
@@ -2732,7 +2760,7 @@ function Mt(t, n, r, i, a, l) {
|
|
|
2732
2760
|
href: n[r.itemRouteKey],
|
|
2733
2761
|
onPointerdown: t.onRipple
|
|
2734
2762
|
}, {
|
|
2735
|
-
default:
|
|
2763
|
+
default: j(() => [T(t.$slots, "item", {
|
|
2736
2764
|
item: n,
|
|
2737
2765
|
index: i + 1,
|
|
2738
2766
|
isLast: i === r.items.length - 1
|
|
@@ -2828,11 +2856,11 @@ function Ft(e, t, n, i, a, u) {
|
|
|
2828
2856
|
style: u.styles,
|
|
2829
2857
|
onPointerdown: u.onPointerDownRipple
|
|
2830
2858
|
}), {
|
|
2831
|
-
default:
|
|
2832
|
-
default:
|
|
2859
|
+
default: j(() => [n.icon ? (b(), o(p, v(h({ key: 0 }, n.iconProps || {})), {
|
|
2860
|
+
default: j(() => [d(O(n.icon), 1)]),
|
|
2833
2861
|
_: 1
|
|
2834
2862
|
}, 16)) : T(e.$slots, "default", { key: 1 }), f(r, { name: "scale-fade" }, {
|
|
2835
|
-
default:
|
|
2863
|
+
default: j(() => [n.loading ? (b(), c("div", Pt, [T(e.$slots, "loading", {}, () => [t[0] ||= l("svg", { viewBox: "0 0 40 40" }, [l("circle", {
|
|
2836
2864
|
cx: "20",
|
|
2837
2865
|
cy: "20",
|
|
2838
2866
|
r: "18",
|
|
@@ -2960,9 +2988,9 @@ var It = /* @__PURE__ */ q({
|
|
|
2960
2988
|
function Rt(e, t, n, r, i, a) {
|
|
2961
2989
|
let s = E("button-partial");
|
|
2962
2990
|
return n.tooltip ? (b(), o(D("w-tooltip"), v(h({ key: 0 }, n.tooltipProps)), {
|
|
2963
|
-
tooltip:
|
|
2964
|
-
default:
|
|
2965
|
-
default:
|
|
2991
|
+
tooltip: j(() => [l("div", { innerHTML: n.tooltip }, null, 8, Lt)]),
|
|
2992
|
+
default: j(() => [f(s, h({ ref: "button" }, a.buttonProps), {
|
|
2993
|
+
default: j(() => [T(e.$slots, "default")]),
|
|
2966
2994
|
_: 3
|
|
2967
2995
|
}, 16)]),
|
|
2968
2996
|
_: 3
|
|
@@ -2970,8 +2998,8 @@ function Rt(e, t, n, r, i, a) {
|
|
|
2970
2998
|
key: 1,
|
|
2971
2999
|
ref: "button"
|
|
2972
3000
|
}, a.buttonProps), {
|
|
2973
|
-
loading:
|
|
2974
|
-
default:
|
|
3001
|
+
loading: j(() => [T(e.$slots, "loading")]),
|
|
3002
|
+
default: j(() => [T(e.$slots, "default")]),
|
|
2975
3003
|
_: 3
|
|
2976
3004
|
}, 16));
|
|
2977
3005
|
}
|
|
@@ -3064,7 +3092,7 @@ function Vt(e, t, n, r, i, a) {
|
|
|
3064
3092
|
class: "w-card__image",
|
|
3065
3093
|
src: n.image
|
|
3066
3094
|
}, a.imgProps), {
|
|
3067
|
-
default:
|
|
3095
|
+
default: j(() => [T(e.$slots, "image-content")]),
|
|
3068
3096
|
_: 3
|
|
3069
3097
|
}, 16, ["src"])) : s("", !0),
|
|
3070
3098
|
l("div", { class: _(["w-card__content", a.contentClasses]) }, [T(e.$slots, "default")], 2),
|
|
@@ -3158,7 +3186,7 @@ function Jt(t, n, r, i, a, u) {
|
|
|
3158
3186
|
},
|
|
3159
3187
|
class: u.classes
|
|
3160
3188
|
}), {
|
|
3161
|
-
default:
|
|
3189
|
+
default: j(() => [
|
|
3162
3190
|
l("input", {
|
|
3163
3191
|
ref: "input",
|
|
3164
3192
|
id: t.inputId,
|
|
@@ -3171,7 +3199,7 @@ function Jt(t, n, r, i, a, u) {
|
|
|
3171
3199
|
onFocus: n[0] ||= (e) => t.$emit("focus", e),
|
|
3172
3200
|
onBlur: n[1] ||= (e) => t.$emit("blur", e),
|
|
3173
3201
|
onChange: n[2] ||= (e) => u.onInput(),
|
|
3174
|
-
onKeypress: n[3] ||=
|
|
3202
|
+
onKeypress: n[3] ||= N((...e) => u.onInput && u.onInput(...e), ["enter"]),
|
|
3175
3203
|
"aria-checked": a.isChecked || "false",
|
|
3176
3204
|
role: "checkbox"
|
|
3177
3205
|
}, null, 40, Ut),
|
|
@@ -3301,7 +3329,7 @@ function Zt(t, n, r, i, a, l) {
|
|
|
3301
3329
|
wrap: r.inline,
|
|
3302
3330
|
class: l.classes
|
|
3303
3331
|
}), {
|
|
3304
|
-
default:
|
|
3332
|
+
default: j(() => [(b(!0), c(e, null, w(l.checkboxItems, (e, i) => (b(), o(u, h({
|
|
3305
3333
|
ref_for: !0,
|
|
3306
3334
|
ref: "item",
|
|
3307
3335
|
key: i,
|
|
@@ -3320,7 +3348,7 @@ function Zt(t, n, r, i, a, l) {
|
|
|
3320
3348
|
readonly: t.isReadonly || null,
|
|
3321
3349
|
class: { mt1: !r.inline && i }
|
|
3322
3350
|
}), {
|
|
3323
|
-
default:
|
|
3351
|
+
default: j(() => [t.$slots[`item.${i + 1}`] || t.$slots.item ? T(t.$slots, t.$slots[`item.${i + 1}`] ? `item.${i + 1}` : "item", {
|
|
3324
3352
|
key: 0,
|
|
3325
3353
|
item: l.getOriginalItem(e),
|
|
3326
3354
|
checked: !!e._isChecked,
|
|
@@ -3450,35 +3478,35 @@ function $t(e, t, n, r, i, a) {
|
|
|
3450
3478
|
modelValue: e.showPopup,
|
|
3451
3479
|
"onUpdate:modelValue": t[2] ||= (t) => e.showPopup = t
|
|
3452
3480
|
}, a.wMenuProps, { disable: n.disablePrompt }), {
|
|
3453
|
-
content:
|
|
3481
|
+
content: j(() => [f(u, {
|
|
3454
3482
|
column: !n.inline,
|
|
3455
3483
|
"align-center": ""
|
|
3456
3484
|
}, {
|
|
3457
|
-
default:
|
|
3485
|
+
default: j(() => [l("div", null, [T(e.$slots, "question", {}, () => [d(O(n.question), 1)])]), l("div", { class: _(["w-flex justify-end", n.inline ? "ml2" : "mt2"]) }, [n.cancel === !1 ? s("", !0) : (b(), o(c, h({
|
|
3458
3486
|
key: 0,
|
|
3459
3487
|
class: "mr2"
|
|
3460
3488
|
}, a.cancelButtonProps, {
|
|
3461
3489
|
"bg-color": (a.cancelButton || {}).bgColor || "error",
|
|
3462
|
-
onKeyup: t[0] ||=
|
|
3490
|
+
onKeyup: t[0] ||= N((e) => !n.persistent && a.onCancel(), ["escape"]),
|
|
3463
3491
|
onClick: a.onCancel
|
|
3464
3492
|
}), {
|
|
3465
|
-
default:
|
|
3493
|
+
default: j(() => [T(e.$slots, "cancel", {}, () => [d(O(a.cancelButton.label), 1)])]),
|
|
3466
3494
|
_: 3
|
|
3467
|
-
}, 16, ["bg-color", "onClick"])),
|
|
3495
|
+
}, 16, ["bg-color", "onClick"])), M((b(), o(c, h(a.confirmButtonProps, {
|
|
3468
3496
|
"bg-color": (a.confirmButton || {}).bgColor || "success",
|
|
3469
|
-
onKeyup: t[1] ||=
|
|
3497
|
+
onKeyup: t[1] ||= N((e) => !n.persistent && a.onCancel(), ["escape"]),
|
|
3470
3498
|
onClick: a.onConfirm
|
|
3471
3499
|
}), {
|
|
3472
|
-
default:
|
|
3500
|
+
default: j(() => [T(e.$slots, "confirm", {}, () => [d(O(a.confirmButton.label), 1)])]),
|
|
3473
3501
|
_: 3
|
|
3474
3502
|
}, 16, ["bg-color", "onClick"])), [[m]])], 2)]),
|
|
3475
3503
|
_: 3
|
|
3476
3504
|
}, 8, ["column"])]),
|
|
3477
|
-
default:
|
|
3505
|
+
default: j(() => [f(c, h({ class: "w-confirm" }, {
|
|
3478
3506
|
...e.$attrs,
|
|
3479
3507
|
...a.buttonProps
|
|
3480
3508
|
}), {
|
|
3481
|
-
default:
|
|
3509
|
+
default: j(() => [T(e.$slots, "default")]),
|
|
3482
3510
|
_: 3
|
|
3483
3511
|
}, 16)]),
|
|
3484
3512
|
_: 3
|
|
@@ -3653,12 +3681,12 @@ function rn(e, t, n, i, a, s) {
|
|
|
3653
3681
|
"bg-color": n.overlayColor,
|
|
3654
3682
|
opacity: n.overlayOpacity
|
|
3655
3683
|
}, {
|
|
3656
|
-
default:
|
|
3684
|
+
default: j(() => [f(r, {
|
|
3657
3685
|
name: n.transition,
|
|
3658
3686
|
appear: "",
|
|
3659
3687
|
onAfterLeave: s.onBeforeClose
|
|
3660
3688
|
}, {
|
|
3661
|
-
default:
|
|
3689
|
+
default: j(() => [M(f(c, {
|
|
3662
3690
|
class: _(["w-dialog__content", n.dialogClass]),
|
|
3663
3691
|
ref: "dialog",
|
|
3664
3692
|
"no-border": "",
|
|
@@ -3669,15 +3697,15 @@ function rn(e, t, n, i, a, s) {
|
|
|
3669
3697
|
title: n.title || void 0,
|
|
3670
3698
|
style: y(s.contentStyles)
|
|
3671
3699
|
}, u({
|
|
3672
|
-
default:
|
|
3700
|
+
default: j(() => [T(e.$slots, "default")]),
|
|
3673
3701
|
_: 2
|
|
3674
3702
|
}, [e.$slots.title ? {
|
|
3675
3703
|
name: "title",
|
|
3676
|
-
fn:
|
|
3704
|
+
fn: j(() => [T(e.$slots, "title")]),
|
|
3677
3705
|
key: "0"
|
|
3678
3706
|
} : void 0, e.$slots.actions ? {
|
|
3679
3707
|
name: "actions",
|
|
3680
|
-
fn:
|
|
3708
|
+
fn: j(() => [T(e.$slots, "actions")]),
|
|
3681
3709
|
key: "1"
|
|
3682
3710
|
} : void 0]), 1032, [
|
|
3683
3711
|
"color",
|
|
@@ -3687,7 +3715,7 @@ function rn(e, t, n, i, a, s) {
|
|
|
3687
3715
|
"content-class",
|
|
3688
3716
|
"title",
|
|
3689
3717
|
"style"
|
|
3690
|
-
]), [[
|
|
3718
|
+
]), [[se, a.showContent]])]),
|
|
3691
3719
|
_: 3
|
|
3692
3720
|
}, 8, ["name", "onAfterLeave"])]),
|
|
3693
3721
|
_: 3
|
|
@@ -3860,15 +3888,15 @@ function un(t, n, i, a, u, d) {
|
|
|
3860
3888
|
onBeforeLeave: d.onBeforeClose,
|
|
3861
3889
|
onAfterLeave: d.onClose
|
|
3862
3890
|
}, {
|
|
3863
|
-
default:
|
|
3891
|
+
default: j(() => [u.showDrawer ? (b(), o(D(i.tag || "aside"), {
|
|
3864
3892
|
key: 0,
|
|
3865
3893
|
class: _(["w-drawer", d.drawerClasses]),
|
|
3866
3894
|
ref: "drawer",
|
|
3867
3895
|
style: y(d.styles),
|
|
3868
3896
|
tabindex: i.noOverlay ? 0 : null,
|
|
3869
|
-
onKeydown: n[1] ||= P(
|
|
3897
|
+
onKeydown: n[1] ||= N(P((e) => i.noOverlay && !i.persistent && d.onOutsideClick(), ["stop"]), ["escape"])
|
|
3870
3898
|
}, {
|
|
3871
|
-
default:
|
|
3899
|
+
default: j(() => [T(t.$slots, "default")]),
|
|
3872
3900
|
_: 3
|
|
3873
3901
|
}, 40, [
|
|
3874
3902
|
"class",
|
|
@@ -3898,15 +3926,15 @@ function un(t, n, i, a, u, d) {
|
|
|
3898
3926
|
onBeforeLeave: d.onBeforeClose,
|
|
3899
3927
|
onAfterLeave: d.onClose
|
|
3900
3928
|
}, {
|
|
3901
|
-
default:
|
|
3929
|
+
default: j(() => [u.showDrawer ? (b(), o(D(i.tag || "aside"), {
|
|
3902
3930
|
key: 0,
|
|
3903
3931
|
class: _(["w-drawer", d.drawerClasses]),
|
|
3904
3932
|
ref: "drawer",
|
|
3905
3933
|
style: y(d.styles),
|
|
3906
3934
|
tabindex: i.noOverlay ? 0 : null,
|
|
3907
|
-
onKeydown: n[3] ||= P(
|
|
3935
|
+
onKeydown: n[3] ||= N(P((e) => i.noOverlay && !i.persistent && d.onOutsideClick(), ["stop"]), ["escape"])
|
|
3908
3936
|
}, {
|
|
3909
|
-
default:
|
|
3937
|
+
default: j(() => [T(t.$slots, "default")]),
|
|
3910
3938
|
_: 3
|
|
3911
3939
|
}, 40, [
|
|
3912
3940
|
"class",
|
|
@@ -4059,7 +4087,7 @@ var dn = {
|
|
|
4059
4087
|
//#region src/wave-ui/components/w-flex.vue?vue&type=template&lang.js
|
|
4060
4088
|
function pn(e, t, n, r, i, a) {
|
|
4061
4089
|
return b(), o(D(n.tag), { class: _(["w-flex", a.classes]) }, {
|
|
4062
|
-
default:
|
|
4090
|
+
default: j(() => [T(e.$slots, "default")]),
|
|
4063
4091
|
_: 3
|
|
4064
4092
|
}, 8, ["class"]);
|
|
4065
4093
|
}
|
|
@@ -4232,7 +4260,7 @@ var gn = async (e, t) => {
|
|
|
4232
4260
|
function vn(e, t, n, r, i, a) {
|
|
4233
4261
|
let o = E("w-transition-expand");
|
|
4234
4262
|
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: "" }, {
|
|
4235
|
-
default:
|
|
4263
|
+
default: j(() => [e.Validation.message ? (b(), c("div", {
|
|
4236
4264
|
key: 0,
|
|
4237
4265
|
class: _(["w-form-el__error", a.formProps.validationColor])
|
|
4238
4266
|
}, [T(e.$slots, "error-message", { message: e.Validation.message }, () => [d(O(e.Validation.message), 1)])], 2)) : s("", !0)]),
|
|
@@ -4312,7 +4340,7 @@ var yn = /* @__PURE__ */ q({
|
|
|
4312
4340
|
//#region src/wave-ui/components/w-grid.vue?vue&type=template&lang.js
|
|
4313
4341
|
function bn(e, t, n, r, i, a) {
|
|
4314
4342
|
return b(), o(D(n.tag), { class: _(["w-grid", a.classes]) }, {
|
|
4315
|
-
default:
|
|
4343
|
+
default: j(() => [T(e.$slots, "default")]),
|
|
4316
4344
|
_: 3
|
|
4317
4345
|
}, 8, ["class"]);
|
|
4318
4346
|
}
|
|
@@ -4398,7 +4426,7 @@ function Sn(t, n, r, i, a, l) {
|
|
|
4398
4426
|
"aria-hidden": "true",
|
|
4399
4427
|
style: y(l.readIcon() && l.styles)
|
|
4400
4428
|
}, {
|
|
4401
|
-
default:
|
|
4429
|
+
default: j(() => [l.hasLigature ? (b(), c(e, { key: 0 }, [d(O(t.icon), 1)], 64)) : s("", !0)]),
|
|
4402
4430
|
_: 1
|
|
4403
4431
|
}, 8, ["class", "style"]);
|
|
4404
4432
|
}
|
|
@@ -4484,12 +4512,12 @@ function En(e, t, n, i, a, l) {
|
|
|
4484
4512
|
style: y(l.wrapperStyles),
|
|
4485
4513
|
onError: t[0] ||= (e) => a.error = !0
|
|
4486
4514
|
}, {
|
|
4487
|
-
default:
|
|
4515
|
+
default: j(() => [
|
|
4488
4516
|
f(r, {
|
|
4489
4517
|
name: n.transition,
|
|
4490
4518
|
appear: ""
|
|
4491
4519
|
}, {
|
|
4492
|
-
default:
|
|
4520
|
+
default: j(() => [a.loaded ? (b(), o(D(l.normalized.tag), {
|
|
4493
4521
|
key: 0,
|
|
4494
4522
|
class: _(["w-image__image", l.imageClasses]),
|
|
4495
4523
|
style: y(l.imageStyles),
|
|
@@ -4510,7 +4538,7 @@ function En(e, t, n, i, a, l) {
|
|
|
4510
4538
|
key: 1,
|
|
4511
4539
|
class: _(["w-image__content", n.contentClass])
|
|
4512
4540
|
}, {
|
|
4513
|
-
default:
|
|
4541
|
+
default: j(() => [T(e.$slots, "default")]),
|
|
4514
4542
|
_: 3
|
|
4515
4543
|
}, 8, ["class"])) : s("", !0),
|
|
4516
4544
|
e.$slots.caption ? (b(), c("figcaption", {
|
|
@@ -4627,7 +4655,7 @@ var Dn = /* @__PURE__ */ q({
|
|
|
4627
4655
|
});
|
|
4628
4656
|
} },
|
|
4629
4657
|
mounted() {
|
|
4630
|
-
if (!this.src) return
|
|
4658
|
+
if (!this.src) return L("The w-image component was used without src.");
|
|
4631
4659
|
if (this.lazy) {
|
|
4632
4660
|
let e = new IntersectionObserver((t) => {
|
|
4633
4661
|
t[0]?.isIntersecting && (this.loadImage(), e.disconnect());
|
|
@@ -4682,12 +4710,12 @@ function In(t, n, r, a, u, p) {
|
|
|
4682
4710
|
class: p.classes,
|
|
4683
4711
|
style: t.$attrs.style
|
|
4684
4712
|
}), {
|
|
4685
|
-
default:
|
|
4713
|
+
default: j(() => [r.type === "hidden" ? M((b(), c("input", {
|
|
4686
4714
|
key: 0,
|
|
4687
4715
|
type: "hidden",
|
|
4688
4716
|
name: t.name || null,
|
|
4689
4717
|
"onUpdate:modelValue": n[0] ||= (e) => u.inputValue = e
|
|
4690
|
-
}, null, 8, On)), [[
|
|
4718
|
+
}, null, 8, On)), [[A, u.inputValue]]) : (b(), c(e, { key: 1 }, [
|
|
4691
4719
|
r.labelPosition === "left" ? (b(), c(e, { key: 0 }, [t.$slots.default || r.label ? (b(), c("label", {
|
|
4692
4720
|
key: 0,
|
|
4693
4721
|
class: _(["w-input__label w-input__label--left w-form-el-shakable", t.labelClasses]),
|
|
@@ -4701,7 +4729,7 @@ function In(t, n, r, a, u, p) {
|
|
|
4701
4729
|
for: t.inputId,
|
|
4702
4730
|
onClick: n[1] ||= (e) => t.$emit("click:inner-icon-left", e)
|
|
4703
4731
|
}, {
|
|
4704
|
-
default:
|
|
4732
|
+
default: j(() => [d(O(r.innerIconLeft), 1)]),
|
|
4705
4733
|
_: 1
|
|
4706
4734
|
}, 8, ["for"])) : s("", !0)]),
|
|
4707
4735
|
r.type === "file" ? (b(), c(e, { key: 1 }, [l("input", h({
|
|
@@ -4722,7 +4750,7 @@ function In(t, n, r, a, u, p) {
|
|
|
4722
4750
|
name: "fade",
|
|
4723
4751
|
for: t.inputId
|
|
4724
4752
|
}, {
|
|
4725
|
-
default:
|
|
4753
|
+
default: j(() => [!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 }, [
|
|
4726
4754
|
d(O(t ? ", " : ""), 1),
|
|
4727
4755
|
(b(), c("span", {
|
|
4728
4756
|
class: "filename",
|
|
@@ -4731,7 +4759,7 @@ function In(t, n, r, a, u, p) {
|
|
|
4731
4759
|
d(O(e.extension ? `.${e.extension}` : ""), 1)
|
|
4732
4760
|
]))), 128))]),
|
|
4733
4761
|
_: 3
|
|
4734
|
-
}, 8, ["for"])], 64)) :
|
|
4762
|
+
}, 8, ["for"])], 64)) : M((b(), c("input", h({
|
|
4735
4763
|
key: 0,
|
|
4736
4764
|
class: "w-input__input",
|
|
4737
4765
|
ref: "input",
|
|
@@ -4753,7 +4781,7 @@ function In(t, n, r, a, u, p) {
|
|
|
4753
4781
|
disabled: t.isDisabled || null,
|
|
4754
4782
|
required: t.required || null,
|
|
4755
4783
|
tabindex: t.tabindex || null
|
|
4756
|
-
}, p.attrs, { class: r.inputClass }), null, 16, An)), [[
|
|
4784
|
+
}, p.attrs, { class: r.inputClass }), null, 16, An)), [[oe, u.inputValue]]),
|
|
4757
4785
|
r.labelPosition === "inside" && p.showLabelInside ? (b(), c(e, { key: 2 }, [t.$slots.default || r.label ? (b(), c("label", {
|
|
4758
4786
|
key: 0,
|
|
4759
4787
|
class: _(["w-input__label w-input__label--inside w-form-el-shakable", t.labelClasses])
|
|
@@ -4765,7 +4793,7 @@ function In(t, n, r, a, u, p) {
|
|
|
4765
4793
|
for: t.inputId,
|
|
4766
4794
|
onClick: n[9] ||= (e) => t.$emit("click:inner-icon-right", e)
|
|
4767
4795
|
}, {
|
|
4768
|
-
default:
|
|
4796
|
+
default: j(() => [d(O(r.innerIconRight), 1)]),
|
|
4769
4797
|
_: 1
|
|
4770
4798
|
}, 8, ["for"])) : s("", !0)]),
|
|
4771
4799
|
p.hasLoading || r.showProgress && (p.uploadInProgress || p.uploadComplete) ? (b(), o(g, {
|
|
@@ -5020,14 +5048,14 @@ function Rn(t, n, r, i, a, l) {
|
|
|
5020
5048
|
key: 0,
|
|
5021
5049
|
class: "w-list__item-bullet"
|
|
5022
5050
|
}, {
|
|
5023
|
-
default:
|
|
5051
|
+
default: j(() => [d(O(r.icon), 1)]),
|
|
5024
5052
|
_: 1
|
|
5025
5053
|
})) : s("", !0),
|
|
5026
5054
|
t.$slots[`item.${i + 1}`] || t.$slots.item || t.$slots.default ? (b(), o(D(r.checklist ? "w-checkbox" : r.nav && !e.disabled && e.route ? l.hasRouter ? "router-link" : "a" : "div"), h({
|
|
5027
5055
|
key: 1,
|
|
5028
5056
|
class: "w-list__item-label"
|
|
5029
5057
|
}, { ref_for: !0 }, l.liLabelProps(e, i, e._selected)), {
|
|
5030
|
-
default:
|
|
5058
|
+
default: j(() => [t.$slots[`item.${i + 1}`] ? T(t.$slots, `item.${i + 1}`, {
|
|
5031
5059
|
key: 0,
|
|
5032
5060
|
item: l.cleanLi(e),
|
|
5033
5061
|
index: i + 1,
|
|
@@ -5060,7 +5088,7 @@ function Rn(t, n, r, i, a, l) {
|
|
|
5060
5088
|
onItemSelect: n[3] ||= (e) => t.$emit("item-select", e)
|
|
5061
5089
|
}), u({ _: 2 }, [t.$slots.item ? {
|
|
5062
5090
|
name: "item",
|
|
5063
|
-
fn:
|
|
5091
|
+
fn: j(({ item: e, index: n, selected: r }) => [T(t.$slots, "item", {
|
|
5064
5092
|
item: l.cleanLi(e),
|
|
5065
5093
|
index: n,
|
|
5066
5094
|
selected: r
|
|
@@ -5068,7 +5096,7 @@ function Rn(t, n, r, i, a, l) {
|
|
|
5068
5096
|
key: "0"
|
|
5069
5097
|
} : {
|
|
5070
5098
|
name: "default",
|
|
5071
|
-
fn:
|
|
5099
|
+
fn: j(({ item: e, index: n, selected: i }) => [T(t.$slots, "default", {
|
|
5072
5100
|
item: l.cleanLi(e),
|
|
5073
5101
|
index: n,
|
|
5074
5102
|
selected: i
|
|
@@ -5083,7 +5111,7 @@ var zn = /* @__PURE__ */ q({
|
|
|
5083
5111
|
expose: ["focus"],
|
|
5084
5112
|
mixins: [X],
|
|
5085
5113
|
setup() {
|
|
5086
|
-
return { waveUiUseId:
|
|
5114
|
+
return { waveUiUseId: ae() };
|
|
5087
5115
|
},
|
|
5088
5116
|
props: {
|
|
5089
5117
|
items: {
|
|
@@ -5336,7 +5364,7 @@ var Hn = {
|
|
|
5336
5364
|
let e = ".w-app";
|
|
5337
5365
|
typeof this.detachableDefaultRoot == "function" && (e = this.detachableDefaultRoot() || e);
|
|
5338
5366
|
let t = this.appendTo || e;
|
|
5339
|
-
return t === !0 ? t = e : this.appendTo === "activator" ? t = this.activatorEl : t && !["object", "string"].includes(typeof t) ? t = e : typeof t == "object" && !t.nodeType && (t = e,
|
|
5367
|
+
return t === !0 ? t = e : this.appendTo === "activator" ? t = this.activatorEl : t && !["object", "string"].includes(typeof t) ? t = e : typeof t == "object" && !t.nodeType && (t = e, L(`Invalid node provided in ${this.$options.name} \`append-to\`. Falling back to .w-app.`, this)), typeof t == "string" && (t = document.querySelector(t)), t ||= (L(`Unable to locate ${this.appendTo ? `target ${this.appendTo}` : e}`, this), document.querySelector(e)), t;
|
|
5340
5368
|
},
|
|
5341
5369
|
detachableParentEl() {
|
|
5342
5370
|
return this.appendToTarget;
|
|
@@ -5545,7 +5573,7 @@ function Un(t, i, a, l, d, p) {
|
|
|
5545
5573
|
onAfterEnter: t.onDetachableAfterEnter,
|
|
5546
5574
|
onAfterLeave: t.onAfterLeave
|
|
5547
5575
|
}, {
|
|
5548
|
-
default:
|
|
5576
|
+
default: j(() => [a.custom && t.detachableVisible ? (b(), c("div", h({
|
|
5549
5577
|
key: 0,
|
|
5550
5578
|
class: "w-menu",
|
|
5551
5579
|
ref: "detachable"
|
|
@@ -5571,15 +5599,15 @@ function Un(t, i, a, l, d, p) {
|
|
|
5571
5599
|
class: p.classes,
|
|
5572
5600
|
style: p.styles
|
|
5573
5601
|
}), u({
|
|
5574
|
-
default:
|
|
5602
|
+
default: j(() => [t.$slots.activator ? T(t.$slots, "default", { key: 0 }) : T(t.$slots, "content", { key: 1 })]),
|
|
5575
5603
|
_: 2
|
|
5576
5604
|
}, [t.$slots.title ? {
|
|
5577
5605
|
name: "title",
|
|
5578
|
-
fn:
|
|
5606
|
+
fn: j(() => [T(t.$slots, "title")]),
|
|
5579
5607
|
key: "0"
|
|
5580
5608
|
} : void 0, t.$slots.actions ? {
|
|
5581
5609
|
name: "actions",
|
|
5582
|
-
fn:
|
|
5610
|
+
fn: j(() => [T(t.$slots, "actions")]),
|
|
5583
5611
|
key: "1"
|
|
5584
5612
|
} : void 0]), 1040, [
|
|
5585
5613
|
"tile",
|
|
@@ -5772,7 +5800,7 @@ function Gn(e, t, n, i, a, l) {
|
|
|
5772
5800
|
name: l.transitionName,
|
|
5773
5801
|
appear: ""
|
|
5774
5802
|
}, {
|
|
5775
|
-
default:
|
|
5803
|
+
default: j(() => [a.show ? (b(), c("div", {
|
|
5776
5804
|
key: 0,
|
|
5777
5805
|
class: _(["w-notification", l.classes]),
|
|
5778
5806
|
style: y(l.styles)
|
|
@@ -5782,7 +5810,7 @@ function Gn(e, t, n, i, a, l) {
|
|
|
5782
5810
|
e.$emit("update:modelValue", !1), e.$emit("input", !1);
|
|
5783
5811
|
}
|
|
5784
5812
|
}), {
|
|
5785
|
-
default:
|
|
5813
|
+
default: j(() => [T(e.$slots, "default")]),
|
|
5786
5814
|
_: 3
|
|
5787
5815
|
}, 16, ["class"])], 6)) : s("", !0)]),
|
|
5788
5816
|
_: 3
|
|
@@ -5927,14 +5955,14 @@ function qn(e, t, n, i, a, l) {
|
|
|
5927
5955
|
appear: "",
|
|
5928
5956
|
onAfterLeave: l.onClose
|
|
5929
5957
|
}, {
|
|
5930
|
-
default:
|
|
5958
|
+
default: j(() => [n.modelValue ? M((b(), c("div", {
|
|
5931
5959
|
key: 0,
|
|
5932
5960
|
class: _(["w-overlay", l.classes]),
|
|
5933
5961
|
ref: "overlay",
|
|
5934
5962
|
style: y(n.modelValue && l.styles || null),
|
|
5935
5963
|
onClick: t[0] ||= (...e) => l.onClick && l.onClick(...e),
|
|
5936
5964
|
tabindex: "0"
|
|
5937
|
-
}, [T(e.$slots, "default")], 6)), [[
|
|
5965
|
+
}, [T(e.$slots, "default")], 6)), [[se, e.showOverlay]]) : s("", !0)]),
|
|
5938
5966
|
_: 3
|
|
5939
5967
|
}, 8, ["onAfterLeave"]);
|
|
5940
5968
|
}
|
|
@@ -6187,7 +6215,7 @@ function dr(t, n, r, i, a, u) {
|
|
|
6187
6215
|
},
|
|
6188
6216
|
class: u.classes
|
|
6189
6217
|
}), {
|
|
6190
|
-
default:
|
|
6218
|
+
default: j(() => [
|
|
6191
6219
|
l("input", {
|
|
6192
6220
|
ref: "input",
|
|
6193
6221
|
id: t.inputId,
|
|
@@ -6331,7 +6359,7 @@ function mr(t, n, r, i, a, l) {
|
|
|
6331
6359
|
wrap: r.inline,
|
|
6332
6360
|
class: l.classes
|
|
6333
6361
|
}), {
|
|
6334
|
-
default:
|
|
6362
|
+
default: j(() => [(b(!0), c(e, null, w(l.radioItems, (e, i) => (b(), o(u, h({
|
|
6335
6363
|
ref_for: !0,
|
|
6336
6364
|
ref: "item",
|
|
6337
6365
|
key: i,
|
|
@@ -6349,7 +6377,7 @@ function mr(t, n, r, i, a, l) {
|
|
|
6349
6377
|
readonly: t.isReadonly || null,
|
|
6350
6378
|
class: { mt1: !r.inline && i }
|
|
6351
6379
|
}), {
|
|
6352
|
-
default:
|
|
6380
|
+
default: j(() => [t.$slots[`item.${i + 1}`] || t.$slots.item ? T(t.$slots, t.$slots[`item.${i + 1}`] ? `item.${i + 1}` : "item", {
|
|
6353
6381
|
key: 0,
|
|
6354
6382
|
item: l.getOriginalItem(e),
|
|
6355
6383
|
index: i + 1,
|
|
@@ -6488,7 +6516,7 @@ function vr(t, n, r, i, a, u) {
|
|
|
6488
6516
|
},
|
|
6489
6517
|
class: u.classes
|
|
6490
6518
|
}), {
|
|
6491
|
-
default:
|
|
6519
|
+
default: j(() => [l("input", {
|
|
6492
6520
|
id: t.inputId,
|
|
6493
6521
|
name: t.inputName,
|
|
6494
6522
|
type: "hidden",
|
|
@@ -6714,54 +6742,54 @@ var yr = /* @__PURE__ */ q({
|
|
|
6714
6742
|
deltaXorY: "deltaY",
|
|
6715
6743
|
scrollTopOrLeft: "scrollTop"
|
|
6716
6744
|
}
|
|
6717
|
-
}, s =
|
|
6745
|
+
}, s = ae(), 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({
|
|
6718
6746
|
offset: 0,
|
|
6719
6747
|
trackStart: 0,
|
|
6720
6748
|
trackSize: 0
|
|
6721
|
-
}),
|
|
6749
|
+
}), oe = S(null), A = null, j = null, N = null, le = "", F = a(() => r.horizontal), I = a(() => o[F.value ? "h" : "v"]), ue = a(() => r.disabled ? -1 : r.tabindex), L = a(() => {
|
|
6722
6750
|
let e = r.scrollbar;
|
|
6723
6751
|
return e === 0 || e === "0" ? "off" : e === 1 || e === "1" ? "always" : e === "hover" ? "hover" : e === "interaction" ? "interaction" : "always";
|
|
6724
|
-
}),
|
|
6725
|
-
[`w-scrollable--${
|
|
6752
|
+
}), R = a(() => L.value !== "off"), de = a(() => ({
|
|
6753
|
+
[`w-scrollable--${I.value.direction}`]: !0,
|
|
6726
6754
|
"w-scrollable--disabled": r.disabled,
|
|
6727
6755
|
"w-scrollable--dragging": C.value,
|
|
6728
6756
|
"w-scrollable--scrolling": x.value || C.value
|
|
6729
|
-
})),
|
|
6730
|
-
[`w-scrollable__scrollbar--${
|
|
6731
|
-
"w-scrollable__scrollbar--hidden": !
|
|
6757
|
+
})), fe = a(() => ({
|
|
6758
|
+
[`w-scrollable__scrollbar--${I.value.direction}`]: !0,
|
|
6759
|
+
"w-scrollable__scrollbar--hidden": !be.value,
|
|
6732
6760
|
[`${r.bgColor}--bg`]: !!r.bgColor
|
|
6733
|
-
})),
|
|
6761
|
+
})), pe = a(() => Y(r.contentClass ?? {})), z = a(() => (E.value, f.value ? f.value[I.value.scrollSize] > f.value[I.value.clientSize] + 1 : !1)), B = a(() => (E.value, f.value ? Math.max(0, f.value[I.value.scrollSize] - f.value[I.value.clientSize]) : 0)), me = a(() => F.value ? "horizontal" : "vertical"), he = a(() => z.value ? Math.max(0, Math.round(B.value)) : 0), ge = a(() => {
|
|
6734
6762
|
if (!f.value) return 0;
|
|
6735
|
-
let e = Math.round(f.value[
|
|
6763
|
+
let e = Math.round(f.value[I.value.scrollTopOrLeft]), t = he.value;
|
|
6736
6764
|
return t ? Math.min(t, Math.max(0, e)) : 0;
|
|
6737
|
-
}),
|
|
6765
|
+
}), _e = a(() => {
|
|
6738
6766
|
let e = u["aria-label"] ?? u.ariaLabel;
|
|
6739
6767
|
return typeof e == "string" && e ? e : "";
|
|
6740
|
-
}),
|
|
6741
|
-
if (E.value, !f.value || !
|
|
6742
|
-
let e = f.value[
|
|
6768
|
+
}), ve = a(() => _e.value ? `${_e.value}, scroll position` : F.value ? "Horizontal scrollbar" : "Vertical scrollbar"), ye = a(() => {
|
|
6769
|
+
if (E.value, !f.value || !z.value) return 100;
|
|
6770
|
+
let e = f.value[I.value.clientSize], t = f.value[I.value.scrollSize];
|
|
6743
6771
|
return Math.max(8, Math.min(100, e * 100 / t));
|
|
6744
|
-
}),
|
|
6745
|
-
let e =
|
|
6746
|
-
return !
|
|
6772
|
+
}), be = a(() => {
|
|
6773
|
+
let e = L.value;
|
|
6774
|
+
return !z.value || e === "off" ? !1 : e === "always" ? !0 : e === "hover" ? v.value || C.value || x.value : e === "interaction" ? C.value || x.value : !0;
|
|
6747
6775
|
});
|
|
6748
|
-
function
|
|
6776
|
+
function xe(e) {
|
|
6749
6777
|
if (!(e == null || e === "")) return typeof e == "number" ? `${e}px` : typeof e == "string" && /^-?\d+(\.\d+)?$/.test(e.trim()) ? `${e.trim()}px` : e;
|
|
6750
6778
|
}
|
|
6751
|
-
let
|
|
6752
|
-
"max-width":
|
|
6753
|
-
"max-height":
|
|
6754
|
-
})),
|
|
6755
|
-
let e = Math.max(0, 100 -
|
|
6779
|
+
let Se = a(() => ({
|
|
6780
|
+
"max-width": xe(r.width),
|
|
6781
|
+
"max-height": xe(r.height)
|
|
6782
|
+
})), V = a(() => {
|
|
6783
|
+
let e = Math.max(0, 100 - ye.value), t = H(w.value / 100 * e, 0, e);
|
|
6756
6784
|
return {
|
|
6757
|
-
[
|
|
6758
|
-
[
|
|
6785
|
+
[I.value.size]: `${ye.value}%`,
|
|
6786
|
+
[I.value.topOrLeft]: `${t}%`
|
|
6759
6787
|
};
|
|
6760
6788
|
});
|
|
6761
|
-
function
|
|
6789
|
+
function H(e, t, n) {
|
|
6762
6790
|
return Math.max(t, Math.min(e, n));
|
|
6763
6791
|
}
|
|
6764
|
-
function
|
|
6792
|
+
function Ce(e) {
|
|
6765
6793
|
if (!e || e === d.value) return !1;
|
|
6766
6794
|
let t = e.tagName;
|
|
6767
6795
|
return t ? e.isContentEditable ? !0 : [
|
|
@@ -6771,7 +6799,7 @@ var yr = /* @__PURE__ */ q({
|
|
|
6771
6799
|
"BUTTON"
|
|
6772
6800
|
].includes(t) : !1;
|
|
6773
6801
|
}
|
|
6774
|
-
function
|
|
6802
|
+
function we(e = "native") {
|
|
6775
6803
|
if (!f.value) return {
|
|
6776
6804
|
top: 0,
|
|
6777
6805
|
left: 0,
|
|
@@ -6792,10 +6820,10 @@ var yr = /* @__PURE__ */ q({
|
|
|
6792
6820
|
source: e
|
|
6793
6821
|
};
|
|
6794
6822
|
}
|
|
6795
|
-
function
|
|
6796
|
-
let t =
|
|
6797
|
-
i("scroll", t), O.value || (O.value = !0, i("scroll-start", t)),
|
|
6798
|
-
O.value = !1, i("scroll-end",
|
|
6823
|
+
function U(e = "native") {
|
|
6824
|
+
let t = we(e);
|
|
6825
|
+
i("scroll", t), O.value || (O.value = !0, i("scroll-start", t)), A && window.clearTimeout(A), A = window.setTimeout(() => {
|
|
6826
|
+
O.value = !1, i("scroll-end", we("native"));
|
|
6799
6827
|
}, Cr);
|
|
6800
6828
|
}
|
|
6801
6829
|
function Te() {
|
|
@@ -6805,19 +6833,19 @@ var yr = /* @__PURE__ */ q({
|
|
|
6805
6833
|
v.value = !1;
|
|
6806
6834
|
}
|
|
6807
6835
|
function W() {
|
|
6808
|
-
f.value && (w.value =
|
|
6836
|
+
f.value && (w.value = B.value ? f.value[I.value.scrollTopOrLeft] * 100 / B.value : 0);
|
|
6809
6837
|
}
|
|
6810
6838
|
function G(e, t = "api") {
|
|
6811
6839
|
if (!f.value) return;
|
|
6812
|
-
let n =
|
|
6840
|
+
let n = H(e, 0, B.value), r = f.value[I.value.scrollTopOrLeft];
|
|
6813
6841
|
if (ne.value = t, Math.abs(r - n) < 1) {
|
|
6814
|
-
W(),
|
|
6842
|
+
W(), U(t);
|
|
6815
6843
|
return;
|
|
6816
6844
|
}
|
|
6817
|
-
(t === "wheel" || t === "keyboard") && q(), D.value = !0, f.value[
|
|
6845
|
+
(t === "wheel" || t === "keyboard") && q(), D.value = !0, f.value[I.value.scrollTopOrLeft] = n, W(), U(t);
|
|
6818
6846
|
}
|
|
6819
6847
|
function De(e, t = "api") {
|
|
6820
|
-
G(
|
|
6848
|
+
G(H(e, 0, 100) / 100 * B.value, t);
|
|
6821
6849
|
}
|
|
6822
6850
|
function K() {
|
|
6823
6851
|
g(() => {
|
|
@@ -6831,15 +6859,15 @@ var yr = /* @__PURE__ */ q({
|
|
|
6831
6859
|
D.value = !1;
|
|
6832
6860
|
return;
|
|
6833
6861
|
}
|
|
6834
|
-
W(),
|
|
6862
|
+
W(), U(ne.value), ne.value = "native";
|
|
6835
6863
|
}
|
|
6836
6864
|
function ke(e) {
|
|
6837
6865
|
let t = e.deltaX || 0, n = e.deltaY || 0, i = 0;
|
|
6838
|
-
return
|
|
6866
|
+
return F.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[I.value.clientSize] : i : i;
|
|
6839
6867
|
}
|
|
6840
6868
|
function q() {
|
|
6841
|
-
x.value = !0,
|
|
6842
|
-
x.value = !1,
|
|
6869
|
+
x.value = !0, j && window.clearTimeout(j), j = window.setTimeout(() => {
|
|
6870
|
+
x.value = !1, j = null;
|
|
6843
6871
|
}, wr);
|
|
6844
6872
|
}
|
|
6845
6873
|
function Ae() {
|
|
@@ -6853,14 +6881,14 @@ var yr = /* @__PURE__ */ q({
|
|
|
6853
6881
|
if (typeof e != "object" || !e) return;
|
|
6854
6882
|
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);
|
|
6855
6883
|
if (a || o) {
|
|
6856
|
-
D.value = !0, a && (t.scrollTop =
|
|
6884
|
+
D.value = !0, a && (t.scrollTop = H(e.top, 0, n)), o && (t.scrollLeft = H(e.left, 0, i)), W(), U("api");
|
|
6857
6885
|
return;
|
|
6858
6886
|
}
|
|
6859
|
-
let s =
|
|
6887
|
+
let s = F.value ? e.left ?? e.top : e.top ?? e.left;
|
|
6860
6888
|
typeof s == "number" && !Number.isNaN(s) && G(s, "api");
|
|
6861
6889
|
}
|
|
6862
6890
|
function je(e) {
|
|
6863
|
-
e ? (
|
|
6891
|
+
e ? (le = document.documentElement.style.cursor, document.documentElement.style.cursor = "grabbing") : (document.documentElement.style.cursor = le, le = "");
|
|
6864
6892
|
}
|
|
6865
6893
|
function Me() {
|
|
6866
6894
|
document.addEventListener("pointermove", Ve, !0), document.addEventListener("pointerup", He, !0), document.addEventListener("pointercancel", He, !0);
|
|
@@ -6869,51 +6897,51 @@ var yr = /* @__PURE__ */ q({
|
|
|
6869
6897
|
document.removeEventListener("pointermove", Ve, !0), document.removeEventListener("pointerup", He, !0), document.removeEventListener("pointercancel", He, !0);
|
|
6870
6898
|
}
|
|
6871
6899
|
function Pe(e) {
|
|
6872
|
-
if (r.disabled || !
|
|
6900
|
+
if (r.disabled || !z.value) return;
|
|
6873
6901
|
if (e.metaKey) {
|
|
6874
6902
|
let t = ke(e);
|
|
6875
6903
|
if (!t) return;
|
|
6876
|
-
e.preventDefault(), G(t < 0 ? 0 :
|
|
6904
|
+
e.preventDefault(), G(t < 0 ? 0 : B.value, "wheel");
|
|
6877
6905
|
return;
|
|
6878
6906
|
}
|
|
6879
6907
|
let t = ke(e);
|
|
6880
6908
|
if (!t) return;
|
|
6881
|
-
let n = f.value[
|
|
6909
|
+
let n = f.value[I.value.scrollTopOrLeft], i = H(n + t, 0, B.value), a = n <= 0 && t < 0, o = n >= B.value && t > 0;
|
|
6882
6910
|
a || o || (e.preventDefault(), G(i, "wheel"));
|
|
6883
6911
|
}
|
|
6884
6912
|
function Fe(e) {
|
|
6885
|
-
if (r.disabled || !
|
|
6886
|
-
let t = f.value[
|
|
6913
|
+
if (r.disabled || !z.value || Ce(e.target)) return;
|
|
6914
|
+
let t = f.value[I.value.scrollTopOrLeft], n = r.wheelStep, i = f.value[I.value.clientSize], a = null;
|
|
6887
6915
|
if (e.metaKey) {
|
|
6888
|
-
if (e.key === "ArrowUp" && !
|
|
6916
|
+
if (e.key === "ArrowUp" && !F.value) {
|
|
6889
6917
|
e.preventDefault(), G(0, "keyboard");
|
|
6890
6918
|
return;
|
|
6891
6919
|
}
|
|
6892
|
-
if (e.key === "ArrowDown" && !
|
|
6893
|
-
e.preventDefault(), G(
|
|
6920
|
+
if (e.key === "ArrowDown" && !F.value) {
|
|
6921
|
+
e.preventDefault(), G(B.value, "keyboard");
|
|
6894
6922
|
return;
|
|
6895
6923
|
}
|
|
6896
|
-
if (e.key === "ArrowLeft" &&
|
|
6924
|
+
if (e.key === "ArrowLeft" && F.value) {
|
|
6897
6925
|
e.preventDefault(), G(0, "keyboard");
|
|
6898
6926
|
return;
|
|
6899
6927
|
}
|
|
6900
|
-
if (e.key === "ArrowRight" &&
|
|
6901
|
-
e.preventDefault(), G(
|
|
6928
|
+
if (e.key === "ArrowRight" && F.value) {
|
|
6929
|
+
e.preventDefault(), G(B.value, "keyboard");
|
|
6902
6930
|
return;
|
|
6903
6931
|
}
|
|
6904
6932
|
}
|
|
6905
6933
|
switch (e.key) {
|
|
6906
6934
|
case "ArrowUp":
|
|
6907
|
-
|
|
6935
|
+
F.value || (a = t - n);
|
|
6908
6936
|
break;
|
|
6909
6937
|
case "ArrowDown":
|
|
6910
|
-
|
|
6938
|
+
F.value || (a = t + n);
|
|
6911
6939
|
break;
|
|
6912
6940
|
case "ArrowLeft":
|
|
6913
|
-
|
|
6941
|
+
F.value && (a = t - n);
|
|
6914
6942
|
break;
|
|
6915
6943
|
case "ArrowRight":
|
|
6916
|
-
|
|
6944
|
+
F.value && (a = t + n);
|
|
6917
6945
|
break;
|
|
6918
6946
|
case "PageUp":
|
|
6919
6947
|
a = t - i;
|
|
@@ -6925,7 +6953,7 @@ var yr = /* @__PURE__ */ q({
|
|
|
6925
6953
|
a = 0;
|
|
6926
6954
|
break;
|
|
6927
6955
|
case "End":
|
|
6928
|
-
a =
|
|
6956
|
+
a = B.value;
|
|
6929
6957
|
break;
|
|
6930
6958
|
}
|
|
6931
6959
|
a !== null && (e.preventDefault(), G(a, "keyboard"));
|
|
@@ -6933,43 +6961,43 @@ var yr = /* @__PURE__ */ q({
|
|
|
6933
6961
|
function Ie(e, t, n) {
|
|
6934
6962
|
if (!p.value) return;
|
|
6935
6963
|
let r = p.value.getBoundingClientRect();
|
|
6936
|
-
k.value.trackStart = r[
|
|
6964
|
+
k.value.trackStart = r[I.value.topOrLeft], k.value.trackSize = r[I.value.size], k.value.offset = Number.isFinite(t) ? t : 0, C.value = !0;
|
|
6937
6965
|
let i = n?.pointerId;
|
|
6938
6966
|
if (i != null && d.value?.setPointerCapture) try {
|
|
6939
|
-
d.value.setPointerCapture(i),
|
|
6967
|
+
d.value.setPointerCapture(i), oe.value = i;
|
|
6940
6968
|
} catch {
|
|
6941
|
-
|
|
6969
|
+
oe.value = null;
|
|
6942
6970
|
}
|
|
6943
6971
|
je(!0), Le(e), Me();
|
|
6944
6972
|
}
|
|
6945
6973
|
function Le(e) {
|
|
6946
6974
|
if (!C.value || !k.value.trackSize) return;
|
|
6947
|
-
let t = k.value.trackSize * (
|
|
6948
|
-
De(
|
|
6975
|
+
let t = k.value.trackSize * (ye.value / 100), n = Math.max(1, k.value.trackSize - t);
|
|
6976
|
+
De(H(e - k.value.trackStart - k.value.offset, 0, n) / n * 100, "drag");
|
|
6949
6977
|
}
|
|
6950
6978
|
function Re() {
|
|
6951
|
-
if (
|
|
6979
|
+
if (oe.value != null && d.value?.releasePointerCapture) {
|
|
6952
6980
|
try {
|
|
6953
|
-
d.value.releasePointerCapture(
|
|
6981
|
+
d.value.releasePointerCapture(oe.value);
|
|
6954
6982
|
} catch {}
|
|
6955
|
-
|
|
6983
|
+
oe.value = null;
|
|
6956
6984
|
}
|
|
6957
6985
|
je(!1), C.value = !1, Ne();
|
|
6958
6986
|
}
|
|
6959
6987
|
function ze(e) {
|
|
6960
6988
|
if (r.disabled || e.button !== 0 && e.pointerType !== "touch") return;
|
|
6961
6989
|
Re();
|
|
6962
|
-
let t = m.value?.getBoundingClientRect(), n = t ? t[
|
|
6963
|
-
Ie(e[
|
|
6990
|
+
let t = m.value?.getBoundingClientRect(), n = t ? t[I.value.size] / 2 : 0;
|
|
6991
|
+
Ie(e[I.value.clientXorY], n, e);
|
|
6964
6992
|
}
|
|
6965
6993
|
function Be(e) {
|
|
6966
6994
|
if (r.disabled || e.button !== 0 && e.pointerType !== "touch") return;
|
|
6967
6995
|
Re();
|
|
6968
|
-
let t = m.value?.getBoundingClientRect(), n = t ? e[
|
|
6969
|
-
Ie(e[
|
|
6996
|
+
let t = m.value?.getBoundingClientRect(), n = t ? e[I.value.clientXorY] - t[I.value.topOrLeft] : 0;
|
|
6997
|
+
Ie(e[I.value.clientXorY], n, e);
|
|
6970
6998
|
}
|
|
6971
6999
|
function Ve(e) {
|
|
6972
|
-
C.value && (e.cancelable && e.preventDefault(), Le(e[
|
|
7000
|
+
C.value && (e.cancelable && e.preventDefault(), Le(e[I.value.clientXorY]));
|
|
6973
7001
|
}
|
|
6974
7002
|
function He() {
|
|
6975
7003
|
C.value && Re();
|
|
@@ -6982,43 +7010,43 @@ var yr = /* @__PURE__ */ q({
|
|
|
6982
7010
|
e && typeof e == "object" && J(e);
|
|
6983
7011
|
}
|
|
6984
7012
|
function J({ top: e, left: t, behavior: n = "auto" } = {}) {
|
|
6985
|
-
let r =
|
|
7013
|
+
let r = F.value ? t ?? e : e ?? t;
|
|
6986
7014
|
typeof r == "number" && G(r, "api");
|
|
6987
7015
|
}
|
|
6988
7016
|
function We({ top: e = 0, left: t = 0, behavior: n = "auto" } = {}) {
|
|
6989
7017
|
if (!f.value) return;
|
|
6990
|
-
let r =
|
|
6991
|
-
G(f.value[
|
|
7018
|
+
let r = F.value ? t : e;
|
|
7019
|
+
G(f.value[I.value.scrollTopOrLeft] + r, "api");
|
|
6992
7020
|
}
|
|
6993
7021
|
function Ge() {
|
|
6994
7022
|
G(0, "api");
|
|
6995
7023
|
}
|
|
6996
7024
|
function Ke() {
|
|
6997
|
-
G(
|
|
7025
|
+
G(B.value, "api");
|
|
6998
7026
|
}
|
|
6999
7027
|
function qe() {
|
|
7000
7028
|
d.value?.focus();
|
|
7001
7029
|
}
|
|
7002
7030
|
return te(() => {
|
|
7003
|
-
K(), window.addEventListener("resize", K), typeof ResizeObserver < "u" && f.value && (
|
|
7031
|
+
K(), window.addEventListener("resize", K), typeof ResizeObserver < "u" && f.value && (N = new ResizeObserver(() => K()), N.observe(f.value)), g(() => {
|
|
7004
7032
|
requestAnimationFrame(() => {
|
|
7005
7033
|
Ae(), W();
|
|
7006
7034
|
});
|
|
7007
7035
|
});
|
|
7008
|
-
}),
|
|
7036
|
+
}), ce(() => [
|
|
7009
7037
|
r.horizontal,
|
|
7010
7038
|
r.width,
|
|
7011
7039
|
r.height
|
|
7012
|
-
], () => K()),
|
|
7040
|
+
], () => K()), ce(() => r.scrollPosition, () => {
|
|
7013
7041
|
r.scrollPosition != null && g(() => {
|
|
7014
7042
|
Ae(), W();
|
|
7015
7043
|
});
|
|
7016
|
-
}, { deep: !0 }),
|
|
7044
|
+
}, { deep: !0 }), ce(F, () => {
|
|
7017
7045
|
r.scrollPosition != null && g(() => {
|
|
7018
7046
|
Ae(), W();
|
|
7019
7047
|
});
|
|
7020
7048
|
}), ee(() => {
|
|
7021
|
-
window.removeEventListener("resize", K), Re(),
|
|
7049
|
+
window.removeEventListener("resize", K), Re(), A && window.clearTimeout(A), j && window.clearTimeout(j), N && f.value && N.unobserve(f.value), N = null;
|
|
7022
7050
|
}), t({
|
|
7023
7051
|
scroll: Ue,
|
|
7024
7052
|
scrollTo: J,
|
|
@@ -7032,43 +7060,43 @@ var yr = /* @__PURE__ */ q({
|
|
|
7032
7060
|
ref_key: "rootEl",
|
|
7033
7061
|
ref: d
|
|
7034
7062
|
}, e.$attrs, {
|
|
7035
|
-
tabindex:
|
|
7063
|
+
tabindex: ue.value,
|
|
7036
7064
|
role: "region",
|
|
7037
7065
|
"aria-disabled": r.disabled ? "true" : void 0,
|
|
7038
7066
|
onMouseenter: Te,
|
|
7039
7067
|
onMouseleave: Ee,
|
|
7040
7068
|
onWheel: Pe,
|
|
7041
7069
|
onKeydown: Fe,
|
|
7042
|
-
class:
|
|
7043
|
-
style:
|
|
7070
|
+
class: de.value,
|
|
7071
|
+
style: Se.value
|
|
7044
7072
|
}), [l("div", {
|
|
7045
|
-
class: _(["w-scrollable__content",
|
|
7073
|
+
class: _(["w-scrollable__content", pe.value]),
|
|
7046
7074
|
id: re(s),
|
|
7047
7075
|
ref_key: "scrollableEl",
|
|
7048
7076
|
ref: f,
|
|
7049
7077
|
onScroll: Oe
|
|
7050
|
-
}, [T(e.$slots, "default")], 42, xr),
|
|
7051
|
-
class: _(["w-scrollable__scrollbar",
|
|
7078
|
+
}, [T(e.$slots, "default")], 42, xr), M(l("div", {
|
|
7079
|
+
class: _(["w-scrollable__scrollbar", fe.value]),
|
|
7052
7080
|
ref_key: "trackEl",
|
|
7053
7081
|
ref: p,
|
|
7054
7082
|
role: "presentation",
|
|
7055
|
-
onPointerdown:
|
|
7083
|
+
onPointerdown: P(ze, ["prevent"])
|
|
7056
7084
|
}, [l("div", {
|
|
7057
7085
|
class: _(["w-scrollable__scrollbar-thumb", { [r.color]: !!r.color }]),
|
|
7058
7086
|
ref_key: "thumbEl",
|
|
7059
7087
|
ref: m,
|
|
7060
|
-
style: y(
|
|
7088
|
+
style: y(V.value),
|
|
7061
7089
|
role: "scrollbar",
|
|
7062
7090
|
"aria-controls": re(s),
|
|
7063
|
-
"aria-orientation":
|
|
7091
|
+
"aria-orientation": me.value,
|
|
7064
7092
|
"aria-valuemin": 0,
|
|
7065
|
-
"aria-valuemax":
|
|
7066
|
-
"aria-valuenow":
|
|
7093
|
+
"aria-valuemax": he.value,
|
|
7094
|
+
"aria-valuenow": ge.value,
|
|
7067
7095
|
"aria-disabled": r.disabled ? "true" : void 0,
|
|
7068
|
-
"aria-label":
|
|
7096
|
+
"aria-label": ve.value,
|
|
7069
7097
|
tabindex: "-1",
|
|
7070
|
-
onPointerdown:
|
|
7071
|
-
}, null, 46, Sr)], 34), [[
|
|
7098
|
+
onPointerdown: P(Be, ["stop", "prevent"])
|
|
7099
|
+
}, null, 46, Sr)], 34), [[se, z.value && R.value]])], 16, br));
|
|
7072
7100
|
}
|
|
7073
7101
|
}), Er = [
|
|
7074
7102
|
"aria-expanded",
|
|
@@ -7094,7 +7122,7 @@ function Ar(t, n, r, i, a, p) {
|
|
|
7094
7122
|
wrap: p.hasLabel && r.labelPosition !== "inside",
|
|
7095
7123
|
class: p.classes
|
|
7096
7124
|
}), {
|
|
7097
|
-
default:
|
|
7125
|
+
default: j(() => [
|
|
7098
7126
|
r.labelPosition === "left" ? (b(), c(e, { key: 0 }, [t.$slots.default || r.label ? (b(), c("label", {
|
|
7099
7127
|
key: 0,
|
|
7100
7128
|
class: _(["w-select__label w-select__label--left w-form-el-shakable", t.labelClasses]),
|
|
@@ -7111,7 +7139,7 @@ function Ar(t, n, r, i, a, p) {
|
|
|
7111
7139
|
custom: "",
|
|
7112
7140
|
"min-width": "activator"
|
|
7113
7141
|
}, r.menuProps || {}), {
|
|
7114
|
-
content:
|
|
7142
|
+
content: j(() => [f(g, {
|
|
7115
7143
|
ref: "w-list",
|
|
7116
7144
|
"model-value": t.inputValue,
|
|
7117
7145
|
"onUpdate:modelValue": p.onInput,
|
|
@@ -7132,7 +7160,7 @@ function Ar(t, n, r, i, a, p) {
|
|
|
7132
7160
|
tabindex: "-1"
|
|
7133
7161
|
}, u({ _: 2 }, [w(r.items.length, (e) => ({
|
|
7134
7162
|
name: `item.${e}`,
|
|
7135
|
-
fn:
|
|
7163
|
+
fn: j(({ item: n, selected: i, index: a }) => [t.$slots[`item.${e}`] && t.$slots[`item.${e}`](n, i, a) ? T(t.$slots, `item.${e}`, {
|
|
7136
7164
|
key: 0,
|
|
7137
7165
|
item: n,
|
|
7138
7166
|
selected: i,
|
|
@@ -7155,7 +7183,7 @@ function Ar(t, n, r, i, a, p) {
|
|
|
7155
7183
|
"selection-color",
|
|
7156
7184
|
"item-color-key"
|
|
7157
7185
|
])]),
|
|
7158
|
-
default:
|
|
7186
|
+
default: j(() => [l("div", {
|
|
7159
7187
|
class: _(["w-select__selection-wrap", p.inputWrapClasses]),
|
|
7160
7188
|
onClick: n[6] ||= (e) => !t.isDisabled && !t.isReadonly && p.onInputFieldClick(),
|
|
7161
7189
|
role: "button",
|
|
@@ -7170,7 +7198,7 @@ function Ar(t, n, r, i, a, p) {
|
|
|
7170
7198
|
tag: "label",
|
|
7171
7199
|
onClick: n[1] ||= (e) => t.$emit("click:inner-icon-left", e)
|
|
7172
7200
|
}, {
|
|
7173
|
-
default:
|
|
7201
|
+
default: j(() => [d(O(r.innerIconLeft), 1)]),
|
|
7174
7202
|
_: 1
|
|
7175
7203
|
})) : s("", !0)]),
|
|
7176
7204
|
t.$slots.selection ? (b(), c("div", Dr, [T(t.$slots, "selection", { item: r.multiple ? t.inputValue : t.inputValue[0] })])) : s("", !0),
|
|
@@ -7197,7 +7225,7 @@ function Ar(t, n, r, i, a, p) {
|
|
|
7197
7225
|
tag: "label",
|
|
7198
7226
|
onClick: n[5] ||= (e) => t.$emit("click:inner-icon-right", e)
|
|
7199
7227
|
}, {
|
|
7200
|
-
default:
|
|
7228
|
+
default: j(() => [d(O(r.innerIconRight), 1)]),
|
|
7201
7229
|
_: 1
|
|
7202
7230
|
})) : s("", !0)])
|
|
7203
7231
|
], 10, Er)]),
|
|
@@ -7500,7 +7528,7 @@ function Ur(t, n, r, i, a, u) {
|
|
|
7500
7528
|
wrap: t.formRegister || null,
|
|
7501
7529
|
class: u.wrapperClasses
|
|
7502
7530
|
}), {
|
|
7503
|
-
default:
|
|
7531
|
+
default: j(() => [
|
|
7504
7532
|
t.$slots["label-left"] ? (b(), c("label", {
|
|
7505
7533
|
key: 0,
|
|
7506
7534
|
class: _(["w-slider__label w-slider__label--left w-form-el-shakable", t.labelClasses]),
|
|
@@ -7539,9 +7567,9 @@ function Ur(t, n, r, i, a, u) {
|
|
|
7539
7567
|
readonly: t.isReadonly || null,
|
|
7540
7568
|
"aria-readonly": t.isReadonly ? "true" : "false",
|
|
7541
7569
|
tabindex: t.isDisabled || t.isReadonly ? -1 : null,
|
|
7542
|
-
onKeydown: [n[0] ||=
|
|
7570
|
+
onKeydown: [n[0] ||= N((e) => u.onKeyDown(e, -1), ["left"]), n[1] ||= N((e) => u.onKeyDown(e, 1), ["right"])],
|
|
7543
7571
|
onFocus: n[2] ||= (e) => t.$emit("focus", e),
|
|
7544
|
-
onClick: n[3] ||=
|
|
7572
|
+
onClick: n[3] ||= P(() => {}, ["prevent"])
|
|
7545
7573
|
}, null, 42, Ir), r.thumbLabel ? (b(), c("label", {
|
|
7546
7574
|
key: 0,
|
|
7547
7575
|
class: _(["w-slider__thumb-label", u.thumbClasses]),
|
|
@@ -7841,7 +7869,7 @@ function ni(t, n, r, i, a, u) {
|
|
|
7841
7869
|
class: u.classes,
|
|
7842
7870
|
style: t.$attrs.style
|
|
7843
7871
|
}), {
|
|
7844
|
-
default:
|
|
7872
|
+
default: j(() => [
|
|
7845
7873
|
l("input", h({
|
|
7846
7874
|
ref: "input",
|
|
7847
7875
|
id: t.inputId,
|
|
@@ -8018,7 +8046,7 @@ function pi(n, a, u, d, f, p) {
|
|
|
8018
8046
|
onClick: (t) => !e._disabled && e._uid !== n.activeTabUid && p.openTab(e._uid),
|
|
8019
8047
|
onFocus: (t) => n.$emit("focus", p.getOriginalItem(e)),
|
|
8020
8048
|
tabindex: !e._disabled && 0,
|
|
8021
|
-
onKeypress:
|
|
8049
|
+
onKeypress: N((t) => !e._disabled && p.openTab(e._uid), ["enter"]),
|
|
8022
8050
|
"aria-selected": e._uid === n.activeTabUid ? "true" : "false",
|
|
8023
8051
|
role: "tab"
|
|
8024
8052
|
}, [n.$slots[`item-title.${e.id || t + 1}`] ? T(n.$slots, `item-title.${e.id || t + 1}`, {
|
|
@@ -8042,12 +8070,12 @@ function pi(n, a, u, d, f, p) {
|
|
|
8042
8070
|
key: 0,
|
|
8043
8071
|
name: p.transitionName
|
|
8044
8072
|
}, {
|
|
8045
|
-
default:
|
|
8073
|
+
default: j(() => [(b(!0), c(e, null, w(n.tabs, (e, t) => M((b(), o(m, {
|
|
8046
8074
|
key: e._uid,
|
|
8047
8075
|
item: e,
|
|
8048
8076
|
class: _(p.contentClasses)
|
|
8049
8077
|
}, {
|
|
8050
|
-
default:
|
|
8078
|
+
default: j(() => [n.$slots[`item-content.${e._index + 1}`] ? T(n.$slots, `item-content.${e._index + 1}`, {
|
|
8051
8079
|
key: 0,
|
|
8052
8080
|
item: p.getOriginalItem(e),
|
|
8053
8081
|
index: e._index + 1,
|
|
@@ -8062,19 +8090,19 @@ function pi(n, a, u, d, f, p) {
|
|
|
8062
8090
|
innerHTML: e[u.itemContentKey]
|
|
8063
8091
|
}, null, 8, di)) : s("", !0)])]),
|
|
8064
8092
|
_: 2
|
|
8065
|
-
}, 1032, ["item", "class"])), [[
|
|
8093
|
+
}, 1032, ["item", "class"])), [[se, e._uid === p.activeTab._uid]])), 128))]),
|
|
8066
8094
|
_: 3
|
|
8067
8095
|
}, 8, ["name"])) : (b(), o(r, {
|
|
8068
8096
|
key: 1,
|
|
8069
8097
|
name: p.transitionName,
|
|
8070
8098
|
mode: p.transitionMode
|
|
8071
8099
|
}, {
|
|
8072
|
-
default:
|
|
8100
|
+
default: j(() => [(b(), o(t, { exclude: u.keepAlive ? "" : "tab-content" }, [(b(), o(m, {
|
|
8073
8101
|
key: n.activeTabUid,
|
|
8074
8102
|
item: p.activeTab,
|
|
8075
8103
|
class: _(u.contentClass)
|
|
8076
8104
|
}, {
|
|
8077
|
-
default:
|
|
8105
|
+
default: j(({ item: t }) => [t ? (b(), c(e, { key: 0 }, [n.$slots[`item-content.${t._index + 1}`] ? T(n.$slots, `item-content.${t._index + 1}`, {
|
|
8078
8106
|
key: 0,
|
|
8079
8107
|
item: p.getOriginalItem(t),
|
|
8080
8108
|
index: t._index + 1,
|
|
@@ -8099,7 +8127,7 @@ var mi = /* @__PURE__ */ q({
|
|
|
8099
8127
|
expose: ["focus"],
|
|
8100
8128
|
mixins: [X],
|
|
8101
8129
|
setup() {
|
|
8102
|
-
return { tabsStableId:
|
|
8130
|
+
return { tabsStableId: ae() };
|
|
8103
8131
|
},
|
|
8104
8132
|
props: {
|
|
8105
8133
|
modelValue: { type: [Number, String] },
|
|
@@ -8394,7 +8422,7 @@ function Hi(t, n, r, i, a, u) {
|
|
|
8394
8422
|
key: 0,
|
|
8395
8423
|
class: _(["w-table__header-sort", u.headerSortClasses(i)])
|
|
8396
8424
|
}, {
|
|
8397
|
-
default:
|
|
8425
|
+
default: j(() => [...n[9] ||= [d("wi-arrow-down", -1)]]),
|
|
8398
8426
|
_: 1
|
|
8399
8427
|
}, 8, ["class"])) : s("", !0),
|
|
8400
8428
|
i.label ? (b(), c(e, { key: 1 }, [t.$slots["header-label"] ? T(t.$slots, "header-label", {
|
|
@@ -8410,7 +8438,7 @@ function Hi(t, n, r, i, a, u) {
|
|
|
8410
8438
|
key: 2,
|
|
8411
8439
|
class: _(["w-table__header-sort", u.headerSortClasses(i)])
|
|
8412
8440
|
}, {
|
|
8413
|
-
default:
|
|
8441
|
+
default: j(() => [...n[10] ||= [d("wi-arrow-down", -1)]]),
|
|
8414
8442
|
_: 1
|
|
8415
8443
|
}, 8, ["class"])) : s("", !0),
|
|
8416
8444
|
a < r.headers.length - 1 && r.resizableColumns ? (b(), c("span", {
|
|
@@ -8419,10 +8447,10 @@ function Hi(t, n, r, i, a, u) {
|
|
|
8419
8447
|
"w-table__col-resizer--hover": t.colResizing.hover === a,
|
|
8420
8448
|
"w-table__col-resizer--active": t.colResizing.columnIndex === a
|
|
8421
8449
|
}]),
|
|
8422
|
-
onClick: n[0] ||=
|
|
8450
|
+
onClick: n[0] ||= P(() => {}, ["stop"])
|
|
8423
8451
|
}, null, 2)) : s("", !0)
|
|
8424
8452
|
], 42, yi))), 128))]), f(h, null, {
|
|
8425
|
-
default:
|
|
8453
|
+
default: j(() => [r.loading === "header" ? (b(), c("tr", xi, [l("td", { colspan: r.headers.length }, [f(m, { tile: "" })], 8, Si)])) : s("", !0)]),
|
|
8426
8454
|
_: 1
|
|
8427
8455
|
})])),
|
|
8428
8456
|
l("tbody", null, [
|
|
@@ -8491,7 +8519,7 @@ function Hi(t, n, r, i, a, u) {
|
|
|
8491
8519
|
class: "w-table__cell",
|
|
8492
8520
|
colspan: r.headers.length
|
|
8493
8521
|
}, [f(g, { y: "" }, {
|
|
8494
|
-
default:
|
|
8522
|
+
default: j(() => [u.expandedRowsByUid[i._uid] ? (b(), c("div", Pi, [T(t.$slots, "row-expansion", {
|
|
8495
8523
|
item: i,
|
|
8496
8524
|
index: a + 1
|
|
8497
8525
|
})])) : s("", !0), a < r.headers.length - 1 && r.resizableColumns ? (b(), c("span", {
|
|
@@ -8549,7 +8577,7 @@ function Hi(t, n, r, i, a, u) {
|
|
|
8549
8577
|
round: "",
|
|
8550
8578
|
lg: ""
|
|
8551
8579
|
}, {
|
|
8552
|
-
default:
|
|
8580
|
+
default: j(() => [d(O(r), 1)]),
|
|
8553
8581
|
_: 2
|
|
8554
8582
|
}, 1032, ["onClick", "class"])) : [
|
|
8555
8583
|
1,
|
|
@@ -8564,7 +8592,7 @@ function Hi(t, n, r, i, a, u) {
|
|
|
8564
8592
|
round: "",
|
|
8565
8593
|
lg: ""
|
|
8566
8594
|
}, {
|
|
8567
|
-
default:
|
|
8595
|
+
default: j(() => [...n[13] ||= [d("...", -1)]]),
|
|
8568
8596
|
_: 1
|
|
8569
8597
|
}, 8, ["onClick", "class"])) : s("", !0)], 64))), 128)) : (b(!0), c(e, { key: 1 }, w(t.paginationConfig.pagesCount, (e) => (b(), o(y, {
|
|
8570
8598
|
class: _(["w-pagination__page", { "w-pagination__page--active": e === t.paginationConfig.page }]),
|
|
@@ -8573,7 +8601,7 @@ function Hi(t, n, r, i, a, u) {
|
|
|
8573
8601
|
round: "",
|
|
8574
8602
|
lg: ""
|
|
8575
8603
|
}, {
|
|
8576
|
-
default:
|
|
8604
|
+
default: j(() => [d(O(e), 1)]),
|
|
8577
8605
|
_: 2
|
|
8578
8606
|
}, 1032, ["onClick", "class"]))), 128)),
|
|
8579
8607
|
f(y, {
|
|
@@ -8618,7 +8646,7 @@ var Ui = 15, Wi = /* @__PURE__ */ q({
|
|
|
8618
8646
|
1,
|
|
8619
8647
|
"1",
|
|
8620
8648
|
""
|
|
8621
|
-
].includes(e) ||
|
|
8649
|
+
].includes(e) || R(`Wrong value for the w-table's \`expandableRows\` prop. Given: "${e}", expected one of: [undefined, true, false, 1, '1', ''].`), !0) },
|
|
8622
8650
|
expandedRows: { type: Array },
|
|
8623
8651
|
selectableRows: { validator: (e) => ([
|
|
8624
8652
|
void 0,
|
|
@@ -8627,7 +8655,7 @@ var Ui = 15, Wi = /* @__PURE__ */ q({
|
|
|
8627
8655
|
1,
|
|
8628
8656
|
"1",
|
|
8629
8657
|
""
|
|
8630
|
-
].includes(e) ||
|
|
8658
|
+
].includes(e) || R(`Wrong value for the w-table's \`selectableRows\` prop. Given: "${e}", expected one of: [undefined, true, false, 1, '1', ''].`), !0) },
|
|
8631
8659
|
selectedRows: { type: Array },
|
|
8632
8660
|
forceSelection: { type: Boolean },
|
|
8633
8661
|
uidKey: {
|
|
@@ -8645,7 +8673,7 @@ var Ui = 15, Wi = /* @__PURE__ */ q({
|
|
|
8645
8673
|
Object,
|
|
8646
8674
|
String
|
|
8647
8675
|
],
|
|
8648
|
-
validator: (e) => e && typeof e == "object" && (!e.itemsPerPage || e.page && isNaN(e.page)) ? (
|
|
8676
|
+
validator: (e) => e && typeof e == "object" && (!e.itemsPerPage || e.page && isNaN(e.page)) ? (R("Wrong pagination config received in the w-table's `pagination` prop (received: `" + JSON.stringify(e) + "`). \nExpected object: { itemsPerPage: Integer, page: Integer } or { itemsPerPage: Integer, start: Integer }."), !1) : !0
|
|
8649
8677
|
},
|
|
8650
8678
|
dark: { type: Boolean },
|
|
8651
8679
|
light: { type: Boolean }
|
|
@@ -8912,7 +8940,7 @@ function Ki(e, t, n, r, i, a) {
|
|
|
8912
8940
|
e.$emit("update:modelValue", !n.modelValue), e.$emit("input", !n.modelValue);
|
|
8913
8941
|
},
|
|
8914
8942
|
onPointerdown: t[2] ||= (...e) => a.onTagPointerDown && a.onTagPointerDown(...e),
|
|
8915
|
-
onKeypress: t[3] ||=
|
|
8943
|
+
onKeypress: t[3] ||= N((t) => {
|
|
8916
8944
|
e.$emit("update:modelValue", !n.modelValue), e.$emit("input", !n.modelValue);
|
|
8917
8945
|
}, ["enter"]),
|
|
8918
8946
|
role: n.modelValue !== -1 && "button",
|
|
@@ -8922,7 +8950,7 @@ function Ki(e, t, n, r, i, a) {
|
|
|
8922
8950
|
}, [T(e.$slots, "default"), n.closable && n.modelValue ? (b(), c("i", {
|
|
8923
8951
|
key: 0,
|
|
8924
8952
|
class: "w-icon w-tag__closable wi-cross",
|
|
8925
|
-
onClick: t[0] ||=
|
|
8953
|
+
onClick: t[0] ||= P((t) => {
|
|
8926
8954
|
e.$emit("update:modelValue", !1), e.$emit("input", !1);
|
|
8927
8955
|
}, ["stop"]),
|
|
8928
8956
|
role: "icon",
|
|
@@ -9022,7 +9050,7 @@ function Zi(t, n, r, i, a, u) {
|
|
|
9022
9050
|
class: u.classes,
|
|
9023
9051
|
style: t.$attrs.style
|
|
9024
9052
|
}), {
|
|
9025
|
-
default:
|
|
9053
|
+
default: j(() => [
|
|
9026
9054
|
r.labelPosition === "left" ? (b(), c(e, { key: 0 }, [t.$slots.default || r.label ? (b(), c("label", {
|
|
9027
9055
|
key: 0,
|
|
9028
9056
|
class: _(["w-textarea__label w-textarea__label--left w-form-el-shakable", t.labelClasses]),
|
|
@@ -9036,10 +9064,10 @@ function Zi(t, n, r, i, a, u) {
|
|
|
9036
9064
|
for: t.inputId,
|
|
9037
9065
|
onClick: n[0] ||= (e) => t.$emit("click:inner-icon-left", e)
|
|
9038
9066
|
}, {
|
|
9039
|
-
default:
|
|
9067
|
+
default: j(() => [d(O(r.innerIconLeft), 1)]),
|
|
9040
9068
|
_: 1
|
|
9041
9069
|
}, 8, ["for"])) : s("", !0)]),
|
|
9042
|
-
|
|
9070
|
+
M(l("textarea", h({
|
|
9043
9071
|
class: "w-textarea__textarea",
|
|
9044
9072
|
ref: "textarea",
|
|
9045
9073
|
"onUpdate:modelValue": n[1] ||= (e) => a.inputValue = e
|
|
@@ -9057,7 +9085,7 @@ function Zi(t, n, r, i, a, u) {
|
|
|
9057
9085
|
disabled: t.isDisabled || null,
|
|
9058
9086
|
required: t.required || null,
|
|
9059
9087
|
tabindex: t.tabindex || null
|
|
9060
|
-
}), null, 16, Yi), [[
|
|
9088
|
+
}), null, 16, Yi), [[A, a.inputValue]]),
|
|
9061
9089
|
r.labelPosition === "inside" && u.showLabelInside ? (b(), c(e, { key: 0 }, [t.$slots.default || r.label ? (b(), c("label", {
|
|
9062
9090
|
key: 0,
|
|
9063
9091
|
class: _(["w-textarea__label w-textarea__label--inside w-form-el-shakable", t.labelClasses])
|
|
@@ -9069,7 +9097,7 @@ function Zi(t, n, r, i, a, u) {
|
|
|
9069
9097
|
for: t.inputId,
|
|
9070
9098
|
onClick: n[5] ||= (e) => t.$emit("click:inner-icon-right", e)
|
|
9071
9099
|
}, {
|
|
9072
|
-
default:
|
|
9100
|
+
default: j(() => [d(O(r.innerIconRight), 1)]),
|
|
9073
9101
|
_: 1
|
|
9074
9102
|
}, 8, ["for"])) : s("", !0)])
|
|
9075
9103
|
], 2),
|
|
@@ -9233,7 +9261,7 @@ function ta(t, n, r, i, a, s) {
|
|
|
9233
9261
|
class: "w-timeline-item",
|
|
9234
9262
|
key: n
|
|
9235
9263
|
}, [(b(), o(D(e[r.itemIconKey] || r.icon ? "w-icon" : "div"), { class: _(["w-timeline-item__bullet", { [e[r.itemColorKey] || r.color]: e[r.itemColorKey] || r.color }]) }, {
|
|
9236
|
-
default:
|
|
9264
|
+
default: j(() => [d(O(e[r.itemIconKey] || r.icon), 1)]),
|
|
9237
9265
|
_: 2
|
|
9238
9266
|
}, 1032, ["class"])), t.$slots[`item.${n + 1}`] ? T(t.$slots, `item.${n + 1}`, {
|
|
9239
9267
|
key: 1,
|
|
@@ -9367,7 +9395,7 @@ function aa(t, i, a, l, u, p) {
|
|
|
9367
9395
|
onAfterEnter: t.onDetachableAfterEnter,
|
|
9368
9396
|
onAfterLeave: t.onAfterLeave
|
|
9369
9397
|
}, {
|
|
9370
|
-
default:
|
|
9398
|
+
default: j(() => [t.detachableVisible ? (b(), c("div", {
|
|
9371
9399
|
class: _(["w-tooltip", p.classes]),
|
|
9372
9400
|
ref: "detachable",
|
|
9373
9401
|
key: l.tooltipInstanceId,
|
|
@@ -9385,7 +9413,7 @@ var oa = /* @__PURE__ */ q({
|
|
|
9385
9413
|
name: "w-tooltip",
|
|
9386
9414
|
mixins: [Hn],
|
|
9387
9415
|
setup() {
|
|
9388
|
-
return { tooltipInstanceId:
|
|
9416
|
+
return { tooltipInstanceId: ae() };
|
|
9389
9417
|
},
|
|
9390
9418
|
props: {
|
|
9391
9419
|
modelValue: {},
|
|
@@ -9503,7 +9531,7 @@ var oa = /* @__PURE__ */ q({
|
|
|
9503
9531
|
//#region src/wave-ui/components/transitions/w-transition-bounce.vue?vue&type=template&lang.js
|
|
9504
9532
|
function sa(e, t, n, i, a, s) {
|
|
9505
9533
|
return b(), o(r, h({ name: "bounce" }, e.$props), {
|
|
9506
|
-
default:
|
|
9534
|
+
default: j(() => [T(e.$slots, "default")]),
|
|
9507
9535
|
_: 3
|
|
9508
9536
|
}, 16);
|
|
9509
9537
|
}
|
|
@@ -9532,7 +9560,7 @@ function la(e, t, n, i, a, s) {
|
|
|
9532
9560
|
onLeave: s.leave,
|
|
9533
9561
|
onAfterLeave: s.afterLeave
|
|
9534
9562
|
}, {
|
|
9535
|
-
default:
|
|
9563
|
+
default: j(() => [T(e.$slots, "default")]),
|
|
9536
9564
|
_: 3
|
|
9537
9565
|
}, 8, [
|
|
9538
9566
|
"mode",
|
|
@@ -9649,7 +9677,7 @@ var ua = /* @__PURE__ */ q({
|
|
|
9649
9677
|
//#region src/wave-ui/components/transitions/w-transition-fade.vue?vue&type=template&lang.js
|
|
9650
9678
|
function da(e, t, n, i, a, s) {
|
|
9651
9679
|
return b(), o(r, h({ name: "fade" }, e.$props), {
|
|
9652
|
-
default:
|
|
9680
|
+
default: j(() => [T(e.$slots, "default")]),
|
|
9653
9681
|
_: 3
|
|
9654
9682
|
}, 16);
|
|
9655
9683
|
}
|
|
@@ -9665,7 +9693,7 @@ var fa = /* @__PURE__ */ q({
|
|
|
9665
9693
|
//#region src/wave-ui/components/transitions/w-transition-scale.vue?vue&type=template&lang.js
|
|
9666
9694
|
function pa(e, t, n, i, a, s) {
|
|
9667
9695
|
return b(), o(r, h({ name: "scale" }, e.$props), {
|
|
9668
|
-
default:
|
|
9696
|
+
default: j(() => [T(e.$slots, "default")]),
|
|
9669
9697
|
_: 3
|
|
9670
9698
|
}, 16);
|
|
9671
9699
|
}
|
|
@@ -9681,7 +9709,7 @@ var ma = /* @__PURE__ */ q({
|
|
|
9681
9709
|
//#region src/wave-ui/components/transitions/w-transition-scale-fade.vue?vue&type=template&lang.js
|
|
9682
9710
|
function ha(e, t, n, i, a, s) {
|
|
9683
9711
|
return b(), o(r, h({ name: "scale-fade" }, e.$props), {
|
|
9684
|
-
default:
|
|
9712
|
+
default: j(() => [T(e.$slots, "default")]),
|
|
9685
9713
|
_: 3
|
|
9686
9714
|
}, 16);
|
|
9687
9715
|
}
|
|
@@ -9697,7 +9725,7 @@ var ga = /* @__PURE__ */ q({
|
|
|
9697
9725
|
//#region src/wave-ui/components/transitions/w-transition-slide.vue?vue&type=template&lang.js
|
|
9698
9726
|
function _a(e, t, n, i, a, s) {
|
|
9699
9727
|
return b(), o(r, h({ name: s.transitionName }, e.$props), {
|
|
9700
|
-
default:
|
|
9728
|
+
default: j(() => [T(e.$slots, "default")]),
|
|
9701
9729
|
_: 3
|
|
9702
9730
|
}, 16, ["name"]);
|
|
9703
9731
|
}
|
|
@@ -9725,7 +9753,7 @@ var va = /* @__PURE__ */ q({
|
|
|
9725
9753
|
//#region src/wave-ui/components/transitions/w-transition-slide-fade.vue?vue&type=template&lang.js
|
|
9726
9754
|
function ya(e, t, n, i, a, s) {
|
|
9727
9755
|
return b(), o(r, h({ name: s.transitionName }, e.$props), {
|
|
9728
|
-
default:
|
|
9756
|
+
default: j(() => [T(e.$slots, "default")]),
|
|
9729
9757
|
_: 3
|
|
9730
9758
|
}, 16, ["name"]);
|
|
9731
9759
|
}
|
|
@@ -9753,7 +9781,7 @@ var ba = /* @__PURE__ */ q({
|
|
|
9753
9781
|
//#region src/wave-ui/components/transitions/w-transition-twist.vue?vue&type=template&lang.js
|
|
9754
9782
|
function xa(e, t, n, i, a, s) {
|
|
9755
9783
|
return b(), o(r, h({ name: "twist" }, e.$props), {
|
|
9756
|
-
default:
|
|
9784
|
+
default: j(() => [T(e.$slots, "default")]),
|
|
9757
9785
|
_: 3
|
|
9758
9786
|
}, 16);
|
|
9759
9787
|
}
|
|
@@ -9780,10 +9808,10 @@ function Ta(t, n, r, i, a, u) {
|
|
|
9780
9808
|
class: u.itemLabelClasses(e),
|
|
9781
9809
|
tabindex: u.getTreeItemTabindex(e)
|
|
9782
9810
|
}), {
|
|
9783
|
-
default:
|
|
9811
|
+
default: j(() => [(e.children || e.branch) && (r.expandOpenIcon && e.open || r.expandIcon) && !(r.unexpandableEmpty && !e.children) ? (b(), o(f, {
|
|
9784
9812
|
key: 0,
|
|
9785
9813
|
class: "w-tree__item-expand",
|
|
9786
|
-
onClick:
|
|
9814
|
+
onClick: P((t) => !r.disabled && !e.disabled && u.onLabelClick(e, t), ["stop"]),
|
|
9787
9815
|
color: "inherit",
|
|
9788
9816
|
icon: e.open && r.expandOpenIcon || r.expandIcon,
|
|
9789
9817
|
"icon-props": { rotate90a: !e.open },
|
|
@@ -9807,7 +9835,7 @@ function Ta(t, n, r, i, a, u) {
|
|
|
9807
9835
|
class: "w-tree__item-icon",
|
|
9808
9836
|
color: e.originalItem[r.itemIconColorKey] || r.iconColor
|
|
9809
9837
|
}, {
|
|
9810
|
-
default:
|
|
9838
|
+
default: j(() => [d(O(u.itemIcon(e)), 1)]),
|
|
9811
9839
|
_: 2
|
|
9812
9840
|
}, 1032, ["color"])) : s("", !0),
|
|
9813
9841
|
l("span", { innerHTML: e.label }, null, 8, Ca),
|
|
@@ -9825,7 +9853,7 @@ function Ta(t, n, r, i, a, u) {
|
|
|
9825
9853
|
onAfterEnter: (n) => t.$emit("open", u.emitPayload(e)),
|
|
9826
9854
|
onAfterLeave: (n) => t.$emit("close", u.emitPayload(e))
|
|
9827
9855
|
}, {
|
|
9828
|
-
default:
|
|
9856
|
+
default: j(() => [e.children && e.open ? (b(), o(m, h({
|
|
9829
9857
|
key: 0,
|
|
9830
9858
|
ref_for: !0
|
|
9831
9859
|
}, t.$props, {
|
|
@@ -9840,7 +9868,7 @@ function Ta(t, n, r, i, a, u) {
|
|
|
9840
9868
|
onSelect: n[5] ||= (e) => t.$emit("select", e),
|
|
9841
9869
|
"onUpdate:modelValue": n[6] ||= (e) => t.$emit("update:model-value", e)
|
|
9842
9870
|
}), {
|
|
9843
|
-
item:
|
|
9871
|
+
item: j(({ item: e, depth: n, path: r, open: i }) => [T(t.$slots, "item", {
|
|
9844
9872
|
item: e,
|
|
9845
9873
|
depth: n,
|
|
9846
9874
|
path: r,
|
|
@@ -9948,7 +9976,7 @@ var Ea = /* @__PURE__ */ q({
|
|
|
9948
9976
|
this.disabled || J(this.$el.querySelector(".w-tree__item-label[tabindex=\"0\"]"));
|
|
9949
9977
|
},
|
|
9950
9978
|
updateCurrentDepthTree(e, t = []) {
|
|
9951
|
-
if (this.currentDepthItems = [], !Array.isArray(e) && typeof e != "object") return
|
|
9979
|
+
if (this.currentDepthItems = [], !Array.isArray(e) && typeof e != "object") return L(`[w-tree] the tree items must be of type array or object, ${typeof e} received.`, e);
|
|
9952
9980
|
Array.isArray(e) || (e = [e]), e.forEach((e, n) => {
|
|
9953
9981
|
let r = {
|
|
9954
9982
|
originalItem: e,
|
|
@@ -10059,7 +10087,7 @@ var Ea = /* @__PURE__ */ q({
|
|
|
10059
10087
|
unmounted() {
|
|
10060
10088
|
this.dataPropUnwatch();
|
|
10061
10089
|
}
|
|
10062
|
-
}, [["render", Ta]]), Da = /* @__PURE__ */
|
|
10090
|
+
}, [["render", Ta]]), Da = /* @__PURE__ */ F({
|
|
10063
10091
|
WAccordion: () => mt,
|
|
10064
10092
|
WAccordionItem: () => ft,
|
|
10065
10093
|
WAlert: () => _t,
|