@ianicdev/datatables2 0.8.12 → 0.8.13
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/Columns-DeJNOLCM.cjs +1 -0
- package/dist/Columns-GBEpMZ5m.js +28 -0
- package/dist/{Comparison-C6FIMUxe.cjs → Comparison-gMTr9mHU.cjs} +1 -1
- package/dist/{Comparison-BqTSsCLG.js → Comparison-v57GhUTZ.js} +1 -1
- package/dist/{Datepicker-DFx2oByi.js → Datepicker-Bv4of4w1.js} +2 -2
- package/dist/{Datepicker-BVJaLzUE.cjs → Datepicker-DGQbQ2jD.cjs} +1 -1
- package/dist/{Download-C0jtXXJ0.js → Download-B4zf7Fob.js} +74 -74
- package/dist/{Download-CaNb669s.cjs → Download-DFSeQ_uL.cjs} +1 -1
- package/dist/Options-C6gv21MY.js +82 -0
- package/dist/Options-XytiOb4O.cjs +1 -0
- package/dist/RefreshTable-BO7uzuWX.js +26 -0
- package/dist/RefreshTable-C-5AmxAL.cjs +1 -0
- package/dist/{Search-BlL-TqMI.js → Search-ByPG22T-.js} +24 -24
- package/dist/Search-DIUl3vxm.cjs +1 -0
- package/dist/{Table-BXmDR-au.js → Table-0QV9000m.js} +2 -2
- package/dist/{Table-CgJuX8RC.cjs → Table-xPzhAgpA.cjs} +1 -1
- package/dist/{TableServer-Dz-lY5mC.js → TableServer-ByC-EgB4.js} +3 -3
- package/dist/{TableServer-BU69vzbr.cjs → TableServer-i6_C-Qd2.cjs} +1 -1
- package/dist/{cellRender-CCUl5aCk.js → cellRender-L5NaGvf8.js} +2 -2
- package/dist/{cellRender-CQYi-Dxl.cjs → cellRender-Ru_IZsKe.cjs} +1 -1
- package/dist/{dataTables-N06kO-u5.cjs → dataTables-DP-djHBE.cjs} +1 -1
- package/dist/{dataTables-C3xrvV6a.js → dataTables-qd_2hmGP.js} +393 -381
- package/dist/datatables.cjs +1 -1
- package/dist/datatables.js +1 -1
- package/dist/{index-DfHaDUjK.cjs → index-BeWDgF_v.cjs} +1 -1
- package/dist/{index-D5UVkV64.cjs → index-CIkwH8Kr.cjs} +1 -1
- package/dist/{index-iDjxmkCZ.js → index-Drz0TALq.js} +1 -1
- package/dist/{index-DgwAqbjp.js → index-Dt2Z193z.js} +617 -617
- package/package.json +1 -1
- package/dist/Columns-9ukAZbwF.cjs +0 -1
- package/dist/Columns-BiIuzmZZ.js +0 -28
- package/dist/Options-Bi0Fh84a.js +0 -82
- package/dist/Options-C6N7gzNo.cjs +0 -1
- package/dist/RefreshTable-DkVAsqS-.cjs +0 -1
- package/dist/RefreshTable-uBvnLVYW.js +0 -26
- package/dist/Search-6OIEj95Z.cjs +0 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { ref as $, inject as
|
|
1
|
+
import { ref as $, inject as he, computed as x, watch as ue, nextTick as me, createVNode as d, normalizeStyle as ye, normalizeClass as ae, createElementVNode as k, Fragment as ie, toDisplayString as Ue, withDirectives as Fe, mergeProps as z, useId as De, toRef as F, provide as Be, onScopeDispose as st, shallowRef as ne, unref as D, onBeforeMount as dn, onBeforeUnmount as vl, onMounted as Ne, createBlock as fe, openBlock as X, isRef as $e, withCtx as K, createElementBlock as Ee, renderList as Pt, createTextVNode as ml, vShow as it, mergeModels as At, useModel as ut, cloneVNode as fn, watchEffect as kt, toValue as Qt, h as gl, capitalize as Tt, defineAsyncComponent as Ce, resolveDynamicComponent as xe, createCommentVNode as He } from "vue";
|
|
2
2
|
import { S as vn } from "./sortablejs-DSHM8iDp.js";
|
|
3
3
|
import { defineStore as yl } from "pinia";
|
|
4
|
-
import { g as q, p as O, a as Ft, u as ee, m as ke, b as oe, c as mn, V as je, d as ge, e as
|
|
4
|
+
import { g as q, p as O, a as Ft, u as ee, m as ke, b as oe, c as mn, V as je, d as ge, e as Se, f as We, I as re, R as Oe, h as Re, i as Dt, j as bl, k as rt, l as Je, n as Bt, o as hl, q as Et, r as pl, s as Ye, t as Sl, v as kl, w as gn, L as Cl, x as Nt, y as Pe, z as Vl, A as Xe, B as xl, C as $t, D as Il, E as Ot, F as Qe, G as Rt, H as we, J as ze, K as pe, M as Lt, N as Ae, O as ct, P as dt, Q as Ct, S as Ze, T as Le, U as wl, W as Mt, X as ft, Y as _l, Z as Pl, _ as Al, $ as Vt, a0 as vt, a1 as yn, a2 as et, a3 as bn, a4 as Ge, a5 as Zt, a6 as hn, a7 as Tl, a8 as xt, a9 as _e, aa as Ie, ab as Ht, ac as nt, ad as It, ae as Fl, af as Te, ag as pn, ah as Sn, ai as kn, aj as Dl, ak as Bl, al as at, am as el, an as El, ao as Cn, ap as Vn, aq as tl, ar as Nl, as as xn, at as In, au as wn, av as _n, aw as Pn, ax as Me, ay as ll, az as An, aA as Tn, aB as Fn, aC as Dn, aD as Bn, aE as En, aF as Nn, aG as $n, aH as nl, aI as On, aJ as Rn, aK as Ln, aL as mt, aM as Mn, aN as Hn, aO as zn } from "./dataTables-qd_2hmGP.js";
|
|
5
5
|
import { createSharedComposable as Un } from "@vueuse/core";
|
|
6
6
|
const gt = yl("datatables", () => {
|
|
7
|
-
const e = $([]), a = ({ table_id:
|
|
7
|
+
const e = $([]), a = ({ table_id: s }) => {
|
|
8
8
|
const v = e.value.findIndex(
|
|
9
|
-
(c) => c.id ===
|
|
10
|
-
),
|
|
9
|
+
(c) => c.id === s
|
|
10
|
+
), i = {
|
|
11
11
|
search: {
|
|
12
12
|
query: ""
|
|
13
13
|
},
|
|
@@ -23,21 +23,21 @@ const gt = yl("datatables", () => {
|
|
|
23
23
|
state: {}
|
|
24
24
|
}
|
|
25
25
|
};
|
|
26
|
-
v !== -1 && e.value.splice(v, 1), e.value.push({ id:
|
|
27
|
-
}, n = async (
|
|
28
|
-
const
|
|
29
|
-
return Array.from(new Uint8Array(c)).map((
|
|
30
|
-
}, t = ({ table_id:
|
|
31
|
-
n(JSON.stringify(v ?? [])).then((
|
|
32
|
-
l({ table_id:
|
|
26
|
+
v !== -1 && e.value.splice(v, 1), e.value.push({ id: s, ...i });
|
|
27
|
+
}, n = async (s) => {
|
|
28
|
+
const i = new TextEncoder().encode(s), c = await crypto.subtle.digest("SHA-256", i);
|
|
29
|
+
return Array.from(new Uint8Array(c)).map((f) => f.toString(16).padStart(2, "0")).join("");
|
|
30
|
+
}, t = ({ table_id: s, headers: v }) => {
|
|
31
|
+
n(JSON.stringify(v ?? [])).then((i) => {
|
|
32
|
+
l({ table_id: s, name: "options", value: { hash: i } });
|
|
33
33
|
});
|
|
34
|
-
}, l = ({ table_id:
|
|
34
|
+
}, l = ({ table_id: s, name: v, value: i }) => {
|
|
35
35
|
e.value = e.value.map((c) => {
|
|
36
|
-
if (c.id ===
|
|
36
|
+
if (c.id === s && c.hasOwnProperty(v)) {
|
|
37
37
|
const m = c[v];
|
|
38
|
-
if (m && typeof
|
|
39
|
-
for (const y in
|
|
40
|
-
y in m && (m[y] =
|
|
38
|
+
if (m && typeof i == "object")
|
|
39
|
+
for (const y in i)
|
|
40
|
+
y in m && (m[y] = i[y]);
|
|
41
41
|
}
|
|
42
42
|
return c;
|
|
43
43
|
});
|
|
@@ -48,17 +48,17 @@ const gt = yl("datatables", () => {
|
|
|
48
48
|
// Store Methods
|
|
49
49
|
addTable: a,
|
|
50
50
|
setData: l,
|
|
51
|
-
restoreData: ({ table_id:
|
|
52
|
-
e.value = e.value.map((
|
|
51
|
+
restoreData: ({ table_id: s, data: v }) => {
|
|
52
|
+
e.value = e.value.map((i) => (i.id === s && (i = v), i));
|
|
53
53
|
},
|
|
54
|
-
getCurrentTable: (
|
|
54
|
+
getCurrentTable: (s) => e.value.find((v) => v.id === s),
|
|
55
55
|
// Hash
|
|
56
56
|
hashString: n,
|
|
57
57
|
setTableHash: t
|
|
58
58
|
};
|
|
59
59
|
});
|
|
60
60
|
function tt() {
|
|
61
|
-
const { setData: e, getCurrentTable: a } = gt(), n =
|
|
61
|
+
const { setData: e, getCurrentTable: a } = gt(), n = he("table_props"), t = x(() => a(n.id)), l = x(() => t.value.search?.query), o = x(() => {
|
|
62
62
|
if (!n?.headers.length) return null;
|
|
63
63
|
const v = t.value.options?.columns.selected ?? [];
|
|
64
64
|
return (t.value.options?.columns.sorted ?? []).filter((m) => v.includes(m)).map(
|
|
@@ -87,34 +87,34 @@ function $l(e) {
|
|
|
87
87
|
ue(
|
|
88
88
|
u,
|
|
89
89
|
async (y) => {
|
|
90
|
-
y.options.hash && await
|
|
90
|
+
y.options.hash && await s(y);
|
|
91
91
|
},
|
|
92
92
|
{
|
|
93
93
|
deep: !0
|
|
94
94
|
}
|
|
95
95
|
);
|
|
96
|
-
const
|
|
96
|
+
const s = async (y) => {
|
|
97
97
|
if (o.value) return;
|
|
98
98
|
o.value = !0, await me();
|
|
99
|
-
const
|
|
99
|
+
const f = v(), h = f.findIndex(
|
|
100
100
|
(S) => S.id === e.id
|
|
101
101
|
);
|
|
102
|
-
|
|
102
|
+
h > -1 ? f[h] = y : f.push(y), localStorage.setItem("datatables-state", JSON.stringify(f)), o.value = !1;
|
|
103
103
|
}, v = () => {
|
|
104
104
|
const y = localStorage.getItem("datatables-state");
|
|
105
105
|
return JSON.parse(y ?? "[]");
|
|
106
|
-
},
|
|
106
|
+
}, i = () => v().find((h) => h.id === e.id);
|
|
107
107
|
return {
|
|
108
108
|
saving: o,
|
|
109
|
-
dataStateGet:
|
|
109
|
+
dataStateGet: i,
|
|
110
110
|
tableDataState: u,
|
|
111
111
|
checkTableState: async () => {
|
|
112
112
|
const y = localStorage.getItem("datatables-state-v");
|
|
113
113
|
parseInt(y) !== parseInt(r) && (localStorage.removeItem("datatables-state"), localStorage.setItem("datatables-state-v", r));
|
|
114
|
-
const
|
|
115
|
-
if (
|
|
114
|
+
const h = i()?.options.hash;
|
|
115
|
+
if (h) {
|
|
116
116
|
const S = await l(JSON.stringify(e.headers ?? []));
|
|
117
|
-
|
|
117
|
+
h !== S && localStorage.removeItem("datatables-state");
|
|
118
118
|
}
|
|
119
119
|
t({ table_id: e.id, headers: e.headers });
|
|
120
120
|
},
|
|
@@ -138,7 +138,7 @@ const jn = O({
|
|
|
138
138
|
slim: !0,
|
|
139
139
|
variant: "text"
|
|
140
140
|
}
|
|
141
|
-
}), ee(() =>
|
|
141
|
+
}), ee(() => d(e.tag, {
|
|
142
142
|
class: ae(["v-card-actions", e.class]),
|
|
143
143
|
style: ye(e.style)
|
|
144
144
|
}, n)), {};
|
|
@@ -154,7 +154,7 @@ const jn = O({
|
|
|
154
154
|
let {
|
|
155
155
|
slots: n
|
|
156
156
|
} = a;
|
|
157
|
-
return ee(() =>
|
|
157
|
+
return ee(() => d(e.tag, {
|
|
158
158
|
class: ae(["v-card-subtitle", e.class]),
|
|
159
159
|
style: ye([{
|
|
160
160
|
"--v-card-subtitle-opacity": e.opacity
|
|
@@ -185,15 +185,15 @@ const jn = O({
|
|
|
185
185
|
slots: n
|
|
186
186
|
} = a;
|
|
187
187
|
return ee(() => {
|
|
188
|
-
const t = !!(e.prependAvatar || e.prependIcon), l = !!(t || n.prepend), o = !!(e.appendAvatar || e.appendIcon), r = !!(o || n.append), u = !!(e.title != null || n.title),
|
|
189
|
-
return
|
|
188
|
+
const t = !!(e.prependAvatar || e.prependIcon), l = !!(t || n.prepend), o = !!(e.appendAvatar || e.appendIcon), r = !!(o || n.append), u = !!(e.title != null || n.title), s = !!(e.subtitle != null || n.subtitle);
|
|
189
|
+
return d(e.tag, {
|
|
190
190
|
class: ae(["v-card-item", e.class]),
|
|
191
191
|
style: ye(e.style)
|
|
192
192
|
}, {
|
|
193
193
|
default: () => [l && k("div", {
|
|
194
194
|
key: "prepend",
|
|
195
195
|
class: "v-card-item__prepend"
|
|
196
|
-
}, [n.prepend ?
|
|
196
|
+
}, [n.prepend ? d(Se, {
|
|
197
197
|
key: "prepend-defaults",
|
|
198
198
|
disabled: !t,
|
|
199
199
|
defaults: {
|
|
@@ -206,28 +206,28 @@ const jn = O({
|
|
|
206
206
|
icon: e.prependIcon
|
|
207
207
|
}
|
|
208
208
|
}
|
|
209
|
-
}, n.prepend) : k(ie, null, [e.prependAvatar &&
|
|
209
|
+
}, n.prepend) : k(ie, null, [e.prependAvatar && d(je, {
|
|
210
210
|
key: "prepend-avatar",
|
|
211
211
|
density: e.density,
|
|
212
212
|
image: e.prependAvatar
|
|
213
|
-
}, null), e.prependIcon &&
|
|
213
|
+
}, null), e.prependIcon && d(ge, {
|
|
214
214
|
key: "prepend-icon",
|
|
215
215
|
density: e.density,
|
|
216
216
|
icon: e.prependIcon
|
|
217
217
|
}, null)])]), k("div", {
|
|
218
218
|
class: "v-card-item__content"
|
|
219
|
-
}, [u &&
|
|
219
|
+
}, [u && d(yt, {
|
|
220
220
|
key: "title"
|
|
221
221
|
}, {
|
|
222
222
|
default: () => [n.title?.() ?? Ue(e.title)]
|
|
223
|
-
}),
|
|
223
|
+
}), s && d(Kn, {
|
|
224
224
|
key: "subtitle"
|
|
225
225
|
}, {
|
|
226
226
|
default: () => [n.subtitle?.() ?? Ue(e.subtitle)]
|
|
227
227
|
}), n.default?.()]), r && k("div", {
|
|
228
228
|
key: "append",
|
|
229
229
|
class: "v-card-item__append"
|
|
230
|
-
}, [n.append ?
|
|
230
|
+
}, [n.append ? d(Se, {
|
|
231
231
|
key: "append-defaults",
|
|
232
232
|
disabled: !o,
|
|
233
233
|
defaults: {
|
|
@@ -240,11 +240,11 @@ const jn = O({
|
|
|
240
240
|
icon: e.appendIcon
|
|
241
241
|
}
|
|
242
242
|
}
|
|
243
|
-
}, n.append) : k(ie, null, [e.appendIcon &&
|
|
243
|
+
}, n.append) : k(ie, null, [e.appendIcon && d(ge, {
|
|
244
244
|
key: "append-icon",
|
|
245
245
|
density: e.density,
|
|
246
246
|
icon: e.appendIcon
|
|
247
|
-
}, null), e.appendAvatar &&
|
|
247
|
+
}, null), e.appendAvatar && d(je, {
|
|
248
248
|
key: "append-avatar",
|
|
249
249
|
density: e.density,
|
|
250
250
|
image: e.appendAvatar
|
|
@@ -263,7 +263,7 @@ const jn = O({
|
|
|
263
263
|
let {
|
|
264
264
|
slots: n
|
|
265
265
|
} = a;
|
|
266
|
-
return ee(() =>
|
|
266
|
+
return ee(() => d(e.tag, {
|
|
267
267
|
class: ae(["v-card-text", e.class]),
|
|
268
268
|
style: ye([{
|
|
269
269
|
"--v-card-text-opacity": e.opacity
|
|
@@ -332,11 +332,11 @@ const jn = O({
|
|
|
332
332
|
} = Dt(e), {
|
|
333
333
|
colorClasses: r,
|
|
334
334
|
colorStyles: u,
|
|
335
|
-
variantClasses:
|
|
335
|
+
variantClasses: s
|
|
336
336
|
} = bl(e), {
|
|
337
337
|
densityClasses: v
|
|
338
338
|
} = rt(e), {
|
|
339
|
-
dimensionStyles:
|
|
339
|
+
dimensionStyles: i
|
|
340
340
|
} = Je(e), {
|
|
341
341
|
elevationClasses: c
|
|
342
342
|
} = Bt(e), {
|
|
@@ -344,27 +344,27 @@ const jn = O({
|
|
|
344
344
|
} = hl(e), {
|
|
345
345
|
locationStyles: y
|
|
346
346
|
} = Et(e), {
|
|
347
|
-
positionClasses:
|
|
347
|
+
positionClasses: f
|
|
348
348
|
} = pl(e), {
|
|
349
|
-
roundedClasses:
|
|
349
|
+
roundedClasses: h
|
|
350
350
|
} = Ye(e), S = Sl(e, n);
|
|
351
351
|
return ee(() => {
|
|
352
352
|
const C = e.link !== !1 && S.isLink.value, _ = !e.disabled && e.link !== !1 && (e.link || S.isClickable.value), E = C ? "a" : e.tag, T = !!(t.title || e.title != null), V = !!(t.subtitle || e.subtitle != null), L = T || V, P = !!(t.append || e.appendAvatar || e.appendIcon), I = !!(t.prepend || e.prependAvatar || e.prependIcon), R = !!(t.image || e.image), W = L || I || P, J = !!(t.text || e.text != null);
|
|
353
|
-
return Fe(
|
|
353
|
+
return Fe(d(E, z(S.linkProps, {
|
|
354
354
|
class: ["v-card", {
|
|
355
355
|
"v-card--disabled": e.disabled,
|
|
356
356
|
"v-card--flat": e.flat,
|
|
357
357
|
"v-card--hover": e.hover && !(e.disabled || e.flat),
|
|
358
358
|
"v-card--link": _
|
|
359
|
-
}, l.value, o.value, r.value, v.value, c.value, m.value,
|
|
360
|
-
style: [u.value,
|
|
359
|
+
}, l.value, o.value, r.value, v.value, c.value, m.value, f.value, h.value, s.value, e.class],
|
|
360
|
+
style: [u.value, i.value, y.value, e.style],
|
|
361
361
|
onClick: _ && S.navigate,
|
|
362
362
|
tabindex: e.disabled ? -1 : void 0
|
|
363
363
|
}), {
|
|
364
364
|
default: () => [R && k("div", {
|
|
365
365
|
key: "image",
|
|
366
366
|
class: "v-card__image"
|
|
367
|
-
}, [t.image ?
|
|
367
|
+
}, [t.image ? d(Se, {
|
|
368
368
|
key: "image-defaults",
|
|
369
369
|
disabled: !e.image,
|
|
370
370
|
defaults: {
|
|
@@ -373,17 +373,17 @@ const jn = O({
|
|
|
373
373
|
src: e.image
|
|
374
374
|
}
|
|
375
375
|
}
|
|
376
|
-
}, t.image) :
|
|
376
|
+
}, t.image) : d(gn, {
|
|
377
377
|
key: "image-img",
|
|
378
378
|
cover: !0,
|
|
379
379
|
src: e.image
|
|
380
|
-
}, null)]),
|
|
380
|
+
}, null)]), d(Cl, {
|
|
381
381
|
name: "v-card",
|
|
382
382
|
active: !!e.loading,
|
|
383
383
|
color: typeof e.loading == "boolean" ? void 0 : e.loading
|
|
384
384
|
}, {
|
|
385
385
|
default: t.loader
|
|
386
|
-
}), W &&
|
|
386
|
+
}), W && d(Wn, {
|
|
387
387
|
key: "item",
|
|
388
388
|
prependAvatar: e.prependAvatar,
|
|
389
389
|
prependIcon: e.prependIcon,
|
|
@@ -397,11 +397,11 @@ const jn = O({
|
|
|
397
397
|
title: t.title,
|
|
398
398
|
subtitle: t.subtitle,
|
|
399
399
|
append: t.append
|
|
400
|
-
}), J &&
|
|
400
|
+
}), J && d(bt, {
|
|
401
401
|
key: "text"
|
|
402
402
|
}, {
|
|
403
403
|
default: () => [t.text?.() ?? e.text]
|
|
404
|
-
}), t.default?.(), t.actions &&
|
|
404
|
+
}), t.default?.(), t.actions && d(zt, null, {
|
|
405
405
|
default: t.actions
|
|
406
406
|
}), kl(_, "v-card")]
|
|
407
407
|
}), [[Oe, _ && e.ripple]]);
|
|
@@ -476,15 +476,15 @@ q()({
|
|
|
476
476
|
let {
|
|
477
477
|
slots: n
|
|
478
478
|
} = a;
|
|
479
|
-
const t =
|
|
479
|
+
const t = pe(e, "modelValue"), l = De(), o = F(() => e.id || `v-selection-control-group-${l}`), r = F(() => e.name || o.value), u = /* @__PURE__ */ new Set();
|
|
480
480
|
return Be(Rl, {
|
|
481
481
|
modelValue: t,
|
|
482
482
|
forceUpdate: () => {
|
|
483
|
-
u.forEach((
|
|
483
|
+
u.forEach((s) => s());
|
|
484
484
|
},
|
|
485
|
-
onForceUpdate: (
|
|
486
|
-
u.add(
|
|
487
|
-
u.delete(
|
|
485
|
+
onForceUpdate: (s) => {
|
|
486
|
+
u.add(s), st(() => {
|
|
487
|
+
u.delete(s);
|
|
488
488
|
});
|
|
489
489
|
}
|
|
490
490
|
}), Ft({
|
|
@@ -523,27 +523,27 @@ const Ml = O({
|
|
|
523
523
|
...Ll()
|
|
524
524
|
}, "VSelectionControl");
|
|
525
525
|
function Zn(e) {
|
|
526
|
-
const a =
|
|
526
|
+
const a = he(Rl, void 0), {
|
|
527
527
|
densityClasses: n
|
|
528
|
-
} = rt(e), t =
|
|
528
|
+
} = rt(e), t = pe(e, "modelValue"), l = x(() => e.trueValue !== void 0 ? e.trueValue : e.value !== void 0 ? e.value : !0), o = x(() => e.falseValue !== void 0 ? e.falseValue : !1), r = x(() => !!e.multiple || e.multiple == null && Array.isArray(t.value)), u = x({
|
|
529
529
|
get() {
|
|
530
530
|
const y = a ? a.modelValue.value : t.value;
|
|
531
|
-
return r.value ? Ae(y).some((
|
|
531
|
+
return r.value ? Ae(y).some((f) => e.valueComparator(f, l.value)) : e.valueComparator(y, l.value);
|
|
532
532
|
},
|
|
533
533
|
set(y) {
|
|
534
534
|
if (e.readonly) return;
|
|
535
|
-
const
|
|
536
|
-
let
|
|
537
|
-
r.value && (
|
|
535
|
+
const f = y ? l.value : o.value;
|
|
536
|
+
let h = f;
|
|
537
|
+
r.value && (h = y ? [...Ae(t.value), f] : Ae(t.value).filter((S) => !e.valueComparator(S, l.value))), a ? a.modelValue.value = h : t.value = h;
|
|
538
538
|
}
|
|
539
539
|
}), {
|
|
540
|
-
textColorClasses:
|
|
540
|
+
textColorClasses: s,
|
|
541
541
|
textColorStyles: v
|
|
542
542
|
} = ct(() => {
|
|
543
543
|
if (!(e.error || e.disabled))
|
|
544
544
|
return u.value ? e.color : e.baseColor;
|
|
545
545
|
}), {
|
|
546
|
-
backgroundColorClasses:
|
|
546
|
+
backgroundColorClasses: i,
|
|
547
547
|
backgroundColorStyles: c
|
|
548
548
|
} = dt(() => u.value && !e.error && !e.disabled ? e.color : e.baseColor), m = x(() => u.value ? e.trueIcon : e.falseIcon);
|
|
549
549
|
return {
|
|
@@ -552,9 +552,9 @@ function Zn(e) {
|
|
|
552
552
|
trueValue: l,
|
|
553
553
|
falseValue: o,
|
|
554
554
|
model: u,
|
|
555
|
-
textColorClasses:
|
|
555
|
+
textColorClasses: s,
|
|
556
556
|
textColorStyles: v,
|
|
557
|
-
backgroundColorClasses:
|
|
557
|
+
backgroundColorClasses: i,
|
|
558
558
|
backgroundColorStyles: c,
|
|
559
559
|
icon: m
|
|
560
560
|
};
|
|
@@ -579,20 +579,20 @@ const al = q()({
|
|
|
579
579
|
densityClasses: o,
|
|
580
580
|
icon: r,
|
|
581
581
|
model: u,
|
|
582
|
-
textColorClasses:
|
|
582
|
+
textColorClasses: s,
|
|
583
583
|
textColorStyles: v,
|
|
584
|
-
backgroundColorClasses:
|
|
584
|
+
backgroundColorClasses: i,
|
|
585
585
|
backgroundColorStyles: c,
|
|
586
586
|
trueValue: m
|
|
587
|
-
} = Zn(e), y = De(),
|
|
587
|
+
} = Zn(e), y = De(), f = ne(!1), h = ne(!1), S = $(), C = F(() => e.id || `input-${y}`), _ = F(() => !e.disabled && !e.readonly);
|
|
588
588
|
l?.onForceUpdate(() => {
|
|
589
589
|
S.value && (S.value.checked = u.value);
|
|
590
590
|
});
|
|
591
591
|
function E(P) {
|
|
592
|
-
_.value && (
|
|
592
|
+
_.value && (f.value = !0, Ct(P.target, ":focus-visible") !== !1 && (h.value = !0));
|
|
593
593
|
}
|
|
594
594
|
function T() {
|
|
595
|
-
|
|
595
|
+
f.value = !1, h.value = !1;
|
|
596
596
|
}
|
|
597
597
|
function V(P) {
|
|
598
598
|
P.stopPropagation();
|
|
@@ -630,25 +630,25 @@ const al = q()({
|
|
|
630
630
|
"v-selection-control--dirty": u.value,
|
|
631
631
|
"v-selection-control--disabled": e.disabled,
|
|
632
632
|
"v-selection-control--error": e.error,
|
|
633
|
-
"v-selection-control--focused":
|
|
634
|
-
"v-selection-control--focus-visible":
|
|
633
|
+
"v-selection-control--focused": f.value,
|
|
634
|
+
"v-selection-control--focus-visible": h.value,
|
|
635
635
|
"v-selection-control--inline": e.inline
|
|
636
636
|
}, o.value, e.class]
|
|
637
637
|
}, I, {
|
|
638
638
|
style: e.style
|
|
639
639
|
}), [k("div", {
|
|
640
|
-
class: ae(["v-selection-control__wrapper",
|
|
640
|
+
class: ae(["v-selection-control__wrapper", s.value]),
|
|
641
641
|
style: ye(v.value)
|
|
642
642
|
}, [t.default?.({
|
|
643
|
-
backgroundColorClasses:
|
|
643
|
+
backgroundColorClasses: i,
|
|
644
644
|
backgroundColorStyles: c
|
|
645
645
|
}), Fe(k("div", {
|
|
646
646
|
class: ae(["v-selection-control__input"])
|
|
647
647
|
}, [t.input?.({
|
|
648
648
|
model: u,
|
|
649
|
-
textColorClasses:
|
|
649
|
+
textColorClasses: s,
|
|
650
650
|
textColorStyles: v,
|
|
651
|
-
backgroundColorClasses:
|
|
651
|
+
backgroundColorClasses: i,
|
|
652
652
|
backgroundColorStyles: c,
|
|
653
653
|
inputNode: W,
|
|
654
654
|
icon: r.value,
|
|
@@ -657,20 +657,20 @@ const al = q()({
|
|
|
657
657
|
onBlur: T,
|
|
658
658
|
id: C.value
|
|
659
659
|
}
|
|
660
|
-
}) ?? k(ie, null, [r.value &&
|
|
660
|
+
}) ?? k(ie, null, [r.value && d(ge, {
|
|
661
661
|
key: "icon",
|
|
662
662
|
icon: r.value
|
|
663
663
|
}, null), W])]), [[Oe, !e.disabled && !e.readonly && e.ripple, null, {
|
|
664
664
|
center: !0,
|
|
665
665
|
circle: !0
|
|
666
|
-
}]])]), P &&
|
|
666
|
+
}]])]), P && d(Ol, {
|
|
667
667
|
for: C.value,
|
|
668
668
|
onClick: V
|
|
669
669
|
}, {
|
|
670
670
|
default: () => [P]
|
|
671
671
|
})]);
|
|
672
672
|
}), {
|
|
673
|
-
isFocused:
|
|
673
|
+
isFocused: f,
|
|
674
674
|
input: S
|
|
675
675
|
};
|
|
676
676
|
}
|
|
@@ -695,14 +695,14 @@ const al = q()({
|
|
|
695
695
|
let {
|
|
696
696
|
slots: n
|
|
697
697
|
} = a;
|
|
698
|
-
const t =
|
|
699
|
-
function o(
|
|
698
|
+
const t = pe(e, "indeterminate"), l = pe(e, "modelValue");
|
|
699
|
+
function o(s) {
|
|
700
700
|
t.value && (t.value = !1);
|
|
701
701
|
}
|
|
702
702
|
const r = F(() => t.value ? e.indeterminateIcon : e.falseIcon), u = F(() => t.value ? e.indeterminateIcon : e.trueIcon);
|
|
703
703
|
return ee(() => {
|
|
704
|
-
const
|
|
705
|
-
return
|
|
704
|
+
const s = Ze(al.filterProps(e), ["modelValue"]);
|
|
705
|
+
return d(al, z(s, {
|
|
706
706
|
modelValue: l.value,
|
|
707
707
|
"onUpdate:modelValue": [(v) => l.value = v, o],
|
|
708
708
|
class: ["v-checkbox-btn", e.class],
|
|
@@ -731,15 +731,15 @@ function zl(e) {
|
|
|
731
731
|
append: "appendAction",
|
|
732
732
|
appendInner: "appendAction",
|
|
733
733
|
clear: "clear"
|
|
734
|
-
}[l],
|
|
734
|
+
}[l], s = e[`onClick:${l}`];
|
|
735
735
|
function v(c) {
|
|
736
|
-
c.key !== "Enter" && c.key !== " " || (c.preventDefault(), c.stopPropagation(), wl(
|
|
736
|
+
c.key !== "Enter" && c.key !== " " || (c.preventDefault(), c.stopPropagation(), wl(s, new PointerEvent("click", c)));
|
|
737
737
|
}
|
|
738
|
-
const
|
|
739
|
-
return
|
|
738
|
+
const i = s && u ? a(`$vuetify.input.${u}`, e.label ?? "") : void 0;
|
|
739
|
+
return d(ge, z({
|
|
740
740
|
icon: e[`${l}Icon`],
|
|
741
|
-
"aria-label":
|
|
742
|
-
onClick:
|
|
741
|
+
"aria-label": i,
|
|
742
|
+
onClick: s,
|
|
743
743
|
onKeydown: v,
|
|
744
744
|
color: o
|
|
745
745
|
}, r), null);
|
|
@@ -774,7 +774,7 @@ const ea = O({
|
|
|
774
774
|
textColorClasses: l,
|
|
775
775
|
textColorStyles: o
|
|
776
776
|
} = ct(() => e.color);
|
|
777
|
-
return ee(() =>
|
|
777
|
+
return ee(() => d(Mt, {
|
|
778
778
|
transition: e.transition,
|
|
779
779
|
tag: "div",
|
|
780
780
|
class: ae(["v-messages", l.value, e.class]),
|
|
@@ -794,7 +794,7 @@ const ea = O({
|
|
|
794
794
|
}, "focus");
|
|
795
795
|
function jt(e) {
|
|
796
796
|
let a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Pl();
|
|
797
|
-
const n =
|
|
797
|
+
const n = pe(e, "focused"), t = F(() => ({
|
|
798
798
|
[`${a}--focused`]: n.value
|
|
799
799
|
}));
|
|
800
800
|
function l() {
|
|
@@ -812,7 +812,7 @@ function jt(e) {
|
|
|
812
812
|
}
|
|
813
813
|
const la = Symbol.for("vuetify:form");
|
|
814
814
|
function Gt(e) {
|
|
815
|
-
const a =
|
|
815
|
+
const a = he(la, null);
|
|
816
816
|
return {
|
|
817
817
|
...a,
|
|
818
818
|
isReadonly: x(() => !!(e?.readonly ?? a?.isReadonly.value)),
|
|
@@ -821,7 +821,7 @@ function Gt(e) {
|
|
|
821
821
|
}
|
|
822
822
|
const na = Symbol.for("vuetify:rules");
|
|
823
823
|
function aa(e) {
|
|
824
|
-
const a =
|
|
824
|
+
const a = he(na, null);
|
|
825
825
|
if (!e) {
|
|
826
826
|
if (!a)
|
|
827
827
|
throw new Error("Could not find Vuetify rules injection");
|
|
@@ -860,7 +860,7 @@ const oa = O({
|
|
|
860
860
|
}, "validation");
|
|
861
861
|
function sa(e) {
|
|
862
862
|
let a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Pl(), n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : De();
|
|
863
|
-
const t =
|
|
863
|
+
const t = pe(e, "modelValue"), l = x(() => e.validationValue === void 0 ? t.value : e.validationValue), o = Gt(e), r = aa(() => e.rules), u = $([]), s = ne(!0), v = x(() => !!(Ae(t.value === "" ? null : t.value).length || Ae(l.value === "" ? null : l.value).length)), i = x(() => e.errorMessages?.length ? Ae(e.errorMessages).concat(u.value).slice(0, Math.max(0, Number(e.maxErrors))) : u.value), c = x(() => {
|
|
864
864
|
let T = (e.validateOn ?? o.validateOn?.value) || "input";
|
|
865
865
|
T === "lazy" && (T = "input lazy"), T === "eager" && (T = "input eager");
|
|
866
866
|
const V = new Set(T?.split(" ") ?? []);
|
|
@@ -871,16 +871,16 @@ function sa(e) {
|
|
|
871
871
|
lazy: V.has("lazy"),
|
|
872
872
|
eager: V.has("eager")
|
|
873
873
|
};
|
|
874
|
-
}), m = x(() => e.error || e.errorMessages?.length ? !1 : e.rules.length ?
|
|
874
|
+
}), m = x(() => e.error || e.errorMessages?.length ? !1 : e.rules.length ? s.value ? u.value.length || c.value.lazy ? null : !0 : !u.value.length : !0), y = ne(!1), f = x(() => ({
|
|
875
875
|
[`${a}--error`]: m.value === !1,
|
|
876
876
|
[`${a}--dirty`]: v.value,
|
|
877
877
|
[`${a}--disabled`]: o.isDisabled.value,
|
|
878
878
|
[`${a}--readonly`]: o.isReadonly.value
|
|
879
|
-
})),
|
|
879
|
+
})), h = Al("validation"), S = x(() => e.name ?? D(n));
|
|
880
880
|
dn(() => {
|
|
881
881
|
o.register?.({
|
|
882
882
|
id: S.value,
|
|
883
|
-
vm:
|
|
883
|
+
vm: h,
|
|
884
884
|
validate: E,
|
|
885
885
|
reset: C,
|
|
886
886
|
resetValidation: _
|
|
@@ -888,7 +888,7 @@ function sa(e) {
|
|
|
888
888
|
}), vl(() => {
|
|
889
889
|
o.unregister?.(S.value);
|
|
890
890
|
}), Ne(async () => {
|
|
891
|
-
c.value.lazy || await E(!c.value.eager), o.update?.(S.value, m.value,
|
|
891
|
+
c.value.lazy || await E(!c.value.eager), o.update?.(S.value, m.value, i.value);
|
|
892
892
|
}), Vt(() => c.value.input || c.value.invalidInput && m.value === !1, () => {
|
|
893
893
|
ue(l, () => {
|
|
894
894
|
if (l.value != null)
|
|
@@ -903,14 +903,14 @@ function sa(e) {
|
|
|
903
903
|
ue(() => e.focused, (T) => {
|
|
904
904
|
T || E();
|
|
905
905
|
});
|
|
906
|
-
}), ue([m,
|
|
907
|
-
o.update?.(S.value, m.value,
|
|
906
|
+
}), ue([m, i], () => {
|
|
907
|
+
o.update?.(S.value, m.value, i.value);
|
|
908
908
|
});
|
|
909
909
|
async function C() {
|
|
910
910
|
t.value = null, await me(), await _();
|
|
911
911
|
}
|
|
912
912
|
async function _() {
|
|
913
|
-
|
|
913
|
+
s.value = !0, c.value.lazy ? u.value = [] : await E(!c.value.eager);
|
|
914
914
|
}
|
|
915
915
|
async function E() {
|
|
916
916
|
let T = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1;
|
|
@@ -928,20 +928,20 @@ function sa(e) {
|
|
|
928
928
|
V.push(I || "");
|
|
929
929
|
}
|
|
930
930
|
}
|
|
931
|
-
return u.value = V, y.value = !1,
|
|
931
|
+
return u.value = V, y.value = !1, s.value = T, u.value;
|
|
932
932
|
}
|
|
933
933
|
return {
|
|
934
|
-
errorMessages:
|
|
934
|
+
errorMessages: i,
|
|
935
935
|
isDirty: v,
|
|
936
936
|
isDisabled: o.isDisabled,
|
|
937
937
|
isReadonly: o.isReadonly,
|
|
938
|
-
isPristine:
|
|
938
|
+
isPristine: s,
|
|
939
939
|
isValid: m,
|
|
940
940
|
isValidating: y,
|
|
941
941
|
reset: C,
|
|
942
942
|
resetValidation: _,
|
|
943
943
|
validate: E,
|
|
944
|
-
validationClasses:
|
|
944
|
+
validationClasses: f
|
|
945
945
|
};
|
|
946
946
|
}
|
|
947
947
|
const Kt = O({
|
|
@@ -997,14 +997,14 @@ const Kt = O({
|
|
|
997
997
|
} = Je(e), {
|
|
998
998
|
themeClasses: u
|
|
999
999
|
} = Re(e), {
|
|
1000
|
-
rtlClasses:
|
|
1000
|
+
rtlClasses: s
|
|
1001
1001
|
} = vt(), {
|
|
1002
1002
|
InputIcon: v
|
|
1003
|
-
} = zl(e),
|
|
1003
|
+
} = zl(e), i = De(), c = x(() => e.id || `input-${i}`), {
|
|
1004
1004
|
errorMessages: m,
|
|
1005
1005
|
isDirty: y,
|
|
1006
|
-
isDisabled:
|
|
1007
|
-
isReadonly:
|
|
1006
|
+
isDisabled: f,
|
|
1007
|
+
isReadonly: h,
|
|
1008
1008
|
isPristine: S,
|
|
1009
1009
|
isValid: C,
|
|
1010
1010
|
isValidating: _,
|
|
@@ -1016,8 +1016,8 @@ const Kt = O({
|
|
|
1016
1016
|
id: c,
|
|
1017
1017
|
messagesId: W,
|
|
1018
1018
|
isDirty: y,
|
|
1019
|
-
isDisabled:
|
|
1020
|
-
isReadonly:
|
|
1019
|
+
isDisabled: f,
|
|
1020
|
+
isReadonly: h,
|
|
1021
1021
|
isPristine: S,
|
|
1022
1022
|
isValid: C,
|
|
1023
1023
|
isValidating: _,
|
|
@@ -1037,12 +1037,12 @@ const Kt = O({
|
|
|
1037
1037
|
"v-input--focused": e.focused,
|
|
1038
1038
|
"v-input--glow": e.glow,
|
|
1039
1039
|
"v-input--hide-spin-buttons": e.hideSpinButtons
|
|
1040
|
-
}, o.value, u.value,
|
|
1040
|
+
}, o.value, u.value, s.value, L.value, e.class]),
|
|
1041
1041
|
style: ye([r.value, e.style])
|
|
1042
1042
|
}, [U && k("div", {
|
|
1043
1043
|
key: "prepend",
|
|
1044
1044
|
class: "v-input__prepend"
|
|
1045
|
-
}, [t.prepend?.(J.value), e.prependIcon &&
|
|
1045
|
+
}, [t.prepend?.(J.value), e.prependIcon && d(v, {
|
|
1046
1046
|
key: "prepend-icon",
|
|
1047
1047
|
name: "prepend",
|
|
1048
1048
|
color: Q.value
|
|
@@ -1051,7 +1051,7 @@ const Kt = O({
|
|
|
1051
1051
|
}, [t.default?.(J.value)]), ce && k("div", {
|
|
1052
1052
|
key: "append",
|
|
1053
1053
|
class: "v-input__append"
|
|
1054
|
-
}, [e.appendIcon &&
|
|
1054
|
+
}, [e.appendIcon && d(v, {
|
|
1055
1055
|
key: "append-icon",
|
|
1056
1056
|
name: "append",
|
|
1057
1057
|
color: Q.value
|
|
@@ -1060,7 +1060,7 @@ const Kt = O({
|
|
|
1060
1060
|
class: "v-input__details",
|
|
1061
1061
|
role: "alert",
|
|
1062
1062
|
"aria-live": "polite"
|
|
1063
|
-
}, [
|
|
1063
|
+
}, [d(ta, {
|
|
1064
1064
|
active: I.value,
|
|
1065
1065
|
messages: P.value
|
|
1066
1066
|
}, {
|
|
@@ -1090,34 +1090,34 @@ const Kt = O({
|
|
|
1090
1090
|
attrs: n,
|
|
1091
1091
|
slots: t
|
|
1092
1092
|
} = a;
|
|
1093
|
-
const l =
|
|
1093
|
+
const l = pe(e, "modelValue"), {
|
|
1094
1094
|
isFocused: o,
|
|
1095
1095
|
focus: r,
|
|
1096
1096
|
blur: u
|
|
1097
|
-
} = jt(e),
|
|
1097
|
+
} = jt(e), s = $(), v = De();
|
|
1098
1098
|
return ee(() => {
|
|
1099
|
-
const [
|
|
1100
|
-
return
|
|
1101
|
-
ref:
|
|
1099
|
+
const [i, c] = Lt(n), m = ot.filterProps(e), y = wt.filterProps(e);
|
|
1100
|
+
return d(ot, z({
|
|
1101
|
+
ref: s,
|
|
1102
1102
|
class: ["v-checkbox", e.class]
|
|
1103
|
-
},
|
|
1103
|
+
}, i, m, {
|
|
1104
1104
|
modelValue: l.value,
|
|
1105
|
-
"onUpdate:modelValue": (
|
|
1105
|
+
"onUpdate:modelValue": (f) => l.value = f,
|
|
1106
1106
|
id: e.id || `checkbox-${v}`,
|
|
1107
1107
|
focused: o.value,
|
|
1108
1108
|
style: e.style
|
|
1109
1109
|
}), {
|
|
1110
1110
|
...t,
|
|
1111
|
-
default: (
|
|
1111
|
+
default: (f) => {
|
|
1112
1112
|
let {
|
|
1113
|
-
id:
|
|
1113
|
+
id: h,
|
|
1114
1114
|
messagesId: S,
|
|
1115
1115
|
isDisabled: C,
|
|
1116
1116
|
isReadonly: _,
|
|
1117
1117
|
isValid: E
|
|
1118
|
-
} =
|
|
1119
|
-
return
|
|
1120
|
-
id:
|
|
1118
|
+
} = f;
|
|
1119
|
+
return d(wt, z(y, {
|
|
1120
|
+
id: h.value,
|
|
1121
1121
|
"aria-describedby": S.value,
|
|
1122
1122
|
disabled: C.value,
|
|
1123
1123
|
readonly: _.value
|
|
@@ -1130,7 +1130,7 @@ const Kt = O({
|
|
|
1130
1130
|
}), t);
|
|
1131
1131
|
}
|
|
1132
1132
|
});
|
|
1133
|
-
}), et({},
|
|
1133
|
+
}), et({}, s);
|
|
1134
1134
|
}
|
|
1135
1135
|
}), ra = O({
|
|
1136
1136
|
fullscreen: Boolean,
|
|
@@ -1160,7 +1160,7 @@ const Kt = O({
|
|
|
1160
1160
|
emit: n,
|
|
1161
1161
|
slots: t
|
|
1162
1162
|
} = a;
|
|
1163
|
-
const l =
|
|
1163
|
+
const l = pe(e, "modelValue"), {
|
|
1164
1164
|
scopeId: o
|
|
1165
1165
|
} = bn(), r = $();
|
|
1166
1166
|
async function u(c) {
|
|
@@ -1170,19 +1170,19 @@ const Kt = O({
|
|
|
1170
1170
|
![document, r.value.contentEl].includes(y) && // It isn't inside the dialog body
|
|
1171
1171
|
!r.value.contentEl.contains(y) && xt(r.value.contentEl)[0]?.focus();
|
|
1172
1172
|
}
|
|
1173
|
-
function
|
|
1173
|
+
function s(c) {
|
|
1174
1174
|
if (c.key !== "Tab" || !r.value?.contentEl) return;
|
|
1175
1175
|
const m = xt(r.value.contentEl);
|
|
1176
1176
|
if (!m.length) return;
|
|
1177
|
-
const y = m[0],
|
|
1178
|
-
c.shiftKey &&
|
|
1177
|
+
const y = m[0], f = m[m.length - 1], h = document.activeElement;
|
|
1178
|
+
c.shiftKey && h === y ? (c.preventDefault(), f.focus()) : !c.shiftKey && h === f && (c.preventDefault(), y.focus());
|
|
1179
1179
|
}
|
|
1180
1180
|
vl(() => {
|
|
1181
|
-
document.removeEventListener("focusin", u), document.removeEventListener("keydown",
|
|
1181
|
+
document.removeEventListener("focusin", u), document.removeEventListener("keydown", s);
|
|
1182
1182
|
}), Ge && ue(() => l.value && e.retainFocus, (c) => {
|
|
1183
1183
|
c ? (document.addEventListener("focusin", u, {
|
|
1184
1184
|
once: !0
|
|
1185
|
-
}), document.addEventListener("keydown",
|
|
1185
|
+
}), document.addEventListener("keydown", s)) : (document.removeEventListener("focusin", u), document.removeEventListener("keydown", s));
|
|
1186
1186
|
}, {
|
|
1187
1187
|
immediate: !0
|
|
1188
1188
|
});
|
|
@@ -1191,7 +1191,7 @@ const Kt = O({
|
|
|
1191
1191
|
preventScroll: !0
|
|
1192
1192
|
});
|
|
1193
1193
|
}
|
|
1194
|
-
function
|
|
1194
|
+
function i() {
|
|
1195
1195
|
n("afterLeave");
|
|
1196
1196
|
}
|
|
1197
1197
|
return ue(l, async (c) => {
|
|
@@ -1204,7 +1204,7 @@ const Kt = O({
|
|
|
1204
1204
|
}, e.activatorProps), y = z({
|
|
1205
1205
|
tabindex: -1
|
|
1206
1206
|
}, e.contentProps);
|
|
1207
|
-
return
|
|
1207
|
+
return d(Zt, z({
|
|
1208
1208
|
ref: r,
|
|
1209
1209
|
class: ["v-dialog", {
|
|
1210
1210
|
"v-dialog--fullscreen": e.fullscreen,
|
|
@@ -1213,7 +1213,7 @@ const Kt = O({
|
|
|
1213
1213
|
style: e.style
|
|
1214
1214
|
}, c, {
|
|
1215
1215
|
modelValue: l.value,
|
|
1216
|
-
"onUpdate:modelValue": (
|
|
1216
|
+
"onUpdate:modelValue": (f) => l.value = f,
|
|
1217
1217
|
"aria-modal": "true",
|
|
1218
1218
|
activatorProps: m,
|
|
1219
1219
|
contentProps: y,
|
|
@@ -1223,16 +1223,16 @@ const Kt = O({
|
|
|
1223
1223
|
maxWidth: e.fullscreen ? void 0 : e.maxWidth,
|
|
1224
1224
|
role: "dialog",
|
|
1225
1225
|
onAfterEnter: v,
|
|
1226
|
-
onAfterLeave:
|
|
1226
|
+
onAfterLeave: i
|
|
1227
1227
|
}, o), {
|
|
1228
1228
|
activator: t.activator,
|
|
1229
1229
|
default: function() {
|
|
1230
|
-
for (var
|
|
1231
|
-
|
|
1232
|
-
return
|
|
1230
|
+
for (var f = arguments.length, h = new Array(f), S = 0; S < f; S++)
|
|
1231
|
+
h[S] = arguments[S];
|
|
1232
|
+
return d(Se, {
|
|
1233
1233
|
root: "VDialog"
|
|
1234
1234
|
}, {
|
|
1235
|
-
default: () => [t.default?.(...
|
|
1235
|
+
default: () => [t.default?.(...h)]
|
|
1236
1236
|
});
|
|
1237
1237
|
}
|
|
1238
1238
|
});
|
|
@@ -1241,69 +1241,69 @@ const Kt = O({
|
|
|
1241
1241
|
}), ca = { class: "text-medium-emphasis ps-2" }, da = {
|
|
1242
1242
|
__name: "index",
|
|
1243
1243
|
setup(e, { expose: a }) {
|
|
1244
|
-
const n =
|
|
1244
|
+
const n = he("table_props"), { tableState: t } = tt(), { tableDataState: l } = $l(n), o = $(0), r = $(null), u = $(!1), s = $([]), v = $([]), i = $([]), c = () => {
|
|
1245
1245
|
u.value = !0;
|
|
1246
1246
|
};
|
|
1247
1247
|
Ne(async () => {
|
|
1248
1248
|
await me(), vn.create(r.value.$el, {
|
|
1249
1249
|
onEnd: async (y) => {
|
|
1250
|
-
const
|
|
1251
|
-
return
|
|
1250
|
+
const f = Array.from(y.from.children).map(function(h) {
|
|
1251
|
+
return h.getAttribute("header-keys");
|
|
1252
1252
|
});
|
|
1253
|
-
JSON.stringify(
|
|
1253
|
+
JSON.stringify(f) !== JSON.stringify(i.value) && (i.value = f);
|
|
1254
1254
|
}
|
|
1255
|
-
}), v.value = t.value.options.columns?.selected,
|
|
1255
|
+
}), v.value = t.value.options.columns?.selected, i.value = t.value.options.columns?.sorted, s.value = i.value.map((y) => n.headers.find((f) => f.key === y));
|
|
1256
1256
|
});
|
|
1257
1257
|
const m = () => {
|
|
1258
|
-
(JSON.stringify(v.value) !== JSON.stringify(t.value.options.columns?.selected) || JSON.stringify(
|
|
1258
|
+
(JSON.stringify(v.value) !== JSON.stringify(t.value.options.columns?.selected) || JSON.stringify(i.value) !== JSON.stringify(t.value.options.columns?.sorted)) && (l.value.options.columns.selected = v.value, l.value.options.columns.sorted = i.value), u.value = !1;
|
|
1259
1259
|
};
|
|
1260
|
-
return a({ openDialog: c }), (y,
|
|
1261
|
-
modelValue:
|
|
1262
|
-
"onUpdate:modelValue":
|
|
1260
|
+
return a({ openDialog: c }), (y, f) => (X(), fe(qt, {
|
|
1261
|
+
modelValue: D(u),
|
|
1262
|
+
"onUpdate:modelValue": f[1] || (f[1] = (h) => $e(u) ? u.value = h : null),
|
|
1263
1263
|
"max-width": "500",
|
|
1264
1264
|
eager: "",
|
|
1265
1265
|
"retain-focus": !1
|
|
1266
1266
|
}, {
|
|
1267
|
-
default: K(({ isActive:
|
|
1268
|
-
|
|
1267
|
+
default: K(({ isActive: h }) => [
|
|
1268
|
+
d(Ut, { rounded: "lg" }, {
|
|
1269
1269
|
default: K(() => [
|
|
1270
|
-
|
|
1270
|
+
d(yt, { class: "d-flex justify-space-between align-center" }, {
|
|
1271
1271
|
default: K(() => [
|
|
1272
1272
|
k("div", ca, Ue(y.$t("$datatables.selectColumns")), 1),
|
|
1273
|
-
|
|
1273
|
+
d(_e, {
|
|
1274
1274
|
icon: "mdi-close",
|
|
1275
1275
|
variant: "text",
|
|
1276
|
-
onClick: (S) =>
|
|
1276
|
+
onClick: (S) => h.value = !1
|
|
1277
1277
|
}, null, 8, ["onClick"])
|
|
1278
1278
|
]),
|
|
1279
1279
|
_: 2
|
|
1280
1280
|
}, 1024),
|
|
1281
|
-
|
|
1282
|
-
|
|
1281
|
+
d(Ie),
|
|
1282
|
+
d(bt, { class: "overflow-auto pt-8" }, {
|
|
1283
1283
|
default: K(() => [
|
|
1284
|
-
|
|
1284
|
+
d(Ht, {
|
|
1285
1285
|
ref_key: "list",
|
|
1286
1286
|
ref: r
|
|
1287
1287
|
}, {
|
|
1288
1288
|
default: K(() => [
|
|
1289
|
-
(X(!0), Ee(ie, null, Pt(
|
|
1290
|
-
key: `${
|
|
1289
|
+
(X(!0), Ee(ie, null, Pt(D(s), (S, C) => (X(), fe(nt, {
|
|
1290
|
+
key: `${D(o)}-${C}`,
|
|
1291
1291
|
title: S?.title,
|
|
1292
1292
|
"header-keys": S?.key,
|
|
1293
1293
|
onClick: () => {
|
|
1294
1294
|
}
|
|
1295
1295
|
}, {
|
|
1296
1296
|
prepend: K(() => [
|
|
1297
|
-
|
|
1298
|
-
modelValue:
|
|
1299
|
-
"onUpdate:modelValue":
|
|
1297
|
+
d(ua, {
|
|
1298
|
+
modelValue: D(v),
|
|
1299
|
+
"onUpdate:modelValue": f[0] || (f[0] = (_) => $e(v) ? v.value = _ : null),
|
|
1300
1300
|
value: S?.key,
|
|
1301
1301
|
"hide-details": ""
|
|
1302
1302
|
}, null, 8, ["modelValue", "value"])
|
|
1303
1303
|
]),
|
|
1304
1304
|
append: K(() => [
|
|
1305
|
-
|
|
1306
|
-
default: K(() => [...
|
|
1305
|
+
d(ge, null, {
|
|
1306
|
+
default: K(() => [...f[2] || (f[2] = [
|
|
1307
1307
|
ml("mdi-drag-vertical", -1)
|
|
1308
1308
|
])]),
|
|
1309
1309
|
_: 1
|
|
@@ -1317,15 +1317,15 @@ const Kt = O({
|
|
|
1317
1317
|
]),
|
|
1318
1318
|
_: 1
|
|
1319
1319
|
}),
|
|
1320
|
-
|
|
1321
|
-
|
|
1320
|
+
d(Ie, { class: "mt-2" }),
|
|
1321
|
+
d(zt, { class: "my-2 d-flex justify-end" }, {
|
|
1322
1322
|
default: K(() => [
|
|
1323
|
-
|
|
1323
|
+
d(_e, {
|
|
1324
1324
|
class: "text-none",
|
|
1325
1325
|
text: y.$t("$datatables.cancel"),
|
|
1326
|
-
onClick: (S) =>
|
|
1326
|
+
onClick: (S) => h.value = !1
|
|
1327
1327
|
}, null, 8, ["text", "onClick"]),
|
|
1328
|
-
|
|
1328
|
+
d(_e, {
|
|
1329
1329
|
class: "text-none",
|
|
1330
1330
|
color: "primary",
|
|
1331
1331
|
text: y.$t("$datatables.submit"),
|
|
@@ -1367,31 +1367,31 @@ function ht(e, a, n) {
|
|
|
1367
1367
|
return l;
|
|
1368
1368
|
}
|
|
1369
1369
|
async function ol(e, a, n, t) {
|
|
1370
|
-
const l = n ? "scrollLeft" : "scrollTop", o = It(t?.options ?? va(), a), r = t?.rtl.value, u = (typeof e == "number" ? e : Wt(e)) ?? 0,
|
|
1370
|
+
const l = n ? "scrollLeft" : "scrollTop", o = It(t?.options ?? va(), a), r = t?.rtl.value, u = (typeof e == "number" ? e : Wt(e)) ?? 0, s = o.container === "parent" && u instanceof HTMLElement ? u.parentElement : ma(o.container), v = Fl() ? o.patterns.instant : typeof o.easing == "function" ? o.easing : o.patterns[o.easing];
|
|
1371
1371
|
if (!v) throw new TypeError(`Easing function "${o.easing}" not found.`);
|
|
1372
|
-
let
|
|
1372
|
+
let i;
|
|
1373
1373
|
if (typeof u == "number")
|
|
1374
|
-
|
|
1375
|
-
else if (
|
|
1376
|
-
const
|
|
1377
|
-
|
|
1374
|
+
i = ht(u, n, r);
|
|
1375
|
+
else if (i = ht(u, n, r) - ht(s, n, r), o.layout) {
|
|
1376
|
+
const f = window.getComputedStyle(u).getPropertyValue("--v-layout-top");
|
|
1377
|
+
f && (i -= parseInt(f, 10));
|
|
1378
1378
|
}
|
|
1379
|
-
|
|
1380
|
-
const c =
|
|
1381
|
-
if (
|
|
1379
|
+
i += o.offset, i = ya(s, i, !!r, !!n);
|
|
1380
|
+
const c = s[l] ?? 0;
|
|
1381
|
+
if (i === c) return Promise.resolve(i);
|
|
1382
1382
|
const m = performance.now();
|
|
1383
|
-
return new Promise((y) => requestAnimationFrame(function
|
|
1384
|
-
const C = (
|
|
1385
|
-
if (
|
|
1386
|
-
return y(
|
|
1383
|
+
return new Promise((y) => requestAnimationFrame(function f(h) {
|
|
1384
|
+
const C = (h - m) / o.duration, _ = Math.floor(c + (i - c) * v(Te(C, 0, 1)));
|
|
1385
|
+
if (s[l] = _, C >= 1 && Math.abs(_ - s[l]) < 10)
|
|
1386
|
+
return y(i);
|
|
1387
1387
|
if (C > 2)
|
|
1388
|
-
return pn("Scroll target is not reachable"), y(
|
|
1389
|
-
requestAnimationFrame(
|
|
1388
|
+
return pn("Scroll target is not reachable"), y(s[l]);
|
|
1389
|
+
requestAnimationFrame(f);
|
|
1390
1390
|
}));
|
|
1391
1391
|
}
|
|
1392
1392
|
function ga() {
|
|
1393
1393
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
1394
|
-
const a =
|
|
1394
|
+
const a = he(fa), {
|
|
1395
1395
|
isRtl: n
|
|
1396
1396
|
} = vt();
|
|
1397
1397
|
if (!a) throw new Error("[Vuetify] Could not find injected goto instance");
|
|
@@ -1410,8 +1410,8 @@ function ya(e, a, n, t) {
|
|
|
1410
1410
|
scrollWidth: l,
|
|
1411
1411
|
scrollHeight: o
|
|
1412
1412
|
} = e, [r, u] = e === document.scrollingElement ? [window.innerWidth, window.innerHeight] : [e.offsetWidth, e.offsetHeight];
|
|
1413
|
-
let
|
|
1414
|
-
return t ? n ? (
|
|
1413
|
+
let s, v;
|
|
1414
|
+
return t ? n ? (s = -(l - r), v = 0) : (s = 0, v = l - r) : (s = 0, v = o + -u), Te(a, s, v);
|
|
1415
1415
|
}
|
|
1416
1416
|
function ba(e) {
|
|
1417
1417
|
let {
|
|
@@ -1420,8 +1420,8 @@ function ba(e) {
|
|
|
1420
1420
|
isRtl: t,
|
|
1421
1421
|
isHorizontal: l
|
|
1422
1422
|
} = e;
|
|
1423
|
-
const o = Ke(l, n), r = jl(l, t, n), u = Ke(l, a),
|
|
1424
|
-
return r >
|
|
1423
|
+
const o = Ke(l, n), r = jl(l, t, n), u = Ke(l, a), s = Gl(l, a), v = u * 0.4;
|
|
1424
|
+
return r > s ? s - v : r + o < s + u ? s - o + u + v : r;
|
|
1425
1425
|
}
|
|
1426
1426
|
function ha(e) {
|
|
1427
1427
|
let {
|
|
@@ -1504,12 +1504,12 @@ const Kl = Symbol.for("vuetify:v-slide-group"), ql = O({
|
|
|
1504
1504
|
} = vt(), {
|
|
1505
1505
|
displayClasses: l,
|
|
1506
1506
|
mobile: o
|
|
1507
|
-
} = Dl(e), r = Bl(e, e.symbol), u = ne(!1),
|
|
1507
|
+
} = Dl(e), r = Bl(e, e.symbol), u = ne(!1), s = ne(0), v = ne(0), i = ne(0), c = x(() => e.direction === "horizontal"), {
|
|
1508
1508
|
resizeRef: m,
|
|
1509
1509
|
contentRect: y
|
|
1510
1510
|
} = at(), {
|
|
1511
|
-
resizeRef:
|
|
1512
|
-
contentRect:
|
|
1511
|
+
resizeRef: f,
|
|
1512
|
+
contentRect: h
|
|
1513
1513
|
} = at(), S = ga(), C = x(() => ({
|
|
1514
1514
|
container: m.el,
|
|
1515
1515
|
duration: 200,
|
|
@@ -1517,14 +1517,14 @@ const Kl = Symbol.for("vuetify:v-slide-group"), ql = O({
|
|
|
1517
1517
|
})), _ = x(() => r.selected.value.length ? r.items.value.findIndex((b) => b.id === r.selected.value[0]) : -1), E = x(() => r.selected.value.length ? r.items.value.findIndex((b) => b.id === r.selected.value[r.selected.value.length - 1]) : -1);
|
|
1518
1518
|
if (Ge) {
|
|
1519
1519
|
let b = -1;
|
|
1520
|
-
ue(() => [r.selected.value, y.value,
|
|
1520
|
+
ue(() => [r.selected.value, y.value, h.value, c.value], () => {
|
|
1521
1521
|
cancelAnimationFrame(b), b = requestAnimationFrame(() => {
|
|
1522
|
-
if (y.value &&
|
|
1522
|
+
if (y.value && h.value) {
|
|
1523
1523
|
const g = c.value ? "width" : "height";
|
|
1524
|
-
v.value = y.value[g],
|
|
1524
|
+
v.value = y.value[g], i.value = h.value[g], u.value = v.value + 1 < i.value;
|
|
1525
1525
|
}
|
|
1526
|
-
if (e.scrollToActive && _.value >= 0 &&
|
|
1527
|
-
const g =
|
|
1526
|
+
if (e.scrollToActive && _.value >= 0 && f.el) {
|
|
1527
|
+
const g = f.el.children[E.value];
|
|
1528
1528
|
V(g, e.centerActive);
|
|
1529
1529
|
}
|
|
1530
1530
|
});
|
|
@@ -1564,12 +1564,12 @@ const Kl = Symbol.for("vuetify:v-slide-group"), ql = O({
|
|
|
1564
1564
|
scrollTop: g,
|
|
1565
1565
|
scrollLeft: w
|
|
1566
1566
|
} = b.target;
|
|
1567
|
-
|
|
1567
|
+
s.value = c.value ? w : g;
|
|
1568
1568
|
}
|
|
1569
1569
|
function I(b) {
|
|
1570
|
-
if (T.value = !0, !(!u.value || !
|
|
1570
|
+
if (T.value = !0, !(!u.value || !f.el)) {
|
|
1571
1571
|
for (const g of b.composedPath())
|
|
1572
|
-
for (const w of
|
|
1572
|
+
for (const w of f.el.children)
|
|
1573
1573
|
if (w === g) {
|
|
1574
1574
|
V(w);
|
|
1575
1575
|
return;
|
|
@@ -1581,13 +1581,13 @@ const Kl = Symbol.for("vuetify:v-slide-group"), ql = O({
|
|
|
1581
1581
|
}
|
|
1582
1582
|
let W = !1;
|
|
1583
1583
|
function J(b) {
|
|
1584
|
-
!W && !T.value && !(b.relatedTarget &&
|
|
1584
|
+
!W && !T.value && !(b.relatedTarget && f.el?.contains(b.relatedTarget)) && ce(), W = !1;
|
|
1585
1585
|
}
|
|
1586
1586
|
function te() {
|
|
1587
1587
|
W = !0;
|
|
1588
1588
|
}
|
|
1589
1589
|
function Q(b) {
|
|
1590
|
-
if (!
|
|
1590
|
+
if (!f.el) return;
|
|
1591
1591
|
function g(w) {
|
|
1592
1592
|
b.preventDefault(), ce(w);
|
|
1593
1593
|
}
|
|
@@ -1602,37 +1602,37 @@ const Kl = Symbol.for("vuetify:v-slide-group"), ql = O({
|
|
|
1602
1602
|
return w;
|
|
1603
1603
|
}
|
|
1604
1604
|
function ce(b) {
|
|
1605
|
-
if (!
|
|
1605
|
+
if (!f.el) return;
|
|
1606
1606
|
let g;
|
|
1607
1607
|
if (!b)
|
|
1608
|
-
g = xt(
|
|
1608
|
+
g = xt(f.el)[0];
|
|
1609
1609
|
else if (b === "next") {
|
|
1610
|
-
if (g = U(
|
|
1610
|
+
if (g = U(f.el.querySelector(":focus"), b), !g) return ce("first");
|
|
1611
1611
|
} else if (b === "prev") {
|
|
1612
|
-
if (g = U(
|
|
1613
|
-
} else b === "first" ? (g =
|
|
1612
|
+
if (g = U(f.el.querySelector(":focus"), b), !g) return ce("last");
|
|
1613
|
+
} else b === "first" ? (g = f.el.firstElementChild, g?.hasAttribute("disabled") && (g = U(g, "next"))) : b === "last" && (g = f.el.lastElementChild, g?.hasAttribute("disabled") && (g = U(g, "prev")));
|
|
1614
1614
|
g && g.focus({
|
|
1615
1615
|
preventScroll: !0
|
|
1616
1616
|
});
|
|
1617
1617
|
}
|
|
1618
1618
|
function j(b) {
|
|
1619
1619
|
const g = c.value && t.value ? -1 : 1, w = (b === "prev" ? -g : g) * v.value;
|
|
1620
|
-
let
|
|
1620
|
+
let B = s.value + w;
|
|
1621
1621
|
if (c.value && t.value && m.el) {
|
|
1622
1622
|
const {
|
|
1623
1623
|
scrollWidth: M,
|
|
1624
1624
|
offsetWidth: G
|
|
1625
1625
|
} = m.el;
|
|
1626
|
-
|
|
1626
|
+
B += M - G;
|
|
1627
1627
|
}
|
|
1628
|
-
L(
|
|
1628
|
+
L(B);
|
|
1629
1629
|
}
|
|
1630
1630
|
const Z = x(() => ({
|
|
1631
1631
|
next: r.next,
|
|
1632
1632
|
prev: r.prev,
|
|
1633
1633
|
select: r.select,
|
|
1634
1634
|
isSelected: r.isSelected
|
|
1635
|
-
})), se = x(() => u.value || Math.abs(
|
|
1635
|
+
})), se = x(() => u.value || Math.abs(s.value) > 0), de = x(() => {
|
|
1636
1636
|
switch (e.showArrows) {
|
|
1637
1637
|
// Always show arrows on desktop & mobile
|
|
1638
1638
|
case "always":
|
|
@@ -1653,12 +1653,12 @@ const Kl = Symbol.for("vuetify:v-slide-group"), ql = O({
|
|
|
1653
1653
|
default:
|
|
1654
1654
|
return !o.value && se.value;
|
|
1655
1655
|
}
|
|
1656
|
-
}), A = x(() => Math.abs(
|
|
1656
|
+
}), A = x(() => Math.abs(s.value) > 1), p = x(() => {
|
|
1657
1657
|
if (!m.value || !se.value) return !1;
|
|
1658
1658
|
const b = sl(c.value, m.el), g = pa(c.value, m.el);
|
|
1659
|
-
return b - g - Math.abs(
|
|
1659
|
+
return b - g - Math.abs(s.value) > 1;
|
|
1660
1660
|
});
|
|
1661
|
-
return ee(() =>
|
|
1661
|
+
return ee(() => d(e.tag, {
|
|
1662
1662
|
class: ae(["v-slide-group", {
|
|
1663
1663
|
"v-slide-group--vertical": !c.value,
|
|
1664
1664
|
"v-slide-group--has-affixes": de.value,
|
|
@@ -1675,8 +1675,8 @@ const Kl = Symbol.for("vuetify:v-slide-group"), ql = O({
|
|
|
1675
1675
|
}]),
|
|
1676
1676
|
onMousedown: te,
|
|
1677
1677
|
onClick: () => A.value && j("prev")
|
|
1678
|
-
}, [n.prev?.(Z.value) ??
|
|
1679
|
-
default: () => [
|
|
1678
|
+
}, [n.prev?.(Z.value) ?? d(el, null, {
|
|
1679
|
+
default: () => [d(ge, {
|
|
1680
1680
|
icon: t.value ? e.nextIcon : e.prevIcon
|
|
1681
1681
|
}, null)]
|
|
1682
1682
|
})]), k("div", {
|
|
@@ -1685,7 +1685,7 @@ const Kl = Symbol.for("vuetify:v-slide-group"), ql = O({
|
|
|
1685
1685
|
class: ae(["v-slide-group__container", e.contentClass]),
|
|
1686
1686
|
onScroll: P
|
|
1687
1687
|
}, [k("div", {
|
|
1688
|
-
ref:
|
|
1688
|
+
ref: f,
|
|
1689
1689
|
class: "v-slide-group__content",
|
|
1690
1690
|
onFocusin: I,
|
|
1691
1691
|
onFocusout: R,
|
|
@@ -1693,22 +1693,22 @@ const Kl = Symbol.for("vuetify:v-slide-group"), ql = O({
|
|
|
1693
1693
|
}, [n.default?.(Z.value)])]), de.value && k("div", {
|
|
1694
1694
|
key: "next",
|
|
1695
1695
|
class: ae(["v-slide-group__next", {
|
|
1696
|
-
"v-slide-group__next--disabled": !
|
|
1696
|
+
"v-slide-group__next--disabled": !p.value
|
|
1697
1697
|
}]),
|
|
1698
1698
|
onMousedown: te,
|
|
1699
|
-
onClick: () =>
|
|
1700
|
-
}, [n.next?.(Z.value) ??
|
|
1701
|
-
default: () => [
|
|
1699
|
+
onClick: () => p.value && j("next")
|
|
1700
|
+
}, [n.next?.(Z.value) ?? d(el, null, {
|
|
1701
|
+
default: () => [d(ge, {
|
|
1702
1702
|
icon: t.value ? e.prevIcon : e.nextIcon
|
|
1703
1703
|
}, null)]
|
|
1704
1704
|
})])]
|
|
1705
1705
|
})), {
|
|
1706
1706
|
selected: r.selected,
|
|
1707
1707
|
scrollTo: j,
|
|
1708
|
-
scrollOffset:
|
|
1708
|
+
scrollOffset: s,
|
|
1709
1709
|
focus: ce,
|
|
1710
1710
|
hasPrev: A,
|
|
1711
|
-
hasNext:
|
|
1711
|
+
hasNext: p
|
|
1712
1712
|
};
|
|
1713
1713
|
}
|
|
1714
1714
|
}), Wl = Symbol.for("vuetify:v-chip-group"), Sa = O({
|
|
@@ -1748,7 +1748,7 @@ const Kl = Symbol.for("vuetify:v-slide-group"), ql = O({
|
|
|
1748
1748
|
select: o,
|
|
1749
1749
|
next: r,
|
|
1750
1750
|
prev: u,
|
|
1751
|
-
selected:
|
|
1751
|
+
selected: s
|
|
1752
1752
|
} = Bl(e, Wl);
|
|
1753
1753
|
return Ft({
|
|
1754
1754
|
VChip: {
|
|
@@ -1760,7 +1760,7 @@ const Kl = Symbol.for("vuetify:v-slide-group"), ql = O({
|
|
|
1760
1760
|
}
|
|
1761
1761
|
}), ee(() => {
|
|
1762
1762
|
const v = il.filterProps(e);
|
|
1763
|
-
return
|
|
1763
|
+
return d(il, z(v, {
|
|
1764
1764
|
class: ["v-chip-group", {
|
|
1765
1765
|
"v-chip-group--column": e.column
|
|
1766
1766
|
}, t.value, e.class],
|
|
@@ -1771,7 +1771,7 @@ const Kl = Symbol.for("vuetify:v-slide-group"), ql = O({
|
|
|
1771
1771
|
select: o,
|
|
1772
1772
|
next: r,
|
|
1773
1773
|
prev: u,
|
|
1774
|
-
selected:
|
|
1774
|
+
selected: s.value
|
|
1775
1775
|
})]
|
|
1776
1776
|
});
|
|
1777
1777
|
}), {};
|
|
@@ -1858,14 +1858,14 @@ const Kl = Symbol.for("vuetify:v-slide-group"), ql = O({
|
|
|
1858
1858
|
} = Dt(e), {
|
|
1859
1859
|
densityClasses: u
|
|
1860
1860
|
} = rt(e), {
|
|
1861
|
-
elevationClasses:
|
|
1861
|
+
elevationClasses: s
|
|
1862
1862
|
} = Bt(e), {
|
|
1863
1863
|
roundedClasses: v
|
|
1864
1864
|
} = Ye(e), {
|
|
1865
|
-
sizeClasses:
|
|
1865
|
+
sizeClasses: i
|
|
1866
1866
|
} = Vn(e), {
|
|
1867
1867
|
themeClasses: c
|
|
1868
|
-
} = Re(e), m =
|
|
1868
|
+
} = Re(e), m = pe(e, "modelValue"), y = tl(e, Wl, !1), f = tl(e, Kl, !1), h = Sl(e, n), S = F(() => e.link !== !1 && h.isLink.value), C = x(() => !e.disabled && e.link !== !1 && (!!y || e.link || h.isClickable.value)), _ = F(() => ({
|
|
1869
1869
|
"aria-label": o(e.closeLabel),
|
|
1870
1870
|
disabled: e.disabled,
|
|
1871
1871
|
onClick(I) {
|
|
@@ -1873,7 +1873,7 @@ const Kl = Symbol.for("vuetify:v-slide-group"), ql = O({
|
|
|
1873
1873
|
}
|
|
1874
1874
|
}));
|
|
1875
1875
|
ue(m, (I) => {
|
|
1876
|
-
I ? (y?.register(),
|
|
1876
|
+
I ? (y?.register(), f?.register()) : (y?.unregister(), f?.unregister());
|
|
1877
1877
|
});
|
|
1878
1878
|
const {
|
|
1879
1879
|
colorClasses: E,
|
|
@@ -1884,22 +1884,22 @@ const Kl = Symbol.for("vuetify:v-slide-group"), ql = O({
|
|
|
1884
1884
|
variant: e.variant
|
|
1885
1885
|
}));
|
|
1886
1886
|
function L(I) {
|
|
1887
|
-
t("click", I), C.value && (
|
|
1887
|
+
t("click", I), C.value && (h.navigate?.(I), y?.toggle());
|
|
1888
1888
|
}
|
|
1889
1889
|
function P(I) {
|
|
1890
1890
|
(I.key === "Enter" || I.key === " ") && (I.preventDefault(), L(I));
|
|
1891
1891
|
}
|
|
1892
1892
|
return () => {
|
|
1893
|
-
const I =
|
|
1894
|
-
return m.value && Fe(
|
|
1893
|
+
const I = h.isLink.value ? "a" : e.tag, R = !!(e.appendIcon || e.appendAvatar), W = !!(R || l.append), J = !!(l.close || e.closable), te = !!(l.filter || e.filter) && y, Q = !!(e.prependIcon || e.prependAvatar), U = !!(Q || l.prepend);
|
|
1894
|
+
return m.value && Fe(d(I, z(h.linkProps, {
|
|
1895
1895
|
class: ["v-chip", {
|
|
1896
1896
|
"v-chip--disabled": e.disabled,
|
|
1897
1897
|
"v-chip--label": e.label,
|
|
1898
1898
|
"v-chip--link": C.value,
|
|
1899
1899
|
"v-chip--filter": te,
|
|
1900
1900
|
"v-chip--pill": e.pill,
|
|
1901
|
-
[`${e.activeClass}`]: e.activeClass &&
|
|
1902
|
-
}, c.value, r.value, E.value, u.value,
|
|
1901
|
+
[`${e.activeClass}`]: e.activeClass && h.isActive?.value
|
|
1902
|
+
}, c.value, r.value, E.value, u.value, s.value, v.value, i.value, V.value, y?.selectedClass.value, e.class],
|
|
1903
1903
|
style: [T.value, e.style],
|
|
1904
1904
|
disabled: e.disabled || void 0,
|
|
1905
1905
|
draggable: e.draggable,
|
|
@@ -1907,12 +1907,12 @@ const Kl = Symbol.for("vuetify:v-slide-group"), ql = O({
|
|
|
1907
1907
|
onClick: L,
|
|
1908
1908
|
onKeydown: C.value && !S.value && P
|
|
1909
1909
|
}), {
|
|
1910
|
-
default: () => [kl(C.value, "v-chip"), te &&
|
|
1910
|
+
default: () => [kl(C.value, "v-chip"), te && d(Nl, {
|
|
1911
1911
|
key: "filter"
|
|
1912
1912
|
}, {
|
|
1913
1913
|
default: () => [Fe(k("div", {
|
|
1914
1914
|
class: "v-chip__filter"
|
|
1915
|
-
}, [l.filter ?
|
|
1915
|
+
}, [l.filter ? d(Se, {
|
|
1916
1916
|
key: "filter-defaults",
|
|
1917
1917
|
disabled: !e.filterIcon,
|
|
1918
1918
|
defaults: {
|
|
@@ -1920,14 +1920,14 @@ const Kl = Symbol.for("vuetify:v-slide-group"), ql = O({
|
|
|
1920
1920
|
icon: e.filterIcon
|
|
1921
1921
|
}
|
|
1922
1922
|
}
|
|
1923
|
-
}, l.filter) :
|
|
1923
|
+
}, l.filter) : d(ge, {
|
|
1924
1924
|
key: "filter-icon",
|
|
1925
1925
|
icon: e.filterIcon
|
|
1926
1926
|
}, null)]), [[it, y.isSelected.value]])]
|
|
1927
1927
|
}), U && k("div", {
|
|
1928
1928
|
key: "prepend",
|
|
1929
1929
|
class: "v-chip__prepend"
|
|
1930
|
-
}, [l.prepend ?
|
|
1930
|
+
}, [l.prepend ? d(Se, {
|
|
1931
1931
|
key: "prepend-defaults",
|
|
1932
1932
|
disabled: !Q,
|
|
1933
1933
|
defaults: {
|
|
@@ -1940,11 +1940,11 @@ const Kl = Symbol.for("vuetify:v-slide-group"), ql = O({
|
|
|
1940
1940
|
start: !0
|
|
1941
1941
|
}
|
|
1942
1942
|
}
|
|
1943
|
-
}, l.prepend) : k(ie, null, [e.prependIcon &&
|
|
1943
|
+
}, l.prepend) : k(ie, null, [e.prependIcon && d(ge, {
|
|
1944
1944
|
key: "prepend-icon",
|
|
1945
1945
|
icon: e.prependIcon,
|
|
1946
1946
|
start: !0
|
|
1947
|
-
}, null), e.prependAvatar &&
|
|
1947
|
+
}, null), e.prependAvatar && d(je, {
|
|
1948
1948
|
key: "prepend-avatar",
|
|
1949
1949
|
image: e.prependAvatar,
|
|
1950
1950
|
start: !0
|
|
@@ -1961,7 +1961,7 @@ const Kl = Symbol.for("vuetify:v-slide-group"), ql = O({
|
|
|
1961
1961
|
}) ?? Ue(e.text)]), W && k("div", {
|
|
1962
1962
|
key: "append",
|
|
1963
1963
|
class: "v-chip__append"
|
|
1964
|
-
}, [l.append ?
|
|
1964
|
+
}, [l.append ? d(Se, {
|
|
1965
1965
|
key: "append-defaults",
|
|
1966
1966
|
disabled: !R,
|
|
1967
1967
|
defaults: {
|
|
@@ -1974,11 +1974,11 @@ const Kl = Symbol.for("vuetify:v-slide-group"), ql = O({
|
|
|
1974
1974
|
icon: e.appendIcon
|
|
1975
1975
|
}
|
|
1976
1976
|
}
|
|
1977
|
-
}, l.append) : k(ie, null, [e.appendIcon &&
|
|
1977
|
+
}, l.append) : k(ie, null, [e.appendIcon && d(ge, {
|
|
1978
1978
|
key: "append-icon",
|
|
1979
1979
|
end: !0,
|
|
1980
1980
|
icon: e.appendIcon
|
|
1981
|
-
}, null), e.appendAvatar &&
|
|
1981
|
+
}, null), e.appendAvatar && d(je, {
|
|
1982
1982
|
key: "append-avatar",
|
|
1983
1983
|
end: !0,
|
|
1984
1984
|
image: e.appendAvatar
|
|
@@ -1987,7 +1987,7 @@ const Kl = Symbol.for("vuetify:v-slide-group"), ql = O({
|
|
|
1987
1987
|
class: "v-chip__close",
|
|
1988
1988
|
type: "button",
|
|
1989
1989
|
"data-testid": "close-chip"
|
|
1990
|
-
}, _.value), [l.close ?
|
|
1990
|
+
}, _.value), [l.close ? d(Se, {
|
|
1991
1991
|
key: "close-defaults",
|
|
1992
1992
|
defaults: {
|
|
1993
1993
|
VIcon: {
|
|
@@ -1995,7 +1995,7 @@ const Kl = Symbol.for("vuetify:v-slide-group"), ql = O({
|
|
|
1995
1995
|
size: "x-small"
|
|
1996
1996
|
}
|
|
1997
1997
|
}
|
|
1998
|
-
}, l.close) :
|
|
1998
|
+
}, l.close) : d(ge, {
|
|
1999
1999
|
key: "close-icon",
|
|
2000
2000
|
icon: e.closeIcon,
|
|
2001
2001
|
size: "x-small"
|
|
@@ -2031,16 +2031,16 @@ const Kl = Symbol.for("vuetify:v-slide-group"), ql = O({
|
|
|
2031
2031
|
} = Dt(e), {
|
|
2032
2032
|
dimensionStyles: u
|
|
2033
2033
|
} = Je(e), {
|
|
2034
|
-
elevationClasses:
|
|
2034
|
+
elevationClasses: s
|
|
2035
2035
|
} = Bt(e), {
|
|
2036
2036
|
locationStyles: v
|
|
2037
2037
|
} = Et(e), {
|
|
2038
|
-
positionClasses:
|
|
2038
|
+
positionClasses: i
|
|
2039
2039
|
} = pl(e), {
|
|
2040
2040
|
roundedClasses: c
|
|
2041
2041
|
} = Ye(e);
|
|
2042
|
-
return ee(() =>
|
|
2043
|
-
class: ae(["v-sheet", t.value, l.value, r.value,
|
|
2042
|
+
return ee(() => d(e.tag, {
|
|
2043
|
+
class: ae(["v-sheet", t.value, l.value, r.value, s.value, i.value, c.value, e.class]),
|
|
2044
2044
|
style: ye([o.value, u.value, v.value, e.style])
|
|
2045
2045
|
}, n)), {};
|
|
2046
2046
|
}
|
|
@@ -2052,29 +2052,29 @@ const Kl = Symbol.for("vuetify:v-slide-group"), ql = O({
|
|
|
2052
2052
|
},
|
|
2053
2053
|
emits: /* @__PURE__ */ At("save", ["update:modelValue"]),
|
|
2054
2054
|
setup(e, { emit: a }) {
|
|
2055
|
-
const { advancedFiltersState: n } = tt(), t =
|
|
2056
|
-
const
|
|
2057
|
-
const
|
|
2058
|
-
let S =
|
|
2059
|
-
return
|
|
2055
|
+
const { advancedFiltersState: n } = tt(), t = he("table_props"), l = ut(e, "modelValue"), o = (s, v) => {
|
|
2056
|
+
const i = t.headers.find((f) => (f.advancedFilter?.key ?? f.key) === v), c = s.comparison === "=" ? ":" : " " + s.comparison, y = (Array.isArray(s.value) ? s.value : [s.value]).map((f) => {
|
|
2057
|
+
const h = i.advancedFilter?.options?.items ?? [];
|
|
2058
|
+
let S = f, C;
|
|
2059
|
+
return h.length && (C = h.find((_) => _.value === f), C && (S = C.title)), typeof i.advancedFilter?.valueFormatter == "function" && (S = i.advancedFilter.valueFormatter({
|
|
2060
2060
|
item: C,
|
|
2061
|
-
value:
|
|
2061
|
+
value: f
|
|
2062
2062
|
})), S;
|
|
2063
2063
|
});
|
|
2064
|
-
return `${
|
|
2065
|
-
}, r = (
|
|
2066
|
-
l.value[
|
|
2064
|
+
return `${i.title}${c} ${y}`;
|
|
2065
|
+
}, r = (s) => {
|
|
2066
|
+
l.value[s] = { comparison: "=", value: null }, u("save");
|
|
2067
2067
|
}, u = a;
|
|
2068
|
-
return (
|
|
2068
|
+
return (s, v) => (X(), fe(xa, null, {
|
|
2069
2069
|
default: K(() => [
|
|
2070
|
-
|
|
2070
|
+
d(ka, null, {
|
|
2071
2071
|
default: K(() => [
|
|
2072
|
-
(X(!0), Ee(ie, null, Pt(
|
|
2072
|
+
(X(!0), Ee(ie, null, Pt(D(n), (i, c) => (X(), fe(Jl, {
|
|
2073
2073
|
key: c,
|
|
2074
2074
|
class: "my-0",
|
|
2075
|
-
text: o(
|
|
2075
|
+
text: o(i, c),
|
|
2076
2076
|
closable: "",
|
|
2077
|
-
value:
|
|
2077
|
+
value: i,
|
|
2078
2078
|
density: "comfortable",
|
|
2079
2079
|
"onClick:close": (m) => r(c)
|
|
2080
2080
|
}, null, 8, ["text", "value", "onClick:close"]))), 128))
|
|
@@ -2108,7 +2108,7 @@ const Kl = Symbol.for("vuetify:v-slide-group"), ql = O({
|
|
|
2108
2108
|
slots: n
|
|
2109
2109
|
} = a;
|
|
2110
2110
|
const t = F(() => e.max ? `${e.value} / ${e.max}` : String(e.value));
|
|
2111
|
-
return ee(() =>
|
|
2111
|
+
return ee(() => d(Mt, {
|
|
2112
2112
|
transition: e.transition
|
|
2113
2113
|
}, {
|
|
2114
2114
|
default: () => [Fe(k("div", {
|
|
@@ -2133,7 +2133,7 @@ const Kl = Symbol.for("vuetify:v-slide-group"), ql = O({
|
|
|
2133
2133
|
let {
|
|
2134
2134
|
slots: n
|
|
2135
2135
|
} = a;
|
|
2136
|
-
return ee(() =>
|
|
2136
|
+
return ee(() => d(Ol, {
|
|
2137
2137
|
class: ae(["v-field-label", {
|
|
2138
2138
|
"v-field-label--floating": e.floating
|
|
2139
2139
|
}, e.class]),
|
|
@@ -2206,17 +2206,17 @@ const Kl = Symbol.for("vuetify:v-slide-group"), ql = O({
|
|
|
2206
2206
|
loaderClasses: r
|
|
2207
2207
|
} = hl(e), {
|
|
2208
2208
|
focusClasses: u,
|
|
2209
|
-
isFocused:
|
|
2209
|
+
isFocused: s,
|
|
2210
2210
|
focus: v,
|
|
2211
|
-
blur:
|
|
2211
|
+
blur: i
|
|
2212
2212
|
} = jt(e), {
|
|
2213
2213
|
InputIcon: c
|
|
2214
2214
|
} = zl(e), {
|
|
2215
2215
|
roundedClasses: m
|
|
2216
2216
|
} = Ye(e), {
|
|
2217
2217
|
rtlClasses: y
|
|
2218
|
-
} = vt(),
|
|
2219
|
-
if (!(!e.iconColor || e.glow && !
|
|
2218
|
+
} = vt(), f = F(() => e.dirty || e.active), h = F(() => !!(e.label || l.label)), S = F(() => !e.singleLine && h.value), C = De(), _ = x(() => e.id || `input-${C}`), E = F(() => e.details ? `${_.value}-messages` : void 0), T = $(), V = $(), L = $(), P = x(() => ["plain", "underlined"].includes(e.variant)), I = x(() => e.error || e.disabled ? void 0 : f.value && s.value ? e.color : e.baseColor), R = x(() => {
|
|
2219
|
+
if (!(!e.iconColor || e.glow && !s.value))
|
|
2220
2220
|
return e.iconColor === !0 ? I.value : e.iconColor;
|
|
2221
2221
|
}), {
|
|
2222
2222
|
backgroundColorClasses: W,
|
|
@@ -2225,15 +2225,15 @@ const Kl = Symbol.for("vuetify:v-slide-group"), ql = O({
|
|
|
2225
2225
|
textColorClasses: te,
|
|
2226
2226
|
textColorStyles: Q
|
|
2227
2227
|
} = ct(I);
|
|
2228
|
-
ue(
|
|
2228
|
+
ue(f, (j) => {
|
|
2229
2229
|
if (S.value && !Fl()) {
|
|
2230
2230
|
const Z = T.value.$el, se = V.value.$el;
|
|
2231
2231
|
requestAnimationFrame(() => {
|
|
2232
|
-
const de = wn(Z), A = se.getBoundingClientRect(),
|
|
2232
|
+
const de = wn(Z), A = se.getBoundingClientRect(), p = A.x - de.x, b = A.y - de.y - (de.height / 2 - A.height / 2), g = A.width / 0.75, w = Math.abs(g - de.width) > 1 ? {
|
|
2233
2233
|
maxWidth: Me(g)
|
|
2234
|
-
} : void 0,
|
|
2234
|
+
} : void 0, B = getComputedStyle(Z), M = getComputedStyle(se), G = parseFloat(B.transitionDuration) * 1e3 || 150, N = parseFloat(M.getPropertyValue("--v-field-label-scale")), Y = M.getPropertyValue("color");
|
|
2235
2235
|
Z.style.visibility = "visible", se.style.visibility = "hidden", _n(Z, {
|
|
2236
|
-
transform: `translate(${
|
|
2236
|
+
transform: `translate(${p}px, ${b}px) scale(${N})`,
|
|
2237
2237
|
color: Y,
|
|
2238
2238
|
...w
|
|
2239
2239
|
}, {
|
|
@@ -2249,10 +2249,10 @@ const Kl = Symbol.for("vuetify:v-slide-group"), ql = O({
|
|
|
2249
2249
|
flush: "post"
|
|
2250
2250
|
});
|
|
2251
2251
|
const U = x(() => ({
|
|
2252
|
-
isActive:
|
|
2253
|
-
isFocused:
|
|
2252
|
+
isActive: f,
|
|
2253
|
+
isFocused: s,
|
|
2254
2254
|
controlRef: L,
|
|
2255
|
-
blur:
|
|
2255
|
+
blur: i,
|
|
2256
2256
|
focus: v
|
|
2257
2257
|
}));
|
|
2258
2258
|
function ce(j) {
|
|
@@ -2268,7 +2268,7 @@ const Kl = Symbol.for("vuetify:v-slide-group"), ql = O({
|
|
|
2268
2268
|
}) : e.label;
|
|
2269
2269
|
return k("div", z({
|
|
2270
2270
|
class: ["v-field", {
|
|
2271
|
-
"v-field--active":
|
|
2271
|
+
"v-field--active": f.value,
|
|
2272
2272
|
"v-field--appended": de,
|
|
2273
2273
|
"v-field--center-affix": e.centerAffix ?? !P.value,
|
|
2274
2274
|
"v-field--disabled": e.disabled,
|
|
@@ -2288,7 +2288,7 @@ const Kl = Symbol.for("vuetify:v-slide-group"), ql = O({
|
|
|
2288
2288
|
onClick: ce
|
|
2289
2289
|
}, n), [k("div", {
|
|
2290
2290
|
class: "v-field__overlay"
|
|
2291
|
-
}, null),
|
|
2291
|
+
}, null), d(Cl, {
|
|
2292
2292
|
name: "v-field",
|
|
2293
2293
|
active: !!e.loading,
|
|
2294
2294
|
color: e.error ? "error" : typeof e.loading == "string" ? e.loading : e.color
|
|
@@ -2297,24 +2297,24 @@ const Kl = Symbol.for("vuetify:v-slide-group"), ql = O({
|
|
|
2297
2297
|
}), Z && k("div", {
|
|
2298
2298
|
key: "prepend",
|
|
2299
2299
|
class: "v-field__prepend-inner"
|
|
2300
|
-
}, [e.prependInnerIcon &&
|
|
2300
|
+
}, [e.prependInnerIcon && d(c, {
|
|
2301
2301
|
key: "prepend-icon",
|
|
2302
2302
|
name: "prependInner",
|
|
2303
2303
|
color: R.value
|
|
2304
2304
|
}, null), l["prepend-inner"]?.(U.value)]), k("div", {
|
|
2305
2305
|
class: "v-field__field",
|
|
2306
2306
|
"data-no-activator": ""
|
|
2307
|
-
}, [["filled", "solo", "solo-inverted", "solo-filled"].includes(e.variant) && S.value &&
|
|
2307
|
+
}, [["filled", "solo", "solo-inverted", "solo-filled"].includes(e.variant) && S.value && d(lt, {
|
|
2308
2308
|
key: "floating-label",
|
|
2309
2309
|
ref: V,
|
|
2310
2310
|
class: ae([te.value]),
|
|
2311
2311
|
floating: !0,
|
|
2312
2312
|
for: _.value,
|
|
2313
|
-
"aria-hidden": !
|
|
2313
|
+
"aria-hidden": !f.value,
|
|
2314
2314
|
style: ye(Q.value)
|
|
2315
2315
|
}, {
|
|
2316
2316
|
default: () => [A()]
|
|
2317
|
-
}),
|
|
2317
|
+
}), h.value && d(lt, {
|
|
2318
2318
|
key: "label",
|
|
2319
2319
|
ref: T,
|
|
2320
2320
|
for: _.value
|
|
@@ -2328,20 +2328,20 @@ const Kl = Symbol.for("vuetify:v-slide-group"), ql = O({
|
|
|
2328
2328
|
"aria-describedby": E.value
|
|
2329
2329
|
},
|
|
2330
2330
|
focus: v,
|
|
2331
|
-
blur:
|
|
2331
|
+
blur: i
|
|
2332
2332
|
}) ?? k("div", {
|
|
2333
2333
|
id: _.value,
|
|
2334
2334
|
class: "v-field__input",
|
|
2335
2335
|
"aria-describedby": E.value
|
|
2336
|
-
}, null)]), se &&
|
|
2336
|
+
}, null)]), se && d(Nl, {
|
|
2337
2337
|
key: "clear"
|
|
2338
2338
|
}, {
|
|
2339
2339
|
default: () => [Fe(k("div", {
|
|
2340
2340
|
class: "v-field__clearable",
|
|
2341
|
-
onMousedown: (
|
|
2342
|
-
|
|
2341
|
+
onMousedown: (p) => {
|
|
2342
|
+
p.preventDefault(), p.stopPropagation();
|
|
2343
2343
|
}
|
|
2344
|
-
}, [
|
|
2344
|
+
}, [d(Se, {
|
|
2345
2345
|
defaults: {
|
|
2346
2346
|
VIcon: {
|
|
2347
2347
|
icon: e.clearIcon
|
|
@@ -2352,21 +2352,21 @@ const Kl = Symbol.for("vuetify:v-slide-group"), ql = O({
|
|
|
2352
2352
|
...U.value,
|
|
2353
2353
|
props: {
|
|
2354
2354
|
onFocus: v,
|
|
2355
|
-
onBlur:
|
|
2355
|
+
onBlur: i,
|
|
2356
2356
|
onClick: e["onClick:clear"],
|
|
2357
2357
|
tabindex: -1
|
|
2358
2358
|
}
|
|
2359
|
-
}) :
|
|
2359
|
+
}) : d(c, {
|
|
2360
2360
|
name: "clear",
|
|
2361
2361
|
onFocus: v,
|
|
2362
|
-
onBlur:
|
|
2362
|
+
onBlur: i,
|
|
2363
2363
|
tabindex: -1
|
|
2364
2364
|
}, null)]
|
|
2365
2365
|
})]), [[it, e.dirty]])]
|
|
2366
2366
|
}), de && k("div", {
|
|
2367
2367
|
key: "append",
|
|
2368
2368
|
class: "v-field__append-inner"
|
|
2369
|
-
}, [l["append-inner"]?.(U.value), e.appendInnerIcon &&
|
|
2369
|
+
}, [l["append-inner"]?.(U.value), e.appendInnerIcon && d(c, {
|
|
2370
2370
|
key: "append-icon",
|
|
2371
2371
|
name: "appendInner",
|
|
2372
2372
|
color: R.value
|
|
@@ -2377,20 +2377,20 @@ const Kl = Symbol.for("vuetify:v-slide-group"), ql = O({
|
|
|
2377
2377
|
class: "v-field__outline__start"
|
|
2378
2378
|
}, null), S.value && k("div", {
|
|
2379
2379
|
class: "v-field__outline__notch"
|
|
2380
|
-
}, [
|
|
2380
|
+
}, [d(lt, {
|
|
2381
2381
|
ref: V,
|
|
2382
2382
|
floating: !0,
|
|
2383
2383
|
for: _.value,
|
|
2384
|
-
"aria-hidden": !
|
|
2384
|
+
"aria-hidden": !f.value
|
|
2385
2385
|
}, {
|
|
2386
2386
|
default: () => [A()]
|
|
2387
2387
|
})]), k("div", {
|
|
2388
2388
|
class: "v-field__outline__end"
|
|
2389
|
-
}, null)]), P.value && S.value &&
|
|
2389
|
+
}, null)]), P.value && S.value && d(lt, {
|
|
2390
2390
|
ref: V,
|
|
2391
2391
|
floating: !0,
|
|
2392
2392
|
for: _.value,
|
|
2393
|
-
"aria-hidden": !
|
|
2393
|
+
"aria-hidden": !f.value
|
|
2394
2394
|
}, {
|
|
2395
2395
|
default: () => [A()]
|
|
2396
2396
|
})])]);
|
|
@@ -2456,24 +2456,24 @@ const Ba = ["color", "file", "time", "date", "datetime-local", "week", "month"],
|
|
|
2456
2456
|
emit: t,
|
|
2457
2457
|
slots: l
|
|
2458
2458
|
} = a;
|
|
2459
|
-
const o =
|
|
2459
|
+
const o = pe(e, "modelValue"), {
|
|
2460
2460
|
isFocused: r,
|
|
2461
2461
|
focus: u,
|
|
2462
|
-
blur:
|
|
2462
|
+
blur: s
|
|
2463
2463
|
} = jt(e), {
|
|
2464
2464
|
onIntersect: v
|
|
2465
|
-
} = Da(e),
|
|
2465
|
+
} = Da(e), i = x(() => typeof e.counterValue == "function" ? e.counterValue(o.value) : typeof e.counterValue == "number" ? e.counterValue : (o.value ?? "").toString().length), c = x(() => {
|
|
2466
2466
|
if (n.maxlength) return n.maxlength;
|
|
2467
2467
|
if (!(!e.counter || typeof e.counter != "number" && typeof e.counter != "string"))
|
|
2468
2468
|
return e.counter;
|
|
2469
|
-
}), m = x(() => ["plain", "underlined"].includes(e.variant)), y = $(),
|
|
2469
|
+
}), m = x(() => ["plain", "underlined"].includes(e.variant)), y = $(), f = $(), h = $(), S = Fa(e), C = x(() => Ba.includes(e.type) || e.persistentPlaceholder || r.value || e.active);
|
|
2470
2470
|
function _() {
|
|
2471
2471
|
S.isSuppressing.value && S.update(), r.value || u(), me(() => {
|
|
2472
|
-
|
|
2472
|
+
h.value !== document.activeElement && h.value?.focus();
|
|
2473
2473
|
});
|
|
2474
2474
|
}
|
|
2475
2475
|
function E(P) {
|
|
2476
|
-
t("mousedown:control", P), P.target !==
|
|
2476
|
+
t("mousedown:control", P), P.target !== h.value && (_(), P.preventDefault());
|
|
2477
2477
|
}
|
|
2478
2478
|
function T(P) {
|
|
2479
2479
|
t("click:control", P);
|
|
@@ -2497,7 +2497,7 @@ const Ba = ["color", "file", "time", "date", "datetime-local", "week", "month"],
|
|
|
2497
2497
|
modelValue: J,
|
|
2498
2498
|
...te
|
|
2499
2499
|
} = ot.filterProps(e), Q = ul.filterProps(e);
|
|
2500
|
-
return
|
|
2500
|
+
return d(ot, z({
|
|
2501
2501
|
ref: y,
|
|
2502
2502
|
modelValue: o.value,
|
|
2503
2503
|
"onUpdate:modelValue": (U) => o.value = U,
|
|
@@ -2520,13 +2520,13 @@ const Ba = ["color", "file", "time", "date", "datetime-local", "week", "month"],
|
|
|
2520
2520
|
isReadonly: se,
|
|
2521
2521
|
isValid: de,
|
|
2522
2522
|
hasDetails: A,
|
|
2523
|
-
reset:
|
|
2523
|
+
reset: p
|
|
2524
2524
|
} = U;
|
|
2525
|
-
return
|
|
2526
|
-
ref:
|
|
2525
|
+
return d(ul, z({
|
|
2526
|
+
ref: f,
|
|
2527
2527
|
onMousedown: E,
|
|
2528
2528
|
onClick: T,
|
|
2529
|
-
"onClick:clear": (b) => V(b,
|
|
2529
|
+
"onClick:clear": (b) => V(b, p),
|
|
2530
2530
|
role: e.role
|
|
2531
2531
|
}, Ze(Q, ["onClick:clear"]), {
|
|
2532
2532
|
id: ce.value,
|
|
@@ -2544,10 +2544,10 @@ const Ba = ["color", "file", "time", "date", "datetime-local", "week", "month"],
|
|
|
2544
2544
|
class: g,
|
|
2545
2545
|
...w
|
|
2546
2546
|
},
|
|
2547
|
-
controlRef:
|
|
2547
|
+
controlRef: B
|
|
2548
2548
|
} = b;
|
|
2549
2549
|
const M = Fe(k("input", z({
|
|
2550
|
-
ref: (G) =>
|
|
2550
|
+
ref: (G) => h.value = B.value = G,
|
|
2551
2551
|
value: o.value,
|
|
2552
2552
|
onInput: L,
|
|
2553
2553
|
autofocus: e.autofocus,
|
|
@@ -2560,7 +2560,7 @@ const Ba = ["color", "file", "time", "date", "datetime-local", "week", "month"],
|
|
|
2560
2560
|
role: e.role,
|
|
2561
2561
|
type: e.type,
|
|
2562
2562
|
onFocus: u,
|
|
2563
|
-
onBlur:
|
|
2563
|
+
onBlur: s
|
|
2564
2564
|
}, w, W), null), [[ll, {
|
|
2565
2565
|
handler: v
|
|
2566
2566
|
}, null, {
|
|
@@ -2583,14 +2583,14 @@ const Ba = ["color", "file", "time", "date", "datetime-local", "week", "month"],
|
|
|
2583
2583
|
}
|
|
2584
2584
|
});
|
|
2585
2585
|
},
|
|
2586
|
-
details: I ? (U) => k(ie, null, [l.details?.(U), P && k(ie, null, [k("span", null, null),
|
|
2586
|
+
details: I ? (U) => k(ie, null, [l.details?.(U), P && k(ie, null, [k("span", null, null), d(_a, {
|
|
2587
2587
|
active: e.persistentCounter || r.value,
|
|
2588
|
-
value:
|
|
2588
|
+
value: i.value,
|
|
2589
2589
|
max: c.value,
|
|
2590
2590
|
disabled: e.disabled
|
|
2591
2591
|
}, l.counter)])]) : void 0
|
|
2592
2592
|
});
|
|
2593
|
-
}), et({}, y,
|
|
2593
|
+
}), et({}, y, f, h);
|
|
2594
2594
|
}
|
|
2595
2595
|
}), Ea = O({
|
|
2596
2596
|
renderless: Boolean,
|
|
@@ -2644,17 +2644,17 @@ function La(e, a) {
|
|
|
2644
2644
|
// the chance of ending up with empty space at the bottom.
|
|
2645
2645
|
// The default value is set here to avoid poisoning getSize()
|
|
2646
2646
|
(parseInt(e.height) || n.height.value) / (t.value || 16)
|
|
2647
|
-
) || 1), r = ne(0), u = ne(0),
|
|
2648
|
-
let
|
|
2647
|
+
) || 1), r = ne(0), u = ne(0), s = $(), v = $();
|
|
2648
|
+
let i = 0;
|
|
2649
2649
|
const {
|
|
2650
2650
|
resizeRef: c,
|
|
2651
2651
|
contentRect: m
|
|
2652
2652
|
} = at();
|
|
2653
2653
|
kt(() => {
|
|
2654
|
-
c.value =
|
|
2654
|
+
c.value = s.value;
|
|
2655
2655
|
});
|
|
2656
|
-
const y = x(() =>
|
|
2657
|
-
let
|
|
2656
|
+
const y = x(() => s.value === document.documentElement ? n.height.value : m.value?.height || parseInt(e.height) || 0), f = x(() => !!(s.value && v.value && y.value && t.value));
|
|
2657
|
+
let h = Array.from({
|
|
2658
2658
|
length: a.value.length
|
|
2659
2659
|
}), S = Array.from({
|
|
2660
2660
|
length: a.value.length
|
|
@@ -2662,17 +2662,17 @@ function La(e, a) {
|
|
|
2662
2662
|
const C = ne(0);
|
|
2663
2663
|
let _ = -1;
|
|
2664
2664
|
function E(A) {
|
|
2665
|
-
return
|
|
2665
|
+
return h[A] || t.value;
|
|
2666
2666
|
}
|
|
2667
2667
|
const T = An(() => {
|
|
2668
2668
|
const A = performance.now();
|
|
2669
2669
|
S[0] = 0;
|
|
2670
|
-
const
|
|
2671
|
-
for (let b = 1; b <=
|
|
2670
|
+
const p = a.value.length;
|
|
2671
|
+
for (let b = 1; b <= p; b++)
|
|
2672
2672
|
S[b] = (S[b - 1] || 0) + E(b - 1);
|
|
2673
2673
|
C.value = Math.max(C.value, performance.now() - A);
|
|
2674
|
-
}, C), V = ue(
|
|
2675
|
-
A && (V(),
|
|
2674
|
+
}, C), V = ue(f, (A) => {
|
|
2675
|
+
A && (V(), i = v.value.offsetTop, T.immediate(), j(), ~_ && me(() => {
|
|
2676
2676
|
Ge && window.requestAnimationFrame(() => {
|
|
2677
2677
|
se(_), _ = -1;
|
|
2678
2678
|
});
|
|
@@ -2681,56 +2681,56 @@ function La(e, a) {
|
|
|
2681
2681
|
st(() => {
|
|
2682
2682
|
T.clear();
|
|
2683
2683
|
});
|
|
2684
|
-
function L(A,
|
|
2685
|
-
const b =
|
|
2686
|
-
t.value = g ? Math.min(t.value,
|
|
2684
|
+
function L(A, p) {
|
|
2685
|
+
const b = h[A], g = t.value;
|
|
2686
|
+
t.value = g ? Math.min(t.value, p) : p, (b !== p || g !== t.value) && (h[A] = p, T());
|
|
2687
2687
|
}
|
|
2688
2688
|
function P(A) {
|
|
2689
2689
|
A = Te(A, 0, a.value.length);
|
|
2690
|
-
const
|
|
2691
|
-
return w + (
|
|
2690
|
+
const p = Math.floor(A), b = A % 1, g = p + 1, w = S[p] || 0, B = S[g] || w;
|
|
2691
|
+
return w + (B - w) * b;
|
|
2692
2692
|
}
|
|
2693
2693
|
function I(A) {
|
|
2694
2694
|
return Ma(S, A);
|
|
2695
2695
|
}
|
|
2696
2696
|
let R = 0, W = 0, J = 0;
|
|
2697
|
-
ue(y, (A,
|
|
2698
|
-
|
|
2697
|
+
ue(y, (A, p) => {
|
|
2698
|
+
p && (j(), A < p && requestAnimationFrame(() => {
|
|
2699
2699
|
W = 0, j();
|
|
2700
2700
|
}));
|
|
2701
2701
|
});
|
|
2702
2702
|
let te = -1;
|
|
2703
2703
|
function Q() {
|
|
2704
|
-
if (!
|
|
2705
|
-
const A =
|
|
2706
|
-
|
|
2704
|
+
if (!s.value || !v.value) return;
|
|
2705
|
+
const A = s.value.scrollTop, p = performance.now();
|
|
2706
|
+
p - J > 500 ? (W = Math.sign(A - R), i = v.value.offsetTop) : W = A - R, R = A, J = p, window.clearTimeout(te), te = window.setTimeout(U, 500), j();
|
|
2707
2707
|
}
|
|
2708
2708
|
function U() {
|
|
2709
|
-
!
|
|
2709
|
+
!s.value || !v.value || (W = 0, J = 0, window.clearTimeout(te), j());
|
|
2710
2710
|
}
|
|
2711
2711
|
let ce = -1;
|
|
2712
2712
|
function j() {
|
|
2713
2713
|
cancelAnimationFrame(ce), ce = requestAnimationFrame(Z);
|
|
2714
2714
|
}
|
|
2715
2715
|
function Z() {
|
|
2716
|
-
if (!
|
|
2717
|
-
const A = R -
|
|
2716
|
+
if (!s.value || !y.value || !t.value) return;
|
|
2717
|
+
const A = R - i, p = Math.sign(W), b = Math.max(0, A - pt), g = Te(I(b), 0, a.value.length), w = A + y.value + pt, B = Te(I(w) + 1, g + 1, a.value.length);
|
|
2718
2718
|
if (
|
|
2719
2719
|
// Only update the side we're scrolling towards,
|
|
2720
2720
|
// the other side will be updated incidentally
|
|
2721
|
-
(
|
|
2721
|
+
(p !== $a || g < l.value) && (p !== Oa || B > o.value)
|
|
2722
2722
|
) {
|
|
2723
|
-
const M = P(l.value) - P(g), G = P(
|
|
2724
|
-
Math.max(M, G) > pt ? (l.value = g, o.value =
|
|
2723
|
+
const M = P(l.value) - P(g), G = P(B) - P(o.value);
|
|
2724
|
+
Math.max(M, G) > pt ? (l.value = g, o.value = B) : (g <= 0 && (l.value = g), B >= a.value.length && (o.value = B));
|
|
2725
2725
|
}
|
|
2726
2726
|
r.value = P(l.value), u.value = P(a.value.length) - P(o.value);
|
|
2727
2727
|
}
|
|
2728
2728
|
function se(A) {
|
|
2729
|
-
const
|
|
2730
|
-
!
|
|
2729
|
+
const p = P(A);
|
|
2730
|
+
!s.value || A && !p ? _ = A : s.value.scrollTop = p;
|
|
2731
2731
|
}
|
|
2732
|
-
const de = x(() => a.value.slice(l.value, o.value).map((A,
|
|
2733
|
-
const b =
|
|
2732
|
+
const de = x(() => a.value.slice(l.value, o.value).map((A, p) => {
|
|
2733
|
+
const b = p + l.value;
|
|
2734
2734
|
return {
|
|
2735
2735
|
raw: A,
|
|
2736
2736
|
index: b,
|
|
@@ -2738,7 +2738,7 @@ function La(e, a) {
|
|
|
2738
2738
|
};
|
|
2739
2739
|
}));
|
|
2740
2740
|
return ue(a, () => {
|
|
2741
|
-
|
|
2741
|
+
h = Array.from({
|
|
2742
2742
|
length: a.value.length
|
|
2743
2743
|
}), S = Array.from({
|
|
2744
2744
|
length: a.value.length
|
|
@@ -2747,7 +2747,7 @@ function La(e, a) {
|
|
|
2747
2747
|
deep: 1
|
|
2748
2748
|
}), {
|
|
2749
2749
|
calculateVisibleItems: j,
|
|
2750
|
-
containerRef:
|
|
2750
|
+
containerRef: s,
|
|
2751
2751
|
markerRef: v,
|
|
2752
2752
|
computedItems: de,
|
|
2753
2753
|
paddingTop: r,
|
|
@@ -2792,31 +2792,31 @@ const Ha = O({
|
|
|
2792
2792
|
calculateVisibleItems: o,
|
|
2793
2793
|
containerRef: r,
|
|
2794
2794
|
markerRef: u,
|
|
2795
|
-
handleScroll:
|
|
2795
|
+
handleScroll: s,
|
|
2796
2796
|
handleScrollend: v,
|
|
2797
|
-
handleItemResize:
|
|
2797
|
+
handleItemResize: i,
|
|
2798
2798
|
scrollToIndex: c,
|
|
2799
2799
|
paddingTop: m,
|
|
2800
2800
|
paddingBottom: y,
|
|
2801
|
-
computedItems:
|
|
2801
|
+
computedItems: f
|
|
2802
2802
|
} = La(e, F(() => e.items));
|
|
2803
2803
|
return Vt(() => e.renderless, () => {
|
|
2804
|
-
function
|
|
2804
|
+
function h() {
|
|
2805
2805
|
const C = (arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1) ? "addEventListener" : "removeEventListener";
|
|
2806
|
-
r.value === document.documentElement ? (document[C]("scroll",
|
|
2806
|
+
r.value === document.documentElement ? (document[C]("scroll", s, {
|
|
2807
2807
|
passive: !0
|
|
2808
|
-
}), document[C]("scrollend", v)) : (r.value?.[C]("scroll",
|
|
2808
|
+
}), document[C]("scrollend", v)) : (r.value?.[C]("scroll", s, {
|
|
2809
2809
|
passive: !0
|
|
2810
2810
|
}), r.value?.[C]("scrollend", v));
|
|
2811
2811
|
}
|
|
2812
2812
|
Ne(() => {
|
|
2813
|
-
r.value = Fn(t.vnode.el, !0),
|
|
2814
|
-
}), st(
|
|
2813
|
+
r.value = Fn(t.vnode.el, !0), h(!0);
|
|
2814
|
+
}), st(h);
|
|
2815
2815
|
}), ee(() => {
|
|
2816
|
-
const
|
|
2816
|
+
const h = f.value.map((S) => d(Na, {
|
|
2817
2817
|
key: S.key,
|
|
2818
2818
|
renderless: e.renderless,
|
|
2819
|
-
"onUpdate:height": (C) =>
|
|
2819
|
+
"onUpdate:height": (C) => i(S.index, C)
|
|
2820
2820
|
}, {
|
|
2821
2821
|
default: (C) => n.default?.({
|
|
2822
2822
|
item: S.raw,
|
|
@@ -2830,7 +2830,7 @@ const Ha = O({
|
|
|
2830
2830
|
style: {
|
|
2831
2831
|
paddingTop: Me(m.value)
|
|
2832
2832
|
}
|
|
2833
|
-
}, null),
|
|
2833
|
+
}, null), h, k("div", {
|
|
2834
2834
|
class: "v-virtual-scroll__spacer",
|
|
2835
2835
|
style: {
|
|
2836
2836
|
paddingBottom: Me(y.value)
|
|
@@ -2838,7 +2838,7 @@ const Ha = O({
|
|
|
2838
2838
|
}, null)]) : k("div", {
|
|
2839
2839
|
ref: r,
|
|
2840
2840
|
class: ae(["v-virtual-scroll", e.class]),
|
|
2841
|
-
onScrollPassive:
|
|
2841
|
+
onScrollPassive: s,
|
|
2842
2842
|
onScrollend: v,
|
|
2843
2843
|
style: ye([l.value, e.style])
|
|
2844
2844
|
}, [k("div", {
|
|
@@ -2848,7 +2848,7 @@ const Ha = O({
|
|
|
2848
2848
|
paddingTop: Me(m.value),
|
|
2849
2849
|
paddingBottom: Me(y.value)
|
|
2850
2850
|
}
|
|
2851
|
-
}, [
|
|
2851
|
+
}, [h])]);
|
|
2852
2852
|
}), {
|
|
2853
2853
|
calculateVisibleItems: o,
|
|
2854
2854
|
scrollToIndex: c
|
|
@@ -2868,32 +2868,32 @@ function Ua(e, a) {
|
|
|
2868
2868
|
async function o() {
|
|
2869
2869
|
await new Promise((u) => requestAnimationFrame(u)), await new Promise((u) => requestAnimationFrame(u)), await new Promise((u) => requestAnimationFrame(u)), await new Promise((u) => {
|
|
2870
2870
|
if (n.value) {
|
|
2871
|
-
const
|
|
2872
|
-
|
|
2871
|
+
const s = ue(n, () => {
|
|
2872
|
+
s(), u();
|
|
2873
2873
|
});
|
|
2874
2874
|
} else u();
|
|
2875
2875
|
});
|
|
2876
2876
|
}
|
|
2877
2877
|
async function r(u) {
|
|
2878
2878
|
if (u.key === "Tab" && a.value?.focus(), !["PageDown", "PageUp", "Home", "End"].includes(u.key)) return;
|
|
2879
|
-
const
|
|
2880
|
-
if (!
|
|
2881
|
-
(u.key === "Home" || u.key === "End") &&
|
|
2882
|
-
top: u.key === "Home" ? 0 :
|
|
2879
|
+
const s = e.value?.$el;
|
|
2880
|
+
if (!s) return;
|
|
2881
|
+
(u.key === "Home" || u.key === "End") && s.scrollTo({
|
|
2882
|
+
top: u.key === "Home" ? 0 : s.scrollHeight,
|
|
2883
2883
|
behavior: "smooth"
|
|
2884
2884
|
}), await o();
|
|
2885
|
-
const v =
|
|
2885
|
+
const v = s.querySelectorAll(":scope > :not(.v-virtual-scroll__spacer)");
|
|
2886
2886
|
if (u.key === "PageDown" || u.key === "Home") {
|
|
2887
|
-
const
|
|
2887
|
+
const i = s.getBoundingClientRect().top;
|
|
2888
2888
|
for (const c of v)
|
|
2889
|
-
if (c.getBoundingClientRect().top >=
|
|
2889
|
+
if (c.getBoundingClientRect().top >= i) {
|
|
2890
2890
|
c.focus();
|
|
2891
2891
|
break;
|
|
2892
2892
|
}
|
|
2893
2893
|
} else {
|
|
2894
|
-
const
|
|
2894
|
+
const i = s.getBoundingClientRect().bottom;
|
|
2895
2895
|
for (const c of [...v].reverse())
|
|
2896
|
-
if (c.getBoundingClientRect().bottom <=
|
|
2896
|
+
if (c.getBoundingClientRect().bottom <= i) {
|
|
2897
2897
|
c.focus();
|
|
2898
2898
|
break;
|
|
2899
2899
|
}
|
|
@@ -2981,14 +2981,14 @@ const Ka = O({
|
|
|
2981
2981
|
t
|
|
2982
2982
|
} = Le(), l = $(), o = $(), r = $(), {
|
|
2983
2983
|
items: u,
|
|
2984
|
-
transformIn:
|
|
2984
|
+
transformIn: s,
|
|
2985
2985
|
transformOut: v
|
|
2986
|
-
} = Dn(e),
|
|
2986
|
+
} = Dn(e), i = pe(e, "modelValue", [], (g) => s(g === null ? [null] : Ae(g)), (g) => {
|
|
2987
2987
|
const w = v(g);
|
|
2988
2988
|
return e.multiple ? w : w[0] ?? null;
|
|
2989
|
-
}), c = x(() => typeof e.counterValue == "function" ? e.counterValue(
|
|
2990
|
-
let
|
|
2991
|
-
const _ = x(() => e.hideSelected ? u.value.filter((g) => !
|
|
2989
|
+
}), c = x(() => typeof e.counterValue == "function" ? e.counterValue(i.value) : typeof e.counterValue == "number" ? e.counterValue : i.value.length), m = Gt(e), y = x(() => i.value.map((g) => g.value)), f = ne(!1);
|
|
2990
|
+
let h = "", S = -1, C;
|
|
2991
|
+
const _ = x(() => e.hideSelected ? u.value.filter((g) => !i.value.some((w) => (e.valueComparator || ze)(w, g))) : u.value), E = x(() => e.hideNoData && !_.value.length || m.isReadonly.value || m.isDisabled.value), T = pe(e, "menu"), V = x({
|
|
2992
2992
|
get: () => T.value,
|
|
2993
2993
|
set: (g) => {
|
|
2994
2994
|
T.value && !g && o.value?.ΨopenChildren.size || g && E.value || (T.value = g);
|
|
@@ -3020,37 +3020,37 @@ const Ka = O({
|
|
|
3020
3020
|
["Enter", " ", "ArrowDown", "ArrowUp", "Home", "End"].includes(g.key) && g.preventDefault(), ["Enter", "ArrowDown", " "].includes(g.key) && (V.value = !0), ["Escape", "Tab"].includes(g.key) && (V.value = !1), g.key === "Home" ? J.value?.focus("first") : g.key === "End" && J.value?.focus("last");
|
|
3021
3021
|
const w = 1e3;
|
|
3022
3022
|
if (!nl(g)) return;
|
|
3023
|
-
const
|
|
3024
|
-
|
|
3023
|
+
const B = performance.now();
|
|
3024
|
+
B - C > w && (h = "", S = -1), h += g.key.toLowerCase(), C = B;
|
|
3025
3025
|
const M = _.value;
|
|
3026
3026
|
function G() {
|
|
3027
3027
|
let H = N();
|
|
3028
|
-
return H ||
|
|
3028
|
+
return H || h.at(-1) === h.at(-2) && (h = h.slice(0, -1), H = N(), H) || (S = -1, H = N(), H) ? H : (h = g.key.toLowerCase(), N());
|
|
3029
3029
|
}
|
|
3030
3030
|
function N() {
|
|
3031
3031
|
for (let H = S + 1; H < M.length; H++) {
|
|
3032
3032
|
const be = M[H];
|
|
3033
|
-
if (be.title.toLowerCase().startsWith(
|
|
3033
|
+
if (be.title.toLowerCase().startsWith(h))
|
|
3034
3034
|
return [be, H];
|
|
3035
3035
|
}
|
|
3036
3036
|
}
|
|
3037
3037
|
const Y = G();
|
|
3038
3038
|
if (!Y) return;
|
|
3039
3039
|
const [ve, Ve] = Y;
|
|
3040
|
-
S = Ve, J.value?.focus(Ve), e.multiple || (
|
|
3040
|
+
S = Ve, J.value?.focus(Ve), e.multiple || (i.value = [ve]);
|
|
3041
3041
|
}
|
|
3042
3042
|
function Z(g) {
|
|
3043
3043
|
let w = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;
|
|
3044
3044
|
if (!g.props.disabled)
|
|
3045
3045
|
if (e.multiple) {
|
|
3046
|
-
const
|
|
3047
|
-
if (~
|
|
3048
|
-
const G = M ? [...
|
|
3049
|
-
G.splice(
|
|
3050
|
-
} else M && (
|
|
3046
|
+
const B = i.value.findIndex((G) => (e.valueComparator || ze)(G.value, g.value)), M = w ?? !~B;
|
|
3047
|
+
if (~B) {
|
|
3048
|
+
const G = M ? [...i.value, g] : [...i.value];
|
|
3049
|
+
G.splice(B, 1), i.value = G;
|
|
3050
|
+
} else M && (i.value = [...i.value, g]);
|
|
3051
3051
|
} else {
|
|
3052
|
-
const
|
|
3053
|
-
|
|
3052
|
+
const B = w !== !1;
|
|
3053
|
+
i.value = B ? [g] : [], me(() => {
|
|
3054
3054
|
V.value = !1;
|
|
3055
3055
|
});
|
|
3056
3056
|
}
|
|
@@ -3062,44 +3062,44 @@ const Ka = O({
|
|
|
3062
3062
|
e.eager && r.value?.calculateVisibleItems();
|
|
3063
3063
|
}
|
|
3064
3064
|
function A() {
|
|
3065
|
-
|
|
3065
|
+
f.value && l.value?.focus();
|
|
3066
3066
|
}
|
|
3067
|
-
function
|
|
3068
|
-
|
|
3067
|
+
function p(g) {
|
|
3068
|
+
f.value = !0;
|
|
3069
3069
|
}
|
|
3070
3070
|
function b(g) {
|
|
3071
|
-
if (g == null)
|
|
3071
|
+
if (g == null) i.value = [];
|
|
3072
3072
|
else if (Ct(l.value, ":autofill") || Ct(l.value, ":-webkit-autofill")) {
|
|
3073
|
-
const w = u.value.find((
|
|
3073
|
+
const w = u.value.find((B) => B.title === g);
|
|
3074
3074
|
w && Z(w);
|
|
3075
3075
|
} else l.value && (l.value.value = "");
|
|
3076
3076
|
}
|
|
3077
3077
|
return ue(V, () => {
|
|
3078
|
-
if (!e.hideSelected && V.value &&
|
|
3079
|
-
const g = _.value.findIndex((w) =>
|
|
3078
|
+
if (!e.hideSelected && V.value && i.value.length) {
|
|
3079
|
+
const g = _.value.findIndex((w) => i.value.some((B) => (e.valueComparator || ze)(B.value, w.value)));
|
|
3080
3080
|
Ge && !e.noAutoScroll && window.requestAnimationFrame(() => {
|
|
3081
3081
|
g >= 0 && r.value?.scrollToIndex(g);
|
|
3082
3082
|
});
|
|
3083
3083
|
}
|
|
3084
3084
|
}), ue(u, (g, w) => {
|
|
3085
|
-
V.value ||
|
|
3085
|
+
V.value || f.value && e.hideNoData && !w.length && g.length && (V.value = !0);
|
|
3086
3086
|
}), ee(() => {
|
|
3087
|
-
const g = !!(e.chips || n.chip), w = !!(!e.hideNoData || _.value.length || n["prepend-item"] || n["append-item"] || n["no-data"]),
|
|
3088
|
-
return
|
|
3087
|
+
const g = !!(e.chips || n.chip), w = !!(!e.hideNoData || _.value.length || n["prepend-item"] || n["append-item"] || n["no-data"]), B = i.value.length > 0, M = qe.filterProps(e), G = B || !f.value && e.label && !e.persistentPlaceholder ? void 0 : e.placeholder;
|
|
3088
|
+
return d(qe, z({
|
|
3089
3089
|
ref: l
|
|
3090
3090
|
}, M, {
|
|
3091
|
-
modelValue:
|
|
3091
|
+
modelValue: i.value.map((N) => N.props.value).join(", "),
|
|
3092
3092
|
"onUpdate:modelValue": b,
|
|
3093
|
-
focused:
|
|
3094
|
-
"onUpdate:focused": (N) =>
|
|
3095
|
-
validationValue:
|
|
3093
|
+
focused: f.value,
|
|
3094
|
+
"onUpdate:focused": (N) => f.value = N,
|
|
3095
|
+
validationValue: i.externalValue,
|
|
3096
3096
|
counterValue: c.value,
|
|
3097
|
-
dirty:
|
|
3097
|
+
dirty: B,
|
|
3098
3098
|
class: ["v-select", {
|
|
3099
3099
|
"v-select--active-menu": V.value,
|
|
3100
3100
|
"v-select--chips": !!e.chips,
|
|
3101
3101
|
[`v-select--${e.multiple ? "multiple" : "single"}`]: !0,
|
|
3102
|
-
"v-select--selected":
|
|
3102
|
+
"v-select--selected": i.value.length,
|
|
3103
3103
|
"v-select--selection-slot": !!n.selection
|
|
3104
3104
|
}, e.class],
|
|
3105
3105
|
style: e.style,
|
|
@@ -3115,7 +3115,7 @@ const Ka = O({
|
|
|
3115
3115
|
title: R.value
|
|
3116
3116
|
}), {
|
|
3117
3117
|
...n,
|
|
3118
|
-
default: () => k(ie, null, [
|
|
3118
|
+
default: () => k(ie, null, [d(Bn, z({
|
|
3119
3119
|
id: L.value,
|
|
3120
3120
|
ref: o,
|
|
3121
3121
|
modelValue: V.value,
|
|
@@ -3131,23 +3131,23 @@ const Ka = O({
|
|
|
3131
3131
|
onAfterEnter: de,
|
|
3132
3132
|
onAfterLeave: A
|
|
3133
3133
|
}, W.value), {
|
|
3134
|
-
default: () => [w &&
|
|
3134
|
+
default: () => [w && d(Ht, z({
|
|
3135
3135
|
ref: J,
|
|
3136
3136
|
selected: y.value,
|
|
3137
3137
|
selectStrategy: e.multiple ? "independent" : "single-independent",
|
|
3138
3138
|
onMousedown: (N) => N.preventDefault(),
|
|
3139
3139
|
onKeydown: ce,
|
|
3140
|
-
onFocusin:
|
|
3140
|
+
onFocusin: p,
|
|
3141
3141
|
tabindex: "-1",
|
|
3142
3142
|
selectable: !0,
|
|
3143
3143
|
"aria-live": "polite",
|
|
3144
3144
|
"aria-label": `${e.label}-list`,
|
|
3145
3145
|
color: e.itemColor ?? e.color
|
|
3146
3146
|
}, te, e.listProps), {
|
|
3147
|
-
default: () => [n["prepend-item"]?.(), !_.value.length && !e.hideNoData && (n["no-data"]?.() ??
|
|
3147
|
+
default: () => [n["prepend-item"]?.(), !_.value.length && !e.hideNoData && (n["no-data"]?.() ?? d(nt, {
|
|
3148
3148
|
key: "no-data",
|
|
3149
3149
|
title: t(e.noDataText)
|
|
3150
|
-
}, null)),
|
|
3150
|
+
}, null)), d(za, {
|
|
3151
3151
|
ref: r,
|
|
3152
3152
|
renderless: !0,
|
|
3153
3153
|
items: _.value,
|
|
@@ -3167,33 +3167,33 @@ const Ka = O({
|
|
|
3167
3167
|
return Y.type === "divider" ? n.divider?.({
|
|
3168
3168
|
props: Y.raw,
|
|
3169
3169
|
index: ve
|
|
3170
|
-
}) ??
|
|
3170
|
+
}) ?? d(Ie, z(Y.props, {
|
|
3171
3171
|
key: `divider-${ve}`
|
|
3172
3172
|
}), null) : Y.type === "subheader" ? n.subheader?.({
|
|
3173
3173
|
props: Y.raw,
|
|
3174
3174
|
index: ve
|
|
3175
|
-
}) ??
|
|
3175
|
+
}) ?? d(Nn, z(Y.props, {
|
|
3176
3176
|
key: `subheader-${ve}`
|
|
3177
3177
|
}), null) : n.item?.({
|
|
3178
3178
|
item: Y,
|
|
3179
3179
|
index: ve,
|
|
3180
3180
|
props: be
|
|
3181
|
-
}) ??
|
|
3181
|
+
}) ?? d(nt, z(be, {
|
|
3182
3182
|
role: "option"
|
|
3183
3183
|
}), {
|
|
3184
3184
|
prepend: (le) => {
|
|
3185
3185
|
let {
|
|
3186
3186
|
isSelected: rn
|
|
3187
3187
|
} = le;
|
|
3188
|
-
return k(ie, null, [e.multiple && !e.hideSelected ?
|
|
3188
|
+
return k(ie, null, [e.multiple && !e.hideSelected ? d(wt, {
|
|
3189
3189
|
key: Y.value,
|
|
3190
3190
|
modelValue: rn,
|
|
3191
3191
|
ripple: !1,
|
|
3192
3192
|
tabindex: "-1",
|
|
3193
3193
|
onClick: (cn) => cn.preventDefault()
|
|
3194
|
-
}, null) : void 0, H.prependAvatar &&
|
|
3194
|
+
}, null) : void 0, H.prependAvatar && d(je, {
|
|
3195
3195
|
image: H.prependAvatar
|
|
3196
|
-
}, null), H.prependIcon &&
|
|
3196
|
+
}, null), H.prependIcon && d(ge, {
|
|
3197
3197
|
icon: H.prependIcon
|
|
3198
3198
|
}, null)]);
|
|
3199
3199
|
}
|
|
@@ -3201,7 +3201,7 @@ const Ka = O({
|
|
|
3201
3201
|
}
|
|
3202
3202
|
}), n["append-item"]?.()]
|
|
3203
3203
|
})]
|
|
3204
|
-
}),
|
|
3204
|
+
}), i.value.map((N, Y) => {
|
|
3205
3205
|
function ve(le) {
|
|
3206
3206
|
le.stopPropagation(), le.preventDefault(), Z(N, !1);
|
|
3207
3207
|
}
|
|
@@ -3227,7 +3227,7 @@ const Ka = O({
|
|
|
3227
3227
|
return k("div", {
|
|
3228
3228
|
key: N.value,
|
|
3229
3229
|
class: "v-select__selection"
|
|
3230
|
-
}, [g ? n.chip ?
|
|
3230
|
+
}, [g ? n.chip ? d(Se, {
|
|
3231
3231
|
key: "chip-defaults",
|
|
3232
3232
|
defaults: {
|
|
3233
3233
|
VChip: {
|
|
@@ -3238,7 +3238,7 @@ const Ka = O({
|
|
|
3238
3238
|
}
|
|
3239
3239
|
}, {
|
|
3240
3240
|
default: () => [be]
|
|
3241
|
-
}) :
|
|
3241
|
+
}) : d(Jl, z({
|
|
3242
3242
|
key: "chip",
|
|
3243
3243
|
closable: e.closableChips,
|
|
3244
3244
|
size: "small",
|
|
@@ -3246,14 +3246,14 @@ const Ka = O({
|
|
|
3246
3246
|
disabled: N.props.disabled
|
|
3247
3247
|
}, Ve), null) : be ?? k("span", {
|
|
3248
3248
|
class: "v-select__selection-text"
|
|
3249
|
-
}, [N.title, e.multiple && Y <
|
|
3249
|
+
}, [N.title, e.multiple && Y < i.value.length - 1 && k("span", {
|
|
3250
3250
|
class: "v-select__selection-comma"
|
|
3251
3251
|
}, [ml(",")])])]);
|
|
3252
3252
|
})]),
|
|
3253
3253
|
"append-inner": function() {
|
|
3254
3254
|
for (var N = arguments.length, Y = new Array(N), ve = 0; ve < N; ve++)
|
|
3255
3255
|
Y[ve] = arguments[ve];
|
|
3256
|
-
return k(ie, null, [n["append-inner"]?.(...Y), e.menuIcon ?
|
|
3256
|
+
return k(ie, null, [n["append-inner"]?.(...Y), e.menuIcon ? d(ge, {
|
|
3257
3257
|
class: "v-select__menu-icon",
|
|
3258
3258
|
color: l.value?.fieldIconColor,
|
|
3259
3259
|
icon: e.menuIcon
|
|
@@ -3261,7 +3261,7 @@ const Ka = O({
|
|
|
3261
3261
|
}
|
|
3262
3262
|
});
|
|
3263
3263
|
}), et({
|
|
3264
|
-
isFocused:
|
|
3264
|
+
isFocused: f,
|
|
3265
3265
|
menu: V,
|
|
3266
3266
|
select: Z
|
|
3267
3267
|
}, l);
|
|
@@ -3313,37 +3313,37 @@ const Ka = O({
|
|
|
3313
3313
|
textColorClasses: r,
|
|
3314
3314
|
textColorStyles: u
|
|
3315
3315
|
} = ct(() => e.textColor), {
|
|
3316
|
-
themeClasses:
|
|
3316
|
+
themeClasses: s
|
|
3317
3317
|
} = Rn(), {
|
|
3318
3318
|
locationStyles: v
|
|
3319
3319
|
} = Et(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)), {
|
|
3320
|
-
dimensionStyles:
|
|
3320
|
+
dimensionStyles: i
|
|
3321
3321
|
} = Je(e);
|
|
3322
3322
|
return ee(() => {
|
|
3323
|
-
const c = Number(e.content), m = !e.max || isNaN(c) ? e.content : c <= Number(e.max) ? c : `${e.max}+`, [y,
|
|
3324
|
-
return
|
|
3323
|
+
const c = Number(e.content), m = !e.max || isNaN(c) ? e.content : c <= Number(e.max) ? c : `${e.max}+`, [y, f] = Ln(a.attrs, ["aria-atomic", "aria-label", "aria-live", "role", "title"]);
|
|
3324
|
+
return d(e.tag, z({
|
|
3325
3325
|
class: ["v-badge", {
|
|
3326
3326
|
"v-badge--bordered": e.bordered,
|
|
3327
3327
|
"v-badge--dot": e.dot,
|
|
3328
3328
|
"v-badge--floating": e.floating,
|
|
3329
3329
|
"v-badge--inline": e.inline
|
|
3330
3330
|
}, e.class]
|
|
3331
|
-
},
|
|
3331
|
+
}, f, {
|
|
3332
3332
|
style: e.style
|
|
3333
3333
|
}), {
|
|
3334
3334
|
default: () => [k("div", {
|
|
3335
3335
|
class: "v-badge__wrapper"
|
|
3336
|
-
}, [a.slots.default?.(),
|
|
3336
|
+
}, [a.slots.default?.(), d(Mt, {
|
|
3337
3337
|
transition: e.transition
|
|
3338
3338
|
}, {
|
|
3339
3339
|
default: () => [Fe(k("span", z({
|
|
3340
|
-
class: ["v-badge__badge",
|
|
3341
|
-
style: [t.value, u.value,
|
|
3340
|
+
class: ["v-badge__badge", s.value, n.value, l.value, r.value],
|
|
3341
|
+
style: [t.value, u.value, i.value, e.inline ? {} : v.value],
|
|
3342
3342
|
"aria-atomic": "true",
|
|
3343
3343
|
"aria-label": o(e.label, c),
|
|
3344
3344
|
"aria-live": "polite",
|
|
3345
3345
|
role: "status"
|
|
3346
|
-
}, y), [e.dot ? void 0 : a.slots.badge ? a.slots.badge?.() : e.icon ?
|
|
3346
|
+
}, y), [e.dot ? void 0 : a.slots.badge ? a.slots.badge?.() : e.icon ? d(ge, {
|
|
3347
3347
|
icon: e.icon
|
|
3348
3348
|
}, null) : m]), [[it, e.modelValue]])]
|
|
3349
3349
|
})])]
|
|
@@ -3415,7 +3415,7 @@ const Qa = ["auto", "start", "end", "center", "baseline", "stretch"], Za = O({
|
|
|
3415
3415
|
let o;
|
|
3416
3416
|
for (o in rl)
|
|
3417
3417
|
rl[o].forEach((u) => {
|
|
3418
|
-
const
|
|
3418
|
+
const s = e[u], v = Xa(o, u, s);
|
|
3419
3419
|
v && l.push(v);
|
|
3420
3420
|
});
|
|
3421
3421
|
const r = l.some((u) => u.startsWith("v-col-"));
|
|
@@ -3506,8 +3506,8 @@ const oo = O({
|
|
|
3506
3506
|
let o;
|
|
3507
3507
|
for (o in dl)
|
|
3508
3508
|
dl[o].forEach((r) => {
|
|
3509
|
-
const u = e[r],
|
|
3510
|
-
|
|
3509
|
+
const u = e[r], s = ao(o, r, u);
|
|
3510
|
+
s && l.push(s);
|
|
3511
3511
|
});
|
|
3512
3512
|
return l.push({
|
|
3513
3513
|
"v-row--no-gutters": e.noGutters,
|
|
@@ -3598,34 +3598,34 @@ const co = O({
|
|
|
3598
3598
|
holdStop: o
|
|
3599
3599
|
} = ro({
|
|
3600
3600
|
toggleUpDown: R
|
|
3601
|
-
}), r = Gt(e), u = x(() => r.isDisabled.value || r.isReadonly.value),
|
|
3601
|
+
}), r = Gt(e), u = x(() => r.isDisabled.value || r.isReadonly.value), s = ne(e.focused), {
|
|
3602
3602
|
decimalSeparator: v
|
|
3603
|
-
} = Le(),
|
|
3604
|
-
function c(
|
|
3603
|
+
} = Le(), i = x(() => e.decimalSeparator?.[0] || v.value);
|
|
3604
|
+
function c(p) {
|
|
3605
3605
|
let b = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : e.precision, g = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0;
|
|
3606
|
-
const w = b == null ? String(
|
|
3607
|
-
if (
|
|
3608
|
-
return Number(w).toString().replace(".",
|
|
3606
|
+
const w = b == null ? String(p) : p.toFixed(b);
|
|
3607
|
+
if (s.value && g)
|
|
3608
|
+
return Number(w).toString().replace(".", i.value);
|
|
3609
3609
|
if (e.minFractionDigits === null || b !== null && b < e.minFractionDigits)
|
|
3610
|
-
return w.replace(".",
|
|
3611
|
-
let [
|
|
3612
|
-
return M = (M ?? "").padEnd(e.minFractionDigits, "0").replace(new RegExp(`(?<=\\d{${e.minFractionDigits}})0+$`, "g"), ""), [
|
|
3610
|
+
return w.replace(".", i.value);
|
|
3611
|
+
let [B, M] = w.split(".");
|
|
3612
|
+
return M = (M ?? "").padEnd(e.minFractionDigits, "0").replace(new RegExp(`(?<=\\d{${e.minFractionDigits}})0+$`, "g"), ""), [B, M].filter(Boolean).join(i.value);
|
|
3613
3613
|
}
|
|
3614
|
-
const m =
|
|
3614
|
+
const m = pe(e, "modelValue", null, (p) => p ?? null, (p) => p == null ? p ?? null : Te(Number(p), e.min, e.max)), y = ne(null);
|
|
3615
3615
|
kt(() => {
|
|
3616
|
-
|
|
3616
|
+
s.value && !u.value && Number(y.value?.replace(i.value, ".")) === m.value || (m.value == null ? y.value = null : isNaN(m.value) || (y.value = c(m.value)));
|
|
3617
3617
|
});
|
|
3618
|
-
const
|
|
3618
|
+
const f = x({
|
|
3619
3619
|
get: () => y.value,
|
|
3620
|
-
set(
|
|
3621
|
-
if (
|
|
3620
|
+
set(p) {
|
|
3621
|
+
if (p === null || p === "") {
|
|
3622
3622
|
m.value = null, y.value = null;
|
|
3623
3623
|
return;
|
|
3624
3624
|
}
|
|
3625
|
-
const b = Number(
|
|
3626
|
-
!isNaN(b) && b <= e.max && b >= e.min && (m.value = b, y.value =
|
|
3625
|
+
const b = Number(p.replace(i.value, "."));
|
|
3626
|
+
!isNaN(b) && b <= e.max && b >= e.min && (m.value = b, y.value = p);
|
|
3627
3627
|
}
|
|
3628
|
-
}),
|
|
3628
|
+
}), h = x(() => u.value ? !1 : (m.value ?? 0) + e.step <= e.max), S = x(() => u.value ? !1 : (m.value ?? 0) - e.step >= e.min), C = x(() => e.hideInput ? "stacked" : e.controlVariant), _ = F(() => C.value === "split" ? "$plus" : "$collapse"), E = F(() => C.value === "split" ? "$minus" : "$expand"), T = F(() => C.value === "split" ? "default" : "small"), V = F(() => C.value === "stacked" ? "auto" : "100%"), L = {
|
|
3629
3629
|
props: {
|
|
3630
3630
|
onClick: te,
|
|
3631
3631
|
onPointerup: Q,
|
|
@@ -3643,67 +3643,67 @@ const co = O({
|
|
|
3643
3643
|
ue(() => e.precision, () => Z()), ue(() => e.minFractionDigits, () => Z()), Ne(() => {
|
|
3644
3644
|
j();
|
|
3645
3645
|
});
|
|
3646
|
-
function I(
|
|
3647
|
-
if (
|
|
3648
|
-
const b =
|
|
3646
|
+
function I(p) {
|
|
3647
|
+
if (p == null) return 0;
|
|
3648
|
+
const b = p.toString(), g = b.indexOf(".");
|
|
3649
3649
|
return ~g ? b.length - g : 0;
|
|
3650
3650
|
}
|
|
3651
3651
|
function R() {
|
|
3652
|
-
let
|
|
3652
|
+
let p = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0;
|
|
3653
3653
|
if (u.value) return;
|
|
3654
3654
|
if (m.value == null) {
|
|
3655
|
-
|
|
3655
|
+
f.value = c(Te(0, e.min, e.max));
|
|
3656
3656
|
return;
|
|
3657
3657
|
}
|
|
3658
3658
|
let b = Math.max(I(m.value), I(e.step));
|
|
3659
|
-
e.precision != null && (b = Math.max(b, e.precision)),
|
|
3659
|
+
e.precision != null && (b = Math.max(b, e.precision)), p ? h.value && (f.value = c(m.value + e.step, b)) : S.value && (f.value = c(m.value - e.step, b));
|
|
3660
3660
|
}
|
|
3661
|
-
function W(
|
|
3662
|
-
if (!
|
|
3663
|
-
const b =
|
|
3661
|
+
function W(p) {
|
|
3662
|
+
if (!p.data) return;
|
|
3663
|
+
const b = p.target, {
|
|
3664
3664
|
value: g,
|
|
3665
3665
|
selectionStart: w,
|
|
3666
|
-
selectionEnd:
|
|
3667
|
-
} = b ?? {}, M = g ? g.slice(0, w) +
|
|
3668
|
-
if (new RegExp(`^-?\\d*${Hn(
|
|
3669
|
-
if (M.split(
|
|
3670
|
-
|
|
3671
|
-
const N = (w ?? 0) +
|
|
3666
|
+
selectionEnd: B
|
|
3667
|
+
} = b ?? {}, M = g ? g.slice(0, w) + p.data + g.slice(B) : p.data, G = Mn(M, e.precision, i.value);
|
|
3668
|
+
if (new RegExp(`^-?\\d*${Hn(i.value)}?\\d*$`).test(M) || (p.preventDefault(), b.value = G, me(() => f.value = G)), e.precision != null) {
|
|
3669
|
+
if (M.split(i.value)[1]?.length > e.precision) {
|
|
3670
|
+
p.preventDefault(), b.value = G, me(() => f.value = G);
|
|
3671
|
+
const N = (w ?? 0) + p.data.length;
|
|
3672
3672
|
b.setSelectionRange(N, N);
|
|
3673
3673
|
}
|
|
3674
|
-
e.precision === 0 && M.endsWith(
|
|
3674
|
+
e.precision === 0 && M.endsWith(i.value) && (p.preventDefault(), b.value = G, me(() => f.value = G));
|
|
3675
3675
|
}
|
|
3676
3676
|
}
|
|
3677
|
-
async function J(
|
|
3678
|
-
["Enter", "ArrowLeft", "ArrowRight", "Backspace", "Delete", "Tab"].includes(
|
|
3677
|
+
async function J(p) {
|
|
3678
|
+
["Enter", "ArrowLeft", "ArrowRight", "Backspace", "Delete", "Tab"].includes(p.key) || p.ctrlKey || ["ArrowDown", "ArrowUp"].includes(p.key) && (p.preventDefault(), p.stopPropagation(), j(), await me(), p.key === "ArrowDown" ? R(!1) : R());
|
|
3679
3679
|
}
|
|
3680
|
-
function te(
|
|
3681
|
-
|
|
3680
|
+
function te(p) {
|
|
3681
|
+
p.stopPropagation();
|
|
3682
3682
|
}
|
|
3683
|
-
function Q(
|
|
3684
|
-
|
|
3683
|
+
function Q(p) {
|
|
3684
|
+
p.currentTarget?.releasePointerCapture(p.pointerId), p.preventDefault(), o();
|
|
3685
3685
|
}
|
|
3686
|
-
function U(
|
|
3687
|
-
|
|
3686
|
+
function U(p) {
|
|
3687
|
+
p.currentTarget?.setPointerCapture(p.pointerId), p.preventDefault(), p.stopPropagation(), l("up");
|
|
3688
3688
|
}
|
|
3689
|
-
function ce(
|
|
3690
|
-
|
|
3689
|
+
function ce(p) {
|
|
3690
|
+
p.currentTarget?.setPointerCapture(p.pointerId), p.preventDefault(), p.stopPropagation(), l("down");
|
|
3691
3691
|
}
|
|
3692
3692
|
function j() {
|
|
3693
3693
|
if (u.value || !t.value) return;
|
|
3694
|
-
const
|
|
3695
|
-
|
|
3694
|
+
const p = t.value.value, b = Number(p.replace(i.value, "."));
|
|
3695
|
+
p && !isNaN(b) ? f.value = c(Te(b, e.min, e.max)) : f.value = null;
|
|
3696
3696
|
}
|
|
3697
3697
|
function Z() {
|
|
3698
|
-
u.value || (
|
|
3698
|
+
u.value || (f.value = m.value !== null && !isNaN(m.value) ? c(m.value, e.precision, !1) : null);
|
|
3699
3699
|
}
|
|
3700
3700
|
function se() {
|
|
3701
3701
|
if (!u.value) {
|
|
3702
3702
|
if (m.value === null || isNaN(m.value)) {
|
|
3703
|
-
|
|
3703
|
+
f.value = null;
|
|
3704
3704
|
return;
|
|
3705
3705
|
}
|
|
3706
|
-
|
|
3706
|
+
f.value = m.value.toString().replace(".", i.value);
|
|
3707
3707
|
}
|
|
3708
3708
|
}
|
|
3709
3709
|
function de() {
|
|
@@ -3714,16 +3714,16 @@ const co = O({
|
|
|
3714
3714
|
}
|
|
3715
3715
|
return ee(() => {
|
|
3716
3716
|
const {
|
|
3717
|
-
modelValue:
|
|
3717
|
+
modelValue: p,
|
|
3718
3718
|
type: b,
|
|
3719
3719
|
...g
|
|
3720
3720
|
} = qe.filterProps(e);
|
|
3721
3721
|
function w() {
|
|
3722
|
-
return n.increment ?
|
|
3722
|
+
return n.increment ? d(Se, {
|
|
3723
3723
|
key: "increment-defaults",
|
|
3724
3724
|
defaults: {
|
|
3725
3725
|
VBtn: {
|
|
3726
|
-
disabled: !
|
|
3726
|
+
disabled: !h.value,
|
|
3727
3727
|
height: V.value,
|
|
3728
3728
|
size: T.value,
|
|
3729
3729
|
icon: _.value,
|
|
@@ -3732,10 +3732,10 @@ const co = O({
|
|
|
3732
3732
|
}
|
|
3733
3733
|
}, {
|
|
3734
3734
|
default: () => [n.increment(L)]
|
|
3735
|
-
}) :
|
|
3735
|
+
}) : d(_e, {
|
|
3736
3736
|
"aria-hidden": "true",
|
|
3737
3737
|
"data-testid": "increment",
|
|
3738
|
-
disabled: !
|
|
3738
|
+
disabled: !h.value,
|
|
3739
3739
|
height: V.value,
|
|
3740
3740
|
icon: _.value,
|
|
3741
3741
|
key: "increment-btn",
|
|
@@ -3748,8 +3748,8 @@ const co = O({
|
|
|
3748
3748
|
tabindex: "-1"
|
|
3749
3749
|
}, null);
|
|
3750
3750
|
}
|
|
3751
|
-
function
|
|
3752
|
-
return n.decrement ?
|
|
3751
|
+
function B() {
|
|
3752
|
+
return n.decrement ? d(Se, {
|
|
3753
3753
|
key: "decrement-defaults",
|
|
3754
3754
|
defaults: {
|
|
3755
3755
|
VBtn: {
|
|
@@ -3762,7 +3762,7 @@ const co = O({
|
|
|
3762
3762
|
}
|
|
3763
3763
|
}, {
|
|
3764
3764
|
default: () => [n.decrement(P)]
|
|
3765
|
-
}) :
|
|
3765
|
+
}) : d(_e, {
|
|
3766
3766
|
"aria-hidden": "true",
|
|
3767
3767
|
"data-testid": "decrement",
|
|
3768
3768
|
disabled: !S.value,
|
|
@@ -3781,31 +3781,31 @@ const co = O({
|
|
|
3781
3781
|
function M() {
|
|
3782
3782
|
return k("div", {
|
|
3783
3783
|
class: "v-number-input__control"
|
|
3784
|
-
}, [
|
|
3784
|
+
}, [B(), d(Ie, {
|
|
3785
3785
|
vertical: C.value !== "stacked"
|
|
3786
3786
|
}, null), w()]);
|
|
3787
3787
|
}
|
|
3788
3788
|
function G() {
|
|
3789
|
-
return !e.hideInput && !e.inset ?
|
|
3789
|
+
return !e.hideInput && !e.inset ? d(Ie, {
|
|
3790
3790
|
vertical: !0
|
|
3791
3791
|
}, null) : void 0;
|
|
3792
3792
|
}
|
|
3793
3793
|
const N = C.value === "split" ? k("div", {
|
|
3794
3794
|
class: "v-number-input__control"
|
|
3795
|
-
}, [
|
|
3795
|
+
}, [d(Ie, {
|
|
3796
3796
|
vertical: !0
|
|
3797
3797
|
}, null), w()]) : e.reverse || C.value === "hidden" ? void 0 : k(ie, null, [G(), M()]), Y = n["append-inner"] || N, ve = C.value === "split" ? k("div", {
|
|
3798
3798
|
class: "v-number-input__control"
|
|
3799
|
-
}, [
|
|
3799
|
+
}, [B(), d(Ie, {
|
|
3800
3800
|
vertical: !0
|
|
3801
3801
|
}, null)]) : e.reverse && C.value !== "hidden" ? k(ie, null, [M(), G()]) : void 0, Ve = n["prepend-inner"] || ve;
|
|
3802
|
-
return
|
|
3802
|
+
return d(qe, z({
|
|
3803
3803
|
ref: t
|
|
3804
3804
|
}, g, {
|
|
3805
|
-
modelValue:
|
|
3806
|
-
"onUpdate:modelValue": (H) =>
|
|
3807
|
-
focused:
|
|
3808
|
-
"onUpdate:focused": (H) =>
|
|
3805
|
+
modelValue: f.value,
|
|
3806
|
+
"onUpdate:modelValue": (H) => f.value = H,
|
|
3807
|
+
focused: s.value,
|
|
3808
|
+
"onUpdate:focused": (H) => s.value = H,
|
|
3809
3809
|
validationValue: m.value,
|
|
3810
3810
|
onBeforeinput: W,
|
|
3811
3811
|
onFocus: de,
|
|
@@ -3844,23 +3844,23 @@ const co = O({
|
|
|
3844
3844
|
},
|
|
3845
3845
|
emits: /* @__PURE__ */ At(["closeDialog", "save"], ["update:modelValue"]),
|
|
3846
3846
|
setup(e, { emit: a }) {
|
|
3847
|
-
const n =
|
|
3847
|
+
const n = he("table_props"), t = ut(e, "modelValue"), l = a, o = {
|
|
3848
3848
|
textfield: qe,
|
|
3849
3849
|
select: Wa,
|
|
3850
3850
|
number: fo,
|
|
3851
3851
|
datepicker: Ce(
|
|
3852
|
-
() => import("./Datepicker-
|
|
3852
|
+
() => import("./Datepicker-Bv4of4w1.js")
|
|
3853
3853
|
),
|
|
3854
3854
|
comparison: Ce(
|
|
3855
|
-
() => import("./Comparison-
|
|
3855
|
+
() => import("./Comparison-v57GhUTZ.js")
|
|
3856
3856
|
)
|
|
3857
|
-
}, r = x(() => n.headers.filter((
|
|
3857
|
+
}, r = x(() => n.headers.filter((s) => s.advancedFilter !== !1 && !s.hidden)), u = (s) => s ? typeof s == "string" ? o[s] : s : o.textfield;
|
|
3858
3858
|
return ue(
|
|
3859
3859
|
r,
|
|
3860
|
-
(
|
|
3861
|
-
|
|
3862
|
-
const
|
|
3863
|
-
Object.hasOwn(t.value,
|
|
3860
|
+
(s) => {
|
|
3861
|
+
s.forEach((v) => {
|
|
3862
|
+
const i = v.advancedFilter?.key ?? v.key;
|
|
3863
|
+
Object.hasOwn(t.value, i) || (t.value[i] = {
|
|
3864
3864
|
comparison: "=",
|
|
3865
3865
|
value: null
|
|
3866
3866
|
});
|
|
@@ -3869,34 +3869,34 @@ const co = O({
|
|
|
3869
3869
|
{ immediate: !0 }
|
|
3870
3870
|
), Ne(async () => {
|
|
3871
3871
|
await n.options.advancedFilters?.onMounted();
|
|
3872
|
-
}), (
|
|
3872
|
+
}), (s, v) => (X(), fe(Ut, { rounded: "lg" }, {
|
|
3873
3873
|
default: K(() => [
|
|
3874
|
-
|
|
3874
|
+
d(yt, { class: "d-flex justify-space-between align-center" }, {
|
|
3875
3875
|
default: K(() => [
|
|
3876
|
-
k("div", vo, Ue(
|
|
3877
|
-
|
|
3876
|
+
k("div", vo, Ue(s.$t("$datatables.advancedFilters")), 1),
|
|
3877
|
+
d(_e, {
|
|
3878
3878
|
icon: "mdi-close",
|
|
3879
3879
|
variant: "text",
|
|
3880
|
-
onClick: v[0] || (v[0] = (
|
|
3880
|
+
onClick: v[0] || (v[0] = (i) => l("closeDialog"))
|
|
3881
3881
|
})
|
|
3882
3882
|
]),
|
|
3883
3883
|
_: 1
|
|
3884
3884
|
}),
|
|
3885
|
-
|
|
3886
|
-
|
|
3885
|
+
d(Ie),
|
|
3886
|
+
d(bt, { class: "overflow-auto pt-8" }, {
|
|
3887
3887
|
default: K(() => [
|
|
3888
|
-
(X(!0), Ee(ie, null, Pt(
|
|
3889
|
-
id: `advanced-filter-${
|
|
3888
|
+
(X(!0), Ee(ie, null, Pt(D(r), (i, c) => (X(), Ee("div", {
|
|
3889
|
+
id: `advanced-filter-${i.key}`,
|
|
3890
3890
|
key: `filter-${c}`,
|
|
3891
|
-
class: ae(`advanced-filter advanced-filter--${
|
|
3891
|
+
class: ae(`advanced-filter advanced-filter--${i.key}`)
|
|
3892
3892
|
}, [
|
|
3893
|
-
(X(), fe(xe(u(
|
|
3894
|
-
modelValue: t.value[
|
|
3895
|
-
"onUpdate:modelValue": (m) => t.value[
|
|
3896
|
-
comparison: t.value[
|
|
3897
|
-
"onUpdate:comparison": (m) => t.value[
|
|
3898
|
-
}, { ref_for: !0 },
|
|
3899
|
-
label:
|
|
3893
|
+
(X(), fe(xe(u(i.advancedFilter?.component)), z({
|
|
3894
|
+
modelValue: t.value[i.advancedFilter?.key ?? i.key].value,
|
|
3895
|
+
"onUpdate:modelValue": (m) => t.value[i.advancedFilter?.key ?? i.key].value = m,
|
|
3896
|
+
comparison: t.value[i.advancedFilter?.key ?? i.key].comparison,
|
|
3897
|
+
"onUpdate:comparison": (m) => t.value[i.advancedFilter?.key ?? i.key].comparison = m
|
|
3898
|
+
}, { ref_for: !0 }, i.advancedFilter?.options, {
|
|
3899
|
+
label: i.title,
|
|
3900
3900
|
variant: "underlined",
|
|
3901
3901
|
clearable: ""
|
|
3902
3902
|
}), null, 16, ["modelValue", "onUpdate:modelValue", "comparison", "onUpdate:comparison", "label"]))
|
|
@@ -3904,20 +3904,20 @@ const co = O({
|
|
|
3904
3904
|
]),
|
|
3905
3905
|
_: 1
|
|
3906
3906
|
}),
|
|
3907
|
-
|
|
3908
|
-
|
|
3907
|
+
d(Ie, { class: "mt-2" }),
|
|
3908
|
+
d(zt, { class: "my-2 d-flex justify-end" }, {
|
|
3909
3909
|
default: K(() => [
|
|
3910
|
-
|
|
3910
|
+
d(_e, {
|
|
3911
3911
|
class: "text-none",
|
|
3912
|
-
text:
|
|
3913
|
-
onClick: v[1] || (v[1] = (
|
|
3912
|
+
text: s.$t("$datatables.cancel"),
|
|
3913
|
+
onClick: v[1] || (v[1] = (i) => l("closeDialog"))
|
|
3914
3914
|
}, null, 8, ["text"]),
|
|
3915
|
-
|
|
3915
|
+
d(_e, {
|
|
3916
3916
|
class: "text-none",
|
|
3917
3917
|
color: "primary",
|
|
3918
|
-
text:
|
|
3918
|
+
text: s.$t("$datatables.submit"),
|
|
3919
3919
|
variant: "flat",
|
|
3920
|
-
onClick: v[2] || (v[2] = (
|
|
3920
|
+
onClick: v[2] || (v[2] = (i) => l("save"))
|
|
3921
3921
|
}, null, 8, ["text"])
|
|
3922
3922
|
]),
|
|
3923
3923
|
_: 1
|
|
@@ -3938,11 +3938,11 @@ const yo = {
|
|
|
3938
3938
|
},
|
|
3939
3939
|
emits: ["update:modelValue"],
|
|
3940
3940
|
setup(e) {
|
|
3941
|
-
const a = gt(), { advancedFiltersState: n } = tt(), { setData: t } = a, l = ut(e, "modelValue"), o = $({}), r =
|
|
3942
|
-
const v = Object.entries(o.value).filter(([,
|
|
3943
|
-
const c =
|
|
3941
|
+
const a = gt(), { advancedFiltersState: n } = tt(), { setData: t } = a, l = ut(e, "modelValue"), o = $({}), r = he("table_props"), u = he("busEmits"), s = () => {
|
|
3942
|
+
const v = Object.entries(o.value).filter(([, i]) => {
|
|
3943
|
+
const c = i.value;
|
|
3944
3944
|
return Array.isArray(c) || typeof c == "string" ? c.length > 0 : c != null && c !== "";
|
|
3945
|
-
}).reduce((
|
|
3945
|
+
}).reduce((i, [c, m]) => (i[c] = m, i), {});
|
|
3946
3946
|
JSON.stringify(v) !== JSON.stringify(n.value) && (t({
|
|
3947
3947
|
table_id: r.id,
|
|
3948
3948
|
name: "advancedFilters",
|
|
@@ -3951,29 +3951,29 @@ const yo = {
|
|
|
3951
3951
|
};
|
|
3952
3952
|
return Ne(() => {
|
|
3953
3953
|
o.value = fl(n.value);
|
|
3954
|
-
}), (v,
|
|
3954
|
+
}), (v, i) => {
|
|
3955
3955
|
const c = go, m = Ia;
|
|
3956
3956
|
return X(), Ee("div", null, [
|
|
3957
|
-
|
|
3957
|
+
d(qt, {
|
|
3958
3958
|
modelValue: l.value,
|
|
3959
|
-
"onUpdate:modelValue":
|
|
3959
|
+
"onUpdate:modelValue": i[1] || (i[1] = (y) => l.value = y),
|
|
3960
3960
|
"max-width": "550"
|
|
3961
3961
|
}, {
|
|
3962
3962
|
default: K(({ isActive: y }) => [
|
|
3963
|
-
|
|
3964
|
-
modelValue:
|
|
3965
|
-
"onUpdate:modelValue":
|
|
3966
|
-
onSave:
|
|
3967
|
-
onCloseDialog: (
|
|
3963
|
+
d(c, {
|
|
3964
|
+
modelValue: D(o),
|
|
3965
|
+
"onUpdate:modelValue": i[0] || (i[0] = (f) => $e(o) ? o.value = f : null),
|
|
3966
|
+
onSave: s,
|
|
3967
|
+
onCloseDialog: (f) => y.value = !1
|
|
3968
3968
|
}, null, 8, ["modelValue", "onCloseDialog"])
|
|
3969
3969
|
]),
|
|
3970
3970
|
_: 1
|
|
3971
3971
|
}, 8, ["modelValue"]),
|
|
3972
|
-
Object.keys(
|
|
3972
|
+
Object.keys(D(n)).length ? (X(), fe(m, {
|
|
3973
3973
|
key: 0,
|
|
3974
|
-
modelValue:
|
|
3975
|
-
"onUpdate:modelValue":
|
|
3976
|
-
onSave:
|
|
3974
|
+
modelValue: D(o),
|
|
3975
|
+
"onUpdate:modelValue": i[2] || (i[2] = (y) => $e(o) ? o.value = y : null),
|
|
3976
|
+
onSave: s
|
|
3977
3977
|
}, null, 8, ["modelValue"])) : He("", !0)
|
|
3978
3978
|
]);
|
|
3979
3979
|
};
|
|
@@ -3982,73 +3982,73 @@ const yo = {
|
|
|
3982
3982
|
__name: "index",
|
|
3983
3983
|
setup(e) {
|
|
3984
3984
|
const a = Ce(
|
|
3985
|
-
() => import("./Search-
|
|
3985
|
+
() => import("./Search-ByPG22T-.js")
|
|
3986
3986
|
), n = Ce(
|
|
3987
|
-
() => import("./RefreshTable-
|
|
3987
|
+
() => import("./RefreshTable-BO7uzuWX.js")
|
|
3988
3988
|
), t = Ce(
|
|
3989
|
-
() => import("./Options-
|
|
3989
|
+
() => import("./Options-C6gv21MY.js")
|
|
3990
3990
|
), l = Ce(
|
|
3991
|
-
() => import("./index-
|
|
3991
|
+
() => import("./index-Drz0TALq.js")
|
|
3992
3992
|
), o = Ce(
|
|
3993
|
-
() => import("./Columns-
|
|
3993
|
+
() => import("./Columns-GBEpMZ5m.js")
|
|
3994
3994
|
), r = Ce(
|
|
3995
|
-
() => import("./Download-
|
|
3996
|
-
), u =
|
|
3997
|
-
return (
|
|
3998
|
-
const
|
|
3995
|
+
() => import("./Download-B4zf7Fob.js")
|
|
3996
|
+
), u = he("table_props"), s = he("pluginOptions"), { advancedFiltersState: v } = tt(), i = $(null), c = $(!1), m = u.options?.header?.components ?? {}, y = x(() => Object.keys(v.value).length);
|
|
3997
|
+
return (f, h) => {
|
|
3998
|
+
const S = yo, C = da;
|
|
3999
3999
|
return X(), Ee("div", null, [
|
|
4000
|
-
|
|
4000
|
+
d(so, null, {
|
|
4001
4001
|
default: K(() => [
|
|
4002
|
-
|
|
4002
|
+
d(cl, {
|
|
4003
4003
|
class: "d-flex align-center",
|
|
4004
4004
|
style: { gap: "0.75rem" }
|
|
4005
4005
|
}, {
|
|
4006
4006
|
default: K(() => [
|
|
4007
|
-
|
|
4007
|
+
d(_e, {
|
|
4008
4008
|
variant: "text",
|
|
4009
|
-
icon:
|
|
4010
|
-
color:
|
|
4009
|
+
icon: D(s).header.icons.advancedFilters,
|
|
4010
|
+
color: D(y) ? "primary" : "dark",
|
|
4011
4011
|
density: "comfortable",
|
|
4012
|
-
onClick:
|
|
4012
|
+
onClick: h[0] || (h[0] = (_) => c.value = !0)
|
|
4013
4013
|
}, {
|
|
4014
4014
|
default: K(() => [
|
|
4015
|
-
|
|
4015
|
+
D(y) ? (X(), fe(Ya, {
|
|
4016
4016
|
key: 0,
|
|
4017
4017
|
color: "primary",
|
|
4018
|
-
content:
|
|
4018
|
+
content: D(y)
|
|
4019
4019
|
}, {
|
|
4020
4020
|
default: K(() => [
|
|
4021
|
-
|
|
4021
|
+
d(ge)
|
|
4022
4022
|
]),
|
|
4023
4023
|
_: 1
|
|
4024
4024
|
}, 8, ["content"])) : (X(), fe(ge, { key: 1 }))
|
|
4025
4025
|
]),
|
|
4026
4026
|
_: 1
|
|
4027
|
-
}, 8, ["color"]),
|
|
4028
|
-
|
|
4027
|
+
}, 8, ["icon", "color"]),
|
|
4028
|
+
D(u).hardFilters.length ? (X(), fe(xe(D(m).hardFilters ?? D(l)), {
|
|
4029
4029
|
key: 0,
|
|
4030
4030
|
id: "header-hardFilters"
|
|
4031
4031
|
})) : He("", !0),
|
|
4032
|
-
|
|
4033
|
-
modelValue:
|
|
4034
|
-
"onUpdate:modelValue":
|
|
4032
|
+
d(S, {
|
|
4033
|
+
modelValue: D(c),
|
|
4034
|
+
"onUpdate:modelValue": h[1] || (h[1] = (_) => $e(c) ? c.value = _ : null)
|
|
4035
4035
|
}, null, 8, ["modelValue"]),
|
|
4036
|
-
(X(), fe(xe(
|
|
4036
|
+
(X(), fe(xe(D(m).toolbar), { id: "header-toolbar" }))
|
|
4037
4037
|
]),
|
|
4038
4038
|
_: 1
|
|
4039
4039
|
}),
|
|
4040
|
-
|
|
4040
|
+
d(cl, { class: "d-flex align-center justify-end" }, {
|
|
4041
4041
|
default: K(() => [
|
|
4042
|
-
(X(), fe(xe(
|
|
4043
|
-
(X(), fe(xe(
|
|
4042
|
+
(X(), fe(xe(D(m).search ?? D(a)), { id: "header-search" })),
|
|
4043
|
+
(X(), fe(xe(D(m).columns ?? D(o)), {
|
|
4044
4044
|
id: "header-columns",
|
|
4045
|
-
"component-refs": { columns:
|
|
4045
|
+
"component-refs": { columns: D(i) }
|
|
4046
4046
|
}, null, 8, ["component-refs"])),
|
|
4047
|
-
(X(), fe(xe(
|
|
4048
|
-
(X(), fe(xe(
|
|
4049
|
-
(X(), fe(xe(
|
|
4047
|
+
(X(), fe(xe(D(m).download ?? D(r)), { id: "header-download" })),
|
|
4048
|
+
(X(), fe(xe(D(m).refreshTable ?? D(n)), { id: "header-refreshTable" })),
|
|
4049
|
+
(X(), fe(xe(D(m).options ?? D(t)), {
|
|
4050
4050
|
id: "header-options",
|
|
4051
|
-
"component-refs": { columns:
|
|
4051
|
+
"component-refs": { columns: D(i) }
|
|
4052
4052
|
}, null, 8, ["component-refs"]))
|
|
4053
4053
|
]),
|
|
4054
4054
|
_: 1
|
|
@@ -4056,9 +4056,9 @@ const yo = {
|
|
|
4056
4056
|
]),
|
|
4057
4057
|
_: 1
|
|
4058
4058
|
}),
|
|
4059
|
-
|
|
4059
|
+
d(C, {
|
|
4060
4060
|
ref_key: "columns",
|
|
4061
|
-
ref:
|
|
4061
|
+
ref: i
|
|
4062
4062
|
}, null, 512)
|
|
4063
4063
|
]);
|
|
4064
4064
|
};
|
|
@@ -4124,39 +4124,39 @@ const po = ho(), un = Un(() => {
|
|
|
4124
4124
|
], ["update:modelValue"]),
|
|
4125
4125
|
setup(e, { expose: a, emit: n }) {
|
|
4126
4126
|
const t = Ce(
|
|
4127
|
-
() => import("./Table-
|
|
4127
|
+
() => import("./Table-0QV9000m.js")
|
|
4128
4128
|
), l = Ce(
|
|
4129
|
-
() => import("./TableServer-
|
|
4130
|
-
), { storeOptions: o } = un(), { saveTableOptions: r } = tt(), u = ut(e, "modelValue"),
|
|
4131
|
-
const V =
|
|
4129
|
+
() => import("./TableServer-ByC-EgB4.js")
|
|
4130
|
+
), { storeOptions: o } = un(), { saveTableOptions: r } = tt(), u = ut(e, "modelValue"), s = he("table_props"), v = $(null), i = $(!1), c = $(!1), m = $(!1), y = n, f = gt(), { dataStateGet: h, tableDataState: S, checkTableState: C } = $l(s), { addTable: _, restoreData: E } = f, T = x(() => {
|
|
4131
|
+
const V = s.options?.header;
|
|
4132
4132
|
return V === void 0 || typeof V == "object" && V !== null;
|
|
4133
4133
|
});
|
|
4134
4134
|
return Ne(async () => {
|
|
4135
|
-
_({ table_id:
|
|
4136
|
-
const V =
|
|
4135
|
+
_({ table_id: s.id }), await C();
|
|
4136
|
+
const V = h();
|
|
4137
4137
|
if (V)
|
|
4138
|
-
E({ table_id:
|
|
4138
|
+
E({ table_id: s.id, data: V });
|
|
4139
4139
|
else {
|
|
4140
4140
|
const P = S.value.options.columns;
|
|
4141
|
-
P.selected =
|
|
4141
|
+
P.selected = s.headers.filter((I) => !I.hidden).map((I) => I.key), P.sorted = s.headers.map((I) => I.key);
|
|
4142
4142
|
}
|
|
4143
4143
|
r(
|
|
4144
4144
|
po(o.state.value, S.value.options.state)
|
|
4145
4145
|
), c.value = !0, await me(), m.value = !0;
|
|
4146
|
-
}), Be("busEmits", y), Be("tableRef", v), Be("tableState", S), Be("downloadModal",
|
|
4146
|
+
}), Be("busEmits", y), Be("tableRef", v), Be("tableState", S), Be("downloadModal", i), a({ tableRef: v }), (V, L) => {
|
|
4147
4147
|
const P = bo;
|
|
4148
|
-
return
|
|
4149
|
-
|
|
4148
|
+
return D(c) ? (X(), Ee("div", So, [
|
|
4149
|
+
d(Ut, null, {
|
|
4150
4150
|
default: K(() => [
|
|
4151
|
-
|
|
4151
|
+
D(T) ? (X(), fe(yt, { key: 0 }, {
|
|
4152
4152
|
default: K(() => [
|
|
4153
|
-
|
|
4153
|
+
d(P)
|
|
4154
4154
|
]),
|
|
4155
4155
|
_: 1
|
|
4156
4156
|
})) : He("", !0),
|
|
4157
|
-
|
|
4157
|
+
d(bt, { class: "pa-0" }, {
|
|
4158
4158
|
default: K(() => [
|
|
4159
|
-
|
|
4159
|
+
D(m) ? (X(), fe(xe(D(s).api ? D(l) : D(t)), {
|
|
4160
4160
|
key: 0,
|
|
4161
4161
|
ref_key: "tableRef",
|
|
4162
4162
|
ref: v,
|
|
@@ -4169,34 +4169,34 @@ const po = ho(), un = Un(() => {
|
|
|
4169
4169
|
]),
|
|
4170
4170
|
_: 1
|
|
4171
4171
|
}),
|
|
4172
|
-
|
|
4173
|
-
modelValue:
|
|
4174
|
-
"onUpdate:modelValue": L[1] || (L[1] = (I) => $e(
|
|
4172
|
+
d(qt, {
|
|
4173
|
+
modelValue: D(i),
|
|
4174
|
+
"onUpdate:modelValue": L[1] || (L[1] = (I) => $e(i) ? i.value = I : null),
|
|
4175
4175
|
"max-width": "350",
|
|
4176
4176
|
persistent: ""
|
|
4177
4177
|
}, {
|
|
4178
4178
|
default: K(() => [
|
|
4179
|
-
|
|
4179
|
+
d(Ht, {
|
|
4180
4180
|
class: "py-2",
|
|
4181
4181
|
color: "primary",
|
|
4182
4182
|
elevation: "12",
|
|
4183
4183
|
rounded: "lg"
|
|
4184
4184
|
}, {
|
|
4185
4185
|
default: K(() => [
|
|
4186
|
-
|
|
4186
|
+
d(nt, {
|
|
4187
4187
|
"prepend-icon": "mdi-file-download",
|
|
4188
4188
|
title: V.$t("$datatables.preparing_download_file")
|
|
4189
4189
|
}, {
|
|
4190
4190
|
prepend: K(() => [
|
|
4191
4191
|
k("div", ko, [
|
|
4192
|
-
|
|
4192
|
+
d(ge, {
|
|
4193
4193
|
color: "primary",
|
|
4194
4194
|
size: "x-large"
|
|
4195
4195
|
})
|
|
4196
4196
|
])
|
|
4197
4197
|
]),
|
|
4198
4198
|
append: K(() => [
|
|
4199
|
-
|
|
4199
|
+
d(zn, {
|
|
4200
4200
|
color: "primary",
|
|
4201
4201
|
indeterminate: "disable-shrink",
|
|
4202
4202
|
size: "16",
|
|
@@ -4272,20 +4272,20 @@ const po = ho(), un = Un(() => {
|
|
|
4272
4272
|
},
|
|
4273
4273
|
emits: ["refreshTable", "refetchData"],
|
|
4274
4274
|
setup(e, { expose: a, emit: n }) {
|
|
4275
|
-
const t = e, { triggerHook: l } = Vo(), { storeOptions: o, setUserOptions: r } = un(), u = $(null),
|
|
4276
|
-
r(m),
|
|
4277
|
-
},
|
|
4275
|
+
const t = e, { triggerHook: l } = Vo(), { storeOptions: o, setUserOptions: r } = un(), u = $(null), s = $(0), v = async (m = {}) => {
|
|
4276
|
+
r(m), s.value < 99 && (c("refreshTable"), await me(), s.value++);
|
|
4277
|
+
}, i = (m = {}) => {
|
|
4278
4278
|
r(m), u.value.tableRef.hasOwnProperty("reloadItems") && (u.value.tableRef.reloadItems(o.state.value), c("refetchData"));
|
|
4279
4279
|
}, c = n;
|
|
4280
|
-
return a({ refreshTable: v, refetchData:
|
|
4281
|
-
const
|
|
4282
|
-
return X(), fe(
|
|
4280
|
+
return a({ refreshTable: v, refetchData: i, triggerHook: l }), Be("table_props", t), Be("triggerHook", l), (m, y) => {
|
|
4281
|
+
const f = Co;
|
|
4282
|
+
return X(), fe(f, {
|
|
4283
4283
|
id: e.id,
|
|
4284
4284
|
ref_key: "table",
|
|
4285
4285
|
ref: u,
|
|
4286
|
-
key: `${e.id}-${
|
|
4286
|
+
key: `${e.id}-${D(s)}`,
|
|
4287
4287
|
onRefreshTable: v,
|
|
4288
|
-
onRefetchData:
|
|
4288
|
+
onRefetchData: i
|
|
4289
4289
|
}, null, 8, ["id"]);
|
|
4290
4290
|
};
|
|
4291
4291
|
}
|