@ianicdev/datatables2 0.13.1 → 0.13.2
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-5mmMEz2U.cjs} +1 -1
- package/dist/{Comparison-ClV-Y6zD.js → Comparison-CjJmKbUI.js} +1 -1
- package/dist/{Datepicker-Bg_2UpWO.js → Datepicker-B0nM8Hwn.js} +2 -2
- package/dist/{Datepicker-BNZwF6pJ.cjs → Datepicker-nokf6x-X.cjs} +1 -1
- package/dist/{Options-iTd26TLq.js → Options-Bj_HI8lq.js} +3 -3
- package/dist/{Options-BTKDHsLo.cjs → Options-CFuTd6RH.cjs} +1 -1
- package/dist/{RefreshTable-CX-obTqR.cjs → RefreshTable-CP3TtAhj.cjs} +1 -1
- package/dist/{RefreshTable-DRWO4mC8.js → RefreshTable-DGaEfdXL.js} +1 -1
- package/dist/{Search-Cp0yrKdI.js → Search-CHZzma0w.js} +2 -2
- package/dist/{Search-D5tE7xgg.cjs → Search-QHvBXpiL.cjs} +1 -1
- package/dist/{Table-DqI3UZlh.cjs → Table-DlA37K_x.cjs} +1 -1
- package/dist/{Table-BLwUrk4W.js → Table-GSeivIYB.js} +3 -3
- package/dist/{TableServer-COwfMyyt.js → TableServer-B4xTmowi.js} +3 -3
- package/dist/{TableServer-BfMKkbvl.cjs → TableServer-BpqTvgRv.cjs} +1 -1
- package/dist/{cellRender-Da8qBdLb.js → cellRender-CELfjePX.js} +2 -2
- package/dist/{cellRender-C5onTgxP.cjs → cellRender-CH-xXPkU.cjs} +1 -1
- package/dist/{dataTables-Btp6KEgl.cjs → dataTables-D0-m93bp.cjs} +1 -1
- package/dist/{dataTables-DhfPIkYc.js → dataTables-DRImfSOv.js} +1 -1
- package/dist/datatables.cjs +1 -1
- package/dist/datatables.js +1 -1
- package/dist/{index-BB2n2yz0.cjs → index-B0PH010H.cjs} +1 -1
- package/dist/{index-DqhqpIKX.js → index-BgTLLLRJ.js} +468 -467
- package/dist/{index-FryEY3Et.js → index-C1YF3-B4.js} +2 -2
- package/dist/{index-CQZZydTl.js → index-CgIh2BvP.js} +1 -1
- package/dist/{index-eBj5Qtr0.cjs → index-CwAZ9-MC.cjs} +1 -1
- package/dist/{index-CJJTJLNz.cjs → index-DSddKSzj.cjs} +1 -1
- package/dist/{index-CKM0UqXO.cjs → index-D_erx3R7.cjs} +1 -1
- package/dist/{index-lDtSiB_e.js → index-DflXGVoK.js} +2 -2
- package/dist/{useColumns-IaxoDnvH.js → useColumns-0KwhIKoh.js} +2 -2
- package/dist/{useColumns-ClAwCK9C.cjs → useColumns-vtOcqRK0.cjs} +1 -1
- package/package.json +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { ref as
|
|
1
|
+
import { ref as G, inject as Pe, computed as I, toRef as E, shallowRef as te, 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 $, 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-DRImfSOv.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 = G([]), a = ({ table_id: i }) => {
|
|
8
8
|
const o = e.value.findIndex((d) => d.id === i), r = {
|
|
9
9
|
search: {
|
|
10
10
|
query: ""
|
|
@@ -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
|
}),
|
|
@@ -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 = te(!1), o = te(0), r = te(0), d = te(0), c = I(() => e.direction === "horizontal"), {
|
|
246
246
|
resizeRef: m,
|
|
247
247
|
contentRect: v
|
|
248
248
|
} = It(), {
|
|
@@ -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
|
-
const F =
|
|
272
|
-
function
|
|
271
|
+
const F = te(!1);
|
|
272
|
+
function B(k, f) {
|
|
273
273
|
let A = 0;
|
|
274
274
|
f ? A = da({
|
|
275
275
|
containerElement: m.el,
|
|
@@ -309,25 +309,25 @@ 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
|
}
|
|
316
316
|
}
|
|
317
|
-
function
|
|
317
|
+
function M(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 K(k) {
|
|
322
|
+
!D && !F.value && !(k.relatedTarget && y.el?.contains(k.relatedTarget)) && j(), D = !1;
|
|
323
323
|
}
|
|
324
|
-
function
|
|
324
|
+
function Q() {
|
|
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(), j(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 j(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 j("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 j("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
|
|
@@ -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;
|
|
@@ -406,15 +406,15 @@ 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: K
|
|
410
410
|
}, {
|
|
411
411
|
default: () => [fe.value && b("div", {
|
|
412
412
|
key: "prev",
|
|
413
413
|
class: re(["v-slide-group__prev", {
|
|
414
|
-
"v-slide-group__prev--disabled": !
|
|
414
|
+
"v-slide-group__prev--disabled": !R.value
|
|
415
415
|
}]),
|
|
416
|
-
onMousedown:
|
|
417
|
-
onClick: () =>
|
|
416
|
+
onMousedown: Q,
|
|
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
|
|
@@ -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: M,
|
|
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: Q,
|
|
439
439
|
onClick: () => O.value && ue("next")
|
|
440
440
|
}, [t.next?.(q.value) ?? g(rl, null, {
|
|
441
441
|
default: () => [g(Se, {
|
|
@@ -446,8 +446,8 @@ 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:
|
|
450
|
-
hasPrev:
|
|
449
|
+
focus: j,
|
|
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
|
|
@@ -630,16 +630,16 @@ 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, M = !!(e.appendIcon || e.appendAvatar), D = !!(M || l.append), K = !!(l.close || e.closable), Q = !!(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": Q,
|
|
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,
|
|
@@ -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"), Q && 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: !M,
|
|
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)])]), K && b("button", L({
|
|
726
726
|
key: "close",
|
|
727
727
|
class: "v-chip__close",
|
|
728
728
|
type: "button",
|
|
@@ -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($(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 =
|
|
1005
|
+
} = ka(e), v = Xe(), y = te(!1), h = te(!1), p = G(), 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(_) {
|
|
@@ -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, M] = 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
|
+
}, M), null);
|
|
1046
1046
|
return b("div", L({
|
|
1047
1047
|
class: ["v-selection-control", {
|
|
1048
1048
|
"v-selection-control--dirty": i.value,
|
|
@@ -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: {
|
|
@@ -1278,23 +1278,23 @@ 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 = G([]), o = te(!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
|
-
}), 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 = te(!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 ?? $(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), M = E(() => !e.hideDetails || e.hideDetails === "auto" && (V.value || !!n.details)), D = I(() => M.value ? `${c.value}-messages` : void 0), K = 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: M,
|
|
1443
1443
|
reset: C,
|
|
1444
1444
|
resetValidation: F,
|
|
1445
|
-
validate:
|
|
1446
|
-
})),
|
|
1445
|
+
validate: B
|
|
1446
|
+
})), Q = 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 ? Q.value : e.iconColor;
|
|
1449
1449
|
});
|
|
1450
1450
|
return de(() => {
|
|
1451
|
-
const W = !!(n.prepend || e.prependIcon),
|
|
1451
|
+
const W = !!(n.prepend || e.prependIcon), j = !!(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(K.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?.(K.value)]), j && b("div", {
|
|
1470
1470
|
key: "append",
|
|
1471
1471
|
class: "v-input__append"
|
|
1472
|
-
}, [n.append ? n.append(
|
|
1472
|
+
}, [n.append ? n.append(K.value) : e.appendIcon && g(r, {
|
|
1473
1473
|
key: "append-icon",
|
|
1474
1474
|
name: "append",
|
|
1475
1475
|
color: H.value
|
|
1476
|
-
}, null)]),
|
|
1476
|
+
}, null)]), M.value && b("div", {
|
|
1477
1477
|
id: D.value,
|
|
1478
1478
|
class: "v-input__details",
|
|
1479
1479
|
role: "alert",
|
|
@@ -1483,11 +1483,11 @@ const cn = X({
|
|
|
1483
1483
|
messages: _.value
|
|
1484
1484
|
}, {
|
|
1485
1485
|
message: n.message
|
|
1486
|
-
}), n.details?.(
|
|
1486
|
+
}), n.details?.(K.value)])]);
|
|
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,24 +1623,24 @@ 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 = G(), B = G(), U = G(), _ = I(() => ["plain", "underlined"].includes(e.variant)), V = I(() => e.error || e.disabled ? void 0 : y.value && o.value ? e.color : e.baseColor), M = 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: K
|
|
1632
1632
|
} = Tt(() => e.bgColor), {
|
|
1633
|
-
textColorClasses:
|
|
1633
|
+
textColorClasses: Q,
|
|
1634
1634
|
textColorStyles: H
|
|
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
|
}
|
|
@@ -1660,16 +1660,16 @@ const cn = X({
|
|
|
1660
1660
|
isActive: y,
|
|
1661
1661
|
isFocused: o,
|
|
1662
1662
|
controlRef: U,
|
|
1663
|
-
iconColor:
|
|
1663
|
+
iconColor: M,
|
|
1664
1664
|
blur: d,
|
|
1665
1665
|
focus: r
|
|
1666
|
-
})),
|
|
1666
|
+
})), j = 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: {
|
|
@@ -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: [K.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: M.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
|
-
ref:
|
|
1731
|
-
class: [
|
|
1730
|
+
ref: B,
|
|
1731
|
+
class: [Q.value],
|
|
1732
1732
|
floating: !0
|
|
1733
|
-
},
|
|
1733
|
+
}, j.value, {
|
|
1734
1734
|
style: H.value
|
|
1735
1735
|
}), {
|
|
1736
1736
|
default: () => [k()]
|
|
@@ -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", {
|
|
@@ -1789,40 +1789,40 @@ 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: M.value
|
|
1793
1793
|
}, null)]), b("div", {
|
|
1794
|
-
class: re(["v-field__outline",
|
|
1794
|
+
class: re(["v-field__outline", Q.value]),
|
|
1795
1795
|
style: xe(H.value)
|
|
1796
1796
|
}, [z && b(ce, null, [b("div", {
|
|
1797
1797
|
class: "v-field__outline__start"
|
|
1798
1798
|
}, null), p.value && b("div", {
|
|
1799
1799
|
class: "v-field__outline__notch"
|
|
1800
1800
|
}, [g(Ct, L({
|
|
1801
|
-
ref:
|
|
1801
|
+
ref: B,
|
|
1802
1802
|
floating: !0
|
|
1803
|
-
},
|
|
1803
|
+
}, j.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
|
+
}, j.value), {
|
|
1811
1811
|
default: () => [k()]
|
|
1812
1812
|
})])]);
|
|
1813
1813
|
}), {
|
|
1814
1814
|
controlRef: U,
|
|
1815
|
-
fieldIconColor:
|
|
1815
|
+
fieldIconColor: M
|
|
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 = te(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,
|
|
@@ -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 = G(), y = G(), h = G(), 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();
|
|
@@ -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
|
});
|
|
@@ -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 M = V.value, D = V.selectionStart, K = V.selectionEnd;
|
|
1914
|
+
u.value = M, ke(() => {
|
|
1915
|
+
let Q = 0;
|
|
1916
|
+
M.trimStart().length === V.value.length && (Q = M.length - V.value.length), D != null && (V.selectionStart = D - Q), K != null && (V.selectionEnd = K - Q);
|
|
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), [M, D] = Ol(t), {
|
|
1921
|
+
modelValue: K,
|
|
1922
|
+
...Q
|
|
1923
1923
|
} = hl.filterProps(e), H = bl.filterProps(e);
|
|
1924
1924
|
return g(hl, L({
|
|
1925
1925
|
ref: v,
|
|
@@ -1931,35 +1931,35 @@ 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
|
+
}, M, Q, {
|
|
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: j,
|
|
1942
1942
|
isDisabled: ue,
|
|
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
|
-
id:
|
|
1957
|
-
labelId: `${
|
|
1956
|
+
id: j.value,
|
|
1957
|
+
labelId: `${j.value}-label`,
|
|
1958
1958
|
active: w.value || q.value,
|
|
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,
|
|
@@ -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": `${j.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: j
|
|
2000
2000
|
}), ve]) : _n(ve, {
|
|
2001
2001
|
class: f
|
|
2002
2002
|
}), [[dl, r, null, {
|
|
@@ -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,
|
|
@@ -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 = te(0);
|
|
2064
2064
|
zt(() => {
|
|
2065
2065
|
n.value = parseFloat(e.itemHeight || 0);
|
|
2066
2066
|
});
|
|
2067
|
-
const l =
|
|
2067
|
+
const l = te(0), u = te(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 = te(0), i = te(0), o = G(), r = G();
|
|
2074
2074
|
let d = 0;
|
|
2075
2075
|
const {
|
|
2076
2076
|
resizeRef: c,
|
|
@@ -2085,20 +2085,20 @@ function Ha(e, a) {
|
|
|
2085
2085
|
}), p = Array.from({
|
|
2086
2086
|
length: a.value.length
|
|
2087
2087
|
});
|
|
2088
|
-
const w =
|
|
2088
|
+
const w = te(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,40 +2107,40 @@ 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
|
-
let
|
|
2123
|
-
se(v, (
|
|
2124
|
-
ue(),
|
|
2122
|
+
let M = 0, D = 0, K = 0;
|
|
2123
|
+
se(v, (R, O) => {
|
|
2124
|
+
ue(), R < O && requestAnimationFrame(() => {
|
|
2125
2125
|
D = 0, ue();
|
|
2126
2126
|
});
|
|
2127
2127
|
});
|
|
2128
|
-
let
|
|
2128
|
+
let Q = -1;
|
|
2129
2129
|
function H() {
|
|
2130
2130
|
if (!o.value || !r.value) return;
|
|
2131
|
-
const
|
|
2132
|
-
O -
|
|
2131
|
+
const R = o.value.scrollTop, O = performance.now();
|
|
2132
|
+
O - K > 500 ? (D = Math.sign(R - M), d = r.value.offsetTop) : D = R - M, M = R, K = O, window.clearTimeout(Q), Q = 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, K = 0, window.clearTimeout(Q), ue());
|
|
2136
2136
|
}
|
|
2137
|
-
let
|
|
2137
|
+
let j = -1;
|
|
2138
2138
|
function ue() {
|
|
2139
|
-
cancelAnimationFrame(
|
|
2139
|
+
cancelAnimationFrame(j), j = requestAnimationFrame(q);
|
|
2140
2140
|
}
|
|
2141
2141
|
function q() {
|
|
2142
2142
|
if (!o.value || !v.value || !n.value) return;
|
|
2143
|
-
const
|
|
2143
|
+
const R = M - 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";
|
|
@@ -2282,7 +2282,7 @@ const Ua = X({
|
|
|
2282
2282
|
}
|
|
2283
2283
|
});
|
|
2284
2284
|
function mn(e, a) {
|
|
2285
|
-
const t =
|
|
2285
|
+
const t = te(!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 = te([]), u = te(/* @__PURE__ */ new Map()), s = I(() => n?.transform ? $(a).map((o) => [o, n.transform(o)]) : $(a));
|
|
2445
2445
|
zt(() => {
|
|
2446
|
-
const o = typeof t == "function" ? t() :
|
|
2446
|
+
const o = typeof t == "function" ? t() : $(t), r = typeof o != "string" && typeof o != "number" ? "" : String(o), d = ja(s.value, r, {
|
|
2447
2447
|
customKeyFilter: {
|
|
2448
2448
|
...e.customKeyFilter,
|
|
2449
|
-
|
|
2449
|
+
...$(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 = $(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: {
|
|
@@ -2560,7 +2560,7 @@ const kn = X({
|
|
|
2560
2560
|
} = a;
|
|
2561
2561
|
const {
|
|
2562
2562
|
t: n
|
|
2563
|
-
} = it(), l =
|
|
2563
|
+
} = it(), l = G(), u = G(), s = G(), i = G(), o = G(), {
|
|
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 Z = c(x);
|
|
2572
|
+
return e.multiple ? Z : Z[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 = te(!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, M;
|
|
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((Z) => !h.value.some((le) => (e.valueComparator || qe)(le, Z))) : x;
|
|
2580
|
+
}), K = I(() => e.hideNoData && !D.value.length || w.isReadonly.value || w.isDisabled.value), Q = Ve(e, "menu"), H = I({
|
|
2581
|
+
get: () => Q.value,
|
|
2582
2582
|
set: (x) => {
|
|
2583
|
-
|
|
2583
|
+
Q.value && !x && u.value?.ΨopenChildren.size || x && K.value || (Q.value = x);
|
|
2584
2584
|
}
|
|
2585
2585
|
}), {
|
|
2586
2586
|
menuId: W,
|
|
2587
|
-
ariaExpanded:
|
|
2587
|
+
ariaExpanded: j,
|
|
2588
2588
|
ariaControls: ue
|
|
2589
2589
|
} = pn(e, H), q = I(() => ({
|
|
2590
2590
|
...e.menuProps,
|
|
@@ -2593,8 +2593,8 @@ const kn = X({
|
|
|
2593
2593
|
"aria-haspopup": "listbox"
|
|
2594
2594
|
// Set aria-haspopup to 'listbox'
|
|
2595
2595
|
}
|
|
2596
|
-
})), z =
|
|
2597
|
-
onTabKeydown:
|
|
2596
|
+
})), z = G(), fe = mn(z, l), {
|
|
2597
|
+
onTabKeydown: R
|
|
2598
2598
|
} = gn({
|
|
2599
2599
|
groups: [{
|
|
2600
2600
|
type: "element",
|
|
@@ -2615,10 +2615,10 @@ const kn = X({
|
|
|
2615
2615
|
e.openOnClear && (H.value = !0);
|
|
2616
2616
|
}
|
|
2617
2617
|
function k() {
|
|
2618
|
-
|
|
2618
|
+
K.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;
|
|
@@ -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 Z = 1e3;
|
|
2631
2631
|
if (!wt(x)) return;
|
|
2632
|
-
const
|
|
2633
|
-
|
|
2632
|
+
const le = performance.now();
|
|
2633
|
+
le - M > Z && (_ = "", V = 0), _ += x.key.toLowerCase(), M = le;
|
|
2634
2634
|
const Be = D.value;
|
|
2635
2635
|
function _e() {
|
|
2636
2636
|
let T = we();
|
|
@@ -2638,52 +2638,52 @@ 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 ne = Be[T];
|
|
2642
|
+
if (ne.title.toLowerCase().startsWith(_))
|
|
2643
|
+
return [ne, T];
|
|
2644
2644
|
}
|
|
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
|
-
let
|
|
2652
|
+
let Z = 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 le = h.value.findIndex((_e) => (e.valueComparator || qe)(_e.value, x.value)), Be = Z ?? !~le;
|
|
2656
|
+
if (~le) {
|
|
2657
2657
|
const _e = Be ? [...h.value, x] : [...h.value];
|
|
2658
|
-
_e.splice(
|
|
2658
|
+
_e.splice(le, 1), h.value = _e;
|
|
2659
2659
|
} else Be && (h.value = [...h.value, x]);
|
|
2660
2660
|
} else {
|
|
2661
|
-
const
|
|
2662
|
-
h.value =
|
|
2661
|
+
const le = Z !== !1;
|
|
2662
|
+
h.value = le ? [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 Z = x.target;
|
|
2669
|
+
l.value?.$el.contains(Z) || (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((Z) => (e.valueComparator || qe)(Z.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
|
-
let
|
|
2678
|
-
for (const
|
|
2679
|
-
if (h.value.some((_e) => x(_e.value,
|
|
2680
|
-
|
|
2677
|
+
let Z = 0;
|
|
2678
|
+
for (const le of D.value) {
|
|
2679
|
+
if (h.value.some((_e) => x(_e.value, le.value))) return le.props.disabled ? -1 : Z;
|
|
2680
|
+
le.props.disabled || Z++;
|
|
2681
2681
|
}
|
|
2682
2682
|
return -1;
|
|
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
|
}
|
|
@@ -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 Z = r.value.find((le) => le.title === x);
|
|
2703
|
+
Z && J(Z);
|
|
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, Z) => {
|
|
2714
|
+
H.value || F.value && e.hideNoData && !Z.length && x.length && (H.value = !0);
|
|
2715
2715
|
}), de(() => {
|
|
2716
|
-
const x = !!(e.chips || t.chip),
|
|
2716
|
+
const x = !!(e.chips || t.chip), Z = !!(!e.hideNoData || D.value.length || t["prepend-item"] || t["append-item"] || t["no-data"]), le = h.value.length > 0, Be = Je.filterProps(e), _e = le || !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: le,
|
|
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": j.value,
|
|
2746
2746
|
"aria-controls": ue.value
|
|
2747
2747
|
}), {
|
|
2748
2748
|
...t,
|
|
@@ -2754,18 +2754,18 @@ 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
|
-
disabled:
|
|
2768
|
+
disabled: K.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)]), Z && g(al, L({
|
|
2785
2785
|
key: "select-list",
|
|
2786
2786
|
ref: z,
|
|
2787
2787
|
selected: C.value,
|
|
@@ -2802,34 +2802,34 @@ 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
|
-
index:
|
|
2808
|
+
index: ne,
|
|
2809
2809
|
itemRef: Re
|
|
2810
|
-
} =
|
|
2811
|
-
const ae = Un(T.props),
|
|
2810
|
+
} = N;
|
|
2811
|
+
const ae = Un(T.props), ee = L(T.props, {
|
|
2812
2812
|
ref: Re,
|
|
2813
2813
|
key: T.value,
|
|
2814
2814
|
onClick: () => J(T, null),
|
|
2815
|
-
"aria-posinset":
|
|
2815
|
+
"aria-posinset": ne + 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: ne
|
|
2821
2821
|
}) ?? g(ze, L(T.props, {
|
|
2822
|
-
key: `divider-${
|
|
2822
|
+
key: `divider-${ne}`
|
|
2823
2823
|
}), null) : T.type === "subheader" ? t.subheader?.({
|
|
2824
2824
|
props: T.raw,
|
|
2825
|
-
index:
|
|
2825
|
+
index: ne
|
|
2826
2826
|
}) ?? g(Wl, L(T.props, {
|
|
2827
|
-
key: `subheader-${
|
|
2827
|
+
key: `subheader-${ne}`
|
|
2828
2828
|
}), null) : t.item?.({
|
|
2829
2829
|
item: T,
|
|
2830
|
-
index:
|
|
2831
|
-
props:
|
|
2832
|
-
}) ?? g(vt, L(
|
|
2830
|
+
index: ne,
|
|
2831
|
+
props: ee
|
|
2832
|
+
}) ?? g(vt, L(ee, {
|
|
2833
2833
|
role: "option"
|
|
2834
2834
|
}), {
|
|
2835
2835
|
prepend: (me) => {
|
|
@@ -2857,59 +2857,59 @@ const kn = X({
|
|
|
2857
2857
|
ref: i
|
|
2858
2858
|
}, [t["menu-footer"](we)])]
|
|
2859
2859
|
})]
|
|
2860
|
-
}), h.value.map((
|
|
2861
|
-
function
|
|
2862
|
-
me.stopPropagation(), me.preventDefault(), J(
|
|
2860
|
+
}), h.value.map((N, T) => {
|
|
2861
|
+
function ne(me) {
|
|
2862
|
+
me.stopPropagation(), me.preventDefault(), J(N, !1);
|
|
2863
2863
|
}
|
|
2864
|
-
const Re = L(mt.filterProps(
|
|
2865
|
-
"onClick:close":
|
|
2864
|
+
const Re = L(mt.filterProps(N.props), {
|
|
2865
|
+
"onClick:close": ne,
|
|
2866
2866
|
onKeydown(me) {
|
|
2867
|
-
me.key !== "Enter" && me.key !== " " || (me.preventDefault(), me.stopPropagation(),
|
|
2867
|
+
me.key !== "Enter" && me.key !== " " || (me.preventDefault(), me.stopPropagation(), ne(me));
|
|
2868
2868
|
},
|
|
2869
2869
|
onMousedown(me) {
|
|
2870
2870
|
me.preventDefault(), me.stopPropagation();
|
|
2871
2871
|
},
|
|
2872
2872
|
modelValue: !0,
|
|
2873
2873
|
"onUpdate:modelValue": void 0
|
|
2874
|
-
}), ae = x ? !!t.chip : !!t.selection,
|
|
2875
|
-
item:
|
|
2874
|
+
}), ae = x ? !!t.chip : !!t.selection, ee = ae ? ql(x ? t.chip({
|
|
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
|
-
if (!(ae && !
|
|
2882
|
+
if (!(ae && !ee))
|
|
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
|
-
default: () => [
|
|
2896
|
+
default: () => [ee]
|
|
2897
2897
|
}) : g(mt, L({
|
|
2898
2898
|
key: "chip",
|
|
2899
|
-
closable:
|
|
2899
|
+
closable: B.value,
|
|
2900
2900
|
size: "small",
|
|
2901
|
-
text:
|
|
2902
|
-
disabled:
|
|
2903
|
-
}, Re), null) :
|
|
2901
|
+
text: N.title,
|
|
2902
|
+
disabled: N.props.disabled
|
|
2903
|
+
}, Re), null) : ee ?? 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,
|
|
@@ -2959,7 +2959,7 @@ const kn = X({
|
|
|
2959
2959
|
} = a;
|
|
2960
2960
|
const {
|
|
2961
2961
|
t: n
|
|
2962
|
-
} = it(), l =
|
|
2962
|
+
} = it(), l = G(), u = te(!1), s = te(!0), i = te(!1), o = G(), r = G(), d = te(-1), c = te(null), {
|
|
2963
2963
|
items: m,
|
|
2964
2964
|
transformIn: v,
|
|
2965
2965
|
transformOut: y
|
|
@@ -2971,19 +2971,19 @@ 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), M = E(() => e.closableChips && !B.isReadonly.value && !B.isDisabled.value), D = I(() => !!(e.chips || t.chip)), K = I(() => D.value || !!t.selection), Q = 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), j = 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 && j.value || (ue.value = S);
|
|
2981
2981
|
}
|
|
2982
2982
|
}), {
|
|
2983
2983
|
menuId: z,
|
|
2984
2984
|
ariaExpanded: fe,
|
|
2985
|
-
ariaControls:
|
|
2986
|
-
} = pn(e, q), O =
|
|
2985
|
+
ariaControls: R
|
|
2986
|
+
} = pn(e, q), O = G(), k = G(), f = G(), A = mn(O, l), {
|
|
2987
2987
|
onTabKeydown: J
|
|
2988
2988
|
} = gn({
|
|
2989
2989
|
groups: [{
|
|
@@ -3005,40 +3005,40 @@ const kn = X({
|
|
|
3005
3005
|
e.openOnClear && (q.value = !0), P.value = "";
|
|
3006
3006
|
}
|
|
3007
3007
|
function ge() {
|
|
3008
|
-
|
|
3008
|
+
j.value || (q.value = !0);
|
|
3009
3009
|
}
|
|
3010
|
-
function
|
|
3011
|
-
|
|
3010
|
+
function pe(S) {
|
|
3011
|
+
j.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
|
-
value:
|
|
3021
|
+
value: ne
|
|
3022
3022
|
} = T;
|
|
3023
|
-
return
|
|
3023
|
+
return ne === 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 && K.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;
|
|
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 {
|
|
3040
|
-
const
|
|
3041
|
-
d.value = -1, l.value?.setSelectionRange(
|
|
3040
|
+
const ne = P.value?.length ?? null;
|
|
3041
|
+
d.value = -1, l.value?.setSelectionRange(ne, ne);
|
|
3042
3042
|
}
|
|
3043
3043
|
} else if (S.key === "ArrowRight") {
|
|
3044
3044
|
if (d.value < 0) return;
|
|
@@ -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
|
}
|
|
@@ -3063,40 +3063,40 @@ const kn = X({
|
|
|
3063
3063
|
i.value = !0;
|
|
3064
3064
|
});
|
|
3065
3065
|
}
|
|
3066
|
-
function
|
|
3066
|
+
function Z(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 le(S) {
|
|
3070
|
+
(S == null || S === "" && !e.multiple && !K.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 = te(!1);
|
|
3076
3076
|
function we(S) {
|
|
3077
3077
|
let Y = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;
|
|
3078
3078
|
if (!(!S || S.props.disabled))
|
|
3079
3079
|
if (e.multiple) {
|
|
3080
|
-
const
|
|
3081
|
-
if (~
|
|
3082
|
-
const
|
|
3083
|
-
|
|
3080
|
+
const N = C.value.findIndex((ne) => (e.valueComparator || qe)(ne.value, S.value)), T = Y ?? !~N;
|
|
3081
|
+
if (~N) {
|
|
3082
|
+
const ne = T ? [...C.value, S] : [...C.value];
|
|
3083
|
+
ne.splice(N, 1), C.value = ne;
|
|
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 && !K.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 || K.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) => {
|
|
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,17 +3105,17 @@ 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
|
-
"onUpdate:modelValue": [(
|
|
3116
|
+
"onUpdate:modelValue": [(ne) => P.value = ne, le],
|
|
3117
3117
|
focused: u.value,
|
|
3118
|
-
"onUpdate:focused": (
|
|
3118
|
+
"onUpdate:focused": (ne) => u.value = ne,
|
|
3119
3119
|
validationValue: C.externalValue,
|
|
3120
3120
|
counterValue: F.value,
|
|
3121
3121
|
dirty: Y,
|
|
@@ -3123,24 +3123,24 @@ 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": !!K.value,
|
|
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
|
-
default: (
|
|
3140
|
+
default: (ne) => {
|
|
3141
3141
|
let {
|
|
3142
3142
|
id: Re
|
|
3143
|
-
} =
|
|
3143
|
+
} = ne;
|
|
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: j.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: Q.value,
|
|
3170
3170
|
selectStrategy: e.multiple ? "independent" : "single-independent",
|
|
3171
3171
|
onMousedown: (ae) => ae.preventDefault(),
|
|
3172
|
-
onFocusout:
|
|
3172
|
+
onFocusout: Z,
|
|
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: ee,
|
|
3192
3192
|
index: me,
|
|
3193
3193
|
itemRef: Ze
|
|
3194
3194
|
} = ae;
|
|
3195
|
-
const Ge = L(
|
|
3195
|
+
const Ge = L(ee.props, {
|
|
3196
3196
|
ref: Ze,
|
|
3197
|
-
key:
|
|
3198
|
-
active: W.value &&
|
|
3199
|
-
onClick: () => we(
|
|
3197
|
+
key: ee.value,
|
|
3198
|
+
active: W.value && ee === H.value ? !0 : void 0,
|
|
3199
|
+
onClick: () => we(ee, null),
|
|
3200
3200
|
"aria-posinset": me + 1,
|
|
3201
3201
|
"aria-setsize": V.value.length
|
|
3202
3202
|
});
|
|
3203
|
-
return
|
|
3204
|
-
props:
|
|
3203
|
+
return ee.type === "divider" ? t.divider?.({
|
|
3204
|
+
props: ee.raw,
|
|
3205
3205
|
index: me
|
|
3206
|
-
}) ?? g(ze, L(
|
|
3206
|
+
}) ?? g(ze, L(ee.props, {
|
|
3207
3207
|
key: `divider-${me}`
|
|
3208
|
-
}), null) :
|
|
3209
|
-
props:
|
|
3208
|
+
}), null) : ee.type === "subheader" ? t.subheader?.({
|
|
3209
|
+
props: ee.raw,
|
|
3210
3210
|
index: me
|
|
3211
|
-
}) ?? g(Wl, L(
|
|
3211
|
+
}) ?? g(Wl, L(ee.props, {
|
|
3212
3212
|
key: `subheader-${me}`
|
|
3213
3213
|
}), null) : t.item?.({
|
|
3214
|
-
item:
|
|
3214
|
+
item: ee,
|
|
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: ee.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, ee.props.prependAvatar && g(nt, {
|
|
3232
|
+
image: ee.props.prependAvatar
|
|
3233
|
+
}, null), ee.props.prependIcon && g(Se, {
|
|
3234
|
+
icon: ee.props.prependIcon
|
|
3235
3235
|
}, null)]);
|
|
3236
3236
|
},
|
|
3237
|
-
title: () => s.value ?
|
|
3237
|
+
title: () => s.value ? ee.title : bn("v-autocomplete", ee.title, _(ee)?.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, ee) => {
|
|
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: ee,
|
|
3262
3262
|
props: Ze
|
|
3263
3263
|
}) : t.selection({
|
|
3264
3264
|
item: ae,
|
|
3265
|
-
index:
|
|
3265
|
+
index: ee
|
|
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", ee === d.value && ["v-autocomplete__selection--selected", h.value]]),
|
|
3271
|
+
style: xe(ee === 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: M.value,
|
|
3277
3277
|
size: "small",
|
|
3278
3278
|
text: ae.title
|
|
3279
3279
|
}
|
|
@@ -3282,25 +3282,25 @@ const kn = X({
|
|
|
3282
3282
|
default: () => [st]
|
|
3283
3283
|
}) : g(mt, L({
|
|
3284
3284
|
key: "chip",
|
|
3285
|
-
closable:
|
|
3285
|
+
closable: M.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 && ee < 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 ne = arguments.length, Re = new Array(ne), ae = 0; ae < ne; 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",
|
|
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
|
}),
|
|
@@ -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 = G();
|
|
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
|
|
@@ -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(),
|
|
@@ -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 = te(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,
|
|
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), M = !!(n.prepend || e.prependAvatar || e.prependIcon), D = !!(n.image || e.image), K = _ || M || V, Q = !!(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
|
+
}), K && 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
|
+
}), Q && 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 = G(), {
|
|
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: K
|
|
3855
|
+
}), s = $t(e), i = I(() => s.isDisabled.value || s.isReadonly.value), o = te(e.focused), {
|
|
3856
3856
|
decimalSeparator: r
|
|
3857
3857
|
} = it(), d = I(() => e.decimalSeparator?.[0] || r.value);
|
|
3858
3858
|
function c(f) {
|
|
@@ -3862,10 +3862,10 @@ 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
|
-
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 = te(null), y = te(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
|
}, {
|
|
@@ -3885,19 +3885,19 @@ 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
|
-
onPointerup:
|
|
3891
|
+
onPointerup: j,
|
|
3892
3892
|
onPointerdown: ue,
|
|
3893
|
-
onPointercancel:
|
|
3893
|
+
onPointercancel: j
|
|
3894
3894
|
}
|
|
3895
|
-
},
|
|
3895
|
+
}, M = {
|
|
3896
3896
|
props: {
|
|
3897
3897
|
onClick: W,
|
|
3898
|
-
onPointerup:
|
|
3898
|
+
onPointerup: j,
|
|
3899
3899
|
onPointerdown: q,
|
|
3900
|
-
onPointercancel:
|
|
3900
|
+
onPointercancel: j
|
|
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 K() {
|
|
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,29 +3918,29 @@ 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 Q(f) {
|
|
3922
3922
|
if (i.value || !f.data) return;
|
|
3923
3923
|
const A = f.target, {
|
|
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) {
|
|
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" ? K(!1) : K());
|
|
3939
3939
|
}
|
|
3940
3940
|
function W(f) {
|
|
3941
3941
|
f.stopPropagation();
|
|
3942
3942
|
}
|
|
3943
|
-
function
|
|
3943
|
+
function j(f) {
|
|
3944
3944
|
f.currentTarget?.releasePointerCapture(f.pointerId), f.preventDefault(), u();
|
|
3945
3945
|
}
|
|
3946
3946
|
function ue(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();
|
|
@@ -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: j,
|
|
4005
|
+
onPointercancel: j,
|
|
4006
4006
|
size: U.value,
|
|
4007
4007
|
variant: "text",
|
|
4008
4008
|
tabindex: "-1"
|
|
@@ -4016,29 +4016,29 @@ 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
|
}
|
|
4023
4023
|
}, {
|
|
4024
|
-
default: () => [t.decrement(
|
|
4024
|
+
default: () => [t.decrement(M)]
|
|
4025
4025
|
}) : g(tt, {
|
|
4026
4026
|
"aria-hidden": "true",
|
|
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,
|
|
4034
|
-
onPointerup:
|
|
4035
|
-
onPointercancel:
|
|
4034
|
+
onPointerup: j,
|
|
4035
|
+
onPointercancel: j,
|
|
4036
4036
|
size: U.value,
|
|
4037
4037
|
variant: "text",
|
|
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, {
|
|
@@ -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: Q,
|
|
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, Z = new Array(x), le = 0; le < x; le++)
|
|
4089
|
+
Z[le] = arguments[le];
|
|
4090
|
+
return b(ce, null, [t["append-inner"]?.(...Z), 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, Z = new Array(x), le = 0; le < x; le++)
|
|
4094
|
+
Z[le] = arguments[le];
|
|
4095
|
+
return b(ce, null, [Qe, t["prepend-inner"]?.(...Z)]);
|
|
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-B0nM8Hwn.js")
|
|
4114
4114
|
),
|
|
4115
4115
|
comparison: Ee(
|
|
4116
|
-
() => import("./Comparison-
|
|
4116
|
+
() => import("./Comparison-CjJmKbUI.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: $(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($(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,
|
|
@@ -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 = G({}), 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: $(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($(l)).length ? (oe(), ye(h, {
|
|
4262
4262
|
key: 0,
|
|
4263
|
-
modelValue:
|
|
4263
|
+
modelValue: $(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 = G(!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($(a), (i, o) => (oe(), ye(tt, L({
|
|
4292
4292
|
key: o,
|
|
4293
4293
|
icon: "",
|
|
4294
4294
|
variant: "text",
|
|
4295
|
-
color:
|
|
4295
|
+
color: $(n) ? "primary" : "dark",
|
|
4296
4296
|
density: "comfortable"
|
|
4297
4297
|
}, { ref_for: !0 }, i), {
|
|
4298
4298
|
default: Ce(() => [
|
|
4299
|
-
|
|
4299
|
+
$(n) ? (oe(), ye(Ya, {
|
|
4300
4300
|
key: 0,
|
|
4301
4301
|
color: "primary",
|
|
4302
|
-
content:
|
|
4302
|
+
content: $(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: $(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-CHZzma0w.js")), t = Ee(() => import("./RefreshTable-DGaEfdXL.js")), n = Ee(() => import("./Options-Bj_HI8lq.js")), l = Ee(() => import("./index-DflXGVoK.js")), u = Ee(() => import("./index-C1YF3-B4.js")), s = Ee(() => import("./index-CgIh2BvP.js")), i = Pe("table_props"), o = G(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
|
+
$(i).hardFilters.length ? (oe(), ye($e($(r).hardFilters ?? $(l)), {
|
|
4339
4339
|
key: 1,
|
|
4340
4340
|
id: "header-hardFilters"
|
|
4341
4341
|
})) : Me("", !0),
|
|
4342
|
-
(oe(),
|
|
4342
|
+
(oe(), ye($e($(r).toolbar), { id: "header-toolbar" })),
|
|
4343
4343
|
b("div", ko, [
|
|
4344
|
-
(oe(),
|
|
4345
|
-
e.responsiveHeader ? Me("", !0) : (oe(),
|
|
4344
|
+
(oe(), ye($e($(r).search ?? $(a)), { id: "header-search" })),
|
|
4345
|
+
e.responsiveHeader ? Me("", !0) : (oe(), ye($e($(r).columns ?? $(u)), {
|
|
4346
4346
|
key: 0,
|
|
4347
|
-
"component-refs": { columns:
|
|
4347
|
+
"component-refs": { columns: $(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($(r).download ?? $(s)), { key: 1 })),
|
|
4350
|
+
e.responsiveHeader ? Me("", !0) : (oe(), ye($e($(r).refreshTable ?? $(t)), { key: 2 })),
|
|
4351
|
+
(oe(), ye($e($(r).options ?? $(n)), { "responsive-header": e.responsiveHeader }, null, 8, ["responsive-header"]))
|
|
4352
4352
|
])
|
|
4353
4353
|
]);
|
|
4354
4354
|
};
|
|
4355
4355
|
}
|
|
4356
4356
|
});
|
|
4357
4357
|
function Co(e) {
|
|
4358
|
-
const a = Rt(), { getCurrentTable: t, setTableHash: n, hashString: l } = a, u =
|
|
4358
|
+
const a = Rt(), { getCurrentTable: t, setTableHash: n, hashString: l } = a, u = G(!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 = te({}), a = te({});
|
|
4398
4398
|
return {
|
|
4399
4399
|
storeOptions: {
|
|
4400
4400
|
state: e,
|
|
@@ -4418,13 +4418,7 @@ 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-
|
|
4422
|
-
na(d, (_) => {
|
|
4423
|
-
if (!v.value) return;
|
|
4424
|
-
const V = _[0], { width: $ } = V.contentRect;
|
|
4425
|
-
E.value = $ < 950;
|
|
4426
|
-
});
|
|
4427
|
-
const U = I(() => {
|
|
4421
|
+
const n = Ee(() => import("./Table-GSeivIYB.js")), l = Ee(() => import("./TableServer-B4xTmowi.js")), { storeOptions: u } = xn(), { saveTableOptions: s } = Et(), i = Pt(e, "modelValue"), o = Pe("table_props"), r = Pe("datatablesPluginOptions"), d = Cl("tableRef"), c = G(!1), m = G(!1), v = G(!1), y = t, h = Rt(), { dataStateGet: p, tableDataState: w, checkTableState: P } = Co(o), { addTable: C, restoreData: F } = h, B = G(!1), U = I(() => {
|
|
4428
4422
|
const _ = o.options?.header;
|
|
4429
4423
|
return _ === void 0 || typeof _ == "object" && _ !== null;
|
|
4430
4424
|
});
|
|
@@ -4432,27 +4426,34 @@ const xn = la(() => {
|
|
|
4432
4426
|
C({ table_id: o.id }), await P();
|
|
4433
4427
|
const _ = p();
|
|
4434
4428
|
_ && F({ table_id: o.id, data: _ });
|
|
4435
|
-
const
|
|
4436
|
-
|
|
4429
|
+
const M = w.value.options.columns;
|
|
4430
|
+
M.sorted?.length || (M.selected?.length || (M.selected = o.headers.filter((D) => !D.hidden).map((D) => D.key)), M.sorted = o.headers.map((D) => D.key)), s(ea(u.state.value, w.value.options.state)), m.value = !0, await ke(), na(d, (D) => {
|
|
4431
|
+
if (!v.value) return;
|
|
4432
|
+
const K = D[0], { width: Q } = K.contentRect;
|
|
4433
|
+
B.value = Q < 950;
|
|
4434
|
+
}), v.value = !0;
|
|
4437
4435
|
}), kl(() => {
|
|
4438
4436
|
v.value = !1;
|
|
4439
4437
|
}), We("busEmits", y), We("tableRef", d), We("tableState", w), We("downloadModal", c), a({ tableRef: d }), (_, V) => {
|
|
4440
|
-
const
|
|
4441
|
-
return
|
|
4438
|
+
const M = So;
|
|
4439
|
+
return $(m) ? (oe(), Ke("div", Vo, [
|
|
4442
4440
|
g(Vn, null, {
|
|
4443
4441
|
default: Ce(() => [
|
|
4444
|
-
|
|
4442
|
+
$(U) ? (oe(), ye(ul, { key: 0 }, {
|
|
4445
4443
|
default: Ce(() => [
|
|
4446
|
-
|
|
4444
|
+
(oe(), ye(M, {
|
|
4445
|
+
key: $(B) ? "responsive" : "full",
|
|
4446
|
+
"responsive-header": $(B)
|
|
4447
|
+
}, null, 8, ["responsive-header"]))
|
|
4447
4448
|
]),
|
|
4448
4449
|
_: 1
|
|
4449
4450
|
})) : Me("", !0),
|
|
4450
4451
|
g(sl, { class: "pa-0" }, {
|
|
4451
4452
|
default: Ce(() => [
|
|
4452
|
-
|
|
4453
|
+
$(v) ? (oe(), ye($e($(o).api ? $(l) : $(n)), {
|
|
4453
4454
|
ref_key: "tableRef",
|
|
4454
4455
|
ref: d,
|
|
4455
|
-
key:
|
|
4456
|
+
key: $(o).api ? "server" : "client",
|
|
4456
4457
|
modelValue: i.value,
|
|
4457
4458
|
"onUpdate:modelValue": V[0] || (V[0] = (D) => i.value = D)
|
|
4458
4459
|
}, null, 8, ["modelValue"])) : Me("", !0)
|
|
@@ -4463,7 +4464,7 @@ const xn = la(() => {
|
|
|
4463
4464
|
_: 1
|
|
4464
4465
|
}),
|
|
4465
4466
|
g(Sn, {
|
|
4466
|
-
modelValue:
|
|
4467
|
+
modelValue: $(c),
|
|
4467
4468
|
"onUpdate:modelValue": V[1] || (V[1] = (D) => xt(c) ? c.value = D : null),
|
|
4468
4469
|
"max-width": "350",
|
|
4469
4470
|
persistent: ""
|
|
@@ -4477,7 +4478,7 @@ const xn = la(() => {
|
|
|
4477
4478
|
}, {
|
|
4478
4479
|
default: Ce(() => [
|
|
4479
4480
|
g(vt, {
|
|
4480
|
-
"prepend-icon":
|
|
4481
|
+
"prepend-icon": $(r).header.icons.download,
|
|
4481
4482
|
title: _.$t("$datatables.preparing_download_file")
|
|
4482
4483
|
}, {
|
|
4483
4484
|
prepend: Ce(() => [
|
|
@@ -4508,7 +4509,7 @@ const xn = la(() => {
|
|
|
4508
4509
|
};
|
|
4509
4510
|
}
|
|
4510
4511
|
}), wo = Vl("datatablesHooks", () => {
|
|
4511
|
-
const e =
|
|
4512
|
+
const e = G({});
|
|
4512
4513
|
return {
|
|
4513
4514
|
hooks: e,
|
|
4514
4515
|
registerHook: (n, l) => {
|
|
@@ -4565,7 +4566,7 @@ const xn = la(() => {
|
|
|
4565
4566
|
},
|
|
4566
4567
|
emits: ["refreshTable", "refetchData"],
|
|
4567
4568
|
setup(e, { expose: a, emit: t }) {
|
|
4568
|
-
const n = e, { triggerHook: l } = wo(), { storeOptions: u, setUserOptions: s } = xn(), i = Xl("advancedFilters"), o = Cl("table"), r =
|
|
4569
|
+
const n = e, { triggerHook: l } = wo(), { storeOptions: u, setUserOptions: s } = xn(), i = Xl("advancedFilters"), o = Cl("table"), r = G(0), d = async (y = {}) => {
|
|
4569
4570
|
s(y), r.value < 99 && (v("refreshTable"), await ke(), r.value++);
|
|
4570
4571
|
}, c = async (y = {}) => {
|
|
4571
4572
|
await ke(), !(!o.value || !o.value?.tableRef) && (s(y), "reloadItems" in o.value.tableRef && (o.value.tableRef.reloadItems(u.state.value), v("refetchData")));
|
|
@@ -4574,11 +4575,11 @@ const xn = la(() => {
|
|
|
4574
4575
|
}, v = t;
|
|
4575
4576
|
return We("table_props", n), We("triggerHook", l), a({ refreshTable: d, refetchData: c, triggerHook: l, updateAdvancedFilter: m }), (y, h) => {
|
|
4576
4577
|
const p = Io;
|
|
4577
|
-
return oe(),
|
|
4578
|
+
return oe(), ye(p, {
|
|
4578
4579
|
id: e.id,
|
|
4579
4580
|
ref_key: "table",
|
|
4580
4581
|
ref: o,
|
|
4581
|
-
key: `${e.id}-${
|
|
4582
|
+
key: `${e.id}-${$(r)}`,
|
|
4582
4583
|
onRefreshTable: d,
|
|
4583
4584
|
onRefetchData: c
|
|
4584
4585
|
}, null, 8, ["id"]);
|