@ianicdev/datatables2 0.13.2 → 0.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Comparison-5mmMEz2U.cjs → Comparison-2YRbsBSJ.cjs} +1 -1
- package/dist/{Comparison-CjJmKbUI.js → Comparison-BuQzB-si.js} +6 -6
- package/dist/{Datepicker-nokf6x-X.cjs → Datepicker-BObFVsrA.cjs} +1 -1
- package/dist/{Datepicker-B0nM8Hwn.js → Datepicker-ZDAgPotu.js} +24 -24
- package/dist/{Options-Bj_HI8lq.js → Options-BKNqYsWg.js} +6 -6
- package/dist/{Options-CFuTd6RH.cjs → Options-D4bbZDNy.cjs} +1 -1
- package/dist/{RefreshTable-CP3TtAhj.cjs → RefreshTable-B4lcus6j.cjs} +1 -1
- package/dist/{RefreshTable-DGaEfdXL.js → RefreshTable-C_KSEQQ2.js} +1 -1
- package/dist/{Search-QHvBXpiL.cjs → Search-BmKJJX6W.cjs} +1 -1
- package/dist/{Search-CHZzma0w.js → Search-CpSeJNQo.js} +8 -8
- package/dist/{Table-DlA37K_x.cjs → Table-BLFlqJby.cjs} +1 -1
- package/dist/{Table-GSeivIYB.js → Table-BQwX5npC.js} +3 -3
- package/dist/{TableServer-B4xTmowi.js → TableServer-CoKdajJh.js} +3 -3
- package/dist/{TableServer-BpqTvgRv.cjs → TableServer-wxRxfrz2.cjs} +1 -1
- package/dist/TableVirtual-C9iDM-wb.cjs +1 -0
- package/dist/TableVirtual-Ca9Tk07w.js +310 -0
- package/dist/{cellRender-CELfjePX.js → cellRender-B9kC6jEb.js} +22 -19
- package/dist/{cellRender-CH-xXPkU.cjs → cellRender-DbyhkQEK.cjs} +1 -1
- package/dist/{dataTables-D0-m93bp.cjs → dataTables-BH3T8M7g.cjs} +1 -1
- package/dist/{dataTables-DRImfSOv.js → dataTables-CTzHnAN4.js} +2 -2
- package/dist/datatables.cjs +1 -1
- package/dist/datatables.js +1 -1
- package/dist/datatables2.css +1 -1
- package/dist/{index-DSddKSzj.cjs → index--3PYYrqJ.cjs} +1 -1
- package/dist/{index-BgTLLLRJ.js → index-BjQjVIrq.js} +1102 -1093
- package/dist/{index-B0PH010H.cjs → index-Br6pmK7t.cjs} +1 -1
- package/dist/{index-C1YF3-B4.js → index-DBe3_idS.js} +2 -2
- package/dist/{index-D_erx3R7.cjs → index-Dcsy9dQc.cjs} +1 -1
- package/dist/{index-CgIh2BvP.js → index-Dnh2gNmS.js} +1 -1
- package/dist/index-OvaUUUMW.cjs +1 -0
- package/dist/{index-DflXGVoK.js → index-cgveAwK7.js} +12 -12
- package/dist/{useColumns-vtOcqRK0.cjs → useColumns-2-5bXJ1Y.cjs} +1 -1
- package/dist/{useColumns-0KwhIKoh.js → useColumns-DMHiyKUY.js} +2 -2
- package/lib/locale/de.js +5 -0
- package/lib/locale/el.js +5 -0
- package/lib/locale/en.js +5 -0
- package/package.json +1 -1
- package/dist/index-CwAZ9-MC.cjs +0 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { ref as G, inject as Pe, computed as I, toRef as
|
|
1
|
+
import { ref as G, inject as Pe, computed as I, toRef as R, shallowRef as ee, watch as se, createVNode as g, normalizeStyle as xe, normalizeClass as re, createElementVNode as b, mergeProps as H, withDirectives as Ue, vShow as _t, Fragment as ce, toDisplayString as Vt, useModel as Pt, openBlock as oe, createBlock as ye, withCtx as Ce, createElementBlock as Ke, renderList as Wt, unref as $, mergeModels as qt, useId as Xe, provide as We, onScopeDispose as rt, nextTick as ke, onBeforeMount as wn, onBeforeUnmount as kl, onMounted as at, cloneVNode as _n, watchEffect as zt, toValue as Ut, createTextVNode as Sl, defineAsyncComponent as Te, resolveDynamicComponent as $e, onUnmounted as Pn, isRef as xt, createCommentVNode as Me, defineComponent as At, useTemplateRef as Cl } from "vue";
|
|
2
2
|
import { defineStore as Vl } from "pinia";
|
|
3
|
-
import { u as Ft, m as Kt, P as xl, c as Ne, a as An, e as Fn, r as Dn, g as ie, b as Il, d as wl, f as It, I as ct, h as de, V as rl, i as Se, j as _l, p as X, k as he, l as Pl, n as Oe, o as Tn, q as be, s as ot, t as Jt, v as qe, w as Xt, x as He, R as lt, y as it, z as Yt, A as Dt, B as Qt, C as gt, D as Bn, E as Ve, F as cl, G as Al, H as Fl, J as Dl, K as Tl, L as Fe, M as nt, N as Rn, O as Bl, Q as yt, S as En, T as Zt, U as ht, W as el, X as Le, Y as Tt, Z as bt, _ as tl, $ as Rl, a0 as El, a1 as ll, a2 as pt, a3 as Ol, a4 as
|
|
3
|
+
import { u as Ft, m as Kt, P as xl, c as Ne, a as An, e as Fn, r as Dn, g as ie, b as Il, d as wl, f as It, I as ct, h as de, V as rl, i as Se, j as _l, p as X, k as he, l as Pl, n as Oe, o as Tn, q as be, s as ot, t as Jt, v as qe, w as Xt, x as He, R as lt, y as it, z as Yt, A as Dt, B as Qt, C as gt, D as Bn, E as Ve, F as cl, G as Al, H as Fl, J as Dl, K as Tl, L as Fe, M as nt, N as Rn, O as Bl, Q as yt, S as En, T as Zt, U as ht, W as el, X as Le, Y as Tt, Z as bt, _ as tl, $ as Rl, a0 as El, a1 as ll, a2 as pt, a3 as Ol, a4 as Be, a5 as kt, a6 as dt, a7 as Ye, a8 as $l, a9 as nl, aa as Bt, ab as Ml, ac as Nl, ad as Ll, ae as jt, af as On, ag as Hl, ah as $n, ai as Mn, aj as Nn, ak as zl, al as et, am as Ul, an as Ln, ao as dl, ap as St, aq as Kl, ar as Hn, as as zn, at as jl, au as Gl, av as al, aw as vt, ax as Un, ay as ze, az as Wl, aA as ql, aB as wt, aC as Jl, aD as Kn, aE as jn, aF as Gn, aG as Wn, aH as qn, aI as Jn, aJ as vl, aK as Xn, aL as Yn, aM as tt, aN as Qn, aO as Zn, aP as ea, aQ as ta } from "./dataTables-CTzHnAN4.js";
|
|
4
4
|
import { useEventBus as Xl, createSharedComposable as la, useResizeObserver as na } from "@vueuse/core";
|
|
5
5
|
import { useI18n as aa } from "vue-i18n";
|
|
6
6
|
const Rt = Vl("datatables", () => {
|
|
7
|
-
const e = G([]), a = ({ table_id:
|
|
8
|
-
const
|
|
7
|
+
const e = G([]), a = ({ table_id: o }) => {
|
|
8
|
+
const i = e.value.findIndex((d) => d.id === o), s = {
|
|
9
9
|
search: {
|
|
10
10
|
query: ""
|
|
11
11
|
},
|
|
@@ -21,21 +21,21 @@ const Rt = Vl("datatables", () => {
|
|
|
21
21
|
state: {}
|
|
22
22
|
}
|
|
23
23
|
};
|
|
24
|
-
|
|
25
|
-
}, t = async (
|
|
26
|
-
const
|
|
24
|
+
i !== -1 && e.value.splice(i, 1), e.value.push({ id: o, ...s });
|
|
25
|
+
}, t = async (o) => {
|
|
26
|
+
const s = new TextEncoder().encode(o), d = await crypto.subtle.digest("SHA-256", s);
|
|
27
27
|
return Array.from(new Uint8Array(d)).map((v) => v.toString(16).padStart(2, "0")).join("");
|
|
28
|
-
}, n = ({ table_id:
|
|
29
|
-
t(JSON.stringify(
|
|
30
|
-
l({ table_id:
|
|
28
|
+
}, n = ({ table_id: o, headers: i }) => {
|
|
29
|
+
t(JSON.stringify(i ?? [])).then((s) => {
|
|
30
|
+
l({ table_id: o, name: "options", value: { hash: s } });
|
|
31
31
|
});
|
|
32
|
-
}, l = ({ table_id:
|
|
32
|
+
}, l = ({ table_id: o, name: i, value: s }) => {
|
|
33
33
|
e.value = e.value.map((d) => {
|
|
34
|
-
if (d.id ===
|
|
35
|
-
const c = d[
|
|
36
|
-
if (c && typeof
|
|
37
|
-
for (const
|
|
38
|
-
|
|
34
|
+
if (d.id === o && d.hasOwnProperty(i)) {
|
|
35
|
+
const c = d[i];
|
|
36
|
+
if (c && typeof s == "object")
|
|
37
|
+
for (const f in s)
|
|
38
|
+
f in c && (c[f] = s[f]);
|
|
39
39
|
}
|
|
40
40
|
return d;
|
|
41
41
|
});
|
|
@@ -46,10 +46,10 @@ const Rt = Vl("datatables", () => {
|
|
|
46
46
|
// Store Methods
|
|
47
47
|
addTable: a,
|
|
48
48
|
setData: l,
|
|
49
|
-
restoreData: ({ table_id:
|
|
50
|
-
e.value = e.value.map((
|
|
49
|
+
restoreData: ({ table_id: o, data: i }) => {
|
|
50
|
+
e.value = e.value.map((s) => (s.id === o && (s = i), s));
|
|
51
51
|
},
|
|
52
|
-
getCurrentTable: (
|
|
52
|
+
getCurrentTable: (o) => e.value.find((i) => i.id === o),
|
|
53
53
|
// Hash
|
|
54
54
|
hashString: t,
|
|
55
55
|
setTableHash: n
|
|
@@ -58,23 +58,23 @@ const Rt = Vl("datatables", () => {
|
|
|
58
58
|
function Et() {
|
|
59
59
|
const { setData: e, getCurrentTable: a } = Rt(), t = Pe("table_props"), n = I(() => a(t.id)), l = I(() => n.value.search?.query), u = I(() => {
|
|
60
60
|
if (!t?.headers.length) return null;
|
|
61
|
-
const
|
|
62
|
-
return (n.value.options?.columns.sorted ?? []).filter((
|
|
63
|
-
(
|
|
61
|
+
const s = n.value.options?.columns.selected ?? [];
|
|
62
|
+
return (n.value.options?.columns.sorted ?? []).filter((f) => s.includes(f)).map(
|
|
63
|
+
(f) => t.headers.find((v) => v.key === f)
|
|
64
64
|
);
|
|
65
|
-
}),
|
|
65
|
+
}), r = I(() => n.value.hardFilters?.query), o = I(() => n.value.advancedFilters?.query);
|
|
66
66
|
return {
|
|
67
67
|
tableState: n,
|
|
68
68
|
searchState: l,
|
|
69
|
-
advancedFiltersState:
|
|
70
|
-
hardFiltersState:
|
|
69
|
+
advancedFiltersState: o,
|
|
70
|
+
hardFiltersState: r,
|
|
71
71
|
headersState: u,
|
|
72
|
-
saveTableOptions: (
|
|
72
|
+
saveTableOptions: (s) => {
|
|
73
73
|
e({
|
|
74
74
|
table_id: t.id,
|
|
75
75
|
name: "options",
|
|
76
76
|
value: {
|
|
77
|
-
state:
|
|
77
|
+
state: s
|
|
78
78
|
}
|
|
79
79
|
});
|
|
80
80
|
}
|
|
@@ -105,25 +105,25 @@ function Nt(e, a, t) {
|
|
|
105
105
|
return l;
|
|
106
106
|
}
|
|
107
107
|
async function fl(e, a, t, n) {
|
|
108
|
-
const l = t ? "scrollLeft" : "scrollTop", u = Kt(n?.options ?? ia(), a),
|
|
109
|
-
if (!
|
|
108
|
+
const l = t ? "scrollLeft" : "scrollTop", u = Kt(n?.options ?? ia(), a), r = n?.rtl.value, o = (typeof e == "number" ? e : ol(e)) ?? 0, i = u.container === "parent" && o instanceof HTMLElement ? o.parentElement : ua(u.container), s = xl() ? u.patterns.instant : typeof u.easing == "function" ? u.easing : u.patterns[u.easing];
|
|
109
|
+
if (!s) throw new TypeError(`Easing function "${u.easing}" not found.`);
|
|
110
110
|
let d;
|
|
111
|
-
if (typeof
|
|
112
|
-
d = Nt(
|
|
113
|
-
else if (d = Nt(
|
|
114
|
-
const y = window.getComputedStyle(
|
|
111
|
+
if (typeof o == "number")
|
|
112
|
+
d = Nt(o, t, r);
|
|
113
|
+
else if (d = Nt(o, t, r) - Nt(i, t, r), u.layout) {
|
|
114
|
+
const y = window.getComputedStyle(o).getPropertyValue("--v-layout-top");
|
|
115
115
|
y && (d -= parseInt(y, 10));
|
|
116
116
|
}
|
|
117
|
-
d += u.offset, d = ra(
|
|
118
|
-
const c =
|
|
117
|
+
d += u.offset, d = ra(i, d, !!r, !!t);
|
|
118
|
+
const c = i[l] ?? 0;
|
|
119
119
|
if (d === c) return Promise.resolve(d);
|
|
120
|
-
const
|
|
120
|
+
const f = performance.now();
|
|
121
121
|
return new Promise((v) => requestAnimationFrame(function y(h) {
|
|
122
|
-
const
|
|
123
|
-
if (
|
|
122
|
+
const _ = (h - f) / u.duration, w = Math.floor(c + (d - c) * s(Ne(_, 0, 1)));
|
|
123
|
+
if (i[l] = w, _ >= 1 && Math.abs(w - i[l]) < 10)
|
|
124
124
|
return v(d);
|
|
125
|
-
if (
|
|
126
|
-
return An("Scroll target is not reachable"), v(
|
|
125
|
+
if (_ > 2)
|
|
126
|
+
return An("Scroll target is not reachable"), v(i[l]);
|
|
127
127
|
requestAnimationFrame(y);
|
|
128
128
|
}));
|
|
129
129
|
}
|
|
@@ -136,20 +136,20 @@ function sa() {
|
|
|
136
136
|
const n = {
|
|
137
137
|
...a,
|
|
138
138
|
// can be set via VLocaleProvider
|
|
139
|
-
rtl:
|
|
139
|
+
rtl: R(() => a.rtl.value || t.value)
|
|
140
140
|
};
|
|
141
|
-
async function l(u,
|
|
142
|
-
return fl(u, Kt(e,
|
|
141
|
+
async function l(u, r) {
|
|
142
|
+
return fl(u, Kt(e, r), !1, n);
|
|
143
143
|
}
|
|
144
|
-
return l.horizontal = async (u,
|
|
144
|
+
return l.horizontal = async (u, r) => fl(u, Kt(e, r), !0, n), l;
|
|
145
145
|
}
|
|
146
146
|
function ra(e, a, t, n) {
|
|
147
147
|
const {
|
|
148
148
|
scrollWidth: l,
|
|
149
149
|
scrollHeight: u
|
|
150
|
-
} = e, [
|
|
151
|
-
let
|
|
152
|
-
return n ? t ? (
|
|
150
|
+
} = e, [r, o] = e === document.scrollingElement ? [window.innerWidth, window.innerHeight] : [e.offsetWidth, e.offsetHeight];
|
|
151
|
+
let i, s;
|
|
152
|
+
return n ? t ? (i = -(l - r), s = 0) : (i = 0, s = l - r) : (i = 0, s = u + -o), Ne(a, i, s);
|
|
153
153
|
}
|
|
154
154
|
function ca(e) {
|
|
155
155
|
let {
|
|
@@ -158,8 +158,8 @@ function ca(e) {
|
|
|
158
158
|
isRtl: n,
|
|
159
159
|
isHorizontal: l
|
|
160
160
|
} = e;
|
|
161
|
-
const u = ft(l, t),
|
|
162
|
-
return
|
|
161
|
+
const u = ft(l, t), r = Yl(l, n, t), o = ft(l, a), i = Ql(l, a), s = o * 0.4;
|
|
162
|
+
return r > i ? i - s : r + u < i + o ? i - u + o + s : r;
|
|
163
163
|
}
|
|
164
164
|
function da(e) {
|
|
165
165
|
let {
|
|
@@ -167,8 +167,8 @@ function da(e) {
|
|
|
167
167
|
containerElement: t,
|
|
168
168
|
isHorizontal: n
|
|
169
169
|
} = e;
|
|
170
|
-
const l = ft(n, t), u = Ql(n, a),
|
|
171
|
-
return u - l / 2 +
|
|
170
|
+
const l = ft(n, t), u = Ql(n, a), r = ft(n, a);
|
|
171
|
+
return u - l / 2 + r / 2;
|
|
172
172
|
}
|
|
173
173
|
function ml(e, a) {
|
|
174
174
|
return a?.[e ? "scrollWidth" : "scrollHeight"] || 0;
|
|
@@ -242,74 +242,74 @@ const Zl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), en = X({
|
|
|
242
242
|
} = Ft(), {
|
|
243
243
|
displayClasses: l,
|
|
244
244
|
mobile: u
|
|
245
|
-
} = Il(e),
|
|
246
|
-
resizeRef:
|
|
245
|
+
} = Il(e), r = wl(e, e.symbol), o = ee(!1), i = ee(0), s = ee(0), d = ee(0), c = I(() => e.direction === "horizontal"), {
|
|
246
|
+
resizeRef: f,
|
|
247
247
|
contentRect: v
|
|
248
248
|
} = It(), {
|
|
249
249
|
resizeRef: y,
|
|
250
250
|
contentRect: h
|
|
251
|
-
} = It(), p = sa(),
|
|
252
|
-
container:
|
|
251
|
+
} = It(), p = sa(), _ = I(() => ({
|
|
252
|
+
container: f.el,
|
|
253
253
|
duration: 200,
|
|
254
254
|
easing: "easeOutQuart"
|
|
255
|
-
})),
|
|
255
|
+
})), w = I(() => r.selected.value.length ? r.items.value.findIndex((k) => k.id === r.selected.value[0]) : -1), C = I(() => r.selected.value.length ? r.items.value.findIndex((k) => k.id === r.selected.value[r.selected.value.length - 1]) : -1);
|
|
256
256
|
if (ct) {
|
|
257
257
|
let k = -1;
|
|
258
|
-
se(() => [
|
|
258
|
+
se(() => [r.selected.value, v.value, h.value, c.value], () => {
|
|
259
259
|
cancelAnimationFrame(k), k = requestAnimationFrame(() => {
|
|
260
260
|
if (v.value && h.value) {
|
|
261
|
-
const
|
|
262
|
-
|
|
261
|
+
const m = c.value ? "width" : "height";
|
|
262
|
+
s.value = v.value[m], d.value = h.value[m], o.value = s.value + 1 < d.value;
|
|
263
263
|
}
|
|
264
|
-
if (e.scrollToActive &&
|
|
265
|
-
const
|
|
266
|
-
|
|
264
|
+
if (e.scrollToActive && w.value >= 0 && y.el) {
|
|
265
|
+
const m = y.el.children[C.value];
|
|
266
|
+
E(m, e.centerActive);
|
|
267
267
|
}
|
|
268
268
|
});
|
|
269
269
|
});
|
|
270
270
|
}
|
|
271
|
-
const F =
|
|
272
|
-
function
|
|
273
|
-
let
|
|
274
|
-
|
|
275
|
-
containerElement:
|
|
271
|
+
const F = ee(!1);
|
|
272
|
+
function E(k, m) {
|
|
273
|
+
let P = 0;
|
|
274
|
+
m ? P = da({
|
|
275
|
+
containerElement: f.el,
|
|
276
276
|
isHorizontal: c.value,
|
|
277
277
|
selectedElement: k
|
|
278
|
-
}) :
|
|
279
|
-
containerElement:
|
|
278
|
+
}) : P = ca({
|
|
279
|
+
containerElement: f.el,
|
|
280
280
|
isHorizontal: c.value,
|
|
281
281
|
isRtl: n.value,
|
|
282
282
|
selectedElement: k
|
|
283
|
-
}), U(
|
|
283
|
+
}), U(P);
|
|
284
284
|
}
|
|
285
285
|
function U(k) {
|
|
286
|
-
if (!ct || !
|
|
287
|
-
const
|
|
288
|
-
if (!(ml(c.value,
|
|
289
|
-
Math.abs(k -
|
|
290
|
-
if (c.value && n.value &&
|
|
286
|
+
if (!ct || !f.el) return;
|
|
287
|
+
const m = ft(c.value, f.el), P = Yl(c.value, n.value, f.el);
|
|
288
|
+
if (!(ml(c.value, f.el) <= m || // Prevent scrolling by only a couple of pixels, which doesn't look smooth
|
|
289
|
+
Math.abs(k - P) < 16)) {
|
|
290
|
+
if (c.value && n.value && f.el) {
|
|
291
291
|
const {
|
|
292
292
|
scrollWidth: ve,
|
|
293
293
|
offsetWidth: ge
|
|
294
|
-
} =
|
|
294
|
+
} = f.el;
|
|
295
295
|
k = ve - ge - k;
|
|
296
296
|
}
|
|
297
|
-
c.value ? p.horizontal(k,
|
|
297
|
+
c.value ? p.horizontal(k, _.value) : p(k, _.value);
|
|
298
298
|
}
|
|
299
299
|
}
|
|
300
|
-
function
|
|
300
|
+
function A(k) {
|
|
301
301
|
const {
|
|
302
|
-
scrollTop:
|
|
303
|
-
scrollLeft:
|
|
302
|
+
scrollTop: m,
|
|
303
|
+
scrollLeft: P
|
|
304
304
|
} = k.target;
|
|
305
|
-
|
|
305
|
+
i.value = c.value ? P : m;
|
|
306
306
|
}
|
|
307
307
|
function V(k) {
|
|
308
|
-
if (F.value = !0, !(!
|
|
309
|
-
for (const
|
|
310
|
-
for (const
|
|
311
|
-
if (
|
|
312
|
-
|
|
308
|
+
if (F.value = !0, !(!o.value || !y.el)) {
|
|
309
|
+
for (const m of k.composedPath())
|
|
310
|
+
for (const P of y.el.children)
|
|
311
|
+
if (P === m) {
|
|
312
|
+
E(P);
|
|
313
313
|
return;
|
|
314
314
|
}
|
|
315
315
|
}
|
|
@@ -318,59 +318,59 @@ const Zl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), en = X({
|
|
|
318
318
|
F.value = !1;
|
|
319
319
|
}
|
|
320
320
|
let D = !1;
|
|
321
|
-
function
|
|
321
|
+
function N(k) {
|
|
322
322
|
!D && !F.value && !(k.relatedTarget && y.el?.contains(k.relatedTarget)) && j(), D = !1;
|
|
323
323
|
}
|
|
324
|
-
function
|
|
324
|
+
function ne() {
|
|
325
325
|
D = !0;
|
|
326
326
|
}
|
|
327
|
-
function
|
|
327
|
+
function z(k) {
|
|
328
328
|
if (!y.el) return;
|
|
329
|
-
function
|
|
330
|
-
k.preventDefault(), j(
|
|
329
|
+
function m(P) {
|
|
330
|
+
k.preventDefault(), j(P);
|
|
331
331
|
}
|
|
332
|
-
c.value ? k.key === "ArrowRight" ?
|
|
332
|
+
c.value ? k.key === "ArrowRight" ? m(n.value ? "prev" : "next") : k.key === "ArrowLeft" && m(n.value ? "next" : "prev") : k.key === "ArrowDown" ? m("next") : k.key === "ArrowUp" && m("prev"), k.key === "Home" ? m("first") : k.key === "End" && m("last");
|
|
333
333
|
}
|
|
334
|
-
function W(k,
|
|
334
|
+
function W(k, m) {
|
|
335
335
|
if (!k) return;
|
|
336
|
-
let
|
|
336
|
+
let P = k;
|
|
337
337
|
do
|
|
338
|
-
|
|
339
|
-
while (
|
|
340
|
-
return
|
|
338
|
+
P = P?.[m === "next" ? "nextElementSibling" : "previousElementSibling"];
|
|
339
|
+
while (P?.hasAttribute("disabled"));
|
|
340
|
+
return P;
|
|
341
341
|
}
|
|
342
342
|
function j(k) {
|
|
343
343
|
if (!y.el) return;
|
|
344
|
-
let
|
|
344
|
+
let m;
|
|
345
345
|
if (!k)
|
|
346
|
-
|
|
346
|
+
m = _l(y.el)[0];
|
|
347
347
|
else if (k === "next") {
|
|
348
|
-
if (
|
|
348
|
+
if (m = W(y.el.querySelector(":focus"), k), !m) return j("first");
|
|
349
349
|
} else if (k === "prev") {
|
|
350
|
-
if (
|
|
351
|
-
} else k === "first" ? (
|
|
352
|
-
|
|
350
|
+
if (m = W(y.el.querySelector(":focus"), k), !m) return j("last");
|
|
351
|
+
} else k === "first" ? (m = y.el.firstElementChild, m?.hasAttribute("disabled") && (m = W(m, "next"))) : k === "last" && (m = y.el.lastElementChild, m?.hasAttribute("disabled") && (m = W(m, "prev")));
|
|
352
|
+
m && m.focus({
|
|
353
353
|
preventScroll: !0
|
|
354
354
|
});
|
|
355
355
|
}
|
|
356
356
|
function ue(k) {
|
|
357
|
-
const
|
|
358
|
-
let J =
|
|
359
|
-
if (c.value && n.value &&
|
|
357
|
+
const m = c.value && n.value ? -1 : 1, P = (k === "prev" ? -m : m) * s.value;
|
|
358
|
+
let J = i.value + P;
|
|
359
|
+
if (c.value && n.value && f.el) {
|
|
360
360
|
const {
|
|
361
361
|
scrollWidth: ve,
|
|
362
362
|
offsetWidth: ge
|
|
363
|
-
} =
|
|
363
|
+
} = f.el;
|
|
364
364
|
J += ve - ge;
|
|
365
365
|
}
|
|
366
366
|
U(J);
|
|
367
367
|
}
|
|
368
368
|
const q = I(() => ({
|
|
369
|
-
next:
|
|
370
|
-
prev:
|
|
371
|
-
select:
|
|
372
|
-
isSelected:
|
|
373
|
-
})),
|
|
369
|
+
next: r.next,
|
|
370
|
+
prev: r.prev,
|
|
371
|
+
select: r.select,
|
|
372
|
+
isSelected: r.isSelected
|
|
373
|
+
})), K = I(() => o.value || Math.abs(i.value) > 0), fe = I(() => {
|
|
374
374
|
switch (e.showArrows) {
|
|
375
375
|
case "never":
|
|
376
376
|
return !1;
|
|
@@ -383,59 +383,59 @@ const Zl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), en = X({
|
|
|
383
383
|
// Show arrows on mobile when overflowing.
|
|
384
384
|
// This matches the default 2.2 behavior
|
|
385
385
|
case !0:
|
|
386
|
-
return
|
|
386
|
+
return K.value;
|
|
387
387
|
// Always show on mobile
|
|
388
388
|
case "mobile":
|
|
389
|
-
return u.value ||
|
|
389
|
+
return u.value || K.value;
|
|
390
390
|
// https://material.io/components/tabs#scrollable-tabs
|
|
391
391
|
// Always show arrows when
|
|
392
392
|
// overflowed on desktop
|
|
393
393
|
default:
|
|
394
|
-
return !u.value &&
|
|
394
|
+
return !u.value && K.value;
|
|
395
395
|
}
|
|
396
|
-
}),
|
|
397
|
-
if (!
|
|
398
|
-
const k = ml(c.value,
|
|
399
|
-
return k -
|
|
396
|
+
}), B = I(() => Math.abs(i.value) > 1), O = I(() => {
|
|
397
|
+
if (!f.value || !K.value) return !1;
|
|
398
|
+
const k = ml(c.value, f.el), m = va(c.value, f.el);
|
|
399
|
+
return k - m - Math.abs(i.value) > 1;
|
|
400
400
|
});
|
|
401
401
|
return de(() => g(e.tag, {
|
|
402
402
|
class: re(["v-slide-group", {
|
|
403
403
|
"v-slide-group--vertical": !c.value,
|
|
404
404
|
"v-slide-group--has-affixes": fe.value,
|
|
405
|
-
"v-slide-group--is-overflowing":
|
|
405
|
+
"v-slide-group--is-overflowing": o.value
|
|
406
406
|
}, l.value, e.class]),
|
|
407
407
|
style: xe(e.style),
|
|
408
|
-
tabindex: F.value ||
|
|
409
|
-
onFocus:
|
|
408
|
+
tabindex: F.value || r.selected.value.length ? -1 : 0,
|
|
409
|
+
onFocus: N
|
|
410
410
|
}, {
|
|
411
411
|
default: () => [fe.value && b("div", {
|
|
412
412
|
key: "prev",
|
|
413
413
|
class: re(["v-slide-group__prev", {
|
|
414
|
-
"v-slide-group__prev--disabled": !
|
|
414
|
+
"v-slide-group__prev--disabled": !B.value
|
|
415
415
|
}]),
|
|
416
|
-
onMousedown:
|
|
417
|
-
onClick: () =>
|
|
416
|
+
onMousedown: ne,
|
|
417
|
+
onClick: () => B.value && ue("prev")
|
|
418
418
|
}, [t.prev?.(q.value) ?? g(rl, null, {
|
|
419
419
|
default: () => [g(Se, {
|
|
420
420
|
icon: n.value ? e.nextIcon : e.prevIcon
|
|
421
421
|
}, null)]
|
|
422
422
|
})]), b("div", {
|
|
423
423
|
key: "container",
|
|
424
|
-
ref:
|
|
424
|
+
ref: f,
|
|
425
425
|
class: re(["v-slide-group__container", e.contentClass]),
|
|
426
|
-
onScroll:
|
|
426
|
+
onScroll: A
|
|
427
427
|
}, [b("div", {
|
|
428
428
|
ref: y,
|
|
429
429
|
class: "v-slide-group__content",
|
|
430
430
|
onFocusin: V,
|
|
431
431
|
onFocusout: M,
|
|
432
|
-
onKeydown:
|
|
432
|
+
onKeydown: z
|
|
433
433
|
}, [t.default?.(q.value)])]), fe.value && b("div", {
|
|
434
434
|
key: "next",
|
|
435
435
|
class: re(["v-slide-group__next", {
|
|
436
436
|
"v-slide-group__next--disabled": !O.value
|
|
437
437
|
}]),
|
|
438
|
-
onMousedown:
|
|
438
|
+
onMousedown: ne,
|
|
439
439
|
onClick: () => O.value && ue("next")
|
|
440
440
|
}, [t.next?.(q.value) ?? g(rl, null, {
|
|
441
441
|
default: () => [g(Se, {
|
|
@@ -443,11 +443,11 @@ const Zl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), en = X({
|
|
|
443
443
|
}, null)]
|
|
444
444
|
})])]
|
|
445
445
|
})), {
|
|
446
|
-
selected:
|
|
446
|
+
selected: r.selected,
|
|
447
447
|
scrollTo: ue,
|
|
448
|
-
scrollOffset:
|
|
448
|
+
scrollOffset: i,
|
|
449
449
|
focus: j,
|
|
450
|
-
hasPrev:
|
|
450
|
+
hasPrev: B,
|
|
451
451
|
hasNext: O
|
|
452
452
|
};
|
|
453
453
|
}
|
|
@@ -486,21 +486,21 @@ const Zl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), en = X({
|
|
|
486
486
|
} = ot(e), {
|
|
487
487
|
isSelected: l,
|
|
488
488
|
select: u,
|
|
489
|
-
next:
|
|
490
|
-
prev:
|
|
491
|
-
selected:
|
|
489
|
+
next: r,
|
|
490
|
+
prev: o,
|
|
491
|
+
selected: i
|
|
492
492
|
} = wl(e, tn);
|
|
493
493
|
return Jt({
|
|
494
494
|
VChip: {
|
|
495
|
-
baseColor:
|
|
496
|
-
color:
|
|
497
|
-
disabled:
|
|
498
|
-
filter:
|
|
499
|
-
variant:
|
|
495
|
+
baseColor: R(() => e.baseColor),
|
|
496
|
+
color: R(() => e.color),
|
|
497
|
+
disabled: R(() => e.disabled),
|
|
498
|
+
filter: R(() => e.filter),
|
|
499
|
+
variant: R(() => e.variant)
|
|
500
500
|
}
|
|
501
501
|
}), de(() => {
|
|
502
|
-
const
|
|
503
|
-
return g(gl,
|
|
502
|
+
const s = gl.filterProps(e);
|
|
503
|
+
return g(gl, H(s, {
|
|
504
504
|
class: ["v-chip-group", {
|
|
505
505
|
"v-chip-group--column": e.column
|
|
506
506
|
}, n.value, e.class],
|
|
@@ -509,9 +509,9 @@ const Zl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), en = X({
|
|
|
509
509
|
default: () => [t.default?.({
|
|
510
510
|
isSelected: l,
|
|
511
511
|
select: u,
|
|
512
|
-
next:
|
|
513
|
-
prev:
|
|
514
|
-
selected:
|
|
512
|
+
next: r,
|
|
513
|
+
prev: o,
|
|
514
|
+
selected: i.value
|
|
515
515
|
})]
|
|
516
516
|
});
|
|
517
517
|
}), {};
|
|
@@ -594,60 +594,60 @@ const Zl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), en = X({
|
|
|
594
594
|
const {
|
|
595
595
|
t: u
|
|
596
596
|
} = it(), {
|
|
597
|
-
borderClasses:
|
|
597
|
+
borderClasses: r
|
|
598
598
|
} = Yt(e), {
|
|
599
|
-
densityClasses:
|
|
599
|
+
densityClasses: o
|
|
600
600
|
} = Dt(e), {
|
|
601
|
-
elevationClasses:
|
|
601
|
+
elevationClasses: i
|
|
602
602
|
} = Qt(e), {
|
|
603
|
-
roundedClasses:
|
|
603
|
+
roundedClasses: s
|
|
604
604
|
} = gt(e), {
|
|
605
605
|
sizeClasses: d
|
|
606
606
|
} = Bn(e), {
|
|
607
607
|
themeClasses: c
|
|
608
|
-
} = ot(e),
|
|
608
|
+
} = ot(e), f = Ve(e, "modelValue"), v = cl(e, tn, !1), y = cl(e, Zl, !1), h = Al(e, t), p = R(() => e.link !== !1 && h.isLink.value), _ = I(() => !e.disabled && e.link !== !1 && (!!v || e.link || h.isClickable.value)), w = R(() => ({
|
|
609
609
|
"aria-label": u(e.closeLabel),
|
|
610
610
|
disabled: e.disabled,
|
|
611
611
|
onClick(V) {
|
|
612
|
-
V.preventDefault(), V.stopPropagation(),
|
|
612
|
+
V.preventDefault(), V.stopPropagation(), f.value = !1, n("click:close", V);
|
|
613
613
|
}
|
|
614
614
|
}));
|
|
615
|
-
se(
|
|
615
|
+
se(f, (V) => {
|
|
616
616
|
V ? (v?.register(), y?.register()) : (v?.unregister(), y?.unregister());
|
|
617
617
|
});
|
|
618
618
|
const {
|
|
619
619
|
colorClasses: C,
|
|
620
620
|
colorStyles: F,
|
|
621
|
-
variantClasses:
|
|
621
|
+
variantClasses: E
|
|
622
622
|
} = Fl(() => ({
|
|
623
623
|
color: !v || v.isSelected.value ? e.color ?? e.baseColor : e.baseColor,
|
|
624
624
|
variant: e.variant
|
|
625
625
|
}));
|
|
626
626
|
function U(V) {
|
|
627
|
-
n("click", V),
|
|
627
|
+
n("click", V), _.value && (h.navigate.value?.(V), v?.toggle());
|
|
628
628
|
}
|
|
629
|
-
function
|
|
629
|
+
function A(V) {
|
|
630
630
|
(V.key === "Enter" || V.key === " ") && (V.preventDefault(), U(V));
|
|
631
631
|
}
|
|
632
632
|
return () => {
|
|
633
|
-
const V = h.isLink.value ? "a" : e.tag, M = !!(e.appendIcon || e.appendAvatar), D = !!(M || l.append),
|
|
634
|
-
return
|
|
633
|
+
const V = h.isLink.value ? "a" : e.tag, M = !!(e.appendIcon || e.appendAvatar), D = !!(M || l.append), N = !!(l.close || e.closable), ne = !!(l.filter || e.filter) && v, z = !!(e.prependIcon || e.prependAvatar), W = !!(z || l.prepend);
|
|
634
|
+
return f.value && Ue(g(V, H(h.linkProps, {
|
|
635
635
|
class: ["v-chip", {
|
|
636
636
|
"v-chip--disabled": e.disabled,
|
|
637
637
|
"v-chip--label": e.label,
|
|
638
|
-
"v-chip--link":
|
|
639
|
-
"v-chip--filter":
|
|
638
|
+
"v-chip--link": _.value,
|
|
639
|
+
"v-chip--filter": ne,
|
|
640
640
|
"v-chip--pill": e.pill,
|
|
641
641
|
[`${e.activeClass}`]: e.activeClass && h.isActive?.value
|
|
642
|
-
}, c.value,
|
|
642
|
+
}, c.value, r.value, C.value, o.value, i.value, s.value, d.value, E.value, v?.selectedClass.value, e.class],
|
|
643
643
|
style: [F.value, e.style],
|
|
644
644
|
disabled: e.disabled || void 0,
|
|
645
645
|
draggable: e.draggable,
|
|
646
|
-
tabindex:
|
|
646
|
+
tabindex: _.value ? 0 : void 0,
|
|
647
647
|
onClick: U,
|
|
648
|
-
onKeydown:
|
|
648
|
+
onKeydown: _.value && !p.value && A
|
|
649
649
|
}), {
|
|
650
|
-
default: () => [Dl(
|
|
650
|
+
default: () => [Dl(_.value, "v-chip"), ne && g(Tl, {
|
|
651
651
|
key: "filter"
|
|
652
652
|
}, {
|
|
653
653
|
default: () => [Ue(b("div", {
|
|
@@ -669,7 +669,7 @@ const Zl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), en = X({
|
|
|
669
669
|
class: "v-chip__prepend"
|
|
670
670
|
}, [l.prepend ? g(Fe, {
|
|
671
671
|
key: "prepend-defaults",
|
|
672
|
-
disabled: !
|
|
672
|
+
disabled: !z,
|
|
673
673
|
defaults: {
|
|
674
674
|
VAvatar: {
|
|
675
675
|
image: e.prependAvatar,
|
|
@@ -722,12 +722,12 @@ const Zl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), en = X({
|
|
|
722
722
|
key: "append-avatar",
|
|
723
723
|
end: !0,
|
|
724
724
|
image: e.appendAvatar
|
|
725
|
-
}, null)])]),
|
|
725
|
+
}, null)])]), N && b("button", H({
|
|
726
726
|
key: "close",
|
|
727
727
|
class: "v-chip__close",
|
|
728
728
|
type: "button",
|
|
729
729
|
"data-testid": "close-chip"
|
|
730
|
-
},
|
|
730
|
+
}, w.value), [l.close ? g(Fe, {
|
|
731
731
|
key: "close-defaults",
|
|
732
732
|
defaults: {
|
|
733
733
|
VIcon: {
|
|
@@ -740,7 +740,7 @@ const Zl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), en = X({
|
|
|
740
740
|
icon: e.closeIcon,
|
|
741
741
|
size: "x-small"
|
|
742
742
|
}, null)])]
|
|
743
|
-
}), [[lt,
|
|
743
|
+
}), [[lt, _.value && e.ripple, null]]);
|
|
744
744
|
};
|
|
745
745
|
}
|
|
746
746
|
}), ya = X({
|
|
@@ -767,21 +767,21 @@ const Zl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), en = X({
|
|
|
767
767
|
backgroundColorClasses: l,
|
|
768
768
|
backgroundColorStyles: u
|
|
769
769
|
} = Tt(() => e.color), {
|
|
770
|
-
borderClasses:
|
|
770
|
+
borderClasses: r
|
|
771
771
|
} = Yt(e), {
|
|
772
|
-
dimensionStyles:
|
|
772
|
+
dimensionStyles: o
|
|
773
773
|
} = bt(e), {
|
|
774
|
-
elevationClasses:
|
|
774
|
+
elevationClasses: i
|
|
775
775
|
} = Qt(e), {
|
|
776
|
-
locationStyles:
|
|
776
|
+
locationStyles: s
|
|
777
777
|
} = tl(e), {
|
|
778
778
|
positionClasses: d
|
|
779
779
|
} = Rl(e), {
|
|
780
780
|
roundedClasses: c
|
|
781
781
|
} = gt(e);
|
|
782
782
|
return de(() => g(e.tag, {
|
|
783
|
-
class: re(["v-sheet", n.value, l.value,
|
|
784
|
-
style: xe([u.value,
|
|
783
|
+
class: re(["v-sheet", n.value, l.value, r.value, i.value, d.value, c.value, e.class]),
|
|
784
|
+
style: xe([u.value, o.value, s.value, e.style])
|
|
785
785
|
}, t)), {};
|
|
786
786
|
}
|
|
787
787
|
}), ha = {
|
|
@@ -792,20 +792,20 @@ const Zl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), en = X({
|
|
|
792
792
|
},
|
|
793
793
|
emits: /* @__PURE__ */ qt("save", ["update:modelValue"]),
|
|
794
794
|
setup(e, { emit: a }) {
|
|
795
|
-
const { advancedFiltersState: t } = Et(), n = Pe("table_props"), l = Pt(e, "modelValue"), u = (
|
|
796
|
-
const d = n.headers.find((y) => (y.advancedFilter?.key ?? y.key) ===
|
|
795
|
+
const { advancedFiltersState: t } = Et(), n = Pe("table_props"), l = Pt(e, "modelValue"), u = (i, s) => {
|
|
796
|
+
const d = n.headers.find((y) => (y.advancedFilter?.key ?? y.key) === s), c = i.comparison === "=" ? ":" : " " + i.comparison, f = Array.isArray(i.value) ? i.value : [i.value], v = f.filter((y, h) => !(d.advancedFilter?.component === "datepicker" && h !== 0 && h !== f.length - 1)).map((y) => {
|
|
797
797
|
const h = d.advancedFilter?.options?.items ?? [];
|
|
798
|
-
let p = y,
|
|
799
|
-
return h.length && (
|
|
800
|
-
item:
|
|
798
|
+
let p = y, _;
|
|
799
|
+
return h.length && (_ = h.find((w) => w.value === y), _ && (p = _.title)), typeof d.advancedFilter?.valueFormatter == "function" && (p = d.advancedFilter.valueFormatter({
|
|
800
|
+
item: _,
|
|
801
801
|
value: y
|
|
802
802
|
})), p;
|
|
803
803
|
});
|
|
804
804
|
return `${d.title}${c} ${v.join(", ")}`;
|
|
805
|
-
},
|
|
806
|
-
l.value[
|
|
807
|
-
},
|
|
808
|
-
return (
|
|
805
|
+
}, r = (i) => {
|
|
806
|
+
l.value[i] = { comparison: "=", value: null }, o("save");
|
|
807
|
+
}, o = a;
|
|
808
|
+
return (i, s) => (oe(), ye(il, null, {
|
|
809
809
|
default: Ce(() => [
|
|
810
810
|
g(ma, null, {
|
|
811
811
|
default: Ce(() => [
|
|
@@ -816,7 +816,7 @@ const Zl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), en = X({
|
|
|
816
816
|
closable: "",
|
|
817
817
|
value: d,
|
|
818
818
|
density: "comfortable",
|
|
819
|
-
"onClick:close": (
|
|
819
|
+
"onClick:close": (f) => r(c)
|
|
820
820
|
}, null, 8, ["text", "value", "onClick:close"]))), 128))
|
|
821
821
|
]),
|
|
822
822
|
_: 1
|
|
@@ -894,33 +894,33 @@ ie()({
|
|
|
894
894
|
let {
|
|
895
895
|
slots: t
|
|
896
896
|
} = a;
|
|
897
|
-
const n = Ve(e, "modelValue"), l = Xe(), u =
|
|
897
|
+
const n = Ve(e, "modelValue"), l = Xe(), u = R(() => e.id || `v-selection-control-group-${l}`), r = R(() => e.name || u.value), o = /* @__PURE__ */ new Set();
|
|
898
898
|
return We(nn, {
|
|
899
899
|
modelValue: n,
|
|
900
900
|
forceUpdate: () => {
|
|
901
|
-
|
|
901
|
+
o.forEach((i) => i());
|
|
902
902
|
},
|
|
903
|
-
onForceUpdate: (
|
|
904
|
-
|
|
905
|
-
|
|
903
|
+
onForceUpdate: (i) => {
|
|
904
|
+
o.add(i), rt(() => {
|
|
905
|
+
o.delete(i);
|
|
906
906
|
});
|
|
907
907
|
}
|
|
908
908
|
}), Jt({
|
|
909
909
|
[e.defaultsTarget]: {
|
|
910
|
-
color:
|
|
911
|
-
disabled:
|
|
912
|
-
density:
|
|
913
|
-
error:
|
|
914
|
-
inline:
|
|
910
|
+
color: R(() => e.color),
|
|
911
|
+
disabled: R(() => e.disabled),
|
|
912
|
+
density: R(() => e.density),
|
|
913
|
+
error: R(() => e.error),
|
|
914
|
+
inline: R(() => e.inline),
|
|
915
915
|
modelValue: n,
|
|
916
|
-
multiple:
|
|
917
|
-
name:
|
|
918
|
-
falseIcon:
|
|
919
|
-
trueIcon:
|
|
920
|
-
readonly:
|
|
921
|
-
ripple:
|
|
922
|
-
type:
|
|
923
|
-
valueComparator:
|
|
916
|
+
multiple: R(() => !!e.multiple || e.multiple == null && Array.isArray(n.value)),
|
|
917
|
+
name: r,
|
|
918
|
+
falseIcon: R(() => e.falseIcon),
|
|
919
|
+
trueIcon: R(() => e.trueIcon),
|
|
920
|
+
readonly: R(() => e.readonly),
|
|
921
|
+
ripple: R(() => e.ripple),
|
|
922
|
+
type: R(() => e.type),
|
|
923
|
+
valueComparator: R(() => e.valueComparator)
|
|
924
924
|
}
|
|
925
925
|
}), de(() => b("div", {
|
|
926
926
|
class: re(["v-selection-control-group", {
|
|
@@ -943,38 +943,38 @@ const on = X({
|
|
|
943
943
|
function ka(e) {
|
|
944
944
|
const a = Pe(nn, void 0), {
|
|
945
945
|
densityClasses: t
|
|
946
|
-
} = Dt(e), n = Ve(e, "modelValue"), l = I(() => e.trueValue !== void 0 ? e.trueValue : e.value !== void 0 ? e.value : !0), u = I(() => e.falseValue !== void 0 ? e.falseValue : !1),
|
|
946
|
+
} = Dt(e), n = Ve(e, "modelValue"), l = I(() => e.trueValue !== void 0 ? e.trueValue : e.value !== void 0 ? e.value : !0), u = I(() => e.falseValue !== void 0 ? e.falseValue : !1), r = I(() => !!e.multiple || e.multiple == null && Array.isArray(n.value)), o = I({
|
|
947
947
|
get() {
|
|
948
948
|
const v = a ? a.modelValue.value : n.value;
|
|
949
|
-
return
|
|
949
|
+
return r.value ? Be(v).some((y) => e.valueComparator(y, l.value)) : e.valueComparator(v, l.value);
|
|
950
950
|
},
|
|
951
951
|
set(v) {
|
|
952
952
|
if (e.readonly) return;
|
|
953
953
|
const y = v ? l.value : u.value;
|
|
954
954
|
let h = y;
|
|
955
|
-
|
|
955
|
+
r.value && (h = v ? [...Be(n.value), y] : Be(n.value).filter((p) => !e.valueComparator(p, l.value))), a ? a.modelValue.value = h : n.value = h;
|
|
956
956
|
}
|
|
957
957
|
}), {
|
|
958
|
-
textColorClasses:
|
|
959
|
-
textColorStyles:
|
|
958
|
+
textColorClasses: i,
|
|
959
|
+
textColorStyles: s
|
|
960
960
|
} = kt(() => {
|
|
961
961
|
if (!(e.error || e.disabled))
|
|
962
|
-
return
|
|
962
|
+
return o.value ? e.color : e.baseColor;
|
|
963
963
|
}), {
|
|
964
964
|
backgroundColorClasses: d,
|
|
965
965
|
backgroundColorStyles: c
|
|
966
|
-
} = Tt(() =>
|
|
966
|
+
} = Tt(() => o.value && !e.error && !e.disabled ? e.color : e.baseColor), f = I(() => o.value ? e.trueIcon : e.falseIcon);
|
|
967
967
|
return {
|
|
968
968
|
group: a,
|
|
969
969
|
densityClasses: t,
|
|
970
970
|
trueValue: l,
|
|
971
971
|
falseValue: u,
|
|
972
|
-
model:
|
|
973
|
-
textColorClasses:
|
|
974
|
-
textColorStyles:
|
|
972
|
+
model: o,
|
|
973
|
+
textColorClasses: i,
|
|
974
|
+
textColorStyles: s,
|
|
975
975
|
backgroundColorClasses: d,
|
|
976
976
|
backgroundColorStyles: c,
|
|
977
|
-
icon:
|
|
977
|
+
icon: f
|
|
978
978
|
};
|
|
979
979
|
}
|
|
980
980
|
const yl = ie()({
|
|
@@ -995,57 +995,57 @@ const yl = ie()({
|
|
|
995
995
|
const {
|
|
996
996
|
group: l,
|
|
997
997
|
densityClasses: u,
|
|
998
|
-
icon:
|
|
999
|
-
model:
|
|
1000
|
-
textColorClasses:
|
|
1001
|
-
textColorStyles:
|
|
998
|
+
icon: r,
|
|
999
|
+
model: o,
|
|
1000
|
+
textColorClasses: i,
|
|
1001
|
+
textColorStyles: s,
|
|
1002
1002
|
backgroundColorClasses: d,
|
|
1003
1003
|
backgroundColorStyles: c,
|
|
1004
|
-
trueValue:
|
|
1005
|
-
} = ka(e), v = Xe(), y =
|
|
1004
|
+
trueValue: f
|
|
1005
|
+
} = ka(e), v = Xe(), y = ee(!1), h = ee(!1), p = G(), _ = R(() => e.id || `input-${v}`), w = R(() => !e.disabled && !e.readonly);
|
|
1006
1006
|
l?.onForceUpdate(() => {
|
|
1007
|
-
p.value && (p.value.checked =
|
|
1007
|
+
p.value && (p.value.checked = o.value);
|
|
1008
1008
|
});
|
|
1009
|
-
function C(
|
|
1010
|
-
|
|
1009
|
+
function C(A) {
|
|
1010
|
+
w.value && (y.value = !0, dt(A.target, ":focus-visible") !== !1 && (h.value = !0));
|
|
1011
1011
|
}
|
|
1012
1012
|
function F() {
|
|
1013
1013
|
y.value = !1, h.value = !1;
|
|
1014
1014
|
}
|
|
1015
|
-
function
|
|
1016
|
-
|
|
1015
|
+
function E(A) {
|
|
1016
|
+
A.stopPropagation();
|
|
1017
1017
|
}
|
|
1018
|
-
function U(
|
|
1019
|
-
if (!
|
|
1020
|
-
p.value && (p.value.checked =
|
|
1018
|
+
function U(A) {
|
|
1019
|
+
if (!w.value) {
|
|
1020
|
+
p.value && (p.value.checked = o.value);
|
|
1021
1021
|
return;
|
|
1022
1022
|
}
|
|
1023
|
-
e.readonly && l && ke(() => l.forceUpdate()),
|
|
1023
|
+
e.readonly && l && ke(() => l.forceUpdate()), o.value = A.target.checked;
|
|
1024
1024
|
}
|
|
1025
1025
|
return de(() => {
|
|
1026
|
-
const
|
|
1026
|
+
const A = n.label ? n.label({
|
|
1027
1027
|
label: e.label,
|
|
1028
1028
|
props: {
|
|
1029
|
-
for:
|
|
1029
|
+
for: _.value
|
|
1030
1030
|
}
|
|
1031
|
-
}) : e.label, [V, M] = Ol(t), D = b("input",
|
|
1031
|
+
}) : e.label, [V, M] = Ol(t), D = b("input", H({
|
|
1032
1032
|
ref: p,
|
|
1033
|
-
checked:
|
|
1033
|
+
checked: o.value,
|
|
1034
1034
|
disabled: !!e.disabled,
|
|
1035
|
-
id:
|
|
1035
|
+
id: _.value,
|
|
1036
1036
|
onBlur: F,
|
|
1037
1037
|
onFocus: C,
|
|
1038
1038
|
onInput: U,
|
|
1039
1039
|
"aria-disabled": !!e.disabled,
|
|
1040
1040
|
"aria-label": e.label,
|
|
1041
1041
|
type: e.type,
|
|
1042
|
-
value:
|
|
1042
|
+
value: f.value,
|
|
1043
1043
|
name: e.name,
|
|
1044
|
-
"aria-checked": e.type === "checkbox" ?
|
|
1044
|
+
"aria-checked": e.type === "checkbox" ? o.value : void 0
|
|
1045
1045
|
}, M), null);
|
|
1046
|
-
return b("div",
|
|
1046
|
+
return b("div", H({
|
|
1047
1047
|
class: ["v-selection-control", {
|
|
1048
|
-
"v-selection-control--dirty":
|
|
1048
|
+
"v-selection-control--dirty": o.value,
|
|
1049
1049
|
"v-selection-control--disabled": e.disabled,
|
|
1050
1050
|
"v-selection-control--error": e.error,
|
|
1051
1051
|
"v-selection-control--focused": y.value,
|
|
@@ -1055,37 +1055,37 @@ const yl = ie()({
|
|
|
1055
1055
|
}, V, {
|
|
1056
1056
|
style: e.style
|
|
1057
1057
|
}), [b("div", {
|
|
1058
|
-
class: re(["v-selection-control__wrapper",
|
|
1059
|
-
style: xe(
|
|
1058
|
+
class: re(["v-selection-control__wrapper", i.value]),
|
|
1059
|
+
style: xe(s.value)
|
|
1060
1060
|
}, [n.default?.({
|
|
1061
1061
|
backgroundColorClasses: d,
|
|
1062
1062
|
backgroundColorStyles: c
|
|
1063
1063
|
}), Ue(b("div", {
|
|
1064
1064
|
class: re(["v-selection-control__input"])
|
|
1065
1065
|
}, [n.input?.({
|
|
1066
|
-
model:
|
|
1067
|
-
textColorClasses:
|
|
1068
|
-
textColorStyles:
|
|
1066
|
+
model: o,
|
|
1067
|
+
textColorClasses: i,
|
|
1068
|
+
textColorStyles: s,
|
|
1069
1069
|
backgroundColorClasses: d,
|
|
1070
1070
|
backgroundColorStyles: c,
|
|
1071
1071
|
inputNode: D,
|
|
1072
|
-
icon:
|
|
1072
|
+
icon: r.value,
|
|
1073
1073
|
props: {
|
|
1074
1074
|
onFocus: C,
|
|
1075
1075
|
onBlur: F,
|
|
1076
|
-
id:
|
|
1076
|
+
id: _.value
|
|
1077
1077
|
}
|
|
1078
|
-
}) ?? b(ce, null, [
|
|
1078
|
+
}) ?? b(ce, null, [r.value && g(Se, {
|
|
1079
1079
|
key: "icon",
|
|
1080
|
-
icon:
|
|
1080
|
+
icon: r.value
|
|
1081
1081
|
}, null), D])]), [[lt, !e.disabled && !e.readonly && e.ripple, null, {
|
|
1082
1082
|
center: !0,
|
|
1083
1083
|
circle: !0
|
|
1084
|
-
}]])]),
|
|
1085
|
-
for:
|
|
1086
|
-
onClick:
|
|
1084
|
+
}]])]), A && g(ln, {
|
|
1085
|
+
for: _.value,
|
|
1086
|
+
onClick: E
|
|
1087
1087
|
}, {
|
|
1088
|
-
default: () => [
|
|
1088
|
+
default: () => [A]
|
|
1089
1089
|
})]);
|
|
1090
1090
|
}), {
|
|
1091
1091
|
isFocused: y,
|
|
@@ -1114,20 +1114,20 @@ const yl = ie()({
|
|
|
1114
1114
|
slots: t
|
|
1115
1115
|
} = a;
|
|
1116
1116
|
const n = Ve(e, "indeterminate"), l = Ve(e, "modelValue");
|
|
1117
|
-
function u(
|
|
1117
|
+
function u(i) {
|
|
1118
1118
|
n.value && (n.value = !1);
|
|
1119
1119
|
}
|
|
1120
|
-
const
|
|
1120
|
+
const r = R(() => n.value ? e.indeterminateIcon : e.falseIcon), o = R(() => n.value ? e.indeterminateIcon : e.trueIcon);
|
|
1121
1121
|
return de(() => {
|
|
1122
|
-
const
|
|
1123
|
-
return g(yl,
|
|
1122
|
+
const i = Ye(yl.filterProps(e), ["modelValue"]);
|
|
1123
|
+
return g(yl, H(i, {
|
|
1124
1124
|
modelValue: l.value,
|
|
1125
|
-
"onUpdate:modelValue": [(
|
|
1125
|
+
"onUpdate:modelValue": [(s) => l.value = s, u],
|
|
1126
1126
|
class: ["v-checkbox-btn", e.class],
|
|
1127
1127
|
style: e.style,
|
|
1128
1128
|
type: "checkbox",
|
|
1129
|
-
falseIcon:
|
|
1130
|
-
trueIcon:
|
|
1129
|
+
falseIcon: r.value,
|
|
1130
|
+
trueIcon: o.value,
|
|
1131
1131
|
"aria-checked": n.value ? "mixed" : void 0
|
|
1132
1132
|
}), t);
|
|
1133
1133
|
}), {};
|
|
@@ -1141,26 +1141,26 @@ function Ot(e) {
|
|
|
1141
1141
|
let {
|
|
1142
1142
|
name: l,
|
|
1143
1143
|
color: u,
|
|
1144
|
-
...
|
|
1144
|
+
...r
|
|
1145
1145
|
} = n;
|
|
1146
|
-
const
|
|
1146
|
+
const o = {
|
|
1147
1147
|
prepend: "prependAction",
|
|
1148
1148
|
prependInner: "prependAction",
|
|
1149
1149
|
append: "appendAction",
|
|
1150
1150
|
appendInner: "appendAction",
|
|
1151
1151
|
clear: "clear"
|
|
1152
|
-
}[l],
|
|
1153
|
-
function
|
|
1154
|
-
c.key !== "Enter" && c.key !== " " || (c.preventDefault(), c.stopPropagation(), $l(
|
|
1152
|
+
}[l], i = e[`onClick:${l}`];
|
|
1153
|
+
function s(c) {
|
|
1154
|
+
c.key !== "Enter" && c.key !== " " || (c.preventDefault(), c.stopPropagation(), $l(i, new PointerEvent("click", c)));
|
|
1155
1155
|
}
|
|
1156
|
-
const d =
|
|
1157
|
-
return g(Se,
|
|
1156
|
+
const d = i && o ? a(`$vuetify.input.${o}`, e.label ?? "") : void 0;
|
|
1157
|
+
return g(Se, H({
|
|
1158
1158
|
icon: e[`${l}Icon`],
|
|
1159
1159
|
"aria-label": d,
|
|
1160
|
-
onClick:
|
|
1161
|
-
onKeydown:
|
|
1160
|
+
onClick: i,
|
|
1161
|
+
onKeydown: s,
|
|
1162
1162
|
color: u
|
|
1163
|
-
},
|
|
1163
|
+
}, r), null);
|
|
1164
1164
|
}
|
|
1165
1165
|
return {
|
|
1166
1166
|
InputIcon: t
|
|
@@ -1188,7 +1188,7 @@ const Ca = X({
|
|
|
1188
1188
|
let {
|
|
1189
1189
|
slots: t
|
|
1190
1190
|
} = a;
|
|
1191
|
-
const n = I(() =>
|
|
1191
|
+
const n = I(() => Be(e.messages)), {
|
|
1192
1192
|
textColorClasses: l,
|
|
1193
1193
|
textColorStyles: u
|
|
1194
1194
|
} = kt(() => e.color);
|
|
@@ -1198,12 +1198,12 @@ const Ca = X({
|
|
|
1198
1198
|
class: re(["v-messages", l.value, e.class]),
|
|
1199
1199
|
style: xe([u.value, e.style])
|
|
1200
1200
|
}, {
|
|
1201
|
-
default: () => [e.active && n.value.map((
|
|
1201
|
+
default: () => [e.active && n.value.map((r, o) => b("div", {
|
|
1202
1202
|
class: "v-messages__message",
|
|
1203
|
-
key: `${
|
|
1203
|
+
key: `${o}-${n.value}`
|
|
1204
1204
|
}, [t.message ? t.message({
|
|
1205
|
-
message:
|
|
1206
|
-
}) :
|
|
1205
|
+
message: r
|
|
1206
|
+
}) : r]))]
|
|
1207
1207
|
})), {};
|
|
1208
1208
|
}
|
|
1209
1209
|
}), sn = X({
|
|
@@ -1212,7 +1212,7 @@ const Ca = X({
|
|
|
1212
1212
|
}, "focus");
|
|
1213
1213
|
function rn(e) {
|
|
1214
1214
|
let a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Nl();
|
|
1215
|
-
const t = Ve(e, "focused"), n =
|
|
1215
|
+
const t = Ve(e, "focused"), n = R(() => ({
|
|
1216
1216
|
[`${a}--focused`]: t.value
|
|
1217
1217
|
}));
|
|
1218
1218
|
function l() {
|
|
@@ -1245,7 +1245,7 @@ function wa(e) {
|
|
|
1245
1245
|
throw new Error("Could not find Vuetify rules injection");
|
|
1246
1246
|
return a.aliases;
|
|
1247
1247
|
}
|
|
1248
|
-
return a?.resolve(e) ??
|
|
1248
|
+
return a?.resolve(e) ?? R(e);
|
|
1249
1249
|
}
|
|
1250
1250
|
const _a = X({
|
|
1251
1251
|
disabled: {
|
|
@@ -1278,20 +1278,20 @@ const _a = X({
|
|
|
1278
1278
|
}, "validation");
|
|
1279
1279
|
function Pa(e) {
|
|
1280
1280
|
let a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Nl(), t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : Xe();
|
|
1281
|
-
const n = Ve(e, "modelValue"), l = I(() => e.validationValue === void 0 ? n.value : e.validationValue), u = $t(e),
|
|
1281
|
+
const n = Ve(e, "modelValue"), l = I(() => e.validationValue === void 0 ? n.value : e.validationValue), u = $t(e), r = wa(() => e.rules), o = G([]), i = ee(!0), s = I(() => !!(Be(n.value === "" ? null : n.value).length || Be(l.value === "" ? null : l.value).length)), d = I(() => e.errorMessages?.length ? Be(e.errorMessages).concat(o.value).slice(0, Math.max(0, Number(e.maxErrors))) : o.value), c = I(() => {
|
|
1282
1282
|
let F = (e.validateOn ?? u.validateOn?.value) || "input";
|
|
1283
1283
|
F === "lazy" && (F = "input lazy"), F === "eager" && (F = "input eager");
|
|
1284
|
-
const
|
|
1284
|
+
const E = new Set(F?.split(" ") ?? []);
|
|
1285
1285
|
return {
|
|
1286
|
-
input:
|
|
1287
|
-
blur:
|
|
1288
|
-
invalidInput:
|
|
1289
|
-
lazy:
|
|
1290
|
-
eager:
|
|
1286
|
+
input: E.has("input"),
|
|
1287
|
+
blur: E.has("blur") || E.has("input") || E.has("invalid-input"),
|
|
1288
|
+
invalidInput: E.has("invalid-input"),
|
|
1289
|
+
lazy: E.has("lazy"),
|
|
1290
|
+
eager: E.has("eager")
|
|
1291
1291
|
};
|
|
1292
|
-
}),
|
|
1293
|
-
[`${a}--error`]:
|
|
1294
|
-
[`${a}--dirty`]:
|
|
1292
|
+
}), f = I(() => e.error || e.errorMessages?.length ? !1 : e.rules.length ? i.value ? o.value.length || c.value.lazy ? null : !0 : !o.value.length : !0), v = ee(!1), y = I(() => ({
|
|
1293
|
+
[`${a}--error`]: f.value === !1,
|
|
1294
|
+
[`${a}--dirty`]: s.value,
|
|
1295
1295
|
[`${a}--disabled`]: u.isDisabled.value,
|
|
1296
1296
|
[`${a}--readonly`]: u.isReadonly.value
|
|
1297
1297
|
})), h = Ll("validation"), p = I(() => e.name ?? $(t));
|
|
@@ -1300,20 +1300,20 @@ function Pa(e) {
|
|
|
1300
1300
|
id: p.value,
|
|
1301
1301
|
vm: h,
|
|
1302
1302
|
validate: C,
|
|
1303
|
-
reset:
|
|
1304
|
-
resetValidation:
|
|
1303
|
+
reset: _,
|
|
1304
|
+
resetValidation: w
|
|
1305
1305
|
});
|
|
1306
1306
|
}), kl(() => {
|
|
1307
1307
|
u.unregister?.(p.value);
|
|
1308
1308
|
}), at(async () => {
|
|
1309
|
-
c.value.lazy || await C(!c.value.eager), u.update?.(p.value,
|
|
1310
|
-
}), jt(() => c.value.input || c.value.invalidInput &&
|
|
1309
|
+
c.value.lazy || await C(!c.value.eager), u.update?.(p.value, f.value, d.value);
|
|
1310
|
+
}), jt(() => c.value.input || c.value.invalidInput && f.value === !1, () => {
|
|
1311
1311
|
se(l, () => {
|
|
1312
1312
|
if (l.value != null)
|
|
1313
1313
|
C();
|
|
1314
1314
|
else if (e.focused) {
|
|
1315
|
-
const F = se(() => e.focused, (
|
|
1316
|
-
|
|
1315
|
+
const F = se(() => e.focused, (E) => {
|
|
1316
|
+
E || C(), F();
|
|
1317
1317
|
});
|
|
1318
1318
|
}
|
|
1319
1319
|
});
|
|
@@ -1321,21 +1321,21 @@ function Pa(e) {
|
|
|
1321
1321
|
se(() => e.focused, (F) => {
|
|
1322
1322
|
F || C();
|
|
1323
1323
|
});
|
|
1324
|
-
}), se([
|
|
1325
|
-
u.update?.(p.value,
|
|
1324
|
+
}), se([f, d], () => {
|
|
1325
|
+
u.update?.(p.value, f.value, d.value);
|
|
1326
1326
|
});
|
|
1327
|
-
async function
|
|
1328
|
-
n.value = null, await ke(), await
|
|
1327
|
+
async function _() {
|
|
1328
|
+
n.value = null, await ke(), await w();
|
|
1329
1329
|
}
|
|
1330
|
-
async function
|
|
1331
|
-
|
|
1330
|
+
async function w() {
|
|
1331
|
+
i.value = !0, c.value.lazy ? o.value = [] : await C(!c.value.eager);
|
|
1332
1332
|
}
|
|
1333
1333
|
async function C() {
|
|
1334
1334
|
let F = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1;
|
|
1335
|
-
const
|
|
1335
|
+
const E = [];
|
|
1336
1336
|
v.value = !0;
|
|
1337
|
-
for (const U of
|
|
1338
|
-
if (
|
|
1337
|
+
for (const U of r.value) {
|
|
1338
|
+
if (E.length >= Number(e.maxErrors ?? 1))
|
|
1339
1339
|
break;
|
|
1340
1340
|
const V = await (typeof U == "function" ? U : () => U)(l.value);
|
|
1341
1341
|
if (V !== !0) {
|
|
@@ -1343,21 +1343,21 @@ function Pa(e) {
|
|
|
1343
1343
|
console.warn(`${V} is not a valid value. Rule functions must return boolean true or a string.`);
|
|
1344
1344
|
continue;
|
|
1345
1345
|
}
|
|
1346
|
-
|
|
1346
|
+
E.push(V || "");
|
|
1347
1347
|
}
|
|
1348
1348
|
}
|
|
1349
|
-
return
|
|
1349
|
+
return o.value = E, v.value = !1, i.value = F, o.value;
|
|
1350
1350
|
}
|
|
1351
1351
|
return {
|
|
1352
1352
|
errorMessages: d,
|
|
1353
|
-
isDirty:
|
|
1353
|
+
isDirty: s,
|
|
1354
1354
|
isDisabled: u.isDisabled,
|
|
1355
1355
|
isReadonly: u.isReadonly,
|
|
1356
|
-
isPristine:
|
|
1357
|
-
isValid:
|
|
1356
|
+
isPristine: i,
|
|
1357
|
+
isValid: f,
|
|
1358
1358
|
isValidating: v,
|
|
1359
|
-
reset:
|
|
1360
|
-
resetValidation:
|
|
1359
|
+
reset: _,
|
|
1360
|
+
resetValidation: w,
|
|
1361
1361
|
validate: C,
|
|
1362
1362
|
validationClasses: y
|
|
1363
1363
|
};
|
|
@@ -1411,41 +1411,41 @@ const cn = X({
|
|
|
1411
1411
|
const {
|
|
1412
1412
|
densityClasses: u
|
|
1413
1413
|
} = Dt(e), {
|
|
1414
|
-
dimensionStyles:
|
|
1414
|
+
dimensionStyles: r
|
|
1415
1415
|
} = bt(e), {
|
|
1416
|
-
themeClasses:
|
|
1416
|
+
themeClasses: o
|
|
1417
1417
|
} = ot(e), {
|
|
1418
|
-
rtlClasses:
|
|
1418
|
+
rtlClasses: i
|
|
1419
1419
|
} = Ft(), {
|
|
1420
|
-
InputIcon:
|
|
1420
|
+
InputIcon: s
|
|
1421
1421
|
} = Ot(e), d = Xe(), c = I(() => e.id || `input-${d}`), {
|
|
1422
|
-
errorMessages:
|
|
1422
|
+
errorMessages: f,
|
|
1423
1423
|
isDirty: v,
|
|
1424
1424
|
isDisabled: y,
|
|
1425
1425
|
isReadonly: h,
|
|
1426
1426
|
isPristine: p,
|
|
1427
|
-
isValid:
|
|
1428
|
-
isValidating:
|
|
1427
|
+
isValid: _,
|
|
1428
|
+
isValidating: w,
|
|
1429
1429
|
reset: C,
|
|
1430
1430
|
resetValidation: F,
|
|
1431
|
-
validate:
|
|
1431
|
+
validate: E,
|
|
1432
1432
|
validationClasses: U
|
|
1433
|
-
} = Pa(e, "v-input", c),
|
|
1433
|
+
} = Pa(e, "v-input", c), A = I(() => e.errorMessages?.length || !p.value && f.value.length ? f.value : e.hint && (e.persistentHint || e.focused) ? e.hint : e.messages), V = R(() => A.value.length > 0), M = R(() => !e.hideDetails || e.hideDetails === "auto" && (V.value || !!n.details)), D = I(() => M.value ? `${c.value}-messages` : void 0), N = I(() => ({
|
|
1434
1434
|
id: c,
|
|
1435
1435
|
messagesId: D,
|
|
1436
1436
|
isDirty: v,
|
|
1437
1437
|
isDisabled: y,
|
|
1438
1438
|
isReadonly: h,
|
|
1439
1439
|
isPristine: p,
|
|
1440
|
-
isValid:
|
|
1441
|
-
isValidating:
|
|
1440
|
+
isValid: _,
|
|
1441
|
+
isValidating: w,
|
|
1442
1442
|
hasDetails: M,
|
|
1443
1443
|
reset: C,
|
|
1444
1444
|
resetValidation: F,
|
|
1445
|
-
validate:
|
|
1446
|
-
})),
|
|
1445
|
+
validate: E
|
|
1446
|
+
})), ne = R(() => e.error || e.disabled ? void 0 : e.focused ? e.color : e.baseColor), z = R(() => {
|
|
1447
1447
|
if (e.iconColor)
|
|
1448
|
-
return e.iconColor === !0 ?
|
|
1448
|
+
return e.iconColor === !0 ? ne.value : e.iconColor;
|
|
1449
1449
|
});
|
|
1450
1450
|
return de(() => {
|
|
1451
1451
|
const W = !!(n.prepend || e.prependIcon), j = !!(n.append || e.appendIcon);
|
|
@@ -1455,24 +1455,24 @@ const cn = X({
|
|
|
1455
1455
|
"v-input--focused": e.focused,
|
|
1456
1456
|
"v-input--glow": e.glow,
|
|
1457
1457
|
"v-input--hide-spin-buttons": e.hideSpinButtons
|
|
1458
|
-
}, u.value,
|
|
1459
|
-
style: xe([
|
|
1458
|
+
}, u.value, o.value, i.value, U.value, e.class]),
|
|
1459
|
+
style: xe([r.value, e.style])
|
|
1460
1460
|
}, [W && b("div", {
|
|
1461
1461
|
key: "prepend",
|
|
1462
1462
|
class: "v-input__prepend"
|
|
1463
|
-
}, [n.prepend ? n.prepend(
|
|
1463
|
+
}, [n.prepend ? n.prepend(N.value) : e.prependIcon && g(s, {
|
|
1464
1464
|
key: "prepend-icon",
|
|
1465
1465
|
name: "prepend",
|
|
1466
|
-
color:
|
|
1466
|
+
color: z.value
|
|
1467
1467
|
}, null)]), n.default && b("div", {
|
|
1468
1468
|
class: "v-input__control"
|
|
1469
|
-
}, [n.default?.(
|
|
1469
|
+
}, [n.default?.(N.value)]), j && b("div", {
|
|
1470
1470
|
key: "append",
|
|
1471
1471
|
class: "v-input__append"
|
|
1472
|
-
}, [n.append ? n.append(
|
|
1472
|
+
}, [n.append ? n.append(N.value) : e.appendIcon && g(s, {
|
|
1473
1473
|
key: "append-icon",
|
|
1474
1474
|
name: "append",
|
|
1475
|
-
color:
|
|
1475
|
+
color: z.value
|
|
1476
1476
|
}, null)]), M.value && b("div", {
|
|
1477
1477
|
id: D.value,
|
|
1478
1478
|
class: "v-input__details",
|
|
@@ -1480,16 +1480,16 @@ const cn = X({
|
|
|
1480
1480
|
"aria-live": "polite"
|
|
1481
1481
|
}, [g(Va, {
|
|
1482
1482
|
active: V.value,
|
|
1483
|
-
messages:
|
|
1483
|
+
messages: A.value
|
|
1484
1484
|
}, {
|
|
1485
1485
|
message: n.message
|
|
1486
|
-
}), n.details?.(
|
|
1486
|
+
}), n.details?.(N.value)])]);
|
|
1487
1487
|
}), {
|
|
1488
1488
|
reset: C,
|
|
1489
1489
|
resetValidation: F,
|
|
1490
|
-
validate:
|
|
1491
|
-
isValid:
|
|
1492
|
-
errorMessages:
|
|
1490
|
+
validate: E,
|
|
1491
|
+
isValid: _,
|
|
1492
|
+
errorMessages: f
|
|
1493
1493
|
};
|
|
1494
1494
|
}
|
|
1495
1495
|
}), Aa = X({
|
|
@@ -1514,7 +1514,7 @@ const cn = X({
|
|
|
1514
1514
|
let {
|
|
1515
1515
|
slots: t
|
|
1516
1516
|
} = a;
|
|
1517
|
-
const n =
|
|
1517
|
+
const n = R(() => e.max ? `${e.value} / ${e.max}` : String(e.value));
|
|
1518
1518
|
return de(() => g(nl, {
|
|
1519
1519
|
transition: e.transition
|
|
1520
1520
|
}, {
|
|
@@ -1611,45 +1611,45 @@ const cn = X({
|
|
|
1611
1611
|
const {
|
|
1612
1612
|
themeClasses: u
|
|
1613
1613
|
} = ot(e), {
|
|
1614
|
-
loaderClasses:
|
|
1614
|
+
loaderClasses: r
|
|
1615
1615
|
} = Hl(e), {
|
|
1616
|
-
focusClasses:
|
|
1617
|
-
isFocused:
|
|
1618
|
-
focus:
|
|
1616
|
+
focusClasses: o,
|
|
1617
|
+
isFocused: i,
|
|
1618
|
+
focus: s,
|
|
1619
1619
|
blur: d
|
|
1620
1620
|
} = rn(e), {
|
|
1621
1621
|
InputIcon: c
|
|
1622
1622
|
} = Ot(e), {
|
|
1623
|
-
roundedClasses:
|
|
1623
|
+
roundedClasses: f
|
|
1624
1624
|
} = gt(e), {
|
|
1625
1625
|
rtlClasses: v
|
|
1626
|
-
} = Ft(), y =
|
|
1627
|
-
if (!(!e.iconColor || e.glow && !
|
|
1626
|
+
} = Ft(), y = R(() => e.dirty || e.active), h = R(() => !!(e.label || l.label)), p = R(() => !e.singleLine && h.value), _ = Xe(), w = I(() => e.id || `input-${_}`), C = R(() => e.details ? `${w.value}-messages` : void 0), F = G(), E = G(), U = G(), A = I(() => ["plain", "underlined"].includes(e.variant)), V = I(() => e.error || e.disabled ? void 0 : y.value && i.value ? e.color : e.baseColor), M = I(() => {
|
|
1627
|
+
if (!(!e.iconColor || e.glow && !i.value))
|
|
1628
1628
|
return e.iconColor === !0 ? V.value : e.iconColor;
|
|
1629
1629
|
}), {
|
|
1630
1630
|
backgroundColorClasses: D,
|
|
1631
|
-
backgroundColorStyles:
|
|
1631
|
+
backgroundColorStyles: N
|
|
1632
1632
|
} = Tt(() => e.bgColor), {
|
|
1633
|
-
textColorClasses:
|
|
1634
|
-
textColorStyles:
|
|
1633
|
+
textColorClasses: ne,
|
|
1634
|
+
textColorStyles: z
|
|
1635
1635
|
} = kt(V);
|
|
1636
|
-
se(y, (
|
|
1636
|
+
se(y, (K) => {
|
|
1637
1637
|
if (p.value && !xl()) {
|
|
1638
|
-
const fe = F.value.$el,
|
|
1638
|
+
const fe = F.value.$el, B = E.value.$el;
|
|
1639
1639
|
requestAnimationFrame(() => {
|
|
1640
|
-
const O = $n(fe), k = new Mn(
|
|
1640
|
+
const O = $n(fe), k = new Mn(B), m = k.x - O.x, P = k.y - O.y - (O.height / 2 - k.height / 2), J = k.width / 0.75, ve = Math.abs(J - O.width) > 1 ? {
|
|
1641
1641
|
maxWidth: et(J)
|
|
1642
|
-
} : void 0, ge = getComputedStyle(fe), pe = getComputedStyle(
|
|
1643
|
-
fe.style.visibility = "visible",
|
|
1644
|
-
transform: `translate(${
|
|
1642
|
+
} : void 0, ge = getComputedStyle(fe), pe = getComputedStyle(B), Ie = parseFloat(ge.transitionDuration) * 1e3 || 150, De = parseFloat(pe.getPropertyValue("--v-field-label-scale")), je = pe.getPropertyValue("color");
|
|
1643
|
+
fe.style.visibility = "visible", B.style.visibility = "hidden", Nn(fe, {
|
|
1644
|
+
transform: `translate(${m}px, ${P}px) scale(${De})`,
|
|
1645
1645
|
color: je,
|
|
1646
1646
|
...ve
|
|
1647
1647
|
}, {
|
|
1648
1648
|
duration: Ie,
|
|
1649
1649
|
easing: Ln,
|
|
1650
|
-
direction:
|
|
1650
|
+
direction: K ? "normal" : "reverse"
|
|
1651
1651
|
}).finished.then(() => {
|
|
1652
|
-
fe.style.removeProperty("visibility"),
|
|
1652
|
+
fe.style.removeProperty("visibility"), B.style.removeProperty("visibility");
|
|
1653
1653
|
});
|
|
1654
1654
|
});
|
|
1655
1655
|
}
|
|
@@ -1658,40 +1658,40 @@ const cn = X({
|
|
|
1658
1658
|
});
|
|
1659
1659
|
const W = I(() => ({
|
|
1660
1660
|
isActive: y,
|
|
1661
|
-
isFocused:
|
|
1661
|
+
isFocused: i,
|
|
1662
1662
|
controlRef: U,
|
|
1663
1663
|
iconColor: M,
|
|
1664
1664
|
blur: d,
|
|
1665
|
-
focus:
|
|
1666
|
-
})), j =
|
|
1667
|
-
const
|
|
1665
|
+
focus: s
|
|
1666
|
+
})), j = R(() => {
|
|
1667
|
+
const K = !y.value;
|
|
1668
1668
|
return {
|
|
1669
|
-
"aria-hidden":
|
|
1670
|
-
for:
|
|
1669
|
+
"aria-hidden": K,
|
|
1670
|
+
for: K ? void 0 : w.value
|
|
1671
1671
|
};
|
|
1672
|
-
}), ue =
|
|
1673
|
-
const
|
|
1672
|
+
}), ue = R(() => {
|
|
1673
|
+
const K = p.value && y.value;
|
|
1674
1674
|
return {
|
|
1675
|
-
"aria-hidden":
|
|
1676
|
-
for:
|
|
1675
|
+
"aria-hidden": K,
|
|
1676
|
+
for: K ? void 0 : w.value
|
|
1677
1677
|
};
|
|
1678
1678
|
});
|
|
1679
|
-
function q(
|
|
1680
|
-
|
|
1679
|
+
function q(K) {
|
|
1680
|
+
K.target !== document.activeElement && K.preventDefault();
|
|
1681
1681
|
}
|
|
1682
1682
|
return de(() => {
|
|
1683
|
-
const
|
|
1683
|
+
const K = e.variant === "outlined", fe = !!(l["prepend-inner"] || e.prependInnerIcon), B = !!(e.clearable || l.clear) && !e.disabled, O = !!(l["append-inner"] || e.appendInnerIcon || B), k = () => l.label ? l.label({
|
|
1684
1684
|
...W.value,
|
|
1685
1685
|
label: e.label,
|
|
1686
1686
|
props: {
|
|
1687
|
-
for:
|
|
1687
|
+
for: w.value
|
|
1688
1688
|
}
|
|
1689
1689
|
}) : e.label;
|
|
1690
|
-
return b("div",
|
|
1690
|
+
return b("div", H({
|
|
1691
1691
|
class: ["v-field", {
|
|
1692
1692
|
"v-field--active": y.value,
|
|
1693
1693
|
"v-field--appended": O,
|
|
1694
|
-
"v-field--center-affix": e.centerAffix ?? !
|
|
1694
|
+
"v-field--center-affix": e.centerAffix ?? !A.value,
|
|
1695
1695
|
"v-field--disabled": e.disabled,
|
|
1696
1696
|
"v-field--dirty": e.dirty,
|
|
1697
1697
|
"v-field--error": e.error,
|
|
@@ -1704,8 +1704,8 @@ const cn = X({
|
|
|
1704
1704
|
"v-field--single-line": e.singleLine,
|
|
1705
1705
|
"v-field--no-label": !k(),
|
|
1706
1706
|
[`v-field--variant-${e.variant}`]: !0
|
|
1707
|
-
}, u.value, D.value,
|
|
1708
|
-
style: [
|
|
1707
|
+
}, u.value, D.value, o.value, r.value, f.value, v.value, e.class],
|
|
1708
|
+
style: [N.value, e.style],
|
|
1709
1709
|
onClick: q
|
|
1710
1710
|
}, t), [b("div", {
|
|
1711
1711
|
class: "v-field__overlay"
|
|
@@ -1725,16 +1725,16 @@ const cn = X({
|
|
|
1725
1725
|
}, null)]), b("div", {
|
|
1726
1726
|
class: "v-field__field",
|
|
1727
1727
|
"data-no-activator": ""
|
|
1728
|
-
}, [["filled", "solo", "solo-inverted", "solo-filled"].includes(e.variant) && p.value && g(Ct,
|
|
1728
|
+
}, [["filled", "solo", "solo-inverted", "solo-filled"].includes(e.variant) && p.value && g(Ct, H({
|
|
1729
1729
|
key: "floating-label",
|
|
1730
|
-
ref:
|
|
1731
|
-
class: [
|
|
1730
|
+
ref: E,
|
|
1731
|
+
class: [ne.value],
|
|
1732
1732
|
floating: !0
|
|
1733
1733
|
}, j.value, {
|
|
1734
|
-
style:
|
|
1734
|
+
style: z.value
|
|
1735
1735
|
}), {
|
|
1736
1736
|
default: () => [k()]
|
|
1737
|
-
}), h.value && g(Ct,
|
|
1737
|
+
}), h.value && g(Ct, H({
|
|
1738
1738
|
key: "label",
|
|
1739
1739
|
ref: F,
|
|
1740
1740
|
id: e.labelId
|
|
@@ -1743,23 +1743,23 @@ const cn = X({
|
|
|
1743
1743
|
}), l.default?.({
|
|
1744
1744
|
...W.value,
|
|
1745
1745
|
props: {
|
|
1746
|
-
id:
|
|
1746
|
+
id: w.value,
|
|
1747
1747
|
class: "v-field__input",
|
|
1748
1748
|
"aria-describedby": C.value
|
|
1749
1749
|
},
|
|
1750
|
-
focus:
|
|
1750
|
+
focus: s,
|
|
1751
1751
|
blur: d
|
|
1752
1752
|
}) ?? b("div", {
|
|
1753
|
-
id:
|
|
1753
|
+
id: w.value,
|
|
1754
1754
|
class: "v-field__input",
|
|
1755
1755
|
"aria-describedby": C.value
|
|
1756
|
-
}, null)]),
|
|
1756
|
+
}, null)]), B && g(Tl, {
|
|
1757
1757
|
key: "clear"
|
|
1758
1758
|
}, {
|
|
1759
1759
|
default: () => [Ue(b("div", {
|
|
1760
1760
|
class: "v-field__clearable",
|
|
1761
|
-
onMousedown: (
|
|
1762
|
-
|
|
1761
|
+
onMousedown: (m) => {
|
|
1762
|
+
m.preventDefault(), m.stopPropagation();
|
|
1763
1763
|
}
|
|
1764
1764
|
}, [g(Fe, {
|
|
1765
1765
|
defaults: {
|
|
@@ -1771,14 +1771,14 @@ const cn = X({
|
|
|
1771
1771
|
default: () => [l.clear ? l.clear({
|
|
1772
1772
|
...W.value,
|
|
1773
1773
|
props: {
|
|
1774
|
-
onFocus:
|
|
1774
|
+
onFocus: s,
|
|
1775
1775
|
onBlur: d,
|
|
1776
1776
|
onClick: e["onClick:clear"],
|
|
1777
1777
|
tabindex: -1
|
|
1778
1778
|
}
|
|
1779
1779
|
}) : g(c, {
|
|
1780
1780
|
name: "clear",
|
|
1781
|
-
onFocus:
|
|
1781
|
+
onFocus: s,
|
|
1782
1782
|
onBlur: d,
|
|
1783
1783
|
tabindex: -1
|
|
1784
1784
|
}, null)]
|
|
@@ -1791,21 +1791,21 @@ const cn = X({
|
|
|
1791
1791
|
name: "appendInner",
|
|
1792
1792
|
color: M.value
|
|
1793
1793
|
}, null)]), b("div", {
|
|
1794
|
-
class: re(["v-field__outline",
|
|
1795
|
-
style: xe(
|
|
1796
|
-
}, [
|
|
1794
|
+
class: re(["v-field__outline", ne.value]),
|
|
1795
|
+
style: xe(z.value)
|
|
1796
|
+
}, [K && b(ce, null, [b("div", {
|
|
1797
1797
|
class: "v-field__outline__start"
|
|
1798
1798
|
}, null), p.value && b("div", {
|
|
1799
1799
|
class: "v-field__outline__notch"
|
|
1800
|
-
}, [g(Ct,
|
|
1801
|
-
ref:
|
|
1800
|
+
}, [g(Ct, H({
|
|
1801
|
+
ref: E,
|
|
1802
1802
|
floating: !0
|
|
1803
1803
|
}, j.value), {
|
|
1804
1804
|
default: () => [k()]
|
|
1805
1805
|
})]), b("div", {
|
|
1806
1806
|
class: "v-field__outline__end"
|
|
1807
|
-
}, null)]),
|
|
1808
|
-
ref:
|
|
1807
|
+
}, null)]), A.value && p.value && g(Ct, H({
|
|
1808
|
+
ref: E,
|
|
1809
1809
|
floating: !0
|
|
1810
1810
|
}, j.value), {
|
|
1811
1811
|
default: () => [k()]
|
|
@@ -1819,10 +1819,10 @@ const cn = X({
|
|
|
1819
1819
|
autocomplete: String
|
|
1820
1820
|
}, "autocomplete");
|
|
1821
1821
|
function vn(e) {
|
|
1822
|
-
const a = Xe(), t =
|
|
1822
|
+
const a = Xe(), t = ee(0), n = R(() => e.autocomplete === "suppress"), l = R(() => {
|
|
1823
1823
|
if (e.name)
|
|
1824
1824
|
return n.value ? `${e.name}-${a}-${t.value}` : e.name;
|
|
1825
|
-
}), u =
|
|
1825
|
+
}), u = R(() => n.value ? "off" : e.autocomplete);
|
|
1826
1826
|
return {
|
|
1827
1827
|
isSuppressing: n,
|
|
1828
1828
|
fieldAutocomplete: u,
|
|
@@ -1877,63 +1877,63 @@ const Ea = ["color", "file", "time", "date", "datetime-local", "week", "month"],
|
|
|
1877
1877
|
emit: n,
|
|
1878
1878
|
slots: l
|
|
1879
1879
|
} = a;
|
|
1880
|
-
const u = Ve(e, "modelValue", void 0, (
|
|
1881
|
-
isFocused:
|
|
1882
|
-
focus:
|
|
1883
|
-
blur:
|
|
1880
|
+
const u = Ve(e, "modelValue", void 0, (A) => Object.is(A, -0) ? "-0" : A), {
|
|
1881
|
+
isFocused: r,
|
|
1882
|
+
focus: o,
|
|
1883
|
+
blur: i
|
|
1884
1884
|
} = rn(e), {
|
|
1885
|
-
onIntersect:
|
|
1885
|
+
onIntersect: s
|
|
1886
1886
|
} = Ra(e), d = I(() => typeof e.counterValue == "function" ? e.counterValue(u.value) : typeof e.counterValue == "number" ? e.counterValue : (u.value ?? "").toString().length), c = I(() => {
|
|
1887
1887
|
if (t.maxlength) return t.maxlength;
|
|
1888
1888
|
if (!(!e.counter || typeof e.counter != "number" && typeof e.counter != "string"))
|
|
1889
1889
|
return e.counter;
|
|
1890
|
-
}),
|
|
1891
|
-
function
|
|
1892
|
-
p.isSuppressing.value && p.update(),
|
|
1890
|
+
}), f = I(() => ["plain", "underlined"].includes(e.variant)), v = G(), y = G(), h = G(), p = vn(e), _ = I(() => Ea.includes(e.type) || e.persistentPlaceholder || r.value || e.active);
|
|
1891
|
+
function w() {
|
|
1892
|
+
p.isSuppressing.value && p.update(), r.value || o(), ke(() => {
|
|
1893
1893
|
h.value !== document.activeElement && h.value?.focus();
|
|
1894
1894
|
});
|
|
1895
1895
|
}
|
|
1896
|
-
function C(
|
|
1897
|
-
n("mousedown:control",
|
|
1896
|
+
function C(A) {
|
|
1897
|
+
n("mousedown:control", A), A.target !== h.value && (w(), A.preventDefault());
|
|
1898
1898
|
}
|
|
1899
|
-
function F(
|
|
1900
|
-
n("click:control",
|
|
1899
|
+
function F(A) {
|
|
1900
|
+
n("click:control", A);
|
|
1901
1901
|
}
|
|
1902
|
-
function
|
|
1903
|
-
|
|
1904
|
-
V(), $l(e["onClick:clear"],
|
|
1902
|
+
function E(A, V) {
|
|
1903
|
+
A.stopPropagation(), w(), ke(() => {
|
|
1904
|
+
V(), $l(e["onClick:clear"], A);
|
|
1905
1905
|
});
|
|
1906
1906
|
}
|
|
1907
|
-
function U(
|
|
1908
|
-
const V =
|
|
1907
|
+
function U(A) {
|
|
1908
|
+
const V = A.target;
|
|
1909
1909
|
if (!(e.modelModifiers?.trim && ["text", "search", "password", "tel", "url"].includes(e.type))) {
|
|
1910
1910
|
u.value = V.value;
|
|
1911
1911
|
return;
|
|
1912
1912
|
}
|
|
1913
|
-
const M = V.value, D = V.selectionStart,
|
|
1913
|
+
const M = V.value, D = V.selectionStart, N = V.selectionEnd;
|
|
1914
1914
|
u.value = M, ke(() => {
|
|
1915
|
-
let
|
|
1916
|
-
M.trimStart().length === V.value.length && (
|
|
1915
|
+
let ne = 0;
|
|
1916
|
+
M.trimStart().length === V.value.length && (ne = M.length - V.value.length), D != null && (V.selectionStart = D - ne), N != null && (V.selectionEnd = N - ne);
|
|
1917
1917
|
});
|
|
1918
1918
|
}
|
|
1919
1919
|
return de(() => {
|
|
1920
|
-
const
|
|
1921
|
-
modelValue:
|
|
1922
|
-
...
|
|
1923
|
-
} = hl.filterProps(e),
|
|
1924
|
-
return g(hl,
|
|
1920
|
+
const A = !!(l.counter || e.counter !== !1 && e.counter != null), V = !!(A || l.details), [M, D] = Ol(t), {
|
|
1921
|
+
modelValue: N,
|
|
1922
|
+
...ne
|
|
1923
|
+
} = hl.filterProps(e), z = bl.filterProps(e);
|
|
1924
|
+
return g(hl, H({
|
|
1925
1925
|
ref: v,
|
|
1926
1926
|
modelValue: u.value,
|
|
1927
1927
|
"onUpdate:modelValue": (W) => u.value = W,
|
|
1928
1928
|
class: ["v-text-field", {
|
|
1929
1929
|
"v-text-field--prefixed": e.prefix,
|
|
1930
1930
|
"v-text-field--suffixed": e.suffix,
|
|
1931
|
-
"v-input--plain-underlined":
|
|
1931
|
+
"v-input--plain-underlined": f.value
|
|
1932
1932
|
}, e.class],
|
|
1933
1933
|
style: e.style
|
|
1934
|
-
}, M,
|
|
1935
|
-
centerAffix: !
|
|
1936
|
-
focused:
|
|
1934
|
+
}, M, ne, {
|
|
1935
|
+
centerAffix: !f.value,
|
|
1936
|
+
focused: r.value
|
|
1937
1937
|
}), {
|
|
1938
1938
|
...l,
|
|
1939
1939
|
default: (W) => {
|
|
@@ -1941,42 +1941,42 @@ const Ea = ["color", "file", "time", "date", "datetime-local", "week", "month"],
|
|
|
1941
1941
|
id: j,
|
|
1942
1942
|
isDisabled: ue,
|
|
1943
1943
|
isDirty: q,
|
|
1944
|
-
isReadonly:
|
|
1944
|
+
isReadonly: K,
|
|
1945
1945
|
isValid: fe,
|
|
1946
|
-
hasDetails:
|
|
1946
|
+
hasDetails: B,
|
|
1947
1947
|
reset: O
|
|
1948
1948
|
} = W;
|
|
1949
|
-
return g(bl,
|
|
1949
|
+
return g(bl, H({
|
|
1950
1950
|
ref: y,
|
|
1951
1951
|
onMousedown: C,
|
|
1952
1952
|
onClick: F,
|
|
1953
|
-
"onClick:clear": (k) =>
|
|
1953
|
+
"onClick:clear": (k) => E(k, O),
|
|
1954
1954
|
role: e.role
|
|
1955
|
-
}, Ye(
|
|
1955
|
+
}, Ye(z, ["onClick:clear"]), {
|
|
1956
1956
|
id: j.value,
|
|
1957
1957
|
labelId: `${j.value}-label`,
|
|
1958
|
-
active:
|
|
1958
|
+
active: _.value || q.value,
|
|
1959
1959
|
dirty: q.value || e.dirty,
|
|
1960
1960
|
disabled: ue.value,
|
|
1961
|
-
focused:
|
|
1962
|
-
details:
|
|
1961
|
+
focused: r.value,
|
|
1962
|
+
details: B.value,
|
|
1963
1963
|
error: fe.value === !1
|
|
1964
1964
|
}), {
|
|
1965
1965
|
...l,
|
|
1966
1966
|
default: (k) => {
|
|
1967
1967
|
let {
|
|
1968
1968
|
props: {
|
|
1969
|
-
class:
|
|
1970
|
-
...
|
|
1969
|
+
class: m,
|
|
1970
|
+
...P
|
|
1971
1971
|
},
|
|
1972
1972
|
controlRef: J
|
|
1973
1973
|
} = k;
|
|
1974
|
-
const ve = b("input",
|
|
1974
|
+
const ve = b("input", H({
|
|
1975
1975
|
ref: (ge) => h.value = J.value = ge,
|
|
1976
1976
|
value: u.value,
|
|
1977
1977
|
onInput: U,
|
|
1978
1978
|
autofocus: e.autofocus,
|
|
1979
|
-
readonly:
|
|
1979
|
+
readonly: K.value,
|
|
1980
1980
|
disabled: ue.value,
|
|
1981
1981
|
name: p.fieldName.value,
|
|
1982
1982
|
autocomplete: p.fieldAutocomplete.value,
|
|
@@ -1984,22 +1984,22 @@ const Ea = ["color", "file", "time", "date", "datetime-local", "week", "month"],
|
|
|
1984
1984
|
size: 1,
|
|
1985
1985
|
role: e.role,
|
|
1986
1986
|
type: e.type,
|
|
1987
|
-
onFocus:
|
|
1988
|
-
onBlur:
|
|
1987
|
+
onFocus: o,
|
|
1988
|
+
onBlur: i,
|
|
1989
1989
|
"aria-labelledby": `${j.value}-label`
|
|
1990
|
-
},
|
|
1990
|
+
}, P, D), null);
|
|
1991
1991
|
return b(ce, null, [e.prefix && b("span", {
|
|
1992
1992
|
class: "v-text-field__prefix"
|
|
1993
1993
|
}, [b("span", {
|
|
1994
1994
|
class: "v-text-field__prefix__text"
|
|
1995
1995
|
}, [e.prefix])]), Ue(l.default ? b("div", {
|
|
1996
|
-
class: re(
|
|
1996
|
+
class: re(m),
|
|
1997
1997
|
"data-no-activator": ""
|
|
1998
1998
|
}, [l.default({
|
|
1999
1999
|
id: j
|
|
2000
2000
|
}), ve]) : _n(ve, {
|
|
2001
|
-
class:
|
|
2002
|
-
}), [[dl,
|
|
2001
|
+
class: m
|
|
2002
|
+
}), [[dl, s, null, {
|
|
2003
2003
|
once: !0
|
|
2004
2004
|
}]]), e.suffix && b("span", {
|
|
2005
2005
|
class: "v-text-field__suffix"
|
|
@@ -2009,8 +2009,8 @@ const Ea = ["color", "file", "time", "date", "datetime-local", "week", "month"],
|
|
|
2009
2009
|
}
|
|
2010
2010
|
});
|
|
2011
2011
|
},
|
|
2012
|
-
details: V ? (W) => b(ce, null, [l.details?.(W),
|
|
2013
|
-
active: e.persistentCounter ||
|
|
2012
|
+
details: V ? (W) => b(ce, null, [l.details?.(W), A && b(ce, null, [b("span", null, null), g(Fa, {
|
|
2013
|
+
active: e.persistentCounter || r.value,
|
|
2014
2014
|
value: d.value,
|
|
2015
2015
|
max: c.value,
|
|
2016
2016
|
disabled: e.disabled
|
|
@@ -2036,13 +2036,13 @@ const Ea = ["color", "file", "time", "date", "datetime-local", "week", "month"],
|
|
|
2036
2036
|
} = a;
|
|
2037
2037
|
const {
|
|
2038
2038
|
resizeRef: u,
|
|
2039
|
-
contentRect:
|
|
2039
|
+
contentRect: r
|
|
2040
2040
|
} = It(void 0, "border");
|
|
2041
|
-
se(() =>
|
|
2042
|
-
|
|
2041
|
+
se(() => r.value?.height, (o) => {
|
|
2042
|
+
o != null && n("update:height", o);
|
|
2043
2043
|
}), de(() => e.renderless ? b(ce, null, [l.default?.({
|
|
2044
2044
|
itemRef: u
|
|
2045
|
-
})]) : b("div",
|
|
2045
|
+
})]) : b("div", H({
|
|
2046
2046
|
ref: u,
|
|
2047
2047
|
class: ["v-virtual-scroll__item", e.class],
|
|
2048
2048
|
style: e.style
|
|
@@ -2060,107 +2060,107 @@ const Ea = ["color", "file", "time", "date", "datetime-local", "week", "month"],
|
|
|
2060
2060
|
height: [Number, String]
|
|
2061
2061
|
}, "virtual");
|
|
2062
2062
|
function Ha(e, a) {
|
|
2063
|
-
const t = Il(), n =
|
|
2063
|
+
const t = Il(), n = ee(0);
|
|
2064
2064
|
zt(() => {
|
|
2065
2065
|
n.value = parseFloat(e.itemHeight || 0);
|
|
2066
2066
|
});
|
|
2067
|
-
const l =
|
|
2067
|
+
const l = ee(0), u = ee(Math.ceil(
|
|
2068
2068
|
// Assume 16px items filling the entire screen height if
|
|
2069
2069
|
// not provided. This is probably incorrect but it minimises
|
|
2070
2070
|
// the chance of ending up with empty space at the bottom.
|
|
2071
2071
|
// The default value is set here to avoid poisoning getSize()
|
|
2072
2072
|
(parseInt(e.height) || t.height.value) / (n.value || 16)
|
|
2073
|
-
) || 1),
|
|
2073
|
+
) || 1), r = ee(0), o = ee(0), i = G(), s = G();
|
|
2074
2074
|
let d = 0;
|
|
2075
2075
|
const {
|
|
2076
2076
|
resizeRef: c,
|
|
2077
|
-
contentRect:
|
|
2077
|
+
contentRect: f
|
|
2078
2078
|
} = It();
|
|
2079
2079
|
zt(() => {
|
|
2080
|
-
c.value =
|
|
2080
|
+
c.value = i.value;
|
|
2081
2081
|
});
|
|
2082
|
-
const v = I(() =>
|
|
2082
|
+
const v = I(() => i.value === document.documentElement ? t.height.value : f.value?.height || parseInt(e.height) || 0), y = I(() => !!(i.value && s.value && v.value && n.value));
|
|
2083
2083
|
let h = Array.from({
|
|
2084
2084
|
length: a.value.length
|
|
2085
2085
|
}), p = Array.from({
|
|
2086
2086
|
length: a.value.length
|
|
2087
2087
|
});
|
|
2088
|
-
const
|
|
2089
|
-
let
|
|
2090
|
-
function C(
|
|
2091
|
-
return h[
|
|
2088
|
+
const _ = ee(0);
|
|
2089
|
+
let w = -1;
|
|
2090
|
+
function C(B) {
|
|
2091
|
+
return h[B] || n.value;
|
|
2092
2092
|
}
|
|
2093
2093
|
const F = Hn(() => {
|
|
2094
|
-
const
|
|
2094
|
+
const B = performance.now();
|
|
2095
2095
|
p[0] = 0;
|
|
2096
2096
|
const O = a.value.length;
|
|
2097
2097
|
for (let k = 1; k <= O; k++)
|
|
2098
2098
|
p[k] = (p[k - 1] || 0) + C(k - 1);
|
|
2099
|
-
|
|
2100
|
-
},
|
|
2101
|
-
|
|
2099
|
+
_.value = Math.max(_.value, performance.now() - B);
|
|
2100
|
+
}, _), E = se(y, (B) => {
|
|
2101
|
+
B && (E(), d = s.value.offsetTop, F.immediate(), ue(), ~w && ke(() => {
|
|
2102
2102
|
ct && window.requestAnimationFrame(() => {
|
|
2103
|
-
|
|
2103
|
+
K(w), w = -1;
|
|
2104
2104
|
});
|
|
2105
2105
|
}));
|
|
2106
2106
|
});
|
|
2107
2107
|
rt(() => {
|
|
2108
2108
|
F.clear();
|
|
2109
2109
|
});
|
|
2110
|
-
function U(
|
|
2111
|
-
const k = h[
|
|
2112
|
-
n.value =
|
|
2110
|
+
function U(B, O) {
|
|
2111
|
+
const k = h[B], m = n.value;
|
|
2112
|
+
n.value = m ? Math.min(n.value, O) : O, (k !== O || m !== n.value) && (h[B] = O, F());
|
|
2113
2113
|
}
|
|
2114
|
-
function
|
|
2115
|
-
|
|
2116
|
-
const O = Math.floor(
|
|
2117
|
-
return
|
|
2114
|
+
function A(B) {
|
|
2115
|
+
B = Ne(B, 0, a.value.length);
|
|
2116
|
+
const O = Math.floor(B), k = B % 1, m = O + 1, P = p[O] || 0, J = p[m] || P;
|
|
2117
|
+
return P + (J - P) * k;
|
|
2118
2118
|
}
|
|
2119
|
-
function V(
|
|
2120
|
-
return za(p,
|
|
2119
|
+
function V(B) {
|
|
2120
|
+
return za(p, B);
|
|
2121
2121
|
}
|
|
2122
|
-
let M = 0, D = 0,
|
|
2123
|
-
se(v, (
|
|
2124
|
-
ue(),
|
|
2122
|
+
let M = 0, D = 0, N = 0;
|
|
2123
|
+
se(v, (B, O) => {
|
|
2124
|
+
ue(), B < O && requestAnimationFrame(() => {
|
|
2125
2125
|
D = 0, ue();
|
|
2126
2126
|
});
|
|
2127
2127
|
});
|
|
2128
|
-
let
|
|
2129
|
-
function
|
|
2130
|
-
if (!
|
|
2131
|
-
const
|
|
2132
|
-
O -
|
|
2128
|
+
let ne = -1;
|
|
2129
|
+
function z() {
|
|
2130
|
+
if (!i.value || !s.value) return;
|
|
2131
|
+
const B = i.value.scrollTop, O = performance.now();
|
|
2132
|
+
O - N > 500 ? (D = Math.sign(B - M), d = s.value.offsetTop) : D = B - M, M = B, N = O, window.clearTimeout(ne), ne = window.setTimeout(W, 500), ue();
|
|
2133
2133
|
}
|
|
2134
2134
|
function W() {
|
|
2135
|
-
!
|
|
2135
|
+
!i.value || !s.value || (D = 0, N = 0, window.clearTimeout(ne), ue());
|
|
2136
2136
|
}
|
|
2137
2137
|
let j = -1;
|
|
2138
2138
|
function ue() {
|
|
2139
2139
|
cancelAnimationFrame(j), j = requestAnimationFrame(q);
|
|
2140
2140
|
}
|
|
2141
2141
|
function q() {
|
|
2142
|
-
if (!
|
|
2143
|
-
const
|
|
2142
|
+
if (!i.value || !v.value || !n.value) return;
|
|
2143
|
+
const B = M - d, O = Math.sign(D), k = Math.max(0, B - Lt), m = Ne(V(k), 0, a.value.length), P = B + v.value + Lt, J = Ne(V(P) + 1, m + 1, a.value.length);
|
|
2144
2144
|
if (
|
|
2145
2145
|
// Only update the side we're scrolling towards,
|
|
2146
2146
|
// the other side will be updated incidentally
|
|
2147
|
-
(O !== Ma ||
|
|
2147
|
+
(O !== Ma || m < l.value) && (O !== Na || J > u.value)
|
|
2148
2148
|
) {
|
|
2149
|
-
const ve =
|
|
2150
|
-
Math.max(ve, ge) > Lt ? (l.value =
|
|
2149
|
+
const ve = A(l.value) - A(m), ge = A(J) - A(u.value);
|
|
2150
|
+
Math.max(ve, ge) > Lt ? (l.value = m, u.value = J) : (m <= 0 && (l.value = m), J >= a.value.length && (u.value = J));
|
|
2151
2151
|
}
|
|
2152
|
-
|
|
2152
|
+
r.value = A(l.value), o.value = A(a.value.length) - A(u.value);
|
|
2153
2153
|
}
|
|
2154
|
-
function
|
|
2155
|
-
const O =
|
|
2156
|
-
!
|
|
2154
|
+
function K(B) {
|
|
2155
|
+
const O = A(B);
|
|
2156
|
+
!i.value || B && !O ? w = B : i.value.scrollTop = O;
|
|
2157
2157
|
}
|
|
2158
|
-
const fe = I(() => a.value.slice(l.value, u.value).map((
|
|
2158
|
+
const fe = I(() => a.value.slice(l.value, u.value).map((B, O) => {
|
|
2159
2159
|
const k = O + l.value;
|
|
2160
2160
|
return {
|
|
2161
|
-
raw:
|
|
2161
|
+
raw: B,
|
|
2162
2162
|
index: k,
|
|
2163
|
-
key: Kl(
|
|
2163
|
+
key: Kl(B, e.itemKey, k)
|
|
2164
2164
|
};
|
|
2165
2165
|
}));
|
|
2166
2166
|
return se(a, () => {
|
|
@@ -2173,28 +2173,28 @@ function Ha(e, a) {
|
|
|
2173
2173
|
deep: 1
|
|
2174
2174
|
}), {
|
|
2175
2175
|
calculateVisibleItems: ue,
|
|
2176
|
-
containerRef:
|
|
2177
|
-
markerRef:
|
|
2176
|
+
containerRef: i,
|
|
2177
|
+
markerRef: s,
|
|
2178
2178
|
computedItems: fe,
|
|
2179
|
-
paddingTop:
|
|
2180
|
-
paddingBottom:
|
|
2181
|
-
scrollToIndex:
|
|
2182
|
-
handleScroll:
|
|
2179
|
+
paddingTop: r,
|
|
2180
|
+
paddingBottom: o,
|
|
2181
|
+
scrollToIndex: K,
|
|
2182
|
+
handleScroll: z,
|
|
2183
2183
|
handleScrollend: W,
|
|
2184
2184
|
handleItemResize: U
|
|
2185
2185
|
};
|
|
2186
2186
|
}
|
|
2187
2187
|
function za(e, a) {
|
|
2188
|
-
let t = e.length - 1, n = 0, l = 0, u = null,
|
|
2188
|
+
let t = e.length - 1, n = 0, l = 0, u = null, r = -1;
|
|
2189
2189
|
if (e[t] < a)
|
|
2190
2190
|
return t;
|
|
2191
2191
|
for (; n <= t; )
|
|
2192
2192
|
if (l = n + t >> 1, u = e[l], u > a)
|
|
2193
2193
|
t = l - 1;
|
|
2194
2194
|
else if (u < a)
|
|
2195
|
-
|
|
2195
|
+
r = l, n = l + 1;
|
|
2196
2196
|
else return u === a ? l : n;
|
|
2197
|
-
return
|
|
2197
|
+
return r;
|
|
2198
2198
|
}
|
|
2199
2199
|
const Ua = X({
|
|
2200
2200
|
items: {
|
|
@@ -2216,45 +2216,45 @@ const Ua = X({
|
|
|
2216
2216
|
dimensionStyles: l
|
|
2217
2217
|
} = bt(e), {
|
|
2218
2218
|
calculateVisibleItems: u,
|
|
2219
|
-
containerRef:
|
|
2220
|
-
markerRef:
|
|
2221
|
-
handleScroll:
|
|
2222
|
-
handleScrollend:
|
|
2219
|
+
containerRef: r,
|
|
2220
|
+
markerRef: o,
|
|
2221
|
+
handleScroll: i,
|
|
2222
|
+
handleScrollend: s,
|
|
2223
2223
|
handleItemResize: d,
|
|
2224
2224
|
scrollToIndex: c,
|
|
2225
|
-
paddingTop:
|
|
2225
|
+
paddingTop: f,
|
|
2226
2226
|
paddingBottom: v,
|
|
2227
2227
|
computedItems: y
|
|
2228
|
-
} = Ha(e,
|
|
2228
|
+
} = Ha(e, R(() => e.items));
|
|
2229
2229
|
return jt(() => e.renderless, () => {
|
|
2230
2230
|
function h() {
|
|
2231
|
-
const
|
|
2232
|
-
|
|
2231
|
+
const _ = (arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1) ? "addEventListener" : "removeEventListener";
|
|
2232
|
+
r.value === document.documentElement ? (document[_]("scroll", i, {
|
|
2233
2233
|
passive: !0
|
|
2234
|
-
}), document[
|
|
2234
|
+
}), document[_]("scrollend", s)) : (r.value?.[_]("scroll", i, {
|
|
2235
2235
|
passive: !0
|
|
2236
|
-
}),
|
|
2236
|
+
}), r.value?.[_]("scrollend", s));
|
|
2237
2237
|
}
|
|
2238
2238
|
at(() => {
|
|
2239
|
-
|
|
2239
|
+
r.value = zn(n.vnode.el, !0), h(!0);
|
|
2240
2240
|
}), rt(h);
|
|
2241
2241
|
}), de(() => {
|
|
2242
2242
|
const h = y.value.map((p) => g($a, {
|
|
2243
2243
|
key: p.key,
|
|
2244
2244
|
renderless: e.renderless,
|
|
2245
|
-
"onUpdate:height": (
|
|
2245
|
+
"onUpdate:height": (_) => d(p.index, _)
|
|
2246
2246
|
}, {
|
|
2247
|
-
default: (
|
|
2247
|
+
default: (_) => t.default?.({
|
|
2248
2248
|
item: p.raw,
|
|
2249
2249
|
index: p.index,
|
|
2250
|
-
...
|
|
2250
|
+
..._
|
|
2251
2251
|
})
|
|
2252
2252
|
}));
|
|
2253
2253
|
return e.renderless ? b(ce, null, [b("div", {
|
|
2254
|
-
ref:
|
|
2254
|
+
ref: o,
|
|
2255
2255
|
class: "v-virtual-scroll__spacer",
|
|
2256
2256
|
style: {
|
|
2257
|
-
paddingTop: et(
|
|
2257
|
+
paddingTop: et(f.value)
|
|
2258
2258
|
}
|
|
2259
2259
|
}, null), h, b("div", {
|
|
2260
2260
|
class: "v-virtual-scroll__spacer",
|
|
@@ -2262,16 +2262,16 @@ const Ua = X({
|
|
|
2262
2262
|
paddingBottom: et(v.value)
|
|
2263
2263
|
}
|
|
2264
2264
|
}, null)]) : b("div", {
|
|
2265
|
-
ref:
|
|
2265
|
+
ref: r,
|
|
2266
2266
|
class: re(["v-virtual-scroll", e.class]),
|
|
2267
|
-
onScrollPassive:
|
|
2268
|
-
onScrollend:
|
|
2267
|
+
onScrollPassive: i,
|
|
2268
|
+
onScrollend: s,
|
|
2269
2269
|
style: xe([l.value, e.style])
|
|
2270
2270
|
}, [b("div", {
|
|
2271
|
-
ref:
|
|
2271
|
+
ref: o,
|
|
2272
2272
|
class: "v-virtual-scroll__container",
|
|
2273
2273
|
style: {
|
|
2274
|
-
paddingTop: et(
|
|
2274
|
+
paddingTop: et(f.value),
|
|
2275
2275
|
paddingBottom: et(v.value)
|
|
2276
2276
|
}
|
|
2277
2277
|
}, [h])]);
|
|
@@ -2282,9 +2282,9 @@ const Ua = X({
|
|
|
2282
2282
|
}
|
|
2283
2283
|
});
|
|
2284
2284
|
function mn(e, a) {
|
|
2285
|
-
const t =
|
|
2285
|
+
const t = ee(!1);
|
|
2286
2286
|
let n;
|
|
2287
|
-
function l(
|
|
2287
|
+
function l(o) {
|
|
2288
2288
|
cancelAnimationFrame(n), t.value = !0, n = requestAnimationFrame(() => {
|
|
2289
2289
|
n = requestAnimationFrame(() => {
|
|
2290
2290
|
t.value = !1;
|
|
@@ -2292,33 +2292,33 @@ function mn(e, a) {
|
|
|
2292
2292
|
});
|
|
2293
2293
|
}
|
|
2294
2294
|
async function u() {
|
|
2295
|
-
await new Promise((
|
|
2295
|
+
await new Promise((o) => requestAnimationFrame(o)), await new Promise((o) => requestAnimationFrame(o)), await new Promise((o) => requestAnimationFrame(o)), await new Promise((o) => {
|
|
2296
2296
|
if (t.value) {
|
|
2297
|
-
const
|
|
2298
|
-
|
|
2297
|
+
const i = se(t, () => {
|
|
2298
|
+
i(), o();
|
|
2299
2299
|
});
|
|
2300
|
-
} else
|
|
2300
|
+
} else o();
|
|
2301
2301
|
});
|
|
2302
2302
|
}
|
|
2303
|
-
async function
|
|
2304
|
-
if (
|
|
2305
|
-
const
|
|
2306
|
-
if (!
|
|
2307
|
-
(
|
|
2308
|
-
top:
|
|
2303
|
+
async function r(o) {
|
|
2304
|
+
if (o.key === "Tab" && a.value?.focus(), !["PageDown", "PageUp", "Home", "End"].includes(o.key)) return;
|
|
2305
|
+
const i = e.value?.$el;
|
|
2306
|
+
if (!i) return;
|
|
2307
|
+
(o.key === "Home" || o.key === "End") && i.scrollTo({
|
|
2308
|
+
top: o.key === "Home" ? 0 : i.scrollHeight,
|
|
2309
2309
|
behavior: "smooth"
|
|
2310
2310
|
}), await u();
|
|
2311
|
-
const
|
|
2312
|
-
if (
|
|
2313
|
-
const d =
|
|
2314
|
-
for (const c of
|
|
2311
|
+
const s = i.querySelectorAll(":scope > :not(.v-virtual-scroll__spacer)");
|
|
2312
|
+
if (o.key === "PageDown" || o.key === "Home") {
|
|
2313
|
+
const d = i.getBoundingClientRect().top;
|
|
2314
|
+
for (const c of s)
|
|
2315
2315
|
if (c.getBoundingClientRect().top >= d) {
|
|
2316
2316
|
c.focus();
|
|
2317
2317
|
break;
|
|
2318
2318
|
}
|
|
2319
2319
|
} else {
|
|
2320
|
-
const d =
|
|
2321
|
-
for (const c of [...
|
|
2320
|
+
const d = i.getBoundingClientRect().bottom;
|
|
2321
|
+
for (const c of [...s].reverse())
|
|
2322
2322
|
if (c.getBoundingClientRect().bottom <= d) {
|
|
2323
2323
|
c.focus();
|
|
2324
2324
|
break;
|
|
@@ -2327,7 +2327,7 @@ function mn(e, a) {
|
|
|
2327
2327
|
}
|
|
2328
2328
|
return {
|
|
2329
2329
|
onScrollPassive: l,
|
|
2330
|
-
onKeydown:
|
|
2330
|
+
onKeydown: r
|
|
2331
2331
|
};
|
|
2332
2332
|
}
|
|
2333
2333
|
function gn(e) {
|
|
@@ -2335,37 +2335,37 @@ function gn(e) {
|
|
|
2335
2335
|
groups: a,
|
|
2336
2336
|
onLeave: t
|
|
2337
2337
|
} = e;
|
|
2338
|
-
function n(
|
|
2339
|
-
return
|
|
2338
|
+
function n(o) {
|
|
2339
|
+
return o.type === "list" ? o.contentRef.value?.$el : o.contentRef.value;
|
|
2340
2340
|
}
|
|
2341
|
-
function l(
|
|
2342
|
-
const
|
|
2343
|
-
return
|
|
2341
|
+
function l(o) {
|
|
2342
|
+
const i = n(o);
|
|
2343
|
+
return i ? _l(i) : [];
|
|
2344
2344
|
}
|
|
2345
|
-
function u(
|
|
2346
|
-
const
|
|
2347
|
-
if (
|
|
2345
|
+
function u(o) {
|
|
2346
|
+
const i = o.target, s = o.shiftKey ? "backward" : "forward", d = a.map(l), c = a.map((v) => v.type === "list" ? v.contentRef.value?.$el : v.contentRef.value).findIndex((v) => v?.contains(i)), f = r(d, c, s, i);
|
|
2347
|
+
if (f === null) {
|
|
2348
2348
|
const v = a[c], y = d[c];
|
|
2349
|
-
(v.type === "list" || (
|
|
2349
|
+
(v.type === "list" || (s === "forward" ? y.at(-1) === o.target : y.at(0) === o.target)) && t();
|
|
2350
2350
|
} else {
|
|
2351
|
-
|
|
2352
|
-
const v = a[
|
|
2351
|
+
o.preventDefault(), o.stopImmediatePropagation();
|
|
2352
|
+
const v = a[f];
|
|
2353
2353
|
if (v.type === "list" && Ut(v.displayItemsCount) > 0)
|
|
2354
2354
|
v.contentRef.value?.focus(0);
|
|
2355
2355
|
else {
|
|
2356
|
-
const y =
|
|
2357
|
-
d[
|
|
2356
|
+
const y = s === "forward";
|
|
2357
|
+
d[f].at(y ? 0 : -1).focus();
|
|
2358
2358
|
}
|
|
2359
2359
|
}
|
|
2360
2360
|
}
|
|
2361
|
-
function
|
|
2362
|
-
const c = a[
|
|
2363
|
-
if (c.type !== "list" && !(
|
|
2361
|
+
function r(o, i, s, d) {
|
|
2362
|
+
const c = a[i], f = o[i];
|
|
2363
|
+
if (c.type !== "list" && !(s === "forward" ? f.at(-1) === d : f.at(0) === d))
|
|
2364
2364
|
return null;
|
|
2365
|
-
const v =
|
|
2366
|
-
for (let y =
|
|
2365
|
+
const v = s === "forward" ? 1 : -1;
|
|
2366
|
+
for (let y = i + v; y >= 0 && y < a.length; y += v) {
|
|
2367
2367
|
const h = a[y];
|
|
2368
|
-
if (
|
|
2368
|
+
if (o[y].length > 0 || h.type === "list" && Ut(h.displayItemsCount) > 0)
|
|
2369
2369
|
return y;
|
|
2370
2370
|
}
|
|
2371
2371
|
return null;
|
|
@@ -2399,41 +2399,41 @@ const yn = X({
|
|
|
2399
2399
|
noFilter: Boolean
|
|
2400
2400
|
}, "filter");
|
|
2401
2401
|
function ja(e, a, t) {
|
|
2402
|
-
const n = [], l = t?.default ?? Ka, u = t?.filterKeys ?
|
|
2402
|
+
const n = [], l = t?.default ?? Ka, u = t?.filterKeys ? Be(t.filterKeys) : !1, r = Object.keys(t?.customKeyFilter ?? {}).length;
|
|
2403
2403
|
if (!e?.length) return n;
|
|
2404
|
-
let
|
|
2405
|
-
e: for (let
|
|
2406
|
-
const [
|
|
2404
|
+
let o = [];
|
|
2405
|
+
e: for (let i = 0; i < e.length; i++) {
|
|
2406
|
+
const [s, d = s] = Be(e[i]), c = {}, f = {};
|
|
2407
2407
|
let v = -1;
|
|
2408
|
-
if ((a ||
|
|
2408
|
+
if ((a || r > 0) && !t?.noFilter) {
|
|
2409
2409
|
let y = !1;
|
|
2410
|
-
if (typeof
|
|
2411
|
-
if (
|
|
2412
|
-
(
|
|
2413
|
-
index:
|
|
2410
|
+
if (typeof s == "object") {
|
|
2411
|
+
if (s.type === "divider" || s.type === "subheader") {
|
|
2412
|
+
(o.at(-1)?.type !== "divider" || s.type !== "subheader") && (o = []), o.push({
|
|
2413
|
+
index: i,
|
|
2414
2414
|
matches: {},
|
|
2415
|
-
type:
|
|
2415
|
+
type: s.type
|
|
2416
2416
|
});
|
|
2417
2417
|
continue;
|
|
2418
2418
|
}
|
|
2419
|
-
const
|
|
2420
|
-
y =
|
|
2421
|
-
for (const
|
|
2422
|
-
const C = Kl(d,
|
|
2423
|
-
if (v = F ? F(C, a,
|
|
2424
|
-
F ? c[
|
|
2419
|
+
const _ = u || Object.keys(d);
|
|
2420
|
+
y = _.length === r;
|
|
2421
|
+
for (const w of _) {
|
|
2422
|
+
const C = Kl(d, w), F = t?.customKeyFilter?.[w];
|
|
2423
|
+
if (v = F ? F(C, a, s) : l(C, a, s), v !== -1 && v !== !1)
|
|
2424
|
+
F ? c[w] = Ht(v, a) : f[w] = Ht(v, a);
|
|
2425
2425
|
else if (t?.filterMode === "every")
|
|
2426
2426
|
continue e;
|
|
2427
2427
|
}
|
|
2428
2428
|
} else
|
|
2429
|
-
v = l(
|
|
2430
|
-
const h = Object.keys(
|
|
2431
|
-
if (!h && !p || t?.filterMode === "union" && p !==
|
|
2429
|
+
v = l(s, a, s), v !== -1 && v !== !1 && (f.title = Ht(v, a));
|
|
2430
|
+
const h = Object.keys(f).length, p = Object.keys(c).length;
|
|
2431
|
+
if (!h && !p || t?.filterMode === "union" && p !== r && !h || t?.filterMode === "intersection" && (p !== r || !h && r > 0 && !y)) continue;
|
|
2432
2432
|
}
|
|
2433
|
-
|
|
2434
|
-
index:
|
|
2433
|
+
o.length && (n.push(...o), o = []), n.push({
|
|
2434
|
+
index: i,
|
|
2435
2435
|
matches: {
|
|
2436
|
-
...
|
|
2436
|
+
...f,
|
|
2437
2437
|
...c
|
|
2438
2438
|
}
|
|
2439
2439
|
});
|
|
@@ -2441,9 +2441,9 @@ function ja(e, a, t) {
|
|
|
2441
2441
|
return n;
|
|
2442
2442
|
}
|
|
2443
2443
|
function hn(e, a, t, n) {
|
|
2444
|
-
const l =
|
|
2444
|
+
const l = ee([]), u = ee(/* @__PURE__ */ new Map()), r = I(() => n?.transform ? $(a).map((i) => [i, n.transform(i)]) : $(a));
|
|
2445
2445
|
zt(() => {
|
|
2446
|
-
const
|
|
2446
|
+
const i = typeof t == "function" ? t() : $(t), s = typeof i != "string" && typeof i != "number" ? "" : String(i), d = ja(r.value, s, {
|
|
2447
2447
|
customKeyFilter: {
|
|
2448
2448
|
...e.customKeyFilter,
|
|
2449
2449
|
...$(n?.customKeyFilter)
|
|
@@ -2452,35 +2452,35 @@ function hn(e, a, t, n) {
|
|
|
2452
2452
|
filterKeys: e.filterKeys,
|
|
2453
2453
|
filterMode: e.filterMode,
|
|
2454
2454
|
noFilter: e.noFilter
|
|
2455
|
-
}), c = $(a),
|
|
2455
|
+
}), c = $(a), f = [], v = /* @__PURE__ */ new Map();
|
|
2456
2456
|
d.forEach((y) => {
|
|
2457
2457
|
let {
|
|
2458
2458
|
index: h,
|
|
2459
2459
|
matches: p
|
|
2460
2460
|
} = y;
|
|
2461
|
-
const
|
|
2462
|
-
|
|
2463
|
-
}), l.value =
|
|
2461
|
+
const _ = c[h];
|
|
2462
|
+
f.push(_), v.set(_.value, p);
|
|
2463
|
+
}), l.value = f, u.value = v;
|
|
2464
2464
|
});
|
|
2465
|
-
function i
|
|
2466
|
-
return u.value.get(
|
|
2465
|
+
function o(i) {
|
|
2466
|
+
return u.value.get(i.value);
|
|
2467
2467
|
}
|
|
2468
2468
|
return {
|
|
2469
2469
|
filteredItems: l,
|
|
2470
2470
|
filteredMatches: u,
|
|
2471
|
-
getMatches:
|
|
2471
|
+
getMatches: o
|
|
2472
2472
|
};
|
|
2473
2473
|
}
|
|
2474
2474
|
function bn(e, a, t) {
|
|
2475
2475
|
return t == null || !t.length ? a : t.map((n, l) => {
|
|
2476
|
-
const u = l === 0 ? 0 : t[l - 1][1],
|
|
2476
|
+
const u = l === 0 ? 0 : t[l - 1][1], r = [b("span", {
|
|
2477
2477
|
class: re(`${e}__unmask`)
|
|
2478
2478
|
}, [a.slice(u, n[0])]), b("span", {
|
|
2479
2479
|
class: re(`${e}__mask`)
|
|
2480
2480
|
}, [a.slice(n[0], n[1])])];
|
|
2481
|
-
return l === t.length - 1 &&
|
|
2481
|
+
return l === t.length - 1 && r.push(b("span", {
|
|
2482
2482
|
class: re(`${e}__unmask`)
|
|
2483
|
-
}, [a.slice(n[1])])), b(ce, null, [
|
|
2483
|
+
}, [a.slice(n[1])])), b(ce, null, [r]);
|
|
2484
2484
|
});
|
|
2485
2485
|
}
|
|
2486
2486
|
const Ga = X({
|
|
@@ -2494,7 +2494,7 @@ const Ga = X({
|
|
|
2494
2494
|
}
|
|
2495
2495
|
}, "autocomplete");
|
|
2496
2496
|
function pn(e, a) {
|
|
2497
|
-
const t = Xe(), n = I(() => `menu-${t}`), l =
|
|
2497
|
+
const t = Xe(), n = I(() => `menu-${t}`), l = R(() => Ut(a)), u = R(() => n.value);
|
|
2498
2498
|
return {
|
|
2499
2499
|
menuId: n,
|
|
2500
2500
|
ariaExpanded: l,
|
|
@@ -2560,135 +2560,135 @@ const kn = X({
|
|
|
2560
2560
|
} = a;
|
|
2561
2561
|
const {
|
|
2562
2562
|
t: n
|
|
2563
|
-
} = it(), l = G(), u = G(),
|
|
2564
|
-
items:
|
|
2563
|
+
} = it(), l = G(), u = G(), r = G(), o = G(), i = G(), {
|
|
2564
|
+
items: s,
|
|
2565
2565
|
transformIn: d,
|
|
2566
2566
|
transformOut: c
|
|
2567
|
-
} = jl(e),
|
|
2567
|
+
} = jl(e), f = Ve(e, "search", ""), {
|
|
2568
2568
|
filteredItems: v,
|
|
2569
2569
|
getMatches: y
|
|
2570
|
-
} = hn(e,
|
|
2571
|
-
const
|
|
2572
|
-
return e.multiple ?
|
|
2573
|
-
}), p = I(() => typeof e.counterValue == "function" ? e.counterValue(h.value) : typeof e.counterValue == "number" ? e.counterValue : h.value.length),
|
|
2570
|
+
} = hn(e, s, () => f.value), h = Ve(e, "modelValue", [], (x) => d(x === null ? [null] : Be(x)), (x) => {
|
|
2571
|
+
const Q = c(x);
|
|
2572
|
+
return e.multiple ? Q : Q[0] ?? null;
|
|
2573
|
+
}), p = I(() => typeof e.counterValue == "function" ? e.counterValue(h.value) : typeof e.counterValue == "number" ? e.counterValue : h.value.length), _ = $t(e), w = vn(e), C = I(() => h.value.map((x) => x.value)), F = ee(!1), E = R(() => e.closableChips && !_.isReadonly.value && !_.isDisabled.value), {
|
|
2574
2574
|
InputIcon: U
|
|
2575
2575
|
} = Ot(e);
|
|
2576
|
-
let
|
|
2576
|
+
let A = "", V = 0, M;
|
|
2577
2577
|
const D = I(() => {
|
|
2578
|
-
const x =
|
|
2579
|
-
return e.hideSelected ? x.filter((
|
|
2580
|
-
}),
|
|
2581
|
-
get: () =>
|
|
2578
|
+
const x = f.value ? v.value : s.value;
|
|
2579
|
+
return e.hideSelected ? x.filter((Q) => !h.value.some((te) => (e.valueComparator || qe)(te, Q))) : x;
|
|
2580
|
+
}), N = I(() => e.hideNoData && !D.value.length || _.isReadonly.value || _.isDisabled.value), ne = Ve(e, "menu"), z = I({
|
|
2581
|
+
get: () => ne.value,
|
|
2582
2582
|
set: (x) => {
|
|
2583
|
-
|
|
2583
|
+
ne.value && !x && u.value?.ΨopenChildren.size || x && N.value || (ne.value = x);
|
|
2584
2584
|
}
|
|
2585
2585
|
}), {
|
|
2586
2586
|
menuId: W,
|
|
2587
2587
|
ariaExpanded: j,
|
|
2588
2588
|
ariaControls: ue
|
|
2589
|
-
} = pn(e,
|
|
2589
|
+
} = pn(e, z), q = I(() => ({
|
|
2590
2590
|
...e.menuProps,
|
|
2591
2591
|
activatorProps: {
|
|
2592
2592
|
...e.menuProps?.activatorProps || {},
|
|
2593
2593
|
"aria-haspopup": "listbox"
|
|
2594
2594
|
// Set aria-haspopup to 'listbox'
|
|
2595
2595
|
}
|
|
2596
|
-
})),
|
|
2597
|
-
onTabKeydown:
|
|
2596
|
+
})), K = G(), fe = mn(K, l), {
|
|
2597
|
+
onTabKeydown: B
|
|
2598
2598
|
} = gn({
|
|
2599
2599
|
groups: [{
|
|
2600
2600
|
type: "element",
|
|
2601
|
-
contentRef:
|
|
2601
|
+
contentRef: r
|
|
2602
2602
|
}, {
|
|
2603
2603
|
type: "list",
|
|
2604
|
-
contentRef:
|
|
2604
|
+
contentRef: K,
|
|
2605
2605
|
displayItemsCount: () => D.value.length
|
|
2606
2606
|
}, {
|
|
2607
2607
|
type: "element",
|
|
2608
|
-
contentRef:
|
|
2608
|
+
contentRef: o
|
|
2609
2609
|
}],
|
|
2610
2610
|
onLeave: () => {
|
|
2611
|
-
|
|
2611
|
+
z.value = !1, l.value?.focus();
|
|
2612
2612
|
}
|
|
2613
2613
|
});
|
|
2614
2614
|
function O(x) {
|
|
2615
|
-
e.openOnClear && (
|
|
2615
|
+
e.openOnClear && (z.value = !0);
|
|
2616
2616
|
}
|
|
2617
2617
|
function k() {
|
|
2618
|
-
|
|
2618
|
+
N.value || (z.value = !z.value);
|
|
2619
2619
|
}
|
|
2620
|
-
function
|
|
2621
|
-
x.key === "Tab" &&
|
|
2620
|
+
function m(x) {
|
|
2621
|
+
x.key === "Tab" && B(x), K.value?.$el.contains(x.target) && wt(x) && P(x);
|
|
2622
2622
|
}
|
|
2623
|
-
function
|
|
2624
|
-
if (!x.key ||
|
|
2625
|
-
if (["Enter", " ", "ArrowDown", "ArrowUp", "Home", "End"].includes(x.key) && x.preventDefault(), ["Enter", "ArrowDown", " "].includes(x.key) && (
|
|
2623
|
+
function P(x) {
|
|
2624
|
+
if (!x.key || _.isReadonly.value) return;
|
|
2625
|
+
if (["Enter", " ", "ArrowDown", "ArrowUp", "Home", "End"].includes(x.key) && x.preventDefault(), ["Enter", "ArrowDown", " "].includes(x.key) && (z.value = !0), ["Escape", "Tab"].includes(x.key) && (z.value = !1), e.clearable && x.key === "Backspace") {
|
|
2626
2626
|
x.preventDefault(), h.value = [], O();
|
|
2627
2627
|
return;
|
|
2628
2628
|
}
|
|
2629
|
-
x.key === "Home" ?
|
|
2630
|
-
const
|
|
2629
|
+
x.key === "Home" ? K.value?.focus("first") : x.key === "End" && K.value?.focus("last");
|
|
2630
|
+
const Q = 1e3;
|
|
2631
2631
|
if (!wt(x)) return;
|
|
2632
|
-
const
|
|
2633
|
-
|
|
2634
|
-
const
|
|
2632
|
+
const te = performance.now();
|
|
2633
|
+
te - M > Q && (A = "", V = 0), A += x.key.toLowerCase(), M = te;
|
|
2634
|
+
const Re = D.value;
|
|
2635
2635
|
function _e() {
|
|
2636
2636
|
let T = we();
|
|
2637
|
-
return T ||
|
|
2637
|
+
return T || A.at(-1) === A.at(-2) && (A = A.slice(0, -1), V++, T = we(), T) || (V = 0, T = we(), T) ? T : (A = x.key.toLowerCase(), we());
|
|
2638
2638
|
}
|
|
2639
2639
|
function we() {
|
|
2640
|
-
for (let T = V; T <
|
|
2641
|
-
const
|
|
2642
|
-
if (
|
|
2643
|
-
return [
|
|
2640
|
+
for (let T = V; T < Re.length; T++) {
|
|
2641
|
+
const le = Re[T];
|
|
2642
|
+
if (le.title.toLowerCase().startsWith(A))
|
|
2643
|
+
return [le, T];
|
|
2644
2644
|
}
|
|
2645
2645
|
}
|
|
2646
2646
|
const S = _e();
|
|
2647
2647
|
if (!S) return;
|
|
2648
|
-
const [Y,
|
|
2649
|
-
V =
|
|
2648
|
+
const [Y, L] = S;
|
|
2649
|
+
V = L, K.value?.focus(L), e.multiple || (h.value = [Y]);
|
|
2650
2650
|
}
|
|
2651
2651
|
function J(x) {
|
|
2652
|
-
let
|
|
2652
|
+
let Q = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;
|
|
2653
2653
|
if (!x.props.disabled)
|
|
2654
2654
|
if (e.multiple) {
|
|
2655
|
-
const
|
|
2656
|
-
if (~
|
|
2657
|
-
const _e =
|
|
2658
|
-
_e.splice(
|
|
2659
|
-
} else
|
|
2655
|
+
const te = h.value.findIndex((_e) => (e.valueComparator || qe)(_e.value, x.value)), Re = Q ?? !~te;
|
|
2656
|
+
if (~te) {
|
|
2657
|
+
const _e = Re ? [...h.value, x] : [...h.value];
|
|
2658
|
+
_e.splice(te, 1), h.value = _e;
|
|
2659
|
+
} else Re && (h.value = [...h.value, x]);
|
|
2660
2660
|
} else {
|
|
2661
|
-
const
|
|
2662
|
-
h.value =
|
|
2663
|
-
|
|
2661
|
+
const te = Q !== !1;
|
|
2662
|
+
h.value = te ? [x] : [], ke(() => {
|
|
2663
|
+
z.value = !1;
|
|
2664
2664
|
});
|
|
2665
2665
|
}
|
|
2666
2666
|
}
|
|
2667
2667
|
function ve(x) {
|
|
2668
|
-
const
|
|
2669
|
-
l.value?.$el.contains(
|
|
2668
|
+
const Q = x.target;
|
|
2669
|
+
l.value?.$el.contains(Q) || (z.value = !1);
|
|
2670
2670
|
}
|
|
2671
2671
|
function ge() {
|
|
2672
|
-
return D.value.findIndex((x) => h.value.some((
|
|
2672
|
+
return D.value.findIndex((x) => h.value.some((Q) => (e.valueComparator || qe)(Q.value, x.value)));
|
|
2673
2673
|
}
|
|
2674
2674
|
function pe() {
|
|
2675
2675
|
if (!h.value.length) return -1;
|
|
2676
2676
|
const x = e.valueComparator || qe;
|
|
2677
|
-
let
|
|
2678
|
-
for (const
|
|
2679
|
-
if (h.value.some((_e) => x(_e.value,
|
|
2680
|
-
|
|
2677
|
+
let Q = 0;
|
|
2678
|
+
for (const te of D.value) {
|
|
2679
|
+
if (h.value.some((_e) => x(_e.value, te.value))) return te.props.disabled ? -1 : Q;
|
|
2680
|
+
te.props.disabled || Q++;
|
|
2681
2681
|
}
|
|
2682
2682
|
return -1;
|
|
2683
2683
|
}
|
|
2684
2684
|
function Ie() {
|
|
2685
|
-
if (e.eager &&
|
|
2685
|
+
if (e.eager && i.value?.calculateVisibleItems(), K.value && F.value) {
|
|
2686
2686
|
const x = pe();
|
|
2687
|
-
|
|
2687
|
+
K.value.focus(x >= 0 ? x : "first");
|
|
2688
2688
|
}
|
|
2689
2689
|
}
|
|
2690
2690
|
function De() {
|
|
2691
|
-
|
|
2691
|
+
f.value = "", F.value && l.value?.focus();
|
|
2692
2692
|
}
|
|
2693
2693
|
function je(x) {
|
|
2694
2694
|
F.value = !0;
|
|
@@ -2699,27 +2699,27 @@ const kn = X({
|
|
|
2699
2699
|
function ut(x) {
|
|
2700
2700
|
if (x == null) h.value = [];
|
|
2701
2701
|
else if (dt(l.value, ":autofill") || dt(l.value, ":-webkit-autofill")) {
|
|
2702
|
-
const
|
|
2703
|
-
|
|
2702
|
+
const Q = s.value.find((te) => te.title === x);
|
|
2703
|
+
Q && J(Q);
|
|
2704
2704
|
} else l.value && (l.value.value = "");
|
|
2705
2705
|
}
|
|
2706
|
-
return se(
|
|
2707
|
-
if (!e.hideSelected &&
|
|
2706
|
+
return se(z, () => {
|
|
2707
|
+
if (!e.hideSelected && z.value && h.value.length) {
|
|
2708
2708
|
const x = ge();
|
|
2709
2709
|
ct && !e.noAutoScroll && window.requestAnimationFrame(() => {
|
|
2710
|
-
x >= 0 &&
|
|
2710
|
+
x >= 0 && i.value?.scrollToIndex(x);
|
|
2711
2711
|
});
|
|
2712
2712
|
}
|
|
2713
|
-
}), se(
|
|
2714
|
-
|
|
2713
|
+
}), se(s, (x, Q) => {
|
|
2714
|
+
z.value || F.value && e.hideNoData && !Q.length && x.length && (z.value = !0);
|
|
2715
2715
|
}), de(() => {
|
|
2716
|
-
const x = !!(e.chips || t.chip),
|
|
2717
|
-
search:
|
|
2716
|
+
const x = !!(e.chips || t.chip), Q = !!(!e.hideNoData || D.value.length || t["prepend-item"] || t["append-item"] || t["no-data"]), te = h.value.length > 0, Re = Je.filterProps(e), _e = te || !F.value && e.label && !e.persistentPlaceholder ? void 0 : e.placeholder, we = {
|
|
2717
|
+
search: f,
|
|
2718
2718
|
filteredItems: v.value
|
|
2719
2719
|
};
|
|
2720
|
-
return g(Je,
|
|
2720
|
+
return g(Je, H({
|
|
2721
2721
|
ref: l
|
|
2722
|
-
},
|
|
2722
|
+
}, Re, {
|
|
2723
2723
|
modelValue: h.value.map((S) => S.props.title).join(", "),
|
|
2724
2724
|
name: void 0,
|
|
2725
2725
|
"onUpdate:modelValue": ut,
|
|
@@ -2727,9 +2727,9 @@ const kn = X({
|
|
|
2727
2727
|
"onUpdate:focused": (S) => F.value = S,
|
|
2728
2728
|
validationValue: h.externalValue,
|
|
2729
2729
|
counterValue: p.value,
|
|
2730
|
-
dirty:
|
|
2730
|
+
dirty: te,
|
|
2731
2731
|
class: ["v-select", {
|
|
2732
|
-
"v-select--active-menu":
|
|
2732
|
+
"v-select--active-menu": z.value,
|
|
2733
2733
|
"v-select--chips": !!e.chips,
|
|
2734
2734
|
[`v-select--${e.multiple ? "multiple" : "single"}`]: !0,
|
|
2735
2735
|
"v-select--selected": h.value.length,
|
|
@@ -2741,7 +2741,7 @@ const kn = X({
|
|
|
2741
2741
|
"onClick:clear": O,
|
|
2742
2742
|
"onMousedown:control": k,
|
|
2743
2743
|
onBlur: ve,
|
|
2744
|
-
onKeydown:
|
|
2744
|
+
onKeydown: P,
|
|
2745
2745
|
"aria-expanded": j.value,
|
|
2746
2746
|
"aria-controls": ue.value
|
|
2747
2747
|
}), {
|
|
@@ -2753,19 +2753,19 @@ const kn = X({
|
|
|
2753
2753
|
return b(ce, null, [b("select", {
|
|
2754
2754
|
hidden: !0,
|
|
2755
2755
|
multiple: e.multiple,
|
|
2756
|
-
name:
|
|
2757
|
-
}, [
|
|
2758
|
-
key:
|
|
2759
|
-
value:
|
|
2760
|
-
selected: C.value.includes(
|
|
2761
|
-
}, null))]), g(Gl,
|
|
2756
|
+
name: w.fieldName.value
|
|
2757
|
+
}, [s.value.map((L) => b("option", {
|
|
2758
|
+
key: L.value,
|
|
2759
|
+
value: L.value,
|
|
2760
|
+
selected: C.value.includes(L.value)
|
|
2761
|
+
}, null))]), g(Gl, H({
|
|
2762
2762
|
id: W.value,
|
|
2763
2763
|
ref: u,
|
|
2764
|
-
modelValue:
|
|
2765
|
-
"onUpdate:modelValue": (
|
|
2764
|
+
modelValue: z.value,
|
|
2765
|
+
"onUpdate:modelValue": (L) => z.value = L,
|
|
2766
2766
|
activator: "parent",
|
|
2767
2767
|
contentClass: "v-select__content",
|
|
2768
|
-
disabled:
|
|
2768
|
+
disabled: N.value,
|
|
2769
2769
|
eager: e.eager,
|
|
2770
2770
|
maxHeight: 310,
|
|
2771
2771
|
openOnClick: !1,
|
|
@@ -2777,13 +2777,13 @@ const kn = X({
|
|
|
2777
2777
|
default: () => [g(il, {
|
|
2778
2778
|
onFocusin: je,
|
|
2779
2779
|
onFocusout: Qe,
|
|
2780
|
-
onKeydown:
|
|
2780
|
+
onKeydown: m
|
|
2781
2781
|
}, {
|
|
2782
2782
|
default: () => [t["menu-header"] && b("header", {
|
|
2783
|
-
ref:
|
|
2784
|
-
}, [t["menu-header"](we)]),
|
|
2783
|
+
ref: r
|
|
2784
|
+
}, [t["menu-header"](we)]), Q && g(al, H({
|
|
2785
2785
|
key: "select-list",
|
|
2786
|
-
ref:
|
|
2786
|
+
ref: K,
|
|
2787
2787
|
selected: C.value,
|
|
2788
2788
|
selectStrategy: e.multiple ? "independent" : "single-independent",
|
|
2789
2789
|
tabindex: "-1",
|
|
@@ -2797,39 +2797,39 @@ const kn = X({
|
|
|
2797
2797
|
key: "no-data",
|
|
2798
2798
|
title: n(e.noDataText)
|
|
2799
2799
|
}, null)), g(fn, {
|
|
2800
|
-
ref:
|
|
2800
|
+
ref: i,
|
|
2801
2801
|
renderless: !0,
|
|
2802
2802
|
items: D.value,
|
|
2803
2803
|
itemKey: "value"
|
|
2804
2804
|
}, {
|
|
2805
|
-
default: (
|
|
2805
|
+
default: (L) => {
|
|
2806
2806
|
let {
|
|
2807
2807
|
item: T,
|
|
2808
|
-
index:
|
|
2809
|
-
itemRef:
|
|
2810
|
-
} =
|
|
2811
|
-
const ae = Un(T.props),
|
|
2812
|
-
ref:
|
|
2808
|
+
index: le,
|
|
2809
|
+
itemRef: Ee
|
|
2810
|
+
} = L;
|
|
2811
|
+
const ae = Un(T.props), Z = H(T.props, {
|
|
2812
|
+
ref: Ee,
|
|
2813
2813
|
key: T.value,
|
|
2814
2814
|
onClick: () => J(T, null),
|
|
2815
|
-
"aria-posinset":
|
|
2815
|
+
"aria-posinset": le + 1,
|
|
2816
2816
|
"aria-setsize": D.value.length
|
|
2817
2817
|
});
|
|
2818
2818
|
return T.type === "divider" ? t.divider?.({
|
|
2819
2819
|
props: T.raw,
|
|
2820
|
-
index:
|
|
2821
|
-
}) ?? g(ze,
|
|
2822
|
-
key: `divider-${
|
|
2820
|
+
index: le
|
|
2821
|
+
}) ?? g(ze, H(T.props, {
|
|
2822
|
+
key: `divider-${le}`
|
|
2823
2823
|
}), null) : T.type === "subheader" ? t.subheader?.({
|
|
2824
2824
|
props: T.raw,
|
|
2825
|
-
index:
|
|
2826
|
-
}) ?? g(Wl,
|
|
2827
|
-
key: `subheader-${
|
|
2825
|
+
index: le
|
|
2826
|
+
}) ?? g(Wl, H(T.props, {
|
|
2827
|
+
key: `subheader-${le}`
|
|
2828
2828
|
}), null) : t.item?.({
|
|
2829
2829
|
item: T,
|
|
2830
|
-
index:
|
|
2831
|
-
props:
|
|
2832
|
-
}) ?? g(vt,
|
|
2830
|
+
index: le,
|
|
2831
|
+
props: Z
|
|
2832
|
+
}) ?? g(vt, H(Z, {
|
|
2833
2833
|
role: "option"
|
|
2834
2834
|
}), {
|
|
2835
2835
|
prepend: (me) => {
|
|
@@ -2849,67 +2849,67 @@ const kn = X({
|
|
|
2849
2849
|
icon: ae.prependIcon
|
|
2850
2850
|
}, null)]);
|
|
2851
2851
|
},
|
|
2852
|
-
title: () =>
|
|
2852
|
+
title: () => f.value ? bn("v-select", T.title, y(T)?.title) : T.title
|
|
2853
2853
|
});
|
|
2854
2854
|
}
|
|
2855
2855
|
}), t["append-item"]?.()]
|
|
2856
2856
|
}), t["menu-footer"] && b("footer", {
|
|
2857
|
-
ref:
|
|
2857
|
+
ref: o
|
|
2858
2858
|
}, [t["menu-footer"](we)])]
|
|
2859
2859
|
})]
|
|
2860
|
-
}), h.value.map((
|
|
2861
|
-
function
|
|
2862
|
-
me.stopPropagation(), me.preventDefault(), J(
|
|
2860
|
+
}), h.value.map((L, T) => {
|
|
2861
|
+
function le(me) {
|
|
2862
|
+
me.stopPropagation(), me.preventDefault(), J(L, !1);
|
|
2863
2863
|
}
|
|
2864
|
-
const
|
|
2865
|
-
"onClick:close":
|
|
2864
|
+
const Ee = H(mt.filterProps(L.props), {
|
|
2865
|
+
"onClick:close": le,
|
|
2866
2866
|
onKeydown(me) {
|
|
2867
|
-
me.key !== "Enter" && me.key !== " " || (me.preventDefault(), me.stopPropagation(),
|
|
2867
|
+
me.key !== "Enter" && me.key !== " " || (me.preventDefault(), me.stopPropagation(), le(me));
|
|
2868
2868
|
},
|
|
2869
2869
|
onMousedown(me) {
|
|
2870
2870
|
me.preventDefault(), me.stopPropagation();
|
|
2871
2871
|
},
|
|
2872
2872
|
modelValue: !0,
|
|
2873
2873
|
"onUpdate:modelValue": void 0
|
|
2874
|
-
}), ae = x ? !!t.chip : !!t.selection,
|
|
2875
|
-
item:
|
|
2874
|
+
}), ae = x ? !!t.chip : !!t.selection, Z = ae ? ql(x ? t.chip({
|
|
2875
|
+
item: L,
|
|
2876
2876
|
index: T,
|
|
2877
|
-
props:
|
|
2877
|
+
props: Ee
|
|
2878
2878
|
}) : t.selection({
|
|
2879
|
-
item:
|
|
2879
|
+
item: L,
|
|
2880
2880
|
index: T
|
|
2881
2881
|
})) : void 0;
|
|
2882
|
-
if (!(ae && !
|
|
2882
|
+
if (!(ae && !Z))
|
|
2883
2883
|
return b("div", {
|
|
2884
|
-
key:
|
|
2884
|
+
key: L.value,
|
|
2885
2885
|
class: "v-select__selection"
|
|
2886
2886
|
}, [x ? t.chip ? g(Fe, {
|
|
2887
2887
|
key: "chip-defaults",
|
|
2888
2888
|
defaults: {
|
|
2889
2889
|
VChip: {
|
|
2890
|
-
closable:
|
|
2890
|
+
closable: E.value,
|
|
2891
2891
|
size: "small",
|
|
2892
|
-
text:
|
|
2892
|
+
text: L.title
|
|
2893
2893
|
}
|
|
2894
2894
|
}
|
|
2895
2895
|
}, {
|
|
2896
|
-
default: () => [
|
|
2897
|
-
}) : g(mt,
|
|
2896
|
+
default: () => [Z]
|
|
2897
|
+
}) : g(mt, H({
|
|
2898
2898
|
key: "chip",
|
|
2899
|
-
closable:
|
|
2899
|
+
closable: E.value,
|
|
2900
2900
|
size: "small",
|
|
2901
|
-
text:
|
|
2902
|
-
disabled:
|
|
2903
|
-
},
|
|
2901
|
+
text: L.title,
|
|
2902
|
+
disabled: L.props.disabled
|
|
2903
|
+
}, Ee), null) : Z ?? b("span", {
|
|
2904
2904
|
class: "v-select__selection-text"
|
|
2905
|
-
}, [
|
|
2905
|
+
}, [L.title, e.multiple && T < h.value.length - 1 && b("span", {
|
|
2906
2906
|
class: "v-select__selection-comma"
|
|
2907
2907
|
}, [Sl(",")])])]);
|
|
2908
2908
|
})]);
|
|
2909
2909
|
},
|
|
2910
2910
|
"append-inner": function() {
|
|
2911
|
-
for (var S = arguments.length, Y = new Array(S),
|
|
2912
|
-
Y[
|
|
2911
|
+
for (var S = arguments.length, Y = new Array(S), L = 0; L < S; L++)
|
|
2912
|
+
Y[L] = arguments[L];
|
|
2913
2913
|
return b(ce, null, [t["append-inner"]?.(...Y), e.menuIcon ? g(Se, {
|
|
2914
2914
|
class: "v-select__menu-icon",
|
|
2915
2915
|
color: l.value?.fieldIconColor,
|
|
@@ -2924,8 +2924,8 @@ const kn = X({
|
|
|
2924
2924
|
});
|
|
2925
2925
|
}), St({
|
|
2926
2926
|
isFocused: F,
|
|
2927
|
-
menu:
|
|
2928
|
-
search:
|
|
2927
|
+
menu: z,
|
|
2928
|
+
search: f,
|
|
2929
2929
|
filteredItems: v,
|
|
2930
2930
|
select: J
|
|
2931
2931
|
}, l);
|
|
@@ -2959,31 +2959,31 @@ const kn = X({
|
|
|
2959
2959
|
} = a;
|
|
2960
2960
|
const {
|
|
2961
2961
|
t: n
|
|
2962
|
-
} = it(), l = G(), u =
|
|
2963
|
-
items:
|
|
2962
|
+
} = it(), l = G(), u = ee(!1), r = ee(!0), o = ee(!1), i = G(), s = G(), d = ee(-1), c = ee(null), {
|
|
2963
|
+
items: f,
|
|
2964
2964
|
transformIn: v,
|
|
2965
2965
|
transformOut: y
|
|
2966
2966
|
} = jl(e), {
|
|
2967
2967
|
textColorClasses: h,
|
|
2968
2968
|
textColorStyles: p
|
|
2969
2969
|
} = kt(() => l.value?.color), {
|
|
2970
|
-
InputIcon:
|
|
2971
|
-
} = Ot(e),
|
|
2970
|
+
InputIcon: _
|
|
2971
|
+
} = Ot(e), w = Ve(e, "search", ""), C = Ve(e, "modelValue", [], (S) => v(S === null ? [null] : Be(S)), (S) => {
|
|
2972
2972
|
const Y = y(S);
|
|
2973
2973
|
return e.multiple ? Y : Y[0] ?? null;
|
|
2974
|
-
}), F = I(() => typeof e.counterValue == "function" ? e.counterValue(C.value) : typeof e.counterValue == "number" ? e.counterValue : C.value.length),
|
|
2974
|
+
}), F = I(() => typeof e.counterValue == "function" ? e.counterValue(C.value) : typeof e.counterValue == "number" ? e.counterValue : C.value.length), E = $t(e), {
|
|
2975
2975
|
filteredItems: U,
|
|
2976
|
-
getMatches:
|
|
2977
|
-
} = hn(e,
|
|
2976
|
+
getMatches: A
|
|
2977
|
+
} = hn(e, f, () => c.value ?? (r.value ? "" : w.value)), V = I(() => e.hideSelected && c.value === null ? U.value.filter((S) => !C.value.some((Y) => Y.value === S.value)) : U.value), M = R(() => e.closableChips && !E.isReadonly.value && !E.isDisabled.value), D = I(() => !!(e.chips || t.chip)), N = I(() => D.value || !!t.selection), ne = I(() => C.value.map((S) => S.props.value)), z = I(() => V.value.find((S) => S.type === "item" && !S.props.disabled)), W = I(() => (e.autoSelectFirst === !0 || e.autoSelectFirst === "exact" && w.value === z.value?.title) && V.value.length > 0 && !r.value && !o.value), j = I(() => e.hideNoData && !V.value.length || E.isReadonly.value || E.isDisabled.value), ue = Ve(e, "menu"), q = I({
|
|
2978
2978
|
get: () => ue.value,
|
|
2979
2979
|
set: (S) => {
|
|
2980
|
-
ue.value && !S &&
|
|
2980
|
+
ue.value && !S && i.value?.ΨopenChildren.size || S && j.value || (ue.value = S);
|
|
2981
2981
|
}
|
|
2982
2982
|
}), {
|
|
2983
|
-
menuId:
|
|
2983
|
+
menuId: K,
|
|
2984
2984
|
ariaExpanded: fe,
|
|
2985
|
-
ariaControls:
|
|
2986
|
-
} = pn(e, q), O = G(), k = G(),
|
|
2985
|
+
ariaControls: B
|
|
2986
|
+
} = pn(e, q), O = G(), k = G(), m = G(), P = mn(O, l), {
|
|
2987
2987
|
onTabKeydown: J
|
|
2988
2988
|
} = gn({
|
|
2989
2989
|
groups: [{
|
|
@@ -2995,14 +2995,14 @@ const kn = X({
|
|
|
2995
2995
|
displayItemsCount: () => V.value.length
|
|
2996
2996
|
}, {
|
|
2997
2997
|
type: "element",
|
|
2998
|
-
contentRef:
|
|
2998
|
+
contentRef: m
|
|
2999
2999
|
}],
|
|
3000
3000
|
onLeave: () => {
|
|
3001
3001
|
q.value = !1, l.value?.focus();
|
|
3002
3002
|
}
|
|
3003
3003
|
});
|
|
3004
3004
|
function ve(S) {
|
|
3005
|
-
e.openOnClear && (q.value = !0),
|
|
3005
|
+
e.openOnClear && (q.value = !0), w.value = "";
|
|
3006
3006
|
}
|
|
3007
3007
|
function ge() {
|
|
3008
3008
|
j.value || (q.value = !0);
|
|
@@ -3014,31 +3014,31 @@ const kn = X({
|
|
|
3014
3014
|
S.key === "Tab" && J(S), O.value?.$el.contains(S.target) && (wt(S) || S.key === "Backspace") && l.value?.focus();
|
|
3015
3015
|
}
|
|
3016
3016
|
function De(S) {
|
|
3017
|
-
if (
|
|
3018
|
-
const Y = l.value?.selectionStart,
|
|
3019
|
-
if (["Enter", "ArrowDown", "ArrowUp"].includes(S.key) && S.preventDefault(), ["Enter", "ArrowDown"].includes(S.key) && (q.value = !0), ["Escape"].includes(S.key) && (q.value = !1), W.value && ["Enter", "Tab"].includes(S.key) &&
|
|
3017
|
+
if (E.isReadonly.value) return;
|
|
3018
|
+
const Y = l.value?.selectionStart, L = C.value.length;
|
|
3019
|
+
if (["Enter", "ArrowDown", "ArrowUp"].includes(S.key) && S.preventDefault(), ["Enter", "ArrowDown"].includes(S.key) && (q.value = !0), ["Escape"].includes(S.key) && (q.value = !1), W.value && ["Enter", "Tab"].includes(S.key) && z.value && !C.value.some((T) => {
|
|
3020
3020
|
let {
|
|
3021
|
-
value:
|
|
3021
|
+
value: le
|
|
3022
3022
|
} = T;
|
|
3023
|
-
return
|
|
3024
|
-
}) && we(
|
|
3025
|
-
if (!e.multiple &&
|
|
3023
|
+
return le === z.value.value;
|
|
3024
|
+
}) && we(z.value), S.key === "ArrowDown" && W.value && O.value?.focus("next"), ["Backspace", "Delete"].includes(S.key)) {
|
|
3025
|
+
if (!e.multiple && N.value && C.value.length > 0 && !w.value) return we(C.value[0], !1);
|
|
3026
3026
|
if (~d.value) {
|
|
3027
3027
|
S.preventDefault();
|
|
3028
3028
|
const T = d.value;
|
|
3029
|
-
we(C.value[d.value], !1), d.value = T >=
|
|
3030
|
-
} else S.key === "Backspace" && !
|
|
3029
|
+
we(C.value[d.value], !1), d.value = T >= L - 1 ? L - 2 : T;
|
|
3030
|
+
} else S.key === "Backspace" && !w.value && (d.value = L - 1);
|
|
3031
3031
|
return;
|
|
3032
3032
|
}
|
|
3033
3033
|
if (e.multiple)
|
|
3034
3034
|
if (S.key === "ArrowLeft") {
|
|
3035
3035
|
if (d.value < 0 && Y && Y > 0) return;
|
|
3036
|
-
const T = d.value > -1 ? d.value - 1 :
|
|
3036
|
+
const T = d.value > -1 ? d.value - 1 : L - 1;
|
|
3037
3037
|
if (C.value[T])
|
|
3038
3038
|
d.value = T;
|
|
3039
3039
|
else {
|
|
3040
|
-
const
|
|
3041
|
-
d.value = -1, l.value?.setSelectionRange(
|
|
3040
|
+
const le = w.value?.length ?? null;
|
|
3041
|
+
d.value = -1, l.value?.setSelectionRange(le, le);
|
|
3042
3042
|
}
|
|
3043
3043
|
} else if (S.key === "ArrowRight") {
|
|
3044
3044
|
if (d.value < 0) return;
|
|
@@ -3048,74 +3048,74 @@ const kn = X({
|
|
|
3048
3048
|
}
|
|
3049
3049
|
function je(S) {
|
|
3050
3050
|
if (dt(l.value, ":autofill") || dt(l.value, ":-webkit-autofill")) {
|
|
3051
|
-
const Y =
|
|
3051
|
+
const Y = f.value.find((L) => L.title === S.target.value);
|
|
3052
3052
|
Y && we(Y);
|
|
3053
3053
|
}
|
|
3054
3054
|
}
|
|
3055
3055
|
function Qe() {
|
|
3056
|
-
e.eager &&
|
|
3056
|
+
e.eager && s.value?.calculateVisibleItems();
|
|
3057
3057
|
}
|
|
3058
3058
|
function ut() {
|
|
3059
|
-
u.value && (
|
|
3059
|
+
u.value && (r.value = !0, l.value?.focus()), c.value = null;
|
|
3060
3060
|
}
|
|
3061
3061
|
function x(S) {
|
|
3062
3062
|
u.value = !0, setTimeout(() => {
|
|
3063
|
-
|
|
3063
|
+
o.value = !0;
|
|
3064
3064
|
});
|
|
3065
3065
|
}
|
|
3066
|
-
function
|
|
3067
|
-
|
|
3066
|
+
function Q(S) {
|
|
3067
|
+
o.value = !1, l.value?.$el.contains(S.relatedTarget) || (u.value = !1);
|
|
3068
3068
|
}
|
|
3069
|
-
function
|
|
3070
|
-
(S == null || S === "" && !e.multiple && !
|
|
3069
|
+
function te(S) {
|
|
3070
|
+
(S == null || S === "" && !e.multiple && !N.value) && (C.value = []);
|
|
3071
3071
|
}
|
|
3072
|
-
function
|
|
3073
|
-
|
|
3072
|
+
function Re(S) {
|
|
3073
|
+
i.value?.contentEl?.contains(S.relatedTarget) && (u.value = !0);
|
|
3074
3074
|
}
|
|
3075
|
-
const _e =
|
|
3075
|
+
const _e = ee(!1);
|
|
3076
3076
|
function we(S) {
|
|
3077
3077
|
let Y = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;
|
|
3078
3078
|
if (!(!S || S.props.disabled))
|
|
3079
3079
|
if (e.multiple) {
|
|
3080
|
-
const
|
|
3081
|
-
if (~
|
|
3082
|
-
const
|
|
3083
|
-
|
|
3080
|
+
const L = C.value.findIndex((le) => (e.valueComparator || qe)(le.value, S.value)), T = Y ?? !~L;
|
|
3081
|
+
if (~L) {
|
|
3082
|
+
const le = T ? [...C.value, S] : [...C.value];
|
|
3083
|
+
le.splice(L, 1), C.value = le;
|
|
3084
3084
|
} else T && (C.value = [...C.value, S]);
|
|
3085
|
-
e.clearOnSelect && (
|
|
3085
|
+
e.clearOnSelect && (w.value = "");
|
|
3086
3086
|
} else {
|
|
3087
|
-
const
|
|
3088
|
-
C.value =
|
|
3089
|
-
q.value = !1,
|
|
3087
|
+
const L = Y !== !1;
|
|
3088
|
+
C.value = L ? [S] : [], c.value = r.value ? "" : w.value ?? "", w.value = L && !N.value ? S.title : "", ke(() => {
|
|
3089
|
+
q.value = !1, r.value = !0;
|
|
3090
3090
|
});
|
|
3091
3091
|
}
|
|
3092
3092
|
}
|
|
3093
3093
|
return se(u, (S, Y) => {
|
|
3094
|
-
S !== Y && (S ? (_e.value = !0,
|
|
3095
|
-
}), se(
|
|
3096
|
-
!u.value || _e.value || (S && (q.value = !0),
|
|
3094
|
+
S !== Y && (S ? (_e.value = !0, w.value = e.multiple || N.value ? "" : String(C.value.at(-1)?.props.title ?? ""), r.value = !0, ke(() => _e.value = !1)) : (!e.multiple && w.value == null && (C.value = []), q.value = !1, !r.value && w.value && (c.value = w.value), w.value = "", d.value = -1));
|
|
3095
|
+
}), se(w, (S) => {
|
|
3096
|
+
!u.value || _e.value || (S && (q.value = !0), r.value = !S);
|
|
3097
3097
|
}), se(q, (S) => {
|
|
3098
|
-
if (!e.hideSelected && S && C.value.length &&
|
|
3099
|
-
const Y = V.value.findIndex((
|
|
3098
|
+
if (!e.hideSelected && S && C.value.length && r.value) {
|
|
3099
|
+
const Y = V.value.findIndex((L) => C.value.some((T) => L.value === T.value));
|
|
3100
3100
|
ct && window.requestAnimationFrame(() => {
|
|
3101
|
-
Y >= 0 &&
|
|
3101
|
+
Y >= 0 && s.value?.scrollToIndex(Y);
|
|
3102
3102
|
});
|
|
3103
3103
|
}
|
|
3104
3104
|
S && (c.value = null);
|
|
3105
|
-
}), se(
|
|
3105
|
+
}), se(f, (S, Y) => {
|
|
3106
3106
|
q.value || u.value && !Y.length && S.length && (q.value = !0);
|
|
3107
3107
|
}), de(() => {
|
|
3108
|
-
const S = !!(!e.hideNoData || V.value.length || t["prepend-item"] || t["append-item"] || t["no-data"]), Y = C.value.length > 0,
|
|
3109
|
-
search:
|
|
3108
|
+
const S = !!(!e.hideNoData || V.value.length || t["prepend-item"] || t["append-item"] || t["no-data"]), Y = C.value.length > 0, L = Je.filterProps(e), T = {
|
|
3109
|
+
search: w,
|
|
3110
3110
|
filteredItems: U.value
|
|
3111
3111
|
};
|
|
3112
|
-
return g(Je,
|
|
3112
|
+
return g(Je, H({
|
|
3113
3113
|
ref: l
|
|
3114
|
-
},
|
|
3115
|
-
modelValue:
|
|
3116
|
-
"onUpdate:modelValue": [(
|
|
3114
|
+
}, L, {
|
|
3115
|
+
modelValue: w.value,
|
|
3116
|
+
"onUpdate:modelValue": [(le) => w.value = le, te],
|
|
3117
3117
|
focused: u.value,
|
|
3118
|
-
"onUpdate:focused": (
|
|
3118
|
+
"onUpdate:focused": (le) => u.value = le,
|
|
3119
3119
|
validationValue: C.externalValue,
|
|
3120
3120
|
counterValue: F.value,
|
|
3121
3121
|
dirty: Y,
|
|
@@ -3123,27 +3123,27 @@ const kn = X({
|
|
|
3123
3123
|
class: ["v-autocomplete", `v-autocomplete--${e.multiple ? "multiple" : "single"}`, {
|
|
3124
3124
|
"v-autocomplete--active-menu": q.value,
|
|
3125
3125
|
"v-autocomplete--chips": !!e.chips,
|
|
3126
|
-
"v-autocomplete--selection-slot": !!
|
|
3126
|
+
"v-autocomplete--selection-slot": !!N.value,
|
|
3127
3127
|
"v-autocomplete--selecting-index": d.value > -1
|
|
3128
3128
|
}, e.class],
|
|
3129
3129
|
style: e.style,
|
|
3130
|
-
readonly:
|
|
3130
|
+
readonly: E.isReadonly.value,
|
|
3131
3131
|
placeholder: Y ? void 0 : e.placeholder,
|
|
3132
3132
|
"onClick:clear": ve,
|
|
3133
3133
|
"onMousedown:control": ge,
|
|
3134
3134
|
onKeydown: De,
|
|
3135
|
-
onBlur:
|
|
3135
|
+
onBlur: Re,
|
|
3136
3136
|
"aria-expanded": fe.value,
|
|
3137
|
-
"aria-controls":
|
|
3137
|
+
"aria-controls": B.value
|
|
3138
3138
|
}), {
|
|
3139
3139
|
...t,
|
|
3140
|
-
default: (
|
|
3140
|
+
default: (le) => {
|
|
3141
3141
|
let {
|
|
3142
|
-
id:
|
|
3143
|
-
} =
|
|
3144
|
-
return b(ce, null, [g(Gl,
|
|
3145
|
-
id:
|
|
3146
|
-
ref:
|
|
3142
|
+
id: Ee
|
|
3143
|
+
} = le;
|
|
3144
|
+
return b(ce, null, [g(Gl, H({
|
|
3145
|
+
id: K.value,
|
|
3146
|
+
ref: i,
|
|
3147
3147
|
modelValue: q.value,
|
|
3148
3148
|
"onUpdate:modelValue": (ae) => q.value = ae,
|
|
3149
3149
|
activator: "parent",
|
|
@@ -3162,59 +3162,59 @@ const kn = X({
|
|
|
3162
3162
|
}, {
|
|
3163
3163
|
default: () => [t["menu-header"] && b("header", {
|
|
3164
3164
|
ref: k
|
|
3165
|
-
}, [t["menu-header"](T)]), S && g(al,
|
|
3165
|
+
}, [t["menu-header"](T)]), S && g(al, H({
|
|
3166
3166
|
key: "autocomplete-list",
|
|
3167
3167
|
ref: O,
|
|
3168
3168
|
filterable: !0,
|
|
3169
|
-
selected:
|
|
3169
|
+
selected: ne.value,
|
|
3170
3170
|
selectStrategy: e.multiple ? "independent" : "single-independent",
|
|
3171
3171
|
onMousedown: (ae) => ae.preventDefault(),
|
|
3172
|
-
onFocusout:
|
|
3172
|
+
onFocusout: Q,
|
|
3173
3173
|
tabindex: "-1",
|
|
3174
3174
|
selectable: !!V.value.length,
|
|
3175
3175
|
"aria-live": "polite",
|
|
3176
|
-
"aria-labelledby": `${
|
|
3176
|
+
"aria-labelledby": `${Ee.value}-label`,
|
|
3177
3177
|
"aria-multiselectable": e.multiple,
|
|
3178
3178
|
color: e.itemColor ?? e.color
|
|
3179
|
-
},
|
|
3179
|
+
}, P, e.listProps), {
|
|
3180
3180
|
default: () => [t["prepend-item"]?.(), !V.value.length && !e.hideNoData && (t["no-data"]?.() ?? g(vt, {
|
|
3181
3181
|
key: "no-data",
|
|
3182
3182
|
title: n(e.noDataText)
|
|
3183
3183
|
}, null)), g(fn, {
|
|
3184
|
-
ref:
|
|
3184
|
+
ref: s,
|
|
3185
3185
|
renderless: !0,
|
|
3186
3186
|
items: V.value,
|
|
3187
3187
|
itemKey: "value"
|
|
3188
3188
|
}, {
|
|
3189
3189
|
default: (ae) => {
|
|
3190
3190
|
let {
|
|
3191
|
-
item:
|
|
3191
|
+
item: Z,
|
|
3192
3192
|
index: me,
|
|
3193
3193
|
itemRef: Ze
|
|
3194
3194
|
} = ae;
|
|
3195
|
-
const Ge =
|
|
3195
|
+
const Ge = H(Z.props, {
|
|
3196
3196
|
ref: Ze,
|
|
3197
|
-
key:
|
|
3198
|
-
active: W.value &&
|
|
3199
|
-
onClick: () => we(
|
|
3197
|
+
key: Z.value,
|
|
3198
|
+
active: W.value && Z === z.value ? !0 : void 0,
|
|
3199
|
+
onClick: () => we(Z, null),
|
|
3200
3200
|
"aria-posinset": me + 1,
|
|
3201
3201
|
"aria-setsize": V.value.length
|
|
3202
3202
|
});
|
|
3203
|
-
return
|
|
3204
|
-
props:
|
|
3203
|
+
return Z.type === "divider" ? t.divider?.({
|
|
3204
|
+
props: Z.raw,
|
|
3205
3205
|
index: me
|
|
3206
|
-
}) ?? g(ze,
|
|
3206
|
+
}) ?? g(ze, H(Z.props, {
|
|
3207
3207
|
key: `divider-${me}`
|
|
3208
|
-
}), null) :
|
|
3209
|
-
props:
|
|
3208
|
+
}), null) : Z.type === "subheader" ? t.subheader?.({
|
|
3209
|
+
props: Z.raw,
|
|
3210
3210
|
index: me
|
|
3211
|
-
}) ?? g(Wl,
|
|
3211
|
+
}) ?? g(Wl, H(Z.props, {
|
|
3212
3212
|
key: `subheader-${me}`
|
|
3213
3213
|
}), null) : t.item?.({
|
|
3214
|
-
item:
|
|
3214
|
+
item: Z,
|
|
3215
3215
|
index: me,
|
|
3216
3216
|
props: Ge
|
|
3217
|
-
}) ?? g(vt,
|
|
3217
|
+
}) ?? g(vt, H(Ge, {
|
|
3218
3218
|
role: "option"
|
|
3219
3219
|
}), {
|
|
3220
3220
|
prepend: (st) => {
|
|
@@ -3222,31 +3222,31 @@ const kn = X({
|
|
|
3222
3222
|
isSelected: Ae
|
|
3223
3223
|
} = st;
|
|
3224
3224
|
return b(ce, null, [e.multiple && !e.hideSelected ? g(un, {
|
|
3225
|
-
key:
|
|
3225
|
+
key: Z.value,
|
|
3226
3226
|
modelValue: Ae,
|
|
3227
3227
|
ripple: !1,
|
|
3228
3228
|
tabindex: "-1",
|
|
3229
3229
|
"aria-hidden": !0,
|
|
3230
3230
|
onClick: (In) => In.preventDefault()
|
|
3231
|
-
}, null) : void 0,
|
|
3232
|
-
image:
|
|
3233
|
-
}, null),
|
|
3234
|
-
icon:
|
|
3231
|
+
}, null) : void 0, Z.props.prependAvatar && g(nt, {
|
|
3232
|
+
image: Z.props.prependAvatar
|
|
3233
|
+
}, null), Z.props.prependIcon && g(Se, {
|
|
3234
|
+
icon: Z.props.prependIcon
|
|
3235
3235
|
}, null)]);
|
|
3236
3236
|
},
|
|
3237
|
-
title: () =>
|
|
3237
|
+
title: () => r.value ? Z.title : bn("v-autocomplete", Z.title, A(Z)?.title)
|
|
3238
3238
|
});
|
|
3239
3239
|
}
|
|
3240
3240
|
}), t["append-item"]?.()]
|
|
3241
3241
|
}), t["menu-footer"] && b("footer", {
|
|
3242
|
-
ref:
|
|
3242
|
+
ref: m
|
|
3243
3243
|
}, [t["menu-footer"](T)])]
|
|
3244
3244
|
})]
|
|
3245
|
-
}), C.value.map((ae,
|
|
3245
|
+
}), C.value.map((ae, Z) => {
|
|
3246
3246
|
function me(Ae) {
|
|
3247
3247
|
Ae.stopPropagation(), Ae.preventDefault(), we(ae, !1);
|
|
3248
3248
|
}
|
|
3249
|
-
const Ze =
|
|
3249
|
+
const Ze = H(mt.filterProps(ae.props), {
|
|
3250
3250
|
"onClick:close": me,
|
|
3251
3251
|
onKeydown(Ae) {
|
|
3252
3252
|
Ae.key !== "Enter" && Ae.key !== " " || (Ae.preventDefault(), Ae.stopPropagation(), me(Ae));
|
|
@@ -3258,17 +3258,17 @@ const kn = X({
|
|
|
3258
3258
|
"onUpdate:modelValue": void 0
|
|
3259
3259
|
}), Ge = D.value ? !!t.chip : !!t.selection, st = Ge ? ql(D.value ? t.chip({
|
|
3260
3260
|
item: ae,
|
|
3261
|
-
index:
|
|
3261
|
+
index: Z,
|
|
3262
3262
|
props: Ze
|
|
3263
3263
|
}) : t.selection({
|
|
3264
3264
|
item: ae,
|
|
3265
|
-
index:
|
|
3265
|
+
index: Z
|
|
3266
3266
|
})) : void 0;
|
|
3267
3267
|
if (!(Ge && !st))
|
|
3268
3268
|
return b("div", {
|
|
3269
3269
|
key: ae.value,
|
|
3270
|
-
class: re(["v-autocomplete__selection",
|
|
3271
|
-
style: xe(
|
|
3270
|
+
class: re(["v-autocomplete__selection", Z === d.value && ["v-autocomplete__selection--selected", h.value]]),
|
|
3271
|
+
style: xe(Z === d.value ? p.value : {})
|
|
3272
3272
|
}, [D.value ? t.chip ? g(Fe, {
|
|
3273
3273
|
key: "chip-defaults",
|
|
3274
3274
|
defaults: {
|
|
@@ -3280,7 +3280,7 @@ const kn = X({
|
|
|
3280
3280
|
}
|
|
3281
3281
|
}, {
|
|
3282
3282
|
default: () => [st]
|
|
3283
|
-
}) : g(mt,
|
|
3283
|
+
}) : g(mt, H({
|
|
3284
3284
|
key: "chip",
|
|
3285
3285
|
closable: M.value,
|
|
3286
3286
|
size: "small",
|
|
@@ -3288,15 +3288,15 @@ const kn = X({
|
|
|
3288
3288
|
disabled: ae.props.disabled
|
|
3289
3289
|
}, Ze), null) : st ?? b("span", {
|
|
3290
3290
|
class: "v-autocomplete__selection-text"
|
|
3291
|
-
}, [ae.title, e.multiple &&
|
|
3291
|
+
}, [ae.title, e.multiple && Z < C.value.length - 1 && b("span", {
|
|
3292
3292
|
class: "v-autocomplete__selection-comma"
|
|
3293
3293
|
}, [Sl(",")])])]);
|
|
3294
3294
|
})]);
|
|
3295
3295
|
},
|
|
3296
3296
|
"append-inner": function() {
|
|
3297
|
-
for (var
|
|
3298
|
-
|
|
3299
|
-
return b(ce, null, [t["append-inner"]?.(...
|
|
3297
|
+
for (var le = arguments.length, Ee = new Array(le), ae = 0; ae < le; ae++)
|
|
3298
|
+
Ee[ae] = arguments[ae];
|
|
3299
|
+
return b(ce, null, [t["append-inner"]?.(...Ee), e.menuIcon ? g(Se, {
|
|
3300
3300
|
class: "v-autocomplete__menu-icon",
|
|
3301
3301
|
color: l.value?.fieldIconColor,
|
|
3302
3302
|
icon: e.menuIcon,
|
|
@@ -3304,18 +3304,18 @@ const kn = X({
|
|
|
3304
3304
|
onClick: jn,
|
|
3305
3305
|
"aria-hidden": !0,
|
|
3306
3306
|
tabindex: "-1"
|
|
3307
|
-
}, null) : void 0, e.appendInnerIcon && g(
|
|
3307
|
+
}, null) : void 0, e.appendInnerIcon && g(_, {
|
|
3308
3308
|
key: "append-icon",
|
|
3309
3309
|
name: "appendInner",
|
|
3310
|
-
color:
|
|
3310
|
+
color: Ee[0].iconColor.value
|
|
3311
3311
|
}, null)]);
|
|
3312
3312
|
}
|
|
3313
3313
|
});
|
|
3314
3314
|
}), St({
|
|
3315
3315
|
isFocused: u,
|
|
3316
|
-
isPristine:
|
|
3316
|
+
isPristine: r,
|
|
3317
3317
|
menu: q,
|
|
3318
|
-
search:
|
|
3318
|
+
search: w,
|
|
3319
3319
|
filteredItems: U,
|
|
3320
3320
|
select: we
|
|
3321
3321
|
}, l);
|
|
@@ -3364,18 +3364,18 @@ const kn = X({
|
|
|
3364
3364
|
} = gt(e), {
|
|
3365
3365
|
t: u
|
|
3366
3366
|
} = it(), {
|
|
3367
|
-
textColorClasses:
|
|
3368
|
-
textColorStyles:
|
|
3367
|
+
textColorClasses: r,
|
|
3368
|
+
textColorStyles: o
|
|
3369
3369
|
} = kt(() => e.textColor), {
|
|
3370
|
-
themeClasses:
|
|
3370
|
+
themeClasses: i
|
|
3371
3371
|
} = Gn(), {
|
|
3372
|
-
locationStyles:
|
|
3372
|
+
locationStyles: s
|
|
3373
3373
|
} = tl(e, !0, (c) => (e.floating ? e.dot ? 2 : 4 : e.dot ? 8 : 12) + (["top", "bottom"].includes(c) ? Number(e.offsetY ?? 0) : ["left", "right"].includes(c) ? Number(e.offsetX ?? 0) : 0)), {
|
|
3374
3374
|
dimensionStyles: d
|
|
3375
3375
|
} = bt(e);
|
|
3376
3376
|
return de(() => {
|
|
3377
|
-
const c = Number(e.content),
|
|
3378
|
-
return g(e.tag,
|
|
3377
|
+
const c = Number(e.content), f = !e.max || isNaN(c) ? e.content : c <= Number(e.max) ? c : `${e.max}+`, [v, y] = Wn(a.attrs, ["aria-atomic", "aria-label", "aria-live", "role", "title"]);
|
|
3378
|
+
return g(e.tag, H({
|
|
3379
3379
|
class: ["v-badge", {
|
|
3380
3380
|
"v-badge--bordered": e.bordered,
|
|
3381
3381
|
"v-badge--dot": e.dot,
|
|
@@ -3390,16 +3390,16 @@ const kn = X({
|
|
|
3390
3390
|
}, [a.slots.default?.(), g(nl, {
|
|
3391
3391
|
transition: e.transition
|
|
3392
3392
|
}, {
|
|
3393
|
-
default: () => [Ue(b("span",
|
|
3394
|
-
class: ["v-badge__badge",
|
|
3395
|
-
style: [n.value,
|
|
3393
|
+
default: () => [Ue(b("span", H({
|
|
3394
|
+
class: ["v-badge__badge", i.value, t.value, l.value, r.value],
|
|
3395
|
+
style: [n.value, o.value, d.value, e.inline ? {} : s.value],
|
|
3396
3396
|
"aria-atomic": "true",
|
|
3397
3397
|
"aria-label": u(e.label, c),
|
|
3398
3398
|
"aria-live": "polite",
|
|
3399
3399
|
role: "status"
|
|
3400
3400
|
}, v), [e.dot ? void 0 : a.slots.badge ? a.slots.badge?.() : e.icon ? g(Se, {
|
|
3401
3401
|
icon: e.icon
|
|
3402
|
-
}, null) :
|
|
3402
|
+
}, null) : f]), [[_t, e.modelValue]])]
|
|
3403
3403
|
})])]
|
|
3404
3404
|
});
|
|
3405
3405
|
}), {};
|
|
@@ -3432,35 +3432,35 @@ const kn = X({
|
|
|
3432
3432
|
} = a;
|
|
3433
3433
|
const l = Ve(e, "modelValue"), {
|
|
3434
3434
|
scopeId: u
|
|
3435
|
-
} = qn(),
|
|
3436
|
-
function
|
|
3437
|
-
t("afterEnter"), (e.scrim || e.retainFocus) &&
|
|
3435
|
+
} = qn(), r = G();
|
|
3436
|
+
function o() {
|
|
3437
|
+
t("afterEnter"), (e.scrim || e.retainFocus) && r.value?.contentEl && !r.value.contentEl.contains(document.activeElement) && r.value.contentEl.focus({
|
|
3438
3438
|
preventScroll: !0
|
|
3439
3439
|
});
|
|
3440
3440
|
}
|
|
3441
|
-
function
|
|
3441
|
+
function i() {
|
|
3442
3442
|
t("afterLeave");
|
|
3443
3443
|
}
|
|
3444
|
-
return se(l, async (
|
|
3445
|
-
|
|
3444
|
+
return se(l, async (s) => {
|
|
3445
|
+
s || (await ke(), r.value.activatorEl?.focus({
|
|
3446
3446
|
preventScroll: !0
|
|
3447
3447
|
}));
|
|
3448
3448
|
}), de(() => {
|
|
3449
|
-
const
|
|
3449
|
+
const s = vl.filterProps(e), d = H({
|
|
3450
3450
|
"aria-haspopup": "dialog"
|
|
3451
|
-
}, e.activatorProps), c =
|
|
3451
|
+
}, e.activatorProps), c = H({
|
|
3452
3452
|
tabindex: -1
|
|
3453
3453
|
}, e.contentProps);
|
|
3454
|
-
return g(vl,
|
|
3455
|
-
ref:
|
|
3454
|
+
return g(vl, H({
|
|
3455
|
+
ref: r,
|
|
3456
3456
|
class: ["v-dialog", {
|
|
3457
3457
|
"v-dialog--fullscreen": e.fullscreen,
|
|
3458
3458
|
"v-dialog--scrollable": e.scrollable
|
|
3459
3459
|
}, e.class],
|
|
3460
3460
|
style: e.style
|
|
3461
|
-
},
|
|
3461
|
+
}, s, {
|
|
3462
3462
|
modelValue: l.value,
|
|
3463
|
-
"onUpdate:modelValue": (
|
|
3463
|
+
"onUpdate:modelValue": (f) => l.value = f,
|
|
3464
3464
|
"aria-modal": "true",
|
|
3465
3465
|
activatorProps: d,
|
|
3466
3466
|
contentProps: c,
|
|
@@ -3469,12 +3469,12 @@ const kn = X({
|
|
|
3469
3469
|
maxHeight: e.fullscreen ? void 0 : e.maxHeight,
|
|
3470
3470
|
maxWidth: e.fullscreen ? void 0 : e.maxWidth,
|
|
3471
3471
|
role: "dialog",
|
|
3472
|
-
onAfterEnter:
|
|
3473
|
-
onAfterLeave:
|
|
3472
|
+
onAfterEnter: o,
|
|
3473
|
+
onAfterLeave: i
|
|
3474
3474
|
}, u), {
|
|
3475
3475
|
activator: n.activator,
|
|
3476
3476
|
default: function() {
|
|
3477
|
-
for (var
|
|
3477
|
+
for (var f = arguments.length, v = new Array(f), y = 0; y < f; y++)
|
|
3478
3478
|
v[y] = arguments[y];
|
|
3479
3479
|
return g(Fe, {
|
|
3480
3480
|
root: "VDialog"
|
|
@@ -3483,7 +3483,7 @@ const kn = X({
|
|
|
3483
3483
|
});
|
|
3484
3484
|
}
|
|
3485
3485
|
});
|
|
3486
|
-
}), St({},
|
|
3486
|
+
}), St({}, r);
|
|
3487
3487
|
}
|
|
3488
3488
|
}), Za = X({
|
|
3489
3489
|
...be(),
|
|
@@ -3547,7 +3547,7 @@ const kn = X({
|
|
|
3547
3547
|
slots: t
|
|
3548
3548
|
} = a;
|
|
3549
3549
|
return de(() => {
|
|
3550
|
-
const n = !!(e.prependAvatar || e.prependIcon), l = !!(n || t.prepend), u = !!(e.appendAvatar || e.appendIcon),
|
|
3550
|
+
const n = !!(e.prependAvatar || e.prependIcon), l = !!(n || t.prepend), u = !!(e.appendAvatar || e.appendIcon), r = !!(u || t.append), o = !!(e.title != null || t.title), i = !!(e.subtitle != null || t.subtitle);
|
|
3551
3551
|
return g(e.tag, {
|
|
3552
3552
|
class: re(["v-card-item", e.class]),
|
|
3553
3553
|
style: xe(e.style)
|
|
@@ -3578,15 +3578,15 @@ const kn = X({
|
|
|
3578
3578
|
icon: e.prependIcon
|
|
3579
3579
|
}, null)])]), b("div", {
|
|
3580
3580
|
class: "v-card-item__content"
|
|
3581
|
-
}, [
|
|
3581
|
+
}, [o && g(ul, {
|
|
3582
3582
|
key: "title"
|
|
3583
3583
|
}, {
|
|
3584
3584
|
default: () => [t.title?.() ?? Vt(e.title)]
|
|
3585
|
-
}),
|
|
3585
|
+
}), i && g(to, {
|
|
3586
3586
|
key: "subtitle"
|
|
3587
3587
|
}, {
|
|
3588
3588
|
default: () => [t.subtitle?.() ?? Vt(e.subtitle)]
|
|
3589
|
-
}), t.default?.()]),
|
|
3589
|
+
}), t.default?.()]), r && b("div", {
|
|
3590
3590
|
key: "append",
|
|
3591
3591
|
class: "v-card-item__append"
|
|
3592
3592
|
}, [t.append ? g(Fe, {
|
|
@@ -3692,38 +3692,38 @@ const kn = X({
|
|
|
3692
3692
|
} = ot(e), {
|
|
3693
3693
|
borderClasses: u
|
|
3694
3694
|
} = Yt(e), {
|
|
3695
|
-
colorClasses:
|
|
3696
|
-
colorStyles:
|
|
3697
|
-
variantClasses:
|
|
3695
|
+
colorClasses: r,
|
|
3696
|
+
colorStyles: o,
|
|
3697
|
+
variantClasses: i
|
|
3698
3698
|
} = Fl(e), {
|
|
3699
|
-
densityClasses:
|
|
3699
|
+
densityClasses: s
|
|
3700
3700
|
} = Dt(e), {
|
|
3701
3701
|
dimensionStyles: d
|
|
3702
3702
|
} = bt(e), {
|
|
3703
3703
|
elevationClasses: c
|
|
3704
3704
|
} = Qt(e), {
|
|
3705
|
-
loaderClasses:
|
|
3705
|
+
loaderClasses: f
|
|
3706
3706
|
} = Hl(e), {
|
|
3707
3707
|
locationStyles: v
|
|
3708
3708
|
} = tl(e), {
|
|
3709
3709
|
positionClasses: y
|
|
3710
3710
|
} = Rl(e), {
|
|
3711
3711
|
roundedClasses: h
|
|
3712
|
-
} = gt(e), p = Al(e, t),
|
|
3713
|
-
return se(() => e.loading, (
|
|
3714
|
-
|
|
3712
|
+
} = gt(e), p = Al(e, t), _ = ee(void 0);
|
|
3713
|
+
return se(() => e.loading, (w, C) => {
|
|
3714
|
+
_.value = !w && typeof C == "string" ? C : typeof w == "boolean" ? void 0 : w;
|
|
3715
3715
|
}, {
|
|
3716
3716
|
immediate: !0
|
|
3717
3717
|
}), de(() => {
|
|
3718
|
-
const
|
|
3719
|
-
return Ue(g(F,
|
|
3718
|
+
const w = e.link !== !1 && p.isLink.value, C = !e.disabled && e.link !== !1 && (e.link || p.isClickable.value), F = w ? "a" : e.tag, E = !!(n.title || e.title != null), U = !!(n.subtitle || e.subtitle != null), A = E || U, V = !!(n.append || e.appendAvatar || e.appendIcon), M = !!(n.prepend || e.prependAvatar || e.prependIcon), D = !!(n.image || e.image), N = A || M || V, ne = !!(n.text || e.text != null);
|
|
3719
|
+
return Ue(g(F, H(p.linkProps, {
|
|
3720
3720
|
class: ["v-card", {
|
|
3721
3721
|
"v-card--disabled": e.disabled,
|
|
3722
3722
|
"v-card--flat": e.flat,
|
|
3723
3723
|
"v-card--hover": e.hover && !(e.disabled || e.flat),
|
|
3724
3724
|
"v-card--link": C
|
|
3725
|
-
}, l.value, u.value,
|
|
3726
|
-
style: [
|
|
3725
|
+
}, l.value, u.value, r.value, s.value, c.value, f.value, y.value, h.value, i.value, e.class],
|
|
3726
|
+
style: [o.value, d.value, v.value, {
|
|
3727
3727
|
"--v-card-height": et(e.height)
|
|
3728
3728
|
}, e.style],
|
|
3729
3729
|
onClick: C && p.navigate.value,
|
|
@@ -3748,10 +3748,10 @@ const kn = X({
|
|
|
3748
3748
|
}, null)]), g(zl, {
|
|
3749
3749
|
name: "v-card",
|
|
3750
3750
|
active: !!e.loading,
|
|
3751
|
-
color:
|
|
3751
|
+
color: _.value
|
|
3752
3752
|
}, {
|
|
3753
3753
|
default: n.loader
|
|
3754
|
-
}),
|
|
3754
|
+
}), N && g(no, {
|
|
3755
3755
|
key: "item",
|
|
3756
3756
|
prependAvatar: e.prependAvatar,
|
|
3757
3757
|
prependIcon: e.prependIcon,
|
|
@@ -3765,7 +3765,7 @@ const kn = X({
|
|
|
3765
3765
|
title: n.title,
|
|
3766
3766
|
subtitle: n.subtitle,
|
|
3767
3767
|
append: n.append
|
|
3768
|
-
}),
|
|
3768
|
+
}), ne && g(sl, {
|
|
3769
3769
|
key: "text"
|
|
3770
3770
|
}, {
|
|
3771
3771
|
default: () => [n.text?.() ?? e.text]
|
|
@@ -3781,17 +3781,17 @@ function so(e) {
|
|
|
3781
3781
|
toggleUpDown: a
|
|
3782
3782
|
} = e, t = -1, n = -1;
|
|
3783
3783
|
rt(u);
|
|
3784
|
-
function l(
|
|
3785
|
-
u(),
|
|
3786
|
-
n = window.setInterval(() =>
|
|
3784
|
+
function l(o) {
|
|
3785
|
+
u(), r(o), window.addEventListener("pointerup", u), document.addEventListener("blur", u), t = window.setTimeout(() => {
|
|
3786
|
+
n = window.setInterval(() => r(o), io);
|
|
3787
3787
|
}, uo);
|
|
3788
3788
|
}
|
|
3789
3789
|
function u() {
|
|
3790
3790
|
window.clearTimeout(t), window.clearInterval(n), window.removeEventListener("pointerup", u), document.removeEventListener("blur", u);
|
|
3791
3791
|
}
|
|
3792
3792
|
rt(u);
|
|
3793
|
-
function
|
|
3794
|
-
a(
|
|
3793
|
+
function r(o) {
|
|
3794
|
+
a(o === "up");
|
|
3795
3795
|
}
|
|
3796
3796
|
return {
|
|
3797
3797
|
holdStart: l,
|
|
@@ -3851,41 +3851,41 @@ const ro = X({
|
|
|
3851
3851
|
holdStart: l,
|
|
3852
3852
|
holdStop: u
|
|
3853
3853
|
} = so({
|
|
3854
|
-
toggleUpDown:
|
|
3855
|
-
}),
|
|
3856
|
-
decimalSeparator:
|
|
3857
|
-
} = it(), d = I(() => e.decimalSeparator?.[0] ||
|
|
3858
|
-
function c(
|
|
3859
|
-
let
|
|
3860
|
-
const ve =
|
|
3861
|
-
if (
|
|
3854
|
+
toggleUpDown: N
|
|
3855
|
+
}), r = $t(e), o = I(() => r.isDisabled.value || r.isReadonly.value), i = ee(e.focused), {
|
|
3856
|
+
decimalSeparator: s
|
|
3857
|
+
} = it(), d = I(() => e.decimalSeparator?.[0] || s.value);
|
|
3858
|
+
function c(m) {
|
|
3859
|
+
let P = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : e.precision, J = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0;
|
|
3860
|
+
const ve = P == null ? String(m) : m.toFixed(P);
|
|
3861
|
+
if (i.value && J)
|
|
3862
3862
|
return Number(ve).toString().replace(".", d.value);
|
|
3863
|
-
if (e.minFractionDigits === null ||
|
|
3863
|
+
if (e.minFractionDigits === null || P !== null && P < e.minFractionDigits)
|
|
3864
3864
|
return ve.replace(".", d.value);
|
|
3865
3865
|
let [ge, pe] = ve.split(".");
|
|
3866
3866
|
return pe = (pe ?? "").padEnd(e.minFractionDigits, "0").replace(new RegExp(`(?<=\\d{${e.minFractionDigits}})0+$`, "g"), ""), [ge, pe].filter(Boolean).join(d.value);
|
|
3867
3867
|
}
|
|
3868
|
-
const
|
|
3869
|
-
se(
|
|
3870
|
-
|
|
3868
|
+
const f = Ve(e, "modelValue", null, (m) => m ?? null, (m) => m == null ? m ?? null : Ne(Number(m), e.min, e.max)), v = ee(null), y = ee(null);
|
|
3869
|
+
se(f, (m) => {
|
|
3870
|
+
i.value && !o.value && Number(v.value?.replace(d.value, ".")) === m || (m == null ? (v.value = null, y.value = null) : isNaN(m) || (v.value = c(m), y.value = Number(v.value.replace(d.value, "."))));
|
|
3871
3871
|
}, {
|
|
3872
3872
|
immediate: !0
|
|
3873
3873
|
});
|
|
3874
3874
|
const h = I({
|
|
3875
3875
|
get: () => v.value,
|
|
3876
|
-
set(
|
|
3877
|
-
if (
|
|
3878
|
-
|
|
3876
|
+
set(m) {
|
|
3877
|
+
if (m === null || m === "") {
|
|
3878
|
+
f.value = null, v.value = null, y.value = null;
|
|
3879
3879
|
return;
|
|
3880
3880
|
}
|
|
3881
|
-
const
|
|
3882
|
-
isNaN(
|
|
3881
|
+
const P = Number(m.replace(d.value, "."));
|
|
3882
|
+
isNaN(P) || (v.value = m, y.value = P, P <= e.max && P >= e.min && (f.value = P));
|
|
3883
3883
|
}
|
|
3884
3884
|
}), p = I(() => {
|
|
3885
3885
|
if (y.value === null) return !1;
|
|
3886
|
-
const
|
|
3887
|
-
return
|
|
3888
|
-
}),
|
|
3886
|
+
const m = Number(v.value?.replace(d.value, "."));
|
|
3887
|
+
return m !== Ne(m, e.min, e.max);
|
|
3888
|
+
}), _ = I(() => o.value ? !1 : (f.value ?? 0) + e.step <= e.max), w = I(() => o.value ? !1 : (f.value ?? 0) - e.step >= e.min), C = I(() => e.hideInput ? "stacked" : e.controlVariant), F = R(() => C.value === "split" ? "$plus" : "$collapse"), E = R(() => C.value === "split" ? "$minus" : "$expand"), U = R(() => C.value === "split" ? "default" : "small"), A = R(() => C.value === "stacked" ? "auto" : "100%"), V = {
|
|
3889
3889
|
props: {
|
|
3890
3890
|
onClick: W,
|
|
3891
3891
|
onPointerup: j,
|
|
@@ -3901,81 +3901,81 @@ const ro = X({
|
|
|
3901
3901
|
}
|
|
3902
3902
|
};
|
|
3903
3903
|
se(() => e.precision, () => fe()), se(() => e.minFractionDigits, () => fe()), at(() => {
|
|
3904
|
-
|
|
3904
|
+
K();
|
|
3905
3905
|
});
|
|
3906
|
-
function D(
|
|
3907
|
-
if (
|
|
3908
|
-
const
|
|
3909
|
-
return ~J ?
|
|
3906
|
+
function D(m) {
|
|
3907
|
+
if (m == null) return 0;
|
|
3908
|
+
const P = m.toString(), J = P.indexOf(".");
|
|
3909
|
+
return ~J ? P.length - J : 0;
|
|
3910
3910
|
}
|
|
3911
|
-
function
|
|
3912
|
-
let
|
|
3913
|
-
if (
|
|
3914
|
-
if (
|
|
3911
|
+
function N() {
|
|
3912
|
+
let m = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0;
|
|
3913
|
+
if (o.value) return;
|
|
3914
|
+
if (f.value == null) {
|
|
3915
3915
|
h.value = c(Ne(0, e.min, e.max));
|
|
3916
3916
|
return;
|
|
3917
3917
|
}
|
|
3918
|
-
let
|
|
3919
|
-
e.precision != null && (
|
|
3918
|
+
let P = Math.max(D(f.value), D(e.step));
|
|
3919
|
+
e.precision != null && (P = Math.max(P, e.precision)), m ? _.value && (h.value = c(f.value + e.step, P)) : w.value && (h.value = c(f.value - e.step, P));
|
|
3920
3920
|
}
|
|
3921
|
-
function
|
|
3922
|
-
if (
|
|
3923
|
-
const
|
|
3921
|
+
function ne(m) {
|
|
3922
|
+
if (o.value || !m.data) return;
|
|
3923
|
+
const P = m.target, {
|
|
3924
3924
|
value: J,
|
|
3925
3925
|
selectionStart: ve,
|
|
3926
3926
|
selectionEnd: ge
|
|
3927
|
-
} =
|
|
3928
|
-
if (new RegExp(`^-?\\d*${Zn(d.value)}?\\d*$`).test(pe) || (
|
|
3927
|
+
} = P ?? {}, pe = J ? J.slice(0, ve) + m.data + J.slice(ge) : m.data, Ie = Qn(pe, e.precision, d.value);
|
|
3928
|
+
if (new RegExp(`^-?\\d*${Zn(d.value)}?\\d*$`).test(pe) || (m.preventDefault(), P.value = Ie, ke(() => h.value = Ie)), e.precision != null) {
|
|
3929
3929
|
if (pe.split(d.value)[1]?.length > e.precision) {
|
|
3930
|
-
|
|
3931
|
-
const De = (ve ?? 0) +
|
|
3932
|
-
|
|
3930
|
+
m.preventDefault(), P.value = Ie, ke(() => h.value = Ie);
|
|
3931
|
+
const De = (ve ?? 0) + m.data.length;
|
|
3932
|
+
P.setSelectionRange(De, De);
|
|
3933
3933
|
}
|
|
3934
|
-
e.precision === 0 && pe.endsWith(d.value) && (
|
|
3934
|
+
e.precision === 0 && pe.endsWith(d.value) && (m.preventDefault(), P.value = Ie, ke(() => h.value = Ie));
|
|
3935
3935
|
}
|
|
3936
3936
|
}
|
|
3937
|
-
async function
|
|
3938
|
-
["Enter", "ArrowLeft", "ArrowRight", "Backspace", "Delete", "Tab"].includes(
|
|
3937
|
+
async function z(m) {
|
|
3938
|
+
["Enter", "ArrowLeft", "ArrowRight", "Backspace", "Delete", "Tab"].includes(m.key) || m.ctrlKey || ["ArrowDown", "ArrowUp"].includes(m.key) && (m.preventDefault(), m.stopPropagation(), K(), await ke(), m.key === "ArrowDown" ? N(!1) : N());
|
|
3939
3939
|
}
|
|
3940
|
-
function W(
|
|
3941
|
-
|
|
3940
|
+
function W(m) {
|
|
3941
|
+
m.stopPropagation();
|
|
3942
3942
|
}
|
|
3943
|
-
function j(
|
|
3944
|
-
|
|
3943
|
+
function j(m) {
|
|
3944
|
+
m.currentTarget?.releasePointerCapture(m.pointerId), m.preventDefault(), u();
|
|
3945
3945
|
}
|
|
3946
|
-
function ue(
|
|
3947
|
-
|
|
3946
|
+
function ue(m) {
|
|
3947
|
+
m.currentTarget?.setPointerCapture(m.pointerId), m.preventDefault(), m.stopPropagation(), l("up");
|
|
3948
3948
|
}
|
|
3949
|
-
function q(
|
|
3950
|
-
|
|
3949
|
+
function q(m) {
|
|
3950
|
+
m.currentTarget?.setPointerCapture(m.pointerId), m.preventDefault(), m.stopPropagation(), l("down");
|
|
3951
3951
|
}
|
|
3952
|
-
function
|
|
3953
|
-
if (
|
|
3954
|
-
const
|
|
3955
|
-
|
|
3952
|
+
function K() {
|
|
3953
|
+
if (o.value || !n.value) return;
|
|
3954
|
+
const m = n.value.value, P = Number(m.replace(d.value, "."));
|
|
3955
|
+
m && !isNaN(P) ? h.value = c(Ne(P, e.min, e.max)) : h.value = null;
|
|
3956
3956
|
}
|
|
3957
3957
|
function fe() {
|
|
3958
|
-
|
|
3958
|
+
o.value || (h.value = f.value !== null && !isNaN(f.value) ? c(f.value, e.precision, !1) : null);
|
|
3959
3959
|
}
|
|
3960
|
-
function
|
|
3961
|
-
if (!
|
|
3962
|
-
if (
|
|
3960
|
+
function B() {
|
|
3961
|
+
if (!o.value) {
|
|
3962
|
+
if (f.value === null || isNaN(f.value)) {
|
|
3963
3963
|
h.value = null;
|
|
3964
3964
|
return;
|
|
3965
3965
|
}
|
|
3966
|
-
h.value =
|
|
3966
|
+
h.value = f.value.toString().replace(".", d.value);
|
|
3967
3967
|
}
|
|
3968
3968
|
}
|
|
3969
3969
|
function O() {
|
|
3970
|
-
|
|
3970
|
+
B();
|
|
3971
3971
|
}
|
|
3972
3972
|
function k() {
|
|
3973
|
-
|
|
3973
|
+
K();
|
|
3974
3974
|
}
|
|
3975
3975
|
return de(() => {
|
|
3976
3976
|
const {
|
|
3977
|
-
modelValue:
|
|
3978
|
-
type:
|
|
3977
|
+
modelValue: m,
|
|
3978
|
+
type: P,
|
|
3979
3979
|
...J
|
|
3980
3980
|
} = Je.filterProps(e);
|
|
3981
3981
|
function ve() {
|
|
@@ -3983,8 +3983,8 @@ const ro = X({
|
|
|
3983
3983
|
key: "increment-defaults",
|
|
3984
3984
|
defaults: {
|
|
3985
3985
|
VBtn: {
|
|
3986
|
-
disabled: !
|
|
3987
|
-
height:
|
|
3986
|
+
disabled: !_.value,
|
|
3987
|
+
height: A.value,
|
|
3988
3988
|
size: U.value,
|
|
3989
3989
|
icon: F.value,
|
|
3990
3990
|
variant: "text"
|
|
@@ -3995,8 +3995,8 @@ const ro = X({
|
|
|
3995
3995
|
}) : g(tt, {
|
|
3996
3996
|
"aria-hidden": "true",
|
|
3997
3997
|
"data-testid": "increment",
|
|
3998
|
-
disabled: !
|
|
3999
|
-
height:
|
|
3998
|
+
disabled: !_.value,
|
|
3999
|
+
height: A.value,
|
|
4000
4000
|
icon: F.value,
|
|
4001
4001
|
key: "increment-btn",
|
|
4002
4002
|
onClick: W,
|
|
@@ -4013,10 +4013,10 @@ const ro = X({
|
|
|
4013
4013
|
key: "decrement-defaults",
|
|
4014
4014
|
defaults: {
|
|
4015
4015
|
VBtn: {
|
|
4016
|
-
disabled: !
|
|
4017
|
-
height:
|
|
4016
|
+
disabled: !w.value,
|
|
4017
|
+
height: A.value,
|
|
4018
4018
|
size: U.value,
|
|
4019
|
-
icon:
|
|
4019
|
+
icon: E.value,
|
|
4020
4020
|
variant: "text"
|
|
4021
4021
|
}
|
|
4022
4022
|
}
|
|
@@ -4025,9 +4025,9 @@ const ro = X({
|
|
|
4025
4025
|
}) : g(tt, {
|
|
4026
4026
|
"aria-hidden": "true",
|
|
4027
4027
|
"data-testid": "decrement",
|
|
4028
|
-
disabled: !
|
|
4029
|
-
height:
|
|
4030
|
-
icon:
|
|
4028
|
+
disabled: !w.value,
|
|
4029
|
+
height: A.value,
|
|
4030
|
+
icon: E.value,
|
|
4031
4031
|
key: "decrement-btn",
|
|
4032
4032
|
onClick: W,
|
|
4033
4033
|
onPointerdown: q,
|
|
@@ -4059,19 +4059,19 @@ const ro = X({
|
|
|
4059
4059
|
}, [ge(), g(ze, {
|
|
4060
4060
|
vertical: !0
|
|
4061
4061
|
}, null)]) : e.reverse && C.value !== "hidden" ? b(ce, null, [pe(), Ie()]) : void 0, ut = t["prepend-inner"] || Qe;
|
|
4062
|
-
return g(Je,
|
|
4062
|
+
return g(Je, H({
|
|
4063
4063
|
ref: n
|
|
4064
4064
|
}, J, {
|
|
4065
4065
|
modelValue: h.value,
|
|
4066
4066
|
"onUpdate:modelValue": (x) => h.value = x,
|
|
4067
|
-
focused:
|
|
4068
|
-
"onUpdate:focused": (x) =>
|
|
4069
|
-
validationValue:
|
|
4067
|
+
focused: i.value,
|
|
4068
|
+
"onUpdate:focused": (x) => i.value = x,
|
|
4069
|
+
validationValue: f.value,
|
|
4070
4070
|
error: e.error || p.value || void 0,
|
|
4071
|
-
onBeforeinput:
|
|
4071
|
+
onBeforeinput: ne,
|
|
4072
4072
|
onFocus: O,
|
|
4073
4073
|
onBlur: k,
|
|
4074
|
-
onKeydown:
|
|
4074
|
+
onKeydown: z,
|
|
4075
4075
|
class: ["v-number-input", {
|
|
4076
4076
|
"v-number-input--default": C.value === "default",
|
|
4077
4077
|
"v-number-input--hide-input": e.hideInput,
|
|
@@ -4085,14 +4085,14 @@ const ro = X({
|
|
|
4085
4085
|
}), {
|
|
4086
4086
|
...t,
|
|
4087
4087
|
"append-inner": je ? function() {
|
|
4088
|
-
for (var x = arguments.length,
|
|
4089
|
-
|
|
4090
|
-
return b(ce, null, [t["append-inner"]?.(...
|
|
4088
|
+
for (var x = arguments.length, Q = new Array(x), te = 0; te < x; te++)
|
|
4089
|
+
Q[te] = arguments[te];
|
|
4090
|
+
return b(ce, null, [t["append-inner"]?.(...Q), De]);
|
|
4091
4091
|
} : void 0,
|
|
4092
4092
|
"prepend-inner": ut ? function() {
|
|
4093
|
-
for (var x = arguments.length,
|
|
4094
|
-
|
|
4095
|
-
return b(ce, null, [Qe, t["prepend-inner"]?.(...
|
|
4093
|
+
for (var x = arguments.length, Q = new Array(x), te = 0; te < x; te++)
|
|
4094
|
+
Q[te] = arguments[te];
|
|
4095
|
+
return b(ce, null, [Qe, t["prepend-inner"]?.(...Q)]);
|
|
4096
4096
|
} : void 0
|
|
4097
4097
|
});
|
|
4098
4098
|
}), St({}, n);
|
|
@@ -4105,21 +4105,21 @@ const ro = X({
|
|
|
4105
4105
|
},
|
|
4106
4106
|
emits: /* @__PURE__ */ qt(["closeDialog", "save"], ["update:modelValue"]),
|
|
4107
4107
|
setup(e, { emit: a }) {
|
|
4108
|
-
const t = Pe("table_props"), n = Pe("datatablesPluginOptions"), l = Pt(e, "modelValue"), u = a,
|
|
4108
|
+
const t = Pe("table_props"), n = Pe("datatablesPluginOptions"), l = Pt(e, "modelValue"), u = a, r = {
|
|
4109
4109
|
textfield: Je,
|
|
4110
4110
|
select: Ja,
|
|
4111
4111
|
number: co,
|
|
4112
|
-
datepicker:
|
|
4113
|
-
() => import("./Datepicker-
|
|
4112
|
+
datepicker: Te(
|
|
4113
|
+
() => import("./Datepicker-ZDAgPotu.js")
|
|
4114
4114
|
),
|
|
4115
|
-
comparison:
|
|
4116
|
-
() => import("./Comparison-
|
|
4115
|
+
comparison: Te(
|
|
4116
|
+
() => import("./Comparison-BuQzB-si.js")
|
|
4117
4117
|
)
|
|
4118
|
-
},
|
|
4118
|
+
}, o = I(() => t.headers.filter((s) => s.advancedFilter !== !1 && !s.hidden)), i = (s) => s ? typeof s == "string" ? r[s] : s : r.textfield;
|
|
4119
4119
|
return se(
|
|
4120
|
-
|
|
4121
|
-
(
|
|
4122
|
-
|
|
4120
|
+
o,
|
|
4121
|
+
(s) => {
|
|
4122
|
+
s.forEach((d) => {
|
|
4123
4123
|
const c = d.advancedFilter?.key ?? d.key;
|
|
4124
4124
|
Object.hasOwn(l.value, c) || (l.value[c] = {
|
|
4125
4125
|
comparison: "=",
|
|
@@ -4130,11 +4130,11 @@ const ro = X({
|
|
|
4130
4130
|
{ immediate: !0 }
|
|
4131
4131
|
), at(async () => {
|
|
4132
4132
|
await t.options.advancedFilters?.onMounted();
|
|
4133
|
-
}), (
|
|
4133
|
+
}), (s, d) => (oe(), ye(Vn, { rounded: "lg" }, {
|
|
4134
4134
|
default: Ce(() => [
|
|
4135
4135
|
g(ul, { class: "d-flex justify-space-between align-center" }, {
|
|
4136
4136
|
default: Ce(() => [
|
|
4137
|
-
b("div", vo, Vt(
|
|
4137
|
+
b("div", vo, Vt(s.$t("$datatables.advancedFilters")), 1),
|
|
4138
4138
|
g(tt, {
|
|
4139
4139
|
icon: $(n).header.icons.close,
|
|
4140
4140
|
variant: "text",
|
|
@@ -4146,12 +4146,12 @@ const ro = X({
|
|
|
4146
4146
|
g(ze),
|
|
4147
4147
|
g(sl, { class: "overflow-auto pt-8" }, {
|
|
4148
4148
|
default: Ce(() => [
|
|
4149
|
-
(oe(!0), Ke(ce, null, Wt($(
|
|
4149
|
+
(oe(!0), Ke(ce, null, Wt($(o), (c, f) => (oe(), Ke("div", {
|
|
4150
4150
|
id: `advanced-filter-${c.key}`,
|
|
4151
|
-
key: `filter-${
|
|
4151
|
+
key: `filter-${f}`,
|
|
4152
4152
|
class: re(`advanced-filter advanced-filter--${c.key}`)
|
|
4153
4153
|
}, [
|
|
4154
|
-
(oe(), ye($e(
|
|
4154
|
+
(oe(), ye($e(i(c.advancedFilter?.component)), H({
|
|
4155
4155
|
modelValue: l.value[c.advancedFilter?.key ?? c.key].value,
|
|
4156
4156
|
"onUpdate:modelValue": (v) => l.value[c.advancedFilter?.key ?? c.key].value = v,
|
|
4157
4157
|
comparison: l.value[c.advancedFilter?.key ?? c.key].comparison,
|
|
@@ -4170,13 +4170,13 @@ const ro = X({
|
|
|
4170
4170
|
default: Ce(() => [
|
|
4171
4171
|
g(tt, {
|
|
4172
4172
|
class: "text-none",
|
|
4173
|
-
text:
|
|
4173
|
+
text: s.$t("$datatables.cancel"),
|
|
4174
4174
|
onClick: d[1] || (d[1] = (c) => u("closeDialog"))
|
|
4175
4175
|
}, null, 8, ["text"]),
|
|
4176
4176
|
g(tt, {
|
|
4177
4177
|
class: "text-none",
|
|
4178
4178
|
color: "primary",
|
|
4179
|
-
text:
|
|
4179
|
+
text: s.$t("$datatables.submit"),
|
|
4180
4180
|
variant: "flat",
|
|
4181
4181
|
onClick: d[2] || (d[2] = (c) => u("save"))
|
|
4182
4182
|
}, null, 8, ["text"])
|
|
@@ -4209,8 +4209,8 @@ function Gt(e, a) {
|
|
|
4209
4209
|
if (t.length !== n.length) return !1;
|
|
4210
4210
|
for (const l of t) {
|
|
4211
4211
|
if (!n.includes(l)) return !1;
|
|
4212
|
-
const u = e[l],
|
|
4213
|
-
if (!Gt(u,
|
|
4212
|
+
const u = e[l], r = a[l];
|
|
4213
|
+
if (!Gt(u, r)) return !1;
|
|
4214
4214
|
}
|
|
4215
4215
|
return !0;
|
|
4216
4216
|
}
|
|
@@ -4224,45 +4224,45 @@ const go = {
|
|
|
4224
4224
|
},
|
|
4225
4225
|
emits: ["update:modelValue"],
|
|
4226
4226
|
setup(e) {
|
|
4227
|
-
const a = Pe("table_props"), t = Pe("busEmits"), n = Rt(), { advancedFiltersState: l } = Et(), u = Xl("advancedFilters"), { setData:
|
|
4228
|
-
const
|
|
4227
|
+
const a = Pe("table_props"), t = Pe("busEmits"), n = Rt(), { advancedFiltersState: l } = Et(), u = Xl("advancedFilters"), { setData: r } = n, o = Pt(e, "modelValue"), i = G({}), s = () => {
|
|
4228
|
+
const f = Object.entries(i.value).filter(([, v]) => {
|
|
4229
4229
|
const y = v.value;
|
|
4230
4230
|
return Array.isArray(y) || typeof y == "string" ? y.length > 0 : y != null && y !== "";
|
|
4231
4231
|
}).reduce((v, [y, h]) => (v[y] = h, v), {});
|
|
4232
|
-
Gt(
|
|
4232
|
+
Gt(f, l.value) || (r({
|
|
4233
4233
|
table_id: a.id,
|
|
4234
4234
|
name: "advancedFilters",
|
|
4235
|
-
value: { query: pl(
|
|
4236
|
-
}), t("advancedFilters:update",
|
|
4237
|
-
}, d = (
|
|
4238
|
-
|
|
4235
|
+
value: { query: pl(f) }
|
|
4236
|
+
}), t("advancedFilters:update", f)), o.value = !1;
|
|
4237
|
+
}, d = (f, v) => {
|
|
4238
|
+
f === "save" && (i.value[v.key] = { comparison: v.comparison, value: v.value }, s());
|
|
4239
4239
|
}, c = u.on(d);
|
|
4240
4240
|
return at(() => {
|
|
4241
|
-
|
|
4242
|
-
}), Pn(c), (
|
|
4241
|
+
i.value = pl(l.value);
|
|
4242
|
+
}), Pn(c), (f, v) => {
|
|
4243
4243
|
const y = mo, h = ha;
|
|
4244
4244
|
return oe(), Ke("div", null, [
|
|
4245
4245
|
g(Sn, {
|
|
4246
|
-
modelValue:
|
|
4247
|
-
"onUpdate:modelValue": v[1] || (v[1] = (p) =>
|
|
4246
|
+
modelValue: o.value,
|
|
4247
|
+
"onUpdate:modelValue": v[1] || (v[1] = (p) => o.value = p),
|
|
4248
4248
|
"max-width": "550",
|
|
4249
4249
|
"retain-focus": !1
|
|
4250
4250
|
}, {
|
|
4251
4251
|
default: Ce(({ isActive: p }) => [
|
|
4252
4252
|
g(y, {
|
|
4253
|
-
modelValue: $(
|
|
4254
|
-
"onUpdate:modelValue": v[0] || (v[0] = (
|
|
4255
|
-
onSave:
|
|
4256
|
-
onCloseDialog: (
|
|
4253
|
+
modelValue: $(i),
|
|
4254
|
+
"onUpdate:modelValue": v[0] || (v[0] = (_) => xt(i) ? i.value = _ : null),
|
|
4255
|
+
onSave: s,
|
|
4256
|
+
onCloseDialog: (_) => p.value = !1
|
|
4257
4257
|
}, null, 8, ["modelValue", "onCloseDialog"])
|
|
4258
4258
|
]),
|
|
4259
4259
|
_: 1
|
|
4260
4260
|
}, 8, ["modelValue"]),
|
|
4261
4261
|
Object.keys($(l)).length ? (oe(), ye(h, {
|
|
4262
4262
|
key: 0,
|
|
4263
|
-
modelValue: $(
|
|
4264
|
-
"onUpdate:modelValue": v[2] || (v[2] = (p) => xt(
|
|
4265
|
-
onSave:
|
|
4263
|
+
modelValue: $(i),
|
|
4264
|
+
"onUpdate:modelValue": v[2] || (v[2] = (p) => xt(i) ? i.value = p : null),
|
|
4265
|
+
onSave: s
|
|
4266
4266
|
}, null, 8, ["modelValue"])) : Me("", !0)
|
|
4267
4267
|
]);
|
|
4268
4268
|
};
|
|
@@ -4286,15 +4286,15 @@ const ho = {
|
|
|
4286
4286
|
setup(e) {
|
|
4287
4287
|
const { advancedFiltersItems: a, advancedFiltersDialog: t, activeAdvancedFilters: n } = yo();
|
|
4288
4288
|
return (l, u) => {
|
|
4289
|
-
const
|
|
4289
|
+
const r = go;
|
|
4290
4290
|
return oe(), Ke("div", ho, [
|
|
4291
|
-
(oe(!0), Ke(ce, null, Wt($(a), (
|
|
4292
|
-
key:
|
|
4291
|
+
(oe(!0), Ke(ce, null, Wt($(a), (o, i) => (oe(), ye(tt, H({
|
|
4292
|
+
key: i,
|
|
4293
4293
|
icon: "",
|
|
4294
4294
|
variant: "text",
|
|
4295
4295
|
color: $(n) ? "primary" : "dark",
|
|
4296
4296
|
density: "comfortable"
|
|
4297
|
-
}, { ref_for: !0 },
|
|
4297
|
+
}, { ref_for: !0 }, o), {
|
|
4298
4298
|
default: Ce(() => [
|
|
4299
4299
|
$(n) ? (oe(), ye(Ya, {
|
|
4300
4300
|
key: 0,
|
|
@@ -4303,20 +4303,20 @@ const ho = {
|
|
|
4303
4303
|
}, {
|
|
4304
4304
|
default: Ce(() => [
|
|
4305
4305
|
g(Se, {
|
|
4306
|
-
icon:
|
|
4306
|
+
icon: o.prependIcon
|
|
4307
4307
|
}, null, 8, ["icon"])
|
|
4308
4308
|
]),
|
|
4309
4309
|
_: 2
|
|
4310
4310
|
}, 1032, ["content"])) : (oe(), ye(Se, {
|
|
4311
4311
|
key: 1,
|
|
4312
|
-
icon:
|
|
4312
|
+
icon: o.prependIcon
|
|
4313
4313
|
}, null, 8, ["icon"]))
|
|
4314
4314
|
]),
|
|
4315
4315
|
_: 2
|
|
4316
4316
|
}, 1040, ["color"]))), 128)),
|
|
4317
|
-
g(
|
|
4317
|
+
g(r, {
|
|
4318
4318
|
modelValue: $(t),
|
|
4319
|
-
"onUpdate:modelValue": u[0] || (u[0] = (
|
|
4319
|
+
"onUpdate:modelValue": u[0] || (u[0] = (o) => xt(t) ? t.value = o : null)
|
|
4320
4320
|
}, null, 8, ["modelValue"])
|
|
4321
4321
|
]);
|
|
4322
4322
|
};
|
|
@@ -4330,57 +4330,57 @@ const ho = {
|
|
|
4330
4330
|
responsiveHeader: { type: Boolean }
|
|
4331
4331
|
},
|
|
4332
4332
|
setup(e) {
|
|
4333
|
-
const a =
|
|
4333
|
+
const a = Te(() => import("./Search-CpSeJNQo.js")), t = Te(() => import("./RefreshTable-C_KSEQQ2.js")), n = Te(() => import("./Options-BKNqYsWg.js")), l = Te(() => import("./index-cgveAwK7.js")), u = Te(() => import("./index-DBe3_idS.js")), r = Te(() => import("./index-Dnh2gNmS.js")), o = Pe("table_props"), i = G(null), s = o.options?.header?.components ?? {};
|
|
4334
4334
|
return (d, c) => {
|
|
4335
|
-
const
|
|
4335
|
+
const f = bo;
|
|
4336
4336
|
return oe(), Ke("div", po, [
|
|
4337
|
-
e.responsiveHeader ? Me("", !0) : (oe(), ye(
|
|
4338
|
-
$(
|
|
4337
|
+
e.responsiveHeader ? Me("", !0) : (oe(), ye(f, { key: 0 })),
|
|
4338
|
+
$(o).hardFilters.length ? (oe(), ye($e($(s).hardFilters ?? $(l)), {
|
|
4339
4339
|
key: 1,
|
|
4340
4340
|
id: "header-hardFilters"
|
|
4341
4341
|
})) : Me("", !0),
|
|
4342
|
-
(oe(), ye($e($(
|
|
4342
|
+
(oe(), ye($e($(s).toolbar), { id: "header-toolbar" })),
|
|
4343
4343
|
b("div", ko, [
|
|
4344
|
-
(oe(), ye($e($(
|
|
4345
|
-
e.responsiveHeader ? Me("", !0) : (oe(), ye($e($(
|
|
4344
|
+
(oe(), ye($e($(s).search ?? $(a)), { id: "header-search" })),
|
|
4345
|
+
e.responsiveHeader ? Me("", !0) : (oe(), ye($e($(s).columns ?? $(u)), {
|
|
4346
4346
|
key: 0,
|
|
4347
|
-
"component-refs": { columns: $(
|
|
4347
|
+
"component-refs": { columns: $(i) }
|
|
4348
4348
|
}, null, 8, ["component-refs"])),
|
|
4349
|
-
e.responsiveHeader ? Me("", !0) : (oe(), ye($e($(
|
|
4350
|
-
e.responsiveHeader ? Me("", !0) : (oe(), ye($e($(
|
|
4351
|
-
(oe(), ye($e($(
|
|
4349
|
+
e.responsiveHeader ? Me("", !0) : (oe(), ye($e($(s).download ?? $(r)), { key: 1 })),
|
|
4350
|
+
e.responsiveHeader ? Me("", !0) : (oe(), ye($e($(s).refreshTable ?? $(t)), { key: 2 })),
|
|
4351
|
+
(oe(), ye($e($(s).options ?? $(n)), { "responsive-header": e.responsiveHeader }, null, 8, ["responsive-header"]))
|
|
4352
4352
|
])
|
|
4353
4353
|
]);
|
|
4354
4354
|
};
|
|
4355
4355
|
}
|
|
4356
4356
|
});
|
|
4357
4357
|
function Co(e) {
|
|
4358
|
-
const a = Rt(), { getCurrentTable: t, setTableHash: n, hashString: l } = a, u = G(!1),
|
|
4358
|
+
const a = Rt(), { getCurrentTable: t, setTableHash: n, hashString: l } = a, u = G(!1), r = 5, o = I(() => t(e.id));
|
|
4359
4359
|
se(
|
|
4360
|
-
|
|
4360
|
+
o,
|
|
4361
4361
|
async (v) => {
|
|
4362
|
-
v.options.hash && await
|
|
4362
|
+
v.options.hash && await i(v);
|
|
4363
4363
|
},
|
|
4364
4364
|
{
|
|
4365
4365
|
deep: !0
|
|
4366
4366
|
}
|
|
4367
4367
|
);
|
|
4368
|
-
const
|
|
4368
|
+
const i = async (v) => {
|
|
4369
4369
|
if (u.value) return;
|
|
4370
4370
|
u.value = !0, await ke();
|
|
4371
|
-
const y =
|
|
4371
|
+
const y = s(), h = y.findIndex((p) => p.id === e.id);
|
|
4372
4372
|
h > -1 ? y[h] = v : y.push(v), localStorage.setItem("datatables-state", JSON.stringify(y)), u.value = !1;
|
|
4373
|
-
},
|
|
4373
|
+
}, s = () => {
|
|
4374
4374
|
const v = localStorage.getItem("datatables-state");
|
|
4375
4375
|
return JSON.parse(v ?? "[]");
|
|
4376
|
-
}, d = () =>
|
|
4376
|
+
}, d = () => s().find((h) => h.id === e.id);
|
|
4377
4377
|
return {
|
|
4378
4378
|
saving: u,
|
|
4379
4379
|
dataStateGet: d,
|
|
4380
|
-
tableDataState:
|
|
4380
|
+
tableDataState: o,
|
|
4381
4381
|
checkTableState: async () => {
|
|
4382
4382
|
const v = localStorage.getItem("datatables-state-v");
|
|
4383
|
-
parseInt(v) !== parseInt(
|
|
4383
|
+
parseInt(v) !== parseInt(r) && (localStorage.removeItem("datatables-state"), localStorage.setItem("datatables-state-v", r));
|
|
4384
4384
|
const h = d()?.options.hash;
|
|
4385
4385
|
if (h) {
|
|
4386
4386
|
const p = await l(JSON.stringify(e.headers ?? []));
|
|
@@ -4394,7 +4394,7 @@ function Co(e) {
|
|
|
4394
4394
|
};
|
|
4395
4395
|
}
|
|
4396
4396
|
const xn = la(() => {
|
|
4397
|
-
const e =
|
|
4397
|
+
const e = ee({}), a = ee({});
|
|
4398
4398
|
return {
|
|
4399
4399
|
storeOptions: {
|
|
4400
4400
|
state: e,
|
|
@@ -4418,44 +4418,46 @@ const xn = la(() => {
|
|
|
4418
4418
|
},
|
|
4419
4419
|
emits: /* @__PURE__ */ qt(["refreshTable", "refetchData", "advancedFilters:update", "hardFilters:update"], ["update:modelValue"]),
|
|
4420
4420
|
setup(e, { expose: a, emit: t }) {
|
|
4421
|
-
const n =
|
|
4422
|
-
|
|
4423
|
-
|
|
4421
|
+
const n = Te(() => import("./Table-BQwX5npC.js")), l = Te(() => import("./TableVirtual-Ca9Tk07w.js")), u = Te(() => import("./TableServer-CoKdajJh.js")), { storeOptions: r } = xn(), { saveTableOptions: o } = Et(), i = Pt(e, "modelValue"), s = Pe("table_props"), d = Pe("datatablesPluginOptions"), c = Cl("tableRef"), f = G(!1), v = G(!1), y = G(!1), h = t, p = Rt(), { dataStateGet: _, tableDataState: w, checkTableState: C } = Co(s), { addTable: F, restoreData: E } = p, U = G(!1);
|
|
4422
|
+
na(c, (V) => {
|
|
4423
|
+
if (!y.value) return;
|
|
4424
|
+
const M = V[0], { width: D } = M.contentRect;
|
|
4425
|
+
U.value = D < 950;
|
|
4426
|
+
});
|
|
4427
|
+
const A = I(() => {
|
|
4428
|
+
const V = s.options?.header;
|
|
4429
|
+
return V === void 0 || typeof V == "object" && V !== null;
|
|
4424
4430
|
});
|
|
4425
4431
|
return at(async () => {
|
|
4426
|
-
|
|
4427
|
-
const
|
|
4428
|
-
|
|
4429
|
-
const
|
|
4430
|
-
|
|
4431
|
-
if (!v.value) return;
|
|
4432
|
-
const K = D[0], { width: Q } = K.contentRect;
|
|
4433
|
-
B.value = Q < 950;
|
|
4434
|
-
}), v.value = !0;
|
|
4432
|
+
F({ table_id: s.id }), await C();
|
|
4433
|
+
const V = _();
|
|
4434
|
+
V && E({ table_id: s.id, data: V });
|
|
4435
|
+
const D = w.value.options.columns;
|
|
4436
|
+
D.sorted?.length || (D.selected?.length || (D.selected = s.headers.filter((N) => !N.hidden).map((N) => N.key)), D.sorted = s.headers.map((N) => N.key)), o(ea(r.state.value, w.value.options.state)), v.value = !0, await ke(), y.value = !0;
|
|
4435
4437
|
}), kl(() => {
|
|
4436
|
-
|
|
4437
|
-
}), We("busEmits",
|
|
4438
|
-
const
|
|
4439
|
-
return $(
|
|
4438
|
+
y.value = !1;
|
|
4439
|
+
}), We("busEmits", h), We("tableRef", c), We("tableState", w), We("downloadModal", f), a({ tableRef: c }), (V, M) => {
|
|
4440
|
+
const D = So;
|
|
4441
|
+
return $(v) ? (oe(), Ke("div", Vo, [
|
|
4440
4442
|
g(Vn, null, {
|
|
4441
4443
|
default: Ce(() => [
|
|
4442
|
-
$(
|
|
4444
|
+
$(A) ? (oe(), ye(ul, { key: 0 }, {
|
|
4443
4445
|
default: Ce(() => [
|
|
4444
|
-
(oe(), ye(
|
|
4445
|
-
key: $(
|
|
4446
|
-
"responsive-header": $(
|
|
4446
|
+
(oe(), ye(D, {
|
|
4447
|
+
key: $(U) ? "responsive" : "full",
|
|
4448
|
+
"responsive-header": $(U)
|
|
4447
4449
|
}, null, 8, ["responsive-header"]))
|
|
4448
4450
|
]),
|
|
4449
4451
|
_: 1
|
|
4450
4452
|
})) : Me("", !0),
|
|
4451
4453
|
g(sl, { class: "pa-0" }, {
|
|
4452
4454
|
default: Ce(() => [
|
|
4453
|
-
$(
|
|
4455
|
+
$(y) ? (oe(), ye($e($(s).api ? $(u) : $(s).virtual ? $(l) : $(n)), {
|
|
4454
4456
|
ref_key: "tableRef",
|
|
4455
|
-
ref:
|
|
4456
|
-
key: $(
|
|
4457
|
+
ref: c,
|
|
4458
|
+
key: $(s).api ? "server" : "client",
|
|
4457
4459
|
modelValue: i.value,
|
|
4458
|
-
"onUpdate:modelValue":
|
|
4460
|
+
"onUpdate:modelValue": M[0] || (M[0] = (N) => i.value = N)
|
|
4459
4461
|
}, null, 8, ["modelValue"])) : Me("", !0)
|
|
4460
4462
|
]),
|
|
4461
4463
|
_: 1
|
|
@@ -4464,8 +4466,8 @@ const xn = la(() => {
|
|
|
4464
4466
|
_: 1
|
|
4465
4467
|
}),
|
|
4466
4468
|
g(Sn, {
|
|
4467
|
-
modelValue: $(
|
|
4468
|
-
"onUpdate:modelValue":
|
|
4469
|
+
modelValue: $(f),
|
|
4470
|
+
"onUpdate:modelValue": M[1] || (M[1] = (N) => xt(f) ? f.value = N : null),
|
|
4469
4471
|
"max-width": "350",
|
|
4470
4472
|
persistent: ""
|
|
4471
4473
|
}, {
|
|
@@ -4478,8 +4480,8 @@ const xn = la(() => {
|
|
|
4478
4480
|
}, {
|
|
4479
4481
|
default: Ce(() => [
|
|
4480
4482
|
g(vt, {
|
|
4481
|
-
"prepend-icon": $(
|
|
4482
|
-
title:
|
|
4483
|
+
"prepend-icon": $(d).header.icons.download,
|
|
4484
|
+
title: V.$t("$datatables.preparing_download_file")
|
|
4483
4485
|
}, {
|
|
4484
4486
|
prepend: Ce(() => [
|
|
4485
4487
|
b("div", xo, [
|
|
@@ -4562,24 +4564,28 @@ const xn = la(() => {
|
|
|
4562
4564
|
title: {
|
|
4563
4565
|
type: String,
|
|
4564
4566
|
default: ""
|
|
4567
|
+
},
|
|
4568
|
+
virtual: {
|
|
4569
|
+
type: Boolean,
|
|
4570
|
+
default: !1
|
|
4565
4571
|
}
|
|
4566
4572
|
},
|
|
4567
4573
|
emits: ["refreshTable", "refetchData"],
|
|
4568
4574
|
setup(e, { expose: a, emit: t }) {
|
|
4569
|
-
const n = e, { triggerHook: l } = wo(), { storeOptions: u, setUserOptions:
|
|
4570
|
-
|
|
4575
|
+
const n = e, { triggerHook: l } = wo(), { storeOptions: u, setUserOptions: r } = xn(), o = Xl("advancedFilters"), i = Cl("table"), s = G(0), d = async (y = {}) => {
|
|
4576
|
+
r(y), s.value < 99 && (v("refreshTable"), await ke(), s.value++);
|
|
4571
4577
|
}, c = async (y = {}) => {
|
|
4572
|
-
await ke(), !(!
|
|
4573
|
-
},
|
|
4574
|
-
|
|
4578
|
+
await ke(), !(!i.value || !i.value?.tableRef) && (r(y), "reloadItems" in i.value.tableRef && (i.value.tableRef.reloadItems(u.state.value), v("refetchData")));
|
|
4579
|
+
}, f = (y, h, p = "=") => {
|
|
4580
|
+
o.emit("save", { key: y, value: h, comparison: p });
|
|
4575
4581
|
}, v = t;
|
|
4576
|
-
return We("table_props", n), We("triggerHook", l), a({ refreshTable: d, refetchData: c, triggerHook: l, updateAdvancedFilter:
|
|
4582
|
+
return We("table_props", n), We("triggerHook", l), a({ refreshTable: d, refetchData: c, triggerHook: l, updateAdvancedFilter: f }), (y, h) => {
|
|
4577
4583
|
const p = Io;
|
|
4578
4584
|
return oe(), ye(p, {
|
|
4579
4585
|
id: e.id,
|
|
4580
4586
|
ref_key: "table",
|
|
4581
|
-
ref:
|
|
4582
|
-
key: `${e.id}-${$(
|
|
4587
|
+
ref: i,
|
|
4588
|
+
key: `${e.id}-${$(s)}`,
|
|
4583
4589
|
onRefreshTable: d,
|
|
4584
4590
|
onRefetchData: c
|
|
4585
4591
|
}, null, 8, ["id"]);
|
|
@@ -4590,36 +4596,39 @@ const xn = la(() => {
|
|
|
4590
4596
|
default: _o
|
|
4591
4597
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4592
4598
|
export {
|
|
4593
|
-
|
|
4594
|
-
|
|
4595
|
-
|
|
4596
|
-
|
|
4597
|
-
|
|
4599
|
+
ya as A,
|
|
4600
|
+
Ya as B,
|
|
4601
|
+
Ot as C,
|
|
4602
|
+
Mt as D,
|
|
4603
|
+
sn as E,
|
|
4604
|
+
co as F,
|
|
4605
|
+
Ro as G,
|
|
4606
|
+
$a as V,
|
|
4598
4607
|
go as _,
|
|
4599
|
-
|
|
4600
|
-
|
|
4601
|
-
|
|
4608
|
+
hn as a,
|
|
4609
|
+
Ha as b,
|
|
4610
|
+
La as c,
|
|
4602
4611
|
pl as d,
|
|
4603
|
-
|
|
4604
|
-
|
|
4605
|
-
|
|
4606
|
-
|
|
4607
|
-
|
|
4608
|
-
|
|
4609
|
-
|
|
4610
|
-
|
|
4612
|
+
Gt as e,
|
|
4613
|
+
Bo as f,
|
|
4614
|
+
mt as g,
|
|
4615
|
+
un as h,
|
|
4616
|
+
Rt as i,
|
|
4617
|
+
Vn as j,
|
|
4618
|
+
sl as k,
|
|
4619
|
+
Je as l,
|
|
4611
4620
|
yn as m,
|
|
4612
|
-
|
|
4613
|
-
|
|
4614
|
-
|
|
4615
|
-
|
|
4616
|
-
|
|
4617
|
-
|
|
4618
|
-
|
|
4621
|
+
Sn as n,
|
|
4622
|
+
ul as o,
|
|
4623
|
+
Cn as p,
|
|
4624
|
+
yo as q,
|
|
4625
|
+
wo as r,
|
|
4626
|
+
il as s,
|
|
4627
|
+
ma as t,
|
|
4619
4628
|
Et as u,
|
|
4620
|
-
|
|
4621
|
-
|
|
4622
|
-
|
|
4623
|
-
|
|
4624
|
-
|
|
4629
|
+
rn as v,
|
|
4630
|
+
Sa as w,
|
|
4631
|
+
cn as x,
|
|
4632
|
+
hl as y,
|
|
4633
|
+
Co as z
|
|
4625
4634
|
};
|