wave-ui 3.27.1 → 3.28.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 +6 -0
- package/dist/types/types/components/WAccordion.d.ts +7 -0
- package/dist/types/types/components/WBreadcrumbs.d.ts +7 -0
- package/dist/types/types/components/WButton.d.ts +7 -0
- package/dist/types/types/components/WList.d.ts +7 -0
- package/dist/types/types/components/WScrollable.d.ts +143 -0
- package/dist/types/types/components/WScrollable.js +2 -0
- package/dist/types/types/components/WTabs.d.ts +7 -0
- package/dist/types/types/components/WTag.d.ts +7 -0
- package/dist/types/types/components/index.d.ts +1 -0
- package/dist/wave-ui.cjs.js +3 -3
- package/dist/wave-ui.css +1 -1
- package/dist/wave-ui.esm.js +1440 -939
- package/dist/wave-ui.umd.js +3 -3
- package/package.json +6 -6
- package/src/wave-ui/components/w-accordion/index.vue +5 -1
- package/src/wave-ui/components/w-accordion/item.vue +42 -12
- package/src/wave-ui/components/w-breadcrumbs.vue +13 -2
- package/src/wave-ui/components/w-button/button.vue +15 -1
- package/src/wave-ui/components/w-button/index.vue +2 -1
- package/src/wave-ui/components/w-checkbox.vue +5 -1
- package/src/wave-ui/components/w-checkboxes.vue +5 -1
- package/src/wave-ui/components/w-input.vue +5 -1
- package/src/wave-ui/components/w-list.vue +12 -0
- package/src/wave-ui/components/w-radio.vue +6 -1
- package/src/wave-ui/components/w-radios.vue +5 -1
- package/src/wave-ui/components/w-rating.vue +5 -1
- package/src/wave-ui/components/w-scrollable.vue +667 -94
- package/src/wave-ui/components/w-select.vue +11 -7
- package/src/wave-ui/components/w-slider.vue +5 -1
- package/src/wave-ui/components/w-switch.vue +5 -1
- package/src/wave-ui/components/w-tabs/index.vue +10 -0
- package/src/wave-ui/components/w-tag.vue +14 -0
- package/src/wave-ui/components/w-textarea.vue +5 -1
- package/src/wave-ui/core.js +2 -0
- package/src/wave-ui/mixins/form-elements.js +5 -8
- package/src/wave-ui/mixins/ripple.js +39 -0
- package/src/wave-ui/scss/_ripple.scss +37 -0
- package/src/wave-ui/scss/index.scss +1 -0
- package/src/wave-ui/scss/variables/_variables.scss +0 -2
- package/src/wave-ui/utils/config.js +2 -0
- package/src/wave-ui/utils/ripple.js +71 -0
- package/src/wave-ui/utils/wave-ripple-directive.js +40 -0
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,
|
|
1
|
+
import { Fragment as e, KeepAlive as t, Teleport as n, Transition as r, TransitionGroup as i, computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createSlots as u, createTextVNode as d, createVNode as f, h as p, inject as m, mergeProps as h, nextTick as g, normalizeClass as _, normalizeProps as v, normalizeStyle as y, onBeforeUnmount as ee, onMounted as te, openBlock as b, reactive as x, ref as S, render as C, renderList as w, renderSlot as T, resolveComponent as E, resolveDirective as ne, resolveDynamicComponent as D, toDisplayString as O, toHandlers as k, unref as re, useAttrs as ie, useId as A, vModelDynamic as j, vModelText as M, vShow as ae, watch as oe, withCtx as N, withDirectives as P, withKeys as F, withModifiers as I } from "vue";
|
|
2
2
|
//#region \0rolldown/runtime.js
|
|
3
|
-
var
|
|
3
|
+
var se = Object.defineProperty, L = (e, t) => {
|
|
4
4
|
let n = {};
|
|
5
|
-
for (var r in e)
|
|
5
|
+
for (var r in e) se(n, r, {
|
|
6
6
|
get: e[r],
|
|
7
7
|
enumerable: !0
|
|
8
8
|
});
|
|
9
|
-
return t ||
|
|
10
|
-
},
|
|
9
|
+
return t || se(n, Symbol.toStringTag, { value: "Module" }), n;
|
|
10
|
+
}, R = x({
|
|
11
11
|
on: "#app",
|
|
12
12
|
breakpoints: {
|
|
13
13
|
xs: 600,
|
|
@@ -49,15 +49,16 @@ var R = Object.defineProperty, ne = (e, t) => {
|
|
|
49
49
|
align: "right",
|
|
50
50
|
transition: "default"
|
|
51
51
|
},
|
|
52
|
+
ripple: !0,
|
|
52
53
|
presets: {}
|
|
53
|
-
}),
|
|
54
|
+
}), ce = (e, t = R) => {
|
|
54
55
|
if (!Object.keys(t).length) t = Object.assign(t, e);
|
|
55
56
|
else for (let n in e) {
|
|
56
57
|
let r = e[n];
|
|
57
|
-
typeof r == "object" && typeof t[n] == "object" ?
|
|
58
|
+
typeof r == "object" && typeof t[n] == "object" ? ce(e[n], t[n]) : t[n] = r;
|
|
58
59
|
}
|
|
59
60
|
return t;
|
|
60
|
-
}, z = (e) => console.warn(`Wave UI: ${e}`), B = (e) => console.error(`Wave UI: ${e}`),
|
|
61
|
+
}, z = (e) => console.warn(`Wave UI: ${e}`), B = (e) => console.error(`Wave UI: ${e}`), le = (e) => {
|
|
61
62
|
["light", "dark"].forEach((t) => {
|
|
62
63
|
let n = e.colors[t];
|
|
63
64
|
n.shades = {};
|
|
@@ -70,13 +71,13 @@ var R = Object.defineProperty, ne = (e, t) => {
|
|
|
70
71
|
if (i) {
|
|
71
72
|
i.length === 3 && (r.color = `${i[0]}${i[0]}${i[1]}${i[1]}${i[2]}${i[2]}`);
|
|
72
73
|
for (let e = 1; e <= 6; e++) {
|
|
73
|
-
let i =
|
|
74
|
+
let i = ve(`#${r.color}`, e * (t?.lightIncrement ?? 16) + (t?.lightOffset ?? 0)), a = ye(`#${r.color}`, e * (t?.darkIncrement ?? 12.4) + (t?.darkOffset ?? 0));
|
|
74
75
|
n.shades[`${r.label}-light${e}`] = i, n.shades[`${r.label}-dark${e}`] = a;
|
|
75
76
|
}
|
|
76
77
|
}
|
|
77
78
|
}
|
|
78
79
|
});
|
|
79
|
-
},
|
|
80
|
+
}, ue = (e, t) => {
|
|
80
81
|
let n = { ...t.reduce((e, t) => {
|
|
81
82
|
e[t.label] = t.color;
|
|
82
83
|
let n = (t.shades || []).reduce((e, t) => (e[t.label] = t.color, e), {});
|
|
@@ -90,27 +91,27 @@ var R = Object.defineProperty, ne = (e, t) => {
|
|
|
90
91
|
}) };
|
|
91
92
|
return delete n.shades, n;
|
|
92
93
|
};
|
|
93
|
-
function
|
|
94
|
+
function de(e, t, n) {
|
|
94
95
|
return Math.min(Math.max(e, t), n);
|
|
95
96
|
}
|
|
96
|
-
function
|
|
97
|
+
function V(e) {
|
|
97
98
|
let t = e.toString(16);
|
|
98
99
|
return t.length === 1 && `0${t}` || t.length === 2 && t || B(`expected value from 0~255, got: ${e}`) || "";
|
|
99
100
|
}
|
|
100
|
-
function
|
|
101
|
+
function H(e) {
|
|
101
102
|
return /^#[0-9a-f]{6}([0-9a-f]{2})?$/i.test(e);
|
|
102
103
|
}
|
|
103
|
-
function
|
|
104
|
+
function fe(e) {
|
|
104
105
|
return /^#[0-9a-f]{3}([0-9a-f])?$/i.test(e);
|
|
105
106
|
}
|
|
106
|
-
function
|
|
107
|
+
function pe(e) {
|
|
107
108
|
return `#${e.substring(1).split("").map((e) => `${e}${e}`).join("")}`;
|
|
108
109
|
}
|
|
109
|
-
function
|
|
110
|
-
return
|
|
110
|
+
function me(e) {
|
|
111
|
+
return H(e) && e || fe(e) && pe(e) || B(`expected color hex string, got '${e}'`) || "";
|
|
111
112
|
}
|
|
112
|
-
function
|
|
113
|
-
let t =
|
|
113
|
+
function he(e) {
|
|
114
|
+
let t = me(e);
|
|
114
115
|
return {
|
|
115
116
|
red: parseInt(t.substring(1, 3), 16),
|
|
116
117
|
green: parseInt(t.substring(3, 5), 16),
|
|
@@ -119,24 +120,24 @@ function W(e) {
|
|
|
119
120
|
hasAlpha: t.length === 9
|
|
120
121
|
};
|
|
121
122
|
}
|
|
122
|
-
function
|
|
123
|
-
return `#${
|
|
123
|
+
function ge(e, t, n, r) {
|
|
124
|
+
return `#${V(e)}${V(t)}${V(n)}${r ? V(Math.floor(r * 255)) : ""}`;
|
|
124
125
|
}
|
|
125
|
-
function
|
|
126
|
-
let r =
|
|
126
|
+
function _e(e, t, n = 50) {
|
|
127
|
+
let r = he(e), i = he(t), a = de(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 = de(Math.round(r.red * c + i.red * l), 0, 255), d = de(Math.round(r.green * c + i.green * l), 0, 255), f = de(Math.round(r.blue * c + i.blue * l), 0, 255), p = r.alpha * a + i.alpha * (1 - a), m = [
|
|
127
128
|
u,
|
|
128
129
|
d,
|
|
129
130
|
f
|
|
130
131
|
];
|
|
131
|
-
return (r.hasAlpha || i.hasAlpha || p !== 1) && m.push(p),
|
|
132
|
+
return (r.hasAlpha || i.hasAlpha || p !== 1) && m.push(p), ge(...m);
|
|
132
133
|
}
|
|
133
|
-
function
|
|
134
|
-
return
|
|
134
|
+
function ve(e, t = 15) {
|
|
135
|
+
return _e("#ffffff", e, t);
|
|
135
136
|
}
|
|
136
|
-
function
|
|
137
|
-
return
|
|
137
|
+
function ye(e, t = 12.4) {
|
|
138
|
+
return _e("#000000", e, t);
|
|
138
139
|
}
|
|
139
|
-
var
|
|
140
|
+
var be = [
|
|
140
141
|
{
|
|
141
142
|
label: "pink",
|
|
142
143
|
color: "#e91e63",
|
|
@@ -1179,14 +1180,14 @@ var K = [
|
|
|
1179
1180
|
label: "inherit",
|
|
1180
1181
|
color: "inherit"
|
|
1181
1182
|
}
|
|
1182
|
-
],
|
|
1183
|
+
], U = {
|
|
1183
1184
|
cssScope: ".w-app",
|
|
1184
1185
|
baseIncrement: 4
|
|
1185
|
-
},
|
|
1186
|
+
}, W = {
|
|
1186
1187
|
keys: [],
|
|
1187
1188
|
values: []
|
|
1188
|
-
},
|
|
1189
|
-
let n = "", r = {}, { info: i, warning: a, success: o, error: s, shades: c, ...l } = e, { cssScope: u } =
|
|
1189
|
+
}, xe = null, Se = (e, t) => {
|
|
1190
|
+
let n = "", r = {}, { info: i, warning: a, success: o, error: s, shades: c, ...l } = e, { cssScope: u } = U;
|
|
1190
1191
|
for (let e in l) n += `${u} .${e}--bg{background-color:var(--w-${e}-color)}${u} .${e}{color:var(--w-${e}-color)}`;
|
|
1191
1192
|
for (let e in c) n += `${u} .${e}--bg{background-color:${c[e]}}${u} .${e}{color:${c[e]}}`;
|
|
1192
1193
|
let d = {
|
|
@@ -1202,8 +1203,8 @@ var K = [
|
|
|
1202
1203
|
return Object.entries(r).forEach(([e, t]) => {
|
|
1203
1204
|
f += `--w-${e}-color: ${t};`;
|
|
1204
1205
|
}), `:root{${f}}${n}`;
|
|
1205
|
-
},
|
|
1206
|
-
let n = "", { cssScope: r } =
|
|
1206
|
+
}, Ce = (e, t) => {
|
|
1207
|
+
let n = "", { cssScope: r } = U;
|
|
1207
1208
|
return e.forEach(({ min: e, label: i }) => {
|
|
1208
1209
|
if (i === "xs") for (let e = 0; e < t; e++) n += `${r} .${i}${t - e}{width:${parseFloat(((t - e) * 100 / t).toFixed(4))}%;}`;
|
|
1209
1210
|
else {
|
|
@@ -1212,8 +1213,8 @@ var K = [
|
|
|
1212
1213
|
n += "}";
|
|
1213
1214
|
}
|
|
1214
1215
|
}), n;
|
|
1215
|
-
},
|
|
1216
|
-
let t = "", { cssScope: n, baseIncrement: r } =
|
|
1216
|
+
}, we = (e) => {
|
|
1217
|
+
let t = "", { cssScope: n, baseIncrement: r } = U, i = /* @__PURE__ */ "show{display:block}.hide{display:none}.d-flex{display:flex}.d-iflex{display:inline-flex}.d-block{display:block}.d-iblock{display:inline-block}.relative{position:relative}.absolute{position:absolute}.fixed{position:fixed}.sticky{position:sticky}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.text-nowrap{white-space:nowrap}.row{flex-direction:row}.column{flex-direction:column}.column-reverse{flex-direction:column-reverse}.grow{flex-grow:1;flex-basis:auto}.no-grow{flex-grow:0}.shrink{flex-shrink:1;margin-left:auto;margin-right:auto}.no-shrink{flex-shrink:0}.wrap{flex-wrap: wrap}.no-wrap{flex-wrap: nowrap}.fill-width{width:100%}.fill-height{height:100%}.h-auto{height:auto}.h-screen{height:100vh}.basis-zero{flex-basis:0}.align-start{align-items:flex-start}.align-center{align-items:center}.align-end{align-items:flex-end}.align-self-start{align-self:flex-start}.align-self-center{align-self:center}.align-self-end{align-self:flex-end}.align-self-stretch{align-self:stretch}.justify-start{justify-content:flex-start}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-space-between{justify-content:space-between}.justify-space-around{justify-content:space-around}.justify-space-evenly{justify-content:space-evenly}".split("."), a = Array(12).fill();
|
|
1217
1218
|
return e.forEach(({ label: e, min: o }) => {
|
|
1218
1219
|
e !== "xs" && (t += `@media(min-width:${o}px){` + i.map((t) => `${n} .${e}u-${t}`).join("") + a.map((t, n) => `.w-grid.${e}u-columns${n + 1}{grid-template-columns:repeat(${n + 1},1fr);}`).join("") + a.map((t, n) => `.w-flex.${e}u-gap${n + 1},.w-grid.${e}u-gap${n + 1}{gap:${(n + 1) * r}px;}`).join("") + `.w-flex.${e}u-gap0,.w-flex.${e}u-gap0{gap:0}}`);
|
|
1219
1220
|
}), e.forEach(({ label: e, min: o, max: s }) => {
|
|
@@ -1221,11 +1222,11 @@ var K = [
|
|
|
1221
1222
|
}), e.forEach(({ label: e, max: o }) => {
|
|
1222
1223
|
e !== "xl" && (t += `@media (max-width:${o}px){` + i.map((t) => `${n} .${e}d-${t}`).join("") + a.map((t, n) => `.w-grid.${e}d-columns${n + 1}{grid-template-columns:repeat(${n + 1},1fr);}`).join("") + a.map((t, n) => `.w-flex.${e}d-gap${n + 1},.w-grid.${e}d-gap${n + 1}{gap:${(n + 1) * r}px;}`).join("") + `.w-flex.${e}d-gap0,.w-flex.${e}d-gap0{gap:0}}`);
|
|
1223
1224
|
}), t;
|
|
1224
|
-
},
|
|
1225
|
-
let t = window.innerWidth, n =
|
|
1225
|
+
}, Te = (e) => {
|
|
1226
|
+
let t = window.innerWidth, n = W.values.slice(0);
|
|
1226
1227
|
n.push(t), n.sort((e, t) => e - t);
|
|
1227
|
-
let r =
|
|
1228
|
-
r !==
|
|
1228
|
+
let r = W.keys[n.indexOf(t)] || "xl";
|
|
1229
|
+
r !== xe && (xe = r, e.breakpoint = {
|
|
1229
1230
|
name: r,
|
|
1230
1231
|
xs: r === "xs",
|
|
1231
1232
|
sm: r === "sm",
|
|
@@ -1234,14 +1235,14 @@ var K = [
|
|
|
1234
1235
|
xl: r === "xl",
|
|
1235
1236
|
width: t
|
|
1236
1237
|
}), e.breakpoint.width = window.innerWidth;
|
|
1237
|
-
},
|
|
1238
|
+
}, G = (e) => {
|
|
1238
1239
|
let { config: t } = e;
|
|
1239
|
-
if (
|
|
1240
|
+
if (W = {
|
|
1240
1241
|
keys: Object.keys(t.breakpoints),
|
|
1241
1242
|
values: Object.values(t.breakpoints)
|
|
1242
1243
|
}, !document.getElementById("wave-ui-styles")) {
|
|
1243
1244
|
let e = document.createElement("style");
|
|
1244
|
-
e.id = "wave-ui-styles", e.innerHTML =
|
|
1245
|
+
e.id = "wave-ui-styles", e.innerHTML = Ee(t);
|
|
1245
1246
|
let n = document.head.querySelectorAll("style,link[rel=\"stylesheet\"]");
|
|
1246
1247
|
if (t.css.prependCss) {
|
|
1247
1248
|
let t = n[0];
|
|
@@ -1251,15 +1252,15 @@ var K = [
|
|
|
1251
1252
|
t ? t.after(e) : document.head.appendChild(e);
|
|
1252
1253
|
}
|
|
1253
1254
|
}
|
|
1254
|
-
|
|
1255
|
-
},
|
|
1255
|
+
Te(e), window.addEventListener("resize", () => Te(e));
|
|
1256
|
+
}, K = (e, t, n) => {
|
|
1256
1257
|
if (!document.getElementById("wave-ui-colors")) {
|
|
1257
1258
|
let r = document.createElement("style");
|
|
1258
|
-
r.id = "wave-ui-colors", r.innerHTML =
|
|
1259
|
+
r.id = "wave-ui-colors", r.innerHTML = Se(e, t, n);
|
|
1259
1260
|
let i = document.head.querySelectorAll("style,link[rel=\"stylesheet\"]")[0];
|
|
1260
1261
|
i ? i.before(r) : document.head.appendChild(r);
|
|
1261
1262
|
}
|
|
1262
|
-
},
|
|
1263
|
+
}, Ee = (e) => {
|
|
1263
1264
|
let t = Object.entries(e.breakpoints), n = t.map(([e, n], r) => {
|
|
1264
1265
|
let [, i = 0] = t[r - 1] || [];
|
|
1265
1266
|
return {
|
|
@@ -1268,26 +1269,26 @@ var K = [
|
|
|
1268
1269
|
max: n
|
|
1269
1270
|
};
|
|
1270
1271
|
}), r = getComputedStyle(document.documentElement);
|
|
1271
|
-
|
|
1272
|
+
U.cssScope = r.getPropertyValue("--w-css-scope"), U.baseIncrement = parseInt(r.getPropertyValue("--w-base-increment"));
|
|
1272
1273
|
let i = "";
|
|
1273
|
-
return i +=
|
|
1274
|
-
},
|
|
1275
|
-
function
|
|
1276
|
-
let m =
|
|
1274
|
+
return i += Ce(n, e.css.grid), e.css.breakpointLayoutClasses && (i += we(n)), i;
|
|
1275
|
+
}, q = ["innerHTML"];
|
|
1276
|
+
function De(t, r, a, u, d, p) {
|
|
1277
|
+
let m = E("w-alert");
|
|
1277
1278
|
return b(), o(n, { to: ".w-app" }, [f(i, {
|
|
1278
|
-
class:
|
|
1279
|
+
class: _(["w-notification-manager", { "w-notification-manager--left": p.conf.align === "left" }]),
|
|
1279
1280
|
tag: "div",
|
|
1280
1281
|
name: p.transition,
|
|
1281
1282
|
appear: ""
|
|
1282
1283
|
}, {
|
|
1283
|
-
default:
|
|
1284
|
+
default: N(() => [(b(!0), c(e, null, w(p.notifications, (t) => (b(), c(e, null, [t._value ? (b(), o(m, h({
|
|
1284
1285
|
class: "white--bg",
|
|
1285
1286
|
key: t._uid,
|
|
1286
1287
|
modelValue: t._value,
|
|
1287
1288
|
"onUpdate:modelValue": (e) => t._value = e,
|
|
1288
1289
|
onClose: t.dismiss
|
|
1289
1290
|
}, { ref_for: !0 }, p.notifProps(t)), {
|
|
1290
|
-
default:
|
|
1291
|
+
default: N(() => [l("div", { innerHTML: t.message }, null, 8, q)]),
|
|
1291
1292
|
_: 2
|
|
1292
1293
|
}, 1040, [
|
|
1293
1294
|
"modelValue",
|
|
@@ -1299,11 +1300,11 @@ function Se(t, r, a, u, d, p) {
|
|
|
1299
1300
|
}
|
|
1300
1301
|
//#endregion
|
|
1301
1302
|
//#region \0plugin-vue:export-helper
|
|
1302
|
-
var
|
|
1303
|
+
var J = (e, t) => {
|
|
1303
1304
|
let n = e.__vccOpts || e;
|
|
1304
1305
|
for (let [e, r] of t) n[e] = r;
|
|
1305
1306
|
return n;
|
|
1306
|
-
},
|
|
1307
|
+
}, Oe = /* @__PURE__ */ J({
|
|
1307
1308
|
name: "w-notification-manager",
|
|
1308
1309
|
computed: {
|
|
1309
1310
|
conf() {
|
|
@@ -1320,7 +1321,7 @@ var Y = (e, t) => {
|
|
|
1320
1321
|
let { _value: t, _uid: n, message: r, timeout: i, ...a } = e;
|
|
1321
1322
|
return a.dismiss &&= !0, a;
|
|
1322
1323
|
} }
|
|
1323
|
-
}, [["render",
|
|
1324
|
+
}, [["render", De]]), ke = class e {
|
|
1324
1325
|
static #e;
|
|
1325
1326
|
notifications;
|
|
1326
1327
|
_uid;
|
|
@@ -1358,17 +1359,69 @@ var Y = (e, t) => {
|
|
|
1358
1359
|
dismiss(e) {
|
|
1359
1360
|
this.notifications = this.notifications.filter((t) => t._uid !== e);
|
|
1360
1361
|
}
|
|
1361
|
-
},
|
|
1362
|
+
}, Ae = (e) => {
|
|
1362
1363
|
let t = document.createElement("div");
|
|
1363
1364
|
document.body.appendChild(t);
|
|
1364
|
-
let n = p(
|
|
1365
|
-
n.appContext = e._context,
|
|
1366
|
-
}
|
|
1365
|
+
let n = p(Oe);
|
|
1366
|
+
n.appContext = e._context, C(n, t), t.remove();
|
|
1367
|
+
};
|
|
1368
|
+
//#endregion
|
|
1369
|
+
//#region src/wave-ui/utils/ripple.js
|
|
1370
|
+
function je(e, t, n = {}) {
|
|
1371
|
+
if (typeof window > "u" || typeof document > "u" || !e?.ownerDocument || n.disabled || window.matchMedia?.("(prefers-reduced-motion: reduce)")?.matches) return;
|
|
1372
|
+
let r = typeof t.clientX == "number" ? t.clientX : null, i = typeof t.clientY == "number" ? t.clientY : null;
|
|
1373
|
+
if ((r == null || i == null) && t.touches?.length && (r = t.touches[0].clientX, i = t.touches[0].clientY), r == null || i == null) return;
|
|
1374
|
+
let a = e.getBoundingClientRect(), o = Math.max(a.width, a.height), s = Math.max(o * 2.5, 48), c = r - a.left - s / 2, l = i - a.top - s / 2, u = document.createElement("span");
|
|
1375
|
+
u.className = "w-ripple__ink-container", u.setAttribute("aria-hidden", "true");
|
|
1376
|
+
let d = document.createElement("span");
|
|
1377
|
+
d.className = "w-ripple__ink", d.style.width = `${s}px`, d.style.height = `${s}px`, d.style.left = `${c}px`, d.style.top = `${l}px`, u.appendChild(d), e.appendChild(u);
|
|
1378
|
+
let f = () => {
|
|
1379
|
+
d.removeEventListener("animationend", f), u.remove();
|
|
1380
|
+
};
|
|
1381
|
+
d.addEventListener("animationend", f, { once: !0 }), window.setTimeout(() => {
|
|
1382
|
+
u.parentNode === e && u.remove();
|
|
1383
|
+
}, 600);
|
|
1384
|
+
}
|
|
1385
|
+
function Me(e) {
|
|
1386
|
+
let t = e?.$waveui;
|
|
1387
|
+
return t && typeof t == "object" ? t : { config: { ripple: !0 } };
|
|
1388
|
+
}
|
|
1389
|
+
function Ne(e, t) {
|
|
1390
|
+
return typeof e == "boolean" ? e : t?.config?.ripple !== !1;
|
|
1391
|
+
}
|
|
1392
|
+
//#endregion
|
|
1393
|
+
//#region src/wave-ui/utils/wave-ripple-directive.js
|
|
1394
|
+
function Pe(e) {
|
|
1395
|
+
let t = e.value;
|
|
1396
|
+
return !!(t === !1 || t && typeof t == "object" && t.disabled);
|
|
1397
|
+
}
|
|
1398
|
+
function Fe(e, t) {
|
|
1399
|
+
if (Pe(e)) return !1;
|
|
1400
|
+
let n = Me(t);
|
|
1401
|
+
return e.value === !0 ? Ne(!0, n) : Ne(void 0, n);
|
|
1402
|
+
}
|
|
1403
|
+
var Ie = {
|
|
1404
|
+
mounted(e, t) {
|
|
1405
|
+
e.classList.add("w-ripple"), e.__waveRippleLastBinding = t;
|
|
1406
|
+
let n = (t) => {
|
|
1407
|
+
if (typeof t.button == "number" && t.button !== 0) return;
|
|
1408
|
+
let n = e.__waveRippleLastBinding;
|
|
1409
|
+
Fe(n, n?.instance) && je(e, t);
|
|
1410
|
+
};
|
|
1411
|
+
e.__waveRippleHandler = n, e.addEventListener("pointerdown", n);
|
|
1412
|
+
},
|
|
1413
|
+
updated(e, t) {
|
|
1414
|
+
e.__waveRippleLastBinding = t;
|
|
1415
|
+
},
|
|
1416
|
+
unmounted(e) {
|
|
1417
|
+
e.removeEventListener("pointerdown", e.__waveRippleHandler), delete e.__waveRippleHandler, delete e.__waveRippleLastBinding;
|
|
1418
|
+
}
|
|
1419
|
+
}, Y = !1, Le = (e) => {
|
|
1367
1420
|
let t = window.matchMedia("(prefers-color-scheme: dark)");
|
|
1368
1421
|
e.preferredTheme = t.matches ? "dark" : "light", e.switchTheme(e.preferredTheme), t.addEventListener("change", (t) => {
|
|
1369
1422
|
e.preferredTheme = t.matches ? "dark" : "light", e.switchTheme(e.preferredTheme);
|
|
1370
1423
|
});
|
|
1371
|
-
},
|
|
1424
|
+
}, Re = (e, t) => {
|
|
1372
1425
|
for (let n in t) if (e.props?.[n]) e.props[n].default = t[n];
|
|
1373
1426
|
else {
|
|
1374
1427
|
let r = !1;
|
|
@@ -1380,7 +1433,7 @@ var Y = (e, t) => {
|
|
|
1380
1433
|
r || z(`Attempting to set a preset on a prop that doesn't exist: \`${e.name}.${n}\`.`);
|
|
1381
1434
|
}
|
|
1382
1435
|
}
|
|
1383
|
-
},
|
|
1436
|
+
}, ze = class e {
|
|
1384
1437
|
$waveui = {
|
|
1385
1438
|
breakpoint: {
|
|
1386
1439
|
name: "",
|
|
@@ -1402,7 +1455,7 @@ var Y = (e, t) => {
|
|
|
1402
1455
|
switchTheme(e) {
|
|
1403
1456
|
this.theme = e, document.documentElement.setAttribute("data-theme", e), document.head.querySelector("#wave-ui-colors")?.remove?.();
|
|
1404
1457
|
let t = this.config.colors[this.theme];
|
|
1405
|
-
|
|
1458
|
+
K(t, this.config.css.colorShadeCssVariables), this.colors = ue(t, be);
|
|
1406
1459
|
},
|
|
1407
1460
|
setAppClasses(...e) {
|
|
1408
1461
|
let t = document.querySelector(".w-app");
|
|
@@ -1415,23 +1468,23 @@ var Y = (e, t) => {
|
|
|
1415
1468
|
t.value(r, e) && window.removeEventListener("scroll", n);
|
|
1416
1469
|
};
|
|
1417
1470
|
window.addEventListener("scroll", n);
|
|
1418
|
-
} });
|
|
1471
|
+
} }), t.directive("waveRipple", Ie);
|
|
1419
1472
|
let { components: r = {} } = n || {};
|
|
1420
1473
|
for (let e in r) {
|
|
1421
1474
|
let i = r[e];
|
|
1422
|
-
n.presets?.[i.name] &&
|
|
1475
|
+
n.presets?.[i.name] && Re(i, n.presets[i.name]), t.component(i.name, i);
|
|
1423
1476
|
}
|
|
1424
1477
|
t.mixin({ beforeMount() {
|
|
1425
|
-
if (!
|
|
1426
|
-
|
|
1478
|
+
if (!Y) {
|
|
1479
|
+
Y = !0;
|
|
1427
1480
|
let e = m("$waveui"), { config: n } = e;
|
|
1428
|
-
(document.querySelector(n.on) || document.body).classList.add("w-app"), n.theme === "auto" ?
|
|
1481
|
+
(document.querySelector(n.on) || document.body).classList.add("w-app"), n.theme === "auto" ? Le(e) : e.switchTheme(n.theme, !0), G(e), Ae(t), t._context.mixins.find((e) => e.mounted &&= void 0);
|
|
1429
1482
|
}
|
|
1430
1483
|
} }), new e(t, n);
|
|
1431
1484
|
}
|
|
1432
1485
|
constructor(e, t = {}) {
|
|
1433
1486
|
if (e.config.globalProperties.$waveui) return;
|
|
1434
|
-
if (this.$waveui._notificationManager = new
|
|
1487
|
+
if (this.$waveui._notificationManager = new ke(), t.theme ||= "light", t.colors) {
|
|
1435
1488
|
let e = { ...t.colors };
|
|
1436
1489
|
t.colors.light || (t.colors.light = e), t.colors.dark || (t.colors.dark = e), t.colors = {
|
|
1437
1490
|
light: t.colors.light,
|
|
@@ -1439,36 +1492,58 @@ var Y = (e, t) => {
|
|
|
1439
1492
|
};
|
|
1440
1493
|
}
|
|
1441
1494
|
let { components: n, ...r } = t;
|
|
1442
|
-
r = this.$waveui.config =
|
|
1495
|
+
r = this.$waveui.config = ce(r), r.css.colorShades && le(r);
|
|
1443
1496
|
let i = x(this.$waveui);
|
|
1444
|
-
e.config.globalProperties.$waveui = i, e.provide("$waveui", i), r.theme !== "auto" && (this.$waveui.colors =
|
|
1497
|
+
e.config.globalProperties.$waveui = i, e.provide("$waveui", i), r.theme !== "auto" && (this.$waveui.colors = ue(r.colors[r.theme], be));
|
|
1445
1498
|
}
|
|
1446
|
-
},
|
|
1447
|
-
|
|
1448
|
-
|
|
1499
|
+
}, X = (e = {}) => (typeof e == "string" ? e = { [e]: !0 } : Array.isArray(e) && (e = { [e.join(" ")]: !0 }), e), Z = {
|
|
1500
|
+
inject: { $waveui: {
|
|
1501
|
+
from: "$waveui",
|
|
1502
|
+
default: () => ({ config: { ripple: !0 } })
|
|
1503
|
+
} },
|
|
1504
|
+
props: { noRipple: {
|
|
1505
|
+
type: Boolean,
|
|
1506
|
+
default: void 0
|
|
1507
|
+
} },
|
|
1508
|
+
computed: { rippleActive() {
|
|
1509
|
+
return Ne(this.noRipple ? !1 : void 0, this.$waveui);
|
|
1510
|
+
} },
|
|
1511
|
+
methods: { onRipple(e, t) {
|
|
1512
|
+
if (!this.rippleActive || !e) return;
|
|
1513
|
+
let n = t ?? e.currentTarget;
|
|
1514
|
+
if (!n?.getBoundingClientRect) {
|
|
1515
|
+
let t = e.target;
|
|
1516
|
+
n = (t?.nodeType === 1 ? t : t?.parentElement)?.closest?.(".w-ripple") ?? null;
|
|
1517
|
+
}
|
|
1518
|
+
!n?.getBoundingClientRect && this.$el instanceof Element && this.$el.classList?.contains("w-ripple") && (n = this.$el), n?.getBoundingClientRect && je(n, e);
|
|
1519
|
+
} }
|
|
1520
|
+
}, Be = { class: "w-accordion__item-content" };
|
|
1521
|
+
function Ve(e, t, n, r, i, a) {
|
|
1522
|
+
return b(), c("div", Be, [T(e.$slots, "default")]);
|
|
1449
1523
|
}
|
|
1450
|
-
var
|
|
1524
|
+
var He = /* @__PURE__ */ J({
|
|
1451
1525
|
name: "accordion-content",
|
|
1452
1526
|
props: { item: {
|
|
1453
1527
|
type: Object,
|
|
1454
1528
|
default: () => ({})
|
|
1455
1529
|
} }
|
|
1456
|
-
}, [["render",
|
|
1457
|
-
function
|
|
1458
|
-
let d =
|
|
1530
|
+
}, [["render", Ve]]), Ue = ["aria-expanded"], We = ["tabindex"], Ge = ["innerHTML"], Ke = ["innerHTML"], qe = ["innerHTML"];
|
|
1531
|
+
function Je(e, n, r, i, a, u) {
|
|
1532
|
+
let d = E("w-button"), p = E("accordion-content"), m = E("w-transition-expand");
|
|
1459
1533
|
return b(), c("div", {
|
|
1460
|
-
class:
|
|
1534
|
+
class: _(["w-accordion__item", u.itemClasses]),
|
|
1461
1535
|
"aria-expanded": u.accordionItem._expanded ? "true" : "false"
|
|
1462
1536
|
}, [l("div", {
|
|
1463
|
-
class:
|
|
1537
|
+
class: _(["w-accordion__item-title", u.accordionTitleClasses]),
|
|
1464
1538
|
onClick: n[4] ||= (e) => !u.accordionItem._disabled && u.toggleItem(u.accordionItem, e),
|
|
1465
|
-
|
|
1466
|
-
|
|
1539
|
+
onPointerdown: n[5] ||= (...e) => u.onAccordionTitlePointerDown && u.onAccordionTitlePointerDown(...e),
|
|
1540
|
+
onFocus: n[6] ||= (t) => e.$emit("focus", u.accordionItem),
|
|
1541
|
+
onKeypress: n[7] ||= F((e) => !u.accordionItem._disabled && u.toggleItem(u.accordionItem, e), ["enter"]),
|
|
1467
1542
|
tabindex: !u.accordionItem._disabled && 0
|
|
1468
1543
|
}, [
|
|
1469
1544
|
u.options.expandIcon && !u.options.expandIconRight ? (b(), o(d, {
|
|
1470
1545
|
key: 0,
|
|
1471
|
-
class:
|
|
1546
|
+
class: _(["w-accordion__expand-icon", {
|
|
1472
1547
|
"w-accordion__expand-icon--expanded": u.accordionItem._expanded,
|
|
1473
1548
|
"w-accordion__expand-icon--rotate90": u.options.expandIconRotate90
|
|
1474
1549
|
}]),
|
|
@@ -1477,97 +1552,117 @@ function Le(e, n, r, i, a, u) {
|
|
|
1477
1552
|
disabled: u.accordionItem._disabled || null,
|
|
1478
1553
|
tabindex: -1,
|
|
1479
1554
|
text: "",
|
|
1480
|
-
onKeypress: n[0] ||=
|
|
1481
|
-
onClick: n[1] ||=
|
|
1555
|
+
onKeypress: n[0] ||= I(() => {}, ["stop"]),
|
|
1556
|
+
onClick: n[1] ||= I((e) => !u.accordionItem._disabled && u.toggleItem(u.accordionItem, e), ["stop"])
|
|
1482
1557
|
}, null, 8, [
|
|
1483
1558
|
"icon",
|
|
1484
1559
|
"icon-props",
|
|
1485
1560
|
"disabled",
|
|
1486
1561
|
"class"
|
|
1487
1562
|
])) : s("", !0),
|
|
1488
|
-
|
|
1563
|
+
T(e.$slots, "title", {
|
|
1489
1564
|
item: u.getOriginalItem(u.accordionItem),
|
|
1490
1565
|
expanded: u.accordionItem._expanded,
|
|
1491
1566
|
index: u.accordionItem._index + 1
|
|
1492
1567
|
}, () => [l("div", {
|
|
1493
1568
|
class: "grow",
|
|
1494
1569
|
innerHTML: u.accordionItem[u.options.itemTitleKey]
|
|
1495
|
-
}, null, 8,
|
|
1570
|
+
}, null, 8, Ge)]),
|
|
1496
1571
|
u.options.expandIcon && u.options.expandIconRight ? (b(), o(d, {
|
|
1497
1572
|
key: 1,
|
|
1498
|
-
class:
|
|
1573
|
+
class: _(["w-accordion__expand-icon", {
|
|
1499
1574
|
"w-accordion__expand-icon--expanded": u.accordionItem._expanded,
|
|
1500
1575
|
"w-accordion__expand-icon--rotate90": u.options.expandIconRotate90
|
|
1501
1576
|
}]),
|
|
1502
1577
|
icon: u.accordionItem._expanded && u.options.collapseIcon || u.options.expandIcon,
|
|
1503
1578
|
text: "",
|
|
1504
|
-
onKeypress: n[2] ||=
|
|
1505
|
-
onClick: n[3] ||=
|
|
1579
|
+
onKeypress: n[2] ||= I(() => {}, ["stop"]),
|
|
1580
|
+
onClick: n[3] ||= I((e) => !u.accordionItem._disabled && u.toggleItem(u.accordionItem, e), ["stop"])
|
|
1506
1581
|
}, null, 8, ["icon", "class"])) : s("", !0)
|
|
1507
|
-
], 42,
|
|
1582
|
+
], 42, We), u.options.keepInDom ? (b(), o(m, {
|
|
1508
1583
|
key: 0,
|
|
1509
1584
|
y: "",
|
|
1510
|
-
onAfterLeave: n[
|
|
1585
|
+
onAfterLeave: n[8] ||= (e) => u.onEndOfCollapse(u.accordionItem),
|
|
1511
1586
|
duration: u.options.duration
|
|
1512
1587
|
}, {
|
|
1513
|
-
default:
|
|
1588
|
+
default: N(() => [P(f(p, {
|
|
1514
1589
|
item: u.accordionItem,
|
|
1515
|
-
class:
|
|
1590
|
+
class: _(u.contentClasses)
|
|
1516
1591
|
}, {
|
|
1517
|
-
default:
|
|
1592
|
+
default: N(() => [T(e.$slots, "content", {
|
|
1518
1593
|
item: u.getOriginalItem(u.accordionItem),
|
|
1519
1594
|
expanded: u.accordionItem._expanded,
|
|
1520
1595
|
index: u.accordionItem._index + 1
|
|
1521
|
-
}, () => [l("div", { innerHTML: u.accordionItem[u.options.itemContentKey] }, null, 8,
|
|
1596
|
+
}, () => [l("div", { innerHTML: u.accordionItem[u.options.itemContentKey] }, null, 8, Ke)])]),
|
|
1522
1597
|
_: 3
|
|
1523
|
-
}, 8, ["item", "class"]), [[
|
|
1598
|
+
}, 8, ["item", "class"]), [[ae, u.accordionItem._expanded]])]),
|
|
1524
1599
|
_: 3
|
|
1525
1600
|
}, 8, ["duration"])) : (b(), o(m, {
|
|
1526
1601
|
key: 1,
|
|
1527
1602
|
y: "",
|
|
1528
|
-
onAfterLeave: n[
|
|
1603
|
+
onAfterLeave: n[9] ||= (e) => u.onEndOfCollapse(u.accordionItem),
|
|
1529
1604
|
duration: u.options.duration
|
|
1530
1605
|
}, {
|
|
1531
|
-
default:
|
|
1606
|
+
default: N(() => [(b(), o(t, { exclude: u.options.keepAlive ? "" : "accordion-content" }, [u.accordionItem._expanded ? (b(), o(p, {
|
|
1532
1607
|
key: u.accordionItem._cuid,
|
|
1533
1608
|
item: u.accordionItem,
|
|
1534
|
-
class:
|
|
1609
|
+
class: _(u.contentClasses)
|
|
1535
1610
|
}, {
|
|
1536
|
-
default:
|
|
1611
|
+
default: N(() => [T(e.$slots, "content", {
|
|
1537
1612
|
item: u.getOriginalItem(u.accordionItem),
|
|
1538
1613
|
expanded: u.accordionItem._expanded,
|
|
1539
1614
|
index: u.accordionItem._index + 1
|
|
1540
|
-
}, () => [l("div", { innerHTML: u.accordionItem[u.options.itemContentKey] }, null, 8,
|
|
1615
|
+
}, () => [l("div", { innerHTML: u.accordionItem[u.options.itemContentKey] }, null, 8, qe)])]),
|
|
1541
1616
|
_: 3
|
|
1542
1617
|
}, 8, ["item", "class"])) : s("", !0)], 1032, ["exclude"]))]),
|
|
1543
1618
|
_: 3
|
|
1544
|
-
}, 8, ["duration"]))], 10,
|
|
1619
|
+
}, 8, ["duration"]))], 10, Ue);
|
|
1545
1620
|
}
|
|
1546
|
-
var
|
|
1621
|
+
var Ye = /* @__PURE__ */ J({
|
|
1547
1622
|
name: "w-accordion-item",
|
|
1623
|
+
mixins: [Z],
|
|
1548
1624
|
setup() {
|
|
1549
1625
|
return { accordionItemUid: A() };
|
|
1550
1626
|
},
|
|
1551
|
-
components: { AccordionContent:
|
|
1627
|
+
components: { AccordionContent: He },
|
|
1552
1628
|
props: {
|
|
1553
1629
|
title: { type: String },
|
|
1554
1630
|
content: { type: String },
|
|
1555
1631
|
expanded: { type: Boolean },
|
|
1556
1632
|
disabled: { type: Boolean }
|
|
1557
1633
|
},
|
|
1558
|
-
inject:
|
|
1559
|
-
"options",
|
|
1560
|
-
"titleClasses",
|
|
1561
|
-
"contentClasses",
|
|
1562
|
-
"onItemToggle",
|
|
1563
|
-
"onEndOfCollapse",
|
|
1564
|
-
"getOriginalItem",
|
|
1565
|
-
"getAccordionItem",
|
|
1566
|
-
"registerItem",
|
|
1567
|
-
"unregisterItem"
|
|
1568
|
-
|
|
1634
|
+
inject: {
|
|
1635
|
+
options: { from: "options" },
|
|
1636
|
+
titleClasses: { from: "titleClasses" },
|
|
1637
|
+
contentClasses: { from: "contentClasses" },
|
|
1638
|
+
onItemToggle: { from: "onItemToggle" },
|
|
1639
|
+
onEndOfCollapse: { from: "onEndOfCollapse" },
|
|
1640
|
+
getOriginalItem: { from: "getOriginalItem" },
|
|
1641
|
+
getAccordionItem: { from: "getAccordionItem" },
|
|
1642
|
+
registerItem: { from: "registerItem" },
|
|
1643
|
+
unregisterItem: { from: "unregisterItem" },
|
|
1644
|
+
getAccordionNoRipple: {
|
|
1645
|
+
from: "getAccordionNoRipple",
|
|
1646
|
+
default: () => void 0
|
|
1647
|
+
}
|
|
1648
|
+
},
|
|
1569
1649
|
emits: ["focus"],
|
|
1570
1650
|
computed: {
|
|
1651
|
+
rippleActive() {
|
|
1652
|
+
let e;
|
|
1653
|
+
if (typeof this.noRipple == "boolean") e = this.noRipple;
|
|
1654
|
+
else {
|
|
1655
|
+
let t = this.getAccordionNoRipple?.();
|
|
1656
|
+
e = typeof t == "boolean" ? t : void 0;
|
|
1657
|
+
}
|
|
1658
|
+
return Ne(e ? !1 : void 0, this.$waveui);
|
|
1659
|
+
},
|
|
1660
|
+
accordionTitleClasses() {
|
|
1661
|
+
return {
|
|
1662
|
+
...this.titleClasses,
|
|
1663
|
+
"w-ripple": this.rippleActive
|
|
1664
|
+
};
|
|
1665
|
+
},
|
|
1571
1666
|
accordionItem: {
|
|
1572
1667
|
get() {
|
|
1573
1668
|
return this.getAccordionItem(this.accordionItemUid);
|
|
@@ -1582,9 +1677,14 @@ var Re = /* @__PURE__ */ Y({
|
|
|
1582
1677
|
};
|
|
1583
1678
|
}
|
|
1584
1679
|
},
|
|
1585
|
-
methods: {
|
|
1586
|
-
|
|
1587
|
-
|
|
1680
|
+
methods: {
|
|
1681
|
+
onAccordionTitlePointerDown(e) {
|
|
1682
|
+
this.accordionItem._disabled || e.target.closest?.(".w-accordion__expand-icon") || this.onRipple(e);
|
|
1683
|
+
},
|
|
1684
|
+
toggleItem(e, t) {
|
|
1685
|
+
e._expanded = !e._expanded, this.onItemToggle(e), t.target.blur(), setTimeout(() => t.target.focus(), 300);
|
|
1686
|
+
}
|
|
1687
|
+
},
|
|
1588
1688
|
created() {
|
|
1589
1689
|
this.registerItem({
|
|
1590
1690
|
_cuid: this.accordionItemUid,
|
|
@@ -1598,37 +1698,37 @@ var Re = /* @__PURE__ */ Y({
|
|
|
1598
1698
|
beforeUnmount() {
|
|
1599
1699
|
this.unregisterItem(this.accordionItemUid);
|
|
1600
1700
|
}
|
|
1601
|
-
}, [["render",
|
|
1701
|
+
}, [["render", Je]]);
|
|
1602
1702
|
//#endregion
|
|
1603
1703
|
//#region src/wave-ui/components/w-accordion/index.vue?vue&type=template&lang.js
|
|
1604
|
-
function
|
|
1605
|
-
let u =
|
|
1606
|
-
return b(), c("div", { class:
|
|
1704
|
+
function Xe(t, n, r, i, a, l) {
|
|
1705
|
+
let u = E("w-accordion-item");
|
|
1706
|
+
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, {
|
|
1607
1707
|
key: r,
|
|
1608
|
-
class:
|
|
1708
|
+
class: _(l.itemClasses),
|
|
1609
1709
|
title: e.title,
|
|
1610
1710
|
content: e.content,
|
|
1611
1711
|
expanded: e.expanded || e._expanded,
|
|
1612
1712
|
disabled: e.disabled || e._disabled,
|
|
1613
1713
|
onFocus: n[0] ||= (e) => t.$emit("focus", e)
|
|
1614
1714
|
}, {
|
|
1615
|
-
title:
|
|
1715
|
+
title: N(({ item: e, expanded: n, index: r }) => [t.$slots[`item-title.${e.id || r}`] ? T(t.$slots, `item-title.${e.id || r}`, {
|
|
1616
1716
|
key: 0,
|
|
1617
1717
|
item: e,
|
|
1618
1718
|
expanded: n,
|
|
1619
1719
|
index: r
|
|
1620
|
-
}) :
|
|
1720
|
+
}) : T(t.$slots, "item-title", {
|
|
1621
1721
|
key: 1,
|
|
1622
1722
|
item: e,
|
|
1623
1723
|
expanded: n,
|
|
1624
1724
|
index: r
|
|
1625
1725
|
})]),
|
|
1626
|
-
content:
|
|
1726
|
+
content: N(({ item: e, expanded: n, index: r }) => [t.$slots[`item-content.${e.id || r}`] ? T(t.$slots, `item-content.${e.id || r}`, {
|
|
1627
1727
|
key: 0,
|
|
1628
1728
|
item: e,
|
|
1629
1729
|
expanded: n,
|
|
1630
1730
|
index: r
|
|
1631
|
-
}) :
|
|
1731
|
+
}) : T(t.$slots, "item-content", {
|
|
1632
1732
|
key: 1,
|
|
1633
1733
|
item: e,
|
|
1634
1734
|
expanded: n,
|
|
@@ -1643,8 +1743,9 @@ function ze(t, n, r, i, a, l) {
|
|
|
1643
1743
|
"disabled"
|
|
1644
1744
|
]))), 128)) : s("", !0)], 2);
|
|
1645
1745
|
}
|
|
1646
|
-
var
|
|
1746
|
+
var Ze = /* @__PURE__ */ J({
|
|
1647
1747
|
name: "w-accordion",
|
|
1748
|
+
mixins: [Z],
|
|
1648
1749
|
props: {
|
|
1649
1750
|
modelValue: { type: Array },
|
|
1650
1751
|
color: { type: String },
|
|
@@ -1705,7 +1806,7 @@ var Be = /* @__PURE__ */ Y({
|
|
|
1705
1806
|
default: !1
|
|
1706
1807
|
}
|
|
1707
1808
|
},
|
|
1708
|
-
components: { WAccordionItem:
|
|
1809
|
+
components: { WAccordionItem: Ye },
|
|
1709
1810
|
emits: [
|
|
1710
1811
|
"input",
|
|
1711
1812
|
"update:modelValue",
|
|
@@ -1723,7 +1824,8 @@ var Be = /* @__PURE__ */ Y({
|
|
|
1723
1824
|
options: this.$props,
|
|
1724
1825
|
registerItem: this.registerItem,
|
|
1725
1826
|
unregisterItem: this.unregisterItem,
|
|
1726
|
-
getAccordionItem: this.getAccordionItem
|
|
1827
|
+
getAccordionItem: this.getAccordionItem,
|
|
1828
|
+
getAccordionNoRipple: () => this.noRipple
|
|
1727
1829
|
};
|
|
1728
1830
|
},
|
|
1729
1831
|
data: () => ({ accordionItems: [] }),
|
|
@@ -1747,13 +1849,13 @@ var Be = /* @__PURE__ */ Y({
|
|
|
1747
1849
|
};
|
|
1748
1850
|
},
|
|
1749
1851
|
itemClasses() {
|
|
1750
|
-
return
|
|
1852
|
+
return X(this.itemClass);
|
|
1751
1853
|
},
|
|
1752
1854
|
titleClasses() {
|
|
1753
|
-
return
|
|
1855
|
+
return X(this.titleClass);
|
|
1754
1856
|
},
|
|
1755
1857
|
contentClasses() {
|
|
1756
|
-
return
|
|
1858
|
+
return X(this.contentClass);
|
|
1757
1859
|
}
|
|
1758
1860
|
},
|
|
1759
1861
|
methods: {
|
|
@@ -1798,21 +1900,21 @@ var Be = /* @__PURE__ */ Y({
|
|
|
1798
1900
|
}
|
|
1799
1901
|
e.forEach((e, t) => (this.accordionItems[t] || {})._expanded = e);
|
|
1800
1902
|
} }
|
|
1801
|
-
}, [["render",
|
|
1802
|
-
function
|
|
1803
|
-
let f =
|
|
1903
|
+
}, [["render", Xe]]), Qe = { class: "w-alert__content" };
|
|
1904
|
+
function $e(t, n, r, i, a, u) {
|
|
1905
|
+
let f = E("w-icon"), p = E("w-button");
|
|
1804
1906
|
return a.show ? (b(), c("div", {
|
|
1805
1907
|
key: 0,
|
|
1806
|
-
class:
|
|
1908
|
+
class: _(["w-alert", u.classes])
|
|
1807
1909
|
}, [u.type || r.icon || r.dismiss ? (b(), c(e, { key: 0 }, [
|
|
1808
1910
|
u.type || r.icon ? (b(), o(f, {
|
|
1809
1911
|
key: 0,
|
|
1810
1912
|
class: "w-alert__icon"
|
|
1811
1913
|
}, {
|
|
1812
|
-
default:
|
|
1914
|
+
default: N(() => [d(O(u.type ? u.typeIcon : r.icon), 1)]),
|
|
1813
1915
|
_: 1
|
|
1814
1916
|
})) : s("", !0),
|
|
1815
|
-
l("div",
|
|
1917
|
+
l("div", Qe, [T(t.$slots, "default")]),
|
|
1816
1918
|
r.dismiss ? (b(), o(p, {
|
|
1817
1919
|
key: 1,
|
|
1818
1920
|
class: "w-alert__dismiss",
|
|
@@ -1824,9 +1926,9 @@ function He(t, n, r, i, a, u) {
|
|
|
1824
1926
|
sm: "",
|
|
1825
1927
|
text: ""
|
|
1826
1928
|
})) : s("", !0)
|
|
1827
|
-
], 64)) :
|
|
1929
|
+
], 64)) : T(t.$slots, "default", { key: 1 })], 2)) : s("", !0);
|
|
1828
1930
|
}
|
|
1829
|
-
var
|
|
1931
|
+
var et = /* @__PURE__ */ J({
|
|
1830
1932
|
name: "w-alert",
|
|
1831
1933
|
props: {
|
|
1832
1934
|
modelValue: { default: !0 },
|
|
@@ -1904,19 +2006,19 @@ var Ue = /* @__PURE__ */ Y({
|
|
|
1904
2006
|
watch: { modelValue(e) {
|
|
1905
2007
|
this.show = e;
|
|
1906
2008
|
} }
|
|
1907
|
-
}, [["render",
|
|
1908
|
-
function
|
|
1909
|
-
let u =
|
|
2009
|
+
}, [["render", $e]]), tt = { class: "w-autocomplete__selection" }, nt = ["innerHTML"], rt = ["innerHTML"], it = ["value"], at = ["onClick"], ot = ["innerHTML"], st = ["innerHTML"];
|
|
2010
|
+
function ct(t, n, r, i, a, o) {
|
|
2011
|
+
let u = E("w-button"), d = E("w-transition-slide-fade");
|
|
1910
2012
|
return b(), c("div", {
|
|
1911
|
-
class:
|
|
2013
|
+
class: _(["w-autocomplete", o.classes]),
|
|
1912
2014
|
onClick: n[5] ||= (...e) => o.onClick && o.onClick(...e),
|
|
1913
|
-
style:
|
|
2015
|
+
style: y(t.$attrs.style)
|
|
1914
2016
|
}, [
|
|
1915
|
-
t.selection.length ? (b(!0), c(e, { key: 0 },
|
|
2017
|
+
t.selection.length ? (b(!0), c(e, { key: 0 }, w(t.selection, (e, n) => (b(), c("div", tt, [T(t.$slots, "selection", {
|
|
1916
2018
|
item: e,
|
|
1917
2019
|
unselect: (e) => o.unselectItem(e)
|
|
1918
|
-
}, () => [l("span", { innerHTML: e[r.itemLabelKey] }, null, 8,
|
|
1919
|
-
onClick:
|
|
2020
|
+
}, () => [l("span", { innerHTML: e[r.itemLabelKey] }, null, 8, nt), f(u, {
|
|
2021
|
+
onClick: I((e) => o.unselectItem(n), ["stop"]),
|
|
1920
2022
|
icon: "wi-cross",
|
|
1921
2023
|
xs: "",
|
|
1922
2024
|
text: "",
|
|
@@ -1926,14 +2028,14 @@ function Ze(t, n, r, i, a, o) {
|
|
|
1926
2028
|
key: 1,
|
|
1927
2029
|
class: "w-autocomplete__placeholder",
|
|
1928
2030
|
innerHTML: r.placeholder
|
|
1929
|
-
}, null, 8,
|
|
2031
|
+
}, null, 8, rt)) : s("", !0),
|
|
1930
2032
|
l("input", h({
|
|
1931
2033
|
class: "w-autocomplete__input",
|
|
1932
2034
|
ref: "input",
|
|
1933
2035
|
value: t.keywords
|
|
1934
|
-
}, k(o.inputEventListeners, !0), o.inputAttrs), null, 16,
|
|
2036
|
+
}, k(o.inputEventListeners, !0), o.inputAttrs), null, 16, it),
|
|
1935
2037
|
f(d, null, {
|
|
1936
|
-
default:
|
|
2038
|
+
default: N(() => [t.menuOpen ? (b(), c("ul", {
|
|
1937
2039
|
key: 0,
|
|
1938
2040
|
class: "w-autocomplete__menu",
|
|
1939
2041
|
ref: "menu",
|
|
@@ -1942,32 +2044,32 @@ function Ze(t, n, r, i, a, o) {
|
|
|
1942
2044
|
onTouchstart: n[3] ||= (e) => t.menuIsBeingClicked = !0,
|
|
1943
2045
|
onTouchend: n[4] ||= (...e) => o.setEndOfMenuClick && o.setEndOfMenuClick(...e)
|
|
1944
2046
|
}, [
|
|
1945
|
-
(b(!0), c(e, null,
|
|
2047
|
+
(b(!0), c(e, null, w(o.filteredItems, (e, n) => (b(), c("li", {
|
|
1946
2048
|
key: n,
|
|
1947
|
-
onClick:
|
|
1948
|
-
class:
|
|
1949
|
-
}, [
|
|
2049
|
+
onClick: I((n) => (o.selectItem(e), t.$emit("item-click", e)), ["stop"]),
|
|
2050
|
+
class: _({ highlighted: t.highlightedItem === e.uid })
|
|
2051
|
+
}, [T(t.$slots, "item", {
|
|
1950
2052
|
item: e,
|
|
1951
2053
|
highlighted: t.highlightedItem === e.uid
|
|
1952
|
-
}, () => [l("span", { innerHTML: e[r.itemLabelKey] }, null, 8,
|
|
2054
|
+
}, () => [l("span", { innerHTML: e[r.itemLabelKey] }, null, 8, ot)])], 10, at))), 128)),
|
|
1953
2055
|
o.filteredItems.length ? s("", !0) : (b(), c("li", {
|
|
1954
2056
|
key: 0,
|
|
1955
|
-
class:
|
|
1956
|
-
}, [
|
|
2057
|
+
class: _(["w-autocomplete__no-match", { "w-autocomplete__no-match--default": !t.$slots.noMatch }])
|
|
2058
|
+
}, [T(t.$slots, "no-match", {}, () => [l("div", {
|
|
1957
2059
|
class: "caption",
|
|
1958
2060
|
innerHTML: r.noMatch ?? "No match."
|
|
1959
|
-
}, null, 8,
|
|
2061
|
+
}, null, 8, st)])], 2)),
|
|
1960
2062
|
t.$slots["extra-item"] ? (b(), c("li", {
|
|
1961
2063
|
key: 1,
|
|
1962
|
-
class:
|
|
2064
|
+
class: _(["w-autocomplete__extra-item", { highlighted: t.highlightedItem === "extra-item" }]),
|
|
1963
2065
|
onClick: n[0] ||= (...e) => o.selectExtraItem && o.selectExtraItem(...e)
|
|
1964
|
-
}, [
|
|
2066
|
+
}, [T(t.$slots, "extra-item")], 2)) : s("", !0)
|
|
1965
2067
|
], 544)) : s("", !0)]),
|
|
1966
2068
|
_: 3
|
|
1967
2069
|
})
|
|
1968
2070
|
], 6);
|
|
1969
2071
|
}
|
|
1970
|
-
var
|
|
2072
|
+
var lt = /* @__PURE__ */ J({
|
|
1971
2073
|
name: "w-autocomplete",
|
|
1972
2074
|
inheritAttrs: !1,
|
|
1973
2075
|
props: {
|
|
@@ -2146,11 +2248,11 @@ var Qe = /* @__PURE__ */ Y({
|
|
|
2146
2248
|
this.selection.push(this.optimizedItemsForSearch.find((t) => t[this.itemValueKey] === +e));
|
|
2147
2249
|
});
|
|
2148
2250
|
} }
|
|
2149
|
-
}, [["render",
|
|
2150
|
-
function
|
|
2151
|
-
return b(), c("div",
|
|
2251
|
+
}, [["render", ct]]), ut = { class: "w-app" };
|
|
2252
|
+
function dt(e, t, n, r, i, a) {
|
|
2253
|
+
return b(), c("div", ut, [T(e.$slots, "default")]);
|
|
2152
2254
|
}
|
|
2153
|
-
var
|
|
2255
|
+
var ft = /* @__PURE__ */ J({
|
|
2154
2256
|
name: "w-app",
|
|
2155
2257
|
props: {
|
|
2156
2258
|
block: { type: Boolean },
|
|
@@ -2165,22 +2267,22 @@ var tt = /* @__PURE__ */ Y({
|
|
|
2165
2267
|
textCenter: { type: Boolean },
|
|
2166
2268
|
textRight: { type: Boolean }
|
|
2167
2269
|
}
|
|
2168
|
-
}, [["render",
|
|
2169
|
-
function
|
|
2170
|
-
return b(), c("div",
|
|
2171
|
-
default:
|
|
2270
|
+
}, [["render", dt]]), pt = { class: "w-badge-wrap" };
|
|
2271
|
+
function mt(e, t, n, i, a, o) {
|
|
2272
|
+
return b(), c("div", pt, [T(e.$slots, "default"), f(r, { name: `${n.transition}` }, {
|
|
2273
|
+
default: N(() => [n.modelValue ? (b(), c("div", {
|
|
2172
2274
|
key: 0,
|
|
2173
|
-
class:
|
|
2174
|
-
style:
|
|
2275
|
+
class: _(["w-badge", o.classes]),
|
|
2276
|
+
style: y(o.styles),
|
|
2175
2277
|
"aria-atomic": "true",
|
|
2176
2278
|
"aria-label": "Badge",
|
|
2177
2279
|
"aria-live": "polite",
|
|
2178
2280
|
role: "status"
|
|
2179
|
-
}, [n.dot ? s("", !0) :
|
|
2281
|
+
}, [n.dot ? s("", !0) : T(e.$slots, "badge", { key: 0 }, () => [d(O(n.modelValue === !0 ? "" : n.modelValue || ""), 1)])], 6)) : s("", !0)]),
|
|
2180
2282
|
_: 3
|
|
2181
2283
|
}, 8, ["name"])]);
|
|
2182
2284
|
}
|
|
2183
|
-
var
|
|
2285
|
+
var ht = /* @__PURE__ */ J({
|
|
2184
2286
|
name: "w-badge",
|
|
2185
2287
|
props: {
|
|
2186
2288
|
modelValue: { default: !0 },
|
|
@@ -2246,46 +2348,50 @@ var it = /* @__PURE__ */ Y({
|
|
|
2246
2348
|
return this.forcedSize && `font-size: ${this.forcedSize}`;
|
|
2247
2349
|
}
|
|
2248
2350
|
}
|
|
2249
|
-
}, [["render",
|
|
2250
|
-
function
|
|
2251
|
-
let u =
|
|
2252
|
-
return b(), c("div", { class:
|
|
2253
|
-
class:
|
|
2351
|
+
}, [["render", mt]]), gt = ["innerHTML"];
|
|
2352
|
+
function _t(t, n, r, i, a, l) {
|
|
2353
|
+
let u = E("w-icon");
|
|
2354
|
+
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", {
|
|
2355
|
+
class: _(["w-breadcrumbs__separator", r.separatorColor]),
|
|
2254
2356
|
key: `${i}a`
|
|
2255
|
-
}, [
|
|
2256
|
-
class:
|
|
2357
|
+
}, [T(t.$slots, "separator", { index: i })], 2)) : i ? (b(), o(u, {
|
|
2358
|
+
class: _(["w-breadcrumbs__separator", r.separatorColor]),
|
|
2257
2359
|
key: `${i}b`
|
|
2258
2360
|
}, {
|
|
2259
|
-
default:
|
|
2361
|
+
default: N(() => [d(O(r.icon), 1)]),
|
|
2260
2362
|
_: 1
|
|
2261
2363
|
}, 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"), {
|
|
2262
|
-
class:
|
|
2364
|
+
class: _(["w-breadcrumbs__item", l.breadcrumbLinkClasses]),
|
|
2263
2365
|
key: `${i}c`,
|
|
2264
2366
|
to: l.hasRouter && n[r.itemRouteKey],
|
|
2265
|
-
href: n[r.itemRouteKey]
|
|
2367
|
+
href: n[r.itemRouteKey],
|
|
2368
|
+
onPointerdown: t.onRipple
|
|
2266
2369
|
}, {
|
|
2267
|
-
default:
|
|
2370
|
+
default: N(() => [T(t.$slots, "item", {
|
|
2268
2371
|
item: n,
|
|
2269
2372
|
index: i + 1,
|
|
2270
2373
|
isLast: i === r.items.length - 1
|
|
2271
2374
|
})]),
|
|
2272
2375
|
_: 2
|
|
2273
|
-
},
|
|
2376
|
+
}, 1064, [
|
|
2274
2377
|
"to",
|
|
2275
2378
|
"href",
|
|
2276
|
-
"class"
|
|
2379
|
+
"class",
|
|
2380
|
+
"onPointerdown"
|
|
2277
2381
|
])) : (b(), o(D(l.hasRouter ? "router-link" : "a"), {
|
|
2278
|
-
class:
|
|
2382
|
+
class: _(["w-breadcrumbs__item", l.breadcrumbLinkClasses]),
|
|
2279
2383
|
key: `${i}d`,
|
|
2280
2384
|
to: l.hasRouter && n[r.itemRouteKey],
|
|
2281
2385
|
href: n[r.itemRouteKey],
|
|
2282
|
-
innerHTML: n[r.itemLabelKey]
|
|
2283
|
-
|
|
2386
|
+
innerHTML: n[r.itemLabelKey],
|
|
2387
|
+
onPointerdown: t.onRipple
|
|
2388
|
+
}, null, 40, [
|
|
2284
2389
|
"to",
|
|
2285
2390
|
"href",
|
|
2286
2391
|
"innerHTML",
|
|
2287
|
-
"class"
|
|
2288
|
-
|
|
2392
|
+
"class",
|
|
2393
|
+
"onPointerdown"
|
|
2394
|
+
]))], 64)) : t.$slots.item ? T(t.$slots, "item", {
|
|
2289
2395
|
key: `${i}e`,
|
|
2290
2396
|
item: n,
|
|
2291
2397
|
index: i + 1,
|
|
@@ -2293,10 +2399,11 @@ function ot(t, n, r, i, a, l) {
|
|
|
2293
2399
|
}) : (b(), c("span", {
|
|
2294
2400
|
key: `${i}f`,
|
|
2295
2401
|
innerHTML: n[r.itemLabelKey]
|
|
2296
|
-
}, null, 8,
|
|
2402
|
+
}, null, 8, gt))], 64))), 256))], 2);
|
|
2297
2403
|
}
|
|
2298
|
-
var
|
|
2404
|
+
var vt = /* @__PURE__ */ J({
|
|
2299
2405
|
name: "w-breadcrumbs",
|
|
2406
|
+
mixins: [Z],
|
|
2300
2407
|
props: {
|
|
2301
2408
|
items: {
|
|
2302
2409
|
type: Array,
|
|
@@ -2328,6 +2435,9 @@ var st = /* @__PURE__ */ Y({
|
|
|
2328
2435
|
},
|
|
2329
2436
|
emits: [],
|
|
2330
2437
|
computed: {
|
|
2438
|
+
breadcrumbLinkClasses() {
|
|
2439
|
+
return [this.color || null, { "w-ripple": this.rippleActive }];
|
|
2440
|
+
},
|
|
2331
2441
|
hasRouter() {
|
|
2332
2442
|
return "$router" in this;
|
|
2333
2443
|
},
|
|
@@ -2338,23 +2448,26 @@ var st = /* @__PURE__ */ Y({
|
|
|
2338
2448
|
return { [`size--${this.size}`]: !0 };
|
|
2339
2449
|
}
|
|
2340
2450
|
}
|
|
2341
|
-
}, [["render",
|
|
2451
|
+
}, [["render", _t]]), yt = {
|
|
2342
2452
|
key: 0,
|
|
2343
2453
|
class: "w-button__loader"
|
|
2344
2454
|
};
|
|
2345
|
-
function
|
|
2346
|
-
let p =
|
|
2455
|
+
function bt(e, t, n, i, a, u) {
|
|
2456
|
+
let p = E("w-icon");
|
|
2347
2457
|
return b(), o(D(!n.disabled && n.route ? "a" : "button"), h({
|
|
2348
2458
|
class: ["w-button", u.classes],
|
|
2349
2459
|
type: !n.route && n.type,
|
|
2350
2460
|
href: !n.disabled && n.route && (u.externalLink ? n.route : u.resolvedRoute) || null,
|
|
2351
2461
|
disabled: !!n.disabled || null
|
|
2352
|
-
}, u.attrs, {
|
|
2353
|
-
|
|
2354
|
-
|
|
2462
|
+
}, u.attrs, {
|
|
2463
|
+
style: u.styles,
|
|
2464
|
+
onPointerdown: u.onPointerDownRipple
|
|
2465
|
+
}), {
|
|
2466
|
+
default: N(() => [n.icon ? (b(), o(p, v(h({ key: 0 }, n.iconProps || {})), {
|
|
2467
|
+
default: N(() => [d(O(n.icon), 1)]),
|
|
2355
2468
|
_: 1
|
|
2356
|
-
}, 16)) :
|
|
2357
|
-
default:
|
|
2469
|
+
}, 16)) : T(e.$slots, "default", { key: 1 }), f(r, { name: "scale-fade" }, {
|
|
2470
|
+
default: N(() => [n.loading ? (b(), c("div", yt, [T(e.$slots, "loading", {}, () => [t[0] ||= l("svg", { viewBox: "0 0 40 40" }, [l("circle", {
|
|
2358
2471
|
cx: "20",
|
|
2359
2472
|
cy: "20",
|
|
2360
2473
|
r: "18",
|
|
@@ -2371,11 +2484,13 @@ function lt(e, t, n, i, a, u) {
|
|
|
2371
2484
|
"href",
|
|
2372
2485
|
"class",
|
|
2373
2486
|
"disabled",
|
|
2374
|
-
"style"
|
|
2487
|
+
"style",
|
|
2488
|
+
"onPointerdown"
|
|
2375
2489
|
]);
|
|
2376
2490
|
}
|
|
2377
|
-
var
|
|
2491
|
+
var xt = /* @__PURE__ */ J({
|
|
2378
2492
|
inheritAttrs: !1,
|
|
2493
|
+
mixins: [Z],
|
|
2379
2494
|
props: {
|
|
2380
2495
|
color: { type: String },
|
|
2381
2496
|
bgColor: { type: String },
|
|
@@ -2418,6 +2533,9 @@ var ut = /* @__PURE__ */ Y({
|
|
|
2418
2533
|
xl: { type: Boolean }
|
|
2419
2534
|
},
|
|
2420
2535
|
emits: [],
|
|
2536
|
+
methods: { onPointerDownRipple(e) {
|
|
2537
|
+
this.disabled || this.loading || !this.rippleActive || this.onRipple(e);
|
|
2538
|
+
} },
|
|
2421
2539
|
computed: {
|
|
2422
2540
|
hasRouter() {
|
|
2423
2541
|
return "$router" in this;
|
|
@@ -2445,6 +2563,7 @@ var ut = /* @__PURE__ */ Y({
|
|
|
2445
2563
|
},
|
|
2446
2564
|
classes() {
|
|
2447
2565
|
return {
|
|
2566
|
+
"w-ripple": this.rippleActive,
|
|
2448
2567
|
"primary--bg": !this.bgColor && !this.color && !(this.outline || this.text),
|
|
2449
2568
|
primary: !this.bgColor && !this.color && !this.dark && (this.outline || this.text),
|
|
2450
2569
|
[this.color]: this.color,
|
|
@@ -2472,23 +2591,23 @@ var ut = /* @__PURE__ */ Y({
|
|
|
2472
2591
|
};
|
|
2473
2592
|
}
|
|
2474
2593
|
}
|
|
2475
|
-
}, [["render",
|
|
2476
|
-
function
|
|
2477
|
-
let s =
|
|
2478
|
-
return n.tooltip ? (b(), o(D("w-tooltip"),
|
|
2479
|
-
activator:
|
|
2480
|
-
default:
|
|
2594
|
+
}, [["render", bt]]), St = ["innerHTML"];
|
|
2595
|
+
function Ct(e, t, n, r, i, a) {
|
|
2596
|
+
let s = E("button-partial");
|
|
2597
|
+
return n.tooltip ? (b(), o(D("w-tooltip"), v(h({ key: 0 }, n.tooltipProps)), {
|
|
2598
|
+
activator: N(({ on: t }) => [f(s, h(a.buttonProps, k(t)), {
|
|
2599
|
+
default: N(() => [T(e.$slots, "default")]),
|
|
2481
2600
|
_: 3
|
|
2482
2601
|
}, 16)]),
|
|
2483
|
-
default:
|
|
2602
|
+
default: N(() => [l("div", { innerHTML: n.tooltip }, null, 8, St)]),
|
|
2484
2603
|
_: 3
|
|
2485
|
-
}, 16)) : (b(), o(s,
|
|
2486
|
-
loading:
|
|
2487
|
-
default:
|
|
2604
|
+
}, 16)) : (b(), o(s, v(h({ key: 1 }, a.buttonProps)), {
|
|
2605
|
+
loading: N(() => [T(e.$slots, "loading")]),
|
|
2606
|
+
default: N(() => [T(e.$slots, "default")]),
|
|
2488
2607
|
_: 3
|
|
2489
2608
|
}, 16));
|
|
2490
2609
|
}
|
|
2491
|
-
var
|
|
2610
|
+
var wt = /* @__PURE__ */ J({
|
|
2492
2611
|
name: "w-button",
|
|
2493
2612
|
inheritAttrs: !1,
|
|
2494
2613
|
props: {
|
|
@@ -2534,9 +2653,13 @@ var pt = /* @__PURE__ */ Y({
|
|
|
2534
2653
|
sm: { type: Boolean },
|
|
2535
2654
|
md: { type: Boolean },
|
|
2536
2655
|
lg: { type: Boolean },
|
|
2537
|
-
xl: { type: Boolean }
|
|
2656
|
+
xl: { type: Boolean },
|
|
2657
|
+
noRipple: {
|
|
2658
|
+
type: Boolean,
|
|
2659
|
+
default: void 0
|
|
2660
|
+
}
|
|
2538
2661
|
},
|
|
2539
|
-
components: { ButtonPartial:
|
|
2662
|
+
components: { ButtonPartial: xt },
|
|
2540
2663
|
emits: [],
|
|
2541
2664
|
computed: { buttonProps() {
|
|
2542
2665
|
let { tooltip: e, tooltipProps: t = {}, ...n } = this.$props;
|
|
@@ -2545,40 +2668,40 @@ var pt = /* @__PURE__ */ Y({
|
|
|
2545
2668
|
...this.$attrs
|
|
2546
2669
|
};
|
|
2547
2670
|
} }
|
|
2548
|
-
}, [["render",
|
|
2549
|
-
function
|
|
2550
|
-
let u =
|
|
2551
|
-
return b(), c("div", { class:
|
|
2671
|
+
}, [["render", Ct]]), Tt = ["innerHTML"];
|
|
2672
|
+
function Et(e, t, n, r, i, a) {
|
|
2673
|
+
let u = E("w-image");
|
|
2674
|
+
return b(), c("div", { class: _(["w-card", a.classes]) }, [
|
|
2552
2675
|
e.$slots.title ? (b(), c("div", {
|
|
2553
2676
|
key: 0,
|
|
2554
|
-
class:
|
|
2677
|
+
class: _(["w-card__title", {
|
|
2555
2678
|
"w-card__title--has-toolbar": e.$slots.title && a.titleHasToolbar,
|
|
2556
2679
|
...a.titleClasses
|
|
2557
2680
|
}])
|
|
2558
|
-
}, [
|
|
2681
|
+
}, [T(e.$slots, "title")], 2)) : n.title ? (b(), c("div", {
|
|
2559
2682
|
key: 1,
|
|
2560
|
-
class:
|
|
2683
|
+
class: _(["w-card__title", {
|
|
2561
2684
|
"w-card__title--has-toolbar": e.$slots.title && a.titleHasToolbar,
|
|
2562
2685
|
...a.titleClasses
|
|
2563
2686
|
}]),
|
|
2564
2687
|
innerHTML: n.title
|
|
2565
|
-
}, null, 10,
|
|
2688
|
+
}, null, 10, Tt)) : s("", !0),
|
|
2566
2689
|
n.image ? (b(), o(u, h({
|
|
2567
2690
|
key: 2,
|
|
2568
2691
|
class: "w-card__image",
|
|
2569
2692
|
src: n.image
|
|
2570
2693
|
}, a.imgProps), {
|
|
2571
|
-
default:
|
|
2694
|
+
default: N(() => [T(e.$slots, "image-content")]),
|
|
2572
2695
|
_: 3
|
|
2573
2696
|
}, 16, ["src"])) : s("", !0),
|
|
2574
|
-
l("div", { class:
|
|
2697
|
+
l("div", { class: _(["w-card__content", a.contentClasses]) }, [T(e.$slots, "default")], 2),
|
|
2575
2698
|
e.$slots.actions ? (b(), c("div", {
|
|
2576
2699
|
key: 3,
|
|
2577
|
-
class:
|
|
2578
|
-
}, [
|
|
2700
|
+
class: _(["w-card__actions", { "w-card__actions--has-toolbar": a.actionsHasToolbar }])
|
|
2701
|
+
}, [T(e.$slots, "actions")], 2)) : s("", !0)
|
|
2579
2702
|
], 2);
|
|
2580
2703
|
}
|
|
2581
|
-
var
|
|
2704
|
+
var Dt = /* @__PURE__ */ J({
|
|
2582
2705
|
name: "w-card",
|
|
2583
2706
|
props: {
|
|
2584
2707
|
color: { type: String },
|
|
@@ -2605,10 +2728,10 @@ var gt = /* @__PURE__ */ Y({
|
|
|
2605
2728
|
emits: [],
|
|
2606
2729
|
computed: {
|
|
2607
2730
|
titleClasses() {
|
|
2608
|
-
return
|
|
2731
|
+
return X(this.titleClass);
|
|
2609
2732
|
},
|
|
2610
2733
|
contentClasses() {
|
|
2611
|
-
return
|
|
2734
|
+
return X(this.contentClass);
|
|
2612
2735
|
},
|
|
2613
2736
|
titleHasToolbar() {
|
|
2614
2737
|
let { title: e } = this.$slots;
|
|
@@ -2637,7 +2760,13 @@ var gt = /* @__PURE__ */ Y({
|
|
|
2637
2760
|
};
|
|
2638
2761
|
}
|
|
2639
2762
|
}
|
|
2640
|
-
}, [["render",
|
|
2763
|
+
}, [["render", Et]]);
|
|
2764
|
+
//#endregion
|
|
2765
|
+
//#region src/wave-ui/mixins/form-elements.js
|
|
2766
|
+
function Q() {
|
|
2767
|
+
return { waveUiUseId: A() };
|
|
2768
|
+
}
|
|
2769
|
+
var $ = {
|
|
2641
2770
|
inject: {
|
|
2642
2771
|
formRegister: { default: null },
|
|
2643
2772
|
formProps: { default: () => ({
|
|
@@ -2645,9 +2774,6 @@ var gt = /* @__PURE__ */ Y({
|
|
|
2645
2774
|
readonly: !1
|
|
2646
2775
|
}) }
|
|
2647
2776
|
},
|
|
2648
|
-
setup() {
|
|
2649
|
-
return { waveUiUseId: A() };
|
|
2650
|
-
},
|
|
2651
2777
|
props: {
|
|
2652
2778
|
id: { type: String },
|
|
2653
2779
|
name: { type: String },
|
|
@@ -2686,7 +2812,7 @@ var gt = /* @__PURE__ */ Y({
|
|
|
2686
2812
|
methods: { validate() {
|
|
2687
2813
|
this.$refs.formEl.validate(this);
|
|
2688
2814
|
} }
|
|
2689
|
-
},
|
|
2815
|
+
}, Ot = [
|
|
2690
2816
|
"id",
|
|
2691
2817
|
"name",
|
|
2692
2818
|
"checked",
|
|
@@ -2694,8 +2820,8 @@ var gt = /* @__PURE__ */ Y({
|
|
|
2694
2820
|
"required",
|
|
2695
2821
|
"tabindex",
|
|
2696
2822
|
"aria-checked"
|
|
2697
|
-
],
|
|
2698
|
-
function
|
|
2823
|
+
], kt = ["for"], At = ["for", "innerHTML"], jt = ["for"], Mt = ["for", "innerHTML"];
|
|
2824
|
+
function Nt(t, n, r, i, a, u) {
|
|
2699
2825
|
return b(), o(D(t.formRegister && !u.wCheckboxes ? "w-form-element" : "div"), h({ ref: "formEl" }, t.formRegister && {
|
|
2700
2826
|
validators: t.validators,
|
|
2701
2827
|
inputValue: a.isChecked,
|
|
@@ -2710,7 +2836,7 @@ function St(t, n, r, i, a, u) {
|
|
|
2710
2836
|
},
|
|
2711
2837
|
class: u.classes
|
|
2712
2838
|
}), {
|
|
2713
|
-
default:
|
|
2839
|
+
default: N(() => [
|
|
2714
2840
|
l("input", {
|
|
2715
2841
|
ref: "input",
|
|
2716
2842
|
id: t.inputId,
|
|
@@ -2723,43 +2849,46 @@ function St(t, n, r, i, a, u) {
|
|
|
2723
2849
|
onFocus: n[0] ||= (e) => t.$emit("focus", e),
|
|
2724
2850
|
onBlur: n[1] ||= (e) => t.$emit("blur", e),
|
|
2725
2851
|
onChange: n[2] ||= (e) => u.onInput(),
|
|
2726
|
-
onKeypress: n[3] ||=
|
|
2852
|
+
onKeypress: n[3] ||= F((...e) => u.onInput && u.onInput(...e), ["enter"]),
|
|
2727
2853
|
"aria-checked": a.isChecked || "false",
|
|
2728
2854
|
role: "checkbox"
|
|
2729
|
-
}, null, 40,
|
|
2855
|
+
}, null, 40, Ot),
|
|
2730
2856
|
u.hasLabel && r.labelOnLeft ? (b(), c(e, { key: 0 }, [t.$slots.default ? (b(), c("label", {
|
|
2731
2857
|
key: 0,
|
|
2732
|
-
class:
|
|
2858
|
+
class: _(["w-checkbox__label w-form-el-shakable pr2", t.labelClasses]),
|
|
2733
2859
|
for: t.inputId
|
|
2734
|
-
}, [
|
|
2860
|
+
}, [T(t.$slots, "default", {}, () => [d(O(r.label), 1)])], 10, kt)) : r.label ? (b(), c("label", {
|
|
2735
2861
|
key: 1,
|
|
2736
|
-
class:
|
|
2862
|
+
class: _(["w-checkbox__label w-form-el-shakable pr2", t.labelClasses]),
|
|
2737
2863
|
for: t.inputId,
|
|
2738
2864
|
innerHTML: r.label
|
|
2739
|
-
}, null, 10,
|
|
2865
|
+
}, null, 10, At)) : s("", !0)], 64)) : s("", !0),
|
|
2740
2866
|
l("div", {
|
|
2741
|
-
class:
|
|
2867
|
+
class: _(["w-checkbox__input", this.color]),
|
|
2742
2868
|
onClick: n[4] ||= (e) => {
|
|
2743
2869
|
t.$refs.input.focus(), t.$refs.input.click();
|
|
2744
2870
|
}
|
|
2745
2871
|
}, [...n[7] ||= [l("svg", { viewBox: "-0.5 0 12 10" }, [l("polyline", { points: "1 5 4 8 10 2" })], -1)]], 2),
|
|
2746
2872
|
u.hasLabel && !r.labelOnLeft ? (b(), c(e, { key: 1 }, [t.$slots.default ? (b(), c("label", {
|
|
2747
2873
|
key: 0,
|
|
2748
|
-
class:
|
|
2874
|
+
class: _(["w-checkbox__label w-form-el-shakable pl2", t.labelClasses]),
|
|
2749
2875
|
for: t.inputId
|
|
2750
|
-
}, [
|
|
2876
|
+
}, [T(t.$slots, "default", {}, () => [d(O(r.label), 1)])], 10, jt)) : r.label ? (b(), c("label", {
|
|
2751
2877
|
key: 1,
|
|
2752
|
-
class:
|
|
2878
|
+
class: _(["w-checkbox__label w-form-el-shakable pl2", t.labelClasses]),
|
|
2753
2879
|
for: t.inputId,
|
|
2754
2880
|
innerHTML: r.label
|
|
2755
|
-
}, null, 10,
|
|
2881
|
+
}, null, 10, Mt)) : s("", !0)], 64)) : s("", !0)
|
|
2756
2882
|
]),
|
|
2757
2883
|
_: 3
|
|
2758
2884
|
}, 16, ["valid", "class"]);
|
|
2759
2885
|
}
|
|
2760
|
-
var
|
|
2886
|
+
var Pt = /* @__PURE__ */ J({
|
|
2761
2887
|
name: "w-checkbox",
|
|
2762
|
-
mixins: [
|
|
2888
|
+
mixins: [$],
|
|
2889
|
+
setup() {
|
|
2890
|
+
return Q();
|
|
2891
|
+
},
|
|
2763
2892
|
inject: { wCheckboxes: { default: null } },
|
|
2764
2893
|
props: {
|
|
2765
2894
|
modelValue: { default: !1 },
|
|
@@ -2824,9 +2953,9 @@ var Ct = /* @__PURE__ */ Y({
|
|
|
2824
2953
|
watch: { modelValue(e) {
|
|
2825
2954
|
this.isChecked = e;
|
|
2826
2955
|
} }
|
|
2827
|
-
}, [["render",
|
|
2828
|
-
function
|
|
2829
|
-
let u =
|
|
2956
|
+
}, [["render", Nt]]), Ft = ["innerHTML"];
|
|
2957
|
+
function It(t, n, r, i, a, l) {
|
|
2958
|
+
let u = E("w-checkbox");
|
|
2830
2959
|
return b(), o(D(t.formRegister ? "w-form-element" : "div"), h({ ref: "formEl" }, t.formRegister && {
|
|
2831
2960
|
validators: t.validators,
|
|
2832
2961
|
inputValue: l.checkboxItems.some((e) => e._isChecked),
|
|
@@ -2840,7 +2969,7 @@ function Tt(t, n, r, i, a, l) {
|
|
|
2840
2969
|
wrap: r.inline,
|
|
2841
2970
|
class: l.classes
|
|
2842
2971
|
}), {
|
|
2843
|
-
default:
|
|
2972
|
+
default: N(() => [(b(!0), c(e, null, w(l.checkboxItems, (e, i) => (b(), o(u, h({
|
|
2844
2973
|
key: i,
|
|
2845
2974
|
"model-value": e._isChecked,
|
|
2846
2975
|
"onUpdate:modelValue": (t) => l.toggleCheck(e, t),
|
|
@@ -2857,7 +2986,7 @@ function Tt(t, n, r, i, a, l) {
|
|
|
2857
2986
|
readonly: t.isReadonly || null,
|
|
2858
2987
|
class: { mt1: !r.inline && i }
|
|
2859
2988
|
}), {
|
|
2860
|
-
default:
|
|
2989
|
+
default: N(() => [t.$slots[`item.${i + 1}`] || t.$slots.item ? T(t.$slots, t.$slots[`item.${i + 1}`] ? `item.${i + 1}` : "item", {
|
|
2861
2990
|
key: 0,
|
|
2862
2991
|
item: l.getOriginalItem(e),
|
|
2863
2992
|
checked: !!e._isChecked,
|
|
@@ -2866,7 +2995,7 @@ function Tt(t, n, r, i, a, l) {
|
|
|
2866
2995
|
}) : e.label ? (b(), c("div", {
|
|
2867
2996
|
key: 1,
|
|
2868
2997
|
innerHTML: e.label
|
|
2869
|
-
}, null, 8,
|
|
2998
|
+
}, null, 8, Ft)) : s("", !0)]),
|
|
2870
2999
|
_: 2
|
|
2871
3000
|
}, 1040, [
|
|
2872
3001
|
"model-value",
|
|
@@ -2885,9 +3014,12 @@ function Tt(t, n, r, i, a, l) {
|
|
|
2885
3014
|
"class"
|
|
2886
3015
|
]);
|
|
2887
3016
|
}
|
|
2888
|
-
var
|
|
3017
|
+
var Lt = /* @__PURE__ */ J({
|
|
2889
3018
|
name: "w-checkboxes",
|
|
2890
|
-
mixins: [
|
|
3019
|
+
mixins: [$],
|
|
3020
|
+
setup() {
|
|
3021
|
+
return Q();
|
|
3022
|
+
},
|
|
2891
3023
|
props: {
|
|
2892
3024
|
items: {
|
|
2893
3025
|
type: Array,
|
|
@@ -2958,42 +3090,42 @@ var Et = /* @__PURE__ */ Y({
|
|
|
2958
3090
|
return this.items[e._index];
|
|
2959
3091
|
}
|
|
2960
3092
|
}
|
|
2961
|
-
}, [["render",
|
|
3093
|
+
}, [["render", It]]);
|
|
2962
3094
|
//#endregion
|
|
2963
3095
|
//#region src/wave-ui/components/w-confirm.vue?vue&type=template&lang.js
|
|
2964
|
-
function
|
|
2965
|
-
let c =
|
|
3096
|
+
function Rt(e, t, n, r, i, a) {
|
|
3097
|
+
let c = E("w-button"), u = E("w-flex"), p = E("w-menu"), m = ne("focus");
|
|
2966
3098
|
return b(), o(p, h({
|
|
2967
3099
|
modelValue: e.showPopup,
|
|
2968
3100
|
"onUpdate:modelValue": t[2] ||= (t) => e.showPopup = t
|
|
2969
3101
|
}, a.wMenuProps), {
|
|
2970
|
-
activator:
|
|
3102
|
+
activator: N(({ on: t }) => [f(c, h({ class: "w-confirm" }, {
|
|
2971
3103
|
...e.$attrs,
|
|
2972
3104
|
...a.buttonProps
|
|
2973
3105
|
}, k(n.disablePrompt ? {} : { ...t })), {
|
|
2974
|
-
default:
|
|
3106
|
+
default: N(() => [T(e.$slots, "default")]),
|
|
2975
3107
|
_: 3
|
|
2976
3108
|
}, 16)]),
|
|
2977
|
-
default:
|
|
3109
|
+
default: N(() => [f(u, {
|
|
2978
3110
|
column: !n.inline,
|
|
2979
3111
|
"align-center": ""
|
|
2980
3112
|
}, {
|
|
2981
|
-
default:
|
|
3113
|
+
default: N(() => [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({
|
|
2982
3114
|
key: 0,
|
|
2983
3115
|
class: "mr2"
|
|
2984
3116
|
}, a.cancelButtonProps, {
|
|
2985
3117
|
"bg-color": (a.cancelButton || {}).bgColor || "error",
|
|
2986
|
-
onKeyup: t[0] ||=
|
|
3118
|
+
onKeyup: t[0] ||= F((e) => !n.persistent && a.onCancel(), ["escape"]),
|
|
2987
3119
|
onClick: a.onCancel
|
|
2988
3120
|
}), {
|
|
2989
|
-
default:
|
|
3121
|
+
default: N(() => [T(e.$slots, "cancel", {}, () => [d(O(a.cancelButton.label), 1)])]),
|
|
2990
3122
|
_: 3
|
|
2991
|
-
}, 16, ["bg-color", "onClick"])),
|
|
3123
|
+
}, 16, ["bg-color", "onClick"])), P((b(), o(c, h(a.confirmButtonProps, {
|
|
2992
3124
|
"bg-color": (a.confirmButton || {}).bgColor || "success",
|
|
2993
|
-
onKeyup: t[1] ||=
|
|
3125
|
+
onKeyup: t[1] ||= F((e) => !n.persistent && a.onCancel(), ["escape"]),
|
|
2994
3126
|
onClick: a.onConfirm
|
|
2995
3127
|
}), {
|
|
2996
|
-
default:
|
|
3128
|
+
default: N(() => [T(e.$slots, "confirm", {}, () => [d(O(a.confirmButton.label), 1)])]),
|
|
2997
3129
|
_: 3
|
|
2998
3130
|
}, 16, ["bg-color", "onClick"])), [[m]])], 2)]),
|
|
2999
3131
|
_: 3
|
|
@@ -3001,7 +3133,7 @@ function Dt(e, t, n, r, i, a) {
|
|
|
3001
3133
|
_: 3
|
|
3002
3134
|
}, 16, ["modelValue"]);
|
|
3003
3135
|
}
|
|
3004
|
-
var
|
|
3136
|
+
var zt = /* @__PURE__ */ J({
|
|
3005
3137
|
name: "w-confirm",
|
|
3006
3138
|
inheritAttrs: !1,
|
|
3007
3139
|
props: {
|
|
@@ -3127,16 +3259,16 @@ var Ot = /* @__PURE__ */ Y({
|
|
|
3127
3259
|
this.$emit("confirm"), this.showPopup = !1;
|
|
3128
3260
|
}
|
|
3129
3261
|
}
|
|
3130
|
-
}, [["render",
|
|
3262
|
+
}, [["render", Rt]]);
|
|
3131
3263
|
//#endregion
|
|
3132
3264
|
//#region src/wave-ui/components/w-date-picker.vue?vue&type=template&lang.js
|
|
3133
|
-
function
|
|
3265
|
+
function Bt(e, t, n, r, i, a) {
|
|
3134
3266
|
return b(), c("div", {
|
|
3135
|
-
class:
|
|
3136
|
-
style:
|
|
3137
|
-
}, [
|
|
3267
|
+
class: _(["w-date-picker", a.classes]),
|
|
3268
|
+
style: y(a.styles)
|
|
3269
|
+
}, [T(e.$slots, "default")], 6);
|
|
3138
3270
|
}
|
|
3139
|
-
var
|
|
3271
|
+
var Vt = /* @__PURE__ */ J({
|
|
3140
3272
|
name: "w-date-picker",
|
|
3141
3273
|
props: {
|
|
3142
3274
|
dark: { type: Boolean },
|
|
@@ -3154,13 +3286,13 @@ var At = /* @__PURE__ */ Y({
|
|
|
3154
3286
|
return !1;
|
|
3155
3287
|
}
|
|
3156
3288
|
}
|
|
3157
|
-
}, [["render",
|
|
3289
|
+
}, [["render", Bt]]);
|
|
3158
3290
|
//#endregion
|
|
3159
3291
|
//#region src/wave-ui/components/w-dialog.vue?vue&type=template&lang.js
|
|
3160
|
-
function
|
|
3161
|
-
let c =
|
|
3292
|
+
function Ht(e, t, n, i, a, s) {
|
|
3293
|
+
let c = E("w-card"), l = E("w-overlay");
|
|
3162
3294
|
return b(), o(l, {
|
|
3163
|
-
class:
|
|
3295
|
+
class: _(["w-dialog", s.classes]),
|
|
3164
3296
|
"model-value": a.showWrapper,
|
|
3165
3297
|
persistent: n.persistent,
|
|
3166
3298
|
"persistent-no-animation": n.persistentNoAnimation,
|
|
@@ -3169,13 +3301,13 @@ function jt(e, t, n, i, a, s) {
|
|
|
3169
3301
|
"bg-color": n.overlayColor,
|
|
3170
3302
|
opacity: n.overlayOpacity
|
|
3171
3303
|
}, {
|
|
3172
|
-
default:
|
|
3304
|
+
default: N(() => [f(r, {
|
|
3173
3305
|
name: n.transition,
|
|
3174
3306
|
appear: "",
|
|
3175
3307
|
onAfterLeave: s.onBeforeClose
|
|
3176
3308
|
}, {
|
|
3177
|
-
default:
|
|
3178
|
-
class:
|
|
3309
|
+
default: N(() => [P(f(c, {
|
|
3310
|
+
class: _(["w-dialog__content", n.dialogClass]),
|
|
3179
3311
|
ref: "dialog",
|
|
3180
3312
|
"no-border": "",
|
|
3181
3313
|
color: n.color,
|
|
@@ -3183,17 +3315,17 @@ function jt(e, t, n, i, a, s) {
|
|
|
3183
3315
|
"title-class": n.titleClass,
|
|
3184
3316
|
"content-class": n.contentClass,
|
|
3185
3317
|
title: n.title || void 0,
|
|
3186
|
-
style:
|
|
3318
|
+
style: y(s.contentStyles)
|
|
3187
3319
|
}, u({
|
|
3188
|
-
default:
|
|
3320
|
+
default: N(() => [T(e.$slots, "default")]),
|
|
3189
3321
|
_: 2
|
|
3190
3322
|
}, [e.$slots.title ? {
|
|
3191
3323
|
name: "title",
|
|
3192
|
-
fn:
|
|
3324
|
+
fn: N(() => [T(e.$slots, "title")]),
|
|
3193
3325
|
key: "0"
|
|
3194
3326
|
} : void 0, e.$slots.actions ? {
|
|
3195
3327
|
name: "actions",
|
|
3196
|
-
fn:
|
|
3328
|
+
fn: N(() => [T(e.$slots, "actions")]),
|
|
3197
3329
|
key: "1"
|
|
3198
3330
|
} : void 0]), 1032, [
|
|
3199
3331
|
"color",
|
|
@@ -3203,7 +3335,7 @@ function jt(e, t, n, i, a, s) {
|
|
|
3203
3335
|
"content-class",
|
|
3204
3336
|
"title",
|
|
3205
3337
|
"style"
|
|
3206
|
-
]), [[
|
|
3338
|
+
]), [[ae, a.showContent]])]),
|
|
3207
3339
|
_: 3
|
|
3208
3340
|
}, 8, ["name", "onAfterLeave"])]),
|
|
3209
3341
|
_: 3
|
|
@@ -3218,7 +3350,7 @@ function jt(e, t, n, i, a, s) {
|
|
|
3218
3350
|
"class"
|
|
3219
3351
|
]);
|
|
3220
3352
|
}
|
|
3221
|
-
var
|
|
3353
|
+
var Ut = /* @__PURE__ */ J({
|
|
3222
3354
|
name: "w-dialog",
|
|
3223
3355
|
props: {
|
|
3224
3356
|
modelValue: { default: !0 },
|
|
@@ -3278,13 +3410,13 @@ var Mt = /* @__PURE__ */ Y({
|
|
|
3278
3410
|
},
|
|
3279
3411
|
computed: {
|
|
3280
3412
|
titleClasses() {
|
|
3281
|
-
return
|
|
3413
|
+
return X(this.titleClass);
|
|
3282
3414
|
},
|
|
3283
3415
|
contentClasses() {
|
|
3284
|
-
return
|
|
3416
|
+
return X(this.contentClass);
|
|
3285
3417
|
},
|
|
3286
3418
|
dialogClasses() {
|
|
3287
|
-
return
|
|
3419
|
+
return X(this.dialogClass);
|
|
3288
3420
|
},
|
|
3289
3421
|
maxWidth() {
|
|
3290
3422
|
let e = this.width;
|
|
@@ -3315,15 +3447,15 @@ var Mt = /* @__PURE__ */ Y({
|
|
|
3315
3447
|
watch: { modelValue(e) {
|
|
3316
3448
|
this.showWrapper = e, this.showContent = e;
|
|
3317
3449
|
} }
|
|
3318
|
-
}, [["render",
|
|
3319
|
-
function
|
|
3450
|
+
}, [["render", Ht]]), Wt = ["role", "aria-orientation"];
|
|
3451
|
+
function Gt(e, t, n, r, i, a) {
|
|
3320
3452
|
return b(), c("div", {
|
|
3321
|
-
class:
|
|
3453
|
+
class: _(["w-divider", a.classes]),
|
|
3322
3454
|
role: e.$slots.default ? null : "presentation",
|
|
3323
3455
|
"aria-orientation": n.vertical ? "vertical" : "horizontal"
|
|
3324
|
-
}, [
|
|
3456
|
+
}, [T(e.$slots, "default")], 10, Wt);
|
|
3325
3457
|
}
|
|
3326
|
-
var
|
|
3458
|
+
var Kt = /* @__PURE__ */ J({
|
|
3327
3459
|
name: "w-divider",
|
|
3328
3460
|
props: {
|
|
3329
3461
|
vertical: { type: Boolean },
|
|
@@ -3341,17 +3473,17 @@ var Ft = /* @__PURE__ */ Y({
|
|
|
3341
3473
|
"w-divider--light": this.light
|
|
3342
3474
|
};
|
|
3343
3475
|
} }
|
|
3344
|
-
}, [["render",
|
|
3345
|
-
function
|
|
3346
|
-
let p =
|
|
3476
|
+
}, [["render", Gt]]), qt = { class: "w-drawer-wrap__pushable" };
|
|
3477
|
+
function Jt(t, n, i, a, u, d) {
|
|
3478
|
+
let p = E("w-overlay");
|
|
3347
3479
|
return u.showWrapper || i.pushContent ? (b(), c("div", {
|
|
3348
3480
|
key: 0,
|
|
3349
|
-
class:
|
|
3481
|
+
class: _(["w-drawer-wrap", d.wrapperClasses])
|
|
3350
3482
|
}, [i.pushContent ? (b(), c("div", {
|
|
3351
3483
|
key: 0,
|
|
3352
3484
|
class: "w-drawer-wrap__track",
|
|
3353
|
-
style:
|
|
3354
|
-
}, [l("div",
|
|
3485
|
+
style: y(d.trackStyles)
|
|
3486
|
+
}, [l("div", qt, [i.noOverlay ? s("", !0) : (b(), o(p, {
|
|
3355
3487
|
key: 0,
|
|
3356
3488
|
modelValue: u.showDrawer,
|
|
3357
3489
|
"onUpdate:modelValue": n[0] ||= (e) => u.showDrawer = e,
|
|
@@ -3366,18 +3498,18 @@ function Lt(t, n, i, a, u, d) {
|
|
|
3366
3498
|
"persistent",
|
|
3367
3499
|
"bg-color",
|
|
3368
3500
|
"opacity"
|
|
3369
|
-
])),
|
|
3501
|
+
])), T(t.$slots, "pushable")]), f(r, {
|
|
3370
3502
|
name: "fade",
|
|
3371
3503
|
onBeforeLeave: d.onBeforeClose,
|
|
3372
3504
|
onAfterLeave: d.onClose
|
|
3373
3505
|
}, {
|
|
3374
|
-
default:
|
|
3506
|
+
default: N(() => [u.showDrawer ? (b(), o(D(i.tag || "aside"), {
|
|
3375
3507
|
key: 0,
|
|
3376
|
-
class:
|
|
3508
|
+
class: _(["w-drawer", d.drawerClasses]),
|
|
3377
3509
|
ref: "drawer",
|
|
3378
|
-
style:
|
|
3510
|
+
style: y(d.styles)
|
|
3379
3511
|
}, {
|
|
3380
|
-
default:
|
|
3512
|
+
default: N(() => [T(t.$slots, "default")]),
|
|
3381
3513
|
_: 3
|
|
3382
3514
|
}, 8, ["class", "style"])) : s("", !0)]),
|
|
3383
3515
|
_: 3
|
|
@@ -3402,13 +3534,13 @@ function Lt(t, n, i, a, u, d) {
|
|
|
3402
3534
|
onBeforeLeave: d.onBeforeClose,
|
|
3403
3535
|
onAfterLeave: d.onClose
|
|
3404
3536
|
}, {
|
|
3405
|
-
default:
|
|
3537
|
+
default: N(() => [u.showDrawer ? (b(), o(D(i.tag || "aside"), {
|
|
3406
3538
|
key: 0,
|
|
3407
|
-
class:
|
|
3539
|
+
class: _(["w-drawer", d.drawerClasses]),
|
|
3408
3540
|
ref: "drawer",
|
|
3409
|
-
style:
|
|
3541
|
+
style: y(d.styles)
|
|
3410
3542
|
}, {
|
|
3411
|
-
default:
|
|
3543
|
+
default: N(() => [T(t.$slots, "default")]),
|
|
3412
3544
|
_: 3
|
|
3413
3545
|
}, 8, ["class", "style"])) : s("", !0)]),
|
|
3414
3546
|
_: 3
|
|
@@ -3420,12 +3552,12 @@ function Lt(t, n, i, a, u, d) {
|
|
|
3420
3552
|
}
|
|
3421
3553
|
//#endregion
|
|
3422
3554
|
//#region src/wave-ui/components/w-drawer.vue
|
|
3423
|
-
var
|
|
3555
|
+
var Yt = {
|
|
3424
3556
|
left: "right",
|
|
3425
3557
|
right: "left",
|
|
3426
3558
|
top: "down",
|
|
3427
3559
|
bottom: "up"
|
|
3428
|
-
},
|
|
3560
|
+
}, Xt = /* @__PURE__ */ J({
|
|
3429
3561
|
name: "w-drawer",
|
|
3430
3562
|
props: {
|
|
3431
3563
|
modelValue: { default: !0 },
|
|
@@ -3531,7 +3663,7 @@ var Rt = {
|
|
|
3531
3663
|
return !this.showWrapper;
|
|
3532
3664
|
},
|
|
3533
3665
|
transitionName() {
|
|
3534
|
-
return `slide-${
|
|
3666
|
+
return `slide-${Yt[this.position]}`;
|
|
3535
3667
|
}
|
|
3536
3668
|
},
|
|
3537
3669
|
methods: {
|
|
@@ -3548,16 +3680,16 @@ var Rt = {
|
|
|
3548
3680
|
watch: { modelValue(e) {
|
|
3549
3681
|
e && (this.showWrapper = !0), this.showDrawer = e;
|
|
3550
3682
|
} }
|
|
3551
|
-
}, [["render",
|
|
3683
|
+
}, [["render", Jt]]);
|
|
3552
3684
|
//#endregion
|
|
3553
3685
|
//#region src/wave-ui/components/w-flex.vue?vue&type=template&lang.js
|
|
3554
|
-
function
|
|
3555
|
-
return b(), o(D(n.tag), { class:
|
|
3556
|
-
default:
|
|
3686
|
+
function Zt(e, t, n, r, i, a) {
|
|
3687
|
+
return b(), o(D(n.tag), { class: _(["w-flex", a.classes]) }, {
|
|
3688
|
+
default: N(() => [T(e.$slots, "default")]),
|
|
3557
3689
|
_: 3
|
|
3558
3690
|
}, 8, ["class"]);
|
|
3559
3691
|
}
|
|
3560
|
-
var
|
|
3692
|
+
var Qt = /* @__PURE__ */ J({
|
|
3561
3693
|
name: "w-flex",
|
|
3562
3694
|
props: {
|
|
3563
3695
|
tag: {
|
|
@@ -3608,23 +3740,23 @@ var Vt = /* @__PURE__ */ Y({
|
|
|
3608
3740
|
[`gap${this.gap}`]: ~~this.gap
|
|
3609
3741
|
};
|
|
3610
3742
|
} }
|
|
3611
|
-
}, [["render",
|
|
3743
|
+
}, [["render", Zt]]);
|
|
3612
3744
|
//#endregion
|
|
3613
3745
|
//#region src/wave-ui/components/w-form.vue?vue&type=template&lang.js
|
|
3614
|
-
function
|
|
3746
|
+
function $t(e, t, n, r, i, a) {
|
|
3615
3747
|
return b(), c("form", {
|
|
3616
|
-
class:
|
|
3748
|
+
class: _(["w-form", a.classes]),
|
|
3617
3749
|
onSubmit: t[0] ||= (...e) => a.onSubmit && a.onSubmit(...e),
|
|
3618
3750
|
onReset: t[1] ||= (...e) => a.reset && a.reset(...e),
|
|
3619
3751
|
novalidate: ""
|
|
3620
|
-
}, [
|
|
3752
|
+
}, [T(e.$slots, "default")], 34);
|
|
3621
3753
|
}
|
|
3622
3754
|
//#endregion
|
|
3623
3755
|
//#region src/wave-ui/components/w-form.vue
|
|
3624
|
-
var
|
|
3756
|
+
var en = async (e, t) => {
|
|
3625
3757
|
for (let n of e) if (await t(n)) return !0;
|
|
3626
3758
|
return !1;
|
|
3627
|
-
},
|
|
3759
|
+
}, tn = /* @__PURE__ */ J({
|
|
3628
3760
|
name: "w-form",
|
|
3629
3761
|
props: {
|
|
3630
3762
|
modelValue: {},
|
|
@@ -3699,7 +3831,7 @@ var Ut = async (e, t) => {
|
|
|
3699
3831
|
},
|
|
3700
3832
|
async checkElementValidators(e) {
|
|
3701
3833
|
let t = !1, n = "";
|
|
3702
|
-
await
|
|
3834
|
+
await en(e.validators, async (r) => {
|
|
3703
3835
|
let i = await (typeof r == "function" && r(e.inputValue));
|
|
3704
3836
|
return t = typeof i != "string", n = t ? "" : i, !t;
|
|
3705
3837
|
}), e.hasJustReset = !1, e.Validation.isValid = t, e.Validation.message = n;
|
|
@@ -3720,20 +3852,20 @@ var Ut = async (e, t) => {
|
|
|
3720
3852
|
watch: { modelValue(e) {
|
|
3721
3853
|
(this.status === !1 && e || e === null && this.status !== null) && this.reset(), this.status = e;
|
|
3722
3854
|
} }
|
|
3723
|
-
}, [["render",
|
|
3855
|
+
}, [["render", $t]]);
|
|
3724
3856
|
//#endregion
|
|
3725
3857
|
//#region src/wave-ui/components/w-form-element.vue?vue&type=template&lang.js
|
|
3726
|
-
function
|
|
3727
|
-
let o =
|
|
3728
|
-
return b(), c("div", { class:
|
|
3729
|
-
default:
|
|
3858
|
+
function nn(e, t, n, r, i, a) {
|
|
3859
|
+
let o = E("w-transition-expand");
|
|
3860
|
+
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: "" }, {
|
|
3861
|
+
default: N(() => [e.Validation.message ? (b(), c("div", {
|
|
3730
3862
|
key: 0,
|
|
3731
|
-
class:
|
|
3732
|
-
}, [
|
|
3863
|
+
class: _(["w-form-el__error", a.formProps.validationColor])
|
|
3864
|
+
}, [T(e.$slots, "error-message", { message: e.Validation.message }, () => [d(O(e.Validation.message), 1)])], 2)) : s("", !0)]),
|
|
3733
3865
|
_: 3
|
|
3734
3866
|
})], 2);
|
|
3735
3867
|
}
|
|
3736
|
-
var
|
|
3868
|
+
var rn = /* @__PURE__ */ J({
|
|
3737
3869
|
name: "w-form-element",
|
|
3738
3870
|
props: {
|
|
3739
3871
|
valid: { required: !0 },
|
|
@@ -3801,16 +3933,16 @@ var Kt = /* @__PURE__ */ Y({
|
|
|
3801
3933
|
beforeUnmount() {
|
|
3802
3934
|
this.formUnregister && this.formUnregister(this);
|
|
3803
3935
|
}
|
|
3804
|
-
}, [["render",
|
|
3936
|
+
}, [["render", nn]]);
|
|
3805
3937
|
//#endregion
|
|
3806
3938
|
//#region src/wave-ui/components/w-grid.vue?vue&type=template&lang.js
|
|
3807
|
-
function
|
|
3808
|
-
return b(), o(D(n.tag), { class:
|
|
3809
|
-
default:
|
|
3939
|
+
function an(e, t, n, r, i, a) {
|
|
3940
|
+
return b(), o(D(n.tag), { class: _(["w-grid", a.classes]) }, {
|
|
3941
|
+
default: N(() => [T(e.$slots, "default")]),
|
|
3810
3942
|
_: 3
|
|
3811
3943
|
}, 8, ["class"]);
|
|
3812
3944
|
}
|
|
3813
|
-
var
|
|
3945
|
+
var on = /* @__PURE__ */ J({
|
|
3814
3946
|
name: "w-grid",
|
|
3815
3947
|
props: {
|
|
3816
3948
|
tag: {
|
|
@@ -3882,21 +4014,21 @@ var Jt = /* @__PURE__ */ Y({
|
|
|
3882
4014
|
};
|
|
3883
4015
|
}
|
|
3884
4016
|
}
|
|
3885
|
-
}, [["render",
|
|
4017
|
+
}, [["render", an]]);
|
|
3886
4018
|
//#endregion
|
|
3887
4019
|
//#region src/wave-ui/components/w-icon.vue?vue&type=template&lang.js
|
|
3888
|
-
function
|
|
4020
|
+
function sn(t, n, r, i, a, l) {
|
|
3889
4021
|
return b(), o(D(r.tag || "i"), {
|
|
3890
|
-
class:
|
|
4022
|
+
class: _(["w-icon", l.classes]),
|
|
3891
4023
|
role: "icon",
|
|
3892
4024
|
"aria-hidden": "true",
|
|
3893
|
-
style:
|
|
4025
|
+
style: y(l.readIcon() && l.styles)
|
|
3894
4026
|
}, {
|
|
3895
|
-
default:
|
|
4027
|
+
default: N(() => [l.hasLigature ? (b(), c(e, { key: 0 }, [d(O(t.icon), 1)], 64)) : s("", !0)]),
|
|
3896
4028
|
_: 1
|
|
3897
4029
|
}, 8, ["class", "style"]);
|
|
3898
4030
|
}
|
|
3899
|
-
var
|
|
4031
|
+
var cn = /* @__PURE__ */ J({
|
|
3900
4032
|
name: "w-icon",
|
|
3901
4033
|
props: {
|
|
3902
4034
|
tag: {
|
|
@@ -3966,27 +4098,27 @@ var Xt = /* @__PURE__ */ Y({
|
|
|
3966
4098
|
let { default: e } = this.$slots, [t = "", n = ""] = typeof e == "function" && e()?.[0]?.children?.trim()?.split(" ") || [];
|
|
3967
4099
|
return this.fontName = t, this.icon = n, !0;
|
|
3968
4100
|
} }
|
|
3969
|
-
}, [["render",
|
|
4101
|
+
}, [["render", sn]]), ln = {
|
|
3970
4102
|
key: 0,
|
|
3971
4103
|
class: "w-image__loader"
|
|
3972
|
-
},
|
|
3973
|
-
function
|
|
3974
|
-
let u =
|
|
4104
|
+
}, un = ["innerHTML"];
|
|
4105
|
+
function dn(e, t, n, i, a, l) {
|
|
4106
|
+
let u = E("w-progress");
|
|
3975
4107
|
return b(), o(D(l.wrapperTag), {
|
|
3976
|
-
class:
|
|
4108
|
+
class: _(["w-image", l.wrapperClasses]),
|
|
3977
4109
|
ref: "imageWrap",
|
|
3978
|
-
style:
|
|
4110
|
+
style: y(l.wrapperStyles),
|
|
3979
4111
|
onError: t[0] ||= (e) => a.error = !0
|
|
3980
4112
|
}, {
|
|
3981
|
-
default:
|
|
4113
|
+
default: N(() => [
|
|
3982
4114
|
f(r, {
|
|
3983
4115
|
name: n.transition,
|
|
3984
4116
|
appear: ""
|
|
3985
4117
|
}, {
|
|
3986
|
-
default:
|
|
4118
|
+
default: N(() => [a.loaded ? (b(), o(D(l.normalized.tag), {
|
|
3987
4119
|
key: 0,
|
|
3988
|
-
class:
|
|
3989
|
-
style:
|
|
4120
|
+
class: _(["w-image__image", l.imageClasses]),
|
|
4121
|
+
style: y(l.imageStyles),
|
|
3990
4122
|
src: l.normalized.tag === "img" ? a.computedImg.src : null
|
|
3991
4123
|
}, null, 8, [
|
|
3992
4124
|
"class",
|
|
@@ -3995,31 +4127,31 @@ function $t(e, t, n, i, a, l) {
|
|
|
3995
4127
|
])) : s("", !0)]),
|
|
3996
4128
|
_: 1
|
|
3997
4129
|
}, 8, ["name"]),
|
|
3998
|
-
!n.noSpinner && a.loading ? (b(), c("span",
|
|
4130
|
+
!n.noSpinner && a.loading ? (b(), c("span", ln, [e.$slots.loading ? T(e.$slots, "loading", { key: 0 }) : (b(), o(u, h({
|
|
3999
4131
|
key: 1,
|
|
4000
4132
|
circle: "",
|
|
4001
4133
|
indeterminate: ""
|
|
4002
4134
|
}, n.spinnerColor ? { color: n.spinnerColor } : {}), null, 16))])) : s("", !0),
|
|
4003
4135
|
e.$slots.default ? (b(), o(D(l.wrapperTag), {
|
|
4004
4136
|
key: 1,
|
|
4005
|
-
class:
|
|
4137
|
+
class: _(["w-image__content", n.contentClass])
|
|
4006
4138
|
}, {
|
|
4007
|
-
default:
|
|
4139
|
+
default: N(() => [T(e.$slots, "default")]),
|
|
4008
4140
|
_: 3
|
|
4009
4141
|
}, 8, ["class"])) : s("", !0),
|
|
4010
4142
|
e.$slots.caption ? (b(), c("figcaption", {
|
|
4011
4143
|
key: 2,
|
|
4012
|
-
class:
|
|
4013
|
-
}, [
|
|
4144
|
+
class: _(["w-image__caption caption", n.captionClass])
|
|
4145
|
+
}, [T(e.$slots, "caption")], 2)) : n.caption ? (b(), c("figcaption", {
|
|
4014
4146
|
key: 3,
|
|
4015
|
-
class:
|
|
4147
|
+
class: _(["w-image__caption caption", n.captionClass]),
|
|
4016
4148
|
innerHTML: n.caption
|
|
4017
|
-
}, null, 10,
|
|
4149
|
+
}, null, 10, un)) : s("", !0)
|
|
4018
4150
|
]),
|
|
4019
4151
|
_: 3
|
|
4020
4152
|
}, 40, ["class", "style"]);
|
|
4021
4153
|
}
|
|
4022
|
-
var
|
|
4154
|
+
var fn = /* @__PURE__ */ J({
|
|
4023
4155
|
name: "w-image",
|
|
4024
4156
|
props: {
|
|
4025
4157
|
tag: {
|
|
@@ -4132,7 +4264,7 @@ var en = /* @__PURE__ */ Y({
|
|
|
4132
4264
|
watch: { src() {
|
|
4133
4265
|
this.loadImage();
|
|
4134
4266
|
} }
|
|
4135
|
-
}, [["render",
|
|
4267
|
+
}, [["render", dn]]), pn = ["name"], mn = ["for"], hn = [
|
|
4136
4268
|
"id",
|
|
4137
4269
|
"type",
|
|
4138
4270
|
"name",
|
|
@@ -4147,18 +4279,18 @@ var en = /* @__PURE__ */ Y({
|
|
|
4147
4279
|
"disabled",
|
|
4148
4280
|
"required",
|
|
4149
4281
|
"tabindex"
|
|
4150
|
-
],
|
|
4282
|
+
], gn = [
|
|
4151
4283
|
"id",
|
|
4152
4284
|
"name",
|
|
4153
4285
|
"multiple",
|
|
4154
4286
|
"disabled",
|
|
4155
4287
|
"data-progress"
|
|
4156
|
-
],
|
|
4288
|
+
], _n = {
|
|
4157
4289
|
class: "w-input__no-file",
|
|
4158
4290
|
key: "no-file"
|
|
4159
|
-
},
|
|
4160
|
-
function
|
|
4161
|
-
let m =
|
|
4291
|
+
}, vn = ["for"], yn = ["src"], bn = ["for"];
|
|
4292
|
+
function xn(t, n, r, a, u, p) {
|
|
4293
|
+
let m = E("w-icon"), g = E("w-progress");
|
|
4162
4294
|
return b(), o(D(t.formRegister ? "w-form-element" : "div"), h({ ref: "formEl" }, t.formRegister && {
|
|
4163
4295
|
validators: t.validators,
|
|
4164
4296
|
inputValue: u.inputValue,
|
|
@@ -4176,26 +4308,26 @@ function un(t, n, r, a, u, p) {
|
|
|
4176
4308
|
class: p.classes,
|
|
4177
4309
|
style: t.$attrs.style
|
|
4178
4310
|
}), {
|
|
4179
|
-
default:
|
|
4311
|
+
default: N(() => [r.type === "hidden" ? P((b(), c("input", {
|
|
4180
4312
|
key: 0,
|
|
4181
4313
|
type: "hidden",
|
|
4182
4314
|
name: t.name || null,
|
|
4183
4315
|
"onUpdate:modelValue": n[0] ||= (e) => u.inputValue = e
|
|
4184
|
-
}, null, 8,
|
|
4316
|
+
}, null, 8, pn)), [[M, u.inputValue]]) : (b(), c(e, { key: 1 }, [
|
|
4185
4317
|
r.labelPosition === "left" ? (b(), c(e, { key: 0 }, [t.$slots.default || r.label ? (b(), c("label", {
|
|
4186
4318
|
key: 0,
|
|
4187
|
-
class:
|
|
4319
|
+
class: _(["w-input__label w-input__label--left w-form-el-shakable", t.labelClasses]),
|
|
4188
4320
|
for: t.inputId
|
|
4189
|
-
}, [
|
|
4190
|
-
l("div", { class:
|
|
4191
|
-
|
|
4321
|
+
}, [T(t.$slots, "default", {}, () => [d(O(r.label), 1)])], 10, mn)) : s("", !0)], 64)) : s("", !0),
|
|
4322
|
+
l("div", { class: _(["w-input__input-wrap", p.inputWrapClasses]) }, [
|
|
4323
|
+
T(t.$slots, "icon-left", { inputId: t.inputId }, () => [r.innerIconLeft ? (b(), o(m, {
|
|
4192
4324
|
key: 0,
|
|
4193
4325
|
class: "w-input__icon w-input__icon--inner-left",
|
|
4194
4326
|
tag: "label",
|
|
4195
4327
|
for: t.inputId,
|
|
4196
4328
|
onClick: n[1] ||= (e) => t.$emit("click:inner-icon-left", e)
|
|
4197
4329
|
}, {
|
|
4198
|
-
default:
|
|
4330
|
+
default: N(() => [d(O(r.innerIconLeft), 1)]),
|
|
4199
4331
|
_: 1
|
|
4200
4332
|
}, 8, ["for"])) : s("", !0)]),
|
|
4201
4333
|
r.type === "file" ? (b(), c(e, { key: 1 }, [l("input", h({
|
|
@@ -4210,13 +4342,13 @@ function un(t, n, r, a, u, p) {
|
|
|
4210
4342
|
}, p.attrs, {
|
|
4211
4343
|
disabled: t.isDisabled || null,
|
|
4212
4344
|
"data-progress": p.overallFilesProgress
|
|
4213
|
-
}), null, 16,
|
|
4345
|
+
}), null, 16, gn), f(i, {
|
|
4214
4346
|
class: "w-input__input w-input__input--file",
|
|
4215
4347
|
tag: "label",
|
|
4216
4348
|
name: "fade",
|
|
4217
4349
|
for: t.inputId
|
|
4218
4350
|
}, {
|
|
4219
|
-
default:
|
|
4351
|
+
default: N(() => [!u.inputFiles.length && u.isFocused ? (b(), c("span", _n, [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 }, [
|
|
4220
4352
|
d(O(t ? ", " : ""), 1),
|
|
4221
4353
|
(b(), c("span", {
|
|
4222
4354
|
class: "filename",
|
|
@@ -4225,7 +4357,7 @@ function un(t, n, r, a, u, p) {
|
|
|
4225
4357
|
d(O(e.extension ? `.${e.extension}` : ""), 1)
|
|
4226
4358
|
]))), 128))]),
|
|
4227
4359
|
_: 3
|
|
4228
|
-
}, 8, ["for"])], 64)) :
|
|
4360
|
+
}, 8, ["for"])], 64)) : P((b(), c("input", h({
|
|
4229
4361
|
key: 0,
|
|
4230
4362
|
class: "w-input__input",
|
|
4231
4363
|
ref: "input",
|
|
@@ -4247,22 +4379,22 @@ function un(t, n, r, a, u, p) {
|
|
|
4247
4379
|
disabled: t.isDisabled || null,
|
|
4248
4380
|
required: t.required || null,
|
|
4249
4381
|
tabindex: t.tabindex || null
|
|
4250
|
-
}, p.attrs, { class: r.inputClass }), null, 16,
|
|
4382
|
+
}, p.attrs, { class: r.inputClass }), null, 16, hn)), [[j, u.inputValue]]),
|
|
4251
4383
|
r.labelPosition === "inside" && p.showLabelInside ? (b(), c(e, { key: 2 }, [t.$slots.default || r.label ? (b(), c("label", {
|
|
4252
4384
|
key: 0,
|
|
4253
|
-
class:
|
|
4254
|
-
}, [
|
|
4255
|
-
|
|
4385
|
+
class: _(["w-input__label w-input__label--inside w-form-el-shakable", t.labelClasses])
|
|
4386
|
+
}, [T(t.$slots, "default", {}, () => [d(O(r.label), 1)])], 2)) : s("", !0)], 64)) : s("", !0),
|
|
4387
|
+
T(t.$slots, "icon-right", { inputId: t.inputId }, () => [r.innerIconRight ? (b(), o(m, {
|
|
4256
4388
|
key: 0,
|
|
4257
4389
|
class: "w-input__icon w-input__icon--inner-right",
|
|
4258
4390
|
tag: "label",
|
|
4259
4391
|
for: t.inputId,
|
|
4260
4392
|
onClick: n[9] ||= (e) => t.$emit("click:inner-icon-right", e)
|
|
4261
4393
|
}, {
|
|
4262
|
-
default:
|
|
4394
|
+
default: N(() => [d(O(r.innerIconRight), 1)]),
|
|
4263
4395
|
_: 1
|
|
4264
4396
|
}, 8, ["for"])) : s("", !0)]),
|
|
4265
|
-
p.hasLoading || r.showProgress && (p.uploadInProgress || p.uploadComplete) ? (b(), o(
|
|
4397
|
+
p.hasLoading || r.showProgress && (p.uploadInProgress || p.uploadComplete) ? (b(), o(g, {
|
|
4266
4398
|
key: 3,
|
|
4267
4399
|
class: "fill-width",
|
|
4268
4400
|
size: "2",
|
|
@@ -4274,7 +4406,7 @@ function un(t, n, r, a, u, p) {
|
|
|
4274
4406
|
key: 1,
|
|
4275
4407
|
class: "d-flex",
|
|
4276
4408
|
for: t.inputId
|
|
4277
|
-
}, [(b(!0), c(e, null,
|
|
4409
|
+
}, [(b(!0), c(e, null, w(u.inputFiles, (t, n) => (b(), c(e, null, [t.progress < 100 ? (b(), c("i", {
|
|
4278
4410
|
class: "w-icon wi-spinner w-icon--spin size--sm w-input__file-preview primary",
|
|
4279
4411
|
key: `${n}a`
|
|
4280
4412
|
})) : t.preview ? (b(), c("img", {
|
|
@@ -4282,15 +4414,15 @@ function un(t, n, r, a, u, p) {
|
|
|
4282
4414
|
key: `${n}b`,
|
|
4283
4415
|
src: t.preview,
|
|
4284
4416
|
alt: ""
|
|
4285
|
-
}, null, 8,
|
|
4286
|
-
class:
|
|
4417
|
+
}, null, 8, yn)) : (b(), c("i", {
|
|
4418
|
+
class: _(["w-icon w-input__file-preview primary size--md", r.preview && typeof r.preview == "string" ? r.preview : "wi-file"]),
|
|
4287
4419
|
key: `${n}c`
|
|
4288
|
-
}, null, 2))], 64))), 256))], 8,
|
|
4420
|
+
}, null, 2))], 64))), 256))], 8, vn)) : s("", !0),
|
|
4289
4421
|
r.labelPosition === "right" ? (b(), c(e, { key: 2 }, [t.$slots.default || r.label ? (b(), c("label", {
|
|
4290
4422
|
key: 0,
|
|
4291
|
-
class:
|
|
4423
|
+
class: _(["w-input__label w-input__label--right w-form-el-shakable", t.labelClasses]),
|
|
4292
4424
|
for: t.inputId
|
|
4293
|
-
}, [
|
|
4425
|
+
}, [T(t.$slots, "default", {}, () => [d(O(r.label), 1)])], 10, bn)) : s("", !0)], 64)) : s("", !0)
|
|
4294
4426
|
], 64))]),
|
|
4295
4427
|
_: 3
|
|
4296
4428
|
}, 16, [
|
|
@@ -4300,10 +4432,13 @@ function un(t, n, r, a, u, p) {
|
|
|
4300
4432
|
"style"
|
|
4301
4433
|
]);
|
|
4302
4434
|
}
|
|
4303
|
-
var
|
|
4435
|
+
var Sn = /* @__PURE__ */ J({
|
|
4304
4436
|
name: "w-input",
|
|
4305
|
-
mixins: [
|
|
4437
|
+
mixins: [$],
|
|
4306
4438
|
inheritAttrs: !1,
|
|
4439
|
+
setup() {
|
|
4440
|
+
return Q();
|
|
4441
|
+
},
|
|
4307
4442
|
props: {
|
|
4308
4443
|
modelValue: { default: "" },
|
|
4309
4444
|
type: {
|
|
@@ -4488,37 +4623,37 @@ var dn = /* @__PURE__ */ Y({
|
|
|
4488
4623
|
watch: { modelValue(e) {
|
|
4489
4624
|
this.inputValue = e, !e && e !== 0 && (this.isAutofilled = !1, this.inputFiles = []);
|
|
4490
4625
|
} }
|
|
4491
|
-
}, [["render",
|
|
4626
|
+
}, [["render", xn]]);
|
|
4492
4627
|
//#endregion
|
|
4493
4628
|
//#region src/wave-ui/components/w-list.vue?vue&type=template&lang.js
|
|
4494
|
-
function
|
|
4495
|
-
let f =
|
|
4496
|
-
return b(), c("ul", { class:
|
|
4497
|
-
class:
|
|
4629
|
+
function Cn(t, n, r, i, a, l) {
|
|
4630
|
+
let f = E("w-icon"), p = E("w-list", !0);
|
|
4631
|
+
return b(), c("ul", { class: _(["w-list", l.classes]) }, [(b(!0), c(e, null, w(t.listItems, (e, i) => (b(), c("li", {
|
|
4632
|
+
class: _(["w-list__item", { "w-list__item--parent": (e.children || []).length }]),
|
|
4498
4633
|
key: i
|
|
4499
4634
|
}, [
|
|
4500
4635
|
r.icon ? (b(), o(f, {
|
|
4501
4636
|
key: 0,
|
|
4502
4637
|
class: "w-list__item-bullet"
|
|
4503
4638
|
}, {
|
|
4504
|
-
default:
|
|
4639
|
+
default: N(() => [d(O(r.icon), 1)]),
|
|
4505
4640
|
_: 1
|
|
4506
4641
|
})) : s("", !0),
|
|
4507
4642
|
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({
|
|
4508
4643
|
key: 1,
|
|
4509
4644
|
class: "w-list__item-label"
|
|
4510
4645
|
}, { ref_for: !0 }, l.liLabelProps(e, i, e._selected)), {
|
|
4511
|
-
default:
|
|
4646
|
+
default: N(() => [t.$slots[`item.${i + 1}`] ? T(t.$slots, `item.${i + 1}`, {
|
|
4512
4647
|
key: 0,
|
|
4513
4648
|
item: l.cleanLi(e),
|
|
4514
4649
|
index: i + 1,
|
|
4515
4650
|
selected: e._selected
|
|
4516
|
-
}) : t.$slots.item ?
|
|
4651
|
+
}) : t.$slots.item ? T(t.$slots, "item", {
|
|
4517
4652
|
key: 1,
|
|
4518
4653
|
item: l.cleanLi(e),
|
|
4519
4654
|
index: i + 1,
|
|
4520
4655
|
selected: e._selected
|
|
4521
|
-
}) :
|
|
4656
|
+
}) : T(t.$slots, "default", {
|
|
4522
4657
|
key: 2,
|
|
4523
4658
|
item: l.cleanLi(e),
|
|
4524
4659
|
index: i + 1,
|
|
@@ -4541,7 +4676,7 @@ function fn(t, n, r, i, a, l) {
|
|
|
4541
4676
|
onItemSelect: n[3] ||= (e) => t.$emit("item-select", e)
|
|
4542
4677
|
}), u({ _: 2 }, [t.$slots.item ? {
|
|
4543
4678
|
name: "item",
|
|
4544
|
-
fn:
|
|
4679
|
+
fn: N(({ item: e, index: n, selected: r }) => [T(t.$slots, "item", {
|
|
4545
4680
|
item: l.cleanLi(e),
|
|
4546
4681
|
index: n,
|
|
4547
4682
|
selected: r
|
|
@@ -4549,7 +4684,7 @@ function fn(t, n, r, i, a, l) {
|
|
|
4549
4684
|
key: "0"
|
|
4550
4685
|
} : {
|
|
4551
4686
|
name: "default",
|
|
4552
|
-
fn:
|
|
4687
|
+
fn: N(({ item: e, index: n, selected: i }) => [T(t.$slots, "default", {
|
|
4553
4688
|
item: l.cleanLi(e),
|
|
4554
4689
|
index: n,
|
|
4555
4690
|
selected: i
|
|
@@ -4558,8 +4693,9 @@ function fn(t, n, r, i, a, l) {
|
|
|
4558
4693
|
}]), 1040, ["items", "depth"])) : s("", !0)
|
|
4559
4694
|
], 2))), 128))], 2);
|
|
4560
4695
|
}
|
|
4561
|
-
var
|
|
4696
|
+
var wn = /* @__PURE__ */ J({
|
|
4562
4697
|
name: "w-list",
|
|
4698
|
+
mixins: [Z],
|
|
4563
4699
|
setup() {
|
|
4564
4700
|
return { waveUiUseId: A() };
|
|
4565
4701
|
},
|
|
@@ -4663,6 +4799,7 @@ var pn = /* @__PURE__ */ Y({
|
|
|
4663
4799
|
},
|
|
4664
4800
|
liLabelClasses(e) {
|
|
4665
4801
|
return {
|
|
4802
|
+
"w-ripple": this.rippleActive && !e.disabled && (this.checklist || this.isSelectable || this.nav && e[this.itemRouteKey]),
|
|
4666
4803
|
"w-list__item-label--disabled": e.disabled || this.nav && !e[this.itemRouteKey] && !e.children,
|
|
4667
4804
|
"w-list__item-label--active": this.isSelectable && e._selected || null,
|
|
4668
4805
|
"w-list__item-label--focused": e._focused,
|
|
@@ -4680,7 +4817,7 @@ var pn = /* @__PURE__ */ Y({
|
|
|
4680
4817
|
this.$emit("item-click", t), this.$emit("item-select", t);
|
|
4681
4818
|
}
|
|
4682
4819
|
}, a = this.isSelectable && ((t) => {
|
|
4683
|
-
t.stopPropagation(), !e.disabled && this.selectItem(e);
|
|
4820
|
+
t.stopPropagation(), this.onRipple(t), !e.disabled && this.selectItem(e);
|
|
4684
4821
|
}), o = this.isSelectable && ((t) => {
|
|
4685
4822
|
!e.disabled && t.keyCode === 13 ? (this.selectItem(e), this.$emit("keydown:enter"), this.$emit("item-select", this.cleanLi(e))) : t.keyCode === 27 ? this.$emit("keydown:escape") : this.arrowsNavigation && [38, 40].includes(t.keyCode) && (t.preventDefault(), t.keyCode === 38 && this.focusPrevNextItem(e._index, !1), t.keyCode === 40 && this.focusPrevNextItem(e._index, !0));
|
|
4686
4823
|
}), s = {
|
|
@@ -4690,10 +4827,10 @@ var pn = /* @__PURE__ */ Y({
|
|
|
4690
4827
|
id: this.listId ? `${this.listId}_item-${t + 1}` : null,
|
|
4691
4828
|
role: "option"
|
|
4692
4829
|
};
|
|
4693
|
-
return this.checklist ? (s.modelValue = e._selected, s.color = e[this.itemColorKey] || this.color, s.round = this.roundCheckboxes, s.disabled = e.disabled, r || (s.label = e._label || null), s.onFocus = () => e._focused = !0, s.onBlur = () => e._focused = !1, s.onInput = (t) => this.selectItem(e, t), s.onClick = (e) => {
|
|
4830
|
+
return this.checklist ? (s.modelValue = e._selected, s.color = e[this.itemColorKey] || this.color, s.round = this.roundCheckboxes, s.disabled = e.disabled, r || (s.label = e._label || null), s.onFocus = () => e._focused = !0, s.onBlur = () => e._focused = !1, s.onInput = (t) => this.selectItem(e, t), s.onPointerdown = (e) => this.onRipple(e), s.onClick = (e) => {
|
|
4694
4831
|
let t = e.target.querySelector("input[type=\"checkbox\"]");
|
|
4695
4832
|
t && (t.focus(), t.click()), i();
|
|
4696
|
-
}) : this.nav ? (!e.disabled && e[this.itemRouteKey] && (s.onKeydown = o, s.onMousedown = a, this.$router ? (s.to = e[this.itemRouteKey], s.onClick = (t) => {
|
|
4833
|
+
}) : this.nav ? (!e.disabled && e[this.itemRouteKey] && (s.onKeydown = o, s.onMousedown = a, s.onPointerdown = (e) => this.onRipple(e), this.$router ? (s.to = e[this.itemRouteKey], s.onClick = (t) => {
|
|
4697
4834
|
t.preventDefault(), this.$router.push(e[this.itemRouteKey]), i();
|
|
4698
4835
|
}) : (s.href = e[this.itemRouteKey], s.onClick = i)), r || (s.innerHTML = e._label)) : this.isSelectable ? (e.disabled || (s.tabindex = 0), s.onClick = i, s.onKeydown = o, s.onMousedown = a, r || (s.innerHTML = e._label)) : r || (s.innerHTML = e._label), s;
|
|
4699
4836
|
},
|
|
@@ -4755,8 +4892,8 @@ var pn = /* @__PURE__ */ Y({
|
|
|
4755
4892
|
}
|
|
4756
4893
|
}
|
|
4757
4894
|
}
|
|
4758
|
-
}, [["render",
|
|
4759
|
-
function
|
|
4895
|
+
}, [["render", Cn]]), Tn = 4;
|
|
4896
|
+
function En(e) {
|
|
4760
4897
|
return {
|
|
4761
4898
|
top: "bottom",
|
|
4762
4899
|
bottom: "top",
|
|
@@ -4764,7 +4901,7 @@ function hn(e) {
|
|
|
4764
4901
|
right: "left"
|
|
4765
4902
|
}[e] || "bottom";
|
|
4766
4903
|
}
|
|
4767
|
-
var
|
|
4904
|
+
var Dn = {
|
|
4768
4905
|
props: {
|
|
4769
4906
|
appendTo: { type: [
|
|
4770
4907
|
String,
|
|
@@ -4901,8 +5038,8 @@ var gn = {
|
|
|
4901
5038
|
this.viewportPlacementOverride = null, this.detachableEl.style.display = "flex";
|
|
4902
5039
|
let e = window.getComputedStyle(this.detachableEl, null), t = this.detachableEl.offsetWidth, n = this.detachableEl.offsetHeight, r = this.position;
|
|
4903
5040
|
if (!this.noPosition) {
|
|
4904
|
-
let e =
|
|
4905
|
-
(r === "bottom" && o + l + n > a - e && o - n >= e || r === "top" && o - n < e && o + l + n <= a - e || r === "right" && s + c + t > i - e && s - t >= e || r === "left" && s - t < e && s + c + t <= i - e) && (r =
|
|
5041
|
+
let e = Tn, i = window.innerWidth, a = window.innerHeight, { top: o, left: s, width: c, height: l } = this.activatorEl.getBoundingClientRect();
|
|
5042
|
+
(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 = En(r), this.viewportPlacementOverride = r);
|
|
4906
5043
|
}
|
|
4907
5044
|
let i = this.getActivatorCoordinates(), { top: a, left: o } = this._applyDetachablePlacement(r, i, e);
|
|
4908
5045
|
this.detachableCoords = {
|
|
@@ -4966,16 +5103,16 @@ var gn = {
|
|
|
4966
5103
|
};
|
|
4967
5104
|
//#endregion
|
|
4968
5105
|
//#region src/wave-ui/components/w-menu.vue?vue&type=template&lang.js
|
|
4969
|
-
function
|
|
4970
|
-
let p =
|
|
5106
|
+
function On(t, n, i, a, l, d) {
|
|
5107
|
+
let p = E("w-card"), m = E("w-overlay");
|
|
4971
5108
|
return b(), c(e, null, [
|
|
4972
|
-
|
|
5109
|
+
T(t.$slots, "activator", { on: d.activatorEventHandlers }),
|
|
4973
5110
|
f(r, {
|
|
4974
5111
|
name: d.transitionName,
|
|
4975
5112
|
appear: "",
|
|
4976
5113
|
onAfterLeave: t.onAfterLeave
|
|
4977
5114
|
}, {
|
|
4978
|
-
default:
|
|
5115
|
+
default: N(() => [i.custom && t.detachableVisible ? (b(), c("div", h({
|
|
4979
5116
|
key: 0,
|
|
4980
5117
|
class: "w-menu",
|
|
4981
5118
|
ref: "detachable"
|
|
@@ -4985,7 +5122,7 @@ function _n(t, n, i, a, l, d) {
|
|
|
4985
5122
|
onMouseleave: n[2] ||= (e) => i.showOnHover && (t.hoveringMenu = !1, d.close()),
|
|
4986
5123
|
class: d.classes,
|
|
4987
5124
|
style: d.styles
|
|
4988
|
-
}), [
|
|
5125
|
+
}), [T(t.$slots, "default")], 16)) : t.detachableVisible ? (b(), o(p, h({
|
|
4989
5126
|
key: 1,
|
|
4990
5127
|
class: "w-menu",
|
|
4991
5128
|
ref: "detachable"
|
|
@@ -5001,15 +5138,15 @@ function _n(t, n, i, a, l, d) {
|
|
|
5001
5138
|
class: d.classes,
|
|
5002
5139
|
style: d.styles
|
|
5003
5140
|
}), u({
|
|
5004
|
-
default:
|
|
5141
|
+
default: N(() => [T(t.$slots, "default")]),
|
|
5005
5142
|
_: 2
|
|
5006
5143
|
}, [t.$slots.title ? {
|
|
5007
5144
|
name: "title",
|
|
5008
|
-
fn:
|
|
5145
|
+
fn: N(() => [T(t.$slots, "title")]),
|
|
5009
5146
|
key: "0"
|
|
5010
5147
|
} : void 0, t.$slots.actions ? {
|
|
5011
5148
|
name: "actions",
|
|
5012
|
-
fn:
|
|
5149
|
+
fn: N(() => [T(t.$slots, "actions")]),
|
|
5013
5150
|
key: "1"
|
|
5014
5151
|
} : void 0]), 1040, [
|
|
5015
5152
|
"tile",
|
|
@@ -5039,9 +5176,9 @@ function _n(t, n, i, a, l, d) {
|
|
|
5039
5176
|
])) : s("", !0)
|
|
5040
5177
|
], 64);
|
|
5041
5178
|
}
|
|
5042
|
-
var
|
|
5179
|
+
var kn = /* @__PURE__ */ J({
|
|
5043
5180
|
name: "w-menu",
|
|
5044
|
-
mixins: [
|
|
5181
|
+
mixins: [Dn],
|
|
5045
5182
|
inheritAttrs: !1,
|
|
5046
5183
|
props: {
|
|
5047
5184
|
modelValue: {},
|
|
@@ -5117,17 +5254,17 @@ var vn = /* @__PURE__ */ Y({
|
|
|
5117
5254
|
return this.maxWidth === "activator" ? this.activatorWidth ? `${this.activatorWidth}px` : 0 : isNaN(this.maxWidth) ? this.maxWidth : this.maxWidth ? `${this.maxWidth}px` : 0;
|
|
5118
5255
|
},
|
|
5119
5256
|
menuClasses() {
|
|
5120
|
-
return
|
|
5257
|
+
return X(this.menuClass);
|
|
5121
5258
|
},
|
|
5122
5259
|
titleClasses() {
|
|
5123
|
-
return
|
|
5260
|
+
return X(this.titleClass);
|
|
5124
5261
|
},
|
|
5125
5262
|
contentClasses() {
|
|
5126
|
-
return
|
|
5263
|
+
return X(this.contentClass);
|
|
5127
5264
|
},
|
|
5128
5265
|
overlayClasses() {
|
|
5129
5266
|
return {
|
|
5130
|
-
...
|
|
5267
|
+
...X(this.overlayClass),
|
|
5131
5268
|
"w-overlay--no-pointer-event": this.showOnHover
|
|
5132
5269
|
};
|
|
5133
5270
|
},
|
|
@@ -5186,32 +5323,32 @@ var vn = /* @__PURE__ */ Y({
|
|
|
5186
5323
|
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)));
|
|
5187
5324
|
}
|
|
5188
5325
|
}
|
|
5189
|
-
}, [["render",
|
|
5326
|
+
}, [["render", On]]);
|
|
5190
5327
|
//#endregion
|
|
5191
5328
|
//#region src/wave-ui/components/w-notification.vue?vue&type=template&lang.js
|
|
5192
|
-
function
|
|
5193
|
-
let u =
|
|
5329
|
+
function An(e, t, n, i, a, l) {
|
|
5330
|
+
let u = E("w-alert");
|
|
5194
5331
|
return b(), o(r, {
|
|
5195
5332
|
name: l.transitionName,
|
|
5196
5333
|
appear: ""
|
|
5197
5334
|
}, {
|
|
5198
|
-
default:
|
|
5335
|
+
default: N(() => [a.show ? (b(), c("div", {
|
|
5199
5336
|
key: 0,
|
|
5200
|
-
class:
|
|
5201
|
-
style:
|
|
5337
|
+
class: _(["w-notification", l.classes]),
|
|
5338
|
+
style: y(l.styles)
|
|
5202
5339
|
}, [f(u, h(l.alertProps, {
|
|
5203
5340
|
class: l.alertClasses,
|
|
5204
5341
|
"onUpdate:modelValue": t[0] ||= (t) => {
|
|
5205
5342
|
e.$emit("update:modelValue", !1), e.$emit("input", !1);
|
|
5206
5343
|
}
|
|
5207
5344
|
}), {
|
|
5208
|
-
default:
|
|
5345
|
+
default: N(() => [T(e.$slots, "default")]),
|
|
5209
5346
|
_: 3
|
|
5210
5347
|
}, 16, ["class"])], 6)) : s("", !0)]),
|
|
5211
5348
|
_: 3
|
|
5212
5349
|
}, 8, ["name"]);
|
|
5213
5350
|
}
|
|
5214
|
-
var
|
|
5351
|
+
var jn = /* @__PURE__ */ J({
|
|
5215
5352
|
name: "w-notification",
|
|
5216
5353
|
props: {
|
|
5217
5354
|
modelValue: { default: !0 },
|
|
@@ -5341,29 +5478,29 @@ var bn = /* @__PURE__ */ Y({
|
|
|
5341
5478
|
watch: { modelValue(e) {
|
|
5342
5479
|
clearTimeout(this.timeoutId), this.show = e, e && this.timeoutVal && this.countdown();
|
|
5343
5480
|
} }
|
|
5344
|
-
}, [["render",
|
|
5481
|
+
}, [["render", An]]);
|
|
5345
5482
|
//#endregion
|
|
5346
5483
|
//#region src/wave-ui/components/w-overlay.vue?vue&type=template&lang.js
|
|
5347
|
-
function
|
|
5348
|
-
let u =
|
|
5484
|
+
function Mn(e, t, n, i, a, l) {
|
|
5485
|
+
let u = ne("focus");
|
|
5349
5486
|
return b(), o(r, {
|
|
5350
5487
|
name: "fade",
|
|
5351
5488
|
appear: "",
|
|
5352
5489
|
onAfterLeave: l.onClose
|
|
5353
5490
|
}, {
|
|
5354
|
-
default:
|
|
5491
|
+
default: N(() => [n.modelValue ? P((b(), c("div", {
|
|
5355
5492
|
key: 0,
|
|
5356
|
-
class:
|
|
5493
|
+
class: _(["w-overlay", l.classes]),
|
|
5357
5494
|
ref: "overlay",
|
|
5358
|
-
style:
|
|
5359
|
-
onKeydown: t[0] ||= I(
|
|
5495
|
+
style: y(n.modelValue && l.styles || null),
|
|
5496
|
+
onKeydown: t[0] ||= F(I((...e) => l.onClick && l.onClick(...e), ["stop"]), ["escape"]),
|
|
5360
5497
|
onClick: t[1] ||= (...e) => l.onClick && l.onClick(...e),
|
|
5361
5498
|
tabindex: "0"
|
|
5362
|
-
}, [
|
|
5499
|
+
}, [T(e.$slots, "default")], 38)), [[ae, e.showOverlay], [u]]) : s("", !0)]),
|
|
5363
5500
|
_: 3
|
|
5364
5501
|
}, 8, ["onAfterLeave"]);
|
|
5365
5502
|
}
|
|
5366
|
-
var
|
|
5503
|
+
var Nn = /* @__PURE__ */ J({
|
|
5367
5504
|
name: "w-overlay",
|
|
5368
5505
|
props: {
|
|
5369
5506
|
modelValue: {},
|
|
@@ -5427,22 +5564,22 @@ var Sn = /* @__PURE__ */ Y({
|
|
|
5427
5564
|
watch: { modelValue(e) {
|
|
5428
5565
|
e && (this.showOverlay = !0);
|
|
5429
5566
|
} }
|
|
5430
|
-
}, [["render",
|
|
5431
|
-
function
|
|
5432
|
-
return b(), c("div",
|
|
5567
|
+
}, [["render", Mn]]), Pn = { class: "w-parallax" };
|
|
5568
|
+
function Fn(e, t, n, r, i, a) {
|
|
5569
|
+
return b(), c("div", Pn);
|
|
5433
5570
|
}
|
|
5434
|
-
var
|
|
5571
|
+
var In = /* @__PURE__ */ J({
|
|
5435
5572
|
name: "w-parallax",
|
|
5436
5573
|
props: {},
|
|
5437
5574
|
emits: [],
|
|
5438
5575
|
data: () => ({})
|
|
5439
|
-
}, [["render",
|
|
5576
|
+
}, [["render", Fn]]), Ln = ["viewBox"], Rn = [
|
|
5440
5577
|
"cx",
|
|
5441
5578
|
"cy",
|
|
5442
5579
|
"r",
|
|
5443
5580
|
"stroke-dasharray",
|
|
5444
5581
|
"stroke-width"
|
|
5445
|
-
],
|
|
5582
|
+
], zn = [
|
|
5446
5583
|
"cx",
|
|
5447
5584
|
"cy",
|
|
5448
5585
|
"r",
|
|
@@ -5450,23 +5587,23 @@ var Tn = /* @__PURE__ */ Y({
|
|
|
5450
5587
|
"stroke-linecap",
|
|
5451
5588
|
"stroke-dasharray"
|
|
5452
5589
|
];
|
|
5453
|
-
function
|
|
5590
|
+
function Bn(e, t, n, r, i, a) {
|
|
5454
5591
|
return b(), c("div", {
|
|
5455
|
-
class:
|
|
5456
|
-
style:
|
|
5592
|
+
class: _(["w-progress", a.classes]),
|
|
5593
|
+
style: y(a.styles)
|
|
5457
5594
|
}, [n.circle ? (b(), c("svg", {
|
|
5458
5595
|
key: 1,
|
|
5459
5596
|
viewBox: `${a.circleCenter / 2} ${a.circleCenter / 2} ${a.circleCenter} ${a.circleCenter}`
|
|
5460
5597
|
}, [n.bgColor || this.progressValue > -1 ? (b(), c("circle", {
|
|
5461
5598
|
key: 0,
|
|
5462
|
-
class:
|
|
5599
|
+
class: _(["bg", n.bgColor || null]),
|
|
5463
5600
|
cx: a.circleCenter,
|
|
5464
5601
|
cy: a.circleCenter,
|
|
5465
5602
|
r: e.circleRadius,
|
|
5466
5603
|
fill: "transparent",
|
|
5467
5604
|
"stroke-dasharray": e.circleCircumference,
|
|
5468
5605
|
"stroke-width": n.stroke
|
|
5469
|
-
}, null, 10,
|
|
5606
|
+
}, null, 10, Rn)) : s("", !0), l("circle", {
|
|
5470
5607
|
class: "w-progress__progress",
|
|
5471
5608
|
cx: a.circleCenter,
|
|
5472
5609
|
cy: a.circleCenter,
|
|
@@ -5475,19 +5612,19 @@ function kn(e, t, n, r, i, a) {
|
|
|
5475
5612
|
"stroke-width": n.stroke,
|
|
5476
5613
|
"stroke-linecap": n.roundCap && "round",
|
|
5477
5614
|
"stroke-dasharray": e.circleCircumference,
|
|
5478
|
-
style:
|
|
5479
|
-
}, null, 12,
|
|
5615
|
+
style: y(`stroke-dashoffset: ${(1 - a.progressValue / 100) * e.circleCircumference}`)
|
|
5616
|
+
}, null, 12, zn)], 8, Ln)) : (b(), c("div", {
|
|
5480
5617
|
key: 0,
|
|
5481
|
-
class:
|
|
5482
|
-
style:
|
|
5618
|
+
class: _(["w-progress__progress", { full: a.progressValue === 100 }]),
|
|
5619
|
+
style: y(`width: ${a.progressValue}%`)
|
|
5483
5620
|
}, null, 6)), n.label || e.$slots.default ? (b(), c("div", {
|
|
5484
5621
|
key: 2,
|
|
5485
|
-
class:
|
|
5486
|
-
}, [
|
|
5622
|
+
class: _(["w-progress__label", n.labelColor || !1])
|
|
5623
|
+
}, [T(e.$slots, "default", {}, () => [d(O(Math.round(a.progressValue)) + O(n.circle ? "" : "%"), 1)])], 2)) : s("", !0)], 6);
|
|
5487
5624
|
}
|
|
5488
5625
|
//#endregion
|
|
5489
5626
|
//#region src/wave-ui/components/w-progress.vue
|
|
5490
|
-
var
|
|
5627
|
+
var Vn = 40, Hn = Vn / 2, Un = Math.round(Vn * 3.14 * 100) / 100, Wn = /* @__PURE__ */ J({
|
|
5491
5628
|
name: "w-progress",
|
|
5492
5629
|
props: {
|
|
5493
5630
|
modelValue: {
|
|
@@ -5529,16 +5666,16 @@ var $ = 40, An = $ / 2, jn = Math.round($ * 3.14 * 100) / 100, Mn = /* @__PURE__
|
|
|
5529
5666
|
},
|
|
5530
5667
|
emits: [],
|
|
5531
5668
|
data: () => ({
|
|
5532
|
-
circleSize:
|
|
5533
|
-
circleRadius:
|
|
5534
|
-
circleCircumference:
|
|
5669
|
+
circleSize: Vn,
|
|
5670
|
+
circleRadius: Hn,
|
|
5671
|
+
circleCircumference: Un
|
|
5535
5672
|
}),
|
|
5536
5673
|
computed: {
|
|
5537
5674
|
progressValue() {
|
|
5538
5675
|
return parseFloat(this.modelValue);
|
|
5539
5676
|
},
|
|
5540
5677
|
circleCenter() {
|
|
5541
|
-
return
|
|
5678
|
+
return Vn + this.stroke;
|
|
5542
5679
|
},
|
|
5543
5680
|
forcedSize() {
|
|
5544
5681
|
return this.size && (isNaN(this.size) ? this.size : `${this.size}px`);
|
|
@@ -5568,7 +5705,7 @@ var $ = 40, An = $ / 2, jn = Math.round($ * 3.14 * 100) / 100, Mn = /* @__PURE__
|
|
|
5568
5705
|
return { [this.circle ? "width" : "height"]: this.forcedSize || null };
|
|
5569
5706
|
}
|
|
5570
5707
|
}
|
|
5571
|
-
}, [["render",
|
|
5708
|
+
}, [["render", Bn]]), Gn = [
|
|
5572
5709
|
"id",
|
|
5573
5710
|
"name",
|
|
5574
5711
|
"checked",
|
|
@@ -5576,8 +5713,8 @@ var $ = 40, An = $ / 2, jn = Math.round($ * 3.14 * 100) / 100, Mn = /* @__PURE__
|
|
|
5576
5713
|
"required",
|
|
5577
5714
|
"tabindex",
|
|
5578
5715
|
"aria-checked"
|
|
5579
|
-
],
|
|
5580
|
-
function
|
|
5716
|
+
], Kn = ["for"], qn = ["for", "innerHTML"], Jn = ["for"], Yn = ["for", "innerHTML"];
|
|
5717
|
+
function Xn(t, n, r, i, a, u) {
|
|
5581
5718
|
return b(), o(D(t.formRegister && !u.wRadios ? "w-form-element" : "div"), h({ ref: "formEl" }, t.formRegister && {
|
|
5582
5719
|
validators: t.validators,
|
|
5583
5720
|
inputValue: t.inputValue,
|
|
@@ -5592,7 +5729,7 @@ function Rn(t, n, r, i, a, u) {
|
|
|
5592
5729
|
},
|
|
5593
5730
|
class: u.classes
|
|
5594
5731
|
}), {
|
|
5595
|
-
default:
|
|
5732
|
+
default: N(() => [
|
|
5596
5733
|
l("input", {
|
|
5597
5734
|
ref: "input",
|
|
5598
5735
|
id: t.inputId,
|
|
@@ -5606,40 +5743,43 @@ function Rn(t, n, r, i, a, u) {
|
|
|
5606
5743
|
onChange: n[1] ||= (e) => u.onInput(e),
|
|
5607
5744
|
"aria-checked": t.inputValue || "false",
|
|
5608
5745
|
role: "radio"
|
|
5609
|
-
}, null, 40,
|
|
5746
|
+
}, null, 40, Gn),
|
|
5610
5747
|
u.hasLabel && r.labelOnLeft ? (b(), c(e, { key: 0 }, [t.$slots.default ? (b(), c("label", {
|
|
5611
5748
|
key: 0,
|
|
5612
|
-
class:
|
|
5749
|
+
class: _(["w-radio__label w-form-el-shakable pr2", t.labelClasses]),
|
|
5613
5750
|
for: t.inputId
|
|
5614
|
-
}, [
|
|
5751
|
+
}, [T(t.$slots, "default", {}, () => [d(O(r.label), 1)])], 10, Kn)) : r.label ? (b(), c("label", {
|
|
5615
5752
|
key: 1,
|
|
5616
|
-
class:
|
|
5753
|
+
class: _(["w-radio__label w-form-el-shakable pr2", t.labelClasses]),
|
|
5617
5754
|
for: t.inputId,
|
|
5618
5755
|
innerHTML: r.label
|
|
5619
|
-
}, null, 10,
|
|
5756
|
+
}, null, 10, qn)) : s("", !0)], 64)) : s("", !0),
|
|
5620
5757
|
l("div", {
|
|
5621
|
-
class:
|
|
5758
|
+
class: _(["w-radio__input", this.color]),
|
|
5622
5759
|
onClick: n[2] ||= (e) => {
|
|
5623
5760
|
t.$refs.input.focus(), t.$refs.input.click();
|
|
5624
5761
|
}
|
|
5625
5762
|
}, null, 2),
|
|
5626
5763
|
u.hasLabel && !r.labelOnLeft ? (b(), c(e, { key: 1 }, [t.$slots.default ? (b(), c("label", {
|
|
5627
5764
|
key: 0,
|
|
5628
|
-
class:
|
|
5765
|
+
class: _(["w-radio__label w-form-el-shakable pl2", t.labelClasses]),
|
|
5629
5766
|
for: t.inputId
|
|
5630
|
-
}, [
|
|
5767
|
+
}, [T(t.$slots, "default", {}, () => [d(O(r.label), 1)])], 10, Jn)) : r.label ? (b(), c("label", {
|
|
5631
5768
|
key: 1,
|
|
5632
|
-
class:
|
|
5769
|
+
class: _(["w-radio__label w-form-el-shakable pl2", t.labelClasses]),
|
|
5633
5770
|
for: t.inputId,
|
|
5634
5771
|
innerHTML: r.label
|
|
5635
|
-
}, null, 10,
|
|
5772
|
+
}, null, 10, Yn)) : s("", !0)], 64)) : s("", !0)
|
|
5636
5773
|
]),
|
|
5637
5774
|
_: 3
|
|
5638
5775
|
}, 16, ["valid", "class"]);
|
|
5639
5776
|
}
|
|
5640
|
-
var
|
|
5777
|
+
var Zn = /* @__PURE__ */ J({
|
|
5641
5778
|
name: "w-radio",
|
|
5642
|
-
mixins: [
|
|
5779
|
+
mixins: [$],
|
|
5780
|
+
setup() {
|
|
5781
|
+
return Q();
|
|
5782
|
+
},
|
|
5643
5783
|
inject: { wRadios: { default: null } },
|
|
5644
5784
|
props: {
|
|
5645
5785
|
modelValue: { default: !1 },
|
|
@@ -5705,9 +5845,9 @@ var zn = /* @__PURE__ */ Y({
|
|
|
5705
5845
|
watch: { modelValue() {
|
|
5706
5846
|
this.toggleFromOutside();
|
|
5707
5847
|
} }
|
|
5708
|
-
}, [["render",
|
|
5709
|
-
function
|
|
5710
|
-
let u =
|
|
5848
|
+
}, [["render", Xn]]), Qn = ["innerHTML"];
|
|
5849
|
+
function $n(t, n, r, i, a, l) {
|
|
5850
|
+
let u = E("w-radio");
|
|
5711
5851
|
return b(), o(D(t.formRegister ? "w-form-element" : "div"), h({ ref: "formEl" }, t.formRegister && {
|
|
5712
5852
|
validators: t.validators,
|
|
5713
5853
|
inputValue: t.inputValue,
|
|
@@ -5723,7 +5863,7 @@ function Vn(t, n, r, i, a, l) {
|
|
|
5723
5863
|
wrap: r.inline,
|
|
5724
5864
|
class: l.classes
|
|
5725
5865
|
}), {
|
|
5726
|
-
default:
|
|
5866
|
+
default: N(() => [(b(!0), c(e, null, w(l.radioItems, (e, i) => (b(), o(u, h({
|
|
5727
5867
|
key: i,
|
|
5728
5868
|
"model-value": e.value === r.modelValue,
|
|
5729
5869
|
"onUpdate:modelValue": (t) => l.onInput(e),
|
|
@@ -5739,7 +5879,7 @@ function Vn(t, n, r, i, a, l) {
|
|
|
5739
5879
|
readonly: t.isReadonly || null,
|
|
5740
5880
|
class: { mt1: !r.inline && i }
|
|
5741
5881
|
}), {
|
|
5742
|
-
default:
|
|
5882
|
+
default: N(() => [t.$slots[`item.${i + 1}`] || t.$slots.item ? T(t.$slots, t.$slots[`item.${i + 1}`] ? `item.${i + 1}` : "item", {
|
|
5743
5883
|
key: 0,
|
|
5744
5884
|
item: l.getOriginalItem(e),
|
|
5745
5885
|
index: i + 1,
|
|
@@ -5748,7 +5888,7 @@ function Vn(t, n, r, i, a, l) {
|
|
|
5748
5888
|
}) : e.label ? (b(), c("div", {
|
|
5749
5889
|
key: 1,
|
|
5750
5890
|
innerHTML: e.label
|
|
5751
|
-
}, null, 8,
|
|
5891
|
+
}, null, 8, Qn)) : s("", !0)]),
|
|
5752
5892
|
_: 2
|
|
5753
5893
|
}, 1040, [
|
|
5754
5894
|
"model-value",
|
|
@@ -5766,9 +5906,12 @@ function Vn(t, n, r, i, a, l) {
|
|
|
5766
5906
|
"class"
|
|
5767
5907
|
]);
|
|
5768
5908
|
}
|
|
5769
|
-
var
|
|
5909
|
+
var er = /* @__PURE__ */ J({
|
|
5770
5910
|
name: "w-radios",
|
|
5771
|
-
mixins: [
|
|
5911
|
+
mixins: [$],
|
|
5912
|
+
setup() {
|
|
5913
|
+
return Q();
|
|
5914
|
+
},
|
|
5772
5915
|
props: {
|
|
5773
5916
|
items: {
|
|
5774
5917
|
type: Array,
|
|
@@ -5833,17 +5976,17 @@ var Hn = /* @__PURE__ */ Y({
|
|
|
5833
5976
|
return this.items[e._index];
|
|
5834
5977
|
}
|
|
5835
5978
|
}
|
|
5836
|
-
}, [["render",
|
|
5979
|
+
}, [["render", $n]]), tr = [
|
|
5837
5980
|
"id",
|
|
5838
5981
|
"name",
|
|
5839
5982
|
"value"
|
|
5840
|
-
],
|
|
5983
|
+
], nr = [
|
|
5841
5984
|
"disabled",
|
|
5842
5985
|
"onMouseenter",
|
|
5843
5986
|
"onClick",
|
|
5844
5987
|
"tabindex"
|
|
5845
5988
|
];
|
|
5846
|
-
function
|
|
5989
|
+
function rr(t, n, r, i, a, u) {
|
|
5847
5990
|
return b(), o(D(t.formRegister ? "w-form-element" : "div"), h({ ref: "formEl" }, t.formRegister && {
|
|
5848
5991
|
validators: t.validators,
|
|
5849
5992
|
inputValue: a.rating,
|
|
@@ -5858,16 +6001,16 @@ function Gn(t, n, r, i, a, u) {
|
|
|
5858
6001
|
},
|
|
5859
6002
|
class: u.classes
|
|
5860
6003
|
}), {
|
|
5861
|
-
default:
|
|
6004
|
+
default: N(() => [l("input", {
|
|
5862
6005
|
id: t.inputId,
|
|
5863
6006
|
name: t.inputName,
|
|
5864
6007
|
type: "hidden",
|
|
5865
6008
|
value: a.rating
|
|
5866
|
-
}, null, 8,
|
|
6009
|
+
}, null, 8, tr), (b(!0), c(e, null, w(r.max, (i) => (b(), c(e, { key: i }, [t.$slots.item ? T(t.$slots, "item", {
|
|
5867
6010
|
key: 0,
|
|
5868
6011
|
index: i + 1
|
|
5869
6012
|
}) : s("", !0), l("button", {
|
|
5870
|
-
class:
|
|
6013
|
+
class: _(["w-rating__button", u.buttonClasses(i)]),
|
|
5871
6014
|
disabled: t.isDisabled || t.isReadonly,
|
|
5872
6015
|
onMouseenter: (e) => a.hover = i,
|
|
5873
6016
|
onMouseleave: n[0] ||= (e) => a.hover = 0,
|
|
@@ -5879,17 +6022,20 @@ function Gn(t, n, r, i, a, u) {
|
|
|
5879
6022
|
tabindex: i === 1 ? 0 : -1
|
|
5880
6023
|
}, [i - 1 === ~~a.rating && a.rating - ~~a.rating ? (b(), c("i", {
|
|
5881
6024
|
key: 0,
|
|
5882
|
-
class:
|
|
6025
|
+
class: _(["w-icon", `${r.icon} ${r.color}`]),
|
|
5883
6026
|
role: "icon",
|
|
5884
6027
|
"aria-hidden": "true",
|
|
5885
|
-
style:
|
|
5886
|
-
}, null, 6)) : s("", !0)], 42,
|
|
6028
|
+
style: y(u.halfStarStyle)
|
|
6029
|
+
}, null, 6)) : s("", !0)], 42, nr)], 64))), 128))]),
|
|
5887
6030
|
_: 3
|
|
5888
6031
|
}, 16, ["valid", "class"]);
|
|
5889
6032
|
}
|
|
5890
|
-
var
|
|
6033
|
+
var ir = /* @__PURE__ */ J({
|
|
5891
6034
|
name: "w-rating",
|
|
5892
|
-
mixins: [
|
|
6035
|
+
mixins: [$],
|
|
6036
|
+
setup() {
|
|
6037
|
+
return Q();
|
|
6038
|
+
},
|
|
5893
6039
|
props: {
|
|
5894
6040
|
modelValue: {},
|
|
5895
6041
|
max: {
|
|
@@ -5992,7 +6138,14 @@ var Kn = /* @__PURE__ */ Y({
|
|
|
5992
6138
|
watch: { value(e) {
|
|
5993
6139
|
this.rating = parseFloat(e);
|
|
5994
6140
|
} }
|
|
5995
|
-
}, [["render",
|
|
6141
|
+
}, [["render", rr]]), ar = ["tabindex", "aria-disabled"], or = ["id"], sr = [
|
|
6142
|
+
"aria-controls",
|
|
6143
|
+
"aria-orientation",
|
|
6144
|
+
"aria-valuemax",
|
|
6145
|
+
"aria-valuenow",
|
|
6146
|
+
"aria-disabled",
|
|
6147
|
+
"aria-label"
|
|
6148
|
+
], cr = 120, lr = 450, ur = /* @__PURE__ */ Object.assign({ name: "WScrollable" }, {
|
|
5996
6149
|
__name: "w-scrollable",
|
|
5997
6150
|
props: {
|
|
5998
6151
|
color: {
|
|
@@ -6001,18 +6154,56 @@ var Kn = /* @__PURE__ */ Y({
|
|
|
6001
6154
|
},
|
|
6002
6155
|
bgColor: { type: String },
|
|
6003
6156
|
width: { type: [Number, String] },
|
|
6004
|
-
height: { type: [Number, String] }
|
|
6157
|
+
height: { type: [Number, String] },
|
|
6158
|
+
contentClass: {
|
|
6159
|
+
type: [
|
|
6160
|
+
String,
|
|
6161
|
+
Object,
|
|
6162
|
+
Array
|
|
6163
|
+
],
|
|
6164
|
+
default: void 0
|
|
6165
|
+
},
|
|
6166
|
+
disabled: {
|
|
6167
|
+
type: Boolean,
|
|
6168
|
+
default: !1
|
|
6169
|
+
},
|
|
6170
|
+
tabindex: {
|
|
6171
|
+
type: [Number, String],
|
|
6172
|
+
default: 0
|
|
6173
|
+
},
|
|
6174
|
+
wheelStep: {
|
|
6175
|
+
type: Number,
|
|
6176
|
+
default: 40
|
|
6177
|
+
},
|
|
6178
|
+
horizontal: {
|
|
6179
|
+
type: Boolean,
|
|
6180
|
+
default: !1
|
|
6181
|
+
},
|
|
6182
|
+
scrollbar: {
|
|
6183
|
+
type: [Number, String],
|
|
6184
|
+
default: 1,
|
|
6185
|
+
validator: (e) => e === 0 || e === 1 || e === "0" || e === "1" || e === "hover" || e === "interaction"
|
|
6186
|
+
},
|
|
6187
|
+
scrollPosition: {
|
|
6188
|
+
type: [Number, Object],
|
|
6189
|
+
default: null,
|
|
6190
|
+
validator: (e) => e == null || typeof e == "number" && !Number.isNaN(e) || typeof e == "object" && !!e && !Array.isArray(e)
|
|
6191
|
+
}
|
|
6005
6192
|
},
|
|
6006
|
-
emits: [
|
|
6193
|
+
emits: [
|
|
6194
|
+
"scroll",
|
|
6195
|
+
"scroll-start",
|
|
6196
|
+
"scroll-end"
|
|
6197
|
+
],
|
|
6007
6198
|
setup(e, { expose: t, emit: n }) {
|
|
6008
|
-
let r = e, i = {
|
|
6199
|
+
let r = e, i = n, o = {
|
|
6009
6200
|
h: {
|
|
6010
6201
|
direction: "horizontal",
|
|
6011
6202
|
topOrLeft: "left",
|
|
6012
6203
|
size: "width",
|
|
6013
6204
|
offsetSize: "offsetWidth",
|
|
6014
|
-
maxSize: "max-width",
|
|
6015
6205
|
scrollSize: "scrollWidth",
|
|
6206
|
+
clientSize: "clientWidth",
|
|
6016
6207
|
clientXorY: "clientX",
|
|
6017
6208
|
deltaXorY: "deltaX",
|
|
6018
6209
|
scrollTopOrLeft: "scrollLeft"
|
|
@@ -6022,94 +6213,378 @@ var Kn = /* @__PURE__ */ Y({
|
|
|
6022
6213
|
topOrLeft: "top",
|
|
6023
6214
|
size: "height",
|
|
6024
6215
|
offsetSize: "offsetHeight",
|
|
6025
|
-
maxSize: "max-height",
|
|
6026
6216
|
scrollSize: "scrollHeight",
|
|
6217
|
+
clientSize: "clientHeight",
|
|
6027
6218
|
clientXorY: "clientY",
|
|
6028
6219
|
deltaXorY: "deltaY",
|
|
6029
6220
|
scrollTopOrLeft: "scrollTop"
|
|
6030
6221
|
}
|
|
6031
|
-
},
|
|
6032
|
-
|
|
6033
|
-
|
|
6034
|
-
|
|
6035
|
-
}),
|
|
6036
|
-
|
|
6037
|
-
|
|
6038
|
-
}
|
|
6039
|
-
|
|
6040
|
-
|
|
6041
|
-
|
|
6042
|
-
|
|
6043
|
-
|
|
6222
|
+
}, s = A(), u = ie(), d = S(null), f = S(null), p = S(null), m = S(null), v = S(!1), x = S(!1), C = S(!1), w = S(0), E = S(0), ne = S("native"), D = S(!1), O = S(!1), k = S({
|
|
6223
|
+
offset: 0,
|
|
6224
|
+
trackStart: 0,
|
|
6225
|
+
trackSize: 0
|
|
6226
|
+
}), j = S(null), M = null, N = null, F = null, se = "", L = a(() => r.horizontal), R = a(() => o[L.value ? "h" : "v"]), ce = a(() => r.disabled ? -1 : r.tabindex), z = a(() => {
|
|
6227
|
+
let e = r.scrollbar;
|
|
6228
|
+
return e === 0 || e === "0" ? "off" : e === 1 || e === "1" ? "always" : e === "hover" ? "hover" : e === "interaction" ? "interaction" : "always";
|
|
6229
|
+
}), B = a(() => z.value !== "off"), le = a(() => ({
|
|
6230
|
+
[`w-scrollable--${R.value.direction}`]: !0,
|
|
6231
|
+
"w-scrollable--disabled": r.disabled,
|
|
6232
|
+
"w-scrollable--dragging": C.value,
|
|
6233
|
+
"w-scrollable--scrolling": x.value || C.value
|
|
6234
|
+
})), ue = a(() => ({
|
|
6235
|
+
[`w-scrollable__scrollbar--${R.value.direction}`]: !0,
|
|
6236
|
+
"w-scrollable__scrollbar--hidden": !ve.value,
|
|
6237
|
+
[`${r.bgColor}--bg`]: !!r.bgColor
|
|
6238
|
+
})), de = a(() => X(r.contentClass ?? {})), V = a(() => (E.value, f.value ? f.value[R.value.scrollSize] > f.value[R.value.clientSize] + 1 : !1)), H = a(() => (E.value, f.value ? Math.max(0, f.value[R.value.scrollSize] - f.value[R.value.clientSize]) : 0)), fe = a(() => L.value ? "horizontal" : "vertical"), pe = a(() => V.value ? Math.max(0, Math.round(H.value)) : 0), me = a(() => {
|
|
6239
|
+
if (!f.value) return 0;
|
|
6240
|
+
let e = Math.round(f.value[R.value.scrollTopOrLeft]), t = pe.value;
|
|
6241
|
+
return t ? Math.min(t, Math.max(0, e)) : 0;
|
|
6242
|
+
}), he = a(() => {
|
|
6243
|
+
let e = u["aria-label"] ?? u.ariaLabel;
|
|
6244
|
+
return typeof e == "string" && e ? e : "";
|
|
6245
|
+
}), ge = a(() => he.value ? `${he.value}, scroll position` : L.value ? "Horizontal scrollbar" : "Vertical scrollbar"), _e = a(() => {
|
|
6246
|
+
if (E.value, !f.value || !V.value) return 100;
|
|
6247
|
+
let e = f.value[R.value.clientSize], t = f.value[R.value.scrollSize];
|
|
6248
|
+
return Math.max(8, Math.min(100, e * 100 / t));
|
|
6249
|
+
}), ve = a(() => {
|
|
6250
|
+
let e = z.value;
|
|
6251
|
+
return !V.value || e === "off" ? !1 : e === "always" ? !0 : e === "hover" ? v.value || C.value || x.value : e === "interaction" ? C.value || x.value : !0;
|
|
6252
|
+
});
|
|
6253
|
+
function ye(e) {
|
|
6254
|
+
if (!(e == null || e === "")) return typeof e == "number" ? `${e}px` : typeof e == "string" && /^-?\d+(\.\d+)?$/.test(e.trim()) ? `${e.trim()}px` : e;
|
|
6255
|
+
}
|
|
6256
|
+
let be = a(() => ({
|
|
6257
|
+
"max-width": ye(r.width),
|
|
6258
|
+
"max-height": ye(r.height)
|
|
6259
|
+
})), U = a(() => {
|
|
6260
|
+
let e = Math.max(0, 100 - _e.value), t = W(w.value / 100 * e, 0, e);
|
|
6261
|
+
return {
|
|
6262
|
+
[R.value.size]: `${_e.value}%`,
|
|
6263
|
+
[R.value.topOrLeft]: `${t}%`
|
|
6044
6264
|
};
|
|
6045
6265
|
});
|
|
6046
|
-
function
|
|
6047
|
-
|
|
6048
|
-
|
|
6049
|
-
|
|
6050
|
-
|
|
6051
|
-
|
|
6052
|
-
|
|
6053
|
-
|
|
6054
|
-
|
|
6055
|
-
|
|
6056
|
-
|
|
6057
|
-
|
|
6058
|
-
|
|
6059
|
-
|
|
6060
|
-
|
|
6061
|
-
|
|
6062
|
-
|
|
6063
|
-
|
|
6064
|
-
|
|
6065
|
-
|
|
6066
|
-
|
|
6067
|
-
|
|
6068
|
-
|
|
6069
|
-
|
|
6070
|
-
|
|
6071
|
-
|
|
6072
|
-
|
|
6073
|
-
|
|
6074
|
-
|
|
6075
|
-
|
|
6076
|
-
|
|
6077
|
-
|
|
6078
|
-
|
|
6079
|
-
|
|
6080
|
-
|
|
6081
|
-
|
|
6082
|
-
|
|
6083
|
-
|
|
6084
|
-
|
|
6085
|
-
|
|
6086
|
-
|
|
6087
|
-
|
|
6088
|
-
|
|
6266
|
+
function W(e, t, n) {
|
|
6267
|
+
return Math.max(t, Math.min(e, n));
|
|
6268
|
+
}
|
|
6269
|
+
function xe(e) {
|
|
6270
|
+
if (!e || e === d.value) return !1;
|
|
6271
|
+
let t = e.tagName;
|
|
6272
|
+
return t ? e.isContentEditable ? !0 : [
|
|
6273
|
+
"INPUT",
|
|
6274
|
+
"TEXTAREA",
|
|
6275
|
+
"SELECT",
|
|
6276
|
+
"BUTTON"
|
|
6277
|
+
].includes(t) : !1;
|
|
6278
|
+
}
|
|
6279
|
+
function Se(e = "native") {
|
|
6280
|
+
if (!f.value) return {
|
|
6281
|
+
top: 0,
|
|
6282
|
+
left: 0,
|
|
6283
|
+
maxTop: 0,
|
|
6284
|
+
maxLeft: 0,
|
|
6285
|
+
topPercent: 0,
|
|
6286
|
+
leftPercent: 0,
|
|
6287
|
+
source: e
|
|
6288
|
+
};
|
|
6289
|
+
let t = f.value.scrollTop, n = f.value.scrollLeft, r = Math.max(0, f.value.scrollHeight - f.value.clientHeight), i = Math.max(0, f.value.scrollWidth - f.value.clientWidth);
|
|
6290
|
+
return {
|
|
6291
|
+
top: t,
|
|
6292
|
+
left: n,
|
|
6293
|
+
maxTop: r,
|
|
6294
|
+
maxLeft: i,
|
|
6295
|
+
topPercent: r ? t / r * 100 : 0,
|
|
6296
|
+
leftPercent: i ? n / i * 100 : 0,
|
|
6297
|
+
source: e
|
|
6298
|
+
};
|
|
6299
|
+
}
|
|
6300
|
+
function Ce(e = "native") {
|
|
6301
|
+
let t = Se(e);
|
|
6302
|
+
i("scroll", t), O.value || (O.value = !0, i("scroll-start", t)), M && window.clearTimeout(M), M = window.setTimeout(() => {
|
|
6303
|
+
O.value = !1, i("scroll-end", Se("native"));
|
|
6304
|
+
}, cr);
|
|
6305
|
+
}
|
|
6306
|
+
function we() {
|
|
6307
|
+
v.value = !0;
|
|
6308
|
+
}
|
|
6309
|
+
function Te() {
|
|
6310
|
+
v.value = !1;
|
|
6311
|
+
}
|
|
6312
|
+
function G() {
|
|
6313
|
+
f.value && (w.value = H.value ? f.value[R.value.scrollTopOrLeft] * 100 / H.value : 0);
|
|
6314
|
+
}
|
|
6315
|
+
function K(e, t = "api") {
|
|
6316
|
+
if (!f.value) return;
|
|
6317
|
+
let n = W(e, 0, H.value), r = f.value[R.value.scrollTopOrLeft];
|
|
6318
|
+
if (ne.value = t, Math.abs(r - n) < 1) {
|
|
6319
|
+
G(), Ce(t);
|
|
6320
|
+
return;
|
|
6321
|
+
}
|
|
6322
|
+
(t === "wheel" || t === "keyboard") && Oe(), D.value = !0, f.value[R.value.scrollTopOrLeft] = n, G(), Ce(t);
|
|
6323
|
+
}
|
|
6324
|
+
function Ee(e, t = "api") {
|
|
6325
|
+
K(W(e, 0, 100) / 100 * H.value, t);
|
|
6326
|
+
}
|
|
6327
|
+
function q() {
|
|
6328
|
+
g(() => {
|
|
6329
|
+
E.value++, G(), requestAnimationFrame(() => {
|
|
6330
|
+
E.value++, G();
|
|
6331
|
+
});
|
|
6332
|
+
});
|
|
6333
|
+
}
|
|
6334
|
+
function De() {
|
|
6335
|
+
if (D.value) {
|
|
6336
|
+
D.value = !1;
|
|
6337
|
+
return;
|
|
6338
|
+
}
|
|
6339
|
+
G(), Ce(ne.value), ne.value = "native";
|
|
6340
|
+
}
|
|
6341
|
+
function J(e) {
|
|
6342
|
+
let t = e.deltaX || 0, n = e.deltaY || 0, i = 0;
|
|
6343
|
+
return L.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[R.value.clientSize] : i : i;
|
|
6344
|
+
}
|
|
6345
|
+
function Oe() {
|
|
6346
|
+
x.value = !0, N && window.clearTimeout(N), N = window.setTimeout(() => {
|
|
6347
|
+
x.value = !1, N = null;
|
|
6348
|
+
}, lr);
|
|
6349
|
+
}
|
|
6350
|
+
function ke() {
|
|
6351
|
+
let e = r.scrollPosition;
|
|
6352
|
+
if (e == null || !f.value) return;
|
|
6353
|
+
if (typeof e == "number") {
|
|
6354
|
+
if (Number.isNaN(e)) return;
|
|
6355
|
+
K(e, "api");
|
|
6356
|
+
return;
|
|
6357
|
+
}
|
|
6358
|
+
if (typeof e != "object" || !e) return;
|
|
6359
|
+
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);
|
|
6360
|
+
if (a || o) {
|
|
6361
|
+
D.value = !0, a && (t.scrollTop = W(e.top, 0, n)), o && (t.scrollLeft = W(e.left, 0, i)), G(), Ce("api");
|
|
6362
|
+
return;
|
|
6363
|
+
}
|
|
6364
|
+
let s = L.value ? e.left ?? e.top : e.top ?? e.left;
|
|
6365
|
+
typeof s == "number" && !Number.isNaN(s) && K(s, "api");
|
|
6366
|
+
}
|
|
6367
|
+
function Ae(e) {
|
|
6368
|
+
e ? (se = document.documentElement.style.cursor, document.documentElement.style.cursor = "grabbing") : (document.documentElement.style.cursor = se, se = "");
|
|
6369
|
+
}
|
|
6370
|
+
function je() {
|
|
6371
|
+
document.addEventListener("pointermove", ze, !0), document.addEventListener("pointerup", Z, !0), document.addEventListener("pointercancel", Z, !0);
|
|
6372
|
+
}
|
|
6373
|
+
function Me() {
|
|
6374
|
+
document.removeEventListener("pointermove", ze, !0), document.removeEventListener("pointerup", Z, !0), document.removeEventListener("pointercancel", Z, !0);
|
|
6375
|
+
}
|
|
6376
|
+
function Ne(e) {
|
|
6377
|
+
if (r.disabled || !V.value) return;
|
|
6378
|
+
if (e.metaKey) {
|
|
6379
|
+
let t = J(e);
|
|
6380
|
+
if (!t) return;
|
|
6381
|
+
e.preventDefault(), K(t < 0 ? 0 : H.value, "wheel");
|
|
6382
|
+
return;
|
|
6383
|
+
}
|
|
6384
|
+
let t = J(e);
|
|
6385
|
+
if (!t) return;
|
|
6386
|
+
let n = f.value[R.value.scrollTopOrLeft], i = W(n + t, 0, H.value), a = n <= 0 && t < 0, o = n >= H.value && t > 0;
|
|
6387
|
+
a || o || (e.preventDefault(), K(i, "wheel"));
|
|
6388
|
+
}
|
|
6389
|
+
function Pe(e) {
|
|
6390
|
+
if (r.disabled || !V.value || xe(e.target)) return;
|
|
6391
|
+
let t = f.value[R.value.scrollTopOrLeft], n = r.wheelStep, i = f.value[R.value.clientSize], a = null;
|
|
6392
|
+
if (e.metaKey) {
|
|
6393
|
+
if (e.key === "ArrowUp" && !L.value) {
|
|
6394
|
+
e.preventDefault(), K(0, "keyboard");
|
|
6395
|
+
return;
|
|
6396
|
+
}
|
|
6397
|
+
if (e.key === "ArrowDown" && !L.value) {
|
|
6398
|
+
e.preventDefault(), K(H.value, "keyboard");
|
|
6399
|
+
return;
|
|
6400
|
+
}
|
|
6401
|
+
if (e.key === "ArrowLeft" && L.value) {
|
|
6402
|
+
e.preventDefault(), K(0, "keyboard");
|
|
6403
|
+
return;
|
|
6404
|
+
}
|
|
6405
|
+
if (e.key === "ArrowRight" && L.value) {
|
|
6406
|
+
e.preventDefault(), K(H.value, "keyboard");
|
|
6407
|
+
return;
|
|
6408
|
+
}
|
|
6409
|
+
}
|
|
6410
|
+
switch (e.key) {
|
|
6411
|
+
case "ArrowUp":
|
|
6412
|
+
L.value || (a = t - n);
|
|
6413
|
+
break;
|
|
6414
|
+
case "ArrowDown":
|
|
6415
|
+
L.value || (a = t + n);
|
|
6416
|
+
break;
|
|
6417
|
+
case "ArrowLeft":
|
|
6418
|
+
L.value && (a = t - n);
|
|
6419
|
+
break;
|
|
6420
|
+
case "ArrowRight":
|
|
6421
|
+
L.value && (a = t + n);
|
|
6422
|
+
break;
|
|
6423
|
+
case "PageUp":
|
|
6424
|
+
a = t - i;
|
|
6425
|
+
break;
|
|
6426
|
+
case "PageDown":
|
|
6427
|
+
a = t + i;
|
|
6428
|
+
break;
|
|
6429
|
+
case "Home":
|
|
6430
|
+
a = 0;
|
|
6431
|
+
break;
|
|
6432
|
+
case "End":
|
|
6433
|
+
a = H.value;
|
|
6434
|
+
break;
|
|
6435
|
+
}
|
|
6436
|
+
a !== null && (e.preventDefault(), K(a, "keyboard"));
|
|
6437
|
+
}
|
|
6438
|
+
function Fe(e, t, n) {
|
|
6439
|
+
if (!p.value) return;
|
|
6440
|
+
let r = p.value.getBoundingClientRect();
|
|
6441
|
+
k.value.trackStart = r[R.value.topOrLeft], k.value.trackSize = r[R.value.size], k.value.offset = Number.isFinite(t) ? t : 0, C.value = !0;
|
|
6442
|
+
let i = n?.pointerId;
|
|
6443
|
+
if (i != null && d.value?.setPointerCapture) try {
|
|
6444
|
+
d.value.setPointerCapture(i), j.value = i;
|
|
6445
|
+
} catch {
|
|
6446
|
+
j.value = null;
|
|
6447
|
+
}
|
|
6448
|
+
Ae(!0), Ie(e), je();
|
|
6449
|
+
}
|
|
6450
|
+
function Ie(e) {
|
|
6451
|
+
if (!C.value || !k.value.trackSize) return;
|
|
6452
|
+
let t = k.value.trackSize * (_e.value / 100), n = Math.max(1, k.value.trackSize - t);
|
|
6453
|
+
Ee(W(e - k.value.trackStart - k.value.offset, 0, n) / n * 100, "drag");
|
|
6454
|
+
}
|
|
6455
|
+
function Y() {
|
|
6456
|
+
if (j.value != null && d.value?.releasePointerCapture) {
|
|
6457
|
+
try {
|
|
6458
|
+
d.value.releasePointerCapture(j.value);
|
|
6459
|
+
} catch {}
|
|
6460
|
+
j.value = null;
|
|
6461
|
+
}
|
|
6462
|
+
Ae(!1), C.value = !1, Me();
|
|
6463
|
+
}
|
|
6464
|
+
function Le(e) {
|
|
6465
|
+
if (r.disabled || e.button !== 0 && e.pointerType !== "touch") return;
|
|
6466
|
+
Y();
|
|
6467
|
+
let t = m.value?.getBoundingClientRect(), n = t ? t[R.value.size] / 2 : 0;
|
|
6468
|
+
Fe(e[R.value.clientXorY], n, e);
|
|
6469
|
+
}
|
|
6470
|
+
function Re(e) {
|
|
6471
|
+
if (r.disabled || e.button !== 0 && e.pointerType !== "touch") return;
|
|
6472
|
+
Y();
|
|
6473
|
+
let t = m.value?.getBoundingClientRect(), n = t ? e[R.value.clientXorY] - t[R.value.topOrLeft] : 0;
|
|
6474
|
+
Fe(e[R.value.clientXorY], n, e);
|
|
6475
|
+
}
|
|
6476
|
+
function ze(e) {
|
|
6477
|
+
C.value && (e.cancelable && e.preventDefault(), Ie(e[R.value.clientXorY]));
|
|
6478
|
+
}
|
|
6479
|
+
function Z() {
|
|
6480
|
+
C.value && Y();
|
|
6481
|
+
}
|
|
6482
|
+
function Be(e = w.value) {
|
|
6483
|
+
if (typeof e == "number") {
|
|
6484
|
+
Ee(e, "api");
|
|
6485
|
+
return;
|
|
6486
|
+
}
|
|
6487
|
+
e && typeof e == "object" && Ve(e);
|
|
6488
|
+
}
|
|
6489
|
+
function Ve({ top: e, left: t, behavior: n = "auto" } = {}) {
|
|
6490
|
+
let r = L.value ? t ?? e : e ?? t;
|
|
6491
|
+
typeof r == "number" && K(r, "api");
|
|
6492
|
+
}
|
|
6493
|
+
function He({ top: e = 0, left: t = 0, behavior: n = "auto" } = {}) {
|
|
6494
|
+
if (!f.value) return;
|
|
6495
|
+
let r = L.value ? t : e;
|
|
6496
|
+
K(f.value[R.value.scrollTopOrLeft] + r, "api");
|
|
6497
|
+
}
|
|
6498
|
+
function Ue() {
|
|
6499
|
+
K(0, "api");
|
|
6500
|
+
}
|
|
6501
|
+
function We() {
|
|
6502
|
+
K(H.value, "api");
|
|
6503
|
+
}
|
|
6504
|
+
function Ge() {
|
|
6505
|
+
d.value?.focus();
|
|
6506
|
+
}
|
|
6507
|
+
return te(() => {
|
|
6508
|
+
q(), window.addEventListener("resize", q), typeof ResizeObserver < "u" && f.value && (F = new ResizeObserver(() => q()), F.observe(f.value)), g(() => {
|
|
6509
|
+
requestAnimationFrame(() => {
|
|
6510
|
+
ke(), G();
|
|
6511
|
+
});
|
|
6512
|
+
});
|
|
6513
|
+
}), oe(() => [
|
|
6514
|
+
r.horizontal,
|
|
6515
|
+
r.width,
|
|
6516
|
+
r.height
|
|
6517
|
+
], () => q()), oe(() => r.scrollPosition, () => {
|
|
6518
|
+
r.scrollPosition != null && g(() => {
|
|
6519
|
+
ke(), G();
|
|
6520
|
+
});
|
|
6521
|
+
}, { deep: !0 }), oe(L, () => {
|
|
6522
|
+
r.scrollPosition != null && g(() => {
|
|
6523
|
+
ke(), G();
|
|
6524
|
+
});
|
|
6525
|
+
}), ee(() => {
|
|
6526
|
+
window.removeEventListener("resize", q), Y(), M && window.clearTimeout(M), N && window.clearTimeout(N), F && f.value && F.unobserve(f.value), F = null;
|
|
6527
|
+
}), t({
|
|
6528
|
+
scroll: Be,
|
|
6529
|
+
scrollTo: Ve,
|
|
6530
|
+
scrollBy: He,
|
|
6531
|
+
scrollToStart: Ue,
|
|
6532
|
+
scrollToEnd: We,
|
|
6533
|
+
focus: Ge,
|
|
6534
|
+
refresh: q
|
|
6535
|
+
}), (e, t) => (b(), c("div", h({
|
|
6536
|
+
class: "w-scrollable",
|
|
6537
|
+
ref_key: "rootEl",
|
|
6538
|
+
ref: d
|
|
6539
|
+
}, e.$attrs, {
|
|
6540
|
+
tabindex: ce.value,
|
|
6541
|
+
role: "region",
|
|
6542
|
+
"aria-disabled": r.disabled ? "true" : void 0,
|
|
6543
|
+
onMouseenter: we,
|
|
6544
|
+
onMouseleave: Te,
|
|
6545
|
+
onWheel: Ne,
|
|
6546
|
+
onKeydown: Pe,
|
|
6547
|
+
class: le.value,
|
|
6548
|
+
style: be.value
|
|
6549
|
+
}), [l("div", {
|
|
6550
|
+
class: _(["w-scrollable__content", de.value]),
|
|
6551
|
+
id: re(s),
|
|
6089
6552
|
ref_key: "scrollableEl",
|
|
6090
|
-
ref:
|
|
6091
|
-
|
|
6092
|
-
|
|
6553
|
+
ref: f,
|
|
6554
|
+
onScroll: De
|
|
6555
|
+
}, [T(e.$slots, "default")], 42, or), P(l("div", {
|
|
6556
|
+
class: _(["w-scrollable__scrollbar", ue.value]),
|
|
6093
6557
|
ref_key: "trackEl",
|
|
6094
|
-
ref:
|
|
6095
|
-
|
|
6558
|
+
ref: p,
|
|
6559
|
+
role: "presentation",
|
|
6560
|
+
onPointerdown: I(Le, ["prevent"])
|
|
6096
6561
|
}, [l("div", {
|
|
6097
|
-
class: "w-scrollable__scrollbar-thumb",
|
|
6562
|
+
class: _(["w-scrollable__scrollbar-thumb", { [r.color]: !!r.color }]),
|
|
6098
6563
|
ref_key: "thumbEl",
|
|
6099
|
-
ref:
|
|
6100
|
-
style:
|
|
6101
|
-
|
|
6564
|
+
ref: m,
|
|
6565
|
+
style: y(U.value),
|
|
6566
|
+
role: "scrollbar",
|
|
6567
|
+
"aria-controls": re(s),
|
|
6568
|
+
"aria-orientation": fe.value,
|
|
6569
|
+
"aria-valuemin": 0,
|
|
6570
|
+
"aria-valuemax": pe.value,
|
|
6571
|
+
"aria-valuenow": me.value,
|
|
6572
|
+
"aria-disabled": r.disabled ? "true" : void 0,
|
|
6573
|
+
"aria-label": ge.value,
|
|
6574
|
+
tabindex: "-1",
|
|
6575
|
+
onPointerdown: I(Re, ["stop", "prevent"])
|
|
6576
|
+
}, null, 46, sr)], 34), [[ae, V.value && B.value]])], 16, ar));
|
|
6102
6577
|
}
|
|
6103
|
-
}),
|
|
6578
|
+
}), dr = [
|
|
6104
6579
|
"aria-expanded",
|
|
6105
6580
|
"aria-owns",
|
|
6106
6581
|
"aria-activedescendant"
|
|
6107
|
-
],
|
|
6582
|
+
], fr = {
|
|
6108
6583
|
key: 0,
|
|
6109
6584
|
class: "w-select__selection-slot"
|
|
6110
|
-
},
|
|
6111
|
-
function
|
|
6112
|
-
let m =
|
|
6585
|
+
}, pr = ["innerHTML"], mr = ["value", "name"];
|
|
6586
|
+
function hr(t, n, r, i, a, p) {
|
|
6587
|
+
let m = E("w-icon"), g = E("w-list"), v = E("w-menu");
|
|
6113
6588
|
return b(), o(D(t.formRegister ? "w-form-element" : "div"), h({ ref: "formEl" }, t.formRegister && {
|
|
6114
6589
|
validators: t.validators,
|
|
6115
6590
|
inputValue: p.selectionString,
|
|
@@ -6124,12 +6599,12 @@ function Qn(t, n, r, i, a, p) {
|
|
|
6124
6599
|
wrap: p.hasLabel && r.labelPosition !== "inside",
|
|
6125
6600
|
class: p.classes
|
|
6126
6601
|
}), {
|
|
6127
|
-
default:
|
|
6602
|
+
default: N(() => [
|
|
6128
6603
|
r.labelPosition === "left" ? (b(), c(e, { key: 0 }, [t.$slots.default || r.label ? (b(), c("label", {
|
|
6129
6604
|
key: 0,
|
|
6130
|
-
class:
|
|
6605
|
+
class: _(["w-select__label w-select__label--left w-form-el-shakable", t.labelClasses]),
|
|
6131
6606
|
onClick: n[0] ||= (e) => t.$refs["selection-input"].click()
|
|
6132
|
-
}, [
|
|
6607
|
+
}, [T(t.$slots, "default", {}, () => [d(O(r.label), 1)])], 2)) : s("", !0)], 64)) : s("", !0),
|
|
6133
6608
|
f(v, h({
|
|
6134
6609
|
modelValue: t.showMenu,
|
|
6135
6610
|
"onUpdate:modelValue": n[10] ||= (e) => t.showMenu = e,
|
|
@@ -6141,53 +6616,53 @@ function Qn(t, n, r, i, a, p) {
|
|
|
6141
6616
|
custom: "",
|
|
6142
6617
|
"min-width": "activator"
|
|
6143
6618
|
}, r.menuProps || {}), {
|
|
6144
|
-
activator:
|
|
6145
|
-
class:
|
|
6619
|
+
activator: N(() => [l("div", {
|
|
6620
|
+
class: _(["w-select__selection-wrap", p.inputWrapClasses]),
|
|
6146
6621
|
onClick: n[6] ||= (e) => !t.isDisabled && !t.isReadonly && p.onInputFieldClick(),
|
|
6147
6622
|
role: "button",
|
|
6148
6623
|
"aria-haspopup": "listbox",
|
|
6149
6624
|
"aria-expanded": t.showMenu ? "true" : "false",
|
|
6150
|
-
"aria-owns":
|
|
6151
|
-
"aria-activedescendant": `${
|
|
6625
|
+
"aria-owns": i.selectListId,
|
|
6626
|
+
"aria-activedescendant": `${i.selectListId}_item-1`
|
|
6152
6627
|
}, [
|
|
6153
|
-
|
|
6628
|
+
T(t.$slots, "icon-left", {}, () => [r.innerIconLeft ? (b(), o(m, {
|
|
6154
6629
|
key: 0,
|
|
6155
6630
|
class: "w-select__icon w-select__icon--inner-left",
|
|
6156
6631
|
tag: "label",
|
|
6157
6632
|
onClick: n[1] ||= (e) => t.$emit("click:inner-icon-left", e)
|
|
6158
6633
|
}, {
|
|
6159
|
-
default:
|
|
6634
|
+
default: N(() => [d(O(r.innerIconLeft), 1)]),
|
|
6160
6635
|
_: 1
|
|
6161
6636
|
})) : s("", !0)]),
|
|
6162
|
-
t.$slots.selection ? (b(), c("div",
|
|
6637
|
+
t.$slots.selection ? (b(), c("div", fr, [T(t.$slots, "selection", { item: r.multiple ? t.inputValue : t.inputValue[0] })])) : s("", !0),
|
|
6163
6638
|
l("div", h({
|
|
6164
6639
|
class: "w-select__selection",
|
|
6165
6640
|
ref: "selection-input",
|
|
6166
6641
|
onFocus: n[2] ||= (e) => !t.isDisabled && !t.isReadonly && p.onFocus(e),
|
|
6167
6642
|
onBlur: n[3] ||= (...e) => p.onBlur && p.onBlur(...e),
|
|
6168
6643
|
onKeydown: n[4] ||= (e) => !t.isDisabled && !t.isReadonly && p.onKeydown(e)
|
|
6169
|
-
}, p.selectionAttributes, { innerHTML: p.selectionHtml }), null, 16,
|
|
6170
|
-
(b(!0), c(e, null,
|
|
6644
|
+
}, p.selectionAttributes, { innerHTML: p.selectionHtml }), null, 16, pr),
|
|
6645
|
+
(b(!0), c(e, null, w(t.inputValue.length ? t.inputValue : [{}], (e, n) => (b(), c("input", {
|
|
6171
6646
|
key: n,
|
|
6172
6647
|
type: "hidden",
|
|
6173
6648
|
value: e.value === void 0 ? "" : e.value.toString(),
|
|
6174
6649
|
name: t.inputName + (r.multiple ? "[]" : "")
|
|
6175
|
-
}, null, 8,
|
|
6650
|
+
}, null, 8, mr))), 128)),
|
|
6176
6651
|
r.labelPosition === "inside" && p.showLabelInside ? (b(), c(e, { key: 1 }, [t.$slots.default || r.label ? (b(), c("label", {
|
|
6177
6652
|
key: 0,
|
|
6178
|
-
class:
|
|
6179
|
-
}, [
|
|
6180
|
-
|
|
6653
|
+
class: _(["w-select__label w-select__label--inside w-form-el-shakable", t.labelClasses])
|
|
6654
|
+
}, [T(t.$slots, "default", {}, () => [d(O(r.label), 1)])], 2)) : s("", !0)], 64)) : s("", !0),
|
|
6655
|
+
T(t.$slots, "icon-right", {}, () => [r.innerIconRight ? (b(), o(m, {
|
|
6181
6656
|
key: 0,
|
|
6182
6657
|
class: "w-select__icon w-select__icon--inner-right",
|
|
6183
6658
|
tag: "label",
|
|
6184
6659
|
onClick: n[5] ||= (e) => t.$emit("click:inner-icon-right", e)
|
|
6185
6660
|
}, {
|
|
6186
|
-
default:
|
|
6661
|
+
default: N(() => [d(O(r.innerIconRight), 1)]),
|
|
6187
6662
|
_: 1
|
|
6188
6663
|
})) : s("", !0)])
|
|
6189
|
-
], 10,
|
|
6190
|
-
default:
|
|
6664
|
+
], 10, dr)]),
|
|
6665
|
+
default: N(() => [f(g, {
|
|
6191
6666
|
ref: "w-list",
|
|
6192
6667
|
"model-value": t.inputValue,
|
|
6193
6668
|
"onUpdate:modelValue": p.onInput,
|
|
@@ -6200,20 +6675,20 @@ function Qn(t, n, r, i, a, p) {
|
|
|
6200
6675
|
multiple: r.multiple,
|
|
6201
6676
|
"arrows-navigation": "",
|
|
6202
6677
|
"return-object": "",
|
|
6203
|
-
"add-ids":
|
|
6678
|
+
"add-ids": i.selectListId,
|
|
6204
6679
|
"no-unselect": r.noUnselect,
|
|
6205
6680
|
"selection-color": r.selectionColor,
|
|
6206
6681
|
"item-color-key": r.itemColorKey,
|
|
6207
6682
|
role: "listbox",
|
|
6208
6683
|
tabindex: "-1"
|
|
6209
|
-
}, u({ _: 2 }, [
|
|
6684
|
+
}, u({ _: 2 }, [w(r.items.length, (e) => ({
|
|
6210
6685
|
name: `item.${e}`,
|
|
6211
|
-
fn:
|
|
6686
|
+
fn: N(({ item: n, selected: i, index: a }) => [t.$slots[`item.${e}`] && t.$slots[`item.${e}`](n, i, a) ? T(t.$slots, `item.${e}`, {
|
|
6212
6687
|
key: 0,
|
|
6213
6688
|
item: n,
|
|
6214
6689
|
selected: i,
|
|
6215
6690
|
index: a
|
|
6216
|
-
}, () => [d(O(n[r.itemLabelKey]), 1)]) :
|
|
6691
|
+
}, () => [d(O(n[r.itemLabelKey]), 1)]) : T(t.$slots, "item", {
|
|
6217
6692
|
key: 1,
|
|
6218
6693
|
item: n,
|
|
6219
6694
|
selected: i,
|
|
@@ -6240,9 +6715,9 @@ function Qn(t, n, r, i, a, p) {
|
|
|
6240
6715
|
]),
|
|
6241
6716
|
r.labelPosition === "right" ? (b(), c(e, { key: 1 }, [t.$slots.default || r.label ? (b(), c("label", {
|
|
6242
6717
|
key: 0,
|
|
6243
|
-
class:
|
|
6718
|
+
class: _(["w-select__label w-select__label--right w-form-el-shakable", t.labelClasses]),
|
|
6244
6719
|
onClick: n[11] ||= (e) => t.$refs["selection-input"].click()
|
|
6245
|
-
}, [
|
|
6720
|
+
}, [T(t.$slots, "default", {}, () => [d(O(r.label), 1)])], 2)) : s("", !0)], 64)) : s("", !0)
|
|
6246
6721
|
]),
|
|
6247
6722
|
_: 3
|
|
6248
6723
|
}, 16, [
|
|
@@ -6252,9 +6727,16 @@ function Qn(t, n, r, i, a, p) {
|
|
|
6252
6727
|
"class"
|
|
6253
6728
|
]);
|
|
6254
6729
|
}
|
|
6255
|
-
var
|
|
6730
|
+
var gr = /* @__PURE__ */ J({
|
|
6256
6731
|
name: "w-select",
|
|
6257
|
-
mixins: [
|
|
6732
|
+
mixins: [$],
|
|
6733
|
+
setup(e) {
|
|
6734
|
+
let { waveUiUseId: t } = Q();
|
|
6735
|
+
return {
|
|
6736
|
+
waveUiUseId: t,
|
|
6737
|
+
selectListId: a(() => e.id ? `${e.id}__listbox` : `w-select-menu--${t}`)
|
|
6738
|
+
};
|
|
6739
|
+
},
|
|
6258
6740
|
props: {
|
|
6259
6741
|
items: {
|
|
6260
6742
|
type: Array,
|
|
@@ -6334,9 +6816,6 @@ var $n = /* @__PURE__ */ Y({
|
|
|
6334
6816
|
}
|
|
6335
6817
|
}),
|
|
6336
6818
|
computed: {
|
|
6337
|
-
selectListId() {
|
|
6338
|
-
return this.id ? `${this.id}__listbox` : `w-select-menu--${this.waveUiUseId}`;
|
|
6339
|
-
},
|
|
6340
6819
|
selectItems() {
|
|
6341
6820
|
return this.items.map((e, t) => {
|
|
6342
6821
|
let n = { ...e };
|
|
@@ -6480,12 +6959,12 @@ var $n = /* @__PURE__ */ Y({
|
|
|
6480
6959
|
this.inputValue = this.checkSelection(this.modelValue);
|
|
6481
6960
|
}
|
|
6482
6961
|
}
|
|
6483
|
-
}, [["render",
|
|
6962
|
+
}, [["render", hr]]), _r = ["for"], vr = ["for", "innerHTML"], yr = { class: "w-slider__track-wrap" }, br = [
|
|
6484
6963
|
"aria-valuemin",
|
|
6485
6964
|
"aria-valuemax",
|
|
6486
6965
|
"aria-valuenow",
|
|
6487
6966
|
"aria-readonly"
|
|
6488
|
-
],
|
|
6967
|
+
], xr = [
|
|
6489
6968
|
"id",
|
|
6490
6969
|
"name",
|
|
6491
6970
|
"model-value",
|
|
@@ -6493,11 +6972,11 @@ var $n = /* @__PURE__ */ Y({
|
|
|
6493
6972
|
"readonly",
|
|
6494
6973
|
"aria-readonly",
|
|
6495
6974
|
"tabindex"
|
|
6496
|
-
],
|
|
6975
|
+
], Sr = ["for"], Cr = { key: 0 }, wr = {
|
|
6497
6976
|
key: 0,
|
|
6498
6977
|
class: "w-slider__step-labels"
|
|
6499
|
-
},
|
|
6500
|
-
function
|
|
6978
|
+
}, Tr = ["onClick"], Er = ["for"], Dr = ["for", "innerHTML"];
|
|
6979
|
+
function Or(t, n, r, i, a, u) {
|
|
6501
6980
|
return b(), o(D(t.formRegister ? "w-form-element" : "div"), h({ ref: "formEl" }, t.formRegister && {
|
|
6502
6981
|
validators: t.validators,
|
|
6503
6982
|
inputValue: t.rangeValueScaled,
|
|
@@ -6513,19 +6992,19 @@ function dr(t, n, r, i, a, u) {
|
|
|
6513
6992
|
wrap: t.formRegister || null,
|
|
6514
6993
|
class: u.wrapperClasses
|
|
6515
6994
|
}), {
|
|
6516
|
-
default:
|
|
6995
|
+
default: N(() => [
|
|
6517
6996
|
t.$slots["label-left"] ? (b(), c("label", {
|
|
6518
6997
|
key: 0,
|
|
6519
|
-
class:
|
|
6998
|
+
class: _(["w-slider__label w-slider__label--left w-form-el-shakable", t.labelClasses]),
|
|
6520
6999
|
for: u.thumbId
|
|
6521
|
-
}, [
|
|
7000
|
+
}, [T(t.$slots, "label-left")], 10, _r)) : r.labelLeft ? (b(), c("label", {
|
|
6522
7001
|
key: 1,
|
|
6523
|
-
class:
|
|
7002
|
+
class: _(["w-slider__label w-slider__label--left w-form-el-shakable", t.labelClasses]),
|
|
6524
7003
|
for: u.thumbId,
|
|
6525
7004
|
innerHTML: r.labelLeft
|
|
6526
|
-
}, null, 10,
|
|
6527
|
-
l("div",
|
|
6528
|
-
class:
|
|
7005
|
+
}, null, 10, vr)) : s("", !0),
|
|
7006
|
+
l("div", yr, [l("div", {
|
|
7007
|
+
class: _(["w-slider__track", u.trackClasses]),
|
|
6529
7008
|
ref: "track",
|
|
6530
7009
|
onMousedown: n[4] ||= (...e) => u.onTrackMouseDown && u.onTrackMouseDown(...e),
|
|
6531
7010
|
onTouchstart: n[5] ||= (...e) => u.onTrackMouseDown && u.onTrackMouseDown(...e),
|
|
@@ -6537,13 +7016,13 @@ function dr(t, n, r, i, a, u) {
|
|
|
6537
7016
|
"aria-readonly": t.isReadonly ? "true" : "false",
|
|
6538
7017
|
"aria-orientation": "horizontal"
|
|
6539
7018
|
}, [l("div", {
|
|
6540
|
-
class:
|
|
6541
|
-
style:
|
|
7019
|
+
class: _(["w-slider__range", u.rangeClasses]),
|
|
7020
|
+
style: y(u.rangeStyles)
|
|
6542
7021
|
}, null, 6), l("div", {
|
|
6543
7022
|
class: "w-slider__thumb",
|
|
6544
|
-
style:
|
|
7023
|
+
style: y(u.thumbStyles)
|
|
6545
7024
|
}, [l("button", {
|
|
6546
|
-
class:
|
|
7025
|
+
class: _(["w-slider__thumb-button", [r.color]]),
|
|
6547
7026
|
ref: "thumb",
|
|
6548
7027
|
id: u.thumbId,
|
|
6549
7028
|
name: t.inputName,
|
|
@@ -6552,27 +7031,27 @@ function dr(t, n, r, i, a, u) {
|
|
|
6552
7031
|
readonly: t.isReadonly || null,
|
|
6553
7032
|
"aria-readonly": t.isReadonly ? "true" : "false",
|
|
6554
7033
|
tabindex: t.isDisabled || t.isReadonly ? -1 : null,
|
|
6555
|
-
onKeydown: [n[0] ||=
|
|
7034
|
+
onKeydown: [n[0] ||= F((e) => u.onKeyDown(e, -1), ["left"]), n[1] ||= F((e) => u.onKeyDown(e, 1), ["right"])],
|
|
6556
7035
|
onFocus: n[2] ||= (e) => t.$emit("focus", e),
|
|
6557
|
-
onClick: n[3] ||=
|
|
6558
|
-
}, null, 42,
|
|
7036
|
+
onClick: n[3] ||= I(() => {}, ["prevent"])
|
|
7037
|
+
}, null, 42, xr), r.thumbLabel ? (b(), c("label", {
|
|
6559
7038
|
key: 0,
|
|
6560
|
-
class:
|
|
7039
|
+
class: _(["w-slider__thumb-label", u.thumbClasses]),
|
|
6561
7040
|
for: u.thumbId
|
|
6562
|
-
}, [r.thumbLabel === "droplet" ? (b(), c("div",
|
|
7041
|
+
}, [r.thumbLabel === "droplet" ? (b(), c("div", Cr, [T(t.$slots, "label", { value: t.rangeValueScaled }, () => [d(O(~~t.rangeValueScaled), 1)])])) : T(t.$slots, "label", {
|
|
6563
7042
|
key: 1,
|
|
6564
7043
|
value: t.rangeValueScaled
|
|
6565
|
-
}, () => [d(O(~~t.rangeValueScaled), 1)])], 10,
|
|
7044
|
+
}, () => [d(O(~~t.rangeValueScaled), 1)])], 10, Sr)) : s("", !0)], 4)], 42, br), r.stepLabels && r.step ? (b(), c("div", wr, [
|
|
6566
7045
|
l("div", {
|
|
6567
7046
|
class: "w-slider__step-label",
|
|
6568
7047
|
onClick: n[6] ||= (e) => u.onStepLabelClick(0)
|
|
6569
7048
|
}, O(this.minVal), 1),
|
|
6570
|
-
(b(!0), c(e, null,
|
|
7049
|
+
(b(!0), c(e, null, w(~~u.numberOfSteps, (e) => (b(), c("div", {
|
|
6571
7050
|
class: "w-slider__step-label",
|
|
6572
7051
|
key: e,
|
|
6573
7052
|
onClick: (t) => u.onStepLabelClick(e * (100 / u.numberOfSteps)),
|
|
6574
|
-
style:
|
|
6575
|
-
}, O(u.percentToScaled(e * (100 / u.numberOfSteps))), 13,
|
|
7053
|
+
style: y(`left: ${e * (100 / u.numberOfSteps)}%`)
|
|
7054
|
+
}, O(u.percentToScaled(e * (100 / u.numberOfSteps))), 13, Tr))), 128)),
|
|
6576
7055
|
~~u.numberOfSteps === u.numberOfSteps ? s("", !0) : (b(), c("div", {
|
|
6577
7056
|
key: 0,
|
|
6578
7057
|
class: "w-slider__step-label",
|
|
@@ -6582,14 +7061,14 @@ function dr(t, n, r, i, a, u) {
|
|
|
6582
7061
|
])) : s("", !0)]),
|
|
6583
7062
|
t.$slots["label-right"] ? (b(), c("label", {
|
|
6584
7063
|
key: 2,
|
|
6585
|
-
class:
|
|
7064
|
+
class: _(["w-slider__label w-slider__label--right w-form-el-shakable", t.labelClasses]),
|
|
6586
7065
|
for: u.thumbId
|
|
6587
|
-
}, [
|
|
7066
|
+
}, [T(t.$slots, "label-right")], 10, Er)) : r.labelRight ? (b(), c("label", {
|
|
6588
7067
|
key: 3,
|
|
6589
|
-
class:
|
|
7068
|
+
class: _(["w-slider__label w-slider__label--right w-form-el-shakable", t.labelClasses]),
|
|
6590
7069
|
for: u.thumbId,
|
|
6591
7070
|
innerHTML: r.labelRight
|
|
6592
|
-
}, null, 10,
|
|
7071
|
+
}, null, 10, Dr)) : s("", !0)
|
|
6593
7072
|
]),
|
|
6594
7073
|
_: 3
|
|
6595
7074
|
}, 16, [
|
|
@@ -6598,9 +7077,12 @@ function dr(t, n, r, i, a, u) {
|
|
|
6598
7077
|
"class"
|
|
6599
7078
|
]);
|
|
6600
7079
|
}
|
|
6601
|
-
var
|
|
7080
|
+
var kr = /* @__PURE__ */ J({
|
|
6602
7081
|
name: "w-slider",
|
|
6603
|
-
mixins: [
|
|
7082
|
+
mixins: [$],
|
|
7083
|
+
setup() {
|
|
7084
|
+
return Q();
|
|
7085
|
+
},
|
|
6604
7086
|
props: {
|
|
6605
7087
|
modelValue: {
|
|
6606
7088
|
type: Number,
|
|
@@ -6747,15 +7229,15 @@ var fr = /* @__PURE__ */ Y({
|
|
|
6747
7229
|
watch: { modelValue(e) {
|
|
6748
7230
|
this.rangeValueScaled !== e && (this.rangeValueScaled = e, this.rangeValuePercent = this.scaledToPercent(e));
|
|
6749
7231
|
} }
|
|
6750
|
-
}, [["render",
|
|
6751
|
-
function
|
|
7232
|
+
}, [["render", Or]]), Ar = { key: 0 };
|
|
7233
|
+
function jr(e, t, n, r, i, a) {
|
|
6752
7234
|
return n.modelValue || n.modelValue === void 0 ? (b(), c("div", {
|
|
6753
7235
|
key: 0,
|
|
6754
|
-
class:
|
|
6755
|
-
style:
|
|
6756
|
-
}, [a.isThreeDots ? (b(), c("span",
|
|
7236
|
+
class: _(["w-spinner", a.classes]),
|
|
7237
|
+
style: y(a.styles)
|
|
7238
|
+
}, [a.isThreeDots ? (b(), c("span", Ar)) : s("", !0)], 6)) : s("", !0);
|
|
6757
7239
|
}
|
|
6758
|
-
var
|
|
7240
|
+
var Mr = /* @__PURE__ */ J({
|
|
6759
7241
|
name: "w-spinner",
|
|
6760
7242
|
props: {
|
|
6761
7243
|
modelValue: {},
|
|
@@ -6796,13 +7278,13 @@ var hr = /* @__PURE__ */ Y({
|
|
|
6796
7278
|
};
|
|
6797
7279
|
}
|
|
6798
7280
|
}
|
|
6799
|
-
}, [["render",
|
|
7281
|
+
}, [["render", jr]]);
|
|
6800
7282
|
//#endregion
|
|
6801
7283
|
//#region src/wave-ui/components/w-steps.vue?vue&type=template&lang.js
|
|
6802
|
-
function
|
|
6803
|
-
return b(), c("div", { class:
|
|
7284
|
+
function Nr(e, t, n, r, i, a) {
|
|
7285
|
+
return b(), c("div", { class: _(["w-steps", a.classes]) }, null, 2);
|
|
6804
7286
|
}
|
|
6805
|
-
var
|
|
7287
|
+
var Pr = /* @__PURE__ */ J({
|
|
6806
7288
|
name: "w-steps",
|
|
6807
7289
|
props: {
|
|
6808
7290
|
dark: { type: Boolean },
|
|
@@ -6816,7 +7298,7 @@ var _r = /* @__PURE__ */ Y({
|
|
|
6816
7298
|
"w-steps--light": this.light
|
|
6817
7299
|
};
|
|
6818
7300
|
} }
|
|
6819
|
-
}, [["render",
|
|
7301
|
+
}, [["render", Nr]]), Fr = [
|
|
6820
7302
|
"id",
|
|
6821
7303
|
"name",
|
|
6822
7304
|
"checked",
|
|
@@ -6826,15 +7308,15 @@ var _r = /* @__PURE__ */ Y({
|
|
|
6826
7308
|
"required",
|
|
6827
7309
|
"tabindex",
|
|
6828
7310
|
"aria-checked"
|
|
6829
|
-
],
|
|
7311
|
+
], Ir = ["for"], Lr = {
|
|
6830
7312
|
key: 0,
|
|
6831
7313
|
class: "w-switch__track"
|
|
6832
|
-
},
|
|
7314
|
+
}, Rr = {
|
|
6833
7315
|
key: 1,
|
|
6834
7316
|
class: "w-switch__thumb"
|
|
6835
|
-
},
|
|
6836
|
-
function
|
|
6837
|
-
let f =
|
|
7317
|
+
}, zr = ["for"];
|
|
7318
|
+
function Br(t, n, r, i, a, u) {
|
|
7319
|
+
let f = E("w-progress");
|
|
6838
7320
|
return b(), o(D(t.formRegister ? "w-form-element" : "div"), h({ ref: "formEl" }, t.formRegister && {
|
|
6839
7321
|
validators: t.validators,
|
|
6840
7322
|
inputValue: a.isOn,
|
|
@@ -6852,7 +7334,7 @@ function Cr(t, n, r, i, a, u) {
|
|
|
6852
7334
|
class: u.classes,
|
|
6853
7335
|
style: t.$attrs.style
|
|
6854
7336
|
}), {
|
|
6855
|
-
default:
|
|
7337
|
+
default: N(() => [
|
|
6856
7338
|
l("input", h({
|
|
6857
7339
|
ref: "input",
|
|
6858
7340
|
id: t.inputId,
|
|
@@ -6870,27 +7352,27 @@ function Cr(t, n, r, i, a, u) {
|
|
|
6870
7352
|
onBlur: n[2] ||= (e) => t.$emit("blur", e),
|
|
6871
7353
|
"aria-checked": a.isOn || "false",
|
|
6872
7354
|
role: "switch"
|
|
6873
|
-
}), null, 16,
|
|
7355
|
+
}), null, 16, Fr),
|
|
6874
7356
|
u.hasLabel && r.labelOnLeft ? (b(), c(e, { key: 0 }, [t.$slots.default || r.label ? (b(), c("label", {
|
|
6875
7357
|
key: 0,
|
|
6876
|
-
class:
|
|
7358
|
+
class: _(["w-switch__label w-switch__label--left w-form-el-shakable", t.labelClasses]),
|
|
6877
7359
|
for: t.inputId
|
|
6878
|
-
}, [
|
|
7360
|
+
}, [T(t.$slots, "default", {}, () => [d(O(r.label), 1)])], 10, Ir)) : s("", !0)], 64)) : s("", !0),
|
|
6879
7361
|
l("div", {
|
|
6880
|
-
class:
|
|
7362
|
+
class: _(["w-switch__input", u.inputClasses]),
|
|
6881
7363
|
onClick: n[3] ||= (e) => {
|
|
6882
7364
|
t.$refs.input.focus(), t.$refs.input.click();
|
|
6883
7365
|
}
|
|
6884
|
-
}, [t.$slots.track ? (b(), c("div",
|
|
7366
|
+
}, [t.$slots.track ? (b(), c("div", Lr, [T(t.$slots, "track")])) : s("", !0), t.$slots.thumb || r.loading ? (b(), c("div", Rr, [r.loading ? (b(), o(f, h({
|
|
6885
7367
|
key: 0,
|
|
6886
7368
|
circle: "",
|
|
6887
7369
|
color: "inherit"
|
|
6888
|
-
}, typeof r.loading == "number" && { "model-value": r.loading }), null, 16)) :
|
|
7370
|
+
}, typeof r.loading == "number" && { "model-value": r.loading }), null, 16)) : T(t.$slots, "thumb", { key: 1 })])) : s("", !0)], 2),
|
|
6889
7371
|
u.hasLabel && !r.labelOnLeft ? (b(), c(e, { key: 1 }, [t.$slots.default || r.label ? (b(), c("label", {
|
|
6890
7372
|
key: 0,
|
|
6891
|
-
class:
|
|
7373
|
+
class: _(["w-switch__label w-switch__label--right w-form-el-shakable", t.labelClasses]),
|
|
6892
7374
|
for: t.inputId
|
|
6893
|
-
}, [
|
|
7375
|
+
}, [T(t.$slots, "default", {}, () => [d(O(r.label), 1)])], 10, zr)) : s("", !0)], 64)) : s("", !0)
|
|
6894
7376
|
]),
|
|
6895
7377
|
_: 3
|
|
6896
7378
|
}, 16, [
|
|
@@ -6899,10 +7381,13 @@ function Cr(t, n, r, i, a, u) {
|
|
|
6899
7381
|
"style"
|
|
6900
7382
|
]);
|
|
6901
7383
|
}
|
|
6902
|
-
var
|
|
7384
|
+
var Vr = /* @__PURE__ */ J({
|
|
6903
7385
|
name: "w-switch",
|
|
6904
|
-
mixins: [
|
|
7386
|
+
mixins: [$],
|
|
6905
7387
|
inheritAttrs: !1,
|
|
7388
|
+
setup() {
|
|
7389
|
+
return Q();
|
|
7390
|
+
},
|
|
6906
7391
|
props: {
|
|
6907
7392
|
modelValue: { default: !1 },
|
|
6908
7393
|
label: {
|
|
@@ -6982,73 +7467,75 @@ var wr = /* @__PURE__ */ Y({
|
|
|
6982
7467
|
watch: { modelValue(e) {
|
|
6983
7468
|
this.isOn = e;
|
|
6984
7469
|
} }
|
|
6985
|
-
}, [["render",
|
|
6986
|
-
function
|
|
6987
|
-
return b(), c("div",
|
|
7470
|
+
}, [["render", Br]]), Hr = { class: "w-tabs__content" };
|
|
7471
|
+
function Ur(e, t, n, r, i, a) {
|
|
7472
|
+
return b(), c("div", Hr, [T(e.$slots, "default", { item: n.item })]);
|
|
6988
7473
|
}
|
|
6989
|
-
var
|
|
7474
|
+
var Wr = /* @__PURE__ */ J({
|
|
6990
7475
|
name: "tab-content",
|
|
6991
7476
|
props: { item: Object }
|
|
6992
|
-
}, [["render",
|
|
7477
|
+
}, [["render", Ur]]), Gr = [
|
|
7478
|
+
"onPointerdown",
|
|
6993
7479
|
"onClick",
|
|
6994
7480
|
"onFocus",
|
|
6995
7481
|
"tabindex",
|
|
6996
7482
|
"onKeypress",
|
|
6997
7483
|
"aria-selected"
|
|
6998
|
-
],
|
|
7484
|
+
], Kr = ["innerHTML"], qr = {
|
|
6999
7485
|
key: 0,
|
|
7000
7486
|
class: "w-tabs__bar-extra"
|
|
7001
|
-
},
|
|
7487
|
+
}, Jr = {
|
|
7002
7488
|
key: 0,
|
|
7003
7489
|
class: "w-tabs__content-wrap"
|
|
7004
|
-
},
|
|
7005
|
-
function
|
|
7006
|
-
let m =
|
|
7007
|
-
return b(), c("div", { class:
|
|
7008
|
-
class:
|
|
7490
|
+
}, Yr = ["innerHTML"], Xr = ["innerHTML"];
|
|
7491
|
+
function Zr(n, a, u, d, f, p) {
|
|
7492
|
+
let m = E("tab-content");
|
|
7493
|
+
return b(), c("div", { class: _(["w-tabs", p.tabsClasses]) }, [l("div", {
|
|
7494
|
+
class: _(["w-tabs__bar", p.tabsBarClasses]),
|
|
7009
7495
|
ref: "tabs-bar"
|
|
7010
7496
|
}, [
|
|
7011
|
-
(b(!0), c(e, null,
|
|
7012
|
-
class:
|
|
7497
|
+
(b(!0), c(e, null, w(n.tabs, (e, t) => (b(), c("div", {
|
|
7498
|
+
class: _(["w-tabs__bar-item", p.barItemClasses(e)]),
|
|
7013
7499
|
key: t,
|
|
7500
|
+
onPointerdown: (t) => p.onTabsBarPointerDown(t, e),
|
|
7014
7501
|
onClick: (t) => !e._disabled && e._uid !== n.activeTabUid && p.openTab(e._uid),
|
|
7015
7502
|
onFocus: (t) => n.$emit("focus", p.getOriginalItem(e)),
|
|
7016
7503
|
tabindex: !e._disabled && 0,
|
|
7017
|
-
onKeypress:
|
|
7504
|
+
onKeypress: F((t) => !e._disabled && p.openTab(e._uid), ["enter"]),
|
|
7018
7505
|
"aria-selected": e._uid === n.activeTabUid ? "true" : "false",
|
|
7019
7506
|
role: "tab"
|
|
7020
|
-
}, [n.$slots[`item-title.${e.id || t + 1}`] ?
|
|
7507
|
+
}, [n.$slots[`item-title.${e.id || t + 1}`] ? T(n.$slots, `item-title.${e.id || t + 1}`, {
|
|
7021
7508
|
key: 0,
|
|
7022
7509
|
item: p.getOriginalItem(e),
|
|
7023
7510
|
index: t + 1,
|
|
7024
7511
|
active: e._uid === n.activeTabUid
|
|
7025
|
-
}) :
|
|
7512
|
+
}) : T(n.$slots, "item-title", {
|
|
7026
7513
|
key: 1,
|
|
7027
7514
|
item: p.getOriginalItem(e),
|
|
7028
7515
|
index: t + 1,
|
|
7029
7516
|
active: e._uid === n.activeTabUid
|
|
7030
|
-
}, () => [l("div", { innerHTML: e[u.itemTitleKey] }, null, 8,
|
|
7031
|
-
n.$slots["tabs-bar-extra"] ? (b(), c("div",
|
|
7517
|
+
}, () => [l("div", { innerHTML: e[u.itemTitleKey] }, null, 8, Kr)])], 42, Gr))), 128)),
|
|
7518
|
+
n.$slots["tabs-bar-extra"] ? (b(), c("div", qr, [T(n.$slots, "tabs-bar-extra")])) : s("", !0),
|
|
7032
7519
|
!u.noSlider && !u.card ? (b(), c("div", {
|
|
7033
7520
|
key: 1,
|
|
7034
|
-
class:
|
|
7035
|
-
style:
|
|
7521
|
+
class: _(["w-tabs__slider", u.sliderColor]),
|
|
7522
|
+
style: y(p.sliderStyles)
|
|
7036
7523
|
}, null, 6)) : s("", !0)
|
|
7037
|
-
], 2), n.tabs.length ? (b(), c("div",
|
|
7524
|
+
], 2), n.tabs.length ? (b(), c("div", Jr, [u.keepInDom ? (b(), o(i, {
|
|
7038
7525
|
key: 0,
|
|
7039
7526
|
name: p.transitionName
|
|
7040
7527
|
}, {
|
|
7041
|
-
default:
|
|
7528
|
+
default: N(() => [(b(!0), c(e, null, w(n.tabs, (e, t) => P((b(), o(m, {
|
|
7042
7529
|
key: e._uid,
|
|
7043
7530
|
item: e,
|
|
7044
|
-
class:
|
|
7531
|
+
class: _(p.contentClasses)
|
|
7045
7532
|
}, {
|
|
7046
|
-
default:
|
|
7533
|
+
default: N(() => [n.$slots[`item-content.${e._index + 1}`] ? T(n.$slots, `item-content.${e._index + 1}`, {
|
|
7047
7534
|
key: 0,
|
|
7048
7535
|
item: p.getOriginalItem(e),
|
|
7049
7536
|
index: e._index + 1,
|
|
7050
7537
|
active: e._index === p.activeTab._index
|
|
7051
|
-
}) :
|
|
7538
|
+
}) : T(n.$slots, "item-content", {
|
|
7052
7539
|
key: 1,
|
|
7053
7540
|
item: p.getOriginalItem(e),
|
|
7054
7541
|
index: e._index + 1,
|
|
@@ -7056,26 +7543,26 @@ function Pr(n, a, u, d, f, p) {
|
|
|
7056
7543
|
}, () => [e[u.itemContentKey] ? (b(), c("div", {
|
|
7057
7544
|
key: 0,
|
|
7058
7545
|
innerHTML: e[u.itemContentKey]
|
|
7059
|
-
}, null, 8,
|
|
7546
|
+
}, null, 8, Yr)) : s("", !0)])]),
|
|
7060
7547
|
_: 2
|
|
7061
|
-
}, 1032, ["item", "class"])), [[
|
|
7548
|
+
}, 1032, ["item", "class"])), [[ae, e._uid === p.activeTab._uid]])), 128))]),
|
|
7062
7549
|
_: 3
|
|
7063
7550
|
}, 8, ["name"])) : (b(), o(r, {
|
|
7064
7551
|
key: 1,
|
|
7065
7552
|
name: p.transitionName,
|
|
7066
7553
|
mode: p.transitionMode
|
|
7067
7554
|
}, {
|
|
7068
|
-
default:
|
|
7555
|
+
default: N(() => [(b(), o(t, { exclude: u.keepAlive ? "" : "tab-content" }, [(b(), o(m, {
|
|
7069
7556
|
key: n.activeTabUid,
|
|
7070
7557
|
item: p.activeTab,
|
|
7071
|
-
class:
|
|
7558
|
+
class: _(u.contentClass)
|
|
7072
7559
|
}, {
|
|
7073
|
-
default:
|
|
7560
|
+
default: N(({ item: t }) => [t ? (b(), c(e, { key: 0 }, [n.$slots[`item-content.${t._index + 1}`] ? T(n.$slots, `item-content.${t._index + 1}`, {
|
|
7074
7561
|
key: 0,
|
|
7075
7562
|
item: p.getOriginalItem(t),
|
|
7076
7563
|
index: t._index + 1,
|
|
7077
7564
|
active: t._uid === n.activeTabUid
|
|
7078
|
-
}) :
|
|
7565
|
+
}) : T(n.$slots, "item-content", {
|
|
7079
7566
|
key: 1,
|
|
7080
7567
|
item: p.getOriginalItem(t),
|
|
7081
7568
|
index: t._index + 1,
|
|
@@ -7083,14 +7570,15 @@ function Pr(n, a, u, d, f, p) {
|
|
|
7083
7570
|
}, () => [t[u.itemContentKey] ? (b(), c("div", {
|
|
7084
7571
|
key: 0,
|
|
7085
7572
|
innerHTML: t[u.itemContentKey]
|
|
7086
|
-
}, null, 8,
|
|
7573
|
+
}, null, 8, Xr)) : s("", !0)])], 64)) : s("", !0)]),
|
|
7087
7574
|
_: 3
|
|
7088
7575
|
}, 8, ["item", "class"]))], 1032, ["exclude"]))]),
|
|
7089
7576
|
_: 3
|
|
7090
7577
|
}, 8, ["name", "mode"]))])) : s("", !0)], 2);
|
|
7091
7578
|
}
|
|
7092
|
-
var
|
|
7579
|
+
var Qr = /* @__PURE__ */ J({
|
|
7093
7580
|
name: "w-tabs",
|
|
7581
|
+
mixins: [Z],
|
|
7094
7582
|
setup() {
|
|
7095
7583
|
return { tabsStableId: A() };
|
|
7096
7584
|
},
|
|
@@ -7154,7 +7642,7 @@ var Fr = /* @__PURE__ */ Y({
|
|
|
7154
7642
|
default: !1
|
|
7155
7643
|
}
|
|
7156
7644
|
},
|
|
7157
|
-
components: { TabContent:
|
|
7645
|
+
components: { TabContent: Wr },
|
|
7158
7646
|
emits: [
|
|
7159
7647
|
"input",
|
|
7160
7648
|
"update:modelValue",
|
|
@@ -7174,7 +7662,7 @@ var Fr = /* @__PURE__ */ Y({
|
|
|
7174
7662
|
}),
|
|
7175
7663
|
computed: {
|
|
7176
7664
|
contentClasses() {
|
|
7177
|
-
return
|
|
7665
|
+
return X(this.contentClass);
|
|
7178
7666
|
},
|
|
7179
7667
|
transitionName() {
|
|
7180
7668
|
return this.transition === !1 ? "" : this.transition || `w-tabs-slide-${this.direction}`;
|
|
@@ -7244,14 +7732,18 @@ var Fr = /* @__PURE__ */ Y({
|
|
|
7244
7732
|
barItemClasses(e) {
|
|
7245
7733
|
let t = e._index === this.activeTabIndex;
|
|
7246
7734
|
return {
|
|
7735
|
+
"w-ripple": this.rippleActive,
|
|
7247
7736
|
[`${this.bgColor}--bg`]: this.bgColor,
|
|
7248
7737
|
[this.color]: this.color && !e._disabled && !(this.activeClass && t),
|
|
7249
7738
|
"w-tabs__bar-item--active": t,
|
|
7250
7739
|
"w-tabs__bar-item--disabled": e._disabled,
|
|
7251
|
-
...
|
|
7252
|
-
...t ?
|
|
7740
|
+
...X(this.titleClass),
|
|
7741
|
+
...t ? X(this.activeClass) : {}
|
|
7253
7742
|
};
|
|
7254
7743
|
},
|
|
7744
|
+
onTabsBarPointerDown(e, t) {
|
|
7745
|
+
t._disabled || this.onRipple(e);
|
|
7746
|
+
},
|
|
7255
7747
|
openTab(e) {
|
|
7256
7748
|
this.prevTabIndex = this.activeTabIndex;
|
|
7257
7749
|
let t = this.tabsByUid[e];
|
|
@@ -7306,57 +7798,57 @@ var Fr = /* @__PURE__ */ Y({
|
|
|
7306
7798
|
e ? window.removeEventListener("resize", this.onResize) : (this.updateSlider(), window.addEventListener("resize", this.onResize));
|
|
7307
7799
|
}
|
|
7308
7800
|
}
|
|
7309
|
-
}, [["render",
|
|
7801
|
+
}, [["render", Zr]]), $r = { class: "w-table__scroll-wrap" }, ei = { ref: "colgroup" }, ti = ["width"], ni = { key: 0 }, ri = ["onClick"], ii = ["innerHTML"], ai = {
|
|
7310
7802
|
key: 0,
|
|
7311
7803
|
class: "w-table__progress-bar"
|
|
7312
|
-
},
|
|
7804
|
+
}, oi = ["colspan"], si = {
|
|
7313
7805
|
key: 0,
|
|
7314
7806
|
class: "w-table__progress-bar"
|
|
7315
|
-
},
|
|
7807
|
+
}, ci = ["colspan"], li = { class: "w-table__loading-text" }, ui = {
|
|
7316
7808
|
key: 1,
|
|
7317
7809
|
class: "no-data"
|
|
7318
|
-
},
|
|
7810
|
+
}, di = ["colspan"], fi = ["onClick"], pi = ["data-label"], mi = ["data-label"], hi = ["innerHTML"], gi = {
|
|
7319
7811
|
key: 2,
|
|
7320
7812
|
class: "w-table__row w-table__row--expansion"
|
|
7321
|
-
},
|
|
7813
|
+
}, _i = ["colspan"], vi = { key: 0 }, yi = {
|
|
7322
7814
|
key: 3,
|
|
7323
7815
|
class: "w-table__extra-row"
|
|
7324
|
-
},
|
|
7816
|
+
}, bi = {
|
|
7325
7817
|
key: 1,
|
|
7326
7818
|
class: "w-table__footer"
|
|
7327
|
-
},
|
|
7819
|
+
}, xi = {
|
|
7328
7820
|
key: 1,
|
|
7329
7821
|
class: "w-table__row"
|
|
7330
|
-
},
|
|
7822
|
+
}, Si = ["colspan"], Ci = {
|
|
7331
7823
|
key: 0,
|
|
7332
7824
|
class: "w-table__pagination w-pagination"
|
|
7333
|
-
},
|
|
7334
|
-
function
|
|
7335
|
-
let p =
|
|
7336
|
-
return b(), c("div", { class:
|
|
7825
|
+
}, wi = { class: "pages-wrap" }, Ti = { class: "w-pagination__results" };
|
|
7826
|
+
function Ei(t, n, r, i, a, u) {
|
|
7827
|
+
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");
|
|
7828
|
+
return b(), c("div", { class: _(["w-table w-table--wrap", u.classes]) }, [l("div", $r, [l("table", {
|
|
7337
7829
|
class: "w-table__table",
|
|
7338
7830
|
onMousedown: n[1] ||= (...e) => u.onMouseDown && u.onMouseDown(...e),
|
|
7339
7831
|
onMouseover: n[2] ||= (...e) => u.onMouseOver && u.onMouseOver(...e),
|
|
7340
7832
|
onMouseout: n[3] ||= (...e) => u.onMouseOut && u.onMouseOut(...e)
|
|
7341
7833
|
}, [
|
|
7342
|
-
l("colgroup",
|
|
7343
|
-
class:
|
|
7834
|
+
l("colgroup", ei, [(b(!0), c(e, null, w(r.headers, (e, t) => (b(), c("col", {
|
|
7835
|
+
class: _(["w-table__col", u.colClasses[t]]),
|
|
7344
7836
|
key: t,
|
|
7345
7837
|
width: e.width || null
|
|
7346
|
-
}, null, 10,
|
|
7347
|
-
r.noHeaders ? s("", !0) : (b(), c("thead",
|
|
7348
|
-
class:
|
|
7838
|
+
}, null, 10, ti))), 128))], 512),
|
|
7839
|
+
r.noHeaders ? s("", !0) : (b(), c("thead", ni, [l("tr", null, [(b(!0), c(e, null, w(r.headers, (i, a) => (b(), c("th", {
|
|
7840
|
+
class: _(["w-table__header", u.headerClasses(i)]),
|
|
7349
7841
|
key: a,
|
|
7350
7842
|
onClick: (e) => !t.colResizing.dragging && i.sortable !== !1 && u.sortTable(i)
|
|
7351
7843
|
}, [
|
|
7352
7844
|
i.sortable !== !1 && i.align === "right" ? (b(), o(p, {
|
|
7353
7845
|
key: 0,
|
|
7354
|
-
class:
|
|
7846
|
+
class: _(["w-table__header-sort", u.headerSortClasses(i)])
|
|
7355
7847
|
}, {
|
|
7356
|
-
default:
|
|
7848
|
+
default: N(() => [...n[8] ||= [d("wi-arrow-down", -1)]]),
|
|
7357
7849
|
_: 1
|
|
7358
7850
|
}, 8, ["class"])) : s("", !0),
|
|
7359
|
-
i.label ? (b(), c(e, { key: 1 }, [t.$slots["header-label"] ?
|
|
7851
|
+
i.label ? (b(), c(e, { key: 1 }, [t.$slots["header-label"] ? T(t.$slots, "header-label", {
|
|
7360
7852
|
key: 0,
|
|
7361
7853
|
header: i,
|
|
7362
7854
|
label: i.label,
|
|
@@ -7364,32 +7856,32 @@ function li(t, n, r, i, a, u) {
|
|
|
7364
7856
|
}, () => [d(O(i.label || ""), 1)]) : (b(), c("span", {
|
|
7365
7857
|
key: 1,
|
|
7366
7858
|
innerHTML: i.label || ""
|
|
7367
|
-
}, null, 8,
|
|
7859
|
+
}, null, 8, ii))], 64)) : s("", !0),
|
|
7368
7860
|
i.sortable !== !1 && i.align !== "right" ? (b(), o(p, {
|
|
7369
7861
|
key: 2,
|
|
7370
|
-
class:
|
|
7862
|
+
class: _(["w-table__header-sort", u.headerSortClasses(i)])
|
|
7371
7863
|
}, {
|
|
7372
|
-
default:
|
|
7864
|
+
default: N(() => [...n[9] ||= [d("wi-arrow-down", -1)]]),
|
|
7373
7865
|
_: 1
|
|
7374
7866
|
}, 8, ["class"])) : s("", !0),
|
|
7375
7867
|
a < r.headers.length - 1 && r.resizableColumns ? (b(), c("span", {
|
|
7376
7868
|
key: 3,
|
|
7377
|
-
class:
|
|
7869
|
+
class: _(["w-table__col-resizer", {
|
|
7378
7870
|
"w-table__col-resizer--hover": t.colResizing.hover === a,
|
|
7379
7871
|
"w-table__col-resizer--active": t.colResizing.columnIndex === a
|
|
7380
7872
|
}]),
|
|
7381
|
-
onClick: n[0] ||=
|
|
7873
|
+
onClick: n[0] ||= I(() => {}, ["stop"])
|
|
7382
7874
|
}, null, 2)) : s("", !0)
|
|
7383
|
-
], 10,
|
|
7384
|
-
default:
|
|
7875
|
+
], 10, ri))), 128))]), f(h, null, {
|
|
7876
|
+
default: N(() => [r.loading === "header" ? (b(), c("tr", ai, [l("td", { colspan: r.headers.length }, [f(m, { tile: "" })], 8, oi)])) : s("", !0)]),
|
|
7385
7877
|
_: 1
|
|
7386
7878
|
})])),
|
|
7387
7879
|
l("tbody", null, [
|
|
7388
|
-
r.loading === !0 ? (b(), c("tr",
|
|
7880
|
+
r.loading === !0 ? (b(), c("tr", si, [l("td", { colspan: r.headers.length }, [f(m, { tile: "" }), l("div", li, [T(t.$slots, "loading", {}, () => [n[10] ||= d("Loading...", -1)])])], 8, ci)])) : u.tableItems.length ? s("", !0) : (b(), c("tr", ui, [l("td", {
|
|
7389
7881
|
class: "w-table__cell text-center",
|
|
7390
7882
|
colspan: r.headers.length
|
|
7391
|
-
}, [
|
|
7392
|
-
u.tableItems.length && r.loading !== !0 ? (b(!0), c(e, { key: 2 },
|
|
7883
|
+
}, [T(t.$slots, "no-data", {}, () => [n[11] ||= d("No data to show.", -1)])], 8, di)])),
|
|
7884
|
+
u.tableItems.length && r.loading !== !0 ? (b(!0), c(e, { key: 2 }, w(u.paginatedItems, (n, i) => (b(), c(e, { key: i }, [t.$slots.item ? T(t.$slots, "item", {
|
|
7393
7885
|
key: 0,
|
|
7394
7886
|
item: n,
|
|
7395
7887
|
index: i + 1,
|
|
@@ -7401,32 +7893,32 @@ function li(t, n, r, i, a, u) {
|
|
|
7401
7893
|
}
|
|
7402
7894
|
}) : (b(), c("tr", {
|
|
7403
7895
|
key: 1,
|
|
7404
|
-
class:
|
|
7896
|
+
class: _(["w-table__row", {
|
|
7405
7897
|
"w-table__row--selected": u.selectedRowsByUid[n._uid] !== void 0,
|
|
7406
7898
|
"w-table__row--expanded": u.expandedRowsByUid[n._uid] !== void 0,
|
|
7407
7899
|
[n.class]: n.class
|
|
7408
7900
|
}]),
|
|
7409
7901
|
onClick: (e) => u.doSelectRow(n, i)
|
|
7410
|
-
}, [(b(!0), c(e, null,
|
|
7411
|
-
class:
|
|
7902
|
+
}, [(b(!0), c(e, null, w(r.headers, (a, o) => (b(), c(e, null, [t.$slots[`item-cell.${a.key}`] || t.$slots[`item-cell.${o + 1}`] || t.$slots["item-cell"] ? (b(), c("td", {
|
|
7903
|
+
class: _(["w-table__cell", {
|
|
7412
7904
|
[`text-${a.align || "left"}`]: !0,
|
|
7413
7905
|
"w-table__cell--sticky": a.sticky
|
|
7414
7906
|
}]),
|
|
7415
7907
|
key: `${o}-a`,
|
|
7416
7908
|
"data-label": a.label
|
|
7417
|
-
}, [t.$slots[`item-cell.${a.key}`] ?
|
|
7909
|
+
}, [t.$slots[`item-cell.${a.key}`] ? T(t.$slots, `item-cell.${a.key}`, {
|
|
7418
7910
|
key: 0,
|
|
7419
7911
|
header: a,
|
|
7420
7912
|
item: n,
|
|
7421
7913
|
label: n[a.key] || "",
|
|
7422
7914
|
index: i + 1
|
|
7423
|
-
}) : t.$slots[`item-cell.${o + 1}`] ?
|
|
7915
|
+
}) : t.$slots[`item-cell.${o + 1}`] ? T(t.$slots, `item-cell.${o + 1}`, {
|
|
7424
7916
|
key: 1,
|
|
7425
7917
|
header: a,
|
|
7426
7918
|
item: n,
|
|
7427
7919
|
label: n[a.key] || "",
|
|
7428
7920
|
index: i + 1
|
|
7429
|
-
}) : t.$slots["item-cell"] ?
|
|
7921
|
+
}) : t.$slots["item-cell"] ? T(t.$slots, "item-cell", {
|
|
7430
7922
|
key: 2,
|
|
7431
7923
|
header: a,
|
|
7432
7924
|
item: n,
|
|
@@ -7434,46 +7926,46 @@ function li(t, n, r, i, a, u) {
|
|
|
7434
7926
|
index: i + 1
|
|
7435
7927
|
}) : s("", !0), o < r.headers.length - 1 && r.resizableColumns ? (b(), c("span", {
|
|
7436
7928
|
key: 3,
|
|
7437
|
-
class:
|
|
7929
|
+
class: _(["w-table__col-resizer", {
|
|
7438
7930
|
"w-table__col-resizer--hover": t.colResizing.hover === o,
|
|
7439
7931
|
"w-table__col-resizer--active": t.colResizing.columnIndex === o
|
|
7440
7932
|
}])
|
|
7441
|
-
}, null, 2)) : s("", !0)], 10,
|
|
7442
|
-
class:
|
|
7933
|
+
}, null, 2)) : s("", !0)], 10, pi)) : (b(), c("td", {
|
|
7934
|
+
class: _(["w-table__cell", {
|
|
7443
7935
|
[`text-${a.align || "left"}`]: !0,
|
|
7444
7936
|
"w-table__cell--sticky": a.sticky
|
|
7445
7937
|
}]),
|
|
7446
7938
|
key: `${o}-b`,
|
|
7447
7939
|
"data-label": a.label
|
|
7448
|
-
}, [l("div", { innerHTML: n[a.key] || "" }, null, 8,
|
|
7940
|
+
}, [l("div", { innerHTML: n[a.key] || "" }, null, 8, hi), o < r.headers.length - 1 && r.resizableColumns ? (b(), c("span", {
|
|
7449
7941
|
key: 0,
|
|
7450
|
-
class:
|
|
7942
|
+
class: _(["w-table__col-resizer", {
|
|
7451
7943
|
"w-table__col-resizer--hover": t.colResizing.hover === o,
|
|
7452
7944
|
"w-table__col-resizer--active": t.colResizing.columnIndex === o
|
|
7453
7945
|
}])
|
|
7454
|
-
}, null, 2)) : s("", !0)], 10,
|
|
7946
|
+
}, null, 2)) : s("", !0)], 10, mi))], 64))), 256))], 10, fi)), u.expandedRowsByUid[n._uid] ? (b(), c("tr", gi, [l("td", {
|
|
7455
7947
|
class: "w-table__cell",
|
|
7456
7948
|
colspan: r.headers.length
|
|
7457
|
-
}, [f(
|
|
7458
|
-
default:
|
|
7949
|
+
}, [f(g, { y: "" }, {
|
|
7950
|
+
default: N(() => [u.expandedRowsByUid[n._uid] ? (b(), c("div", vi, [T(t.$slots, "row-expansion", {
|
|
7459
7951
|
item: n,
|
|
7460
7952
|
index: i + 1
|
|
7461
7953
|
})])) : s("", !0), i < r.headers.length - 1 && r.resizableColumns ? (b(), c("span", {
|
|
7462
7954
|
key: 1,
|
|
7463
|
-
class:
|
|
7955
|
+
class: _(["w-table__col-resizer", {
|
|
7464
7956
|
"w-table__col-resizer--hover": t.colResizing.hover === i,
|
|
7465
7957
|
"w-table__col-resizer--active": t.colResizing.columnIndex === t.j
|
|
7466
7958
|
}])
|
|
7467
7959
|
}, null, 2)) : s("", !0)]),
|
|
7468
7960
|
_: 2
|
|
7469
|
-
}, 1024)], 8,
|
|
7470
|
-
t.$slots["extra-row"] ? (b(), c("div",
|
|
7961
|
+
}, 1024)], 8, _i)])) : s("", !0)], 64))), 128)) : s("", !0),
|
|
7962
|
+
t.$slots["extra-row"] ? (b(), c("div", yi, [T(t.$slots, "extra-row")])) : s("", !0)
|
|
7471
7963
|
]),
|
|
7472
|
-
t.$slots.footer || t.$slots["footer-row"] ? (b(), c("tfoot",
|
|
7964
|
+
t.$slots.footer || t.$slots["footer-row"] ? (b(), c("tfoot", bi, [t.$slots["footer-row"] ? T(t.$slots, "footer-row", { key: 0 }) : t.$slots.footer ? (b(), c("tr", xi, [l("td", {
|
|
7473
7965
|
class: "w-table__cell",
|
|
7474
7966
|
colspan: r.headers.length
|
|
7475
|
-
}, [
|
|
7476
|
-
], 32)]), r.pagination && t.paginationConfig ? (b(), c("div",
|
|
7967
|
+
}, [T(t.$slots, "footer")], 8, Si)])) : s("", !0)])) : s("", !0)
|
|
7968
|
+
], 32)]), r.pagination && t.paginationConfig ? (b(), c("div", Ci, [T(t.$slots, "pagination", {
|
|
7477
7969
|
range: `${t.paginationConfig.start}-${t.paginationConfig.end}`,
|
|
7478
7970
|
total: t.paginationConfig.total,
|
|
7479
7971
|
pagesCount: t.paginationConfig.pagesCount,
|
|
@@ -7491,7 +7983,7 @@ function li(t, n, r, i, a, u) {
|
|
|
7491
7983
|
label: "Items per page",
|
|
7492
7984
|
"label-color": "inherit"
|
|
7493
7985
|
}, null, 8, ["modelValue", "items"])) : s("", !0),
|
|
7494
|
-
l("div",
|
|
7986
|
+
l("div", wi, [
|
|
7495
7987
|
f(y, {
|
|
7496
7988
|
class: "w-pagination__arrow w-pagination__arrow--prev",
|
|
7497
7989
|
onClick: n[6] ||= (e) => u.goToPage("-1"),
|
|
@@ -7500,7 +7992,7 @@ function li(t, n, r, i, a, u) {
|
|
|
7500
7992
|
text: "",
|
|
7501
7993
|
lg: ""
|
|
7502
7994
|
}, null, 8, ["disabled"]),
|
|
7503
|
-
t.paginationConfig.pagesCount > 7 ? (b(!0), c(e, { key: 0 },
|
|
7995
|
+
t.paginationConfig.pagesCount > 7 ? (b(!0), c(e, { key: 0 }, w(t.paginationConfig.pagesCount, (r) => (b(), c(e, { key: r }, [[
|
|
7504
7996
|
1,
|
|
7505
7997
|
t.paginationConfig.pagesCount,
|
|
7506
7998
|
t.paginationConfig.page - 1,
|
|
@@ -7508,12 +8000,12 @@ function li(t, n, r, i, a, u) {
|
|
|
7508
8000
|
t.paginationConfig.page + 1
|
|
7509
8001
|
].includes(r) ? (b(), o(y, {
|
|
7510
8002
|
key: 0,
|
|
7511
|
-
class:
|
|
8003
|
+
class: _(["w-pagination__page", { "w-pagination__page--active": r === t.paginationConfig.page }]),
|
|
7512
8004
|
onClick: (e) => r !== t.paginationConfig.page && u.goToPage(r),
|
|
7513
8005
|
round: "",
|
|
7514
8006
|
lg: ""
|
|
7515
8007
|
}, {
|
|
7516
|
-
default:
|
|
8008
|
+
default: N(() => [d(O(r), 1)]),
|
|
7517
8009
|
_: 2
|
|
7518
8010
|
}, 1032, ["onClick", "class"])) : [
|
|
7519
8011
|
1,
|
|
@@ -7523,21 +8015,21 @@ function li(t, n, r, i, a, u) {
|
|
|
7523
8015
|
t.paginationConfig.page + 1
|
|
7524
8016
|
].includes(r - 1) ? (b(), o(y, {
|
|
7525
8017
|
key: 1,
|
|
7526
|
-
class:
|
|
8018
|
+
class: _(["w-pagination__page", { "w-pagination__page--active": r === t.paginationConfig.page }]),
|
|
7527
8019
|
onClick: (e) => r !== t.paginationConfig.page && u.goToPage(r),
|
|
7528
8020
|
round: "",
|
|
7529
8021
|
lg: ""
|
|
7530
8022
|
}, {
|
|
7531
|
-
default:
|
|
8023
|
+
default: N(() => [...n[12] ||= [d("...", -1)]]),
|
|
7532
8024
|
_: 1
|
|
7533
|
-
}, 8, ["onClick", "class"])) : s("", !0)], 64))), 128)) : (b(!0), c(e, { key: 1 },
|
|
7534
|
-
class:
|
|
8025
|
+
}, 8, ["onClick", "class"])) : s("", !0)], 64))), 128)) : (b(!0), c(e, { key: 1 }, w(t.paginationConfig.pagesCount, (e) => (b(), o(y, {
|
|
8026
|
+
class: _(["w-pagination__page", { "w-pagination__page--active": e === t.paginationConfig.page }]),
|
|
7535
8027
|
key: e,
|
|
7536
8028
|
onClick: (n) => e !== t.paginationConfig.page && u.goToPage(e),
|
|
7537
8029
|
round: "",
|
|
7538
8030
|
lg: ""
|
|
7539
8031
|
}, {
|
|
7540
|
-
default:
|
|
8032
|
+
default: N(() => [d(O(e), 1)]),
|
|
7541
8033
|
_: 2
|
|
7542
8034
|
}, 1032, ["onClick", "class"]))), 128)),
|
|
7543
8035
|
f(y, {
|
|
@@ -7549,12 +8041,12 @@ function li(t, n, r, i, a, u) {
|
|
|
7549
8041
|
lg: ""
|
|
7550
8042
|
}, null, 8, ["disabled"])
|
|
7551
8043
|
]),
|
|
7552
|
-
l("span",
|
|
8044
|
+
l("span", Ti, O(t.paginationConfig.start) + "-" + O(t.paginationConfig.end || t.paginationConfig.total) + " of " + O(t.paginationConfig.total), 1)
|
|
7553
8045
|
])])) : s("", !0)], 2);
|
|
7554
8046
|
}
|
|
7555
8047
|
//#endregion
|
|
7556
8048
|
//#region src/wave-ui/components/w-table.vue
|
|
7557
|
-
var
|
|
8049
|
+
var Di = 15, Oi = /* @__PURE__ */ J({
|
|
7558
8050
|
name: "w-table",
|
|
7559
8051
|
props: {
|
|
7560
8052
|
items: {
|
|
@@ -7753,9 +8245,9 @@ var ui = 15, di = /* @__PURE__ */ Y({
|
|
|
7753
8245
|
this.colResizing.dragging = !0;
|
|
7754
8246
|
let o = e.pageX - t, s = i + a, c = i + o, l = a - o;
|
|
7755
8247
|
n.style.width = `${i + o}px`, r.style.width = `${a - o}px`;
|
|
7756
|
-
let u = o < 0 && n.offsetWidth > c || n.offsetWidth <=
|
|
8248
|
+
let u = o < 0 && n.offsetWidth > c || n.offsetWidth <= Di, d = o > 0 && r.offsetWidth > l;
|
|
7757
8249
|
if (u) {
|
|
7758
|
-
let e = Math.max(n.offsetWidth,
|
|
8250
|
+
let e = Math.max(n.offsetWidth, Di);
|
|
7759
8251
|
n.style.width = `${e}px`, r.style.width = `${s - e}px`;
|
|
7760
8252
|
} else d && (n.style.width = `${s - r.offsetWidth}px`, r.style.width = `${r.offsetWidth}px`);
|
|
7761
8253
|
},
|
|
@@ -7842,36 +8334,38 @@ var ui = 15, di = /* @__PURE__ */ Y({
|
|
|
7842
8334
|
this.updatePaginationConfig({ total: e });
|
|
7843
8335
|
}
|
|
7844
8336
|
}
|
|
7845
|
-
}, [["render",
|
|
8337
|
+
}, [["render", Ei]]), ki = [
|
|
7846
8338
|
"role",
|
|
7847
8339
|
"aria-pressed",
|
|
7848
8340
|
"tabindex"
|
|
7849
8341
|
];
|
|
7850
|
-
function
|
|
8342
|
+
function Ai(e, t, n, r, i, a) {
|
|
7851
8343
|
return b(), c("span", {
|
|
7852
|
-
class:
|
|
8344
|
+
class: _(["w-tag", a.classes]),
|
|
7853
8345
|
onClick: t[1] ||= (t) => {
|
|
7854
8346
|
e.$emit("update:modelValue", !n.modelValue), e.$emit("input", !n.modelValue);
|
|
7855
8347
|
},
|
|
7856
|
-
|
|
8348
|
+
onPointerdown: t[2] ||= (...e) => a.onTagPointerDown && a.onTagPointerDown(...e),
|
|
8349
|
+
onKeypress: t[3] ||= F((t) => {
|
|
7857
8350
|
e.$emit("update:modelValue", !n.modelValue), e.$emit("input", !n.modelValue);
|
|
7858
8351
|
}, ["enter"]),
|
|
7859
8352
|
role: n.modelValue !== -1 && "button",
|
|
7860
8353
|
"aria-pressed": n.modelValue !== -1 && (n.modelValue ? "true" : "false"),
|
|
7861
8354
|
tabindex: n.modelValue !== -1 && 0,
|
|
7862
|
-
style:
|
|
7863
|
-
}, [
|
|
8355
|
+
style: y(a.styles)
|
|
8356
|
+
}, [T(e.$slots, "default"), n.closable && n.modelValue ? (b(), c("i", {
|
|
7864
8357
|
key: 0,
|
|
7865
8358
|
class: "w-icon w-tag__closable wi-cross",
|
|
7866
|
-
onClick: t[0] ||=
|
|
8359
|
+
onClick: t[0] ||= I((t) => {
|
|
7867
8360
|
e.$emit("update:modelValue", !1), e.$emit("input", !1);
|
|
7868
8361
|
}, ["stop"]),
|
|
7869
8362
|
role: "icon",
|
|
7870
8363
|
"aria-hidden": "true"
|
|
7871
|
-
})) : s("", !0)], 46,
|
|
8364
|
+
})) : s("", !0)], 46, ki);
|
|
7872
8365
|
}
|
|
7873
|
-
var
|
|
8366
|
+
var ji = /* @__PURE__ */ J({
|
|
7874
8367
|
name: "w-tag",
|
|
8368
|
+
mixins: [Z],
|
|
7875
8369
|
props: {
|
|
7876
8370
|
modelValue: {
|
|
7877
8371
|
type: [Boolean, Number],
|
|
@@ -7905,6 +8399,7 @@ var mi = /* @__PURE__ */ Y({
|
|
|
7905
8399
|
[this.color]: this.color,
|
|
7906
8400
|
[`${this.bgColor}--bg`]: this.bgColor,
|
|
7907
8401
|
[`size--${this.presetSize}`]: !0,
|
|
8402
|
+
"w-ripple": this.rippleActive && this.modelValue !== -1,
|
|
7908
8403
|
"w-tag--dark": this.dark,
|
|
7909
8404
|
"w-tag--light": this.light,
|
|
7910
8405
|
"w-tag--clickable": this.modelValue !== -1,
|
|
@@ -7921,8 +8416,11 @@ var mi = /* @__PURE__ */ Y({
|
|
|
7921
8416
|
height: (isNaN(this.height) ? this.height : `${this.height}px`) || null
|
|
7922
8417
|
};
|
|
7923
8418
|
}
|
|
7924
|
-
}
|
|
7925
|
-
|
|
8419
|
+
},
|
|
8420
|
+
methods: { onTagPointerDown(e) {
|
|
8421
|
+
this.modelValue !== -1 && (e.target.closest?.(".w-tag__closable") || this.onRipple(e));
|
|
8422
|
+
} }
|
|
8423
|
+
}, [["render", Ai]]), Mi = ["for"], Ni = [
|
|
7926
8424
|
"id",
|
|
7927
8425
|
"name",
|
|
7928
8426
|
"placeholder",
|
|
@@ -7933,9 +8431,9 @@ var mi = /* @__PURE__ */ Y({
|
|
|
7933
8431
|
"disabled",
|
|
7934
8432
|
"required",
|
|
7935
8433
|
"tabindex"
|
|
7936
|
-
],
|
|
7937
|
-
function
|
|
7938
|
-
let f =
|
|
8434
|
+
], Pi = ["for"];
|
|
8435
|
+
function Fi(t, n, r, i, a, u) {
|
|
8436
|
+
let f = E("w-icon");
|
|
7939
8437
|
return b(), o(D(t.formRegister ? "w-form-element" : "div"), h({ ref: "formEl" }, t.formRegister && {
|
|
7940
8438
|
validators: t.validators,
|
|
7941
8439
|
inputValue: a.inputValue,
|
|
@@ -7953,24 +8451,24 @@ function vi(t, n, r, i, a, u) {
|
|
|
7953
8451
|
class: u.classes,
|
|
7954
8452
|
style: t.$attrs.style
|
|
7955
8453
|
}), {
|
|
7956
|
-
default:
|
|
8454
|
+
default: N(() => [
|
|
7957
8455
|
r.labelPosition === "left" ? (b(), c(e, { key: 0 }, [t.$slots.default || r.label ? (b(), c("label", {
|
|
7958
8456
|
key: 0,
|
|
7959
|
-
class:
|
|
8457
|
+
class: _(["w-textarea__label w-textarea__label--left w-form-el-shakable", t.labelClasses]),
|
|
7960
8458
|
for: t.inputId
|
|
7961
|
-
}, [
|
|
7962
|
-
l("div", { class:
|
|
7963
|
-
|
|
8459
|
+
}, [T(t.$slots, "default", {}, () => [d(O(r.label), 1)])], 10, Mi)) : s("", !0)], 64)) : s("", !0),
|
|
8460
|
+
l("div", { class: _(["w-textarea__textarea-wrap", u.inputWrapClasses]) }, [
|
|
8461
|
+
T(t.$slots, "icon-left", { inputId: t.inputId }, () => [r.innerIconLeft ? (b(), o(f, {
|
|
7964
8462
|
key: 0,
|
|
7965
8463
|
class: "w-textarea__icon w-textarea__icon--inner-left",
|
|
7966
8464
|
tag: "label",
|
|
7967
8465
|
for: t.inputId,
|
|
7968
8466
|
onClick: n[0] ||= (e) => t.$emit("click:inner-icon-left", e)
|
|
7969
8467
|
}, {
|
|
7970
|
-
default:
|
|
8468
|
+
default: N(() => [d(O(r.innerIconLeft), 1)]),
|
|
7971
8469
|
_: 1
|
|
7972
8470
|
}, 8, ["for"])) : s("", !0)]),
|
|
7973
|
-
|
|
8471
|
+
P(l("textarea", h({
|
|
7974
8472
|
class: "w-textarea__textarea",
|
|
7975
8473
|
ref: "textarea",
|
|
7976
8474
|
"onUpdate:modelValue": n[1] ||= (e) => a.inputValue = e
|
|
@@ -7988,27 +8486,27 @@ function vi(t, n, r, i, a, u) {
|
|
|
7988
8486
|
disabled: t.isDisabled || null,
|
|
7989
8487
|
required: t.required || null,
|
|
7990
8488
|
tabindex: t.tabindex || null
|
|
7991
|
-
}), null, 16,
|
|
8489
|
+
}), null, 16, Ni), [[M, a.inputValue]]),
|
|
7992
8490
|
r.labelPosition === "inside" && u.showLabelInside ? (b(), c(e, { key: 0 }, [t.$slots.default || r.label ? (b(), c("label", {
|
|
7993
8491
|
key: 0,
|
|
7994
|
-
class:
|
|
7995
|
-
}, [
|
|
7996
|
-
|
|
8492
|
+
class: _(["w-textarea__label w-textarea__label--inside w-form-el-shakable", t.labelClasses])
|
|
8493
|
+
}, [T(t.$slots, "default", {}, () => [d(O(r.label), 1)])], 2)) : s("", !0)], 64)) : s("", !0),
|
|
8494
|
+
T(t.$slots, "icon-right", { inputId: t.inputId }, () => [r.innerIconRight ? (b(), o(f, {
|
|
7997
8495
|
key: 0,
|
|
7998
8496
|
class: "w-textarea__icon w-textarea__icon--inner-right",
|
|
7999
8497
|
tag: "label",
|
|
8000
8498
|
for: t.inputId,
|
|
8001
8499
|
onClick: n[5] ||= (e) => t.$emit("click:inner-icon-right", e)
|
|
8002
8500
|
}, {
|
|
8003
|
-
default:
|
|
8501
|
+
default: N(() => [d(O(r.innerIconRight), 1)]),
|
|
8004
8502
|
_: 1
|
|
8005
8503
|
}, 8, ["for"])) : s("", !0)])
|
|
8006
8504
|
], 2),
|
|
8007
8505
|
r.labelPosition === "right" ? (b(), c(e, { key: 1 }, [t.$slots.default || r.label ? (b(), c("label", {
|
|
8008
8506
|
key: 0,
|
|
8009
|
-
class:
|
|
8507
|
+
class: _(["w-textarea__label w-textarea__label--right w-form-el-shakable", t.labelClasses]),
|
|
8010
8508
|
for: t.inputId
|
|
8011
|
-
}, [
|
|
8509
|
+
}, [T(t.$slots, "default", {}, () => [d(O(r.label), 1)])], 10, Pi)) : s("", !0)], 64)) : s("", !0)
|
|
8012
8510
|
]),
|
|
8013
8511
|
_: 3
|
|
8014
8512
|
}, 16, [
|
|
@@ -8018,10 +8516,13 @@ function vi(t, n, r, i, a, u) {
|
|
|
8018
8516
|
"style"
|
|
8019
8517
|
]);
|
|
8020
8518
|
}
|
|
8021
|
-
var
|
|
8519
|
+
var Ii = /* @__PURE__ */ J({
|
|
8022
8520
|
name: "w-textarea",
|
|
8023
|
-
mixins: [
|
|
8521
|
+
mixins: [$],
|
|
8024
8522
|
inheritAttrs: !1,
|
|
8523
|
+
setup() {
|
|
8524
|
+
return Q();
|
|
8525
|
+
},
|
|
8025
8526
|
props: {
|
|
8026
8527
|
modelValue: { default: "" },
|
|
8027
8528
|
label: { type: String },
|
|
@@ -8153,31 +8654,31 @@ var yi = /* @__PURE__ */ Y({
|
|
|
8153
8654
|
e ? this.getLineHeight() : this.height = null;
|
|
8154
8655
|
}
|
|
8155
8656
|
}
|
|
8156
|
-
}, [["render",
|
|
8157
|
-
function
|
|
8158
|
-
return b(), c("ul", { class:
|
|
8657
|
+
}, [["render", Fi]]), Li = ["innerHTML"], Ri = ["innerHTML"];
|
|
8658
|
+
function zi(t, n, r, i, a, s) {
|
|
8659
|
+
return b(), c("ul", { class: _(["w-timeline", s.classes]) }, [(b(!0), c(e, null, w(r.items, (e, n) => (b(), c("li", {
|
|
8159
8660
|
class: "w-timeline-item",
|
|
8160
8661
|
key: n
|
|
8161
|
-
}, [(b(), o(D(e[r.itemIconKey] || r.icon ? "w-icon" : "div"), { class:
|
|
8162
|
-
default:
|
|
8662
|
+
}, [(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 }]) }, {
|
|
8663
|
+
default: N(() => [d(O(e[r.itemIconKey] || r.icon), 1)]),
|
|
8163
8664
|
_: 2
|
|
8164
|
-
}, 1032, ["class"])), t.$slots[`item.${n + 1}`] ?
|
|
8665
|
+
}, 1032, ["class"])), t.$slots[`item.${n + 1}`] ? T(t.$slots, `item.${n + 1}`, {
|
|
8165
8666
|
key: 1,
|
|
8166
8667
|
item: e,
|
|
8167
8668
|
index: n + 1
|
|
8168
|
-
}) :
|
|
8669
|
+
}) : T(t.$slots, "item", {
|
|
8169
8670
|
key: 0,
|
|
8170
8671
|
item: e,
|
|
8171
8672
|
index: n + 1
|
|
8172
8673
|
}, () => [l("div", {
|
|
8173
|
-
class:
|
|
8674
|
+
class: _(["w-timeline-item__title", { [e[r.itemColorKey] || r.color]: e[r.itemColorKey] || r.color }]),
|
|
8174
8675
|
innerHTML: e[r.itemTitleKey]
|
|
8175
|
-
}, null, 10,
|
|
8676
|
+
}, null, 10, Li), l("div", {
|
|
8176
8677
|
class: "w-timeline-item__content",
|
|
8177
8678
|
innerHTML: e[r.itemContentKey]
|
|
8178
|
-
}, null, 8,
|
|
8679
|
+
}, null, 8, Ri)])]))), 128))], 2);
|
|
8179
8680
|
}
|
|
8180
|
-
var
|
|
8681
|
+
var Bi = /* @__PURE__ */ J({
|
|
8181
8682
|
name: "w-timeline",
|
|
8182
8683
|
props: {
|
|
8183
8684
|
items: {
|
|
@@ -8212,16 +8713,16 @@ var Ci = /* @__PURE__ */ Y({
|
|
|
8212
8713
|
"w-timeline--light": this.light
|
|
8213
8714
|
};
|
|
8214
8715
|
} }
|
|
8215
|
-
}, [["render",
|
|
8716
|
+
}, [["render", zi]]);
|
|
8216
8717
|
//#endregion
|
|
8217
8718
|
//#region src/wave-ui/components/w-toolbar.vue?vue&type=template&lang.js
|
|
8218
|
-
function
|
|
8719
|
+
function Vi(e, t, n, r, i, a) {
|
|
8219
8720
|
return b(), c("div", {
|
|
8220
|
-
class:
|
|
8221
|
-
style:
|
|
8222
|
-
}, [
|
|
8721
|
+
class: _(["w-toolbar", a.classes]),
|
|
8722
|
+
style: y(a.styles)
|
|
8723
|
+
}, [T(e.$slots, "default")], 6);
|
|
8223
8724
|
}
|
|
8224
|
-
var
|
|
8725
|
+
var Hi = /* @__PURE__ */ J({
|
|
8225
8726
|
name: "w-toolbar",
|
|
8226
8727
|
props: {
|
|
8227
8728
|
color: { type: String },
|
|
@@ -8276,27 +8777,27 @@ var Ti = /* @__PURE__ */ Y({
|
|
|
8276
8777
|
};
|
|
8277
8778
|
}
|
|
8278
8779
|
}
|
|
8279
|
-
}, [["render",
|
|
8780
|
+
}, [["render", Vi]]);
|
|
8280
8781
|
//#endregion
|
|
8281
8782
|
//#region src/wave-ui/components/w-tooltip.vue?vue&type=template&lang.js
|
|
8282
|
-
function
|
|
8283
|
-
return b(), c(e, null, [
|
|
8783
|
+
function Ui(t, n, i, a, o, l) {
|
|
8784
|
+
return b(), c(e, null, [T(t.$slots, "activator", { on: l.activatorEventHandlers }), f(r, {
|
|
8284
8785
|
name: l.transitionName,
|
|
8285
8786
|
appear: "",
|
|
8286
8787
|
onAfterLeave: t.onAfterLeave
|
|
8287
8788
|
}, {
|
|
8288
|
-
default:
|
|
8289
|
-
class:
|
|
8789
|
+
default: N(() => [t.detachableVisible ? (b(), c("div", {
|
|
8790
|
+
class: _(["w-tooltip", l.classes]),
|
|
8290
8791
|
ref: "detachable",
|
|
8291
8792
|
key: a.tooltipInstanceId,
|
|
8292
|
-
style:
|
|
8293
|
-
}, [
|
|
8793
|
+
style: y(l.styles)
|
|
8794
|
+
}, [T(t.$slots, "default")], 6)) : s("", !0)]),
|
|
8294
8795
|
_: 3
|
|
8295
8796
|
}, 8, ["name", "onAfterLeave"])], 64);
|
|
8296
8797
|
}
|
|
8297
|
-
var
|
|
8798
|
+
var Wi = /* @__PURE__ */ J({
|
|
8298
8799
|
name: "w-tooltip",
|
|
8299
|
-
mixins: [
|
|
8800
|
+
mixins: [Dn],
|
|
8300
8801
|
setup() {
|
|
8301
8802
|
return { tooltipInstanceId: A() };
|
|
8302
8803
|
},
|
|
@@ -8345,7 +8846,7 @@ var Di = /* @__PURE__ */ Y({
|
|
|
8345
8846
|
}),
|
|
8346
8847
|
computed: {
|
|
8347
8848
|
tooltipClasses() {
|
|
8348
|
-
return
|
|
8849
|
+
return X(this.tooltipClass);
|
|
8349
8850
|
},
|
|
8350
8851
|
transitionName() {
|
|
8351
8852
|
let e = this.effectiveDetachablePosition.replace(/top|bottom/, (e) => ({
|
|
@@ -8410,25 +8911,25 @@ var Di = /* @__PURE__ */ Y({
|
|
|
8410
8911
|
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)));
|
|
8411
8912
|
}
|
|
8412
8913
|
}
|
|
8413
|
-
}, [["render",
|
|
8914
|
+
}, [["render", Ui]]);
|
|
8414
8915
|
//#endregion
|
|
8415
8916
|
//#region src/wave-ui/components/transitions/w-transition-bounce.vue?vue&type=template&lang.js
|
|
8416
|
-
function
|
|
8917
|
+
function Gi(e, t, n, i, a, s) {
|
|
8417
8918
|
return b(), o(r, h({ name: "bounce" }, e.$props), {
|
|
8418
|
-
default:
|
|
8919
|
+
default: N(() => [T(e.$slots, "default")]),
|
|
8419
8920
|
_: 3
|
|
8420
8921
|
}, 16);
|
|
8421
8922
|
}
|
|
8422
|
-
var
|
|
8923
|
+
var Ki = /* @__PURE__ */ J({
|
|
8423
8924
|
name: "w-transition-bounce",
|
|
8424
8925
|
props: {
|
|
8425
8926
|
appear: { type: Boolean },
|
|
8426
8927
|
duration: { type: [Number, String] }
|
|
8427
8928
|
}
|
|
8428
|
-
}, [["render",
|
|
8929
|
+
}, [["render", Gi]]);
|
|
8429
8930
|
//#endregion
|
|
8430
8931
|
//#region src/wave-ui/components/transitions/w-transition-expand.vue?vue&type=template&lang.js
|
|
8431
|
-
function
|
|
8932
|
+
function qi(e, t, n, i, a, s) {
|
|
8432
8933
|
return b(), o(r, {
|
|
8433
8934
|
name: "expand",
|
|
8434
8935
|
mode: "out-in",
|
|
@@ -8443,7 +8944,7 @@ function Ai(e, t, n, i, a, s) {
|
|
|
8443
8944
|
onLeave: s.leave,
|
|
8444
8945
|
onAfterLeave: s.afterLeave
|
|
8445
8946
|
}, {
|
|
8446
|
-
default:
|
|
8947
|
+
default: N(() => [T(e.$slots, "default")]),
|
|
8447
8948
|
_: 3
|
|
8448
8949
|
}, 8, [
|
|
8449
8950
|
"onBeforeAppear",
|
|
@@ -8457,7 +8958,7 @@ function Ai(e, t, n, i, a, s) {
|
|
|
8457
8958
|
"onAfterLeave"
|
|
8458
8959
|
]);
|
|
8459
8960
|
}
|
|
8460
|
-
var
|
|
8961
|
+
var Ji = /* @__PURE__ */ J({
|
|
8461
8962
|
name: "w-transition-expand",
|
|
8462
8963
|
props: {
|
|
8463
8964
|
x: { type: Boolean },
|
|
@@ -8550,61 +9051,61 @@ var ji = /* @__PURE__ */ Y({
|
|
|
8550
9051
|
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;
|
|
8551
9052
|
}
|
|
8552
9053
|
}
|
|
8553
|
-
}, [["render",
|
|
9054
|
+
}, [["render", qi]]);
|
|
8554
9055
|
//#endregion
|
|
8555
9056
|
//#region src/wave-ui/components/transitions/w-transition-fade.vue?vue&type=template&lang.js
|
|
8556
|
-
function
|
|
9057
|
+
function Yi(e, t, n, i, a, s) {
|
|
8557
9058
|
return b(), o(r, h({ name: "fade" }, e.$props), {
|
|
8558
|
-
default:
|
|
9059
|
+
default: N(() => [T(e.$slots, "default")]),
|
|
8559
9060
|
_: 3
|
|
8560
9061
|
}, 16);
|
|
8561
9062
|
}
|
|
8562
|
-
var
|
|
9063
|
+
var Xi = /* @__PURE__ */ J({
|
|
8563
9064
|
name: "w-transition-fade",
|
|
8564
9065
|
props: {
|
|
8565
9066
|
appear: { type: Boolean },
|
|
8566
9067
|
duration: { type: [Number, String] }
|
|
8567
9068
|
}
|
|
8568
|
-
}, [["render",
|
|
9069
|
+
}, [["render", Yi]]);
|
|
8569
9070
|
//#endregion
|
|
8570
9071
|
//#region src/wave-ui/components/transitions/w-transition-scale.vue?vue&type=template&lang.js
|
|
8571
|
-
function
|
|
9072
|
+
function Zi(e, t, n, i, a, s) {
|
|
8572
9073
|
return b(), o(r, h({ name: "scale" }, e.$props), {
|
|
8573
|
-
default:
|
|
9074
|
+
default: N(() => [T(e.$slots, "default")]),
|
|
8574
9075
|
_: 3
|
|
8575
9076
|
}, 16);
|
|
8576
9077
|
}
|
|
8577
|
-
var
|
|
9078
|
+
var Qi = /* @__PURE__ */ J({
|
|
8578
9079
|
name: "w-transition-scale",
|
|
8579
9080
|
props: {
|
|
8580
9081
|
appear: { type: Boolean },
|
|
8581
9082
|
duration: { type: [Number, String] }
|
|
8582
9083
|
}
|
|
8583
|
-
}, [["render",
|
|
9084
|
+
}, [["render", Zi]]);
|
|
8584
9085
|
//#endregion
|
|
8585
9086
|
//#region src/wave-ui/components/transitions/w-transition-scale-fade.vue?vue&type=template&lang.js
|
|
8586
|
-
function
|
|
9087
|
+
function $i(e, t, n, i, a, s) {
|
|
8587
9088
|
return b(), o(r, h({ name: "scale-fade" }, e.$props), {
|
|
8588
|
-
default:
|
|
9089
|
+
default: N(() => [T(e.$slots, "default")]),
|
|
8589
9090
|
_: 3
|
|
8590
9091
|
}, 16);
|
|
8591
9092
|
}
|
|
8592
|
-
var
|
|
9093
|
+
var ea = /* @__PURE__ */ J({
|
|
8593
9094
|
name: "w-transition-scale-fade",
|
|
8594
9095
|
props: {
|
|
8595
9096
|
appear: { type: Boolean },
|
|
8596
9097
|
duration: { type: [Number, String] }
|
|
8597
9098
|
}
|
|
8598
|
-
}, [["render",
|
|
9099
|
+
}, [["render", $i]]);
|
|
8599
9100
|
//#endregion
|
|
8600
9101
|
//#region src/wave-ui/components/transitions/w-transition-slide.vue?vue&type=template&lang.js
|
|
8601
|
-
function
|
|
9102
|
+
function ta(e, t, n, i, a, s) {
|
|
8602
9103
|
return b(), o(r, h({ name: s.transitionName }, e.$props), {
|
|
8603
|
-
default:
|
|
9104
|
+
default: N(() => [T(e.$slots, "default")]),
|
|
8604
9105
|
_: 3
|
|
8605
9106
|
}, 16, ["name"]);
|
|
8606
9107
|
}
|
|
8607
|
-
var
|
|
9108
|
+
var na = /* @__PURE__ */ J({
|
|
8608
9109
|
name: "w-transition-slide",
|
|
8609
9110
|
props: {
|
|
8610
9111
|
appear: { type: Boolean },
|
|
@@ -8622,16 +9123,16 @@ var zi = /* @__PURE__ */ Y({
|
|
|
8622
9123
|
return `slide-${this.direction}`;
|
|
8623
9124
|
}
|
|
8624
9125
|
}
|
|
8625
|
-
}, [["render",
|
|
9126
|
+
}, [["render", ta]]);
|
|
8626
9127
|
//#endregion
|
|
8627
9128
|
//#region src/wave-ui/components/transitions/w-transition-slide-fade.vue?vue&type=template&lang.js
|
|
8628
|
-
function
|
|
9129
|
+
function ra(e, t, n, i, a, s) {
|
|
8629
9130
|
return b(), o(r, h({ name: s.transitionName }, e.$props), {
|
|
8630
|
-
default:
|
|
9131
|
+
default: N(() => [T(e.$slots, "default")]),
|
|
8631
9132
|
_: 3
|
|
8632
9133
|
}, 16, ["name"]);
|
|
8633
9134
|
}
|
|
8634
|
-
var
|
|
9135
|
+
var ia = /* @__PURE__ */ J({
|
|
8635
9136
|
name: "w-transition-slide-fade",
|
|
8636
9137
|
props: {
|
|
8637
9138
|
appear: { type: Boolean },
|
|
@@ -8649,39 +9150,39 @@ var Vi = /* @__PURE__ */ Y({
|
|
|
8649
9150
|
return `slide-fade-${this.direction}`;
|
|
8650
9151
|
}
|
|
8651
9152
|
}
|
|
8652
|
-
}, [["render",
|
|
9153
|
+
}, [["render", ra]]);
|
|
8653
9154
|
//#endregion
|
|
8654
9155
|
//#region src/wave-ui/components/transitions/w-transition-twist.vue?vue&type=template&lang.js
|
|
8655
|
-
function
|
|
9156
|
+
function aa(e, t, n, i, a, s) {
|
|
8656
9157
|
return b(), o(r, h({ name: "twist" }, e.$props), {
|
|
8657
|
-
default:
|
|
9158
|
+
default: N(() => [T(e.$slots, "default")]),
|
|
8658
9159
|
_: 3
|
|
8659
9160
|
}, 16);
|
|
8660
9161
|
}
|
|
8661
|
-
var
|
|
9162
|
+
var oa = /* @__PURE__ */ J({
|
|
8662
9163
|
name: "w-transition-twist",
|
|
8663
9164
|
props: {
|
|
8664
9165
|
appear: { type: Boolean },
|
|
8665
9166
|
duration: { type: [Number, String] }
|
|
8666
9167
|
}
|
|
8667
|
-
}, [["render",
|
|
9168
|
+
}, [["render", aa]]), sa = ["innerHTML"], ca = {
|
|
8668
9169
|
key: 1,
|
|
8669
9170
|
class: "ml1"
|
|
8670
9171
|
};
|
|
8671
|
-
function
|
|
8672
|
-
let f =
|
|
8673
|
-
return b(), c("ul", { class:
|
|
8674
|
-
class:
|
|
9172
|
+
function la(t, n, r, i, a, u) {
|
|
9173
|
+
let f = E("w-button"), p = E("w-icon"), m = E("w-tree", !0);
|
|
9174
|
+
return b(), c("ul", { class: _(["w-tree", u.classes]) }, [(b(!0), c(e, null, w(t.currentDepthItems, (e, i) => (b(), c("li", {
|
|
9175
|
+
class: _(["w-tree__item", u.itemClasses(e)]),
|
|
8675
9176
|
key: i
|
|
8676
9177
|
}, [(b(), o(D(u.getTreeItemComponent(e)), h({ class: "w-tree__item-label" }, { ref_for: !0 }, e.route && { [!t.$router || u.hasExternalLink(e) ? "href" : "to"]: e.route }, {
|
|
8677
9178
|
onClick: (t) => !r.disabled && !e.disabled && u.onLabelClick(e, t),
|
|
8678
9179
|
onKeydown: (t) => !r.disabled && !e.disabled && u.onLabelKeydown(e, t),
|
|
8679
9180
|
tabindex: u.getTreeItemTabindex(e)
|
|
8680
9181
|
}), {
|
|
8681
|
-
default:
|
|
9182
|
+
default: N(() => [(e.children || e.branch) && (r.expandOpenIcon && e.open || r.expandIcon) && !(r.unexpandableEmpty && !e.children) ? (b(), o(f, {
|
|
8682
9183
|
key: 0,
|
|
8683
9184
|
class: "w-tree__item-expand",
|
|
8684
|
-
onClick:
|
|
9185
|
+
onClick: I((t) => !r.disabled && !e.disabled && u.onLabelClick(e, t), ["stop"]),
|
|
8685
9186
|
color: "inherit",
|
|
8686
9187
|
icon: e.open && r.expandOpenIcon || r.expandIcon,
|
|
8687
9188
|
"icon-props": { rotate90a: !e.open },
|
|
@@ -8694,7 +9195,7 @@ function Ki(t, n, r, i, a, u) {
|
|
|
8694
9195
|
"icon",
|
|
8695
9196
|
"icon-props",
|
|
8696
9197
|
"disabled"
|
|
8697
|
-
])) : s("", !0),
|
|
9198
|
+
])) : s("", !0), T(t.$slots, "item", {
|
|
8698
9199
|
item: e.originalItem,
|
|
8699
9200
|
depth: r.depth,
|
|
8700
9201
|
path: e.path,
|
|
@@ -8705,11 +9206,11 @@ function Ki(t, n, r, i, a, u) {
|
|
|
8705
9206
|
class: "w-tree__item-icon",
|
|
8706
9207
|
color: e.originalItem[r.itemIconColorKey] || r.iconColor
|
|
8707
9208
|
}, {
|
|
8708
|
-
default:
|
|
9209
|
+
default: N(() => [d(O(u.itemIcon(e)), 1)]),
|
|
8709
9210
|
_: 2
|
|
8710
9211
|
}, 1032, ["color"])) : s("", !0),
|
|
8711
|
-
l("span", { innerHTML: e.label }, null, 8,
|
|
8712
|
-
r.counts && (e.children || e.branch) ? (b(), c("span",
|
|
9212
|
+
l("span", { innerHTML: e.label }, null, 8, sa),
|
|
9213
|
+
r.counts && (e.children || e.branch) ? (b(), c("span", ca, "(" + O(e.originalItem.children?.length || 0) + ")", 1)) : s("", !0)
|
|
8713
9214
|
])]),
|
|
8714
9215
|
_: 2
|
|
8715
9216
|
}, 1040, [
|
|
@@ -8721,7 +9222,7 @@ function Ki(t, n, r, i, a, u) {
|
|
|
8721
9222
|
onAfterEnter: (n) => t.$emit("open", u.emitPayload(e)),
|
|
8722
9223
|
onAfterLeave: (n) => t.$emit("close", u.emitPayload(e))
|
|
8723
9224
|
}, {
|
|
8724
|
-
default:
|
|
9225
|
+
default: N(() => [e.children && e.open ? (b(), o(m, h({
|
|
8725
9226
|
key: 0,
|
|
8726
9227
|
ref_for: !0
|
|
8727
9228
|
}, t.$props, {
|
|
@@ -8736,7 +9237,7 @@ function Ki(t, n, r, i, a, u) {
|
|
|
8736
9237
|
onSelect: n[5] ||= (e) => t.$emit("select", e),
|
|
8737
9238
|
"onUpdate:modelValue": n[6] ||= (e) => t.$emit("update:model-value", e)
|
|
8738
9239
|
}), {
|
|
8739
|
-
item:
|
|
9240
|
+
item: N(({ item: e, depth: n, path: r, open: i }) => [T(t.$slots, "item", {
|
|
8740
9241
|
item: e,
|
|
8741
9242
|
depth: n,
|
|
8742
9243
|
path: r,
|
|
@@ -8755,7 +9256,7 @@ function Ki(t, n, r, i, a, u) {
|
|
|
8755
9256
|
"onAfterLeave"
|
|
8756
9257
|
]))], 2))), 128))], 2);
|
|
8757
9258
|
}
|
|
8758
|
-
var
|
|
9259
|
+
var ua = /* @__PURE__ */ J({
|
|
8759
9260
|
name: "w-tree",
|
|
8760
9261
|
props: {
|
|
8761
9262
|
modelValue: { type: [Object, Array] },
|
|
@@ -8940,66 +9441,66 @@ var qi = /* @__PURE__ */ Y({
|
|
|
8940
9441
|
unmounted() {
|
|
8941
9442
|
this.dataPropUnwatch();
|
|
8942
9443
|
}
|
|
8943
|
-
}, [["render",
|
|
8944
|
-
WAccordion: () =>
|
|
8945
|
-
WAccordionItem: () =>
|
|
8946
|
-
WAlert: () =>
|
|
8947
|
-
WApp: () =>
|
|
8948
|
-
WAutocomplete: () =>
|
|
8949
|
-
WBadge: () =>
|
|
8950
|
-
WBreadcrumbs: () =>
|
|
8951
|
-
WButton: () =>
|
|
8952
|
-
WCard: () =>
|
|
8953
|
-
WCheckbox: () =>
|
|
8954
|
-
WCheckboxes: () =>
|
|
8955
|
-
WConfirm: () =>
|
|
8956
|
-
WDatePicker: () =>
|
|
8957
|
-
WDialog: () =>
|
|
8958
|
-
WDivider: () =>
|
|
8959
|
-
WDrawer: () =>
|
|
8960
|
-
WFlex: () =>
|
|
8961
|
-
WForm: () =>
|
|
8962
|
-
WFormElement: () =>
|
|
8963
|
-
WGrid: () =>
|
|
8964
|
-
WIcon: () =>
|
|
8965
|
-
WImage: () =>
|
|
8966
|
-
WInput: () =>
|
|
8967
|
-
WList: () =>
|
|
8968
|
-
WMenu: () =>
|
|
8969
|
-
WNotification: () =>
|
|
8970
|
-
WOverlay: () =>
|
|
8971
|
-
WParallax: () =>
|
|
8972
|
-
WProgress: () =>
|
|
8973
|
-
WRadio: () =>
|
|
8974
|
-
WRadios: () =>
|
|
8975
|
-
WRating: () =>
|
|
8976
|
-
WScrollable: () =>
|
|
8977
|
-
WSelect: () =>
|
|
8978
|
-
WSlider: () =>
|
|
8979
|
-
WSpinner: () =>
|
|
8980
|
-
WSteps: () =>
|
|
8981
|
-
WSwitch: () =>
|
|
8982
|
-
WTable: () =>
|
|
8983
|
-
WTabs: () =>
|
|
8984
|
-
WTag: () =>
|
|
8985
|
-
WTextarea: () =>
|
|
8986
|
-
WTimeline: () =>
|
|
8987
|
-
WToolbar: () =>
|
|
8988
|
-
WTooltip: () =>
|
|
8989
|
-
WTransitionBounce: () =>
|
|
8990
|
-
WTransitionExpand: () =>
|
|
8991
|
-
WTransitionFade: () =>
|
|
8992
|
-
WTransitionScale: () =>
|
|
8993
|
-
WTransitionScaleFade: () =>
|
|
8994
|
-
WTransitionSlide: () =>
|
|
8995
|
-
WTransitionSlideFade: () =>
|
|
8996
|
-
WTransitionTwist: () =>
|
|
8997
|
-
WTree: () =>
|
|
8998
|
-
}),
|
|
8999
|
-
|
|
9000
|
-
components:
|
|
9444
|
+
}, [["render", la]]), da = /* @__PURE__ */ L({
|
|
9445
|
+
WAccordion: () => Ze,
|
|
9446
|
+
WAccordionItem: () => Ye,
|
|
9447
|
+
WAlert: () => et,
|
|
9448
|
+
WApp: () => ft,
|
|
9449
|
+
WAutocomplete: () => lt,
|
|
9450
|
+
WBadge: () => ht,
|
|
9451
|
+
WBreadcrumbs: () => vt,
|
|
9452
|
+
WButton: () => wt,
|
|
9453
|
+
WCard: () => Dt,
|
|
9454
|
+
WCheckbox: () => Pt,
|
|
9455
|
+
WCheckboxes: () => Lt,
|
|
9456
|
+
WConfirm: () => zt,
|
|
9457
|
+
WDatePicker: () => Vt,
|
|
9458
|
+
WDialog: () => Ut,
|
|
9459
|
+
WDivider: () => Kt,
|
|
9460
|
+
WDrawer: () => Xt,
|
|
9461
|
+
WFlex: () => Qt,
|
|
9462
|
+
WForm: () => tn,
|
|
9463
|
+
WFormElement: () => rn,
|
|
9464
|
+
WGrid: () => on,
|
|
9465
|
+
WIcon: () => cn,
|
|
9466
|
+
WImage: () => fn,
|
|
9467
|
+
WInput: () => Sn,
|
|
9468
|
+
WList: () => wn,
|
|
9469
|
+
WMenu: () => kn,
|
|
9470
|
+
WNotification: () => jn,
|
|
9471
|
+
WOverlay: () => Nn,
|
|
9472
|
+
WParallax: () => In,
|
|
9473
|
+
WProgress: () => Wn,
|
|
9474
|
+
WRadio: () => Zn,
|
|
9475
|
+
WRadios: () => er,
|
|
9476
|
+
WRating: () => ir,
|
|
9477
|
+
WScrollable: () => ur,
|
|
9478
|
+
WSelect: () => gr,
|
|
9479
|
+
WSlider: () => kr,
|
|
9480
|
+
WSpinner: () => Mr,
|
|
9481
|
+
WSteps: () => Pr,
|
|
9482
|
+
WSwitch: () => Vr,
|
|
9483
|
+
WTable: () => Oi,
|
|
9484
|
+
WTabs: () => Qr,
|
|
9485
|
+
WTag: () => ji,
|
|
9486
|
+
WTextarea: () => Ii,
|
|
9487
|
+
WTimeline: () => Bi,
|
|
9488
|
+
WToolbar: () => Hi,
|
|
9489
|
+
WTooltip: () => Wi,
|
|
9490
|
+
WTransitionBounce: () => Ki,
|
|
9491
|
+
WTransitionExpand: () => Ji,
|
|
9492
|
+
WTransitionFade: () => Xi,
|
|
9493
|
+
WTransitionScale: () => Qi,
|
|
9494
|
+
WTransitionScaleFade: () => ea,
|
|
9495
|
+
WTransitionSlide: () => na,
|
|
9496
|
+
WTransitionSlideFade: () => ia,
|
|
9497
|
+
WTransitionTwist: () => oa,
|
|
9498
|
+
WTree: () => ua
|
|
9499
|
+
}), fa = ze.install;
|
|
9500
|
+
ze.install = (e, t = {}) => fa.call(ze, e, {
|
|
9501
|
+
components: da,
|
|
9001
9502
|
...t
|
|
9002
9503
|
});
|
|
9003
|
-
var
|
|
9504
|
+
var pa = ze;
|
|
9004
9505
|
//#endregion
|
|
9005
|
-
export {
|
|
9506
|
+
export { pa as default };
|