@ianicdev/datatables2 0.13.2 → 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-5mmMEz2U.cjs → Comparison-Bfmyo3Xa.cjs} +1 -1
- package/dist/{Comparison-CjJmKbUI.js → Comparison-DQKuQ5sY.js} +1 -1
- package/dist/{Datepicker-nokf6x-X.cjs → Datepicker-CHXMZ0_U.cjs} +1 -1
- package/dist/{Datepicker-B0nM8Hwn.js → Datepicker-CgaWBwqc.js} +2 -2
- package/dist/{Options-CFuTd6RH.cjs → Options-BsWwBtFA.cjs} +1 -1
- package/dist/{Options-Bj_HI8lq.js → Options-Dzm1_SN_.js} +3 -3
- package/dist/{RefreshTable-DGaEfdXL.js → RefreshTable-0OZhCgVc.js} +1 -1
- package/dist/{RefreshTable-CP3TtAhj.cjs → RefreshTable-CiCnJqRp.cjs} +1 -1
- package/dist/{Search-QHvBXpiL.cjs → Search-B-kaxLsc.cjs} +1 -1
- package/dist/{Search-CHZzma0w.js → Search-DBCGZBxm.js} +2 -2
- package/dist/{Table-DlA37K_x.cjs → Table-Cngs-CvH.cjs} +1 -1
- package/dist/{Table-GSeivIYB.js → Table-VfsWPt6d.js} +3 -3
- package/dist/{TableServer-B4xTmowi.js → TableServer-CPxJnObB.js} +3 -3
- package/dist/{TableServer-BpqTvgRv.cjs → TableServer-DPQ_XeXs.cjs} +1 -1
- package/dist/{cellRender-CELfjePX.js → cellRender-CuPsd_dj.js} +2 -2
- package/dist/{cellRender-CH-xXPkU.cjs → cellRender-DNNEbGS8.cjs} +1 -1
- package/dist/{dataTables-D0-m93bp.cjs → dataTables-DCTgRVVK.cjs} +1 -1
- package/dist/{dataTables-DRImfSOv.js → dataTables-DaHH5BJi.js} +1 -1
- package/dist/datatables.cjs +1 -1
- package/dist/datatables.js +1 -1
- package/dist/{index-DflXGVoK.js → index-2dniBO7B.js} +2 -2
- package/dist/{index-DSddKSzj.cjs → index-CYN9sV_c.cjs} +1 -1
- package/dist/{index-B0PH010H.cjs → index-CheHIvYC.cjs} +1 -1
- package/dist/{index-CgIh2BvP.js → index-D65STyD7.js} +1 -1
- package/dist/{index-CwAZ9-MC.cjs → index-DT_nX8re.cjs} +1 -1
- package/dist/{index-C1YF3-B4.js → index-DoH33mkF.js} +2 -2
- package/dist/{index-D_erx3R7.cjs → index-Dyh2yegg.cjs} +1 -1
- package/dist/{index-BgTLLLRJ.js → index-upuyXG4P.js} +274 -272
- package/dist/{useColumns-0KwhIKoh.js → useColumns-CwA9Nn3T.js} +2 -2
- package/dist/{useColumns-vtOcqRK0.cjs → useColumns-DBnIlIB2.cjs} +1 -1
- package/package.json +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { ref 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 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-
|
|
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", () => {
|
|
7
|
-
const e =
|
|
7
|
+
const e = j([]), a = ({ table_id: i }) => {
|
|
8
8
|
const o = e.value.findIndex((d) => d.id === i), r = {
|
|
9
9
|
search: {
|
|
10
10
|
query: ""
|
|
@@ -242,7 +242,7 @@ const Zl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), en = X({
|
|
|
242
242
|
} = Ft(), {
|
|
243
243
|
displayClasses: l,
|
|
244
244
|
mobile: u
|
|
245
|
-
} = Il(e), s = wl(e, e.symbol), i =
|
|
245
|
+
} = Il(e), s = wl(e, e.symbol), i = ee(!1), o = ee(0), r = ee(0), d = ee(0), c = I(() => e.direction === "horizontal"), {
|
|
246
246
|
resizeRef: m,
|
|
247
247
|
contentRect: v
|
|
248
248
|
} = It(), {
|
|
@@ -268,7 +268,7 @@ const Zl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), en = X({
|
|
|
268
268
|
});
|
|
269
269
|
});
|
|
270
270
|
}
|
|
271
|
-
const F =
|
|
271
|
+
const F = ee(!1);
|
|
272
272
|
function B(k, f) {
|
|
273
273
|
let A = 0;
|
|
274
274
|
f ? A = da({
|
|
@@ -314,20 +314,20 @@ const Zl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), en = X({
|
|
|
314
314
|
}
|
|
315
315
|
}
|
|
316
316
|
}
|
|
317
|
-
function
|
|
317
|
+
function $(k) {
|
|
318
318
|
F.value = !1;
|
|
319
319
|
}
|
|
320
320
|
let D = !1;
|
|
321
|
-
function
|
|
322
|
-
!D && !F.value && !(k.relatedTarget && y.el?.contains(k.relatedTarget)) &&
|
|
321
|
+
function G(k) {
|
|
322
|
+
!D && !F.value && !(k.relatedTarget && y.el?.contains(k.relatedTarget)) && K(), D = !1;
|
|
323
323
|
}
|
|
324
|
-
function
|
|
324
|
+
function ne() {
|
|
325
325
|
D = !0;
|
|
326
326
|
}
|
|
327
327
|
function H(k) {
|
|
328
328
|
if (!y.el) return;
|
|
329
329
|
function f(A) {
|
|
330
|
-
k.preventDefault(),
|
|
330
|
+
k.preventDefault(), K(A);
|
|
331
331
|
}
|
|
332
332
|
c.value ? k.key === "ArrowRight" ? f(n.value ? "prev" : "next") : k.key === "ArrowLeft" && f(n.value ? "next" : "prev") : k.key === "ArrowDown" ? f("next") : k.key === "ArrowUp" && f("prev"), k.key === "Home" ? f("first") : k.key === "End" && f("last");
|
|
333
333
|
}
|
|
@@ -339,15 +339,15 @@ const Zl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), en = X({
|
|
|
339
339
|
while (A?.hasAttribute("disabled"));
|
|
340
340
|
return A;
|
|
341
341
|
}
|
|
342
|
-
function
|
|
342
|
+
function K(k) {
|
|
343
343
|
if (!y.el) return;
|
|
344
344
|
let f;
|
|
345
345
|
if (!k)
|
|
346
346
|
f = _l(y.el)[0];
|
|
347
347
|
else if (k === "next") {
|
|
348
|
-
if (f = W(y.el.querySelector(":focus"), k), !f) return
|
|
348
|
+
if (f = W(y.el.querySelector(":focus"), k), !f) return K("first");
|
|
349
349
|
} else if (k === "prev") {
|
|
350
|
-
if (f = W(y.el.querySelector(":focus"), k), !f) return
|
|
350
|
+
if (f = W(y.el.querySelector(":focus"), k), !f) return K("last");
|
|
351
351
|
} else k === "first" ? (f = y.el.firstElementChild, f?.hasAttribute("disabled") && (f = W(f, "next"))) : k === "last" && (f = y.el.lastElementChild, f?.hasAttribute("disabled") && (f = W(f, "prev")));
|
|
352
352
|
f && f.focus({
|
|
353
353
|
preventScroll: !0
|
|
@@ -406,14 +406,14 @@ const Zl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), en = X({
|
|
|
406
406
|
}, l.value, e.class]),
|
|
407
407
|
style: xe(e.style),
|
|
408
408
|
tabindex: F.value || s.selected.value.length ? -1 : 0,
|
|
409
|
-
onFocus:
|
|
409
|
+
onFocus: G
|
|
410
410
|
}, {
|
|
411
411
|
default: () => [fe.value && b("div", {
|
|
412
412
|
key: "prev",
|
|
413
413
|
class: re(["v-slide-group__prev", {
|
|
414
414
|
"v-slide-group__prev--disabled": !R.value
|
|
415
415
|
}]),
|
|
416
|
-
onMousedown:
|
|
416
|
+
onMousedown: ne,
|
|
417
417
|
onClick: () => R.value && ue("prev")
|
|
418
418
|
}, [t.prev?.(q.value) ?? g(rl, null, {
|
|
419
419
|
default: () => [g(Se, {
|
|
@@ -428,14 +428,14 @@ const Zl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), en = X({
|
|
|
428
428
|
ref: y,
|
|
429
429
|
class: "v-slide-group__content",
|
|
430
430
|
onFocusin: V,
|
|
431
|
-
onFocusout:
|
|
431
|
+
onFocusout: $,
|
|
432
432
|
onKeydown: H
|
|
433
433
|
}, [t.default?.(q.value)])]), fe.value && b("div", {
|
|
434
434
|
key: "next",
|
|
435
435
|
class: re(["v-slide-group__next", {
|
|
436
436
|
"v-slide-group__next--disabled": !O.value
|
|
437
437
|
}]),
|
|
438
|
-
onMousedown:
|
|
438
|
+
onMousedown: ne,
|
|
439
439
|
onClick: () => O.value && ue("next")
|
|
440
440
|
}, [t.next?.(q.value) ?? g(rl, null, {
|
|
441
441
|
default: () => [g(Se, {
|
|
@@ -446,7 +446,7 @@ const Zl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), en = X({
|
|
|
446
446
|
selected: s.selected,
|
|
447
447
|
scrollTo: ue,
|
|
448
448
|
scrollOffset: o,
|
|
449
|
-
focus:
|
|
449
|
+
focus: K,
|
|
450
450
|
hasPrev: R,
|
|
451
451
|
hasNext: O
|
|
452
452
|
};
|
|
@@ -630,13 +630,13 @@ const Zl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), en = X({
|
|
|
630
630
|
(V.key === "Enter" || V.key === " ") && (V.preventDefault(), U(V));
|
|
631
631
|
}
|
|
632
632
|
return () => {
|
|
633
|
-
const V = h.isLink.value ? "a" : e.tag,
|
|
633
|
+
const V = h.isLink.value ? "a" : e.tag, $ = !!(e.appendIcon || e.appendAvatar), D = !!($ || l.append), G = !!(l.close || e.closable), ne = !!(l.filter || e.filter) && v, H = !!(e.prependIcon || e.prependAvatar), W = !!(H || l.prepend);
|
|
634
634
|
return m.value && Ue(g(V, L(h.linkProps, {
|
|
635
635
|
class: ["v-chip", {
|
|
636
636
|
"v-chip--disabled": e.disabled,
|
|
637
637
|
"v-chip--label": e.label,
|
|
638
638
|
"v-chip--link": w.value,
|
|
639
|
-
"v-chip--filter":
|
|
639
|
+
"v-chip--filter": ne,
|
|
640
640
|
"v-chip--pill": e.pill,
|
|
641
641
|
[`${e.activeClass}`]: e.activeClass && h.isActive?.value
|
|
642
642
|
}, c.value, s.value, C.value, i.value, o.value, r.value, d.value, B.value, v?.selectedClass.value, e.class],
|
|
@@ -647,7 +647,7 @@ const Zl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), en = X({
|
|
|
647
647
|
onClick: U,
|
|
648
648
|
onKeydown: w.value && !p.value && _
|
|
649
649
|
}), {
|
|
650
|
-
default: () => [Dl(w.value, "v-chip"),
|
|
650
|
+
default: () => [Dl(w.value, "v-chip"), ne && g(Tl, {
|
|
651
651
|
key: "filter"
|
|
652
652
|
}, {
|
|
653
653
|
default: () => [Ue(b("div", {
|
|
@@ -703,7 +703,7 @@ const Zl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), en = X({
|
|
|
703
703
|
class: "v-chip__append"
|
|
704
704
|
}, [l.append ? g(Fe, {
|
|
705
705
|
key: "append-defaults",
|
|
706
|
-
disabled:
|
|
706
|
+
disabled: !$,
|
|
707
707
|
defaults: {
|
|
708
708
|
VAvatar: {
|
|
709
709
|
end: !0,
|
|
@@ -722,7 +722,7 @@ const Zl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), en = X({
|
|
|
722
722
|
key: "append-avatar",
|
|
723
723
|
end: !0,
|
|
724
724
|
image: e.appendAvatar
|
|
725
|
-
}, null)])]),
|
|
725
|
+
}, null)])]), G && b("button", L({
|
|
726
726
|
key: "close",
|
|
727
727
|
class: "v-chip__close",
|
|
728
728
|
type: "button",
|
|
@@ -809,7 +809,7 @@ const Zl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), en = X({
|
|
|
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),
|
|
@@ -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 =
|
|
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
|
});
|
|
@@ -1028,7 +1028,7 @@ const yl = ie()({
|
|
|
1028
1028
|
props: {
|
|
1029
1029
|
for: w.value
|
|
1030
1030
|
}
|
|
1031
|
-
}) : e.label, [V,
|
|
1031
|
+
}) : e.label, [V, $] = Ol(t), D = b("input", L({
|
|
1032
1032
|
ref: p,
|
|
1033
1033
|
checked: i.value,
|
|
1034
1034
|
disabled: !!e.disabled,
|
|
@@ -1042,7 +1042,7 @@ const yl = ie()({
|
|
|
1042
1042
|
value: m.value,
|
|
1043
1043
|
name: e.name,
|
|
1044
1044
|
"aria-checked": e.type === "checkbox" ? i.value : void 0
|
|
1045
|
-
},
|
|
1045
|
+
}, $), null);
|
|
1046
1046
|
return b("div", L({
|
|
1047
1047
|
class: ["v-selection-control", {
|
|
1048
1048
|
"v-selection-control--dirty": i.value,
|
|
@@ -1278,7 +1278,7 @@ const _a = X({
|
|
|
1278
1278
|
}, "validation");
|
|
1279
1279
|
function Pa(e) {
|
|
1280
1280
|
let a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Nl(), t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : Xe();
|
|
1281
|
-
const n = Ve(e, "modelValue"), l = I(() => e.validationValue === void 0 ? n.value : e.validationValue), u = $t(e), s = wa(() => e.rules), i =
|
|
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
1284
|
const B = new Set(F?.split(" ") ?? []);
|
|
@@ -1289,12 +1289,12 @@ function Pa(e) {
|
|
|
1289
1289
|
lazy: B.has("lazy"),
|
|
1290
1290
|
eager: B.has("eager")
|
|
1291
1291
|
};
|
|
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 =
|
|
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,
|
|
@@ -1430,7 +1430,7 @@ const cn = X({
|
|
|
1430
1430
|
resetValidation: F,
|
|
1431
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 = E(() => _.value.length > 0),
|
|
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,
|
|
@@ -1439,16 +1439,16 @@ const cn = X({
|
|
|
1439
1439
|
isPristine: p,
|
|
1440
1440
|
isValid: w,
|
|
1441
1441
|
isValidating: P,
|
|
1442
|
-
hasDetails:
|
|
1442
|
+
hasDetails: $,
|
|
1443
1443
|
reset: C,
|
|
1444
1444
|
resetValidation: F,
|
|
1445
1445
|
validate: B
|
|
1446
|
-
})),
|
|
1446
|
+
})), ne = E(() => e.error || e.disabled ? void 0 : e.focused ? e.color : e.baseColor), H = E(() => {
|
|
1447
1447
|
if (e.iconColor)
|
|
1448
|
-
return e.iconColor === !0 ?
|
|
1448
|
+
return e.iconColor === !0 ? ne.value : e.iconColor;
|
|
1449
1449
|
});
|
|
1450
1450
|
return de(() => {
|
|
1451
|
-
const W = !!(n.prepend || e.prependIcon),
|
|
1451
|
+
const W = !!(n.prepend || e.prependIcon), K = !!(n.append || e.appendIcon);
|
|
1452
1452
|
return b("div", {
|
|
1453
1453
|
class: re(["v-input", `v-input--${e.direction}`, {
|
|
1454
1454
|
"v-input--center-affix": e.centerAffix,
|
|
@@ -1460,20 +1460,20 @@ const cn = X({
|
|
|
1460
1460
|
}, [W && b("div", {
|
|
1461
1461
|
key: "prepend",
|
|
1462
1462
|
class: "v-input__prepend"
|
|
1463
|
-
}, [n.prepend ? n.prepend(
|
|
1463
|
+
}, [n.prepend ? n.prepend(G.value) : e.prependIcon && g(r, {
|
|
1464
1464
|
key: "prepend-icon",
|
|
1465
1465
|
name: "prepend",
|
|
1466
1466
|
color: H.value
|
|
1467
1467
|
}, null)]), n.default && b("div", {
|
|
1468
1468
|
class: "v-input__control"
|
|
1469
|
-
}, [n.default?.(
|
|
1469
|
+
}, [n.default?.(G.value)]), K && b("div", {
|
|
1470
1470
|
key: "append",
|
|
1471
1471
|
class: "v-input__append"
|
|
1472
|
-
}, [n.append ? n.append(
|
|
1472
|
+
}, [n.append ? n.append(G.value) : e.appendIcon && g(r, {
|
|
1473
1473
|
key: "append-icon",
|
|
1474
1474
|
name: "append",
|
|
1475
1475
|
color: H.value
|
|
1476
|
-
}, null)]),
|
|
1476
|
+
}, null)]), $.value && b("div", {
|
|
1477
1477
|
id: D.value,
|
|
1478
1478
|
class: "v-input__details",
|
|
1479
1479
|
role: "alert",
|
|
@@ -1483,7 +1483,7 @@ const cn = X({
|
|
|
1483
1483
|
messages: _.value
|
|
1484
1484
|
}, {
|
|
1485
1485
|
message: n.message
|
|
1486
|
-
}), n.details?.(
|
|
1486
|
+
}), n.details?.(G.value)])]);
|
|
1487
1487
|
}), {
|
|
1488
1488
|
reset: C,
|
|
1489
1489
|
resetValidation: F,
|
|
@@ -1623,14 +1623,14 @@ const cn = X({
|
|
|
1623
1623
|
roundedClasses: m
|
|
1624
1624
|
} = gt(e), {
|
|
1625
1625
|
rtlClasses: v
|
|
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 =
|
|
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
|
}), {
|
|
1630
1630
|
backgroundColorClasses: D,
|
|
1631
|
-
backgroundColorStyles:
|
|
1631
|
+
backgroundColorStyles: G
|
|
1632
1632
|
} = Tt(() => e.bgColor), {
|
|
1633
|
-
textColorClasses:
|
|
1633
|
+
textColorClasses: ne,
|
|
1634
1634
|
textColorStyles: H
|
|
1635
1635
|
} = kt(V);
|
|
1636
1636
|
se(y, (z) => {
|
|
@@ -1660,10 +1660,10 @@ const cn = X({
|
|
|
1660
1660
|
isActive: y,
|
|
1661
1661
|
isFocused: o,
|
|
1662
1662
|
controlRef: U,
|
|
1663
|
-
iconColor:
|
|
1663
|
+
iconColor: $,
|
|
1664
1664
|
blur: d,
|
|
1665
1665
|
focus: r
|
|
1666
|
-
})),
|
|
1666
|
+
})), K = E(() => {
|
|
1667
1667
|
const z = !y.value;
|
|
1668
1668
|
return {
|
|
1669
1669
|
"aria-hidden": z,
|
|
@@ -1705,7 +1705,7 @@ const cn = X({
|
|
|
1705
1705
|
"v-field--no-label": !k(),
|
|
1706
1706
|
[`v-field--variant-${e.variant}`]: !0
|
|
1707
1707
|
}, u.value, D.value, i.value, s.value, m.value, v.value, e.class],
|
|
1708
|
-
style: [
|
|
1708
|
+
style: [G.value, e.style],
|
|
1709
1709
|
onClick: q
|
|
1710
1710
|
}, t), [b("div", {
|
|
1711
1711
|
class: "v-field__overlay"
|
|
@@ -1721,16 +1721,16 @@ const cn = X({
|
|
|
1721
1721
|
}, [l["prepend-inner"] ? l["prepend-inner"](W.value) : e.prependInnerIcon && g(c, {
|
|
1722
1722
|
key: "prepend-icon",
|
|
1723
1723
|
name: "prependInner",
|
|
1724
|
-
color:
|
|
1724
|
+
color: $.value
|
|
1725
1725
|
}, null)]), b("div", {
|
|
1726
1726
|
class: "v-field__field",
|
|
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
1730
|
ref: B,
|
|
1731
|
-
class: [
|
|
1731
|
+
class: [ne.value],
|
|
1732
1732
|
floating: !0
|
|
1733
|
-
},
|
|
1733
|
+
}, K.value, {
|
|
1734
1734
|
style: H.value
|
|
1735
1735
|
}), {
|
|
1736
1736
|
default: () => [k()]
|
|
@@ -1789,9 +1789,9 @@ const cn = X({
|
|
|
1789
1789
|
}, [l["append-inner"] ? l["append-inner"](W.value) : e.appendInnerIcon && g(c, {
|
|
1790
1790
|
key: "append-icon",
|
|
1791
1791
|
name: "appendInner",
|
|
1792
|
-
color:
|
|
1792
|
+
color: $.value
|
|
1793
1793
|
}, null)]), b("div", {
|
|
1794
|
-
class: re(["v-field__outline",
|
|
1794
|
+
class: re(["v-field__outline", ne.value]),
|
|
1795
1795
|
style: xe(H.value)
|
|
1796
1796
|
}, [z && b(ce, null, [b("div", {
|
|
1797
1797
|
class: "v-field__outline__start"
|
|
@@ -1800,26 +1800,26 @@ const cn = X({
|
|
|
1800
1800
|
}, [g(Ct, L({
|
|
1801
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
1808
|
ref: B,
|
|
1809
1809
|
floating: !0
|
|
1810
|
-
},
|
|
1810
|
+
}, K.value), {
|
|
1811
1811
|
default: () => [k()]
|
|
1812
1812
|
})])]);
|
|
1813
1813
|
}), {
|
|
1814
1814
|
controlRef: U,
|
|
1815
|
-
fieldIconColor:
|
|
1815
|
+
fieldIconColor: $
|
|
1816
1816
|
};
|
|
1817
1817
|
}
|
|
1818
1818
|
}), Ba = X({
|
|
1819
1819
|
autocomplete: String
|
|
1820
1820
|
}, "autocomplete");
|
|
1821
1821
|
function vn(e) {
|
|
1822
|
-
const a = Xe(), t =
|
|
1822
|
+
const a = Xe(), t = ee(0), n = E(() => e.autocomplete === "suppress"), l = E(() => {
|
|
1823
1823
|
if (e.name)
|
|
1824
1824
|
return n.value ? `${e.name}-${a}-${t.value}` : e.name;
|
|
1825
1825
|
}), u = E(() => n.value ? "off" : e.autocomplete);
|
|
@@ -1887,7 +1887,7 @@ const Ea = ["color", "file", "time", "date", "datetime-local", "week", "month"],
|
|
|
1887
1887
|
if (t.maxlength) return t.maxlength;
|
|
1888
1888
|
if (!(!e.counter || typeof e.counter != "number" && typeof e.counter != "string"))
|
|
1889
1889
|
return e.counter;
|
|
1890
|
-
}), m = I(() => ["plain", "underlined"].includes(e.variant)), v =
|
|
1890
|
+
}), m = I(() => ["plain", "underlined"].includes(e.variant)), v = j(), y = j(), h = j(), p = vn(e), w = I(() => Ea.includes(e.type) || e.persistentPlaceholder || s.value || e.active);
|
|
1891
1891
|
function P() {
|
|
1892
1892
|
p.isSuppressing.value && p.update(), s.value || i(), ke(() => {
|
|
1893
1893
|
h.value !== document.activeElement && h.value?.focus();
|
|
@@ -1910,16 +1910,16 @@ const Ea = ["color", "file", "time", "date", "datetime-local", "week", "month"],
|
|
|
1910
1910
|
u.value = V.value;
|
|
1911
1911
|
return;
|
|
1912
1912
|
}
|
|
1913
|
-
const
|
|
1914
|
-
u.value =
|
|
1915
|
-
let
|
|
1916
|
-
|
|
1913
|
+
const $ = V.value, D = V.selectionStart, G = V.selectionEnd;
|
|
1914
|
+
u.value = $, ke(() => {
|
|
1915
|
+
let ne = 0;
|
|
1916
|
+
$.trimStart().length === V.value.length && (ne = $.length - V.value.length), D != null && (V.selectionStart = D - ne), G != null && (V.selectionEnd = G - ne);
|
|
1917
1917
|
});
|
|
1918
1918
|
}
|
|
1919
1919
|
return de(() => {
|
|
1920
|
-
const _ = !!(l.counter || e.counter !== !1 && e.counter != null), V = !!(_ || l.details), [
|
|
1921
|
-
modelValue:
|
|
1922
|
-
...
|
|
1920
|
+
const _ = !!(l.counter || e.counter !== !1 && e.counter != null), V = !!(_ || l.details), [$, D] = Ol(t), {
|
|
1921
|
+
modelValue: G,
|
|
1922
|
+
...ne
|
|
1923
1923
|
} = hl.filterProps(e), H = bl.filterProps(e);
|
|
1924
1924
|
return g(hl, L({
|
|
1925
1925
|
ref: v,
|
|
@@ -1931,14 +1931,14 @@ const Ea = ["color", "file", "time", "date", "datetime-local", "week", "month"],
|
|
|
1931
1931
|
"v-input--plain-underlined": m.value
|
|
1932
1932
|
}, e.class],
|
|
1933
1933
|
style: e.style
|
|
1934
|
-
},
|
|
1934
|
+
}, $, ne, {
|
|
1935
1935
|
centerAffix: !m.value,
|
|
1936
1936
|
focused: s.value
|
|
1937
1937
|
}), {
|
|
1938
1938
|
...l,
|
|
1939
1939
|
default: (W) => {
|
|
1940
1940
|
let {
|
|
1941
|
-
id:
|
|
1941
|
+
id: K,
|
|
1942
1942
|
isDisabled: ue,
|
|
1943
1943
|
isDirty: q,
|
|
1944
1944
|
isReadonly: z,
|
|
@@ -1953,8 +1953,8 @@ const Ea = ["color", "file", "time", "date", "datetime-local", "week", "month"],
|
|
|
1953
1953
|
"onClick:clear": (k) => B(k, O),
|
|
1954
1954
|
role: e.role
|
|
1955
1955
|
}, Ye(H, ["onClick:clear"]), {
|
|
1956
|
-
id:
|
|
1957
|
-
labelId: `${
|
|
1956
|
+
id: K.value,
|
|
1957
|
+
labelId: `${K.value}-label`,
|
|
1958
1958
|
active: w.value || q.value,
|
|
1959
1959
|
dirty: q.value || e.dirty,
|
|
1960
1960
|
disabled: ue.value,
|
|
@@ -1986,7 +1986,7 @@ const Ea = ["color", "file", "time", "date", "datetime-local", "week", "month"],
|
|
|
1986
1986
|
type: e.type,
|
|
1987
1987
|
onFocus: i,
|
|
1988
1988
|
onBlur: o,
|
|
1989
|
-
"aria-labelledby": `${
|
|
1989
|
+
"aria-labelledby": `${K.value}-label`
|
|
1990
1990
|
}, A, D), null);
|
|
1991
1991
|
return b(ce, null, [e.prefix && b("span", {
|
|
1992
1992
|
class: "v-text-field__prefix"
|
|
@@ -1996,7 +1996,7 @@ const Ea = ["color", "file", "time", "date", "datetime-local", "week", "month"],
|
|
|
1996
1996
|
class: re(f),
|
|
1997
1997
|
"data-no-activator": ""
|
|
1998
1998
|
}, [l.default({
|
|
1999
|
-
id:
|
|
1999
|
+
id: K
|
|
2000
2000
|
}), ve]) : _n(ve, {
|
|
2001
2001
|
class: f
|
|
2002
2002
|
}), [[dl, r, null, {
|
|
@@ -2060,17 +2060,17 @@ const Ea = ["color", "file", "time", "date", "datetime-local", "week", "month"],
|
|
|
2060
2060
|
height: [Number, String]
|
|
2061
2061
|
}, "virtual");
|
|
2062
2062
|
function Ha(e, a) {
|
|
2063
|
-
const t = Il(), n =
|
|
2063
|
+
const t = Il(), n = ee(0);
|
|
2064
2064
|
zt(() => {
|
|
2065
2065
|
n.value = parseFloat(e.itemHeight || 0);
|
|
2066
2066
|
});
|
|
2067
|
-
const l =
|
|
2067
|
+
const l = ee(0), u = ee(Math.ceil(
|
|
2068
2068
|
// Assume 16px items filling the entire screen height if
|
|
2069
2069
|
// not provided. This is probably incorrect but it minimises
|
|
2070
2070
|
// the chance of ending up with empty space at the bottom.
|
|
2071
2071
|
// The default value is set here to avoid poisoning getSize()
|
|
2072
2072
|
(parseInt(e.height) || t.height.value) / (n.value || 16)
|
|
2073
|
-
) || 1), s =
|
|
2073
|
+
) || 1), s = ee(0), i = ee(0), o = j(), r = j();
|
|
2074
2074
|
let d = 0;
|
|
2075
2075
|
const {
|
|
2076
2076
|
resizeRef: c,
|
|
@@ -2085,7 +2085,7 @@ function Ha(e, a) {
|
|
|
2085
2085
|
}), p = Array.from({
|
|
2086
2086
|
length: a.value.length
|
|
2087
2087
|
});
|
|
2088
|
-
const w =
|
|
2088
|
+
const w = ee(0);
|
|
2089
2089
|
let P = -1;
|
|
2090
2090
|
function C(R) {
|
|
2091
2091
|
return h[R] || n.value;
|
|
@@ -2119,28 +2119,28 @@ function Ha(e, a) {
|
|
|
2119
2119
|
function V(R) {
|
|
2120
2120
|
return za(p, R);
|
|
2121
2121
|
}
|
|
2122
|
-
let
|
|
2122
|
+
let $ = 0, D = 0, G = 0;
|
|
2123
2123
|
se(v, (R, O) => {
|
|
2124
2124
|
ue(), R < O && requestAnimationFrame(() => {
|
|
2125
2125
|
D = 0, ue();
|
|
2126
2126
|
});
|
|
2127
2127
|
});
|
|
2128
|
-
let
|
|
2128
|
+
let ne = -1;
|
|
2129
2129
|
function H() {
|
|
2130
2130
|
if (!o.value || !r.value) return;
|
|
2131
2131
|
const R = o.value.scrollTop, O = performance.now();
|
|
2132
|
-
O -
|
|
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
|
-
!o.value || !r.value || (D = 0,
|
|
2135
|
+
!o.value || !r.value || (D = 0, G = 0, window.clearTimeout(ne), ue());
|
|
2136
2136
|
}
|
|
2137
|
-
let
|
|
2137
|
+
let K = -1;
|
|
2138
2138
|
function ue() {
|
|
2139
|
-
cancelAnimationFrame(
|
|
2139
|
+
cancelAnimationFrame(K), K = requestAnimationFrame(q);
|
|
2140
2140
|
}
|
|
2141
2141
|
function q() {
|
|
2142
2142
|
if (!o.value || !v.value || !n.value) return;
|
|
2143
|
-
const R =
|
|
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
|
|
@@ -2282,7 +2282,7 @@ const Ua = X({
|
|
|
2282
2282
|
}
|
|
2283
2283
|
});
|
|
2284
2284
|
function mn(e, a) {
|
|
2285
|
-
const t =
|
|
2285
|
+
const t = ee(!1);
|
|
2286
2286
|
let n;
|
|
2287
2287
|
function l(i) {
|
|
2288
2288
|
cancelAnimationFrame(n), t.value = !0, n = requestAnimationFrame(() => {
|
|
@@ -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 =
|
|
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,
|
|
@@ -2560,7 +2560,7 @@ const kn = X({
|
|
|
2560
2560
|
} = a;
|
|
2561
2561
|
const {
|
|
2562
2562
|
t: n
|
|
2563
|
-
} = it(), l =
|
|
2563
|
+
} = it(), l = j(), u = j(), s = j(), i = j(), o = j(), {
|
|
2564
2564
|
items: r,
|
|
2565
2565
|
transformIn: d,
|
|
2566
2566
|
transformOut: c
|
|
@@ -2568,23 +2568,23 @@ const kn = X({
|
|
|
2568
2568
|
filteredItems: v,
|
|
2569
2569
|
getMatches: y
|
|
2570
2570
|
} = hn(e, r, () => m.value), h = Ve(e, "modelValue", [], (x) => d(x === null ? [null] : Te(x)), (x) => {
|
|
2571
|
-
const
|
|
2572
|
-
return e.multiple ?
|
|
2573
|
-
}), p = I(() => typeof e.counterValue == "function" ? e.counterValue(h.value) : typeof e.counterValue == "number" ? e.counterValue : h.value.length), w = $t(e), P = vn(e), C = I(() => h.value.map((x) => x.value)), F =
|
|
2571
|
+
const Q = c(x);
|
|
2572
|
+
return e.multiple ? Q : Q[0] ?? null;
|
|
2573
|
+
}), p = I(() => typeof e.counterValue == "function" ? e.counterValue(h.value) : typeof e.counterValue == "number" ? e.counterValue : h.value.length), 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
|
-
let _ = "", V = 0,
|
|
2576
|
+
let _ = "", V = 0, $;
|
|
2577
2577
|
const D = I(() => {
|
|
2578
2578
|
const x = m.value ? v.value : r.value;
|
|
2579
|
-
return e.hideSelected ? x.filter((
|
|
2580
|
-
}),
|
|
2581
|
-
get: () =>
|
|
2579
|
+
return e.hideSelected ? x.filter((Q) => !h.value.some((te) => (e.valueComparator || qe)(te, Q))) : x;
|
|
2580
|
+
}), G = I(() => e.hideNoData && !D.value.length || w.isReadonly.value || w.isDisabled.value), ne = Ve(e, "menu"), H = I({
|
|
2581
|
+
get: () => ne.value,
|
|
2582
2582
|
set: (x) => {
|
|
2583
|
-
|
|
2583
|
+
ne.value && !x && u.value?.ΨopenChildren.size || x && G.value || (ne.value = x);
|
|
2584
2584
|
}
|
|
2585
2585
|
}), {
|
|
2586
2586
|
menuId: W,
|
|
2587
|
-
ariaExpanded:
|
|
2587
|
+
ariaExpanded: K,
|
|
2588
2588
|
ariaControls: ue
|
|
2589
2589
|
} = pn(e, H), q = I(() => ({
|
|
2590
2590
|
...e.menuProps,
|
|
@@ -2593,7 +2593,7 @@ const kn = X({
|
|
|
2593
2593
|
"aria-haspopup": "listbox"
|
|
2594
2594
|
// Set aria-haspopup to 'listbox'
|
|
2595
2595
|
}
|
|
2596
|
-
})), z =
|
|
2596
|
+
})), z = j(), fe = mn(z, l), {
|
|
2597
2597
|
onTabKeydown: R
|
|
2598
2598
|
} = gn({
|
|
2599
2599
|
groups: [{
|
|
@@ -2615,7 +2615,7 @@ const kn = X({
|
|
|
2615
2615
|
e.openOnClear && (H.value = !0);
|
|
2616
2616
|
}
|
|
2617
2617
|
function k() {
|
|
2618
|
-
|
|
2618
|
+
G.value || (H.value = !H.value);
|
|
2619
2619
|
}
|
|
2620
2620
|
function f(x) {
|
|
2621
2621
|
x.key === "Tab" && R(x), z.value?.$el.contains(x.target) && wt(x) && A(x);
|
|
@@ -2627,10 +2627,10 @@ const kn = X({
|
|
|
2627
2627
|
return;
|
|
2628
2628
|
}
|
|
2629
2629
|
x.key === "Home" ? z.value?.focus("first") : x.key === "End" && z.value?.focus("last");
|
|
2630
|
-
const
|
|
2630
|
+
const Q = 1e3;
|
|
2631
2631
|
if (!wt(x)) return;
|
|
2632
|
-
const
|
|
2633
|
-
|
|
2632
|
+
const te = performance.now();
|
|
2633
|
+
te - $ > Q && (_ = "", V = 0), _ += x.key.toLowerCase(), $ = te;
|
|
2634
2634
|
const Be = D.value;
|
|
2635
2635
|
function _e() {
|
|
2636
2636
|
let T = we();
|
|
@@ -2638,9 +2638,9 @@ const kn = X({
|
|
|
2638
2638
|
}
|
|
2639
2639
|
function we() {
|
|
2640
2640
|
for (let T = V; T < Be.length; T++) {
|
|
2641
|
-
const
|
|
2642
|
-
if (
|
|
2643
|
-
return [
|
|
2641
|
+
const le = Be[T];
|
|
2642
|
+
if (le.title.toLowerCase().startsWith(_))
|
|
2643
|
+
return [le, T];
|
|
2644
2644
|
}
|
|
2645
2645
|
}
|
|
2646
2646
|
const S = _e();
|
|
@@ -2649,35 +2649,35 @@ const kn = X({
|
|
|
2649
2649
|
V = N, z.value?.focus(N), e.multiple || (h.value = [Y]);
|
|
2650
2650
|
}
|
|
2651
2651
|
function J(x) {
|
|
2652
|
-
let
|
|
2652
|
+
let Q = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;
|
|
2653
2653
|
if (!x.props.disabled)
|
|
2654
2654
|
if (e.multiple) {
|
|
2655
|
-
const
|
|
2656
|
-
if (~
|
|
2655
|
+
const te = h.value.findIndex((_e) => (e.valueComparator || qe)(_e.value, x.value)), Be = Q ?? !~te;
|
|
2656
|
+
if (~te) {
|
|
2657
2657
|
const _e = Be ? [...h.value, x] : [...h.value];
|
|
2658
|
-
_e.splice(
|
|
2658
|
+
_e.splice(te, 1), h.value = _e;
|
|
2659
2659
|
} else Be && (h.value = [...h.value, x]);
|
|
2660
2660
|
} else {
|
|
2661
|
-
const
|
|
2662
|
-
h.value =
|
|
2661
|
+
const te = Q !== !1;
|
|
2662
|
+
h.value = te ? [x] : [], ke(() => {
|
|
2663
2663
|
H.value = !1;
|
|
2664
2664
|
});
|
|
2665
2665
|
}
|
|
2666
2666
|
}
|
|
2667
2667
|
function ve(x) {
|
|
2668
|
-
const
|
|
2669
|
-
l.value?.$el.contains(
|
|
2668
|
+
const Q = x.target;
|
|
2669
|
+
l.value?.$el.contains(Q) || (H.value = !1);
|
|
2670
2670
|
}
|
|
2671
2671
|
function ge() {
|
|
2672
|
-
return D.value.findIndex((x) => h.value.some((
|
|
2672
|
+
return D.value.findIndex((x) => h.value.some((Q) => (e.valueComparator || qe)(Q.value, x.value)));
|
|
2673
2673
|
}
|
|
2674
2674
|
function pe() {
|
|
2675
2675
|
if (!h.value.length) return -1;
|
|
2676
2676
|
const x = e.valueComparator || qe;
|
|
2677
|
-
let
|
|
2678
|
-
for (const
|
|
2679
|
-
if (h.value.some((_e) => x(_e.value,
|
|
2680
|
-
|
|
2677
|
+
let Q = 0;
|
|
2678
|
+
for (const te of D.value) {
|
|
2679
|
+
if (h.value.some((_e) => x(_e.value, te.value))) return te.props.disabled ? -1 : Q;
|
|
2680
|
+
te.props.disabled || Q++;
|
|
2681
2681
|
}
|
|
2682
2682
|
return -1;
|
|
2683
2683
|
}
|
|
@@ -2699,8 +2699,8 @@ const kn = X({
|
|
|
2699
2699
|
function ut(x) {
|
|
2700
2700
|
if (x == null) h.value = [];
|
|
2701
2701
|
else if (dt(l.value, ":autofill") || dt(l.value, ":-webkit-autofill")) {
|
|
2702
|
-
const
|
|
2703
|
-
|
|
2702
|
+
const Q = r.value.find((te) => te.title === x);
|
|
2703
|
+
Q && J(Q);
|
|
2704
2704
|
} else l.value && (l.value.value = "");
|
|
2705
2705
|
}
|
|
2706
2706
|
return se(H, () => {
|
|
@@ -2710,10 +2710,10 @@ const kn = X({
|
|
|
2710
2710
|
x >= 0 && o.value?.scrollToIndex(x);
|
|
2711
2711
|
});
|
|
2712
2712
|
}
|
|
2713
|
-
}), se(r, (x,
|
|
2714
|
-
H.value || F.value && e.hideNoData && !
|
|
2713
|
+
}), se(r, (x, Q) => {
|
|
2714
|
+
H.value || F.value && e.hideNoData && !Q.length && x.length && (H.value = !0);
|
|
2715
2715
|
}), de(() => {
|
|
2716
|
-
const x = !!(e.chips || t.chip),
|
|
2716
|
+
const x = !!(e.chips || t.chip), Q = !!(!e.hideNoData || D.value.length || t["prepend-item"] || t["append-item"] || t["no-data"]), te = h.value.length > 0, Be = Je.filterProps(e), _e = te || !F.value && e.label && !e.persistentPlaceholder ? void 0 : e.placeholder, we = {
|
|
2717
2717
|
search: m,
|
|
2718
2718
|
filteredItems: v.value
|
|
2719
2719
|
};
|
|
@@ -2727,7 +2727,7 @@ const kn = X({
|
|
|
2727
2727
|
"onUpdate:focused": (S) => F.value = S,
|
|
2728
2728
|
validationValue: h.externalValue,
|
|
2729
2729
|
counterValue: p.value,
|
|
2730
|
-
dirty:
|
|
2730
|
+
dirty: te,
|
|
2731
2731
|
class: ["v-select", {
|
|
2732
2732
|
"v-select--active-menu": H.value,
|
|
2733
2733
|
"v-select--chips": !!e.chips,
|
|
@@ -2742,7 +2742,7 @@ const kn = X({
|
|
|
2742
2742
|
"onMousedown:control": k,
|
|
2743
2743
|
onBlur: ve,
|
|
2744
2744
|
onKeydown: A,
|
|
2745
|
-
"aria-expanded":
|
|
2745
|
+
"aria-expanded": K.value,
|
|
2746
2746
|
"aria-controls": ue.value
|
|
2747
2747
|
}), {
|
|
2748
2748
|
...t,
|
|
@@ -2765,7 +2765,7 @@ const kn = X({
|
|
|
2765
2765
|
"onUpdate:modelValue": (N) => H.value = N,
|
|
2766
2766
|
activator: "parent",
|
|
2767
2767
|
contentClass: "v-select__content",
|
|
2768
|
-
disabled:
|
|
2768
|
+
disabled: G.value,
|
|
2769
2769
|
eager: e.eager,
|
|
2770
2770
|
maxHeight: 310,
|
|
2771
2771
|
openOnClick: !1,
|
|
@@ -2781,7 +2781,7 @@ const kn = X({
|
|
|
2781
2781
|
}, {
|
|
2782
2782
|
default: () => [t["menu-header"] && b("header", {
|
|
2783
2783
|
ref: s
|
|
2784
|
-
}, [t["menu-header"](we)]),
|
|
2784
|
+
}, [t["menu-header"](we)]), Q && g(al, L({
|
|
2785
2785
|
key: "select-list",
|
|
2786
2786
|
ref: z,
|
|
2787
2787
|
selected: C.value,
|
|
@@ -2805,31 +2805,31 @@ const kn = X({
|
|
|
2805
2805
|
default: (N) => {
|
|
2806
2806
|
let {
|
|
2807
2807
|
item: T,
|
|
2808
|
-
index:
|
|
2808
|
+
index: le,
|
|
2809
2809
|
itemRef: Re
|
|
2810
2810
|
} = N;
|
|
2811
|
-
const ae = Un(T.props),
|
|
2811
|
+
const ae = Un(T.props), Z = L(T.props, {
|
|
2812
2812
|
ref: Re,
|
|
2813
2813
|
key: T.value,
|
|
2814
2814
|
onClick: () => J(T, null),
|
|
2815
|
-
"aria-posinset":
|
|
2815
|
+
"aria-posinset": le + 1,
|
|
2816
2816
|
"aria-setsize": D.value.length
|
|
2817
2817
|
});
|
|
2818
2818
|
return T.type === "divider" ? t.divider?.({
|
|
2819
2819
|
props: T.raw,
|
|
2820
|
-
index:
|
|
2820
|
+
index: le
|
|
2821
2821
|
}) ?? g(ze, L(T.props, {
|
|
2822
|
-
key: `divider-${
|
|
2822
|
+
key: `divider-${le}`
|
|
2823
2823
|
}), null) : T.type === "subheader" ? t.subheader?.({
|
|
2824
2824
|
props: T.raw,
|
|
2825
|
-
index:
|
|
2825
|
+
index: le
|
|
2826
2826
|
}) ?? g(Wl, L(T.props, {
|
|
2827
|
-
key: `subheader-${
|
|
2827
|
+
key: `subheader-${le}`
|
|
2828
2828
|
}), null) : t.item?.({
|
|
2829
2829
|
item: T,
|
|
2830
|
-
index:
|
|
2831
|
-
props:
|
|
2832
|
-
}) ?? g(vt, L(
|
|
2830
|
+
index: le,
|
|
2831
|
+
props: Z
|
|
2832
|
+
}) ?? g(vt, L(Z, {
|
|
2833
2833
|
role: "option"
|
|
2834
2834
|
}), {
|
|
2835
2835
|
prepend: (me) => {
|
|
@@ -2858,20 +2858,20 @@ const kn = X({
|
|
|
2858
2858
|
}, [t["menu-footer"](we)])]
|
|
2859
2859
|
})]
|
|
2860
2860
|
}), h.value.map((N, T) => {
|
|
2861
|
-
function
|
|
2861
|
+
function le(me) {
|
|
2862
2862
|
me.stopPropagation(), me.preventDefault(), J(N, !1);
|
|
2863
2863
|
}
|
|
2864
2864
|
const Re = L(mt.filterProps(N.props), {
|
|
2865
|
-
"onClick:close":
|
|
2865
|
+
"onClick:close": le,
|
|
2866
2866
|
onKeydown(me) {
|
|
2867
|
-
me.key !== "Enter" && me.key !== " " || (me.preventDefault(), me.stopPropagation(),
|
|
2867
|
+
me.key !== "Enter" && me.key !== " " || (me.preventDefault(), me.stopPropagation(), le(me));
|
|
2868
2868
|
},
|
|
2869
2869
|
onMousedown(me) {
|
|
2870
2870
|
me.preventDefault(), me.stopPropagation();
|
|
2871
2871
|
},
|
|
2872
2872
|
modelValue: !0,
|
|
2873
2873
|
"onUpdate:modelValue": void 0
|
|
2874
|
-
}), ae = x ? !!t.chip : !!t.selection,
|
|
2874
|
+
}), ae = x ? !!t.chip : !!t.selection, Z = ae ? ql(x ? t.chip({
|
|
2875
2875
|
item: N,
|
|
2876
2876
|
index: T,
|
|
2877
2877
|
props: Re
|
|
@@ -2879,7 +2879,7 @@ const kn = X({
|
|
|
2879
2879
|
item: N,
|
|
2880
2880
|
index: T
|
|
2881
2881
|
})) : void 0;
|
|
2882
|
-
if (!(ae && !
|
|
2882
|
+
if (!(ae && !Z))
|
|
2883
2883
|
return b("div", {
|
|
2884
2884
|
key: N.value,
|
|
2885
2885
|
class: "v-select__selection"
|
|
@@ -2893,14 +2893,14 @@ const kn = X({
|
|
|
2893
2893
|
}
|
|
2894
2894
|
}
|
|
2895
2895
|
}, {
|
|
2896
|
-
default: () => [
|
|
2896
|
+
default: () => [Z]
|
|
2897
2897
|
}) : g(mt, L({
|
|
2898
2898
|
key: "chip",
|
|
2899
2899
|
closable: B.value,
|
|
2900
2900
|
size: "small",
|
|
2901
2901
|
text: N.title,
|
|
2902
2902
|
disabled: N.props.disabled
|
|
2903
|
-
}, Re), null) :
|
|
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"
|
|
@@ -2959,7 +2959,7 @@ const kn = X({
|
|
|
2959
2959
|
} = a;
|
|
2960
2960
|
const {
|
|
2961
2961
|
t: n
|
|
2962
|
-
} = it(), l =
|
|
2962
|
+
} = it(), l = j(), u = ee(!1), s = ee(!0), i = ee(!1), o = j(), r = j(), d = ee(-1), c = ee(null), {
|
|
2963
2963
|
items: m,
|
|
2964
2964
|
transformIn: v,
|
|
2965
2965
|
transformOut: y
|
|
@@ -2974,16 +2974,16 @@ const kn = X({
|
|
|
2974
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
|
-
ue.value && !S && o.value?.ΨopenChildren.size || S &&
|
|
2980
|
+
ue.value && !S && o.value?.ΨopenChildren.size || S && K.value || (ue.value = S);
|
|
2981
2981
|
}
|
|
2982
2982
|
}), {
|
|
2983
2983
|
menuId: z,
|
|
2984
2984
|
ariaExpanded: fe,
|
|
2985
2985
|
ariaControls: R
|
|
2986
|
-
} = pn(e, q), O =
|
|
2986
|
+
} = pn(e, q), O = j(), k = j(), f = j(), A = mn(O, l), {
|
|
2987
2987
|
onTabKeydown: J
|
|
2988
2988
|
} = gn({
|
|
2989
2989
|
groups: [{
|
|
@@ -3005,10 +3005,10 @@ const kn = X({
|
|
|
3005
3005
|
e.openOnClear && (q.value = !0), P.value = "";
|
|
3006
3006
|
}
|
|
3007
3007
|
function ge() {
|
|
3008
|
-
|
|
3008
|
+
K.value || (q.value = !0);
|
|
3009
3009
|
}
|
|
3010
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();
|
|
@@ -3018,11 +3018,11 @@ const kn = X({
|
|
|
3018
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
|
-
value:
|
|
3021
|
+
value: le
|
|
3022
3022
|
} = T;
|
|
3023
|
-
return
|
|
3023
|
+
return le === H.value.value;
|
|
3024
3024
|
}) && we(H.value), S.key === "ArrowDown" && W.value && O.value?.focus("next"), ["Backspace", "Delete"].includes(S.key)) {
|
|
3025
|
-
if (!e.multiple &&
|
|
3025
|
+
if (!e.multiple && G.value && C.value.length > 0 && !P.value) return we(C.value[0], !1);
|
|
3026
3026
|
if (~d.value) {
|
|
3027
3027
|
S.preventDefault();
|
|
3028
3028
|
const T = d.value;
|
|
@@ -3037,8 +3037,8 @@ const kn = X({
|
|
|
3037
3037
|
if (C.value[T])
|
|
3038
3038
|
d.value = T;
|
|
3039
3039
|
else {
|
|
3040
|
-
const
|
|
3041
|
-
d.value = -1, l.value?.setSelectionRange(
|
|
3040
|
+
const le = P.value?.length ?? null;
|
|
3041
|
+
d.value = -1, l.value?.setSelectionRange(le, le);
|
|
3042
3042
|
}
|
|
3043
3043
|
} else if (S.key === "ArrowRight") {
|
|
3044
3044
|
if (d.value < 0) return;
|
|
@@ -3063,35 +3063,35 @@ const kn = X({
|
|
|
3063
3063
|
i.value = !0;
|
|
3064
3064
|
});
|
|
3065
3065
|
}
|
|
3066
|
-
function
|
|
3066
|
+
function Q(S) {
|
|
3067
3067
|
i.value = !1, l.value?.$el.contains(S.relatedTarget) || (u.value = !1);
|
|
3068
3068
|
}
|
|
3069
|
-
function
|
|
3070
|
-
(S == null || S === "" && !e.multiple && !
|
|
3069
|
+
function te(S) {
|
|
3070
|
+
(S == null || S === "" && !e.multiple && !G.value) && (C.value = []);
|
|
3071
3071
|
}
|
|
3072
3072
|
function Be(S) {
|
|
3073
3073
|
o.value?.contentEl?.contains(S.relatedTarget) && (u.value = !0);
|
|
3074
3074
|
}
|
|
3075
|
-
const _e =
|
|
3075
|
+
const _e = ee(!1);
|
|
3076
3076
|
function we(S) {
|
|
3077
3077
|
let Y = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;
|
|
3078
3078
|
if (!(!S || S.props.disabled))
|
|
3079
3079
|
if (e.multiple) {
|
|
3080
|
-
const N = C.value.findIndex((
|
|
3080
|
+
const N = C.value.findIndex((le) => (e.valueComparator || qe)(le.value, S.value)), T = Y ?? !~N;
|
|
3081
3081
|
if (~N) {
|
|
3082
|
-
const
|
|
3083
|
-
|
|
3082
|
+
const le = T ? [...C.value, S] : [...C.value];
|
|
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
3087
|
const N = Y !== !1;
|
|
3088
|
-
C.value = N ? [S] : [], c.value = s.value ? "" : P.value ?? "", P.value = N && !
|
|
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
|
}
|
|
3092
3092
|
}
|
|
3093
3093
|
return se(u, (S, Y) => {
|
|
3094
|
-
S !== Y && (S ? (_e.value = !0, P.value = e.multiple ||
|
|
3094
|
+
S !== Y && (S ? (_e.value = !0, P.value = e.multiple || G.value ? "" : String(C.value.at(-1)?.props.title ?? ""), s.value = !0, ke(() => _e.value = !1)) : (!e.multiple && P.value == null && (C.value = []), q.value = !1, !s.value && P.value && (c.value = P.value), P.value = "", d.value = -1));
|
|
3095
3095
|
}), se(P, (S) => {
|
|
3096
3096
|
!u.value || _e.value || (S && (q.value = !0), s.value = !S);
|
|
3097
3097
|
}), se(q, (S) => {
|
|
@@ -3113,9 +3113,9 @@ const kn = X({
|
|
|
3113
3113
|
ref: l
|
|
3114
3114
|
}, N, {
|
|
3115
3115
|
modelValue: P.value,
|
|
3116
|
-
"onUpdate:modelValue": [(
|
|
3116
|
+
"onUpdate:modelValue": [(le) => P.value = le, te],
|
|
3117
3117
|
focused: u.value,
|
|
3118
|
-
"onUpdate:focused": (
|
|
3118
|
+
"onUpdate:focused": (le) => u.value = le,
|
|
3119
3119
|
validationValue: C.externalValue,
|
|
3120
3120
|
counterValue: F.value,
|
|
3121
3121
|
dirty: Y,
|
|
@@ -3123,7 +3123,7 @@ const kn = X({
|
|
|
3123
3123
|
class: ["v-autocomplete", `v-autocomplete--${e.multiple ? "multiple" : "single"}`, {
|
|
3124
3124
|
"v-autocomplete--active-menu": q.value,
|
|
3125
3125
|
"v-autocomplete--chips": !!e.chips,
|
|
3126
|
-
"v-autocomplete--selection-slot": !!
|
|
3126
|
+
"v-autocomplete--selection-slot": !!G.value,
|
|
3127
3127
|
"v-autocomplete--selecting-index": d.value > -1
|
|
3128
3128
|
}, e.class],
|
|
3129
3129
|
style: e.style,
|
|
@@ -3137,10 +3137,10 @@ const kn = X({
|
|
|
3137
3137
|
"aria-controls": R.value
|
|
3138
3138
|
}), {
|
|
3139
3139
|
...t,
|
|
3140
|
-
default: (
|
|
3140
|
+
default: (le) => {
|
|
3141
3141
|
let {
|
|
3142
3142
|
id: Re
|
|
3143
|
-
} =
|
|
3143
|
+
} = le;
|
|
3144
3144
|
return b(ce, null, [g(Gl, L({
|
|
3145
3145
|
id: z.value,
|
|
3146
3146
|
ref: o,
|
|
@@ -3148,7 +3148,7 @@ const kn = X({
|
|
|
3148
3148
|
"onUpdate:modelValue": (ae) => q.value = ae,
|
|
3149
3149
|
activator: "parent",
|
|
3150
3150
|
contentClass: "v-autocomplete__content",
|
|
3151
|
-
disabled:
|
|
3151
|
+
disabled: K.value,
|
|
3152
3152
|
eager: e.eager,
|
|
3153
3153
|
maxHeight: 310,
|
|
3154
3154
|
openOnClick: !1,
|
|
@@ -3166,10 +3166,10 @@ const kn = X({
|
|
|
3166
3166
|
key: "autocomplete-list",
|
|
3167
3167
|
ref: O,
|
|
3168
3168
|
filterable: !0,
|
|
3169
|
-
selected:
|
|
3169
|
+
selected: ne.value,
|
|
3170
3170
|
selectStrategy: e.multiple ? "independent" : "single-independent",
|
|
3171
3171
|
onMousedown: (ae) => ae.preventDefault(),
|
|
3172
|
-
onFocusout:
|
|
3172
|
+
onFocusout: Q,
|
|
3173
3173
|
tabindex: "-1",
|
|
3174
3174
|
selectable: !!V.value.length,
|
|
3175
3175
|
"aria-live": "polite",
|
|
@@ -3188,30 +3188,30 @@ const kn = X({
|
|
|
3188
3188
|
}, {
|
|
3189
3189
|
default: (ae) => {
|
|
3190
3190
|
let {
|
|
3191
|
-
item:
|
|
3191
|
+
item: Z,
|
|
3192
3192
|
index: me,
|
|
3193
3193
|
itemRef: Ze
|
|
3194
3194
|
} = ae;
|
|
3195
|
-
const Ge = L(
|
|
3195
|
+
const Ge = L(Z.props, {
|
|
3196
3196
|
ref: Ze,
|
|
3197
|
-
key:
|
|
3198
|
-
active: W.value &&
|
|
3199
|
-
onClick: () => we(
|
|
3197
|
+
key: Z.value,
|
|
3198
|
+
active: W.value && Z === H.value ? !0 : void 0,
|
|
3199
|
+
onClick: () => we(Z, null),
|
|
3200
3200
|
"aria-posinset": me + 1,
|
|
3201
3201
|
"aria-setsize": V.value.length
|
|
3202
3202
|
});
|
|
3203
|
-
return
|
|
3204
|
-
props:
|
|
3203
|
+
return Z.type === "divider" ? t.divider?.({
|
|
3204
|
+
props: Z.raw,
|
|
3205
3205
|
index: me
|
|
3206
|
-
}) ?? g(ze, L(
|
|
3206
|
+
}) ?? g(ze, L(Z.props, {
|
|
3207
3207
|
key: `divider-${me}`
|
|
3208
|
-
}), null) :
|
|
3209
|
-
props:
|
|
3208
|
+
}), null) : Z.type === "subheader" ? t.subheader?.({
|
|
3209
|
+
props: Z.raw,
|
|
3210
3210
|
index: me
|
|
3211
|
-
}) ?? g(Wl, L(
|
|
3211
|
+
}) ?? g(Wl, L(Z.props, {
|
|
3212
3212
|
key: `subheader-${me}`
|
|
3213
3213
|
}), null) : t.item?.({
|
|
3214
|
-
item:
|
|
3214
|
+
item: Z,
|
|
3215
3215
|
index: me,
|
|
3216
3216
|
props: Ge
|
|
3217
3217
|
}) ?? g(vt, L(Ge, {
|
|
@@ -3222,19 +3222,19 @@ const kn = X({
|
|
|
3222
3222
|
isSelected: Ae
|
|
3223
3223
|
} = st;
|
|
3224
3224
|
return b(ce, null, [e.multiple && !e.hideSelected ? g(un, {
|
|
3225
|
-
key:
|
|
3225
|
+
key: Z.value,
|
|
3226
3226
|
modelValue: Ae,
|
|
3227
3227
|
ripple: !1,
|
|
3228
3228
|
tabindex: "-1",
|
|
3229
3229
|
"aria-hidden": !0,
|
|
3230
3230
|
onClick: (In) => In.preventDefault()
|
|
3231
|
-
}, null) : void 0,
|
|
3232
|
-
image:
|
|
3233
|
-
}, null),
|
|
3234
|
-
icon:
|
|
3231
|
+
}, null) : void 0, Z.props.prependAvatar && g(nt, {
|
|
3232
|
+
image: Z.props.prependAvatar
|
|
3233
|
+
}, null), Z.props.prependIcon && g(Se, {
|
|
3234
|
+
icon: Z.props.prependIcon
|
|
3235
3235
|
}, null)]);
|
|
3236
3236
|
},
|
|
3237
|
-
title: () => s.value ?
|
|
3237
|
+
title: () => s.value ? Z.title : bn("v-autocomplete", Z.title, _(Z)?.title)
|
|
3238
3238
|
});
|
|
3239
3239
|
}
|
|
3240
3240
|
}), t["append-item"]?.()]
|
|
@@ -3242,7 +3242,7 @@ const kn = X({
|
|
|
3242
3242
|
ref: f
|
|
3243
3243
|
}, [t["menu-footer"](T)])]
|
|
3244
3244
|
})]
|
|
3245
|
-
}), C.value.map((ae,
|
|
3245
|
+
}), C.value.map((ae, Z) => {
|
|
3246
3246
|
function me(Ae) {
|
|
3247
3247
|
Ae.stopPropagation(), Ae.preventDefault(), we(ae, !1);
|
|
3248
3248
|
}
|
|
@@ -3258,22 +3258,22 @@ const kn = X({
|
|
|
3258
3258
|
"onUpdate:modelValue": void 0
|
|
3259
3259
|
}), Ge = D.value ? !!t.chip : !!t.selection, st = Ge ? ql(D.value ? t.chip({
|
|
3260
3260
|
item: ae,
|
|
3261
|
-
index:
|
|
3261
|
+
index: Z,
|
|
3262
3262
|
props: Ze
|
|
3263
3263
|
}) : t.selection({
|
|
3264
3264
|
item: ae,
|
|
3265
|
-
index:
|
|
3265
|
+
index: Z
|
|
3266
3266
|
})) : void 0;
|
|
3267
3267
|
if (!(Ge && !st))
|
|
3268
3268
|
return b("div", {
|
|
3269
3269
|
key: ae.value,
|
|
3270
|
-
class: re(["v-autocomplete__selection",
|
|
3271
|
-
style: xe(
|
|
3270
|
+
class: re(["v-autocomplete__selection", Z === d.value && ["v-autocomplete__selection--selected", h.value]]),
|
|
3271
|
+
style: xe(Z === d.value ? p.value : {})
|
|
3272
3272
|
}, [D.value ? t.chip ? g(Fe, {
|
|
3273
3273
|
key: "chip-defaults",
|
|
3274
3274
|
defaults: {
|
|
3275
3275
|
VChip: {
|
|
3276
|
-
closable:
|
|
3276
|
+
closable: $.value,
|
|
3277
3277
|
size: "small",
|
|
3278
3278
|
text: ae.title
|
|
3279
3279
|
}
|
|
@@ -3282,19 +3282,19 @@ const kn = X({
|
|
|
3282
3282
|
default: () => [st]
|
|
3283
3283
|
}) : g(mt, L({
|
|
3284
3284
|
key: "chip",
|
|
3285
|
-
closable:
|
|
3285
|
+
closable: $.value,
|
|
3286
3286
|
size: "small",
|
|
3287
3287
|
text: ae.title,
|
|
3288
3288
|
disabled: ae.props.disabled
|
|
3289
3289
|
}, Ze), null) : st ?? b("span", {
|
|
3290
3290
|
class: "v-autocomplete__selection-text"
|
|
3291
|
-
}, [ae.title, e.multiple &&
|
|
3291
|
+
}, [ae.title, e.multiple && Z < C.value.length - 1 && b("span", {
|
|
3292
3292
|
class: "v-autocomplete__selection-comma"
|
|
3293
3293
|
}, [Sl(",")])])]);
|
|
3294
3294
|
})]);
|
|
3295
3295
|
},
|
|
3296
3296
|
"append-inner": function() {
|
|
3297
|
-
for (var
|
|
3297
|
+
for (var le = arguments.length, Re = new Array(le), ae = 0; ae < le; ae++)
|
|
3298
3298
|
Re[ae] = arguments[ae];
|
|
3299
3299
|
return b(ce, null, [t["append-inner"]?.(...Re), e.menuIcon ? g(Se, {
|
|
3300
3300
|
class: "v-autocomplete__menu-icon",
|
|
@@ -3432,7 +3432,7 @@ const kn = X({
|
|
|
3432
3432
|
} = a;
|
|
3433
3433
|
const l = Ve(e, "modelValue"), {
|
|
3434
3434
|
scopeId: u
|
|
3435
|
-
} = qn(), s =
|
|
3435
|
+
} = qn(), s = j();
|
|
3436
3436
|
function i() {
|
|
3437
3437
|
t("afterEnter"), (e.scrim || e.retainFocus) && s.value?.contentEl && !s.value.contentEl.contains(document.activeElement) && s.value.contentEl.focus({
|
|
3438
3438
|
preventScroll: !0
|
|
@@ -3709,13 +3709,13 @@ const kn = X({
|
|
|
3709
3709
|
positionClasses: y
|
|
3710
3710
|
} = Rl(e), {
|
|
3711
3711
|
roundedClasses: h
|
|
3712
|
-
} = gt(e), p = Al(e, t), w =
|
|
3712
|
+
} = gt(e), p = Al(e, t), w = ee(void 0);
|
|
3713
3713
|
return se(() => e.loading, (P, C) => {
|
|
3714
3714
|
w.value = !P && typeof C == "string" ? C : typeof P == "boolean" ? void 0 : P;
|
|
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, B = !!(n.title || e.title != null), U = !!(n.subtitle || e.subtitle != null), _ = B || U, V = !!(n.append || e.appendAvatar || e.appendIcon),
|
|
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,
|
|
@@ -3751,7 +3751,7 @@ const kn = X({
|
|
|
3751
3751
|
color: w.value
|
|
3752
3752
|
}, {
|
|
3753
3753
|
default: n.loader
|
|
3754
|
-
}),
|
|
3754
|
+
}), G && g(no, {
|
|
3755
3755
|
key: "item",
|
|
3756
3756
|
prependAvatar: e.prependAvatar,
|
|
3757
3757
|
prependIcon: e.prependIcon,
|
|
@@ -3765,7 +3765,7 @@ const kn = X({
|
|
|
3765
3765
|
title: n.title,
|
|
3766
3766
|
subtitle: n.subtitle,
|
|
3767
3767
|
append: n.append
|
|
3768
|
-
}),
|
|
3768
|
+
}), ne && g(sl, {
|
|
3769
3769
|
key: "text"
|
|
3770
3770
|
}, {
|
|
3771
3771
|
default: () => [n.text?.() ?? e.text]
|
|
@@ -3847,12 +3847,12 @@ const ro = X({
|
|
|
3847
3847
|
let {
|
|
3848
3848
|
slots: t
|
|
3849
3849
|
} = a;
|
|
3850
|
-
const n =
|
|
3850
|
+
const n = j(), {
|
|
3851
3851
|
holdStart: l,
|
|
3852
3852
|
holdStop: u
|
|
3853
3853
|
} = so({
|
|
3854
|
-
toggleUpDown:
|
|
3855
|
-
}), s = $t(e), i = I(() => s.isDisabled.value || s.isReadonly.value), o =
|
|
3854
|
+
toggleUpDown: G
|
|
3855
|
+
}), s = $t(e), i = I(() => s.isDisabled.value || s.isReadonly.value), o = ee(e.focused), {
|
|
3856
3856
|
decimalSeparator: r
|
|
3857
3857
|
} = it(), d = I(() => e.decimalSeparator?.[0] || r.value);
|
|
3858
3858
|
function c(f) {
|
|
@@ -3865,7 +3865,7 @@ const ro = X({
|
|
|
3865
3865
|
let [ge, pe] = ve.split(".");
|
|
3866
3866
|
return pe = (pe ?? "").padEnd(e.minFractionDigits, "0").replace(new RegExp(`(?<=\\d{${e.minFractionDigits}})0+$`, "g"), ""), [ge, pe].filter(Boolean).join(d.value);
|
|
3867
3867
|
}
|
|
3868
|
-
const m = Ve(e, "modelValue", null, (f) => f ?? null, (f) => f == null ? f ?? null : Ne(Number(f), e.min, e.max)), v =
|
|
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) => {
|
|
3870
3870
|
o.value && !i.value && Number(v.value?.replace(d.value, ".")) === f || (f == null ? (v.value = null, y.value = null) : isNaN(f) || (v.value = c(f), y.value = Number(v.value.replace(d.value, "."))));
|
|
3871
3871
|
}, {
|
|
@@ -3888,16 +3888,16 @@ const ro = X({
|
|
|
3888
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
|
-
onPointerup:
|
|
3891
|
+
onPointerup: K,
|
|
3892
3892
|
onPointerdown: ue,
|
|
3893
|
-
onPointercancel:
|
|
3893
|
+
onPointercancel: K
|
|
3894
3894
|
}
|
|
3895
|
-
},
|
|
3895
|
+
}, $ = {
|
|
3896
3896
|
props: {
|
|
3897
3897
|
onClick: W,
|
|
3898
|
-
onPointerup:
|
|
3898
|
+
onPointerup: K,
|
|
3899
3899
|
onPointerdown: q,
|
|
3900
|
-
onPointercancel:
|
|
3900
|
+
onPointercancel: K
|
|
3901
3901
|
}
|
|
3902
3902
|
};
|
|
3903
3903
|
se(() => e.precision, () => fe()), se(() => e.minFractionDigits, () => fe()), at(() => {
|
|
@@ -3908,7 +3908,7 @@ const ro = X({
|
|
|
3908
3908
|
const A = f.toString(), J = A.indexOf(".");
|
|
3909
3909
|
return ~J ? A.length - J : 0;
|
|
3910
3910
|
}
|
|
3911
|
-
function
|
|
3911
|
+
function G() {
|
|
3912
3912
|
let f = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0;
|
|
3913
3913
|
if (i.value) return;
|
|
3914
3914
|
if (m.value == null) {
|
|
@@ -3918,7 +3918,7 @@ const ro = X({
|
|
|
3918
3918
|
let A = Math.max(D(m.value), D(e.step));
|
|
3919
3919
|
e.precision != null && (A = Math.max(A, e.precision)), f ? w.value && (h.value = c(m.value + e.step, A)) : P.value && (h.value = c(m.value - e.step, A));
|
|
3920
3920
|
}
|
|
3921
|
-
function
|
|
3921
|
+
function ne(f) {
|
|
3922
3922
|
if (i.value || !f.data) return;
|
|
3923
3923
|
const A = f.target, {
|
|
3924
3924
|
value: J,
|
|
@@ -3935,12 +3935,12 @@ const ro = X({
|
|
|
3935
3935
|
}
|
|
3936
3936
|
}
|
|
3937
3937
|
async function H(f) {
|
|
3938
|
-
["Enter", "ArrowLeft", "ArrowRight", "Backspace", "Delete", "Tab"].includes(f.key) || f.ctrlKey || ["ArrowDown", "ArrowUp"].includes(f.key) && (f.preventDefault(), f.stopPropagation(), z(), await ke(), f.key === "ArrowDown" ?
|
|
3938
|
+
["Enter", "ArrowLeft", "ArrowRight", "Backspace", "Delete", "Tab"].includes(f.key) || f.ctrlKey || ["ArrowDown", "ArrowUp"].includes(f.key) && (f.preventDefault(), f.stopPropagation(), z(), await ke(), f.key === "ArrowDown" ? G(!1) : G());
|
|
3939
3939
|
}
|
|
3940
3940
|
function W(f) {
|
|
3941
3941
|
f.stopPropagation();
|
|
3942
3942
|
}
|
|
3943
|
-
function
|
|
3943
|
+
function K(f) {
|
|
3944
3944
|
f.currentTarget?.releasePointerCapture(f.pointerId), f.preventDefault(), u();
|
|
3945
3945
|
}
|
|
3946
3946
|
function ue(f) {
|
|
@@ -4001,8 +4001,8 @@ const ro = X({
|
|
|
4001
4001
|
key: "increment-btn",
|
|
4002
4002
|
onClick: W,
|
|
4003
4003
|
onPointerdown: ue,
|
|
4004
|
-
onPointerup:
|
|
4005
|
-
onPointercancel:
|
|
4004
|
+
onPointerup: K,
|
|
4005
|
+
onPointercancel: K,
|
|
4006
4006
|
size: U.value,
|
|
4007
4007
|
variant: "text",
|
|
4008
4008
|
tabindex: "-1"
|
|
@@ -4021,7 +4021,7 @@ const ro = X({
|
|
|
4021
4021
|
}
|
|
4022
4022
|
}
|
|
4023
4023
|
}, {
|
|
4024
|
-
default: () => [t.decrement(
|
|
4024
|
+
default: () => [t.decrement($)]
|
|
4025
4025
|
}) : g(tt, {
|
|
4026
4026
|
"aria-hidden": "true",
|
|
4027
4027
|
"data-testid": "decrement",
|
|
@@ -4031,8 +4031,8 @@ const ro = X({
|
|
|
4031
4031
|
key: "decrement-btn",
|
|
4032
4032
|
onClick: W,
|
|
4033
4033
|
onPointerdown: q,
|
|
4034
|
-
onPointerup:
|
|
4035
|
-
onPointercancel:
|
|
4034
|
+
onPointerup: K,
|
|
4035
|
+
onPointercancel: K,
|
|
4036
4036
|
size: U.value,
|
|
4037
4037
|
variant: "text",
|
|
4038
4038
|
tabindex: "-1"
|
|
@@ -4068,7 +4068,7 @@ const ro = X({
|
|
|
4068
4068
|
"onUpdate:focused": (x) => o.value = x,
|
|
4069
4069
|
validationValue: m.value,
|
|
4070
4070
|
error: e.error || p.value || void 0,
|
|
4071
|
-
onBeforeinput:
|
|
4071
|
+
onBeforeinput: ne,
|
|
4072
4072
|
onFocus: O,
|
|
4073
4073
|
onBlur: k,
|
|
4074
4074
|
onKeydown: H,
|
|
@@ -4085,14 +4085,14 @@ const ro = X({
|
|
|
4085
4085
|
}), {
|
|
4086
4086
|
...t,
|
|
4087
4087
|
"append-inner": je ? function() {
|
|
4088
|
-
for (var x = arguments.length,
|
|
4089
|
-
|
|
4090
|
-
return b(ce, null, [t["append-inner"]?.(...
|
|
4088
|
+
for (var x = arguments.length, Q = new Array(x), te = 0; te < x; te++)
|
|
4089
|
+
Q[te] = arguments[te];
|
|
4090
|
+
return b(ce, null, [t["append-inner"]?.(...Q), De]);
|
|
4091
4091
|
} : void 0,
|
|
4092
4092
|
"prepend-inner": ut ? function() {
|
|
4093
|
-
for (var x = arguments.length,
|
|
4094
|
-
|
|
4095
|
-
return b(ce, null, [Qe, t["prepend-inner"]?.(...
|
|
4093
|
+
for (var x = arguments.length, Q = new Array(x), te = 0; te < x; te++)
|
|
4094
|
+
Q[te] = arguments[te];
|
|
4095
|
+
return b(ce, null, [Qe, t["prepend-inner"]?.(...Q)]);
|
|
4096
4096
|
} : void 0
|
|
4097
4097
|
});
|
|
4098
4098
|
}), St({}, n);
|
|
@@ -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(
|
|
@@ -4136,7 +4136,7 @@ const ro = X({
|
|
|
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,7 +4146,7 @@ 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}`)
|
|
@@ -4224,7 +4224,7 @@ const go = {
|
|
|
4224
4224
|
},
|
|
4225
4225
|
emits: ["update:modelValue"],
|
|
4226
4226
|
setup(e) {
|
|
4227
|
-
const a = Pe("table_props"), t = Pe("busEmits"), n = Rt(), { advancedFiltersState: l } = Et(), u = Xl("advancedFilters"), { setData: s } = n, i = Pt(e, "modelValue"), o =
|
|
4227
|
+
const a = Pe("table_props"), t = Pe("busEmits"), n = Rt(), { advancedFiltersState: l } = Et(), u = Xl("advancedFilters"), { setData: s } = n, i = Pt(e, "modelValue"), o = j({}), r = () => {
|
|
4228
4228
|
const m = Object.entries(o.value).filter(([, v]) => {
|
|
4229
4229
|
const y = v.value;
|
|
4230
4230
|
return Array.isArray(y) || typeof y == "string" ? y.length > 0 : y != null && y !== "";
|
|
@@ -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)
|
|
@@ -4269,7 +4269,7 @@ const go = {
|
|
|
4269
4269
|
}
|
|
4270
4270
|
};
|
|
4271
4271
|
function yo() {
|
|
4272
|
-
const e = Pe("datatablesPluginOptions"), { t: a } = aa(), { advancedFiltersState: t } = Et(), n =
|
|
4272
|
+
const e = Pe("datatablesPluginOptions"), { t: a } = aa(), { advancedFiltersState: t } = Et(), n = j(!1), l = I(() => Object.keys(t.value).length);
|
|
4273
4273
|
return { advancedFiltersItems: I(() => [
|
|
4274
4274
|
{
|
|
4275
4275
|
title: `${a("$datatables.advancedFilters")}`,
|
|
@@ -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, {
|
|
@@ -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,32 +4330,32 @@ 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
4337
|
e.responsiveHeader ? Me("", !0) : (oe(), ye(m, { key: 0 })),
|
|
4338
|
-
|
|
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(), ye($e(
|
|
4342
|
+
(oe(), ye($e(M(r).toolbar), { id: "header-toolbar" })),
|
|
4343
4343
|
b("div", ko, [
|
|
4344
|
-
(oe(), ye($e(
|
|
4345
|
-
e.responsiveHeader ? Me("", !0) : (oe(), ye($e(
|
|
4344
|
+
(oe(), ye($e(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(), ye($e(
|
|
4350
|
-
e.responsiveHeader ? Me("", !0) : (oe(), ye($e(
|
|
4351
|
-
(oe(), ye($e(
|
|
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
|
};
|
|
4355
4355
|
}
|
|
4356
4356
|
});
|
|
4357
4357
|
function Co(e) {
|
|
4358
|
-
const a = Rt(), { getCurrentTable: t, setTableHash: n, hashString: l } = a, u =
|
|
4358
|
+
const a = Rt(), { getCurrentTable: t, setTableHash: n, hashString: l } = a, u = j(!1), s = 5, i = I(() => t(e.id));
|
|
4359
4359
|
se(
|
|
4360
4360
|
i,
|
|
4361
4361
|
async (v) => {
|
|
@@ -4394,7 +4394,7 @@ function Co(e) {
|
|
|
4394
4394
|
};
|
|
4395
4395
|
}
|
|
4396
4396
|
const xn = la(() => {
|
|
4397
|
-
const e =
|
|
4397
|
+
const e = ee({}), a = ee({});
|
|
4398
4398
|
return {
|
|
4399
4399
|
storeOptions: {
|
|
4400
4400
|
state: e,
|
|
@@ -4418,7 +4418,13 @@ 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
|
+
na(d, (_) => {
|
|
4423
|
+
if (!v.value) return;
|
|
4424
|
+
const V = _[0], { width: $ } = V.contentRect;
|
|
4425
|
+
B.value = $ < 950;
|
|
4426
|
+
});
|
|
4427
|
+
const U = I(() => {
|
|
4422
4428
|
const _ = o.options?.header;
|
|
4423
4429
|
return _ === void 0 || typeof _ == "object" && _ !== null;
|
|
4424
4430
|
});
|
|
@@ -4426,34 +4432,30 @@ const xn = la(() => {
|
|
|
4426
4432
|
C({ table_id: o.id }), await P();
|
|
4427
4433
|
const _ = p();
|
|
4428
4434
|
_ && F({ table_id: o.id, data: _ });
|
|
4429
|
-
const
|
|
4430
|
-
|
|
4431
|
-
if (!v.value) return;
|
|
4432
|
-
const K = D[0], { width: Q } = K.contentRect;
|
|
4433
|
-
B.value = Q < 950;
|
|
4434
|
-
}), v.value = !0;
|
|
4435
|
+
const $ = w.value.options.columns;
|
|
4436
|
+
$.sorted?.length || ($.selected?.length || ($.selected = o.headers.filter((D) => !D.hidden).map((D) => D.key)), $.sorted = o.headers.map((D) => D.key)), s(ea(u.state.value, w.value.options.state)), m.value = !0, await ke(), v.value = !0;
|
|
4435
4437
|
}), kl(() => {
|
|
4436
4438
|
v.value = !1;
|
|
4437
4439
|
}), We("busEmits", y), We("tableRef", d), We("tableState", w), We("downloadModal", c), a({ tableRef: d }), (_, V) => {
|
|
4438
|
-
const
|
|
4439
|
-
return
|
|
4440
|
+
const $ = So;
|
|
4441
|
+
return M(m) ? (oe(), Ke("div", Vo, [
|
|
4440
4442
|
g(Vn, null, {
|
|
4441
4443
|
default: Ce(() => [
|
|
4442
|
-
|
|
4444
|
+
M(U) ? (oe(), ye(ul, { key: 0 }, {
|
|
4443
4445
|
default: Ce(() => [
|
|
4444
|
-
(oe(), ye(
|
|
4445
|
-
key:
|
|
4446
|
-
"responsive-header":
|
|
4446
|
+
(oe(), ye($, {
|
|
4447
|
+
key: M(B) ? "responsive" : "full",
|
|
4448
|
+
"responsive-header": M(B)
|
|
4447
4449
|
}, null, 8, ["responsive-header"]))
|
|
4448
4450
|
]),
|
|
4449
4451
|
_: 1
|
|
4450
4452
|
})) : Me("", !0),
|
|
4451
4453
|
g(sl, { class: "pa-0" }, {
|
|
4452
4454
|
default: Ce(() => [
|
|
4453
|
-
|
|
4455
|
+
M(v) ? (oe(), ye($e(M(o).api ? M(l) : M(n)), {
|
|
4454
4456
|
ref_key: "tableRef",
|
|
4455
4457
|
ref: d,
|
|
4456
|
-
key:
|
|
4458
|
+
key: M(o).api ? "server" : "client",
|
|
4457
4459
|
modelValue: i.value,
|
|
4458
4460
|
"onUpdate:modelValue": V[0] || (V[0] = (D) => i.value = D)
|
|
4459
4461
|
}, null, 8, ["modelValue"])) : Me("", !0)
|
|
@@ -4464,7 +4466,7 @@ const xn = la(() => {
|
|
|
4464
4466
|
_: 1
|
|
4465
4467
|
}),
|
|
4466
4468
|
g(Sn, {
|
|
4467
|
-
modelValue:
|
|
4469
|
+
modelValue: M(c),
|
|
4468
4470
|
"onUpdate:modelValue": V[1] || (V[1] = (D) => xt(c) ? c.value = D : null),
|
|
4469
4471
|
"max-width": "350",
|
|
4470
4472
|
persistent: ""
|
|
@@ -4478,7 +4480,7 @@ const xn = la(() => {
|
|
|
4478
4480
|
}, {
|
|
4479
4481
|
default: Ce(() => [
|
|
4480
4482
|
g(vt, {
|
|
4481
|
-
"prepend-icon":
|
|
4483
|
+
"prepend-icon": M(r).header.icons.download,
|
|
4482
4484
|
title: _.$t("$datatables.preparing_download_file")
|
|
4483
4485
|
}, {
|
|
4484
4486
|
prepend: Ce(() => [
|
|
@@ -4509,7 +4511,7 @@ const xn = la(() => {
|
|
|
4509
4511
|
};
|
|
4510
4512
|
}
|
|
4511
4513
|
}), wo = Vl("datatablesHooks", () => {
|
|
4512
|
-
const e =
|
|
4514
|
+
const e = j({});
|
|
4513
4515
|
return {
|
|
4514
4516
|
hooks: e,
|
|
4515
4517
|
registerHook: (n, l) => {
|
|
@@ -4566,7 +4568,7 @@ const xn = la(() => {
|
|
|
4566
4568
|
},
|
|
4567
4569
|
emits: ["refreshTable", "refetchData"],
|
|
4568
4570
|
setup(e, { expose: a, emit: t }) {
|
|
4569
|
-
const n = e, { triggerHook: l } = wo(), { storeOptions: u, setUserOptions: s } = xn(), i = Xl("advancedFilters"), o = Cl("table"), r =
|
|
4571
|
+
const n = e, { triggerHook: l } = wo(), { storeOptions: u, setUserOptions: s } = xn(), i = Xl("advancedFilters"), o = Cl("table"), r = j(0), d = async (y = {}) => {
|
|
4570
4572
|
s(y), r.value < 99 && (v("refreshTable"), await ke(), r.value++);
|
|
4571
4573
|
}, c = async (y = {}) => {
|
|
4572
4574
|
await ke(), !(!o.value || !o.value?.tableRef) && (s(y), "reloadItems" in o.value.tableRef && (o.value.tableRef.reloadItems(u.state.value), v("refetchData")));
|
|
@@ -4579,7 +4581,7 @@ const xn = la(() => {
|
|
|
4579
4581
|
id: e.id,
|
|
4580
4582
|
ref_key: "table",
|
|
4581
4583
|
ref: o,
|
|
4582
|
-
key: `${e.id}-${
|
|
4584
|
+
key: `${e.id}-${M(r)}`,
|
|
4583
4585
|
onRefreshTable: d,
|
|
4584
4586
|
onRefetchData: c
|
|
4585
4587
|
}, null, 8, ["id"]);
|