@ianicdev/datatables2 0.11.0 → 0.11.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Comparison-C2hZMBq4.js → Comparison-C4t1CoQN.js} +1 -1
- package/dist/{Comparison-tLPSEm-Q.cjs → Comparison-K_C8fK5q.cjs} +1 -1
- package/dist/{Datepicker-BA4mQx6C.cjs → Datepicker-8vMCYK64.cjs} +1 -1
- package/dist/{Datepicker-BO2Ixl4r.js → Datepicker-CvoUCd6e.js} +2 -2
- package/dist/{Options-C7EAVB8f.cjs → Options-CLwvsyYI.cjs} +1 -1
- package/dist/{Options-DrhE_fto.js → Options-DtOz8dqa.js} +5 -5
- package/dist/{RefreshTable-BNy_MWZg.js → RefreshTable-03hYqy0d.js} +2 -2
- package/dist/{RefreshTable-C-AgoC97.cjs → RefreshTable-BDCdK574.cjs} +1 -1
- package/dist/{Search-D_zU2pXl.cjs → Search-BfHfgRqm.cjs} +1 -1
- package/dist/{Search-CdHQz2KW.js → Search-DCvbaw38.js} +2 -2
- package/dist/Table-BdiBnyG7.js +59 -0
- package/dist/Table-hSaWsE5Z.cjs +1 -0
- package/dist/TableServer-DfNCjOUI.cjs +20 -0
- package/dist/{TableServer-D4Q_9dET.js → TableServer-eOtGylb9.js} +415 -402
- package/dist/{cellRender-LGC_k50e.js → cellRender-B7hkYbUV.js} +2 -2
- package/dist/{cellRender-DuBdvYbh.cjs → cellRender-BN5jkrLA.cjs} +1 -1
- package/dist/{dataTables-DV00l1p8.cjs → dataTables-B51qe1LD.cjs} +1 -1
- package/dist/{dataTables-j8j4naMl.js → dataTables-EUusYEBd.js} +1 -1
- package/dist/datatables.cjs +1 -1
- package/dist/datatables.js +1 -1
- package/dist/datatables2.css +1 -1
- package/dist/{index-CXUreMkK.cjs → index-9hGXBnYN.cjs} +1 -1
- package/dist/{index-CU-Eak9-.cjs → index-BSh8Y0C1.cjs} +1 -1
- package/dist/{index-zhSEiNN0.js → index-BTwaqzMN.js} +2 -2
- package/dist/{index-DzyBRRkM.js → index-B_fG3b5A.js} +2 -2
- package/dist/{index-BjbhnehN.js → index-CsgCe_gz.js} +906 -901
- package/dist/{index-BU9rb0Q-.js → index-DG3Vs3j9.js} +2 -2
- package/dist/{index-_cYryjRU.cjs → index-Hcb-nE49.cjs} +1 -1
- package/dist/index-sB-PMcO7.cjs +1 -0
- package/dist/{index.es-CtLP1GTc.js → index.es-D48oZl91.js} +4 -4
- package/dist/{index.es-BCJd8pS0.cjs → index.es-DQaLNvpD.cjs} +1 -1
- package/dist/{jspdf-DyYqWhF9.cjs → jspdf-D8dTvh2d.cjs} +1 -1
- package/dist/{jspdf-3qJBK9tP.js → jspdf-v7nU-ziX.js} +1 -1
- package/dist/{useColumns-CCJ04VF-.cjs → useColumns-DV---ndr.cjs} +1 -1
- package/dist/{useColumns-Dfrb9p8A.js → useColumns-UM_zCt0D.js} +2 -2
- package/dist/{useDownload-DgATsbOV.js → useDownload-CR3A1-nS.js} +1 -1
- package/dist/{useDownload-CL90ZIqP.cjs → useDownload-wLFMGFcn.cjs} +1 -1
- package/dist/{useRefreshTable-Cf0gpIuT.js → useRefreshTable-CRquY8ZU.js} +1 -1
- package/dist/{useRefreshTable-BhEgI00Z.cjs → useRefreshTable-Dg9LI59z.cjs} +1 -1
- package/lib/index.d.ts +29 -0
- package/package.json +7 -7
- package/dist/Table-B2iOe4P0.cjs +0 -1
- package/dist/Table-DHHVRPoA.js +0 -63
- package/dist/TableServer-k8aRa4f5.cjs +0 -20
- package/dist/index-CEe--P_C.cjs +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ref as W, inject as
|
|
1
|
+
import { ref as W, inject as Pe, computed as w, toRef as T, shallowRef as J, watch as re, createVNode as f, normalizeStyle as Ie, normalizeClass as ce, createElementVNode as b, mergeProps as R, withDirectives as He, vShow as Ct, Fragment as de, toDisplayString as bt, mergeModels as Lt, useModel as Vt, createBlock as ke, openBlock as le, withCtx as xe, createElementBlock as ze, renderList as Ht, unref as N, useId as je, provide as Ue, onScopeDispose as nt, nextTick as Ve, onBeforeMount as dn, onBeforeUnmount as vn, onMounted as Ye, cloneVNode as fn, watchEffect as Rt, toValue as mn, createTextVNode as vl, defineAsyncComponent as Te, resolveDynamicComponent as Oe, createCommentVNode as Re, isRef as pt, defineComponent as fl } from "vue";
|
|
2
2
|
import { defineStore as ml } from "pinia";
|
|
3
|
-
import { u as xt, m as Mt, P as gl, c as Me, a as gn, e as yn, r as hn, g as
|
|
3
|
+
import { u as xt, m as Mt, P as gl, c as Me, a as gn, e as yn, r as hn, g as oe, p as j, b as yl, d as hl, f as kt, I as at, h as ve, V as tl, i as Se, j as bl, k as Be, l as bn, n as pe, o as be, q as pn, s as Qe, t as zt, v as Ut, w as Ne, x as We, R as Je, y as Ze, z as Kt, A as It, B as jt, C as rt, D as kn, E as we, F as ll, G as pl, H as kl, J as Sl, K as Cl, L as Fe, M as Xe, N as Sn, O as Vl, Q as ct, S as Cn, T as Gt, U as dt, W as Wt, X as $e, Y as wt, Z as vt, _ as qt, $ as xl, a0 as Il, a1 as Jt, a2 as ft, a3 as wl, a4 as De, a5 as mt, a6 as ot, a7 as Ge, a8 as _l, a9 as Xt, aa as _t, ab as Pl, ac as Al, ad as Fl, ae as $t, af as Vn, ag as Dl, ah as xn, ai as In, aj as lt, ak as Tl, al as Bl, am as wn, an as nl, ao as gt, ap as _n, aq as El, ar as Pn, as as Ol, at as Rl, au as Yt, av as it, aw as An, ax as Le, ay as Ml, az as $l, aA as Nl, aB as St, aC as Fn, aD as Dn, aE as Tn, aF as Bn, aG as En, aH as al, aI as On, aJ as Rn, aK as Mn, aL as qe, aM as $n, aN as Nn, aO as Ln, aP as Hn } from "./dataTables-EUusYEBd.js";
|
|
4
4
|
import { useI18n as zn } from "vue-i18n";
|
|
5
5
|
import { createSharedComposable as Un, useResizeObserver as Kn } from "@vueuse/core";
|
|
6
6
|
const Pt = ml("datatables", () => {
|
|
@@ -58,13 +58,13 @@ const Pt = ml("datatables", () => {
|
|
|
58
58
|
};
|
|
59
59
|
});
|
|
60
60
|
function At() {
|
|
61
|
-
const { setData: e, getCurrentTable: a } = Pt(), t =
|
|
61
|
+
const { setData: e, getCurrentTable: a } = Pt(), t = Pe("table_props"), n = w(() => a(t.id)), l = w(() => n.value.search?.query), i = w(() => {
|
|
62
62
|
if (!t?.headers.length) return null;
|
|
63
63
|
const d = n.value.options?.columns.selected ?? [];
|
|
64
64
|
return (n.value.options?.columns.sorted ?? []).filter((m) => d.includes(m)).map(
|
|
65
65
|
(m) => t.headers.find((g) => g.key === m)
|
|
66
66
|
);
|
|
67
|
-
}), c =
|
|
67
|
+
}), c = w(() => n.value.hardFilters?.query), s = w(() => n.value.advancedFilters?.query);
|
|
68
68
|
return {
|
|
69
69
|
tableState: n,
|
|
70
70
|
searchState: l,
|
|
@@ -121,8 +121,8 @@ async function ol(e, a, t, n) {
|
|
|
121
121
|
if (o === r) return Promise.resolve(o);
|
|
122
122
|
const m = performance.now();
|
|
123
123
|
return new Promise((g) => requestAnimationFrame(function y(h) {
|
|
124
|
-
const _ = (h - m) / i.duration,
|
|
125
|
-
if (u[l] =
|
|
124
|
+
const _ = (h - m) / i.duration, x = Math.floor(r + (o - r) * d(Me(_, 0, 1)));
|
|
125
|
+
if (u[l] = x, _ >= 1 && Math.abs(x - u[l]) < 10)
|
|
126
126
|
return g(o);
|
|
127
127
|
if (_ > 2)
|
|
128
128
|
return gn("Scroll target is not reachable"), g(u[l]);
|
|
@@ -131,14 +131,14 @@ async function ol(e, a, t, n) {
|
|
|
131
131
|
}
|
|
132
132
|
function qn() {
|
|
133
133
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
134
|
-
const a =
|
|
134
|
+
const a = Pe(jn), {
|
|
135
135
|
isRtl: t
|
|
136
136
|
} = xt();
|
|
137
137
|
if (!a) throw new Error("[Vuetify] Could not find injected goto instance");
|
|
138
138
|
const n = {
|
|
139
139
|
...a,
|
|
140
140
|
// can be set via VLocaleProvider
|
|
141
|
-
rtl:
|
|
141
|
+
rtl: T(() => a.rtl.value || t.value)
|
|
142
142
|
};
|
|
143
143
|
async function l(i, c) {
|
|
144
144
|
return ol(i, Mt(e, c), !1, n);
|
|
@@ -194,7 +194,7 @@ function ut(e, a) {
|
|
|
194
194
|
function Hl(e, a) {
|
|
195
195
|
return a?.[e ? "offsetLeft" : "offsetTop"] || 0;
|
|
196
196
|
}
|
|
197
|
-
const zl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Ul =
|
|
197
|
+
const zl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Ul = j({
|
|
198
198
|
centerActive: Boolean,
|
|
199
199
|
scrollToActive: {
|
|
200
200
|
type: Boolean,
|
|
@@ -229,7 +229,7 @@ const zl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Ul = G({
|
|
|
229
229
|
...bl({
|
|
230
230
|
selectedClass: "v-slide-group-item--active"
|
|
231
231
|
})
|
|
232
|
-
}, "VSlideGroup"), ul =
|
|
232
|
+
}, "VSlideGroup"), ul = oe()({
|
|
233
233
|
name: "VSlideGroup",
|
|
234
234
|
props: Ul(),
|
|
235
235
|
emits: {
|
|
@@ -244,71 +244,71 @@ const zl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Ul = G({
|
|
|
244
244
|
} = xt(), {
|
|
245
245
|
displayClasses: l,
|
|
246
246
|
mobile: i
|
|
247
|
-
} = yl(e), c = hl(e, e.symbol), s = J(!1), u = J(0), d = J(0), o = J(0), r =
|
|
247
|
+
} = yl(e), c = hl(e, e.symbol), s = J(!1), u = J(0), d = J(0), o = J(0), r = w(() => e.direction === "horizontal"), {
|
|
248
248
|
resizeRef: m,
|
|
249
249
|
contentRect: g
|
|
250
250
|
} = kt(), {
|
|
251
251
|
resizeRef: y,
|
|
252
252
|
contentRect: h
|
|
253
|
-
} = kt(),
|
|
253
|
+
} = kt(), I = qn(), _ = w(() => ({
|
|
254
254
|
container: m.el,
|
|
255
255
|
duration: 200,
|
|
256
256
|
easing: "easeOutQuart"
|
|
257
|
-
})),
|
|
257
|
+
})), x = w(() => c.selected.value.length ? c.items.value.findIndex((S) => S.id === c.selected.value[0]) : -1), k = w(() => c.selected.value.length ? c.items.value.findIndex((S) => S.id === c.selected.value[c.selected.value.length - 1]) : -1);
|
|
258
258
|
if (at) {
|
|
259
|
-
let
|
|
259
|
+
let S = -1;
|
|
260
260
|
re(() => [c.selected.value, g.value, h.value, r.value], () => {
|
|
261
|
-
cancelAnimationFrame(
|
|
261
|
+
cancelAnimationFrame(S), S = requestAnimationFrame(() => {
|
|
262
262
|
if (g.value && h.value) {
|
|
263
263
|
const v = r.value ? "width" : "height";
|
|
264
264
|
d.value = g.value[v], o.value = h.value[v], s.value = d.value + 1 < o.value;
|
|
265
265
|
}
|
|
266
|
-
if (e.scrollToActive &&
|
|
266
|
+
if (e.scrollToActive && x.value >= 0 && y.el) {
|
|
267
267
|
const v = y.el.children[k.value];
|
|
268
268
|
F(v, e.centerActive);
|
|
269
269
|
}
|
|
270
270
|
});
|
|
271
271
|
});
|
|
272
272
|
}
|
|
273
|
-
const
|
|
274
|
-
function F(
|
|
273
|
+
const B = J(!1);
|
|
274
|
+
function F(S, v) {
|
|
275
275
|
let P = 0;
|
|
276
276
|
v ? P = Yn({
|
|
277
277
|
containerElement: m.el,
|
|
278
278
|
isHorizontal: r.value,
|
|
279
|
-
selectedElement:
|
|
279
|
+
selectedElement: S
|
|
280
280
|
}) : P = Xn({
|
|
281
281
|
containerElement: m.el,
|
|
282
282
|
isHorizontal: r.value,
|
|
283
283
|
isRtl: n.value,
|
|
284
|
-
selectedElement:
|
|
285
|
-
}),
|
|
284
|
+
selectedElement: S
|
|
285
|
+
}), L(P);
|
|
286
286
|
}
|
|
287
|
-
function
|
|
287
|
+
function L(S) {
|
|
288
288
|
if (!at || !m.el) return;
|
|
289
289
|
const v = ut(r.value, m.el), P = Ll(r.value, n.value, m.el);
|
|
290
290
|
if (!(il(r.value, m.el) <= v || // Prevent scrolling by only a couple of pixels, which doesn't look smooth
|
|
291
|
-
Math.abs(
|
|
291
|
+
Math.abs(S - P) < 16)) {
|
|
292
292
|
if (r.value && n.value && m.el) {
|
|
293
293
|
const {
|
|
294
|
-
scrollWidth:
|
|
295
|
-
offsetWidth:
|
|
294
|
+
scrollWidth: $,
|
|
295
|
+
offsetWidth: K
|
|
296
296
|
} = m.el;
|
|
297
|
-
|
|
297
|
+
S = $ - K - S;
|
|
298
298
|
}
|
|
299
|
-
r.value ?
|
|
299
|
+
r.value ? I.horizontal(S, _.value) : I(S, _.value);
|
|
300
300
|
}
|
|
301
301
|
}
|
|
302
|
-
function A(
|
|
302
|
+
function A(S) {
|
|
303
303
|
const {
|
|
304
304
|
scrollTop: v,
|
|
305
305
|
scrollLeft: P
|
|
306
|
-
} =
|
|
306
|
+
} = S.target;
|
|
307
307
|
u.value = r.value ? P : v;
|
|
308
308
|
}
|
|
309
|
-
function p(
|
|
310
|
-
if (
|
|
311
|
-
for (const v of
|
|
309
|
+
function p(S) {
|
|
310
|
+
if (B.value = !0, !(!s.value || !y.el)) {
|
|
311
|
+
for (const v of S.composedPath())
|
|
312
312
|
for (const P of y.el.children)
|
|
313
313
|
if (P === v) {
|
|
314
314
|
F(P);
|
|
@@ -316,63 +316,63 @@ const zl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Ul = G({
|
|
|
316
316
|
}
|
|
317
317
|
}
|
|
318
318
|
}
|
|
319
|
-
function
|
|
320
|
-
|
|
319
|
+
function M(S) {
|
|
320
|
+
B.value = !1;
|
|
321
321
|
}
|
|
322
322
|
let E = !1;
|
|
323
|
-
function q(
|
|
324
|
-
!E && !
|
|
323
|
+
function q(S) {
|
|
324
|
+
!E && !B.value && !(S.relatedTarget && y.el?.contains(S.relatedTarget)) && z(), E = !1;
|
|
325
325
|
}
|
|
326
326
|
function te() {
|
|
327
327
|
E = !0;
|
|
328
328
|
}
|
|
329
|
-
function ee(
|
|
329
|
+
function ee(S) {
|
|
330
330
|
if (!y.el) return;
|
|
331
331
|
function v(P) {
|
|
332
|
-
|
|
332
|
+
S.preventDefault(), z(P);
|
|
333
333
|
}
|
|
334
|
-
r.value ?
|
|
334
|
+
r.value ? S.key === "ArrowRight" ? v(n.value ? "prev" : "next") : S.key === "ArrowLeft" && v(n.value ? "next" : "prev") : S.key === "ArrowDown" ? v("next") : S.key === "ArrowUp" && v("prev"), S.key === "Home" ? v("first") : S.key === "End" && v("last");
|
|
335
335
|
}
|
|
336
|
-
function U(
|
|
337
|
-
if (!
|
|
338
|
-
let P =
|
|
336
|
+
function U(S, v) {
|
|
337
|
+
if (!S) return;
|
|
338
|
+
let P = S;
|
|
339
339
|
do
|
|
340
340
|
P = P?.[v === "next" ? "nextElementSibling" : "previousElementSibling"];
|
|
341
341
|
while (P?.hasAttribute("disabled"));
|
|
342
342
|
return P;
|
|
343
343
|
}
|
|
344
|
-
function
|
|
344
|
+
function z(S) {
|
|
345
345
|
if (!y.el) return;
|
|
346
346
|
let v;
|
|
347
|
-
if (!
|
|
347
|
+
if (!S)
|
|
348
348
|
v = pn(y.el)[0];
|
|
349
|
-
else if (
|
|
350
|
-
if (v = U(y.el.querySelector(":focus"),
|
|
351
|
-
} else if (
|
|
352
|
-
if (v = U(y.el.querySelector(":focus"),
|
|
353
|
-
} else
|
|
349
|
+
else if (S === "next") {
|
|
350
|
+
if (v = U(y.el.querySelector(":focus"), S), !v) return z("first");
|
|
351
|
+
} else if (S === "prev") {
|
|
352
|
+
if (v = U(y.el.querySelector(":focus"), S), !v) return z("last");
|
|
353
|
+
} else S === "first" ? (v = y.el.firstElementChild, v?.hasAttribute("disabled") && (v = U(v, "next"))) : S === "last" && (v = y.el.lastElementChild, v?.hasAttribute("disabled") && (v = U(v, "prev")));
|
|
354
354
|
v && v.focus({
|
|
355
355
|
preventScroll: !0
|
|
356
356
|
});
|
|
357
357
|
}
|
|
358
|
-
function
|
|
359
|
-
const v = r.value && n.value ? -1 : 1, P = (
|
|
358
|
+
function ie(S) {
|
|
359
|
+
const v = r.value && n.value ? -1 : 1, P = (S === "prev" ? -v : v) * d.value;
|
|
360
360
|
let V = u.value + P;
|
|
361
361
|
if (r.value && n.value && m.el) {
|
|
362
362
|
const {
|
|
363
|
-
scrollWidth:
|
|
364
|
-
offsetWidth:
|
|
363
|
+
scrollWidth: $,
|
|
364
|
+
offsetWidth: K
|
|
365
365
|
} = m.el;
|
|
366
|
-
V +=
|
|
366
|
+
V += $ - K;
|
|
367
367
|
}
|
|
368
|
-
|
|
368
|
+
L(V);
|
|
369
369
|
}
|
|
370
|
-
const
|
|
370
|
+
const G = w(() => ({
|
|
371
371
|
next: c.next,
|
|
372
372
|
prev: c.prev,
|
|
373
373
|
select: c.select,
|
|
374
374
|
isSelected: c.isSelected
|
|
375
|
-
})),
|
|
375
|
+
})), X = w(() => s.value || Math.abs(u.value) > 0), ne = w(() => {
|
|
376
376
|
switch (e.showArrows) {
|
|
377
377
|
case "never":
|
|
378
378
|
return !1;
|
|
@@ -385,75 +385,75 @@ const zl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Ul = G({
|
|
|
385
385
|
// Show arrows on mobile when overflowing.
|
|
386
386
|
// This matches the default 2.2 behavior
|
|
387
387
|
case !0:
|
|
388
|
-
return
|
|
388
|
+
return X.value;
|
|
389
389
|
// Always show on mobile
|
|
390
390
|
case "mobile":
|
|
391
|
-
return i.value ||
|
|
391
|
+
return i.value || X.value;
|
|
392
392
|
// https://material.io/components/tabs#scrollable-tabs
|
|
393
393
|
// Always show arrows when
|
|
394
394
|
// overflowed on desktop
|
|
395
395
|
default:
|
|
396
|
-
return !i.value &&
|
|
396
|
+
return !i.value && X.value;
|
|
397
397
|
}
|
|
398
|
-
}), D =
|
|
399
|
-
if (!m.value || !
|
|
400
|
-
const
|
|
401
|
-
return
|
|
398
|
+
}), D = w(() => Math.abs(u.value) > 1), O = w(() => {
|
|
399
|
+
if (!m.value || !X.value) return !1;
|
|
400
|
+
const S = il(r.value, m.el), v = Qn(r.value, m.el);
|
|
401
|
+
return S - v - Math.abs(u.value) > 1;
|
|
402
402
|
});
|
|
403
|
-
return
|
|
404
|
-
class:
|
|
403
|
+
return ve(() => f(e.tag, {
|
|
404
|
+
class: ce(["v-slide-group", {
|
|
405
405
|
"v-slide-group--vertical": !r.value,
|
|
406
|
-
"v-slide-group--has-affixes":
|
|
406
|
+
"v-slide-group--has-affixes": ne.value,
|
|
407
407
|
"v-slide-group--is-overflowing": s.value
|
|
408
408
|
}, l.value, e.class]),
|
|
409
|
-
style:
|
|
410
|
-
tabindex:
|
|
409
|
+
style: Ie(e.style),
|
|
410
|
+
tabindex: B.value || c.selected.value.length ? -1 : 0,
|
|
411
411
|
onFocus: q
|
|
412
412
|
}, {
|
|
413
|
-
default: () => [
|
|
413
|
+
default: () => [ne.value && b("div", {
|
|
414
414
|
key: "prev",
|
|
415
|
-
class:
|
|
415
|
+
class: ce(["v-slide-group__prev", {
|
|
416
416
|
"v-slide-group__prev--disabled": !D.value
|
|
417
417
|
}]),
|
|
418
418
|
onMousedown: te,
|
|
419
|
-
onClick: () => D.value &&
|
|
420
|
-
}, [t.prev?.(
|
|
419
|
+
onClick: () => D.value && ie("prev")
|
|
420
|
+
}, [t.prev?.(G.value) ?? f(tl, null, {
|
|
421
421
|
default: () => [f(Se, {
|
|
422
422
|
icon: n.value ? e.nextIcon : e.prevIcon
|
|
423
423
|
}, null)]
|
|
424
424
|
})]), b("div", {
|
|
425
425
|
key: "container",
|
|
426
426
|
ref: m,
|
|
427
|
-
class:
|
|
427
|
+
class: ce(["v-slide-group__container", e.contentClass]),
|
|
428
428
|
onScroll: A
|
|
429
429
|
}, [b("div", {
|
|
430
430
|
ref: y,
|
|
431
431
|
class: "v-slide-group__content",
|
|
432
432
|
onFocusin: p,
|
|
433
|
-
onFocusout:
|
|
433
|
+
onFocusout: M,
|
|
434
434
|
onKeydown: ee
|
|
435
|
-
}, [t.default?.(
|
|
435
|
+
}, [t.default?.(G.value)])]), ne.value && b("div", {
|
|
436
436
|
key: "next",
|
|
437
|
-
class:
|
|
438
|
-
"v-slide-group__next--disabled":
|
|
437
|
+
class: ce(["v-slide-group__next", {
|
|
438
|
+
"v-slide-group__next--disabled": !O.value
|
|
439
439
|
}]),
|
|
440
440
|
onMousedown: te,
|
|
441
|
-
onClick: () =>
|
|
442
|
-
}, [t.next?.(
|
|
441
|
+
onClick: () => O.value && ie("next")
|
|
442
|
+
}, [t.next?.(G.value) ?? f(tl, null, {
|
|
443
443
|
default: () => [f(Se, {
|
|
444
444
|
icon: n.value ? e.prevIcon : e.nextIcon
|
|
445
445
|
}, null)]
|
|
446
446
|
})])]
|
|
447
447
|
})), {
|
|
448
448
|
selected: c.selected,
|
|
449
|
-
scrollTo:
|
|
449
|
+
scrollTo: ie,
|
|
450
450
|
scrollOffset: u,
|
|
451
|
-
focus:
|
|
451
|
+
focus: z,
|
|
452
452
|
hasPrev: D,
|
|
453
|
-
hasNext:
|
|
453
|
+
hasNext: O
|
|
454
454
|
};
|
|
455
455
|
}
|
|
456
|
-
}), Kl = /* @__PURE__ */ Symbol.for("vuetify:v-chip-group"), Zn =
|
|
456
|
+
}), Kl = /* @__PURE__ */ Symbol.for("vuetify:v-chip-group"), Zn = j({
|
|
457
457
|
baseColor: String,
|
|
458
458
|
column: Boolean,
|
|
459
459
|
filter: Boolean,
|
|
@@ -473,7 +473,7 @@ const zl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Ul = G({
|
|
|
473
473
|
...Ut({
|
|
474
474
|
variant: "tonal"
|
|
475
475
|
})
|
|
476
|
-
}, "VChipGroup"), ea =
|
|
476
|
+
}, "VChipGroup"), ea = oe()({
|
|
477
477
|
name: "VChipGroup",
|
|
478
478
|
props: Zn(),
|
|
479
479
|
emits: {
|
|
@@ -494,15 +494,15 @@ const zl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Ul = G({
|
|
|
494
494
|
} = hl(e, Kl);
|
|
495
495
|
return zt({
|
|
496
496
|
VChip: {
|
|
497
|
-
baseColor:
|
|
498
|
-
color:
|
|
499
|
-
disabled:
|
|
500
|
-
filter:
|
|
501
|
-
variant:
|
|
497
|
+
baseColor: T(() => e.baseColor),
|
|
498
|
+
color: T(() => e.color),
|
|
499
|
+
disabled: T(() => e.disabled),
|
|
500
|
+
filter: T(() => e.filter),
|
|
501
|
+
variant: T(() => e.variant)
|
|
502
502
|
}
|
|
503
|
-
}),
|
|
503
|
+
}), ve(() => {
|
|
504
504
|
const d = ul.filterProps(e);
|
|
505
|
-
return f(ul,
|
|
505
|
+
return f(ul, R(d, {
|
|
506
506
|
class: ["v-chip-group", {
|
|
507
507
|
"v-chip-group--column": e.column
|
|
508
508
|
}, n.value, e.class],
|
|
@@ -518,7 +518,7 @@ const zl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Ul = G({
|
|
|
518
518
|
});
|
|
519
519
|
}), {};
|
|
520
520
|
}
|
|
521
|
-
}), ta =
|
|
521
|
+
}), ta = j({
|
|
522
522
|
activeClass: String,
|
|
523
523
|
appendAvatar: String,
|
|
524
524
|
appendIcon: be,
|
|
@@ -575,7 +575,7 @@ const zl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Ul = G({
|
|
|
575
575
|
...Ut({
|
|
576
576
|
variant: "tonal"
|
|
577
577
|
})
|
|
578
|
-
}, "VChip"), st =
|
|
578
|
+
}, "VChip"), st = oe()({
|
|
579
579
|
name: "VChip",
|
|
580
580
|
directives: {
|
|
581
581
|
vRipple: Je
|
|
@@ -607,7 +607,7 @@ const zl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Ul = G({
|
|
|
607
607
|
sizeClasses: o
|
|
608
608
|
} = kn(e), {
|
|
609
609
|
themeClasses: r
|
|
610
|
-
} = Qe(e), m = we(e, "modelValue"), g = ll(e, Kl, !1), y = ll(e, zl, !1), h = pl(e, t),
|
|
610
|
+
} = Qe(e), m = we(e, "modelValue"), g = ll(e, Kl, !1), y = ll(e, zl, !1), h = pl(e, t), I = T(() => e.link !== !1 && h.isLink.value), _ = w(() => !e.disabled && e.link !== !1 && (!!g || e.link || h.isClickable.value)), x = T(() => ({
|
|
611
611
|
"aria-label": i(e.closeLabel),
|
|
612
612
|
disabled: e.disabled,
|
|
613
613
|
onClick(p) {
|
|
@@ -619,21 +619,21 @@ const zl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Ul = G({
|
|
|
619
619
|
});
|
|
620
620
|
const {
|
|
621
621
|
colorClasses: k,
|
|
622
|
-
colorStyles:
|
|
622
|
+
colorStyles: B,
|
|
623
623
|
variantClasses: F
|
|
624
624
|
} = kl(() => ({
|
|
625
625
|
color: !g || g.isSelected.value ? e.color ?? e.baseColor : e.baseColor,
|
|
626
626
|
variant: e.variant
|
|
627
627
|
}));
|
|
628
|
-
function
|
|
628
|
+
function L(p) {
|
|
629
629
|
n("click", p), _.value && (h.navigate?.(p), g?.toggle());
|
|
630
630
|
}
|
|
631
631
|
function A(p) {
|
|
632
|
-
(p.key === "Enter" || p.key === " ") && (p.preventDefault(),
|
|
632
|
+
(p.key === "Enter" || p.key === " ") && (p.preventDefault(), L(p));
|
|
633
633
|
}
|
|
634
634
|
return () => {
|
|
635
|
-
const p = h.isLink.value ? "a" : e.tag,
|
|
636
|
-
return m.value && He(f(p,
|
|
635
|
+
const p = h.isLink.value ? "a" : e.tag, M = !!(e.appendIcon || e.appendAvatar), E = !!(M || l.append), q = !!(l.close || e.closable), te = !!(l.filter || e.filter) && g, ee = !!(e.prependIcon || e.prependAvatar), U = !!(ee || l.prepend);
|
|
636
|
+
return m.value && He(f(p, R(h.linkProps, {
|
|
637
637
|
class: ["v-chip", {
|
|
638
638
|
"v-chip--disabled": e.disabled,
|
|
639
639
|
"v-chip--label": e.label,
|
|
@@ -642,19 +642,19 @@ const zl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Ul = G({
|
|
|
642
642
|
"v-chip--pill": e.pill,
|
|
643
643
|
[`${e.activeClass}`]: e.activeClass && h.isActive?.value
|
|
644
644
|
}, r.value, c.value, k.value, s.value, u.value, d.value, o.value, F.value, g?.selectedClass.value, e.class],
|
|
645
|
-
style: [
|
|
645
|
+
style: [B.value, e.style],
|
|
646
646
|
disabled: e.disabled || void 0,
|
|
647
647
|
draggable: e.draggable,
|
|
648
648
|
tabindex: _.value ? 0 : void 0,
|
|
649
|
-
onClick:
|
|
650
|
-
onKeydown: _.value && !
|
|
649
|
+
onClick: L,
|
|
650
|
+
onKeydown: _.value && !I.value && A
|
|
651
651
|
}), {
|
|
652
652
|
default: () => [Sl(_.value, "v-chip"), te && f(Cl, {
|
|
653
653
|
key: "filter"
|
|
654
654
|
}, {
|
|
655
655
|
default: () => [He(b("div", {
|
|
656
656
|
class: "v-chip__filter"
|
|
657
|
-
}, [l.filter ? f(
|
|
657
|
+
}, [l.filter ? f(Fe, {
|
|
658
658
|
key: "filter-defaults",
|
|
659
659
|
disabled: !e.filterIcon,
|
|
660
660
|
defaults: {
|
|
@@ -669,7 +669,7 @@ const zl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Ul = G({
|
|
|
669
669
|
}), U && b("div", {
|
|
670
670
|
key: "prepend",
|
|
671
671
|
class: "v-chip__prepend"
|
|
672
|
-
}, [l.prepend ? f(
|
|
672
|
+
}, [l.prepend ? f(Fe, {
|
|
673
673
|
key: "prepend-defaults",
|
|
674
674
|
disabled: !ee,
|
|
675
675
|
defaults: {
|
|
@@ -682,7 +682,7 @@ const zl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Ul = G({
|
|
|
682
682
|
start: !0
|
|
683
683
|
}
|
|
684
684
|
}
|
|
685
|
-
}, l.prepend) : b(
|
|
685
|
+
}, l.prepend) : b(de, null, [e.prependIcon && f(Se, {
|
|
686
686
|
key: "prepend-icon",
|
|
687
687
|
icon: e.prependIcon,
|
|
688
688
|
start: !0
|
|
@@ -703,9 +703,9 @@ const zl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Ul = G({
|
|
|
703
703
|
}) ?? bt(e.text)]), E && b("div", {
|
|
704
704
|
key: "append",
|
|
705
705
|
class: "v-chip__append"
|
|
706
|
-
}, [l.append ? f(
|
|
706
|
+
}, [l.append ? f(Fe, {
|
|
707
707
|
key: "append-defaults",
|
|
708
|
-
disabled: !
|
|
708
|
+
disabled: !M,
|
|
709
709
|
defaults: {
|
|
710
710
|
VAvatar: {
|
|
711
711
|
end: !0,
|
|
@@ -716,7 +716,7 @@ const zl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Ul = G({
|
|
|
716
716
|
icon: e.appendIcon
|
|
717
717
|
}
|
|
718
718
|
}
|
|
719
|
-
}, l.append) : b(
|
|
719
|
+
}, l.append) : b(de, null, [e.appendIcon && f(Se, {
|
|
720
720
|
key: "append-icon",
|
|
721
721
|
end: !0,
|
|
722
722
|
icon: e.appendIcon
|
|
@@ -724,12 +724,12 @@ const zl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Ul = G({
|
|
|
724
724
|
key: "append-avatar",
|
|
725
725
|
end: !0,
|
|
726
726
|
image: e.appendAvatar
|
|
727
|
-
}, null)])]), q && b("button",
|
|
727
|
+
}, null)])]), q && b("button", R({
|
|
728
728
|
key: "close",
|
|
729
729
|
class: "v-chip__close",
|
|
730
730
|
type: "button",
|
|
731
731
|
"data-testid": "close-chip"
|
|
732
|
-
},
|
|
732
|
+
}, x.value), [l.close ? f(Fe, {
|
|
733
733
|
key: "close-defaults",
|
|
734
734
|
defaults: {
|
|
735
735
|
VIcon: {
|
|
@@ -745,7 +745,7 @@ const zl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Ul = G({
|
|
|
745
745
|
}), [[Je, _.value && e.ripple, null]]);
|
|
746
746
|
};
|
|
747
747
|
}
|
|
748
|
-
}), la =
|
|
748
|
+
}), la = j({
|
|
749
749
|
color: String,
|
|
750
750
|
...Wt(),
|
|
751
751
|
...pe(),
|
|
@@ -756,7 +756,7 @@ const zl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Ul = G({
|
|
|
756
756
|
...ct(),
|
|
757
757
|
...Be(),
|
|
758
758
|
...Ne()
|
|
759
|
-
}, "VSheet"), na =
|
|
759
|
+
}, "VSheet"), na = oe()({
|
|
760
760
|
name: "VSheet",
|
|
761
761
|
props: la(),
|
|
762
762
|
setup(e, a) {
|
|
@@ -781,9 +781,9 @@ const zl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Ul = G({
|
|
|
781
781
|
} = xl(e), {
|
|
782
782
|
roundedClasses: r
|
|
783
783
|
} = rt(e);
|
|
784
|
-
return
|
|
785
|
-
class:
|
|
786
|
-
style:
|
|
784
|
+
return ve(() => f(e.tag, {
|
|
785
|
+
class: ce(["v-sheet", n.value, l.value, c.value, u.value, o.value, r.value, e.class]),
|
|
786
|
+
style: Ie([i.value, s.value, d.value, e.style])
|
|
787
787
|
}, t)), {};
|
|
788
788
|
}
|
|
789
789
|
}), aa = {
|
|
@@ -794,24 +794,24 @@ const zl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Ul = G({
|
|
|
794
794
|
},
|
|
795
795
|
emits: /* @__PURE__ */ Lt("save", ["update:modelValue"]),
|
|
796
796
|
setup(e, { emit: a }) {
|
|
797
|
-
const { advancedFiltersState: t } = At(), n =
|
|
797
|
+
const { advancedFiltersState: t } = At(), n = Pe("table_props"), l = Vt(e, "modelValue"), i = (u, d) => {
|
|
798
798
|
const o = n.headers.find((y) => (y.advancedFilter?.key ?? y.key) === d), r = u.comparison === "=" ? ":" : " " + u.comparison, m = Array.isArray(u.value) ? u.value : [u.value], g = m.filter((y, h) => !(o.advancedFilter?.component === "datepicker" && h !== 0 && h !== m.length - 1)).map((y) => {
|
|
799
799
|
const h = o.advancedFilter?.options?.items ?? [];
|
|
800
|
-
let
|
|
801
|
-
return h.length && (_ = h.find((
|
|
800
|
+
let I = y, _;
|
|
801
|
+
return h.length && (_ = h.find((x) => x.value === y), _ && (I = _.title)), typeof o.advancedFilter?.valueFormatter == "function" && (I = o.advancedFilter.valueFormatter({
|
|
802
802
|
item: _,
|
|
803
803
|
value: y
|
|
804
|
-
})),
|
|
804
|
+
})), I;
|
|
805
805
|
});
|
|
806
806
|
return `${o.title}${r} ${g.join(", ")}`;
|
|
807
807
|
}, c = (u) => {
|
|
808
808
|
l.value[u] = { comparison: "=", value: null }, s("save");
|
|
809
809
|
}, s = a;
|
|
810
810
|
return (u, d) => (le(), ke(na, null, {
|
|
811
|
-
default:
|
|
811
|
+
default: xe(() => [
|
|
812
812
|
f(ea, null, {
|
|
813
|
-
default:
|
|
814
|
-
(le(!0), ze(
|
|
813
|
+
default: xe(() => [
|
|
814
|
+
(le(!0), ze(de, null, Ht(N(t), (o, r) => (le(), ke(st, {
|
|
815
815
|
key: r,
|
|
816
816
|
class: "my-0",
|
|
817
817
|
text: i(o, r),
|
|
@@ -827,27 +827,27 @@ const zl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Ul = G({
|
|
|
827
827
|
_: 1
|
|
828
828
|
}));
|
|
829
829
|
}
|
|
830
|
-
}, oa =
|
|
830
|
+
}, oa = j({
|
|
831
831
|
text: String,
|
|
832
832
|
onClick: $e(),
|
|
833
833
|
...pe(),
|
|
834
834
|
...Ne()
|
|
835
|
-
}, "VLabel"), jl =
|
|
835
|
+
}, "VLabel"), jl = oe()({
|
|
836
836
|
name: "VLabel",
|
|
837
837
|
props: oa(),
|
|
838
838
|
setup(e, a) {
|
|
839
839
|
let {
|
|
840
840
|
slots: t
|
|
841
841
|
} = a;
|
|
842
|
-
return
|
|
843
|
-
class:
|
|
842
|
+
return ve(() => b("label", {
|
|
843
|
+
class: ce(["v-label", {
|
|
844
844
|
"v-label--clickable": !!e.onClick
|
|
845
845
|
}, e.class]),
|
|
846
|
-
style:
|
|
846
|
+
style: Ie(e.style),
|
|
847
847
|
onClick: e.onClick
|
|
848
848
|
}, [e.text, t.default?.()])), {};
|
|
849
849
|
}
|
|
850
|
-
}), Gl = /* @__PURE__ */ Symbol.for("vuetify:selection-control-group"), Wl =
|
|
850
|
+
}), Gl = /* @__PURE__ */ Symbol.for("vuetify:selection-control-group"), Wl = j({
|
|
851
851
|
color: String,
|
|
852
852
|
disabled: {
|
|
853
853
|
type: Boolean,
|
|
@@ -881,12 +881,12 @@ const zl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Ul = G({
|
|
|
881
881
|
...pe(),
|
|
882
882
|
...dt(),
|
|
883
883
|
...Ne()
|
|
884
|
-
}, "SelectionControlGroup"), ia =
|
|
884
|
+
}, "SelectionControlGroup"), ia = j({
|
|
885
885
|
...Wl({
|
|
886
886
|
defaultsTarget: "VSelectionControl"
|
|
887
887
|
})
|
|
888
888
|
}, "VSelectionControlGroup");
|
|
889
|
-
|
|
889
|
+
oe()({
|
|
890
890
|
name: "VSelectionControlGroup",
|
|
891
891
|
props: ia(),
|
|
892
892
|
emits: {
|
|
@@ -896,7 +896,7 @@ ie()({
|
|
|
896
896
|
let {
|
|
897
897
|
slots: t
|
|
898
898
|
} = a;
|
|
899
|
-
const n = we(e, "modelValue"), l = je(), i =
|
|
899
|
+
const n = we(e, "modelValue"), l = je(), i = T(() => e.id || `v-selection-control-group-${l}`), c = T(() => e.name || i.value), s = /* @__PURE__ */ new Set();
|
|
900
900
|
return Ue(Gl, {
|
|
901
901
|
modelValue: n,
|
|
902
902
|
forceUpdate: () => {
|
|
@@ -909,31 +909,31 @@ ie()({
|
|
|
909
909
|
}
|
|
910
910
|
}), zt({
|
|
911
911
|
[e.defaultsTarget]: {
|
|
912
|
-
color:
|
|
913
|
-
disabled:
|
|
914
|
-
density:
|
|
915
|
-
error:
|
|
916
|
-
inline:
|
|
912
|
+
color: T(() => e.color),
|
|
913
|
+
disabled: T(() => e.disabled),
|
|
914
|
+
density: T(() => e.density),
|
|
915
|
+
error: T(() => e.error),
|
|
916
|
+
inline: T(() => e.inline),
|
|
917
917
|
modelValue: n,
|
|
918
|
-
multiple:
|
|
918
|
+
multiple: T(() => !!e.multiple || e.multiple == null && Array.isArray(n.value)),
|
|
919
919
|
name: c,
|
|
920
|
-
falseIcon:
|
|
921
|
-
trueIcon:
|
|
922
|
-
readonly:
|
|
923
|
-
ripple:
|
|
924
|
-
type:
|
|
925
|
-
valueComparator:
|
|
920
|
+
falseIcon: T(() => e.falseIcon),
|
|
921
|
+
trueIcon: T(() => e.trueIcon),
|
|
922
|
+
readonly: T(() => e.readonly),
|
|
923
|
+
ripple: T(() => e.ripple),
|
|
924
|
+
type: T(() => e.type),
|
|
925
|
+
valueComparator: T(() => e.valueComparator)
|
|
926
926
|
}
|
|
927
|
-
}),
|
|
928
|
-
class:
|
|
927
|
+
}), ve(() => b("div", {
|
|
928
|
+
class: ce(["v-selection-control-group", {
|
|
929
929
|
"v-selection-control-group--inline": e.inline
|
|
930
930
|
}, e.class]),
|
|
931
|
-
style:
|
|
931
|
+
style: Ie(e.style),
|
|
932
932
|
role: e.type === "radio" ? "radiogroup" : void 0
|
|
933
933
|
}, [t.default?.()])), {};
|
|
934
934
|
}
|
|
935
935
|
});
|
|
936
|
-
const ql =
|
|
936
|
+
const ql = j({
|
|
937
937
|
label: String,
|
|
938
938
|
baseColor: String,
|
|
939
939
|
trueValue: null,
|
|
@@ -943,9 +943,9 @@ const ql = G({
|
|
|
943
943
|
...Wl()
|
|
944
944
|
}, "VSelectionControl");
|
|
945
945
|
function ua(e) {
|
|
946
|
-
const a =
|
|
946
|
+
const a = Pe(Gl, void 0), {
|
|
947
947
|
densityClasses: t
|
|
948
|
-
} = It(e), n = we(e, "modelValue"), l =
|
|
948
|
+
} = It(e), n = we(e, "modelValue"), l = w(() => e.trueValue !== void 0 ? e.trueValue : e.value !== void 0 ? e.value : !0), i = w(() => e.falseValue !== void 0 ? e.falseValue : !1), c = w(() => !!e.multiple || e.multiple == null && Array.isArray(n.value)), s = w({
|
|
949
949
|
get() {
|
|
950
950
|
const g = a ? a.modelValue.value : n.value;
|
|
951
951
|
return c.value ? De(g).some((y) => e.valueComparator(y, l.value)) : e.valueComparator(g, l.value);
|
|
@@ -954,7 +954,7 @@ function ua(e) {
|
|
|
954
954
|
if (e.readonly) return;
|
|
955
955
|
const y = g ? l.value : i.value;
|
|
956
956
|
let h = y;
|
|
957
|
-
c.value && (h = g ? [...De(n.value), y] : De(n.value).filter((
|
|
957
|
+
c.value && (h = g ? [...De(n.value), y] : De(n.value).filter((I) => !e.valueComparator(I, l.value))), a ? a.modelValue.value = h : n.value = h;
|
|
958
958
|
}
|
|
959
959
|
}), {
|
|
960
960
|
textColorClasses: u,
|
|
@@ -965,7 +965,7 @@ function ua(e) {
|
|
|
965
965
|
}), {
|
|
966
966
|
backgroundColorClasses: o,
|
|
967
967
|
backgroundColorStyles: r
|
|
968
|
-
} = wt(() => s.value && !e.error && !e.disabled ? e.color : e.baseColor), m =
|
|
968
|
+
} = wt(() => s.value && !e.error && !e.disabled ? e.color : e.baseColor), m = w(() => s.value ? e.trueIcon : e.falseIcon);
|
|
969
969
|
return {
|
|
970
970
|
group: a,
|
|
971
971
|
densityClasses: t,
|
|
@@ -979,7 +979,7 @@ function ua(e) {
|
|
|
979
979
|
icon: m
|
|
980
980
|
};
|
|
981
981
|
}
|
|
982
|
-
const sl =
|
|
982
|
+
const sl = oe()({
|
|
983
983
|
name: "VSelectionControl",
|
|
984
984
|
directives: {
|
|
985
985
|
vRipple: Je
|
|
@@ -1004,48 +1004,48 @@ const sl = ie()({
|
|
|
1004
1004
|
backgroundColorClasses: o,
|
|
1005
1005
|
backgroundColorStyles: r,
|
|
1006
1006
|
trueValue: m
|
|
1007
|
-
} = ua(e), g = je(), y = J(!1), h = J(!1),
|
|
1007
|
+
} = ua(e), g = je(), y = J(!1), h = J(!1), I = W(), _ = T(() => e.id || `input-${g}`), x = T(() => !e.disabled && !e.readonly);
|
|
1008
1008
|
l?.onForceUpdate(() => {
|
|
1009
|
-
|
|
1009
|
+
I.value && (I.value.checked = s.value);
|
|
1010
1010
|
});
|
|
1011
1011
|
function k(A) {
|
|
1012
|
-
|
|
1012
|
+
x.value && (y.value = !0, ot(A.target, ":focus-visible") !== !1 && (h.value = !0));
|
|
1013
1013
|
}
|
|
1014
|
-
function
|
|
1014
|
+
function B() {
|
|
1015
1015
|
y.value = !1, h.value = !1;
|
|
1016
1016
|
}
|
|
1017
1017
|
function F(A) {
|
|
1018
1018
|
A.stopPropagation();
|
|
1019
1019
|
}
|
|
1020
|
-
function
|
|
1021
|
-
if (!
|
|
1022
|
-
|
|
1020
|
+
function L(A) {
|
|
1021
|
+
if (!x.value) {
|
|
1022
|
+
I.value && (I.value.checked = s.value);
|
|
1023
1023
|
return;
|
|
1024
1024
|
}
|
|
1025
1025
|
e.readonly && l && Ve(() => l.forceUpdate()), s.value = A.target.checked;
|
|
1026
1026
|
}
|
|
1027
|
-
return
|
|
1027
|
+
return ve(() => {
|
|
1028
1028
|
const A = n.label ? n.label({
|
|
1029
1029
|
label: e.label,
|
|
1030
1030
|
props: {
|
|
1031
1031
|
for: _.value
|
|
1032
1032
|
}
|
|
1033
|
-
}) : e.label, [p,
|
|
1034
|
-
ref:
|
|
1033
|
+
}) : e.label, [p, M] = wl(t), E = b("input", R({
|
|
1034
|
+
ref: I,
|
|
1035
1035
|
checked: s.value,
|
|
1036
1036
|
disabled: !!e.disabled,
|
|
1037
1037
|
id: _.value,
|
|
1038
|
-
onBlur:
|
|
1038
|
+
onBlur: B,
|
|
1039
1039
|
onFocus: k,
|
|
1040
|
-
onInput:
|
|
1040
|
+
onInput: L,
|
|
1041
1041
|
"aria-disabled": !!e.disabled,
|
|
1042
1042
|
"aria-label": e.label,
|
|
1043
1043
|
type: e.type,
|
|
1044
1044
|
value: m.value,
|
|
1045
1045
|
name: e.name,
|
|
1046
1046
|
"aria-checked": e.type === "checkbox" ? s.value : void 0
|
|
1047
|
-
},
|
|
1048
|
-
return b("div",
|
|
1047
|
+
}, M), null);
|
|
1048
|
+
return b("div", R({
|
|
1049
1049
|
class: ["v-selection-control", {
|
|
1050
1050
|
"v-selection-control--dirty": s.value,
|
|
1051
1051
|
"v-selection-control--disabled": e.disabled,
|
|
@@ -1057,13 +1057,13 @@ const sl = ie()({
|
|
|
1057
1057
|
}, p, {
|
|
1058
1058
|
style: e.style
|
|
1059
1059
|
}), [b("div", {
|
|
1060
|
-
class:
|
|
1061
|
-
style:
|
|
1060
|
+
class: ce(["v-selection-control__wrapper", u.value]),
|
|
1061
|
+
style: Ie(d.value)
|
|
1062
1062
|
}, [n.default?.({
|
|
1063
1063
|
backgroundColorClasses: o,
|
|
1064
1064
|
backgroundColorStyles: r
|
|
1065
1065
|
}), He(b("div", {
|
|
1066
|
-
class:
|
|
1066
|
+
class: ce(["v-selection-control__input"])
|
|
1067
1067
|
}, [n.input?.({
|
|
1068
1068
|
model: s,
|
|
1069
1069
|
textColorClasses: u,
|
|
@@ -1074,10 +1074,10 @@ const sl = ie()({
|
|
|
1074
1074
|
icon: c.value,
|
|
1075
1075
|
props: {
|
|
1076
1076
|
onFocus: k,
|
|
1077
|
-
onBlur:
|
|
1077
|
+
onBlur: B,
|
|
1078
1078
|
id: _.value
|
|
1079
1079
|
}
|
|
1080
|
-
}) ?? b(
|
|
1080
|
+
}) ?? b(de, null, [c.value && f(Se, {
|
|
1081
1081
|
key: "icon",
|
|
1082
1082
|
icon: c.value
|
|
1083
1083
|
}, null), E])]), [[Je, !e.disabled && !e.readonly && e.ripple, null, {
|
|
@@ -1091,10 +1091,10 @@ const sl = ie()({
|
|
|
1091
1091
|
})]);
|
|
1092
1092
|
}), {
|
|
1093
1093
|
isFocused: y,
|
|
1094
|
-
input:
|
|
1094
|
+
input: I
|
|
1095
1095
|
};
|
|
1096
1096
|
}
|
|
1097
|
-
}), sa =
|
|
1097
|
+
}), sa = j({
|
|
1098
1098
|
indeterminate: Boolean,
|
|
1099
1099
|
indeterminateIcon: {
|
|
1100
1100
|
type: be,
|
|
@@ -1104,7 +1104,7 @@ const sl = ie()({
|
|
|
1104
1104
|
falseIcon: "$checkboxOff",
|
|
1105
1105
|
trueIcon: "$checkboxOn"
|
|
1106
1106
|
})
|
|
1107
|
-
}, "VCheckboxBtn"), Jl =
|
|
1107
|
+
}, "VCheckboxBtn"), Jl = oe()({
|
|
1108
1108
|
name: "VCheckboxBtn",
|
|
1109
1109
|
props: sa(),
|
|
1110
1110
|
emits: {
|
|
@@ -1119,10 +1119,10 @@ const sl = ie()({
|
|
|
1119
1119
|
function i(u) {
|
|
1120
1120
|
n.value && (n.value = !1);
|
|
1121
1121
|
}
|
|
1122
|
-
const c =
|
|
1123
|
-
return
|
|
1122
|
+
const c = T(() => n.value ? e.indeterminateIcon : e.falseIcon), s = T(() => n.value ? e.indeterminateIcon : e.trueIcon);
|
|
1123
|
+
return ve(() => {
|
|
1124
1124
|
const u = Ge(sl.filterProps(e), ["modelValue"]);
|
|
1125
|
-
return f(sl,
|
|
1125
|
+
return f(sl, R(u, {
|
|
1126
1126
|
modelValue: l.value,
|
|
1127
1127
|
"onUpdate:modelValue": [(d) => l.value = d, i],
|
|
1128
1128
|
class: ["v-checkbox-btn", e.class],
|
|
@@ -1156,7 +1156,7 @@ function Ft(e) {
|
|
|
1156
1156
|
r.key !== "Enter" && r.key !== " " || (r.preventDefault(), r.stopPropagation(), _l(u, new PointerEvent("click", r)));
|
|
1157
1157
|
}
|
|
1158
1158
|
const o = u && s ? a(`$vuetify.input.${s}`, e.label ?? "") : void 0;
|
|
1159
|
-
return f(Se,
|
|
1159
|
+
return f(Se, R({
|
|
1160
1160
|
icon: e[`${l}Icon`],
|
|
1161
1161
|
"aria-label": o,
|
|
1162
1162
|
onClick: u,
|
|
@@ -1168,7 +1168,7 @@ function Ft(e) {
|
|
|
1168
1168
|
InputIcon: t
|
|
1169
1169
|
};
|
|
1170
1170
|
}
|
|
1171
|
-
const ra =
|
|
1171
|
+
const ra = j({
|
|
1172
1172
|
active: Boolean,
|
|
1173
1173
|
color: String,
|
|
1174
1174
|
messages: {
|
|
@@ -1183,22 +1183,22 @@ const ra = G({
|
|
|
1183
1183
|
group: !0
|
|
1184
1184
|
}
|
|
1185
1185
|
})
|
|
1186
|
-
}, "VMessages"), ca =
|
|
1186
|
+
}, "VMessages"), ca = oe()({
|
|
1187
1187
|
name: "VMessages",
|
|
1188
1188
|
props: ra(),
|
|
1189
1189
|
setup(e, a) {
|
|
1190
1190
|
let {
|
|
1191
1191
|
slots: t
|
|
1192
1192
|
} = a;
|
|
1193
|
-
const n =
|
|
1193
|
+
const n = w(() => De(e.messages)), {
|
|
1194
1194
|
textColorClasses: l,
|
|
1195
1195
|
textColorStyles: i
|
|
1196
1196
|
} = mt(() => e.color);
|
|
1197
|
-
return
|
|
1197
|
+
return ve(() => f(Xt, {
|
|
1198
1198
|
transition: e.transition,
|
|
1199
1199
|
tag: "div",
|
|
1200
|
-
class:
|
|
1201
|
-
style:
|
|
1200
|
+
class: ce(["v-messages", l.value, e.class]),
|
|
1201
|
+
style: Ie([i.value, e.style])
|
|
1202
1202
|
}, {
|
|
1203
1203
|
default: () => [e.active && n.value.map((c, s) => b("div", {
|
|
1204
1204
|
class: "v-messages__message",
|
|
@@ -1208,13 +1208,13 @@ const ra = G({
|
|
|
1208
1208
|
}) : c]))]
|
|
1209
1209
|
})), {};
|
|
1210
1210
|
}
|
|
1211
|
-
}), Xl =
|
|
1211
|
+
}), Xl = j({
|
|
1212
1212
|
focused: Boolean,
|
|
1213
1213
|
"onUpdate:focused": $e()
|
|
1214
1214
|
}, "focus");
|
|
1215
1215
|
function Yl(e) {
|
|
1216
1216
|
let a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Al();
|
|
1217
|
-
const t = we(e, "focused"), n =
|
|
1217
|
+
const t = we(e, "focused"), n = T(() => ({
|
|
1218
1218
|
[`${a}--focused`]: t.value
|
|
1219
1219
|
}));
|
|
1220
1220
|
function l() {
|
|
@@ -1232,24 +1232,24 @@ function Yl(e) {
|
|
|
1232
1232
|
}
|
|
1233
1233
|
const da = /* @__PURE__ */ Symbol.for("vuetify:form");
|
|
1234
1234
|
function Dt(e) {
|
|
1235
|
-
const a =
|
|
1235
|
+
const a = Pe(da, null);
|
|
1236
1236
|
return {
|
|
1237
1237
|
...a,
|
|
1238
|
-
isReadonly:
|
|
1239
|
-
isDisabled:
|
|
1238
|
+
isReadonly: w(() => !!(e?.readonly ?? a?.isReadonly.value)),
|
|
1239
|
+
isDisabled: w(() => !!(e?.disabled ?? a?.isDisabled.value))
|
|
1240
1240
|
};
|
|
1241
1241
|
}
|
|
1242
1242
|
const va = /* @__PURE__ */ Symbol.for("vuetify:rules");
|
|
1243
1243
|
function fa(e) {
|
|
1244
|
-
const a =
|
|
1244
|
+
const a = Pe(va, null);
|
|
1245
1245
|
if (!e) {
|
|
1246
1246
|
if (!a)
|
|
1247
1247
|
throw new Error("Could not find Vuetify rules injection");
|
|
1248
1248
|
return a.aliases;
|
|
1249
1249
|
}
|
|
1250
|
-
return a?.resolve(e) ??
|
|
1250
|
+
return a?.resolve(e) ?? T(e);
|
|
1251
1251
|
}
|
|
1252
|
-
const ma =
|
|
1252
|
+
const ma = j({
|
|
1253
1253
|
disabled: {
|
|
1254
1254
|
type: Boolean,
|
|
1255
1255
|
default: null
|
|
@@ -1280,10 +1280,10 @@ const ma = G({
|
|
|
1280
1280
|
}, "validation");
|
|
1281
1281
|
function ga(e) {
|
|
1282
1282
|
let a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Al(), t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : je();
|
|
1283
|
-
const n = we(e, "modelValue"), l =
|
|
1284
|
-
let
|
|
1285
|
-
|
|
1286
|
-
const F = new Set(
|
|
1283
|
+
const n = we(e, "modelValue"), l = w(() => e.validationValue === void 0 ? n.value : e.validationValue), i = Dt(e), c = fa(() => e.rules), s = W([]), u = J(!0), d = w(() => !!(De(n.value === "" ? null : n.value).length || De(l.value === "" ? null : l.value).length)), o = w(() => e.errorMessages?.length ? De(e.errorMessages).concat(s.value).slice(0, Math.max(0, Number(e.maxErrors))) : s.value), r = w(() => {
|
|
1284
|
+
let B = (e.validateOn ?? i.validateOn?.value) || "input";
|
|
1285
|
+
B === "lazy" && (B = "input lazy"), B === "eager" && (B = "input eager");
|
|
1286
|
+
const F = new Set(B?.split(" ") ?? []);
|
|
1287
1287
|
return {
|
|
1288
1288
|
input: F.has("input"),
|
|
1289
1289
|
blur: F.has("blur") || F.has("input") || F.has("invalid-input"),
|
|
@@ -1291,55 +1291,55 @@ function ga(e) {
|
|
|
1291
1291
|
lazy: F.has("lazy"),
|
|
1292
1292
|
eager: F.has("eager")
|
|
1293
1293
|
};
|
|
1294
|
-
}), m =
|
|
1294
|
+
}), m = w(() => e.error || e.errorMessages?.length ? !1 : e.rules.length ? u.value ? s.value.length || r.value.lazy ? null : !0 : !s.value.length : !0), g = J(!1), y = w(() => ({
|
|
1295
1295
|
[`${a}--error`]: m.value === !1,
|
|
1296
1296
|
[`${a}--dirty`]: d.value,
|
|
1297
1297
|
[`${a}--disabled`]: i.isDisabled.value,
|
|
1298
1298
|
[`${a}--readonly`]: i.isReadonly.value
|
|
1299
|
-
})), h = Fl("validation"),
|
|
1299
|
+
})), h = Fl("validation"), I = w(() => e.name ?? N(t));
|
|
1300
1300
|
dn(() => {
|
|
1301
1301
|
i.register?.({
|
|
1302
|
-
id:
|
|
1302
|
+
id: I.value,
|
|
1303
1303
|
vm: h,
|
|
1304
1304
|
validate: k,
|
|
1305
1305
|
reset: _,
|
|
1306
|
-
resetValidation:
|
|
1306
|
+
resetValidation: x
|
|
1307
1307
|
});
|
|
1308
1308
|
}), vn(() => {
|
|
1309
|
-
i.unregister?.(
|
|
1309
|
+
i.unregister?.(I.value);
|
|
1310
1310
|
}), Ye(async () => {
|
|
1311
|
-
r.value.lazy || await k(!r.value.eager), i.update?.(
|
|
1311
|
+
r.value.lazy || await k(!r.value.eager), i.update?.(I.value, m.value, o.value);
|
|
1312
1312
|
}), $t(() => r.value.input || r.value.invalidInput && m.value === !1, () => {
|
|
1313
1313
|
re(l, () => {
|
|
1314
1314
|
if (l.value != null)
|
|
1315
1315
|
k();
|
|
1316
1316
|
else if (e.focused) {
|
|
1317
|
-
const
|
|
1318
|
-
F || k(),
|
|
1317
|
+
const B = re(() => e.focused, (F) => {
|
|
1318
|
+
F || k(), B();
|
|
1319
1319
|
});
|
|
1320
1320
|
}
|
|
1321
1321
|
});
|
|
1322
1322
|
}), $t(() => r.value.blur, () => {
|
|
1323
|
-
re(() => e.focused, (
|
|
1324
|
-
|
|
1323
|
+
re(() => e.focused, (B) => {
|
|
1324
|
+
B || k();
|
|
1325
1325
|
});
|
|
1326
1326
|
}), re([m, o], () => {
|
|
1327
|
-
i.update?.(
|
|
1327
|
+
i.update?.(I.value, m.value, o.value);
|
|
1328
1328
|
});
|
|
1329
1329
|
async function _() {
|
|
1330
|
-
n.value = null, await Ve(), await
|
|
1330
|
+
n.value = null, await Ve(), await x();
|
|
1331
1331
|
}
|
|
1332
|
-
async function
|
|
1332
|
+
async function x() {
|
|
1333
1333
|
u.value = !0, r.value.lazy ? s.value = [] : await k(!r.value.eager);
|
|
1334
1334
|
}
|
|
1335
1335
|
async function k() {
|
|
1336
|
-
let
|
|
1336
|
+
let B = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1;
|
|
1337
1337
|
const F = [];
|
|
1338
1338
|
g.value = !0;
|
|
1339
|
-
for (const
|
|
1339
|
+
for (const L of c.value) {
|
|
1340
1340
|
if (F.length >= Number(e.maxErrors ?? 1))
|
|
1341
1341
|
break;
|
|
1342
|
-
const p = await (typeof
|
|
1342
|
+
const p = await (typeof L == "function" ? L : () => L)(l.value);
|
|
1343
1343
|
if (p !== !0) {
|
|
1344
1344
|
if (p !== !1 && typeof p != "string") {
|
|
1345
1345
|
console.warn(`${p} is not a valid value. Rule functions must return boolean true or a string.`);
|
|
@@ -1348,7 +1348,7 @@ function ga(e) {
|
|
|
1348
1348
|
F.push(p || "");
|
|
1349
1349
|
}
|
|
1350
1350
|
}
|
|
1351
|
-
return s.value = F, g.value = !1, u.value =
|
|
1351
|
+
return s.value = F, g.value = !1, u.value = B, s.value;
|
|
1352
1352
|
}
|
|
1353
1353
|
return {
|
|
1354
1354
|
errorMessages: o,
|
|
@@ -1359,12 +1359,12 @@ function ga(e) {
|
|
|
1359
1359
|
isValid: m,
|
|
1360
1360
|
isValidating: g,
|
|
1361
1361
|
reset: _,
|
|
1362
|
-
resetValidation:
|
|
1362
|
+
resetValidation: x,
|
|
1363
1363
|
validate: k,
|
|
1364
1364
|
validationClasses: y
|
|
1365
1365
|
};
|
|
1366
1366
|
}
|
|
1367
|
-
const Ql =
|
|
1367
|
+
const Ql = j({
|
|
1368
1368
|
id: String,
|
|
1369
1369
|
appendIcon: be,
|
|
1370
1370
|
baseColor: String,
|
|
@@ -1396,7 +1396,7 @@ const Ql = G({
|
|
|
1396
1396
|
...Vn(ft(), ["maxWidth", "minWidth", "width"]),
|
|
1397
1397
|
...Ne(),
|
|
1398
1398
|
...ma()
|
|
1399
|
-
}, "VInput"), rl =
|
|
1399
|
+
}, "VInput"), rl = oe()({
|
|
1400
1400
|
name: "VInput",
|
|
1401
1401
|
props: {
|
|
1402
1402
|
...Ql()
|
|
@@ -1420,45 +1420,45 @@ const Ql = G({
|
|
|
1420
1420
|
rtlClasses: u
|
|
1421
1421
|
} = xt(), {
|
|
1422
1422
|
InputIcon: d
|
|
1423
|
-
} = Ft(e), o = je(), r =
|
|
1423
|
+
} = Ft(e), o = je(), r = w(() => e.id || `input-${o}`), {
|
|
1424
1424
|
errorMessages: m,
|
|
1425
1425
|
isDirty: g,
|
|
1426
1426
|
isDisabled: y,
|
|
1427
1427
|
isReadonly: h,
|
|
1428
|
-
isPristine:
|
|
1428
|
+
isPristine: I,
|
|
1429
1429
|
isValid: _,
|
|
1430
|
-
isValidating:
|
|
1430
|
+
isValidating: x,
|
|
1431
1431
|
reset: k,
|
|
1432
|
-
resetValidation:
|
|
1432
|
+
resetValidation: B,
|
|
1433
1433
|
validate: F,
|
|
1434
|
-
validationClasses:
|
|
1435
|
-
} = ga(e, "v-input", r), A =
|
|
1434
|
+
validationClasses: L
|
|
1435
|
+
} = ga(e, "v-input", r), A = w(() => e.errorMessages?.length || !I.value && m.value.length ? m.value : e.hint && (e.persistentHint || e.focused) ? e.hint : e.messages), p = T(() => A.value.length > 0), M = T(() => !e.hideDetails || e.hideDetails === "auto" && (p.value || !!n.details)), E = w(() => M.value ? `${r.value}-messages` : void 0), q = w(() => ({
|
|
1436
1436
|
id: r,
|
|
1437
1437
|
messagesId: E,
|
|
1438
1438
|
isDirty: g,
|
|
1439
1439
|
isDisabled: y,
|
|
1440
1440
|
isReadonly: h,
|
|
1441
|
-
isPristine:
|
|
1441
|
+
isPristine: I,
|
|
1442
1442
|
isValid: _,
|
|
1443
|
-
isValidating:
|
|
1444
|
-
hasDetails:
|
|
1443
|
+
isValidating: x,
|
|
1444
|
+
hasDetails: M,
|
|
1445
1445
|
reset: k,
|
|
1446
|
-
resetValidation:
|
|
1446
|
+
resetValidation: B,
|
|
1447
1447
|
validate: F
|
|
1448
|
-
})), te =
|
|
1448
|
+
})), te = T(() => e.error || e.disabled ? void 0 : e.focused ? e.color : e.baseColor), ee = T(() => {
|
|
1449
1449
|
if (e.iconColor)
|
|
1450
1450
|
return e.iconColor === !0 ? te.value : e.iconColor;
|
|
1451
1451
|
});
|
|
1452
|
-
return
|
|
1453
|
-
const U = !!(n.prepend || e.prependIcon),
|
|
1452
|
+
return ve(() => {
|
|
1453
|
+
const U = !!(n.prepend || e.prependIcon), z = !!(n.append || e.appendIcon);
|
|
1454
1454
|
return b("div", {
|
|
1455
|
-
class:
|
|
1455
|
+
class: ce(["v-input", `v-input--${e.direction}`, {
|
|
1456
1456
|
"v-input--center-affix": e.centerAffix,
|
|
1457
1457
|
"v-input--focused": e.focused,
|
|
1458
1458
|
"v-input--glow": e.glow,
|
|
1459
1459
|
"v-input--hide-spin-buttons": e.hideSpinButtons
|
|
1460
|
-
}, i.value, s.value, u.value,
|
|
1461
|
-
style:
|
|
1460
|
+
}, i.value, s.value, u.value, L.value, e.class]),
|
|
1461
|
+
style: Ie([c.value, e.style])
|
|
1462
1462
|
}, [U && b("div", {
|
|
1463
1463
|
key: "prepend",
|
|
1464
1464
|
class: "v-input__prepend"
|
|
@@ -1468,14 +1468,14 @@ const Ql = G({
|
|
|
1468
1468
|
color: ee.value
|
|
1469
1469
|
}, null)]), n.default && b("div", {
|
|
1470
1470
|
class: "v-input__control"
|
|
1471
|
-
}, [n.default?.(q.value)]),
|
|
1471
|
+
}, [n.default?.(q.value)]), z && b("div", {
|
|
1472
1472
|
key: "append",
|
|
1473
1473
|
class: "v-input__append"
|
|
1474
1474
|
}, [n.append ? n.append(q.value) : e.appendIcon && f(d, {
|
|
1475
1475
|
key: "append-icon",
|
|
1476
1476
|
name: "append",
|
|
1477
1477
|
color: ee.value
|
|
1478
|
-
}, null)]),
|
|
1478
|
+
}, null)]), M.value && b("div", {
|
|
1479
1479
|
id: E.value,
|
|
1480
1480
|
class: "v-input__details",
|
|
1481
1481
|
role: "alert",
|
|
@@ -1488,13 +1488,13 @@ const Ql = G({
|
|
|
1488
1488
|
}), n.details?.(q.value)])]);
|
|
1489
1489
|
}), {
|
|
1490
1490
|
reset: k,
|
|
1491
|
-
resetValidation:
|
|
1491
|
+
resetValidation: B,
|
|
1492
1492
|
validate: F,
|
|
1493
1493
|
isValid: _,
|
|
1494
1494
|
errorMessages: m
|
|
1495
1495
|
};
|
|
1496
1496
|
}
|
|
1497
|
-
}), ya =
|
|
1497
|
+
}), ya = j({
|
|
1498
1498
|
active: Boolean,
|
|
1499
1499
|
disabled: Boolean,
|
|
1500
1500
|
max: [Number, String],
|
|
@@ -1508,7 +1508,7 @@ const Ql = G({
|
|
|
1508
1508
|
component: Pl
|
|
1509
1509
|
}
|
|
1510
1510
|
})
|
|
1511
|
-
}, "VCounter"), ha =
|
|
1511
|
+
}, "VCounter"), ha = oe()({
|
|
1512
1512
|
name: "VCounter",
|
|
1513
1513
|
functional: !0,
|
|
1514
1514
|
props: ya(),
|
|
@@ -1516,15 +1516,15 @@ const Ql = G({
|
|
|
1516
1516
|
let {
|
|
1517
1517
|
slots: t
|
|
1518
1518
|
} = a;
|
|
1519
|
-
const n =
|
|
1520
|
-
return
|
|
1519
|
+
const n = T(() => e.max ? `${e.value} / ${e.max}` : String(e.value));
|
|
1520
|
+
return ve(() => f(Xt, {
|
|
1521
1521
|
transition: e.transition
|
|
1522
1522
|
}, {
|
|
1523
1523
|
default: () => [He(b("div", {
|
|
1524
|
-
class:
|
|
1524
|
+
class: ce(["v-counter", {
|
|
1525
1525
|
"text-error": e.max && !e.disabled && parseFloat(e.value) > parseFloat(e.max)
|
|
1526
1526
|
}, e.class]),
|
|
1527
|
-
style:
|
|
1527
|
+
style: Ie(e.style)
|
|
1528
1528
|
}, [t.default ? t.default({
|
|
1529
1529
|
counter: n.value,
|
|
1530
1530
|
max: e.max,
|
|
@@ -1532,24 +1532,24 @@ const Ql = G({
|
|
|
1532
1532
|
}) : n.value]), [[Ct, e.active]])]
|
|
1533
1533
|
})), {};
|
|
1534
1534
|
}
|
|
1535
|
-
}), ba =
|
|
1535
|
+
}), ba = j({
|
|
1536
1536
|
floating: Boolean,
|
|
1537
1537
|
...pe()
|
|
1538
|
-
}, "VFieldLabel"), ht =
|
|
1538
|
+
}, "VFieldLabel"), ht = oe()({
|
|
1539
1539
|
name: "VFieldLabel",
|
|
1540
1540
|
props: ba(),
|
|
1541
1541
|
setup(e, a) {
|
|
1542
1542
|
let {
|
|
1543
1543
|
slots: t
|
|
1544
1544
|
} = a;
|
|
1545
|
-
return
|
|
1546
|
-
class:
|
|
1545
|
+
return ve(() => f(jl, {
|
|
1546
|
+
class: ce(["v-field-label", {
|
|
1547
1547
|
"v-field-label--floating": e.floating
|
|
1548
1548
|
}, e.class]),
|
|
1549
|
-
style:
|
|
1549
|
+
style: Ie(e.style)
|
|
1550
1550
|
}, t)), {};
|
|
1551
1551
|
}
|
|
1552
|
-
}), pa = ["underlined", "outlined", "filled", "solo", "solo-inverted", "solo-filled", "plain"], Zl =
|
|
1552
|
+
}), pa = ["underlined", "outlined", "filled", "solo", "solo-inverted", "solo-filled", "plain"], Zl = j({
|
|
1553
1553
|
appendInnerIcon: be,
|
|
1554
1554
|
bgColor: String,
|
|
1555
1555
|
clearable: Boolean,
|
|
@@ -1590,7 +1590,7 @@ const Ql = G({
|
|
|
1590
1590
|
...Bl(),
|
|
1591
1591
|
...ct(),
|
|
1592
1592
|
...Ne()
|
|
1593
|
-
}, "VField"), cl =
|
|
1593
|
+
}, "VField"), cl = oe()({
|
|
1594
1594
|
name: "VField",
|
|
1595
1595
|
inheritAttrs: !1,
|
|
1596
1596
|
props: {
|
|
@@ -1625,7 +1625,7 @@ const Ql = G({
|
|
|
1625
1625
|
roundedClasses: m
|
|
1626
1626
|
} = rt(e), {
|
|
1627
1627
|
rtlClasses: g
|
|
1628
|
-
} = xt(), y =
|
|
1628
|
+
} = xt(), y = T(() => e.dirty || e.active), h = T(() => !!(e.label || l.label)), I = T(() => !e.singleLine && h.value), _ = je(), x = w(() => e.id || `input-${_}`), k = T(() => e.details ? `${x.value}-messages` : void 0), B = W(), F = W(), L = W(), A = w(() => ["plain", "underlined"].includes(e.variant)), p = w(() => e.error || e.disabled ? void 0 : y.value && u.value ? e.color : e.baseColor), M = w(() => {
|
|
1629
1629
|
if (!(!e.iconColor || e.glow && !u.value))
|
|
1630
1630
|
return e.iconColor === !0 ? p.value : e.iconColor;
|
|
1631
1631
|
}), {
|
|
@@ -1635,52 +1635,64 @@ const Ql = G({
|
|
|
1635
1635
|
textColorClasses: te,
|
|
1636
1636
|
textColorStyles: ee
|
|
1637
1637
|
} = mt(p);
|
|
1638
|
-
re(y, (
|
|
1639
|
-
if (
|
|
1640
|
-
const
|
|
1638
|
+
re(y, (X) => {
|
|
1639
|
+
if (I.value && !gl()) {
|
|
1640
|
+
const ne = B.value.$el, D = F.value.$el;
|
|
1641
1641
|
requestAnimationFrame(() => {
|
|
1642
|
-
const
|
|
1643
|
-
maxWidth: lt(
|
|
1644
|
-
} : void 0,
|
|
1645
|
-
|
|
1646
|
-
transform: `translate(${
|
|
1647
|
-
color:
|
|
1648
|
-
|
|
1642
|
+
const O = xn(ne), S = D.getBoundingClientRect(), v = S.x - O.x, P = S.y - O.y - (O.height / 2 - S.height / 2), V = S.width / 0.75, $ = Math.abs(V - O.width) > 1 ? {
|
|
1643
|
+
maxWidth: lt(V)
|
|
1644
|
+
} : void 0, K = getComputedStyle(ne), ue = getComputedStyle(D), ge = parseFloat(K.transitionDuration) * 1e3 || 150, fe = parseFloat(ue.getPropertyValue("--v-field-label-scale")), _e = ue.getPropertyValue("color");
|
|
1645
|
+
ne.style.visibility = "visible", D.style.visibility = "hidden", In(ne, {
|
|
1646
|
+
transform: `translate(${v}px, ${P}px) scale(${fe})`,
|
|
1647
|
+
color: _e,
|
|
1648
|
+
...$
|
|
1649
1649
|
}, {
|
|
1650
|
-
duration:
|
|
1650
|
+
duration: ge,
|
|
1651
1651
|
easing: wn,
|
|
1652
|
-
direction:
|
|
1652
|
+
direction: X ? "normal" : "reverse"
|
|
1653
1653
|
}).finished.then(() => {
|
|
1654
|
-
|
|
1654
|
+
ne.style.removeProperty("visibility"), D.style.removeProperty("visibility");
|
|
1655
1655
|
});
|
|
1656
1656
|
});
|
|
1657
1657
|
}
|
|
1658
1658
|
}, {
|
|
1659
1659
|
flush: "post"
|
|
1660
1660
|
});
|
|
1661
|
-
const U =
|
|
1661
|
+
const U = w(() => ({
|
|
1662
1662
|
isActive: y,
|
|
1663
1663
|
isFocused: u,
|
|
1664
|
-
controlRef:
|
|
1665
|
-
iconColor:
|
|
1664
|
+
controlRef: L,
|
|
1665
|
+
iconColor: M,
|
|
1666
1666
|
blur: o,
|
|
1667
1667
|
focus: d
|
|
1668
|
-
}))
|
|
1669
|
-
|
|
1670
|
-
|
|
1668
|
+
})), z = T(() => {
|
|
1669
|
+
const X = !y.value;
|
|
1670
|
+
return {
|
|
1671
|
+
"aria-hidden": X,
|
|
1672
|
+
for: X ? void 0 : x.value
|
|
1673
|
+
};
|
|
1674
|
+
}), ie = T(() => {
|
|
1675
|
+
const X = I.value && y.value;
|
|
1676
|
+
return {
|
|
1677
|
+
"aria-hidden": X,
|
|
1678
|
+
for: X ? void 0 : x.value
|
|
1679
|
+
};
|
|
1680
|
+
});
|
|
1681
|
+
function G(X) {
|
|
1682
|
+
X.target !== document.activeElement && X.preventDefault();
|
|
1671
1683
|
}
|
|
1672
|
-
return
|
|
1673
|
-
const
|
|
1684
|
+
return ve(() => {
|
|
1685
|
+
const X = e.variant === "outlined", ne = !!(l["prepend-inner"] || e.prependInnerIcon), D = !!(e.clearable || l.clear) && !e.disabled, O = !!(l["append-inner"] || e.appendInnerIcon || D), S = () => l.label ? l.label({
|
|
1674
1686
|
...U.value,
|
|
1675
1687
|
label: e.label,
|
|
1676
1688
|
props: {
|
|
1677
|
-
for:
|
|
1689
|
+
for: x.value
|
|
1678
1690
|
}
|
|
1679
1691
|
}) : e.label;
|
|
1680
|
-
return b("div",
|
|
1692
|
+
return b("div", R({
|
|
1681
1693
|
class: ["v-field", {
|
|
1682
1694
|
"v-field--active": y.value,
|
|
1683
|
-
"v-field--appended":
|
|
1695
|
+
"v-field--appended": O,
|
|
1684
1696
|
"v-field--center-affix": e.centerAffix ?? !A.value,
|
|
1685
1697
|
"v-field--disabled": e.disabled,
|
|
1686
1698
|
"v-field--dirty": e.dirty,
|
|
@@ -1689,14 +1701,14 @@ const Ql = G({
|
|
|
1689
1701
|
"v-field--flat": e.flat,
|
|
1690
1702
|
"v-field--has-background": !!e.bgColor,
|
|
1691
1703
|
"v-field--persistent-clear": e.persistentClear,
|
|
1692
|
-
"v-field--prepended":
|
|
1704
|
+
"v-field--prepended": ne,
|
|
1693
1705
|
"v-field--reverse": e.reverse,
|
|
1694
1706
|
"v-field--single-line": e.singleLine,
|
|
1695
|
-
"v-field--no-label": !
|
|
1707
|
+
"v-field--no-label": !S(),
|
|
1696
1708
|
[`v-field--variant-${e.variant}`]: !0
|
|
1697
1709
|
}, i.value, E.value, s.value, c.value, m.value, g.value, e.class],
|
|
1698
1710
|
style: [q.value, e.style],
|
|
1699
|
-
onClick:
|
|
1711
|
+
onClick: G
|
|
1700
1712
|
}, t), [b("div", {
|
|
1701
1713
|
class: "v-field__overlay"
|
|
1702
1714
|
}, null), f(Tl, {
|
|
@@ -1705,56 +1717,53 @@ const Ql = G({
|
|
|
1705
1717
|
color: e.error ? "error" : typeof e.loading == "string" ? e.loading : e.color
|
|
1706
1718
|
}, {
|
|
1707
1719
|
default: l.loader
|
|
1708
|
-
}),
|
|
1720
|
+
}), ne && b("div", {
|
|
1709
1721
|
key: "prepend",
|
|
1710
1722
|
class: "v-field__prepend-inner"
|
|
1711
1723
|
}, [l["prepend-inner"] ? l["prepend-inner"](U.value) : e.prependInnerIcon && f(r, {
|
|
1712
1724
|
key: "prepend-icon",
|
|
1713
1725
|
name: "prependInner",
|
|
1714
|
-
color:
|
|
1726
|
+
color: M.value
|
|
1715
1727
|
}, null)]), b("div", {
|
|
1716
1728
|
class: "v-field__field",
|
|
1717
1729
|
"data-no-activator": ""
|
|
1718
|
-
}, [["filled", "solo", "solo-inverted", "solo-filled"].includes(e.variant) &&
|
|
1730
|
+
}, [["filled", "solo", "solo-inverted", "solo-filled"].includes(e.variant) && I.value && f(ht, R({
|
|
1719
1731
|
key: "floating-label",
|
|
1720
1732
|
ref: F,
|
|
1721
|
-
class:
|
|
1722
|
-
floating: !0
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
}), h.value && f(ht, {
|
|
1733
|
+
class: [te.value],
|
|
1734
|
+
floating: !0
|
|
1735
|
+
}, z.value, {
|
|
1736
|
+
style: ee.value
|
|
1737
|
+
}), {
|
|
1738
|
+
default: () => [S()]
|
|
1739
|
+
}), h.value && f(ht, R({
|
|
1729
1740
|
key: "label",
|
|
1730
|
-
ref:
|
|
1731
|
-
id: e.labelId
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
}, {
|
|
1735
|
-
default: () => [D()]
|
|
1741
|
+
ref: B,
|
|
1742
|
+
id: e.labelId
|
|
1743
|
+
}, ie.value), {
|
|
1744
|
+
default: () => [S()]
|
|
1736
1745
|
}), l.default?.({
|
|
1737
1746
|
...U.value,
|
|
1738
1747
|
props: {
|
|
1739
|
-
id:
|
|
1748
|
+
id: x.value,
|
|
1740
1749
|
class: "v-field__input",
|
|
1741
1750
|
"aria-describedby": k.value
|
|
1742
1751
|
},
|
|
1743
1752
|
focus: d,
|
|
1744
1753
|
blur: o
|
|
1745
1754
|
}) ?? b("div", {
|
|
1746
|
-
id:
|
|
1755
|
+
id: x.value,
|
|
1747
1756
|
class: "v-field__input",
|
|
1748
1757
|
"aria-describedby": k.value
|
|
1749
|
-
}, null)]),
|
|
1758
|
+
}, null)]), D && f(Cl, {
|
|
1750
1759
|
key: "clear"
|
|
1751
1760
|
}, {
|
|
1752
1761
|
default: () => [He(b("div", {
|
|
1753
1762
|
class: "v-field__clearable",
|
|
1754
|
-
onMousedown: (
|
|
1755
|
-
|
|
1763
|
+
onMousedown: (v) => {
|
|
1764
|
+
v.preventDefault(), v.stopPropagation();
|
|
1756
1765
|
}
|
|
1757
|
-
}, [f(
|
|
1766
|
+
}, [f(Fe, {
|
|
1758
1767
|
defaults: {
|
|
1759
1768
|
VIcon: {
|
|
1760
1769
|
icon: e.clearIcon
|
|
@@ -1776,50 +1785,46 @@ const Ql = G({
|
|
|
1776
1785
|
tabindex: -1
|
|
1777
1786
|
}, null)]
|
|
1778
1787
|
})]), [[Ct, e.dirty]])]
|
|
1779
|
-
}),
|
|
1788
|
+
}), O && b("div", {
|
|
1780
1789
|
key: "append",
|
|
1781
1790
|
class: "v-field__append-inner"
|
|
1782
1791
|
}, [l["append-inner"] ? l["append-inner"](U.value) : e.appendInnerIcon && f(r, {
|
|
1783
1792
|
key: "append-icon",
|
|
1784
1793
|
name: "appendInner",
|
|
1785
|
-
color:
|
|
1794
|
+
color: M.value
|
|
1786
1795
|
}, null)]), b("div", {
|
|
1787
|
-
class:
|
|
1788
|
-
style:
|
|
1789
|
-
}, [
|
|
1796
|
+
class: ce(["v-field__outline", te.value]),
|
|
1797
|
+
style: Ie(ee.value)
|
|
1798
|
+
}, [X && b(de, null, [b("div", {
|
|
1790
1799
|
class: "v-field__outline__start"
|
|
1791
|
-
}, null),
|
|
1800
|
+
}, null), I.value && b("div", {
|
|
1792
1801
|
class: "v-field__outline__notch"
|
|
1793
|
-
}, [f(ht, {
|
|
1802
|
+
}, [f(ht, R({
|
|
1794
1803
|
ref: F,
|
|
1795
|
-
floating: !0
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
}, {
|
|
1799
|
-
default: () => [D()]
|
|
1804
|
+
floating: !0
|
|
1805
|
+
}, z.value), {
|
|
1806
|
+
default: () => [S()]
|
|
1800
1807
|
})]), b("div", {
|
|
1801
1808
|
class: "v-field__outline__end"
|
|
1802
|
-
}, null)]), A.value &&
|
|
1809
|
+
}, null)]), A.value && I.value && f(ht, R({
|
|
1803
1810
|
ref: F,
|
|
1804
|
-
floating: !0
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
}, {
|
|
1808
|
-
default: () => [D()]
|
|
1811
|
+
floating: !0
|
|
1812
|
+
}, z.value), {
|
|
1813
|
+
default: () => [S()]
|
|
1809
1814
|
})])]);
|
|
1810
1815
|
}), {
|
|
1811
|
-
controlRef:
|
|
1812
|
-
fieldIconColor:
|
|
1816
|
+
controlRef: L,
|
|
1817
|
+
fieldIconColor: M
|
|
1813
1818
|
};
|
|
1814
1819
|
}
|
|
1815
|
-
}), ka =
|
|
1820
|
+
}), ka = j({
|
|
1816
1821
|
autocomplete: String
|
|
1817
1822
|
}, "autocomplete");
|
|
1818
1823
|
function en(e) {
|
|
1819
|
-
const a = je(), t = J(0), n =
|
|
1824
|
+
const a = je(), t = J(0), n = T(() => e.autocomplete === "suppress"), l = T(() => {
|
|
1820
1825
|
if (e.name)
|
|
1821
1826
|
return n.value ? `${e.name}-${a}-${t.value}` : e.name;
|
|
1822
|
-
}), i =
|
|
1827
|
+
}), i = T(() => n.value ? "off" : e.autocomplete);
|
|
1823
1828
|
return {
|
|
1824
1829
|
isSuppressing: n,
|
|
1825
1830
|
fieldAutocomplete: i,
|
|
@@ -1837,7 +1842,7 @@ function Sa(e) {
|
|
|
1837
1842
|
onIntersect: a
|
|
1838
1843
|
};
|
|
1839
1844
|
}
|
|
1840
|
-
const Ca = ["color", "file", "time", "date", "datetime-local", "week", "month"], Tt =
|
|
1845
|
+
const Ca = ["color", "file", "time", "date", "datetime-local", "week", "month"], Tt = j({
|
|
1841
1846
|
autofocus: Boolean,
|
|
1842
1847
|
counter: [Boolean, Number, String],
|
|
1843
1848
|
counterValue: [Number, Function],
|
|
@@ -1855,7 +1860,7 @@ const Ca = ["color", "file", "time", "date", "datetime-local", "week", "month"],
|
|
|
1855
1860
|
...ka(),
|
|
1856
1861
|
...Ge(Ql(), ["direction"]),
|
|
1857
1862
|
...Zl()
|
|
1858
|
-
}, "VTextField"), Ke =
|
|
1863
|
+
}, "VTextField"), Ke = oe()({
|
|
1859
1864
|
name: "VTextField",
|
|
1860
1865
|
directives: {
|
|
1861
1866
|
vIntersect: nl
|
|
@@ -1880,45 +1885,45 @@ const Ca = ["color", "file", "time", "date", "datetime-local", "week", "month"],
|
|
|
1880
1885
|
blur: u
|
|
1881
1886
|
} = Yl(e), {
|
|
1882
1887
|
onIntersect: d
|
|
1883
|
-
} = Sa(e), o =
|
|
1888
|
+
} = Sa(e), o = w(() => typeof e.counterValue == "function" ? e.counterValue(i.value) : typeof e.counterValue == "number" ? e.counterValue : (i.value ?? "").toString().length), r = w(() => {
|
|
1884
1889
|
if (t.maxlength) return t.maxlength;
|
|
1885
1890
|
if (!(!e.counter || typeof e.counter != "number" && typeof e.counter != "string"))
|
|
1886
1891
|
return e.counter;
|
|
1887
|
-
}), m =
|
|
1888
|
-
function
|
|
1889
|
-
|
|
1892
|
+
}), m = w(() => ["plain", "underlined"].includes(e.variant)), g = W(), y = W(), h = W(), I = en(e), _ = w(() => Ca.includes(e.type) || e.persistentPlaceholder || c.value || e.active);
|
|
1893
|
+
function x() {
|
|
1894
|
+
I.isSuppressing.value && I.update(), c.value || s(), Ve(() => {
|
|
1890
1895
|
h.value !== document.activeElement && h.value?.focus();
|
|
1891
1896
|
});
|
|
1892
1897
|
}
|
|
1893
1898
|
function k(A) {
|
|
1894
|
-
n("mousedown:control", A), A.target !== h.value && (
|
|
1899
|
+
n("mousedown:control", A), A.target !== h.value && (x(), A.preventDefault());
|
|
1895
1900
|
}
|
|
1896
|
-
function
|
|
1901
|
+
function B(A) {
|
|
1897
1902
|
n("click:control", A);
|
|
1898
1903
|
}
|
|
1899
1904
|
function F(A, p) {
|
|
1900
|
-
A.stopPropagation(),
|
|
1905
|
+
A.stopPropagation(), x(), Ve(() => {
|
|
1901
1906
|
p(), _l(e["onClick:clear"], A);
|
|
1902
1907
|
});
|
|
1903
1908
|
}
|
|
1904
|
-
function
|
|
1909
|
+
function L(A) {
|
|
1905
1910
|
const p = A.target;
|
|
1906
1911
|
if (!(e.modelModifiers?.trim && ["text", "search", "password", "tel", "url"].includes(e.type))) {
|
|
1907
1912
|
i.value = p.value;
|
|
1908
1913
|
return;
|
|
1909
1914
|
}
|
|
1910
|
-
const
|
|
1911
|
-
i.value =
|
|
1915
|
+
const M = p.value, E = p.selectionStart, q = p.selectionEnd;
|
|
1916
|
+
i.value = M, Ve(() => {
|
|
1912
1917
|
let te = 0;
|
|
1913
|
-
|
|
1918
|
+
M.trimStart().length === p.value.length && (te = M.length - p.value.length), E != null && (p.selectionStart = E - te), q != null && (p.selectionEnd = q - te);
|
|
1914
1919
|
});
|
|
1915
1920
|
}
|
|
1916
|
-
return
|
|
1917
|
-
const A = !!(l.counter || e.counter !== !1 && e.counter != null), p = !!(A || l.details), [
|
|
1921
|
+
return ve(() => {
|
|
1922
|
+
const A = !!(l.counter || e.counter !== !1 && e.counter != null), p = !!(A || l.details), [M, E] = wl(t), {
|
|
1918
1923
|
modelValue: q,
|
|
1919
1924
|
...te
|
|
1920
1925
|
} = rl.filterProps(e), ee = cl.filterProps(e);
|
|
1921
|
-
return f(rl,
|
|
1926
|
+
return f(rl, R({
|
|
1922
1927
|
ref: g,
|
|
1923
1928
|
modelValue: i.value,
|
|
1924
1929
|
"onUpdate:modelValue": (U) => i.value = U,
|
|
@@ -1928,73 +1933,73 @@ const Ca = ["color", "file", "time", "date", "datetime-local", "week", "month"],
|
|
|
1928
1933
|
"v-input--plain-underlined": m.value
|
|
1929
1934
|
}, e.class],
|
|
1930
1935
|
style: e.style
|
|
1931
|
-
},
|
|
1936
|
+
}, M, te, {
|
|
1932
1937
|
centerAffix: !m.value,
|
|
1933
1938
|
focused: c.value
|
|
1934
1939
|
}), {
|
|
1935
1940
|
...l,
|
|
1936
1941
|
default: (U) => {
|
|
1937
1942
|
let {
|
|
1938
|
-
id:
|
|
1939
|
-
isDisabled:
|
|
1940
|
-
isDirty:
|
|
1941
|
-
isReadonly:
|
|
1942
|
-
isValid:
|
|
1943
|
+
id: z,
|
|
1944
|
+
isDisabled: ie,
|
|
1945
|
+
isDirty: G,
|
|
1946
|
+
isReadonly: X,
|
|
1947
|
+
isValid: ne,
|
|
1943
1948
|
hasDetails: D,
|
|
1944
|
-
reset:
|
|
1949
|
+
reset: O
|
|
1945
1950
|
} = U;
|
|
1946
|
-
return f(cl,
|
|
1951
|
+
return f(cl, R({
|
|
1947
1952
|
ref: y,
|
|
1948
1953
|
onMousedown: k,
|
|
1949
|
-
onClick:
|
|
1950
|
-
"onClick:clear": (
|
|
1954
|
+
onClick: B,
|
|
1955
|
+
"onClick:clear": (S) => F(S, O),
|
|
1951
1956
|
role: e.role
|
|
1952
1957
|
}, Ge(ee, ["onClick:clear"]), {
|
|
1953
|
-
id:
|
|
1954
|
-
labelId: `${
|
|
1955
|
-
active: _.value ||
|
|
1956
|
-
dirty:
|
|
1957
|
-
disabled:
|
|
1958
|
+
id: z.value,
|
|
1959
|
+
labelId: `${z.value}-label`,
|
|
1960
|
+
active: _.value || G.value,
|
|
1961
|
+
dirty: G.value || e.dirty,
|
|
1962
|
+
disabled: ie.value,
|
|
1958
1963
|
focused: c.value,
|
|
1959
1964
|
details: D.value,
|
|
1960
|
-
error:
|
|
1965
|
+
error: ne.value === !1
|
|
1961
1966
|
}), {
|
|
1962
1967
|
...l,
|
|
1963
|
-
default: (
|
|
1968
|
+
default: (S) => {
|
|
1964
1969
|
let {
|
|
1965
1970
|
props: {
|
|
1966
1971
|
class: v,
|
|
1967
1972
|
...P
|
|
1968
1973
|
},
|
|
1969
1974
|
controlRef: V
|
|
1970
|
-
} =
|
|
1971
|
-
const
|
|
1972
|
-
ref: (
|
|
1975
|
+
} = S;
|
|
1976
|
+
const $ = b("input", R({
|
|
1977
|
+
ref: (K) => h.value = V.value = K,
|
|
1973
1978
|
value: i.value,
|
|
1974
|
-
onInput:
|
|
1979
|
+
onInput: L,
|
|
1975
1980
|
autofocus: e.autofocus,
|
|
1976
|
-
readonly:
|
|
1977
|
-
disabled:
|
|
1978
|
-
name:
|
|
1979
|
-
autocomplete:
|
|
1981
|
+
readonly: X.value,
|
|
1982
|
+
disabled: ie.value,
|
|
1983
|
+
name: I.fieldName.value,
|
|
1984
|
+
autocomplete: I.fieldAutocomplete.value,
|
|
1980
1985
|
placeholder: e.placeholder,
|
|
1981
1986
|
size: 1,
|
|
1982
1987
|
role: e.role,
|
|
1983
1988
|
type: e.type,
|
|
1984
1989
|
onFocus: s,
|
|
1985
1990
|
onBlur: u,
|
|
1986
|
-
"aria-labelledby": `${
|
|
1991
|
+
"aria-labelledby": `${z.value}-label`
|
|
1987
1992
|
}, P, E), null);
|
|
1988
|
-
return b(
|
|
1993
|
+
return b(de, null, [e.prefix && b("span", {
|
|
1989
1994
|
class: "v-text-field__prefix"
|
|
1990
1995
|
}, [b("span", {
|
|
1991
1996
|
class: "v-text-field__prefix__text"
|
|
1992
1997
|
}, [e.prefix])]), He(l.default ? b("div", {
|
|
1993
|
-
class:
|
|
1998
|
+
class: ce(v),
|
|
1994
1999
|
"data-no-activator": ""
|
|
1995
2000
|
}, [l.default({
|
|
1996
|
-
id:
|
|
1997
|
-
}),
|
|
2001
|
+
id: z
|
|
2002
|
+
}), $]) : fn($, {
|
|
1998
2003
|
class: v
|
|
1999
2004
|
}), [[nl, d, null, {
|
|
2000
2005
|
once: !0
|
|
@@ -2006,7 +2011,7 @@ const Ca = ["color", "file", "time", "date", "datetime-local", "week", "month"],
|
|
|
2006
2011
|
}
|
|
2007
2012
|
});
|
|
2008
2013
|
},
|
|
2009
|
-
details: p ? (U) => b(
|
|
2014
|
+
details: p ? (U) => b(de, null, [l.details?.(U), A && b(de, null, [b("span", null, null), f(ha, {
|
|
2010
2015
|
active: e.persistentCounter || c.value,
|
|
2011
2016
|
value: o.value,
|
|
2012
2017
|
max: r.value,
|
|
@@ -2015,10 +2020,10 @@ const Ca = ["color", "file", "time", "date", "datetime-local", "week", "month"],
|
|
|
2015
2020
|
});
|
|
2016
2021
|
}), gt({}, g, y, h);
|
|
2017
2022
|
}
|
|
2018
|
-
}), Va =
|
|
2023
|
+
}), Va = j({
|
|
2019
2024
|
renderless: Boolean,
|
|
2020
2025
|
...pe()
|
|
2021
|
-
}, "VVirtualScrollItem"), xa =
|
|
2026
|
+
}, "VVirtualScrollItem"), xa = oe()({
|
|
2022
2027
|
name: "VVirtualScrollItem",
|
|
2023
2028
|
inheritAttrs: !1,
|
|
2024
2029
|
props: Va(),
|
|
@@ -2037,15 +2042,15 @@ const Ca = ["color", "file", "time", "date", "datetime-local", "week", "month"],
|
|
|
2037
2042
|
} = kt(void 0, "border");
|
|
2038
2043
|
re(() => c.value?.height, (s) => {
|
|
2039
2044
|
s != null && n("update:height", s);
|
|
2040
|
-
}),
|
|
2045
|
+
}), ve(() => e.renderless ? b(de, null, [l.default?.({
|
|
2041
2046
|
itemRef: i
|
|
2042
|
-
})]) : b("div",
|
|
2047
|
+
})]) : b("div", R({
|
|
2043
2048
|
ref: i,
|
|
2044
2049
|
class: ["v-virtual-scroll__item", e.class],
|
|
2045
2050
|
style: e.style
|
|
2046
2051
|
}, t), [l.default?.()]));
|
|
2047
2052
|
}
|
|
2048
|
-
}), Ia = -1, wa = 1, Et = 100, _a =
|
|
2053
|
+
}), Ia = -1, wa = 1, Et = 100, _a = j({
|
|
2049
2054
|
itemHeight: {
|
|
2050
2055
|
type: [Number, String],
|
|
2051
2056
|
default: null
|
|
@@ -2076,109 +2081,109 @@ function Pa(e, a) {
|
|
|
2076
2081
|
Rt(() => {
|
|
2077
2082
|
r.value = u.value;
|
|
2078
2083
|
});
|
|
2079
|
-
const g =
|
|
2084
|
+
const g = w(() => u.value === document.documentElement ? t.height.value : m.value?.height || parseInt(e.height) || 0), y = w(() => !!(u.value && d.value && g.value && n.value));
|
|
2080
2085
|
let h = Array.from({
|
|
2081
2086
|
length: a.value.length
|
|
2082
|
-
}),
|
|
2087
|
+
}), I = Array.from({
|
|
2083
2088
|
length: a.value.length
|
|
2084
2089
|
});
|
|
2085
2090
|
const _ = J(0);
|
|
2086
|
-
let
|
|
2091
|
+
let x = -1;
|
|
2087
2092
|
function k(D) {
|
|
2088
2093
|
return h[D] || n.value;
|
|
2089
2094
|
}
|
|
2090
|
-
const
|
|
2095
|
+
const B = _n(() => {
|
|
2091
2096
|
const D = performance.now();
|
|
2092
|
-
|
|
2093
|
-
const
|
|
2094
|
-
for (let
|
|
2095
|
-
|
|
2097
|
+
I[0] = 0;
|
|
2098
|
+
const O = a.value.length;
|
|
2099
|
+
for (let S = 1; S <= O; S++)
|
|
2100
|
+
I[S] = (I[S - 1] || 0) + k(S - 1);
|
|
2096
2101
|
_.value = Math.max(_.value, performance.now() - D);
|
|
2097
2102
|
}, _), F = re(y, (D) => {
|
|
2098
|
-
D && (F(), o = d.value.offsetTop,
|
|
2103
|
+
D && (F(), o = d.value.offsetTop, B.immediate(), ie(), ~x && Ve(() => {
|
|
2099
2104
|
at && window.requestAnimationFrame(() => {
|
|
2100
|
-
|
|
2105
|
+
X(x), x = -1;
|
|
2101
2106
|
});
|
|
2102
2107
|
}));
|
|
2103
2108
|
});
|
|
2104
2109
|
nt(() => {
|
|
2105
|
-
|
|
2110
|
+
B.clear();
|
|
2106
2111
|
});
|
|
2107
|
-
function
|
|
2108
|
-
const
|
|
2109
|
-
n.value = v ? Math.min(n.value,
|
|
2112
|
+
function L(D, O) {
|
|
2113
|
+
const S = h[D], v = n.value;
|
|
2114
|
+
n.value = v ? Math.min(n.value, O) : O, (S !== O || v !== n.value) && (h[D] = O, B());
|
|
2110
2115
|
}
|
|
2111
2116
|
function A(D) {
|
|
2112
2117
|
D = Me(D, 0, a.value.length);
|
|
2113
|
-
const
|
|
2114
|
-
return P + (V - P) *
|
|
2118
|
+
const O = Math.floor(D), S = D % 1, v = O + 1, P = I[O] || 0, V = I[v] || P;
|
|
2119
|
+
return P + (V - P) * S;
|
|
2115
2120
|
}
|
|
2116
2121
|
function p(D) {
|
|
2117
|
-
return Aa(
|
|
2122
|
+
return Aa(I, D);
|
|
2118
2123
|
}
|
|
2119
|
-
let
|
|
2120
|
-
re(g, (D,
|
|
2121
|
-
|
|
2122
|
-
E = 0,
|
|
2124
|
+
let M = 0, E = 0, q = 0;
|
|
2125
|
+
re(g, (D, O) => {
|
|
2126
|
+
ie(), D < O && requestAnimationFrame(() => {
|
|
2127
|
+
E = 0, ie();
|
|
2123
2128
|
});
|
|
2124
2129
|
});
|
|
2125
2130
|
let te = -1;
|
|
2126
2131
|
function ee() {
|
|
2127
2132
|
if (!u.value || !d.value) return;
|
|
2128
|
-
const D = u.value.scrollTop,
|
|
2129
|
-
|
|
2133
|
+
const D = u.value.scrollTop, O = performance.now();
|
|
2134
|
+
O - q > 500 ? (E = Math.sign(D - M), o = d.value.offsetTop) : E = D - M, M = D, q = O, window.clearTimeout(te), te = window.setTimeout(U, 500), ie();
|
|
2130
2135
|
}
|
|
2131
2136
|
function U() {
|
|
2132
|
-
!u.value || !d.value || (E = 0, q = 0, window.clearTimeout(te),
|
|
2137
|
+
!u.value || !d.value || (E = 0, q = 0, window.clearTimeout(te), ie());
|
|
2133
2138
|
}
|
|
2134
|
-
let
|
|
2135
|
-
function
|
|
2136
|
-
cancelAnimationFrame(
|
|
2139
|
+
let z = -1;
|
|
2140
|
+
function ie() {
|
|
2141
|
+
cancelAnimationFrame(z), z = requestAnimationFrame(G);
|
|
2137
2142
|
}
|
|
2138
|
-
function
|
|
2143
|
+
function G() {
|
|
2139
2144
|
if (!u.value || !g.value || !n.value) return;
|
|
2140
|
-
const D =
|
|
2145
|
+
const D = M - o, O = Math.sign(E), S = Math.max(0, D - Et), v = Me(p(S), 0, a.value.length), P = D + g.value + Et, V = Me(p(P) + 1, v + 1, a.value.length);
|
|
2141
2146
|
if (
|
|
2142
2147
|
// Only update the side we're scrolling towards,
|
|
2143
2148
|
// the other side will be updated incidentally
|
|
2144
|
-
(
|
|
2149
|
+
(O !== Ia || v < l.value) && (O !== wa || V > i.value)
|
|
2145
2150
|
) {
|
|
2146
|
-
const
|
|
2147
|
-
Math.max(
|
|
2151
|
+
const $ = A(l.value) - A(v), K = A(V) - A(i.value);
|
|
2152
|
+
Math.max($, K) > Et ? (l.value = v, i.value = V) : (v <= 0 && (l.value = v), V >= a.value.length && (i.value = V));
|
|
2148
2153
|
}
|
|
2149
2154
|
c.value = A(l.value), s.value = A(a.value.length) - A(i.value);
|
|
2150
2155
|
}
|
|
2151
|
-
function
|
|
2152
|
-
const
|
|
2153
|
-
!u.value || D &&
|
|
2156
|
+
function X(D) {
|
|
2157
|
+
const O = A(D);
|
|
2158
|
+
!u.value || D && !O ? x = D : u.value.scrollTop = O;
|
|
2154
2159
|
}
|
|
2155
|
-
const
|
|
2156
|
-
const
|
|
2160
|
+
const ne = w(() => a.value.slice(l.value, i.value).map((D, O) => {
|
|
2161
|
+
const S = O + l.value;
|
|
2157
2162
|
return {
|
|
2158
2163
|
raw: D,
|
|
2159
|
-
index:
|
|
2160
|
-
key: El(D, e.itemKey,
|
|
2164
|
+
index: S,
|
|
2165
|
+
key: El(D, e.itemKey, S)
|
|
2161
2166
|
};
|
|
2162
2167
|
}));
|
|
2163
2168
|
return re(a, () => {
|
|
2164
2169
|
h = Array.from({
|
|
2165
2170
|
length: a.value.length
|
|
2166
|
-
}),
|
|
2171
|
+
}), I = Array.from({
|
|
2167
2172
|
length: a.value.length
|
|
2168
|
-
}),
|
|
2173
|
+
}), B.immediate(), ie();
|
|
2169
2174
|
}, {
|
|
2170
2175
|
deep: 1
|
|
2171
2176
|
}), {
|
|
2172
|
-
calculateVisibleItems:
|
|
2177
|
+
calculateVisibleItems: ie,
|
|
2173
2178
|
containerRef: u,
|
|
2174
2179
|
markerRef: d,
|
|
2175
|
-
computedItems:
|
|
2180
|
+
computedItems: ne,
|
|
2176
2181
|
paddingTop: c,
|
|
2177
2182
|
paddingBottom: s,
|
|
2178
|
-
scrollToIndex:
|
|
2183
|
+
scrollToIndex: X,
|
|
2179
2184
|
handleScroll: ee,
|
|
2180
2185
|
handleScrollend: U,
|
|
2181
|
-
handleItemResize:
|
|
2186
|
+
handleItemResize: L
|
|
2182
2187
|
};
|
|
2183
2188
|
}
|
|
2184
2189
|
function Aa(e, a) {
|
|
@@ -2193,7 +2198,7 @@ function Aa(e, a) {
|
|
|
2193
2198
|
else return i === a ? l : n;
|
|
2194
2199
|
return c;
|
|
2195
2200
|
}
|
|
2196
|
-
const Fa =
|
|
2201
|
+
const Fa = j({
|
|
2197
2202
|
items: {
|
|
2198
2203
|
type: Array,
|
|
2199
2204
|
default: () => []
|
|
@@ -2202,7 +2207,7 @@ const Fa = G({
|
|
|
2202
2207
|
..._a(),
|
|
2203
2208
|
...pe(),
|
|
2204
2209
|
...ft()
|
|
2205
|
-
}, "VVirtualScroll"), tn =
|
|
2210
|
+
}, "VVirtualScroll"), tn = oe()({
|
|
2206
2211
|
name: "VVirtualScroll",
|
|
2207
2212
|
props: Fa(),
|
|
2208
2213
|
setup(e, a) {
|
|
@@ -2222,7 +2227,7 @@ const Fa = G({
|
|
|
2222
2227
|
paddingTop: m,
|
|
2223
2228
|
paddingBottom: g,
|
|
2224
2229
|
computedItems: y
|
|
2225
|
-
} = Pa(e,
|
|
2230
|
+
} = Pa(e, T(() => e.items));
|
|
2226
2231
|
return $t(() => e.renderless, () => {
|
|
2227
2232
|
function h() {
|
|
2228
2233
|
const _ = (arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1) ? "addEventListener" : "removeEventListener";
|
|
@@ -2235,19 +2240,19 @@ const Fa = G({
|
|
|
2235
2240
|
Ye(() => {
|
|
2236
2241
|
c.value = Pn(n.vnode.el, !0), h(!0);
|
|
2237
2242
|
}), nt(h);
|
|
2238
|
-
}),
|
|
2239
|
-
const h = y.value.map((
|
|
2240
|
-
key:
|
|
2243
|
+
}), ve(() => {
|
|
2244
|
+
const h = y.value.map((I) => f(xa, {
|
|
2245
|
+
key: I.key,
|
|
2241
2246
|
renderless: e.renderless,
|
|
2242
|
-
"onUpdate:height": (_) => o(
|
|
2247
|
+
"onUpdate:height": (_) => o(I.index, _)
|
|
2243
2248
|
}, {
|
|
2244
2249
|
default: (_) => t.default?.({
|
|
2245
|
-
item:
|
|
2246
|
-
index:
|
|
2250
|
+
item: I.raw,
|
|
2251
|
+
index: I.index,
|
|
2247
2252
|
..._
|
|
2248
2253
|
})
|
|
2249
2254
|
}));
|
|
2250
|
-
return e.renderless ? b(
|
|
2255
|
+
return e.renderless ? b(de, null, [b("div", {
|
|
2251
2256
|
ref: s,
|
|
2252
2257
|
class: "v-virtual-scroll__spacer",
|
|
2253
2258
|
style: {
|
|
@@ -2260,10 +2265,10 @@ const Fa = G({
|
|
|
2260
2265
|
}
|
|
2261
2266
|
}, null)]) : b("div", {
|
|
2262
2267
|
ref: c,
|
|
2263
|
-
class:
|
|
2268
|
+
class: ce(["v-virtual-scroll", e.class]),
|
|
2264
2269
|
onScrollPassive: u,
|
|
2265
2270
|
onScrollend: d,
|
|
2266
|
-
style:
|
|
2271
|
+
style: Ie([l.value, e.style])
|
|
2267
2272
|
}, [b("div", {
|
|
2268
2273
|
ref: s,
|
|
2269
2274
|
class: "v-virtual-scroll__container",
|
|
@@ -2327,7 +2332,7 @@ function ln(e, a) {
|
|
|
2327
2332
|
onKeydown: c
|
|
2328
2333
|
};
|
|
2329
2334
|
}
|
|
2330
|
-
const Da =
|
|
2335
|
+
const Da = j({
|
|
2331
2336
|
closeText: {
|
|
2332
2337
|
type: String,
|
|
2333
2338
|
default: "$vuetify.close"
|
|
@@ -2338,14 +2343,14 @@ const Da = G({
|
|
|
2338
2343
|
}
|
|
2339
2344
|
}, "autocomplete");
|
|
2340
2345
|
function nn(e, a) {
|
|
2341
|
-
const t = je(), n =
|
|
2346
|
+
const t = je(), n = w(() => `menu-${t}`), l = T(() => mn(a)), i = T(() => n.value);
|
|
2342
2347
|
return {
|
|
2343
2348
|
menuId: n,
|
|
2344
2349
|
ariaExpanded: l,
|
|
2345
2350
|
ariaControls: i
|
|
2346
2351
|
};
|
|
2347
2352
|
}
|
|
2348
|
-
const an =
|
|
2353
|
+
const an = j({
|
|
2349
2354
|
chips: Boolean,
|
|
2350
2355
|
closableChips: Boolean,
|
|
2351
2356
|
eager: Boolean,
|
|
@@ -2374,7 +2379,7 @@ const an = G({
|
|
|
2374
2379
|
...Fn({
|
|
2375
2380
|
itemChildren: !1
|
|
2376
2381
|
})
|
|
2377
|
-
}, "Select"), Ta =
|
|
2382
|
+
}, "Select"), Ta = j({
|
|
2378
2383
|
...an(),
|
|
2379
2384
|
...Ge(Tt({
|
|
2380
2385
|
modelValue: null,
|
|
@@ -2385,7 +2390,7 @@ const an = G({
|
|
|
2385
2390
|
component: Nl
|
|
2386
2391
|
}
|
|
2387
2392
|
})
|
|
2388
|
-
}, "VSelect"), Co =
|
|
2393
|
+
}, "VSelect"), Co = oe()({
|
|
2389
2394
|
name: "VSelect",
|
|
2390
2395
|
props: Ta(),
|
|
2391
2396
|
emits: {
|
|
@@ -2404,22 +2409,22 @@ const an = G({
|
|
|
2404
2409
|
transformIn: u,
|
|
2405
2410
|
transformOut: d
|
|
2406
2411
|
} = Ol(e), o = we(e, "modelValue", [], (V) => u(V === null ? [null] : De(V)), (V) => {
|
|
2407
|
-
const
|
|
2408
|
-
return e.multiple ?
|
|
2409
|
-
}), r =
|
|
2412
|
+
const $ = d(V);
|
|
2413
|
+
return e.multiple ? $ : $[0] ?? null;
|
|
2414
|
+
}), r = w(() => typeof e.counterValue == "function" ? e.counterValue(o.value) : typeof e.counterValue == "number" ? e.counterValue : o.value.length), m = Dt(e), g = en(e), y = w(() => o.value.map((V) => V.value)), h = J(!1), I = T(() => e.closableChips && !m.isReadonly.value && !m.isDisabled.value), {
|
|
2410
2415
|
InputIcon: _
|
|
2411
2416
|
} = Ft(e);
|
|
2412
|
-
let
|
|
2413
|
-
const F =
|
|
2417
|
+
let x = "", k = 0, B;
|
|
2418
|
+
const F = w(() => e.hideSelected ? s.value.filter((V) => !o.value.some(($) => (e.valueComparator || We)($, V))) : s.value), L = w(() => e.hideNoData && !F.value.length || m.isReadonly.value || m.isDisabled.value), A = we(e, "menu"), p = w({
|
|
2414
2419
|
get: () => A.value,
|
|
2415
2420
|
set: (V) => {
|
|
2416
|
-
A.value && !V && i.value?.ΨopenChildren.size || V &&
|
|
2421
|
+
A.value && !V && i.value?.ΨopenChildren.size || V && L.value || (A.value = V);
|
|
2417
2422
|
}
|
|
2418
2423
|
}), {
|
|
2419
|
-
menuId:
|
|
2424
|
+
menuId: M,
|
|
2420
2425
|
ariaExpanded: E,
|
|
2421
2426
|
ariaControls: q
|
|
2422
|
-
} = nn(e, p), te =
|
|
2427
|
+
} = nn(e, p), te = w(() => ({
|
|
2423
2428
|
...e.menuProps,
|
|
2424
2429
|
activatorProps: {
|
|
2425
2430
|
...e.menuProps?.activatorProps || {},
|
|
@@ -2427,55 +2432,55 @@ const an = G({
|
|
|
2427
2432
|
// Set aria-haspopup to 'listbox'
|
|
2428
2433
|
}
|
|
2429
2434
|
})), ee = W(), U = ln(ee, l);
|
|
2430
|
-
function
|
|
2435
|
+
function z(V) {
|
|
2431
2436
|
e.openOnClear && (p.value = !0);
|
|
2432
2437
|
}
|
|
2433
|
-
function
|
|
2434
|
-
|
|
2438
|
+
function ie() {
|
|
2439
|
+
L.value || (p.value = !p.value);
|
|
2435
2440
|
}
|
|
2436
|
-
function
|
|
2437
|
-
St(V) &&
|
|
2441
|
+
function G(V) {
|
|
2442
|
+
St(V) && X(V);
|
|
2438
2443
|
}
|
|
2439
|
-
function
|
|
2444
|
+
function X(V) {
|
|
2440
2445
|
if (!V.key || m.isReadonly.value) return;
|
|
2441
2446
|
if (["Enter", " ", "ArrowDown", "ArrowUp", "Home", "End"].includes(V.key) && V.preventDefault(), ["Enter", "ArrowDown", " "].includes(V.key) && (p.value = !0), ["Escape", "Tab"].includes(V.key) && (p.value = !1), e.clearable && V.key === "Backspace") {
|
|
2442
|
-
V.preventDefault(), o.value = [],
|
|
2447
|
+
V.preventDefault(), o.value = [], z();
|
|
2443
2448
|
return;
|
|
2444
2449
|
}
|
|
2445
2450
|
V.key === "Home" ? ee.value?.focus("first") : V.key === "End" && ee.value?.focus("last");
|
|
2446
|
-
const
|
|
2451
|
+
const $ = 1e3;
|
|
2447
2452
|
if (!St(V)) return;
|
|
2448
|
-
const
|
|
2449
|
-
|
|
2450
|
-
const
|
|
2451
|
-
function me() {
|
|
2452
|
-
let z = ge();
|
|
2453
|
-
return z || C.at(-1) === C.at(-2) && (C = C.slice(0, -1), k++, z = ge(), z) || (k = 0, z = ge(), z) ? z : (C = V.key.toLowerCase(), ge());
|
|
2454
|
-
}
|
|
2453
|
+
const K = performance.now();
|
|
2454
|
+
K - B > $ && (x = "", k = 0), x += V.key.toLowerCase(), B = K;
|
|
2455
|
+
const ue = F.value;
|
|
2455
2456
|
function ge() {
|
|
2456
|
-
|
|
2457
|
-
|
|
2458
|
-
|
|
2459
|
-
|
|
2457
|
+
let H = fe();
|
|
2458
|
+
return H || x.at(-1) === x.at(-2) && (x = x.slice(0, -1), k++, H = fe(), H) || (k = 0, H = fe(), H) ? H : (x = V.key.toLowerCase(), fe());
|
|
2459
|
+
}
|
|
2460
|
+
function fe() {
|
|
2461
|
+
for (let H = k; H < ue.length; H++) {
|
|
2462
|
+
const ye = ue[H];
|
|
2463
|
+
if (ye.title.toLowerCase().startsWith(x))
|
|
2464
|
+
return [ye, H];
|
|
2460
2465
|
}
|
|
2461
2466
|
}
|
|
2462
|
-
const
|
|
2463
|
-
if (!
|
|
2464
|
-
const [
|
|
2465
|
-
k =
|
|
2467
|
+
const _e = ge();
|
|
2468
|
+
if (!_e) return;
|
|
2469
|
+
const [Y, me] = _e;
|
|
2470
|
+
k = me, ee.value?.focus(me), e.multiple || (o.value = [Y]);
|
|
2466
2471
|
}
|
|
2467
|
-
function
|
|
2468
|
-
let
|
|
2472
|
+
function ne(V) {
|
|
2473
|
+
let $ = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;
|
|
2469
2474
|
if (!V.props.disabled)
|
|
2470
2475
|
if (e.multiple) {
|
|
2471
|
-
const
|
|
2472
|
-
if (~
|
|
2473
|
-
const
|
|
2474
|
-
|
|
2475
|
-
} else
|
|
2476
|
+
const K = o.value.findIndex((ge) => (e.valueComparator || We)(ge.value, V.value)), ue = $ ?? !~K;
|
|
2477
|
+
if (~K) {
|
|
2478
|
+
const ge = ue ? [...o.value, V] : [...o.value];
|
|
2479
|
+
ge.splice(K, 1), o.value = ge;
|
|
2480
|
+
} else ue && (o.value = [...o.value, V]);
|
|
2476
2481
|
} else {
|
|
2477
|
-
const
|
|
2478
|
-
o.value =
|
|
2482
|
+
const K = $ !== !1;
|
|
2483
|
+
o.value = K ? [V] : [], Ve(() => {
|
|
2479
2484
|
p.value = !1;
|
|
2480
2485
|
});
|
|
2481
2486
|
}
|
|
@@ -2483,10 +2488,10 @@ const an = G({
|
|
|
2483
2488
|
function D(V) {
|
|
2484
2489
|
ee.value?.$el.contains(V.relatedTarget) || (p.value = !1);
|
|
2485
2490
|
}
|
|
2486
|
-
function
|
|
2491
|
+
function O() {
|
|
2487
2492
|
e.eager && c.value?.calculateVisibleItems();
|
|
2488
2493
|
}
|
|
2489
|
-
function
|
|
2494
|
+
function S() {
|
|
2490
2495
|
h.value && l.value?.focus();
|
|
2491
2496
|
}
|
|
2492
2497
|
function v(V) {
|
|
@@ -2495,32 +2500,32 @@ const an = G({
|
|
|
2495
2500
|
function P(V) {
|
|
2496
2501
|
if (V == null) o.value = [];
|
|
2497
2502
|
else if (ot(l.value, ":autofill") || ot(l.value, ":-webkit-autofill")) {
|
|
2498
|
-
const
|
|
2499
|
-
|
|
2503
|
+
const $ = s.value.find((K) => K.title === V);
|
|
2504
|
+
$ && ne($);
|
|
2500
2505
|
} else l.value && (l.value.value = "");
|
|
2501
2506
|
}
|
|
2502
2507
|
return re(p, () => {
|
|
2503
2508
|
if (!e.hideSelected && p.value && o.value.length) {
|
|
2504
|
-
const V = F.value.findIndex((
|
|
2509
|
+
const V = F.value.findIndex(($) => o.value.some((K) => (e.valueComparator || We)(K.value, $.value)));
|
|
2505
2510
|
at && !e.noAutoScroll && window.requestAnimationFrame(() => {
|
|
2506
2511
|
V >= 0 && c.value?.scrollToIndex(V);
|
|
2507
2512
|
});
|
|
2508
2513
|
}
|
|
2509
|
-
}), re(s, (V,
|
|
2510
|
-
p.value || h.value && e.hideNoData &&
|
|
2511
|
-
}),
|
|
2512
|
-
const V = !!(e.chips || t.chip),
|
|
2513
|
-
return f(Ke,
|
|
2514
|
+
}), re(s, (V, $) => {
|
|
2515
|
+
p.value || h.value && e.hideNoData && !$.length && V.length && (p.value = !0);
|
|
2516
|
+
}), ve(() => {
|
|
2517
|
+
const V = !!(e.chips || t.chip), $ = !!(!e.hideNoData || F.value.length || t["prepend-item"] || t["append-item"] || t["no-data"]), K = o.value.length > 0, ue = Ke.filterProps(e), ge = K || !h.value && e.label && !e.persistentPlaceholder ? void 0 : e.placeholder;
|
|
2518
|
+
return f(Ke, R({
|
|
2514
2519
|
ref: l
|
|
2515
|
-
},
|
|
2516
|
-
modelValue: o.value.map((
|
|
2520
|
+
}, ue, {
|
|
2521
|
+
modelValue: o.value.map((fe) => fe.props.title).join(", "),
|
|
2517
2522
|
name: void 0,
|
|
2518
2523
|
"onUpdate:modelValue": P,
|
|
2519
2524
|
focused: h.value,
|
|
2520
|
-
"onUpdate:focused": (
|
|
2525
|
+
"onUpdate:focused": (fe) => h.value = fe,
|
|
2521
2526
|
validationValue: o.externalValue,
|
|
2522
2527
|
counterValue: r.value,
|
|
2523
|
-
dirty:
|
|
2528
|
+
dirty: K,
|
|
2524
2529
|
class: ["v-select", {
|
|
2525
2530
|
"v-select--active-menu": p.value,
|
|
2526
2531
|
"v-select--chips": !!e.chips,
|
|
@@ -2530,54 +2535,54 @@ const an = G({
|
|
|
2530
2535
|
}, e.class],
|
|
2531
2536
|
style: e.style,
|
|
2532
2537
|
inputmode: "none",
|
|
2533
|
-
placeholder:
|
|
2534
|
-
"onClick:clear":
|
|
2535
|
-
"onMousedown:control":
|
|
2538
|
+
placeholder: ge,
|
|
2539
|
+
"onClick:clear": z,
|
|
2540
|
+
"onMousedown:control": ie,
|
|
2536
2541
|
onBlur: D,
|
|
2537
|
-
onKeydown:
|
|
2542
|
+
onKeydown: X,
|
|
2538
2543
|
"aria-expanded": E.value,
|
|
2539
2544
|
"aria-controls": q.value
|
|
2540
2545
|
}), {
|
|
2541
2546
|
...t,
|
|
2542
|
-
default: (
|
|
2547
|
+
default: (fe) => {
|
|
2543
2548
|
let {
|
|
2544
|
-
id:
|
|
2545
|
-
} =
|
|
2546
|
-
return b(
|
|
2549
|
+
id: _e
|
|
2550
|
+
} = fe;
|
|
2551
|
+
return b(de, null, [b("select", {
|
|
2547
2552
|
hidden: !0,
|
|
2548
2553
|
multiple: e.multiple,
|
|
2549
2554
|
name: g.fieldName.value
|
|
2550
|
-
}, [s.value.map((
|
|
2551
|
-
key:
|
|
2552
|
-
value:
|
|
2553
|
-
selected: y.value.includes(
|
|
2554
|
-
}, null))]), f(Rl,
|
|
2555
|
-
id:
|
|
2555
|
+
}, [s.value.map((Y) => b("option", {
|
|
2556
|
+
key: Y.value,
|
|
2557
|
+
value: Y.value,
|
|
2558
|
+
selected: y.value.includes(Y.value)
|
|
2559
|
+
}, null))]), f(Rl, R({
|
|
2560
|
+
id: M.value,
|
|
2556
2561
|
ref: i,
|
|
2557
2562
|
modelValue: p.value,
|
|
2558
|
-
"onUpdate:modelValue": (
|
|
2563
|
+
"onUpdate:modelValue": (Y) => p.value = Y,
|
|
2559
2564
|
activator: "parent",
|
|
2560
2565
|
contentClass: "v-select__content",
|
|
2561
|
-
disabled:
|
|
2566
|
+
disabled: L.value,
|
|
2562
2567
|
eager: e.eager,
|
|
2563
2568
|
maxHeight: 310,
|
|
2564
2569
|
openOnClick: !1,
|
|
2565
2570
|
closeOnContentClick: !1,
|
|
2566
2571
|
transition: e.transition,
|
|
2567
|
-
onAfterEnter:
|
|
2568
|
-
onAfterLeave:
|
|
2572
|
+
onAfterEnter: O,
|
|
2573
|
+
onAfterLeave: S
|
|
2569
2574
|
}, te.value), {
|
|
2570
|
-
default: () => [
|
|
2575
|
+
default: () => [$ && f(Yt, R({
|
|
2571
2576
|
ref: ee,
|
|
2572
2577
|
selected: y.value,
|
|
2573
2578
|
selectStrategy: e.multiple ? "independent" : "single-independent",
|
|
2574
|
-
onMousedown: (
|
|
2575
|
-
onKeydown:
|
|
2579
|
+
onMousedown: (Y) => Y.preventDefault(),
|
|
2580
|
+
onKeydown: G,
|
|
2576
2581
|
onFocusin: v,
|
|
2577
2582
|
tabindex: "-1",
|
|
2578
2583
|
selectable: !!F.value.length,
|
|
2579
2584
|
"aria-live": "polite",
|
|
2580
|
-
"aria-labelledby": `${
|
|
2585
|
+
"aria-labelledby": `${_e.value}-label`,
|
|
2581
2586
|
"aria-multiselectable": e.multiple,
|
|
2582
2587
|
color: e.itemColor ?? e.color
|
|
2583
2588
|
}, U, e.listProps), {
|
|
@@ -2590,111 +2595,111 @@ const an = G({
|
|
|
2590
2595
|
items: F.value,
|
|
2591
2596
|
itemKey: "value"
|
|
2592
2597
|
}, {
|
|
2593
|
-
default: (
|
|
2598
|
+
default: (Y) => {
|
|
2594
2599
|
let {
|
|
2595
|
-
item:
|
|
2596
|
-
index:
|
|
2600
|
+
item: me,
|
|
2601
|
+
index: H,
|
|
2597
2602
|
itemRef: ye
|
|
2598
|
-
} =
|
|
2599
|
-
const
|
|
2603
|
+
} = Y;
|
|
2604
|
+
const C = An(me.props), Q = R(me.props, {
|
|
2600
2605
|
ref: ye,
|
|
2601
|
-
key:
|
|
2602
|
-
onClick: () =>
|
|
2603
|
-
"aria-posinset":
|
|
2606
|
+
key: me.value,
|
|
2607
|
+
onClick: () => ne(me, null),
|
|
2608
|
+
"aria-posinset": H + 1,
|
|
2604
2609
|
"aria-setsize": F.value.length
|
|
2605
2610
|
});
|
|
2606
|
-
return
|
|
2607
|
-
props:
|
|
2608
|
-
index:
|
|
2609
|
-
}) ?? f(Le,
|
|
2610
|
-
key: `divider-${
|
|
2611
|
-
}), null) :
|
|
2612
|
-
props:
|
|
2613
|
-
index:
|
|
2614
|
-
}) ?? f(Ml,
|
|
2615
|
-
key: `subheader-${
|
|
2611
|
+
return me.type === "divider" ? t.divider?.({
|
|
2612
|
+
props: me.raw,
|
|
2613
|
+
index: H
|
|
2614
|
+
}) ?? f(Le, R(me.props, {
|
|
2615
|
+
key: `divider-${H}`
|
|
2616
|
+
}), null) : me.type === "subheader" ? t.subheader?.({
|
|
2617
|
+
props: me.raw,
|
|
2618
|
+
index: H
|
|
2619
|
+
}) ?? f(Ml, R(me.props, {
|
|
2620
|
+
key: `subheader-${H}`
|
|
2616
2621
|
}), null) : t.item?.({
|
|
2617
|
-
item:
|
|
2618
|
-
index:
|
|
2619
|
-
props:
|
|
2620
|
-
}) ?? f(it,
|
|
2622
|
+
item: me,
|
|
2623
|
+
index: H,
|
|
2624
|
+
props: Q
|
|
2625
|
+
}) ?? f(it, R(Q, {
|
|
2621
2626
|
role: "option"
|
|
2622
2627
|
}), {
|
|
2623
|
-
prepend: (
|
|
2628
|
+
prepend: (Z) => {
|
|
2624
2629
|
let {
|
|
2625
2630
|
isSelected: ae
|
|
2626
|
-
} =
|
|
2627
|
-
return b(
|
|
2628
|
-
key:
|
|
2631
|
+
} = Z;
|
|
2632
|
+
return b(de, null, [e.multiple && !e.hideSelected ? f(Jl, {
|
|
2633
|
+
key: me.value,
|
|
2629
2634
|
modelValue: ae,
|
|
2630
2635
|
ripple: !1,
|
|
2631
2636
|
tabindex: "-1",
|
|
2632
2637
|
"aria-hidden": !0,
|
|
2633
2638
|
onClick: (Ce) => Ce.preventDefault()
|
|
2634
|
-
}, null) : void 0,
|
|
2635
|
-
image:
|
|
2636
|
-
}, null),
|
|
2637
|
-
icon:
|
|
2639
|
+
}, null) : void 0, C.prependAvatar && f(Xe, {
|
|
2640
|
+
image: C.prependAvatar
|
|
2641
|
+
}, null), C.prependIcon && f(Se, {
|
|
2642
|
+
icon: C.prependIcon
|
|
2638
2643
|
}, null)]);
|
|
2639
2644
|
}
|
|
2640
2645
|
});
|
|
2641
2646
|
}
|
|
2642
2647
|
}), t["append-item"]?.()]
|
|
2643
2648
|
})]
|
|
2644
|
-
}), o.value.map((
|
|
2645
|
-
function
|
|
2646
|
-
|
|
2649
|
+
}), o.value.map((Y, me) => {
|
|
2650
|
+
function H(Z) {
|
|
2651
|
+
Z.stopPropagation(), Z.preventDefault(), ne(Y, !1);
|
|
2647
2652
|
}
|
|
2648
|
-
const ye =
|
|
2649
|
-
"onClick:close":
|
|
2650
|
-
onKeydown(
|
|
2651
|
-
|
|
2653
|
+
const ye = R(st.filterProps(Y.props), {
|
|
2654
|
+
"onClick:close": H,
|
|
2655
|
+
onKeydown(Z) {
|
|
2656
|
+
Z.key !== "Enter" && Z.key !== " " || (Z.preventDefault(), Z.stopPropagation(), H(Z));
|
|
2652
2657
|
},
|
|
2653
|
-
onMousedown(
|
|
2654
|
-
|
|
2658
|
+
onMousedown(Z) {
|
|
2659
|
+
Z.preventDefault(), Z.stopPropagation();
|
|
2655
2660
|
},
|
|
2656
2661
|
modelValue: !0,
|
|
2657
2662
|
"onUpdate:modelValue": void 0
|
|
2658
|
-
}),
|
|
2659
|
-
item:
|
|
2660
|
-
index:
|
|
2663
|
+
}), C = V ? !!t.chip : !!t.selection, Q = C ? $l(V ? t.chip({
|
|
2664
|
+
item: Y,
|
|
2665
|
+
index: me,
|
|
2661
2666
|
props: ye
|
|
2662
2667
|
}) : t.selection({
|
|
2663
|
-
item:
|
|
2664
|
-
index:
|
|
2668
|
+
item: Y,
|
|
2669
|
+
index: me
|
|
2665
2670
|
})) : void 0;
|
|
2666
|
-
if (!(
|
|
2671
|
+
if (!(C && !Q))
|
|
2667
2672
|
return b("div", {
|
|
2668
|
-
key:
|
|
2673
|
+
key: Y.value,
|
|
2669
2674
|
class: "v-select__selection"
|
|
2670
|
-
}, [V ? t.chip ? f(
|
|
2675
|
+
}, [V ? t.chip ? f(Fe, {
|
|
2671
2676
|
key: "chip-defaults",
|
|
2672
2677
|
defaults: {
|
|
2673
2678
|
VChip: {
|
|
2674
|
-
closable:
|
|
2679
|
+
closable: I.value,
|
|
2675
2680
|
size: "small",
|
|
2676
|
-
text:
|
|
2681
|
+
text: Y.title
|
|
2677
2682
|
}
|
|
2678
2683
|
}
|
|
2679
2684
|
}, {
|
|
2680
|
-
default: () => [
|
|
2681
|
-
}) : f(st,
|
|
2685
|
+
default: () => [Q]
|
|
2686
|
+
}) : f(st, R({
|
|
2682
2687
|
key: "chip",
|
|
2683
|
-
closable:
|
|
2688
|
+
closable: I.value,
|
|
2684
2689
|
size: "small",
|
|
2685
|
-
text:
|
|
2686
|
-
disabled:
|
|
2687
|
-
}, ye), null) :
|
|
2690
|
+
text: Y.title,
|
|
2691
|
+
disabled: Y.props.disabled
|
|
2692
|
+
}, ye), null) : Q ?? b("span", {
|
|
2688
2693
|
class: "v-select__selection-text"
|
|
2689
|
-
}, [
|
|
2694
|
+
}, [Y.title, e.multiple && me < o.value.length - 1 && b("span", {
|
|
2690
2695
|
class: "v-select__selection-comma"
|
|
2691
2696
|
}, [vl(",")])])]);
|
|
2692
2697
|
})]);
|
|
2693
2698
|
},
|
|
2694
2699
|
"append-inner": function() {
|
|
2695
|
-
for (var
|
|
2696
|
-
|
|
2697
|
-
return b(
|
|
2700
|
+
for (var fe = arguments.length, _e = new Array(fe), Y = 0; Y < fe; Y++)
|
|
2701
|
+
_e[Y] = arguments[Y];
|
|
2702
|
+
return b(de, null, [t["append-inner"]?.(..._e), e.menuIcon ? f(Se, {
|
|
2698
2703
|
class: "v-select__menu-icon",
|
|
2699
2704
|
color: l.value?.fieldIconColor,
|
|
2700
2705
|
icon: e.menuIcon,
|
|
@@ -2702,14 +2707,14 @@ const an = G({
|
|
|
2702
2707
|
}, null) : void 0, e.appendInnerIcon && f(_, {
|
|
2703
2708
|
key: "append-icon",
|
|
2704
2709
|
name: "appendInner",
|
|
2705
|
-
color:
|
|
2710
|
+
color: _e[0].iconColor.value
|
|
2706
2711
|
}, null)]);
|
|
2707
2712
|
}
|
|
2708
2713
|
});
|
|
2709
2714
|
}), gt({
|
|
2710
2715
|
isFocused: h,
|
|
2711
2716
|
menu: p,
|
|
2712
|
-
select:
|
|
2717
|
+
select: ne
|
|
2713
2718
|
}, l);
|
|
2714
2719
|
}
|
|
2715
2720
|
}), Ba = (e, a, t) => {
|
|
@@ -2726,7 +2731,7 @@ function Ot(e, a) {
|
|
|
2726
2731
|
if (!(e == null || typeof e == "boolean" || e === -1))
|
|
2727
2732
|
return typeof e == "number" ? [[e, e + a.length]] : Array.isArray(e[0]) ? e : [e];
|
|
2728
2733
|
}
|
|
2729
|
-
const Ea =
|
|
2734
|
+
const Ea = j({
|
|
2730
2735
|
customFilter: Function,
|
|
2731
2736
|
customKeyFilter: Object,
|
|
2732
2737
|
filterKeys: [Array, String],
|
|
@@ -2756,17 +2761,17 @@ function Oa(e, a, t) {
|
|
|
2756
2761
|
}
|
|
2757
2762
|
const _ = i || Object.keys(o);
|
|
2758
2763
|
y = _.length === c;
|
|
2759
|
-
for (const
|
|
2760
|
-
const k = El(o,
|
|
2761
|
-
if (g =
|
|
2762
|
-
|
|
2764
|
+
for (const x of _) {
|
|
2765
|
+
const k = El(o, x), B = t?.customKeyFilter?.[x];
|
|
2766
|
+
if (g = B ? B(k, a, d) : l(k, a, d), g !== -1 && g !== !1)
|
|
2767
|
+
B ? r[x] = Ot(g, a) : m[x] = Ot(g, a);
|
|
2763
2768
|
else if (t?.filterMode === "every")
|
|
2764
2769
|
continue e;
|
|
2765
2770
|
}
|
|
2766
2771
|
} else
|
|
2767
2772
|
g = l(d, a, d), g !== -1 && g !== !1 && (m.title = Ot(g, a));
|
|
2768
|
-
const h = Object.keys(m).length,
|
|
2769
|
-
if (!h && !
|
|
2773
|
+
const h = Object.keys(m).length, I = Object.keys(r).length;
|
|
2774
|
+
if (!h && !I || t?.filterMode === "union" && I !== c && !h || t?.filterMode === "intersection" && (I !== c || !h && c > 0 && !y)) continue;
|
|
2770
2775
|
}
|
|
2771
2776
|
s && (n.push(s), s = null), n.push({
|
|
2772
2777
|
index: u,
|
|
@@ -2779,25 +2784,25 @@ function Oa(e, a, t) {
|
|
|
2779
2784
|
return n;
|
|
2780
2785
|
}
|
|
2781
2786
|
function Ra(e, a, t, n) {
|
|
2782
|
-
const l = J([]), i = J(/* @__PURE__ */ new Map()), c =
|
|
2787
|
+
const l = J([]), i = J(/* @__PURE__ */ new Map()), c = w(() => n?.transform ? N(a).map((u) => [u, n.transform(u)]) : N(a));
|
|
2783
2788
|
Rt(() => {
|
|
2784
|
-
const u = typeof t == "function" ? t() :
|
|
2789
|
+
const u = typeof t == "function" ? t() : N(t), d = typeof u != "string" && typeof u != "number" ? "" : String(u), o = Oa(c.value, d, {
|
|
2785
2790
|
customKeyFilter: {
|
|
2786
2791
|
...e.customKeyFilter,
|
|
2787
|
-
...
|
|
2792
|
+
...N(n?.customKeyFilter)
|
|
2788
2793
|
},
|
|
2789
2794
|
default: e.customFilter,
|
|
2790
2795
|
filterKeys: e.filterKeys,
|
|
2791
2796
|
filterMode: e.filterMode,
|
|
2792
2797
|
noFilter: e.noFilter
|
|
2793
|
-
}), r =
|
|
2798
|
+
}), r = N(a), m = [], g = /* @__PURE__ */ new Map();
|
|
2794
2799
|
o.forEach((y) => {
|
|
2795
2800
|
let {
|
|
2796
2801
|
index: h,
|
|
2797
|
-
matches:
|
|
2802
|
+
matches: I
|
|
2798
2803
|
} = y;
|
|
2799
2804
|
const _ = r[h];
|
|
2800
|
-
m.push(_), g.set(_.value,
|
|
2805
|
+
m.push(_), g.set(_.value, I);
|
|
2801
2806
|
}), l.value = m, i.value = g;
|
|
2802
2807
|
});
|
|
2803
2808
|
function s(u) {
|
|
@@ -2812,16 +2817,16 @@ function Ra(e, a, t, n) {
|
|
|
2812
2817
|
function Ma(e, a, t) {
|
|
2813
2818
|
return t == null || !t.length ? a : t.map((n, l) => {
|
|
2814
2819
|
const i = l === 0 ? 0 : t[l - 1][1], c = [b("span", {
|
|
2815
|
-
class:
|
|
2820
|
+
class: ce(`${e}__unmask`)
|
|
2816
2821
|
}, [a.slice(i, n[0])]), b("span", {
|
|
2817
|
-
class:
|
|
2822
|
+
class: ce(`${e}__mask`)
|
|
2818
2823
|
}, [a.slice(n[0], n[1])])];
|
|
2819
2824
|
return l === t.length - 1 && c.push(b("span", {
|
|
2820
|
-
class:
|
|
2821
|
-
}, [a.slice(n[1])])), b(
|
|
2825
|
+
class: ce(`${e}__unmask`)
|
|
2826
|
+
}, [a.slice(n[1])])), b(de, null, [c]);
|
|
2822
2827
|
});
|
|
2823
2828
|
}
|
|
2824
|
-
const $a =
|
|
2829
|
+
const $a = j({
|
|
2825
2830
|
autoSelectFirst: {
|
|
2826
2831
|
type: [Boolean, String]
|
|
2827
2832
|
},
|
|
@@ -2835,7 +2840,7 @@ const $a = G({
|
|
|
2835
2840
|
modelValue: null,
|
|
2836
2841
|
role: "combobox"
|
|
2837
2842
|
}), ["validationValue", "dirty"])
|
|
2838
|
-
}, "VAutocomplete"), Na =
|
|
2843
|
+
}, "VAutocomplete"), Na = oe()({
|
|
2839
2844
|
name: "VAutocomplete",
|
|
2840
2845
|
props: $a(),
|
|
2841
2846
|
emits: {
|
|
@@ -2856,151 +2861,151 @@ const $a = G({
|
|
|
2856
2861
|
transformOut: y
|
|
2857
2862
|
} = Ol(e), {
|
|
2858
2863
|
textColorClasses: h,
|
|
2859
|
-
textColorStyles:
|
|
2864
|
+
textColorStyles: I
|
|
2860
2865
|
} = mt(() => l.value?.color), {
|
|
2861
2866
|
InputIcon: _
|
|
2862
|
-
} = Ft(e),
|
|
2863
|
-
const
|
|
2864
|
-
return e.multiple ?
|
|
2865
|
-
}),
|
|
2866
|
-
filteredItems:
|
|
2867
|
+
} = Ft(e), x = we(e, "search", ""), k = we(e, "modelValue", [], (C) => g(C === null ? [null] : De(C)), (C) => {
|
|
2868
|
+
const Q = y(C);
|
|
2869
|
+
return e.multiple ? Q : Q[0] ?? null;
|
|
2870
|
+
}), B = w(() => typeof e.counterValue == "function" ? e.counterValue(k.value) : typeof e.counterValue == "number" ? e.counterValue : k.value.length), F = Dt(e), {
|
|
2871
|
+
filteredItems: L,
|
|
2867
2872
|
getMatches: A
|
|
2868
|
-
} = Ra(e, m, () => r.value ?? (c.value ? "" :
|
|
2869
|
-
get: () =>
|
|
2870
|
-
set: (
|
|
2871
|
-
|
|
2873
|
+
} = Ra(e, m, () => r.value ?? (c.value ? "" : x.value)), p = w(() => e.hideSelected && r.value === null ? L.value.filter((C) => !k.value.some((Q) => Q.value === C.value)) : L.value), M = T(() => e.closableChips && !F.isReadonly.value && !F.isDisabled.value), E = w(() => !!(e.chips || t.chip)), q = w(() => E.value || !!t.selection), te = w(() => k.value.map((C) => C.props.value)), ee = w(() => p.value.find((C) => C.type === "item" && !C.props.disabled)), U = w(() => (e.autoSelectFirst === !0 || e.autoSelectFirst === "exact" && x.value === ee.value?.title) && p.value.length > 0 && !c.value && !s.value), z = w(() => e.hideNoData && !p.value.length || F.isReadonly.value || F.isDisabled.value), ie = we(e, "menu"), G = w({
|
|
2874
|
+
get: () => ie.value,
|
|
2875
|
+
set: (C) => {
|
|
2876
|
+
ie.value && !C && u.value?.ΨopenChildren.size || C && z.value || (ie.value = C);
|
|
2872
2877
|
}
|
|
2873
2878
|
}), {
|
|
2874
|
-
menuId:
|
|
2875
|
-
ariaExpanded:
|
|
2879
|
+
menuId: X,
|
|
2880
|
+
ariaExpanded: ne,
|
|
2876
2881
|
ariaControls: D
|
|
2877
|
-
} = nn(e,
|
|
2878
|
-
function v(
|
|
2879
|
-
e.openOnClear && (
|
|
2882
|
+
} = nn(e, G), O = W(), S = ln(O, l);
|
|
2883
|
+
function v(C) {
|
|
2884
|
+
e.openOnClear && (G.value = !0), x.value = "";
|
|
2880
2885
|
}
|
|
2881
2886
|
function P() {
|
|
2882
|
-
|
|
2887
|
+
z.value || (G.value = !0);
|
|
2883
2888
|
}
|
|
2884
|
-
function V(
|
|
2885
|
-
|
|
2889
|
+
function V(C) {
|
|
2890
|
+
z.value || (i.value && (C.preventDefault(), C.stopPropagation()), G.value = !G.value);
|
|
2886
2891
|
}
|
|
2887
|
-
function
|
|
2888
|
-
(St(
|
|
2892
|
+
function $(C) {
|
|
2893
|
+
(St(C) || C.key === "Backspace") && l.value?.focus();
|
|
2889
2894
|
}
|
|
2890
|
-
function
|
|
2895
|
+
function K(C) {
|
|
2891
2896
|
if (F.isReadonly.value) return;
|
|
2892
|
-
const
|
|
2893
|
-
if (["Enter", "ArrowDown", "ArrowUp"].includes(
|
|
2897
|
+
const Q = l.value?.selectionStart, Z = k.value.length;
|
|
2898
|
+
if (["Enter", "ArrowDown", "ArrowUp"].includes(C.key) && C.preventDefault(), ["Enter", "ArrowDown"].includes(C.key) && (G.value = !0), ["Escape"].includes(C.key) && (G.value = !1), U.value && ["Enter", "Tab"].includes(C.key) && ee.value && !k.value.some((ae) => {
|
|
2894
2899
|
let {
|
|
2895
2900
|
value: Ce
|
|
2896
2901
|
} = ae;
|
|
2897
2902
|
return Ce === ee.value.value;
|
|
2898
|
-
}) && ye(ee.value),
|
|
2899
|
-
if (!e.multiple && q.value && k.value.length > 0 && !
|
|
2903
|
+
}) && ye(ee.value), C.key === "ArrowDown" && U.value && O.value?.focus("next"), ["Backspace", "Delete"].includes(C.key)) {
|
|
2904
|
+
if (!e.multiple && q.value && k.value.length > 0 && !x.value) return ye(k.value[0], !1);
|
|
2900
2905
|
if (~o.value) {
|
|
2901
|
-
|
|
2906
|
+
C.preventDefault();
|
|
2902
2907
|
const ae = o.value;
|
|
2903
|
-
ye(k.value[o.value], !1), o.value = ae >=
|
|
2904
|
-
} else
|
|
2908
|
+
ye(k.value[o.value], !1), o.value = ae >= Z - 1 ? Z - 2 : ae;
|
|
2909
|
+
} else C.key === "Backspace" && !x.value && (o.value = Z - 1);
|
|
2905
2910
|
return;
|
|
2906
2911
|
}
|
|
2907
2912
|
if (e.multiple)
|
|
2908
|
-
if (
|
|
2909
|
-
if (o.value < 0 &&
|
|
2910
|
-
const ae = o.value > -1 ? o.value - 1 :
|
|
2913
|
+
if (C.key === "ArrowLeft") {
|
|
2914
|
+
if (o.value < 0 && Q && Q > 0) return;
|
|
2915
|
+
const ae = o.value > -1 ? o.value - 1 : Z - 1;
|
|
2911
2916
|
if (k.value[ae])
|
|
2912
2917
|
o.value = ae;
|
|
2913
2918
|
else {
|
|
2914
|
-
const Ce =
|
|
2919
|
+
const Ce = x.value?.length ?? null;
|
|
2915
2920
|
o.value = -1, l.value?.setSelectionRange(Ce, Ce);
|
|
2916
2921
|
}
|
|
2917
|
-
} else if (
|
|
2922
|
+
} else if (C.key === "ArrowRight") {
|
|
2918
2923
|
if (o.value < 0) return;
|
|
2919
2924
|
const ae = o.value + 1;
|
|
2920
2925
|
k.value[ae] ? o.value = ae : (o.value = -1, l.value?.setSelectionRange(0, 0));
|
|
2921
|
-
} else ~o.value && St(
|
|
2926
|
+
} else ~o.value && St(C) && (o.value = -1);
|
|
2922
2927
|
}
|
|
2923
|
-
function
|
|
2928
|
+
function ue(C) {
|
|
2924
2929
|
if (ot(l.value, ":autofill") || ot(l.value, ":-webkit-autofill")) {
|
|
2925
|
-
const
|
|
2926
|
-
|
|
2930
|
+
const Q = m.value.find((Z) => Z.title === C.target.value);
|
|
2931
|
+
Q && ye(Q);
|
|
2927
2932
|
}
|
|
2928
2933
|
}
|
|
2929
|
-
function
|
|
2934
|
+
function ge() {
|
|
2930
2935
|
e.eager && d.value?.calculateVisibleItems();
|
|
2931
2936
|
}
|
|
2932
|
-
function
|
|
2937
|
+
function fe() {
|
|
2933
2938
|
i.value && (c.value = !0, l.value?.focus()), r.value = null;
|
|
2934
2939
|
}
|
|
2935
|
-
function
|
|
2940
|
+
function _e(C) {
|
|
2936
2941
|
i.value = !0, setTimeout(() => {
|
|
2937
2942
|
s.value = !0;
|
|
2938
2943
|
});
|
|
2939
2944
|
}
|
|
2940
|
-
function
|
|
2945
|
+
function Y(C) {
|
|
2941
2946
|
s.value = !1;
|
|
2942
2947
|
}
|
|
2943
|
-
function
|
|
2944
|
-
(
|
|
2948
|
+
function me(C) {
|
|
2949
|
+
(C == null || C === "" && !e.multiple && !q.value) && (k.value = []);
|
|
2945
2950
|
}
|
|
2946
|
-
const
|
|
2947
|
-
function ye(
|
|
2948
|
-
let
|
|
2949
|
-
if (!(!
|
|
2951
|
+
const H = J(!1);
|
|
2952
|
+
function ye(C) {
|
|
2953
|
+
let Q = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;
|
|
2954
|
+
if (!(!C || C.props.disabled))
|
|
2950
2955
|
if (e.multiple) {
|
|
2951
|
-
const
|
|
2952
|
-
if (~
|
|
2953
|
-
const Ce = ae ? [...k.value,
|
|
2954
|
-
Ce.splice(
|
|
2955
|
-
} else ae && (k.value = [...k.value,
|
|
2956
|
-
e.clearOnSelect && (
|
|
2956
|
+
const Z = k.value.findIndex((Ce) => (e.valueComparator || We)(Ce.value, C.value)), ae = Q ?? !~Z;
|
|
2957
|
+
if (~Z) {
|
|
2958
|
+
const Ce = ae ? [...k.value, C] : [...k.value];
|
|
2959
|
+
Ce.splice(Z, 1), k.value = Ce;
|
|
2960
|
+
} else ae && (k.value = [...k.value, C]);
|
|
2961
|
+
e.clearOnSelect && (x.value = "");
|
|
2957
2962
|
} else {
|
|
2958
|
-
const
|
|
2959
|
-
k.value =
|
|
2960
|
-
|
|
2963
|
+
const Z = Q !== !1;
|
|
2964
|
+
k.value = Z ? [C] : [], r.value = c.value ? "" : x.value ?? "", x.value = Z && !q.value ? C.title : "", Ve(() => {
|
|
2965
|
+
G.value = !1, c.value = !0;
|
|
2961
2966
|
});
|
|
2962
2967
|
}
|
|
2963
2968
|
}
|
|
2964
|
-
return re(i, (
|
|
2965
|
-
|
|
2966
|
-
}), re(
|
|
2967
|
-
!i.value ||
|
|
2968
|
-
}), re(
|
|
2969
|
-
if (!e.hideSelected &&
|
|
2970
|
-
const
|
|
2969
|
+
return re(i, (C, Q) => {
|
|
2970
|
+
C !== Q && (C ? (H.value = !0, x.value = e.multiple || q.value ? "" : String(k.value.at(-1)?.props.title ?? ""), c.value = !0, Ve(() => H.value = !1)) : (!e.multiple && x.value == null && (k.value = []), G.value = !1, !c.value && x.value && (r.value = x.value), x.value = "", o.value = -1));
|
|
2971
|
+
}), re(x, (C) => {
|
|
2972
|
+
!i.value || H.value || (C && (G.value = !0), c.value = !C);
|
|
2973
|
+
}), re(G, (C) => {
|
|
2974
|
+
if (!e.hideSelected && C && k.value.length && c.value) {
|
|
2975
|
+
const Q = p.value.findIndex((Z) => k.value.some((ae) => Z.value === ae.value));
|
|
2971
2976
|
at && window.requestAnimationFrame(() => {
|
|
2972
|
-
|
|
2977
|
+
Q >= 0 && d.value?.scrollToIndex(Q);
|
|
2973
2978
|
});
|
|
2974
2979
|
}
|
|
2975
|
-
|
|
2976
|
-
}), re(m, (
|
|
2977
|
-
|
|
2978
|
-
}),
|
|
2979
|
-
const
|
|
2980
|
-
return f(Ke,
|
|
2980
|
+
C && (r.value = null);
|
|
2981
|
+
}), re(m, (C, Q) => {
|
|
2982
|
+
G.value || i.value && !Q.length && C.length && (G.value = !0);
|
|
2983
|
+
}), ve(() => {
|
|
2984
|
+
const C = !!(!e.hideNoData || p.value.length || t["prepend-item"] || t["append-item"] || t["no-data"]), Q = k.value.length > 0, Z = Ke.filterProps(e);
|
|
2985
|
+
return f(Ke, R({
|
|
2981
2986
|
ref: l
|
|
2982
|
-
},
|
|
2983
|
-
modelValue:
|
|
2984
|
-
"onUpdate:modelValue": [(ae) =>
|
|
2987
|
+
}, Z, {
|
|
2988
|
+
modelValue: x.value,
|
|
2989
|
+
"onUpdate:modelValue": [(ae) => x.value = ae, me],
|
|
2985
2990
|
focused: i.value,
|
|
2986
2991
|
"onUpdate:focused": (ae) => i.value = ae,
|
|
2987
2992
|
validationValue: k.externalValue,
|
|
2988
|
-
counterValue:
|
|
2989
|
-
dirty:
|
|
2990
|
-
onChange:
|
|
2993
|
+
counterValue: B.value,
|
|
2994
|
+
dirty: Q,
|
|
2995
|
+
onChange: ue,
|
|
2991
2996
|
class: ["v-autocomplete", `v-autocomplete--${e.multiple ? "multiple" : "single"}`, {
|
|
2992
|
-
"v-autocomplete--active-menu":
|
|
2997
|
+
"v-autocomplete--active-menu": G.value,
|
|
2993
2998
|
"v-autocomplete--chips": !!e.chips,
|
|
2994
2999
|
"v-autocomplete--selection-slot": !!q.value,
|
|
2995
3000
|
"v-autocomplete--selecting-index": o.value > -1
|
|
2996
3001
|
}, e.class],
|
|
2997
3002
|
style: e.style,
|
|
2998
3003
|
readonly: F.isReadonly.value,
|
|
2999
|
-
placeholder:
|
|
3004
|
+
placeholder: Q ? void 0 : e.placeholder,
|
|
3000
3005
|
"onClick:clear": v,
|
|
3001
3006
|
"onMousedown:control": P,
|
|
3002
|
-
onKeydown:
|
|
3003
|
-
"aria-expanded":
|
|
3007
|
+
onKeydown: K,
|
|
3008
|
+
"aria-expanded": ne.value,
|
|
3004
3009
|
"aria-controls": D.value
|
|
3005
3010
|
}), {
|
|
3006
3011
|
...t,
|
|
@@ -3008,37 +3013,37 @@ const $a = G({
|
|
|
3008
3013
|
let {
|
|
3009
3014
|
id: Ce
|
|
3010
3015
|
} = ae;
|
|
3011
|
-
return b(
|
|
3012
|
-
id:
|
|
3016
|
+
return b(de, null, [f(Rl, R({
|
|
3017
|
+
id: X.value,
|
|
3013
3018
|
ref: u,
|
|
3014
|
-
modelValue:
|
|
3015
|
-
"onUpdate:modelValue": (he) =>
|
|
3019
|
+
modelValue: G.value,
|
|
3020
|
+
"onUpdate:modelValue": (he) => G.value = he,
|
|
3016
3021
|
activator: "parent",
|
|
3017
3022
|
contentClass: "v-autocomplete__content",
|
|
3018
|
-
disabled:
|
|
3023
|
+
disabled: z.value,
|
|
3019
3024
|
eager: e.eager,
|
|
3020
3025
|
maxHeight: 310,
|
|
3021
3026
|
openOnClick: !1,
|
|
3022
3027
|
closeOnContentClick: !1,
|
|
3023
|
-
onAfterEnter:
|
|
3024
|
-
onAfterLeave:
|
|
3028
|
+
onAfterEnter: ge,
|
|
3029
|
+
onAfterLeave: fe
|
|
3025
3030
|
}, e.menuProps), {
|
|
3026
|
-
default: () => [
|
|
3027
|
-
ref:
|
|
3031
|
+
default: () => [C && f(Yt, R({
|
|
3032
|
+
ref: O,
|
|
3028
3033
|
filterable: !0,
|
|
3029
3034
|
selected: te.value,
|
|
3030
3035
|
selectStrategy: e.multiple ? "independent" : "single-independent",
|
|
3031
3036
|
onMousedown: (he) => he.preventDefault(),
|
|
3032
|
-
onKeydown:
|
|
3033
|
-
onFocusin:
|
|
3034
|
-
onFocusout:
|
|
3037
|
+
onKeydown: $,
|
|
3038
|
+
onFocusin: _e,
|
|
3039
|
+
onFocusout: Y,
|
|
3035
3040
|
tabindex: "-1",
|
|
3036
3041
|
selectable: !!p.value.length,
|
|
3037
3042
|
"aria-live": "polite",
|
|
3038
3043
|
"aria-labelledby": `${Ce.value}-label`,
|
|
3039
3044
|
"aria-multiselectable": e.multiple,
|
|
3040
3045
|
color: e.itemColor ?? e.color
|
|
3041
|
-
},
|
|
3046
|
+
}, S, e.listProps), {
|
|
3042
3047
|
default: () => [t["prepend-item"]?.(), !p.value.length && !e.hideNoData && (t["no-data"]?.() ?? f(it, {
|
|
3043
3048
|
key: "no-data",
|
|
3044
3049
|
title: n(e.noDataText)
|
|
@@ -3054,7 +3059,7 @@ const $a = G({
|
|
|
3054
3059
|
index: Ee,
|
|
3055
3060
|
itemRef: yt
|
|
3056
3061
|
} = he;
|
|
3057
|
-
const et =
|
|
3062
|
+
const et = R(se.props, {
|
|
3058
3063
|
ref: yt,
|
|
3059
3064
|
key: se.value,
|
|
3060
3065
|
active: U.value && se === ee.value ? !0 : void 0,
|
|
@@ -3065,27 +3070,27 @@ const $a = G({
|
|
|
3065
3070
|
return se.type === "divider" ? t.divider?.({
|
|
3066
3071
|
props: se.raw,
|
|
3067
3072
|
index: Ee
|
|
3068
|
-
}) ?? f(Le,
|
|
3073
|
+
}) ?? f(Le, R(se.props, {
|
|
3069
3074
|
key: `divider-${Ee}`
|
|
3070
3075
|
}), null) : se.type === "subheader" ? t.subheader?.({
|
|
3071
3076
|
props: se.raw,
|
|
3072
3077
|
index: Ee
|
|
3073
|
-
}) ?? f(Ml,
|
|
3078
|
+
}) ?? f(Ml, R(se.props, {
|
|
3074
3079
|
key: `subheader-${Ee}`
|
|
3075
3080
|
}), null) : t.item?.({
|
|
3076
3081
|
item: se,
|
|
3077
3082
|
index: Ee,
|
|
3078
3083
|
props: et
|
|
3079
|
-
}) ?? f(it,
|
|
3084
|
+
}) ?? f(it, R(et, {
|
|
3080
3085
|
role: "option"
|
|
3081
3086
|
}), {
|
|
3082
3087
|
prepend: (tt) => {
|
|
3083
3088
|
let {
|
|
3084
|
-
isSelected:
|
|
3089
|
+
isSelected: Ae
|
|
3085
3090
|
} = tt;
|
|
3086
|
-
return b(
|
|
3091
|
+
return b(de, null, [e.multiple && !e.hideSelected ? f(Jl, {
|
|
3087
3092
|
key: se.value,
|
|
3088
|
-
modelValue:
|
|
3093
|
+
modelValue: Ae,
|
|
3089
3094
|
ripple: !1,
|
|
3090
3095
|
tabindex: "-1",
|
|
3091
3096
|
"aria-hidden": !0,
|
|
@@ -3102,16 +3107,16 @@ const $a = G({
|
|
|
3102
3107
|
}), t["append-item"]?.()]
|
|
3103
3108
|
})]
|
|
3104
3109
|
}), k.value.map((he, se) => {
|
|
3105
|
-
function Ee(
|
|
3106
|
-
|
|
3110
|
+
function Ee(Ae) {
|
|
3111
|
+
Ae.stopPropagation(), Ae.preventDefault(), ye(he, !1);
|
|
3107
3112
|
}
|
|
3108
|
-
const yt =
|
|
3113
|
+
const yt = R(st.filterProps(he.props), {
|
|
3109
3114
|
"onClick:close": Ee,
|
|
3110
|
-
onKeydown(
|
|
3111
|
-
|
|
3115
|
+
onKeydown(Ae) {
|
|
3116
|
+
Ae.key !== "Enter" && Ae.key !== " " || (Ae.preventDefault(), Ae.stopPropagation(), Ee(Ae));
|
|
3112
3117
|
},
|
|
3113
|
-
onMousedown(
|
|
3114
|
-
|
|
3118
|
+
onMousedown(Ae) {
|
|
3119
|
+
Ae.preventDefault(), Ae.stopPropagation();
|
|
3115
3120
|
},
|
|
3116
3121
|
modelValue: !0,
|
|
3117
3122
|
"onUpdate:modelValue": void 0
|
|
@@ -3126,22 +3131,22 @@ const $a = G({
|
|
|
3126
3131
|
if (!(et && !tt))
|
|
3127
3132
|
return b("div", {
|
|
3128
3133
|
key: he.value,
|
|
3129
|
-
class:
|
|
3130
|
-
style:
|
|
3131
|
-
}, [E.value ? t.chip ? f(
|
|
3134
|
+
class: ce(["v-autocomplete__selection", se === o.value && ["v-autocomplete__selection--selected", h.value]]),
|
|
3135
|
+
style: Ie(se === o.value ? I.value : {})
|
|
3136
|
+
}, [E.value ? t.chip ? f(Fe, {
|
|
3132
3137
|
key: "chip-defaults",
|
|
3133
3138
|
defaults: {
|
|
3134
3139
|
VChip: {
|
|
3135
|
-
closable:
|
|
3140
|
+
closable: M.value,
|
|
3136
3141
|
size: "small",
|
|
3137
3142
|
text: he.title
|
|
3138
3143
|
}
|
|
3139
3144
|
}
|
|
3140
3145
|
}, {
|
|
3141
3146
|
default: () => [tt]
|
|
3142
|
-
}) : f(st,
|
|
3147
|
+
}) : f(st, R({
|
|
3143
3148
|
key: "chip",
|
|
3144
|
-
closable:
|
|
3149
|
+
closable: M.value,
|
|
3145
3150
|
size: "small",
|
|
3146
3151
|
text: he.title,
|
|
3147
3152
|
disabled: he.props.disabled
|
|
@@ -3155,7 +3160,7 @@ const $a = G({
|
|
|
3155
3160
|
"append-inner": function() {
|
|
3156
3161
|
for (var ae = arguments.length, Ce = new Array(ae), he = 0; he < ae; he++)
|
|
3157
3162
|
Ce[he] = arguments[he];
|
|
3158
|
-
return b(
|
|
3163
|
+
return b(de, null, [t["append-inner"]?.(...Ce), e.menuIcon ? f(Se, {
|
|
3159
3164
|
class: "v-autocomplete__menu-icon",
|
|
3160
3165
|
color: l.value?.fieldIconColor,
|
|
3161
3166
|
icon: e.menuIcon,
|
|
@@ -3173,13 +3178,13 @@ const $a = G({
|
|
|
3173
3178
|
}), gt({
|
|
3174
3179
|
isFocused: i,
|
|
3175
3180
|
isPristine: c,
|
|
3176
|
-
menu:
|
|
3177
|
-
search:
|
|
3178
|
-
filteredItems:
|
|
3181
|
+
menu: G,
|
|
3182
|
+
search: x,
|
|
3183
|
+
filteredItems: L,
|
|
3179
3184
|
select: ye
|
|
3180
3185
|
}, l);
|
|
3181
3186
|
}
|
|
3182
|
-
}), La =
|
|
3187
|
+
}), La = j({
|
|
3183
3188
|
bordered: Boolean,
|
|
3184
3189
|
color: String,
|
|
3185
3190
|
content: [Number, String],
|
|
@@ -3210,7 +3215,7 @@ const $a = G({
|
|
|
3210
3215
|
transition: "scale-rotate-transition"
|
|
3211
3216
|
}),
|
|
3212
3217
|
...ft()
|
|
3213
|
-
}, "VBadge"), Ha =
|
|
3218
|
+
}, "VBadge"), Ha = oe()({
|
|
3214
3219
|
name: "VBadge",
|
|
3215
3220
|
inheritAttrs: !1,
|
|
3216
3221
|
props: La(),
|
|
@@ -3232,9 +3237,9 @@ const $a = G({
|
|
|
3232
3237
|
} = qt(e, !0, (r) => (e.floating ? e.dot ? 2 : 4 : e.dot ? 8 : 12) + (["top", "bottom"].includes(r) ? Number(e.offsetY ?? 0) : ["left", "right"].includes(r) ? Number(e.offsetX ?? 0) : 0)), {
|
|
3233
3238
|
dimensionStyles: o
|
|
3234
3239
|
} = vt(e);
|
|
3235
|
-
return
|
|
3240
|
+
return ve(() => {
|
|
3236
3241
|
const r = Number(e.content), m = !e.max || isNaN(r) ? e.content : r <= Number(e.max) ? r : `${e.max}+`, [g, y] = Bn(a.attrs, ["aria-atomic", "aria-label", "aria-live", "role", "title"]);
|
|
3237
|
-
return f(e.tag,
|
|
3242
|
+
return f(e.tag, R({
|
|
3238
3243
|
class: ["v-badge", {
|
|
3239
3244
|
"v-badge--bordered": e.bordered,
|
|
3240
3245
|
"v-badge--dot": e.dot,
|
|
@@ -3249,7 +3254,7 @@ const $a = G({
|
|
|
3249
3254
|
}, [a.slots.default?.(), f(Xt, {
|
|
3250
3255
|
transition: e.transition
|
|
3251
3256
|
}, {
|
|
3252
|
-
default: () => [He(b("span",
|
|
3257
|
+
default: () => [He(b("span", R({
|
|
3253
3258
|
class: ["v-badge__badge", u.value, t.value, l.value, c.value],
|
|
3254
3259
|
style: [n.value, s.value, o.value, e.inline ? {} : d.value],
|
|
3255
3260
|
"aria-atomic": "true",
|
|
@@ -3263,7 +3268,7 @@ const $a = G({
|
|
|
3263
3268
|
});
|
|
3264
3269
|
}), {};
|
|
3265
3270
|
}
|
|
3266
|
-
}), za =
|
|
3271
|
+
}), za = j({
|
|
3267
3272
|
fullscreen: Boolean,
|
|
3268
3273
|
scrollable: Boolean,
|
|
3269
3274
|
...Ge(On({
|
|
@@ -3276,7 +3281,7 @@ const $a = G({
|
|
|
3276
3281
|
zIndex: 2400,
|
|
3277
3282
|
retainFocus: !0
|
|
3278
3283
|
}), ["disableInitialFocus"])
|
|
3279
|
-
}, "VDialog"), on =
|
|
3284
|
+
}, "VDialog"), on = oe()({
|
|
3280
3285
|
name: "VDialog",
|
|
3281
3286
|
props: za(),
|
|
3282
3287
|
emits: {
|
|
@@ -3304,13 +3309,13 @@ const $a = G({
|
|
|
3304
3309
|
d || (await Ve(), c.value.activatorEl?.focus({
|
|
3305
3310
|
preventScroll: !0
|
|
3306
3311
|
}));
|
|
3307
|
-
}),
|
|
3308
|
-
const d = al.filterProps(e), o =
|
|
3312
|
+
}), ve(() => {
|
|
3313
|
+
const d = al.filterProps(e), o = R({
|
|
3309
3314
|
"aria-haspopup": "dialog"
|
|
3310
|
-
}, e.activatorProps), r =
|
|
3315
|
+
}, e.activatorProps), r = R({
|
|
3311
3316
|
tabindex: -1
|
|
3312
3317
|
}, e.contentProps);
|
|
3313
|
-
return f(al,
|
|
3318
|
+
return f(al, R({
|
|
3314
3319
|
ref: c,
|
|
3315
3320
|
class: ["v-dialog", {
|
|
3316
3321
|
"v-dialog--fullscreen": e.fullscreen,
|
|
@@ -3335,7 +3340,7 @@ const $a = G({
|
|
|
3335
3340
|
default: function() {
|
|
3336
3341
|
for (var m = arguments.length, g = new Array(m), y = 0; y < m; y++)
|
|
3337
3342
|
g[y] = arguments[y];
|
|
3338
|
-
return f(
|
|
3343
|
+
return f(Fe, {
|
|
3339
3344
|
root: "VDialog"
|
|
3340
3345
|
}, {
|
|
3341
3346
|
default: () => [n.default?.(...g)]
|
|
@@ -3344,10 +3349,10 @@ const $a = G({
|
|
|
3344
3349
|
});
|
|
3345
3350
|
}), gt({}, c);
|
|
3346
3351
|
}
|
|
3347
|
-
}), Ua =
|
|
3352
|
+
}), Ua = j({
|
|
3348
3353
|
...pe(),
|
|
3349
3354
|
...Be()
|
|
3350
|
-
}, "VCardActions"), un =
|
|
3355
|
+
}, "VCardActions"), un = oe()({
|
|
3351
3356
|
name: "VCardActions",
|
|
3352
3357
|
props: Ua(),
|
|
3353
3358
|
setup(e, a) {
|
|
@@ -3359,30 +3364,30 @@ const $a = G({
|
|
|
3359
3364
|
slim: !0,
|
|
3360
3365
|
variant: "text"
|
|
3361
3366
|
}
|
|
3362
|
-
}),
|
|
3363
|
-
class:
|
|
3364
|
-
style:
|
|
3367
|
+
}), ve(() => f(e.tag, {
|
|
3368
|
+
class: ce(["v-card-actions", e.class]),
|
|
3369
|
+
style: Ie(e.style)
|
|
3365
3370
|
}, t)), {};
|
|
3366
3371
|
}
|
|
3367
|
-
}), Ka =
|
|
3372
|
+
}), Ka = j({
|
|
3368
3373
|
opacity: [Number, String],
|
|
3369
3374
|
...pe(),
|
|
3370
3375
|
...Be()
|
|
3371
|
-
}, "VCardSubtitle"), ja =
|
|
3376
|
+
}, "VCardSubtitle"), ja = oe()({
|
|
3372
3377
|
name: "VCardSubtitle",
|
|
3373
3378
|
props: Ka(),
|
|
3374
3379
|
setup(e, a) {
|
|
3375
3380
|
let {
|
|
3376
3381
|
slots: t
|
|
3377
3382
|
} = a;
|
|
3378
|
-
return
|
|
3379
|
-
class:
|
|
3380
|
-
style:
|
|
3383
|
+
return ve(() => f(e.tag, {
|
|
3384
|
+
class: ce(["v-card-subtitle", e.class]),
|
|
3385
|
+
style: Ie([{
|
|
3381
3386
|
"--v-card-subtitle-opacity": e.opacity
|
|
3382
3387
|
}, e.style])
|
|
3383
3388
|
}, t)), {};
|
|
3384
3389
|
}
|
|
3385
|
-
}), Zt = Rn("v-card-title"), Ga =
|
|
3390
|
+
}), Zt = Rn("v-card-title"), Ga = j({
|
|
3386
3391
|
appendAvatar: String,
|
|
3387
3392
|
appendIcon: be,
|
|
3388
3393
|
prependAvatar: String,
|
|
@@ -3398,23 +3403,23 @@ const $a = G({
|
|
|
3398
3403
|
...pe(),
|
|
3399
3404
|
...dt(),
|
|
3400
3405
|
...Be()
|
|
3401
|
-
}, "VCardItem"), Wa =
|
|
3406
|
+
}, "VCardItem"), Wa = oe()({
|
|
3402
3407
|
name: "VCardItem",
|
|
3403
3408
|
props: Ga(),
|
|
3404
3409
|
setup(e, a) {
|
|
3405
3410
|
let {
|
|
3406
3411
|
slots: t
|
|
3407
3412
|
} = a;
|
|
3408
|
-
return
|
|
3413
|
+
return ve(() => {
|
|
3409
3414
|
const n = !!(e.prependAvatar || e.prependIcon), l = !!(n || t.prepend), i = !!(e.appendAvatar || e.appendIcon), c = !!(i || t.append), s = !!(e.title != null || t.title), u = !!(e.subtitle != null || t.subtitle);
|
|
3410
3415
|
return f(e.tag, {
|
|
3411
|
-
class:
|
|
3412
|
-
style:
|
|
3416
|
+
class: ce(["v-card-item", e.class]),
|
|
3417
|
+
style: Ie(e.style)
|
|
3413
3418
|
}, {
|
|
3414
3419
|
default: () => [l && b("div", {
|
|
3415
3420
|
key: "prepend",
|
|
3416
3421
|
class: "v-card-item__prepend"
|
|
3417
|
-
}, [t.prepend ? f(
|
|
3422
|
+
}, [t.prepend ? f(Fe, {
|
|
3418
3423
|
key: "prepend-defaults",
|
|
3419
3424
|
disabled: !n,
|
|
3420
3425
|
defaults: {
|
|
@@ -3427,7 +3432,7 @@ const $a = G({
|
|
|
3427
3432
|
icon: e.prependIcon
|
|
3428
3433
|
}
|
|
3429
3434
|
}
|
|
3430
|
-
}, t.prepend) : b(
|
|
3435
|
+
}, t.prepend) : b(de, null, [e.prependAvatar && f(Xe, {
|
|
3431
3436
|
key: "prepend-avatar",
|
|
3432
3437
|
density: e.density,
|
|
3433
3438
|
image: e.prependAvatar
|
|
@@ -3448,7 +3453,7 @@ const $a = G({
|
|
|
3448
3453
|
}), t.default?.()]), c && b("div", {
|
|
3449
3454
|
key: "append",
|
|
3450
3455
|
class: "v-card-item__append"
|
|
3451
|
-
}, [t.append ? f(
|
|
3456
|
+
}, [t.append ? f(Fe, {
|
|
3452
3457
|
key: "append-defaults",
|
|
3453
3458
|
disabled: !i,
|
|
3454
3459
|
defaults: {
|
|
@@ -3461,7 +3466,7 @@ const $a = G({
|
|
|
3461
3466
|
icon: e.appendIcon
|
|
3462
3467
|
}
|
|
3463
3468
|
}
|
|
3464
|
-
}, t.append) : b(
|
|
3469
|
+
}, t.append) : b(de, null, [e.appendIcon && f(Se, {
|
|
3465
3470
|
key: "append-icon",
|
|
3466
3471
|
density: e.density,
|
|
3467
3472
|
icon: e.appendIcon
|
|
@@ -3473,25 +3478,25 @@ const $a = G({
|
|
|
3473
3478
|
});
|
|
3474
3479
|
}), {};
|
|
3475
3480
|
}
|
|
3476
|
-
}), qa =
|
|
3481
|
+
}), qa = j({
|
|
3477
3482
|
opacity: [Number, String],
|
|
3478
3483
|
...pe(),
|
|
3479
3484
|
...Be()
|
|
3480
|
-
}, "VCardText"), el =
|
|
3485
|
+
}, "VCardText"), el = oe()({
|
|
3481
3486
|
name: "VCardText",
|
|
3482
3487
|
props: qa(),
|
|
3483
3488
|
setup(e, a) {
|
|
3484
3489
|
let {
|
|
3485
3490
|
slots: t
|
|
3486
3491
|
} = a;
|
|
3487
|
-
return
|
|
3488
|
-
class:
|
|
3489
|
-
style:
|
|
3492
|
+
return ve(() => f(e.tag, {
|
|
3493
|
+
class: ce(["v-card-text", e.class]),
|
|
3494
|
+
style: Ie([{
|
|
3490
3495
|
"--v-card-text-opacity": e.opacity
|
|
3491
3496
|
}, e.style])
|
|
3492
3497
|
}, t)), {};
|
|
3493
3498
|
}
|
|
3494
|
-
}), Ja =
|
|
3499
|
+
}), Ja = j({
|
|
3495
3500
|
appendAvatar: String,
|
|
3496
3501
|
appendIcon: be,
|
|
3497
3502
|
disabled: Boolean,
|
|
@@ -3535,7 +3540,7 @@ const $a = G({
|
|
|
3535
3540
|
...Ut({
|
|
3536
3541
|
variant: "elevated"
|
|
3537
3542
|
})
|
|
3538
|
-
}, "VCard"), sn =
|
|
3543
|
+
}, "VCard"), sn = oe()({
|
|
3539
3544
|
name: "VCard",
|
|
3540
3545
|
directives: {
|
|
3541
3546
|
vRipple: Je
|
|
@@ -3568,14 +3573,14 @@ const $a = G({
|
|
|
3568
3573
|
positionClasses: y
|
|
3569
3574
|
} = xl(e), {
|
|
3570
3575
|
roundedClasses: h
|
|
3571
|
-
} = rt(e),
|
|
3572
|
-
return re(() => e.loading, (
|
|
3573
|
-
_.value = !
|
|
3576
|
+
} = rt(e), I = pl(e, t), _ = J(void 0);
|
|
3577
|
+
return re(() => e.loading, (x, k) => {
|
|
3578
|
+
_.value = !x && typeof k == "string" ? k : typeof x == "boolean" ? void 0 : x;
|
|
3574
3579
|
}, {
|
|
3575
3580
|
immediate: !0
|
|
3576
|
-
}),
|
|
3577
|
-
const
|
|
3578
|
-
return He(f(
|
|
3581
|
+
}), ve(() => {
|
|
3582
|
+
const x = e.link !== !1 && I.isLink.value, k = !e.disabled && e.link !== !1 && (e.link || I.isClickable.value), B = x ? "a" : e.tag, F = !!(n.title || e.title != null), L = !!(n.subtitle || e.subtitle != null), A = F || L, p = !!(n.append || e.appendAvatar || e.appendIcon), M = !!(n.prepend || e.prependAvatar || e.prependIcon), E = !!(n.image || e.image), q = A || M || p, te = !!(n.text || e.text != null);
|
|
3583
|
+
return He(f(B, R(I.linkProps, {
|
|
3579
3584
|
class: ["v-card", {
|
|
3580
3585
|
"v-card--disabled": e.disabled,
|
|
3581
3586
|
"v-card--flat": e.flat,
|
|
@@ -3583,13 +3588,13 @@ const $a = G({
|
|
|
3583
3588
|
"v-card--link": k
|
|
3584
3589
|
}, l.value, i.value, c.value, d.value, r.value, m.value, y.value, h.value, u.value, e.class],
|
|
3585
3590
|
style: [s.value, o.value, g.value, e.style],
|
|
3586
|
-
onClick: k &&
|
|
3591
|
+
onClick: k && I.navigate,
|
|
3587
3592
|
tabindex: e.disabled ? -1 : void 0
|
|
3588
3593
|
}), {
|
|
3589
3594
|
default: () => [E && b("div", {
|
|
3590
3595
|
key: "image",
|
|
3591
3596
|
class: "v-card__image"
|
|
3592
|
-
}, [n.image ? f(
|
|
3597
|
+
}, [n.image ? f(Fe, {
|
|
3593
3598
|
key: "image-defaults",
|
|
3594
3599
|
disabled: !e.image,
|
|
3595
3600
|
defaults: {
|
|
@@ -3655,7 +3660,7 @@ function Qa(e) {
|
|
|
3655
3660
|
holdStop: i
|
|
3656
3661
|
};
|
|
3657
3662
|
}
|
|
3658
|
-
const Za =
|
|
3663
|
+
const Za = j({
|
|
3659
3664
|
controlVariant: {
|
|
3660
3665
|
type: String,
|
|
3661
3666
|
default: "default"
|
|
@@ -3691,7 +3696,7 @@ const Za = G({
|
|
|
3691
3696
|
validator: (e) => !e || e.length === 1
|
|
3692
3697
|
},
|
|
3693
3698
|
...Ge(Tt(), ["modelValue", "validationValue"])
|
|
3694
|
-
}, "VNumberInput"), eo =
|
|
3699
|
+
}, "VNumberInput"), eo = oe()({
|
|
3695
3700
|
name: "VNumberInput",
|
|
3696
3701
|
props: {
|
|
3697
3702
|
...Za()
|
|
@@ -3709,18 +3714,18 @@ const Za = G({
|
|
|
3709
3714
|
holdStop: i
|
|
3710
3715
|
} = Qa({
|
|
3711
3716
|
toggleUpDown: q
|
|
3712
|
-
}), c = Dt(e), s =
|
|
3717
|
+
}), c = Dt(e), s = w(() => c.isDisabled.value || c.isReadonly.value), u = J(e.focused), {
|
|
3713
3718
|
decimalSeparator: d
|
|
3714
|
-
} = Ze(), o =
|
|
3719
|
+
} = Ze(), o = w(() => e.decimalSeparator?.[0] || d.value);
|
|
3715
3720
|
function r(v) {
|
|
3716
3721
|
let P = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : e.precision, V = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0;
|
|
3717
|
-
const
|
|
3722
|
+
const $ = P == null ? String(v) : v.toFixed(P);
|
|
3718
3723
|
if (u.value && V)
|
|
3719
|
-
return Number(
|
|
3724
|
+
return Number($).toString().replace(".", o.value);
|
|
3720
3725
|
if (e.minFractionDigits === null || P !== null && P < e.minFractionDigits)
|
|
3721
|
-
return
|
|
3722
|
-
let [
|
|
3723
|
-
return
|
|
3726
|
+
return $.replace(".", o.value);
|
|
3727
|
+
let [K, ue] = $.split(".");
|
|
3728
|
+
return ue = (ue ?? "").padEnd(e.minFractionDigits, "0").replace(new RegExp(`(?<=\\d{${e.minFractionDigits}})0+$`, "g"), ""), [K, ue].filter(Boolean).join(o.value);
|
|
3724
3729
|
}
|
|
3725
3730
|
const m = we(e, "modelValue", null, (v) => v ?? null, (v) => v == null ? v ?? null : Me(Number(v), e.min, e.max)), g = J(null), y = J(null);
|
|
3726
3731
|
re(m, (v) => {
|
|
@@ -3728,7 +3733,7 @@ const Za = G({
|
|
|
3728
3733
|
}, {
|
|
3729
3734
|
immediate: !0
|
|
3730
3735
|
});
|
|
3731
|
-
const h =
|
|
3736
|
+
const h = w({
|
|
3732
3737
|
get: () => g.value,
|
|
3733
3738
|
set(v) {
|
|
3734
3739
|
if (v === null || v === "") {
|
|
@@ -3738,27 +3743,27 @@ const Za = G({
|
|
|
3738
3743
|
const P = Number(v.replace(o.value, "."));
|
|
3739
3744
|
isNaN(P) || (g.value = v, y.value = P, P <= e.max && P >= e.min && (m.value = P));
|
|
3740
3745
|
}
|
|
3741
|
-
}),
|
|
3746
|
+
}), I = w(() => {
|
|
3742
3747
|
if (y.value === null) return !1;
|
|
3743
3748
|
const v = Number(g.value?.replace(o.value, "."));
|
|
3744
3749
|
return v !== Me(v, e.min, e.max);
|
|
3745
|
-
}), _ =
|
|
3750
|
+
}), _ = w(() => s.value ? !1 : (m.value ?? 0) + e.step <= e.max), x = w(() => s.value ? !1 : (m.value ?? 0) - e.step >= e.min), k = w(() => e.hideInput ? "stacked" : e.controlVariant), B = T(() => k.value === "split" ? "$plus" : "$collapse"), F = T(() => k.value === "split" ? "$minus" : "$expand"), L = T(() => k.value === "split" ? "default" : "small"), A = T(() => k.value === "stacked" ? "auto" : "100%"), p = {
|
|
3746
3751
|
props: {
|
|
3747
3752
|
onClick: U,
|
|
3748
|
-
onPointerup:
|
|
3749
|
-
onPointerdown:
|
|
3750
|
-
onPointercancel:
|
|
3753
|
+
onPointerup: z,
|
|
3754
|
+
onPointerdown: ie,
|
|
3755
|
+
onPointercancel: z
|
|
3751
3756
|
}
|
|
3752
|
-
},
|
|
3757
|
+
}, M = {
|
|
3753
3758
|
props: {
|
|
3754
3759
|
onClick: U,
|
|
3755
|
-
onPointerup:
|
|
3756
|
-
onPointerdown:
|
|
3757
|
-
onPointercancel:
|
|
3760
|
+
onPointerup: z,
|
|
3761
|
+
onPointerdown: G,
|
|
3762
|
+
onPointercancel: z
|
|
3758
3763
|
}
|
|
3759
3764
|
};
|
|
3760
|
-
re(() => e.precision, () =>
|
|
3761
|
-
|
|
3765
|
+
re(() => e.precision, () => ne()), re(() => e.minFractionDigits, () => ne()), Ye(() => {
|
|
3766
|
+
X();
|
|
3762
3767
|
});
|
|
3763
3768
|
function E(v) {
|
|
3764
3769
|
if (v == null) return 0;
|
|
@@ -3773,45 +3778,45 @@ const Za = G({
|
|
|
3773
3778
|
return;
|
|
3774
3779
|
}
|
|
3775
3780
|
let P = Math.max(E(m.value), E(e.step));
|
|
3776
|
-
e.precision != null && (P = Math.max(P, e.precision)), v ? _.value && (h.value = r(m.value + e.step, P)) :
|
|
3781
|
+
e.precision != null && (P = Math.max(P, e.precision)), v ? _.value && (h.value = r(m.value + e.step, P)) : x.value && (h.value = r(m.value - e.step, P));
|
|
3777
3782
|
}
|
|
3778
3783
|
function te(v) {
|
|
3779
3784
|
if (!v.data) return;
|
|
3780
3785
|
const P = v.target, {
|
|
3781
3786
|
value: V,
|
|
3782
|
-
selectionStart:
|
|
3783
|
-
selectionEnd:
|
|
3784
|
-
} = P ?? {},
|
|
3785
|
-
if (new RegExp(`^-?\\d*${Nn(o.value)}?\\d*$`).test(
|
|
3786
|
-
if (
|
|
3787
|
-
v.preventDefault(), P.value =
|
|
3788
|
-
const
|
|
3789
|
-
P.setSelectionRange(
|
|
3787
|
+
selectionStart: $,
|
|
3788
|
+
selectionEnd: K
|
|
3789
|
+
} = P ?? {}, ue = V ? V.slice(0, $) + v.data + V.slice(K) : v.data, ge = $n(ue, e.precision, o.value);
|
|
3790
|
+
if (new RegExp(`^-?\\d*${Nn(o.value)}?\\d*$`).test(ue) || (v.preventDefault(), P.value = ge, Ve(() => h.value = ge)), e.precision != null) {
|
|
3791
|
+
if (ue.split(o.value)[1]?.length > e.precision) {
|
|
3792
|
+
v.preventDefault(), P.value = ge, Ve(() => h.value = ge);
|
|
3793
|
+
const fe = ($ ?? 0) + v.data.length;
|
|
3794
|
+
P.setSelectionRange(fe, fe);
|
|
3790
3795
|
}
|
|
3791
|
-
e.precision === 0 &&
|
|
3796
|
+
e.precision === 0 && ue.endsWith(o.value) && (v.preventDefault(), P.value = ge, Ve(() => h.value = ge));
|
|
3792
3797
|
}
|
|
3793
3798
|
}
|
|
3794
3799
|
async function ee(v) {
|
|
3795
|
-
["Enter", "ArrowLeft", "ArrowRight", "Backspace", "Delete", "Tab"].includes(v.key) || v.ctrlKey || ["ArrowDown", "ArrowUp"].includes(v.key) && (v.preventDefault(), v.stopPropagation(),
|
|
3800
|
+
["Enter", "ArrowLeft", "ArrowRight", "Backspace", "Delete", "Tab"].includes(v.key) || v.ctrlKey || ["ArrowDown", "ArrowUp"].includes(v.key) && (v.preventDefault(), v.stopPropagation(), X(), await Ve(), v.key === "ArrowDown" ? q(!1) : q());
|
|
3796
3801
|
}
|
|
3797
3802
|
function U(v) {
|
|
3798
3803
|
v.stopPropagation();
|
|
3799
3804
|
}
|
|
3800
|
-
function
|
|
3805
|
+
function z(v) {
|
|
3801
3806
|
v.currentTarget?.releasePointerCapture(v.pointerId), v.preventDefault(), i();
|
|
3802
3807
|
}
|
|
3803
|
-
function
|
|
3808
|
+
function ie(v) {
|
|
3804
3809
|
v.currentTarget?.setPointerCapture(v.pointerId), v.preventDefault(), v.stopPropagation(), l("up");
|
|
3805
3810
|
}
|
|
3806
|
-
function
|
|
3811
|
+
function G(v) {
|
|
3807
3812
|
v.currentTarget?.setPointerCapture(v.pointerId), v.preventDefault(), v.stopPropagation(), l("down");
|
|
3808
3813
|
}
|
|
3809
|
-
function
|
|
3814
|
+
function X() {
|
|
3810
3815
|
if (s.value || !n.value) return;
|
|
3811
3816
|
const v = n.value.value, P = Number(v.replace(o.value, "."));
|
|
3812
3817
|
v && !isNaN(P) ? h.value = r(Me(P, e.min, e.max)) : h.value = null;
|
|
3813
3818
|
}
|
|
3814
|
-
function
|
|
3819
|
+
function ne() {
|
|
3815
3820
|
s.value || (h.value = m.value !== null && !isNaN(m.value) ? r(m.value, e.precision, !1) : null);
|
|
3816
3821
|
}
|
|
3817
3822
|
function D() {
|
|
@@ -3823,27 +3828,27 @@ const Za = G({
|
|
|
3823
3828
|
h.value = m.value.toString().replace(".", o.value);
|
|
3824
3829
|
}
|
|
3825
3830
|
}
|
|
3826
|
-
function
|
|
3831
|
+
function O() {
|
|
3827
3832
|
D();
|
|
3828
3833
|
}
|
|
3829
|
-
function
|
|
3830
|
-
|
|
3834
|
+
function S() {
|
|
3835
|
+
X();
|
|
3831
3836
|
}
|
|
3832
|
-
return
|
|
3837
|
+
return ve(() => {
|
|
3833
3838
|
const {
|
|
3834
3839
|
modelValue: v,
|
|
3835
3840
|
type: P,
|
|
3836
3841
|
...V
|
|
3837
3842
|
} = Ke.filterProps(e);
|
|
3838
|
-
function
|
|
3839
|
-
return t.increment ? f(
|
|
3843
|
+
function $() {
|
|
3844
|
+
return t.increment ? f(Fe, {
|
|
3840
3845
|
key: "increment-defaults",
|
|
3841
3846
|
defaults: {
|
|
3842
3847
|
VBtn: {
|
|
3843
3848
|
disabled: !_.value,
|
|
3844
3849
|
height: A.value,
|
|
3845
|
-
size:
|
|
3846
|
-
icon:
|
|
3850
|
+
size: L.value,
|
|
3851
|
+
icon: B.value,
|
|
3847
3852
|
variant: "text"
|
|
3848
3853
|
}
|
|
3849
3854
|
}
|
|
@@ -3854,80 +3859,80 @@ const Za = G({
|
|
|
3854
3859
|
"data-testid": "increment",
|
|
3855
3860
|
disabled: !_.value,
|
|
3856
3861
|
height: A.value,
|
|
3857
|
-
icon:
|
|
3862
|
+
icon: B.value,
|
|
3858
3863
|
key: "increment-btn",
|
|
3859
3864
|
onClick: U,
|
|
3860
|
-
onPointerdown:
|
|
3861
|
-
onPointerup:
|
|
3862
|
-
onPointercancel:
|
|
3863
|
-
size:
|
|
3865
|
+
onPointerdown: ie,
|
|
3866
|
+
onPointerup: z,
|
|
3867
|
+
onPointercancel: z,
|
|
3868
|
+
size: L.value,
|
|
3864
3869
|
variant: "text",
|
|
3865
3870
|
tabindex: "-1"
|
|
3866
3871
|
}, null);
|
|
3867
3872
|
}
|
|
3868
|
-
function
|
|
3869
|
-
return t.decrement ? f(
|
|
3873
|
+
function K() {
|
|
3874
|
+
return t.decrement ? f(Fe, {
|
|
3870
3875
|
key: "decrement-defaults",
|
|
3871
3876
|
defaults: {
|
|
3872
3877
|
VBtn: {
|
|
3873
|
-
disabled: !
|
|
3878
|
+
disabled: !x.value,
|
|
3874
3879
|
height: A.value,
|
|
3875
|
-
size:
|
|
3880
|
+
size: L.value,
|
|
3876
3881
|
icon: F.value,
|
|
3877
3882
|
variant: "text"
|
|
3878
3883
|
}
|
|
3879
3884
|
}
|
|
3880
3885
|
}, {
|
|
3881
|
-
default: () => [t.decrement(
|
|
3886
|
+
default: () => [t.decrement(M)]
|
|
3882
3887
|
}) : f(qe, {
|
|
3883
3888
|
"aria-hidden": "true",
|
|
3884
3889
|
"data-testid": "decrement",
|
|
3885
|
-
disabled: !
|
|
3890
|
+
disabled: !x.value,
|
|
3886
3891
|
height: A.value,
|
|
3887
3892
|
icon: F.value,
|
|
3888
3893
|
key: "decrement-btn",
|
|
3889
3894
|
onClick: U,
|
|
3890
|
-
onPointerdown:
|
|
3891
|
-
onPointerup:
|
|
3892
|
-
onPointercancel:
|
|
3893
|
-
size:
|
|
3895
|
+
onPointerdown: G,
|
|
3896
|
+
onPointerup: z,
|
|
3897
|
+
onPointercancel: z,
|
|
3898
|
+
size: L.value,
|
|
3894
3899
|
variant: "text",
|
|
3895
3900
|
tabindex: "-1"
|
|
3896
3901
|
}, null);
|
|
3897
3902
|
}
|
|
3898
|
-
function
|
|
3903
|
+
function ue() {
|
|
3899
3904
|
return b("div", {
|
|
3900
3905
|
class: "v-number-input__control"
|
|
3901
|
-
}, [
|
|
3906
|
+
}, [K(), f(Le, {
|
|
3902
3907
|
vertical: k.value !== "stacked"
|
|
3903
|
-
}, null),
|
|
3908
|
+
}, null), $()]);
|
|
3904
3909
|
}
|
|
3905
|
-
function
|
|
3910
|
+
function ge() {
|
|
3906
3911
|
return !e.hideInput && !e.inset ? f(Le, {
|
|
3907
3912
|
vertical: !0
|
|
3908
3913
|
}, null) : void 0;
|
|
3909
3914
|
}
|
|
3910
|
-
const
|
|
3915
|
+
const fe = k.value === "split" ? b("div", {
|
|
3911
3916
|
class: "v-number-input__control"
|
|
3912
3917
|
}, [f(Le, {
|
|
3913
3918
|
vertical: !0
|
|
3914
|
-
}, null),
|
|
3919
|
+
}, null), $()]) : e.reverse || k.value === "hidden" ? void 0 : b(de, null, [ge(), ue()]), _e = t["append-inner"] || fe, Y = k.value === "split" ? b("div", {
|
|
3915
3920
|
class: "v-number-input__control"
|
|
3916
|
-
}, [
|
|
3921
|
+
}, [K(), f(Le, {
|
|
3917
3922
|
vertical: !0
|
|
3918
|
-
}, null)]) : e.reverse && k.value !== "hidden" ? b(
|
|
3919
|
-
return f(Ke,
|
|
3923
|
+
}, null)]) : e.reverse && k.value !== "hidden" ? b(de, null, [ue(), ge()]) : void 0, me = t["prepend-inner"] || Y;
|
|
3924
|
+
return f(Ke, R({
|
|
3920
3925
|
ref: n
|
|
3921
3926
|
}, V, {
|
|
3922
3927
|
modelValue: h.value,
|
|
3923
|
-
"onUpdate:modelValue": (
|
|
3928
|
+
"onUpdate:modelValue": (H) => h.value = H,
|
|
3924
3929
|
focused: u.value,
|
|
3925
|
-
"onUpdate:focused": (
|
|
3930
|
+
"onUpdate:focused": (H) => u.value = H,
|
|
3926
3931
|
validationValue: m.value,
|
|
3927
|
-
error: e.error ||
|
|
3932
|
+
error: e.error || I.value || void 0,
|
|
3928
3933
|
onBeforeinput: te,
|
|
3929
|
-
onFocus:
|
|
3930
|
-
onBlur:
|
|
3934
|
+
onFocus: O,
|
|
3935
|
+
onBlur: S,
|
|
3931
3936
|
onKeydown: ee,
|
|
3932
3937
|
class: ["v-number-input", {
|
|
3933
3938
|
"v-number-input--default": k.value === "default",
|
|
@@ -3941,15 +3946,15 @@ const Za = G({
|
|
|
3941
3946
|
inputmode: "decimal"
|
|
3942
3947
|
}), {
|
|
3943
3948
|
...t,
|
|
3944
|
-
"append-inner":
|
|
3945
|
-
for (var
|
|
3946
|
-
ye[
|
|
3947
|
-
return b(
|
|
3949
|
+
"append-inner": _e ? function() {
|
|
3950
|
+
for (var H = arguments.length, ye = new Array(H), C = 0; C < H; C++)
|
|
3951
|
+
ye[C] = arguments[C];
|
|
3952
|
+
return b(de, null, [t["append-inner"]?.(...ye), fe]);
|
|
3948
3953
|
} : void 0,
|
|
3949
|
-
"prepend-inner":
|
|
3950
|
-
for (var
|
|
3951
|
-
ye[
|
|
3952
|
-
return b(
|
|
3954
|
+
"prepend-inner": me ? function() {
|
|
3955
|
+
for (var H = arguments.length, ye = new Array(H), C = 0; C < H; C++)
|
|
3956
|
+
ye[C] = arguments[C];
|
|
3957
|
+
return b(de, null, [Y, t["prepend-inner"]?.(...ye)]);
|
|
3953
3958
|
} : void 0
|
|
3954
3959
|
});
|
|
3955
3960
|
}), gt({}, n);
|
|
@@ -3962,17 +3967,17 @@ const Za = G({
|
|
|
3962
3967
|
},
|
|
3963
3968
|
emits: /* @__PURE__ */ Lt(["closeDialog", "save"], ["update:modelValue"]),
|
|
3964
3969
|
setup(e, { emit: a }) {
|
|
3965
|
-
const t =
|
|
3970
|
+
const t = Pe("table_props"), n = Pe("datatablesPluginOptions"), l = Vt(e, "modelValue"), i = a, c = {
|
|
3966
3971
|
textfield: Ke,
|
|
3967
3972
|
select: Na,
|
|
3968
3973
|
number: eo,
|
|
3969
3974
|
datepicker: Te(
|
|
3970
|
-
() => import("./Datepicker-
|
|
3975
|
+
() => import("./Datepicker-CvoUCd6e.js")
|
|
3971
3976
|
),
|
|
3972
3977
|
comparison: Te(
|
|
3973
|
-
() => import("./Comparison-
|
|
3978
|
+
() => import("./Comparison-C4t1CoQN.js")
|
|
3974
3979
|
)
|
|
3975
|
-
}, s =
|
|
3980
|
+
}, s = w(() => t.headers.filter((d) => d.advancedFilter !== !1 && !d.hidden)), u = (d) => d ? typeof d == "string" ? c[d] : d : c.textfield;
|
|
3976
3981
|
return re(
|
|
3977
3982
|
s,
|
|
3978
3983
|
(d) => {
|
|
@@ -3988,12 +3993,12 @@ const Za = G({
|
|
|
3988
3993
|
), Ye(async () => {
|
|
3989
3994
|
await t.options.advancedFilters?.onMounted();
|
|
3990
3995
|
}), (d, o) => (le(), ke(sn, { rounded: "lg" }, {
|
|
3991
|
-
default:
|
|
3996
|
+
default: xe(() => [
|
|
3992
3997
|
f(Zt, { class: "d-flex justify-space-between align-center" }, {
|
|
3993
|
-
default:
|
|
3998
|
+
default: xe(() => [
|
|
3994
3999
|
b("div", to, bt(d.$t("$datatables.advancedFilters")), 1),
|
|
3995
4000
|
f(qe, {
|
|
3996
|
-
icon:
|
|
4001
|
+
icon: N(n).header.icons.close,
|
|
3997
4002
|
variant: "text",
|
|
3998
4003
|
onClick: o[0] || (o[0] = (r) => i("closeDialog"))
|
|
3999
4004
|
}, null, 8, ["icon"])
|
|
@@ -4002,13 +4007,13 @@ const Za = G({
|
|
|
4002
4007
|
}),
|
|
4003
4008
|
f(Le),
|
|
4004
4009
|
f(el, { class: "overflow-auto pt-8" }, {
|
|
4005
|
-
default:
|
|
4006
|
-
(le(!0), ze(
|
|
4010
|
+
default: xe(() => [
|
|
4011
|
+
(le(!0), ze(de, null, Ht(N(s), (r, m) => (le(), ze("div", {
|
|
4007
4012
|
id: `advanced-filter-${r.key}`,
|
|
4008
4013
|
key: `filter-${m}`,
|
|
4009
|
-
class:
|
|
4014
|
+
class: ce(`advanced-filter advanced-filter--${r.key}`)
|
|
4010
4015
|
}, [
|
|
4011
|
-
(le(), ke(Oe(u(r.advancedFilter?.component)),
|
|
4016
|
+
(le(), ke(Oe(u(r.advancedFilter?.component)), R({
|
|
4012
4017
|
modelValue: l.value[r.advancedFilter?.key ?? r.key].value,
|
|
4013
4018
|
"onUpdate:modelValue": (g) => l.value[r.advancedFilter?.key ?? r.key].value = g,
|
|
4014
4019
|
comparison: l.value[r.advancedFilter?.key ?? r.key].comparison,
|
|
@@ -4024,7 +4029,7 @@ const Za = G({
|
|
|
4024
4029
|
}),
|
|
4025
4030
|
f(Le, { class: "mt-2" }),
|
|
4026
4031
|
f(un, { class: "my-2 d-flex justify-end" }, {
|
|
4027
|
-
default:
|
|
4032
|
+
default: xe(() => [
|
|
4028
4033
|
f(qe, {
|
|
4029
4034
|
class: "text-none",
|
|
4030
4035
|
text: d.$t("$datatables.cancel"),
|
|
@@ -4081,7 +4086,7 @@ const ao = {
|
|
|
4081
4086
|
},
|
|
4082
4087
|
emits: ["update:modelValue"],
|
|
4083
4088
|
setup(e) {
|
|
4084
|
-
const a = Pt(), { advancedFiltersState: t } = At(), { setData: n } = a, l = Vt(e, "modelValue"), i = W({}), c =
|
|
4089
|
+
const a = Pt(), { advancedFiltersState: t } = At(), { setData: n } = a, l = Vt(e, "modelValue"), i = W({}), c = Pe("table_props"), s = Pe("busEmits"), u = () => {
|
|
4085
4090
|
const d = Object.entries(i.value).filter(([, o]) => {
|
|
4086
4091
|
const r = o.value;
|
|
4087
4092
|
return Array.isArray(r) || typeof r == "string" ? r.length > 0 : r != null && r !== "";
|
|
@@ -4103,9 +4108,9 @@ const ao = {
|
|
|
4103
4108
|
"max-width": "550",
|
|
4104
4109
|
"retain-focus": !1
|
|
4105
4110
|
}, {
|
|
4106
|
-
default:
|
|
4111
|
+
default: xe(({ isActive: g }) => [
|
|
4107
4112
|
f(r, {
|
|
4108
|
-
modelValue:
|
|
4113
|
+
modelValue: N(i),
|
|
4109
4114
|
"onUpdate:modelValue": o[0] || (o[0] = (y) => pt(i) ? i.value = y : null),
|
|
4110
4115
|
onSave: u,
|
|
4111
4116
|
onCloseDialog: (y) => g.value = !1
|
|
@@ -4113,9 +4118,9 @@ const ao = {
|
|
|
4113
4118
|
]),
|
|
4114
4119
|
_: 1
|
|
4115
4120
|
}, 8, ["modelValue"]),
|
|
4116
|
-
Object.keys(
|
|
4121
|
+
Object.keys(N(t)).length ? (le(), ke(m, {
|
|
4117
4122
|
key: 0,
|
|
4118
|
-
modelValue:
|
|
4123
|
+
modelValue: N(i),
|
|
4119
4124
|
"onUpdate:modelValue": o[2] || (o[2] = (g) => pt(i) ? i.value = g : null),
|
|
4120
4125
|
onSave: u
|
|
4121
4126
|
}, null, 8, ["modelValue"])) : Re("", !0)
|
|
@@ -4124,8 +4129,8 @@ const ao = {
|
|
|
4124
4129
|
}
|
|
4125
4130
|
};
|
|
4126
4131
|
function oo() {
|
|
4127
|
-
const e =
|
|
4128
|
-
return { advancedFiltersItems:
|
|
4132
|
+
const e = Pe("datatablesPluginOptions"), { t: a } = zn(), { advancedFiltersState: t } = At(), n = W(!1), l = w(() => Object.keys(t.value).length);
|
|
4133
|
+
return { advancedFiltersItems: w(() => [
|
|
4129
4134
|
{
|
|
4130
4135
|
title: `${a("$datatables.advancedFilters")}`,
|
|
4131
4136
|
onClick: () => n.value = !0,
|
|
@@ -4140,20 +4145,20 @@ const io = /* @__PURE__ */ fl({
|
|
|
4140
4145
|
return (l, i) => {
|
|
4141
4146
|
const c = ao;
|
|
4142
4147
|
return le(), ze("div", null, [
|
|
4143
|
-
(le(!0), ze(
|
|
4148
|
+
(le(!0), ze(de, null, Ht(N(a), (s, u) => (le(), ke(qe, R({
|
|
4144
4149
|
key: u,
|
|
4145
4150
|
icon: "",
|
|
4146
4151
|
variant: "text",
|
|
4147
|
-
color:
|
|
4152
|
+
color: N(n) ? "primary" : "dark",
|
|
4148
4153
|
density: "comfortable"
|
|
4149
4154
|
}, { ref_for: !0 }, s), {
|
|
4150
|
-
default:
|
|
4151
|
-
|
|
4155
|
+
default: xe(() => [
|
|
4156
|
+
N(n) ? (le(), ke(Ha, {
|
|
4152
4157
|
key: 0,
|
|
4153
4158
|
color: "primary",
|
|
4154
|
-
content:
|
|
4159
|
+
content: N(n)
|
|
4155
4160
|
}, {
|
|
4156
|
-
default:
|
|
4161
|
+
default: xe(() => [
|
|
4157
4162
|
f(Se, {
|
|
4158
4163
|
icon: s.prependIcon
|
|
4159
4164
|
}, null, 8, ["icon"])
|
|
@@ -4167,7 +4172,7 @@ const io = /* @__PURE__ */ fl({
|
|
|
4167
4172
|
_: 2
|
|
4168
4173
|
}, 1040, ["color"]))), 128)),
|
|
4169
4174
|
f(c, {
|
|
4170
|
-
modelValue:
|
|
4175
|
+
modelValue: N(t),
|
|
4171
4176
|
"onUpdate:modelValue": i[0] || (i[0] = (s) => pt(t) ? t.value = s : null)
|
|
4172
4177
|
}, null, 8, ["modelValue"])
|
|
4173
4178
|
]);
|
|
@@ -4182,32 +4187,32 @@ const io = /* @__PURE__ */ fl({
|
|
|
4182
4187
|
responsiveHeader: { type: Boolean }
|
|
4183
4188
|
},
|
|
4184
4189
|
setup(e) {
|
|
4185
|
-
const a = Te(() => import("./Search-
|
|
4190
|
+
const a = Te(() => import("./Search-DCvbaw38.js")), t = Te(() => import("./RefreshTable-03hYqy0d.js")), n = Te(() => import("./Options-DtOz8dqa.js")), l = Te(() => import("./index-DG3Vs3j9.js")), i = Te(() => import("./index-B_fG3b5A.js")), c = Te(() => import("./index-BTwaqzMN.js")), s = Pe("table_props"), u = W(null), d = s.options?.header?.components ?? {};
|
|
4186
4191
|
return (o, r) => {
|
|
4187
4192
|
const m = io;
|
|
4188
4193
|
return le(), ze("div", uo, [
|
|
4189
4194
|
e.responsiveHeader ? Re("", !0) : (le(), ke(m, { key: 0 })),
|
|
4190
|
-
|
|
4195
|
+
N(s).hardFilters.length ? (le(), ke(Oe(N(d).hardFilters ?? N(l)), {
|
|
4191
4196
|
key: 1,
|
|
4192
4197
|
id: "header-hardFilters"
|
|
4193
4198
|
})) : Re("", !0),
|
|
4194
|
-
(le(), ke(Oe(
|
|
4199
|
+
(le(), ke(Oe(N(d).toolbar), { id: "header-toolbar" })),
|
|
4195
4200
|
b("div", so, [
|
|
4196
|
-
(le(), ke(Oe(
|
|
4197
|
-
e.responsiveHeader ? Re("", !0) : (le(), ke(Oe(
|
|
4201
|
+
(le(), ke(Oe(N(d).search ?? N(a)), { id: "header-search" })),
|
|
4202
|
+
e.responsiveHeader ? Re("", !0) : (le(), ke(Oe(N(d).columns ?? N(i)), {
|
|
4198
4203
|
key: 0,
|
|
4199
|
-
"component-refs": { columns:
|
|
4204
|
+
"component-refs": { columns: N(u) }
|
|
4200
4205
|
}, null, 8, ["component-refs"])),
|
|
4201
|
-
e.responsiveHeader ? Re("", !0) : (le(), ke(Oe(
|
|
4202
|
-
e.responsiveHeader ? Re("", !0) : (le(), ke(Oe(
|
|
4203
|
-
(le(), ke(Oe(
|
|
4206
|
+
e.responsiveHeader ? Re("", !0) : (le(), ke(Oe(N(d).download ?? N(c)), { key: 1 })),
|
|
4207
|
+
e.responsiveHeader ? Re("", !0) : (le(), ke(Oe(N(d).refreshTable ?? N(t)), { key: 2 })),
|
|
4208
|
+
(le(), ke(Oe(N(d).options ?? N(n)), { "responsive-header": e.responsiveHeader }, null, 8, ["responsive-header"]))
|
|
4204
4209
|
])
|
|
4205
4210
|
]);
|
|
4206
4211
|
};
|
|
4207
4212
|
}
|
|
4208
4213
|
});
|
|
4209
4214
|
function co(e) {
|
|
4210
|
-
const a = Pt(), { getCurrentTable: t, setTableHash: n, hashString: l } = a, i = W(!1), c = 5, s =
|
|
4215
|
+
const a = Pt(), { getCurrentTable: t, setTableHash: n, hashString: l } = a, i = W(!1), c = 5, s = w(() => t(e.id));
|
|
4211
4216
|
re(
|
|
4212
4217
|
s,
|
|
4213
4218
|
async (g) => {
|
|
@@ -4221,7 +4226,7 @@ function co(e) {
|
|
|
4221
4226
|
if (i.value) return;
|
|
4222
4227
|
i.value = !0, await Ve();
|
|
4223
4228
|
const y = d(), h = y.findIndex(
|
|
4224
|
-
(
|
|
4229
|
+
(I) => I.id === e.id
|
|
4225
4230
|
);
|
|
4226
4231
|
h > -1 ? y[h] = g : y.push(g), localStorage.setItem("datatables-state", JSON.stringify(y)), i.value = !1;
|
|
4227
4232
|
}, d = () => {
|
|
@@ -4237,8 +4242,8 @@ function co(e) {
|
|
|
4237
4242
|
parseInt(g) !== parseInt(c) && (localStorage.removeItem("datatables-state"), localStorage.setItem("datatables-state-v", c));
|
|
4238
4243
|
const h = o()?.options.hash;
|
|
4239
4244
|
if (h) {
|
|
4240
|
-
const
|
|
4241
|
-
h !==
|
|
4245
|
+
const I = await l(JSON.stringify(e.headers ?? []));
|
|
4246
|
+
h !== I && localStorage.removeItem("datatables-state");
|
|
4242
4247
|
}
|
|
4243
4248
|
n({ table_id: e.id, headers: e.headers });
|
|
4244
4249
|
},
|
|
@@ -4272,39 +4277,39 @@ const rn = Un(() => {
|
|
|
4272
4277
|
},
|
|
4273
4278
|
emits: /* @__PURE__ */ Lt(["refreshTable", "refetchData", "advancedFilters:update", "hardFilters:update"], ["update:modelValue"]),
|
|
4274
4279
|
setup(e, { expose: a, emit: t }) {
|
|
4275
|
-
const n = Te(() => import("./Table-
|
|
4280
|
+
const n = Te(() => import("./Table-BdiBnyG7.js")), l = Te(() => import("./TableServer-eOtGylb9.js")), { storeOptions: i } = rn(), { saveTableOptions: c } = At(), s = Vt(e, "modelValue"), u = Pe("table_props"), d = Pe("datatablesPluginOptions"), o = W(null), r = W(!1), m = W(!1), g = W(!1), y = t, h = Pt(), { dataStateGet: I, tableDataState: _, checkTableState: x } = co(u), { addTable: k, restoreData: B } = h, F = W(!1);
|
|
4276
4281
|
Kn(o, (A) => {
|
|
4277
|
-
const p = A[0], { width:
|
|
4278
|
-
F.value =
|
|
4282
|
+
const p = A[0], { width: M } = p.contentRect;
|
|
4283
|
+
F.value = M < 950;
|
|
4279
4284
|
});
|
|
4280
|
-
const
|
|
4285
|
+
const L = w(() => {
|
|
4281
4286
|
const A = u.options?.header;
|
|
4282
4287
|
return A === void 0 || typeof A == "object" && A !== null;
|
|
4283
4288
|
});
|
|
4284
4289
|
return Ye(async () => {
|
|
4285
|
-
k({ table_id: u.id }), await
|
|
4286
|
-
const A =
|
|
4290
|
+
k({ table_id: u.id }), await x();
|
|
4291
|
+
const A = I();
|
|
4287
4292
|
if (A)
|
|
4288
|
-
|
|
4293
|
+
B({ table_id: u.id, data: A });
|
|
4289
4294
|
else {
|
|
4290
|
-
const
|
|
4291
|
-
|
|
4295
|
+
const M = _.value.options.columns;
|
|
4296
|
+
M.selected = u.headers.filter((E) => !E.hidden).map((E) => E.key), M.sorted = u.headers.map((E) => E.key);
|
|
4292
4297
|
}
|
|
4293
4298
|
c(Ln(i.state.value, _.value.options.state)), m.value = !0, await Ve(), g.value = !0;
|
|
4294
4299
|
}), Ue("busEmits", y), Ue("tableRef", o), Ue("tableState", _), Ue("downloadModal", r), a({ tableRef: o }), (A, p) => {
|
|
4295
|
-
const
|
|
4296
|
-
return
|
|
4300
|
+
const M = ro;
|
|
4301
|
+
return N(m) ? (le(), ze("div", vo, [
|
|
4297
4302
|
f(sn, null, {
|
|
4298
|
-
default:
|
|
4299
|
-
|
|
4300
|
-
default:
|
|
4301
|
-
f(
|
|
4303
|
+
default: xe(() => [
|
|
4304
|
+
N(L) ? (le(), ke(Zt, { key: 0 }, {
|
|
4305
|
+
default: xe(() => [
|
|
4306
|
+
f(M, { "responsive-header": N(F) }, null, 8, ["responsive-header"])
|
|
4302
4307
|
]),
|
|
4303
4308
|
_: 1
|
|
4304
4309
|
})) : Re("", !0),
|
|
4305
4310
|
f(el, { class: "pa-0" }, {
|
|
4306
|
-
default:
|
|
4307
|
-
|
|
4311
|
+
default: xe(() => [
|
|
4312
|
+
N(g) ? (le(), ke(Oe(N(u).api ? N(l) : N(n)), {
|
|
4308
4313
|
key: 0,
|
|
4309
4314
|
ref_key: "tableRef",
|
|
4310
4315
|
ref: o,
|
|
@@ -4318,24 +4323,24 @@ const rn = Un(() => {
|
|
|
4318
4323
|
_: 1
|
|
4319
4324
|
}),
|
|
4320
4325
|
f(on, {
|
|
4321
|
-
modelValue:
|
|
4326
|
+
modelValue: N(r),
|
|
4322
4327
|
"onUpdate:modelValue": p[1] || (p[1] = (E) => pt(r) ? r.value = E : null),
|
|
4323
4328
|
"max-width": "350",
|
|
4324
4329
|
persistent: ""
|
|
4325
4330
|
}, {
|
|
4326
|
-
default:
|
|
4331
|
+
default: xe(() => [
|
|
4327
4332
|
f(Yt, {
|
|
4328
4333
|
class: "py-2",
|
|
4329
4334
|
color: "primary",
|
|
4330
4335
|
elevation: "12",
|
|
4331
4336
|
rounded: "lg"
|
|
4332
4337
|
}, {
|
|
4333
|
-
default:
|
|
4338
|
+
default: xe(() => [
|
|
4334
4339
|
f(it, {
|
|
4335
|
-
"prepend-icon":
|
|
4340
|
+
"prepend-icon": N(d).header.icons.download,
|
|
4336
4341
|
title: A.$t("$datatables.preparing_download_file")
|
|
4337
4342
|
}, {
|
|
4338
|
-
prepend:
|
|
4343
|
+
prepend: xe(() => [
|
|
4339
4344
|
b("div", fo, [
|
|
4340
4345
|
f(Se, {
|
|
4341
4346
|
color: "primary",
|
|
@@ -4343,7 +4348,7 @@ const rn = Un(() => {
|
|
|
4343
4348
|
})
|
|
4344
4349
|
])
|
|
4345
4350
|
]),
|
|
4346
|
-
append:
|
|
4351
|
+
append: xe(() => [
|
|
4347
4352
|
f(Hn, {
|
|
4348
4353
|
color: "primary",
|
|
4349
4354
|
indeterminate: "disable-shrink",
|
|
@@ -4431,7 +4436,7 @@ const rn = Un(() => {
|
|
|
4431
4436
|
id: e.id,
|
|
4432
4437
|
ref_key: "table",
|
|
4433
4438
|
ref: s,
|
|
4434
|
-
key: `${e.id}-${
|
|
4439
|
+
key: `${e.id}-${N(u)}`,
|
|
4435
4440
|
onRefreshTable: d,
|
|
4436
4441
|
onRefetchData: o
|
|
4437
4442
|
}, null, 8, ["id"]);
|