@ianicdev/datatables2 0.13.1 → 0.13.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/{Comparison-CUHPaBeZ.cjs → Comparison-Bfmyo3Xa.cjs} +1 -1
- package/dist/{Comparison-ClV-Y6zD.js → Comparison-DQKuQ5sY.js} +1 -1
- package/dist/{Datepicker-BNZwF6pJ.cjs → Datepicker-CHXMZ0_U.cjs} +1 -1
- package/dist/{Datepicker-Bg_2UpWO.js → Datepicker-CgaWBwqc.js} +2 -2
- package/dist/{Options-BTKDHsLo.cjs → Options-BsWwBtFA.cjs} +1 -1
- package/dist/{Options-iTd26TLq.js → Options-Dzm1_SN_.js} +3 -3
- package/dist/{RefreshTable-DRWO4mC8.js → RefreshTable-0OZhCgVc.js} +1 -1
- package/dist/{RefreshTable-CX-obTqR.cjs → RefreshTable-CiCnJqRp.cjs} +1 -1
- package/dist/{Search-D5tE7xgg.cjs → Search-B-kaxLsc.cjs} +1 -1
- package/dist/{Search-Cp0yrKdI.js → Search-DBCGZBxm.js} +2 -2
- package/dist/{Table-DqI3UZlh.cjs → Table-Cngs-CvH.cjs} +1 -1
- package/dist/{Table-BLwUrk4W.js → Table-VfsWPt6d.js} +3 -3
- package/dist/{TableServer-COwfMyyt.js → TableServer-CPxJnObB.js} +3 -3
- package/dist/{TableServer-BfMKkbvl.cjs → TableServer-DPQ_XeXs.cjs} +1 -1
- package/dist/{cellRender-Da8qBdLb.js → cellRender-CuPsd_dj.js} +2 -2
- package/dist/{cellRender-C5onTgxP.cjs → cellRender-DNNEbGS8.cjs} +1 -1
- package/dist/{dataTables-Btp6KEgl.cjs → dataTables-DCTgRVVK.cjs} +1 -1
- package/dist/{dataTables-DhfPIkYc.js → dataTables-DaHH5BJi.js} +1 -1
- package/dist/datatables.cjs +1 -1
- package/dist/datatables.js +1 -1
- package/dist/{index-lDtSiB_e.js → index-2dniBO7B.js} +2 -2
- package/dist/{index-CJJTJLNz.cjs → index-CYN9sV_c.cjs} +1 -1
- package/dist/{index-BB2n2yz0.cjs → index-CheHIvYC.cjs} +1 -1
- package/dist/{index-CQZZydTl.js → index-D65STyD7.js} +1 -1
- package/dist/{index-eBj5Qtr0.cjs → index-DT_nX8re.cjs} +1 -1
- package/dist/{index-FryEY3Et.js → index-DoH33mkF.js} +2 -2
- package/dist/{index-CKM0UqXO.cjs → index-Dyh2yegg.cjs} +1 -1
- package/dist/{index-DqhqpIKX.js → index-upuyXG4P.js} +251 -248
- package/dist/{useColumns-IaxoDnvH.js → useColumns-CwA9Nn3T.js} +2 -2
- package/dist/{useColumns-ClAwCK9C.cjs → useColumns-DBnIlIB2.cjs} +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ref as j, inject as Pe, computed as I, toRef as
|
|
1
|
+
import { ref as j, inject as Pe, computed as I, toRef as E, shallowRef as ee, watch as se, createVNode as g, normalizeStyle as xe, normalizeClass as re, createElementVNode as b, mergeProps as L, withDirectives as Ue, vShow as _t, Fragment as ce, toDisplayString as Vt, useModel as Pt, openBlock as oe, createBlock as ye, withCtx as Ce, createElementBlock as Ke, renderList as Wt, unref as M, mergeModels as qt, useId as Xe, provide as We, onScopeDispose as rt, nextTick as ke, onBeforeMount as wn, onBeforeUnmount as kl, onMounted as at, cloneVNode as _n, watchEffect as zt, toValue as Ut, createTextVNode as Sl, defineAsyncComponent as Ee, resolveDynamicComponent as $e, onUnmounted as Pn, isRef as xt, createCommentVNode as Me, defineComponent as At, useTemplateRef as Cl } from "vue";
|
|
2
2
|
import { defineStore as Vl } from "pinia";
|
|
3
|
-
import { u as Ft, m as Kt, P as xl, c as Ne, a as An, e as Fn, r as Dn, g as ie, b as Il, d as wl, f as It, I as ct, h as de, V as rl, i as Se, j as _l, p as X, k as
|
|
3
|
+
import { u as Ft, m as Kt, P as xl, c as Ne, a as An, e as Fn, r as Dn, g as ie, b as Il, d as wl, f as It, I as ct, h as de, V as rl, i as Se, j as _l, p as X, k as he, l as Pl, n as Oe, o as Tn, q as be, s as ot, t as Jt, v as qe, w as Xt, x as He, R as lt, y as it, z as Yt, A as Dt, B as Qt, C as gt, D as Bn, E as Ve, F as cl, G as Al, H as Fl, J as Dl, K as Tl, L as Fe, M as nt, N as Rn, O as Bl, Q as yt, S as En, T as Zt, U as ht, W as el, X as Le, Y as Tt, Z as bt, _ as tl, $ as Rl, a0 as El, a1 as ll, a2 as pt, a3 as Ol, a4 as Te, a5 as kt, a6 as dt, a7 as Ye, a8 as $l, a9 as nl, aa as Bt, ab as Ml, ac as Nl, ad as Ll, ae as jt, af as On, ag as Hl, ah as $n, ai as Mn, aj as Nn, ak as zl, al as et, am as Ul, an as Ln, ao as dl, ap as St, aq as Kl, ar as Hn, as as zn, at as jl, au as Gl, av as al, aw as vt, ax as Un, ay as ze, az as Wl, aA as ql, aB as wt, aC as Jl, aD as Kn, aE as jn, aF as Gn, aG as Wn, aH as qn, aI as Jn, aJ as vl, aK as Xn, aL as Yn, aM as tt, aN as Qn, aO as Zn, aP as ea, aQ as ta } from "./dataTables-DaHH5BJi.js";
|
|
4
4
|
import { useEventBus as Xl, createSharedComposable as la, useResizeObserver as na } from "@vueuse/core";
|
|
5
5
|
import { useI18n as aa } from "vue-i18n";
|
|
6
6
|
const Rt = Vl("datatables", () => {
|
|
@@ -136,7 +136,7 @@ function sa() {
|
|
|
136
136
|
const n = {
|
|
137
137
|
...a,
|
|
138
138
|
// can be set via VLocaleProvider
|
|
139
|
-
rtl:
|
|
139
|
+
rtl: E(() => a.rtl.value || t.value)
|
|
140
140
|
};
|
|
141
141
|
async function l(u, s) {
|
|
142
142
|
return fl(u, Kt(e, s), !1, n);
|
|
@@ -208,18 +208,18 @@ const Zl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), en = X({
|
|
|
208
208
|
default: Zl
|
|
209
209
|
},
|
|
210
210
|
nextIcon: {
|
|
211
|
-
type:
|
|
211
|
+
type: he,
|
|
212
212
|
default: "$next"
|
|
213
213
|
},
|
|
214
214
|
prevIcon: {
|
|
215
|
-
type:
|
|
215
|
+
type: he,
|
|
216
216
|
default: "$prev"
|
|
217
217
|
},
|
|
218
218
|
showArrows: {
|
|
219
219
|
type: [Boolean, String],
|
|
220
220
|
validator: (e) => typeof e == "boolean" || ["always", "desktop", "mobile", "never"].includes(e)
|
|
221
221
|
},
|
|
222
|
-
...
|
|
222
|
+
...be(),
|
|
223
223
|
...Tn({
|
|
224
224
|
mobile: null
|
|
225
225
|
}),
|
|
@@ -263,13 +263,13 @@ const Zl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), en = X({
|
|
|
263
263
|
}
|
|
264
264
|
if (e.scrollToActive && P.value >= 0 && y.el) {
|
|
265
265
|
const f = y.el.children[C.value];
|
|
266
|
-
|
|
266
|
+
B(f, e.centerActive);
|
|
267
267
|
}
|
|
268
268
|
});
|
|
269
269
|
});
|
|
270
270
|
}
|
|
271
271
|
const F = ee(!1);
|
|
272
|
-
function
|
|
272
|
+
function B(k, f) {
|
|
273
273
|
let A = 0;
|
|
274
274
|
f ? A = da({
|
|
275
275
|
containerElement: m.el,
|
|
@@ -309,7 +309,7 @@ const Zl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), en = X({
|
|
|
309
309
|
for (const f of k.composedPath())
|
|
310
310
|
for (const A of y.el.children)
|
|
311
311
|
if (A === f) {
|
|
312
|
-
|
|
312
|
+
B(A);
|
|
313
313
|
return;
|
|
314
314
|
}
|
|
315
315
|
}
|
|
@@ -393,7 +393,7 @@ const Zl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), en = X({
|
|
|
393
393
|
default:
|
|
394
394
|
return !u.value && z.value;
|
|
395
395
|
}
|
|
396
|
-
}),
|
|
396
|
+
}), R = I(() => Math.abs(o.value) > 1), O = I(() => {
|
|
397
397
|
if (!m.value || !z.value) return !1;
|
|
398
398
|
const k = ml(c.value, m.el), f = va(c.value, m.el);
|
|
399
399
|
return k - f - Math.abs(o.value) > 1;
|
|
@@ -411,10 +411,10 @@ const Zl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), en = X({
|
|
|
411
411
|
default: () => [fe.value && b("div", {
|
|
412
412
|
key: "prev",
|
|
413
413
|
class: re(["v-slide-group__prev", {
|
|
414
|
-
"v-slide-group__prev--disabled": !
|
|
414
|
+
"v-slide-group__prev--disabled": !R.value
|
|
415
415
|
}]),
|
|
416
416
|
onMousedown: ne,
|
|
417
|
-
onClick: () =>
|
|
417
|
+
onClick: () => R.value && ue("prev")
|
|
418
418
|
}, [t.prev?.(q.value) ?? g(rl, null, {
|
|
419
419
|
default: () => [g(Se, {
|
|
420
420
|
icon: n.value ? e.nextIcon : e.prevIcon
|
|
@@ -447,7 +447,7 @@ const Zl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), en = X({
|
|
|
447
447
|
scrollTo: ue,
|
|
448
448
|
scrollOffset: o,
|
|
449
449
|
focus: K,
|
|
450
|
-
hasPrev:
|
|
450
|
+
hasPrev: R,
|
|
451
451
|
hasNext: O
|
|
452
452
|
};
|
|
453
453
|
}
|
|
@@ -462,7 +462,7 @@ const Zl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), en = X({
|
|
|
462
462
|
...en({
|
|
463
463
|
scrollToActive: !1
|
|
464
464
|
}),
|
|
465
|
-
...
|
|
465
|
+
...be(),
|
|
466
466
|
...Pl({
|
|
467
467
|
selectedClass: "v-chip--selected"
|
|
468
468
|
}),
|
|
@@ -492,11 +492,11 @@ const Zl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), en = X({
|
|
|
492
492
|
} = wl(e, tn);
|
|
493
493
|
return Jt({
|
|
494
494
|
VChip: {
|
|
495
|
-
baseColor:
|
|
496
|
-
color:
|
|
497
|
-
disabled:
|
|
498
|
-
filter:
|
|
499
|
-
variant:
|
|
495
|
+
baseColor: E(() => e.baseColor),
|
|
496
|
+
color: E(() => e.color),
|
|
497
|
+
disabled: E(() => e.disabled),
|
|
498
|
+
filter: E(() => e.filter),
|
|
499
|
+
variant: E(() => e.variant)
|
|
500
500
|
}
|
|
501
501
|
}), de(() => {
|
|
502
502
|
const r = gl.filterProps(e);
|
|
@@ -519,11 +519,11 @@ const Zl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), en = X({
|
|
|
519
519
|
}), ga = X({
|
|
520
520
|
activeClass: String,
|
|
521
521
|
appendAvatar: String,
|
|
522
|
-
appendIcon:
|
|
522
|
+
appendIcon: he,
|
|
523
523
|
baseColor: String,
|
|
524
524
|
closable: Boolean,
|
|
525
525
|
closeIcon: {
|
|
526
|
-
type:
|
|
526
|
+
type: he,
|
|
527
527
|
default: "$delete"
|
|
528
528
|
},
|
|
529
529
|
closeLabel: {
|
|
@@ -533,7 +533,7 @@ const Zl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), en = X({
|
|
|
533
533
|
draggable: Boolean,
|
|
534
534
|
filter: Boolean,
|
|
535
535
|
filterIcon: {
|
|
536
|
-
type:
|
|
536
|
+
type: he,
|
|
537
537
|
default: "$complete"
|
|
538
538
|
},
|
|
539
539
|
label: Boolean,
|
|
@@ -543,7 +543,7 @@ const Zl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), en = X({
|
|
|
543
543
|
},
|
|
544
544
|
pill: Boolean,
|
|
545
545
|
prependAvatar: String,
|
|
546
|
-
prependIcon:
|
|
546
|
+
prependIcon: he,
|
|
547
547
|
ripple: {
|
|
548
548
|
type: [Boolean, Object],
|
|
549
549
|
default: !0
|
|
@@ -559,7 +559,7 @@ const Zl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), en = X({
|
|
|
559
559
|
onClick: Le(),
|
|
560
560
|
onClickOnce: Le(),
|
|
561
561
|
...el(),
|
|
562
|
-
...
|
|
562
|
+
...be(),
|
|
563
563
|
...ht(),
|
|
564
564
|
...Zt(),
|
|
565
565
|
...En(),
|
|
@@ -605,7 +605,7 @@ const Zl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), en = X({
|
|
|
605
605
|
sizeClasses: d
|
|
606
606
|
} = Bn(e), {
|
|
607
607
|
themeClasses: c
|
|
608
|
-
} = ot(e), m = Ve(e, "modelValue"), v = cl(e, tn, !1), y = cl(e, Zl, !1), h = Al(e, t), p =
|
|
608
|
+
} = ot(e), m = Ve(e, "modelValue"), v = cl(e, tn, !1), y = cl(e, Zl, !1), h = Al(e, t), p = E(() => e.link !== !1 && h.isLink.value), w = I(() => !e.disabled && e.link !== !1 && (!!v || e.link || h.isClickable.value)), P = E(() => ({
|
|
609
609
|
"aria-label": u(e.closeLabel),
|
|
610
610
|
disabled: e.disabled,
|
|
611
611
|
onClick(V) {
|
|
@@ -618,7 +618,7 @@ const Zl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), en = X({
|
|
|
618
618
|
const {
|
|
619
619
|
colorClasses: C,
|
|
620
620
|
colorStyles: F,
|
|
621
|
-
variantClasses:
|
|
621
|
+
variantClasses: B
|
|
622
622
|
} = Fl(() => ({
|
|
623
623
|
color: !v || v.isSelected.value ? e.color ?? e.baseColor : e.baseColor,
|
|
624
624
|
variant: e.variant
|
|
@@ -639,7 +639,7 @@ const Zl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), en = X({
|
|
|
639
639
|
"v-chip--filter": ne,
|
|
640
640
|
"v-chip--pill": e.pill,
|
|
641
641
|
[`${e.activeClass}`]: e.activeClass && h.isActive?.value
|
|
642
|
-
}, c.value, s.value, C.value, i.value, o.value, r.value, d.value,
|
|
642
|
+
}, c.value, s.value, C.value, i.value, o.value, r.value, d.value, B.value, v?.selectedClass.value, e.class],
|
|
643
643
|
style: [F.value, e.style],
|
|
644
644
|
disabled: e.disabled || void 0,
|
|
645
645
|
draggable: e.draggable,
|
|
@@ -746,7 +746,7 @@ const Zl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), en = X({
|
|
|
746
746
|
}), ya = X({
|
|
747
747
|
color: String,
|
|
748
748
|
...el(),
|
|
749
|
-
...
|
|
749
|
+
...be(),
|
|
750
750
|
...pt(),
|
|
751
751
|
...Zt(),
|
|
752
752
|
...ll(),
|
|
@@ -805,11 +805,11 @@ const Zl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), en = X({
|
|
|
805
805
|
}, s = (o) => {
|
|
806
806
|
l.value[o] = { comparison: "=", value: null }, i("save");
|
|
807
807
|
}, i = a;
|
|
808
|
-
return (o, r) => (oe(),
|
|
808
|
+
return (o, r) => (oe(), ye(il, null, {
|
|
809
809
|
default: Ce(() => [
|
|
810
810
|
g(ma, null, {
|
|
811
811
|
default: Ce(() => [
|
|
812
|
-
(oe(!0), Ke(ce, null, Wt(
|
|
812
|
+
(oe(!0), Ke(ce, null, Wt(M(t), (d, c) => (oe(), ye(mt, {
|
|
813
813
|
key: c,
|
|
814
814
|
class: "my-0",
|
|
815
815
|
text: u(d, c),
|
|
@@ -828,7 +828,7 @@ const Zl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), en = X({
|
|
|
828
828
|
}, ba = X({
|
|
829
829
|
text: String,
|
|
830
830
|
onClick: Le(),
|
|
831
|
-
...
|
|
831
|
+
...be(),
|
|
832
832
|
...He()
|
|
833
833
|
}, "VLabel"), ln = ie()({
|
|
834
834
|
name: "VLabel",
|
|
@@ -855,8 +855,8 @@ const Zl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), en = X({
|
|
|
855
855
|
error: Boolean,
|
|
856
856
|
id: String,
|
|
857
857
|
inline: Boolean,
|
|
858
|
-
falseIcon:
|
|
859
|
-
trueIcon:
|
|
858
|
+
falseIcon: he,
|
|
859
|
+
trueIcon: he,
|
|
860
860
|
ripple: {
|
|
861
861
|
type: [Boolean, Object],
|
|
862
862
|
default: !0
|
|
@@ -876,7 +876,7 @@ const Zl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), en = X({
|
|
|
876
876
|
type: Function,
|
|
877
877
|
default: qe
|
|
878
878
|
},
|
|
879
|
-
...
|
|
879
|
+
...be(),
|
|
880
880
|
...ht(),
|
|
881
881
|
...He()
|
|
882
882
|
}, "SelectionControlGroup"), pa = X({
|
|
@@ -894,7 +894,7 @@ ie()({
|
|
|
894
894
|
let {
|
|
895
895
|
slots: t
|
|
896
896
|
} = a;
|
|
897
|
-
const n = Ve(e, "modelValue"), l = Xe(), u =
|
|
897
|
+
const n = Ve(e, "modelValue"), l = Xe(), u = E(() => e.id || `v-selection-control-group-${l}`), s = E(() => e.name || u.value), i = /* @__PURE__ */ new Set();
|
|
898
898
|
return We(nn, {
|
|
899
899
|
modelValue: n,
|
|
900
900
|
forceUpdate: () => {
|
|
@@ -907,20 +907,20 @@ ie()({
|
|
|
907
907
|
}
|
|
908
908
|
}), Jt({
|
|
909
909
|
[e.defaultsTarget]: {
|
|
910
|
-
color:
|
|
911
|
-
disabled:
|
|
912
|
-
density:
|
|
913
|
-
error:
|
|
914
|
-
inline:
|
|
910
|
+
color: E(() => e.color),
|
|
911
|
+
disabled: E(() => e.disabled),
|
|
912
|
+
density: E(() => e.density),
|
|
913
|
+
error: E(() => e.error),
|
|
914
|
+
inline: E(() => e.inline),
|
|
915
915
|
modelValue: n,
|
|
916
|
-
multiple:
|
|
916
|
+
multiple: E(() => !!e.multiple || e.multiple == null && Array.isArray(n.value)),
|
|
917
917
|
name: s,
|
|
918
|
-
falseIcon:
|
|
919
|
-
trueIcon:
|
|
920
|
-
readonly:
|
|
921
|
-
ripple:
|
|
922
|
-
type:
|
|
923
|
-
valueComparator:
|
|
918
|
+
falseIcon: E(() => e.falseIcon),
|
|
919
|
+
trueIcon: E(() => e.trueIcon),
|
|
920
|
+
readonly: E(() => e.readonly),
|
|
921
|
+
ripple: E(() => e.ripple),
|
|
922
|
+
type: E(() => e.type),
|
|
923
|
+
valueComparator: E(() => e.valueComparator)
|
|
924
924
|
}
|
|
925
925
|
}), de(() => b("div", {
|
|
926
926
|
class: re(["v-selection-control-group", {
|
|
@@ -937,7 +937,7 @@ const on = X({
|
|
|
937
937
|
trueValue: null,
|
|
938
938
|
falseValue: null,
|
|
939
939
|
value: null,
|
|
940
|
-
...
|
|
940
|
+
...be(),
|
|
941
941
|
...an()
|
|
942
942
|
}, "VSelectionControl");
|
|
943
943
|
function ka(e) {
|
|
@@ -1002,7 +1002,7 @@ const yl = ie()({
|
|
|
1002
1002
|
backgroundColorClasses: d,
|
|
1003
1003
|
backgroundColorStyles: c,
|
|
1004
1004
|
trueValue: m
|
|
1005
|
-
} = ka(e), v = Xe(), y = ee(!1), h = ee(!1), p = j(), w =
|
|
1005
|
+
} = ka(e), v = Xe(), y = ee(!1), h = ee(!1), p = j(), w = E(() => e.id || `input-${v}`), P = E(() => !e.disabled && !e.readonly);
|
|
1006
1006
|
l?.onForceUpdate(() => {
|
|
1007
1007
|
p.value && (p.value.checked = i.value);
|
|
1008
1008
|
});
|
|
@@ -1012,7 +1012,7 @@ const yl = ie()({
|
|
|
1012
1012
|
function F() {
|
|
1013
1013
|
y.value = !1, h.value = !1;
|
|
1014
1014
|
}
|
|
1015
|
-
function
|
|
1015
|
+
function B(_) {
|
|
1016
1016
|
_.stopPropagation();
|
|
1017
1017
|
}
|
|
1018
1018
|
function U(_) {
|
|
@@ -1083,7 +1083,7 @@ const yl = ie()({
|
|
|
1083
1083
|
circle: !0
|
|
1084
1084
|
}]])]), _ && g(ln, {
|
|
1085
1085
|
for: w.value,
|
|
1086
|
-
onClick:
|
|
1086
|
+
onClick: B
|
|
1087
1087
|
}, {
|
|
1088
1088
|
default: () => [_]
|
|
1089
1089
|
})]);
|
|
@@ -1095,7 +1095,7 @@ const yl = ie()({
|
|
|
1095
1095
|
}), Sa = X({
|
|
1096
1096
|
indeterminate: Boolean,
|
|
1097
1097
|
indeterminateIcon: {
|
|
1098
|
-
type:
|
|
1098
|
+
type: he,
|
|
1099
1099
|
default: "$checkboxIndeterminate"
|
|
1100
1100
|
},
|
|
1101
1101
|
...on({
|
|
@@ -1117,7 +1117,7 @@ const yl = ie()({
|
|
|
1117
1117
|
function u(o) {
|
|
1118
1118
|
n.value && (n.value = !1);
|
|
1119
1119
|
}
|
|
1120
|
-
const s =
|
|
1120
|
+
const s = E(() => n.value ? e.indeterminateIcon : e.falseIcon), i = E(() => n.value ? e.indeterminateIcon : e.trueIcon);
|
|
1121
1121
|
return de(() => {
|
|
1122
1122
|
const o = Ye(yl.filterProps(e), ["modelValue"]);
|
|
1123
1123
|
return g(yl, L(o, {
|
|
@@ -1173,7 +1173,7 @@ const Ca = X({
|
|
|
1173
1173
|
type: [Array, String],
|
|
1174
1174
|
default: () => []
|
|
1175
1175
|
},
|
|
1176
|
-
...
|
|
1176
|
+
...be(),
|
|
1177
1177
|
...Bt({
|
|
1178
1178
|
transition: {
|
|
1179
1179
|
component: Ml,
|
|
@@ -1212,7 +1212,7 @@ const Ca = X({
|
|
|
1212
1212
|
}, "focus");
|
|
1213
1213
|
function rn(e) {
|
|
1214
1214
|
let a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Nl();
|
|
1215
|
-
const t = Ve(e, "focused"), n =
|
|
1215
|
+
const t = Ve(e, "focused"), n = E(() => ({
|
|
1216
1216
|
[`${a}--focused`]: t.value
|
|
1217
1217
|
}));
|
|
1218
1218
|
function l() {
|
|
@@ -1245,7 +1245,7 @@ function wa(e) {
|
|
|
1245
1245
|
throw new Error("Could not find Vuetify rules injection");
|
|
1246
1246
|
return a.aliases;
|
|
1247
1247
|
}
|
|
1248
|
-
return a?.resolve(e) ??
|
|
1248
|
+
return a?.resolve(e) ?? E(e);
|
|
1249
1249
|
}
|
|
1250
1250
|
const _a = X({
|
|
1251
1251
|
disabled: {
|
|
@@ -1281,20 +1281,20 @@ function Pa(e) {
|
|
|
1281
1281
|
const n = Ve(e, "modelValue"), l = I(() => e.validationValue === void 0 ? n.value : e.validationValue), u = $t(e), s = wa(() => e.rules), i = j([]), o = ee(!0), r = I(() => !!(Te(n.value === "" ? null : n.value).length || Te(l.value === "" ? null : l.value).length)), d = I(() => e.errorMessages?.length ? Te(e.errorMessages).concat(i.value).slice(0, Math.max(0, Number(e.maxErrors))) : i.value), c = I(() => {
|
|
1282
1282
|
let F = (e.validateOn ?? u.validateOn?.value) || "input";
|
|
1283
1283
|
F === "lazy" && (F = "input lazy"), F === "eager" && (F = "input eager");
|
|
1284
|
-
const
|
|
1284
|
+
const B = new Set(F?.split(" ") ?? []);
|
|
1285
1285
|
return {
|
|
1286
|
-
input:
|
|
1287
|
-
blur:
|
|
1288
|
-
invalidInput:
|
|
1289
|
-
lazy:
|
|
1290
|
-
eager:
|
|
1286
|
+
input: B.has("input"),
|
|
1287
|
+
blur: B.has("blur") || B.has("input") || B.has("invalid-input"),
|
|
1288
|
+
invalidInput: B.has("invalid-input"),
|
|
1289
|
+
lazy: B.has("lazy"),
|
|
1290
|
+
eager: B.has("eager")
|
|
1291
1291
|
};
|
|
1292
1292
|
}), m = I(() => e.error || e.errorMessages?.length ? !1 : e.rules.length ? o.value ? i.value.length || c.value.lazy ? null : !0 : !i.value.length : !0), v = ee(!1), y = I(() => ({
|
|
1293
1293
|
[`${a}--error`]: m.value === !1,
|
|
1294
1294
|
[`${a}--dirty`]: r.value,
|
|
1295
1295
|
[`${a}--disabled`]: u.isDisabled.value,
|
|
1296
1296
|
[`${a}--readonly`]: u.isReadonly.value
|
|
1297
|
-
})), h = Ll("validation"), p = I(() => e.name ??
|
|
1297
|
+
})), h = Ll("validation"), p = I(() => e.name ?? M(t));
|
|
1298
1298
|
wn(() => {
|
|
1299
1299
|
u.register?.({
|
|
1300
1300
|
id: p.value,
|
|
@@ -1312,8 +1312,8 @@ function Pa(e) {
|
|
|
1312
1312
|
if (l.value != null)
|
|
1313
1313
|
C();
|
|
1314
1314
|
else if (e.focused) {
|
|
1315
|
-
const F = se(() => e.focused, (
|
|
1316
|
-
|
|
1315
|
+
const F = se(() => e.focused, (B) => {
|
|
1316
|
+
B || C(), F();
|
|
1317
1317
|
});
|
|
1318
1318
|
}
|
|
1319
1319
|
});
|
|
@@ -1332,10 +1332,10 @@ function Pa(e) {
|
|
|
1332
1332
|
}
|
|
1333
1333
|
async function C() {
|
|
1334
1334
|
let F = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1;
|
|
1335
|
-
const
|
|
1335
|
+
const B = [];
|
|
1336
1336
|
v.value = !0;
|
|
1337
1337
|
for (const U of s.value) {
|
|
1338
|
-
if (
|
|
1338
|
+
if (B.length >= Number(e.maxErrors ?? 1))
|
|
1339
1339
|
break;
|
|
1340
1340
|
const V = await (typeof U == "function" ? U : () => U)(l.value);
|
|
1341
1341
|
if (V !== !0) {
|
|
@@ -1343,10 +1343,10 @@ function Pa(e) {
|
|
|
1343
1343
|
console.warn(`${V} is not a valid value. Rule functions must return boolean true or a string.`);
|
|
1344
1344
|
continue;
|
|
1345
1345
|
}
|
|
1346
|
-
|
|
1346
|
+
B.push(V || "");
|
|
1347
1347
|
}
|
|
1348
1348
|
}
|
|
1349
|
-
return i.value =
|
|
1349
|
+
return i.value = B, v.value = !1, o.value = F, i.value;
|
|
1350
1350
|
}
|
|
1351
1351
|
return {
|
|
1352
1352
|
errorMessages: d,
|
|
@@ -1364,7 +1364,7 @@ function Pa(e) {
|
|
|
1364
1364
|
}
|
|
1365
1365
|
const cn = X({
|
|
1366
1366
|
id: String,
|
|
1367
|
-
appendIcon:
|
|
1367
|
+
appendIcon: he,
|
|
1368
1368
|
baseColor: String,
|
|
1369
1369
|
centerAffix: {
|
|
1370
1370
|
type: Boolean,
|
|
@@ -1373,7 +1373,7 @@ const cn = X({
|
|
|
1373
1373
|
color: String,
|
|
1374
1374
|
glow: Boolean,
|
|
1375
1375
|
iconColor: [Boolean, String],
|
|
1376
|
-
prependIcon:
|
|
1376
|
+
prependIcon: he,
|
|
1377
1377
|
hideDetails: [Boolean, String],
|
|
1378
1378
|
hideSpinButtons: Boolean,
|
|
1379
1379
|
hint: String,
|
|
@@ -1389,7 +1389,7 @@ const cn = X({
|
|
|
1389
1389
|
},
|
|
1390
1390
|
"onClick:prepend": Le(),
|
|
1391
1391
|
"onClick:append": Le(),
|
|
1392
|
-
...
|
|
1392
|
+
...be(),
|
|
1393
1393
|
...ht(),
|
|
1394
1394
|
...On(pt(), ["maxWidth", "minWidth", "width"]),
|
|
1395
1395
|
...He(),
|
|
@@ -1428,9 +1428,9 @@ const cn = X({
|
|
|
1428
1428
|
isValidating: P,
|
|
1429
1429
|
reset: C,
|
|
1430
1430
|
resetValidation: F,
|
|
1431
|
-
validate:
|
|
1431
|
+
validate: B,
|
|
1432
1432
|
validationClasses: U
|
|
1433
|
-
} = Pa(e, "v-input", c), _ = I(() => e.errorMessages?.length || !p.value && m.value.length ? m.value : e.hint && (e.persistentHint || e.focused) ? e.hint : e.messages), V =
|
|
1433
|
+
} = Pa(e, "v-input", c), _ = I(() => e.errorMessages?.length || !p.value && m.value.length ? m.value : e.hint && (e.persistentHint || e.focused) ? e.hint : e.messages), V = E(() => _.value.length > 0), $ = E(() => !e.hideDetails || e.hideDetails === "auto" && (V.value || !!n.details)), D = I(() => $.value ? `${c.value}-messages` : void 0), G = I(() => ({
|
|
1434
1434
|
id: c,
|
|
1435
1435
|
messagesId: D,
|
|
1436
1436
|
isDirty: v,
|
|
@@ -1442,8 +1442,8 @@ const cn = X({
|
|
|
1442
1442
|
hasDetails: $,
|
|
1443
1443
|
reset: C,
|
|
1444
1444
|
resetValidation: F,
|
|
1445
|
-
validate:
|
|
1446
|
-
})), ne =
|
|
1445
|
+
validate: B
|
|
1446
|
+
})), ne = E(() => e.error || e.disabled ? void 0 : e.focused ? e.color : e.baseColor), H = E(() => {
|
|
1447
1447
|
if (e.iconColor)
|
|
1448
1448
|
return e.iconColor === !0 ? ne.value : e.iconColor;
|
|
1449
1449
|
});
|
|
@@ -1487,7 +1487,7 @@ const cn = X({
|
|
|
1487
1487
|
}), {
|
|
1488
1488
|
reset: C,
|
|
1489
1489
|
resetValidation: F,
|
|
1490
|
-
validate:
|
|
1490
|
+
validate: B,
|
|
1491
1491
|
isValid: w,
|
|
1492
1492
|
errorMessages: m
|
|
1493
1493
|
};
|
|
@@ -1500,7 +1500,7 @@ const cn = X({
|
|
|
1500
1500
|
type: [Number, String],
|
|
1501
1501
|
default: 0
|
|
1502
1502
|
},
|
|
1503
|
-
...
|
|
1503
|
+
...be(),
|
|
1504
1504
|
...Bt({
|
|
1505
1505
|
transition: {
|
|
1506
1506
|
component: Ml
|
|
@@ -1514,7 +1514,7 @@ const cn = X({
|
|
|
1514
1514
|
let {
|
|
1515
1515
|
slots: t
|
|
1516
1516
|
} = a;
|
|
1517
|
-
const n =
|
|
1517
|
+
const n = E(() => e.max ? `${e.value} / ${e.max}` : String(e.value));
|
|
1518
1518
|
return de(() => g(nl, {
|
|
1519
1519
|
transition: e.transition
|
|
1520
1520
|
}, {
|
|
@@ -1532,7 +1532,7 @@ const cn = X({
|
|
|
1532
1532
|
}
|
|
1533
1533
|
}), Da = X({
|
|
1534
1534
|
floating: Boolean,
|
|
1535
|
-
...
|
|
1535
|
+
...be()
|
|
1536
1536
|
}, "VFieldLabel"), Ct = ie()({
|
|
1537
1537
|
name: "VFieldLabel",
|
|
1538
1538
|
props: Da(),
|
|
@@ -1548,11 +1548,11 @@ const cn = X({
|
|
|
1548
1548
|
}, t)), {};
|
|
1549
1549
|
}
|
|
1550
1550
|
}), Ta = ["underlined", "outlined", "filled", "solo", "solo-inverted", "solo-filled", "plain"], dn = X({
|
|
1551
|
-
appendInnerIcon:
|
|
1551
|
+
appendInnerIcon: he,
|
|
1552
1552
|
bgColor: String,
|
|
1553
1553
|
clearable: Boolean,
|
|
1554
1554
|
clearIcon: {
|
|
1555
|
-
type:
|
|
1555
|
+
type: he,
|
|
1556
1556
|
default: "$clear"
|
|
1557
1557
|
},
|
|
1558
1558
|
active: Boolean,
|
|
@@ -1573,7 +1573,7 @@ const cn = X({
|
|
|
1573
1573
|
iconColor: [Boolean, String],
|
|
1574
1574
|
label: String,
|
|
1575
1575
|
persistentClear: Boolean,
|
|
1576
|
-
prependInnerIcon:
|
|
1576
|
+
prependInnerIcon: he,
|
|
1577
1577
|
reverse: Boolean,
|
|
1578
1578
|
singleLine: Boolean,
|
|
1579
1579
|
variant: {
|
|
@@ -1584,7 +1584,7 @@ const cn = X({
|
|
|
1584
1584
|
"onClick:clear": Le(),
|
|
1585
1585
|
"onClick:appendInner": Le(),
|
|
1586
1586
|
"onClick:prependInner": Le(),
|
|
1587
|
-
...
|
|
1587
|
+
...be(),
|
|
1588
1588
|
...Ul(),
|
|
1589
1589
|
...yt(),
|
|
1590
1590
|
...He()
|
|
@@ -1623,7 +1623,7 @@ const cn = X({
|
|
|
1623
1623
|
roundedClasses: m
|
|
1624
1624
|
} = gt(e), {
|
|
1625
1625
|
rtlClasses: v
|
|
1626
|
-
} = Ft(), y =
|
|
1626
|
+
} = Ft(), y = E(() => e.dirty || e.active), h = E(() => !!(e.label || l.label)), p = E(() => !e.singleLine && h.value), w = Xe(), P = I(() => e.id || `input-${w}`), C = E(() => e.details ? `${P.value}-messages` : void 0), F = j(), B = j(), U = j(), _ = I(() => ["plain", "underlined"].includes(e.variant)), V = I(() => e.error || e.disabled ? void 0 : y.value && o.value ? e.color : e.baseColor), $ = I(() => {
|
|
1627
1627
|
if (!(!e.iconColor || e.glow && !o.value))
|
|
1628
1628
|
return e.iconColor === !0 ? V.value : e.iconColor;
|
|
1629
1629
|
}), {
|
|
@@ -1635,12 +1635,12 @@ const cn = X({
|
|
|
1635
1635
|
} = kt(V);
|
|
1636
1636
|
se(y, (z) => {
|
|
1637
1637
|
if (p.value && !xl()) {
|
|
1638
|
-
const fe = F.value.$el,
|
|
1638
|
+
const fe = F.value.$el, R = B.value.$el;
|
|
1639
1639
|
requestAnimationFrame(() => {
|
|
1640
|
-
const O = $n(fe), k = new Mn(
|
|
1640
|
+
const O = $n(fe), k = new Mn(R), f = k.x - O.x, A = k.y - O.y - (O.height / 2 - k.height / 2), J = k.width / 0.75, ve = Math.abs(J - O.width) > 1 ? {
|
|
1641
1641
|
maxWidth: et(J)
|
|
1642
|
-
} : void 0, ge = getComputedStyle(fe),
|
|
1643
|
-
fe.style.visibility = "visible",
|
|
1642
|
+
} : void 0, ge = getComputedStyle(fe), pe = getComputedStyle(R), Ie = parseFloat(ge.transitionDuration) * 1e3 || 150, De = parseFloat(pe.getPropertyValue("--v-field-label-scale")), je = pe.getPropertyValue("color");
|
|
1643
|
+
fe.style.visibility = "visible", R.style.visibility = "hidden", Nn(fe, {
|
|
1644
1644
|
transform: `translate(${f}px, ${A}px) scale(${De})`,
|
|
1645
1645
|
color: je,
|
|
1646
1646
|
...ve
|
|
@@ -1649,7 +1649,7 @@ const cn = X({
|
|
|
1649
1649
|
easing: Ln,
|
|
1650
1650
|
direction: z ? "normal" : "reverse"
|
|
1651
1651
|
}).finished.then(() => {
|
|
1652
|
-
fe.style.removeProperty("visibility"),
|
|
1652
|
+
fe.style.removeProperty("visibility"), R.style.removeProperty("visibility");
|
|
1653
1653
|
});
|
|
1654
1654
|
});
|
|
1655
1655
|
}
|
|
@@ -1663,13 +1663,13 @@ const cn = X({
|
|
|
1663
1663
|
iconColor: $,
|
|
1664
1664
|
blur: d,
|
|
1665
1665
|
focus: r
|
|
1666
|
-
})), K =
|
|
1666
|
+
})), K = E(() => {
|
|
1667
1667
|
const z = !y.value;
|
|
1668
1668
|
return {
|
|
1669
1669
|
"aria-hidden": z,
|
|
1670
1670
|
for: z ? void 0 : P.value
|
|
1671
1671
|
};
|
|
1672
|
-
}), ue =
|
|
1672
|
+
}), ue = E(() => {
|
|
1673
1673
|
const z = p.value && y.value;
|
|
1674
1674
|
return {
|
|
1675
1675
|
"aria-hidden": z,
|
|
@@ -1680,7 +1680,7 @@ const cn = X({
|
|
|
1680
1680
|
z.target !== document.activeElement && z.preventDefault();
|
|
1681
1681
|
}
|
|
1682
1682
|
return de(() => {
|
|
1683
|
-
const z = e.variant === "outlined", fe = !!(l["prepend-inner"] || e.prependInnerIcon),
|
|
1683
|
+
const z = e.variant === "outlined", fe = !!(l["prepend-inner"] || e.prependInnerIcon), R = !!(e.clearable || l.clear) && !e.disabled, O = !!(l["append-inner"] || e.appendInnerIcon || R), k = () => l.label ? l.label({
|
|
1684
1684
|
...W.value,
|
|
1685
1685
|
label: e.label,
|
|
1686
1686
|
props: {
|
|
@@ -1727,7 +1727,7 @@ const cn = X({
|
|
|
1727
1727
|
"data-no-activator": ""
|
|
1728
1728
|
}, [["filled", "solo", "solo-inverted", "solo-filled"].includes(e.variant) && p.value && g(Ct, L({
|
|
1729
1729
|
key: "floating-label",
|
|
1730
|
-
ref:
|
|
1730
|
+
ref: B,
|
|
1731
1731
|
class: [ne.value],
|
|
1732
1732
|
floating: !0
|
|
1733
1733
|
}, K.value, {
|
|
@@ -1753,7 +1753,7 @@ const cn = X({
|
|
|
1753
1753
|
id: P.value,
|
|
1754
1754
|
class: "v-field__input",
|
|
1755
1755
|
"aria-describedby": C.value
|
|
1756
|
-
}, null)]),
|
|
1756
|
+
}, null)]), R && g(Tl, {
|
|
1757
1757
|
key: "clear"
|
|
1758
1758
|
}, {
|
|
1759
1759
|
default: () => [Ue(b("div", {
|
|
@@ -1798,14 +1798,14 @@ const cn = X({
|
|
|
1798
1798
|
}, null), p.value && b("div", {
|
|
1799
1799
|
class: "v-field__outline__notch"
|
|
1800
1800
|
}, [g(Ct, L({
|
|
1801
|
-
ref:
|
|
1801
|
+
ref: B,
|
|
1802
1802
|
floating: !0
|
|
1803
1803
|
}, K.value), {
|
|
1804
1804
|
default: () => [k()]
|
|
1805
1805
|
})]), b("div", {
|
|
1806
1806
|
class: "v-field__outline__end"
|
|
1807
1807
|
}, null)]), _.value && p.value && g(Ct, L({
|
|
1808
|
-
ref:
|
|
1808
|
+
ref: B,
|
|
1809
1809
|
floating: !0
|
|
1810
1810
|
}, K.value), {
|
|
1811
1811
|
default: () => [k()]
|
|
@@ -1819,10 +1819,10 @@ const cn = X({
|
|
|
1819
1819
|
autocomplete: String
|
|
1820
1820
|
}, "autocomplete");
|
|
1821
1821
|
function vn(e) {
|
|
1822
|
-
const a = Xe(), t = ee(0), n =
|
|
1822
|
+
const a = Xe(), t = ee(0), n = E(() => e.autocomplete === "suppress"), l = E(() => {
|
|
1823
1823
|
if (e.name)
|
|
1824
1824
|
return n.value ? `${e.name}-${a}-${t.value}` : e.name;
|
|
1825
|
-
}), u =
|
|
1825
|
+
}), u = E(() => n.value ? "off" : e.autocomplete);
|
|
1826
1826
|
return {
|
|
1827
1827
|
isSuppressing: n,
|
|
1828
1828
|
fieldAutocomplete: u,
|
|
@@ -1899,7 +1899,7 @@ const Ea = ["color", "file", "time", "date", "datetime-local", "week", "month"],
|
|
|
1899
1899
|
function F(_) {
|
|
1900
1900
|
n("click:control", _);
|
|
1901
1901
|
}
|
|
1902
|
-
function
|
|
1902
|
+
function B(_, V) {
|
|
1903
1903
|
_.stopPropagation(), P(), ke(() => {
|
|
1904
1904
|
V(), $l(e["onClick:clear"], _);
|
|
1905
1905
|
});
|
|
@@ -1943,14 +1943,14 @@ const Ea = ["color", "file", "time", "date", "datetime-local", "week", "month"],
|
|
|
1943
1943
|
isDirty: q,
|
|
1944
1944
|
isReadonly: z,
|
|
1945
1945
|
isValid: fe,
|
|
1946
|
-
hasDetails:
|
|
1946
|
+
hasDetails: R,
|
|
1947
1947
|
reset: O
|
|
1948
1948
|
} = W;
|
|
1949
1949
|
return g(bl, L({
|
|
1950
1950
|
ref: y,
|
|
1951
1951
|
onMousedown: C,
|
|
1952
1952
|
onClick: F,
|
|
1953
|
-
"onClick:clear": (k) =>
|
|
1953
|
+
"onClick:clear": (k) => B(k, O),
|
|
1954
1954
|
role: e.role
|
|
1955
1955
|
}, Ye(H, ["onClick:clear"]), {
|
|
1956
1956
|
id: K.value,
|
|
@@ -1959,7 +1959,7 @@ const Ea = ["color", "file", "time", "date", "datetime-local", "week", "month"],
|
|
|
1959
1959
|
dirty: q.value || e.dirty,
|
|
1960
1960
|
disabled: ue.value,
|
|
1961
1961
|
focused: s.value,
|
|
1962
|
-
details:
|
|
1962
|
+
details: R.value,
|
|
1963
1963
|
error: fe.value === !1
|
|
1964
1964
|
}), {
|
|
1965
1965
|
...l,
|
|
@@ -2020,7 +2020,7 @@ const Ea = ["color", "file", "time", "date", "datetime-local", "week", "month"],
|
|
|
2020
2020
|
}
|
|
2021
2021
|
}), Oa = X({
|
|
2022
2022
|
renderless: Boolean,
|
|
2023
|
-
...
|
|
2023
|
+
...be()
|
|
2024
2024
|
}, "VVirtualScrollItem"), $a = ie()({
|
|
2025
2025
|
name: "VVirtualScrollItem",
|
|
2026
2026
|
inheritAttrs: !1,
|
|
@@ -2087,18 +2087,18 @@ function Ha(e, a) {
|
|
|
2087
2087
|
});
|
|
2088
2088
|
const w = ee(0);
|
|
2089
2089
|
let P = -1;
|
|
2090
|
-
function C(
|
|
2091
|
-
return h[
|
|
2090
|
+
function C(R) {
|
|
2091
|
+
return h[R] || n.value;
|
|
2092
2092
|
}
|
|
2093
2093
|
const F = Hn(() => {
|
|
2094
|
-
const
|
|
2094
|
+
const R = performance.now();
|
|
2095
2095
|
p[0] = 0;
|
|
2096
2096
|
const O = a.value.length;
|
|
2097
2097
|
for (let k = 1; k <= O; k++)
|
|
2098
2098
|
p[k] = (p[k - 1] || 0) + C(k - 1);
|
|
2099
|
-
w.value = Math.max(w.value, performance.now() -
|
|
2100
|
-
}, w),
|
|
2101
|
-
|
|
2099
|
+
w.value = Math.max(w.value, performance.now() - R);
|
|
2100
|
+
}, w), B = se(y, (R) => {
|
|
2101
|
+
R && (B(), d = r.value.offsetTop, F.immediate(), ue(), ~P && ke(() => {
|
|
2102
2102
|
ct && window.requestAnimationFrame(() => {
|
|
2103
2103
|
z(P), P = -1;
|
|
2104
2104
|
});
|
|
@@ -2107,29 +2107,29 @@ function Ha(e, a) {
|
|
|
2107
2107
|
rt(() => {
|
|
2108
2108
|
F.clear();
|
|
2109
2109
|
});
|
|
2110
|
-
function U(
|
|
2111
|
-
const k = h[
|
|
2112
|
-
n.value = f ? Math.min(n.value, O) : O, (k !== O || f !== n.value) && (h[
|
|
2110
|
+
function U(R, O) {
|
|
2111
|
+
const k = h[R], f = n.value;
|
|
2112
|
+
n.value = f ? Math.min(n.value, O) : O, (k !== O || f !== n.value) && (h[R] = O, F());
|
|
2113
2113
|
}
|
|
2114
|
-
function _(
|
|
2115
|
-
|
|
2116
|
-
const O = Math.floor(
|
|
2114
|
+
function _(R) {
|
|
2115
|
+
R = Ne(R, 0, a.value.length);
|
|
2116
|
+
const O = Math.floor(R), k = R % 1, f = O + 1, A = p[O] || 0, J = p[f] || A;
|
|
2117
2117
|
return A + (J - A) * k;
|
|
2118
2118
|
}
|
|
2119
|
-
function V(
|
|
2120
|
-
return za(p,
|
|
2119
|
+
function V(R) {
|
|
2120
|
+
return za(p, R);
|
|
2121
2121
|
}
|
|
2122
2122
|
let $ = 0, D = 0, G = 0;
|
|
2123
|
-
se(v, (
|
|
2124
|
-
ue(),
|
|
2123
|
+
se(v, (R, O) => {
|
|
2124
|
+
ue(), R < O && requestAnimationFrame(() => {
|
|
2125
2125
|
D = 0, ue();
|
|
2126
2126
|
});
|
|
2127
2127
|
});
|
|
2128
2128
|
let ne = -1;
|
|
2129
2129
|
function H() {
|
|
2130
2130
|
if (!o.value || !r.value) return;
|
|
2131
|
-
const
|
|
2132
|
-
O - G > 500 ? (D = Math.sign(
|
|
2131
|
+
const R = o.value.scrollTop, O = performance.now();
|
|
2132
|
+
O - G > 500 ? (D = Math.sign(R - $), d = r.value.offsetTop) : D = R - $, $ = R, G = O, window.clearTimeout(ne), ne = window.setTimeout(W, 500), ue();
|
|
2133
2133
|
}
|
|
2134
2134
|
function W() {
|
|
2135
2135
|
!o.value || !r.value || (D = 0, G = 0, window.clearTimeout(ne), ue());
|
|
@@ -2140,7 +2140,7 @@ function Ha(e, a) {
|
|
|
2140
2140
|
}
|
|
2141
2141
|
function q() {
|
|
2142
2142
|
if (!o.value || !v.value || !n.value) return;
|
|
2143
|
-
const
|
|
2143
|
+
const R = $ - d, O = Math.sign(D), k = Math.max(0, R - Lt), f = Ne(V(k), 0, a.value.length), A = R + v.value + Lt, J = Ne(V(A) + 1, f + 1, a.value.length);
|
|
2144
2144
|
if (
|
|
2145
2145
|
// Only update the side we're scrolling towards,
|
|
2146
2146
|
// the other side will be updated incidentally
|
|
@@ -2151,16 +2151,16 @@ function Ha(e, a) {
|
|
|
2151
2151
|
}
|
|
2152
2152
|
s.value = _(l.value), i.value = _(a.value.length) - _(u.value);
|
|
2153
2153
|
}
|
|
2154
|
-
function z(
|
|
2155
|
-
const O = _(
|
|
2156
|
-
!o.value ||
|
|
2154
|
+
function z(R) {
|
|
2155
|
+
const O = _(R);
|
|
2156
|
+
!o.value || R && !O ? P = R : o.value.scrollTop = O;
|
|
2157
2157
|
}
|
|
2158
|
-
const fe = I(() => a.value.slice(l.value, u.value).map((
|
|
2158
|
+
const fe = I(() => a.value.slice(l.value, u.value).map((R, O) => {
|
|
2159
2159
|
const k = O + l.value;
|
|
2160
2160
|
return {
|
|
2161
|
-
raw:
|
|
2161
|
+
raw: R,
|
|
2162
2162
|
index: k,
|
|
2163
|
-
key: Kl(
|
|
2163
|
+
key: Kl(R, e.itemKey, k)
|
|
2164
2164
|
};
|
|
2165
2165
|
}));
|
|
2166
2166
|
return se(a, () => {
|
|
@@ -2203,7 +2203,7 @@ const Ua = X({
|
|
|
2203
2203
|
},
|
|
2204
2204
|
renderless: Boolean,
|
|
2205
2205
|
...La(),
|
|
2206
|
-
...
|
|
2206
|
+
...be(),
|
|
2207
2207
|
...pt()
|
|
2208
2208
|
}, "VVirtualScroll"), fn = ie()({
|
|
2209
2209
|
name: "VVirtualScroll",
|
|
@@ -2225,7 +2225,7 @@ const Ua = X({
|
|
|
2225
2225
|
paddingTop: m,
|
|
2226
2226
|
paddingBottom: v,
|
|
2227
2227
|
computedItems: y
|
|
2228
|
-
} = Ha(e,
|
|
2228
|
+
} = Ha(e, E(() => e.items));
|
|
2229
2229
|
return jt(() => e.renderless, () => {
|
|
2230
2230
|
function h() {
|
|
2231
2231
|
const w = (arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1) ? "addEventListener" : "removeEventListener";
|
|
@@ -2441,18 +2441,18 @@ function ja(e, a, t) {
|
|
|
2441
2441
|
return n;
|
|
2442
2442
|
}
|
|
2443
2443
|
function hn(e, a, t, n) {
|
|
2444
|
-
const l = ee([]), u = ee(/* @__PURE__ */ new Map()), s = I(() => n?.transform ?
|
|
2444
|
+
const l = ee([]), u = ee(/* @__PURE__ */ new Map()), s = I(() => n?.transform ? M(a).map((o) => [o, n.transform(o)]) : M(a));
|
|
2445
2445
|
zt(() => {
|
|
2446
|
-
const o = typeof t == "function" ? t() :
|
|
2446
|
+
const o = typeof t == "function" ? t() : M(t), r = typeof o != "string" && typeof o != "number" ? "" : String(o), d = ja(s.value, r, {
|
|
2447
2447
|
customKeyFilter: {
|
|
2448
2448
|
...e.customKeyFilter,
|
|
2449
|
-
...
|
|
2449
|
+
...M(n?.customKeyFilter)
|
|
2450
2450
|
},
|
|
2451
2451
|
default: e.customFilter,
|
|
2452
2452
|
filterKeys: e.filterKeys,
|
|
2453
2453
|
filterMode: e.filterMode,
|
|
2454
2454
|
noFilter: e.noFilter
|
|
2455
|
-
}), c =
|
|
2455
|
+
}), c = M(a), m = [], v = /* @__PURE__ */ new Map();
|
|
2456
2456
|
d.forEach((y) => {
|
|
2457
2457
|
let {
|
|
2458
2458
|
index: h,
|
|
@@ -2494,7 +2494,7 @@ const Ga = X({
|
|
|
2494
2494
|
}
|
|
2495
2495
|
}, "autocomplete");
|
|
2496
2496
|
function pn(e, a) {
|
|
2497
|
-
const t = Xe(), n = I(() => `menu-${t}`), l =
|
|
2497
|
+
const t = Xe(), n = I(() => `menu-${t}`), l = E(() => Ut(a)), u = E(() => n.value);
|
|
2498
2498
|
return {
|
|
2499
2499
|
menuId: n,
|
|
2500
2500
|
ariaExpanded: l,
|
|
@@ -2512,7 +2512,7 @@ const kn = X({
|
|
|
2512
2512
|
},
|
|
2513
2513
|
menu: Boolean,
|
|
2514
2514
|
menuIcon: {
|
|
2515
|
-
type:
|
|
2515
|
+
type: he,
|
|
2516
2516
|
default: "$dropdown"
|
|
2517
2517
|
},
|
|
2518
2518
|
menuProps: {
|
|
@@ -2570,7 +2570,7 @@ const kn = X({
|
|
|
2570
2570
|
} = hn(e, r, () => m.value), h = Ve(e, "modelValue", [], (x) => d(x === null ? [null] : Te(x)), (x) => {
|
|
2571
2571
|
const Q = c(x);
|
|
2572
2572
|
return e.multiple ? Q : Q[0] ?? null;
|
|
2573
|
-
}), p = I(() => typeof e.counterValue == "function" ? e.counterValue(h.value) : typeof e.counterValue == "number" ? e.counterValue : h.value.length), w = $t(e), P = vn(e), C = I(() => h.value.map((x) => x.value)), F = ee(!1),
|
|
2573
|
+
}), p = I(() => typeof e.counterValue == "function" ? e.counterValue(h.value) : typeof e.counterValue == "number" ? e.counterValue : h.value.length), w = $t(e), P = vn(e), C = I(() => h.value.map((x) => x.value)), F = ee(!1), B = E(() => e.closableChips && !w.isReadonly.value && !w.isDisabled.value), {
|
|
2574
2574
|
InputIcon: U
|
|
2575
2575
|
} = Ot(e);
|
|
2576
2576
|
let _ = "", V = 0, $;
|
|
@@ -2594,7 +2594,7 @@ const kn = X({
|
|
|
2594
2594
|
// Set aria-haspopup to 'listbox'
|
|
2595
2595
|
}
|
|
2596
2596
|
})), z = j(), fe = mn(z, l), {
|
|
2597
|
-
onTabKeydown:
|
|
2597
|
+
onTabKeydown: R
|
|
2598
2598
|
} = gn({
|
|
2599
2599
|
groups: [{
|
|
2600
2600
|
type: "element",
|
|
@@ -2618,7 +2618,7 @@ const kn = X({
|
|
|
2618
2618
|
G.value || (H.value = !H.value);
|
|
2619
2619
|
}
|
|
2620
2620
|
function f(x) {
|
|
2621
|
-
x.key === "Tab" &&
|
|
2621
|
+
x.key === "Tab" && R(x), z.value?.$el.contains(x.target) && wt(x) && A(x);
|
|
2622
2622
|
}
|
|
2623
2623
|
function A(x) {
|
|
2624
2624
|
if (!x.key || w.isReadonly.value) return;
|
|
@@ -2645,8 +2645,8 @@ const kn = X({
|
|
|
2645
2645
|
}
|
|
2646
2646
|
const S = _e();
|
|
2647
2647
|
if (!S) return;
|
|
2648
|
-
const [Y,
|
|
2649
|
-
V =
|
|
2648
|
+
const [Y, N] = S;
|
|
2649
|
+
V = N, z.value?.focus(N), e.multiple || (h.value = [Y]);
|
|
2650
2650
|
}
|
|
2651
2651
|
function J(x) {
|
|
2652
2652
|
let Q = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;
|
|
@@ -2671,7 +2671,7 @@ const kn = X({
|
|
|
2671
2671
|
function ge() {
|
|
2672
2672
|
return D.value.findIndex((x) => h.value.some((Q) => (e.valueComparator || qe)(Q.value, x.value)));
|
|
2673
2673
|
}
|
|
2674
|
-
function
|
|
2674
|
+
function pe() {
|
|
2675
2675
|
if (!h.value.length) return -1;
|
|
2676
2676
|
const x = e.valueComparator || qe;
|
|
2677
2677
|
let Q = 0;
|
|
@@ -2683,7 +2683,7 @@ const kn = X({
|
|
|
2683
2683
|
}
|
|
2684
2684
|
function Ie() {
|
|
2685
2685
|
if (e.eager && o.value?.calculateVisibleItems(), z.value && F.value) {
|
|
2686
|
-
const x =
|
|
2686
|
+
const x = pe();
|
|
2687
2687
|
z.value.focus(x >= 0 ? x : "first");
|
|
2688
2688
|
}
|
|
2689
2689
|
}
|
|
@@ -2754,15 +2754,15 @@ const kn = X({
|
|
|
2754
2754
|
hidden: !0,
|
|
2755
2755
|
multiple: e.multiple,
|
|
2756
2756
|
name: P.fieldName.value
|
|
2757
|
-
}, [r.value.map((
|
|
2758
|
-
key:
|
|
2759
|
-
value:
|
|
2760
|
-
selected: C.value.includes(
|
|
2757
|
+
}, [r.value.map((N) => b("option", {
|
|
2758
|
+
key: N.value,
|
|
2759
|
+
value: N.value,
|
|
2760
|
+
selected: C.value.includes(N.value)
|
|
2761
2761
|
}, null))]), g(Gl, L({
|
|
2762
2762
|
id: W.value,
|
|
2763
2763
|
ref: u,
|
|
2764
2764
|
modelValue: H.value,
|
|
2765
|
-
"onUpdate:modelValue": (
|
|
2765
|
+
"onUpdate:modelValue": (N) => H.value = N,
|
|
2766
2766
|
activator: "parent",
|
|
2767
2767
|
contentClass: "v-select__content",
|
|
2768
2768
|
disabled: G.value,
|
|
@@ -2802,12 +2802,12 @@ const kn = X({
|
|
|
2802
2802
|
items: D.value,
|
|
2803
2803
|
itemKey: "value"
|
|
2804
2804
|
}, {
|
|
2805
|
-
default: (
|
|
2805
|
+
default: (N) => {
|
|
2806
2806
|
let {
|
|
2807
2807
|
item: T,
|
|
2808
2808
|
index: le,
|
|
2809
2809
|
itemRef: Re
|
|
2810
|
-
} =
|
|
2810
|
+
} = N;
|
|
2811
2811
|
const ae = Un(T.props), Z = L(T.props, {
|
|
2812
2812
|
ref: Re,
|
|
2813
2813
|
key: T.value,
|
|
@@ -2857,11 +2857,11 @@ const kn = X({
|
|
|
2857
2857
|
ref: i
|
|
2858
2858
|
}, [t["menu-footer"](we)])]
|
|
2859
2859
|
})]
|
|
2860
|
-
}), h.value.map((
|
|
2860
|
+
}), h.value.map((N, T) => {
|
|
2861
2861
|
function le(me) {
|
|
2862
|
-
me.stopPropagation(), me.preventDefault(), J(
|
|
2862
|
+
me.stopPropagation(), me.preventDefault(), J(N, !1);
|
|
2863
2863
|
}
|
|
2864
|
-
const Re = L(mt.filterProps(
|
|
2864
|
+
const Re = L(mt.filterProps(N.props), {
|
|
2865
2865
|
"onClick:close": le,
|
|
2866
2866
|
onKeydown(me) {
|
|
2867
2867
|
me.key !== "Enter" && me.key !== " " || (me.preventDefault(), me.stopPropagation(), le(me));
|
|
@@ -2872,44 +2872,44 @@ const kn = X({
|
|
|
2872
2872
|
modelValue: !0,
|
|
2873
2873
|
"onUpdate:modelValue": void 0
|
|
2874
2874
|
}), ae = x ? !!t.chip : !!t.selection, Z = ae ? ql(x ? t.chip({
|
|
2875
|
-
item:
|
|
2875
|
+
item: N,
|
|
2876
2876
|
index: T,
|
|
2877
2877
|
props: Re
|
|
2878
2878
|
}) : t.selection({
|
|
2879
|
-
item:
|
|
2879
|
+
item: N,
|
|
2880
2880
|
index: T
|
|
2881
2881
|
})) : void 0;
|
|
2882
2882
|
if (!(ae && !Z))
|
|
2883
2883
|
return b("div", {
|
|
2884
|
-
key:
|
|
2884
|
+
key: N.value,
|
|
2885
2885
|
class: "v-select__selection"
|
|
2886
2886
|
}, [x ? t.chip ? g(Fe, {
|
|
2887
2887
|
key: "chip-defaults",
|
|
2888
2888
|
defaults: {
|
|
2889
2889
|
VChip: {
|
|
2890
|
-
closable:
|
|
2890
|
+
closable: B.value,
|
|
2891
2891
|
size: "small",
|
|
2892
|
-
text:
|
|
2892
|
+
text: N.title
|
|
2893
2893
|
}
|
|
2894
2894
|
}
|
|
2895
2895
|
}, {
|
|
2896
2896
|
default: () => [Z]
|
|
2897
2897
|
}) : g(mt, L({
|
|
2898
2898
|
key: "chip",
|
|
2899
|
-
closable:
|
|
2899
|
+
closable: B.value,
|
|
2900
2900
|
size: "small",
|
|
2901
|
-
text:
|
|
2902
|
-
disabled:
|
|
2901
|
+
text: N.title,
|
|
2902
|
+
disabled: N.props.disabled
|
|
2903
2903
|
}, Re), null) : Z ?? b("span", {
|
|
2904
2904
|
class: "v-select__selection-text"
|
|
2905
|
-
}, [
|
|
2905
|
+
}, [N.title, e.multiple && T < h.value.length - 1 && b("span", {
|
|
2906
2906
|
class: "v-select__selection-comma"
|
|
2907
2907
|
}, [Sl(",")])])]);
|
|
2908
2908
|
})]);
|
|
2909
2909
|
},
|
|
2910
2910
|
"append-inner": function() {
|
|
2911
|
-
for (var S = arguments.length, Y = new Array(S),
|
|
2912
|
-
Y[
|
|
2911
|
+
for (var S = arguments.length, Y = new Array(S), N = 0; N < S; N++)
|
|
2912
|
+
Y[N] = arguments[N];
|
|
2913
2913
|
return b(ce, null, [t["append-inner"]?.(...Y), e.menuIcon ? g(Se, {
|
|
2914
2914
|
class: "v-select__menu-icon",
|
|
2915
2915
|
color: l.value?.fieldIconColor,
|
|
@@ -2971,10 +2971,10 @@ const kn = X({
|
|
|
2971
2971
|
} = Ot(e), P = Ve(e, "search", ""), C = Ve(e, "modelValue", [], (S) => v(S === null ? [null] : Te(S)), (S) => {
|
|
2972
2972
|
const Y = y(S);
|
|
2973
2973
|
return e.multiple ? Y : Y[0] ?? null;
|
|
2974
|
-
}), F = I(() => typeof e.counterValue == "function" ? e.counterValue(C.value) : typeof e.counterValue == "number" ? e.counterValue : C.value.length),
|
|
2974
|
+
}), F = I(() => typeof e.counterValue == "function" ? e.counterValue(C.value) : typeof e.counterValue == "number" ? e.counterValue : C.value.length), B = $t(e), {
|
|
2975
2975
|
filteredItems: U,
|
|
2976
2976
|
getMatches: _
|
|
2977
|
-
} = hn(e, m, () => c.value ?? (s.value ? "" : P.value)), V = I(() => e.hideSelected && c.value === null ? U.value.filter((S) => !C.value.some((Y) => Y.value === S.value)) : U.value), $ =
|
|
2977
|
+
} = hn(e, m, () => c.value ?? (s.value ? "" : P.value)), V = I(() => e.hideSelected && c.value === null ? U.value.filter((S) => !C.value.some((Y) => Y.value === S.value)) : U.value), $ = E(() => e.closableChips && !B.isReadonly.value && !B.isDisabled.value), D = I(() => !!(e.chips || t.chip)), G = I(() => D.value || !!t.selection), ne = I(() => C.value.map((S) => S.props.value)), H = I(() => V.value.find((S) => S.type === "item" && !S.props.disabled)), W = I(() => (e.autoSelectFirst === !0 || e.autoSelectFirst === "exact" && P.value === H.value?.title) && V.value.length > 0 && !s.value && !i.value), K = I(() => e.hideNoData && !V.value.length || B.isReadonly.value || B.isDisabled.value), ue = Ve(e, "menu"), q = I({
|
|
2978
2978
|
get: () => ue.value,
|
|
2979
2979
|
set: (S) => {
|
|
2980
2980
|
ue.value && !S && o.value?.ΨopenChildren.size || S && K.value || (ue.value = S);
|
|
@@ -2982,7 +2982,7 @@ const kn = X({
|
|
|
2982
2982
|
}), {
|
|
2983
2983
|
menuId: z,
|
|
2984
2984
|
ariaExpanded: fe,
|
|
2985
|
-
ariaControls:
|
|
2985
|
+
ariaControls: R
|
|
2986
2986
|
} = pn(e, q), O = j(), k = j(), f = j(), A = mn(O, l), {
|
|
2987
2987
|
onTabKeydown: J
|
|
2988
2988
|
} = gn({
|
|
@@ -3007,15 +3007,15 @@ const kn = X({
|
|
|
3007
3007
|
function ge() {
|
|
3008
3008
|
K.value || (q.value = !0);
|
|
3009
3009
|
}
|
|
3010
|
-
function
|
|
3010
|
+
function pe(S) {
|
|
3011
3011
|
K.value || (u.value && (S.preventDefault(), S.stopPropagation()), q.value = !q.value);
|
|
3012
3012
|
}
|
|
3013
3013
|
function Ie(S) {
|
|
3014
3014
|
S.key === "Tab" && J(S), O.value?.$el.contains(S.target) && (wt(S) || S.key === "Backspace") && l.value?.focus();
|
|
3015
3015
|
}
|
|
3016
3016
|
function De(S) {
|
|
3017
|
-
if (
|
|
3018
|
-
const Y = l.value?.selectionStart,
|
|
3017
|
+
if (B.isReadonly.value) return;
|
|
3018
|
+
const Y = l.value?.selectionStart, N = C.value.length;
|
|
3019
3019
|
if (["Enter", "ArrowDown", "ArrowUp"].includes(S.key) && S.preventDefault(), ["Enter", "ArrowDown"].includes(S.key) && (q.value = !0), ["Escape"].includes(S.key) && (q.value = !1), W.value && ["Enter", "Tab"].includes(S.key) && H.value && !C.value.some((T) => {
|
|
3020
3020
|
let {
|
|
3021
3021
|
value: le
|
|
@@ -3026,14 +3026,14 @@ const kn = X({
|
|
|
3026
3026
|
if (~d.value) {
|
|
3027
3027
|
S.preventDefault();
|
|
3028
3028
|
const T = d.value;
|
|
3029
|
-
we(C.value[d.value], !1), d.value = T >=
|
|
3030
|
-
} else S.key === "Backspace" && !P.value && (d.value =
|
|
3029
|
+
we(C.value[d.value], !1), d.value = T >= N - 1 ? N - 2 : T;
|
|
3030
|
+
} else S.key === "Backspace" && !P.value && (d.value = N - 1);
|
|
3031
3031
|
return;
|
|
3032
3032
|
}
|
|
3033
3033
|
if (e.multiple)
|
|
3034
3034
|
if (S.key === "ArrowLeft") {
|
|
3035
3035
|
if (d.value < 0 && Y && Y > 0) return;
|
|
3036
|
-
const T = d.value > -1 ? d.value - 1 :
|
|
3036
|
+
const T = d.value > -1 ? d.value - 1 : N - 1;
|
|
3037
3037
|
if (C.value[T])
|
|
3038
3038
|
d.value = T;
|
|
3039
3039
|
else {
|
|
@@ -3048,7 +3048,7 @@ const kn = X({
|
|
|
3048
3048
|
}
|
|
3049
3049
|
function je(S) {
|
|
3050
3050
|
if (dt(l.value, ":autofill") || dt(l.value, ":-webkit-autofill")) {
|
|
3051
|
-
const Y = m.value.find((
|
|
3051
|
+
const Y = m.value.find((N) => N.title === S.target.value);
|
|
3052
3052
|
Y && we(Y);
|
|
3053
3053
|
}
|
|
3054
3054
|
}
|
|
@@ -3077,15 +3077,15 @@ const kn = X({
|
|
|
3077
3077
|
let Y = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;
|
|
3078
3078
|
if (!(!S || S.props.disabled))
|
|
3079
3079
|
if (e.multiple) {
|
|
3080
|
-
const
|
|
3081
|
-
if (~
|
|
3080
|
+
const N = C.value.findIndex((le) => (e.valueComparator || qe)(le.value, S.value)), T = Y ?? !~N;
|
|
3081
|
+
if (~N) {
|
|
3082
3082
|
const le = T ? [...C.value, S] : [...C.value];
|
|
3083
|
-
le.splice(
|
|
3083
|
+
le.splice(N, 1), C.value = le;
|
|
3084
3084
|
} else T && (C.value = [...C.value, S]);
|
|
3085
3085
|
e.clearOnSelect && (P.value = "");
|
|
3086
3086
|
} else {
|
|
3087
|
-
const
|
|
3088
|
-
C.value =
|
|
3087
|
+
const N = Y !== !1;
|
|
3088
|
+
C.value = N ? [S] : [], c.value = s.value ? "" : P.value ?? "", P.value = N && !G.value ? S.title : "", ke(() => {
|
|
3089
3089
|
q.value = !1, s.value = !0;
|
|
3090
3090
|
});
|
|
3091
3091
|
}
|
|
@@ -3096,7 +3096,7 @@ const kn = X({
|
|
|
3096
3096
|
!u.value || _e.value || (S && (q.value = !0), s.value = !S);
|
|
3097
3097
|
}), se(q, (S) => {
|
|
3098
3098
|
if (!e.hideSelected && S && C.value.length && s.value) {
|
|
3099
|
-
const Y = V.value.findIndex((
|
|
3099
|
+
const Y = V.value.findIndex((N) => C.value.some((T) => N.value === T.value));
|
|
3100
3100
|
ct && window.requestAnimationFrame(() => {
|
|
3101
3101
|
Y >= 0 && r.value?.scrollToIndex(Y);
|
|
3102
3102
|
});
|
|
@@ -3105,13 +3105,13 @@ const kn = X({
|
|
|
3105
3105
|
}), se(m, (S, Y) => {
|
|
3106
3106
|
q.value || u.value && !Y.length && S.length && (q.value = !0);
|
|
3107
3107
|
}), de(() => {
|
|
3108
|
-
const S = !!(!e.hideNoData || V.value.length || t["prepend-item"] || t["append-item"] || t["no-data"]), Y = C.value.length > 0,
|
|
3108
|
+
const S = !!(!e.hideNoData || V.value.length || t["prepend-item"] || t["append-item"] || t["no-data"]), Y = C.value.length > 0, N = Je.filterProps(e), T = {
|
|
3109
3109
|
search: P,
|
|
3110
3110
|
filteredItems: U.value
|
|
3111
3111
|
};
|
|
3112
3112
|
return g(Je, L({
|
|
3113
3113
|
ref: l
|
|
3114
|
-
},
|
|
3114
|
+
}, N, {
|
|
3115
3115
|
modelValue: P.value,
|
|
3116
3116
|
"onUpdate:modelValue": [(le) => P.value = le, te],
|
|
3117
3117
|
focused: u.value,
|
|
@@ -3127,14 +3127,14 @@ const kn = X({
|
|
|
3127
3127
|
"v-autocomplete--selecting-index": d.value > -1
|
|
3128
3128
|
}, e.class],
|
|
3129
3129
|
style: e.style,
|
|
3130
|
-
readonly:
|
|
3130
|
+
readonly: B.isReadonly.value,
|
|
3131
3131
|
placeholder: Y ? void 0 : e.placeholder,
|
|
3132
3132
|
"onClick:clear": ve,
|
|
3133
3133
|
"onMousedown:control": ge,
|
|
3134
3134
|
onKeydown: De,
|
|
3135
3135
|
onBlur: Be,
|
|
3136
3136
|
"aria-expanded": fe.value,
|
|
3137
|
-
"aria-controls":
|
|
3137
|
+
"aria-controls": R.value
|
|
3138
3138
|
}), {
|
|
3139
3139
|
...t,
|
|
3140
3140
|
default: (le) => {
|
|
@@ -3300,7 +3300,7 @@ const kn = X({
|
|
|
3300
3300
|
class: "v-autocomplete__menu-icon",
|
|
3301
3301
|
color: l.value?.fieldIconColor,
|
|
3302
3302
|
icon: e.menuIcon,
|
|
3303
|
-
onMousedown:
|
|
3303
|
+
onMousedown: pe,
|
|
3304
3304
|
onClick: jn,
|
|
3305
3305
|
"aria-hidden": !0,
|
|
3306
3306
|
tabindex: "-1"
|
|
@@ -3326,7 +3326,7 @@ const kn = X({
|
|
|
3326
3326
|
content: [Number, String],
|
|
3327
3327
|
dot: Boolean,
|
|
3328
3328
|
floating: Boolean,
|
|
3329
|
-
icon:
|
|
3329
|
+
icon: he,
|
|
3330
3330
|
inline: Boolean,
|
|
3331
3331
|
label: {
|
|
3332
3332
|
type: String,
|
|
@@ -3340,7 +3340,7 @@ const kn = X({
|
|
|
3340
3340
|
offsetX: [Number, String],
|
|
3341
3341
|
offsetY: [Number, String],
|
|
3342
3342
|
textColor: String,
|
|
3343
|
-
...
|
|
3343
|
+
...be(),
|
|
3344
3344
|
...ll({
|
|
3345
3345
|
location: "top end"
|
|
3346
3346
|
}),
|
|
@@ -3486,7 +3486,7 @@ const kn = X({
|
|
|
3486
3486
|
}), St({}, s);
|
|
3487
3487
|
}
|
|
3488
3488
|
}), Za = X({
|
|
3489
|
-
...
|
|
3489
|
+
...be(),
|
|
3490
3490
|
...Oe()
|
|
3491
3491
|
}, "VCardActions"), Cn = ie()({
|
|
3492
3492
|
name: "VCardActions",
|
|
@@ -3507,7 +3507,7 @@ const kn = X({
|
|
|
3507
3507
|
}
|
|
3508
3508
|
}), eo = X({
|
|
3509
3509
|
opacity: [Number, String],
|
|
3510
|
-
...
|
|
3510
|
+
...be(),
|
|
3511
3511
|
...Oe()
|
|
3512
3512
|
}, "VCardSubtitle"), to = ie()({
|
|
3513
3513
|
name: "VCardSubtitle",
|
|
@@ -3525,9 +3525,9 @@ const kn = X({
|
|
|
3525
3525
|
}
|
|
3526
3526
|
}), ul = Xn("v-card-title"), lo = X({
|
|
3527
3527
|
appendAvatar: String,
|
|
3528
|
-
appendIcon:
|
|
3528
|
+
appendIcon: he,
|
|
3529
3529
|
prependAvatar: String,
|
|
3530
|
-
prependIcon:
|
|
3530
|
+
prependIcon: he,
|
|
3531
3531
|
subtitle: {
|
|
3532
3532
|
type: [String, Number, Boolean],
|
|
3533
3533
|
default: void 0
|
|
@@ -3536,7 +3536,7 @@ const kn = X({
|
|
|
3536
3536
|
type: [String, Number, Boolean],
|
|
3537
3537
|
default: void 0
|
|
3538
3538
|
},
|
|
3539
|
-
...
|
|
3539
|
+
...be(),
|
|
3540
3540
|
...ht(),
|
|
3541
3541
|
...Oe()
|
|
3542
3542
|
}, "VCardItem"), no = ie()({
|
|
@@ -3616,7 +3616,7 @@ const kn = X({
|
|
|
3616
3616
|
}
|
|
3617
3617
|
}), ao = X({
|
|
3618
3618
|
opacity: [Number, String],
|
|
3619
|
-
...
|
|
3619
|
+
...be(),
|
|
3620
3620
|
...Oe()
|
|
3621
3621
|
}, "VCardText"), sl = ie()({
|
|
3622
3622
|
name: "VCardText",
|
|
@@ -3634,7 +3634,7 @@ const kn = X({
|
|
|
3634
3634
|
}
|
|
3635
3635
|
}), oo = X({
|
|
3636
3636
|
appendAvatar: String,
|
|
3637
|
-
appendIcon:
|
|
3637
|
+
appendIcon: he,
|
|
3638
3638
|
disabled: Boolean,
|
|
3639
3639
|
flat: Boolean,
|
|
3640
3640
|
hover: Boolean,
|
|
@@ -3644,7 +3644,7 @@ const kn = X({
|
|
|
3644
3644
|
default: void 0
|
|
3645
3645
|
},
|
|
3646
3646
|
prependAvatar: String,
|
|
3647
|
-
prependIcon:
|
|
3647
|
+
prependIcon: he,
|
|
3648
3648
|
ripple: {
|
|
3649
3649
|
type: [Boolean, Object],
|
|
3650
3650
|
default: !0
|
|
@@ -3662,7 +3662,7 @@ const kn = X({
|
|
|
3662
3662
|
default: void 0
|
|
3663
3663
|
},
|
|
3664
3664
|
...el(),
|
|
3665
|
-
...
|
|
3665
|
+
...be(),
|
|
3666
3666
|
...ht(),
|
|
3667
3667
|
...pt(),
|
|
3668
3668
|
...Zt(),
|
|
@@ -3715,7 +3715,7 @@ const kn = X({
|
|
|
3715
3715
|
}, {
|
|
3716
3716
|
immediate: !0
|
|
3717
3717
|
}), de(() => {
|
|
3718
|
-
const P = e.link !== !1 && p.isLink.value, C = !e.disabled && e.link !== !1 && (e.link || p.isClickable.value), F = P ? "a" : e.tag,
|
|
3718
|
+
const P = e.link !== !1 && p.isLink.value, C = !e.disabled && e.link !== !1 && (e.link || p.isClickable.value), F = P ? "a" : e.tag, B = !!(n.title || e.title != null), U = !!(n.subtitle || e.subtitle != null), _ = B || U, V = !!(n.append || e.appendAvatar || e.appendIcon), $ = !!(n.prepend || e.prependAvatar || e.prependIcon), D = !!(n.image || e.image), G = _ || $ || V, ne = !!(n.text || e.text != null);
|
|
3719
3719
|
return Ue(g(F, L(p.linkProps, {
|
|
3720
3720
|
class: ["v-card", {
|
|
3721
3721
|
"v-card--disabled": e.disabled,
|
|
@@ -3862,8 +3862,8 @@ const ro = X({
|
|
|
3862
3862
|
return Number(ve).toString().replace(".", d.value);
|
|
3863
3863
|
if (e.minFractionDigits === null || A !== null && A < e.minFractionDigits)
|
|
3864
3864
|
return ve.replace(".", d.value);
|
|
3865
|
-
let [ge,
|
|
3866
|
-
return
|
|
3865
|
+
let [ge, pe] = ve.split(".");
|
|
3866
|
+
return pe = (pe ?? "").padEnd(e.minFractionDigits, "0").replace(new RegExp(`(?<=\\d{${e.minFractionDigits}})0+$`, "g"), ""), [ge, pe].filter(Boolean).join(d.value);
|
|
3867
3867
|
}
|
|
3868
3868
|
const m = Ve(e, "modelValue", null, (f) => f ?? null, (f) => f == null ? f ?? null : Ne(Number(f), e.min, e.max)), v = ee(null), y = ee(null);
|
|
3869
3869
|
se(m, (f) => {
|
|
@@ -3885,7 +3885,7 @@ const ro = X({
|
|
|
3885
3885
|
if (y.value === null) return !1;
|
|
3886
3886
|
const f = Number(v.value?.replace(d.value, "."));
|
|
3887
3887
|
return f !== Ne(f, e.min, e.max);
|
|
3888
|
-
}), w = I(() => i.value ? !1 : (m.value ?? 0) + e.step <= e.max), P = I(() => i.value ? !1 : (m.value ?? 0) - e.step >= e.min), C = I(() => e.hideInput ? "stacked" : e.controlVariant), F =
|
|
3888
|
+
}), w = I(() => i.value ? !1 : (m.value ?? 0) + e.step <= e.max), P = I(() => i.value ? !1 : (m.value ?? 0) - e.step >= e.min), C = I(() => e.hideInput ? "stacked" : e.controlVariant), F = E(() => C.value === "split" ? "$plus" : "$collapse"), B = E(() => C.value === "split" ? "$minus" : "$expand"), U = E(() => C.value === "split" ? "default" : "small"), _ = E(() => C.value === "stacked" ? "auto" : "100%"), V = {
|
|
3889
3889
|
props: {
|
|
3890
3890
|
onClick: W,
|
|
3891
3891
|
onPointerup: K,
|
|
@@ -3924,14 +3924,14 @@ const ro = X({
|
|
|
3924
3924
|
value: J,
|
|
3925
3925
|
selectionStart: ve,
|
|
3926
3926
|
selectionEnd: ge
|
|
3927
|
-
} = A ?? {},
|
|
3928
|
-
if (new RegExp(`^-?\\d*${Zn(d.value)}?\\d*$`).test(
|
|
3929
|
-
if (
|
|
3927
|
+
} = A ?? {}, pe = J ? J.slice(0, ve) + f.data + J.slice(ge) : f.data, Ie = Qn(pe, e.precision, d.value);
|
|
3928
|
+
if (new RegExp(`^-?\\d*${Zn(d.value)}?\\d*$`).test(pe) || (f.preventDefault(), A.value = Ie, ke(() => h.value = Ie)), e.precision != null) {
|
|
3929
|
+
if (pe.split(d.value)[1]?.length > e.precision) {
|
|
3930
3930
|
f.preventDefault(), A.value = Ie, ke(() => h.value = Ie);
|
|
3931
3931
|
const De = (ve ?? 0) + f.data.length;
|
|
3932
3932
|
A.setSelectionRange(De, De);
|
|
3933
3933
|
}
|
|
3934
|
-
e.precision === 0 &&
|
|
3934
|
+
e.precision === 0 && pe.endsWith(d.value) && (f.preventDefault(), A.value = Ie, ke(() => h.value = Ie));
|
|
3935
3935
|
}
|
|
3936
3936
|
}
|
|
3937
3937
|
async function H(f) {
|
|
@@ -3957,7 +3957,7 @@ const ro = X({
|
|
|
3957
3957
|
function fe() {
|
|
3958
3958
|
i.value || (h.value = m.value !== null && !isNaN(m.value) ? c(m.value, e.precision, !1) : null);
|
|
3959
3959
|
}
|
|
3960
|
-
function
|
|
3960
|
+
function R() {
|
|
3961
3961
|
if (!i.value) {
|
|
3962
3962
|
if (m.value === null || isNaN(m.value)) {
|
|
3963
3963
|
h.value = null;
|
|
@@ -3967,7 +3967,7 @@ const ro = X({
|
|
|
3967
3967
|
}
|
|
3968
3968
|
}
|
|
3969
3969
|
function O() {
|
|
3970
|
-
|
|
3970
|
+
R();
|
|
3971
3971
|
}
|
|
3972
3972
|
function k() {
|
|
3973
3973
|
z();
|
|
@@ -4016,7 +4016,7 @@ const ro = X({
|
|
|
4016
4016
|
disabled: !P.value,
|
|
4017
4017
|
height: _.value,
|
|
4018
4018
|
size: U.value,
|
|
4019
|
-
icon:
|
|
4019
|
+
icon: B.value,
|
|
4020
4020
|
variant: "text"
|
|
4021
4021
|
}
|
|
4022
4022
|
}
|
|
@@ -4027,7 +4027,7 @@ const ro = X({
|
|
|
4027
4027
|
"data-testid": "decrement",
|
|
4028
4028
|
disabled: !P.value,
|
|
4029
4029
|
height: _.value,
|
|
4030
|
-
icon:
|
|
4030
|
+
icon: B.value,
|
|
4031
4031
|
key: "decrement-btn",
|
|
4032
4032
|
onClick: W,
|
|
4033
4033
|
onPointerdown: q,
|
|
@@ -4038,7 +4038,7 @@ const ro = X({
|
|
|
4038
4038
|
tabindex: "-1"
|
|
4039
4039
|
}, null);
|
|
4040
4040
|
}
|
|
4041
|
-
function
|
|
4041
|
+
function pe() {
|
|
4042
4042
|
return b("div", {
|
|
4043
4043
|
class: "v-number-input__control"
|
|
4044
4044
|
}, [ge(), g(ze, {
|
|
@@ -4054,11 +4054,11 @@ const ro = X({
|
|
|
4054
4054
|
class: "v-number-input__control"
|
|
4055
4055
|
}, [g(ze, {
|
|
4056
4056
|
vertical: !0
|
|
4057
|
-
}, null), ve()]) : e.reverse || C.value === "hidden" ? void 0 : b(ce, null, [Ie(),
|
|
4057
|
+
}, null), ve()]) : e.reverse || C.value === "hidden" ? void 0 : b(ce, null, [Ie(), pe()]), je = t["append-inner"] || De, Qe = C.value === "split" ? b("div", {
|
|
4058
4058
|
class: "v-number-input__control"
|
|
4059
4059
|
}, [ge(), g(ze, {
|
|
4060
4060
|
vertical: !0
|
|
4061
|
-
}, null)]) : e.reverse && C.value !== "hidden" ? b(ce, null, [
|
|
4061
|
+
}, null)]) : e.reverse && C.value !== "hidden" ? b(ce, null, [pe(), Ie()]) : void 0, ut = t["prepend-inner"] || Qe;
|
|
4062
4062
|
return g(Je, L({
|
|
4063
4063
|
ref: n
|
|
4064
4064
|
}, J, {
|
|
@@ -4110,10 +4110,10 @@ const ro = X({
|
|
|
4110
4110
|
select: Ja,
|
|
4111
4111
|
number: co,
|
|
4112
4112
|
datepicker: Ee(
|
|
4113
|
-
() => import("./Datepicker-
|
|
4113
|
+
() => import("./Datepicker-CgaWBwqc.js")
|
|
4114
4114
|
),
|
|
4115
4115
|
comparison: Ee(
|
|
4116
|
-
() => import("./Comparison-
|
|
4116
|
+
() => import("./Comparison-DQKuQ5sY.js")
|
|
4117
4117
|
)
|
|
4118
4118
|
}, i = I(() => t.headers.filter((r) => r.advancedFilter !== !1 && !r.hidden)), o = (r) => r ? typeof r == "string" ? s[r] : r : s.textfield;
|
|
4119
4119
|
return se(
|
|
@@ -4130,13 +4130,13 @@ const ro = X({
|
|
|
4130
4130
|
{ immediate: !0 }
|
|
4131
4131
|
), at(async () => {
|
|
4132
4132
|
await t.options.advancedFilters?.onMounted();
|
|
4133
|
-
}), (r, d) => (oe(),
|
|
4133
|
+
}), (r, d) => (oe(), ye(Vn, { rounded: "lg" }, {
|
|
4134
4134
|
default: Ce(() => [
|
|
4135
4135
|
g(ul, { class: "d-flex justify-space-between align-center" }, {
|
|
4136
4136
|
default: Ce(() => [
|
|
4137
4137
|
b("div", vo, Vt(r.$t("$datatables.advancedFilters")), 1),
|
|
4138
4138
|
g(tt, {
|
|
4139
|
-
icon:
|
|
4139
|
+
icon: M(n).header.icons.close,
|
|
4140
4140
|
variant: "text",
|
|
4141
4141
|
onClick: d[0] || (d[0] = (c) => u("closeDialog"))
|
|
4142
4142
|
}, null, 8, ["icon"])
|
|
@@ -4146,12 +4146,12 @@ const ro = X({
|
|
|
4146
4146
|
g(ze),
|
|
4147
4147
|
g(sl, { class: "overflow-auto pt-8" }, {
|
|
4148
4148
|
default: Ce(() => [
|
|
4149
|
-
(oe(!0), Ke(ce, null, Wt(
|
|
4149
|
+
(oe(!0), Ke(ce, null, Wt(M(i), (c, m) => (oe(), Ke("div", {
|
|
4150
4150
|
id: `advanced-filter-${c.key}`,
|
|
4151
4151
|
key: `filter-${m}`,
|
|
4152
4152
|
class: re(`advanced-filter advanced-filter--${c.key}`)
|
|
4153
4153
|
}, [
|
|
4154
|
-
(oe(),
|
|
4154
|
+
(oe(), ye($e(o(c.advancedFilter?.component)), L({
|
|
4155
4155
|
modelValue: l.value[c.advancedFilter?.key ?? c.key].value,
|
|
4156
4156
|
"onUpdate:modelValue": (v) => l.value[c.advancedFilter?.key ?? c.key].value = v,
|
|
4157
4157
|
comparison: l.value[c.advancedFilter?.key ?? c.key].comparison,
|
|
@@ -4250,7 +4250,7 @@ const go = {
|
|
|
4250
4250
|
}, {
|
|
4251
4251
|
default: Ce(({ isActive: p }) => [
|
|
4252
4252
|
g(y, {
|
|
4253
|
-
modelValue:
|
|
4253
|
+
modelValue: M(o),
|
|
4254
4254
|
"onUpdate:modelValue": v[0] || (v[0] = (w) => xt(o) ? o.value = w : null),
|
|
4255
4255
|
onSave: r,
|
|
4256
4256
|
onCloseDialog: (w) => p.value = !1
|
|
@@ -4258,9 +4258,9 @@ const go = {
|
|
|
4258
4258
|
]),
|
|
4259
4259
|
_: 1
|
|
4260
4260
|
}, 8, ["modelValue"]),
|
|
4261
|
-
Object.keys(
|
|
4261
|
+
Object.keys(M(l)).length ? (oe(), ye(h, {
|
|
4262
4262
|
key: 0,
|
|
4263
|
-
modelValue:
|
|
4263
|
+
modelValue: M(o),
|
|
4264
4264
|
"onUpdate:modelValue": v[2] || (v[2] = (p) => xt(o) ? o.value = p : null),
|
|
4265
4265
|
onSave: r
|
|
4266
4266
|
}, null, 8, ["modelValue"])) : Me("", !0)
|
|
@@ -4288,18 +4288,18 @@ const ho = {
|
|
|
4288
4288
|
return (l, u) => {
|
|
4289
4289
|
const s = go;
|
|
4290
4290
|
return oe(), Ke("div", ho, [
|
|
4291
|
-
(oe(!0), Ke(ce, null, Wt(
|
|
4291
|
+
(oe(!0), Ke(ce, null, Wt(M(a), (i, o) => (oe(), ye(tt, L({
|
|
4292
4292
|
key: o,
|
|
4293
4293
|
icon: "",
|
|
4294
4294
|
variant: "text",
|
|
4295
|
-
color:
|
|
4295
|
+
color: M(n) ? "primary" : "dark",
|
|
4296
4296
|
density: "comfortable"
|
|
4297
4297
|
}, { ref_for: !0 }, i), {
|
|
4298
4298
|
default: Ce(() => [
|
|
4299
|
-
|
|
4299
|
+
M(n) ? (oe(), ye(Ya, {
|
|
4300
4300
|
key: 0,
|
|
4301
4301
|
color: "primary",
|
|
4302
|
-
content:
|
|
4302
|
+
content: M(n)
|
|
4303
4303
|
}, {
|
|
4304
4304
|
default: Ce(() => [
|
|
4305
4305
|
g(Se, {
|
|
@@ -4307,7 +4307,7 @@ const ho = {
|
|
|
4307
4307
|
}, null, 8, ["icon"])
|
|
4308
4308
|
]),
|
|
4309
4309
|
_: 2
|
|
4310
|
-
}, 1032, ["content"])) : (oe(),
|
|
4310
|
+
}, 1032, ["content"])) : (oe(), ye(Se, {
|
|
4311
4311
|
key: 1,
|
|
4312
4312
|
icon: i.prependIcon
|
|
4313
4313
|
}, null, 8, ["icon"]))
|
|
@@ -4315,7 +4315,7 @@ const ho = {
|
|
|
4315
4315
|
_: 2
|
|
4316
4316
|
}, 1040, ["color"]))), 128)),
|
|
4317
4317
|
g(s, {
|
|
4318
|
-
modelValue:
|
|
4318
|
+
modelValue: M(t),
|
|
4319
4319
|
"onUpdate:modelValue": u[0] || (u[0] = (i) => xt(t) ? t.value = i : null)
|
|
4320
4320
|
}, null, 8, ["modelValue"])
|
|
4321
4321
|
]);
|
|
@@ -4330,25 +4330,25 @@ const ho = {
|
|
|
4330
4330
|
responsiveHeader: { type: Boolean }
|
|
4331
4331
|
},
|
|
4332
4332
|
setup(e) {
|
|
4333
|
-
const a = Ee(() => import("./Search-
|
|
4333
|
+
const a = Ee(() => import("./Search-DBCGZBxm.js")), t = Ee(() => import("./RefreshTable-0OZhCgVc.js")), n = Ee(() => import("./Options-Dzm1_SN_.js")), l = Ee(() => import("./index-2dniBO7B.js")), u = Ee(() => import("./index-DoH33mkF.js")), s = Ee(() => import("./index-D65STyD7.js")), i = Pe("table_props"), o = j(null), r = i.options?.header?.components ?? {};
|
|
4334
4334
|
return (d, c) => {
|
|
4335
4335
|
const m = bo;
|
|
4336
4336
|
return oe(), Ke("div", po, [
|
|
4337
|
-
e.responsiveHeader ? Me("", !0) : (oe(),
|
|
4338
|
-
|
|
4337
|
+
e.responsiveHeader ? Me("", !0) : (oe(), ye(m, { key: 0 })),
|
|
4338
|
+
M(i).hardFilters.length ? (oe(), ye($e(M(r).hardFilters ?? M(l)), {
|
|
4339
4339
|
key: 1,
|
|
4340
4340
|
id: "header-hardFilters"
|
|
4341
4341
|
})) : Me("", !0),
|
|
4342
|
-
(oe(),
|
|
4342
|
+
(oe(), ye($e(M(r).toolbar), { id: "header-toolbar" })),
|
|
4343
4343
|
b("div", ko, [
|
|
4344
|
-
(oe(),
|
|
4345
|
-
e.responsiveHeader ? Me("", !0) : (oe(),
|
|
4344
|
+
(oe(), ye($e(M(r).search ?? M(a)), { id: "header-search" })),
|
|
4345
|
+
e.responsiveHeader ? Me("", !0) : (oe(), ye($e(M(r).columns ?? M(u)), {
|
|
4346
4346
|
key: 0,
|
|
4347
|
-
"component-refs": { columns:
|
|
4347
|
+
"component-refs": { columns: M(o) }
|
|
4348
4348
|
}, null, 8, ["component-refs"])),
|
|
4349
|
-
e.responsiveHeader ? Me("", !0) : (oe(),
|
|
4350
|
-
e.responsiveHeader ? Me("", !0) : (oe(),
|
|
4351
|
-
(oe(),
|
|
4349
|
+
e.responsiveHeader ? Me("", !0) : (oe(), ye($e(M(r).download ?? M(s)), { key: 1 })),
|
|
4350
|
+
e.responsiveHeader ? Me("", !0) : (oe(), ye($e(M(r).refreshTable ?? M(t)), { key: 2 })),
|
|
4351
|
+
(oe(), ye($e(M(r).options ?? M(n)), { "responsive-header": e.responsiveHeader }, null, 8, ["responsive-header"]))
|
|
4352
4352
|
])
|
|
4353
4353
|
]);
|
|
4354
4354
|
};
|
|
@@ -4418,11 +4418,11 @@ const xn = la(() => {
|
|
|
4418
4418
|
},
|
|
4419
4419
|
emits: /* @__PURE__ */ qt(["refreshTable", "refetchData", "advancedFilters:update", "hardFilters:update"], ["update:modelValue"]),
|
|
4420
4420
|
setup(e, { expose: a, emit: t }) {
|
|
4421
|
-
const n = Ee(() => import("./Table-
|
|
4421
|
+
const n = Ee(() => import("./Table-VfsWPt6d.js")), l = Ee(() => import("./TableServer-CPxJnObB.js")), { storeOptions: u } = xn(), { saveTableOptions: s } = Et(), i = Pt(e, "modelValue"), o = Pe("table_props"), r = Pe("datatablesPluginOptions"), d = Cl("tableRef"), c = j(!1), m = j(!1), v = j(!1), y = t, h = Rt(), { dataStateGet: p, tableDataState: w, checkTableState: P } = Co(o), { addTable: C, restoreData: F } = h, B = j(!1);
|
|
4422
4422
|
na(d, (_) => {
|
|
4423
4423
|
if (!v.value) return;
|
|
4424
4424
|
const V = _[0], { width: $ } = V.contentRect;
|
|
4425
|
-
|
|
4425
|
+
B.value = $ < 950;
|
|
4426
4426
|
});
|
|
4427
4427
|
const U = I(() => {
|
|
4428
4428
|
const _ = o.options?.header;
|
|
@@ -4438,21 +4438,24 @@ const xn = la(() => {
|
|
|
4438
4438
|
v.value = !1;
|
|
4439
4439
|
}), We("busEmits", y), We("tableRef", d), We("tableState", w), We("downloadModal", c), a({ tableRef: d }), (_, V) => {
|
|
4440
4440
|
const $ = So;
|
|
4441
|
-
return
|
|
4441
|
+
return M(m) ? (oe(), Ke("div", Vo, [
|
|
4442
4442
|
g(Vn, null, {
|
|
4443
4443
|
default: Ce(() => [
|
|
4444
|
-
|
|
4444
|
+
M(U) ? (oe(), ye(ul, { key: 0 }, {
|
|
4445
4445
|
default: Ce(() => [
|
|
4446
|
-
|
|
4446
|
+
(oe(), ye($, {
|
|
4447
|
+
key: M(B) ? "responsive" : "full",
|
|
4448
|
+
"responsive-header": M(B)
|
|
4449
|
+
}, null, 8, ["responsive-header"]))
|
|
4447
4450
|
]),
|
|
4448
4451
|
_: 1
|
|
4449
4452
|
})) : Me("", !0),
|
|
4450
4453
|
g(sl, { class: "pa-0" }, {
|
|
4451
4454
|
default: Ce(() => [
|
|
4452
|
-
|
|
4455
|
+
M(v) ? (oe(), ye($e(M(o).api ? M(l) : M(n)), {
|
|
4453
4456
|
ref_key: "tableRef",
|
|
4454
4457
|
ref: d,
|
|
4455
|
-
key:
|
|
4458
|
+
key: M(o).api ? "server" : "client",
|
|
4456
4459
|
modelValue: i.value,
|
|
4457
4460
|
"onUpdate:modelValue": V[0] || (V[0] = (D) => i.value = D)
|
|
4458
4461
|
}, null, 8, ["modelValue"])) : Me("", !0)
|
|
@@ -4463,7 +4466,7 @@ const xn = la(() => {
|
|
|
4463
4466
|
_: 1
|
|
4464
4467
|
}),
|
|
4465
4468
|
g(Sn, {
|
|
4466
|
-
modelValue:
|
|
4469
|
+
modelValue: M(c),
|
|
4467
4470
|
"onUpdate:modelValue": V[1] || (V[1] = (D) => xt(c) ? c.value = D : null),
|
|
4468
4471
|
"max-width": "350",
|
|
4469
4472
|
persistent: ""
|
|
@@ -4477,7 +4480,7 @@ const xn = la(() => {
|
|
|
4477
4480
|
}, {
|
|
4478
4481
|
default: Ce(() => [
|
|
4479
4482
|
g(vt, {
|
|
4480
|
-
"prepend-icon":
|
|
4483
|
+
"prepend-icon": M(r).header.icons.download,
|
|
4481
4484
|
title: _.$t("$datatables.preparing_download_file")
|
|
4482
4485
|
}, {
|
|
4483
4486
|
prepend: Ce(() => [
|
|
@@ -4574,11 +4577,11 @@ const xn = la(() => {
|
|
|
4574
4577
|
}, v = t;
|
|
4575
4578
|
return We("table_props", n), We("triggerHook", l), a({ refreshTable: d, refetchData: c, triggerHook: l, updateAdvancedFilter: m }), (y, h) => {
|
|
4576
4579
|
const p = Io;
|
|
4577
|
-
return oe(),
|
|
4580
|
+
return oe(), ye(p, {
|
|
4578
4581
|
id: e.id,
|
|
4579
4582
|
ref_key: "table",
|
|
4580
4583
|
ref: o,
|
|
4581
|
-
key: `${e.id}-${
|
|
4584
|
+
key: `${e.id}-${M(r)}`,
|
|
4582
4585
|
onRefreshTable: d,
|
|
4583
4586
|
onRefetchData: c
|
|
4584
4587
|
}, null, 8, ["id"]);
|