@ianicdev/datatables2 0.9.1 → 0.9.3
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-lW5ifpVY.js → Columns-B64hflPY.js} +1 -1
- package/dist/{Columns-5FUNk8-6.cjs → Columns-pLOuRhAC.cjs} +1 -1
- package/dist/{Comparison-B_jdQPdW.cjs → Comparison-BsWPXIK9.cjs} +1 -1
- package/dist/{Comparison-OWm3KG63.js → Comparison-C71jtSIZ.js} +1 -1
- package/dist/{Datepicker-BDXMvB6Q.cjs → Datepicker-CPtt0ijC.cjs} +1 -1
- package/dist/{Datepicker-D0Yzqhky.js → Datepicker-CvjupU9U.js} +195 -198
- package/dist/{Download-Dv6nv_kh.js → Download-4ogxb-Lj.js} +1 -1
- package/dist/{Download-DZv0Co50.cjs → Download-DTpPvrPw.cjs} +1 -1
- package/dist/{Options-Dmq3tFGa.cjs → Options-5Tlk5YZS.cjs} +1 -1
- package/dist/{Options-CvAQ7vuJ.js → Options-Dk4_4s-_.js} +1 -1
- package/dist/{RefreshTable-vbz6jP_l.js → RefreshTable-BrJqnTHL.js} +2 -2
- package/dist/{RefreshTable-DQt3K_wT.cjs → RefreshTable-r899CLh4.cjs} +1 -1
- package/dist/{Search-KNaJ43Yv.js → Search-BH0AYSqQ.js} +2 -2
- package/dist/{Search-w6O09lLl.cjs → Search-BOG516wl.cjs} +1 -1
- package/dist/{Table-Bfa_XCKK.cjs → Table-CVTCiyiN.cjs} +1 -1
- package/dist/{Table-P3KDor2k.js → Table-W4uL06m9.js} +2 -2
- package/dist/{TableServer-CraUFndq.cjs → TableServer-B9bdMMXy.cjs} +1 -1
- package/dist/{TableServer-C7VVLhRY.js → TableServer-DpHY_0iH.js} +3 -3
- package/dist/{cellRender-BSERCH_s.js → cellRender-BR9T7e_e.js} +2 -2
- package/dist/{cellRender-AyOlbHkM.cjs → cellRender-C_ptyFuE.cjs} +1 -1
- package/dist/{dataTables-oPwexOUF.cjs → dataTables-Bl5jz-ty.cjs} +1 -1
- package/dist/{dataTables-DqHE-hm9.js → dataTables-vJ0uHxvT.js} +1 -1
- package/dist/datatables.cjs +1 -1
- package/dist/datatables.js +1 -1
- package/dist/{index-Wzi3PVax.cjs → index-A8BkndpA.cjs} +1 -1
- package/dist/index-BbB0cyxd.cjs +1 -0
- package/dist/{index-BjboPrMg.js → index-Himr5435.js} +1 -1
- package/dist/{index-FhbzpwmS.js → index-YnQ5w4Wr.js} +209 -209
- package/lib/locale/index.d.ts +5 -0
- package/lib/locale.d.ts +5 -0
- package/package.json +1 -1
- package/dist/index-BwtJBnu1.cjs +0 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { ref as R, inject as ye, computed as V, watch as ie, nextTick as me, createVNode as d, normalizeStyle as be, normalizeClass as ae, createElementVNode as C, Fragment as ue, toDisplayString as Ue, shallowRef as ne, withDirectives as Te, mergeProps as U, useId as De, toRef as T, provide as Be, onScopeDispose as st, unref as E, onBeforeMount as un, onBeforeUnmount as dl, onMounted as Ne, createBlock as fe, openBlock as Q, isRef as $e, withCtx as Y, createElementBlock as Ee, renderList as wt, vShow as it, mergeModels as _t, useModel as ut, cloneVNode as rn, watchEffect as St, toValue as Yt, createTextVNode as cn, h as fl, capitalize as Pt, defineAsyncComponent as Ce, resolveDynamicComponent as xe, createCommentVNode as He } from "vue";
|
|
2
2
|
import { S as dn } from "./sortablejs-C0WJhxmJ.js";
|
|
3
3
|
import { defineStore as vl } from "pinia";
|
|
4
|
-
import { g as J, p as L, a as At, u as te, m as ke, b as oe, c as fn, V as je, d as ge, e as Se, f as We, I as re, R as Oe, h as Re, i as Ft, j as ml, k as rt, l as Je, n as Tt, o as gl, q as Dt, r as yl, s as Ye, t as bl, v as hl, w as vn, L as pl, x as Bt, y as Pe, z as Sl, A as Xe, B as kl, C as Et, D as Cl, E as Nt, F as Qe, G as $t, H as we, J as ze, K as pe, M as Ot, N as Ae, O as ct, P as dt, Q as kt, S as Ze, T as Le, U as Vl, W as Rt, X as ft, Y as xl, Z as Il, _ as wl, $ as Ct, a0 as vt, a1 as mn, a2 as et, a3 as gn, a4 as Ge, a5 as Xt, a6 as yn, a7 as _l, a8 as Vt, a9 as _e, aa as Ie, ab as Lt, ac as nt, ad as xt, ae as Pl, af as Fe, ag as bn, ah as hn, ai as pn, aj as Al, ak as Fl, al as at, am as Qt, an as Tl, ao as Sn, ap as kn, aq as Zt, ar as Dl, as as Cn, at as Vn, au as xn, av as In, aw as wn, ax as Me, ay as el, az as _n, aA as Pn, aB as An, aC as Fn, aD as Tn, aE as Dn, aF as Bn, aG as En, aH as tl, aI as Nn, aJ as $n, aK as On, aL as mt, aM as Rn, aN as Ln, aO as Mn, aP as Hn } from "./dataTables-
|
|
4
|
+
import { g as J, p as L, a as At, u as te, m as ke, b as oe, c as fn, V as je, d as ge, e as Se, f as We, I as re, R as Oe, h as Re, i as Ft, j as ml, k as rt, l as Je, n as Tt, o as gl, q as Dt, r as yl, s as Ye, t as bl, v as hl, w as vn, L as pl, x as Bt, y as Pe, z as Sl, A as Xe, B as kl, C as Et, D as Cl, E as Nt, F as Qe, G as $t, H as we, J as ze, K as pe, M as Ot, N as Ae, O as ct, P as dt, Q as kt, S as Ze, T as Le, U as Vl, W as Rt, X as ft, Y as xl, Z as Il, _ as wl, $ as Ct, a0 as vt, a1 as mn, a2 as et, a3 as gn, a4 as Ge, a5 as Xt, a6 as yn, a7 as _l, a8 as Vt, a9 as _e, aa as Ie, ab as Lt, ac as nt, ad as xt, ae as Pl, af as Fe, ag as bn, ah as hn, ai as pn, aj as Al, ak as Fl, al as at, am as Qt, an as Tl, ao as Sn, ap as kn, aq as Zt, ar as Dl, as as Cn, at as Vn, au as xn, av as In, aw as wn, ax as Me, ay as el, az as _n, aA as Pn, aB as An, aC as Fn, aD as Tn, aE as Dn, aF as Bn, aG as En, aH as tl, aI as Nn, aJ as $n, aK as On, aL as mt, aM as Rn, aN as Ln, aO as Mn, aP as Hn } from "./dataTables-vJ0uHxvT.js";
|
|
5
5
|
import { createSharedComposable as zn } from "@vueuse/core";
|
|
6
6
|
const gt = vl("datatables", () => {
|
|
7
7
|
const e = R([]), a = ({ table_id: i }) => {
|
|
8
|
-
const
|
|
8
|
+
const v = e.value.findIndex(
|
|
9
9
|
(o) => o.id === i
|
|
10
10
|
), u = {
|
|
11
11
|
search: {
|
|
@@ -23,21 +23,21 @@ const gt = vl("datatables", () => {
|
|
|
23
23
|
state: {}
|
|
24
24
|
}
|
|
25
25
|
};
|
|
26
|
-
|
|
26
|
+
v !== -1 && e.value.splice(v, 1), e.value.push({ id: i, ...u });
|
|
27
27
|
}, n = async (i) => {
|
|
28
28
|
const u = new TextEncoder().encode(i), o = await crypto.subtle.digest("SHA-256", u);
|
|
29
29
|
return Array.from(new Uint8Array(o)).map((m) => m.toString(16).padStart(2, "0")).join("");
|
|
30
|
-
}, t = ({ table_id: i, headers:
|
|
31
|
-
n(JSON.stringify(
|
|
30
|
+
}, t = ({ table_id: i, headers: v }) => {
|
|
31
|
+
n(JSON.stringify(v ?? [])).then((u) => {
|
|
32
32
|
l({ table_id: i, name: "options", value: { hash: u } });
|
|
33
33
|
});
|
|
34
|
-
}, l = ({ table_id: i, name:
|
|
34
|
+
}, l = ({ table_id: i, name: v, value: u }) => {
|
|
35
35
|
e.value = e.value.map((o) => {
|
|
36
|
-
if (o.id === i && o.hasOwnProperty(
|
|
37
|
-
const
|
|
38
|
-
if (
|
|
36
|
+
if (o.id === i && o.hasOwnProperty(v)) {
|
|
37
|
+
const f = o[v];
|
|
38
|
+
if (f && typeof u == "object")
|
|
39
39
|
for (const y in u)
|
|
40
|
-
y in
|
|
40
|
+
y in f && (f[y] = u[y]);
|
|
41
41
|
}
|
|
42
42
|
return o;
|
|
43
43
|
});
|
|
@@ -48,10 +48,10 @@ const gt = vl("datatables", () => {
|
|
|
48
48
|
// Store Methods
|
|
49
49
|
addTable: a,
|
|
50
50
|
setData: l,
|
|
51
|
-
restoreData: ({ table_id: i, data:
|
|
52
|
-
e.value = e.value.map((u) => (u.id === i && (u =
|
|
51
|
+
restoreData: ({ table_id: i, data: v }) => {
|
|
52
|
+
e.value = e.value.map((u) => (u.id === i && (u = v), u));
|
|
53
53
|
},
|
|
54
|
-
getCurrentTable: (i) => e.value.find((
|
|
54
|
+
getCurrentTable: (i) => e.value.find((v) => v.id === i),
|
|
55
55
|
// Hash
|
|
56
56
|
hashString: n,
|
|
57
57
|
setTableHash: t
|
|
@@ -60,9 +60,9 @@ const gt = vl("datatables", () => {
|
|
|
60
60
|
function tt() {
|
|
61
61
|
const { setData: e, getCurrentTable: a } = gt(), n = ye("table_props"), t = V(() => a(n.id)), l = V(() => t.value.search?.query), s = V(() => {
|
|
62
62
|
if (!n?.headers.length) return null;
|
|
63
|
-
const
|
|
64
|
-
return (t.value.options?.columns.sorted ?? []).filter((
|
|
65
|
-
(
|
|
63
|
+
const v = t.value.options?.columns.selected ?? [];
|
|
64
|
+
return (t.value.options?.columns.sorted ?? []).filter((f) => v.includes(f)).map(
|
|
65
|
+
(f) => n.headers.find((y) => y.key === f)
|
|
66
66
|
);
|
|
67
67
|
}), c = V(() => t.value.hardFilters?.query), r = V(() => t.value.advancedFilters?.query);
|
|
68
68
|
return {
|
|
@@ -71,12 +71,12 @@ function tt() {
|
|
|
71
71
|
advancedFiltersState: r,
|
|
72
72
|
hardFiltersState: c,
|
|
73
73
|
headersState: s,
|
|
74
|
-
saveTableOptions: (
|
|
74
|
+
saveTableOptions: (v) => {
|
|
75
75
|
e({
|
|
76
76
|
table_id: n.id,
|
|
77
77
|
name: "options",
|
|
78
78
|
value: {
|
|
79
|
-
state:
|
|
79
|
+
state: v
|
|
80
80
|
}
|
|
81
81
|
});
|
|
82
82
|
}
|
|
@@ -96,14 +96,14 @@ function Bl(e) {
|
|
|
96
96
|
const i = async (y) => {
|
|
97
97
|
if (s.value) return;
|
|
98
98
|
s.value = !0, await me();
|
|
99
|
-
const m =
|
|
99
|
+
const m = v(), h = m.findIndex(
|
|
100
100
|
(S) => S.id === e.id
|
|
101
101
|
);
|
|
102
102
|
h > -1 ? m[h] = y : m.push(y), localStorage.setItem("datatables-state", JSON.stringify(m)), s.value = !1;
|
|
103
|
-
},
|
|
103
|
+
}, v = () => {
|
|
104
104
|
const y = localStorage.getItem("datatables-state");
|
|
105
105
|
return JSON.parse(y ?? "[]");
|
|
106
|
-
}, u = () =>
|
|
106
|
+
}, u = () => v().find((h) => h.id === e.id);
|
|
107
107
|
return {
|
|
108
108
|
saving: s,
|
|
109
109
|
dataStateGet: u,
|
|
@@ -334,13 +334,13 @@ const Un = L({
|
|
|
334
334
|
colorStyles: r,
|
|
335
335
|
variantClasses: i
|
|
336
336
|
} = ml(e), {
|
|
337
|
-
densityClasses:
|
|
337
|
+
densityClasses: v
|
|
338
338
|
} = rt(e), {
|
|
339
339
|
dimensionStyles: u
|
|
340
340
|
} = Je(e), {
|
|
341
341
|
elevationClasses: o
|
|
342
342
|
} = Tt(e), {
|
|
343
|
-
loaderClasses:
|
|
343
|
+
loaderClasses: f
|
|
344
344
|
} = gl(e), {
|
|
345
345
|
locationStyles: y
|
|
346
346
|
} = Dt(e), {
|
|
@@ -360,7 +360,7 @@ const Un = L({
|
|
|
360
360
|
"v-card--flat": e.flat,
|
|
361
361
|
"v-card--hover": e.hover && !(e.disabled || e.flat),
|
|
362
362
|
"v-card--link": D
|
|
363
|
-
}, l.value, s.value, c.value,
|
|
363
|
+
}, l.value, s.value, c.value, v.value, o.value, f.value, m.value, h.value, i.value, e.class],
|
|
364
364
|
style: [r.value, u.value, y.value, e.style],
|
|
365
365
|
onClick: D && S.navigate,
|
|
366
366
|
tabindex: e.disabled ? -1 : void 0
|
|
@@ -542,14 +542,14 @@ function Qn(e) {
|
|
|
542
542
|
}
|
|
543
543
|
}), {
|
|
544
544
|
textColorClasses: i,
|
|
545
|
-
textColorStyles:
|
|
545
|
+
textColorStyles: v
|
|
546
546
|
} = ct(() => {
|
|
547
547
|
if (!(e.error || e.disabled))
|
|
548
548
|
return r.value ? e.color : e.baseColor;
|
|
549
549
|
}), {
|
|
550
550
|
backgroundColorClasses: u,
|
|
551
551
|
backgroundColorStyles: o
|
|
552
|
-
} = dt(() => r.value && !e.error && !e.disabled ? e.color : e.baseColor),
|
|
552
|
+
} = dt(() => r.value && !e.error && !e.disabled ? e.color : e.baseColor), f = V(() => r.value ? e.trueIcon : e.falseIcon);
|
|
553
553
|
return {
|
|
554
554
|
group: a,
|
|
555
555
|
densityClasses: n,
|
|
@@ -557,10 +557,10 @@ function Qn(e) {
|
|
|
557
557
|
falseValue: s,
|
|
558
558
|
model: r,
|
|
559
559
|
textColorClasses: i,
|
|
560
|
-
textColorStyles:
|
|
560
|
+
textColorStyles: v,
|
|
561
561
|
backgroundColorClasses: u,
|
|
562
562
|
backgroundColorStyles: o,
|
|
563
|
-
icon:
|
|
563
|
+
icon: f
|
|
564
564
|
};
|
|
565
565
|
}
|
|
566
566
|
const ll = J()({
|
|
@@ -584,10 +584,10 @@ const ll = J()({
|
|
|
584
584
|
icon: c,
|
|
585
585
|
model: r,
|
|
586
586
|
textColorClasses: i,
|
|
587
|
-
textColorStyles:
|
|
587
|
+
textColorStyles: v,
|
|
588
588
|
backgroundColorClasses: u,
|
|
589
589
|
backgroundColorStyles: o,
|
|
590
|
-
trueValue:
|
|
590
|
+
trueValue: f
|
|
591
591
|
} = Qn(e), y = De(), m = ne(!1), h = ne(!1), S = R(), k = T(() => e.id || `input-${y}`), w = T(() => !e.disabled && !e.readonly);
|
|
592
592
|
l?.onForceUpdate(() => {
|
|
593
593
|
S.value && (S.value.checked = r.value);
|
|
@@ -625,7 +625,7 @@ const ll = J()({
|
|
|
625
625
|
"aria-disabled": !!e.disabled,
|
|
626
626
|
"aria-label": e.label,
|
|
627
627
|
type: e.type,
|
|
628
|
-
value:
|
|
628
|
+
value: f.value,
|
|
629
629
|
name: e.name,
|
|
630
630
|
"aria-checked": e.type === "checkbox" ? r.value : void 0
|
|
631
631
|
}, B), null);
|
|
@@ -642,7 +642,7 @@ const ll = J()({
|
|
|
642
642
|
style: e.style
|
|
643
643
|
}), [C("div", {
|
|
644
644
|
class: ae(["v-selection-control__wrapper", i.value]),
|
|
645
|
-
style: be(
|
|
645
|
+
style: be(v.value)
|
|
646
646
|
}, [t.default?.({
|
|
647
647
|
backgroundColorClasses: u,
|
|
648
648
|
backgroundColorStyles: o
|
|
@@ -651,7 +651,7 @@ const ll = J()({
|
|
|
651
651
|
}, [t.input?.({
|
|
652
652
|
model: r,
|
|
653
653
|
textColorClasses: i,
|
|
654
|
-
textColorStyles:
|
|
654
|
+
textColorStyles: v,
|
|
655
655
|
backgroundColorClasses: u,
|
|
656
656
|
backgroundColorStyles: o,
|
|
657
657
|
inputNode: z,
|
|
@@ -708,7 +708,7 @@ const ll = J()({
|
|
|
708
708
|
const i = Ze(ll.filterProps(e), ["modelValue"]);
|
|
709
709
|
return d(ll, U(i, {
|
|
710
710
|
modelValue: l.value,
|
|
711
|
-
"onUpdate:modelValue": [(
|
|
711
|
+
"onUpdate:modelValue": [(v) => l.value = v, s],
|
|
712
712
|
class: ["v-checkbox-btn", e.class],
|
|
713
713
|
style: e.style,
|
|
714
714
|
type: "checkbox",
|
|
@@ -736,7 +736,7 @@ function Ll(e) {
|
|
|
736
736
|
appendInner: "appendAction",
|
|
737
737
|
clear: "clear"
|
|
738
738
|
}[l], i = e[`onClick:${l}`];
|
|
739
|
-
function
|
|
739
|
+
function v(o) {
|
|
740
740
|
o.key !== "Enter" && o.key !== " " || (o.preventDefault(), o.stopPropagation(), Vl(i, new PointerEvent("click", o)));
|
|
741
741
|
}
|
|
742
742
|
const u = i && r ? a(`$vuetify.input.${r}`, e.label ?? "") : void 0;
|
|
@@ -744,7 +744,7 @@ function Ll(e) {
|
|
|
744
744
|
icon: e[`${l}Icon`],
|
|
745
745
|
"aria-label": u,
|
|
746
746
|
onClick: i,
|
|
747
|
-
onKeydown:
|
|
747
|
+
onKeydown: v,
|
|
748
748
|
color: s
|
|
749
749
|
}, c), null);
|
|
750
750
|
}
|
|
@@ -864,7 +864,7 @@ const aa = L({
|
|
|
864
864
|
}, "validation");
|
|
865
865
|
function oa(e) {
|
|
866
866
|
let a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Il(), n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : De();
|
|
867
|
-
const t = pe(e, "modelValue"), l = V(() => e.validationValue === void 0 ? t.value : e.validationValue), s = Ut(e), c = na(() => e.rules), r = R([]), i = ne(!0),
|
|
867
|
+
const t = pe(e, "modelValue"), l = V(() => e.validationValue === void 0 ? t.value : e.validationValue), s = Ut(e), c = na(() => e.rules), r = R([]), i = ne(!0), v = V(() => !!(Ae(t.value === "" ? null : t.value).length || Ae(l.value === "" ? null : l.value).length)), u = V(() => e.errorMessages?.length ? Ae(e.errorMessages).concat(r.value).slice(0, Math.max(0, Number(e.maxErrors))) : r.value), o = V(() => {
|
|
868
868
|
let F = (e.validateOn ?? s.validateOn?.value) || "input";
|
|
869
869
|
F === "lazy" && (F = "input lazy"), F === "eager" && (F = "input eager");
|
|
870
870
|
const _ = new Set(F?.split(" ") ?? []);
|
|
@@ -875,9 +875,9 @@ function oa(e) {
|
|
|
875
875
|
lazy: _.has("lazy"),
|
|
876
876
|
eager: _.has("eager")
|
|
877
877
|
};
|
|
878
|
-
}),
|
|
879
|
-
[`${a}--error`]:
|
|
880
|
-
[`${a}--dirty`]:
|
|
878
|
+
}), f = V(() => e.error || e.errorMessages?.length ? !1 : e.rules.length ? i.value ? r.value.length || o.value.lazy ? null : !0 : !r.value.length : !0), y = ne(!1), m = V(() => ({
|
|
879
|
+
[`${a}--error`]: f.value === !1,
|
|
880
|
+
[`${a}--dirty`]: v.value,
|
|
881
881
|
[`${a}--disabled`]: s.isDisabled.value,
|
|
882
882
|
[`${a}--readonly`]: s.isReadonly.value
|
|
883
883
|
})), h = wl("validation"), S = V(() => e.name ?? E(n));
|
|
@@ -892,8 +892,8 @@ function oa(e) {
|
|
|
892
892
|
}), dl(() => {
|
|
893
893
|
s.unregister?.(S.value);
|
|
894
894
|
}), Ne(async () => {
|
|
895
|
-
o.value.lazy || await D(!o.value.eager), s.update?.(S.value,
|
|
896
|
-
}), Ct(() => o.value.input || o.value.invalidInput &&
|
|
895
|
+
o.value.lazy || await D(!o.value.eager), s.update?.(S.value, f.value, u.value);
|
|
896
|
+
}), Ct(() => o.value.input || o.value.invalidInput && f.value === !1, () => {
|
|
897
897
|
ie(l, () => {
|
|
898
898
|
if (l.value != null)
|
|
899
899
|
D();
|
|
@@ -907,8 +907,8 @@ function oa(e) {
|
|
|
907
907
|
ie(() => e.focused, (F) => {
|
|
908
908
|
F || D();
|
|
909
909
|
});
|
|
910
|
-
}), ie([
|
|
911
|
-
s.update?.(S.value,
|
|
910
|
+
}), ie([f, u], () => {
|
|
911
|
+
s.update?.(S.value, f.value, u.value);
|
|
912
912
|
});
|
|
913
913
|
async function k() {
|
|
914
914
|
t.value = null, await me(), await w();
|
|
@@ -936,11 +936,11 @@ function oa(e) {
|
|
|
936
936
|
}
|
|
937
937
|
return {
|
|
938
938
|
errorMessages: u,
|
|
939
|
-
isDirty:
|
|
939
|
+
isDirty: v,
|
|
940
940
|
isDisabled: s.isDisabled,
|
|
941
941
|
isReadonly: s.isReadonly,
|
|
942
942
|
isPristine: i,
|
|
943
|
-
isValid:
|
|
943
|
+
isValid: f,
|
|
944
944
|
isValidating: y,
|
|
945
945
|
reset: k,
|
|
946
946
|
resetValidation: w,
|
|
@@ -1003,9 +1003,9 @@ const jt = L({
|
|
|
1003
1003
|
} = Re(e), {
|
|
1004
1004
|
rtlClasses: i
|
|
1005
1005
|
} = vt(), {
|
|
1006
|
-
InputIcon:
|
|
1006
|
+
InputIcon: v
|
|
1007
1007
|
} = Ll(e), u = De(), o = V(() => e.id || `input-${u}`), {
|
|
1008
|
-
errorMessages:
|
|
1008
|
+
errorMessages: f,
|
|
1009
1009
|
isDirty: y,
|
|
1010
1010
|
isDisabled: m,
|
|
1011
1011
|
isReadonly: h,
|
|
@@ -1016,7 +1016,7 @@ const jt = L({
|
|
|
1016
1016
|
resetValidation: F,
|
|
1017
1017
|
validate: _,
|
|
1018
1018
|
validationClasses: $
|
|
1019
|
-
} = oa(e, "v-input", o), P = V(() => e.errorMessages?.length || !S.value &&
|
|
1019
|
+
} = oa(e, "v-input", o), P = V(() => e.errorMessages?.length || !S.value && f.value.length ? f.value : e.hint && (e.persistentHint || e.focused) ? e.hint : e.messages), I = T(() => P.value.length > 0), B = T(() => !e.hideDetails || e.hideDetails === "auto" && (I.value || !!t.details)), z = V(() => B.value ? `${o.value}-messages` : void 0), j = V(() => ({
|
|
1020
1020
|
id: o,
|
|
1021
1021
|
messagesId: z,
|
|
1022
1022
|
isDirty: y,
|
|
@@ -1046,7 +1046,7 @@ const jt = L({
|
|
|
1046
1046
|
}, [K && C("div", {
|
|
1047
1047
|
key: "prepend",
|
|
1048
1048
|
class: "v-input__prepend"
|
|
1049
|
-
}, [t.prepend?.(j.value), e.prependIcon && d(
|
|
1049
|
+
}, [t.prepend?.(j.value), e.prependIcon && d(v, {
|
|
1050
1050
|
key: "prepend-icon",
|
|
1051
1051
|
name: "prepend",
|
|
1052
1052
|
color: Z.value
|
|
@@ -1055,7 +1055,7 @@ const jt = L({
|
|
|
1055
1055
|
}, [t.default?.(j.value)]), ce && C("div", {
|
|
1056
1056
|
key: "append",
|
|
1057
1057
|
class: "v-input__append"
|
|
1058
|
-
}, [e.appendIcon && d(
|
|
1058
|
+
}, [e.appendIcon && d(v, {
|
|
1059
1059
|
key: "append-icon",
|
|
1060
1060
|
name: "append",
|
|
1061
1061
|
color: Z.value
|
|
@@ -1075,7 +1075,7 @@ const jt = L({
|
|
|
1075
1075
|
resetValidation: F,
|
|
1076
1076
|
validate: _,
|
|
1077
1077
|
isValid: k,
|
|
1078
|
-
errorMessages:
|
|
1078
|
+
errorMessages: f
|
|
1079
1079
|
};
|
|
1080
1080
|
}
|
|
1081
1081
|
}), sa = L({
|
|
@@ -1098,16 +1098,16 @@ const jt = L({
|
|
|
1098
1098
|
isFocused: s,
|
|
1099
1099
|
focus: c,
|
|
1100
1100
|
blur: r
|
|
1101
|
-
} = zt(e), i = R(),
|
|
1101
|
+
} = zt(e), i = R(), v = De();
|
|
1102
1102
|
return te(() => {
|
|
1103
|
-
const [u, o] = Ot(n),
|
|
1103
|
+
const [u, o] = Ot(n), f = ot.filterProps(e), y = It.filterProps(e);
|
|
1104
1104
|
return d(ot, U({
|
|
1105
1105
|
ref: i,
|
|
1106
1106
|
class: ["v-checkbox", e.class]
|
|
1107
|
-
}, u,
|
|
1107
|
+
}, u, f, {
|
|
1108
1108
|
modelValue: l.value,
|
|
1109
1109
|
"onUpdate:modelValue": (m) => l.value = m,
|
|
1110
|
-
id: e.id || `checkbox-${
|
|
1110
|
+
id: e.id || `checkbox-${v}`,
|
|
1111
1111
|
focused: s.value,
|
|
1112
1112
|
style: e.style
|
|
1113
1113
|
}), {
|
|
@@ -1168,17 +1168,17 @@ const jt = L({
|
|
|
1168
1168
|
scopeId: s
|
|
1169
1169
|
} = gn(), c = R();
|
|
1170
1170
|
async function r(o) {
|
|
1171
|
-
const
|
|
1172
|
-
await me(), l.value &&
|
|
1171
|
+
const f = o.relatedTarget, y = o.target;
|
|
1172
|
+
await me(), l.value && f !== y && c.value?.contentEl && // We're the topmost dialog
|
|
1173
1173
|
c.value?.globalTop && // It isn't the document or the dialog body
|
|
1174
1174
|
![document, c.value.contentEl].includes(y) && // It isn't inside the dialog body
|
|
1175
1175
|
!c.value.contentEl.contains(y) && Vt(c.value.contentEl)[0]?.focus();
|
|
1176
1176
|
}
|
|
1177
1177
|
function i(o) {
|
|
1178
1178
|
if (o.key !== "Tab" || !c.value?.contentEl) return;
|
|
1179
|
-
const
|
|
1180
|
-
if (!
|
|
1181
|
-
const y =
|
|
1179
|
+
const f = Vt(c.value.contentEl);
|
|
1180
|
+
if (!f.length) return;
|
|
1181
|
+
const y = f[0], m = f[f.length - 1], h = document.activeElement;
|
|
1182
1182
|
o.shiftKey && h === y ? (o.preventDefault(), m.focus()) : !o.shiftKey && h === m && (o.preventDefault(), y.focus());
|
|
1183
1183
|
}
|
|
1184
1184
|
dl(() => {
|
|
@@ -1190,7 +1190,7 @@ const jt = L({
|
|
|
1190
1190
|
}, {
|
|
1191
1191
|
immediate: !0
|
|
1192
1192
|
});
|
|
1193
|
-
function
|
|
1193
|
+
function v() {
|
|
1194
1194
|
n("afterEnter"), (e.scrim || e.retainFocus) && c.value?.contentEl && !c.value.contentEl.contains(document.activeElement) && c.value.contentEl.focus({
|
|
1195
1195
|
preventScroll: !0
|
|
1196
1196
|
});
|
|
@@ -1203,7 +1203,7 @@ const jt = L({
|
|
|
1203
1203
|
preventScroll: !0
|
|
1204
1204
|
}));
|
|
1205
1205
|
}), te(() => {
|
|
1206
|
-
const o = Xt.filterProps(e),
|
|
1206
|
+
const o = Xt.filterProps(e), f = U({
|
|
1207
1207
|
"aria-haspopup": "dialog"
|
|
1208
1208
|
}, e.activatorProps), y = U({
|
|
1209
1209
|
tabindex: -1
|
|
@@ -1219,14 +1219,14 @@ const jt = L({
|
|
|
1219
1219
|
modelValue: l.value,
|
|
1220
1220
|
"onUpdate:modelValue": (m) => l.value = m,
|
|
1221
1221
|
"aria-modal": "true",
|
|
1222
|
-
activatorProps:
|
|
1222
|
+
activatorProps: f,
|
|
1223
1223
|
contentProps: y,
|
|
1224
1224
|
height: e.fullscreen ? void 0 : e.height,
|
|
1225
1225
|
width: e.fullscreen ? void 0 : e.width,
|
|
1226
1226
|
maxHeight: e.fullscreen ? void 0 : e.maxHeight,
|
|
1227
1227
|
maxWidth: e.fullscreen ? void 0 : e.maxWidth,
|
|
1228
1228
|
role: "dialog",
|
|
1229
|
-
onAfterEnter:
|
|
1229
|
+
onAfterEnter: v,
|
|
1230
1230
|
onAfterLeave: u
|
|
1231
1231
|
}, s), {
|
|
1232
1232
|
activator: t.activator,
|
|
@@ -1245,7 +1245,7 @@ const jt = L({
|
|
|
1245
1245
|
}), ra = { class: "text-medium-emphasis ps-2" }, ca = {
|
|
1246
1246
|
__name: "index",
|
|
1247
1247
|
setup(e, { expose: a }) {
|
|
1248
|
-
const n = ye("table_props"), t = ye("pluginOptions"), { tableState: l } = tt(), { tableDataState: s } = Bl(n), c = R(0), r = R(null), i = R(!1),
|
|
1248
|
+
const n = ye("table_props"), t = ye("pluginOptions"), { tableState: l } = tt(), { tableDataState: s } = Bl(n), c = R(0), r = R(null), i = R(!1), v = R([]), u = R([]), o = R([]), f = () => {
|
|
1249
1249
|
i.value = !0;
|
|
1250
1250
|
};
|
|
1251
1251
|
Ne(async () => {
|
|
@@ -1256,12 +1256,12 @@ const jt = L({
|
|
|
1256
1256
|
});
|
|
1257
1257
|
JSON.stringify(h) !== JSON.stringify(o.value) && (o.value = h);
|
|
1258
1258
|
}
|
|
1259
|
-
}), u.value = l.value.options.columns?.selected, o.value = l.value.options.columns?.sorted,
|
|
1259
|
+
}), u.value = l.value.options.columns?.selected, o.value = l.value.options.columns?.sorted, v.value = o.value.map((m) => n.headers.find((h) => h.key === m));
|
|
1260
1260
|
});
|
|
1261
1261
|
const y = () => {
|
|
1262
1262
|
(JSON.stringify(u.value) !== JSON.stringify(l.value.options.columns?.selected) || JSON.stringify(o.value) !== JSON.stringify(l.value.options.columns?.sorted)) && (s.value.options.columns.selected = u.value, s.value.options.columns.sorted = o.value), i.value = !1;
|
|
1263
1263
|
};
|
|
1264
|
-
return a({ openDialog:
|
|
1264
|
+
return a({ openDialog: f }), (m, h) => (Q(), fe(Gt, {
|
|
1265
1265
|
modelValue: E(i),
|
|
1266
1266
|
"onUpdate:modelValue": h[1] || (h[1] = (S) => $e(i) ? i.value = S : null),
|
|
1267
1267
|
"max-width": "500",
|
|
@@ -1290,7 +1290,7 @@ const jt = L({
|
|
|
1290
1290
|
ref: r
|
|
1291
1291
|
}, {
|
|
1292
1292
|
default: Y(() => [
|
|
1293
|
-
(Q(!0), Ee(ue, null, wt(E(
|
|
1293
|
+
(Q(!0), Ee(ue, null, wt(E(v), (k, w) => (Q(), fe(nt, {
|
|
1294
1294
|
key: `${E(c)}-${w}`,
|
|
1295
1295
|
title: k?.title,
|
|
1296
1296
|
"header-keys": k?.key,
|
|
@@ -1368,8 +1368,8 @@ function ht(e, a, n) {
|
|
|
1368
1368
|
return l;
|
|
1369
1369
|
}
|
|
1370
1370
|
async function nl(e, a, n, t) {
|
|
1371
|
-
const l = n ? "scrollLeft" : "scrollTop", s = xt(t?.options ?? fa(), a), c = t?.rtl.value, r = (typeof e == "number" ? e : Kt(e)) ?? 0, i = s.container === "parent" && r instanceof HTMLElement ? r.parentElement : va(s.container),
|
|
1372
|
-
if (!
|
|
1371
|
+
const l = n ? "scrollLeft" : "scrollTop", s = xt(t?.options ?? fa(), a), c = t?.rtl.value, r = (typeof e == "number" ? e : Kt(e)) ?? 0, i = s.container === "parent" && r instanceof HTMLElement ? r.parentElement : va(s.container), v = Pl() ? s.patterns.instant : typeof s.easing == "function" ? s.easing : s.patterns[s.easing];
|
|
1372
|
+
if (!v) throw new TypeError(`Easing function "${s.easing}" not found.`);
|
|
1373
1373
|
let u;
|
|
1374
1374
|
if (typeof r == "number")
|
|
1375
1375
|
u = ht(r, n, c);
|
|
@@ -1380,9 +1380,9 @@ async function nl(e, a, n, t) {
|
|
|
1380
1380
|
u += s.offset, u = ga(i, u, !!c, !!n);
|
|
1381
1381
|
const o = i[l] ?? 0;
|
|
1382
1382
|
if (u === o) return Promise.resolve(u);
|
|
1383
|
-
const
|
|
1383
|
+
const f = performance.now();
|
|
1384
1384
|
return new Promise((y) => requestAnimationFrame(function m(h) {
|
|
1385
|
-
const k = (h -
|
|
1385
|
+
const k = (h - f) / s.duration, w = Math.floor(o + (u - o) * v(Fe(k, 0, 1)));
|
|
1386
1386
|
if (i[l] = w, k >= 1 && Math.abs(w - i[l]) < 10)
|
|
1387
1387
|
return y(u);
|
|
1388
1388
|
if (k > 2)
|
|
@@ -1411,8 +1411,8 @@ function ga(e, a, n, t) {
|
|
|
1411
1411
|
scrollWidth: l,
|
|
1412
1412
|
scrollHeight: s
|
|
1413
1413
|
} = e, [c, r] = e === document.scrollingElement ? [window.innerWidth, window.innerHeight] : [e.offsetWidth, e.offsetHeight];
|
|
1414
|
-
let i,
|
|
1415
|
-
return t ? n ? (i = -(l - c),
|
|
1414
|
+
let i, v;
|
|
1415
|
+
return t ? n ? (i = -(l - c), v = 0) : (i = 0, v = l - c) : (i = 0, v = s + -r), Fe(a, i, v);
|
|
1416
1416
|
}
|
|
1417
1417
|
function ya(e) {
|
|
1418
1418
|
let {
|
|
@@ -1421,8 +1421,8 @@ function ya(e) {
|
|
|
1421
1421
|
isRtl: t,
|
|
1422
1422
|
isHorizontal: l
|
|
1423
1423
|
} = e;
|
|
1424
|
-
const s = Ke(l, n), c = Hl(l, t, n), r = Ke(l, a), i = zl(l, a),
|
|
1425
|
-
return c > i ? i -
|
|
1424
|
+
const s = Ke(l, n), c = Hl(l, t, n), r = Ke(l, a), i = zl(l, a), v = r * 0.4;
|
|
1425
|
+
return c > i ? i - v : c + s < i + r ? i - s + r + v : c;
|
|
1426
1426
|
}
|
|
1427
1427
|
function ba(e) {
|
|
1428
1428
|
let {
|
|
@@ -1505,14 +1505,14 @@ const Ul = Symbol.for("vuetify:v-slide-group"), jl = L({
|
|
|
1505
1505
|
} = vt(), {
|
|
1506
1506
|
displayClasses: l,
|
|
1507
1507
|
mobile: s
|
|
1508
|
-
} = Al(e), c = Fl(e, e.symbol), r = ne(!1), i = ne(0),
|
|
1509
|
-
resizeRef:
|
|
1508
|
+
} = Al(e), c = Fl(e, e.symbol), r = ne(!1), i = ne(0), v = ne(0), u = ne(0), o = V(() => e.direction === "horizontal"), {
|
|
1509
|
+
resizeRef: f,
|
|
1510
1510
|
contentRect: y
|
|
1511
1511
|
} = at(), {
|
|
1512
1512
|
resizeRef: m,
|
|
1513
1513
|
contentRect: h
|
|
1514
1514
|
} = at(), S = ma(), k = V(() => ({
|
|
1515
|
-
container:
|
|
1515
|
+
container: f.el,
|
|
1516
1516
|
duration: 200,
|
|
1517
1517
|
easing: "easeOutQuart"
|
|
1518
1518
|
})), w = V(() => c.selected.value.length ? c.items.value.findIndex((b) => b.id === c.selected.value[0]) : -1), D = V(() => c.selected.value.length ? c.items.value.findIndex((b) => b.id === c.selected.value[c.selected.value.length - 1]) : -1);
|
|
@@ -1522,7 +1522,7 @@ const Ul = Symbol.for("vuetify:v-slide-group"), jl = L({
|
|
|
1522
1522
|
cancelAnimationFrame(b), b = requestAnimationFrame(() => {
|
|
1523
1523
|
if (y.value && h.value) {
|
|
1524
1524
|
const g = o.value ? "width" : "height";
|
|
1525
|
-
|
|
1525
|
+
v.value = y.value[g], u.value = h.value[g], r.value = v.value + 1 < u.value;
|
|
1526
1526
|
}
|
|
1527
1527
|
if (e.scrollToActive && w.value >= 0 && m.el) {
|
|
1528
1528
|
const g = m.el.children[D.value];
|
|
@@ -1535,26 +1535,26 @@ const Ul = Symbol.for("vuetify:v-slide-group"), jl = L({
|
|
|
1535
1535
|
function _(b, g) {
|
|
1536
1536
|
let x = 0;
|
|
1537
1537
|
g ? x = ba({
|
|
1538
|
-
containerElement:
|
|
1538
|
+
containerElement: f.el,
|
|
1539
1539
|
isHorizontal: o.value,
|
|
1540
1540
|
selectedElement: b
|
|
1541
1541
|
}) : x = ya({
|
|
1542
|
-
containerElement:
|
|
1542
|
+
containerElement: f.el,
|
|
1543
1543
|
isHorizontal: o.value,
|
|
1544
1544
|
isRtl: t.value,
|
|
1545
1545
|
selectedElement: b
|
|
1546
1546
|
}), $(x);
|
|
1547
1547
|
}
|
|
1548
1548
|
function $(b) {
|
|
1549
|
-
if (!Ge || !
|
|
1550
|
-
const g = Ke(o.value,
|
|
1551
|
-
if (!(al(o.value,
|
|
1549
|
+
if (!Ge || !f.el) return;
|
|
1550
|
+
const g = Ke(o.value, f.el), x = Hl(o.value, t.value, f.el);
|
|
1551
|
+
if (!(al(o.value, f.el) <= g || // Prevent scrolling by only a couple of pixels, which doesn't look smooth
|
|
1552
1552
|
Math.abs(b - x) < 16)) {
|
|
1553
|
-
if (o.value && t.value &&
|
|
1553
|
+
if (o.value && t.value && f.el) {
|
|
1554
1554
|
const {
|
|
1555
1555
|
scrollWidth: M,
|
|
1556
1556
|
offsetWidth: W
|
|
1557
|
-
} =
|
|
1557
|
+
} = f.el;
|
|
1558
1558
|
b = M - W - b;
|
|
1559
1559
|
}
|
|
1560
1560
|
o.value ? S.horizontal(b, k.value) : S(b, k.value);
|
|
@@ -1617,13 +1617,13 @@ const Ul = Symbol.for("vuetify:v-slide-group"), jl = L({
|
|
|
1617
1617
|
});
|
|
1618
1618
|
}
|
|
1619
1619
|
function q(b) {
|
|
1620
|
-
const g = o.value && t.value ? -1 : 1, x = (b === "prev" ? -g : g) *
|
|
1620
|
+
const g = o.value && t.value ? -1 : 1, x = (b === "prev" ? -g : g) * v.value;
|
|
1621
1621
|
let N = i.value + x;
|
|
1622
|
-
if (o.value && t.value &&
|
|
1622
|
+
if (o.value && t.value && f.el) {
|
|
1623
1623
|
const {
|
|
1624
1624
|
scrollWidth: M,
|
|
1625
1625
|
offsetWidth: W
|
|
1626
|
-
} =
|
|
1626
|
+
} = f.el;
|
|
1627
1627
|
N += M - W;
|
|
1628
1628
|
}
|
|
1629
1629
|
$(N);
|
|
@@ -1655,8 +1655,8 @@ const Ul = Symbol.for("vuetify:v-slide-group"), jl = L({
|
|
|
1655
1655
|
return !s.value && se.value;
|
|
1656
1656
|
}
|
|
1657
1657
|
}), A = V(() => Math.abs(i.value) > 1), p = V(() => {
|
|
1658
|
-
if (!
|
|
1659
|
-
const b = al(o.value,
|
|
1658
|
+
if (!f.value || !se.value) return !1;
|
|
1659
|
+
const b = al(o.value, f.el), g = ha(o.value, f.el);
|
|
1660
1660
|
return b - g - Math.abs(i.value) > 1;
|
|
1661
1661
|
});
|
|
1662
1662
|
return te(() => d(e.tag, {
|
|
@@ -1682,7 +1682,7 @@ const Ul = Symbol.for("vuetify:v-slide-group"), jl = L({
|
|
|
1682
1682
|
}, null)]
|
|
1683
1683
|
})]), C("div", {
|
|
1684
1684
|
key: "container",
|
|
1685
|
-
ref:
|
|
1685
|
+
ref: f,
|
|
1686
1686
|
class: ae(["v-slide-group__container", e.contentClass]),
|
|
1687
1687
|
onScroll: P
|
|
1688
1688
|
}, [C("div", {
|
|
@@ -1760,8 +1760,8 @@ const Ul = Symbol.for("vuetify:v-slide-group"), jl = L({
|
|
|
1760
1760
|
variant: T(() => e.variant)
|
|
1761
1761
|
}
|
|
1762
1762
|
}), te(() => {
|
|
1763
|
-
const
|
|
1764
|
-
return d(ol, U(
|
|
1763
|
+
const v = ol.filterProps(e);
|
|
1764
|
+
return d(ol, U(v, {
|
|
1765
1765
|
class: ["v-chip-group", {
|
|
1766
1766
|
"v-chip-group--column": e.column
|
|
1767
1767
|
}, t.value, e.class],
|
|
@@ -1861,19 +1861,19 @@ const Ul = Symbol.for("vuetify:v-slide-group"), jl = L({
|
|
|
1861
1861
|
} = rt(e), {
|
|
1862
1862
|
elevationClasses: i
|
|
1863
1863
|
} = Tt(e), {
|
|
1864
|
-
roundedClasses:
|
|
1864
|
+
roundedClasses: v
|
|
1865
1865
|
} = Ye(e), {
|
|
1866
1866
|
sizeClasses: u
|
|
1867
1867
|
} = kn(e), {
|
|
1868
1868
|
themeClasses: o
|
|
1869
|
-
} = Re(e),
|
|
1869
|
+
} = Re(e), f = pe(e, "modelValue"), y = Zt(e, Gl, !1), m = Zt(e, Ul, !1), h = bl(e, n), S = T(() => e.link !== !1 && h.isLink.value), k = V(() => !e.disabled && e.link !== !1 && (!!y || e.link || h.isClickable.value)), w = T(() => ({
|
|
1870
1870
|
"aria-label": s(e.closeLabel),
|
|
1871
1871
|
disabled: e.disabled,
|
|
1872
1872
|
onClick(I) {
|
|
1873
|
-
I.preventDefault(), I.stopPropagation(),
|
|
1873
|
+
I.preventDefault(), I.stopPropagation(), f.value = !1, t("click:close", I);
|
|
1874
1874
|
}
|
|
1875
1875
|
}));
|
|
1876
|
-
ie(
|
|
1876
|
+
ie(f, (I) => {
|
|
1877
1877
|
I ? (y?.register(), m?.register()) : (y?.unregister(), m?.unregister());
|
|
1878
1878
|
});
|
|
1879
1879
|
const {
|
|
@@ -1892,7 +1892,7 @@ const Ul = Symbol.for("vuetify:v-slide-group"), jl = L({
|
|
|
1892
1892
|
}
|
|
1893
1893
|
return () => {
|
|
1894
1894
|
const I = h.isLink.value ? "a" : e.tag, B = !!(e.appendIcon || e.appendAvatar), z = !!(B || l.append), j = !!(l.close || e.closable), G = !!(l.filter || e.filter) && y, Z = !!(e.prependIcon || e.prependAvatar), K = !!(Z || l.prepend);
|
|
1895
|
-
return
|
|
1895
|
+
return f.value && Te(d(I, U(h.linkProps, {
|
|
1896
1896
|
class: ["v-chip", {
|
|
1897
1897
|
"v-chip--disabled": e.disabled,
|
|
1898
1898
|
"v-chip--label": e.label,
|
|
@@ -1900,7 +1900,7 @@ const Ul = Symbol.for("vuetify:v-slide-group"), jl = L({
|
|
|
1900
1900
|
"v-chip--filter": G,
|
|
1901
1901
|
"v-chip--pill": e.pill,
|
|
1902
1902
|
[`${e.activeClass}`]: e.activeClass && h.isActive?.value
|
|
1903
|
-
}, o.value, c.value, D.value, r.value, i.value,
|
|
1903
|
+
}, o.value, c.value, D.value, r.value, i.value, v.value, u.value, _.value, y?.selectedClass.value, e.class],
|
|
1904
1904
|
style: [F.value, e.style],
|
|
1905
1905
|
disabled: e.disabled || void 0,
|
|
1906
1906
|
draggable: e.draggable,
|
|
@@ -2034,7 +2034,7 @@ const Ul = Symbol.for("vuetify:v-slide-group"), jl = L({
|
|
|
2034
2034
|
} = Je(e), {
|
|
2035
2035
|
elevationClasses: i
|
|
2036
2036
|
} = Tt(e), {
|
|
2037
|
-
locationStyles:
|
|
2037
|
+
locationStyles: v
|
|
2038
2038
|
} = Dt(e), {
|
|
2039
2039
|
positionClasses: u
|
|
2040
2040
|
} = yl(e), {
|
|
@@ -2042,7 +2042,7 @@ const Ul = Symbol.for("vuetify:v-slide-group"), jl = L({
|
|
|
2042
2042
|
} = Ye(e);
|
|
2043
2043
|
return te(() => d(e.tag, {
|
|
2044
2044
|
class: ae(["v-sheet", t.value, l.value, c.value, i.value, u.value, o.value, e.class]),
|
|
2045
|
-
style: be([s.value, r.value,
|
|
2045
|
+
style: be([s.value, r.value, v.value, e.style])
|
|
2046
2046
|
}, n)), {};
|
|
2047
2047
|
}
|
|
2048
2048
|
}), xa = {
|
|
@@ -2053,8 +2053,8 @@ const Ul = Symbol.for("vuetify:v-slide-group"), jl = L({
|
|
|
2053
2053
|
},
|
|
2054
2054
|
emits: /* @__PURE__ */ _t("save", ["update:modelValue"]),
|
|
2055
2055
|
setup(e, { emit: a }) {
|
|
2056
|
-
const { advancedFiltersState: n } = tt(), t = ye("table_props"), l = ut(e, "modelValue"), s = (i,
|
|
2057
|
-
const u = t.headers.find((m) => (m.advancedFilter?.key ?? m.key) ===
|
|
2056
|
+
const { advancedFiltersState: n } = tt(), t = ye("table_props"), l = ut(e, "modelValue"), s = (i, v) => {
|
|
2057
|
+
const u = t.headers.find((m) => (m.advancedFilter?.key ?? m.key) === v), o = i.comparison === "=" ? ":" : " " + i.comparison, f = Array.isArray(i.value) ? i.value : [i.value], y = f.filter((m, h) => !(u.advancedFilter.component === "datepicker" && h !== 0 && h !== f.length - 1)).map((m) => {
|
|
2058
2058
|
const h = u.advancedFilter?.options?.items ?? [];
|
|
2059
2059
|
let S = m, k;
|
|
2060
2060
|
return h.length && (k = h.find((w) => w.value === m), k && (S = k.title)), typeof u.advancedFilter?.valueFormatter == "function" && (S = u.advancedFilter.valueFormatter({
|
|
@@ -2062,11 +2062,11 @@ const Ul = Symbol.for("vuetify:v-slide-group"), jl = L({
|
|
|
2062
2062
|
value: m
|
|
2063
2063
|
})), S;
|
|
2064
2064
|
});
|
|
2065
|
-
return `${u.title}${o} ${y}`;
|
|
2065
|
+
return `${u.title}${o} ${y.join(", ")}`;
|
|
2066
2066
|
}, c = (i) => {
|
|
2067
2067
|
l.value[i] = { comparison: "=", value: null }, r("save");
|
|
2068
2068
|
}, r = a;
|
|
2069
|
-
return (i,
|
|
2069
|
+
return (i, v) => (Q(), fe(Va, null, {
|
|
2070
2070
|
default: Y(() => [
|
|
2071
2071
|
d(Sa, null, {
|
|
2072
2072
|
default: Y(() => [
|
|
@@ -2077,7 +2077,7 @@ const Ul = Symbol.for("vuetify:v-slide-group"), jl = L({
|
|
|
2077
2077
|
closable: "",
|
|
2078
2078
|
value: u,
|
|
2079
2079
|
density: "comfortable",
|
|
2080
|
-
"onClick:close": (
|
|
2080
|
+
"onClick:close": (f) => c(o)
|
|
2081
2081
|
}, null, 8, ["text", "value", "onClick:close"]))), 128))
|
|
2082
2082
|
]),
|
|
2083
2083
|
_: 1
|
|
@@ -2208,12 +2208,12 @@ const Ul = Symbol.for("vuetify:v-slide-group"), jl = L({
|
|
|
2208
2208
|
} = gl(e), {
|
|
2209
2209
|
focusClasses: r,
|
|
2210
2210
|
isFocused: i,
|
|
2211
|
-
focus:
|
|
2211
|
+
focus: v,
|
|
2212
2212
|
blur: u
|
|
2213
2213
|
} = zt(e), {
|
|
2214
2214
|
InputIcon: o
|
|
2215
2215
|
} = Ll(e), {
|
|
2216
|
-
roundedClasses:
|
|
2216
|
+
roundedClasses: f
|
|
2217
2217
|
} = Ye(e), {
|
|
2218
2218
|
rtlClasses: y
|
|
2219
2219
|
} = vt(), m = T(() => e.dirty || e.active), h = T(() => !!(e.label || l.label)), S = T(() => !e.singleLine && h.value), k = De(), w = V(() => e.id || `input-${k}`), D = T(() => e.details ? `${w.value}-messages` : void 0), F = R(), _ = R(), $ = R(), P = V(() => ["plain", "underlined"].includes(e.variant)), I = V(() => e.error || e.disabled ? void 0 : m.value && i.value ? e.color : e.baseColor), B = V(() => {
|
|
@@ -2254,7 +2254,7 @@ const Ul = Symbol.for("vuetify:v-slide-group"), jl = L({
|
|
|
2254
2254
|
isFocused: i,
|
|
2255
2255
|
controlRef: $,
|
|
2256
2256
|
blur: u,
|
|
2257
|
-
focus:
|
|
2257
|
+
focus: v
|
|
2258
2258
|
}));
|
|
2259
2259
|
function ce(q) {
|
|
2260
2260
|
q.target !== document.activeElement && q.preventDefault();
|
|
@@ -2284,7 +2284,7 @@ const Ul = Symbol.for("vuetify:v-slide-group"), jl = L({
|
|
|
2284
2284
|
"v-field--single-line": e.singleLine,
|
|
2285
2285
|
"v-field--no-label": !A(),
|
|
2286
2286
|
[`v-field--variant-${e.variant}`]: !0
|
|
2287
|
-
}, s.value, z.value, r.value, c.value,
|
|
2287
|
+
}, s.value, z.value, r.value, c.value, f.value, y.value, e.class],
|
|
2288
2288
|
style: [j.value, e.style],
|
|
2289
2289
|
onClick: ce
|
|
2290
2290
|
}, n), [C("div", {
|
|
@@ -2328,7 +2328,7 @@ const Ul = Symbol.for("vuetify:v-slide-group"), jl = L({
|
|
|
2328
2328
|
class: "v-field__input",
|
|
2329
2329
|
"aria-describedby": D.value
|
|
2330
2330
|
},
|
|
2331
|
-
focus:
|
|
2331
|
+
focus: v,
|
|
2332
2332
|
blur: u
|
|
2333
2333
|
}) ?? C("div", {
|
|
2334
2334
|
id: w.value,
|
|
@@ -2352,14 +2352,14 @@ const Ul = Symbol.for("vuetify:v-slide-group"), jl = L({
|
|
|
2352
2352
|
default: () => [l.clear ? l.clear({
|
|
2353
2353
|
...K.value,
|
|
2354
2354
|
props: {
|
|
2355
|
-
onFocus:
|
|
2355
|
+
onFocus: v,
|
|
2356
2356
|
onBlur: u,
|
|
2357
2357
|
onClick: e["onClick:clear"],
|
|
2358
2358
|
tabindex: -1
|
|
2359
2359
|
}
|
|
2360
2360
|
}) : d(o, {
|
|
2361
2361
|
name: "clear",
|
|
2362
|
-
onFocus:
|
|
2362
|
+
onFocus: v,
|
|
2363
2363
|
onBlur: u,
|
|
2364
2364
|
tabindex: -1
|
|
2365
2365
|
}, null)]
|
|
@@ -2462,12 +2462,12 @@ const Da = ["color", "file", "time", "date", "datetime-local", "week", "month"],
|
|
|
2462
2462
|
focus: r,
|
|
2463
2463
|
blur: i
|
|
2464
2464
|
} = zt(e), {
|
|
2465
|
-
onIntersect:
|
|
2465
|
+
onIntersect: v
|
|
2466
2466
|
} = Ta(e), u = V(() => typeof e.counterValue == "function" ? e.counterValue(s.value) : typeof e.counterValue == "number" ? e.counterValue : (s.value ?? "").toString().length), o = V(() => {
|
|
2467
2467
|
if (n.maxlength) return n.maxlength;
|
|
2468
2468
|
if (!(!e.counter || typeof e.counter != "number" && typeof e.counter != "string"))
|
|
2469
2469
|
return e.counter;
|
|
2470
|
-
}),
|
|
2470
|
+
}), f = V(() => ["plain", "underlined"].includes(e.variant)), y = R(), m = R(), h = R(), S = Fa(e), k = V(() => Da.includes(e.type) || e.persistentPlaceholder || c.value || e.active);
|
|
2471
2471
|
function w() {
|
|
2472
2472
|
S.isSuppressing.value && S.update(), c.value || r(), me(() => {
|
|
2473
2473
|
h.value !== document.activeElement && h.value?.focus();
|
|
@@ -2508,11 +2508,11 @@ const Da = ["color", "file", "time", "date", "datetime-local", "week", "month"],
|
|
|
2508
2508
|
class: ["v-text-field", {
|
|
2509
2509
|
"v-text-field--prefixed": e.prefix,
|
|
2510
2510
|
"v-text-field--suffixed": e.suffix,
|
|
2511
|
-
"v-input--plain-underlined":
|
|
2511
|
+
"v-input--plain-underlined": f.value
|
|
2512
2512
|
}, e.class],
|
|
2513
2513
|
style: e.style
|
|
2514
2514
|
}, B, G, {
|
|
2515
|
-
centerAffix: !
|
|
2515
|
+
centerAffix: !f.value,
|
|
2516
2516
|
focused: c.value
|
|
2517
2517
|
}), {
|
|
2518
2518
|
...l,
|
|
@@ -2566,7 +2566,7 @@ const Da = ["color", "file", "time", "date", "datetime-local", "week", "month"],
|
|
|
2566
2566
|
onFocus: r,
|
|
2567
2567
|
onBlur: i
|
|
2568
2568
|
}, x, z), null), [[el, {
|
|
2569
|
-
handler:
|
|
2569
|
+
handler: v
|
|
2570
2570
|
}, null, {
|
|
2571
2571
|
once: !0
|
|
2572
2572
|
}]]);
|
|
@@ -2648,16 +2648,16 @@ function Ra(e, a) {
|
|
|
2648
2648
|
// the chance of ending up with empty space at the bottom.
|
|
2649
2649
|
// The default value is set here to avoid poisoning getSize()
|
|
2650
2650
|
(parseInt(e.height) || n.height.value) / (t.value || 16)
|
|
2651
|
-
) || 1), c = ne(0), r = ne(0), i = R(),
|
|
2651
|
+
) || 1), c = ne(0), r = ne(0), i = R(), v = R();
|
|
2652
2652
|
let u = 0;
|
|
2653
2653
|
const {
|
|
2654
2654
|
resizeRef: o,
|
|
2655
|
-
contentRect:
|
|
2655
|
+
contentRect: f
|
|
2656
2656
|
} = at();
|
|
2657
2657
|
St(() => {
|
|
2658
2658
|
o.value = i.value;
|
|
2659
2659
|
});
|
|
2660
|
-
const y = V(() => i.value === document.documentElement ? n.height.value :
|
|
2660
|
+
const y = V(() => i.value === document.documentElement ? n.height.value : f.value?.height || parseInt(e.height) || 0), m = V(() => !!(i.value && v.value && y.value && t.value));
|
|
2661
2661
|
let h = Array.from({
|
|
2662
2662
|
length: a.value.length
|
|
2663
2663
|
}), S = Array.from({
|
|
@@ -2676,7 +2676,7 @@ function Ra(e, a) {
|
|
|
2676
2676
|
S[b] = (S[b - 1] || 0) + D(b - 1);
|
|
2677
2677
|
k.value = Math.max(k.value, performance.now() - A);
|
|
2678
2678
|
}, k), _ = ie(m, (A) => {
|
|
2679
|
-
A && (_(), u =
|
|
2679
|
+
A && (_(), u = v.value.offsetTop, F.immediate(), q(), ~w && me(() => {
|
|
2680
2680
|
Ge && window.requestAnimationFrame(() => {
|
|
2681
2681
|
se(w), w = -1;
|
|
2682
2682
|
});
|
|
@@ -2705,12 +2705,12 @@ function Ra(e, a) {
|
|
|
2705
2705
|
});
|
|
2706
2706
|
let G = -1;
|
|
2707
2707
|
function Z() {
|
|
2708
|
-
if (!i.value || !
|
|
2708
|
+
if (!i.value || !v.value) return;
|
|
2709
2709
|
const A = i.value.scrollTop, p = performance.now();
|
|
2710
|
-
p - j > 500 ? (z = Math.sign(A - B), u =
|
|
2710
|
+
p - j > 500 ? (z = Math.sign(A - B), u = v.value.offsetTop) : z = A - B, B = A, j = p, window.clearTimeout(G), G = window.setTimeout(K, 500), q();
|
|
2711
2711
|
}
|
|
2712
2712
|
function K() {
|
|
2713
|
-
!i.value || !
|
|
2713
|
+
!i.value || !v.value || (z = 0, j = 0, window.clearTimeout(G), q());
|
|
2714
2714
|
}
|
|
2715
2715
|
let ce = -1;
|
|
2716
2716
|
function q() {
|
|
@@ -2752,7 +2752,7 @@ function Ra(e, a) {
|
|
|
2752
2752
|
}), {
|
|
2753
2753
|
calculateVisibleItems: q,
|
|
2754
2754
|
containerRef: i,
|
|
2755
|
-
markerRef:
|
|
2755
|
+
markerRef: v,
|
|
2756
2756
|
computedItems: de,
|
|
2757
2757
|
paddingTop: c,
|
|
2758
2758
|
paddingBottom: r,
|
|
@@ -2797,10 +2797,10 @@ const Ma = L({
|
|
|
2797
2797
|
containerRef: c,
|
|
2798
2798
|
markerRef: r,
|
|
2799
2799
|
handleScroll: i,
|
|
2800
|
-
handleScrollend:
|
|
2800
|
+
handleScrollend: v,
|
|
2801
2801
|
handleItemResize: u,
|
|
2802
2802
|
scrollToIndex: o,
|
|
2803
|
-
paddingTop:
|
|
2803
|
+
paddingTop: f,
|
|
2804
2804
|
paddingBottom: y,
|
|
2805
2805
|
computedItems: m
|
|
2806
2806
|
} = Ra(e, T(() => e.items));
|
|
@@ -2809,9 +2809,9 @@ const Ma = L({
|
|
|
2809
2809
|
const k = (arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1) ? "addEventListener" : "removeEventListener";
|
|
2810
2810
|
c.value === document.documentElement ? (document[k]("scroll", i, {
|
|
2811
2811
|
passive: !0
|
|
2812
|
-
}), document[k]("scrollend",
|
|
2812
|
+
}), document[k]("scrollend", v)) : (c.value?.[k]("scroll", i, {
|
|
2813
2813
|
passive: !0
|
|
2814
|
-
}), c.value?.[k]("scrollend",
|
|
2814
|
+
}), c.value?.[k]("scrollend", v));
|
|
2815
2815
|
}
|
|
2816
2816
|
Ne(() => {
|
|
2817
2817
|
c.value = An(t.vnode.el, !0), h(!0);
|
|
@@ -2832,7 +2832,7 @@ const Ma = L({
|
|
|
2832
2832
|
ref: r,
|
|
2833
2833
|
class: "v-virtual-scroll__spacer",
|
|
2834
2834
|
style: {
|
|
2835
|
-
paddingTop: Me(
|
|
2835
|
+
paddingTop: Me(f.value)
|
|
2836
2836
|
}
|
|
2837
2837
|
}, null), h, C("div", {
|
|
2838
2838
|
class: "v-virtual-scroll__spacer",
|
|
@@ -2843,13 +2843,13 @@ const Ma = L({
|
|
|
2843
2843
|
ref: c,
|
|
2844
2844
|
class: ae(["v-virtual-scroll", e.class]),
|
|
2845
2845
|
onScrollPassive: i,
|
|
2846
|
-
onScrollend:
|
|
2846
|
+
onScrollend: v,
|
|
2847
2847
|
style: be([l.value, e.style])
|
|
2848
2848
|
}, [C("div", {
|
|
2849
2849
|
ref: r,
|
|
2850
2850
|
class: "v-virtual-scroll__container",
|
|
2851
2851
|
style: {
|
|
2852
|
-
paddingTop: Me(
|
|
2852
|
+
paddingTop: Me(f.value),
|
|
2853
2853
|
paddingBottom: Me(y.value)
|
|
2854
2854
|
}
|
|
2855
2855
|
}, [h])]);
|
|
@@ -2886,17 +2886,17 @@ function za(e, a) {
|
|
|
2886
2886
|
top: r.key === "Home" ? 0 : i.scrollHeight,
|
|
2887
2887
|
behavior: "smooth"
|
|
2888
2888
|
}), await s();
|
|
2889
|
-
const
|
|
2889
|
+
const v = i.querySelectorAll(":scope > :not(.v-virtual-scroll__spacer)");
|
|
2890
2890
|
if (r.key === "PageDown" || r.key === "Home") {
|
|
2891
2891
|
const u = i.getBoundingClientRect().top;
|
|
2892
|
-
for (const o of
|
|
2892
|
+
for (const o of v)
|
|
2893
2893
|
if (o.getBoundingClientRect().top >= u) {
|
|
2894
2894
|
o.focus();
|
|
2895
2895
|
break;
|
|
2896
2896
|
}
|
|
2897
2897
|
} else {
|
|
2898
2898
|
const u = i.getBoundingClientRect().bottom;
|
|
2899
|
-
for (const o of [...
|
|
2899
|
+
for (const o of [...v].reverse())
|
|
2900
2900
|
if (o.getBoundingClientRect().bottom <= u) {
|
|
2901
2901
|
o.focus();
|
|
2902
2902
|
break;
|
|
@@ -2986,13 +2986,13 @@ const Ga = L({
|
|
|
2986
2986
|
} = Le(), l = R(), s = R(), c = R(), {
|
|
2987
2987
|
items: r,
|
|
2988
2988
|
transformIn: i,
|
|
2989
|
-
transformOut:
|
|
2989
|
+
transformOut: v
|
|
2990
2990
|
} = Fn(e), u = pe(e, "modelValue", [], (g) => i(g === null ? [null] : Ae(g)), (g) => {
|
|
2991
|
-
const x =
|
|
2991
|
+
const x = v(g);
|
|
2992
2992
|
return e.multiple ? x : x[0] ?? null;
|
|
2993
|
-
}), o = V(() => typeof e.counterValue == "function" ? e.counterValue(u.value) : typeof e.counterValue == "number" ? e.counterValue : u.value.length),
|
|
2993
|
+
}), o = V(() => typeof e.counterValue == "function" ? e.counterValue(u.value) : typeof e.counterValue == "number" ? e.counterValue : u.value.length), f = Ut(e), y = V(() => u.value.map((g) => g.value)), m = ne(!1);
|
|
2994
2994
|
let h = "", S = -1, k;
|
|
2995
|
-
const w = V(() => e.hideSelected ? r.value.filter((g) => !u.value.some((x) => (e.valueComparator || ze)(x, g))) : r.value), D = V(() => e.hideNoData && !w.value.length ||
|
|
2995
|
+
const w = V(() => e.hideSelected ? r.value.filter((g) => !u.value.some((x) => (e.valueComparator || ze)(x, g))) : r.value), D = V(() => e.hideNoData && !w.value.length || f.isReadonly.value || f.isDisabled.value), F = pe(e, "menu"), _ = V({
|
|
2996
2996
|
get: () => F.value,
|
|
2997
2997
|
set: (g) => {
|
|
2998
2998
|
F.value && !g && s.value?.ΨopenChildren.size || g && D.value || (F.value = g);
|
|
@@ -3020,7 +3020,7 @@ const Ga = L({
|
|
|
3020
3020
|
tl(g) && q(g);
|
|
3021
3021
|
}
|
|
3022
3022
|
function q(g) {
|
|
3023
|
-
if (!g.key ||
|
|
3023
|
+
if (!g.key || f.isReadonly.value) return;
|
|
3024
3024
|
["Enter", " ", "ArrowDown", "ArrowUp", "Home", "End"].includes(g.key) && g.preventDefault(), ["Enter", "ArrowDown", " "].includes(g.key) && (_.value = !0), ["Escape", "Tab"].includes(g.key) && (_.value = !1), g.key === "Home" ? j.value?.focus("first") : g.key === "End" && j.value?.focus("last");
|
|
3025
3025
|
const x = 1e3;
|
|
3026
3026
|
if (!tl(g)) return;
|
|
@@ -3319,12 +3319,12 @@ const Ga = L({
|
|
|
3319
3319
|
} = ct(() => e.textColor), {
|
|
3320
3320
|
themeClasses: i
|
|
3321
3321
|
} = $n(), {
|
|
3322
|
-
locationStyles:
|
|
3322
|
+
locationStyles: v
|
|
3323
3323
|
} = Dt(e, !0, (o) => (e.floating ? e.dot ? 2 : 4 : e.dot ? 8 : 12) + (["top", "bottom"].includes(o) ? Number(e.offsetY ?? 0) : ["left", "right"].includes(o) ? Number(e.offsetX ?? 0) : 0)), {
|
|
3324
3324
|
dimensionStyles: u
|
|
3325
3325
|
} = Je(e);
|
|
3326
3326
|
return te(() => {
|
|
3327
|
-
const o = Number(e.content),
|
|
3327
|
+
const o = Number(e.content), f = !e.max || isNaN(o) ? e.content : o <= Number(e.max) ? o : `${e.max}+`, [y, m] = On(a.attrs, ["aria-atomic", "aria-label", "aria-live", "role", "title"]);
|
|
3328
3328
|
return d(e.tag, U({
|
|
3329
3329
|
class: ["v-badge", {
|
|
3330
3330
|
"v-badge--bordered": e.bordered,
|
|
@@ -3342,14 +3342,14 @@ const Ga = L({
|
|
|
3342
3342
|
}, {
|
|
3343
3343
|
default: () => [Te(C("span", U({
|
|
3344
3344
|
class: ["v-badge__badge", i.value, n.value, l.value, c.value],
|
|
3345
|
-
style: [t.value, r.value, u.value, e.inline ? {} :
|
|
3345
|
+
style: [t.value, r.value, u.value, e.inline ? {} : v.value],
|
|
3346
3346
|
"aria-atomic": "true",
|
|
3347
3347
|
"aria-label": s(e.label, o),
|
|
3348
3348
|
"aria-live": "polite",
|
|
3349
3349
|
role: "status"
|
|
3350
3350
|
}, y), [e.dot ? void 0 : a.slots.badge ? a.slots.badge?.() : e.icon ? d(ge, {
|
|
3351
3351
|
icon: e.icon
|
|
3352
|
-
}, null) :
|
|
3352
|
+
}, null) : f]), [[it, e.modelValue]])]
|
|
3353
3353
|
})])]
|
|
3354
3354
|
});
|
|
3355
3355
|
}), {};
|
|
@@ -3419,8 +3419,8 @@ const Xa = ["auto", "start", "end", "center", "baseline", "stretch"], Qa = L({
|
|
|
3419
3419
|
let s;
|
|
3420
3420
|
for (s in il)
|
|
3421
3421
|
il[s].forEach((r) => {
|
|
3422
|
-
const i = e[r],
|
|
3423
|
-
|
|
3422
|
+
const i = e[r], v = Ya(s, r, i);
|
|
3423
|
+
v && l.push(v);
|
|
3424
3424
|
});
|
|
3425
3425
|
const c = l.some((r) => r.startsWith("v-col-"));
|
|
3426
3426
|
return l.push({
|
|
@@ -3603,8 +3603,8 @@ const ro = L({
|
|
|
3603
3603
|
} = uo({
|
|
3604
3604
|
toggleUpDown: B
|
|
3605
3605
|
}), c = Ut(e), r = V(() => c.isDisabled.value || c.isReadonly.value), i = ne(e.focused), {
|
|
3606
|
-
decimalSeparator:
|
|
3607
|
-
} = Le(), u = V(() => e.decimalSeparator?.[0] ||
|
|
3606
|
+
decimalSeparator: v
|
|
3607
|
+
} = Le(), u = V(() => e.decimalSeparator?.[0] || v.value);
|
|
3608
3608
|
function o(p) {
|
|
3609
3609
|
let b = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : e.precision, g = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0;
|
|
3610
3610
|
const x = b == null ? String(p) : p.toFixed(b);
|
|
@@ -3615,21 +3615,21 @@ const ro = L({
|
|
|
3615
3615
|
let [N, M] = x.split(".");
|
|
3616
3616
|
return M = (M ?? "").padEnd(e.minFractionDigits, "0").replace(new RegExp(`(?<=\\d{${e.minFractionDigits}})0+$`, "g"), ""), [N, M].filter(Boolean).join(u.value);
|
|
3617
3617
|
}
|
|
3618
|
-
const
|
|
3618
|
+
const f = pe(e, "modelValue", null, (p) => p ?? null, (p) => p == null ? p ?? null : Fe(Number(p), e.min, e.max)), y = ne(null);
|
|
3619
3619
|
St(() => {
|
|
3620
|
-
i.value && !r.value && Number(y.value?.replace(u.value, ".")) ===
|
|
3620
|
+
i.value && !r.value && Number(y.value?.replace(u.value, ".")) === f.value || (f.value == null ? y.value = null : isNaN(f.value) || (y.value = o(f.value)));
|
|
3621
3621
|
});
|
|
3622
3622
|
const m = V({
|
|
3623
3623
|
get: () => y.value,
|
|
3624
3624
|
set(p) {
|
|
3625
3625
|
if (p === null || p === "") {
|
|
3626
|
-
|
|
3626
|
+
f.value = null, y.value = null;
|
|
3627
3627
|
return;
|
|
3628
3628
|
}
|
|
3629
3629
|
const b = Number(p.replace(u.value, "."));
|
|
3630
|
-
!isNaN(b) && b <= e.max && b >= e.min && (
|
|
3630
|
+
!isNaN(b) && b <= e.max && b >= e.min && (f.value = b, y.value = p);
|
|
3631
3631
|
}
|
|
3632
|
-
}), h = V(() => r.value ? !1 : (
|
|
3632
|
+
}), h = V(() => r.value ? !1 : (f.value ?? 0) + e.step <= e.max), S = V(() => r.value ? !1 : (f.value ?? 0) - e.step >= e.min), k = V(() => e.hideInput ? "stacked" : e.controlVariant), w = T(() => k.value === "split" ? "$plus" : "$collapse"), D = T(() => k.value === "split" ? "$minus" : "$expand"), F = T(() => k.value === "split" ? "default" : "small"), _ = T(() => k.value === "stacked" ? "auto" : "100%"), $ = {
|
|
3633
3633
|
props: {
|
|
3634
3634
|
onClick: G,
|
|
3635
3635
|
onPointerup: Z,
|
|
@@ -3655,12 +3655,12 @@ const ro = L({
|
|
|
3655
3655
|
function B() {
|
|
3656
3656
|
let p = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0;
|
|
3657
3657
|
if (r.value) return;
|
|
3658
|
-
if (
|
|
3658
|
+
if (f.value == null) {
|
|
3659
3659
|
m.value = o(Fe(0, e.min, e.max));
|
|
3660
3660
|
return;
|
|
3661
3661
|
}
|
|
3662
|
-
let b = Math.max(I(
|
|
3663
|
-
e.precision != null && (b = Math.max(b, e.precision)), p ? h.value && (m.value = o(
|
|
3662
|
+
let b = Math.max(I(f.value), I(e.step));
|
|
3663
|
+
e.precision != null && (b = Math.max(b, e.precision)), p ? h.value && (m.value = o(f.value + e.step, b)) : S.value && (m.value = o(f.value - e.step, b));
|
|
3664
3664
|
}
|
|
3665
3665
|
function z(p) {
|
|
3666
3666
|
if (!p.data) return;
|
|
@@ -3699,15 +3699,15 @@ const ro = L({
|
|
|
3699
3699
|
p && !isNaN(b) ? m.value = o(Fe(b, e.min, e.max)) : m.value = null;
|
|
3700
3700
|
}
|
|
3701
3701
|
function ee() {
|
|
3702
|
-
r.value || (m.value =
|
|
3702
|
+
r.value || (m.value = f.value !== null && !isNaN(f.value) ? o(f.value, e.precision, !1) : null);
|
|
3703
3703
|
}
|
|
3704
3704
|
function se() {
|
|
3705
3705
|
if (!r.value) {
|
|
3706
|
-
if (
|
|
3706
|
+
if (f.value === null || isNaN(f.value)) {
|
|
3707
3707
|
m.value = null;
|
|
3708
3708
|
return;
|
|
3709
3709
|
}
|
|
3710
|
-
m.value =
|
|
3710
|
+
m.value = f.value.toString().replace(".", u.value);
|
|
3711
3711
|
}
|
|
3712
3712
|
}
|
|
3713
3713
|
function de() {
|
|
@@ -3810,7 +3810,7 @@ const ro = L({
|
|
|
3810
3810
|
"onUpdate:modelValue": (H) => m.value = H,
|
|
3811
3811
|
focused: i.value,
|
|
3812
3812
|
"onUpdate:focused": (H) => i.value = H,
|
|
3813
|
-
validationValue:
|
|
3813
|
+
validationValue: f.value,
|
|
3814
3814
|
onBeforeinput: z,
|
|
3815
3815
|
onFocus: de,
|
|
3816
3816
|
onBlur: A,
|
|
@@ -3853,16 +3853,16 @@ const ro = L({
|
|
|
3853
3853
|
select: qa,
|
|
3854
3854
|
number: co,
|
|
3855
3855
|
datepicker: Ce(
|
|
3856
|
-
() => import("./Datepicker-
|
|
3856
|
+
() => import("./Datepicker-CvjupU9U.js")
|
|
3857
3857
|
),
|
|
3858
3858
|
comparison: Ce(
|
|
3859
|
-
() => import("./Comparison-
|
|
3859
|
+
() => import("./Comparison-C71jtSIZ.js")
|
|
3860
3860
|
)
|
|
3861
|
-
}, r = V(() => n.headers.filter((
|
|
3861
|
+
}, r = V(() => n.headers.filter((v) => v.advancedFilter !== !1 && !v.hidden)), i = (v) => v ? typeof v == "string" ? c[v] : v : c.textfield;
|
|
3862
3862
|
return ie(
|
|
3863
3863
|
r,
|
|
3864
|
-
(
|
|
3865
|
-
|
|
3864
|
+
(v) => {
|
|
3865
|
+
v.forEach((u) => {
|
|
3866
3866
|
const o = u.advancedFilter?.key ?? u.key;
|
|
3867
3867
|
Object.hasOwn(l.value, o) || (l.value[o] = {
|
|
3868
3868
|
comparison: "=",
|
|
@@ -3873,11 +3873,11 @@ const ro = L({
|
|
|
3873
3873
|
{ immediate: !0 }
|
|
3874
3874
|
), Ne(async () => {
|
|
3875
3875
|
await n.options.advancedFilters?.onMounted();
|
|
3876
|
-
}), (
|
|
3876
|
+
}), (v, u) => (Q(), fe(Ht, { rounded: "lg" }, {
|
|
3877
3877
|
default: Y(() => [
|
|
3878
3878
|
d(yt, { class: "d-flex justify-space-between align-center" }, {
|
|
3879
3879
|
default: Y(() => [
|
|
3880
|
-
C("div", fo, Ue(
|
|
3880
|
+
C("div", fo, Ue(v.$t("$datatables.advancedFilters")), 1),
|
|
3881
3881
|
d(_e, {
|
|
3882
3882
|
icon: E(t).header.icons.close,
|
|
3883
3883
|
variant: "text",
|
|
@@ -3889,9 +3889,9 @@ const ro = L({
|
|
|
3889
3889
|
d(Ie),
|
|
3890
3890
|
d(bt, { class: "overflow-auto pt-8" }, {
|
|
3891
3891
|
default: Y(() => [
|
|
3892
|
-
(Q(!0), Ee(ue, null, wt(E(r), (o,
|
|
3892
|
+
(Q(!0), Ee(ue, null, wt(E(r), (o, f) => (Q(), Ee("div", {
|
|
3893
3893
|
id: `advanced-filter-${o.key}`,
|
|
3894
|
-
key: `filter-${
|
|
3894
|
+
key: `filter-${f}`,
|
|
3895
3895
|
class: ae(`advanced-filter advanced-filter--${o.key}`)
|
|
3896
3896
|
}, [
|
|
3897
3897
|
(Q(), fe(xe(i(o.advancedFilter?.component)), U({
|
|
@@ -3913,13 +3913,13 @@ const ro = L({
|
|
|
3913
3913
|
default: Y(() => [
|
|
3914
3914
|
d(_e, {
|
|
3915
3915
|
class: "text-none",
|
|
3916
|
-
text:
|
|
3916
|
+
text: v.$t("$datatables.cancel"),
|
|
3917
3917
|
onClick: u[1] || (u[1] = (o) => s("closeDialog"))
|
|
3918
3918
|
}, null, 8, ["text"]),
|
|
3919
3919
|
d(_e, {
|
|
3920
3920
|
class: "text-none",
|
|
3921
3921
|
color: "primary",
|
|
3922
|
-
text:
|
|
3922
|
+
text: v.$t("$datatables.submit"),
|
|
3923
3923
|
variant: "flat",
|
|
3924
3924
|
onClick: u[2] || (u[2] = (o) => s("save"))
|
|
3925
3925
|
}, null, 8, ["text"])
|
|
@@ -3943,20 +3943,20 @@ const go = {
|
|
|
3943
3943
|
emits: ["update:modelValue"],
|
|
3944
3944
|
setup(e) {
|
|
3945
3945
|
const a = gt(), { advancedFiltersState: n } = tt(), { setData: t } = a, l = ut(e, "modelValue"), s = R({}), c = ye("table_props"), r = ye("busEmits"), i = () => {
|
|
3946
|
-
const
|
|
3946
|
+
const v = Object.entries(s.value).filter(([, u]) => {
|
|
3947
3947
|
const o = u.value;
|
|
3948
3948
|
return Array.isArray(o) || typeof o == "string" ? o.length > 0 : o != null && o !== "";
|
|
3949
|
-
}).reduce((u, [o,
|
|
3950
|
-
JSON.stringify(
|
|
3949
|
+
}).reduce((u, [o, f]) => (u[o] = f, u), {});
|
|
3950
|
+
JSON.stringify(v) !== JSON.stringify(n.value) && (t({
|
|
3951
3951
|
table_id: c.id,
|
|
3952
3952
|
name: "advancedFilters",
|
|
3953
|
-
value: { query: cl(
|
|
3954
|
-
}), r("advancedFilters:update",
|
|
3953
|
+
value: { query: cl(v) }
|
|
3954
|
+
}), r("advancedFilters:update", v)), l.value = !1;
|
|
3955
3955
|
};
|
|
3956
3956
|
return Ne(() => {
|
|
3957
3957
|
s.value = cl(n.value);
|
|
3958
|
-
}), (
|
|
3959
|
-
const o = mo,
|
|
3958
|
+
}), (v, u) => {
|
|
3959
|
+
const o = mo, f = xa;
|
|
3960
3960
|
return Q(), Ee("div", null, [
|
|
3961
3961
|
d(Gt, {
|
|
3962
3962
|
modelValue: l.value,
|
|
@@ -3973,7 +3973,7 @@ const go = {
|
|
|
3973
3973
|
]),
|
|
3974
3974
|
_: 1
|
|
3975
3975
|
}, 8, ["modelValue"]),
|
|
3976
|
-
Object.keys(E(n)).length ? (Q(), fe(
|
|
3976
|
+
Object.keys(E(n)).length ? (Q(), fe(f, {
|
|
3977
3977
|
key: 0,
|
|
3978
3978
|
modelValue: E(s),
|
|
3979
3979
|
"onUpdate:modelValue": u[2] || (u[2] = (y) => $e(s) ? s.value = y : null),
|
|
@@ -3986,18 +3986,18 @@ const go = {
|
|
|
3986
3986
|
__name: "index",
|
|
3987
3987
|
setup(e) {
|
|
3988
3988
|
const a = Ce(
|
|
3989
|
-
() => import("./Search-
|
|
3989
|
+
() => import("./Search-BH0AYSqQ.js")
|
|
3990
3990
|
), n = Ce(
|
|
3991
|
-
() => import("./RefreshTable-
|
|
3991
|
+
() => import("./RefreshTable-BrJqnTHL.js")
|
|
3992
3992
|
), t = Ce(
|
|
3993
|
-
() => import("./Options-
|
|
3993
|
+
() => import("./Options-Dk4_4s-_.js")
|
|
3994
3994
|
), l = Ce(
|
|
3995
|
-
() => import("./index-
|
|
3995
|
+
() => import("./index-Himr5435.js")
|
|
3996
3996
|
), s = Ce(
|
|
3997
|
-
() => import("./Columns-
|
|
3997
|
+
() => import("./Columns-B64hflPY.js")
|
|
3998
3998
|
), c = Ce(
|
|
3999
|
-
() => import("./Download-
|
|
4000
|
-
), r = ye("table_props"), i = ye("pluginOptions"), { advancedFiltersState:
|
|
3999
|
+
() => import("./Download-4ogxb-Lj.js")
|
|
4000
|
+
), r = ye("table_props"), i = ye("pluginOptions"), { advancedFiltersState: v } = tt(), u = R(null), o = R(!1), f = r.options?.header?.components ?? {}, y = V(() => Object.keys(v.value).length);
|
|
4001
4001
|
return (m, h) => {
|
|
4002
4002
|
const S = go, k = ca;
|
|
4003
4003
|
return Q(), Ee("div", null, [
|
|
@@ -4029,7 +4029,7 @@ const go = {
|
|
|
4029
4029
|
]),
|
|
4030
4030
|
_: 1
|
|
4031
4031
|
}, 8, ["icon", "color"]),
|
|
4032
|
-
E(r).hardFilters.length ? (Q(), fe(xe(E(
|
|
4032
|
+
E(r).hardFilters.length ? (Q(), fe(xe(E(f).hardFilters ?? E(l)), {
|
|
4033
4033
|
key: 0,
|
|
4034
4034
|
id: "header-hardFilters"
|
|
4035
4035
|
})) : He("", !0),
|
|
@@ -4037,20 +4037,20 @@ const go = {
|
|
|
4037
4037
|
modelValue: E(o),
|
|
4038
4038
|
"onUpdate:modelValue": h[1] || (h[1] = (w) => $e(o) ? o.value = w : null)
|
|
4039
4039
|
}, null, 8, ["modelValue"]),
|
|
4040
|
-
(Q(), fe(xe(E(
|
|
4040
|
+
(Q(), fe(xe(E(f).toolbar), { id: "header-toolbar" }))
|
|
4041
4041
|
]),
|
|
4042
4042
|
_: 1
|
|
4043
4043
|
}),
|
|
4044
4044
|
d(ul, { class: "d-flex align-center justify-end" }, {
|
|
4045
4045
|
default: Y(() => [
|
|
4046
|
-
(Q(), fe(xe(E(
|
|
4047
|
-
(Q(), fe(xe(E(
|
|
4046
|
+
(Q(), fe(xe(E(f).search ?? E(a)), { id: "header-search" })),
|
|
4047
|
+
(Q(), fe(xe(E(f).columns ?? E(s)), {
|
|
4048
4048
|
id: "header-columns",
|
|
4049
4049
|
"component-refs": { columns: E(u) }
|
|
4050
4050
|
}, null, 8, ["component-refs"])),
|
|
4051
|
-
(Q(), fe(xe(E(
|
|
4052
|
-
(Q(), fe(xe(E(
|
|
4053
|
-
(Q(), fe(xe(E(
|
|
4051
|
+
(Q(), fe(xe(E(f).download ?? E(c)), { id: "header-download" })),
|
|
4052
|
+
(Q(), fe(xe(E(f).refreshTable ?? E(n)), { id: "header-refreshTable" })),
|
|
4053
|
+
(Q(), fe(xe(E(f).options ?? E(t)), {
|
|
4054
4054
|
id: "header-options",
|
|
4055
4055
|
"component-refs": { columns: E(u) }
|
|
4056
4056
|
}, null, 8, ["component-refs"]))
|
|
@@ -4098,10 +4098,10 @@ const go = {
|
|
|
4098
4098
|
], ["update:modelValue"]),
|
|
4099
4099
|
setup(e, { expose: a, emit: n }) {
|
|
4100
4100
|
const t = Ce(
|
|
4101
|
-
() => import("./Table-
|
|
4101
|
+
() => import("./Table-W4uL06m9.js")
|
|
4102
4102
|
), l = Ce(
|
|
4103
|
-
() => import("./TableServer-
|
|
4104
|
-
), { storeOptions: s } = an(), { saveTableOptions: c } = tt(), r = ut(e, "modelValue"), i = ye("table_props"),
|
|
4103
|
+
() => import("./TableServer-DpHY_0iH.js")
|
|
4104
|
+
), { storeOptions: s } = an(), { saveTableOptions: c } = tt(), r = ut(e, "modelValue"), i = ye("table_props"), v = ye("pluginOptions"), u = R(null), o = R(!1), f = R(!1), y = R(!1), m = n, h = gt(), { dataStateGet: S, tableDataState: k, checkTableState: w } = Bl(i), { addTable: D, restoreData: F } = h, _ = V(() => {
|
|
4105
4105
|
const $ = i.options?.header;
|
|
4106
4106
|
return $ === void 0 || typeof $ == "object" && $ !== null;
|
|
4107
4107
|
});
|
|
@@ -4116,10 +4116,10 @@ const go = {
|
|
|
4116
4116
|
}
|
|
4117
4117
|
c(
|
|
4118
4118
|
Mn(s.state.value, k.value.options.state)
|
|
4119
|
-
),
|
|
4119
|
+
), f.value = !0, await me(), y.value = !0;
|
|
4120
4120
|
}), Be("busEmits", m), Be("tableRef", u), Be("tableState", k), Be("downloadModal", o), a({ tableRef: u }), ($, P) => {
|
|
4121
4121
|
const I = yo;
|
|
4122
|
-
return E(
|
|
4122
|
+
return E(f) ? (Q(), Ee("div", bo, [
|
|
4123
4123
|
d(Ht, null, {
|
|
4124
4124
|
default: Y(() => [
|
|
4125
4125
|
E(_) ? (Q(), fe(yt, { key: 0 }, {
|
|
@@ -4158,7 +4158,7 @@ const go = {
|
|
|
4158
4158
|
}, {
|
|
4159
4159
|
default: Y(() => [
|
|
4160
4160
|
d(nt, {
|
|
4161
|
-
"prepend-icon": E(
|
|
4161
|
+
"prepend-icon": E(v).header.icons.download,
|
|
4162
4162
|
title: $.$t("$datatables.preparing_download_file")
|
|
4163
4163
|
}, {
|
|
4164
4164
|
prepend: Y(() => [
|
|
@@ -4246,19 +4246,19 @@ const go = {
|
|
|
4246
4246
|
},
|
|
4247
4247
|
emits: ["refreshTable", "refetchData"],
|
|
4248
4248
|
setup(e, { expose: a, emit: n }) {
|
|
4249
|
-
const t = e, { triggerHook: l } = So(), { storeOptions: s, setUserOptions: c } = an(), r = R(null), i = R(0),
|
|
4250
|
-
c(
|
|
4251
|
-
}, u = (
|
|
4252
|
-
c(
|
|
4249
|
+
const t = e, { triggerHook: l } = So(), { storeOptions: s, setUserOptions: c } = an(), r = R(null), i = R(0), v = async (f = {}) => {
|
|
4250
|
+
c(f), i.value < 99 && (o("refreshTable"), await me(), i.value++);
|
|
4251
|
+
}, u = (f = {}) => {
|
|
4252
|
+
c(f), r.value.tableRef.hasOwnProperty("reloadItems") && (r.value.tableRef.reloadItems(s.state.value), o("refetchData"));
|
|
4253
4253
|
}, o = n;
|
|
4254
|
-
return a({ refreshTable:
|
|
4254
|
+
return a({ refreshTable: v, refetchData: u, triggerHook: l }), Be("table_props", t), Be("triggerHook", l), (f, y) => {
|
|
4255
4255
|
const m = po;
|
|
4256
4256
|
return Q(), fe(m, {
|
|
4257
4257
|
id: e.id,
|
|
4258
4258
|
ref_key: "table",
|
|
4259
4259
|
ref: r,
|
|
4260
4260
|
key: `${e.id}-${E(i)}`,
|
|
4261
|
-
onRefreshTable:
|
|
4261
|
+
onRefreshTable: v,
|
|
4262
4262
|
onRefetchData: u
|
|
4263
4263
|
}, null, 8, ["id"]);
|
|
4264
4264
|
};
|