@ianicdev/datatables2 0.13.0 → 0.13.2
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/{Comparison-D6HBNU3H.cjs → Comparison-5mmMEz2U.cjs} +1 -1
- package/dist/{Comparison-BG-Av227.js → Comparison-CjJmKbUI.js} +1 -1
- package/dist/{Datepicker-DSLpt4OB.js → Datepicker-B0nM8Hwn.js} +2 -2
- package/dist/{Datepicker-r5gSym8T.cjs → Datepicker-nokf6x-X.cjs} +1 -1
- package/dist/{Options-Blrlw7tQ.js → Options-Bj_HI8lq.js} +3 -3
- package/dist/{Options-XguddjK3.cjs → Options-CFuTd6RH.cjs} +1 -1
- package/dist/{RefreshTable-C2WfhpKs.cjs → RefreshTable-CP3TtAhj.cjs} +1 -1
- package/dist/{RefreshTable-R52OZtTl.js → RefreshTable-DGaEfdXL.js} +1 -1
- package/dist/{Search-IT89uB83.js → Search-CHZzma0w.js} +2 -2
- package/dist/{Search-Cczo6dCN.cjs → Search-QHvBXpiL.cjs} +1 -1
- package/dist/{Table-BXJLnWb1.cjs → Table-DlA37K_x.cjs} +1 -1
- package/dist/{Table-Bif19r-B.js → Table-GSeivIYB.js} +3 -3
- package/dist/{TableServer-CuNWyWO4.js → TableServer-B4xTmowi.js} +3 -3
- package/dist/{TableServer-CB-wtcXC.cjs → TableServer-BpqTvgRv.cjs} +1 -1
- package/dist/{cellRender-BF5KH9lc.js → cellRender-CELfjePX.js} +2 -2
- package/dist/{cellRender-BmjgEfnE.cjs → cellRender-CH-xXPkU.cjs} +1 -1
- package/dist/{dataTables-D9OFlimC.cjs → dataTables-D0-m93bp.cjs} +1 -1
- package/dist/{dataTables-CjXckK5A.js → dataTables-DRImfSOv.js} +1 -1
- package/dist/datatables.cjs +1 -1
- package/dist/datatables.js +1 -1
- package/dist/{index-tzUV9WuN.cjs → index-B0PH010H.cjs} +1 -1
- package/dist/{index-BB3QPzYD.js → index-BgTLLLRJ.js} +833 -829
- package/dist/{index-KUJXI_uc.js → index-C1YF3-B4.js} +2 -2
- package/dist/{index-Nt9U3f_Q.js → index-CgIh2BvP.js} +1 -1
- package/dist/{index-B1Nh-PaB.cjs → index-CwAZ9-MC.cjs} +1 -1
- package/dist/{index-uDBhDSNL.cjs → index-DSddKSzj.cjs} +1 -1
- package/dist/{index-D_QdF2Rl.cjs → index-D_erx3R7.cjs} +1 -1
- package/dist/{index-DZTxINzs.js → index-DflXGVoK.js} +2 -2
- package/dist/{useColumns-BrzQtJ3S.js → useColumns-0KwhIKoh.js} +2 -2
- package/dist/{useColumns-C659ZaSh.cjs → useColumns-vtOcqRK0.cjs} +1 -1
- package/package.json +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { defineStore as
|
|
3
|
-
import { u as Ft, m as Kt, P as
|
|
4
|
-
import { useEventBus as
|
|
1
|
+
import { ref as G, inject as Pe, computed as I, toRef as E, shallowRef as te, watch as se, createVNode as g, normalizeStyle as xe, normalizeClass as re, createElementVNode as b, mergeProps as L, withDirectives as Ue, vShow as _t, Fragment as ce, toDisplayString as Vt, useModel as Pt, openBlock as oe, createBlock as ye, withCtx as Ce, createElementBlock as Ke, renderList as Wt, unref as $, mergeModels as qt, useId as Xe, provide as We, onScopeDispose as rt, nextTick as ke, onBeforeMount as wn, onBeforeUnmount as kl, onMounted as at, cloneVNode as _n, watchEffect as zt, toValue as Ut, createTextVNode as Sl, defineAsyncComponent as Ee, resolveDynamicComponent as $e, onUnmounted as Pn, isRef as xt, createCommentVNode as Me, defineComponent as At, useTemplateRef as Cl } from "vue";
|
|
2
|
+
import { defineStore as Vl } from "pinia";
|
|
3
|
+
import { u as Ft, m as Kt, P as xl, c as Ne, a as An, e as Fn, r as Dn, g as ie, b as Il, d as wl, f as It, I as ct, h as de, V as rl, i as Se, j as _l, p as X, k as he, l as Pl, n as Oe, o as Tn, q as be, s as ot, t as Jt, v as qe, w as Xt, x as He, R as lt, y as it, z as Yt, A as Dt, B as Qt, C as gt, D as Bn, E as Ve, F as cl, G as Al, H as Fl, J as Dl, K as Tl, L as Fe, M as nt, N as Rn, O as Bl, Q as yt, S as En, T as Zt, U as ht, W as el, X as Le, Y as Tt, Z as bt, _ as tl, $ as Rl, a0 as El, a1 as ll, a2 as pt, a3 as Ol, a4 as Te, a5 as kt, a6 as dt, a7 as Ye, a8 as $l, a9 as nl, aa as Bt, ab as Ml, ac as Nl, ad as Ll, ae as jt, af as On, ag as Hl, ah as $n, ai as Mn, aj as Nn, ak as zl, al as et, am as Ul, an as Ln, ao as dl, ap as St, aq as Kl, ar as Hn, as as zn, at as jl, au as Gl, av as al, aw as vt, ax as Un, ay as ze, az as Wl, aA as ql, aB as wt, aC as Jl, aD as Kn, aE as jn, aF as Gn, aG as Wn, aH as qn, aI as Jn, aJ as vl, aK as Xn, aL as Yn, aM as tt, aN as Qn, aO as Zn, aP as ea, aQ as ta } from "./dataTables-DRImfSOv.js";
|
|
4
|
+
import { useEventBus as Xl, createSharedComposable as la, useResizeObserver as na } from "@vueuse/core";
|
|
5
5
|
import { useI18n as aa } from "vue-i18n";
|
|
6
|
-
const Rt =
|
|
7
|
-
const e =
|
|
8
|
-
const
|
|
6
|
+
const Rt = Vl("datatables", () => {
|
|
7
|
+
const e = G([]), a = ({ table_id: i }) => {
|
|
8
|
+
const o = e.value.findIndex((d) => d.id === i), r = {
|
|
9
9
|
search: {
|
|
10
10
|
query: ""
|
|
11
11
|
},
|
|
@@ -21,18 +21,18 @@ const Rt = Cl("datatables", () => {
|
|
|
21
21
|
state: {}
|
|
22
22
|
}
|
|
23
23
|
};
|
|
24
|
-
|
|
25
|
-
}, t = async (
|
|
26
|
-
const r = new TextEncoder().encode(
|
|
24
|
+
o !== -1 && e.value.splice(o, 1), e.value.push({ id: i, ...r });
|
|
25
|
+
}, t = async (i) => {
|
|
26
|
+
const r = new TextEncoder().encode(i), d = await crypto.subtle.digest("SHA-256", r);
|
|
27
27
|
return Array.from(new Uint8Array(d)).map((v) => v.toString(16).padStart(2, "0")).join("");
|
|
28
|
-
}, n = ({ table_id:
|
|
29
|
-
t(JSON.stringify(
|
|
30
|
-
l({ table_id:
|
|
28
|
+
}, n = ({ table_id: i, headers: o }) => {
|
|
29
|
+
t(JSON.stringify(o ?? [])).then((r) => {
|
|
30
|
+
l({ table_id: i, name: "options", value: { hash: r } });
|
|
31
31
|
});
|
|
32
|
-
}, l = ({ table_id:
|
|
32
|
+
}, l = ({ table_id: i, name: o, value: r }) => {
|
|
33
33
|
e.value = e.value.map((d) => {
|
|
34
|
-
if (d.id ===
|
|
35
|
-
const c = d[
|
|
34
|
+
if (d.id === i && d.hasOwnProperty(o)) {
|
|
35
|
+
const c = d[o];
|
|
36
36
|
if (c && typeof r == "object")
|
|
37
37
|
for (const m in r)
|
|
38
38
|
m in c && (c[m] = r[m]);
|
|
@@ -46,10 +46,10 @@ const Rt = Cl("datatables", () => {
|
|
|
46
46
|
// Store Methods
|
|
47
47
|
addTable: a,
|
|
48
48
|
setData: l,
|
|
49
|
-
restoreData: ({ table_id:
|
|
50
|
-
e.value = e.value.map((r) => (r.id ===
|
|
49
|
+
restoreData: ({ table_id: i, data: o }) => {
|
|
50
|
+
e.value = e.value.map((r) => (r.id === i && (r = o), r));
|
|
51
51
|
},
|
|
52
|
-
getCurrentTable: (
|
|
52
|
+
getCurrentTable: (i) => e.value.find((o) => o.id === i),
|
|
53
53
|
// Hash
|
|
54
54
|
hashString: t,
|
|
55
55
|
setTableHash: n
|
|
@@ -62,11 +62,11 @@ function Et() {
|
|
|
62
62
|
return (n.value.options?.columns.sorted ?? []).filter((m) => r.includes(m)).map(
|
|
63
63
|
(m) => t.headers.find((v) => v.key === m)
|
|
64
64
|
);
|
|
65
|
-
}), s = I(() => n.value.hardFilters?.query),
|
|
65
|
+
}), s = I(() => n.value.hardFilters?.query), i = I(() => n.value.advancedFilters?.query);
|
|
66
66
|
return {
|
|
67
67
|
tableState: n,
|
|
68
68
|
searchState: l,
|
|
69
|
-
advancedFiltersState:
|
|
69
|
+
advancedFiltersState: i,
|
|
70
70
|
hardFiltersState: s,
|
|
71
71
|
headersState: u,
|
|
72
72
|
saveTableOptions: (r) => {
|
|
@@ -105,25 +105,25 @@ function Nt(e, a, t) {
|
|
|
105
105
|
return l;
|
|
106
106
|
}
|
|
107
107
|
async function fl(e, a, t, n) {
|
|
108
|
-
const l = t ? "scrollLeft" : "scrollTop", u = Kt(n?.options ?? ia(), a), s = n?.rtl.value,
|
|
108
|
+
const l = t ? "scrollLeft" : "scrollTop", u = Kt(n?.options ?? ia(), a), s = n?.rtl.value, i = (typeof e == "number" ? e : ol(e)) ?? 0, o = u.container === "parent" && i instanceof HTMLElement ? i.parentElement : ua(u.container), r = xl() ? u.patterns.instant : typeof u.easing == "function" ? u.easing : u.patterns[u.easing];
|
|
109
109
|
if (!r) throw new TypeError(`Easing function "${u.easing}" not found.`);
|
|
110
110
|
let d;
|
|
111
|
-
if (typeof
|
|
112
|
-
d = Nt(
|
|
113
|
-
else if (d = Nt(
|
|
114
|
-
const y = window.getComputedStyle(
|
|
111
|
+
if (typeof i == "number")
|
|
112
|
+
d = Nt(i, t, s);
|
|
113
|
+
else if (d = Nt(i, t, s) - Nt(o, t, s), u.layout) {
|
|
114
|
+
const y = window.getComputedStyle(i).getPropertyValue("--v-layout-top");
|
|
115
115
|
y && (d -= parseInt(y, 10));
|
|
116
116
|
}
|
|
117
|
-
d += u.offset, d = ra(
|
|
118
|
-
const c =
|
|
117
|
+
d += u.offset, d = ra(o, d, !!s, !!t);
|
|
118
|
+
const c = o[l] ?? 0;
|
|
119
119
|
if (d === c) return Promise.resolve(d);
|
|
120
120
|
const m = performance.now();
|
|
121
121
|
return new Promise((v) => requestAnimationFrame(function y(h) {
|
|
122
122
|
const w = (h - m) / u.duration, P = Math.floor(c + (d - c) * r(Ne(w, 0, 1)));
|
|
123
|
-
if (
|
|
123
|
+
if (o[l] = P, w >= 1 && Math.abs(P - o[l]) < 10)
|
|
124
124
|
return v(d);
|
|
125
125
|
if (w > 2)
|
|
126
|
-
return An("Scroll target is not reachable"), v(
|
|
126
|
+
return An("Scroll target is not reachable"), v(o[l]);
|
|
127
127
|
requestAnimationFrame(y);
|
|
128
128
|
}));
|
|
129
129
|
}
|
|
@@ -136,7 +136,7 @@ function sa() {
|
|
|
136
136
|
const n = {
|
|
137
137
|
...a,
|
|
138
138
|
// can be set via VLocaleProvider
|
|
139
|
-
rtl:
|
|
139
|
+
rtl: E(() => a.rtl.value || t.value)
|
|
140
140
|
};
|
|
141
141
|
async function l(u, s) {
|
|
142
142
|
return fl(u, Kt(e, s), !1, n);
|
|
@@ -147,9 +147,9 @@ function ra(e, a, t, n) {
|
|
|
147
147
|
const {
|
|
148
148
|
scrollWidth: l,
|
|
149
149
|
scrollHeight: u
|
|
150
|
-
} = e, [s,
|
|
151
|
-
let
|
|
152
|
-
return n ? t ? (
|
|
150
|
+
} = e, [s, i] = e === document.scrollingElement ? [window.innerWidth, window.innerHeight] : [e.offsetWidth, e.offsetHeight];
|
|
151
|
+
let o, r;
|
|
152
|
+
return n ? t ? (o = -(l - s), r = 0) : (o = 0, r = l - s) : (o = 0, r = u + -i), Ne(a, o, r);
|
|
153
153
|
}
|
|
154
154
|
function ca(e) {
|
|
155
155
|
let {
|
|
@@ -158,8 +158,8 @@ function ca(e) {
|
|
|
158
158
|
isRtl: n,
|
|
159
159
|
isHorizontal: l
|
|
160
160
|
} = e;
|
|
161
|
-
const u = ft(l, t), s =
|
|
162
|
-
return s >
|
|
161
|
+
const u = ft(l, t), s = Yl(l, n, t), i = ft(l, a), o = Ql(l, a), r = i * 0.4;
|
|
162
|
+
return s > o ? o - r : s + u < o + i ? o - u + i + r : s;
|
|
163
163
|
}
|
|
164
164
|
function da(e) {
|
|
165
165
|
let {
|
|
@@ -167,7 +167,7 @@ function da(e) {
|
|
|
167
167
|
containerElement: t,
|
|
168
168
|
isHorizontal: n
|
|
169
169
|
} = e;
|
|
170
|
-
const l = ft(n, t), u =
|
|
170
|
+
const l = ft(n, t), u = Ql(n, a), s = ft(n, a);
|
|
171
171
|
return u - l / 2 + s / 2;
|
|
172
172
|
}
|
|
173
173
|
function ml(e, a) {
|
|
@@ -176,7 +176,7 @@ function ml(e, a) {
|
|
|
176
176
|
function va(e, a) {
|
|
177
177
|
return a?.[e ? "clientWidth" : "clientHeight"] || 0;
|
|
178
178
|
}
|
|
179
|
-
function
|
|
179
|
+
function Yl(e, a, t) {
|
|
180
180
|
if (!t)
|
|
181
181
|
return 0;
|
|
182
182
|
const {
|
|
@@ -189,10 +189,10 @@ function Xl(e, a, t) {
|
|
|
189
189
|
function ft(e, a) {
|
|
190
190
|
return a?.[e ? "offsetWidth" : "offsetHeight"] || 0;
|
|
191
191
|
}
|
|
192
|
-
function
|
|
192
|
+
function Ql(e, a) {
|
|
193
193
|
return a?.[e ? "offsetLeft" : "offsetTop"] || 0;
|
|
194
194
|
}
|
|
195
|
-
const
|
|
195
|
+
const Zl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), en = X({
|
|
196
196
|
centerActive: Boolean,
|
|
197
197
|
scrollToActive: {
|
|
198
198
|
type: Boolean,
|
|
@@ -205,31 +205,31 @@ const Ql = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Zl = X({
|
|
|
205
205
|
},
|
|
206
206
|
symbol: {
|
|
207
207
|
type: null,
|
|
208
|
-
default:
|
|
208
|
+
default: Zl
|
|
209
209
|
},
|
|
210
210
|
nextIcon: {
|
|
211
|
-
type:
|
|
211
|
+
type: he,
|
|
212
212
|
default: "$next"
|
|
213
213
|
},
|
|
214
214
|
prevIcon: {
|
|
215
|
-
type:
|
|
215
|
+
type: he,
|
|
216
216
|
default: "$prev"
|
|
217
217
|
},
|
|
218
218
|
showArrows: {
|
|
219
219
|
type: [Boolean, String],
|
|
220
220
|
validator: (e) => typeof e == "boolean" || ["always", "desktop", "mobile", "never"].includes(e)
|
|
221
221
|
},
|
|
222
|
-
...
|
|
222
|
+
...be(),
|
|
223
223
|
...Tn({
|
|
224
224
|
mobile: null
|
|
225
225
|
}),
|
|
226
226
|
...Oe(),
|
|
227
|
-
...
|
|
227
|
+
...Pl({
|
|
228
228
|
selectedClass: "v-slide-group-item--active"
|
|
229
229
|
})
|
|
230
230
|
}, "VSlideGroup"), gl = ie()({
|
|
231
231
|
name: "VSlideGroup",
|
|
232
|
-
props:
|
|
232
|
+
props: en(),
|
|
233
233
|
emits: {
|
|
234
234
|
"update:modelValue": (e) => !0
|
|
235
235
|
},
|
|
@@ -242,7 +242,7 @@ const Ql = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Zl = X({
|
|
|
242
242
|
} = Ft(), {
|
|
243
243
|
displayClasses: l,
|
|
244
244
|
mobile: u
|
|
245
|
-
} =
|
|
245
|
+
} = Il(e), s = wl(e, e.symbol), i = te(!1), o = te(0), r = te(0), d = te(0), c = I(() => e.direction === "horizontal"), {
|
|
246
246
|
resizeRef: m,
|
|
247
247
|
contentRect: v
|
|
248
248
|
} = It(), {
|
|
@@ -259,17 +259,17 @@ const Ql = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Zl = X({
|
|
|
259
259
|
cancelAnimationFrame(k), k = requestAnimationFrame(() => {
|
|
260
260
|
if (v.value && h.value) {
|
|
261
261
|
const f = c.value ? "width" : "height";
|
|
262
|
-
r.value = v.value[f], d.value = h.value[f],
|
|
262
|
+
r.value = v.value[f], d.value = h.value[f], i.value = r.value + 1 < d.value;
|
|
263
263
|
}
|
|
264
264
|
if (e.scrollToActive && P.value >= 0 && y.el) {
|
|
265
265
|
const f = y.el.children[C.value];
|
|
266
|
-
|
|
266
|
+
B(f, e.centerActive);
|
|
267
267
|
}
|
|
268
268
|
});
|
|
269
269
|
});
|
|
270
270
|
}
|
|
271
|
-
const F =
|
|
272
|
-
function
|
|
271
|
+
const F = te(!1);
|
|
272
|
+
function B(k, f) {
|
|
273
273
|
let A = 0;
|
|
274
274
|
f ? A = da({
|
|
275
275
|
containerElement: m.el,
|
|
@@ -284,7 +284,7 @@ const Ql = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Zl = X({
|
|
|
284
284
|
}
|
|
285
285
|
function U(k) {
|
|
286
286
|
if (!ct || !m.el) return;
|
|
287
|
-
const f = ft(c.value, m.el), A =
|
|
287
|
+
const f = ft(c.value, m.el), A = Yl(c.value, n.value, m.el);
|
|
288
288
|
if (!(ml(c.value, m.el) <= f || // Prevent scrolling by only a couple of pixels, which doesn't look smooth
|
|
289
289
|
Math.abs(k - A) < 16)) {
|
|
290
290
|
if (c.value && n.value && m.el) {
|
|
@@ -302,32 +302,32 @@ const Ql = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Zl = X({
|
|
|
302
302
|
scrollTop: f,
|
|
303
303
|
scrollLeft: A
|
|
304
304
|
} = k.target;
|
|
305
|
-
|
|
305
|
+
o.value = c.value ? A : f;
|
|
306
306
|
}
|
|
307
307
|
function V(k) {
|
|
308
|
-
if (F.value = !0, !(!
|
|
308
|
+
if (F.value = !0, !(!i.value || !y.el)) {
|
|
309
309
|
for (const f of k.composedPath())
|
|
310
310
|
for (const A of y.el.children)
|
|
311
311
|
if (A === f) {
|
|
312
|
-
|
|
312
|
+
B(A);
|
|
313
313
|
return;
|
|
314
314
|
}
|
|
315
315
|
}
|
|
316
316
|
}
|
|
317
|
-
function
|
|
317
|
+
function M(k) {
|
|
318
318
|
F.value = !1;
|
|
319
319
|
}
|
|
320
320
|
let D = !1;
|
|
321
|
-
function
|
|
322
|
-
!D && !F.value && !(k.relatedTarget && y.el?.contains(k.relatedTarget)) &&
|
|
321
|
+
function K(k) {
|
|
322
|
+
!D && !F.value && !(k.relatedTarget && y.el?.contains(k.relatedTarget)) && j(), D = !1;
|
|
323
323
|
}
|
|
324
|
-
function
|
|
324
|
+
function Q() {
|
|
325
325
|
D = !0;
|
|
326
326
|
}
|
|
327
327
|
function H(k) {
|
|
328
328
|
if (!y.el) return;
|
|
329
329
|
function f(A) {
|
|
330
|
-
k.preventDefault(),
|
|
330
|
+
k.preventDefault(), j(A);
|
|
331
331
|
}
|
|
332
332
|
c.value ? k.key === "ArrowRight" ? f(n.value ? "prev" : "next") : k.key === "ArrowLeft" && f(n.value ? "next" : "prev") : k.key === "ArrowDown" ? f("next") : k.key === "ArrowUp" && f("prev"), k.key === "Home" ? f("first") : k.key === "End" && f("last");
|
|
333
333
|
}
|
|
@@ -339,15 +339,15 @@ const Ql = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Zl = X({
|
|
|
339
339
|
while (A?.hasAttribute("disabled"));
|
|
340
340
|
return A;
|
|
341
341
|
}
|
|
342
|
-
function
|
|
342
|
+
function j(k) {
|
|
343
343
|
if (!y.el) return;
|
|
344
344
|
let f;
|
|
345
345
|
if (!k)
|
|
346
|
-
f =
|
|
346
|
+
f = _l(y.el)[0];
|
|
347
347
|
else if (k === "next") {
|
|
348
|
-
if (f = W(y.el.querySelector(":focus"), k), !f) return
|
|
348
|
+
if (f = W(y.el.querySelector(":focus"), k), !f) return j("first");
|
|
349
349
|
} else if (k === "prev") {
|
|
350
|
-
if (f = W(y.el.querySelector(":focus"), k), !f) return
|
|
350
|
+
if (f = W(y.el.querySelector(":focus"), k), !f) return j("last");
|
|
351
351
|
} else k === "first" ? (f = y.el.firstElementChild, f?.hasAttribute("disabled") && (f = W(f, "next"))) : k === "last" && (f = y.el.lastElementChild, f?.hasAttribute("disabled") && (f = W(f, "prev")));
|
|
352
352
|
f && f.focus({
|
|
353
353
|
preventScroll: !0
|
|
@@ -355,7 +355,7 @@ const Ql = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Zl = X({
|
|
|
355
355
|
}
|
|
356
356
|
function ue(k) {
|
|
357
357
|
const f = c.value && n.value ? -1 : 1, A = (k === "prev" ? -f : f) * r.value;
|
|
358
|
-
let J =
|
|
358
|
+
let J = o.value + A;
|
|
359
359
|
if (c.value && n.value && m.el) {
|
|
360
360
|
const {
|
|
361
361
|
scrollWidth: ve,
|
|
@@ -370,7 +370,7 @@ const Ql = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Zl = X({
|
|
|
370
370
|
prev: s.prev,
|
|
371
371
|
select: s.select,
|
|
372
372
|
isSelected: s.isSelected
|
|
373
|
-
})), z = I(() =>
|
|
373
|
+
})), z = I(() => i.value || Math.abs(o.value) > 0), fe = I(() => {
|
|
374
374
|
switch (e.showArrows) {
|
|
375
375
|
case "never":
|
|
376
376
|
return !1;
|
|
@@ -393,28 +393,28 @@ const Ql = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Zl = X({
|
|
|
393
393
|
default:
|
|
394
394
|
return !u.value && z.value;
|
|
395
395
|
}
|
|
396
|
-
}),
|
|
396
|
+
}), R = I(() => Math.abs(o.value) > 1), O = I(() => {
|
|
397
397
|
if (!m.value || !z.value) return !1;
|
|
398
398
|
const k = ml(c.value, m.el), f = va(c.value, m.el);
|
|
399
|
-
return k - f - Math.abs(
|
|
399
|
+
return k - f - Math.abs(o.value) > 1;
|
|
400
400
|
});
|
|
401
401
|
return de(() => g(e.tag, {
|
|
402
402
|
class: re(["v-slide-group", {
|
|
403
403
|
"v-slide-group--vertical": !c.value,
|
|
404
404
|
"v-slide-group--has-affixes": fe.value,
|
|
405
|
-
"v-slide-group--is-overflowing":
|
|
405
|
+
"v-slide-group--is-overflowing": i.value
|
|
406
406
|
}, l.value, e.class]),
|
|
407
407
|
style: xe(e.style),
|
|
408
408
|
tabindex: F.value || s.selected.value.length ? -1 : 0,
|
|
409
|
-
onFocus:
|
|
409
|
+
onFocus: K
|
|
410
410
|
}, {
|
|
411
411
|
default: () => [fe.value && b("div", {
|
|
412
412
|
key: "prev",
|
|
413
413
|
class: re(["v-slide-group__prev", {
|
|
414
|
-
"v-slide-group__prev--disabled": !
|
|
414
|
+
"v-slide-group__prev--disabled": !R.value
|
|
415
415
|
}]),
|
|
416
|
-
onMousedown:
|
|
417
|
-
onClick: () =>
|
|
416
|
+
onMousedown: Q,
|
|
417
|
+
onClick: () => R.value && ue("prev")
|
|
418
418
|
}, [t.prev?.(q.value) ?? g(rl, null, {
|
|
419
419
|
default: () => [g(Se, {
|
|
420
420
|
icon: n.value ? e.nextIcon : e.prevIcon
|
|
@@ -428,14 +428,14 @@ const Ql = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Zl = X({
|
|
|
428
428
|
ref: y,
|
|
429
429
|
class: "v-slide-group__content",
|
|
430
430
|
onFocusin: V,
|
|
431
|
-
onFocusout:
|
|
431
|
+
onFocusout: M,
|
|
432
432
|
onKeydown: H
|
|
433
433
|
}, [t.default?.(q.value)])]), fe.value && b("div", {
|
|
434
434
|
key: "next",
|
|
435
435
|
class: re(["v-slide-group__next", {
|
|
436
436
|
"v-slide-group__next--disabled": !O.value
|
|
437
437
|
}]),
|
|
438
|
-
onMousedown:
|
|
438
|
+
onMousedown: Q,
|
|
439
439
|
onClick: () => O.value && ue("next")
|
|
440
440
|
}, [t.next?.(q.value) ?? g(rl, null, {
|
|
441
441
|
default: () => [g(Se, {
|
|
@@ -445,13 +445,13 @@ const Ql = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Zl = X({
|
|
|
445
445
|
})), {
|
|
446
446
|
selected: s.selected,
|
|
447
447
|
scrollTo: ue,
|
|
448
|
-
scrollOffset:
|
|
449
|
-
focus:
|
|
450
|
-
hasPrev:
|
|
448
|
+
scrollOffset: o,
|
|
449
|
+
focus: j,
|
|
450
|
+
hasPrev: R,
|
|
451
451
|
hasNext: O
|
|
452
452
|
};
|
|
453
453
|
}
|
|
454
|
-
}),
|
|
454
|
+
}), tn = /* @__PURE__ */ Symbol.for("vuetify:v-chip-group"), fa = X({
|
|
455
455
|
baseColor: String,
|
|
456
456
|
column: Boolean,
|
|
457
457
|
filter: Boolean,
|
|
@@ -459,11 +459,11 @@ const Ql = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Zl = X({
|
|
|
459
459
|
type: Function,
|
|
460
460
|
default: qe
|
|
461
461
|
},
|
|
462
|
-
...
|
|
462
|
+
...en({
|
|
463
463
|
scrollToActive: !1
|
|
464
464
|
}),
|
|
465
|
-
...
|
|
466
|
-
...
|
|
465
|
+
...be(),
|
|
466
|
+
...Pl({
|
|
467
467
|
selectedClass: "v-chip--selected"
|
|
468
468
|
}),
|
|
469
469
|
...Oe(),
|
|
@@ -487,20 +487,20 @@ const Ql = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Zl = X({
|
|
|
487
487
|
isSelected: l,
|
|
488
488
|
select: u,
|
|
489
489
|
next: s,
|
|
490
|
-
prev:
|
|
491
|
-
selected:
|
|
492
|
-
} =
|
|
490
|
+
prev: i,
|
|
491
|
+
selected: o
|
|
492
|
+
} = wl(e, tn);
|
|
493
493
|
return Jt({
|
|
494
494
|
VChip: {
|
|
495
|
-
baseColor:
|
|
496
|
-
color:
|
|
497
|
-
disabled:
|
|
498
|
-
filter:
|
|
499
|
-
variant:
|
|
495
|
+
baseColor: E(() => e.baseColor),
|
|
496
|
+
color: E(() => e.color),
|
|
497
|
+
disabled: E(() => e.disabled),
|
|
498
|
+
filter: E(() => e.filter),
|
|
499
|
+
variant: E(() => e.variant)
|
|
500
500
|
}
|
|
501
501
|
}), de(() => {
|
|
502
502
|
const r = gl.filterProps(e);
|
|
503
|
-
return g(gl,
|
|
503
|
+
return g(gl, L(r, {
|
|
504
504
|
class: ["v-chip-group", {
|
|
505
505
|
"v-chip-group--column": e.column
|
|
506
506
|
}, n.value, e.class],
|
|
@@ -510,8 +510,8 @@ const Ql = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Zl = X({
|
|
|
510
510
|
isSelected: l,
|
|
511
511
|
select: u,
|
|
512
512
|
next: s,
|
|
513
|
-
prev:
|
|
514
|
-
selected:
|
|
513
|
+
prev: i,
|
|
514
|
+
selected: o.value
|
|
515
515
|
})]
|
|
516
516
|
});
|
|
517
517
|
}), {};
|
|
@@ -519,11 +519,11 @@ const Ql = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Zl = X({
|
|
|
519
519
|
}), ga = X({
|
|
520
520
|
activeClass: String,
|
|
521
521
|
appendAvatar: String,
|
|
522
|
-
appendIcon:
|
|
522
|
+
appendIcon: he,
|
|
523
523
|
baseColor: String,
|
|
524
524
|
closable: Boolean,
|
|
525
525
|
closeIcon: {
|
|
526
|
-
type:
|
|
526
|
+
type: he,
|
|
527
527
|
default: "$delete"
|
|
528
528
|
},
|
|
529
529
|
closeLabel: {
|
|
@@ -533,7 +533,7 @@ const Ql = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Zl = X({
|
|
|
533
533
|
draggable: Boolean,
|
|
534
534
|
filter: Boolean,
|
|
535
535
|
filterIcon: {
|
|
536
|
-
type:
|
|
536
|
+
type: he,
|
|
537
537
|
default: "$complete"
|
|
538
538
|
},
|
|
539
539
|
label: Boolean,
|
|
@@ -543,7 +543,7 @@ const Ql = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Zl = X({
|
|
|
543
543
|
},
|
|
544
544
|
pill: Boolean,
|
|
545
545
|
prependAvatar: String,
|
|
546
|
-
prependIcon:
|
|
546
|
+
prependIcon: he,
|
|
547
547
|
ripple: {
|
|
548
548
|
type: [Boolean, Object],
|
|
549
549
|
default: !0
|
|
@@ -559,12 +559,12 @@ const Ql = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Zl = X({
|
|
|
559
559
|
onClick: Le(),
|
|
560
560
|
onClickOnce: Le(),
|
|
561
561
|
...el(),
|
|
562
|
-
...
|
|
562
|
+
...be(),
|
|
563
563
|
...ht(),
|
|
564
564
|
...Zt(),
|
|
565
565
|
...En(),
|
|
566
566
|
...yt(),
|
|
567
|
-
...
|
|
567
|
+
...Bl(),
|
|
568
568
|
...Rn(),
|
|
569
569
|
...Oe({
|
|
570
570
|
tag: "span"
|
|
@@ -596,16 +596,16 @@ const Ql = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Zl = X({
|
|
|
596
596
|
} = it(), {
|
|
597
597
|
borderClasses: s
|
|
598
598
|
} = Yt(e), {
|
|
599
|
-
densityClasses:
|
|
599
|
+
densityClasses: i
|
|
600
600
|
} = Dt(e), {
|
|
601
|
-
elevationClasses:
|
|
601
|
+
elevationClasses: o
|
|
602
602
|
} = Qt(e), {
|
|
603
603
|
roundedClasses: r
|
|
604
604
|
} = gt(e), {
|
|
605
605
|
sizeClasses: d
|
|
606
606
|
} = Bn(e), {
|
|
607
607
|
themeClasses: c
|
|
608
|
-
} = ot(e), m = Ve(e, "modelValue"), v = cl(e,
|
|
608
|
+
} = ot(e), m = Ve(e, "modelValue"), v = cl(e, tn, !1), y = cl(e, Zl, !1), h = Al(e, t), p = E(() => e.link !== !1 && h.isLink.value), w = I(() => !e.disabled && e.link !== !1 && (!!v || e.link || h.isClickable.value)), P = E(() => ({
|
|
609
609
|
"aria-label": u(e.closeLabel),
|
|
610
610
|
disabled: e.disabled,
|
|
611
611
|
onClick(V) {
|
|
@@ -618,8 +618,8 @@ const Ql = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Zl = X({
|
|
|
618
618
|
const {
|
|
619
619
|
colorClasses: C,
|
|
620
620
|
colorStyles: F,
|
|
621
|
-
variantClasses:
|
|
622
|
-
} =
|
|
621
|
+
variantClasses: B
|
|
622
|
+
} = Fl(() => ({
|
|
623
623
|
color: !v || v.isSelected.value ? e.color ?? e.baseColor : e.baseColor,
|
|
624
624
|
variant: e.variant
|
|
625
625
|
}));
|
|
@@ -630,16 +630,16 @@ const Ql = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Zl = X({
|
|
|
630
630
|
(V.key === "Enter" || V.key === " ") && (V.preventDefault(), U(V));
|
|
631
631
|
}
|
|
632
632
|
return () => {
|
|
633
|
-
const V = h.isLink.value ? "a" : e.tag,
|
|
634
|
-
return m.value && Ue(g(V,
|
|
633
|
+
const V = h.isLink.value ? "a" : e.tag, M = !!(e.appendIcon || e.appendAvatar), D = !!(M || l.append), K = !!(l.close || e.closable), Q = !!(l.filter || e.filter) && v, H = !!(e.prependIcon || e.prependAvatar), W = !!(H || l.prepend);
|
|
634
|
+
return m.value && Ue(g(V, L(h.linkProps, {
|
|
635
635
|
class: ["v-chip", {
|
|
636
636
|
"v-chip--disabled": e.disabled,
|
|
637
637
|
"v-chip--label": e.label,
|
|
638
638
|
"v-chip--link": w.value,
|
|
639
|
-
"v-chip--filter":
|
|
639
|
+
"v-chip--filter": Q,
|
|
640
640
|
"v-chip--pill": e.pill,
|
|
641
641
|
[`${e.activeClass}`]: e.activeClass && h.isActive?.value
|
|
642
|
-
}, c.value, s.value, C.value,
|
|
642
|
+
}, c.value, s.value, C.value, i.value, o.value, r.value, d.value, B.value, v?.selectedClass.value, e.class],
|
|
643
643
|
style: [F.value, e.style],
|
|
644
644
|
disabled: e.disabled || void 0,
|
|
645
645
|
draggable: e.draggable,
|
|
@@ -647,7 +647,7 @@ const Ql = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Zl = X({
|
|
|
647
647
|
onClick: U,
|
|
648
648
|
onKeydown: w.value && !p.value && _
|
|
649
649
|
}), {
|
|
650
|
-
default: () => [
|
|
650
|
+
default: () => [Dl(w.value, "v-chip"), Q && g(Tl, {
|
|
651
651
|
key: "filter"
|
|
652
652
|
}, {
|
|
653
653
|
default: () => [Ue(b("div", {
|
|
@@ -703,7 +703,7 @@ const Ql = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Zl = X({
|
|
|
703
703
|
class: "v-chip__append"
|
|
704
704
|
}, [l.append ? g(Fe, {
|
|
705
705
|
key: "append-defaults",
|
|
706
|
-
disabled:
|
|
706
|
+
disabled: !M,
|
|
707
707
|
defaults: {
|
|
708
708
|
VAvatar: {
|
|
709
709
|
end: !0,
|
|
@@ -722,7 +722,7 @@ const Ql = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Zl = X({
|
|
|
722
722
|
key: "append-avatar",
|
|
723
723
|
end: !0,
|
|
724
724
|
image: e.appendAvatar
|
|
725
|
-
}, null)])]),
|
|
725
|
+
}, null)])]), K && b("button", L({
|
|
726
726
|
key: "close",
|
|
727
727
|
class: "v-chip__close",
|
|
728
728
|
type: "button",
|
|
@@ -746,11 +746,11 @@ const Ql = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Zl = X({
|
|
|
746
746
|
}), ya = X({
|
|
747
747
|
color: String,
|
|
748
748
|
...el(),
|
|
749
|
-
...
|
|
749
|
+
...be(),
|
|
750
750
|
...pt(),
|
|
751
751
|
...Zt(),
|
|
752
752
|
...ll(),
|
|
753
|
-
...
|
|
753
|
+
...El(),
|
|
754
754
|
...yt(),
|
|
755
755
|
...Oe(),
|
|
756
756
|
...He()
|
|
@@ -769,19 +769,19 @@ const Ql = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Zl = X({
|
|
|
769
769
|
} = Tt(() => e.color), {
|
|
770
770
|
borderClasses: s
|
|
771
771
|
} = Yt(e), {
|
|
772
|
-
dimensionStyles:
|
|
772
|
+
dimensionStyles: i
|
|
773
773
|
} = bt(e), {
|
|
774
|
-
elevationClasses:
|
|
774
|
+
elevationClasses: o
|
|
775
775
|
} = Qt(e), {
|
|
776
776
|
locationStyles: r
|
|
777
777
|
} = tl(e), {
|
|
778
778
|
positionClasses: d
|
|
779
|
-
} =
|
|
779
|
+
} = Rl(e), {
|
|
780
780
|
roundedClasses: c
|
|
781
781
|
} = gt(e);
|
|
782
782
|
return de(() => g(e.tag, {
|
|
783
|
-
class: re(["v-sheet", n.value, l.value, s.value,
|
|
784
|
-
style: xe([u.value,
|
|
783
|
+
class: re(["v-sheet", n.value, l.value, s.value, o.value, d.value, c.value, e.class]),
|
|
784
|
+
style: xe([u.value, i.value, r.value, e.style])
|
|
785
785
|
}, t)), {};
|
|
786
786
|
}
|
|
787
787
|
}), ha = {
|
|
@@ -792,8 +792,8 @@ const Ql = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Zl = X({
|
|
|
792
792
|
},
|
|
793
793
|
emits: /* @__PURE__ */ qt("save", ["update:modelValue"]),
|
|
794
794
|
setup(e, { emit: a }) {
|
|
795
|
-
const { advancedFiltersState: t } = Et(), n = Pe("table_props"), l = Pt(e, "modelValue"), u = (
|
|
796
|
-
const d = n.headers.find((y) => (y.advancedFilter?.key ?? y.key) === r), c =
|
|
795
|
+
const { advancedFiltersState: t } = Et(), n = Pe("table_props"), l = Pt(e, "modelValue"), u = (o, r) => {
|
|
796
|
+
const d = n.headers.find((y) => (y.advancedFilter?.key ?? y.key) === r), c = o.comparison === "=" ? ":" : " " + o.comparison, m = Array.isArray(o.value) ? o.value : [o.value], v = m.filter((y, h) => !(d.advancedFilter?.component === "datepicker" && h !== 0 && h !== m.length - 1)).map((y) => {
|
|
797
797
|
const h = d.advancedFilter?.options?.items ?? [];
|
|
798
798
|
let p = y, w;
|
|
799
799
|
return h.length && (w = h.find((P) => P.value === y), w && (p = w.title)), typeof d.advancedFilter?.valueFormatter == "function" && (p = d.advancedFilter.valueFormatter({
|
|
@@ -802,14 +802,14 @@ const Ql = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Zl = X({
|
|
|
802
802
|
})), p;
|
|
803
803
|
});
|
|
804
804
|
return `${d.title}${c} ${v.join(", ")}`;
|
|
805
|
-
}, s = (
|
|
806
|
-
l.value[
|
|
807
|
-
},
|
|
808
|
-
return (
|
|
805
|
+
}, s = (o) => {
|
|
806
|
+
l.value[o] = { comparison: "=", value: null }, i("save");
|
|
807
|
+
}, i = a;
|
|
808
|
+
return (o, r) => (oe(), ye(il, null, {
|
|
809
809
|
default: Ce(() => [
|
|
810
810
|
g(ma, null, {
|
|
811
811
|
default: Ce(() => [
|
|
812
|
-
(oe(!0), Ke(ce, null, Wt(
|
|
812
|
+
(oe(!0), Ke(ce, null, Wt($(t), (d, c) => (oe(), ye(mt, {
|
|
813
813
|
key: c,
|
|
814
814
|
class: "my-0",
|
|
815
815
|
text: u(d, c),
|
|
@@ -828,9 +828,9 @@ const Ql = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Zl = X({
|
|
|
828
828
|
}, ba = X({
|
|
829
829
|
text: String,
|
|
830
830
|
onClick: Le(),
|
|
831
|
-
...
|
|
831
|
+
...be(),
|
|
832
832
|
...He()
|
|
833
|
-
}, "VLabel"),
|
|
833
|
+
}, "VLabel"), ln = ie()({
|
|
834
834
|
name: "VLabel",
|
|
835
835
|
props: ba(),
|
|
836
836
|
setup(e, a) {
|
|
@@ -845,7 +845,7 @@ const Ql = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Zl = X({
|
|
|
845
845
|
onClick: e.onClick
|
|
846
846
|
}, [e.text, t.default?.()])), {};
|
|
847
847
|
}
|
|
848
|
-
}),
|
|
848
|
+
}), nn = /* @__PURE__ */ Symbol.for("vuetify:selection-control-group"), an = X({
|
|
849
849
|
color: String,
|
|
850
850
|
disabled: {
|
|
851
851
|
type: Boolean,
|
|
@@ -855,8 +855,8 @@ const Ql = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Zl = X({
|
|
|
855
855
|
error: Boolean,
|
|
856
856
|
id: String,
|
|
857
857
|
inline: Boolean,
|
|
858
|
-
falseIcon:
|
|
859
|
-
trueIcon:
|
|
858
|
+
falseIcon: he,
|
|
859
|
+
trueIcon: he,
|
|
860
860
|
ripple: {
|
|
861
861
|
type: [Boolean, Object],
|
|
862
862
|
default: !0
|
|
@@ -876,11 +876,11 @@ const Ql = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Zl = X({
|
|
|
876
876
|
type: Function,
|
|
877
877
|
default: qe
|
|
878
878
|
},
|
|
879
|
-
...
|
|
879
|
+
...be(),
|
|
880
880
|
...ht(),
|
|
881
881
|
...He()
|
|
882
882
|
}, "SelectionControlGroup"), pa = X({
|
|
883
|
-
...
|
|
883
|
+
...an({
|
|
884
884
|
defaultsTarget: "VSelectionControl"
|
|
885
885
|
})
|
|
886
886
|
}, "VSelectionControlGroup");
|
|
@@ -894,33 +894,33 @@ ie()({
|
|
|
894
894
|
let {
|
|
895
895
|
slots: t
|
|
896
896
|
} = a;
|
|
897
|
-
const n = Ve(e, "modelValue"), l = Xe(), u =
|
|
898
|
-
return We(
|
|
897
|
+
const n = Ve(e, "modelValue"), l = Xe(), u = E(() => e.id || `v-selection-control-group-${l}`), s = E(() => e.name || u.value), i = /* @__PURE__ */ new Set();
|
|
898
|
+
return We(nn, {
|
|
899
899
|
modelValue: n,
|
|
900
900
|
forceUpdate: () => {
|
|
901
|
-
|
|
901
|
+
i.forEach((o) => o());
|
|
902
902
|
},
|
|
903
|
-
onForceUpdate: (
|
|
904
|
-
|
|
905
|
-
|
|
903
|
+
onForceUpdate: (o) => {
|
|
904
|
+
i.add(o), rt(() => {
|
|
905
|
+
i.delete(o);
|
|
906
906
|
});
|
|
907
907
|
}
|
|
908
908
|
}), Jt({
|
|
909
909
|
[e.defaultsTarget]: {
|
|
910
|
-
color:
|
|
911
|
-
disabled:
|
|
912
|
-
density:
|
|
913
|
-
error:
|
|
914
|
-
inline:
|
|
910
|
+
color: E(() => e.color),
|
|
911
|
+
disabled: E(() => e.disabled),
|
|
912
|
+
density: E(() => e.density),
|
|
913
|
+
error: E(() => e.error),
|
|
914
|
+
inline: E(() => e.inline),
|
|
915
915
|
modelValue: n,
|
|
916
|
-
multiple:
|
|
916
|
+
multiple: E(() => !!e.multiple || e.multiple == null && Array.isArray(n.value)),
|
|
917
917
|
name: s,
|
|
918
|
-
falseIcon:
|
|
919
|
-
trueIcon:
|
|
920
|
-
readonly:
|
|
921
|
-
ripple:
|
|
922
|
-
type:
|
|
923
|
-
valueComparator:
|
|
918
|
+
falseIcon: E(() => e.falseIcon),
|
|
919
|
+
trueIcon: E(() => e.trueIcon),
|
|
920
|
+
readonly: E(() => e.readonly),
|
|
921
|
+
ripple: E(() => e.ripple),
|
|
922
|
+
type: E(() => e.type),
|
|
923
|
+
valueComparator: E(() => e.valueComparator)
|
|
924
924
|
}
|
|
925
925
|
}), de(() => b("div", {
|
|
926
926
|
class: re(["v-selection-control-group", {
|
|
@@ -931,19 +931,19 @@ ie()({
|
|
|
931
931
|
}, [t.default?.()])), {};
|
|
932
932
|
}
|
|
933
933
|
});
|
|
934
|
-
const
|
|
934
|
+
const on = X({
|
|
935
935
|
label: String,
|
|
936
936
|
baseColor: String,
|
|
937
937
|
trueValue: null,
|
|
938
938
|
falseValue: null,
|
|
939
939
|
value: null,
|
|
940
|
-
...
|
|
941
|
-
...
|
|
940
|
+
...be(),
|
|
941
|
+
...an()
|
|
942
942
|
}, "VSelectionControl");
|
|
943
943
|
function ka(e) {
|
|
944
|
-
const a = Pe(
|
|
944
|
+
const a = Pe(nn, void 0), {
|
|
945
945
|
densityClasses: t
|
|
946
|
-
} = Dt(e), n = Ve(e, "modelValue"), l = I(() => e.trueValue !== void 0 ? e.trueValue : e.value !== void 0 ? e.value : !0), u = I(() => e.falseValue !== void 0 ? e.falseValue : !1), s = I(() => !!e.multiple || e.multiple == null && Array.isArray(n.value)),
|
|
946
|
+
} = Dt(e), n = Ve(e, "modelValue"), l = I(() => e.trueValue !== void 0 ? e.trueValue : e.value !== void 0 ? e.value : !0), u = I(() => e.falseValue !== void 0 ? e.falseValue : !1), s = I(() => !!e.multiple || e.multiple == null && Array.isArray(n.value)), i = I({
|
|
947
947
|
get() {
|
|
948
948
|
const v = a ? a.modelValue.value : n.value;
|
|
949
949
|
return s.value ? Te(v).some((y) => e.valueComparator(y, l.value)) : e.valueComparator(v, l.value);
|
|
@@ -955,22 +955,22 @@ function ka(e) {
|
|
|
955
955
|
s.value && (h = v ? [...Te(n.value), y] : Te(n.value).filter((p) => !e.valueComparator(p, l.value))), a ? a.modelValue.value = h : n.value = h;
|
|
956
956
|
}
|
|
957
957
|
}), {
|
|
958
|
-
textColorClasses:
|
|
958
|
+
textColorClasses: o,
|
|
959
959
|
textColorStyles: r
|
|
960
960
|
} = kt(() => {
|
|
961
961
|
if (!(e.error || e.disabled))
|
|
962
|
-
return
|
|
962
|
+
return i.value ? e.color : e.baseColor;
|
|
963
963
|
}), {
|
|
964
964
|
backgroundColorClasses: d,
|
|
965
965
|
backgroundColorStyles: c
|
|
966
|
-
} = Tt(() =>
|
|
966
|
+
} = Tt(() => i.value && !e.error && !e.disabled ? e.color : e.baseColor), m = I(() => i.value ? e.trueIcon : e.falseIcon);
|
|
967
967
|
return {
|
|
968
968
|
group: a,
|
|
969
969
|
densityClasses: t,
|
|
970
970
|
trueValue: l,
|
|
971
971
|
falseValue: u,
|
|
972
|
-
model:
|
|
973
|
-
textColorClasses:
|
|
972
|
+
model: i,
|
|
973
|
+
textColorClasses: o,
|
|
974
974
|
textColorStyles: r,
|
|
975
975
|
backgroundColorClasses: d,
|
|
976
976
|
backgroundColorStyles: c,
|
|
@@ -983,7 +983,7 @@ const yl = ie()({
|
|
|
983
983
|
vRipple: lt
|
|
984
984
|
},
|
|
985
985
|
inheritAttrs: !1,
|
|
986
|
-
props:
|
|
986
|
+
props: on(),
|
|
987
987
|
emits: {
|
|
988
988
|
"update:modelValue": (e) => !0
|
|
989
989
|
},
|
|
@@ -996,15 +996,15 @@ const yl = ie()({
|
|
|
996
996
|
group: l,
|
|
997
997
|
densityClasses: u,
|
|
998
998
|
icon: s,
|
|
999
|
-
model:
|
|
1000
|
-
textColorClasses:
|
|
999
|
+
model: i,
|
|
1000
|
+
textColorClasses: o,
|
|
1001
1001
|
textColorStyles: r,
|
|
1002
1002
|
backgroundColorClasses: d,
|
|
1003
1003
|
backgroundColorStyles: c,
|
|
1004
1004
|
trueValue: m
|
|
1005
|
-
} = ka(e), v = Xe(), y =
|
|
1005
|
+
} = ka(e), v = Xe(), y = te(!1), h = te(!1), p = G(), w = E(() => e.id || `input-${v}`), P = E(() => !e.disabled && !e.readonly);
|
|
1006
1006
|
l?.onForceUpdate(() => {
|
|
1007
|
-
p.value && (p.value.checked =
|
|
1007
|
+
p.value && (p.value.checked = i.value);
|
|
1008
1008
|
});
|
|
1009
1009
|
function C(_) {
|
|
1010
1010
|
P.value && (y.value = !0, dt(_.target, ":focus-visible") !== !1 && (h.value = !0));
|
|
@@ -1012,15 +1012,15 @@ const yl = ie()({
|
|
|
1012
1012
|
function F() {
|
|
1013
1013
|
y.value = !1, h.value = !1;
|
|
1014
1014
|
}
|
|
1015
|
-
function
|
|
1015
|
+
function B(_) {
|
|
1016
1016
|
_.stopPropagation();
|
|
1017
1017
|
}
|
|
1018
1018
|
function U(_) {
|
|
1019
1019
|
if (!P.value) {
|
|
1020
|
-
p.value && (p.value.checked =
|
|
1020
|
+
p.value && (p.value.checked = i.value);
|
|
1021
1021
|
return;
|
|
1022
1022
|
}
|
|
1023
|
-
e.readonly && l && ke(() => l.forceUpdate()),
|
|
1023
|
+
e.readonly && l && ke(() => l.forceUpdate()), i.value = _.target.checked;
|
|
1024
1024
|
}
|
|
1025
1025
|
return de(() => {
|
|
1026
1026
|
const _ = n.label ? n.label({
|
|
@@ -1028,9 +1028,9 @@ const yl = ie()({
|
|
|
1028
1028
|
props: {
|
|
1029
1029
|
for: w.value
|
|
1030
1030
|
}
|
|
1031
|
-
}) : e.label, [V,
|
|
1031
|
+
}) : e.label, [V, M] = Ol(t), D = b("input", L({
|
|
1032
1032
|
ref: p,
|
|
1033
|
-
checked:
|
|
1033
|
+
checked: i.value,
|
|
1034
1034
|
disabled: !!e.disabled,
|
|
1035
1035
|
id: w.value,
|
|
1036
1036
|
onBlur: F,
|
|
@@ -1041,11 +1041,11 @@ const yl = ie()({
|
|
|
1041
1041
|
type: e.type,
|
|
1042
1042
|
value: m.value,
|
|
1043
1043
|
name: e.name,
|
|
1044
|
-
"aria-checked": e.type === "checkbox" ?
|
|
1045
|
-
},
|
|
1046
|
-
return b("div",
|
|
1044
|
+
"aria-checked": e.type === "checkbox" ? i.value : void 0
|
|
1045
|
+
}, M), null);
|
|
1046
|
+
return b("div", L({
|
|
1047
1047
|
class: ["v-selection-control", {
|
|
1048
|
-
"v-selection-control--dirty":
|
|
1048
|
+
"v-selection-control--dirty": i.value,
|
|
1049
1049
|
"v-selection-control--disabled": e.disabled,
|
|
1050
1050
|
"v-selection-control--error": e.error,
|
|
1051
1051
|
"v-selection-control--focused": y.value,
|
|
@@ -1055,7 +1055,7 @@ const yl = ie()({
|
|
|
1055
1055
|
}, V, {
|
|
1056
1056
|
style: e.style
|
|
1057
1057
|
}), [b("div", {
|
|
1058
|
-
class: re(["v-selection-control__wrapper",
|
|
1058
|
+
class: re(["v-selection-control__wrapper", o.value]),
|
|
1059
1059
|
style: xe(r.value)
|
|
1060
1060
|
}, [n.default?.({
|
|
1061
1061
|
backgroundColorClasses: d,
|
|
@@ -1063,8 +1063,8 @@ const yl = ie()({
|
|
|
1063
1063
|
}), Ue(b("div", {
|
|
1064
1064
|
class: re(["v-selection-control__input"])
|
|
1065
1065
|
}, [n.input?.({
|
|
1066
|
-
model:
|
|
1067
|
-
textColorClasses:
|
|
1066
|
+
model: i,
|
|
1067
|
+
textColorClasses: o,
|
|
1068
1068
|
textColorStyles: r,
|
|
1069
1069
|
backgroundColorClasses: d,
|
|
1070
1070
|
backgroundColorStyles: c,
|
|
@@ -1081,9 +1081,9 @@ const yl = ie()({
|
|
|
1081
1081
|
}, null), D])]), [[lt, !e.disabled && !e.readonly && e.ripple, null, {
|
|
1082
1082
|
center: !0,
|
|
1083
1083
|
circle: !0
|
|
1084
|
-
}]])]), _ && g(
|
|
1084
|
+
}]])]), _ && g(ln, {
|
|
1085
1085
|
for: w.value,
|
|
1086
|
-
onClick:
|
|
1086
|
+
onClick: B
|
|
1087
1087
|
}, {
|
|
1088
1088
|
default: () => [_]
|
|
1089
1089
|
})]);
|
|
@@ -1095,14 +1095,14 @@ const yl = ie()({
|
|
|
1095
1095
|
}), Sa = X({
|
|
1096
1096
|
indeterminate: Boolean,
|
|
1097
1097
|
indeterminateIcon: {
|
|
1098
|
-
type:
|
|
1098
|
+
type: he,
|
|
1099
1099
|
default: "$checkboxIndeterminate"
|
|
1100
1100
|
},
|
|
1101
|
-
...
|
|
1101
|
+
...on({
|
|
1102
1102
|
falseIcon: "$checkboxOff",
|
|
1103
1103
|
trueIcon: "$checkboxOn"
|
|
1104
1104
|
})
|
|
1105
|
-
}, "VCheckboxBtn"),
|
|
1105
|
+
}, "VCheckboxBtn"), un = ie()({
|
|
1106
1106
|
name: "VCheckboxBtn",
|
|
1107
1107
|
props: Sa(),
|
|
1108
1108
|
emits: {
|
|
@@ -1114,20 +1114,20 @@ const yl = ie()({
|
|
|
1114
1114
|
slots: t
|
|
1115
1115
|
} = a;
|
|
1116
1116
|
const n = Ve(e, "indeterminate"), l = Ve(e, "modelValue");
|
|
1117
|
-
function u(
|
|
1117
|
+
function u(o) {
|
|
1118
1118
|
n.value && (n.value = !1);
|
|
1119
1119
|
}
|
|
1120
|
-
const s =
|
|
1120
|
+
const s = E(() => n.value ? e.indeterminateIcon : e.falseIcon), i = E(() => n.value ? e.indeterminateIcon : e.trueIcon);
|
|
1121
1121
|
return de(() => {
|
|
1122
|
-
const
|
|
1123
|
-
return g(yl,
|
|
1122
|
+
const o = Ye(yl.filterProps(e), ["modelValue"]);
|
|
1123
|
+
return g(yl, L(o, {
|
|
1124
1124
|
modelValue: l.value,
|
|
1125
1125
|
"onUpdate:modelValue": [(r) => l.value = r, u],
|
|
1126
1126
|
class: ["v-checkbox-btn", e.class],
|
|
1127
1127
|
style: e.style,
|
|
1128
1128
|
type: "checkbox",
|
|
1129
1129
|
falseIcon: s.value,
|
|
1130
|
-
trueIcon:
|
|
1130
|
+
trueIcon: i.value,
|
|
1131
1131
|
"aria-checked": n.value ? "mixed" : void 0
|
|
1132
1132
|
}), t);
|
|
1133
1133
|
}), {};
|
|
@@ -1143,21 +1143,21 @@ function Ot(e) {
|
|
|
1143
1143
|
color: u,
|
|
1144
1144
|
...s
|
|
1145
1145
|
} = n;
|
|
1146
|
-
const
|
|
1146
|
+
const i = {
|
|
1147
1147
|
prepend: "prependAction",
|
|
1148
1148
|
prependInner: "prependAction",
|
|
1149
1149
|
append: "appendAction",
|
|
1150
1150
|
appendInner: "appendAction",
|
|
1151
1151
|
clear: "clear"
|
|
1152
|
-
}[l],
|
|
1152
|
+
}[l], o = e[`onClick:${l}`];
|
|
1153
1153
|
function r(c) {
|
|
1154
|
-
c.key !== "Enter" && c.key !== " " || (c.preventDefault(), c.stopPropagation(),
|
|
1154
|
+
c.key !== "Enter" && c.key !== " " || (c.preventDefault(), c.stopPropagation(), $l(o, new PointerEvent("click", c)));
|
|
1155
1155
|
}
|
|
1156
|
-
const d =
|
|
1157
|
-
return g(Se,
|
|
1156
|
+
const d = o && i ? a(`$vuetify.input.${i}`, e.label ?? "") : void 0;
|
|
1157
|
+
return g(Se, L({
|
|
1158
1158
|
icon: e[`${l}Icon`],
|
|
1159
1159
|
"aria-label": d,
|
|
1160
|
-
onClick:
|
|
1160
|
+
onClick: o,
|
|
1161
1161
|
onKeydown: r,
|
|
1162
1162
|
color: u
|
|
1163
1163
|
}, s), null);
|
|
@@ -1173,10 +1173,10 @@ const Ca = X({
|
|
|
1173
1173
|
type: [Array, String],
|
|
1174
1174
|
default: () => []
|
|
1175
1175
|
},
|
|
1176
|
-
...
|
|
1176
|
+
...be(),
|
|
1177
1177
|
...Bt({
|
|
1178
1178
|
transition: {
|
|
1179
|
-
component:
|
|
1179
|
+
component: Ml,
|
|
1180
1180
|
leaveAbsolute: !0,
|
|
1181
1181
|
group: !0
|
|
1182
1182
|
}
|
|
@@ -1198,21 +1198,21 @@ const Ca = X({
|
|
|
1198
1198
|
class: re(["v-messages", l.value, e.class]),
|
|
1199
1199
|
style: xe([u.value, e.style])
|
|
1200
1200
|
}, {
|
|
1201
|
-
default: () => [e.active && n.value.map((s,
|
|
1201
|
+
default: () => [e.active && n.value.map((s, i) => b("div", {
|
|
1202
1202
|
class: "v-messages__message",
|
|
1203
|
-
key: `${
|
|
1203
|
+
key: `${i}-${n.value}`
|
|
1204
1204
|
}, [t.message ? t.message({
|
|
1205
1205
|
message: s
|
|
1206
1206
|
}) : s]))]
|
|
1207
1207
|
})), {};
|
|
1208
1208
|
}
|
|
1209
|
-
}),
|
|
1209
|
+
}), sn = X({
|
|
1210
1210
|
focused: Boolean,
|
|
1211
1211
|
"onUpdate:focused": Le()
|
|
1212
1212
|
}, "focus");
|
|
1213
|
-
function
|
|
1214
|
-
let a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] :
|
|
1215
|
-
const t = Ve(e, "focused"), n =
|
|
1213
|
+
function rn(e) {
|
|
1214
|
+
let a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Nl();
|
|
1215
|
+
const t = Ve(e, "focused"), n = E(() => ({
|
|
1216
1216
|
[`${a}--focused`]: t.value
|
|
1217
1217
|
}));
|
|
1218
1218
|
function l() {
|
|
@@ -1245,7 +1245,7 @@ function wa(e) {
|
|
|
1245
1245
|
throw new Error("Could not find Vuetify rules injection");
|
|
1246
1246
|
return a.aliases;
|
|
1247
1247
|
}
|
|
1248
|
-
return a?.resolve(e) ??
|
|
1248
|
+
return a?.resolve(e) ?? E(e);
|
|
1249
1249
|
}
|
|
1250
1250
|
const _a = X({
|
|
1251
1251
|
disabled: {
|
|
@@ -1274,28 +1274,28 @@ const _a = X({
|
|
|
1274
1274
|
modelValue: null,
|
|
1275
1275
|
validateOn: String,
|
|
1276
1276
|
validationValue: null,
|
|
1277
|
-
...
|
|
1277
|
+
...sn()
|
|
1278
1278
|
}, "validation");
|
|
1279
1279
|
function Pa(e) {
|
|
1280
|
-
let a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] :
|
|
1281
|
-
const n = Ve(e, "modelValue"), l = I(() => e.validationValue === void 0 ? n.value : e.validationValue), u = $t(e), s = wa(() => e.rules),
|
|
1280
|
+
let a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Nl(), t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : Xe();
|
|
1281
|
+
const n = Ve(e, "modelValue"), l = I(() => e.validationValue === void 0 ? n.value : e.validationValue), u = $t(e), s = wa(() => e.rules), i = G([]), o = te(!0), r = I(() => !!(Te(n.value === "" ? null : n.value).length || Te(l.value === "" ? null : l.value).length)), d = I(() => e.errorMessages?.length ? Te(e.errorMessages).concat(i.value).slice(0, Math.max(0, Number(e.maxErrors))) : i.value), c = I(() => {
|
|
1282
1282
|
let F = (e.validateOn ?? u.validateOn?.value) || "input";
|
|
1283
1283
|
F === "lazy" && (F = "input lazy"), F === "eager" && (F = "input eager");
|
|
1284
|
-
const
|
|
1284
|
+
const B = new Set(F?.split(" ") ?? []);
|
|
1285
1285
|
return {
|
|
1286
|
-
input:
|
|
1287
|
-
blur:
|
|
1288
|
-
invalidInput:
|
|
1289
|
-
lazy:
|
|
1290
|
-
eager:
|
|
1286
|
+
input: B.has("input"),
|
|
1287
|
+
blur: B.has("blur") || B.has("input") || B.has("invalid-input"),
|
|
1288
|
+
invalidInput: B.has("invalid-input"),
|
|
1289
|
+
lazy: B.has("lazy"),
|
|
1290
|
+
eager: B.has("eager")
|
|
1291
1291
|
};
|
|
1292
|
-
}), m = I(() => e.error || e.errorMessages?.length ? !1 : e.rules.length ?
|
|
1292
|
+
}), m = I(() => e.error || e.errorMessages?.length ? !1 : e.rules.length ? o.value ? i.value.length || c.value.lazy ? null : !0 : !i.value.length : !0), v = te(!1), y = I(() => ({
|
|
1293
1293
|
[`${a}--error`]: m.value === !1,
|
|
1294
1294
|
[`${a}--dirty`]: r.value,
|
|
1295
1295
|
[`${a}--disabled`]: u.isDisabled.value,
|
|
1296
1296
|
[`${a}--readonly`]: u.isReadonly.value
|
|
1297
|
-
})), h =
|
|
1298
|
-
|
|
1297
|
+
})), h = Ll("validation"), p = I(() => e.name ?? $(t));
|
|
1298
|
+
wn(() => {
|
|
1299
1299
|
u.register?.({
|
|
1300
1300
|
id: p.value,
|
|
1301
1301
|
vm: h,
|
|
@@ -1303,7 +1303,7 @@ function Pa(e) {
|
|
|
1303
1303
|
reset: w,
|
|
1304
1304
|
resetValidation: P
|
|
1305
1305
|
});
|
|
1306
|
-
}),
|
|
1306
|
+
}), kl(() => {
|
|
1307
1307
|
u.unregister?.(p.value);
|
|
1308
1308
|
}), at(async () => {
|
|
1309
1309
|
c.value.lazy || await C(!c.value.eager), u.update?.(p.value, m.value, d.value);
|
|
@@ -1312,8 +1312,8 @@ function Pa(e) {
|
|
|
1312
1312
|
if (l.value != null)
|
|
1313
1313
|
C();
|
|
1314
1314
|
else if (e.focused) {
|
|
1315
|
-
const F = se(() => e.focused, (
|
|
1316
|
-
|
|
1315
|
+
const F = se(() => e.focused, (B) => {
|
|
1316
|
+
B || C(), F();
|
|
1317
1317
|
});
|
|
1318
1318
|
}
|
|
1319
1319
|
});
|
|
@@ -1328,14 +1328,14 @@ function Pa(e) {
|
|
|
1328
1328
|
n.value = null, await ke(), await P();
|
|
1329
1329
|
}
|
|
1330
1330
|
async function P() {
|
|
1331
|
-
|
|
1331
|
+
o.value = !0, c.value.lazy ? i.value = [] : await C(!c.value.eager);
|
|
1332
1332
|
}
|
|
1333
1333
|
async function C() {
|
|
1334
1334
|
let F = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1;
|
|
1335
|
-
const
|
|
1335
|
+
const B = [];
|
|
1336
1336
|
v.value = !0;
|
|
1337
1337
|
for (const U of s.value) {
|
|
1338
|
-
if (
|
|
1338
|
+
if (B.length >= Number(e.maxErrors ?? 1))
|
|
1339
1339
|
break;
|
|
1340
1340
|
const V = await (typeof U == "function" ? U : () => U)(l.value);
|
|
1341
1341
|
if (V !== !0) {
|
|
@@ -1343,17 +1343,17 @@ function Pa(e) {
|
|
|
1343
1343
|
console.warn(`${V} is not a valid value. Rule functions must return boolean true or a string.`);
|
|
1344
1344
|
continue;
|
|
1345
1345
|
}
|
|
1346
|
-
|
|
1346
|
+
B.push(V || "");
|
|
1347
1347
|
}
|
|
1348
1348
|
}
|
|
1349
|
-
return
|
|
1349
|
+
return i.value = B, v.value = !1, o.value = F, i.value;
|
|
1350
1350
|
}
|
|
1351
1351
|
return {
|
|
1352
1352
|
errorMessages: d,
|
|
1353
1353
|
isDirty: r,
|
|
1354
1354
|
isDisabled: u.isDisabled,
|
|
1355
1355
|
isReadonly: u.isReadonly,
|
|
1356
|
-
isPristine:
|
|
1356
|
+
isPristine: o,
|
|
1357
1357
|
isValid: m,
|
|
1358
1358
|
isValidating: v,
|
|
1359
1359
|
reset: w,
|
|
@@ -1362,9 +1362,9 @@ function Pa(e) {
|
|
|
1362
1362
|
validationClasses: y
|
|
1363
1363
|
};
|
|
1364
1364
|
}
|
|
1365
|
-
const
|
|
1365
|
+
const cn = X({
|
|
1366
1366
|
id: String,
|
|
1367
|
-
appendIcon:
|
|
1367
|
+
appendIcon: he,
|
|
1368
1368
|
baseColor: String,
|
|
1369
1369
|
centerAffix: {
|
|
1370
1370
|
type: Boolean,
|
|
@@ -1373,7 +1373,7 @@ const rn = X({
|
|
|
1373
1373
|
color: String,
|
|
1374
1374
|
glow: Boolean,
|
|
1375
1375
|
iconColor: [Boolean, String],
|
|
1376
|
-
prependIcon:
|
|
1376
|
+
prependIcon: he,
|
|
1377
1377
|
hideDetails: [Boolean, String],
|
|
1378
1378
|
hideSpinButtons: Boolean,
|
|
1379
1379
|
hint: String,
|
|
@@ -1389,7 +1389,7 @@ const rn = X({
|
|
|
1389
1389
|
},
|
|
1390
1390
|
"onClick:prepend": Le(),
|
|
1391
1391
|
"onClick:append": Le(),
|
|
1392
|
-
...
|
|
1392
|
+
...be(),
|
|
1393
1393
|
...ht(),
|
|
1394
1394
|
...On(pt(), ["maxWidth", "minWidth", "width"]),
|
|
1395
1395
|
...He(),
|
|
@@ -1397,7 +1397,7 @@ const rn = X({
|
|
|
1397
1397
|
}, "VInput"), hl = ie()({
|
|
1398
1398
|
name: "VInput",
|
|
1399
1399
|
props: {
|
|
1400
|
-
...
|
|
1400
|
+
...cn()
|
|
1401
1401
|
},
|
|
1402
1402
|
emits: {
|
|
1403
1403
|
"update:modelValue": (e) => !0
|
|
@@ -1413,9 +1413,9 @@ const rn = X({
|
|
|
1413
1413
|
} = Dt(e), {
|
|
1414
1414
|
dimensionStyles: s
|
|
1415
1415
|
} = bt(e), {
|
|
1416
|
-
themeClasses:
|
|
1416
|
+
themeClasses: i
|
|
1417
1417
|
} = ot(e), {
|
|
1418
|
-
rtlClasses:
|
|
1418
|
+
rtlClasses: o
|
|
1419
1419
|
} = Ft(), {
|
|
1420
1420
|
InputIcon: r
|
|
1421
1421
|
} = Ot(e), d = Xe(), c = I(() => e.id || `input-${d}`), {
|
|
@@ -1428,9 +1428,9 @@ const rn = X({
|
|
|
1428
1428
|
isValidating: P,
|
|
1429
1429
|
reset: C,
|
|
1430
1430
|
resetValidation: F,
|
|
1431
|
-
validate:
|
|
1431
|
+
validate: B,
|
|
1432
1432
|
validationClasses: U
|
|
1433
|
-
} = Pa(e, "v-input", c), _ = I(() => e.errorMessages?.length || !p.value && m.value.length ? m.value : e.hint && (e.persistentHint || e.focused) ? e.hint : e.messages), V =
|
|
1433
|
+
} = Pa(e, "v-input", c), _ = I(() => e.errorMessages?.length || !p.value && m.value.length ? m.value : e.hint && (e.persistentHint || e.focused) ? e.hint : e.messages), V = E(() => _.value.length > 0), M = E(() => !e.hideDetails || e.hideDetails === "auto" && (V.value || !!n.details)), D = I(() => M.value ? `${c.value}-messages` : void 0), K = I(() => ({
|
|
1434
1434
|
id: c,
|
|
1435
1435
|
messagesId: D,
|
|
1436
1436
|
isDirty: v,
|
|
@@ -1439,41 +1439,41 @@ const rn = X({
|
|
|
1439
1439
|
isPristine: p,
|
|
1440
1440
|
isValid: w,
|
|
1441
1441
|
isValidating: P,
|
|
1442
|
-
hasDetails:
|
|
1442
|
+
hasDetails: M,
|
|
1443
1443
|
reset: C,
|
|
1444
1444
|
resetValidation: F,
|
|
1445
|
-
validate:
|
|
1446
|
-
})),
|
|
1445
|
+
validate: B
|
|
1446
|
+
})), Q = E(() => e.error || e.disabled ? void 0 : e.focused ? e.color : e.baseColor), H = E(() => {
|
|
1447
1447
|
if (e.iconColor)
|
|
1448
|
-
return e.iconColor === !0 ?
|
|
1448
|
+
return e.iconColor === !0 ? Q.value : e.iconColor;
|
|
1449
1449
|
});
|
|
1450
1450
|
return de(() => {
|
|
1451
|
-
const W = !!(n.prepend || e.prependIcon),
|
|
1451
|
+
const W = !!(n.prepend || e.prependIcon), j = !!(n.append || e.appendIcon);
|
|
1452
1452
|
return b("div", {
|
|
1453
1453
|
class: re(["v-input", `v-input--${e.direction}`, {
|
|
1454
1454
|
"v-input--center-affix": e.centerAffix,
|
|
1455
1455
|
"v-input--focused": e.focused,
|
|
1456
1456
|
"v-input--glow": e.glow,
|
|
1457
1457
|
"v-input--hide-spin-buttons": e.hideSpinButtons
|
|
1458
|
-
}, u.value,
|
|
1458
|
+
}, u.value, i.value, o.value, U.value, e.class]),
|
|
1459
1459
|
style: xe([s.value, e.style])
|
|
1460
1460
|
}, [W && b("div", {
|
|
1461
1461
|
key: "prepend",
|
|
1462
1462
|
class: "v-input__prepend"
|
|
1463
|
-
}, [n.prepend ? n.prepend(
|
|
1463
|
+
}, [n.prepend ? n.prepend(K.value) : e.prependIcon && g(r, {
|
|
1464
1464
|
key: "prepend-icon",
|
|
1465
1465
|
name: "prepend",
|
|
1466
1466
|
color: H.value
|
|
1467
1467
|
}, null)]), n.default && b("div", {
|
|
1468
1468
|
class: "v-input__control"
|
|
1469
|
-
}, [n.default?.(
|
|
1469
|
+
}, [n.default?.(K.value)]), j && b("div", {
|
|
1470
1470
|
key: "append",
|
|
1471
1471
|
class: "v-input__append"
|
|
1472
|
-
}, [n.append ? n.append(
|
|
1472
|
+
}, [n.append ? n.append(K.value) : e.appendIcon && g(r, {
|
|
1473
1473
|
key: "append-icon",
|
|
1474
1474
|
name: "append",
|
|
1475
1475
|
color: H.value
|
|
1476
|
-
}, null)]),
|
|
1476
|
+
}, null)]), M.value && b("div", {
|
|
1477
1477
|
id: D.value,
|
|
1478
1478
|
class: "v-input__details",
|
|
1479
1479
|
role: "alert",
|
|
@@ -1483,11 +1483,11 @@ const rn = X({
|
|
|
1483
1483
|
messages: _.value
|
|
1484
1484
|
}, {
|
|
1485
1485
|
message: n.message
|
|
1486
|
-
}), n.details?.(
|
|
1486
|
+
}), n.details?.(K.value)])]);
|
|
1487
1487
|
}), {
|
|
1488
1488
|
reset: C,
|
|
1489
1489
|
resetValidation: F,
|
|
1490
|
-
validate:
|
|
1490
|
+
validate: B,
|
|
1491
1491
|
isValid: w,
|
|
1492
1492
|
errorMessages: m
|
|
1493
1493
|
};
|
|
@@ -1500,10 +1500,10 @@ const rn = X({
|
|
|
1500
1500
|
type: [Number, String],
|
|
1501
1501
|
default: 0
|
|
1502
1502
|
},
|
|
1503
|
-
...
|
|
1503
|
+
...be(),
|
|
1504
1504
|
...Bt({
|
|
1505
1505
|
transition: {
|
|
1506
|
-
component:
|
|
1506
|
+
component: Ml
|
|
1507
1507
|
}
|
|
1508
1508
|
})
|
|
1509
1509
|
}, "VCounter"), Fa = ie()({
|
|
@@ -1514,7 +1514,7 @@ const rn = X({
|
|
|
1514
1514
|
let {
|
|
1515
1515
|
slots: t
|
|
1516
1516
|
} = a;
|
|
1517
|
-
const n =
|
|
1517
|
+
const n = E(() => e.max ? `${e.value} / ${e.max}` : String(e.value));
|
|
1518
1518
|
return de(() => g(nl, {
|
|
1519
1519
|
transition: e.transition
|
|
1520
1520
|
}, {
|
|
@@ -1532,7 +1532,7 @@ const rn = X({
|
|
|
1532
1532
|
}
|
|
1533
1533
|
}), Da = X({
|
|
1534
1534
|
floating: Boolean,
|
|
1535
|
-
...
|
|
1535
|
+
...be()
|
|
1536
1536
|
}, "VFieldLabel"), Ct = ie()({
|
|
1537
1537
|
name: "VFieldLabel",
|
|
1538
1538
|
props: Da(),
|
|
@@ -1540,19 +1540,19 @@ const rn = X({
|
|
|
1540
1540
|
let {
|
|
1541
1541
|
slots: t
|
|
1542
1542
|
} = a;
|
|
1543
|
-
return de(() => g(
|
|
1543
|
+
return de(() => g(ln, {
|
|
1544
1544
|
class: re(["v-field-label", {
|
|
1545
1545
|
"v-field-label--floating": e.floating
|
|
1546
1546
|
}, e.class]),
|
|
1547
1547
|
style: xe(e.style)
|
|
1548
1548
|
}, t)), {};
|
|
1549
1549
|
}
|
|
1550
|
-
}), Ta = ["underlined", "outlined", "filled", "solo", "solo-inverted", "solo-filled", "plain"],
|
|
1551
|
-
appendInnerIcon:
|
|
1550
|
+
}), Ta = ["underlined", "outlined", "filled", "solo", "solo-inverted", "solo-filled", "plain"], dn = X({
|
|
1551
|
+
appendInnerIcon: he,
|
|
1552
1552
|
bgColor: String,
|
|
1553
1553
|
clearable: Boolean,
|
|
1554
1554
|
clearIcon: {
|
|
1555
|
-
type:
|
|
1555
|
+
type: he,
|
|
1556
1556
|
default: "$clear"
|
|
1557
1557
|
},
|
|
1558
1558
|
active: Boolean,
|
|
@@ -1573,7 +1573,7 @@ const rn = X({
|
|
|
1573
1573
|
iconColor: [Boolean, String],
|
|
1574
1574
|
label: String,
|
|
1575
1575
|
persistentClear: Boolean,
|
|
1576
|
-
prependInnerIcon:
|
|
1576
|
+
prependInnerIcon: he,
|
|
1577
1577
|
reverse: Boolean,
|
|
1578
1578
|
singleLine: Boolean,
|
|
1579
1579
|
variant: {
|
|
@@ -1584,8 +1584,8 @@ const rn = X({
|
|
|
1584
1584
|
"onClick:clear": Le(),
|
|
1585
1585
|
"onClick:appendInner": Le(),
|
|
1586
1586
|
"onClick:prependInner": Le(),
|
|
1587
|
-
...
|
|
1588
|
-
...
|
|
1587
|
+
...be(),
|
|
1588
|
+
...Ul(),
|
|
1589
1589
|
...yt(),
|
|
1590
1590
|
...He()
|
|
1591
1591
|
}, "VField"), bl = ie()({
|
|
@@ -1595,8 +1595,8 @@ const rn = X({
|
|
|
1595
1595
|
id: String,
|
|
1596
1596
|
details: Boolean,
|
|
1597
1597
|
labelId: String,
|
|
1598
|
-
...
|
|
1599
|
-
...
|
|
1598
|
+
...sn(),
|
|
1599
|
+
...dn()
|
|
1600
1600
|
},
|
|
1601
1601
|
emits: {
|
|
1602
1602
|
"update:focused": (e) => !0,
|
|
@@ -1612,35 +1612,35 @@ const rn = X({
|
|
|
1612
1612
|
themeClasses: u
|
|
1613
1613
|
} = ot(e), {
|
|
1614
1614
|
loaderClasses: s
|
|
1615
|
-
} =
|
|
1616
|
-
focusClasses:
|
|
1617
|
-
isFocused:
|
|
1615
|
+
} = Hl(e), {
|
|
1616
|
+
focusClasses: i,
|
|
1617
|
+
isFocused: o,
|
|
1618
1618
|
focus: r,
|
|
1619
1619
|
blur: d
|
|
1620
|
-
} =
|
|
1620
|
+
} = rn(e), {
|
|
1621
1621
|
InputIcon: c
|
|
1622
1622
|
} = Ot(e), {
|
|
1623
1623
|
roundedClasses: m
|
|
1624
1624
|
} = gt(e), {
|
|
1625
1625
|
rtlClasses: v
|
|
1626
|
-
} = Ft(), y =
|
|
1627
|
-
if (!(!e.iconColor || e.glow && !
|
|
1626
|
+
} = Ft(), y = E(() => e.dirty || e.active), h = E(() => !!(e.label || l.label)), p = E(() => !e.singleLine && h.value), w = Xe(), P = I(() => e.id || `input-${w}`), C = E(() => e.details ? `${P.value}-messages` : void 0), F = G(), B = G(), U = G(), _ = I(() => ["plain", "underlined"].includes(e.variant)), V = I(() => e.error || e.disabled ? void 0 : y.value && o.value ? e.color : e.baseColor), M = I(() => {
|
|
1627
|
+
if (!(!e.iconColor || e.glow && !o.value))
|
|
1628
1628
|
return e.iconColor === !0 ? V.value : e.iconColor;
|
|
1629
1629
|
}), {
|
|
1630
1630
|
backgroundColorClasses: D,
|
|
1631
|
-
backgroundColorStyles:
|
|
1631
|
+
backgroundColorStyles: K
|
|
1632
1632
|
} = Tt(() => e.bgColor), {
|
|
1633
|
-
textColorClasses:
|
|
1633
|
+
textColorClasses: Q,
|
|
1634
1634
|
textColorStyles: H
|
|
1635
1635
|
} = kt(V);
|
|
1636
1636
|
se(y, (z) => {
|
|
1637
|
-
if (p.value && !
|
|
1638
|
-
const fe = F.value.$el,
|
|
1637
|
+
if (p.value && !xl()) {
|
|
1638
|
+
const fe = F.value.$el, R = B.value.$el;
|
|
1639
1639
|
requestAnimationFrame(() => {
|
|
1640
|
-
const O = $n(fe), k = new Mn(
|
|
1640
|
+
const O = $n(fe), k = new Mn(R), f = k.x - O.x, A = k.y - O.y - (O.height / 2 - k.height / 2), J = k.width / 0.75, ve = Math.abs(J - O.width) > 1 ? {
|
|
1641
1641
|
maxWidth: et(J)
|
|
1642
|
-
} : void 0, ge = getComputedStyle(fe),
|
|
1643
|
-
fe.style.visibility = "visible",
|
|
1642
|
+
} : void 0, ge = getComputedStyle(fe), pe = getComputedStyle(R), Ie = parseFloat(ge.transitionDuration) * 1e3 || 150, De = parseFloat(pe.getPropertyValue("--v-field-label-scale")), je = pe.getPropertyValue("color");
|
|
1643
|
+
fe.style.visibility = "visible", R.style.visibility = "hidden", Nn(fe, {
|
|
1644
1644
|
transform: `translate(${f}px, ${A}px) scale(${De})`,
|
|
1645
1645
|
color: je,
|
|
1646
1646
|
...ve
|
|
@@ -1649,7 +1649,7 @@ const rn = X({
|
|
|
1649
1649
|
easing: Ln,
|
|
1650
1650
|
direction: z ? "normal" : "reverse"
|
|
1651
1651
|
}).finished.then(() => {
|
|
1652
|
-
fe.style.removeProperty("visibility"),
|
|
1652
|
+
fe.style.removeProperty("visibility"), R.style.removeProperty("visibility");
|
|
1653
1653
|
});
|
|
1654
1654
|
});
|
|
1655
1655
|
}
|
|
@@ -1658,18 +1658,18 @@ const rn = X({
|
|
|
1658
1658
|
});
|
|
1659
1659
|
const W = I(() => ({
|
|
1660
1660
|
isActive: y,
|
|
1661
|
-
isFocused:
|
|
1661
|
+
isFocused: o,
|
|
1662
1662
|
controlRef: U,
|
|
1663
|
-
iconColor:
|
|
1663
|
+
iconColor: M,
|
|
1664
1664
|
blur: d,
|
|
1665
1665
|
focus: r
|
|
1666
|
-
})),
|
|
1666
|
+
})), j = E(() => {
|
|
1667
1667
|
const z = !y.value;
|
|
1668
1668
|
return {
|
|
1669
1669
|
"aria-hidden": z,
|
|
1670
1670
|
for: z ? void 0 : P.value
|
|
1671
1671
|
};
|
|
1672
|
-
}), ue =
|
|
1672
|
+
}), ue = E(() => {
|
|
1673
1673
|
const z = p.value && y.value;
|
|
1674
1674
|
return {
|
|
1675
1675
|
"aria-hidden": z,
|
|
@@ -1680,14 +1680,14 @@ const rn = X({
|
|
|
1680
1680
|
z.target !== document.activeElement && z.preventDefault();
|
|
1681
1681
|
}
|
|
1682
1682
|
return de(() => {
|
|
1683
|
-
const z = e.variant === "outlined", fe = !!(l["prepend-inner"] || e.prependInnerIcon),
|
|
1683
|
+
const z = e.variant === "outlined", fe = !!(l["prepend-inner"] || e.prependInnerIcon), R = !!(e.clearable || l.clear) && !e.disabled, O = !!(l["append-inner"] || e.appendInnerIcon || R), k = () => l.label ? l.label({
|
|
1684
1684
|
...W.value,
|
|
1685
1685
|
label: e.label,
|
|
1686
1686
|
props: {
|
|
1687
1687
|
for: P.value
|
|
1688
1688
|
}
|
|
1689
1689
|
}) : e.label;
|
|
1690
|
-
return b("div",
|
|
1690
|
+
return b("div", L({
|
|
1691
1691
|
class: ["v-field", {
|
|
1692
1692
|
"v-field--active": y.value,
|
|
1693
1693
|
"v-field--appended": O,
|
|
@@ -1704,12 +1704,12 @@ const rn = X({
|
|
|
1704
1704
|
"v-field--single-line": e.singleLine,
|
|
1705
1705
|
"v-field--no-label": !k(),
|
|
1706
1706
|
[`v-field--variant-${e.variant}`]: !0
|
|
1707
|
-
}, u.value, D.value,
|
|
1708
|
-
style: [
|
|
1707
|
+
}, u.value, D.value, i.value, s.value, m.value, v.value, e.class],
|
|
1708
|
+
style: [K.value, e.style],
|
|
1709
1709
|
onClick: q
|
|
1710
1710
|
}, t), [b("div", {
|
|
1711
1711
|
class: "v-field__overlay"
|
|
1712
|
-
}, null), g(
|
|
1712
|
+
}, null), g(zl, {
|
|
1713
1713
|
name: "v-field",
|
|
1714
1714
|
active: !!e.loading,
|
|
1715
1715
|
color: e.error ? "error" : typeof e.loading == "string" ? e.loading : e.color
|
|
@@ -1721,20 +1721,20 @@ const rn = X({
|
|
|
1721
1721
|
}, [l["prepend-inner"] ? l["prepend-inner"](W.value) : e.prependInnerIcon && g(c, {
|
|
1722
1722
|
key: "prepend-icon",
|
|
1723
1723
|
name: "prependInner",
|
|
1724
|
-
color:
|
|
1724
|
+
color: M.value
|
|
1725
1725
|
}, null)]), b("div", {
|
|
1726
1726
|
class: "v-field__field",
|
|
1727
1727
|
"data-no-activator": ""
|
|
1728
|
-
}, [["filled", "solo", "solo-inverted", "solo-filled"].includes(e.variant) && p.value && g(Ct,
|
|
1728
|
+
}, [["filled", "solo", "solo-inverted", "solo-filled"].includes(e.variant) && p.value && g(Ct, L({
|
|
1729
1729
|
key: "floating-label",
|
|
1730
|
-
ref:
|
|
1731
|
-
class: [
|
|
1730
|
+
ref: B,
|
|
1731
|
+
class: [Q.value],
|
|
1732
1732
|
floating: !0
|
|
1733
|
-
},
|
|
1733
|
+
}, j.value, {
|
|
1734
1734
|
style: H.value
|
|
1735
1735
|
}), {
|
|
1736
1736
|
default: () => [k()]
|
|
1737
|
-
}), h.value && g(Ct,
|
|
1737
|
+
}), h.value && g(Ct, L({
|
|
1738
1738
|
key: "label",
|
|
1739
1739
|
ref: F,
|
|
1740
1740
|
id: e.labelId
|
|
@@ -1753,7 +1753,7 @@ const rn = X({
|
|
|
1753
1753
|
id: P.value,
|
|
1754
1754
|
class: "v-field__input",
|
|
1755
1755
|
"aria-describedby": C.value
|
|
1756
|
-
}, null)]),
|
|
1756
|
+
}, null)]), R && g(Tl, {
|
|
1757
1757
|
key: "clear"
|
|
1758
1758
|
}, {
|
|
1759
1759
|
default: () => [Ue(b("div", {
|
|
@@ -1789,40 +1789,40 @@ const rn = X({
|
|
|
1789
1789
|
}, [l["append-inner"] ? l["append-inner"](W.value) : e.appendInnerIcon && g(c, {
|
|
1790
1790
|
key: "append-icon",
|
|
1791
1791
|
name: "appendInner",
|
|
1792
|
-
color:
|
|
1792
|
+
color: M.value
|
|
1793
1793
|
}, null)]), b("div", {
|
|
1794
|
-
class: re(["v-field__outline",
|
|
1794
|
+
class: re(["v-field__outline", Q.value]),
|
|
1795
1795
|
style: xe(H.value)
|
|
1796
1796
|
}, [z && b(ce, null, [b("div", {
|
|
1797
1797
|
class: "v-field__outline__start"
|
|
1798
1798
|
}, null), p.value && b("div", {
|
|
1799
1799
|
class: "v-field__outline__notch"
|
|
1800
|
-
}, [g(Ct,
|
|
1801
|
-
ref:
|
|
1800
|
+
}, [g(Ct, L({
|
|
1801
|
+
ref: B,
|
|
1802
1802
|
floating: !0
|
|
1803
|
-
},
|
|
1803
|
+
}, j.value), {
|
|
1804
1804
|
default: () => [k()]
|
|
1805
1805
|
})]), b("div", {
|
|
1806
1806
|
class: "v-field__outline__end"
|
|
1807
|
-
}, null)]), _.value && p.value && g(Ct,
|
|
1808
|
-
ref:
|
|
1807
|
+
}, null)]), _.value && p.value && g(Ct, L({
|
|
1808
|
+
ref: B,
|
|
1809
1809
|
floating: !0
|
|
1810
|
-
},
|
|
1810
|
+
}, j.value), {
|
|
1811
1811
|
default: () => [k()]
|
|
1812
1812
|
})])]);
|
|
1813
1813
|
}), {
|
|
1814
1814
|
controlRef: U,
|
|
1815
|
-
fieldIconColor:
|
|
1815
|
+
fieldIconColor: M
|
|
1816
1816
|
};
|
|
1817
1817
|
}
|
|
1818
1818
|
}), Ba = X({
|
|
1819
1819
|
autocomplete: String
|
|
1820
1820
|
}, "autocomplete");
|
|
1821
|
-
function
|
|
1822
|
-
const a = Xe(), t =
|
|
1821
|
+
function vn(e) {
|
|
1822
|
+
const a = Xe(), t = te(0), n = E(() => e.autocomplete === "suppress"), l = E(() => {
|
|
1823
1823
|
if (e.name)
|
|
1824
1824
|
return n.value ? `${e.name}-${a}-${t.value}` : e.name;
|
|
1825
|
-
}), u =
|
|
1825
|
+
}), u = E(() => n.value ? "off" : e.autocomplete);
|
|
1826
1826
|
return {
|
|
1827
1827
|
isSuppressing: n,
|
|
1828
1828
|
fieldAutocomplete: u,
|
|
@@ -1856,8 +1856,8 @@ const Ea = ["color", "file", "time", "date", "datetime-local", "week", "month"],
|
|
|
1856
1856
|
},
|
|
1857
1857
|
modelModifiers: Object,
|
|
1858
1858
|
...Ba(),
|
|
1859
|
-
...Ye(
|
|
1860
|
-
...
|
|
1859
|
+
...Ye(cn(), ["direction"]),
|
|
1860
|
+
...dn()
|
|
1861
1861
|
}, "VTextField"), Je = ie()({
|
|
1862
1862
|
name: "VTextField",
|
|
1863
1863
|
directives: {
|
|
@@ -1879,17 +1879,17 @@ const Ea = ["color", "file", "time", "date", "datetime-local", "week", "month"],
|
|
|
1879
1879
|
} = a;
|
|
1880
1880
|
const u = Ve(e, "modelValue", void 0, (_) => Object.is(_, -0) ? "-0" : _), {
|
|
1881
1881
|
isFocused: s,
|
|
1882
|
-
focus:
|
|
1883
|
-
blur:
|
|
1884
|
-
} =
|
|
1882
|
+
focus: i,
|
|
1883
|
+
blur: o
|
|
1884
|
+
} = rn(e), {
|
|
1885
1885
|
onIntersect: r
|
|
1886
1886
|
} = Ra(e), d = I(() => typeof e.counterValue == "function" ? e.counterValue(u.value) : typeof e.counterValue == "number" ? e.counterValue : (u.value ?? "").toString().length), c = I(() => {
|
|
1887
1887
|
if (t.maxlength) return t.maxlength;
|
|
1888
1888
|
if (!(!e.counter || typeof e.counter != "number" && typeof e.counter != "string"))
|
|
1889
1889
|
return e.counter;
|
|
1890
|
-
}), m = I(() => ["plain", "underlined"].includes(e.variant)), v =
|
|
1890
|
+
}), m = I(() => ["plain", "underlined"].includes(e.variant)), v = G(), y = G(), h = G(), p = vn(e), w = I(() => Ea.includes(e.type) || e.persistentPlaceholder || s.value || e.active);
|
|
1891
1891
|
function P() {
|
|
1892
|
-
p.isSuppressing.value && p.update(), s.value ||
|
|
1892
|
+
p.isSuppressing.value && p.update(), s.value || i(), ke(() => {
|
|
1893
1893
|
h.value !== document.activeElement && h.value?.focus();
|
|
1894
1894
|
});
|
|
1895
1895
|
}
|
|
@@ -1899,9 +1899,9 @@ const Ea = ["color", "file", "time", "date", "datetime-local", "week", "month"],
|
|
|
1899
1899
|
function F(_) {
|
|
1900
1900
|
n("click:control", _);
|
|
1901
1901
|
}
|
|
1902
|
-
function
|
|
1902
|
+
function B(_, V) {
|
|
1903
1903
|
_.stopPropagation(), P(), ke(() => {
|
|
1904
|
-
V(),
|
|
1904
|
+
V(), $l(e["onClick:clear"], _);
|
|
1905
1905
|
});
|
|
1906
1906
|
}
|
|
1907
1907
|
function U(_) {
|
|
@@ -1910,18 +1910,18 @@ const Ea = ["color", "file", "time", "date", "datetime-local", "week", "month"],
|
|
|
1910
1910
|
u.value = V.value;
|
|
1911
1911
|
return;
|
|
1912
1912
|
}
|
|
1913
|
-
const
|
|
1914
|
-
u.value =
|
|
1915
|
-
let
|
|
1916
|
-
|
|
1913
|
+
const M = V.value, D = V.selectionStart, K = V.selectionEnd;
|
|
1914
|
+
u.value = M, ke(() => {
|
|
1915
|
+
let Q = 0;
|
|
1916
|
+
M.trimStart().length === V.value.length && (Q = M.length - V.value.length), D != null && (V.selectionStart = D - Q), K != null && (V.selectionEnd = K - Q);
|
|
1917
1917
|
});
|
|
1918
1918
|
}
|
|
1919
1919
|
return de(() => {
|
|
1920
|
-
const _ = !!(l.counter || e.counter !== !1 && e.counter != null), V = !!(_ || l.details), [
|
|
1921
|
-
modelValue:
|
|
1922
|
-
...
|
|
1920
|
+
const _ = !!(l.counter || e.counter !== !1 && e.counter != null), V = !!(_ || l.details), [M, D] = Ol(t), {
|
|
1921
|
+
modelValue: K,
|
|
1922
|
+
...Q
|
|
1923
1923
|
} = hl.filterProps(e), H = bl.filterProps(e);
|
|
1924
|
-
return g(hl,
|
|
1924
|
+
return g(hl, L({
|
|
1925
1925
|
ref: v,
|
|
1926
1926
|
modelValue: u.value,
|
|
1927
1927
|
"onUpdate:modelValue": (W) => u.value = W,
|
|
@@ -1931,35 +1931,35 @@ const Ea = ["color", "file", "time", "date", "datetime-local", "week", "month"],
|
|
|
1931
1931
|
"v-input--plain-underlined": m.value
|
|
1932
1932
|
}, e.class],
|
|
1933
1933
|
style: e.style
|
|
1934
|
-
},
|
|
1934
|
+
}, M, Q, {
|
|
1935
1935
|
centerAffix: !m.value,
|
|
1936
1936
|
focused: s.value
|
|
1937
1937
|
}), {
|
|
1938
1938
|
...l,
|
|
1939
1939
|
default: (W) => {
|
|
1940
1940
|
let {
|
|
1941
|
-
id:
|
|
1941
|
+
id: j,
|
|
1942
1942
|
isDisabled: ue,
|
|
1943
1943
|
isDirty: q,
|
|
1944
1944
|
isReadonly: z,
|
|
1945
1945
|
isValid: fe,
|
|
1946
|
-
hasDetails:
|
|
1946
|
+
hasDetails: R,
|
|
1947
1947
|
reset: O
|
|
1948
1948
|
} = W;
|
|
1949
|
-
return g(bl,
|
|
1949
|
+
return g(bl, L({
|
|
1950
1950
|
ref: y,
|
|
1951
1951
|
onMousedown: C,
|
|
1952
1952
|
onClick: F,
|
|
1953
|
-
"onClick:clear": (k) =>
|
|
1953
|
+
"onClick:clear": (k) => B(k, O),
|
|
1954
1954
|
role: e.role
|
|
1955
1955
|
}, Ye(H, ["onClick:clear"]), {
|
|
1956
|
-
id:
|
|
1957
|
-
labelId: `${
|
|
1956
|
+
id: j.value,
|
|
1957
|
+
labelId: `${j.value}-label`,
|
|
1958
1958
|
active: w.value || q.value,
|
|
1959
1959
|
dirty: q.value || e.dirty,
|
|
1960
1960
|
disabled: ue.value,
|
|
1961
1961
|
focused: s.value,
|
|
1962
|
-
details:
|
|
1962
|
+
details: R.value,
|
|
1963
1963
|
error: fe.value === !1
|
|
1964
1964
|
}), {
|
|
1965
1965
|
...l,
|
|
@@ -1971,7 +1971,7 @@ const Ea = ["color", "file", "time", "date", "datetime-local", "week", "month"],
|
|
|
1971
1971
|
},
|
|
1972
1972
|
controlRef: J
|
|
1973
1973
|
} = k;
|
|
1974
|
-
const ve = b("input",
|
|
1974
|
+
const ve = b("input", L({
|
|
1975
1975
|
ref: (ge) => h.value = J.value = ge,
|
|
1976
1976
|
value: u.value,
|
|
1977
1977
|
onInput: U,
|
|
@@ -1984,9 +1984,9 @@ const Ea = ["color", "file", "time", "date", "datetime-local", "week", "month"],
|
|
|
1984
1984
|
size: 1,
|
|
1985
1985
|
role: e.role,
|
|
1986
1986
|
type: e.type,
|
|
1987
|
-
onFocus:
|
|
1988
|
-
onBlur:
|
|
1989
|
-
"aria-labelledby": `${
|
|
1987
|
+
onFocus: i,
|
|
1988
|
+
onBlur: o,
|
|
1989
|
+
"aria-labelledby": `${j.value}-label`
|
|
1990
1990
|
}, A, D), null);
|
|
1991
1991
|
return b(ce, null, [e.prefix && b("span", {
|
|
1992
1992
|
class: "v-text-field__prefix"
|
|
@@ -1996,7 +1996,7 @@ const Ea = ["color", "file", "time", "date", "datetime-local", "week", "month"],
|
|
|
1996
1996
|
class: re(f),
|
|
1997
1997
|
"data-no-activator": ""
|
|
1998
1998
|
}, [l.default({
|
|
1999
|
-
id:
|
|
1999
|
+
id: j
|
|
2000
2000
|
}), ve]) : _n(ve, {
|
|
2001
2001
|
class: f
|
|
2002
2002
|
}), [[dl, r, null, {
|
|
@@ -2020,7 +2020,7 @@ const Ea = ["color", "file", "time", "date", "datetime-local", "week", "month"],
|
|
|
2020
2020
|
}
|
|
2021
2021
|
}), Oa = X({
|
|
2022
2022
|
renderless: Boolean,
|
|
2023
|
-
...
|
|
2023
|
+
...be()
|
|
2024
2024
|
}, "VVirtualScrollItem"), $a = ie()({
|
|
2025
2025
|
name: "VVirtualScrollItem",
|
|
2026
2026
|
inheritAttrs: !1,
|
|
@@ -2038,11 +2038,11 @@ const Ea = ["color", "file", "time", "date", "datetime-local", "week", "month"],
|
|
|
2038
2038
|
resizeRef: u,
|
|
2039
2039
|
contentRect: s
|
|
2040
2040
|
} = It(void 0, "border");
|
|
2041
|
-
se(() => s.value?.height, (
|
|
2042
|
-
|
|
2041
|
+
se(() => s.value?.height, (i) => {
|
|
2042
|
+
i != null && n("update:height", i);
|
|
2043
2043
|
}), de(() => e.renderless ? b(ce, null, [l.default?.({
|
|
2044
2044
|
itemRef: u
|
|
2045
|
-
})]) : b("div",
|
|
2045
|
+
})]) : b("div", L({
|
|
2046
2046
|
ref: u,
|
|
2047
2047
|
class: ["v-virtual-scroll__item", e.class],
|
|
2048
2048
|
style: e.style
|
|
@@ -2060,45 +2060,45 @@ const Ea = ["color", "file", "time", "date", "datetime-local", "week", "month"],
|
|
|
2060
2060
|
height: [Number, String]
|
|
2061
2061
|
}, "virtual");
|
|
2062
2062
|
function Ha(e, a) {
|
|
2063
|
-
const t =
|
|
2063
|
+
const t = Il(), n = te(0);
|
|
2064
2064
|
zt(() => {
|
|
2065
2065
|
n.value = parseFloat(e.itemHeight || 0);
|
|
2066
2066
|
});
|
|
2067
|
-
const l =
|
|
2067
|
+
const l = te(0), u = te(Math.ceil(
|
|
2068
2068
|
// Assume 16px items filling the entire screen height if
|
|
2069
2069
|
// not provided. This is probably incorrect but it minimises
|
|
2070
2070
|
// the chance of ending up with empty space at the bottom.
|
|
2071
2071
|
// The default value is set here to avoid poisoning getSize()
|
|
2072
2072
|
(parseInt(e.height) || t.height.value) / (n.value || 16)
|
|
2073
|
-
) || 1), s =
|
|
2073
|
+
) || 1), s = te(0), i = te(0), o = G(), r = G();
|
|
2074
2074
|
let d = 0;
|
|
2075
2075
|
const {
|
|
2076
2076
|
resizeRef: c,
|
|
2077
2077
|
contentRect: m
|
|
2078
2078
|
} = It();
|
|
2079
2079
|
zt(() => {
|
|
2080
|
-
c.value =
|
|
2080
|
+
c.value = o.value;
|
|
2081
2081
|
});
|
|
2082
|
-
const v = I(() =>
|
|
2082
|
+
const v = I(() => o.value === document.documentElement ? t.height.value : m.value?.height || parseInt(e.height) || 0), y = I(() => !!(o.value && r.value && v.value && n.value));
|
|
2083
2083
|
let h = Array.from({
|
|
2084
2084
|
length: a.value.length
|
|
2085
2085
|
}), p = Array.from({
|
|
2086
2086
|
length: a.value.length
|
|
2087
2087
|
});
|
|
2088
|
-
const w =
|
|
2088
|
+
const w = te(0);
|
|
2089
2089
|
let P = -1;
|
|
2090
|
-
function C(
|
|
2091
|
-
return h[
|
|
2090
|
+
function C(R) {
|
|
2091
|
+
return h[R] || n.value;
|
|
2092
2092
|
}
|
|
2093
2093
|
const F = Hn(() => {
|
|
2094
|
-
const
|
|
2094
|
+
const R = performance.now();
|
|
2095
2095
|
p[0] = 0;
|
|
2096
2096
|
const O = a.value.length;
|
|
2097
2097
|
for (let k = 1; k <= O; k++)
|
|
2098
2098
|
p[k] = (p[k - 1] || 0) + C(k - 1);
|
|
2099
|
-
w.value = Math.max(w.value, performance.now() -
|
|
2100
|
-
}, w),
|
|
2101
|
-
|
|
2099
|
+
w.value = Math.max(w.value, performance.now() - R);
|
|
2100
|
+
}, w), B = se(y, (R) => {
|
|
2101
|
+
R && (B(), d = r.value.offsetTop, F.immediate(), ue(), ~P && ke(() => {
|
|
2102
2102
|
ct && window.requestAnimationFrame(() => {
|
|
2103
2103
|
z(P), P = -1;
|
|
2104
2104
|
});
|
|
@@ -2107,40 +2107,40 @@ function Ha(e, a) {
|
|
|
2107
2107
|
rt(() => {
|
|
2108
2108
|
F.clear();
|
|
2109
2109
|
});
|
|
2110
|
-
function U(
|
|
2111
|
-
const k = h[
|
|
2112
|
-
n.value = f ? Math.min(n.value, O) : O, (k !== O || f !== n.value) && (h[
|
|
2110
|
+
function U(R, O) {
|
|
2111
|
+
const k = h[R], f = n.value;
|
|
2112
|
+
n.value = f ? Math.min(n.value, O) : O, (k !== O || f !== n.value) && (h[R] = O, F());
|
|
2113
2113
|
}
|
|
2114
|
-
function _(
|
|
2115
|
-
|
|
2116
|
-
const O = Math.floor(
|
|
2114
|
+
function _(R) {
|
|
2115
|
+
R = Ne(R, 0, a.value.length);
|
|
2116
|
+
const O = Math.floor(R), k = R % 1, f = O + 1, A = p[O] || 0, J = p[f] || A;
|
|
2117
2117
|
return A + (J - A) * k;
|
|
2118
2118
|
}
|
|
2119
|
-
function V(
|
|
2120
|
-
return za(p,
|
|
2119
|
+
function V(R) {
|
|
2120
|
+
return za(p, R);
|
|
2121
2121
|
}
|
|
2122
|
-
let
|
|
2123
|
-
se(v, (
|
|
2124
|
-
ue(),
|
|
2122
|
+
let M = 0, D = 0, K = 0;
|
|
2123
|
+
se(v, (R, O) => {
|
|
2124
|
+
ue(), R < O && requestAnimationFrame(() => {
|
|
2125
2125
|
D = 0, ue();
|
|
2126
2126
|
});
|
|
2127
2127
|
});
|
|
2128
|
-
let
|
|
2128
|
+
let Q = -1;
|
|
2129
2129
|
function H() {
|
|
2130
|
-
if (!
|
|
2131
|
-
const
|
|
2132
|
-
O -
|
|
2130
|
+
if (!o.value || !r.value) return;
|
|
2131
|
+
const R = o.value.scrollTop, O = performance.now();
|
|
2132
|
+
O - K > 500 ? (D = Math.sign(R - M), d = r.value.offsetTop) : D = R - M, M = R, K = O, window.clearTimeout(Q), Q = window.setTimeout(W, 500), ue();
|
|
2133
2133
|
}
|
|
2134
2134
|
function W() {
|
|
2135
|
-
!
|
|
2135
|
+
!o.value || !r.value || (D = 0, K = 0, window.clearTimeout(Q), ue());
|
|
2136
2136
|
}
|
|
2137
|
-
let
|
|
2137
|
+
let j = -1;
|
|
2138
2138
|
function ue() {
|
|
2139
|
-
cancelAnimationFrame(
|
|
2139
|
+
cancelAnimationFrame(j), j = requestAnimationFrame(q);
|
|
2140
2140
|
}
|
|
2141
2141
|
function q() {
|
|
2142
|
-
if (!
|
|
2143
|
-
const
|
|
2142
|
+
if (!o.value || !v.value || !n.value) return;
|
|
2143
|
+
const R = M - d, O = Math.sign(D), k = Math.max(0, R - Lt), f = Ne(V(k), 0, a.value.length), A = R + v.value + Lt, J = Ne(V(A) + 1, f + 1, a.value.length);
|
|
2144
2144
|
if (
|
|
2145
2145
|
// Only update the side we're scrolling towards,
|
|
2146
2146
|
// the other side will be updated incidentally
|
|
@@ -2149,18 +2149,18 @@ function Ha(e, a) {
|
|
|
2149
2149
|
const ve = _(l.value) - _(f), ge = _(J) - _(u.value);
|
|
2150
2150
|
Math.max(ve, ge) > Lt ? (l.value = f, u.value = J) : (f <= 0 && (l.value = f), J >= a.value.length && (u.value = J));
|
|
2151
2151
|
}
|
|
2152
|
-
s.value = _(l.value),
|
|
2152
|
+
s.value = _(l.value), i.value = _(a.value.length) - _(u.value);
|
|
2153
2153
|
}
|
|
2154
|
-
function z(
|
|
2155
|
-
const O = _(
|
|
2156
|
-
!
|
|
2154
|
+
function z(R) {
|
|
2155
|
+
const O = _(R);
|
|
2156
|
+
!o.value || R && !O ? P = R : o.value.scrollTop = O;
|
|
2157
2157
|
}
|
|
2158
|
-
const fe = I(() => a.value.slice(l.value, u.value).map((
|
|
2158
|
+
const fe = I(() => a.value.slice(l.value, u.value).map((R, O) => {
|
|
2159
2159
|
const k = O + l.value;
|
|
2160
2160
|
return {
|
|
2161
|
-
raw:
|
|
2161
|
+
raw: R,
|
|
2162
2162
|
index: k,
|
|
2163
|
-
key:
|
|
2163
|
+
key: Kl(R, e.itemKey, k)
|
|
2164
2164
|
};
|
|
2165
2165
|
}));
|
|
2166
2166
|
return se(a, () => {
|
|
@@ -2173,11 +2173,11 @@ function Ha(e, a) {
|
|
|
2173
2173
|
deep: 1
|
|
2174
2174
|
}), {
|
|
2175
2175
|
calculateVisibleItems: ue,
|
|
2176
|
-
containerRef:
|
|
2176
|
+
containerRef: o,
|
|
2177
2177
|
markerRef: r,
|
|
2178
2178
|
computedItems: fe,
|
|
2179
2179
|
paddingTop: s,
|
|
2180
|
-
paddingBottom:
|
|
2180
|
+
paddingBottom: i,
|
|
2181
2181
|
scrollToIndex: z,
|
|
2182
2182
|
handleScroll: H,
|
|
2183
2183
|
handleScrollend: W,
|
|
@@ -2203,35 +2203,35 @@ const Ua = X({
|
|
|
2203
2203
|
},
|
|
2204
2204
|
renderless: Boolean,
|
|
2205
2205
|
...La(),
|
|
2206
|
-
...
|
|
2206
|
+
...be(),
|
|
2207
2207
|
...pt()
|
|
2208
|
-
}, "VVirtualScroll"),
|
|
2208
|
+
}, "VVirtualScroll"), fn = ie()({
|
|
2209
2209
|
name: "VVirtualScroll",
|
|
2210
2210
|
props: Ua(),
|
|
2211
2211
|
setup(e, a) {
|
|
2212
2212
|
let {
|
|
2213
2213
|
slots: t
|
|
2214
2214
|
} = a;
|
|
2215
|
-
const n =
|
|
2215
|
+
const n = Ll("VVirtualScroll"), {
|
|
2216
2216
|
dimensionStyles: l
|
|
2217
2217
|
} = bt(e), {
|
|
2218
2218
|
calculateVisibleItems: u,
|
|
2219
2219
|
containerRef: s,
|
|
2220
|
-
markerRef:
|
|
2221
|
-
handleScroll:
|
|
2220
|
+
markerRef: i,
|
|
2221
|
+
handleScroll: o,
|
|
2222
2222
|
handleScrollend: r,
|
|
2223
2223
|
handleItemResize: d,
|
|
2224
2224
|
scrollToIndex: c,
|
|
2225
2225
|
paddingTop: m,
|
|
2226
2226
|
paddingBottom: v,
|
|
2227
2227
|
computedItems: y
|
|
2228
|
-
} = Ha(e,
|
|
2228
|
+
} = Ha(e, E(() => e.items));
|
|
2229
2229
|
return jt(() => e.renderless, () => {
|
|
2230
2230
|
function h() {
|
|
2231
2231
|
const w = (arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1) ? "addEventListener" : "removeEventListener";
|
|
2232
|
-
s.value === document.documentElement ? (document[w]("scroll",
|
|
2232
|
+
s.value === document.documentElement ? (document[w]("scroll", o, {
|
|
2233
2233
|
passive: !0
|
|
2234
|
-
}), document[w]("scrollend", r)) : (s.value?.[w]("scroll",
|
|
2234
|
+
}), document[w]("scrollend", r)) : (s.value?.[w]("scroll", o, {
|
|
2235
2235
|
passive: !0
|
|
2236
2236
|
}), s.value?.[w]("scrollend", r));
|
|
2237
2237
|
}
|
|
@@ -2251,7 +2251,7 @@ const Ua = X({
|
|
|
2251
2251
|
})
|
|
2252
2252
|
}));
|
|
2253
2253
|
return e.renderless ? b(ce, null, [b("div", {
|
|
2254
|
-
ref:
|
|
2254
|
+
ref: i,
|
|
2255
2255
|
class: "v-virtual-scroll__spacer",
|
|
2256
2256
|
style: {
|
|
2257
2257
|
paddingTop: et(m.value)
|
|
@@ -2264,11 +2264,11 @@ const Ua = X({
|
|
|
2264
2264
|
}, null)]) : b("div", {
|
|
2265
2265
|
ref: s,
|
|
2266
2266
|
class: re(["v-virtual-scroll", e.class]),
|
|
2267
|
-
onScrollPassive:
|
|
2267
|
+
onScrollPassive: o,
|
|
2268
2268
|
onScrollend: r,
|
|
2269
2269
|
style: xe([l.value, e.style])
|
|
2270
2270
|
}, [b("div", {
|
|
2271
|
-
ref:
|
|
2271
|
+
ref: i,
|
|
2272
2272
|
class: "v-virtual-scroll__container",
|
|
2273
2273
|
style: {
|
|
2274
2274
|
paddingTop: et(m.value),
|
|
@@ -2281,10 +2281,10 @@ const Ua = X({
|
|
|
2281
2281
|
};
|
|
2282
2282
|
}
|
|
2283
2283
|
});
|
|
2284
|
-
function
|
|
2285
|
-
const t =
|
|
2284
|
+
function mn(e, a) {
|
|
2285
|
+
const t = te(!1);
|
|
2286
2286
|
let n;
|
|
2287
|
-
function l(
|
|
2287
|
+
function l(i) {
|
|
2288
2288
|
cancelAnimationFrame(n), t.value = !0, n = requestAnimationFrame(() => {
|
|
2289
2289
|
n = requestAnimationFrame(() => {
|
|
2290
2290
|
t.value = !1;
|
|
@@ -2292,32 +2292,32 @@ function fn(e, a) {
|
|
|
2292
2292
|
});
|
|
2293
2293
|
}
|
|
2294
2294
|
async function u() {
|
|
2295
|
-
await new Promise((
|
|
2295
|
+
await new Promise((i) => requestAnimationFrame(i)), await new Promise((i) => requestAnimationFrame(i)), await new Promise((i) => requestAnimationFrame(i)), await new Promise((i) => {
|
|
2296
2296
|
if (t.value) {
|
|
2297
|
-
const
|
|
2298
|
-
|
|
2297
|
+
const o = se(t, () => {
|
|
2298
|
+
o(), i();
|
|
2299
2299
|
});
|
|
2300
|
-
} else
|
|
2300
|
+
} else i();
|
|
2301
2301
|
});
|
|
2302
2302
|
}
|
|
2303
|
-
async function s(
|
|
2304
|
-
if (
|
|
2305
|
-
const
|
|
2306
|
-
if (!
|
|
2307
|
-
(
|
|
2308
|
-
top:
|
|
2303
|
+
async function s(i) {
|
|
2304
|
+
if (i.key === "Tab" && a.value?.focus(), !["PageDown", "PageUp", "Home", "End"].includes(i.key)) return;
|
|
2305
|
+
const o = e.value?.$el;
|
|
2306
|
+
if (!o) return;
|
|
2307
|
+
(i.key === "Home" || i.key === "End") && o.scrollTo({
|
|
2308
|
+
top: i.key === "Home" ? 0 : o.scrollHeight,
|
|
2309
2309
|
behavior: "smooth"
|
|
2310
2310
|
}), await u();
|
|
2311
|
-
const r =
|
|
2312
|
-
if (
|
|
2313
|
-
const d =
|
|
2311
|
+
const r = o.querySelectorAll(":scope > :not(.v-virtual-scroll__spacer)");
|
|
2312
|
+
if (i.key === "PageDown" || i.key === "Home") {
|
|
2313
|
+
const d = o.getBoundingClientRect().top;
|
|
2314
2314
|
for (const c of r)
|
|
2315
2315
|
if (c.getBoundingClientRect().top >= d) {
|
|
2316
2316
|
c.focus();
|
|
2317
2317
|
break;
|
|
2318
2318
|
}
|
|
2319
2319
|
} else {
|
|
2320
|
-
const d =
|
|
2320
|
+
const d = o.getBoundingClientRect().bottom;
|
|
2321
2321
|
for (const c of [...r].reverse())
|
|
2322
2322
|
if (c.getBoundingClientRect().bottom <= d) {
|
|
2323
2323
|
c.focus();
|
|
@@ -2330,25 +2330,25 @@ function fn(e, a) {
|
|
|
2330
2330
|
onKeydown: s
|
|
2331
2331
|
};
|
|
2332
2332
|
}
|
|
2333
|
-
function
|
|
2333
|
+
function gn(e) {
|
|
2334
2334
|
let {
|
|
2335
2335
|
groups: a,
|
|
2336
2336
|
onLeave: t
|
|
2337
2337
|
} = e;
|
|
2338
|
-
function n(
|
|
2339
|
-
return
|
|
2338
|
+
function n(i) {
|
|
2339
|
+
return i.type === "list" ? i.contentRef.value?.$el : i.contentRef.value;
|
|
2340
2340
|
}
|
|
2341
|
-
function l(
|
|
2342
|
-
const
|
|
2343
|
-
return
|
|
2341
|
+
function l(i) {
|
|
2342
|
+
const o = n(i);
|
|
2343
|
+
return o ? _l(o) : [];
|
|
2344
2344
|
}
|
|
2345
|
-
function u(
|
|
2346
|
-
const
|
|
2345
|
+
function u(i) {
|
|
2346
|
+
const o = i.target, r = i.shiftKey ? "backward" : "forward", d = a.map(l), c = a.map((v) => v.type === "list" ? v.contentRef.value?.$el : v.contentRef.value).findIndex((v) => v?.contains(o)), m = s(d, c, r, o);
|
|
2347
2347
|
if (m === null) {
|
|
2348
2348
|
const v = a[c], y = d[c];
|
|
2349
|
-
(v.type === "list" || (r === "forward" ? y.at(-1) ===
|
|
2349
|
+
(v.type === "list" || (r === "forward" ? y.at(-1) === i.target : y.at(0) === i.target)) && t();
|
|
2350
2350
|
} else {
|
|
2351
|
-
|
|
2351
|
+
i.preventDefault(), i.stopImmediatePropagation();
|
|
2352
2352
|
const v = a[m];
|
|
2353
2353
|
if (v.type === "list" && Ut(v.displayItemsCount) > 0)
|
|
2354
2354
|
v.contentRef.value?.focus(0);
|
|
@@ -2358,14 +2358,14 @@ function mn(e) {
|
|
|
2358
2358
|
}
|
|
2359
2359
|
}
|
|
2360
2360
|
}
|
|
2361
|
-
function s(
|
|
2362
|
-
const c = a[
|
|
2361
|
+
function s(i, o, r, d) {
|
|
2362
|
+
const c = a[o], m = i[o];
|
|
2363
2363
|
if (c.type !== "list" && !(r === "forward" ? m.at(-1) === d : m.at(0) === d))
|
|
2364
2364
|
return null;
|
|
2365
2365
|
const v = r === "forward" ? 1 : -1;
|
|
2366
|
-
for (let y =
|
|
2366
|
+
for (let y = o + v; y >= 0 && y < a.length; y += v) {
|
|
2367
2367
|
const h = a[y];
|
|
2368
|
-
if (
|
|
2368
|
+
if (i[y].length > 0 || h.type === "list" && Ut(h.displayItemsCount) > 0)
|
|
2369
2369
|
return y;
|
|
2370
2370
|
}
|
|
2371
2371
|
return null;
|
|
@@ -2388,7 +2388,7 @@ function Ht(e, a) {
|
|
|
2388
2388
|
if (!(e == null || typeof e == "boolean" || e === -1))
|
|
2389
2389
|
return typeof e == "number" ? [[e, e + a.length]] : Array.isArray(e[0]) ? e : [e];
|
|
2390
2390
|
}
|
|
2391
|
-
const
|
|
2391
|
+
const yn = X({
|
|
2392
2392
|
customFilter: Function,
|
|
2393
2393
|
customKeyFilter: Object,
|
|
2394
2394
|
filterKeys: [Array, String],
|
|
@@ -2401,16 +2401,16 @@ const gn = X({
|
|
|
2401
2401
|
function ja(e, a, t) {
|
|
2402
2402
|
const n = [], l = t?.default ?? Ka, u = t?.filterKeys ? Te(t.filterKeys) : !1, s = Object.keys(t?.customKeyFilter ?? {}).length;
|
|
2403
2403
|
if (!e?.length) return n;
|
|
2404
|
-
let
|
|
2405
|
-
e: for (let
|
|
2406
|
-
const [r, d = r] = Te(e[
|
|
2404
|
+
let i = [];
|
|
2405
|
+
e: for (let o = 0; o < e.length; o++) {
|
|
2406
|
+
const [r, d = r] = Te(e[o]), c = {}, m = {};
|
|
2407
2407
|
let v = -1;
|
|
2408
2408
|
if ((a || s > 0) && !t?.noFilter) {
|
|
2409
2409
|
let y = !1;
|
|
2410
2410
|
if (typeof r == "object") {
|
|
2411
2411
|
if (r.type === "divider" || r.type === "subheader") {
|
|
2412
|
-
(
|
|
2413
|
-
index:
|
|
2412
|
+
(i.at(-1)?.type !== "divider" || r.type !== "subheader") && (i = []), i.push({
|
|
2413
|
+
index: o,
|
|
2414
2414
|
matches: {},
|
|
2415
2415
|
type: r.type
|
|
2416
2416
|
});
|
|
@@ -2419,7 +2419,7 @@ function ja(e, a, t) {
|
|
|
2419
2419
|
const w = u || Object.keys(d);
|
|
2420
2420
|
y = w.length === s;
|
|
2421
2421
|
for (const P of w) {
|
|
2422
|
-
const C =
|
|
2422
|
+
const C = Kl(d, P), F = t?.customKeyFilter?.[P];
|
|
2423
2423
|
if (v = F ? F(C, a, r) : l(C, a, r), v !== -1 && v !== !1)
|
|
2424
2424
|
F ? c[P] = Ht(v, a) : m[P] = Ht(v, a);
|
|
2425
2425
|
else if (t?.filterMode === "every")
|
|
@@ -2430,8 +2430,8 @@ function ja(e, a, t) {
|
|
|
2430
2430
|
const h = Object.keys(m).length, p = Object.keys(c).length;
|
|
2431
2431
|
if (!h && !p || t?.filterMode === "union" && p !== s && !h || t?.filterMode === "intersection" && (p !== s || !h && s > 0 && !y)) continue;
|
|
2432
2432
|
}
|
|
2433
|
-
|
|
2434
|
-
index:
|
|
2433
|
+
i.length && (n.push(...i), i = []), n.push({
|
|
2434
|
+
index: o,
|
|
2435
2435
|
matches: {
|
|
2436
2436
|
...m,
|
|
2437
2437
|
...c
|
|
@@ -2440,19 +2440,19 @@ function ja(e, a, t) {
|
|
|
2440
2440
|
}
|
|
2441
2441
|
return n;
|
|
2442
2442
|
}
|
|
2443
|
-
function
|
|
2444
|
-
const l =
|
|
2443
|
+
function hn(e, a, t, n) {
|
|
2444
|
+
const l = te([]), u = te(/* @__PURE__ */ new Map()), s = I(() => n?.transform ? $(a).map((o) => [o, n.transform(o)]) : $(a));
|
|
2445
2445
|
zt(() => {
|
|
2446
|
-
const
|
|
2446
|
+
const o = typeof t == "function" ? t() : $(t), r = typeof o != "string" && typeof o != "number" ? "" : String(o), d = ja(s.value, r, {
|
|
2447
2447
|
customKeyFilter: {
|
|
2448
2448
|
...e.customKeyFilter,
|
|
2449
|
-
|
|
2449
|
+
...$(n?.customKeyFilter)
|
|
2450
2450
|
},
|
|
2451
2451
|
default: e.customFilter,
|
|
2452
2452
|
filterKeys: e.filterKeys,
|
|
2453
2453
|
filterMode: e.filterMode,
|
|
2454
2454
|
noFilter: e.noFilter
|
|
2455
|
-
}), c =
|
|
2455
|
+
}), c = $(a), m = [], v = /* @__PURE__ */ new Map();
|
|
2456
2456
|
d.forEach((y) => {
|
|
2457
2457
|
let {
|
|
2458
2458
|
index: h,
|
|
@@ -2462,16 +2462,16 @@ function yn(e, a, t, n) {
|
|
|
2462
2462
|
m.push(w), v.set(w.value, p);
|
|
2463
2463
|
}), l.value = m, u.value = v;
|
|
2464
2464
|
});
|
|
2465
|
-
function o
|
|
2466
|
-
return u.value.get(
|
|
2465
|
+
function i(o) {
|
|
2466
|
+
return u.value.get(o.value);
|
|
2467
2467
|
}
|
|
2468
2468
|
return {
|
|
2469
2469
|
filteredItems: l,
|
|
2470
2470
|
filteredMatches: u,
|
|
2471
|
-
getMatches:
|
|
2471
|
+
getMatches: i
|
|
2472
2472
|
};
|
|
2473
2473
|
}
|
|
2474
|
-
function
|
|
2474
|
+
function bn(e, a, t) {
|
|
2475
2475
|
return t == null || !t.length ? a : t.map((n, l) => {
|
|
2476
2476
|
const u = l === 0 ? 0 : t[l - 1][1], s = [b("span", {
|
|
2477
2477
|
class: re(`${e}__unmask`)
|
|
@@ -2493,15 +2493,15 @@ const Ga = X({
|
|
|
2493
2493
|
default: "$vuetify.open"
|
|
2494
2494
|
}
|
|
2495
2495
|
}, "autocomplete");
|
|
2496
|
-
function
|
|
2497
|
-
const t = Xe(), n = I(() => `menu-${t}`), l =
|
|
2496
|
+
function pn(e, a) {
|
|
2497
|
+
const t = Xe(), n = I(() => `menu-${t}`), l = E(() => Ut(a)), u = E(() => n.value);
|
|
2498
2498
|
return {
|
|
2499
2499
|
menuId: n,
|
|
2500
2500
|
ariaExpanded: l,
|
|
2501
2501
|
ariaControls: u
|
|
2502
2502
|
};
|
|
2503
2503
|
}
|
|
2504
|
-
const
|
|
2504
|
+
const kn = X({
|
|
2505
2505
|
chips: Boolean,
|
|
2506
2506
|
closableChips: Boolean,
|
|
2507
2507
|
eager: Boolean,
|
|
@@ -2512,7 +2512,7 @@ const pn = X({
|
|
|
2512
2512
|
},
|
|
2513
2513
|
menu: Boolean,
|
|
2514
2514
|
menuIcon: {
|
|
2515
|
-
type:
|
|
2515
|
+
type: he,
|
|
2516
2516
|
default: "$dropdown"
|
|
2517
2517
|
},
|
|
2518
2518
|
menuProps: {
|
|
@@ -2532,17 +2532,17 @@ const pn = X({
|
|
|
2532
2532
|
})
|
|
2533
2533
|
}, "Select"), Wa = X({
|
|
2534
2534
|
search: String,
|
|
2535
|
-
...
|
|
2535
|
+
...yn({
|
|
2536
2536
|
filterKeys: ["title"]
|
|
2537
2537
|
}),
|
|
2538
|
-
...
|
|
2538
|
+
...kn(),
|
|
2539
2539
|
...Ye(Mt({
|
|
2540
2540
|
modelValue: null,
|
|
2541
2541
|
role: "combobox"
|
|
2542
2542
|
}), ["validationValue", "dirty"]),
|
|
2543
2543
|
...Bt({
|
|
2544
2544
|
transition: {
|
|
2545
|
-
component:
|
|
2545
|
+
component: Jl
|
|
2546
2546
|
}
|
|
2547
2547
|
})
|
|
2548
2548
|
}, "VSelect"), Bo = ie()({
|
|
@@ -2560,42 +2560,42 @@ const pn = X({
|
|
|
2560
2560
|
} = a;
|
|
2561
2561
|
const {
|
|
2562
2562
|
t: n
|
|
2563
|
-
} = it(), l =
|
|
2563
|
+
} = it(), l = G(), u = G(), s = G(), i = G(), o = G(), {
|
|
2564
2564
|
items: r,
|
|
2565
2565
|
transformIn: d,
|
|
2566
2566
|
transformOut: c
|
|
2567
|
-
} =
|
|
2567
|
+
} = jl(e), m = Ve(e, "search", ""), {
|
|
2568
2568
|
filteredItems: v,
|
|
2569
2569
|
getMatches: y
|
|
2570
|
-
} =
|
|
2571
|
-
const
|
|
2572
|
-
return e.multiple ?
|
|
2573
|
-
}), p = I(() => typeof e.counterValue == "function" ? e.counterValue(h.value) : typeof e.counterValue == "number" ? e.counterValue : h.value.length), w = $t(e), P =
|
|
2570
|
+
} = hn(e, r, () => m.value), h = Ve(e, "modelValue", [], (x) => d(x === null ? [null] : Te(x)), (x) => {
|
|
2571
|
+
const Z = c(x);
|
|
2572
|
+
return e.multiple ? Z : Z[0] ?? null;
|
|
2573
|
+
}), p = I(() => typeof e.counterValue == "function" ? e.counterValue(h.value) : typeof e.counterValue == "number" ? e.counterValue : h.value.length), w = $t(e), P = vn(e), C = I(() => h.value.map((x) => x.value)), F = te(!1), B = E(() => e.closableChips && !w.isReadonly.value && !w.isDisabled.value), {
|
|
2574
2574
|
InputIcon: U
|
|
2575
2575
|
} = Ot(e);
|
|
2576
|
-
let _ = "", V = 0,
|
|
2576
|
+
let _ = "", V = 0, M;
|
|
2577
2577
|
const D = I(() => {
|
|
2578
2578
|
const x = m.value ? v.value : r.value;
|
|
2579
|
-
return e.hideSelected ? x.filter((
|
|
2580
|
-
}),
|
|
2581
|
-
get: () =>
|
|
2579
|
+
return e.hideSelected ? x.filter((Z) => !h.value.some((le) => (e.valueComparator || qe)(le, Z))) : x;
|
|
2580
|
+
}), K = I(() => e.hideNoData && !D.value.length || w.isReadonly.value || w.isDisabled.value), Q = Ve(e, "menu"), H = I({
|
|
2581
|
+
get: () => Q.value,
|
|
2582
2582
|
set: (x) => {
|
|
2583
|
-
|
|
2583
|
+
Q.value && !x && u.value?.ΨopenChildren.size || x && K.value || (Q.value = x);
|
|
2584
2584
|
}
|
|
2585
2585
|
}), {
|
|
2586
2586
|
menuId: W,
|
|
2587
|
-
ariaExpanded:
|
|
2587
|
+
ariaExpanded: j,
|
|
2588
2588
|
ariaControls: ue
|
|
2589
|
-
} =
|
|
2589
|
+
} = pn(e, H), q = I(() => ({
|
|
2590
2590
|
...e.menuProps,
|
|
2591
2591
|
activatorProps: {
|
|
2592
2592
|
...e.menuProps?.activatorProps || {},
|
|
2593
2593
|
"aria-haspopup": "listbox"
|
|
2594
2594
|
// Set aria-haspopup to 'listbox'
|
|
2595
2595
|
}
|
|
2596
|
-
})), z =
|
|
2597
|
-
onTabKeydown:
|
|
2598
|
-
} =
|
|
2596
|
+
})), z = G(), fe = mn(z, l), {
|
|
2597
|
+
onTabKeydown: R
|
|
2598
|
+
} = gn({
|
|
2599
2599
|
groups: [{
|
|
2600
2600
|
type: "element",
|
|
2601
2601
|
contentRef: s
|
|
@@ -2605,7 +2605,7 @@ const pn = X({
|
|
|
2605
2605
|
displayItemsCount: () => D.value.length
|
|
2606
2606
|
}, {
|
|
2607
2607
|
type: "element",
|
|
2608
|
-
contentRef:
|
|
2608
|
+
contentRef: i
|
|
2609
2609
|
}],
|
|
2610
2610
|
onLeave: () => {
|
|
2611
2611
|
H.value = !1, l.value?.focus();
|
|
@@ -2615,10 +2615,10 @@ const pn = X({
|
|
|
2615
2615
|
e.openOnClear && (H.value = !0);
|
|
2616
2616
|
}
|
|
2617
2617
|
function k() {
|
|
2618
|
-
|
|
2618
|
+
K.value || (H.value = !H.value);
|
|
2619
2619
|
}
|
|
2620
2620
|
function f(x) {
|
|
2621
|
-
x.key === "Tab" &&
|
|
2621
|
+
x.key === "Tab" && R(x), z.value?.$el.contains(x.target) && wt(x) && A(x);
|
|
2622
2622
|
}
|
|
2623
2623
|
function A(x) {
|
|
2624
2624
|
if (!x.key || w.isReadonly.value) return;
|
|
@@ -2627,10 +2627,10 @@ const pn = X({
|
|
|
2627
2627
|
return;
|
|
2628
2628
|
}
|
|
2629
2629
|
x.key === "Home" ? z.value?.focus("first") : x.key === "End" && z.value?.focus("last");
|
|
2630
|
-
const
|
|
2630
|
+
const Z = 1e3;
|
|
2631
2631
|
if (!wt(x)) return;
|
|
2632
|
-
const
|
|
2633
|
-
|
|
2632
|
+
const le = performance.now();
|
|
2633
|
+
le - M > Z && (_ = "", V = 0), _ += x.key.toLowerCase(), M = le;
|
|
2634
2634
|
const Be = D.value;
|
|
2635
2635
|
function _e() {
|
|
2636
2636
|
let T = we();
|
|
@@ -2638,52 +2638,52 @@ const pn = X({
|
|
|
2638
2638
|
}
|
|
2639
2639
|
function we() {
|
|
2640
2640
|
for (let T = V; T < Be.length; T++) {
|
|
2641
|
-
const
|
|
2642
|
-
if (
|
|
2643
|
-
return [
|
|
2641
|
+
const ne = Be[T];
|
|
2642
|
+
if (ne.title.toLowerCase().startsWith(_))
|
|
2643
|
+
return [ne, T];
|
|
2644
2644
|
}
|
|
2645
2645
|
}
|
|
2646
2646
|
const S = _e();
|
|
2647
2647
|
if (!S) return;
|
|
2648
|
-
const [Y,
|
|
2649
|
-
V =
|
|
2648
|
+
const [Y, N] = S;
|
|
2649
|
+
V = N, z.value?.focus(N), e.multiple || (h.value = [Y]);
|
|
2650
2650
|
}
|
|
2651
2651
|
function J(x) {
|
|
2652
|
-
let
|
|
2652
|
+
let Z = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;
|
|
2653
2653
|
if (!x.props.disabled)
|
|
2654
2654
|
if (e.multiple) {
|
|
2655
|
-
const
|
|
2656
|
-
if (~
|
|
2655
|
+
const le = h.value.findIndex((_e) => (e.valueComparator || qe)(_e.value, x.value)), Be = Z ?? !~le;
|
|
2656
|
+
if (~le) {
|
|
2657
2657
|
const _e = Be ? [...h.value, x] : [...h.value];
|
|
2658
|
-
_e.splice(
|
|
2658
|
+
_e.splice(le, 1), h.value = _e;
|
|
2659
2659
|
} else Be && (h.value = [...h.value, x]);
|
|
2660
2660
|
} else {
|
|
2661
|
-
const
|
|
2662
|
-
h.value =
|
|
2661
|
+
const le = Z !== !1;
|
|
2662
|
+
h.value = le ? [x] : [], ke(() => {
|
|
2663
2663
|
H.value = !1;
|
|
2664
2664
|
});
|
|
2665
2665
|
}
|
|
2666
2666
|
}
|
|
2667
2667
|
function ve(x) {
|
|
2668
|
-
const
|
|
2669
|
-
l.value?.$el.contains(
|
|
2668
|
+
const Z = x.target;
|
|
2669
|
+
l.value?.$el.contains(Z) || (H.value = !1);
|
|
2670
2670
|
}
|
|
2671
2671
|
function ge() {
|
|
2672
|
-
return D.value.findIndex((x) => h.value.some((
|
|
2672
|
+
return D.value.findIndex((x) => h.value.some((Z) => (e.valueComparator || qe)(Z.value, x.value)));
|
|
2673
2673
|
}
|
|
2674
|
-
function
|
|
2674
|
+
function pe() {
|
|
2675
2675
|
if (!h.value.length) return -1;
|
|
2676
2676
|
const x = e.valueComparator || qe;
|
|
2677
|
-
let
|
|
2678
|
-
for (const
|
|
2679
|
-
if (h.value.some((_e) => x(_e.value,
|
|
2680
|
-
|
|
2677
|
+
let Z = 0;
|
|
2678
|
+
for (const le of D.value) {
|
|
2679
|
+
if (h.value.some((_e) => x(_e.value, le.value))) return le.props.disabled ? -1 : Z;
|
|
2680
|
+
le.props.disabled || Z++;
|
|
2681
2681
|
}
|
|
2682
2682
|
return -1;
|
|
2683
2683
|
}
|
|
2684
2684
|
function Ie() {
|
|
2685
|
-
if (e.eager &&
|
|
2686
|
-
const x =
|
|
2685
|
+
if (e.eager && o.value?.calculateVisibleItems(), z.value && F.value) {
|
|
2686
|
+
const x = pe();
|
|
2687
2687
|
z.value.focus(x >= 0 ? x : "first");
|
|
2688
2688
|
}
|
|
2689
2689
|
}
|
|
@@ -2699,25 +2699,25 @@ const pn = X({
|
|
|
2699
2699
|
function ut(x) {
|
|
2700
2700
|
if (x == null) h.value = [];
|
|
2701
2701
|
else if (dt(l.value, ":autofill") || dt(l.value, ":-webkit-autofill")) {
|
|
2702
|
-
const
|
|
2703
|
-
|
|
2702
|
+
const Z = r.value.find((le) => le.title === x);
|
|
2703
|
+
Z && J(Z);
|
|
2704
2704
|
} else l.value && (l.value.value = "");
|
|
2705
2705
|
}
|
|
2706
2706
|
return se(H, () => {
|
|
2707
2707
|
if (!e.hideSelected && H.value && h.value.length) {
|
|
2708
2708
|
const x = ge();
|
|
2709
2709
|
ct && !e.noAutoScroll && window.requestAnimationFrame(() => {
|
|
2710
|
-
x >= 0 &&
|
|
2710
|
+
x >= 0 && o.value?.scrollToIndex(x);
|
|
2711
2711
|
});
|
|
2712
2712
|
}
|
|
2713
|
-
}), se(r, (x,
|
|
2714
|
-
H.value || F.value && e.hideNoData && !
|
|
2713
|
+
}), se(r, (x, Z) => {
|
|
2714
|
+
H.value || F.value && e.hideNoData && !Z.length && x.length && (H.value = !0);
|
|
2715
2715
|
}), de(() => {
|
|
2716
|
-
const x = !!(e.chips || t.chip),
|
|
2716
|
+
const x = !!(e.chips || t.chip), Z = !!(!e.hideNoData || D.value.length || t["prepend-item"] || t["append-item"] || t["no-data"]), le = h.value.length > 0, Be = Je.filterProps(e), _e = le || !F.value && e.label && !e.persistentPlaceholder ? void 0 : e.placeholder, we = {
|
|
2717
2717
|
search: m,
|
|
2718
2718
|
filteredItems: v.value
|
|
2719
2719
|
};
|
|
2720
|
-
return g(Je,
|
|
2720
|
+
return g(Je, L({
|
|
2721
2721
|
ref: l
|
|
2722
2722
|
}, Be, {
|
|
2723
2723
|
modelValue: h.value.map((S) => S.props.title).join(", "),
|
|
@@ -2727,7 +2727,7 @@ const pn = X({
|
|
|
2727
2727
|
"onUpdate:focused": (S) => F.value = S,
|
|
2728
2728
|
validationValue: h.externalValue,
|
|
2729
2729
|
counterValue: p.value,
|
|
2730
|
-
dirty:
|
|
2730
|
+
dirty: le,
|
|
2731
2731
|
class: ["v-select", {
|
|
2732
2732
|
"v-select--active-menu": H.value,
|
|
2733
2733
|
"v-select--chips": !!e.chips,
|
|
@@ -2742,7 +2742,7 @@ const pn = X({
|
|
|
2742
2742
|
"onMousedown:control": k,
|
|
2743
2743
|
onBlur: ve,
|
|
2744
2744
|
onKeydown: A,
|
|
2745
|
-
"aria-expanded":
|
|
2745
|
+
"aria-expanded": j.value,
|
|
2746
2746
|
"aria-controls": ue.value
|
|
2747
2747
|
}), {
|
|
2748
2748
|
...t,
|
|
@@ -2754,18 +2754,18 @@ const pn = X({
|
|
|
2754
2754
|
hidden: !0,
|
|
2755
2755
|
multiple: e.multiple,
|
|
2756
2756
|
name: P.fieldName.value
|
|
2757
|
-
}, [r.value.map((
|
|
2758
|
-
key:
|
|
2759
|
-
value:
|
|
2760
|
-
selected: C.value.includes(
|
|
2761
|
-
}, null))]), g(
|
|
2757
|
+
}, [r.value.map((N) => b("option", {
|
|
2758
|
+
key: N.value,
|
|
2759
|
+
value: N.value,
|
|
2760
|
+
selected: C.value.includes(N.value)
|
|
2761
|
+
}, null))]), g(Gl, L({
|
|
2762
2762
|
id: W.value,
|
|
2763
2763
|
ref: u,
|
|
2764
2764
|
modelValue: H.value,
|
|
2765
|
-
"onUpdate:modelValue": (
|
|
2765
|
+
"onUpdate:modelValue": (N) => H.value = N,
|
|
2766
2766
|
activator: "parent",
|
|
2767
2767
|
contentClass: "v-select__content",
|
|
2768
|
-
disabled:
|
|
2768
|
+
disabled: K.value,
|
|
2769
2769
|
eager: e.eager,
|
|
2770
2770
|
maxHeight: 310,
|
|
2771
2771
|
openOnClick: !1,
|
|
@@ -2781,7 +2781,7 @@ const pn = X({
|
|
|
2781
2781
|
}, {
|
|
2782
2782
|
default: () => [t["menu-header"] && b("header", {
|
|
2783
2783
|
ref: s
|
|
2784
|
-
}, [t["menu-header"](we)]),
|
|
2784
|
+
}, [t["menu-header"](we)]), Z && g(al, L({
|
|
2785
2785
|
key: "select-list",
|
|
2786
2786
|
ref: z,
|
|
2787
2787
|
selected: C.value,
|
|
@@ -2796,47 +2796,47 @@ const pn = X({
|
|
|
2796
2796
|
default: () => [t["prepend-item"]?.(), !D.value.length && !e.hideNoData && (t["no-data"]?.() ?? g(vt, {
|
|
2797
2797
|
key: "no-data",
|
|
2798
2798
|
title: n(e.noDataText)
|
|
2799
|
-
}, null)), g(
|
|
2800
|
-
ref:
|
|
2799
|
+
}, null)), g(fn, {
|
|
2800
|
+
ref: o,
|
|
2801
2801
|
renderless: !0,
|
|
2802
2802
|
items: D.value,
|
|
2803
2803
|
itemKey: "value"
|
|
2804
2804
|
}, {
|
|
2805
|
-
default: (
|
|
2805
|
+
default: (N) => {
|
|
2806
2806
|
let {
|
|
2807
2807
|
item: T,
|
|
2808
|
-
index:
|
|
2808
|
+
index: ne,
|
|
2809
2809
|
itemRef: Re
|
|
2810
|
-
} =
|
|
2811
|
-
const ae = Un(T.props),
|
|
2810
|
+
} = N;
|
|
2811
|
+
const ae = Un(T.props), ee = L(T.props, {
|
|
2812
2812
|
ref: Re,
|
|
2813
2813
|
key: T.value,
|
|
2814
2814
|
onClick: () => J(T, null),
|
|
2815
|
-
"aria-posinset":
|
|
2815
|
+
"aria-posinset": ne + 1,
|
|
2816
2816
|
"aria-setsize": D.value.length
|
|
2817
2817
|
});
|
|
2818
2818
|
return T.type === "divider" ? t.divider?.({
|
|
2819
2819
|
props: T.raw,
|
|
2820
|
-
index:
|
|
2821
|
-
}) ?? g(ze,
|
|
2822
|
-
key: `divider-${
|
|
2820
|
+
index: ne
|
|
2821
|
+
}) ?? g(ze, L(T.props, {
|
|
2822
|
+
key: `divider-${ne}`
|
|
2823
2823
|
}), null) : T.type === "subheader" ? t.subheader?.({
|
|
2824
2824
|
props: T.raw,
|
|
2825
|
-
index:
|
|
2826
|
-
}) ?? g(
|
|
2827
|
-
key: `subheader-${
|
|
2825
|
+
index: ne
|
|
2826
|
+
}) ?? g(Wl, L(T.props, {
|
|
2827
|
+
key: `subheader-${ne}`
|
|
2828
2828
|
}), null) : t.item?.({
|
|
2829
2829
|
item: T,
|
|
2830
|
-
index:
|
|
2831
|
-
props:
|
|
2832
|
-
}) ?? g(vt,
|
|
2830
|
+
index: ne,
|
|
2831
|
+
props: ee
|
|
2832
|
+
}) ?? g(vt, L(ee, {
|
|
2833
2833
|
role: "option"
|
|
2834
2834
|
}), {
|
|
2835
2835
|
prepend: (me) => {
|
|
2836
2836
|
let {
|
|
2837
2837
|
isSelected: Ze
|
|
2838
2838
|
} = me;
|
|
2839
|
-
return b(ce, null, [e.multiple && !e.hideSelected ? g(
|
|
2839
|
+
return b(ce, null, [e.multiple && !e.hideSelected ? g(un, {
|
|
2840
2840
|
key: T.value,
|
|
2841
2841
|
modelValue: Ze,
|
|
2842
2842
|
ripple: !1,
|
|
@@ -2849,67 +2849,67 @@ const pn = X({
|
|
|
2849
2849
|
icon: ae.prependIcon
|
|
2850
2850
|
}, null)]);
|
|
2851
2851
|
},
|
|
2852
|
-
title: () => m.value ?
|
|
2852
|
+
title: () => m.value ? bn("v-select", T.title, y(T)?.title) : T.title
|
|
2853
2853
|
});
|
|
2854
2854
|
}
|
|
2855
2855
|
}), t["append-item"]?.()]
|
|
2856
2856
|
}), t["menu-footer"] && b("footer", {
|
|
2857
|
-
ref:
|
|
2857
|
+
ref: i
|
|
2858
2858
|
}, [t["menu-footer"](we)])]
|
|
2859
2859
|
})]
|
|
2860
|
-
}), h.value.map((
|
|
2861
|
-
function
|
|
2862
|
-
me.stopPropagation(), me.preventDefault(), J(
|
|
2860
|
+
}), h.value.map((N, T) => {
|
|
2861
|
+
function ne(me) {
|
|
2862
|
+
me.stopPropagation(), me.preventDefault(), J(N, !1);
|
|
2863
2863
|
}
|
|
2864
|
-
const Re =
|
|
2865
|
-
"onClick:close":
|
|
2864
|
+
const Re = L(mt.filterProps(N.props), {
|
|
2865
|
+
"onClick:close": ne,
|
|
2866
2866
|
onKeydown(me) {
|
|
2867
|
-
me.key !== "Enter" && me.key !== " " || (me.preventDefault(), me.stopPropagation(),
|
|
2867
|
+
me.key !== "Enter" && me.key !== " " || (me.preventDefault(), me.stopPropagation(), ne(me));
|
|
2868
2868
|
},
|
|
2869
2869
|
onMousedown(me) {
|
|
2870
2870
|
me.preventDefault(), me.stopPropagation();
|
|
2871
2871
|
},
|
|
2872
2872
|
modelValue: !0,
|
|
2873
2873
|
"onUpdate:modelValue": void 0
|
|
2874
|
-
}), ae = x ? !!t.chip : !!t.selection,
|
|
2875
|
-
item:
|
|
2874
|
+
}), ae = x ? !!t.chip : !!t.selection, ee = ae ? ql(x ? t.chip({
|
|
2875
|
+
item: N,
|
|
2876
2876
|
index: T,
|
|
2877
2877
|
props: Re
|
|
2878
2878
|
}) : t.selection({
|
|
2879
|
-
item:
|
|
2879
|
+
item: N,
|
|
2880
2880
|
index: T
|
|
2881
2881
|
})) : void 0;
|
|
2882
|
-
if (!(ae && !
|
|
2882
|
+
if (!(ae && !ee))
|
|
2883
2883
|
return b("div", {
|
|
2884
|
-
key:
|
|
2884
|
+
key: N.value,
|
|
2885
2885
|
class: "v-select__selection"
|
|
2886
2886
|
}, [x ? t.chip ? g(Fe, {
|
|
2887
2887
|
key: "chip-defaults",
|
|
2888
2888
|
defaults: {
|
|
2889
2889
|
VChip: {
|
|
2890
|
-
closable:
|
|
2890
|
+
closable: B.value,
|
|
2891
2891
|
size: "small",
|
|
2892
|
-
text:
|
|
2892
|
+
text: N.title
|
|
2893
2893
|
}
|
|
2894
2894
|
}
|
|
2895
2895
|
}, {
|
|
2896
|
-
default: () => [
|
|
2897
|
-
}) : g(mt,
|
|
2896
|
+
default: () => [ee]
|
|
2897
|
+
}) : g(mt, L({
|
|
2898
2898
|
key: "chip",
|
|
2899
|
-
closable:
|
|
2899
|
+
closable: B.value,
|
|
2900
2900
|
size: "small",
|
|
2901
|
-
text:
|
|
2902
|
-
disabled:
|
|
2903
|
-
}, Re), null) :
|
|
2901
|
+
text: N.title,
|
|
2902
|
+
disabled: N.props.disabled
|
|
2903
|
+
}, Re), null) : ee ?? b("span", {
|
|
2904
2904
|
class: "v-select__selection-text"
|
|
2905
|
-
}, [
|
|
2905
|
+
}, [N.title, e.multiple && T < h.value.length - 1 && b("span", {
|
|
2906
2906
|
class: "v-select__selection-comma"
|
|
2907
|
-
}, [
|
|
2907
|
+
}, [Sl(",")])])]);
|
|
2908
2908
|
})]);
|
|
2909
2909
|
},
|
|
2910
2910
|
"append-inner": function() {
|
|
2911
|
-
for (var S = arguments.length, Y = new Array(S),
|
|
2912
|
-
Y[
|
|
2911
|
+
for (var S = arguments.length, Y = new Array(S), N = 0; N < S; N++)
|
|
2912
|
+
Y[N] = arguments[N];
|
|
2913
2913
|
return b(ce, null, [t["append-inner"]?.(...Y), e.menuIcon ? g(Se, {
|
|
2914
2914
|
class: "v-select__menu-icon",
|
|
2915
2915
|
color: l.value?.fieldIconColor,
|
|
@@ -2936,10 +2936,10 @@ const pn = X({
|
|
|
2936
2936
|
},
|
|
2937
2937
|
clearOnSelect: Boolean,
|
|
2938
2938
|
search: String,
|
|
2939
|
-
...
|
|
2939
|
+
...yn({
|
|
2940
2940
|
filterKeys: ["title"]
|
|
2941
2941
|
}),
|
|
2942
|
-
...
|
|
2942
|
+
...kn(),
|
|
2943
2943
|
...Ye(Mt({
|
|
2944
2944
|
modelValue: null,
|
|
2945
2945
|
role: "combobox"
|
|
@@ -2959,11 +2959,11 @@ const pn = X({
|
|
|
2959
2959
|
} = a;
|
|
2960
2960
|
const {
|
|
2961
2961
|
t: n
|
|
2962
|
-
} = it(), l =
|
|
2962
|
+
} = it(), l = G(), u = te(!1), s = te(!0), i = te(!1), o = G(), r = G(), d = te(-1), c = te(null), {
|
|
2963
2963
|
items: m,
|
|
2964
2964
|
transformIn: v,
|
|
2965
2965
|
transformOut: y
|
|
2966
|
-
} =
|
|
2966
|
+
} = jl(e), {
|
|
2967
2967
|
textColorClasses: h,
|
|
2968
2968
|
textColorStyles: p
|
|
2969
2969
|
} = kt(() => l.value?.color), {
|
|
@@ -2971,21 +2971,21 @@ const pn = X({
|
|
|
2971
2971
|
} = Ot(e), P = Ve(e, "search", ""), C = Ve(e, "modelValue", [], (S) => v(S === null ? [null] : Te(S)), (S) => {
|
|
2972
2972
|
const Y = y(S);
|
|
2973
2973
|
return e.multiple ? Y : Y[0] ?? null;
|
|
2974
|
-
}), F = I(() => typeof e.counterValue == "function" ? e.counterValue(C.value) : typeof e.counterValue == "number" ? e.counterValue : C.value.length),
|
|
2974
|
+
}), F = I(() => typeof e.counterValue == "function" ? e.counterValue(C.value) : typeof e.counterValue == "number" ? e.counterValue : C.value.length), B = $t(e), {
|
|
2975
2975
|
filteredItems: U,
|
|
2976
2976
|
getMatches: _
|
|
2977
|
-
} =
|
|
2977
|
+
} = hn(e, m, () => c.value ?? (s.value ? "" : P.value)), V = I(() => e.hideSelected && c.value === null ? U.value.filter((S) => !C.value.some((Y) => Y.value === S.value)) : U.value), M = E(() => e.closableChips && !B.isReadonly.value && !B.isDisabled.value), D = I(() => !!(e.chips || t.chip)), K = I(() => D.value || !!t.selection), Q = I(() => C.value.map((S) => S.props.value)), H = I(() => V.value.find((S) => S.type === "item" && !S.props.disabled)), W = I(() => (e.autoSelectFirst === !0 || e.autoSelectFirst === "exact" && P.value === H.value?.title) && V.value.length > 0 && !s.value && !i.value), j = I(() => e.hideNoData && !V.value.length || B.isReadonly.value || B.isDisabled.value), ue = Ve(e, "menu"), q = I({
|
|
2978
2978
|
get: () => ue.value,
|
|
2979
2979
|
set: (S) => {
|
|
2980
|
-
ue.value && !S &&
|
|
2980
|
+
ue.value && !S && o.value?.ΨopenChildren.size || S && j.value || (ue.value = S);
|
|
2981
2981
|
}
|
|
2982
2982
|
}), {
|
|
2983
2983
|
menuId: z,
|
|
2984
2984
|
ariaExpanded: fe,
|
|
2985
|
-
ariaControls:
|
|
2986
|
-
} =
|
|
2985
|
+
ariaControls: R
|
|
2986
|
+
} = pn(e, q), O = G(), k = G(), f = G(), A = mn(O, l), {
|
|
2987
2987
|
onTabKeydown: J
|
|
2988
|
-
} =
|
|
2988
|
+
} = gn({
|
|
2989
2989
|
groups: [{
|
|
2990
2990
|
type: "element",
|
|
2991
2991
|
contentRef: k
|
|
@@ -3005,40 +3005,40 @@ const pn = X({
|
|
|
3005
3005
|
e.openOnClear && (q.value = !0), P.value = "";
|
|
3006
3006
|
}
|
|
3007
3007
|
function ge() {
|
|
3008
|
-
|
|
3008
|
+
j.value || (q.value = !0);
|
|
3009
3009
|
}
|
|
3010
|
-
function
|
|
3011
|
-
|
|
3010
|
+
function pe(S) {
|
|
3011
|
+
j.value || (u.value && (S.preventDefault(), S.stopPropagation()), q.value = !q.value);
|
|
3012
3012
|
}
|
|
3013
3013
|
function Ie(S) {
|
|
3014
3014
|
S.key === "Tab" && J(S), O.value?.$el.contains(S.target) && (wt(S) || S.key === "Backspace") && l.value?.focus();
|
|
3015
3015
|
}
|
|
3016
3016
|
function De(S) {
|
|
3017
|
-
if (
|
|
3018
|
-
const Y = l.value?.selectionStart,
|
|
3017
|
+
if (B.isReadonly.value) return;
|
|
3018
|
+
const Y = l.value?.selectionStart, N = C.value.length;
|
|
3019
3019
|
if (["Enter", "ArrowDown", "ArrowUp"].includes(S.key) && S.preventDefault(), ["Enter", "ArrowDown"].includes(S.key) && (q.value = !0), ["Escape"].includes(S.key) && (q.value = !1), W.value && ["Enter", "Tab"].includes(S.key) && H.value && !C.value.some((T) => {
|
|
3020
3020
|
let {
|
|
3021
|
-
value:
|
|
3021
|
+
value: ne
|
|
3022
3022
|
} = T;
|
|
3023
|
-
return
|
|
3023
|
+
return ne === H.value.value;
|
|
3024
3024
|
}) && we(H.value), S.key === "ArrowDown" && W.value && O.value?.focus("next"), ["Backspace", "Delete"].includes(S.key)) {
|
|
3025
|
-
if (!e.multiple &&
|
|
3025
|
+
if (!e.multiple && K.value && C.value.length > 0 && !P.value) return we(C.value[0], !1);
|
|
3026
3026
|
if (~d.value) {
|
|
3027
3027
|
S.preventDefault();
|
|
3028
3028
|
const T = d.value;
|
|
3029
|
-
we(C.value[d.value], !1), d.value = T >=
|
|
3030
|
-
} else S.key === "Backspace" && !P.value && (d.value =
|
|
3029
|
+
we(C.value[d.value], !1), d.value = T >= N - 1 ? N - 2 : T;
|
|
3030
|
+
} else S.key === "Backspace" && !P.value && (d.value = N - 1);
|
|
3031
3031
|
return;
|
|
3032
3032
|
}
|
|
3033
3033
|
if (e.multiple)
|
|
3034
3034
|
if (S.key === "ArrowLeft") {
|
|
3035
3035
|
if (d.value < 0 && Y && Y > 0) return;
|
|
3036
|
-
const T = d.value > -1 ? d.value - 1 :
|
|
3036
|
+
const T = d.value > -1 ? d.value - 1 : N - 1;
|
|
3037
3037
|
if (C.value[T])
|
|
3038
3038
|
d.value = T;
|
|
3039
3039
|
else {
|
|
3040
|
-
const
|
|
3041
|
-
d.value = -1, l.value?.setSelectionRange(
|
|
3040
|
+
const ne = P.value?.length ?? null;
|
|
3041
|
+
d.value = -1, l.value?.setSelectionRange(ne, ne);
|
|
3042
3042
|
}
|
|
3043
3043
|
} else if (S.key === "ArrowRight") {
|
|
3044
3044
|
if (d.value < 0) return;
|
|
@@ -3048,7 +3048,7 @@ const pn = X({
|
|
|
3048
3048
|
}
|
|
3049
3049
|
function je(S) {
|
|
3050
3050
|
if (dt(l.value, ":autofill") || dt(l.value, ":-webkit-autofill")) {
|
|
3051
|
-
const Y = m.value.find((
|
|
3051
|
+
const Y = m.value.find((N) => N.title === S.target.value);
|
|
3052
3052
|
Y && we(Y);
|
|
3053
3053
|
}
|
|
3054
3054
|
}
|
|
@@ -3060,43 +3060,43 @@ const pn = X({
|
|
|
3060
3060
|
}
|
|
3061
3061
|
function x(S) {
|
|
3062
3062
|
u.value = !0, setTimeout(() => {
|
|
3063
|
-
|
|
3063
|
+
i.value = !0;
|
|
3064
3064
|
});
|
|
3065
3065
|
}
|
|
3066
|
-
function
|
|
3067
|
-
|
|
3066
|
+
function Z(S) {
|
|
3067
|
+
i.value = !1, l.value?.$el.contains(S.relatedTarget) || (u.value = !1);
|
|
3068
3068
|
}
|
|
3069
|
-
function
|
|
3070
|
-
(S == null || S === "" && !e.multiple && !
|
|
3069
|
+
function le(S) {
|
|
3070
|
+
(S == null || S === "" && !e.multiple && !K.value) && (C.value = []);
|
|
3071
3071
|
}
|
|
3072
3072
|
function Be(S) {
|
|
3073
|
-
|
|
3073
|
+
o.value?.contentEl?.contains(S.relatedTarget) && (u.value = !0);
|
|
3074
3074
|
}
|
|
3075
|
-
const _e =
|
|
3075
|
+
const _e = te(!1);
|
|
3076
3076
|
function we(S) {
|
|
3077
3077
|
let Y = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;
|
|
3078
3078
|
if (!(!S || S.props.disabled))
|
|
3079
3079
|
if (e.multiple) {
|
|
3080
|
-
const
|
|
3081
|
-
if (~
|
|
3082
|
-
const
|
|
3083
|
-
|
|
3080
|
+
const N = C.value.findIndex((ne) => (e.valueComparator || qe)(ne.value, S.value)), T = Y ?? !~N;
|
|
3081
|
+
if (~N) {
|
|
3082
|
+
const ne = T ? [...C.value, S] : [...C.value];
|
|
3083
|
+
ne.splice(N, 1), C.value = ne;
|
|
3084
3084
|
} else T && (C.value = [...C.value, S]);
|
|
3085
3085
|
e.clearOnSelect && (P.value = "");
|
|
3086
3086
|
} else {
|
|
3087
|
-
const
|
|
3088
|
-
C.value =
|
|
3087
|
+
const N = Y !== !1;
|
|
3088
|
+
C.value = N ? [S] : [], c.value = s.value ? "" : P.value ?? "", P.value = N && !K.value ? S.title : "", ke(() => {
|
|
3089
3089
|
q.value = !1, s.value = !0;
|
|
3090
3090
|
});
|
|
3091
3091
|
}
|
|
3092
3092
|
}
|
|
3093
3093
|
return se(u, (S, Y) => {
|
|
3094
|
-
S !== Y && (S ? (_e.value = !0, P.value = e.multiple ||
|
|
3094
|
+
S !== Y && (S ? (_e.value = !0, P.value = e.multiple || K.value ? "" : String(C.value.at(-1)?.props.title ?? ""), s.value = !0, ke(() => _e.value = !1)) : (!e.multiple && P.value == null && (C.value = []), q.value = !1, !s.value && P.value && (c.value = P.value), P.value = "", d.value = -1));
|
|
3095
3095
|
}), se(P, (S) => {
|
|
3096
3096
|
!u.value || _e.value || (S && (q.value = !0), s.value = !S);
|
|
3097
3097
|
}), se(q, (S) => {
|
|
3098
3098
|
if (!e.hideSelected && S && C.value.length && s.value) {
|
|
3099
|
-
const Y = V.value.findIndex((
|
|
3099
|
+
const Y = V.value.findIndex((N) => C.value.some((T) => N.value === T.value));
|
|
3100
3100
|
ct && window.requestAnimationFrame(() => {
|
|
3101
3101
|
Y >= 0 && r.value?.scrollToIndex(Y);
|
|
3102
3102
|
});
|
|
@@ -3105,17 +3105,17 @@ const pn = X({
|
|
|
3105
3105
|
}), se(m, (S, Y) => {
|
|
3106
3106
|
q.value || u.value && !Y.length && S.length && (q.value = !0);
|
|
3107
3107
|
}), de(() => {
|
|
3108
|
-
const S = !!(!e.hideNoData || V.value.length || t["prepend-item"] || t["append-item"] || t["no-data"]), Y = C.value.length > 0,
|
|
3108
|
+
const S = !!(!e.hideNoData || V.value.length || t["prepend-item"] || t["append-item"] || t["no-data"]), Y = C.value.length > 0, N = Je.filterProps(e), T = {
|
|
3109
3109
|
search: P,
|
|
3110
3110
|
filteredItems: U.value
|
|
3111
3111
|
};
|
|
3112
|
-
return g(Je,
|
|
3112
|
+
return g(Je, L({
|
|
3113
3113
|
ref: l
|
|
3114
|
-
},
|
|
3114
|
+
}, N, {
|
|
3115
3115
|
modelValue: P.value,
|
|
3116
|
-
"onUpdate:modelValue": [(
|
|
3116
|
+
"onUpdate:modelValue": [(ne) => P.value = ne, le],
|
|
3117
3117
|
focused: u.value,
|
|
3118
|
-
"onUpdate:focused": (
|
|
3118
|
+
"onUpdate:focused": (ne) => u.value = ne,
|
|
3119
3119
|
validationValue: C.externalValue,
|
|
3120
3120
|
counterValue: F.value,
|
|
3121
3121
|
dirty: Y,
|
|
@@ -3123,32 +3123,32 @@ const pn = X({
|
|
|
3123
3123
|
class: ["v-autocomplete", `v-autocomplete--${e.multiple ? "multiple" : "single"}`, {
|
|
3124
3124
|
"v-autocomplete--active-menu": q.value,
|
|
3125
3125
|
"v-autocomplete--chips": !!e.chips,
|
|
3126
|
-
"v-autocomplete--selection-slot": !!
|
|
3126
|
+
"v-autocomplete--selection-slot": !!K.value,
|
|
3127
3127
|
"v-autocomplete--selecting-index": d.value > -1
|
|
3128
3128
|
}, e.class],
|
|
3129
3129
|
style: e.style,
|
|
3130
|
-
readonly:
|
|
3130
|
+
readonly: B.isReadonly.value,
|
|
3131
3131
|
placeholder: Y ? void 0 : e.placeholder,
|
|
3132
3132
|
"onClick:clear": ve,
|
|
3133
3133
|
"onMousedown:control": ge,
|
|
3134
3134
|
onKeydown: De,
|
|
3135
3135
|
onBlur: Be,
|
|
3136
3136
|
"aria-expanded": fe.value,
|
|
3137
|
-
"aria-controls":
|
|
3137
|
+
"aria-controls": R.value
|
|
3138
3138
|
}), {
|
|
3139
3139
|
...t,
|
|
3140
|
-
default: (
|
|
3140
|
+
default: (ne) => {
|
|
3141
3141
|
let {
|
|
3142
3142
|
id: Re
|
|
3143
|
-
} =
|
|
3144
|
-
return b(ce, null, [g(
|
|
3143
|
+
} = ne;
|
|
3144
|
+
return b(ce, null, [g(Gl, L({
|
|
3145
3145
|
id: z.value,
|
|
3146
|
-
ref:
|
|
3146
|
+
ref: o,
|
|
3147
3147
|
modelValue: q.value,
|
|
3148
3148
|
"onUpdate:modelValue": (ae) => q.value = ae,
|
|
3149
3149
|
activator: "parent",
|
|
3150
3150
|
contentClass: "v-autocomplete__content",
|
|
3151
|
-
disabled:
|
|
3151
|
+
disabled: j.value,
|
|
3152
3152
|
eager: e.eager,
|
|
3153
3153
|
maxHeight: 310,
|
|
3154
3154
|
openOnClick: !1,
|
|
@@ -3162,14 +3162,14 @@ const pn = X({
|
|
|
3162
3162
|
}, {
|
|
3163
3163
|
default: () => [t["menu-header"] && b("header", {
|
|
3164
3164
|
ref: k
|
|
3165
|
-
}, [t["menu-header"](T)]), S && g(al,
|
|
3165
|
+
}, [t["menu-header"](T)]), S && g(al, L({
|
|
3166
3166
|
key: "autocomplete-list",
|
|
3167
3167
|
ref: O,
|
|
3168
3168
|
filterable: !0,
|
|
3169
|
-
selected:
|
|
3169
|
+
selected: Q.value,
|
|
3170
3170
|
selectStrategy: e.multiple ? "independent" : "single-independent",
|
|
3171
3171
|
onMousedown: (ae) => ae.preventDefault(),
|
|
3172
|
-
onFocusout:
|
|
3172
|
+
onFocusout: Z,
|
|
3173
3173
|
tabindex: "-1",
|
|
3174
3174
|
selectable: !!V.value.length,
|
|
3175
3175
|
"aria-live": "polite",
|
|
@@ -3180,7 +3180,7 @@ const pn = X({
|
|
|
3180
3180
|
default: () => [t["prepend-item"]?.(), !V.value.length && !e.hideNoData && (t["no-data"]?.() ?? g(vt, {
|
|
3181
3181
|
key: "no-data",
|
|
3182
3182
|
title: n(e.noDataText)
|
|
3183
|
-
}, null)), g(
|
|
3183
|
+
}, null)), g(fn, {
|
|
3184
3184
|
ref: r,
|
|
3185
3185
|
renderless: !0,
|
|
3186
3186
|
items: V.value,
|
|
@@ -3188,53 +3188,53 @@ const pn = X({
|
|
|
3188
3188
|
}, {
|
|
3189
3189
|
default: (ae) => {
|
|
3190
3190
|
let {
|
|
3191
|
-
item:
|
|
3191
|
+
item: ee,
|
|
3192
3192
|
index: me,
|
|
3193
3193
|
itemRef: Ze
|
|
3194
3194
|
} = ae;
|
|
3195
|
-
const Ge =
|
|
3195
|
+
const Ge = L(ee.props, {
|
|
3196
3196
|
ref: Ze,
|
|
3197
|
-
key:
|
|
3198
|
-
active: W.value &&
|
|
3199
|
-
onClick: () => we(
|
|
3197
|
+
key: ee.value,
|
|
3198
|
+
active: W.value && ee === H.value ? !0 : void 0,
|
|
3199
|
+
onClick: () => we(ee, null),
|
|
3200
3200
|
"aria-posinset": me + 1,
|
|
3201
3201
|
"aria-setsize": V.value.length
|
|
3202
3202
|
});
|
|
3203
|
-
return
|
|
3204
|
-
props:
|
|
3203
|
+
return ee.type === "divider" ? t.divider?.({
|
|
3204
|
+
props: ee.raw,
|
|
3205
3205
|
index: me
|
|
3206
|
-
}) ?? g(ze,
|
|
3206
|
+
}) ?? g(ze, L(ee.props, {
|
|
3207
3207
|
key: `divider-${me}`
|
|
3208
|
-
}), null) :
|
|
3209
|
-
props:
|
|
3208
|
+
}), null) : ee.type === "subheader" ? t.subheader?.({
|
|
3209
|
+
props: ee.raw,
|
|
3210
3210
|
index: me
|
|
3211
|
-
}) ?? g(
|
|
3211
|
+
}) ?? g(Wl, L(ee.props, {
|
|
3212
3212
|
key: `subheader-${me}`
|
|
3213
3213
|
}), null) : t.item?.({
|
|
3214
|
-
item:
|
|
3214
|
+
item: ee,
|
|
3215
3215
|
index: me,
|
|
3216
3216
|
props: Ge
|
|
3217
|
-
}) ?? g(vt,
|
|
3217
|
+
}) ?? g(vt, L(Ge, {
|
|
3218
3218
|
role: "option"
|
|
3219
3219
|
}), {
|
|
3220
3220
|
prepend: (st) => {
|
|
3221
3221
|
let {
|
|
3222
3222
|
isSelected: Ae
|
|
3223
3223
|
} = st;
|
|
3224
|
-
return b(ce, null, [e.multiple && !e.hideSelected ? g(
|
|
3225
|
-
key:
|
|
3224
|
+
return b(ce, null, [e.multiple && !e.hideSelected ? g(un, {
|
|
3225
|
+
key: ee.value,
|
|
3226
3226
|
modelValue: Ae,
|
|
3227
3227
|
ripple: !1,
|
|
3228
3228
|
tabindex: "-1",
|
|
3229
3229
|
"aria-hidden": !0,
|
|
3230
|
-
onClick: (
|
|
3231
|
-
}, null) : void 0,
|
|
3232
|
-
image:
|
|
3233
|
-
}, null),
|
|
3234
|
-
icon:
|
|
3230
|
+
onClick: (In) => In.preventDefault()
|
|
3231
|
+
}, null) : void 0, ee.props.prependAvatar && g(nt, {
|
|
3232
|
+
image: ee.props.prependAvatar
|
|
3233
|
+
}, null), ee.props.prependIcon && g(Se, {
|
|
3234
|
+
icon: ee.props.prependIcon
|
|
3235
3235
|
}, null)]);
|
|
3236
3236
|
},
|
|
3237
|
-
title: () => s.value ?
|
|
3237
|
+
title: () => s.value ? ee.title : bn("v-autocomplete", ee.title, _(ee)?.title)
|
|
3238
3238
|
});
|
|
3239
3239
|
}
|
|
3240
3240
|
}), t["append-item"]?.()]
|
|
@@ -3242,11 +3242,11 @@ const pn = X({
|
|
|
3242
3242
|
ref: f
|
|
3243
3243
|
}, [t["menu-footer"](T)])]
|
|
3244
3244
|
})]
|
|
3245
|
-
}), C.value.map((ae,
|
|
3245
|
+
}), C.value.map((ae, ee) => {
|
|
3246
3246
|
function me(Ae) {
|
|
3247
3247
|
Ae.stopPropagation(), Ae.preventDefault(), we(ae, !1);
|
|
3248
3248
|
}
|
|
3249
|
-
const Ze =
|
|
3249
|
+
const Ze = L(mt.filterProps(ae.props), {
|
|
3250
3250
|
"onClick:close": me,
|
|
3251
3251
|
onKeydown(Ae) {
|
|
3252
3252
|
Ae.key !== "Enter" && Ae.key !== " " || (Ae.preventDefault(), Ae.stopPropagation(), me(Ae));
|
|
@@ -3256,51 +3256,51 @@ const pn = X({
|
|
|
3256
3256
|
},
|
|
3257
3257
|
modelValue: !0,
|
|
3258
3258
|
"onUpdate:modelValue": void 0
|
|
3259
|
-
}), Ge = D.value ? !!t.chip : !!t.selection, st = Ge ?
|
|
3259
|
+
}), Ge = D.value ? !!t.chip : !!t.selection, st = Ge ? ql(D.value ? t.chip({
|
|
3260
3260
|
item: ae,
|
|
3261
|
-
index:
|
|
3261
|
+
index: ee,
|
|
3262
3262
|
props: Ze
|
|
3263
3263
|
}) : t.selection({
|
|
3264
3264
|
item: ae,
|
|
3265
|
-
index:
|
|
3265
|
+
index: ee
|
|
3266
3266
|
})) : void 0;
|
|
3267
3267
|
if (!(Ge && !st))
|
|
3268
3268
|
return b("div", {
|
|
3269
3269
|
key: ae.value,
|
|
3270
|
-
class: re(["v-autocomplete__selection",
|
|
3271
|
-
style: xe(
|
|
3270
|
+
class: re(["v-autocomplete__selection", ee === d.value && ["v-autocomplete__selection--selected", h.value]]),
|
|
3271
|
+
style: xe(ee === d.value ? p.value : {})
|
|
3272
3272
|
}, [D.value ? t.chip ? g(Fe, {
|
|
3273
3273
|
key: "chip-defaults",
|
|
3274
3274
|
defaults: {
|
|
3275
3275
|
VChip: {
|
|
3276
|
-
closable:
|
|
3276
|
+
closable: M.value,
|
|
3277
3277
|
size: "small",
|
|
3278
3278
|
text: ae.title
|
|
3279
3279
|
}
|
|
3280
3280
|
}
|
|
3281
3281
|
}, {
|
|
3282
3282
|
default: () => [st]
|
|
3283
|
-
}) : g(mt,
|
|
3283
|
+
}) : g(mt, L({
|
|
3284
3284
|
key: "chip",
|
|
3285
|
-
closable:
|
|
3285
|
+
closable: M.value,
|
|
3286
3286
|
size: "small",
|
|
3287
3287
|
text: ae.title,
|
|
3288
3288
|
disabled: ae.props.disabled
|
|
3289
3289
|
}, Ze), null) : st ?? b("span", {
|
|
3290
3290
|
class: "v-autocomplete__selection-text"
|
|
3291
|
-
}, [ae.title, e.multiple &&
|
|
3291
|
+
}, [ae.title, e.multiple && ee < C.value.length - 1 && b("span", {
|
|
3292
3292
|
class: "v-autocomplete__selection-comma"
|
|
3293
|
-
}, [
|
|
3293
|
+
}, [Sl(",")])])]);
|
|
3294
3294
|
})]);
|
|
3295
3295
|
},
|
|
3296
3296
|
"append-inner": function() {
|
|
3297
|
-
for (var
|
|
3297
|
+
for (var ne = arguments.length, Re = new Array(ne), ae = 0; ae < ne; ae++)
|
|
3298
3298
|
Re[ae] = arguments[ae];
|
|
3299
3299
|
return b(ce, null, [t["append-inner"]?.(...Re), e.menuIcon ? g(Se, {
|
|
3300
3300
|
class: "v-autocomplete__menu-icon",
|
|
3301
3301
|
color: l.value?.fieldIconColor,
|
|
3302
3302
|
icon: e.menuIcon,
|
|
3303
|
-
onMousedown:
|
|
3303
|
+
onMousedown: pe,
|
|
3304
3304
|
onClick: jn,
|
|
3305
3305
|
"aria-hidden": !0,
|
|
3306
3306
|
tabindex: "-1"
|
|
@@ -3326,7 +3326,7 @@ const pn = X({
|
|
|
3326
3326
|
content: [Number, String],
|
|
3327
3327
|
dot: Boolean,
|
|
3328
3328
|
floating: Boolean,
|
|
3329
|
-
icon:
|
|
3329
|
+
icon: he,
|
|
3330
3330
|
inline: Boolean,
|
|
3331
3331
|
label: {
|
|
3332
3332
|
type: String,
|
|
@@ -3340,7 +3340,7 @@ const pn = X({
|
|
|
3340
3340
|
offsetX: [Number, String],
|
|
3341
3341
|
offsetY: [Number, String],
|
|
3342
3342
|
textColor: String,
|
|
3343
|
-
...
|
|
3343
|
+
...be(),
|
|
3344
3344
|
...ll({
|
|
3345
3345
|
location: "top end"
|
|
3346
3346
|
}),
|
|
@@ -3365,9 +3365,9 @@ const pn = X({
|
|
|
3365
3365
|
t: u
|
|
3366
3366
|
} = it(), {
|
|
3367
3367
|
textColorClasses: s,
|
|
3368
|
-
textColorStyles:
|
|
3368
|
+
textColorStyles: i
|
|
3369
3369
|
} = kt(() => e.textColor), {
|
|
3370
|
-
themeClasses:
|
|
3370
|
+
themeClasses: o
|
|
3371
3371
|
} = Gn(), {
|
|
3372
3372
|
locationStyles: r
|
|
3373
3373
|
} = tl(e, !0, (c) => (e.floating ? e.dot ? 2 : 4 : e.dot ? 8 : 12) + (["top", "bottom"].includes(c) ? Number(e.offsetY ?? 0) : ["left", "right"].includes(c) ? Number(e.offsetX ?? 0) : 0)), {
|
|
@@ -3375,7 +3375,7 @@ const pn = X({
|
|
|
3375
3375
|
} = bt(e);
|
|
3376
3376
|
return de(() => {
|
|
3377
3377
|
const c = Number(e.content), m = !e.max || isNaN(c) ? e.content : c <= Number(e.max) ? c : `${e.max}+`, [v, y] = Wn(a.attrs, ["aria-atomic", "aria-label", "aria-live", "role", "title"]);
|
|
3378
|
-
return g(e.tag,
|
|
3378
|
+
return g(e.tag, L({
|
|
3379
3379
|
class: ["v-badge", {
|
|
3380
3380
|
"v-badge--bordered": e.bordered,
|
|
3381
3381
|
"v-badge--dot": e.dot,
|
|
@@ -3390,9 +3390,9 @@ const pn = X({
|
|
|
3390
3390
|
}, [a.slots.default?.(), g(nl, {
|
|
3391
3391
|
transition: e.transition
|
|
3392
3392
|
}, {
|
|
3393
|
-
default: () => [Ue(b("span",
|
|
3394
|
-
class: ["v-badge__badge",
|
|
3395
|
-
style: [n.value,
|
|
3393
|
+
default: () => [Ue(b("span", L({
|
|
3394
|
+
class: ["v-badge__badge", o.value, t.value, l.value, s.value],
|
|
3395
|
+
style: [n.value, i.value, d.value, e.inline ? {} : r.value],
|
|
3396
3396
|
"aria-atomic": "true",
|
|
3397
3397
|
"aria-label": u(e.label, c),
|
|
3398
3398
|
"aria-live": "polite",
|
|
@@ -3412,12 +3412,12 @@ const pn = X({
|
|
|
3412
3412
|
origin: "center center",
|
|
3413
3413
|
scrollStrategy: "block",
|
|
3414
3414
|
transition: {
|
|
3415
|
-
component:
|
|
3415
|
+
component: Jl
|
|
3416
3416
|
},
|
|
3417
3417
|
zIndex: 2400,
|
|
3418
3418
|
retainFocus: !0
|
|
3419
3419
|
}), ["disableInitialFocus"])
|
|
3420
|
-
}, "VDialog"),
|
|
3420
|
+
}, "VDialog"), Sn = ie()({
|
|
3421
3421
|
name: "VDialog",
|
|
3422
3422
|
props: Qa(),
|
|
3423
3423
|
emits: {
|
|
@@ -3432,13 +3432,13 @@ const pn = X({
|
|
|
3432
3432
|
} = a;
|
|
3433
3433
|
const l = Ve(e, "modelValue"), {
|
|
3434
3434
|
scopeId: u
|
|
3435
|
-
} = qn(), s =
|
|
3436
|
-
function
|
|
3435
|
+
} = qn(), s = G();
|
|
3436
|
+
function i() {
|
|
3437
3437
|
t("afterEnter"), (e.scrim || e.retainFocus) && s.value?.contentEl && !s.value.contentEl.contains(document.activeElement) && s.value.contentEl.focus({
|
|
3438
3438
|
preventScroll: !0
|
|
3439
3439
|
});
|
|
3440
3440
|
}
|
|
3441
|
-
function
|
|
3441
|
+
function o() {
|
|
3442
3442
|
t("afterLeave");
|
|
3443
3443
|
}
|
|
3444
3444
|
return se(l, async (r) => {
|
|
@@ -3446,12 +3446,12 @@ const pn = X({
|
|
|
3446
3446
|
preventScroll: !0
|
|
3447
3447
|
}));
|
|
3448
3448
|
}), de(() => {
|
|
3449
|
-
const r = vl.filterProps(e), d =
|
|
3449
|
+
const r = vl.filterProps(e), d = L({
|
|
3450
3450
|
"aria-haspopup": "dialog"
|
|
3451
|
-
}, e.activatorProps), c =
|
|
3451
|
+
}, e.activatorProps), c = L({
|
|
3452
3452
|
tabindex: -1
|
|
3453
3453
|
}, e.contentProps);
|
|
3454
|
-
return g(vl,
|
|
3454
|
+
return g(vl, L({
|
|
3455
3455
|
ref: s,
|
|
3456
3456
|
class: ["v-dialog", {
|
|
3457
3457
|
"v-dialog--fullscreen": e.fullscreen,
|
|
@@ -3469,8 +3469,8 @@ const pn = X({
|
|
|
3469
3469
|
maxHeight: e.fullscreen ? void 0 : e.maxHeight,
|
|
3470
3470
|
maxWidth: e.fullscreen ? void 0 : e.maxWidth,
|
|
3471
3471
|
role: "dialog",
|
|
3472
|
-
onAfterEnter:
|
|
3473
|
-
onAfterLeave:
|
|
3472
|
+
onAfterEnter: i,
|
|
3473
|
+
onAfterLeave: o
|
|
3474
3474
|
}, u), {
|
|
3475
3475
|
activator: n.activator,
|
|
3476
3476
|
default: function() {
|
|
@@ -3486,9 +3486,9 @@ const pn = X({
|
|
|
3486
3486
|
}), St({}, s);
|
|
3487
3487
|
}
|
|
3488
3488
|
}), Za = X({
|
|
3489
|
-
...
|
|
3489
|
+
...be(),
|
|
3490
3490
|
...Oe()
|
|
3491
|
-
}, "VCardActions"),
|
|
3491
|
+
}, "VCardActions"), Cn = ie()({
|
|
3492
3492
|
name: "VCardActions",
|
|
3493
3493
|
props: Za(),
|
|
3494
3494
|
setup(e, a) {
|
|
@@ -3507,7 +3507,7 @@ const pn = X({
|
|
|
3507
3507
|
}
|
|
3508
3508
|
}), eo = X({
|
|
3509
3509
|
opacity: [Number, String],
|
|
3510
|
-
...
|
|
3510
|
+
...be(),
|
|
3511
3511
|
...Oe()
|
|
3512
3512
|
}, "VCardSubtitle"), to = ie()({
|
|
3513
3513
|
name: "VCardSubtitle",
|
|
@@ -3525,9 +3525,9 @@ const pn = X({
|
|
|
3525
3525
|
}
|
|
3526
3526
|
}), ul = Xn("v-card-title"), lo = X({
|
|
3527
3527
|
appendAvatar: String,
|
|
3528
|
-
appendIcon:
|
|
3528
|
+
appendIcon: he,
|
|
3529
3529
|
prependAvatar: String,
|
|
3530
|
-
prependIcon:
|
|
3530
|
+
prependIcon: he,
|
|
3531
3531
|
subtitle: {
|
|
3532
3532
|
type: [String, Number, Boolean],
|
|
3533
3533
|
default: void 0
|
|
@@ -3536,7 +3536,7 @@ const pn = X({
|
|
|
3536
3536
|
type: [String, Number, Boolean],
|
|
3537
3537
|
default: void 0
|
|
3538
3538
|
},
|
|
3539
|
-
...
|
|
3539
|
+
...be(),
|
|
3540
3540
|
...ht(),
|
|
3541
3541
|
...Oe()
|
|
3542
3542
|
}, "VCardItem"), no = ie()({
|
|
@@ -3547,7 +3547,7 @@ const pn = X({
|
|
|
3547
3547
|
slots: t
|
|
3548
3548
|
} = a;
|
|
3549
3549
|
return de(() => {
|
|
3550
|
-
const n = !!(e.prependAvatar || e.prependIcon), l = !!(n || t.prepend), u = !!(e.appendAvatar || e.appendIcon), s = !!(u || t.append),
|
|
3550
|
+
const n = !!(e.prependAvatar || e.prependIcon), l = !!(n || t.prepend), u = !!(e.appendAvatar || e.appendIcon), s = !!(u || t.append), i = !!(e.title != null || t.title), o = !!(e.subtitle != null || t.subtitle);
|
|
3551
3551
|
return g(e.tag, {
|
|
3552
3552
|
class: re(["v-card-item", e.class]),
|
|
3553
3553
|
style: xe(e.style)
|
|
@@ -3578,11 +3578,11 @@ const pn = X({
|
|
|
3578
3578
|
icon: e.prependIcon
|
|
3579
3579
|
}, null)])]), b("div", {
|
|
3580
3580
|
class: "v-card-item__content"
|
|
3581
|
-
}, [
|
|
3581
|
+
}, [i && g(ul, {
|
|
3582
3582
|
key: "title"
|
|
3583
3583
|
}, {
|
|
3584
3584
|
default: () => [t.title?.() ?? Vt(e.title)]
|
|
3585
|
-
}),
|
|
3585
|
+
}), o && g(to, {
|
|
3586
3586
|
key: "subtitle"
|
|
3587
3587
|
}, {
|
|
3588
3588
|
default: () => [t.subtitle?.() ?? Vt(e.subtitle)]
|
|
@@ -3616,7 +3616,7 @@ const pn = X({
|
|
|
3616
3616
|
}
|
|
3617
3617
|
}), ao = X({
|
|
3618
3618
|
opacity: [Number, String],
|
|
3619
|
-
...
|
|
3619
|
+
...be(),
|
|
3620
3620
|
...Oe()
|
|
3621
3621
|
}, "VCardText"), sl = ie()({
|
|
3622
3622
|
name: "VCardText",
|
|
@@ -3634,7 +3634,7 @@ const pn = X({
|
|
|
3634
3634
|
}
|
|
3635
3635
|
}), oo = X({
|
|
3636
3636
|
appendAvatar: String,
|
|
3637
|
-
appendIcon:
|
|
3637
|
+
appendIcon: he,
|
|
3638
3638
|
disabled: Boolean,
|
|
3639
3639
|
flat: Boolean,
|
|
3640
3640
|
hover: Boolean,
|
|
@@ -3644,7 +3644,7 @@ const pn = X({
|
|
|
3644
3644
|
default: void 0
|
|
3645
3645
|
},
|
|
3646
3646
|
prependAvatar: String,
|
|
3647
|
-
prependIcon:
|
|
3647
|
+
prependIcon: he,
|
|
3648
3648
|
ripple: {
|
|
3649
3649
|
type: [Boolean, Object],
|
|
3650
3650
|
default: !0
|
|
@@ -3662,21 +3662,21 @@ const pn = X({
|
|
|
3662
3662
|
default: void 0
|
|
3663
3663
|
},
|
|
3664
3664
|
...el(),
|
|
3665
|
-
...
|
|
3665
|
+
...be(),
|
|
3666
3666
|
...ht(),
|
|
3667
3667
|
...pt(),
|
|
3668
3668
|
...Zt(),
|
|
3669
|
-
...
|
|
3669
|
+
...Ul(),
|
|
3670
3670
|
...ll(),
|
|
3671
|
-
...
|
|
3671
|
+
...El(),
|
|
3672
3672
|
...yt(),
|
|
3673
|
-
...
|
|
3673
|
+
...Bl(),
|
|
3674
3674
|
...Oe(),
|
|
3675
3675
|
...He(),
|
|
3676
3676
|
...Xt({
|
|
3677
3677
|
variant: "elevated"
|
|
3678
3678
|
})
|
|
3679
|
-
}, "VCard"),
|
|
3679
|
+
}, "VCard"), Vn = ie()({
|
|
3680
3680
|
name: "VCard",
|
|
3681
3681
|
directives: {
|
|
3682
3682
|
vRipple: lt
|
|
@@ -3693,9 +3693,9 @@ const pn = X({
|
|
|
3693
3693
|
borderClasses: u
|
|
3694
3694
|
} = Yt(e), {
|
|
3695
3695
|
colorClasses: s,
|
|
3696
|
-
colorStyles:
|
|
3697
|
-
variantClasses:
|
|
3698
|
-
} =
|
|
3696
|
+
colorStyles: i,
|
|
3697
|
+
variantClasses: o
|
|
3698
|
+
} = Fl(e), {
|
|
3699
3699
|
densityClasses: r
|
|
3700
3700
|
} = Dt(e), {
|
|
3701
3701
|
dimensionStyles: d
|
|
@@ -3703,27 +3703,27 @@ const pn = X({
|
|
|
3703
3703
|
elevationClasses: c
|
|
3704
3704
|
} = Qt(e), {
|
|
3705
3705
|
loaderClasses: m
|
|
3706
|
-
} =
|
|
3706
|
+
} = Hl(e), {
|
|
3707
3707
|
locationStyles: v
|
|
3708
3708
|
} = tl(e), {
|
|
3709
3709
|
positionClasses: y
|
|
3710
|
-
} =
|
|
3710
|
+
} = Rl(e), {
|
|
3711
3711
|
roundedClasses: h
|
|
3712
|
-
} = gt(e), p =
|
|
3712
|
+
} = gt(e), p = Al(e, t), w = te(void 0);
|
|
3713
3713
|
return se(() => e.loading, (P, C) => {
|
|
3714
3714
|
w.value = !P && typeof C == "string" ? C : typeof P == "boolean" ? void 0 : P;
|
|
3715
3715
|
}, {
|
|
3716
3716
|
immediate: !0
|
|
3717
3717
|
}), de(() => {
|
|
3718
|
-
const P = e.link !== !1 && p.isLink.value, C = !e.disabled && e.link !== !1 && (e.link || p.isClickable.value), F = P ? "a" : e.tag,
|
|
3719
|
-
return Ue(g(F,
|
|
3718
|
+
const P = e.link !== !1 && p.isLink.value, C = !e.disabled && e.link !== !1 && (e.link || p.isClickable.value), F = P ? "a" : e.tag, B = !!(n.title || e.title != null), U = !!(n.subtitle || e.subtitle != null), _ = B || U, V = !!(n.append || e.appendAvatar || e.appendIcon), M = !!(n.prepend || e.prependAvatar || e.prependIcon), D = !!(n.image || e.image), K = _ || M || V, Q = !!(n.text || e.text != null);
|
|
3719
|
+
return Ue(g(F, L(p.linkProps, {
|
|
3720
3720
|
class: ["v-card", {
|
|
3721
3721
|
"v-card--disabled": e.disabled,
|
|
3722
3722
|
"v-card--flat": e.flat,
|
|
3723
3723
|
"v-card--hover": e.hover && !(e.disabled || e.flat),
|
|
3724
3724
|
"v-card--link": C
|
|
3725
|
-
}, l.value, u.value, s.value, r.value, c.value, m.value, y.value, h.value,
|
|
3726
|
-
style: [
|
|
3725
|
+
}, l.value, u.value, s.value, r.value, c.value, m.value, y.value, h.value, o.value, e.class],
|
|
3726
|
+
style: [i.value, d.value, v.value, {
|
|
3727
3727
|
"--v-card-height": et(e.height)
|
|
3728
3728
|
}, e.style],
|
|
3729
3729
|
onClick: C && p.navigate.value,
|
|
@@ -3745,13 +3745,13 @@ const pn = X({
|
|
|
3745
3745
|
key: "image-img",
|
|
3746
3746
|
cover: !0,
|
|
3747
3747
|
src: e.image
|
|
3748
|
-
}, null)]), g(
|
|
3748
|
+
}, null)]), g(zl, {
|
|
3749
3749
|
name: "v-card",
|
|
3750
3750
|
active: !!e.loading,
|
|
3751
3751
|
color: w.value
|
|
3752
3752
|
}, {
|
|
3753
3753
|
default: n.loader
|
|
3754
|
-
}),
|
|
3754
|
+
}), K && g(no, {
|
|
3755
3755
|
key: "item",
|
|
3756
3756
|
prependAvatar: e.prependAvatar,
|
|
3757
3757
|
prependIcon: e.prependIcon,
|
|
@@ -3765,13 +3765,13 @@ const pn = X({
|
|
|
3765
3765
|
title: n.title,
|
|
3766
3766
|
subtitle: n.subtitle,
|
|
3767
3767
|
append: n.append
|
|
3768
|
-
}),
|
|
3768
|
+
}), Q && g(sl, {
|
|
3769
3769
|
key: "text"
|
|
3770
3770
|
}, {
|
|
3771
3771
|
default: () => [n.text?.() ?? e.text]
|
|
3772
|
-
}), n.default?.(), n.actions && g(
|
|
3772
|
+
}), n.default?.(), n.actions && g(Cn, null, {
|
|
3773
3773
|
default: n.actions
|
|
3774
|
-
}),
|
|
3774
|
+
}), Dl(C, "v-card")]
|
|
3775
3775
|
}), [[lt, C && e.ripple]]);
|
|
3776
3776
|
}), {};
|
|
3777
3777
|
}
|
|
@@ -3781,17 +3781,17 @@ function so(e) {
|
|
|
3781
3781
|
toggleUpDown: a
|
|
3782
3782
|
} = e, t = -1, n = -1;
|
|
3783
3783
|
rt(u);
|
|
3784
|
-
function l(
|
|
3785
|
-
u(), s(
|
|
3786
|
-
n = window.setInterval(() => s(
|
|
3784
|
+
function l(i) {
|
|
3785
|
+
u(), s(i), window.addEventListener("pointerup", u), document.addEventListener("blur", u), t = window.setTimeout(() => {
|
|
3786
|
+
n = window.setInterval(() => s(i), io);
|
|
3787
3787
|
}, uo);
|
|
3788
3788
|
}
|
|
3789
3789
|
function u() {
|
|
3790
3790
|
window.clearTimeout(t), window.clearInterval(n), window.removeEventListener("pointerup", u), document.removeEventListener("blur", u);
|
|
3791
3791
|
}
|
|
3792
3792
|
rt(u);
|
|
3793
|
-
function s(
|
|
3794
|
-
a(
|
|
3793
|
+
function s(i) {
|
|
3794
|
+
a(i === "up");
|
|
3795
3795
|
}
|
|
3796
3796
|
return {
|
|
3797
3797
|
holdStart: l,
|
|
@@ -3847,27 +3847,27 @@ const ro = X({
|
|
|
3847
3847
|
let {
|
|
3848
3848
|
slots: t
|
|
3849
3849
|
} = a;
|
|
3850
|
-
const n =
|
|
3850
|
+
const n = G(), {
|
|
3851
3851
|
holdStart: l,
|
|
3852
3852
|
holdStop: u
|
|
3853
3853
|
} = so({
|
|
3854
|
-
toggleUpDown:
|
|
3855
|
-
}), s = $t(e),
|
|
3854
|
+
toggleUpDown: K
|
|
3855
|
+
}), s = $t(e), i = I(() => s.isDisabled.value || s.isReadonly.value), o = te(e.focused), {
|
|
3856
3856
|
decimalSeparator: r
|
|
3857
3857
|
} = it(), d = I(() => e.decimalSeparator?.[0] || r.value);
|
|
3858
3858
|
function c(f) {
|
|
3859
3859
|
let A = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : e.precision, J = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0;
|
|
3860
3860
|
const ve = A == null ? String(f) : f.toFixed(A);
|
|
3861
|
-
if (
|
|
3861
|
+
if (o.value && J)
|
|
3862
3862
|
return Number(ve).toString().replace(".", d.value);
|
|
3863
3863
|
if (e.minFractionDigits === null || A !== null && A < e.minFractionDigits)
|
|
3864
3864
|
return ve.replace(".", d.value);
|
|
3865
|
-
let [ge,
|
|
3866
|
-
return
|
|
3865
|
+
let [ge, pe] = ve.split(".");
|
|
3866
|
+
return pe = (pe ?? "").padEnd(e.minFractionDigits, "0").replace(new RegExp(`(?<=\\d{${e.minFractionDigits}})0+$`, "g"), ""), [ge, pe].filter(Boolean).join(d.value);
|
|
3867
3867
|
}
|
|
3868
|
-
const m = Ve(e, "modelValue", null, (f) => f ?? null, (f) => f == null ? f ?? null : Ne(Number(f), e.min, e.max)), v =
|
|
3868
|
+
const m = Ve(e, "modelValue", null, (f) => f ?? null, (f) => f == null ? f ?? null : Ne(Number(f), e.min, e.max)), v = te(null), y = te(null);
|
|
3869
3869
|
se(m, (f) => {
|
|
3870
|
-
|
|
3870
|
+
o.value && !i.value && Number(v.value?.replace(d.value, ".")) === f || (f == null ? (v.value = null, y.value = null) : isNaN(f) || (v.value = c(f), y.value = Number(v.value.replace(d.value, "."))));
|
|
3871
3871
|
}, {
|
|
3872
3872
|
immediate: !0
|
|
3873
3873
|
});
|
|
@@ -3885,19 +3885,19 @@ const ro = X({
|
|
|
3885
3885
|
if (y.value === null) return !1;
|
|
3886
3886
|
const f = Number(v.value?.replace(d.value, "."));
|
|
3887
3887
|
return f !== Ne(f, e.min, e.max);
|
|
3888
|
-
}), w = I(() =>
|
|
3888
|
+
}), w = I(() => i.value ? !1 : (m.value ?? 0) + e.step <= e.max), P = I(() => i.value ? !1 : (m.value ?? 0) - e.step >= e.min), C = I(() => e.hideInput ? "stacked" : e.controlVariant), F = E(() => C.value === "split" ? "$plus" : "$collapse"), B = E(() => C.value === "split" ? "$minus" : "$expand"), U = E(() => C.value === "split" ? "default" : "small"), _ = E(() => C.value === "stacked" ? "auto" : "100%"), V = {
|
|
3889
3889
|
props: {
|
|
3890
3890
|
onClick: W,
|
|
3891
|
-
onPointerup:
|
|
3891
|
+
onPointerup: j,
|
|
3892
3892
|
onPointerdown: ue,
|
|
3893
|
-
onPointercancel:
|
|
3893
|
+
onPointercancel: j
|
|
3894
3894
|
}
|
|
3895
|
-
},
|
|
3895
|
+
}, M = {
|
|
3896
3896
|
props: {
|
|
3897
3897
|
onClick: W,
|
|
3898
|
-
onPointerup:
|
|
3898
|
+
onPointerup: j,
|
|
3899
3899
|
onPointerdown: q,
|
|
3900
|
-
onPointercancel:
|
|
3900
|
+
onPointercancel: j
|
|
3901
3901
|
}
|
|
3902
3902
|
};
|
|
3903
3903
|
se(() => e.precision, () => fe()), se(() => e.minFractionDigits, () => fe()), at(() => {
|
|
@@ -3908,9 +3908,9 @@ const ro = X({
|
|
|
3908
3908
|
const A = f.toString(), J = A.indexOf(".");
|
|
3909
3909
|
return ~J ? A.length - J : 0;
|
|
3910
3910
|
}
|
|
3911
|
-
function
|
|
3911
|
+
function K() {
|
|
3912
3912
|
let f = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0;
|
|
3913
|
-
if (
|
|
3913
|
+
if (i.value) return;
|
|
3914
3914
|
if (m.value == null) {
|
|
3915
3915
|
h.value = c(Ne(0, e.min, e.max));
|
|
3916
3916
|
return;
|
|
@@ -3918,29 +3918,29 @@ const ro = X({
|
|
|
3918
3918
|
let A = Math.max(D(m.value), D(e.step));
|
|
3919
3919
|
e.precision != null && (A = Math.max(A, e.precision)), f ? w.value && (h.value = c(m.value + e.step, A)) : P.value && (h.value = c(m.value - e.step, A));
|
|
3920
3920
|
}
|
|
3921
|
-
function
|
|
3922
|
-
if (
|
|
3921
|
+
function Q(f) {
|
|
3922
|
+
if (i.value || !f.data) return;
|
|
3923
3923
|
const A = f.target, {
|
|
3924
3924
|
value: J,
|
|
3925
3925
|
selectionStart: ve,
|
|
3926
3926
|
selectionEnd: ge
|
|
3927
|
-
} = A ?? {},
|
|
3928
|
-
if (new RegExp(`^-?\\d*${Zn(d.value)}?\\d*$`).test(
|
|
3929
|
-
if (
|
|
3927
|
+
} = A ?? {}, pe = J ? J.slice(0, ve) + f.data + J.slice(ge) : f.data, Ie = Qn(pe, e.precision, d.value);
|
|
3928
|
+
if (new RegExp(`^-?\\d*${Zn(d.value)}?\\d*$`).test(pe) || (f.preventDefault(), A.value = Ie, ke(() => h.value = Ie)), e.precision != null) {
|
|
3929
|
+
if (pe.split(d.value)[1]?.length > e.precision) {
|
|
3930
3930
|
f.preventDefault(), A.value = Ie, ke(() => h.value = Ie);
|
|
3931
3931
|
const De = (ve ?? 0) + f.data.length;
|
|
3932
3932
|
A.setSelectionRange(De, De);
|
|
3933
3933
|
}
|
|
3934
|
-
e.precision === 0 &&
|
|
3934
|
+
e.precision === 0 && pe.endsWith(d.value) && (f.preventDefault(), A.value = Ie, ke(() => h.value = Ie));
|
|
3935
3935
|
}
|
|
3936
3936
|
}
|
|
3937
3937
|
async function H(f) {
|
|
3938
|
-
["Enter", "ArrowLeft", "ArrowRight", "Backspace", "Delete", "Tab"].includes(f.key) || f.ctrlKey || ["ArrowDown", "ArrowUp"].includes(f.key) && (f.preventDefault(), f.stopPropagation(), z(), await ke(), f.key === "ArrowDown" ?
|
|
3938
|
+
["Enter", "ArrowLeft", "ArrowRight", "Backspace", "Delete", "Tab"].includes(f.key) || f.ctrlKey || ["ArrowDown", "ArrowUp"].includes(f.key) && (f.preventDefault(), f.stopPropagation(), z(), await ke(), f.key === "ArrowDown" ? K(!1) : K());
|
|
3939
3939
|
}
|
|
3940
3940
|
function W(f) {
|
|
3941
3941
|
f.stopPropagation();
|
|
3942
3942
|
}
|
|
3943
|
-
function
|
|
3943
|
+
function j(f) {
|
|
3944
3944
|
f.currentTarget?.releasePointerCapture(f.pointerId), f.preventDefault(), u();
|
|
3945
3945
|
}
|
|
3946
3946
|
function ue(f) {
|
|
@@ -3950,15 +3950,15 @@ const ro = X({
|
|
|
3950
3950
|
f.currentTarget?.setPointerCapture(f.pointerId), f.preventDefault(), f.stopPropagation(), l("down");
|
|
3951
3951
|
}
|
|
3952
3952
|
function z() {
|
|
3953
|
-
if (
|
|
3953
|
+
if (i.value || !n.value) return;
|
|
3954
3954
|
const f = n.value.value, A = Number(f.replace(d.value, "."));
|
|
3955
3955
|
f && !isNaN(A) ? h.value = c(Ne(A, e.min, e.max)) : h.value = null;
|
|
3956
3956
|
}
|
|
3957
3957
|
function fe() {
|
|
3958
|
-
|
|
3958
|
+
i.value || (h.value = m.value !== null && !isNaN(m.value) ? c(m.value, e.precision, !1) : null);
|
|
3959
3959
|
}
|
|
3960
|
-
function
|
|
3961
|
-
if (!
|
|
3960
|
+
function R() {
|
|
3961
|
+
if (!i.value) {
|
|
3962
3962
|
if (m.value === null || isNaN(m.value)) {
|
|
3963
3963
|
h.value = null;
|
|
3964
3964
|
return;
|
|
@@ -3967,7 +3967,7 @@ const ro = X({
|
|
|
3967
3967
|
}
|
|
3968
3968
|
}
|
|
3969
3969
|
function O() {
|
|
3970
|
-
|
|
3970
|
+
R();
|
|
3971
3971
|
}
|
|
3972
3972
|
function k() {
|
|
3973
3973
|
z();
|
|
@@ -4001,8 +4001,8 @@ const ro = X({
|
|
|
4001
4001
|
key: "increment-btn",
|
|
4002
4002
|
onClick: W,
|
|
4003
4003
|
onPointerdown: ue,
|
|
4004
|
-
onPointerup:
|
|
4005
|
-
onPointercancel:
|
|
4004
|
+
onPointerup: j,
|
|
4005
|
+
onPointercancel: j,
|
|
4006
4006
|
size: U.value,
|
|
4007
4007
|
variant: "text",
|
|
4008
4008
|
tabindex: "-1"
|
|
@@ -4016,29 +4016,29 @@ const ro = X({
|
|
|
4016
4016
|
disabled: !P.value,
|
|
4017
4017
|
height: _.value,
|
|
4018
4018
|
size: U.value,
|
|
4019
|
-
icon:
|
|
4019
|
+
icon: B.value,
|
|
4020
4020
|
variant: "text"
|
|
4021
4021
|
}
|
|
4022
4022
|
}
|
|
4023
4023
|
}, {
|
|
4024
|
-
default: () => [t.decrement(
|
|
4024
|
+
default: () => [t.decrement(M)]
|
|
4025
4025
|
}) : g(tt, {
|
|
4026
4026
|
"aria-hidden": "true",
|
|
4027
4027
|
"data-testid": "decrement",
|
|
4028
4028
|
disabled: !P.value,
|
|
4029
4029
|
height: _.value,
|
|
4030
|
-
icon:
|
|
4030
|
+
icon: B.value,
|
|
4031
4031
|
key: "decrement-btn",
|
|
4032
4032
|
onClick: W,
|
|
4033
4033
|
onPointerdown: q,
|
|
4034
|
-
onPointerup:
|
|
4035
|
-
onPointercancel:
|
|
4034
|
+
onPointerup: j,
|
|
4035
|
+
onPointercancel: j,
|
|
4036
4036
|
size: U.value,
|
|
4037
4037
|
variant: "text",
|
|
4038
4038
|
tabindex: "-1"
|
|
4039
4039
|
}, null);
|
|
4040
4040
|
}
|
|
4041
|
-
function
|
|
4041
|
+
function pe() {
|
|
4042
4042
|
return b("div", {
|
|
4043
4043
|
class: "v-number-input__control"
|
|
4044
4044
|
}, [ge(), g(ze, {
|
|
@@ -4054,21 +4054,21 @@ const ro = X({
|
|
|
4054
4054
|
class: "v-number-input__control"
|
|
4055
4055
|
}, [g(ze, {
|
|
4056
4056
|
vertical: !0
|
|
4057
|
-
}, null), ve()]) : e.reverse || C.value === "hidden" ? void 0 : b(ce, null, [Ie(),
|
|
4057
|
+
}, null), ve()]) : e.reverse || C.value === "hidden" ? void 0 : b(ce, null, [Ie(), pe()]), je = t["append-inner"] || De, Qe = C.value === "split" ? b("div", {
|
|
4058
4058
|
class: "v-number-input__control"
|
|
4059
4059
|
}, [ge(), g(ze, {
|
|
4060
4060
|
vertical: !0
|
|
4061
|
-
}, null)]) : e.reverse && C.value !== "hidden" ? b(ce, null, [
|
|
4062
|
-
return g(Je,
|
|
4061
|
+
}, null)]) : e.reverse && C.value !== "hidden" ? b(ce, null, [pe(), Ie()]) : void 0, ut = t["prepend-inner"] || Qe;
|
|
4062
|
+
return g(Je, L({
|
|
4063
4063
|
ref: n
|
|
4064
4064
|
}, J, {
|
|
4065
4065
|
modelValue: h.value,
|
|
4066
4066
|
"onUpdate:modelValue": (x) => h.value = x,
|
|
4067
|
-
focused:
|
|
4068
|
-
"onUpdate:focused": (x) =>
|
|
4067
|
+
focused: o.value,
|
|
4068
|
+
"onUpdate:focused": (x) => o.value = x,
|
|
4069
4069
|
validationValue: m.value,
|
|
4070
4070
|
error: e.error || p.value || void 0,
|
|
4071
|
-
onBeforeinput:
|
|
4071
|
+
onBeforeinput: Q,
|
|
4072
4072
|
onFocus: O,
|
|
4073
4073
|
onBlur: k,
|
|
4074
4074
|
onKeydown: H,
|
|
@@ -4085,14 +4085,14 @@ const ro = X({
|
|
|
4085
4085
|
}), {
|
|
4086
4086
|
...t,
|
|
4087
4087
|
"append-inner": je ? function() {
|
|
4088
|
-
for (var x = arguments.length,
|
|
4089
|
-
|
|
4090
|
-
return b(ce, null, [t["append-inner"]?.(...
|
|
4088
|
+
for (var x = arguments.length, Z = new Array(x), le = 0; le < x; le++)
|
|
4089
|
+
Z[le] = arguments[le];
|
|
4090
|
+
return b(ce, null, [t["append-inner"]?.(...Z), De]);
|
|
4091
4091
|
} : void 0,
|
|
4092
4092
|
"prepend-inner": ut ? function() {
|
|
4093
|
-
for (var x = arguments.length,
|
|
4094
|
-
|
|
4095
|
-
return b(ce, null, [Qe, t["prepend-inner"]?.(...
|
|
4093
|
+
for (var x = arguments.length, Z = new Array(x), le = 0; le < x; le++)
|
|
4094
|
+
Z[le] = arguments[le];
|
|
4095
|
+
return b(ce, null, [Qe, t["prepend-inner"]?.(...Z)]);
|
|
4096
4096
|
} : void 0
|
|
4097
4097
|
});
|
|
4098
4098
|
}), St({}, n);
|
|
@@ -4110,14 +4110,14 @@ const ro = X({
|
|
|
4110
4110
|
select: Ja,
|
|
4111
4111
|
number: co,
|
|
4112
4112
|
datepicker: Ee(
|
|
4113
|
-
() => import("./Datepicker-
|
|
4113
|
+
() => import("./Datepicker-B0nM8Hwn.js")
|
|
4114
4114
|
),
|
|
4115
4115
|
comparison: Ee(
|
|
4116
|
-
() => import("./Comparison-
|
|
4116
|
+
() => import("./Comparison-CjJmKbUI.js")
|
|
4117
4117
|
)
|
|
4118
|
-
},
|
|
4118
|
+
}, i = I(() => t.headers.filter((r) => r.advancedFilter !== !1 && !r.hidden)), o = (r) => r ? typeof r == "string" ? s[r] : r : s.textfield;
|
|
4119
4119
|
return se(
|
|
4120
|
-
|
|
4120
|
+
i,
|
|
4121
4121
|
(r) => {
|
|
4122
4122
|
r.forEach((d) => {
|
|
4123
4123
|
const c = d.advancedFilter?.key ?? d.key;
|
|
@@ -4130,13 +4130,13 @@ const ro = X({
|
|
|
4130
4130
|
{ immediate: !0 }
|
|
4131
4131
|
), at(async () => {
|
|
4132
4132
|
await t.options.advancedFilters?.onMounted();
|
|
4133
|
-
}), (r, d) => (oe(),
|
|
4133
|
+
}), (r, d) => (oe(), ye(Vn, { rounded: "lg" }, {
|
|
4134
4134
|
default: Ce(() => [
|
|
4135
4135
|
g(ul, { class: "d-flex justify-space-between align-center" }, {
|
|
4136
4136
|
default: Ce(() => [
|
|
4137
4137
|
b("div", vo, Vt(r.$t("$datatables.advancedFilters")), 1),
|
|
4138
4138
|
g(tt, {
|
|
4139
|
-
icon:
|
|
4139
|
+
icon: $(n).header.icons.close,
|
|
4140
4140
|
variant: "text",
|
|
4141
4141
|
onClick: d[0] || (d[0] = (c) => u("closeDialog"))
|
|
4142
4142
|
}, null, 8, ["icon"])
|
|
@@ -4146,12 +4146,12 @@ const ro = X({
|
|
|
4146
4146
|
g(ze),
|
|
4147
4147
|
g(sl, { class: "overflow-auto pt-8" }, {
|
|
4148
4148
|
default: Ce(() => [
|
|
4149
|
-
(oe(!0), Ke(ce, null, Wt(
|
|
4149
|
+
(oe(!0), Ke(ce, null, Wt($(i), (c, m) => (oe(), Ke("div", {
|
|
4150
4150
|
id: `advanced-filter-${c.key}`,
|
|
4151
4151
|
key: `filter-${m}`,
|
|
4152
4152
|
class: re(`advanced-filter advanced-filter--${c.key}`)
|
|
4153
4153
|
}, [
|
|
4154
|
-
(oe(),
|
|
4154
|
+
(oe(), ye($e(o(c.advancedFilter?.component)), L({
|
|
4155
4155
|
modelValue: l.value[c.advancedFilter?.key ?? c.key].value,
|
|
4156
4156
|
"onUpdate:modelValue": (v) => l.value[c.advancedFilter?.key ?? c.key].value = v,
|
|
4157
4157
|
comparison: l.value[c.advancedFilter?.key ?? c.key].comparison,
|
|
@@ -4166,7 +4166,7 @@ const ro = X({
|
|
|
4166
4166
|
_: 1
|
|
4167
4167
|
}),
|
|
4168
4168
|
g(ze, { class: "mt-2" }),
|
|
4169
|
-
g(
|
|
4169
|
+
g(Cn, { class: "my-2 d-flex justify-end" }, {
|
|
4170
4170
|
default: Ce(() => [
|
|
4171
4171
|
g(tt, {
|
|
4172
4172
|
class: "text-none",
|
|
@@ -4224,8 +4224,8 @@ const go = {
|
|
|
4224
4224
|
},
|
|
4225
4225
|
emits: ["update:modelValue"],
|
|
4226
4226
|
setup(e) {
|
|
4227
|
-
const a = Pe("table_props"), t = Pe("busEmits"), n = Rt(), { advancedFiltersState: l } = Et(), u =
|
|
4228
|
-
const m = Object.entries(
|
|
4227
|
+
const a = Pe("table_props"), t = Pe("busEmits"), n = Rt(), { advancedFiltersState: l } = Et(), u = Xl("advancedFilters"), { setData: s } = n, i = Pt(e, "modelValue"), o = G({}), r = () => {
|
|
4228
|
+
const m = Object.entries(o.value).filter(([, v]) => {
|
|
4229
4229
|
const y = v.value;
|
|
4230
4230
|
return Array.isArray(y) || typeof y == "string" ? y.length > 0 : y != null && y !== "";
|
|
4231
4231
|
}).reduce((v, [y, h]) => (v[y] = h, v), {});
|
|
@@ -4233,35 +4233,35 @@ const go = {
|
|
|
4233
4233
|
table_id: a.id,
|
|
4234
4234
|
name: "advancedFilters",
|
|
4235
4235
|
value: { query: pl(m) }
|
|
4236
|
-
}), t("advancedFilters:update", m)),
|
|
4236
|
+
}), t("advancedFilters:update", m)), i.value = !1;
|
|
4237
4237
|
}, d = (m, v) => {
|
|
4238
|
-
m === "save" && (
|
|
4238
|
+
m === "save" && (o.value[v.key] = { comparison: v.comparison, value: v.value }, r());
|
|
4239
4239
|
}, c = u.on(d);
|
|
4240
4240
|
return at(() => {
|
|
4241
|
-
|
|
4241
|
+
o.value = pl(l.value);
|
|
4242
4242
|
}), Pn(c), (m, v) => {
|
|
4243
4243
|
const y = mo, h = ha;
|
|
4244
4244
|
return oe(), Ke("div", null, [
|
|
4245
|
-
g(
|
|
4246
|
-
modelValue:
|
|
4247
|
-
"onUpdate:modelValue": v[1] || (v[1] = (p) =>
|
|
4245
|
+
g(Sn, {
|
|
4246
|
+
modelValue: i.value,
|
|
4247
|
+
"onUpdate:modelValue": v[1] || (v[1] = (p) => i.value = p),
|
|
4248
4248
|
"max-width": "550",
|
|
4249
4249
|
"retain-focus": !1
|
|
4250
4250
|
}, {
|
|
4251
4251
|
default: Ce(({ isActive: p }) => [
|
|
4252
4252
|
g(y, {
|
|
4253
|
-
modelValue:
|
|
4254
|
-
"onUpdate:modelValue": v[0] || (v[0] = (w) => xt(
|
|
4253
|
+
modelValue: $(o),
|
|
4254
|
+
"onUpdate:modelValue": v[0] || (v[0] = (w) => xt(o) ? o.value = w : null),
|
|
4255
4255
|
onSave: r,
|
|
4256
4256
|
onCloseDialog: (w) => p.value = !1
|
|
4257
4257
|
}, null, 8, ["modelValue", "onCloseDialog"])
|
|
4258
4258
|
]),
|
|
4259
4259
|
_: 1
|
|
4260
4260
|
}, 8, ["modelValue"]),
|
|
4261
|
-
Object.keys(
|
|
4261
|
+
Object.keys($(l)).length ? (oe(), ye(h, {
|
|
4262
4262
|
key: 0,
|
|
4263
|
-
modelValue:
|
|
4264
|
-
"onUpdate:modelValue": v[2] || (v[2] = (p) => xt(
|
|
4263
|
+
modelValue: $(o),
|
|
4264
|
+
"onUpdate:modelValue": v[2] || (v[2] = (p) => xt(o) ? o.value = p : null),
|
|
4265
4265
|
onSave: r
|
|
4266
4266
|
}, null, 8, ["modelValue"])) : Me("", !0)
|
|
4267
4267
|
]);
|
|
@@ -4269,7 +4269,7 @@ const go = {
|
|
|
4269
4269
|
}
|
|
4270
4270
|
};
|
|
4271
4271
|
function yo() {
|
|
4272
|
-
const e = Pe("datatablesPluginOptions"), { t: a } = aa(), { advancedFiltersState: t } = Et(), n =
|
|
4272
|
+
const e = Pe("datatablesPluginOptions"), { t: a } = aa(), { advancedFiltersState: t } = Et(), n = G(!1), l = I(() => Object.keys(t.value).length);
|
|
4273
4273
|
return { advancedFiltersItems: I(() => [
|
|
4274
4274
|
{
|
|
4275
4275
|
title: `${a("$datatables.advancedFilters")}`,
|
|
@@ -4288,35 +4288,35 @@ const ho = {
|
|
|
4288
4288
|
return (l, u) => {
|
|
4289
4289
|
const s = go;
|
|
4290
4290
|
return oe(), Ke("div", ho, [
|
|
4291
|
-
(oe(!0), Ke(ce, null, Wt(
|
|
4292
|
-
key:
|
|
4291
|
+
(oe(!0), Ke(ce, null, Wt($(a), (i, o) => (oe(), ye(tt, L({
|
|
4292
|
+
key: o,
|
|
4293
4293
|
icon: "",
|
|
4294
4294
|
variant: "text",
|
|
4295
|
-
color:
|
|
4295
|
+
color: $(n) ? "primary" : "dark",
|
|
4296
4296
|
density: "comfortable"
|
|
4297
|
-
}, { ref_for: !0 },
|
|
4297
|
+
}, { ref_for: !0 }, i), {
|
|
4298
4298
|
default: Ce(() => [
|
|
4299
|
-
|
|
4299
|
+
$(n) ? (oe(), ye(Ya, {
|
|
4300
4300
|
key: 0,
|
|
4301
4301
|
color: "primary",
|
|
4302
|
-
content:
|
|
4302
|
+
content: $(n)
|
|
4303
4303
|
}, {
|
|
4304
4304
|
default: Ce(() => [
|
|
4305
4305
|
g(Se, {
|
|
4306
|
-
icon:
|
|
4306
|
+
icon: i.prependIcon
|
|
4307
4307
|
}, null, 8, ["icon"])
|
|
4308
4308
|
]),
|
|
4309
4309
|
_: 2
|
|
4310
|
-
}, 1032, ["content"])) : (oe(),
|
|
4310
|
+
}, 1032, ["content"])) : (oe(), ye(Se, {
|
|
4311
4311
|
key: 1,
|
|
4312
|
-
icon:
|
|
4312
|
+
icon: i.prependIcon
|
|
4313
4313
|
}, null, 8, ["icon"]))
|
|
4314
4314
|
]),
|
|
4315
4315
|
_: 2
|
|
4316
4316
|
}, 1040, ["color"]))), 128)),
|
|
4317
4317
|
g(s, {
|
|
4318
|
-
modelValue:
|
|
4319
|
-
"onUpdate:modelValue": u[0] || (u[0] = (
|
|
4318
|
+
modelValue: $(t),
|
|
4319
|
+
"onUpdate:modelValue": u[0] || (u[0] = (i) => xt(t) ? t.value = i : null)
|
|
4320
4320
|
}, null, 8, ["modelValue"])
|
|
4321
4321
|
]);
|
|
4322
4322
|
};
|
|
@@ -4330,42 +4330,42 @@ const ho = {
|
|
|
4330
4330
|
responsiveHeader: { type: Boolean }
|
|
4331
4331
|
},
|
|
4332
4332
|
setup(e) {
|
|
4333
|
-
const a = Ee(() => import("./Search-
|
|
4333
|
+
const a = Ee(() => import("./Search-CHZzma0w.js")), t = Ee(() => import("./RefreshTable-DGaEfdXL.js")), n = Ee(() => import("./Options-Bj_HI8lq.js")), l = Ee(() => import("./index-DflXGVoK.js")), u = Ee(() => import("./index-C1YF3-B4.js")), s = Ee(() => import("./index-CgIh2BvP.js")), i = Pe("table_props"), o = G(null), r = i.options?.header?.components ?? {};
|
|
4334
4334
|
return (d, c) => {
|
|
4335
4335
|
const m = bo;
|
|
4336
4336
|
return oe(), Ke("div", po, [
|
|
4337
|
-
e.responsiveHeader ? Me("", !0) : (oe(),
|
|
4338
|
-
|
|
4337
|
+
e.responsiveHeader ? Me("", !0) : (oe(), ye(m, { key: 0 })),
|
|
4338
|
+
$(i).hardFilters.length ? (oe(), ye($e($(r).hardFilters ?? $(l)), {
|
|
4339
4339
|
key: 1,
|
|
4340
4340
|
id: "header-hardFilters"
|
|
4341
4341
|
})) : Me("", !0),
|
|
4342
|
-
(oe(),
|
|
4342
|
+
(oe(), ye($e($(r).toolbar), { id: "header-toolbar" })),
|
|
4343
4343
|
b("div", ko, [
|
|
4344
|
-
(oe(),
|
|
4345
|
-
e.responsiveHeader ? Me("", !0) : (oe(),
|
|
4344
|
+
(oe(), ye($e($(r).search ?? $(a)), { id: "header-search" })),
|
|
4345
|
+
e.responsiveHeader ? Me("", !0) : (oe(), ye($e($(r).columns ?? $(u)), {
|
|
4346
4346
|
key: 0,
|
|
4347
|
-
"component-refs": { columns:
|
|
4347
|
+
"component-refs": { columns: $(o) }
|
|
4348
4348
|
}, null, 8, ["component-refs"])),
|
|
4349
|
-
e.responsiveHeader ? Me("", !0) : (oe(),
|
|
4350
|
-
e.responsiveHeader ? Me("", !0) : (oe(),
|
|
4351
|
-
(oe(),
|
|
4349
|
+
e.responsiveHeader ? Me("", !0) : (oe(), ye($e($(r).download ?? $(s)), { key: 1 })),
|
|
4350
|
+
e.responsiveHeader ? Me("", !0) : (oe(), ye($e($(r).refreshTable ?? $(t)), { key: 2 })),
|
|
4351
|
+
(oe(), ye($e($(r).options ?? $(n)), { "responsive-header": e.responsiveHeader }, null, 8, ["responsive-header"]))
|
|
4352
4352
|
])
|
|
4353
4353
|
]);
|
|
4354
4354
|
};
|
|
4355
4355
|
}
|
|
4356
4356
|
});
|
|
4357
4357
|
function Co(e) {
|
|
4358
|
-
const a = Rt(), { getCurrentTable: t, setTableHash: n, hashString: l } = a, u =
|
|
4358
|
+
const a = Rt(), { getCurrentTable: t, setTableHash: n, hashString: l } = a, u = G(!1), s = 5, i = I(() => t(e.id));
|
|
4359
4359
|
se(
|
|
4360
|
-
|
|
4360
|
+
i,
|
|
4361
4361
|
async (v) => {
|
|
4362
|
-
v.options.hash && await
|
|
4362
|
+
v.options.hash && await o(v);
|
|
4363
4363
|
},
|
|
4364
4364
|
{
|
|
4365
4365
|
deep: !0
|
|
4366
4366
|
}
|
|
4367
4367
|
);
|
|
4368
|
-
const
|
|
4368
|
+
const o = async (v) => {
|
|
4369
4369
|
if (u.value) return;
|
|
4370
4370
|
u.value = !0, await ke();
|
|
4371
4371
|
const y = r(), h = y.findIndex((p) => p.id === e.id);
|
|
@@ -4377,7 +4377,7 @@ function Co(e) {
|
|
|
4377
4377
|
return {
|
|
4378
4378
|
saving: u,
|
|
4379
4379
|
dataStateGet: d,
|
|
4380
|
-
tableDataState:
|
|
4380
|
+
tableDataState: i,
|
|
4381
4381
|
checkTableState: async () => {
|
|
4382
4382
|
const v = localStorage.getItem("datatables-state-v");
|
|
4383
4383
|
parseInt(v) !== parseInt(s) && (localStorage.removeItem("datatables-state"), localStorage.setItem("datatables-state-v", s));
|
|
@@ -4393,8 +4393,8 @@ function Co(e) {
|
|
|
4393
4393
|
}
|
|
4394
4394
|
};
|
|
4395
4395
|
}
|
|
4396
|
-
const
|
|
4397
|
-
const e =
|
|
4396
|
+
const xn = la(() => {
|
|
4397
|
+
const e = te({}), a = te({});
|
|
4398
4398
|
return {
|
|
4399
4399
|
storeOptions: {
|
|
4400
4400
|
state: e,
|
|
@@ -4418,40 +4418,44 @@ const Vn = la(() => {
|
|
|
4418
4418
|
},
|
|
4419
4419
|
emits: /* @__PURE__ */ qt(["refreshTable", "refetchData", "advancedFilters:update", "hardFilters:update"], ["update:modelValue"]),
|
|
4420
4420
|
setup(e, { expose: a, emit: t }) {
|
|
4421
|
-
const n = Ee(() => import("./Table-
|
|
4422
|
-
|
|
4423
|
-
const V = _[0], { width: $ } = V.contentRect;
|
|
4424
|
-
E.value = $ < 950;
|
|
4425
|
-
});
|
|
4426
|
-
const U = I(() => {
|
|
4427
|
-
const _ = i.options?.header;
|
|
4421
|
+
const n = Ee(() => import("./Table-GSeivIYB.js")), l = Ee(() => import("./TableServer-B4xTmowi.js")), { storeOptions: u } = xn(), { saveTableOptions: s } = Et(), i = Pt(e, "modelValue"), o = Pe("table_props"), r = Pe("datatablesPluginOptions"), d = Cl("tableRef"), c = G(!1), m = G(!1), v = G(!1), y = t, h = Rt(), { dataStateGet: p, tableDataState: w, checkTableState: P } = Co(o), { addTable: C, restoreData: F } = h, B = G(!1), U = I(() => {
|
|
4422
|
+
const _ = o.options?.header;
|
|
4428
4423
|
return _ === void 0 || typeof _ == "object" && _ !== null;
|
|
4429
4424
|
});
|
|
4430
4425
|
return at(async () => {
|
|
4431
|
-
C({ table_id:
|
|
4426
|
+
C({ table_id: o.id }), await P();
|
|
4432
4427
|
const _ = p();
|
|
4433
|
-
_ && F({ table_id:
|
|
4434
|
-
const
|
|
4435
|
-
|
|
4428
|
+
_ && F({ table_id: o.id, data: _ });
|
|
4429
|
+
const M = w.value.options.columns;
|
|
4430
|
+
M.sorted?.length || (M.selected?.length || (M.selected = o.headers.filter((D) => !D.hidden).map((D) => D.key)), M.sorted = o.headers.map((D) => D.key)), s(ea(u.state.value, w.value.options.state)), m.value = !0, await ke(), na(d, (D) => {
|
|
4431
|
+
if (!v.value) return;
|
|
4432
|
+
const K = D[0], { width: Q } = K.contentRect;
|
|
4433
|
+
B.value = Q < 950;
|
|
4434
|
+
}), v.value = !0;
|
|
4435
|
+
}), kl(() => {
|
|
4436
|
+
v.value = !1;
|
|
4436
4437
|
}), We("busEmits", y), We("tableRef", d), We("tableState", w), We("downloadModal", c), a({ tableRef: d }), (_, V) => {
|
|
4437
|
-
const
|
|
4438
|
-
return
|
|
4439
|
-
g(
|
|
4438
|
+
const M = So;
|
|
4439
|
+
return $(m) ? (oe(), Ke("div", Vo, [
|
|
4440
|
+
g(Vn, null, {
|
|
4440
4441
|
default: Ce(() => [
|
|
4441
|
-
|
|
4442
|
+
$(U) ? (oe(), ye(ul, { key: 0 }, {
|
|
4442
4443
|
default: Ce(() => [
|
|
4443
|
-
|
|
4444
|
+
(oe(), ye(M, {
|
|
4445
|
+
key: $(B) ? "responsive" : "full",
|
|
4446
|
+
"responsive-header": $(B)
|
|
4447
|
+
}, null, 8, ["responsive-header"]))
|
|
4444
4448
|
]),
|
|
4445
4449
|
_: 1
|
|
4446
4450
|
})) : Me("", !0),
|
|
4447
4451
|
g(sl, { class: "pa-0" }, {
|
|
4448
4452
|
default: Ce(() => [
|
|
4449
|
-
|
|
4450
|
-
key: 0,
|
|
4453
|
+
$(v) ? (oe(), ye($e($(o).api ? $(l) : $(n)), {
|
|
4451
4454
|
ref_key: "tableRef",
|
|
4452
4455
|
ref: d,
|
|
4453
|
-
|
|
4454
|
-
|
|
4456
|
+
key: $(o).api ? "server" : "client",
|
|
4457
|
+
modelValue: i.value,
|
|
4458
|
+
"onUpdate:modelValue": V[0] || (V[0] = (D) => i.value = D)
|
|
4455
4459
|
}, null, 8, ["modelValue"])) : Me("", !0)
|
|
4456
4460
|
]),
|
|
4457
4461
|
_: 1
|
|
@@ -4459,8 +4463,8 @@ const Vn = la(() => {
|
|
|
4459
4463
|
]),
|
|
4460
4464
|
_: 1
|
|
4461
4465
|
}),
|
|
4462
|
-
g(
|
|
4463
|
-
modelValue:
|
|
4466
|
+
g(Sn, {
|
|
4467
|
+
modelValue: $(c),
|
|
4464
4468
|
"onUpdate:modelValue": V[1] || (V[1] = (D) => xt(c) ? c.value = D : null),
|
|
4465
4469
|
"max-width": "350",
|
|
4466
4470
|
persistent: ""
|
|
@@ -4474,7 +4478,7 @@ const Vn = la(() => {
|
|
|
4474
4478
|
}, {
|
|
4475
4479
|
default: Ce(() => [
|
|
4476
4480
|
g(vt, {
|
|
4477
|
-
"prepend-icon":
|
|
4481
|
+
"prepend-icon": $(r).header.icons.download,
|
|
4478
4482
|
title: _.$t("$datatables.preparing_download_file")
|
|
4479
4483
|
}, {
|
|
4480
4484
|
prepend: Ce(() => [
|
|
@@ -4504,8 +4508,8 @@ const Vn = la(() => {
|
|
|
4504
4508
|
])) : Me("", !0);
|
|
4505
4509
|
};
|
|
4506
4510
|
}
|
|
4507
|
-
}), wo =
|
|
4508
|
-
const e =
|
|
4511
|
+
}), wo = Vl("datatablesHooks", () => {
|
|
4512
|
+
const e = G({});
|
|
4509
4513
|
return {
|
|
4510
4514
|
hooks: e,
|
|
4511
4515
|
registerHook: (n, l) => {
|
|
@@ -4562,20 +4566,20 @@ const Vn = la(() => {
|
|
|
4562
4566
|
},
|
|
4563
4567
|
emits: ["refreshTable", "refetchData"],
|
|
4564
4568
|
setup(e, { expose: a, emit: t }) {
|
|
4565
|
-
const n = e, { triggerHook: l } = wo(), { storeOptions: u, setUserOptions: s } =
|
|
4569
|
+
const n = e, { triggerHook: l } = wo(), { storeOptions: u, setUserOptions: s } = xn(), i = Xl("advancedFilters"), o = Cl("table"), r = G(0), d = async (y = {}) => {
|
|
4566
4570
|
s(y), r.value < 99 && (v("refreshTable"), await ke(), r.value++);
|
|
4567
4571
|
}, c = async (y = {}) => {
|
|
4568
|
-
await ke(), !(!
|
|
4572
|
+
await ke(), !(!o.value || !o.value?.tableRef) && (s(y), "reloadItems" in o.value.tableRef && (o.value.tableRef.reloadItems(u.state.value), v("refetchData")));
|
|
4569
4573
|
}, m = (y, h, p = "=") => {
|
|
4570
|
-
|
|
4574
|
+
i.emit("save", { key: y, value: h, comparison: p });
|
|
4571
4575
|
}, v = t;
|
|
4572
4576
|
return We("table_props", n), We("triggerHook", l), a({ refreshTable: d, refetchData: c, triggerHook: l, updateAdvancedFilter: m }), (y, h) => {
|
|
4573
4577
|
const p = Io;
|
|
4574
|
-
return oe(),
|
|
4578
|
+
return oe(), ye(p, {
|
|
4575
4579
|
id: e.id,
|
|
4576
4580
|
ref_key: "table",
|
|
4577
|
-
ref:
|
|
4578
|
-
key: `${e.id}-${
|
|
4581
|
+
ref: o,
|
|
4582
|
+
key: `${e.id}-${$(r)}`,
|
|
4579
4583
|
onRefreshTable: d,
|
|
4580
4584
|
onRefetchData: c
|
|
4581
4585
|
}, null, 8, ["id"]);
|
|
@@ -4587,31 +4591,31 @@ const Vn = la(() => {
|
|
|
4587
4591
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4588
4592
|
export {
|
|
4589
4593
|
Mt as A,
|
|
4590
|
-
|
|
4594
|
+
sn as B,
|
|
4591
4595
|
co as C,
|
|
4592
4596
|
Ro as D,
|
|
4593
4597
|
Bo as V,
|
|
4594
4598
|
go as _,
|
|
4595
4599
|
Gt as a,
|
|
4596
4600
|
mt as b,
|
|
4597
|
-
|
|
4601
|
+
un as c,
|
|
4598
4602
|
pl as d,
|
|
4599
|
-
|
|
4603
|
+
hn as e,
|
|
4600
4604
|
Rt as f,
|
|
4601
|
-
|
|
4605
|
+
Vn as g,
|
|
4602
4606
|
sl as h,
|
|
4603
4607
|
Je as i,
|
|
4604
|
-
|
|
4608
|
+
Sn as j,
|
|
4605
4609
|
ul as k,
|
|
4606
|
-
|
|
4607
|
-
|
|
4610
|
+
Cn as l,
|
|
4611
|
+
yn as m,
|
|
4608
4612
|
yo as n,
|
|
4609
4613
|
wo as o,
|
|
4610
4614
|
il as p,
|
|
4611
4615
|
ma as q,
|
|
4612
|
-
|
|
4616
|
+
rn as r,
|
|
4613
4617
|
Sa as s,
|
|
4614
|
-
|
|
4618
|
+
cn as t,
|
|
4615
4619
|
Et as u,
|
|
4616
4620
|
hl as v,
|
|
4617
4621
|
Co as w,
|