@ianicdev/datatables2 0.8.16 → 0.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Columns-CXLpVp9o.cjs → Columns-5FUNk8-6.cjs} +1 -1
- package/dist/{Columns-DFFA76r9.js → Columns-lW5ifpVY.js} +1 -1
- package/dist/{Comparison-CHgtd2_K.cjs → Comparison-B_jdQPdW.cjs} +1 -1
- package/dist/{Comparison-CxtIF1j1.js → Comparison-OWm3KG63.js} +1 -1
- package/dist/Datepicker-BDXMvB6Q.cjs +1 -0
- package/dist/Datepicker-D0Yzqhky.js +1272 -0
- package/dist/{Download-DQeQ7L-F.cjs → Download-DZv0Co50.cjs} +1 -1
- package/dist/{Download-CVYfz0Dn.js → Download-Dv6nv_kh.js} +2 -2
- package/dist/{Options-CCs38y2s.js → Options-CvAQ7vuJ.js} +2 -2
- package/dist/{Options-zU-AQOf5.cjs → Options-Dmq3tFGa.cjs} +1 -1
- package/dist/{RefreshTable-CL-wZop-.cjs → RefreshTable-DQt3K_wT.cjs} +1 -1
- package/dist/{RefreshTable-Bd3R53R5.js → RefreshTable-vbz6jP_l.js} +2 -2
- package/dist/{Search-D8HrkoPb.js → Search-KNaJ43Yv.js} +2 -2
- package/dist/{Search-Bx6YYkMQ.cjs → Search-w6O09lLl.cjs} +1 -1
- package/dist/{Table-Bmliyq7v.cjs → Table-Bfa_XCKK.cjs} +1 -1
- package/dist/{Table-CNs60LSW.js → Table-P3KDor2k.js} +2 -2
- package/dist/{TableServer-iUuU7UzF.js → TableServer-C7VVLhRY.js} +3 -3
- package/dist/{TableServer-DofMcT2r.cjs → TableServer-CraUFndq.cjs} +1 -1
- package/dist/{cellRender-B33OOzkW.cjs → cellRender-AyOlbHkM.cjs} +1 -1
- package/dist/{cellRender-B0HWDUm8.js → cellRender-BSERCH_s.js} +2 -2
- package/dist/{dataTables-B08Xc7bo.js → dataTables-DqHE-hm9.js} +134 -141
- package/dist/{dataTables-DCnrUmUh.cjs → dataTables-oPwexOUF.cjs} +2 -2
- package/dist/datatables.cjs +1 -1
- package/dist/datatables.js +1 -1
- package/dist/datatables2.css +1 -1
- package/dist/escapeKeyString-CngwDxKW.js +17 -0
- package/dist/escapeKeyString-nS7kXLwu.cjs +1 -0
- package/dist/{index-bh7xyE4p.js → index-BjboPrMg.js} +1 -1
- package/dist/index-BwtJBnu1.cjs +1 -0
- package/dist/{index-BtA1RE4g.js → index-FhbzpwmS.js} +559 -552
- package/dist/{index-CR-8W111.cjs → index-Wzi3PVax.cjs} +1 -1
- package/lib/locale/de.js +14 -0
- package/lib/locale/index.js +1 -0
- package/package.json +7 -7
- package/dist/Datepicker-9OGqYUYS.js +0 -1246
- package/dist/Datepicker-CqIdbz1C.cjs +0 -1
- package/dist/escapeKeyString-B_mzfoez.js +0 -17
- package/dist/escapeKeyString-CQVlwp30.cjs +0 -1
- package/dist/index-DYDMoN3B.cjs +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ref as R, inject as ye, computed as V, watch as
|
|
1
|
+
import { ref as R, inject as ye, computed as V, watch as ie, nextTick as me, createVNode as d, normalizeStyle as be, normalizeClass as ae, createElementVNode as C, Fragment as ue, toDisplayString as Ue, shallowRef as ne, withDirectives as Te, mergeProps as U, useId as De, toRef as T, provide as Be, onScopeDispose as st, unref as E, onBeforeMount as un, onBeforeUnmount as dl, onMounted as Ne, createBlock as fe, openBlock as Q, isRef as $e, withCtx as Y, createElementBlock as Ee, renderList as wt, vShow as it, mergeModels as _t, useModel as ut, cloneVNode as rn, watchEffect as St, toValue as Yt, createTextVNode as cn, h as fl, capitalize as Pt, defineAsyncComponent as Ce, resolveDynamicComponent as xe, createCommentVNode as He } from "vue";
|
|
2
2
|
import { S as dn } from "./sortablejs-C0WJhxmJ.js";
|
|
3
3
|
import { defineStore as vl } from "pinia";
|
|
4
|
-
import { g as
|
|
4
|
+
import { g as J, p as L, a as At, u as te, m as ke, b as oe, c as fn, V as je, d as ge, e as Se, f as We, I as re, R as Oe, h as Re, i as Ft, j as ml, k as rt, l as Je, n as Tt, o as gl, q as Dt, r as yl, s as Ye, t as bl, v as hl, w as vn, L as pl, x as Bt, y as Pe, z as Sl, A as Xe, B as kl, C as Et, D as Cl, E as Nt, F as Qe, G as $t, H as we, J as ze, K as pe, M as Ot, N as Ae, O as ct, P as dt, Q as kt, S as Ze, T as Le, U as Vl, W as Rt, X as ft, Y as xl, Z as Il, _ as wl, $ as Ct, a0 as vt, a1 as mn, a2 as et, a3 as gn, a4 as Ge, a5 as Xt, a6 as yn, a7 as _l, a8 as Vt, a9 as _e, aa as Ie, ab as Lt, ac as nt, ad as xt, ae as Pl, af as Fe, ag as bn, ah as hn, ai as pn, aj as Al, ak as Fl, al as at, am as Qt, an as Tl, ao as Sn, ap as kn, aq as Zt, ar as Dl, as as Cn, at as Vn, au as xn, av as In, aw as wn, ax as Me, ay as el, az as _n, aA as Pn, aB as An, aC as Fn, aD as Tn, aE as Dn, aF as Bn, aG as En, aH as tl, aI as Nn, aJ as $n, aK as On, aL as mt, aM as Rn, aN as Ln, aO as Mn, aP as Hn } from "./dataTables-DqHE-hm9.js";
|
|
5
5
|
import { createSharedComposable as zn } from "@vueuse/core";
|
|
6
6
|
const gt = vl("datatables", () => {
|
|
7
7
|
const e = R([]), a = ({ table_id: i }) => {
|
|
@@ -84,7 +84,7 @@ function tt() {
|
|
|
84
84
|
}
|
|
85
85
|
function Bl(e) {
|
|
86
86
|
const a = gt(), { getCurrentTable: n, setTableHash: t, hashString: l } = a, s = R(!1), c = 5, r = V(() => n(e.id));
|
|
87
|
-
|
|
87
|
+
ie(
|
|
88
88
|
r,
|
|
89
89
|
async (y) => {
|
|
90
90
|
y.options.hash && await i(y);
|
|
@@ -126,7 +126,7 @@ function Bl(e) {
|
|
|
126
126
|
const Un = L({
|
|
127
127
|
...oe(),
|
|
128
128
|
...ke()
|
|
129
|
-
}, "VCardActions"), Mt =
|
|
129
|
+
}, "VCardActions"), Mt = J()({
|
|
130
130
|
name: "VCardActions",
|
|
131
131
|
props: Un(),
|
|
132
132
|
setup(e, a) {
|
|
@@ -138,7 +138,7 @@ const Un = L({
|
|
|
138
138
|
slim: !0,
|
|
139
139
|
variant: "text"
|
|
140
140
|
}
|
|
141
|
-
}),
|
|
141
|
+
}), te(() => d(e.tag, {
|
|
142
142
|
class: ae(["v-card-actions", e.class]),
|
|
143
143
|
style: be(e.style)
|
|
144
144
|
}, n)), {};
|
|
@@ -147,14 +147,14 @@ const Un = L({
|
|
|
147
147
|
opacity: [Number, String],
|
|
148
148
|
...oe(),
|
|
149
149
|
...ke()
|
|
150
|
-
}, "VCardSubtitle"), Gn =
|
|
150
|
+
}, "VCardSubtitle"), Gn = J()({
|
|
151
151
|
name: "VCardSubtitle",
|
|
152
152
|
props: jn(),
|
|
153
153
|
setup(e, a) {
|
|
154
154
|
let {
|
|
155
155
|
slots: n
|
|
156
156
|
} = a;
|
|
157
|
-
return
|
|
157
|
+
return te(() => d(e.tag, {
|
|
158
158
|
class: ae(["v-card-subtitle", e.class]),
|
|
159
159
|
style: be([{
|
|
160
160
|
"--v-card-subtitle-opacity": e.opacity
|
|
@@ -177,14 +177,14 @@ const Un = L({
|
|
|
177
177
|
...oe(),
|
|
178
178
|
...We(),
|
|
179
179
|
...ke()
|
|
180
|
-
}, "VCardItem"), qn =
|
|
180
|
+
}, "VCardItem"), qn = J()({
|
|
181
181
|
name: "VCardItem",
|
|
182
182
|
props: Kn(),
|
|
183
183
|
setup(e, a) {
|
|
184
184
|
let {
|
|
185
185
|
slots: n
|
|
186
186
|
} = a;
|
|
187
|
-
return
|
|
187
|
+
return te(() => {
|
|
188
188
|
const t = !!(e.prependAvatar || e.prependIcon), l = !!(t || n.prepend), s = !!(e.appendAvatar || e.appendIcon), c = !!(s || n.append), r = !!(e.title != null || n.title), i = !!(e.subtitle != null || n.subtitle);
|
|
189
189
|
return d(e.tag, {
|
|
190
190
|
class: ae(["v-card-item", e.class]),
|
|
@@ -206,7 +206,7 @@ const Un = L({
|
|
|
206
206
|
icon: e.prependIcon
|
|
207
207
|
}
|
|
208
208
|
}
|
|
209
|
-
}, n.prepend) : C(
|
|
209
|
+
}, n.prepend) : C(ue, null, [e.prependAvatar && d(je, {
|
|
210
210
|
key: "prepend-avatar",
|
|
211
211
|
density: e.density,
|
|
212
212
|
image: e.prependAvatar
|
|
@@ -240,7 +240,7 @@ const Un = L({
|
|
|
240
240
|
icon: e.appendIcon
|
|
241
241
|
}
|
|
242
242
|
}
|
|
243
|
-
}, n.append) : C(
|
|
243
|
+
}, n.append) : C(ue, null, [e.appendIcon && d(ge, {
|
|
244
244
|
key: "append-icon",
|
|
245
245
|
density: e.density,
|
|
246
246
|
icon: e.appendIcon
|
|
@@ -256,14 +256,14 @@ const Un = L({
|
|
|
256
256
|
opacity: [Number, String],
|
|
257
257
|
...oe(),
|
|
258
258
|
...ke()
|
|
259
|
-
}, "VCardText"), bt =
|
|
259
|
+
}, "VCardText"), bt = J()({
|
|
260
260
|
name: "VCardText",
|
|
261
261
|
props: Wn(),
|
|
262
262
|
setup(e, a) {
|
|
263
263
|
let {
|
|
264
264
|
slots: n
|
|
265
265
|
} = a;
|
|
266
|
-
return
|
|
266
|
+
return te(() => d(e.tag, {
|
|
267
267
|
class: ae(["v-card-text", e.class]),
|
|
268
268
|
style: be([{
|
|
269
269
|
"--v-card-text-opacity": e.opacity
|
|
@@ -314,7 +314,7 @@ const Un = L({
|
|
|
314
314
|
...Bt({
|
|
315
315
|
variant: "elevated"
|
|
316
316
|
})
|
|
317
|
-
}, "VCard"), Ht =
|
|
317
|
+
}, "VCard"), Ht = J()({
|
|
318
318
|
name: "VCard",
|
|
319
319
|
directives: {
|
|
320
320
|
vRipple: Oe
|
|
@@ -347,21 +347,25 @@ const Un = L({
|
|
|
347
347
|
positionClasses: m
|
|
348
348
|
} = yl(e), {
|
|
349
349
|
roundedClasses: h
|
|
350
|
-
} = Ye(e), S = bl(e, n);
|
|
351
|
-
return
|
|
352
|
-
|
|
353
|
-
|
|
350
|
+
} = Ye(e), S = bl(e, n), k = ne(void 0);
|
|
351
|
+
return ie(() => e.loading, (w, D) => {
|
|
352
|
+
k.value = !w && typeof D == "string" ? D : typeof w == "boolean" ? void 0 : w;
|
|
353
|
+
}, {
|
|
354
|
+
immediate: !0
|
|
355
|
+
}), te(() => {
|
|
356
|
+
const w = e.link !== !1 && S.isLink.value, D = !e.disabled && e.link !== !1 && (e.link || S.isClickable.value), F = w ? "a" : e.tag, _ = !!(t.title || e.title != null), $ = !!(t.subtitle || e.subtitle != null), P = _ || $, I = !!(t.append || e.appendAvatar || e.appendIcon), B = !!(t.prepend || e.prependAvatar || e.prependIcon), z = !!(t.image || e.image), j = P || B || I, G = !!(t.text || e.text != null);
|
|
357
|
+
return Te(d(F, U(S.linkProps, {
|
|
354
358
|
class: ["v-card", {
|
|
355
359
|
"v-card--disabled": e.disabled,
|
|
356
360
|
"v-card--flat": e.flat,
|
|
357
361
|
"v-card--hover": e.hover && !(e.disabled || e.flat),
|
|
358
|
-
"v-card--link":
|
|
362
|
+
"v-card--link": D
|
|
359
363
|
}, l.value, s.value, c.value, f.value, o.value, v.value, m.value, h.value, i.value, e.class],
|
|
360
364
|
style: [r.value, u.value, y.value, e.style],
|
|
361
|
-
onClick:
|
|
365
|
+
onClick: D && S.navigate,
|
|
362
366
|
tabindex: e.disabled ? -1 : void 0
|
|
363
367
|
}), {
|
|
364
|
-
default: () => [
|
|
368
|
+
default: () => [z && C("div", {
|
|
365
369
|
key: "image",
|
|
366
370
|
class: "v-card__image"
|
|
367
371
|
}, [t.image ? d(Se, {
|
|
@@ -380,10 +384,10 @@ const Un = L({
|
|
|
380
384
|
}, null)]), d(pl, {
|
|
381
385
|
name: "v-card",
|
|
382
386
|
active: !!e.loading,
|
|
383
|
-
color:
|
|
387
|
+
color: k.value
|
|
384
388
|
}, {
|
|
385
389
|
default: t.loader
|
|
386
|
-
}),
|
|
390
|
+
}), j && d(qn, {
|
|
387
391
|
key: "item",
|
|
388
392
|
prependAvatar: e.prependAvatar,
|
|
389
393
|
prependIcon: e.prependIcon,
|
|
@@ -397,14 +401,14 @@ const Un = L({
|
|
|
397
401
|
title: t.title,
|
|
398
402
|
subtitle: t.subtitle,
|
|
399
403
|
append: t.append
|
|
400
|
-
}),
|
|
404
|
+
}), G && d(bt, {
|
|
401
405
|
key: "text"
|
|
402
406
|
}, {
|
|
403
407
|
default: () => [t.text?.() ?? e.text]
|
|
404
408
|
}), t.default?.(), t.actions && d(Mt, null, {
|
|
405
409
|
default: t.actions
|
|
406
|
-
}), hl(
|
|
407
|
-
}), [[Oe,
|
|
410
|
+
}), hl(D, "v-card")]
|
|
411
|
+
}), [[Oe, D && e.ripple]]);
|
|
408
412
|
}), {};
|
|
409
413
|
}
|
|
410
414
|
}), Yn = L({
|
|
@@ -412,14 +416,14 @@ const Un = L({
|
|
|
412
416
|
onClick: we(),
|
|
413
417
|
...oe(),
|
|
414
418
|
...Pe()
|
|
415
|
-
}, "VLabel"), El =
|
|
419
|
+
}, "VLabel"), El = J()({
|
|
416
420
|
name: "VLabel",
|
|
417
421
|
props: Yn(),
|
|
418
422
|
setup(e, a) {
|
|
419
423
|
let {
|
|
420
424
|
slots: n
|
|
421
425
|
} = a;
|
|
422
|
-
return
|
|
426
|
+
return te(() => C("label", {
|
|
423
427
|
class: ae(["v-label", {
|
|
424
428
|
"v-label--clickable": !!e.onClick
|
|
425
429
|
}, e.class]),
|
|
@@ -466,7 +470,7 @@ const Un = L({
|
|
|
466
470
|
defaultsTarget: "VSelectionControl"
|
|
467
471
|
})
|
|
468
472
|
}, "VSelectionControlGroup");
|
|
469
|
-
|
|
473
|
+
J()({
|
|
470
474
|
name: "VSelectionControlGroup",
|
|
471
475
|
props: Xn(),
|
|
472
476
|
emits: {
|
|
@@ -504,7 +508,7 @@ K()({
|
|
|
504
508
|
type: T(() => e.type),
|
|
505
509
|
valueComparator: T(() => e.valueComparator)
|
|
506
510
|
}
|
|
507
|
-
}),
|
|
511
|
+
}), te(() => C("div", {
|
|
508
512
|
class: ae(["v-selection-control-group", {
|
|
509
513
|
"v-selection-control-group--inline": e.inline
|
|
510
514
|
}, e.class]),
|
|
@@ -559,7 +563,7 @@ function Qn(e) {
|
|
|
559
563
|
icon: v
|
|
560
564
|
};
|
|
561
565
|
}
|
|
562
|
-
const ll =
|
|
566
|
+
const ll = J()({
|
|
563
567
|
name: "VSelectionControl",
|
|
564
568
|
directives: {
|
|
565
569
|
vRipple: Oe
|
|
@@ -584,39 +588,39 @@ const ll = K()({
|
|
|
584
588
|
backgroundColorClasses: u,
|
|
585
589
|
backgroundColorStyles: o,
|
|
586
590
|
trueValue: v
|
|
587
|
-
} = Qn(e), y = De(), m = ne(!1), h = ne(!1), S = R(), k = T(() => e.id || `input-${y}`),
|
|
591
|
+
} = Qn(e), y = De(), m = ne(!1), h = ne(!1), S = R(), k = T(() => e.id || `input-${y}`), w = T(() => !e.disabled && !e.readonly);
|
|
588
592
|
l?.onForceUpdate(() => {
|
|
589
593
|
S.value && (S.value.checked = r.value);
|
|
590
594
|
});
|
|
591
|
-
function
|
|
592
|
-
|
|
595
|
+
function D(P) {
|
|
596
|
+
w.value && (m.value = !0, kt(P.target, ":focus-visible") !== !1 && (h.value = !0));
|
|
593
597
|
}
|
|
594
598
|
function F() {
|
|
595
599
|
m.value = !1, h.value = !1;
|
|
596
600
|
}
|
|
597
|
-
function
|
|
601
|
+
function _(P) {
|
|
598
602
|
P.stopPropagation();
|
|
599
603
|
}
|
|
600
604
|
function $(P) {
|
|
601
|
-
if (!
|
|
605
|
+
if (!w.value) {
|
|
602
606
|
S.value && (S.value.checked = r.value);
|
|
603
607
|
return;
|
|
604
608
|
}
|
|
605
609
|
e.readonly && l && me(() => l.forceUpdate()), r.value = P.target.checked;
|
|
606
610
|
}
|
|
607
|
-
return
|
|
611
|
+
return te(() => {
|
|
608
612
|
const P = t.label ? t.label({
|
|
609
613
|
label: e.label,
|
|
610
614
|
props: {
|
|
611
615
|
for: k.value
|
|
612
616
|
}
|
|
613
|
-
}) : e.label, [
|
|
617
|
+
}) : e.label, [I, B] = Ot(n), z = C("input", U({
|
|
614
618
|
ref: S,
|
|
615
619
|
checked: r.value,
|
|
616
620
|
disabled: !!e.disabled,
|
|
617
621
|
id: k.value,
|
|
618
622
|
onBlur: F,
|
|
619
|
-
onFocus:
|
|
623
|
+
onFocus: D,
|
|
620
624
|
onInput: $,
|
|
621
625
|
"aria-disabled": !!e.disabled,
|
|
622
626
|
"aria-label": e.label,
|
|
@@ -624,8 +628,8 @@ const ll = K()({
|
|
|
624
628
|
value: v.value,
|
|
625
629
|
name: e.name,
|
|
626
630
|
"aria-checked": e.type === "checkbox" ? r.value : void 0
|
|
627
|
-
},
|
|
628
|
-
return C("div",
|
|
631
|
+
}, B), null);
|
|
632
|
+
return C("div", U({
|
|
629
633
|
class: ["v-selection-control", {
|
|
630
634
|
"v-selection-control--dirty": r.value,
|
|
631
635
|
"v-selection-control--disabled": e.disabled,
|
|
@@ -634,7 +638,7 @@ const ll = K()({
|
|
|
634
638
|
"v-selection-control--focus-visible": h.value,
|
|
635
639
|
"v-selection-control--inline": e.inline
|
|
636
640
|
}, s.value, e.class]
|
|
637
|
-
},
|
|
641
|
+
}, I, {
|
|
638
642
|
style: e.style
|
|
639
643
|
}), [C("div", {
|
|
640
644
|
class: ae(["v-selection-control__wrapper", i.value]),
|
|
@@ -650,22 +654,22 @@ const ll = K()({
|
|
|
650
654
|
textColorStyles: f,
|
|
651
655
|
backgroundColorClasses: u,
|
|
652
656
|
backgroundColorStyles: o,
|
|
653
|
-
inputNode:
|
|
657
|
+
inputNode: z,
|
|
654
658
|
icon: c.value,
|
|
655
659
|
props: {
|
|
656
|
-
onFocus:
|
|
660
|
+
onFocus: D,
|
|
657
661
|
onBlur: F,
|
|
658
662
|
id: k.value
|
|
659
663
|
}
|
|
660
|
-
}) ?? C(
|
|
664
|
+
}) ?? C(ue, null, [c.value && d(ge, {
|
|
661
665
|
key: "icon",
|
|
662
666
|
icon: c.value
|
|
663
|
-
}, null),
|
|
667
|
+
}, null), z])]), [[Oe, !e.disabled && !e.readonly && e.ripple, null, {
|
|
664
668
|
center: !0,
|
|
665
669
|
circle: !0
|
|
666
670
|
}]])]), P && d(El, {
|
|
667
671
|
for: k.value,
|
|
668
|
-
onClick:
|
|
672
|
+
onClick: _
|
|
669
673
|
}, {
|
|
670
674
|
default: () => [P]
|
|
671
675
|
})]);
|
|
@@ -684,7 +688,7 @@ const ll = K()({
|
|
|
684
688
|
falseIcon: "$checkboxOff",
|
|
685
689
|
trueIcon: "$checkboxOn"
|
|
686
690
|
})
|
|
687
|
-
}, "VCheckboxBtn"), It =
|
|
691
|
+
}, "VCheckboxBtn"), It = J()({
|
|
688
692
|
name: "VCheckboxBtn",
|
|
689
693
|
props: Rl(),
|
|
690
694
|
emits: {
|
|
@@ -700,9 +704,9 @@ const ll = K()({
|
|
|
700
704
|
t.value && (t.value = !1);
|
|
701
705
|
}
|
|
702
706
|
const c = T(() => t.value ? e.indeterminateIcon : e.falseIcon), r = T(() => t.value ? e.indeterminateIcon : e.trueIcon);
|
|
703
|
-
return
|
|
707
|
+
return te(() => {
|
|
704
708
|
const i = Ze(ll.filterProps(e), ["modelValue"]);
|
|
705
|
-
return d(ll,
|
|
709
|
+
return d(ll, U(i, {
|
|
706
710
|
modelValue: l.value,
|
|
707
711
|
"onUpdate:modelValue": [(f) => l.value = f, s],
|
|
708
712
|
class: ["v-checkbox-btn", e.class],
|
|
@@ -736,7 +740,7 @@ function Ll(e) {
|
|
|
736
740
|
o.key !== "Enter" && o.key !== " " || (o.preventDefault(), o.stopPropagation(), Vl(i, new PointerEvent("click", o)));
|
|
737
741
|
}
|
|
738
742
|
const u = i && r ? a(`$vuetify.input.${r}`, e.label ?? "") : void 0;
|
|
739
|
-
return d(ge,
|
|
743
|
+
return d(ge, U({
|
|
740
744
|
icon: e[`${l}Icon`],
|
|
741
745
|
"aria-label": u,
|
|
742
746
|
onClick: i,
|
|
@@ -763,7 +767,7 @@ const Zn = L({
|
|
|
763
767
|
group: !0
|
|
764
768
|
}
|
|
765
769
|
})
|
|
766
|
-
}, "VMessages"), ea =
|
|
770
|
+
}, "VMessages"), ea = J()({
|
|
767
771
|
name: "VMessages",
|
|
768
772
|
props: Zn(),
|
|
769
773
|
setup(e, a) {
|
|
@@ -774,7 +778,7 @@ const Zn = L({
|
|
|
774
778
|
textColorClasses: l,
|
|
775
779
|
textColorStyles: s
|
|
776
780
|
} = ct(() => e.color);
|
|
777
|
-
return
|
|
781
|
+
return te(() => d(Rt, {
|
|
778
782
|
transition: e.transition,
|
|
779
783
|
tag: "div",
|
|
780
784
|
class: ae(["v-messages", l.value, e.class]),
|
|
@@ -863,72 +867,72 @@ function oa(e) {
|
|
|
863
867
|
const t = pe(e, "modelValue"), l = V(() => e.validationValue === void 0 ? t.value : e.validationValue), s = Ut(e), c = na(() => e.rules), r = R([]), i = ne(!0), f = V(() => !!(Ae(t.value === "" ? null : t.value).length || Ae(l.value === "" ? null : l.value).length)), u = V(() => e.errorMessages?.length ? Ae(e.errorMessages).concat(r.value).slice(0, Math.max(0, Number(e.maxErrors))) : r.value), o = V(() => {
|
|
864
868
|
let F = (e.validateOn ?? s.validateOn?.value) || "input";
|
|
865
869
|
F === "lazy" && (F = "input lazy"), F === "eager" && (F = "input eager");
|
|
866
|
-
const
|
|
870
|
+
const _ = new Set(F?.split(" ") ?? []);
|
|
867
871
|
return {
|
|
868
|
-
input:
|
|
869
|
-
blur:
|
|
870
|
-
invalidInput:
|
|
871
|
-
lazy:
|
|
872
|
-
eager:
|
|
872
|
+
input: _.has("input"),
|
|
873
|
+
blur: _.has("blur") || _.has("input") || _.has("invalid-input"),
|
|
874
|
+
invalidInput: _.has("invalid-input"),
|
|
875
|
+
lazy: _.has("lazy"),
|
|
876
|
+
eager: _.has("eager")
|
|
873
877
|
};
|
|
874
878
|
}), v = V(() => e.error || e.errorMessages?.length ? !1 : e.rules.length ? i.value ? r.value.length || o.value.lazy ? null : !0 : !r.value.length : !0), y = ne(!1), m = V(() => ({
|
|
875
879
|
[`${a}--error`]: v.value === !1,
|
|
876
880
|
[`${a}--dirty`]: f.value,
|
|
877
881
|
[`${a}--disabled`]: s.isDisabled.value,
|
|
878
882
|
[`${a}--readonly`]: s.isReadonly.value
|
|
879
|
-
})), h = wl("validation"), S = V(() => e.name ??
|
|
883
|
+
})), h = wl("validation"), S = V(() => e.name ?? E(n));
|
|
880
884
|
un(() => {
|
|
881
885
|
s.register?.({
|
|
882
886
|
id: S.value,
|
|
883
887
|
vm: h,
|
|
884
|
-
validate:
|
|
888
|
+
validate: D,
|
|
885
889
|
reset: k,
|
|
886
|
-
resetValidation:
|
|
890
|
+
resetValidation: w
|
|
887
891
|
});
|
|
888
892
|
}), dl(() => {
|
|
889
893
|
s.unregister?.(S.value);
|
|
890
894
|
}), Ne(async () => {
|
|
891
|
-
o.value.lazy || await
|
|
895
|
+
o.value.lazy || await D(!o.value.eager), s.update?.(S.value, v.value, u.value);
|
|
892
896
|
}), Ct(() => o.value.input || o.value.invalidInput && v.value === !1, () => {
|
|
893
|
-
|
|
897
|
+
ie(l, () => {
|
|
894
898
|
if (l.value != null)
|
|
895
|
-
|
|
899
|
+
D();
|
|
896
900
|
else if (e.focused) {
|
|
897
|
-
const F =
|
|
898
|
-
|
|
901
|
+
const F = ie(() => e.focused, (_) => {
|
|
902
|
+
_ || D(), F();
|
|
899
903
|
});
|
|
900
904
|
}
|
|
901
905
|
});
|
|
902
906
|
}), Ct(() => o.value.blur, () => {
|
|
903
|
-
|
|
904
|
-
F ||
|
|
907
|
+
ie(() => e.focused, (F) => {
|
|
908
|
+
F || D();
|
|
905
909
|
});
|
|
906
|
-
}),
|
|
910
|
+
}), ie([v, u], () => {
|
|
907
911
|
s.update?.(S.value, v.value, u.value);
|
|
908
912
|
});
|
|
909
913
|
async function k() {
|
|
910
|
-
t.value = null, await me(), await
|
|
914
|
+
t.value = null, await me(), await w();
|
|
911
915
|
}
|
|
912
|
-
async function
|
|
913
|
-
i.value = !0, o.value.lazy ? r.value = [] : await
|
|
916
|
+
async function w() {
|
|
917
|
+
i.value = !0, o.value.lazy ? r.value = [] : await D(!o.value.eager);
|
|
914
918
|
}
|
|
915
|
-
async function
|
|
919
|
+
async function D() {
|
|
916
920
|
let F = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1;
|
|
917
|
-
const
|
|
921
|
+
const _ = [];
|
|
918
922
|
y.value = !0;
|
|
919
923
|
for (const $ of c.value) {
|
|
920
|
-
if (
|
|
924
|
+
if (_.length >= Number(e.maxErrors ?? 1))
|
|
921
925
|
break;
|
|
922
|
-
const
|
|
923
|
-
if (
|
|
924
|
-
if (
|
|
925
|
-
console.warn(`${
|
|
926
|
+
const I = await (typeof $ == "function" ? $ : () => $)(l.value);
|
|
927
|
+
if (I !== !0) {
|
|
928
|
+
if (I !== !1 && typeof I != "string") {
|
|
929
|
+
console.warn(`${I} is not a valid value. Rule functions must return boolean true or a string.`);
|
|
926
930
|
continue;
|
|
927
931
|
}
|
|
928
|
-
|
|
932
|
+
_.push(I || "");
|
|
929
933
|
}
|
|
930
934
|
}
|
|
931
|
-
return r.value =
|
|
935
|
+
return r.value = _, y.value = !1, i.value = F, r.value;
|
|
932
936
|
}
|
|
933
937
|
return {
|
|
934
938
|
errorMessages: u,
|
|
@@ -939,8 +943,8 @@ function oa(e) {
|
|
|
939
943
|
isValid: v,
|
|
940
944
|
isValidating: y,
|
|
941
945
|
reset: k,
|
|
942
|
-
resetValidation:
|
|
943
|
-
validate:
|
|
946
|
+
resetValidation: w,
|
|
947
|
+
validate: D,
|
|
944
948
|
validationClasses: m
|
|
945
949
|
};
|
|
946
950
|
}
|
|
@@ -976,7 +980,7 @@ const jt = L({
|
|
|
976
980
|
...mn(Qe(), ["maxWidth", "minWidth", "width"]),
|
|
977
981
|
...Pe(),
|
|
978
982
|
...aa()
|
|
979
|
-
}, "VInput"), ot =
|
|
983
|
+
}, "VInput"), ot = J()({
|
|
980
984
|
name: "VInput",
|
|
981
985
|
props: {
|
|
982
986
|
...jt()
|
|
@@ -1007,30 +1011,30 @@ const jt = L({
|
|
|
1007
1011
|
isReadonly: h,
|
|
1008
1012
|
isPristine: S,
|
|
1009
1013
|
isValid: k,
|
|
1010
|
-
isValidating:
|
|
1011
|
-
reset:
|
|
1014
|
+
isValidating: w,
|
|
1015
|
+
reset: D,
|
|
1012
1016
|
resetValidation: F,
|
|
1013
|
-
validate:
|
|
1017
|
+
validate: _,
|
|
1014
1018
|
validationClasses: $
|
|
1015
|
-
} = oa(e, "v-input", o), P = V(() => e.errorMessages?.length || !S.value && v.value.length ? v.value : e.hint && (e.persistentHint || e.focused) ? e.hint : e.messages),
|
|
1019
|
+
} = oa(e, "v-input", o), P = V(() => e.errorMessages?.length || !S.value && v.value.length ? v.value : e.hint && (e.persistentHint || e.focused) ? e.hint : e.messages), I = T(() => P.value.length > 0), B = T(() => !e.hideDetails || e.hideDetails === "auto" && (I.value || !!t.details)), z = V(() => B.value ? `${o.value}-messages` : void 0), j = V(() => ({
|
|
1016
1020
|
id: o,
|
|
1017
|
-
messagesId:
|
|
1021
|
+
messagesId: z,
|
|
1018
1022
|
isDirty: y,
|
|
1019
1023
|
isDisabled: m,
|
|
1020
1024
|
isReadonly: h,
|
|
1021
1025
|
isPristine: S,
|
|
1022
1026
|
isValid: k,
|
|
1023
|
-
isValidating:
|
|
1024
|
-
hasDetails:
|
|
1025
|
-
reset:
|
|
1027
|
+
isValidating: w,
|
|
1028
|
+
hasDetails: B,
|
|
1029
|
+
reset: D,
|
|
1026
1030
|
resetValidation: F,
|
|
1027
|
-
validate:
|
|
1028
|
-
})),
|
|
1031
|
+
validate: _
|
|
1032
|
+
})), G = T(() => e.error || e.disabled ? void 0 : e.focused ? e.color : e.baseColor), Z = T(() => {
|
|
1029
1033
|
if (e.iconColor)
|
|
1030
|
-
return e.iconColor === !0 ?
|
|
1034
|
+
return e.iconColor === !0 ? G.value : e.iconColor;
|
|
1031
1035
|
});
|
|
1032
|
-
return
|
|
1033
|
-
const
|
|
1036
|
+
return te(() => {
|
|
1037
|
+
const K = !!(t.prepend || e.prependIcon), ce = !!(t.append || e.appendIcon);
|
|
1034
1038
|
return C("div", {
|
|
1035
1039
|
class: ae(["v-input", `v-input--${e.direction}`, {
|
|
1036
1040
|
"v-input--center-affix": e.centerAffix,
|
|
@@ -1039,37 +1043,37 @@ const jt = L({
|
|
|
1039
1043
|
"v-input--hide-spin-buttons": e.hideSpinButtons
|
|
1040
1044
|
}, s.value, r.value, i.value, $.value, e.class]),
|
|
1041
1045
|
style: be([c.value, e.style])
|
|
1042
|
-
}, [
|
|
1046
|
+
}, [K && C("div", {
|
|
1043
1047
|
key: "prepend",
|
|
1044
1048
|
class: "v-input__prepend"
|
|
1045
|
-
}, [t.prepend?.(
|
|
1049
|
+
}, [t.prepend?.(j.value), e.prependIcon && d(f, {
|
|
1046
1050
|
key: "prepend-icon",
|
|
1047
1051
|
name: "prepend",
|
|
1048
|
-
color:
|
|
1052
|
+
color: Z.value
|
|
1049
1053
|
}, null)]), t.default && C("div", {
|
|
1050
1054
|
class: "v-input__control"
|
|
1051
|
-
}, [t.default?.(
|
|
1055
|
+
}, [t.default?.(j.value)]), ce && C("div", {
|
|
1052
1056
|
key: "append",
|
|
1053
1057
|
class: "v-input__append"
|
|
1054
1058
|
}, [e.appendIcon && d(f, {
|
|
1055
1059
|
key: "append-icon",
|
|
1056
1060
|
name: "append",
|
|
1057
|
-
color:
|
|
1058
|
-
}, null), t.append?.(
|
|
1059
|
-
id:
|
|
1061
|
+
color: Z.value
|
|
1062
|
+
}, null), t.append?.(j.value)]), B.value && C("div", {
|
|
1063
|
+
id: z.value,
|
|
1060
1064
|
class: "v-input__details",
|
|
1061
1065
|
role: "alert",
|
|
1062
1066
|
"aria-live": "polite"
|
|
1063
1067
|
}, [d(ea, {
|
|
1064
|
-
active:
|
|
1068
|
+
active: I.value,
|
|
1065
1069
|
messages: P.value
|
|
1066
1070
|
}, {
|
|
1067
1071
|
message: t.message
|
|
1068
|
-
}), t.details?.(
|
|
1072
|
+
}), t.details?.(j.value)])]);
|
|
1069
1073
|
}), {
|
|
1070
|
-
reset:
|
|
1074
|
+
reset: D,
|
|
1071
1075
|
resetValidation: F,
|
|
1072
|
-
validate:
|
|
1076
|
+
validate: _,
|
|
1073
1077
|
isValid: k,
|
|
1074
1078
|
errorMessages: v
|
|
1075
1079
|
};
|
|
@@ -1077,7 +1081,7 @@ const jt = L({
|
|
|
1077
1081
|
}), sa = L({
|
|
1078
1082
|
...jt(),
|
|
1079
1083
|
...Ze(Rl(), ["inline"])
|
|
1080
|
-
}, "VCheckbox"), ia =
|
|
1084
|
+
}, "VCheckbox"), ia = J()({
|
|
1081
1085
|
name: "VCheckbox",
|
|
1082
1086
|
inheritAttrs: !1,
|
|
1083
1087
|
props: sa(),
|
|
@@ -1095,9 +1099,9 @@ const jt = L({
|
|
|
1095
1099
|
focus: c,
|
|
1096
1100
|
blur: r
|
|
1097
1101
|
} = zt(e), i = R(), f = De();
|
|
1098
|
-
return
|
|
1102
|
+
return te(() => {
|
|
1099
1103
|
const [u, o] = Ot(n), v = ot.filterProps(e), y = It.filterProps(e);
|
|
1100
|
-
return d(ot,
|
|
1104
|
+
return d(ot, U({
|
|
1101
1105
|
ref: i,
|
|
1102
1106
|
class: ["v-checkbox", e.class]
|
|
1103
1107
|
}, u, v, {
|
|
@@ -1113,16 +1117,16 @@ const jt = L({
|
|
|
1113
1117
|
id: h,
|
|
1114
1118
|
messagesId: S,
|
|
1115
1119
|
isDisabled: k,
|
|
1116
|
-
isReadonly:
|
|
1117
|
-
isValid:
|
|
1120
|
+
isReadonly: w,
|
|
1121
|
+
isValid: D
|
|
1118
1122
|
} = m;
|
|
1119
|
-
return d(It,
|
|
1123
|
+
return d(It, U(y, {
|
|
1120
1124
|
id: h.value,
|
|
1121
1125
|
"aria-describedby": S.value,
|
|
1122
1126
|
disabled: k.value,
|
|
1123
|
-
readonly:
|
|
1127
|
+
readonly: w.value
|
|
1124
1128
|
}, o, {
|
|
1125
|
-
error:
|
|
1129
|
+
error: D.value === !1,
|
|
1126
1130
|
modelValue: l.value,
|
|
1127
1131
|
"onUpdate:modelValue": (F) => l.value = F,
|
|
1128
1132
|
onFocus: c,
|
|
@@ -1147,7 +1151,7 @@ const jt = L({
|
|
|
1147
1151
|
},
|
|
1148
1152
|
zIndex: 2400
|
|
1149
1153
|
})
|
|
1150
|
-
}, "VDialog"), Gt =
|
|
1154
|
+
}, "VDialog"), Gt = J()({
|
|
1151
1155
|
name: "VDialog",
|
|
1152
1156
|
props: ua(),
|
|
1153
1157
|
emits: {
|
|
@@ -1179,7 +1183,7 @@ const jt = L({
|
|
|
1179
1183
|
}
|
|
1180
1184
|
dl(() => {
|
|
1181
1185
|
document.removeEventListener("focusin", r), document.removeEventListener("keydown", i);
|
|
1182
|
-
}), Ge &&
|
|
1186
|
+
}), Ge && ie(() => l.value && e.retainFocus, (o) => {
|
|
1183
1187
|
o ? (document.addEventListener("focusin", r, {
|
|
1184
1188
|
once: !0
|
|
1185
1189
|
}), document.addEventListener("keydown", i)) : (document.removeEventListener("focusin", r), document.removeEventListener("keydown", i));
|
|
@@ -1194,17 +1198,17 @@ const jt = L({
|
|
|
1194
1198
|
function u() {
|
|
1195
1199
|
n("afterLeave");
|
|
1196
1200
|
}
|
|
1197
|
-
return
|
|
1201
|
+
return ie(l, async (o) => {
|
|
1198
1202
|
o || (await me(), c.value.activatorEl?.focus({
|
|
1199
1203
|
preventScroll: !0
|
|
1200
1204
|
}));
|
|
1201
|
-
}),
|
|
1202
|
-
const o = Xt.filterProps(e), v =
|
|
1205
|
+
}), te(() => {
|
|
1206
|
+
const o = Xt.filterProps(e), v = U({
|
|
1203
1207
|
"aria-haspopup": "dialog"
|
|
1204
|
-
}, e.activatorProps), y =
|
|
1208
|
+
}, e.activatorProps), y = U({
|
|
1205
1209
|
tabindex: -1
|
|
1206
1210
|
}, e.contentProps);
|
|
1207
|
-
return d(Xt,
|
|
1211
|
+
return d(Xt, U({
|
|
1208
1212
|
ref: c,
|
|
1209
1213
|
class: ["v-dialog", {
|
|
1210
1214
|
"v-dialog--fullscreen": e.fullscreen,
|
|
@@ -1257,21 +1261,21 @@ const jt = L({
|
|
|
1257
1261
|
const y = () => {
|
|
1258
1262
|
(JSON.stringify(u.value) !== JSON.stringify(l.value.options.columns?.selected) || JSON.stringify(o.value) !== JSON.stringify(l.value.options.columns?.sorted)) && (s.value.options.columns.selected = u.value, s.value.options.columns.sorted = o.value), i.value = !1;
|
|
1259
1263
|
};
|
|
1260
|
-
return a({ openDialog: v }), (m, h) => (
|
|
1261
|
-
modelValue:
|
|
1264
|
+
return a({ openDialog: v }), (m, h) => (Q(), fe(Gt, {
|
|
1265
|
+
modelValue: E(i),
|
|
1262
1266
|
"onUpdate:modelValue": h[1] || (h[1] = (S) => $e(i) ? i.value = S : null),
|
|
1263
1267
|
"max-width": "500",
|
|
1264
1268
|
eager: "",
|
|
1265
1269
|
"retain-focus": !1
|
|
1266
1270
|
}, {
|
|
1267
|
-
default:
|
|
1271
|
+
default: Y(({ isActive: S }) => [
|
|
1268
1272
|
d(Ht, { rounded: "lg" }, {
|
|
1269
|
-
default:
|
|
1273
|
+
default: Y(() => [
|
|
1270
1274
|
d(yt, { class: "d-flex justify-space-between align-center" }, {
|
|
1271
|
-
default:
|
|
1275
|
+
default: Y(() => [
|
|
1272
1276
|
C("div", ra, Ue(m.$t("$datatables.selectColumns")), 1),
|
|
1273
1277
|
d(_e, {
|
|
1274
|
-
icon:
|
|
1278
|
+
icon: E(t).header.icons.close,
|
|
1275
1279
|
variant: "text",
|
|
1276
1280
|
onClick: (k) => S.value = !1
|
|
1277
1281
|
}, null, 8, ["icon", "onClick"])
|
|
@@ -1280,30 +1284,30 @@ const jt = L({
|
|
|
1280
1284
|
}, 1024),
|
|
1281
1285
|
d(Ie),
|
|
1282
1286
|
d(bt, { class: "overflow-auto pt-8" }, {
|
|
1283
|
-
default:
|
|
1287
|
+
default: Y(() => [
|
|
1284
1288
|
d(Lt, {
|
|
1285
1289
|
ref_key: "list",
|
|
1286
1290
|
ref: r
|
|
1287
1291
|
}, {
|
|
1288
|
-
default:
|
|
1289
|
-
(
|
|
1290
|
-
key: `${
|
|
1292
|
+
default: Y(() => [
|
|
1293
|
+
(Q(!0), Ee(ue, null, wt(E(f), (k, w) => (Q(), fe(nt, {
|
|
1294
|
+
key: `${E(c)}-${w}`,
|
|
1291
1295
|
title: k?.title,
|
|
1292
1296
|
"header-keys": k?.key,
|
|
1293
1297
|
onClick: () => {
|
|
1294
1298
|
}
|
|
1295
1299
|
}, {
|
|
1296
|
-
prepend:
|
|
1300
|
+
prepend: Y(() => [
|
|
1297
1301
|
d(ia, {
|
|
1298
|
-
modelValue:
|
|
1299
|
-
"onUpdate:modelValue": h[0] || (h[0] = (
|
|
1302
|
+
modelValue: E(u),
|
|
1303
|
+
"onUpdate:modelValue": h[0] || (h[0] = (D) => $e(u) ? u.value = D : null),
|
|
1300
1304
|
value: k?.key,
|
|
1301
1305
|
"hide-details": ""
|
|
1302
1306
|
}, null, 8, ["modelValue", "value"])
|
|
1303
1307
|
]),
|
|
1304
|
-
append:
|
|
1308
|
+
append: Y(() => [
|
|
1305
1309
|
d(ge, {
|
|
1306
|
-
icon:
|
|
1310
|
+
icon: E(t).header.icons.drag
|
|
1307
1311
|
}, null, 8, ["icon"])
|
|
1308
1312
|
]),
|
|
1309
1313
|
_: 2
|
|
@@ -1316,7 +1320,7 @@ const jt = L({
|
|
|
1316
1320
|
}),
|
|
1317
1321
|
d(Ie, { class: "mt-2" }),
|
|
1318
1322
|
d(Mt, { class: "my-2 d-flex justify-end" }, {
|
|
1319
|
-
default:
|
|
1323
|
+
default: Y(() => [
|
|
1320
1324
|
d(_e, {
|
|
1321
1325
|
class: "text-none",
|
|
1322
1326
|
text: m.$t("$datatables.cancel"),
|
|
@@ -1378,8 +1382,8 @@ async function nl(e, a, n, t) {
|
|
|
1378
1382
|
if (u === o) return Promise.resolve(u);
|
|
1379
1383
|
const v = performance.now();
|
|
1380
1384
|
return new Promise((y) => requestAnimationFrame(function m(h) {
|
|
1381
|
-
const k = (h - v) / s.duration,
|
|
1382
|
-
if (i[l] =
|
|
1385
|
+
const k = (h - v) / s.duration, w = Math.floor(o + (u - o) * f(Fe(k, 0, 1)));
|
|
1386
|
+
if (i[l] = w, k >= 1 && Math.abs(w - i[l]) < 10)
|
|
1383
1387
|
return y(u);
|
|
1384
1388
|
if (k > 2)
|
|
1385
1389
|
return bn("Scroll target is not reachable"), y(i[l]);
|
|
@@ -1486,7 +1490,7 @@ const Ul = Symbol.for("vuetify:v-slide-group"), jl = L({
|
|
|
1486
1490
|
...Tl({
|
|
1487
1491
|
selectedClass: "v-slide-group-item--active"
|
|
1488
1492
|
})
|
|
1489
|
-
}, "VSlideGroup"), ol =
|
|
1493
|
+
}, "VSlideGroup"), ol = J()({
|
|
1490
1494
|
name: "VSlideGroup",
|
|
1491
1495
|
props: jl(),
|
|
1492
1496
|
emits: {
|
|
@@ -1511,24 +1515,24 @@ const Ul = Symbol.for("vuetify:v-slide-group"), jl = L({
|
|
|
1511
1515
|
container: v.el,
|
|
1512
1516
|
duration: 200,
|
|
1513
1517
|
easing: "easeOutQuart"
|
|
1514
|
-
})),
|
|
1518
|
+
})), w = V(() => c.selected.value.length ? c.items.value.findIndex((b) => b.id === c.selected.value[0]) : -1), D = V(() => c.selected.value.length ? c.items.value.findIndex((b) => b.id === c.selected.value[c.selected.value.length - 1]) : -1);
|
|
1515
1519
|
if (Ge) {
|
|
1516
1520
|
let b = -1;
|
|
1517
|
-
|
|
1521
|
+
ie(() => [c.selected.value, y.value, h.value, o.value], () => {
|
|
1518
1522
|
cancelAnimationFrame(b), b = requestAnimationFrame(() => {
|
|
1519
1523
|
if (y.value && h.value) {
|
|
1520
1524
|
const g = o.value ? "width" : "height";
|
|
1521
1525
|
f.value = y.value[g], u.value = h.value[g], r.value = f.value + 1 < u.value;
|
|
1522
1526
|
}
|
|
1523
|
-
if (e.scrollToActive &&
|
|
1524
|
-
const g = m.el.children[
|
|
1525
|
-
|
|
1527
|
+
if (e.scrollToActive && w.value >= 0 && m.el) {
|
|
1528
|
+
const g = m.el.children[D.value];
|
|
1529
|
+
_(g, e.centerActive);
|
|
1526
1530
|
}
|
|
1527
1531
|
});
|
|
1528
1532
|
});
|
|
1529
1533
|
}
|
|
1530
1534
|
const F = ne(!1);
|
|
1531
|
-
function
|
|
1535
|
+
function _(b, g) {
|
|
1532
1536
|
let x = 0;
|
|
1533
1537
|
g ? x = ba({
|
|
1534
1538
|
containerElement: v.el,
|
|
@@ -1549,9 +1553,9 @@ const Ul = Symbol.for("vuetify:v-slide-group"), jl = L({
|
|
|
1549
1553
|
if (o.value && t.value && v.el) {
|
|
1550
1554
|
const {
|
|
1551
1555
|
scrollWidth: M,
|
|
1552
|
-
offsetWidth:
|
|
1556
|
+
offsetWidth: W
|
|
1553
1557
|
} = v.el;
|
|
1554
|
-
b = M -
|
|
1558
|
+
b = M - W - b;
|
|
1555
1559
|
}
|
|
1556
1560
|
o.value ? S.horizontal(b, k.value) : S(b, k.value);
|
|
1557
1561
|
}
|
|
@@ -1563,34 +1567,34 @@ const Ul = Symbol.for("vuetify:v-slide-group"), jl = L({
|
|
|
1563
1567
|
} = b.target;
|
|
1564
1568
|
i.value = o.value ? x : g;
|
|
1565
1569
|
}
|
|
1566
|
-
function
|
|
1570
|
+
function I(b) {
|
|
1567
1571
|
if (F.value = !0, !(!r.value || !m.el)) {
|
|
1568
1572
|
for (const g of b.composedPath())
|
|
1569
1573
|
for (const x of m.el.children)
|
|
1570
1574
|
if (x === g) {
|
|
1571
|
-
|
|
1575
|
+
_(x);
|
|
1572
1576
|
return;
|
|
1573
1577
|
}
|
|
1574
1578
|
}
|
|
1575
1579
|
}
|
|
1576
|
-
function
|
|
1580
|
+
function B(b) {
|
|
1577
1581
|
F.value = !1;
|
|
1578
1582
|
}
|
|
1579
|
-
let
|
|
1580
|
-
function
|
|
1581
|
-
!
|
|
1583
|
+
let z = !1;
|
|
1584
|
+
function j(b) {
|
|
1585
|
+
!z && !F.value && !(b.relatedTarget && m.el?.contains(b.relatedTarget)) && ce(), z = !1;
|
|
1582
1586
|
}
|
|
1583
|
-
function
|
|
1584
|
-
|
|
1587
|
+
function G() {
|
|
1588
|
+
z = !0;
|
|
1585
1589
|
}
|
|
1586
|
-
function
|
|
1590
|
+
function Z(b) {
|
|
1587
1591
|
if (!m.el) return;
|
|
1588
1592
|
function g(x) {
|
|
1589
1593
|
b.preventDefault(), ce(x);
|
|
1590
1594
|
}
|
|
1591
1595
|
o.value ? b.key === "ArrowRight" ? g(t.value ? "prev" : "next") : b.key === "ArrowLeft" && g(t.value ? "next" : "prev") : b.key === "ArrowDown" ? g("next") : b.key === "ArrowUp" && g("prev"), b.key === "Home" ? g("first") : b.key === "End" && g("last");
|
|
1592
1596
|
}
|
|
1593
|
-
function
|
|
1597
|
+
function K(b, g) {
|
|
1594
1598
|
if (!b) return;
|
|
1595
1599
|
let x = b;
|
|
1596
1600
|
do
|
|
@@ -1604,27 +1608,27 @@ const Ul = Symbol.for("vuetify:v-slide-group"), jl = L({
|
|
|
1604
1608
|
if (!b)
|
|
1605
1609
|
g = Vt(m.el)[0];
|
|
1606
1610
|
else if (b === "next") {
|
|
1607
|
-
if (g =
|
|
1611
|
+
if (g = K(m.el.querySelector(":focus"), b), !g) return ce("first");
|
|
1608
1612
|
} else if (b === "prev") {
|
|
1609
|
-
if (g =
|
|
1610
|
-
} else b === "first" ? (g = m.el.firstElementChild, g?.hasAttribute("disabled") && (g =
|
|
1613
|
+
if (g = K(m.el.querySelector(":focus"), b), !g) return ce("last");
|
|
1614
|
+
} else b === "first" ? (g = m.el.firstElementChild, g?.hasAttribute("disabled") && (g = K(g, "next"))) : b === "last" && (g = m.el.lastElementChild, g?.hasAttribute("disabled") && (g = K(g, "prev")));
|
|
1611
1615
|
g && g.focus({
|
|
1612
1616
|
preventScroll: !0
|
|
1613
1617
|
});
|
|
1614
1618
|
}
|
|
1615
|
-
function
|
|
1619
|
+
function q(b) {
|
|
1616
1620
|
const g = o.value && t.value ? -1 : 1, x = (b === "prev" ? -g : g) * f.value;
|
|
1617
1621
|
let N = i.value + x;
|
|
1618
1622
|
if (o.value && t.value && v.el) {
|
|
1619
1623
|
const {
|
|
1620
1624
|
scrollWidth: M,
|
|
1621
|
-
offsetWidth:
|
|
1625
|
+
offsetWidth: W
|
|
1622
1626
|
} = v.el;
|
|
1623
|
-
N += M -
|
|
1627
|
+
N += M - W;
|
|
1624
1628
|
}
|
|
1625
1629
|
$(N);
|
|
1626
1630
|
}
|
|
1627
|
-
const
|
|
1631
|
+
const ee = V(() => ({
|
|
1628
1632
|
next: c.next,
|
|
1629
1633
|
prev: c.prev,
|
|
1630
1634
|
select: c.select,
|
|
@@ -1655,7 +1659,7 @@ const Ul = Symbol.for("vuetify:v-slide-group"), jl = L({
|
|
|
1655
1659
|
const b = al(o.value, v.el), g = ha(o.value, v.el);
|
|
1656
1660
|
return b - g - Math.abs(i.value) > 1;
|
|
1657
1661
|
});
|
|
1658
|
-
return
|
|
1662
|
+
return te(() => d(e.tag, {
|
|
1659
1663
|
class: ae(["v-slide-group", {
|
|
1660
1664
|
"v-slide-group--vertical": !o.value,
|
|
1661
1665
|
"v-slide-group--has-affixes": de.value,
|
|
@@ -1663,16 +1667,16 @@ const Ul = Symbol.for("vuetify:v-slide-group"), jl = L({
|
|
|
1663
1667
|
}, l.value, e.class]),
|
|
1664
1668
|
style: be(e.style),
|
|
1665
1669
|
tabindex: F.value || c.selected.value.length ? -1 : 0,
|
|
1666
|
-
onFocus:
|
|
1670
|
+
onFocus: j
|
|
1667
1671
|
}, {
|
|
1668
1672
|
default: () => [de.value && C("div", {
|
|
1669
1673
|
key: "prev",
|
|
1670
1674
|
class: ae(["v-slide-group__prev", {
|
|
1671
1675
|
"v-slide-group__prev--disabled": !A.value
|
|
1672
1676
|
}]),
|
|
1673
|
-
onMousedown:
|
|
1674
|
-
onClick: () => A.value &&
|
|
1675
|
-
}, [n.prev?.(
|
|
1677
|
+
onMousedown: G,
|
|
1678
|
+
onClick: () => A.value && q("prev")
|
|
1679
|
+
}, [n.prev?.(ee.value) ?? d(Qt, null, {
|
|
1676
1680
|
default: () => [d(ge, {
|
|
1677
1681
|
icon: t.value ? e.nextIcon : e.prevIcon
|
|
1678
1682
|
}, null)]
|
|
@@ -1684,24 +1688,24 @@ const Ul = Symbol.for("vuetify:v-slide-group"), jl = L({
|
|
|
1684
1688
|
}, [C("div", {
|
|
1685
1689
|
ref: m,
|
|
1686
1690
|
class: "v-slide-group__content",
|
|
1687
|
-
onFocusin:
|
|
1688
|
-
onFocusout:
|
|
1689
|
-
onKeydown:
|
|
1690
|
-
}, [n.default?.(
|
|
1691
|
+
onFocusin: I,
|
|
1692
|
+
onFocusout: B,
|
|
1693
|
+
onKeydown: Z
|
|
1694
|
+
}, [n.default?.(ee.value)])]), de.value && C("div", {
|
|
1691
1695
|
key: "next",
|
|
1692
1696
|
class: ae(["v-slide-group__next", {
|
|
1693
1697
|
"v-slide-group__next--disabled": !p.value
|
|
1694
1698
|
}]),
|
|
1695
|
-
onMousedown:
|
|
1696
|
-
onClick: () => p.value &&
|
|
1697
|
-
}, [n.next?.(
|
|
1699
|
+
onMousedown: G,
|
|
1700
|
+
onClick: () => p.value && q("next")
|
|
1701
|
+
}, [n.next?.(ee.value) ?? d(Qt, null, {
|
|
1698
1702
|
default: () => [d(ge, {
|
|
1699
1703
|
icon: t.value ? e.prevIcon : e.nextIcon
|
|
1700
1704
|
}, null)]
|
|
1701
1705
|
})])]
|
|
1702
1706
|
})), {
|
|
1703
1707
|
selected: c.selected,
|
|
1704
|
-
scrollTo:
|
|
1708
|
+
scrollTo: q,
|
|
1705
1709
|
scrollOffset: i,
|
|
1706
1710
|
focus: ce,
|
|
1707
1711
|
hasPrev: A,
|
|
@@ -1728,7 +1732,7 @@ const Ul = Symbol.for("vuetify:v-slide-group"), jl = L({
|
|
|
1728
1732
|
...Bt({
|
|
1729
1733
|
variant: "tonal"
|
|
1730
1734
|
})
|
|
1731
|
-
}, "VChipGroup"), Sa =
|
|
1735
|
+
}, "VChipGroup"), Sa = J()({
|
|
1732
1736
|
name: "VChipGroup",
|
|
1733
1737
|
props: pa(),
|
|
1734
1738
|
emits: {
|
|
@@ -1755,9 +1759,9 @@ const Ul = Symbol.for("vuetify:v-slide-group"), jl = L({
|
|
|
1755
1759
|
filter: T(() => e.filter),
|
|
1756
1760
|
variant: T(() => e.variant)
|
|
1757
1761
|
}
|
|
1758
|
-
}),
|
|
1762
|
+
}), te(() => {
|
|
1759
1763
|
const f = ol.filterProps(e);
|
|
1760
|
-
return d(ol,
|
|
1764
|
+
return d(ol, U(f, {
|
|
1761
1765
|
class: ["v-chip-group", {
|
|
1762
1766
|
"v-chip-group--column": e.column
|
|
1763
1767
|
}, t.value, e.class],
|
|
@@ -1830,7 +1834,7 @@ const Ul = Symbol.for("vuetify:v-slide-group"), jl = L({
|
|
|
1830
1834
|
...Bt({
|
|
1831
1835
|
variant: "tonal"
|
|
1832
1836
|
})
|
|
1833
|
-
}, "VChip"), Kl =
|
|
1837
|
+
}, "VChip"), Kl = J()({
|
|
1834
1838
|
name: "VChip",
|
|
1835
1839
|
directives: {
|
|
1836
1840
|
vRipple: Oe
|
|
@@ -1862,41 +1866,41 @@ const Ul = Symbol.for("vuetify:v-slide-group"), jl = L({
|
|
|
1862
1866
|
sizeClasses: u
|
|
1863
1867
|
} = kn(e), {
|
|
1864
1868
|
themeClasses: o
|
|
1865
|
-
} = Re(e), v = pe(e, "modelValue"), y = Zt(e, Gl, !1), m = Zt(e, Ul, !1), h = bl(e, n), S = T(() => e.link !== !1 && h.isLink.value), k = V(() => !e.disabled && e.link !== !1 && (!!y || e.link || h.isClickable.value)),
|
|
1869
|
+
} = Re(e), v = pe(e, "modelValue"), y = Zt(e, Gl, !1), m = Zt(e, Ul, !1), h = bl(e, n), S = T(() => e.link !== !1 && h.isLink.value), k = V(() => !e.disabled && e.link !== !1 && (!!y || e.link || h.isClickable.value)), w = T(() => ({
|
|
1866
1870
|
"aria-label": s(e.closeLabel),
|
|
1867
1871
|
disabled: e.disabled,
|
|
1868
|
-
onClick(
|
|
1869
|
-
|
|
1872
|
+
onClick(I) {
|
|
1873
|
+
I.preventDefault(), I.stopPropagation(), v.value = !1, t("click:close", I);
|
|
1870
1874
|
}
|
|
1871
1875
|
}));
|
|
1872
|
-
|
|
1873
|
-
|
|
1876
|
+
ie(v, (I) => {
|
|
1877
|
+
I ? (y?.register(), m?.register()) : (y?.unregister(), m?.unregister());
|
|
1874
1878
|
});
|
|
1875
1879
|
const {
|
|
1876
|
-
colorClasses:
|
|
1880
|
+
colorClasses: D,
|
|
1877
1881
|
colorStyles: F,
|
|
1878
|
-
variantClasses:
|
|
1882
|
+
variantClasses: _
|
|
1879
1883
|
} = ml(() => ({
|
|
1880
1884
|
color: !y || y.isSelected.value ? e.color ?? e.baseColor : e.baseColor,
|
|
1881
1885
|
variant: e.variant
|
|
1882
1886
|
}));
|
|
1883
|
-
function $(
|
|
1884
|
-
t("click",
|
|
1887
|
+
function $(I) {
|
|
1888
|
+
t("click", I), k.value && (h.navigate?.(I), y?.toggle());
|
|
1885
1889
|
}
|
|
1886
|
-
function P(
|
|
1887
|
-
(
|
|
1890
|
+
function P(I) {
|
|
1891
|
+
(I.key === "Enter" || I.key === " ") && (I.preventDefault(), $(I));
|
|
1888
1892
|
}
|
|
1889
1893
|
return () => {
|
|
1890
|
-
const
|
|
1891
|
-
return v.value && Te(d(
|
|
1894
|
+
const I = h.isLink.value ? "a" : e.tag, B = !!(e.appendIcon || e.appendAvatar), z = !!(B || l.append), j = !!(l.close || e.closable), G = !!(l.filter || e.filter) && y, Z = !!(e.prependIcon || e.prependAvatar), K = !!(Z || l.prepend);
|
|
1895
|
+
return v.value && Te(d(I, U(h.linkProps, {
|
|
1892
1896
|
class: ["v-chip", {
|
|
1893
1897
|
"v-chip--disabled": e.disabled,
|
|
1894
1898
|
"v-chip--label": e.label,
|
|
1895
1899
|
"v-chip--link": k.value,
|
|
1896
|
-
"v-chip--filter":
|
|
1900
|
+
"v-chip--filter": G,
|
|
1897
1901
|
"v-chip--pill": e.pill,
|
|
1898
1902
|
[`${e.activeClass}`]: e.activeClass && h.isActive?.value
|
|
1899
|
-
}, o.value, c.value,
|
|
1903
|
+
}, o.value, c.value, D.value, r.value, i.value, f.value, u.value, _.value, y?.selectedClass.value, e.class],
|
|
1900
1904
|
style: [F.value, e.style],
|
|
1901
1905
|
disabled: e.disabled || void 0,
|
|
1902
1906
|
draggable: e.draggable,
|
|
@@ -1904,7 +1908,7 @@ const Ul = Symbol.for("vuetify:v-slide-group"), jl = L({
|
|
|
1904
1908
|
onClick: $,
|
|
1905
1909
|
onKeydown: k.value && !S.value && P
|
|
1906
1910
|
}), {
|
|
1907
|
-
default: () => [hl(k.value, "v-chip"),
|
|
1911
|
+
default: () => [hl(k.value, "v-chip"), G && d(Dl, {
|
|
1908
1912
|
key: "filter"
|
|
1909
1913
|
}, {
|
|
1910
1914
|
default: () => [Te(C("div", {
|
|
@@ -1921,12 +1925,12 @@ const Ul = Symbol.for("vuetify:v-slide-group"), jl = L({
|
|
|
1921
1925
|
key: "filter-icon",
|
|
1922
1926
|
icon: e.filterIcon
|
|
1923
1927
|
}, null)]), [[it, y.isSelected.value]])]
|
|
1924
|
-
}),
|
|
1928
|
+
}), K && C("div", {
|
|
1925
1929
|
key: "prepend",
|
|
1926
1930
|
class: "v-chip__prepend"
|
|
1927
1931
|
}, [l.prepend ? d(Se, {
|
|
1928
1932
|
key: "prepend-defaults",
|
|
1929
|
-
disabled: !
|
|
1933
|
+
disabled: !Z,
|
|
1930
1934
|
defaults: {
|
|
1931
1935
|
VAvatar: {
|
|
1932
1936
|
image: e.prependAvatar,
|
|
@@ -1937,7 +1941,7 @@ const Ul = Symbol.for("vuetify:v-slide-group"), jl = L({
|
|
|
1937
1941
|
start: !0
|
|
1938
1942
|
}
|
|
1939
1943
|
}
|
|
1940
|
-
}, l.prepend) : C(
|
|
1944
|
+
}, l.prepend) : C(ue, null, [e.prependIcon && d(ge, {
|
|
1941
1945
|
key: "prepend-icon",
|
|
1942
1946
|
icon: e.prependIcon,
|
|
1943
1947
|
start: !0
|
|
@@ -1955,12 +1959,12 @@ const Ul = Symbol.for("vuetify:v-slide-group"), jl = L({
|
|
|
1955
1959
|
toggle: y?.toggle,
|
|
1956
1960
|
value: y?.value.value,
|
|
1957
1961
|
disabled: e.disabled
|
|
1958
|
-
}) ?? Ue(e.text)]),
|
|
1962
|
+
}) ?? Ue(e.text)]), z && C("div", {
|
|
1959
1963
|
key: "append",
|
|
1960
1964
|
class: "v-chip__append"
|
|
1961
1965
|
}, [l.append ? d(Se, {
|
|
1962
1966
|
key: "append-defaults",
|
|
1963
|
-
disabled: !
|
|
1967
|
+
disabled: !B,
|
|
1964
1968
|
defaults: {
|
|
1965
1969
|
VAvatar: {
|
|
1966
1970
|
end: !0,
|
|
@@ -1971,7 +1975,7 @@ const Ul = Symbol.for("vuetify:v-slide-group"), jl = L({
|
|
|
1971
1975
|
icon: e.appendIcon
|
|
1972
1976
|
}
|
|
1973
1977
|
}
|
|
1974
|
-
}, l.append) : C(
|
|
1978
|
+
}, l.append) : C(ue, null, [e.appendIcon && d(ge, {
|
|
1975
1979
|
key: "append-icon",
|
|
1976
1980
|
end: !0,
|
|
1977
1981
|
icon: e.appendIcon
|
|
@@ -1979,12 +1983,12 @@ const Ul = Symbol.for("vuetify:v-slide-group"), jl = L({
|
|
|
1979
1983
|
key: "append-avatar",
|
|
1980
1984
|
end: !0,
|
|
1981
1985
|
image: e.appendAvatar
|
|
1982
|
-
}, null)])]),
|
|
1986
|
+
}, null)])]), j && C("button", U({
|
|
1983
1987
|
key: "close",
|
|
1984
1988
|
class: "v-chip__close",
|
|
1985
1989
|
type: "button",
|
|
1986
1990
|
"data-testid": "close-chip"
|
|
1987
|
-
},
|
|
1991
|
+
}, w.value), [l.close ? d(Se, {
|
|
1988
1992
|
key: "close-defaults",
|
|
1989
1993
|
defaults: {
|
|
1990
1994
|
VIcon: {
|
|
@@ -2011,7 +2015,7 @@ const Ul = Symbol.for("vuetify:v-slide-group"), jl = L({
|
|
|
2011
2015
|
...Xe(),
|
|
2012
2016
|
...ke(),
|
|
2013
2017
|
...Pe()
|
|
2014
|
-
}, "VSheet"), Va =
|
|
2018
|
+
}, "VSheet"), Va = J()({
|
|
2015
2019
|
name: "VSheet",
|
|
2016
2020
|
props: Ca(),
|
|
2017
2021
|
setup(e, a) {
|
|
@@ -2036,7 +2040,7 @@ const Ul = Symbol.for("vuetify:v-slide-group"), jl = L({
|
|
|
2036
2040
|
} = yl(e), {
|
|
2037
2041
|
roundedClasses: o
|
|
2038
2042
|
} = Ye(e);
|
|
2039
|
-
return
|
|
2043
|
+
return te(() => d(e.tag, {
|
|
2040
2044
|
class: ae(["v-sheet", t.value, l.value, c.value, i.value, u.value, o.value, e.class]),
|
|
2041
2045
|
style: be([s.value, r.value, f.value, e.style])
|
|
2042
2046
|
}, n)), {};
|
|
@@ -2053,7 +2057,7 @@ const Ul = Symbol.for("vuetify:v-slide-group"), jl = L({
|
|
|
2053
2057
|
const u = t.headers.find((m) => (m.advancedFilter?.key ?? m.key) === f), o = i.comparison === "=" ? ":" : " " + i.comparison, y = (Array.isArray(i.value) ? i.value : [i.value]).map((m) => {
|
|
2054
2058
|
const h = u.advancedFilter?.options?.items ?? [];
|
|
2055
2059
|
let S = m, k;
|
|
2056
|
-
return h.length && (k = h.find((
|
|
2060
|
+
return h.length && (k = h.find((w) => w.value === m), k && (S = k.title)), typeof u.advancedFilter?.valueFormatter == "function" && (S = u.advancedFilter.valueFormatter({
|
|
2057
2061
|
item: k,
|
|
2058
2062
|
value: m
|
|
2059
2063
|
})), S;
|
|
@@ -2062,11 +2066,11 @@ const Ul = Symbol.for("vuetify:v-slide-group"), jl = L({
|
|
|
2062
2066
|
}, c = (i) => {
|
|
2063
2067
|
l.value[i] = { comparison: "=", value: null }, r("save");
|
|
2064
2068
|
}, r = a;
|
|
2065
|
-
return (i, f) => (
|
|
2066
|
-
default:
|
|
2069
|
+
return (i, f) => (Q(), fe(Va, null, {
|
|
2070
|
+
default: Y(() => [
|
|
2067
2071
|
d(Sa, null, {
|
|
2068
|
-
default:
|
|
2069
|
-
(
|
|
2072
|
+
default: Y(() => [
|
|
2073
|
+
(Q(!0), Ee(ue, null, wt(E(n), (u, o) => (Q(), fe(Kl, {
|
|
2070
2074
|
key: o,
|
|
2071
2075
|
class: "my-0",
|
|
2072
2076
|
text: s(u, o),
|
|
@@ -2096,7 +2100,7 @@ const Ul = Symbol.for("vuetify:v-slide-group"), jl = L({
|
|
|
2096
2100
|
component: xl
|
|
2097
2101
|
}
|
|
2098
2102
|
})
|
|
2099
|
-
}, "VCounter"), wa =
|
|
2103
|
+
}, "VCounter"), wa = J()({
|
|
2100
2104
|
name: "VCounter",
|
|
2101
2105
|
functional: !0,
|
|
2102
2106
|
props: Ia(),
|
|
@@ -2105,7 +2109,7 @@ const Ul = Symbol.for("vuetify:v-slide-group"), jl = L({
|
|
|
2105
2109
|
slots: n
|
|
2106
2110
|
} = a;
|
|
2107
2111
|
const t = T(() => e.max ? `${e.value} / ${e.max}` : String(e.value));
|
|
2108
|
-
return
|
|
2112
|
+
return te(() => d(Rt, {
|
|
2109
2113
|
transition: e.transition
|
|
2110
2114
|
}, {
|
|
2111
2115
|
default: () => [Te(C("div", {
|
|
@@ -2123,14 +2127,14 @@ const Ul = Symbol.for("vuetify:v-slide-group"), jl = L({
|
|
|
2123
2127
|
}), _a = L({
|
|
2124
2128
|
floating: Boolean,
|
|
2125
2129
|
...oe()
|
|
2126
|
-
}, "VFieldLabel"), lt =
|
|
2130
|
+
}, "VFieldLabel"), lt = J()({
|
|
2127
2131
|
name: "VFieldLabel",
|
|
2128
2132
|
props: _a(),
|
|
2129
2133
|
setup(e, a) {
|
|
2130
2134
|
let {
|
|
2131
2135
|
slots: n
|
|
2132
2136
|
} = a;
|
|
2133
|
-
return
|
|
2137
|
+
return te(() => d(El, {
|
|
2134
2138
|
class: ae(["v-field-label", {
|
|
2135
2139
|
"v-field-label--floating": e.floating
|
|
2136
2140
|
}, e.class]),
|
|
@@ -2179,7 +2183,7 @@ const Ul = Symbol.for("vuetify:v-slide-group"), jl = L({
|
|
|
2179
2183
|
...Cl(),
|
|
2180
2184
|
...Xe(),
|
|
2181
2185
|
...Pe()
|
|
2182
|
-
}, "VField"), sl =
|
|
2186
|
+
}, "VField"), sl = J()({
|
|
2183
2187
|
name: "VField",
|
|
2184
2188
|
inheritAttrs: !1,
|
|
2185
2189
|
props: {
|
|
@@ -2212,58 +2216,58 @@ const Ul = Symbol.for("vuetify:v-slide-group"), jl = L({
|
|
|
2212
2216
|
roundedClasses: v
|
|
2213
2217
|
} = Ye(e), {
|
|
2214
2218
|
rtlClasses: y
|
|
2215
|
-
} = vt(), m = T(() => e.dirty || e.active), h = T(() => !!(e.label || l.label)), S = T(() => !e.singleLine && h.value), k = De(),
|
|
2219
|
+
} = vt(), m = T(() => e.dirty || e.active), h = T(() => !!(e.label || l.label)), S = T(() => !e.singleLine && h.value), k = De(), w = V(() => e.id || `input-${k}`), D = T(() => e.details ? `${w.value}-messages` : void 0), F = R(), _ = R(), $ = R(), P = V(() => ["plain", "underlined"].includes(e.variant)), I = V(() => e.error || e.disabled ? void 0 : m.value && i.value ? e.color : e.baseColor), B = V(() => {
|
|
2216
2220
|
if (!(!e.iconColor || e.glow && !i.value))
|
|
2217
|
-
return e.iconColor === !0 ?
|
|
2221
|
+
return e.iconColor === !0 ? I.value : e.iconColor;
|
|
2218
2222
|
}), {
|
|
2219
|
-
backgroundColorClasses:
|
|
2220
|
-
backgroundColorStyles:
|
|
2223
|
+
backgroundColorClasses: z,
|
|
2224
|
+
backgroundColorStyles: j
|
|
2221
2225
|
} = dt(() => e.bgColor), {
|
|
2222
|
-
textColorClasses:
|
|
2223
|
-
textColorStyles:
|
|
2224
|
-
} = ct(
|
|
2225
|
-
|
|
2226
|
+
textColorClasses: G,
|
|
2227
|
+
textColorStyles: Z
|
|
2228
|
+
} = ct(I);
|
|
2229
|
+
ie(m, (q) => {
|
|
2226
2230
|
if (S.value && !Pl()) {
|
|
2227
|
-
const
|
|
2231
|
+
const ee = F.value.$el, se = _.value.$el;
|
|
2228
2232
|
requestAnimationFrame(() => {
|
|
2229
|
-
const de = xn(
|
|
2233
|
+
const de = xn(ee), A = se.getBoundingClientRect(), p = A.x - de.x, b = A.y - de.y - (de.height / 2 - A.height / 2), g = A.width / 0.75, x = Math.abs(g - de.width) > 1 ? {
|
|
2230
2234
|
maxWidth: Me(g)
|
|
2231
|
-
} : void 0, N = getComputedStyle(
|
|
2232
|
-
|
|
2235
|
+
} : void 0, N = getComputedStyle(ee), M = getComputedStyle(se), W = parseFloat(N.transitionDuration) * 1e3 || 150, O = parseFloat(M.getPropertyValue("--v-field-label-scale")), X = M.getPropertyValue("color");
|
|
2236
|
+
ee.style.visibility = "visible", se.style.visibility = "hidden", In(ee, {
|
|
2233
2237
|
transform: `translate(${p}px, ${b}px) scale(${O})`,
|
|
2234
|
-
color:
|
|
2238
|
+
color: X,
|
|
2235
2239
|
...x
|
|
2236
2240
|
}, {
|
|
2237
|
-
duration:
|
|
2241
|
+
duration: W,
|
|
2238
2242
|
easing: wn,
|
|
2239
|
-
direction:
|
|
2243
|
+
direction: q ? "normal" : "reverse"
|
|
2240
2244
|
}).finished.then(() => {
|
|
2241
|
-
|
|
2245
|
+
ee.style.removeProperty("visibility"), se.style.removeProperty("visibility");
|
|
2242
2246
|
});
|
|
2243
2247
|
});
|
|
2244
2248
|
}
|
|
2245
2249
|
}, {
|
|
2246
2250
|
flush: "post"
|
|
2247
2251
|
});
|
|
2248
|
-
const
|
|
2252
|
+
const K = V(() => ({
|
|
2249
2253
|
isActive: m,
|
|
2250
2254
|
isFocused: i,
|
|
2251
2255
|
controlRef: $,
|
|
2252
2256
|
blur: u,
|
|
2253
2257
|
focus: f
|
|
2254
2258
|
}));
|
|
2255
|
-
function ce(
|
|
2256
|
-
|
|
2259
|
+
function ce(q) {
|
|
2260
|
+
q.target !== document.activeElement && q.preventDefault();
|
|
2257
2261
|
}
|
|
2258
|
-
return
|
|
2259
|
-
const
|
|
2260
|
-
...
|
|
2262
|
+
return te(() => {
|
|
2263
|
+
const q = e.variant === "outlined", ee = !!(l["prepend-inner"] || e.prependInnerIcon), se = !!(e.clearable || l.clear) && !e.disabled, de = !!(l["append-inner"] || e.appendInnerIcon || se), A = () => l.label ? l.label({
|
|
2264
|
+
...K.value,
|
|
2261
2265
|
label: e.label,
|
|
2262
2266
|
props: {
|
|
2263
|
-
for:
|
|
2267
|
+
for: w.value
|
|
2264
2268
|
}
|
|
2265
2269
|
}) : e.label;
|
|
2266
|
-
return C("div",
|
|
2270
|
+
return C("div", U({
|
|
2267
2271
|
class: ["v-field", {
|
|
2268
2272
|
"v-field--active": m.value,
|
|
2269
2273
|
"v-field--appended": de,
|
|
@@ -2275,13 +2279,13 @@ const Ul = Symbol.for("vuetify:v-slide-group"), jl = L({
|
|
|
2275
2279
|
"v-field--flat": e.flat,
|
|
2276
2280
|
"v-field--has-background": !!e.bgColor,
|
|
2277
2281
|
"v-field--persistent-clear": e.persistentClear,
|
|
2278
|
-
"v-field--prepended":
|
|
2282
|
+
"v-field--prepended": ee,
|
|
2279
2283
|
"v-field--reverse": e.reverse,
|
|
2280
2284
|
"v-field--single-line": e.singleLine,
|
|
2281
2285
|
"v-field--no-label": !A(),
|
|
2282
2286
|
[`v-field--variant-${e.variant}`]: !0
|
|
2283
|
-
}, s.value,
|
|
2284
|
-
style: [
|
|
2287
|
+
}, s.value, z.value, r.value, c.value, v.value, y.value, e.class],
|
|
2288
|
+
style: [j.value, e.style],
|
|
2285
2289
|
onClick: ce
|
|
2286
2290
|
}, n), [C("div", {
|
|
2287
2291
|
class: "v-field__overlay"
|
|
@@ -2291,45 +2295,45 @@ const Ul = Symbol.for("vuetify:v-slide-group"), jl = L({
|
|
|
2291
2295
|
color: e.error ? "error" : typeof e.loading == "string" ? e.loading : e.color
|
|
2292
2296
|
}, {
|
|
2293
2297
|
default: l.loader
|
|
2294
|
-
}),
|
|
2298
|
+
}), ee && C("div", {
|
|
2295
2299
|
key: "prepend",
|
|
2296
2300
|
class: "v-field__prepend-inner"
|
|
2297
2301
|
}, [e.prependInnerIcon && d(o, {
|
|
2298
2302
|
key: "prepend-icon",
|
|
2299
2303
|
name: "prependInner",
|
|
2300
|
-
color:
|
|
2301
|
-
}, null), l["prepend-inner"]?.(
|
|
2304
|
+
color: B.value
|
|
2305
|
+
}, null), l["prepend-inner"]?.(K.value)]), C("div", {
|
|
2302
2306
|
class: "v-field__field",
|
|
2303
2307
|
"data-no-activator": ""
|
|
2304
2308
|
}, [["filled", "solo", "solo-inverted", "solo-filled"].includes(e.variant) && S.value && d(lt, {
|
|
2305
2309
|
key: "floating-label",
|
|
2306
|
-
ref:
|
|
2307
|
-
class: ae([
|
|
2310
|
+
ref: _,
|
|
2311
|
+
class: ae([G.value]),
|
|
2308
2312
|
floating: !0,
|
|
2309
|
-
for:
|
|
2313
|
+
for: w.value,
|
|
2310
2314
|
"aria-hidden": !m.value,
|
|
2311
|
-
style: be(
|
|
2315
|
+
style: be(Z.value)
|
|
2312
2316
|
}, {
|
|
2313
2317
|
default: () => [A()]
|
|
2314
2318
|
}), h.value && d(lt, {
|
|
2315
2319
|
key: "label",
|
|
2316
2320
|
ref: F,
|
|
2317
|
-
for:
|
|
2321
|
+
for: w.value
|
|
2318
2322
|
}, {
|
|
2319
2323
|
default: () => [A()]
|
|
2320
2324
|
}), l.default?.({
|
|
2321
|
-
...
|
|
2325
|
+
...K.value,
|
|
2322
2326
|
props: {
|
|
2323
|
-
id:
|
|
2327
|
+
id: w.value,
|
|
2324
2328
|
class: "v-field__input",
|
|
2325
|
-
"aria-describedby":
|
|
2329
|
+
"aria-describedby": D.value
|
|
2326
2330
|
},
|
|
2327
2331
|
focus: f,
|
|
2328
2332
|
blur: u
|
|
2329
2333
|
}) ?? C("div", {
|
|
2330
|
-
id:
|
|
2334
|
+
id: w.value,
|
|
2331
2335
|
class: "v-field__input",
|
|
2332
|
-
"aria-describedby":
|
|
2336
|
+
"aria-describedby": D.value
|
|
2333
2337
|
}, null)]), se && d(Dl, {
|
|
2334
2338
|
key: "clear"
|
|
2335
2339
|
}, {
|
|
@@ -2346,7 +2350,7 @@ const Ul = Symbol.for("vuetify:v-slide-group"), jl = L({
|
|
|
2346
2350
|
}
|
|
2347
2351
|
}, {
|
|
2348
2352
|
default: () => [l.clear ? l.clear({
|
|
2349
|
-
...
|
|
2353
|
+
...K.value,
|
|
2350
2354
|
props: {
|
|
2351
2355
|
onFocus: f,
|
|
2352
2356
|
onBlur: u,
|
|
@@ -2363,37 +2367,37 @@ const Ul = Symbol.for("vuetify:v-slide-group"), jl = L({
|
|
|
2363
2367
|
}), de && C("div", {
|
|
2364
2368
|
key: "append",
|
|
2365
2369
|
class: "v-field__append-inner"
|
|
2366
|
-
}, [l["append-inner"]?.(
|
|
2370
|
+
}, [l["append-inner"]?.(K.value), e.appendInnerIcon && d(o, {
|
|
2367
2371
|
key: "append-icon",
|
|
2368
2372
|
name: "appendInner",
|
|
2369
|
-
color:
|
|
2373
|
+
color: B.value
|
|
2370
2374
|
}, null)]), C("div", {
|
|
2371
|
-
class: ae(["v-field__outline",
|
|
2372
|
-
style: be(
|
|
2373
|
-
}, [
|
|
2375
|
+
class: ae(["v-field__outline", G.value]),
|
|
2376
|
+
style: be(Z.value)
|
|
2377
|
+
}, [q && C(ue, null, [C("div", {
|
|
2374
2378
|
class: "v-field__outline__start"
|
|
2375
2379
|
}, null), S.value && C("div", {
|
|
2376
2380
|
class: "v-field__outline__notch"
|
|
2377
2381
|
}, [d(lt, {
|
|
2378
|
-
ref:
|
|
2382
|
+
ref: _,
|
|
2379
2383
|
floating: !0,
|
|
2380
|
-
for:
|
|
2384
|
+
for: w.value,
|
|
2381
2385
|
"aria-hidden": !m.value
|
|
2382
2386
|
}, {
|
|
2383
2387
|
default: () => [A()]
|
|
2384
2388
|
})]), C("div", {
|
|
2385
2389
|
class: "v-field__outline__end"
|
|
2386
2390
|
}, null)]), P.value && S.value && d(lt, {
|
|
2387
|
-
ref:
|
|
2391
|
+
ref: _,
|
|
2388
2392
|
floating: !0,
|
|
2389
|
-
for:
|
|
2393
|
+
for: w.value,
|
|
2390
2394
|
"aria-hidden": !m.value
|
|
2391
2395
|
}, {
|
|
2392
2396
|
default: () => [A()]
|
|
2393
2397
|
})])]);
|
|
2394
2398
|
}), {
|
|
2395
2399
|
controlRef: $,
|
|
2396
|
-
fieldIconColor:
|
|
2400
|
+
fieldIconColor: B
|
|
2397
2401
|
};
|
|
2398
2402
|
}
|
|
2399
2403
|
}), Aa = L({
|
|
@@ -2434,7 +2438,7 @@ const Da = ["color", "file", "time", "date", "datetime-local", "week", "month"],
|
|
|
2434
2438
|
...Aa(),
|
|
2435
2439
|
...jt(),
|
|
2436
2440
|
...ql()
|
|
2437
|
-
}, "VTextField"), qe =
|
|
2441
|
+
}, "VTextField"), qe = J()({
|
|
2438
2442
|
name: "VTextField",
|
|
2439
2443
|
directives: {
|
|
2440
2444
|
vIntersect: el
|
|
@@ -2464,72 +2468,75 @@ const Da = ["color", "file", "time", "date", "datetime-local", "week", "month"],
|
|
|
2464
2468
|
if (!(!e.counter || typeof e.counter != "number" && typeof e.counter != "string"))
|
|
2465
2469
|
return e.counter;
|
|
2466
2470
|
}), v = V(() => ["plain", "underlined"].includes(e.variant)), y = R(), m = R(), h = R(), S = Fa(e), k = V(() => Da.includes(e.type) || e.persistentPlaceholder || c.value || e.active);
|
|
2467
|
-
function
|
|
2471
|
+
function w() {
|
|
2468
2472
|
S.isSuppressing.value && S.update(), c.value || r(), me(() => {
|
|
2469
2473
|
h.value !== document.activeElement && h.value?.focus();
|
|
2470
2474
|
});
|
|
2471
2475
|
}
|
|
2472
|
-
function
|
|
2473
|
-
t("mousedown:control", P), P.target !== h.value && (
|
|
2476
|
+
function D(P) {
|
|
2477
|
+
t("mousedown:control", P), P.target !== h.value && (w(), P.preventDefault());
|
|
2474
2478
|
}
|
|
2475
2479
|
function F(P) {
|
|
2476
2480
|
t("click:control", P);
|
|
2477
2481
|
}
|
|
2478
|
-
function
|
|
2479
|
-
P.stopPropagation(),
|
|
2480
|
-
|
|
2482
|
+
function _(P, I) {
|
|
2483
|
+
P.stopPropagation(), w(), me(() => {
|
|
2484
|
+
I(), Vl(e["onClick:clear"], P);
|
|
2481
2485
|
});
|
|
2482
2486
|
}
|
|
2483
2487
|
function $(P) {
|
|
2484
|
-
const
|
|
2485
|
-
if (
|
|
2486
|
-
|
|
2487
|
-
|
|
2488
|
-
_.selectionStart = D[0], _.selectionEnd = D[1];
|
|
2489
|
-
});
|
|
2488
|
+
const I = P.target;
|
|
2489
|
+
if (!(e.modelModifiers?.trim && ["text", "search", "password", "tel", "url"].includes(e.type))) {
|
|
2490
|
+
s.value = I.value;
|
|
2491
|
+
return;
|
|
2490
2492
|
}
|
|
2493
|
+
const B = I.value, z = I.selectionStart, j = I.selectionEnd;
|
|
2494
|
+
s.value = B, me(() => {
|
|
2495
|
+
let G = 0;
|
|
2496
|
+
B.trimStart().length === I.value.length && (G = B.length - I.value.length), z != null && (I.selectionStart = z - G), j != null && (I.selectionEnd = j - G);
|
|
2497
|
+
});
|
|
2491
2498
|
}
|
|
2492
|
-
return
|
|
2493
|
-
const P = !!(l.counter || e.counter !== !1 && e.counter != null),
|
|
2494
|
-
modelValue:
|
|
2495
|
-
...
|
|
2496
|
-
} = ot.filterProps(e),
|
|
2497
|
-
return d(ot,
|
|
2499
|
+
return te(() => {
|
|
2500
|
+
const P = !!(l.counter || e.counter !== !1 && e.counter != null), I = !!(P || l.details), [B, z] = Ot(n), {
|
|
2501
|
+
modelValue: j,
|
|
2502
|
+
...G
|
|
2503
|
+
} = ot.filterProps(e), Z = sl.filterProps(e);
|
|
2504
|
+
return d(ot, U({
|
|
2498
2505
|
ref: y,
|
|
2499
2506
|
modelValue: s.value,
|
|
2500
|
-
"onUpdate:modelValue": (
|
|
2507
|
+
"onUpdate:modelValue": (K) => s.value = K,
|
|
2501
2508
|
class: ["v-text-field", {
|
|
2502
2509
|
"v-text-field--prefixed": e.prefix,
|
|
2503
2510
|
"v-text-field--suffixed": e.suffix,
|
|
2504
2511
|
"v-input--plain-underlined": v.value
|
|
2505
2512
|
}, e.class],
|
|
2506
2513
|
style: e.style
|
|
2507
|
-
},
|
|
2514
|
+
}, B, G, {
|
|
2508
2515
|
centerAffix: !v.value,
|
|
2509
2516
|
focused: c.value
|
|
2510
2517
|
}), {
|
|
2511
2518
|
...l,
|
|
2512
|
-
default: (
|
|
2519
|
+
default: (K) => {
|
|
2513
2520
|
let {
|
|
2514
2521
|
id: ce,
|
|
2515
|
-
isDisabled:
|
|
2516
|
-
isDirty:
|
|
2522
|
+
isDisabled: q,
|
|
2523
|
+
isDirty: ee,
|
|
2517
2524
|
isReadonly: se,
|
|
2518
2525
|
isValid: de,
|
|
2519
2526
|
hasDetails: A,
|
|
2520
2527
|
reset: p
|
|
2521
|
-
} =
|
|
2522
|
-
return d(sl,
|
|
2528
|
+
} = K;
|
|
2529
|
+
return d(sl, U({
|
|
2523
2530
|
ref: m,
|
|
2524
|
-
onMousedown:
|
|
2531
|
+
onMousedown: D,
|
|
2525
2532
|
onClick: F,
|
|
2526
|
-
"onClick:clear": (b) =>
|
|
2533
|
+
"onClick:clear": (b) => _(b, p),
|
|
2527
2534
|
role: e.role
|
|
2528
|
-
}, Ze(
|
|
2535
|
+
}, Ze(Z, ["onClick:clear"]), {
|
|
2529
2536
|
id: ce.value,
|
|
2530
|
-
active: k.value ||
|
|
2531
|
-
dirty:
|
|
2532
|
-
disabled:
|
|
2537
|
+
active: k.value || ee.value,
|
|
2538
|
+
dirty: ee.value || e.dirty,
|
|
2539
|
+
disabled: q.value,
|
|
2533
2540
|
focused: c.value,
|
|
2534
2541
|
details: A.value,
|
|
2535
2542
|
error: de.value === !1
|
|
@@ -2543,13 +2550,13 @@ const Da = ["color", "file", "time", "date", "datetime-local", "week", "month"],
|
|
|
2543
2550
|
},
|
|
2544
2551
|
controlRef: N
|
|
2545
2552
|
} = b;
|
|
2546
|
-
const M = Te(C("input",
|
|
2547
|
-
ref: (
|
|
2553
|
+
const M = Te(C("input", U({
|
|
2554
|
+
ref: (W) => h.value = N.value = W,
|
|
2548
2555
|
value: s.value,
|
|
2549
2556
|
onInput: $,
|
|
2550
2557
|
autofocus: e.autofocus,
|
|
2551
2558
|
readonly: se.value,
|
|
2552
|
-
disabled:
|
|
2559
|
+
disabled: q.value,
|
|
2553
2560
|
name: S.fieldName.value,
|
|
2554
2561
|
autocomplete: S.fieldAutocomplete.value,
|
|
2555
2562
|
placeholder: e.placeholder,
|
|
@@ -2558,12 +2565,12 @@ const Da = ["color", "file", "time", "date", "datetime-local", "week", "month"],
|
|
|
2558
2565
|
type: e.type,
|
|
2559
2566
|
onFocus: r,
|
|
2560
2567
|
onBlur: i
|
|
2561
|
-
}, x,
|
|
2568
|
+
}, x, z), null), [[el, {
|
|
2562
2569
|
handler: f
|
|
2563
2570
|
}, null, {
|
|
2564
2571
|
once: !0
|
|
2565
2572
|
}]]);
|
|
2566
|
-
return C(
|
|
2573
|
+
return C(ue, null, [e.prefix && C("span", {
|
|
2567
2574
|
class: "v-text-field__prefix"
|
|
2568
2575
|
}, [C("span", {
|
|
2569
2576
|
class: "v-text-field__prefix__text"
|
|
@@ -2580,7 +2587,7 @@ const Da = ["color", "file", "time", "date", "datetime-local", "week", "month"],
|
|
|
2580
2587
|
}
|
|
2581
2588
|
});
|
|
2582
2589
|
},
|
|
2583
|
-
details:
|
|
2590
|
+
details: I ? (K) => C(ue, null, [l.details?.(K), P && C(ue, null, [C("span", null, null), d(wa, {
|
|
2584
2591
|
active: e.persistentCounter || c.value,
|
|
2585
2592
|
value: u.value,
|
|
2586
2593
|
max: o.value,
|
|
@@ -2592,7 +2599,7 @@ const Da = ["color", "file", "time", "date", "datetime-local", "week", "month"],
|
|
|
2592
2599
|
}), Ba = L({
|
|
2593
2600
|
renderless: Boolean,
|
|
2594
2601
|
...oe()
|
|
2595
|
-
}, "VVirtualScrollItem"), Ea =
|
|
2602
|
+
}, "VVirtualScrollItem"), Ea = J()({
|
|
2596
2603
|
name: "VVirtualScrollItem",
|
|
2597
2604
|
inheritAttrs: !1,
|
|
2598
2605
|
props: Ba(),
|
|
@@ -2609,11 +2616,11 @@ const Da = ["color", "file", "time", "date", "datetime-local", "week", "month"],
|
|
|
2609
2616
|
resizeRef: s,
|
|
2610
2617
|
contentRect: c
|
|
2611
2618
|
} = at(void 0, "border");
|
|
2612
|
-
|
|
2619
|
+
ie(() => c.value?.height, (r) => {
|
|
2613
2620
|
r != null && t("update:height", r);
|
|
2614
|
-
}),
|
|
2621
|
+
}), te(() => e.renderless ? C(ue, null, [l.default?.({
|
|
2615
2622
|
itemRef: s
|
|
2616
|
-
})]) : C("div",
|
|
2623
|
+
})]) : C("div", U({
|
|
2617
2624
|
ref: s,
|
|
2618
2625
|
class: ["v-virtual-scroll__item", e.class],
|
|
2619
2626
|
style: e.style
|
|
@@ -2657,8 +2664,8 @@ function Ra(e, a) {
|
|
|
2657
2664
|
length: a.value.length
|
|
2658
2665
|
});
|
|
2659
2666
|
const k = ne(0);
|
|
2660
|
-
let
|
|
2661
|
-
function
|
|
2667
|
+
let w = -1;
|
|
2668
|
+
function D(A) {
|
|
2662
2669
|
return h[A] || t.value;
|
|
2663
2670
|
}
|
|
2664
2671
|
const F = _n(() => {
|
|
@@ -2666,12 +2673,12 @@ function Ra(e, a) {
|
|
|
2666
2673
|
S[0] = 0;
|
|
2667
2674
|
const p = a.value.length;
|
|
2668
2675
|
for (let b = 1; b <= p; b++)
|
|
2669
|
-
S[b] = (S[b - 1] || 0) +
|
|
2676
|
+
S[b] = (S[b - 1] || 0) + D(b - 1);
|
|
2670
2677
|
k.value = Math.max(k.value, performance.now() - A);
|
|
2671
|
-
}, k),
|
|
2672
|
-
A && (
|
|
2678
|
+
}, k), _ = ie(m, (A) => {
|
|
2679
|
+
A && (_(), u = f.value.offsetTop, F.immediate(), q(), ~w && me(() => {
|
|
2673
2680
|
Ge && window.requestAnimationFrame(() => {
|
|
2674
|
-
se(
|
|
2681
|
+
se(w), w = -1;
|
|
2675
2682
|
});
|
|
2676
2683
|
}));
|
|
2677
2684
|
});
|
|
@@ -2687,44 +2694,44 @@ function Ra(e, a) {
|
|
|
2687
2694
|
const p = Math.floor(A), b = A % 1, g = p + 1, x = S[p] || 0, N = S[g] || x;
|
|
2688
2695
|
return x + (N - x) * b;
|
|
2689
2696
|
}
|
|
2690
|
-
function
|
|
2697
|
+
function I(A) {
|
|
2691
2698
|
return La(S, A);
|
|
2692
2699
|
}
|
|
2693
|
-
let
|
|
2694
|
-
|
|
2695
|
-
p && (
|
|
2696
|
-
|
|
2700
|
+
let B = 0, z = 0, j = 0;
|
|
2701
|
+
ie(y, (A, p) => {
|
|
2702
|
+
p && (q(), A < p && requestAnimationFrame(() => {
|
|
2703
|
+
z = 0, q();
|
|
2697
2704
|
}));
|
|
2698
2705
|
});
|
|
2699
|
-
let
|
|
2700
|
-
function
|
|
2706
|
+
let G = -1;
|
|
2707
|
+
function Z() {
|
|
2701
2708
|
if (!i.value || !f.value) return;
|
|
2702
2709
|
const A = i.value.scrollTop, p = performance.now();
|
|
2703
|
-
p -
|
|
2710
|
+
p - j > 500 ? (z = Math.sign(A - B), u = f.value.offsetTop) : z = A - B, B = A, j = p, window.clearTimeout(G), G = window.setTimeout(K, 500), q();
|
|
2704
2711
|
}
|
|
2705
|
-
function
|
|
2706
|
-
!i.value || !f.value || (
|
|
2712
|
+
function K() {
|
|
2713
|
+
!i.value || !f.value || (z = 0, j = 0, window.clearTimeout(G), q());
|
|
2707
2714
|
}
|
|
2708
2715
|
let ce = -1;
|
|
2709
|
-
function
|
|
2710
|
-
cancelAnimationFrame(ce), ce = requestAnimationFrame(
|
|
2716
|
+
function q() {
|
|
2717
|
+
cancelAnimationFrame(ce), ce = requestAnimationFrame(ee);
|
|
2711
2718
|
}
|
|
2712
|
-
function
|
|
2719
|
+
function ee() {
|
|
2713
2720
|
if (!i.value || !y.value || !t.value) return;
|
|
2714
|
-
const A =
|
|
2721
|
+
const A = B - u, p = Math.sign(z), b = Math.max(0, A - pt), g = Fe(I(b), 0, a.value.length), x = A + y.value + pt, N = Fe(I(x) + 1, g + 1, a.value.length);
|
|
2715
2722
|
if (
|
|
2716
2723
|
// Only update the side we're scrolling towards,
|
|
2717
2724
|
// the other side will be updated incidentally
|
|
2718
2725
|
(p !== Na || g < l.value) && (p !== $a || N > s.value)
|
|
2719
2726
|
) {
|
|
2720
|
-
const M = P(l.value) - P(g),
|
|
2721
|
-
Math.max(M,
|
|
2727
|
+
const M = P(l.value) - P(g), W = P(N) - P(s.value);
|
|
2728
|
+
Math.max(M, W) > pt ? (l.value = g, s.value = N) : (g <= 0 && (l.value = g), N >= a.value.length && (s.value = N));
|
|
2722
2729
|
}
|
|
2723
2730
|
c.value = P(l.value), r.value = P(a.value.length) - P(s.value);
|
|
2724
2731
|
}
|
|
2725
2732
|
function se(A) {
|
|
2726
2733
|
const p = P(A);
|
|
2727
|
-
!i.value || A && !p ?
|
|
2734
|
+
!i.value || A && !p ? w = A : i.value.scrollTop = p;
|
|
2728
2735
|
}
|
|
2729
2736
|
const de = V(() => a.value.slice(l.value, s.value).map((A, p) => {
|
|
2730
2737
|
const b = p + l.value;
|
|
@@ -2734,24 +2741,24 @@ function Ra(e, a) {
|
|
|
2734
2741
|
key: Pn(A, e.itemKey, b)
|
|
2735
2742
|
};
|
|
2736
2743
|
}));
|
|
2737
|
-
return
|
|
2744
|
+
return ie(a, () => {
|
|
2738
2745
|
h = Array.from({
|
|
2739
2746
|
length: a.value.length
|
|
2740
2747
|
}), S = Array.from({
|
|
2741
2748
|
length: a.value.length
|
|
2742
|
-
}), F.immediate(),
|
|
2749
|
+
}), F.immediate(), q();
|
|
2743
2750
|
}, {
|
|
2744
2751
|
deep: 1
|
|
2745
2752
|
}), {
|
|
2746
|
-
calculateVisibleItems:
|
|
2753
|
+
calculateVisibleItems: q,
|
|
2747
2754
|
containerRef: i,
|
|
2748
2755
|
markerRef: f,
|
|
2749
2756
|
computedItems: de,
|
|
2750
2757
|
paddingTop: c,
|
|
2751
2758
|
paddingBottom: r,
|
|
2752
2759
|
scrollToIndex: se,
|
|
2753
|
-
handleScroll:
|
|
2754
|
-
handleScrollend:
|
|
2760
|
+
handleScroll: Z,
|
|
2761
|
+
handleScrollend: K,
|
|
2755
2762
|
handleItemResize: $
|
|
2756
2763
|
};
|
|
2757
2764
|
}
|
|
@@ -2776,7 +2783,7 @@ const Ma = L({
|
|
|
2776
2783
|
...Oa(),
|
|
2777
2784
|
...oe(),
|
|
2778
2785
|
...Qe()
|
|
2779
|
-
}, "VVirtualScroll"), Ha =
|
|
2786
|
+
}, "VVirtualScroll"), Ha = J()({
|
|
2780
2787
|
name: "VVirtualScroll",
|
|
2781
2788
|
props: Ma(),
|
|
2782
2789
|
setup(e, a) {
|
|
@@ -2809,7 +2816,7 @@ const Ma = L({
|
|
|
2809
2816
|
Ne(() => {
|
|
2810
2817
|
c.value = An(t.vnode.el, !0), h(!0);
|
|
2811
2818
|
}), st(h);
|
|
2812
|
-
}),
|
|
2819
|
+
}), te(() => {
|
|
2813
2820
|
const h = m.value.map((S) => d(Ea, {
|
|
2814
2821
|
key: S.key,
|
|
2815
2822
|
renderless: e.renderless,
|
|
@@ -2821,7 +2828,7 @@ const Ma = L({
|
|
|
2821
2828
|
...k
|
|
2822
2829
|
})
|
|
2823
2830
|
}));
|
|
2824
|
-
return e.renderless ? C(
|
|
2831
|
+
return e.renderless ? C(ue, null, [C("div", {
|
|
2825
2832
|
ref: r,
|
|
2826
2833
|
class: "v-virtual-scroll__spacer",
|
|
2827
2834
|
style: {
|
|
@@ -2865,7 +2872,7 @@ function za(e, a) {
|
|
|
2865
2872
|
async function s() {
|
|
2866
2873
|
await new Promise((r) => requestAnimationFrame(r)), await new Promise((r) => requestAnimationFrame(r)), await new Promise((r) => requestAnimationFrame(r)), await new Promise((r) => {
|
|
2867
2874
|
if (n.value) {
|
|
2868
|
-
const i =
|
|
2875
|
+
const i = ie(n, () => {
|
|
2869
2876
|
i(), r();
|
|
2870
2877
|
});
|
|
2871
2878
|
} else r();
|
|
@@ -2962,7 +2969,7 @@ const Ga = L({
|
|
|
2962
2969
|
component: _l
|
|
2963
2970
|
}
|
|
2964
2971
|
})
|
|
2965
|
-
}, "VSelect"), qa =
|
|
2972
|
+
}, "VSelect"), qa = J()({
|
|
2966
2973
|
name: "VSelect",
|
|
2967
2974
|
props: Ka(),
|
|
2968
2975
|
emits: {
|
|
@@ -2985,42 +2992,42 @@ const Ga = L({
|
|
|
2985
2992
|
return e.multiple ? x : x[0] ?? null;
|
|
2986
2993
|
}), o = V(() => typeof e.counterValue == "function" ? e.counterValue(u.value) : typeof e.counterValue == "number" ? e.counterValue : u.value.length), v = Ut(e), y = V(() => u.value.map((g) => g.value)), m = ne(!1);
|
|
2987
2994
|
let h = "", S = -1, k;
|
|
2988
|
-
const
|
|
2995
|
+
const w = V(() => e.hideSelected ? r.value.filter((g) => !u.value.some((x) => (e.valueComparator || ze)(x, g))) : r.value), D = V(() => e.hideNoData && !w.value.length || v.isReadonly.value || v.isDisabled.value), F = pe(e, "menu"), _ = V({
|
|
2989
2996
|
get: () => F.value,
|
|
2990
2997
|
set: (g) => {
|
|
2991
|
-
F.value && !g && s.value?.ΨopenChildren.size || g &&
|
|
2998
|
+
F.value && !g && s.value?.ΨopenChildren.size || g && D.value || (F.value = g);
|
|
2992
2999
|
}
|
|
2993
3000
|
}), {
|
|
2994
3001
|
menuId: $,
|
|
2995
3002
|
ariaExpanded: P,
|
|
2996
|
-
ariaControls:
|
|
2997
|
-
ariaLabel:
|
|
2998
|
-
} = ja(e,
|
|
3003
|
+
ariaControls: I,
|
|
3004
|
+
ariaLabel: B
|
|
3005
|
+
} = ja(e, _), z = V(() => ({
|
|
2999
3006
|
...e.menuProps,
|
|
3000
3007
|
activatorProps: {
|
|
3001
3008
|
...e.menuProps?.activatorProps || {},
|
|
3002
3009
|
"aria-haspopup": "listbox"
|
|
3003
3010
|
// Set aria-haspopup to 'listbox'
|
|
3004
3011
|
}
|
|
3005
|
-
})),
|
|
3006
|
-
function
|
|
3007
|
-
e.openOnClear && (
|
|
3012
|
+
})), j = R(), G = za(j, l);
|
|
3013
|
+
function Z(g) {
|
|
3014
|
+
e.openOnClear && (_.value = !0);
|
|
3008
3015
|
}
|
|
3009
|
-
function
|
|
3010
|
-
|
|
3016
|
+
function K() {
|
|
3017
|
+
D.value || (_.value = !_.value);
|
|
3011
3018
|
}
|
|
3012
3019
|
function ce(g) {
|
|
3013
|
-
tl(g) &&
|
|
3020
|
+
tl(g) && q(g);
|
|
3014
3021
|
}
|
|
3015
|
-
function
|
|
3022
|
+
function q(g) {
|
|
3016
3023
|
if (!g.key || v.isReadonly.value) return;
|
|
3017
|
-
["Enter", " ", "ArrowDown", "ArrowUp", "Home", "End"].includes(g.key) && g.preventDefault(), ["Enter", "ArrowDown", " "].includes(g.key) && (
|
|
3024
|
+
["Enter", " ", "ArrowDown", "ArrowUp", "Home", "End"].includes(g.key) && g.preventDefault(), ["Enter", "ArrowDown", " "].includes(g.key) && (_.value = !0), ["Escape", "Tab"].includes(g.key) && (_.value = !1), g.key === "Home" ? j.value?.focus("first") : g.key === "End" && j.value?.focus("last");
|
|
3018
3025
|
const x = 1e3;
|
|
3019
3026
|
if (!tl(g)) return;
|
|
3020
3027
|
const N = performance.now();
|
|
3021
3028
|
N - k > x && (h = "", S = -1), h += g.key.toLowerCase(), k = N;
|
|
3022
|
-
const M =
|
|
3023
|
-
function
|
|
3029
|
+
const M = w.value;
|
|
3030
|
+
function W() {
|
|
3024
3031
|
let H = O();
|
|
3025
3032
|
return H || h.at(-1) === h.at(-2) && (h = h.slice(0, -1), H = O(), H) || (S = -1, H = O(), H) ? H : (h = g.key.toLowerCase(), O());
|
|
3026
3033
|
}
|
|
@@ -3031,29 +3038,29 @@ const Ga = L({
|
|
|
3031
3038
|
return [he, H];
|
|
3032
3039
|
}
|
|
3033
3040
|
}
|
|
3034
|
-
const
|
|
3035
|
-
if (!
|
|
3036
|
-
const [ve, Ve] =
|
|
3037
|
-
S = Ve,
|
|
3041
|
+
const X = W();
|
|
3042
|
+
if (!X) return;
|
|
3043
|
+
const [ve, Ve] = X;
|
|
3044
|
+
S = Ve, j.value?.focus(Ve), e.multiple || (u.value = [ve]);
|
|
3038
3045
|
}
|
|
3039
|
-
function
|
|
3046
|
+
function ee(g) {
|
|
3040
3047
|
let x = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;
|
|
3041
3048
|
if (!g.props.disabled)
|
|
3042
3049
|
if (e.multiple) {
|
|
3043
|
-
const N = u.value.findIndex((
|
|
3050
|
+
const N = u.value.findIndex((W) => (e.valueComparator || ze)(W.value, g.value)), M = x ?? !~N;
|
|
3044
3051
|
if (~N) {
|
|
3045
|
-
const
|
|
3046
|
-
|
|
3052
|
+
const W = M ? [...u.value, g] : [...u.value];
|
|
3053
|
+
W.splice(N, 1), u.value = W;
|
|
3047
3054
|
} else M && (u.value = [...u.value, g]);
|
|
3048
3055
|
} else {
|
|
3049
3056
|
const N = x !== !1;
|
|
3050
3057
|
u.value = N ? [g] : [], me(() => {
|
|
3051
|
-
|
|
3058
|
+
_.value = !1;
|
|
3052
3059
|
});
|
|
3053
3060
|
}
|
|
3054
3061
|
}
|
|
3055
3062
|
function se(g) {
|
|
3056
|
-
|
|
3063
|
+
j.value?.$el.contains(g.relatedTarget) || (_.value = !1);
|
|
3057
3064
|
}
|
|
3058
3065
|
function de() {
|
|
3059
3066
|
e.eager && c.value?.calculateVisibleItems();
|
|
@@ -3068,21 +3075,21 @@ const Ga = L({
|
|
|
3068
3075
|
if (g == null) u.value = [];
|
|
3069
3076
|
else if (kt(l.value, ":autofill") || kt(l.value, ":-webkit-autofill")) {
|
|
3070
3077
|
const x = r.value.find((N) => N.title === g);
|
|
3071
|
-
x &&
|
|
3078
|
+
x && ee(x);
|
|
3072
3079
|
} else l.value && (l.value.value = "");
|
|
3073
3080
|
}
|
|
3074
|
-
return
|
|
3075
|
-
if (!e.hideSelected &&
|
|
3076
|
-
const g =
|
|
3081
|
+
return ie(_, () => {
|
|
3082
|
+
if (!e.hideSelected && _.value && u.value.length) {
|
|
3083
|
+
const g = w.value.findIndex((x) => u.value.some((N) => (e.valueComparator || ze)(N.value, x.value)));
|
|
3077
3084
|
Ge && !e.noAutoScroll && window.requestAnimationFrame(() => {
|
|
3078
3085
|
g >= 0 && c.value?.scrollToIndex(g);
|
|
3079
3086
|
});
|
|
3080
3087
|
}
|
|
3081
|
-
}),
|
|
3082
|
-
|
|
3083
|
-
}),
|
|
3084
|
-
const g = !!(e.chips || n.chip), x = !!(!e.hideNoData ||
|
|
3085
|
-
return d(qe,
|
|
3088
|
+
}), ie(r, (g, x) => {
|
|
3089
|
+
_.value || m.value && e.hideNoData && !x.length && g.length && (_.value = !0);
|
|
3090
|
+
}), te(() => {
|
|
3091
|
+
const g = !!(e.chips || n.chip), x = !!(!e.hideNoData || w.value.length || n["prepend-item"] || n["append-item"] || n["no-data"]), N = u.value.length > 0, M = qe.filterProps(e), W = N || !m.value && e.label && !e.persistentPlaceholder ? void 0 : e.placeholder;
|
|
3092
|
+
return d(qe, U({
|
|
3086
3093
|
ref: l
|
|
3087
3094
|
}, M, {
|
|
3088
3095
|
modelValue: u.value.map((O) => O.props.value).join(", "),
|
|
@@ -3093,7 +3100,7 @@ const Ga = L({
|
|
|
3093
3100
|
counterValue: o.value,
|
|
3094
3101
|
dirty: N,
|
|
3095
3102
|
class: ["v-select", {
|
|
3096
|
-
"v-select--active-menu":
|
|
3103
|
+
"v-select--active-menu": _.value,
|
|
3097
3104
|
"v-select--chips": !!e.chips,
|
|
3098
3105
|
[`v-select--${e.multiple ? "multiple" : "single"}`]: !0,
|
|
3099
3106
|
"v-select--selected": u.value.length,
|
|
@@ -3101,25 +3108,25 @@ const Ga = L({
|
|
|
3101
3108
|
}, e.class],
|
|
3102
3109
|
style: e.style,
|
|
3103
3110
|
inputmode: "none",
|
|
3104
|
-
placeholder:
|
|
3105
|
-
"onClick:clear":
|
|
3106
|
-
"onMousedown:control":
|
|
3111
|
+
placeholder: W,
|
|
3112
|
+
"onClick:clear": Z,
|
|
3113
|
+
"onMousedown:control": K,
|
|
3107
3114
|
onBlur: se,
|
|
3108
|
-
onKeydown:
|
|
3115
|
+
onKeydown: q,
|
|
3109
3116
|
"aria-expanded": P.value,
|
|
3110
|
-
"aria-controls":
|
|
3111
|
-
"aria-label":
|
|
3112
|
-
title:
|
|
3117
|
+
"aria-controls": I.value,
|
|
3118
|
+
"aria-label": B.value,
|
|
3119
|
+
title: B.value
|
|
3113
3120
|
}), {
|
|
3114
3121
|
...n,
|
|
3115
|
-
default: () => C(
|
|
3122
|
+
default: () => C(ue, null, [d(Tn, U({
|
|
3116
3123
|
id: $.value,
|
|
3117
3124
|
ref: s,
|
|
3118
|
-
modelValue:
|
|
3119
|
-
"onUpdate:modelValue": (O) =>
|
|
3125
|
+
modelValue: _.value,
|
|
3126
|
+
"onUpdate:modelValue": (O) => _.value = O,
|
|
3120
3127
|
activator: "parent",
|
|
3121
3128
|
contentClass: "v-select__content",
|
|
3122
|
-
disabled:
|
|
3129
|
+
disabled: D.value,
|
|
3123
3130
|
eager: e.eager,
|
|
3124
3131
|
maxHeight: 310,
|
|
3125
3132
|
openOnClick: !1,
|
|
@@ -3127,9 +3134,9 @@ const Ga = L({
|
|
|
3127
3134
|
transition: e.transition,
|
|
3128
3135
|
onAfterEnter: de,
|
|
3129
3136
|
onAfterLeave: A
|
|
3130
|
-
},
|
|
3131
|
-
default: () => [x && d(Lt,
|
|
3132
|
-
ref:
|
|
3137
|
+
}, z.value), {
|
|
3138
|
+
default: () => [x && d(Lt, U({
|
|
3139
|
+
ref: j,
|
|
3133
3140
|
selected: y.value,
|
|
3134
3141
|
selectStrategy: e.multiple ? "independent" : "single-independent",
|
|
3135
3142
|
onMousedown: (O) => O.preventDefault(),
|
|
@@ -3140,50 +3147,50 @@ const Ga = L({
|
|
|
3140
3147
|
"aria-live": "polite",
|
|
3141
3148
|
"aria-label": `${e.label}-list`,
|
|
3142
3149
|
color: e.itemColor ?? e.color
|
|
3143
|
-
},
|
|
3144
|
-
default: () => [n["prepend-item"]?.(), !
|
|
3150
|
+
}, G, e.listProps), {
|
|
3151
|
+
default: () => [n["prepend-item"]?.(), !w.value.length && !e.hideNoData && (n["no-data"]?.() ?? d(nt, {
|
|
3145
3152
|
key: "no-data",
|
|
3146
3153
|
title: t(e.noDataText)
|
|
3147
3154
|
}, null)), d(Ha, {
|
|
3148
3155
|
ref: c,
|
|
3149
3156
|
renderless: !0,
|
|
3150
|
-
items:
|
|
3157
|
+
items: w.value,
|
|
3151
3158
|
itemKey: "value"
|
|
3152
3159
|
}, {
|
|
3153
3160
|
default: (O) => {
|
|
3154
3161
|
let {
|
|
3155
|
-
item:
|
|
3162
|
+
item: X,
|
|
3156
3163
|
index: ve,
|
|
3157
3164
|
itemRef: Ve
|
|
3158
3165
|
} = O;
|
|
3159
|
-
const H = Dn(
|
|
3166
|
+
const H = Dn(X.props), he = U(X.props, {
|
|
3160
3167
|
ref: Ve,
|
|
3161
|
-
key:
|
|
3162
|
-
onClick: () =>
|
|
3168
|
+
key: X.value,
|
|
3169
|
+
onClick: () => ee(X, null)
|
|
3163
3170
|
});
|
|
3164
|
-
return
|
|
3165
|
-
props:
|
|
3171
|
+
return X.type === "divider" ? n.divider?.({
|
|
3172
|
+
props: X.raw,
|
|
3166
3173
|
index: ve
|
|
3167
|
-
}) ?? d(Ie,
|
|
3174
|
+
}) ?? d(Ie, U(X.props, {
|
|
3168
3175
|
key: `divider-${ve}`
|
|
3169
|
-
}), null) :
|
|
3170
|
-
props:
|
|
3176
|
+
}), null) : X.type === "subheader" ? n.subheader?.({
|
|
3177
|
+
props: X.raw,
|
|
3171
3178
|
index: ve
|
|
3172
|
-
}) ?? d(Bn,
|
|
3179
|
+
}) ?? d(Bn, U(X.props, {
|
|
3173
3180
|
key: `subheader-${ve}`
|
|
3174
3181
|
}), null) : n.item?.({
|
|
3175
|
-
item:
|
|
3182
|
+
item: X,
|
|
3176
3183
|
index: ve,
|
|
3177
3184
|
props: he
|
|
3178
|
-
}) ?? d(nt,
|
|
3185
|
+
}) ?? d(nt, U(he, {
|
|
3179
3186
|
role: "option"
|
|
3180
3187
|
}), {
|
|
3181
3188
|
prepend: (le) => {
|
|
3182
3189
|
let {
|
|
3183
3190
|
isSelected: on
|
|
3184
3191
|
} = le;
|
|
3185
|
-
return C(
|
|
3186
|
-
key:
|
|
3192
|
+
return C(ue, null, [e.multiple && !e.hideSelected ? d(It, {
|
|
3193
|
+
key: X.value,
|
|
3187
3194
|
modelValue: on,
|
|
3188
3195
|
ripple: !1,
|
|
3189
3196
|
tabindex: "-1",
|
|
@@ -3198,9 +3205,9 @@ const Ga = L({
|
|
|
3198
3205
|
}
|
|
3199
3206
|
}), n["append-item"]?.()]
|
|
3200
3207
|
})]
|
|
3201
|
-
}), u.value.map((O,
|
|
3208
|
+
}), u.value.map((O, X) => {
|
|
3202
3209
|
function ve(le) {
|
|
3203
|
-
le.stopPropagation(), le.preventDefault(),
|
|
3210
|
+
le.stopPropagation(), le.preventDefault(), ee(O, !1);
|
|
3204
3211
|
}
|
|
3205
3212
|
const Ve = {
|
|
3206
3213
|
"onClick:close": ve,
|
|
@@ -3214,11 +3221,11 @@ const Ga = L({
|
|
|
3214
3221
|
"onUpdate:modelValue": void 0
|
|
3215
3222
|
}, H = g ? !!n.chip : !!n.selection, he = H ? En(g ? n.chip({
|
|
3216
3223
|
item: O,
|
|
3217
|
-
index:
|
|
3224
|
+
index: X,
|
|
3218
3225
|
props: Ve
|
|
3219
3226
|
}) : n.selection({
|
|
3220
3227
|
item: O,
|
|
3221
|
-
index:
|
|
3228
|
+
index: X
|
|
3222
3229
|
})) : void 0;
|
|
3223
3230
|
if (!(H && !he))
|
|
3224
3231
|
return C("div", {
|
|
@@ -3235,7 +3242,7 @@ const Ga = L({
|
|
|
3235
3242
|
}
|
|
3236
3243
|
}, {
|
|
3237
3244
|
default: () => [he]
|
|
3238
|
-
}) : d(Kl,
|
|
3245
|
+
}) : d(Kl, U({
|
|
3239
3246
|
key: "chip",
|
|
3240
3247
|
closable: e.closableChips,
|
|
3241
3248
|
size: "small",
|
|
@@ -3243,14 +3250,14 @@ const Ga = L({
|
|
|
3243
3250
|
disabled: O.props.disabled
|
|
3244
3251
|
}, Ve), null) : he ?? C("span", {
|
|
3245
3252
|
class: "v-select__selection-text"
|
|
3246
|
-
}, [O.title, e.multiple &&
|
|
3253
|
+
}, [O.title, e.multiple && X < u.value.length - 1 && C("span", {
|
|
3247
3254
|
class: "v-select__selection-comma"
|
|
3248
3255
|
}, [cn(",")])])]);
|
|
3249
3256
|
})]),
|
|
3250
3257
|
"append-inner": function() {
|
|
3251
|
-
for (var O = arguments.length,
|
|
3252
|
-
|
|
3253
|
-
return C(
|
|
3258
|
+
for (var O = arguments.length, X = new Array(O), ve = 0; ve < O; ve++)
|
|
3259
|
+
X[ve] = arguments[ve];
|
|
3260
|
+
return C(ue, null, [n["append-inner"]?.(...X), e.menuIcon ? d(ge, {
|
|
3254
3261
|
class: "v-select__menu-icon",
|
|
3255
3262
|
color: l.value?.fieldIconColor,
|
|
3256
3263
|
icon: e.menuIcon
|
|
@@ -3259,8 +3266,8 @@ const Ga = L({
|
|
|
3259
3266
|
});
|
|
3260
3267
|
}), et({
|
|
3261
3268
|
isFocused: m,
|
|
3262
|
-
menu:
|
|
3263
|
-
select:
|
|
3269
|
+
menu: _,
|
|
3270
|
+
select: ee
|
|
3264
3271
|
}, l);
|
|
3265
3272
|
}
|
|
3266
3273
|
}), Wa = L({
|
|
@@ -3294,7 +3301,7 @@ const Ga = L({
|
|
|
3294
3301
|
transition: "scale-rotate-transition"
|
|
3295
3302
|
}),
|
|
3296
3303
|
...Qe()
|
|
3297
|
-
}, "VBadge"), Ja =
|
|
3304
|
+
}, "VBadge"), Ja = J()({
|
|
3298
3305
|
name: "VBadge",
|
|
3299
3306
|
inheritAttrs: !1,
|
|
3300
3307
|
props: Wa(),
|
|
@@ -3316,9 +3323,9 @@ const Ga = L({
|
|
|
3316
3323
|
} = Dt(e, !0, (o) => (e.floating ? e.dot ? 2 : 4 : e.dot ? 8 : 12) + (["top", "bottom"].includes(o) ? Number(e.offsetY ?? 0) : ["left", "right"].includes(o) ? Number(e.offsetX ?? 0) : 0)), {
|
|
3317
3324
|
dimensionStyles: u
|
|
3318
3325
|
} = Je(e);
|
|
3319
|
-
return
|
|
3326
|
+
return te(() => {
|
|
3320
3327
|
const o = Number(e.content), v = !e.max || isNaN(o) ? e.content : o <= Number(e.max) ? o : `${e.max}+`, [y, m] = On(a.attrs, ["aria-atomic", "aria-label", "aria-live", "role", "title"]);
|
|
3321
|
-
return d(e.tag,
|
|
3328
|
+
return d(e.tag, U({
|
|
3322
3329
|
class: ["v-badge", {
|
|
3323
3330
|
"v-badge--bordered": e.bordered,
|
|
3324
3331
|
"v-badge--dot": e.dot,
|
|
@@ -3333,7 +3340,7 @@ const Ga = L({
|
|
|
3333
3340
|
}, [a.slots.default?.(), d(Rt, {
|
|
3334
3341
|
transition: e.transition
|
|
3335
3342
|
}, {
|
|
3336
|
-
default: () => [Te(C("span",
|
|
3343
|
+
default: () => [Te(C("span", U({
|
|
3337
3344
|
class: ["v-badge__badge", i.value, n.value, l.value, c.value],
|
|
3338
3345
|
style: [t.value, r.value, u.value, e.inline ? {} : f.value],
|
|
3339
3346
|
"aria-atomic": "true",
|
|
@@ -3400,7 +3407,7 @@ const Xa = ["auto", "start", "end", "center", "baseline", "stretch"], Qa = L({
|
|
|
3400
3407
|
},
|
|
3401
3408
|
...oe(),
|
|
3402
3409
|
...ke()
|
|
3403
|
-
}, "VCol"), ul =
|
|
3410
|
+
}, "VCol"), ul = J()({
|
|
3404
3411
|
name: "VCol",
|
|
3405
3412
|
props: Qa(),
|
|
3406
3413
|
setup(e, a) {
|
|
@@ -3491,7 +3498,7 @@ const ao = L({
|
|
|
3491
3498
|
...nn,
|
|
3492
3499
|
...oe(),
|
|
3493
3500
|
...ke()
|
|
3494
|
-
}, "VRow"), oo =
|
|
3501
|
+
}, "VRow"), oo = J()({
|
|
3495
3502
|
name: "VRow",
|
|
3496
3503
|
props: ao(),
|
|
3497
3504
|
setup(e, a) {
|
|
@@ -3577,7 +3584,7 @@ const ro = L({
|
|
|
3577
3584
|
validator: (e) => !e || e.length === 1
|
|
3578
3585
|
},
|
|
3579
3586
|
...Ze(qt(), ["modelValue", "validationValue"])
|
|
3580
|
-
}, "VNumberInput"), co =
|
|
3587
|
+
}, "VNumberInput"), co = J()({
|
|
3581
3588
|
name: "VNumberInput",
|
|
3582
3589
|
props: {
|
|
3583
3590
|
...ro()
|
|
@@ -3594,7 +3601,7 @@ const ro = L({
|
|
|
3594
3601
|
holdStart: l,
|
|
3595
3602
|
holdStop: s
|
|
3596
3603
|
} = uo({
|
|
3597
|
-
toggleUpDown:
|
|
3604
|
+
toggleUpDown: B
|
|
3598
3605
|
}), c = Ut(e), r = V(() => c.isDisabled.value || c.isReadonly.value), i = ne(e.focused), {
|
|
3599
3606
|
decimalSeparator: f
|
|
3600
3607
|
} = Le(), u = V(() => e.decimalSeparator?.[0] || f.value);
|
|
@@ -3622,76 +3629,76 @@ const ro = L({
|
|
|
3622
3629
|
const b = Number(p.replace(u.value, "."));
|
|
3623
3630
|
!isNaN(b) && b <= e.max && b >= e.min && (v.value = b, y.value = p);
|
|
3624
3631
|
}
|
|
3625
|
-
}), h = V(() => r.value ? !1 : (v.value ?? 0) + e.step <= e.max), S = V(() => r.value ? !1 : (v.value ?? 0) - e.step >= e.min), k = V(() => e.hideInput ? "stacked" : e.controlVariant),
|
|
3632
|
+
}), h = V(() => r.value ? !1 : (v.value ?? 0) + e.step <= e.max), S = V(() => r.value ? !1 : (v.value ?? 0) - e.step >= e.min), k = V(() => e.hideInput ? "stacked" : e.controlVariant), w = T(() => k.value === "split" ? "$plus" : "$collapse"), D = T(() => k.value === "split" ? "$minus" : "$expand"), F = T(() => k.value === "split" ? "default" : "small"), _ = T(() => k.value === "stacked" ? "auto" : "100%"), $ = {
|
|
3626
3633
|
props: {
|
|
3627
|
-
onClick:
|
|
3628
|
-
onPointerup:
|
|
3629
|
-
onPointerdown:
|
|
3630
|
-
onPointercancel:
|
|
3634
|
+
onClick: G,
|
|
3635
|
+
onPointerup: Z,
|
|
3636
|
+
onPointerdown: K,
|
|
3637
|
+
onPointercancel: Z
|
|
3631
3638
|
}
|
|
3632
3639
|
}, P = {
|
|
3633
3640
|
props: {
|
|
3634
|
-
onClick:
|
|
3635
|
-
onPointerup:
|
|
3641
|
+
onClick: G,
|
|
3642
|
+
onPointerup: Z,
|
|
3636
3643
|
onPointerdown: ce,
|
|
3637
|
-
onPointercancel:
|
|
3644
|
+
onPointercancel: Z
|
|
3638
3645
|
}
|
|
3639
3646
|
};
|
|
3640
|
-
|
|
3641
|
-
|
|
3647
|
+
ie(() => e.precision, () => ee()), ie(() => e.minFractionDigits, () => ee()), Ne(() => {
|
|
3648
|
+
q();
|
|
3642
3649
|
});
|
|
3643
|
-
function
|
|
3650
|
+
function I(p) {
|
|
3644
3651
|
if (p == null) return 0;
|
|
3645
3652
|
const b = p.toString(), g = b.indexOf(".");
|
|
3646
3653
|
return ~g ? b.length - g : 0;
|
|
3647
3654
|
}
|
|
3648
|
-
function
|
|
3655
|
+
function B() {
|
|
3649
3656
|
let p = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0;
|
|
3650
3657
|
if (r.value) return;
|
|
3651
3658
|
if (v.value == null) {
|
|
3652
3659
|
m.value = o(Fe(0, e.min, e.max));
|
|
3653
3660
|
return;
|
|
3654
3661
|
}
|
|
3655
|
-
let b = Math.max(
|
|
3662
|
+
let b = Math.max(I(v.value), I(e.step));
|
|
3656
3663
|
e.precision != null && (b = Math.max(b, e.precision)), p ? h.value && (m.value = o(v.value + e.step, b)) : S.value && (m.value = o(v.value - e.step, b));
|
|
3657
3664
|
}
|
|
3658
|
-
function
|
|
3665
|
+
function z(p) {
|
|
3659
3666
|
if (!p.data) return;
|
|
3660
3667
|
const b = p.target, {
|
|
3661
3668
|
value: g,
|
|
3662
3669
|
selectionStart: x,
|
|
3663
3670
|
selectionEnd: N
|
|
3664
|
-
} = b ?? {}, M = g ? g.slice(0, x) + p.data + g.slice(N) : p.data,
|
|
3665
|
-
if (new RegExp(`^-?\\d*${Ln(u.value)}?\\d*$`).test(M) || (p.preventDefault(), b.value =
|
|
3671
|
+
} = b ?? {}, M = g ? g.slice(0, x) + p.data + g.slice(N) : p.data, W = Rn(M, e.precision, u.value);
|
|
3672
|
+
if (new RegExp(`^-?\\d*${Ln(u.value)}?\\d*$`).test(M) || (p.preventDefault(), b.value = W, me(() => m.value = W)), e.precision != null) {
|
|
3666
3673
|
if (M.split(u.value)[1]?.length > e.precision) {
|
|
3667
|
-
p.preventDefault(), b.value =
|
|
3674
|
+
p.preventDefault(), b.value = W, me(() => m.value = W);
|
|
3668
3675
|
const O = (x ?? 0) + p.data.length;
|
|
3669
3676
|
b.setSelectionRange(O, O);
|
|
3670
3677
|
}
|
|
3671
|
-
e.precision === 0 && M.endsWith(u.value) && (p.preventDefault(), b.value =
|
|
3678
|
+
e.precision === 0 && M.endsWith(u.value) && (p.preventDefault(), b.value = W, me(() => m.value = W));
|
|
3672
3679
|
}
|
|
3673
3680
|
}
|
|
3674
|
-
async function
|
|
3675
|
-
["Enter", "ArrowLeft", "ArrowRight", "Backspace", "Delete", "Tab"].includes(p.key) || p.ctrlKey || ["ArrowDown", "ArrowUp"].includes(p.key) && (p.preventDefault(), p.stopPropagation(),
|
|
3681
|
+
async function j(p) {
|
|
3682
|
+
["Enter", "ArrowLeft", "ArrowRight", "Backspace", "Delete", "Tab"].includes(p.key) || p.ctrlKey || ["ArrowDown", "ArrowUp"].includes(p.key) && (p.preventDefault(), p.stopPropagation(), q(), await me(), p.key === "ArrowDown" ? B(!1) : B());
|
|
3676
3683
|
}
|
|
3677
|
-
function
|
|
3684
|
+
function G(p) {
|
|
3678
3685
|
p.stopPropagation();
|
|
3679
3686
|
}
|
|
3680
|
-
function
|
|
3687
|
+
function Z(p) {
|
|
3681
3688
|
p.currentTarget?.releasePointerCapture(p.pointerId), p.preventDefault(), s();
|
|
3682
3689
|
}
|
|
3683
|
-
function
|
|
3690
|
+
function K(p) {
|
|
3684
3691
|
p.currentTarget?.setPointerCapture(p.pointerId), p.preventDefault(), p.stopPropagation(), l("up");
|
|
3685
3692
|
}
|
|
3686
3693
|
function ce(p) {
|
|
3687
3694
|
p.currentTarget?.setPointerCapture(p.pointerId), p.preventDefault(), p.stopPropagation(), l("down");
|
|
3688
3695
|
}
|
|
3689
|
-
function
|
|
3696
|
+
function q() {
|
|
3690
3697
|
if (r.value || !t.value) return;
|
|
3691
3698
|
const p = t.value.value, b = Number(p.replace(u.value, "."));
|
|
3692
3699
|
p && !isNaN(b) ? m.value = o(Fe(b, e.min, e.max)) : m.value = null;
|
|
3693
3700
|
}
|
|
3694
|
-
function
|
|
3701
|
+
function ee() {
|
|
3695
3702
|
r.value || (m.value = v.value !== null && !isNaN(v.value) ? o(v.value, e.precision, !1) : null);
|
|
3696
3703
|
}
|
|
3697
3704
|
function se() {
|
|
@@ -3707,9 +3714,9 @@ const ro = L({
|
|
|
3707
3714
|
se();
|
|
3708
3715
|
}
|
|
3709
3716
|
function A() {
|
|
3710
|
-
|
|
3717
|
+
q();
|
|
3711
3718
|
}
|
|
3712
|
-
return
|
|
3719
|
+
return te(() => {
|
|
3713
3720
|
const {
|
|
3714
3721
|
modelValue: p,
|
|
3715
3722
|
type: b,
|
|
@@ -3721,9 +3728,9 @@ const ro = L({
|
|
|
3721
3728
|
defaults: {
|
|
3722
3729
|
VBtn: {
|
|
3723
3730
|
disabled: !h.value,
|
|
3724
|
-
height:
|
|
3731
|
+
height: _.value,
|
|
3725
3732
|
size: F.value,
|
|
3726
|
-
icon:
|
|
3733
|
+
icon: w.value,
|
|
3727
3734
|
variant: "text"
|
|
3728
3735
|
}
|
|
3729
3736
|
}
|
|
@@ -3733,13 +3740,13 @@ const ro = L({
|
|
|
3733
3740
|
"aria-hidden": "true",
|
|
3734
3741
|
"data-testid": "increment",
|
|
3735
3742
|
disabled: !h.value,
|
|
3736
|
-
height:
|
|
3737
|
-
icon:
|
|
3743
|
+
height: _.value,
|
|
3744
|
+
icon: w.value,
|
|
3738
3745
|
key: "increment-btn",
|
|
3739
|
-
onClick:
|
|
3740
|
-
onPointerdown:
|
|
3741
|
-
onPointerup:
|
|
3742
|
-
onPointercancel:
|
|
3746
|
+
onClick: G,
|
|
3747
|
+
onPointerdown: K,
|
|
3748
|
+
onPointerup: Z,
|
|
3749
|
+
onPointercancel: Z,
|
|
3743
3750
|
size: F.value,
|
|
3744
3751
|
variant: "text",
|
|
3745
3752
|
tabindex: "-1"
|
|
@@ -3751,9 +3758,9 @@ const ro = L({
|
|
|
3751
3758
|
defaults: {
|
|
3752
3759
|
VBtn: {
|
|
3753
3760
|
disabled: !S.value,
|
|
3754
|
-
height:
|
|
3761
|
+
height: _.value,
|
|
3755
3762
|
size: F.value,
|
|
3756
|
-
icon:
|
|
3763
|
+
icon: D.value,
|
|
3757
3764
|
variant: "text"
|
|
3758
3765
|
}
|
|
3759
3766
|
}
|
|
@@ -3763,13 +3770,13 @@ const ro = L({
|
|
|
3763
3770
|
"aria-hidden": "true",
|
|
3764
3771
|
"data-testid": "decrement",
|
|
3765
3772
|
disabled: !S.value,
|
|
3766
|
-
height:
|
|
3767
|
-
icon:
|
|
3773
|
+
height: _.value,
|
|
3774
|
+
icon: D.value,
|
|
3768
3775
|
key: "decrement-btn",
|
|
3769
|
-
onClick:
|
|
3776
|
+
onClick: G,
|
|
3770
3777
|
onPointerdown: ce,
|
|
3771
|
-
onPointerup:
|
|
3772
|
-
onPointercancel:
|
|
3778
|
+
onPointerup: Z,
|
|
3779
|
+
onPointercancel: Z,
|
|
3773
3780
|
size: F.value,
|
|
3774
3781
|
variant: "text",
|
|
3775
3782
|
tabindex: "-1"
|
|
@@ -3782,7 +3789,7 @@ const ro = L({
|
|
|
3782
3789
|
vertical: k.value !== "stacked"
|
|
3783
3790
|
}, null), x()]);
|
|
3784
3791
|
}
|
|
3785
|
-
function
|
|
3792
|
+
function W() {
|
|
3786
3793
|
return !e.hideInput && !e.inset ? d(Ie, {
|
|
3787
3794
|
vertical: !0
|
|
3788
3795
|
}, null) : void 0;
|
|
@@ -3791,12 +3798,12 @@ const ro = L({
|
|
|
3791
3798
|
class: "v-number-input__control"
|
|
3792
3799
|
}, [d(Ie, {
|
|
3793
3800
|
vertical: !0
|
|
3794
|
-
}, null), x()]) : e.reverse || k.value === "hidden" ? void 0 : C(
|
|
3801
|
+
}, null), x()]) : e.reverse || k.value === "hidden" ? void 0 : C(ue, null, [W(), M()]), X = n["append-inner"] || O, ve = k.value === "split" ? C("div", {
|
|
3795
3802
|
class: "v-number-input__control"
|
|
3796
3803
|
}, [N(), d(Ie, {
|
|
3797
3804
|
vertical: !0
|
|
3798
|
-
}, null)]) : e.reverse && k.value !== "hidden" ? C(
|
|
3799
|
-
return d(qe,
|
|
3805
|
+
}, null)]) : e.reverse && k.value !== "hidden" ? C(ue, null, [M(), W()]) : void 0, Ve = n["prepend-inner"] || ve;
|
|
3806
|
+
return d(qe, U({
|
|
3800
3807
|
ref: t
|
|
3801
3808
|
}, g, {
|
|
3802
3809
|
modelValue: m.value,
|
|
@@ -3804,10 +3811,10 @@ const ro = L({
|
|
|
3804
3811
|
focused: i.value,
|
|
3805
3812
|
"onUpdate:focused": (H) => i.value = H,
|
|
3806
3813
|
validationValue: v.value,
|
|
3807
|
-
onBeforeinput:
|
|
3814
|
+
onBeforeinput: z,
|
|
3808
3815
|
onFocus: de,
|
|
3809
3816
|
onBlur: A,
|
|
3810
|
-
onKeydown:
|
|
3817
|
+
onKeydown: j,
|
|
3811
3818
|
class: ["v-number-input", {
|
|
3812
3819
|
"v-number-input--default": k.value === "default",
|
|
3813
3820
|
"v-number-input--hide-input": e.hideInput,
|
|
@@ -3820,15 +3827,15 @@ const ro = L({
|
|
|
3820
3827
|
inputmode: "decimal"
|
|
3821
3828
|
}), {
|
|
3822
3829
|
...n,
|
|
3823
|
-
"append-inner":
|
|
3830
|
+
"append-inner": X ? function() {
|
|
3824
3831
|
for (var H = arguments.length, he = new Array(H), le = 0; le < H; le++)
|
|
3825
3832
|
he[le] = arguments[le];
|
|
3826
|
-
return C(
|
|
3833
|
+
return C(ue, null, [n["append-inner"]?.(...he), O]);
|
|
3827
3834
|
} : void 0,
|
|
3828
3835
|
"prepend-inner": Ve ? function() {
|
|
3829
3836
|
for (var H = arguments.length, he = new Array(H), le = 0; le < H; le++)
|
|
3830
3837
|
he[le] = arguments[le];
|
|
3831
|
-
return C(
|
|
3838
|
+
return C(ue, null, [ve, n["prepend-inner"]?.(...he)]);
|
|
3832
3839
|
} : void 0
|
|
3833
3840
|
});
|
|
3834
3841
|
}), et({}, t);
|
|
@@ -3846,13 +3853,13 @@ const ro = L({
|
|
|
3846
3853
|
select: qa,
|
|
3847
3854
|
number: co,
|
|
3848
3855
|
datepicker: Ce(
|
|
3849
|
-
() => import("./Datepicker-
|
|
3856
|
+
() => import("./Datepicker-D0Yzqhky.js")
|
|
3850
3857
|
),
|
|
3851
3858
|
comparison: Ce(
|
|
3852
|
-
() => import("./Comparison-
|
|
3859
|
+
() => import("./Comparison-OWm3KG63.js")
|
|
3853
3860
|
)
|
|
3854
3861
|
}, r = V(() => n.headers.filter((f) => f.advancedFilter !== !1 && !f.hidden)), i = (f) => f ? typeof f == "string" ? c[f] : f : c.textfield;
|
|
3855
|
-
return
|
|
3862
|
+
return ie(
|
|
3856
3863
|
r,
|
|
3857
3864
|
(f) => {
|
|
3858
3865
|
f.forEach((u) => {
|
|
@@ -3866,13 +3873,13 @@ const ro = L({
|
|
|
3866
3873
|
{ immediate: !0 }
|
|
3867
3874
|
), Ne(async () => {
|
|
3868
3875
|
await n.options.advancedFilters?.onMounted();
|
|
3869
|
-
}), (f, u) => (
|
|
3870
|
-
default:
|
|
3876
|
+
}), (f, u) => (Q(), fe(Ht, { rounded: "lg" }, {
|
|
3877
|
+
default: Y(() => [
|
|
3871
3878
|
d(yt, { class: "d-flex justify-space-between align-center" }, {
|
|
3872
|
-
default:
|
|
3879
|
+
default: Y(() => [
|
|
3873
3880
|
C("div", fo, Ue(f.$t("$datatables.advancedFilters")), 1),
|
|
3874
3881
|
d(_e, {
|
|
3875
|
-
icon:
|
|
3882
|
+
icon: E(t).header.icons.close,
|
|
3876
3883
|
variant: "text",
|
|
3877
3884
|
onClick: u[0] || (u[0] = (o) => s("closeDialog"))
|
|
3878
3885
|
}, null, 8, ["icon"])
|
|
@@ -3881,13 +3888,13 @@ const ro = L({
|
|
|
3881
3888
|
}),
|
|
3882
3889
|
d(Ie),
|
|
3883
3890
|
d(bt, { class: "overflow-auto pt-8" }, {
|
|
3884
|
-
default:
|
|
3885
|
-
(
|
|
3891
|
+
default: Y(() => [
|
|
3892
|
+
(Q(!0), Ee(ue, null, wt(E(r), (o, v) => (Q(), Ee("div", {
|
|
3886
3893
|
id: `advanced-filter-${o.key}`,
|
|
3887
3894
|
key: `filter-${v}`,
|
|
3888
3895
|
class: ae(`advanced-filter advanced-filter--${o.key}`)
|
|
3889
3896
|
}, [
|
|
3890
|
-
(
|
|
3897
|
+
(Q(), fe(xe(i(o.advancedFilter?.component)), U({
|
|
3891
3898
|
modelValue: l.value[o.advancedFilter?.key ?? o.key].value,
|
|
3892
3899
|
"onUpdate:modelValue": (y) => l.value[o.advancedFilter?.key ?? o.key].value = y,
|
|
3893
3900
|
comparison: l.value[o.advancedFilter?.key ?? o.key].comparison,
|
|
@@ -3903,7 +3910,7 @@ const ro = L({
|
|
|
3903
3910
|
}),
|
|
3904
3911
|
d(Ie, { class: "mt-2" }),
|
|
3905
3912
|
d(Mt, { class: "my-2 d-flex justify-end" }, {
|
|
3906
|
-
default:
|
|
3913
|
+
default: Y(() => [
|
|
3907
3914
|
d(_e, {
|
|
3908
3915
|
class: "text-none",
|
|
3909
3916
|
text: f.$t("$datatables.cancel"),
|
|
@@ -3950,15 +3957,15 @@ const go = {
|
|
|
3950
3957
|
s.value = cl(n.value);
|
|
3951
3958
|
}), (f, u) => {
|
|
3952
3959
|
const o = mo, v = xa;
|
|
3953
|
-
return
|
|
3960
|
+
return Q(), Ee("div", null, [
|
|
3954
3961
|
d(Gt, {
|
|
3955
3962
|
modelValue: l.value,
|
|
3956
3963
|
"onUpdate:modelValue": u[1] || (u[1] = (y) => l.value = y),
|
|
3957
3964
|
"max-width": "550"
|
|
3958
3965
|
}, {
|
|
3959
|
-
default:
|
|
3966
|
+
default: Y(({ isActive: y }) => [
|
|
3960
3967
|
d(o, {
|
|
3961
|
-
modelValue:
|
|
3968
|
+
modelValue: E(s),
|
|
3962
3969
|
"onUpdate:modelValue": u[0] || (u[0] = (m) => $e(s) ? s.value = m : null),
|
|
3963
3970
|
onSave: i,
|
|
3964
3971
|
onCloseDialog: (m) => y.value = !1
|
|
@@ -3966,9 +3973,9 @@ const go = {
|
|
|
3966
3973
|
]),
|
|
3967
3974
|
_: 1
|
|
3968
3975
|
}, 8, ["modelValue"]),
|
|
3969
|
-
Object.keys(
|
|
3976
|
+
Object.keys(E(n)).length ? (Q(), fe(v, {
|
|
3970
3977
|
key: 0,
|
|
3971
|
-
modelValue:
|
|
3978
|
+
modelValue: E(s),
|
|
3972
3979
|
"onUpdate:modelValue": u[2] || (u[2] = (y) => $e(s) ? s.value = y : null),
|
|
3973
3980
|
onSave: i
|
|
3974
3981
|
}, null, 8, ["modelValue"])) : He("", !0)
|
|
@@ -3979,73 +3986,73 @@ const go = {
|
|
|
3979
3986
|
__name: "index",
|
|
3980
3987
|
setup(e) {
|
|
3981
3988
|
const a = Ce(
|
|
3982
|
-
() => import("./Search-
|
|
3989
|
+
() => import("./Search-KNaJ43Yv.js")
|
|
3983
3990
|
), n = Ce(
|
|
3984
|
-
() => import("./RefreshTable-
|
|
3991
|
+
() => import("./RefreshTable-vbz6jP_l.js")
|
|
3985
3992
|
), t = Ce(
|
|
3986
|
-
() => import("./Options-
|
|
3993
|
+
() => import("./Options-CvAQ7vuJ.js")
|
|
3987
3994
|
), l = Ce(
|
|
3988
|
-
() => import("./index-
|
|
3995
|
+
() => import("./index-BjboPrMg.js")
|
|
3989
3996
|
), s = Ce(
|
|
3990
|
-
() => import("./Columns-
|
|
3997
|
+
() => import("./Columns-lW5ifpVY.js")
|
|
3991
3998
|
), c = Ce(
|
|
3992
|
-
() => import("./Download-
|
|
3999
|
+
() => import("./Download-Dv6nv_kh.js")
|
|
3993
4000
|
), r = ye("table_props"), i = ye("pluginOptions"), { advancedFiltersState: f } = tt(), u = R(null), o = R(!1), v = r.options?.header?.components ?? {}, y = V(() => Object.keys(f.value).length);
|
|
3994
4001
|
return (m, h) => {
|
|
3995
4002
|
const S = go, k = ca;
|
|
3996
|
-
return
|
|
4003
|
+
return Q(), Ee("div", null, [
|
|
3997
4004
|
d(oo, null, {
|
|
3998
|
-
default:
|
|
4005
|
+
default: Y(() => [
|
|
3999
4006
|
d(ul, {
|
|
4000
4007
|
class: "d-flex align-center",
|
|
4001
4008
|
style: { gap: "0.75rem" }
|
|
4002
4009
|
}, {
|
|
4003
|
-
default:
|
|
4010
|
+
default: Y(() => [
|
|
4004
4011
|
d(_e, {
|
|
4005
4012
|
variant: "text",
|
|
4006
|
-
icon:
|
|
4007
|
-
color:
|
|
4013
|
+
icon: E(i).header.icons.advancedFilters,
|
|
4014
|
+
color: E(y) ? "primary" : "dark",
|
|
4008
4015
|
density: "comfortable",
|
|
4009
|
-
onClick: h[0] || (h[0] = (
|
|
4016
|
+
onClick: h[0] || (h[0] = (w) => o.value = !0)
|
|
4010
4017
|
}, {
|
|
4011
|
-
default:
|
|
4012
|
-
|
|
4018
|
+
default: Y(() => [
|
|
4019
|
+
E(y) ? (Q(), fe(Ja, {
|
|
4013
4020
|
key: 0,
|
|
4014
4021
|
color: "primary",
|
|
4015
|
-
content:
|
|
4022
|
+
content: E(y)
|
|
4016
4023
|
}, {
|
|
4017
|
-
default:
|
|
4024
|
+
default: Y(() => [
|
|
4018
4025
|
d(ge)
|
|
4019
4026
|
]),
|
|
4020
4027
|
_: 1
|
|
4021
|
-
}, 8, ["content"])) : (
|
|
4028
|
+
}, 8, ["content"])) : (Q(), fe(ge, { key: 1 }))
|
|
4022
4029
|
]),
|
|
4023
4030
|
_: 1
|
|
4024
4031
|
}, 8, ["icon", "color"]),
|
|
4025
|
-
|
|
4032
|
+
E(r).hardFilters.length ? (Q(), fe(xe(E(v).hardFilters ?? E(l)), {
|
|
4026
4033
|
key: 0,
|
|
4027
4034
|
id: "header-hardFilters"
|
|
4028
4035
|
})) : He("", !0),
|
|
4029
4036
|
d(S, {
|
|
4030
|
-
modelValue:
|
|
4031
|
-
"onUpdate:modelValue": h[1] || (h[1] = (
|
|
4037
|
+
modelValue: E(o),
|
|
4038
|
+
"onUpdate:modelValue": h[1] || (h[1] = (w) => $e(o) ? o.value = w : null)
|
|
4032
4039
|
}, null, 8, ["modelValue"]),
|
|
4033
|
-
(
|
|
4040
|
+
(Q(), fe(xe(E(v).toolbar), { id: "header-toolbar" }))
|
|
4034
4041
|
]),
|
|
4035
4042
|
_: 1
|
|
4036
4043
|
}),
|
|
4037
4044
|
d(ul, { class: "d-flex align-center justify-end" }, {
|
|
4038
|
-
default:
|
|
4039
|
-
(
|
|
4040
|
-
(
|
|
4045
|
+
default: Y(() => [
|
|
4046
|
+
(Q(), fe(xe(E(v).search ?? E(a)), { id: "header-search" })),
|
|
4047
|
+
(Q(), fe(xe(E(v).columns ?? E(s)), {
|
|
4041
4048
|
id: "header-columns",
|
|
4042
|
-
"component-refs": { columns:
|
|
4049
|
+
"component-refs": { columns: E(u) }
|
|
4043
4050
|
}, null, 8, ["component-refs"])),
|
|
4044
|
-
(
|
|
4045
|
-
(
|
|
4046
|
-
(
|
|
4051
|
+
(Q(), fe(xe(E(v).download ?? E(c)), { id: "header-download" })),
|
|
4052
|
+
(Q(), fe(xe(E(v).refreshTable ?? E(n)), { id: "header-refreshTable" })),
|
|
4053
|
+
(Q(), fe(xe(E(v).options ?? E(t)), {
|
|
4047
4054
|
id: "header-options",
|
|
4048
|
-
"component-refs": { columns:
|
|
4055
|
+
"component-refs": { columns: E(u) }
|
|
4049
4056
|
}, null, 8, ["component-refs"]))
|
|
4050
4057
|
]),
|
|
4051
4058
|
_: 1
|
|
@@ -4091,44 +4098,44 @@ const go = {
|
|
|
4091
4098
|
], ["update:modelValue"]),
|
|
4092
4099
|
setup(e, { expose: a, emit: n }) {
|
|
4093
4100
|
const t = Ce(
|
|
4094
|
-
() => import("./Table-
|
|
4101
|
+
() => import("./Table-P3KDor2k.js")
|
|
4095
4102
|
), l = Ce(
|
|
4096
|
-
() => import("./TableServer-
|
|
4097
|
-
), { storeOptions: s } = an(), { saveTableOptions: c } = tt(), r = ut(e, "modelValue"), i = ye("table_props"), f = ye("pluginOptions"), u = R(null), o = R(!1), v = R(!1), y = R(!1), m = n, h = gt(), { dataStateGet: S, tableDataState: k, checkTableState:
|
|
4103
|
+
() => import("./TableServer-C7VVLhRY.js")
|
|
4104
|
+
), { storeOptions: s } = an(), { saveTableOptions: c } = tt(), r = ut(e, "modelValue"), i = ye("table_props"), f = ye("pluginOptions"), u = R(null), o = R(!1), v = R(!1), y = R(!1), m = n, h = gt(), { dataStateGet: S, tableDataState: k, checkTableState: w } = Bl(i), { addTable: D, restoreData: F } = h, _ = V(() => {
|
|
4098
4105
|
const $ = i.options?.header;
|
|
4099
4106
|
return $ === void 0 || typeof $ == "object" && $ !== null;
|
|
4100
4107
|
});
|
|
4101
4108
|
return Ne(async () => {
|
|
4102
|
-
|
|
4109
|
+
D({ table_id: i.id }), await w();
|
|
4103
4110
|
const $ = S();
|
|
4104
4111
|
if ($)
|
|
4105
4112
|
F({ table_id: i.id, data: $ });
|
|
4106
4113
|
else {
|
|
4107
|
-
const
|
|
4108
|
-
|
|
4114
|
+
const I = k.value.options.columns;
|
|
4115
|
+
I.selected = i.headers.filter((B) => !B.hidden).map((B) => B.key), I.sorted = i.headers.map((B) => B.key);
|
|
4109
4116
|
}
|
|
4110
4117
|
c(
|
|
4111
4118
|
Mn(s.state.value, k.value.options.state)
|
|
4112
4119
|
), v.value = !0, await me(), y.value = !0;
|
|
4113
4120
|
}), Be("busEmits", m), Be("tableRef", u), Be("tableState", k), Be("downloadModal", o), a({ tableRef: u }), ($, P) => {
|
|
4114
|
-
const
|
|
4115
|
-
return
|
|
4121
|
+
const I = yo;
|
|
4122
|
+
return E(v) ? (Q(), Ee("div", bo, [
|
|
4116
4123
|
d(Ht, null, {
|
|
4117
|
-
default:
|
|
4118
|
-
|
|
4119
|
-
default:
|
|
4120
|
-
d(
|
|
4124
|
+
default: Y(() => [
|
|
4125
|
+
E(_) ? (Q(), fe(yt, { key: 0 }, {
|
|
4126
|
+
default: Y(() => [
|
|
4127
|
+
d(I)
|
|
4121
4128
|
]),
|
|
4122
4129
|
_: 1
|
|
4123
4130
|
})) : He("", !0),
|
|
4124
4131
|
d(bt, { class: "pa-0" }, {
|
|
4125
|
-
default:
|
|
4126
|
-
|
|
4132
|
+
default: Y(() => [
|
|
4133
|
+
E(y) ? (Q(), fe(xe(E(i).api ? E(l) : E(t)), {
|
|
4127
4134
|
key: 0,
|
|
4128
4135
|
ref_key: "tableRef",
|
|
4129
4136
|
ref: u,
|
|
4130
4137
|
modelValue: r.value,
|
|
4131
|
-
"onUpdate:modelValue": P[0] || (P[0] = (
|
|
4138
|
+
"onUpdate:modelValue": P[0] || (P[0] = (B) => r.value = B)
|
|
4132
4139
|
}, null, 8, ["modelValue"])) : He("", !0)
|
|
4133
4140
|
]),
|
|
4134
4141
|
_: 1
|
|
@@ -4137,24 +4144,24 @@ const go = {
|
|
|
4137
4144
|
_: 1
|
|
4138
4145
|
}),
|
|
4139
4146
|
d(Gt, {
|
|
4140
|
-
modelValue:
|
|
4141
|
-
"onUpdate:modelValue": P[1] || (P[1] = (
|
|
4147
|
+
modelValue: E(o),
|
|
4148
|
+
"onUpdate:modelValue": P[1] || (P[1] = (B) => $e(o) ? o.value = B : null),
|
|
4142
4149
|
"max-width": "350",
|
|
4143
4150
|
persistent: ""
|
|
4144
4151
|
}, {
|
|
4145
|
-
default:
|
|
4152
|
+
default: Y(() => [
|
|
4146
4153
|
d(Lt, {
|
|
4147
4154
|
class: "py-2",
|
|
4148
4155
|
color: "primary",
|
|
4149
4156
|
elevation: "12",
|
|
4150
4157
|
rounded: "lg"
|
|
4151
4158
|
}, {
|
|
4152
|
-
default:
|
|
4159
|
+
default: Y(() => [
|
|
4153
4160
|
d(nt, {
|
|
4154
|
-
"prepend-icon":
|
|
4161
|
+
"prepend-icon": E(f).header.icons.download,
|
|
4155
4162
|
title: $.$t("$datatables.preparing_download_file")
|
|
4156
4163
|
}, {
|
|
4157
|
-
prepend:
|
|
4164
|
+
prepend: Y(() => [
|
|
4158
4165
|
C("div", ho, [
|
|
4159
4166
|
d(ge, {
|
|
4160
4167
|
color: "primary",
|
|
@@ -4162,7 +4169,7 @@ const go = {
|
|
|
4162
4169
|
})
|
|
4163
4170
|
])
|
|
4164
4171
|
]),
|
|
4165
|
-
append:
|
|
4172
|
+
append: Y(() => [
|
|
4166
4173
|
d(Hn, {
|
|
4167
4174
|
color: "primary",
|
|
4168
4175
|
indeterminate: "disable-shrink",
|
|
@@ -4246,11 +4253,11 @@ const go = {
|
|
|
4246
4253
|
}, o = n;
|
|
4247
4254
|
return a({ refreshTable: f, refetchData: u, triggerHook: l }), Be("table_props", t), Be("triggerHook", l), (v, y) => {
|
|
4248
4255
|
const m = po;
|
|
4249
|
-
return
|
|
4256
|
+
return Q(), fe(m, {
|
|
4250
4257
|
id: e.id,
|
|
4251
4258
|
ref_key: "table",
|
|
4252
4259
|
ref: r,
|
|
4253
|
-
key: `${e.id}-${
|
|
4260
|
+
key: `${e.id}-${E(i)}`,
|
|
4254
4261
|
onRefreshTable: f,
|
|
4255
4262
|
onRefetchData: u
|
|
4256
4263
|
}, null, 8, ["id"]);
|