@ianicdev/datatables2 0.12.0 → 0.12.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Comparison-Cjz-f6QE.cjs → Comparison-DtpUZsrU.cjs} +1 -1
- package/dist/{Comparison-c7-5FHzt.js → Comparison-IcnZYHnn.js} +1 -1
- package/dist/{Datepicker-D8R5O3nA.js → Datepicker-BKJGzszq.js} +2 -2
- package/dist/{Datepicker-tYZiV7pL.cjs → Datepicker-tAQpdCVA.cjs} +1 -1
- package/dist/{Options-t9XPNKFJ.js → Options-DZWZnKMZ.js} +4 -4
- package/dist/{Options-BqEPdV4P.cjs → Options-th4F06rr.cjs} +1 -1
- package/dist/{RefreshTable-BK-a6F4w.cjs → RefreshTable-CnvdYMek.cjs} +1 -1
- package/dist/{RefreshTable-BMZFOov3.js → RefreshTable-D4ifMTa_.js} +1 -1
- package/dist/{Search-ggJbFRUZ.cjs → Search-B9HBH338.cjs} +1 -1
- package/dist/{Search-CcSzJ7EN.js → Search-BkQ1aZEe.js} +2 -2
- package/dist/{Table-Cd3b9yno.cjs → Table-CGFEU1ml.cjs} +1 -1
- package/dist/{Table-DFgbsnAr.js → Table-CUFIrlzk.js} +3 -3
- package/dist/{TableServer-CkRGzG9m.cjs → TableServer-Ccn3CM5P.cjs} +1 -1
- package/dist/{TableServer-RGxAza7r.js → TableServer-DSAcYBTM.js} +3 -3
- package/dist/{cellRender-yRAYLhMZ.cjs → cellRender-8D0QBLeC.cjs} +1 -1
- package/dist/{cellRender-BrYyjDR0.js → cellRender-BBnDEG_7.js} +2 -2
- package/dist/{dataTables-BwYZVAqY.js → dataTables-B691de3Y.js} +205 -204
- package/dist/{dataTables-CT4H3tPX.cjs → dataTables-C0Ygb6M3.cjs} +2 -2
- package/dist/datatables.cjs +1 -1
- package/dist/datatables.js +1 -1
- package/dist/datatables2.css +1 -1
- package/dist/{index-CRNAJrYh.cjs → index-BiBUa6-_.cjs} +1 -1
- package/dist/{index-vAe2qE0y.js → index-C9x5Z2bI.js} +1202 -1198
- package/dist/{index-Bra3YXTV.js → index-CPLpre1I.js} +2 -2
- package/dist/index-CX6NrL8T.cjs +1 -0
- package/dist/{index-CI5-YbRX.cjs → index-D4MrgePs.cjs} +1 -1
- package/dist/{index-hM02sYDS.js → index-DwBno3e_.js} +2 -2
- package/dist/{index-CLiQ28nF.cjs → index-GgkpPHGm.cjs} +1 -1
- package/dist/{index-CWXBoVzR.js → index-H3lKuAD2.js} +2 -2
- package/dist/{index.es-BMrS5t0X.js → index.es-BISbMM3V.js} +1127 -1113
- package/dist/{index.es-bmkO-qSm.cjs → index.es-CK9mjb_K.cjs} +5 -5
- package/dist/{jspdf-BEHFm2qd.js → jspdf-CEG2zMqe.js} +2176 -2162
- package/dist/jspdf-DZiw2wns.cjs +79 -0
- package/dist/{useColumns-qXPhS6kv.js → useColumns-CTrxq_by.js} +2 -2
- package/dist/{useColumns-GzXxHCN7.cjs → useColumns-Cgjt48Pi.cjs} +1 -1
- package/dist/{useDownload-B9YtKO_M.js → useDownload-DpS1G0qa.js} +1 -1
- package/dist/{useDownload-CELkYaWd.cjs → useDownload-tCiK460H.cjs} +1 -1
- package/package.json +9 -9
- package/dist/index-Bascl9Tm.cjs +0 -1
- package/dist/jspdf-BCsjByej.cjs +0 -79
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { ref as
|
|
1
|
+
import { ref as U, inject as _e, computed as I, toRef as R, shallowRef as ee, watch as se, createVNode as g, normalizeStyle as xe, normalizeClass as re, createElementVNode as b, mergeProps as N, withDirectives as Ue, vShow as Pt, Fragment as ce, toDisplayString as Vt, useModel as _t, openBlock as oe, createBlock as pe, withCtx as Ce, createElementBlock as Ke, renderList as Gt, unref as L, mergeModels as Wt, useId as Xe, provide as We, onScopeDispose as rt, nextTick as Se, onBeforeMount as Vn, onBeforeUnmount as xn, onMounted as at, cloneVNode as In, watchEffect as Ht, toValue as zt, createTextVNode as pl, defineAsyncComponent as Ee, resolveDynamicComponent as $e, isRef as xt, createCommentVNode as Me, defineComponent as kl } from "vue";
|
|
2
2
|
import { defineStore as Sl } from "pinia";
|
|
3
|
-
import { u as At, m as Ut, P as Cl, c as
|
|
3
|
+
import { u as At, m as Ut, P as Cl, c as Ne, a as wn, e as Pn, r as _n, g as ie, b as Vl, d as xl, f as It, I as ct, h as de, V as sl, i as ke, j as Il, p as X, k as ye, l as wl, n as Oe, o as An, q as he, s as ot, t as qt, v as qe, w as Jt, x as He, R as lt, y as it, z as Xt, A as Ft, B as Yt, C as gt, D as Fn, E as Ve, F as rl, G as Pl, H as _l, J as Al, K as Fl, L as Fe, M as nt, N as Dn, O as Dl, Q as yt, S as Tn, T as Qt, U as ht, W as Zt, X as Le, Y as Dt, Z as bt, _ as el, $ as Tl, a0 as Bl, a1 as tl, a2 as pt, a3 as Rl, a4 as Te, a5 as kt, a6 as dt, a7 as Ye, a8 as El, a9 as ll, aa as Tt, ab as Ol, ac as $l, ad as Ml, ae as Kt, af as Bn, ag as Nl, ah as Rn, ai as En, aj as Ll, ak as et, al as Hl, am as On, an as cl, ao as St, ap as zl, aq as $n, ar as Mn, as as Ul, at as Kl, au as nl, av as vt, aw as Nn, ax as ze, ay as jl, az as Gl, aA as wt, aB as Wl, aC as Ln, aD as Hn, aE as zn, aF as Un, aG as Kn, aH as dl, aI as jn, aJ as Gn, aK as Wn, aL as tt, aM as qn, aN as Jn, aO as Xn, aP as Yn } from "./dataTables-B691de3Y.js";
|
|
4
4
|
import { useI18n as Qn } from "vue-i18n";
|
|
5
5
|
import { createSharedComposable as Zn, useResizeObserver as ea } from "@vueuse/core";
|
|
6
6
|
const Bt = Sl("datatables", () => {
|
|
7
|
-
const e =
|
|
7
|
+
const e = U([]), a = ({ table_id: o }) => {
|
|
8
8
|
const u = e.value.findIndex((r) => r.id === o), d = {
|
|
9
9
|
search: {
|
|
10
10
|
query: ""
|
|
@@ -56,13 +56,13 @@ const Bt = Sl("datatables", () => {
|
|
|
56
56
|
};
|
|
57
57
|
});
|
|
58
58
|
function Rt() {
|
|
59
|
-
const { setData: e, getCurrentTable: a } = Bt(), t =
|
|
59
|
+
const { setData: e, getCurrentTable: a } = Bt(), t = _e("table_props"), n = I(() => a(t.id)), l = I(() => n.value.search?.query), i = I(() => {
|
|
60
60
|
if (!t?.headers.length) return null;
|
|
61
61
|
const d = n.value.options?.columns.selected ?? [];
|
|
62
62
|
return (n.value.options?.columns.sorted ?? []).filter((m) => d.includes(m)).map(
|
|
63
63
|
(m) => t.headers.find((v) => v.key === m)
|
|
64
64
|
);
|
|
65
|
-
}), c =
|
|
65
|
+
}), c = I(() => n.value.hardFilters?.query), o = I(() => n.value.advancedFilters?.query);
|
|
66
66
|
return {
|
|
67
67
|
tableState: n,
|
|
68
68
|
searchState: l,
|
|
@@ -119,24 +119,24 @@ async function vl(e, a, t, n) {
|
|
|
119
119
|
if (r === s) return Promise.resolve(r);
|
|
120
120
|
const m = performance.now();
|
|
121
121
|
return new Promise((v) => requestAnimationFrame(function h(y) {
|
|
122
|
-
const
|
|
123
|
-
if (u[l] =
|
|
122
|
+
const P = (y - m) / i.duration, _ = Math.floor(s + (r - s) * d(Ne(P, 0, 1)));
|
|
123
|
+
if (u[l] = _, P >= 1 && Math.abs(_ - u[l]) < 10)
|
|
124
124
|
return v(r);
|
|
125
|
-
if (
|
|
125
|
+
if (P > 2)
|
|
126
126
|
return wn("Scroll target is not reachable"), v(u[l]);
|
|
127
127
|
requestAnimationFrame(h);
|
|
128
128
|
}));
|
|
129
129
|
}
|
|
130
130
|
function aa() {
|
|
131
131
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
132
|
-
const a =
|
|
132
|
+
const a = _e(ta), {
|
|
133
133
|
isRtl: t
|
|
134
134
|
} = At();
|
|
135
135
|
if (!a) throw new Error("[Vuetify] Could not find injected goto instance");
|
|
136
136
|
const n = {
|
|
137
137
|
...a,
|
|
138
138
|
// can be set via VLocaleProvider
|
|
139
|
-
rtl:
|
|
139
|
+
rtl: R(() => a.rtl.value || t.value)
|
|
140
140
|
};
|
|
141
141
|
async function l(i, c) {
|
|
142
142
|
return vl(i, Ut(e, c), !1, n);
|
|
@@ -149,7 +149,7 @@ function oa(e, a, t, n) {
|
|
|
149
149
|
scrollHeight: i
|
|
150
150
|
} = e, [c, o] = e === document.scrollingElement ? [window.innerWidth, window.innerHeight] : [e.offsetWidth, e.offsetHeight];
|
|
151
151
|
let u, d;
|
|
152
|
-
return n ? t ? (u = -(l - c), d = 0) : (u = 0, d = l - c) : (u = 0, d = i + -o),
|
|
152
|
+
return n ? t ? (u = -(l - c), d = 0) : (u = 0, d = l - c) : (u = 0, d = i + -o), Ne(a, u, d);
|
|
153
153
|
}
|
|
154
154
|
function ia(e) {
|
|
155
155
|
let {
|
|
@@ -192,7 +192,7 @@ function ft(e, a) {
|
|
|
192
192
|
function Jl(e, a) {
|
|
193
193
|
return a?.[e ? "offsetLeft" : "offsetTop"] || 0;
|
|
194
194
|
}
|
|
195
|
-
const Xl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Yl =
|
|
195
|
+
const Xl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Yl = X({
|
|
196
196
|
centerActive: Boolean,
|
|
197
197
|
scrollToActive: {
|
|
198
198
|
type: Boolean,
|
|
@@ -223,11 +223,11 @@ const Xl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Yl = Q({
|
|
|
223
223
|
...An({
|
|
224
224
|
mobile: null
|
|
225
225
|
}),
|
|
226
|
-
|
|
226
|
+
...Oe(),
|
|
227
227
|
...wl({
|
|
228
228
|
selectedClass: "v-slide-group-item--active"
|
|
229
229
|
})
|
|
230
|
-
}, "VSlideGroup"), ml =
|
|
230
|
+
}, "VSlideGroup"), ml = ie()({
|
|
231
231
|
name: "VSlideGroup",
|
|
232
232
|
props: Yl(),
|
|
233
233
|
emits: {
|
|
@@ -242,135 +242,135 @@ const Xl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Yl = Q({
|
|
|
242
242
|
} = At(), {
|
|
243
243
|
displayClasses: l,
|
|
244
244
|
mobile: i
|
|
245
|
-
} = Vl(e), c = xl(e, e.symbol), o =
|
|
245
|
+
} = Vl(e), c = xl(e, e.symbol), o = ee(!1), u = ee(0), d = ee(0), r = ee(0), s = I(() => e.direction === "horizontal"), {
|
|
246
246
|
resizeRef: m,
|
|
247
247
|
contentRect: v
|
|
248
248
|
} = It(), {
|
|
249
249
|
resizeRef: h,
|
|
250
250
|
contentRect: y
|
|
251
|
-
} = It(), V = aa(),
|
|
251
|
+
} = It(), V = aa(), P = I(() => ({
|
|
252
252
|
container: m.el,
|
|
253
253
|
duration: 200,
|
|
254
254
|
easing: "easeOutQuart"
|
|
255
|
-
})),
|
|
255
|
+
})), _ = I(() => c.selected.value.length ? c.items.value.findIndex((p) => p.id === c.selected.value[0]) : -1), S = I(() => c.selected.value.length ? c.items.value.findIndex((p) => p.id === c.selected.value[c.selected.value.length - 1]) : -1);
|
|
256
256
|
if (ct) {
|
|
257
257
|
let p = -1;
|
|
258
|
-
|
|
258
|
+
se(() => [c.selected.value, v.value, y.value, s.value], () => {
|
|
259
259
|
cancelAnimationFrame(p), p = requestAnimationFrame(() => {
|
|
260
260
|
if (v.value && y.value) {
|
|
261
261
|
const f = s.value ? "width" : "height";
|
|
262
262
|
d.value = v.value[f], r.value = y.value[f], o.value = d.value + 1 < r.value;
|
|
263
263
|
}
|
|
264
|
-
if (e.scrollToActive &&
|
|
265
|
-
const f = h.el.children[
|
|
266
|
-
|
|
264
|
+
if (e.scrollToActive && _.value >= 0 && h.el) {
|
|
265
|
+
const f = h.el.children[S.value];
|
|
266
|
+
E(f, e.centerActive);
|
|
267
267
|
}
|
|
268
268
|
});
|
|
269
269
|
});
|
|
270
270
|
}
|
|
271
|
-
const F =
|
|
272
|
-
function
|
|
273
|
-
let
|
|
274
|
-
f ?
|
|
271
|
+
const F = ee(!1);
|
|
272
|
+
function E(p, f) {
|
|
273
|
+
let A = 0;
|
|
274
|
+
f ? A = ua({
|
|
275
275
|
containerElement: m.el,
|
|
276
276
|
isHorizontal: s.value,
|
|
277
277
|
selectedElement: p
|
|
278
|
-
}) :
|
|
278
|
+
}) : A = ia({
|
|
279
279
|
containerElement: m.el,
|
|
280
280
|
isHorizontal: s.value,
|
|
281
281
|
isRtl: n.value,
|
|
282
282
|
selectedElement: p
|
|
283
|
-
}),
|
|
283
|
+
}), K(A);
|
|
284
284
|
}
|
|
285
|
-
function
|
|
285
|
+
function K(p) {
|
|
286
286
|
if (!ct || !m.el) return;
|
|
287
|
-
const f = ft(s.value, m.el),
|
|
287
|
+
const f = ft(s.value, m.el), A = ql(s.value, n.value, m.el);
|
|
288
288
|
if (!(fl(s.value, m.el) <= f || // Prevent scrolling by only a couple of pixels, which doesn't look smooth
|
|
289
|
-
Math.abs(p -
|
|
289
|
+
Math.abs(p - A) < 16)) {
|
|
290
290
|
if (s.value && n.value && m.el) {
|
|
291
291
|
const {
|
|
292
|
-
scrollWidth:
|
|
293
|
-
offsetWidth:
|
|
292
|
+
scrollWidth: ve,
|
|
293
|
+
offsetWidth: ge
|
|
294
294
|
} = m.el;
|
|
295
|
-
p =
|
|
295
|
+
p = ve - ge - p;
|
|
296
296
|
}
|
|
297
|
-
s.value ? V.horizontal(p,
|
|
297
|
+
s.value ? V.horizontal(p, P.value) : V(p, P.value);
|
|
298
298
|
}
|
|
299
299
|
}
|
|
300
|
-
function
|
|
300
|
+
function w(p) {
|
|
301
301
|
const {
|
|
302
302
|
scrollTop: f,
|
|
303
|
-
scrollLeft:
|
|
303
|
+
scrollLeft: A
|
|
304
304
|
} = p.target;
|
|
305
|
-
u.value = s.value ?
|
|
305
|
+
u.value = s.value ? A : f;
|
|
306
306
|
}
|
|
307
|
-
function
|
|
307
|
+
function C(p) {
|
|
308
308
|
if (F.value = !0, !(!o.value || !h.el)) {
|
|
309
309
|
for (const f of p.composedPath())
|
|
310
|
-
for (const
|
|
311
|
-
if (
|
|
312
|
-
|
|
310
|
+
for (const A of h.el.children)
|
|
311
|
+
if (A === f) {
|
|
312
|
+
E(A);
|
|
313
313
|
return;
|
|
314
314
|
}
|
|
315
315
|
}
|
|
316
316
|
}
|
|
317
|
-
function
|
|
317
|
+
function $(p) {
|
|
318
318
|
F.value = !1;
|
|
319
319
|
}
|
|
320
320
|
let D = !1;
|
|
321
|
-
function
|
|
322
|
-
!D && !F.value && !(p.relatedTarget && h.el?.contains(p.relatedTarget)) &&
|
|
321
|
+
function G(p) {
|
|
322
|
+
!D && !F.value && !(p.relatedTarget && h.el?.contains(p.relatedTarget)) && j(), D = !1;
|
|
323
323
|
}
|
|
324
|
-
function
|
|
324
|
+
function ne() {
|
|
325
325
|
D = !0;
|
|
326
326
|
}
|
|
327
327
|
function H(p) {
|
|
328
328
|
if (!h.el) return;
|
|
329
|
-
function f(
|
|
330
|
-
p.preventDefault(),
|
|
329
|
+
function f(A) {
|
|
330
|
+
p.preventDefault(), j(A);
|
|
331
331
|
}
|
|
332
332
|
s.value ? p.key === "ArrowRight" ? f(n.value ? "prev" : "next") : p.key === "ArrowLeft" && f(n.value ? "next" : "prev") : p.key === "ArrowDown" ? f("next") : p.key === "ArrowUp" && f("prev"), p.key === "Home" ? f("first") : p.key === "End" && f("last");
|
|
333
333
|
}
|
|
334
|
-
function
|
|
334
|
+
function W(p, f) {
|
|
335
335
|
if (!p) return;
|
|
336
|
-
let
|
|
336
|
+
let A = p;
|
|
337
337
|
do
|
|
338
|
-
|
|
339
|
-
while (
|
|
340
|
-
return
|
|
338
|
+
A = A?.[f === "next" ? "nextElementSibling" : "previousElementSibling"];
|
|
339
|
+
while (A?.hasAttribute("disabled"));
|
|
340
|
+
return A;
|
|
341
341
|
}
|
|
342
|
-
function
|
|
342
|
+
function j(p) {
|
|
343
343
|
if (!h.el) return;
|
|
344
344
|
let f;
|
|
345
345
|
if (!p)
|
|
346
346
|
f = Il(h.el)[0];
|
|
347
347
|
else if (p === "next") {
|
|
348
|
-
if (f =
|
|
348
|
+
if (f = W(h.el.querySelector(":focus"), p), !f) return j("first");
|
|
349
349
|
} else if (p === "prev") {
|
|
350
|
-
if (f =
|
|
351
|
-
} else p === "first" ? (f = h.el.firstElementChild, f?.hasAttribute("disabled") && (f =
|
|
350
|
+
if (f = W(h.el.querySelector(":focus"), p), !f) return j("last");
|
|
351
|
+
} else p === "first" ? (f = h.el.firstElementChild, f?.hasAttribute("disabled") && (f = W(f, "next"))) : p === "last" && (f = h.el.lastElementChild, f?.hasAttribute("disabled") && (f = W(f, "prev")));
|
|
352
352
|
f && f.focus({
|
|
353
353
|
preventScroll: !0
|
|
354
354
|
});
|
|
355
355
|
}
|
|
356
|
-
function
|
|
357
|
-
const f = s.value && n.value ? -1 : 1,
|
|
358
|
-
let
|
|
356
|
+
function ue(p) {
|
|
357
|
+
const f = s.value && n.value ? -1 : 1, A = (p === "prev" ? -f : f) * d.value;
|
|
358
|
+
let J = u.value + A;
|
|
359
359
|
if (s.value && n.value && m.el) {
|
|
360
360
|
const {
|
|
361
|
-
scrollWidth:
|
|
362
|
-
offsetWidth:
|
|
361
|
+
scrollWidth: ve,
|
|
362
|
+
offsetWidth: ge
|
|
363
363
|
} = m.el;
|
|
364
|
-
|
|
364
|
+
J += ve - ge;
|
|
365
365
|
}
|
|
366
|
-
|
|
366
|
+
K(J);
|
|
367
367
|
}
|
|
368
|
-
const
|
|
368
|
+
const q = I(() => ({
|
|
369
369
|
next: c.next,
|
|
370
370
|
prev: c.prev,
|
|
371
371
|
select: c.select,
|
|
372
372
|
isSelected: c.isSelected
|
|
373
|
-
})),
|
|
373
|
+
})), z = I(() => o.value || Math.abs(u.value) > 0), fe = I(() => {
|
|
374
374
|
switch (e.showArrows) {
|
|
375
375
|
case "never":
|
|
376
376
|
return !1;
|
|
@@ -383,75 +383,75 @@ const Xl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Yl = Q({
|
|
|
383
383
|
// Show arrows on mobile when overflowing.
|
|
384
384
|
// This matches the default 2.2 behavior
|
|
385
385
|
case !0:
|
|
386
|
-
return
|
|
386
|
+
return z.value;
|
|
387
387
|
// Always show on mobile
|
|
388
388
|
case "mobile":
|
|
389
|
-
return i.value ||
|
|
389
|
+
return i.value || z.value;
|
|
390
390
|
// https://material.io/components/tabs#scrollable-tabs
|
|
391
391
|
// Always show arrows when
|
|
392
392
|
// overflowed on desktop
|
|
393
393
|
default:
|
|
394
|
-
return !i.value &&
|
|
394
|
+
return !i.value && z.value;
|
|
395
395
|
}
|
|
396
|
-
}),
|
|
397
|
-
if (!m.value || !
|
|
396
|
+
}), B = I(() => Math.abs(u.value) > 1), O = I(() => {
|
|
397
|
+
if (!m.value || !z.value) return !1;
|
|
398
398
|
const p = fl(s.value, m.el), f = sa(s.value, m.el);
|
|
399
399
|
return p - f - Math.abs(u.value) > 1;
|
|
400
400
|
});
|
|
401
|
-
return
|
|
402
|
-
class:
|
|
401
|
+
return de(() => g(e.tag, {
|
|
402
|
+
class: re(["v-slide-group", {
|
|
403
403
|
"v-slide-group--vertical": !s.value,
|
|
404
|
-
"v-slide-group--has-affixes":
|
|
404
|
+
"v-slide-group--has-affixes": fe.value,
|
|
405
405
|
"v-slide-group--is-overflowing": o.value
|
|
406
406
|
}, l.value, e.class]),
|
|
407
|
-
style:
|
|
407
|
+
style: xe(e.style),
|
|
408
408
|
tabindex: F.value || c.selected.value.length ? -1 : 0,
|
|
409
|
-
onFocus:
|
|
409
|
+
onFocus: G
|
|
410
410
|
}, {
|
|
411
|
-
default: () => [
|
|
411
|
+
default: () => [fe.value && b("div", {
|
|
412
412
|
key: "prev",
|
|
413
|
-
class:
|
|
414
|
-
"v-slide-group__prev--disabled": !
|
|
413
|
+
class: re(["v-slide-group__prev", {
|
|
414
|
+
"v-slide-group__prev--disabled": !B.value
|
|
415
415
|
}]),
|
|
416
|
-
onMousedown:
|
|
417
|
-
onClick: () =>
|
|
418
|
-
}, [t.prev?.(
|
|
419
|
-
default: () => [g(
|
|
416
|
+
onMousedown: ne,
|
|
417
|
+
onClick: () => B.value && ue("prev")
|
|
418
|
+
}, [t.prev?.(q.value) ?? g(sl, null, {
|
|
419
|
+
default: () => [g(ke, {
|
|
420
420
|
icon: n.value ? e.nextIcon : e.prevIcon
|
|
421
421
|
}, null)]
|
|
422
422
|
})]), b("div", {
|
|
423
423
|
key: "container",
|
|
424
424
|
ref: m,
|
|
425
|
-
class:
|
|
426
|
-
onScroll:
|
|
425
|
+
class: re(["v-slide-group__container", e.contentClass]),
|
|
426
|
+
onScroll: w
|
|
427
427
|
}, [b("div", {
|
|
428
428
|
ref: h,
|
|
429
429
|
class: "v-slide-group__content",
|
|
430
|
-
onFocusin:
|
|
431
|
-
onFocusout:
|
|
430
|
+
onFocusin: C,
|
|
431
|
+
onFocusout: $,
|
|
432
432
|
onKeydown: H
|
|
433
|
-
}, [t.default?.(
|
|
433
|
+
}, [t.default?.(q.value)])]), fe.value && b("div", {
|
|
434
434
|
key: "next",
|
|
435
|
-
class:
|
|
436
|
-
"v-slide-group__next--disabled":
|
|
435
|
+
class: re(["v-slide-group__next", {
|
|
436
|
+
"v-slide-group__next--disabled": !O.value
|
|
437
437
|
}]),
|
|
438
|
-
onMousedown:
|
|
439
|
-
onClick: () =>
|
|
440
|
-
}, [t.next?.(
|
|
441
|
-
default: () => [g(
|
|
438
|
+
onMousedown: ne,
|
|
439
|
+
onClick: () => O.value && ue("next")
|
|
440
|
+
}, [t.next?.(q.value) ?? g(sl, null, {
|
|
441
|
+
default: () => [g(ke, {
|
|
442
442
|
icon: n.value ? e.prevIcon : e.nextIcon
|
|
443
443
|
}, null)]
|
|
444
444
|
})])]
|
|
445
445
|
})), {
|
|
446
446
|
selected: c.selected,
|
|
447
|
-
scrollTo:
|
|
447
|
+
scrollTo: ue,
|
|
448
448
|
scrollOffset: u,
|
|
449
|
-
focus:
|
|
450
|
-
hasPrev:
|
|
451
|
-
hasNext:
|
|
449
|
+
focus: j,
|
|
450
|
+
hasPrev: B,
|
|
451
|
+
hasNext: O
|
|
452
452
|
};
|
|
453
453
|
}
|
|
454
|
-
}), Ql = /* @__PURE__ */ Symbol.for("vuetify:v-chip-group"), ra =
|
|
454
|
+
}), Ql = /* @__PURE__ */ Symbol.for("vuetify:v-chip-group"), ra = X({
|
|
455
455
|
baseColor: String,
|
|
456
456
|
column: Boolean,
|
|
457
457
|
filter: Boolean,
|
|
@@ -466,12 +466,12 @@ const Xl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Yl = Q({
|
|
|
466
466
|
...wl({
|
|
467
467
|
selectedClass: "v-chip--selected"
|
|
468
468
|
}),
|
|
469
|
-
|
|
470
|
-
...
|
|
469
|
+
...Oe(),
|
|
470
|
+
...He(),
|
|
471
471
|
...Jt({
|
|
472
472
|
variant: "tonal"
|
|
473
473
|
})
|
|
474
|
-
}, "VChipGroup"), ca =
|
|
474
|
+
}, "VChipGroup"), ca = ie()({
|
|
475
475
|
name: "VChipGroup",
|
|
476
476
|
props: ra(),
|
|
477
477
|
emits: {
|
|
@@ -492,13 +492,13 @@ const Xl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Yl = Q({
|
|
|
492
492
|
} = xl(e, Ql);
|
|
493
493
|
return qt({
|
|
494
494
|
VChip: {
|
|
495
|
-
baseColor:
|
|
496
|
-
color:
|
|
497
|
-
disabled:
|
|
498
|
-
filter:
|
|
499
|
-
variant:
|
|
495
|
+
baseColor: R(() => e.baseColor),
|
|
496
|
+
color: R(() => e.color),
|
|
497
|
+
disabled: R(() => e.disabled),
|
|
498
|
+
filter: R(() => e.filter),
|
|
499
|
+
variant: R(() => e.variant)
|
|
500
500
|
}
|
|
501
|
-
}),
|
|
501
|
+
}), de(() => {
|
|
502
502
|
const d = ml.filterProps(e);
|
|
503
503
|
return g(ml, N(d, {
|
|
504
504
|
class: ["v-chip-group", {
|
|
@@ -516,7 +516,7 @@ const Xl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Yl = Q({
|
|
|
516
516
|
});
|
|
517
517
|
}), {};
|
|
518
518
|
}
|
|
519
|
-
}), da =
|
|
519
|
+
}), da = X({
|
|
520
520
|
activeClass: String,
|
|
521
521
|
appendAvatar: String,
|
|
522
522
|
appendIcon: ye,
|
|
@@ -556,8 +556,8 @@ const Xl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Yl = Q({
|
|
|
556
556
|
type: Boolean,
|
|
557
557
|
default: !0
|
|
558
558
|
},
|
|
559
|
-
onClick:
|
|
560
|
-
onClickOnce:
|
|
559
|
+
onClick: Le(),
|
|
560
|
+
onClickOnce: Le(),
|
|
561
561
|
...Zt(),
|
|
562
562
|
...he(),
|
|
563
563
|
...ht(),
|
|
@@ -566,14 +566,14 @@ const Xl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Yl = Q({
|
|
|
566
566
|
...yt(),
|
|
567
567
|
...Dl(),
|
|
568
568
|
...Dn(),
|
|
569
|
-
|
|
569
|
+
...Oe({
|
|
570
570
|
tag: "span"
|
|
571
571
|
}),
|
|
572
|
-
...
|
|
572
|
+
...He(),
|
|
573
573
|
...Jt({
|
|
574
574
|
variant: "tonal"
|
|
575
575
|
})
|
|
576
|
-
}, "VChip"), mt =
|
|
576
|
+
}, "VChip"), mt = ie()({
|
|
577
577
|
name: "VChip",
|
|
578
578
|
directives: {
|
|
579
579
|
vRipple: lt
|
|
@@ -605,52 +605,52 @@ const Xl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Yl = Q({
|
|
|
605
605
|
sizeClasses: r
|
|
606
606
|
} = Fn(e), {
|
|
607
607
|
themeClasses: s
|
|
608
|
-
} = ot(e), m =
|
|
608
|
+
} = ot(e), m = Ve(e, "modelValue"), v = rl(e, Ql, !1), h = rl(e, Xl, !1), y = Pl(e, t), V = R(() => e.link !== !1 && y.isLink.value), P = I(() => !e.disabled && e.link !== !1 && (!!v || e.link || y.isClickable.value)), _ = R(() => ({
|
|
609
609
|
"aria-label": i(e.closeLabel),
|
|
610
610
|
disabled: e.disabled,
|
|
611
|
-
onClick(
|
|
612
|
-
|
|
611
|
+
onClick(C) {
|
|
612
|
+
C.preventDefault(), C.stopPropagation(), m.value = !1, n("click:close", C);
|
|
613
613
|
}
|
|
614
614
|
}));
|
|
615
|
-
|
|
616
|
-
|
|
615
|
+
se(m, (C) => {
|
|
616
|
+
C ? (v?.register(), h?.register()) : (v?.unregister(), h?.unregister());
|
|
617
617
|
});
|
|
618
618
|
const {
|
|
619
|
-
colorClasses:
|
|
619
|
+
colorClasses: S,
|
|
620
620
|
colorStyles: F,
|
|
621
|
-
variantClasses:
|
|
621
|
+
variantClasses: E
|
|
622
622
|
} = _l(() => ({
|
|
623
623
|
color: !v || v.isSelected.value ? e.color ?? e.baseColor : e.baseColor,
|
|
624
624
|
variant: e.variant
|
|
625
625
|
}));
|
|
626
|
-
function
|
|
627
|
-
n("click",
|
|
626
|
+
function K(C) {
|
|
627
|
+
n("click", C), P.value && (y.navigate.value?.(C), v?.toggle());
|
|
628
628
|
}
|
|
629
|
-
function
|
|
630
|
-
(
|
|
629
|
+
function w(C) {
|
|
630
|
+
(C.key === "Enter" || C.key === " ") && (C.preventDefault(), K(C));
|
|
631
631
|
}
|
|
632
632
|
return () => {
|
|
633
|
-
const
|
|
634
|
-
return m.value &&
|
|
633
|
+
const C = y.isLink.value ? "a" : e.tag, $ = !!(e.appendIcon || e.appendAvatar), D = !!($ || l.append), G = !!(l.close || e.closable), ne = !!(l.filter || e.filter) && v, H = !!(e.prependIcon || e.prependAvatar), W = !!(H || l.prepend);
|
|
634
|
+
return m.value && Ue(g(C, N(y.linkProps, {
|
|
635
635
|
class: ["v-chip", {
|
|
636
636
|
"v-chip--disabled": e.disabled,
|
|
637
637
|
"v-chip--label": e.label,
|
|
638
|
-
"v-chip--link":
|
|
639
|
-
"v-chip--filter":
|
|
638
|
+
"v-chip--link": P.value,
|
|
639
|
+
"v-chip--filter": ne,
|
|
640
640
|
"v-chip--pill": e.pill,
|
|
641
641
|
[`${e.activeClass}`]: e.activeClass && y.isActive?.value
|
|
642
|
-
}, s.value, c.value,
|
|
642
|
+
}, s.value, c.value, S.value, o.value, u.value, d.value, r.value, E.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,
|
|
646
|
-
tabindex:
|
|
647
|
-
onClick:
|
|
648
|
-
onKeydown:
|
|
646
|
+
tabindex: P.value ? 0 : void 0,
|
|
647
|
+
onClick: K,
|
|
648
|
+
onKeydown: P.value && !V.value && w
|
|
649
649
|
}), {
|
|
650
|
-
default: () => [Al(
|
|
650
|
+
default: () => [Al(P.value, "v-chip"), ne && g(Fl, {
|
|
651
651
|
key: "filter"
|
|
652
652
|
}, {
|
|
653
|
-
default: () => [
|
|
653
|
+
default: () => [Ue(b("div", {
|
|
654
654
|
class: "v-chip__filter"
|
|
655
655
|
}, [l.filter ? g(Fe, {
|
|
656
656
|
key: "filter-defaults",
|
|
@@ -660,11 +660,11 @@ const Xl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Yl = Q({
|
|
|
660
660
|
icon: e.filterIcon
|
|
661
661
|
}
|
|
662
662
|
}
|
|
663
|
-
}, l.filter) : g(
|
|
663
|
+
}, l.filter) : g(ke, {
|
|
664
664
|
key: "filter-icon",
|
|
665
665
|
icon: e.filterIcon
|
|
666
666
|
}, null)]), [[Pt, v.isSelected.value]])]
|
|
667
|
-
}),
|
|
667
|
+
}), W && b("div", {
|
|
668
668
|
key: "prepend",
|
|
669
669
|
class: "v-chip__prepend"
|
|
670
670
|
}, [l.prepend ? g(Fe, {
|
|
@@ -680,7 +680,7 @@ const Xl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Yl = Q({
|
|
|
680
680
|
start: !0
|
|
681
681
|
}
|
|
682
682
|
}
|
|
683
|
-
}, l.prepend) : b(
|
|
683
|
+
}, l.prepend) : b(ce, null, [e.prependIcon && g(ke, {
|
|
684
684
|
key: "prepend-icon",
|
|
685
685
|
icon: e.prependIcon,
|
|
686
686
|
start: !0
|
|
@@ -703,7 +703,7 @@ const Xl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Yl = Q({
|
|
|
703
703
|
class: "v-chip__append"
|
|
704
704
|
}, [l.append ? g(Fe, {
|
|
705
705
|
key: "append-defaults",
|
|
706
|
-
disabled:
|
|
706
|
+
disabled: !$,
|
|
707
707
|
defaults: {
|
|
708
708
|
VAvatar: {
|
|
709
709
|
end: !0,
|
|
@@ -714,7 +714,7 @@ const Xl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Yl = Q({
|
|
|
714
714
|
icon: e.appendIcon
|
|
715
715
|
}
|
|
716
716
|
}
|
|
717
|
-
}, l.append) : b(
|
|
717
|
+
}, l.append) : b(ce, null, [e.appendIcon && g(ke, {
|
|
718
718
|
key: "append-icon",
|
|
719
719
|
end: !0,
|
|
720
720
|
icon: e.appendIcon
|
|
@@ -722,12 +722,12 @@ const Xl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Yl = Q({
|
|
|
722
722
|
key: "append-avatar",
|
|
723
723
|
end: !0,
|
|
724
724
|
image: e.appendAvatar
|
|
725
|
-
}, null)])]),
|
|
725
|
+
}, null)])]), G && b("button", N({
|
|
726
726
|
key: "close",
|
|
727
727
|
class: "v-chip__close",
|
|
728
728
|
type: "button",
|
|
729
729
|
"data-testid": "close-chip"
|
|
730
|
-
},
|
|
730
|
+
}, _.value), [l.close ? g(Fe, {
|
|
731
731
|
key: "close-defaults",
|
|
732
732
|
defaults: {
|
|
733
733
|
VIcon: {
|
|
@@ -735,15 +735,15 @@ const Xl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Yl = Q({
|
|
|
735
735
|
size: "x-small"
|
|
736
736
|
}
|
|
737
737
|
}
|
|
738
|
-
}, l.close) : g(
|
|
738
|
+
}, l.close) : g(ke, {
|
|
739
739
|
key: "close-icon",
|
|
740
740
|
icon: e.closeIcon,
|
|
741
741
|
size: "x-small"
|
|
742
742
|
}, null)])]
|
|
743
|
-
}), [[lt,
|
|
743
|
+
}), [[lt, P.value && e.ripple, null]]);
|
|
744
744
|
};
|
|
745
745
|
}
|
|
746
|
-
}), va =
|
|
746
|
+
}), va = X({
|
|
747
747
|
color: String,
|
|
748
748
|
...Zt(),
|
|
749
749
|
...he(),
|
|
@@ -752,9 +752,9 @@ const Xl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Yl = Q({
|
|
|
752
752
|
...tl(),
|
|
753
753
|
...Bl(),
|
|
754
754
|
...yt(),
|
|
755
|
-
|
|
756
|
-
...
|
|
757
|
-
}, "VSheet"), ol =
|
|
755
|
+
...Oe(),
|
|
756
|
+
...He()
|
|
757
|
+
}, "VSheet"), ol = ie()({
|
|
758
758
|
name: "VSheet",
|
|
759
759
|
props: va(),
|
|
760
760
|
setup(e, a) {
|
|
@@ -779,9 +779,9 @@ const Xl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Yl = Q({
|
|
|
779
779
|
} = Tl(e), {
|
|
780
780
|
roundedClasses: s
|
|
781
781
|
} = gt(e);
|
|
782
|
-
return
|
|
783
|
-
class:
|
|
784
|
-
style:
|
|
782
|
+
return de(() => g(e.tag, {
|
|
783
|
+
class: re(["v-sheet", n.value, l.value, c.value, u.value, r.value, s.value, e.class]),
|
|
784
|
+
style: xe([i.value, o.value, d.value, e.style])
|
|
785
785
|
}, t)), {};
|
|
786
786
|
}
|
|
787
787
|
}), fa = {
|
|
@@ -792,12 +792,12 @@ const Xl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Yl = Q({
|
|
|
792
792
|
},
|
|
793
793
|
emits: /* @__PURE__ */ Wt("save", ["update:modelValue"]),
|
|
794
794
|
setup(e, { emit: a }) {
|
|
795
|
-
const { advancedFiltersState: t } = Rt(), n =
|
|
795
|
+
const { advancedFiltersState: t } = Rt(), n = _e("table_props"), l = _t(e, "modelValue"), i = (u, d) => {
|
|
796
796
|
const r = n.headers.find((h) => (h.advancedFilter?.key ?? h.key) === d), s = u.comparison === "=" ? ":" : " " + u.comparison, m = Array.isArray(u.value) ? u.value : [u.value], v = m.filter((h, y) => !(r.advancedFilter?.component === "datepicker" && y !== 0 && y !== m.length - 1)).map((h) => {
|
|
797
797
|
const y = r.advancedFilter?.options?.items ?? [];
|
|
798
|
-
let V = h,
|
|
799
|
-
return y.length && (
|
|
800
|
-
item:
|
|
798
|
+
let V = h, P;
|
|
799
|
+
return y.length && (P = y.find((_) => _.value === h), P && (V = P.title)), typeof r.advancedFilter?.valueFormatter == "function" && (V = r.advancedFilter.valueFormatter({
|
|
800
|
+
item: P,
|
|
801
801
|
value: h
|
|
802
802
|
})), V;
|
|
803
803
|
});
|
|
@@ -805,11 +805,11 @@ const Xl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Yl = Q({
|
|
|
805
805
|
}, c = (u) => {
|
|
806
806
|
l.value[u] = { comparison: "=", value: null }, o("save");
|
|
807
807
|
}, o = a;
|
|
808
|
-
return (u, d) => (
|
|
809
|
-
default:
|
|
808
|
+
return (u, d) => (oe(), pe(ol, null, {
|
|
809
|
+
default: Ce(() => [
|
|
810
810
|
g(ca, null, {
|
|
811
|
-
default:
|
|
812
|
-
(
|
|
811
|
+
default: Ce(() => [
|
|
812
|
+
(oe(!0), Ke(ce, null, Gt(L(t), (r, s) => (oe(), pe(mt, {
|
|
813
813
|
key: s,
|
|
814
814
|
class: "my-0",
|
|
815
815
|
text: i(r, s),
|
|
@@ -825,27 +825,27 @@ const Xl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Yl = Q({
|
|
|
825
825
|
_: 1
|
|
826
826
|
}));
|
|
827
827
|
}
|
|
828
|
-
}, ma =
|
|
828
|
+
}, ma = X({
|
|
829
829
|
text: String,
|
|
830
|
-
onClick:
|
|
830
|
+
onClick: Le(),
|
|
831
831
|
...he(),
|
|
832
|
-
...
|
|
833
|
-
}, "VLabel"), Zl =
|
|
832
|
+
...He()
|
|
833
|
+
}, "VLabel"), Zl = ie()({
|
|
834
834
|
name: "VLabel",
|
|
835
835
|
props: ma(),
|
|
836
836
|
setup(e, a) {
|
|
837
837
|
let {
|
|
838
838
|
slots: t
|
|
839
839
|
} = a;
|
|
840
|
-
return
|
|
841
|
-
class:
|
|
840
|
+
return de(() => b("label", {
|
|
841
|
+
class: re(["v-label", {
|
|
842
842
|
"v-label--clickable": !!e.onClick
|
|
843
843
|
}, e.class]),
|
|
844
|
-
style:
|
|
844
|
+
style: xe(e.style),
|
|
845
845
|
onClick: e.onClick
|
|
846
846
|
}, [e.text, t.default?.()])), {};
|
|
847
847
|
}
|
|
848
|
-
}), en = /* @__PURE__ */ Symbol.for("vuetify:selection-control-group"), tn =
|
|
848
|
+
}), en = /* @__PURE__ */ Symbol.for("vuetify:selection-control-group"), tn = X({
|
|
849
849
|
color: String,
|
|
850
850
|
disabled: {
|
|
851
851
|
type: Boolean,
|
|
@@ -878,13 +878,13 @@ const Xl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Yl = Q({
|
|
|
878
878
|
},
|
|
879
879
|
...he(),
|
|
880
880
|
...ht(),
|
|
881
|
-
...
|
|
882
|
-
}, "SelectionControlGroup"), ga =
|
|
881
|
+
...He()
|
|
882
|
+
}, "SelectionControlGroup"), ga = X({
|
|
883
883
|
...tn({
|
|
884
884
|
defaultsTarget: "VSelectionControl"
|
|
885
885
|
})
|
|
886
886
|
}, "VSelectionControlGroup");
|
|
887
|
-
|
|
887
|
+
ie()({
|
|
888
888
|
name: "VSelectionControlGroup",
|
|
889
889
|
props: ga(),
|
|
890
890
|
emits: {
|
|
@@ -894,7 +894,7 @@ oe()({
|
|
|
894
894
|
let {
|
|
895
895
|
slots: t
|
|
896
896
|
} = a;
|
|
897
|
-
const n =
|
|
897
|
+
const n = Ve(e, "modelValue"), l = Xe(), i = R(() => e.id || `v-selection-control-group-${l}`), c = R(() => e.name || i.value), o = /* @__PURE__ */ new Set();
|
|
898
898
|
return We(en, {
|
|
899
899
|
modelValue: n,
|
|
900
900
|
forceUpdate: () => {
|
|
@@ -907,31 +907,31 @@ oe()({
|
|
|
907
907
|
}
|
|
908
908
|
}), qt({
|
|
909
909
|
[e.defaultsTarget]: {
|
|
910
|
-
color:
|
|
911
|
-
disabled:
|
|
912
|
-
density:
|
|
913
|
-
error:
|
|
914
|
-
inline:
|
|
910
|
+
color: R(() => e.color),
|
|
911
|
+
disabled: R(() => e.disabled),
|
|
912
|
+
density: R(() => e.density),
|
|
913
|
+
error: R(() => e.error),
|
|
914
|
+
inline: R(() => e.inline),
|
|
915
915
|
modelValue: n,
|
|
916
|
-
multiple:
|
|
916
|
+
multiple: R(() => !!e.multiple || e.multiple == null && Array.isArray(n.value)),
|
|
917
917
|
name: c,
|
|
918
|
-
falseIcon:
|
|
919
|
-
trueIcon:
|
|
920
|
-
readonly:
|
|
921
|
-
ripple:
|
|
922
|
-
type:
|
|
923
|
-
valueComparator:
|
|
918
|
+
falseIcon: R(() => e.falseIcon),
|
|
919
|
+
trueIcon: R(() => e.trueIcon),
|
|
920
|
+
readonly: R(() => e.readonly),
|
|
921
|
+
ripple: R(() => e.ripple),
|
|
922
|
+
type: R(() => e.type),
|
|
923
|
+
valueComparator: R(() => e.valueComparator)
|
|
924
924
|
}
|
|
925
|
-
}),
|
|
926
|
-
class:
|
|
925
|
+
}), de(() => b("div", {
|
|
926
|
+
class: re(["v-selection-control-group", {
|
|
927
927
|
"v-selection-control-group--inline": e.inline
|
|
928
928
|
}, e.class]),
|
|
929
|
-
style:
|
|
929
|
+
style: xe(e.style),
|
|
930
930
|
role: e.type === "radio" ? "radiogroup" : void 0
|
|
931
931
|
}, [t.default?.()])), {};
|
|
932
932
|
}
|
|
933
933
|
});
|
|
934
|
-
const ln =
|
|
934
|
+
const ln = X({
|
|
935
935
|
label: String,
|
|
936
936
|
baseColor: String,
|
|
937
937
|
trueValue: null,
|
|
@@ -941,18 +941,18 @@ const ln = Q({
|
|
|
941
941
|
...tn()
|
|
942
942
|
}, "VSelectionControl");
|
|
943
943
|
function ya(e) {
|
|
944
|
-
const a =
|
|
944
|
+
const a = _e(en, void 0), {
|
|
945
945
|
densityClasses: t
|
|
946
|
-
} = Ft(e), n =
|
|
946
|
+
} = Ft(e), n = Ve(e, "modelValue"), l = I(() => e.trueValue !== void 0 ? e.trueValue : e.value !== void 0 ? e.value : !0), i = I(() => e.falseValue !== void 0 ? e.falseValue : !1), c = I(() => !!e.multiple || e.multiple == null && Array.isArray(n.value)), o = I({
|
|
947
947
|
get() {
|
|
948
948
|
const v = a ? a.modelValue.value : n.value;
|
|
949
|
-
return c.value ?
|
|
949
|
+
return c.value ? Te(v).some((h) => e.valueComparator(h, l.value)) : e.valueComparator(v, l.value);
|
|
950
950
|
},
|
|
951
951
|
set(v) {
|
|
952
952
|
if (e.readonly) return;
|
|
953
953
|
const h = v ? l.value : i.value;
|
|
954
954
|
let y = h;
|
|
955
|
-
c.value && (y = v ? [...
|
|
955
|
+
c.value && (y = v ? [...Te(n.value), h] : Te(n.value).filter((V) => !e.valueComparator(V, l.value))), a ? a.modelValue.value = y : n.value = y;
|
|
956
956
|
}
|
|
957
957
|
}), {
|
|
958
958
|
textColorClasses: u,
|
|
@@ -963,7 +963,7 @@ function ya(e) {
|
|
|
963
963
|
}), {
|
|
964
964
|
backgroundColorClasses: r,
|
|
965
965
|
backgroundColorStyles: s
|
|
966
|
-
} = Dt(() => o.value && !e.error && !e.disabled ? e.color : e.baseColor), m =
|
|
966
|
+
} = Dt(() => o.value && !e.error && !e.disabled ? e.color : e.baseColor), m = I(() => o.value ? e.trueIcon : e.falseIcon);
|
|
967
967
|
return {
|
|
968
968
|
group: a,
|
|
969
969
|
densityClasses: t,
|
|
@@ -977,7 +977,7 @@ function ya(e) {
|
|
|
977
977
|
icon: m
|
|
978
978
|
};
|
|
979
979
|
}
|
|
980
|
-
const gl =
|
|
980
|
+
const gl = ie()({
|
|
981
981
|
name: "VSelectionControl",
|
|
982
982
|
directives: {
|
|
983
983
|
vRipple: lt
|
|
@@ -1002,47 +1002,47 @@ const gl = oe()({
|
|
|
1002
1002
|
backgroundColorClasses: r,
|
|
1003
1003
|
backgroundColorStyles: s,
|
|
1004
1004
|
trueValue: m
|
|
1005
|
-
} = ya(e), v = Xe(), h =
|
|
1005
|
+
} = ya(e), v = Xe(), h = ee(!1), y = ee(!1), V = U(), P = R(() => e.id || `input-${v}`), _ = R(() => !e.disabled && !e.readonly);
|
|
1006
1006
|
l?.onForceUpdate(() => {
|
|
1007
1007
|
V.value && (V.value.checked = o.value);
|
|
1008
1008
|
});
|
|
1009
|
-
function
|
|
1010
|
-
|
|
1009
|
+
function S(w) {
|
|
1010
|
+
_.value && (h.value = !0, dt(w.target, ":focus-visible") !== !1 && (y.value = !0));
|
|
1011
1011
|
}
|
|
1012
1012
|
function F() {
|
|
1013
1013
|
h.value = !1, y.value = !1;
|
|
1014
1014
|
}
|
|
1015
|
-
function
|
|
1016
|
-
|
|
1015
|
+
function E(w) {
|
|
1016
|
+
w.stopPropagation();
|
|
1017
1017
|
}
|
|
1018
|
-
function
|
|
1019
|
-
if (!
|
|
1018
|
+
function K(w) {
|
|
1019
|
+
if (!_.value) {
|
|
1020
1020
|
V.value && (V.value.checked = o.value);
|
|
1021
1021
|
return;
|
|
1022
1022
|
}
|
|
1023
|
-
e.readonly && l &&
|
|
1023
|
+
e.readonly && l && Se(() => l.forceUpdate()), o.value = w.target.checked;
|
|
1024
1024
|
}
|
|
1025
|
-
return
|
|
1026
|
-
const
|
|
1025
|
+
return de(() => {
|
|
1026
|
+
const w = n.label ? n.label({
|
|
1027
1027
|
label: e.label,
|
|
1028
1028
|
props: {
|
|
1029
|
-
for:
|
|
1029
|
+
for: P.value
|
|
1030
1030
|
}
|
|
1031
|
-
}) : e.label, [
|
|
1031
|
+
}) : e.label, [C, $] = Rl(t), D = b("input", N({
|
|
1032
1032
|
ref: V,
|
|
1033
1033
|
checked: o.value,
|
|
1034
1034
|
disabled: !!e.disabled,
|
|
1035
|
-
id:
|
|
1035
|
+
id: P.value,
|
|
1036
1036
|
onBlur: F,
|
|
1037
|
-
onFocus:
|
|
1038
|
-
onInput:
|
|
1037
|
+
onFocus: S,
|
|
1038
|
+
onInput: K,
|
|
1039
1039
|
"aria-disabled": !!e.disabled,
|
|
1040
1040
|
"aria-label": e.label,
|
|
1041
1041
|
type: e.type,
|
|
1042
1042
|
value: m.value,
|
|
1043
1043
|
name: e.name,
|
|
1044
1044
|
"aria-checked": e.type === "checkbox" ? o.value : void 0
|
|
1045
|
-
},
|
|
1045
|
+
}, $), null);
|
|
1046
1046
|
return b("div", N({
|
|
1047
1047
|
class: ["v-selection-control", {
|
|
1048
1048
|
"v-selection-control--dirty": o.value,
|
|
@@ -1052,16 +1052,16 @@ const gl = oe()({
|
|
|
1052
1052
|
"v-selection-control--focus-visible": y.value,
|
|
1053
1053
|
"v-selection-control--inline": e.inline
|
|
1054
1054
|
}, i.value, e.class]
|
|
1055
|
-
},
|
|
1055
|
+
}, C, {
|
|
1056
1056
|
style: e.style
|
|
1057
1057
|
}), [b("div", {
|
|
1058
|
-
class:
|
|
1059
|
-
style:
|
|
1058
|
+
class: re(["v-selection-control__wrapper", u.value]),
|
|
1059
|
+
style: xe(d.value)
|
|
1060
1060
|
}, [n.default?.({
|
|
1061
1061
|
backgroundColorClasses: r,
|
|
1062
1062
|
backgroundColorStyles: s
|
|
1063
|
-
}),
|
|
1064
|
-
class:
|
|
1063
|
+
}), Ue(b("div", {
|
|
1064
|
+
class: re(["v-selection-control__input"])
|
|
1065
1065
|
}, [n.input?.({
|
|
1066
1066
|
model: o,
|
|
1067
1067
|
textColorClasses: u,
|
|
@@ -1071,28 +1071,28 @@ const gl = oe()({
|
|
|
1071
1071
|
inputNode: D,
|
|
1072
1072
|
icon: c.value,
|
|
1073
1073
|
props: {
|
|
1074
|
-
onFocus:
|
|
1074
|
+
onFocus: S,
|
|
1075
1075
|
onBlur: F,
|
|
1076
|
-
id:
|
|
1076
|
+
id: P.value
|
|
1077
1077
|
}
|
|
1078
|
-
}) ?? b(
|
|
1078
|
+
}) ?? b(ce, null, [c.value && g(ke, {
|
|
1079
1079
|
key: "icon",
|
|
1080
1080
|
icon: c.value
|
|
1081
1081
|
}, null), D])]), [[lt, !e.disabled && !e.readonly && e.ripple, null, {
|
|
1082
1082
|
center: !0,
|
|
1083
1083
|
circle: !0
|
|
1084
|
-
}]])]),
|
|
1085
|
-
for:
|
|
1086
|
-
onClick:
|
|
1084
|
+
}]])]), w && g(Zl, {
|
|
1085
|
+
for: P.value,
|
|
1086
|
+
onClick: E
|
|
1087
1087
|
}, {
|
|
1088
|
-
default: () => [
|
|
1088
|
+
default: () => [w]
|
|
1089
1089
|
})]);
|
|
1090
1090
|
}), {
|
|
1091
1091
|
isFocused: h,
|
|
1092
1092
|
input: V
|
|
1093
1093
|
};
|
|
1094
1094
|
}
|
|
1095
|
-
}), ha =
|
|
1095
|
+
}), ha = X({
|
|
1096
1096
|
indeterminate: Boolean,
|
|
1097
1097
|
indeterminateIcon: {
|
|
1098
1098
|
type: ye,
|
|
@@ -1102,7 +1102,7 @@ const gl = oe()({
|
|
|
1102
1102
|
falseIcon: "$checkboxOff",
|
|
1103
1103
|
trueIcon: "$checkboxOn"
|
|
1104
1104
|
})
|
|
1105
|
-
}, "VCheckboxBtn"), nn =
|
|
1105
|
+
}, "VCheckboxBtn"), nn = ie()({
|
|
1106
1106
|
name: "VCheckboxBtn",
|
|
1107
1107
|
props: ha(),
|
|
1108
1108
|
emits: {
|
|
@@ -1113,12 +1113,12 @@ const gl = oe()({
|
|
|
1113
1113
|
let {
|
|
1114
1114
|
slots: t
|
|
1115
1115
|
} = a;
|
|
1116
|
-
const n =
|
|
1116
|
+
const n = Ve(e, "indeterminate"), l = Ve(e, "modelValue");
|
|
1117
1117
|
function i(u) {
|
|
1118
1118
|
n.value && (n.value = !1);
|
|
1119
1119
|
}
|
|
1120
|
-
const c =
|
|
1121
|
-
return
|
|
1120
|
+
const c = R(() => n.value ? e.indeterminateIcon : e.falseIcon), o = R(() => n.value ? e.indeterminateIcon : e.trueIcon);
|
|
1121
|
+
return de(() => {
|
|
1122
1122
|
const u = Ye(gl.filterProps(e), ["modelValue"]);
|
|
1123
1123
|
return g(gl, N(u, {
|
|
1124
1124
|
modelValue: l.value,
|
|
@@ -1154,7 +1154,7 @@ function Et(e) {
|
|
|
1154
1154
|
s.key !== "Enter" && s.key !== " " || (s.preventDefault(), s.stopPropagation(), El(u, new PointerEvent("click", s)));
|
|
1155
1155
|
}
|
|
1156
1156
|
const r = u && o ? a(`$vuetify.input.${o}`, e.label ?? "") : void 0;
|
|
1157
|
-
return g(
|
|
1157
|
+
return g(ke, N({
|
|
1158
1158
|
icon: e[`${l}Icon`],
|
|
1159
1159
|
"aria-label": r,
|
|
1160
1160
|
onClick: u,
|
|
@@ -1166,7 +1166,7 @@ function Et(e) {
|
|
|
1166
1166
|
InputIcon: t
|
|
1167
1167
|
};
|
|
1168
1168
|
}
|
|
1169
|
-
const ba =
|
|
1169
|
+
const ba = X({
|
|
1170
1170
|
active: Boolean,
|
|
1171
1171
|
color: String,
|
|
1172
1172
|
messages: {
|
|
@@ -1181,22 +1181,22 @@ const ba = Q({
|
|
|
1181
1181
|
group: !0
|
|
1182
1182
|
}
|
|
1183
1183
|
})
|
|
1184
|
-
}, "VMessages"), pa =
|
|
1184
|
+
}, "VMessages"), pa = ie()({
|
|
1185
1185
|
name: "VMessages",
|
|
1186
1186
|
props: ba(),
|
|
1187
1187
|
setup(e, a) {
|
|
1188
1188
|
let {
|
|
1189
1189
|
slots: t
|
|
1190
1190
|
} = a;
|
|
1191
|
-
const n =
|
|
1191
|
+
const n = I(() => Te(e.messages)), {
|
|
1192
1192
|
textColorClasses: l,
|
|
1193
1193
|
textColorStyles: i
|
|
1194
1194
|
} = kt(() => e.color);
|
|
1195
|
-
return
|
|
1195
|
+
return de(() => g(ll, {
|
|
1196
1196
|
transition: e.transition,
|
|
1197
1197
|
tag: "div",
|
|
1198
|
-
class:
|
|
1199
|
-
style:
|
|
1198
|
+
class: re(["v-messages", l.value, e.class]),
|
|
1199
|
+
style: xe([i.value, e.style])
|
|
1200
1200
|
}, {
|
|
1201
1201
|
default: () => [e.active && n.value.map((c, o) => b("div", {
|
|
1202
1202
|
class: "v-messages__message",
|
|
@@ -1206,13 +1206,13 @@ const ba = Q({
|
|
|
1206
1206
|
}) : c]))]
|
|
1207
1207
|
})), {};
|
|
1208
1208
|
}
|
|
1209
|
-
}), an =
|
|
1209
|
+
}), an = X({
|
|
1210
1210
|
focused: Boolean,
|
|
1211
|
-
"onUpdate:focused":
|
|
1211
|
+
"onUpdate:focused": Le()
|
|
1212
1212
|
}, "focus");
|
|
1213
1213
|
function on(e) {
|
|
1214
1214
|
let a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : $l();
|
|
1215
|
-
const t =
|
|
1215
|
+
const t = Ve(e, "focused"), n = R(() => ({
|
|
1216
1216
|
[`${a}--focused`]: t.value
|
|
1217
1217
|
}));
|
|
1218
1218
|
function l() {
|
|
@@ -1230,24 +1230,24 @@ function on(e) {
|
|
|
1230
1230
|
}
|
|
1231
1231
|
const ka = /* @__PURE__ */ Symbol.for("vuetify:form");
|
|
1232
1232
|
function Ot(e) {
|
|
1233
|
-
const a =
|
|
1233
|
+
const a = _e(ka, null);
|
|
1234
1234
|
return {
|
|
1235
1235
|
...a,
|
|
1236
|
-
isReadonly:
|
|
1237
|
-
isDisabled:
|
|
1236
|
+
isReadonly: I(() => !!(e?.readonly ?? a?.isReadonly.value)),
|
|
1237
|
+
isDisabled: I(() => !!(e?.disabled ?? a?.isDisabled.value))
|
|
1238
1238
|
};
|
|
1239
1239
|
}
|
|
1240
1240
|
const Sa = /* @__PURE__ */ Symbol.for("vuetify:rules");
|
|
1241
1241
|
function Ca(e) {
|
|
1242
|
-
const a =
|
|
1242
|
+
const a = _e(Sa, null);
|
|
1243
1243
|
if (!e) {
|
|
1244
1244
|
if (!a)
|
|
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) ?? R(e);
|
|
1249
1249
|
}
|
|
1250
|
-
const Va =
|
|
1250
|
+
const Va = X({
|
|
1251
1251
|
disabled: {
|
|
1252
1252
|
type: Boolean,
|
|
1253
1253
|
default: null
|
|
@@ -1278,75 +1278,75 @@ const Va = Q({
|
|
|
1278
1278
|
}, "validation");
|
|
1279
1279
|
function xa(e) {
|
|
1280
1280
|
let a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : $l(), t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : Xe();
|
|
1281
|
-
const n =
|
|
1281
|
+
const n = Ve(e, "modelValue"), l = I(() => e.validationValue === void 0 ? n.value : e.validationValue), i = Ot(e), c = Ca(() => e.rules), o = U([]), u = ee(!0), d = I(() => !!(Te(n.value === "" ? null : n.value).length || Te(l.value === "" ? null : l.value).length)), r = I(() => e.errorMessages?.length ? Te(e.errorMessages).concat(o.value).slice(0, Math.max(0, Number(e.maxErrors))) : o.value), s = I(() => {
|
|
1282
1282
|
let F = (e.validateOn ?? i.validateOn?.value) || "input";
|
|
1283
1283
|
F === "lazy" && (F = "input lazy"), F === "eager" && (F = "input eager");
|
|
1284
|
-
const
|
|
1284
|
+
const E = new Set(F?.split(" ") ?? []);
|
|
1285
1285
|
return {
|
|
1286
|
-
input:
|
|
1287
|
-
blur:
|
|
1288
|
-
invalidInput:
|
|
1289
|
-
lazy:
|
|
1290
|
-
eager:
|
|
1286
|
+
input: E.has("input"),
|
|
1287
|
+
blur: E.has("blur") || E.has("input") || E.has("invalid-input"),
|
|
1288
|
+
invalidInput: E.has("invalid-input"),
|
|
1289
|
+
lazy: E.has("lazy"),
|
|
1290
|
+
eager: E.has("eager")
|
|
1291
1291
|
};
|
|
1292
|
-
}), m =
|
|
1292
|
+
}), m = I(() => e.error || e.errorMessages?.length ? !1 : e.rules.length ? u.value ? o.value.length || s.value.lazy ? null : !0 : !o.value.length : !0), v = ee(!1), h = I(() => ({
|
|
1293
1293
|
[`${a}--error`]: m.value === !1,
|
|
1294
1294
|
[`${a}--dirty`]: d.value,
|
|
1295
1295
|
[`${a}--disabled`]: i.isDisabled.value,
|
|
1296
1296
|
[`${a}--readonly`]: i.isReadonly.value
|
|
1297
|
-
})), y = Ml("validation"), V =
|
|
1297
|
+
})), y = Ml("validation"), V = I(() => e.name ?? L(t));
|
|
1298
1298
|
Vn(() => {
|
|
1299
1299
|
i.register?.({
|
|
1300
1300
|
id: V.value,
|
|
1301
1301
|
vm: y,
|
|
1302
|
-
validate:
|
|
1303
|
-
reset:
|
|
1304
|
-
resetValidation:
|
|
1302
|
+
validate: S,
|
|
1303
|
+
reset: P,
|
|
1304
|
+
resetValidation: _
|
|
1305
1305
|
});
|
|
1306
1306
|
}), xn(() => {
|
|
1307
1307
|
i.unregister?.(V.value);
|
|
1308
1308
|
}), at(async () => {
|
|
1309
|
-
s.value.lazy || await
|
|
1309
|
+
s.value.lazy || await S(!s.value.eager), i.update?.(V.value, m.value, r.value);
|
|
1310
1310
|
}), Kt(() => s.value.input || s.value.invalidInput && m.value === !1, () => {
|
|
1311
|
-
|
|
1311
|
+
se(l, () => {
|
|
1312
1312
|
if (l.value != null)
|
|
1313
|
-
|
|
1313
|
+
S();
|
|
1314
1314
|
else if (e.focused) {
|
|
1315
|
-
const F =
|
|
1316
|
-
|
|
1315
|
+
const F = se(() => e.focused, (E) => {
|
|
1316
|
+
E || S(), F();
|
|
1317
1317
|
});
|
|
1318
1318
|
}
|
|
1319
1319
|
});
|
|
1320
1320
|
}), Kt(() => s.value.blur, () => {
|
|
1321
|
-
|
|
1322
|
-
F ||
|
|
1321
|
+
se(() => e.focused, (F) => {
|
|
1322
|
+
F || S();
|
|
1323
1323
|
});
|
|
1324
|
-
}),
|
|
1324
|
+
}), se([m, r], () => {
|
|
1325
1325
|
i.update?.(V.value, m.value, r.value);
|
|
1326
1326
|
});
|
|
1327
|
-
async function w() {
|
|
1328
|
-
n.value = null, await Ce(), await P();
|
|
1329
|
-
}
|
|
1330
1327
|
async function P() {
|
|
1331
|
-
|
|
1328
|
+
n.value = null, await Se(), await _();
|
|
1332
1329
|
}
|
|
1333
|
-
async function
|
|
1330
|
+
async function _() {
|
|
1331
|
+
u.value = !0, s.value.lazy ? o.value = [] : await S(!s.value.eager);
|
|
1332
|
+
}
|
|
1333
|
+
async function S() {
|
|
1334
1334
|
let F = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1;
|
|
1335
|
-
const
|
|
1335
|
+
const E = [];
|
|
1336
1336
|
v.value = !0;
|
|
1337
|
-
for (const
|
|
1338
|
-
if (
|
|
1337
|
+
for (const K of c.value) {
|
|
1338
|
+
if (E.length >= Number(e.maxErrors ?? 1))
|
|
1339
1339
|
break;
|
|
1340
|
-
const
|
|
1341
|
-
if (
|
|
1342
|
-
if (
|
|
1343
|
-
console.warn(`${
|
|
1340
|
+
const C = await (typeof K == "function" ? K : () => K)(l.value);
|
|
1341
|
+
if (C !== !0) {
|
|
1342
|
+
if (C !== !1 && typeof C != "string") {
|
|
1343
|
+
console.warn(`${C} is not a valid value. Rule functions must return boolean true or a string.`);
|
|
1344
1344
|
continue;
|
|
1345
1345
|
}
|
|
1346
|
-
|
|
1346
|
+
E.push(C || "");
|
|
1347
1347
|
}
|
|
1348
1348
|
}
|
|
1349
|
-
return o.value =
|
|
1349
|
+
return o.value = E, v.value = !1, u.value = F, o.value;
|
|
1350
1350
|
}
|
|
1351
1351
|
return {
|
|
1352
1352
|
errorMessages: r,
|
|
@@ -1356,13 +1356,13 @@ function xa(e) {
|
|
|
1356
1356
|
isPristine: u,
|
|
1357
1357
|
isValid: m,
|
|
1358
1358
|
isValidating: v,
|
|
1359
|
-
reset:
|
|
1360
|
-
resetValidation:
|
|
1361
|
-
validate:
|
|
1359
|
+
reset: P,
|
|
1360
|
+
resetValidation: _,
|
|
1361
|
+
validate: S,
|
|
1362
1362
|
validationClasses: h
|
|
1363
1363
|
};
|
|
1364
1364
|
}
|
|
1365
|
-
const un =
|
|
1365
|
+
const un = X({
|
|
1366
1366
|
id: String,
|
|
1367
1367
|
appendIcon: ye,
|
|
1368
1368
|
baseColor: String,
|
|
@@ -1387,14 +1387,14 @@ const un = Q({
|
|
|
1387
1387
|
default: "horizontal",
|
|
1388
1388
|
validator: (e) => ["horizontal", "vertical"].includes(e)
|
|
1389
1389
|
},
|
|
1390
|
-
"onClick:prepend":
|
|
1391
|
-
"onClick:append":
|
|
1390
|
+
"onClick:prepend": Le(),
|
|
1391
|
+
"onClick:append": Le(),
|
|
1392
1392
|
...he(),
|
|
1393
1393
|
...ht(),
|
|
1394
1394
|
...Bn(pt(), ["maxWidth", "minWidth", "width"]),
|
|
1395
|
-
...
|
|
1395
|
+
...He(),
|
|
1396
1396
|
...Va()
|
|
1397
|
-
}, "VInput"), yl =
|
|
1397
|
+
}, "VInput"), yl = ie()({
|
|
1398
1398
|
name: "VInput",
|
|
1399
1399
|
props: {
|
|
1400
1400
|
...un()
|
|
@@ -1418,81 +1418,81 @@ const un = Q({
|
|
|
1418
1418
|
rtlClasses: u
|
|
1419
1419
|
} = At(), {
|
|
1420
1420
|
InputIcon: d
|
|
1421
|
-
} = Et(e), r = Xe(), s =
|
|
1421
|
+
} = Et(e), r = Xe(), s = I(() => e.id || `input-${r}`), {
|
|
1422
1422
|
errorMessages: m,
|
|
1423
1423
|
isDirty: v,
|
|
1424
1424
|
isDisabled: h,
|
|
1425
1425
|
isReadonly: y,
|
|
1426
1426
|
isPristine: V,
|
|
1427
|
-
isValid:
|
|
1428
|
-
isValidating:
|
|
1429
|
-
reset:
|
|
1427
|
+
isValid: P,
|
|
1428
|
+
isValidating: _,
|
|
1429
|
+
reset: S,
|
|
1430
1430
|
resetValidation: F,
|
|
1431
|
-
validate:
|
|
1432
|
-
validationClasses:
|
|
1433
|
-
} = xa(e, "v-input", s),
|
|
1431
|
+
validate: E,
|
|
1432
|
+
validationClasses: K
|
|
1433
|
+
} = xa(e, "v-input", s), w = I(() => e.errorMessages?.length || !V.value && m.value.length ? m.value : e.hint && (e.persistentHint || e.focused) ? e.hint : e.messages), C = R(() => w.value.length > 0), $ = R(() => !e.hideDetails || e.hideDetails === "auto" && (C.value || !!n.details)), D = I(() => $.value ? `${s.value}-messages` : void 0), G = I(() => ({
|
|
1434
1434
|
id: s,
|
|
1435
1435
|
messagesId: D,
|
|
1436
1436
|
isDirty: v,
|
|
1437
1437
|
isDisabled: h,
|
|
1438
1438
|
isReadonly: y,
|
|
1439
1439
|
isPristine: V,
|
|
1440
|
-
isValid:
|
|
1441
|
-
isValidating:
|
|
1442
|
-
hasDetails:
|
|
1443
|
-
reset:
|
|
1440
|
+
isValid: P,
|
|
1441
|
+
isValidating: _,
|
|
1442
|
+
hasDetails: $,
|
|
1443
|
+
reset: S,
|
|
1444
1444
|
resetValidation: F,
|
|
1445
|
-
validate:
|
|
1446
|
-
})),
|
|
1445
|
+
validate: E
|
|
1446
|
+
})), ne = R(() => e.error || e.disabled ? void 0 : e.focused ? e.color : e.baseColor), H = R(() => {
|
|
1447
1447
|
if (e.iconColor)
|
|
1448
|
-
return e.iconColor === !0 ?
|
|
1448
|
+
return e.iconColor === !0 ? ne.value : e.iconColor;
|
|
1449
1449
|
});
|
|
1450
|
-
return
|
|
1451
|
-
const
|
|
1450
|
+
return de(() => {
|
|
1451
|
+
const W = !!(n.prepend || e.prependIcon), j = !!(n.append || e.appendIcon);
|
|
1452
1452
|
return b("div", {
|
|
1453
|
-
class:
|
|
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
|
-
}, i.value, o.value, u.value,
|
|
1459
|
-
style:
|
|
1460
|
-
}, [
|
|
1458
|
+
}, i.value, o.value, u.value, K.value, e.class]),
|
|
1459
|
+
style: xe([c.value, e.style])
|
|
1460
|
+
}, [W && b("div", {
|
|
1461
1461
|
key: "prepend",
|
|
1462
1462
|
class: "v-input__prepend"
|
|
1463
|
-
}, [n.prepend ? n.prepend(
|
|
1463
|
+
}, [n.prepend ? n.prepend(G.value) : e.prependIcon && g(d, {
|
|
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?.(G.value)]), j && b("div", {
|
|
1470
1470
|
key: "append",
|
|
1471
1471
|
class: "v-input__append"
|
|
1472
|
-
}, [n.append ? n.append(
|
|
1472
|
+
}, [n.append ? n.append(G.value) : e.appendIcon && g(d, {
|
|
1473
1473
|
key: "append-icon",
|
|
1474
1474
|
name: "append",
|
|
1475
1475
|
color: H.value
|
|
1476
|
-
}, null)]),
|
|
1476
|
+
}, null)]), $.value && b("div", {
|
|
1477
1477
|
id: D.value,
|
|
1478
1478
|
class: "v-input__details",
|
|
1479
1479
|
role: "alert",
|
|
1480
1480
|
"aria-live": "polite"
|
|
1481
1481
|
}, [g(pa, {
|
|
1482
|
-
active:
|
|
1483
|
-
messages:
|
|
1482
|
+
active: C.value,
|
|
1483
|
+
messages: w.value
|
|
1484
1484
|
}, {
|
|
1485
1485
|
message: n.message
|
|
1486
|
-
}), n.details?.(
|
|
1486
|
+
}), n.details?.(G.value)])]);
|
|
1487
1487
|
}), {
|
|
1488
|
-
reset:
|
|
1488
|
+
reset: S,
|
|
1489
1489
|
resetValidation: F,
|
|
1490
|
-
validate:
|
|
1491
|
-
isValid:
|
|
1490
|
+
validate: E,
|
|
1491
|
+
isValid: P,
|
|
1492
1492
|
errorMessages: m
|
|
1493
1493
|
};
|
|
1494
1494
|
}
|
|
1495
|
-
}), Ia =
|
|
1495
|
+
}), Ia = X({
|
|
1496
1496
|
active: Boolean,
|
|
1497
1497
|
disabled: Boolean,
|
|
1498
1498
|
max: [Number, String],
|
|
@@ -1506,7 +1506,7 @@ const un = Q({
|
|
|
1506
1506
|
component: Ol
|
|
1507
1507
|
}
|
|
1508
1508
|
})
|
|
1509
|
-
}, "VCounter"), wa =
|
|
1509
|
+
}, "VCounter"), wa = ie()({
|
|
1510
1510
|
name: "VCounter",
|
|
1511
1511
|
functional: !0,
|
|
1512
1512
|
props: Ia(),
|
|
@@ -1514,15 +1514,15 @@ const un = Q({
|
|
|
1514
1514
|
let {
|
|
1515
1515
|
slots: t
|
|
1516
1516
|
} = a;
|
|
1517
|
-
const n =
|
|
1518
|
-
return
|
|
1517
|
+
const n = R(() => e.max ? `${e.value} / ${e.max}` : String(e.value));
|
|
1518
|
+
return de(() => g(ll, {
|
|
1519
1519
|
transition: e.transition
|
|
1520
1520
|
}, {
|
|
1521
|
-
default: () => [
|
|
1522
|
-
class:
|
|
1521
|
+
default: () => [Ue(b("div", {
|
|
1522
|
+
class: re(["v-counter", {
|
|
1523
1523
|
"text-error": e.max && !e.disabled && parseFloat(e.value) > parseFloat(e.max)
|
|
1524
1524
|
}, e.class]),
|
|
1525
|
-
style:
|
|
1525
|
+
style: xe(e.style)
|
|
1526
1526
|
}, [t.default ? t.default({
|
|
1527
1527
|
counter: n.value,
|
|
1528
1528
|
max: e.max,
|
|
@@ -1530,24 +1530,24 @@ const un = Q({
|
|
|
1530
1530
|
}) : n.value]), [[Pt, e.active]])]
|
|
1531
1531
|
})), {};
|
|
1532
1532
|
}
|
|
1533
|
-
}), Pa =
|
|
1533
|
+
}), Pa = X({
|
|
1534
1534
|
floating: Boolean,
|
|
1535
1535
|
...he()
|
|
1536
|
-
}, "VFieldLabel"), Ct =
|
|
1536
|
+
}, "VFieldLabel"), Ct = ie()({
|
|
1537
1537
|
name: "VFieldLabel",
|
|
1538
1538
|
props: Pa(),
|
|
1539
1539
|
setup(e, a) {
|
|
1540
1540
|
let {
|
|
1541
1541
|
slots: t
|
|
1542
1542
|
} = a;
|
|
1543
|
-
return
|
|
1544
|
-
class:
|
|
1543
|
+
return de(() => g(Zl, {
|
|
1544
|
+
class: re(["v-field-label", {
|
|
1545
1545
|
"v-field-label--floating": e.floating
|
|
1546
1546
|
}, e.class]),
|
|
1547
|
-
style:
|
|
1547
|
+
style: xe(e.style)
|
|
1548
1548
|
}, t)), {};
|
|
1549
1549
|
}
|
|
1550
|
-
}), _a = ["underlined", "outlined", "filled", "solo", "solo-inverted", "solo-filled", "plain"], sn =
|
|
1550
|
+
}), _a = ["underlined", "outlined", "filled", "solo", "solo-inverted", "solo-filled", "plain"], sn = X({
|
|
1551
1551
|
appendInnerIcon: ye,
|
|
1552
1552
|
bgColor: String,
|
|
1553
1553
|
clearable: Boolean,
|
|
@@ -1581,14 +1581,14 @@ const un = Q({
|
|
|
1581
1581
|
default: "filled",
|
|
1582
1582
|
validator: (e) => _a.includes(e)
|
|
1583
1583
|
},
|
|
1584
|
-
"onClick:clear":
|
|
1585
|
-
"onClick:appendInner":
|
|
1586
|
-
"onClick:prependInner":
|
|
1584
|
+
"onClick:clear": Le(),
|
|
1585
|
+
"onClick:appendInner": Le(),
|
|
1586
|
+
"onClick:prependInner": Le(),
|
|
1587
1587
|
...he(),
|
|
1588
1588
|
...Hl(),
|
|
1589
1589
|
...yt(),
|
|
1590
|
-
...
|
|
1591
|
-
}, "VField"), hl =
|
|
1590
|
+
...He()
|
|
1591
|
+
}, "VField"), hl = ie()({
|
|
1592
1592
|
name: "VField",
|
|
1593
1593
|
inheritAttrs: !1,
|
|
1594
1594
|
props: {
|
|
@@ -1623,75 +1623,75 @@ const un = Q({
|
|
|
1623
1623
|
roundedClasses: m
|
|
1624
1624
|
} = gt(e), {
|
|
1625
1625
|
rtlClasses: v
|
|
1626
|
-
} = At(), h =
|
|
1626
|
+
} = At(), h = R(() => e.dirty || e.active), y = R(() => !!(e.label || l.label)), V = R(() => !e.singleLine && y.value), P = Xe(), _ = I(() => e.id || `input-${P}`), S = R(() => e.details ? `${_.value}-messages` : void 0), F = U(), E = U(), K = U(), w = I(() => ["plain", "underlined"].includes(e.variant)), C = I(() => e.error || e.disabled ? void 0 : h.value && u.value ? e.color : e.baseColor), $ = I(() => {
|
|
1627
1627
|
if (!(!e.iconColor || e.glow && !u.value))
|
|
1628
|
-
return e.iconColor === !0 ?
|
|
1628
|
+
return e.iconColor === !0 ? C.value : e.iconColor;
|
|
1629
1629
|
}), {
|
|
1630
1630
|
backgroundColorClasses: D,
|
|
1631
|
-
backgroundColorStyles:
|
|
1631
|
+
backgroundColorStyles: G
|
|
1632
1632
|
} = Dt(() => e.bgColor), {
|
|
1633
|
-
textColorClasses:
|
|
1633
|
+
textColorClasses: ne,
|
|
1634
1634
|
textColorStyles: H
|
|
1635
|
-
} = kt(
|
|
1636
|
-
|
|
1635
|
+
} = kt(C);
|
|
1636
|
+
se(h, (z) => {
|
|
1637
1637
|
if (V.value && !Cl()) {
|
|
1638
|
-
const
|
|
1638
|
+
const fe = F.value.$el, B = E.value.$el;
|
|
1639
1639
|
requestAnimationFrame(() => {
|
|
1640
|
-
const
|
|
1641
|
-
maxWidth: et(
|
|
1642
|
-
} : void 0,
|
|
1643
|
-
|
|
1644
|
-
transform: `translate(${f}px, ${
|
|
1645
|
-
color:
|
|
1646
|
-
...
|
|
1640
|
+
const O = Rn(fe), p = B.getBoundingClientRect(), f = p.x - O.x, A = p.y - O.y - (O.height / 2 - p.height / 2), J = p.width / 0.75, ve = Math.abs(J - O.width) > 1 ? {
|
|
1641
|
+
maxWidth: et(J)
|
|
1642
|
+
} : void 0, ge = getComputedStyle(fe), be = getComputedStyle(B), Ie = parseFloat(ge.transitionDuration) * 1e3 || 150, De = parseFloat(be.getPropertyValue("--v-field-label-scale")), je = be.getPropertyValue("color");
|
|
1643
|
+
fe.style.visibility = "visible", B.style.visibility = "hidden", En(fe, {
|
|
1644
|
+
transform: `translate(${f}px, ${A}px) scale(${De})`,
|
|
1645
|
+
color: je,
|
|
1646
|
+
...ve
|
|
1647
1647
|
}, {
|
|
1648
|
-
duration:
|
|
1648
|
+
duration: Ie,
|
|
1649
1649
|
easing: On,
|
|
1650
|
-
direction:
|
|
1650
|
+
direction: z ? "normal" : "reverse"
|
|
1651
1651
|
}).finished.then(() => {
|
|
1652
|
-
|
|
1652
|
+
fe.style.removeProperty("visibility"), B.style.removeProperty("visibility");
|
|
1653
1653
|
});
|
|
1654
1654
|
});
|
|
1655
1655
|
}
|
|
1656
1656
|
}, {
|
|
1657
1657
|
flush: "post"
|
|
1658
1658
|
});
|
|
1659
|
-
const
|
|
1659
|
+
const W = I(() => ({
|
|
1660
1660
|
isActive: h,
|
|
1661
1661
|
isFocused: u,
|
|
1662
|
-
controlRef:
|
|
1663
|
-
iconColor:
|
|
1662
|
+
controlRef: K,
|
|
1663
|
+
iconColor: $,
|
|
1664
1664
|
blur: r,
|
|
1665
1665
|
focus: d
|
|
1666
|
-
})),
|
|
1667
|
-
const
|
|
1666
|
+
})), j = R(() => {
|
|
1667
|
+
const z = !h.value;
|
|
1668
1668
|
return {
|
|
1669
|
-
"aria-hidden":
|
|
1670
|
-
for:
|
|
1669
|
+
"aria-hidden": z,
|
|
1670
|
+
for: z ? void 0 : _.value
|
|
1671
1671
|
};
|
|
1672
|
-
}),
|
|
1673
|
-
const
|
|
1672
|
+
}), ue = R(() => {
|
|
1673
|
+
const z = V.value && h.value;
|
|
1674
1674
|
return {
|
|
1675
|
-
"aria-hidden":
|
|
1676
|
-
for:
|
|
1675
|
+
"aria-hidden": z,
|
|
1676
|
+
for: z ? void 0 : _.value
|
|
1677
1677
|
};
|
|
1678
1678
|
});
|
|
1679
|
-
function
|
|
1680
|
-
|
|
1679
|
+
function q(z) {
|
|
1680
|
+
z.target !== document.activeElement && z.preventDefault();
|
|
1681
1681
|
}
|
|
1682
|
-
return
|
|
1683
|
-
const
|
|
1684
|
-
...
|
|
1682
|
+
return de(() => {
|
|
1683
|
+
const z = e.variant === "outlined", fe = !!(l["prepend-inner"] || e.prependInnerIcon), B = !!(e.clearable || l.clear) && !e.disabled, O = !!(l["append-inner"] || e.appendInnerIcon || B), p = () => l.label ? l.label({
|
|
1684
|
+
...W.value,
|
|
1685
1685
|
label: e.label,
|
|
1686
1686
|
props: {
|
|
1687
|
-
for:
|
|
1687
|
+
for: _.value
|
|
1688
1688
|
}
|
|
1689
1689
|
}) : e.label;
|
|
1690
1690
|
return b("div", N({
|
|
1691
1691
|
class: ["v-field", {
|
|
1692
1692
|
"v-field--active": h.value,
|
|
1693
|
-
"v-field--appended":
|
|
1694
|
-
"v-field--center-affix": e.centerAffix ?? !
|
|
1693
|
+
"v-field--appended": O,
|
|
1694
|
+
"v-field--center-affix": e.centerAffix ?? !w.value,
|
|
1695
1695
|
"v-field--disabled": e.disabled,
|
|
1696
1696
|
"v-field--dirty": e.dirty,
|
|
1697
1697
|
"v-field--error": e.error,
|
|
@@ -1699,14 +1699,14 @@ const un = Q({
|
|
|
1699
1699
|
"v-field--flat": e.flat,
|
|
1700
1700
|
"v-field--has-background": !!e.bgColor,
|
|
1701
1701
|
"v-field--persistent-clear": e.persistentClear,
|
|
1702
|
-
"v-field--prepended":
|
|
1702
|
+
"v-field--prepended": fe,
|
|
1703
1703
|
"v-field--reverse": e.reverse,
|
|
1704
1704
|
"v-field--single-line": e.singleLine,
|
|
1705
1705
|
"v-field--no-label": !p(),
|
|
1706
1706
|
[`v-field--variant-${e.variant}`]: !0
|
|
1707
1707
|
}, i.value, D.value, o.value, c.value, m.value, v.value, e.class],
|
|
1708
|
-
style: [
|
|
1709
|
-
onClick:
|
|
1708
|
+
style: [G.value, e.style],
|
|
1709
|
+
onClick: q
|
|
1710
1710
|
}, t), [b("div", {
|
|
1711
1711
|
class: "v-field__overlay"
|
|
1712
1712
|
}, null), g(Ll, {
|
|
@@ -1715,22 +1715,22 @@ const un = Q({
|
|
|
1715
1715
|
color: e.error ? "error" : typeof e.loading == "string" ? e.loading : e.color
|
|
1716
1716
|
}, {
|
|
1717
1717
|
default: l.loader
|
|
1718
|
-
}),
|
|
1718
|
+
}), fe && b("div", {
|
|
1719
1719
|
key: "prepend",
|
|
1720
1720
|
class: "v-field__prepend-inner"
|
|
1721
|
-
}, [l["prepend-inner"] ? l["prepend-inner"](
|
|
1721
|
+
}, [l["prepend-inner"] ? l["prepend-inner"](W.value) : e.prependInnerIcon && g(s, {
|
|
1722
1722
|
key: "prepend-icon",
|
|
1723
1723
|
name: "prependInner",
|
|
1724
|
-
color:
|
|
1724
|
+
color: $.value
|
|
1725
1725
|
}, null)]), b("div", {
|
|
1726
1726
|
class: "v-field__field",
|
|
1727
1727
|
"data-no-activator": ""
|
|
1728
1728
|
}, [["filled", "solo", "solo-inverted", "solo-filled"].includes(e.variant) && V.value && g(Ct, N({
|
|
1729
1729
|
key: "floating-label",
|
|
1730
|
-
ref:
|
|
1731
|
-
class: [
|
|
1730
|
+
ref: E,
|
|
1731
|
+
class: [ne.value],
|
|
1732
1732
|
floating: !0
|
|
1733
|
-
},
|
|
1733
|
+
}, j.value, {
|
|
1734
1734
|
style: H.value
|
|
1735
1735
|
}), {
|
|
1736
1736
|
default: () => [p()]
|
|
@@ -1738,25 +1738,25 @@ const un = Q({
|
|
|
1738
1738
|
key: "label",
|
|
1739
1739
|
ref: F,
|
|
1740
1740
|
id: e.labelId
|
|
1741
|
-
},
|
|
1741
|
+
}, ue.value), {
|
|
1742
1742
|
default: () => [p()]
|
|
1743
1743
|
}), l.default?.({
|
|
1744
|
-
...
|
|
1744
|
+
...W.value,
|
|
1745
1745
|
props: {
|
|
1746
|
-
id:
|
|
1746
|
+
id: _.value,
|
|
1747
1747
|
class: "v-field__input",
|
|
1748
|
-
"aria-describedby":
|
|
1748
|
+
"aria-describedby": S.value
|
|
1749
1749
|
},
|
|
1750
1750
|
focus: d,
|
|
1751
1751
|
blur: r
|
|
1752
1752
|
}) ?? b("div", {
|
|
1753
|
-
id:
|
|
1753
|
+
id: _.value,
|
|
1754
1754
|
class: "v-field__input",
|
|
1755
|
-
"aria-describedby":
|
|
1756
|
-
}, null)]),
|
|
1755
|
+
"aria-describedby": S.value
|
|
1756
|
+
}, null)]), B && g(Fl, {
|
|
1757
1757
|
key: "clear"
|
|
1758
1758
|
}, {
|
|
1759
|
-
default: () => [
|
|
1759
|
+
default: () => [Ue(b("div", {
|
|
1760
1760
|
class: "v-field__clearable",
|
|
1761
1761
|
onMousedown: (f) => {
|
|
1762
1762
|
f.preventDefault(), f.stopPropagation();
|
|
@@ -1769,7 +1769,7 @@ const un = Q({
|
|
|
1769
1769
|
}
|
|
1770
1770
|
}, {
|
|
1771
1771
|
default: () => [l.clear ? l.clear({
|
|
1772
|
-
...
|
|
1772
|
+
...W.value,
|
|
1773
1773
|
props: {
|
|
1774
1774
|
onFocus: d,
|
|
1775
1775
|
onBlur: r,
|
|
@@ -1783,46 +1783,46 @@ const un = Q({
|
|
|
1783
1783
|
tabindex: -1
|
|
1784
1784
|
}, null)]
|
|
1785
1785
|
})]), [[Pt, e.dirty]])]
|
|
1786
|
-
}),
|
|
1786
|
+
}), O && b("div", {
|
|
1787
1787
|
key: "append",
|
|
1788
1788
|
class: "v-field__append-inner"
|
|
1789
|
-
}, [l["append-inner"] ? l["append-inner"](
|
|
1789
|
+
}, [l["append-inner"] ? l["append-inner"](W.value) : e.appendInnerIcon && g(s, {
|
|
1790
1790
|
key: "append-icon",
|
|
1791
1791
|
name: "appendInner",
|
|
1792
|
-
color:
|
|
1792
|
+
color: $.value
|
|
1793
1793
|
}, null)]), b("div", {
|
|
1794
|
-
class:
|
|
1795
|
-
style:
|
|
1796
|
-
}, [
|
|
1794
|
+
class: re(["v-field__outline", ne.value]),
|
|
1795
|
+
style: xe(H.value)
|
|
1796
|
+
}, [z && b(ce, null, [b("div", {
|
|
1797
1797
|
class: "v-field__outline__start"
|
|
1798
1798
|
}, null), V.value && b("div", {
|
|
1799
1799
|
class: "v-field__outline__notch"
|
|
1800
1800
|
}, [g(Ct, N({
|
|
1801
|
-
ref:
|
|
1801
|
+
ref: E,
|
|
1802
1802
|
floating: !0
|
|
1803
|
-
},
|
|
1803
|
+
}, j.value), {
|
|
1804
1804
|
default: () => [p()]
|
|
1805
1805
|
})]), b("div", {
|
|
1806
1806
|
class: "v-field__outline__end"
|
|
1807
|
-
}, null)]),
|
|
1808
|
-
ref:
|
|
1807
|
+
}, null)]), w.value && V.value && g(Ct, N({
|
|
1808
|
+
ref: E,
|
|
1809
1809
|
floating: !0
|
|
1810
|
-
},
|
|
1810
|
+
}, j.value), {
|
|
1811
1811
|
default: () => [p()]
|
|
1812
1812
|
})])]);
|
|
1813
1813
|
}), {
|
|
1814
|
-
controlRef:
|
|
1815
|
-
fieldIconColor:
|
|
1814
|
+
controlRef: K,
|
|
1815
|
+
fieldIconColor: $
|
|
1816
1816
|
};
|
|
1817
1817
|
}
|
|
1818
|
-
}), Aa =
|
|
1818
|
+
}), Aa = X({
|
|
1819
1819
|
autocomplete: String
|
|
1820
1820
|
}, "autocomplete");
|
|
1821
1821
|
function rn(e) {
|
|
1822
|
-
const a = Xe(), t =
|
|
1822
|
+
const a = Xe(), t = ee(0), n = R(() => e.autocomplete === "suppress"), l = R(() => {
|
|
1823
1823
|
if (e.name)
|
|
1824
1824
|
return n.value ? `${e.name}-${a}-${t.value}` : e.name;
|
|
1825
|
-
}), i =
|
|
1825
|
+
}), i = R(() => n.value ? "off" : e.autocomplete);
|
|
1826
1826
|
return {
|
|
1827
1827
|
isSuppressing: n,
|
|
1828
1828
|
fieldAutocomplete: i,
|
|
@@ -1840,7 +1840,7 @@ function Fa(e) {
|
|
|
1840
1840
|
onIntersect: a
|
|
1841
1841
|
};
|
|
1842
1842
|
}
|
|
1843
|
-
const Da = ["color", "file", "time", "date", "datetime-local", "week", "month"], $t =
|
|
1843
|
+
const Da = ["color", "file", "time", "date", "datetime-local", "week", "month"], $t = X({
|
|
1844
1844
|
autofocus: Boolean,
|
|
1845
1845
|
counter: [Boolean, Number, String],
|
|
1846
1846
|
counterValue: [Number, Function],
|
|
@@ -1858,7 +1858,7 @@ const Da = ["color", "file", "time", "date", "datetime-local", "week", "month"],
|
|
|
1858
1858
|
...Aa(),
|
|
1859
1859
|
...Ye(un(), ["direction"]),
|
|
1860
1860
|
...sn()
|
|
1861
|
-
}, "VTextField"), Je =
|
|
1861
|
+
}, "VTextField"), Je = ie()({
|
|
1862
1862
|
name: "VTextField",
|
|
1863
1863
|
directives: {
|
|
1864
1864
|
vIntersect: cl
|
|
@@ -1877,107 +1877,107 @@ const Da = ["color", "file", "time", "date", "datetime-local", "week", "month"],
|
|
|
1877
1877
|
emit: n,
|
|
1878
1878
|
slots: l
|
|
1879
1879
|
} = a;
|
|
1880
|
-
const i =
|
|
1880
|
+
const i = Ve(e, "modelValue", void 0, (w) => Object.is(w, -0) ? "-0" : w), {
|
|
1881
1881
|
isFocused: c,
|
|
1882
1882
|
focus: o,
|
|
1883
1883
|
blur: u
|
|
1884
1884
|
} = on(e), {
|
|
1885
1885
|
onIntersect: d
|
|
1886
|
-
} = Fa(e), r =
|
|
1886
|
+
} = Fa(e), r = I(() => typeof e.counterValue == "function" ? e.counterValue(i.value) : typeof e.counterValue == "number" ? e.counterValue : (i.value ?? "").toString().length), s = 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 =
|
|
1891
|
-
function
|
|
1892
|
-
V.isSuppressing.value && V.update(), c.value || o(),
|
|
1890
|
+
}), m = I(() => ["plain", "underlined"].includes(e.variant)), v = U(), h = U(), y = U(), V = rn(e), P = I(() => Da.includes(e.type) || e.persistentPlaceholder || c.value || e.active);
|
|
1891
|
+
function _() {
|
|
1892
|
+
V.isSuppressing.value && V.update(), c.value || o(), Se(() => {
|
|
1893
1893
|
y.value !== document.activeElement && y.value?.focus();
|
|
1894
1894
|
});
|
|
1895
1895
|
}
|
|
1896
|
-
function
|
|
1897
|
-
n("mousedown:control",
|
|
1896
|
+
function S(w) {
|
|
1897
|
+
n("mousedown:control", w), w.target !== y.value && (_(), w.preventDefault());
|
|
1898
1898
|
}
|
|
1899
|
-
function F(
|
|
1900
|
-
n("click:control",
|
|
1899
|
+
function F(w) {
|
|
1900
|
+
n("click:control", w);
|
|
1901
1901
|
}
|
|
1902
|
-
function
|
|
1903
|
-
|
|
1904
|
-
|
|
1902
|
+
function E(w, C) {
|
|
1903
|
+
w.stopPropagation(), _(), Se(() => {
|
|
1904
|
+
C(), El(e["onClick:clear"], w);
|
|
1905
1905
|
});
|
|
1906
1906
|
}
|
|
1907
|
-
function
|
|
1908
|
-
const
|
|
1907
|
+
function K(w) {
|
|
1908
|
+
const C = w.target;
|
|
1909
1909
|
if (!(e.modelModifiers?.trim && ["text", "search", "password", "tel", "url"].includes(e.type))) {
|
|
1910
|
-
i.value =
|
|
1910
|
+
i.value = C.value;
|
|
1911
1911
|
return;
|
|
1912
1912
|
}
|
|
1913
|
-
const
|
|
1914
|
-
i.value =
|
|
1915
|
-
let
|
|
1916
|
-
|
|
1913
|
+
const $ = C.value, D = C.selectionStart, G = C.selectionEnd;
|
|
1914
|
+
i.value = $, Se(() => {
|
|
1915
|
+
let ne = 0;
|
|
1916
|
+
$.trimStart().length === C.value.length && (ne = $.length - C.value.length), D != null && (C.selectionStart = D - ne), G != null && (C.selectionEnd = G - ne);
|
|
1917
1917
|
});
|
|
1918
1918
|
}
|
|
1919
|
-
return
|
|
1920
|
-
const
|
|
1921
|
-
modelValue:
|
|
1922
|
-
...
|
|
1919
|
+
return de(() => {
|
|
1920
|
+
const w = !!(l.counter || e.counter !== !1 && e.counter != null), C = !!(w || l.details), [$, D] = Rl(t), {
|
|
1921
|
+
modelValue: G,
|
|
1922
|
+
...ne
|
|
1923
1923
|
} = yl.filterProps(e), H = hl.filterProps(e);
|
|
1924
1924
|
return g(yl, N({
|
|
1925
1925
|
ref: v,
|
|
1926
1926
|
modelValue: i.value,
|
|
1927
|
-
"onUpdate:modelValue": (
|
|
1927
|
+
"onUpdate:modelValue": (W) => i.value = W,
|
|
1928
1928
|
class: ["v-text-field", {
|
|
1929
1929
|
"v-text-field--prefixed": e.prefix,
|
|
1930
1930
|
"v-text-field--suffixed": e.suffix,
|
|
1931
1931
|
"v-input--plain-underlined": m.value
|
|
1932
1932
|
}, e.class],
|
|
1933
1933
|
style: e.style
|
|
1934
|
-
},
|
|
1934
|
+
}, $, ne, {
|
|
1935
1935
|
centerAffix: !m.value,
|
|
1936
1936
|
focused: c.value
|
|
1937
1937
|
}), {
|
|
1938
1938
|
...l,
|
|
1939
|
-
default: (
|
|
1939
|
+
default: (W) => {
|
|
1940
1940
|
let {
|
|
1941
|
-
id:
|
|
1942
|
-
isDisabled:
|
|
1943
|
-
isDirty:
|
|
1944
|
-
isReadonly:
|
|
1945
|
-
isValid:
|
|
1946
|
-
hasDetails:
|
|
1947
|
-
reset:
|
|
1948
|
-
} =
|
|
1941
|
+
id: j,
|
|
1942
|
+
isDisabled: ue,
|
|
1943
|
+
isDirty: q,
|
|
1944
|
+
isReadonly: z,
|
|
1945
|
+
isValid: fe,
|
|
1946
|
+
hasDetails: B,
|
|
1947
|
+
reset: O
|
|
1948
|
+
} = W;
|
|
1949
1949
|
return g(hl, N({
|
|
1950
1950
|
ref: h,
|
|
1951
|
-
onMousedown:
|
|
1951
|
+
onMousedown: S,
|
|
1952
1952
|
onClick: F,
|
|
1953
|
-
"onClick:clear": (p) =>
|
|
1953
|
+
"onClick:clear": (p) => E(p, O),
|
|
1954
1954
|
role: e.role
|
|
1955
1955
|
}, Ye(H, ["onClick:clear"]), {
|
|
1956
|
-
id:
|
|
1957
|
-
labelId: `${
|
|
1958
|
-
active:
|
|
1959
|
-
dirty:
|
|
1960
|
-
disabled:
|
|
1956
|
+
id: j.value,
|
|
1957
|
+
labelId: `${j.value}-label`,
|
|
1958
|
+
active: P.value || q.value,
|
|
1959
|
+
dirty: q.value || e.dirty,
|
|
1960
|
+
disabled: ue.value,
|
|
1961
1961
|
focused: c.value,
|
|
1962
|
-
details:
|
|
1963
|
-
error:
|
|
1962
|
+
details: B.value,
|
|
1963
|
+
error: fe.value === !1
|
|
1964
1964
|
}), {
|
|
1965
1965
|
...l,
|
|
1966
1966
|
default: (p) => {
|
|
1967
1967
|
let {
|
|
1968
1968
|
props: {
|
|
1969
1969
|
class: f,
|
|
1970
|
-
...
|
|
1970
|
+
...A
|
|
1971
1971
|
},
|
|
1972
|
-
controlRef:
|
|
1972
|
+
controlRef: J
|
|
1973
1973
|
} = p;
|
|
1974
|
-
const
|
|
1975
|
-
ref: (
|
|
1974
|
+
const ve = b("input", N({
|
|
1975
|
+
ref: (ge) => y.value = J.value = ge,
|
|
1976
1976
|
value: i.value,
|
|
1977
|
-
onInput:
|
|
1977
|
+
onInput: K,
|
|
1978
1978
|
autofocus: e.autofocus,
|
|
1979
|
-
readonly:
|
|
1980
|
-
disabled:
|
|
1979
|
+
readonly: z.value,
|
|
1980
|
+
disabled: ue.value,
|
|
1981
1981
|
name: V.fieldName.value,
|
|
1982
1982
|
autocomplete: V.fieldAutocomplete.value,
|
|
1983
1983
|
placeholder: e.placeholder,
|
|
@@ -1986,18 +1986,18 @@ const Da = ["color", "file", "time", "date", "datetime-local", "week", "month"],
|
|
|
1986
1986
|
type: e.type,
|
|
1987
1987
|
onFocus: o,
|
|
1988
1988
|
onBlur: u,
|
|
1989
|
-
"aria-labelledby": `${
|
|
1990
|
-
},
|
|
1991
|
-
return b(
|
|
1989
|
+
"aria-labelledby": `${j.value}-label`
|
|
1990
|
+
}, A, D), null);
|
|
1991
|
+
return b(ce, null, [e.prefix && b("span", {
|
|
1992
1992
|
class: "v-text-field__prefix"
|
|
1993
1993
|
}, [b("span", {
|
|
1994
1994
|
class: "v-text-field__prefix__text"
|
|
1995
|
-
}, [e.prefix])]),
|
|
1996
|
-
class:
|
|
1995
|
+
}, [e.prefix])]), Ue(l.default ? b("div", {
|
|
1996
|
+
class: re(f),
|
|
1997
1997
|
"data-no-activator": ""
|
|
1998
1998
|
}, [l.default({
|
|
1999
|
-
id:
|
|
2000
|
-
}),
|
|
1999
|
+
id: j
|
|
2000
|
+
}), ve]) : In(ve, {
|
|
2001
2001
|
class: f
|
|
2002
2002
|
}), [[cl, d, null, {
|
|
2003
2003
|
once: !0
|
|
@@ -2009,7 +2009,7 @@ const Da = ["color", "file", "time", "date", "datetime-local", "week", "month"],
|
|
|
2009
2009
|
}
|
|
2010
2010
|
});
|
|
2011
2011
|
},
|
|
2012
|
-
details:
|
|
2012
|
+
details: C ? (W) => b(ce, null, [l.details?.(W), w && b(ce, null, [b("span", null, null), g(wa, {
|
|
2013
2013
|
active: e.persistentCounter || c.value,
|
|
2014
2014
|
value: r.value,
|
|
2015
2015
|
max: s.value,
|
|
@@ -2018,10 +2018,10 @@ const Da = ["color", "file", "time", "date", "datetime-local", "week", "month"],
|
|
|
2018
2018
|
});
|
|
2019
2019
|
}), St({}, v, h, y);
|
|
2020
2020
|
}
|
|
2021
|
-
}), Ta =
|
|
2021
|
+
}), Ta = X({
|
|
2022
2022
|
renderless: Boolean,
|
|
2023
2023
|
...he()
|
|
2024
|
-
}, "VVirtualScrollItem"), Ba =
|
|
2024
|
+
}, "VVirtualScrollItem"), Ba = ie()({
|
|
2025
2025
|
name: "VVirtualScrollItem",
|
|
2026
2026
|
inheritAttrs: !1,
|
|
2027
2027
|
props: Ta(),
|
|
@@ -2038,9 +2038,9 @@ const Da = ["color", "file", "time", "date", "datetime-local", "week", "month"],
|
|
|
2038
2038
|
resizeRef: i,
|
|
2039
2039
|
contentRect: c
|
|
2040
2040
|
} = It(void 0, "border");
|
|
2041
|
-
|
|
2041
|
+
se(() => c.value?.height, (o) => {
|
|
2042
2042
|
o != null && n("update:height", o);
|
|
2043
|
-
}),
|
|
2043
|
+
}), de(() => e.renderless ? b(ce, null, [l.default?.({
|
|
2044
2044
|
itemRef: i
|
|
2045
2045
|
})]) : b("div", N({
|
|
2046
2046
|
ref: i,
|
|
@@ -2048,7 +2048,7 @@ const Da = ["color", "file", "time", "date", "datetime-local", "week", "month"],
|
|
|
2048
2048
|
style: e.style
|
|
2049
2049
|
}, t), [l.default?.()]));
|
|
2050
2050
|
}
|
|
2051
|
-
}), Ra = -1, Ea = 1, Nt = 100, Oa =
|
|
2051
|
+
}), Ra = -1, Ea = 1, Nt = 100, Oa = X({
|
|
2052
2052
|
itemHeight: {
|
|
2053
2053
|
type: [Number, String],
|
|
2054
2054
|
default: null
|
|
@@ -2060,17 +2060,17 @@ const Da = ["color", "file", "time", "date", "datetime-local", "week", "month"],
|
|
|
2060
2060
|
height: [Number, String]
|
|
2061
2061
|
}, "virtual");
|
|
2062
2062
|
function $a(e, a) {
|
|
2063
|
-
const t = Vl(), n =
|
|
2063
|
+
const t = Vl(), n = ee(0);
|
|
2064
2064
|
Ht(() => {
|
|
2065
2065
|
n.value = parseFloat(e.itemHeight || 0);
|
|
2066
2066
|
});
|
|
2067
|
-
const l =
|
|
2067
|
+
const l = ee(0), i = ee(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), c =
|
|
2073
|
+
) || 1), c = ee(0), o = ee(0), u = U(), d = U();
|
|
2074
2074
|
let r = 0;
|
|
2075
2075
|
const {
|
|
2076
2076
|
resizeRef: s,
|
|
@@ -2079,109 +2079,109 @@ function $a(e, a) {
|
|
|
2079
2079
|
Ht(() => {
|
|
2080
2080
|
s.value = u.value;
|
|
2081
2081
|
});
|
|
2082
|
-
const v =
|
|
2082
|
+
const v = I(() => u.value === document.documentElement ? t.height.value : m.value?.height || parseInt(e.height) || 0), h = I(() => !!(u.value && d.value && v.value && n.value));
|
|
2083
2083
|
let y = Array.from({
|
|
2084
2084
|
length: a.value.length
|
|
2085
2085
|
}), V = Array.from({
|
|
2086
2086
|
length: a.value.length
|
|
2087
2087
|
});
|
|
2088
|
-
const
|
|
2089
|
-
let
|
|
2090
|
-
function
|
|
2091
|
-
return y[
|
|
2088
|
+
const P = ee(0);
|
|
2089
|
+
let _ = -1;
|
|
2090
|
+
function S(B) {
|
|
2091
|
+
return y[B] || n.value;
|
|
2092
2092
|
}
|
|
2093
2093
|
const F = $n(() => {
|
|
2094
|
-
const
|
|
2094
|
+
const B = performance.now();
|
|
2095
2095
|
V[0] = 0;
|
|
2096
|
-
const
|
|
2097
|
-
for (let p = 1; p <=
|
|
2098
|
-
V[p] = (V[p - 1] || 0) +
|
|
2099
|
-
|
|
2100
|
-
},
|
|
2101
|
-
|
|
2096
|
+
const O = a.value.length;
|
|
2097
|
+
for (let p = 1; p <= O; p++)
|
|
2098
|
+
V[p] = (V[p - 1] || 0) + S(p - 1);
|
|
2099
|
+
P.value = Math.max(P.value, performance.now() - B);
|
|
2100
|
+
}, P), E = se(h, (B) => {
|
|
2101
|
+
B && (E(), r = d.value.offsetTop, F.immediate(), ue(), ~_ && Se(() => {
|
|
2102
2102
|
ct && window.requestAnimationFrame(() => {
|
|
2103
|
-
|
|
2103
|
+
z(_), _ = -1;
|
|
2104
2104
|
});
|
|
2105
2105
|
}));
|
|
2106
2106
|
});
|
|
2107
2107
|
rt(() => {
|
|
2108
2108
|
F.clear();
|
|
2109
2109
|
});
|
|
2110
|
-
function
|
|
2111
|
-
const p = y[
|
|
2112
|
-
n.value = f ? Math.min(n.value,
|
|
2110
|
+
function K(B, O) {
|
|
2111
|
+
const p = y[B], f = n.value;
|
|
2112
|
+
n.value = f ? Math.min(n.value, O) : O, (p !== O || f !== n.value) && (y[B] = O, F());
|
|
2113
2113
|
}
|
|
2114
|
-
function
|
|
2115
|
-
|
|
2116
|
-
const
|
|
2117
|
-
return
|
|
2114
|
+
function w(B) {
|
|
2115
|
+
B = Ne(B, 0, a.value.length);
|
|
2116
|
+
const O = Math.floor(B), p = B % 1, f = O + 1, A = V[O] || 0, J = V[f] || A;
|
|
2117
|
+
return A + (J - A) * p;
|
|
2118
2118
|
}
|
|
2119
|
-
function
|
|
2120
|
-
return Ma(V,
|
|
2119
|
+
function C(B) {
|
|
2120
|
+
return Ma(V, B);
|
|
2121
2121
|
}
|
|
2122
|
-
let
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
D = 0,
|
|
2122
|
+
let $ = 0, D = 0, G = 0;
|
|
2123
|
+
se(v, (B, O) => {
|
|
2124
|
+
ue(), B < O && requestAnimationFrame(() => {
|
|
2125
|
+
D = 0, ue();
|
|
2126
2126
|
});
|
|
2127
2127
|
});
|
|
2128
|
-
let
|
|
2128
|
+
let ne = -1;
|
|
2129
2129
|
function H() {
|
|
2130
2130
|
if (!u.value || !d.value) return;
|
|
2131
|
-
const
|
|
2132
|
-
|
|
2131
|
+
const B = u.value.scrollTop, O = performance.now();
|
|
2132
|
+
O - G > 500 ? (D = Math.sign(B - $), r = d.value.offsetTop) : D = B - $, $ = B, G = O, window.clearTimeout(ne), ne = window.setTimeout(W, 500), ue();
|
|
2133
2133
|
}
|
|
2134
|
-
function
|
|
2135
|
-
!u.value || !d.value || (D = 0,
|
|
2134
|
+
function W() {
|
|
2135
|
+
!u.value || !d.value || (D = 0, G = 0, window.clearTimeout(ne), ue());
|
|
2136
2136
|
}
|
|
2137
|
-
let
|
|
2138
|
-
function
|
|
2139
|
-
cancelAnimationFrame(
|
|
2137
|
+
let j = -1;
|
|
2138
|
+
function ue() {
|
|
2139
|
+
cancelAnimationFrame(j), j = requestAnimationFrame(q);
|
|
2140
2140
|
}
|
|
2141
|
-
function
|
|
2141
|
+
function q() {
|
|
2142
2142
|
if (!u.value || !v.value || !n.value) return;
|
|
2143
|
-
const
|
|
2143
|
+
const B = $ - r, O = Math.sign(D), p = Math.max(0, B - Nt), f = Ne(C(p), 0, a.value.length), A = B + v.value + Nt, J = Ne(C(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
|
|
2147
|
-
(
|
|
2147
|
+
(O !== Ra || f < l.value) && (O !== Ea || J > i.value)
|
|
2148
2148
|
) {
|
|
2149
|
-
const
|
|
2150
|
-
Math.max(
|
|
2149
|
+
const ve = w(l.value) - w(f), ge = w(J) - w(i.value);
|
|
2150
|
+
Math.max(ve, ge) > Nt ? (l.value = f, i.value = J) : (f <= 0 && (l.value = f), J >= a.value.length && (i.value = J));
|
|
2151
2151
|
}
|
|
2152
|
-
c.value =
|
|
2152
|
+
c.value = w(l.value), o.value = w(a.value.length) - w(i.value);
|
|
2153
2153
|
}
|
|
2154
|
-
function
|
|
2155
|
-
const
|
|
2156
|
-
!u.value ||
|
|
2154
|
+
function z(B) {
|
|
2155
|
+
const O = w(B);
|
|
2156
|
+
!u.value || B && !O ? _ = B : u.value.scrollTop = O;
|
|
2157
2157
|
}
|
|
2158
|
-
const
|
|
2159
|
-
const p =
|
|
2158
|
+
const fe = I(() => a.value.slice(l.value, i.value).map((B, O) => {
|
|
2159
|
+
const p = O + l.value;
|
|
2160
2160
|
return {
|
|
2161
|
-
raw:
|
|
2161
|
+
raw: B,
|
|
2162
2162
|
index: p,
|
|
2163
|
-
key: zl(
|
|
2163
|
+
key: zl(B, e.itemKey, p)
|
|
2164
2164
|
};
|
|
2165
2165
|
}));
|
|
2166
|
-
return
|
|
2166
|
+
return se(a, () => {
|
|
2167
2167
|
y = Array.from({
|
|
2168
2168
|
length: a.value.length
|
|
2169
2169
|
}), V = Array.from({
|
|
2170
2170
|
length: a.value.length
|
|
2171
|
-
}), F.immediate(),
|
|
2171
|
+
}), F.immediate(), ue();
|
|
2172
2172
|
}, {
|
|
2173
2173
|
deep: 1
|
|
2174
2174
|
}), {
|
|
2175
|
-
calculateVisibleItems:
|
|
2175
|
+
calculateVisibleItems: ue,
|
|
2176
2176
|
containerRef: u,
|
|
2177
2177
|
markerRef: d,
|
|
2178
|
-
computedItems:
|
|
2178
|
+
computedItems: fe,
|
|
2179
2179
|
paddingTop: c,
|
|
2180
2180
|
paddingBottom: o,
|
|
2181
|
-
scrollToIndex:
|
|
2181
|
+
scrollToIndex: z,
|
|
2182
2182
|
handleScroll: H,
|
|
2183
|
-
handleScrollend:
|
|
2184
|
-
handleItemResize:
|
|
2183
|
+
handleScrollend: W,
|
|
2184
|
+
handleItemResize: K
|
|
2185
2185
|
};
|
|
2186
2186
|
}
|
|
2187
2187
|
function Ma(e, a) {
|
|
@@ -2196,7 +2196,7 @@ function Ma(e, a) {
|
|
|
2196
2196
|
else return i === a ? l : n;
|
|
2197
2197
|
return c;
|
|
2198
2198
|
}
|
|
2199
|
-
const Na =
|
|
2199
|
+
const Na = X({
|
|
2200
2200
|
items: {
|
|
2201
2201
|
type: Array,
|
|
2202
2202
|
default: () => []
|
|
@@ -2205,7 +2205,7 @@ const Na = Q({
|
|
|
2205
2205
|
...Oa(),
|
|
2206
2206
|
...he(),
|
|
2207
2207
|
...pt()
|
|
2208
|
-
}, "VVirtualScroll"), cn =
|
|
2208
|
+
}, "VVirtualScroll"), cn = ie()({
|
|
2209
2209
|
name: "VVirtualScroll",
|
|
2210
2210
|
props: Na(),
|
|
2211
2211
|
setup(e, a) {
|
|
@@ -2225,32 +2225,32 @@ const Na = Q({
|
|
|
2225
2225
|
paddingTop: m,
|
|
2226
2226
|
paddingBottom: v,
|
|
2227
2227
|
computedItems: h
|
|
2228
|
-
} = $a(e,
|
|
2228
|
+
} = $a(e, R(() => e.items));
|
|
2229
2229
|
return Kt(() => e.renderless, () => {
|
|
2230
2230
|
function y() {
|
|
2231
|
-
const
|
|
2232
|
-
c.value === document.documentElement ? (document[
|
|
2231
|
+
const P = (arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1) ? "addEventListener" : "removeEventListener";
|
|
2232
|
+
c.value === document.documentElement ? (document[P]("scroll", u, {
|
|
2233
2233
|
passive: !0
|
|
2234
|
-
}), document[
|
|
2234
|
+
}), document[P]("scrollend", d)) : (c.value?.[P]("scroll", u, {
|
|
2235
2235
|
passive: !0
|
|
2236
|
-
}), c.value?.[
|
|
2236
|
+
}), c.value?.[P]("scrollend", d));
|
|
2237
2237
|
}
|
|
2238
2238
|
at(() => {
|
|
2239
2239
|
c.value = Mn(n.vnode.el, !0), y(!0);
|
|
2240
2240
|
}), rt(y);
|
|
2241
|
-
}),
|
|
2241
|
+
}), de(() => {
|
|
2242
2242
|
const y = h.value.map((V) => g(Ba, {
|
|
2243
2243
|
key: V.key,
|
|
2244
2244
|
renderless: e.renderless,
|
|
2245
|
-
"onUpdate:height": (
|
|
2245
|
+
"onUpdate:height": (P) => r(V.index, P)
|
|
2246
2246
|
}, {
|
|
2247
|
-
default: (
|
|
2247
|
+
default: (P) => t.default?.({
|
|
2248
2248
|
item: V.raw,
|
|
2249
2249
|
index: V.index,
|
|
2250
|
-
...
|
|
2250
|
+
...P
|
|
2251
2251
|
})
|
|
2252
2252
|
}));
|
|
2253
|
-
return e.renderless ? b(
|
|
2253
|
+
return e.renderless ? b(ce, null, [b("div", {
|
|
2254
2254
|
ref: o,
|
|
2255
2255
|
class: "v-virtual-scroll__spacer",
|
|
2256
2256
|
style: {
|
|
@@ -2263,10 +2263,10 @@ const Na = Q({
|
|
|
2263
2263
|
}
|
|
2264
2264
|
}, null)]) : b("div", {
|
|
2265
2265
|
ref: c,
|
|
2266
|
-
class:
|
|
2266
|
+
class: re(["v-virtual-scroll", e.class]),
|
|
2267
2267
|
onScrollPassive: u,
|
|
2268
2268
|
onScrollend: d,
|
|
2269
|
-
style:
|
|
2269
|
+
style: xe([l.value, e.style])
|
|
2270
2270
|
}, [b("div", {
|
|
2271
2271
|
ref: o,
|
|
2272
2272
|
class: "v-virtual-scroll__container",
|
|
@@ -2282,7 +2282,7 @@ const Na = Q({
|
|
|
2282
2282
|
}
|
|
2283
2283
|
});
|
|
2284
2284
|
function dn(e, a) {
|
|
2285
|
-
const t =
|
|
2285
|
+
const t = ee(!1);
|
|
2286
2286
|
let n;
|
|
2287
2287
|
function l(o) {
|
|
2288
2288
|
cancelAnimationFrame(n), t.value = !0, n = requestAnimationFrame(() => {
|
|
@@ -2294,7 +2294,7 @@ function dn(e, a) {
|
|
|
2294
2294
|
async function i() {
|
|
2295
2295
|
await new Promise((o) => requestAnimationFrame(o)), await new Promise((o) => requestAnimationFrame(o)), await new Promise((o) => requestAnimationFrame(o)), await new Promise((o) => {
|
|
2296
2296
|
if (t.value) {
|
|
2297
|
-
const u =
|
|
2297
|
+
const u = se(t, () => {
|
|
2298
2298
|
u(), o();
|
|
2299
2299
|
});
|
|
2300
2300
|
} else o();
|
|
@@ -2388,7 +2388,7 @@ function Lt(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 fn =
|
|
2391
|
+
const fn = X({
|
|
2392
2392
|
customFilter: Function,
|
|
2393
2393
|
customKeyFilter: Object,
|
|
2394
2394
|
filterKeys: [Array, String],
|
|
@@ -2399,11 +2399,11 @@ const fn = Q({
|
|
|
2399
2399
|
noFilter: Boolean
|
|
2400
2400
|
}, "filter");
|
|
2401
2401
|
function Ha(e, a, t) {
|
|
2402
|
-
const n = [], l = t?.default ?? La, i = t?.filterKeys ?
|
|
2402
|
+
const n = [], l = t?.default ?? La, i = t?.filterKeys ? Te(t.filterKeys) : !1, c = Object.keys(t?.customKeyFilter ?? {}).length;
|
|
2403
2403
|
if (!e?.length) return n;
|
|
2404
2404
|
let o = [];
|
|
2405
2405
|
e: for (let u = 0; u < e.length; u++) {
|
|
2406
|
-
const [d, r = d] =
|
|
2406
|
+
const [d, r = d] = Te(e[u]), s = {}, m = {};
|
|
2407
2407
|
let v = -1;
|
|
2408
2408
|
if ((a || c > 0) && !t?.noFilter) {
|
|
2409
2409
|
let h = !1;
|
|
@@ -2416,12 +2416,12 @@ function Ha(e, a, t) {
|
|
|
2416
2416
|
});
|
|
2417
2417
|
continue;
|
|
2418
2418
|
}
|
|
2419
|
-
const
|
|
2420
|
-
h =
|
|
2421
|
-
for (const
|
|
2422
|
-
const
|
|
2423
|
-
if (v = F ? F(
|
|
2424
|
-
F ? s[
|
|
2419
|
+
const P = i || Object.keys(r);
|
|
2420
|
+
h = P.length === c;
|
|
2421
|
+
for (const _ of P) {
|
|
2422
|
+
const S = zl(r, _), F = t?.customKeyFilter?.[_];
|
|
2423
|
+
if (v = F ? F(S, a, d) : l(S, a, d), v !== -1 && v !== !1)
|
|
2424
|
+
F ? s[_] = Lt(v, a) : m[_] = Lt(v, a);
|
|
2425
2425
|
else if (t?.filterMode === "every")
|
|
2426
2426
|
continue e;
|
|
2427
2427
|
}
|
|
@@ -2441,7 +2441,7 @@ function Ha(e, a, t) {
|
|
|
2441
2441
|
return n;
|
|
2442
2442
|
}
|
|
2443
2443
|
function mn(e, a, t, n) {
|
|
2444
|
-
const l =
|
|
2444
|
+
const l = ee([]), i = ee(/* @__PURE__ */ new Map()), c = I(() => n?.transform ? L(a).map((u) => [u, n.transform(u)]) : L(a));
|
|
2445
2445
|
Ht(() => {
|
|
2446
2446
|
const u = typeof t == "function" ? t() : L(t), d = typeof u != "string" && typeof u != "number" ? "" : String(u), r = Ha(c.value, d, {
|
|
2447
2447
|
customKeyFilter: {
|
|
@@ -2458,8 +2458,8 @@ function mn(e, a, t, n) {
|
|
|
2458
2458
|
index: y,
|
|
2459
2459
|
matches: V
|
|
2460
2460
|
} = h;
|
|
2461
|
-
const
|
|
2462
|
-
m.push(
|
|
2461
|
+
const P = s[y];
|
|
2462
|
+
m.push(P), v.set(P.value, V);
|
|
2463
2463
|
}), l.value = m, i.value = v;
|
|
2464
2464
|
});
|
|
2465
2465
|
function o(u) {
|
|
@@ -2474,16 +2474,16 @@ function mn(e, a, t, n) {
|
|
|
2474
2474
|
function gn(e, a, t) {
|
|
2475
2475
|
return t == null || !t.length ? a : t.map((n, l) => {
|
|
2476
2476
|
const i = l === 0 ? 0 : t[l - 1][1], c = [b("span", {
|
|
2477
|
-
class:
|
|
2477
|
+
class: re(`${e}__unmask`)
|
|
2478
2478
|
}, [a.slice(i, n[0])]), b("span", {
|
|
2479
|
-
class:
|
|
2479
|
+
class: re(`${e}__mask`)
|
|
2480
2480
|
}, [a.slice(n[0], n[1])])];
|
|
2481
2481
|
return l === t.length - 1 && c.push(b("span", {
|
|
2482
|
-
class:
|
|
2483
|
-
}, [a.slice(n[1])])), b(
|
|
2482
|
+
class: re(`${e}__unmask`)
|
|
2483
|
+
}, [a.slice(n[1])])), b(ce, null, [c]);
|
|
2484
2484
|
});
|
|
2485
2485
|
}
|
|
2486
|
-
const za =
|
|
2486
|
+
const za = X({
|
|
2487
2487
|
closeText: {
|
|
2488
2488
|
type: String,
|
|
2489
2489
|
default: "$vuetify.close"
|
|
@@ -2494,14 +2494,14 @@ const za = Q({
|
|
|
2494
2494
|
}
|
|
2495
2495
|
}, "autocomplete");
|
|
2496
2496
|
function yn(e, a) {
|
|
2497
|
-
const t = Xe(), n =
|
|
2497
|
+
const t = Xe(), n = I(() => `menu-${t}`), l = R(() => zt(a)), i = R(() => n.value);
|
|
2498
2498
|
return {
|
|
2499
2499
|
menuId: n,
|
|
2500
2500
|
ariaExpanded: l,
|
|
2501
2501
|
ariaControls: i
|
|
2502
2502
|
};
|
|
2503
2503
|
}
|
|
2504
|
-
const hn =
|
|
2504
|
+
const hn = X({
|
|
2505
2505
|
chips: Boolean,
|
|
2506
2506
|
closableChips: Boolean,
|
|
2507
2507
|
eager: Boolean,
|
|
@@ -2530,7 +2530,7 @@ const hn = Q({
|
|
|
2530
2530
|
...Ln({
|
|
2531
2531
|
itemChildren: !1
|
|
2532
2532
|
})
|
|
2533
|
-
}, "Select"), Ua =
|
|
2533
|
+
}, "Select"), Ua = X({
|
|
2534
2534
|
search: String,
|
|
2535
2535
|
...fn({
|
|
2536
2536
|
filterKeys: ["title"]
|
|
@@ -2545,7 +2545,7 @@ const hn = Q({
|
|
|
2545
2545
|
component: Wl
|
|
2546
2546
|
}
|
|
2547
2547
|
})
|
|
2548
|
-
}, "VSelect"), _o =
|
|
2548
|
+
}, "VSelect"), _o = ie()({
|
|
2549
2549
|
name: "VSelect",
|
|
2550
2550
|
props: Ua(),
|
|
2551
2551
|
emits: {
|
|
@@ -2560,48 +2560,48 @@ const hn = Q({
|
|
|
2560
2560
|
} = a;
|
|
2561
2561
|
const {
|
|
2562
2562
|
t: n
|
|
2563
|
-
} = it(), l =
|
|
2563
|
+
} = it(), l = U(), i = U(), c = U(), o = U(), u = U(), {
|
|
2564
2564
|
items: d,
|
|
2565
2565
|
transformIn: r,
|
|
2566
2566
|
transformOut: s
|
|
2567
|
-
} = Ul(e), m =
|
|
2567
|
+
} = Ul(e), m = Ve(e, "search", ""), {
|
|
2568
2568
|
filteredItems: v,
|
|
2569
2569
|
getMatches: h
|
|
2570
|
-
} = mn(e, d, () => m.value), y =
|
|
2571
|
-
const
|
|
2572
|
-
return e.multiple ?
|
|
2573
|
-
}), V =
|
|
2574
|
-
InputIcon:
|
|
2570
|
+
} = mn(e, d, () => m.value), y = Ve(e, "modelValue", [], (x) => r(x === null ? [null] : Te(x)), (x) => {
|
|
2571
|
+
const Q = s(x);
|
|
2572
|
+
return e.multiple ? Q : Q[0] ?? null;
|
|
2573
|
+
}), V = I(() => typeof e.counterValue == "function" ? e.counterValue(y.value) : typeof e.counterValue == "number" ? e.counterValue : y.value.length), P = Ot(e), _ = rn(e), S = I(() => y.value.map((x) => x.value)), F = ee(!1), E = R(() => e.closableChips && !P.isReadonly.value && !P.isDisabled.value), {
|
|
2574
|
+
InputIcon: K
|
|
2575
2575
|
} = Et(e);
|
|
2576
|
-
let
|
|
2577
|
-
const D =
|
|
2578
|
-
const
|
|
2579
|
-
return e.hideSelected ?
|
|
2580
|
-
}),
|
|
2581
|
-
get: () =>
|
|
2582
|
-
set: (
|
|
2583
|
-
|
|
2576
|
+
let w = "", C = 0, $;
|
|
2577
|
+
const D = I(() => {
|
|
2578
|
+
const x = m.value ? v.value : d.value;
|
|
2579
|
+
return e.hideSelected ? x.filter((Q) => !y.value.some((te) => (e.valueComparator || qe)(te, Q))) : x;
|
|
2580
|
+
}), G = I(() => e.hideNoData && !D.value.length || P.isReadonly.value || P.isDisabled.value), ne = Ve(e, "menu"), H = I({
|
|
2581
|
+
get: () => ne.value,
|
|
2582
|
+
set: (x) => {
|
|
2583
|
+
ne.value && !x && i.value?.ΨopenChildren.size || x && G.value || (ne.value = x);
|
|
2584
2584
|
}
|
|
2585
2585
|
}), {
|
|
2586
|
-
menuId:
|
|
2587
|
-
ariaExpanded:
|
|
2588
|
-
ariaControls:
|
|
2589
|
-
} = yn(e, H),
|
|
2586
|
+
menuId: W,
|
|
2587
|
+
ariaExpanded: j,
|
|
2588
|
+
ariaControls: ue
|
|
2589
|
+
} = yn(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
|
-
})),
|
|
2597
|
-
onTabKeydown:
|
|
2596
|
+
})), z = U(), fe = dn(z, l), {
|
|
2597
|
+
onTabKeydown: B
|
|
2598
2598
|
} = vn({
|
|
2599
2599
|
groups: [{
|
|
2600
2600
|
type: "element",
|
|
2601
2601
|
contentRef: c
|
|
2602
2602
|
}, {
|
|
2603
2603
|
type: "list",
|
|
2604
|
-
contentRef:
|
|
2604
|
+
contentRef: z,
|
|
2605
2605
|
displayItemsCount: () => D.value.length
|
|
2606
2606
|
}, {
|
|
2607
2607
|
type: "element",
|
|
@@ -2611,120 +2611,123 @@ const hn = Q({
|
|
|
2611
2611
|
H.value = !1, l.value?.focus();
|
|
2612
2612
|
}
|
|
2613
2613
|
});
|
|
2614
|
-
function
|
|
2614
|
+
function O(x) {
|
|
2615
2615
|
e.openOnClear && (H.value = !0);
|
|
2616
2616
|
}
|
|
2617
2617
|
function p() {
|
|
2618
|
-
|
|
2618
|
+
G.value || (H.value = !H.value);
|
|
2619
2619
|
}
|
|
2620
|
-
function f(
|
|
2621
|
-
|
|
2620
|
+
function f(x) {
|
|
2621
|
+
x.key === "Tab" && B(x), z.value?.$el.contains(x.target) && wt(x) && A(x);
|
|
2622
2622
|
}
|
|
2623
|
-
function
|
|
2624
|
-
if (!
|
|
2625
|
-
if (["Enter", " ", "ArrowDown", "ArrowUp", "Home", "End"].includes(
|
|
2626
|
-
|
|
2623
|
+
function A(x) {
|
|
2624
|
+
if (!x.key || P.isReadonly.value) return;
|
|
2625
|
+
if (["Enter", " ", "ArrowDown", "ArrowUp", "Home", "End"].includes(x.key) && x.preventDefault(), ["Enter", "ArrowDown", " "].includes(x.key) && (H.value = !0), ["Escape", "Tab"].includes(x.key) && (H.value = !1), e.clearable && x.key === "Backspace") {
|
|
2626
|
+
x.preventDefault(), y.value = [], O();
|
|
2627
2627
|
return;
|
|
2628
2628
|
}
|
|
2629
|
-
|
|
2630
|
-
const
|
|
2631
|
-
if (!wt(
|
|
2632
|
-
const
|
|
2633
|
-
|
|
2634
|
-
const
|
|
2635
|
-
function
|
|
2636
|
-
let
|
|
2637
|
-
return
|
|
2629
|
+
x.key === "Home" ? z.value?.focus("first") : x.key === "End" && z.value?.focus("last");
|
|
2630
|
+
const Q = 1e3;
|
|
2631
|
+
if (!wt(x)) return;
|
|
2632
|
+
const te = performance.now();
|
|
2633
|
+
te - $ > Q && (w = "", C = 0), w += x.key.toLowerCase(), $ = te;
|
|
2634
|
+
const Be = D.value;
|
|
2635
|
+
function Pe() {
|
|
2636
|
+
let T = we();
|
|
2637
|
+
return T || w.at(-1) === w.at(-2) && (w = w.slice(0, -1), C++, T = we(), T) || (C = 0, T = we(), T) ? T : (w = x.key.toLowerCase(), we());
|
|
2638
2638
|
}
|
|
2639
|
-
function
|
|
2640
|
-
for (let
|
|
2641
|
-
const
|
|
2642
|
-
if (
|
|
2643
|
-
return [
|
|
2639
|
+
function we() {
|
|
2640
|
+
for (let T = C; T < Be.length; T++) {
|
|
2641
|
+
const le = Be[T];
|
|
2642
|
+
if (le.title.toLowerCase().startsWith(w))
|
|
2643
|
+
return [le, T];
|
|
2644
2644
|
}
|
|
2645
2645
|
}
|
|
2646
|
-
const
|
|
2647
|
-
if (!
|
|
2648
|
-
const [
|
|
2649
|
-
|
|
2646
|
+
const k = Pe();
|
|
2647
|
+
if (!k) return;
|
|
2648
|
+
const [Y, M] = k;
|
|
2649
|
+
C = M, z.value?.focus(M), e.multiple || (y.value = [Y]);
|
|
2650
2650
|
}
|
|
2651
|
-
function
|
|
2652
|
-
let
|
|
2653
|
-
if (!
|
|
2651
|
+
function J(x) {
|
|
2652
|
+
let Q = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;
|
|
2653
|
+
if (!x.props.disabled)
|
|
2654
2654
|
if (e.multiple) {
|
|
2655
|
-
const
|
|
2656
|
-
if (~
|
|
2657
|
-
const
|
|
2658
|
-
|
|
2659
|
-
} else
|
|
2655
|
+
const te = y.value.findIndex((Pe) => (e.valueComparator || qe)(Pe.value, x.value)), Be = Q ?? !~te;
|
|
2656
|
+
if (~te) {
|
|
2657
|
+
const Pe = Be ? [...y.value, x] : [...y.value];
|
|
2658
|
+
Pe.splice(te, 1), y.value = Pe;
|
|
2659
|
+
} else Be && (y.value = [...y.value, x]);
|
|
2660
2660
|
} else {
|
|
2661
|
-
const
|
|
2662
|
-
y.value =
|
|
2661
|
+
const te = Q !== !1;
|
|
2662
|
+
y.value = te ? [x] : [], Se(() => {
|
|
2663
2663
|
H.value = !1;
|
|
2664
2664
|
});
|
|
2665
2665
|
}
|
|
2666
2666
|
}
|
|
2667
|
-
function
|
|
2668
|
-
const
|
|
2669
|
-
l.value?.$el.contains(
|
|
2667
|
+
function ve(x) {
|
|
2668
|
+
const Q = x.target;
|
|
2669
|
+
l.value?.$el.contains(Q) || (H.value = !1);
|
|
2670
2670
|
}
|
|
2671
|
-
function
|
|
2672
|
-
return D.value.findIndex((
|
|
2671
|
+
function ge() {
|
|
2672
|
+
return D.value.findIndex((x) => y.value.some((Q) => (e.valueComparator || qe)(Q.value, x.value)));
|
|
2673
2673
|
}
|
|
2674
2674
|
function be() {
|
|
2675
2675
|
if (!y.value.length) return -1;
|
|
2676
|
-
const
|
|
2677
|
-
let
|
|
2678
|
-
for (const
|
|
2679
|
-
if (y.value.some((
|
|
2680
|
-
|
|
2676
|
+
const x = e.valueComparator || qe;
|
|
2677
|
+
let Q = 0;
|
|
2678
|
+
for (const te of D.value) {
|
|
2679
|
+
if (y.value.some((Pe) => x(Pe.value, te.value))) return te.props.disabled ? -1 : Q;
|
|
2680
|
+
te.props.disabled || Q++;
|
|
2681
2681
|
}
|
|
2682
2682
|
return -1;
|
|
2683
2683
|
}
|
|
2684
|
-
function
|
|
2685
|
-
if (e.eager && u.value?.calculateVisibleItems(),
|
|
2686
|
-
const
|
|
2687
|
-
|
|
2684
|
+
function Ie() {
|
|
2685
|
+
if (e.eager && u.value?.calculateVisibleItems(), z.value && F.value) {
|
|
2686
|
+
const x = be();
|
|
2687
|
+
z.value.focus(x >= 0 ? x : "first");
|
|
2688
2688
|
}
|
|
2689
2689
|
}
|
|
2690
|
-
function
|
|
2690
|
+
function De() {
|
|
2691
2691
|
m.value = "", F.value && l.value?.focus();
|
|
2692
2692
|
}
|
|
2693
|
-
function
|
|
2693
|
+
function je(x) {
|
|
2694
2694
|
F.value = !0;
|
|
2695
2695
|
}
|
|
2696
|
-
function Qe(
|
|
2697
|
-
|
|
2696
|
+
function Qe(x) {
|
|
2697
|
+
l.value?.$el.contains(x.relatedTarget) || (F.value = !1);
|
|
2698
|
+
}
|
|
2699
|
+
function ut(x) {
|
|
2700
|
+
if (x == null) y.value = [];
|
|
2698
2701
|
else if (dt(l.value, ":autofill") || dt(l.value, ":-webkit-autofill")) {
|
|
2699
|
-
const
|
|
2700
|
-
|
|
2702
|
+
const Q = d.value.find((te) => te.title === x);
|
|
2703
|
+
Q && J(Q);
|
|
2701
2704
|
} else l.value && (l.value.value = "");
|
|
2702
2705
|
}
|
|
2703
|
-
return
|
|
2706
|
+
return se(H, () => {
|
|
2704
2707
|
if (!e.hideSelected && H.value && y.value.length) {
|
|
2705
|
-
const
|
|
2708
|
+
const x = ge();
|
|
2706
2709
|
ct && !e.noAutoScroll && window.requestAnimationFrame(() => {
|
|
2707
|
-
|
|
2710
|
+
x >= 0 && u.value?.scrollToIndex(x);
|
|
2708
2711
|
});
|
|
2709
2712
|
}
|
|
2710
|
-
}),
|
|
2711
|
-
H.value || F.value && e.hideNoData && !
|
|
2712
|
-
}),
|
|
2713
|
-
const
|
|
2713
|
+
}), se(d, (x, Q) => {
|
|
2714
|
+
H.value || F.value && e.hideNoData && !Q.length && x.length && (H.value = !0);
|
|
2715
|
+
}), de(() => {
|
|
2716
|
+
const x = !!(e.chips || t.chip), Q = !!(!e.hideNoData || D.value.length || t["prepend-item"] || t["append-item"] || t["no-data"]), te = y.value.length > 0, Be = Je.filterProps(e), Pe = te || !F.value && e.label && !e.persistentPlaceholder ? void 0 : e.placeholder, we = {
|
|
2714
2717
|
search: m,
|
|
2715
2718
|
filteredItems: v.value
|
|
2716
2719
|
};
|
|
2717
2720
|
return g(Je, N({
|
|
2718
2721
|
ref: l
|
|
2719
|
-
},
|
|
2720
|
-
modelValue: y.value.map((
|
|
2722
|
+
}, Be, {
|
|
2723
|
+
modelValue: y.value.map((k) => k.props.title).join(", "),
|
|
2721
2724
|
name: void 0,
|
|
2722
|
-
"onUpdate:modelValue":
|
|
2725
|
+
"onUpdate:modelValue": ut,
|
|
2723
2726
|
focused: F.value,
|
|
2724
|
-
"onUpdate:focused": (
|
|
2727
|
+
"onUpdate:focused": (k) => F.value = k,
|
|
2725
2728
|
validationValue: y.externalValue,
|
|
2726
2729
|
counterValue: V.value,
|
|
2727
|
-
dirty:
|
|
2730
|
+
dirty: te,
|
|
2728
2731
|
class: ["v-select", {
|
|
2729
2732
|
"v-select--active-menu": H.value,
|
|
2730
2733
|
"v-select--chips": !!e.chips,
|
|
@@ -2734,61 +2737,62 @@ const hn = Q({
|
|
|
2734
2737
|
}, e.class],
|
|
2735
2738
|
style: e.style,
|
|
2736
2739
|
inputmode: "none",
|
|
2737
|
-
placeholder:
|
|
2738
|
-
"onClick:clear":
|
|
2740
|
+
placeholder: Pe,
|
|
2741
|
+
"onClick:clear": O,
|
|
2739
2742
|
"onMousedown:control": p,
|
|
2740
|
-
onBlur:
|
|
2741
|
-
onKeydown:
|
|
2742
|
-
"aria-expanded":
|
|
2743
|
-
"aria-controls":
|
|
2743
|
+
onBlur: ve,
|
|
2744
|
+
onKeydown: A,
|
|
2745
|
+
"aria-expanded": j.value,
|
|
2746
|
+
"aria-controls": ue.value
|
|
2744
2747
|
}), {
|
|
2745
2748
|
...t,
|
|
2746
|
-
default: (
|
|
2749
|
+
default: (k) => {
|
|
2747
2750
|
let {
|
|
2748
|
-
id:
|
|
2749
|
-
} =
|
|
2750
|
-
return b(
|
|
2751
|
+
id: Y
|
|
2752
|
+
} = k;
|
|
2753
|
+
return b(ce, null, [b("select", {
|
|
2751
2754
|
hidden: !0,
|
|
2752
2755
|
multiple: e.multiple,
|
|
2753
|
-
name:
|
|
2754
|
-
}, [d.value.map((
|
|
2755
|
-
key:
|
|
2756
|
-
value:
|
|
2757
|
-
selected:
|
|
2756
|
+
name: _.fieldName.value
|
|
2757
|
+
}, [d.value.map((M) => b("option", {
|
|
2758
|
+
key: M.value,
|
|
2759
|
+
value: M.value,
|
|
2760
|
+
selected: S.value.includes(M.value)
|
|
2758
2761
|
}, null))]), g(Kl, N({
|
|
2759
|
-
id:
|
|
2762
|
+
id: W.value,
|
|
2760
2763
|
ref: i,
|
|
2761
2764
|
modelValue: H.value,
|
|
2762
|
-
"onUpdate:modelValue": (
|
|
2765
|
+
"onUpdate:modelValue": (M) => H.value = M,
|
|
2763
2766
|
activator: "parent",
|
|
2764
2767
|
contentClass: "v-select__content",
|
|
2765
|
-
disabled:
|
|
2768
|
+
disabled: G.value,
|
|
2766
2769
|
eager: e.eager,
|
|
2767
2770
|
maxHeight: 310,
|
|
2768
2771
|
openOnClick: !1,
|
|
2769
2772
|
closeOnContentClick: !1,
|
|
2770
2773
|
transition: e.transition,
|
|
2771
|
-
onAfterEnter:
|
|
2772
|
-
onAfterLeave:
|
|
2773
|
-
},
|
|
2774
|
+
onAfterEnter: Ie,
|
|
2775
|
+
onAfterLeave: De
|
|
2776
|
+
}, q.value), {
|
|
2774
2777
|
default: () => [g(ol, {
|
|
2775
|
-
onFocusin:
|
|
2778
|
+
onFocusin: je,
|
|
2779
|
+
onFocusout: Qe,
|
|
2776
2780
|
onKeydown: f
|
|
2777
2781
|
}, {
|
|
2778
2782
|
default: () => [t["menu-header"] && b("header", {
|
|
2779
2783
|
ref: c
|
|
2780
|
-
}, [t["menu-header"](
|
|
2784
|
+
}, [t["menu-header"](we)]), Q && g(nl, N({
|
|
2781
2785
|
key: "select-list",
|
|
2782
|
-
ref:
|
|
2783
|
-
selected:
|
|
2786
|
+
ref: z,
|
|
2787
|
+
selected: S.value,
|
|
2784
2788
|
selectStrategy: e.multiple ? "independent" : "single-independent",
|
|
2785
2789
|
tabindex: "-1",
|
|
2786
2790
|
selectable: !!D.value.length,
|
|
2787
2791
|
"aria-live": "polite",
|
|
2788
|
-
"aria-labelledby": `${
|
|
2792
|
+
"aria-labelledby": `${Y.value}-label`,
|
|
2789
2793
|
"aria-multiselectable": e.multiple,
|
|
2790
2794
|
color: e.itemColor ?? e.color
|
|
2791
|
-
},
|
|
2795
|
+
}, fe, e.listProps), {
|
|
2792
2796
|
default: () => [t["prepend-item"]?.(), !D.value.length && !e.hideNoData && (t["no-data"]?.() ?? g(vt, {
|
|
2793
2797
|
key: "no-data",
|
|
2794
2798
|
title: n(e.noDataText)
|
|
@@ -2798,123 +2802,123 @@ const hn = Q({
|
|
|
2798
2802
|
items: D.value,
|
|
2799
2803
|
itemKey: "value"
|
|
2800
2804
|
}, {
|
|
2801
|
-
default: (
|
|
2805
|
+
default: (M) => {
|
|
2802
2806
|
let {
|
|
2803
|
-
item:
|
|
2804
|
-
index:
|
|
2805
|
-
itemRef:
|
|
2806
|
-
} =
|
|
2807
|
-
const
|
|
2808
|
-
ref:
|
|
2809
|
-
key:
|
|
2810
|
-
onClick: () =>
|
|
2811
|
-
"aria-posinset":
|
|
2807
|
+
item: T,
|
|
2808
|
+
index: le,
|
|
2809
|
+
itemRef: Re
|
|
2810
|
+
} = M;
|
|
2811
|
+
const ae = Nn(T.props), Z = N(T.props, {
|
|
2812
|
+
ref: Re,
|
|
2813
|
+
key: T.value,
|
|
2814
|
+
onClick: () => J(T, null),
|
|
2815
|
+
"aria-posinset": le + 1,
|
|
2812
2816
|
"aria-setsize": D.value.length
|
|
2813
2817
|
});
|
|
2814
|
-
return
|
|
2815
|
-
props:
|
|
2816
|
-
index:
|
|
2817
|
-
}) ?? g(
|
|
2818
|
-
key: `divider-${
|
|
2819
|
-
}), null) :
|
|
2820
|
-
props:
|
|
2821
|
-
index:
|
|
2822
|
-
}) ?? g(jl, N(
|
|
2823
|
-
key: `subheader-${
|
|
2818
|
+
return T.type === "divider" ? t.divider?.({
|
|
2819
|
+
props: T.raw,
|
|
2820
|
+
index: le
|
|
2821
|
+
}) ?? g(ze, N(T.props, {
|
|
2822
|
+
key: `divider-${le}`
|
|
2823
|
+
}), null) : T.type === "subheader" ? t.subheader?.({
|
|
2824
|
+
props: T.raw,
|
|
2825
|
+
index: le
|
|
2826
|
+
}) ?? g(jl, N(T.props, {
|
|
2827
|
+
key: `subheader-${le}`
|
|
2824
2828
|
}), null) : t.item?.({
|
|
2825
|
-
item:
|
|
2826
|
-
index:
|
|
2827
|
-
props:
|
|
2828
|
-
}) ?? g(vt, N(
|
|
2829
|
+
item: T,
|
|
2830
|
+
index: le,
|
|
2831
|
+
props: Z
|
|
2832
|
+
}) ?? g(vt, N(Z, {
|
|
2829
2833
|
role: "option"
|
|
2830
2834
|
}), {
|
|
2831
|
-
prepend: (
|
|
2835
|
+
prepend: (me) => {
|
|
2832
2836
|
let {
|
|
2833
|
-
isSelected:
|
|
2834
|
-
} =
|
|
2835
|
-
return b(
|
|
2836
|
-
key:
|
|
2837
|
-
modelValue:
|
|
2837
|
+
isSelected: Ze
|
|
2838
|
+
} = me;
|
|
2839
|
+
return b(ce, null, [e.multiple && !e.hideSelected ? g(nn, {
|
|
2840
|
+
key: T.value,
|
|
2841
|
+
modelValue: Ze,
|
|
2838
2842
|
ripple: !1,
|
|
2839
2843
|
tabindex: "-1",
|
|
2840
2844
|
"aria-hidden": !0,
|
|
2841
|
-
onClick: (
|
|
2842
|
-
}, null) : void 0,
|
|
2843
|
-
image:
|
|
2844
|
-
}, null),
|
|
2845
|
-
icon:
|
|
2845
|
+
onClick: (Ge) => Ge.preventDefault()
|
|
2846
|
+
}, null) : void 0, ae.prependAvatar && g(nt, {
|
|
2847
|
+
image: ae.prependAvatar
|
|
2848
|
+
}, null), ae.prependIcon && g(ke, {
|
|
2849
|
+
icon: ae.prependIcon
|
|
2846
2850
|
}, null)]);
|
|
2847
2851
|
},
|
|
2848
|
-
title: () => m.value ? gn("v-select",
|
|
2852
|
+
title: () => m.value ? gn("v-select", T.title, h(T)?.title) : T.title
|
|
2849
2853
|
});
|
|
2850
2854
|
}
|
|
2851
2855
|
}), t["append-item"]?.()]
|
|
2852
2856
|
}), t["menu-footer"] && b("footer", {
|
|
2853
2857
|
ref: o
|
|
2854
|
-
}, [t["menu-footer"](
|
|
2858
|
+
}, [t["menu-footer"](we)])]
|
|
2855
2859
|
})]
|
|
2856
|
-
}), y.value.map((
|
|
2857
|
-
function
|
|
2858
|
-
|
|
2860
|
+
}), y.value.map((M, T) => {
|
|
2861
|
+
function le(me) {
|
|
2862
|
+
me.stopPropagation(), me.preventDefault(), J(M, !1);
|
|
2859
2863
|
}
|
|
2860
|
-
const
|
|
2861
|
-
"onClick:close":
|
|
2862
|
-
onKeydown(
|
|
2863
|
-
|
|
2864
|
+
const Re = N(mt.filterProps(M.props), {
|
|
2865
|
+
"onClick:close": le,
|
|
2866
|
+
onKeydown(me) {
|
|
2867
|
+
me.key !== "Enter" && me.key !== " " || (me.preventDefault(), me.stopPropagation(), le(me));
|
|
2864
2868
|
},
|
|
2865
|
-
onMousedown(
|
|
2866
|
-
|
|
2869
|
+
onMousedown(me) {
|
|
2870
|
+
me.preventDefault(), me.stopPropagation();
|
|
2867
2871
|
},
|
|
2868
2872
|
modelValue: !0,
|
|
2869
2873
|
"onUpdate:modelValue": void 0
|
|
2870
|
-
}),
|
|
2871
|
-
item:
|
|
2872
|
-
index:
|
|
2873
|
-
props:
|
|
2874
|
+
}), ae = x ? !!t.chip : !!t.selection, Z = ae ? Gl(x ? t.chip({
|
|
2875
|
+
item: M,
|
|
2876
|
+
index: T,
|
|
2877
|
+
props: Re
|
|
2874
2878
|
}) : t.selection({
|
|
2875
|
-
item:
|
|
2876
|
-
index:
|
|
2879
|
+
item: M,
|
|
2880
|
+
index: T
|
|
2877
2881
|
})) : void 0;
|
|
2878
|
-
if (!(
|
|
2882
|
+
if (!(ae && !Z))
|
|
2879
2883
|
return b("div", {
|
|
2880
|
-
key:
|
|
2884
|
+
key: M.value,
|
|
2881
2885
|
class: "v-select__selection"
|
|
2882
|
-
}, [
|
|
2886
|
+
}, [x ? t.chip ? g(Fe, {
|
|
2883
2887
|
key: "chip-defaults",
|
|
2884
2888
|
defaults: {
|
|
2885
2889
|
VChip: {
|
|
2886
|
-
closable:
|
|
2890
|
+
closable: E.value,
|
|
2887
2891
|
size: "small",
|
|
2888
|
-
text:
|
|
2892
|
+
text: M.title
|
|
2889
2893
|
}
|
|
2890
2894
|
}
|
|
2891
2895
|
}, {
|
|
2892
|
-
default: () => [
|
|
2896
|
+
default: () => [Z]
|
|
2893
2897
|
}) : g(mt, N({
|
|
2894
2898
|
key: "chip",
|
|
2895
|
-
closable:
|
|
2899
|
+
closable: E.value,
|
|
2896
2900
|
size: "small",
|
|
2897
|
-
text:
|
|
2898
|
-
disabled:
|
|
2899
|
-
},
|
|
2901
|
+
text: M.title,
|
|
2902
|
+
disabled: M.props.disabled
|
|
2903
|
+
}, Re), null) : Z ?? b("span", {
|
|
2900
2904
|
class: "v-select__selection-text"
|
|
2901
|
-
}, [
|
|
2905
|
+
}, [M.title, e.multiple && T < y.value.length - 1 && b("span", {
|
|
2902
2906
|
class: "v-select__selection-comma"
|
|
2903
2907
|
}, [pl(",")])])]);
|
|
2904
2908
|
})]);
|
|
2905
2909
|
},
|
|
2906
2910
|
"append-inner": function() {
|
|
2907
|
-
for (var
|
|
2908
|
-
|
|
2909
|
-
return b(
|
|
2911
|
+
for (var k = arguments.length, Y = new Array(k), M = 0; M < k; M++)
|
|
2912
|
+
Y[M] = arguments[M];
|
|
2913
|
+
return b(ce, null, [t["append-inner"]?.(...Y), e.menuIcon ? g(ke, {
|
|
2910
2914
|
class: "v-select__menu-icon",
|
|
2911
2915
|
color: l.value?.fieldIconColor,
|
|
2912
2916
|
icon: e.menuIcon,
|
|
2913
2917
|
"aria-hidden": !0
|
|
2914
|
-
}, null) : void 0, e.appendInnerIcon && g(
|
|
2918
|
+
}, null) : void 0, e.appendInnerIcon && g(K, {
|
|
2915
2919
|
key: "append-icon",
|
|
2916
2920
|
name: "appendInner",
|
|
2917
|
-
color:
|
|
2921
|
+
color: Y[0].iconColor.value
|
|
2918
2922
|
}, null)]);
|
|
2919
2923
|
}
|
|
2920
2924
|
});
|
|
@@ -2923,10 +2927,10 @@ const hn = Q({
|
|
|
2923
2927
|
menu: H,
|
|
2924
2928
|
search: m,
|
|
2925
2929
|
filteredItems: v,
|
|
2926
|
-
select:
|
|
2930
|
+
select: J
|
|
2927
2931
|
}, l);
|
|
2928
2932
|
}
|
|
2929
|
-
}), Ka =
|
|
2933
|
+
}), Ka = X({
|
|
2930
2934
|
autoSelectFirst: {
|
|
2931
2935
|
type: [Boolean, String]
|
|
2932
2936
|
},
|
|
@@ -2940,7 +2944,7 @@ const hn = Q({
|
|
|
2940
2944
|
modelValue: null,
|
|
2941
2945
|
role: "combobox"
|
|
2942
2946
|
}), ["validationValue", "dirty"])
|
|
2943
|
-
}, "VAutocomplete"), ja =
|
|
2947
|
+
}, "VAutocomplete"), ja = ie()({
|
|
2944
2948
|
name: "VAutocomplete",
|
|
2945
2949
|
props: Ka(),
|
|
2946
2950
|
emits: {
|
|
@@ -2955,7 +2959,7 @@ const hn = Q({
|
|
|
2955
2959
|
} = a;
|
|
2956
2960
|
const {
|
|
2957
2961
|
t: n
|
|
2958
|
-
} = it(), l =
|
|
2962
|
+
} = it(), l = U(), i = ee(!1), c = ee(!0), o = ee(!1), u = U(), d = U(), r = ee(-1), s = ee(null), {
|
|
2959
2963
|
items: m,
|
|
2960
2964
|
transformIn: v,
|
|
2961
2965
|
transformOut: h
|
|
@@ -2963,336 +2967,336 @@ const hn = Q({
|
|
|
2963
2967
|
textColorClasses: y,
|
|
2964
2968
|
textColorStyles: V
|
|
2965
2969
|
} = kt(() => l.value?.color), {
|
|
2966
|
-
InputIcon:
|
|
2967
|
-
} = Et(e),
|
|
2968
|
-
const
|
|
2969
|
-
return e.multiple ?
|
|
2970
|
-
}), F =
|
|
2971
|
-
filteredItems:
|
|
2972
|
-
getMatches:
|
|
2973
|
-
} = mn(e, m, () => s.value ?? (c.value ? "" :
|
|
2974
|
-
get: () =>
|
|
2975
|
-
set: (
|
|
2976
|
-
|
|
2970
|
+
InputIcon: P
|
|
2971
|
+
} = Et(e), _ = Ve(e, "search", ""), S = Ve(e, "modelValue", [], (k) => v(k === null ? [null] : Te(k)), (k) => {
|
|
2972
|
+
const Y = h(k);
|
|
2973
|
+
return e.multiple ? Y : Y[0] ?? null;
|
|
2974
|
+
}), F = I(() => typeof e.counterValue == "function" ? e.counterValue(S.value) : typeof e.counterValue == "number" ? e.counterValue : S.value.length), E = Ot(e), {
|
|
2975
|
+
filteredItems: K,
|
|
2976
|
+
getMatches: w
|
|
2977
|
+
} = mn(e, m, () => s.value ?? (c.value ? "" : _.value)), C = I(() => e.hideSelected && s.value === null ? K.value.filter((k) => !S.value.some((Y) => Y.value === k.value)) : K.value), $ = R(() => e.closableChips && !E.isReadonly.value && !E.isDisabled.value), D = I(() => !!(e.chips || t.chip)), G = I(() => D.value || !!t.selection), ne = I(() => S.value.map((k) => k.props.value)), H = I(() => C.value.find((k) => k.type === "item" && !k.props.disabled)), W = I(() => (e.autoSelectFirst === !0 || e.autoSelectFirst === "exact" && _.value === H.value?.title) && C.value.length > 0 && !c.value && !o.value), j = I(() => e.hideNoData && !C.value.length || E.isReadonly.value || E.isDisabled.value), ue = Ve(e, "menu"), q = I({
|
|
2978
|
+
get: () => ue.value,
|
|
2979
|
+
set: (k) => {
|
|
2980
|
+
ue.value && !k && u.value?.ΨopenChildren.size || k && j.value || (ue.value = k);
|
|
2977
2981
|
}
|
|
2978
2982
|
}), {
|
|
2979
|
-
menuId:
|
|
2980
|
-
ariaExpanded:
|
|
2981
|
-
ariaControls:
|
|
2982
|
-
} = yn(e,
|
|
2983
|
-
onTabKeydown:
|
|
2983
|
+
menuId: z,
|
|
2984
|
+
ariaExpanded: fe,
|
|
2985
|
+
ariaControls: B
|
|
2986
|
+
} = yn(e, q), O = U(), p = U(), f = U(), A = dn(O, l), {
|
|
2987
|
+
onTabKeydown: J
|
|
2984
2988
|
} = vn({
|
|
2985
2989
|
groups: [{
|
|
2986
2990
|
type: "element",
|
|
2987
2991
|
contentRef: p
|
|
2988
2992
|
}, {
|
|
2989
2993
|
type: "list",
|
|
2990
|
-
contentRef:
|
|
2991
|
-
displayItemsCount: () =>
|
|
2994
|
+
contentRef: O,
|
|
2995
|
+
displayItemsCount: () => C.value.length
|
|
2992
2996
|
}, {
|
|
2993
2997
|
type: "element",
|
|
2994
2998
|
contentRef: f
|
|
2995
2999
|
}],
|
|
2996
3000
|
onLeave: () => {
|
|
2997
|
-
|
|
3001
|
+
q.value = !1, l.value?.focus();
|
|
2998
3002
|
}
|
|
2999
3003
|
});
|
|
3000
|
-
function
|
|
3001
|
-
e.openOnClear && (
|
|
3004
|
+
function ve(k) {
|
|
3005
|
+
e.openOnClear && (q.value = !0), _.value = "";
|
|
3002
3006
|
}
|
|
3003
|
-
function
|
|
3004
|
-
|
|
3007
|
+
function ge() {
|
|
3008
|
+
j.value || (q.value = !0);
|
|
3005
3009
|
}
|
|
3006
|
-
function be(
|
|
3007
|
-
|
|
3010
|
+
function be(k) {
|
|
3011
|
+
j.value || (i.value && (k.preventDefault(), k.stopPropagation()), q.value = !q.value);
|
|
3008
3012
|
}
|
|
3009
|
-
function
|
|
3010
|
-
|
|
3013
|
+
function Ie(k) {
|
|
3014
|
+
k.key === "Tab" && J(k), O.value?.$el.contains(k.target) && (wt(k) || k.key === "Backspace") && l.value?.focus();
|
|
3011
3015
|
}
|
|
3012
|
-
function
|
|
3013
|
-
if (
|
|
3014
|
-
const
|
|
3015
|
-
if (["Enter", "ArrowDown", "ArrowUp"].includes(
|
|
3016
|
+
function De(k) {
|
|
3017
|
+
if (E.isReadonly.value) return;
|
|
3018
|
+
const Y = l.value?.selectionStart, M = S.value.length;
|
|
3019
|
+
if (["Enter", "ArrowDown", "ArrowUp"].includes(k.key) && k.preventDefault(), ["Enter", "ArrowDown"].includes(k.key) && (q.value = !0), ["Escape"].includes(k.key) && (q.value = !1), W.value && ["Enter", "Tab"].includes(k.key) && H.value && !S.value.some((T) => {
|
|
3016
3020
|
let {
|
|
3017
|
-
value:
|
|
3018
|
-
} =
|
|
3019
|
-
return
|
|
3020
|
-
}) &&
|
|
3021
|
-
if (!e.multiple &&
|
|
3021
|
+
value: le
|
|
3022
|
+
} = T;
|
|
3023
|
+
return le === H.value.value;
|
|
3024
|
+
}) && we(H.value), k.key === "ArrowDown" && W.value && O.value?.focus("next"), ["Backspace", "Delete"].includes(k.key)) {
|
|
3025
|
+
if (!e.multiple && G.value && S.value.length > 0 && !_.value) return we(S.value[0], !1);
|
|
3022
3026
|
if (~r.value) {
|
|
3023
|
-
|
|
3024
|
-
const
|
|
3025
|
-
|
|
3026
|
-
} else
|
|
3027
|
+
k.preventDefault();
|
|
3028
|
+
const T = r.value;
|
|
3029
|
+
we(S.value[r.value], !1), r.value = T >= M - 1 ? M - 2 : T;
|
|
3030
|
+
} else k.key === "Backspace" && !_.value && (r.value = M - 1);
|
|
3027
3031
|
return;
|
|
3028
3032
|
}
|
|
3029
3033
|
if (e.multiple)
|
|
3030
|
-
if (
|
|
3031
|
-
if (r.value < 0 &&
|
|
3032
|
-
const
|
|
3033
|
-
if (
|
|
3034
|
-
r.value =
|
|
3034
|
+
if (k.key === "ArrowLeft") {
|
|
3035
|
+
if (r.value < 0 && Y && Y > 0) return;
|
|
3036
|
+
const T = r.value > -1 ? r.value - 1 : M - 1;
|
|
3037
|
+
if (S.value[T])
|
|
3038
|
+
r.value = T;
|
|
3035
3039
|
else {
|
|
3036
|
-
const
|
|
3037
|
-
r.value = -1, l.value?.setSelectionRange(
|
|
3040
|
+
const le = _.value?.length ?? null;
|
|
3041
|
+
r.value = -1, l.value?.setSelectionRange(le, le);
|
|
3038
3042
|
}
|
|
3039
|
-
} else if (
|
|
3043
|
+
} else if (k.key === "ArrowRight") {
|
|
3040
3044
|
if (r.value < 0) return;
|
|
3041
|
-
const
|
|
3042
|
-
|
|
3043
|
-
} else ~r.value && wt(
|
|
3045
|
+
const T = r.value + 1;
|
|
3046
|
+
S.value[T] ? r.value = T : (r.value = -1, l.value?.setSelectionRange(0, 0));
|
|
3047
|
+
} else ~r.value && wt(k) && (r.value = -1);
|
|
3044
3048
|
}
|
|
3045
|
-
function
|
|
3049
|
+
function je(k) {
|
|
3046
3050
|
if (dt(l.value, ":autofill") || dt(l.value, ":-webkit-autofill")) {
|
|
3047
|
-
const
|
|
3048
|
-
|
|
3051
|
+
const Y = m.value.find((M) => M.title === k.target.value);
|
|
3052
|
+
Y && we(Y);
|
|
3049
3053
|
}
|
|
3050
3054
|
}
|
|
3051
3055
|
function Qe() {
|
|
3052
3056
|
e.eager && d.value?.calculateVisibleItems();
|
|
3053
3057
|
}
|
|
3054
|
-
function
|
|
3058
|
+
function ut() {
|
|
3055
3059
|
i.value && (c.value = !0, l.value?.focus()), s.value = null;
|
|
3056
3060
|
}
|
|
3057
|
-
function
|
|
3061
|
+
function x(k) {
|
|
3058
3062
|
i.value = !0, setTimeout(() => {
|
|
3059
3063
|
o.value = !0;
|
|
3060
3064
|
});
|
|
3061
3065
|
}
|
|
3062
|
-
function
|
|
3063
|
-
o.value = !1;
|
|
3066
|
+
function Q(k) {
|
|
3067
|
+
o.value = !1, l.value?.$el.contains(k.relatedTarget) || (i.value = !1);
|
|
3064
3068
|
}
|
|
3065
|
-
function
|
|
3066
|
-
(
|
|
3069
|
+
function te(k) {
|
|
3070
|
+
(k == null || k === "" && !e.multiple && !G.value) && (S.value = []);
|
|
3067
3071
|
}
|
|
3068
|
-
function
|
|
3069
|
-
u.value?.contentEl?.contains(
|
|
3072
|
+
function Be(k) {
|
|
3073
|
+
u.value?.contentEl?.contains(k.relatedTarget) && (i.value = !0);
|
|
3070
3074
|
}
|
|
3071
|
-
const
|
|
3072
|
-
function
|
|
3073
|
-
let
|
|
3074
|
-
if (!(!
|
|
3075
|
+
const Pe = ee(!1);
|
|
3076
|
+
function we(k) {
|
|
3077
|
+
let Y = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;
|
|
3078
|
+
if (!(!k || k.props.disabled))
|
|
3075
3079
|
if (e.multiple) {
|
|
3076
|
-
const
|
|
3077
|
-
if (~
|
|
3078
|
-
const
|
|
3079
|
-
|
|
3080
|
-
} else
|
|
3081
|
-
e.clearOnSelect && (
|
|
3080
|
+
const M = S.value.findIndex((le) => (e.valueComparator || qe)(le.value, k.value)), T = Y ?? !~M;
|
|
3081
|
+
if (~M) {
|
|
3082
|
+
const le = T ? [...S.value, k] : [...S.value];
|
|
3083
|
+
le.splice(M, 1), S.value = le;
|
|
3084
|
+
} else T && (S.value = [...S.value, k]);
|
|
3085
|
+
e.clearOnSelect && (_.value = "");
|
|
3082
3086
|
} else {
|
|
3083
|
-
const
|
|
3084
|
-
|
|
3085
|
-
|
|
3087
|
+
const M = Y !== !1;
|
|
3088
|
+
S.value = M ? [k] : [], s.value = c.value ? "" : _.value ?? "", _.value = M && !G.value ? k.title : "", Se(() => {
|
|
3089
|
+
q.value = !1, c.value = !0;
|
|
3086
3090
|
});
|
|
3087
3091
|
}
|
|
3088
3092
|
}
|
|
3089
|
-
return
|
|
3090
|
-
|
|
3091
|
-
}),
|
|
3092
|
-
!i.value ||
|
|
3093
|
-
}),
|
|
3094
|
-
if (!e.hideSelected &&
|
|
3095
|
-
const
|
|
3093
|
+
return se(i, (k, Y) => {
|
|
3094
|
+
k !== Y && (k ? (Pe.value = !0, _.value = e.multiple || G.value ? "" : String(S.value.at(-1)?.props.title ?? ""), c.value = !0, Se(() => Pe.value = !1)) : (!e.multiple && _.value == null && (S.value = []), q.value = !1, !c.value && _.value && (s.value = _.value), _.value = "", r.value = -1));
|
|
3095
|
+
}), se(_, (k) => {
|
|
3096
|
+
!i.value || Pe.value || (k && (q.value = !0), c.value = !k);
|
|
3097
|
+
}), se(q, (k) => {
|
|
3098
|
+
if (!e.hideSelected && k && S.value.length && c.value) {
|
|
3099
|
+
const Y = C.value.findIndex((M) => S.value.some((T) => M.value === T.value));
|
|
3096
3100
|
ct && window.requestAnimationFrame(() => {
|
|
3097
|
-
|
|
3101
|
+
Y >= 0 && d.value?.scrollToIndex(Y);
|
|
3098
3102
|
});
|
|
3099
3103
|
}
|
|
3100
|
-
|
|
3101
|
-
}),
|
|
3102
|
-
|
|
3103
|
-
}),
|
|
3104
|
-
const
|
|
3105
|
-
search:
|
|
3106
|
-
filteredItems:
|
|
3104
|
+
k && (s.value = null);
|
|
3105
|
+
}), se(m, (k, Y) => {
|
|
3106
|
+
q.value || i.value && !Y.length && k.length && (q.value = !0);
|
|
3107
|
+
}), de(() => {
|
|
3108
|
+
const k = !!(!e.hideNoData || C.value.length || t["prepend-item"] || t["append-item"] || t["no-data"]), Y = S.value.length > 0, M = Je.filterProps(e), T = {
|
|
3109
|
+
search: _,
|
|
3110
|
+
filteredItems: K.value
|
|
3107
3111
|
};
|
|
3108
3112
|
return g(Je, N({
|
|
3109
3113
|
ref: l
|
|
3110
|
-
},
|
|
3111
|
-
modelValue:
|
|
3112
|
-
"onUpdate:modelValue": [(
|
|
3114
|
+
}, M, {
|
|
3115
|
+
modelValue: _.value,
|
|
3116
|
+
"onUpdate:modelValue": [(le) => _.value = le, te],
|
|
3113
3117
|
focused: i.value,
|
|
3114
|
-
"onUpdate:focused": (
|
|
3115
|
-
validationValue:
|
|
3118
|
+
"onUpdate:focused": (le) => i.value = le,
|
|
3119
|
+
validationValue: S.externalValue,
|
|
3116
3120
|
counterValue: F.value,
|
|
3117
|
-
dirty:
|
|
3118
|
-
onChange:
|
|
3121
|
+
dirty: Y,
|
|
3122
|
+
onChange: je,
|
|
3119
3123
|
class: ["v-autocomplete", `v-autocomplete--${e.multiple ? "multiple" : "single"}`, {
|
|
3120
|
-
"v-autocomplete--active-menu":
|
|
3124
|
+
"v-autocomplete--active-menu": q.value,
|
|
3121
3125
|
"v-autocomplete--chips": !!e.chips,
|
|
3122
|
-
"v-autocomplete--selection-slot": !!
|
|
3126
|
+
"v-autocomplete--selection-slot": !!G.value,
|
|
3123
3127
|
"v-autocomplete--selecting-index": r.value > -1
|
|
3124
3128
|
}, e.class],
|
|
3125
3129
|
style: e.style,
|
|
3126
|
-
readonly:
|
|
3127
|
-
placeholder:
|
|
3128
|
-
"onClick:clear":
|
|
3129
|
-
"onMousedown:control":
|
|
3130
|
-
onKeydown:
|
|
3131
|
-
onBlur:
|
|
3132
|
-
"aria-expanded":
|
|
3133
|
-
"aria-controls":
|
|
3130
|
+
readonly: E.isReadonly.value,
|
|
3131
|
+
placeholder: Y ? void 0 : e.placeholder,
|
|
3132
|
+
"onClick:clear": ve,
|
|
3133
|
+
"onMousedown:control": ge,
|
|
3134
|
+
onKeydown: De,
|
|
3135
|
+
onBlur: Be,
|
|
3136
|
+
"aria-expanded": fe.value,
|
|
3137
|
+
"aria-controls": B.value
|
|
3134
3138
|
}), {
|
|
3135
3139
|
...t,
|
|
3136
|
-
default: (
|
|
3140
|
+
default: (le) => {
|
|
3137
3141
|
let {
|
|
3138
|
-
id:
|
|
3139
|
-
} =
|
|
3140
|
-
return b(
|
|
3141
|
-
id:
|
|
3142
|
+
id: Re
|
|
3143
|
+
} = le;
|
|
3144
|
+
return b(ce, null, [g(Kl, N({
|
|
3145
|
+
id: z.value,
|
|
3142
3146
|
ref: u,
|
|
3143
|
-
modelValue:
|
|
3144
|
-
"onUpdate:modelValue": (
|
|
3147
|
+
modelValue: q.value,
|
|
3148
|
+
"onUpdate:modelValue": (ae) => q.value = ae,
|
|
3145
3149
|
activator: "parent",
|
|
3146
3150
|
contentClass: "v-autocomplete__content",
|
|
3147
|
-
disabled:
|
|
3151
|
+
disabled: j.value,
|
|
3148
3152
|
eager: e.eager,
|
|
3149
3153
|
maxHeight: 310,
|
|
3150
3154
|
openOnClick: !1,
|
|
3151
3155
|
closeOnContentClick: !1,
|
|
3152
3156
|
onAfterEnter: Qe,
|
|
3153
|
-
onAfterLeave:
|
|
3157
|
+
onAfterLeave: ut
|
|
3154
3158
|
}, e.menuProps), {
|
|
3155
3159
|
default: () => [g(ol, {
|
|
3156
|
-
onFocusin:
|
|
3157
|
-
onKeydown:
|
|
3160
|
+
onFocusin: x,
|
|
3161
|
+
onKeydown: Ie
|
|
3158
3162
|
}, {
|
|
3159
3163
|
default: () => [t["menu-header"] && b("header", {
|
|
3160
3164
|
ref: p
|
|
3161
|
-
}, [t["menu-header"](
|
|
3165
|
+
}, [t["menu-header"](T)]), k && g(nl, N({
|
|
3162
3166
|
key: "autocomplete-list",
|
|
3163
|
-
ref:
|
|
3167
|
+
ref: O,
|
|
3164
3168
|
filterable: !0,
|
|
3165
|
-
selected:
|
|
3169
|
+
selected: ne.value,
|
|
3166
3170
|
selectStrategy: e.multiple ? "independent" : "single-independent",
|
|
3167
|
-
onMousedown: (
|
|
3168
|
-
onFocusout:
|
|
3171
|
+
onMousedown: (ae) => ae.preventDefault(),
|
|
3172
|
+
onFocusout: Q,
|
|
3169
3173
|
tabindex: "-1",
|
|
3170
|
-
selectable: !!
|
|
3174
|
+
selectable: !!C.value.length,
|
|
3171
3175
|
"aria-live": "polite",
|
|
3172
|
-
"aria-labelledby": `${
|
|
3176
|
+
"aria-labelledby": `${Re.value}-label`,
|
|
3173
3177
|
"aria-multiselectable": e.multiple,
|
|
3174
3178
|
color: e.itemColor ?? e.color
|
|
3175
|
-
},
|
|
3176
|
-
default: () => [t["prepend-item"]?.(), !
|
|
3179
|
+
}, A, e.listProps), {
|
|
3180
|
+
default: () => [t["prepend-item"]?.(), !C.value.length && !e.hideNoData && (t["no-data"]?.() ?? g(vt, {
|
|
3177
3181
|
key: "no-data",
|
|
3178
3182
|
title: n(e.noDataText)
|
|
3179
3183
|
}, null)), g(cn, {
|
|
3180
3184
|
ref: d,
|
|
3181
3185
|
renderless: !0,
|
|
3182
|
-
items:
|
|
3186
|
+
items: C.value,
|
|
3183
3187
|
itemKey: "value"
|
|
3184
3188
|
}, {
|
|
3185
|
-
default: (
|
|
3189
|
+
default: (ae) => {
|
|
3186
3190
|
let {
|
|
3187
|
-
item:
|
|
3188
|
-
index:
|
|
3191
|
+
item: Z,
|
|
3192
|
+
index: me,
|
|
3189
3193
|
itemRef: Ze
|
|
3190
|
-
} =
|
|
3191
|
-
const
|
|
3194
|
+
} = ae;
|
|
3195
|
+
const Ge = N(Z.props, {
|
|
3192
3196
|
ref: Ze,
|
|
3193
|
-
key:
|
|
3194
|
-
active:
|
|
3195
|
-
onClick: () =>
|
|
3196
|
-
"aria-posinset":
|
|
3197
|
-
"aria-setsize":
|
|
3197
|
+
key: Z.value,
|
|
3198
|
+
active: W.value && Z === H.value ? !0 : void 0,
|
|
3199
|
+
onClick: () => we(Z, null),
|
|
3200
|
+
"aria-posinset": me + 1,
|
|
3201
|
+
"aria-setsize": C.value.length
|
|
3198
3202
|
});
|
|
3199
|
-
return
|
|
3200
|
-
props:
|
|
3201
|
-
index:
|
|
3202
|
-
}) ?? g(
|
|
3203
|
-
key: `divider-${
|
|
3204
|
-
}), null) :
|
|
3205
|
-
props:
|
|
3206
|
-
index:
|
|
3207
|
-
}) ?? g(jl, N(
|
|
3208
|
-
key: `subheader-${
|
|
3203
|
+
return Z.type === "divider" ? t.divider?.({
|
|
3204
|
+
props: Z.raw,
|
|
3205
|
+
index: me
|
|
3206
|
+
}) ?? g(ze, N(Z.props, {
|
|
3207
|
+
key: `divider-${me}`
|
|
3208
|
+
}), null) : Z.type === "subheader" ? t.subheader?.({
|
|
3209
|
+
props: Z.raw,
|
|
3210
|
+
index: me
|
|
3211
|
+
}) ?? g(jl, N(Z.props, {
|
|
3212
|
+
key: `subheader-${me}`
|
|
3209
3213
|
}), null) : t.item?.({
|
|
3210
|
-
item:
|
|
3211
|
-
index:
|
|
3212
|
-
props:
|
|
3213
|
-
}) ?? g(vt, N(
|
|
3214
|
+
item: Z,
|
|
3215
|
+
index: me,
|
|
3216
|
+
props: Ge
|
|
3217
|
+
}) ?? g(vt, N(Ge, {
|
|
3214
3218
|
role: "option"
|
|
3215
3219
|
}), {
|
|
3216
3220
|
prepend: (st) => {
|
|
3217
3221
|
let {
|
|
3218
3222
|
isSelected: Ae
|
|
3219
3223
|
} = st;
|
|
3220
|
-
return b(
|
|
3221
|
-
key:
|
|
3224
|
+
return b(ce, null, [e.multiple && !e.hideSelected ? g(nn, {
|
|
3225
|
+
key: Z.value,
|
|
3222
3226
|
modelValue: Ae,
|
|
3223
3227
|
ripple: !1,
|
|
3224
3228
|
tabindex: "-1",
|
|
3225
3229
|
"aria-hidden": !0,
|
|
3226
3230
|
onClick: (Cn) => Cn.preventDefault()
|
|
3227
|
-
}, null) : void 0,
|
|
3228
|
-
image:
|
|
3229
|
-
}, null),
|
|
3230
|
-
icon:
|
|
3231
|
+
}, null) : void 0, Z.props.prependAvatar && g(nt, {
|
|
3232
|
+
image: Z.props.prependAvatar
|
|
3233
|
+
}, null), Z.props.prependIcon && g(ke, {
|
|
3234
|
+
icon: Z.props.prependIcon
|
|
3231
3235
|
}, null)]);
|
|
3232
3236
|
},
|
|
3233
|
-
title: () => c.value ?
|
|
3237
|
+
title: () => c.value ? Z.title : gn("v-autocomplete", Z.title, w(Z)?.title)
|
|
3234
3238
|
});
|
|
3235
3239
|
}
|
|
3236
3240
|
}), t["append-item"]?.()]
|
|
3237
3241
|
}), t["menu-footer"] && b("footer", {
|
|
3238
3242
|
ref: f
|
|
3239
|
-
}, [t["menu-footer"](
|
|
3243
|
+
}, [t["menu-footer"](T)])]
|
|
3240
3244
|
})]
|
|
3241
|
-
}),
|
|
3242
|
-
function
|
|
3243
|
-
Ae.stopPropagation(), Ae.preventDefault(),
|
|
3245
|
+
}), S.value.map((ae, Z) => {
|
|
3246
|
+
function me(Ae) {
|
|
3247
|
+
Ae.stopPropagation(), Ae.preventDefault(), we(ae, !1);
|
|
3244
3248
|
}
|
|
3245
|
-
const Ze = N(mt.filterProps(
|
|
3246
|
-
"onClick:close":
|
|
3249
|
+
const Ze = N(mt.filterProps(ae.props), {
|
|
3250
|
+
"onClick:close": me,
|
|
3247
3251
|
onKeydown(Ae) {
|
|
3248
|
-
Ae.key !== "Enter" && Ae.key !== " " || (Ae.preventDefault(), Ae.stopPropagation(),
|
|
3252
|
+
Ae.key !== "Enter" && Ae.key !== " " || (Ae.preventDefault(), Ae.stopPropagation(), me(Ae));
|
|
3249
3253
|
},
|
|
3250
3254
|
onMousedown(Ae) {
|
|
3251
3255
|
Ae.preventDefault(), Ae.stopPropagation();
|
|
3252
3256
|
},
|
|
3253
3257
|
modelValue: !0,
|
|
3254
3258
|
"onUpdate:modelValue": void 0
|
|
3255
|
-
}),
|
|
3256
|
-
item:
|
|
3257
|
-
index:
|
|
3259
|
+
}), Ge = D.value ? !!t.chip : !!t.selection, st = Ge ? Gl(D.value ? t.chip({
|
|
3260
|
+
item: ae,
|
|
3261
|
+
index: Z,
|
|
3258
3262
|
props: Ze
|
|
3259
3263
|
}) : t.selection({
|
|
3260
|
-
item:
|
|
3261
|
-
index:
|
|
3264
|
+
item: ae,
|
|
3265
|
+
index: Z
|
|
3262
3266
|
})) : void 0;
|
|
3263
|
-
if (!(
|
|
3267
|
+
if (!(Ge && !st))
|
|
3264
3268
|
return b("div", {
|
|
3265
|
-
key:
|
|
3266
|
-
class:
|
|
3267
|
-
style:
|
|
3269
|
+
key: ae.value,
|
|
3270
|
+
class: re(["v-autocomplete__selection", Z === r.value && ["v-autocomplete__selection--selected", y.value]]),
|
|
3271
|
+
style: xe(Z === r.value ? V.value : {})
|
|
3268
3272
|
}, [D.value ? t.chip ? g(Fe, {
|
|
3269
3273
|
key: "chip-defaults",
|
|
3270
3274
|
defaults: {
|
|
3271
3275
|
VChip: {
|
|
3272
|
-
closable:
|
|
3276
|
+
closable: $.value,
|
|
3273
3277
|
size: "small",
|
|
3274
|
-
text:
|
|
3278
|
+
text: ae.title
|
|
3275
3279
|
}
|
|
3276
3280
|
}
|
|
3277
3281
|
}, {
|
|
3278
3282
|
default: () => [st]
|
|
3279
3283
|
}) : g(mt, N({
|
|
3280
3284
|
key: "chip",
|
|
3281
|
-
closable:
|
|
3285
|
+
closable: $.value,
|
|
3282
3286
|
size: "small",
|
|
3283
|
-
text:
|
|
3284
|
-
disabled:
|
|
3287
|
+
text: ae.title,
|
|
3288
|
+
disabled: ae.props.disabled
|
|
3285
3289
|
}, Ze), null) : st ?? b("span", {
|
|
3286
3290
|
class: "v-autocomplete__selection-text"
|
|
3287
|
-
}, [
|
|
3291
|
+
}, [ae.title, e.multiple && Z < S.value.length - 1 && b("span", {
|
|
3288
3292
|
class: "v-autocomplete__selection-comma"
|
|
3289
3293
|
}, [pl(",")])])]);
|
|
3290
3294
|
})]);
|
|
3291
3295
|
},
|
|
3292
3296
|
"append-inner": function() {
|
|
3293
|
-
for (var
|
|
3294
|
-
|
|
3295
|
-
return b(
|
|
3297
|
+
for (var le = arguments.length, Re = new Array(le), ae = 0; ae < le; ae++)
|
|
3298
|
+
Re[ae] = arguments[ae];
|
|
3299
|
+
return b(ce, null, [t["append-inner"]?.(...Re), e.menuIcon ? g(ke, {
|
|
3296
3300
|
class: "v-autocomplete__menu-icon",
|
|
3297
3301
|
color: l.value?.fieldIconColor,
|
|
3298
3302
|
icon: e.menuIcon,
|
|
@@ -3300,23 +3304,23 @@ const hn = Q({
|
|
|
3300
3304
|
onClick: Hn,
|
|
3301
3305
|
"aria-hidden": !0,
|
|
3302
3306
|
tabindex: "-1"
|
|
3303
|
-
}, null) : void 0, e.appendInnerIcon && g(
|
|
3307
|
+
}, null) : void 0, e.appendInnerIcon && g(P, {
|
|
3304
3308
|
key: "append-icon",
|
|
3305
3309
|
name: "appendInner",
|
|
3306
|
-
color:
|
|
3310
|
+
color: Re[0].iconColor.value
|
|
3307
3311
|
}, null)]);
|
|
3308
3312
|
}
|
|
3309
3313
|
});
|
|
3310
3314
|
}), St({
|
|
3311
3315
|
isFocused: i,
|
|
3312
3316
|
isPristine: c,
|
|
3313
|
-
menu:
|
|
3314
|
-
search:
|
|
3315
|
-
filteredItems:
|
|
3316
|
-
select:
|
|
3317
|
+
menu: q,
|
|
3318
|
+
search: _,
|
|
3319
|
+
filteredItems: K,
|
|
3320
|
+
select: we
|
|
3317
3321
|
}, l);
|
|
3318
3322
|
}
|
|
3319
|
-
}), Ga =
|
|
3323
|
+
}), Ga = X({
|
|
3320
3324
|
bordered: Boolean,
|
|
3321
3325
|
color: String,
|
|
3322
3326
|
content: [Number, String],
|
|
@@ -3341,13 +3345,13 @@ const hn = Q({
|
|
|
3341
3345
|
location: "top end"
|
|
3342
3346
|
}),
|
|
3343
3347
|
...yt(),
|
|
3344
|
-
|
|
3345
|
-
...
|
|
3348
|
+
...Oe(),
|
|
3349
|
+
...He(),
|
|
3346
3350
|
...Tt({
|
|
3347
3351
|
transition: "scale-rotate-transition"
|
|
3348
3352
|
}),
|
|
3349
3353
|
...pt()
|
|
3350
|
-
}, "VBadge"), Wa =
|
|
3354
|
+
}, "VBadge"), Wa = ie()({
|
|
3351
3355
|
name: "VBadge",
|
|
3352
3356
|
inheritAttrs: !1,
|
|
3353
3357
|
props: Ga(),
|
|
@@ -3369,7 +3373,7 @@ const hn = Q({
|
|
|
3369
3373
|
} = el(e, !0, (s) => (e.floating ? e.dot ? 2 : 4 : e.dot ? 8 : 12) + (["top", "bottom"].includes(s) ? Number(e.offsetY ?? 0) : ["left", "right"].includes(s) ? Number(e.offsetX ?? 0) : 0)), {
|
|
3370
3374
|
dimensionStyles: r
|
|
3371
3375
|
} = bt(e);
|
|
3372
|
-
return
|
|
3376
|
+
return de(() => {
|
|
3373
3377
|
const s = Number(e.content), m = !e.max || isNaN(s) ? e.content : s <= Number(e.max) ? s : `${e.max}+`, [v, h] = Un(a.attrs, ["aria-atomic", "aria-label", "aria-live", "role", "title"]);
|
|
3374
3378
|
return g(e.tag, N({
|
|
3375
3379
|
class: ["v-badge", {
|
|
@@ -3386,21 +3390,21 @@ const hn = Q({
|
|
|
3386
3390
|
}, [a.slots.default?.(), g(ll, {
|
|
3387
3391
|
transition: e.transition
|
|
3388
3392
|
}, {
|
|
3389
|
-
default: () => [
|
|
3393
|
+
default: () => [Ue(b("span", N({
|
|
3390
3394
|
class: ["v-badge__badge", u.value, t.value, l.value, c.value],
|
|
3391
3395
|
style: [n.value, o.value, r.value, e.inline ? {} : d.value],
|
|
3392
3396
|
"aria-atomic": "true",
|
|
3393
3397
|
"aria-label": i(e.label, s),
|
|
3394
3398
|
"aria-live": "polite",
|
|
3395
3399
|
role: "status"
|
|
3396
|
-
}, v), [e.dot ? void 0 : a.slots.badge ? a.slots.badge?.() : e.icon ? g(
|
|
3400
|
+
}, v), [e.dot ? void 0 : a.slots.badge ? a.slots.badge?.() : e.icon ? g(ke, {
|
|
3397
3401
|
icon: e.icon
|
|
3398
3402
|
}, null) : m]), [[Pt, e.modelValue]])]
|
|
3399
3403
|
})])]
|
|
3400
3404
|
});
|
|
3401
3405
|
}), {};
|
|
3402
3406
|
}
|
|
3403
|
-
}), qa =
|
|
3407
|
+
}), qa = X({
|
|
3404
3408
|
fullscreen: Boolean,
|
|
3405
3409
|
scrollable: Boolean,
|
|
3406
3410
|
...Ye(jn({
|
|
@@ -3413,7 +3417,7 @@ const hn = Q({
|
|
|
3413
3417
|
zIndex: 2400,
|
|
3414
3418
|
retainFocus: !0
|
|
3415
3419
|
}), ["disableInitialFocus"])
|
|
3416
|
-
}, "VDialog"), bn =
|
|
3420
|
+
}, "VDialog"), bn = ie()({
|
|
3417
3421
|
name: "VDialog",
|
|
3418
3422
|
props: qa(),
|
|
3419
3423
|
emits: {
|
|
@@ -3426,9 +3430,9 @@ const hn = Q({
|
|
|
3426
3430
|
emit: t,
|
|
3427
3431
|
slots: n
|
|
3428
3432
|
} = a;
|
|
3429
|
-
const l =
|
|
3433
|
+
const l = Ve(e, "modelValue"), {
|
|
3430
3434
|
scopeId: i
|
|
3431
|
-
} = Kn(), c =
|
|
3435
|
+
} = Kn(), c = U();
|
|
3432
3436
|
function o() {
|
|
3433
3437
|
t("afterEnter"), (e.scrim || e.retainFocus) && c.value?.contentEl && !c.value.contentEl.contains(document.activeElement) && c.value.contentEl.focus({
|
|
3434
3438
|
preventScroll: !0
|
|
@@ -3437,11 +3441,11 @@ const hn = Q({
|
|
|
3437
3441
|
function u() {
|
|
3438
3442
|
t("afterLeave");
|
|
3439
3443
|
}
|
|
3440
|
-
return
|
|
3441
|
-
d || (await
|
|
3444
|
+
return se(l, async (d) => {
|
|
3445
|
+
d || (await Se(), c.value.activatorEl?.focus({
|
|
3442
3446
|
preventScroll: !0
|
|
3443
3447
|
}));
|
|
3444
|
-
}),
|
|
3448
|
+
}), de(() => {
|
|
3445
3449
|
const d = dl.filterProps(e), r = N({
|
|
3446
3450
|
"aria-haspopup": "dialog"
|
|
3447
3451
|
}, e.activatorProps), s = N({
|
|
@@ -3481,10 +3485,10 @@ const hn = Q({
|
|
|
3481
3485
|
});
|
|
3482
3486
|
}), St({}, c);
|
|
3483
3487
|
}
|
|
3484
|
-
}), Ja =
|
|
3488
|
+
}), Ja = X({
|
|
3485
3489
|
...he(),
|
|
3486
|
-
|
|
3487
|
-
}, "VCardActions"), pn =
|
|
3490
|
+
...Oe()
|
|
3491
|
+
}, "VCardActions"), pn = ie()({
|
|
3488
3492
|
name: "VCardActions",
|
|
3489
3493
|
props: Ja(),
|
|
3490
3494
|
setup(e, a) {
|
|
@@ -3496,30 +3500,30 @@ const hn = Q({
|
|
|
3496
3500
|
slim: !0,
|
|
3497
3501
|
variant: "text"
|
|
3498
3502
|
}
|
|
3499
|
-
}),
|
|
3500
|
-
class:
|
|
3501
|
-
style:
|
|
3503
|
+
}), de(() => g(e.tag, {
|
|
3504
|
+
class: re(["v-card-actions", e.class]),
|
|
3505
|
+
style: xe(e.style)
|
|
3502
3506
|
}, t)), {};
|
|
3503
3507
|
}
|
|
3504
|
-
}), Xa =
|
|
3508
|
+
}), Xa = X({
|
|
3505
3509
|
opacity: [Number, String],
|
|
3506
3510
|
...he(),
|
|
3507
|
-
|
|
3508
|
-
}, "VCardSubtitle"), Ya =
|
|
3511
|
+
...Oe()
|
|
3512
|
+
}, "VCardSubtitle"), Ya = ie()({
|
|
3509
3513
|
name: "VCardSubtitle",
|
|
3510
3514
|
props: Xa(),
|
|
3511
3515
|
setup(e, a) {
|
|
3512
3516
|
let {
|
|
3513
3517
|
slots: t
|
|
3514
3518
|
} = a;
|
|
3515
|
-
return
|
|
3516
|
-
class:
|
|
3517
|
-
style:
|
|
3519
|
+
return de(() => g(e.tag, {
|
|
3520
|
+
class: re(["v-card-subtitle", e.class]),
|
|
3521
|
+
style: xe([{
|
|
3518
3522
|
"--v-card-subtitle-opacity": e.opacity
|
|
3519
3523
|
}, e.style])
|
|
3520
3524
|
}, t)), {};
|
|
3521
3525
|
}
|
|
3522
|
-
}), il = Gn("v-card-title"), Qa =
|
|
3526
|
+
}), il = Gn("v-card-title"), Qa = X({
|
|
3523
3527
|
appendAvatar: String,
|
|
3524
3528
|
appendIcon: ye,
|
|
3525
3529
|
prependAvatar: String,
|
|
@@ -3534,19 +3538,19 @@ const hn = Q({
|
|
|
3534
3538
|
},
|
|
3535
3539
|
...he(),
|
|
3536
3540
|
...ht(),
|
|
3537
|
-
|
|
3538
|
-
}, "VCardItem"), Za =
|
|
3541
|
+
...Oe()
|
|
3542
|
+
}, "VCardItem"), Za = ie()({
|
|
3539
3543
|
name: "VCardItem",
|
|
3540
3544
|
props: Qa(),
|
|
3541
3545
|
setup(e, a) {
|
|
3542
3546
|
let {
|
|
3543
3547
|
slots: t
|
|
3544
3548
|
} = a;
|
|
3545
|
-
return
|
|
3549
|
+
return de(() => {
|
|
3546
3550
|
const n = !!(e.prependAvatar || e.prependIcon), l = !!(n || t.prepend), i = !!(e.appendAvatar || e.appendIcon), c = !!(i || t.append), o = !!(e.title != null || t.title), u = !!(e.subtitle != null || t.subtitle);
|
|
3547
3551
|
return g(e.tag, {
|
|
3548
|
-
class:
|
|
3549
|
-
style:
|
|
3552
|
+
class: re(["v-card-item", e.class]),
|
|
3553
|
+
style: xe(e.style)
|
|
3550
3554
|
}, {
|
|
3551
3555
|
default: () => [l && b("div", {
|
|
3552
3556
|
key: "prepend",
|
|
@@ -3564,11 +3568,11 @@ const hn = Q({
|
|
|
3564
3568
|
icon: e.prependIcon
|
|
3565
3569
|
}
|
|
3566
3570
|
}
|
|
3567
|
-
}, t.prepend) : b(
|
|
3571
|
+
}, t.prepend) : b(ce, null, [e.prependAvatar && g(nt, {
|
|
3568
3572
|
key: "prepend-avatar",
|
|
3569
3573
|
density: e.density,
|
|
3570
3574
|
image: e.prependAvatar
|
|
3571
|
-
}, null), e.prependIcon && g(
|
|
3575
|
+
}, null), e.prependIcon && g(ke, {
|
|
3572
3576
|
key: "prepend-icon",
|
|
3573
3577
|
density: e.density,
|
|
3574
3578
|
icon: e.prependIcon
|
|
@@ -3598,7 +3602,7 @@ const hn = Q({
|
|
|
3598
3602
|
icon: e.appendIcon
|
|
3599
3603
|
}
|
|
3600
3604
|
}
|
|
3601
|
-
}, t.append) : b(
|
|
3605
|
+
}, t.append) : b(ce, null, [e.appendIcon && g(ke, {
|
|
3602
3606
|
key: "append-icon",
|
|
3603
3607
|
density: e.density,
|
|
3604
3608
|
icon: e.appendIcon
|
|
@@ -3610,25 +3614,25 @@ const hn = Q({
|
|
|
3610
3614
|
});
|
|
3611
3615
|
}), {};
|
|
3612
3616
|
}
|
|
3613
|
-
}), eo =
|
|
3617
|
+
}), eo = X({
|
|
3614
3618
|
opacity: [Number, String],
|
|
3615
3619
|
...he(),
|
|
3616
|
-
|
|
3617
|
-
}, "VCardText"), ul =
|
|
3620
|
+
...Oe()
|
|
3621
|
+
}, "VCardText"), ul = ie()({
|
|
3618
3622
|
name: "VCardText",
|
|
3619
3623
|
props: eo(),
|
|
3620
3624
|
setup(e, a) {
|
|
3621
3625
|
let {
|
|
3622
3626
|
slots: t
|
|
3623
3627
|
} = a;
|
|
3624
|
-
return
|
|
3625
|
-
class:
|
|
3626
|
-
style:
|
|
3628
|
+
return de(() => g(e.tag, {
|
|
3629
|
+
class: re(["v-card-text", e.class]),
|
|
3630
|
+
style: xe([{
|
|
3627
3631
|
"--v-card-text-opacity": e.opacity
|
|
3628
3632
|
}, e.style])
|
|
3629
3633
|
}, t)), {};
|
|
3630
3634
|
}
|
|
3631
|
-
}), to =
|
|
3635
|
+
}), to = X({
|
|
3632
3636
|
appendAvatar: String,
|
|
3633
3637
|
appendIcon: ye,
|
|
3634
3638
|
disabled: Boolean,
|
|
@@ -3667,12 +3671,12 @@ const hn = Q({
|
|
|
3667
3671
|
...Bl(),
|
|
3668
3672
|
...yt(),
|
|
3669
3673
|
...Dl(),
|
|
3670
|
-
|
|
3671
|
-
...
|
|
3674
|
+
...Oe(),
|
|
3675
|
+
...He(),
|
|
3672
3676
|
...Jt({
|
|
3673
3677
|
variant: "elevated"
|
|
3674
3678
|
})
|
|
3675
|
-
}, "VCard"), kn =
|
|
3679
|
+
}, "VCard"), kn = ie()({
|
|
3676
3680
|
name: "VCard",
|
|
3677
3681
|
directives: {
|
|
3678
3682
|
vRipple: lt
|
|
@@ -3705,24 +3709,24 @@ const hn = Q({
|
|
|
3705
3709
|
positionClasses: h
|
|
3706
3710
|
} = Tl(e), {
|
|
3707
3711
|
roundedClasses: y
|
|
3708
|
-
} = gt(e), V = Pl(e, t),
|
|
3709
|
-
return
|
|
3710
|
-
|
|
3712
|
+
} = gt(e), V = Pl(e, t), P = ee(void 0);
|
|
3713
|
+
return se(() => e.loading, (_, S) => {
|
|
3714
|
+
P.value = !_ && typeof S == "string" ? S : typeof _ == "boolean" ? void 0 : _;
|
|
3711
3715
|
}, {
|
|
3712
3716
|
immediate: !0
|
|
3713
|
-
}),
|
|
3714
|
-
const
|
|
3715
|
-
return
|
|
3717
|
+
}), de(() => {
|
|
3718
|
+
const _ = e.link !== !1 && V.isLink.value, S = !e.disabled && e.link !== !1 && (e.link || V.isClickable.value), F = _ ? "a" : e.tag, E = !!(n.title || e.title != null), K = !!(n.subtitle || e.subtitle != null), w = E || K, C = !!(n.append || e.appendAvatar || e.appendIcon), $ = !!(n.prepend || e.prependAvatar || e.prependIcon), D = !!(n.image || e.image), G = w || $ || C, ne = !!(n.text || e.text != null);
|
|
3719
|
+
return Ue(g(F, N(V.linkProps, {
|
|
3716
3720
|
class: ["v-card", {
|
|
3717
3721
|
"v-card--disabled": e.disabled,
|
|
3718
3722
|
"v-card--flat": e.flat,
|
|
3719
3723
|
"v-card--hover": e.hover && !(e.disabled || e.flat),
|
|
3720
|
-
"v-card--link":
|
|
3724
|
+
"v-card--link": S
|
|
3721
3725
|
}, l.value, i.value, c.value, d.value, s.value, m.value, h.value, y.value, u.value, e.class],
|
|
3722
3726
|
style: [o.value, r.value, v.value, {
|
|
3723
3727
|
"--v-card-height": et(e.height)
|
|
3724
3728
|
}, e.style],
|
|
3725
|
-
onClick:
|
|
3729
|
+
onClick: S && V.navigate.value,
|
|
3726
3730
|
tabindex: e.disabled ? -1 : void 0
|
|
3727
3731
|
}), {
|
|
3728
3732
|
default: () => [D && b("div", {
|
|
@@ -3744,10 +3748,10 @@ const hn = Q({
|
|
|
3744
3748
|
}, null)]), g(Ll, {
|
|
3745
3749
|
name: "v-card",
|
|
3746
3750
|
active: !!e.loading,
|
|
3747
|
-
color:
|
|
3751
|
+
color: P.value
|
|
3748
3752
|
}, {
|
|
3749
3753
|
default: n.loader
|
|
3750
|
-
}),
|
|
3754
|
+
}), G && g(Za, {
|
|
3751
3755
|
key: "item",
|
|
3752
3756
|
prependAvatar: e.prependAvatar,
|
|
3753
3757
|
prependIcon: e.prependIcon,
|
|
@@ -3761,14 +3765,14 @@ const hn = Q({
|
|
|
3761
3765
|
title: n.title,
|
|
3762
3766
|
subtitle: n.subtitle,
|
|
3763
3767
|
append: n.append
|
|
3764
|
-
}),
|
|
3768
|
+
}), ne && g(ul, {
|
|
3765
3769
|
key: "text"
|
|
3766
3770
|
}, {
|
|
3767
3771
|
default: () => [n.text?.() ?? e.text]
|
|
3768
3772
|
}), n.default?.(), n.actions && g(pn, null, {
|
|
3769
3773
|
default: n.actions
|
|
3770
|
-
}), Al(
|
|
3771
|
-
}), [[lt,
|
|
3774
|
+
}), Al(S, "v-card")]
|
|
3775
|
+
}), [[lt, S && e.ripple]]);
|
|
3772
3776
|
}), {};
|
|
3773
3777
|
}
|
|
3774
3778
|
}), lo = 50, no = 500;
|
|
@@ -3794,7 +3798,7 @@ function ao(e) {
|
|
|
3794
3798
|
holdStop: i
|
|
3795
3799
|
};
|
|
3796
3800
|
}
|
|
3797
|
-
const oo =
|
|
3801
|
+
const oo = X({
|
|
3798
3802
|
controlVariant: {
|
|
3799
3803
|
type: String,
|
|
3800
3804
|
default: "default"
|
|
@@ -3830,7 +3834,7 @@ const oo = Q({
|
|
|
3830
3834
|
validator: (e) => !e || e.length === 1
|
|
3831
3835
|
},
|
|
3832
3836
|
...Ye($t(), ["modelValue", "validationValue"])
|
|
3833
|
-
}, "VNumberInput"), io =
|
|
3837
|
+
}, "VNumberInput"), io = ie()({
|
|
3834
3838
|
name: "VNumberInput",
|
|
3835
3839
|
props: {
|
|
3836
3840
|
...oo()
|
|
@@ -3843,117 +3847,117 @@ const oo = Q({
|
|
|
3843
3847
|
let {
|
|
3844
3848
|
slots: t
|
|
3845
3849
|
} = a;
|
|
3846
|
-
const n =
|
|
3850
|
+
const n = U(), {
|
|
3847
3851
|
holdStart: l,
|
|
3848
3852
|
holdStop: i
|
|
3849
3853
|
} = ao({
|
|
3850
|
-
toggleUpDown:
|
|
3851
|
-
}), c = Ot(e), o =
|
|
3854
|
+
toggleUpDown: G
|
|
3855
|
+
}), c = Ot(e), o = I(() => c.isDisabled.value || c.isReadonly.value), u = ee(e.focused), {
|
|
3852
3856
|
decimalSeparator: d
|
|
3853
|
-
} = it(), r =
|
|
3857
|
+
} = it(), r = I(() => e.decimalSeparator?.[0] || d.value);
|
|
3854
3858
|
function s(f) {
|
|
3855
|
-
let
|
|
3856
|
-
const
|
|
3857
|
-
if (u.value &&
|
|
3858
|
-
return Number(
|
|
3859
|
-
if (e.minFractionDigits === null ||
|
|
3860
|
-
return
|
|
3861
|
-
let [
|
|
3862
|
-
return be = (be ?? "").padEnd(e.minFractionDigits, "0").replace(new RegExp(`(?<=\\d{${e.minFractionDigits}})0+$`, "g"), ""), [
|
|
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
|
+
const ve = A == null ? String(f) : f.toFixed(A);
|
|
3861
|
+
if (u.value && J)
|
|
3862
|
+
return Number(ve).toString().replace(".", r.value);
|
|
3863
|
+
if (e.minFractionDigits === null || A !== null && A < e.minFractionDigits)
|
|
3864
|
+
return ve.replace(".", r.value);
|
|
3865
|
+
let [ge, be] = ve.split(".");
|
|
3866
|
+
return be = (be ?? "").padEnd(e.minFractionDigits, "0").replace(new RegExp(`(?<=\\d{${e.minFractionDigits}})0+$`, "g"), ""), [ge, be].filter(Boolean).join(r.value);
|
|
3863
3867
|
}
|
|
3864
|
-
const m =
|
|
3865
|
-
|
|
3868
|
+
const m = Ve(e, "modelValue", null, (f) => f ?? null, (f) => f == null ? f ?? null : Ne(Number(f), e.min, e.max)), v = ee(null), h = ee(null);
|
|
3869
|
+
se(m, (f) => {
|
|
3866
3870
|
u.value && !o.value && Number(v.value?.replace(r.value, ".")) === f || (f == null ? (v.value = null, h.value = null) : isNaN(f) || (v.value = s(f), h.value = Number(v.value.replace(r.value, "."))));
|
|
3867
3871
|
}, {
|
|
3868
3872
|
immediate: !0
|
|
3869
3873
|
});
|
|
3870
|
-
const y =
|
|
3874
|
+
const y = I({
|
|
3871
3875
|
get: () => v.value,
|
|
3872
3876
|
set(f) {
|
|
3873
3877
|
if (f === null || f === "") {
|
|
3874
3878
|
m.value = null, v.value = null, h.value = null;
|
|
3875
3879
|
return;
|
|
3876
3880
|
}
|
|
3877
|
-
const
|
|
3878
|
-
isNaN(
|
|
3881
|
+
const A = Number(f.replace(r.value, "."));
|
|
3882
|
+
isNaN(A) || (v.value = f, h.value = A, A <= e.max && A >= e.min && (m.value = A));
|
|
3879
3883
|
}
|
|
3880
|
-
}), V =
|
|
3884
|
+
}), V = I(() => {
|
|
3881
3885
|
if (h.value === null) return !1;
|
|
3882
3886
|
const f = Number(v.value?.replace(r.value, "."));
|
|
3883
|
-
return f !==
|
|
3884
|
-
}),
|
|
3887
|
+
return f !== Ne(f, e.min, e.max);
|
|
3888
|
+
}), P = I(() => o.value ? !1 : (m.value ?? 0) + e.step <= e.max), _ = I(() => o.value ? !1 : (m.value ?? 0) - e.step >= e.min), S = I(() => e.hideInput ? "stacked" : e.controlVariant), F = R(() => S.value === "split" ? "$plus" : "$collapse"), E = R(() => S.value === "split" ? "$minus" : "$expand"), K = R(() => S.value === "split" ? "default" : "small"), w = R(() => S.value === "stacked" ? "auto" : "100%"), C = {
|
|
3885
3889
|
props: {
|
|
3886
|
-
onClick:
|
|
3887
|
-
onPointerup:
|
|
3888
|
-
onPointerdown:
|
|
3889
|
-
onPointercancel:
|
|
3890
|
+
onClick: W,
|
|
3891
|
+
onPointerup: j,
|
|
3892
|
+
onPointerdown: ue,
|
|
3893
|
+
onPointercancel: j
|
|
3890
3894
|
}
|
|
3891
|
-
},
|
|
3895
|
+
}, $ = {
|
|
3892
3896
|
props: {
|
|
3893
|
-
onClick:
|
|
3894
|
-
onPointerup:
|
|
3895
|
-
onPointerdown:
|
|
3896
|
-
onPointercancel:
|
|
3897
|
+
onClick: W,
|
|
3898
|
+
onPointerup: j,
|
|
3899
|
+
onPointerdown: q,
|
|
3900
|
+
onPointercancel: j
|
|
3897
3901
|
}
|
|
3898
3902
|
};
|
|
3899
|
-
|
|
3900
|
-
|
|
3903
|
+
se(() => e.precision, () => fe()), se(() => e.minFractionDigits, () => fe()), at(() => {
|
|
3904
|
+
z();
|
|
3901
3905
|
});
|
|
3902
3906
|
function D(f) {
|
|
3903
3907
|
if (f == null) return 0;
|
|
3904
|
-
const
|
|
3905
|
-
return ~
|
|
3908
|
+
const A = f.toString(), J = A.indexOf(".");
|
|
3909
|
+
return ~J ? A.length - J : 0;
|
|
3906
3910
|
}
|
|
3907
|
-
function
|
|
3911
|
+
function G() {
|
|
3908
3912
|
let f = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0;
|
|
3909
3913
|
if (o.value) return;
|
|
3910
3914
|
if (m.value == null) {
|
|
3911
|
-
y.value = s(
|
|
3915
|
+
y.value = s(Ne(0, e.min, e.max));
|
|
3912
3916
|
return;
|
|
3913
3917
|
}
|
|
3914
|
-
let
|
|
3915
|
-
e.precision != null && (
|
|
3918
|
+
let A = Math.max(D(m.value), D(e.step));
|
|
3919
|
+
e.precision != null && (A = Math.max(A, e.precision)), f ? P.value && (y.value = s(m.value + e.step, A)) : _.value && (y.value = s(m.value - e.step, A));
|
|
3916
3920
|
}
|
|
3917
|
-
function
|
|
3918
|
-
if (!f.data) return;
|
|
3919
|
-
const
|
|
3920
|
-
value:
|
|
3921
|
-
selectionStart:
|
|
3922
|
-
selectionEnd:
|
|
3923
|
-
} =
|
|
3924
|
-
if (new RegExp(`^-?\\d*${Jn(r.value)}?\\d*$`).test(be) || (f.preventDefault(),
|
|
3921
|
+
function ne(f) {
|
|
3922
|
+
if (o.value || !f.data) return;
|
|
3923
|
+
const A = f.target, {
|
|
3924
|
+
value: J,
|
|
3925
|
+
selectionStart: ve,
|
|
3926
|
+
selectionEnd: ge
|
|
3927
|
+
} = A ?? {}, be = J ? J.slice(0, ve) + f.data + J.slice(ge) : f.data, Ie = qn(be, e.precision, r.value);
|
|
3928
|
+
if (new RegExp(`^-?\\d*${Jn(r.value)}?\\d*$`).test(be) || (f.preventDefault(), A.value = Ie, Se(() => y.value = Ie)), e.precision != null) {
|
|
3925
3929
|
if (be.split(r.value)[1]?.length > e.precision) {
|
|
3926
|
-
f.preventDefault(),
|
|
3927
|
-
const
|
|
3928
|
-
|
|
3930
|
+
f.preventDefault(), A.value = Ie, Se(() => y.value = Ie);
|
|
3931
|
+
const De = (ve ?? 0) + f.data.length;
|
|
3932
|
+
A.setSelectionRange(De, De);
|
|
3929
3933
|
}
|
|
3930
|
-
e.precision === 0 && be.endsWith(r.value) && (f.preventDefault(),
|
|
3934
|
+
e.precision === 0 && be.endsWith(r.value) && (f.preventDefault(), A.value = Ie, Se(() => y.value = Ie));
|
|
3931
3935
|
}
|
|
3932
3936
|
}
|
|
3933
3937
|
async function H(f) {
|
|
3934
|
-
["Enter", "ArrowLeft", "ArrowRight", "Backspace", "Delete", "Tab"].includes(f.key) || f.ctrlKey || ["ArrowDown", "ArrowUp"].includes(f.key) && (f.preventDefault(), f.stopPropagation(),
|
|
3938
|
+
["Enter", "ArrowLeft", "ArrowRight", "Backspace", "Delete", "Tab"].includes(f.key) || f.ctrlKey || ["ArrowDown", "ArrowUp"].includes(f.key) && (f.preventDefault(), f.stopPropagation(), z(), await Se(), f.key === "ArrowDown" ? G(!1) : G());
|
|
3935
3939
|
}
|
|
3936
|
-
function
|
|
3940
|
+
function W(f) {
|
|
3937
3941
|
f.stopPropagation();
|
|
3938
3942
|
}
|
|
3939
|
-
function
|
|
3943
|
+
function j(f) {
|
|
3940
3944
|
f.currentTarget?.releasePointerCapture(f.pointerId), f.preventDefault(), i();
|
|
3941
3945
|
}
|
|
3942
|
-
function
|
|
3946
|
+
function ue(f) {
|
|
3943
3947
|
f.currentTarget?.setPointerCapture(f.pointerId), f.preventDefault(), f.stopPropagation(), l("up");
|
|
3944
3948
|
}
|
|
3945
|
-
function
|
|
3949
|
+
function q(f) {
|
|
3946
3950
|
f.currentTarget?.setPointerCapture(f.pointerId), f.preventDefault(), f.stopPropagation(), l("down");
|
|
3947
3951
|
}
|
|
3948
|
-
function
|
|
3952
|
+
function z() {
|
|
3949
3953
|
if (o.value || !n.value) return;
|
|
3950
|
-
const f = n.value.value,
|
|
3951
|
-
f && !isNaN(
|
|
3954
|
+
const f = n.value.value, A = Number(f.replace(r.value, "."));
|
|
3955
|
+
f && !isNaN(A) ? y.value = s(Ne(A, e.min, e.max)) : y.value = null;
|
|
3952
3956
|
}
|
|
3953
|
-
function
|
|
3957
|
+
function fe() {
|
|
3954
3958
|
o.value || (y.value = m.value !== null && !isNaN(m.value) ? s(m.value, e.precision, !1) : null);
|
|
3955
3959
|
}
|
|
3956
|
-
function
|
|
3960
|
+
function B() {
|
|
3957
3961
|
if (!o.value) {
|
|
3958
3962
|
if (m.value === null || isNaN(m.value)) {
|
|
3959
3963
|
y.value = null;
|
|
@@ -3962,74 +3966,74 @@ const oo = Q({
|
|
|
3962
3966
|
y.value = m.value.toString().replace(".", r.value);
|
|
3963
3967
|
}
|
|
3964
3968
|
}
|
|
3965
|
-
function
|
|
3966
|
-
|
|
3969
|
+
function O() {
|
|
3970
|
+
B();
|
|
3967
3971
|
}
|
|
3968
3972
|
function p() {
|
|
3969
|
-
|
|
3973
|
+
z();
|
|
3970
3974
|
}
|
|
3971
|
-
return
|
|
3975
|
+
return de(() => {
|
|
3972
3976
|
const {
|
|
3973
3977
|
modelValue: f,
|
|
3974
|
-
type:
|
|
3975
|
-
...
|
|
3978
|
+
type: A,
|
|
3979
|
+
...J
|
|
3976
3980
|
} = Je.filterProps(e);
|
|
3977
|
-
function
|
|
3981
|
+
function ve() {
|
|
3978
3982
|
return t.increment ? g(Fe, {
|
|
3979
3983
|
key: "increment-defaults",
|
|
3980
3984
|
defaults: {
|
|
3981
3985
|
VBtn: {
|
|
3982
|
-
disabled: !
|
|
3983
|
-
height:
|
|
3984
|
-
size:
|
|
3986
|
+
disabled: !P.value,
|
|
3987
|
+
height: w.value,
|
|
3988
|
+
size: K.value,
|
|
3985
3989
|
icon: F.value,
|
|
3986
3990
|
variant: "text"
|
|
3987
3991
|
}
|
|
3988
3992
|
}
|
|
3989
3993
|
}, {
|
|
3990
|
-
default: () => [t.increment(
|
|
3994
|
+
default: () => [t.increment(C)]
|
|
3991
3995
|
}) : g(tt, {
|
|
3992
3996
|
"aria-hidden": "true",
|
|
3993
3997
|
"data-testid": "increment",
|
|
3994
|
-
disabled: !
|
|
3995
|
-
height:
|
|
3998
|
+
disabled: !P.value,
|
|
3999
|
+
height: w.value,
|
|
3996
4000
|
icon: F.value,
|
|
3997
4001
|
key: "increment-btn",
|
|
3998
|
-
onClick:
|
|
3999
|
-
onPointerdown:
|
|
4000
|
-
onPointerup:
|
|
4001
|
-
onPointercancel:
|
|
4002
|
-
size:
|
|
4002
|
+
onClick: W,
|
|
4003
|
+
onPointerdown: ue,
|
|
4004
|
+
onPointerup: j,
|
|
4005
|
+
onPointercancel: j,
|
|
4006
|
+
size: K.value,
|
|
4003
4007
|
variant: "text",
|
|
4004
4008
|
tabindex: "-1"
|
|
4005
4009
|
}, null);
|
|
4006
4010
|
}
|
|
4007
|
-
function
|
|
4011
|
+
function ge() {
|
|
4008
4012
|
return t.decrement ? g(Fe, {
|
|
4009
4013
|
key: "decrement-defaults",
|
|
4010
4014
|
defaults: {
|
|
4011
4015
|
VBtn: {
|
|
4012
|
-
disabled: !
|
|
4013
|
-
height:
|
|
4014
|
-
size:
|
|
4015
|
-
icon:
|
|
4016
|
+
disabled: !_.value,
|
|
4017
|
+
height: w.value,
|
|
4018
|
+
size: K.value,
|
|
4019
|
+
icon: E.value,
|
|
4016
4020
|
variant: "text"
|
|
4017
4021
|
}
|
|
4018
4022
|
}
|
|
4019
4023
|
}, {
|
|
4020
|
-
default: () => [t.decrement(
|
|
4024
|
+
default: () => [t.decrement($)]
|
|
4021
4025
|
}) : g(tt, {
|
|
4022
4026
|
"aria-hidden": "true",
|
|
4023
4027
|
"data-testid": "decrement",
|
|
4024
|
-
disabled: !
|
|
4025
|
-
height:
|
|
4026
|
-
icon:
|
|
4028
|
+
disabled: !_.value,
|
|
4029
|
+
height: w.value,
|
|
4030
|
+
icon: E.value,
|
|
4027
4031
|
key: "decrement-btn",
|
|
4028
|
-
onClick:
|
|
4029
|
-
onPointerdown:
|
|
4030
|
-
onPointerup:
|
|
4031
|
-
onPointercancel:
|
|
4032
|
-
size:
|
|
4032
|
+
onClick: W,
|
|
4033
|
+
onPointerdown: q,
|
|
4034
|
+
onPointerup: j,
|
|
4035
|
+
onPointercancel: j,
|
|
4036
|
+
size: K.value,
|
|
4033
4037
|
variant: "text",
|
|
4034
4038
|
tabindex: "-1"
|
|
4035
4039
|
}, null);
|
|
@@ -4037,58 +4041,58 @@ const oo = Q({
|
|
|
4037
4041
|
function be() {
|
|
4038
4042
|
return b("div", {
|
|
4039
4043
|
class: "v-number-input__control"
|
|
4040
|
-
}, [
|
|
4041
|
-
vertical:
|
|
4042
|
-
}, null),
|
|
4044
|
+
}, [ge(), g(ze, {
|
|
4045
|
+
vertical: S.value !== "stacked"
|
|
4046
|
+
}, null), ve()]);
|
|
4043
4047
|
}
|
|
4044
|
-
function
|
|
4045
|
-
return !e.hideInput && !e.inset ? g(
|
|
4048
|
+
function Ie() {
|
|
4049
|
+
return !e.hideInput && !e.inset ? g(ze, {
|
|
4046
4050
|
vertical: !0
|
|
4047
4051
|
}, null) : void 0;
|
|
4048
4052
|
}
|
|
4049
|
-
const
|
|
4053
|
+
const De = S.value === "split" ? b("div", {
|
|
4050
4054
|
class: "v-number-input__control"
|
|
4051
|
-
}, [g(
|
|
4055
|
+
}, [g(ze, {
|
|
4052
4056
|
vertical: !0
|
|
4053
|
-
}, null),
|
|
4057
|
+
}, null), ve()]) : e.reverse || S.value === "hidden" ? void 0 : b(ce, null, [Ie(), be()]), je = t["append-inner"] || De, Qe = S.value === "split" ? b("div", {
|
|
4054
4058
|
class: "v-number-input__control"
|
|
4055
|
-
}, [
|
|
4059
|
+
}, [ge(), g(ze, {
|
|
4056
4060
|
vertical: !0
|
|
4057
|
-
}, null)]) : e.reverse &&
|
|
4061
|
+
}, null)]) : e.reverse && S.value !== "hidden" ? b(ce, null, [be(), Ie()]) : void 0, ut = t["prepend-inner"] || Qe;
|
|
4058
4062
|
return g(Je, N({
|
|
4059
4063
|
ref: n
|
|
4060
|
-
},
|
|
4064
|
+
}, J, {
|
|
4061
4065
|
modelValue: y.value,
|
|
4062
|
-
"onUpdate:modelValue": (
|
|
4066
|
+
"onUpdate:modelValue": (x) => y.value = x,
|
|
4063
4067
|
focused: u.value,
|
|
4064
|
-
"onUpdate:focused": (
|
|
4068
|
+
"onUpdate:focused": (x) => u.value = x,
|
|
4065
4069
|
validationValue: m.value,
|
|
4066
4070
|
error: e.error || V.value || void 0,
|
|
4067
|
-
onBeforeinput:
|
|
4068
|
-
onFocus:
|
|
4071
|
+
onBeforeinput: ne,
|
|
4072
|
+
onFocus: O,
|
|
4069
4073
|
onBlur: p,
|
|
4070
4074
|
onKeydown: H,
|
|
4071
4075
|
class: ["v-number-input", {
|
|
4072
|
-
"v-number-input--default":
|
|
4076
|
+
"v-number-input--default": S.value === "default",
|
|
4073
4077
|
"v-number-input--hide-input": e.hideInput,
|
|
4074
4078
|
"v-number-input--inset": e.inset,
|
|
4075
4079
|
"v-number-input--reverse": e.reverse,
|
|
4076
|
-
"v-number-input--split":
|
|
4077
|
-
"v-number-input--stacked":
|
|
4080
|
+
"v-number-input--split": S.value === "split",
|
|
4081
|
+
"v-number-input--stacked": S.value === "stacked"
|
|
4078
4082
|
}, e.class],
|
|
4079
4083
|
style: e.style,
|
|
4080
4084
|
inputmode: "decimal"
|
|
4081
4085
|
}), {
|
|
4082
4086
|
...t,
|
|
4083
|
-
"append-inner":
|
|
4084
|
-
for (var
|
|
4085
|
-
|
|
4086
|
-
return b(
|
|
4087
|
+
"append-inner": je ? function() {
|
|
4088
|
+
for (var x = arguments.length, Q = new Array(x), te = 0; te < x; te++)
|
|
4089
|
+
Q[te] = arguments[te];
|
|
4090
|
+
return b(ce, null, [t["append-inner"]?.(...Q), De]);
|
|
4087
4091
|
} : void 0,
|
|
4088
|
-
"prepend-inner":
|
|
4089
|
-
for (var
|
|
4090
|
-
|
|
4091
|
-
return b(
|
|
4092
|
+
"prepend-inner": ut ? function() {
|
|
4093
|
+
for (var x = arguments.length, Q = new Array(x), te = 0; te < x; te++)
|
|
4094
|
+
Q[te] = arguments[te];
|
|
4095
|
+
return b(ce, null, [Qe, t["prepend-inner"]?.(...Q)]);
|
|
4092
4096
|
} : void 0
|
|
4093
4097
|
});
|
|
4094
4098
|
}), St({}, n);
|
|
@@ -4101,18 +4105,18 @@ const oo = Q({
|
|
|
4101
4105
|
},
|
|
4102
4106
|
emits: /* @__PURE__ */ Wt(["closeDialog", "save"], ["update:modelValue"]),
|
|
4103
4107
|
setup(e, { emit: a }) {
|
|
4104
|
-
const t =
|
|
4108
|
+
const t = _e("table_props"), n = _e("datatablesPluginOptions"), l = _t(e, "modelValue"), i = a, c = {
|
|
4105
4109
|
textfield: Je,
|
|
4106
4110
|
select: ja,
|
|
4107
4111
|
number: io,
|
|
4108
|
-
datepicker:
|
|
4109
|
-
() => import("./Datepicker-
|
|
4112
|
+
datepicker: Ee(
|
|
4113
|
+
() => import("./Datepicker-BKJGzszq.js")
|
|
4110
4114
|
),
|
|
4111
|
-
comparison:
|
|
4112
|
-
() => import("./Comparison-
|
|
4115
|
+
comparison: Ee(
|
|
4116
|
+
() => import("./Comparison-IcnZYHnn.js")
|
|
4113
4117
|
)
|
|
4114
|
-
}, o =
|
|
4115
|
-
return
|
|
4118
|
+
}, o = I(() => t.headers.filter((d) => d.advancedFilter !== !1 && !d.hidden)), u = (d) => d ? typeof d == "string" ? c[d] : d : c.textfield;
|
|
4119
|
+
return se(
|
|
4116
4120
|
o,
|
|
4117
4121
|
(d) => {
|
|
4118
4122
|
d.forEach((r) => {
|
|
@@ -4126,10 +4130,10 @@ const oo = Q({
|
|
|
4126
4130
|
{ immediate: !0 }
|
|
4127
4131
|
), at(async () => {
|
|
4128
4132
|
await t.options.advancedFilters?.onMounted();
|
|
4129
|
-
}), (d, r) => (
|
|
4130
|
-
default:
|
|
4133
|
+
}), (d, r) => (oe(), pe(kn, { rounded: "lg" }, {
|
|
4134
|
+
default: Ce(() => [
|
|
4131
4135
|
g(il, { class: "d-flex justify-space-between align-center" }, {
|
|
4132
|
-
default:
|
|
4136
|
+
default: Ce(() => [
|
|
4133
4137
|
b("div", uo, Vt(d.$t("$datatables.advancedFilters")), 1),
|
|
4134
4138
|
g(tt, {
|
|
4135
4139
|
icon: L(n).header.icons.close,
|
|
@@ -4139,15 +4143,15 @@ const oo = Q({
|
|
|
4139
4143
|
]),
|
|
4140
4144
|
_: 1
|
|
4141
4145
|
}),
|
|
4142
|
-
g(
|
|
4146
|
+
g(ze),
|
|
4143
4147
|
g(ul, { class: "overflow-auto pt-8" }, {
|
|
4144
|
-
default:
|
|
4145
|
-
(
|
|
4148
|
+
default: Ce(() => [
|
|
4149
|
+
(oe(!0), Ke(ce, null, Gt(L(o), (s, m) => (oe(), Ke("div", {
|
|
4146
4150
|
id: `advanced-filter-${s.key}`,
|
|
4147
4151
|
key: `filter-${m}`,
|
|
4148
|
-
class:
|
|
4152
|
+
class: re(`advanced-filter advanced-filter--${s.key}`)
|
|
4149
4153
|
}, [
|
|
4150
|
-
(
|
|
4154
|
+
(oe(), pe($e(u(s.advancedFilter?.component)), N({
|
|
4151
4155
|
modelValue: l.value[s.advancedFilter?.key ?? s.key].value,
|
|
4152
4156
|
"onUpdate:modelValue": (v) => l.value[s.advancedFilter?.key ?? s.key].value = v,
|
|
4153
4157
|
comparison: l.value[s.advancedFilter?.key ?? s.key].comparison,
|
|
@@ -4161,9 +4165,9 @@ const oo = Q({
|
|
|
4161
4165
|
]),
|
|
4162
4166
|
_: 1
|
|
4163
4167
|
}),
|
|
4164
|
-
g(
|
|
4168
|
+
g(ze, { class: "mt-2" }),
|
|
4165
4169
|
g(pn, { class: "my-2 d-flex justify-end" }, {
|
|
4166
|
-
default:
|
|
4170
|
+
default: Ce(() => [
|
|
4167
4171
|
g(tt, {
|
|
4168
4172
|
class: "text-none",
|
|
4169
4173
|
text: d.$t("$datatables.cancel"),
|
|
@@ -4220,7 +4224,7 @@ const co = {
|
|
|
4220
4224
|
},
|
|
4221
4225
|
emits: ["update:modelValue"],
|
|
4222
4226
|
setup(e) {
|
|
4223
|
-
const a = Bt(), { advancedFiltersState: t } = Rt(), { setData: n } = a, l = _t(e, "modelValue"), i =
|
|
4227
|
+
const a = Bt(), { advancedFiltersState: t } = Rt(), { setData: n } = a, l = _t(e, "modelValue"), i = U({}), c = _e("table_props"), o = _e("busEmits"), u = () => {
|
|
4224
4228
|
const d = Object.entries(i.value).filter(([, r]) => {
|
|
4225
4229
|
const s = r.value;
|
|
4226
4230
|
return Array.isArray(s) || typeof s == "string" ? s.length > 0 : s != null && s !== "";
|
|
@@ -4235,14 +4239,14 @@ const co = {
|
|
|
4235
4239
|
i.value = bl(t.value);
|
|
4236
4240
|
}), (d, r) => {
|
|
4237
4241
|
const s = ro, m = fa;
|
|
4238
|
-
return
|
|
4242
|
+
return oe(), Ke("div", null, [
|
|
4239
4243
|
g(bn, {
|
|
4240
4244
|
modelValue: l.value,
|
|
4241
4245
|
"onUpdate:modelValue": r[1] || (r[1] = (v) => l.value = v),
|
|
4242
4246
|
"max-width": "550",
|
|
4243
4247
|
"retain-focus": !1
|
|
4244
4248
|
}, {
|
|
4245
|
-
default:
|
|
4249
|
+
default: Ce(({ isActive: v }) => [
|
|
4246
4250
|
g(s, {
|
|
4247
4251
|
modelValue: L(i),
|
|
4248
4252
|
"onUpdate:modelValue": r[0] || (r[0] = (h) => xt(i) ? i.value = h : null),
|
|
@@ -4252,19 +4256,19 @@ const co = {
|
|
|
4252
4256
|
]),
|
|
4253
4257
|
_: 1
|
|
4254
4258
|
}, 8, ["modelValue"]),
|
|
4255
|
-
Object.keys(L(t)).length ? (
|
|
4259
|
+
Object.keys(L(t)).length ? (oe(), pe(m, {
|
|
4256
4260
|
key: 0,
|
|
4257
4261
|
modelValue: L(i),
|
|
4258
4262
|
"onUpdate:modelValue": r[2] || (r[2] = (v) => xt(i) ? i.value = v : null),
|
|
4259
4263
|
onSave: u
|
|
4260
|
-
}, null, 8, ["modelValue"])) :
|
|
4264
|
+
}, null, 8, ["modelValue"])) : Me("", !0)
|
|
4261
4265
|
]);
|
|
4262
4266
|
};
|
|
4263
4267
|
}
|
|
4264
4268
|
};
|
|
4265
4269
|
function vo() {
|
|
4266
|
-
const e =
|
|
4267
|
-
return { advancedFiltersItems:
|
|
4270
|
+
const e = _e("datatablesPluginOptions"), { t: a } = Qn(), { advancedFiltersState: t } = Rt(), n = U(!1), l = I(() => Object.keys(t.value).length);
|
|
4271
|
+
return { advancedFiltersItems: I(() => [
|
|
4268
4272
|
{
|
|
4269
4273
|
title: `${a("$datatables.advancedFilters")}`,
|
|
4270
4274
|
onClick: () => n.value = !0,
|
|
@@ -4278,27 +4282,27 @@ const fo = /* @__PURE__ */ kl({
|
|
|
4278
4282
|
const { advancedFiltersItems: a, advancedFiltersDialog: t, activeAdvancedFilters: n } = vo();
|
|
4279
4283
|
return (l, i) => {
|
|
4280
4284
|
const c = co;
|
|
4281
|
-
return
|
|
4282
|
-
(
|
|
4285
|
+
return oe(), Ke("div", null, [
|
|
4286
|
+
(oe(!0), Ke(ce, null, Gt(L(a), (o, u) => (oe(), pe(tt, N({
|
|
4283
4287
|
key: u,
|
|
4284
4288
|
icon: "",
|
|
4285
4289
|
variant: "text",
|
|
4286
4290
|
color: L(n) ? "primary" : "dark",
|
|
4287
4291
|
density: "comfortable"
|
|
4288
4292
|
}, { ref_for: !0 }, o), {
|
|
4289
|
-
default:
|
|
4290
|
-
L(n) ? (
|
|
4293
|
+
default: Ce(() => [
|
|
4294
|
+
L(n) ? (oe(), pe(Wa, {
|
|
4291
4295
|
key: 0,
|
|
4292
4296
|
color: "primary",
|
|
4293
4297
|
content: L(n)
|
|
4294
4298
|
}, {
|
|
4295
|
-
default:
|
|
4296
|
-
g(
|
|
4299
|
+
default: Ce(() => [
|
|
4300
|
+
g(ke, {
|
|
4297
4301
|
icon: o.prependIcon
|
|
4298
4302
|
}, null, 8, ["icon"])
|
|
4299
4303
|
]),
|
|
4300
4304
|
_: 2
|
|
4301
|
-
}, 1032, ["content"])) : (
|
|
4305
|
+
}, 1032, ["content"])) : (oe(), pe(ke, {
|
|
4302
4306
|
key: 1,
|
|
4303
4307
|
icon: o.prependIcon
|
|
4304
4308
|
}, null, 8, ["icon"]))
|
|
@@ -4321,33 +4325,33 @@ const fo = /* @__PURE__ */ kl({
|
|
|
4321
4325
|
responsiveHeader: { type: Boolean }
|
|
4322
4326
|
},
|
|
4323
4327
|
setup(e) {
|
|
4324
|
-
const a =
|
|
4328
|
+
const a = Ee(() => import("./Search-BkQ1aZEe.js")), t = Ee(() => import("./RefreshTable-D4ifMTa_.js")), n = Ee(() => import("./Options-DZWZnKMZ.js")), l = Ee(() => import("./index-H3lKuAD2.js")), i = Ee(() => import("./index-DwBno3e_.js")), c = Ee(() => import("./index-CPLpre1I.js")), o = _e("table_props"), u = U(null), d = o.options?.header?.components ?? {};
|
|
4325
4329
|
return (r, s) => {
|
|
4326
4330
|
const m = fo;
|
|
4327
|
-
return
|
|
4328
|
-
e.responsiveHeader ?
|
|
4329
|
-
L(o).hardFilters.length ? (
|
|
4331
|
+
return oe(), Ke("div", mo, [
|
|
4332
|
+
e.responsiveHeader ? Me("", !0) : (oe(), pe(m, { key: 0 })),
|
|
4333
|
+
L(o).hardFilters.length ? (oe(), pe($e(L(d).hardFilters ?? L(l)), {
|
|
4330
4334
|
key: 1,
|
|
4331
4335
|
id: "header-hardFilters"
|
|
4332
|
-
})) :
|
|
4333
|
-
(
|
|
4336
|
+
})) : Me("", !0),
|
|
4337
|
+
(oe(), pe($e(L(d).toolbar), { id: "header-toolbar" })),
|
|
4334
4338
|
b("div", go, [
|
|
4335
|
-
(
|
|
4336
|
-
e.responsiveHeader ?
|
|
4339
|
+
(oe(), pe($e(L(d).search ?? L(a)), { id: "header-search" })),
|
|
4340
|
+
e.responsiveHeader ? Me("", !0) : (oe(), pe($e(L(d).columns ?? L(i)), {
|
|
4337
4341
|
key: 0,
|
|
4338
4342
|
"component-refs": { columns: L(u) }
|
|
4339
4343
|
}, null, 8, ["component-refs"])),
|
|
4340
|
-
e.responsiveHeader ?
|
|
4341
|
-
e.responsiveHeader ?
|
|
4342
|
-
(
|
|
4344
|
+
e.responsiveHeader ? Me("", !0) : (oe(), pe($e(L(d).download ?? L(c)), { key: 1 })),
|
|
4345
|
+
e.responsiveHeader ? Me("", !0) : (oe(), pe($e(L(d).refreshTable ?? L(t)), { key: 2 })),
|
|
4346
|
+
(oe(), pe($e(L(d).options ?? L(n)), { "responsive-header": e.responsiveHeader }, null, 8, ["responsive-header"]))
|
|
4343
4347
|
])
|
|
4344
4348
|
]);
|
|
4345
4349
|
};
|
|
4346
4350
|
}
|
|
4347
4351
|
});
|
|
4348
4352
|
function ho(e) {
|
|
4349
|
-
const a = Bt(), { getCurrentTable: t, setTableHash: n, hashString: l } = a, i =
|
|
4350
|
-
|
|
4353
|
+
const a = Bt(), { getCurrentTable: t, setTableHash: n, hashString: l } = a, i = U(!1), c = 5, o = I(() => t(e.id));
|
|
4354
|
+
se(
|
|
4351
4355
|
o,
|
|
4352
4356
|
async (v) => {
|
|
4353
4357
|
v.options.hash && await u(v);
|
|
@@ -4358,7 +4362,7 @@ function ho(e) {
|
|
|
4358
4362
|
);
|
|
4359
4363
|
const u = async (v) => {
|
|
4360
4364
|
if (i.value) return;
|
|
4361
|
-
i.value = !0, await
|
|
4365
|
+
i.value = !0, await Se();
|
|
4362
4366
|
const h = d(), y = h.findIndex((V) => V.id === e.id);
|
|
4363
4367
|
y > -1 ? h[y] = v : h.push(v), localStorage.setItem("datatables-state", JSON.stringify(h)), i.value = !1;
|
|
4364
4368
|
}, d = () => {
|
|
@@ -4385,7 +4389,7 @@ function ho(e) {
|
|
|
4385
4389
|
};
|
|
4386
4390
|
}
|
|
4387
4391
|
const Sn = Zn(() => {
|
|
4388
|
-
const e =
|
|
4392
|
+
const e = ee({}), a = ee({});
|
|
4389
4393
|
return {
|
|
4390
4394
|
storeOptions: {
|
|
4391
4395
|
state: e,
|
|
@@ -4409,41 +4413,41 @@ const Sn = Zn(() => {
|
|
|
4409
4413
|
},
|
|
4410
4414
|
emits: /* @__PURE__ */ Wt(["refreshTable", "refetchData", "advancedFilters:update", "hardFilters:update"], ["update:modelValue"]),
|
|
4411
4415
|
setup(e, { expose: a, emit: t }) {
|
|
4412
|
-
const n =
|
|
4413
|
-
ea(r, (
|
|
4414
|
-
const
|
|
4415
|
-
|
|
4416
|
+
const n = Ee(() => import("./Table-CUFIrlzk.js")), l = Ee(() => import("./TableServer-DSAcYBTM.js")), { storeOptions: i } = Sn(), { saveTableOptions: c } = Rt(), o = _t(e, "modelValue"), u = _e("table_props"), d = _e("datatablesPluginOptions"), r = U(null), s = U(!1), m = U(!1), v = U(!1), h = t, y = Bt(), { dataStateGet: V, tableDataState: P, checkTableState: _ } = ho(u), { addTable: S, restoreData: F } = y, E = U(!1);
|
|
4417
|
+
ea(r, (w) => {
|
|
4418
|
+
const C = w[0], { width: $ } = C.contentRect;
|
|
4419
|
+
E.value = $ < 950;
|
|
4416
4420
|
});
|
|
4417
|
-
const
|
|
4418
|
-
const
|
|
4419
|
-
return
|
|
4421
|
+
const K = I(() => {
|
|
4422
|
+
const w = u.options?.header;
|
|
4423
|
+
return w === void 0 || typeof w == "object" && w !== null;
|
|
4420
4424
|
});
|
|
4421
4425
|
return at(async () => {
|
|
4422
|
-
|
|
4423
|
-
const
|
|
4424
|
-
|
|
4425
|
-
const
|
|
4426
|
-
|
|
4427
|
-
}), We("busEmits", h), We("tableRef", r), We("tableState",
|
|
4428
|
-
const
|
|
4429
|
-
return L(m) ? (
|
|
4426
|
+
S({ table_id: u.id }), await _();
|
|
4427
|
+
const w = V();
|
|
4428
|
+
w && F({ table_id: u.id, data: w });
|
|
4429
|
+
const $ = P.value.options.columns;
|
|
4430
|
+
$.sorted?.length || ($.selected?.length || ($.selected = u.headers.filter((D) => !D.hidden).map((D) => D.key)), $.sorted = u.headers.map((D) => D.key)), c(Xn(i.state.value, P.value.options.state)), m.value = !0, await Se(), v.value = !0;
|
|
4431
|
+
}), We("busEmits", h), We("tableRef", r), We("tableState", P), We("downloadModal", s), a({ tableRef: r }), (w, C) => {
|
|
4432
|
+
const $ = yo;
|
|
4433
|
+
return L(m) ? (oe(), Ke("div", bo, [
|
|
4430
4434
|
g(kn, null, {
|
|
4431
|
-
default:
|
|
4432
|
-
L(
|
|
4433
|
-
default:
|
|
4434
|
-
g(
|
|
4435
|
+
default: Ce(() => [
|
|
4436
|
+
L(K) ? (oe(), pe(il, { key: 0 }, {
|
|
4437
|
+
default: Ce(() => [
|
|
4438
|
+
g($, { "responsive-header": L(E) }, null, 8, ["responsive-header"])
|
|
4435
4439
|
]),
|
|
4436
4440
|
_: 1
|
|
4437
|
-
})) :
|
|
4441
|
+
})) : Me("", !0),
|
|
4438
4442
|
g(ul, { class: "pa-0" }, {
|
|
4439
|
-
default:
|
|
4440
|
-
L(v) ? (
|
|
4443
|
+
default: Ce(() => [
|
|
4444
|
+
L(v) ? (oe(), pe($e(L(u).api ? L(l) : L(n)), {
|
|
4441
4445
|
key: 0,
|
|
4442
4446
|
ref_key: "tableRef",
|
|
4443
4447
|
ref: r,
|
|
4444
4448
|
modelValue: o.value,
|
|
4445
|
-
"onUpdate:modelValue":
|
|
4446
|
-
}, null, 8, ["modelValue"])) :
|
|
4449
|
+
"onUpdate:modelValue": C[0] || (C[0] = (D) => o.value = D)
|
|
4450
|
+
}, null, 8, ["modelValue"])) : Me("", !0)
|
|
4447
4451
|
]),
|
|
4448
4452
|
_: 1
|
|
4449
4453
|
})
|
|
@@ -4452,31 +4456,31 @@ const Sn = Zn(() => {
|
|
|
4452
4456
|
}),
|
|
4453
4457
|
g(bn, {
|
|
4454
4458
|
modelValue: L(s),
|
|
4455
|
-
"onUpdate:modelValue":
|
|
4459
|
+
"onUpdate:modelValue": C[1] || (C[1] = (D) => xt(s) ? s.value = D : null),
|
|
4456
4460
|
"max-width": "350",
|
|
4457
4461
|
persistent: ""
|
|
4458
4462
|
}, {
|
|
4459
|
-
default:
|
|
4463
|
+
default: Ce(() => [
|
|
4460
4464
|
g(nl, {
|
|
4461
4465
|
class: "py-2",
|
|
4462
4466
|
color: "primary",
|
|
4463
4467
|
elevation: "12",
|
|
4464
4468
|
rounded: "lg"
|
|
4465
4469
|
}, {
|
|
4466
|
-
default:
|
|
4470
|
+
default: Ce(() => [
|
|
4467
4471
|
g(vt, {
|
|
4468
4472
|
"prepend-icon": L(d).header.icons.download,
|
|
4469
|
-
title:
|
|
4473
|
+
title: w.$t("$datatables.preparing_download_file")
|
|
4470
4474
|
}, {
|
|
4471
|
-
prepend:
|
|
4475
|
+
prepend: Ce(() => [
|
|
4472
4476
|
b("div", po, [
|
|
4473
|
-
g(
|
|
4477
|
+
g(ke, {
|
|
4474
4478
|
color: "primary",
|
|
4475
4479
|
size: "x-large"
|
|
4476
4480
|
})
|
|
4477
4481
|
])
|
|
4478
4482
|
]),
|
|
4479
|
-
append:
|
|
4483
|
+
append: Ce(() => [
|
|
4480
4484
|
g(Yn, {
|
|
4481
4485
|
color: "primary",
|
|
4482
4486
|
indeterminate: "disable-shrink",
|
|
@@ -4492,11 +4496,11 @@ const Sn = Zn(() => {
|
|
|
4492
4496
|
]),
|
|
4493
4497
|
_: 1
|
|
4494
4498
|
}, 8, ["modelValue"])
|
|
4495
|
-
])) :
|
|
4499
|
+
])) : Me("", !0);
|
|
4496
4500
|
};
|
|
4497
4501
|
}
|
|
4498
4502
|
}, So = Sl("datatablesHooks", () => {
|
|
4499
|
-
const e =
|
|
4503
|
+
const e = U({});
|
|
4500
4504
|
return {
|
|
4501
4505
|
hooks: e,
|
|
4502
4506
|
registerHook: (n, l) => {
|
|
@@ -4553,14 +4557,14 @@ const Sn = Zn(() => {
|
|
|
4553
4557
|
},
|
|
4554
4558
|
emits: ["refreshTable", "refetchData"],
|
|
4555
4559
|
setup(e, { expose: a, emit: t }) {
|
|
4556
|
-
const n = e, { triggerHook: l } = So(), { storeOptions: i, setUserOptions: c } = Sn(), o =
|
|
4557
|
-
c(m), u.value < 99 && (s("refreshTable"), await
|
|
4560
|
+
const n = e, { triggerHook: l } = So(), { storeOptions: i, setUserOptions: c } = Sn(), o = U(null), u = U(0), d = async (m = {}) => {
|
|
4561
|
+
c(m), u.value < 99 && (s("refreshTable"), await Se(), u.value++);
|
|
4558
4562
|
}, r = (m = {}) => {
|
|
4559
4563
|
c(m), o.value.tableRef.hasOwnProperty("reloadItems") && (o.value.tableRef.reloadItems(i.state.value), s("refetchData"));
|
|
4560
4564
|
}, s = t;
|
|
4561
4565
|
return a({ refreshTable: d, refetchData: r, triggerHook: l }), We("table_props", n), We("triggerHook", l), (m, v) => {
|
|
4562
4566
|
const h = ko;
|
|
4563
|
-
return
|
|
4567
|
+
return oe(), pe(h, {
|
|
4564
4568
|
id: e.id,
|
|
4565
4569
|
ref_key: "table",
|
|
4566
4570
|
ref: o,
|