@ianicdev/datatables2 0.12.1 → 0.12.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Comparison-DtpUZsrU.cjs → Comparison-DfuUL_lg.cjs} +1 -1
- package/dist/{Comparison-IcnZYHnn.js → Comparison-N8osVfYi.js} +1 -1
- package/dist/{Datepicker-tAQpdCVA.cjs → Datepicker-BslEdGY7.cjs} +1 -1
- package/dist/{Datepicker-BKJGzszq.js → Datepicker-oT5XkfSQ.js} +2 -2
- package/dist/{Options-th4F06rr.cjs → Options-CFrdbv20.cjs} +1 -1
- package/dist/{Options-DZWZnKMZ.js → Options-DPbrIuPG.js} +3 -3
- package/dist/{RefreshTable-CnvdYMek.cjs → RefreshTable-BeE3CtGX.cjs} +1 -1
- package/dist/{RefreshTable-D4ifMTa_.js → RefreshTable-D_D2kU4p.js} +1 -1
- package/dist/{Search-BkQ1aZEe.js → Search-CT-0ryQ2.js} +2 -2
- package/dist/{Search-B9HBH338.cjs → Search-CsUDdcHB.cjs} +1 -1
- package/dist/Table-C1EHZ-02.cjs +1 -0
- package/dist/Table-D37Ds0_m.js +61 -0
- package/dist/{TableServer-DSAcYBTM.js → TableServer-B1DM8v28.js} +833 -830
- package/dist/TableServer-DrOd38-9.cjs +20 -0
- package/dist/{cellRender-BBnDEG_7.js → cellRender-13NfTsx3.js} +564 -544
- package/dist/{cellRender-8D0QBLeC.cjs → cellRender-C8IKwdOs.cjs} +1 -1
- package/dist/{dataTables-C0Ygb6M3.cjs → dataTables-BTH4IL4O.cjs} +1 -1
- package/dist/{dataTables-B691de3Y.js → dataTables-D9mO6lla.js} +4 -4
- package/dist/datatables.cjs +1 -1
- package/dist/datatables.js +1 -1
- package/dist/{index-DwBno3e_.js → index-B3-wvk9W.js} +2 -2
- package/dist/{index-H3lKuAD2.js → index-BT5V7cMT.js} +2 -2
- package/dist/{index-CX6NrL8T.cjs → index-C-af6ZNv.cjs} +1 -1
- package/dist/{index-GgkpPHGm.cjs → index-C_cE1ziZ.cjs} +1 -1
- package/dist/{index-CPLpre1I.js → index-CnR_HISW.js} +1 -1
- package/dist/{index-D4MrgePs.cjs → index-DL2-mlif.cjs} +1 -1
- package/dist/{index-C9x5Z2bI.js → index-DrPUD68m.js} +412 -409
- package/dist/{index-BiBUa6-_.cjs → index-nEr64nuZ.cjs} +1 -1
- package/dist/{useColumns-CTrxq_by.js → useColumns-1ARLTmLZ.js} +5 -5
- package/dist/{useColumns-Cgjt48Pi.cjs → useColumns-CsjK1ckM.cjs} +1 -1
- package/package.json +2 -1
- package/dist/Table-CGFEU1ml.cjs +0 -1
- package/dist/Table-CUFIrlzk.js +0 -59
- package/dist/TableServer-Ccn3CM5P.cjs +0 -20
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { ref as
|
|
1
|
+
import { ref as K, inject as _e, computed as I, toRef as R, shallowRef as ee, watch as se, createVNode as g, normalizeStyle as xe, normalizeClass as re, createElementVNode as b, mergeProps as N, withDirectives as Ue, vShow as Pt, Fragment as ce, toDisplayString as Vt, useModel as _t, openBlock as oe, createBlock as pe, withCtx as Ce, createElementBlock as Ke, renderList as Wt, unref as L, mergeModels as qt, useId as Xe, provide as We, onScopeDispose as rt, nextTick as ke, onBeforeMount as Vn, onBeforeUnmount as xn, onMounted as at, cloneVNode as In, watchEffect as zt, toValue as Ut, createTextVNode as kl, defineAsyncComponent as Ee, resolveDynamicComponent as $e, isRef as xt, createCommentVNode as Me, defineComponent as At, useTemplateRef as wn } from "vue";
|
|
2
2
|
import { defineStore as Sl } from "pinia";
|
|
3
|
-
import { u as
|
|
4
|
-
import { useI18n as
|
|
5
|
-
import { createSharedComposable as
|
|
6
|
-
const
|
|
7
|
-
const e =
|
|
3
|
+
import { u as Ft, m as Kt, P as Cl, c as Ne, a as Pn, e as _n, r as An, g as ie, b as Vl, d as xl, f as It, I as ct, h as de, V as rl, i as Se, j as Il, p as X, k as ye, l as wl, n as Oe, o as Fn, q as he, s as ot, t as Jt, v as qe, w as Xt, x as He, R as lt, y as it, z as Yt, A as Dt, B as Qt, C as gt, D as Dn, E as Ve, F as cl, G as Pl, H as _l, J as Al, K as Fl, L as Fe, M as nt, N as Tn, O as Dl, Q as yt, S as Bn, T as Zt, U as ht, W as el, X as Le, Y as Tt, Z as bt, _ as tl, $ as Tl, a0 as Bl, a1 as ll, a2 as pt, a3 as Rl, a4 as Te, a5 as kt, a6 as dt, a7 as Ye, a8 as El, a9 as nl, aa as Bt, ab as Ol, ac as $l, ad as Ml, ae as jt, af as Rn, ag as Nl, ah as En, ai as On, aj as Ll, ak as et, al as Hl, am as $n, an as dl, ao as St, ap as zl, aq as Mn, ar as Nn, as as Ul, at as Kl, au as al, av as vt, aw as Ln, ax as ze, ay as jl, az as Gl, aA as wt, aB as Wl, aC as Hn, aD as zn, aE as Un, aF as Kn, aG as jn, aH as Gn, aI as vl, aJ as Wn, aK as qn, aL as tt, aM as Jn, aN as Xn, aO as Yn, aP as Qn } from "./dataTables-D9mO6lla.js";
|
|
4
|
+
import { useI18n as Zn } from "vue-i18n";
|
|
5
|
+
import { createSharedComposable as ea, useResizeObserver as ta } from "@vueuse/core";
|
|
6
|
+
const Rt = Sl("datatables", () => {
|
|
7
|
+
const e = K([]), a = ({ table_id: o }) => {
|
|
8
8
|
const u = e.value.findIndex((r) => r.id === o), d = {
|
|
9
9
|
search: {
|
|
10
10
|
query: ""
|
|
@@ -55,8 +55,8 @@ const Bt = Sl("datatables", () => {
|
|
|
55
55
|
setTableHash: n
|
|
56
56
|
};
|
|
57
57
|
});
|
|
58
|
-
function
|
|
59
|
-
const { setData: e, getCurrentTable: a } =
|
|
58
|
+
function Et() {
|
|
59
|
+
const { setData: e, getCurrentTable: a } = Rt(), t = _e("table_props"), n = I(() => a(t.id)), l = I(() => n.value.search?.query), i = I(() => {
|
|
60
60
|
if (!t?.headers.length) return null;
|
|
61
61
|
const d = n.value.options?.columns.selected ?? [];
|
|
62
62
|
return (n.value.options?.columns.sorted ?? []).filter((m) => d.includes(m)).map(
|
|
@@ -80,41 +80,41 @@ function Rt() {
|
|
|
80
80
|
}
|
|
81
81
|
};
|
|
82
82
|
}
|
|
83
|
-
const
|
|
84
|
-
function
|
|
83
|
+
const la = /* @__PURE__ */ Symbol.for("vuetify:goto");
|
|
84
|
+
function na() {
|
|
85
85
|
return {
|
|
86
86
|
container: void 0,
|
|
87
87
|
duration: 300,
|
|
88
88
|
layout: !1,
|
|
89
89
|
offset: 0,
|
|
90
90
|
easing: "easeInOutCubic",
|
|
91
|
-
patterns:
|
|
91
|
+
patterns: _n
|
|
92
92
|
};
|
|
93
93
|
}
|
|
94
|
-
function
|
|
95
|
-
return
|
|
94
|
+
function aa(e) {
|
|
95
|
+
return ol(e) ?? (document.scrollingElement || document.body);
|
|
96
96
|
}
|
|
97
|
-
function
|
|
98
|
-
return typeof e == "string" ? document.querySelector(e) :
|
|
97
|
+
function ol(e) {
|
|
98
|
+
return typeof e == "string" ? document.querySelector(e) : An(e);
|
|
99
99
|
}
|
|
100
|
-
function
|
|
100
|
+
function Nt(e, a, t) {
|
|
101
101
|
if (typeof e == "number") return a && t ? -e : e;
|
|
102
|
-
let n =
|
|
102
|
+
let n = ol(e), l = 0;
|
|
103
103
|
for (; n; )
|
|
104
104
|
l += a ? n.offsetLeft : n.offsetTop, n = n.offsetParent;
|
|
105
105
|
return l;
|
|
106
106
|
}
|
|
107
|
-
async function
|
|
108
|
-
const l = t ? "scrollLeft" : "scrollTop", i =
|
|
107
|
+
async function fl(e, a, t, n) {
|
|
108
|
+
const l = t ? "scrollLeft" : "scrollTop", i = Kt(n?.options ?? na(), a), c = n?.rtl.value, o = (typeof e == "number" ? e : ol(e)) ?? 0, u = i.container === "parent" && o instanceof HTMLElement ? o.parentElement : aa(i.container), d = Cl() ? i.patterns.instant : typeof i.easing == "function" ? i.easing : i.patterns[i.easing];
|
|
109
109
|
if (!d) throw new TypeError(`Easing function "${i.easing}" not found.`);
|
|
110
110
|
let r;
|
|
111
111
|
if (typeof o == "number")
|
|
112
|
-
r =
|
|
113
|
-
else if (r =
|
|
112
|
+
r = Nt(o, t, c);
|
|
113
|
+
else if (r = Nt(o, t, c) - Nt(u, t, c), i.layout) {
|
|
114
114
|
const h = window.getComputedStyle(o).getPropertyValue("--v-layout-top");
|
|
115
115
|
h && (r -= parseInt(h, 10));
|
|
116
116
|
}
|
|
117
|
-
r += i.offset, r =
|
|
117
|
+
r += i.offset, r = ia(u, r, !!c, !!t);
|
|
118
118
|
const s = u[l] ?? 0;
|
|
119
119
|
if (r === s) return Promise.resolve(r);
|
|
120
120
|
const m = performance.now();
|
|
@@ -123,15 +123,15 @@ async function vl(e, a, t, n) {
|
|
|
123
123
|
if (u[l] = _, P >= 1 && Math.abs(_ - u[l]) < 10)
|
|
124
124
|
return v(r);
|
|
125
125
|
if (P > 2)
|
|
126
|
-
return
|
|
126
|
+
return Pn("Scroll target is not reachable"), v(u[l]);
|
|
127
127
|
requestAnimationFrame(h);
|
|
128
128
|
}));
|
|
129
129
|
}
|
|
130
|
-
function
|
|
130
|
+
function oa() {
|
|
131
131
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
132
|
-
const a = _e(
|
|
132
|
+
const a = _e(la), {
|
|
133
133
|
isRtl: t
|
|
134
|
-
} =
|
|
134
|
+
} = Ft();
|
|
135
135
|
if (!a) throw new Error("[Vuetify] Could not find injected goto instance");
|
|
136
136
|
const n = {
|
|
137
137
|
...a,
|
|
@@ -139,11 +139,11 @@ function aa() {
|
|
|
139
139
|
rtl: R(() => a.rtl.value || t.value)
|
|
140
140
|
};
|
|
141
141
|
async function l(i, c) {
|
|
142
|
-
return
|
|
142
|
+
return fl(i, Kt(e, c), !1, n);
|
|
143
143
|
}
|
|
144
|
-
return l.horizontal = async (i, c) =>
|
|
144
|
+
return l.horizontal = async (i, c) => fl(i, Kt(e, c), !0, n), l;
|
|
145
145
|
}
|
|
146
|
-
function
|
|
146
|
+
function ia(e, a, t, n) {
|
|
147
147
|
const {
|
|
148
148
|
scrollWidth: l,
|
|
149
149
|
scrollHeight: i
|
|
@@ -151,7 +151,7 @@ function oa(e, a, t, n) {
|
|
|
151
151
|
let u, d;
|
|
152
152
|
return n ? t ? (u = -(l - c), d = 0) : (u = 0, d = l - c) : (u = 0, d = i + -o), Ne(a, u, d);
|
|
153
153
|
}
|
|
154
|
-
function
|
|
154
|
+
function ua(e) {
|
|
155
155
|
let {
|
|
156
156
|
selectedElement: a,
|
|
157
157
|
containerElement: t,
|
|
@@ -161,7 +161,7 @@ function ia(e) {
|
|
|
161
161
|
const i = ft(l, t), c = ql(l, n, t), o = ft(l, a), u = Jl(l, a), d = o * 0.4;
|
|
162
162
|
return c > u ? u - d : c + i < u + o ? u - i + o + d : c;
|
|
163
163
|
}
|
|
164
|
-
function
|
|
164
|
+
function sa(e) {
|
|
165
165
|
let {
|
|
166
166
|
selectedElement: a,
|
|
167
167
|
containerElement: t,
|
|
@@ -170,10 +170,10 @@ function ua(e) {
|
|
|
170
170
|
const l = ft(n, t), i = Jl(n, a), c = ft(n, a);
|
|
171
171
|
return i - l / 2 + c / 2;
|
|
172
172
|
}
|
|
173
|
-
function
|
|
173
|
+
function ml(e, a) {
|
|
174
174
|
return a?.[e ? "scrollWidth" : "scrollHeight"] || 0;
|
|
175
175
|
}
|
|
176
|
-
function
|
|
176
|
+
function ra(e, a) {
|
|
177
177
|
return a?.[e ? "clientWidth" : "clientHeight"] || 0;
|
|
178
178
|
}
|
|
179
179
|
function ql(e, a, t) {
|
|
@@ -220,14 +220,14 @@ const Xl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Yl = X({
|
|
|
220
220
|
validator: (e) => typeof e == "boolean" || ["always", "desktop", "mobile", "never"].includes(e)
|
|
221
221
|
},
|
|
222
222
|
...he(),
|
|
223
|
-
...
|
|
223
|
+
...Fn({
|
|
224
224
|
mobile: null
|
|
225
225
|
}),
|
|
226
226
|
...Oe(),
|
|
227
227
|
...wl({
|
|
228
228
|
selectedClass: "v-slide-group-item--active"
|
|
229
229
|
})
|
|
230
|
-
}, "VSlideGroup"),
|
|
230
|
+
}, "VSlideGroup"), gl = ie()({
|
|
231
231
|
name: "VSlideGroup",
|
|
232
232
|
props: Yl(),
|
|
233
233
|
emits: {
|
|
@@ -239,7 +239,7 @@ const Xl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Yl = X({
|
|
|
239
239
|
} = a;
|
|
240
240
|
const {
|
|
241
241
|
isRtl: n
|
|
242
|
-
} =
|
|
242
|
+
} = Ft(), {
|
|
243
243
|
displayClasses: l,
|
|
244
244
|
mobile: i
|
|
245
245
|
} = Vl(e), c = xl(e, e.symbol), o = ee(!1), u = ee(0), d = ee(0), r = ee(0), s = I(() => e.direction === "horizontal"), {
|
|
@@ -248,7 +248,7 @@ const Xl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Yl = X({
|
|
|
248
248
|
} = It(), {
|
|
249
249
|
resizeRef: h,
|
|
250
250
|
contentRect: y
|
|
251
|
-
} = It(), V =
|
|
251
|
+
} = It(), V = oa(), P = I(() => ({
|
|
252
252
|
container: m.el,
|
|
253
253
|
duration: 200,
|
|
254
254
|
easing: "easeOutQuart"
|
|
@@ -271,21 +271,21 @@ const Xl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Yl = X({
|
|
|
271
271
|
const F = ee(!1);
|
|
272
272
|
function E(p, f) {
|
|
273
273
|
let A = 0;
|
|
274
|
-
f ? A =
|
|
274
|
+
f ? A = sa({
|
|
275
275
|
containerElement: m.el,
|
|
276
276
|
isHorizontal: s.value,
|
|
277
277
|
selectedElement: p
|
|
278
|
-
}) : A =
|
|
278
|
+
}) : A = ua({
|
|
279
279
|
containerElement: m.el,
|
|
280
280
|
isHorizontal: s.value,
|
|
281
281
|
isRtl: n.value,
|
|
282
282
|
selectedElement: p
|
|
283
|
-
}),
|
|
283
|
+
}), U(A);
|
|
284
284
|
}
|
|
285
|
-
function
|
|
285
|
+
function U(p) {
|
|
286
286
|
if (!ct || !m.el) return;
|
|
287
287
|
const f = ft(s.value, m.el), A = ql(s.value, n.value, m.el);
|
|
288
|
-
if (!(
|
|
288
|
+
if (!(ml(s.value, m.el) <= f || // Prevent scrolling by only a couple of pixels, which doesn't look smooth
|
|
289
289
|
Math.abs(p - A) < 16)) {
|
|
290
290
|
if (s.value && n.value && m.el) {
|
|
291
291
|
const {
|
|
@@ -363,7 +363,7 @@ const Xl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Yl = X({
|
|
|
363
363
|
} = m.el;
|
|
364
364
|
J += ve - ge;
|
|
365
365
|
}
|
|
366
|
-
|
|
366
|
+
U(J);
|
|
367
367
|
}
|
|
368
368
|
const q = I(() => ({
|
|
369
369
|
next: c.next,
|
|
@@ -395,7 +395,7 @@ const Xl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Yl = X({
|
|
|
395
395
|
}
|
|
396
396
|
}), B = I(() => Math.abs(u.value) > 1), O = I(() => {
|
|
397
397
|
if (!m.value || !z.value) return !1;
|
|
398
|
-
const p =
|
|
398
|
+
const p = ml(s.value, m.el), f = ra(s.value, m.el);
|
|
399
399
|
return p - f - Math.abs(u.value) > 1;
|
|
400
400
|
});
|
|
401
401
|
return de(() => g(e.tag, {
|
|
@@ -415,8 +415,8 @@ const Xl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Yl = X({
|
|
|
415
415
|
}]),
|
|
416
416
|
onMousedown: ne,
|
|
417
417
|
onClick: () => B.value && ue("prev")
|
|
418
|
-
}, [t.prev?.(q.value) ?? g(
|
|
419
|
-
default: () => [g(
|
|
418
|
+
}, [t.prev?.(q.value) ?? g(rl, null, {
|
|
419
|
+
default: () => [g(Se, {
|
|
420
420
|
icon: n.value ? e.nextIcon : e.prevIcon
|
|
421
421
|
}, null)]
|
|
422
422
|
})]), b("div", {
|
|
@@ -437,8 +437,8 @@ const Xl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Yl = X({
|
|
|
437
437
|
}]),
|
|
438
438
|
onMousedown: ne,
|
|
439
439
|
onClick: () => O.value && ue("next")
|
|
440
|
-
}, [t.next?.(q.value) ?? g(
|
|
441
|
-
default: () => [g(
|
|
440
|
+
}, [t.next?.(q.value) ?? g(rl, null, {
|
|
441
|
+
default: () => [g(Se, {
|
|
442
442
|
icon: n.value ? e.prevIcon : e.nextIcon
|
|
443
443
|
}, null)]
|
|
444
444
|
})])]
|
|
@@ -451,7 +451,7 @@ const Xl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Yl = X({
|
|
|
451
451
|
hasNext: O
|
|
452
452
|
};
|
|
453
453
|
}
|
|
454
|
-
}), Ql = /* @__PURE__ */ Symbol.for("vuetify:v-chip-group"),
|
|
454
|
+
}), Ql = /* @__PURE__ */ Symbol.for("vuetify:v-chip-group"), ca = X({
|
|
455
455
|
baseColor: String,
|
|
456
456
|
column: Boolean,
|
|
457
457
|
filter: Boolean,
|
|
@@ -468,12 +468,12 @@ const Xl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Yl = X({
|
|
|
468
468
|
}),
|
|
469
469
|
...Oe(),
|
|
470
470
|
...He(),
|
|
471
|
-
...
|
|
471
|
+
...Xt({
|
|
472
472
|
variant: "tonal"
|
|
473
473
|
})
|
|
474
|
-
}, "VChipGroup"),
|
|
474
|
+
}, "VChipGroup"), da = ie()({
|
|
475
475
|
name: "VChipGroup",
|
|
476
|
-
props:
|
|
476
|
+
props: ca(),
|
|
477
477
|
emits: {
|
|
478
478
|
"update:modelValue": (e) => !0
|
|
479
479
|
},
|
|
@@ -490,7 +490,7 @@ const Xl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Yl = X({
|
|
|
490
490
|
prev: o,
|
|
491
491
|
selected: u
|
|
492
492
|
} = xl(e, Ql);
|
|
493
|
-
return
|
|
493
|
+
return Jt({
|
|
494
494
|
VChip: {
|
|
495
495
|
baseColor: R(() => e.baseColor),
|
|
496
496
|
color: R(() => e.color),
|
|
@@ -499,8 +499,8 @@ const Xl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Yl = X({
|
|
|
499
499
|
variant: R(() => e.variant)
|
|
500
500
|
}
|
|
501
501
|
}), de(() => {
|
|
502
|
-
const d =
|
|
503
|
-
return g(
|
|
502
|
+
const d = gl.filterProps(e);
|
|
503
|
+
return g(gl, N(d, {
|
|
504
504
|
class: ["v-chip-group", {
|
|
505
505
|
"v-chip-group--column": e.column
|
|
506
506
|
}, n.value, e.class],
|
|
@@ -516,7 +516,7 @@ const Xl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Yl = X({
|
|
|
516
516
|
});
|
|
517
517
|
}), {};
|
|
518
518
|
}
|
|
519
|
-
}),
|
|
519
|
+
}), va = X({
|
|
520
520
|
activeClass: String,
|
|
521
521
|
appendAvatar: String,
|
|
522
522
|
appendIcon: ye,
|
|
@@ -558,19 +558,19 @@ const Xl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Yl = X({
|
|
|
558
558
|
},
|
|
559
559
|
onClick: Le(),
|
|
560
560
|
onClickOnce: Le(),
|
|
561
|
-
...
|
|
561
|
+
...el(),
|
|
562
562
|
...he(),
|
|
563
563
|
...ht(),
|
|
564
|
-
...
|
|
565
|
-
...
|
|
564
|
+
...Zt(),
|
|
565
|
+
...Bn(),
|
|
566
566
|
...yt(),
|
|
567
567
|
...Dl(),
|
|
568
|
-
...
|
|
568
|
+
...Tn(),
|
|
569
569
|
...Oe({
|
|
570
570
|
tag: "span"
|
|
571
571
|
}),
|
|
572
572
|
...He(),
|
|
573
|
-
...
|
|
573
|
+
...Xt({
|
|
574
574
|
variant: "tonal"
|
|
575
575
|
})
|
|
576
576
|
}, "VChip"), mt = ie()({
|
|
@@ -578,7 +578,7 @@ const Xl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Yl = X({
|
|
|
578
578
|
directives: {
|
|
579
579
|
vRipple: lt
|
|
580
580
|
},
|
|
581
|
-
props:
|
|
581
|
+
props: va(),
|
|
582
582
|
emits: {
|
|
583
583
|
"click:close": (e) => !0,
|
|
584
584
|
"update:modelValue": (e) => !0,
|
|
@@ -595,17 +595,17 @@ const Xl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Yl = X({
|
|
|
595
595
|
t: i
|
|
596
596
|
} = it(), {
|
|
597
597
|
borderClasses: c
|
|
598
|
-
} =
|
|
598
|
+
} = Yt(e), {
|
|
599
599
|
densityClasses: o
|
|
600
|
-
} =
|
|
600
|
+
} = Dt(e), {
|
|
601
601
|
elevationClasses: u
|
|
602
|
-
} =
|
|
602
|
+
} = Qt(e), {
|
|
603
603
|
roundedClasses: d
|
|
604
604
|
} = gt(e), {
|
|
605
605
|
sizeClasses: r
|
|
606
|
-
} =
|
|
606
|
+
} = Dn(e), {
|
|
607
607
|
themeClasses: s
|
|
608
|
-
} = ot(e), m = Ve(e, "modelValue"), v =
|
|
608
|
+
} = ot(e), m = Ve(e, "modelValue"), v = cl(e, Ql, !1), h = cl(e, Xl, !1), y = Pl(e, t), V = R(() => e.link !== !1 && y.isLink.value), P = I(() => !e.disabled && e.link !== !1 && (!!v || e.link || y.isClickable.value)), _ = R(() => ({
|
|
609
609
|
"aria-label": i(e.closeLabel),
|
|
610
610
|
disabled: e.disabled,
|
|
611
611
|
onClick(C) {
|
|
@@ -623,11 +623,11 @@ const Xl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Yl = X({
|
|
|
623
623
|
color: !v || v.isSelected.value ? e.color ?? e.baseColor : e.baseColor,
|
|
624
624
|
variant: e.variant
|
|
625
625
|
}));
|
|
626
|
-
function
|
|
626
|
+
function U(C) {
|
|
627
627
|
n("click", C), P.value && (y.navigate.value?.(C), v?.toggle());
|
|
628
628
|
}
|
|
629
629
|
function w(C) {
|
|
630
|
-
(C.key === "Enter" || C.key === " ") && (C.preventDefault(),
|
|
630
|
+
(C.key === "Enter" || C.key === " ") && (C.preventDefault(), U(C));
|
|
631
631
|
}
|
|
632
632
|
return () => {
|
|
633
633
|
const C = y.isLink.value ? "a" : e.tag, $ = !!(e.appendIcon || e.appendAvatar), D = !!($ || l.append), G = !!(l.close || e.closable), ne = !!(l.filter || e.filter) && v, H = !!(e.prependIcon || e.prependAvatar), W = !!(H || l.prepend);
|
|
@@ -644,7 +644,7 @@ const Xl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Yl = X({
|
|
|
644
644
|
disabled: e.disabled || void 0,
|
|
645
645
|
draggable: e.draggable,
|
|
646
646
|
tabindex: P.value ? 0 : void 0,
|
|
647
|
-
onClick:
|
|
647
|
+
onClick: U,
|
|
648
648
|
onKeydown: P.value && !V.value && w
|
|
649
649
|
}), {
|
|
650
650
|
default: () => [Al(P.value, "v-chip"), ne && g(Fl, {
|
|
@@ -660,7 +660,7 @@ const Xl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Yl = X({
|
|
|
660
660
|
icon: e.filterIcon
|
|
661
661
|
}
|
|
662
662
|
}
|
|
663
|
-
}, l.filter) : g(
|
|
663
|
+
}, l.filter) : g(Se, {
|
|
664
664
|
key: "filter-icon",
|
|
665
665
|
icon: e.filterIcon
|
|
666
666
|
}, null)]), [[Pt, v.isSelected.value]])]
|
|
@@ -680,7 +680,7 @@ const Xl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Yl = X({
|
|
|
680
680
|
start: !0
|
|
681
681
|
}
|
|
682
682
|
}
|
|
683
|
-
}, l.prepend) : b(ce, null, [e.prependIcon && g(
|
|
683
|
+
}, l.prepend) : b(ce, null, [e.prependIcon && g(Se, {
|
|
684
684
|
key: "prepend-icon",
|
|
685
685
|
icon: e.prependIcon,
|
|
686
686
|
start: !0
|
|
@@ -714,7 +714,7 @@ const Xl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Yl = X({
|
|
|
714
714
|
icon: e.appendIcon
|
|
715
715
|
}
|
|
716
716
|
}
|
|
717
|
-
}, l.append) : b(ce, null, [e.appendIcon && g(
|
|
717
|
+
}, l.append) : b(ce, null, [e.appendIcon && g(Se, {
|
|
718
718
|
key: "append-icon",
|
|
719
719
|
end: !0,
|
|
720
720
|
icon: e.appendIcon
|
|
@@ -735,7 +735,7 @@ const Xl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Yl = X({
|
|
|
735
735
|
size: "x-small"
|
|
736
736
|
}
|
|
737
737
|
}
|
|
738
|
-
}, l.close) : g(
|
|
738
|
+
}, l.close) : g(Se, {
|
|
739
739
|
key: "close-icon",
|
|
740
740
|
icon: e.closeIcon,
|
|
741
741
|
size: "x-small"
|
|
@@ -743,20 +743,20 @@ const Xl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Yl = X({
|
|
|
743
743
|
}), [[lt, P.value && e.ripple, null]]);
|
|
744
744
|
};
|
|
745
745
|
}
|
|
746
|
-
}),
|
|
746
|
+
}), fa = X({
|
|
747
747
|
color: String,
|
|
748
|
-
...
|
|
748
|
+
...el(),
|
|
749
749
|
...he(),
|
|
750
750
|
...pt(),
|
|
751
|
-
...
|
|
752
|
-
...
|
|
751
|
+
...Zt(),
|
|
752
|
+
...ll(),
|
|
753
753
|
...Bl(),
|
|
754
754
|
...yt(),
|
|
755
755
|
...Oe(),
|
|
756
756
|
...He()
|
|
757
|
-
}, "VSheet"),
|
|
757
|
+
}, "VSheet"), il = ie()({
|
|
758
758
|
name: "VSheet",
|
|
759
|
-
props:
|
|
759
|
+
props: fa(),
|
|
760
760
|
setup(e, a) {
|
|
761
761
|
let {
|
|
762
762
|
slots: t
|
|
@@ -766,15 +766,15 @@ const Xl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Yl = X({
|
|
|
766
766
|
} = ot(e), {
|
|
767
767
|
backgroundColorClasses: l,
|
|
768
768
|
backgroundColorStyles: i
|
|
769
|
-
} =
|
|
769
|
+
} = Tt(() => e.color), {
|
|
770
770
|
borderClasses: c
|
|
771
|
-
} =
|
|
771
|
+
} = Yt(e), {
|
|
772
772
|
dimensionStyles: o
|
|
773
773
|
} = bt(e), {
|
|
774
774
|
elevationClasses: u
|
|
775
|
-
} =
|
|
775
|
+
} = Qt(e), {
|
|
776
776
|
locationStyles: d
|
|
777
|
-
} =
|
|
777
|
+
} = tl(e), {
|
|
778
778
|
positionClasses: r
|
|
779
779
|
} = Tl(e), {
|
|
780
780
|
roundedClasses: s
|
|
@@ -784,15 +784,15 @@ const Xl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Yl = X({
|
|
|
784
784
|
style: xe([i.value, o.value, d.value, e.style])
|
|
785
785
|
}, t)), {};
|
|
786
786
|
}
|
|
787
|
-
}),
|
|
787
|
+
}), ma = {
|
|
788
788
|
__name: "Selected",
|
|
789
789
|
props: {
|
|
790
790
|
modelValue: {},
|
|
791
791
|
modelModifiers: {}
|
|
792
792
|
},
|
|
793
|
-
emits: /* @__PURE__ */
|
|
793
|
+
emits: /* @__PURE__ */ qt("save", ["update:modelValue"]),
|
|
794
794
|
setup(e, { emit: a }) {
|
|
795
|
-
const { advancedFiltersState: t } =
|
|
795
|
+
const { advancedFiltersState: t } = Et(), n = _e("table_props"), l = _t(e, "modelValue"), i = (u, d) => {
|
|
796
796
|
const r = n.headers.find((h) => (h.advancedFilter?.key ?? h.key) === d), s = u.comparison === "=" ? ":" : " " + u.comparison, m = Array.isArray(u.value) ? u.value : [u.value], v = m.filter((h, y) => !(r.advancedFilter?.component === "datepicker" && y !== 0 && y !== m.length - 1)).map((h) => {
|
|
797
797
|
const y = r.advancedFilter?.options?.items ?? [];
|
|
798
798
|
let V = h, P;
|
|
@@ -805,11 +805,11 @@ const Xl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Yl = X({
|
|
|
805
805
|
}, c = (u) => {
|
|
806
806
|
l.value[u] = { comparison: "=", value: null }, o("save");
|
|
807
807
|
}, o = a;
|
|
808
|
-
return (u, d) => (oe(), pe(
|
|
808
|
+
return (u, d) => (oe(), pe(il, null, {
|
|
809
809
|
default: Ce(() => [
|
|
810
|
-
g(
|
|
810
|
+
g(da, null, {
|
|
811
811
|
default: Ce(() => [
|
|
812
|
-
(oe(!0), Ke(ce, null,
|
|
812
|
+
(oe(!0), Ke(ce, null, Wt(L(t), (r, s) => (oe(), pe(mt, {
|
|
813
813
|
key: s,
|
|
814
814
|
class: "my-0",
|
|
815
815
|
text: i(r, s),
|
|
@@ -825,14 +825,14 @@ const Xl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Yl = X({
|
|
|
825
825
|
_: 1
|
|
826
826
|
}));
|
|
827
827
|
}
|
|
828
|
-
},
|
|
828
|
+
}, ga = X({
|
|
829
829
|
text: String,
|
|
830
830
|
onClick: Le(),
|
|
831
831
|
...he(),
|
|
832
832
|
...He()
|
|
833
833
|
}, "VLabel"), Zl = ie()({
|
|
834
834
|
name: "VLabel",
|
|
835
|
-
props:
|
|
835
|
+
props: ga(),
|
|
836
836
|
setup(e, a) {
|
|
837
837
|
let {
|
|
838
838
|
slots: t
|
|
@@ -879,14 +879,14 @@ const Xl = /* @__PURE__ */ Symbol.for("vuetify:v-slide-group"), Yl = X({
|
|
|
879
879
|
...he(),
|
|
880
880
|
...ht(),
|
|
881
881
|
...He()
|
|
882
|
-
}, "SelectionControlGroup"),
|
|
882
|
+
}, "SelectionControlGroup"), ya = X({
|
|
883
883
|
...tn({
|
|
884
884
|
defaultsTarget: "VSelectionControl"
|
|
885
885
|
})
|
|
886
886
|
}, "VSelectionControlGroup");
|
|
887
887
|
ie()({
|
|
888
888
|
name: "VSelectionControlGroup",
|
|
889
|
-
props:
|
|
889
|
+
props: ya(),
|
|
890
890
|
emits: {
|
|
891
891
|
"update:modelValue": (e) => !0
|
|
892
892
|
},
|
|
@@ -905,7 +905,7 @@ ie()({
|
|
|
905
905
|
o.delete(u);
|
|
906
906
|
});
|
|
907
907
|
}
|
|
908
|
-
}),
|
|
908
|
+
}), Jt({
|
|
909
909
|
[e.defaultsTarget]: {
|
|
910
910
|
color: R(() => e.color),
|
|
911
911
|
disabled: R(() => e.disabled),
|
|
@@ -940,10 +940,10 @@ const ln = X({
|
|
|
940
940
|
...he(),
|
|
941
941
|
...tn()
|
|
942
942
|
}, "VSelectionControl");
|
|
943
|
-
function
|
|
943
|
+
function ha(e) {
|
|
944
944
|
const a = _e(en, void 0), {
|
|
945
945
|
densityClasses: t
|
|
946
|
-
} =
|
|
946
|
+
} = Dt(e), n = Ve(e, "modelValue"), l = I(() => e.trueValue !== void 0 ? e.trueValue : e.value !== void 0 ? e.value : !0), i = I(() => e.falseValue !== void 0 ? e.falseValue : !1), c = I(() => !!e.multiple || e.multiple == null && Array.isArray(n.value)), o = I({
|
|
947
947
|
get() {
|
|
948
948
|
const v = a ? a.modelValue.value : n.value;
|
|
949
949
|
return c.value ? Te(v).some((h) => e.valueComparator(h, l.value)) : e.valueComparator(v, l.value);
|
|
@@ -963,7 +963,7 @@ function ya(e) {
|
|
|
963
963
|
}), {
|
|
964
964
|
backgroundColorClasses: r,
|
|
965
965
|
backgroundColorStyles: s
|
|
966
|
-
} =
|
|
966
|
+
} = Tt(() => o.value && !e.error && !e.disabled ? e.color : e.baseColor), m = I(() => o.value ? e.trueIcon : e.falseIcon);
|
|
967
967
|
return {
|
|
968
968
|
group: a,
|
|
969
969
|
densityClasses: t,
|
|
@@ -977,7 +977,7 @@ function ya(e) {
|
|
|
977
977
|
icon: m
|
|
978
978
|
};
|
|
979
979
|
}
|
|
980
|
-
const
|
|
980
|
+
const yl = ie()({
|
|
981
981
|
name: "VSelectionControl",
|
|
982
982
|
directives: {
|
|
983
983
|
vRipple: lt
|
|
@@ -1002,7 +1002,7 @@ const gl = ie()({
|
|
|
1002
1002
|
backgroundColorClasses: r,
|
|
1003
1003
|
backgroundColorStyles: s,
|
|
1004
1004
|
trueValue: m
|
|
1005
|
-
} =
|
|
1005
|
+
} = ha(e), v = Xe(), h = ee(!1), y = ee(!1), V = K(), P = R(() => e.id || `input-${v}`), _ = R(() => !e.disabled && !e.readonly);
|
|
1006
1006
|
l?.onForceUpdate(() => {
|
|
1007
1007
|
V.value && (V.value.checked = o.value);
|
|
1008
1008
|
});
|
|
@@ -1015,12 +1015,12 @@ const gl = ie()({
|
|
|
1015
1015
|
function E(w) {
|
|
1016
1016
|
w.stopPropagation();
|
|
1017
1017
|
}
|
|
1018
|
-
function
|
|
1018
|
+
function U(w) {
|
|
1019
1019
|
if (!_.value) {
|
|
1020
1020
|
V.value && (V.value.checked = o.value);
|
|
1021
1021
|
return;
|
|
1022
1022
|
}
|
|
1023
|
-
e.readonly && l &&
|
|
1023
|
+
e.readonly && l && ke(() => l.forceUpdate()), o.value = w.target.checked;
|
|
1024
1024
|
}
|
|
1025
1025
|
return de(() => {
|
|
1026
1026
|
const w = n.label ? n.label({
|
|
@@ -1035,7 +1035,7 @@ const gl = ie()({
|
|
|
1035
1035
|
id: P.value,
|
|
1036
1036
|
onBlur: F,
|
|
1037
1037
|
onFocus: S,
|
|
1038
|
-
onInput:
|
|
1038
|
+
onInput: U,
|
|
1039
1039
|
"aria-disabled": !!e.disabled,
|
|
1040
1040
|
"aria-label": e.label,
|
|
1041
1041
|
type: e.type,
|
|
@@ -1075,7 +1075,7 @@ const gl = ie()({
|
|
|
1075
1075
|
onBlur: F,
|
|
1076
1076
|
id: P.value
|
|
1077
1077
|
}
|
|
1078
|
-
}) ?? b(ce, null, [c.value && g(
|
|
1078
|
+
}) ?? b(ce, null, [c.value && g(Se, {
|
|
1079
1079
|
key: "icon",
|
|
1080
1080
|
icon: c.value
|
|
1081
1081
|
}, null), D])]), [[lt, !e.disabled && !e.readonly && e.ripple, null, {
|
|
@@ -1092,7 +1092,7 @@ const gl = ie()({
|
|
|
1092
1092
|
input: V
|
|
1093
1093
|
};
|
|
1094
1094
|
}
|
|
1095
|
-
}),
|
|
1095
|
+
}), ba = X({
|
|
1096
1096
|
indeterminate: Boolean,
|
|
1097
1097
|
indeterminateIcon: {
|
|
1098
1098
|
type: ye,
|
|
@@ -1104,7 +1104,7 @@ const gl = ie()({
|
|
|
1104
1104
|
})
|
|
1105
1105
|
}, "VCheckboxBtn"), nn = ie()({
|
|
1106
1106
|
name: "VCheckboxBtn",
|
|
1107
|
-
props:
|
|
1107
|
+
props: ba(),
|
|
1108
1108
|
emits: {
|
|
1109
1109
|
"update:modelValue": (e) => !0,
|
|
1110
1110
|
"update:indeterminate": (e) => !0
|
|
@@ -1119,8 +1119,8 @@ const gl = ie()({
|
|
|
1119
1119
|
}
|
|
1120
1120
|
const c = R(() => n.value ? e.indeterminateIcon : e.falseIcon), o = R(() => n.value ? e.indeterminateIcon : e.trueIcon);
|
|
1121
1121
|
return de(() => {
|
|
1122
|
-
const u = Ye(
|
|
1123
|
-
return g(
|
|
1122
|
+
const u = Ye(yl.filterProps(e), ["modelValue"]);
|
|
1123
|
+
return g(yl, N(u, {
|
|
1124
1124
|
modelValue: l.value,
|
|
1125
1125
|
"onUpdate:modelValue": [(d) => l.value = d, i],
|
|
1126
1126
|
class: ["v-checkbox-btn", e.class],
|
|
@@ -1133,7 +1133,7 @@ const gl = ie()({
|
|
|
1133
1133
|
}), {};
|
|
1134
1134
|
}
|
|
1135
1135
|
});
|
|
1136
|
-
function
|
|
1136
|
+
function Ot(e) {
|
|
1137
1137
|
const {
|
|
1138
1138
|
t: a
|
|
1139
1139
|
} = it();
|
|
@@ -1154,7 +1154,7 @@ function Et(e) {
|
|
|
1154
1154
|
s.key !== "Enter" && s.key !== " " || (s.preventDefault(), s.stopPropagation(), El(u, new PointerEvent("click", s)));
|
|
1155
1155
|
}
|
|
1156
1156
|
const r = u && o ? a(`$vuetify.input.${o}`, e.label ?? "") : void 0;
|
|
1157
|
-
return g(
|
|
1157
|
+
return g(Se, N({
|
|
1158
1158
|
icon: e[`${l}Icon`],
|
|
1159
1159
|
"aria-label": r,
|
|
1160
1160
|
onClick: u,
|
|
@@ -1166,7 +1166,7 @@ function Et(e) {
|
|
|
1166
1166
|
InputIcon: t
|
|
1167
1167
|
};
|
|
1168
1168
|
}
|
|
1169
|
-
const
|
|
1169
|
+
const pa = X({
|
|
1170
1170
|
active: Boolean,
|
|
1171
1171
|
color: String,
|
|
1172
1172
|
messages: {
|
|
@@ -1174,16 +1174,16 @@ const ba = X({
|
|
|
1174
1174
|
default: () => []
|
|
1175
1175
|
},
|
|
1176
1176
|
...he(),
|
|
1177
|
-
...
|
|
1177
|
+
...Bt({
|
|
1178
1178
|
transition: {
|
|
1179
1179
|
component: Ol,
|
|
1180
1180
|
leaveAbsolute: !0,
|
|
1181
1181
|
group: !0
|
|
1182
1182
|
}
|
|
1183
1183
|
})
|
|
1184
|
-
}, "VMessages"),
|
|
1184
|
+
}, "VMessages"), ka = ie()({
|
|
1185
1185
|
name: "VMessages",
|
|
1186
|
-
props:
|
|
1186
|
+
props: pa(),
|
|
1187
1187
|
setup(e, a) {
|
|
1188
1188
|
let {
|
|
1189
1189
|
slots: t
|
|
@@ -1192,7 +1192,7 @@ const ba = X({
|
|
|
1192
1192
|
textColorClasses: l,
|
|
1193
1193
|
textColorStyles: i
|
|
1194
1194
|
} = kt(() => e.color);
|
|
1195
|
-
return de(() => g(
|
|
1195
|
+
return de(() => g(nl, {
|
|
1196
1196
|
transition: e.transition,
|
|
1197
1197
|
tag: "div",
|
|
1198
1198
|
class: re(["v-messages", l.value, e.class]),
|
|
@@ -1228,18 +1228,18 @@ function on(e) {
|
|
|
1228
1228
|
blur: i
|
|
1229
1229
|
};
|
|
1230
1230
|
}
|
|
1231
|
-
const
|
|
1232
|
-
function
|
|
1233
|
-
const a = _e(
|
|
1231
|
+
const Sa = /* @__PURE__ */ Symbol.for("vuetify:form");
|
|
1232
|
+
function $t(e) {
|
|
1233
|
+
const a = _e(Sa, null);
|
|
1234
1234
|
return {
|
|
1235
1235
|
...a,
|
|
1236
1236
|
isReadonly: I(() => !!(e?.readonly ?? a?.isReadonly.value)),
|
|
1237
1237
|
isDisabled: I(() => !!(e?.disabled ?? a?.isDisabled.value))
|
|
1238
1238
|
};
|
|
1239
1239
|
}
|
|
1240
|
-
const
|
|
1241
|
-
function
|
|
1242
|
-
const a = _e(
|
|
1240
|
+
const Ca = /* @__PURE__ */ Symbol.for("vuetify:rules");
|
|
1241
|
+
function Va(e) {
|
|
1242
|
+
const a = _e(Ca, null);
|
|
1243
1243
|
if (!e) {
|
|
1244
1244
|
if (!a)
|
|
1245
1245
|
throw new Error("Could not find Vuetify rules injection");
|
|
@@ -1247,7 +1247,7 @@ function Ca(e) {
|
|
|
1247
1247
|
}
|
|
1248
1248
|
return a?.resolve(e) ?? R(e);
|
|
1249
1249
|
}
|
|
1250
|
-
const
|
|
1250
|
+
const xa = X({
|
|
1251
1251
|
disabled: {
|
|
1252
1252
|
type: Boolean,
|
|
1253
1253
|
default: null
|
|
@@ -1276,9 +1276,9 @@ const Va = X({
|
|
|
1276
1276
|
validationValue: null,
|
|
1277
1277
|
...an()
|
|
1278
1278
|
}, "validation");
|
|
1279
|
-
function
|
|
1279
|
+
function Ia(e) {
|
|
1280
1280
|
let a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : $l(), t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : Xe();
|
|
1281
|
-
const n = Ve(e, "modelValue"), l = I(() => e.validationValue === void 0 ? n.value : e.validationValue), i =
|
|
1281
|
+
const n = Ve(e, "modelValue"), l = I(() => e.validationValue === void 0 ? n.value : e.validationValue), i = $t(e), c = Va(() => e.rules), o = K([]), u = ee(!0), d = I(() => !!(Te(n.value === "" ? null : n.value).length || Te(l.value === "" ? null : l.value).length)), r = I(() => e.errorMessages?.length ? Te(e.errorMessages).concat(o.value).slice(0, Math.max(0, Number(e.maxErrors))) : o.value), s = I(() => {
|
|
1282
1282
|
let F = (e.validateOn ?? i.validateOn?.value) || "input";
|
|
1283
1283
|
F === "lazy" && (F = "input lazy"), F === "eager" && (F = "input eager");
|
|
1284
1284
|
const E = new Set(F?.split(" ") ?? []);
|
|
@@ -1307,7 +1307,7 @@ function xa(e) {
|
|
|
1307
1307
|
i.unregister?.(V.value);
|
|
1308
1308
|
}), at(async () => {
|
|
1309
1309
|
s.value.lazy || await S(!s.value.eager), i.update?.(V.value, m.value, r.value);
|
|
1310
|
-
}),
|
|
1310
|
+
}), jt(() => s.value.input || s.value.invalidInput && m.value === !1, () => {
|
|
1311
1311
|
se(l, () => {
|
|
1312
1312
|
if (l.value != null)
|
|
1313
1313
|
S();
|
|
@@ -1317,7 +1317,7 @@ function xa(e) {
|
|
|
1317
1317
|
});
|
|
1318
1318
|
}
|
|
1319
1319
|
});
|
|
1320
|
-
}),
|
|
1320
|
+
}), jt(() => s.value.blur, () => {
|
|
1321
1321
|
se(() => e.focused, (F) => {
|
|
1322
1322
|
F || S();
|
|
1323
1323
|
});
|
|
@@ -1325,7 +1325,7 @@ function xa(e) {
|
|
|
1325
1325
|
i.update?.(V.value, m.value, r.value);
|
|
1326
1326
|
});
|
|
1327
1327
|
async function P() {
|
|
1328
|
-
n.value = null, await
|
|
1328
|
+
n.value = null, await ke(), await _();
|
|
1329
1329
|
}
|
|
1330
1330
|
async function _() {
|
|
1331
1331
|
u.value = !0, s.value.lazy ? o.value = [] : await S(!s.value.eager);
|
|
@@ -1334,10 +1334,10 @@ function xa(e) {
|
|
|
1334
1334
|
let F = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1;
|
|
1335
1335
|
const E = [];
|
|
1336
1336
|
v.value = !0;
|
|
1337
|
-
for (const
|
|
1337
|
+
for (const U of c.value) {
|
|
1338
1338
|
if (E.length >= Number(e.maxErrors ?? 1))
|
|
1339
1339
|
break;
|
|
1340
|
-
const C = await (typeof
|
|
1340
|
+
const C = await (typeof U == "function" ? U : () => U)(l.value);
|
|
1341
1341
|
if (C !== !0) {
|
|
1342
1342
|
if (C !== !1 && typeof C != "string") {
|
|
1343
1343
|
console.warn(`${C} is not a valid value. Rule functions must return boolean true or a string.`);
|
|
@@ -1391,10 +1391,10 @@ const un = X({
|
|
|
1391
1391
|
"onClick:append": Le(),
|
|
1392
1392
|
...he(),
|
|
1393
1393
|
...ht(),
|
|
1394
|
-
...
|
|
1394
|
+
...Rn(pt(), ["maxWidth", "minWidth", "width"]),
|
|
1395
1395
|
...He(),
|
|
1396
|
-
...
|
|
1397
|
-
}, "VInput"),
|
|
1396
|
+
...xa()
|
|
1397
|
+
}, "VInput"), hl = ie()({
|
|
1398
1398
|
name: "VInput",
|
|
1399
1399
|
props: {
|
|
1400
1400
|
...un()
|
|
@@ -1410,15 +1410,15 @@ const un = X({
|
|
|
1410
1410
|
} = a;
|
|
1411
1411
|
const {
|
|
1412
1412
|
densityClasses: i
|
|
1413
|
-
} =
|
|
1413
|
+
} = Dt(e), {
|
|
1414
1414
|
dimensionStyles: c
|
|
1415
1415
|
} = bt(e), {
|
|
1416
1416
|
themeClasses: o
|
|
1417
1417
|
} = ot(e), {
|
|
1418
1418
|
rtlClasses: u
|
|
1419
|
-
} =
|
|
1419
|
+
} = Ft(), {
|
|
1420
1420
|
InputIcon: d
|
|
1421
|
-
} =
|
|
1421
|
+
} = Ot(e), r = Xe(), s = I(() => e.id || `input-${r}`), {
|
|
1422
1422
|
errorMessages: m,
|
|
1423
1423
|
isDirty: v,
|
|
1424
1424
|
isDisabled: h,
|
|
@@ -1429,8 +1429,8 @@ const un = X({
|
|
|
1429
1429
|
reset: S,
|
|
1430
1430
|
resetValidation: F,
|
|
1431
1431
|
validate: E,
|
|
1432
|
-
validationClasses:
|
|
1433
|
-
} =
|
|
1432
|
+
validationClasses: U
|
|
1433
|
+
} = Ia(e, "v-input", s), w = I(() => e.errorMessages?.length || !V.value && m.value.length ? m.value : e.hint && (e.persistentHint || e.focused) ? e.hint : e.messages), C = R(() => w.value.length > 0), $ = R(() => !e.hideDetails || e.hideDetails === "auto" && (C.value || !!n.details)), D = I(() => $.value ? `${s.value}-messages` : void 0), G = I(() => ({
|
|
1434
1434
|
id: s,
|
|
1435
1435
|
messagesId: D,
|
|
1436
1436
|
isDirty: v,
|
|
@@ -1455,7 +1455,7 @@ const un = X({
|
|
|
1455
1455
|
"v-input--focused": e.focused,
|
|
1456
1456
|
"v-input--glow": e.glow,
|
|
1457
1457
|
"v-input--hide-spin-buttons": e.hideSpinButtons
|
|
1458
|
-
}, i.value, o.value, u.value,
|
|
1458
|
+
}, i.value, o.value, u.value, U.value, e.class]),
|
|
1459
1459
|
style: xe([c.value, e.style])
|
|
1460
1460
|
}, [W && b("div", {
|
|
1461
1461
|
key: "prepend",
|
|
@@ -1478,7 +1478,7 @@ const un = X({
|
|
|
1478
1478
|
class: "v-input__details",
|
|
1479
1479
|
role: "alert",
|
|
1480
1480
|
"aria-live": "polite"
|
|
1481
|
-
}, [g(
|
|
1481
|
+
}, [g(ka, {
|
|
1482
1482
|
active: C.value,
|
|
1483
1483
|
messages: w.value
|
|
1484
1484
|
}, {
|
|
@@ -1492,7 +1492,7 @@ const un = X({
|
|
|
1492
1492
|
errorMessages: m
|
|
1493
1493
|
};
|
|
1494
1494
|
}
|
|
1495
|
-
}),
|
|
1495
|
+
}), wa = X({
|
|
1496
1496
|
active: Boolean,
|
|
1497
1497
|
disabled: Boolean,
|
|
1498
1498
|
max: [Number, String],
|
|
@@ -1501,21 +1501,21 @@ const un = X({
|
|
|
1501
1501
|
default: 0
|
|
1502
1502
|
},
|
|
1503
1503
|
...he(),
|
|
1504
|
-
...
|
|
1504
|
+
...Bt({
|
|
1505
1505
|
transition: {
|
|
1506
1506
|
component: Ol
|
|
1507
1507
|
}
|
|
1508
1508
|
})
|
|
1509
|
-
}, "VCounter"),
|
|
1509
|
+
}, "VCounter"), Pa = ie()({
|
|
1510
1510
|
name: "VCounter",
|
|
1511
1511
|
functional: !0,
|
|
1512
|
-
props:
|
|
1512
|
+
props: wa(),
|
|
1513
1513
|
setup(e, a) {
|
|
1514
1514
|
let {
|
|
1515
1515
|
slots: t
|
|
1516
1516
|
} = a;
|
|
1517
1517
|
const n = R(() => e.max ? `${e.value} / ${e.max}` : String(e.value));
|
|
1518
|
-
return de(() => g(
|
|
1518
|
+
return de(() => g(nl, {
|
|
1519
1519
|
transition: e.transition
|
|
1520
1520
|
}, {
|
|
1521
1521
|
default: () => [Ue(b("div", {
|
|
@@ -1530,12 +1530,12 @@ const un = X({
|
|
|
1530
1530
|
}) : n.value]), [[Pt, e.active]])]
|
|
1531
1531
|
})), {};
|
|
1532
1532
|
}
|
|
1533
|
-
}),
|
|
1533
|
+
}), _a = X({
|
|
1534
1534
|
floating: Boolean,
|
|
1535
1535
|
...he()
|
|
1536
1536
|
}, "VFieldLabel"), Ct = ie()({
|
|
1537
1537
|
name: "VFieldLabel",
|
|
1538
|
-
props:
|
|
1538
|
+
props: _a(),
|
|
1539
1539
|
setup(e, a) {
|
|
1540
1540
|
let {
|
|
1541
1541
|
slots: t
|
|
@@ -1547,7 +1547,7 @@ const un = X({
|
|
|
1547
1547
|
style: xe(e.style)
|
|
1548
1548
|
}, t)), {};
|
|
1549
1549
|
}
|
|
1550
|
-
}),
|
|
1550
|
+
}), Aa = ["underlined", "outlined", "filled", "solo", "solo-inverted", "solo-filled", "plain"], sn = X({
|
|
1551
1551
|
appendInnerIcon: ye,
|
|
1552
1552
|
bgColor: String,
|
|
1553
1553
|
clearable: Boolean,
|
|
@@ -1579,7 +1579,7 @@ const un = X({
|
|
|
1579
1579
|
variant: {
|
|
1580
1580
|
type: String,
|
|
1581
1581
|
default: "filled",
|
|
1582
|
-
validator: (e) =>
|
|
1582
|
+
validator: (e) => Aa.includes(e)
|
|
1583
1583
|
},
|
|
1584
1584
|
"onClick:clear": Le(),
|
|
1585
1585
|
"onClick:appendInner": Le(),
|
|
@@ -1588,7 +1588,7 @@ const un = X({
|
|
|
1588
1588
|
...Hl(),
|
|
1589
1589
|
...yt(),
|
|
1590
1590
|
...He()
|
|
1591
|
-
}, "VField"),
|
|
1591
|
+
}, "VField"), bl = ie()({
|
|
1592
1592
|
name: "VField",
|
|
1593
1593
|
inheritAttrs: !1,
|
|
1594
1594
|
props: {
|
|
@@ -1619,17 +1619,17 @@ const un = X({
|
|
|
1619
1619
|
blur: r
|
|
1620
1620
|
} = on(e), {
|
|
1621
1621
|
InputIcon: s
|
|
1622
|
-
} =
|
|
1622
|
+
} = Ot(e), {
|
|
1623
1623
|
roundedClasses: m
|
|
1624
1624
|
} = gt(e), {
|
|
1625
1625
|
rtlClasses: v
|
|
1626
|
-
} =
|
|
1626
|
+
} = Ft(), h = R(() => e.dirty || e.active), y = R(() => !!(e.label || l.label)), V = R(() => !e.singleLine && y.value), P = Xe(), _ = I(() => e.id || `input-${P}`), S = R(() => e.details ? `${_.value}-messages` : void 0), F = K(), E = K(), U = K(), w = I(() => ["plain", "underlined"].includes(e.variant)), C = I(() => e.error || e.disabled ? void 0 : h.value && u.value ? e.color : e.baseColor), $ = I(() => {
|
|
1627
1627
|
if (!(!e.iconColor || e.glow && !u.value))
|
|
1628
1628
|
return e.iconColor === !0 ? C.value : e.iconColor;
|
|
1629
1629
|
}), {
|
|
1630
1630
|
backgroundColorClasses: D,
|
|
1631
1631
|
backgroundColorStyles: G
|
|
1632
|
-
} =
|
|
1632
|
+
} = Tt(() => e.bgColor), {
|
|
1633
1633
|
textColorClasses: ne,
|
|
1634
1634
|
textColorStyles: H
|
|
1635
1635
|
} = kt(C);
|
|
@@ -1637,16 +1637,16 @@ const un = X({
|
|
|
1637
1637
|
if (V.value && !Cl()) {
|
|
1638
1638
|
const fe = F.value.$el, B = E.value.$el;
|
|
1639
1639
|
requestAnimationFrame(() => {
|
|
1640
|
-
const O =
|
|
1640
|
+
const O = En(fe), p = B.getBoundingClientRect(), f = p.x - O.x, A = p.y - O.y - (O.height / 2 - p.height / 2), J = p.width / 0.75, ve = Math.abs(J - O.width) > 1 ? {
|
|
1641
1641
|
maxWidth: et(J)
|
|
1642
1642
|
} : void 0, ge = getComputedStyle(fe), be = getComputedStyle(B), Ie = parseFloat(ge.transitionDuration) * 1e3 || 150, De = parseFloat(be.getPropertyValue("--v-field-label-scale")), je = be.getPropertyValue("color");
|
|
1643
|
-
fe.style.visibility = "visible", B.style.visibility = "hidden",
|
|
1643
|
+
fe.style.visibility = "visible", B.style.visibility = "hidden", On(fe, {
|
|
1644
1644
|
transform: `translate(${f}px, ${A}px) scale(${De})`,
|
|
1645
1645
|
color: je,
|
|
1646
1646
|
...ve
|
|
1647
1647
|
}, {
|
|
1648
1648
|
duration: Ie,
|
|
1649
|
-
easing:
|
|
1649
|
+
easing: $n,
|
|
1650
1650
|
direction: z ? "normal" : "reverse"
|
|
1651
1651
|
}).finished.then(() => {
|
|
1652
1652
|
fe.style.removeProperty("visibility"), B.style.removeProperty("visibility");
|
|
@@ -1659,7 +1659,7 @@ const un = X({
|
|
|
1659
1659
|
const W = I(() => ({
|
|
1660
1660
|
isActive: h,
|
|
1661
1661
|
isFocused: u,
|
|
1662
|
-
controlRef:
|
|
1662
|
+
controlRef: U,
|
|
1663
1663
|
iconColor: $,
|
|
1664
1664
|
blur: r,
|
|
1665
1665
|
focus: d
|
|
@@ -1811,11 +1811,11 @@ const un = X({
|
|
|
1811
1811
|
default: () => [p()]
|
|
1812
1812
|
})])]);
|
|
1813
1813
|
}), {
|
|
1814
|
-
controlRef:
|
|
1814
|
+
controlRef: U,
|
|
1815
1815
|
fieldIconColor: $
|
|
1816
1816
|
};
|
|
1817
1817
|
}
|
|
1818
|
-
}),
|
|
1818
|
+
}), Fa = X({
|
|
1819
1819
|
autocomplete: String
|
|
1820
1820
|
}, "autocomplete");
|
|
1821
1821
|
function rn(e) {
|
|
@@ -1830,7 +1830,7 @@ function rn(e) {
|
|
|
1830
1830
|
update: () => t.value = (/* @__PURE__ */ new Date()).getTime()
|
|
1831
1831
|
};
|
|
1832
1832
|
}
|
|
1833
|
-
function
|
|
1833
|
+
function Da(e) {
|
|
1834
1834
|
function a(t, n) {
|
|
1835
1835
|
if (!e.autofocus || !t) return;
|
|
1836
1836
|
const l = n[0].target;
|
|
@@ -1840,7 +1840,7 @@ function Fa(e) {
|
|
|
1840
1840
|
onIntersect: a
|
|
1841
1841
|
};
|
|
1842
1842
|
}
|
|
1843
|
-
const
|
|
1843
|
+
const Ta = ["color", "file", "time", "date", "datetime-local", "week", "month"], Mt = X({
|
|
1844
1844
|
autofocus: Boolean,
|
|
1845
1845
|
counter: [Boolean, Number, String],
|
|
1846
1846
|
counterValue: [Number, Function],
|
|
@@ -1855,16 +1855,16 @@ const Da = ["color", "file", "time", "date", "datetime-local", "week", "month"],
|
|
|
1855
1855
|
default: "text"
|
|
1856
1856
|
},
|
|
1857
1857
|
modelModifiers: Object,
|
|
1858
|
-
...
|
|
1858
|
+
...Fa(),
|
|
1859
1859
|
...Ye(un(), ["direction"]),
|
|
1860
1860
|
...sn()
|
|
1861
1861
|
}, "VTextField"), Je = ie()({
|
|
1862
1862
|
name: "VTextField",
|
|
1863
1863
|
directives: {
|
|
1864
|
-
vIntersect:
|
|
1864
|
+
vIntersect: dl
|
|
1865
1865
|
},
|
|
1866
1866
|
inheritAttrs: !1,
|
|
1867
|
-
props:
|
|
1867
|
+
props: Mt(),
|
|
1868
1868
|
emits: {
|
|
1869
1869
|
"click:control": (e) => !0,
|
|
1870
1870
|
"mousedown:control": (e) => !0,
|
|
@@ -1883,13 +1883,13 @@ const Da = ["color", "file", "time", "date", "datetime-local", "week", "month"],
|
|
|
1883
1883
|
blur: u
|
|
1884
1884
|
} = on(e), {
|
|
1885
1885
|
onIntersect: d
|
|
1886
|
-
} =
|
|
1886
|
+
} = Da(e), r = I(() => typeof e.counterValue == "function" ? e.counterValue(i.value) : typeof e.counterValue == "number" ? e.counterValue : (i.value ?? "").toString().length), s = I(() => {
|
|
1887
1887
|
if (t.maxlength) return t.maxlength;
|
|
1888
1888
|
if (!(!e.counter || typeof e.counter != "number" && typeof e.counter != "string"))
|
|
1889
1889
|
return e.counter;
|
|
1890
|
-
}), m = I(() => ["plain", "underlined"].includes(e.variant)), v =
|
|
1890
|
+
}), m = I(() => ["plain", "underlined"].includes(e.variant)), v = K(), h = K(), y = K(), V = rn(e), P = I(() => Ta.includes(e.type) || e.persistentPlaceholder || c.value || e.active);
|
|
1891
1891
|
function _() {
|
|
1892
|
-
V.isSuppressing.value && V.update(), c.value || o(),
|
|
1892
|
+
V.isSuppressing.value && V.update(), c.value || o(), ke(() => {
|
|
1893
1893
|
y.value !== document.activeElement && y.value?.focus();
|
|
1894
1894
|
});
|
|
1895
1895
|
}
|
|
@@ -1900,18 +1900,18 @@ const Da = ["color", "file", "time", "date", "datetime-local", "week", "month"],
|
|
|
1900
1900
|
n("click:control", w);
|
|
1901
1901
|
}
|
|
1902
1902
|
function E(w, C) {
|
|
1903
|
-
w.stopPropagation(), _(),
|
|
1903
|
+
w.stopPropagation(), _(), ke(() => {
|
|
1904
1904
|
C(), El(e["onClick:clear"], w);
|
|
1905
1905
|
});
|
|
1906
1906
|
}
|
|
1907
|
-
function
|
|
1907
|
+
function U(w) {
|
|
1908
1908
|
const C = w.target;
|
|
1909
1909
|
if (!(e.modelModifiers?.trim && ["text", "search", "password", "tel", "url"].includes(e.type))) {
|
|
1910
1910
|
i.value = C.value;
|
|
1911
1911
|
return;
|
|
1912
1912
|
}
|
|
1913
1913
|
const $ = C.value, D = C.selectionStart, G = C.selectionEnd;
|
|
1914
|
-
i.value = $,
|
|
1914
|
+
i.value = $, ke(() => {
|
|
1915
1915
|
let ne = 0;
|
|
1916
1916
|
$.trimStart().length === C.value.length && (ne = $.length - C.value.length), D != null && (C.selectionStart = D - ne), G != null && (C.selectionEnd = G - ne);
|
|
1917
1917
|
});
|
|
@@ -1920,8 +1920,8 @@ const Da = ["color", "file", "time", "date", "datetime-local", "week", "month"],
|
|
|
1920
1920
|
const w = !!(l.counter || e.counter !== !1 && e.counter != null), C = !!(w || l.details), [$, D] = Rl(t), {
|
|
1921
1921
|
modelValue: G,
|
|
1922
1922
|
...ne
|
|
1923
|
-
} =
|
|
1924
|
-
return g(
|
|
1923
|
+
} = hl.filterProps(e), H = bl.filterProps(e);
|
|
1924
|
+
return g(hl, N({
|
|
1925
1925
|
ref: v,
|
|
1926
1926
|
modelValue: i.value,
|
|
1927
1927
|
"onUpdate:modelValue": (W) => i.value = W,
|
|
@@ -1946,7 +1946,7 @@ const Da = ["color", "file", "time", "date", "datetime-local", "week", "month"],
|
|
|
1946
1946
|
hasDetails: B,
|
|
1947
1947
|
reset: O
|
|
1948
1948
|
} = W;
|
|
1949
|
-
return g(
|
|
1949
|
+
return g(bl, N({
|
|
1950
1950
|
ref: h,
|
|
1951
1951
|
onMousedown: S,
|
|
1952
1952
|
onClick: F,
|
|
@@ -1974,7 +1974,7 @@ const Da = ["color", "file", "time", "date", "datetime-local", "week", "month"],
|
|
|
1974
1974
|
const ve = b("input", N({
|
|
1975
1975
|
ref: (ge) => y.value = J.value = ge,
|
|
1976
1976
|
value: i.value,
|
|
1977
|
-
onInput:
|
|
1977
|
+
onInput: U,
|
|
1978
1978
|
autofocus: e.autofocus,
|
|
1979
1979
|
readonly: z.value,
|
|
1980
1980
|
disabled: ue.value,
|
|
@@ -1999,7 +1999,7 @@ const Da = ["color", "file", "time", "date", "datetime-local", "week", "month"],
|
|
|
1999
1999
|
id: j
|
|
2000
2000
|
}), ve]) : In(ve, {
|
|
2001
2001
|
class: f
|
|
2002
|
-
}), [[
|
|
2002
|
+
}), [[dl, d, null, {
|
|
2003
2003
|
once: !0
|
|
2004
2004
|
}]]), e.suffix && b("span", {
|
|
2005
2005
|
class: "v-text-field__suffix"
|
|
@@ -2009,7 +2009,7 @@ const Da = ["color", "file", "time", "date", "datetime-local", "week", "month"],
|
|
|
2009
2009
|
}
|
|
2010
2010
|
});
|
|
2011
2011
|
},
|
|
2012
|
-
details: C ? (W) => b(ce, null, [l.details?.(W), w && b(ce, null, [b("span", null, null), g(
|
|
2012
|
+
details: C ? (W) => b(ce, null, [l.details?.(W), w && b(ce, null, [b("span", null, null), g(Pa, {
|
|
2013
2013
|
active: e.persistentCounter || c.value,
|
|
2014
2014
|
value: r.value,
|
|
2015
2015
|
max: s.value,
|
|
@@ -2018,13 +2018,13 @@ const Da = ["color", "file", "time", "date", "datetime-local", "week", "month"],
|
|
|
2018
2018
|
});
|
|
2019
2019
|
}), St({}, v, h, y);
|
|
2020
2020
|
}
|
|
2021
|
-
}),
|
|
2021
|
+
}), Ba = X({
|
|
2022
2022
|
renderless: Boolean,
|
|
2023
2023
|
...he()
|
|
2024
|
-
}, "VVirtualScrollItem"),
|
|
2024
|
+
}, "VVirtualScrollItem"), Ra = ie()({
|
|
2025
2025
|
name: "VVirtualScrollItem",
|
|
2026
2026
|
inheritAttrs: !1,
|
|
2027
|
-
props:
|
|
2027
|
+
props: Ba(),
|
|
2028
2028
|
emits: {
|
|
2029
2029
|
"update:height": (e) => !0
|
|
2030
2030
|
},
|
|
@@ -2048,7 +2048,7 @@ const Da = ["color", "file", "time", "date", "datetime-local", "week", "month"],
|
|
|
2048
2048
|
style: e.style
|
|
2049
2049
|
}, t), [l.default?.()]));
|
|
2050
2050
|
}
|
|
2051
|
-
}),
|
|
2051
|
+
}), Ea = -1, Oa = 1, Lt = 100, $a = X({
|
|
2052
2052
|
itemHeight: {
|
|
2053
2053
|
type: [Number, String],
|
|
2054
2054
|
default: null
|
|
@@ -2059,9 +2059,9 @@ const Da = ["color", "file", "time", "date", "datetime-local", "week", "month"],
|
|
|
2059
2059
|
},
|
|
2060
2060
|
height: [Number, String]
|
|
2061
2061
|
}, "virtual");
|
|
2062
|
-
function
|
|
2062
|
+
function Ma(e, a) {
|
|
2063
2063
|
const t = Vl(), n = ee(0);
|
|
2064
|
-
|
|
2064
|
+
zt(() => {
|
|
2065
2065
|
n.value = parseFloat(e.itemHeight || 0);
|
|
2066
2066
|
});
|
|
2067
2067
|
const l = ee(0), i = ee(Math.ceil(
|
|
@@ -2070,13 +2070,13 @@ function $a(e, a) {
|
|
|
2070
2070
|
// the chance of ending up with empty space at the bottom.
|
|
2071
2071
|
// The default value is set here to avoid poisoning getSize()
|
|
2072
2072
|
(parseInt(e.height) || t.height.value) / (n.value || 16)
|
|
2073
|
-
) || 1), c = ee(0), o = ee(0), u =
|
|
2073
|
+
) || 1), c = ee(0), o = ee(0), u = K(), d = K();
|
|
2074
2074
|
let r = 0;
|
|
2075
2075
|
const {
|
|
2076
2076
|
resizeRef: s,
|
|
2077
2077
|
contentRect: m
|
|
2078
2078
|
} = It();
|
|
2079
|
-
|
|
2079
|
+
zt(() => {
|
|
2080
2080
|
s.value = u.value;
|
|
2081
2081
|
});
|
|
2082
2082
|
const v = I(() => u.value === document.documentElement ? t.height.value : m.value?.height || parseInt(e.height) || 0), h = I(() => !!(u.value && d.value && v.value && n.value));
|
|
@@ -2090,7 +2090,7 @@ function $a(e, a) {
|
|
|
2090
2090
|
function S(B) {
|
|
2091
2091
|
return y[B] || n.value;
|
|
2092
2092
|
}
|
|
2093
|
-
const F =
|
|
2093
|
+
const F = Mn(() => {
|
|
2094
2094
|
const B = performance.now();
|
|
2095
2095
|
V[0] = 0;
|
|
2096
2096
|
const O = a.value.length;
|
|
@@ -2098,7 +2098,7 @@ function $a(e, a) {
|
|
|
2098
2098
|
V[p] = (V[p - 1] || 0) + S(p - 1);
|
|
2099
2099
|
P.value = Math.max(P.value, performance.now() - B);
|
|
2100
2100
|
}, P), E = se(h, (B) => {
|
|
2101
|
-
B && (E(), r = d.value.offsetTop, F.immediate(), ue(), ~_ &&
|
|
2101
|
+
B && (E(), r = d.value.offsetTop, F.immediate(), ue(), ~_ && ke(() => {
|
|
2102
2102
|
ct && window.requestAnimationFrame(() => {
|
|
2103
2103
|
z(_), _ = -1;
|
|
2104
2104
|
});
|
|
@@ -2107,7 +2107,7 @@ function $a(e, a) {
|
|
|
2107
2107
|
rt(() => {
|
|
2108
2108
|
F.clear();
|
|
2109
2109
|
});
|
|
2110
|
-
function
|
|
2110
|
+
function U(B, O) {
|
|
2111
2111
|
const p = y[B], f = n.value;
|
|
2112
2112
|
n.value = f ? Math.min(n.value, O) : O, (p !== O || f !== n.value) && (y[B] = O, F());
|
|
2113
2113
|
}
|
|
@@ -2117,7 +2117,7 @@ function $a(e, a) {
|
|
|
2117
2117
|
return A + (J - A) * p;
|
|
2118
2118
|
}
|
|
2119
2119
|
function C(B) {
|
|
2120
|
-
return
|
|
2120
|
+
return Na(V, B);
|
|
2121
2121
|
}
|
|
2122
2122
|
let $ = 0, D = 0, G = 0;
|
|
2123
2123
|
se(v, (B, O) => {
|
|
@@ -2140,14 +2140,14 @@ function $a(e, a) {
|
|
|
2140
2140
|
}
|
|
2141
2141
|
function q() {
|
|
2142
2142
|
if (!u.value || !v.value || !n.value) return;
|
|
2143
|
-
const B = $ - r, O = Math.sign(D), p = Math.max(0, B -
|
|
2143
|
+
const B = $ - r, O = Math.sign(D), p = Math.max(0, B - Lt), f = Ne(C(p), 0, a.value.length), A = B + v.value + Lt, J = Ne(C(A) + 1, f + 1, a.value.length);
|
|
2144
2144
|
if (
|
|
2145
2145
|
// Only update the side we're scrolling towards,
|
|
2146
2146
|
// the other side will be updated incidentally
|
|
2147
|
-
(O !==
|
|
2147
|
+
(O !== Ea || f < l.value) && (O !== Oa || J > i.value)
|
|
2148
2148
|
) {
|
|
2149
2149
|
const ve = w(l.value) - w(f), ge = w(J) - w(i.value);
|
|
2150
|
-
Math.max(ve, ge) >
|
|
2150
|
+
Math.max(ve, ge) > Lt ? (l.value = f, i.value = J) : (f <= 0 && (l.value = f), J >= a.value.length && (i.value = J));
|
|
2151
2151
|
}
|
|
2152
2152
|
c.value = w(l.value), o.value = w(a.value.length) - w(i.value);
|
|
2153
2153
|
}
|
|
@@ -2181,10 +2181,10 @@ function $a(e, a) {
|
|
|
2181
2181
|
scrollToIndex: z,
|
|
2182
2182
|
handleScroll: H,
|
|
2183
2183
|
handleScrollend: W,
|
|
2184
|
-
handleItemResize:
|
|
2184
|
+
handleItemResize: U
|
|
2185
2185
|
};
|
|
2186
2186
|
}
|
|
2187
|
-
function
|
|
2187
|
+
function Na(e, a) {
|
|
2188
2188
|
let t = e.length - 1, n = 0, l = 0, i = null, c = -1;
|
|
2189
2189
|
if (e[t] < a)
|
|
2190
2190
|
return t;
|
|
@@ -2196,18 +2196,18 @@ function Ma(e, a) {
|
|
|
2196
2196
|
else return i === a ? l : n;
|
|
2197
2197
|
return c;
|
|
2198
2198
|
}
|
|
2199
|
-
const
|
|
2199
|
+
const La = X({
|
|
2200
2200
|
items: {
|
|
2201
2201
|
type: Array,
|
|
2202
2202
|
default: () => []
|
|
2203
2203
|
},
|
|
2204
2204
|
renderless: Boolean,
|
|
2205
|
-
|
|
2205
|
+
...$a(),
|
|
2206
2206
|
...he(),
|
|
2207
2207
|
...pt()
|
|
2208
2208
|
}, "VVirtualScroll"), cn = ie()({
|
|
2209
2209
|
name: "VVirtualScroll",
|
|
2210
|
-
props:
|
|
2210
|
+
props: La(),
|
|
2211
2211
|
setup(e, a) {
|
|
2212
2212
|
let {
|
|
2213
2213
|
slots: t
|
|
@@ -2225,8 +2225,8 @@ const Na = X({
|
|
|
2225
2225
|
paddingTop: m,
|
|
2226
2226
|
paddingBottom: v,
|
|
2227
2227
|
computedItems: h
|
|
2228
|
-
} =
|
|
2229
|
-
return
|
|
2228
|
+
} = Ma(e, R(() => e.items));
|
|
2229
|
+
return jt(() => e.renderless, () => {
|
|
2230
2230
|
function y() {
|
|
2231
2231
|
const P = (arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1) ? "addEventListener" : "removeEventListener";
|
|
2232
2232
|
c.value === document.documentElement ? (document[P]("scroll", u, {
|
|
@@ -2236,10 +2236,10 @@ const Na = X({
|
|
|
2236
2236
|
}), c.value?.[P]("scrollend", d));
|
|
2237
2237
|
}
|
|
2238
2238
|
at(() => {
|
|
2239
|
-
c.value =
|
|
2239
|
+
c.value = Nn(n.vnode.el, !0), y(!0);
|
|
2240
2240
|
}), rt(y);
|
|
2241
2241
|
}), de(() => {
|
|
2242
|
-
const y = h.value.map((V) => g(
|
|
2242
|
+
const y = h.value.map((V) => g(Ra, {
|
|
2243
2243
|
key: V.key,
|
|
2244
2244
|
renderless: e.renderless,
|
|
2245
2245
|
"onUpdate:height": (P) => r(V.index, P)
|
|
@@ -2350,7 +2350,7 @@ function vn(e) {
|
|
|
2350
2350
|
} else {
|
|
2351
2351
|
o.preventDefault(), o.stopImmediatePropagation();
|
|
2352
2352
|
const v = a[m];
|
|
2353
|
-
if (v.type === "list" &&
|
|
2353
|
+
if (v.type === "list" && Ut(v.displayItemsCount) > 0)
|
|
2354
2354
|
v.contentRef.value?.focus(0);
|
|
2355
2355
|
else {
|
|
2356
2356
|
const h = d === "forward";
|
|
@@ -2365,7 +2365,7 @@ function vn(e) {
|
|
|
2365
2365
|
const v = d === "forward" ? 1 : -1;
|
|
2366
2366
|
for (let h = u + v; h >= 0 && h < a.length; h += v) {
|
|
2367
2367
|
const y = a[h];
|
|
2368
|
-
if (o[h].length > 0 || y.type === "list" &&
|
|
2368
|
+
if (o[h].length > 0 || y.type === "list" && Ut(y.displayItemsCount) > 0)
|
|
2369
2369
|
return h;
|
|
2370
2370
|
}
|
|
2371
2371
|
return null;
|
|
@@ -2374,7 +2374,7 @@ function vn(e) {
|
|
|
2374
2374
|
onTabKeydown: i
|
|
2375
2375
|
};
|
|
2376
2376
|
}
|
|
2377
|
-
const
|
|
2377
|
+
const Ha = (e, a, t) => {
|
|
2378
2378
|
if (e == null || a == null) return -1;
|
|
2379
2379
|
if (!a.length) return 0;
|
|
2380
2380
|
e = e.toString().toLocaleLowerCase(), a = a.toString().toLocaleLowerCase();
|
|
@@ -2384,7 +2384,7 @@ const La = (e, a, t) => {
|
|
|
2384
2384
|
n.push([l, l + a.length]), l = e.indexOf(a, l + a.length);
|
|
2385
2385
|
return n.length ? n : -1;
|
|
2386
2386
|
};
|
|
2387
|
-
function
|
|
2387
|
+
function Ht(e, a) {
|
|
2388
2388
|
if (!(e == null || typeof e == "boolean" || e === -1))
|
|
2389
2389
|
return typeof e == "number" ? [[e, e + a.length]] : Array.isArray(e[0]) ? e : [e];
|
|
2390
2390
|
}
|
|
@@ -2398,8 +2398,8 @@ const fn = X({
|
|
|
2398
2398
|
},
|
|
2399
2399
|
noFilter: Boolean
|
|
2400
2400
|
}, "filter");
|
|
2401
|
-
function
|
|
2402
|
-
const n = [], l = t?.default ??
|
|
2401
|
+
function za(e, a, t) {
|
|
2402
|
+
const n = [], l = t?.default ?? Ha, i = t?.filterKeys ? Te(t.filterKeys) : !1, c = Object.keys(t?.customKeyFilter ?? {}).length;
|
|
2403
2403
|
if (!e?.length) return n;
|
|
2404
2404
|
let o = [];
|
|
2405
2405
|
e: for (let u = 0; u < e.length; u++) {
|
|
@@ -2421,12 +2421,12 @@ function Ha(e, a, t) {
|
|
|
2421
2421
|
for (const _ of P) {
|
|
2422
2422
|
const S = zl(r, _), F = t?.customKeyFilter?.[_];
|
|
2423
2423
|
if (v = F ? F(S, a, d) : l(S, a, d), v !== -1 && v !== !1)
|
|
2424
|
-
F ? s[_] =
|
|
2424
|
+
F ? s[_] = Ht(v, a) : m[_] = Ht(v, a);
|
|
2425
2425
|
else if (t?.filterMode === "every")
|
|
2426
2426
|
continue e;
|
|
2427
2427
|
}
|
|
2428
2428
|
} else
|
|
2429
|
-
v = l(d, a, d), v !== -1 && v !== !1 && (m.title =
|
|
2429
|
+
v = l(d, a, d), v !== -1 && v !== !1 && (m.title = Ht(v, a));
|
|
2430
2430
|
const y = Object.keys(m).length, V = Object.keys(s).length;
|
|
2431
2431
|
if (!y && !V || t?.filterMode === "union" && V !== c && !y || t?.filterMode === "intersection" && (V !== c || !y && c > 0 && !h)) continue;
|
|
2432
2432
|
}
|
|
@@ -2442,8 +2442,8 @@ function Ha(e, a, t) {
|
|
|
2442
2442
|
}
|
|
2443
2443
|
function mn(e, a, t, n) {
|
|
2444
2444
|
const l = ee([]), i = ee(/* @__PURE__ */ new Map()), c = I(() => n?.transform ? L(a).map((u) => [u, n.transform(u)]) : L(a));
|
|
2445
|
-
|
|
2446
|
-
const u = typeof t == "function" ? t() : L(t), d = typeof u != "string" && typeof u != "number" ? "" : String(u), r =
|
|
2445
|
+
zt(() => {
|
|
2446
|
+
const u = typeof t == "function" ? t() : L(t), d = typeof u != "string" && typeof u != "number" ? "" : String(u), r = za(c.value, d, {
|
|
2447
2447
|
customKeyFilter: {
|
|
2448
2448
|
...e.customKeyFilter,
|
|
2449
2449
|
...L(n?.customKeyFilter)
|
|
@@ -2483,7 +2483,7 @@ function gn(e, a, t) {
|
|
|
2483
2483
|
}, [a.slice(n[1])])), b(ce, null, [c]);
|
|
2484
2484
|
});
|
|
2485
2485
|
}
|
|
2486
|
-
const
|
|
2486
|
+
const Ua = X({
|
|
2487
2487
|
closeText: {
|
|
2488
2488
|
type: String,
|
|
2489
2489
|
default: "$vuetify.close"
|
|
@@ -2494,7 +2494,7 @@ const za = X({
|
|
|
2494
2494
|
}
|
|
2495
2495
|
}, "autocomplete");
|
|
2496
2496
|
function yn(e, a) {
|
|
2497
|
-
const t = Xe(), n = I(() => `menu-${t}`), l = R(() =>
|
|
2497
|
+
const t = Xe(), n = I(() => `menu-${t}`), l = R(() => Ut(a)), i = R(() => n.value);
|
|
2498
2498
|
return {
|
|
2499
2499
|
menuId: n,
|
|
2500
2500
|
ariaExpanded: l,
|
|
@@ -2526,28 +2526,28 @@ const hn = X({
|
|
|
2526
2526
|
openOnClear: Boolean,
|
|
2527
2527
|
itemColor: String,
|
|
2528
2528
|
noAutoScroll: Boolean,
|
|
2529
|
-
...
|
|
2530
|
-
...
|
|
2529
|
+
...Ua(),
|
|
2530
|
+
...Hn({
|
|
2531
2531
|
itemChildren: !1
|
|
2532
2532
|
})
|
|
2533
|
-
}, "Select"),
|
|
2533
|
+
}, "Select"), Ka = X({
|
|
2534
2534
|
search: String,
|
|
2535
2535
|
...fn({
|
|
2536
2536
|
filterKeys: ["title"]
|
|
2537
2537
|
}),
|
|
2538
2538
|
...hn(),
|
|
2539
|
-
...Ye(
|
|
2539
|
+
...Ye(Mt({
|
|
2540
2540
|
modelValue: null,
|
|
2541
2541
|
role: "combobox"
|
|
2542
2542
|
}), ["validationValue", "dirty"]),
|
|
2543
|
-
...
|
|
2543
|
+
...Bt({
|
|
2544
2544
|
transition: {
|
|
2545
2545
|
component: Wl
|
|
2546
2546
|
}
|
|
2547
2547
|
})
|
|
2548
|
-
}, "VSelect"),
|
|
2548
|
+
}, "VSelect"), Fo = ie()({
|
|
2549
2549
|
name: "VSelect",
|
|
2550
|
-
props:
|
|
2550
|
+
props: Ka(),
|
|
2551
2551
|
emits: {
|
|
2552
2552
|
"update:focused": (e) => !0,
|
|
2553
2553
|
"update:modelValue": (e) => !0,
|
|
@@ -2560,7 +2560,7 @@ const hn = X({
|
|
|
2560
2560
|
} = a;
|
|
2561
2561
|
const {
|
|
2562
2562
|
t: n
|
|
2563
|
-
} = it(), l =
|
|
2563
|
+
} = it(), l = K(), i = K(), c = K(), o = K(), u = K(), {
|
|
2564
2564
|
items: d,
|
|
2565
2565
|
transformIn: r,
|
|
2566
2566
|
transformOut: s
|
|
@@ -2570,9 +2570,9 @@ const hn = X({
|
|
|
2570
2570
|
} = mn(e, d, () => m.value), y = Ve(e, "modelValue", [], (x) => r(x === null ? [null] : Te(x)), (x) => {
|
|
2571
2571
|
const Q = s(x);
|
|
2572
2572
|
return e.multiple ? Q : Q[0] ?? null;
|
|
2573
|
-
}), V = I(() => typeof e.counterValue == "function" ? e.counterValue(y.value) : typeof e.counterValue == "number" ? e.counterValue : y.value.length), P =
|
|
2574
|
-
InputIcon:
|
|
2575
|
-
} =
|
|
2573
|
+
}), V = I(() => typeof e.counterValue == "function" ? e.counterValue(y.value) : typeof e.counterValue == "number" ? e.counterValue : y.value.length), P = $t(e), _ = rn(e), S = I(() => y.value.map((x) => x.value)), F = ee(!1), E = R(() => e.closableChips && !P.isReadonly.value && !P.isDisabled.value), {
|
|
2574
|
+
InputIcon: U
|
|
2575
|
+
} = Ot(e);
|
|
2576
2576
|
let w = "", C = 0, $;
|
|
2577
2577
|
const D = I(() => {
|
|
2578
2578
|
const x = m.value ? v.value : d.value;
|
|
@@ -2593,7 +2593,7 @@ const hn = X({
|
|
|
2593
2593
|
"aria-haspopup": "listbox"
|
|
2594
2594
|
// Set aria-haspopup to 'listbox'
|
|
2595
2595
|
}
|
|
2596
|
-
})), z =
|
|
2596
|
+
})), z = K(), fe = dn(z, l), {
|
|
2597
2597
|
onTabKeydown: B
|
|
2598
2598
|
} = vn({
|
|
2599
2599
|
groups: [{
|
|
@@ -2659,7 +2659,7 @@ const hn = X({
|
|
|
2659
2659
|
} else Be && (y.value = [...y.value, x]);
|
|
2660
2660
|
} else {
|
|
2661
2661
|
const te = Q !== !1;
|
|
2662
|
-
y.value = te ? [x] : [],
|
|
2662
|
+
y.value = te ? [x] : [], ke(() => {
|
|
2663
2663
|
H.value = !1;
|
|
2664
2664
|
});
|
|
2665
2665
|
}
|
|
@@ -2774,14 +2774,14 @@ const hn = X({
|
|
|
2774
2774
|
onAfterEnter: Ie,
|
|
2775
2775
|
onAfterLeave: De
|
|
2776
2776
|
}, q.value), {
|
|
2777
|
-
default: () => [g(
|
|
2777
|
+
default: () => [g(il, {
|
|
2778
2778
|
onFocusin: je,
|
|
2779
2779
|
onFocusout: Qe,
|
|
2780
2780
|
onKeydown: f
|
|
2781
2781
|
}, {
|
|
2782
2782
|
default: () => [t["menu-header"] && b("header", {
|
|
2783
2783
|
ref: c
|
|
2784
|
-
}, [t["menu-header"](we)]), Q && g(
|
|
2784
|
+
}, [t["menu-header"](we)]), Q && g(al, N({
|
|
2785
2785
|
key: "select-list",
|
|
2786
2786
|
ref: z,
|
|
2787
2787
|
selected: S.value,
|
|
@@ -2808,7 +2808,7 @@ const hn = X({
|
|
|
2808
2808
|
index: le,
|
|
2809
2809
|
itemRef: Re
|
|
2810
2810
|
} = M;
|
|
2811
|
-
const ae =
|
|
2811
|
+
const ae = Ln(T.props), Z = N(T.props, {
|
|
2812
2812
|
ref: Re,
|
|
2813
2813
|
key: T.value,
|
|
2814
2814
|
onClick: () => J(T, null),
|
|
@@ -2845,7 +2845,7 @@ const hn = X({
|
|
|
2845
2845
|
onClick: (Ge) => Ge.preventDefault()
|
|
2846
2846
|
}, null) : void 0, ae.prependAvatar && g(nt, {
|
|
2847
2847
|
image: ae.prependAvatar
|
|
2848
|
-
}, null), ae.prependIcon && g(
|
|
2848
|
+
}, null), ae.prependIcon && g(Se, {
|
|
2849
2849
|
icon: ae.prependIcon
|
|
2850
2850
|
}, null)]);
|
|
2851
2851
|
},
|
|
@@ -2904,18 +2904,18 @@ const hn = X({
|
|
|
2904
2904
|
class: "v-select__selection-text"
|
|
2905
2905
|
}, [M.title, e.multiple && T < y.value.length - 1 && b("span", {
|
|
2906
2906
|
class: "v-select__selection-comma"
|
|
2907
|
-
}, [
|
|
2907
|
+
}, [kl(",")])])]);
|
|
2908
2908
|
})]);
|
|
2909
2909
|
},
|
|
2910
2910
|
"append-inner": function() {
|
|
2911
2911
|
for (var k = arguments.length, Y = new Array(k), M = 0; M < k; M++)
|
|
2912
2912
|
Y[M] = arguments[M];
|
|
2913
|
-
return b(ce, null, [t["append-inner"]?.(...Y), e.menuIcon ? g(
|
|
2913
|
+
return b(ce, null, [t["append-inner"]?.(...Y), e.menuIcon ? g(Se, {
|
|
2914
2914
|
class: "v-select__menu-icon",
|
|
2915
2915
|
color: l.value?.fieldIconColor,
|
|
2916
2916
|
icon: e.menuIcon,
|
|
2917
2917
|
"aria-hidden": !0
|
|
2918
|
-
}, null) : void 0, e.appendInnerIcon && g(
|
|
2918
|
+
}, null) : void 0, e.appendInnerIcon && g(U, {
|
|
2919
2919
|
key: "append-icon",
|
|
2920
2920
|
name: "appendInner",
|
|
2921
2921
|
color: Y[0].iconColor.value
|
|
@@ -2930,7 +2930,7 @@ const hn = X({
|
|
|
2930
2930
|
select: J
|
|
2931
2931
|
}, l);
|
|
2932
2932
|
}
|
|
2933
|
-
}),
|
|
2933
|
+
}), ja = X({
|
|
2934
2934
|
autoSelectFirst: {
|
|
2935
2935
|
type: [Boolean, String]
|
|
2936
2936
|
},
|
|
@@ -2940,13 +2940,13 @@ const hn = X({
|
|
|
2940
2940
|
filterKeys: ["title"]
|
|
2941
2941
|
}),
|
|
2942
2942
|
...hn(),
|
|
2943
|
-
...Ye(
|
|
2943
|
+
...Ye(Mt({
|
|
2944
2944
|
modelValue: null,
|
|
2945
2945
|
role: "combobox"
|
|
2946
2946
|
}), ["validationValue", "dirty"])
|
|
2947
|
-
}, "VAutocomplete"),
|
|
2947
|
+
}, "VAutocomplete"), Ga = ie()({
|
|
2948
2948
|
name: "VAutocomplete",
|
|
2949
|
-
props:
|
|
2949
|
+
props: ja(),
|
|
2950
2950
|
emits: {
|
|
2951
2951
|
"update:focused": (e) => !0,
|
|
2952
2952
|
"update:search": (e) => !0,
|
|
@@ -2959,7 +2959,7 @@ const hn = X({
|
|
|
2959
2959
|
} = a;
|
|
2960
2960
|
const {
|
|
2961
2961
|
t: n
|
|
2962
|
-
} = it(), l =
|
|
2962
|
+
} = it(), l = K(), i = ee(!1), c = ee(!0), o = ee(!1), u = K(), d = K(), r = ee(-1), s = ee(null), {
|
|
2963
2963
|
items: m,
|
|
2964
2964
|
transformIn: v,
|
|
2965
2965
|
transformOut: h
|
|
@@ -2968,13 +2968,13 @@ const hn = X({
|
|
|
2968
2968
|
textColorStyles: V
|
|
2969
2969
|
} = kt(() => l.value?.color), {
|
|
2970
2970
|
InputIcon: P
|
|
2971
|
-
} =
|
|
2971
|
+
} = Ot(e), _ = Ve(e, "search", ""), S = Ve(e, "modelValue", [], (k) => v(k === null ? [null] : Te(k)), (k) => {
|
|
2972
2972
|
const Y = h(k);
|
|
2973
2973
|
return e.multiple ? Y : Y[0] ?? null;
|
|
2974
|
-
}), F = I(() => typeof e.counterValue == "function" ? e.counterValue(S.value) : typeof e.counterValue == "number" ? e.counterValue : S.value.length), E =
|
|
2975
|
-
filteredItems:
|
|
2974
|
+
}), F = I(() => typeof e.counterValue == "function" ? e.counterValue(S.value) : typeof e.counterValue == "number" ? e.counterValue : S.value.length), E = $t(e), {
|
|
2975
|
+
filteredItems: U,
|
|
2976
2976
|
getMatches: w
|
|
2977
|
-
} = mn(e, m, () => s.value ?? (c.value ? "" : _.value)), C = I(() => e.hideSelected && s.value === null ?
|
|
2977
|
+
} = mn(e, m, () => s.value ?? (c.value ? "" : _.value)), C = I(() => e.hideSelected && s.value === null ? U.value.filter((k) => !S.value.some((Y) => Y.value === k.value)) : U.value), $ = R(() => e.closableChips && !E.isReadonly.value && !E.isDisabled.value), D = I(() => !!(e.chips || t.chip)), G = I(() => D.value || !!t.selection), ne = I(() => S.value.map((k) => k.props.value)), H = I(() => C.value.find((k) => k.type === "item" && !k.props.disabled)), W = I(() => (e.autoSelectFirst === !0 || e.autoSelectFirst === "exact" && _.value === H.value?.title) && C.value.length > 0 && !c.value && !o.value), j = I(() => e.hideNoData && !C.value.length || E.isReadonly.value || E.isDisabled.value), ue = Ve(e, "menu"), q = I({
|
|
2978
2978
|
get: () => ue.value,
|
|
2979
2979
|
set: (k) => {
|
|
2980
2980
|
ue.value && !k && u.value?.ΨopenChildren.size || k && j.value || (ue.value = k);
|
|
@@ -2983,7 +2983,7 @@ const hn = X({
|
|
|
2983
2983
|
menuId: z,
|
|
2984
2984
|
ariaExpanded: fe,
|
|
2985
2985
|
ariaControls: B
|
|
2986
|
-
} = yn(e, q), O =
|
|
2986
|
+
} = yn(e, q), O = K(), p = K(), f = K(), A = dn(O, l), {
|
|
2987
2987
|
onTabKeydown: J
|
|
2988
2988
|
} = vn({
|
|
2989
2989
|
groups: [{
|
|
@@ -3085,13 +3085,13 @@ const hn = X({
|
|
|
3085
3085
|
e.clearOnSelect && (_.value = "");
|
|
3086
3086
|
} else {
|
|
3087
3087
|
const M = Y !== !1;
|
|
3088
|
-
S.value = M ? [k] : [], s.value = c.value ? "" : _.value ?? "", _.value = M && !G.value ? k.title : "",
|
|
3088
|
+
S.value = M ? [k] : [], s.value = c.value ? "" : _.value ?? "", _.value = M && !G.value ? k.title : "", ke(() => {
|
|
3089
3089
|
q.value = !1, c.value = !0;
|
|
3090
3090
|
});
|
|
3091
3091
|
}
|
|
3092
3092
|
}
|
|
3093
3093
|
return se(i, (k, Y) => {
|
|
3094
|
-
k !== Y && (k ? (Pe.value = !0, _.value = e.multiple || G.value ? "" : String(S.value.at(-1)?.props.title ?? ""), c.value = !0,
|
|
3094
|
+
k !== Y && (k ? (Pe.value = !0, _.value = e.multiple || G.value ? "" : String(S.value.at(-1)?.props.title ?? ""), c.value = !0, ke(() => Pe.value = !1)) : (!e.multiple && _.value == null && (S.value = []), q.value = !1, !c.value && _.value && (s.value = _.value), _.value = "", r.value = -1));
|
|
3095
3095
|
}), se(_, (k) => {
|
|
3096
3096
|
!i.value || Pe.value || (k && (q.value = !0), c.value = !k);
|
|
3097
3097
|
}), se(q, (k) => {
|
|
@@ -3107,7 +3107,7 @@ const hn = X({
|
|
|
3107
3107
|
}), de(() => {
|
|
3108
3108
|
const k = !!(!e.hideNoData || C.value.length || t["prepend-item"] || t["append-item"] || t["no-data"]), Y = S.value.length > 0, M = Je.filterProps(e), T = {
|
|
3109
3109
|
search: _,
|
|
3110
|
-
filteredItems:
|
|
3110
|
+
filteredItems: U.value
|
|
3111
3111
|
};
|
|
3112
3112
|
return g(Je, N({
|
|
3113
3113
|
ref: l
|
|
@@ -3156,13 +3156,13 @@ const hn = X({
|
|
|
3156
3156
|
onAfterEnter: Qe,
|
|
3157
3157
|
onAfterLeave: ut
|
|
3158
3158
|
}, e.menuProps), {
|
|
3159
|
-
default: () => [g(
|
|
3159
|
+
default: () => [g(il, {
|
|
3160
3160
|
onFocusin: x,
|
|
3161
3161
|
onKeydown: Ie
|
|
3162
3162
|
}, {
|
|
3163
3163
|
default: () => [t["menu-header"] && b("header", {
|
|
3164
3164
|
ref: p
|
|
3165
|
-
}, [t["menu-header"](T)]), k && g(
|
|
3165
|
+
}, [t["menu-header"](T)]), k && g(al, N({
|
|
3166
3166
|
key: "autocomplete-list",
|
|
3167
3167
|
ref: O,
|
|
3168
3168
|
filterable: !0,
|
|
@@ -3230,7 +3230,7 @@ const hn = X({
|
|
|
3230
3230
|
onClick: (Cn) => Cn.preventDefault()
|
|
3231
3231
|
}, null) : void 0, Z.props.prependAvatar && g(nt, {
|
|
3232
3232
|
image: Z.props.prependAvatar
|
|
3233
|
-
}, null), Z.props.prependIcon && g(
|
|
3233
|
+
}, null), Z.props.prependIcon && g(Se, {
|
|
3234
3234
|
icon: Z.props.prependIcon
|
|
3235
3235
|
}, null)]);
|
|
3236
3236
|
},
|
|
@@ -3290,18 +3290,18 @@ const hn = X({
|
|
|
3290
3290
|
class: "v-autocomplete__selection-text"
|
|
3291
3291
|
}, [ae.title, e.multiple && Z < S.value.length - 1 && b("span", {
|
|
3292
3292
|
class: "v-autocomplete__selection-comma"
|
|
3293
|
-
}, [
|
|
3293
|
+
}, [kl(",")])])]);
|
|
3294
3294
|
})]);
|
|
3295
3295
|
},
|
|
3296
3296
|
"append-inner": function() {
|
|
3297
3297
|
for (var le = arguments.length, Re = new Array(le), ae = 0; ae < le; ae++)
|
|
3298
3298
|
Re[ae] = arguments[ae];
|
|
3299
|
-
return b(ce, null, [t["append-inner"]?.(...Re), e.menuIcon ? g(
|
|
3299
|
+
return b(ce, null, [t["append-inner"]?.(...Re), e.menuIcon ? g(Se, {
|
|
3300
3300
|
class: "v-autocomplete__menu-icon",
|
|
3301
3301
|
color: l.value?.fieldIconColor,
|
|
3302
3302
|
icon: e.menuIcon,
|
|
3303
3303
|
onMousedown: be,
|
|
3304
|
-
onClick:
|
|
3304
|
+
onClick: zn,
|
|
3305
3305
|
"aria-hidden": !0,
|
|
3306
3306
|
tabindex: "-1"
|
|
3307
3307
|
}, null) : void 0, e.appendInnerIcon && g(P, {
|
|
@@ -3316,11 +3316,11 @@ const hn = X({
|
|
|
3316
3316
|
isPristine: c,
|
|
3317
3317
|
menu: q,
|
|
3318
3318
|
search: _,
|
|
3319
|
-
filteredItems:
|
|
3319
|
+
filteredItems: U,
|
|
3320
3320
|
select: we
|
|
3321
3321
|
}, l);
|
|
3322
3322
|
}
|
|
3323
|
-
}),
|
|
3323
|
+
}), Wa = X({
|
|
3324
3324
|
bordered: Boolean,
|
|
3325
3325
|
color: String,
|
|
3326
3326
|
content: [Number, String],
|
|
@@ -3341,25 +3341,25 @@ const hn = X({
|
|
|
3341
3341
|
offsetY: [Number, String],
|
|
3342
3342
|
textColor: String,
|
|
3343
3343
|
...he(),
|
|
3344
|
-
...
|
|
3344
|
+
...ll({
|
|
3345
3345
|
location: "top end"
|
|
3346
3346
|
}),
|
|
3347
3347
|
...yt(),
|
|
3348
3348
|
...Oe(),
|
|
3349
3349
|
...He(),
|
|
3350
|
-
...
|
|
3350
|
+
...Bt({
|
|
3351
3351
|
transition: "scale-rotate-transition"
|
|
3352
3352
|
}),
|
|
3353
3353
|
...pt()
|
|
3354
|
-
}, "VBadge"),
|
|
3354
|
+
}, "VBadge"), qa = ie()({
|
|
3355
3355
|
name: "VBadge",
|
|
3356
3356
|
inheritAttrs: !1,
|
|
3357
|
-
props:
|
|
3357
|
+
props: Wa(),
|
|
3358
3358
|
setup(e, a) {
|
|
3359
3359
|
const {
|
|
3360
3360
|
backgroundColorClasses: t,
|
|
3361
3361
|
backgroundColorStyles: n
|
|
3362
|
-
} =
|
|
3362
|
+
} = Tt(() => e.color), {
|
|
3363
3363
|
roundedClasses: l
|
|
3364
3364
|
} = gt(e), {
|
|
3365
3365
|
t: i
|
|
@@ -3368,13 +3368,13 @@ const hn = X({
|
|
|
3368
3368
|
textColorStyles: o
|
|
3369
3369
|
} = kt(() => e.textColor), {
|
|
3370
3370
|
themeClasses: u
|
|
3371
|
-
} =
|
|
3371
|
+
} = Un(), {
|
|
3372
3372
|
locationStyles: d
|
|
3373
|
-
} =
|
|
3373
|
+
} = tl(e, !0, (s) => (e.floating ? e.dot ? 2 : 4 : e.dot ? 8 : 12) + (["top", "bottom"].includes(s) ? Number(e.offsetY ?? 0) : ["left", "right"].includes(s) ? Number(e.offsetX ?? 0) : 0)), {
|
|
3374
3374
|
dimensionStyles: r
|
|
3375
3375
|
} = bt(e);
|
|
3376
3376
|
return de(() => {
|
|
3377
|
-
const s = Number(e.content), m = !e.max || isNaN(s) ? e.content : s <= Number(e.max) ? s : `${e.max}+`, [v, h] =
|
|
3377
|
+
const s = Number(e.content), m = !e.max || isNaN(s) ? e.content : s <= Number(e.max) ? s : `${e.max}+`, [v, h] = Kn(a.attrs, ["aria-atomic", "aria-label", "aria-live", "role", "title"]);
|
|
3378
3378
|
return g(e.tag, N({
|
|
3379
3379
|
class: ["v-badge", {
|
|
3380
3380
|
"v-badge--bordered": e.bordered,
|
|
@@ -3387,7 +3387,7 @@ const hn = X({
|
|
|
3387
3387
|
}), {
|
|
3388
3388
|
default: () => [b("div", {
|
|
3389
3389
|
class: "v-badge__wrapper"
|
|
3390
|
-
}, [a.slots.default?.(), g(
|
|
3390
|
+
}, [a.slots.default?.(), g(nl, {
|
|
3391
3391
|
transition: e.transition
|
|
3392
3392
|
}, {
|
|
3393
3393
|
default: () => [Ue(b("span", N({
|
|
@@ -3397,17 +3397,17 @@ const hn = X({
|
|
|
3397
3397
|
"aria-label": i(e.label, s),
|
|
3398
3398
|
"aria-live": "polite",
|
|
3399
3399
|
role: "status"
|
|
3400
|
-
}, v), [e.dot ? void 0 : a.slots.badge ? a.slots.badge?.() : e.icon ? g(
|
|
3400
|
+
}, v), [e.dot ? void 0 : a.slots.badge ? a.slots.badge?.() : e.icon ? g(Se, {
|
|
3401
3401
|
icon: e.icon
|
|
3402
3402
|
}, null) : m]), [[Pt, e.modelValue]])]
|
|
3403
3403
|
})])]
|
|
3404
3404
|
});
|
|
3405
3405
|
}), {};
|
|
3406
3406
|
}
|
|
3407
|
-
}),
|
|
3407
|
+
}), Ja = X({
|
|
3408
3408
|
fullscreen: Boolean,
|
|
3409
3409
|
scrollable: Boolean,
|
|
3410
|
-
...Ye(
|
|
3410
|
+
...Ye(Gn({
|
|
3411
3411
|
captureFocus: !0,
|
|
3412
3412
|
origin: "center center",
|
|
3413
3413
|
scrollStrategy: "block",
|
|
@@ -3419,7 +3419,7 @@ const hn = X({
|
|
|
3419
3419
|
}), ["disableInitialFocus"])
|
|
3420
3420
|
}, "VDialog"), bn = ie()({
|
|
3421
3421
|
name: "VDialog",
|
|
3422
|
-
props:
|
|
3422
|
+
props: Ja(),
|
|
3423
3423
|
emits: {
|
|
3424
3424
|
"update:modelValue": (e) => !0,
|
|
3425
3425
|
afterEnter: () => !0,
|
|
@@ -3432,7 +3432,7 @@ const hn = X({
|
|
|
3432
3432
|
} = a;
|
|
3433
3433
|
const l = Ve(e, "modelValue"), {
|
|
3434
3434
|
scopeId: i
|
|
3435
|
-
} =
|
|
3435
|
+
} = jn(), c = K();
|
|
3436
3436
|
function o() {
|
|
3437
3437
|
t("afterEnter"), (e.scrim || e.retainFocus) && c.value?.contentEl && !c.value.contentEl.contains(document.activeElement) && c.value.contentEl.focus({
|
|
3438
3438
|
preventScroll: !0
|
|
@@ -3442,16 +3442,16 @@ const hn = X({
|
|
|
3442
3442
|
t("afterLeave");
|
|
3443
3443
|
}
|
|
3444
3444
|
return se(l, async (d) => {
|
|
3445
|
-
d || (await
|
|
3445
|
+
d || (await ke(), c.value.activatorEl?.focus({
|
|
3446
3446
|
preventScroll: !0
|
|
3447
3447
|
}));
|
|
3448
3448
|
}), de(() => {
|
|
3449
|
-
const d =
|
|
3449
|
+
const d = vl.filterProps(e), r = N({
|
|
3450
3450
|
"aria-haspopup": "dialog"
|
|
3451
3451
|
}, e.activatorProps), s = N({
|
|
3452
3452
|
tabindex: -1
|
|
3453
3453
|
}, e.contentProps);
|
|
3454
|
-
return g(
|
|
3454
|
+
return g(vl, N({
|
|
3455
3455
|
ref: c,
|
|
3456
3456
|
class: ["v-dialog", {
|
|
3457
3457
|
"v-dialog--fullscreen": e.fullscreen,
|
|
@@ -3485,17 +3485,17 @@ const hn = X({
|
|
|
3485
3485
|
});
|
|
3486
3486
|
}), St({}, c);
|
|
3487
3487
|
}
|
|
3488
|
-
}),
|
|
3488
|
+
}), Xa = X({
|
|
3489
3489
|
...he(),
|
|
3490
3490
|
...Oe()
|
|
3491
3491
|
}, "VCardActions"), pn = ie()({
|
|
3492
3492
|
name: "VCardActions",
|
|
3493
|
-
props:
|
|
3493
|
+
props: Xa(),
|
|
3494
3494
|
setup(e, a) {
|
|
3495
3495
|
let {
|
|
3496
3496
|
slots: t
|
|
3497
3497
|
} = a;
|
|
3498
|
-
return
|
|
3498
|
+
return Jt({
|
|
3499
3499
|
VBtn: {
|
|
3500
3500
|
slim: !0,
|
|
3501
3501
|
variant: "text"
|
|
@@ -3505,13 +3505,13 @@ const hn = X({
|
|
|
3505
3505
|
style: xe(e.style)
|
|
3506
3506
|
}, t)), {};
|
|
3507
3507
|
}
|
|
3508
|
-
}),
|
|
3508
|
+
}), Ya = X({
|
|
3509
3509
|
opacity: [Number, String],
|
|
3510
3510
|
...he(),
|
|
3511
3511
|
...Oe()
|
|
3512
|
-
}, "VCardSubtitle"),
|
|
3512
|
+
}, "VCardSubtitle"), Qa = ie()({
|
|
3513
3513
|
name: "VCardSubtitle",
|
|
3514
|
-
props:
|
|
3514
|
+
props: Ya(),
|
|
3515
3515
|
setup(e, a) {
|
|
3516
3516
|
let {
|
|
3517
3517
|
slots: t
|
|
@@ -3523,7 +3523,7 @@ const hn = X({
|
|
|
3523
3523
|
}, e.style])
|
|
3524
3524
|
}, t)), {};
|
|
3525
3525
|
}
|
|
3526
|
-
}),
|
|
3526
|
+
}), ul = Wn("v-card-title"), Za = X({
|
|
3527
3527
|
appendAvatar: String,
|
|
3528
3528
|
appendIcon: ye,
|
|
3529
3529
|
prependAvatar: String,
|
|
@@ -3539,9 +3539,9 @@ const hn = X({
|
|
|
3539
3539
|
...he(),
|
|
3540
3540
|
...ht(),
|
|
3541
3541
|
...Oe()
|
|
3542
|
-
}, "VCardItem"),
|
|
3542
|
+
}, "VCardItem"), eo = ie()({
|
|
3543
3543
|
name: "VCardItem",
|
|
3544
|
-
props:
|
|
3544
|
+
props: Za(),
|
|
3545
3545
|
setup(e, a) {
|
|
3546
3546
|
let {
|
|
3547
3547
|
slots: t
|
|
@@ -3572,17 +3572,17 @@ const hn = X({
|
|
|
3572
3572
|
key: "prepend-avatar",
|
|
3573
3573
|
density: e.density,
|
|
3574
3574
|
image: e.prependAvatar
|
|
3575
|
-
}, null), e.prependIcon && g(
|
|
3575
|
+
}, null), e.prependIcon && g(Se, {
|
|
3576
3576
|
key: "prepend-icon",
|
|
3577
3577
|
density: e.density,
|
|
3578
3578
|
icon: e.prependIcon
|
|
3579
3579
|
}, null)])]), b("div", {
|
|
3580
3580
|
class: "v-card-item__content"
|
|
3581
|
-
}, [o && g(
|
|
3581
|
+
}, [o && g(ul, {
|
|
3582
3582
|
key: "title"
|
|
3583
3583
|
}, {
|
|
3584
3584
|
default: () => [t.title?.() ?? Vt(e.title)]
|
|
3585
|
-
}), u && g(
|
|
3585
|
+
}), u && g(Qa, {
|
|
3586
3586
|
key: "subtitle"
|
|
3587
3587
|
}, {
|
|
3588
3588
|
default: () => [t.subtitle?.() ?? Vt(e.subtitle)]
|
|
@@ -3602,7 +3602,7 @@ const hn = X({
|
|
|
3602
3602
|
icon: e.appendIcon
|
|
3603
3603
|
}
|
|
3604
3604
|
}
|
|
3605
|
-
}, t.append) : b(ce, null, [e.appendIcon && g(
|
|
3605
|
+
}, t.append) : b(ce, null, [e.appendIcon && g(Se, {
|
|
3606
3606
|
key: "append-icon",
|
|
3607
3607
|
density: e.density,
|
|
3608
3608
|
icon: e.appendIcon
|
|
@@ -3614,13 +3614,13 @@ const hn = X({
|
|
|
3614
3614
|
});
|
|
3615
3615
|
}), {};
|
|
3616
3616
|
}
|
|
3617
|
-
}),
|
|
3617
|
+
}), to = X({
|
|
3618
3618
|
opacity: [Number, String],
|
|
3619
3619
|
...he(),
|
|
3620
3620
|
...Oe()
|
|
3621
|
-
}, "VCardText"),
|
|
3621
|
+
}, "VCardText"), sl = ie()({
|
|
3622
3622
|
name: "VCardText",
|
|
3623
|
-
props:
|
|
3623
|
+
props: to(),
|
|
3624
3624
|
setup(e, a) {
|
|
3625
3625
|
let {
|
|
3626
3626
|
slots: t
|
|
@@ -3632,7 +3632,7 @@ const hn = X({
|
|
|
3632
3632
|
}, e.style])
|
|
3633
3633
|
}, t)), {};
|
|
3634
3634
|
}
|
|
3635
|
-
}),
|
|
3635
|
+
}), lo = X({
|
|
3636
3636
|
appendAvatar: String,
|
|
3637
3637
|
appendIcon: ye,
|
|
3638
3638
|
disabled: Boolean,
|
|
@@ -3661,19 +3661,19 @@ const hn = X({
|
|
|
3661
3661
|
type: [String, Number, Boolean],
|
|
3662
3662
|
default: void 0
|
|
3663
3663
|
},
|
|
3664
|
-
...
|
|
3664
|
+
...el(),
|
|
3665
3665
|
...he(),
|
|
3666
3666
|
...ht(),
|
|
3667
3667
|
...pt(),
|
|
3668
|
-
...
|
|
3668
|
+
...Zt(),
|
|
3669
3669
|
...Hl(),
|
|
3670
|
-
...
|
|
3670
|
+
...ll(),
|
|
3671
3671
|
...Bl(),
|
|
3672
3672
|
...yt(),
|
|
3673
3673
|
...Dl(),
|
|
3674
3674
|
...Oe(),
|
|
3675
3675
|
...He(),
|
|
3676
|
-
...
|
|
3676
|
+
...Xt({
|
|
3677
3677
|
variant: "elevated"
|
|
3678
3678
|
})
|
|
3679
3679
|
}, "VCard"), kn = ie()({
|
|
@@ -3681,7 +3681,7 @@ const hn = X({
|
|
|
3681
3681
|
directives: {
|
|
3682
3682
|
vRipple: lt
|
|
3683
3683
|
},
|
|
3684
|
-
props:
|
|
3684
|
+
props: lo(),
|
|
3685
3685
|
setup(e, a) {
|
|
3686
3686
|
let {
|
|
3687
3687
|
attrs: t,
|
|
@@ -3691,21 +3691,21 @@ const hn = X({
|
|
|
3691
3691
|
themeClasses: l
|
|
3692
3692
|
} = ot(e), {
|
|
3693
3693
|
borderClasses: i
|
|
3694
|
-
} =
|
|
3694
|
+
} = Yt(e), {
|
|
3695
3695
|
colorClasses: c,
|
|
3696
3696
|
colorStyles: o,
|
|
3697
3697
|
variantClasses: u
|
|
3698
3698
|
} = _l(e), {
|
|
3699
3699
|
densityClasses: d
|
|
3700
|
-
} =
|
|
3700
|
+
} = Dt(e), {
|
|
3701
3701
|
dimensionStyles: r
|
|
3702
3702
|
} = bt(e), {
|
|
3703
3703
|
elevationClasses: s
|
|
3704
|
-
} =
|
|
3704
|
+
} = Qt(e), {
|
|
3705
3705
|
loaderClasses: m
|
|
3706
3706
|
} = Nl(e), {
|
|
3707
3707
|
locationStyles: v
|
|
3708
|
-
} =
|
|
3708
|
+
} = tl(e), {
|
|
3709
3709
|
positionClasses: h
|
|
3710
3710
|
} = Tl(e), {
|
|
3711
3711
|
roundedClasses: y
|
|
@@ -3715,7 +3715,7 @@ const hn = X({
|
|
|
3715
3715
|
}, {
|
|
3716
3716
|
immediate: !0
|
|
3717
3717
|
}), de(() => {
|
|
3718
|
-
const _ = e.link !== !1 && V.isLink.value, S = !e.disabled && e.link !== !1 && (e.link || V.isClickable.value), F = _ ? "a" : e.tag, E = !!(n.title || e.title != null),
|
|
3718
|
+
const _ = e.link !== !1 && V.isLink.value, S = !e.disabled && e.link !== !1 && (e.link || V.isClickable.value), F = _ ? "a" : e.tag, E = !!(n.title || e.title != null), U = !!(n.subtitle || e.subtitle != null), w = E || U, C = !!(n.append || e.appendAvatar || e.appendIcon), $ = !!(n.prepend || e.prependAvatar || e.prependIcon), D = !!(n.image || e.image), G = w || $ || C, ne = !!(n.text || e.text != null);
|
|
3719
3719
|
return Ue(g(F, N(V.linkProps, {
|
|
3720
3720
|
class: ["v-card", {
|
|
3721
3721
|
"v-card--disabled": e.disabled,
|
|
@@ -3741,7 +3741,7 @@ const hn = X({
|
|
|
3741
3741
|
src: e.image
|
|
3742
3742
|
}
|
|
3743
3743
|
}
|
|
3744
|
-
}, n.image) : g(
|
|
3744
|
+
}, n.image) : g(qn, {
|
|
3745
3745
|
key: "image-img",
|
|
3746
3746
|
cover: !0,
|
|
3747
3747
|
src: e.image
|
|
@@ -3751,7 +3751,7 @@ const hn = X({
|
|
|
3751
3751
|
color: P.value
|
|
3752
3752
|
}, {
|
|
3753
3753
|
default: n.loader
|
|
3754
|
-
}), G && g(
|
|
3754
|
+
}), G && g(eo, {
|
|
3755
3755
|
key: "item",
|
|
3756
3756
|
prependAvatar: e.prependAvatar,
|
|
3757
3757
|
prependIcon: e.prependIcon,
|
|
@@ -3765,7 +3765,7 @@ const hn = X({
|
|
|
3765
3765
|
title: n.title,
|
|
3766
3766
|
subtitle: n.subtitle,
|
|
3767
3767
|
append: n.append
|
|
3768
|
-
}), ne && g(
|
|
3768
|
+
}), ne && g(sl, {
|
|
3769
3769
|
key: "text"
|
|
3770
3770
|
}, {
|
|
3771
3771
|
default: () => [n.text?.() ?? e.text]
|
|
@@ -3775,16 +3775,16 @@ const hn = X({
|
|
|
3775
3775
|
}), [[lt, S && e.ripple]]);
|
|
3776
3776
|
}), {};
|
|
3777
3777
|
}
|
|
3778
|
-
}),
|
|
3779
|
-
function
|
|
3778
|
+
}), no = 50, ao = 500;
|
|
3779
|
+
function oo(e) {
|
|
3780
3780
|
let {
|
|
3781
3781
|
toggleUpDown: a
|
|
3782
3782
|
} = e, t = -1, n = -1;
|
|
3783
3783
|
rt(i);
|
|
3784
3784
|
function l(o) {
|
|
3785
3785
|
i(), c(o), window.addEventListener("pointerup", i), document.addEventListener("blur", i), t = window.setTimeout(() => {
|
|
3786
|
-
n = window.setInterval(() => c(o),
|
|
3787
|
-
},
|
|
3786
|
+
n = window.setInterval(() => c(o), no);
|
|
3787
|
+
}, ao);
|
|
3788
3788
|
}
|
|
3789
3789
|
function i() {
|
|
3790
3790
|
window.clearTimeout(t), window.clearInterval(n), window.removeEventListener("pointerup", i), document.removeEventListener("blur", i);
|
|
@@ -3798,7 +3798,7 @@ function ao(e) {
|
|
|
3798
3798
|
holdStop: i
|
|
3799
3799
|
};
|
|
3800
3800
|
}
|
|
3801
|
-
const
|
|
3801
|
+
const io = X({
|
|
3802
3802
|
controlVariant: {
|
|
3803
3803
|
type: String,
|
|
3804
3804
|
default: "default"
|
|
@@ -3833,11 +3833,11 @@ const oo = X({
|
|
|
3833
3833
|
type: String,
|
|
3834
3834
|
validator: (e) => !e || e.length === 1
|
|
3835
3835
|
},
|
|
3836
|
-
...Ye(
|
|
3837
|
-
}, "VNumberInput"),
|
|
3836
|
+
...Ye(Mt(), ["modelValue", "validationValue"])
|
|
3837
|
+
}, "VNumberInput"), uo = ie()({
|
|
3838
3838
|
name: "VNumberInput",
|
|
3839
3839
|
props: {
|
|
3840
|
-
...
|
|
3840
|
+
...io()
|
|
3841
3841
|
},
|
|
3842
3842
|
emits: {
|
|
3843
3843
|
"update:focused": (e) => !0,
|
|
@@ -3847,12 +3847,12 @@ const oo = X({
|
|
|
3847
3847
|
let {
|
|
3848
3848
|
slots: t
|
|
3849
3849
|
} = a;
|
|
3850
|
-
const n =
|
|
3850
|
+
const n = K(), {
|
|
3851
3851
|
holdStart: l,
|
|
3852
3852
|
holdStop: i
|
|
3853
|
-
} =
|
|
3853
|
+
} = oo({
|
|
3854
3854
|
toggleUpDown: G
|
|
3855
|
-
}), c =
|
|
3855
|
+
}), c = $t(e), o = I(() => c.isDisabled.value || c.isReadonly.value), u = ee(e.focused), {
|
|
3856
3856
|
decimalSeparator: d
|
|
3857
3857
|
} = it(), r = I(() => e.decimalSeparator?.[0] || d.value);
|
|
3858
3858
|
function s(f) {
|
|
@@ -3885,7 +3885,7 @@ const oo = X({
|
|
|
3885
3885
|
if (h.value === null) return !1;
|
|
3886
3886
|
const f = Number(v.value?.replace(r.value, "."));
|
|
3887
3887
|
return f !== Ne(f, e.min, e.max);
|
|
3888
|
-
}), P = I(() => o.value ? !1 : (m.value ?? 0) + e.step <= e.max), _ = I(() => o.value ? !1 : (m.value ?? 0) - e.step >= e.min), S = I(() => e.hideInput ? "stacked" : e.controlVariant), F = R(() => S.value === "split" ? "$plus" : "$collapse"), E = R(() => S.value === "split" ? "$minus" : "$expand"),
|
|
3888
|
+
}), P = I(() => o.value ? !1 : (m.value ?? 0) + e.step <= e.max), _ = I(() => o.value ? !1 : (m.value ?? 0) - e.step >= e.min), S = I(() => e.hideInput ? "stacked" : e.controlVariant), F = R(() => S.value === "split" ? "$plus" : "$collapse"), E = R(() => S.value === "split" ? "$minus" : "$expand"), U = R(() => S.value === "split" ? "default" : "small"), w = R(() => S.value === "stacked" ? "auto" : "100%"), C = {
|
|
3889
3889
|
props: {
|
|
3890
3890
|
onClick: W,
|
|
3891
3891
|
onPointerup: j,
|
|
@@ -3924,18 +3924,18 @@ const oo = X({
|
|
|
3924
3924
|
value: J,
|
|
3925
3925
|
selectionStart: ve,
|
|
3926
3926
|
selectionEnd: ge
|
|
3927
|
-
} = A ?? {}, be = J ? J.slice(0, ve) + f.data + J.slice(ge) : f.data, Ie =
|
|
3928
|
-
if (new RegExp(`^-?\\d*${
|
|
3927
|
+
} = A ?? {}, be = J ? J.slice(0, ve) + f.data + J.slice(ge) : f.data, Ie = Jn(be, e.precision, r.value);
|
|
3928
|
+
if (new RegExp(`^-?\\d*${Xn(r.value)}?\\d*$`).test(be) || (f.preventDefault(), A.value = Ie, ke(() => y.value = Ie)), e.precision != null) {
|
|
3929
3929
|
if (be.split(r.value)[1]?.length > e.precision) {
|
|
3930
|
-
f.preventDefault(), A.value = Ie,
|
|
3930
|
+
f.preventDefault(), A.value = Ie, ke(() => y.value = Ie);
|
|
3931
3931
|
const De = (ve ?? 0) + f.data.length;
|
|
3932
3932
|
A.setSelectionRange(De, De);
|
|
3933
3933
|
}
|
|
3934
|
-
e.precision === 0 && be.endsWith(r.value) && (f.preventDefault(), A.value = Ie,
|
|
3934
|
+
e.precision === 0 && be.endsWith(r.value) && (f.preventDefault(), A.value = Ie, ke(() => y.value = Ie));
|
|
3935
3935
|
}
|
|
3936
3936
|
}
|
|
3937
3937
|
async function H(f) {
|
|
3938
|
-
["Enter", "ArrowLeft", "ArrowRight", "Backspace", "Delete", "Tab"].includes(f.key) || f.ctrlKey || ["ArrowDown", "ArrowUp"].includes(f.key) && (f.preventDefault(), f.stopPropagation(), z(), await
|
|
3938
|
+
["Enter", "ArrowLeft", "ArrowRight", "Backspace", "Delete", "Tab"].includes(f.key) || f.ctrlKey || ["ArrowDown", "ArrowUp"].includes(f.key) && (f.preventDefault(), f.stopPropagation(), z(), await ke(), f.key === "ArrowDown" ? G(!1) : G());
|
|
3939
3939
|
}
|
|
3940
3940
|
function W(f) {
|
|
3941
3941
|
f.stopPropagation();
|
|
@@ -3985,7 +3985,7 @@ const oo = X({
|
|
|
3985
3985
|
VBtn: {
|
|
3986
3986
|
disabled: !P.value,
|
|
3987
3987
|
height: w.value,
|
|
3988
|
-
size:
|
|
3988
|
+
size: U.value,
|
|
3989
3989
|
icon: F.value,
|
|
3990
3990
|
variant: "text"
|
|
3991
3991
|
}
|
|
@@ -4003,7 +4003,7 @@ const oo = X({
|
|
|
4003
4003
|
onPointerdown: ue,
|
|
4004
4004
|
onPointerup: j,
|
|
4005
4005
|
onPointercancel: j,
|
|
4006
|
-
size:
|
|
4006
|
+
size: U.value,
|
|
4007
4007
|
variant: "text",
|
|
4008
4008
|
tabindex: "-1"
|
|
4009
4009
|
}, null);
|
|
@@ -4015,7 +4015,7 @@ const oo = X({
|
|
|
4015
4015
|
VBtn: {
|
|
4016
4016
|
disabled: !_.value,
|
|
4017
4017
|
height: w.value,
|
|
4018
|
-
size:
|
|
4018
|
+
size: U.value,
|
|
4019
4019
|
icon: E.value,
|
|
4020
4020
|
variant: "text"
|
|
4021
4021
|
}
|
|
@@ -4033,7 +4033,7 @@ const oo = X({
|
|
|
4033
4033
|
onPointerdown: q,
|
|
4034
4034
|
onPointerup: j,
|
|
4035
4035
|
onPointercancel: j,
|
|
4036
|
-
size:
|
|
4036
|
+
size: U.value,
|
|
4037
4037
|
variant: "text",
|
|
4038
4038
|
tabindex: "-1"
|
|
4039
4039
|
}, null);
|
|
@@ -4097,23 +4097,23 @@ const oo = X({
|
|
|
4097
4097
|
});
|
|
4098
4098
|
}), St({}, n);
|
|
4099
4099
|
}
|
|
4100
|
-
}),
|
|
4100
|
+
}), so = { class: "text-medium-emphasis ps-2" }, ro = ["id"], co = {
|
|
4101
4101
|
__name: "index",
|
|
4102
4102
|
props: {
|
|
4103
4103
|
modelValue: {},
|
|
4104
4104
|
modelModifiers: {}
|
|
4105
4105
|
},
|
|
4106
|
-
emits: /* @__PURE__ */
|
|
4106
|
+
emits: /* @__PURE__ */ qt(["closeDialog", "save"], ["update:modelValue"]),
|
|
4107
4107
|
setup(e, { emit: a }) {
|
|
4108
4108
|
const t = _e("table_props"), n = _e("datatablesPluginOptions"), l = _t(e, "modelValue"), i = a, c = {
|
|
4109
4109
|
textfield: Je,
|
|
4110
|
-
select:
|
|
4111
|
-
number:
|
|
4110
|
+
select: Ga,
|
|
4111
|
+
number: uo,
|
|
4112
4112
|
datepicker: Ee(
|
|
4113
|
-
() => import("./Datepicker-
|
|
4113
|
+
() => import("./Datepicker-oT5XkfSQ.js")
|
|
4114
4114
|
),
|
|
4115
4115
|
comparison: Ee(
|
|
4116
|
-
() => import("./Comparison-
|
|
4116
|
+
() => import("./Comparison-N8osVfYi.js")
|
|
4117
4117
|
)
|
|
4118
4118
|
}, o = I(() => t.headers.filter((d) => d.advancedFilter !== !1 && !d.hidden)), u = (d) => d ? typeof d == "string" ? c[d] : d : c.textfield;
|
|
4119
4119
|
return se(
|
|
@@ -4132,9 +4132,9 @@ const oo = X({
|
|
|
4132
4132
|
await t.options.advancedFilters?.onMounted();
|
|
4133
4133
|
}), (d, r) => (oe(), pe(kn, { rounded: "lg" }, {
|
|
4134
4134
|
default: Ce(() => [
|
|
4135
|
-
g(
|
|
4135
|
+
g(ul, { class: "d-flex justify-space-between align-center" }, {
|
|
4136
4136
|
default: Ce(() => [
|
|
4137
|
-
b("div",
|
|
4137
|
+
b("div", so, Vt(d.$t("$datatables.advancedFilters")), 1),
|
|
4138
4138
|
g(tt, {
|
|
4139
4139
|
icon: L(n).header.icons.close,
|
|
4140
4140
|
variant: "text",
|
|
@@ -4144,9 +4144,9 @@ const oo = X({
|
|
|
4144
4144
|
_: 1
|
|
4145
4145
|
}),
|
|
4146
4146
|
g(ze),
|
|
4147
|
-
g(
|
|
4147
|
+
g(sl, { class: "overflow-auto pt-8" }, {
|
|
4148
4148
|
default: Ce(() => [
|
|
4149
|
-
(oe(!0), Ke(ce, null,
|
|
4149
|
+
(oe(!0), Ke(ce, null, Wt(L(o), (s, m) => (oe(), Ke("div", {
|
|
4150
4150
|
id: `advanced-filter-${s.key}`,
|
|
4151
4151
|
key: `filter-${m}`,
|
|
4152
4152
|
class: re(`advanced-filter advanced-filter--${s.key}`)
|
|
@@ -4161,7 +4161,7 @@ const oo = X({
|
|
|
4161
4161
|
variant: "underlined",
|
|
4162
4162
|
clearable: ""
|
|
4163
4163
|
}), null, 16, ["modelValue", "onUpdate:modelValue", "comparison", "onUpdate:comparison", "label"]))
|
|
4164
|
-
], 10,
|
|
4164
|
+
], 10, ro))), 128))
|
|
4165
4165
|
]),
|
|
4166
4166
|
_: 1
|
|
4167
4167
|
}),
|
|
@@ -4188,10 +4188,10 @@ const oo = X({
|
|
|
4188
4188
|
}));
|
|
4189
4189
|
}
|
|
4190
4190
|
};
|
|
4191
|
-
function
|
|
4192
|
-
return JSON.parse(JSON.stringify(e));
|
|
4191
|
+
function pl(e) {
|
|
4192
|
+
return e === null || typeof e != "object" ? e : JSON.parse(JSON.stringify(e));
|
|
4193
4193
|
}
|
|
4194
|
-
function
|
|
4194
|
+
function Gt(e, a) {
|
|
4195
4195
|
if (e === a) return !0;
|
|
4196
4196
|
if (e == null || a == null || typeof e != typeof a) return !1;
|
|
4197
4197
|
if (e instanceof Date && a instanceof Date)
|
|
@@ -4201,7 +4201,7 @@ function jt(e, a) {
|
|
|
4201
4201
|
if (Array.isArray(e) && Array.isArray(a)) {
|
|
4202
4202
|
if (e.length !== a.length) return !1;
|
|
4203
4203
|
for (let t = 0; t < e.length; t++)
|
|
4204
|
-
if (!
|
|
4204
|
+
if (!Gt(e[t], a[t])) return !1;
|
|
4205
4205
|
return !0;
|
|
4206
4206
|
}
|
|
4207
4207
|
if (typeof e == "object" && typeof a == "object") {
|
|
@@ -4210,13 +4210,13 @@ function jt(e, a) {
|
|
|
4210
4210
|
for (const l of t) {
|
|
4211
4211
|
if (!n.includes(l)) return !1;
|
|
4212
4212
|
const i = e[l], c = a[l];
|
|
4213
|
-
if (!
|
|
4213
|
+
if (!Gt(i, c)) return !1;
|
|
4214
4214
|
}
|
|
4215
4215
|
return !0;
|
|
4216
4216
|
}
|
|
4217
4217
|
return !1;
|
|
4218
4218
|
}
|
|
4219
|
-
const
|
|
4219
|
+
const vo = {
|
|
4220
4220
|
__name: "Dialog",
|
|
4221
4221
|
props: {
|
|
4222
4222
|
modelValue: { required: !0 },
|
|
@@ -4224,21 +4224,21 @@ const co = {
|
|
|
4224
4224
|
},
|
|
4225
4225
|
emits: ["update:modelValue"],
|
|
4226
4226
|
setup(e) {
|
|
4227
|
-
const a =
|
|
4227
|
+
const a = Rt(), { advancedFiltersState: t } = Et(), { setData: n } = a, l = _t(e, "modelValue"), i = K({}), c = _e("table_props"), o = _e("busEmits"), u = () => {
|
|
4228
4228
|
const d = Object.entries(i.value).filter(([, r]) => {
|
|
4229
4229
|
const s = r.value;
|
|
4230
4230
|
return Array.isArray(s) || typeof s == "string" ? s.length > 0 : s != null && s !== "";
|
|
4231
4231
|
}).reduce((r, [s, m]) => (r[s] = m, r), {});
|
|
4232
|
-
|
|
4232
|
+
Gt(d, t.value) || (n({
|
|
4233
4233
|
table_id: c.id,
|
|
4234
4234
|
name: "advancedFilters",
|
|
4235
|
-
value: { query:
|
|
4235
|
+
value: { query: pl(d) }
|
|
4236
4236
|
}), o("advancedFilters:update", d)), l.value = !1;
|
|
4237
4237
|
};
|
|
4238
4238
|
return at(() => {
|
|
4239
|
-
i.value =
|
|
4239
|
+
i.value = pl(t.value);
|
|
4240
4240
|
}), (d, r) => {
|
|
4241
|
-
const s =
|
|
4241
|
+
const s = co, m = ma;
|
|
4242
4242
|
return oe(), Ke("div", null, [
|
|
4243
4243
|
g(bn, {
|
|
4244
4244
|
modelValue: l.value,
|
|
@@ -4266,8 +4266,8 @@ const co = {
|
|
|
4266
4266
|
};
|
|
4267
4267
|
}
|
|
4268
4268
|
};
|
|
4269
|
-
function
|
|
4270
|
-
const e = _e("datatablesPluginOptions"), { t: a } =
|
|
4269
|
+
function fo() {
|
|
4270
|
+
const e = _e("datatablesPluginOptions"), { t: a } = Zn(), { advancedFiltersState: t } = Et(), n = K(!1), l = I(() => Object.keys(t.value).length);
|
|
4271
4271
|
return { advancedFiltersItems: I(() => [
|
|
4272
4272
|
{
|
|
4273
4273
|
title: `${a("$datatables.advancedFilters")}`,
|
|
@@ -4276,14 +4276,17 @@ function vo() {
|
|
|
4276
4276
|
}
|
|
4277
4277
|
]), advancedFiltersDialog: n, activeAdvancedFilters: l };
|
|
4278
4278
|
}
|
|
4279
|
-
const
|
|
4279
|
+
const mo = {
|
|
4280
|
+
class: "d-flex align-center",
|
|
4281
|
+
style: { gap: "0.5rem" }
|
|
4282
|
+
}, go = /* @__PURE__ */ At({
|
|
4280
4283
|
__name: "index",
|
|
4281
4284
|
setup(e) {
|
|
4282
|
-
const { advancedFiltersItems: a, advancedFiltersDialog: t, activeAdvancedFilters: n } =
|
|
4285
|
+
const { advancedFiltersItems: a, advancedFiltersDialog: t, activeAdvancedFilters: n } = fo();
|
|
4283
4286
|
return (l, i) => {
|
|
4284
|
-
const c =
|
|
4285
|
-
return oe(), Ke("div",
|
|
4286
|
-
(oe(!0), Ke(ce, null,
|
|
4287
|
+
const c = vo;
|
|
4288
|
+
return oe(), Ke("div", mo, [
|
|
4289
|
+
(oe(!0), Ke(ce, null, Wt(L(a), (o, u) => (oe(), pe(tt, N({
|
|
4287
4290
|
key: u,
|
|
4288
4291
|
icon: "",
|
|
4289
4292
|
variant: "text",
|
|
@@ -4291,18 +4294,18 @@ const fo = /* @__PURE__ */ kl({
|
|
|
4291
4294
|
density: "comfortable"
|
|
4292
4295
|
}, { ref_for: !0 }, o), {
|
|
4293
4296
|
default: Ce(() => [
|
|
4294
|
-
L(n) ? (oe(), pe(
|
|
4297
|
+
L(n) ? (oe(), pe(qa, {
|
|
4295
4298
|
key: 0,
|
|
4296
4299
|
color: "primary",
|
|
4297
4300
|
content: L(n)
|
|
4298
4301
|
}, {
|
|
4299
4302
|
default: Ce(() => [
|
|
4300
|
-
g(
|
|
4303
|
+
g(Se, {
|
|
4301
4304
|
icon: o.prependIcon
|
|
4302
4305
|
}, null, 8, ["icon"])
|
|
4303
4306
|
]),
|
|
4304
4307
|
_: 2
|
|
4305
|
-
}, 1032, ["content"])) : (oe(), pe(
|
|
4308
|
+
}, 1032, ["content"])) : (oe(), pe(Se, {
|
|
4306
4309
|
key: 1,
|
|
4307
4310
|
icon: o.prependIcon
|
|
4308
4311
|
}, null, 8, ["icon"]))
|
|
@@ -4316,26 +4319,26 @@ const fo = /* @__PURE__ */ kl({
|
|
|
4316
4319
|
]);
|
|
4317
4320
|
};
|
|
4318
4321
|
}
|
|
4319
|
-
}),
|
|
4322
|
+
}), yo = {
|
|
4320
4323
|
class: "d-flex align-center",
|
|
4321
4324
|
style: { gap: "0.75rem" }
|
|
4322
|
-
},
|
|
4325
|
+
}, ho = { class: "ms-auto" }, bo = /* @__PURE__ */ At({
|
|
4323
4326
|
__name: "index",
|
|
4324
4327
|
props: {
|
|
4325
4328
|
responsiveHeader: { type: Boolean }
|
|
4326
4329
|
},
|
|
4327
4330
|
setup(e) {
|
|
4328
|
-
const a = Ee(() => import("./Search-
|
|
4331
|
+
const a = Ee(() => import("./Search-CT-0ryQ2.js")), t = Ee(() => import("./RefreshTable-D_D2kU4p.js")), n = Ee(() => import("./Options-DPbrIuPG.js")), l = Ee(() => import("./index-BT5V7cMT.js")), i = Ee(() => import("./index-B3-wvk9W.js")), c = Ee(() => import("./index-CnR_HISW.js")), o = _e("table_props"), u = K(null), d = o.options?.header?.components ?? {};
|
|
4329
4332
|
return (r, s) => {
|
|
4330
|
-
const m =
|
|
4331
|
-
return oe(), Ke("div",
|
|
4333
|
+
const m = go;
|
|
4334
|
+
return oe(), Ke("div", yo, [
|
|
4332
4335
|
e.responsiveHeader ? Me("", !0) : (oe(), pe(m, { key: 0 })),
|
|
4333
4336
|
L(o).hardFilters.length ? (oe(), pe($e(L(d).hardFilters ?? L(l)), {
|
|
4334
4337
|
key: 1,
|
|
4335
4338
|
id: "header-hardFilters"
|
|
4336
4339
|
})) : Me("", !0),
|
|
4337
4340
|
(oe(), pe($e(L(d).toolbar), { id: "header-toolbar" })),
|
|
4338
|
-
b("div",
|
|
4341
|
+
b("div", ho, [
|
|
4339
4342
|
(oe(), pe($e(L(d).search ?? L(a)), { id: "header-search" })),
|
|
4340
4343
|
e.responsiveHeader ? Me("", !0) : (oe(), pe($e(L(d).columns ?? L(i)), {
|
|
4341
4344
|
key: 0,
|
|
@@ -4349,8 +4352,8 @@ const fo = /* @__PURE__ */ kl({
|
|
|
4349
4352
|
};
|
|
4350
4353
|
}
|
|
4351
4354
|
});
|
|
4352
|
-
function
|
|
4353
|
-
const a =
|
|
4355
|
+
function po(e) {
|
|
4356
|
+
const a = Rt(), { getCurrentTable: t, setTableHash: n, hashString: l } = a, i = K(!1), c = 5, o = I(() => t(e.id));
|
|
4354
4357
|
se(
|
|
4355
4358
|
o,
|
|
4356
4359
|
async (v) => {
|
|
@@ -4362,7 +4365,7 @@ function ho(e) {
|
|
|
4362
4365
|
);
|
|
4363
4366
|
const u = async (v) => {
|
|
4364
4367
|
if (i.value) return;
|
|
4365
|
-
i.value = !0, await
|
|
4368
|
+
i.value = !0, await ke();
|
|
4366
4369
|
const h = d(), y = h.findIndex((V) => V.id === e.id);
|
|
4367
4370
|
y > -1 ? h[y] = v : h.push(v), localStorage.setItem("datatables-state", JSON.stringify(h)), i.value = !1;
|
|
4368
4371
|
}, d = () => {
|
|
@@ -4388,7 +4391,7 @@ function ho(e) {
|
|
|
4388
4391
|
}
|
|
4389
4392
|
};
|
|
4390
4393
|
}
|
|
4391
|
-
const Sn =
|
|
4394
|
+
const Sn = ea(() => {
|
|
4392
4395
|
const e = ee({}), a = ee({});
|
|
4393
4396
|
return {
|
|
4394
4397
|
storeOptions: {
|
|
@@ -4402,23 +4405,23 @@ const Sn = Zn(() => {
|
|
|
4402
4405
|
l && (e.value = l), i && (a.value = i);
|
|
4403
4406
|
}
|
|
4404
4407
|
};
|
|
4405
|
-
}),
|
|
4408
|
+
}), ko = {
|
|
4406
4409
|
key: 0,
|
|
4407
4410
|
class: "datatables-v2"
|
|
4408
|
-
},
|
|
4411
|
+
}, So = { class: "pe-4" }, Co = /* @__PURE__ */ At({
|
|
4409
4412
|
__name: "Blueprint",
|
|
4410
4413
|
props: {
|
|
4411
4414
|
modelValue: {},
|
|
4412
4415
|
modelModifiers: {}
|
|
4413
4416
|
},
|
|
4414
|
-
emits: /* @__PURE__ */
|
|
4417
|
+
emits: /* @__PURE__ */ qt(["refreshTable", "refetchData", "advancedFilters:update", "hardFilters:update"], ["update:modelValue"]),
|
|
4415
4418
|
setup(e, { expose: a, emit: t }) {
|
|
4416
|
-
const n = Ee(() => import("./Table-
|
|
4417
|
-
|
|
4419
|
+
const n = Ee(() => import("./Table-D37Ds0_m.js")), l = Ee(() => import("./TableServer-B1DM8v28.js")), { storeOptions: i } = Sn(), { saveTableOptions: c } = Et(), o = _t(e, "modelValue"), u = _e("table_props"), d = _e("datatablesPluginOptions"), r = K(), s = K(!1), m = K(!1), v = K(!1), h = t, y = Rt(), { dataStateGet: V, tableDataState: P, checkTableState: _ } = po(u), { addTable: S, restoreData: F } = y, E = K(!1);
|
|
4420
|
+
ta(r, (w) => {
|
|
4418
4421
|
const C = w[0], { width: $ } = C.contentRect;
|
|
4419
4422
|
E.value = $ < 950;
|
|
4420
4423
|
});
|
|
4421
|
-
const
|
|
4424
|
+
const U = I(() => {
|
|
4422
4425
|
const w = u.options?.header;
|
|
4423
4426
|
return w === void 0 || typeof w == "object" && w !== null;
|
|
4424
4427
|
});
|
|
@@ -4427,19 +4430,19 @@ const Sn = Zn(() => {
|
|
|
4427
4430
|
const w = V();
|
|
4428
4431
|
w && F({ table_id: u.id, data: w });
|
|
4429
4432
|
const $ = P.value.options.columns;
|
|
4430
|
-
$.sorted?.length || ($.selected?.length || ($.selected = u.headers.filter((D) => !D.hidden).map((D) => D.key)), $.sorted = u.headers.map((D) => D.key)), c(
|
|
4433
|
+
$.sorted?.length || ($.selected?.length || ($.selected = u.headers.filter((D) => !D.hidden).map((D) => D.key)), $.sorted = u.headers.map((D) => D.key)), c(Yn(i.state.value, P.value.options.state)), m.value = !0, await ke(), v.value = !0;
|
|
4431
4434
|
}), We("busEmits", h), We("tableRef", r), We("tableState", P), We("downloadModal", s), a({ tableRef: r }), (w, C) => {
|
|
4432
|
-
const $ =
|
|
4433
|
-
return L(m) ? (oe(), Ke("div",
|
|
4435
|
+
const $ = bo;
|
|
4436
|
+
return L(m) ? (oe(), Ke("div", ko, [
|
|
4434
4437
|
g(kn, null, {
|
|
4435
4438
|
default: Ce(() => [
|
|
4436
|
-
L(
|
|
4439
|
+
L(U) ? (oe(), pe(ul, { key: 0 }, {
|
|
4437
4440
|
default: Ce(() => [
|
|
4438
4441
|
g($, { "responsive-header": L(E) }, null, 8, ["responsive-header"])
|
|
4439
4442
|
]),
|
|
4440
4443
|
_: 1
|
|
4441
4444
|
})) : Me("", !0),
|
|
4442
|
-
g(
|
|
4445
|
+
g(sl, { class: "pa-0" }, {
|
|
4443
4446
|
default: Ce(() => [
|
|
4444
4447
|
L(v) ? (oe(), pe($e(L(u).api ? L(l) : L(n)), {
|
|
4445
4448
|
key: 0,
|
|
@@ -4461,7 +4464,7 @@ const Sn = Zn(() => {
|
|
|
4461
4464
|
persistent: ""
|
|
4462
4465
|
}, {
|
|
4463
4466
|
default: Ce(() => [
|
|
4464
|
-
g(
|
|
4467
|
+
g(al, {
|
|
4465
4468
|
class: "py-2",
|
|
4466
4469
|
color: "primary",
|
|
4467
4470
|
elevation: "12",
|
|
@@ -4473,15 +4476,15 @@ const Sn = Zn(() => {
|
|
|
4473
4476
|
title: w.$t("$datatables.preparing_download_file")
|
|
4474
4477
|
}, {
|
|
4475
4478
|
prepend: Ce(() => [
|
|
4476
|
-
b("div",
|
|
4477
|
-
g(
|
|
4479
|
+
b("div", So, [
|
|
4480
|
+
g(Se, {
|
|
4478
4481
|
color: "primary",
|
|
4479
4482
|
size: "x-large"
|
|
4480
4483
|
})
|
|
4481
4484
|
])
|
|
4482
4485
|
]),
|
|
4483
4486
|
append: Ce(() => [
|
|
4484
|
-
g(
|
|
4487
|
+
g(Qn, {
|
|
4485
4488
|
color: "primary",
|
|
4486
4489
|
indeterminate: "disable-shrink",
|
|
4487
4490
|
size: "16",
|
|
@@ -4499,8 +4502,8 @@ const Sn = Zn(() => {
|
|
|
4499
4502
|
])) : Me("", !0);
|
|
4500
4503
|
};
|
|
4501
4504
|
}
|
|
4502
|
-
},
|
|
4503
|
-
const e =
|
|
4505
|
+
}), Vo = Sl("datatablesHooks", () => {
|
|
4506
|
+
const e = K({});
|
|
4504
4507
|
return {
|
|
4505
4508
|
hooks: e,
|
|
4506
4509
|
registerHook: (n, l) => {
|
|
@@ -4510,7 +4513,7 @@ const Sn = Zn(() => {
|
|
|
4510
4513
|
e.value.hasOwnProperty(n) && e.value[n](l);
|
|
4511
4514
|
}
|
|
4512
4515
|
};
|
|
4513
|
-
}),
|
|
4516
|
+
}), xo = /* @__PURE__ */ At({
|
|
4514
4517
|
__name: "index",
|
|
4515
4518
|
props: {
|
|
4516
4519
|
id: {
|
|
@@ -4557,13 +4560,13 @@ const Sn = Zn(() => {
|
|
|
4557
4560
|
},
|
|
4558
4561
|
emits: ["refreshTable", "refetchData"],
|
|
4559
4562
|
setup(e, { expose: a, emit: t }) {
|
|
4560
|
-
const n = e, { triggerHook: l } =
|
|
4561
|
-
c(m), u.value < 99 && (s("refreshTable"), await
|
|
4562
|
-
}, r = (m = {}) => {
|
|
4563
|
-
c(m), o.value.tableRef.hasOwnProperty("reloadItems") && (o.value.tableRef.reloadItems(i.state.value), s("refetchData"));
|
|
4563
|
+
const n = e, { triggerHook: l } = Vo(), { storeOptions: i, setUserOptions: c } = Sn(), o = wn("table"), u = K(0), d = async (m = {}) => {
|
|
4564
|
+
c(m), u.value < 99 && (s("refreshTable"), await ke(), u.value++);
|
|
4565
|
+
}, r = async (m = {}) => {
|
|
4566
|
+
await ke(), o.value && (c(m), o.value.tableRef.hasOwnProperty("reloadItems") && (o.value.tableRef.reloadItems(i.state.value), s("refetchData")));
|
|
4564
4567
|
}, s = t;
|
|
4565
4568
|
return a({ refreshTable: d, refetchData: r, triggerHook: l }), We("table_props", n), We("triggerHook", l), (m, v) => {
|
|
4566
|
-
const h =
|
|
4569
|
+
const h = Co;
|
|
4567
4570
|
return oe(), pe(h, {
|
|
4568
4571
|
id: e.id,
|
|
4569
4572
|
ref_key: "table",
|
|
@@ -4574,41 +4577,41 @@ const Sn = Zn(() => {
|
|
|
4574
4577
|
}, null, 8, ["id"]);
|
|
4575
4578
|
};
|
|
4576
4579
|
}
|
|
4577
|
-
},
|
|
4580
|
+
}), Do = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4578
4581
|
__proto__: null,
|
|
4579
|
-
default:
|
|
4582
|
+
default: xo
|
|
4580
4583
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4581
4584
|
export {
|
|
4582
|
-
|
|
4585
|
+
Mt as A,
|
|
4583
4586
|
an as B,
|
|
4584
|
-
|
|
4585
|
-
|
|
4586
|
-
|
|
4587
|
-
|
|
4588
|
-
|
|
4587
|
+
uo as C,
|
|
4588
|
+
Do as D,
|
|
4589
|
+
Fo as V,
|
|
4590
|
+
vo as _,
|
|
4591
|
+
Gt as a,
|
|
4589
4592
|
mt as b,
|
|
4590
4593
|
nn as c,
|
|
4591
|
-
|
|
4594
|
+
pl as d,
|
|
4592
4595
|
mn as e,
|
|
4593
|
-
|
|
4596
|
+
Rt as f,
|
|
4594
4597
|
kn as g,
|
|
4595
|
-
|
|
4598
|
+
sl as h,
|
|
4596
4599
|
Je as i,
|
|
4597
4600
|
bn as j,
|
|
4598
|
-
|
|
4601
|
+
ul as k,
|
|
4599
4602
|
pn as l,
|
|
4600
4603
|
fn as m,
|
|
4601
|
-
|
|
4602
|
-
|
|
4603
|
-
|
|
4604
|
-
|
|
4604
|
+
fo as n,
|
|
4605
|
+
Vo as o,
|
|
4606
|
+
il as p,
|
|
4607
|
+
da as q,
|
|
4605
4608
|
on as r,
|
|
4606
|
-
|
|
4607
|
-
|
|
4608
|
-
|
|
4609
|
-
|
|
4610
|
-
|
|
4611
|
-
|
|
4612
|
-
|
|
4613
|
-
|
|
4609
|
+
ba as s,
|
|
4610
|
+
un as t,
|
|
4611
|
+
Et as u,
|
|
4612
|
+
hl as v,
|
|
4613
|
+
po as w,
|
|
4614
|
+
fa as x,
|
|
4615
|
+
qa as y,
|
|
4616
|
+
Ot as z
|
|
4614
4617
|
};
|