wave-ui 4.1.0 → 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 +3 -3
- package/dist/wave-ui.esm.js +898 -798
- 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 +100 -5
- package/src/wave-ui/mixins/detachable.js +41 -2
- package/src/wave-ui/mixins/focusable.js +12 -3
- package/src/wave-ui/utils/dynamic-css.js +3 -3
- package/src/wave-ui/utils/focus.js +52 -17
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 ae, vModelDynamic 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,7 +1176,7 @@ 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 = {
|
|
@@ -1189,25 +1189,25 @@ var xe = [
|
|
|
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
|
|
1209
|
-
},
|
|
1210
|
-
let n = "", { cssScope: r } =
|
|
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
|
+
}, Te = (e, t) => {
|
|
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 {
|
|
@@ -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 } = 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 }) => {
|
|
@@ -1225,7 +1225,7 @@ 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
|
-
},
|
|
1228
|
+
}, W = (e) => {
|
|
1229
1229
|
let t = window.innerWidth, n = H.values.slice(0);
|
|
1230
1230
|
n.push(t), n.sort((e, t) => e - t);
|
|
1231
1231
|
let r = H.keys[n.indexOf(t)] || "xl";
|
|
@@ -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
1243
|
if (H = {
|
|
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,8 +1255,8 @@ 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
1262
|
e.id = "wave-ui-palette", e.innerHTML = we(t);
|
|
@@ -1265,11 +1265,11 @@ var xe = [
|
|
|
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
|
}
|
|
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
|
+
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
|
-
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" }]),
|
|
@@ -1290,14 +1290,14 @@ function Ae(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",
|
|
@@ -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));
|
|
1468
|
+
}
|
|
1469
|
+
function Ye(e) {
|
|
1470
|
+
let t = Ke(e);
|
|
1471
|
+
return t ? (e.__waveUiDetachable = t, t.registerAutofocus({ el: e }), !0) : !1;
|
|
1453
1472
|
}
|
|
1454
|
-
function
|
|
1455
|
-
|
|
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;
|
|
@@ -1470,10 +1489,10 @@ var Ue = !1, We = (e) => {
|
|
|
1470
1489
|
i.props[n].default = t[n], r = !0;
|
|
1471
1490
|
break;
|
|
1472
1491
|
}
|
|
1473
|
-
r ||
|
|
1492
|
+
r || L(`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: "",
|
|
@@ -1493,42 +1512,75 @@ var Ue = !1, We = (e) => {
|
|
|
1493
1512
|
this._notificationManager.notify(...e);
|
|
1494
1513
|
},
|
|
1495
1514
|
switchTheme(e) {
|
|
1496
|
-
this.theme
|
|
1515
|
+
this.theme !== e && document.head.querySelector("#wave-ui-colors")?.remove?.(), this.theme = e, document.documentElement.setAttribute("data-theme", e);
|
|
1497
1516
|
let t = this.config.colors[this.theme];
|
|
1498
|
-
|
|
1517
|
+
De(t, Se, this.config.css.colorShadeCssVariables), this.colors = fe(t, Se);
|
|
1499
1518
|
},
|
|
1500
1519
|
setAppClasses(...e) {
|
|
1501
1520
|
let t = document.querySelector(".w-app");
|
|
1502
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
|
+
};
|
|
1503
1534
|
}
|
|
1504
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
|
+
}
|
|
1505
1547
|
static install(t, n = {}) {
|
|
1506
|
-
t.directive("focus", {
|
|
1548
|
+
t.directive("focus", {
|
|
1549
|
+
mounted: (e) => {
|
|
1550
|
+
Ye(e) || Je(e);
|
|
1551
|
+
},
|
|
1552
|
+
unmounted: (e) => Xe(e)
|
|
1553
|
+
}), t.directive("scroll", { mounted: (e, t) => {
|
|
1507
1554
|
let n = (r) => {
|
|
1508
1555
|
t.value(r, e) && window.removeEventListener("scroll", n);
|
|
1509
1556
|
};
|
|
1510
1557
|
window.addEventListener("scroll", n);
|
|
1511
|
-
} }), t.directive("waveRipple",
|
|
1558
|
+
} }), t.directive("waveRipple", Re);
|
|
1512
1559
|
let { components: r = {} } = n || {};
|
|
1513
1560
|
for (let e in r) {
|
|
1514
1561
|
let i = r[e];
|
|
1515
|
-
n.presets?.[i.name] &&
|
|
1562
|
+
n.presets?.[i.name] && $e(i, n.presets[i.name]), t.component(i.name, i);
|
|
1516
1563
|
}
|
|
1517
1564
|
t.mixin({ beforeMount() {
|
|
1518
|
-
if (!
|
|
1519
|
-
|
|
1565
|
+
if (!Ze) {
|
|
1566
|
+
Ze = !0;
|
|
1520
1567
|
let e = m("$waveui"), { config: n } = e, r = document.querySelector(n.on) || document.body;
|
|
1521
1568
|
if (r.classList.add("w-app"), n.css.appClasses) {
|
|
1522
1569
|
let e = typeof n.css.appClasses == "string" ? n.css.appClasses.split(" ").filter((e) => e) : n.css.appClasses;
|
|
1523
1570
|
e.length && r.classList.add(...e);
|
|
1524
1571
|
}
|
|
1525
|
-
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);
|
|
1526
1578
|
}
|
|
1527
1579
|
} }), new e(t, n);
|
|
1528
1580
|
}
|
|
1529
1581
|
constructor(e, t = {}) {
|
|
1530
1582
|
if (e.config.globalProperties.$waveui) return;
|
|
1531
|
-
if (this.$waveui._notificationManager = new
|
|
1583
|
+
if (this.$waveui._notificationManager = new je(), t.theme ||= "light", t.colors) {
|
|
1532
1584
|
let e = { ...t.colors };
|
|
1533
1585
|
t.colors.light || (t.colors.light = e), t.colors.dark || (t.colors.dark = e), t.colors = {
|
|
1534
1586
|
light: t.colors.light,
|
|
@@ -1536,9 +1588,9 @@ var Ue = !1, We = (e) => {
|
|
|
1536
1588
|
};
|
|
1537
1589
|
}
|
|
1538
1590
|
let { components: n, ...r } = t;
|
|
1539
|
-
r = this.$waveui.config =
|
|
1591
|
+
r = this.$waveui.config = ue(r), r.css.colorShades && de(r);
|
|
1540
1592
|
let i = x(this.$waveui);
|
|
1541
|
-
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));
|
|
1542
1594
|
}
|
|
1543
1595
|
}, Y = (e = {}) => (typeof e == "string" ? e = { [e]: !0 } : Array.isArray(e) && (e = { [e.join(" ")]: !0 }), e), X = {
|
|
1544
1596
|
inject: { $waveui: {
|
|
@@ -1550,7 +1602,7 @@ var Ue = !1, We = (e) => {
|
|
|
1550
1602
|
default: void 0
|
|
1551
1603
|
} },
|
|
1552
1604
|
computed: { rippleActive() {
|
|
1553
|
-
return
|
|
1605
|
+
return Fe(this.noRipple ? !1 : void 0, this.$waveui);
|
|
1554
1606
|
} },
|
|
1555
1607
|
methods: { onRipple(e, t, n) {
|
|
1556
1608
|
if (!this.rippleActive || !e) return;
|
|
@@ -1559,20 +1611,20 @@ var Ue = !1, We = (e) => {
|
|
|
1559
1611
|
let t = e.target;
|
|
1560
1612
|
r = (t?.nodeType === 1 ? t : t?.parentElement)?.closest?.(".w-ripple") ?? null;
|
|
1561
1613
|
}
|
|
1562
|
-
!r?.getBoundingClientRect && this.$el instanceof Element && this.$el.classList?.contains("w-ripple") && (r = this.$el), r?.getBoundingClientRect &&
|
|
1614
|
+
!r?.getBoundingClientRect && this.$el instanceof Element && this.$el.classList?.contains("w-ripple") && (r = this.$el), r?.getBoundingClientRect && Ne(r, e, n);
|
|
1563
1615
|
} }
|
|
1564
|
-
},
|
|
1565
|
-
function
|
|
1566
|
-
return b(), c("div",
|
|
1616
|
+
}, tt = { class: "w-accordion__item-content" };
|
|
1617
|
+
function nt(e, t, n, r, i, a) {
|
|
1618
|
+
return b(), c("div", tt, [T(e.$slots, "default")]);
|
|
1567
1619
|
}
|
|
1568
|
-
var
|
|
1620
|
+
var rt = /* @__PURE__ */ q({
|
|
1569
1621
|
name: "accordion-content",
|
|
1570
1622
|
props: { item: {
|
|
1571
1623
|
type: Object,
|
|
1572
1624
|
default: () => ({})
|
|
1573
1625
|
} }
|
|
1574
|
-
}, [["render",
|
|
1575
|
-
function
|
|
1626
|
+
}, [["render", nt]]), it = ["aria-expanded"], at = ["tabindex"], ot = ["innerHTML"], st = ["innerHTML"], ct = ["innerHTML"], lt = ["innerHTML"], ut = ["innerHTML"];
|
|
1627
|
+
function dt(e, n, r, i, a, u) {
|
|
1576
1628
|
let d = E("w-button"), p = E("accordion-content"), m = E("w-transition-expand");
|
|
1577
1629
|
return b(), c("div", {
|
|
1578
1630
|
class: _(["w-accordion__item", u.itemClasses]),
|
|
@@ -1582,7 +1634,7 @@ function rt(e, n, r, i, a, u) {
|
|
|
1582
1634
|
onClick: n[4] ||= (e) => !u.accordionItem._disabled && u.toggleItem(u.accordionItem, e),
|
|
1583
1635
|
onPointerdown: n[5] ||= (...e) => u.onAccordionTitlePointerDown && u.onAccordionTitlePointerDown(...e),
|
|
1584
1636
|
onFocus: n[6] ||= (t) => e.$emit("focus", u.accordionItem),
|
|
1585
|
-
onKeypress: n[7] ||=
|
|
1637
|
+
onKeypress: n[7] ||= N((e) => !u.accordionItem._disabled && u.toggleItem(u.accordionItem, e), ["enter"]),
|
|
1586
1638
|
tabindex: !u.accordionItem._disabled && 0
|
|
1587
1639
|
}, [
|
|
1588
1640
|
u.options.expandIcon && !u.options.expandIconRight ? (b(), o(d, {
|
|
@@ -1596,8 +1648,8 @@ function rt(e, n, r, i, a, u) {
|
|
|
1596
1648
|
disabled: u.accordionItem._disabled || null,
|
|
1597
1649
|
tabindex: -1,
|
|
1598
1650
|
text: "",
|
|
1599
|
-
onKeypress: n[0] ||=
|
|
1600
|
-
onClick: n[1] ||=
|
|
1651
|
+
onKeypress: n[0] ||= P(() => {}, ["stop"]),
|
|
1652
|
+
onClick: n[1] ||= P((e) => !u.accordionItem._disabled && u.toggleItem(u.accordionItem, e), ["stop"])
|
|
1601
1653
|
}, null, 8, [
|
|
1602
1654
|
"icon",
|
|
1603
1655
|
"icon-props",
|
|
@@ -1611,7 +1663,7 @@ function rt(e, n, r, i, a, u) {
|
|
|
1611
1663
|
}, () => [l("div", {
|
|
1612
1664
|
class: "grow",
|
|
1613
1665
|
innerHTML: u.accordionItem[u.options.itemTitleKey]
|
|
1614
|
-
}, null, 8,
|
|
1666
|
+
}, null, 8, ot)]),
|
|
1615
1667
|
u.options.expandIcon && u.options.expandIconRight ? (b(), o(d, {
|
|
1616
1668
|
key: 1,
|
|
1617
1669
|
class: _(["w-accordion__expand-icon", {
|
|
@@ -1620,32 +1672,32 @@ function rt(e, n, r, i, a, u) {
|
|
|
1620
1672
|
}]),
|
|
1621
1673
|
icon: u.accordionItem._expanded && u.options.collapseIcon || u.options.expandIcon,
|
|
1622
1674
|
text: "",
|
|
1623
|
-
onKeypress: n[2] ||=
|
|
1624
|
-
onClick: n[3] ||=
|
|
1675
|
+
onKeypress: n[2] ||= P(() => {}, ["stop"]),
|
|
1676
|
+
onClick: n[3] ||= P((e) => !u.accordionItem._disabled && u.toggleItem(u.accordionItem, e), ["stop"])
|
|
1625
1677
|
}, null, 8, ["icon", "class"])) : s("", !0)
|
|
1626
|
-
], 42,
|
|
1678
|
+
], 42, at), u.options.keepInDom ? (b(), o(m, {
|
|
1627
1679
|
key: 0,
|
|
1628
1680
|
y: "",
|
|
1629
1681
|
onAfterLeave: n[8] ||= (e) => u.onEndOfCollapse(u.accordionItem),
|
|
1630
1682
|
duration: u.options.duration
|
|
1631
1683
|
}, {
|
|
1632
|
-
default:
|
|
1684
|
+
default: j(() => [M(f(p, {
|
|
1633
1685
|
item: u.accordionItem,
|
|
1634
1686
|
class: _(u.contentClasses)
|
|
1635
1687
|
}, {
|
|
1636
|
-
default:
|
|
1688
|
+
default: j(() => [e.$slots.content ? T(e.$slots, "content", {
|
|
1637
1689
|
key: 0,
|
|
1638
1690
|
item: u.getOriginalItem(u.accordionItem),
|
|
1639
1691
|
expanded: u.accordionItem._expanded,
|
|
1640
1692
|
index: u.accordionItem._index + 1
|
|
1641
|
-
}, () => [l("div", { innerHTML: u.accordionItem[u.options.itemContentKey] }, null, 8,
|
|
1693
|
+
}, () => [l("div", { innerHTML: u.accordionItem[u.options.itemContentKey] }, null, 8, st)]) : T(e.$slots, "default", {
|
|
1642
1694
|
key: 1,
|
|
1643
1695
|
item: u.getOriginalItem(u.accordionItem),
|
|
1644
1696
|
expanded: u.accordionItem._expanded,
|
|
1645
1697
|
index: u.accordionItem._index + 1
|
|
1646
|
-
}, () => [l("div", { innerHTML: u.accordionItem[u.options.itemContentKey] }, null, 8,
|
|
1698
|
+
}, () => [l("div", { innerHTML: u.accordionItem[u.options.itemContentKey] }, null, 8, ct)])]),
|
|
1647
1699
|
_: 3
|
|
1648
|
-
}, 8, ["item", "class"]), [[
|
|
1700
|
+
}, 8, ["item", "class"]), [[se, u.accordionItem._expanded]])]),
|
|
1649
1701
|
_: 3
|
|
1650
1702
|
}, 8, ["duration"])) : (b(), o(m, {
|
|
1651
1703
|
key: 1,
|
|
@@ -1653,35 +1705,36 @@ function rt(e, n, r, i, a, u) {
|
|
|
1653
1705
|
onAfterLeave: n[9] ||= (e) => u.onEndOfCollapse(u.accordionItem),
|
|
1654
1706
|
duration: u.options.duration
|
|
1655
1707
|
}, {
|
|
1656
|
-
default:
|
|
1708
|
+
default: j(() => [(b(), o(t, { exclude: u.options.keepAlive ? "" : "accordion-content" }, [u.accordionItem._expanded ? (b(), o(p, {
|
|
1657
1709
|
key: u.accordionItem._cuid,
|
|
1658
1710
|
item: u.accordionItem,
|
|
1659
1711
|
class: _(u.contentClasses)
|
|
1660
1712
|
}, {
|
|
1661
|
-
default:
|
|
1713
|
+
default: j(() => [e.$slots.content ? T(e.$slots, "content", {
|
|
1662
1714
|
key: 0,
|
|
1663
1715
|
item: u.getOriginalItem(u.accordionItem),
|
|
1664
1716
|
expanded: u.accordionItem._expanded,
|
|
1665
1717
|
index: u.accordionItem._index + 1
|
|
1666
|
-
}, () => [l("div", { innerHTML: u.accordionItem[u.options.itemContentKey] }, null, 8,
|
|
1718
|
+
}, () => [l("div", { innerHTML: u.accordionItem[u.options.itemContentKey] }, null, 8, lt)]) : T(e.$slots, "default", {
|
|
1667
1719
|
key: 1,
|
|
1668
1720
|
item: u.getOriginalItem(u.accordionItem),
|
|
1669
1721
|
expanded: u.accordionItem._expanded,
|
|
1670
1722
|
index: u.accordionItem._index + 1
|
|
1671
|
-
}, () => [l("div", { innerHTML: u.accordionItem[u.options.itemContentKey] }, null, 8,
|
|
1723
|
+
}, () => [l("div", { innerHTML: u.accordionItem[u.options.itemContentKey] }, null, 8, ut)])]),
|
|
1672
1724
|
_: 3
|
|
1673
1725
|
}, 8, ["item", "class"])) : s("", !0)], 1032, ["exclude"]))]),
|
|
1674
1726
|
_: 3
|
|
1675
|
-
}, 8, ["duration"]))], 10,
|
|
1727
|
+
}, 8, ["duration"]))], 10, it);
|
|
1676
1728
|
}
|
|
1677
|
-
var
|
|
1729
|
+
var ft = /* @__PURE__ */ q({
|
|
1678
1730
|
name: "w-accordion-item",
|
|
1731
|
+
focusable: !0,
|
|
1679
1732
|
expose: ["focus"],
|
|
1680
1733
|
mixins: [X],
|
|
1681
1734
|
setup() {
|
|
1682
1735
|
return { accordionItemUid: ae() };
|
|
1683
1736
|
},
|
|
1684
|
-
components: { AccordionContent:
|
|
1737
|
+
components: { AccordionContent: rt },
|
|
1685
1738
|
props: {
|
|
1686
1739
|
title: { type: String },
|
|
1687
1740
|
content: { type: String },
|
|
@@ -1713,7 +1766,7 @@ var it = /* @__PURE__ */ K({
|
|
|
1713
1766
|
let t = this.getAccordionNoRipple?.();
|
|
1714
1767
|
e = typeof t == "boolean" ? t : void 0;
|
|
1715
1768
|
}
|
|
1716
|
-
return
|
|
1769
|
+
return Fe(e ? !1 : void 0, this.$waveui);
|
|
1717
1770
|
},
|
|
1718
1771
|
accordionTitleClasses() {
|
|
1719
1772
|
return {
|
|
@@ -1738,7 +1791,7 @@ var it = /* @__PURE__ */ K({
|
|
|
1738
1791
|
},
|
|
1739
1792
|
methods: {
|
|
1740
1793
|
focus() {
|
|
1741
|
-
this.accordionItem._disabled ||
|
|
1794
|
+
this.accordionItem._disabled || J(this.$el.querySelector(".w-accordion__item-title"));
|
|
1742
1795
|
},
|
|
1743
1796
|
onAccordionTitlePointerDown(e) {
|
|
1744
1797
|
this.accordionItem._disabled || e.target.closest?.(".w-accordion__expand-icon") || this.onRipple(e);
|
|
@@ -1760,10 +1813,10 @@ var it = /* @__PURE__ */ K({
|
|
|
1760
1813
|
beforeUnmount() {
|
|
1761
1814
|
this.unregisterItem(this.accordionItemUid);
|
|
1762
1815
|
}
|
|
1763
|
-
}, [["render",
|
|
1816
|
+
}, [["render", dt]]);
|
|
1764
1817
|
//#endregion
|
|
1765
1818
|
//#region src/wave-ui/components/w-accordion/index.vue?vue&type=template&lang.js
|
|
1766
|
-
function
|
|
1819
|
+
function pt(t, n, r, i, a, l) {
|
|
1767
1820
|
let u = E("w-accordion-item");
|
|
1768
1821
|
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
1822
|
key: r,
|
|
@@ -1774,7 +1827,7 @@ function at(t, n, r, i, a, l) {
|
|
|
1774
1827
|
disabled: e.disabled || e._disabled,
|
|
1775
1828
|
onFocus: n[0] ||= (e) => t.$emit("focus", e)
|
|
1776
1829
|
}, {
|
|
1777
|
-
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}`, {
|
|
1778
1831
|
key: 0,
|
|
1779
1832
|
item: e,
|
|
1780
1833
|
expanded: n,
|
|
@@ -1785,7 +1838,7 @@ function at(t, n, r, i, a, l) {
|
|
|
1785
1838
|
expanded: n,
|
|
1786
1839
|
index: r
|
|
1787
1840
|
})]),
|
|
1788
|
-
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}`, {
|
|
1789
1842
|
key: 0,
|
|
1790
1843
|
item: e,
|
|
1791
1844
|
expanded: n,
|
|
@@ -1805,7 +1858,7 @@ function at(t, n, r, i, a, l) {
|
|
|
1805
1858
|
"disabled"
|
|
1806
1859
|
]))), 128)) : s("", !0)], 2);
|
|
1807
1860
|
}
|
|
1808
|
-
var
|
|
1861
|
+
var mt = /* @__PURE__ */ q({
|
|
1809
1862
|
name: "w-accordion",
|
|
1810
1863
|
mixins: [X],
|
|
1811
1864
|
props: {
|
|
@@ -1873,7 +1926,7 @@ var ot = /* @__PURE__ */ K({
|
|
|
1873
1926
|
default: !1
|
|
1874
1927
|
}
|
|
1875
1928
|
},
|
|
1876
|
-
components: { WAccordionItem:
|
|
1929
|
+
components: { WAccordionItem: ft },
|
|
1877
1930
|
emits: [
|
|
1878
1931
|
"input",
|
|
1879
1932
|
"update:modelValue",
|
|
@@ -1930,7 +1983,7 @@ var ot = /* @__PURE__ */ K({
|
|
|
1930
1983
|
},
|
|
1931
1984
|
methods: {
|
|
1932
1985
|
hasAccordionItemVNodes(t = []) {
|
|
1933
|
-
return t.some((t) => t ? t.type ===
|
|
1986
|
+
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
1987
|
},
|
|
1935
1988
|
getAccordionItem(e) {
|
|
1936
1989
|
return this.accordionItemsById[e];
|
|
@@ -1961,7 +2014,7 @@ var ot = /* @__PURE__ */ K({
|
|
|
1961
2014
|
}
|
|
1962
2015
|
},
|
|
1963
2016
|
created() {
|
|
1964
|
-
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");
|
|
1965
2018
|
},
|
|
1966
2019
|
unmounted() {
|
|
1967
2020
|
this.accordionItems = [];
|
|
@@ -1973,8 +2026,8 @@ var ot = /* @__PURE__ */ K({
|
|
|
1973
2026
|
}
|
|
1974
2027
|
e.forEach((e, t) => (this.accordionItems[t] || {})._expanded = e);
|
|
1975
2028
|
} }
|
|
1976
|
-
}, [["render",
|
|
1977
|
-
function
|
|
2029
|
+
}, [["render", pt]]), ht = { class: "w-alert__content" };
|
|
2030
|
+
function gt(t, n, r, i, a, u) {
|
|
1978
2031
|
let f = E("w-icon"), p = E("w-button");
|
|
1979
2032
|
return a.show ? (b(), c("div", {
|
|
1980
2033
|
key: 0,
|
|
@@ -1984,10 +2037,10 @@ function ct(t, n, r, i, a, u) {
|
|
|
1984
2037
|
key: 0,
|
|
1985
2038
|
class: "w-alert__icon"
|
|
1986
2039
|
}, {
|
|
1987
|
-
default:
|
|
2040
|
+
default: j(() => [d(O(u.type ? u.typeIcon : r.icon), 1)]),
|
|
1988
2041
|
_: 1
|
|
1989
2042
|
})) : s("", !0),
|
|
1990
|
-
l("div",
|
|
2043
|
+
l("div", ht, [T(t.$slots, "default")]),
|
|
1991
2044
|
r.dismiss ? (b(), o(p, {
|
|
1992
2045
|
key: 1,
|
|
1993
2046
|
class: "w-alert__dismiss",
|
|
@@ -2001,7 +2054,7 @@ function ct(t, n, r, i, a, u) {
|
|
|
2001
2054
|
})) : s("", !0)
|
|
2002
2055
|
], 64)) : T(t.$slots, "default", { key: 1 })], 2)) : s("", !0);
|
|
2003
2056
|
}
|
|
2004
|
-
var
|
|
2057
|
+
var _t = /* @__PURE__ */ q({
|
|
2005
2058
|
name: "w-alert",
|
|
2006
2059
|
props: {
|
|
2007
2060
|
modelValue: { default: !0 },
|
|
@@ -2079,7 +2132,7 @@ var lt = /* @__PURE__ */ K({
|
|
|
2079
2132
|
watch: { modelValue(e) {
|
|
2080
2133
|
this.show = e;
|
|
2081
2134
|
} }
|
|
2082
|
-
}, [["render",
|
|
2135
|
+
}, [["render", gt]]);
|
|
2083
2136
|
//#endregion
|
|
2084
2137
|
//#region src/wave-ui/mixins/form-elements.js
|
|
2085
2138
|
function Z() {
|
|
@@ -2131,19 +2184,27 @@ var Q = {
|
|
|
2131
2184
|
methods: { validate() {
|
|
2132
2185
|
this.$refs.formEl.validate(this);
|
|
2133
2186
|
} }
|
|
2134
|
-
}, $ = {
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2187
|
+
}, $ = {
|
|
2188
|
+
focusable: !0,
|
|
2189
|
+
methods: { focus() {
|
|
2190
|
+
if (!We(this)) return;
|
|
2191
|
+
let e = this.$options.focusTargetRef || "input", t = () => {
|
|
2192
|
+
let t = this.$refs[e];
|
|
2193
|
+
return t && J(t), !!t;
|
|
2194
|
+
};
|
|
2195
|
+
t() || this.$nextTick(() => {
|
|
2196
|
+
t() || this.$nextTick(() => t());
|
|
2197
|
+
});
|
|
2198
|
+
} }
|
|
2199
|
+
}, vt = ["for"], yt = ["innerHTML"], bt = ["innerHTML"], xt = [
|
|
2139
2200
|
"id",
|
|
2140
2201
|
"value",
|
|
2141
2202
|
"name",
|
|
2142
2203
|
"disabled",
|
|
2143
2204
|
"readonly",
|
|
2144
2205
|
"tabindex"
|
|
2145
|
-
],
|
|
2146
|
-
function
|
|
2206
|
+
], St = ["for"], Ct = ["innerHTML"], wt = ["innerHTML"], Tt = ["for"];
|
|
2207
|
+
function Et(t, n, r, i, a, u) {
|
|
2147
2208
|
let p = E("w-icon"), m = E("w-button"), g = E("w-list"), v = E("w-menu");
|
|
2148
2209
|
return b(), o(D(t.formRegister ? "w-form-element" : "div"), h({ ref: "formEl" }, t.formRegister && {
|
|
2149
2210
|
validators: t.validators,
|
|
@@ -2160,12 +2221,12 @@ function vt(t, n, r, i, a, u) {
|
|
|
2160
2221
|
class: u.classes,
|
|
2161
2222
|
style: t.$attrs.style
|
|
2162
2223
|
}), {
|
|
2163
|
-
default:
|
|
2224
|
+
default: j(() => [
|
|
2164
2225
|
r.labelPosition === "left" ? (b(), c(e, { key: 0 }, [t.$slots.default || r.label ? (b(), c("label", {
|
|
2165
2226
|
key: 0,
|
|
2166
2227
|
class: _(["w-autocomplete__label w-autocomplete__label--left w-form-el-shakable", t.labelClasses]),
|
|
2167
2228
|
for: t.inputId
|
|
2168
|
-
}, [T(t.$slots, "default", {}, () => [d(O(r.label), 1)])], 10,
|
|
2229
|
+
}, [T(t.$slots, "default", {}, () => [d(O(r.label), 1)])], 10, vt)) : s("", !0)], 64)) : s("", !0),
|
|
2169
2230
|
f(v, h({
|
|
2170
2231
|
ref: "menu",
|
|
2171
2232
|
modelValue: t.menuOpen,
|
|
@@ -2178,7 +2239,7 @@ function vt(t, n, r, i, a, u) {
|
|
|
2178
2239
|
custom: "",
|
|
2179
2240
|
"min-width": "activator"
|
|
2180
2241
|
}, u.menuPropsComputed), {
|
|
2181
|
-
content:
|
|
2242
|
+
content: j(() => [l("div", {
|
|
2182
2243
|
class: "w-autocomplete__list-wrap",
|
|
2183
2244
|
ref: "listWrap",
|
|
2184
2245
|
onMousedownCapture: n[4] ||= (e) => t.menuIsBeingClicked = !0,
|
|
@@ -2198,10 +2259,10 @@ function vt(t, n, r, i, a, u) {
|
|
|
2198
2259
|
"selection-color": r.color,
|
|
2199
2260
|
onItemSelect: u.onListItemSelect
|
|
2200
2261
|
}, {
|
|
2201
|
-
item:
|
|
2262
|
+
item: j(({ item: e }) => [T(t.$slots, "item", {
|
|
2202
2263
|
item: e,
|
|
2203
2264
|
highlighted: t.highlightedItem === e.uid
|
|
2204
|
-
}, () => [l("span", { innerHTML: e[r.itemLabelKey] }, null, 8,
|
|
2265
|
+
}, () => [l("span", { innerHTML: e[r.itemLabelKey] }, null, 8, Ct)])]),
|
|
2205
2266
|
_: 3
|
|
2206
2267
|
}, 8, [
|
|
2207
2268
|
"items",
|
|
@@ -2217,14 +2278,14 @@ function vt(t, n, r, i, a, u) {
|
|
|
2217
2278
|
}, [T(t.$slots, "no-match", {}, () => [l("div", {
|
|
2218
2279
|
class: "caption",
|
|
2219
2280
|
innerHTML: r.noMatch ?? "No match."
|
|
2220
|
-
}, null, 8,
|
|
2281
|
+
}, null, 8, wt)])], 2)),
|
|
2221
2282
|
t.$slots["extra-item"] ? (b(), c("div", {
|
|
2222
2283
|
key: 2,
|
|
2223
2284
|
class: _(["w-autocomplete__extra-item", { highlighted: t.highlightedItem === "extra-item" }]),
|
|
2224
|
-
onClick: n[3] ||=
|
|
2285
|
+
onClick: n[3] ||= P((...e) => u.selectExtraItem && u.selectExtraItem(...e), ["stop"])
|
|
2225
2286
|
}, [T(t.$slots, "extra-item")], 2)) : s("", !0)
|
|
2226
2287
|
], 544)]),
|
|
2227
|
-
default:
|
|
2288
|
+
default: j(() => [l("div", {
|
|
2228
2289
|
class: _(["w-autocomplete__input-wrap", u.inputWrapClasses]),
|
|
2229
2290
|
onClick: n[2] ||= (e) => !t.isDisabled && !t.isReadonly && u.onWrapClick()
|
|
2230
2291
|
}, [
|
|
@@ -2233,9 +2294,9 @@ function vt(t, n, r, i, a, u) {
|
|
|
2233
2294
|
class: "w-autocomplete__icon w-autocomplete__icon--inner-left",
|
|
2234
2295
|
tag: "label",
|
|
2235
2296
|
for: t.inputId,
|
|
2236
|
-
onClick: n[0] ||=
|
|
2297
|
+
onClick: n[0] ||= P((e) => t.$emit("click:inner-icon-left", e), ["stop"])
|
|
2237
2298
|
}, {
|
|
2238
|
-
default:
|
|
2299
|
+
default: j(() => [d(O(r.innerIconLeft), 1)]),
|
|
2239
2300
|
_: 1
|
|
2240
2301
|
}, 8, ["for"])) : s("", !0)]),
|
|
2241
2302
|
t.selection.length ? (b(!0), c(e, { key: 0 }, w(t.selection, (e, n) => (b(), c("div", {
|
|
@@ -2244,8 +2305,8 @@ function vt(t, n, r, i, a, u) {
|
|
|
2244
2305
|
}, [T(t.$slots, "selection", {
|
|
2245
2306
|
item: e,
|
|
2246
2307
|
unselect: () => u.unselectItem(n)
|
|
2247
|
-
}, () => [l("span", { innerHTML: e[r.itemLabelKey] }, null, 8,
|
|
2248
|
-
onClick:
|
|
2308
|
+
}, () => [l("span", { innerHTML: e[r.itemLabelKey] }, null, 8, yt), f(m, {
|
|
2309
|
+
onClick: P((e) => u.unselectItem(n), ["stop"]),
|
|
2249
2310
|
icon: "wi-cross",
|
|
2250
2311
|
xs: "",
|
|
2251
2312
|
text: "",
|
|
@@ -2255,7 +2316,7 @@ function vt(t, n, r, i, a, u) {
|
|
|
2255
2316
|
key: 1,
|
|
2256
2317
|
class: "w-autocomplete__placeholder",
|
|
2257
2318
|
innerHTML: r.placeholder
|
|
2258
|
-
}, null, 8,
|
|
2319
|
+
}, null, 8, bt)) : s("", !0),
|
|
2259
2320
|
l("input", h({
|
|
2260
2321
|
class: "w-autocomplete__input",
|
|
2261
2322
|
ref: "input",
|
|
@@ -2265,20 +2326,20 @@ function vt(t, n, r, i, a, u) {
|
|
|
2265
2326
|
disabled: t.isDisabled || null,
|
|
2266
2327
|
readonly: t.isReadonly || null,
|
|
2267
2328
|
tabindex: t.tabindex || null
|
|
2268
|
-
}, k(u.inputEventListeners, !0), u.inputAttrs), null, 16,
|
|
2329
|
+
}, k(u.inputEventListeners, !0), u.inputAttrs), null, 16, xt),
|
|
2269
2330
|
r.labelPosition === "inside" && u.showLabelInside ? (b(), c(e, { key: 2 }, [t.$slots.default || r.label ? (b(), c("label", {
|
|
2270
2331
|
key: 0,
|
|
2271
2332
|
class: _(["w-autocomplete__label w-autocomplete__label--inside w-form-el-shakable", t.labelClasses]),
|
|
2272
2333
|
for: t.inputId
|
|
2273
|
-
}, [T(t.$slots, "default", {}, () => [d(O(r.label), 1)])], 10,
|
|
2334
|
+
}, [T(t.$slots, "default", {}, () => [d(O(r.label), 1)])], 10, St)) : s("", !0)], 64)) : s("", !0),
|
|
2274
2335
|
T(t.$slots, "icon-right", {}, () => [r.innerIconRight ? (b(), o(p, {
|
|
2275
2336
|
key: 0,
|
|
2276
2337
|
class: "w-autocomplete__icon w-autocomplete__icon--inner-right",
|
|
2277
2338
|
tag: "label",
|
|
2278
2339
|
for: t.inputId,
|
|
2279
|
-
onClick: n[1] ||=
|
|
2340
|
+
onClick: n[1] ||= P((e) => t.$emit("click:inner-icon-right", e), ["stop"])
|
|
2280
2341
|
}, {
|
|
2281
|
-
default:
|
|
2342
|
+
default: j(() => [d(O(r.innerIconRight), 1)]),
|
|
2282
2343
|
_: 1
|
|
2283
2344
|
}, 8, ["for"])) : s("", !0)])
|
|
2284
2345
|
], 2)]),
|
|
@@ -2293,7 +2354,7 @@ function vt(t, n, r, i, a, u) {
|
|
|
2293
2354
|
key: 0,
|
|
2294
2355
|
class: _(["w-autocomplete__label w-autocomplete__label--right w-form-el-shakable", t.labelClasses]),
|
|
2295
2356
|
for: t.inputId
|
|
2296
|
-
}, [T(t.$slots, "default", {}, () => [d(O(r.label), 1)])], 10,
|
|
2357
|
+
}, [T(t.$slots, "default", {}, () => [d(O(r.label), 1)])], 10, Tt)) : s("", !0)], 64)) : s("", !0)
|
|
2297
2358
|
]),
|
|
2298
2359
|
_: 3
|
|
2299
2360
|
}, 16, [
|
|
@@ -2304,7 +2365,7 @@ function vt(t, n, r, i, a, u) {
|
|
|
2304
2365
|
"style"
|
|
2305
2366
|
]);
|
|
2306
2367
|
}
|
|
2307
|
-
var
|
|
2368
|
+
var Dt = /* @__PURE__ */ q({
|
|
2308
2369
|
name: "w-autocomplete",
|
|
2309
2370
|
expose: ["focus"],
|
|
2310
2371
|
mixins: [Q, $],
|
|
@@ -2599,10 +2660,10 @@ var yt = /* @__PURE__ */ K({
|
|
|
2599
2660
|
this.menuOpen && e.length !== t.length && this.$nextTick(() => this.$refs.menu?.computeDetachableCoords());
|
|
2600
2661
|
}
|
|
2601
2662
|
}
|
|
2602
|
-
}, [["render",
|
|
2603
|
-
function
|
|
2604
|
-
return b(), c("div",
|
|
2605
|
-
default:
|
|
2663
|
+
}, [["render", Et]]), Ot = { class: "w-badge-wrap" };
|
|
2664
|
+
function kt(e, t, n, i, a, o) {
|
|
2665
|
+
return b(), c("div", Ot, [T(e.$slots, "default"), f(r, { name: `${n.transition}` }, {
|
|
2666
|
+
default: j(() => [n.modelValue ? (b(), c("div", {
|
|
2606
2667
|
key: 0,
|
|
2607
2668
|
class: _(["w-badge", o.classes]),
|
|
2608
2669
|
style: y(o.styles),
|
|
@@ -2614,7 +2675,7 @@ function xt(e, t, n, i, a, o) {
|
|
|
2614
2675
|
_: 3
|
|
2615
2676
|
}, 8, ["name"])]);
|
|
2616
2677
|
}
|
|
2617
|
-
var
|
|
2678
|
+
var At = /* @__PURE__ */ q({
|
|
2618
2679
|
name: "w-badge",
|
|
2619
2680
|
props: {
|
|
2620
2681
|
modelValue: { default: !0 },
|
|
@@ -2680,8 +2741,8 @@ var St = /* @__PURE__ */ K({
|
|
|
2680
2741
|
return this.forcedSize && `font-size: ${this.forcedSize}`;
|
|
2681
2742
|
}
|
|
2682
2743
|
}
|
|
2683
|
-
}, [["render",
|
|
2684
|
-
function
|
|
2744
|
+
}, [["render", kt]]), jt = ["innerHTML"];
|
|
2745
|
+
function Mt(t, n, r, i, a, l) {
|
|
2685
2746
|
let u = E("w-icon");
|
|
2686
2747
|
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
2748
|
class: _(["w-breadcrumbs__separator", r.separatorColor]),
|
|
@@ -2690,7 +2751,7 @@ function wt(t, n, r, i, a, l) {
|
|
|
2690
2751
|
class: _(["w-breadcrumbs__separator", r.separatorColor]),
|
|
2691
2752
|
key: `${i}b`
|
|
2692
2753
|
}, {
|
|
2693
|
-
default:
|
|
2754
|
+
default: j(() => [d(O(r.icon), 1)]),
|
|
2694
2755
|
_: 1
|
|
2695
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"), {
|
|
2696
2757
|
class: _(["w-breadcrumbs__item", l.breadcrumbLinkClasses]),
|
|
@@ -2699,7 +2760,7 @@ function wt(t, n, r, i, a, l) {
|
|
|
2699
2760
|
href: n[r.itemRouteKey],
|
|
2700
2761
|
onPointerdown: t.onRipple
|
|
2701
2762
|
}, {
|
|
2702
|
-
default:
|
|
2763
|
+
default: j(() => [T(t.$slots, "item", {
|
|
2703
2764
|
item: n,
|
|
2704
2765
|
index: i + 1,
|
|
2705
2766
|
isLast: i === r.items.length - 1
|
|
@@ -2731,9 +2792,9 @@ function wt(t, n, r, i, a, l) {
|
|
|
2731
2792
|
}) : (b(), c("span", {
|
|
2732
2793
|
key: `${i}f`,
|
|
2733
2794
|
innerHTML: n[r.itemLabelKey]
|
|
2734
|
-
}, null, 8,
|
|
2795
|
+
}, null, 8, jt))], 64))), 256))], 2);
|
|
2735
2796
|
}
|
|
2736
|
-
var
|
|
2797
|
+
var Nt = /* @__PURE__ */ q({
|
|
2737
2798
|
name: "w-breadcrumbs",
|
|
2738
2799
|
mixins: [X],
|
|
2739
2800
|
props: {
|
|
@@ -2780,11 +2841,11 @@ var Tt = /* @__PURE__ */ K({
|
|
|
2780
2841
|
return { [`size--${this.size}`]: !0 };
|
|
2781
2842
|
}
|
|
2782
2843
|
}
|
|
2783
|
-
}, [["render",
|
|
2844
|
+
}, [["render", Mt]]), Pt = {
|
|
2784
2845
|
key: 0,
|
|
2785
2846
|
class: "w-button__loader"
|
|
2786
2847
|
};
|
|
2787
|
-
function
|
|
2848
|
+
function Ft(e, t, n, i, a, u) {
|
|
2788
2849
|
let p = E("w-icon");
|
|
2789
2850
|
return b(), o(D(!n.disabled && n.route ? "a" : "button"), h({
|
|
2790
2851
|
class: ["w-button", u.classes],
|
|
@@ -2795,11 +2856,11 @@ function Dt(e, t, n, i, a, u) {
|
|
|
2795
2856
|
style: u.styles,
|
|
2796
2857
|
onPointerdown: u.onPointerDownRipple
|
|
2797
2858
|
}), {
|
|
2798
|
-
default:
|
|
2799
|
-
default:
|
|
2859
|
+
default: j(() => [n.icon ? (b(), o(p, v(h({ key: 0 }, n.iconProps || {})), {
|
|
2860
|
+
default: j(() => [d(O(n.icon), 1)]),
|
|
2800
2861
|
_: 1
|
|
2801
2862
|
}, 16)) : T(e.$slots, "default", { key: 1 }), f(r, { name: "scale-fade" }, {
|
|
2802
|
-
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", {
|
|
2803
2864
|
cx: "20",
|
|
2804
2865
|
cy: "20",
|
|
2805
2866
|
r: "18",
|
|
@@ -2820,7 +2881,7 @@ function Dt(e, t, n, i, a, u) {
|
|
|
2820
2881
|
"onPointerdown"
|
|
2821
2882
|
]);
|
|
2822
2883
|
}
|
|
2823
|
-
var
|
|
2884
|
+
var It = /* @__PURE__ */ q({
|
|
2824
2885
|
inheritAttrs: !1,
|
|
2825
2886
|
mixins: [X],
|
|
2826
2887
|
props: {
|
|
@@ -2923,13 +2984,13 @@ var Ot = /* @__PURE__ */ K({
|
|
|
2923
2984
|
};
|
|
2924
2985
|
}
|
|
2925
2986
|
}
|
|
2926
|
-
}, [["render",
|
|
2927
|
-
function
|
|
2987
|
+
}, [["render", Ft]]), Lt = ["innerHTML"];
|
|
2988
|
+
function Rt(e, t, n, r, i, a) {
|
|
2928
2989
|
let s = E("button-partial");
|
|
2929
2990
|
return n.tooltip ? (b(), o(D("w-tooltip"), v(h({ key: 0 }, n.tooltipProps)), {
|
|
2930
|
-
tooltip:
|
|
2931
|
-
default:
|
|
2932
|
-
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")]),
|
|
2933
2994
|
_: 3
|
|
2934
2995
|
}, 16)]),
|
|
2935
2996
|
_: 3
|
|
@@ -2937,13 +2998,14 @@ function At(e, t, n, r, i, a) {
|
|
|
2937
2998
|
key: 1,
|
|
2938
2999
|
ref: "button"
|
|
2939
3000
|
}, a.buttonProps), {
|
|
2940
|
-
loading:
|
|
2941
|
-
default:
|
|
3001
|
+
loading: j(() => [T(e.$slots, "loading")]),
|
|
3002
|
+
default: j(() => [T(e.$slots, "default")]),
|
|
2942
3003
|
_: 3
|
|
2943
3004
|
}, 16));
|
|
2944
3005
|
}
|
|
2945
|
-
var
|
|
3006
|
+
var zt = /* @__PURE__ */ q({
|
|
2946
3007
|
name: "w-button",
|
|
3008
|
+
focusable: !0,
|
|
2947
3009
|
expose: ["focus"],
|
|
2948
3010
|
inheritAttrs: !1,
|
|
2949
3011
|
props: {
|
|
@@ -2995,7 +3057,7 @@ var jt = /* @__PURE__ */ K({
|
|
|
2995
3057
|
default: void 0
|
|
2996
3058
|
}
|
|
2997
3059
|
},
|
|
2998
|
-
components: { ButtonPartial:
|
|
3060
|
+
components: { ButtonPartial: It },
|
|
2999
3061
|
emits: [],
|
|
3000
3062
|
computed: { buttonProps() {
|
|
3001
3063
|
let { tooltip: e, tooltipProps: t = {}, ...n } = this.$props;
|
|
@@ -3005,10 +3067,10 @@ var jt = /* @__PURE__ */ K({
|
|
|
3005
3067
|
};
|
|
3006
3068
|
} },
|
|
3007
3069
|
methods: { focus() {
|
|
3008
|
-
this.disabled ||
|
|
3070
|
+
this.disabled || J(this.$refs.button?.$el);
|
|
3009
3071
|
} }
|
|
3010
|
-
}, [["render",
|
|
3011
|
-
function
|
|
3072
|
+
}, [["render", Rt]]), Bt = ["innerHTML"];
|
|
3073
|
+
function Vt(e, t, n, r, i, a) {
|
|
3012
3074
|
let u = E("w-image");
|
|
3013
3075
|
return b(), c("div", { class: _(["w-card", a.classes]) }, [
|
|
3014
3076
|
e.$slots.title ? (b(), c("div", {
|
|
@@ -3024,13 +3086,13 @@ function Nt(e, t, n, r, i, a) {
|
|
|
3024
3086
|
...a.titleClasses
|
|
3025
3087
|
}]),
|
|
3026
3088
|
innerHTML: n.title
|
|
3027
|
-
}, null, 10,
|
|
3089
|
+
}, null, 10, Bt)) : s("", !0),
|
|
3028
3090
|
n.image ? (b(), o(u, h({
|
|
3029
3091
|
key: 2,
|
|
3030
3092
|
class: "w-card__image",
|
|
3031
3093
|
src: n.image
|
|
3032
3094
|
}, a.imgProps), {
|
|
3033
|
-
default:
|
|
3095
|
+
default: j(() => [T(e.$slots, "image-content")]),
|
|
3034
3096
|
_: 3
|
|
3035
3097
|
}, 16, ["src"])) : s("", !0),
|
|
3036
3098
|
l("div", { class: _(["w-card__content", a.contentClasses]) }, [T(e.$slots, "default")], 2),
|
|
@@ -3040,7 +3102,7 @@ function Nt(e, t, n, r, i, a) {
|
|
|
3040
3102
|
}, [T(e.$slots, "actions")], 2)) : s("", !0)
|
|
3041
3103
|
], 2);
|
|
3042
3104
|
}
|
|
3043
|
-
var
|
|
3105
|
+
var Ht = /* @__PURE__ */ q({
|
|
3044
3106
|
name: "w-card",
|
|
3045
3107
|
props: {
|
|
3046
3108
|
color: { type: String },
|
|
@@ -3100,7 +3162,7 @@ var Pt = /* @__PURE__ */ K({
|
|
|
3100
3162
|
};
|
|
3101
3163
|
}
|
|
3102
3164
|
}
|
|
3103
|
-
}, [["render",
|
|
3165
|
+
}, [["render", Vt]]), Ut = [
|
|
3104
3166
|
"id",
|
|
3105
3167
|
"name",
|
|
3106
3168
|
"checked",
|
|
@@ -3108,8 +3170,8 @@ var Pt = /* @__PURE__ */ K({
|
|
|
3108
3170
|
"required",
|
|
3109
3171
|
"tabindex",
|
|
3110
3172
|
"aria-checked"
|
|
3111
|
-
],
|
|
3112
|
-
function
|
|
3173
|
+
], Wt = ["for"], Gt = ["for", "innerHTML"], Kt = ["for"], qt = ["for", "innerHTML"];
|
|
3174
|
+
function Jt(t, n, r, i, a, u) {
|
|
3113
3175
|
return b(), o(D(t.formRegister && !u.wCheckboxes ? "w-form-element" : "div"), h({ ref: "formEl" }, t.formRegister && {
|
|
3114
3176
|
validators: t.validators,
|
|
3115
3177
|
inputValue: a.isChecked,
|
|
@@ -3124,7 +3186,7 @@ function Bt(t, n, r, i, a, u) {
|
|
|
3124
3186
|
},
|
|
3125
3187
|
class: u.classes
|
|
3126
3188
|
}), {
|
|
3127
|
-
default:
|
|
3189
|
+
default: j(() => [
|
|
3128
3190
|
l("input", {
|
|
3129
3191
|
ref: "input",
|
|
3130
3192
|
id: t.inputId,
|
|
@@ -3137,20 +3199,20 @@ function Bt(t, n, r, i, a, u) {
|
|
|
3137
3199
|
onFocus: n[0] ||= (e) => t.$emit("focus", e),
|
|
3138
3200
|
onBlur: n[1] ||= (e) => t.$emit("blur", e),
|
|
3139
3201
|
onChange: n[2] ||= (e) => u.onInput(),
|
|
3140
|
-
onKeypress: n[3] ||=
|
|
3202
|
+
onKeypress: n[3] ||= N((...e) => u.onInput && u.onInput(...e), ["enter"]),
|
|
3141
3203
|
"aria-checked": a.isChecked || "false",
|
|
3142
3204
|
role: "checkbox"
|
|
3143
|
-
}, null, 40,
|
|
3205
|
+
}, null, 40, Ut),
|
|
3144
3206
|
u.hasLabel && r.labelOnLeft ? (b(), c(e, { key: 0 }, [t.$slots.default ? (b(), c("label", {
|
|
3145
3207
|
key: 0,
|
|
3146
3208
|
class: _(["w-checkbox__label w-form-el-shakable pr2", t.labelClasses]),
|
|
3147
3209
|
for: t.inputId
|
|
3148
|
-
}, [T(t.$slots, "default", {}, () => [d(O(r.label), 1)])], 10,
|
|
3210
|
+
}, [T(t.$slots, "default", {}, () => [d(O(r.label), 1)])], 10, Wt)) : r.label ? (b(), c("label", {
|
|
3149
3211
|
key: 1,
|
|
3150
3212
|
class: _(["w-checkbox__label w-form-el-shakable pr2", t.labelClasses]),
|
|
3151
3213
|
for: t.inputId,
|
|
3152
3214
|
innerHTML: r.label
|
|
3153
|
-
}, null, 10,
|
|
3215
|
+
}, null, 10, Gt)) : s("", !0)], 64)) : s("", !0),
|
|
3154
3216
|
l("div", {
|
|
3155
3217
|
class: _(["w-checkbox__input", this.color]),
|
|
3156
3218
|
onClick: n[4] ||= (e) => {
|
|
@@ -3161,17 +3223,17 @@ function Bt(t, n, r, i, a, u) {
|
|
|
3161
3223
|
key: 0,
|
|
3162
3224
|
class: _(["w-checkbox__label w-form-el-shakable pl2", t.labelClasses]),
|
|
3163
3225
|
for: t.inputId
|
|
3164
|
-
}, [T(t.$slots, "default", {}, () => [d(O(r.label), 1)])], 10,
|
|
3226
|
+
}, [T(t.$slots, "default", {}, () => [d(O(r.label), 1)])], 10, Kt)) : r.label ? (b(), c("label", {
|
|
3165
3227
|
key: 1,
|
|
3166
3228
|
class: _(["w-checkbox__label w-form-el-shakable pl2", t.labelClasses]),
|
|
3167
3229
|
for: t.inputId,
|
|
3168
3230
|
innerHTML: r.label
|
|
3169
|
-
}, null, 10,
|
|
3231
|
+
}, null, 10, qt)) : s("", !0)], 64)) : s("", !0)
|
|
3170
3232
|
]),
|
|
3171
3233
|
_: 3
|
|
3172
3234
|
}, 16, ["valid", "class"]);
|
|
3173
3235
|
}
|
|
3174
|
-
var
|
|
3236
|
+
var Yt = /* @__PURE__ */ q({
|
|
3175
3237
|
name: "w-checkbox",
|
|
3176
3238
|
expose: ["focus"],
|
|
3177
3239
|
mixins: [Q, $],
|
|
@@ -3251,8 +3313,8 @@ var Vt = /* @__PURE__ */ K({
|
|
|
3251
3313
|
watch: { modelValue(e) {
|
|
3252
3314
|
this.isChecked = e;
|
|
3253
3315
|
} }
|
|
3254
|
-
}, [["render",
|
|
3255
|
-
function
|
|
3316
|
+
}, [["render", Jt]]), Xt = ["innerHTML"];
|
|
3317
|
+
function Zt(t, n, r, i, a, l) {
|
|
3256
3318
|
let u = E("w-checkbox");
|
|
3257
3319
|
return b(), o(D(t.formRegister ? "w-form-element" : "div"), h({ ref: "formEl" }, t.formRegister && {
|
|
3258
3320
|
validators: t.validators,
|
|
@@ -3267,7 +3329,7 @@ function Ut(t, n, r, i, a, l) {
|
|
|
3267
3329
|
wrap: r.inline,
|
|
3268
3330
|
class: l.classes
|
|
3269
3331
|
}), {
|
|
3270
|
-
default:
|
|
3332
|
+
default: j(() => [(b(!0), c(e, null, w(l.checkboxItems, (e, i) => (b(), o(u, h({
|
|
3271
3333
|
ref_for: !0,
|
|
3272
3334
|
ref: "item",
|
|
3273
3335
|
key: i,
|
|
@@ -3286,7 +3348,7 @@ function Ut(t, n, r, i, a, l) {
|
|
|
3286
3348
|
readonly: t.isReadonly || null,
|
|
3287
3349
|
class: { mt1: !r.inline && i }
|
|
3288
3350
|
}), {
|
|
3289
|
-
default:
|
|
3351
|
+
default: j(() => [t.$slots[`item.${i + 1}`] || t.$slots.item ? T(t.$slots, t.$slots[`item.${i + 1}`] ? `item.${i + 1}` : "item", {
|
|
3290
3352
|
key: 0,
|
|
3291
3353
|
item: l.getOriginalItem(e),
|
|
3292
3354
|
checked: !!e._isChecked,
|
|
@@ -3295,7 +3357,7 @@ function Ut(t, n, r, i, a, l) {
|
|
|
3295
3357
|
}) : e.label ? (b(), c("div", {
|
|
3296
3358
|
key: 1,
|
|
3297
3359
|
innerHTML: e.label
|
|
3298
|
-
}, null, 8,
|
|
3360
|
+
}, null, 8, Xt)) : s("", !0)]),
|
|
3299
3361
|
_: 2
|
|
3300
3362
|
}, 1040, [
|
|
3301
3363
|
"model-value",
|
|
@@ -3314,8 +3376,9 @@ function Ut(t, n, r, i, a, l) {
|
|
|
3314
3376
|
"class"
|
|
3315
3377
|
]);
|
|
3316
3378
|
}
|
|
3317
|
-
var
|
|
3379
|
+
var Qt = /* @__PURE__ */ q({
|
|
3318
3380
|
name: "w-checkboxes",
|
|
3381
|
+
focusable: !0,
|
|
3319
3382
|
expose: ["focus"],
|
|
3320
3383
|
mixins: [Q],
|
|
3321
3384
|
setup() {
|
|
@@ -3392,7 +3455,7 @@ var Wt = /* @__PURE__ */ K({
|
|
|
3392
3455
|
},
|
|
3393
3456
|
methods: {
|
|
3394
3457
|
focus() {
|
|
3395
|
-
|
|
3458
|
+
We(this) && [].concat(this.$refs.item || []).filter(Boolean).find((e) => !e.isDisabled && !e.isReadonly)?.focus?.();
|
|
3396
3459
|
},
|
|
3397
3460
|
reset() {
|
|
3398
3461
|
this.checkboxItems.forEach((e) => e._isChecked = null), this.$emit("update:modelValue", []), this.$emit("input", []);
|
|
@@ -3406,50 +3469,50 @@ var Wt = /* @__PURE__ */ K({
|
|
|
3406
3469
|
return this.items[e._index];
|
|
3407
3470
|
}
|
|
3408
3471
|
}
|
|
3409
|
-
}, [["render",
|
|
3472
|
+
}, [["render", Zt]]);
|
|
3410
3473
|
//#endregion
|
|
3411
3474
|
//#region src/wave-ui/components/w-confirm.vue?vue&type=template&lang.js
|
|
3412
|
-
function
|
|
3475
|
+
function $t(e, t, n, r, i, a) {
|
|
3413
3476
|
let c = E("w-button"), u = E("w-flex"), p = E("w-menu"), m = ne("focus");
|
|
3414
3477
|
return b(), o(p, h({
|
|
3415
3478
|
modelValue: e.showPopup,
|
|
3416
3479
|
"onUpdate:modelValue": t[2] ||= (t) => e.showPopup = t
|
|
3417
3480
|
}, a.wMenuProps, { disable: n.disablePrompt }), {
|
|
3418
|
-
content:
|
|
3481
|
+
content: j(() => [f(u, {
|
|
3419
3482
|
column: !n.inline,
|
|
3420
3483
|
"align-center": ""
|
|
3421
3484
|
}, {
|
|
3422
|
-
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({
|
|
3423
3486
|
key: 0,
|
|
3424
3487
|
class: "mr2"
|
|
3425
3488
|
}, a.cancelButtonProps, {
|
|
3426
3489
|
"bg-color": (a.cancelButton || {}).bgColor || "error",
|
|
3427
|
-
onKeyup: t[0] ||=
|
|
3490
|
+
onKeyup: t[0] ||= N((e) => !n.persistent && a.onCancel(), ["escape"]),
|
|
3428
3491
|
onClick: a.onCancel
|
|
3429
3492
|
}), {
|
|
3430
|
-
default:
|
|
3493
|
+
default: j(() => [T(e.$slots, "cancel", {}, () => [d(O(a.cancelButton.label), 1)])]),
|
|
3431
3494
|
_: 3
|
|
3432
|
-
}, 16, ["bg-color", "onClick"])),
|
|
3495
|
+
}, 16, ["bg-color", "onClick"])), M((b(), o(c, h(a.confirmButtonProps, {
|
|
3433
3496
|
"bg-color": (a.confirmButton || {}).bgColor || "success",
|
|
3434
|
-
onKeyup: t[1] ||=
|
|
3497
|
+
onKeyup: t[1] ||= N((e) => !n.persistent && a.onCancel(), ["escape"]),
|
|
3435
3498
|
onClick: a.onConfirm
|
|
3436
3499
|
}), {
|
|
3437
|
-
default:
|
|
3500
|
+
default: j(() => [T(e.$slots, "confirm", {}, () => [d(O(a.confirmButton.label), 1)])]),
|
|
3438
3501
|
_: 3
|
|
3439
3502
|
}, 16, ["bg-color", "onClick"])), [[m]])], 2)]),
|
|
3440
3503
|
_: 3
|
|
3441
3504
|
}, 8, ["column"])]),
|
|
3442
|
-
default:
|
|
3505
|
+
default: j(() => [f(c, h({ class: "w-confirm" }, {
|
|
3443
3506
|
...e.$attrs,
|
|
3444
3507
|
...a.buttonProps
|
|
3445
3508
|
}), {
|
|
3446
|
-
default:
|
|
3509
|
+
default: j(() => [T(e.$slots, "default")]),
|
|
3447
3510
|
_: 3
|
|
3448
3511
|
}, 16)]),
|
|
3449
3512
|
_: 3
|
|
3450
3513
|
}, 16, ["modelValue", "disable"]);
|
|
3451
3514
|
}
|
|
3452
|
-
var
|
|
3515
|
+
var en = /* @__PURE__ */ q({
|
|
3453
3516
|
name: "w-confirm",
|
|
3454
3517
|
inheritAttrs: !1,
|
|
3455
3518
|
props: {
|
|
@@ -3575,16 +3638,16 @@ var Kt = /* @__PURE__ */ K({
|
|
|
3575
3638
|
this.$emit("confirm"), this.showPopup = !1;
|
|
3576
3639
|
}
|
|
3577
3640
|
}
|
|
3578
|
-
}, [["render",
|
|
3641
|
+
}, [["render", $t]]);
|
|
3579
3642
|
//#endregion
|
|
3580
3643
|
//#region src/wave-ui/components/w-date-picker.vue?vue&type=template&lang.js
|
|
3581
|
-
function
|
|
3644
|
+
function tn(e, t, n, r, i, a) {
|
|
3582
3645
|
return b(), c("div", {
|
|
3583
3646
|
class: _(["w-date-picker", a.classes]),
|
|
3584
3647
|
style: y(a.styles)
|
|
3585
3648
|
}, [T(e.$slots, "default")], 6);
|
|
3586
3649
|
}
|
|
3587
|
-
var
|
|
3650
|
+
var nn = /* @__PURE__ */ q({
|
|
3588
3651
|
name: "w-date-picker",
|
|
3589
3652
|
props: {
|
|
3590
3653
|
dark: { type: Boolean },
|
|
@@ -3602,10 +3665,10 @@ var Jt = /* @__PURE__ */ K({
|
|
|
3602
3665
|
return !1;
|
|
3603
3666
|
}
|
|
3604
3667
|
}
|
|
3605
|
-
}, [["render",
|
|
3668
|
+
}, [["render", tn]]);
|
|
3606
3669
|
//#endregion
|
|
3607
3670
|
//#region src/wave-ui/components/w-dialog.vue?vue&type=template&lang.js
|
|
3608
|
-
function
|
|
3671
|
+
function rn(e, t, n, i, a, s) {
|
|
3609
3672
|
let c = E("w-card"), l = E("w-overlay");
|
|
3610
3673
|
return b(), o(l, {
|
|
3611
3674
|
class: _(["w-dialog", s.classes]),
|
|
@@ -3618,12 +3681,12 @@ function Yt(e, t, n, i, a, s) {
|
|
|
3618
3681
|
"bg-color": n.overlayColor,
|
|
3619
3682
|
opacity: n.overlayOpacity
|
|
3620
3683
|
}, {
|
|
3621
|
-
default:
|
|
3684
|
+
default: j(() => [f(r, {
|
|
3622
3685
|
name: n.transition,
|
|
3623
3686
|
appear: "",
|
|
3624
3687
|
onAfterLeave: s.onBeforeClose
|
|
3625
3688
|
}, {
|
|
3626
|
-
default:
|
|
3689
|
+
default: j(() => [M(f(c, {
|
|
3627
3690
|
class: _(["w-dialog__content", n.dialogClass]),
|
|
3628
3691
|
ref: "dialog",
|
|
3629
3692
|
"no-border": "",
|
|
@@ -3634,15 +3697,15 @@ function Yt(e, t, n, i, a, s) {
|
|
|
3634
3697
|
title: n.title || void 0,
|
|
3635
3698
|
style: y(s.contentStyles)
|
|
3636
3699
|
}, u({
|
|
3637
|
-
default:
|
|
3700
|
+
default: j(() => [T(e.$slots, "default")]),
|
|
3638
3701
|
_: 2
|
|
3639
3702
|
}, [e.$slots.title ? {
|
|
3640
3703
|
name: "title",
|
|
3641
|
-
fn:
|
|
3704
|
+
fn: j(() => [T(e.$slots, "title")]),
|
|
3642
3705
|
key: "0"
|
|
3643
3706
|
} : void 0, e.$slots.actions ? {
|
|
3644
3707
|
name: "actions",
|
|
3645
|
-
fn:
|
|
3708
|
+
fn: j(() => [T(e.$slots, "actions")]),
|
|
3646
3709
|
key: "1"
|
|
3647
3710
|
} : void 0]), 1032, [
|
|
3648
3711
|
"color",
|
|
@@ -3652,7 +3715,7 @@ function Yt(e, t, n, i, a, s) {
|
|
|
3652
3715
|
"content-class",
|
|
3653
3716
|
"title",
|
|
3654
3717
|
"style"
|
|
3655
|
-
]), [[
|
|
3718
|
+
]), [[se, a.showContent]])]),
|
|
3656
3719
|
_: 3
|
|
3657
3720
|
}, 8, ["name", "onAfterLeave"])]),
|
|
3658
3721
|
_: 3
|
|
@@ -3667,7 +3730,7 @@ function Yt(e, t, n, i, a, s) {
|
|
|
3667
3730
|
"class"
|
|
3668
3731
|
]);
|
|
3669
3732
|
}
|
|
3670
|
-
var
|
|
3733
|
+
var an = /* @__PURE__ */ q({
|
|
3671
3734
|
name: "w-dialog",
|
|
3672
3735
|
expose: ["focus"],
|
|
3673
3736
|
props: {
|
|
@@ -3768,15 +3831,15 @@ var Xt = /* @__PURE__ */ K({
|
|
|
3768
3831
|
watch: { modelValue(e) {
|
|
3769
3832
|
this.showWrapper = e, this.showContent = e;
|
|
3770
3833
|
} }
|
|
3771
|
-
}, [["render",
|
|
3772
|
-
function
|
|
3834
|
+
}, [["render", rn]]), on = ["role", "aria-orientation"];
|
|
3835
|
+
function sn(e, t, n, r, i, a) {
|
|
3773
3836
|
return b(), c("div", {
|
|
3774
3837
|
class: _(["w-divider", a.classes]),
|
|
3775
3838
|
role: e.$slots.default ? null : "presentation",
|
|
3776
3839
|
"aria-orientation": n.vertical ? "vertical" : "horizontal"
|
|
3777
|
-
}, [T(e.$slots, "default")], 10,
|
|
3840
|
+
}, [T(e.$slots, "default")], 10, on);
|
|
3778
3841
|
}
|
|
3779
|
-
var
|
|
3842
|
+
var cn = /* @__PURE__ */ q({
|
|
3780
3843
|
name: "w-divider",
|
|
3781
3844
|
props: {
|
|
3782
3845
|
vertical: { type: Boolean },
|
|
@@ -3794,8 +3857,8 @@ var $t = /* @__PURE__ */ K({
|
|
|
3794
3857
|
"w-divider--light": this.light
|
|
3795
3858
|
};
|
|
3796
3859
|
} }
|
|
3797
|
-
}, [["render",
|
|
3798
|
-
function
|
|
3860
|
+
}, [["render", sn]]), ln = { class: "w-drawer-wrap__pushable" };
|
|
3861
|
+
function un(t, n, i, a, u, d) {
|
|
3799
3862
|
let p = E("w-overlay");
|
|
3800
3863
|
return u.showWrapper || i.pushContent ? (b(), c("div", {
|
|
3801
3864
|
key: 0,
|
|
@@ -3804,7 +3867,7 @@ function tn(t, n, i, a, u, d) {
|
|
|
3804
3867
|
key: 0,
|
|
3805
3868
|
class: "w-drawer-wrap__track",
|
|
3806
3869
|
style: y(d.trackStyles)
|
|
3807
|
-
}, [l("div",
|
|
3870
|
+
}, [l("div", ln, [i.noOverlay ? s("", !0) : (b(), o(p, {
|
|
3808
3871
|
key: 0,
|
|
3809
3872
|
ref: "overlay",
|
|
3810
3873
|
modelValue: u.showDrawer,
|
|
@@ -3825,15 +3888,15 @@ function tn(t, n, i, a, u, d) {
|
|
|
3825
3888
|
onBeforeLeave: d.onBeforeClose,
|
|
3826
3889
|
onAfterLeave: d.onClose
|
|
3827
3890
|
}, {
|
|
3828
|
-
default:
|
|
3891
|
+
default: j(() => [u.showDrawer ? (b(), o(D(i.tag || "aside"), {
|
|
3829
3892
|
key: 0,
|
|
3830
3893
|
class: _(["w-drawer", d.drawerClasses]),
|
|
3831
3894
|
ref: "drawer",
|
|
3832
3895
|
style: y(d.styles),
|
|
3833
3896
|
tabindex: i.noOverlay ? 0 : null,
|
|
3834
|
-
onKeydown: n[1] ||= P(
|
|
3897
|
+
onKeydown: n[1] ||= N(P((e) => i.noOverlay && !i.persistent && d.onOutsideClick(), ["stop"]), ["escape"])
|
|
3835
3898
|
}, {
|
|
3836
|
-
default:
|
|
3899
|
+
default: j(() => [T(t.$slots, "default")]),
|
|
3837
3900
|
_: 3
|
|
3838
3901
|
}, 40, [
|
|
3839
3902
|
"class",
|
|
@@ -3863,15 +3926,15 @@ function tn(t, n, i, a, u, d) {
|
|
|
3863
3926
|
onBeforeLeave: d.onBeforeClose,
|
|
3864
3927
|
onAfterLeave: d.onClose
|
|
3865
3928
|
}, {
|
|
3866
|
-
default:
|
|
3929
|
+
default: j(() => [u.showDrawer ? (b(), o(D(i.tag || "aside"), {
|
|
3867
3930
|
key: 0,
|
|
3868
3931
|
class: _(["w-drawer", d.drawerClasses]),
|
|
3869
3932
|
ref: "drawer",
|
|
3870
3933
|
style: y(d.styles),
|
|
3871
3934
|
tabindex: i.noOverlay ? 0 : null,
|
|
3872
|
-
onKeydown: n[3] ||= P(
|
|
3935
|
+
onKeydown: n[3] ||= N(P((e) => i.noOverlay && !i.persistent && d.onOutsideClick(), ["stop"]), ["escape"])
|
|
3873
3936
|
}, {
|
|
3874
|
-
default:
|
|
3937
|
+
default: j(() => [T(t.$slots, "default")]),
|
|
3875
3938
|
_: 3
|
|
3876
3939
|
}, 40, [
|
|
3877
3940
|
"class",
|
|
@@ -3887,12 +3950,12 @@ function tn(t, n, i, a, u, d) {
|
|
|
3887
3950
|
}
|
|
3888
3951
|
//#endregion
|
|
3889
3952
|
//#region src/wave-ui/components/w-drawer.vue
|
|
3890
|
-
var
|
|
3953
|
+
var dn = {
|
|
3891
3954
|
left: "right",
|
|
3892
3955
|
right: "left",
|
|
3893
3956
|
top: "down",
|
|
3894
3957
|
bottom: "up"
|
|
3895
|
-
},
|
|
3958
|
+
}, fn = /* @__PURE__ */ q({
|
|
3896
3959
|
name: "w-drawer",
|
|
3897
3960
|
expose: ["focus"],
|
|
3898
3961
|
props: {
|
|
@@ -3999,12 +4062,12 @@ var nn = {
|
|
|
3999
4062
|
return !this.showWrapper;
|
|
4000
4063
|
},
|
|
4001
4064
|
transitionName() {
|
|
4002
|
-
return `slide-${
|
|
4065
|
+
return `slide-${dn[this.position]}`;
|
|
4003
4066
|
}
|
|
4004
4067
|
},
|
|
4005
4068
|
methods: {
|
|
4006
4069
|
focus() {
|
|
4007
|
-
this.$refs.overlay ? this.$refs.overlay.focus() :
|
|
4070
|
+
this.$refs.overlay ? this.$refs.overlay.focus() : J(this.$refs.drawer?.$el || this.$refs.drawer);
|
|
4008
4071
|
},
|
|
4009
4072
|
onBeforeClose() {
|
|
4010
4073
|
this.$emit("before-close");
|
|
@@ -4019,16 +4082,16 @@ var nn = {
|
|
|
4019
4082
|
watch: { modelValue(e) {
|
|
4020
4083
|
e && (this.showWrapper = !0), this.showDrawer = e;
|
|
4021
4084
|
} }
|
|
4022
|
-
}, [["render",
|
|
4085
|
+
}, [["render", un]]);
|
|
4023
4086
|
//#endregion
|
|
4024
4087
|
//#region src/wave-ui/components/w-flex.vue?vue&type=template&lang.js
|
|
4025
|
-
function
|
|
4088
|
+
function pn(e, t, n, r, i, a) {
|
|
4026
4089
|
return b(), o(D(n.tag), { class: _(["w-flex", a.classes]) }, {
|
|
4027
|
-
default:
|
|
4090
|
+
default: j(() => [T(e.$slots, "default")]),
|
|
4028
4091
|
_: 3
|
|
4029
4092
|
}, 8, ["class"]);
|
|
4030
4093
|
}
|
|
4031
|
-
var
|
|
4094
|
+
var mn = /* @__PURE__ */ q({
|
|
4032
4095
|
name: "w-flex",
|
|
4033
4096
|
props: {
|
|
4034
4097
|
tag: {
|
|
@@ -4079,10 +4142,10 @@ var on = /* @__PURE__ */ K({
|
|
|
4079
4142
|
[`gap${this.gap}`]: ~~this.gap
|
|
4080
4143
|
};
|
|
4081
4144
|
} }
|
|
4082
|
-
}, [["render",
|
|
4145
|
+
}, [["render", pn]]);
|
|
4083
4146
|
//#endregion
|
|
4084
4147
|
//#region src/wave-ui/components/w-form.vue?vue&type=template&lang.js
|
|
4085
|
-
function
|
|
4148
|
+
function hn(e, t, n, r, i, a) {
|
|
4086
4149
|
return b(), c("form", {
|
|
4087
4150
|
class: _(["w-form", a.classes]),
|
|
4088
4151
|
onSubmit: t[0] ||= (...e) => a.onSubmit && a.onSubmit(...e),
|
|
@@ -4092,10 +4155,10 @@ function sn(e, t, n, r, i, a) {
|
|
|
4092
4155
|
}
|
|
4093
4156
|
//#endregion
|
|
4094
4157
|
//#region src/wave-ui/components/w-form.vue
|
|
4095
|
-
var
|
|
4158
|
+
var gn = async (e, t) => {
|
|
4096
4159
|
for (let n of e) if (await t(n)) return !0;
|
|
4097
4160
|
return !1;
|
|
4098
|
-
},
|
|
4161
|
+
}, _n = /* @__PURE__ */ q({
|
|
4099
4162
|
name: "w-form",
|
|
4100
4163
|
props: {
|
|
4101
4164
|
modelValue: {},
|
|
@@ -4170,7 +4233,7 @@ var cn = async (e, t) => {
|
|
|
4170
4233
|
},
|
|
4171
4234
|
async checkElementValidators(e) {
|
|
4172
4235
|
let t = !1, n = "";
|
|
4173
|
-
await
|
|
4236
|
+
await gn(e.validators, async (r) => {
|
|
4174
4237
|
let i = await (typeof r == "function" && r(e.inputValue));
|
|
4175
4238
|
return t = typeof i != "string", n = t ? "" : i, !t;
|
|
4176
4239
|
}), e.hasJustReset = !1, e.Validation.isValid = t, e.Validation.message = n;
|
|
@@ -4191,20 +4254,20 @@ var cn = async (e, t) => {
|
|
|
4191
4254
|
watch: { modelValue(e) {
|
|
4192
4255
|
(this.status === !1 && e || e === null && this.status !== null) && this.reset(), this.status = e;
|
|
4193
4256
|
} }
|
|
4194
|
-
}, [["render",
|
|
4257
|
+
}, [["render", hn]]);
|
|
4195
4258
|
//#endregion
|
|
4196
4259
|
//#region src/wave-ui/components/w-form-element.vue?vue&type=template&lang.js
|
|
4197
|
-
function
|
|
4260
|
+
function vn(e, t, n, r, i, a) {
|
|
4198
4261
|
let o = E("w-transition-expand");
|
|
4199
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: "" }, {
|
|
4200
|
-
default:
|
|
4263
|
+
default: j(() => [e.Validation.message ? (b(), c("div", {
|
|
4201
4264
|
key: 0,
|
|
4202
4265
|
class: _(["w-form-el__error", a.formProps.validationColor])
|
|
4203
4266
|
}, [T(e.$slots, "error-message", { message: e.Validation.message }, () => [d(O(e.Validation.message), 1)])], 2)) : s("", !0)]),
|
|
4204
4267
|
_: 3
|
|
4205
4268
|
})], 2);
|
|
4206
4269
|
}
|
|
4207
|
-
var
|
|
4270
|
+
var yn = /* @__PURE__ */ q({
|
|
4208
4271
|
name: "w-form-element",
|
|
4209
4272
|
props: {
|
|
4210
4273
|
valid: { required: !0 },
|
|
@@ -4272,16 +4335,16 @@ var dn = /* @__PURE__ */ K({
|
|
|
4272
4335
|
beforeUnmount() {
|
|
4273
4336
|
this.formUnregister && this.formUnregister(this);
|
|
4274
4337
|
}
|
|
4275
|
-
}, [["render",
|
|
4338
|
+
}, [["render", vn]]);
|
|
4276
4339
|
//#endregion
|
|
4277
4340
|
//#region src/wave-ui/components/w-grid.vue?vue&type=template&lang.js
|
|
4278
|
-
function
|
|
4341
|
+
function bn(e, t, n, r, i, a) {
|
|
4279
4342
|
return b(), o(D(n.tag), { class: _(["w-grid", a.classes]) }, {
|
|
4280
|
-
default:
|
|
4343
|
+
default: j(() => [T(e.$slots, "default")]),
|
|
4281
4344
|
_: 3
|
|
4282
4345
|
}, 8, ["class"]);
|
|
4283
4346
|
}
|
|
4284
|
-
var
|
|
4347
|
+
var xn = /* @__PURE__ */ q({
|
|
4285
4348
|
name: "w-grid",
|
|
4286
4349
|
props: {
|
|
4287
4350
|
tag: {
|
|
@@ -4353,21 +4416,21 @@ var pn = /* @__PURE__ */ K({
|
|
|
4353
4416
|
};
|
|
4354
4417
|
}
|
|
4355
4418
|
}
|
|
4356
|
-
}, [["render",
|
|
4419
|
+
}, [["render", bn]]);
|
|
4357
4420
|
//#endregion
|
|
4358
4421
|
//#region src/wave-ui/components/w-icon.vue?vue&type=template&lang.js
|
|
4359
|
-
function
|
|
4422
|
+
function Sn(t, n, r, i, a, l) {
|
|
4360
4423
|
return b(), o(D(r.tag || "i"), {
|
|
4361
4424
|
class: _(["w-icon", l.classes]),
|
|
4362
4425
|
role: "icon",
|
|
4363
4426
|
"aria-hidden": "true",
|
|
4364
4427
|
style: y(l.readIcon() && l.styles)
|
|
4365
4428
|
}, {
|
|
4366
|
-
default:
|
|
4429
|
+
default: j(() => [l.hasLigature ? (b(), c(e, { key: 0 }, [d(O(t.icon), 1)], 64)) : s("", !0)]),
|
|
4367
4430
|
_: 1
|
|
4368
4431
|
}, 8, ["class", "style"]);
|
|
4369
4432
|
}
|
|
4370
|
-
var
|
|
4433
|
+
var Cn = /* @__PURE__ */ q({
|
|
4371
4434
|
name: "w-icon",
|
|
4372
4435
|
props: {
|
|
4373
4436
|
tag: {
|
|
@@ -4437,11 +4500,11 @@ var hn = /* @__PURE__ */ K({
|
|
|
4437
4500
|
let { default: e } = this.$slots, [t = "", n = ""] = typeof e == "function" && e()?.[0]?.children?.trim()?.split(" ") || [];
|
|
4438
4501
|
return this.fontName = t, this.icon = n, !0;
|
|
4439
4502
|
} }
|
|
4440
|
-
}, [["render",
|
|
4503
|
+
}, [["render", Sn]]), wn = {
|
|
4441
4504
|
key: 0,
|
|
4442
4505
|
class: "w-image__loader"
|
|
4443
|
-
},
|
|
4444
|
-
function
|
|
4506
|
+
}, Tn = ["innerHTML"];
|
|
4507
|
+
function En(e, t, n, i, a, l) {
|
|
4445
4508
|
let u = E("w-progress");
|
|
4446
4509
|
return b(), o(D(l.wrapperTag), {
|
|
4447
4510
|
class: _(["w-image", l.wrapperClasses]),
|
|
@@ -4449,12 +4512,12 @@ function vn(e, t, n, i, a, l) {
|
|
|
4449
4512
|
style: y(l.wrapperStyles),
|
|
4450
4513
|
onError: t[0] ||= (e) => a.error = !0
|
|
4451
4514
|
}, {
|
|
4452
|
-
default:
|
|
4515
|
+
default: j(() => [
|
|
4453
4516
|
f(r, {
|
|
4454
4517
|
name: n.transition,
|
|
4455
4518
|
appear: ""
|
|
4456
4519
|
}, {
|
|
4457
|
-
default:
|
|
4520
|
+
default: j(() => [a.loaded ? (b(), o(D(l.normalized.tag), {
|
|
4458
4521
|
key: 0,
|
|
4459
4522
|
class: _(["w-image__image", l.imageClasses]),
|
|
4460
4523
|
style: y(l.imageStyles),
|
|
@@ -4466,7 +4529,7 @@ function vn(e, t, n, i, a, l) {
|
|
|
4466
4529
|
])) : s("", !0)]),
|
|
4467
4530
|
_: 1
|
|
4468
4531
|
}, 8, ["name"]),
|
|
4469
|
-
!n.noSpinner && a.loading ? (b(), c("span",
|
|
4532
|
+
!n.noSpinner && a.loading ? (b(), c("span", wn, [e.$slots.loading ? T(e.$slots, "loading", { key: 0 }) : (b(), o(u, h({
|
|
4470
4533
|
key: 1,
|
|
4471
4534
|
circle: "",
|
|
4472
4535
|
indeterminate: ""
|
|
@@ -4475,7 +4538,7 @@ function vn(e, t, n, i, a, l) {
|
|
|
4475
4538
|
key: 1,
|
|
4476
4539
|
class: _(["w-image__content", n.contentClass])
|
|
4477
4540
|
}, {
|
|
4478
|
-
default:
|
|
4541
|
+
default: j(() => [T(e.$slots, "default")]),
|
|
4479
4542
|
_: 3
|
|
4480
4543
|
}, 8, ["class"])) : s("", !0),
|
|
4481
4544
|
e.$slots.caption ? (b(), c("figcaption", {
|
|
@@ -4485,12 +4548,12 @@ function vn(e, t, n, i, a, l) {
|
|
|
4485
4548
|
key: 3,
|
|
4486
4549
|
class: _(["w-image__caption caption", n.captionClass]),
|
|
4487
4550
|
innerHTML: n.caption
|
|
4488
|
-
}, null, 10,
|
|
4551
|
+
}, null, 10, Tn)) : s("", !0)
|
|
4489
4552
|
]),
|
|
4490
4553
|
_: 3
|
|
4491
4554
|
}, 40, ["class", "style"]);
|
|
4492
4555
|
}
|
|
4493
|
-
var
|
|
4556
|
+
var Dn = /* @__PURE__ */ q({
|
|
4494
4557
|
name: "w-image",
|
|
4495
4558
|
props: {
|
|
4496
4559
|
tag: {
|
|
@@ -4592,7 +4655,7 @@ var yn = /* @__PURE__ */ K({
|
|
|
4592
4655
|
});
|
|
4593
4656
|
} },
|
|
4594
4657
|
mounted() {
|
|
4595
|
-
if (!this.src) return
|
|
4658
|
+
if (!this.src) return L("The w-image component was used without src.");
|
|
4596
4659
|
if (this.lazy) {
|
|
4597
4660
|
let e = new IntersectionObserver((t) => {
|
|
4598
4661
|
t[0]?.isIntersecting && (this.loadImage(), e.disconnect());
|
|
@@ -4603,7 +4666,7 @@ var yn = /* @__PURE__ */ K({
|
|
|
4603
4666
|
watch: { src() {
|
|
4604
4667
|
this.loadImage();
|
|
4605
4668
|
} }
|
|
4606
|
-
}, [["render",
|
|
4669
|
+
}, [["render", En]]), On = ["name"], kn = ["for"], An = [
|
|
4607
4670
|
"id",
|
|
4608
4671
|
"type",
|
|
4609
4672
|
"name",
|
|
@@ -4618,17 +4681,17 @@ var yn = /* @__PURE__ */ K({
|
|
|
4618
4681
|
"disabled",
|
|
4619
4682
|
"required",
|
|
4620
4683
|
"tabindex"
|
|
4621
|
-
],
|
|
4684
|
+
], jn = [
|
|
4622
4685
|
"id",
|
|
4623
4686
|
"name",
|
|
4624
4687
|
"multiple",
|
|
4625
4688
|
"disabled",
|
|
4626
4689
|
"data-progress"
|
|
4627
|
-
],
|
|
4690
|
+
], Mn = {
|
|
4628
4691
|
class: "w-input__no-file",
|
|
4629
4692
|
key: "no-file"
|
|
4630
|
-
},
|
|
4631
|
-
function
|
|
4693
|
+
}, Nn = ["for"], Pn = ["src"], Fn = ["for"];
|
|
4694
|
+
function In(t, n, r, a, u, p) {
|
|
4632
4695
|
let m = E("w-icon"), g = E("w-progress");
|
|
4633
4696
|
return b(), o(D(t.formRegister ? "w-form-element" : "div"), h({ ref: "formEl" }, t.formRegister && {
|
|
4634
4697
|
validators: t.validators,
|
|
@@ -4647,17 +4710,17 @@ function On(t, n, r, a, u, p) {
|
|
|
4647
4710
|
class: p.classes,
|
|
4648
4711
|
style: t.$attrs.style
|
|
4649
4712
|
}), {
|
|
4650
|
-
default:
|
|
4713
|
+
default: j(() => [r.type === "hidden" ? M((b(), c("input", {
|
|
4651
4714
|
key: 0,
|
|
4652
4715
|
type: "hidden",
|
|
4653
4716
|
name: t.name || null,
|
|
4654
4717
|
"onUpdate:modelValue": n[0] ||= (e) => u.inputValue = e
|
|
4655
|
-
}, null, 8,
|
|
4718
|
+
}, null, 8, On)), [[A, u.inputValue]]) : (b(), c(e, { key: 1 }, [
|
|
4656
4719
|
r.labelPosition === "left" ? (b(), c(e, { key: 0 }, [t.$slots.default || r.label ? (b(), c("label", {
|
|
4657
4720
|
key: 0,
|
|
4658
4721
|
class: _(["w-input__label w-input__label--left w-form-el-shakable", t.labelClasses]),
|
|
4659
4722
|
for: t.inputId
|
|
4660
|
-
}, [T(t.$slots, "default", {}, () => [d(O(r.label), 1)])], 10,
|
|
4723
|
+
}, [T(t.$slots, "default", {}, () => [d(O(r.label), 1)])], 10, kn)) : s("", !0)], 64)) : s("", !0),
|
|
4661
4724
|
l("div", { class: _(["w-input__input-wrap", p.inputWrapClasses]) }, [
|
|
4662
4725
|
T(t.$slots, "icon-left", { inputId: t.inputId }, () => [r.innerIconLeft ? (b(), o(m, {
|
|
4663
4726
|
key: 0,
|
|
@@ -4666,7 +4729,7 @@ function On(t, n, r, a, u, p) {
|
|
|
4666
4729
|
for: t.inputId,
|
|
4667
4730
|
onClick: n[1] ||= (e) => t.$emit("click:inner-icon-left", e)
|
|
4668
4731
|
}, {
|
|
4669
|
-
default:
|
|
4732
|
+
default: j(() => [d(O(r.innerIconLeft), 1)]),
|
|
4670
4733
|
_: 1
|
|
4671
4734
|
}, 8, ["for"])) : s("", !0)]),
|
|
4672
4735
|
r.type === "file" ? (b(), c(e, { key: 1 }, [l("input", h({
|
|
@@ -4681,13 +4744,13 @@ function On(t, n, r, a, u, p) {
|
|
|
4681
4744
|
}, p.attrs, {
|
|
4682
4745
|
disabled: t.isDisabled || null,
|
|
4683
4746
|
"data-progress": p.overallFilesProgress
|
|
4684
|
-
}), null, 16,
|
|
4747
|
+
}), null, 16, jn), f(i, {
|
|
4685
4748
|
class: "w-input__input w-input__input--file",
|
|
4686
4749
|
tag: "label",
|
|
4687
4750
|
name: "fade",
|
|
4688
4751
|
for: t.inputId
|
|
4689
4752
|
}, {
|
|
4690
|
-
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 }, [
|
|
4691
4754
|
d(O(t ? ", " : ""), 1),
|
|
4692
4755
|
(b(), c("span", {
|
|
4693
4756
|
class: "filename",
|
|
@@ -4696,7 +4759,7 @@ function On(t, n, r, a, u, p) {
|
|
|
4696
4759
|
d(O(e.extension ? `.${e.extension}` : ""), 1)
|
|
4697
4760
|
]))), 128))]),
|
|
4698
4761
|
_: 3
|
|
4699
|
-
}, 8, ["for"])], 64)) :
|
|
4762
|
+
}, 8, ["for"])], 64)) : M((b(), c("input", h({
|
|
4700
4763
|
key: 0,
|
|
4701
4764
|
class: "w-input__input",
|
|
4702
4765
|
ref: "input",
|
|
@@ -4718,7 +4781,7 @@ function On(t, n, r, a, u, p) {
|
|
|
4718
4781
|
disabled: t.isDisabled || null,
|
|
4719
4782
|
required: t.required || null,
|
|
4720
4783
|
tabindex: t.tabindex || null
|
|
4721
|
-
}, p.attrs, { class: r.inputClass }), null, 16,
|
|
4784
|
+
}, p.attrs, { class: r.inputClass }), null, 16, An)), [[oe, u.inputValue]]),
|
|
4722
4785
|
r.labelPosition === "inside" && p.showLabelInside ? (b(), c(e, { key: 2 }, [t.$slots.default || r.label ? (b(), c("label", {
|
|
4723
4786
|
key: 0,
|
|
4724
4787
|
class: _(["w-input__label w-input__label--inside w-form-el-shakable", t.labelClasses])
|
|
@@ -4730,7 +4793,7 @@ function On(t, n, r, a, u, p) {
|
|
|
4730
4793
|
for: t.inputId,
|
|
4731
4794
|
onClick: n[9] ||= (e) => t.$emit("click:inner-icon-right", e)
|
|
4732
4795
|
}, {
|
|
4733
|
-
default:
|
|
4796
|
+
default: j(() => [d(O(r.innerIconRight), 1)]),
|
|
4734
4797
|
_: 1
|
|
4735
4798
|
}, 8, ["for"])) : s("", !0)]),
|
|
4736
4799
|
p.hasLoading || r.showProgress && (p.uploadInProgress || p.uploadComplete) ? (b(), o(g, {
|
|
@@ -4753,15 +4816,15 @@ function On(t, n, r, a, u, p) {
|
|
|
4753
4816
|
key: `${n}b`,
|
|
4754
4817
|
src: t.preview,
|
|
4755
4818
|
alt: ""
|
|
4756
|
-
}, null, 8,
|
|
4819
|
+
}, null, 8, Pn)) : (b(), c("i", {
|
|
4757
4820
|
class: _(["w-icon w-input__file-preview primary size--md", r.preview && typeof r.preview == "string" ? r.preview : "wi-file"]),
|
|
4758
4821
|
key: `${n}c`
|
|
4759
|
-
}, null, 2))], 64))), 256))], 8,
|
|
4822
|
+
}, null, 2))], 64))), 256))], 8, Nn)) : s("", !0),
|
|
4760
4823
|
r.labelPosition === "right" ? (b(), c(e, { key: 2 }, [t.$slots.default || r.label ? (b(), c("label", {
|
|
4761
4824
|
key: 0,
|
|
4762
4825
|
class: _(["w-input__label w-input__label--right w-form-el-shakable", t.labelClasses]),
|
|
4763
4826
|
for: t.inputId
|
|
4764
|
-
}, [T(t.$slots, "default", {}, () => [d(O(r.label), 1)])], 10,
|
|
4827
|
+
}, [T(t.$slots, "default", {}, () => [d(O(r.label), 1)])], 10, Fn)) : s("", !0)], 64)) : s("", !0)
|
|
4765
4828
|
], 64))]),
|
|
4766
4829
|
_: 3
|
|
4767
4830
|
}, 16, [
|
|
@@ -4771,7 +4834,7 @@ function On(t, n, r, a, u, p) {
|
|
|
4771
4834
|
"style"
|
|
4772
4835
|
]);
|
|
4773
4836
|
}
|
|
4774
|
-
var
|
|
4837
|
+
var Ln = /* @__PURE__ */ q({
|
|
4775
4838
|
name: "w-input",
|
|
4776
4839
|
expose: ["focus"],
|
|
4777
4840
|
mixins: [Q, $],
|
|
@@ -4972,10 +5035,10 @@ var kn = /* @__PURE__ */ K({
|
|
|
4972
5035
|
watch: { modelValue(e) {
|
|
4973
5036
|
this.inputValue = e, !e && e !== 0 && (this.isAutofilled = !1, this.inputFiles = []);
|
|
4974
5037
|
} }
|
|
4975
|
-
}, [["render",
|
|
5038
|
+
}, [["render", In]]);
|
|
4976
5039
|
//#endregion
|
|
4977
5040
|
//#region src/wave-ui/components/w-list.vue?vue&type=template&lang.js
|
|
4978
|
-
function
|
|
5041
|
+
function Rn(t, n, r, i, a, l) {
|
|
4979
5042
|
let f = E("w-icon"), p = E("w-list", !0);
|
|
4980
5043
|
return b(), c("ul", { class: _(["w-list", l.classes]) }, [(b(!0), c(e, null, w(t.listItems, (e, i) => (b(), c("li", {
|
|
4981
5044
|
class: _(["w-list__item", { "w-list__item--parent": (e.children || []).length }]),
|
|
@@ -4985,14 +5048,14 @@ function An(t, n, r, i, a, l) {
|
|
|
4985
5048
|
key: 0,
|
|
4986
5049
|
class: "w-list__item-bullet"
|
|
4987
5050
|
}, {
|
|
4988
|
-
default:
|
|
5051
|
+
default: j(() => [d(O(r.icon), 1)]),
|
|
4989
5052
|
_: 1
|
|
4990
5053
|
})) : s("", !0),
|
|
4991
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({
|
|
4992
5055
|
key: 1,
|
|
4993
5056
|
class: "w-list__item-label"
|
|
4994
5057
|
}, { ref_for: !0 }, l.liLabelProps(e, i, e._selected)), {
|
|
4995
|
-
default:
|
|
5058
|
+
default: j(() => [t.$slots[`item.${i + 1}`] ? T(t.$slots, `item.${i + 1}`, {
|
|
4996
5059
|
key: 0,
|
|
4997
5060
|
item: l.cleanLi(e),
|
|
4998
5061
|
index: i + 1,
|
|
@@ -5025,7 +5088,7 @@ function An(t, n, r, i, a, l) {
|
|
|
5025
5088
|
onItemSelect: n[3] ||= (e) => t.$emit("item-select", e)
|
|
5026
5089
|
}), u({ _: 2 }, [t.$slots.item ? {
|
|
5027
5090
|
name: "item",
|
|
5028
|
-
fn:
|
|
5091
|
+
fn: j(({ item: e, index: n, selected: r }) => [T(t.$slots, "item", {
|
|
5029
5092
|
item: l.cleanLi(e),
|
|
5030
5093
|
index: n,
|
|
5031
5094
|
selected: r
|
|
@@ -5033,7 +5096,7 @@ function An(t, n, r, i, a, l) {
|
|
|
5033
5096
|
key: "0"
|
|
5034
5097
|
} : {
|
|
5035
5098
|
name: "default",
|
|
5036
|
-
fn:
|
|
5099
|
+
fn: j(({ item: e, index: n, selected: i }) => [T(t.$slots, "default", {
|
|
5037
5100
|
item: l.cleanLi(e),
|
|
5038
5101
|
index: n,
|
|
5039
5102
|
selected: i
|
|
@@ -5042,8 +5105,9 @@ function An(t, n, r, i, a, l) {
|
|
|
5042
5105
|
}]), 1040, ["items", "depth"])) : s("", !0)
|
|
5043
5106
|
], 2))), 128))], 2);
|
|
5044
5107
|
}
|
|
5045
|
-
var
|
|
5108
|
+
var zn = /* @__PURE__ */ q({
|
|
5046
5109
|
name: "w-list",
|
|
5110
|
+
focusable: !0,
|
|
5047
5111
|
expose: ["focus"],
|
|
5048
5112
|
mixins: [X],
|
|
5049
5113
|
setup() {
|
|
@@ -5143,7 +5207,7 @@ var jn = /* @__PURE__ */ K({
|
|
|
5143
5207
|
methods: {
|
|
5144
5208
|
focus() {
|
|
5145
5209
|
let e = this.listItems.find((e) => e._selected && !e.disabled) || this.listItems.find((e) => !e.disabled);
|
|
5146
|
-
e && (this.listId ?
|
|
5210
|
+
e && (this.listId ? J(document.getElementById(`${this.listId}_item-${e._index + 1}`)) : J(this.$el.querySelector("[role=\"option\"][tabindex=\"0\"]")));
|
|
5147
5211
|
},
|
|
5148
5212
|
getItemValue(e) {
|
|
5149
5213
|
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 +5310,8 @@ var jn = /* @__PURE__ */ K({
|
|
|
5246
5310
|
}
|
|
5247
5311
|
}
|
|
5248
5312
|
}
|
|
5249
|
-
}, [["render",
|
|
5250
|
-
function
|
|
5313
|
+
}, [["render", Rn]]), Bn = 4;
|
|
5314
|
+
function Vn(e) {
|
|
5251
5315
|
return {
|
|
5252
5316
|
top: "bottom",
|
|
5253
5317
|
bottom: "top",
|
|
@@ -5255,7 +5319,7 @@ function Nn(e) {
|
|
|
5255
5319
|
right: "left"
|
|
5256
5320
|
}[e] || "bottom";
|
|
5257
5321
|
}
|
|
5258
|
-
var
|
|
5322
|
+
var Hn = {
|
|
5259
5323
|
props: {
|
|
5260
5324
|
appendTo: { type: [
|
|
5261
5325
|
String,
|
|
@@ -5290,6 +5354,8 @@ var Pn = {
|
|
|
5290
5354
|
openTimeout: null,
|
|
5291
5355
|
viewportPlacementOverride: null,
|
|
5292
5356
|
detachableReady: !1,
|
|
5357
|
+
_contentEntered: !1,
|
|
5358
|
+
_autofocusTargets: [],
|
|
5293
5359
|
teleportTarget: null
|
|
5294
5360
|
}),
|
|
5295
5361
|
computed: {
|
|
@@ -5298,7 +5364,7 @@ var Pn = {
|
|
|
5298
5364
|
let e = ".w-app";
|
|
5299
5365
|
typeof this.detachableDefaultRoot == "function" && (e = this.detachableDefaultRoot() || e);
|
|
5300
5366
|
let t = this.appendTo || e;
|
|
5301
|
-
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;
|
|
5302
5368
|
},
|
|
5303
5369
|
detachableParentEl() {
|
|
5304
5370
|
return this.appendToTarget;
|
|
@@ -5333,7 +5399,23 @@ var Pn = {
|
|
|
5333
5399
|
},
|
|
5334
5400
|
methods: {
|
|
5335
5401
|
onAfterLeave() {
|
|
5336
|
-
this.detachableReady = !1, this.detachableEl = null;
|
|
5402
|
+
this.detachableReady = !1, this.detachableEl = null, this._contentEntered = !1, this._autofocusTargets = [];
|
|
5403
|
+
},
|
|
5404
|
+
onDetachableAfterEnter() {
|
|
5405
|
+
this._contentEntered = !0, this._maybeFlushAutofocus();
|
|
5406
|
+
},
|
|
5407
|
+
registerAutofocus(e) {
|
|
5408
|
+
this._autofocusTargets ||= [], this._autofocusTargets.push(e), this._maybeFlushAutofocus();
|
|
5409
|
+
},
|
|
5410
|
+
unregisterAutofocus(e) {
|
|
5411
|
+
this._autofocusTargets?.length && (this._autofocusTargets = this._autofocusTargets.filter((t) => t.el !== e));
|
|
5412
|
+
},
|
|
5413
|
+
_maybeFlushAutofocus() {
|
|
5414
|
+
this.detachableReady && this._contentEntered && this.flushAutofocus();
|
|
5415
|
+
},
|
|
5416
|
+
flushAutofocus() {
|
|
5417
|
+
let e = this._autofocusTargets || [];
|
|
5418
|
+
this._autofocusTargets = [], e.length && this.$nextTick(() => e.forEach(({ el: e }) => qe(e)));
|
|
5337
5419
|
},
|
|
5338
5420
|
unbindActivatorDocEvents() {
|
|
5339
5421
|
typeof document > "u" || this.docEventListenersHandlers.length && (this.docEventListenersHandlers.forEach(({ eventName: e, handler: t }) => {
|
|
@@ -5366,7 +5448,7 @@ var Pn = {
|
|
|
5366
5448
|
}), this._activatorDomEl = null, this._activatorAttachedEvents = []);
|
|
5367
5449
|
},
|
|
5368
5450
|
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(() => {
|
|
5451
|
+
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
5452
|
this.$emit("update:modelValue", !0), this.$emit("input", !0), this.$emit("open");
|
|
5371
5453
|
}, 0), typeof document < "u" && !this.persistent && document.addEventListener("mousedown", this.onOutsideMousedown), typeof window < "u" && !this.noPosition && window.addEventListener("resize", this.onResize))));
|
|
5372
5454
|
},
|
|
@@ -5419,14 +5501,14 @@ var Pn = {
|
|
|
5419
5501
|
this.viewportPlacementOverride = null, this.detachableEl.style.display = "flex";
|
|
5420
5502
|
let e = window.getComputedStyle(this.detachableEl, null), t = this.detachableEl.offsetWidth, n = this.detachableEl.offsetHeight, r = this.position;
|
|
5421
5503
|
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 =
|
|
5504
|
+
let e = Bn, i = window.innerWidth, a = window.innerHeight, { top: o, left: s, width: c, height: l } = this.activatorEl.getBoundingClientRect();
|
|
5505
|
+
(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
5506
|
}
|
|
5425
5507
|
let i = this.getActivatorCoordinates(), { top: a, left: o } = this._applyDetachablePlacement(r, i, e);
|
|
5426
5508
|
this.detachableCoords = {
|
|
5427
5509
|
top: a,
|
|
5428
5510
|
left: o
|
|
5429
|
-
}, this.detachableReady = !0, await this.$nextTick(), this.detachableEl && (this.detachableVisible || (this.detachableEl.style.display = "none"));
|
|
5511
|
+
}, this.detachableReady = !0, await this.$nextTick(), this._maybeFlushAutofocus(), this.detachableEl && (this.detachableVisible || (this.detachableEl.style.display = "none"));
|
|
5430
5512
|
},
|
|
5431
5513
|
onResize() {
|
|
5432
5514
|
typeof window > "u" || (this.minWidth === "activator" && this.activatorEl && (this.activatorWidth = this.activatorEl.offsetWidth), this.computeDetachableCoords());
|
|
@@ -5476,7 +5558,7 @@ var Pn = {
|
|
|
5476
5558
|
};
|
|
5477
5559
|
//#endregion
|
|
5478
5560
|
//#region src/wave-ui/components/w-menu.vue?vue&type=template&lang.js
|
|
5479
|
-
function
|
|
5561
|
+
function Un(t, i, a, l, d, p) {
|
|
5480
5562
|
let m = E("w-card"), g = E("w-overlay");
|
|
5481
5563
|
return b(), c(e, null, [
|
|
5482
5564
|
T(t.$slots, "activator"),
|
|
@@ -5488,9 +5570,10 @@ function Fn(t, i, a, l, d, p) {
|
|
|
5488
5570
|
}, [f(r, {
|
|
5489
5571
|
name: p.transitionName,
|
|
5490
5572
|
appear: "",
|
|
5573
|
+
onAfterEnter: t.onDetachableAfterEnter,
|
|
5491
5574
|
onAfterLeave: t.onAfterLeave
|
|
5492
5575
|
}, {
|
|
5493
|
-
default:
|
|
5576
|
+
default: j(() => [a.custom && t.detachableVisible ? (b(), c("div", h({
|
|
5494
5577
|
key: 0,
|
|
5495
5578
|
class: "w-menu",
|
|
5496
5579
|
ref: "detachable"
|
|
@@ -5516,15 +5599,15 @@ function Fn(t, i, a, l, d, p) {
|
|
|
5516
5599
|
class: p.classes,
|
|
5517
5600
|
style: p.styles
|
|
5518
5601
|
}), u({
|
|
5519
|
-
default:
|
|
5602
|
+
default: j(() => [t.$slots.activator ? T(t.$slots, "default", { key: 0 }) : T(t.$slots, "content", { key: 1 })]),
|
|
5520
5603
|
_: 2
|
|
5521
5604
|
}, [t.$slots.title ? {
|
|
5522
5605
|
name: "title",
|
|
5523
|
-
fn:
|
|
5606
|
+
fn: j(() => [T(t.$slots, "title")]),
|
|
5524
5607
|
key: "0"
|
|
5525
5608
|
} : void 0, t.$slots.actions ? {
|
|
5526
5609
|
name: "actions",
|
|
5527
|
-
fn:
|
|
5610
|
+
fn: j(() => [T(t.$slots, "actions")]),
|
|
5528
5611
|
key: "1"
|
|
5529
5612
|
} : void 0]), 1040, [
|
|
5530
5613
|
"tile",
|
|
@@ -5536,7 +5619,11 @@ function Fn(t, i, a, l, d, p) {
|
|
|
5536
5619
|
"style"
|
|
5537
5620
|
])) : s("", !0)]),
|
|
5538
5621
|
_: 3
|
|
5539
|
-
}, 8, [
|
|
5622
|
+
}, 8, [
|
|
5623
|
+
"name",
|
|
5624
|
+
"onAfterEnter",
|
|
5625
|
+
"onAfterLeave"
|
|
5626
|
+
]), a.overlay ? (b(), o(g, h({
|
|
5540
5627
|
key: 0,
|
|
5541
5628
|
ref: "overlay",
|
|
5542
5629
|
"model-value": t.detachableVisible,
|
|
@@ -5553,10 +5640,10 @@ function Fn(t, i, a, l, d, p) {
|
|
|
5553
5640
|
])) : s("", !0)], 8, ["to", "disabled"])) : s("", !0)
|
|
5554
5641
|
], 64);
|
|
5555
5642
|
}
|
|
5556
|
-
var
|
|
5643
|
+
var Wn = /* @__PURE__ */ q({
|
|
5557
5644
|
name: "w-menu",
|
|
5558
5645
|
expose: ["focus"],
|
|
5559
|
-
mixins: [
|
|
5646
|
+
mixins: [Hn],
|
|
5560
5647
|
inheritAttrs: !1,
|
|
5561
5648
|
props: {
|
|
5562
5649
|
modelValue: {},
|
|
@@ -5693,7 +5780,7 @@ var In = /* @__PURE__ */ K({
|
|
|
5693
5780
|
},
|
|
5694
5781
|
methods: {
|
|
5695
5782
|
focus() {
|
|
5696
|
-
this.overlay && this.$refs.overlay ? this.$refs.overlay.focus() :
|
|
5783
|
+
this.overlay && this.$refs.overlay ? this.$refs.overlay.focus() : J(this.activatorEl);
|
|
5697
5784
|
},
|
|
5698
5785
|
toggle(e) {
|
|
5699
5786
|
if (this.disable) return;
|
|
@@ -5704,16 +5791,16 @@ var In = /* @__PURE__ */ K({
|
|
|
5704
5791
|
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
5792
|
}
|
|
5706
5793
|
}
|
|
5707
|
-
}, [["render",
|
|
5794
|
+
}, [["render", Un]]);
|
|
5708
5795
|
//#endregion
|
|
5709
5796
|
//#region src/wave-ui/components/w-notification.vue?vue&type=template&lang.js
|
|
5710
|
-
function
|
|
5797
|
+
function Gn(e, t, n, i, a, l) {
|
|
5711
5798
|
let u = E("w-alert");
|
|
5712
5799
|
return b(), o(r, {
|
|
5713
5800
|
name: l.transitionName,
|
|
5714
5801
|
appear: ""
|
|
5715
5802
|
}, {
|
|
5716
|
-
default:
|
|
5803
|
+
default: j(() => [a.show ? (b(), c("div", {
|
|
5717
5804
|
key: 0,
|
|
5718
5805
|
class: _(["w-notification", l.classes]),
|
|
5719
5806
|
style: y(l.styles)
|
|
@@ -5723,13 +5810,13 @@ function Ln(e, t, n, i, a, l) {
|
|
|
5723
5810
|
e.$emit("update:modelValue", !1), e.$emit("input", !1);
|
|
5724
5811
|
}
|
|
5725
5812
|
}), {
|
|
5726
|
-
default:
|
|
5813
|
+
default: j(() => [T(e.$slots, "default")]),
|
|
5727
5814
|
_: 3
|
|
5728
5815
|
}, 16, ["class"])], 6)) : s("", !0)]),
|
|
5729
5816
|
_: 3
|
|
5730
5817
|
}, 8, ["name"]);
|
|
5731
5818
|
}
|
|
5732
|
-
var
|
|
5819
|
+
var Kn = /* @__PURE__ */ q({
|
|
5733
5820
|
name: "w-notification",
|
|
5734
5821
|
props: {
|
|
5735
5822
|
modelValue: { default: !0 },
|
|
@@ -5859,27 +5946,27 @@ var Rn = /* @__PURE__ */ K({
|
|
|
5859
5946
|
watch: { modelValue(e) {
|
|
5860
5947
|
clearTimeout(this.timeoutId), this.show = e, e && this.timeoutVal && this.countdown();
|
|
5861
5948
|
} }
|
|
5862
|
-
}, [["render",
|
|
5949
|
+
}, [["render", Gn]]);
|
|
5863
5950
|
//#endregion
|
|
5864
5951
|
//#region src/wave-ui/components/w-overlay.vue?vue&type=template&lang.js
|
|
5865
|
-
function
|
|
5952
|
+
function qn(e, t, n, i, a, l) {
|
|
5866
5953
|
return b(), o(r, {
|
|
5867
5954
|
name: "fade",
|
|
5868
5955
|
appear: "",
|
|
5869
5956
|
onAfterLeave: l.onClose
|
|
5870
5957
|
}, {
|
|
5871
|
-
default:
|
|
5958
|
+
default: j(() => [n.modelValue ? M((b(), c("div", {
|
|
5872
5959
|
key: 0,
|
|
5873
5960
|
class: _(["w-overlay", l.classes]),
|
|
5874
5961
|
ref: "overlay",
|
|
5875
5962
|
style: y(n.modelValue && l.styles || null),
|
|
5876
5963
|
onClick: t[0] ||= (...e) => l.onClick && l.onClick(...e),
|
|
5877
5964
|
tabindex: "0"
|
|
5878
|
-
}, [T(e.$slots, "default")], 6)), [[
|
|
5965
|
+
}, [T(e.$slots, "default")], 6)), [[se, e.showOverlay]]) : s("", !0)]),
|
|
5879
5966
|
_: 3
|
|
5880
5967
|
}, 8, ["onAfterLeave"]);
|
|
5881
5968
|
}
|
|
5882
|
-
var
|
|
5969
|
+
var Jn = /* @__PURE__ */ q({
|
|
5883
5970
|
name: "w-overlay",
|
|
5884
5971
|
expose: ["focus"],
|
|
5885
5972
|
props: {
|
|
@@ -5933,7 +6020,7 @@ var Bn = /* @__PURE__ */ K({
|
|
|
5933
6020
|
},
|
|
5934
6021
|
methods: {
|
|
5935
6022
|
focus() {
|
|
5936
|
-
|
|
6023
|
+
J(this.$refs.overlay);
|
|
5937
6024
|
},
|
|
5938
6025
|
bindDocumentEscape() {
|
|
5939
6026
|
this.documentEscapeBound ||= (document.addEventListener("keydown", this.onDocumentEscape), !0);
|
|
@@ -5963,22 +6050,22 @@ var Bn = /* @__PURE__ */ K({
|
|
|
5963
6050
|
watch: { modelValue(e) {
|
|
5964
6051
|
e ? (this.showOverlay = !0, this.bindDocumentEscape()) : this.unbindDocumentEscape();
|
|
5965
6052
|
} }
|
|
5966
|
-
}, [["render",
|
|
5967
|
-
function
|
|
5968
|
-
return b(), c("div",
|
|
6053
|
+
}, [["render", qn]]), Yn = { class: "w-parallax" };
|
|
6054
|
+
function Xn(e, t, n, r, i, a) {
|
|
6055
|
+
return b(), c("div", Yn);
|
|
5969
6056
|
}
|
|
5970
|
-
var
|
|
6057
|
+
var Zn = /* @__PURE__ */ q({
|
|
5971
6058
|
name: "w-parallax",
|
|
5972
6059
|
props: {},
|
|
5973
6060
|
emits: [],
|
|
5974
6061
|
data: () => ({})
|
|
5975
|
-
}, [["render",
|
|
6062
|
+
}, [["render", Xn]]), Qn = ["viewBox"], $n = [
|
|
5976
6063
|
"cx",
|
|
5977
6064
|
"cy",
|
|
5978
6065
|
"r",
|
|
5979
6066
|
"stroke-dasharray",
|
|
5980
6067
|
"stroke-width"
|
|
5981
|
-
],
|
|
6068
|
+
], er = [
|
|
5982
6069
|
"cx",
|
|
5983
6070
|
"cy",
|
|
5984
6071
|
"r",
|
|
@@ -5986,7 +6073,7 @@ var Un = /* @__PURE__ */ K({
|
|
|
5986
6073
|
"stroke-linecap",
|
|
5987
6074
|
"stroke-dasharray"
|
|
5988
6075
|
];
|
|
5989
|
-
function
|
|
6076
|
+
function tr(e, t, n, r, i, a) {
|
|
5990
6077
|
return b(), c("div", {
|
|
5991
6078
|
class: _(["w-progress", a.classes]),
|
|
5992
6079
|
style: y(a.styles)
|
|
@@ -6002,7 +6089,7 @@ function qn(e, t, n, r, i, a) {
|
|
|
6002
6089
|
fill: "transparent",
|
|
6003
6090
|
"stroke-dasharray": e.circleCircumference,
|
|
6004
6091
|
"stroke-width": n.stroke
|
|
6005
|
-
}, null, 10,
|
|
6092
|
+
}, null, 10, $n)) : s("", !0), l("circle", {
|
|
6006
6093
|
class: "w-progress__progress",
|
|
6007
6094
|
cx: a.circleCenter,
|
|
6008
6095
|
cy: a.circleCenter,
|
|
@@ -6012,7 +6099,7 @@ function qn(e, t, n, r, i, a) {
|
|
|
6012
6099
|
"stroke-linecap": n.roundCap && "round",
|
|
6013
6100
|
"stroke-dasharray": e.circleCircumference,
|
|
6014
6101
|
style: y(`stroke-dashoffset: ${(1 - a.progressValue / 100) * e.circleCircumference}`)
|
|
6015
|
-
}, null, 12,
|
|
6102
|
+
}, null, 12, er)], 8, Qn)) : (b(), c("div", {
|
|
6016
6103
|
key: 0,
|
|
6017
6104
|
class: _(["w-progress__progress", { full: a.progressValue === 100 }]),
|
|
6018
6105
|
style: y(`width: ${a.progressValue}%`)
|
|
@@ -6023,7 +6110,7 @@ function qn(e, t, n, r, i, a) {
|
|
|
6023
6110
|
}
|
|
6024
6111
|
//#endregion
|
|
6025
6112
|
//#region src/wave-ui/components/w-progress.vue
|
|
6026
|
-
var
|
|
6113
|
+
var nr = 40, rr = nr / 2, ir = Math.round(nr * 3.14 * 100) / 100, ar = /* @__PURE__ */ q({
|
|
6027
6114
|
name: "w-progress",
|
|
6028
6115
|
props: {
|
|
6029
6116
|
modelValue: {
|
|
@@ -6065,16 +6152,16 @@ var Jn = 40, Yn = Jn / 2, Xn = Math.round(Jn * 3.14 * 100) / 100, Zn = /* @__PUR
|
|
|
6065
6152
|
},
|
|
6066
6153
|
emits: [],
|
|
6067
6154
|
data: () => ({
|
|
6068
|
-
circleSize:
|
|
6069
|
-
circleRadius:
|
|
6070
|
-
circleCircumference:
|
|
6155
|
+
circleSize: nr,
|
|
6156
|
+
circleRadius: rr,
|
|
6157
|
+
circleCircumference: ir
|
|
6071
6158
|
}),
|
|
6072
6159
|
computed: {
|
|
6073
6160
|
progressValue() {
|
|
6074
6161
|
return parseFloat(this.modelValue);
|
|
6075
6162
|
},
|
|
6076
6163
|
circleCenter() {
|
|
6077
|
-
return
|
|
6164
|
+
return nr + this.stroke;
|
|
6078
6165
|
},
|
|
6079
6166
|
forcedSize() {
|
|
6080
6167
|
return this.size && (isNaN(this.size) ? this.size : `${this.size}px`);
|
|
@@ -6104,7 +6191,7 @@ var Jn = 40, Yn = Jn / 2, Xn = Math.round(Jn * 3.14 * 100) / 100, Zn = /* @__PUR
|
|
|
6104
6191
|
return { [this.circle ? "width" : "height"]: this.forcedSize || null };
|
|
6105
6192
|
}
|
|
6106
6193
|
}
|
|
6107
|
-
}, [["render",
|
|
6194
|
+
}, [["render", tr]]), or = [
|
|
6108
6195
|
"id",
|
|
6109
6196
|
"name",
|
|
6110
6197
|
"checked",
|
|
@@ -6112,8 +6199,8 @@ var Jn = 40, Yn = Jn / 2, Xn = Math.round(Jn * 3.14 * 100) / 100, Zn = /* @__PUR
|
|
|
6112
6199
|
"required",
|
|
6113
6200
|
"tabindex",
|
|
6114
6201
|
"aria-checked"
|
|
6115
|
-
],
|
|
6116
|
-
function
|
|
6202
|
+
], sr = ["for"], cr = ["for", "innerHTML"], lr = ["for"], ur = ["for", "innerHTML"];
|
|
6203
|
+
function dr(t, n, r, i, a, u) {
|
|
6117
6204
|
return b(), o(D(t.formRegister && !u.wRadios ? "w-form-element" : "div"), h({ ref: "formEl" }, t.formRegister && {
|
|
6118
6205
|
validators: t.validators,
|
|
6119
6206
|
inputValue: t.inputValue,
|
|
@@ -6128,7 +6215,7 @@ function rr(t, n, r, i, a, u) {
|
|
|
6128
6215
|
},
|
|
6129
6216
|
class: u.classes
|
|
6130
6217
|
}), {
|
|
6131
|
-
default:
|
|
6218
|
+
default: j(() => [
|
|
6132
6219
|
l("input", {
|
|
6133
6220
|
ref: "input",
|
|
6134
6221
|
id: t.inputId,
|
|
@@ -6142,17 +6229,17 @@ function rr(t, n, r, i, a, u) {
|
|
|
6142
6229
|
onChange: n[1] ||= (e) => u.onInput(e),
|
|
6143
6230
|
"aria-checked": t.inputValue || "false",
|
|
6144
6231
|
role: "radio"
|
|
6145
|
-
}, null, 40,
|
|
6232
|
+
}, null, 40, or),
|
|
6146
6233
|
u.hasLabel && r.labelOnLeft ? (b(), c(e, { key: 0 }, [t.$slots.default ? (b(), c("label", {
|
|
6147
6234
|
key: 0,
|
|
6148
6235
|
class: _(["w-radio__label w-form-el-shakable pr2", t.labelClasses]),
|
|
6149
6236
|
for: t.inputId
|
|
6150
|
-
}, [T(t.$slots, "default", {}, () => [d(O(r.label), 1)])], 10,
|
|
6237
|
+
}, [T(t.$slots, "default", {}, () => [d(O(r.label), 1)])], 10, sr)) : r.label ? (b(), c("label", {
|
|
6151
6238
|
key: 1,
|
|
6152
6239
|
class: _(["w-radio__label w-form-el-shakable pr2", t.labelClasses]),
|
|
6153
6240
|
for: t.inputId,
|
|
6154
6241
|
innerHTML: r.label
|
|
6155
|
-
}, null, 10,
|
|
6242
|
+
}, null, 10, cr)) : s("", !0)], 64)) : s("", !0),
|
|
6156
6243
|
l("div", {
|
|
6157
6244
|
class: _(["w-radio__input", this.color]),
|
|
6158
6245
|
onClick: n[2] ||= (e) => {
|
|
@@ -6163,17 +6250,17 @@ function rr(t, n, r, i, a, u) {
|
|
|
6163
6250
|
key: 0,
|
|
6164
6251
|
class: _(["w-radio__label w-form-el-shakable pl2", t.labelClasses]),
|
|
6165
6252
|
for: t.inputId
|
|
6166
|
-
}, [T(t.$slots, "default", {}, () => [d(O(r.label), 1)])], 10,
|
|
6253
|
+
}, [T(t.$slots, "default", {}, () => [d(O(r.label), 1)])], 10, lr)) : r.label ? (b(), c("label", {
|
|
6167
6254
|
key: 1,
|
|
6168
6255
|
class: _(["w-radio__label w-form-el-shakable pl2", t.labelClasses]),
|
|
6169
6256
|
for: t.inputId,
|
|
6170
6257
|
innerHTML: r.label
|
|
6171
|
-
}, null, 10,
|
|
6258
|
+
}, null, 10, ur)) : s("", !0)], 64)) : s("", !0)
|
|
6172
6259
|
]),
|
|
6173
6260
|
_: 3
|
|
6174
6261
|
}, 16, ["valid", "class"]);
|
|
6175
6262
|
}
|
|
6176
|
-
var
|
|
6263
|
+
var fr = /* @__PURE__ */ q({
|
|
6177
6264
|
name: "w-radio",
|
|
6178
6265
|
expose: ["focus"],
|
|
6179
6266
|
mixins: [Q, $],
|
|
@@ -6254,8 +6341,8 @@ var ir = /* @__PURE__ */ K({
|
|
|
6254
6341
|
watch: { modelValue() {
|
|
6255
6342
|
this.toggleFromOutside();
|
|
6256
6343
|
} }
|
|
6257
|
-
}, [["render",
|
|
6258
|
-
function
|
|
6344
|
+
}, [["render", dr]]), pr = ["innerHTML"];
|
|
6345
|
+
function mr(t, n, r, i, a, l) {
|
|
6259
6346
|
let u = E("w-radio");
|
|
6260
6347
|
return b(), o(D(t.formRegister ? "w-form-element" : "div"), h({ ref: "formEl" }, t.formRegister && {
|
|
6261
6348
|
validators: t.validators,
|
|
@@ -6272,7 +6359,7 @@ function or(t, n, r, i, a, l) {
|
|
|
6272
6359
|
wrap: r.inline,
|
|
6273
6360
|
class: l.classes
|
|
6274
6361
|
}), {
|
|
6275
|
-
default:
|
|
6362
|
+
default: j(() => [(b(!0), c(e, null, w(l.radioItems, (e, i) => (b(), o(u, h({
|
|
6276
6363
|
ref_for: !0,
|
|
6277
6364
|
ref: "item",
|
|
6278
6365
|
key: i,
|
|
@@ -6290,7 +6377,7 @@ function or(t, n, r, i, a, l) {
|
|
|
6290
6377
|
readonly: t.isReadonly || null,
|
|
6291
6378
|
class: { mt1: !r.inline && i }
|
|
6292
6379
|
}), {
|
|
6293
|
-
default:
|
|
6380
|
+
default: j(() => [t.$slots[`item.${i + 1}`] || t.$slots.item ? T(t.$slots, t.$slots[`item.${i + 1}`] ? `item.${i + 1}` : "item", {
|
|
6294
6381
|
key: 0,
|
|
6295
6382
|
item: l.getOriginalItem(e),
|
|
6296
6383
|
index: i + 1,
|
|
@@ -6299,7 +6386,7 @@ function or(t, n, r, i, a, l) {
|
|
|
6299
6386
|
}) : e.label ? (b(), c("div", {
|
|
6300
6387
|
key: 1,
|
|
6301
6388
|
innerHTML: e.label
|
|
6302
|
-
}, null, 8,
|
|
6389
|
+
}, null, 8, pr)) : s("", !0)]),
|
|
6303
6390
|
_: 2
|
|
6304
6391
|
}, 1040, [
|
|
6305
6392
|
"model-value",
|
|
@@ -6317,8 +6404,9 @@ function or(t, n, r, i, a, l) {
|
|
|
6317
6404
|
"class"
|
|
6318
6405
|
]);
|
|
6319
6406
|
}
|
|
6320
|
-
var
|
|
6407
|
+
var hr = /* @__PURE__ */ q({
|
|
6321
6408
|
name: "w-radios",
|
|
6409
|
+
focusable: !0,
|
|
6322
6410
|
expose: ["focus"],
|
|
6323
6411
|
mixins: [Q],
|
|
6324
6412
|
setup() {
|
|
@@ -6394,7 +6482,7 @@ var sr = /* @__PURE__ */ K({
|
|
|
6394
6482
|
},
|
|
6395
6483
|
methods: {
|
|
6396
6484
|
focus() {
|
|
6397
|
-
|
|
6485
|
+
We(this) && [].concat(this.$refs.item || []).filter(Boolean).find((e) => !e.isDisabled && !e.isReadonly)?.focus?.();
|
|
6398
6486
|
},
|
|
6399
6487
|
onInput(e) {
|
|
6400
6488
|
this.inputValue = !0, this.$emit("update:modelValue", e.value), this.$emit("input", e.value);
|
|
@@ -6403,17 +6491,17 @@ var sr = /* @__PURE__ */ K({
|
|
|
6403
6491
|
return this.items[e._index];
|
|
6404
6492
|
}
|
|
6405
6493
|
}
|
|
6406
|
-
}, [["render",
|
|
6494
|
+
}, [["render", mr]]), gr = [
|
|
6407
6495
|
"id",
|
|
6408
6496
|
"name",
|
|
6409
6497
|
"value"
|
|
6410
|
-
],
|
|
6498
|
+
], _r = [
|
|
6411
6499
|
"disabled",
|
|
6412
6500
|
"onMouseenter",
|
|
6413
6501
|
"onClick",
|
|
6414
6502
|
"tabindex"
|
|
6415
6503
|
];
|
|
6416
|
-
function
|
|
6504
|
+
function vr(t, n, r, i, a, u) {
|
|
6417
6505
|
return b(), o(D(t.formRegister ? "w-form-element" : "div"), h({ ref: "formEl" }, t.formRegister && {
|
|
6418
6506
|
validators: t.validators,
|
|
6419
6507
|
inputValue: a.rating,
|
|
@@ -6428,12 +6516,12 @@ function ur(t, n, r, i, a, u) {
|
|
|
6428
6516
|
},
|
|
6429
6517
|
class: u.classes
|
|
6430
6518
|
}), {
|
|
6431
|
-
default:
|
|
6519
|
+
default: j(() => [l("input", {
|
|
6432
6520
|
id: t.inputId,
|
|
6433
6521
|
name: t.inputName,
|
|
6434
6522
|
type: "hidden",
|
|
6435
6523
|
value: a.rating
|
|
6436
|
-
}, null, 8,
|
|
6524
|
+
}, 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
6525
|
key: 0,
|
|
6438
6526
|
index: i + 1
|
|
6439
6527
|
}) : s("", !0), l("button", {
|
|
@@ -6453,12 +6541,13 @@ function ur(t, n, r, i, a, u) {
|
|
|
6453
6541
|
role: "icon",
|
|
6454
6542
|
"aria-hidden": "true",
|
|
6455
6543
|
style: y(u.halfStarStyle)
|
|
6456
|
-
}, null, 6)) : s("", !0)], 42,
|
|
6544
|
+
}, null, 6)) : s("", !0)], 42, _r)], 64))), 128))]),
|
|
6457
6545
|
_: 3
|
|
6458
6546
|
}, 16, ["valid", "class"]);
|
|
6459
6547
|
}
|
|
6460
|
-
var
|
|
6548
|
+
var yr = /* @__PURE__ */ q({
|
|
6461
6549
|
name: "w-rating",
|
|
6550
|
+
focusable: !0,
|
|
6462
6551
|
expose: ["focus"],
|
|
6463
6552
|
mixins: [Q],
|
|
6464
6553
|
setup() {
|
|
@@ -6529,7 +6618,7 @@ var dr = /* @__PURE__ */ K({
|
|
|
6529
6618
|
},
|
|
6530
6619
|
methods: {
|
|
6531
6620
|
focus() {
|
|
6532
|
-
|
|
6621
|
+
We(this) && J(this.$el.querySelector(".w-rating__button:not([disabled])"));
|
|
6533
6622
|
},
|
|
6534
6623
|
onButtonClick(e) {
|
|
6535
6624
|
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 +6658,17 @@ var dr = /* @__PURE__ */ K({
|
|
|
6569
6658
|
watch: { value(e) {
|
|
6570
6659
|
this.rating = parseFloat(e);
|
|
6571
6660
|
} }
|
|
6572
|
-
}, [["render",
|
|
6661
|
+
}, [["render", vr]]), br = ["tabindex", "aria-disabled"], xr = ["id"], Sr = [
|
|
6573
6662
|
"aria-controls",
|
|
6574
6663
|
"aria-orientation",
|
|
6575
6664
|
"aria-valuemax",
|
|
6576
6665
|
"aria-valuenow",
|
|
6577
6666
|
"aria-disabled",
|
|
6578
6667
|
"aria-label"
|
|
6579
|
-
],
|
|
6668
|
+
], Cr = 120, wr = 450, Tr = /* @__PURE__ */ Object.assign({
|
|
6669
|
+
name: "WScrollable",
|
|
6670
|
+
focusable: !0
|
|
6671
|
+
}, {
|
|
6580
6672
|
__name: "w-scrollable",
|
|
6581
6673
|
props: {
|
|
6582
6674
|
color: {
|
|
@@ -6654,44 +6746,44 @@ var dr = /* @__PURE__ */ K({
|
|
|
6654
6746
|
offset: 0,
|
|
6655
6747
|
trackStart: 0,
|
|
6656
6748
|
trackSize: 0
|
|
6657
|
-
}),
|
|
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(() => {
|
|
6658
6750
|
let e = r.scrollbar;
|
|
6659
6751
|
return e === 0 || e === "0" ? "off" : e === 1 || e === "1" ? "always" : e === "hover" ? "hover" : e === "interaction" ? "interaction" : "always";
|
|
6660
|
-
}),
|
|
6661
|
-
[`w-scrollable--${
|
|
6752
|
+
}), R = a(() => L.value !== "off"), de = a(() => ({
|
|
6753
|
+
[`w-scrollable--${I.value.direction}`]: !0,
|
|
6662
6754
|
"w-scrollable--disabled": r.disabled,
|
|
6663
6755
|
"w-scrollable--dragging": C.value,
|
|
6664
6756
|
"w-scrollable--scrolling": x.value || C.value
|
|
6665
|
-
})),
|
|
6666
|
-
[`w-scrollable__scrollbar--${
|
|
6667
|
-
"w-scrollable__scrollbar--hidden": !
|
|
6757
|
+
})), fe = a(() => ({
|
|
6758
|
+
[`w-scrollable__scrollbar--${I.value.direction}`]: !0,
|
|
6759
|
+
"w-scrollable__scrollbar--hidden": !be.value,
|
|
6668
6760
|
[`${r.bgColor}--bg`]: !!r.bgColor
|
|
6669
|
-
})),
|
|
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(() => {
|
|
6670
6762
|
if (!f.value) return 0;
|
|
6671
|
-
let e = Math.round(f.value[
|
|
6763
|
+
let e = Math.round(f.value[I.value.scrollTopOrLeft]), t = he.value;
|
|
6672
6764
|
return t ? Math.min(t, Math.max(0, e)) : 0;
|
|
6673
|
-
}),
|
|
6765
|
+
}), _e = a(() => {
|
|
6674
6766
|
let e = u["aria-label"] ?? u.ariaLabel;
|
|
6675
6767
|
return typeof e == "string" && e ? e : "";
|
|
6676
|
-
}),
|
|
6677
|
-
if (E.value, !f.value || !
|
|
6678
|
-
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];
|
|
6679
6771
|
return Math.max(8, Math.min(100, e * 100 / t));
|
|
6680
|
-
}),
|
|
6681
|
-
let e =
|
|
6682
|
-
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;
|
|
6683
6775
|
});
|
|
6684
|
-
function
|
|
6776
|
+
function xe(e) {
|
|
6685
6777
|
if (!(e == null || e === "")) return typeof e == "number" ? `${e}px` : typeof e == "string" && /^-?\d+(\.\d+)?$/.test(e.trim()) ? `${e.trim()}px` : e;
|
|
6686
6778
|
}
|
|
6687
|
-
let
|
|
6688
|
-
"max-width":
|
|
6689
|
-
"max-height":
|
|
6690
|
-
})),
|
|
6691
|
-
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);
|
|
6692
6784
|
return {
|
|
6693
|
-
[
|
|
6694
|
-
[
|
|
6785
|
+
[I.value.size]: `${ye.value}%`,
|
|
6786
|
+
[I.value.topOrLeft]: `${t}%`
|
|
6695
6787
|
};
|
|
6696
6788
|
});
|
|
6697
6789
|
function H(e, t, n) {
|
|
@@ -6728,128 +6820,128 @@ var dr = /* @__PURE__ */ K({
|
|
|
6728
6820
|
source: e
|
|
6729
6821
|
};
|
|
6730
6822
|
}
|
|
6731
|
-
function
|
|
6823
|
+
function U(e = "native") {
|
|
6732
6824
|
let t = we(e);
|
|
6733
|
-
i("scroll", t), O.value || (O.value = !0, i("scroll-start", t)),
|
|
6825
|
+
i("scroll", t), O.value || (O.value = !0, i("scroll-start", t)), A && window.clearTimeout(A), A = window.setTimeout(() => {
|
|
6734
6826
|
O.value = !1, i("scroll-end", we("native"));
|
|
6735
|
-
},
|
|
6827
|
+
}, Cr);
|
|
6736
6828
|
}
|
|
6737
|
-
function
|
|
6829
|
+
function Te() {
|
|
6738
6830
|
v.value = !0;
|
|
6739
6831
|
}
|
|
6740
|
-
function
|
|
6832
|
+
function Ee() {
|
|
6741
6833
|
v.value = !1;
|
|
6742
6834
|
}
|
|
6743
|
-
function
|
|
6744
|
-
f.value && (w.value =
|
|
6835
|
+
function W() {
|
|
6836
|
+
f.value && (w.value = B.value ? f.value[I.value.scrollTopOrLeft] * 100 / B.value : 0);
|
|
6745
6837
|
}
|
|
6746
|
-
function
|
|
6838
|
+
function G(e, t = "api") {
|
|
6747
6839
|
if (!f.value) return;
|
|
6748
|
-
let n = H(e, 0,
|
|
6840
|
+
let n = H(e, 0, B.value), r = f.value[I.value.scrollTopOrLeft];
|
|
6749
6841
|
if (ne.value = t, Math.abs(r - n) < 1) {
|
|
6750
|
-
|
|
6842
|
+
W(), U(t);
|
|
6751
6843
|
return;
|
|
6752
6844
|
}
|
|
6753
|
-
(t === "wheel" || t === "keyboard") &&
|
|
6845
|
+
(t === "wheel" || t === "keyboard") && q(), D.value = !0, f.value[I.value.scrollTopOrLeft] = n, W(), U(t);
|
|
6754
6846
|
}
|
|
6755
|
-
function
|
|
6756
|
-
|
|
6847
|
+
function De(e, t = "api") {
|
|
6848
|
+
G(H(e, 0, 100) / 100 * B.value, t);
|
|
6757
6849
|
}
|
|
6758
|
-
function
|
|
6850
|
+
function K() {
|
|
6759
6851
|
g(() => {
|
|
6760
|
-
E.value++,
|
|
6761
|
-
E.value++,
|
|
6852
|
+
E.value++, W(), requestAnimationFrame(() => {
|
|
6853
|
+
E.value++, W();
|
|
6762
6854
|
});
|
|
6763
6855
|
});
|
|
6764
6856
|
}
|
|
6765
|
-
function
|
|
6857
|
+
function Oe() {
|
|
6766
6858
|
if (D.value) {
|
|
6767
6859
|
D.value = !1;
|
|
6768
6860
|
return;
|
|
6769
6861
|
}
|
|
6770
|
-
|
|
6862
|
+
W(), U(ne.value), ne.value = "native";
|
|
6771
6863
|
}
|
|
6772
|
-
function
|
|
6864
|
+
function ke(e) {
|
|
6773
6865
|
let t = e.deltaX || 0, n = e.deltaY || 0, i = 0;
|
|
6774
|
-
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;
|
|
6775
6867
|
}
|
|
6776
|
-
function
|
|
6777
|
-
x.value = !0,
|
|
6778
|
-
x.value = !1,
|
|
6779
|
-
},
|
|
6868
|
+
function q() {
|
|
6869
|
+
x.value = !0, j && window.clearTimeout(j), j = window.setTimeout(() => {
|
|
6870
|
+
x.value = !1, j = null;
|
|
6871
|
+
}, wr);
|
|
6780
6872
|
}
|
|
6781
|
-
function
|
|
6873
|
+
function Ae() {
|
|
6782
6874
|
let e = r.scrollPosition;
|
|
6783
6875
|
if (e == null || !f.value) return;
|
|
6784
6876
|
if (typeof e == "number") {
|
|
6785
6877
|
if (Number.isNaN(e)) return;
|
|
6786
|
-
|
|
6878
|
+
G(e, "api");
|
|
6787
6879
|
return;
|
|
6788
6880
|
}
|
|
6789
6881
|
if (typeof e != "object" || !e) return;
|
|
6790
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);
|
|
6791
6883
|
if (a || o) {
|
|
6792
|
-
D.value = !0, a && (t.scrollTop = H(e.top, 0, n)), o && (t.scrollLeft = H(e.left, 0, i)),
|
|
6884
|
+
D.value = !0, a && (t.scrollTop = H(e.top, 0, n)), o && (t.scrollLeft = H(e.left, 0, i)), W(), U("api");
|
|
6793
6885
|
return;
|
|
6794
6886
|
}
|
|
6795
|
-
let s =
|
|
6796
|
-
typeof s == "number" && !Number.isNaN(s) &&
|
|
6887
|
+
let s = F.value ? e.left ?? e.top : e.top ?? e.left;
|
|
6888
|
+
typeof s == "number" && !Number.isNaN(s) && G(s, "api");
|
|
6797
6889
|
}
|
|
6798
|
-
function
|
|
6799
|
-
e ? (
|
|
6890
|
+
function je(e) {
|
|
6891
|
+
e ? (le = document.documentElement.style.cursor, document.documentElement.style.cursor = "grabbing") : (document.documentElement.style.cursor = le, le = "");
|
|
6800
6892
|
}
|
|
6801
|
-
function
|
|
6802
|
-
document.addEventListener("pointermove",
|
|
6893
|
+
function Me() {
|
|
6894
|
+
document.addEventListener("pointermove", Ve, !0), document.addEventListener("pointerup", He, !0), document.addEventListener("pointercancel", He, !0);
|
|
6803
6895
|
}
|
|
6804
|
-
function
|
|
6805
|
-
document.removeEventListener("pointermove",
|
|
6896
|
+
function Ne() {
|
|
6897
|
+
document.removeEventListener("pointermove", Ve, !0), document.removeEventListener("pointerup", He, !0), document.removeEventListener("pointercancel", He, !0);
|
|
6806
6898
|
}
|
|
6807
|
-
function
|
|
6808
|
-
if (r.disabled || !
|
|
6899
|
+
function Pe(e) {
|
|
6900
|
+
if (r.disabled || !z.value) return;
|
|
6809
6901
|
if (e.metaKey) {
|
|
6810
|
-
let t =
|
|
6902
|
+
let t = ke(e);
|
|
6811
6903
|
if (!t) return;
|
|
6812
|
-
e.preventDefault(),
|
|
6904
|
+
e.preventDefault(), G(t < 0 ? 0 : B.value, "wheel");
|
|
6813
6905
|
return;
|
|
6814
6906
|
}
|
|
6815
|
-
let t =
|
|
6907
|
+
let t = ke(e);
|
|
6816
6908
|
if (!t) return;
|
|
6817
|
-
let n = f.value[
|
|
6818
|
-
a || o || (e.preventDefault(),
|
|
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;
|
|
6910
|
+
a || o || (e.preventDefault(), G(i, "wheel"));
|
|
6819
6911
|
}
|
|
6820
|
-
function
|
|
6821
|
-
if (r.disabled || !
|
|
6822
|
-
let t = f.value[
|
|
6912
|
+
function Fe(e) {
|
|
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;
|
|
6823
6915
|
if (e.metaKey) {
|
|
6824
|
-
if (e.key === "ArrowUp" && !
|
|
6825
|
-
e.preventDefault(),
|
|
6916
|
+
if (e.key === "ArrowUp" && !F.value) {
|
|
6917
|
+
e.preventDefault(), G(0, "keyboard");
|
|
6826
6918
|
return;
|
|
6827
6919
|
}
|
|
6828
|
-
if (e.key === "ArrowDown" && !
|
|
6829
|
-
e.preventDefault(),
|
|
6920
|
+
if (e.key === "ArrowDown" && !F.value) {
|
|
6921
|
+
e.preventDefault(), G(B.value, "keyboard");
|
|
6830
6922
|
return;
|
|
6831
6923
|
}
|
|
6832
|
-
if (e.key === "ArrowLeft" &&
|
|
6833
|
-
e.preventDefault(),
|
|
6924
|
+
if (e.key === "ArrowLeft" && F.value) {
|
|
6925
|
+
e.preventDefault(), G(0, "keyboard");
|
|
6834
6926
|
return;
|
|
6835
6927
|
}
|
|
6836
|
-
if (e.key === "ArrowRight" &&
|
|
6837
|
-
e.preventDefault(),
|
|
6928
|
+
if (e.key === "ArrowRight" && F.value) {
|
|
6929
|
+
e.preventDefault(), G(B.value, "keyboard");
|
|
6838
6930
|
return;
|
|
6839
6931
|
}
|
|
6840
6932
|
}
|
|
6841
6933
|
switch (e.key) {
|
|
6842
6934
|
case "ArrowUp":
|
|
6843
|
-
|
|
6935
|
+
F.value || (a = t - n);
|
|
6844
6936
|
break;
|
|
6845
6937
|
case "ArrowDown":
|
|
6846
|
-
|
|
6938
|
+
F.value || (a = t + n);
|
|
6847
6939
|
break;
|
|
6848
6940
|
case "ArrowLeft":
|
|
6849
|
-
|
|
6941
|
+
F.value && (a = t - n);
|
|
6850
6942
|
break;
|
|
6851
6943
|
case "ArrowRight":
|
|
6852
|
-
|
|
6944
|
+
F.value && (a = t + n);
|
|
6853
6945
|
break;
|
|
6854
6946
|
case "PageUp":
|
|
6855
6947
|
a = t - i;
|
|
@@ -6861,160 +6953,160 @@ var dr = /* @__PURE__ */ K({
|
|
|
6861
6953
|
a = 0;
|
|
6862
6954
|
break;
|
|
6863
6955
|
case "End":
|
|
6864
|
-
a =
|
|
6956
|
+
a = B.value;
|
|
6865
6957
|
break;
|
|
6866
6958
|
}
|
|
6867
|
-
a !== null && (e.preventDefault(),
|
|
6959
|
+
a !== null && (e.preventDefault(), G(a, "keyboard"));
|
|
6868
6960
|
}
|
|
6869
|
-
function
|
|
6961
|
+
function Ie(e, t, n) {
|
|
6870
6962
|
if (!p.value) return;
|
|
6871
6963
|
let r = p.value.getBoundingClientRect();
|
|
6872
|
-
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;
|
|
6873
6965
|
let i = n?.pointerId;
|
|
6874
6966
|
if (i != null && d.value?.setPointerCapture) try {
|
|
6875
|
-
d.value.setPointerCapture(i),
|
|
6967
|
+
d.value.setPointerCapture(i), oe.value = i;
|
|
6876
6968
|
} catch {
|
|
6877
|
-
|
|
6969
|
+
oe.value = null;
|
|
6878
6970
|
}
|
|
6879
|
-
|
|
6971
|
+
je(!0), Le(e), Me();
|
|
6880
6972
|
}
|
|
6881
|
-
function
|
|
6973
|
+
function Le(e) {
|
|
6882
6974
|
if (!C.value || !k.value.trackSize) return;
|
|
6883
|
-
let t = k.value.trackSize * (
|
|
6884
|
-
|
|
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");
|
|
6885
6977
|
}
|
|
6886
|
-
function
|
|
6887
|
-
if (
|
|
6978
|
+
function Re() {
|
|
6979
|
+
if (oe.value != null && d.value?.releasePointerCapture) {
|
|
6888
6980
|
try {
|
|
6889
|
-
d.value.releasePointerCapture(
|
|
6981
|
+
d.value.releasePointerCapture(oe.value);
|
|
6890
6982
|
} catch {}
|
|
6891
|
-
|
|
6983
|
+
oe.value = null;
|
|
6892
6984
|
}
|
|
6893
|
-
|
|
6985
|
+
je(!1), C.value = !1, Ne();
|
|
6894
6986
|
}
|
|
6895
|
-
function
|
|
6987
|
+
function ze(e) {
|
|
6896
6988
|
if (r.disabled || e.button !== 0 && e.pointerType !== "touch") return;
|
|
6897
|
-
|
|
6898
|
-
let t = m.value?.getBoundingClientRect(), n = t ? t[
|
|
6899
|
-
|
|
6989
|
+
Re();
|
|
6990
|
+
let t = m.value?.getBoundingClientRect(), n = t ? t[I.value.size] / 2 : 0;
|
|
6991
|
+
Ie(e[I.value.clientXorY], n, e);
|
|
6900
6992
|
}
|
|
6901
|
-
function
|
|
6993
|
+
function Be(e) {
|
|
6902
6994
|
if (r.disabled || e.button !== 0 && e.pointerType !== "touch") return;
|
|
6903
|
-
|
|
6904
|
-
let t = m.value?.getBoundingClientRect(), n = t ? e[
|
|
6905
|
-
|
|
6995
|
+
Re();
|
|
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);
|
|
6906
6998
|
}
|
|
6907
|
-
function
|
|
6908
|
-
C.value && (e.cancelable && e.preventDefault(),
|
|
6999
|
+
function Ve(e) {
|
|
7000
|
+
C.value && (e.cancelable && e.preventDefault(), Le(e[I.value.clientXorY]));
|
|
6909
7001
|
}
|
|
6910
|
-
function
|
|
6911
|
-
C.value &&
|
|
7002
|
+
function He() {
|
|
7003
|
+
C.value && Re();
|
|
6912
7004
|
}
|
|
6913
|
-
function
|
|
7005
|
+
function Ue(e = w.value) {
|
|
6914
7006
|
if (typeof e == "number") {
|
|
6915
|
-
|
|
7007
|
+
De(e, "api");
|
|
6916
7008
|
return;
|
|
6917
7009
|
}
|
|
6918
|
-
e && typeof e == "object" &&
|
|
7010
|
+
e && typeof e == "object" && J(e);
|
|
6919
7011
|
}
|
|
6920
|
-
function
|
|
6921
|
-
let r =
|
|
6922
|
-
typeof r == "number" &&
|
|
7012
|
+
function J({ top: e, left: t, behavior: n = "auto" } = {}) {
|
|
7013
|
+
let r = F.value ? t ?? e : e ?? t;
|
|
7014
|
+
typeof r == "number" && G(r, "api");
|
|
6923
7015
|
}
|
|
6924
7016
|
function We({ top: e = 0, left: t = 0, behavior: n = "auto" } = {}) {
|
|
6925
7017
|
if (!f.value) return;
|
|
6926
|
-
let r =
|
|
6927
|
-
|
|
7018
|
+
let r = F.value ? t : e;
|
|
7019
|
+
G(f.value[I.value.scrollTopOrLeft] + r, "api");
|
|
6928
7020
|
}
|
|
6929
7021
|
function Ge() {
|
|
6930
|
-
|
|
7022
|
+
G(0, "api");
|
|
6931
7023
|
}
|
|
6932
7024
|
function Ke() {
|
|
6933
|
-
|
|
7025
|
+
G(B.value, "api");
|
|
6934
7026
|
}
|
|
6935
|
-
function
|
|
7027
|
+
function qe() {
|
|
6936
7028
|
d.value?.focus();
|
|
6937
7029
|
}
|
|
6938
7030
|
return te(() => {
|
|
6939
|
-
|
|
7031
|
+
K(), window.addEventListener("resize", K), typeof ResizeObserver < "u" && f.value && (N = new ResizeObserver(() => K()), N.observe(f.value)), g(() => {
|
|
6940
7032
|
requestAnimationFrame(() => {
|
|
6941
|
-
|
|
7033
|
+
Ae(), W();
|
|
6942
7034
|
});
|
|
6943
7035
|
});
|
|
6944
|
-
}),
|
|
7036
|
+
}), ce(() => [
|
|
6945
7037
|
r.horizontal,
|
|
6946
7038
|
r.width,
|
|
6947
7039
|
r.height
|
|
6948
|
-
], () =>
|
|
7040
|
+
], () => K()), ce(() => r.scrollPosition, () => {
|
|
6949
7041
|
r.scrollPosition != null && g(() => {
|
|
6950
|
-
|
|
7042
|
+
Ae(), W();
|
|
6951
7043
|
});
|
|
6952
|
-
}, { deep: !0 }),
|
|
7044
|
+
}, { deep: !0 }), ce(F, () => {
|
|
6953
7045
|
r.scrollPosition != null && g(() => {
|
|
6954
|
-
|
|
7046
|
+
Ae(), W();
|
|
6955
7047
|
});
|
|
6956
7048
|
}), ee(() => {
|
|
6957
|
-
window.removeEventListener("resize",
|
|
7049
|
+
window.removeEventListener("resize", K), Re(), A && window.clearTimeout(A), j && window.clearTimeout(j), N && f.value && N.unobserve(f.value), N = null;
|
|
6958
7050
|
}), t({
|
|
6959
|
-
scroll:
|
|
6960
|
-
scrollTo:
|
|
7051
|
+
scroll: Ue,
|
|
7052
|
+
scrollTo: J,
|
|
6961
7053
|
scrollBy: We,
|
|
6962
7054
|
scrollToStart: Ge,
|
|
6963
7055
|
scrollToEnd: Ke,
|
|
6964
|
-
focus:
|
|
6965
|
-
refresh:
|
|
7056
|
+
focus: qe,
|
|
7057
|
+
refresh: K
|
|
6966
7058
|
}), (e, t) => (b(), c("div", h({
|
|
6967
7059
|
class: "w-scrollable",
|
|
6968
7060
|
ref_key: "rootEl",
|
|
6969
7061
|
ref: d
|
|
6970
7062
|
}, e.$attrs, {
|
|
6971
|
-
tabindex:
|
|
7063
|
+
tabindex: ue.value,
|
|
6972
7064
|
role: "region",
|
|
6973
7065
|
"aria-disabled": r.disabled ? "true" : void 0,
|
|
6974
|
-
onMouseenter:
|
|
6975
|
-
onMouseleave:
|
|
6976
|
-
onWheel:
|
|
6977
|
-
onKeydown:
|
|
6978
|
-
class:
|
|
6979
|
-
style:
|
|
7066
|
+
onMouseenter: Te,
|
|
7067
|
+
onMouseleave: Ee,
|
|
7068
|
+
onWheel: Pe,
|
|
7069
|
+
onKeydown: Fe,
|
|
7070
|
+
class: de.value,
|
|
7071
|
+
style: Se.value
|
|
6980
7072
|
}), [l("div", {
|
|
6981
|
-
class: _(["w-scrollable__content",
|
|
7073
|
+
class: _(["w-scrollable__content", pe.value]),
|
|
6982
7074
|
id: re(s),
|
|
6983
7075
|
ref_key: "scrollableEl",
|
|
6984
7076
|
ref: f,
|
|
6985
|
-
onScroll:
|
|
6986
|
-
}, [T(e.$slots, "default")], 42,
|
|
6987
|
-
class: _(["w-scrollable__scrollbar",
|
|
7077
|
+
onScroll: Oe
|
|
7078
|
+
}, [T(e.$slots, "default")], 42, xr), M(l("div", {
|
|
7079
|
+
class: _(["w-scrollable__scrollbar", fe.value]),
|
|
6988
7080
|
ref_key: "trackEl",
|
|
6989
7081
|
ref: p,
|
|
6990
7082
|
role: "presentation",
|
|
6991
|
-
onPointerdown:
|
|
7083
|
+
onPointerdown: P(ze, ["prevent"])
|
|
6992
7084
|
}, [l("div", {
|
|
6993
7085
|
class: _(["w-scrollable__scrollbar-thumb", { [r.color]: !!r.color }]),
|
|
6994
7086
|
ref_key: "thumbEl",
|
|
6995
7087
|
ref: m,
|
|
6996
|
-
style: y(
|
|
7088
|
+
style: y(V.value),
|
|
6997
7089
|
role: "scrollbar",
|
|
6998
7090
|
"aria-controls": re(s),
|
|
6999
|
-
"aria-orientation":
|
|
7091
|
+
"aria-orientation": me.value,
|
|
7000
7092
|
"aria-valuemin": 0,
|
|
7001
|
-
"aria-valuemax":
|
|
7002
|
-
"aria-valuenow":
|
|
7093
|
+
"aria-valuemax": he.value,
|
|
7094
|
+
"aria-valuenow": ge.value,
|
|
7003
7095
|
"aria-disabled": r.disabled ? "true" : void 0,
|
|
7004
|
-
"aria-label":
|
|
7096
|
+
"aria-label": ve.value,
|
|
7005
7097
|
tabindex: "-1",
|
|
7006
|
-
onPointerdown:
|
|
7007
|
-
}, null, 46,
|
|
7098
|
+
onPointerdown: P(Be, ["stop", "prevent"])
|
|
7099
|
+
}, null, 46, Sr)], 34), [[se, z.value && R.value]])], 16, br));
|
|
7008
7100
|
}
|
|
7009
|
-
}),
|
|
7101
|
+
}), Er = [
|
|
7010
7102
|
"aria-expanded",
|
|
7011
7103
|
"aria-owns",
|
|
7012
7104
|
"aria-activedescendant"
|
|
7013
|
-
],
|
|
7105
|
+
], Dr = {
|
|
7014
7106
|
key: 0,
|
|
7015
7107
|
class: "w-select__selection-slot"
|
|
7016
|
-
},
|
|
7017
|
-
function
|
|
7108
|
+
}, Or = ["innerHTML"], kr = ["value", "name"];
|
|
7109
|
+
function Ar(t, n, r, i, a, p) {
|
|
7018
7110
|
let m = E("w-icon"), g = E("w-list"), v = E("w-menu");
|
|
7019
7111
|
return b(), o(D(t.formRegister ? "w-form-element" : "div"), h({ ref: "formEl" }, t.formRegister && {
|
|
7020
7112
|
validators: t.validators,
|
|
@@ -7030,7 +7122,7 @@ function Sr(t, n, r, i, a, p) {
|
|
|
7030
7122
|
wrap: p.hasLabel && r.labelPosition !== "inside",
|
|
7031
7123
|
class: p.classes
|
|
7032
7124
|
}), {
|
|
7033
|
-
default:
|
|
7125
|
+
default: j(() => [
|
|
7034
7126
|
r.labelPosition === "left" ? (b(), c(e, { key: 0 }, [t.$slots.default || r.label ? (b(), c("label", {
|
|
7035
7127
|
key: 0,
|
|
7036
7128
|
class: _(["w-select__label w-select__label--left w-form-el-shakable", t.labelClasses]),
|
|
@@ -7047,7 +7139,7 @@ function Sr(t, n, r, i, a, p) {
|
|
|
7047
7139
|
custom: "",
|
|
7048
7140
|
"min-width": "activator"
|
|
7049
7141
|
}, r.menuProps || {}), {
|
|
7050
|
-
content:
|
|
7142
|
+
content: j(() => [f(g, {
|
|
7051
7143
|
ref: "w-list",
|
|
7052
7144
|
"model-value": t.inputValue,
|
|
7053
7145
|
"onUpdate:modelValue": p.onInput,
|
|
@@ -7068,7 +7160,7 @@ function Sr(t, n, r, i, a, p) {
|
|
|
7068
7160
|
tabindex: "-1"
|
|
7069
7161
|
}, u({ _: 2 }, [w(r.items.length, (e) => ({
|
|
7070
7162
|
name: `item.${e}`,
|
|
7071
|
-
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}`, {
|
|
7072
7164
|
key: 0,
|
|
7073
7165
|
item: n,
|
|
7074
7166
|
selected: i,
|
|
@@ -7091,7 +7183,7 @@ function Sr(t, n, r, i, a, p) {
|
|
|
7091
7183
|
"selection-color",
|
|
7092
7184
|
"item-color-key"
|
|
7093
7185
|
])]),
|
|
7094
|
-
default:
|
|
7186
|
+
default: j(() => [l("div", {
|
|
7095
7187
|
class: _(["w-select__selection-wrap", p.inputWrapClasses]),
|
|
7096
7188
|
onClick: n[6] ||= (e) => !t.isDisabled && !t.isReadonly && p.onInputFieldClick(),
|
|
7097
7189
|
role: "button",
|
|
@@ -7106,23 +7198,23 @@ function Sr(t, n, r, i, a, p) {
|
|
|
7106
7198
|
tag: "label",
|
|
7107
7199
|
onClick: n[1] ||= (e) => t.$emit("click:inner-icon-left", e)
|
|
7108
7200
|
}, {
|
|
7109
|
-
default:
|
|
7201
|
+
default: j(() => [d(O(r.innerIconLeft), 1)]),
|
|
7110
7202
|
_: 1
|
|
7111
7203
|
})) : s("", !0)]),
|
|
7112
|
-
t.$slots.selection ? (b(), c("div",
|
|
7204
|
+
t.$slots.selection ? (b(), c("div", Dr, [T(t.$slots, "selection", { item: r.multiple ? t.inputValue : t.inputValue[0] })])) : s("", !0),
|
|
7113
7205
|
l("div", h({
|
|
7114
7206
|
class: "w-select__selection",
|
|
7115
7207
|
ref: "selection-input",
|
|
7116
7208
|
onFocus: n[2] ||= (e) => !t.isDisabled && !t.isReadonly && p.onFocus(e),
|
|
7117
7209
|
onBlur: n[3] ||= (...e) => p.onBlur && p.onBlur(...e),
|
|
7118
7210
|
onKeydown: n[4] ||= (e) => !t.isDisabled && !t.isReadonly && p.onKeydown(e)
|
|
7119
|
-
}, p.selectionAttributes, { innerHTML: p.selectionHtml }), null, 16,
|
|
7211
|
+
}, p.selectionAttributes, { innerHTML: p.selectionHtml }), null, 16, Or),
|
|
7120
7212
|
(b(!0), c(e, null, w(t.inputValue.length ? t.inputValue : [{}], (e, n) => (b(), c("input", {
|
|
7121
7213
|
key: n,
|
|
7122
7214
|
type: "hidden",
|
|
7123
7215
|
value: e.value === void 0 ? "" : e.value.toString(),
|
|
7124
7216
|
name: t.inputName + (r.multiple ? "[]" : "")
|
|
7125
|
-
}, null, 8,
|
|
7217
|
+
}, null, 8, kr))), 128)),
|
|
7126
7218
|
r.labelPosition === "inside" && p.showLabelInside ? (b(), c(e, { key: 1 }, [t.$slots.default || r.label ? (b(), c("label", {
|
|
7127
7219
|
key: 0,
|
|
7128
7220
|
class: _(["w-select__label w-select__label--inside w-form-el-shakable", t.labelClasses])
|
|
@@ -7133,10 +7225,10 @@ function Sr(t, n, r, i, a, p) {
|
|
|
7133
7225
|
tag: "label",
|
|
7134
7226
|
onClick: n[5] ||= (e) => t.$emit("click:inner-icon-right", e)
|
|
7135
7227
|
}, {
|
|
7136
|
-
default:
|
|
7228
|
+
default: j(() => [d(O(r.innerIconRight), 1)]),
|
|
7137
7229
|
_: 1
|
|
7138
7230
|
})) : s("", !0)])
|
|
7139
|
-
], 10,
|
|
7231
|
+
], 10, Er)]),
|
|
7140
7232
|
_: 3
|
|
7141
7233
|
}, 16, [
|
|
7142
7234
|
"modelValue",
|
|
@@ -7158,7 +7250,7 @@ function Sr(t, n, r, i, a, p) {
|
|
|
7158
7250
|
"class"
|
|
7159
7251
|
]);
|
|
7160
7252
|
}
|
|
7161
|
-
var
|
|
7253
|
+
var jr = /* @__PURE__ */ q({
|
|
7162
7254
|
name: "w-select",
|
|
7163
7255
|
expose: ["focus"],
|
|
7164
7256
|
mixins: [Q, $],
|
|
@@ -7318,7 +7410,7 @@ var Cr = /* @__PURE__ */ K({
|
|
|
7318
7410
|
},
|
|
7319
7411
|
methods: {
|
|
7320
7412
|
focus() {
|
|
7321
|
-
|
|
7413
|
+
We(this) && (J(this.$refs["selection-input"]), this.showMenu || this.openMenu());
|
|
7322
7414
|
},
|
|
7323
7415
|
onFocus(e) {
|
|
7324
7416
|
if (!this.isFocused) return this.isFocused = !0, this.$emit("focus", e), !1;
|
|
@@ -7403,12 +7495,12 @@ var Cr = /* @__PURE__ */ K({
|
|
|
7403
7495
|
this.inputValue = this.checkSelection(this.modelValue);
|
|
7404
7496
|
}
|
|
7405
7497
|
}
|
|
7406
|
-
}, [["render",
|
|
7498
|
+
}, [["render", Ar]]), Mr = ["for"], Nr = ["for", "innerHTML"], Pr = { class: "w-slider__track-wrap" }, Fr = [
|
|
7407
7499
|
"aria-valuemin",
|
|
7408
7500
|
"aria-valuemax",
|
|
7409
7501
|
"aria-valuenow",
|
|
7410
7502
|
"aria-readonly"
|
|
7411
|
-
],
|
|
7503
|
+
], Ir = [
|
|
7412
7504
|
"id",
|
|
7413
7505
|
"name",
|
|
7414
7506
|
"model-value",
|
|
@@ -7416,11 +7508,11 @@ var Cr = /* @__PURE__ */ K({
|
|
|
7416
7508
|
"readonly",
|
|
7417
7509
|
"aria-readonly",
|
|
7418
7510
|
"tabindex"
|
|
7419
|
-
],
|
|
7511
|
+
], Lr = ["for"], Rr = { key: 0 }, zr = {
|
|
7420
7512
|
key: 0,
|
|
7421
7513
|
class: "w-slider__step-labels"
|
|
7422
|
-
},
|
|
7423
|
-
function
|
|
7514
|
+
}, Br = ["onClick"], Vr = ["for"], Hr = ["for", "innerHTML"];
|
|
7515
|
+
function Ur(t, n, r, i, a, u) {
|
|
7424
7516
|
return b(), o(D(t.formRegister ? "w-form-element" : "div"), h({ ref: "formEl" }, t.formRegister && {
|
|
7425
7517
|
validators: t.validators,
|
|
7426
7518
|
inputValue: t.rangeValueScaled,
|
|
@@ -7436,18 +7528,18 @@ function Fr(t, n, r, i, a, u) {
|
|
|
7436
7528
|
wrap: t.formRegister || null,
|
|
7437
7529
|
class: u.wrapperClasses
|
|
7438
7530
|
}), {
|
|
7439
|
-
default:
|
|
7531
|
+
default: j(() => [
|
|
7440
7532
|
t.$slots["label-left"] ? (b(), c("label", {
|
|
7441
7533
|
key: 0,
|
|
7442
7534
|
class: _(["w-slider__label w-slider__label--left w-form-el-shakable", t.labelClasses]),
|
|
7443
7535
|
for: u.thumbId
|
|
7444
|
-
}, [T(t.$slots, "label-left")], 10,
|
|
7536
|
+
}, [T(t.$slots, "label-left")], 10, Mr)) : r.labelLeft ? (b(), c("label", {
|
|
7445
7537
|
key: 1,
|
|
7446
7538
|
class: _(["w-slider__label w-slider__label--left w-form-el-shakable", t.labelClasses]),
|
|
7447
7539
|
for: u.thumbId,
|
|
7448
7540
|
innerHTML: r.labelLeft
|
|
7449
|
-
}, null, 10,
|
|
7450
|
-
l("div",
|
|
7541
|
+
}, null, 10, Nr)) : s("", !0),
|
|
7542
|
+
l("div", Pr, [l("div", {
|
|
7451
7543
|
class: _(["w-slider__track", u.trackClasses]),
|
|
7452
7544
|
ref: "track",
|
|
7453
7545
|
onMousedown: n[4] ||= (...e) => u.onTrackMouseDown && u.onTrackMouseDown(...e),
|
|
@@ -7475,17 +7567,17 @@ function Fr(t, n, r, i, a, u) {
|
|
|
7475
7567
|
readonly: t.isReadonly || null,
|
|
7476
7568
|
"aria-readonly": t.isReadonly ? "true" : "false",
|
|
7477
7569
|
tabindex: t.isDisabled || t.isReadonly ? -1 : null,
|
|
7478
|
-
onKeydown: [n[0] ||=
|
|
7570
|
+
onKeydown: [n[0] ||= N((e) => u.onKeyDown(e, -1), ["left"]), n[1] ||= N((e) => u.onKeyDown(e, 1), ["right"])],
|
|
7479
7571
|
onFocus: n[2] ||= (e) => t.$emit("focus", e),
|
|
7480
|
-
onClick: n[3] ||=
|
|
7481
|
-
}, null, 42,
|
|
7572
|
+
onClick: n[3] ||= P(() => {}, ["prevent"])
|
|
7573
|
+
}, null, 42, Ir), r.thumbLabel ? (b(), c("label", {
|
|
7482
7574
|
key: 0,
|
|
7483
7575
|
class: _(["w-slider__thumb-label", u.thumbClasses]),
|
|
7484
7576
|
for: u.thumbId
|
|
7485
|
-
}, [r.thumbLabel === "droplet" ? (b(), c("div",
|
|
7577
|
+
}, [r.thumbLabel === "droplet" ? (b(), c("div", Rr, [T(t.$slots, "label", { value: t.rangeValueScaled }, () => [d(O(~~t.rangeValueScaled), 1)])])) : T(t.$slots, "label", {
|
|
7486
7578
|
key: 1,
|
|
7487
7579
|
value: t.rangeValueScaled
|
|
7488
|
-
}, () => [d(O(~~t.rangeValueScaled), 1)])], 10,
|
|
7580
|
+
}, () => [d(O(~~t.rangeValueScaled), 1)])], 10, Lr)) : s("", !0)], 4)], 42, Fr), r.stepLabels && r.step ? (b(), c("div", zr, [
|
|
7489
7581
|
l("div", {
|
|
7490
7582
|
class: "w-slider__step-label",
|
|
7491
7583
|
onClick: n[6] ||= (e) => u.onStepLabelClick(0)
|
|
@@ -7495,7 +7587,7 @@ function Fr(t, n, r, i, a, u) {
|
|
|
7495
7587
|
key: e,
|
|
7496
7588
|
onClick: (t) => u.onStepLabelClick(e * (100 / u.numberOfSteps)),
|
|
7497
7589
|
style: y(`left: ${e * (100 / u.numberOfSteps)}%`)
|
|
7498
|
-
}, O(u.percentToScaled(e * (100 / u.numberOfSteps))), 13,
|
|
7590
|
+
}, O(u.percentToScaled(e * (100 / u.numberOfSteps))), 13, Br))), 128)),
|
|
7499
7591
|
~~u.numberOfSteps === u.numberOfSteps ? s("", !0) : (b(), c("div", {
|
|
7500
7592
|
key: 0,
|
|
7501
7593
|
class: "w-slider__step-label",
|
|
@@ -7507,12 +7599,12 @@ function Fr(t, n, r, i, a, u) {
|
|
|
7507
7599
|
key: 2,
|
|
7508
7600
|
class: _(["w-slider__label w-slider__label--right w-form-el-shakable", t.labelClasses]),
|
|
7509
7601
|
for: u.thumbId
|
|
7510
|
-
}, [T(t.$slots, "label-right")], 10,
|
|
7602
|
+
}, [T(t.$slots, "label-right")], 10, Vr)) : r.labelRight ? (b(), c("label", {
|
|
7511
7603
|
key: 3,
|
|
7512
7604
|
class: _(["w-slider__label w-slider__label--right w-form-el-shakable", t.labelClasses]),
|
|
7513
7605
|
for: u.thumbId,
|
|
7514
7606
|
innerHTML: r.labelRight
|
|
7515
|
-
}, null, 10,
|
|
7607
|
+
}, null, 10, Hr)) : s("", !0)
|
|
7516
7608
|
]),
|
|
7517
7609
|
_: 3
|
|
7518
7610
|
}, 16, [
|
|
@@ -7521,7 +7613,7 @@ function Fr(t, n, r, i, a, u) {
|
|
|
7521
7613
|
"class"
|
|
7522
7614
|
]);
|
|
7523
7615
|
}
|
|
7524
|
-
var
|
|
7616
|
+
var Wr = /* @__PURE__ */ q({
|
|
7525
7617
|
name: "w-slider",
|
|
7526
7618
|
expose: ["focus"],
|
|
7527
7619
|
focusTargetRef: "thumb",
|
|
@@ -7675,15 +7767,15 @@ var Ir = /* @__PURE__ */ K({
|
|
|
7675
7767
|
watch: { modelValue(e) {
|
|
7676
7768
|
this.rangeValueScaled !== e && (this.rangeValueScaled = e, this.rangeValuePercent = this.scaledToPercent(e));
|
|
7677
7769
|
} }
|
|
7678
|
-
}, [["render",
|
|
7679
|
-
function
|
|
7770
|
+
}, [["render", Ur]]), Gr = { key: 0 };
|
|
7771
|
+
function Kr(e, t, n, r, i, a) {
|
|
7680
7772
|
return n.modelValue || n.modelValue === void 0 ? (b(), c("div", {
|
|
7681
7773
|
key: 0,
|
|
7682
7774
|
class: _(["w-spinner", a.classes]),
|
|
7683
7775
|
style: y(a.styles)
|
|
7684
|
-
}, [a.isThreeDots ? (b(), c("span",
|
|
7776
|
+
}, [a.isThreeDots ? (b(), c("span", Gr)) : s("", !0)], 6)) : s("", !0);
|
|
7685
7777
|
}
|
|
7686
|
-
var
|
|
7778
|
+
var qr = /* @__PURE__ */ q({
|
|
7687
7779
|
name: "w-spinner",
|
|
7688
7780
|
props: {
|
|
7689
7781
|
modelValue: {},
|
|
@@ -7724,13 +7816,13 @@ var zr = /* @__PURE__ */ K({
|
|
|
7724
7816
|
};
|
|
7725
7817
|
}
|
|
7726
7818
|
}
|
|
7727
|
-
}, [["render",
|
|
7819
|
+
}, [["render", Kr]]);
|
|
7728
7820
|
//#endregion
|
|
7729
7821
|
//#region src/wave-ui/components/w-steps.vue?vue&type=template&lang.js
|
|
7730
|
-
function
|
|
7822
|
+
function Jr(e, t, n, r, i, a) {
|
|
7731
7823
|
return b(), c("div", { class: _(["w-steps", a.classes]) }, null, 2);
|
|
7732
7824
|
}
|
|
7733
|
-
var
|
|
7825
|
+
var Yr = /* @__PURE__ */ q({
|
|
7734
7826
|
name: "w-steps",
|
|
7735
7827
|
props: {
|
|
7736
7828
|
dark: { type: Boolean },
|
|
@@ -7744,7 +7836,7 @@ var Vr = /* @__PURE__ */ K({
|
|
|
7744
7836
|
"w-steps--light": this.light
|
|
7745
7837
|
};
|
|
7746
7838
|
} }
|
|
7747
|
-
}, [["render",
|
|
7839
|
+
}, [["render", Jr]]), Xr = [
|
|
7748
7840
|
"id",
|
|
7749
7841
|
"name",
|
|
7750
7842
|
"checked",
|
|
@@ -7754,11 +7846,11 @@ var Vr = /* @__PURE__ */ K({
|
|
|
7754
7846
|
"required",
|
|
7755
7847
|
"tabindex",
|
|
7756
7848
|
"aria-checked"
|
|
7757
|
-
],
|
|
7849
|
+
], Zr = ["for"], Qr = {
|
|
7758
7850
|
key: 0,
|
|
7759
7851
|
class: "w-switch__track"
|
|
7760
|
-
},
|
|
7761
|
-
function
|
|
7852
|
+
}, $r = { class: "w-switch__thumb" }, ei = { class: "w-switch__thumb-content" }, ti = ["for"];
|
|
7853
|
+
function ni(t, n, r, i, a, u) {
|
|
7762
7854
|
let f = E("w-progress");
|
|
7763
7855
|
return b(), o(D(t.formRegister ? "w-form-element" : "div"), h({ ref: "formEl" }, t.formRegister && {
|
|
7764
7856
|
validators: t.validators,
|
|
@@ -7777,7 +7869,7 @@ function Jr(t, n, r, i, a, u) {
|
|
|
7777
7869
|
class: u.classes,
|
|
7778
7870
|
style: t.$attrs.style
|
|
7779
7871
|
}), {
|
|
7780
|
-
default:
|
|
7872
|
+
default: j(() => [
|
|
7781
7873
|
l("input", h({
|
|
7782
7874
|
ref: "input",
|
|
7783
7875
|
id: t.inputId,
|
|
@@ -7795,18 +7887,18 @@ function Jr(t, n, r, i, a, u) {
|
|
|
7795
7887
|
onBlur: n[2] ||= (e) => t.$emit("blur", e),
|
|
7796
7888
|
"aria-checked": a.isOn || "false",
|
|
7797
7889
|
role: "switch"
|
|
7798
|
-
}), null, 16,
|
|
7890
|
+
}), null, 16, Xr),
|
|
7799
7891
|
u.hasLabel && r.labelOnLeft ? (b(), c(e, { key: 0 }, [t.$slots.default || r.label ? (b(), c("label", {
|
|
7800
7892
|
key: 0,
|
|
7801
7893
|
class: _(["w-switch__label w-switch__label--left w-form-el-shakable", t.labelClasses]),
|
|
7802
7894
|
for: t.inputId
|
|
7803
|
-
}, [T(t.$slots, "default", {}, () => [d(O(r.label), 1)])], 10,
|
|
7895
|
+
}, [T(t.$slots, "default", {}, () => [d(O(r.label), 1)])], 10, Zr)) : s("", !0)], 64)) : s("", !0),
|
|
7804
7896
|
l("div", {
|
|
7805
7897
|
class: _(["w-switch__input", u.inputClasses]),
|
|
7806
7898
|
onClick: n[3] ||= (e) => {
|
|
7807
7899
|
t.$refs.input.focus(), t.$refs.input.click();
|
|
7808
7900
|
}
|
|
7809
|
-
}, [t.$slots.track ? (b(), c("div",
|
|
7901
|
+
}, [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
7902
|
key: 0,
|
|
7811
7903
|
circle: "",
|
|
7812
7904
|
color: "inherit"
|
|
@@ -7815,7 +7907,7 @@ function Jr(t, n, r, i, a, u) {
|
|
|
7815
7907
|
key: 0,
|
|
7816
7908
|
class: _(["w-switch__label w-switch__label--right w-form-el-shakable", t.labelClasses]),
|
|
7817
7909
|
for: t.inputId
|
|
7818
|
-
}, [T(t.$slots, "default", {}, () => [d(O(r.label), 1)])], 10,
|
|
7910
|
+
}, [T(t.$slots, "default", {}, () => [d(O(r.label), 1)])], 10, ti)) : s("", !0)], 64)) : s("", !0)
|
|
7819
7911
|
]),
|
|
7820
7912
|
_: 3
|
|
7821
7913
|
}, 16, [
|
|
@@ -7824,7 +7916,7 @@ function Jr(t, n, r, i, a, u) {
|
|
|
7824
7916
|
"style"
|
|
7825
7917
|
]);
|
|
7826
7918
|
}
|
|
7827
|
-
var
|
|
7919
|
+
var ri = /* @__PURE__ */ q({
|
|
7828
7920
|
name: "w-switch",
|
|
7829
7921
|
expose: ["focus"],
|
|
7830
7922
|
mixins: [Q, $],
|
|
@@ -7920,28 +8012,28 @@ var Yr = /* @__PURE__ */ K({
|
|
|
7920
8012
|
watch: { modelValue(e) {
|
|
7921
8013
|
this.isOn = e;
|
|
7922
8014
|
} }
|
|
7923
|
-
}, [["render",
|
|
7924
|
-
function
|
|
7925
|
-
return b(), c("div",
|
|
8015
|
+
}, [["render", ni]]), ii = { class: "w-tabs__content" };
|
|
8016
|
+
function ai(e, t, n, r, i, a) {
|
|
8017
|
+
return b(), c("div", ii, [T(e.$slots, "default", { item: n.item })]);
|
|
7926
8018
|
}
|
|
7927
|
-
var
|
|
8019
|
+
var oi = /* @__PURE__ */ q({
|
|
7928
8020
|
name: "tab-content",
|
|
7929
8021
|
props: { item: Object }
|
|
7930
|
-
}, [["render",
|
|
8022
|
+
}, [["render", ai]]), si = [
|
|
7931
8023
|
"onPointerdown",
|
|
7932
8024
|
"onClick",
|
|
7933
8025
|
"onFocus",
|
|
7934
8026
|
"tabindex",
|
|
7935
8027
|
"onKeypress",
|
|
7936
8028
|
"aria-selected"
|
|
7937
|
-
],
|
|
8029
|
+
], ci = ["innerHTML"], li = {
|
|
7938
8030
|
key: 0,
|
|
7939
8031
|
class: "w-tabs__bar-extra"
|
|
7940
|
-
},
|
|
8032
|
+
}, ui = {
|
|
7941
8033
|
key: 0,
|
|
7942
8034
|
class: "w-tabs__content-wrap"
|
|
7943
|
-
},
|
|
7944
|
-
function
|
|
8035
|
+
}, di = ["innerHTML"], fi = ["innerHTML"];
|
|
8036
|
+
function pi(n, a, u, d, f, p) {
|
|
7945
8037
|
let m = E("tab-content");
|
|
7946
8038
|
return b(), c("div", { class: _(["w-tabs", p.tabsClasses]) }, [l("div", {
|
|
7947
8039
|
class: _(["w-tabs__bar", p.tabsBarClasses]),
|
|
@@ -7954,7 +8046,7 @@ function ai(n, a, u, d, f, p) {
|
|
|
7954
8046
|
onClick: (t) => !e._disabled && e._uid !== n.activeTabUid && p.openTab(e._uid),
|
|
7955
8047
|
onFocus: (t) => n.$emit("focus", p.getOriginalItem(e)),
|
|
7956
8048
|
tabindex: !e._disabled && 0,
|
|
7957
|
-
onKeypress:
|
|
8049
|
+
onKeypress: N((t) => !e._disabled && p.openTab(e._uid), ["enter"]),
|
|
7958
8050
|
"aria-selected": e._uid === n.activeTabUid ? "true" : "false",
|
|
7959
8051
|
role: "tab"
|
|
7960
8052
|
}, [n.$slots[`item-title.${e.id || t + 1}`] ? T(n.$slots, `item-title.${e.id || t + 1}`, {
|
|
@@ -7967,23 +8059,23 @@ function ai(n, a, u, d, f, p) {
|
|
|
7967
8059
|
item: p.getOriginalItem(e),
|
|
7968
8060
|
index: t + 1,
|
|
7969
8061
|
active: e._uid === n.activeTabUid
|
|
7970
|
-
}, () => [l("div", { innerHTML: e[u.itemTitleKey] }, null, 8,
|
|
7971
|
-
n.$slots["tabs-bar-extra"] ? (b(), c("div",
|
|
8062
|
+
}, () => [l("div", { innerHTML: e[u.itemTitleKey] }, null, 8, ci)])], 42, si))), 128)),
|
|
8063
|
+
n.$slots["tabs-bar-extra"] ? (b(), c("div", li, [T(n.$slots, "tabs-bar-extra")])) : s("", !0),
|
|
7972
8064
|
!u.noSlider && !u.card ? (b(), c("div", {
|
|
7973
8065
|
key: 1,
|
|
7974
8066
|
class: _(["w-tabs__slider", u.sliderColor]),
|
|
7975
8067
|
style: y(p.sliderStyles)
|
|
7976
8068
|
}, null, 6)) : s("", !0)
|
|
7977
|
-
], 2), n.tabs.length ? (b(), c("div",
|
|
8069
|
+
], 2), n.tabs.length ? (b(), c("div", ui, [u.keepInDom ? (b(), o(i, {
|
|
7978
8070
|
key: 0,
|
|
7979
8071
|
name: p.transitionName
|
|
7980
8072
|
}, {
|
|
7981
|
-
default:
|
|
8073
|
+
default: j(() => [(b(!0), c(e, null, w(n.tabs, (e, t) => M((b(), o(m, {
|
|
7982
8074
|
key: e._uid,
|
|
7983
8075
|
item: e,
|
|
7984
8076
|
class: _(p.contentClasses)
|
|
7985
8077
|
}, {
|
|
7986
|
-
default:
|
|
8078
|
+
default: j(() => [n.$slots[`item-content.${e._index + 1}`] ? T(n.$slots, `item-content.${e._index + 1}`, {
|
|
7987
8079
|
key: 0,
|
|
7988
8080
|
item: p.getOriginalItem(e),
|
|
7989
8081
|
index: e._index + 1,
|
|
@@ -7996,21 +8088,21 @@ function ai(n, a, u, d, f, p) {
|
|
|
7996
8088
|
}, () => [e[u.itemContentKey] ? (b(), c("div", {
|
|
7997
8089
|
key: 0,
|
|
7998
8090
|
innerHTML: e[u.itemContentKey]
|
|
7999
|
-
}, null, 8,
|
|
8091
|
+
}, null, 8, di)) : s("", !0)])]),
|
|
8000
8092
|
_: 2
|
|
8001
|
-
}, 1032, ["item", "class"])), [[
|
|
8093
|
+
}, 1032, ["item", "class"])), [[se, e._uid === p.activeTab._uid]])), 128))]),
|
|
8002
8094
|
_: 3
|
|
8003
8095
|
}, 8, ["name"])) : (b(), o(r, {
|
|
8004
8096
|
key: 1,
|
|
8005
8097
|
name: p.transitionName,
|
|
8006
8098
|
mode: p.transitionMode
|
|
8007
8099
|
}, {
|
|
8008
|
-
default:
|
|
8100
|
+
default: j(() => [(b(), o(t, { exclude: u.keepAlive ? "" : "tab-content" }, [(b(), o(m, {
|
|
8009
8101
|
key: n.activeTabUid,
|
|
8010
8102
|
item: p.activeTab,
|
|
8011
8103
|
class: _(u.contentClass)
|
|
8012
8104
|
}, {
|
|
8013
|
-
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}`, {
|
|
8014
8106
|
key: 0,
|
|
8015
8107
|
item: p.getOriginalItem(t),
|
|
8016
8108
|
index: t._index + 1,
|
|
@@ -8023,14 +8115,15 @@ function ai(n, a, u, d, f, p) {
|
|
|
8023
8115
|
}, () => [t[u.itemContentKey] ? (b(), c("div", {
|
|
8024
8116
|
key: 0,
|
|
8025
8117
|
innerHTML: t[u.itemContentKey]
|
|
8026
|
-
}, null, 8,
|
|
8118
|
+
}, null, 8, fi)) : s("", !0)])], 64)) : s("", !0)]),
|
|
8027
8119
|
_: 3
|
|
8028
8120
|
}, 8, ["item", "class"]))], 1032, ["exclude"]))]),
|
|
8029
8121
|
_: 3
|
|
8030
8122
|
}, 8, ["name", "mode"]))])) : s("", !0)], 2);
|
|
8031
8123
|
}
|
|
8032
|
-
var
|
|
8124
|
+
var mi = /* @__PURE__ */ q({
|
|
8033
8125
|
name: "w-tabs",
|
|
8126
|
+
focusable: !0,
|
|
8034
8127
|
expose: ["focus"],
|
|
8035
8128
|
mixins: [X],
|
|
8036
8129
|
setup() {
|
|
@@ -8096,7 +8189,7 @@ var oi = /* @__PURE__ */ K({
|
|
|
8096
8189
|
default: !1
|
|
8097
8190
|
}
|
|
8098
8191
|
},
|
|
8099
|
-
components: { TabContent:
|
|
8192
|
+
components: { TabContent: oi },
|
|
8100
8193
|
emits: [
|
|
8101
8194
|
"input",
|
|
8102
8195
|
"update:modelValue",
|
|
@@ -8160,7 +8253,7 @@ var oi = /* @__PURE__ */ K({
|
|
|
8160
8253
|
methods: {
|
|
8161
8254
|
focus() {
|
|
8162
8255
|
let e = this.$refs["tabs-bar"];
|
|
8163
|
-
e &&
|
|
8256
|
+
e && J(e.querySelector("[role=\"tab\"][aria-selected=\"true\"]:not([tabindex=\"-1\"])") || e.querySelector("[role=\"tab\"][tabindex=\"0\"]"));
|
|
8164
8257
|
},
|
|
8165
8258
|
resolveTabUid(e) {
|
|
8166
8259
|
if (!this.tabs.length) return null;
|
|
@@ -8281,45 +8374,45 @@ var oi = /* @__PURE__ */ K({
|
|
|
8281
8374
|
e ? window.removeEventListener("resize", this.onResize) : (this.updateSlider(), window.addEventListener("resize", this.onResize));
|
|
8282
8375
|
}
|
|
8283
8376
|
}
|
|
8284
|
-
}, [["render",
|
|
8377
|
+
}, [["render", pi]]), hi = { class: "w-table__scroll-wrap" }, gi = { ref: "colgroup" }, _i = ["width"], vi = { key: 0 }, yi = ["onClick", "onPointerdown"], bi = ["innerHTML"], xi = {
|
|
8285
8378
|
key: 0,
|
|
8286
8379
|
class: "w-table__progress-bar"
|
|
8287
|
-
},
|
|
8380
|
+
}, Si = ["colspan"], Ci = {
|
|
8288
8381
|
key: 0,
|
|
8289
8382
|
class: "w-table__progress-bar"
|
|
8290
|
-
},
|
|
8383
|
+
}, wi = ["colspan"], Ti = { class: "w-table__loading-text" }, Ei = {
|
|
8291
8384
|
key: 1,
|
|
8292
8385
|
class: "no-data"
|
|
8293
|
-
},
|
|
8386
|
+
}, Di = ["colspan"], Oi = ["onClick"], ki = ["data-label"], Ai = ["data-label"], ji = ["innerHTML"], Mi = {
|
|
8294
8387
|
key: 2,
|
|
8295
8388
|
class: "w-table__row w-table__row--expansion"
|
|
8296
|
-
},
|
|
8389
|
+
}, Ni = ["colspan"], Pi = { key: 0 }, Fi = {
|
|
8297
8390
|
key: 3,
|
|
8298
8391
|
class: "w-table__extra-row"
|
|
8299
|
-
},
|
|
8392
|
+
}, Ii = {
|
|
8300
8393
|
key: 1,
|
|
8301
8394
|
class: "w-table__footer"
|
|
8302
|
-
},
|
|
8395
|
+
}, Li = {
|
|
8303
8396
|
key: 1,
|
|
8304
8397
|
class: "w-table__row"
|
|
8305
|
-
},
|
|
8398
|
+
}, Ri = ["colspan"], zi = {
|
|
8306
8399
|
key: 0,
|
|
8307
8400
|
class: "w-table__pagination w-pagination"
|
|
8308
|
-
},
|
|
8309
|
-
function
|
|
8401
|
+
}, Bi = { class: "pages-wrap" }, Vi = { class: "w-pagination__results" };
|
|
8402
|
+
function Hi(t, n, r, i, a, u) {
|
|
8310
8403
|
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",
|
|
8404
|
+
return b(), c("div", { class: _(["w-table w-table--wrap", u.classes]) }, [l("div", hi, [l("table", {
|
|
8312
8405
|
class: "w-table__table",
|
|
8313
8406
|
onMousedown: n[2] ||= (...e) => u.onMouseDown && u.onMouseDown(...e),
|
|
8314
8407
|
onMouseover: n[3] ||= (...e) => u.onMouseOver && u.onMouseOver(...e),
|
|
8315
8408
|
onMouseout: n[4] ||= (...e) => u.onMouseOut && u.onMouseOut(...e)
|
|
8316
8409
|
}, [
|
|
8317
|
-
l("colgroup",
|
|
8410
|
+
l("colgroup", gi, [(b(!0), c(e, null, w(r.headers, (e, t) => (b(), c("col", {
|
|
8318
8411
|
class: _(["w-table__col", u.colClasses[t]]),
|
|
8319
8412
|
key: t,
|
|
8320
8413
|
width: e.width || null
|
|
8321
|
-
}, null, 10,
|
|
8322
|
-
r.noHeaders ? s("", !0) : (b(), c("thead",
|
|
8414
|
+
}, null, 10, _i))), 128))], 512),
|
|
8415
|
+
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
8416
|
class: _(["w-table__header", u.headerClasses(i)]),
|
|
8324
8417
|
key: a,
|
|
8325
8418
|
onClick: (e) => !t.colResizing.dragging && i.sortable !== !1 && u.sortTable(i),
|
|
@@ -8329,7 +8422,7 @@ function Pi(t, n, r, i, a, u) {
|
|
|
8329
8422
|
key: 0,
|
|
8330
8423
|
class: _(["w-table__header-sort", u.headerSortClasses(i)])
|
|
8331
8424
|
}, {
|
|
8332
|
-
default:
|
|
8425
|
+
default: j(() => [...n[9] ||= [d("wi-arrow-down", -1)]]),
|
|
8333
8426
|
_: 1
|
|
8334
8427
|
}, 8, ["class"])) : s("", !0),
|
|
8335
8428
|
i.label ? (b(), c(e, { key: 1 }, [t.$slots["header-label"] ? T(t.$slots, "header-label", {
|
|
@@ -8340,12 +8433,12 @@ function Pi(t, n, r, i, a, u) {
|
|
|
8340
8433
|
}, () => [d(O(i.label || ""), 1)]) : (b(), c("span", {
|
|
8341
8434
|
key: 1,
|
|
8342
8435
|
innerHTML: i.label || ""
|
|
8343
|
-
}, null, 8,
|
|
8436
|
+
}, null, 8, bi))], 64)) : s("", !0),
|
|
8344
8437
|
i.sortable !== !1 && i.align !== "right" ? (b(), o(p, {
|
|
8345
8438
|
key: 2,
|
|
8346
8439
|
class: _(["w-table__header-sort", u.headerSortClasses(i)])
|
|
8347
8440
|
}, {
|
|
8348
|
-
default:
|
|
8441
|
+
default: j(() => [...n[10] ||= [d("wi-arrow-down", -1)]]),
|
|
8349
8442
|
_: 1
|
|
8350
8443
|
}, 8, ["class"])) : s("", !0),
|
|
8351
8444
|
a < r.headers.length - 1 && r.resizableColumns ? (b(), c("span", {
|
|
@@ -8354,17 +8447,17 @@ function Pi(t, n, r, i, a, u) {
|
|
|
8354
8447
|
"w-table__col-resizer--hover": t.colResizing.hover === a,
|
|
8355
8448
|
"w-table__col-resizer--active": t.colResizing.columnIndex === a
|
|
8356
8449
|
}]),
|
|
8357
|
-
onClick: n[0] ||=
|
|
8450
|
+
onClick: n[0] ||= P(() => {}, ["stop"])
|
|
8358
8451
|
}, null, 2)) : s("", !0)
|
|
8359
|
-
], 42,
|
|
8360
|
-
default:
|
|
8452
|
+
], 42, yi))), 128))]), f(h, null, {
|
|
8453
|
+
default: j(() => [r.loading === "header" ? (b(), c("tr", xi, [l("td", { colspan: r.headers.length }, [f(m, { tile: "" })], 8, Si)])) : s("", !0)]),
|
|
8361
8454
|
_: 1
|
|
8362
8455
|
})])),
|
|
8363
8456
|
l("tbody", null, [
|
|
8364
|
-
r.loading === !0 ? (b(), c("tr",
|
|
8457
|
+
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
8458
|
class: "w-table__cell text-center",
|
|
8366
8459
|
colspan: r.headers.length
|
|
8367
|
-
}, [T(t.$slots, "no-data", {}, () => [n[12] ||= d("No data to show.", -1)])], 8,
|
|
8460
|
+
}, [T(t.$slots, "no-data", {}, () => [n[12] ||= d("No data to show.", -1)])], 8, Di)])),
|
|
8368
8461
|
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
8462
|
key: 0,
|
|
8370
8463
|
item: i,
|
|
@@ -8412,21 +8505,21 @@ function Pi(t, n, r, i, a, u) {
|
|
|
8412
8505
|
"w-table__col-resizer--hover": t.colResizing.hover === o,
|
|
8413
8506
|
"w-table__col-resizer--active": t.colResizing.columnIndex === o
|
|
8414
8507
|
}])
|
|
8415
|
-
}, null, 2)) : s("", !0)], 10,
|
|
8508
|
+
}, null, 2)) : s("", !0)], 10, ki)) : (b(), c("td", {
|
|
8416
8509
|
class: _(["w-table__cell", u.cellClasses(n)]),
|
|
8417
8510
|
key: `${o}-b`,
|
|
8418
8511
|
"data-label": n.label
|
|
8419
|
-
}, [l("div", { innerHTML: i[n.key] || "" }, null, 8,
|
|
8512
|
+
}, [l("div", { innerHTML: i[n.key] || "" }, null, 8, ji), o < r.headers.length - 1 && r.resizableColumns ? (b(), c("span", {
|
|
8420
8513
|
key: 0,
|
|
8421
8514
|
class: _(["w-table__col-resizer", {
|
|
8422
8515
|
"w-table__col-resizer--hover": t.colResizing.hover === o,
|
|
8423
8516
|
"w-table__col-resizer--active": t.colResizing.columnIndex === o
|
|
8424
8517
|
}])
|
|
8425
|
-
}, null, 2)) : s("", !0)], 10,
|
|
8518
|
+
}, null, 2)) : s("", !0)], 10, Ai))], 64))), 256))], 42, Oi)), u.expandedRowsByUid[i._uid] ? (b(), c("tr", Mi, [l("td", {
|
|
8426
8519
|
class: "w-table__cell",
|
|
8427
8520
|
colspan: r.headers.length
|
|
8428
8521
|
}, [f(g, { y: "" }, {
|
|
8429
|
-
default:
|
|
8522
|
+
default: j(() => [u.expandedRowsByUid[i._uid] ? (b(), c("div", Pi, [T(t.$slots, "row-expansion", {
|
|
8430
8523
|
item: i,
|
|
8431
8524
|
index: a + 1
|
|
8432
8525
|
})])) : s("", !0), a < r.headers.length - 1 && r.resizableColumns ? (b(), c("span", {
|
|
@@ -8437,14 +8530,14 @@ function Pi(t, n, r, i, a, u) {
|
|
|
8437
8530
|
}])
|
|
8438
8531
|
}, null, 2)) : s("", !0)]),
|
|
8439
8532
|
_: 2
|
|
8440
|
-
}, 1024)], 8,
|
|
8441
|
-
t.$slots["extra-row"] ? (b(), c("div",
|
|
8533
|
+
}, 1024)], 8, Ni)])) : s("", !0)], 64))), 128)) : s("", !0),
|
|
8534
|
+
t.$slots["extra-row"] ? (b(), c("div", Fi, [T(t.$slots, "extra-row")])) : s("", !0)
|
|
8442
8535
|
]),
|
|
8443
|
-
t.$slots.footer || t.$slots["footer-row"] ? (b(), c("tfoot",
|
|
8536
|
+
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
8537
|
class: "w-table__cell",
|
|
8445
8538
|
colspan: r.headers.length
|
|
8446
|
-
}, [T(t.$slots, "footer")], 8,
|
|
8447
|
-
], 32)]), r.pagination && t.paginationConfig ? (b(), c("div",
|
|
8539
|
+
}, [T(t.$slots, "footer")], 8, Ri)])) : s("", !0)])) : s("", !0)
|
|
8540
|
+
], 32)]), r.pagination && t.paginationConfig ? (b(), c("div", zi, [T(t.$slots, "pagination", {
|
|
8448
8541
|
range: `${t.paginationConfig.start}-${t.paginationConfig.end}`,
|
|
8449
8542
|
total: t.paginationConfig.total,
|
|
8450
8543
|
pagesCount: t.paginationConfig.pagesCount,
|
|
@@ -8462,7 +8555,7 @@ function Pi(t, n, r, i, a, u) {
|
|
|
8462
8555
|
label: "Items per page",
|
|
8463
8556
|
"label-color": "inherit"
|
|
8464
8557
|
}, null, 8, ["modelValue", "items"])) : s("", !0),
|
|
8465
|
-
l("div",
|
|
8558
|
+
l("div", Bi, [
|
|
8466
8559
|
f(y, {
|
|
8467
8560
|
class: "w-pagination__arrow w-pagination__arrow--prev",
|
|
8468
8561
|
onClick: n[7] ||= (e) => u.goToPage("-1"),
|
|
@@ -8484,7 +8577,7 @@ function Pi(t, n, r, i, a, u) {
|
|
|
8484
8577
|
round: "",
|
|
8485
8578
|
lg: ""
|
|
8486
8579
|
}, {
|
|
8487
|
-
default:
|
|
8580
|
+
default: j(() => [d(O(r), 1)]),
|
|
8488
8581
|
_: 2
|
|
8489
8582
|
}, 1032, ["onClick", "class"])) : [
|
|
8490
8583
|
1,
|
|
@@ -8499,7 +8592,7 @@ function Pi(t, n, r, i, a, u) {
|
|
|
8499
8592
|
round: "",
|
|
8500
8593
|
lg: ""
|
|
8501
8594
|
}, {
|
|
8502
|
-
default:
|
|
8595
|
+
default: j(() => [...n[13] ||= [d("...", -1)]]),
|
|
8503
8596
|
_: 1
|
|
8504
8597
|
}, 8, ["onClick", "class"])) : s("", !0)], 64))), 128)) : (b(!0), c(e, { key: 1 }, w(t.paginationConfig.pagesCount, (e) => (b(), o(y, {
|
|
8505
8598
|
class: _(["w-pagination__page", { "w-pagination__page--active": e === t.paginationConfig.page }]),
|
|
@@ -8508,7 +8601,7 @@ function Pi(t, n, r, i, a, u) {
|
|
|
8508
8601
|
round: "",
|
|
8509
8602
|
lg: ""
|
|
8510
8603
|
}, {
|
|
8511
|
-
default:
|
|
8604
|
+
default: j(() => [d(O(e), 1)]),
|
|
8512
8605
|
_: 2
|
|
8513
8606
|
}, 1032, ["onClick", "class"]))), 128)),
|
|
8514
8607
|
f(y, {
|
|
@@ -8520,12 +8613,12 @@ function Pi(t, n, r, i, a, u) {
|
|
|
8520
8613
|
lg: ""
|
|
8521
8614
|
}, null, 8, ["disabled"])
|
|
8522
8615
|
]),
|
|
8523
|
-
l("span",
|
|
8616
|
+
l("span", Vi, O(t.paginationConfig.start) + "-" + O(t.paginationConfig.end || t.paginationConfig.total) + " of " + O(t.paginationConfig.total), 1)
|
|
8524
8617
|
])])) : s("", !0)], 2);
|
|
8525
8618
|
}
|
|
8526
8619
|
//#endregion
|
|
8527
8620
|
//#region src/wave-ui/components/w-table.vue
|
|
8528
|
-
var
|
|
8621
|
+
var Ui = 15, Wi = /* @__PURE__ */ q({
|
|
8529
8622
|
name: "w-table",
|
|
8530
8623
|
mixins: [X],
|
|
8531
8624
|
props: {
|
|
@@ -8553,7 +8646,7 @@ var Fi = 15, Ii = /* @__PURE__ */ K({
|
|
|
8553
8646
|
1,
|
|
8554
8647
|
"1",
|
|
8555
8648
|
""
|
|
8556
|
-
].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) },
|
|
8557
8650
|
expandedRows: { type: Array },
|
|
8558
8651
|
selectableRows: { validator: (e) => ([
|
|
8559
8652
|
void 0,
|
|
@@ -8562,7 +8655,7 @@ var Fi = 15, Ii = /* @__PURE__ */ K({
|
|
|
8562
8655
|
1,
|
|
8563
8656
|
"1",
|
|
8564
8657
|
""
|
|
8565
|
-
].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) },
|
|
8566
8659
|
selectedRows: { type: Array },
|
|
8567
8660
|
forceSelection: { type: Boolean },
|
|
8568
8661
|
uidKey: {
|
|
@@ -8580,7 +8673,7 @@ var Fi = 15, Ii = /* @__PURE__ */ K({
|
|
|
8580
8673
|
Object,
|
|
8581
8674
|
String
|
|
8582
8675
|
],
|
|
8583
|
-
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
|
|
8584
8677
|
},
|
|
8585
8678
|
dark: { type: Boolean },
|
|
8586
8679
|
light: { type: Boolean }
|
|
@@ -8746,9 +8839,9 @@ var Fi = 15, Ii = /* @__PURE__ */ K({
|
|
|
8746
8839
|
this.colResizing.dragging = !0;
|
|
8747
8840
|
let o = e.pageX - t, s = i + a, c = i + o, l = a - o;
|
|
8748
8841
|
n.style.width = `${i + o}px`, r.style.width = `${a - o}px`;
|
|
8749
|
-
let u = o < 0 && n.offsetWidth > c || n.offsetWidth <=
|
|
8842
|
+
let u = o < 0 && n.offsetWidth > c || n.offsetWidth <= Ui, d = o > 0 && r.offsetWidth > l;
|
|
8750
8843
|
if (u) {
|
|
8751
|
-
let e = Math.max(n.offsetWidth,
|
|
8844
|
+
let e = Math.max(n.offsetWidth, Ui);
|
|
8752
8845
|
n.style.width = `${e}px`, r.style.width = `${s - e}px`;
|
|
8753
8846
|
} else d && (n.style.width = `${s - r.offsetWidth}px`, r.style.width = `${r.offsetWidth}px`);
|
|
8754
8847
|
},
|
|
@@ -8835,19 +8928,19 @@ var Fi = 15, Ii = /* @__PURE__ */ K({
|
|
|
8835
8928
|
this.updatePaginationConfig({ total: e });
|
|
8836
8929
|
}
|
|
8837
8930
|
}
|
|
8838
|
-
}, [["render",
|
|
8931
|
+
}, [["render", Hi]]), Gi = [
|
|
8839
8932
|
"role",
|
|
8840
8933
|
"aria-pressed",
|
|
8841
8934
|
"tabindex"
|
|
8842
8935
|
];
|
|
8843
|
-
function
|
|
8936
|
+
function Ki(e, t, n, r, i, a) {
|
|
8844
8937
|
return b(), c("span", {
|
|
8845
8938
|
class: _(["w-tag", a.classes]),
|
|
8846
8939
|
onClick: t[1] ||= (t) => {
|
|
8847
8940
|
e.$emit("update:modelValue", !n.modelValue), e.$emit("input", !n.modelValue);
|
|
8848
8941
|
},
|
|
8849
8942
|
onPointerdown: t[2] ||= (...e) => a.onTagPointerDown && a.onTagPointerDown(...e),
|
|
8850
|
-
onKeypress: t[3] ||=
|
|
8943
|
+
onKeypress: t[3] ||= N((t) => {
|
|
8851
8944
|
e.$emit("update:modelValue", !n.modelValue), e.$emit("input", !n.modelValue);
|
|
8852
8945
|
}, ["enter"]),
|
|
8853
8946
|
role: n.modelValue !== -1 && "button",
|
|
@@ -8857,15 +8950,16 @@ function Ri(e, t, n, r, i, a) {
|
|
|
8857
8950
|
}, [T(e.$slots, "default"), n.closable && n.modelValue ? (b(), c("i", {
|
|
8858
8951
|
key: 0,
|
|
8859
8952
|
class: "w-icon w-tag__closable wi-cross",
|
|
8860
|
-
onClick: t[0] ||=
|
|
8953
|
+
onClick: t[0] ||= P((t) => {
|
|
8861
8954
|
e.$emit("update:modelValue", !1), e.$emit("input", !1);
|
|
8862
8955
|
}, ["stop"]),
|
|
8863
8956
|
role: "icon",
|
|
8864
8957
|
"aria-hidden": "true"
|
|
8865
|
-
})) : s("", !0)], 46,
|
|
8958
|
+
})) : s("", !0)], 46, Gi);
|
|
8866
8959
|
}
|
|
8867
|
-
var
|
|
8960
|
+
var qi = /* @__PURE__ */ q({
|
|
8868
8961
|
name: "w-tag",
|
|
8962
|
+
focusable: !0,
|
|
8869
8963
|
expose: ["focus"],
|
|
8870
8964
|
mixins: [X],
|
|
8871
8965
|
props: {
|
|
@@ -8893,7 +8987,7 @@ var zi = /* @__PURE__ */ K({
|
|
|
8893
8987
|
},
|
|
8894
8988
|
emits: ["input", "update:modelValue"],
|
|
8895
8989
|
methods: { focus() {
|
|
8896
|
-
this.modelValue !== -1 &&
|
|
8990
|
+
this.modelValue !== -1 && J(this.$el);
|
|
8897
8991
|
} },
|
|
8898
8992
|
computed: {
|
|
8899
8993
|
presetSize() {
|
|
@@ -8925,7 +9019,7 @@ var zi = /* @__PURE__ */ K({
|
|
|
8925
9019
|
methods: { onTagPointerDown(e) {
|
|
8926
9020
|
this.modelValue !== -1 && (e.target.closest?.(".w-tag__closable") || this.onRipple(e));
|
|
8927
9021
|
} }
|
|
8928
|
-
}, [["render",
|
|
9022
|
+
}, [["render", Ki]]), Ji = ["for"], Yi = [
|
|
8929
9023
|
"id",
|
|
8930
9024
|
"name",
|
|
8931
9025
|
"placeholder",
|
|
@@ -8936,8 +9030,8 @@ var zi = /* @__PURE__ */ K({
|
|
|
8936
9030
|
"disabled",
|
|
8937
9031
|
"required",
|
|
8938
9032
|
"tabindex"
|
|
8939
|
-
],
|
|
8940
|
-
function
|
|
9033
|
+
], Xi = ["for"];
|
|
9034
|
+
function Zi(t, n, r, i, a, u) {
|
|
8941
9035
|
let f = E("w-icon");
|
|
8942
9036
|
return b(), o(D(t.formRegister ? "w-form-element" : "div"), h({ ref: "formEl" }, t.formRegister && {
|
|
8943
9037
|
validators: t.validators,
|
|
@@ -8956,12 +9050,12 @@ function Ui(t, n, r, i, a, u) {
|
|
|
8956
9050
|
class: u.classes,
|
|
8957
9051
|
style: t.$attrs.style
|
|
8958
9052
|
}), {
|
|
8959
|
-
default:
|
|
9053
|
+
default: j(() => [
|
|
8960
9054
|
r.labelPosition === "left" ? (b(), c(e, { key: 0 }, [t.$slots.default || r.label ? (b(), c("label", {
|
|
8961
9055
|
key: 0,
|
|
8962
9056
|
class: _(["w-textarea__label w-textarea__label--left w-form-el-shakable", t.labelClasses]),
|
|
8963
9057
|
for: t.inputId
|
|
8964
|
-
}, [T(t.$slots, "default", {}, () => [d(O(r.label), 1)])], 10,
|
|
9058
|
+
}, [T(t.$slots, "default", {}, () => [d(O(r.label), 1)])], 10, Ji)) : s("", !0)], 64)) : s("", !0),
|
|
8965
9059
|
l("div", { class: _(["w-textarea__textarea-wrap", u.inputWrapClasses]) }, [
|
|
8966
9060
|
T(t.$slots, "icon-left", { inputId: t.inputId }, () => [r.innerIconLeft ? (b(), o(f, {
|
|
8967
9061
|
key: 0,
|
|
@@ -8970,10 +9064,10 @@ function Ui(t, n, r, i, a, u) {
|
|
|
8970
9064
|
for: t.inputId,
|
|
8971
9065
|
onClick: n[0] ||= (e) => t.$emit("click:inner-icon-left", e)
|
|
8972
9066
|
}, {
|
|
8973
|
-
default:
|
|
9067
|
+
default: j(() => [d(O(r.innerIconLeft), 1)]),
|
|
8974
9068
|
_: 1
|
|
8975
9069
|
}, 8, ["for"])) : s("", !0)]),
|
|
8976
|
-
|
|
9070
|
+
M(l("textarea", h({
|
|
8977
9071
|
class: "w-textarea__textarea",
|
|
8978
9072
|
ref: "textarea",
|
|
8979
9073
|
"onUpdate:modelValue": n[1] ||= (e) => a.inputValue = e
|
|
@@ -8991,7 +9085,7 @@ function Ui(t, n, r, i, a, u) {
|
|
|
8991
9085
|
disabled: t.isDisabled || null,
|
|
8992
9086
|
required: t.required || null,
|
|
8993
9087
|
tabindex: t.tabindex || null
|
|
8994
|
-
}), null, 16,
|
|
9088
|
+
}), null, 16, Yi), [[A, a.inputValue]]),
|
|
8995
9089
|
r.labelPosition === "inside" && u.showLabelInside ? (b(), c(e, { key: 0 }, [t.$slots.default || r.label ? (b(), c("label", {
|
|
8996
9090
|
key: 0,
|
|
8997
9091
|
class: _(["w-textarea__label w-textarea__label--inside w-form-el-shakable", t.labelClasses])
|
|
@@ -9003,7 +9097,7 @@ function Ui(t, n, r, i, a, u) {
|
|
|
9003
9097
|
for: t.inputId,
|
|
9004
9098
|
onClick: n[5] ||= (e) => t.$emit("click:inner-icon-right", e)
|
|
9005
9099
|
}, {
|
|
9006
|
-
default:
|
|
9100
|
+
default: j(() => [d(O(r.innerIconRight), 1)]),
|
|
9007
9101
|
_: 1
|
|
9008
9102
|
}, 8, ["for"])) : s("", !0)])
|
|
9009
9103
|
], 2),
|
|
@@ -9011,7 +9105,7 @@ function Ui(t, n, r, i, a, u) {
|
|
|
9011
9105
|
key: 0,
|
|
9012
9106
|
class: _(["w-textarea__label w-textarea__label--right w-form-el-shakable", t.labelClasses]),
|
|
9013
9107
|
for: t.inputId
|
|
9014
|
-
}, [T(t.$slots, "default", {}, () => [d(O(r.label), 1)])], 10,
|
|
9108
|
+
}, [T(t.$slots, "default", {}, () => [d(O(r.label), 1)])], 10, Xi)) : s("", !0)], 64)) : s("", !0)
|
|
9015
9109
|
]),
|
|
9016
9110
|
_: 3
|
|
9017
9111
|
}, 16, [
|
|
@@ -9021,7 +9115,7 @@ function Ui(t, n, r, i, a, u) {
|
|
|
9021
9115
|
"style"
|
|
9022
9116
|
]);
|
|
9023
9117
|
}
|
|
9024
|
-
var
|
|
9118
|
+
var Qi = /* @__PURE__ */ q({
|
|
9025
9119
|
name: "w-textarea",
|
|
9026
9120
|
expose: ["focus"],
|
|
9027
9121
|
focusTargetRef: "textarea",
|
|
@@ -9161,13 +9255,13 @@ var Wi = /* @__PURE__ */ K({
|
|
|
9161
9255
|
e ? this.getLineHeight() : this.height = null;
|
|
9162
9256
|
}
|
|
9163
9257
|
}
|
|
9164
|
-
}, [["render",
|
|
9165
|
-
function
|
|
9258
|
+
}, [["render", Zi]]), $i = ["innerHTML"], ea = ["innerHTML"];
|
|
9259
|
+
function ta(t, n, r, i, a, s) {
|
|
9166
9260
|
return b(), c("ul", { class: _(["w-timeline", s.classes]) }, [(b(!0), c(e, null, w(r.items, (e, n) => (b(), c("li", {
|
|
9167
9261
|
class: "w-timeline-item",
|
|
9168
9262
|
key: n
|
|
9169
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 }]) }, {
|
|
9170
|
-
default:
|
|
9264
|
+
default: j(() => [d(O(e[r.itemIconKey] || r.icon), 1)]),
|
|
9171
9265
|
_: 2
|
|
9172
9266
|
}, 1032, ["class"])), t.$slots[`item.${n + 1}`] ? T(t.$slots, `item.${n + 1}`, {
|
|
9173
9267
|
key: 1,
|
|
@@ -9180,12 +9274,12 @@ function qi(t, n, r, i, a, s) {
|
|
|
9180
9274
|
}, () => [l("div", {
|
|
9181
9275
|
class: _(["w-timeline-item__title", { [e[r.itemColorKey] || r.color]: e[r.itemColorKey] || r.color }]),
|
|
9182
9276
|
innerHTML: e[r.itemTitleKey]
|
|
9183
|
-
}, null, 10,
|
|
9277
|
+
}, null, 10, $i), l("div", {
|
|
9184
9278
|
class: "w-timeline-item__content",
|
|
9185
9279
|
innerHTML: e[r.itemContentKey]
|
|
9186
|
-
}, null, 8,
|
|
9280
|
+
}, null, 8, ea)])]))), 128))], 2);
|
|
9187
9281
|
}
|
|
9188
|
-
var
|
|
9282
|
+
var na = /* @__PURE__ */ q({
|
|
9189
9283
|
name: "w-timeline",
|
|
9190
9284
|
props: {
|
|
9191
9285
|
items: {
|
|
@@ -9220,16 +9314,16 @@ var Ji = /* @__PURE__ */ K({
|
|
|
9220
9314
|
"w-timeline--light": this.light
|
|
9221
9315
|
};
|
|
9222
9316
|
} }
|
|
9223
|
-
}, [["render",
|
|
9317
|
+
}, [["render", ta]]);
|
|
9224
9318
|
//#endregion
|
|
9225
9319
|
//#region src/wave-ui/components/w-toolbar.vue?vue&type=template&lang.js
|
|
9226
|
-
function
|
|
9320
|
+
function ra(e, t, n, r, i, a) {
|
|
9227
9321
|
return b(), c("div", {
|
|
9228
9322
|
class: _(["w-toolbar", a.classes]),
|
|
9229
9323
|
style: y(a.styles)
|
|
9230
9324
|
}, [T(e.$slots, "default")], 6);
|
|
9231
9325
|
}
|
|
9232
|
-
var
|
|
9326
|
+
var ia = /* @__PURE__ */ q({
|
|
9233
9327
|
name: "w-toolbar",
|
|
9234
9328
|
props: {
|
|
9235
9329
|
color: { type: String },
|
|
@@ -9284,10 +9378,10 @@ var Xi = /* @__PURE__ */ K({
|
|
|
9284
9378
|
};
|
|
9285
9379
|
}
|
|
9286
9380
|
}
|
|
9287
|
-
}, [["render",
|
|
9381
|
+
}, [["render", ra]]);
|
|
9288
9382
|
//#endregion
|
|
9289
9383
|
//#region src/wave-ui/components/w-tooltip.vue?vue&type=template&lang.js
|
|
9290
|
-
function
|
|
9384
|
+
function aa(t, i, a, l, u, p) {
|
|
9291
9385
|
return b(), c(e, null, [
|
|
9292
9386
|
T(t.$slots, "activator"),
|
|
9293
9387
|
t.$slots.activator ? s("", !0) : T(t.$slots, "default", { key: 0 }),
|
|
@@ -9298,21 +9392,26 @@ function Zi(t, i, a, l, u, p) {
|
|
|
9298
9392
|
}, [f(r, {
|
|
9299
9393
|
name: p.transitionName,
|
|
9300
9394
|
appear: "",
|
|
9395
|
+
onAfterEnter: t.onDetachableAfterEnter,
|
|
9301
9396
|
onAfterLeave: t.onAfterLeave
|
|
9302
9397
|
}, {
|
|
9303
|
-
default:
|
|
9398
|
+
default: j(() => [t.detachableVisible ? (b(), c("div", {
|
|
9304
9399
|
class: _(["w-tooltip", p.classes]),
|
|
9305
9400
|
ref: "detachable",
|
|
9306
9401
|
key: l.tooltipInstanceId,
|
|
9307
9402
|
style: y(p.styles)
|
|
9308
9403
|
}, [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
9404
|
_: 3
|
|
9310
|
-
}, 8, [
|
|
9405
|
+
}, 8, [
|
|
9406
|
+
"name",
|
|
9407
|
+
"onAfterEnter",
|
|
9408
|
+
"onAfterLeave"
|
|
9409
|
+
])], 8, ["to", "disabled"])) : s("", !0)
|
|
9311
9410
|
], 64);
|
|
9312
9411
|
}
|
|
9313
|
-
var
|
|
9412
|
+
var oa = /* @__PURE__ */ q({
|
|
9314
9413
|
name: "w-tooltip",
|
|
9315
|
-
mixins: [
|
|
9414
|
+
mixins: [Hn],
|
|
9316
9415
|
setup() {
|
|
9317
9416
|
return { tooltipInstanceId: ae() };
|
|
9318
9417
|
},
|
|
@@ -9427,26 +9526,26 @@ var Qi = /* @__PURE__ */ K({
|
|
|
9427
9526
|
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
9527
|
}
|
|
9429
9528
|
}
|
|
9430
|
-
}, [["render",
|
|
9529
|
+
}, [["render", aa]]);
|
|
9431
9530
|
//#endregion
|
|
9432
9531
|
//#region src/wave-ui/components/transitions/w-transition-bounce.vue?vue&type=template&lang.js
|
|
9433
|
-
function
|
|
9532
|
+
function sa(e, t, n, i, a, s) {
|
|
9434
9533
|
return b(), o(r, h({ name: "bounce" }, e.$props), {
|
|
9435
|
-
default:
|
|
9534
|
+
default: j(() => [T(e.$slots, "default")]),
|
|
9436
9535
|
_: 3
|
|
9437
9536
|
}, 16);
|
|
9438
9537
|
}
|
|
9439
|
-
var
|
|
9538
|
+
var ca = /* @__PURE__ */ q({
|
|
9440
9539
|
name: "w-transition-bounce",
|
|
9441
9540
|
props: {
|
|
9442
9541
|
appear: { type: Boolean },
|
|
9443
9542
|
duration: { type: [Number, String] },
|
|
9444
9543
|
mode: { type: String }
|
|
9445
9544
|
}
|
|
9446
|
-
}, [["render",
|
|
9545
|
+
}, [["render", sa]]);
|
|
9447
9546
|
//#endregion
|
|
9448
9547
|
//#region src/wave-ui/components/transitions/w-transition-expand.vue?vue&type=template&lang.js
|
|
9449
|
-
function
|
|
9548
|
+
function la(e, t, n, i, a, s) {
|
|
9450
9549
|
return b(), o(r, {
|
|
9451
9550
|
name: "expand",
|
|
9452
9551
|
mode: n.mode,
|
|
@@ -9461,7 +9560,7 @@ function ta(e, t, n, i, a, s) {
|
|
|
9461
9560
|
onLeave: s.leave,
|
|
9462
9561
|
onAfterLeave: s.afterLeave
|
|
9463
9562
|
}, {
|
|
9464
|
-
default:
|
|
9563
|
+
default: j(() => [T(e.$slots, "default")]),
|
|
9465
9564
|
_: 3
|
|
9466
9565
|
}, 8, [
|
|
9467
9566
|
"mode",
|
|
@@ -9476,7 +9575,7 @@ function ta(e, t, n, i, a, s) {
|
|
|
9476
9575
|
"onAfterLeave"
|
|
9477
9576
|
]);
|
|
9478
9577
|
}
|
|
9479
|
-
var
|
|
9578
|
+
var ua = /* @__PURE__ */ q({
|
|
9480
9579
|
name: "w-transition-expand",
|
|
9481
9580
|
props: {
|
|
9482
9581
|
x: { type: Boolean },
|
|
@@ -9573,64 +9672,64 @@ var na = /* @__PURE__ */ K({
|
|
|
9573
9672
|
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
9673
|
}
|
|
9575
9674
|
}
|
|
9576
|
-
}, [["render",
|
|
9675
|
+
}, [["render", la]]);
|
|
9577
9676
|
//#endregion
|
|
9578
9677
|
//#region src/wave-ui/components/transitions/w-transition-fade.vue?vue&type=template&lang.js
|
|
9579
|
-
function
|
|
9678
|
+
function da(e, t, n, i, a, s) {
|
|
9580
9679
|
return b(), o(r, h({ name: "fade" }, e.$props), {
|
|
9581
|
-
default:
|
|
9680
|
+
default: j(() => [T(e.$slots, "default")]),
|
|
9582
9681
|
_: 3
|
|
9583
9682
|
}, 16);
|
|
9584
9683
|
}
|
|
9585
|
-
var
|
|
9684
|
+
var fa = /* @__PURE__ */ q({
|
|
9586
9685
|
name: "w-transition-fade",
|
|
9587
9686
|
props: {
|
|
9588
9687
|
appear: { type: Boolean },
|
|
9589
9688
|
duration: { type: [Number, String] },
|
|
9590
9689
|
mode: { type: String }
|
|
9591
9690
|
}
|
|
9592
|
-
}, [["render",
|
|
9691
|
+
}, [["render", da]]);
|
|
9593
9692
|
//#endregion
|
|
9594
9693
|
//#region src/wave-ui/components/transitions/w-transition-scale.vue?vue&type=template&lang.js
|
|
9595
|
-
function
|
|
9694
|
+
function pa(e, t, n, i, a, s) {
|
|
9596
9695
|
return b(), o(r, h({ name: "scale" }, e.$props), {
|
|
9597
|
-
default:
|
|
9696
|
+
default: j(() => [T(e.$slots, "default")]),
|
|
9598
9697
|
_: 3
|
|
9599
9698
|
}, 16);
|
|
9600
9699
|
}
|
|
9601
|
-
var
|
|
9700
|
+
var ma = /* @__PURE__ */ q({
|
|
9602
9701
|
name: "w-transition-scale",
|
|
9603
9702
|
props: {
|
|
9604
9703
|
appear: { type: Boolean },
|
|
9605
9704
|
duration: { type: [Number, String] },
|
|
9606
9705
|
mode: { type: String }
|
|
9607
9706
|
}
|
|
9608
|
-
}, [["render",
|
|
9707
|
+
}, [["render", pa]]);
|
|
9609
9708
|
//#endregion
|
|
9610
9709
|
//#region src/wave-ui/components/transitions/w-transition-scale-fade.vue?vue&type=template&lang.js
|
|
9611
|
-
function
|
|
9710
|
+
function ha(e, t, n, i, a, s) {
|
|
9612
9711
|
return b(), o(r, h({ name: "scale-fade" }, e.$props), {
|
|
9613
|
-
default:
|
|
9712
|
+
default: j(() => [T(e.$slots, "default")]),
|
|
9614
9713
|
_: 3
|
|
9615
9714
|
}, 16);
|
|
9616
9715
|
}
|
|
9617
|
-
var
|
|
9716
|
+
var ga = /* @__PURE__ */ q({
|
|
9618
9717
|
name: "w-transition-scale-fade",
|
|
9619
9718
|
props: {
|
|
9620
9719
|
appear: { type: Boolean },
|
|
9621
9720
|
duration: { type: [Number, String] },
|
|
9622
9721
|
mode: { type: String }
|
|
9623
9722
|
}
|
|
9624
|
-
}, [["render",
|
|
9723
|
+
}, [["render", ha]]);
|
|
9625
9724
|
//#endregion
|
|
9626
9725
|
//#region src/wave-ui/components/transitions/w-transition-slide.vue?vue&type=template&lang.js
|
|
9627
|
-
function
|
|
9726
|
+
function _a(e, t, n, i, a, s) {
|
|
9628
9727
|
return b(), o(r, h({ name: s.transitionName }, e.$props), {
|
|
9629
|
-
default:
|
|
9728
|
+
default: j(() => [T(e.$slots, "default")]),
|
|
9630
9729
|
_: 3
|
|
9631
9730
|
}, 16, ["name"]);
|
|
9632
9731
|
}
|
|
9633
|
-
var
|
|
9732
|
+
var va = /* @__PURE__ */ q({
|
|
9634
9733
|
name: "w-transition-slide",
|
|
9635
9734
|
props: {
|
|
9636
9735
|
appear: { type: Boolean },
|
|
@@ -9649,16 +9748,16 @@ var ua = /* @__PURE__ */ K({
|
|
|
9649
9748
|
return `slide-${this.direction}`;
|
|
9650
9749
|
}
|
|
9651
9750
|
}
|
|
9652
|
-
}, [["render",
|
|
9751
|
+
}, [["render", _a]]);
|
|
9653
9752
|
//#endregion
|
|
9654
9753
|
//#region src/wave-ui/components/transitions/w-transition-slide-fade.vue?vue&type=template&lang.js
|
|
9655
|
-
function
|
|
9754
|
+
function ya(e, t, n, i, a, s) {
|
|
9656
9755
|
return b(), o(r, h({ name: s.transitionName }, e.$props), {
|
|
9657
|
-
default:
|
|
9756
|
+
default: j(() => [T(e.$slots, "default")]),
|
|
9658
9757
|
_: 3
|
|
9659
9758
|
}, 16, ["name"]);
|
|
9660
9759
|
}
|
|
9661
|
-
var
|
|
9760
|
+
var ba = /* @__PURE__ */ q({
|
|
9662
9761
|
name: "w-transition-slide-fade",
|
|
9663
9762
|
props: {
|
|
9664
9763
|
appear: { type: Boolean },
|
|
@@ -9677,27 +9776,27 @@ var fa = /* @__PURE__ */ K({
|
|
|
9677
9776
|
return `slide-fade-${this.direction}`;
|
|
9678
9777
|
}
|
|
9679
9778
|
}
|
|
9680
|
-
}, [["render",
|
|
9779
|
+
}, [["render", ya]]);
|
|
9681
9780
|
//#endregion
|
|
9682
9781
|
//#region src/wave-ui/components/transitions/w-transition-twist.vue?vue&type=template&lang.js
|
|
9683
|
-
function
|
|
9782
|
+
function xa(e, t, n, i, a, s) {
|
|
9684
9783
|
return b(), o(r, h({ name: "twist" }, e.$props), {
|
|
9685
|
-
default:
|
|
9784
|
+
default: j(() => [T(e.$slots, "default")]),
|
|
9686
9785
|
_: 3
|
|
9687
9786
|
}, 16);
|
|
9688
9787
|
}
|
|
9689
|
-
var
|
|
9788
|
+
var Sa = /* @__PURE__ */ q({
|
|
9690
9789
|
name: "w-transition-twist",
|
|
9691
9790
|
props: {
|
|
9692
9791
|
appear: { type: Boolean },
|
|
9693
9792
|
duration: { type: [Number, String] },
|
|
9694
9793
|
mode: { type: String }
|
|
9695
9794
|
}
|
|
9696
|
-
}, [["render",
|
|
9795
|
+
}, [["render", xa]]), Ca = ["innerHTML"], wa = {
|
|
9697
9796
|
key: 1,
|
|
9698
9797
|
class: "ml1"
|
|
9699
9798
|
};
|
|
9700
|
-
function
|
|
9799
|
+
function Ta(t, n, r, i, a, u) {
|
|
9701
9800
|
let f = E("w-button"), p = E("w-icon"), m = E("w-tree", !0);
|
|
9702
9801
|
return b(), c("ul", { class: _(["w-tree", u.classes]) }, [(b(!0), c(e, null, w(t.currentDepthItems, (e, i) => (b(), c("li", {
|
|
9703
9802
|
class: _(["w-tree__item", u.itemClasses(e)]),
|
|
@@ -9709,10 +9808,10 @@ function _a(t, n, r, i, a, u) {
|
|
|
9709
9808
|
class: u.itemLabelClasses(e),
|
|
9710
9809
|
tabindex: u.getTreeItemTabindex(e)
|
|
9711
9810
|
}), {
|
|
9712
|
-
default:
|
|
9811
|
+
default: j(() => [(e.children || e.branch) && (r.expandOpenIcon && e.open || r.expandIcon) && !(r.unexpandableEmpty && !e.children) ? (b(), o(f, {
|
|
9713
9812
|
key: 0,
|
|
9714
9813
|
class: "w-tree__item-expand",
|
|
9715
|
-
onClick:
|
|
9814
|
+
onClick: P((t) => !r.disabled && !e.disabled && u.onLabelClick(e, t), ["stop"]),
|
|
9716
9815
|
color: "inherit",
|
|
9717
9816
|
icon: e.open && r.expandOpenIcon || r.expandIcon,
|
|
9718
9817
|
"icon-props": { rotate90a: !e.open },
|
|
@@ -9736,11 +9835,11 @@ function _a(t, n, r, i, a, u) {
|
|
|
9736
9835
|
class: "w-tree__item-icon",
|
|
9737
9836
|
color: e.originalItem[r.itemIconColorKey] || r.iconColor
|
|
9738
9837
|
}, {
|
|
9739
|
-
default:
|
|
9838
|
+
default: j(() => [d(O(u.itemIcon(e)), 1)]),
|
|
9740
9839
|
_: 2
|
|
9741
9840
|
}, 1032, ["color"])) : s("", !0),
|
|
9742
|
-
l("span", { innerHTML: e.label }, null, 8,
|
|
9743
|
-
r.counts && (e.children || e.branch) ? (b(), c("span",
|
|
9841
|
+
l("span", { innerHTML: e.label }, null, 8, Ca),
|
|
9842
|
+
r.counts && (e.children || e.branch) ? (b(), c("span", wa, "(" + O(e.originalItem.children?.length || 0) + ")", 1)) : s("", !0)
|
|
9744
9843
|
])]),
|
|
9745
9844
|
_: 2
|
|
9746
9845
|
}, 1040, [
|
|
@@ -9754,7 +9853,7 @@ function _a(t, n, r, i, a, u) {
|
|
|
9754
9853
|
onAfterEnter: (n) => t.$emit("open", u.emitPayload(e)),
|
|
9755
9854
|
onAfterLeave: (n) => t.$emit("close", u.emitPayload(e))
|
|
9756
9855
|
}, {
|
|
9757
|
-
default:
|
|
9856
|
+
default: j(() => [e.children && e.open ? (b(), o(m, h({
|
|
9758
9857
|
key: 0,
|
|
9759
9858
|
ref_for: !0
|
|
9760
9859
|
}, t.$props, {
|
|
@@ -9769,7 +9868,7 @@ function _a(t, n, r, i, a, u) {
|
|
|
9769
9868
|
onSelect: n[5] ||= (e) => t.$emit("select", e),
|
|
9770
9869
|
"onUpdate:modelValue": n[6] ||= (e) => t.$emit("update:model-value", e)
|
|
9771
9870
|
}), {
|
|
9772
|
-
item:
|
|
9871
|
+
item: j(({ item: e, depth: n, path: r, open: i }) => [T(t.$slots, "item", {
|
|
9773
9872
|
item: e,
|
|
9774
9873
|
depth: n,
|
|
9775
9874
|
path: r,
|
|
@@ -9788,8 +9887,9 @@ function _a(t, n, r, i, a, u) {
|
|
|
9788
9887
|
"onAfterLeave"
|
|
9789
9888
|
]))], 2))), 128))], 2);
|
|
9790
9889
|
}
|
|
9791
|
-
var
|
|
9890
|
+
var Ea = /* @__PURE__ */ q({
|
|
9792
9891
|
name: "w-tree",
|
|
9892
|
+
focusable: !0,
|
|
9793
9893
|
expose: ["focus"],
|
|
9794
9894
|
mixins: [X],
|
|
9795
9895
|
props: {
|
|
@@ -9873,10 +9973,10 @@ var va = /* @__PURE__ */ K({
|
|
|
9873
9973
|
} },
|
|
9874
9974
|
methods: {
|
|
9875
9975
|
focus() {
|
|
9876
|
-
this.disabled ||
|
|
9976
|
+
this.disabled || J(this.$el.querySelector(".w-tree__item-label[tabindex=\"0\"]"));
|
|
9877
9977
|
},
|
|
9878
9978
|
updateCurrentDepthTree(e, t = []) {
|
|
9879
|
-
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);
|
|
9880
9980
|
Array.isArray(e) || (e = [e]), e.forEach((e, n) => {
|
|
9881
9981
|
let r = {
|
|
9882
9982
|
originalItem: e,
|
|
@@ -9987,65 +10087,65 @@ var va = /* @__PURE__ */ K({
|
|
|
9987
10087
|
unmounted() {
|
|
9988
10088
|
this.dataPropUnwatch();
|
|
9989
10089
|
}
|
|
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:
|
|
10090
|
+
}, [["render", Ta]]), Da = /* @__PURE__ */ F({
|
|
10091
|
+
WAccordion: () => mt,
|
|
10092
|
+
WAccordionItem: () => ft,
|
|
10093
|
+
WAlert: () => _t,
|
|
10094
|
+
WAutocomplete: () => Dt,
|
|
10095
|
+
WBadge: () => At,
|
|
10096
|
+
WBreadcrumbs: () => Nt,
|
|
10097
|
+
WButton: () => zt,
|
|
10098
|
+
WCard: () => Ht,
|
|
10099
|
+
WCheckbox: () => Yt,
|
|
10100
|
+
WCheckboxes: () => Qt,
|
|
10101
|
+
WConfirm: () => en,
|
|
10102
|
+
WDatePicker: () => nn,
|
|
10103
|
+
WDialog: () => an,
|
|
10104
|
+
WDivider: () => cn,
|
|
10105
|
+
WDrawer: () => fn,
|
|
10106
|
+
WFlex: () => mn,
|
|
10107
|
+
WForm: () => _n,
|
|
10108
|
+
WFormElement: () => yn,
|
|
10109
|
+
WGrid: () => xn,
|
|
10110
|
+
WIcon: () => Cn,
|
|
10111
|
+
WImage: () => Dn,
|
|
10112
|
+
WInput: () => Ln,
|
|
10113
|
+
WList: () => zn,
|
|
10114
|
+
WMenu: () => Wn,
|
|
10115
|
+
WNotification: () => Kn,
|
|
10116
|
+
WOverlay: () => Jn,
|
|
10117
|
+
WParallax: () => Zn,
|
|
10118
|
+
WProgress: () => ar,
|
|
10119
|
+
WRadio: () => fr,
|
|
10120
|
+
WRadios: () => hr,
|
|
10121
|
+
WRating: () => yr,
|
|
10122
|
+
WScrollable: () => Tr,
|
|
10123
|
+
WSelect: () => jr,
|
|
10124
|
+
WSlider: () => Wr,
|
|
10125
|
+
WSpinner: () => qr,
|
|
10126
|
+
WSteps: () => Yr,
|
|
10127
|
+
WSwitch: () => ri,
|
|
10128
|
+
WTable: () => Wi,
|
|
10129
|
+
WTabs: () => mi,
|
|
10130
|
+
WTag: () => qi,
|
|
10131
|
+
WTextarea: () => Qi,
|
|
10132
|
+
WTimeline: () => na,
|
|
10133
|
+
WToolbar: () => ia,
|
|
10134
|
+
WTooltip: () => oa,
|
|
10135
|
+
WTransitionBounce: () => ca,
|
|
10136
|
+
WTransitionExpand: () => ua,
|
|
10137
|
+
WTransitionFade: () => fa,
|
|
10138
|
+
WTransitionScale: () => ma,
|
|
10139
|
+
WTransitionScaleFade: () => ga,
|
|
10140
|
+
WTransitionSlide: () => va,
|
|
10141
|
+
WTransitionSlideFade: () => ba,
|
|
10142
|
+
WTransitionTwist: () => Sa,
|
|
10143
|
+
WTree: () => Ea
|
|
10144
|
+
}), Oa = et.install;
|
|
10145
|
+
et.install = (e, t = {}) => Oa.call(et, e, {
|
|
10146
|
+
components: Da,
|
|
10047
10147
|
...t
|
|
10048
10148
|
});
|
|
10049
|
-
var
|
|
10149
|
+
var ka = et;
|
|
10050
10150
|
//#endregion
|
|
10051
|
-
export {
|
|
10151
|
+
export { ka as default };
|